From 5f4e199b9c2b77eb85025e8ff7374e1a1facf821 Mon Sep 17 00:00:00 2001 From: iSmartCoding Date: Fri, 28 Jun 2024 19:09:04 +0800 Subject: [PATCH] Update web code --- app/build.gradle.kts | 4 +- ...iew-DWTZwDqz.js => AIChatView-C-vXmpXx.js} | 4 +- ...CaTw6QFf.js => AIChatsSidebar-DXIsOw1o.js} | 2 +- ...ew-DVptoi35.js => AIChatsView-h_L67qZA.js} | 4 +- ...ar-Cj1CrVM6.js => AppsSidebar-D9waOJT4.js} | 2 +- ...sView-89NMnT97.js => AppsView-CjhlN3-N.js} | 2 +- .../web/assets/AudiosSidebar-CBgA4bNr.js | 1 - .../web/assets/AudiosSidebar-oyD_wcyj.js | 1 + .../web/assets/AudiosView-4yfLJMGs.js | 1 - .../web/assets/AudiosView-B0P2D0co.css | 1 + .../web/assets/AudiosView-B572va8i.css | 1 - .../web/assets/AudiosView-BON-x76b.js | 1 + .../web/assets/Breadcrumb-7GnPZCg_.js | 1 + .../web/assets/Breadcrumb-B2BEfhSz.js | 1 - .../web/assets/CallsSidebar-C7gnaDCv.js | 1 + .../web/assets/CallsSidebar-DRbWt7_C.js | 1 - .../web/assets/CallsView-BigERfzn.css | 1 + .../web/assets/CallsView-CSHaqzLI.js | 5 + .../web/assets/CallsView-DC8TWXew.js | 5 - .../web/assets/CallsView-DtiHr3nL.css | 1 - .../web/assets/ContactsSidebar-D1mwAWK5.js | 1 - .../web/assets/ContactsSidebar-DIy88WkN.js | 1 + ...w-CSK3a-nc.js => ContactsView-BJQR5PGM.js} | 2 +- ...DqZ-NosA.js => DeviceInfoView-C3ZwUVaw.js} | 2 +- .../web/assets/DevicesView-DLJRQ-K_.js | 19 + .../web/assets/DevicesView-DLXN6G6M.js | 19 - ...vuevuetypescriptsetuptruelang-CixbO2wa.js} | 2 +- ...u3M261_O.js => EditValueModal-HQ024-FF.js} | 2 +- ...-2EJadICJ.js => FeedEntryView-CmXJcA56.js} | 2 +- ...r-BlMq6Zgz.js => FeedsSidebar-B4F1te2F.js} | 2 +- .../web/assets/FeedsSidebar2-BEGs6cYt.js | 1 + .../web/assets/FeedsSidebar2-CGc8dY8M.js | 1 - .../web/assets/FilesRecentView-CNtr3u0V.js | 1 - .../web/assets/FilesRecentView-Ih4tM4Bo.js | 1 + ...r-DGzsCKBr.js => FilesSidebar-DGDeJsty.js} | 2 +- .../web/assets/FilesView-CWRvNtkx.js | 1 + ...ew-D-xT5azp.css => FilesView-DriMBhIE.css} | 2 +- .../web/assets/FilesView-P-UuQ7zs.js | 1 - ...eView-nno0lqBn.js => HomeView-B6EJgDUt.js} | 2 +- ....vuevuetypescriptsetuptruelang-CxW8gnDA.js | 1 - .../web/assets/ImagesSidebar-CTMKgbRD.js | 1 + .../web/assets/ImagesSidebar-DfZzf2UQ.js | 1 - .../web/assets/ImagesView-BVWs9mJH.js | 1 - .../web/assets/ImagesView-D5aqwfsN.js | 1 + ...dUM7kA38.js => JsonViewerView-0dyovbJd.js} | 2 +- ...vuevuetypescriptsetuptruelang-qrlto0-t.js} | 2 +- ...View-iF0mahQu.js => LoginView-CeL9P5vi.js} | 2 +- ....vuevuetypescriptsetuptruelang-BEpTuoep.js | 1 - ....vuevuetypescriptsetuptruelang-BnNr5Ols.js | 1 + ...MS62ogM.js => MessagesSidebar-DAJJAbQR.js} | 2 +- ...w-BAu1BpGj.js => MessagesView-CWAdJC92.js} | 2 +- ...vuevuetypescriptsetuptruelang-BFVbtP9H.js} | 6 +- ...ew-BUYTQiCk.js => NetworkView-B5_GAGwK.js} | 4 +- ...w-vDUpCxeq.js => NoteEditView-C-0qsgs1.js} | 2 +- .../web/assets/NotesSidebar-ByAV-TPL.js | 1 + .../web/assets/NotesSidebar-DLd9XA5A.js | 1 - .../web/assets/NotesView-BGLkQPdA.js | 6 + .../web/assets/NotesView-D09b0SdB.js | 6 - ..._XT.js => QrCodeGeneratorView-CmzM_jYJ.js} | 2 +- ...iew-aNsquRXJ.js => RoutesView-DuiGJr-C.js} | 14 +- ...View-BRxrR5pV.js => RulesView-Dl_UesmL.js} | 10 +- ...zlEI1C.js => ScreenMirrorView-B7mqDN-X.js} | 2 +- .../web/assets/SearchInput-D0d2xIiv.js | 1 - .../web/assets/SearchInput-ZLdB9f4z.js | 1 + ....vuevuetypescriptsetuptruelang-DXYEFTYG.js | 1 - ....vuevuetypescriptsetuptruelang-F0HSGzO6.js | 1 + ...vuevuetypescriptsetuptruelang-Cqtk1_Un.js} | 2 +- .../web/assets/VideosSidebar-DOxCYXc4.js | 1 - .../web/assets/VideosSidebar-QJ1ou7Of.js | 1 + .../web/assets/VideosView-DteZXZKB.js | 1 - .../web/assets/VideosView-EnWFwQXg.js | 1 + ...iView-Ddi8fsYG.js => WiFiView-C53_WvSg.js} | 14 +- ...0NhIz.js => WireGuardEditView-C6fEJ_c-.js} | 2 +- ...-ByT6F4P7.js => WireGuardView-CecgR6ou.js} | 4 +- ... => add-notes-outline-rounded-BvbrKfug.js} | 2 +- ...oi.js => call-outline-rounded-BPfmAopM.js} | 2 +- ... contact-page-outline-rounded-Dn3mmffA.js} | 2 +- ...V.js => content-paste-rounded--YFEOBZV.js} | 2 +- ...ssMode-DGmecgny.js => cssMode-Dr_dLNo_.js} | 2 +- .../resources/web/assets/feature-Cs4tKJbl.js | 1 - .../{feeds--RKt1Kst.js => feeds-B70qguWF.js} | 2 +- ...r2-DxReyA8H.js => freemarker2-Cr303UPI.js} | 2 +- ... => grid-view-outline-rounded-DfUd5oBB.js} | 2 +- ...ars-C85M79z7.js => handlebars-C-uGZQP_.js} | 2 +- .../{html-C5tELRuq.js => html-CzXZ9GKY.js} | 2 +- ...lMode-CU43yFfm.js => htmlMode-6R6887KQ.js} | 2 +- .../{index-B-S542RM.js => index-BXOWKrmL.js} | 1039 +++++++++-------- ...{index-BmZHXB9N.css => index-D4zVegIe.css} | 2 +- ...ipt-y_salJpA.js => javascript-CLvPYtY7.js} | 2 +- ...nMode-ivlzjmY8.js => jsonMode-C-TI3MVh.js} | 2 +- .../web/assets/key-events-D1Kh05Em.js | 1 - .../web/assets/key-events-DpI8L-ce.js | 1 + ...{liquid-Fl2zqidz.js => liquid-B3Ig1-8M.js} | 2 +- ...kdown-DdibuaIZ.js => markdown-CQMofEuT.js} | 2 +- .../web/assets/media-trash-C0Lwc6-9.js | 1 - ...vert-XZtlvs7x.js => more-vert-B_3Etgle.js} | 2 +- ...N.js => print-outline-rounded-B-LbOkYS.js} | 2 +- ...{python-D0LZW9ZO.js => python-Cj6l3V68.js} | 2 +- ...f.js => question-mark-rounded-BTGy5YUq.js} | 2 +- .../{razor-CeyM33ZD.js => razor-WIHsCv-P.js} | 2 +- ...2-aEsw4.js => refresh-rounded-CMms9dRf.js} | 2 +- ...ore-from-trash-outline-rounded-Ck6P-VkW.js | 1 - ...J3TVan.js => rss-feed-rounded-DN7yBBrR.js} | 2 +- ...{search-k8SzNgo1.js => search-B-8eugyA.js} | 2 +- ...TCa6qTC1.js => search-rounded-DpdJ2cSK.js} | 2 +- ...d-BVzv_GA2.js => sort-rounded-CjGrBbPk.js} | 2 +- .../{tags-x91i2rzh.js => tags-BpDG2_1g.js} | 2 +- ...{tsMode-Damxf_us.js => tsMode-eFPjmWu1.js} | 2 +- ...ipt-DjqF3dw5.js => typescript-Bf-nANOc.js} | 2 +- ..._5wwNL4r.js => upload-rounded-D52A8109.js} | 2 +- ...u4WlYW.js => vee-validate.esm-Bmkx0D8v.js} | 2 +- .../{xml-DjjEpseC.js => xml-DRfkQZD8.js} | 2 +- .../{yaml-DjsvKETB.js => yaml-DUizjfby.js} | 2 +- app/src/main/resources/web/index.html | 4 +- 114 files changed, 662 insertions(+), 657 deletions(-) rename app/src/main/resources/web/assets/{AIChatView-DWTZwDqz.js => AIChatView-C-vXmpXx.js} (51%) rename app/src/main/resources/web/assets/{AIChatsSidebar-CaTw6QFf.js => AIChatsSidebar-DXIsOw1o.js} (68%) rename app/src/main/resources/web/assets/{AIChatsView-DVptoi35.js => AIChatsView-h_L67qZA.js} (75%) rename app/src/main/resources/web/assets/{AppsSidebar-Cj1CrVM6.js => AppsSidebar-D9waOJT4.js} (85%) rename app/src/main/resources/web/assets/{AppsView-89NMnT97.js => AppsView-CjhlN3-N.js} (62%) delete mode 100644 app/src/main/resources/web/assets/AudiosSidebar-CBgA4bNr.js create mode 100644 app/src/main/resources/web/assets/AudiosSidebar-oyD_wcyj.js delete mode 100644 app/src/main/resources/web/assets/AudiosView-4yfLJMGs.js create mode 100644 app/src/main/resources/web/assets/AudiosView-B0P2D0co.css delete mode 100644 app/src/main/resources/web/assets/AudiosView-B572va8i.css create mode 100644 app/src/main/resources/web/assets/AudiosView-BON-x76b.js create mode 100644 app/src/main/resources/web/assets/Breadcrumb-7GnPZCg_.js delete mode 100644 app/src/main/resources/web/assets/Breadcrumb-B2BEfhSz.js create mode 100644 app/src/main/resources/web/assets/CallsSidebar-C7gnaDCv.js delete mode 100644 app/src/main/resources/web/assets/CallsSidebar-DRbWt7_C.js create mode 100644 app/src/main/resources/web/assets/CallsView-BigERfzn.css create mode 100644 app/src/main/resources/web/assets/CallsView-CSHaqzLI.js delete mode 100644 app/src/main/resources/web/assets/CallsView-DC8TWXew.js delete mode 100644 app/src/main/resources/web/assets/CallsView-DtiHr3nL.css delete mode 100644 app/src/main/resources/web/assets/ContactsSidebar-D1mwAWK5.js create mode 100644 app/src/main/resources/web/assets/ContactsSidebar-DIy88WkN.js rename app/src/main/resources/web/assets/{ContactsView-CSK3a-nc.js => ContactsView-BJQR5PGM.js} (95%) rename app/src/main/resources/web/assets/{DeviceInfoView-DqZ-NosA.js => DeviceInfoView-C3ZwUVaw.js} (83%) create mode 100644 app/src/main/resources/web/assets/DevicesView-DLJRQ-K_.js delete mode 100644 app/src/main/resources/web/assets/DevicesView-DLXN6G6M.js rename app/src/main/resources/web/assets/{EditToolbar.vuevuetypescriptsetuptruelang-BYnXPUga.js => EditToolbar.vuevuetypescriptsetuptruelang-CixbO2wa.js} (92%) rename app/src/main/resources/web/assets/{EditValueModal-u3M261_O.js => EditValueModal-HQ024-FF.js} (77%) rename app/src/main/resources/web/assets/{FeedEntryView-2EJadICJ.js => FeedEntryView-CmXJcA56.js} (57%) rename app/src/main/resources/web/assets/{FeedsSidebar-BlMq6Zgz.js => FeedsSidebar-B4F1te2F.js} (54%) create mode 100644 app/src/main/resources/web/assets/FeedsSidebar2-BEGs6cYt.js delete mode 100644 app/src/main/resources/web/assets/FeedsSidebar2-CGc8dY8M.js delete mode 100644 app/src/main/resources/web/assets/FilesRecentView-CNtr3u0V.js create mode 100644 app/src/main/resources/web/assets/FilesRecentView-Ih4tM4Bo.js rename app/src/main/resources/web/assets/{FilesSidebar-DGzsCKBr.js => FilesSidebar-DGDeJsty.js} (56%) create mode 100644 app/src/main/resources/web/assets/FilesView-CWRvNtkx.js rename app/src/main/resources/web/assets/{FilesView-D-xT5azp.css => FilesView-DriMBhIE.css} (57%) delete mode 100644 app/src/main/resources/web/assets/FilesView-P-UuQ7zs.js rename app/src/main/resources/web/assets/{HomeView-nno0lqBn.js => HomeView-B6EJgDUt.js} (97%) delete mode 100644 app/src/main/resources/web/assets/IconButton.vuevuetypescriptsetuptruelang-CxW8gnDA.js create mode 100644 app/src/main/resources/web/assets/ImagesSidebar-CTMKgbRD.js delete mode 100644 app/src/main/resources/web/assets/ImagesSidebar-DfZzf2UQ.js delete mode 100644 app/src/main/resources/web/assets/ImagesView-BVWs9mJH.js create mode 100644 app/src/main/resources/web/assets/ImagesView-D5aqwfsN.js rename app/src/main/resources/web/assets/{JsonViewerView-dUM7kA38.js => JsonViewerView-0dyovbJd.js} (85%) rename app/src/main/resources/web/assets/{LeftSidebar.vuevuetypescriptsetuptruelang-Bkp0VFG-.js => LeftSidebar.vuevuetypescriptsetuptruelang-qrlto0-t.js} (71%) rename app/src/main/resources/web/assets/{LoginView-iF0mahQu.js => LoginView-CeL9P5vi.js} (70%) delete mode 100644 app/src/main/resources/web/assets/MediaSidebar.vuevuetypescriptsetuptruelang-BEpTuoep.js create mode 100644 app/src/main/resources/web/assets/MediaSidebar.vuevuetypescriptsetuptruelang-BnNr5Ols.js rename app/src/main/resources/web/assets/{MessagesSidebar-BMS62ogM.js => MessagesSidebar-DAJJAbQR.js} (77%) rename app/src/main/resources/web/assets/{MessagesView-BAu1BpGj.js => MessagesView-CWAdJC92.js} (93%) rename app/src/main/resources/web/assets/{MonacoEditor.vuevuetypescriptsetuptruelang-WcUH3tOp.js => MonacoEditor.vuevuetypescriptsetuptruelang-BFVbtP9H.js} (99%) rename app/src/main/resources/web/assets/{NetworkView-BUYTQiCk.js => NetworkView-B5_GAGwK.js} (79%) rename app/src/main/resources/web/assets/{NoteEditView-vDUpCxeq.js => NoteEditView-C-0qsgs1.js} (64%) create mode 100644 app/src/main/resources/web/assets/NotesSidebar-ByAV-TPL.js delete mode 100644 app/src/main/resources/web/assets/NotesSidebar-DLd9XA5A.js create mode 100644 app/src/main/resources/web/assets/NotesView-BGLkQPdA.js delete mode 100644 app/src/main/resources/web/assets/NotesView-D09b0SdB.js rename app/src/main/resources/web/assets/{QrCodeGeneratorView-DcFeB_XT.js => QrCodeGeneratorView-CmzM_jYJ.js} (96%) rename app/src/main/resources/web/assets/{RoutesView-aNsquRXJ.js => RoutesView-DuiGJr-C.js} (85%) rename app/src/main/resources/web/assets/{RulesView-BRxrR5pV.js => RulesView-Dl_UesmL.js} (87%) rename app/src/main/resources/web/assets/{ScreenMirrorView-C9zlEI1C.js => ScreenMirrorView-B7mqDN-X.js} (69%) delete mode 100644 app/src/main/resources/web/assets/SearchInput-D0d2xIiv.js create mode 100644 app/src/main/resources/web/assets/SearchInput-ZLdB9f4z.js delete mode 100644 app/src/main/resources/web/assets/TagFilter.vuevuetypescriptsetuptruelang-DXYEFTYG.js create mode 100644 app/src/main/resources/web/assets/TagFilter.vuevuetypescriptsetuptruelang-F0HSGzO6.js rename app/src/main/resources/web/assets/{VPagination.vuevuetypescriptsetuptruelang-DUdPyPtr.js => VPagination.vuevuetypescriptsetuptruelang-Cqtk1_Un.js} (69%) delete mode 100644 app/src/main/resources/web/assets/VideosSidebar-DOxCYXc4.js create mode 100644 app/src/main/resources/web/assets/VideosSidebar-QJ1ou7Of.js delete mode 100644 app/src/main/resources/web/assets/VideosView-DteZXZKB.js create mode 100644 app/src/main/resources/web/assets/VideosView-EnWFwQXg.js rename app/src/main/resources/web/assets/{WiFiView-Ddi8fsYG.js => WiFiView-C53_WvSg.js} (80%) rename app/src/main/resources/web/assets/{WireGuardEditView-Bny0NhIz.js => WireGuardEditView-C6fEJ_c-.js} (92%) rename app/src/main/resources/web/assets/{WireGuardView-ByT6F4P7.js => WireGuardView-CecgR6ou.js} (75%) rename app/src/main/resources/web/assets/{add-notes-outline-rounded-DjCnlzSZ.js => add-notes-outline-rounded-BvbrKfug.js} (96%) rename app/src/main/resources/web/assets/{call-outline-rounded-Z-SDSaoi.js => call-outline-rounded-BPfmAopM.js} (91%) rename app/src/main/resources/web/assets/{contact-page-outline-rounded-BW4vyYSZ.js => contact-page-outline-rounded-Dn3mmffA.js} (90%) rename app/src/main/resources/web/assets/{content-paste-rounded-CbiavvwV.js => content-paste-rounded--YFEOBZV.js} (89%) rename app/src/main/resources/web/assets/{cssMode-DGmecgny.js => cssMode-Dr_dLNo_.js} (99%) delete mode 100644 app/src/main/resources/web/assets/feature-Cs4tKJbl.js rename app/src/main/resources/web/assets/{feeds--RKt1Kst.js => feeds-B70qguWF.js} (77%) rename app/src/main/resources/web/assets/{freemarker2-DxReyA8H.js => freemarker2-Cr303UPI.js} (99%) rename app/src/main/resources/web/assets/{grid-view-outline-rounded-0fx6hZgv.js => grid-view-outline-rounded-DfUd5oBB.js} (97%) rename app/src/main/resources/web/assets/{handlebars-C85M79z7.js => handlebars-C-uGZQP_.js} (99%) rename app/src/main/resources/web/assets/{html-C5tELRuq.js => html-CzXZ9GKY.js} (98%) rename app/src/main/resources/web/assets/{htmlMode-CU43yFfm.js => htmlMode-6R6887KQ.js} (99%) rename app/src/main/resources/web/assets/{index-B-S542RM.js => index-BXOWKrmL.js} (54%) rename app/src/main/resources/web/assets/{index-BmZHXB9N.css => index-D4zVegIe.css} (54%) rename app/src/main/resources/web/assets/{javascript-y_salJpA.js => javascript-CLvPYtY7.js} (77%) rename app/src/main/resources/web/assets/{jsonMode-ivlzjmY8.js => jsonMode-C-TI3MVh.js} (99%) delete mode 100644 app/src/main/resources/web/assets/key-events-D1Kh05Em.js create mode 100644 app/src/main/resources/web/assets/key-events-DpI8L-ce.js rename app/src/main/resources/web/assets/{liquid-Fl2zqidz.js => liquid-B3Ig1-8M.js} (98%) rename app/src/main/resources/web/assets/{markdown-DdibuaIZ.js => markdown-CQMofEuT.js} (99%) delete mode 100644 app/src/main/resources/web/assets/media-trash-C0Lwc6-9.js rename app/src/main/resources/web/assets/{more-vert-XZtlvs7x.js => more-vert-B_3Etgle.js} (87%) rename app/src/main/resources/web/assets/{print-outline-rounded-CtsVPpnN.js => print-outline-rounded-B-LbOkYS.js} (91%) rename app/src/main/resources/web/assets/{python-D0LZW9ZO.js => python-Cj6l3V68.js} (98%) rename app/src/main/resources/web/assets/{question-mark-rounded-9QsiQLvf.js => question-mark-rounded-BTGy5YUq.js} (81%) rename app/src/main/resources/web/assets/{razor-CeyM33ZD.js => razor-WIHsCv-P.js} (98%) rename app/src/main/resources/web/assets/{refresh-rounded-B2-aEsw4.js => refresh-rounded-CMms9dRf.js} (89%) delete mode 100644 app/src/main/resources/web/assets/restore-from-trash-outline-rounded-Ck6P-VkW.js rename app/src/main/resources/web/assets/{rss-feed-rounded-DzJ3TVan.js => rss-feed-rounded-DN7yBBrR.js} (92%) rename app/src/main/resources/web/assets/{search-k8SzNgo1.js => search-B-8eugyA.js} (94%) rename app/src/main/resources/web/assets/{search-rounded-TCa6qTC1.js => search-rounded-DpdJ2cSK.js} (88%) rename app/src/main/resources/web/assets/{sort-rounded-BVzv_GA2.js => sort-rounded-CjGrBbPk.js} (87%) rename app/src/main/resources/web/assets/{tags-x91i2rzh.js => tags-BpDG2_1g.js} (75%) rename app/src/main/resources/web/assets/{tsMode-Damxf_us.js => tsMode-eFPjmWu1.js} (99%) rename app/src/main/resources/web/assets/{typescript-DjqF3dw5.js => typescript-Bf-nANOc.js} (98%) rename app/src/main/resources/web/assets/{upload-rounded-_5wwNL4r.js => upload-rounded-D52A8109.js} (90%) rename app/src/main/resources/web/assets/{vee-validate.esm-D5u4WlYW.js => vee-validate.esm-Bmkx0D8v.js} (92%) rename app/src/main/resources/web/assets/{xml-DjjEpseC.js => xml-DRfkQZD8.js} (97%) rename app/src/main/resources/web/assets/{yaml-DjsvKETB.js => yaml-DUizjfby.js} (98%) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 8ae4d10e..6c9cdd48 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -42,9 +42,9 @@ android { else -> 0 } - val vCode = 316 + val vCode = 319 versionCode = vCode - singleAbiNum - versionName = "1.3.1" + versionName = "1.3.2" ndk { //noinspection ChromeOsAbiSupport diff --git a/app/src/main/resources/web/assets/AIChatView-DWTZwDqz.js b/app/src/main/resources/web/assets/AIChatView-C-vXmpXx.js similarity index 51% rename from app/src/main/resources/web/assets/AIChatView-DWTZwDqz.js rename to app/src/main/resources/web/assets/AIChatView-C-vXmpXx.js index 84ec54ee..7e5dcd9c 100644 --- a/app/src/main/resources/web/assets/AIChatView-DWTZwDqz.js +++ b/app/src/main/resources/web/assets/AIChatView-C-vXmpXx.js @@ -1,5 +1,5 @@ -import{d as Y,u as Z,g as ee,h as r,s as te,i as ae,l as se,j as V,b3 as ne,au as H,a_ as oe,a1 as B,a$ as ie,c as d,a as s,O as le,P as ce,t as u,e as N,x as A,y as re,A as h,w as v,p as Q,Q as de,C as ue,bh as pe,bi as _e,bj as ve,S as me,o as l,m,bk as M,v as he,q as R,an as G,V as K,bl as q,F as fe,G as ye,bm as be,am as Ce,bn as ge,H as ke}from"./index-B-S542RM.js";import{u as we}from"./markdown-DdibuaIZ.js";const Ae=f=>(fe("data-v-4d4db71f"),f=f(),ye(),f),Me={class:"chat-container"},Ie={key:0,class:"date"},$e={class:"chat-title"},Te={class:"name"},xe={class:"time"},De={class:"menu-items"},Le=["onClick","disabled"],Se={slot:"headline"},Ve={key:2,class:"chat-title"},He={class:"name"},Be={class:"time"},Ne=["innerHTML"],Qe={key:0,class:"chat-item replying"},Re={class:"chat-title"},Ge={class:"name"},Ke=["innerHTML"],qe={class:"chat-input",style:{"min-height":"80px"}},Fe=["placeholder","onKeydown"],je={class:"btns"},Pe=Ae(()=>s("md-ripple",null,null,-1)),Ue=Y({__name:"AIChatView",setup(f){const F=Z(),{t:j}=ee(),P=de(),c=r(P.params.id),i=r(""),p=r([]),y=r(!1),b=r(""),g=r(""),{app:U,urlTokenKey:E}=te(ae()),I=r(),{render:C}=we(U,E);function k(){return c.value==="create"}function O(e,t){let n=!1;if(t==0)n=!0;else{const o=t>0?p.value[t-1]:null;o!=null&&M(o.createdAt)!==M(e.createdAt)&&(n=!0)}return n}k()||se({handle:async(e,t)=>{if(t)ue(j(t),"error");else{const n=[];n.push({...e.aiChat,md:await C(e.aiChat.content)});for(const o of e.aiChats)n.push({...o,md:await C(o.content)});p.value=n,await H(),x()}},document:pe,variables:()=>({id:c.value,query:`parent_id:${c.value} sort:created_at-asc`}),appApi:!0});const{mutate:$,onDone:z}=V({document:_e,appApi:!0});function T(){!i.value||y.value||$({id:k()?"":c.value,message:i.value,isMe:!0})}z(async e=>{var n;const t=e.data.createAIChat;if(t){for(const _ of t)(n=p.value)==null||n.push({..._,md:await C(_.content)});k()&&(c.value=t[0].id,ne(F,`/aichats/${c.value}`)),i.value="",y.value=!y.value,b.value="",g.value='',await H(),x()}});function x(){const e=I.value;e&&(e.scrollTop=e.scrollHeight)}const w=r(""),{mutate:J,loading:W}=V({document:ve,options:{update:e=>{var n,o;e.evict({id:e.identify({__typename:"AIChat",id:w.value})});const t=(n=p.value)==null?void 0:n.findIndex(_=>_.id===w.value);t!==null&&((o=p.value)==null||o.splice(t,1))}},appApi:!0});function X(e){w.value=e,J({query:`ids:${e}`})}const D=async e=>{e.parentId===c.value&&(b.value+=e.content,g.value=await C(b.value+''),e.finishReason==="stop"&&$({id:c.value,message:b.value,isMe:!1}))};return oe(()=>{B.on("ai_chat_replied",D)}),ie(()=>{B.off("ai_chat_replied",D)}),(e,t)=>{const n=be,o=Ce,_=ge,L=me("tooltip");return l(),d("div",Me,[s("div",{class:"chat-items",ref_key:"scrollContainer",ref:I},[(l(!0),d(le,null,ce(p.value,(a,S)=>(l(),d("div",{key:a.id,class:"chat-item"},[O(a,S)?(l(),d("div",Ie,u(m(M)(a.createdAt)),1)):N("",!0),S>0?(l(),he(o,{key:1},{content:R(()=>[s("div",De,[s("md-menu-item",{onClick:Ee=>X(a.id),disabled:m(W)},[s("div",Se,u(e.$t("delete_message")),1)],8,Le)])]),default:R(()=>[s("div",$e,[s("span",Te,u(e.$t(a.isMe?"me":"ai")),1),A((l(),d("span",xe,[K(u(m(q)(a.createdAt)),1)])),[[L,m(G)(a.createdAt)]]),Q(n,{class:"bi bi-more"})])]),_:2},1024)):(l(),d("div",Ve,[s("span",He,u(e.$t(a.isMe?"me":"ai")),1),A((l(),d("span",Be,[K(u(m(q)(a.createdAt)),1)])),[[L,m(G)(a.createdAt)]])])),s("div",{class:"chat-content md-container",innerHTML:a.md},null,8,Ne)]))),128)),y.value?(l(),d("div",Qe,[s("div",Re,[s("span",Ge,u(e.$t("ai")),1)]),s("div",{class:"chat-content md-container",innerHTML:g.value},null,8,Ke)])):N("",!0)],512),s("div",qe,[A(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:[h(v(T,["exact","prevent"]),["enter"]),t[1]||(t[1]=h(v(a=>i.value+=` +import{d as Y,u as Z,g as ee,h as r,s as te,i as ae,l as se,j as V,b7 as ne,aw as H,af as oe,a1 as B,ag as ie,c as d,a as s,O as le,P as ce,t as u,e as N,x as A,y as re,A as h,w as v,p as Q,Q as de,C as ue,bl as pe,bm as _e,bn as ve,S as me,o as l,m,bo as M,v as he,q as R,ap as q,V as G,bp as K,F as fe,G as ye,bq as be,ao as Ce,br as ge,H as we}from"./index-BXOWKrmL.js";import{u as ke}from"./markdown-CQMofEuT.js";const Ae=f=>(fe("data-v-4d4db71f"),f=f(),ye(),f),Me={class:"chat-container"},Ie={key:0,class:"date"},Te={class:"chat-title"},$e={class:"name"},xe={class:"time"},De={class:"menu-items"},Le=["onClick","disabled"],Se={slot:"headline"},Ve={key:2,class:"chat-title"},He={class:"name"},Be={class:"time"},Ne=["innerHTML"],Qe={key:0,class:"chat-item replying"},Re={class:"chat-title"},qe={class:"name"},Ge=["innerHTML"],Ke={class:"chat-input",style:{"min-height":"80px"}},Fe=["placeholder","onKeydown"],Pe={class:"btns"},Ue=Ae(()=>s("md-ripple",null,null,-1)),je=Y({__name:"AIChatView",setup(f){const F=Z(),{t:P}=ee(),U=de(),c=r(U.params.id),i=r(""),p=r([]),y=r(!1),b=r(""),g=r(""),{app:j,urlTokenKey:E}=te(ae()),I=r(),{render:C}=ke(j,E);function w(){return c.value==="create"}function O(e,t){let n=!1;if(t==0)n=!0;else{const o=t>0?p.value[t-1]:null;o!=null&&M(o.createdAt)!==M(e.createdAt)&&(n=!0)}return n}w()||se({handle:async(e,t)=>{if(t)ue(P(t),"error");else{const n=[];n.push({...e.aiChat,md:await C(e.aiChat.content)});for(const o of e.aiChats)n.push({...o,md:await C(o.content)});p.value=n,await H(),x()}},document:pe,variables:()=>({id:c.value,query:`parent_id:${c.value} sort:created_at-asc`}),appApi:!0});const{mutate:T,onDone:z}=V({document:_e,appApi:!0});function $(){!i.value||y.value||T({id:w()?"":c.value,message:i.value,isMe:!0})}z(async e=>{var n;const t=e.data.createAIChat;if(t){for(const _ of t)(n=p.value)==null||n.push({..._,md:await C(_.content)});w()&&(c.value=t[0].id,ne(F,`/aichats/${c.value}`)),i.value="",y.value=!y.value,b.value="",g.value='',await H(),x()}});function x(){const e=I.value;e&&(e.scrollTop=e.scrollHeight)}const k=r(""),{mutate:J,loading:W}=V({document:ve,options:{update:e=>{var n,o;e.evict({id:e.identify({__typename:"AIChat",id:k.value})});const t=(n=p.value)==null?void 0:n.findIndex(_=>_.id===k.value);t!==null&&((o=p.value)==null||o.splice(t,1))}},appApi:!0});function X(e){k.value=e,J({query:`ids:${e}`})}const D=async e=>{e.parentId===c.value&&(b.value+=e.content,g.value=await C(b.value+''),e.finishReason==="stop"&&T({id:c.value,message:b.value,isMe:!1}))};return oe(()=>{B.on("ai_chat_replied",D)}),ie(()=>{B.off("ai_chat_replied",D)}),(e,t)=>{const n=be,o=Ce,_=ge,L=me("tooltip");return l(),d("div",Me,[s("div",{class:"chat-items",ref_key:"scrollContainer",ref:I},[(l(!0),d(le,null,ce(p.value,(a,S)=>(l(),d("div",{key:a.id,class:"chat-item"},[O(a,S)?(l(),d("div",Ie,u(m(M)(a.createdAt)),1)):N("",!0),S>0?(l(),he(o,{key:1},{content:R(()=>[s("div",De,[s("md-menu-item",{onClick:Ee=>X(a.id),disabled:m(W)},[s("div",Se,u(e.$t("delete_message")),1)],8,Le)])]),default:R(()=>[s("div",Te,[s("span",$e,u(e.$t(a.isMe?"me":"ai")),1),A((l(),d("span",xe,[G(u(m(K)(a.createdAt)),1)])),[[L,m(q)(a.createdAt)]]),Q(n,{class:"bi bi-more"})])]),_:2},1024)):(l(),d("div",Ve,[s("span",He,u(e.$t(a.isMe?"me":"ai")),1),A((l(),d("span",Be,[G(u(m(K)(a.createdAt)),1)])),[[L,m(q)(a.createdAt)]])])),s("div",{class:"chat-content md-container",innerHTML:a.md},null,8,Ne)]))),128)),y.value?(l(),d("div",Qe,[s("div",Re,[s("span",qe,u(e.$t("ai")),1)]),s("div",{class:"chat-content md-container",innerHTML:g.value},null,8,Ge)])):N("",!0)],512),s("div",Ke,[A(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:[h(v($,["exact","prevent"]),["enter"]),t[1]||(t[1]=h(v(a=>i.value+=` `,["shift","exact","prevent"]),["enter"])),t[2]||(t[2]=h(v(a=>i.value+=` `,["ctrl","exact","prevent"]),["enter"])),t[3]||(t[3]=h(v(a=>i.value+=` `,["alt","exact","prevent"]),["enter"])),t[4]||(t[4]=h(v(a=>i.value+=` -`,["meta","exact","prevent"]),["enter"]))]},null,40,Fe),[[re,i.value]]),s("div",je,[s("button",{class:"btn-icon",onClick:v(T,["stop"])},[Pe,Q(_)])])])])}}}),Je=ke(Ue,[["__scopeId","data-v-4d4db71f"]]);export{Je as default}; +`,["meta","exact","prevent"]),["enter"]))]},null,40,Fe),[[re,i.value]]),s("div",Pe,[s("button",{class:"btn-icon",onClick:v($,["stop"])},[Ue,Q(_)])])])])}}}),Je=we(je,[["__scopeId","data-v-4d4db71f"]]);export{Je as default}; diff --git a/app/src/main/resources/web/assets/AIChatsSidebar-CaTw6QFf.js b/app/src/main/resources/web/assets/AIChatsSidebar-DXIsOw1o.js similarity index 68% rename from app/src/main/resources/web/assets/AIChatsSidebar-CaTw6QFf.js rename to app/src/main/resources/web/assets/AIChatsSidebar-DXIsOw1o.js index a5968c1d..fd942972 100644 --- a/app/src/main/resources/web/assets/AIChatsSidebar-CaTw6QFf.js +++ b/app/src/main/resources/web/assets/AIChatsSidebar-DXIsOw1o.js @@ -1 +1 @@ -import{_ as M}from"./LeftSidebar.vuevuetypescriptsetuptruelang-Bkp0VFG-.js";import{_ as S}from"./TagFilter.vuevuetypescriptsetuptruelang-DXYEFTYG.js";import{o as u,c as v,a,d as T,h as k,g as V,j as x,bs as B,as as L,l as G,C as N,bt as Q,au as z,at as q,x as w,y as D,m as s,z as K,A as P,t as h,e as F,V as I,u as R,I as E,k as j,v as H,q as b,a6 as y,a0 as U,S as Z,p as $,w as A,N as J,f as O,Z as W}from"./index-B-S542RM.js";import{u as X}from"./search-k8SzNgo1.js";import{u as Y,a as tt}from"./vee-validate.esm-D5u4WlYW.js";import"./more-vert-XZtlvs7x.js";import"./EditValueModal-u3M261_O.js";const et={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ot=a("path",{fill:"currentColor",d:"m9.25 22l-.4-3.2q-.325-.125-.612-.3t-.563-.375L4.7 19.375l-2.75-4.75l2.575-1.95Q4.5 12.5 4.5 12.338v-.675q0-.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.2zM11 20h1.975l.35-2.65q.775-.2 1.438-.587t1.212-.938l2.475 1.025l.975-1.7l-2.15-1.625q.125-.35.175-.737T17.5 12t-.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.587zm1.05-4.5q1.45 0 2.475-1.025T15.55 12t-1.025-2.475T12.05 8.5q-1.475 0-2.488 1.025T8.55 12t1.013 2.475T12.05 15.5M12 12"},null,-1),st=[ot];function at(g,d){return u(),v("svg",et,[...st])}const nt={name:"material-symbols-settings-outline",render:at},lt=a("div",{slot:"headline"},"ChatGPT",-1),it={slot:"content"},rt=["label","error","error-text"],ct={slot:"actions"},ut=["disabled"],dt={key:0,indeterminate:"",slot:"icon"},pt=T({__name:"AIChatConfigModal",props:{value:{type:String}},setup(g){const{handleSubmit:d}=Y(),p=k(),{t:r}=V(),c=g,{mutate:_,loading:m,onDone:C}=x({document:B,options:{update:()=>{}},appApi:!0}),{value:t,resetField:f,errorMessage:n}=tt("inputValue",L());t.value=c.value??"",t.value||f(),G({handle:(o,e)=>{e?N(r(e),"error"):o&&(t.value=o.aiChatConfig.chatGPTApiKey)},document:Q,variables:null,appApi:!0}),(async()=>{var o;await z(),(o=p.value)==null||o.focus()})();const i=d(()=>{_({chatGPTApiKey:t.value??""})});return C(()=>{q()}),(o,e)=>(u(),v("md-dialog",null,[lt,a("div",it,[w(a("md-outlined-text-field",{ref_key:"input",ref:p,label:o.$t("api_key"),class:"form-control","onUpdate:modelValue":e[0]||(e[0]=l=>K(t)?t.value=l:null),onKeyup:e[1]||(e[1]=P((...l)=>s(i)&&s(i)(...l),["enter"])),error:s(n),"error-text":s(n)?o.$t(s(n)):""},null,40,rt),[[D,s(t)]])]),a("div",ct,[a("md-outlined-button",{value:"cancel",onClick:e[2]||(e[2]=(...l)=>s(q)&&s(q)(...l))},h(o.$t("cancel")),1),a("md-filled-button",{value:"save",disabled:s(m),onClick:e[3]||(e[3]=(...l)=>s(i)&&s(i)(...l)),autofocus:""},[s(m)?(u(),v("md-circular-progress",dt)):F("",!0),I(" "+h(o.$t("save")),1)],8,ut)])]))}}),_t=a("md-ripple",null,null,-1),mt={class:"nav"},ft={class:"title"},$t=T({__name:"AIChatsSidebar",setup(g){const d=R(),{parseQ:p}=X(),r=E({tagIds:[]}),c=k("");function _(){var n;const t=y.currentRoute.value,f=U(((n=t.query.q)==null?void 0:n.toString())??"");p(r,f),c.value=r.tagIds.length===1?r.tagIds[0]:""}_(),j(()=>y.currentRoute.value,()=>{_()});function m(){O(d,"/aichats")}function C(){W(pt)}return(t,f)=>{const n=nt,i=S,o=M,e=Z("tooltip");return u(),H(o,null,{title:b(()=>[I(h(t.$t("page_title.aichats")),1)]),actions:b(()=>[w((u(),v("button",{class:"btn-icon",onClick:A(C,["prevent"])},[_t,$(n)])),[[e,t.$t("config")]])]),body:b(()=>[a("ul",mt,[a("li",{onClick:A(m,["prevent"]),class:J({active:!c.value})},[a("span",ft,h(t.$t("all")),1)],2)]),$(i,{type:"AI_CHAT",selected:c.value},null,8,["selected"])]),_:1})}}});export{$t as default}; +import{_ as M}from"./LeftSidebar.vuevuetypescriptsetuptruelang-qrlto0-t.js";import{_ as S}from"./TagFilter.vuevuetypescriptsetuptruelang-F0HSGzO6.js";import{o as u,c as f,a,d as T,h as k,g as V,j as x,bw as B,au as L,l as G,C as N,bx as Q,aw as z,av as q,x as w,y as D,m as s,z as K,A as P,t as h,e as F,V as I,u as R,I as E,k as j,v as H,q as b,a6 as y,a0 as U,S as Z,p as $,w as A,N as J,f as O,Z as W}from"./index-BXOWKrmL.js";import{u as X}from"./search-B-8eugyA.js";import{u as Y,a as tt}from"./vee-validate.esm-Bmkx0D8v.js";import"./more-vert-B_3Etgle.js";import"./EditValueModal-HQ024-FF.js";const et={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ot=a("path",{fill:"currentColor",d:"m9.25 22l-.4-3.2q-.325-.125-.612-.3t-.563-.375L4.7 19.375l-2.75-4.75l2.575-1.95Q4.5 12.5 4.5 12.338v-.675q0-.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.2zM11 20h1.975l.35-2.65q.775-.2 1.438-.587t1.212-.938l2.475 1.025l.975-1.7l-2.15-1.625q.125-.35.175-.737T17.5 12t-.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.587zm1.05-4.5q1.45 0 2.475-1.025T15.55 12t-1.025-2.475T12.05 8.5q-1.475 0-2.488 1.025T8.55 12t1.013 2.475T12.05 15.5M12 12"},null,-1),st=[ot];function at(g,d){return u(),f("svg",et,[...st])}const nt={name:"material-symbols-settings-outline",render:at},lt=a("div",{slot:"headline"},"ChatGPT",-1),it={slot:"content"},rt=["label","error","error-text"],ct={slot:"actions"},ut=["disabled"],dt={key:0,indeterminate:"",slot:"icon"},pt=T({__name:"AIChatConfigModal",props:{value:{type:String}},setup(g){const{handleSubmit:d}=Y(),p=k(),{t:r}=V(),c=g,{mutate:_,loading:m,onDone:C}=x({document:B,options:{update:()=>{}},appApi:!0}),{value:t,resetField:v,errorMessage:n}=tt("inputValue",L());t.value=c.value??"",t.value||v(),G({handle:(o,e)=>{e?N(r(e),"error"):o&&(t.value=o.aiChatConfig.chatGPTApiKey)},document:Q,variables:null,appApi:!0}),(async()=>{var o;await z(),(o=p.value)==null||o.focus()})();const i=d(()=>{_({chatGPTApiKey:t.value??""})});return C(()=>{q()}),(o,e)=>(u(),f("md-dialog",null,[lt,a("div",it,[w(a("md-outlined-text-field",{ref_key:"input",ref:p,label:o.$t("api_key"),class:"form-control","onUpdate:modelValue":e[0]||(e[0]=l=>K(t)?t.value=l:null),onKeyup:e[1]||(e[1]=P((...l)=>s(i)&&s(i)(...l),["enter"])),error:s(n),"error-text":s(n)?o.$t(s(n)):""},null,40,rt),[[D,s(t)]])]),a("div",ct,[a("md-outlined-button",{value:"cancel",onClick:e[2]||(e[2]=(...l)=>s(q)&&s(q)(...l))},h(o.$t("cancel")),1),a("md-filled-button",{value:"save",disabled:s(m),onClick:e[3]||(e[3]=(...l)=>s(i)&&s(i)(...l)),autofocus:""},[s(m)?(u(),f("md-circular-progress",dt)):F("",!0),I(" "+h(o.$t("save")),1)],8,ut)])]))}}),_t=a("md-ripple",null,null,-1),mt={class:"nav"},vt={class:"title"},$t=T({__name:"AIChatsSidebar",setup(g){const d=R(),{parseQ:p}=X(),r=E({tagIds:[]}),c=k("");function _(){var n;const t=y.currentRoute.value,v=U(((n=t.query.q)==null?void 0:n.toString())??"");p(r,v),c.value=r.tagIds.length===1?r.tagIds[0]:""}_(),j(()=>y.currentRoute.value,()=>{_()});function m(){O(d,"/aichats")}function C(){W(pt)}return(t,v)=>{const n=nt,i=S,o=M,e=Z("tooltip");return u(),H(o,null,{title:b(()=>[I(h(t.$t("page_title.aichats")),1)]),actions:b(()=>[w((u(),f("button",{class:"btn-icon",onClick:A(C,["prevent"])},[_t,$(n)])),[[e,t.$t("config")]])]),body:b(()=>[a("ul",mt,[a("li",{onClick:A(m,["prevent"]),class:J({active:!c.value})},[a("span",vt,h(t.$t("all")),1)],2)]),$(i,{type:"AI_CHAT",selected:c.value},null,8,["selected"])]),_:1})}}});export{$t as default}; diff --git a/app/src/main/resources/web/assets/AIChatsView-DVptoi35.js b/app/src/main/resources/web/assets/AIChatsView-h_L67qZA.js similarity index 75% rename from app/src/main/resources/web/assets/AIChatsView-DVptoi35.js rename to app/src/main/resources/web/assets/AIChatsView-h_L67qZA.js index cc8d1b53..ef7e2e29 100644 --- a/app/src/main/resources/web/assets/AIChatsView-DVptoi35.js +++ b/app/src/main/resources/web/assets/AIChatsView-h_L67qZA.js @@ -1,5 +1,5 @@ -import{_ as ve}from"./VPagination.vuevuetypescriptsetuptruelang-DUdPyPtr.js";import{d as fe,h as I,g as ke,I as ye,u as be,i as Ce,s as $e,J as we,K as Ae,L as Te,M as qe,c as l,a,t as i,m as t,p as d,O as D,x as m,w as u,e as f,P as Ie,v as De,Q as Se,bj as Le,f as Me,C as Ve,bo as Ee,S as Ne,o as n,N as Ue,b4 as Be,an as J,V as O,U as X,X as Ke,a0 as Qe,a1 as k,bp as Z,Z as W,ac as Pe,ad as ze,$ as He,ae as Re,a2 as Fe,a3 as Ge,a4 as je}from"./index-B-S542RM.js";import{_ as Je,a as Oe}from"./SearchInput-D0d2xIiv.js";import{b as Xe,u as Ze,a as We}from"./key-events-D1Kh05Em.js";import{u as Ye,a as xe}from"./tags-x91i2rzh.js";import{u as et}from"./search-k8SzNgo1.js";import"./search-rounded-TCa6qTC1.js";import"./rss-feed-rounded-DzJ3TVan.js";import"./vee-validate.esm-D5u4WlYW.js";const tt={class:"top-app-bar"},at={class:"title"},st={class:"actions"},ot=a("md-ripple",null,null,-1),nt=a("md-ripple",null,null,-1),lt={class:"table-responsive"},it={class:"table"},ct=["checked","indeterminate"],dt={key:0},rt=a("th",null,null,-1),ut=["onClick"],_t=["onChange","checked"],pt={key:0},ht=["onClick"],mt={class:"nowrap"},gt={class:"action-btns"},vt=["onClick"],ft=a("md-ripple",null,null,-1),kt=["onClick"],yt=a("md-ripple",null,null,-1),bt={class:"nowrap"},Ct={class:"nowrap"},$t={key:0},wt=["colspan"],At={class:"no-data-placeholder"},g=50,Ut=fe({__name:"AIChatsView",setup(Tt){var R;const y=I([]),{t:Y}=ke(),{parseQ:x}=et(),S=ye({tagIds:[]}),ee=be(),te=Ce(),{app:w}=$e(te),r=we.AI_CHAT,L=Se(),M=L.query,A=I(parseInt(((R=M.page)==null?void 0:R.toString())??"1")),_=I(""),{tags:b,fetch:ae}=Ye(r),{addToTags:se}=xe(r,b),{deleteItems:V}=Xe(Le,()=>{$()}),{selectedIds:v,allChecked:E,realAllChecked:C,selectRealAll:oe,allCheckedAlertVisible:ne,clearSelection:T,toggleAllChecked:N,toggleSelect:U,total:c,checked:B,selectAll:le}=Ze(y),K=e=>{const o=L.query.q;Me(ee,o?`/aichats?page=${e}&q=${o}`:`/aichats?page=${e}`)},{keyDown:Q,keyUp:P}=We(c,g,A,le,T,K,()=>{V(C.value,v.value,_.value)}),{loading:ie,fetch:$}=Ae({handle:(e,o)=>{o?Ve(Y(o),"error"):e&&(y.value=e.aiChats,c.value=e.aiChatCount)},document:Ee,variables:()=>({offset:(A.value-1)*g,limit:g,query:_.value}),appApi:!0});function ce(e){return e?`/aichats?q=${e}`:"/aichats"}const z=e=>{e.type===r&&(T(),$())},H=e=>{e.type===r&&$()};Te(()=>{var e;_.value=Qe(((e=M.q)==null?void 0:e.toString())??""),x(S,_.value),ae(),$(),k.on("item_tags_updated",H),k.on("items_tags_updated",z),window.addEventListener("keydown",Q),window.addEventListener("keyup",P)}),qe(()=>{k.off("item_tags_updated",H),k.off("items_tags_updated",z),window.removeEventListener("keydown",Q),window.removeEventListener("keyup",P)});function de(e){Z(`/aichats/${e.id}`)}function re(){Z("/aichats/create")}function ue(e){W(ze,{id:e.id,name:e.id,gql:Pe` +import{_ as ve}from"./VPagination.vuevuetypescriptsetuptruelang-Cqtk1_Un.js";import{d as fe,h as I,g as ke,I as ye,u as be,i as Ce,s as $e,J as we,K as Ae,L as Te,M as qe,c as l,a,t as i,m as t,p as d,O as D,x as m,w as u,e as f,P as Ie,v as De,Q as Se,bn as Le,f as Me,C as Ve,bs as Ee,S as Ne,o as n,N as Ue,b8 as Be,ap as O,V as X,U as Z,X as Ke,a0 as Qe,a1 as k,bt as j,Z as W,ac as Pe,ad as ze,$ as He,ae as Re,a2 as Fe,a3 as Ge,a4 as Je}from"./index-BXOWKrmL.js";import{_ as Oe,a as Xe}from"./SearchInput-ZLdB9f4z.js";import{b as Ze,u as je,a as We}from"./key-events-DpI8L-ce.js";import{u as Ye,a as xe}from"./tags-BpDG2_1g.js";import{u as et}from"./search-B-8eugyA.js";import"./search-rounded-DpdJ2cSK.js";import"./rss-feed-rounded-DN7yBBrR.js";import"./vee-validate.esm-Bmkx0D8v.js";const tt={class:"top-app-bar"},at={class:"title"},st={class:"actions"},ot=a("md-ripple",null,null,-1),nt=a("md-ripple",null,null,-1),lt={class:"table-responsive"},it={class:"table"},ct=["checked","indeterminate"],dt={key:0},rt=a("th",null,null,-1),ut=["onClick"],_t=["onChange","checked"],pt={key:0},ht=["onClick"],mt={class:"nowrap"},gt={class:"action-btns"},vt=["onClick"],ft=a("md-ripple",null,null,-1),kt=["onClick"],yt=a("md-ripple",null,null,-1),bt={class:"nowrap"},Ct={class:"nowrap"},$t={key:0},wt=["colspan"],At={class:"no-data-placeholder"},g=50,Ut=fe({__name:"AIChatsView",setup(Tt){var R;const y=I([]),{t:Y}=ke(),{parseQ:x}=et(),S=ye({tagIds:[]}),ee=be(),te=Ce(),{app:w}=$e(te),r=we.AI_CHAT,L=Se(),M=L.query,A=I(parseInt(((R=M.page)==null?void 0:R.toString())??"1")),_=I(""),{tags:b,fetch:ae}=Ye(r),{addToTags:se}=xe(r,b),{deleteItems:V}=Ze(Le,()=>{$()}),{selectedIds:v,allChecked:E,realAllChecked:C,selectRealAll:oe,allCheckedAlertVisible:ne,clearSelection:T,toggleAllChecked:N,toggleSelect:U,total:c,checked:B,selectAll:le}=je(y),K=e=>{const o=L.query.q;Me(ee,o?`/aichats?page=${e}&q=${o}`:`/aichats?page=${e}`)},{keyDown:Q,keyUp:P}=We(c,g,A,le,T,K,()=>{V(C.value,v.value,_.value)}),{loading:ie,fetch:$}=Ae({handle:(e,o)=>{o?Ve(Y(o),"error"):e&&(y.value=e.aiChats,c.value=e.aiChatCount)},document:Ee,variables:()=>({offset:(A.value-1)*g,limit:g,query:_.value}),appApi:!0});function ce(e){return e?`/aichats?q=${e}`:"/aichats"}const z=e=>{e.type===r&&(T(),$())},H=e=>{e.type===r&&$()};Te(()=>{var e;_.value=Qe(((e=M.q)==null?void 0:e.toString())??""),x(S,_.value),ae(),$(),k.on("item_tags_updated",H),k.on("items_tags_updated",z),window.addEventListener("keydown",Q),window.addEventListener("keyup",P)}),qe(()=>{k.off("item_tags_updated",H),k.off("items_tags_updated",z),window.removeEventListener("keydown",Q),window.removeEventListener("keyup",P)});function de(e){j(`/aichats/${e.id}`)}function re(){j("/aichats/create")}function ue(e){W(ze,{id:e.id,name:e.id,gql:Pe` mutation DeleteAIChat($query: String!) { deleteAIChats(query: $query) } - `,variables:()=>({query:`ids:${e.id}`}),appApi:!0,typeName:"AIChat",done:()=>{c.value--,e.tags.length&&k.emit("refetch_tags",r)}})}function _e(e){W(He,{type:r,tags:b.value,item:{key:e.id,title:"",size:0},selected:b.value.filter(o=>e.tags.some(q=>q.id===o.id))})}return(e,o)=>{const q=Je,F=Re,G=Fe,pe=Oe,he=Ge,me=je,ge=ve,p=Ne("tooltip");return n(),l(D,null,[a("div",tt,[a("div",at,i(e.$t("page_title.aichats"))+" ("+i(t(c).toLocaleString())+")",1),a("div",st,[d(q,{filter:S,tags:t(b),"get-url":ce},null,8,["filter","tags"]),t(B)?(n(),l(D,{key:0},[m((n(),l("button",{class:"btn-icon",onClick:o[0]||(o[0]=u(s=>t(V)(t(v),t(C),t(c),_.value),["stop"]))},[ot,d(F)])),[[p,e.$t("delete")]]),m((n(),l("button",{class:"btn-icon",onClick:o[1]||(o[1]=u(s=>t(se)(t(v),t(C),_.value),["stop"]))},[nt,d(G)])),[[p,e.$t("add_to_tags")]])],64)):f("",!0),a("md-outlined-button",{class:"btn-sm",onClick:u(re,["prevent"])},i(e.$t("new_chat")),1)])]),d(pe,{limit:g,total:t(c),"all-checked-alert-visible":t(ne),"real-all-checked":t(C),"select-real-all":t(oe),"clear-selection":t(T)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),a("div",lt,[a("table",it,[a("thead",null,[a("tr",null,[a("th",null,[a("md-checkbox",{"touch-target":"wrapper",onChange:o[2]||(o[2]=(...s)=>t(N)&&t(N)(...s)),checked:t(E),indeterminate:!t(E)&&t(B)},null,40,ct)]),t(w).developerMode?(n(),l("th",dt,"ID")):f("",!0),a("th",null,i(e.$t("content")),1),rt,a("th",null,i(e.$t("tags")),1),a("th",null,i(e.$t("updated_at")),1),a("th",null,i(e.$t("created_at")),1)])]),a("tbody",null,[(n(!0),l(D,null,Ie(y.value,(s,j)=>(n(),l("tr",{key:s.id,class:Ue({selected:t(v).includes(s.id)}),onClick:u(h=>t(U)(h,s,j),["stop"])},[a("td",null,[a("md-checkbox",{"touch-target":"wrapper",onChange:h=>t(U)(h,s,j),checked:t(v).includes(s.id)},null,40,_t)]),t(w).developerMode?(n(),l("td",pt,[d(he,{id:s.id,raw:s},null,8,["id","raw"])])):f("",!0),a("td",null,[a("a",{href:"#",onClick:u(h=>de(s),["prevent"])},i(t(Be)(s.content,{length:200,omission:""})),9,ht)]),a("td",mt,[a("div",gt,[m((n(),l("button",{class:"btn-icon sm",onClick:u(h=>ue(s),["stop"])},[ft,d(F)],8,vt)),[[p,e.$t("delete")]]),m((n(),l("button",{class:"btn-icon sm",onClick:u(h=>_e(s),["stop"])},[yt,d(G)],8,kt)),[[p,e.$t("add_to_tags")]])])]),a("td",null,[d(me,{tags:s.tags,type:t(r)},null,8,["tags","type"])]),a("td",bt,[m((n(),l("time",null,[O(i(t(X)(s.updatedAt)),1)])),[[p,t(J)(s.updatedAt)]])]),a("td",Ct,[m((n(),l("time",null,[O(i(t(X)(s.updatedAt)),1)])),[[p,t(J)(s.createdAt)]])])],10,ut))),128))]),y.value.length?f("",!0):(n(),l("tfoot",$t,[a("tr",null,[a("td",{colspan:t(w).developerMode?7:6},[a("div",At,i(e.$t(t(Ke)(t(ie)))),1)],8,wt)])]))])]),t(c)>g?(n(),De(ge,{key:0,page:A.value,go:K,total:t(c),limit:g},null,8,["page","total"])):f("",!0)],64)}}});export{Ut as default}; + `,variables:()=>({query:`ids:${e.id}`}),appApi:!0,typeName:"AIChat",done:()=>{c.value--,e.tags.length&&k.emit("refetch_tags",r)}})}function _e(e){W(He,{type:r,tags:b.value,item:{key:e.id,title:"",size:0},selected:b.value.filter(o=>e.tags.some(q=>q.id===o.id))})}return(e,o)=>{const q=Oe,F=Re,G=Fe,pe=Xe,he=Ge,me=Je,ge=ve,p=Ne("tooltip");return n(),l(D,null,[a("div",tt,[a("div",at,i(e.$t("page_title.aichats"))+" ("+i(t(c).toLocaleString())+")",1),a("div",st,[d(q,{filter:S,tags:t(b),"get-url":ce},null,8,["filter","tags"]),t(B)?(n(),l(D,{key:0},[m((n(),l("button",{class:"btn-icon",onClick:o[0]||(o[0]=u(s=>t(V)(t(v),t(C),t(c),_.value),["stop"]))},[ot,d(F)])),[[p,e.$t("delete")]]),m((n(),l("button",{class:"btn-icon",onClick:o[1]||(o[1]=u(s=>t(se)(t(v),t(C),_.value),["stop"]))},[nt,d(G)])),[[p,e.$t("add_to_tags")]])],64)):f("",!0),a("md-outlined-button",{class:"btn-sm",onClick:u(re,["prevent"])},i(e.$t("new_chat")),1)])]),d(pe,{limit:g,total:t(c),"all-checked-alert-visible":t(ne),"real-all-checked":t(C),"select-real-all":t(oe),"clear-selection":t(T)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),a("div",lt,[a("table",it,[a("thead",null,[a("tr",null,[a("th",null,[a("md-checkbox",{"touch-target":"wrapper",onChange:o[2]||(o[2]=(...s)=>t(N)&&t(N)(...s)),checked:t(E),indeterminate:!t(E)&&t(B)},null,40,ct)]),t(w).developerMode?(n(),l("th",dt,"ID")):f("",!0),a("th",null,i(e.$t("content")),1),rt,a("th",null,i(e.$t("tags")),1),a("th",null,i(e.$t("updated_at")),1),a("th",null,i(e.$t("created_at")),1)])]),a("tbody",null,[(n(!0),l(D,null,Ie(y.value,(s,J)=>(n(),l("tr",{key:s.id,class:Ue({selected:t(v).includes(s.id)}),onClick:u(h=>t(U)(h,s,J),["stop"])},[a("td",null,[a("md-checkbox",{"touch-target":"wrapper",onChange:h=>t(U)(h,s,J),checked:t(v).includes(s.id)},null,40,_t)]),t(w).developerMode?(n(),l("td",pt,[d(he,{id:s.id,raw:s},null,8,["id","raw"])])):f("",!0),a("td",null,[a("a",{href:"#",onClick:u(h=>de(s),["prevent"])},i(t(Be)(s.content,{length:200,omission:""})),9,ht)]),a("td",mt,[a("div",gt,[m((n(),l("button",{class:"btn-icon sm",onClick:u(h=>ue(s),["stop"])},[ft,d(F)],8,vt)),[[p,e.$t("delete")]]),m((n(),l("button",{class:"btn-icon sm",onClick:u(h=>_e(s),["stop"])},[yt,d(G)],8,kt)),[[p,e.$t("add_to_tags")]])])]),a("td",null,[d(me,{tags:s.tags,type:t(r)},null,8,["tags","type"])]),a("td",bt,[m((n(),l("time",null,[X(i(t(Z)(s.updatedAt)),1)])),[[p,t(O)(s.updatedAt)]])]),a("td",Ct,[m((n(),l("time",null,[X(i(t(Z)(s.updatedAt)),1)])),[[p,t(O)(s.createdAt)]])])],10,ut))),128))]),y.value.length?f("",!0):(n(),l("tfoot",$t,[a("tr",null,[a("td",{colspan:t(w).developerMode?7:6},[a("div",At,i(e.$t(t(Ke)(t(ie)))),1)],8,wt)])]))])]),t(c)>g?(n(),De(ge,{key:0,page:A.value,go:K,total:t(c),limit:g},null,8,["page","total"])):f("",!0)],64)}}});export{Ut as default}; diff --git a/app/src/main/resources/web/assets/AppsSidebar-Cj1CrVM6.js b/app/src/main/resources/web/assets/AppsSidebar-D9waOJT4.js similarity index 85% rename from app/src/main/resources/web/assets/AppsSidebar-Cj1CrVM6.js rename to app/src/main/resources/web/assets/AppsSidebar-D9waOJT4.js index a1c02843..909c1695 100644 --- a/app/src/main/resources/web/assets/AppsSidebar-Cj1CrVM6.js +++ b/app/src/main/resources/web/assets/AppsSidebar-D9waOJT4.js @@ -1 +1 @@ -import{_ as b}from"./LeftSidebar.vuevuetypescriptsetuptruelang-Bkp0VFG-.js";import{d as w,u as L,s as T,i as A,I as N,h as k,K as Q,k as V,v as R,q as g,ar as z,a6 as S,a0 as I,o as r,V as M,t,a,w as p,N as u,m as l,c as m,e as v,a7 as D,f as h,a8 as E}from"./index-B-S542RM.js";import{u as G}from"./search-k8SzNgo1.js";const K={class:"nav"},P={class:"title"},j={key:0,class:"count"},x={class:"title"},F={key:0,class:"count"},H={class:"title"},J={key:0,class:"count"},Y=w({__name:"AppsSidebar",setup(O){const y=L(),{counter:o}=T(A()),{parseQ:C}=G(),_=N({tagIds:[]}),n=k(""),i=k(-1),{fetch:$}=Q({handle:e=>{e&&(o.value.packages=e.total,o.value.packagesSystem=e.system,i.value=e.total-e.system)},document:z,variables:()=>({}),appApi:!0});function d(){var c;const e=S.currentRoute.value,s=I(((c=e.query.q)==null?void 0:c.toString())??"");C(_,s),n.value=_.type??"",$()}function f(e){const s=D([{name:"type",op:"",value:e}]);h(y,`/apps?q=${E(s)}`)}function B(){h(y,"/apps")}return d(),V(()=>S.currentRoute.value,()=>{d()}),(e,s)=>{const c=b;return r(),R(c,null,{title:g(()=>[M(t(e.$t("page_title.apps")),1)]),body:g(()=>[a("ul",K,[a("li",{onClick:p(B,["prevent"]),class:u({active:!n.value})},[a("span",P,t(e.$t("all")),1),l(o).packages>=0?(r(),m("span",j,t(l(o).packages.toLocaleString()),1)):v("",!0)],2),a("li",{onClick:s[0]||(s[0]=p(q=>f("user"),["prevent"])),class:u({active:n.value==="user"})},[a("span",x,t(e.$t("app_type.user")),1),i.value>=0?(r(),m("span",F,t(i.value.toLocaleString()),1)):v("",!0)],2),a("li",{onClick:s[1]||(s[1]=p(q=>f("system"),["prevent"])),class:u({active:n.value==="system"})},[a("span",H,t(e.$t("app_type.system")),1),l(o).packagesSystem>=0?(r(),m("span",J,t(l(o).packagesSystem.toLocaleString()),1)):v("",!0)],2)])]),_:1})}}});export{Y as default}; +import{_ as b}from"./LeftSidebar.vuevuetypescriptsetuptruelang-qrlto0-t.js";import{d as w,u as L,s as T,i as A,I as N,h as k,K as Q,k as V,v as R,q as g,at as z,a6 as S,a0 as I,o as r,V as M,t,a,w as p,N as u,m as l,c as m,e as v,a7 as D,f as h,a8 as E}from"./index-BXOWKrmL.js";import{u as G}from"./search-B-8eugyA.js";const K={class:"nav"},P={class:"title"},j={key:0,class:"count"},x={class:"title"},F={key:0,class:"count"},H={class:"title"},J={key:0,class:"count"},Y=w({__name:"AppsSidebar",setup(O){const y=L(),{counter:o}=T(A()),{parseQ:C}=G(),_=N({tagIds:[]}),n=k(""),i=k(-1),{fetch:$}=Q({handle:e=>{e&&(o.value.packages=e.total,o.value.packagesSystem=e.system,i.value=e.total-e.system)},document:z,variables:()=>({}),appApi:!0});function d(){var c;const e=S.currentRoute.value,s=I(((c=e.query.q)==null?void 0:c.toString())??"");C(_,s),n.value=_.type??"",$()}function f(e){const s=D([{name:"type",op:"",value:e}]);h(y,`/apps?q=${E(s)}`)}function B(){h(y,"/apps")}return d(),V(()=>S.currentRoute.value,()=>{d()}),(e,s)=>{const c=b;return r(),R(c,null,{title:g(()=>[M(t(e.$t("page_title.apps")),1)]),body:g(()=>[a("ul",K,[a("li",{onClick:p(B,["prevent"]),class:u({active:!n.value})},[a("span",P,t(e.$t("all")),1),l(o).packages>=0?(r(),m("span",j,t(l(o).packages.toLocaleString()),1)):v("",!0)],2),a("li",{onClick:s[0]||(s[0]=p(q=>f("user"),["prevent"])),class:u({active:n.value==="user"})},[a("span",x,t(e.$t("app_type.user")),1),i.value>=0?(r(),m("span",F,t(i.value.toLocaleString()),1)):v("",!0)],2),a("li",{onClick:s[1]||(s[1]=p(q=>f("system"),["prevent"])),class:u({active:n.value==="system"})},[a("span",H,t(e.$t("app_type.system")),1),l(o).packagesSystem>=0?(r(),m("span",J,t(l(o).packagesSystem.toLocaleString()),1)):v("",!0)],2)])]),_:1})}}});export{Y as default}; diff --git a/app/src/main/resources/web/assets/AppsView-89NMnT97.js b/app/src/main/resources/web/assets/AppsView-CjhlN3-N.js similarity index 62% rename from app/src/main/resources/web/assets/AppsView-89NMnT97.js rename to app/src/main/resources/web/assets/AppsView-CjhlN3-N.js index dc7156db..988254a8 100644 --- a/app/src/main/resources/web/assets/AppsView-89NMnT97.js +++ b/app/src/main/resources/web/assets/AppsView-CjhlN3-N.js @@ -1 +1 @@ -import{_ as xe}from"./VPagination.vuevuetypescriptsetuptruelang-DUdPyPtr.js";import{a1 as T,d as Fe,s as Z,i as Me,ag as Te,u as Ke,h as S,g as Ne,I as Qe,ah as ze,J as Ge,K as ee,j as Re,L as je,M as He,c as l,a,m as t,t as i,x as h,w as r,p as k,e as I,V as A,q as te,N as se,O as w,P as M,v as ae,Q as Oe,f as Je,C as Xe,ai as Ye,aj as We,ak as Ze,al as et,am as tt,S as st,o as n,E as at,an as ne,U as oe,X as nt,F as ot,G as lt,Y as it,ao as ct,ap as dt,a0 as pt,aq as ut,a3 as rt,ae as _t,H as vt}from"./index-B-S542RM.js";import{_ as ht,a as kt}from"./SearchInput-D0d2xIiv.js";import{_ as mt}from"./sort-rounded-BVzv_GA2.js";import{u as ft,a as gt}from"./key-events-D1Kh05Em.js";import{u as yt}from"./search-k8SzNgo1.js";import"./search-rounded-TCa6qTC1.js";import"./rss-feed-rounded-DzJ3TVan.js";const le=p=>{T.emit("tap_phone",p)};function bt(p,D){const m=p.findIndex(L=>L.id===D);m!==-1&&p.splice(m,1)}const g=p=>(ot("data-v-40570fe8"),p=p(),lt(),p),wt={class:"top-app-bar"},Ct=["checked","indeterminate"],$t={class:"title"},St={key:0},It={key:1},At=g(()=>a("md-ripple",null,null,-1)),Dt={class:"actions"},Lt=g(()=>a("md-ripple",null,null,-1)),Ut=["disabled"],qt=g(()=>a("md-ripple",null,null,-1)),Bt={key:0,indeterminate:""},Et={class:"menu-items"},Pt=["onClick","selected"],Vt={slot:"headline"},xt={class:"scroll-content"},Ft=["onClick","onMouseover"],Mt={class:"start"},Tt=["onClick","checked"],Kt=["onClick","checked"],Nt={class:"number"},Qt=["src"],zt={class:"title"},Gt={class:"subtitle"},Rt={class:"actions"},jt={indeterminate:"",class:"spinner-sm"},Ht=["onClick"],Ot=["onClick"],Jt=g(()=>a("md-ripple",null,null,-1)),Xt=["onClick"],Yt=g(()=>a("md-ripple",null,null,-1)),Wt={class:"time"},Zt={class:"start"},es=g(()=>a("div",{class:"checkbox"},[a("div",{class:"skeleton-checkbox"})],-1)),ts={class:"number"},ss=it('
',5),as={key:0,class:"no-data-placeholder"},f=50,ns=Fe({__name:"AppsView",setup(p){var W;const{app:D,urlTokenKey:m,uploads:L}=Z(Me()),{input:ie,upload:ce,uploadChanged:K}=Te(L),N=Ke(),u=S([]),{t:U}=Ne(),{appSortBy:q}=Z(N),{parseQ:de}=yt(),Q=Qe({tagIds:[]}),pe=ct(),C=S(!1),z=Oe(),G=z.query,B=S(parseInt(((W=G.page)==null?void 0:W.toString())??"1")),$=S(""),{selectedIds:y,allChecked:R,realAllChecked:E,selectRealAll:ue,allCheckedAlertVisible:re,clearSelection:P,toggleAllChecked:j,toggleSelect:H,total:_,checked:V,shiftEffectingIds:O,handleItemClick:_e,handleMouseOver:ve,selectAll:he,shouldSelect:ke}=ft(u),{downloadItems:me}=ze(m,Ge.PACKAGE,P,"apps.zip"),{downloadFile:fe}=dt(m),x=e=>{const o=z.query.q;Je(N,o?`/apps?page=${e}&q=${o}`:`/apps?page=${e}`)},{keyDown:J,keyUp:X}=gt(_,f,B,he,P,x,()=>{}),ge=()=>{ce(D.value.downloadsDir)},ye=["user","system"].map(e=>({id:e,name:U("app_type."+e)})),be=e=>{e.isUninstalling=!1},{loading:F,fetch:we}=ee({handle:(e,o)=>{C.value=!1,o?Xe(U(o),"error"):e&&(u.value=e.packages.map(b=>({...b,isUninstalling:!1,icon:Ye(m.value,"pkgicon://"+b.id)})),_.value=e.packageCount)},document:We,variables:()=>({offset:(B.value-1)*f,limit:f,query:$.value,sortBy:q.value}),appApi:!0});function Ce(e){return e?`/apps?q=${e}`:"/apps"}function $e(e,o){C.value=!0,q.value=o,x(1),e.close()}const{mutate:Se}=Re({document:Ze,appApi:!0});function Ie(e){e.isUninstalling=!0,le(U("confirm_uninstallation_on_phone")),Se({id:e.id})}const{loading:Ae,fetch:De}=ee({handle:e=>{if(e)for(const o of e.packageStatuses)o.exist||(bt(u.value,o.id),le(""))},document:et,variables:()=>({ids:u.value.filter(e=>e.isUninstalling).map(e=>e.id)}),appApi:!0}),Y=e=>{e.status};return je(()=>{var e;setInterval(()=>{u.value.some(o=>o.isUninstalling)&&!Ae.value&&De()},1e3),$.value=pt(((e=G.q)==null?void 0:e.toString())??""),de(Q,$.value),we(),T.on("upload_task_done",Y),window.addEventListener("keydown",J),window.addEventListener("keyup",X)}),He(()=>{T.off("upload_task_done",Y),window.removeEventListener("keydown",J),window.removeEventListener("keyup",X)}),(e,o)=>{const b=ut,Le=ht,Ue=mt,qe=tt,Be=kt,Ee=rt,Pe=_t,Ve=xe,v=st("tooltip");return n(),l(w,null,[a("div",wt,[a("md-checkbox",{"touch-target":"wrapper",onChange:o[0]||(o[0]=(...s)=>t(j)&&t(j)(...s)),checked:t(R),indeterminate:!t(R)&&t(V)},null,40,Ct),a("div",$t,[t(y).length?(n(),l("span",St,i(e.$t("x_selected",{count:t(E)?t(_).toLocaleString():t(y).length.toLocaleString()})),1)):(n(),l("span",It,i(e.$t("page_title.apps"))+" ("+i(t(_).toLocaleString())+")",1)),t(V)?h((n(),l("button",{key:2,class:"btn-icon",onClick:o[1]||(o[1]=r(s=>t(me)(t(E),t(y),$.value),["stop"]))},[At,k(b)])),[[v,e.$t("download")]]):I("",!0)]),a("div",Dt,[k(Le,{filter:Q,types:t(ye),"get-url":Ce},null,8,["filter","types"]),a("button",{class:"btn-icon",onClick:r(ge,["stop"]),style:{display:"none"}},[Lt,A(" "+i(e.$t("install")),1)]),k(qe,null,{content:te(s=>[a("div",Et,[(n(!0),l(w,null,M(t(pe),d=>(n(),l("md-menu-item",{onClick:c=>$e(s,d.value),key:d.value,selected:d.value===t(q)},[a("div",Vt,i(e.$t(d.label)),1)],8,Pt))),128))])]),default:te(()=>[h((n(),l("button",{class:"btn-icon btn-sort",disabled:C.value},[qt,C.value?(n(),l("md-circular-progress",Bt)):(n(),ae(Ue,{key:1}))],8,Ut)),[[v,e.$t("sort")]])]),_:1})])]),k(Be,{limit:f,total:t(_),"all-checked-alert-visible":t(re),"real-all-checked":t(E),"select-real-all":t(ue),"clear-selection":t(P)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),a("div",xt,[a("div",{class:se(["app-list",{"select-mode":t(V)}])},[(n(!0),l(w,null,M(u.value,(s,d)=>(n(),l("section",{class:se(["app-item selectable-card",{selected:t(y).includes(s.id),selecting:t(O).includes(s.id)}]),key:s.id,onClick:r(c=>t(_e)(c,s,d,()=>{}),["stop"]),onMouseover:c=>t(ve)(c,d)},[a("div",Mt,[t(O).includes(s.id)?(n(),l("md-checkbox",{key:0,class:"checkbox","touch-target":"wrapper",onClick:r(c=>t(H)(c,s,d),["stop"]),checked:t(ke)},null,8,Tt)):(n(),l("md-checkbox",{key:1,class:"checkbox","touch-target":"wrapper",onClick:r(c=>t(H)(c,s,d),["stop"]),checked:t(y).includes(s.id)},null,8,Kt)),a("span",Nt,[k(Ee,{id:d+1,raw:s},null,8,["id","raw"])])]),a("img",{class:"image",width:"50",height:"50",src:s.icon},null,8,Qt),a("div",zt,i(s.name)+" ("+i(s.version)+")",1),a("div",Gt,[a("span",null,i(s.id),1),a("span",null,i(t(at)(s.size)),1),a("span",null,i(e.$t("app_type."+s.type)),1)]),a("div",Rt,[s.isUninstalling?(n(),l(w,{key:0},[h(a("md-circular-progress",jt,null,512),[[v,e.$t("uninstalling")]]),A("  "),a("md-outlined-button",{class:"btn-sm",onClick:r(c=>be(s),["stop"])},i(e.$t("cancel")),9,Ht)],64)):h((n(),l("button",{key:1,class:"btn-icon sm",onClick:r(c=>Ie(s),["stop"])},[Jt,k(Pe)],8,Ot)),[[v,e.$t("uninstall")]]),h((n(),l("button",{class:"btn-icon sm",onClick:r(c=>t(fe)(s.path,`${s.name.replace(" ","")}-${s.id}.apk`),["stop"])},[Yt,k(b)],8,Xt)),[[v,e.$t("download")]])]),a("div",Wt,[h((n(),l("span",null,[A(i(e.$t("installed_at"))+": "+i(t(oe)(s.installedAt)),1)])),[[v,t(ne)(s.installedAt)]]),h((n(),l("span",null,[A(i(e.$t("updated_at"))+": "+i(t(oe)(s.updatedAt)),1)])),[[v,t(ne)(s.updatedAt)]])])],42,Ft))),128)),t(F)&&u.value.length===0?(n(),l(w,{key:0},M(20,s=>a("section",{class:"app-item selectable-card-skeleton",key:s},[a("div",Zt,[es,a("span",ts,i(s),1)]),ss])),64)):I("",!0)],2),!t(F)&&u.value.length===0?(n(),l("div",as,i(e.$t(t(nt)(t(F)))),1)):I("",!0),t(_)>f?(n(),ae(Ve,{key:1,page:B.value,go:x,total:t(_),limit:f},null,8,["page","total"])):I("",!0),a("input",{ref_key:"fileInput",ref:ie,style:{display:"none"},type:"file",accept:".apk",multiple:"",onChange:o[2]||(o[2]=(...s)=>t(K)&&t(K)(...s))},null,544)])],64)}}}),_s=vt(ns,[["__scopeId","data-v-40570fe8"]]);export{_s as default}; +import{_ as xe}from"./VPagination.vuevuetypescriptsetuptruelang-Cqtk1_Un.js";import{a1 as T,d as Fe,s as Z,i as Me,ai as Te,u as Ke,h as S,g as Ne,I as Qe,aj as ze,J as Ge,K as ee,j as Re,L as je,M as He,c as l,a,m as t,t as i,x as k,w as u,p as h,e as I,V as A,q as te,N as se,O as w,P as M,v as ae,Q as Oe,f as Je,C as Xe,ak as Ye,al as We,am as Ze,an as et,ao as tt,S as st,o as n,E as at,ap as ne,U as oe,X as nt,F as ot,G as lt,Y as it,aq as ct,ar as dt,a0 as pt,as as rt,a3 as ut,ae as _t,H as vt}from"./index-BXOWKrmL.js";import{_ as kt,a as ht}from"./SearchInput-ZLdB9f4z.js";import{_ as mt}from"./sort-rounded-CjGrBbPk.js";import{u as ft,a as gt}from"./key-events-DpI8L-ce.js";import{u as yt}from"./search-B-8eugyA.js";import"./search-rounded-DpdJ2cSK.js";import"./rss-feed-rounded-DN7yBBrR.js";const le=p=>{T.emit("tap_phone",p)};function bt(p,D){const m=p.findIndex(L=>L.id===D);m!==-1&&p.splice(m,1)}const g=p=>(ot("data-v-40570fe8"),p=p(),lt(),p),wt={class:"top-app-bar"},Ct=["checked","indeterminate"],$t={class:"title"},St={key:0},It={key:1},At=g(()=>a("md-ripple",null,null,-1)),Dt={class:"actions"},Lt=g(()=>a("md-ripple",null,null,-1)),Ut=["disabled"],qt=g(()=>a("md-ripple",null,null,-1)),Bt={key:0,indeterminate:""},Et={class:"menu-items"},Pt=["onClick","selected"],Vt={slot:"headline"},xt={class:"scroll-content"},Ft=["onClick","onMouseover"],Mt={class:"start"},Tt=["onClick","checked"],Kt=["onClick","checked"],Nt={class:"number"},Qt=["src"],zt={class:"title"},Gt={class:"subtitle"},Rt={class:"actions"},jt={indeterminate:"",class:"spinner-sm"},Ht=["onClick"],Ot=["onClick"],Jt=g(()=>a("md-ripple",null,null,-1)),Xt=["onClick"],Yt=g(()=>a("md-ripple",null,null,-1)),Wt={class:"time"},Zt={class:"start"},es=g(()=>a("div",{class:"checkbox"},[a("div",{class:"skeleton-checkbox"})],-1)),ts={class:"number"},ss=it('
',5),as={key:0,class:"no-data-placeholder"},f=50,ns=Fe({__name:"AppsView",setup(p){var W;const{app:D,urlTokenKey:m,uploads:L}=Z(Me()),{input:ie,upload:ce,uploadChanged:K}=Te(L),N=Ke(),r=S([]),{t:U}=Ne(),{appSortBy:q}=Z(N),{parseQ:de}=yt(),Q=Qe({tagIds:[]}),pe=ct(),C=S(!1),z=Oe(),G=z.query,B=S(parseInt(((W=G.page)==null?void 0:W.toString())??"1")),$=S(""),{selectedIds:y,allChecked:R,realAllChecked:E,selectRealAll:re,allCheckedAlertVisible:ue,clearSelection:P,toggleAllChecked:j,toggleSelect:H,total:_,checked:V,shiftEffectingIds:O,handleItemClick:_e,handleMouseOver:ve,selectAll:ke,shouldSelect:he}=ft(r),{downloadItems:me}=ze(m,Ge.PACKAGE,P,"apps.zip"),{downloadFile:fe}=dt(m),x=e=>{const o=z.query.q;Je(N,o?`/apps?page=${e}&q=${o}`:`/apps?page=${e}`)},{keyDown:J,keyUp:X}=gt(_,f,B,ke,P,x,()=>{}),ge=()=>{ce(D.value.downloadsDir)},ye=["user","system"].map(e=>({id:e,name:U("app_type."+e)})),be=e=>{e.isUninstalling=!1},{loading:F,fetch:we}=ee({handle:(e,o)=>{C.value=!1,o?Xe(U(o),"error"):e&&(r.value=e.packages.map(b=>({...b,isUninstalling:!1,icon:Ye(m.value,"pkgicon://"+b.id)})),_.value=e.packageCount)},document:We,variables:()=>({offset:(B.value-1)*f,limit:f,query:$.value,sortBy:q.value}),appApi:!0});function Ce(e){return e?`/apps?q=${e}`:"/apps"}function $e(e,o){C.value=!0,q.value=o,x(1),e.close()}const{mutate:Se}=Re({document:Ze,appApi:!0});function Ie(e){e.isUninstalling=!0,le(U("confirm_uninstallation_on_phone")),Se({id:e.id})}const{loading:Ae,fetch:De}=ee({handle:e=>{if(e)for(const o of e.packageStatuses)o.exist||(bt(r.value,o.id),le(""))},document:et,variables:()=>({ids:r.value.filter(e=>e.isUninstalling).map(e=>e.id)}),appApi:!0}),Y=e=>{e.status};return je(()=>{var e;setInterval(()=>{r.value.some(o=>o.isUninstalling)&&!Ae.value&&De()},1e3),$.value=pt(((e=G.q)==null?void 0:e.toString())??""),de(Q,$.value),we(),T.on("upload_task_done",Y),window.addEventListener("keydown",J),window.addEventListener("keyup",X)}),He(()=>{T.off("upload_task_done",Y),window.removeEventListener("keydown",J),window.removeEventListener("keyup",X)}),(e,o)=>{const b=rt,Le=kt,Ue=mt,qe=tt,Be=ht,Ee=ut,Pe=_t,Ve=xe,v=st("tooltip");return n(),l(w,null,[a("div",wt,[a("md-checkbox",{"touch-target":"wrapper",onChange:o[0]||(o[0]=(...s)=>t(j)&&t(j)(...s)),checked:t(R),indeterminate:!t(R)&&t(V)},null,40,Ct),a("div",$t,[t(y).length?(n(),l("span",St,i(e.$t("x_selected",{count:t(E)?t(_).toLocaleString():t(y).length.toLocaleString()})),1)):(n(),l("span",It,i(e.$t("page_title.apps"))+" ("+i(t(_).toLocaleString())+")",1)),t(V)?k((n(),l("button",{key:2,class:"btn-icon",onClick:o[1]||(o[1]=u(s=>t(me)(t(E),t(y),$.value),["stop"]))},[At,h(b)])),[[v,e.$t("download")]]):I("",!0)]),a("div",Dt,[h(Le,{filter:Q,types:t(ye),"get-url":Ce},null,8,["filter","types"]),a("button",{class:"btn-icon",onClick:u(ge,["stop"]),style:{display:"none"}},[Lt,A(" "+i(e.$t("install")),1)]),h(qe,null,{content:te(s=>[a("div",Et,[(n(!0),l(w,null,M(t(pe),d=>(n(),l("md-menu-item",{onClick:c=>$e(s,d.value),key:d.value,selected:d.value===t(q)},[a("div",Vt,i(e.$t(d.label)),1)],8,Pt))),128))])]),default:te(()=>[k((n(),l("button",{class:"btn-icon btn-sort",disabled:C.value},[qt,C.value?(n(),l("md-circular-progress",Bt)):(n(),ae(Ue,{key:1}))],8,Ut)),[[v,e.$t("sort")]])]),_:1})])]),h(Be,{limit:f,total:t(_),"all-checked-alert-visible":t(ue),"real-all-checked":t(E),"select-real-all":t(re),"clear-selection":t(P)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),a("div",xt,[a("div",{class:se(["app-list",{"select-mode":t(V)}])},[(n(!0),l(w,null,M(r.value,(s,d)=>(n(),l("section",{class:se(["app-item selectable-card",{selected:t(y).includes(s.id),selecting:t(O).includes(s.id)}]),key:s.id,onClick:u(c=>t(_e)(c,s,d,()=>{}),["stop"]),onMouseover:c=>t(ve)(c,d)},[a("div",Mt,[t(O).includes(s.id)?(n(),l("md-checkbox",{key:0,class:"checkbox","touch-target":"wrapper",onClick:u(c=>t(H)(c,s,d),["stop"]),checked:t(he)},null,8,Tt)):(n(),l("md-checkbox",{key:1,class:"checkbox","touch-target":"wrapper",onClick:u(c=>t(H)(c,s,d),["stop"]),checked:t(y).includes(s.id)},null,8,Kt)),a("span",Nt,[h(Ee,{id:d+1,raw:s},null,8,["id","raw"])])]),a("img",{class:"image",width:"50",height:"50",src:s.icon},null,8,Qt),a("div",zt,i(s.name)+" ("+i(s.version)+")",1),a("div",Gt,[a("span",null,i(s.id),1),a("span",null,i(t(at)(s.size)),1),a("span",null,i(e.$t("app_type."+s.type)),1)]),a("div",Rt,[s.isUninstalling?(n(),l(w,{key:0},[k(a("md-circular-progress",jt,null,512),[[v,e.$t("uninstalling")]]),A("  "),a("md-outlined-button",{class:"btn-sm",onClick:u(c=>be(s),["stop"])},i(e.$t("cancel")),9,Ht)],64)):k((n(),l("button",{key:1,class:"btn-icon sm",onClick:u(c=>Ie(s),["stop"])},[Jt,h(Pe)],8,Ot)),[[v,e.$t("uninstall")]]),k((n(),l("button",{class:"btn-icon sm",onClick:u(c=>t(fe)(s.path,`${s.name.replace(" ","")}-${s.id}.apk`),["stop"])},[Yt,h(b)],8,Xt)),[[v,e.$t("download")]])]),a("div",Wt,[k((n(),l("span",null,[A(i(e.$t("installed_at"))+": "+i(t(oe)(s.installedAt)),1)])),[[v,t(ne)(s.installedAt)]]),k((n(),l("span",null,[A(i(e.$t("updated_at"))+": "+i(t(oe)(s.updatedAt)),1)])),[[v,t(ne)(s.updatedAt)]])])],42,Ft))),128)),t(F)&&r.value.length===0?(n(),l(w,{key:0},M(20,s=>a("section",{class:"app-item selectable-card-skeleton",key:s},[a("div",Zt,[es,a("span",ts,i(s),1)]),ss])),64)):I("",!0)],2),!t(F)&&r.value.length===0?(n(),l("div",as,i(e.$t(t(nt)(t(F)))),1)):I("",!0),t(_)>f?(n(),ae(Ve,{key:1,page:B.value,go:x,total:t(_),limit:f},null,8,["page","total"])):I("",!0),a("input",{ref_key:"fileInput",ref:ie,style:{display:"none"},type:"file",accept:".apk",multiple:"",onChange:o[2]||(o[2]=(...s)=>t(K)&&t(K)(...s))},null,544)])],64)}}}),_s=vt(ns,[["__scopeId","data-v-40570fe8"]]);export{_s as default}; diff --git a/app/src/main/resources/web/assets/AudiosSidebar-CBgA4bNr.js b/app/src/main/resources/web/assets/AudiosSidebar-CBgA4bNr.js deleted file mode 100644 index 2b5dfecf..00000000 --- a/app/src/main/resources/web/assets/AudiosSidebar-CBgA4bNr.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a}from"./MediaSidebar.vuevuetypescriptsetuptruelang-BEpTuoep.js";import{d as e,v as r,m as o,o as p,J as m,aY as i}from"./index-B-S542RM.js";import"./LeftSidebar.vuevuetypescriptsetuptruelang-Bkp0VFG-.js";import"./TagFilter.vuevuetypescriptsetuptruelang-DXYEFTYG.js";import"./more-vert-XZtlvs7x.js";import"./EditValueModal-u3M261_O.js";import"./vee-validate.esm-D5u4WlYW.js";import"./search-k8SzNgo1.js";import"./feature-Cs4tKJbl.js";const q=e({__name:"AudiosSidebar",setup(n){return(s,_)=>{const t=a;return p(),r(t,{type:o(m).AUDIO,gql:o(i)},null,8,["type","gql"])}}});export{q as default}; diff --git a/app/src/main/resources/web/assets/AudiosSidebar-oyD_wcyj.js b/app/src/main/resources/web/assets/AudiosSidebar-oyD_wcyj.js new file mode 100644 index 00000000..88c477ff --- /dev/null +++ b/app/src/main/resources/web/assets/AudiosSidebar-oyD_wcyj.js @@ -0,0 +1 @@ +import{_ as e}from"./MediaSidebar.vuevuetypescriptsetuptruelang-BnNr5Ols.js";import{d as a,v as r,m as o,o as p,J as m,b2 as i}from"./index-BXOWKrmL.js";import"./LeftSidebar.vuevuetypescriptsetuptruelang-qrlto0-t.js";import"./TagFilter.vuevuetypescriptsetuptruelang-F0HSGzO6.js";import"./more-vert-B_3Etgle.js";import"./EditValueModal-HQ024-FF.js";import"./vee-validate.esm-Bmkx0D8v.js";import"./search-B-8eugyA.js";const k=a({__name:"AudiosSidebar",setup(n){return(s,_)=>{const t=e;return p(),r(t,{type:o(m).AUDIO,gql:o(i)},null,8,["type","gql"])}}});export{k as default}; diff --git a/app/src/main/resources/web/assets/AudiosView-4yfLJMGs.js b/app/src/main/resources/web/assets/AudiosView-4yfLJMGs.js deleted file mode 100644 index 2d9c1a3c..00000000 --- a/app/src/main/resources/web/assets/AudiosView-4yfLJMGs.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as bt}from"./VPagination.vuevuetypescriptsetuptruelang-DUdPyPtr.js";import{o as a,c,a as n,j as Ve,aT as wt,g as Ue,a1 as F,C as ze,h as U,aU as It,d as At,u as Et,s as qe,I as Dt,i as St,ag as Fe,aD as qt,J as Ft,aE as Lt,aF as Mt,aG as Bt,aI as Pt,ah as Rt,K as Vt,L as Ut,M as zt,m as e,t as g,O as q,x as r,v as p,q as d,w as l,e as z,p as i,aH as Nt,N as Le,P as ee,Q as Ht,f as Qt,aV as Gt,am as Kt,S as Ot,aL as Me,aR as jt,aA as xt,E as Wt,ab as Xt,aM as Be,U as Jt,V as Yt,W as Zt,X as eo,Y as to,ap as oo,ao as so,Z as ao,$ as no,a0 as lo,ae as io,aq as co,a2 as ro,a3 as uo,a4 as po,F as _o,G as mo,aO as vo,H as fo}from"./index-B-S542RM.js";import{_ as go,a as ko,b as ho}from"./SearchInput-D0d2xIiv.js";import{_ as yo}from"./sort-rounded-BVzv_GA2.js";import{_ as $o}from"./upload-rounded-_5wwNL4r.js";import{_ as Co}from"./restore-from-trash-outline-rounded-Ck6P-VkW.js";import{_ as To}from"./IconButton.vuevuetypescriptsetuptruelang-CxW8gnDA.js";import{u as bo}from"./search-k8SzNgo1.js";import{u as wo,a as Io}from"./key-events-D1Kh05Em.js";import{a as Ao}from"./tags-x91i2rzh.js";import{u as Eo,a as Do}from"./media-trash-C0Lwc6-9.js";import{h as Pe}from"./feature-Cs4tKJbl.js";import"./search-rounded-TCa6qTC1.js";import"./rss-feed-rounded-DzJ3TVan.js";import"./vee-validate.esm-D5u4WlYW.js";const So={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},qo=n("path",{fill:"currentColor",d:"M10 16q.425 0 .713-.288T11 15V9q0-.425-.288-.712T10 8t-.712.288T9 9v6q0 .425.288.713T10 16m4 0q.425 0 .713-.288T15 15V9q0-.425-.288-.712T14 8t-.712.288T13 9v6q0 .425.288.713T14 16m-2 6q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12t-.788 3.9t-2.137 3.175t-3.175 2.138T12 22m0-2q3.35 0 5.675-2.325T20 12t-2.325-5.675T12 4T6.325 6.325T4 12t2.325 5.675T12 20m0-8"},null,-1),Fo=[qo];function Lo(k,b){return a(),c("svg",So,[...Fo])}const Mo={name:"material-symbols-pause-circle-outline-rounded",render:Lo},Bo={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Po=n("path",{fill:"currentColor",d:"M3 16v-2h7v2zm0-4v-2h11v2zm0-4V6h11v2zm13 12v-4h-4v-2h4v-4h2v4h4v2h-4v4z"},null,-1),Ro=[Po];function Vo(k,b){return a(),c("svg",Bo,[...Ro])}const Uo={name:"material-symbols-playlist-add",render:Vo};function Re(k,b,I=500){const _=k.cloneNode(!0),h=k.getBoundingClientRect(),P=b.getBoundingClientRect();_.style.position="absolute",_.style.top=h.top+"px",_.style.left=h.left+"px",_.style.opacity=1,document.body.appendChild(_);let y=0;function $(S){y||(y=S);const B=S-y,A=Math.min(B/I,1);_.style.top=h.top+(P.top-h.top)*A+"px",_.style.left=h.left+(P.left-h.left)*A+"px",A<1?requestAnimationFrame($):document.body.removeChild(_)}requestAnimationFrame($)}const zo=(k,b)=>{const{mutate:I,loading:_,onDone:h}=Ve({document:wt,appApi:!0}),{t:P}=Ue();return h(()=>{F.emit("refetch_app"),b()}),{loading:_,addItemsToPlaylist:(y,$,S,B)=>{let A=B;if(!S){if($.length===0){ze(P("select_first"),"error");return}A=`ids:${$.join(",")}`}const G=y.target,K=document.getElementById("quick-audio");Re(G,K),I({query:A})},addToPlaylist:(y,$)=>{const S=y.target,B=document.getElementById("quick-audio");Re(S,B),I({query:`ids:${$.id}`})}}},No=()=>{const k=U(""),{mutate:b,loading:I,onDone:_}=Ve({document:It,appApi:!0});return _(()=>{F.emit("play_audio")}),{loading:I,playPath:k,play:h=>{k.value=h.path,b({path:h.path})},pause:()=>{F.emit("pause_audio")}}},Ho=k=>(_o("data-v-8acfaff4"),k=k(),mo(),k),Qo={class:"top-app-bar"},Go=["checked","indeterminate"],Ko={class:"title"},Oo={key:0},jo={key:1},xo={class:"actions"},Wo=["onClick"],Xo={slot:"headline"},Jo=["onClick"],Yo={slot:"headline"},Zo={class:"menu-items"},es=["onClick","selected"],ts={slot:"headline"},os=["onClick","onMouseover"],ss={class:"start"},as=["onClick","checked"],ns=["onClick","checked"],ls={class:"number"},is={class:"image"},ds=["src"],cs=["src","onError"],rs={class:"title"},us={class:"subtitle"},ps={class:"duration"},_s=["onClick"],ms={class:"actions"},vs={key:2,indeterminate:"",class:"spinner-sm"},fs={class:"artist"},gs={class:"time"},ks={class:"start"},hs=Ho(()=>n("div",{class:"checkbox"},[n("div",{class:"skeleton-checkbox"})],-1)),ys={class:"number"},$s=to('
',6),Cs={key:0,class:"no-data-placeholder"},V=50,Ts=At({__name:"AudiosView",setup(k){var we;const b=Et(),{audioSortBy:I}=qe(b),_=U([]),{t:h}=Ue(),{parseQ:P}=bo(),y=Dt({tagIds:[]}),{app:$,urlTokenKey:S,audioPlaying:B,uploads:A}=qe(St()),G=t=>{var s;return B.value&&((s=$.value)==null?void 0:s.audioCurrent)===t.path},{input:K,upload:Ne,uploadChanged:te}=Fe(A),{input:He,upload:Qe,uploadChanged:oe}=Fe(A),{dropping:Ge,fileDragEnter:se,fileDragLeave:ae,dropFiles:Ke}=qt(A),O=U(!1),f=Ft.AUDIO,ne=Ht(),le=ne.query,j=U(parseInt(((we=le.page)==null?void 0:we.toString())??"1")),{tags:N,buckets:x,fetch:Oe}=Lt(f),je=Mt(()=>{const t={};return x.value.forEach(s=>{t[s.id]=s}),t}),w=U(""),{addToTags:xe}=Ao(f,N),{deleteItems:W,deleteItem:ie}=Bt(),{view:We}=Pt(f),{selectedIds:C,allChecked:de,realAllChecked:E,selectRealAll:Xe,allCheckedAlertVisible:Je,clearSelection:L,toggleAllChecked:ce,toggleSelect:re,total:D,checked:X,shiftEffectingIds:ue,handleItemClick:Ye,handleMouseOver:Ze,selectAll:et,shouldSelect:tt}=wo(_),{downloadItems:pe}=Rt(S,f,L,"audios.zip"),{downloadFile:_e}=oo(S),me=t=>{const s=ne.query.q;Qt(b,s?`/audios?page=${t}&q=${s}`:`/audios?page=${t}`)},{keyDown:ve,keyUp:fe}=Io(D,V,j,et,L,me,()=>{W(f,C.value,E.value,D.value,w.value)}),{addItemsToPlaylist:ot,addToPlaylist:st}=zo(_,L),at=so(),ge=U([]),{play:nt,playPath:lt,loading:it,pause:dt}=No(),ct=t=>{ge.value.push(t)},{loading:J,fetch:R}=Vt({handle:(t,s)=>{O.value=!1,s?ze(h(s),"error"):t&&(_.value=t.items,D.value=t.total)},document:Gt,variables:()=>({offset:(j.value-1)*V,limit:V,query:w.value,sortBy:I.value}),appApi:!0}),{trashLoading:ke,trash:he}=Eo(f,L,R),{restoreLoading:ye,restore:$e}=Do(f,L,R);function rt(t){return t?`/audios?q=${t}`:"/audios"}function ut(t,s){O.value=!0,I.value=s,t.close()}function Y(){const t=x.value.find(s=>s.id===y.bucketId);return t?vo(t.topItems[0]):`${$.value.internalStoragePath}/Music`}function pt(t){Ne(Y()),t.close()}function _t(t){Qe(Y()),t.close()}function mt(t){Ke(t,Y(),"audio")}const H=()=>{let t=w.value;return E.value||(t=`ids:${C.value.join(",")}`),t},Ce=t=>{t.type===f&&(L(),R())},Te=t=>{t.type===f&&R()},be=t=>{t.type===f&&(L(),R())};function vt(t){const s=t.tags.map(M=>M.id);ao(no,{type:f,tags:N.value,item:{key:t.id,title:t.title,size:t.size},selected:N.value.filter(M=>s.includes(M.id))})}return Ut(()=>{var t;w.value=lo(((t=le.q)==null?void 0:t.toString())??""),P(y,w.value),Oe(),R(),F.on("item_tags_updated",Te),F.on("items_tags_updated",Ce),F.on("media_items_actioned",be),window.addEventListener("keydown",ve),window.addEventListener("keyup",fe)}),zt(()=>{F.off("item_tags_updated",Te),F.off("items_tags_updated",Ce),F.off("media_items_actioned",be),window.removeEventListener("keydown",ve),window.removeEventListener("keyup",fe)}),(t,s)=>{const M=io,m=To,Ie=Co,Q=co,Ae=ho,Ee=Uo,De=ro,ft=go,gt=$o,Se=Kt,kt=yo,ht=ko,yt=uo,$t=po,Ct=Mo,Tt=bt,u=Ot("tooltip");return a(),c(q,null,[n("div",Qo,[n("md-checkbox",{"touch-target":"wrapper",onChange:s[0]||(s[0]=(...o)=>e(ce)&&e(ce)(...o)),checked:e(de),indeterminate:!e(de)&&e(X)},null,40,Go),n("div",Ko,[e(C).length?(a(),c("span",Oo,g(t.$t("x_selected",{count:e(E)?e(D).toLocaleString():e(C).length.toLocaleString()})),1)):(a(),c("span",jo,g(t.$t("page_title.audios"))+" ("+g(e(D).toLocaleString())+")",1)),e(X)?(a(),c(q,{key:2},[y.trash?(a(),c(q,{key:0},[r((a(),p(m,{onClick:s[1]||(s[1]=l(o=>e(W)(e(f),e(C),e(E),e(D),w.value),["stop"]))},{icon:d(()=>[i(M)]),_:1})),[[u,t.$t("delete")]]),r((a(),p(m,{onClick:s[2]||(s[2]=l(o=>e($e)(H()),["stop"])),loading:e(ye)(H())},{icon:d(()=>[i(Ie)]),_:1},8,["loading"])),[[u,t.$t("restore")]]),r((a(),p(m,{onClick:s[3]||(s[3]=l(o=>e(pe)(e(E),e(C),w.value),["stop"]))},{icon:d(()=>[i(Q)]),_:1})),[[u,t.$t("download")]])],64)):(a(),c(q,{key:1},[e(Pe)(e(Me).MEDIA_TRASH,e($).osVersion)?r((a(),p(m,{key:0,onClick:s[4]||(s[4]=l(o=>e(he)(H()),["stop"])),loading:e(ke)(H())},{icon:d(()=>[i(Ae)]),_:1},8,["loading"])),[[u,t.$t("move_to_trash")]]):r((a(),p(m,{key:1,onClick:s[5]||(s[5]=l(o=>e(W)(e(f),e(C),e(E),e(D),w.value),["stop"]))},{icon:d(()=>[i(M)]),_:1})),[[u,t.$t("delete")]]),r((a(),p(m,{onClick:s[6]||(s[6]=l(o=>e(pe)(e(E),e(C),w.value),["stop"]))},{icon:d(()=>[i(Q)]),_:1})),[[u,t.$t("download")]]),r((a(),p(m,{onClick:s[7]||(s[7]=l(o=>e(ot)(o,e(C),e(E),w.value),["stop"]))},{icon:d(()=>[i(Ee)]),_:1})),[[u,t.$t("add_to_playlist")]]),r((a(),p(m,{onClick:s[8]||(s[8]=l(o=>e(xe)(e(C),e(E),w.value),["stop"]))},{icon:d(()=>[i(De)]),_:1})),[[u,t.$t("add_to_tags")]])],64))],64)):z("",!0)]),n("div",xo,[i(ft,{filter:y,tags:e(N),buckets:e(x),"get-url":rt},null,8,["filter","tags","buckets"]),i(Se,null,{content:d(o=>[n("md-menu-item",{onClick:l(T=>pt(o),["stop"])},[n("div",Xo,g(t.$t("upload_files")),1)],8,Wo),n("md-menu-item",{onClick:l(T=>_t(o),["stop"])},[n("div",Yo,g(t.$t("upload_folder")),1)],8,Jo)]),default:d(()=>[r((a(),p(m,null,{icon:d(()=>[i(gt)]),_:1})),[[u,t.$t("upload")]])]),_:1}),i(Se,null,{content:d(o=>[n("div",Zo,[(a(!0),c(q,null,ee(e(at),T=>(a(),c("md-menu-item",{key:T.value,onClick:Z=>ut(o,T.value),selected:T.value===e(I)},[n("div",ts,g(t.$t(T.label)),1)],8,es))),128))])]),default:d(()=>[r((a(),p(m,{loading:O.value},{icon:d(()=>[i(kt)]),_:1},8,["loading"])),[[u,t.$t("sort")]])]),_:1})])]),i(ht,{limit:V,total:e(D),"all-checked-alert-visible":e(Je),"real-all-checked":e(E),"select-real-all":e(Xe),"clear-selection":e(L)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),n("div",{class:"scroll-content",onDragover:s[13]||(s[13]=l((...o)=>e(se)&&e(se)(...o),["stop","prevent"]))},[r(n("div",{class:"drag-mask",onDrop:l(mt,["stop","prevent"]),onDragleave:s[9]||(s[9]=l((...o)=>e(ae)&&e(ae)(...o),["stop","prevent"]))},g(t.$t("release_to_send_files")),545),[[Nt,e(Ge)]]),n("div",{class:Le(["audio-list",{"select-mode":e(X)}])},[(a(!0),c(q,null,ee(_.value,(o,T)=>{var Z;return a(),c("section",{class:Le(["media-item selectable-card",{selected:e(C).includes(o.id),selecting:e(ue).includes(o.id)}]),key:o.id,onClick:l(v=>e(Ye)(v,o,T,()=>{e(nt)(o)}),["stop"]),onMouseover:v=>e(Ze)(v,T)},[n("div",ss,[e(ue).includes(o.id)?(a(),c("md-checkbox",{key:0,class:"checkbox","touch-target":"wrapper",onClick:l(v=>e(re)(v,o,T),["stop"]),checked:e(tt)},null,8,as)):(a(),c("md-checkbox",{key:1,class:"checkbox","touch-target":"wrapper",onClick:l(v=>e(re)(v,o,T),["stop"]),checked:e(C).includes(o.id)},null,8,ns)),n("span",ls,[i(yt,{id:T+1,raw:o},null,8,["id","raw"])])]),n("div",is,[ge.value.includes(o.id)?(a(),c("img",{key:0,src:`/ficons/${e(jt)(o.path)}.svg`,class:"svg"},null,8,ds)):(a(),c("img",{key:1,class:"image-thumb",src:e(xt)(o.albumFileId,"&w=200&h=200"),onError:v=>ct(o.id)},null,40,cs))]),n("div",rs,g(o.title),1),n("div",us,[n("span",null,g(e(Wt)(o.size)),1),n("span",ps,g(e(Xt)(o.duration)),1),n("a",{onClick:l(v=>e(We)(e(b),o.bucketId),["stop","prevent"])},g((Z=je.value[o.bucketId])==null?void 0:Z.name),9,_s),i($t,{tags:o.tags,type:e(f),"only-links":!0},null,8,["tags","type"])]),n("div",ms,[y.trash?(a(),c(q,{key:0},[r((a(),p(m,{class:"sm",onClick:l(v=>e(ie)(e(f),o),["stop"])},{icon:d(()=>[i(M)]),_:2},1032,["onClick"])),[[u,t.$t("delete")]]),r((a(),p(m,{class:"sm",onClick:l(v=>e($e)(`ids:${o.id}`),["stop"]),loading:e(ye)(`ids:${o.id}`)},{icon:d(()=>[i(Ie)]),_:2},1032,["onClick","loading"])),[[u,t.$t("restore")]]),r((a(),p(m,{class:"sm",onClick:l(v=>e(_e)(o.path,e(Be)(o.path).replace(" ","-")),["stop"])},{icon:d(()=>[i(Q)]),_:2},1032,["onClick"])),[[u,t.$t("download")]])],64)):(a(),c(q,{key:1},[e(Pe)(e(Me).MEDIA_TRASH,e($).osVersion)?r((a(),p(m,{key:0,class:"sm",onClick:l(v=>e(he)(`ids:${o.id}`),["stop"]),loading:e(ke)(`ids:${o.id}`)},{icon:d(()=>[i(Ae)]),_:2},1032,["onClick","loading"])),[[u,t.$t("move_to_trash")]]):r((a(),p(m,{key:1,class:"sm",onClick:l(v=>e(ie)(e(f),o),["stop"])},{icon:d(()=>[i(M)]),_:2},1032,["onClick"])),[[u,t.$t("delete")]]),r((a(),p(m,{class:"sm",onClick:l(v=>e(_e)(o.path,e(Be)(o.path).replace(" ","-")),["stop"])},{icon:d(()=>[i(Q)]),_:2},1032,["onClick"])),[[u,t.$t("download")]]),r((a(),p(m,{class:"sm",onClick:l(v=>e(st)(v,o),["stop","prevent"])},{icon:d(()=>[i(Ee)]),_:2},1032,["onClick"])),[[u,t.$t("add_to_playlist")]]),r((a(),p(m,{class:"sm",onClick:l(v=>vt(o),["stop"])},{icon:d(()=>[i(De)]),_:2},1032,["onClick"])),[[u,t.$t("add_to_tags")]])],64)),e(it)&&o.path===e(lt)?(a(),c("md-circular-progress",vs)):G(o)?r((a(),p(m,{key:3,class:"sm",onClick:s[10]||(s[10]=l(v=>e(dt)(),["stop"]))},{icon:d(()=>[i(Ct)]),_:1})),[[u,t.$t("pause")]]):z("",!0)]),n("div",fs,g(o.artist),1),n("div",gs,[r((a(),c("span",null,[Yt(g(e(Zt)(o.createdAt)),1)])),[[u,e(Jt)(o.createdAt)]])])],42,os)}),128)),e(J)&&_.value.length===0?(a(),c(q,{key:0},ee(20,o=>n("section",{class:"media-item selectable-card-skeleton",key:o},[n("div",ks,[hs,n("span",ys,g(o),1)]),$s])),64)):z("",!0)],2),!e(J)&&_.value.length===0?(a(),c("div",Cs,g(t.$t(e(eo)(e(J),e($).permissions,"WRITE_EXTERNAL_STORAGE"))),1)):z("",!0),e(D)>V?(a(),p(Tt,{key:1,page:j.value,go:me,total:e(D),limit:V},null,8,["page","total"])):z("",!0),n("input",{ref_key:"fileInput",ref:K,style:{display:"none"},type:"file",accept:"audio/*",multiple:"",onChange:s[11]||(s[11]=(...o)=>e(te)&&e(te)(...o))},null,544),n("input",{ref_key:"dirFileInput",ref:He,style:{display:"none"},type:"file",accept:"audio/*",multiple:"",webkitdirectory:"",mozdirectory:"",directory:"",onChange:s[12]||(s[12]=(...o)=>e(oe)&&e(oe)(...o))},null,544)],32)],64)}}}),Us=fo(Ts,[["__scopeId","data-v-8acfaff4"]]);export{Us as default}; diff --git a/app/src/main/resources/web/assets/AudiosView-B0P2D0co.css b/app/src/main/resources/web/assets/AudiosView-B0P2D0co.css new file mode 100644 index 00000000..3657fc0c --- /dev/null +++ b/app/src/main/resources/web/assets/AudiosView-B0P2D0co.css @@ -0,0 +1 @@ +.media-item[data-v-9fac39cd]{display:grid;border-radius:8px;grid-template-areas:"start image title actions artist time" "start image subtitle actions artist time";grid-template-columns:48px 50px 2fr 210px minmax(64px,1fr) minmax(140px,auto)}.media-item[data-v-9fac39cd]:hover{cursor:pointer}.media-item .start[data-v-9fac39cd]{grid-area:start}.media-item .number[data-v-9fac39cd]{font-size:.75rem;display:flex;justify-content:center}.media-item .image[data-v-9fac39cd]{width:50px;height:50px;grid-area:image;margin-block:12px;text-align:center}.media-item .image .svg[data-v-9fac39cd]{max-width:50px;max-height:50px}.media-item .title[data-v-9fac39cd]{grid-area:title;font-weight:500;margin-inline:16px;padding-block-start:12px;word-break:break-all}.media-item .subtitle[data-v-9fac39cd]{grid-area:subtitle;display:flex;gap:8px;flex-wrap:wrap;font-size:.875rem;margin-inline:16px;margin-block-start:8px;margin-block-end:12px}.media-item .artist[data-v-9fac39cd]{grid-area:artist;display:flex;align-items:center}.media-item .actions[data-v-9fac39cd]{grid-area:actions;display:flex;flex-direction:row;gap:4px;align-items:center;visibility:visible;padding-inline:16px}.media-item .time[data-v-9fac39cd]{grid-area:time;display:flex;align-items:center;padding-inline:16px;justify-content:end}.audio-list[data-v-9fac39cd]{display:flex;flex-direction:column;gap:8px}.audio-list.select-mode .media-item .actions[data-v-9fac39cd]{visibility:hidden}.audio-list .media-item .skeleton-image[data-v-9fac39cd]{width:50px;height:50px}.audio-list .media-item .skeleton-title[data-v-9fac39cd]{width:50%;height:24px}.audio-list .media-item .skeleton-subtitle[data-v-9fac39cd]{width:40%;height:20px}.audio-list .media-item .skeleton-actions[data-v-9fac39cd]{width:140px;height:20px}.audio-list .media-item .skeleton-artist[data-v-9fac39cd],.audio-list .media-item .skeleton-time[data-v-9fac39cd]{width:60px;height:20px} diff --git a/app/src/main/resources/web/assets/AudiosView-B572va8i.css b/app/src/main/resources/web/assets/AudiosView-B572va8i.css deleted file mode 100644 index a0179f72..00000000 --- a/app/src/main/resources/web/assets/AudiosView-B572va8i.css +++ /dev/null @@ -1 +0,0 @@ -.media-item[data-v-8acfaff4]{display:grid;border-radius:8px;grid-template-areas:"start image title actions artist time" "start image subtitle actions artist time";grid-template-columns:48px 50px 2fr 210px minmax(64px,1fr) minmax(140px,auto)}.media-item[data-v-8acfaff4]:hover{cursor:pointer}.media-item .start[data-v-8acfaff4]{grid-area:start}.media-item .number[data-v-8acfaff4]{font-size:.75rem;display:flex;justify-content:center}.media-item .image[data-v-8acfaff4]{width:50px;height:50px;grid-area:image;margin-block:12px;text-align:center}.media-item .image .svg[data-v-8acfaff4]{max-width:50px;max-height:50px}.media-item .title[data-v-8acfaff4]{grid-area:title;font-weight:500;margin-inline:16px;padding-block-start:12px;word-break:break-all}.media-item .subtitle[data-v-8acfaff4]{grid-area:subtitle;display:flex;gap:8px;flex-wrap:wrap;font-size:.875rem;margin-inline:16px;margin-block-start:8px;margin-block-end:12px}.media-item .artist[data-v-8acfaff4]{grid-area:artist;display:flex;align-items:center}.media-item .actions[data-v-8acfaff4]{grid-area:actions;display:flex;flex-direction:row;gap:4px;align-items:center;visibility:visible;padding-inline:16px}.media-item .time[data-v-8acfaff4]{grid-area:time;display:flex;align-items:center;padding-inline:16px;justify-content:end}.audio-list[data-v-8acfaff4]{display:flex;flex-direction:column;gap:8px}.audio-list.select-mode .media-item .actions[data-v-8acfaff4]{visibility:hidden}.audio-list .media-item .skeleton-image[data-v-8acfaff4]{width:50px;height:50px}.audio-list .media-item .skeleton-title[data-v-8acfaff4]{width:50%;height:24px}.audio-list .media-item .skeleton-subtitle[data-v-8acfaff4]{width:40%;height:20px}.audio-list .media-item .skeleton-actions[data-v-8acfaff4]{width:140px;height:20px}.audio-list .media-item .skeleton-artist[data-v-8acfaff4],.audio-list .media-item .skeleton-time[data-v-8acfaff4]{width:60px;height:20px} diff --git a/app/src/main/resources/web/assets/AudiosView-BON-x76b.js b/app/src/main/resources/web/assets/AudiosView-BON-x76b.js new file mode 100644 index 00000000..ecfc2563 --- /dev/null +++ b/app/src/main/resources/web/assets/AudiosView-BON-x76b.js @@ -0,0 +1 @@ +import{_ as bt}from"./VPagination.vuevuetypescriptsetuptruelang-Cqtk1_Un.js";import{o as a,c,a as n,j as Ve,a$ as wt,g as Ue,a1 as F,C as ze,h as V,b0 as It,d as At,u as Et,s as Le,I as St,i as Dt,ai as Me,aF as qt,J as Ft,aG as Lt,aH as Mt,aI as Bt,aM as Pt,aj as Rt,K as Vt,aJ as Ut,aK as zt,L as Nt,M as Ht,m as e,t as k,O as q,x as r,v as p,q as d,w as l,e as z,p as i,aL as Qt,N as Be,P as te,Q as Kt,f as Gt,b1 as jt,aP as Ot,ao as Wt,S as xt,aQ as se,aR as oe,aZ as Jt,aC as Xt,E as Zt,ab as Yt,aS as Pe,U as es,V as ts,W as ss,X as os,Y as as,ar as ns,aq as ls,Z as is,$ as ds,a0 as cs,ae as rs,aT as us,as as ps,aU as _s,a2 as ms,a3 as vs,a4 as gs,F as ks,G as hs,aW as fs,H as ys}from"./index-BXOWKrmL.js";import{_ as $s,a as Cs}from"./SearchInput-ZLdB9f4z.js";import{_ as Ts}from"./sort-rounded-CjGrBbPk.js";import{_ as bs}from"./upload-rounded-D52A8109.js";import{u as ws}from"./search-B-8eugyA.js";import{u as Is,a as As}from"./key-events-DpI8L-ce.js";import{a as Es}from"./tags-BpDG2_1g.js";import"./search-rounded-DpdJ2cSK.js";import"./rss-feed-rounded-DN7yBBrR.js";import"./vee-validate.esm-Bmkx0D8v.js";const Ss={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ds=n("path",{fill:"currentColor",d:"M10 16q.425 0 .713-.288T11 15V9q0-.425-.288-.712T10 8t-.712.288T9 9v6q0 .425.288.713T10 16m4 0q.425 0 .713-.288T15 15V9q0-.425-.288-.712T14 8t-.712.288T13 9v6q0 .425.288.713T14 16m-2 6q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12t-.788 3.9t-2.137 3.175t-3.175 2.138T12 22m0-2q3.35 0 5.675-2.325T20 12t-2.325-5.675T12 4T6.325 6.325T4 12t2.325 5.675T12 20m0-8"},null,-1),qs=[Ds];function Fs(f,b){return a(),c("svg",Ss,[...qs])}const Ls={name:"material-symbols-pause-circle-outline-rounded",render:Fs},Ms={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Bs=n("path",{fill:"currentColor",d:"M3 16v-2h7v2zm0-4v-2h11v2zm0-4V6h11v2zm13 12v-4h-4v-2h4v-4h2v4h4v2h-4v4z"},null,-1),Ps=[Bs];function Rs(f,b){return a(),c("svg",Ms,[...Ps])}const Vs={name:"material-symbols-playlist-add",render:Rs};function Re(f,b,I=500){const _=f.cloneNode(!0),y=f.getBoundingClientRect(),B=b.getBoundingClientRect();_.style.position="absolute",_.style.top=y.top+"px",_.style.left=y.left+"px",_.style.opacity=1,document.body.appendChild(_);let $=0;function h(D){$||($=D);const M=D-$,A=Math.min(M/I,1);_.style.top=y.top+(B.top-y.top)*A+"px",_.style.left=y.left+(B.left-y.left)*A+"px",A<1?requestAnimationFrame(h):document.body.removeChild(_)}requestAnimationFrame(h)}const Us=(f,b)=>{const{mutate:I,loading:_,onDone:y}=Ve({document:wt,appApi:!0}),{t:B}=Ue();return y(()=>{F.emit("refetch_app"),b()}),{loading:_,addItemsToPlaylist:($,h,D,M)=>{let A=M;if(!D){if(h.length===0){ze(B("select_first"),"error");return}A=`ids:${h.join(",")}`}const K=$.target,G=document.getElementById("quick-audio");Re(K,G),I({query:A})},addToPlaylist:($,h)=>{const D=$.target,M=document.getElementById("quick-audio");Re(D,M),I({query:`ids:${h.id}`})}}},zs=()=>{const f=V(""),{mutate:b,loading:I,onDone:_}=Ve({document:It,appApi:!0});return _(()=>{F.emit("play_audio")}),{loading:I,playPath:f,play:y=>{f.value=y.path,b({path:y.path})},pause:()=>{F.emit("pause_audio")}}},Ns=f=>(ks("data-v-9fac39cd"),f=f(),hs(),f),Hs={class:"top-app-bar"},Qs=["checked","indeterminate"],Ks={class:"title"},Gs={key:0},js={key:1},Os={class:"actions"},Ws=["onClick"],xs={slot:"headline"},Js=["onClick"],Xs={slot:"headline"},Zs={class:"menu-items"},Ys=["onClick","selected"],eo={slot:"headline"},to=["onClick","onMouseover"],so={class:"start"},oo=["onClick","checked"],ao=["onClick","checked"],no={class:"number"},lo={class:"image"},io=["src"],co=["src","onError"],ro={class:"title"},uo={class:"subtitle"},po={class:"duration"},_o=["onClick"],mo={class:"actions"},vo={key:2,indeterminate:"",class:"spinner-sm"},go={class:"artist"},ko={class:"time"},ho={class:"start"},fo=Ns(()=>n("div",{class:"checkbox"},[n("div",{class:"skeleton-checkbox"})],-1)),yo={class:"number"},$o=as('
',6),Co={key:0,class:"no-data-placeholder"},R=50,To=At({__name:"AudiosView",setup(f){var Ae;const b=Et(),{audioSortBy:I}=Le(b),_=V([]),{t:y}=Ue(),{parseQ:B}=ws(),$=St({tagIds:[]}),{app:h,urlTokenKey:D,audioPlaying:M,uploads:A}=Le(Dt()),K=t=>{var o;return M.value&&((o=h.value)==null?void 0:o.audioCurrent)===t.path},{input:G,upload:Ne,uploadChanged:ae}=Me(A),{input:He,upload:Qe,uploadChanged:ne}=Me(A),{dropping:Ke,fileDragEnter:le,fileDragLeave:ie,dropFiles:Ge}=qt(A),j=V(!1),m=Ft.AUDIO,de=Kt(),ce=de.query,O=V(parseInt(((Ae=ce.page)==null?void 0:Ae.toString())??"1")),{tags:N,buckets:W,fetch:je}=Lt(m),Oe=Mt(()=>{const t={};return W.value.forEach(o=>{t[o.id]=o}),t}),w=V(""),{addToTags:We}=Es(m,N),{deleteItems:x,deleteItem:re}=Bt(),{view:xe}=Pt(m),{selectedIds:C,allChecked:ue,realAllChecked:E,selectRealAll:Je,allCheckedAlertVisible:Xe,clearSelection:P,toggleAllChecked:pe,toggleSelect:_e,total:S,checked:J,shiftEffectingIds:me,handleItemClick:Ze,handleMouseOver:Ye,selectAll:et,shouldSelect:tt}=Is(_),{downloadItems:ve}=Rt(D,m,P,"audios.zip"),{downloadFile:ge}=ns(D),ke=t=>{const o=de.query.q;Gt(b,o?`/audios?page=${t}&q=${o}`:`/audios?page=${t}`)},{keyDown:he,keyUp:fe}=As(S,R,O,et,P,ke,()=>{se(oe.MEDIA_TRASH,h.value.osVersion)?Z(m,U()):x(m,C.value,E.value,S.value,w.value)}),{addItemsToPlaylist:st,addToPlaylist:ot}=Us(_,P),at=ls(),ye=V([]),{play:nt,playPath:lt,loading:it,pause:dt}=zs(),ct=t=>{ye.value.push(t)},{loading:X,fetch:H}=Vt({handle:(t,o)=>{j.value=!1,o?ze(y(o),"error"):t&&(_.value=t.items,S.value=t.total)},document:jt,variables:()=>({offset:(O.value-1)*R,limit:R,query:w.value,sortBy:I.value}),appApi:!0}),{trashLoading:$e,trash:Z}=Ut(),{restoreLoading:Ce,restore:Te}=zt();function rt(t){return t?`/audios?q=${t}`:"/audios"}function ut(t,o){j.value=!0,I.value=o,t.close()}function Y(){const t=W.value.find(o=>o.id===$.bucketId);return t?fs(t.topItems[0]):`${h.value.internalStoragePath}/Music`}function pt(t){Ne(Y()),t.close()}function _t(t){Qe(Y()),t.close()}function mt(t){Ge(t,Y(),"audio")}const U=()=>{let t=w.value;return E.value||(t=`ids:${C.value.join(",")}`),t},be=t=>{t.type===m&&(P(),H())},we=t=>{t.type===m&&H()},Ie=t=>{t.type===m&&(P(),H())};function vt(t){const o=t.tags.map(L=>L.id);is(ds,{type:m,tags:N.value,item:{key:t.id,title:t.title,size:t.size},selected:N.value.filter(L=>o.includes(L.id))})}return Nt(()=>{var t;w.value=cs(((t=ce.q)==null?void 0:t.toString())??""),B($,w.value),je(),H(),F.on("item_tags_updated",we),F.on("items_tags_updated",be),F.on("media_items_actioned",Ie),window.addEventListener("keydown",he),window.addEventListener("keyup",fe)}),Ht(()=>{F.off("item_tags_updated",we),F.off("items_tags_updated",be),F.off("media_items_actioned",Ie),window.removeEventListener("keydown",he),window.removeEventListener("keyup",fe)}),(t,o)=>{const L=rs,v=Ot,Ee=us,Q=ps,Se=_s,De=Vs,qe=ms,gt=$s,kt=bs,Fe=Wt,ht=Ts,ft=Cs,yt=vs,$t=gs,Ct=Ls,Tt=bt,u=xt("tooltip");return a(),c(q,null,[n("div",Hs,[n("md-checkbox",{"touch-target":"wrapper",onChange:o[0]||(o[0]=(...s)=>e(pe)&&e(pe)(...s)),checked:e(ue),indeterminate:!e(ue)&&e(J)},null,40,Qs),n("div",Ks,[e(C).length?(a(),c("span",Gs,k(t.$t("x_selected",{count:e(E)?e(S).toLocaleString():e(C).length.toLocaleString()})),1)):(a(),c("span",js,k(t.$t("page_title.audios"))+" ("+k(e(S).toLocaleString())+")",1)),e(J)?(a(),c(q,{key:2},[$.trash?(a(),c(q,{key:0},[r((a(),p(v,{onClick:o[1]||(o[1]=l(s=>e(x)(e(m),e(C),e(E),e(S),w.value),["stop"]))},{icon:d(()=>[i(L)]),_:1})),[[u,t.$t("delete")]]),r((a(),p(v,{onClick:o[2]||(o[2]=l(s=>e(Te)(e(m),U()),["stop"])),loading:e(Ce)(U())},{icon:d(()=>[i(Ee)]),_:1},8,["loading"])),[[u,t.$t("restore")]]),r((a(),p(v,{onClick:o[3]||(o[3]=l(s=>e(ve)(e(E),e(C),w.value),["stop"]))},{icon:d(()=>[i(Q)]),_:1})),[[u,t.$t("download")]])],64)):(a(),c(q,{key:1},[e(se)(e(oe).MEDIA_TRASH,e(h).osVersion)?r((a(),p(v,{key:0,onClick:o[4]||(o[4]=l(s=>e(Z)(e(m),U()),["stop"])),loading:e($e)(U())},{icon:d(()=>[i(Se)]),_:1},8,["loading"])),[[u,t.$t("move_to_trash")]]):r((a(),p(v,{key:1,onClick:o[5]||(o[5]=l(s=>e(x)(e(m),e(C),e(E),e(S),w.value),["stop"]))},{icon:d(()=>[i(L)]),_:1})),[[u,t.$t("delete")]]),r((a(),p(v,{onClick:o[6]||(o[6]=l(s=>e(ve)(e(E),e(C),w.value),["stop"]))},{icon:d(()=>[i(Q)]),_:1})),[[u,t.$t("download")]]),r((a(),p(v,{onClick:o[7]||(o[7]=l(s=>e(st)(s,e(C),e(E),w.value),["stop"]))},{icon:d(()=>[i(De)]),_:1})),[[u,t.$t("add_to_playlist")]]),r((a(),p(v,{onClick:o[8]||(o[8]=l(s=>e(We)(e(C),e(E),w.value),["stop"]))},{icon:d(()=>[i(qe)]),_:1})),[[u,t.$t("add_to_tags")]])],64))],64)):z("",!0)]),n("div",Os,[i(gt,{filter:$,tags:e(N),buckets:e(W),"get-url":rt},null,8,["filter","tags","buckets"]),i(Fe,null,{content:d(s=>[n("md-menu-item",{onClick:l(T=>pt(s),["stop"])},[n("div",xs,k(t.$t("upload_files")),1)],8,Ws),n("md-menu-item",{onClick:l(T=>_t(s),["stop"])},[n("div",Xs,k(t.$t("upload_folder")),1)],8,Js)]),default:d(()=>[r((a(),p(v,null,{icon:d(()=>[i(kt)]),_:1})),[[u,t.$t("upload")]])]),_:1}),i(Fe,null,{content:d(s=>[n("div",Zs,[(a(!0),c(q,null,te(e(at),T=>(a(),c("md-menu-item",{key:T.value,onClick:ee=>ut(s,T.value),selected:T.value===e(I)},[n("div",eo,k(t.$t(T.label)),1)],8,Ys))),128))])]),default:d(()=>[r((a(),p(v,{loading:j.value},{icon:d(()=>[i(ht)]),_:1},8,["loading"])),[[u,t.$t("sort")]])]),_:1})])]),i(ft,{limit:R,total:e(S),"all-checked-alert-visible":e(Xe),"real-all-checked":e(E),"select-real-all":e(Je),"clear-selection":e(P)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),n("div",{class:"scroll-content",onDragover:o[13]||(o[13]=l((...s)=>e(le)&&e(le)(...s),["stop","prevent"]))},[r(n("div",{class:"drag-mask",onDrop:l(mt,["stop","prevent"]),onDragleave:o[9]||(o[9]=l((...s)=>e(ie)&&e(ie)(...s),["stop","prevent"]))},k(t.$t("release_to_send_files")),545),[[Qt,e(Ke)]]),n("div",{class:Be(["audio-list",{"select-mode":e(J)}])},[(a(!0),c(q,null,te(_.value,(s,T)=>{var ee;return a(),c("section",{class:Be(["media-item selectable-card",{selected:e(C).includes(s.id),selecting:e(me).includes(s.id)}]),key:s.id,onClick:l(g=>e(Ze)(g,s,T,()=>{e(nt)(s)}),["stop"]),onMouseover:g=>e(Ye)(g,T)},[n("div",so,[e(me).includes(s.id)?(a(),c("md-checkbox",{key:0,class:"checkbox","touch-target":"wrapper",onClick:l(g=>e(_e)(g,s,T),["stop"]),checked:e(tt)},null,8,oo)):(a(),c("md-checkbox",{key:1,class:"checkbox","touch-target":"wrapper",onClick:l(g=>e(_e)(g,s,T),["stop"]),checked:e(C).includes(s.id)},null,8,ao)),n("span",no,[i(yt,{id:T+1,raw:s},null,8,["id","raw"])])]),n("div",lo,[ye.value.includes(s.id)?(a(),c("img",{key:0,src:`/ficons/${e(Jt)(s.path)}.svg`,class:"svg"},null,8,io)):(a(),c("img",{key:1,class:"image-thumb",src:e(Xt)(s.albumFileId,"&w=200&h=200"),onError:g=>ct(s.id)},null,40,co))]),n("div",ro,k(s.title),1),n("div",uo,[n("span",null,k(e(Zt)(s.size)),1),n("span",po,k(e(Yt)(s.duration)),1),n("a",{onClick:l(g=>e(xe)(e(b),s.bucketId),["stop","prevent"])},k((ee=Oe.value[s.bucketId])==null?void 0:ee.name),9,_o),i($t,{tags:s.tags,type:e(m),"only-links":!0},null,8,["tags","type"])]),n("div",mo,[$.trash?(a(),c(q,{key:0},[r((a(),p(v,{class:"sm",onClick:l(g=>e(re)(e(m),s),["stop"])},{icon:d(()=>[i(L)]),_:2},1032,["onClick"])),[[u,t.$t("delete")]]),r((a(),p(v,{class:"sm",onClick:l(g=>e(Te)(e(m),`ids:${s.id}`),["stop"]),loading:e(Ce)(`ids:${s.id}`)},{icon:d(()=>[i(Ee)]),_:2},1032,["onClick","loading"])),[[u,t.$t("restore")]]),r((a(),p(v,{class:"sm",onClick:l(g=>e(ge)(s.path,e(Pe)(s.path).replace(" ","-")),["stop"])},{icon:d(()=>[i(Q)]),_:2},1032,["onClick"])),[[u,t.$t("download")]])],64)):(a(),c(q,{key:1},[e(se)(e(oe).MEDIA_TRASH,e(h).osVersion)?r((a(),p(v,{key:0,class:"sm",onClick:l(g=>e(Z)(e(m),`ids:${s.id}`),["stop"]),loading:e($e)(`ids:${s.id}`)},{icon:d(()=>[i(Se)]),_:2},1032,["onClick","loading"])),[[u,t.$t("move_to_trash")]]):r((a(),p(v,{key:1,class:"sm",onClick:l(g=>e(re)(e(m),s),["stop"])},{icon:d(()=>[i(L)]),_:2},1032,["onClick"])),[[u,t.$t("delete")]]),r((a(),p(v,{class:"sm",onClick:l(g=>e(ge)(s.path,e(Pe)(s.path).replace(" ","-")),["stop"])},{icon:d(()=>[i(Q)]),_:2},1032,["onClick"])),[[u,t.$t("download")]]),r((a(),p(v,{class:"sm",onClick:l(g=>e(ot)(g,s),["stop","prevent"])},{icon:d(()=>[i(De)]),_:2},1032,["onClick"])),[[u,t.$t("add_to_playlist")]]),r((a(),p(v,{class:"sm",onClick:l(g=>vt(s),["stop"])},{icon:d(()=>[i(qe)]),_:2},1032,["onClick"])),[[u,t.$t("add_to_tags")]])],64)),e(it)&&s.path===e(lt)?(a(),c("md-circular-progress",vo)):K(s)?r((a(),p(v,{key:3,class:"sm",onClick:o[10]||(o[10]=l(g=>e(dt)(),["stop"]))},{icon:d(()=>[i(Ct)]),_:1})),[[u,t.$t("pause")]]):z("",!0)]),n("div",go,k(s.artist),1),n("div",ko,[r((a(),c("span",null,[ts(k(e(ss)(s.createdAt)),1)])),[[u,e(es)(s.createdAt)]])])],42,to)}),128)),e(X)&&_.value.length===0?(a(),c(q,{key:0},te(20,s=>n("section",{class:"media-item selectable-card-skeleton",key:s},[n("div",ho,[fo,n("span",yo,k(s),1)]),$o])),64)):z("",!0)],2),!e(X)&&_.value.length===0?(a(),c("div",Co,k(t.$t(e(os)(e(X),e(h).permissions,"WRITE_EXTERNAL_STORAGE"))),1)):z("",!0),e(S)>R?(a(),p(Tt,{key:1,page:O.value,go:ke,total:e(S),limit:R},null,8,["page","total"])):z("",!0),n("input",{ref_key:"fileInput",ref:G,style:{display:"none"},type:"file",accept:"audio/*",multiple:"",onChange:o[11]||(o[11]=(...s)=>e(ae)&&e(ae)(...s))},null,544),n("input",{ref_key:"dirFileInput",ref:He,style:{display:"none"},type:"file",accept:"audio/*",multiple:"",webkitdirectory:"",mozdirectory:"",directory:"",onChange:o[12]||(o[12]=(...s)=>e(ne)&&e(ne)(...s))},null,544)],32)],64)}}}),Bo=ys(To,[["__scopeId","data-v-9fac39cd"]]);export{Bo as default}; diff --git a/app/src/main/resources/web/assets/Breadcrumb-7GnPZCg_.js b/app/src/main/resources/web/assets/Breadcrumb-7GnPZCg_.js new file mode 100644 index 00000000..866183ba --- /dev/null +++ b/app/src/main/resources/web/assets/Breadcrumb-7GnPZCg_.js @@ -0,0 +1 @@ +import{d as l,u as d,o as n,c as s,O as p,P as _,a,t as o,m as f,cr as m,w as h,V as g,r as y,f as k,H as v}from"./index-BXOWKrmL.js";const b={class:"breadcrumb"},B=["onClick"],S={class:"active"},$=l({__name:"Breadcrumb",props:{current:{type:[String,Function]},paths:{type:Array,default:()=>[]}},setup(e){const c=d(),u=e;function i(t){k(c,t)}return(t,C)=>(n(),s("ol",b,[(n(!0),s(p,null,_(u.paths,r=>(n(),s("li",{key:r},[a("a",{href:"#",onClick:h(N=>i(r),["prevent"])},o(t.$t(`page_title.${f(m)(r)}`)),9,B)]))),128)),a("li",S,[g(o(typeof e.current=="function"?e.current():e.current),1),y(t.$slots,"current",{},void 0,!0)])]))}}),w=v($,[["__scopeId","data-v-d292b348"]]);export{w as _}; diff --git a/app/src/main/resources/web/assets/Breadcrumb-B2BEfhSz.js b/app/src/main/resources/web/assets/Breadcrumb-B2BEfhSz.js deleted file mode 100644 index bf1c6623..00000000 --- a/app/src/main/resources/web/assets/Breadcrumb-B2BEfhSz.js +++ /dev/null @@ -1 +0,0 @@ -import{d as l,u as d,o as r,c as s,O as p,P as _,a,t as o,m as f,cn as m,w as h,V as g,r as y,f as k,H as v}from"./index-B-S542RM.js";const b={class:"breadcrumb"},B=["onClick"],S={class:"active"},$=l({__name:"Breadcrumb",props:{current:{type:[String,Function]},paths:{type:Array,default:()=>[]}},setup(e){const c=d(),u=e;function i(t){k(c,t)}return(t,C)=>(r(),s("ol",b,[(r(!0),s(p,null,_(u.paths,n=>(r(),s("li",{key:n},[a("a",{href:"#",onClick:h(N=>i(n),["prevent"])},o(t.$t(`page_title.${f(m)(n)}`)),9,B)]))),128)),a("li",S,[g(o(typeof e.current=="function"?e.current():e.current),1),y(t.$slots,"current",{},void 0,!0)])]))}}),w=v($,[["__scopeId","data-v-d292b348"]]);export{w as _}; diff --git a/app/src/main/resources/web/assets/CallsSidebar-C7gnaDCv.js b/app/src/main/resources/web/assets/CallsSidebar-C7gnaDCv.js new file mode 100644 index 00000000..e97d1692 --- /dev/null +++ b/app/src/main/resources/web/assets/CallsSidebar-C7gnaDCv.js @@ -0,0 +1 @@ +import{_ as N}from"./LeftSidebar.vuevuetypescriptsetuptruelang-qrlto0-t.js";import{_ as V}from"./TagFilter.vuevuetypescriptsetuptruelang-F0HSGzO6.js";import{d as A,u as M,s as Q,i as R,I as z,h as d,K as D,k as P,af as x,a1 as h,ag as E,v as F,q as C,ah as G,a6 as k,a0 as H,o as u,V as K,t as a,a as s,w as S,N as $,m as B,c as _,e as L,P as O,O as U,p as j,a7 as J,f as q,a8 as W}from"./index-BXOWKrmL.js";import{u as X}from"./search-B-8eugyA.js";import"./more-vert-B_3Etgle.js";import"./EditValueModal-HQ024-FF.js";import"./vee-validate.esm-Bmkx0D8v.js";const Y={class:"nav"},Z={class:"title"},ee={key:0,class:"count"},te=["onClick"],ae={class:"title"},se={key:0,class:"count"},_e=A({__name:"CallsSidebar",setup(oe){const m=M(),{counter:p}=Q(R()),{parseQ:w}=X(),o=z({tagIds:[]}),n=d(""),l=d(""),c=d(new Map),{fetch:f}=D({handle:e=>{e&&(p.value.calls=e.total,c.value.set("1",e.incoming),c.value.set("2",e.outgoing),c.value.set("3",e.missed))},document:G,variables:()=>({}),appApi:!0});function v(e){return c.value.get(e)??-1}function g(){var i;const e=k.currentRoute.value,r=H(((i=e.query.q)==null?void 0:i.toString())??"");w(o,r),n.value=o.type??"",l.value=o.tagIds.length===1?o.tagIds[0]:"",n.value&&(l.value=""),f()}g(),P(()=>k.currentRoute.value,()=>{g()});function T(e){const r=J([{name:"type",op:"",value:e}]);q(m,`/calls?q=${W(r)}`)}function b(){q(m,"/calls")}const y=()=>{f()};return x(()=>{h.on("calls_deleted",y)}),E(()=>{h.off("calls_deleted",y)}),(e,r)=>{const i=V,I=N;return u(),F(I,null,{title:C(()=>[K(a(e.$t("page_title.calls")),1)]),body:C(()=>[s("ul",Y,[s("li",{onClick:S(b,["prevent"]),class:$({active:!l.value&&!n.value})},[s("span",Z,a(e.$t("all")),1),B(p).calls>=0?(u(),_("span",ee,a(B(p).calls.toLocaleString()),1)):L("",!0)],2),(u(),_(U,null,O(["1","2","3"],t=>s("li",{key:t,onClick:S(ne=>T(t),["prevent"]),class:$({active:t===n.value})},[s("span",ae,a(e.$t(`call_type.${t}`)),1),v(t)>=0?(u(),_("span",se,a(v(t).toLocaleString()),1)):L("",!0)],10,te)),64))]),j(i,{type:"CALL",selected:l.value},null,8,["selected"])]),_:1})}}});export{_e as default}; diff --git a/app/src/main/resources/web/assets/CallsSidebar-DRbWt7_C.js b/app/src/main/resources/web/assets/CallsSidebar-DRbWt7_C.js deleted file mode 100644 index b1acf08f..00000000 --- a/app/src/main/resources/web/assets/CallsSidebar-DRbWt7_C.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as b}from"./LeftSidebar.vuevuetypescriptsetuptruelang-Bkp0VFG-.js";import{_ as I}from"./TagFilter.vuevuetypescriptsetuptruelang-DXYEFTYG.js";import{d as N,u as V,s as A,i as Q,I as M,h as _,K as R,k as z,v as P,q as y,af as x,a6 as g,a0 as D,o as u,V as E,t as s,a,w as h,N as C,m as k,c as m,e as S,P as F,O as G,p as K,a7 as O,f as $,a8 as j}from"./index-B-S542RM.js";import{u as H}from"./search-k8SzNgo1.js";import"./more-vert-XZtlvs7x.js";import"./EditValueModal-u3M261_O.js";import"./vee-validate.esm-D5u4WlYW.js";const J={class:"nav"},U={class:"title"},W={key:0,class:"count"},X=["onClick"],Y={class:"title"},Z={key:0,class:"count"},ie=N({__name:"CallsSidebar",setup(ee){const d=V(),{counter:p}=A(Q()),{parseQ:B}=H(),o=M({tagIds:[]}),n=_(""),l=_(""),c=_(new Map),{fetch:L}=R({handle:e=>{e&&(p.value.calls=e.total,c.value.set("1",e.incoming),c.value.set("2",e.outgoing),c.value.set("3",e.missed))},document:x,variables:()=>({}),appApi:!0});function v(e){return c.value.get(e)??-1}function f(){var i;const e=g.currentRoute.value,r=D(((i=e.query.q)==null?void 0:i.toString())??"");B(o,r),n.value=o.type??"",l.value=o.tagIds.length===1?o.tagIds[0]:"",n.value&&(l.value=""),L()}f(),z(()=>g.currentRoute.value,()=>{f()});function q(e){const r=O([{name:"type",op:"",value:e}]);$(d,`/calls?q=${j(r)}`)}function w(){$(d,"/calls")}return(e,r)=>{const i=I,T=b;return u(),P(T,null,{title:y(()=>[E(s(e.$t("page_title.calls")),1)]),body:y(()=>[a("ul",J,[a("li",{onClick:h(w,["prevent"]),class:C({active:!l.value&&!n.value})},[a("span",U,s(e.$t("all")),1),k(p).calls>=0?(u(),m("span",W,s(k(p).calls.toLocaleString()),1)):S("",!0)],2),(u(),m(G,null,F(["1","2","3"],t=>a("li",{key:t,onClick:h(te=>q(t),["prevent"]),class:C({active:t===n.value})},[a("span",Y,s(e.$t(`call_type.${t}`)),1),v(t)>=0?(u(),m("span",Z,s(v(t).toLocaleString()),1)):S("",!0)],10,X)),64))]),K(i,{type:"CALL",selected:l.value},null,8,["selected"])]),_:1})}}});export{ie as default}; diff --git a/app/src/main/resources/web/assets/CallsView-BigERfzn.css b/app/src/main/resources/web/assets/CallsView-BigERfzn.css new file mode 100644 index 00000000..7ca5225e --- /dev/null +++ b/app/src/main/resources/web/assets/CallsView-BigERfzn.css @@ -0,0 +1 @@ +.call-item[data-v-52a43057]{display:grid;border-radius:8px;grid-template-areas:"start title actions geo time" "start subtitle actions geo time";grid-template-columns:48px 2fr 1fr minmax(64px,1fr) minmax(64px,1fr)}.call-item .start[data-v-52a43057]{grid-area:start}.call-item .number[data-v-52a43057]{font-size:.75rem;display:flex;justify-content:center;padding-block-end:12px}.call-item .title[data-v-52a43057]{grid-area:title;font-weight:500;margin-inline-end:16px;padding-block-start:12px}.call-item .subtitle[data-v-52a43057]{grid-area:subtitle;display:flex;gap:8px;flex-wrap:wrap;font-size:.875rem;margin-inline-end:16px}.call-item .actions[data-v-52a43057]{grid-area:actions;display:flex;flex-direction:row;gap:4px;align-items:center;visibility:visible;padding-inline:16px}.call-item .geo[data-v-52a43057]{grid-area:geo;display:flex;align-items:center}.call-item .time[data-v-52a43057]{grid-area:time;display:flex;align-items:center;padding-inline:16px;justify-content:end}.call-list[data-v-52a43057]{display:flex;flex-direction:column;gap:8px}.call-list.select-mode .call-item[data-v-52a43057]{cursor:pointer}.call-list.select-mode .call-item .actions[data-v-52a43057]{visibility:hidden}.call-list .call-item .skeleton-title[data-v-52a43057]{width:160px;height:24px}.call-list .call-item .skeleton-subtitle[data-v-52a43057]{width:80px;height:20px}.call-list .call-item .skeleton-actions[data-v-52a43057]{width:120px;height:20px}.call-list .call-item .skeleton-geo[data-v-52a43057]{width:100px;height:20px}.call-list .call-item .skeleton-time[data-v-52a43057]{width:60px;height:20px} diff --git a/app/src/main/resources/web/assets/CallsView-CSHaqzLI.js b/app/src/main/resources/web/assets/CallsView-CSHaqzLI.js new file mode 100644 index 00000000..c0e3176c --- /dev/null +++ b/app/src/main/resources/web/assets/CallsView-CSHaqzLI.js @@ -0,0 +1,5 @@ +import{_ as Se}from"./VPagination.vuevuetypescriptsetuptruelang-Cqtk1_Un.js";import{_ as Le}from"./call-outline-rounded-BPfmAopM.js";import{d as Te,u as Ie,s as qe,i as Ae,h as I,g as De,I as xe,J as Ve,K as Ee,j as Me,L as Ne,M as Be,c as n,a,m as t,t as d,O as q,x as g,w as _,p as r,e as A,N as X,P as Y,v as Ge,Q as Qe,a1 as p,a9 as Ue,f as Ke,C as Re,aa as ze,B as He,S as Oe,o,ab as Pe,U as je,V as Fe,W as We,X as Je,F as Xe,G as Ye,Y as Ze,Z,$ as et,ac as tt,ad as st,a0 as at,ae as lt,a2 as ot,a3 as nt,a4 as ct,H as it}from"./index-BXOWKrmL.js";import{_ as dt,a as rt}from"./SearchInput-ZLdB9f4z.js";import{b as ut,u as _t,a as pt}from"./key-events-DpI8L-ce.js";import{u as vt}from"./search-B-8eugyA.js";import{u as mt,a as ht}from"./tags-BpDG2_1g.js";import"./search-rounded-DpdJ2cSK.js";import"./rss-feed-rounded-DN7yBBrR.js";import"./vee-validate.esm-Bmkx0D8v.js";const f=$=>(Xe("data-v-52a43057"),$=$(),Ye(),$),gt={class:"top-app-bar"},kt=["checked","indeterminate"],ft={class:"title"},yt={key:0},bt={key:1},Ct=f(()=>a("md-ripple",null,null,-1)),$t=f(()=>a("md-ripple",null,null,-1)),wt={class:"actions"},St={class:"scroll-content"},Lt=["onClick","onMouseover"],Tt={class:"start"},It=["onClick","checked"],qt=["onClick","checked"],At={class:"number"},Dt={class:"title"},xt={class:"subtitle"},Vt={class:"actions"},Et=["onClick"],Mt=f(()=>a("md-ripple",null,null,-1)),Nt={key:0,indeterminate:"",class:"spinner-sm"},Bt=["onClick"],Gt=f(()=>a("md-ripple",null,null,-1)),Qt=["onClick"],Ut=f(()=>a("md-ripple",null,null,-1)),Kt={class:"geo"},Rt={class:"time"},zt={class:"start"},Ht=f(()=>a("div",{class:"checkbox"},[a("div",{class:"skeleton-checkbox"})],-1)),Ot={class:"number"},Pt=Ze('
',5),jt={key:0,class:"no-data-placeholder"},k=50,Ft=Te({__name:"CallsView",setup($){var W;const ee=Ie(),{app:te}=qe(Ae()),y=I([]),{t:D}=De(),{parseQ:se}=vt(),M=xe({tagIds:[]}),u=Ve.CALL,N=Qe(),B=N.query,x=I(parseInt(((W=B.page)==null?void 0:W.toString())??"1")),m=I(""),{tags:w,fetch:ae}=mt(u),{addToTags:le}=ht(u,w),{deleteItems:G}=ut(Ue,()=>{S(),L(),p.emit("refetch_tags",u),p.emit("calls_deleted")}),{selectedIds:v,allChecked:Q,realAllChecked:b,selectRealAll:oe,allCheckedAlertVisible:ne,clearSelection:S,toggleAllChecked:U,toggleSelect:K,total:c,checked:V,shiftEffectingIds:R,handleItemClick:ce,handleMouseOver:ie,selectAll:de,shouldSelect:re}=_t(y),z=e=>{const l=N.query.q;Ke(ee,l?`/calls?page=${e}&q=${l}`:`/calls?page=${e}`)},{keyDown:H,keyUp:O}=pt(c,k,x,de,S,z,()=>{G(v.value,b.value,c.value,m.value)}),{loading:E,fetch:L}=Ee({handle:(e,l)=>{l?Re(D(l),"error"):e&&(y.value=e.calls,c.value=e.callCount)},document:ze,variables:()=>({offset:(x.value-1)*k,limit:k,query:m.value}),appApi:!0}),ue=["1","2","3"].map(e=>({id:e,name:D("call_type."+e)}));function _e(e){Z(et,{type:u,tags:w.value,item:{key:e.id,title:"",size:0},selected:w.value.filter(l=>e.tags.some(T=>T.id===l.id))})}function pe(e){return e?`/calls?q=${e}`:"/calls"}const P=e=>{e.type===u&&(S(),L())},j=e=>{e.type===u&&L()};function ve(e){if(!e)return"";const l=[];return e.isp&&l.push(D("phone_isp_type."+e.isp)),e.city===e.province?l.push(e.city):l.push(`${e.province}${e.city}`),l.join(", ")}const F=I(""),{mutate:me,loading:he}=Me({document:He,appApi:!0});function ge(e){F.value=e.id,me({number:e.number})}function ke(e){Z(st,{id:e.id,name:e.number,gql:tt` + mutation DeleteCall($query: String!) { + deleteCalls(query: $query) + } + `,variables:()=>({query:`ids:${e.id}`}),appApi:!0,typeName:"Call",done:()=>{c.value--,e.tags.length&&p.emit("refetch_tags",u),p.emit("calls_deleted")}})}return Ne(()=>{var e;m.value=at(((e=B.q)==null?void 0:e.toString())??""),se(M,m.value),ae(),L(),p.on("item_tags_updated",j),p.on("items_tags_updated",P),window.addEventListener("keydown",H),window.addEventListener("keyup",O)}),Be(()=>{p.off("item_tags_updated",j),p.off("items_tags_updated",P),window.removeEventListener("keydown",H),window.removeEventListener("keyup",O)}),(e,l)=>{const T=lt,J=ot,fe=dt,ye=rt,be=nt,Ce=ct,$e=Le,we=Se,h=Oe("tooltip");return o(),n(q,null,[a("div",gt,[a("md-checkbox",{"touch-target":"wrapper",onChange:l[0]||(l[0]=(...s)=>t(U)&&t(U)(...s)),checked:t(Q),indeterminate:!t(Q)&&t(V)},null,40,kt),a("div",ft,[t(v).length?(o(),n("span",yt,d(e.$t("x_selected",{count:t(b)?t(c).toLocaleString():t(v).length.toLocaleString()})),1)):(o(),n("span",bt,d(e.$t("page_title.calls"))+" ("+d(t(c).toLocaleString())+")",1)),t(V)?(o(),n(q,{key:2},[g((o(),n("button",{class:"btn-icon",onClick:l[1]||(l[1]=_(s=>t(G)(t(v),t(b),t(c),m.value),["stop"]))},[Ct,r(T)])),[[h,e.$t("delete")]]),g((o(),n("button",{class:"btn-icon",onClick:l[2]||(l[2]=_(s=>t(le)(t(v),t(b),m.value),["stop"]))},[$t,r(J)])),[[h,e.$t("add_to_tags")]])],64)):A("",!0)]),a("div",wt,[r(fe,{filter:M,tags:t(w),types:t(ue),"get-url":pe},null,8,["filter","tags","types"])])]),r(ye,{limit:k,total:t(c),"all-checked-alert-visible":t(ne),"real-all-checked":t(b),"select-real-all":t(oe),"clear-selection":t(S)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),a("div",St,[a("div",{class:X(["call-list",{"select-mode":t(V)}])},[(o(!0),n(q,null,Y(y.value,(s,C)=>(o(),n("section",{class:X(["call-item selectable-card",{selected:t(v).includes(s.id),selecting:t(R).includes(s.id)}]),key:s.id,onClick:_(i=>t(ce)(i,s,C,()=>{}),["stop"]),onMouseover:i=>t(ie)(i,C)},[a("div",Tt,[t(R).includes(s.id)?(o(),n("md-checkbox",{key:0,class:"checkbox","touch-target":"wrapper",onClick:_(i=>t(K)(i,s,C),["stop"]),checked:t(re)},null,8,It)):(o(),n("md-checkbox",{key:1,class:"checkbox","touch-target":"wrapper",onClick:_(i=>t(K)(i,s,C),["stop"]),checked:t(v).includes(s.id)},null,8,qt)),a("span",At,[r(be,{id:C+1,raw:s},null,8,["id","raw"])])]),a("div",Dt,d(s.name?s.name+" "+s.number:s.number),1),a("div",xt,[a("span",null,d(t(Pe)(s.duration)),1),a("span",null,d(e.$t("call_type."+s.type)),1),r(Ce,{tags:s.tags,type:t(u),"only-links":!0},null,8,["tags","type"])]),a("div",Vt,[g((o(),n("button",{class:"btn-icon sm",onClick:_(i=>ke(s),["stop"])},[Mt,r(T)],8,Et)),[[h,e.$t("delete")]]),t(he)&&F.value===s.id?(o(),n("md-circular-progress",Nt)):g((o(),n("button",{key:1,class:"btn-icon sm",onClick:_(i=>ge(s),["stop"])},[Gt,r($e)],8,Bt)),[[h,e.$t("make_a_phone_call")]]),g((o(),n("button",{class:"btn-icon sm",onClick:_(i=>_e(s),["stop"])},[Ut,r(J)],8,Qt)),[[h,e.$t("add_to_tags")]])]),a("div",Kt,d(ve(s.geo)),1),a("div",Rt,[g((o(),n("span",null,[Fe(d(t(We)(s.startedAt)),1)])),[[h,t(je)(s.startedAt)]])])],42,Lt))),128)),t(E)&&y.value.length===0?(o(),n(q,{key:0},Y(20,s=>a("section",{class:"call-item selectable-card-skeleton",key:s},[a("div",zt,[Ht,a("span",Ot,d(s),1)]),Pt])),64)):A("",!0)],2),!t(E)&&y.value.length===0?(o(),n("div",jt,d(e.$t(t(Je)(t(E),t(te).permissions,"WRITE_CALL_LOG"))),1)):A("",!0),t(c)>k?(o(),Ge(we,{key:1,page:x.value,go:z,total:t(c),limit:k},null,8,["page","total"])):A("",!0)])],64)}}}),os=it(Ft,[["__scopeId","data-v-52a43057"]]);export{os as default}; diff --git a/app/src/main/resources/web/assets/CallsView-DC8TWXew.js b/app/src/main/resources/web/assets/CallsView-DC8TWXew.js deleted file mode 100644 index 02af3232..00000000 --- a/app/src/main/resources/web/assets/CallsView-DC8TWXew.js +++ /dev/null @@ -1,5 +0,0 @@ -import{_ as Se}from"./VPagination.vuevuetypescriptsetuptruelang-DUdPyPtr.js";import{_ as Le}from"./call-outline-rounded-Z-SDSaoi.js";import{d as Te,u as Ie,s as qe,i as Ae,h as I,g as De,I as xe,J as Ve,K as Ee,j as Me,L as Ne,M as Be,c as n,a,m as t,t as d,O as q,x as h,w as _,p as r,e as A,N as X,P as Y,v as Ge,Q as Qe,a1 as g,a9 as Ue,f as Ke,C as Re,aa as ze,B as He,S as Oe,o,ab as Pe,U as je,V as Fe,W as We,X as Je,F as Xe,G as Ye,Y as Ze,Z,$ as et,ac as tt,ad as st,a0 as at,ae as lt,a2 as ot,a3 as nt,a4 as ct,H as it}from"./index-B-S542RM.js";import{_ as dt,a as rt}from"./SearchInput-D0d2xIiv.js";import{b as ut,u as _t,a as pt}from"./key-events-D1Kh05Em.js";import{u as vt}from"./search-k8SzNgo1.js";import{u as mt,a as ht}from"./tags-x91i2rzh.js";import"./search-rounded-TCa6qTC1.js";import"./rss-feed-rounded-DzJ3TVan.js";import"./vee-validate.esm-D5u4WlYW.js";const b=$=>(Xe("data-v-c8b1bdcc"),$=$(),Ye(),$),gt={class:"top-app-bar"},kt=["checked","indeterminate"],bt={class:"title"},ft={key:0},yt={key:1},Ct=b(()=>a("md-ripple",null,null,-1)),$t=b(()=>a("md-ripple",null,null,-1)),wt={class:"actions"},St={class:"scroll-content"},Lt=["onClick","onMouseover"],Tt={class:"start"},It=["onClick","checked"],qt=["onClick","checked"],At={class:"number"},Dt={class:"title"},xt={class:"subtitle"},Vt={class:"actions"},Et=["onClick"],Mt=b(()=>a("md-ripple",null,null,-1)),Nt={key:0,indeterminate:"",class:"spinner-sm"},Bt=["onClick"],Gt=b(()=>a("md-ripple",null,null,-1)),Qt=["onClick"],Ut=b(()=>a("md-ripple",null,null,-1)),Kt={class:"geo"},Rt={class:"time"},zt={class:"start"},Ht=b(()=>a("div",{class:"checkbox"},[a("div",{class:"skeleton-checkbox"})],-1)),Ot={class:"number"},Pt=Ze('
',5),jt={key:0,class:"no-data-placeholder"},k=50,Ft=Te({__name:"CallsView",setup($){var W;const ee=Ie(),{app:te}=qe(Ae()),f=I([]),{t:D}=De(),{parseQ:se}=vt(),M=xe({tagIds:[]}),u=Ve.CALL,N=Qe(),B=N.query,x=I(parseInt(((W=B.page)==null?void 0:W.toString())??"1")),v=I(""),{tags:w,fetch:ae}=mt(u),{addToTags:le}=ht(u,w),{deleteItems:G}=ut(Ue,()=>{S(),L(),g.emit("refetch_tags",u)}),{selectedIds:p,allChecked:Q,realAllChecked:y,selectRealAll:oe,allCheckedAlertVisible:ne,clearSelection:S,toggleAllChecked:U,toggleSelect:K,total:c,checked:V,shiftEffectingIds:R,handleItemClick:ce,handleMouseOver:ie,selectAll:de,shouldSelect:re}=_t(f),z=e=>{const l=N.query.q;Ke(ee,l?`/calls?page=${e}&q=${l}`:`/calls?page=${e}`)},{keyDown:H,keyUp:O}=pt(c,k,x,de,S,z,()=>{G(p.value,y.value,c.value,v.value)}),{loading:E,fetch:L}=Ee({handle:(e,l)=>{l?Re(D(l),"error"):e&&(f.value=e.calls,c.value=e.callCount)},document:ze,variables:()=>({offset:(x.value-1)*k,limit:k,query:v.value}),appApi:!0}),ue=["1","2","3"].map(e=>({id:e,name:D("call_type."+e)}));function _e(e){Z(et,{type:u,tags:w.value,item:{key:e.id,title:"",size:0},selected:w.value.filter(l=>e.tags.some(T=>T.id===l.id))})}function pe(e){return e?`/calls?q=${e}`:"/calls"}const P=e=>{e.type===u&&(S(),L())},j=e=>{e.type===u&&L()};function ve(e){if(!e)return"";const l=[];return e.isp&&l.push(D("phone_isp_type."+e.isp)),e.city===e.province?l.push(e.city):l.push(`${e.province}${e.city}`),l.join(", ")}const F=I(""),{mutate:me,loading:he}=Me({document:He,appApi:!0});function ge(e){F.value=e.id,me({number:e.number})}function ke(e){Z(st,{id:e.id,name:e.number,gql:tt` - mutation DeleteCall($query: String!) { - deleteCalls(query: $query) - } - `,variables:()=>({query:`ids:${e.id}`}),appApi:!0,typeName:"Call",done:()=>{c.value--,e.tags.length&&g.emit("refetch_tags",u)}})}return Ne(()=>{var e;v.value=at(((e=B.q)==null?void 0:e.toString())??""),se(M,v.value),ae(),L(),g.on("item_tags_updated",j),g.on("items_tags_updated",P),window.addEventListener("keydown",H),window.addEventListener("keyup",O)}),Be(()=>{g.off("item_tags_updated",j),g.off("items_tags_updated",P),window.removeEventListener("keydown",H),window.removeEventListener("keyup",O)}),(e,l)=>{const T=lt,J=ot,be=dt,fe=rt,ye=nt,Ce=ct,$e=Le,we=Se,m=Oe("tooltip");return o(),n(q,null,[a("div",gt,[a("md-checkbox",{"touch-target":"wrapper",onChange:l[0]||(l[0]=(...s)=>t(U)&&t(U)(...s)),checked:t(Q),indeterminate:!t(Q)&&t(V)},null,40,kt),a("div",bt,[t(p).length?(o(),n("span",ft,d(e.$t("x_selected",{count:t(y)?t(c).toLocaleString():t(p).length.toLocaleString()})),1)):(o(),n("span",yt,d(e.$t("page_title.calls"))+" ("+d(t(c).toLocaleString())+")",1)),t(V)?(o(),n(q,{key:2},[h((o(),n("button",{class:"btn-icon",onClick:l[1]||(l[1]=_(s=>t(G)(t(p),t(y),t(c),v.value),["stop"]))},[Ct,r(T)])),[[m,e.$t("delete")]]),h((o(),n("button",{class:"btn-icon",onClick:l[2]||(l[2]=_(s=>t(le)(t(p),t(y),v.value),["stop"]))},[$t,r(J)])),[[m,e.$t("add_to_tags")]])],64)):A("",!0)]),a("div",wt,[r(be,{filter:M,tags:t(w),types:t(ue),"get-url":pe},null,8,["filter","tags","types"])])]),r(fe,{limit:k,total:t(c),"all-checked-alert-visible":t(ne),"real-all-checked":t(y),"select-real-all":t(oe),"clear-selection":t(S)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),a("div",St,[a("div",{class:X(["call-list",{"select-mode":t(V)}])},[(o(!0),n(q,null,Y(f.value,(s,C)=>(o(),n("section",{class:X(["call-item selectable-card",{selected:t(p).includes(s.id),selecting:t(R).includes(s.id)}]),key:s.id,onClick:_(i=>t(ce)(i,s,C,()=>{}),["stop"]),onMouseover:i=>t(ie)(i,C)},[a("div",Tt,[t(R).includes(s.id)?(o(),n("md-checkbox",{key:0,class:"checkbox","touch-target":"wrapper",onClick:_(i=>t(K)(i,s,C),["stop"]),checked:t(re)},null,8,It)):(o(),n("md-checkbox",{key:1,class:"checkbox","touch-target":"wrapper",onClick:_(i=>t(K)(i,s,C),["stop"]),checked:t(p).includes(s.id)},null,8,qt)),a("span",At,[r(ye,{id:C+1,raw:s},null,8,["id","raw"])])]),a("div",Dt,d(s.name?s.name+" "+s.number:s.number),1),a("div",xt,[a("span",null,d(t(Pe)(s.duration)),1),a("span",null,d(e.$t("call_type."+s.type)),1),r(Ce,{tags:s.tags,type:t(u),"only-links":!0},null,8,["tags","type"])]),a("div",Vt,[h((o(),n("button",{class:"btn-icon sm",onClick:_(i=>ke(s),["stop"])},[Mt,r(T)],8,Et)),[[m,e.$t("delete")]]),t(he)&&F.value===s.id?(o(),n("md-circular-progress",Nt)):h((o(),n("button",{key:1,class:"btn-icon sm",onClick:_(i=>ge(s),["stop"])},[Gt,r($e)],8,Bt)),[[m,e.$t("make_a_phone_call")]]),h((o(),n("button",{class:"btn-icon sm",onClick:_(i=>_e(s),["stop"])},[Ut,r(J)],8,Qt)),[[m,e.$t("add_to_tags")]])]),a("div",Kt,d(ve(s.geo)),1),a("div",Rt,[h((o(),n("span",null,[Fe(d(t(We)(s.startedAt)),1)])),[[m,t(je)(s.startedAt)]])])],42,Lt))),128)),t(E)&&f.value.length===0?(o(),n(q,{key:0},Y(20,s=>a("section",{class:"call-item selectable-card-skeleton",key:s},[a("div",zt,[Ht,a("span",Ot,d(s),1)]),Pt])),64)):A("",!0)],2),!t(E)&&f.value.length===0?(o(),n("div",jt,d(e.$t(t(Je)(t(E),t(te).permissions,"WRITE_CALL_LOG"))),1)):A("",!0),t(c)>k?(o(),Ge(we,{key:1,page:x.value,go:z,total:t(c),limit:k},null,8,["page","total"])):A("",!0)])],64)}}}),os=it(Ft,[["__scopeId","data-v-c8b1bdcc"]]);export{os as default}; diff --git a/app/src/main/resources/web/assets/CallsView-DtiHr3nL.css b/app/src/main/resources/web/assets/CallsView-DtiHr3nL.css deleted file mode 100644 index 502afa5d..00000000 --- a/app/src/main/resources/web/assets/CallsView-DtiHr3nL.css +++ /dev/null @@ -1 +0,0 @@ -.call-item[data-v-c8b1bdcc]{display:grid;border-radius:8px;grid-template-areas:"start title actions geo time" "start subtitle actions geo time";grid-template-columns:48px 2fr 1fr minmax(64px,1fr) minmax(64px,1fr)}.call-item .start[data-v-c8b1bdcc]{grid-area:start}.call-item .number[data-v-c8b1bdcc]{font-size:.75rem;display:flex;justify-content:center;padding-block-end:12px}.call-item .title[data-v-c8b1bdcc]{grid-area:title;font-weight:500;margin-inline-end:16px;padding-block-start:12px}.call-item .subtitle[data-v-c8b1bdcc]{grid-area:subtitle;display:flex;gap:8px;flex-wrap:wrap;font-size:.875rem;margin-inline-end:16px}.call-item .actions[data-v-c8b1bdcc]{grid-area:actions;display:flex;flex-direction:row;gap:4px;align-items:center;visibility:visible;padding-inline:16px}.call-item .geo[data-v-c8b1bdcc]{grid-area:geo;display:flex;align-items:center}.call-item .time[data-v-c8b1bdcc]{grid-area:time;display:flex;align-items:center;padding-inline:16px;justify-content:end}.call-list[data-v-c8b1bdcc]{display:flex;flex-direction:column;gap:8px}.call-list.select-mode .call-item[data-v-c8b1bdcc]{cursor:pointer}.call-list.select-mode .call-item .actions[data-v-c8b1bdcc]{visibility:hidden}.call-list .call-item .skeleton-title[data-v-c8b1bdcc]{width:160px;height:24px}.call-list .call-item .skeleton-subtitle[data-v-c8b1bdcc]{width:80px;height:20px}.call-list .call-item .skeleton-actions[data-v-c8b1bdcc]{width:120px;height:20px}.call-list .call-item .skeleton-geo[data-v-c8b1bdcc]{width:100px;height:20px}.call-list .call-item .skeleton-time[data-v-c8b1bdcc]{width:60px;height:20px} diff --git a/app/src/main/resources/web/assets/ContactsSidebar-D1mwAWK5.js b/app/src/main/resources/web/assets/ContactsSidebar-D1mwAWK5.js deleted file mode 100644 index c0995f6f..00000000 --- a/app/src/main/resources/web/assets/ContactsSidebar-D1mwAWK5.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as g}from"./LeftSidebar.vuevuetypescriptsetuptruelang-Bkp0VFG-.js";import{_ as C}from"./TagFilter.vuevuetypescriptsetuptruelang-DXYEFTYG.js";import{d as S,u as y,s as k,i as N,I as T,h as w,K as B,k as I,v as V,q as l,aC as b,a6 as u,a0 as q,o as p,V as A,t as c,a as n,w as $,N as L,m,c as Q,e as R,p as x,f as z}from"./index-B-S542RM.js";import{u as M}from"./search-k8SzNgo1.js";import"./more-vert-XZtlvs7x.js";import"./EditValueModal-u3M261_O.js";import"./vee-validate.esm-D5u4WlYW.js";const D={class:"nav"},E={class:"title"},G={key:0,class:"count"},W=S({__name:"ContactsSidebar",setup(K){const _=y(),{counter:a}=k(N()),{parseQ:d}=M(),s=T({tagIds:[]}),o=w(""),{fetch:f}=B({handle:t=>{t&&(a.value.contacts=t.total)},document:b,variables:()=>({}),appApi:!0});function r(){var e;const t=u.currentRoute.value,i=q(((e=t.query.q)==null?void 0:e.toString())??"");d(s,i),o.value=s.tagIds.length===1?s.tagIds[0]:"",f()}r(),I(()=>u.currentRoute.value,()=>{r()});function v(){z(_,"/contacts")}return(t,i)=>{const e=C,h=g;return p(),V(h,null,{title:l(()=>[A(c(t.$t("page_title.contacts")),1)]),body:l(()=>[n("ul",D,[n("li",{onClick:$(v,["prevent"]),class:L({active:!o.value})},[n("span",E,c(t.$t("all")),1),m(a).contacts>=0?(p(),Q("span",G,c(m(a).contacts.toLocaleString()),1)):R("",!0)],2)]),x(e,{type:"CONTACT",selected:o.value},null,8,["selected"])]),_:1})}}});export{W as default}; diff --git a/app/src/main/resources/web/assets/ContactsSidebar-DIy88WkN.js b/app/src/main/resources/web/assets/ContactsSidebar-DIy88WkN.js new file mode 100644 index 00000000..3d0f5dbd --- /dev/null +++ b/app/src/main/resources/web/assets/ContactsSidebar-DIy88WkN.js @@ -0,0 +1 @@ +import{_ as g}from"./LeftSidebar.vuevuetypescriptsetuptruelang-qrlto0-t.js";import{_ as C}from"./TagFilter.vuevuetypescriptsetuptruelang-F0HSGzO6.js";import{d as S,u as y,s as k,i as N,I as T,h as w,K as B,k as I,v as V,q as l,aE as b,a6 as u,a0 as q,o as p,V as A,t as c,a as n,w as $,N as L,m,c as Q,e as R,p as x,f as z}from"./index-BXOWKrmL.js";import{u as E}from"./search-B-8eugyA.js";import"./more-vert-B_3Etgle.js";import"./EditValueModal-HQ024-FF.js";import"./vee-validate.esm-Bmkx0D8v.js";const M={class:"nav"},D={class:"title"},G={key:0,class:"count"},W=S({__name:"ContactsSidebar",setup(K){const _=y(),{counter:a}=k(N()),{parseQ:d}=E(),s=T({tagIds:[]}),o=w(""),{fetch:f}=B({handle:t=>{t&&(a.value.contacts=t.total)},document:b,variables:()=>({}),appApi:!0});function r(){var e;const t=u.currentRoute.value,i=q(((e=t.query.q)==null?void 0:e.toString())??"");d(s,i),o.value=s.tagIds.length===1?s.tagIds[0]:"",f()}r(),I(()=>u.currentRoute.value,()=>{r()});function v(){z(_,"/contacts")}return(t,i)=>{const e=C,h=g;return p(),V(h,null,{title:l(()=>[A(c(t.$t("page_title.contacts")),1)]),body:l(()=>[n("ul",M,[n("li",{onClick:$(v,["prevent"]),class:L({active:!o.value})},[n("span",D,c(t.$t("all")),1),m(a).contacts>=0?(p(),Q("span",G,c(m(a).contacts.toLocaleString()),1)):R("",!0)],2)]),x(e,{type:"CONTACT",selected:o.value},null,8,["selected"])]),_:1})}}});export{W as default}; diff --git a/app/src/main/resources/web/assets/ContactsView-CSK3a-nc.js b/app/src/main/resources/web/assets/ContactsView-BJQR5PGM.js similarity index 95% rename from app/src/main/resources/web/assets/ContactsView-CSK3a-nc.js rename to app/src/main/resources/web/assets/ContactsView-BJQR5PGM.js index 407557d3..8177d5a8 100644 --- a/app/src/main/resources/web/assets/ContactsView-CSK3a-nc.js +++ b/app/src/main/resources/web/assets/ContactsView-BJQR5PGM.js @@ -1,4 +1,4 @@ -import{_ as Ze}from"./VPagination.vuevuetypescriptsetuptruelang-DUdPyPtr.js";import{o as s,c as o,a as e,d as ue,h as B,as as Ve,at as R,au as et,t as u,x as p,y as b,m as t,z as tt,A as st,H as Ue,I as Le,g as Se,j as de,ac as ie,av as ke,e as N,p as h,O as v,P as f,q as ge,V as ce,aw as ot,ae as xe,am as lt,u as nt,s as at,i as dt,J as it,K as ct,l as ut,L as rt,M as _t,w as I,N as Ce,v as we,Q as pt,a1 as H,ax as mt,f as vt,C as Ne,ay as ht,az as ft,Z as le,B as bt,S as $t,aA as yt,U as kt,W as gt,X as Ct,F as wt,G as Nt,Y as qt,$ as Tt,aB as qe,ad as Vt,a0 as Ut,aq as Lt,a2 as St,a3 as xt,a4 as It}from"./index-B-S542RM.js";import{_ as At}from"./call-outline-rounded-Z-SDSaoi.js";import{_ as Mt}from"./contact-page-outline-rounded-BW4vyYSZ.js";import{_ as Dt,a as zt}from"./SearchInput-D0d2xIiv.js";import{u as Ie,a as Ae}from"./vee-validate.esm-D5u4WlYW.js";import{u as Ft,a as Et}from"./tags-x91i2rzh.js";import{b as Bt,u as Qt,a as Kt}from"./key-events-D1Kh05Em.js";import{u as Ot}from"./search-k8SzNgo1.js";import"./search-rounded-TCa6qTC1.js";import"./rss-feed-rounded-DzJ3TVan.js";const Rt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},jt=e("path",{fill:"currentColor",d:"M3 21v-4.25L16.2 3.575q.3-.275.663-.425t.762-.15t.775.15t.65.45L20.425 5q.3.275.438.65T21 6.4q0 .4-.137.763t-.438.662L7.25 21zM17.6 7.8L19 6.4L17.6 5l-1.4 1.4z"},null,-1),Gt=[jt];function Ht(g,x){return s(),o("svg",Rt,[...Gt])}const Wt={name:"material-symbols-edit",render:Ht},Jt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Pt=e("path",{fill:"currentColor",d:"M12 13.825L8.1 17.7q-.275.275-.687.288T6.7 17.7q-.275-.275-.275-.7t.275-.7l4.6-4.6q.15-.15.325-.213t.375-.062t.375.062t.325.213l4.6 4.6q.275.275.288.688t-.288.712q-.275.275-.7.275t-.7-.275zm0-6L8.1 11.7q-.275.275-.687.288T6.7 11.7q-.275-.275-.275-.7t.275-.7l4.6-4.6q.15-.15.325-.212T12 5.425t.375.063t.325.212l4.6 4.6q.275.275.288.688t-.288.712q-.275.275-.7.275t-.7-.275z"},null,-1),Xt=[Pt];function Yt(g,x){return s(),o("svg",Jt,[...Xt])}const Zt={name:"material-symbols-keyboard-double-arrow-up-rounded",render:Yt},es={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ts=e("path",{fill:"currentColor",d:"m12 16.175l3.9-3.875q.275-.275.688-.288t.712.288q.275.275.275.7t-.275.7l-4.6 4.6q-.15.15-.325.213t-.375.062t-.375-.062t-.325-.213l-4.6-4.6q-.275-.275-.288-.687T6.7 12.3q.275-.275.7-.275t.7.275zm0-6L15.9 6.3q.275-.275.688-.287t.712.287q.275.275.275.7t-.275.7l-4.6 4.6q-.15.15-.325.213t-.375.062t-.375-.062t-.325-.213L6.7 7.7q-.275-.275-.288-.687T6.7 6.3q.275-.275.7-.275t.7.275z"},null,-1),ss=[ts];function os(g,x){return s(),o("svg",es,[...ss])}const ls={name:"material-symbols-keyboard-double-arrow-down-rounded",render:os};function W(g){return Array.from({length:g},(x,q)=>q+1).concat(-1)}const Z={phoneNumberTypes:W(20),emailTypes:W(4),addressTypes:W(3),eventTypes:W(3),imTypes:W(8),websiteTypes:W(7)},ns={slot:"headline"},as={slot:"content"},ds=["error","error-text"],is={slot:"actions"},cs=ue({__name:"PromptModal",props:{do:{type:Function,required:!0},title:{type:String,required:!0},value:{type:String}},setup(g){const{handleSubmit:x}=Ie(),q=B(),d=g,{value:C,resetField:K,errorMessage:A}=Ae("inputValue",Ve().required()),$=x(()=>{d.do(C.value??""),R()});return C.value=d.value,d.value||K(),(async()=>{var U;await et(),(U=q.value)==null||U.focus()})(),(U,T)=>(s(),o("md-dialog",null,[e("div",ns,u(g.title),1),e("div",as,[p(e("md-outlined-text-field",{ref_key:"inputRef",ref:q,class:"form-control",error:t(A),"error-text":t(A)?U.$t(t(A)):"","onUpdate:modelValue":T[0]||(T[0]=w=>tt(C)?C.value=w:null),onKeyup:T[1]||(T[1]=st((...w)=>t($)&&t($)(...w),["enter"]))},null,40,ds),[[b,t(C)]])]),e("div",is,[e("md-outlined-button",{value:"cancel",onClick:T[2]||(T[2]=(...w)=>t(R)&&t(R)(...w))},u(U.$t("cancel")),1),e("md-filled-button",{value:"ok",onClick:T[3]||(T[3]=(...w)=>t($)&&t($)(...w)),autofocus:""},u(U.$t("ok")),1)])]))}}),us=Ue(cs,[["__scopeId","data-v-f510d520"]]),rs={slot:"headline"},_s={slot:"content"},ps={class:"form-label"},ms={class:"form-row"},vs=["label"],hs=["label"],fs=["label"],bs={key:1,class:"v-center"},$s=e("md-ripple",null,null,-1),ys={key:0,class:"form-row"},ks=["label"],gs=["label"],Cs={class:"v-center"},ws=e("md-ripple",null,null,-1),Ns={class:"form-label"},qs=["onUpdate:modelValue","onChange"],Ts=["value"],Vs={slot:"headline"},Us=["placeholder","onUpdate:modelValue"],Ls={class:"v-center"},Ss=["onClick"],xs=e("md-ripple",null,null,-1),Is={key:1,class:"form-label"},As=["onUpdate:modelValue","onChange"],Ms=["value"],Ds={slot:"headline"},zs=["label","onUpdate:modelValue"],Fs={class:"v-center"},Es=["onClick"],Bs=e("md-ripple",null,null,-1),Qs={key:2,class:"form-label"},Ks=["onUpdate:modelValue","onChange"],Os=["value"],Rs={slot:"headline"},js=["label","onUpdate:modelValue"],Gs={class:"v-center"},Hs=["onClick"],Ws=e("md-ripple",null,null,-1),Js={key:3,class:"form-label"},Ps=["onUpdate:modelValue","onChange"],Xs=["value"],Ys={slot:"headline"},Zs=["placeholder","onUpdate:modelValue"],eo={class:"v-center"},to=["onClick"],so=e("md-ripple",null,null,-1),oo={key:4,class:"form-label"},lo=["onUpdate:modelValue","onChange"],no=["value"],ao={slot:"headline"},io=["placeholder","onUpdate:modelValue"],co={class:"v-center"},uo=["onClick"],ro=e("md-ripple",null,null,-1),_o={class:"form-row",style:{display:"block",position:"relative"}},po={class:"menu-items"},mo=["onClick"],vo={slot:"headline"},ho=["onClick"],fo={slot:"headline"},bo=["onClick"],$o={slot:"headline"},yo=["onClick"],ko={slot:"headline"},go=["onClick"],Co={slot:"headline"},wo={class:"form-row"},No=["label"],qo={slot:"actions"},To=["disabled"],Vo={key:0,indeterminate:"",slot:"icon"},Te=ue({__name:"EditContactModal",props:{data:{type:Object},sources:{type:Array},done:{type:Function,required:!0}},setup(g){const{handleSubmit:x}=Ie(),q=g,d=Le({firstName:"",middleName:"",lastName:"",prefix:"",suffix:"",nickname:"",organization:null,notes:"",source:"",starred:0,phoneNumbers:[],emails:[],addresses:[],websites:[],events:[],ims:[],groupIds:[]}),C=B(!1),{t:K}=Se(),{mutate:A,loading:$,onDone:U}=de({document:ie` +import{_ as Ze}from"./VPagination.vuevuetypescriptsetuptruelang-Cqtk1_Un.js";import{o as s,c as o,a as e,d as ue,h as B,au as Ve,av as R,aw as et,t as u,x as p,y as b,m as t,z as tt,A as st,H as Ue,I as Le,g as Se,j as de,ac as ie,ax as ke,e as N,p as h,O as v,P as f,q as ge,V as ce,ay as ot,ae as xe,ao as lt,u as nt,s as at,i as dt,J as it,K as ct,l as ut,L as rt,M as _t,w as I,N as Ce,v as we,Q as pt,a1 as H,az as mt,f as vt,C as Ne,aA as ht,aB as ft,Z as le,B as bt,S as $t,aC as yt,U as kt,W as gt,X as Ct,F as wt,G as Nt,Y as qt,$ as Tt,aD as qe,ad as Vt,a0 as Ut,as as Lt,a2 as St,a3 as xt,a4 as It}from"./index-BXOWKrmL.js";import{_ as At}from"./call-outline-rounded-BPfmAopM.js";import{_ as Mt}from"./contact-page-outline-rounded-Dn3mmffA.js";import{_ as Dt,a as zt}from"./SearchInput-ZLdB9f4z.js";import{u as Ie,a as Ae}from"./vee-validate.esm-Bmkx0D8v.js";import{u as Ft,a as Et}from"./tags-BpDG2_1g.js";import{b as Bt,u as Qt,a as Kt}from"./key-events-DpI8L-ce.js";import{u as Ot}from"./search-B-8eugyA.js";import"./search-rounded-DpdJ2cSK.js";import"./rss-feed-rounded-DN7yBBrR.js";const Rt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},jt=e("path",{fill:"currentColor",d:"M3 21v-4.25L16.2 3.575q.3-.275.663-.425t.762-.15t.775.15t.65.45L20.425 5q.3.275.438.65T21 6.4q0 .4-.137.763t-.438.662L7.25 21zM17.6 7.8L19 6.4L17.6 5l-1.4 1.4z"},null,-1),Gt=[jt];function Ht(g,x){return s(),o("svg",Rt,[...Gt])}const Wt={name:"material-symbols-edit",render:Ht},Jt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Pt=e("path",{fill:"currentColor",d:"M12 13.825L8.1 17.7q-.275.275-.687.288T6.7 17.7q-.275-.275-.275-.7t.275-.7l4.6-4.6q.15-.15.325-.213t.375-.062t.375.062t.325.213l4.6 4.6q.275.275.288.688t-.288.712q-.275.275-.7.275t-.7-.275zm0-6L8.1 11.7q-.275.275-.687.288T6.7 11.7q-.275-.275-.275-.7t.275-.7l4.6-4.6q.15-.15.325-.212T12 5.425t.375.063t.325.212l4.6 4.6q.275.275.288.688t-.288.712q-.275.275-.7.275t-.7-.275z"},null,-1),Xt=[Pt];function Yt(g,x){return s(),o("svg",Jt,[...Xt])}const Zt={name:"material-symbols-keyboard-double-arrow-up-rounded",render:Yt},es={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ts=e("path",{fill:"currentColor",d:"m12 16.175l3.9-3.875q.275-.275.688-.288t.712.288q.275.275.275.7t-.275.7l-4.6 4.6q-.15.15-.325.213t-.375.062t-.375-.062t-.325-.213l-4.6-4.6q-.275-.275-.288-.687T6.7 12.3q.275-.275.7-.275t.7.275zm0-6L15.9 6.3q.275-.275.688-.287t.712.287q.275.275.275.7t-.275.7l-4.6 4.6q-.15.15-.325.213t-.375.062t-.375-.062t-.325-.213L6.7 7.7q-.275-.275-.288-.687T6.7 6.3q.275-.275.7-.275t.7.275z"},null,-1),ss=[ts];function os(g,x){return s(),o("svg",es,[...ss])}const ls={name:"material-symbols-keyboard-double-arrow-down-rounded",render:os};function W(g){return Array.from({length:g},(x,q)=>q+1).concat(-1)}const Z={phoneNumberTypes:W(20),emailTypes:W(4),addressTypes:W(3),eventTypes:W(3),imTypes:W(8),websiteTypes:W(7)},ns={slot:"headline"},as={slot:"content"},ds=["error","error-text"],is={slot:"actions"},cs=ue({__name:"PromptModal",props:{do:{type:Function,required:!0},title:{type:String,required:!0},value:{type:String}},setup(g){const{handleSubmit:x}=Ie(),q=B(),d=g,{value:C,resetField:K,errorMessage:A}=Ae("inputValue",Ve().required()),$=x(()=>{d.do(C.value??""),R()});return C.value=d.value,d.value||K(),(async()=>{var U;await et(),(U=q.value)==null||U.focus()})(),(U,T)=>(s(),o("md-dialog",null,[e("div",ns,u(g.title),1),e("div",as,[p(e("md-outlined-text-field",{ref_key:"inputRef",ref:q,class:"form-control",error:t(A),"error-text":t(A)?U.$t(t(A)):"","onUpdate:modelValue":T[0]||(T[0]=w=>tt(C)?C.value=w:null),onKeyup:T[1]||(T[1]=st((...w)=>t($)&&t($)(...w),["enter"]))},null,40,ds),[[b,t(C)]])]),e("div",is,[e("md-outlined-button",{value:"cancel",onClick:T[2]||(T[2]=(...w)=>t(R)&&t(R)(...w))},u(U.$t("cancel")),1),e("md-filled-button",{value:"ok",onClick:T[3]||(T[3]=(...w)=>t($)&&t($)(...w)),autofocus:""},u(U.$t("ok")),1)])]))}}),us=Ue(cs,[["__scopeId","data-v-f510d520"]]),rs={slot:"headline"},_s={slot:"content"},ps={class:"form-label"},ms={class:"form-row"},vs=["label"],hs=["label"],fs=["label"],bs={key:1,class:"v-center"},$s=e("md-ripple",null,null,-1),ys={key:0,class:"form-row"},ks=["label"],gs=["label"],Cs={class:"v-center"},ws=e("md-ripple",null,null,-1),Ns={class:"form-label"},qs=["onUpdate:modelValue","onChange"],Ts=["value"],Vs={slot:"headline"},Us=["placeholder","onUpdate:modelValue"],Ls={class:"v-center"},Ss=["onClick"],xs=e("md-ripple",null,null,-1),Is={key:1,class:"form-label"},As=["onUpdate:modelValue","onChange"],Ms=["value"],Ds={slot:"headline"},zs=["label","onUpdate:modelValue"],Fs={class:"v-center"},Es=["onClick"],Bs=e("md-ripple",null,null,-1),Qs={key:2,class:"form-label"},Ks=["onUpdate:modelValue","onChange"],Os=["value"],Rs={slot:"headline"},js=["label","onUpdate:modelValue"],Gs={class:"v-center"},Hs=["onClick"],Ws=e("md-ripple",null,null,-1),Js={key:3,class:"form-label"},Ps=["onUpdate:modelValue","onChange"],Xs=["value"],Ys={slot:"headline"},Zs=["placeholder","onUpdate:modelValue"],eo={class:"v-center"},to=["onClick"],so=e("md-ripple",null,null,-1),oo={key:4,class:"form-label"},lo=["onUpdate:modelValue","onChange"],no=["value"],ao={slot:"headline"},io=["placeholder","onUpdate:modelValue"],co={class:"v-center"},uo=["onClick"],ro=e("md-ripple",null,null,-1),_o={class:"form-row",style:{display:"block",position:"relative"}},po={class:"menu-items"},mo=["onClick"],vo={slot:"headline"},ho=["onClick"],fo={slot:"headline"},bo=["onClick"],$o={slot:"headline"},yo=["onClick"],ko={slot:"headline"},go=["onClick"],Co={slot:"headline"},wo={class:"form-row"},No=["label"],qo={slot:"actions"},To=["disabled"],Vo={key:0,indeterminate:"",slot:"icon"},Te=ue({__name:"EditContactModal",props:{data:{type:Object},sources:{type:Array},done:{type:Function,required:!0}},setup(g){const{handleSubmit:x}=Ie(),q=g,d=Le({firstName:"",middleName:"",lastName:"",prefix:"",suffix:"",nickname:"",organization:null,notes:"",source:"",starred:0,phoneNumbers:[],emails:[],addresses:[],websites:[],events:[],ims:[],groupIds:[]}),C=B(!1),{t:K}=Se(),{mutate:A,loading:$,onDone:U}=de({document:ie` mutation createContact($input: ContactInput!) { createContact(input: $input) { ...ContactFragment diff --git a/app/src/main/resources/web/assets/DeviceInfoView-DqZ-NosA.js b/app/src/main/resources/web/assets/DeviceInfoView-C3ZwUVaw.js similarity index 83% rename from app/src/main/resources/web/assets/DeviceInfoView-DqZ-NosA.js rename to app/src/main/resources/web/assets/DeviceInfoView-C3ZwUVaw.js index 4be0283c..927ead11 100644 --- a/app/src/main/resources/web/assets/DeviceInfoView-DqZ-NosA.js +++ b/app/src/main/resources/web/assets/DeviceInfoView-C3ZwUVaw.js @@ -1 +1 @@ -import{d as $,g as I,h as p,l as A,c as s,a as l,t as o,O as i,P as u,C as D,ab as w,bW as T,S as B,o as t,x as m,m as c,an as k,V as d,U as f,H as N}from"./index-B-S542RM.js";const S={class:"top-app-bar"},j={class:"title"},C={class:"scroll-content"},E={class:"grids"},F={class:"card"},L={class:"card-title"},P={class:"card-body"},Q={class:"key"},G={class:"value"},H={key:0,class:"time"},O={class:"card"},U={class:"card-title"},W={class:"card-body"},q={class:"key"},z={class:"value"},J={key:0,class:"time"},K={class:"card"},M={class:"card-title"},R={class:"card-body"},X={class:"key"},Y={class:"value"},Z={key:0,class:"time"},x=$({__name:"DeviceInfoView",setup(ee){const{t:b}=I(),y=p([]),g=p([]),V=p([]);return A({handle:(r,h)=>{if(h)D(b(h),"error");else{const a=r.deviceInfo;y.value=[{label:"device_name",value:a.deviceName},{label:"model",value:a.model},{label:"manufacturer",value:a.manufacturer},{label:"device",value:a.device},{label:"board",value:a.board},{label:"hardware",value:a.hardware},{label:"brand",value:a.buildBrand},{label:"build_fingerprint",value:a.fingerprint}],a.phoneNumbers.length>0&&y.value.push({label:"phone_number",value:a.phoneNumbers.map(n=>n.name+" "+n.number)}),g.value=[{label:"android_version",value:a.releaseBuildVersion+" ("+a.sdkVersion+")"},{label:"security_patch",value:a.securityPatch},{label:"bootloader",value:a.bootloader},{label:"build_number",value:a.displayVersion},{label:"baseband",value:a.radioVersion},{label:"java_vm",value:a.javaVmVersion},{label:"kernel",value:a.kernelVersion},{label:"opengl_es",value:a.glEsVersion},{label:"uptime",value:w(a.uptime/1e3)}];const e=r.battery;V.value=[{label:"health",value:b(`battery_health.${e.health}`)},{label:"remaining",value:`${e.level}%`},{label:"status",value:b(`battery_status.${e.status}`)},{label:"power_source",value:b(`battery_plugged.${e.plugged}`)},{label:"technology",value:e.technology},{label:"temperature",value:`${e.temperature} ℃`},{label:"voltage",value:`${e.voltage} mV`},{label:"capacity",value:e.capacity+" mAh"}]}},document:T,appApi:!0}),(r,h)=>{const a=B("tooltip");return t(),s(i,null,[l("div",S,[l("div",j,o(r.$t("device_info")),1)]),l("div",C,[l("div",E,[l("div",null,[l("section",F,[l("h5",L,o(r.$t("device")),1),l("div",P,[(t(!0),s(i,null,u(y.value,(e,n)=>(t(),s("div",{class:"key-value",key:n},[l("div",Q,o(r.$t(e.label)),1),l("div",G,[e.isTime?m((t(),s("time",H,[d(o(c(f)(e.value)),1)])),[[a,c(k)(e.value)]]):Array.isArray(e.value)?(t(!0),s(i,{key:1},u(e.value,(v,_)=>(t(),s("div",{key:_},o(v),1))),128)):(t(),s(i,{key:2},[d(o(e.value),1)],64))])]))),128))])])]),l("div",null,[l("section",O,[l("h5",U,o(r.$t("system")),1),l("div",W,[(t(!0),s(i,null,u(g.value,(e,n)=>(t(),s("div",{class:"key-value",key:n},[l("div",q,o(r.$t(e.label)),1),l("div",z,[e.isTime?m((t(),s("time",J,[d(o(c(f)(e.value)),1)])),[[a,c(k)(e.value)]]):Array.isArray(e.value)?(t(!0),s(i,{key:1},u(e.value,(v,_)=>(t(),s("div",{key:_},o(v),1))),128)):(t(),s(i,{key:2},[d(o(e.value),1)],64))])]))),128))])])]),l("div",null,[l("section",K,[l("h5",M,o(r.$t("battery")),1),l("div",R,[(t(!0),s(i,null,u(V.value,(e,n)=>(t(),s("div",{class:"key-value",key:n},[l("div",X,o(r.$t(e.label)),1),l("div",Y,[e.isTime?m((t(),s("time",Z,[d(o(c(f)(e.value)),1)])),[[a,c(k)(e.value)]]):Array.isArray(e.value)?(t(!0),s(i,{key:1},u(e.value,(v,_)=>(t(),s("div",{key:_},o(v),1))),128)):(t(),s(i,{key:2},[d(o(e.value),1)],64))])]))),128))])])])])])],64)}}}),le=N(x,[["__scopeId","data-v-a1e944bb"]]);export{le as default}; +import{d as $,g as I,h as p,l as A,c as s,a as l,t as o,O as i,P as u,C as D,ab as w,b_ as T,S as B,o as t,x as m,m as c,ap as k,V as d,U as f,H as N}from"./index-BXOWKrmL.js";const S={class:"top-app-bar"},j={class:"title"},C={class:"scroll-content"},E={class:"grids"},F={class:"card"},L={class:"card-title"},P={class:"card-body"},Q={class:"key"},G={class:"value"},H={key:0,class:"time"},O={class:"card"},U={class:"card-title"},q={class:"card-body"},z={class:"key"},J={class:"value"},K={key:0,class:"time"},M={class:"card"},R={class:"card-title"},W={class:"card-body"},X={class:"key"},Y={class:"value"},Z={key:0,class:"time"},x=$({__name:"DeviceInfoView",setup(ee){const{t:b}=I(),y=p([]),g=p([]),V=p([]);return A({handle:(r,h)=>{if(h)D(b(h),"error");else{const a=r.deviceInfo;y.value=[{label:"device_name",value:a.deviceName},{label:"model",value:a.model},{label:"manufacturer",value:a.manufacturer},{label:"device",value:a.device},{label:"board",value:a.board},{label:"hardware",value:a.hardware},{label:"brand",value:a.buildBrand},{label:"build_fingerprint",value:a.fingerprint}],a.phoneNumbers.length>0&&y.value.push({label:"phone_number",value:a.phoneNumbers.map(n=>n.name+" "+n.number)}),g.value=[{label:"android_version",value:a.releaseBuildVersion+" ("+a.sdkVersion+")"},{label:"security_patch",value:a.securityPatch},{label:"bootloader",value:a.bootloader},{label:"build_number",value:a.displayVersion},{label:"baseband",value:a.radioVersion},{label:"java_vm",value:a.javaVmVersion},{label:"kernel",value:a.kernelVersion},{label:"opengl_es",value:a.glEsVersion},{label:"uptime",value:w(a.uptime/1e3)}];const e=r.battery;V.value=[{label:"health",value:b(`battery_health.${e.health}`)},{label:"remaining",value:`${e.level}%`},{label:"status",value:b(`battery_status.${e.status}`)},{label:"power_source",value:b(`battery_plugged.${e.plugged}`)},{label:"technology",value:e.technology},{label:"temperature",value:`${e.temperature} ℃`},{label:"voltage",value:`${e.voltage} mV`},{label:"capacity",value:e.capacity+" mAh"}]}},document:T,appApi:!0}),(r,h)=>{const a=B("tooltip");return t(),s(i,null,[l("div",S,[l("div",j,o(r.$t("device_info")),1)]),l("div",C,[l("div",E,[l("div",null,[l("section",F,[l("h5",L,o(r.$t("device")),1),l("div",P,[(t(!0),s(i,null,u(y.value,(e,n)=>(t(),s("div",{class:"key-value",key:n},[l("div",Q,o(r.$t(e.label)),1),l("div",G,[e.isTime?m((t(),s("time",H,[d(o(c(f)(e.value)),1)])),[[a,c(k)(e.value)]]):Array.isArray(e.value)?(t(!0),s(i,{key:1},u(e.value,(v,_)=>(t(),s("div",{key:_},o(v),1))),128)):(t(),s(i,{key:2},[d(o(e.value),1)],64))])]))),128))])])]),l("div",null,[l("section",O,[l("h5",U,o(r.$t("system")),1),l("div",q,[(t(!0),s(i,null,u(g.value,(e,n)=>(t(),s("div",{class:"key-value",key:n},[l("div",z,o(r.$t(e.label)),1),l("div",J,[e.isTime?m((t(),s("time",K,[d(o(c(f)(e.value)),1)])),[[a,c(k)(e.value)]]):Array.isArray(e.value)?(t(!0),s(i,{key:1},u(e.value,(v,_)=>(t(),s("div",{key:_},o(v),1))),128)):(t(),s(i,{key:2},[d(o(e.value),1)],64))])]))),128))])])]),l("div",null,[l("section",M,[l("h5",R,o(r.$t("battery")),1),l("div",W,[(t(!0),s(i,null,u(V.value,(e,n)=>(t(),s("div",{class:"key-value",key:n},[l("div",X,o(r.$t(e.label)),1),l("div",Y,[e.isTime?m((t(),s("time",Z,[d(o(c(f)(e.value)),1)])),[[a,c(k)(e.value)]]):Array.isArray(e.value)?(t(!0),s(i,{key:1},u(e.value,(v,_)=>(t(),s("div",{key:_},o(v),1))),128)):(t(),s(i,{key:2},[d(o(e.value),1)],64))])]))),128))])])])])])],64)}}}),le=N(x,[["__scopeId","data-v-a1e944bb"]]);export{le as default}; diff --git a/app/src/main/resources/web/assets/DevicesView-DLJRQ-K_.js b/app/src/main/resources/web/assets/DevicesView-DLJRQ-K_.js new file mode 100644 index 00000000..8dbeb0a5 --- /dev/null +++ b/app/src/main/resources/web/assets/DevicesView-DLJRQ-K_.js @@ -0,0 +1,19 @@ +import{d as y,g as A,h as N,l as F,C as I,ac as r,cw as p,c as o,p as m,a as e,t as a,O as _,P as M,S as q,o as i,w as v,x as h,m as d,ap as f,V as $,U as D,Z as w,ad as B,j as E,a3 as S}from"./index-BXOWKrmL.js";import{_ as T}from"./Breadcrumb-7GnPZCg_.js";import{E as O}from"./EditValueModal-HQ024-FF.js";import"./vee-validate.esm-Bmkx0D8v.js";const U={class:"table-responsive"},j={class:"table"},L=e("th",null,"ID",-1),P={class:"actions one"},Q=["onClick"],Z={class:"nowrap"},z={class:"nowrap"},G={class:"actions one"},H=["onClick"],Y=y({__name:"DevicesView",setup(J){const{t:s}=A(),c=N([]);F({handle:(t,l)=>{l?I(s(l),"error"):c.value=[...t.devices]},document:r` + query { + devices { + ...DeviceFragment + } + } + ${p} + `});function g(t){w(B,{id:t.id,name:t.name||s("unknown"),gql:r` + mutation DeleteDevice($id: ID!) { + deleteDevice(id: $id) + } + `,appApi:!1,typeName:"Device"})}function k(t){w(O,{title:s("rename"),placeholder:s("name"),mutation:()=>E({document:r` + mutation updateDeviceName($id: ID!, $name: String!) { + updateDeviceName(id: $id, name: $name) { + ...DeviceFragment + } + } + ${p} + `,appApi:!1}),value:t.name?t.name:s("unknown"),getVariables:l=>({id:t.id,name:l})})}return(t,l)=>{const V=T,C=S,u=q("tooltip");return i(),o(_,null,[m(V,{current:()=>t.$t("page_title.devices")},null,8,["current"]),e("div",U,[e("table",j,[e("thead",null,[e("tr",null,[L,e("th",null,a(t.$t("name")),1),e("th",null,a(t.$t("ip_address")),1),e("th",null,a(t.$t("mac_address")),1),e("th",null,a(t.$t("manufacturer")),1),e("th",null,a(t.$t("status")),1),e("th",null,a(t.$t("created_at")),1),e("th",null,a(t.$t("active_at")),1),e("th",P,a(t.$t("actions")),1)])]),e("tbody",null,[(i(!0),o(_,null,M(c.value,n=>(i(),o("tr",{key:n.id},[e("td",null,[m(C,{id:n.id,raw:n},null,8,["id","raw"])]),e("td",null,[e("a",{href:"#",onClick:v(b=>k(n),["prevent"])},a(n.name?n.name:t.$t("unknown")),9,Q)]),e("td",null,a(n.ip4),1),e("td",null,a(n.mac.toUpperCase()),1),e("td",null,a(n.macVendor?n.macVendor:t.$t("unknown")),1),e("td",null,a(t.$t(n.isOnline?"online":"offline")),1),e("td",Z,[h((i(),o("time",null,[$(a(d(D)(n.createdAt)),1)])),[[u,d(f)(n.createdAt)]])]),e("td",z,[h((i(),o("time",null,[$(a(d(D)(n.activeAt)),1)])),[[u,d(f)(n.activeAt)]])]),e("td",G,[e("a",{href:"#",class:"v-link",onClick:v(b=>g(n),["prevent"])},a(t.$t("delete")),9,H)])]))),128))])])])],64)}}});export{Y as default}; diff --git a/app/src/main/resources/web/assets/DevicesView-DLXN6G6M.js b/app/src/main/resources/web/assets/DevicesView-DLXN6G6M.js deleted file mode 100644 index 8cc7c12a..00000000 --- a/app/src/main/resources/web/assets/DevicesView-DLXN6G6M.js +++ /dev/null @@ -1,19 +0,0 @@ -import{d as y,g as A,h as N,l as F,C as I,ac as r,cs as m,c as o,p,a as e,t as a,O as _,P as M,S as q,o as i,w as v,x as h,m as d,an as f,V as $,U as D,Z as g,ad as B,j as E,a3 as S}from"./index-B-S542RM.js";import{_ as T}from"./Breadcrumb-B2BEfhSz.js";import{E as O}from"./EditValueModal-u3M261_O.js";import"./vee-validate.esm-D5u4WlYW.js";const U={class:"table-responsive"},j={class:"table"},L=e("th",null,"ID",-1),P={class:"actions one"},Q=["onClick"],Z={class:"nowrap"},z={class:"nowrap"},G={class:"actions one"},H=["onClick"],Y=y({__name:"DevicesView",setup(J){const{t:s}=A(),c=N([]);F({handle:(n,l)=>{l?I(s(l),"error"):c.value=[...n.devices]},document:r` - query { - devices { - ...DeviceFragment - } - } - ${m} - `});function k(n){g(B,{id:n.id,name:n.name||s("unknown"),gql:r` - mutation DeleteDevice($id: ID!) { - deleteDevice(id: $id) - } - `,appApi:!1,typeName:"Device"})}function w(n){g(O,{title:s("rename"),placeholder:s("name"),mutation:()=>E({document:r` - mutation updateDeviceName($id: ID!, $name: String!) { - updateDeviceName(id: $id, name: $name) { - ...DeviceFragment - } - } - ${m} - `,appApi:!1}),value:n.name?n.name:s("unknown"),getVariables:l=>({id:n.id,name:l})})}return(n,l)=>{const V=T,C=S,u=q("tooltip");return i(),o(_,null,[p(V,{current:()=>n.$t("page_title.devices")},null,8,["current"]),e("div",U,[e("table",j,[e("thead",null,[e("tr",null,[L,e("th",null,a(n.$t("name")),1),e("th",null,a(n.$t("ip_address")),1),e("th",null,a(n.$t("mac_address")),1),e("th",null,a(n.$t("manufacturer")),1),e("th",null,a(n.$t("status")),1),e("th",null,a(n.$t("created_at")),1),e("th",null,a(n.$t("active_at")),1),e("th",P,a(n.$t("actions")),1)])]),e("tbody",null,[(i(!0),o(_,null,M(c.value,t=>(i(),o("tr",{key:t.id},[e("td",null,[p(C,{id:t.id,raw:t},null,8,["id","raw"])]),e("td",null,[e("a",{href:"#",onClick:v(b=>w(t),["prevent"])},a(t.name?t.name:n.$t("unknown")),9,Q)]),e("td",null,a(t.ip4),1),e("td",null,a(t.mac.toUpperCase()),1),e("td",null,a(t.macVendor?t.macVendor:n.$t("unknown")),1),e("td",null,a(n.$t(t.isOnline?"online":"offline")),1),e("td",Z,[h((i(),o("time",null,[$(a(d(D)(t.createdAt)),1)])),[[u,d(f)(t.createdAt)]])]),e("td",z,[h((i(),o("time",null,[$(a(d(D)(t.activeAt)),1)])),[[u,d(f)(t.activeAt)]])]),e("td",G,[e("a",{href:"#",class:"v-link",onClick:v(b=>k(t),["prevent"])},a(n.$t("delete")),9,H)])]))),128))])])])],64)}}});export{Y as default}; diff --git a/app/src/main/resources/web/assets/EditToolbar.vuevuetypescriptsetuptruelang-BYnXPUga.js b/app/src/main/resources/web/assets/EditToolbar.vuevuetypescriptsetuptruelang-CixbO2wa.js similarity index 92% rename from app/src/main/resources/web/assets/EditToolbar.vuevuetypescriptsetuptruelang-BYnXPUga.js rename to app/src/main/resources/web/assets/EditToolbar.vuevuetypescriptsetuptruelang-CixbO2wa.js index fd76ce3e..4443bddb 100644 --- a/app/src/main/resources/web/assets/EditToolbar.vuevuetypescriptsetuptruelang-BYnXPUga.js +++ b/app/src/main/resources/web/assets/EditToolbar.vuevuetypescriptsetuptruelang-CixbO2wa.js @@ -1 +1 @@ -import{d as b,h as p,o,c as n,a as l,O as v,P as y,N as f,t as d}from"./index-B-S542RM.js";const h={class:"top-app-bar"},g={class:"v-tabs"},k=["onClick"],C={class:"actions"},V=["disabled"],_=b({__name:"EditToolbar",props:{modelValue:{type:Number,default:0},save:{type:Function},loading:{type:Boolean},tabs:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(t,{emit:r}){const u=r,i=p(t.modelValue);function m(e){i.value=e,u("update:modelValue",e)}return(e,c)=>(o(),n("div",h,[l("ul",g,[(o(!0),n(v,null,y(t.tabs,(a,s)=>(o(),n("li",{key:s,onClick:N=>m(s),class:f({active:i.value===s})},d(a.startsWith("t:")?e.$t(a.slice(2)):a),11,k))),128))]),l("div",C,[l("button",{type:"button",disabled:t.loading,class:"btn",onClick:c[0]||(c[0]=(...a)=>t.save&&t.save(...a))},d(e.$t(t.loading?"saving":"save")),9,V)])]))}});export{_}; +import{d as b,h as p,o,c as n,a as l,O as v,P as y,N as f,t as d}from"./index-BXOWKrmL.js";const h={class:"top-app-bar"},g={class:"v-tabs"},k=["onClick"],C={class:"actions"},V=["disabled"],_=b({__name:"EditToolbar",props:{modelValue:{type:Number,default:0},save:{type:Function},loading:{type:Boolean},tabs:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(t,{emit:r}){const u=r,i=p(t.modelValue);function m(e){i.value=e,u("update:modelValue",e)}return(e,c)=>(o(),n("div",h,[l("ul",g,[(o(!0),n(v,null,y(t.tabs,(a,s)=>(o(),n("li",{key:s,onClick:N=>m(s),class:f({active:i.value===s})},d(a.startsWith("t:")?e.$t(a.slice(2)):a),11,k))),128))]),l("div",C,[l("button",{type:"button",disabled:t.loading,class:"btn",onClick:c[0]||(c[0]=(...a)=>t.save&&t.save(...a))},d(e.$t(t.loading?"saving":"save")),9,V)])]))}});export{_}; diff --git a/app/src/main/resources/web/assets/EditValueModal-u3M261_O.js b/app/src/main/resources/web/assets/EditValueModal-HQ024-FF.js similarity index 77% rename from app/src/main/resources/web/assets/EditValueModal-u3M261_O.js rename to app/src/main/resources/web/assets/EditValueModal-HQ024-FF.js index a996acf0..c561e403 100644 --- a/app/src/main/resources/web/assets/EditValueModal-u3M261_O.js +++ b/app/src/main/resources/web/assets/EditValueModal-HQ024-FF.js @@ -1 +1 @@ -import{d as g,h as k,ci as x,as as S,a_ as F,at as p,o as v,c as f,a as n,t as u,x as M,y as q,m as e,z as C,A as E,e as $,V as B,H as D}from"./index-B-S542RM.js";import{u as N}from"./vee-validate.esm-D5u4WlYW.js";const R={slot:"headline"},T={slot:"content"},w=["placeholder","error","error-text"],A={slot:"actions"},K=["disabled"],z={key:0,indeterminate:"",slot:"icon"},H=g({__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 c=k(),s=r,{errors:d,handleSubmit:y,defineField:h}=N({validationSchema:x({name:S().required()}),initialValues:{name:s.value??""}}),[o]=h("name"),{mutate:_,loading:m,onDone:V}=s.mutation();o.value=s.value??"";function b(){p()}F(async()=>{setTimeout(()=>{var t;(t=c.value)==null||t.focus()},100)});const l=y(()=>{_(s.getVariables(o.value??""))});return V(()=>{var t;(t=s.done)==null||t.call(this,o.value),p()}),(t,a)=>(v(),f("md-dialog",null,[n("div",R,u(r.title),1),n("div",T,[M(n("md-outlined-text-field",{ref_key:"inputRef",ref:c,placeholder:r.placeholder,"onUpdate:modelValue":a[0]||(a[0]=i=>C(o)?o.value=i:null),onKeyup:a[1]||(a[1]=E((...i)=>e(l)&&e(l)(...i),["enter"])),error:e(d).name,"error-text":e(d).name?t.$t(e(d).name):""},null,40,w),[[q,e(o)]])]),n("div",A,[n("md-outlined-button",{value:"cancel",onClick:b},u(t.$t("cancel")),1),n("md-filled-button",{value:"save",disabled:e(m),onClick:a[2]||(a[2]=(...i)=>e(l)&&e(l)(...i)),autofocus:""},[e(m)?(v(),f("md-circular-progress",z)):$("",!0),B(u(t.$t("save")),1)],8,K)])]))}}),j=D(H,[["__scopeId","data-v-eb08b2c1"]]);export{j as E}; +import{d as g,h as k,cm as x,au as S,af as F,av as p,o as v,c as f,a as n,t as u,x as M,y as q,m as e,z as C,A as E,e as $,V as B,H as D}from"./index-BXOWKrmL.js";import{u as N}from"./vee-validate.esm-Bmkx0D8v.js";const R={slot:"headline"},T={slot:"content"},w=["placeholder","error","error-text"],A={slot:"actions"},K=["disabled"],z={key:0,indeterminate:"",slot:"icon"},H=g({__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 c=k(),s=r,{errors:d,handleSubmit:y,defineField:h}=N({validationSchema:x({name:S().required()}),initialValues:{name:s.value??""}}),[o]=h("name"),{mutate:V,loading:m,onDone:_}=s.mutation();o.value=s.value??"";function b(){p()}F(async()=>{setTimeout(()=>{var t;(t=c.value)==null||t.focus()},100)});const l=y(()=>{V(s.getVariables(o.value??""))});return _(()=>{var t;(t=s.done)==null||t.call(this,o.value),p()}),(t,a)=>(v(),f("md-dialog",null,[n("div",R,u(r.title),1),n("div",T,[M(n("md-outlined-text-field",{ref_key:"inputRef",ref:c,placeholder:r.placeholder,"onUpdate:modelValue":a[0]||(a[0]=i=>C(o)?o.value=i:null),onKeyup:a[1]||(a[1]=E((...i)=>e(l)&&e(l)(...i),["enter"])),error:e(d).name,"error-text":e(d).name?t.$t(e(d).name):""},null,40,w),[[q,e(o)]])]),n("div",A,[n("md-outlined-button",{value:"cancel",onClick:b},u(t.$t("cancel")),1),n("md-filled-button",{value:"save",disabled:e(m),onClick:a[2]||(a[2]=(...i)=>e(l)&&e(l)(...i)),autofocus:""},[e(m)?(v(),f("md-circular-progress",z)):$("",!0),B(u(t.$t("save")),1)],8,K)])]))}}),j=D(H,[["__scopeId","data-v-eb08b2c1"]]);export{j as E}; diff --git a/app/src/main/resources/web/assets/FeedEntryView-2EJadICJ.js b/app/src/main/resources/web/assets/FeedEntryView-CmXJcA56.js similarity index 57% rename from app/src/main/resources/web/assets/FeedEntryView-2EJadICJ.js rename to app/src/main/resources/web/assets/FeedEntryView-CmXJcA56.js index 7dd0382d..efb909e1 100644 --- a/app/src/main/resources/web/assets/FeedEntryView-2EJadICJ.js +++ b/app/src/main/resources/web/assets/FeedEntryView-CmXJcA56.js @@ -1 +1 @@ -import{o as n,c as a,a as o,d as te,g as se,h as b,s as ne,i as ae,K as oe,u as ie,j as A,C as $,l as ce,L as le,M as de,m as c,w as _,t as q,e as L,x as l,V as _e,p as d,Q as re,cL as ue,cI as pe,b5 as ve,cM as me,a4 as ye,S as be,U as he,W as fe,F as ke,G as ge,Y as Te,f as H,Z as we,$ as Ce,a1 as h,a2 as $e,cN as qe,H as Le}from"./index-B-S542RM.js";import{_ as xe}from"./print-outline-rounded-CtsVPpnN.js";import{a as Fe,_ as Ee}from"./add-notes-outline-rounded-DjCnlzSZ.js";import{u as Me}from"./markdown-DdibuaIZ.js";import{u as De}from"./feeds--RKt1Kst.js";const Ne={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Se=o("path",{fill:"currentColor",d:"M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h6q.425 0 .713.288T12 4t-.288.713T11 5H5v14h14v-6q0-.425.288-.712T20 12t.713.288T21 13v6q0 .825-.587 1.413T19 21zM19 6.4L10.4 15q-.275.275-.7.275T9 15t-.275-.7t.275-.7L17.6 5H15q-.425 0-.712-.288T14 4t.288-.712T15 3h5q.425 0 .713.288T21 4v5q0 .425-.288.713T20 10t-.712-.288T19 9z"},null,-1),Ve=[Se];function Ae(u,v){return n(),a("svg",Ne,[...Ve])}const He={name:"material-symbols-open-in-new-rounded",render:Ae},r=u=>(ke("data-v-8cca54ab"),u=u(),ge(),u),Qe={class:"content"},Ie={key:0},Ge=Te('
',3),ze=[Ge],Be={key:1},Re={class:"top-app-bar"},Ue={class:"title"},Ke={key:1},Ye=r(()=>o("md-ripple",null,null,-1)),je={key:2,indeterminate:"",class:"spinner-sm"},Pe=["disabled"],We=r(()=>o("md-ripple",null,null,-1)),Ze=["href"],Je={class:"btn-icon sm"},Oe=r(()=>o("md-ripple",null,null,-1)),Xe=r(()=>o("md-ripple",null,null,-1)),et=r(()=>o("md-ripple",null,null,-1)),tt={class:"actions"},st=r(()=>o("md-ripple",null,null,-1)),nt={class:"article-title"},at=["innerHTML"],p="FEED_ENTRY",ot=te({__name:"FeedEntryView",setup(u){const{t:v}=se(),x=re(),f=b(x.params.id),s=b(),m=b(""),k=b(),{app:Q,urlTokenKey:I}=ne(ae()),{render:F}=Me(Q,I),{loading:G,fetch:g}=oe({handle:async(e,t)=>{t?$(v(t),"error"):(s.value=e.feedEntry,s.value?m.value=await F(e.feedEntry.content||e.feedEntry.description):m.value="")},document:ue,variables:()=>({id:f.value}),appApi:!0}),T=ie(),{viewFeed:z}=De(T);function B(){const e=x.query.q;e?H(T,`/feeds?q=${e}`):H(T,"/feeds")}const{mutate:R,loading:it,onDone:U}=A({document:pe,appApi:!0});U(()=>{$(v("saved"))}),ce({handle:(e,t)=>{t?$(v(t),"error"):e&&(k.value=e.tags)},document:ve,variables:{type:p},appApi:!0});const K=()=>{window.print()};function Y(){var e,t;we(Ce,{type:p,tags:k.value,item:{key:(e=s.value)==null?void 0:e.id,title:"",size:0},selected:(t=k.value)==null?void 0:t.filter(w=>{var y;return(y=s.value)==null?void 0:y.tags.some(C=>C.id===w.id)})})}const{mutate:j,loading:E,onDone:P}=A({document:me,appApi:!0});P(async e=>{const t=e.data;s.value=t.syncFeedContent,m.value=await F(t.syncFeedContent.content||t.syncFeedContent.description)});const W=()=>{j({id:f.value})},M=e=>{e.type===p&&g()},D=e=>{e.type===p&&g()};return le(()=>{h.on("item_tags_updated",D),h.on("items_tags_updated",M),g()}),de(()=>{h.off("item_tags_updated",D),h.off("items_tags_updated",M)}),(e,t)=>{var N,S,V;const w=ye,y=$e,C=Fe,Z=He,J=Ee,O=xe,X=qe,i=be("tooltip");return n(),a("div",Qe,[c(G)&&!s.value?(n(),a("article",Ie,ze)):s.value?(n(),a("article",Be,[o("div",Re,[o("div",Ue,[s.value.feed?(n(),a("a",{key:0,onClick:t[0]||(t[0]=_(ee=>c(z)(s.value.feed),["stop","prevent"]))},q(s.value.feed.name),1)):L("",!0),s.value?l((n(),a("time",Ke,[_e(q(c(fe)(s.value.publishedAt)),1)])),[[i,c(he)(s.value.publishedAt)]]):L("",!0),d(w,{tags:(N=s.value)==null?void 0:N.tags,type:p},null,8,["tags"]),l((n(),a("button",{class:"btn-icon sm",onClick:_(Y,["prevent"]),style:{"margin-inline-start":"16px"}},[Ye,d(y)])),[[i,e.$t("add_to_tags")]]),c(E)?(n(),a("md-circular-progress",je)):l((n(),a("button",{key:3,class:"btn-icon sm",disabled:c(E),onClick:_(W,["prevent"])},[We,d(C)],8,Pe)),[[i,e.$t("sync_content")]]),l((n(),a("a",{href:(S=s.value)==null?void 0:S.url,class:"btn-icon",target:"_blank"},[o("button",Je,[Oe,d(Z)])],8,Ze)),[[i,e.$t("view_original_article")]]),l((n(),a("button",{class:"btn-icon sm",onClick:t[1]||(t[1]=_(ee=>c(R)({query:`ids:${f.value}`}),["prevent"]))},[Xe,d(J)])),[[i,e.$t("save_to_notes")]]),l((n(),a("button",{class:"btn-icon sm",onClick:_(K,["prevent"])},[et,d(O)])),[[i,e.$t("print")]])]),o("div",tt,[l((n(),a("button",{class:"btn-icon",onClick:_(B,["prevent"])},[st,d(X)])),[[i,e.$t("close")]])])]),o("div",nt,q((V=s.value)==null?void 0:V.title),1),o("div",{class:"md-container",innerHTML:m.value},null,8,at)])):L("",!0)])}}}),ut=Le(ot,[["__scopeId","data-v-8cca54ab"]]);export{ut as default}; +import{o as n,c as a,a as o,d as te,g as se,h as b,s as ne,i as ae,K as oe,u as ie,j as A,C as $,l as ce,L as le,M as de,m as c,w as _,t as q,e as x,x as l,V as _e,p as d,Q as re,cP as ue,cM as pe,b9 as ve,cQ as me,a4 as ye,S as be,U as he,W as fe,F as ke,G as ge,Y as Te,f as Q,Z as we,$ as Ce,a1 as h,a2 as $e,cR as qe,H as xe}from"./index-BXOWKrmL.js";import{_ as Fe}from"./print-outline-rounded-B-LbOkYS.js";import{a as Le,_ as Ee}from"./add-notes-outline-rounded-BvbrKfug.js";import{u as Me}from"./markdown-CQMofEuT.js";import{u as De}from"./feeds-B70qguWF.js";const Se={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ne=o("path",{fill:"currentColor",d:"M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h6q.425 0 .713.288T12 4t-.288.713T11 5H5v14h14v-6q0-.425.288-.712T20 12t.713.288T21 13v6q0 .825-.587 1.413T19 21zM19 6.4L10.4 15q-.275.275-.7.275T9 15t-.275-.7t.275-.7L17.6 5H15q-.425 0-.712-.288T14 4t.288-.712T15 3h5q.425 0 .713.288T21 4v5q0 .425-.288.713T20 10t-.712-.288T19 9z"},null,-1),Ve=[Ne];function Ae(u,v){return n(),a("svg",Se,[...Ve])}const Qe={name:"material-symbols-open-in-new-rounded",render:Ae},r=u=>(ke("data-v-8cca54ab"),u=u(),ge(),u),He={class:"content"},Ge={key:0},Ie=Te('
',3),ze=[Ie],Be={key:1},Re={class:"top-app-bar"},Ue={class:"title"},Ke={key:1},Pe=r(()=>o("md-ripple",null,null,-1)),Ye={key:2,indeterminate:"",class:"spinner-sm"},je=["disabled"],We=r(()=>o("md-ripple",null,null,-1)),Ze=["href"],Je={class:"btn-icon sm"},Oe=r(()=>o("md-ripple",null,null,-1)),Xe=r(()=>o("md-ripple",null,null,-1)),et=r(()=>o("md-ripple",null,null,-1)),tt={class:"actions"},st=r(()=>o("md-ripple",null,null,-1)),nt={class:"article-title"},at=["innerHTML"],p="FEED_ENTRY",ot=te({__name:"FeedEntryView",setup(u){const{t:v}=se(),F=re(),f=b(F.params.id),s=b(),m=b(""),k=b(),{app:H,urlTokenKey:G}=ne(ae()),{render:L}=Me(H,G),{loading:I,fetch:g}=oe({handle:async(e,t)=>{t?$(v(t),"error"):(s.value=e.feedEntry,s.value?m.value=await L(e.feedEntry.content||e.feedEntry.description):m.value="")},document:ue,variables:()=>({id:f.value}),appApi:!0}),T=ie(),{viewFeed:z}=De(T);function B(){const e=F.query.q;e?Q(T,`/feeds?q=${e}`):Q(T,"/feeds")}const{mutate:R,loading:it,onDone:U}=A({document:pe,appApi:!0});U(()=>{$(v("saved"))}),ce({handle:(e,t)=>{t?$(v(t),"error"):e&&(k.value=e.tags)},document:ve,variables:{type:p},appApi:!0});const K=()=>{window.print()};function P(){var e,t;we(Ce,{type:p,tags:k.value,item:{key:(e=s.value)==null?void 0:e.id,title:"",size:0},selected:(t=k.value)==null?void 0:t.filter(w=>{var y;return(y=s.value)==null?void 0:y.tags.some(C=>C.id===w.id)})})}const{mutate:Y,loading:E,onDone:j}=A({document:me,appApi:!0});j(async e=>{const t=e.data;s.value=t.syncFeedContent,m.value=await L(t.syncFeedContent.content||t.syncFeedContent.description)});const W=()=>{Y({id:f.value})},M=e=>{e.type===p&&g()},D=e=>{e.type===p&&g()};return le(()=>{h.on("item_tags_updated",D),h.on("items_tags_updated",M),g()}),de(()=>{h.off("item_tags_updated",D),h.off("items_tags_updated",M)}),(e,t)=>{var S,N,V;const w=ye,y=$e,C=Le,Z=Qe,J=Ee,O=Fe,X=qe,i=be("tooltip");return n(),a("div",He,[c(I)&&!s.value?(n(),a("article",Ge,ze)):s.value?(n(),a("article",Be,[o("div",Re,[o("div",Ue,[s.value.feed?(n(),a("a",{key:0,onClick:t[0]||(t[0]=_(ee=>c(z)(s.value.feed),["stop","prevent"]))},q(s.value.feed.name),1)):x("",!0),s.value?l((n(),a("time",Ke,[_e(q(c(fe)(s.value.publishedAt)),1)])),[[i,c(he)(s.value.publishedAt)]]):x("",!0),d(w,{tags:(S=s.value)==null?void 0:S.tags,type:p},null,8,["tags"]),l((n(),a("button",{class:"btn-icon sm",onClick:_(P,["prevent"]),style:{"margin-inline-start":"16px"}},[Pe,d(y)])),[[i,e.$t("add_to_tags")]]),c(E)?(n(),a("md-circular-progress",Ye)):l((n(),a("button",{key:3,class:"btn-icon sm",disabled:c(E),onClick:_(W,["prevent"])},[We,d(C)],8,je)),[[i,e.$t("sync_content")]]),l((n(),a("a",{href:(N=s.value)==null?void 0:N.url,class:"btn-icon",target:"_blank"},[o("button",Je,[Oe,d(Z)])],8,Ze)),[[i,e.$t("view_original_article")]]),l((n(),a("button",{class:"btn-icon sm",onClick:t[1]||(t[1]=_(ee=>c(R)({query:`ids:${f.value}`}),["prevent"]))},[Xe,d(J)])),[[i,e.$t("save_to_notes")]]),l((n(),a("button",{class:"btn-icon sm",onClick:_(K,["prevent"])},[et,d(O)])),[[i,e.$t("print")]])]),o("div",tt,[l((n(),a("button",{class:"btn-icon",onClick:_(B,["prevent"])},[st,d(X)])),[[i,e.$t("close")]])])]),o("div",nt,q((V=s.value)==null?void 0:V.title),1),o("div",{class:"md-container",innerHTML:m.value},null,8,at)])):x("",!0)])}}}),ut=xe(ot,[["__scopeId","data-v-8cca54ab"]]);export{ut as default}; diff --git a/app/src/main/resources/web/assets/FeedsSidebar-BlMq6Zgz.js b/app/src/main/resources/web/assets/FeedsSidebar-B4F1te2F.js similarity index 54% rename from app/src/main/resources/web/assets/FeedsSidebar-BlMq6Zgz.js rename to app/src/main/resources/web/assets/FeedsSidebar-B4F1te2F.js index 9b4dc9f2..7ab74c36 100644 --- a/app/src/main/resources/web/assets/FeedsSidebar-BlMq6Zgz.js +++ b/app/src/main/resources/web/assets/FeedsSidebar-B4F1te2F.js @@ -1 +1 @@ -import{_ as ge}from"./LeftSidebar.vuevuetypescriptsetuptruelang-Bkp0VFG-.js";import{a as be,_ as Ce}from"./TagFilter.vuevuetypescriptsetuptruelang-DXYEFTYG.js";import{_ as Fe}from"./more-vert-XZtlvs7x.js";import{d as N,h as c,j as T,cz as we,as as W,au as X,at as x,o as p,c as _,a as e,t as l,x as D,y as ee,m as o,z as te,A as oe,V as S,e as L,H as Ee,cA as Me,g as Ae,u as xe,s as Le,i as Se,I as Ie,K as Ve,k as Te,l as De,ba as Qe,C as j,a_ as Re,a1 as I,a$ as qe,v as Ge,q as Q,cB as Ne,a6 as Y,a0 as Be,cC as ze,cD as Ke,cE as Oe,S as Pe,p as R,P as Z,O as J,w as V,N as q,Z as G,cF as He,f as Ue,ad as je}from"./index-B-S542RM.js";import{u as ne,a as se}from"./vee-validate.esm-D5u4WlYW.js";import{u as Ye}from"./feeds--RKt1Kst.js";import{u as Ze}from"./search-k8SzNgo1.js";import"./EditValueModal-u3M261_O.js";const Je={slot:"headline"},We={slot:"content"},Xe={class:"form-row"},et=["label","error","error-text"],tt={class:"form-row"},ot={class:"form-check-label"},nt=["checked"],st={slot:"actions"},at=["disabled"],lt={key:0,indeterminate:"",slot:"icon"},dt=N({__name:"AddFeedModal",props:{done:{type:Function}},setup(M){const{handleSubmit:b}=ne(),k=c(),i=c(!1);function A(t){i.value=t.target.checked}const v=M,{mutate:w,loading:C,onDone:F}=T({document:we,appApi:!0}),{value:d,resetField:f,errorMessage:u}=se("inputValue",W().required());f();function y(){x()}(async()=>{var t;await X(),(t=k.value)==null||t.focus()})();const h=b(()=>{w({url:d.value??"",fetchContent:i.value})});return F(()=>{var t;(t=v.done)==null||t.call(this),x()}),(t,a)=>(p(),_("md-dialog",null,[e("div",Je,l(t.$t("add_subscription")),1),e("div",We,[e("div",Xe,[D(e("md-outlined-text-field",{ref_key:"inputRef",ref:k,label:t.$t("rss_url"),"onUpdate:modelValue":a[0]||(a[0]=m=>te(d)?d.value=m:null),onKeyup:a[1]||(a[1]=oe((...m)=>o(h)&&o(h)(...m),["enter"])),error:o(u),"error-text":o(u)?t.$t(o(u)):""},null,40,et),[[ee,o(d)]])]),e("div",tt,[e("label",ot,[e("md-checkbox",{"touch-target":"wrapper",onChange:A,checked:i.value},null,40,nt),S(" "+l(t.$t("fetch_content_automatically")),1)])])]),e("div",st,[e("md-outlined-button",{value:"cancel",onClick:y},l(t.$t("cancel")),1),e("md-filled-button",{value:"save",disabled:o(C),onClick:a[2]||(a[2]=(...m)=>o(h)&&o(h)(...m)),autofocus:""},[o(C)?(p(),_("md-circular-progress",lt)):L("",!0),S(" "+l(t.$t("save")),1)],8,at)])]))}}),it=Ee(dt,[["__scopeId","data-v-1e144d60"]]),rt={slot:"headline"},ut={slot:"content"},ct={class:"form-label"},pt={class:"form-row"},ft=["label","error","error-text"],mt={class:"form-row"},_t={class:"form-check-label"},vt=["checked"],ht={slot:"actions"},$t=["disabled"],kt={key:0,indeterminate:"",slot:"icon"},yt=N({__name:"FeedModal",props:{data:{type:Object}},setup(M){var y,h;const{handleSubmit:b}=ne(),k=c(),i=c(!1);function A(t){i.value=t.target.checked}const v=M,{mutate:w,loading:C,onDone:F}=T({document:Me,appApi:!0}),{value:d,errorMessage:f}=se("inputValue",W().required());d.value=((y=v.data)==null?void 0:y.name)??"",i.value=((h=v.data)==null?void 0:h.fetchContent)??!1,(async()=>{var t;await X(),(t=k.value)==null||t.focus()})();const u=b(()=>{var t;w({id:(t=v.data)==null?void 0:t.id,name:d.value,fetchContent:i.value})});return F(()=>{x()}),(t,a)=>{var m;return p(),_("md-dialog",null,[e("div",rt,l(t.$t("update_subscription")),1),e("div",ut,[e("div",ct,l((m=M.data)==null?void 0:m.url),1),e("div",pt,[D(e("md-outlined-text-field",{ref_key:"inputRef",ref:k,class:"form-control",label:t.$t("name"),error:o(f),"error-text":o(f)?t.$t(o(f)):"","onUpdate:modelValue":a[0]||(a[0]=$=>te(d)?d.value=$:null),onKeyup:a[1]||(a[1]=oe((...$)=>o(u)&&o(u)(...$),["enter"]))},null,40,ft),[[ee,o(d)]])]),e("div",mt,[e("label",_t,[e("md-checkbox",{"touch-target":"wrapper",onChange:A,checked:i.value},null,40,vt),S(" "+l(t.$t("fetch_content_automatically")),1)])])]),e("div",ht,[e("md-outlined-button",{value:"cancel",onClick:a[2]||(a[2]=(...$)=>o(x)&&o(x)(...$))},l(t.$t("cancel")),1),e("md-filled-button",{value:"save",disabled:o(C),onClick:a[3]||(a[3]=(...$)=>o(u)&&o(u)(...$)),autofocus:""},[o(C)?(p(),_("md-circular-progress",kt)):L("",!0),S(" "+l(t.$t("save")),1)],8,$t)])])}}}),gt=e("md-ripple",null,null,-1),bt=["open"],Ct=["onClick"],Ft={slot:"headline"},wt={class:"nav"},Et={class:"title"},Mt={key:0,class:"count"},At={class:"title"},xt={key:0,class:"count"},Lt=["onClick"],St={class:"title"},It=["id","onClick"],Vt=e("md-ripple",null,null,-1),Tt={key:0,class:"count"},Dt=["anchor","open"],Qt={slot:"headline"},Rt={slot:"headline"},Ht=N({__name:"FeedsSidebar",setup(M){const{t:b}=Ae(),k=xe(),{counter:i}=Le(Se()),{parseQ:A}=Ze(),v=Ie({tagIds:[]}),w=c([]),C=[{text:"add_subscription",click:de},{text:"import_opml_file",click:pe},{text:"export_opml_file",click:fe}],F=c(!1),d=c(""),f=c(""),u=c(!1),y=c(),h=c(new Map),t=c(!1),a=c(),{fetch:m}=Ve({handle:n=>{n&&(i.value.feedEntries=n.total,i.value.feedEntriesToday=n.today,n.feedsCount.forEach(s=>{h.value.set(s.id,s.count)}))},document:Ne,variables:()=>({}),appApi:!0});function $(n){return h.value.get(n)??-1}function B(){var g;const n=Y.currentRoute.value,s=Be(((g=n.query.q)==null?void 0:g.toString())??"");A(v,s),d.value=v.tagIds.length===1?v.tagIds[0]:"",f.value=v.feedId??"",u.value=v.today??!1,u.value?(d.value="",f.value=""):d.value&&f.value&&(d.value=""),m()}B(),Te(()=>Y.currentRoute.value,()=>{B()});const{viewFeed:ae,viewAll:z,viewToday:K}=Ye(k),{refetch:O}=De({handle:(n,s)=>{s?j(b(s),"error"):n&&(w.value=n.feeds)},document:ze,appApi:!0});function le(n){const s=n.target.files;if(!s)return;const g=new FileReader;g.addEventListener("load",()=>{ue({content:g.result})},!1),g.readAsText(s[0])}function de(){G(it,{done:()=>{O()}})}const{mutate:ie,onDone:re}=T({document:Ke,appApi:!0});re(n=>{Qe(n.data.exportFeeds,"application/xml","feeds.xml")});const{mutate:ue,onDone:ce}=T({document:Oe,appApi:!0});ce(()=>{j(b("imported")),O()});function pe(){y.value.value="",y.value.click()}function fe(){ie()}function me(n){a.value=n,t.value=!0}function _e(n){G(yt,{data:n})}function ve(n){G(je,{id:n.id,name:n.name,gql:He,appApi:!0,typeName:"Feed",done:()=>{Ue(k,"/feeds")}})}const P=()=>{m()},H=()=>{m()};return Re(()=>{I.on("feed_entries_deleted",P),I.on("feeds_fetched",H)}),qe(()=>{I.off("feed_entries_deleted",P),I.off("feeds_fetched",H)}),(n,s)=>{const g=be,he=Fe,$e=Ce,ke=ge,U=Pe("tooltip");return p(),Ge(ke,null,{title:Q(()=>[S(l(n.$t("page_title.feeds")),1)]),actions:Q(()=>[D((p(),_("button",{class:"btn-icon",id:"add-feed-ref",onClick:s[0]||(s[0]=()=>F.value=!0)},[gt,R(g)])),[[U,o(b)("add_subscription")]]),e("md-menu",{anchor:"add-feed-ref",positioning:"fixed","stay-open-on-focusout":"",quick:"",open:F.value,onClosed:s[1]||(s[1]=()=>F.value=!1)},[(p(),_(J,null,Z(C,E=>e("md-menu-item",{key:E.text,onClick:E.click},[e("div",Ft,l(n.$t(E.text)),1)],8,Ct)),64))],40,bt)]),body:Q(()=>{var E;return[e("ul",wt,[e("li",{onClick:s[2]||(s[2]=V((...r)=>o(z)&&o(z)(...r),["prevent"])),class:q({active:!u.value&&!d.value&&!f.value})},[e("span",Et,l(n.$t("all")),1),o(i).feedEntries>=0?(p(),_("span",Mt,l(o(i).feedEntries.toLocaleString()),1)):L("",!0)],2),e("li",{onClick:s[3]||(s[3]=V((...r)=>o(K)&&o(K)(...r),["prevent"])),class:q({active:u.value})},[e("span",At,l(n.$t("today")),1),o(i).feedEntriesToday>=0?(p(),_("span",xt,l(o(i).feedEntriesToday.toLocaleString()),1)):L("",!0)],2),(p(!0),_(J,null,Z(w.value,r=>(p(),_("li",{key:r.id,onClick:V(ye=>o(ae)(r),["stop","prevent"]),class:q({active:f.value&&r.id===f.value})},[e("span",St,l(r.name),1),D((p(),_("button",{id:"feed-"+r.id,class:"btn-icon sm",onClick:V(ye=>me(r),["prevent","stop"])},[Vt,R(he)],8,It)),[[U,n.$t("actions")]]),$(r.id)>=0?(p(),_("span",Tt,l($(r.id).toLocaleString()),1)):L("",!0)],10,Lt))),128))]),e("md-menu",{positioning:"popover",anchor:"feed-"+((E=a.value)==null?void 0:E.id),"stay-open-on-focusout":"",quick:"",open:t.value,onClosed:s[6]||(s[6]=r=>t.value=!1)},[e("md-menu-item",{onClick:s[4]||(s[4]=r=>_e(a.value))},[e("div",Qt,l(n.$t("edit")),1)]),e("md-menu-item",{onClick:s[5]||(s[5]=r=>ve(a.value))},[e("div",Rt,l(n.$t("delete")),1)])],40,Dt),R($e,{type:"FEED_ENTRY",selected:d.value},null,8,["selected"]),e("input",{ref_key:"fileInput",ref:y,style:{display:"none"},accept:".xml",type:"file",onChange:le},null,544)]}),_:1})}}});export{Ht as default}; +import{_ as ye}from"./LeftSidebar.vuevuetypescriptsetuptruelang-qrlto0-t.js";import{a as be,_ as Ce}from"./TagFilter.vuevuetypescriptsetuptruelang-F0HSGzO6.js";import{_ as Fe}from"./more-vert-B_3Etgle.js";import{d as N,h as c,j as T,cD as we,au as W,aw as X,av as A,o as p,c as _,a as e,t as l,x as D,y as ee,m as o,z as te,A as oe,V as I,e as L,H as Ee,cE as Me,g as xe,u as Ae,s as Le,i as Ie,I as Se,K as Ve,k as Te,l as De,be as Qe,C as j,af as Re,a1 as S,ag as qe,v as Ge,q as Q,cF as Ne,a6 as J,a0 as Be,cG as He,cH as Ke,cI as Oe,S as Pe,p as R,P as Y,O as Z,w as V,N as q,Z as G,cJ as ze,f as Ue,ad as je}from"./index-BXOWKrmL.js";import{u as ne,a as se}from"./vee-validate.esm-Bmkx0D8v.js";import{u as Je}from"./feeds-B70qguWF.js";import{u as Ye}from"./search-B-8eugyA.js";import"./EditValueModal-HQ024-FF.js";const Ze={slot:"headline"},We={slot:"content"},Xe={class:"form-row"},et=["label","error","error-text"],tt={class:"form-row"},ot={class:"form-check-label"},nt=["checked"],st={slot:"actions"},at=["disabled"],lt={key:0,indeterminate:"",slot:"icon"},dt=N({__name:"AddFeedModal",props:{done:{type:Function}},setup(M){const{handleSubmit:b}=ne(),k=c(),i=c(!1);function x(t){i.value=t.target.checked}const v=M,{mutate:w,loading:C,onDone:F}=T({document:we,appApi:!0}),{value:d,resetField:f,errorMessage:u}=se("inputValue",W().required());f();function g(){A()}(async()=>{var t;await X(),(t=k.value)==null||t.focus()})();const h=b(()=>{w({url:d.value??"",fetchContent:i.value})});return F(()=>{var t;(t=v.done)==null||t.call(this),A()}),(t,a)=>(p(),_("md-dialog",null,[e("div",Ze,l(t.$t("add_subscription")),1),e("div",We,[e("div",Xe,[D(e("md-outlined-text-field",{ref_key:"inputRef",ref:k,label:t.$t("rss_url"),"onUpdate:modelValue":a[0]||(a[0]=m=>te(d)?d.value=m:null),onKeyup:a[1]||(a[1]=oe((...m)=>o(h)&&o(h)(...m),["enter"])),error:o(u),"error-text":o(u)?t.$t(o(u)):""},null,40,et),[[ee,o(d)]])]),e("div",tt,[e("label",ot,[e("md-checkbox",{"touch-target":"wrapper",onChange:x,checked:i.value},null,40,nt),I(" "+l(t.$t("fetch_content_automatically")),1)])])]),e("div",st,[e("md-outlined-button",{value:"cancel",onClick:g},l(t.$t("cancel")),1),e("md-filled-button",{value:"save",disabled:o(C),onClick:a[2]||(a[2]=(...m)=>o(h)&&o(h)(...m)),autofocus:""},[o(C)?(p(),_("md-circular-progress",lt)):L("",!0),I(" "+l(t.$t("save")),1)],8,at)])]))}}),it=Ee(dt,[["__scopeId","data-v-1e144d60"]]),rt={slot:"headline"},ut={slot:"content"},ct={class:"form-label"},pt={class:"form-row"},ft=["label","error","error-text"],mt={class:"form-row"},_t={class:"form-check-label"},vt=["checked"],ht={slot:"actions"},$t=["disabled"],kt={key:0,indeterminate:"",slot:"icon"},gt=N({__name:"FeedModal",props:{data:{type:Object}},setup(M){var g,h;const{handleSubmit:b}=ne(),k=c(),i=c(!1);function x(t){i.value=t.target.checked}const v=M,{mutate:w,loading:C,onDone:F}=T({document:Me,appApi:!0}),{value:d,errorMessage:f}=se("inputValue",W().required());d.value=((g=v.data)==null?void 0:g.name)??"",i.value=((h=v.data)==null?void 0:h.fetchContent)??!1,(async()=>{var t;await X(),(t=k.value)==null||t.focus()})();const u=b(()=>{var t;w({id:(t=v.data)==null?void 0:t.id,name:d.value,fetchContent:i.value})});return F(()=>{A()}),(t,a)=>{var m;return p(),_("md-dialog",null,[e("div",rt,l(t.$t("update_subscription")),1),e("div",ut,[e("div",ct,l((m=M.data)==null?void 0:m.url),1),e("div",pt,[D(e("md-outlined-text-field",{ref_key:"inputRef",ref:k,class:"form-control",label:t.$t("name"),error:o(f),"error-text":o(f)?t.$t(o(f)):"","onUpdate:modelValue":a[0]||(a[0]=$=>te(d)?d.value=$:null),onKeyup:a[1]||(a[1]=oe((...$)=>o(u)&&o(u)(...$),["enter"]))},null,40,ft),[[ee,o(d)]])]),e("div",mt,[e("label",_t,[e("md-checkbox",{"touch-target":"wrapper",onChange:x,checked:i.value},null,40,vt),I(" "+l(t.$t("fetch_content_automatically")),1)])])]),e("div",ht,[e("md-outlined-button",{value:"cancel",onClick:a[2]||(a[2]=(...$)=>o(A)&&o(A)(...$))},l(t.$t("cancel")),1),e("md-filled-button",{value:"save",disabled:o(C),onClick:a[3]||(a[3]=(...$)=>o(u)&&o(u)(...$)),autofocus:""},[o(C)?(p(),_("md-circular-progress",kt)):L("",!0),I(" "+l(t.$t("save")),1)],8,$t)])])}}}),yt=e("md-ripple",null,null,-1),bt=["open"],Ct=["onClick"],Ft={slot:"headline"},wt={class:"nav"},Et={class:"title"},Mt={key:0,class:"count"},xt={class:"title"},At={key:0,class:"count"},Lt=["onClick"],It={class:"title"},St=["id","onClick"],Vt=e("md-ripple",null,null,-1),Tt={key:0,class:"count"},Dt=["anchor","open"],Qt={slot:"headline"},Rt={slot:"headline"},zt=N({__name:"FeedsSidebar",setup(M){const{t:b}=xe(),k=Ae(),{counter:i}=Le(Ie()),{parseQ:x}=Ye(),v=Se({tagIds:[]}),w=c([]),C=[{text:"add_subscription",click:de},{text:"import_opml_file",click:pe},{text:"export_opml_file",click:fe}],F=c(!1),d=c(""),f=c(""),u=c(!1),g=c(),h=c(new Map),t=c(!1),a=c(),{fetch:m}=Ve({handle:n=>{n&&(i.value.feedEntries=n.total,i.value.feedEntriesToday=n.today,n.feedsCount.forEach(s=>{h.value.set(s.id,s.count)}))},document:Ne,variables:()=>({}),appApi:!0});function $(n){return h.value.get(n)??-1}function B(){var y;const n=J.currentRoute.value,s=Be(((y=n.query.q)==null?void 0:y.toString())??"");x(v,s),d.value=v.tagIds.length===1?v.tagIds[0]:"",f.value=v.feedId??"",u.value=v.today??!1,u.value?(d.value="",f.value=""):d.value&&f.value&&(d.value=""),m()}B(),Te(()=>J.currentRoute.value,()=>{B()});const{viewFeed:ae,viewAll:H,viewToday:K}=Je(k),{refetch:O}=De({handle:(n,s)=>{s?j(b(s),"error"):n&&(w.value=n.feeds)},document:He,appApi:!0});function le(n){const s=n.target.files;if(!s)return;const y=new FileReader;y.addEventListener("load",()=>{ue({content:y.result})},!1),y.readAsText(s[0])}function de(){G(it,{done:()=>{O()}})}const{mutate:ie,onDone:re}=T({document:Ke,appApi:!0});re(n=>{Qe(n.data.exportFeeds,"application/xml","feeds.xml")});const{mutate:ue,onDone:ce}=T({document:Oe,appApi:!0});ce(()=>{j(b("imported")),O()});function pe(){g.value.value="",g.value.click()}function fe(){ie()}function me(n){a.value=n,t.value=!0}function _e(n){G(gt,{data:n})}function ve(n){G(je,{id:n.id,name:n.name,gql:ze,appApi:!0,typeName:"Feed",done:()=>{Ue(k,"/feeds")}})}const P=()=>{m()},z=()=>{m()};return Re(()=>{S.on("feed_entries_deleted",P),S.on("feeds_fetched",z)}),qe(()=>{S.off("feed_entries_deleted",P),S.off("feeds_fetched",z)}),(n,s)=>{const y=be,he=Fe,$e=Ce,ke=ye,U=Pe("tooltip");return p(),Ge(ke,null,{title:Q(()=>[I(l(n.$t("page_title.feeds")),1)]),actions:Q(()=>[D((p(),_("button",{class:"btn-icon",id:"add-feed-ref",onClick:s[0]||(s[0]=()=>F.value=!0)},[yt,R(y)])),[[U,o(b)("add_subscription")]]),e("md-menu",{anchor:"add-feed-ref",positioning:"fixed","stay-open-on-focusout":"",quick:"",open:F.value,onClosed:s[1]||(s[1]=()=>F.value=!1)},[(p(),_(Z,null,Y(C,E=>e("md-menu-item",{key:E.text,onClick:E.click},[e("div",Ft,l(n.$t(E.text)),1)],8,Ct)),64))],40,bt)]),body:Q(()=>{var E;return[e("ul",wt,[e("li",{onClick:s[2]||(s[2]=V((...r)=>o(H)&&o(H)(...r),["prevent"])),class:q({active:!u.value&&!d.value&&!f.value})},[e("span",Et,l(n.$t("all")),1),o(i).feedEntries>=0?(p(),_("span",Mt,l(o(i).feedEntries.toLocaleString()),1)):L("",!0)],2),e("li",{onClick:s[3]||(s[3]=V((...r)=>o(K)&&o(K)(...r),["prevent"])),class:q({active:u.value})},[e("span",xt,l(n.$t("today")),1),o(i).feedEntriesToday>=0?(p(),_("span",At,l(o(i).feedEntriesToday.toLocaleString()),1)):L("",!0)],2),(p(!0),_(Z,null,Y(w.value,r=>(p(),_("li",{key:r.id,onClick:V(ge=>o(ae)(r),["stop","prevent"]),class:q({active:f.value&&r.id===f.value})},[e("span",It,l(r.name),1),D((p(),_("button",{id:"feed-"+r.id,class:"btn-icon sm",onClick:V(ge=>me(r),["prevent","stop"])},[Vt,R(he)],8,St)),[[U,n.$t("actions")]]),$(r.id)>=0?(p(),_("span",Tt,l($(r.id).toLocaleString()),1)):L("",!0)],10,Lt))),128))]),e("md-menu",{positioning:"popover",anchor:"feed-"+((E=a.value)==null?void 0:E.id),"stay-open-on-focusout":"",quick:"",open:t.value,onClosed:s[6]||(s[6]=r=>t.value=!1)},[e("md-menu-item",{onClick:s[4]||(s[4]=r=>_e(a.value))},[e("div",Qt,l(n.$t("edit")),1)]),e("md-menu-item",{onClick:s[5]||(s[5]=r=>ve(a.value))},[e("div",Rt,l(n.$t("delete")),1)])],40,Dt),R($e,{type:"FEED_ENTRY",selected:d.value},null,8,["selected"]),e("input",{ref_key:"fileInput",ref:g,style:{display:"none"},accept:".xml",type:"file",onChange:le},null,544)]}),_:1})}}});export{zt as default}; diff --git a/app/src/main/resources/web/assets/FeedsSidebar2-BEGs6cYt.js b/app/src/main/resources/web/assets/FeedsSidebar2-BEGs6cYt.js new file mode 100644 index 00000000..063d581d --- /dev/null +++ b/app/src/main/resources/web/assets/FeedsSidebar2-BEGs6cYt.js @@ -0,0 +1 @@ +import{_ as Ge}from"./more-vert-B_3Etgle.js";import{g as _e,h as S,K as pe,C as D,cK as Ke,d as xe,u as He,s as We,i as Pe,I as je,J as Oe,aH as ne,j as le,L as Ye,M as Je,c as l,a as t,m as e,t as v,O as ce,x as E,w as m,p as r,e as A,P as Xe,v as Ze,q as ie,n as es,Q as ss,a1 as h,cL as ts,cM as os,cN as as,cO as ns,S as ls,o as a,N as cs,U as is,V as ds,W as rs,aC as us,bj as _s,X as ps,F as vs,G as ms,Y as hs,a6 as de,ch as fs,f as re,a0 as gs,ae as ks,a2 as ys,a3 as bs,a4 as ws,H as Ss}from"./index-BXOWKrmL.js";import{_ as $s,a as Cs}from"./SearchInput-ZLdB9f4z.js";import{_ as Ts,a as Ls}from"./add-notes-outline-rounded-BvbrKfug.js";import{u as Is}from"./feeds-B70qguWF.js";import{u as qs,b as Fs,a as Es}from"./key-events-DpI8L-ce.js";import{a as As}from"./tags-BpDG2_1g.js";import{u as Ds}from"./search-B-8eugyA.js";import"./search-rounded-DpdJ2cSK.js";import"./rss-feed-rounded-DN7yBBrR.js";import"./vee-validate.esm-Bmkx0D8v.js";const Ms=(u,_,$)=>{const{t:C}=_e(),g=S(1),M=100,i=S(!1),{loading:T,fetch:Q}=pe({handle:(k,L)=>{if(L)D(C(L),"error");else if(k){k.items.length({offset:(g.value-1)*M,limit:M,query:_.value}),appApi:!0});return{page:g,noMore:i,loading:T,fetch:Q,loadMore:()=>{i.value||T.value||g.value++}}},f=u=>(vs("data-v-c75d0d53"),u=u(),ms(),u),Ns={class:"top-app-bar"},Qs=["checked","indeterminate"],Us={class:"title"},Vs={key:0},Rs={key:1},zs=f(()=>t("md-ripple",null,null,-1)),Bs=f(()=>t("md-ripple",null,null,-1)),Gs={key:0,indeterminate:"",class:"spinner-sm"},Ks=f(()=>t("md-ripple",null,null,-1)),xs={class:"actions"},Hs={key:0,indeterminate:"",class:"spinner-sm"},Ws=["disabled"],Ps=f(()=>t("md-ripple",null,null,-1)),js={key:0,class:"scroller"},Os=hs('
',1),Ys={class:"subtitle"},Js={class:"number"},Xs=f(()=>t("div",{class:"info"},[t("div",{class:"skeleton-text skeleton-info"})],-1)),Zs=f(()=>t("div",{class:"image"},[t("div",{class:"skeleton-image"})],-1)),et=["href"],st=["onClick","onMouseover"],tt={class:"title"},ot=["onClick","checked"],at=["onClick","checked"],nt={class:"text"},lt={class:"subtitle"},ct={class:"number"},it={class:"info"},dt=["onClick"],rt=f(()=>t("span",null,"·",-1)),ut={class:"time"},_t={class:"btn-icon sm",style:{display:"none"}},pt=f(()=>t("md-ripple",null,null,-1)),vt=["src"],mt={key:0,indeterminate:"",class:"spinner-sm"},ht={key:2,class:"no-data-placeholder"},ue=100,ft=xe({__name:"FeedsSidebar2",setup(u){var oe;const _=He(),{feedsSyncing:$}=We(Pe()),{t:C}=_e(),g=je({tagIds:[]}),{parseQ:M}=Ds(),i=Oe.FEED_ENTRY,T=ss(),Q=T.query,k=S(parseInt(((oe=Q.page)==null?void 0:oe.toString())??"1")),L=S([]),I=S([]),z=ne(()=>{const s={};return I.value.forEach(o=>{s[o.id]=o}),s}),y=S([]),b=S(""),{selectedIds:d,allChecked:B,realAllChecked:q,selectRealAll:ve,allCheckedAlertVisible:me,clearSelection:U,toggleAllChecked:G,toggleSelect:K,total:w,checked:x,shiftEffectingIds:H,handleItemClick:he,handleMouseOver:fe,selectAll:ge,shouldSelect:ke}=qs(y),ye=s=>{k.value=s;const o=T.query.q;re(_,o?`/feeds?page=${s}&q=${o}`:`/feeds?page=${s}`)},{keyDown:W,keyUp:P}=Es(w,ue,k,ge,U,ye,()=>{Y(d.value,q.value,w.value,b.value)}),{page:j,loading:R,loadMore:be,fetch:we,noMore:O}=Ms(y,b,w),{addToTags:Se}=As(i,L),N=()=>{j.value=1,we()},{deleteItems:Y}=Fs(ts,()=>{U(),N(),y.value.some(s=>s.tags.length)&&h.emit("refetch_tags",i),h.emit("feed_entries_deleted")}),$e=ne(()=>de.currentRoute.value.path!=="/feeds"),{resizeWidth:J}=fs(300,()=>_.sidebar2Width,s=>{_.sidebar2Width=s}),{mutate:X,loading:Ce,onDone:Te}=le({document:os,appApi:!0});function Le(){if(q)X({query:b.value});else{if(d.value.length===0){D(C("select_first"),"error");return}X({query:`ids:${d.value.join(",")}`})}}Te(()=>{D(C("saved"))});function Ie(s){return s?`/feeds?q=${s}`:"/feeds"}const{fetch:qe}=pe({handle:async(s,o)=>{o?D(C(o),"error"):s&&(L.value=s.tags,I.value=s.feeds)},document:as,variables:{type:i},appApi:!0});function Z(s){const o=de.currentRoute.value.query.q;return o?`/feeds/${s.feedId}/entries/${s.id}?q=${o}`:`/feeds/${s.feedId}/entries/${s.id}`}function Fe(s){re(_,Z(s))}const{viewFeed:Ee}=Is(_),{mutate:Ae}=le({document:ns,appApi:!0});function De(){$.value=!0,Ae({id:""})}const ee=s=>{$.value=!1,N(),s.error?D(s.error,"error"):D(C("feeds_synced"))},se=s=>{s.type===i&&(U(),N())},te=s=>{s.type===i&&N()};return Ye(()=>{var o,V;const s=(o=document.getElementsByClassName("scroller"))==null?void 0:o[0];s&&(s.scrollTop=0),b.value=gs(((V=Q.q)==null?void 0:V.toString())??""),M(g,b.value),qe(),N(),h.on("item_tags_updated",te),h.on("items_tags_updated",se),h.on("feeds_fetched",ee),window.addEventListener("keydown",W),window.addEventListener("keyup",P)}),Je(()=>{j.value=1,O.value=!1,h.off("item_tags_updated",te),h.off("items_tags_updated",se),h.off("feeds_fetched",ee),window.removeEventListener("keydown",W),window.removeEventListener("keyup",P)}),(s,o)=>{const V=ks,Me=ys,Ne=Ts,Qe=$s,Ue=Ls,Ve=Cs,Re=bs,ze=ws,Be=Ge,F=ls("tooltip");return a(),l("aside",{class:"sidebar2",style:es({width:e(T).params.id?e(_).sidebar2Width+"px":"auto"})},[t("div",Ns,[t("md-checkbox",{"touch-target":"wrapper",onChange:o[0]||(o[0]=(...c)=>e(G)&&e(G)(...c)),checked:e(B),indeterminate:!e(B)&&e(x)},null,40,Qs),t("div",Us,[e(d).length?(a(),l("span",Vs,v(s.$t("x_selected",{count:e(q)?e(w).toLocaleString():e(d).length.toLocaleString()})),1)):(a(),l("span",Rs,v(s.$t("page_title.feeds"))+" ("+v(e(w).toLocaleString())+")",1)),e(x)?(a(),l(ce,{key:2},[E((a(),l("button",{class:"btn-icon",onClick:o[1]||(o[1]=m(c=>e(Y)(e(d),e(q),e(w),b.value),["stop"]))},[zs,r(V)])),[[F,s.$t("delete")]]),E((a(),l("button",{class:"btn-icon",onClick:o[2]||(o[2]=m(c=>e(Se)(e(d),e(q),b.value),["stop"]))},[Bs,r(Me)])),[[F,s.$t("add_to_tags")]]),e(Ce)?(a(),l("md-circular-progress",Gs)):E((a(),l("button",{key:1,class:"btn-icon sm",onClick:m(Le,["prevent"])},[Ks,r(Ne)])),[[F,s.$t("save_to_notes")]])],64)):A("",!0)]),t("div",xs,[r(Qe,{filter:g,tags:L.value,feeds:I.value,"show-chips":!$e.value,"get-url":Ie,"show-today":!0},null,8,["filter","tags","feeds","show-chips"]),e($)?(a(),l("md-circular-progress",Hs)):E((a(),l("button",{key:1,class:"btn-icon",disabled:e($),onClick:m(De,["prevent"])},[Ps,r(Ue)],8,Ws)),[[F,s.$t("sync_feeds")]])])]),r(Ve,{limit:ue,total:e(w),"all-checked-alert-visible":e(me),"real-all-checked":e(q),"select-real-all":e(ve),"clear-selection":e(U)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),e(R)&&y.value.length===0?(a(),l("div",js,[(a(),l(ce,null,Xe(20,c=>t("section",{class:"feed-item selectable-card-skeleton",key:c},[Os,t("div",Ys,[t("span",Js,v(c),1),Xs]),Zs])),64))])):A("",!0),y.value.length>0?(a(),Ze(e(_s),{key:1,class:"scroller","data-key":"id","data-sources":y.value,"estimate-size":100,onTobottom:e(be)},{item:ie(({index:c,item:n})=>{var ae;return[t("a",{class:"item-link",href:Z(n)},[t("article",{class:cs(["feed-item selectable-card",{selected:e(d).includes(n.id)||n.id==s.$route.params.id,selecting:e(H).includes(n.id)}]),onClick:m(p=>e(he)(p,n,c,()=>{Fe(n)}),["stop","prevent"]),onMouseover:p=>e(fe)(p,c)},[t("div",tt,[e(H).includes(n.id)?(a(),l("md-checkbox",{key:0,class:"checkbox","touch-target":"wrapper",onClick:m(p=>e(K)(p,n,c),["stop"]),checked:e(ke)},null,8,ot)):(a(),l("md-checkbox",{key:1,class:"checkbox","touch-target":"wrapper",onClick:m(p=>e(K)(p,n,c),["stop"]),checked:e(d).includes(n.id)},null,8,at)),t("div",nt,v(n.title||s.$t("no_content")),1)]),t("div",lt,[t("span",ct,[r(Re,{id:c+1,raw:n},null,8,["id","raw"])]),t("div",it,[t("a",{onClick:m(p=>e(Ee)(z.value[n.feedId]),["stop","prevent"])},v((ae=z.value[n.feedId])==null?void 0:ae.name),9,dt),rt,E((a(),l("span",ut,[ds(v(e(rs)(n.publishedAt)),1)])),[[F,e(is)(n.publishedAt)]]),r(ze,{tags:n.tags,type:e(i),"only-links":!0},null,8,["tags","type"])])]),E((a(),l("button",_t,[pt,r(Be)])),[[F,s.$t("actions")]]),n.image?(a(),l("img",{key:0,class:"image",src:e(us)(n.image,"&w=200&h=200")},null,8,vt)):A("",!0)],42,st)],8,et)]}),footer:ie(()=>[e(O)?A("",!0):(a(),l("md-circular-progress",mt))]),_:1},8,["data-sources","onTobottom"])):A("",!0),!e(R)&&y.value.length===0?(a(),l("div",ht,v(s.$t(e(ps)(e(R)))),1)):A("",!0),t("div",{class:"sidebar-drag-indicator",onMousedown:o[3]||(o[3]=(...c)=>e(J)&&e(J)(...c))},null,32)],4)}}}),qt=Ss(ft,[["__scopeId","data-v-c75d0d53"]]);export{qt as default}; diff --git a/app/src/main/resources/web/assets/FeedsSidebar2-CGc8dY8M.js b/app/src/main/resources/web/assets/FeedsSidebar2-CGc8dY8M.js deleted file mode 100644 index 2b590de3..00000000 --- a/app/src/main/resources/web/assets/FeedsSidebar2-CGc8dY8M.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as Be}from"./more-vert-XZtlvs7x.js";import{g as _e,h as S,K as pe,C as D,cG as Ke,d as xe,u as He,s as We,i as Pe,I as je,J as Je,aF as ne,j as le,L as Oe,M as Ye,c as l,a as t,m as e,t as v,O as ce,x as A,w as m,p as r,e as E,P as Xe,v as Ze,q as ie,n as es,Q as ss,a1 as h,cH as ts,cI as os,cJ as as,cK as ns,S as ls,o as a,N as cs,U as is,V as ds,W as rs,aA as us,bf as _s,X as ps,F as vs,G as ms,Y as hs,a6 as de,cd as fs,f as re,a0 as gs,ae as ks,a2 as ys,a3 as bs,a4 as ws,H as Ss}from"./index-B-S542RM.js";import{_ as $s,a as Cs}from"./SearchInput-D0d2xIiv.js";import{_ as Ts,a as Ls}from"./add-notes-outline-rounded-DjCnlzSZ.js";import{u as Is}from"./feeds--RKt1Kst.js";import{u as Fs,b as qs,a as As}from"./key-events-D1Kh05Em.js";import{a as Es}from"./tags-x91i2rzh.js";import{u as Ds}from"./search-k8SzNgo1.js";import"./search-rounded-TCa6qTC1.js";import"./rss-feed-rounded-DzJ3TVan.js";import"./vee-validate.esm-D5u4WlYW.js";const Ms=(u,_,$)=>{const{t:C}=_e(),g=S(1),M=100,i=S(!1),{loading:T,fetch:Q}=pe({handle:(k,L)=>{if(L)D(C(L),"error");else if(k){k.items.length({offset:(g.value-1)*M,limit:M,query:_.value}),appApi:!0});return{page:g,noMore:i,loading:T,fetch:Q,loadMore:()=>{i.value||T.value||g.value++}}},f=u=>(vs("data-v-c75d0d53"),u=u(),ms(),u),Ns={class:"top-app-bar"},Qs=["checked","indeterminate"],Us={class:"title"},Vs={key:0},Gs={key:1},Rs=f(()=>t("md-ripple",null,null,-1)),zs=f(()=>t("md-ripple",null,null,-1)),Bs={key:0,indeterminate:"",class:"spinner-sm"},Ks=f(()=>t("md-ripple",null,null,-1)),xs={class:"actions"},Hs={key:0,indeterminate:"",class:"spinner-sm"},Ws=["disabled"],Ps=f(()=>t("md-ripple",null,null,-1)),js={key:0,class:"scroller"},Js=hs('
',1),Os={class:"subtitle"},Ys={class:"number"},Xs=f(()=>t("div",{class:"info"},[t("div",{class:"skeleton-text skeleton-info"})],-1)),Zs=f(()=>t("div",{class:"image"},[t("div",{class:"skeleton-image"})],-1)),et=["href"],st=["onClick","onMouseover"],tt={class:"title"},ot=["onClick","checked"],at=["onClick","checked"],nt={class:"text"},lt={class:"subtitle"},ct={class:"number"},it={class:"info"},dt=["onClick"],rt=f(()=>t("span",null,"·",-1)),ut={class:"time"},_t={class:"btn-icon sm",style:{display:"none"}},pt=f(()=>t("md-ripple",null,null,-1)),vt=["src"],mt={key:0,indeterminate:"",class:"spinner-sm"},ht={key:2,class:"no-data-placeholder"},ue=100,ft=xe({__name:"FeedsSidebar2",setup(u){var oe;const _=He(),{feedsSyncing:$}=We(Pe()),{t:C}=_e(),g=je({tagIds:[]}),{parseQ:M}=Ds(),i=Je.FEED_ENTRY,T=ss(),Q=T.query,k=S(parseInt(((oe=Q.page)==null?void 0:oe.toString())??"1")),L=S([]),I=S([]),R=ne(()=>{const s={};return I.value.forEach(o=>{s[o.id]=o}),s}),y=S([]),b=S(""),{selectedIds:d,allChecked:z,realAllChecked:F,selectRealAll:ve,allCheckedAlertVisible:me,clearSelection:U,toggleAllChecked:B,toggleSelect:K,total:w,checked:x,shiftEffectingIds:H,handleItemClick:he,handleMouseOver:fe,selectAll:ge,shouldSelect:ke}=Fs(y),ye=s=>{k.value=s;const o=T.query.q;re(_,o?`/feeds?page=${s}&q=${o}`:`/feeds?page=${s}`)},{keyDown:W,keyUp:P}=As(w,ue,k,ge,U,ye,()=>{O(d.value,F.value,w.value,b.value)}),{page:j,loading:G,loadMore:be,fetch:we,noMore:J}=Ms(y,b,w),{addToTags:Se}=Es(i,L),N=()=>{j.value=1,we()},{deleteItems:O}=qs(ts,()=>{U(),N(),y.value.some(s=>s.tags.length)&&h.emit("refetch_tags",i),h.emit("feed_entries_deleted")}),$e=ne(()=>de.currentRoute.value.path!=="/feeds"),{resizeWidth:Y}=fs(300,()=>_.sidebar2Width,s=>{_.sidebar2Width=s}),{mutate:X,loading:Ce,onDone:Te}=le({document:os,appApi:!0});function Le(){if(F)X({query:b.value});else{if(d.value.length===0){D(C("select_first"),"error");return}X({query:`ids:${d.value.join(",")}`})}}Te(()=>{D(C("saved"))});function Ie(s){return s?`/feeds?q=${s}`:"/feeds"}const{fetch:Fe}=pe({handle:async(s,o)=>{o?D(C(o),"error"):s&&(L.value=s.tags,I.value=s.feeds)},document:as,variables:{type:i},appApi:!0});function Z(s){const o=de.currentRoute.value.query.q;return o?`/feeds/${s.feedId}/entries/${s.id}?q=${o}`:`/feeds/${s.feedId}/entries/${s.id}`}function qe(s){re(_,Z(s))}const{viewFeed:Ae}=Is(_),{mutate:Ee}=le({document:ns,appApi:!0});function De(){$.value=!0,Ee({id:""})}const ee=s=>{$.value=!1,N(),s.error?D(s.error,"error"):D(C("feeds_synced"))},se=s=>{s.type===i&&(U(),N())},te=s=>{s.type===i&&N()};return Oe(()=>{var o,V;const s=(o=document.getElementsByClassName("scroller"))==null?void 0:o[0];s&&(s.scrollTop=0),b.value=gs(((V=Q.q)==null?void 0:V.toString())??""),M(g,b.value),Fe(),N(),h.on("item_tags_updated",te),h.on("items_tags_updated",se),h.on("feeds_fetched",ee),window.addEventListener("keydown",W),window.addEventListener("keyup",P)}),Ye(()=>{j.value=1,J.value=!1,h.off("item_tags_updated",te),h.off("items_tags_updated",se),h.off("feeds_fetched",ee),window.removeEventListener("keydown",W),window.removeEventListener("keyup",P)}),(s,o)=>{const V=ks,Me=ys,Ne=Ts,Qe=$s,Ue=Ls,Ve=Cs,Ge=bs,Re=ws,ze=Be,q=ls("tooltip");return a(),l("aside",{class:"sidebar2",style:es({width:e(T).params.id?e(_).sidebar2Width+"px":"auto"})},[t("div",Ns,[t("md-checkbox",{"touch-target":"wrapper",onChange:o[0]||(o[0]=(...c)=>e(B)&&e(B)(...c)),checked:e(z),indeterminate:!e(z)&&e(x)},null,40,Qs),t("div",Us,[e(d).length?(a(),l("span",Vs,v(s.$t("x_selected",{count:e(F)?e(w).toLocaleString():e(d).length.toLocaleString()})),1)):(a(),l("span",Gs,v(s.$t("page_title.feeds"))+" ("+v(e(w).toLocaleString())+")",1)),e(x)?(a(),l(ce,{key:2},[A((a(),l("button",{class:"btn-icon",onClick:o[1]||(o[1]=m(c=>e(O)(e(d),e(F),e(w),b.value),["stop"]))},[Rs,r(V)])),[[q,s.$t("delete")]]),A((a(),l("button",{class:"btn-icon",onClick:o[2]||(o[2]=m(c=>e(Se)(e(d),e(F),b.value),["stop"]))},[zs,r(Me)])),[[q,s.$t("add_to_tags")]]),e(Ce)?(a(),l("md-circular-progress",Bs)):A((a(),l("button",{key:1,class:"btn-icon sm",onClick:m(Le,["prevent"])},[Ks,r(Ne)])),[[q,s.$t("save_to_notes")]])],64)):E("",!0)]),t("div",xs,[r(Qe,{filter:g,tags:L.value,feeds:I.value,"show-chips":!$e.value,"get-url":Ie,"show-today":!0},null,8,["filter","tags","feeds","show-chips"]),e($)?(a(),l("md-circular-progress",Hs)):A((a(),l("button",{key:1,class:"btn-icon",disabled:e($),onClick:m(De,["prevent"])},[Ps,r(Ue)],8,Ws)),[[q,s.$t("sync_feeds")]])])]),r(Ve,{limit:ue,total:e(w),"all-checked-alert-visible":e(me),"real-all-checked":e(F),"select-real-all":e(ve),"clear-selection":e(U)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),e(G)&&y.value.length===0?(a(),l("div",js,[(a(),l(ce,null,Xe(20,c=>t("section",{class:"feed-item selectable-card-skeleton",key:c},[Js,t("div",Os,[t("span",Ys,v(c),1),Xs]),Zs])),64))])):E("",!0),y.value.length>0?(a(),Ze(e(_s),{key:1,class:"scroller","data-key":"id","data-sources":y.value,"estimate-size":100,onTobottom:e(be)},{item:ie(({index:c,item:n})=>{var ae;return[t("a",{class:"item-link",href:Z(n)},[t("article",{class:cs(["feed-item selectable-card",{selected:e(d).includes(n.id)||n.id==s.$route.params.id,selecting:e(H).includes(n.id)}]),onClick:m(p=>e(he)(p,n,c,()=>{qe(n)}),["stop","prevent"]),onMouseover:p=>e(fe)(p,c)},[t("div",tt,[e(H).includes(n.id)?(a(),l("md-checkbox",{key:0,class:"checkbox","touch-target":"wrapper",onClick:m(p=>e(K)(p,n,c),["stop"]),checked:e(ke)},null,8,ot)):(a(),l("md-checkbox",{key:1,class:"checkbox","touch-target":"wrapper",onClick:m(p=>e(K)(p,n,c),["stop"]),checked:e(d).includes(n.id)},null,8,at)),t("div",nt,v(n.title||s.$t("no_content")),1)]),t("div",lt,[t("span",ct,[r(Ge,{id:c+1,raw:n},null,8,["id","raw"])]),t("div",it,[t("a",{onClick:m(p=>e(Ae)(R.value[n.feedId]),["stop","prevent"])},v((ae=R.value[n.feedId])==null?void 0:ae.name),9,dt),rt,A((a(),l("span",ut,[ds(v(e(rs)(n.publishedAt)),1)])),[[q,e(is)(n.publishedAt)]]),r(Re,{tags:n.tags,type:e(i),"only-links":!0},null,8,["tags","type"])])]),A((a(),l("button",_t,[pt,r(ze)])),[[q,s.$t("actions")]]),n.image?(a(),l("img",{key:0,class:"image",src:e(us)(n.image,"&w=200&h=200")},null,8,vt)):E("",!0)],42,st)],8,et)]}),footer:ie(()=>[e(J)?E("",!0):(a(),l("md-circular-progress",mt))]),_:1},8,["data-sources","onTobottom"])):E("",!0),!e(G)&&y.value.length===0?(a(),l("div",ht,v(s.$t(e(ps)(e(G)))),1)):E("",!0),t("div",{class:"sidebar-drag-indicator",onMousedown:o[3]||(o[3]=(...c)=>e(Y)&&e(Y)(...c))},null,32)],4)}}}),Ft=Ss(ft,[["__scopeId","data-v-c75d0d53"]]);export{Ft as default}; diff --git a/app/src/main/resources/web/assets/FilesRecentView-CNtr3u0V.js b/app/src/main/resources/web/assets/FilesRecentView-CNtr3u0V.js deleted file mode 100644 index 0a086f54..00000000 --- a/app/src/main/resources/web/assets/FilesRecentView-CNtr3u0V.js +++ /dev/null @@ -1 +0,0 @@ -import{d as ce,g as ie,h as m,i as de,s as re,j as ue,K as _e,L as pe,M as he,c as a,a as o,m as s,t as i,x as g,w as _,p as h,e as f,O,P as ve,v as ke,q as I,ap as me,bC as ge,C as fe,bA as be,bL as ye,S as we,o as n,N as Ee,aA as Ce,E as Ie,U as De,V as Le,W as Se,bf as Te,X as Ve,Y as Ae,bG as $e,ai as Fe,bH as xe,bE as Ne,a1 as b,aq as Ke,a3 as Ue,bI as Be,am as Me,bJ as ze,bK as Oe}from"./index-B-S542RM.js";import{_ as R}from"./default-BQXvEOng.js";import{u as Re,c as Ge}from"./key-events-D1Kh05Em.js";const He={class:"top-app-bar"},Pe=["checked","indeterminate"],Qe={key:0},qe={key:1},Je=o("md-ripple",null,null,-1),We={key:0,class:"scroller"},Xe={class:"start"},je=o("div",{class:"checkbox"},[o("div",{class:"skeleton-checkbox"})],-1),Ye={class:"number"},Ze=Ae('
',4),es=["onClick","onMouseover"],ss={class:"start"},ts=["onClick","checked"],os=["onClick","checked"],ns={class:"number"},as=["onClick"],ls={key:0,class:"svg",src:R},cs=["src","onError"],is=["src","onError"],ds={key:3,class:"svg",src:R},rs={class:"title"},us={class:"subtitle"},_s={class:"actions"},ps=["onClick"],hs=o("md-ripple",null,null,-1),vs={class:"btn-icon sm"},ks=o("md-ripple",null,null,-1),ms={class:"card card-info"},gs={class:"key-value vertical"},fs={class:"key"},bs={class:"value"},ys={key:2,class:"no-data-placeholder"},Ds=ce({__name:"FilesRecentView",setup(ws){const{t:G}=ie(),H=m([]),D=de(),{app:P,urlTokenKey:y}=re(D),r=m([]),{selectedIds:p,allChecked:L,realAllChecked:Q,clearSelection:w,toggleAllChecked:S,toggleSelect:T,total:v,checked:V,shiftEffectingIds:A,handleItemClick:q,handleMouseOver:J,selectAll:W,shouldSelect:X}=Re(r),{downloadFile:$,downloadFiles:j}=me(y),{view:Y}=ze(H,(e,d)=>{D.lightbox={sources:e,index:d,visible:!0}}),{keyDown:F,keyUp:x}=Ge(v,W,w,()=>{}),N=m([]),K=m([]),Z=e=>{N.value.push(e)},ee=e=>{K.value.push(e)},{mutate:se,onDone:te}=ue({document:ge,appApi:!0});te(e=>{j(e.data.setTempValue.key),w()});const U=e=>{$e(e.name)?window.open(Fe(y.value,e.path),"_blank"):xe(e.name)?Y(r.value,e):$(e.path)},{loading:E,fetch:B}=_e({handle:async(e,d)=>{if(d)fe(G(d),"error");else{const u=[];for(const C of e.recentFiles)u.push(be(C,y.value));r.value=u,v.value=u.length}},document:ye,appApi:!0}),oe=()=>{se({key:Ne(),value:JSON.stringify(p.value.map(e=>({path:e})))})},M=e=>{e.status==="done"&&setTimeout(()=>{B()},1e3)},ne=e=>{e.forEach(d=>{Oe(r.value,u=>u.id===d.id)}),w()},z=e=>{ne([e.item])};return pe(()=>{B(),b.on("upload_task_done",M),b.on("file_deleted",z),window.addEventListener("keydown",F),window.addEventListener("keyup",x)}),he(()=>{b.off("upload_task_done",M),b.off("file_deleted",z),window.removeEventListener("keydown",F),window.removeEventListener("keyup",x)}),(e,d)=>{const u=Ke,C=Ue,ae=Be,le=Me,k=we("tooltip");return n(),a(O,null,[o("div",He,[o("md-checkbox",{"touch-target":"wrapper",onChange:d[0]||(d[0]=(...c)=>s(S)&&s(S)(...c)),checked:s(L),indeterminate:!s(L)&&s(V)},null,40,Pe),s(p).length?(n(),a("span",Qe,i(e.$t("x_selected",{count:s(Q)?s(v).toLocaleString():s(p).length.toLocaleString()})),1)):(n(),a("span",qe,i(e.$t("recent_files"))+" ("+i(s(v).toLocaleString())+")",1)),s(V)?g((n(),a("button",{key:2,class:"btn-icon",onClick:_(oe,["stop"])},[Je,h(u)])),[[k,e.$t("download")]]):f("",!0)]),s(E)&&r.value.length===0?(n(),a("div",We,[(n(),a(O,null,ve(20,c=>o("section",{class:"file-item selectable-card-skeleton",key:c},[o("div",Xe,[je,o("span",Ye,i(c),1)]),Ze])),64))])):f("",!0),r.value.length>0?(n(),ke(s(Te),{key:1,class:"scroller","data-key":"id","data-sources":r.value,"estimate-size":80},{item:I(({index:c,item:t})=>[(n(),a("section",{class:Ee(["file-item selectable-card",{selected:s(p).includes(t.id),selecting:s(A).includes(t.id)}]),key:t.id,onClick:_(l=>s(q)(l,t,c,()=>{U(t)}),["stop"]),onMouseover:l=>s(J)(l,c)},[o("div",ss,[s(A).includes(t.id)?(n(),a("md-checkbox",{key:0,class:"checkbox","touch-target":"wrapper",onClick:_(l=>s(T)(l,t,c),["stop"]),checked:s(X)},null,8,ts)):(n(),a("md-checkbox",{key:1,class:"checkbox","touch-target":"wrapper",onClick:_(l=>s(T)(l,t,c),["stop"]),checked:s(p).includes(t.id)},null,8,os)),o("span",ns,[h(C,{id:c+1,raw:t},null,8,["id","raw"])])]),o("div",{class:"image",onClick:_(l=>U(t),["stop"])},[K.value.includes(t.id)?(n(),a("img",ls)):!N.value.includes(t.id)&&t.fileId?(n(),a("img",{key:1,class:"image-thumb",src:s(Ce)(t.fileId,"&w=50&h=50"),onError:l=>Z(t.id)},null,40,cs)):t.extension?(n(),a("img",{key:2,src:`/ficons/${t.extension}.svg`,class:"svg",onError:l=>ee(t.id)},null,40,is)):(n(),a("img",ds))],8,as),o("div",rs,i(t.name),1),o("div",us,[o("span",null,i(s(Ie)(t.size)),1),g((n(),a("span",null,[Le(i(s(Se)(t.updatedAt)),1)])),[[k,s(De)(t.updatedAt)]])]),o("div",_s,[g((n(),a("button",{class:"btn-icon sm",onClick:_(l=>s($)(t.path),["stop"])},[hs,h(u)],8,ps)),[[k,e.$t("download")]]),h(le,null,{content:I(l=>[o("section",ms,[o("div",gs,[o("div",fs,i(e.$t("path")),1),o("div",bs,i(t.path),1)])])]),default:I(()=>[g((n(),a("button",vs,[ks,h(ae)])),[[k,e.$t("info")]])]),_:2},1024)])],42,es))]),_:1},8,["data-sources"])):f("",!0),!s(E)&&r.value.length===0?(n(),a("div",ys,i(e.$t(s(Ve)(s(E),s(P).permissions,"WRITE_EXTERNAL_STORAGE"))),1)):f("",!0)],64)}}});export{Ds as default}; diff --git a/app/src/main/resources/web/assets/FilesRecentView-Ih4tM4Bo.js b/app/src/main/resources/web/assets/FilesRecentView-Ih4tM4Bo.js new file mode 100644 index 00000000..fe9d6186 --- /dev/null +++ b/app/src/main/resources/web/assets/FilesRecentView-Ih4tM4Bo.js @@ -0,0 +1 @@ +import{d as ce,g as ie,h as k,i as de,s as re,j as ue,K as _e,L as pe,M as he,c as a,a as o,m as s,t as i,x as m,w as _,p as h,e as g,O as z,P as ve,v as ke,q as I,ar as me,bG as ge,C as fe,bE as be,bP as ye,S as we,o as n,N as Ee,aC as Ce,E as Ie,U as De,V as Le,W as Se,bj as Te,X as Ve,Y as $e,bK as Ae,ak as Fe,bL as xe,bI as Ne,a1 as f,as as Ke,a3 as Me,bM as Ue,ao as Be,bN as Oe,bO as ze}from"./index-BXOWKrmL.js";import{_ as R}from"./default-BQXvEOng.js";import{u as Re,c as Ge}from"./key-events-DpI8L-ce.js";const Pe={class:"top-app-bar"},Qe=["checked","indeterminate"],je={key:0},He={key:1},We=o("md-ripple",null,null,-1),Xe={key:0,class:"scroller"},qe={class:"start"},Je=o("div",{class:"checkbox"},[o("div",{class:"skeleton-checkbox"})],-1),Ye={class:"number"},Ze=$e('
',4),es=["onClick","onMouseover"],ss={class:"start"},ts=["onClick","checked"],os=["onClick","checked"],ns={class:"number"},as=["onClick"],ls={key:0,class:"svg",src:R},cs=["src","onError"],is=["src","onError"],ds={key:3,class:"svg",src:R},rs={class:"title"},us={class:"subtitle"},_s={class:"actions"},ps=["onClick"],hs=o("md-ripple",null,null,-1),vs={class:"btn-icon sm"},ks=o("md-ripple",null,null,-1),ms={class:"card card-info"},gs={class:"key-value vertical"},fs={class:"key"},bs={class:"value"},ys={key:2,class:"no-data-placeholder"},Ds=ce({__name:"FilesRecentView",setup(ws){const{t:G}=ie(),P=k([]),D=de(),{app:Q,urlTokenKey:b}=re(D),r=k([]),{selectedIds:p,allChecked:L,realAllChecked:j,clearSelection:y,toggleAllChecked:S,toggleSelect:T,total:w,checked:V,shiftEffectingIds:$,handleItemClick:H,handleMouseOver:W,selectAll:X,shouldSelect:q}=Re(r),{downloadFile:A,downloadFiles:J}=me(b),{view:Y}=Oe(P,(e,d)=>{D.lightbox={sources:e,index:d,visible:!0}}),{keyDown:F,keyUp:x}=Ge(X,y,()=>{}),N=k([]),K=k([]),Z=e=>{N.value.push(e)},ee=e=>{K.value.push(e)},{mutate:se,onDone:te}=ue({document:ge,appApi:!0});te(e=>{J(e.data.setTempValue.key),y()});const M=e=>{Ae(e.name)?window.open(Fe(b.value,e.path),"_blank"):xe(e.name)?Y(r.value,e):A(e.path)},{loading:E,fetch:U}=_e({handle:async(e,d)=>{if(d)fe(G(d),"error");else{const u=[];for(const C of e.recentFiles)u.push(be(C,b.value));r.value=u,w.value=u.length}},document:ye,appApi:!0}),oe=()=>{se({key:Ne(),value:JSON.stringify(p.value.map(e=>({path:e})))})},B=e=>{e.status==="done"&&setTimeout(()=>{U()},1e3)},ne=e=>{e.forEach(d=>{ze(r.value,u=>u.id===d.id)}),y()},O=e=>{ne([e.item])};return pe(()=>{U(),f.on("upload_task_done",B),f.on("file_deleted",O),window.addEventListener("keydown",F),window.addEventListener("keyup",x)}),he(()=>{f.off("upload_task_done",B),f.off("file_deleted",O),window.removeEventListener("keydown",F),window.removeEventListener("keyup",x)}),(e,d)=>{const u=Ke,C=Me,ae=Ue,le=Be,v=we("tooltip");return n(),a(z,null,[o("div",Pe,[o("md-checkbox",{"touch-target":"wrapper",onChange:d[0]||(d[0]=(...c)=>s(S)&&s(S)(...c)),checked:s(L),indeterminate:!s(L)&&s(V)},null,40,Qe),s(p).length?(n(),a("span",je,i(e.$t("x_selected",{count:s(j)?s(w).toLocaleString():s(p).length.toLocaleString()})),1)):(n(),a("span",He,i(e.$t("recent_files"))+" ("+i(s(w).toLocaleString())+")",1)),s(V)?m((n(),a("button",{key:2,class:"btn-icon",onClick:_(oe,["stop"])},[We,h(u)])),[[v,e.$t("download")]]):g("",!0)]),s(E)&&r.value.length===0?(n(),a("div",Xe,[(n(),a(z,null,ve(20,c=>o("section",{class:"file-item selectable-card-skeleton",key:c},[o("div",qe,[Je,o("span",Ye,i(c),1)]),Ze])),64))])):g("",!0),r.value.length>0?(n(),ke(s(Te),{key:1,class:"scroller","data-key":"id","data-sources":r.value,"estimate-size":80},{item:I(({index:c,item:t})=>[(n(),a("section",{class:Ee(["file-item selectable-card",{selected:s(p).includes(t.id),selecting:s($).includes(t.id)}]),key:t.id,onClick:_(l=>s(H)(l,t,c,()=>{M(t)}),["stop"]),onMouseover:l=>s(W)(l,c)},[o("div",ss,[s($).includes(t.id)?(n(),a("md-checkbox",{key:0,class:"checkbox","touch-target":"wrapper",onClick:_(l=>s(T)(l,t,c),["stop"]),checked:s(q)},null,8,ts)):(n(),a("md-checkbox",{key:1,class:"checkbox","touch-target":"wrapper",onClick:_(l=>s(T)(l,t,c),["stop"]),checked:s(p).includes(t.id)},null,8,os)),o("span",ns,[h(C,{id:c+1,raw:t},null,8,["id","raw"])])]),o("div",{class:"image",onClick:_(l=>M(t),["stop"])},[K.value.includes(t.id)?(n(),a("img",ls)):!N.value.includes(t.id)&&t.fileId?(n(),a("img",{key:1,class:"image-thumb",src:s(Ce)(t.fileId,"&w=50&h=50"),onError:l=>Z(t.id)},null,40,cs)):t.extension?(n(),a("img",{key:2,src:`/ficons/${t.extension}.svg`,class:"svg",onError:l=>ee(t.id)},null,40,is)):(n(),a("img",ds))],8,as),o("div",rs,i(t.name),1),o("div",us,[o("span",null,i(s(Ie)(t.size)),1),m((n(),a("span",null,[Le(i(s(Se)(t.updatedAt)),1)])),[[v,s(De)(t.updatedAt)]])]),o("div",_s,[m((n(),a("button",{class:"btn-icon sm",onClick:_(l=>s(A)(t.path),["stop"])},[hs,h(u)],8,ps)),[[v,e.$t("download")]]),h(le,null,{content:I(l=>[o("section",ms,[o("div",gs,[o("div",fs,i(e.$t("path")),1),o("div",bs,i(t.path),1)])])]),default:I(()=>[m((n(),a("button",vs,[ks,h(ae)])),[[v,e.$t("info")]])]),_:2},1024)])],42,es))]),_:1},8,["data-sources"])):g("",!0),!s(E)&&r.value.length===0?(n(),a("div",ys,i(e.$t(s(Ve)(s(E),s(Q).permissions,"WRITE_EXTERNAL_STORAGE"))),1)):g("",!0)],64)}}});export{Ds as default}; diff --git a/app/src/main/resources/web/assets/FilesSidebar-DGzsCKBr.js b/app/src/main/resources/web/assets/FilesSidebar-DGDeJsty.js similarity index 56% rename from app/src/main/resources/web/assets/FilesSidebar-DGzsCKBr.js rename to app/src/main/resources/web/assets/FilesSidebar-DGDeJsty.js index cc9ec7c9..d2e0654a 100644 --- a/app/src/main/resources/web/assets/FilesSidebar-DGzsCKBr.js +++ b/app/src/main/resources/web/assets/FilesSidebar-DGDeJsty.js @@ -1 +1 @@ -import{_ as w}from"./LeftSidebar.vuevuetypescriptsetuptruelang-Bkp0VFG-.js";import{d as N,u as R,s as y,i as F,g as x,I as D,h,aF as Q,k as T,v as V,q as m,Q as E,a6 as _,a0 as I,o as c,V as L,t as i,a as r,w as v,N as b,m as k,c as g,P as M,O as z,bu as A,f as S,a7 as H,a8 as O}from"./index-B-S542RM.js";const j={class:"nav"},G={class:"title"},J=["onClick"],K={class:"title"},Z=N({__name:"FilesSidebar",setup(U){const u=E(),p=R(),{app:s}=y(F()),{t:n}=x(),{parseQ:$}=A(),l=D({showHidden:!1,linkName:"",text:"",parent:""}),P=h(""),d=h(!1);function q(){S(p,"/files/recent")}const B=Q(()=>{const e=[{name:"internal",label:n("internal_storage"),path:s.value.internalStoragePath}];return s.value.sdcardPath&&e.push({name:"sdcard",label:n("sdcard"),path:s.value.sdcardPath}),s.value.usbDiskPaths.forEach((t,a)=>{e.push({name:`usb${a+1}`,label:`${n("usb_storage")} ${a+1}`,path:t})}),e.push({name:"app",label:n("app_name"),path:s.value.externalFilesDir}),e});function C(e){const t=H([{name:"parent",op:"",value:e.path},{name:"link_name",op:"",value:e.name}]);S(p,`/files?q=${O(t)}`)}function f(){var a;const e=_.currentRoute.value;if(e.path==="/files/recent"){d.value=!0;return}d.value=!1;const t=I(((a=e.query.q)==null?void 0:a.toString())??"");$(l,t),P.value=l.parent}return f(),T(()=>_.currentRoute.value.fullPath,()=>{f()}),(e,t)=>{const a=w;return c(),V(a,null,{title:m(()=>[L(i(e.$t("page_title.files")),1)]),body:m(()=>[r("ul",j,[r("li",{onClick:v(q,["prevent"]),class:b({active:k(u).path==="/files/recent"})},[r("span",G,i(e.$t("recents")),1)],2),(c(!0),g(z,null,M(B.value,o=>(c(),g("li",{onClick:v(W=>C(o),["prevent"]),class:b({active:k(u).path==="/files"&&o.name===l.linkName})},[r("span",K,i(o.label),1)],10,J))),256))])]),_:1})}}});export{Z as default}; +import{_ as w}from"./LeftSidebar.vuevuetypescriptsetuptruelang-qrlto0-t.js";import{d as y,u as N,s as R,i as x,g as D,I as F,h,aH as Q,k as T,v as V,q as m,Q as E,a6 as _,a0 as H,o as c,V as I,t as i,a as r,w as v,N as b,m as k,c as g,P as L,O as M,by as z,f as S,a7 as A,a8 as O}from"./index-BXOWKrmL.js";const j={class:"nav"},G={class:"title"},J=["onClick"],K={class:"title"},Z=y({__name:"FilesSidebar",setup(U){const u=E(),p=N(),{app:s}=R(x()),{t:n}=D(),{parseQ:$}=z(),l=F({showHidden:!1,linkName:"",text:"",parent:""}),P=h(""),d=h(!1);function q(){S(p,"/files/recent")}const B=Q(()=>{const e=[{name:"internal",label:n("internal_storage"),path:s.value.internalStoragePath}];return s.value.sdcardPath&&e.push({name:"sdcard",label:n("sdcard"),path:s.value.sdcardPath}),s.value.usbDiskPaths.forEach((t,a)=>{e.push({name:`usb${a+1}`,label:`${n("usb_storage")} ${a+1}`,path:t})}),e.push({name:"app",label:n("app_name"),path:s.value.externalFilesDir}),e});function C(e){const t=A([{name:"parent",op:"",value:e.path},{name:"link_name",op:"",value:e.name}]);S(p,`/files?q=${O(t)}`)}function f(){var a;const e=_.currentRoute.value;if(e.path==="/files/recent"){d.value=!0;return}d.value=!1;const t=H(((a=e.query.q)==null?void 0:a.toString())??"");$(l,t),P.value=l.parent}return f(),T(()=>_.currentRoute.value.fullPath,()=>{f()}),(e,t)=>{const a=w;return c(),V(a,null,{title:m(()=>[I(i(e.$t("page_title.files")),1)]),body:m(()=>[r("ul",j,[r("li",{onClick:v(q,["prevent"]),class:b({active:k(u).path==="/files/recent"})},[r("span",G,i(e.$t("recents")),1)],2),(c(!0),g(M,null,L(B.value,o=>(c(),g("li",{onClick:v(W=>C(o),["prevent"]),class:b({active:k(u).path==="/files"&&o.name===l.linkName})},[r("span",K,i(o.label),1)],10,J))),256))])]),_:1})}}});export{Z as default}; diff --git a/app/src/main/resources/web/assets/FilesView-CWRvNtkx.js b/app/src/main/resources/web/assets/FilesView-CWRvNtkx.js new file mode 100644 index 00000000..f790734b --- /dev/null +++ b/app/src/main/resources/web/assets/FilesView-CWRvNtkx.js @@ -0,0 +1 @@ +import{_ as no}from"./more-vert-B_3Etgle.js";import{o as n,c as l,a as t,d as Ge,u as We,I as je,h as T,S as Je,e as S,p,x as h,w as _,y as so,A as ao,t as r,O as b,f as Xe,F as Ye,G as Ze,by as et,H as tt,bz as lo,g as io,s as de,i as co,aF as ro,aH as Ae,bA as uo,bB as _o,bC as po,K as ho,bD as mo,ai as Ue,j as fo,L as vo,M as ko,m as s,P as ue,v as k,q as u,aL as go,Q as yo,ar as bo,C as $o,bE as wo,bF as Co,bG as To,Z as Q,aP as qo,ao as Io,V as _e,N as Do,aC as So,E as F,U as Vo,W as Fo,bj as Eo,X as Lo,Y as No,aq as Bo,bH as Mo,aS as zo,bI as Ho,bJ as Ke,bK as Re,ak as Oe,bL as Pe,a0 as Ao,a1 as x,ae as Uo,as as Ko,a3 as Ro,bM as Oo,bN as Po,bO as Qo}from"./index-BXOWKrmL.js";import{_ as xo}from"./sort-rounded-CjGrBbPk.js";import{_ as Go}from"./refresh-rounded-CMms9dRf.js";import{_ as Wo}from"./content-paste-rounded--YFEOBZV.js";import{_ as jo}from"./upload-rounded-D52A8109.js";import{_ as Jo}from"./search-rounded-DpdJ2cSK.js";import{_ as ot}from"./default-BQXvEOng.js";import{E as Qe}from"./EditValueModal-HQ024-FF.js";import{u as Xo,c as Yo}from"./key-events-DpI8L-ce.js";import"./vee-validate.esm-Bmkx0D8v.js";const Zo={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},en=t("path",{fill:"currentColor",d:"M4 20q-.825 0-1.412-.587T2 18V6q0-.825.588-1.412T4 4h5.175q.4 0 .763.15t.637.425L12 6h8q.825 0 1.413.588T22 8v10q0 .825-.587 1.413T20 20zm0-2h16V8h-8.825l-2-2H4zm0 0V6zm10-4v1q0 .425.288.713T15 16t.713-.288T16 15v-1h1q.425 0 .713-.288T18 13t-.288-.712T17 12h-1v-1q0-.425-.288-.712T15 10t-.712.288T14 11v1h-1q-.425 0-.712.288T12 13t.288.713T13 14z"},null,-1),tn=[en];function on(y,f){return n(),l("svg",Zo,[...tn])}const nn={name:"material-symbols-create-new-folder-outline-rounded",render:on},sn={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},an=t("path",{fill:"currentColor",d:"M19.075 21.9L17.5 20.35q-1.225.8-2.613 1.225T12 22q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12q0-1.5.425-2.887T3.65 6.5L2.075 4.925q-.3-.3-.3-.712t.3-.713t.713-.3t.712.3l17 17q.3.3.3.7t-.3.7t-.712.3t-.713-.3M12 20q1.075 0 2.088-.275t1.962-.825L5.1 7.95q-.55.95-.825 1.962T4 12q0 3.325 2.338 5.663T12 20m0-16q-.825 0-1.612.163T8.85 4.65q-.4.175-.8.05t-.6-.475t-.088-.75t.488-.575q.975-.45 2.012-.675T12 2q2.075 0 3.9.788t3.175 2.137T21.213 8.1T22 12q0 1.1-.225 2.138T21.1 16.15q-.175.375-.575.488t-.75-.088t-.475-.6t.05-.8q.325-.75.488-1.537T20 12q0-3.325-2.337-5.663T12 4m-1.425 9.425"},null,-1),ln=[an];function cn(y,f){return n(),l("svg",sn,[...ln])}const rn={name:"material-symbols-hide-source-outline-rounded",render:cn},dn=y=>(Ye("data-v-51d6a30b"),y=y(),Ze(),y),un={key:"filter-text"},_n=["label"],pn={key:"filter-show-hidden"},hn=["label"],mn=dn(()=>t("md-ripple",null,null,-1)),fn=["open"],vn={class:"filters"},kn={class:"form-row"},gn=["label"],yn=["label","selected"],bn={class:"buttons"},$n=Ge({__name:"FileSearchInput",props:{parent:{type:String,required:!0},filter:{type:Object,required:!0},getUrl:{type:Function,required:!0}},setup(y,{expose:f}){const{copyFilter:A,buildQ:G}=et(),W=We(),c=je({showHidden:!1,linkName:"",text:"",parent:""}),$=y,E=T(!1);function L(){A(c,$.filter),g(),B()}function g(){Xe(W,$.getUrl(G($.filter)))}function w(){$.filter.text="",g()}function U(){E.value=!0,A($.filter,c)}function B(){E.value=!1}function I(){$.filter.showHidden=!1,g()}function K(){c.showHidden=!c.showHidden}return f({dismiss:B}),(D,V)=>{const R=rn,O=Jo,j=Je("tooltip");return n(),l(b,null,[t("md-chip-set",null,[$.filter.text?(n(),l("div",un,[t("md-input-chip",{label:$.filter.text,"remove-only":"",onRemove:w},null,40,_n)])):S("",!0),$.filter.showHidden?(n(),l("div",pn,[t("md-input-chip",{label:D.$t("show_hidden"),"remove-only":"",onRemove:I},[p(R,{slot:"icon"})],40,hn)])):S("",!0)]),h((n(),l("button",{id:"btn-search",class:"btn-icon",onClick:_(U,["prevent"])},[mn,p(O)])),[[j,D.$t("search")]]),t("md-menu",{positioning:"popover",anchor:"btn-search","menu-corner":"start-end","anchor-corner":"end-end","stay-open-on-focusout":"",quick:"",open:E.value,onClosed:B},[t("div",vn,[t("div",kn,[h(t("md-outlined-text-field",{label:D.$t("keywords"),"onUpdate:modelValue":V[0]||(V[0]=J=>c.text=J),onKeyup:ao(L,["enter"])},null,40,gn),[[so,c.text]])]),t("md-chip-set",null,[t("md-filter-chip",{key:"chip-show-hidden",label:D.$t("show_hidden"),selected:c.showHidden,onClick:K},null,8,yn)]),t("div",bn,[t("md-filled-button",{onClick:_(L,["stop"])},r(D.$t("search")),1)])])],40,fn)],64)}}}),wn=tt($n,[["__scopeId","data-v-51d6a30b"]]),Cn={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Tn=t("path",{fill:"currentColor",d:"m12 14l-2.35 2.35q.2.375.275.8T10 18q0 1.65-1.175 2.825T6 22t-2.825-1.175T2 18t1.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 6t1.175-2.825T6 2t2.825 1.175T10 6q0 .425-.075.85t-.275.8L20.6 18.6q.675.675.3 1.538T19.575 21q-.275 0-.537-.112t-.463-.313zm3-3l-2-2l5.575-5.575q.2-.2.463-.312T19.574 3q.95 0 1.313.875t-.313 1.55zM6 8q.825 0 1.413-.587T8 6t-.587-1.412T6 4t-1.412.588T4 6t.588 1.413T6 8m6 4.5q.2 0 .35-.15t.15-.35t-.15-.35t-.35-.15t-.35.15t-.15.35t.15.35t.35.15M6 20q.825 0 1.413-.587T8 18t-.587-1.412T6 16t-1.412.588T4 18t.588 1.413T6 20"},null,-1),qn=[Tn];function In(y,f){return n(),l("svg",Cn,[...qn])}const Dn={name:"material-symbols-content-cut-rounded",render:In},Sn={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Vn=t("path",{fill:"currentColor",d:"M9 18q-.825 0-1.412-.587T7 16V4q0-.825.588-1.412T9 2h9q.825 0 1.413.588T20 4v12q0 .825-.587 1.413T18 18zm0-2h9V4H9zm-4 6q-.825 0-1.412-.587T3 20V7q0-.425.288-.712T4 6t.713.288T5 7v13h10q.425 0 .713.288T16 21t-.288.713T15 22zm4-6V4z"},null,-1),Fn=[Vn];function En(y,f){return n(),l("svg",Sn,[...Fn])}const Ln={name:"material-symbols-content-copy-outline-rounded",render:En},Nn=lo({id:"files",state:()=>({selectedFiles:[],isCut:!1})}),Bn=y=>(Ye("data-v-b95c3ff1"),y=y(),Ze(),y),Mn={class:"top-app-bar"},zn=["checked","indeterminate"],Hn={key:0},An={key:1,class:"breadcrumb"},Un={key:0},Kn=["onClick"],Rn={key:0},On=["onClick"],Pn={class:"actions"},Qn=["onClick"],xn={slot:"headline"},Gn=["onClick"],Wn={slot:"headline"},jn={class:"menu-items"},Jn=["onClick","selected"],Xn={slot:"headline"},Yn={key:0,class:"scroller-wrapper"},Zn={class:"scroller"},es={class:"start"},ts=Bn(()=>t("div",{class:"checkbox"},[t("div",{class:"skeleton-checkbox"})],-1)),os={class:"number"},ns=No('
',4),ss=["onClick","onMouseover"],as={class:"start"},ls=["onClick","checked"],is=["onClick","checked"],cs={class:"number"},rs=["onClick"],ds={key:0,src:"/ficons/folder.svg",class:"svg"},us={key:0,class:"svg",src:ot},_s=["src","onError"],ps=["src","onError"],hs={key:3,class:"svg",src:ot},ms={class:"title"},fs={class:"subtitle"},vs={key:0},ks={key:1},gs={class:"actions"},ys=["onClick"],bs={slot:"headline"},$s=["onClick"],ws={slot:"headline"},Cs={class:"card card-info"},Ts={class:"key-value vertical"},qs={class:"key"},Is={class:"value"},Ds=["onClick"],Ss={slot:"headline"},Vs=["onClick"],Fs={slot:"headline"},Es=["onClick"],Ls={slot:"headline"},Ns=["onClick"],Bs={slot:"headline"},Ms=["onClick"],zs={slot:"headline"},Hs={key:1,class:"no-data-placeholder"},xe=1e4,As=Ge({__name:"FilesView",setup(y){var ze;const{t:f}=io(),A=T([]),{parseQ:G,buildQ:W}=et(),c=je({linkName:"",showHidden:!1,text:"",parent:""}),E=yo().query,L=T(""),g=T([]),{selectedIds:w,allChecked:U,realAllChecked:B,clearSelection:I,toggleAllChecked:K,toggleSelect:D,total:V,checked:R,shiftEffectingIds:O,handleItemClick:j,handleMouseOver:J,selectAll:nt,shouldSelect:st}=Xo(g),{keyDown:pe,keyUp:he}=Yo(nt,I,()=>{Ve()}),X=T(!1),Y=T(!1),me=T([]),fe=T([]),at=e=>{me.value.push(e)},lt=e=>{fe.value.push(e)},it=Bo(),ve=We(),{fileSortBy:Z}=de(ve),ke=co(),{app:ge,urlTokenKey:M,uploads:ee}=de(ke),{selectedFiles:ct,isCut:rt}=de(Nn()),{dropping:dt,fileDragEnter:ye,fileDragLeave:be,dropFiles:ut}=ro(ee),P=Ae(()=>Mo(c.linkName,ge.value)),{createPath:_t,createVariables:pt,createMutation:ht}=uo(M,g),{renameItem:mt,renameDone:ft,renameMutation:vt,renameVariables:kt}=_o(()=>{z()}),{internal:$e,sdcard:we,usb:gt,refetch:te}=po(),{downloadFile:oe,downloadDir:yt,downloadFiles:bt}=bo(M),{view:Ce}=Po(A,(e,o)=>{ke.lightbox={sources:e,index:o,visible:!0}}),$t=T(parseInt(((ze=E.page)==null?void 0:ze.toString())??"1")),wt=Ae(()=>{const e=[];let o=c.parent;for(;o&&o!==P.value;)e.unshift({path:o,name:zo(o)}),o=o.substring(0,o.lastIndexOf("/"));return e.unshift({path:P.value,name:Lt()}),e}),Te=T(!0),{loading:ne,fetch:z}=ho({handle:async(e,o)=>{if(Te.value=!1,X.value=!1,Y.value=!1,o)$o(f(o),"error");else{const C=[];for(const m of e.files)C.push(wo(m,M.value));g.value=C,V.value=C.length}},document:Co,variables:()=>({root:P.value,offset:($t.value-1)*xe,limit:xe,query:L.value,sortBy:Z.value}),options:{fetchPolicy:"cache-and-network"},appApi:!0}),{loading:Ct,canPaste:qe,copy:se,cut:Ie,paste:ae}=mo(g,rt,ct,z,te),{input:Tt,upload:qt,uploadChanged:De}=Ue(ee),{input:It,upload:Dt,uploadChanged:Se}=Ue(ee),{loading:St,mutate:Vt,onDone:Ft}=fo({document:To,appApi:!0});Ft(e=>{bt(e.data.setTempValue.key),I()});const Et=()=>{Vt({key:Ho(),value:JSON.stringify(w.value.map(e=>({path:e})))})},le=e=>{e.forEach(o=>{Qo(g.value,C=>C.id===o.id)}),I(),te()},Ve=()=>{Q(Ke,{files:g.value.filter(e=>w.value.includes(e.id)),onDone:e=>{le(e)}})};function Lt(){if(c.linkName==="sdcard")return f("sdcard");if(c.linkName==="app")return f("app_name");if(c.linkName.startsWith("usb")){const e=parseInt(c.linkName.substring(3));return`${f("usb_storage")} ${e}`}return f("internal_storage")}function Fe(){var e,o,C,m;if(c.linkName==="sdcard")return`${f("storage_free_total",{free:F(((e=we.value)==null?void 0:e.freeBytes)??0),total:F(((o=we.value)==null?void 0:o.totalBytes)??0)})}`;if(c.linkName==="app")return f("app_name");if(c.linkName.startsWith("usb")){const ce=parseInt(c.linkName.substring(3)),q=gt.value[ce-1];return`${f("storage_free_total",{free:F((q==null?void 0:q.freeBytes)??0),total:F((q==null?void 0:q.totalBytes)??0)})}`}return`${F(((C=$e.value)==null?void 0:C.freeBytes)??0)} / ${F(((m=$e.value)==null?void 0:m.totalBytes)??0,!0,0)}`}function ie(e){I(),c.parent=e;const o=W(c);Xe(ve,Ee(o))}function Ee(e){return`/files?q=${e}`}function Nt(e){if(e.isDir){ie(e.path);return}Re(e.name)?window.open(Oe(M.value,e.path),"_blank"):Pe(e.name)?Ce(g.value,e):oe(e.path)}function Bt(e,o){o.isDir||(e.stopPropagation(),Re(o.name)?window.open(Oe(M.value,o.path),"_blank"):Pe(o.name)?Ce(g.value,o):oe(o.path))}function Mt(e,o){Y.value=!0,Z.value=o,e.close()}function zt(){X.value=!0,z()}const Ht=()=>{_t.value=c.parent,Q(Qe,{title:f("name"),placeholder:f("name"),mutation:ht,getVariables:pt})};function Le(e,o){qt(o),e.close()}function Ne(e,o){Dt(o),e.close()}function At(){se(w.value),I()}function Ut(){Ie(w.value),I()}function Kt(){ae(c.parent)}function Rt(e,o){se([o.id]),ae(c.parent),e.close()}function Ot(e,o){Ie([o.id]),e.close()}function Pt(e,o){se([o.id]),e.close()}function Qt(e,o){ae(o.path),e.close()}function xt(e,o){mt.value=o,Q(Qe,{title:f("rename"),placeholder:f("name"),value:o.name,mutation:vt,getVariables:kt,done:ft}),e.close()}function Gt(e){Q(Ke,{files:[e],onDone:le})}const Be=e=>{e.status==="done"&&setTimeout(()=>{z(),te()},1e3)},Me=e=>{le([e.item])};function Wt(e){ut(e,c.parent)}return vo(()=>{var e;L.value=Ao(((e=E.q)==null?void 0:e.toString())??""),G(c,L.value),z(),x.on("upload_task_done",Be),x.on("file_deleted",Me),window.addEventListener("keydown",pe),window.addEventListener("keyup",he)}),ko(()=>{x.off("upload_task_done",Be),x.off("file_deleted",Me),window.removeEventListener("keydown",pe),window.removeEventListener("keyup",he)}),(e,o)=>{const C=Ln,m=qo,ce=Dn,q=Uo,re=Ko,jt=wn,Jt=nn,He=jo,H=Io,Xt=Wo,Yt=Go,Zt=xo,eo=Ro,to=Oo,oo=no,v=Je("tooltip");return n(),l(b,null,[t("div",Mn,[t("md-checkbox",{"touch-target":"wrapper",onChange:o[0]||(o[0]=(...i)=>s(K)&&s(K)(...i)),checked:s(U),indeterminate:!s(U)&&s(R)},null,40,zn),s(w).length?(n(),l("span",Hn,r(e.$t("x_selected",{count:s(B)?s(V).toLocaleString():s(w).length.toLocaleString()})),1)):(n(),l("div",An,[(n(!0),l(b,null,ue(wt.value,(i,a)=>(n(),l(b,{key:i.path},[a===0?(n(),l(b,{key:0},[i.path===c.parent?h((n(),l("span",Un,[_e(r(i.name)+" ("+r(s(V))+")",1)])),[[v,Fe()]]):h((n(),l("a",{key:1,href:"#",onClick:_(d=>ie(i.path),["stop","prevent"])},[_e(r(i.name),1)],8,Kn)),[[v,Fe()]])],64)):(n(),l(b,{key:1},[i.path===c.parent?(n(),l("span",Rn,r(i.name)+" ("+r(s(V))+")",1)):(n(),l("a",{key:1,href:"#",onClick:_(d=>ie(i.path),["stop","prevent"])},r(i.name),9,On))],64))],64))),128))])),s(R)?(n(),l(b,{key:2},[h((n(),k(m,{onClick:_(At,["stop"])},{icon:u(()=>[p(C)]),_:1})),[[v,e.$t("copy")]]),h((n(),k(m,{onClick:_(Ut,["stop"])},{icon:u(()=>[p(ce)]),_:1})),[[v,e.$t("cut")]]),h((n(),k(m,{onClick:_(Ve,["stop"])},{icon:u(()=>[p(q)]),_:1})),[[v,e.$t("delete")]]),h((n(),k(m,{loading:s(St),onClick:_(Et,["stop"])},{icon:u(()=>[p(re)]),_:1},8,["loading"])),[[v,e.$t("download")]])],64)):S("",!0),t("div",Pn,[p(jt,{filter:c,parent:P.value,"get-url":Ee},null,8,["filter","parent"]),h((n(),k(m,{onClick:Ht},{icon:u(()=>[p(Jt)]),_:1})),[[v,e.$t("create_folder")]]),p(H,null,{content:u(i=>[t("md-menu-item",{onClick:_(a=>Le(i,c.parent),["stop"])},[t("div",xn,r(e.$t("upload_files")),1)],8,Qn),t("md-menu-item",{onClick:_(a=>Ne(i,c.parent),["stop"])},[t("div",Wn,r(e.$t("upload_folder")),1)],8,Gn)]),default:u(()=>[h((n(),k(m,null,{icon:u(()=>[p(He)]),_:1})),[[v,e.$t("upload")]])]),_:1}),s(qe)()?h((n(),k(m,{key:0,loading:s(Ct),onClick:Kt},{icon:u(()=>[p(Xt)]),_:1},8,["loading"])),[[v,e.$t("paste")]]):S("",!0),h((n(),k(m,{loading:X.value,onClick:zt},{icon:u(()=>[p(Yt)]),_:1},8,["loading"])),[[v,e.$t("refresh")]]),p(H,null,{content:u(i=>[t("div",jn,[(n(!0),l(b,null,ue(s(it),a=>(n(),l("md-menu-item",{onClick:d=>Mt(i,a.value),key:a.value,selected:a.value===s(Z)},[t("div",Xn,r(e.$t(a.label)),1)],8,Jn))),128))])]),default:u(()=>[h((n(),k(m,{loading:Y.value},{icon:u(()=>[p(Zt)]),_:1},8,["loading"])),[[v,e.$t("sort")]])]),_:1})])]),s(ne)&&Te.value?(n(),l("div",Yn,[t("div",Zn,[(n(),l(b,null,ue(20,i=>t("section",{class:"file-item selectable-card-skeleton",key:i},[t("div",es,[ts,t("span",os,r(i),1)]),ns])),64))])])):S("",!0),t("div",{class:"scroller-wrapper",onDragover:o[4]||(o[4]=_((...i)=>s(ye)&&s(ye)(...i),["stop","prevent"]))},[h(t("div",{class:"drag-mask",onDrop:_(Wt,["stop","prevent"]),onDragleave:o[1]||(o[1]=_((...i)=>s(be)&&s(be)(...i),["stop","prevent"]))},r(e.$t("release_to_send_files")),545),[[go,s(dt)]]),g.value.length>0?(n(),k(s(Eo),{key:0,class:"scroller","data-key":"id","data-sources":g.value,"estimate-size":80},{item:u(({index:i,item:a})=>[t("section",{class:Do(["file-item selectable-card",{selected:s(w).includes(a.id),selecting:s(O).includes(a.id)}]),onClick:_(d=>s(j)(d,a,i,()=>{Nt(a)}),["stop"]),onMouseover:d=>s(J)(d,i)},[t("div",as,[s(O).includes(a.id)?(n(),l("md-checkbox",{key:0,class:"checkbox","touch-target":"wrapper",onClick:_(d=>s(D)(d,a,i),["stop"]),checked:s(st)},null,8,ls)):(n(),l("md-checkbox",{key:1,class:"checkbox","touch-target":"wrapper",onClick:_(d=>s(D)(d,a,i),["stop"]),checked:s(w).includes(a.id)},null,8,is)),t("span",cs,[p(eo,{id:i+1,raw:a},null,8,["id","raw"])])]),t("div",{class:"image",onClick:d=>Bt(d,a)},[a.isDir?(n(),l("img",ds)):(n(),l(b,{key:1},[fe.value.includes(a.id)?(n(),l("img",us)):!me.value.includes(a.id)&&a.fileId?(n(),l("img",{key:1,class:"image-thumb",src:s(So)(a.fileId,"&w=50&h=50"),onError:d=>at(a.id)},null,40,_s)):a.extension?(n(),l("img",{key:2,src:`/ficons/${a.extension}.svg`,class:"svg",onError:d=>lt(a.id)},null,40,ps)):(n(),l("img",hs))],64))],8,rs),t("div",ms,r(a.name),1),t("div",fs,[a.isDir?(n(),l("span",vs,r(e.$t("x_items",a.children)),1)):(n(),l("span",ks,r(s(F)(a.size)),1)),h((n(),l("span",null,[_e(r(s(Fo)(a.updatedAt)),1)])),[[v,s(Vo)(a.updatedAt)]])]),t("div",gs,[a.isDir?(n(),l(b,{key:0},[h((n(),k(m,{class:"sm",onClick:_(d=>s(yt)(a.path),["stop"])},{icon:u(()=>[p(re)]),_:2},1032,["onClick"])),[[v,e.$t("download")]]),p(H,null,{content:u(d=>[t("md-menu-item",{onClick:_(N=>Le(d,a.path),["stop"])},[t("div",bs,r(e.$t("upload_files")),1)],8,ys),t("md-menu-item",{onClick:_(N=>Ne(d,a.path),["stop"])},[t("div",ws,r(e.$t("upload_folder")),1)],8,$s)]),default:u(()=>[h((n(),k(m,{class:"sm"},{icon:u(()=>[p(He)]),_:1})),[[v,e.$t("upload")]])]),_:2},1024)],64)):h((n(),k(m,{key:1,class:"sm",onClick:_(d=>s(oe)(a.path),["stop"])},{icon:u(()=>[p(re)]),_:2},1032,["onClick"])),[[v,e.$t("download")]]),h((n(),k(m,{class:"sm",onClick:_(d=>Gt(a),["stop"])},{icon:u(()=>[p(q)]),_:2},1032,["onClick"])),[[v,e.$t("delete")]]),p(H,null,{content:u(()=>[t("section",Cs,[t("div",Ts,[t("div",qs,r(e.$t("path")),1),t("div",Is,r(a.path),1)])])]),default:u(()=>[h((n(),k(m,{class:"sm"},{icon:u(()=>[p(to)]),_:1})),[[v,e.$t("info")]])]),_:2},1024),p(H,null,{content:u(d=>[t("md-menu-item",{onClick:_(N=>Rt(d,a),["stop"])},[t("div",Ss,r(e.$t("duplicate")),1)],8,Ds),t("md-menu-item",{onClick:_(N=>Ot(d,a),["stop"])},[t("div",Fs,r(e.$t("cut")),1)],8,Vs),t("md-menu-item",{onClick:_(N=>Pt(d,a),["stop"])},[t("div",Ls,r(e.$t("copy")),1)],8,Es),a.isDir&&s(qe)()?(n(),l("md-menu-item",{key:0,onClick:_(N=>Qt(d,a),["stop"])},[t("div",Bs,r(e.$t("paste")),1)],8,Ns)):S("",!0),t("md-menu-item",{onClick:_(N=>xt(d,a),["stop"])},[t("div",zs,r(e.$t("rename")),1)],8,Ms)]),default:u(()=>[h((n(),k(m,{class:"sm"},{icon:u(()=>[p(oo)]),_:1})),[[v,e.$t("actions")]])]),_:2},1024)])],42,ss)]),_:1},8,["data-sources"])):S("",!0),!s(ne)&&g.value.length===0?(n(),l("div",Hs,r(e.$t(s(Lo)(s(ne),s(ge).permissions,"WRITE_EXTERNAL_STORAGE"))),1)):S("",!0),t("input",{ref_key:"fileInput",ref:Tt,style:{display:"none"},type:"file",multiple:"",onChange:o[2]||(o[2]=(...i)=>s(De)&&s(De)(...i))},null,544),t("input",{ref_key:"dirFileInput",ref:It,style:{display:"none"},type:"file",multiple:"",webkitdirectory:"",mozdirectory:"",directory:"",onChange:o[3]||(o[3]=(...i)=>s(Se)&&s(Se)(...i))},null,544)],32)],64)}}}),Xs=tt(As,[["__scopeId","data-v-b95c3ff1"]]);export{Xs as default}; diff --git a/app/src/main/resources/web/assets/FilesView-D-xT5azp.css b/app/src/main/resources/web/assets/FilesView-DriMBhIE.css similarity index 57% rename from app/src/main/resources/web/assets/FilesView-D-xT5azp.css rename to app/src/main/resources/web/assets/FilesView-DriMBhIE.css index a4b3a3cc..80b84965 100644 --- a/app/src/main/resources/web/assets/FilesView-D-xT5azp.css +++ b/app/src/main/resources/web/assets/FilesView-DriMBhIE.css @@ -1 +1 @@ -.filters[data-v-51d6a30b]{padding:16px;min-width:400px}.filters md-outlined-text-field[data-v-51d6a30b]{width:100%}.filters .buttons[data-v-51d6a30b]{text-align:right;margin-block-start:16px}.filters .form-label[data-v-51d6a30b]{margin-block-start:16px;margin-block-end:8px}.breadcrumb a[data-v-ecafc752]:not(:last-child):after{content:"/";margin-inline:4px}.main-files .file-item[data-v-ecafc752]{grid-template-columns:48px 50px auto 200px}.main-files .scroller-wrapper[data-v-ecafc752]{position:relative;height:100%}.main-files .scroller-wrapper .drag-mask[data-v-ecafc752]{left:16px;right:16px} +.filters[data-v-51d6a30b]{padding:16px;min-width:400px}.filters md-outlined-text-field[data-v-51d6a30b]{width:100%}.filters .buttons[data-v-51d6a30b]{text-align:right;margin-block-start:16px}.filters .form-label[data-v-51d6a30b]{margin-block-start:16px;margin-block-end:8px}.breadcrumb a[data-v-b95c3ff1]:not(:last-child):after{content:"/";margin-inline:4px}.main-files .file-item[data-v-b95c3ff1]{grid-template-columns:48px 50px auto 200px}.main-files .scroller-wrapper[data-v-b95c3ff1]{position:relative;height:100%}.main-files .scroller-wrapper .drag-mask[data-v-b95c3ff1]{left:16px;right:16px} diff --git a/app/src/main/resources/web/assets/FilesView-P-UuQ7zs.js b/app/src/main/resources/web/assets/FilesView-P-UuQ7zs.js deleted file mode 100644 index af37aaa8..00000000 --- a/app/src/main/resources/web/assets/FilesView-P-UuQ7zs.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as no}from"./more-vert-XZtlvs7x.js";import{o as n,c as l,a as t,d as Pe,u as Ge,I as We,h as T,S as je,e as V,p,x as h,w as _,y as so,A as ao,t as r,O as $,f as Je,F as Xe,G as Ye,bu as Ze,H as et,bv as lo,g as io,s as de,i as co,aD as ro,aF as He,bw as uo,bx as _o,by as po,K as ho,bz as mo,ag as Ae,j as vo,L as fo,M as ko,m as s,P as ue,v as k,q as u,aH as go,Q as yo,ap as $o,C as bo,bA as wo,bB as Co,bC as To,Z as Q,am as qo,V as _e,N as Io,aA as Do,E as F,U as So,W as Vo,bf as Fo,X as Eo,Y as Lo,ao as Bo,bD as No,aM as Mo,bE as zo,bF as Ue,bG as Ke,ai as Re,bH as xe,a0 as Ho,a1 as P,ae as Ao,aq as Uo,a3 as Ko,bI as Ro,bJ as xo,bK as Oo}from"./index-B-S542RM.js";import{_ as Qo}from"./sort-rounded-BVzv_GA2.js";import{_ as Po}from"./refresh-rounded-B2-aEsw4.js";import{_ as Go}from"./content-paste-rounded-CbiavvwV.js";import{_ as Wo}from"./upload-rounded-_5wwNL4r.js";import{_ as jo}from"./search-rounded-TCa6qTC1.js";import{_ as Jo}from"./IconButton.vuevuetypescriptsetuptruelang-CxW8gnDA.js";import{_ as tt}from"./default-BQXvEOng.js";import{E as Oe}from"./EditValueModal-u3M261_O.js";import{u as Xo,c as Yo}from"./key-events-D1Kh05Em.js";import"./vee-validate.esm-D5u4WlYW.js";const Zo={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},en=t("path",{fill:"currentColor",d:"M4 20q-.825 0-1.412-.587T2 18V6q0-.825.588-1.412T4 4h5.175q.4 0 .763.15t.637.425L12 6h8q.825 0 1.413.588T22 8v10q0 .825-.587 1.413T20 20zm0-2h16V8h-8.825l-2-2H4zm0 0V6zm10-4v1q0 .425.288.713T15 16t.713-.288T16 15v-1h1q.425 0 .713-.288T18 13t-.288-.712T17 12h-1v-1q0-.425-.288-.712T15 10t-.712.288T14 11v1h-1q-.425 0-.712.288T12 13t.288.713T13 14z"},null,-1),tn=[en];function on(y,v){return n(),l("svg",Zo,[...tn])}const nn={name:"material-symbols-create-new-folder-outline-rounded",render:on},sn={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},an=t("path",{fill:"currentColor",d:"M19.075 21.9L17.5 20.35q-1.225.8-2.613 1.225T12 22q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12q0-1.5.425-2.887T3.65 6.5L2.075 4.925q-.3-.3-.3-.712t.3-.713t.713-.3t.712.3l17 17q.3.3.3.7t-.3.7t-.712.3t-.713-.3M12 20q1.075 0 2.088-.275t1.962-.825L5.1 7.95q-.55.95-.825 1.962T4 12q0 3.325 2.338 5.663T12 20m0-16q-.825 0-1.612.163T8.85 4.65q-.4.175-.8.05t-.6-.475t-.088-.75t.488-.575q.975-.45 2.012-.675T12 2q2.075 0 3.9.788t3.175 2.137T21.213 8.1T22 12q0 1.1-.225 2.138T21.1 16.15q-.175.375-.575.488t-.75-.088t-.475-.6t.05-.8q.325-.75.488-1.537T20 12q0-3.325-2.337-5.663T12 4m-1.425 9.425"},null,-1),ln=[an];function cn(y,v){return n(),l("svg",sn,[...ln])}const rn={name:"material-symbols-hide-source-outline-rounded",render:cn},dn=y=>(Xe("data-v-51d6a30b"),y=y(),Ye(),y),un={key:"filter-text"},_n=["label"],pn={key:"filter-show-hidden"},hn=["label"],mn=dn(()=>t("md-ripple",null,null,-1)),vn=["open"],fn={class:"filters"},kn={class:"form-row"},gn=["label"],yn=["label","selected"],$n={class:"buttons"},bn=Pe({__name:"FileSearchInput",props:{parent:{type:String,required:!0},filter:{type:Object,required:!0},getUrl:{type:Function,required:!0}},setup(y,{expose:v}){const{copyFilter:A,buildQ:G}=Ze(),W=Ge(),c=We({showHidden:!1,linkName:"",text:"",parent:""}),b=y,E=T(!1);function L(){A(c,b.filter),g(),N()}function g(){Je(W,b.getUrl(G(b.filter)))}function w(){b.filter.text="",g()}function U(){E.value=!0,A(b.filter,c)}function N(){E.value=!1}function I(){b.filter.showHidden=!1,g()}function K(){c.showHidden=!c.showHidden}return v({dismiss:N}),(D,S)=>{const R=rn,x=jo,j=je("tooltip");return n(),l($,null,[t("md-chip-set",null,[b.filter.text?(n(),l("div",un,[t("md-input-chip",{label:b.filter.text,"remove-only":"",onRemove:w},null,40,_n)])):V("",!0),b.filter.showHidden?(n(),l("div",pn,[t("md-input-chip",{label:D.$t("show_hidden"),"remove-only":"",onRemove:I},[p(R,{slot:"icon"})],40,hn)])):V("",!0)]),h((n(),l("button",{id:"btn-search",class:"btn-icon",onClick:_(U,["prevent"])},[mn,p(x)])),[[j,D.$t("search")]]),t("md-menu",{positioning:"popover",anchor:"btn-search","menu-corner":"start-end","anchor-corner":"end-end","stay-open-on-focusout":"",quick:"",open:E.value,onClosed:N},[t("div",fn,[t("div",kn,[h(t("md-outlined-text-field",{label:D.$t("keywords"),"onUpdate:modelValue":S[0]||(S[0]=J=>c.text=J),onKeyup:ao(L,["enter"])},null,40,gn),[[so,c.text]])]),t("md-chip-set",null,[t("md-filter-chip",{key:"chip-show-hidden",label:D.$t("show_hidden"),selected:c.showHidden,onClick:K},null,8,yn)]),t("div",$n,[t("md-filled-button",{onClick:_(L,["stop"])},r(D.$t("search")),1)])])],40,vn)],64)}}}),wn=et(bn,[["__scopeId","data-v-51d6a30b"]]),Cn={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Tn=t("path",{fill:"currentColor",d:"m12 14l-2.35 2.35q.2.375.275.8T10 18q0 1.65-1.175 2.825T6 22t-2.825-1.175T2 18t1.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 6t1.175-2.825T6 2t2.825 1.175T10 6q0 .425-.075.85t-.275.8L20.6 18.6q.675.675.3 1.538T19.575 21q-.275 0-.537-.112t-.463-.313zm3-3l-2-2l5.575-5.575q.2-.2.463-.312T19.574 3q.95 0 1.313.875t-.313 1.55zM6 8q.825 0 1.413-.587T8 6t-.587-1.412T6 4t-1.412.588T4 6t.588 1.413T6 8m6 4.5q.2 0 .35-.15t.15-.35t-.15-.35t-.35-.15t-.35.15t-.15.35t.15.35t.35.15M6 20q.825 0 1.413-.587T8 18t-.587-1.412T6 16t-1.412.588T4 18t.588 1.413T6 20"},null,-1),qn=[Tn];function In(y,v){return n(),l("svg",Cn,[...qn])}const Dn={name:"material-symbols-content-cut-rounded",render:In},Sn={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Vn=t("path",{fill:"currentColor",d:"M9 18q-.825 0-1.412-.587T7 16V4q0-.825.588-1.412T9 2h9q.825 0 1.413.588T20 4v12q0 .825-.587 1.413T18 18zm0-2h9V4H9zm-4 6q-.825 0-1.412-.587T3 20V7q0-.425.288-.712T4 6t.713.288T5 7v13h10q.425 0 .713.288T16 21t-.288.713T15 22zm4-6V4z"},null,-1),Fn=[Vn];function En(y,v){return n(),l("svg",Sn,[...Fn])}const Ln={name:"material-symbols-content-copy-outline-rounded",render:En},Bn=lo({id:"files",state:()=>({selectedFiles:[],isCut:!1})}),Nn=y=>(Xe("data-v-ecafc752"),y=y(),Ye(),y),Mn={class:"top-app-bar"},zn=["checked","indeterminate"],Hn={key:0},An={key:1,class:"breadcrumb"},Un={key:0},Kn=["onClick"],Rn={key:0},xn=["onClick"],On={class:"actions"},Qn=["onClick"],Pn={slot:"headline"},Gn=["onClick"],Wn={slot:"headline"},jn={class:"menu-items"},Jn=["onClick","selected"],Xn={slot:"headline"},Yn={key:0,class:"scroller"},Zn={class:"start"},es=Nn(()=>t("div",{class:"checkbox"},[t("div",{class:"skeleton-checkbox"})],-1)),ts={class:"number"},os=Lo('
',4),ns=["onClick","onMouseover"],ss={class:"start"},as=["onClick","checked"],ls=["onClick","checked"],is={class:"number"},cs=["onClick"],rs={key:0,src:"/ficons/folder.svg",class:"svg"},ds={key:0,class:"svg",src:tt},us=["src","onError"],_s=["src","onError"],ps={key:3,class:"svg",src:tt},hs={class:"title"},ms={class:"subtitle"},vs={key:0},fs={key:1},ks={class:"actions"},gs=["onClick"],ys={slot:"headline"},$s=["onClick"],bs={slot:"headline"},ws={class:"card card-info"},Cs={class:"key-value vertical"},Ts={class:"key"},qs={class:"value"},Is=["onClick"],Ds={slot:"headline"},Ss=["onClick"],Vs={slot:"headline"},Fs=["onClick"],Es={slot:"headline"},Ls=["onClick"],Bs={slot:"headline"},Ns=["onClick"],Ms={slot:"headline"},zs={key:1,class:"no-data-placeholder"},Qe=1e4,Hs=Pe({__name:"FilesView",setup(y){var Me;const{t:v}=io(),A=T([]),{parseQ:G,buildQ:W}=Ze(),c=We({linkName:"",showHidden:!1,text:"",parent:""}),E=yo().query,L=T(""),g=T([]),{selectedIds:w,allChecked:U,realAllChecked:N,clearSelection:I,toggleAllChecked:K,toggleSelect:D,total:S,checked:R,shiftEffectingIds:x,handleItemClick:j,handleMouseOver:J,selectAll:ot,shouldSelect:nt}=Xo(g),{keyDown:pe,keyUp:he}=Yo(S,ot,I,()=>{}),X=T(!1),Y=T(!1),me=T([]),ve=T([]),st=e=>{me.value.push(e)},at=e=>{ve.value.push(e)},lt=Bo(),fe=Ge(),{fileSortBy:Z}=de(fe),ke=co(),{app:ge,urlTokenKey:M,uploads:ee}=de(ke),{selectedFiles:it,isCut:ct}=de(Bn()),{dropping:rt,fileDragEnter:ye,fileDragLeave:$e,dropFiles:dt}=ro(ee),O=He(()=>No(c.linkName,ge.value)),{createPath:ut,createVariables:_t,createMutation:pt}=uo(M,g),{renameItem:ht,renameDone:mt,renameMutation:vt,renameVariables:ft}=_o(()=>{z()}),{internal:be,sdcard:we,usb:kt,refetch:te}=po(),{downloadFile:oe,downloadDir:gt,downloadFiles:yt}=$o(M),{view:Ce}=xo(A,(e,o)=>{ke.lightbox={sources:e,index:o,visible:!0}}),$t=T(parseInt(((Me=E.page)==null?void 0:Me.toString())??"1")),bt=He(()=>{const e=[];let o=c.parent;for(;o&&o!==O.value;)e.unshift({path:o,name:Mo(o)}),o=o.substring(0,o.lastIndexOf("/"));return e.unshift({path:O.value,name:Lt()}),e}),Te=T(!0),{loading:ne,fetch:z}=ho({handle:async(e,o)=>{if(Te.value=!1,X.value=!1,Y.value=!1,o)bo(v(o),"error");else{const C=[];for(const m of e.files)C.push(wo(m,M.value));g.value=C,S.value=C.length}},document:Co,variables:()=>({root:O.value,offset:($t.value-1)*Qe,limit:Qe,query:L.value,sortBy:Z.value}),options:{fetchPolicy:"cache-and-network"},appApi:!0}),{loading:wt,canPaste:qe,copy:se,cut:Ie,paste:ae}=mo(g,ct,it,z,te),{input:Ct,upload:Tt,uploadChanged:De}=Ae(ee),{input:qt,upload:It,uploadChanged:Se}=Ae(ee),{loading:Dt,mutate:St,onDone:Vt}=vo({document:To,appApi:!0});Vt(e=>{yt(e.data.setTempValue.key),I()});const Ft=()=>{St({key:zo(),value:JSON.stringify(w.value.map(e=>({path:e})))})},le=e=>{e.forEach(o=>{Oo(g.value,C=>C.id===o.id)}),I(),te()},Et=()=>{Q(Ue,{files:g.value.filter(e=>w.value.includes(e.id)),onDone:e=>{le(e)}})};function Lt(){if(c.linkName==="sdcard")return v("sdcard");if(c.linkName==="app")return v("app_name");if(c.linkName.startsWith("usb")){const e=parseInt(c.linkName.substring(3));return`${v("usb_storage")} ${e}`}return v("internal_storage")}function Ve(){var e,o,C,m;if(c.linkName==="sdcard")return`${v("storage_free_total",{free:F(((e=we.value)==null?void 0:e.freeBytes)??0),total:F(((o=we.value)==null?void 0:o.totalBytes)??0)})}`;if(c.linkName==="app")return v("app_name");if(c.linkName.startsWith("usb")){const ce=parseInt(c.linkName.substring(3)),q=kt.value[ce-1];return`${v("storage_free_total",{free:F((q==null?void 0:q.freeBytes)??0),total:F((q==null?void 0:q.totalBytes)??0)})}`}return`${F(((C=be.value)==null?void 0:C.freeBytes)??0)} / ${F(((m=be.value)==null?void 0:m.totalBytes)??0,!0,0)}`}function ie(e){I(),c.parent=e;const o=W(c);Je(fe,Fe(o))}function Fe(e){return`/files?q=${e}`}function Bt(e){if(e.isDir){ie(e.path);return}Ke(e.name)?window.open(Re(M.value,e.path),"_blank"):xe(e.name)?Ce(g.value,e):oe(e.path)}function Nt(e,o){o.isDir||(e.stopPropagation(),Ke(o.name)?window.open(Re(M.value,o.path),"_blank"):xe(o.name)?Ce(g.value,o):oe(o.path))}function Mt(e,o){Y.value=!0,Z.value=o,e.close()}function zt(){X.value=!0,z()}const Ht=()=>{ut.value=c.parent,Q(Oe,{title:v("name"),placeholder:v("name"),mutation:pt,getVariables:_t})};function Ee(e,o){Tt(o),e.close()}function Le(e,o){It(o),e.close()}function At(){se(w.value),I()}function Ut(){Ie(w.value),I()}function Kt(){ae(c.parent)}function Rt(e,o){se([o.id]),ae(c.parent),e.close()}function xt(e,o){Ie([o.id]),e.close()}function Ot(e,o){se([o.id]),e.close()}function Qt(e,o){ae(o.path),e.close()}function Pt(e,o){ht.value=o,Q(Oe,{title:v("rename"),placeholder:v("name"),value:o.name,mutation:vt,getVariables:ft,done:mt}),e.close()}function Gt(e){Q(Ue,{files:[e],onDone:le})}const Be=e=>{e.status==="done"&&setTimeout(()=>{z(),te()},1e3)},Ne=e=>{le([e.item])};function Wt(e){dt(e,c.parent)}return fo(()=>{var e;L.value=Ho(((e=E.q)==null?void 0:e.toString())??""),G(c,L.value),z(),P.on("upload_task_done",Be),P.on("file_deleted",Ne),window.addEventListener("keydown",pe),window.addEventListener("keyup",he)}),ko(()=>{P.off("upload_task_done",Be),P.off("file_deleted",Ne),window.removeEventListener("keydown",pe),window.removeEventListener("keyup",he)}),(e,o)=>{const C=Ln,m=Jo,ce=Dn,q=Ao,re=Uo,jt=wn,Jt=nn,ze=Wo,H=qo,Xt=Go,Yt=Po,Zt=Qo,eo=Ko,to=Ro,oo=no,f=je("tooltip");return n(),l($,null,[t("div",Mn,[t("md-checkbox",{"touch-target":"wrapper",onChange:o[0]||(o[0]=(...i)=>s(K)&&s(K)(...i)),checked:s(U),indeterminate:!s(U)&&s(R)},null,40,zn),s(w).length?(n(),l("span",Hn,r(e.$t("x_selected",{count:s(N)?s(S).toLocaleString():s(w).length.toLocaleString()})),1)):(n(),l("div",An,[(n(!0),l($,null,ue(bt.value,(i,a)=>(n(),l($,{key:i.path},[a===0?(n(),l($,{key:0},[i.path===c.parent?h((n(),l("span",Un,[_e(r(i.name)+" ("+r(s(S))+")",1)])),[[f,Ve()]]):h((n(),l("a",{key:1,href:"#",onClick:_(d=>ie(i.path),["stop","prevent"])},[_e(r(i.name),1)],8,Kn)),[[f,Ve()]])],64)):(n(),l($,{key:1},[i.path===c.parent?(n(),l("span",Rn,r(i.name)+" ("+r(s(S))+")",1)):(n(),l("a",{key:1,href:"#",onClick:_(d=>ie(i.path),["stop","prevent"])},r(i.name),9,xn))],64))],64))),128))])),s(R)?(n(),l($,{key:2},[h((n(),k(m,{onClick:_(At,["stop"])},{icon:u(()=>[p(C)]),_:1})),[[f,e.$t("copy")]]),h((n(),k(m,{onClick:_(Ut,["stop"])},{icon:u(()=>[p(ce)]),_:1})),[[f,e.$t("cut")]]),h((n(),k(m,{onClick:_(Et,["stop"])},{icon:u(()=>[p(q)]),_:1})),[[f,e.$t("delete")]]),h((n(),k(m,{loading:s(Dt),onClick:_(Ft,["stop"])},{icon:u(()=>[p(re)]),_:1},8,["loading"])),[[f,e.$t("download")]])],64)):V("",!0),t("div",On,[p(jt,{filter:c,parent:O.value,"get-url":Fe},null,8,["filter","parent"]),h((n(),k(m,{onClick:Ht},{icon:u(()=>[p(Jt)]),_:1})),[[f,e.$t("create_folder")]]),p(H,null,{content:u(i=>[t("md-menu-item",{onClick:_(a=>Ee(i,c.parent),["stop"])},[t("div",Pn,r(e.$t("upload_files")),1)],8,Qn),t("md-menu-item",{onClick:_(a=>Le(i,c.parent),["stop"])},[t("div",Wn,r(e.$t("upload_folder")),1)],8,Gn)]),default:u(()=>[h((n(),k(m,null,{icon:u(()=>[p(ze)]),_:1})),[[f,e.$t("upload")]])]),_:1}),s(qe)()?h((n(),k(m,{key:0,loading:s(wt),onClick:Kt},{icon:u(()=>[p(Xt)]),_:1},8,["loading"])),[[f,e.$t("paste")]]):V("",!0),h((n(),k(m,{loading:X.value,onClick:zt},{icon:u(()=>[p(Yt)]),_:1},8,["loading"])),[[f,e.$t("refresh")]]),p(H,null,{content:u(i=>[t("div",jn,[(n(!0),l($,null,ue(s(lt),a=>(n(),l("md-menu-item",{onClick:d=>Mt(i,a.value),key:a.value,selected:a.value===s(Z)},[t("div",Xn,r(e.$t(a.label)),1)],8,Jn))),128))])]),default:u(()=>[h((n(),k(m,{loading:Y.value},{icon:u(()=>[p(Zt)]),_:1},8,["loading"])),[[f,e.$t("sort")]])]),_:1})])]),s(ne)&&Te.value?(n(),l("div",Yn,[(n(),l($,null,ue(20,i=>t("section",{class:"file-item selectable-card-skeleton",key:i},[t("div",Zn,[es,t("span",ts,r(i),1)]),os])),64))])):V("",!0),t("div",{class:"scroller-wrapper",onDragover:o[4]||(o[4]=_((...i)=>s(ye)&&s(ye)(...i),["stop","prevent"]))},[h(t("div",{class:"drag-mask",onDrop:_(Wt,["stop","prevent"]),onDragleave:o[1]||(o[1]=_((...i)=>s($e)&&s($e)(...i),["stop","prevent"]))},r(e.$t("release_to_send_files")),545),[[go,s(rt)]]),g.value.length>0?(n(),k(s(Fo),{key:0,class:"scroller","data-key":"id","data-sources":g.value,"estimate-size":80},{item:u(({index:i,item:a})=>[t("section",{class:Io(["file-item selectable-card",{selected:s(w).includes(a.id),selecting:s(x).includes(a.id)}]),onClick:_(d=>s(j)(d,a,i,()=>{Bt(a)}),["stop"]),onMouseover:d=>s(J)(d,i)},[t("div",ss,[s(x).includes(a.id)?(n(),l("md-checkbox",{key:0,class:"checkbox","touch-target":"wrapper",onClick:_(d=>s(D)(d,a,i),["stop"]),checked:s(nt)},null,8,as)):(n(),l("md-checkbox",{key:1,class:"checkbox","touch-target":"wrapper",onClick:_(d=>s(D)(d,a,i),["stop"]),checked:s(w).includes(a.id)},null,8,ls)),t("span",is,[p(eo,{id:i+1,raw:a},null,8,["id","raw"])])]),t("div",{class:"image",onClick:d=>Nt(d,a)},[a.isDir?(n(),l("img",rs)):(n(),l($,{key:1},[ve.value.includes(a.id)?(n(),l("img",ds)):!me.value.includes(a.id)&&a.fileId?(n(),l("img",{key:1,class:"image-thumb",src:s(Do)(a.fileId,"&w=50&h=50"),onError:d=>st(a.id)},null,40,us)):a.extension?(n(),l("img",{key:2,src:`/ficons/${a.extension}.svg`,class:"svg",onError:d=>at(a.id)},null,40,_s)):(n(),l("img",ps))],64))],8,cs),t("div",hs,r(a.name),1),t("div",ms,[a.isDir?(n(),l("span",vs,r(e.$t("x_items",a.children)),1)):(n(),l("span",fs,r(s(F)(a.size)),1)),h((n(),l("span",null,[_e(r(s(Vo)(a.updatedAt)),1)])),[[f,s(So)(a.updatedAt)]])]),t("div",ks,[a.isDir?(n(),l($,{key:0},[h((n(),k(m,{class:"sm",onClick:_(d=>s(gt)(a.path),["stop"])},{icon:u(()=>[p(re)]),_:2},1032,["onClick"])),[[f,e.$t("download")]]),p(H,null,{content:u(d=>[t("md-menu-item",{onClick:_(B=>Ee(d,a.path),["stop"])},[t("div",ys,r(e.$t("upload_files")),1)],8,gs),t("md-menu-item",{onClick:_(B=>Le(d,a.path),["stop"])},[t("div",bs,r(e.$t("upload_folder")),1)],8,$s)]),default:u(()=>[h((n(),k(m,{class:"sm"},{icon:u(()=>[p(ze)]),_:1})),[[f,e.$t("upload")]])]),_:2},1024)],64)):h((n(),k(m,{key:1,class:"sm",onClick:_(d=>s(oe)(a.path),["stop"])},{icon:u(()=>[p(re)]),_:2},1032,["onClick"])),[[f,e.$t("download")]]),h((n(),k(m,{class:"sm",onClick:_(d=>Gt(a),["stop"])},{icon:u(()=>[p(q)]),_:2},1032,["onClick"])),[[f,e.$t("delete")]]),p(H,null,{content:u(()=>[t("section",ws,[t("div",Cs,[t("div",Ts,r(e.$t("path")),1),t("div",qs,r(a.path),1)])])]),default:u(()=>[h((n(),k(m,{class:"sm"},{icon:u(()=>[p(to)]),_:1})),[[f,e.$t("info")]])]),_:2},1024),p(H,null,{content:u(d=>[t("md-menu-item",{onClick:_(B=>Rt(d,a),["stop"])},[t("div",Ds,r(e.$t("duplicate")),1)],8,Is),t("md-menu-item",{onClick:_(B=>xt(d,a),["stop"])},[t("div",Vs,r(e.$t("cut")),1)],8,Ss),t("md-menu-item",{onClick:_(B=>Ot(d,a),["stop"])},[t("div",Es,r(e.$t("copy")),1)],8,Fs),a.isDir&&s(qe)()?(n(),l("md-menu-item",{key:0,onClick:_(B=>Qt(d,a),["stop"])},[t("div",Bs,r(e.$t("paste")),1)],8,Ls)):V("",!0),t("md-menu-item",{onClick:_(B=>Pt(d,a),["stop"])},[t("div",Ms,r(e.$t("rename")),1)],8,Ns)]),default:u(()=>[h((n(),k(m,{class:"sm"},{icon:u(()=>[p(oo)]),_:1})),[[f,e.$t("actions")]])]),_:2},1024)])],42,ns)]),_:1},8,["data-sources"])):V("",!0),!s(ne)&&g.value.length===0?(n(),l("div",zs,r(e.$t(s(Eo)(s(ne),s(ge).permissions,"WRITE_EXTERNAL_STORAGE"))),1)):V("",!0),t("input",{ref_key:"fileInput",ref:Ct,style:{display:"none"},type:"file",multiple:"",onChange:o[2]||(o[2]=(...i)=>s(De)&&s(De)(...i))},null,544),t("input",{ref_key:"dirFileInput",ref:qt,style:{display:"none"},type:"file",multiple:"",webkitdirectory:"",mozdirectory:"",directory:"",onChange:o[3]||(o[3]=(...i)=>s(Se)&&s(Se)(...i))},null,544)],32)],64)}}}),Xs=et(Hs,[["__scopeId","data-v-ecafc752"]]);export{Xs as default}; diff --git a/app/src/main/resources/web/assets/HomeView-nno0lqBn.js b/app/src/main/resources/web/assets/HomeView-B6EJgDUt.js similarity index 97% rename from app/src/main/resources/web/assets/HomeView-nno0lqBn.js rename to app/src/main/resources/web/assets/HomeView-B6EJgDUt.js index 6fed44d4..791fdba5 100644 --- a/app/src/main/resources/web/assets/HomeView-nno0lqBn.js +++ b/app/src/main/resources/web/assets/HomeView-B6EJgDUt.js @@ -1 +1 @@ -import{_ as P}from"./content-paste-rounded-CbiavvwV.js";import{b as K,o as l,c as _,a as t,d as M,u as B,r as R,t as T,n as U,e as b,w as y,f as J,g as W,s as w,h as X,i as Y,j as Z,k as tt,l as et,m as a,p as e,q as r,v as $,x as ot,y as nt,z as st,A as at,B as it,C as ct,D as lt,E as V,F as _t,G as rt,_ as mt,H as dt}from"./index-B-S542RM.js";import{_ as ut}from"./contact-page-outline-rounded-BW4vyYSZ.js";import{_ as ht}from"./rss-feed-rounded-DzJ3TVan.js";function Tt(o,i){for(var m,d=-1,u=o.length;++d(l(),_("a",{class:"btn-feature",href:m.path,onClick:h[0]||(h[0]=y(s=>d(m.path),["prevent","stop"]))},[R(u.$slots,"icon"),t("div",v1,[t("span",f1,T(u.$t(m.name)),1),m.count!==void 0?(l(),_("span",{key:0,class:"count",style:U({visibility:m.count>=0?"visible":"hidden"})},T(o.count.toLocaleString()),5)):b("",!0)])],8,q1))}}),b1=o=>(_t("data-v-ae827efe"),o=o(),rt(),o),$1={class:"grids"},y1={class:"card"},z1={class:"card-title"},w1={key:0,class:"total-bytes"},V1={class:"card-body"},C1={class:"card"},M1={class:"card-title"},B1={class:"card-body"},x1={class:"card"},S1={class:"card-title"},k1={class:"card-body"},H1={class:"card"},L1={class:"card-title"},E1={class:"card-body form-row"},G1=["label","error","error-text"],N1=b1(()=>t("md-ripple",null,null,-1)),I1=["disabled"],O1=M({__name:"HomeView",setup(o){const{t:i}=W(),m=B(),{callNumber:d}=w(m),u=X(!1),{app:h,counter:s}=w(Y());function x(){navigator.clipboard.readText().then(n=>{d.value=n})}const{mutate:S,loading:k}=Z({document:it,appApi:!0}),z=()=>{if(!d.value){u.value=!0;return}S({number:d.value})};return tt(d,()=>{u.value=!1}),et({handle:(n,p)=>{if(p)ct(i(p),"error");else if(n){s.value.messages=n.messageCount,s.value.contacts=n.contactCount,s.value.calls=n.callCount,s.value.videos=n.videoCount,s.value.images=n.imageCount,s.value.audios=n.audioCount,s.value.packages=n.packageCount,s.value.notes=n.noteCount,s.value.feedEntries=n.feedEntryCount;let q=n.storageStats.internal.totalBytes,c=n.storageStats.internal.freeBytes;const v=n.storageStats.sdcard;v&&(q+=v.totalBytes,c+=v.freeBytes);const f=n.storageStats.usb;f.length&&(q+=C(f,g=>g.totalBytes),c+=C(f,g=>g.freeBytes)),s.value.total=q,s.value.free=c}},document:lt,variables:null,appApi:!0}),(n,p)=>{const q=mt,c=g1,v=p1,f=m1,g=i1,H=e1,L=Wt,E=ht,G=Pt,N=Qt,I=ut,O=Et,Q=xt,j=wt,A=gt,D=P;return l(),_("div",$1,[t("section",y1,[t("h5",z1,[t("span",null,T(n.$t("storage")),1),a(s).total>=0?(l(),_("span",w1,T(n.$t("storage_free_total",{free:a(V)(a(s).free),total:a(V)(a(s).total)})),1)):b("",!0)]),t("div",V1,[e(c,{name:"images",count:a(s).images,path:"/images"},{icon:r(()=>[e(q)]),_:1},8,["count"]),e(c,{name:"audios",count:a(s).audios,path:"/audios"},{icon:r(()=>[e(v)]),_:1},8,["count"]),e(c,{name:"videos",count:a(s).videos,path:"/videos"},{icon:r(()=>[e(f)]),_:1},8,["count"]),a(h).channel!=="GOOGLE"?(l(),$(c,{key:0,name:"apps",count:a(s).packages,path:"/apps"},{icon:r(()=>[e(g)]),_:1},8,["count"])):b("",!0),e(c,{name:"files",path:"/files/recent"},{icon:r(()=>[e(H)]),_:1})])]),t("section",C1,[t("h5",M1,T(n.$t("work")),1),t("div",B1,[e(c,{name:"page_title.notes",count:a(s).notes,path:"/notes"},{icon:r(()=>[e(L)]),_:1},8,["count"]),e(c,{name:"page_title.feeds",count:a(s).feedEntries,path:"/feeds"},{icon:r(()=>[e(E)]),_:1},8,["count"]),a(h).channel!=="GOOGLE"?(l(),$(c,{key:0,name:"messages",count:a(s).messages,path:"/messages"},{icon:r(()=>[e(G)]),_:1},8,["count"])):b("",!0),a(h).channel!=="GOOGLE"?(l(),$(c,{key:1,name:"calls",count:a(s).calls,path:"/calls"},{icon:r(()=>[e(N)]),_:1},8,["count"])):b("",!0),e(c,{name:"contacts",count:a(s).contacts,path:"/contacts"},{icon:r(()=>[e(I)]),_:1},8,["count"])])]),t("section",x1,[t("h5",S1,T(n.$t("tools")),1),t("div",k1,[e(c,{name:"screen_mirror",path:"/screen-mirror"},{icon:r(()=>[e(O)]),_:1}),e(c,{name:"device_info",path:"/device-info"},{icon:r(()=>[e(Q)]),_:1}),e(c,{name:"qrcode_generator",path:"/qrcode-generator"},{icon:r(()=>[e(j)]),_:1}),e(c,{name:"json_viewer",path:"/json-viewer"},{icon:r(()=>[e(A)]),_:1})])]),t("section",H1,[t("h5",L1,T(n.$t("call_phone")),1),t("div",E1,[ot(t("md-outlined-text-field",{type:"tel",label:n.$t("phone_number"),class:"form-control flex-3","onUpdate:modelValue":p[0]||(p[0]=F=>st(d)?d.value=F:null),error:u.value,"error-text":n.$t("valid.required"),onKeyup:at(z,["enter"])},[t("button",{class:"btn-icon",slot:"trailing-icon",onClick:y(x,["prevent"])},[N1,e(D)])],40,G1),[[nt,a(d)]]),t("md-filled-button",{class:"btn-lg",onClick:y(z,["prevent"]),disabled:a(k)},T(n.$t("call")),9,I1)])])])}}}),F1=dt(O1,[["__scopeId","data-v-ae827efe"]]);export{F1 as default}; +import{_ as P}from"./content-paste-rounded--YFEOBZV.js";import{b as K,o as l,c as _,a as t,d as M,u as B,r as R,t as T,n as U,e as b,w as y,f as J,g as W,s as w,h as X,i as Y,j as Z,k as tt,l as et,m as a,p as e,q as r,v as $,x as ot,y as nt,z as st,A as at,B as it,C as ct,D as lt,E as V,F as _t,G as rt,_ as mt,H as dt}from"./index-BXOWKrmL.js";import{_ as ut}from"./contact-page-outline-rounded-Dn3mmffA.js";import{_ as ht}from"./rss-feed-rounded-DN7yBBrR.js";function Tt(o,i){for(var m,d=-1,u=o.length;++d(l(),_("a",{class:"btn-feature",href:m.path,onClick:h[0]||(h[0]=y(s=>d(m.path),["prevent","stop"]))},[R(u.$slots,"icon"),t("div",v1,[t("span",f1,T(u.$t(m.name)),1),m.count!==void 0?(l(),_("span",{key:0,class:"count",style:U({visibility:m.count>=0?"visible":"hidden"})},T(o.count.toLocaleString()),5)):b("",!0)])],8,q1))}}),b1=o=>(_t("data-v-ae827efe"),o=o(),rt(),o),$1={class:"grids"},y1={class:"card"},z1={class:"card-title"},w1={key:0,class:"total-bytes"},V1={class:"card-body"},C1={class:"card"},M1={class:"card-title"},B1={class:"card-body"},x1={class:"card"},S1={class:"card-title"},k1={class:"card-body"},H1={class:"card"},L1={class:"card-title"},E1={class:"card-body form-row"},G1=["label","error","error-text"],N1=b1(()=>t("md-ripple",null,null,-1)),I1=["disabled"],O1=M({__name:"HomeView",setup(o){const{t:i}=W(),m=B(),{callNumber:d}=w(m),u=X(!1),{app:h,counter:s}=w(Y());function x(){navigator.clipboard.readText().then(n=>{d.value=n})}const{mutate:S,loading:k}=Z({document:it,appApi:!0}),z=()=>{if(!d.value){u.value=!0;return}S({number:d.value})};return tt(d,()=>{u.value=!1}),et({handle:(n,p)=>{if(p)ct(i(p),"error");else if(n){s.value.messages=n.messageCount,s.value.contacts=n.contactCount,s.value.calls=n.callCount,s.value.videos=n.videoCount,s.value.images=n.imageCount,s.value.audios=n.audioCount,s.value.packages=n.packageCount,s.value.notes=n.noteCount,s.value.feedEntries=n.feedEntryCount;let q=n.storageStats.internal.totalBytes,c=n.storageStats.internal.freeBytes;const v=n.storageStats.sdcard;v&&(q+=v.totalBytes,c+=v.freeBytes);const f=n.storageStats.usb;f.length&&(q+=C(f,g=>g.totalBytes),c+=C(f,g=>g.freeBytes)),s.value.total=q,s.value.free=c}},document:lt,variables:null,appApi:!0}),(n,p)=>{const q=mt,c=g1,v=p1,f=m1,g=i1,H=e1,L=Wt,E=ht,G=Pt,N=Qt,I=ut,O=Et,Q=xt,j=wt,A=gt,D=P;return l(),_("div",$1,[t("section",y1,[t("h5",z1,[t("span",null,T(n.$t("storage")),1),a(s).total>=0?(l(),_("span",w1,T(n.$t("storage_free_total",{free:a(V)(a(s).free),total:a(V)(a(s).total)})),1)):b("",!0)]),t("div",V1,[e(c,{name:"images",count:a(s).images,path:"/images"},{icon:r(()=>[e(q)]),_:1},8,["count"]),e(c,{name:"audios",count:a(s).audios,path:"/audios"},{icon:r(()=>[e(v)]),_:1},8,["count"]),e(c,{name:"videos",count:a(s).videos,path:"/videos"},{icon:r(()=>[e(f)]),_:1},8,["count"]),a(h).channel!=="GOOGLE"?(l(),$(c,{key:0,name:"apps",count:a(s).packages,path:"/apps"},{icon:r(()=>[e(g)]),_:1},8,["count"])):b("",!0),e(c,{name:"files",path:"/files/recent"},{icon:r(()=>[e(H)]),_:1})])]),t("section",C1,[t("h5",M1,T(n.$t("work")),1),t("div",B1,[e(c,{name:"page_title.notes",count:a(s).notes,path:"/notes"},{icon:r(()=>[e(L)]),_:1},8,["count"]),e(c,{name:"page_title.feeds",count:a(s).feedEntries,path:"/feeds"},{icon:r(()=>[e(E)]),_:1},8,["count"]),a(h).channel!=="GOOGLE"?(l(),$(c,{key:0,name:"messages",count:a(s).messages,path:"/messages"},{icon:r(()=>[e(G)]),_:1},8,["count"])):b("",!0),a(h).channel!=="GOOGLE"?(l(),$(c,{key:1,name:"calls",count:a(s).calls,path:"/calls"},{icon:r(()=>[e(N)]),_:1},8,["count"])):b("",!0),e(c,{name:"contacts",count:a(s).contacts,path:"/contacts"},{icon:r(()=>[e(I)]),_:1},8,["count"])])]),t("section",x1,[t("h5",S1,T(n.$t("tools")),1),t("div",k1,[e(c,{name:"screen_mirror",path:"/screen-mirror"},{icon:r(()=>[e(O)]),_:1}),e(c,{name:"device_info",path:"/device-info"},{icon:r(()=>[e(Q)]),_:1}),e(c,{name:"qrcode_generator",path:"/qrcode-generator"},{icon:r(()=>[e(j)]),_:1}),e(c,{name:"json_viewer",path:"/json-viewer"},{icon:r(()=>[e(A)]),_:1})])]),t("section",H1,[t("h5",L1,T(n.$t("call_phone")),1),t("div",E1,[ot(t("md-outlined-text-field",{type:"tel",label:n.$t("phone_number"),class:"form-control flex-3","onUpdate:modelValue":p[0]||(p[0]=F=>st(d)?d.value=F:null),error:u.value,"error-text":n.$t("valid.required"),onKeyup:at(z,["enter"])},[t("button",{class:"btn-icon",slot:"trailing-icon",onClick:y(x,["prevent"])},[N1,e(D)])],40,G1),[[nt,a(d)]]),t("md-filled-button",{class:"btn-lg",onClick:y(z,["prevent"]),disabled:a(k)},T(n.$t("call")),9,I1)])])])}}}),F1=dt(O1,[["__scopeId","data-v-ae827efe"]]);export{F1 as default}; diff --git a/app/src/main/resources/web/assets/IconButton.vuevuetypescriptsetuptruelang-CxW8gnDA.js b/app/src/main/resources/web/assets/IconButton.vuevuetypescriptsetuptruelang-CxW8gnDA.js deleted file mode 100644 index 263ddbea..00000000 --- a/app/src/main/resources/web/assets/IconButton.vuevuetypescriptsetuptruelang-CxW8gnDA.js +++ /dev/null @@ -1 +0,0 @@ -import{d as s,o,c as n,r as a,a as c}from"./index-B-S542RM.js";const l=["disabled"],r=c("md-ripple",null,null,-1),d={key:0,indeterminate:""},m=s({__name:"IconButton",props:{loading:{type:Boolean}},setup(e){return(t,i)=>(o(),n("button",{class:"btn-icon",disabled:e.loading},[r,e.loading?(o(),n("md-circular-progress",d)):a(t.$slots,"icon",{key:1})],8,l))}});export{m as _}; diff --git a/app/src/main/resources/web/assets/ImagesSidebar-CTMKgbRD.js b/app/src/main/resources/web/assets/ImagesSidebar-CTMKgbRD.js new file mode 100644 index 00000000..704bc6d3 --- /dev/null +++ b/app/src/main/resources/web/assets/ImagesSidebar-CTMKgbRD.js @@ -0,0 +1 @@ +import{_ as t}from"./MediaSidebar.vuevuetypescriptsetuptruelang-BnNr5Ols.js";import{d as a,v as r,m as e,o as m,J as p,aX as n}from"./index-BXOWKrmL.js";import"./LeftSidebar.vuevuetypescriptsetuptruelang-qrlto0-t.js";import"./TagFilter.vuevuetypescriptsetuptruelang-F0HSGzO6.js";import"./more-vert-B_3Etgle.js";import"./EditValueModal-HQ024-FF.js";import"./vee-validate.esm-Bmkx0D8v.js";import"./search-B-8eugyA.js";const k=a({__name:"ImagesSidebar",setup(s){return(i,_)=>{const o=t;return m(),r(o,{type:e(p).IMAGE,gql:e(n)},null,8,["type","gql"])}}});export{k as default}; diff --git a/app/src/main/resources/web/assets/ImagesSidebar-DfZzf2UQ.js b/app/src/main/resources/web/assets/ImagesSidebar-DfZzf2UQ.js deleted file mode 100644 index 2127dc90..00000000 --- a/app/src/main/resources/web/assets/ImagesSidebar-DfZzf2UQ.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e}from"./MediaSidebar.vuevuetypescriptsetuptruelang-BEpTuoep.js";import{d as a,v as r,m as o,o as m,J as p,aP as i}from"./index-B-S542RM.js";import"./LeftSidebar.vuevuetypescriptsetuptruelang-Bkp0VFG-.js";import"./TagFilter.vuevuetypescriptsetuptruelang-DXYEFTYG.js";import"./more-vert-XZtlvs7x.js";import"./EditValueModal-u3M261_O.js";import"./vee-validate.esm-D5u4WlYW.js";import"./search-k8SzNgo1.js";import"./feature-Cs4tKJbl.js";const q=a({__name:"ImagesSidebar",setup(n){return(s,_)=>{const t=e;return m(),r(t,{type:o(p).IMAGE,gql:o(i)},null,8,["type","gql"])}}});export{q as default}; diff --git a/app/src/main/resources/web/assets/ImagesView-BVWs9mJH.js b/app/src/main/resources/web/assets/ImagesView-BVWs9mJH.js deleted file mode 100644 index 1a7f769e..00000000 --- a/app/src/main/resources/web/assets/ImagesView-BVWs9mJH.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as fo}from"./VPagination.vuevuetypescriptsetuptruelang-DUdPyPtr.js";import{_ as Co,a as $o,b as bo,c as wo,d as Io}from"./grid-view-outline-rounded-0fx6hZgv.js";import{d as Do,u as To,s as Ue,h as G,g as So,I as Ao,i as Eo,ag as Be,aD as Fo,J as Mo,aE as Lo,aF as Re,aG as Vo,ah as zo,K as qo,L as Uo,M as Bo,c as p,a as r,m as e,t as y,O as f,x as u,v as i,q as d,w as a,e as M,p as l,aH as Ro,N as B,P as O,Q as No,aI as Ho,f as Ko,C as Po,aJ as Qo,aK as Go,am as Oo,S as Jo,o as t,aL as re,aA as ue,aM as L,E as Ne,U as Wo,V as Xo,W as jo,X as Zo,ap as Yo,ao as xo,Z as es,$ as os,a0 as ss,a1 as V,ae as ts,aq as ns,a2 as as,aN as ls,a4 as is,a3 as cs,aO as ds}from"./index-B-S542RM.js";import{_ as rs,a as us,b as _s}from"./SearchInput-D0d2xIiv.js";import{_ as ps}from"./sort-rounded-BVzv_GA2.js";import{_ as ms}from"./upload-rounded-_5wwNL4r.js";import{_ as ks}from"./restore-from-trash-outline-rounded-Ck6P-VkW.js";import{_ as gs}from"./IconButton.vuevuetypescriptsetuptruelang-CxW8gnDA.js";import{u as vs}from"./search-k8SzNgo1.js";import{a as hs}from"./tags-x91i2rzh.js";import{u as ys,a as fs}from"./key-events-D1Kh05Em.js";import{u as Cs,a as $s}from"./media-trash-C0Lwc6-9.js";import{h as _e}from"./feature-Cs4tKJbl.js";import"./search-rounded-TCa6qTC1.js";import"./rss-feed-rounded-DzJ3TVan.js";import"./vee-validate.esm-D5u4WlYW.js";const bs={class:"top-app-bar"},ws=["checked","indeterminate"],Is={class:"title"},Ds={key:0},Ts={key:1},Ss={class:"actions"},As=["onClick"],Es={slot:"headline"},Fs=["onClick"],Ms={slot:"headline"},Ls={class:"menu-items"},Vs=["onClick","selected"],zs={slot:"headline"},qs={class:"sm"},Us=["selected"],Bs=["selected"],Rs=["onClick","onMouseover"],Ns=["src"],Hs={key:1,class:"actions"},Ks={class:"right"},Ps=["onClick","onMouseover"],Qs={class:"start"},Gs=["onClick","checked"],Os=["onClick","checked"],Js={class:"number"},Ws=["src"],Xs={class:"title"},js={class:"subtitle"},Zs=["onClick"],Ys={class:"actions"},xs={class:"time"},et={key:2,class:"no-data-placeholder"},T=55,ht=Do({__name:"ImagesView",setup(ot){var Le;const I=To(),{imageSortBy:J}=Ue(I),D=G([]),{t:He}=So(),{parseQ:Ke}=vs(),S=Ao({tagIds:[]}),pe=Eo(),{app:z,urlTokenKey:W,uploads:X}=Ue(pe),{input:Pe,upload:Qe,uploadChanged:me}=Be(X),{input:Ge,upload:Oe,uploadChanged:ke}=Be(X),{dropping:Je,fileDragEnter:ge,fileDragLeave:ve,dropFiles:We}=Fo(X),j=G(!1),k=Mo.IMAGE,he=No(),ye=he.query,Z=G(parseInt(((Le=ye.page)==null?void 0:Le.toString())??"1")),{tags:R,buckets:Y,fetch:Xe}=Lo(k),je=Re(()=>{const o={};return Y.value.forEach(n=>{o[n.id]=n}),o}),$=G(""),{addToTags:Ze}=hs(k,R),{deleteItems:x,deleteItem:N}=Vo(),{view:Ye}=Ho(k),{selectedIds:h,allChecked:fe,realAllChecked:w,selectRealAll:xe,allCheckedAlertVisible:eo,clearSelection:A,toggleAllChecked:Ce,toggleSelect:q,total:b,checked:U,shiftEffectingIds:H,handleItemClick:$e,handleMouseOver:be,selectAll:oo,shouldSelect:we}=ys(D),{downloadItems:Ie}=zo(W,k,A,"images.zip"),{downloadFile:K}=Yo(W),De=o=>{const n=he.query.q;Ko(I,n?`/images?page=${o}&q=${n}`:`/images?page=${o}`)},{keyDown:Te,keyUp:Se}=fs(b,T,Z,oo,A,De,()=>{x(k,h.value,w.value,b.value,$.value)}),so=xo(),to=Re(()=>D.value.map(o=>({src:ue(o.fileId),name:L(o.path),duration:0,size:o.size,path:o.path,type:k,data:o})));function ee(o){pe.lightbox={sources:to.value,index:o,visible:!0}}const P=()=>{let o=$.value;return w.value||(o=`ids:${h.value.join(",")}`),o};function Ae(o){es(os,{type:k,tags:R.value,item:{key:o.id,title:o.title,size:o.size},selected:R.value.filter(n=>o.tags.some(C=>C.id===n.id))})}function no(o,n){j.value=!0,J.value=n,o.close()}const{loading:Q,fetch:E}=qo({handle:async(o,n)=>{if(j.value=!1,n)Po(He(n),"error");else if(o){const C=[];for(const c of o.images)C.push({...c,fileId:Qo(W.value,c.path,c.id)});D.value=C,b.value=o.imageCount}},document:Go,variables:()=>({offset:(Z.value-1)*T,limit:T,query:$.value,sortBy:J.value}),appApi:!0}),{trashLoading:oe,trash:se}=Cs(k,A,E),{restoreLoading:te,restore:ne}=$s(k,A,E);function ao(o){return o?`/images?q=${o}`:"/images"}function ae(){const o=Y.value.find(n=>n.id===S.bucketId);return o?ds(o.topItems[0]):`${z.value.internalStoragePath}/Pictures`}function lo(o){Qe(ae()),o.close()}function io(o){Oe(ae()),o.close()}function co(o){We(o,ae(),"image")}const Ee=o=>{o.type===k&&(A(),E())},Fe=o=>{o.type===k&&E()},Me=o=>{o.type===k&&(A(),E())};return Uo(()=>{var o;$.value=ss(((o=ye.q)==null?void 0:o.toString())??""),Ke(S,$.value),Xe(),E(),V.on("item_tags_updated",Fe),V.on("items_tags_updated",Ee),V.on("media_items_actioned",Me),window.addEventListener("keydown",Te),window.addEventListener("keyup",Se)}),Bo(()=>{V.off("item_tags_updated",Fe),V.off("items_tags_updated",Ee),V.off("media_items_actioned",Me),window.removeEventListener("keydown",Te),window.removeEventListener("keyup",Se)}),(o,n)=>{const C=ts,c=gs,le=ks,F=ns,ie=_s,ce=as,ro=rs,uo=ms,Ve=Oo,_o=ps,po=Co,mo=$o,ko=us,de=bo,ze=wo,go=ls,qe=is,vo=cs,ho=Io,yo=fo,_=Jo("tooltip");return t(),p(f,null,[r("div",bs,[r("md-checkbox",{"touch-target":"wrapper",onChange:n[0]||(n[0]=(...s)=>e(Ce)&&e(Ce)(...s)),checked:e(fe),indeterminate:!e(fe)&&e(U)},null,40,ws),r("div",Is,[e(h).length?(t(),p("span",Ds,y(o.$t("x_selected",{count:e(w)?e(b).toLocaleString():e(h).length.toLocaleString()})),1)):(t(),p("span",Ts,y(o.$t("page_title.images"))+" ("+y(e(b).toLocaleString())+")",1)),e(U)?(t(),p(f,{key:2},[S.trash?(t(),p(f,{key:0},[u((t(),i(c,{onClick:n[1]||(n[1]=a(s=>e(x)(e(k),e(h),e(w),e(b),$.value),["stop"]))},{icon:d(()=>[l(C)]),_:1})),[[_,o.$t("delete")]]),u((t(),i(c,{onClick:n[2]||(n[2]=a(s=>e(ne)(P()),["stop"])),loading:e(te)(P())},{icon:d(()=>[l(le)]),_:1},8,["loading"])),[[_,o.$t("restore")]]),u((t(),i(c,{onClick:n[3]||(n[3]=a(s=>e(Ie)(e(w),e(h),$.value),["stop"]))},{icon:d(()=>[l(F)]),_:1})),[[_,o.$t("download")]])],64)):(t(),p(f,{key:1},[e(_e)(e(re).MEDIA_TRASH,e(z).osVersion)?u((t(),i(c,{key:0,onClick:n[4]||(n[4]=a(s=>e(se)(P()),["stop"])),loading:e(oe)(P())},{icon:d(()=>[l(ie)]),_:1},8,["loading"])),[[_,o.$t("move_to_trash")]]):u((t(),i(c,{key:1,onClick:n[5]||(n[5]=a(s=>e(x)(e(k),e(h),e(w),e(b),$.value),["stop"]))},{icon:d(()=>[l(C)]),_:1})),[[_,o.$t("delete")]]),u((t(),i(c,{onClick:n[6]||(n[6]=a(s=>e(Ie)(e(w),e(h),$.value),["stop"]))},{icon:d(()=>[l(F)]),_:1})),[[_,o.$t("download")]]),u((t(),i(c,{onClick:n[7]||(n[7]=a(s=>e(Ze)(e(h),e(w),$.value),["stop"]))},{icon:d(()=>[l(ce)]),_:1})),[[_,o.$t("add_to_tags")]])],64))],64)):M("",!0)]),r("div",Ss,[l(ro,{filter:S,tags:e(R),buckets:e(Y),"get-url":ao},null,8,["filter","tags","buckets"]),S.trash?M("",!0):(t(),i(Ve,{key:0},{content:d(s=>[r("md-menu-item",{onClick:a(g=>lo(s),["stop"])},[r("div",Es,y(o.$t("upload_files")),1)],8,As),r("md-menu-item",{onClick:a(g=>io(s),["stop"])},[r("div",Ms,y(o.$t("upload_folder")),1)],8,Fs)]),default:d(()=>[u((t(),i(c,null,{icon:d(()=>[l(uo)]),_:1})),[[_,o.$t("upload")]])]),_:1})),l(Ve,null,{content:d(s=>[r("div",Ls,[(t(!0),p(f,null,O(e(so),g=>(t(),p("md-menu-item",{onClick:m=>no(s,g.value),key:g.value,selected:g.value===e(J)},[r("div",zs,y(o.$t(g.label)),1)],8,Vs))),128))])]),default:d(()=>[u((t(),i(c,{loading:j.value},{icon:d(()=>[l(_o)]),_:1},8,["loading"])),[[_,o.$t("sort")]])]),_:1}),r("md-outlined-segmented-button-set",qs,[r("md-outlined-segmented-button",{"data-value":"grid","no-checkmark":"",selected:!e(I).imagesCardView,onClick:n[8]||(n[8]=s=>e(I).imagesCardView=!1)},[l(po,{slot:"icon"})],8,Us),r("md-outlined-segmented-button",{"data-value":"card","no-checkmark":"",selected:e(I).imagesCardView,onClick:n[9]||(n[9]=s=>e(I).imagesCardView=!0)},[l(mo,{slot:"icon"})],8,Bs)])])]),l(ko,{limit:T,total:e(b),"all-checked-alert-visible":e(eo),"real-all-checked":e(w),"select-real-all":e(xe),"clear-selection":e(A)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),r("div",{class:"scroll-content",onDragover:n[13]||(n[13]=a((...s)=>e(ge)&&e(ge)(...s),["stop","prevent"]))},[u(r("div",{class:"drag-mask",onDrop:a(co,["stop","prevent"]),onDragleave:n[10]||(n[10]=a((...s)=>e(ve)&&e(ve)(...s),["stop","prevent"]))},y(o.$t("release_to_send_files")),545),[[Ro,e(Je)]]),e(I).imagesCardView?(t(),p("div",{key:1,class:B(["media-list",{"select-mode":e(U)}])},[(t(!0),p(f,null,O(D.value,(s,g)=>{var m;return t(),p("section",{class:B(["media-item selectable-card",{selected:e(h).includes(s.id),selecting:e(H).includes(s.id)}]),key:s.id,onClick:a(v=>e($e)(v,s,g,ee),["stop"]),onMouseover:v=>e(be)(v,g)},[r("div",Qs,[e(H).includes(s.id)?(t(),p("md-checkbox",{key:0,class:"checkbox","touch-target":"wrapper",onClick:a(v=>e(q)(v,s,g),["stop"]),checked:e(we)},null,8,Gs)):(t(),p("md-checkbox",{key:1,class:"checkbox","touch-target":"wrapper",onClick:a(v=>e(q)(v,s,g),["stop"]),checked:e(h).includes(s.id)},null,8,Os)),r("span",Js,[l(vo,{id:g+1,raw:s},null,8,["id","raw"])])]),r("img",{class:"image",src:e(ue)(s.fileId,"&w=200&h=200"),onerror:"this.src='/broken-image.png'"},null,8,Ws),r("div",Xs,y(e(L)(s.path)),1),r("div",js,[r("span",null,y(e(Ne)(s.size)),1),r("a",{onClick:a(v=>e(Ye)(e(I),s.bucketId),["stop","prevent"])},y((m=je.value[s.bucketId])==null?void 0:m.name),9,Zs),l(qe,{tags:s.tags,type:e(k),"only-links":!0},null,8,["tags","type"])]),r("div",Ys,[S.trash?(t(),p(f,{key:0},[u((t(),i(c,{class:"sm",onClick:a(v=>e(N)(e(k),s),["stop"])},{icon:d(()=>[l(C)]),_:2},1032,["onClick"])),[[_,o.$t("delete")]]),u((t(),i(c,{class:"sm",onClick:a(v=>e(ne)(`ids:${s.id}`),["stop"]),loading:e(te)(`ids:${s.id}`)},{icon:d(()=>[l(le)]),_:2},1032,["onClick","loading"])),[[_,o.$t("restore")]]),u((t(),i(c,{class:"sm",onClick:a(v=>e(K)(s.path,e(L)(s.path).replace(" ","-")),["stop"])},{icon:d(()=>[l(F)]),_:2},1032,["onClick"])),[[_,o.$t("download")]])],64)):(t(),p(f,{key:1},[e(_e)(e(re).MEDIA_TRASH,e(z).osVersion)?u((t(),i(c,{key:0,class:"sm",onClick:a(v=>e(se)(`ids:${s.id}`),["stop"]),loading:e(oe)(`ids:${s.id}`)},{icon:d(()=>[l(ie)]),_:2},1032,["onClick","loading"])),[[_,o.$t("move_to_trash")]]):u((t(),i(c,{key:1,class:"sm",onClick:a(v=>e(N)(e(k),s),["stop"])},{icon:d(()=>[l(C)]),_:2},1032,["onClick"])),[[_,o.$t("delete")]]),u((t(),i(c,{class:"sm",onClick:a(v=>e(K)(s.path,e(L)(s.path).replace(" ","-")),["stop"])},{icon:d(()=>[l(F)]),_:2},1032,["onClick"])),[[_,o.$t("download")]]),u((t(),i(c,{class:"sm",onClick:a(v=>Ae(s),["stop"])},{icon:d(()=>[l(ce)]),_:2},1032,["onClick"])),[[_,o.$t("add_to_tags")]])],64))]),r("div",xs,[u((t(),p("span",null,[Xo(y(e(jo)(s.createdAt)),1)])),[[_,e(Wo)(s.createdAt)]])])],42,Ps)}),128)),e(Q)&&D.value.length===0?(t(),i(ho,{key:0,limit:T})):M("",!0)],2)):(t(),p("div",{key:0,class:B(["media-grid",{"select-mode":e(U)}])},[(t(!0),p(f,null,O(D.value,(s,g)=>(t(),p("section",{class:B(["media-item",{selected:e(h).includes(s.id),selecting:e(H).includes(s.id)}]),key:s.id,onClick:a(m=>e($e)(m,s,g,ee),["stop"]),onMouseover:m=>e(be)(m,g)},[r("img",{class:"image-thumb image",src:e(ue)(s.fileId,"&w=200&h=200"),onerror:"this.src='/broken-image.png'"},null,8,Ns),e(H).includes(s.id)?(t(),i(c,{key:0,class:"btn-checkbox",onClick:a(m=>e(q)(m,s,g),["stop"])},{icon:d(()=>[e(we)?(t(),i(de,{key:0})):(t(),i(ze,{key:1}))]),_:2},1032,["onClick"])):e(h).includes(s.id)?(t(),i(c,{key:1,class:"btn-checkbox",onClick:a(m=>e(q)(m,s,g),["stop"])},{icon:d(()=>[l(de)]),_:2},1032,["onClick"])):(t(),p(f,{key:2},[l(c,{class:"btn-checkbox",onClick:a(m=>e(q)(m,s,g),["stop"])},{icon:d(()=>[e(h).includes(s.id)?(t(),i(de,{key:0})):(t(),i(ze,{key:1}))]),_:2},1032,["onClick"]),e(U)?u((t(),i(c,{key:0,class:"btn-zoom sm",onClick:a(m=>ee(g),["stop"])},{icon:d(()=>[l(go)]),_:2},1032,["onClick"])),[[_,o.$t("open")]]):(t(),p("div",Hs,[S.trash?(t(),p(f,{key:0},[u((t(),i(c,{class:"sm",onClick:a(m=>e(N)(e(k),s),["stop"])},{icon:d(()=>[l(C)]),_:2},1032,["onClick"])),[[_,o.$t("delete")]]),u((t(),i(c,{class:"sm",onClick:a(m=>e(ne)(`ids:${s.id}`),["stop"]),loading:e(te)(`ids:${s.id}`)},{icon:d(()=>[l(le)]),_:2},1032,["onClick","loading"])),[[_,o.$t("restore")]]),u((t(),i(c,{class:"sm",onClick:a(m=>e(K)(s.path,e(L)(s.path).replace(" ","-")),["stop"])},{icon:d(()=>[l(F)]),_:2},1032,["onClick"])),[[_,o.$t("download")]])],64)):(t(),p(f,{key:1},[e(_e)(e(re).MEDIA_TRASH,e(z).osVersion)?u((t(),i(c,{key:0,class:"sm",onClick:a(m=>e(se)(`ids:${s.id}`),["stop"]),loading:e(oe)(`ids:${s.id}`)},{icon:d(()=>[l(ie)]),_:2},1032,["onClick","loading"])),[[_,o.$t("move_to_trash")]]):u((t(),i(c,{key:1,class:"sm",onClick:a(m=>e(N)(e(k),s),["stop"])},{icon:d(()=>[l(C)]),_:2},1032,["onClick"])),[[_,o.$t("delete")]]),u((t(),i(c,{class:"sm",onClick:a(m=>e(K)(s.path,e(L)(s.path).replace(" ","-")),["stop"])},{icon:d(()=>[l(F)]),_:2},1032,["onClick"])),[[_,o.$t("download")]]),u((t(),i(c,{class:"sm",onClick:a(m=>Ae(s),["stop"])},{icon:d(()=>[l(ce)]),_:2},1032,["onClick"])),[[_,o.$t("add_to_tags")]])],64))])),r("div",{class:B(["info",{"has-tags":s.tags.length>0}])},[l(qe,{tags:s.tags,type:e(k)},null,8,["tags","type"]),r("span",Ks,y(e(Ne)(s.size)),1)],2)],64))],42,Rs))),128)),e(Q)&&D.value.length===0?(t(),p(f,{key:0},O(T,s=>r("section",{class:"skeleton-image media-item",key:s})),64)):M("",!0)],2)),!e(Q)&&D.value.length===0?(t(),p("div",et,y(o.$t(e(Zo)(e(Q),e(z).permissions,"WRITE_EXTERNAL_STORAGE"))),1)):M("",!0),e(b)>T?(t(),i(yo,{key:3,page:Z.value,go:De,total:e(b),limit:T},null,8,["page","total"])):M("",!0),r("input",{ref_key:"fileInput",ref:Pe,style:{display:"none"},type:"file",accept:"image/*",multiple:"",onChange:n[11]||(n[11]=(...s)=>e(me)&&e(me)(...s))},null,544),r("input",{ref_key:"dirFileInput",ref:Ge,style:{display:"none"},type:"file",accept:"image/*",multiple:"",webkitdirectory:"",mozdirectory:"",directory:"",onChange:n[12]||(n[12]=(...s)=>e(ke)&&e(ke)(...s))},null,544)],32)],64)}}});export{ht as default}; diff --git a/app/src/main/resources/web/assets/ImagesView-D5aqwfsN.js b/app/src/main/resources/web/assets/ImagesView-D5aqwfsN.js new file mode 100644 index 00000000..1475a9db --- /dev/null +++ b/app/src/main/resources/web/assets/ImagesView-D5aqwfsN.js @@ -0,0 +1 @@ +import{_ as fo}from"./VPagination.vuevuetypescriptsetuptruelang-Cqtk1_Un.js";import{_ as Co,a as $o,b as bo,c as wo,d as Io}from"./grid-view-outline-rounded-DfUd5oBB.js";import{d as To,u as Do,s as Ue,h as O,g as So,I as Ao,i as Eo,ai as qe,aF as Mo,J as Fo,aG as Vo,aH as Be,aI as Lo,aj as zo,K as Ro,aJ as Uo,aK as qo,L as Bo,M as Ho,c as m,a as r,m as e,t as y,O as f,x as u,v as i,q as d,w as a,e as M,p as l,aL as No,N as q,P as W,Q as Ko,aM as Po,f as Qo,C as Go,aN as Oo,aO as Wo,aP as jo,ao as Jo,S as Xo,o as t,aQ as j,aR as J,aC as _e,aS as F,E as He,U as Zo,V as Yo,W as xo,X as es,ar as os,aq as ss,Z as ts,$ as ns,a0 as as,a1 as V,ae as ls,aT as is,as as cs,aU as ds,a2 as rs,aV as us,a4 as _s,a3 as ps,aW as ms}from"./index-BXOWKrmL.js";import{_ as ks,a as gs}from"./SearchInput-ZLdB9f4z.js";import{_ as vs}from"./sort-rounded-CjGrBbPk.js";import{_ as hs}from"./upload-rounded-D52A8109.js";import{u as ys}from"./search-B-8eugyA.js";import{a as fs}from"./tags-BpDG2_1g.js";import{u as Cs,a as $s}from"./key-events-DpI8L-ce.js";import"./search-rounded-DpdJ2cSK.js";import"./rss-feed-rounded-DN7yBBrR.js";import"./vee-validate.esm-Bmkx0D8v.js";const bs={class:"top-app-bar"},ws=["checked","indeterminate"],Is={class:"title"},Ts={key:0},Ds={key:1},Ss={class:"actions"},As=["onClick"],Es={slot:"headline"},Ms=["onClick"],Fs={slot:"headline"},Vs={class:"menu-items"},Ls=["onClick","selected"],zs={slot:"headline"},Rs={class:"sm"},Us=["selected"],qs=["selected"],Bs=["onClick","onMouseover"],Hs=["src"],Ns={key:1,class:"actions"},Ks={class:"right"},Ps=["onClick","onMouseover"],Qs={class:"start"},Gs=["onClick","checked"],Os=["onClick","checked"],Ws={class:"number"},js=["src"],Js={class:"title"},Xs={class:"subtitle"},Zs=["onClick"],Ys={class:"actions"},xs={class:"time"},et={key:2,class:"no-data-placeholder"},D=55,mt=To({__name:"ImagesView",setup(ot){var Ve;const I=Do(),{imageSortBy:X}=Ue(I),T=O([]),{t:Ne}=So(),{parseQ:Ke}=ys(),S=Ao({tagIds:[]}),pe=Eo(),{app:A,urlTokenKey:Z,uploads:Y}=Ue(pe),{input:Pe,upload:Qe,uploadChanged:me}=qe(Y),{input:Ge,upload:Oe,uploadChanged:ke}=qe(Y),{dropping:We,fileDragEnter:ge,fileDragLeave:ve,dropFiles:je}=Mo(Y),x=O(!1),_=Fo.IMAGE,he=Ko(),ye=he.query,ee=O(parseInt(((Ve=ye.page)==null?void 0:Ve.toString())??"1")),{tags:B,buckets:oe,fetch:Je}=Vo(_),Xe=Be(()=>{const o={};return oe.value.forEach(n=>{o[n.id]=n}),o}),$=O(""),{addToTags:Ze}=fs(_,B),{deleteItems:se,deleteItem:H}=Lo(),{view:Ye}=Po(_),{selectedIds:h,allChecked:fe,realAllChecked:w,selectRealAll:xe,allCheckedAlertVisible:eo,clearSelection:L,toggleAllChecked:Ce,toggleSelect:z,total:b,checked:R,shiftEffectingIds:N,handleItemClick:$e,handleMouseOver:be,selectAll:oo,shouldSelect:we}=Cs(T),{downloadItems:Ie}=zo(Z,_,L,"images.zip"),{downloadFile:K}=os(Z),Te=o=>{const n=he.query.q;Qo(I,n?`/images?page=${o}&q=${n}`:`/images?page=${o}`)},{keyDown:De,keyUp:Se}=$s(b,D,ee,oo,L,Te,()=>{j(J.MEDIA_TRASH,A.value.osVersion)?G(_,U()):se(_,h.value,w.value,b.value,$.value)}),so=ss(),to=Be(()=>T.value.map(o=>({src:_e(o.fileId),name:F(o.path),duration:0,size:o.size,path:o.path,type:_,data:o})));function te(o){pe.lightbox={sources:to.value,index:o,visible:!0}}const U=()=>{let o=$.value;return w.value||(o=`ids:${h.value.join(",")}`),o};function Ae(o){ts(ns,{type:_,tags:B.value,item:{key:o.id,title:o.title,size:o.size},selected:B.value.filter(n=>o.tags.some(C=>C.id===n.id))})}function no(o,n){x.value=!0,X.value=n,o.close()}const{loading:P,fetch:Q}=Ro({handle:async(o,n)=>{if(x.value=!1,n)Go(Ne(n),"error");else if(o){const C=[];for(const c of o.images)C.push({...c,fileId:Oo(Z.value,c.path,c.id)});T.value=C,b.value=o.imageCount}},document:Wo,variables:()=>({offset:(ee.value-1)*D,limit:D,query:$.value,sortBy:X.value}),appApi:!0}),{trashLoading:ne,trash:G}=Uo(),{restoreLoading:ae,restore:le}=qo();function ao(o){return o?`/images?q=${o}`:"/images"}function ie(){const o=oe.value.find(n=>n.id===S.bucketId);return o?ms(o.topItems[0]):`${A.value.internalStoragePath}/Pictures`}function lo(o){Qe(ie()),o.close()}function io(o){Oe(ie()),o.close()}function co(o){je(o,ie(),"image")}const Ee=o=>{o.type===_&&(L(),Q())},Me=o=>{o.type===_&&Q()},Fe=o=>{o.type===_&&(L(),Q())};return Bo(()=>{var o;$.value=as(((o=ye.q)==null?void 0:o.toString())??""),Ke(S,$.value),Je(),Q(),V.on("item_tags_updated",Me),V.on("items_tags_updated",Ee),V.on("media_items_actioned",Fe),window.addEventListener("keydown",De),window.addEventListener("keyup",Se)}),Ho(()=>{V.off("item_tags_updated",Me),V.off("items_tags_updated",Ee),V.off("media_items_actioned",Fe),window.removeEventListener("keydown",De),window.removeEventListener("keyup",Se)}),(o,n)=>{const C=ls,c=jo,ce=is,E=cs,de=ds,re=rs,ro=ks,uo=hs,Le=Jo,_o=vs,po=Co,mo=$o,ko=gs,ue=bo,ze=wo,go=us,Re=_s,vo=ps,ho=Io,yo=fo,p=Xo("tooltip");return t(),m(f,null,[r("div",bs,[r("md-checkbox",{"touch-target":"wrapper",onChange:n[0]||(n[0]=(...s)=>e(Ce)&&e(Ce)(...s)),checked:e(fe),indeterminate:!e(fe)&&e(R)},null,40,ws),r("div",Is,[e(h).length?(t(),m("span",Ts,y(o.$t("x_selected",{count:e(w)?e(b).toLocaleString():e(h).length.toLocaleString()})),1)):(t(),m("span",Ds,y(o.$t("page_title.images"))+" ("+y(e(b).toLocaleString())+")",1)),e(R)?(t(),m(f,{key:2},[S.trash?(t(),m(f,{key:0},[u((t(),i(c,{onClick:n[1]||(n[1]=a(s=>e(se)(e(_),e(h),e(w),e(b),$.value),["stop"]))},{icon:d(()=>[l(C)]),_:1})),[[p,o.$t("delete")]]),u((t(),i(c,{onClick:n[2]||(n[2]=a(s=>e(le)(e(_),U()),["stop"])),loading:e(ae)(U())},{icon:d(()=>[l(ce)]),_:1},8,["loading"])),[[p,o.$t("restore")]]),u((t(),i(c,{onClick:n[3]||(n[3]=a(s=>e(Ie)(e(w),e(h),$.value),["stop"]))},{icon:d(()=>[l(E)]),_:1})),[[p,o.$t("download")]])],64)):(t(),m(f,{key:1},[e(j)(e(J).MEDIA_TRASH,e(A).osVersion)?u((t(),i(c,{key:0,onClick:n[4]||(n[4]=a(s=>e(G)(e(_),U()),["stop"])),loading:e(ne)(U())},{icon:d(()=>[l(de)]),_:1},8,["loading"])),[[p,o.$t("move_to_trash")]]):u((t(),i(c,{key:1,onClick:n[5]||(n[5]=a(s=>e(se)(e(_),e(h),e(w),e(b),$.value),["stop"]))},{icon:d(()=>[l(C)]),_:1})),[[p,o.$t("delete")]]),u((t(),i(c,{onClick:n[6]||(n[6]=a(s=>e(Ie)(e(w),e(h),$.value),["stop"]))},{icon:d(()=>[l(E)]),_:1})),[[p,o.$t("download")]]),u((t(),i(c,{onClick:n[7]||(n[7]=a(s=>e(Ze)(e(h),e(w),$.value),["stop"]))},{icon:d(()=>[l(re)]),_:1})),[[p,o.$t("add_to_tags")]])],64))],64)):M("",!0)]),r("div",Ss,[l(ro,{filter:S,tags:e(B),buckets:e(oe),"get-url":ao},null,8,["filter","tags","buckets"]),S.trash?M("",!0):(t(),i(Le,{key:0},{content:d(s=>[r("md-menu-item",{onClick:a(g=>lo(s),["stop"])},[r("div",Es,y(o.$t("upload_files")),1)],8,As),r("md-menu-item",{onClick:a(g=>io(s),["stop"])},[r("div",Fs,y(o.$t("upload_folder")),1)],8,Ms)]),default:d(()=>[u((t(),i(c,null,{icon:d(()=>[l(uo)]),_:1})),[[p,o.$t("upload")]])]),_:1})),l(Le,null,{content:d(s=>[r("div",Vs,[(t(!0),m(f,null,W(e(so),g=>(t(),m("md-menu-item",{onClick:k=>no(s,g.value),key:g.value,selected:g.value===e(X)},[r("div",zs,y(o.$t(g.label)),1)],8,Ls))),128))])]),default:d(()=>[u((t(),i(c,{loading:x.value},{icon:d(()=>[l(_o)]),_:1},8,["loading"])),[[p,o.$t("sort")]])]),_:1}),r("md-outlined-segmented-button-set",Rs,[r("md-outlined-segmented-button",{"data-value":"grid","no-checkmark":"",selected:!e(I).imagesCardView,onClick:n[8]||(n[8]=s=>e(I).imagesCardView=!1)},[l(po,{slot:"icon"})],8,Us),r("md-outlined-segmented-button",{"data-value":"card","no-checkmark":"",selected:e(I).imagesCardView,onClick:n[9]||(n[9]=s=>e(I).imagesCardView=!0)},[l(mo,{slot:"icon"})],8,qs)])])]),l(ko,{limit:D,total:e(b),"all-checked-alert-visible":e(eo),"real-all-checked":e(w),"select-real-all":e(xe),"clear-selection":e(L)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),r("div",{class:"scroll-content",onDragover:n[13]||(n[13]=a((...s)=>e(ge)&&e(ge)(...s),["stop","prevent"]))},[u(r("div",{class:"drag-mask",onDrop:a(co,["stop","prevent"]),onDragleave:n[10]||(n[10]=a((...s)=>e(ve)&&e(ve)(...s),["stop","prevent"]))},y(o.$t("release_to_send_files")),545),[[No,e(We)]]),e(I).imagesCardView?(t(),m("div",{key:1,class:q(["media-list",{"select-mode":e(R)}])},[(t(!0),m(f,null,W(T.value,(s,g)=>{var k;return t(),m("section",{class:q(["media-item selectable-card",{selected:e(h).includes(s.id),selecting:e(N).includes(s.id)}]),key:s.id,onClick:a(v=>e($e)(v,s,g,te),["stop"]),onMouseover:v=>e(be)(v,g)},[r("div",Qs,[e(N).includes(s.id)?(t(),m("md-checkbox",{key:0,class:"checkbox","touch-target":"wrapper",onClick:a(v=>e(z)(v,s,g),["stop"]),checked:e(we)},null,8,Gs)):(t(),m("md-checkbox",{key:1,class:"checkbox","touch-target":"wrapper",onClick:a(v=>e(z)(v,s,g),["stop"]),checked:e(h).includes(s.id)},null,8,Os)),r("span",Ws,[l(vo,{id:g+1,raw:s},null,8,["id","raw"])])]),r("img",{class:"image",src:e(_e)(s.fileId,"&w=200&h=200"),onerror:"this.src='/broken-image.png'"},null,8,js),r("div",Js,y(e(F)(s.path)),1),r("div",Xs,[r("span",null,y(e(He)(s.size)),1),r("a",{onClick:a(v=>e(Ye)(e(I),s.bucketId),["stop","prevent"])},y((k=Xe.value[s.bucketId])==null?void 0:k.name),9,Zs),l(Re,{tags:s.tags,type:e(_),"only-links":!0},null,8,["tags","type"])]),r("div",Ys,[S.trash?(t(),m(f,{key:0},[u((t(),i(c,{class:"sm",onClick:a(v=>e(H)(e(_),s),["stop"])},{icon:d(()=>[l(C)]),_:2},1032,["onClick"])),[[p,o.$t("delete")]]),u((t(),i(c,{class:"sm",onClick:a(v=>e(le)(e(_),`ids:${s.id}`),["stop"]),loading:e(ae)(`ids:${s.id}`)},{icon:d(()=>[l(ce)]),_:2},1032,["onClick","loading"])),[[p,o.$t("restore")]]),u((t(),i(c,{class:"sm",onClick:a(v=>e(K)(s.path,e(F)(s.path).replace(" ","-")),["stop"])},{icon:d(()=>[l(E)]),_:2},1032,["onClick"])),[[p,o.$t("download")]])],64)):(t(),m(f,{key:1},[e(j)(e(J).MEDIA_TRASH,e(A).osVersion)?u((t(),i(c,{key:0,class:"sm",onClick:a(v=>e(G)(e(_),`ids:${s.id}`),["stop"]),loading:e(ne)(`ids:${s.id}`)},{icon:d(()=>[l(de)]),_:2},1032,["onClick","loading"])),[[p,o.$t("move_to_trash")]]):u((t(),i(c,{key:1,class:"sm",onClick:a(v=>e(H)(e(_),s),["stop"])},{icon:d(()=>[l(C)]),_:2},1032,["onClick"])),[[p,o.$t("delete")]]),u((t(),i(c,{class:"sm",onClick:a(v=>e(K)(s.path,e(F)(s.path).replace(" ","-")),["stop"])},{icon:d(()=>[l(E)]),_:2},1032,["onClick"])),[[p,o.$t("download")]]),u((t(),i(c,{class:"sm",onClick:a(v=>Ae(s),["stop"])},{icon:d(()=>[l(re)]),_:2},1032,["onClick"])),[[p,o.$t("add_to_tags")]])],64))]),r("div",xs,[u((t(),m("span",null,[Yo(y(e(xo)(s.createdAt)),1)])),[[p,e(Zo)(s.createdAt)]])])],42,Ps)}),128)),e(P)&&T.value.length===0?(t(),i(ho,{key:0,limit:D})):M("",!0)],2)):(t(),m("div",{key:0,class:q(["media-grid",{"select-mode":e(R)}])},[(t(!0),m(f,null,W(T.value,(s,g)=>(t(),m("section",{class:q(["media-item",{selected:e(h).includes(s.id),selecting:e(N).includes(s.id)}]),key:s.id,onClick:a(k=>e($e)(k,s,g,te),["stop"]),onMouseover:k=>e(be)(k,g)},[r("img",{class:"image-thumb image",src:e(_e)(s.fileId,"&w=200&h=200"),onerror:"this.src='/broken-image.png'"},null,8,Hs),e(N).includes(s.id)?(t(),i(c,{key:0,class:"btn-checkbox",onClick:a(k=>e(z)(k,s,g),["stop"])},{icon:d(()=>[e(we)?(t(),i(ue,{key:0})):(t(),i(ze,{key:1}))]),_:2},1032,["onClick"])):e(h).includes(s.id)?(t(),i(c,{key:1,class:"btn-checkbox",onClick:a(k=>e(z)(k,s,g),["stop"])},{icon:d(()=>[l(ue)]),_:2},1032,["onClick"])):(t(),m(f,{key:2},[l(c,{class:"btn-checkbox",onClick:a(k=>e(z)(k,s,g),["stop"])},{icon:d(()=>[e(h).includes(s.id)?(t(),i(ue,{key:0})):(t(),i(ze,{key:1}))]),_:2},1032,["onClick"]),e(R)?u((t(),i(c,{key:0,class:"btn-zoom sm",onClick:a(k=>te(g),["stop"])},{icon:d(()=>[l(go)]),_:2},1032,["onClick"])),[[p,o.$t("open")]]):(t(),m("div",Ns,[S.trash?(t(),m(f,{key:0},[u((t(),i(c,{class:"sm",onClick:a(k=>e(H)(e(_),s),["stop"])},{icon:d(()=>[l(C)]),_:2},1032,["onClick"])),[[p,o.$t("delete")]]),u((t(),i(c,{class:"sm",onClick:a(k=>e(le)(e(_),`ids:${s.id}`),["stop"]),loading:e(ae)(`ids:${s.id}`)},{icon:d(()=>[l(ce)]),_:2},1032,["onClick","loading"])),[[p,o.$t("restore")]]),u((t(),i(c,{class:"sm",onClick:a(k=>e(K)(s.path,e(F)(s.path).replace(" ","-")),["stop"])},{icon:d(()=>[l(E)]),_:2},1032,["onClick"])),[[p,o.$t("download")]])],64)):(t(),m(f,{key:1},[e(j)(e(J).MEDIA_TRASH,e(A).osVersion)?u((t(),i(c,{key:0,class:"sm",onClick:a(k=>e(G)(e(_),`ids:${s.id}`),["stop"]),loading:e(ne)(`ids:${s.id}`)},{icon:d(()=>[l(de)]),_:2},1032,["onClick","loading"])),[[p,o.$t("move_to_trash")]]):u((t(),i(c,{key:1,class:"sm",onClick:a(k=>e(H)(e(_),s),["stop"])},{icon:d(()=>[l(C)]),_:2},1032,["onClick"])),[[p,o.$t("delete")]]),u((t(),i(c,{class:"sm",onClick:a(k=>e(K)(s.path,e(F)(s.path).replace(" ","-")),["stop"])},{icon:d(()=>[l(E)]),_:2},1032,["onClick"])),[[p,o.$t("download")]]),u((t(),i(c,{class:"sm",onClick:a(k=>Ae(s),["stop"])},{icon:d(()=>[l(re)]),_:2},1032,["onClick"])),[[p,o.$t("add_to_tags")]])],64))])),r("div",{class:q(["info",{"has-tags":s.tags.length>0}])},[l(Re,{tags:s.tags,type:e(_)},null,8,["tags","type"]),r("span",Ks,y(e(He)(s.size)),1)],2)],64))],42,Bs))),128)),e(P)&&T.value.length===0?(t(),m(f,{key:0},W(D,s=>r("section",{class:"skeleton-image media-item",key:s})),64)):M("",!0)],2)),!e(P)&&T.value.length===0?(t(),m("div",et,y(o.$t(e(es)(e(P),e(A).permissions,"WRITE_EXTERNAL_STORAGE"))),1)):M("",!0),e(b)>D?(t(),i(yo,{key:3,page:ee.value,go:Te,total:e(b),limit:D},null,8,["page","total"])):M("",!0),r("input",{ref_key:"fileInput",ref:Pe,style:{display:"none"},type:"file",accept:"image/*",multiple:"",onChange:n[11]||(n[11]=(...s)=>e(me)&&e(me)(...s))},null,544),r("input",{ref_key:"dirFileInput",ref:Ge,style:{display:"none"},type:"file",accept:"image/*",multiple:"",webkitdirectory:"",mozdirectory:"",directory:"",onChange:n[12]||(n[12]=(...s)=>e(ke)&&e(ke)(...s))},null,544)],32)],64)}}});export{mt as default}; diff --git a/app/src/main/resources/web/assets/JsonViewerView-dUM7kA38.js b/app/src/main/resources/web/assets/JsonViewerView-0dyovbJd.js similarity index 85% rename from app/src/main/resources/web/assets/JsonViewerView-dUM7kA38.js rename to app/src/main/resources/web/assets/JsonViewerView-0dyovbJd.js index 87a40188..bab738e0 100644 --- a/app/src/main/resources/web/assets/JsonViewerView-dUM7kA38.js +++ b/app/src/main/resources/web/assets/JsonViewerView-0dyovbJd.js @@ -1 +1 @@ -import{bM as n,d as j,h as u,a_ as k,a1 as f,a$ as $,o as c,c as x,a as o,p as y,N as V,s as N,u as T,k as S,t as h,w as g,m as E,z as D,v as C,e as w,O as R,H}from"./index-B-S542RM.js";import{_ as O}from"./MonacoEditor.vuevuetypescriptsetuptruelang-WcUH3tOp.js";const A=/^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/,B={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=A.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)])}},z={props:{jsonValue:{type:Object,default:null}},setup(e){return()=>n("span",{class:{"jv-item":!0,"jv-undefined":!0},innerText:e.jsonValue===null?"null":"undefined"})}},q={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()})}},J={props:{jsonValue:Boolean},setup(e){return()=>n("span",{class:{"jv-item":!0,"jv-boolean":!0},innerText:e.jsonValue.toString()})}},M={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)}},I={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)}},L={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>"})}},P={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()}"`})}},F=/^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/,Z={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=F.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={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=z:Array.isArray(this.value)?e=I:Object.prototype.toString.call(this.value)==="[object Date]"?e=P:typeof this.value=="object"?e=M:typeof this.value=="number"?e=q:typeof this.value=="string"?e=B:typeof this.value=="boolean"?e=J:typeof this.value=="function"&&(e=L),this.value&&this.value.constructor===RegExp&&(e=Z);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)}},K={class:"jv-code"},U=j({__name:"json-viewer",props:{value:{type:[Object,Array,String,Number,Boolean,Function],required:!0},expandDepth:{type:Number,default:1}},setup(e){const t=u("light"),s=()=>{t.value=document.documentElement.classList[0]==="dark"?"dark":"light"};return k(()=>{f.on("color_mode_changed",s)}),$(()=>{f.off("color_mode_changed",s)}),(a,p)=>{const l=m;return c(),x("div",{class:V(["jv-container",t.value])},[o("div",K,[y(l,{value:e.value,"expand-depth":e.expandDepth},null,8,["value","expand-depth"])])],2)}}}),G={class:"top-app-bar"},Q={class:"title"},W={class:"actions"},X={class:"scroll-content"},Y=j({__name:"JsonViewerView",setup(e){const{json:t}=N(T()),s=u(null),a=u(1),p=u(1),l=()=>{try{const i=JSON.parse(t.value);s.value=i}catch(i){console.error(i)}};S(t,l),l();function v(i){i?a.value=1e3:a.value=1,p.value++}return(i,r)=>{const _=O,b=U;return c(),x(R,null,[o("div",G,[o("div",Q,h(i.$t("json_viewer")),1),o("div",W,[o("md-outlined-button",{class:"btn-sm",onClick:r[0]||(r[0]=g(d=>v(!0),["prevent"]))},h(i.$t("expand_all")),1),o("md-outlined-button",{class:"btn-sm",onClick:r[1]||(r[1]=g(d=>v(!1),["prevent"]))},h(i.$t("collapse_all")),1)])]),o("div",X,[y(_,{language:"json",modelValue:E(t),"onUpdate:modelValue":r[2]||(r[2]=d=>D(t)?t.value=d:null)},null,8,["modelValue"]),s.value?(c(),C(b,{value:s.value,"expand-depth":a.value,key:p.value},null,8,["value","expand-depth"])):w("",!0)])],64)}}}),se=H(Y,[["__scopeId","data-v-2e70676d"]]);export{se as default}; +import{bQ as n,d as j,h as u,af as k,a1 as v,ag as $,o as c,c as x,a as o,p as y,N as V,s as N,u as T,k as S,t as h,w as g,m as E,z as D,v as C,e as w,O as R,H}from"./index-BXOWKrmL.js";import{_ as O}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BFVbtP9H.js";const A=/^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/,B={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=A.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)])}},z={props:{jsonValue:{type:Object,default:null}},setup(e){return()=>n("span",{class:{"jv-item":!0,"jv-undefined":!0},innerText:e.jsonValue===null?"null":"undefined"})}},q={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()})}},J={props:{jsonValue:Boolean},setup(e){return()=>n("span",{class:{"jv-item":!0,"jv-boolean":!0},innerText:e.jsonValue.toString()})}},I={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(f,{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)}},L={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(f,{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)}},M={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>"})}},P={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()}"`})}},F=/^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/,Z={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=F.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)])}},f={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=z:Array.isArray(this.value)?e=L:Object.prototype.toString.call(this.value)==="[object Date]"?e=P:typeof this.value=="object"?e=I:typeof this.value=="number"?e=q:typeof this.value=="string"?e=B:typeof this.value=="boolean"?e=J:typeof this.value=="function"&&(e=M),this.value&&this.value.constructor===RegExp&&(e=Z);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)}},K={class:"jv-code"},U=j({__name:"json-viewer",props:{value:{type:[Object,Array,String,Number,Boolean,Function],required:!0},expandDepth:{type:Number,default:1}},setup(e){const t=u("light"),s=()=>{t.value=document.documentElement.classList[0]==="dark"?"dark":"light"};return k(()=>{v.on("color_mode_changed",s)}),$(()=>{v.off("color_mode_changed",s)}),(a,p)=>{const l=f;return c(),x("div",{class:V(["jv-container",t.value])},[o("div",K,[y(l,{value:e.value,"expand-depth":e.expandDepth},null,8,["value","expand-depth"])])],2)}}}),G={class:"top-app-bar"},Q={class:"title"},W={class:"actions"},X={class:"scroll-content"},Y=j({__name:"JsonViewerView",setup(e){const{json:t}=N(T()),s=u(null),a=u(1),p=u(1),l=()=>{try{const i=JSON.parse(t.value);s.value=i}catch(i){console.error(i)}};S(t,l),l();function m(i){i?a.value=1e3:a.value=1,p.value++}return(i,r)=>{const _=O,b=U;return c(),x(R,null,[o("div",G,[o("div",Q,h(i.$t("json_viewer")),1),o("div",W,[o("md-outlined-button",{class:"btn-sm",onClick:r[0]||(r[0]=g(d=>m(!0),["prevent"]))},h(i.$t("expand_all")),1),o("md-outlined-button",{class:"btn-sm",onClick:r[1]||(r[1]=g(d=>m(!1),["prevent"]))},h(i.$t("collapse_all")),1)])]),o("div",X,[y(_,{language:"json",modelValue:E(t),"onUpdate:modelValue":r[2]||(r[2]=d=>D(t)?t.value=d:null)},null,8,["modelValue"]),s.value?(c(),C(b,{value:s.value,"expand-depth":a.value,key:p.value},null,8,["value","expand-depth"])):w("",!0)])],64)}}}),se=H(Y,[["__scopeId","data-v-2e70676d"]]);export{se as default}; diff --git a/app/src/main/resources/web/assets/LeftSidebar.vuevuetypescriptsetuptruelang-Bkp0VFG-.js b/app/src/main/resources/web/assets/LeftSidebar.vuevuetypescriptsetuptruelang-qrlto0-t.js similarity index 71% rename from app/src/main/resources/web/assets/LeftSidebar.vuevuetypescriptsetuptruelang-Bkp0VFG-.js rename to app/src/main/resources/web/assets/LeftSidebar.vuevuetypescriptsetuptruelang-qrlto0-t.js index 6164e8c3..be5335ca 100644 --- a/app/src/main/resources/web/assets/LeftSidebar.vuevuetypescriptsetuptruelang-Bkp0VFG-.js +++ b/app/src/main/resources/web/assets/LeftSidebar.vuevuetypescriptsetuptruelang-qrlto0-t.js @@ -1 +1 @@ -import{o as n,c as i,a as e,d as g,u as z,a6 as _,h as y,S,x as u,w as $,v as h,r as a,aH as w,m as l,N as T,n as V,cd as M}from"./index-B-S542RM.js";const k={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},B=e("path",{fill:"currentColor",d:"M16.5 14.8V9.2q0-.35-.3-.475t-.55.125L13.2 11.3q-.3.3-.3.7t.3.7l2.45 2.45q.25.25.55.125t.3-.475M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.587 1.413T19 21zm3-2V5H5v14zm2 0h9V5h-9zm-2 0H5z"},null,-1),C=[B];function H(r,t){return n(),i("svg",k,[...C])}const P={name:"material-symbols-left-panel-close-outline-rounded",render:H},x={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},W=e("path",{fill:"currentColor",d:"M12.5 9.2v5.6q0 .35.3.475t.55-.125l2.45-2.45q.3-.3.3-.7t-.3-.7l-2.45-2.45q-.25-.25-.55-.125t-.3.475M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.587 1.413T19 21zm3-2V5H5v14zm2 0h9V5h-9zm-2 0H5z"},null,-1),L=[W];function R(r,t){return n(),i("svg",x,[...L])}const D={name:"material-symbols-left-panel-open-outline-rounded",render:R},N={class:"top-app-bar"},E=e("md-ripple",null,null,-1),j={class:"title"},A={class:"actions",style:{position:"relative"}},F={class:"sidebar-body"},I=g({__name:"LeftSidebar",setup(r){const t=z(),m=t.getCurrentPage(_.currentRoute.value.fullPath),s=y(m.sidebar===!1);function p(){s.value=!s.value,t.updatePageSidebar(_.currentRoute.value.fullPath,!s.value)}const{resizeWidth:d}=M(160,()=>t.sidebarWidth,o=>{t.sidebarWidth=o});return(o,c)=>{const v=D,b=P,f=S("tooltip");return n(),i("aside",{class:T(["sidebar",{mini:s.value}]),style:V({width:l(t).sidebarWidth+"px"})},[e("div",N,[u((n(),i("button",{class:"btn-icon",onClick:$(p,["prevent"])},[E,s.value?(n(),h(v,{key:0})):(n(),h(b,{key:1}))])),[[f,o.$t(s.value?"open":"close")]]),e("div",j,[a(o.$slots,"title")]),e("div",A,[a(o.$slots,"actions")])]),e("div",F,[a(o.$slots,"body")]),u(e("div",{class:"sidebar-drag-indicator",onMousedown:c[0]||(c[0]=(...q)=>l(d)&&l(d)(...q))},null,544),[[w,!s.value]])],6)}}});export{I as _}; +import{o as n,c as i,a as e,d as g,u as z,a6 as _,h as y,S,x as u,w as $,v as h,r as a,aL as w,m as l,N as T,n as V,ch as M}from"./index-BXOWKrmL.js";const k={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},B=e("path",{fill:"currentColor",d:"M16.5 14.8V9.2q0-.35-.3-.475t-.55.125L13.2 11.3q-.3.3-.3.7t.3.7l2.45 2.45q.25.25.55.125t.3-.475M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.587 1.413T19 21zm3-2V5H5v14zm2 0h9V5h-9zm-2 0H5z"},null,-1),C=[B];function P(r,t){return n(),i("svg",k,[...C])}const x={name:"material-symbols-left-panel-close-outline-rounded",render:P},H={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},L=e("path",{fill:"currentColor",d:"M12.5 9.2v5.6q0 .35.3.475t.55-.125l2.45-2.45q.3-.3.3-.7t-.3-.7l-2.45-2.45q-.25-.25-.55-.125t-.3.475M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.587 1.413T19 21zm3-2V5H5v14zm2 0h9V5h-9zm-2 0H5z"},null,-1),W=[L];function R(r,t){return n(),i("svg",H,[...W])}const D={name:"material-symbols-left-panel-open-outline-rounded",render:R},N={class:"top-app-bar"},E=e("md-ripple",null,null,-1),j={class:"title"},A={class:"actions",style:{position:"relative"}},F={class:"sidebar-body"},I=g({__name:"LeftSidebar",setup(r){const t=z(),m=t.getCurrentPage(_.currentRoute.value.fullPath),s=y(m.sidebar===!1);function p(){s.value=!s.value,t.updatePageSidebar(_.currentRoute.value.fullPath,!s.value)}const{resizeWidth:d}=M(160,()=>t.sidebarWidth,o=>{t.sidebarWidth=o});return(o,c)=>{const v=D,b=x,f=S("tooltip");return n(),i("aside",{class:T(["sidebar",{mini:s.value}]),style:V({width:l(t).sidebarWidth+"px"})},[e("div",N,[u((n(),i("button",{class:"btn-icon",onClick:$(p,["prevent"])},[E,s.value?(n(),h(v,{key:0})):(n(),h(b,{key:1}))])),[[f,o.$t(s.value?"open":"close")]]),e("div",j,[a(o.$slots,"title")]),e("div",A,[a(o.$slots,"actions")])]),e("div",F,[a(o.$slots,"body")]),u(e("div",{class:"sidebar-drag-indicator",onMousedown:c[0]||(c[0]=(...q)=>l(d)&&l(d)(...q))},null,544),[[w,!s.value]])],6)}}});export{I as _}; diff --git a/app/src/main/resources/web/assets/LoginView-iF0mahQu.js b/app/src/main/resources/web/assets/LoginView-CeL9P5vi.js similarity index 70% rename from app/src/main/resources/web/assets/LoginView-iF0mahQu.js rename to app/src/main/resources/web/assets/LoginView-CeL9P5vi.js index e10ae074..fda4f560 100644 --- a/app/src/main/resources/web/assets/LoginView-iF0mahQu.js +++ b/app/src/main/resources/web/assets/LoginView-CeL9P5vi.js @@ -1 +1 @@ -import{d as G,h as g,g as Q,as as X,cO as Y,cP as Z,cQ as ee,cR as se,cS as ne,cT as te,cU as oe,a6 as re,cV as N,c as A,a as v,p as P,t as p,x as E,aH as x,w as ie,m as c,z as ae,A as le,y as ue,e as R,O as ce,cW as de,o as T,bV as me,cX as we,cY as fe,H as ve}from"./index-B-S542RM.js";import{u as be,a as pe}from"./vee-validate.esm-D5u4WlYW.js";function O(n){let t=n;if(typeof t>"u"){if(typeof navigator>"u"||!navigator)return"";t=navigator.userAgent||""}return t.toLowerCase()}function j(n,t){try{return new RegExp(n,"g").exec(t)}catch{return null}}function W(){if(typeof navigator>"u"||!navigator||!navigator.userAgentData)return!1;const t=navigator.userAgentData.brands;return!!(t&&t.length)}function ge(n,t){const o=j(`(${n})((?:\\/|\\s|:)([0-9|\\.|_]+))`,t);return o?o[3]:""}function $(n){return n.replace(/_/g,".")}function _(n,t){let o=null,e="-1";return n.some(r=>{const l=j(`(${r.test})((?:\\/|\\s|:)([0-9|\\.|_]+))?`,t);return!l||r.brand?!1:(o=r,e=l[3]||"-1",r.versionAlias?e=r.versionAlias:r.versionTest&&(e=ge(r.versionTest.toLowerCase(),t)||e),e=$(e),!0)}),{preset:o,version:e}}function h(n,t){const o={brand:"",version:"-1"};return n.some(e=>{const r=H(t,e);return r?(o.brand=e.id,o.version=e.versionAlias||r.version,o.version!=="-1"):!1}),o}function H(n,t){return n.find(o=>j(`${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"}],U=[{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}],L=[{test:"applewebkit",id:"webkit",versionTest:"applewebkit|safari"}],D=[{test:"(?=(iphone|ipad))(?!(.*version))",id:"webview"},{test:"(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))",id:"webview"},{test:"webview",id:"webview"}],F=[{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!!_(D,n).preset}function he(n){const t=O(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:l,version:f}=_(I,t),{preset:s,version:u}=_(F,t),b=_(U,t);if(e.chromium=!!b.preset,e.chromiumVersion=b.version,!e.chromium){const m=_(L,t);e.webkit=!!m.preset,e.webkitVersion=m.version}return s&&(r.name=s.id,r.version=u,r.majorVersion=parseInt(u,10)),l&&(e.name=l.id,e.version=f,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,l=o[0],f=(n&&n.platform||t.platform||navigator.platform).toLowerCase(),s={name:l.brand,version:l.version,majorVersion:-1,webkit:!1,webkitVersion:"-1",chromium:!1,chromiumVersion:"-1",webview:!!h(D,o).brand||K(O())},u={name:"unknown",version:"-1",majorVersion:-1};s.webkit=!s.chromium&&L.some(a=>H(o,a));const b=h(U,o);if(s.chromium=!!b.brand,s.chromiumVersion=b.version,!s.chromium){const a=h(L,o);s.webkit=!!a.brand,s.webkitVersion=a.version}const m=F.find(a=>new RegExp(`${a.test}`,"g").exec(f));if(u.name=m?m.id:"",n&&(u.version=n.platformVersion),e&&e.length){const a=h(I,e);s.name=a.brand||s.name,s.version=a.version||s.version}else{const a=h(I,o);s.name=a.brand||s.name,s.version=a.brand&&n?n.uaFullVersion:a.version}return s.webkit&&(u.name=r?"ios":"mac"),u.name==="ios"&&s.webview&&(s.version="-1"),u.version=$(u.version),s.version=$(s.version),u.majorVersion=parseInt(u.version,10),s.majorVersion=parseInt(s.version,10),{browser:s,os:u,isMobile:r,isHints:!0}}async function _e(){if(W()){const n=await navigator.userAgentData.getHighEntropyValues(["architecture","model","platform","platformVersion","uaFullVersion","fullVersionList"]);return q(n)}return Ve()}function Ve(n){return W()?q():he(n)}const ye={class:"header"},ke={class:"login-block"},Se={class:"alert alert-danger show",role:"alert"},Ae={class:"body"},Ee=["label","error","error-text"],Te=["disabled"],Be={class:"tap-phone"},Pe={class:"tap-phone-text"},xe={key:0,class:"tips"},Re=G({__name:"LoginView",setup(n){const{handleSubmit:t,isSubmitting:o}=be(),e=g(!1),r=g(!0),l=g(!1),f=g("");let s;const u=window.location.protocol==="http:"?!1:!window.navigator.userAgentData,{t:b}=Q(),{value:m,errorMessage:a}=pe("password",X().required()),B=g(!1);async function z(){const d=await fetch(`${N()}/init`,{method:"POST",headers:de()});if(d.status===403){e.value=!0,r.value=!0,f.value="web_access_disabled";return}r.value=!1;const w=await d.text();w?(m.value=w,B.value=!1):B.value=!0}z();const V=t(async()=>{const d=localStorage.getItem("client_id");s=new WebSocket(`${Y()}?cid=${d}&auth=1`);const w=m.value??"",y=Z(w),k=ee(y);f.value="",e.value=!1,s.onopen=async()=>{o.value=!0;const i=await _e(),S=se(k,JSON.stringify({password:y,browserName:i.browser.name,browserVersion:i.browser.version,osName:i.os.name,osVersion:i.os.version,isMobile:i.isMobile}));s.send(ne(S))},s.onmessage=async i=>{var M;const S=te(k,oe(await i.data.arrayBuffer())),C=JSON.parse(S);C.status==="PENDING"?l.value=!0:(localStorage.setItem("auth_token",C.token),s.close(),window.location.href=((M=re.currentRoute.value.query.redirect)==null?void 0:M.toString())??"/")},s.onclose=async i=>{if(!(i.reason==="abort"||i.reason==="OK")){if(o.value=!1,e.value=!0,l.value=!1,!i.reason&&(await fetch(`${N()}/health_check`)).status===200){f.value="failed_connect_ws";return}f.value=`login.${i.reason?i.reason:"failed"}`}},window.setTimeout(function(){s.readyState!==1&&s.close(3001,"timeout")},2e3)});function J(){l.value=!1,e.value=!1,o.value=!1,s.close(3001,"abort")}return(d,w)=>{const y=we,k=fe;return T(),A(ce,null,[v("header",ye,[P(y,{"logged-in":!1})]),v("h1",null,p(d.$t("app_name")),1),v("div",ke,[E(v("form",{onSubmit:w[2]||(w[2]=ie((...i)=>c(V)&&c(V)(...i),["prevent"]))},[E(v("div",Se,[P(k),v("div",Ae,p(f.value?d.$t(f.value):""),1)],512),[[x,e.value]]),B.value?E((T(),A("md-outlined-text-field",{key:0,label:c(b)("password"),"onUpdate:modelValue":w[0]||(w[0]=i=>ae(m)?m.value=i:null),onKeydown:w[1]||(w[1]=le((...i)=>c(V)&&c(V)(...i),["enter"])),type:"password",class:"form-control",error:c(a),autocomplete:"current-password","error-text":c(a)?d.$t(c(a)):""},null,40,Ee)),[[ue,c(m)]]):R("",!0),r.value?R("",!0):(T(),A("md-filled-button",{key:1,disabled:c(o)},p(d.$t(c(o)?"logging_in":"log_in")),9,Te))],544),[[x,!l.value]]),E(v("div",null,[v("div",Be,[P(c(me))]),v("div",Pe,p(d.$t("login.to_continue")),1),v("md-outlined-button",{onClick:J},p(d.$t("cancel")),1)],512),[[x,l.value]])]),c(u)?(T(),A("div",xe,p(d.$t("browser_warning")),1)):R("",!0)],64)}}}),Le=ve(Re,[["__scopeId","data-v-596f5fe4"]]);export{Le as default}; +import{d as Z,h as g,g as G,au as X,cS as Y,cT as Q,cU as ee,cV as se,cW as ne,cX as te,cY as oe,a6 as re,cZ as N,c as A,a as v,p as $,t as p,x as E,aL as x,w as ie,m as c,z as ae,A as le,y as ue,e as P,O as ce,c_ as de,o as T,bZ as me,c$ as we,d0 as fe,H as ve}from"./index-BXOWKrmL.js";import{u as be,a as pe}from"./vee-validate.esm-Bmkx0D8v.js";function W(n){let t=n;if(typeof t>"u"){if(typeof navigator>"u"||!navigator)return"";t=navigator.userAgent||""}return t.toLowerCase()}function j(n,t){try{return new RegExp(n,"g").exec(t)}catch{return null}}function O(){if(typeof navigator>"u"||!navigator||!navigator.userAgentData)return!1;const t=navigator.userAgentData.brands;return!!(t&&t.length)}function ge(n,t){const o=j(`(${n})((?:\\/|\\s|:)([0-9|\\.|_]+))`,t);return o?o[3]:""}function I(n){return n.replace(/_/g,".")}function _(n,t){let o=null,e="-1";return n.some(r=>{const l=j(`(${r.test})((?:\\/|\\s|:)([0-9|\\.|_]+))?`,t);return!l||r.brand?!1:(o=r,e=l[3]||"-1",r.versionAlias?e=r.versionAlias:r.versionTest&&(e=ge(r.versionTest.toLowerCase(),t)||e),e=I(e),!0)}),{preset:o,version:e}}function h(n,t){const o={brand:"",version:"-1"};return n.some(e=>{const r=U(t,e);return r?(o.brand=e.id,o.version=e.versionAlias||r.version,o.version!=="-1"):!1}),o}function U(n,t){return n.find(o=>j(`${t.test}`,o.brand.toLowerCase()))}const R=[{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"}],D=[{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}],L=[{test:"applewebkit",id:"webkit",versionTest:"applewebkit|safari"}],H=[{test:"(?=(iphone|ipad))(?!(.*version))",id:"webview"},{test:"(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))",id:"webview"},{test:"webview",id:"webview"}],F=[{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!!_(H,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:l,version:f}=_(R,t),{preset:s,version:u}=_(F,t),b=_(D,t);if(e.chromium=!!b.preset,e.chromiumVersion=b.version,!e.chromium){const m=_(L,t);e.webkit=!!m.preset,e.webkitVersion=m.version}return s&&(r.name=s.id,r.version=u,r.majorVersion=parseInt(u,10)),l&&(e.name=l.id,e.version=f,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,l=o[0],f=(n&&n.platform||t.platform||navigator.platform).toLowerCase(),s={name:l.brand,version:l.version,majorVersion:-1,webkit:!1,webkitVersion:"-1",chromium:!1,chromiumVersion:"-1",webview:!!h(H,o).brand||K(W())},u={name:"unknown",version:"-1",majorVersion:-1};s.webkit=!s.chromium&&L.some(a=>U(o,a));const b=h(D,o);if(s.chromium=!!b.brand,s.chromiumVersion=b.version,!s.chromium){const a=h(L,o);s.webkit=!!a.brand,s.webkitVersion=a.version}const m=F.find(a=>new RegExp(`${a.test}`,"g").exec(f));if(u.name=m?m.id:"",n&&(u.version=n.platformVersion),e&&e.length){const a=h(R,e);s.name=a.brand||s.name,s.version=a.version||s.version}else{const a=h(R,o);s.name=a.brand||s.name,s.version=a.brand&&n?n.uaFullVersion:a.version}return s.webkit&&(u.name=r?"ios":"mac"),u.name==="ios"&&s.webview&&(s.version="-1"),u.version=I(u.version),s.version=I(s.version),u.majorVersion=parseInt(u.version,10),s.majorVersion=parseInt(s.version,10),{browser:s,os:u,isMobile:r,isHints:!0}}async function _e(){if(O()){const n=await navigator.userAgentData.getHighEntropyValues(["architecture","model","platform","platformVersion","uaFullVersion","fullVersionList"]);return q(n)}return Ve()}function Ve(n){return O()?q():he(n)}const ye={class:"header"},ke={class:"login-block"},Se={class:"alert alert-danger show",role:"alert"},Ae={class:"body"},Ee=["label","error","error-text"],Te=["disabled"],Be={class:"tap-phone"},$e={class:"tap-phone-text"},xe={key:0,class:"tips"},Pe=Z({__name:"LoginView",setup(n){const{handleSubmit:t,isSubmitting:o}=be(),e=g(!1),r=g(!0),l=g(!1),f=g("");let s;const u=window.location.protocol==="http:"?!1:!window.navigator.userAgentData,{t:b}=G(),{value:m,errorMessage:a}=pe("password",X().required()),B=g(!1);async function z(){const d=await fetch(`${N()}/init`,{method:"POST",headers:de()});if(d.status===403){e.value=!0,r.value=!0,f.value="web_access_disabled";return}r.value=!1;const w=await d.text();w?(m.value=w,B.value=!1):B.value=!0}z();const V=t(async()=>{const d=localStorage.getItem("client_id");s=new WebSocket(`${Y()}?cid=${d}&auth=1`);const w=m.value??"",y=Q(w),k=ee(y);f.value="",e.value=!1,s.onopen=async()=>{o.value=!0;const i=await _e(),S=se(k,JSON.stringify({password:y,browserName:i.browser.name,browserVersion:i.browser.version,osName:i.os.name,osVersion:i.os.version,isMobile:i.isMobile}));s.send(ne(S))},s.onmessage=async i=>{var M;const S=te(k,oe(await i.data.arrayBuffer())),C=JSON.parse(S);C.status==="PENDING"?l.value=!0:(localStorage.setItem("auth_token",C.token),s.close(),window.location.href=((M=re.currentRoute.value.query.redirect)==null?void 0:M.toString())??"/")},s.onclose=async i=>{if(!(i.reason==="abort"||i.reason==="OK")){if(o.value=!1,e.value=!0,l.value=!1,!i.reason&&(await fetch(`${N()}/health_check`)).status===200){f.value="failed_connect_ws";return}f.value=`login.${i.reason?i.reason:"failed"}`}},window.setTimeout(function(){s.readyState!==1&&s.close(3001,"timeout")},2e3)});function J(){l.value=!1,e.value=!1,o.value=!1,s.close(3001,"abort")}return(d,w)=>{const y=we,k=fe;return T(),A(ce,null,[v("header",ye,[$(y,{"logged-in":!1})]),v("h1",null,p(d.$t("app_name")),1),v("div",ke,[E(v("form",{onSubmit:w[2]||(w[2]=ie((...i)=>c(V)&&c(V)(...i),["prevent"]))},[E(v("div",Se,[$(k),v("div",Ae,p(f.value?d.$t(f.value):""),1)],512),[[x,e.value]]),B.value?E((T(),A("md-outlined-text-field",{key:0,label:c(b)("password"),"onUpdate:modelValue":w[0]||(w[0]=i=>ae(m)?m.value=i:null),onKeydown:w[1]||(w[1]=le((...i)=>c(V)&&c(V)(...i),["enter"])),type:"password",class:"form-control",error:c(a),autocomplete:"current-password","error-text":c(a)?d.$t(c(a)):""},null,40,Ee)),[[ue,c(m)]]):P("",!0),r.value?P("",!0):(T(),A("md-filled-button",{key:1,disabled:c(o)},p(d.$t(c(o)?"logging_in":"log_in")),9,Te))],544),[[x,!l.value]]),E(v("div",null,[v("div",Be,[$(c(me))]),v("div",$e,p(d.$t("login.to_continue")),1),v("md-outlined-button",{onClick:J},p(d.$t("cancel")),1)],512),[[x,l.value]])]),c(u)?(T(),A("div",xe,p(d.$t("browser_warning")),1)):P("",!0)],64)}}}),Le=ve(Pe,[["__scopeId","data-v-596f5fe4"]]);export{Le as default}; diff --git a/app/src/main/resources/web/assets/MediaSidebar.vuevuetypescriptsetuptruelang-BEpTuoep.js b/app/src/main/resources/web/assets/MediaSidebar.vuevuetypescriptsetuptruelang-BEpTuoep.js deleted file mode 100644 index f0b5b7fc..00000000 --- a/app/src/main/resources/web/assets/MediaSidebar.vuevuetypescriptsetuptruelang-BEpTuoep.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as z}from"./LeftSidebar.vuevuetypescriptsetuptruelang-Bkp0VFG-.js";import{_ as j}from"./TagFilter.vuevuetypescriptsetuptruelang-DXYEFTYG.js";import{d as N,g as J,u as Q,h as y,aI as K,l as Z,C as W,aZ as X,a_ as R,a1 as I,a$ as U,o as d,c as h,P as Y,w as T,m as g,N as $,a as v,t as c,O as ee,i as D,s as V,I as te,aF as M,K as ae,J as r,k as se,v as oe,q as O,V as ne,e as A,aL as re,p as w,a6 as L,a0 as ie,a7 as le,f as F,a8 as ue}from"./index-B-S542RM.js";import{u as ce}from"./search-k8SzNgo1.js";import{h as pe}from"./feature-Cs4tKJbl.js";const de=["onClick"],ve={class:"title"},me={class:"count"},_e=N({__name:"BucketFilter",props:{type:{type:String,required:!0},selected:{type:String,required:!0}},setup(m){const _=m,{t:k}=J(),t=Q(),f=y([]),{view:a}=K(_.type),{refetch:S}=Z({handle:(o,l)=>{l?W(k(l),"error"):o&&(f.value=o.mediaBuckets)},document:X,variables:{type:_.type},appApi:!0}),i=o=>{o.type===_.type&&S()};return R(()=>{I.on("media_items_actioned",i)}),U(()=>{I.off("media_items_actioned",i)}),(o,l)=>(d(!0),h(ee,null,Y(f.value,s=>(d(),h("li",{key:s.id,onClick:T(p=>g(a)(g(t),s.id),["prevent"]),class:$({active:m.selected&&s.id===m.selected})},[v("span",ve,c(s.name),1),v("span",me,c(s.itemCount.toLocaleString()),1)],10,de))),128))}}),fe={class:"nav"},ye={class:"title"},he={key:0,class:"count"},ge={class:"title"},Ie={key:0,class:"count"},qe=N({__name:"MediaSidebar",props:{type:{type:String,required:!0},gql:{type:Object,required:!0}},setup(m){const _=D(),{app:k}=V(_),t=m,f=Q(),{counter:a}=V(D()),{parseQ:S}=ce(),i=te({tagIds:[]}),o=y(""),l=y(!1),s=y(""),p=y(""),q=M(()=>{var e,u,n;return t.type===r.IMAGE?((e=a.value)==null?void 0:e.images)??-1:t.type===r.VIDEO?((u=a.value)==null?void 0:u.videos)??-1:t.type===r.AUDIO?((n=a.value)==null?void 0:n.audios)??-1:-1}),B=M(()=>{var e,u,n;return t.type===r.IMAGE?((e=a.value)==null?void 0:e.imagesTrash)??-1:t.type===r.VIDEO?((u=a.value)==null?void 0:u.videosTrash)??-1:t.type===r.AUDIO?((n=a.value)==null?void 0:n.audiosTrash)??-1:-1}),{fetch:C}=ae({handle:e=>{e&&(t.type===r.IMAGE?(a.value.images=e.total,a.value.imagesTrash=e.trash):t.type===r.VIDEO?(a.value.videos=e.total,a.value.videosTrash=e.trash):t.type===r.AUDIO&&(a.value.audios=e.total,a.value.audiosTrash=e.trash))},document:t.gql,variables:()=>({}),appApi:!0});function E(){var n;const e=L.currentRoute.value;o.value=e.meta.group||"",C();const u=ie(((n=e.query.q)==null?void 0:n.toString())??"");S(i,u),s.value=i.tagIds.length===1?i.tagIds[0]:"",l.value=i.trash??!1,p.value=i.bucketId??"",s.value&&p.value&&(s.value=""),l.value&&(p.value="",s.value="")}E(),se(()=>L.currentRoute.value.fullPath,()=>{E()});function G(){const e=le([{name:"trash",op:"",value:"true"}]);F(f,`/${o.value}?q=${ue(e)}`)}function H(){F(f,`/${o.value}`)}const b=e=>{e.type===t.type&&C()};return R(()=>{I.on("media_items_actioned",b)}),U(()=>{I.off("media_items_actioned",b)}),(e,u)=>{const n=_e,P=j,x=z;return d(),oe(x,null,{title:O(()=>[ne(c(e.$t(`page_title.${o.value}`)),1)]),body:O(()=>[v("ul",fe,[v("li",{onClick:T(H,["prevent"]),class:$({active:!s.value&&!p.value&&!l.value})},[v("span",ye,c(e.$t("all")),1),q.value>=0?(d(),h("span",he,c(q.value.toLocaleString()),1)):A("",!0)],2),g(pe)(g(re).MEDIA_TRASH,g(k).osVersion)?(d(),h("li",{key:0,onClick:T(G,["prevent"]),class:$({active:l.value})},[v("span",ge,c(e.$t("trash")),1),B.value>=0?(d(),h("span",Ie,c(B.value.toLocaleString()),1)):A("",!0)],2)):A("",!0),w(n,{type:t.type,selected:p.value},null,8,["type","selected"])]),w(P,{type:t.type,selected:s.value},null,8,["type","selected"])]),_:1})}}});export{qe as _}; diff --git a/app/src/main/resources/web/assets/MediaSidebar.vuevuetypescriptsetuptruelang-BnNr5Ols.js b/app/src/main/resources/web/assets/MediaSidebar.vuevuetypescriptsetuptruelang-BnNr5Ols.js new file mode 100644 index 00000000..fe297c6b --- /dev/null +++ b/app/src/main/resources/web/assets/MediaSidebar.vuevuetypescriptsetuptruelang-BnNr5Ols.js @@ -0,0 +1 @@ +import{_ as W}from"./LeftSidebar.vuevuetypescriptsetuptruelang-qrlto0-t.js";import{_ as X}from"./TagFilter.vuevuetypescriptsetuptruelang-F0HSGzO6.js";import{d as N,g as Y,u as U,h as y,aM as Z,l as ee,C as te,b3 as se,af as x,a1 as T,ag as F,o as u,c as h,P as ae,w as A,m as g,N as b,a as d,t as p,O as oe,i as M,s as V,I as ne,aH as O,K as ie,J as i,k as re,S as le,v as L,q as I,V as ce,e as $,aQ as ue,aR as pe,x as de,p as S,a6 as Q,a0 as _e,a7 as me,f as R,a8 as ve,aP as he}from"./index-BXOWKrmL.js";import{u as fe}from"./search-B-8eugyA.js";const ye=["onClick"],ge={class:"title"},Te={class:"count"},qe=N({__name:"BucketFilter",props:{type:{type:String,required:!0},selected:{type:String,required:!0}},setup(_){const m=_,{t:q}=Y(),t=U(),f=y([]),{view:s}=Z(m.type),{refetch:k}=ee({handle:(o,l)=>{l?te(q(l),"error"):o&&(f.value=o.mediaBuckets)},document:se,variables:{type:m.type},appApi:!0}),r=o=>{o.type===m.type&&k()};return x(()=>{T.on("media_items_actioned",r)}),F(()=>{T.off("media_items_actioned",r)}),(o,l)=>(u(!0),h(oe,null,ae(f.value,a=>(u(),h("li",{key:a.id,onClick:A(v=>g(s)(g(t),a.id),["prevent"]),class:b({active:_.selected&&a.id===_.selected})},[d("span",ge,p(a.name),1),d("span",Te,p(a.itemCount.toLocaleString()),1)],10,ye))),128))}}),ke={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ie=d("path",{fill:"currentColor",d:"M11.95 18q.525 0 .888-.363t.362-.887t-.362-.888t-.888-.362t-.887.363t-.363.887t.363.888t.887.362m.05 4q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12t-.788 3.9t-2.137 3.175t-3.175 2.138T12 22m0-2q3.35 0 5.675-2.325T20 12t-2.325-5.675T12 4T6.325 6.325T4 12t2.325 5.675T12 20m.1-12.3q.625 0 1.088.4t.462 1q0 .55-.337.975t-.763.8q-.575.5-1.012 1.1t-.438 1.35q0 .35.263.588t.612.237q.375 0 .638-.25t.337-.625q.1-.525.45-.937t.75-.788q.575-.55.988-1.2t.412-1.45q0-1.275-1.037-2.087T12.1 6q-.95 0-1.812.4T8.975 7.625q-.175.3-.112.638t.337.512q.35.2.725.125t.625-.425q.275-.375.688-.575t.862-.2"},null,-1),$e=[Ie];function Se(_,m){return u(),h("svg",ke,[...$e])}const Ae={name:"material-symbols-help-outline-rounded",render:Se},be={class:"nav"},Be={class:"title"},Ce={key:0,class:"count"},De={class:"title"},we={key:0,class:"count"},Le=N({__name:"MediaSidebar",props:{type:{type:String,required:!0},gql:{type:Object,required:!0}},setup(_){const m=M(),{app:q}=V(m),t=_,f=U(),{counter:s}=V(M()),{parseQ:k}=fe(),r=ne({tagIds:[]}),o=y(""),l=y(!1),a=y(""),v=y(""),B=O(()=>{var e,c,n;return t.type===i.IMAGE?((e=s.value)==null?void 0:e.images)??-1:t.type===i.VIDEO?((c=s.value)==null?void 0:c.videos)??-1:t.type===i.AUDIO?((n=s.value)==null?void 0:n.audios)??-1:-1}),C=O(()=>{var e,c,n;return t.type===i.IMAGE?((e=s.value)==null?void 0:e.imagesTrash)??-1:t.type===i.VIDEO?((c=s.value)==null?void 0:c.videosTrash)??-1:t.type===i.AUDIO?((n=s.value)==null?void 0:n.audiosTrash)??-1:-1}),{fetch:D}=ie({handle:e=>{e&&(t.type===i.IMAGE?(s.value.images=e.total,s.value.imagesTrash=e.trash):t.type===i.VIDEO?(s.value.videos=e.total,s.value.videosTrash=e.trash):t.type===i.AUDIO&&(s.value.audios=e.total,s.value.audiosTrash=e.trash))},document:t.gql,variables:()=>({}),appApi:!0});function w(){var n;const e=Q.currentRoute.value;o.value=e.meta.group||"",D();const c=_e(((n=e.query.q)==null?void 0:n.toString())??"");k(r,c),a.value=r.tagIds.length===1?r.tagIds[0]:"",l.value=r.trash??!1,v.value=r.bucketId??"",a.value&&v.value&&(a.value=""),l.value&&(v.value="",a.value="")}w(),re(()=>Q.currentRoute.value.fullPath,()=>{w()});function G(){const e=me([{name:"trash",op:"",value:"true"}]);R(f,`/${o.value}?q=${ve(e)}`)}function H(){R(f,`/${o.value}`)}const E=e=>{e.type===t.type&&D()};return x(()=>{T.on("media_items_actioned",E)}),F(()=>{T.off("media_items_actioned",E)}),(e,c)=>{const n=Ae,P=he,z=qe,j=X,J=W,K=le("tooltip");return u(),L(J,null,{title:I(()=>[ce(p(e.$t(`page_title.${o.value}`)),1)]),body:I(()=>[d("ul",be,[d("li",{onClick:A(H,["prevent"]),class:b({active:!a.value&&!v.value&&!l.value})},[d("span",Be,p(e.$t("all")),1),B.value>=0?(u(),h("span",Ce,p(B.value.toLocaleString()),1)):$("",!0)],2),g(ue)(g(pe).MEDIA_TRASH,g(q).osVersion)?(u(),h("li",{key:0,onClick:A(G,["prevent"]),class:b({active:l.value})},[d("span",De,p(e.$t("trash")),1),de((u(),L(P,{class:"btn-help sm"},{icon:I(()=>[S(n)]),_:1})),[[K,e.$t("trash_tips")]]),C.value>=0?(u(),h("span",we,p(C.value.toLocaleString()),1)):$("",!0)],2)):$("",!0),S(z,{type:t.type,selected:v.value},null,8,["type","selected"])]),S(j,{type:t.type,selected:a.value},null,8,["type","selected"])]),_:1})}}});export{Le as _}; diff --git a/app/src/main/resources/web/assets/MessagesSidebar-BMS62ogM.js b/app/src/main/resources/web/assets/MessagesSidebar-DAJJAbQR.js similarity index 77% rename from app/src/main/resources/web/assets/MessagesSidebar-BMS62ogM.js rename to app/src/main/resources/web/assets/MessagesSidebar-DAJJAbQR.js index e3946ea3..33384ce5 100644 --- a/app/src/main/resources/web/assets/MessagesSidebar-BMS62ogM.js +++ b/app/src/main/resources/web/assets/MessagesSidebar-DAJJAbQR.js @@ -1 +1 @@ -import{_ as I}from"./LeftSidebar.vuevuetypescriptsetuptruelang-Bkp0VFG-.js";import{_ as L}from"./TagFilter.vuevuetypescriptsetuptruelang-DXYEFTYG.js";import{d as M,u as N,s as V,i as Q,I as A,h as m,K as R,k as x,v as z,q as g,a5 as P,a6 as y,a0 as D,o as u,V as E,t,a,w as h,N as S,m as k,c as _,e as C,P as F,O as G,p as K,a7 as O,f as $,a8 as j}from"./index-B-S542RM.js";import{u as H}from"./search-k8SzNgo1.js";import"./more-vert-XZtlvs7x.js";import"./EditValueModal-u3M261_O.js";import"./vee-validate.esm-D5u4WlYW.js";const J={class:"nav"},U={class:"title"},W={key:0,class:"count"},X=["onClick"],Y={class:"title"},Z={key:0,class:"count"},ie=M({__name:"MessagesSidebar",setup(ee){const d=N(),{counter:p}=V(Q()),{parseQ:B}=H(),o=A({tagIds:[]}),n=m(""),c=m(""),r=m(new Map),{fetch:b}=R({handle:e=>{e&&(p.value.messages=e.total,r.value.set("1",e.inbox),r.value.set("2",e.sent),r.value.set("3",e.drafts))},document:P,variables:()=>({}),appApi:!0});function v(e){return r.value.get(e)??-1}function f(){var i;const e=y.currentRoute.value,l=D(((i=e.query.q)==null?void 0:i.toString())??"");B(o,l),n.value=o.type??"",c.value=o.tagIds.length===1?o.tagIds[0]:"",n.value&&(c.value=""),b()}f(),x(()=>y.currentRoute.value,()=>{f()});function q(e){const l=O([{name:"type",op:"",value:e}]);$(d,`/messages?q=${j(l)}`)}function w(){$(d,"/messages")}return(e,l)=>{const i=L,T=I;return u(),z(T,null,{title:g(()=>[E(t(e.$t("page_title.messages")),1)]),body:g(()=>[a("ul",J,[a("li",{onClick:h(w,["prevent"]),class:S({active:!c.value&&!n.value})},[a("span",U,t(e.$t("all")),1),k(p).messages>=0?(u(),_("span",W,t(k(p).messages.toLocaleString()),1)):C("",!0)],2),(u(),_(G,null,F(["1","2","3"],s=>a("li",{key:s,onClick:h(se=>q(s),["prevent"]),class:S({active:s===n.value})},[a("span",Y,t(e.$t(`message_type.${s}`)),1),v(s)>=0?(u(),_("span",Z,t(v(s).toLocaleString()),1)):C("",!0)],10,X)),64))]),K(i,{type:"SMS",selected:c.value},null,8,["selected"])]),_:1})}}});export{ie as default}; +import{_ as I}from"./LeftSidebar.vuevuetypescriptsetuptruelang-qrlto0-t.js";import{_ as L}from"./TagFilter.vuevuetypescriptsetuptruelang-F0HSGzO6.js";import{d as M,u as N,s as V,i as Q,I as A,h as m,K as R,k as x,v as z,q as g,a5 as P,a6 as y,a0 as D,o as u,V as E,t,a,w as h,N as S,m as k,c as _,e as C,P as F,O as G,p as K,a7 as O,f as $,a8 as j}from"./index-BXOWKrmL.js";import{u as H}from"./search-B-8eugyA.js";import"./more-vert-B_3Etgle.js";import"./EditValueModal-HQ024-FF.js";import"./vee-validate.esm-Bmkx0D8v.js";const J={class:"nav"},U={class:"title"},W={key:0,class:"count"},X=["onClick"],Y={class:"title"},Z={key:0,class:"count"},ie=M({__name:"MessagesSidebar",setup(ee){const d=N(),{counter:p}=V(Q()),{parseQ:B}=H(),o=A({tagIds:[]}),n=m(""),c=m(""),r=m(new Map),{fetch:b}=R({handle:e=>{e&&(p.value.messages=e.total,r.value.set("1",e.inbox),r.value.set("2",e.sent),r.value.set("3",e.drafts))},document:P,variables:()=>({}),appApi:!0});function v(e){return r.value.get(e)??-1}function f(){var i;const e=y.currentRoute.value,l=D(((i=e.query.q)==null?void 0:i.toString())??"");B(o,l),n.value=o.type??"",c.value=o.tagIds.length===1?o.tagIds[0]:"",n.value&&(c.value=""),b()}f(),x(()=>y.currentRoute.value,()=>{f()});function q(e){const l=O([{name:"type",op:"",value:e}]);$(d,`/messages?q=${j(l)}`)}function w(){$(d,"/messages")}return(e,l)=>{const i=L,T=I;return u(),z(T,null,{title:g(()=>[E(t(e.$t("page_title.messages")),1)]),body:g(()=>[a("ul",J,[a("li",{onClick:h(w,["prevent"]),class:S({active:!c.value&&!n.value})},[a("span",U,t(e.$t("all")),1),k(p).messages>=0?(u(),_("span",W,t(k(p).messages.toLocaleString()),1)):C("",!0)],2),(u(),_(G,null,F(["1","2","3"],s=>a("li",{key:s,onClick:h(se=>q(s),["prevent"]),class:S({active:s===n.value})},[a("span",Y,t(e.$t(`message_type.${s}`)),1),v(s)>=0?(u(),_("span",Z,t(v(s).toLocaleString()),1)):C("",!0)],10,X)),64))]),K(i,{type:"SMS",selected:c.value},null,8,["selected"])]),_:1})}}});export{ie as default}; diff --git a/app/src/main/resources/web/assets/MessagesView-BAu1BpGj.js b/app/src/main/resources/web/assets/MessagesView-CWAdJC92.js similarity index 93% rename from app/src/main/resources/web/assets/MessagesView-BAu1BpGj.js rename to app/src/main/resources/web/assets/MessagesView-CWAdJC92.js index a6bc494e..1e0c4f14 100644 --- a/app/src/main/resources/web/assets/MessagesView-BAu1BpGj.js +++ b/app/src/main/resources/web/assets/MessagesView-CWAdJC92.js @@ -1 +1 @@ -import{_ as ye}from"./VPagination.vuevuetypescriptsetuptruelang-DUdPyPtr.js";import{d as be,u as we,s as Ce,i as Se,h as w,g as Te,I as $e,J as Le,K as Me,j as Ie,L as xe,M as Ae,c as n,a,m as e,t as i,x as C,w as u,p as r,e as S,N as J,O as q,P as W,v as De,Q as qe,f as Ve,C as Ee,R as Ue,B as Be,S as Ne,o,T as Re,U as He,V as Ke,W as Qe,X as ze,F as Ge,G as Pe,Y as Fe,Z as Oe,$ as je,a0 as Je,a1 as T,a2 as We,a3 as Xe,a4 as Ye,H as Ze}from"./index-B-S542RM.js";import{_ as es}from"./call-outline-rounded-Z-SDSaoi.js";import{_ as ss,a as ts}from"./SearchInput-D0d2xIiv.js";import{u as as,a as os}from"./tags-x91i2rzh.js";import{u as ns,a as ls}from"./key-events-D1Kh05Em.js";import{u as cs}from"./search-k8SzNgo1.js";import"./search-rounded-TCa6qTC1.js";import"./rss-feed-rounded-DzJ3TVan.js";import"./vee-validate.esm-D5u4WlYW.js";const $=h=>(Ge("data-v-68325306"),h=h(),Pe(),h),is={class:"top-app-bar"},ds=["checked","indeterminate"],rs={class:"title"},_s={key:0},us={key:1},ps=$(()=>a("md-ripple",null,null,-1)),ms={class:"actions"},vs={class:"scroll-content"},gs=["onClick","onMouseover"],hs={class:"start"},ks=["onClick","checked"],fs=["onClick","checked"],ys={class:"number"},bs={class:"title"},ws=["innerHTML"],Cs={class:"actions"},Ss=["onClick"],Ts=$(()=>a("md-ripple",null,null,-1)),$s={key:0,indeterminate:"",class:"spinner-sm"},Ls=["onClick"],Ms=$(()=>a("md-ripple",null,null,-1)),Is={class:"info"},xs={class:"time"},As={class:"start"},Ds=$(()=>a("div",{class:"checkbox"},[a("div",{class:"skeleton-checkbox"})],-1)),qs={class:"number"},Vs=Fe('
',5),Es={key:0,class:"no-data-placeholder"},p=50,Us=be({__name:"MessagesView",setup(h){var j;const X=we(),{app:Y}=Ce(Se()),m=w([]),{t:V}=Te(),{parseQ:Z}=cs(),E=$e({tagIds:[]}),_=Le.SMS,U=qe(),B=U.query,L=w(parseInt(((j=B.page)==null?void 0:j.toString())??"1")),k=w(""),{tags:f,fetch:ee}=as(_),{addToTags:se}=os(_,f),{selectedIds:v,allChecked:N,realAllChecked:M,selectRealAll:te,allCheckedAlertVisible:ae,clearSelection:I,toggleAllChecked:R,toggleSelect:H,total:d,checked:x,shiftEffectingIds:K,handleItemClick:oe,handleMouseOver:ne,selectAll:le,shouldSelect:ce}=ns(m),Q=s=>{const l=U.query.q;Ve(X,l?`/messages?page=${s}&q=${l}`:`/messages?page=${s}`)},{keyDown:z,keyUp:G}=ls(d,p,L,le,I,Q,()=>{}),{loading:A,fetch:D}=Me({handle:(s,l)=>{l?Ee(V(l),"error"):s&&(m.value=s.messages,d.value=s.messageCount)},document:Ue,variables:()=>({offset:(L.value-1)*p,limit:p,query:k.value}),appApi:!0}),ie=["1","2","3"].map(s=>({id:s,name:V("message_type."+s)}));function de(s){Oe(je,{type:_,tags:f.value,item:{key:s.id,title:"",size:0},selected:f.value.filter(l=>s.tags.some(y=>y.id===l.id))})}const P=w(""),{mutate:re,loading:_e}=Ie({document:Be,appApi:!0});function ue(s){P.value=s.id,re({number:s.address})}function pe(s){return s?`/messages?q=${s}`:"/messages"}const F=s=>{s.type===_&&(I(),D())},O=s=>{s.type===_&&D()};return xe(()=>{var s;k.value=Je(((s=B.q)==null?void 0:s.toString())??""),Z(E,k.value),ee(),D(),T.on("item_tags_updated",O),T.on("items_tags_updated",F),window.addEventListener("keydown",z),window.addEventListener("keyup",G)}),Ae(()=>{T.off("item_tags_updated",O),T.off("items_tags_updated",F),window.removeEventListener("keydown",z),window.removeEventListener("keyup",G)}),(s,l)=>{const y=We,me=ss,ve=ts,ge=Xe,he=es,ke=Ye,fe=ye,b=Ne("tooltip");return o(),n(q,null,[a("div",is,[a("md-checkbox",{"touch-target":"wrapper",onChange:l[0]||(l[0]=(...t)=>e(R)&&e(R)(...t)),checked:e(N),indeterminate:!e(N)&&e(x)},null,40,ds),a("div",rs,[e(v).length?(o(),n("span",_s,i(s.$t("x_selected",{count:e(M)?e(d).toLocaleString():e(v).length.toLocaleString()})),1)):(o(),n("span",us,i(s.$t("page_title.messages"))+" ("+i(e(d).toLocaleString())+")",1)),e(x)?C((o(),n("button",{key:2,class:"btn-icon",onClick:l[1]||(l[1]=u(t=>e(se)(e(v),e(M),k.value),["stop"]))},[ps,r(y)])),[[b,s.$t("add_to_tags")]]):S("",!0)]),a("div",ms,[r(me,{filter:E,tags:e(f),types:e(ie),"get-url":pe},null,8,["filter","tags","types"])])]),r(ve,{limit:p,total:e(d),"all-checked-alert-visible":e(ae),"real-all-checked":e(M),"select-real-all":e(te),"clear-selection":e(I)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),a("div",vs,[a("div",{class:J(["sms-list",{"select-mode":e(x)}])},[(o(!0),n(q,null,W(m.value,(t,g)=>(o(),n("section",{class:J(["sms-item selectable-card",{selected:e(v).includes(t.id),selecting:e(K).includes(t.id)}]),key:t.id,onClick:u(c=>e(oe)(c,t,g,()=>{}),["stop"]),onMouseover:c=>e(ne)(c,g)},[a("div",hs,[e(K).includes(t.id)?(o(),n("md-checkbox",{key:0,class:"checkbox","touch-target":"wrapper",onClick:u(c=>e(H)(c,t,g),["stop"]),checked:e(ce)},null,8,ks)):(o(),n("md-checkbox",{key:1,class:"checkbox","touch-target":"wrapper",onClick:u(c=>e(H)(c,t,g),["stop"]),checked:e(v).includes(t.id)},null,8,fs)),a("span",ys,[r(ge,{id:g+1,raw:t},null,8,["id","raw"])])]),a("div",bs,i(t.address),1),a("div",{class:"subtitle",innerHTML:e(Re)(t.body)},null,8,ws),a("div",Cs,[C((o(),n("button",{class:"btn-icon sm",onClick:u(c=>de(t),["stop"])},[Ts,r(y)],8,Ss)),[[b,s.$t("add_to_tags")]]),e(_e)&&P.value===t.id?(o(),n("md-circular-progress",$s)):C((o(),n("button",{key:1,class:"btn-icon sm",onClick:u(c=>ue(t),["stop"])},[Ms,r(he)],8,Ls)),[[b,s.$t("make_a_phone_call")]])]),a("div",Is,[a("span",null,i(s.$t(`message_type.${t.type}`)),1),r(ke,{tags:t.tags,type:e(_),"only-links":!0},null,8,["tags","type"])]),a("div",xs,[C((o(),n("span",null,[Ke(i(e(Qe)(t.date)),1)])),[[b,e(He)(t.date)]])])],42,gs))),128)),e(A)&&m.value.length===0?(o(),n(q,{key:0},W(20,t=>a("section",{class:"sms-item selectable-card-skeleton",key:t},[a("div",As,[Ds,a("span",qs,i(t),1)]),Vs])),64)):S("",!0)],2),!e(A)&&m.value.length===0?(o(),n("div",Es,i(s.$t(e(ze)(e(A),e(Y).permissions,"READ_SMS"))),1)):S("",!0),e(d)>p?(o(),De(fe,{key:1,page:L.value,go:Q,total:e(d),limit:p},null,8,["page","total"])):S("",!0)])],64)}}}),Os=Ze(Us,[["__scopeId","data-v-68325306"]]);export{Os as default}; +import{_ as ye}from"./VPagination.vuevuetypescriptsetuptruelang-Cqtk1_Un.js";import{d as be,u as we,s as Ce,i as Se,h as w,g as Te,I as $e,J as Le,K as Me,j as Ie,L as xe,M as Ae,c as n,a,m as e,t as i,x as C,w as u,p as r,e as S,N as J,O as q,P as W,v as De,Q as qe,f as Ve,C as Ee,R as Ue,B as Be,S as Ne,o,T as Re,U as He,V as Ke,W as Qe,X as ze,F as Ge,G as Pe,Y as Fe,Z as Oe,$ as je,a0 as Je,a1 as T,a2 as We,a3 as Xe,a4 as Ye,H as Ze}from"./index-BXOWKrmL.js";import{_ as es}from"./call-outline-rounded-BPfmAopM.js";import{_ as ss,a as ts}from"./SearchInput-ZLdB9f4z.js";import{u as as,a as os}from"./tags-BpDG2_1g.js";import{u as ns,a as ls}from"./key-events-DpI8L-ce.js";import{u as cs}from"./search-B-8eugyA.js";import"./search-rounded-DpdJ2cSK.js";import"./rss-feed-rounded-DN7yBBrR.js";import"./vee-validate.esm-Bmkx0D8v.js";const $=h=>(Ge("data-v-68325306"),h=h(),Pe(),h),is={class:"top-app-bar"},ds=["checked","indeterminate"],rs={class:"title"},_s={key:0},us={key:1},ps=$(()=>a("md-ripple",null,null,-1)),ms={class:"actions"},vs={class:"scroll-content"},gs=["onClick","onMouseover"],hs={class:"start"},ks=["onClick","checked"],fs=["onClick","checked"],ys={class:"number"},bs={class:"title"},ws=["innerHTML"],Cs={class:"actions"},Ss=["onClick"],Ts=$(()=>a("md-ripple",null,null,-1)),$s={key:0,indeterminate:"",class:"spinner-sm"},Ls=["onClick"],Ms=$(()=>a("md-ripple",null,null,-1)),Is={class:"info"},xs={class:"time"},As={class:"start"},Ds=$(()=>a("div",{class:"checkbox"},[a("div",{class:"skeleton-checkbox"})],-1)),qs={class:"number"},Vs=Fe('
',5),Es={key:0,class:"no-data-placeholder"},p=50,Us=be({__name:"MessagesView",setup(h){var j;const X=we(),{app:Y}=Ce(Se()),m=w([]),{t:V}=Te(),{parseQ:Z}=cs(),E=$e({tagIds:[]}),_=Le.SMS,U=qe(),B=U.query,L=w(parseInt(((j=B.page)==null?void 0:j.toString())??"1")),k=w(""),{tags:f,fetch:ee}=as(_),{addToTags:se}=os(_,f),{selectedIds:v,allChecked:N,realAllChecked:M,selectRealAll:te,allCheckedAlertVisible:ae,clearSelection:I,toggleAllChecked:R,toggleSelect:H,total:d,checked:x,shiftEffectingIds:K,handleItemClick:oe,handleMouseOver:ne,selectAll:le,shouldSelect:ce}=ns(m),Q=s=>{const l=U.query.q;Ve(X,l?`/messages?page=${s}&q=${l}`:`/messages?page=${s}`)},{keyDown:z,keyUp:G}=ls(d,p,L,le,I,Q,()=>{}),{loading:A,fetch:D}=Me({handle:(s,l)=>{l?Ee(V(l),"error"):s&&(m.value=s.messages,d.value=s.messageCount)},document:Ue,variables:()=>({offset:(L.value-1)*p,limit:p,query:k.value}),appApi:!0}),ie=["1","2","3"].map(s=>({id:s,name:V("message_type."+s)}));function de(s){Oe(je,{type:_,tags:f.value,item:{key:s.id,title:"",size:0},selected:f.value.filter(l=>s.tags.some(y=>y.id===l.id))})}const P=w(""),{mutate:re,loading:_e}=Ie({document:Be,appApi:!0});function ue(s){P.value=s.id,re({number:s.address})}function pe(s){return s?`/messages?q=${s}`:"/messages"}const F=s=>{s.type===_&&(I(),D())},O=s=>{s.type===_&&D()};return xe(()=>{var s;k.value=Je(((s=B.q)==null?void 0:s.toString())??""),Z(E,k.value),ee(),D(),T.on("item_tags_updated",O),T.on("items_tags_updated",F),window.addEventListener("keydown",z),window.addEventListener("keyup",G)}),Ae(()=>{T.off("item_tags_updated",O),T.off("items_tags_updated",F),window.removeEventListener("keydown",z),window.removeEventListener("keyup",G)}),(s,l)=>{const y=We,me=ss,ve=ts,ge=Xe,he=es,ke=Ye,fe=ye,b=Ne("tooltip");return o(),n(q,null,[a("div",is,[a("md-checkbox",{"touch-target":"wrapper",onChange:l[0]||(l[0]=(...t)=>e(R)&&e(R)(...t)),checked:e(N),indeterminate:!e(N)&&e(x)},null,40,ds),a("div",rs,[e(v).length?(o(),n("span",_s,i(s.$t("x_selected",{count:e(M)?e(d).toLocaleString():e(v).length.toLocaleString()})),1)):(o(),n("span",us,i(s.$t("page_title.messages"))+" ("+i(e(d).toLocaleString())+")",1)),e(x)?C((o(),n("button",{key:2,class:"btn-icon",onClick:l[1]||(l[1]=u(t=>e(se)(e(v),e(M),k.value),["stop"]))},[ps,r(y)])),[[b,s.$t("add_to_tags")]]):S("",!0)]),a("div",ms,[r(me,{filter:E,tags:e(f),types:e(ie),"get-url":pe},null,8,["filter","tags","types"])])]),r(ve,{limit:p,total:e(d),"all-checked-alert-visible":e(ae),"real-all-checked":e(M),"select-real-all":e(te),"clear-selection":e(I)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),a("div",vs,[a("div",{class:J(["sms-list",{"select-mode":e(x)}])},[(o(!0),n(q,null,W(m.value,(t,g)=>(o(),n("section",{class:J(["sms-item selectable-card",{selected:e(v).includes(t.id),selecting:e(K).includes(t.id)}]),key:t.id,onClick:u(c=>e(oe)(c,t,g,()=>{}),["stop"]),onMouseover:c=>e(ne)(c,g)},[a("div",hs,[e(K).includes(t.id)?(o(),n("md-checkbox",{key:0,class:"checkbox","touch-target":"wrapper",onClick:u(c=>e(H)(c,t,g),["stop"]),checked:e(ce)},null,8,ks)):(o(),n("md-checkbox",{key:1,class:"checkbox","touch-target":"wrapper",onClick:u(c=>e(H)(c,t,g),["stop"]),checked:e(v).includes(t.id)},null,8,fs)),a("span",ys,[r(ge,{id:g+1,raw:t},null,8,["id","raw"])])]),a("div",bs,i(t.address),1),a("div",{class:"subtitle",innerHTML:e(Re)(t.body)},null,8,ws),a("div",Cs,[C((o(),n("button",{class:"btn-icon sm",onClick:u(c=>de(t),["stop"])},[Ts,r(y)],8,Ss)),[[b,s.$t("add_to_tags")]]),e(_e)&&P.value===t.id?(o(),n("md-circular-progress",$s)):C((o(),n("button",{key:1,class:"btn-icon sm",onClick:u(c=>ue(t),["stop"])},[Ms,r(he)],8,Ls)),[[b,s.$t("make_a_phone_call")]])]),a("div",Is,[a("span",null,i(s.$t(`message_type.${t.type}`)),1),r(ke,{tags:t.tags,type:e(_),"only-links":!0},null,8,["tags","type"])]),a("div",xs,[C((o(),n("span",null,[Ke(i(e(Qe)(t.date)),1)])),[[b,e(He)(t.date)]])])],42,gs))),128)),e(A)&&m.value.length===0?(o(),n(q,{key:0},W(20,t=>a("section",{class:"sms-item selectable-card-skeleton",key:t},[a("div",As,[Ds,a("span",qs,i(t),1)]),Vs])),64)):S("",!0)],2),!e(A)&&m.value.length===0?(o(),n("div",Es,i(s.$t(e(ze)(e(A),e(Y).permissions,"READ_SMS"))),1)):S("",!0),e(d)>p?(o(),De(fe,{key:1,page:L.value,go:Q,total:e(d),limit:p},null,8,["page","total"])):S("",!0)])],64)}}}),Os=Ze(Us,[["__scopeId","data-v-68325306"]]);export{Os as default}; diff --git a/app/src/main/resources/web/assets/MonacoEditor.vuevuetypescriptsetuptruelang-WcUH3tOp.js b/app/src/main/resources/web/assets/MonacoEditor.vuevuetypescriptsetuptruelang-BFVbtP9H.js similarity index 99% rename from app/src/main/resources/web/assets/MonacoEditor.vuevuetypescriptsetuptruelang-WcUH3tOp.js rename to app/src/main/resources/web/assets/MonacoEditor.vuevuetypescriptsetuptruelang-BFVbtP9H.js index 56dd9238..63107581 100644 --- a/app/src/main/resources/web/assets/MonacoEditor.vuevuetypescriptsetuptruelang-WcUH3tOp.js +++ b/app/src/main/resources/web/assets/MonacoEditor.vuevuetypescriptsetuptruelang-BFVbtP9H.js @@ -1,5 +1,5 @@ -const __vite__fileDeps=["assets/freemarker2-DxReyA8H.js","assets/index-B-S542RM.js","assets/index-BmZHXB9N.css","assets/handlebars-C85M79z7.js","assets/html-C5tELRuq.js","assets/javascript-y_salJpA.js","assets/typescript-DjqF3dw5.js","assets/liquid-Fl2zqidz.js","assets/python-D0LZW9ZO.js","assets/razor-CeyM33ZD.js","assets/xml-DjjEpseC.js","assets/yaml-DjsvKETB.js","assets/cssMode-DGmecgny.js","assets/htmlMode-CU43yFfm.js","assets/jsonMode-ivlzjmY8.js","assets/tsMode-Damxf_us.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -var o6=Object.defineProperty;var r6=(o,e,t)=>e in o?o6(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var Zt=(o,e,t)=>(r6(o,typeof e!="symbol"?e+"":e,t),t);import{cj as me,d as a6,ck as l6,aF as d6,c7 as c6,h as h6,a_ as DT,k as k0,a1 as xT,a$ as u6,o as f6,c as g6,n as p6}from"./index-B-S542RM.js";let m6=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function _6(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}),m6&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function g(o,e,...t){return _6(e,t)}var IS;const mp="en";let Ib=!1,Eb=!1,Uv=!1,r4=!1,pE=!1,mE=!1,a4=!1,I0,$v=mp,v6,Zo;const ci=typeof self=="object"?self:typeof global=="object"?global:{};let Rn;typeof ci.vscode<"u"&&typeof ci.vscode.process<"u"?Rn=ci.vscode.process:typeof process<"u"&&(Rn=process);const b6=typeof((IS=Rn==null?void 0:Rn.versions)===null||IS===void 0?void 0:IS.electron)=="string",C6=b6&&(Rn==null?void 0:Rn.type)==="renderer";if(typeof navigator=="object"&&!C6)Zo=navigator.userAgent,Ib=Zo.indexOf("Windows")>=0,Eb=Zo.indexOf("Macintosh")>=0,mE=(Zo.indexOf("Macintosh")>=0||Zo.indexOf("iPad")>=0||Zo.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Uv=Zo.indexOf("Linux")>=0,a4=(Zo==null?void 0:Zo.indexOf("Mobi"))>=0,pE=!0,g({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),I0=mp,$v=I0;else if(typeof Rn=="object"){Ib=Rn.platform==="win32",Eb=Rn.platform==="darwin",Uv=Rn.platform==="linux",Uv&&Rn.env.SNAP&&Rn.env.SNAP_REVISION,Rn.env.CI||Rn.env.BUILD_ARTIFACTSTAGINGDIRECTORY,I0=mp,$v=mp;const o=Rn.env.VSCODE_NLS_CONFIG;if(o)try{const e=JSON.parse(o),t=e.availableLanguages["*"];I0=e.locale,$v=t||mp,v6=e._translationsConfigFile}catch{}r4=!0}else console.error("Unable to resolve platform.");const Qi=Ib,Ke=Eb,hn=Uv,ur=r4,Kd=pE,w6=pE&&typeof ci.importScripts=="function",fa=mE,S6=a4,ga=Zo,y6=$v,L6=typeof ci.postMessage=="function"&&!ci.importScripts,l4=(()=>{if(L6){const o=[];ci.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}),ci.postMessage({vscodeScheduleAsyncWork:i},"*")}}return o=>setTimeout(o)})(),Ps=Eb||mE?2:Ib?1:3;let kT=!0,IT=!1;function d4(){if(!IT){IT=!0;const o=new Uint8Array(2);o[0]=1,o[1]=2,kT=new Uint16Array(o.buffer)[0]===513}return kT}const c4=!!(ga&&ga.indexOf("Chrome")>=0),D6=!!(ga&&ga.indexOf("Firefox")>=0),x6=!!(!c4&&ga&&ga.indexOf("Safari")>=0),k6=!!(ga&&ga.indexOf("Edg/")>=0);ga&&ga.indexOf("Android")>=0;var it;(function(o){function e(b){return b&&typeof b=="object"&&typeof b[Symbol.iterator]=="function"}o.is=e;const t=Object.freeze([]);function i(){return t}o.empty=i;function*n(b){yield b}o.single=n;function s(b){return e(b)?b:n(b)}o.wrap=s;function r(b){return b||t}o.from=r;function a(b){return!b||b[Symbol.iterator]().next().done===!0}o.isEmpty=a;function l(b){return b[Symbol.iterator]().next().value}o.first=l;function d(b,v){for(const C of b)if(v(C))return!0;return!1}o.some=d;function c(b,v){for(const C of b)if(v(C))return C}o.find=c;function*h(b,v){for(const C of b)v(C)&&(yield C)}o.filter=h;function*u(b,v){let C=0;for(const S of b)yield v(S,C++)}o.map=u;function*f(...b){for(const v of b)for(const C of v)yield C}o.concat=f;function p(b,v,C){let S=C;for(const x of b)S=v(S,x);return S}o.reduce=p;function*m(b,v,C=b.length){for(v<0&&(v+=b.length),C<0?C+=b.length:C>b.length&&(C=b.length);v{n||(n=!0,this._remove(i))}}shift(){if(this._first!==vi.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==vi.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==vi.Undefined&&e.next!==vi.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===vi.Undefined&&e.next===vi.Undefined?(this._first=vi.Undefined,this._last=vi.Undefined):e.next===vi.Undefined?(this._last=this._last.prev,this._last.next=vi.Undefined):e.prev===vi.Undefined&&(this._first=this._first.next,this._first.prev=vi.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==vi.Undefined;)yield e.element,e=e.next}}const h4="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function I6(o=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of h4)o.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const _E=I6();function u4(o){let e=_E;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 f4=new ln;f4.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function _m(o,e,t,i,n){if(n||(n=it.first(f4)),t.length>n.maxLen){let d=o-n.maxLen/2;return d<0?d=0:i+=d,t=t.substring(d,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 d=1;!(Date.now()-s>=n.timeBudget);d++){const c=r-n.windowSize*d;e.lastIndex=Math.max(0,c);const h=E6(e,t,r,a);if(!h&&l||(l=h,c<=0))break;a=c}if(l){const d={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,d}return null}function E6(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 N6(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 M6(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 g4(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 NT(o){let e=0;for(let t=0;t0}function Dd(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 m4(o,e){const t=A6(o,e);if(t!==-1)return o[t]}function A6(o,e){for(let t=o.length-1;t>=0;t--){const i=o[t];if(e(i))return t}return-1}function _4(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 y1(o,e,t){const i=o.slice(0,e),n=o.slice(e);return i.concat(t,n)}function ES(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.unshift(e))}function E0(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.push(e))}function TT(o,e){for(const t of e)o.push(t)}function vE(o){return Array.isArray(o)?o:[o]}function R6(o,e,t){const i=v4(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})($L||($L={}));function Vp(o,e){return(t,i)=>e(o(t),o(i))}const P6=(o,e)=>o-e;function b4(o,e){if(o.length===0)return;let t=o[0];for(let i=1;i0&&(t=n)}return t}function O6(o,e){if(o.length===0)return;let t=o[0];for(let i=1;i=0&&(t=n)}return t}function F6(o,e){return b4(o,(t,i)=>-e(t,i))}class Nf{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||$L.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 B6(o){const e=Object.getPrototypeOf(Uint8Array);return typeof o=="object"&&o instanceof e}function xd(o){return typeof o=="number"&&!isNaN(o)}function AT(o){return!!o&&typeof o[Symbol.iterator]=="function"}function C4(o){return o===!0||o===!1}function us(o){return typeof o>"u"}function W6(o){return!Ms(o)}function Ms(o){return us(o)||o===null}function _t(o,e){if(!o)throw new Error("Unexpected type")}function Fu(o){if(Ms(o))throw new Error("Assertion Failed: argument is undefined or null");return o}function Nb(o){return typeof o=="function"}function V6(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 z6(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(w4.call(t,i)){const n=t[i];typeof n=="object"&&!Object.isFrozen(n)&&!B6(n)&&e.push(n)}}return o}const w4=Object.prototype.hasOwnProperty;function S4(o,e){return jL(o,e,new Set)}function jL(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(jL(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)w4.call(o,s)&&(n[s]=jL(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 y4{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class L4{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 L1(e,t)}compute(e,t,i){return i}}class Hp{constructor(e,t){this.newValue=e,this.didChange=t}}function L1(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=L1(o[i],e[i]);n.didChange&&(o[i]=n.newValue,t=!0)}return new Hp(o,t)}class _g{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return L1(e,t)}validate(e){return this.defaultValue}}class vg{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return L1(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 dt extends vg{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 KL(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 yt extends vg{static clampedInt(e,t,i,n){return KL(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 yt.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class Xr extends vg{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 cs extends vg{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 cs.string(e,this.defaultValue)}}function Di(o,e,t){return typeof o!="string"||t.indexOf(o)===-1?e:o}class ai extends vg{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 N0 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 j6(o){switch(o){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class K6 extends Jt{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[g("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached"),g("accessibilitySupport.on","Optimize for usage with a Screen Reader"),g("accessibilitySupport.off","Assume a screen reader is not attached")],default:"auto",tags:["accessibility"],description:g("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:g("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:g("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 G6(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 Z6(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 Y6 extends _g{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 Q6 extends dt{constructor(){super(34,"emptySelectionClipboard",!0,{description:g("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class X6 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:g("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:[g("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),g("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),g("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:g("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:[g("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),g("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),g("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:g("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:g("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:g("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:g("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:g("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:g("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:g("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:g("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:g("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:g("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 J6 extends _g{constructor(){super(47)}compute(e,t,i){return e.fontInfo}}class eW extends vg{constructor(){super(49,"fontSize",ps.fontSize,{type:"number",minimum:6,maximum:100,default:ps.fontSize,description:g("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:g("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:g("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(yt.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 tW 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:[g("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),g("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),g("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:g("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:g("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:g("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:g("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:g("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:g("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:g("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:g("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:g("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:g("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:g("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:cs.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:cs.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:cs.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:cs.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:cs.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class iW 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:g("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:g("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:g("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:g("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:yt.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:Le(t.sticky,this.defaultValue.sticky),above:Le(t.above,this.defaultValue.above)}}}class lf extends _g{constructor(){super(138)}compute(e,t,i){return lf.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,d=e.typicalHalfwidthCharacterWidth,c=e.scrollBeyondLastLine,h=e.minimap.renderCharacters;let u=s>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const f=e.minimap.maxColumn,p=e.minimap.size,m=e.minimap.side,_=e.verticalScrollbarWidth,b=e.viewLineCount,v=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:ge}=lf.computeContainedMinimapLineCount({viewLineCount:b,scrollBeyondLastLine:c,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:n,lineHeight:l,pixelRatio:s});if(b/ge>1)L=!0,D=!0,u=1,k=1,R=u/s;else{let St=!1,ws=u+1;if(p==="fit"){const zi=Math.ceil((Ie+b+Qe)*k);C&&a&&v<=t.stableFitRemainingWidth?(St=!0,ws=t.stableFitMaxMinimapScale):St=zi>x}if(p==="fill"||St){L=!0;const zi=u;k=Math.min(l*s,Math.max(1,Math.floor(1/Xe))),C&&a&&v<=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+b+Qe)*k),C?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=v,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const B=Math.floor(f*R),z=Math.min(B,Math.max(0,Math.floor((v-_-2)*R/(d+R)))+Vl);let ne=Math.floor(s*z);const he=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:he,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,d=t.pixelRatio,c=t.viewLineCount,h=e.get(130),u=h==="inherit"?e.get(129):h,f=u==="inherit"?e.get(125):u,p=e.get(128),m=t.isDominatedByLongLines,_=e.get(54),b=e.get(64).renderType!==0,v=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(b){const El=Math.max(r,v);ne=Math.round(El*l)}let he=0;_&&(he=s);let ye=0,Fe=ye+he,je=Fe+ne,Ie=je+z;const Qe=i-he-ne-z;let Xe=!1,ge=!1,Se=-1;u==="inherit"&&m?(Xe=!0,ge=!0):f==="on"||f==="bounded"?ge=!0:f==="wordWrapColumn"&&(Se=p);const St=lf._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:s,typicalHalfwidthCharacterWidth:a,pixelRatio:d,scrollBeyondLastLine:C,paddingTop:S.top,paddingBottom:S.bottom,minimap:x,verticalScrollbarWidth:L,viewLineCount:c,remainingWidth:Qe,isViewportWrapping:ge},t.memory||new L4);St.renderMinimap!==0&&St.minimapLeft===0&&(ye+=St.minimapWidth,Fe+=St.minimapWidth,je+=St.minimapWidth,Ie+=St.minimapWidth);const ws=Qe-St.minimapWidth,zi=Math.max(1,Math.floor((ws-L-2)/a)),Ko=D?k:0;return ge&&(Se=Math.max(1,zi),f==="bounded"&&(Se=Math.min(Se,p))),{width:i,height:n,glyphMarginLeft:ye,glyphMarginWidth:he,lineNumbersLeft:Fe,lineNumbersWidth:ne,decorationsLeft:je,decorationsWidth:z,contentLeft:Ie,contentWidth:ws,minimap:St,viewportColumn:zi,isWordWrapMinified:Xe,isViewportWrapping:ge,wrappingColumn:Se,verticalScrollbarWidth:L,horizontalScrollbarHeight:R,overviewRuler:{top:Ko,width:L,height:n-2*Ko,right:0}}}}class nW extends Jt{constructor(){super(132,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[g("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."),g("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:g("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 sW extends Jt{constructor(){const e={enabled:!0};super(61,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:g("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 oW extends Jt{constructor(){const e={enabled:!1,maxLineCount:5};super(109,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:g("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:g("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:yt.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,10)}}}class rW 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:g("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[g("editor.inlayHints.on","Inlay hints are enabled"),g("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",Ke?"Ctrl+Option":"Ctrl+Alt"),g("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",Ke?"Ctrl+Option":"Ctrl+Alt"),g("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:g("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:g("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:g("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:yt.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:cs.string(t.fontFamily,this.defaultValue.fontFamily),padding:Le(t.padding,this.defaultValue.padding)}}}class aW 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)):yt.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?yt.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}class lW extends Xr{constructor(){super(63,"lineHeight",ps.lineHeight,e=>Xr.clamp(e,0,150),{markdownDescription:g("lineHeight",`Controls the line height. +const __vite__fileDeps=["assets/freemarker2-Cr303UPI.js","assets/index-BXOWKrmL.js","assets/index-D4zVegIe.css","assets/handlebars-C-uGZQP_.js","assets/html-CzXZ9GKY.js","assets/javascript-CLvPYtY7.js","assets/typescript-Bf-nANOc.js","assets/liquid-B3Ig1-8M.js","assets/python-Cj6l3V68.js","assets/razor-WIHsCv-P.js","assets/xml-DRfkQZD8.js","assets/yaml-DUizjfby.js","assets/cssMode-Dr_dLNo_.js","assets/htmlMode-6R6887KQ.js","assets/jsonMode-C-TI3MVh.js","assets/tsMode-eFPjmWu1.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +var o6=Object.defineProperty;var r6=(o,e,t)=>e in o?o6(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var Zt=(o,e,t)=>(r6(o,typeof e!="symbol"?e+"":e,t),t);import{cn as me,d as a6,co as l6,aH as d6,cb as c6,h as h6,af as DT,k as k0,a1 as xT,ag as u6,o as f6,c as g6,n as p6}from"./index-BXOWKrmL.js";let m6=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function _6(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}),m6&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function g(o,e,...t){return _6(e,t)}var IS;const mp="en";let Ib=!1,Eb=!1,Uv=!1,r4=!1,pE=!1,mE=!1,a4=!1,I0,$v=mp,v6,Zo;const ci=typeof self=="object"?self:typeof global=="object"?global:{};let Rn;typeof ci.vscode<"u"&&typeof ci.vscode.process<"u"?Rn=ci.vscode.process:typeof process<"u"&&(Rn=process);const b6=typeof((IS=Rn==null?void 0:Rn.versions)===null||IS===void 0?void 0:IS.electron)=="string",C6=b6&&(Rn==null?void 0:Rn.type)==="renderer";if(typeof navigator=="object"&&!C6)Zo=navigator.userAgent,Ib=Zo.indexOf("Windows")>=0,Eb=Zo.indexOf("Macintosh")>=0,mE=(Zo.indexOf("Macintosh")>=0||Zo.indexOf("iPad")>=0||Zo.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Uv=Zo.indexOf("Linux")>=0,a4=(Zo==null?void 0:Zo.indexOf("Mobi"))>=0,pE=!0,g({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),I0=mp,$v=I0;else if(typeof Rn=="object"){Ib=Rn.platform==="win32",Eb=Rn.platform==="darwin",Uv=Rn.platform==="linux",Uv&&Rn.env.SNAP&&Rn.env.SNAP_REVISION,Rn.env.CI||Rn.env.BUILD_ARTIFACTSTAGINGDIRECTORY,I0=mp,$v=mp;const o=Rn.env.VSCODE_NLS_CONFIG;if(o)try{const e=JSON.parse(o),t=e.availableLanguages["*"];I0=e.locale,$v=t||mp,v6=e._translationsConfigFile}catch{}r4=!0}else console.error("Unable to resolve platform.");const Qi=Ib,Ke=Eb,hn=Uv,ur=r4,Kd=pE,w6=pE&&typeof ci.importScripts=="function",fa=mE,S6=a4,ga=Zo,y6=$v,L6=typeof ci.postMessage=="function"&&!ci.importScripts,l4=(()=>{if(L6){const o=[];ci.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}),ci.postMessage({vscodeScheduleAsyncWork:i},"*")}}return o=>setTimeout(o)})(),Ps=Eb||mE?2:Ib?1:3;let kT=!0,IT=!1;function d4(){if(!IT){IT=!0;const o=new Uint8Array(2);o[0]=1,o[1]=2,kT=new Uint16Array(o.buffer)[0]===513}return kT}const c4=!!(ga&&ga.indexOf("Chrome")>=0),D6=!!(ga&&ga.indexOf("Firefox")>=0),x6=!!(!c4&&ga&&ga.indexOf("Safari")>=0),k6=!!(ga&&ga.indexOf("Edg/")>=0);ga&&ga.indexOf("Android")>=0;var it;(function(o){function e(b){return b&&typeof b=="object"&&typeof b[Symbol.iterator]=="function"}o.is=e;const t=Object.freeze([]);function i(){return t}o.empty=i;function*n(b){yield b}o.single=n;function s(b){return e(b)?b:n(b)}o.wrap=s;function r(b){return b||t}o.from=r;function a(b){return!b||b[Symbol.iterator]().next().done===!0}o.isEmpty=a;function l(b){return b[Symbol.iterator]().next().value}o.first=l;function d(b,v){for(const C of b)if(v(C))return!0;return!1}o.some=d;function c(b,v){for(const C of b)if(v(C))return C}o.find=c;function*h(b,v){for(const C of b)v(C)&&(yield C)}o.filter=h;function*u(b,v){let C=0;for(const S of b)yield v(S,C++)}o.map=u;function*f(...b){for(const v of b)for(const C of v)yield C}o.concat=f;function p(b,v,C){let S=C;for(const x of b)S=v(S,x);return S}o.reduce=p;function*m(b,v,C=b.length){for(v<0&&(v+=b.length),C<0?C+=b.length:C>b.length&&(C=b.length);v{n||(n=!0,this._remove(i))}}shift(){if(this._first!==vi.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==vi.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==vi.Undefined&&e.next!==vi.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===vi.Undefined&&e.next===vi.Undefined?(this._first=vi.Undefined,this._last=vi.Undefined):e.next===vi.Undefined?(this._last=this._last.prev,this._last.next=vi.Undefined):e.prev===vi.Undefined&&(this._first=this._first.next,this._first.prev=vi.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==vi.Undefined;)yield e.element,e=e.next}}const h4="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function I6(o=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of h4)o.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const _E=I6();function u4(o){let e=_E;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 f4=new ln;f4.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function _m(o,e,t,i,n){if(n||(n=it.first(f4)),t.length>n.maxLen){let d=o-n.maxLen/2;return d<0?d=0:i+=d,t=t.substring(d,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 d=1;!(Date.now()-s>=n.timeBudget);d++){const c=r-n.windowSize*d;e.lastIndex=Math.max(0,c);const h=E6(e,t,r,a);if(!h&&l||(l=h,c<=0))break;a=c}if(l){const d={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,d}return null}function E6(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 N6(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 M6(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 g4(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 NT(o){let e=0;for(let t=0;t0}function Dd(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 m4(o,e){const t=A6(o,e);if(t!==-1)return o[t]}function A6(o,e){for(let t=o.length-1;t>=0;t--){const i=o[t];if(e(i))return t}return-1}function _4(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 y1(o,e,t){const i=o.slice(0,e),n=o.slice(e);return i.concat(t,n)}function ES(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.unshift(e))}function E0(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.push(e))}function TT(o,e){for(const t of e)o.push(t)}function vE(o){return Array.isArray(o)?o:[o]}function R6(o,e,t){const i=v4(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})($L||($L={}));function Vp(o,e){return(t,i)=>e(o(t),o(i))}const P6=(o,e)=>o-e;function b4(o,e){if(o.length===0)return;let t=o[0];for(let i=1;i0&&(t=n)}return t}function O6(o,e){if(o.length===0)return;let t=o[0];for(let i=1;i=0&&(t=n)}return t}function F6(o,e){return b4(o,(t,i)=>-e(t,i))}class Nf{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||$L.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 B6(o){const e=Object.getPrototypeOf(Uint8Array);return typeof o=="object"&&o instanceof e}function xd(o){return typeof o=="number"&&!isNaN(o)}function AT(o){return!!o&&typeof o[Symbol.iterator]=="function"}function C4(o){return o===!0||o===!1}function us(o){return typeof o>"u"}function W6(o){return!Ms(o)}function Ms(o){return us(o)||o===null}function _t(o,e){if(!o)throw new Error("Unexpected type")}function Fu(o){if(Ms(o))throw new Error("Assertion Failed: argument is undefined or null");return o}function Nb(o){return typeof o=="function"}function V6(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 z6(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(w4.call(t,i)){const n=t[i];typeof n=="object"&&!Object.isFrozen(n)&&!B6(n)&&e.push(n)}}return o}const w4=Object.prototype.hasOwnProperty;function S4(o,e){return jL(o,e,new Set)}function jL(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(jL(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)w4.call(o,s)&&(n[s]=jL(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 y4{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class L4{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 L1(e,t)}compute(e,t,i){return i}}class Hp{constructor(e,t){this.newValue=e,this.didChange=t}}function L1(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=L1(o[i],e[i]);n.didChange&&(o[i]=n.newValue,t=!0)}return new Hp(o,t)}class _g{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return L1(e,t)}validate(e){return this.defaultValue}}class vg{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return L1(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 dt extends vg{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 KL(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 yt extends vg{static clampedInt(e,t,i,n){return KL(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 yt.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class Xr extends vg{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 cs extends vg{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 cs.string(e,this.defaultValue)}}function Di(o,e,t){return typeof o!="string"||t.indexOf(o)===-1?e:o}class ai extends vg{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 N0 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 j6(o){switch(o){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class K6 extends Jt{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[g("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached"),g("accessibilitySupport.on","Optimize for usage with a Screen Reader"),g("accessibilitySupport.off","Assume a screen reader is not attached")],default:"auto",tags:["accessibility"],description:g("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:g("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:g("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 G6(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 Z6(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 Y6 extends _g{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 Q6 extends dt{constructor(){super(34,"emptySelectionClipboard",!0,{description:g("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class X6 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:g("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:[g("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),g("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),g("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:g("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:[g("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),g("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),g("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:g("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:g("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:g("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:g("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:g("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:g("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:g("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:g("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:g("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:g("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 J6 extends _g{constructor(){super(47)}compute(e,t,i){return e.fontInfo}}class eW extends vg{constructor(){super(49,"fontSize",ps.fontSize,{type:"number",minimum:6,maximum:100,default:ps.fontSize,description:g("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:g("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:g("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(yt.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 tW 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:[g("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),g("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),g("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:g("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:g("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:g("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:g("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:g("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:g("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:g("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:g("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:g("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:g("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:g("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:cs.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:cs.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:cs.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:cs.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:cs.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class iW 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:g("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:g("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:g("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:g("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:yt.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:Le(t.sticky,this.defaultValue.sticky),above:Le(t.above,this.defaultValue.above)}}}class lf extends _g{constructor(){super(138)}compute(e,t,i){return lf.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,d=e.typicalHalfwidthCharacterWidth,c=e.scrollBeyondLastLine,h=e.minimap.renderCharacters;let u=s>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const f=e.minimap.maxColumn,p=e.minimap.size,m=e.minimap.side,_=e.verticalScrollbarWidth,b=e.viewLineCount,v=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:ge}=lf.computeContainedMinimapLineCount({viewLineCount:b,scrollBeyondLastLine:c,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:n,lineHeight:l,pixelRatio:s});if(b/ge>1)L=!0,D=!0,u=1,k=1,R=u/s;else{let St=!1,ws=u+1;if(p==="fit"){const zi=Math.ceil((Ie+b+Qe)*k);C&&a&&v<=t.stableFitRemainingWidth?(St=!0,ws=t.stableFitMaxMinimapScale):St=zi>x}if(p==="fill"||St){L=!0;const zi=u;k=Math.min(l*s,Math.max(1,Math.floor(1/Xe))),C&&a&&v<=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+b+Qe)*k),C?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=v,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const B=Math.floor(f*R),z=Math.min(B,Math.max(0,Math.floor((v-_-2)*R/(d+R)))+Vl);let ne=Math.floor(s*z);const he=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:he,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,d=t.pixelRatio,c=t.viewLineCount,h=e.get(130),u=h==="inherit"?e.get(129):h,f=u==="inherit"?e.get(125):u,p=e.get(128),m=t.isDominatedByLongLines,_=e.get(54),b=e.get(64).renderType!==0,v=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(b){const El=Math.max(r,v);ne=Math.round(El*l)}let he=0;_&&(he=s);let ye=0,Fe=ye+he,je=Fe+ne,Ie=je+z;const Qe=i-he-ne-z;let Xe=!1,ge=!1,Se=-1;u==="inherit"&&m?(Xe=!0,ge=!0):f==="on"||f==="bounded"?ge=!0:f==="wordWrapColumn"&&(Se=p);const St=lf._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:s,typicalHalfwidthCharacterWidth:a,pixelRatio:d,scrollBeyondLastLine:C,paddingTop:S.top,paddingBottom:S.bottom,minimap:x,verticalScrollbarWidth:L,viewLineCount:c,remainingWidth:Qe,isViewportWrapping:ge},t.memory||new L4);St.renderMinimap!==0&&St.minimapLeft===0&&(ye+=St.minimapWidth,Fe+=St.minimapWidth,je+=St.minimapWidth,Ie+=St.minimapWidth);const ws=Qe-St.minimapWidth,zi=Math.max(1,Math.floor((ws-L-2)/a)),Ko=D?k:0;return ge&&(Se=Math.max(1,zi),f==="bounded"&&(Se=Math.min(Se,p))),{width:i,height:n,glyphMarginLeft:ye,glyphMarginWidth:he,lineNumbersLeft:Fe,lineNumbersWidth:ne,decorationsLeft:je,decorationsWidth:z,contentLeft:Ie,contentWidth:ws,minimap:St,viewportColumn:zi,isWordWrapMinified:Xe,isViewportWrapping:ge,wrappingColumn:Se,verticalScrollbarWidth:L,horizontalScrollbarHeight:R,overviewRuler:{top:Ko,width:L,height:n-2*Ko,right:0}}}}class nW extends Jt{constructor(){super(132,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[g("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."),g("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:g("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 sW extends Jt{constructor(){const e={enabled:!0};super(61,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:g("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 oW extends Jt{constructor(){const e={enabled:!1,maxLineCount:5};super(109,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:g("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:g("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:yt.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,10)}}}class rW 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:g("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[g("editor.inlayHints.on","Inlay hints are enabled"),g("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",Ke?"Ctrl+Option":"Ctrl+Alt"),g("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",Ke?"Ctrl+Option":"Ctrl+Alt"),g("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:g("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:g("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:g("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:yt.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:cs.string(t.fontFamily,this.defaultValue.fontFamily),padding:Le(t.padding,this.defaultValue.padding)}}}class aW 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)):yt.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?yt.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}class lW extends Xr{constructor(){super(63,"lineHeight",ps.lineHeight,e=>Xr.clamp(e,0,150),{markdownDescription:g("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 dW 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:g("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:g("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[g("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),g("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),g("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:g("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:g("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:g("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:g("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:g("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:g("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:yt.clampedInt(t.scale,1,1,3),maxColumn:yt.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}function cW(o){return o==="ctrlCmd"?Ke?"metaKey":"ctrlKey":"altKey"}class hW extends Jt{constructor(){super(80,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:g("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:g("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:yt.clampedInt(t.top,0,0,1e3),bottom:yt.clampedInt(t.bottom,0,0,1e3)}}}class uW extends Jt{constructor(){const e={enabled:!0,cycle:!0};super(81,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:g("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:g("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 fW extends _g{constructor(){super(136)}compute(e,t,i){return e.pixelRatio}}class gW extends Jt{constructor(){const e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[g("on","Quick suggestions show inside the suggest widget"),g("inline","Quick suggestions show as ghost text"),g("off","Quick suggestions are disabled")]}];super(84,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:g("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:g("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:g("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:g("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 d=e?"on":"off";return{comments:d,strings:d,other:d}}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 pW extends Jt{constructor(){super(64,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[g("lineNumbers.off","Line numbers are not rendered."),g("lineNumbers.on","Line numbers are rendered as absolute number."),g("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),g("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:g("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 Tb(o){const e=o.get(92);return e==="editable"?o.get(86):e!=="on"}class mW extends Jt{constructor(){const e=[],t={type:"number",description:g("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:g("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:g("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:yt.clampedInt(i,0,0,1e4),color:null});else if(i&&typeof i=="object"){const n=i;t.push({column:yt.clampedInt(n.column,0,0,1e4),color:n.color})}return t.sort((i,n)=>i.column-n.column),t}return this.defaultValue}}function RT(o,e){if(typeof o!="string")return e;switch(o){case"hidden":return 2;case"visible":return 3;default:return 1}}let _W=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:[g("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),g("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),g("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:g("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[g("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),g("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),g("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:g("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:g("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:g("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:g("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=yt.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),n=yt.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:yt.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:RT(t.vertical,this.defaultValue.vertical),horizontal:RT(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:yt.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:n,verticalSliderSize:yt.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 vW 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:g("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:g("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:g("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:g("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:g("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[Zn.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:g("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:g("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:df(t.nonBasicASCII,xs,[!0,!1,xs]),invisibleCharacters:Le(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:Le(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:df(t.includeComments,xs,[!0,!1,xs]),includeStrings:df(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 bW extends Jt{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover"};super(59,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:g("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover"],enumDescriptions:[g("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),g("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion.")],description:g("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 CW 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:g("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:g("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 wW 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:[g("editor.guides.bracketPairs.true","Enables bracket pair guides."),g("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),g("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:g("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[g("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),g("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),g("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:g("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:g("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:g("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[g("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),g("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),g("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:g("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:df(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:df(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:Le(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:Le(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:df(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function df(o,e,t){const i=t.indexOf(o);return i===-1?e:t[i]}class SW 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:[g("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),g("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:g("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:g("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:g("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:g("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:[g("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),g("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),g("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),g("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:g("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:g("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:g("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:g("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:g("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:g("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:g("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:g("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:g("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:g("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:g("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:g("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:g("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 yW extends Jt{constructor(){super(107,"smartSelect",{selectLeadingAndTrailingWhitespace:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:g("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 LW extends _g{constructor(){super(137)}compute(e,t,i){return t.get(86)?!0:e.tabFocusMode}}class DW extends Jt{constructor(){super(131,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[g("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),g("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),g("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),g("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:g("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 xW extends _g{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 kW extends Jt{constructor(){const e={enabled:!0};super(33,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:g("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 IW="Consolas, 'Courier New', monospace",EW="Menlo, Monaco, 'Courier New', monospace",NW="'Droid Sans Mono', 'monospace', monospace",ps={fontFamily:Ke?EW:hn?NW:IW,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 dt(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:g("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:["",g("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:g("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 K6),accessibilityPageSize:ee(new yt(3,"accessibilityPageSize",10,1,1073741824,{description:g("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 cs(4,"ariaLabel",g("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:ee(new ai(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",g("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),g("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:g("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:["",g("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:g("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:["",g("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:g("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:ee(new ai(8,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",g("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),g("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:g("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:ee(new N0(9,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],j6,{enumDescriptions:[g("editor.autoIndent.none","The editor will not insert indentation automatically."),g("editor.autoIndent.keep","The editor will keep the current line's indentation."),g("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),g("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),g("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:g("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:ee(new dt(10,"automaticLayout",!1)),autoSurround:ee(new ai(11,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[g("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),g("editor.autoSurround.quotes","Surround with quotes but not brackets."),g("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:g("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:ee(new CW),bracketPairGuides:ee(new wW),stickyTabStops:ee(new dt(110,"stickyTabStops",!1,{description:g("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:ee(new dt(14,"codeLens",!0,{description:g("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:ee(new cs(15,"codeLensFontFamily","",{description:g("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:ee(new yt(16,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:g("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:ee(new dt(17,"colorDecorators",!0,{description:g("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorsLimit:ee(new yt(18,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:g("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:ee(new dt(19,"columnSelection",!1,{description:g("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:ee(new q6),contextmenu:ee(new dt(21,"contextmenu",!0)),copyWithSyntaxHighlighting:ee(new dt(22,"copyWithSyntaxHighlighting",!0,{description:g("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:ee(new N0(23,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],G6,{description:g("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:ee(new ai(24,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[g("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),g("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),g("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:g("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:ee(new N0(25,"cursorStyle",Gi.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],Z6,{description:g("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:ee(new yt(26,"cursorSurroundingLines",0,0,1073741824,{description:g("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:[g("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),g("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:g("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:ee(new yt(28,"cursorWidth",0,0,1073741824,{markdownDescription:g("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:ee(new dt(29,"disableLayerHinting",!1)),disableMonospaceOptimizations:ee(new dt(30,"disableMonospaceOptimizations",!1)),domReadOnly:ee(new dt(31,"domReadOnly",!1)),dragAndDrop:ee(new dt(32,"dragAndDrop",!0,{description:g("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:ee(new Q6),dropIntoEditor:ee(new kW),stickyScroll:ee(new oW),experimentalWhitespaceRendering:ee(new ai(35,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[g("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),g("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),g("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:g("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:ee(new cs(36,"extraEditorClassName","")),fastScrollSensitivity:ee(new Xr(37,"fastScrollSensitivity",5,o=>o<=0?5:o,{markdownDescription:g("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:ee(new X6),fixedOverflowWidgets:ee(new dt(39,"fixedOverflowWidgets",!1)),folding:ee(new dt(40,"folding",!0,{description:g("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:ee(new ai(41,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[g("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),g("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:g("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:ee(new dt(42,"foldingHighlight",!0,{description:g("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:ee(new dt(43,"foldingImportsByDefault",!1,{description:g("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:ee(new yt(44,"foldingMaximumRegions",5e3,10,65e3,{description:g("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 dt(45,"unfoldOnClickAfterEndOfLine",!1,{description:g("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:ee(new cs(46,"fontFamily",ps.fontFamily,{description:g("fontFamily","Controls the font family.")})),fontInfo:ee(new J6),fontLigatures2:ee(new As),fontSize:ee(new eW),fontWeight:ee(new Ur),fontVariations:ee(new or),formatOnPaste:ee(new dt(52,"formatOnPaste",!1,{description:g("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 dt(53,"formatOnType",!1,{description:g("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:ee(new dt(54,"glyphMargin",!0,{description:g("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:ee(new tW),hideCursorInOverviewRuler:ee(new dt(56,"hideCursorInOverviewRuler",!1,{description:g("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:ee(new iW),inDiffEditor:ee(new dt(58,"inDiffEditor",!1)),letterSpacing:ee(new Xr(60,"letterSpacing",ps.letterSpacing,o=>Xr.clamp(o,-5,20),{description:g("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:ee(new sW),lineDecorationsWidth:ee(new aW),lineHeight:ee(new lW),lineNumbers:ee(new pW),lineNumbersMinChars:ee(new yt(65,"lineNumbersMinChars",5,1,300)),linkedEditing:ee(new dt(66,"linkedEditing",!1,{description:g("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 dt(67,"links",!0,{description:g("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:ee(new ai(68,"matchBrackets","always",["always","near","never"],{description:g("matchBrackets","Highlight matching brackets.")})),minimap:ee(new dW),mouseStyle:ee(new ai(70,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:ee(new Xr(71,"mouseWheelScrollSensitivity",1,o=>o===0?1:o,{markdownDescription:g("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:ee(new dt(72,"mouseWheelZoom",!1,{markdownDescription:g("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:ee(new dt(73,"multiCursorMergeOverlapping",!0,{description:g("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:ee(new N0(74,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],cW,{markdownEnumDescriptions:[g("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),g("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:g({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:[g("multiCursorPaste.spread","Each cursor pastes a single line of the text."),g("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:g("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:ee(new yt(76,"multiCursorLimit",1e4,1,1e5,{markdownDescription:g("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:ee(new dt(77,"occurrencesHighlight",!0,{description:g("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:ee(new dt(78,"overviewRulerBorder",!0,{description:g("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:ee(new yt(79,"overviewRulerLanes",3,0,3)),padding:ee(new hW),parameterHints:ee(new uW),peekWidgetDefaultFocus:ee(new ai(82,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[g("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),g("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:g("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:ee(new dt(83,"definitionLinkOpensInPeek",!1,{description:g("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:ee(new gW),quickSuggestionsDelay:ee(new yt(85,"quickSuggestionsDelay",10,0,1073741824,{description:g("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:ee(new dt(86,"readOnly",!1)),renameOnType:ee(new dt(87,"renameOnType",!1,{description:g("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:g("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:ee(new dt(88,"renderControlCharacters",!0,{description:g("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:ee(new ai(89,"renderFinalNewline",hn?"dimmed":"on",["off","on","dimmed"],{description:g("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:ee(new ai(90,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",g("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:g("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:ee(new dt(91,"renderLineHighlightOnlyWhenFocus",!1,{description:g("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:["",g("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),g("renderWhitespace.selection","Render whitespace characters only on selected text."),g("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:g("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:ee(new yt(94,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:ee(new dt(95,"roundedSelection",!0,{description:g("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:ee(new mW),scrollbar:ee(new _W),scrollBeyondLastColumn:ee(new yt(98,"scrollBeyondLastColumn",4,0,1073741824,{description:g("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:ee(new dt(99,"scrollBeyondLastLine",!0,{description:g("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:ee(new dt(100,"scrollPredominantAxis",!0,{description:g("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 dt(101,"selectionClipboard",!0,{description:g("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:hn})),selectionHighlight:ee(new dt(102,"selectionHighlight",!0,{description:g("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:ee(new dt(103,"selectOnLineNumbers",!0)),showFoldingControls:ee(new ai(104,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[g("showFoldingControls.always","Always show the folding controls."),g("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),g("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:g("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:ee(new dt(105,"showUnused",!0,{description:g("showUnused","Controls fading out of unused code.")})),showDeprecated:ee(new dt(133,"showDeprecated",!0,{description:g("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:ee(new rW),snippetSuggestions:ee(new ai(106,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[g("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),g("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),g("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),g("snippetSuggestions.none","Do not show snippet suggestions.")],description:g("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:ee(new yW),smoothScrolling:ee(new dt(108,"smoothScrolling",!1,{description:g("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:ee(new yt(111,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:ee(new SW),inlineSuggest:ee(new bW),suggestFontSize:ee(new yt(113,"suggestFontSize",0,0,1e3,{markdownDescription:g("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:ee(new yt(114,"suggestLineHeight",0,0,1e3,{markdownDescription:g("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 dt(115,"suggestOnTriggerCharacters",!0,{description:g("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:ee(new ai(116,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[g("suggestSelection.first","Always select the first suggestion."),g("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),g("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:g("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:ee(new ai(117,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[g("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),g("tabCompletion.off","Disable tab completions."),g("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:g("tabCompletion","Enables tab completions.")})),tabIndex:ee(new yt(118,"tabIndex",0,-1,1073741824)),unicodeHighlight:ee(new vW),unusualLineTerminators:ee(new ai(120,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[g("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),g("unusualLineTerminators.off","Unusual line terminators are ignored."),g("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:g("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:ee(new dt(121,"useShadowDOM",!0)),useTabStops:ee(new dt(122,"useTabStops",!0,{description:g("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordBreak:ee(new ai(123,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[g("wordBreak.normal","Use the default line break rule."),g("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:g("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSeparators:ee(new cs(124,"wordSeparators",h4,{description:g("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:[g("wordWrap.off","Lines will never wrap."),g("wordWrap.on","Lines will wrap at the viewport width."),g({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),g({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:g({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 cs(126,"wordWrapBreakAfterCharacters"," })]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:ee(new cs(127,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:ee(new yt(128,"wordWrapColumn",80,1,1073741824,{markdownDescription:g({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 Y6),pixelRatio:ee(new fW),tabFocusMode:ee(new LW),layoutInfo:ee(new lf),wrappingInfo:ee(new xW),wrappingIndent:ee(new DW),wrappingStrategy:ee(new nW)};class TW{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?Tf.isErrorNoTelemetry(e)?new Tf(e.message+` @@ -629,7 +629,7 @@ ${e.toString()}`}}class QC{constructor(e=new uw,t=!1,i,n=Pie){var s;this._servic `:`\r `}};Fk=tc([Zi(0,at)],Fk);class Kie{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 DJ({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 XC(o,e,t){if(!e||!(o instanceof R7))return;const i=[];Object.keys(e).forEach(n=>{oJ(n)&&i.push([`editor.${n}`,e[n]]),t&&rJ(n)&&i.push([`diffEditor.${n}`,e[n]])}),i.length>0&&o.updateValues(i)}let Bk=class{constructor(e){this._modelService=e}hasPreviewHandler(){return!1}apply(e,t){return E2(this,void 0,void 0,function*(){const i=Array.isArray(e)?e:JN.convert(e),n=new Map;for(const a of i){if(!(a instanceof gl))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 d=n.get(l);d||(d=[],n.set(l,d)),d.push(Ht.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(Jx.bulkEditServiceSummary,s,r),isApplied:s>0}})}};Bk=tc([Zi(0,jt)],Bk);class qie{getUriLabel(e,t){return e.scheme==="file"?e.fsPath:e.path}getUriBasenameLabel(e){return uo(e)}}let Wk=class extends ek{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)}};Wk=tc([Zi(0,kg),Zi(1,ut)],Wk);class Gie{constructor(){this._neverEmitter=new O,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}}class Zie extends t_{constructor(){super()}}class Yie extends Hie{constructor(){super(new Oz)}}let Vk=class extends ok{constructor(e,t,i,n,s,r){super(e,t,i,n,s,r),this.configure({blockMouse:!1})}};Vk=tc([Zi(0,mo),Zi(1,_i),Zi(2,xl),Zi(3,ei),Zi(4,Ea),Zi(5,Ee)],Vk);class Qie{playAudioCue(e,t){return E2(this,void 0,void 0,function*(){})}}ot(at,R7,0);ot(GE,Ok,0);ot(vF,Fk,0);ot(Xm,h_,0);ot(Qf,qie,0);ot(mo,Kie,0);ot(t0,$ie,0);ot(_i,c_,0);ot(Ta,Kl,0);ot(Ut,Zie,0);ot(Ks,wie,0);ot(po,Yie,0);ot(jt,$C,0);ot(tN,ck,0);ot(Ee,Ak,0);ot(QN,Uie,0);ot(ec,Mw,0);ot(jo,tee,0);ot($o,ex,0);ot(i0,Bk,0);ot(z3,Gie,0);ot(os,Rk,0);ot(xa,Ik,0);ot(wo,qte,0);ot(ri,Pk,0);ot(ei,ig,0);ot(Ma,xk,0);ot(xl,Wk,0);ot(bo,dk,0);ot(Dl,Mk,0);ot(xr,Vk,0);ot(Ea,Ek,0);ot(VE,Qie,0);var ke;(function(o){const e=new uw;for(const[r,a]of YT())e.set(r,a);const t=new QC(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 YT())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 N2=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=function(o,e){return function(t,i){e(t,i,o)}};let Xie=0,EP=!1;function Jie(o){if(!o){if(EP)return;EP=!0}h$(o||document.body)}let JC=class extends Gf{constructor(e,t,i,n,s,r,a,l,d,c,h,u){const f=Object.assign({},t);f.ariaLabel=f.ariaLabel||RC.editorViewAccessibleLabel,f.ariaLabel=f.ariaLabel+";"+RC.accessibilityHelpMessage,super(e,f,{},i,n,s,r,l,d,c,h,u),a instanceof ig?this._standaloneKeybindingService=a:this._standaloneKeybindingService=null,Jie(f.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_"+ ++Xie,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,d=(f,...p)=>Promise.resolve(e.run(this,...p)),c=new Z,h=this.getId()+":"+t;if(c.add(st.registerCommand(h,d)),a){const f={command:{id:h,title:i},when:n,group:a,order:l};c.add(Jn.appendMenuItem(N.EditorContext,f))}if(Array.isArray(s))for(const f of s)c.add(this._standaloneKeybindingService.addDynamicKeybinding(h,f,d,r));const u=new T5(h,i,i,n,d,this._contextKeyService);return this._actions.set(t,u),c.add(Pe(()=>{this._actions.delete(t)})),c}_triggerCommand(e,t){if(this._codeEditorService instanceof IC)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(e,t)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(e,t)}};JC=N2([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,fe)],JC);let Hk=class extends JC{constructor(e,t,i,n,s,r,a,l,d,c,h,u,f,p,m){const _=Object.assign({},t);XC(c,_,!1);const b=l.registerEditorContainer(e);typeof _.theme=="string"&&l.setTheme(_.theme),typeof _.autoDetectHighContrast<"u"&&l.setAutoDetectHighContrast(!!_.autoDetectHighContrast);const v=_.model;delete _.model,super(e,_,i,n,s,r,a,l,d,h,p,m),this._configurationService=c,this._standaloneThemeService=l,this._register(b);let C;if(typeof v>"u"){const S=f.getLanguageIdByMimeType(_.language)||_.language||Vs;C=P7(u,f,_.value||"",S,void 0),this._ownsModel=!0}else C=v,this._ownsModel=!1;if(this._attachModel(C),C){const S={oldModelUrl:null,newModelUrl:C.uri};this._onDidChangeModel.fire(S)}}dispose(){super.dispose()}updateOptions(e){XC(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)}};Hk=N2([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,fe)],Hk);let zk=class extends Od{constructor(e,t,i,n,s,r,a,l,d,c,h){const u=Object.assign({},t);XC(l,u,!0);const f=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,d,c),this._configurationService=l,this._standaloneThemeService=r,this._register(f)}dispose(){super.dispose()}updateOptions(e){XC(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(JC,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)}};zk=N2([Bt(2,Me),Bt(3,Ee),Bt(4,ut),Bt(5,Ks),Bt(6,_i),Bt(7,at),Bt(8,xr),Bt(9,ec),Bt(10,Dl)],zk);function P7(o,e,t,i,n){if(t=t||"",!i){const s=t.indexOf(` `);let r=t;return s!==-1&&(r=t.substring(0,s)),NP(o,t,e.createByFilepathOrFirstLine(n||null,r),n)}return NP(o,t,e.createById(i),n)}function NP(o,e,t,i){return o.createModel(e,t,i)}function ene(o,e,t){return ke.initialize(t||{}).createInstance(Hk,o,e)}function tne(o){return ke.get(ut).onCodeEditorAdd(t=>{o(t)})}function ine(o){return ke.get(ut).onDiffEditorAdd(t=>{o(t)})}function nne(){return ke.get(ut).listCodeEditors()}function sne(){return ke.get(ut).listDiffEditors()}function one(o,e,t){return ke.initialize(t||{}).createInstance(zk,o,e)}function rne(o,e){return ke.initialize({}).createInstance(UD,o,e)}function ane(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 lne(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(N.EditorContext,n))}if(Array.isArray(o.keybindings)){const n=ke.get(ei);if(!(n instanceof ig))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 dne(o){return O7([o])}function O7(o){const e=ke.get(ei);return e instanceof ig?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 cne(o,e,t){const i=ke.get(Ut),n=i.getLanguageIdByMimeType(e)||e;return P7(ke.get(jt),i,o,n,t)}function hne(o,e){const t=ke.get(Ut),i=ke.get(jt),n=t.getLanguageIdByMimeType(e)||e||Vs;i.setMode(o,t.createById(n))}function une(o,e,t){o&&ke.get(Ta).changeOne(e,o.uri,t)}function fne(o){ke.get(Ta).changeAll(o,[])}function gne(o){return ke.get(Ta).read(o)}function pne(o){return ke.get(Ta).onMarkerChanged(o)}function mne(o){return ke.get(jt).getModel(o)}function _ne(){return ke.get(jt).getModels()}function vne(o){return ke.get(jt).onModelAdded(o)}function bne(o){return ke.get(jt).onModelRemoved(o)}function Cne(o){return ke.get(jt).onModelLanguageChanged(t=>{o({model:t.model,oldLanguage:t.oldLanguageId})})}function wne(o){return zz(ke.get(jt),ke.get(ui),o)}function Sne(o,e){const t=ke.get(Ut),i=ke.get(Ks);return i.registerEditorContainer(o),XE.colorizeElement(i,t,o,e)}function yne(o,e,t){const i=ke.get(Ut);return ke.get(Ks).registerEditorContainer(document.body),XE.colorize(i,o,e,t)}function Lne(o,e,t=4){return ke.get(Ks).registerEditorContainer(document.body),XE.colorizeModelLine(o,e,t)}function Dne(o){const e=Kt.get(o);return e||{getInitialState:()=>Wf,tokenize:(t,i,n)=>UE(o,n)}}function xne(o,e){Kt.getOrCreate(e);const t=Dne(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&&!aU(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=Uk(e,"^(?:"+(this.matchOnlyAtLineStart?i.substr(1):i)+")")}setAction(e,t){this.action=$k(e,this.name,t)}}function F7(o,e){if(!e||typeof e!="object")throw new Error("Monarch: expecting a language definition object");const t={};t.languageId=o,t.includeLF=_v(e.includeLF,!1),t.noThrow=!1,t.maxStack=100,t.start=typeof e.start=="string"?e.start:null,t.ignoreCase=_v(e.ignoreCase,!1),t.unicode=_v(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 d of l){let c=d.include;if(c){if(typeof c!="string")throw Rt(t,"an 'include' attribute must be a string at: "+r);if(c[0]==="@"&&(c=c.substr(1)),!e.tokenizer[c])throw Rt(t,"include target '"+c+"' is not defined at: "+r);n(r+"."+c,a,e.tokenizer[c])}else{const h=new One(r);if(Array.isArray(d)&&d.length>=1&&d.length<=3)if(h.setRegex(i,d[0]),d.length>=3)if(typeof d[1]=="string")h.setAction(i,{token:d[1],next:d[2]});else if(typeof d[1]=="object"){const u=d[1];u.next=d[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,d[1]);else{if(!d.regex)throw Rt(t,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+r);d.name&&typeof d.name=="string"&&(h.name=d.name),d.matchOnlyAtStart&&(h.matchOnlyAtLineStart=_v(d.matchOnlyAtLineStart,!1)),h.setRegex(i,d.regex),h.setAction(i,d.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:pd(t,a.open),close:pd(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 Fne=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};function Bne(o){Bf.registerLanguage(o)}function Wne(){let o=[];return o=o.concat(Bf.getLanguages()),o}function Vne(o){return ke.get(Ut).languageIdCodec.encodeLanguageId(o)}function Hne(o,e){const i=ke.get(Ut).onDidEncounterLanguage(n=>{n===o&&(i.dispose(),e())});return i}function zne(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 Une{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 D1(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 f=h.startIndex;d===0?f=0:fFne(this,void 0,void 0,function*(){const i=yield Promise.resolve(e.create());return i?$ne(i)?W7(o,i):new km(ke.get(Ut),ke.get(Ks),o,F7(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 B7(e)?T2(o,{create:()=>e}):Kt.register(o,W7(o,e))}function Gne(o,e){const t=i=>new km(ke.get(Ut),ke.get(Ks),o,F7(o,i),ke.get(at));return B7(e)?T2(o,{create:()=>e}):Kt.register(o,t(e))}function Zne(o,e){return ke.get(fe).referenceProvider.register(o,e)}function Yne(o,e){return ke.get(fe).renameProvider.register(o,e)}function Qne(o,e){return ke.get(fe).signatureHelpProvider.register(o,e)}function Xne(o,e){return ke.get(fe).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 Jne(o,e){return ke.get(fe).documentSymbolProvider.register(o,e)}function ese(o,e){return ke.get(fe).documentHighlightProvider.register(o,e)}function tse(o,e){return ke.get(fe).linkedEditingRangeProvider.register(o,e)}function ise(o,e){return ke.get(fe).definitionProvider.register(o,e)}function nse(o,e){return ke.get(fe).implementationProvider.register(o,e)}function sse(o,e){return ke.get(fe).typeDefinitionProvider.register(o,e)}function ose(o,e){return ke.get(fe).codeLensProvider.register(o,e)}function rse(o,e,t){return ke.get(fe).codeActionProvider.register(o,{providedCodeActionKinds:t==null?void 0:t.providedCodeActionKinds,documentation:t==null?void 0:t.documentation,provideCodeActions:(n,s,r,a)=>{const d=ke.get(Ta).read({resource:n.uri}).filter(c=>y.areIntersectingOrTouching(c,s));return e.provideCodeActions(n,s,{markers:d,only:r.only,trigger:r.trigger},a)},resolveCodeAction:e.resolveCodeAction})}function ase(o,e){return ke.get(fe).documentFormattingEditProvider.register(o,e)}function lse(o,e){return ke.get(fe).documentRangeFormattingEditProvider.register(o,e)}function dse(o,e){return ke.get(fe).onTypeFormattingEditProvider.register(o,e)}function cse(o,e){return ke.get(fe).linkProvider.register(o,e)}function hse(o,e){return ke.get(fe).completionProvider.register(o,e)}function use(o,e){return ke.get(fe).colorProvider.register(o,e)}function fse(o,e){return ke.get(fe).foldingRangeProvider.register(o,e)}function gse(o,e){return ke.get(fe).declarationProvider.register(o,e)}function pse(o,e){return ke.get(fe).selectionRangeProvider.register(o,e)}function mse(o,e){return ke.get(fe).documentSemanticTokensProvider.register(o,e)}function _se(o,e){return ke.get(fe).documentRangeSemanticTokensProvider.register(o,e)}function vse(o,e){return ke.get(fe).inlineCompletionsProvider.register(o,e)}function bse(o,e){return ke.get(fe).inlayHintsProvider.register(o,e)}function Cse(){return{register:Bne,getLanguages:Wne,onLanguage:Hne,getEncodedLanguageId:Vne,setLanguageConfiguration:zne,setColorMap:Kne,registerTokensProviderFactory:T2,setTokensProvider:qne,setMonarchTokensProvider:Gne,registerReferenceProvider:Zne,registerRenameProvider:Yne,registerCompletionItemProvider:hse,registerSignatureHelpProvider:Qne,registerHoverProvider:Xne,registerDocumentSymbolProvider:Jne,registerDocumentHighlightProvider:ese,registerLinkedEditingRangeProvider:tse,registerDefinitionProvider:ise,registerImplementationProvider:nse,registerTypeDefinitionProvider:sse,registerCodeLensProvider:ose,registerCodeActionProvider:rse,registerDocumentFormattingEditProvider:ase,registerDocumentRangeFormattingEditProvider:lse,registerOnTypeFormattingEditProvider:dse,registerLinkProvider:cse,registerColorProvider:use,registerFoldingRangeProvider:fse,registerDeclarationProvider:gse,registerSelectionRangeProvider:pse,registerDocumentSemanticTokensProvider:mse,registerDocumentRangeSemanticTokensProvider:_se,registerInlineCompletionsProvider:vse,registerInlayHintsProvider:bse,DocumentHighlightKind:dD,CompletionItemKind:nD,CompletionItemTag:sD,CompletionItemInsertTextRule:Fb,SymbolKind:MD,SymbolTag:AD,IndentAction:gD,CompletionTriggerKind:oD,SignatureHelpTriggerKind:TD,InlayHintKind:mD,InlineCompletionTriggerKind:_D,CodeActionTriggerType:iD,FoldingRangeKind:br}}const M2=Je("IEditorCancelService"),V7=new de("cancellableOperation",!1,g("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));ot(M2,class{constructor(){this._tokens=new WeakMap}add(o,e){let t=this._tokens.get(o);t||(t=o.invokeWithinContext(n=>{const s=V7.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 wse extends Xi{constructor(e,t){super(t),this.editor=e,this._unregister=e.invokeWithinContext(i=>i.get(M2).add(e,this))}dispose(){this._unregister(),super.dispose()}}ie(new class extends Ji{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:V7})}runEditorCommand(o,e){o.get(M2).cancel(e)}});let H7=class jk{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 jk))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 jk(e,this.flags))}};class Sh extends wse{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 A2 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 z7(o){return o&&typeof o.getEditorType=="function"?o.getEditorType()===U_.IDiffEditor:!1}function Sse(o){return!!o&&typeof o=="object"&&typeof o.onDidChangeActiveEditor=="function"}function U7(o){return La(o)?o:z7(o)?o.getModifiedEditor():Sse(o)&&La(o.activeCodeEditor)?o.activeCodeEditor:null}class ng{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=ng._handleEolEdits(e,t);s.length===1&&ng._isFullModelReplaceEdit(e,s[0])?e.executeEdits("formatEditsCommand",s.map(r=>Ht.replace(y.lift(r.range),r.text))):e.executeEdits("formatEditsCommand",s.map(r=>Ht.replaceMove(y.lift(r.range),r.text))),i&&e.pushUndoStop(),n.restoreRelativeVerticalPositionOfCursor(e)}}class Jy{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return typeof e=="string"?e.toLowerCase():e._lower}}var Lr=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};function R2(o){if(o=o.filter(n=>n.range),!o.length)return;let{range:e}=o[0];for(let n=1;n0&&y.areIntersectingOrTouching(d[c-1],m)?d[c-1]=y.fromPositions(d[c-1].getStartPosition(),m.getEndPosition()):c=d.push(m);const h=m=>Lr(this,void 0,void 0,function*(){var _,b;r.trace("[format][provideDocumentRangeFormattingEdits] (request)",(_=e.extensionId)===null||_===void 0?void 0:_.value,m);const v=(yield e.provideDocumentRangeFormattingEdits(a,m,a.getFormattingOptions(),l.token))||[];return r.trace("[format][provideDocumentRangeFormattingEdits] (response)",(b=e.extensionId)===null||b===void 0?void 0:b.value,v),v}),u=(m,_)=>{if(!m.length||!_.length)return!1;const b=m.reduce((v,C)=>y.plusRange(v,C.range),m[0].range);if(!_.some(v=>y.intersectRanges(b,v.range)))return!1;for(const v of m)for(const C of _)if(y.intersectRanges(v.range,C.range))return!0;return!1},f=[],p=[];try{for(const m of d){if(l.token.isCancellationRequested)return!0;p.push(yield h(m))}for(let m=0;m({text:b.text,range:y.lift(b.range),forceMoveMarkers:!0})),b=>{for(const{range:v}of b)if(y.areIntersectingOrTouching(v,_))return[new ue(v.startLineNumber,v.startColumn,v.endLineNumber,v.endColumn)];return null})}return!0})}function Lse(o,e,t,i,n){return Lr(this,void 0,void 0,function*(){const s=o.get(Me),r=o.get(fe),a=La(e)?e.getModel():e,l=$7(r.documentFormattingEditProvider,r.documentRangeFormattingEditProvider,a),d=yield yh.select(l,a,t);d&&(i.report(d),yield s.invokeFunction(Dse,d,e,t,n))})}function Dse(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 A2(t,n));let l;try{const d=yield e.provideDocumentFormattingEdits(r,r.getFormattingOptions(),a.token);if(l=yield s.computeMoreMinimalEdits(r.uri,d),a.token.isCancellationRequested)return!0}finally{a.dispose()}if(!l||l.length===0)return!1;if(La(t))ng.execute(t,l,i!==2),i!==2&&(R2(l),t.revealPositionInCenterIfOutsideViewport(t.getPosition(),1));else{const[{range:d}]=l,c=new ue(d.startLineNumber,d.startColumn,d.endLineNumber,d.endColumn);r.pushEditOperations([c],l.map(h=>({text:h.text,range:y.lift(h.range),forceMoveMarkers:!0})),h=>{for(const{range:u}of h)if(y.areIntersectingOrTouching(u,c))return[new ue(u.startLineNumber,u.startColumn,u.endLineNumber,u.endColumn)];return null})}return!0})}function xse(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 kse(o,e,t,i,n){return Lr(this,void 0,void 0,function*(){const s=$7(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 K7(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(fe),l=yield s.createModelReference(t);try{return xse(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(fe),a=yield n.createModelReference(t);try{return kse(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(fe),d=yield r.createModelReference(t);try{return K7(a,l,d.object.textEditorModel,W.lift(i),n,s,Ye.None)}finally{d.dispose()}})});var eL;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=W4();zn.editor=Tne();zn.languages=Cse();const q7=zn.CancellationTokenSource,G7=zn.Emitter,Z7=zn.KeyCode,Y7=zn.KeyMod,Q7=zn.Position,X7=zn.Range,J7=zn.Selection,e8=zn.SelectionDirection,t8=zn.MarkerSeverity,i8=zn.MarkerTag,n8=zn.Uri,s8=zn.Token,ja=zn.editor,P2=zn.languages;(!((eL=ci.MonacoEnvironment)===null||eL===void 0)&&eL.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 l0=Object.freeze(Object.defineProperty({__proto__:null,CancellationTokenSource:q7,Emitter:G7,KeyCode:Z7,KeyMod:Y7,MarkerSeverity:t8,MarkerTag:i8,Position:Q7,Range:X7,Selection:J7,SelectionDirection:e8,Token:s8,Uri:n8,editor:ja,languages:P2},Symbol.toStringTag,{value:"Module"}));var Ise=Object.defineProperty,Ese=Object.getOwnPropertyDescriptor,Nse=Object.getOwnPropertyNames,Tse=Object.prototype.hasOwnProperty,Mse=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Nse(e))!Tse.call(o,n)&&n!==t&&Ise(o,n,{get:()=>e[n],enumerable:!(i=Ese(e,n))||i.enumerable});return o},Ase=(o,e,t)=>(Mse(o,e,"default"),t),Pp={};Ase(Pp,l0);var o8={},tL={},r8=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 tL[o]||(tL[o]=new r8(o)),tL[o]}load(){return this._loadingTriggered||(this._loadingTriggered=!0,o8[this._languageId].loader().then(o=>this._lazyLoadPromiseResolve(o),o=>this._lazyLoadPromiseReject(o))),this._lazyLoadPromise}};function ve(o){const e=o.id;o8[e]=o,Pp.languages.register(o);const t=r8.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)})}ve({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>me(()=>import("./abap-CRCWOmpq.js"),[])});ve({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>me(()=>import("./apex-DnsZk_dE.js"),[])});ve({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>me(()=>import("./azcli-1IWB1ccx.js"),[])});ve({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>me(()=>import("./bat-DPkNLes8.js"),[])});ve({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>me(()=>import("./bicep-Corcdgou.js"),[])});ve({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>me(()=>import("./cameligo-CGrWLZr3.js"),[])});ve({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>me(()=>import("./clojure-D9WOWImG.js"),[])});ve({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>me(()=>import("./coffee-B7EJu28W.js"),[])});ve({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>me(()=>import("./cpp-BaF-TIV3.js"),[])});ve({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>me(()=>import("./cpp-BaF-TIV3.js"),[])});ve({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>me(()=>import("./csharp-BoL64M5l.js"),[])});ve({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>me(()=>import("./csp-C46ZqvIl.js"),[])});ve({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>me(()=>import("./css-DQU6DXDx.js"),[])});ve({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>me(()=>import("./cypher-D84EuPTj.js"),[])});ve({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>me(()=>import("./dart-D8lhlL1r.js"),[])});ve({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>me(()=>import("./dockerfile-DLk6rpji.js"),[])});ve({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>me(()=>import("./ecl-BO6FnfXk.js"),[])});ve({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>me(()=>import("./elixir-DhnAcdHF.js"),[])});ve({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>me(()=>import("./flow9-Cac8vKd7.js"),[])});ve({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>me(()=>import("./fsharp-fd1GTHhf.js"),[])});ve({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>me(()=>import("./freemarker2-DxReyA8H.js"),__vite__mapDeps([0,1,2])).then(o=>o.TagAutoInterpolationDollar)});ve({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>me(()=>import("./freemarker2-DxReyA8H.js"),__vite__mapDeps([0,1,2])).then(o=>o.TagAngleInterpolationDollar)});ve({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>me(()=>import("./freemarker2-DxReyA8H.js"),__vite__mapDeps([0,1,2])).then(o=>o.TagBracketInterpolationDollar)});ve({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>me(()=>import("./freemarker2-DxReyA8H.js"),__vite__mapDeps([0,1,2])).then(o=>o.TagAngleInterpolationBracket)});ve({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>me(()=>import("./freemarker2-DxReyA8H.js"),__vite__mapDeps([0,1,2])).then(o=>o.TagBracketInterpolationBracket)});ve({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>me(()=>import("./freemarker2-DxReyA8H.js"),__vite__mapDeps([0,1,2])).then(o=>o.TagAutoInterpolationDollar)});ve({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>me(()=>import("./freemarker2-DxReyA8H.js"),__vite__mapDeps([0,1,2])).then(o=>o.TagAutoInterpolationBracket)});ve({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>me(()=>import("./go-O9LJTZXk.js"),[])});ve({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>me(()=>import("./graphql-LQdxqEYJ.js"),[])});ve({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>me(()=>import("./handlebars-C85M79z7.js"),__vite__mapDeps([3,1,2]))});ve({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>me(()=>import("./hcl-DxDQ3s82.js"),[])});ve({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-C5tELRuq.js"),__vite__mapDeps([4,1,2]))});ve({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>me(()=>import("./ini-BvajGCUy.js"),[])});ve({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>me(()=>import("./java-SYsfObOQ.js"),[])});ve({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>me(()=>import("./javascript-y_salJpA.js"),__vite__mapDeps([5,6,1,2]))});ve({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>me(()=>import("./julia-DQXNmw_w.js"),[])});ve({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>me(()=>import("./kotlin-qQ0MG-9I.js"),[])});ve({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>me(()=>import("./less-GGFNNJHn.js"),[])});ve({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>me(()=>import("./lexon-Canl7DCW.js"),[])});ve({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>me(()=>import("./lua-D28Ae8-K.js"),[])});ve({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>me(()=>import("./liquid-Fl2zqidz.js"),__vite__mapDeps([7,1,2]))});ve({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>me(()=>import("./m3-DPitgjJI.js"),[])});ve({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>me(()=>import("./markdown-B811l8j2.js"),[])});ve({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>me(()=>import("./mips-CdjsipkG.js"),[])});ve({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>me(()=>import("./msdax-CYqgjx_P.js"),[])});ve({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>me(()=>import("./mysql-BHd6q0vd.js"),[])});ve({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>me(()=>import("./objective-c-B1aVtJYH.js"),[])});ve({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>me(()=>import("./pascal-BhNW15KB.js"),[])});ve({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>me(()=>import("./pascaligo-5jv8CcQD.js"),[])});ve({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:()=>me(()=>import("./perl-DlYyT36c.js"),[])});ve({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>me(()=>import("./pgsql-Dy0bjov7.js"),[])});ve({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>me(()=>import("./php-120yhfDK.js"),[])});ve({id:"pla",extensions:[".pla"],loader:()=>me(()=>import("./pla-CjnFlu4u.js"),[])});ve({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>me(()=>import("./postiats-CQpG440k.js"),[])});ve({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>me(()=>import("./powerquery-DdJtto1Z.js"),[])});ve({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>me(()=>import("./powershell-Bu_VLpJB.js"),[])});ve({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>me(()=>import("./protobuf-IBS6jZEB.js"),[])});ve({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>me(()=>import("./pug-kFxLfcjb.js"),[])});ve({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>me(()=>import("./python-D0LZW9ZO.js"),__vite__mapDeps([8,1,2]))});ve({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>me(()=>import("./qsharp-gaqVKiJ_.js"),[])});ve({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>me(()=>import("./r-BIFz-_sK.js"),[])});ve({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>me(()=>import("./razor-CeyM33ZD.js"),__vite__mapDeps([9,1,2]))});ve({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>me(()=>import("./redis-CHOsPHWR.js"),[])});ve({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>me(()=>import("./redshift-CBifECDb.js"),[])});ve({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>me(()=>import("./restructuredtext-CghPJEOS.js"),[])});ve({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>me(()=>import("./ruby-CYWGW-b1.js"),[])});ve({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>me(()=>import("./rust-DMDD0SHb.js"),[])});ve({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>me(()=>import("./sb-BYAiYHFx.js"),[])});ve({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-Bqvq8jcR.js"),[])});ve({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>me(()=>import("./scheme-Dhb-2j9p.js"),[])});ve({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>me(()=>import("./scss-CTwUZ5N7.js"),[])});ve({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>me(()=>import("./shell-CsDZo4DB.js"),[])});ve({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>me(()=>import("./solidity-CME5AdoB.js"),[])});ve({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>me(()=>import("./sophia-RYC1BQQz.js"),[])});ve({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>me(()=>import("./sparql-KEyrF7De.js"),[])});ve({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>me(()=>import("./sql-BdTr02Mf.js"),[])});ve({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:()=>me(()=>import("./st-C8kzSboH.js"),[])});ve({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>me(()=>import("./swift-D7IUmUK8.js"),[])});ve({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>me(()=>import("./systemverilog-DgMryOEJ.js"),[])});ve({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>me(()=>import("./systemverilog-DgMryOEJ.js"),[])});ve({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>me(()=>import("./tcl-PloMZuKG.js"),[])});ve({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>me(()=>import("./twig-bne2BnKZ.js"),[])});ve({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>me(()=>import("./typescript-DjqF3dw5.js"),__vite__mapDeps([6,1,2]))});ve({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>me(()=>import("./vb-BwAE3J76.js"),[])});ve({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\me(()=>import("./xml-DjjEpseC.js"),__vite__mapDeps([10,1,2]))});ve({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>me(()=>import("./yaml-DjsvKETB.js"),__vite__mapDeps([11,1,2]))});var Rse=Object.defineProperty,Pse=Object.getOwnPropertyDescriptor,Ose=Object.getOwnPropertyNames,Fse=Object.prototype.hasOwnProperty,Bse=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ose(e))!Fse.call(o,n)&&n!==t&&Rse(o,n,{get:()=>e[n],enumerable:!(i=Pse(e,n))||i.enumerable});return o},Wse=(o,e,t)=>(Bse(o,e,"default"),t),Ng={};Wse(Ng,l0);var O2=class{constructor(e,t,i){Zt(this,"_onDidChange",new Ng.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)}},F2={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}},B2={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},a8=new O2("css",F2,B2),l8=new O2("scss",F2,B2),d8=new O2("less",F2,B2);Ng.languages.css={cssDefaults:a8,lessDefaults:d8,scssDefaults:l8};function W2(){return me(()=>import("./cssMode-DGmecgny.js"),__vite__mapDeps([12,1,2]))}Ng.languages.onLanguage("less",()=>{W2().then(o=>o.setupMode(d8))});Ng.languages.onLanguage("scss",()=>{W2().then(o=>o.setupMode(l8))});Ng.languages.onLanguage("css",()=>{W2().then(o=>o.setupMode(a8))});var Vse=Object.defineProperty,Hse=Object.getOwnPropertyDescriptor,zse=Object.getOwnPropertyNames,Use=Object.prototype.hasOwnProperty,$se=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of zse(e))!Use.call(o,n)&&n!==t&&Vse(o,n,{get:()=>e[n],enumerable:!(i=Hse(e,n))||i.enumerable});return o},jse=(o,e,t)=>($se(o,e,"default"),t),Aw={};jse(Aw,l0);var Kse=class{constructor(e,t,i){Zt(this,"_onDidChange",new Aw.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)}},qse={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"},Rw={format:qse,suggest:{},data:{useDefaultDataProvider:!0}};function Pw(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",AP="handlebars",RP="razor",c8=Ow(hm,Rw,Pw(hm)),Gse=c8.defaults,h8=Ow(AP,Rw,Pw(AP)),Zse=h8.defaults,u8=Ow(RP,Rw,Pw(RP)),Yse=u8.defaults;Aw.languages.html={htmlDefaults:Gse,razorDefaults:Yse,handlebarDefaults:Zse,htmlLanguageService:c8,handlebarLanguageService:h8,razorLanguageService:u8,registerHTMLLanguageService:Ow};function Qse(){return me(()=>import("./htmlMode-CU43yFfm.js"),__vite__mapDeps([13,1,2]))}function Ow(o,e=Rw,t=Pw(o)){const i=new Kse(o,e,t);let n;const s=Aw.languages.onLanguage(o,async()=>{n=(await Qse()).setupMode(i)});return{defaults:i,dispose(){s.dispose(),n==null||n.dispose(),n=void 0}}}var Xse=Object.defineProperty,Jse=Object.getOwnPropertyDescriptor,eoe=Object.getOwnPropertyNames,toe=Object.prototype.hasOwnProperty,ioe=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of eoe(e))!toe.call(o,n)&&n!==t&&Xse(o,n,{get:()=>e[n],enumerable:!(i=Jse(e,n))||i.enumerable});return o},noe=(o,e,t)=>(ioe(o,e,"default"),t),d0={};noe(d0,l0);var soe=class{constructor(e,t,i){Zt(this,"_onDidChange",new d0.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},f8=new soe("json",ooe,roe);d0.languages.json={jsonDefaults:f8};function aoe(){return me(()=>import("./jsonMode-ivlzjmY8.js"),__vite__mapDeps([14,1,2]))}d0.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});d0.languages.onLanguage("json",()=>{aoe().then(o=>o.setupMode(f8))});var loe=Object.defineProperty,doe=Object.getOwnPropertyDescriptor,coe=Object.getOwnPropertyNames,hoe=Object.prototype.hasOwnProperty,uoe=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of coe(e))!hoe.call(o,n)&&n!==t&&loe(o,n,{get:()=>e[n],enumerable:!(i=doe(e,n))||i.enumerable});return o},foe=(o,e,t)=>(uoe(o,e,"default"),t),goe="4.5.5",sg={};foe(sg,l0);var g8=(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))(g8||{}),p8=(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))(p8||{}),m8=(o=>(o[o.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",o[o.LineFeed=1]="LineFeed",o))(m8||{}),_8=(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))(_8||{}),v8=(o=>(o[o.Classic=1]="Classic",o[o.NodeJs=2]="NodeJs",o))(v8||{}),b8=class{constructor(o,e,t,i,n){Zt(this,"_onDidChange",new sg.Emitter);Zt(this,"_onDidExtraLibsChange",new sg.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)}},poe=goe,C8={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},w8=new b8({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},C8),S8=new b8({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},C8),moe=()=>Fw().then(o=>o.getTypeScriptWorker()),_oe=()=>Fw().then(o=>o.getJavaScriptWorker());sg.languages.typescript={ModuleKind:g8,JsxEmit:p8,NewLineKind:m8,ScriptTarget:_8,ModuleResolutionKind:v8,typescriptVersion:poe,typescriptDefaults:w8,javascriptDefaults:S8,getTypeScriptWorker:moe,getJavaScriptWorker:_oe};function Fw(){return me(()=>import("./tsMode-Damxf_us.js"),__vite__mapDeps([15,1,2]))}sg.languages.onLanguage("typescript",()=>Fw().then(o=>o.setupTypeScript(w8)));sg.languages.onLanguage("javascript",()=>Fw().then(o=>o.setupJavaScript(S8)));var voe=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=function(o,e){return function(t,i){e(t,i,o)}},Bw=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};const Ww=new de("selectionAnchorSet",!1);let yl=class y8{static get(e){return e.getContribution(y8.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=Ww.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(ue.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new Yn().appendText(g("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),dn(g("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(ue.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=voe([boe(1,Ee)],yl);class Coe extends ce{constructor(){super({id:"editor.action.setSelectionAnchor",label:g("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:T.editorTextFocus,primary:ki(2089,2080),weight:100}})}run(e,t){var i;return Bw(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.setSelectionAnchor()})}}class woe extends ce{constructor(){super({id:"editor.action.goToSelectionAnchor",label:g("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:Ww})}run(e,t){var i;return Bw(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.goToSelectionAnchor()})}}class Soe extends ce{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:g("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:Ww,kbOpts:{kbExpr:T.editorTextFocus,primary:ki(2089,2089),weight:100}})}run(e,t){var i;return Bw(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.selectFromAnchorToCursor()})}}class yoe extends ce{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:g("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:Ww,kbOpts:{kbExpr:T.editorTextFocus,primary:9,weight:100}})}run(e,t){var i;return Bw(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.cancelSelectionAnchor()})}}lt(yl.ID,yl,4);J(Coe);J(woe);J(Soe);J(yoe);const Loe=M("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},g("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class Doe extends ce{constructor(){super({id:"editor.action.jumpToBracket",label:g("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:T.editorTextFocus,primary:3160,weight:100}})}run(e,t){var i;(i=vr.get(t))===null||i===void 0||i.jumpToBracket()}}class xoe extends ce{constructor(){super({id:"editor.action.selectToBracket",label:g("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=vr.get(t))===null||n===void 0||n.selectToBracket(s)}}class koe{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class vr extends U{static get(e){return e.getContribution(vr.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 ue(r.lineNumber,r.column,r.lineNumber,r.column):new ue(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 d=t.bracketPairs.findNextBracket(s);d&&d.range&&(r=t.bracketPairs.matchBracket(d.range.getStartPosition()))}let a=null,l=null;if(r){r.sort(y.compareRangesUsingStarts);const[d,c]=r;if(a=e?d.getStartPosition():d.getEndPosition(),l=e?c.getEndPosition():c.getStartPosition(),c.containsPosition(s)){const h=a;a=l,l=h}}a&&l&&i.push(new ue(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,d=0;const c=n.length;for(let h=0,u=s.length;h0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}J(Toe);var Moe=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};const Lh="9_cutcopypaste",Aoe=ur||document.queryCommandSupported("cut"),D8=ur||document.queryCommandSupported("copy"),Roe=typeof navigator.clipboard>"u"||ro?document.queryCommandSupported("paste"):!0;function V2(o){return o.register(),o}const Poe=Aoe?V2(new yg({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:ur?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:N.MenubarEditMenu,group:"2_ccp",title:g({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:N.EditorContext,group:Lh,title:g("actions.clipboard.cutLabel","Cut"),when:T.writable,order:1},{menuId:N.CommandPalette,group:"",title:g("actions.clipboard.cutLabel","Cut"),order:1},{menuId:N.SimpleEditorContext,group:Lh,title:g("actions.clipboard.cutLabel","Cut"),when:T.writable,order:1}]})):void 0,Ooe=D8?V2(new yg({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:ur?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:N.MenubarEditMenu,group:"2_ccp",title:g({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:N.EditorContext,group:Lh,title:g("actions.clipboard.copyLabel","Copy"),order:2},{menuId:N.CommandPalette,group:"",title:g("actions.clipboard.copyLabel","Copy"),order:1},{menuId:N.SimpleEditorContext,group:Lh,title:g("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;Jn.appendMenuItem(N.MenubarEditMenu,{submenu:N.MenubarCopy,title:{value:g("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3});Jn.appendMenuItem(N.EditorContext,{submenu:N.EditorContextCopy,title:{value:g("copy as","Copy As"),original:"Copy As"},group:Lh,order:3});Jn.appendMenuItem(N.EditorContext,{submenu:N.EditorContextShare,title:{value:g("share","Share"),original:"Share"},group:"11_share",order:-1});const iL=Roe?V2(new yg({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:N.MenubarEditMenu,group:"2_ccp",title:g({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:N.EditorContext,group:Lh,title:g("actions.clipboard.pasteLabel","Paste"),when:T.writable,order:4},{menuId:N.CommandPalette,group:"",title:g("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:N.SimpleEditorContext,group:Lh,title:g("actions.clipboard.pasteLabel","Paste"),when:T.writable,order:4}]})):void 0;class Foe extends ce{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:g("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:T.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(34)&&t.getSelection().isEmpty()||(mx.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),mx.forceCopyWithSyntaxHighlighting=!1)}}function x8(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)))}x8(Poe,"cut");x8(Ooe,"copy");iL&&(iL.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")&&Kd?Moe(void 0,void 0,void 0,function*(){const r=yield i.readText();if(r!==""){const a=Bm.INSTANCE.get(r);let l=!1,d=null,c=null;a&&(l=n.getOption(34)&&!!a.isFromEmptySelection,d=typeof a.multicursorText<"u"?a.multicursorText:null,c=a.mode),n.trigger("keyboard","paste",{text:r,pasteOnNewLine:l,multicursorText:d,mode:c})}}):!0:!1}),iL.addImplementation(0,"generic-dom",(o,e)=>(document.execCommand("paste"),!0)));D8&&J(Foe);var Boe=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};class Ne{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+Ne.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new Ne(this.value+Ne.sep+e)}}Ne.sep=".";Ne.None=new Ne("@@none@@");Ne.Empty=new Ne("");Ne.QuickFix=new Ne("quickfix");Ne.Refactor=new Ne("refactor");Ne.RefactorExtract=Ne.Refactor.append("extract");Ne.RefactorInline=Ne.Refactor.append("inline");Ne.RefactorMove=Ne.Refactor.append("move");Ne.RefactorRewrite=Ne.Refactor.append("rewrite");Ne.Source=new Ne("source");Ne.SourceOrganizeImports=Ne.Source.append("organizeImports");Ne.SourceFixAll=Ne.Source.append("fixAll");Ne.SurroundWith=Ne.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 Woe(o,e){return!(o.include&&!o.include.intersects(e)||o.excludes&&o.excludes.some(t=>k8(e,t,o.include))||!o.includeSourceActions&&Ne.Source.contains(e))}function Voe(o,e){const t=e.kind?new Ne(e.kind):void 0;return!(o.include&&(!t||!o.include.contains(t))||o.excludes&&t&&o.excludes.some(i=>k8(t,i,o.include))||!o.includeSourceActions&&t&&Ne.Source.contains(t)||o.onlyIncludePreferredActions&&!e.isPreferred)}function k8(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 Ne(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 Hoe{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return Boe(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 e1=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};const I8="editor.action.codeAction",E8="editor.action.refactor",zoe="editor.action.refactor.preview",N8="editor.action.sourceAction",H2="editor.action.organizeImports",z2="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&&Ne.QuickFix.contains(new Ne(e.kind))&&!!e.isPreferred)}}const PP={actions:[],documentation:void 0};function U2(o,e,t,i,n,s){var r;return e1(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},d=new A2(e,s),c=Uoe(o,e,a),h=new Z,u=c.map(p=>e1(this,void 0,void 0,function*(){try{n.report(p);const m=yield p.provideCodeActions(e,t,l,d.token);if(m&&h.add(m),d.token.isCancellationRequested)return PP;const _=((m==null?void 0:m.actions)||[]).filter(v=>v&&Voe(a,v)),b=joe(p,_,a.include);return{actions:_.map(v=>new Hoe(v,p)),documentation:b}}catch(m){if(Da(m))throw m;return Vi(m),PP}})),f=o.onDidChange(()=>{const p=o.all(e);Bn(p,c)||d.cancel()});try{const p=yield Promise.all(u),m=p.map(b=>b.actions).flat(),_=[...mg(p.map(b=>b.documentation)),...$oe(o,e,i,m)];return new um(m,_,h)}finally{f.dispose(),d.dispose()}})}function Uoe(o,e,t){return o.all(e).filter(i=>i.providedCodeActionKinds?i.providedCodeActionKinds.some(n=>Woe(t,new Ne(n))):!0)}function*$oe(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 joe(o,e,t){if(!o.documentation)return;const i=o.documentation.map(n=>({kind:new Ne(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 Ne(n.kind)))return s.command}}var t1;(function(o){o.OnSave="onSave",o.FromProblemsView="fromProblemsView",o.FromCodeActions="fromCodeActions"})(t1||(t1={}));function Koe(o,e,t,i,n=Ye.None){var s;return e1(this,void 0,void 0,function*(){const r=o.get(i0),a=o.get(ri),l=o.get(mo),d=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!==t1.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(c){const h=qoe(c);d.error(typeof h=="string"?h:g("applyCodeActionFailed","An unknown error occurred while applying the code action"))}})}function qoe(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 e1(this,void 0,void 0,function*(){if(!(e instanceof Ce))throw Po();const{codeActionProvider:s}=o.get(fe),r=o.get(jt).getModel(e);if(!r)throw Po();const a=ue.isISelection(t)?ue.liftSelection(t):y.isIRange(t)?r.validateRange(t):void 0;if(!a)throw Po();const l=typeof i=="string"?new Ne(i):void 0,d=yield U2(s,r,a,{type:1,triggerAction:ns.Default,filter:{includeSourceActions:!0,include:l}},Qh.None,Ye.None),c=[],h=Math.min(d.validActions.length,typeof n=="number"?n:0);for(let u=0;uu.action)}finally{setTimeout(()=>d.dispose(),100)}})});var Goe=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},Zoe=function(o,e){return function(t,i){e(t,i,o)}};let i1=class T8{constructor(e){this.keybindingService=e}getResolver(){const e=new $h(()=>this.keybindingService.getKeybindings().filter(t=>T8.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let i=t.commandArgs;return t.command===H2?i={kind:Ne.SourceOrganizeImports.value}:t.command===z2&&(i={kind:Ne.SourceFixAll.value}),Object.assign({resolvedKeybinding:t.resolvedKeybinding},Yr.fromUser(i,{kind:Ne.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 Ne(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)}};i1.codeActionCommands=[E8,I8,N8,H2,z2];i1=Goe([Zoe(0,ei)],i1);M("symbolIcon.arrayForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("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},g("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"},g("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},g("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},g("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"},g("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"},g("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"},g("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"},g("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"},g("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},g("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},g("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"},g("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"},g("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},g("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},g("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"},g("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},g("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},g("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},g("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},g("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},g("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},g("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},g("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},g("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},g("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},g("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},g("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},g("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},g("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},g("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},g("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"},g("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));const M8=Object.freeze({kind:Ne.Empty,title:g("codeAction.widget.id.more","More Actions...")}),Yoe=Object.freeze([{kind:Ne.QuickFix,title:g("codeAction.widget.id.quickfix","Quick Fix...")},{kind:Ne.RefactorExtract,title:g("codeAction.widget.id.extract","Extract..."),icon:se.wrench},{kind:Ne.RefactorInline,title:g("codeAction.widget.id.inline","Inline..."),icon:se.wrench},{kind:Ne.RefactorRewrite,title:g("codeAction.widget.id.convert","Rewrite..."),icon:se.wrench},{kind:Ne.RefactorMove,title:g("codeAction.widget.id.move","Move..."),icon:se.wrench},{kind:Ne.SurroundWith,title:g("codeAction.widget.id.surround","Surround With..."),icon:se.symbolSnippet},{kind:Ne.Source,title:g("codeAction.widget.id.source","Source Action..."),icon:se.symbolFile},M8]);function Qoe(o,e,t){if(!e)return o.map(s=>({kind:"action",item:s,group:M8,disabled:!!s.action.disabled,label:s.action.disabled||s.action.title}));const i=Yoe.map(s=>({group:s,actions:[]}));for(const s of o){const r=s.action.kind?new Ne(s.action.kind):Ne.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 Xoe=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},Joe=function(o,e){return function(t,i){e(t,i,o)}};let Cs=class Kk{static get(e){return e.getContribution(Kk.ID)}constructor(e,t){this._messageWidget=new wn,this._messageListeners=new Z,this._editor=e,this._visible=Kk.MESSAGE_VISIBLE.bindTo(t)}dispose(){this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){dn(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new OP(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 go(()=>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(OP.fadeOut(this._messageWidget.value))}};Cs.ID="editor.contrib.messageController";Cs.MESSAGE_VISIBLE=new de("messageVisible",!1,g("messageVisible","Whether the editor is currently showing an inline message"));Cs=Xoe([Joe(1,Ee)],Cs);const ere=Ji.bindToContribution(Cs.get);ie(new ere({id:"leaveEditorMessage",precondition:Cs.MESSAGE_VISIBLE,handler:o=>o.closeMessage(),kbOpts:{weight:130,primary:9}}));let OP=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 A8=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},qk=function(o,e){return function(t,i){e(t,i,o)}};const R8="acceptSelectedCodeAction",P8="previewSelectedCodeAction";class tre{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 Gk=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 n0(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=O8(e.label),e.keybinding?(i.keybinding.set(e.keybinding),hs(i.keybinding.element)):On(i.keybinding.element);const a=(s=this._keybindingService.lookupKeybinding(R8))===null||s===void 0?void 0:s.getLabel(),l=(r=this._keybindingService.lookupKeybinding(P8))===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=g({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=g({key:"label",comment:['placeholder is a keybinding, e.g "F2 to apply"']},"{0} to apply",a):i.container.title="",e.description){const d=new pl(q(i.container,X("span.label-description")));d.element.classList.add("action-list-description"),d.set(e.description)}}disposeTemplate(e){}};Gk=A8([qk(1,ei)],Gk);class ire extends UIEvent{constructor(){super("acceptSelectedAction")}}class FP extends UIEvent{constructor(){super("previewSelectedAction")}}let Zk=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 Gk(t,this._keybindingService),new tre],{keyboardSupport:!1,accessibilityProvider:{getAriaLabel:l=>{if(l.kind==="action"){let d=l.label?O8(l==null?void 0:l.label):"";return l.disabled&&(d=g({key:"customQuickFixWidget.labels",comment:["Action widget labels for accessibility."]},"{0}, Disabled Reason: {1}",d,l.disabled)),d}return null},getWidgetAriaLabel:()=>g({key:"customQuickFixWidget",comment:["An action widget option"]},"Action Widget"),getRole:l=>l.kind==="action"?"option":"separator",getWidgetRole:()=>"listbox"}})),this._list.style(Ig),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(d=>d.kind==="header").length,n=this._allMenuItems.length*this._actionLineHeight+t*this._headerLineHeight-t*this._actionLineHeight;this._list.layout(n);const s=this._allMenuItems.map((d,c)=>{const h=document.getElementById(this._list.getElementID(c));if(h){h.style.width="auto";const u=h.getBoundingClientRect().width;return h.style.width="",u}return 0}),r=Math.max(...s,e),l=Math.min(n,document.body.clientHeight*.7);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 FP:new ire;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 FP):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([])}};Zk=A8([qk(4,xl),qk(5,ei)],Zk);function O8(o){return o.replace(/\r\n|\r|\n/g," ")}var nre=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},nL=function(o,e){return function(t,i){e(t,i,o)}};const Dh={Visible:new de("codeActionMenuVisible",!1,g("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),d=this._instantiationService.createInstance(Zk,e,t,i,n);this._contextViewService.showContextView({getAnchor:()=>s,render:c=>(l.set(!0),this._renderWidget(c,d,a??[])),onHide:c=>{l.reset(),this._onWidgetClosed(c)}},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 d=document.createElement("div"),c=e.appendChild(d);c.classList.add("context-view-pointerBlock"),r.add(K(c,ae.POINTER_MOVE,()=>c.remove())),r.add(K(c,ae.MOUSE_DOWN,()=>c.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 f=r.add(fh(e));return r.add(f.onDidBlur(()=>this.hide())),r}_createActionBar(e,t){if(!t.length)return;const i=X(e),n=new fo(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=nre([nL(0,xl),nL(1,Ee),nL(2,Me)],xh);ot(tu,xh,1);const c0=1100;Nn(class extends Yd{constructor(){super({id:"hideCodeActionWidget",title:{value:g("hideCodeActionWidget.title","Hide action widget"),original:"Hide action widget"},precondition:Dh.Visible,keybinding:{weight:c0,primary:9,secondary:[1033]}})}run(o){o.get(tu).hide()}});Nn(class extends Yd{constructor(){super({id:"selectPrevCodeAction",title:{value:g("selectPrevCodeAction.title","Select previous action"),original:"Select previous action"},precondition:Dh.Visible,keybinding:{weight:c0,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})}run(o){const e=o.get(tu);e instanceof xh&&e.focusPrevious()}});Nn(class extends Yd{constructor(){super({id:"selectNextCodeAction",title:{value:g("selectNextCodeAction.title","Select next action"),original:"Select next action"},precondition:Dh.Visible,keybinding:{weight:c0,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})}run(o){const e=o.get(tu);e instanceof xh&&e.focusNext()}});Nn(class extends Yd{constructor(){super({id:R8,title:{value:g("acceptSelected.title","Accept selected action"),original:"Accept selected action"},precondition:Dh.Visible,keybinding:{weight:c0,primary:3,secondary:[2132]}})}run(o){const e=o.get(tu);e instanceof xh&&e.acceptSelected()}});Nn(class extends Yd{constructor(){super({id:P8,title:{value:g("previewSelected.title","Preview selected action"),original:"Preview selected action"},precondition:Dh.Visible,keybinding:{weight:c0,primary:2051}})}run(o){const e=o.get(tu);e instanceof xh&&e.acceptSelected(!0)}});var sre=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=function(o,e){return function(t,i){e(t,i,o)}},sf;(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})(sf||(sf={}));let n1=class F8 extends U{constructor(e,t,i,n){super(),this._editor=e,this._onClick=this._register(new O),this.onClick=this._onClick.event,this._state=sf.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(YU(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 d=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,d=n.get(47),c=s.getLineContent(r),h=lw(c,l),u=d.spaceWidth*h>22,f=m=>m>2&&this._editor.getTopForLineNumber(m)===this._editor.getTopForLineNumber(m-1);let p=r;if(!u){if(r>1&&!f(r-1))p-=1;else if(!f(r+1))p+=1;else if(a*d.spaceWidth<22)return this.hide()}this.state=new sf.Showing(e,t,i,{position:{lineNumber:p,column:1},preference:F8._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state!==sf.Hidden&&(this.state=sf.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=g("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=g("codeActionWithKb","Show Code Actions ({0})",this._quickFixKbLabel):this.title=g("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};n1._posPref=[0];n1=sre([ore(3,ei)],n1);var rre=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},vv=function(o,e){return function(t,i){e(t,i,o)}},sL=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})},are=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},lre=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)},gb;let Yk=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),gb.set(this,!1),this._showDisabled=!1,this._lightBulbWidget=new $h(()=>{const d=this._register(s.createInstance(n1,this._editor,t,i));return this._register(d.onClick(c=>this.showCodeActionList(c.actions,c,{includeDisabledActions:!1,fromLightbulb:!0}))),d}),this._resolver=s.createInstance(i1),this._register(this._editor.onDidLayoutChange(()=>this._actionWidgetService.hide()))}dispose(){are(this,gb,!0,"f"),super.dispose()}update(e){var t,i,n,s,r;return sL(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(!lre(this,gb,"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 d=this.tryGetValidActionToApply(e.trigger,a);if(d){try{this._lightBulbWidget.value.hide(),yield this.delegate.applyCodeAction(d,!1,!1)}finally{a.dispose()}return}if(e.trigger.context){const c=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,a);if(c&&c.action.disabled){(n=Cs.get(this._editor))===null||n===void 0||n.showMessage(c.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 sL(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,d)=>sL(this,void 0,void 0,function*(){this.delegate.applyCodeAction(l,!0,d||!1),this._actionWidgetService.hide()}),onHide:()=>{var l;(l=this._editor)===null||l===void 0||l.focus()}};this._actionWidgetService.show("codeActionWidget",!0,Qoe(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:g("hideMoreActions","Hide Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!1,this.showCodeActionList(e,t,i))}:{id:"showMoreActions",label:g("showMoreActions","Show Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!0,this.showCodeActionList(e,t,i))}),n}};gb=new WeakMap;Yk=rre([vv(4,Me),vv(5,at),vv(6,tu),vv(7,ri)],Yk);var oL=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)},dre=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 B8=new de("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 go),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=>LN(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 Rc;(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 hre;throw a})}cancel(){this._cancellablePromise.cancel()}}o.Triggered=e})(Rc||(Rc={}));const hre={allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1};class ure 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=Rc.Empty,this._onDidChangeState=this._register(new O),this.onDidChangeState=this._onDidChangeState.event,Ru.set(this,!1),this._supportedCodeActions=B8.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(){oL(this,Ru,"f")||(dre(this,Ru,!0,"f"),super.dispose(),this.setState(Rc.Empty,!0))}_update(){if(oL(this,Ru,"f"))return;this._codeActionOracle.value=void 0,this.setState(Rc.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(Rc.Empty);return}const s=Wi(r=>U2(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 Rc.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&&!oL(this,Ru,"f")&&this._onDidChangeState.fire(e))}}Ru=new WeakMap;var fre=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=function(o,e){return function(t,i){e(t,i,o)}},gre=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};function h0(o){return oe.regex(B8.keys()[0],new RegExp("(\\s|^)"+Hs(o.value)+"\\b"))}function W8(o,e,t,i){const n=Yr.fromUser(e,{kind:Ne.Refactor,apply:"never"});return iu(o,typeof(e==null?void 0:e.kind)=="string"?n.preferred?g("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",e.kind):g("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",e.kind):n.preferred?g("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):g("editor.action.refactor.noneMessage","No refactorings available"),{include:Ne.Refactor.contains(n.kind)?n.kind:Ne.None,onlyIncludePreferredActions:n.preferred},n.apply,t,i)}const Vw={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:g("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:g("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[g("args.schema.apply.first","Always apply the first returned code action."),g("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),g("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:g("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};let kh=class V8 extends U{static get(e){return e.getContribution(V8.ID)}constructor(e,t,i,n,s,r){super(),this._instantiationService=s,this._editor=e,this._model=this._register(new ure(this._editor,r.codeActionProvider,t,i,n)),this._register(this._model.onDidChangeState(a=>this.update(a))),this._ui=new $h(()=>this._register(s.createInstance(Yk,e,Tg.Id,u0.Id,{applyCodeAction:(a,l,d)=>gre(this,void 0,void 0,function*(){try{yield this._applyCodeAction(a,d)}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(Koe,e,t1.FromCodeActions,{preview:t,editor:this._editor})}};kh.ID="editor.contrib.codeActionController";kh=fre([sp(1,Ta),sp(2,Ee),sp(3,ec),sp(4,Me),sp(5,fe)],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 Tg extends ce{constructor(){super({id:Tg.Id,label:g("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:oe.and(T.writable,T.hasCodeActionsProvider),kbOpts:{kbExpr:T.editorTextFocus,primary:2132,weight:100}})}run(e,t){return iu(t,g("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,!1,ns.QuickFix)}}Tg.Id="editor.action.quickFix";class pre extends Ji{constructor(){super({id:I8,precondition:oe.and(T.writable,T.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:Vw}]}})}runEditorCommand(e,t,i){const n=Yr.fromUser(i,{kind:Ne.Empty,apply:"ifSingle"});return iu(t,typeof(i==null?void 0:i.kind)=="string"?n.preferred?g("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",i.kind):g("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",i.kind):n.preferred?g("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):g("editor.action.codeAction.noneMessage","No code actions available"),{include:n.kind,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply)}}class mre extends ce{constructor(){super({id:E8,label:g("refactor.label","Refactor..."),alias:"Refactor...",precondition:oe.and(T.writable,T.hasCodeActionsProvider),kbOpts:{kbExpr:T.editorTextFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:oe.and(T.writable,h0(Ne.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:Vw}]}})}run(e,t,i){return W8(t,i,!1,ns.Refactor)}}class _re extends ce{constructor(){super({id:zoe,label:g("refactor.preview.label","Refactor with Preview..."),alias:"Refactor Preview...",precondition:oe.and(T.writable,T.hasCodeActionsProvider),description:{description:"Refactor Preview...",args:[{name:"args",schema:Vw}]}})}run(e,t,i){return W8(t,i,!0,ns.RefactorPreview)}}class vre extends ce{constructor(){super({id:N8,label:g("source.label","Source Action..."),alias:"Source Action...",precondition:oe.and(T.writable,T.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:oe.and(T.writable,h0(Ne.Source))},description:{description:"Source Action...",args:[{name:"args",schema:Vw}]}})}run(e,t,i){const n=Yr.fromUser(i,{kind:Ne.Source,apply:"never"});return iu(t,typeof(i==null?void 0:i.kind)=="string"?n.preferred?g("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",i.kind):g("editor.action.source.noneMessage.kind","No source actions for '{0}' available",i.kind):n.preferred?g("editor.action.source.noneMessage.preferred","No preferred source actions available"):g("editor.action.source.noneMessage","No source actions available"),{include:Ne.Source.contains(n.kind)?n.kind:Ne.None,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply,void 0,ns.SourceAction)}}class bre extends ce{constructor(){super({id:H2,label:g("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:oe.and(T.writable,h0(Ne.SourceOrganizeImports)),kbOpts:{kbExpr:T.editorTextFocus,primary:1581,weight:100}})}run(e,t){return iu(t,g("editor.action.organize.noneMessage","No organize imports action available"),{include:Ne.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",void 0,ns.OrganizeImports)}}class Cre extends ce{constructor(){super({id:z2,label:g("fixAll.label","Fix All"),alias:"Fix All",precondition:oe.and(T.writable,h0(Ne.SourceFixAll))})}run(e,t){return iu(t,g("fixAll.noneMessage","No fix all action available"),{include:Ne.SourceFixAll,includeSourceActions:!0},"ifSingle",void 0,ns.FixAll)}}class u0 extends ce{constructor(){super({id:u0.Id,label:g("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:oe.and(T.writable,h0(Ne.QuickFix)),kbOpts:{kbExpr:T.editorTextFocus,primary:1620,mac:{primary:2644},weight:100}})}run(e,t){return iu(t,g("editor.action.autoFix.noneMessage","No auto fixes available"),{include:Ne.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",void 0,ns.AutoFix)}}u0.Id="editor.action.autoFix";lt(kh.ID,kh,3);J(Tg);J(mre);J(_re);J(vre);J(bre);J(u0);J(Cre);ie(new pre);$t.as(ka.Configuration).registerConfiguration(Object.assign(Object.assign({},e2),{properties:{"editor.codeActionWidget.showHeaders":{type:"boolean",scope:5,description:g("showCodeActionHeaders","Enable/disable showing group headers in the Code Action menu."),default:!0}}}));var BP=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};class Qk{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 H8(o,e,t){return BP(this,void 0,void 0,function*(){const i=o.ordered(e),n=new Map,s=new Qk,r=i.map((a,l)=>BP(this,void 0,void 0,function*(){n.set(a,l);try{const d=yield Promise.resolve(a.provideCodeLenses(e,t));d&&s.add(d,a)}catch(d){Vi(d)}}));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(fe),s=o.get(jt).getModel(t);if(!s)throw Po();const r=[],a=new Z;return H8(n,s,Ye.None).then(l=>{a.add(l);const d=[];for(const c of l.lenses)i==null||c.symbol.command?r.push(c.symbol):i-- >0&&c.provider.resolveCodeLens&&d.push(Promise.resolve(c.provider.resolveCodeLens(s,c.symbol,Ye.None)).then(h=>r.push(h||c.symbol)));return Promise.all(d)}).then(()=>r).finally(()=>{setTimeout(()=>a.dispose(),100)})});var wre=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=function(o,e){return function(t,i){e(t,i,o)}};const z8=Je("ICodeLensCache");class WP{constructor(e,t){this.lineCount=e,this.data=t}}let Xk=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new Xd(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===OC.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 Qk;n.add({lenses:i,dispose:()=>{}},this._fakeProvider);const s=new WP(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 Qk;r.add({lenses:s,dispose(){}},this._fakeProvider),this._cache.set(i,new WP(n.lineCount,r))}}catch{}}};Xk=wre([Sre(0,jo)],Xk);ot(z8,Xk,1);class yre{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 Hw{constructor(e,t){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id=`codelens.widget-${Hw._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{d.symbol.command&&l.push(d.symbol),i.addDecoration({range:d.symbol.range,options:VP},h=>this._decorationIds[c]=h),a?a=y.plusRange(a,d.symbol.range):a=y.lift(d.symbol.range)}),this._viewZone=new yre(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 Hw(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:VP},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=function(o,e){return function(t,i){e(t,i,o)}},Dre=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};let og=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(ch(()=>{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=>H8(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(d=>{!d.isValid()||a===d.getLineNumber()?r.push(d):(d.update(s),a=d.getLineNumber())});const l=new rL;r.forEach(d=>{d.dispose(l,s),this._lenses.splice(this._lenses.indexOf(d),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 rL;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 d=new rL;let c=0,h=0;for(;hthis._resolveCodeLensesInViewportSoon())),c++,h++)}for(;cthis._resolveCodeLensesInViewportSoon())),h++;d.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((d,c)=>{const h=new Array(d.length),u=d.map((f,p)=>!f.symbol.command&&typeof f.provider.resolveCodeLens=="function"?Promise.resolve(f.provider.resolveCodeLens(t,f.symbol,a)).then(m=>{h[p]=m},Vi):(h[p]=f.symbol,Promise.resolve(void 0)));return Promise.all(u).then(()=>{!a.isCancellationRequested&&!n[c].isDisposed()&&n[c].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}};og.ID="css.editor.codeLens";og=Lre([op(1,fe),op(2,Co),op(3,ri),op(4,_i),op(5,z8)],og);lt(og.ID,og,1);J(class extends ce{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:T.hasCodeLensProvider,label:g("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}run(e,t){return Dre(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(og.ID);if(!a)return;const l=a.getModel();if(!l)return;const d=[];for(const h of l.lenses)h.symbol.command&&h.symbol.range.startLineNumber===r&&d.push({label:h.symbol.command.title,command:h.symbol.command});if(d.length===0)return;const c=yield i.pick(d,{canPickMany:!1});if(c){if(l.isDisposed)return yield n.executeCommand(this.id);try{yield n.executeCommand(c.command.id,...c.command.arguments||[])}catch(h){s.error(h)}}})}});function xre(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 zP(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(fe),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(d=>{if(Array.isArray(d))for(const c of d)s.push({range:c.range,color:[c.color.red,c.color.green,c.color.blue,c.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,d]=t,{colorProvider:c}=o.get(fe),h=o.get(jt).getModel(n);if(!h)throw Po();const u={range:s,color:{red:r,green:a,blue:l,alpha:d}},f=[],m=c.ordered(h).reverse().map(_=>Promise.resolve(_.provideColorPresentations(h,u,Ye.None)).then(b=>{Array.isArray(b)&&f.push(...b)}));return Promise.all(m).then(()=>f)});var kre=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},aL=function(o,e){return function(t,i){e(t,i,o)}},Ire=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};const U8=Object.create({});let Ih=class $8 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:$8.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 go,this._timeoutTimer.cancelAndSet(()=>{this._timeoutTimer=null,this.beginCompute()},this._debounceInformation.get(e)))})),this.beginCompute())}beginCompute(){this._computePromise=Wi(e=>Ire(this,void 0,void 0,function*(){const t=this._editor.getModel();if(!t)return Promise.resolve([]);const i=new ts(!1),n=yield xre(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=kre([aL(1,at),aL(2,fe),aL(3,Co)],Ih);lt(Ih.ID,Ih,1);class Ere{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(cr(".codicon.codicon-color-mode"))}}class Tre extends U{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this.domNode=cr(".colorpicker-body"),q(e,this.domNode),this.saturationBox=new Mre(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 Are(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 Rre(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 Mre 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=cr(".saturation-wrap"),q(e,this.domNode),this.canvas=document.createElement("canvas"),this.canvas.className="saturation-box",q(this.domNode,this.canvas),this.selection=cr(".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 Lg);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 j8 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,cr(".strip")),this.overlay=q(this.domNode,cr(".overlay")),this.slider=q(this.domNode,cr(".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 Lg),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 Are extends j8{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 Rre extends j8{constructor(e,t){super(e,t),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}}class Pre extends vo{constructor(e,t,i,n){super(),this.model=t,this.pixelRatio=i,this._register(Pf.onDidChange(()=>this.layout()));const s=cr(".colorpicker-widget");e.appendChild(s);const r=new Nre(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 Ore=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},Fre=function(o,e){return function(t,i){e(t,i,o)}},UP=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};class Bre{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 Jk=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 UP(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 UP(this,void 0,void 0,function*(){const n=e.getValueInRange(t.range),{red:s,green:r,blue:a,alpha:l}=t.color,d=new nt(Math.round(s*255),Math.round(r*255),Math.round(a*255),l),c=new H(d),h=yield zP(e,t,i,Ye.None),u=new Ere(c,[],0);return u.colorPresentations=h||[],u.guessColorPresentation(c,n),new Bre(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 Pre(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 d=()=>{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 f=this._editor.getModel()._setTrackedRange(null,u,3);this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",h),u=this._editor.getModel()._getTrackedRange(f)||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},c=h=>zP(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=>{c(h).then(d)})),i.add(r.onDidChangeColor(c)),i}};Jk=Ore([Fre(1,Hi)],Jk);function eI(o,e){return!!o[e]}class lL{constructor(e,t){this.target=e.target,this.isLeftClick=e.event.leftButton,this.isMiddleClick=e.event.middleButton,this.isRightClick=e.event.rightButton,this.hasTriggerModifier=eI(e.event,t.triggerModifier),this.hasSideBySideModifier=eI(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}}class $P{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=eI(e,t.triggerModifier)}}class bv{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 jP(o){return o==="altKey"?Ke?new bv(57,"metaKey",6,"altKey"):new bv(5,"ctrlKey",6,"altKey"):Ke?new bv(6,"altKey",57,"metaKey"):new bv(6,"altKey",5,"ctrlKey")}class zw 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=jP(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=jP(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 lL(i,this._opts)))),this._register(this._editor.onMouseDown(i=>this._onEditorMouseDown(new lL(i,this._opts)))),this._register(this._editor.onMouseUp(i=>this._onEditorMouseUp(new lL(i,this._opts)))),this._register(this._editor.onKeyDown(i=>this._onEditorKeyDown(new $P(i,this._opts)))),this._register(this._editor.onKeyUp(i=>this._onEditorKeyUp(new $P(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 Wre=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=function(o,e){return function(t,i){e(t,i,o)}};let Bd=class extends Gf{constructor(e,t,i,n,s,r,a,l,d,c,h,u){super(e,Object.assign(Object.assign({},i.getRawOptions()),{overflowWidgetsDomNode:i.getOverflowWidgetsDomNode()}),{},n,s,r,a,l,d,c,h,u),this._parentEditor=i,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(i.onDidChangeConfiguration(f=>this._onParentConfigurationChanged(f)))}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)}};Bd=Wre([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,fe)],Bd);const KP=new H(new nt(0,122,204)),Vre={showArrow:!0,showFrame:!0,className:"",frameColor:KP,arrowColor:KP,keepEditorSelection:!1},Hre="vs.editor.contrib.zoneWidget";class zre{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 Ure{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}class Uw{constructor(e){this._editor=e,this._ruleName=Uw._IdGenerator.nextId(),this._decorations=this._editor.createDecorationsCollection(),this._color=null,this._height=-1}dispose(){this.hide(),UM(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(){UM(this._ruleName),ox(`.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()}}Uw._IdGenerator=new YN(".arrow-decoration-");class $re{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,Vre,!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 Uw(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 d=0,c=0;if(this._arrow&&this.options.showArrow&&(d=Math.round(a/3),this._arrow.height=d,this._arrow.show(i)),this.options.showFrame&&(c=Math.round(a/9)),this.editor.changeViewZones(f=>{this._viewZone&&f.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new zre(r,i.lineNumber,i.column,t,p=>this._onViewZoneTop(p),p=>this._onViewZoneHeight(p)),this._viewZone.id=f.addZone(this._viewZone),this._overlayWidget=new Ure(Hre+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)}),this.container&&this.options.showFrame){const f=this.options.frameWidth?this.options.frameWidth:c;this.container.style.borderTopWidth=f+"px",this.container.style.borderBottomWidth=f+"px"}const h=t*a-this._decoratingElementsHeight();this.container&&(this.container.style.top=d+"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 f=u.validateRange(new y(e.startLineNumber,1,e.endLineNumber+1,1));this.revealRange(f,f.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 gn(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 K8=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=function(o,e){return function(t,i){e(t,i,o)}};const G8=Je("IPeekViewService");ot(G8,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 de("inReferenceSearchEditor",!0,g("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),o.notInPeekEditor=o.inPeekEditor.toNegated()})(ss||(ss={}));let f_=class{constructor(e,t){e instanceof Bd&&ss.inPeekEditor.bindTo(t)}dispose(){}};f_.ID="editor.contrib.referenceController";f_=K8([q8(1,Ee)],f_);lt(f_.ID,f_,0);function jre(o){const e=o.get(ut).getFocusedCodeEditor();return e instanceof Bd?e.getParentEditor():e}const Kre={headerBackgroundColor:H.white,primaryHeadingColor:H.fromHex("#333333"),secondaryHeadingColor:H.fromHex("#6c6c6cb3")};let s1=class extends $re{constructor(e,t,i){super(e,t),this.instantiationService=i,this._onDidClose=new O,this.onDidClose=this._onDidClose.event,B_(this.options,Kre,!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 fo(n,s),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new ms("peekview.close",g("label.close","Close"),De.asClassName(se.close),!0,()=>(this.dispose(),Promise.resolve())),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:Cee.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`)}};s1=K8([q8(2,Me)],s1);const qre=M("peekViewTitle.background",{dark:pe(es,.1),light:pe(es,.1),hcDark:null,hcLight:null},g("peekViewTitleBackground","Background color of the peek view title area.")),Z8=M("peekViewTitleLabel.foreground",{dark:H.white,light:H.black,hcDark:H.white,hcLight:To},g("peekViewTitleForeground","Color of the peek view title.")),Y8=M("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},g("peekViewTitleInfoForeground","Color of the peek view title info.")),Gre=M("peekView.border",{dark:es,light:es,hcDark:Ze,hcLight:Ze},g("peekViewBorder","Color of the peek view borders and arrow.")),Zre=M("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:H.black,hcLight:H.white},g("peekViewResultsBackground","Background color of the peek view result list."));M("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:H.white,hcLight:To},g("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list."));M("peekViewResult.fileForeground",{dark:H.white,light:"#1E1E1E",hcDark:H.white,hcLight:To},g("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list."));M("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},g("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:To},g("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list."));const ld=M("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:H.black,hcLight:H.white},g("peekViewEditorBackground","Background color of the peek view editor."));M("peekViewEditorGutter.background",{dark:ld,light:ld,hcDark:ld,hcLight:ld},g("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor."));M("peekViewEditorStickScroll.background",{dark:ld,light:ld,hcDark:ld,hcLight:ld},g("peekViewEditorStickScrollBackground","Background color of sticky scroll in the peek view editor."));M("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},g("peekViewResultsMatchHighlight","Match highlight color in the peek view result list."));M("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},g("peekViewEditorMatchHighlight","Match highlight color in the peek view editor."));M("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:Pt,hcLight:Pt},g("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."));var Yre=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};class Wd{constructor(e,t,i,n){this.isProviderFirst=e,this.parent=t,this.link=i,this._rangeCallback=n,this.id=p3.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?g({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):g("aria.oneReference","symbol in {0} on line {1} at column {2}",uo(this.uri),this.range.startLineNumber,this.range.startColumn)}}class Qre{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}),d=new y(n,l.startColumn,n,s),c=new y(r,a,r,1073741824),h=i.getValueInRange(d).replace(/^\s+/,""),u=i.getValueInRange(e),f=i.getValueInRange(c).replace(/\s+$/,"");return{value:h+u+f,highlight:{start:h.length,end:h.length+u.length}}}}class g_{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new bn}dispose(){gt(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){const e=this.children.length;return e===1?g("aria.fileReferences.1","1 symbol in {0}, full path {1}",uo(this.uri),this.uri.fsPath):g("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,uo(this.uri),this.uri.fsPath)}resolve(e){return Yre(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 Qre(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 g_(this,s.uri),this.groups.push(n)),n.children.length===0||_s._compareReferences(s,n.children[n.children.length-1])!==0){const r=new Wd(i===s,n,s,a=>this._onDidChangeReferenceRange.fire(a));this.references.push(r),n.children.push(r)}}dispose(){gt(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?g("aria.result.0","No results found"):this.references.length===1?g("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):this.groups.length===1?g("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):g("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 $w=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},jw=function(o,e){return function(t,i){e(t,i,o)}};let tI=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof _s||e instanceof g_}getChildren(e){if(e instanceof _s)return e.groups;if(e instanceof g_)return e.resolve(this._resolverService).then(t=>t.children);throw new Error("bad tree")}};tI=$w([jw(0,os)],tI);class Xre{getHeight(){return 23}getTemplateId(e){return e instanceof g_?p_.id:f0.id}}let iI=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){var t;if(e instanceof Wd){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)}};iI=$w([jw(0,ei)],iI);class Jre{getId(e){return e instanceof Wd?e.id:e.uri}}let nI=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 jC(i,{supportHighlights:!0})),this.badge=new gk(q(i,X(".count")),{},q3),e.appendChild(i)}set(e,t){const i=cw(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(g("referencesCount","{0} references",n)):this.badge.setTitleFormat(g("referenceCount","{0} reference",n))}};nI=$w([jw(1,Qf)],nI);let p_=class Q8{constructor(e){this._instantiationService=e,this.templateId=Q8.id}renderTemplate(e){return this._instantiationService.createInstance(nI,e)}renderElement(e,t,i){i.set(e.element,pw(e.filterData))}disposeTemplate(e){e.dispose()}};p_.id="FileReferencesRenderer";p_=$w([jw(0,Me)],p_);class eae{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,pw(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(s,[r]))}}}class f0{constructor(){this.templateId=f0.id}renderTemplate(e){return new eae(e)}renderElement(e,t,i){i.set(e.element,e.filterData)}disposeTemplate(){}}f0.id="OneReferenceRenderer";class tae{getWidgetAriaLabel(){return g("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}var iae=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=function(o,e){return function(t,i){e(t,i,o)}},qP=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};class Kw{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(sae,"ReferencesWidget",this._treeContainer,new Xre,[this._instantiationService.createInstance(p_),this._instantiationService.createInstance(f0)],this._instantiationService.createInstance(tI),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})}},KC.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)}},KC.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 Wd&&(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=g("noResults","No results"),hs(this._messageContainer),Promise.resolve(void 0)):(On(this._messageContainer),this._decorationsManager=new Kw(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 Wd)return e;if(e instanceof g_&&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(rZ(e.uri),this._uriLabel.getUriLabel(cw(e.uri))):this.setTitle(g("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}gt(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()})}};sI=iae([Va(3,Hi),Va(4,os),Va(5,Me),Va(6,G8),Va(7,Qf),Va(8,hw),Va(9,ei),Va(10,Ut),Va(11,ui)],sI);var oae=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=function(o,e){return function(t,i){e(t,i,o)}},GP=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};const nu=new de("referenceSearchVisible",!1,g("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));let Vd=class oI{static get(e){return e.getContribution(oI.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=nae.fromJSON(this._storageService.get(s,0,"{}"));this._widget=this._instantiationService.createInstance(sI,this._editor,this._defaultTreeKeyboardSupport,r),this._widget.setTitle(g("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:d,kind:c}=l;if(d)switch(c){case"open":(l.source!=="editor"||!this._configurationService.getValue("editor.stablePeek"))&&this.openReference(d,!1,!1);break;case"side":this.openReference(d,!0,!1);break;case"goto":i?this._gotoReference(d,!0):this.openReference(d,!1,!0);break}}));const a=++this._requestIdPool;t.then(l=>{var d;if(a!==this._requestIdPool||!this._widget){l.dispose();return}return(d=this._model)===null||d===void 0||d.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(g("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));const c=this._editor.getModel().uri,h=new W(e.startLineNumber,e.startColumn),u=this._model.nearestReference(c,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 GP(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 GP(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=oI.get(s),l=this._model.clone();this.closeWidget(),s.focus(),a==null||a.toggleWidget(n,Wi(d=>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)}};Vd.ID="editor.contrib.referencesController";Vd=oae([Su(2,Ee),Su(3,ut),Su(4,_i),Su(5,Me),Su(6,jo),Su(7,at)],Vd);function su(o,e){const t=jre(o);if(!t)return;const i=Vd.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:90,primary:62,secondary:[70],when:oe.or(nu,ss.inPeekEditor),handler(o){su(o,e=>{e.goToNextOrPreviousReference(!0)})}});is.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:90,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:-1,primary:9,secondary:[1033],when:oe.and(ss.inPeekEditor,oe.not("config.editor.stablePeek"))});is.registerKeybindingRule({id:"closeReferenceSearch",weight:250,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,C7,C2.negate(),w2.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 Wd&&su(o,n=>n.revealReference(i[0]))}});is.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:oe.and(nu,C7,C2.negate(),w2.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 Wd&&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 Wd&&su(o,n=>n.openReference(i[0],!1,!0))});var X8=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=function(o,e){return function(t,i){e(t,i,o)}};const $2=new de("hasSymbols",!1,g("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),qw=Je("ISymbolNavigationService");let rI=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=$2.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 aI(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 d=!1,c=!1;for(const h of t.references)if(LN(h.uri,a.uri))d=!0,c=c||y.containsPosition(h.range,l);else if(d)break;(!d||!c)&&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?g("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,t.getLabel()):g("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(i)}};rI=X8([Op(0,Ee),Op(1,ut),Op(2,_i),Op(3,ei)],rI);ot(qw,rI,1);ie(new class extends Ji{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:$2,kbOpts:{weight:100,primary:70}})}runEditorCommand(o,e){return o.get(qw).revealNext(e)}});is.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:$2,primary:9,handler(o){o.get(qw).reset()}});let aI=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(),gt(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)}};aI=X8([Op(0,ut)],aI);var j2=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};function g0(o,e,t,i){return j2(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 mg(r.flat())})}function Gw(o,e,t,i){return g0(e,t,o,(n,s,r)=>n.provideDefinition(s,r,i))}function J8(o,e,t,i){return g0(e,t,o,(n,s,r)=>n.provideDeclaration(s,r,i))}function e9(o,e,t,i){return g0(e,t,o,(n,s,r)=>n.provideImplementation(s,r,i))}function t9(o,e,t,i){return g0(e,t,o,(n,s,r)=>n.provideTypeDefinition(s,r,i))}function Zw(o,e,t,i,n){return g0(e,t,o,(s,r,a)=>j2(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 d=yield s.provideReferences(r,a,{includeDeclaration:!1},n);return d&&d.length===1?d:l}))}function p0(o){return j2(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})}Na("_executeDefinitionProvider",(o,e,t)=>{const i=o.get(fe),n=Gw(i.definitionProvider,e,t,Ye.None);return p0(()=>n)});Na("_executeTypeDefinitionProvider",(o,e,t)=>{const i=o.get(fe),n=t9(i.typeDefinitionProvider,e,t,Ye.None);return p0(()=>n)});Na("_executeDeclarationProvider",(o,e,t)=>{const i=o.get(fe),n=J8(i.declarationProvider,e,t,Ye.None);return p0(()=>n)});Na("_executeReferenceProvider",(o,e,t)=>{const i=o.get(fe),n=Zw(i.referenceProvider,e,t,!1,Ye.None);return p0(()=>n)});Na("_executeImplementationProvider",(o,e,t)=>{const i=o.get(fe),n=e9(i.implementationProvider,e,t,Ye.None);return p0(()=>n)});var Fo=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})},dL,cL,hL,uL,fL,gL,pL,mL;Jn.appendMenuItem(N.EditorContext,{submenu:N.EditorContextPeek,title:g("peek.submenu","Peek"),group:"navigation",order:100});class rg{static is(e){return!e||typeof e!="object"?!1:!!(e instanceof rg||W.isIPosition(e.position)&&e.model)}constructor(e,t){this.model=e,this.position=t}}class In extends _${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===N.EditorContext||i.id===N.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(ec),l=e.get(qw),d=e.get(fe),c=e.get(Me),h=t.getModel(),u=t.getPosition(),f=rg.is(i)?i:new rg(h,u),p=new Sh(t,5),m=z1(this._getLocationModel(d,f.model,f.position,p.token),p.token).then(_=>Fo(this,void 0,void 0,function*(){var b;if(!_||p.token.isCancellationRequested)return;dn(_.ariaMessage);let v;if(_.referenceAt(h.uri,u)){const S=this._getAlternativeCommand(t);!In._activeAlternativeCommands.has(S)&&In._allSymbolNavigationCommands.has(S)&&(v=In._allSymbolNavigationCommands.get(S))}const C=_.references.length;if(C===0){if(!this.configuration.muteMessage){const S=h.getWordAtPosition(u);(b=Cs.get(t))===null||b===void 0||b.showMessage(this._getNoResultFoundMessage(S),u)}}else if(C===1&&v)In._activeAlternativeCommands.add(this.desc.id),c.invokeFunction(S=>v.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 Bd)&&(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",d=yield this._openReference(i,e,a,this.configuration.openToSide,!l);l&&d?this._openInPeek(d,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(pV(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(),d=a.createDecorationsCollection([{range:r,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout(()=>{a.getModel()===l&&d.clear()},350)}return a}})}_openInPeek(e,t,i){const n=Vd.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 m0 extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield Gw(e.definitionProvider,t,i,n),g("def.title","Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?g("noResultWord","No definition found for '{0}'",e.word):g("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(55).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(55).multipleDefinitions}}const i9=Kd&&!FE()?2118:70;Nn((dL=class lI extends m0{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:lI.id,title:{value:g("actions.goToDecl.label","Go to Definition"),original:"Go to Definition",mnemonicTitle:g({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},precondition:oe.and(T.hasDefinitionProvider,T.isInWalkThroughSnippet.toNegated()),keybinding:{when:T.editorTextFocus,primary:i9,weight:100},menu:[{id:N.EditorContext,group:"navigation",order:1.1},{id:N.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:2}]}),st.registerCommandAlias("editor.action.goToDeclaration",lI.id)}},dL.id="editor.action.revealDefinition",dL));Nn((cL=class dI extends m0{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:dI.id,title:{value:g("actions.goToDeclToSide.label","Open Definition to the Side"),original:"Open Definition to the Side"},precondition:oe.and(T.hasDefinitionProvider,T.isInWalkThroughSnippet.toNegated()),keybinding:{when:T.editorTextFocus,primary:ki(2089,i9),weight:100}}),st.registerCommandAlias("editor.action.openDeclarationToTheSide",dI.id)}},cL.id="editor.action.revealDefinitionAside",cL));Nn((hL=class cI extends m0{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:cI.id,title:{value:g("actions.previewDecl.label","Peek Definition"),original:"Peek Definition"},precondition:oe.and(T.hasDefinitionProvider,ss.notInPeekEditor,T.isInWalkThroughSnippet.toNegated()),keybinding:{when:T.editorTextFocus,primary:582,linux:{primary:3140},weight:100},menu:{id:N.EditorContextPeek,group:"peek",order:2}}),st.registerCommandAlias("editor.action.previewDeclaration",cI.id)}},hL.id="editor.action.peekDefinition",hL));class n9 extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield J8(e.declarationProvider,t,i,n),g("decl.title","Declarations"))})}_getNoResultFoundMessage(e){return e&&e.word?g("decl.noResultWord","No declaration found for '{0}'",e.word):g("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(55).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(55).multipleDeclarations}}Nn((uL=class s9 extends n9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:s9.id,title:{value:g("actions.goToDeclaration.label","Go to Declaration"),original:"Go to Declaration",mnemonicTitle:g({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},precondition:oe.and(T.hasDeclarationProvider,T.isInWalkThroughSnippet.toNegated()),menu:[{id:N.EditorContext,group:"navigation",order:1.3},{id:N.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}_getNoResultFoundMessage(e){return e&&e.word?g("decl.noResultWord","No declaration found for '{0}'",e.word):g("decl.generic.noResults","No declaration found")}},uL.id="editor.action.revealDeclaration",uL));Nn(class extends n9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",title:{value:g("actions.peekDecl.label","Peek Declaration"),original:"Peek Declaration"},precondition:oe.and(T.hasDeclarationProvider,ss.notInPeekEditor,T.isInWalkThroughSnippet.toNegated()),menu:{id:N.EditorContextPeek,group:"peek",order:3}})}});class o9 extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield t9(e.typeDefinitionProvider,t,i,n),g("typedef.title","Type Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?g("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):g("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(55).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(55).multipleTypeDefinitions}}Nn((fL=class r9 extends o9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:r9.ID,title:{value:g("actions.goToTypeDefinition.label","Go to Type Definition"),original:"Go to Type Definition",mnemonicTitle:g({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},precondition:oe.and(T.hasTypeDefinitionProvider,T.isInWalkThroughSnippet.toNegated()),keybinding:{when:T.editorTextFocus,primary:0,weight:100},menu:[{id:N.EditorContext,group:"navigation",order:1.4},{id:N.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}},fL.ID="editor.action.goToTypeDefinition",fL));Nn((gL=class a9 extends o9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:a9.ID,title:{value:g("actions.peekTypeDefinition.label","Peek Type Definition"),original:"Peek Type Definition"},precondition:oe.and(T.hasTypeDefinitionProvider,ss.notInPeekEditor,T.isInWalkThroughSnippet.toNegated()),menu:{id:N.EditorContextPeek,group:"peek",order:4}})}},gL.ID="editor.action.peekTypeDefinition",gL));class l9 extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield e9(e.implementationProvider,t,i,n),g("impl.title","Implementations"))})}_getNoResultFoundMessage(e){return e&&e.word?g("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):g("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(55).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(55).multipleImplementations}}Nn((pL=class d9 extends l9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:d9.ID,title:{value:g("actions.goToImplementation.label","Go to Implementations"),original:"Go to Implementations",mnemonicTitle:g({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},precondition:oe.and(T.hasImplementationProvider,T.isInWalkThroughSnippet.toNegated()),keybinding:{when:T.editorTextFocus,primary:2118,weight:100},menu:[{id:N.EditorContext,group:"navigation",order:1.45},{id:N.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:4}]})}},pL.ID="editor.action.goToImplementation",pL));Nn((mL=class c9 extends l9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:c9.ID,title:{value:g("actions.peekImplementation.label","Peek Implementations"),original:"Peek Implementations"},precondition:oe.and(T.hasImplementationProvider,ss.notInPeekEditor,T.isInWalkThroughSnippet.toNegated()),keybinding:{when:T.editorTextFocus,primary:3142,weight:100},menu:{id:N.EditorContextPeek,group:"peek",order:5}})}},mL.ID="editor.action.peekImplementation",mL));class h9 extends In{_getNoResultFoundMessage(e){return e?g("references.no","No references found for '{0}'",e.word):g("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(55).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(55).multipleReferences}}Nn(class extends h9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",title:{value:g("goToReferences.label","Go to References"),original:"Go to References",mnemonicTitle:g({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},precondition:oe.and(T.hasReferenceProvider,ss.notInPeekEditor,T.isInWalkThroughSnippet.toNegated()),keybinding:{when:T.editorTextFocus,primary:1094,weight:100},menu:[{id:N.EditorContext,group:"navigation",order:1.45},{id:N.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 Zw(e.referenceProvider,t,i,!0,n),g("ref.title","References"))})}});Nn(class extends h9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",title:{value:g("references.action.label","Peek References"),original:"Peek References"},precondition:oe.and(T.hasReferenceProvider,ss.notInPeekEditor,T.isInWalkThroughSnippet.toNegated()),menu:{id:N.EditorContextPeek,group:"peek",order:6}})}_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield Zw(e.referenceProvider,t,i,!1,n),g("ref.title","References"))})}});class rae extends In{constructor(e,t,i){super(e,{id:"editor.action.goToLocation",title:{value:g("label.generic","Go to Any Symbol"),original:"Go to Any Symbol"},precondition:oe.and(ss.notInPeekEditor,T.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,g("generic.title","Locations"))})}_getNoResultFoundMessage(e){return e&&g("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(d=>{const c=new class extends rae{_getNoResultFoundMessage(h){return s||super._getNoResultFoundMessage(h)}}({muteMessage:!s,openInPeek:!!r,openToSide:!1},i,n);d.get(Me).invokeFunction(c.run.bind(c),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(fe),n=o.get(ut);return n.openCodeEditor({resource:e},n.getFocusedCodeEditor()).then(s=>{if(!La(s)||!s.hasModel())return;const r=Vd.get(s);if(!r)return;const a=Wi(d=>Zw(i.referenceProvider,s.getModel(),W.lift(t),!1,d).then(c=>new _s(c,g("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 aae=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},_L=function(o,e){return function(t,i){e(t,i,o)}},ZP=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};let Eh=class pb{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 zw(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(pb.ID)}startFindDefinitionFromCursor(e){return ZP(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 ZP(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 H7(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(g("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:d}}=l,{startLineNumber:c}=a.range;if(c<1||c>d.getLineCount()){l.dispose();return}const h=this.getPreviewValue(d,c,a),u=this.languageService.guessLanguageIdByFilepathOrFirstLine(d.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>=pb.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 m0({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=aae([_L(1,os),_L(2,Ut),_L(3,fe)],Eh);lt(Eh.ID,Eh,2);const Cv=X;class u9 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 K2 extends U{static render(e,t,i){return new K2(e,t,i)}constructor(e,t,i){super(),this.actionContainer=q(e,Cv("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=q(this.actionContainer,Cv("a.action")),this.action.setAttribute("role","button"),t.iconClass&&q(this.action,Cv(`span.icon.${t.iconClass}`));const n=q(this.action,Cv("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 Tt(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 lae=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})},dae=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(d){s({value:d,done:a})},r)}};let cae=class{constructor(e,t,i){this.value=e,this.isComplete=t,this.hasLoadingMessage=i}};class f9 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=VH(e=>this._computer.computeAsync(e)),lae(this,void 0,void 0,function*(){var e,t,i,n;try{try{for(var s=!0,r=dae(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 mb{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 Mg{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 d of a)d.parent=l,r(d.children,d)}(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 _0)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}}class Fn extends Mg{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new Fn(this.value)}}class g9 extends Mg{}class Xs extends g9{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 Ag?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 Ag extends Mg{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 Ag;return this.options.forEach(e.appendChild,e),e}}class q2 extends Mg{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 q2;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 Mg{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 g9{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 YP(o,e){const t=[...o];for(;t.length>0;){const i=t.shift();if(!e(i))break;t.unshift(...i.children)}}class _0 extends Mg{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 YP([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 _0;return this._children=this.children.map(t=>t.clone()),e}walk(e){YP(this.children,e)}}class Hd{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 _0;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,d)=>{const c=n.get(l.index);if(!c)return;const h=new Xs(l.index);h.transform=l.transform;for(const u of c){const f=u.clone();h.appendChild(f),f instanceof Xs&&n.has(f.index)&&!d.has(f.index)&&(d.add(f.index),r(f,d),d.delete(f.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 Ag;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 q2;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 hae=g("defaultLabel","input"),uae=g("label.preserveCaseToggle","Preserve Case");class fae extends Eg{constructor(e){super({icon:se.preserveCase,title:uae+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class gae extends vo{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||hae;const s=n.appendPreserveCaseLabel||"",r=n.history||[],a=!!n.flexibleHeight,l=!!n.flexibleWidth,d=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new a7(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},history:r,showHistoryHint:n.showHistoryHint,flexibleHeight:a,flexibleWidth:l,flexibleMaxHeight:d,inputBoxStyles:n.inputBoxStyles})),this.preserveCase=this._register(new fae(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 c=[this.preserveCase.domNode];this.onkeydown(this.domNode,u=>{if(u.equals(15)||u.equals(17)||u.equals(9)){const f=c.indexOf(document.activeElement);if(f>=0){let p=-1;u.equals(17)?p=(f+1)%c.length:u.equals(15)&&(f===0?p=c.length-1:p=f-1),u.equals(9)?(c[f].blur(),this.inputBox.focus()):p>=0&&c[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 p9=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},m9=function(o,e){return function(t,i){e(t,i,o)}};const G2=new de("suggestWidgetVisible",!1,g("suggestWidgetVisible","Whether suggestion are visible")),Z2="historyNavigationWidgetFocus",_9="historyNavigationForwardsEnabled",v9="historyNavigationBackwardsEnabled";let ml;const wv=[];function b9(o,e){if(wv.includes(e))throw new Error("Cannot register the same widget multiple times");wv.push(e);const t=new Z,i=new de(Z2,!1).bindTo(o),n=new de(_9,!0).bindTo(o),s=new de(v9,!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(()=>{wv.splice(wv.indexOf(e),1),a()})),{historyNavigationForwardsEnablement:n,historyNavigationBackwardsEnablement:s,dispose(){t.dispose()}}}let hI=class extends l7{constructor(e,t,i,n){super(e,t,i);const s=this._register(n.createScoped(this.inputBox.element));this._register(b9(s,this.inputBox))}};hI=p9([m9(3,Ee)],hI);let uI=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(b9(r,this.inputBox))}};uI=p9([m9(3,Ee)],uI);is.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:oe.and(oe.has(Z2),oe.equals(v9,!0),G2.isEqualTo(!1)),primary:16,secondary:[528],handler:o=>{ml==null||ml.showPreviousValue()}});is.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:oe.and(oe.has(Z2),oe.equals(_9,!0),G2.isEqualTo(!1)),primary:18,secondary:[530],handler:o=>{ml==null||ml.showNextValue()}});var fm=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};const Ge={Visible:G2,HasFocusedSuggestion:new de("suggestWidgetHasFocusedSuggestion",!1,g("suggestWidgetHasSelection","Whether any suggestion is focused")),DetailsVisible:new de("suggestWidgetDetailsVisible",!1,g("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new de("suggestWidgetMultipleSuggestions",!1,g("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new de("suggestionMakesTextEdit",!0,g("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new de("acceptSuggestionOnEnter",!0,g("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new de("suggestionHasInsertAndReplaceRange",!1,g("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new de("suggestionInsertMode",void 0,{type:"string",description:g("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new de("suggestionCanResolve",!1,g("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},wd=new N("suggestWidgetStatusBar");class pae{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 fm(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 mae;function _ae(){return mae}class vae{constructor(e,t,i,n){this.items=e,this.needsClipboard=t,this.durations=i,this.disposable=n}}function Y2(o,e,t,i=__.default,n={triggerKind:0},s=Ye.None){return fm(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),d={replace:l,insert:l.setEndPosition(t.lineNumber,t.column)},c=[],h=new Z,u=[];let f=!1;const p=(_,b,v)=>{var C,S,x;let E=!1;if(!b)return E;for(const L of b.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=d),L.sortText||(L.sortText=typeof L.label=="string"?L.label:L.label.label),!f&&L.insertTextRules&&L.insertTextRules&4&&(f=Hd.guessNeedsClipboard(L.insertText)),c.push(new pae(t,L,b,_)),E=!0}return CE(b)&&h.add(b),u.push({providerName:(S=_._debugDisplayName)!==null&&S!==void 0?S:"unknown_provider",elapsedProvider:(x=b.duration)!==null&&x!==void 0?x:-1,elapsedOverall:v.elapsed()}),E},m=fm(this,void 0,void 0,function*(){});for(const _ of o.orderedGroups(e)){let b=!1;if(yield Promise.all(_.map(v=>fm(this,void 0,void 0,function*(){if(i.providerItemsToReuse.has(v)){const C=i.providerItemsToReuse.get(v);C.forEach(S=>c.push(S)),b=b||C.length>0;return}if(!(i.providerFilter.size>0&&!i.providerFilter.has(v)))try{const C=new ts(!0),S=yield v.provideCompletionItems(e,t,n,s);b=p(v,S,C)||b}catch(C){Vi(C)}}))),b||s.isCancellationRequested)break}return yield m,s.isCancellationRequested?(h.dispose(),Promise.reject(new qd)):new vae(c.sort(wae(i.snippetSortOrder)),f,{entries:u,elapsed:r.elapsed()},h)})}function Q2(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 Q2(o,e)}function Cae(o,e){if(o.completion.kind!==e.completion.kind){if(o.completion.kind===27)return 1;if(e.completion.kind===27)return-1}return Q2(o,e)}const Yw=new Map;Yw.set(0,bae);Yw.set(2,Cae);Yw.set(1,Q2);function wae(o){return Yw.get(o)}st.registerCommand("_executeCompletionItemProvider",(o,...e)=>fm(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(fe),a=yield o.get(os).createModelReference(t);try{const l={incomplete:!1,suggestions:[]},d=[],c=yield Y2(r,a.object.textEditorModel,W.lift(i),void 0,{triggerCharacter:n??void 0,triggerKind:n?1:0});for(const h of c.items)d.length<(s??0)&&d.push(h.resolve(Ye.None)),l.incomplete=l.incomplete||h.container.incomplete,l.suggestions.push(h.completion);try{return yield Promise.all(d),l}finally{setTimeout(()=>c.disposable.dispose(),100)}}finally{a.dispose()}}));function Sae(o,e){var t;(t=o.getContribution("editor.contrib.suggestController"))===null||t===void 0||t.triggerSuggest(new Set().add(e),void 0,!0)}class of{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 X2=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},o1=function(o,e){return function(t,i){e(t,i,o)}};const QP=X;let r1=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 a1(this._editor,this._participants),this._hoverOperation=this._register(new f9(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 C9(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 gI(this._keybindingService)),l=document.createDocumentFragment();let d=null;const c={fragment:l,statusBar:a,setColorPicker:u=>d=u,onContentsChanged:()=>this._widget.onContentsChanged(),hide:()=>this.hide()};for(const u of this._participants){const f=t.filter(p=>p.owner===u);f.length>0&&r.add(u.renderHoverParts(c,f))}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 Lae(d,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 d=e._getViewModel(),c=d.coordinatesConverter,h=c.convertModelRangeToViewRange(t),u=new W(h.startLineNumber,d.getLineMinColumn(h.startLineNumber));n=c.convertViewPositionToModelPosition(u).column}const s=t.startLineNumber;let r=t.startColumn,a=i[0].range,l=null;for(const d of i)a=y.plusRange(a,d.range),d.range.startLineNumber===s&&d.range.endLineNumber===s&&(r=Math.max(Math.min(r,d.range.startColumn),n)),d.forceShowAtRange&&(l=d.range);return{showAtPosition:l?l.getStartPosition():new W(s,t.startColumn),showAtSecondaryPosition:l?l.getStartPosition():new W(s,r),highlightRange:a}}};r1._DECORATION_OPTIONS=Re.register({description:"content-hover-highlight",className:"hoverHighlight"});r1=X2([o1(1,Me),o1(2,ei)],r1);class C9{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 yae(this,this.anchor,t,this.isComplete)}}class yae extends C9{constructor(e,t,i,n){super(t,i,n),this.original=e}filter(e){return this.original.filter(e)}}class Lae{constructor(e,t,i,n,s,r,a,l,d,c){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=d,this.disposables=c,this.closestMouseDistance=void 0}}let ih=class w9 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=T.hoverVisible.bindTo(this._contextKeyService),this._hover=this._register(new u9),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 w9.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=XP(this._visibleData.initialMousePosX,this._visibleData.initialMousePosY,i.left,i.top,i.width,i.height));const n=XP(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=X2([o1(1,Ee)],ih);let gI=class extends U{get hasContent(){return this._hasContent}constructor(e){super(),this._keybindingService=e,this._hasContent=!1,this.hoverElement=QP("div.hover-row.status-bar"),this.actionsElement=q(this.hoverElement,QP("div.actions"))}addAction(e){const t=this._keybindingService.lookupKeybinding(e.commandId),i=t?t.getLabel():null;return this._hasContent=!0,this._register(K2.render(this.actionsElement,e,i))}append(e){const t=q(this.actionsElement,e);return this._hasContent=!0,t}};gI=X2([o1(0,ei)],gI);class a1{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=a1._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=a1._getLineDecorations(this._editor,this._anchor);let t=[];for(const i of this._participants)t=t.concat(i.computeSync(this._anchor,e));return mg(t)}}function XP(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),d=Math.max(Math.abs(e-a)-s/2,0);return Math.sqrt(l*l+d*d)}var Dae=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},JP=function(o,e){return function(t,i){e(t,i,o)}},S9=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})},bL;let Ll=class y9{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(m3(e,Object.assign(Object.assign({},this._getRenderOptions(e,n)),t),i)).element,dispose:()=>n.dispose()}}_getRenderOptions(e,t){return{codeBlockRenderer:(i,n)=>S9(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 d=yield LY(this._languageService,n,l),c=document.createElement("span");if(c.innerHTML=(a=(r=y9._ttpTokenizer)===null||r===void 0?void 0:r.createHTML(d))!==null&&a!==void 0?a:d,this._options.editor){const h=this._options.editor.getOption(47);Yi(c,h)}else this._options.codeBlockFontFamily&&(c.style.fontFamily=this._options.codeBlockFontFamily);return this._options.codeBlockFontSize!==void 0&&(c.style.fontSize=this._options.codeBlockFontSize),c}),asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:i=>xae(this._openerService,i,e.isTrusted),disposables:t}}}};Ll._ttpTokenizer=(bL=window.trustedTypes)===null||bL===void 0?void 0:bL.createPolicy("tokenizeToString",{createHTML(o){return o}});Ll=Dae([JP(1,Ut),JP(2,bo)],Ll);function xae(o,e,t){return S9(this,void 0,void 0,function*(){try{return yield o.open(e,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:kae(t)})}catch(i){return Oe(i),!1}})}function kae(o){return o===!0?!0:o&&Array.isArray(o.enabledCommands)?o.enabledCommands:!1}const eO=X;class kf 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 u9),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new Ll({editor:this._editor},t,i)),this._computer=new Iae(this._editor),this._hoverOperation=this._register(new f9(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 kf.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=eO("div.hover-row.markdown-hover"),r=q(s,eO("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`}}kf.ID="editor.contrib.modesGlyphHoverWidget";class Iae{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||Yf(s)||i.push(...vE(s).map(e))}return i}}var Eae=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};class Nae{constructor(e,t,i){this.provider=e,this.hover=t,this.ordinal=i}}function Tae(o,e,t,i,n){return Eae(this,void 0,void 0,function*(){try{const s=yield Promise.resolve(o.provideHover(t,i,n));if(s&&Aae(s))return new Nae(o,s,e)}catch(s){Vi(s)}})}function J2(o,e,t,i){const s=o.ordered(e).map((r,a)=>Tae(r,a,e,t,i));return pi.fromPromises(s).coalesce()}function Mae(o,e,t,i){return J2(o,e,t,i).map(n=>n.hover).toPromise()}Na("_executeHoverProvider",(o,e,t)=>{const i=o.get(fe);return Mae(i.hoverProvider,e,t,Ye.None)});function Aae(o){const e=typeof o.range<"u",t=typeof o.contents<"u"&&o.contents&&o.contents.length>0;return e&&t}var Rae=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},Sv=function(o,e){return function(t,i){e(t,i,o)}};const tO=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 l1=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(g("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),d=i.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),c=this._editor.getOption(111),h=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:d});let u=!1;c>=0&&l>c&&e.range.startColumn>=c&&(u=!0,r.push(new rr(this,e.range,[{value:g("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:g("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],!1,a++));let f=!1;for(const p of t){const m=p.range.startLineNumber===n?p.range.startColumn:1,_=p.range.endLineNumber===n?p.range.endColumn:s,b=p.options.hoverMessage;if(!b||Yf(b))continue;p.options.beforeContentClassName&&(f=!0);const v=new y(e.range.startLineNumber,m,e.range.startLineNumber,_);r.push(new rr(this,v,vE(b),f,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 J2(this._languageFeaturesService.hoverProvider,n,s,i).filter(r=>!Yf(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 L9(e,t,this._editor,this._languageService,this._openerService)}};l1=Rae([Sv(1,Ut),Sv(2,bo),Sv(3,at),Sv(4,fe)],l1);function L9(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(Yf(a))continue;const l=tO("div.hover-row.markdown-hover"),d=q(l,tO("div.hover-contents")),c=s.add(new Ll({editor:t},i,n));s.add(c.onDidRenderAsync(()=>{d.className="hover-contents code-hover-contents",o.onContentsChanged()}));const h=s.add(c.render(a));d.appendChild(h.element),o.fragment.appendChild(l)}return s}var D9=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=function(o,e){return function(t,i){e(t,i,o)}};class iO{constructor(e,t,i){this.marker=e,this.index=t,this.total=i}}let pI=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 d=Sm(a.resource.toString(),l.resource.toString());return d===0&&(n==="position"?d=y.compareRangesUsingStarts(a,l)||qt.compare(a.severity,l.severity):d=qt.compare(a.severity,l.severity)||y.compareRangesUsingStarts(a,l)),d},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 iO(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=vm(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=function(o,e){return function(t,i){e(t,i,o)}};class Oae{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 h5(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(){gt(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 f=document.createElement("span");f.innerText=t,f.classList.add("source"),u.appendChild(f)}if(s)if(typeof s=="string"){const f=document.createElement("span");f.innerText=`(${s})`,f.classList.add("code"),u.appendChild(f)}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 f=q(this._codeLink,X("span"));f.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 f of n){const p=document.createElement("div"),m=document.createElement("a");m.classList.add("filename"),m.innerText=`${this._labelService.getUriBasenameLabel(f.resource)}(${f.startLineNumber}, ${f.startColumn}): `,m.title=this._labelService.getUriLabel(f.resource),this._relatedDiagnostics.set(m,f);const _=document.createElement("span");_.innerText=f.message,p.appendChild(m),p.appendChild(_),this._lines+=1,u.appendChild(p)}}const d=this._editor.getOption(47),c=Math.ceil(d.typicalFullwidthCharacterWidth*this._longestLineLength*.75),h=d.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:c,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=g("Error","Error");break;case qt.Warning:t=g("Warning","Warning");break;case qt.Info:t=g("Info","Info");break;case qt.Hint:t=g("Hint","Hint");break}let i=g("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 ag=class k9 extends s1{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(Vae);let t=vI,i=Fae;this._severity===qt.Warning?(t=_b,i=Bae):this._severity===qt.Info&&(t=bI,i=Wae);const n=e.getColor(t),s=e.getColor(i);this.style({arrowColor:n,frameColor:n,headerBackgroundColor:s,primaryHeadingColor:e.getColor(Z8),secondaryHeadingColor:e.getColor(Y8)})}_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(k9.TitleMenu,this._contextKeyService);Z3(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 Oae(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?g("problems","{0} of {1} problems",t,i):g("change","{0} of {1} problem",t,i);this.setTitle(uo(a.uri),l)}this._icon.className=`codicon ${_I.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()}};ag.TitleMenu=new N("gotoErrorTitleMenu");ag=Pae([yu(1,Hi),yu(2,bo),yu(3,Ea),yu(4,Me),yu(5,Ee),yu(6,Qf)],ag);const nO=Am(ia,tj),sO=Am(Fs,Mm),oO=Am(es,ux),vI=M("editorMarkerNavigationError.background",{dark:nO,light:nO,hcDark:Ze,hcLight:Ze},g("editorMarkerNavigationError","Editor marker navigation widget error color.")),Fae=M("editorMarkerNavigationError.headerBackground",{dark:pe(vI,.1),light:pe(vI,.1),hcDark:null,hcLight:null},g("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),_b=M("editorMarkerNavigationWarning.background",{dark:sO,light:sO,hcDark:Ze,hcLight:Ze},g("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),Bae=M("editorMarkerNavigationWarning.headerBackground",{dark:pe(_b,.1),light:pe(_b,.1),hcDark:"#0C141F",hcLight:pe(_b,.2)},g("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),bI=M("editorMarkerNavigationInfo.background",{dark:oO,light:oO,hcDark:Ze,hcLight:Ze},g("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),Wae=M("editorMarkerNavigationInfo.headerBackground",{dark:pe(bI,.1),light:pe(bI,.1),hcDark:null,hcLight:null},g("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),Vae=M("editorMarkerNavigation.background",{dark:Ni,light:Ni,hcDark:Ni,hcLight:Ni},g("editorMarkerNavigationBackground","Editor marker navigation widget background."));var Hae=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},yv=function(o,e){return function(t,i){e(t,i,o)}},I9=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};let zd=class vb{static get(e){return e.getContribution(vb.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=E9.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(ag,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 I9(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=vb.get(r))===null||i===void 0||i.close(),(n=vb.get(r))===null||n===void 0||n.nagivate(e,t))}else this._widget.showAtMarker(s.selected.marker,s.selected.index,s.selected.total)}})}};zd.ID="editor.contrib.markerController";zd=Hae([yv(1,x9),yv(2,Ee),yv(3,ut),yv(4,Me)],zd);class Qw extends ce{constructor(e,t,i){super(i),this._next=e,this._multiFile=t}run(e,t){var i;return I9(this,void 0,void 0,function*(){t.hasModel()&&((i=zd.get(t))===null||i===void 0||i.nagivate(this._next,this._multiFile))})}}class Sd extends Qw{constructor(){super(!0,!1,{id:Sd.ID,label:Sd.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:T.focus,primary:578,weight:100},menuOpts:{menuId:ag.TitleMenu,title:Sd.LABEL,icon:fi("marker-navigation-next",se.arrowDown,g("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}}Sd.ID="editor.action.marker.next";Sd.LABEL=g("markerAction.next.label","Go to Next Problem (Error, Warning, Info)");class nh extends Qw{constructor(){super(!1,!1,{id:nh.ID,label:nh.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:T.focus,primary:1602,weight:100},menuOpts:{menuId:ag.TitleMenu,title:nh.LABEL,icon:fi("marker-navigation-previous",se.arrowUp,g("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}}nh.ID="editor.action.marker.prev";nh.LABEL=g("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)");class zae extends Qw{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:g("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:T.focus,primary:66,weight:100},menuOpts:{menuId:N.MenubarGoMenu,title:g({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}}class Uae extends Qw{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:g("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:T.focus,primary:1090,weight:100},menuOpts:{menuId:N.MenubarGoMenu,title:g({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}}lt(zd.ID,zd,4);J(Sd);J(nh);J(zae);J(Uae);const E9=new de("markersNavigationVisible",!1),$ae=Ji.bindToContribution(zd.get);ie(new $ae({id:"closeMarkersNavigation",precondition:E9,handler:o=>o.close(),kbOpts:{weight:150,kbExpr:T.focus,primary:9,secondary:[1033]}}));var jae=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},CL=function(o,e){return function(t,i){e(t,i,o)}};const yo=X;class Kae{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 rO={type:1,filter:{include:Ne.QuickFix},triggerAction:ns.QuickFixHover};let CI=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,d=a.range.endLineNumber===n?a.range.endColumn:s,c=this._markerDecorationsService.getMarker(i.uri,a);if(!c)continue;const h=new y(e.range.startLineNumber,l,e.range.startLineNumber,d);r.push(new Kae(this,h,c))}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 d=q(n,yo("span"));if(d.style.whiteSpace="pre-wrap",d.innerText=r,s||a)if(a&&typeof a!="string"){const c=yo("span");if(s){const p=q(c,yo("span"));p.innerText=s}const h=q(c,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 f=q(n,c);f.style.opacity="0.6",f.style.paddingLeft="6px"}else{const c=q(n,yo("span"));c.style.opacity="0.6",c.style.paddingLeft="6px",c.innerText=s&&a?`${s}(${a})`:s||`(${a})`}if(Cn(l))for(const{message:c,resource:h,startLineNumber:u,startColumn:f}of l){const p=q(n,yo("div"));p.style.marginTop="8px";const m=q(p,yo("a"));m.innerText=`${uo(h)}(${u}, ${f}): `,m.style.cursor="pointer",t.add(K(m,"click",b=>{b.stopPropagation(),b.preventDefault(),this._openerService&&this._openerService.open(h,{fromUserGesture:!0,editorOptions:{selection:{startLineNumber:u,startColumn:f}}}).catch(Oe)}));const _=q(p,yo("span"));_.innerText=c,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:g("view problem","View Problem"),commandId:Sd.ID,run:()=>{var n;e.hide(),(n=zd.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&&(zC.makeKey(this.recentMarkerCodeActionsInfo.marker)===zC.makeKey(t.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(n.textContent=g("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);const s=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?U.None:i.add(ch(()=>n.textContent=g("checkingForQuickFixes","Checking for quick fixes..."),200));n.textContent||(n.textContent=" ");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=g("noQuickFixes","No quick fixes available");return}n.style.display="none";let l=!1;i.add(Pe(()=>{l||a.dispose()})),e.statusBar.addAction({label:g("quick fixes","Quick Fix..."),commandId:Tg.Id,run:d=>{l=!0;const c=kh.get(this._editor),h=Fi(d);e.hide(),c==null||c.showCodeActions(rO,a,{x:h.left+6,y:h.top+h.height+6,width:h.width,height:h.height})}})},Oe)}}getCodeActions(e){return Wi(t=>U2(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new y(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),rO,Qh.None,t))}};CI=jae([CL(1,tN),CL(2,bo),CL(3,fe)],CI);const N9="editor.action.inlineSuggest.commit",T9="editor.action.inlineSuggest.showPrevious",M9="editor.action.inlineSuggest.showNext";var qae=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};class Gae extends U{constructor(e,t,i={orientation:0}){super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new jW),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=new Z,this.options=i,this.lookupKeybindings=typeof this.options.getKeyBinding=="function",this.toggleMenuAction=this._register(new v_(()=>{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 fo(this.element,{orientation:i.orientation,ariaLabel:i.ariaLabel,actionRunner:i.actionRunner,allowContextMenu:i.allowContextMenu,actionViewItemProvider:(n,s)=>{var r;if(n.id===v_.ID)return this.toggleMenuActionViewItem=new PC(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 zf){const a=new PC(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 v_ extends ms{constructor(e,t){t=t||g("moreActions","More Actions..."),super(v_.ID,t,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=e}run(){return qae(this,void 0,void 0,function*(){this.toggleDropdownMenu()})}get menuActions(){return this._menuActions}set menuActions(e){this._menuActions=e}}v_.ID="toolbar.toggle.more";var Zae=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=function(o,e){return function(t,i){e(t,i,o)}};let wI=class extends Gae{constructor(e,t,i,n,s,r,a){super(e,s,Object.assign(Object.assign({getKeyBinding:l=>{var d;return(d=r.lookupKeybinding(l.id))!==null&&d!==void 0?d: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(),d=[];let c=0;const h=[];let u=!1;if(((n=this._options)===null||n===void 0?void 0:n.hiddenItemStrategy)!==-1)for(let f=0;f=this._options.maxNumberOfItems&&(a[p]=void 0,h[p]=m)}}NT(a),NT(h),super.setActions(a,Bi.join(h,l)),d.length>0&&this._sessionDisposables.add(K(this.getElement(),"contextmenu",f=>{var p,m,_,b;const v=this.getItemAction(f.target);if(!v)return;f.preventDefault(),f.stopPropagation();let C=!1;if(c===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:()=>f,getActions:()=>x,menuId:(_=this._options)===null||_===void 0?void 0:_.contextMenu,menuActionOptions:Object.assign({renderShortTitle:!0},(b=this._options)===null||b===void 0?void 0:b.menuOptions),contextKeyService:this._contextKeyService})}))}};wI=Zae([rp(2,Ea),rp(3,Ee),rp(4,xr),rp(5,ei),rp(6,mo)],wI);var A9=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=function(o,e){return function(t,i){e(t,i,o)}};const Yae=fi("inline-suggestion-hints-next",se.chevronRight,g("parameterHintsNextIcon","Icon for show next parameter hint.")),Qae=fi("inline-suggestion-hints-previous",se.chevronLeft,g("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let Nh=class SI 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=g({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${SI.id++}`,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=bp("div.inlineSuggestionsHints",{className:this.withBorder?".withBorder":""},[bp("div",{style:{display:"flex"}},[bp("div@actionBar",{className:"custom-actions"}),bp("div@toolBar")])]),this.position=null,this.previousAction=this.createCommandAction(T9,g("previous","Previous"),De.asClassName(Qae)),this.availableSuggestionCountAction=new ms("inlineSuggestionHints.availableSuggestionCount","",void 0,!1),this.nextAction=this.createCommandAction(M9,g("next","Next"),De.asClassName(Yae)),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(N.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 fo(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(yI,this.nodes.toolBar,N.InlineSuggestionToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:d=>d.startsWith("primary")},actionViewItemProvider:(d,c)=>d instanceof Vo?n.createInstance(Xae,d,void 0):void 0,telemetrySource:"InlineSuggestionToolbar"})),this._register(this.toolBar.onDidChangeDropdownVisibility(d=>{SI._dropDownVisible=d}))}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}}};Nh._dropDownVisible=!1;Nh.id=0;Nh=A9([Qr(2,ri),Qr(3,Me),Qr(4,ei),Qr(5,Ee),Qr(6,Ea)],Nh);let Xae=class extends vh{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=bp("div.keybinding").root;new n0(t,Ps,{disableTitle:!0}).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineSuggestionStatusBarItemLabel")}}},yI=class extends wI{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=[],d=[];Z3(this.menu,(e=this.options2)===null||e===void 0?void 0:e.menuOptions,{primary:l,secondary:d},(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),d.push(...this.additionalActions),this.setActions(l,d)}setAdditionalSecondaryActions(e){this.additionalActions=e,this.updateToolbar()}};yI=A9([Qr(3,Ea),Qr(4,Ee),Qr(5,xr),Qr(6,ei),Qr(7,mo)],yI);var Jae=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},Lv=function(o,e){return function(t,i){e(t,i,o)}};let Ud=class R9{static get(e){return e.getContribution(R9.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===kf.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===kf.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 kf(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())||Nh.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(r1,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()}};Ud.ID="editor.contrib.hover";Ud=Jae([Lv(1,Me),Lv(2,bo),Lv(3,Ut),Lv(4,Ee)],Ud);class ele extends ce{constructor(){super({id:"editor.action.showHover",label:g({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:T.editorTextFocus,primary:ki(2089,2087),weight:100}})}run(e,t){if(!t.hasModel())return;const i=Ud.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 tle extends ce{constructor(){super({id:"editor.action.showDefinitionPreviewHover",label:g({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=Ud.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(Ud.ID,Ud,2);J(ele);J(tle);ou.register(l1);ou.register(CI);Ho((o,e)=>{const t=o.getColor(mj);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 LI 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!==U8||!t.range)return;const i=this._editor.getContribution(Ud.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)}}}LI.ID="editor.contrib.colorContribution";lt(LI.ID,LI,2);ou.register(Jk);const Xw=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;nP9(this,void 0,void 0,function*(){return o}),asFile:()=>{},value:typeof o=="string"?o:void 0}}function ile(o,e,t){return{id:Xw(),asString:()=>P9(this,void 0,void 0,function*(){return""}),asFile:()=>({name:o,uri:e,data:t}),value:void 0}}class O9{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 Jw=Object.freeze({create:o=>Dd(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:pd(t,a.open),close:pd(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 Fne=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};function Bne(o){Bf.registerLanguage(o)}function Wne(){let o=[];return o=o.concat(Bf.getLanguages()),o}function Vne(o){return ke.get(Ut).languageIdCodec.encodeLanguageId(o)}function Hne(o,e){const i=ke.get(Ut).onDidEncounterLanguage(n=>{n===o&&(i.dispose(),e())});return i}function zne(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 Une{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 D1(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 f=h.startIndex;d===0?f=0:fFne(this,void 0,void 0,function*(){const i=yield Promise.resolve(e.create());return i?$ne(i)?W7(o,i):new km(ke.get(Ut),ke.get(Ks),o,F7(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 B7(e)?T2(o,{create:()=>e}):Kt.register(o,W7(o,e))}function Gne(o,e){const t=i=>new km(ke.get(Ut),ke.get(Ks),o,F7(o,i),ke.get(at));return B7(e)?T2(o,{create:()=>e}):Kt.register(o,t(e))}function Zne(o,e){return ke.get(fe).referenceProvider.register(o,e)}function Yne(o,e){return ke.get(fe).renameProvider.register(o,e)}function Qne(o,e){return ke.get(fe).signatureHelpProvider.register(o,e)}function Xne(o,e){return ke.get(fe).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 Jne(o,e){return ke.get(fe).documentSymbolProvider.register(o,e)}function ese(o,e){return ke.get(fe).documentHighlightProvider.register(o,e)}function tse(o,e){return ke.get(fe).linkedEditingRangeProvider.register(o,e)}function ise(o,e){return ke.get(fe).definitionProvider.register(o,e)}function nse(o,e){return ke.get(fe).implementationProvider.register(o,e)}function sse(o,e){return ke.get(fe).typeDefinitionProvider.register(o,e)}function ose(o,e){return ke.get(fe).codeLensProvider.register(o,e)}function rse(o,e,t){return ke.get(fe).codeActionProvider.register(o,{providedCodeActionKinds:t==null?void 0:t.providedCodeActionKinds,documentation:t==null?void 0:t.documentation,provideCodeActions:(n,s,r,a)=>{const d=ke.get(Ta).read({resource:n.uri}).filter(c=>y.areIntersectingOrTouching(c,s));return e.provideCodeActions(n,s,{markers:d,only:r.only,trigger:r.trigger},a)},resolveCodeAction:e.resolveCodeAction})}function ase(o,e){return ke.get(fe).documentFormattingEditProvider.register(o,e)}function lse(o,e){return ke.get(fe).documentRangeFormattingEditProvider.register(o,e)}function dse(o,e){return ke.get(fe).onTypeFormattingEditProvider.register(o,e)}function cse(o,e){return ke.get(fe).linkProvider.register(o,e)}function hse(o,e){return ke.get(fe).completionProvider.register(o,e)}function use(o,e){return ke.get(fe).colorProvider.register(o,e)}function fse(o,e){return ke.get(fe).foldingRangeProvider.register(o,e)}function gse(o,e){return ke.get(fe).declarationProvider.register(o,e)}function pse(o,e){return ke.get(fe).selectionRangeProvider.register(o,e)}function mse(o,e){return ke.get(fe).documentSemanticTokensProvider.register(o,e)}function _se(o,e){return ke.get(fe).documentRangeSemanticTokensProvider.register(o,e)}function vse(o,e){return ke.get(fe).inlineCompletionsProvider.register(o,e)}function bse(o,e){return ke.get(fe).inlayHintsProvider.register(o,e)}function Cse(){return{register:Bne,getLanguages:Wne,onLanguage:Hne,getEncodedLanguageId:Vne,setLanguageConfiguration:zne,setColorMap:Kne,registerTokensProviderFactory:T2,setTokensProvider:qne,setMonarchTokensProvider:Gne,registerReferenceProvider:Zne,registerRenameProvider:Yne,registerCompletionItemProvider:hse,registerSignatureHelpProvider:Qne,registerHoverProvider:Xne,registerDocumentSymbolProvider:Jne,registerDocumentHighlightProvider:ese,registerLinkedEditingRangeProvider:tse,registerDefinitionProvider:ise,registerImplementationProvider:nse,registerTypeDefinitionProvider:sse,registerCodeLensProvider:ose,registerCodeActionProvider:rse,registerDocumentFormattingEditProvider:ase,registerDocumentRangeFormattingEditProvider:lse,registerOnTypeFormattingEditProvider:dse,registerLinkProvider:cse,registerColorProvider:use,registerFoldingRangeProvider:fse,registerDeclarationProvider:gse,registerSelectionRangeProvider:pse,registerDocumentSemanticTokensProvider:mse,registerDocumentRangeSemanticTokensProvider:_se,registerInlineCompletionsProvider:vse,registerInlayHintsProvider:bse,DocumentHighlightKind:dD,CompletionItemKind:nD,CompletionItemTag:sD,CompletionItemInsertTextRule:Fb,SymbolKind:MD,SymbolTag:AD,IndentAction:gD,CompletionTriggerKind:oD,SignatureHelpTriggerKind:TD,InlayHintKind:mD,InlineCompletionTriggerKind:_D,CodeActionTriggerType:iD,FoldingRangeKind:br}}const M2=Je("IEditorCancelService"),V7=new de("cancellableOperation",!1,g("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));ot(M2,class{constructor(){this._tokens=new WeakMap}add(o,e){let t=this._tokens.get(o);t||(t=o.invokeWithinContext(n=>{const s=V7.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 wse extends Xi{constructor(e,t){super(t),this.editor=e,this._unregister=e.invokeWithinContext(i=>i.get(M2).add(e,this))}dispose(){this._unregister(),super.dispose()}}ie(new class extends Ji{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:V7})}runEditorCommand(o,e){o.get(M2).cancel(e)}});let H7=class jk{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 jk))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 jk(e,this.flags))}};class Sh extends wse{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 A2 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 z7(o){return o&&typeof o.getEditorType=="function"?o.getEditorType()===U_.IDiffEditor:!1}function Sse(o){return!!o&&typeof o=="object"&&typeof o.onDidChangeActiveEditor=="function"}function U7(o){return La(o)?o:z7(o)?o.getModifiedEditor():Sse(o)&&La(o.activeCodeEditor)?o.activeCodeEditor:null}class ng{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=ng._handleEolEdits(e,t);s.length===1&&ng._isFullModelReplaceEdit(e,s[0])?e.executeEdits("formatEditsCommand",s.map(r=>Ht.replace(y.lift(r.range),r.text))):e.executeEdits("formatEditsCommand",s.map(r=>Ht.replaceMove(y.lift(r.range),r.text))),i&&e.pushUndoStop(),n.restoreRelativeVerticalPositionOfCursor(e)}}class Jy{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return typeof e=="string"?e.toLowerCase():e._lower}}var Lr=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};function R2(o){if(o=o.filter(n=>n.range),!o.length)return;let{range:e}=o[0];for(let n=1;n0&&y.areIntersectingOrTouching(d[c-1],m)?d[c-1]=y.fromPositions(d[c-1].getStartPosition(),m.getEndPosition()):c=d.push(m);const h=m=>Lr(this,void 0,void 0,function*(){var _,b;r.trace("[format][provideDocumentRangeFormattingEdits] (request)",(_=e.extensionId)===null||_===void 0?void 0:_.value,m);const v=(yield e.provideDocumentRangeFormattingEdits(a,m,a.getFormattingOptions(),l.token))||[];return r.trace("[format][provideDocumentRangeFormattingEdits] (response)",(b=e.extensionId)===null||b===void 0?void 0:b.value,v),v}),u=(m,_)=>{if(!m.length||!_.length)return!1;const b=m.reduce((v,C)=>y.plusRange(v,C.range),m[0].range);if(!_.some(v=>y.intersectRanges(b,v.range)))return!1;for(const v of m)for(const C of _)if(y.intersectRanges(v.range,C.range))return!0;return!1},f=[],p=[];try{for(const m of d){if(l.token.isCancellationRequested)return!0;p.push(yield h(m))}for(let m=0;m({text:b.text,range:y.lift(b.range),forceMoveMarkers:!0})),b=>{for(const{range:v}of b)if(y.areIntersectingOrTouching(v,_))return[new ue(v.startLineNumber,v.startColumn,v.endLineNumber,v.endColumn)];return null})}return!0})}function Lse(o,e,t,i,n){return Lr(this,void 0,void 0,function*(){const s=o.get(Me),r=o.get(fe),a=La(e)?e.getModel():e,l=$7(r.documentFormattingEditProvider,r.documentRangeFormattingEditProvider,a),d=yield yh.select(l,a,t);d&&(i.report(d),yield s.invokeFunction(Dse,d,e,t,n))})}function Dse(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 A2(t,n));let l;try{const d=yield e.provideDocumentFormattingEdits(r,r.getFormattingOptions(),a.token);if(l=yield s.computeMoreMinimalEdits(r.uri,d),a.token.isCancellationRequested)return!0}finally{a.dispose()}if(!l||l.length===0)return!1;if(La(t))ng.execute(t,l,i!==2),i!==2&&(R2(l),t.revealPositionInCenterIfOutsideViewport(t.getPosition(),1));else{const[{range:d}]=l,c=new ue(d.startLineNumber,d.startColumn,d.endLineNumber,d.endColumn);r.pushEditOperations([c],l.map(h=>({text:h.text,range:y.lift(h.range),forceMoveMarkers:!0})),h=>{for(const{range:u}of h)if(y.areIntersectingOrTouching(u,c))return[new ue(u.startLineNumber,u.startColumn,u.endLineNumber,u.endColumn)];return null})}return!0})}function xse(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 kse(o,e,t,i,n){return Lr(this,void 0,void 0,function*(){const s=$7(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 K7(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(fe),l=yield s.createModelReference(t);try{return xse(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(fe),a=yield n.createModelReference(t);try{return kse(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(fe),d=yield r.createModelReference(t);try{return K7(a,l,d.object.textEditorModel,W.lift(i),n,s,Ye.None)}finally{d.dispose()}})});var eL;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=W4();zn.editor=Tne();zn.languages=Cse();const q7=zn.CancellationTokenSource,G7=zn.Emitter,Z7=zn.KeyCode,Y7=zn.KeyMod,Q7=zn.Position,X7=zn.Range,J7=zn.Selection,e8=zn.SelectionDirection,t8=zn.MarkerSeverity,i8=zn.MarkerTag,n8=zn.Uri,s8=zn.Token,ja=zn.editor,P2=zn.languages;(!((eL=ci.MonacoEnvironment)===null||eL===void 0)&&eL.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 l0=Object.freeze(Object.defineProperty({__proto__:null,CancellationTokenSource:q7,Emitter:G7,KeyCode:Z7,KeyMod:Y7,MarkerSeverity:t8,MarkerTag:i8,Position:Q7,Range:X7,Selection:J7,SelectionDirection:e8,Token:s8,Uri:n8,editor:ja,languages:P2},Symbol.toStringTag,{value:"Module"}));var Ise=Object.defineProperty,Ese=Object.getOwnPropertyDescriptor,Nse=Object.getOwnPropertyNames,Tse=Object.prototype.hasOwnProperty,Mse=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Nse(e))!Tse.call(o,n)&&n!==t&&Ise(o,n,{get:()=>e[n],enumerable:!(i=Ese(e,n))||i.enumerable});return o},Ase=(o,e,t)=>(Mse(o,e,"default"),t),Pp={};Ase(Pp,l0);var o8={},tL={},r8=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 tL[o]||(tL[o]=new r8(o)),tL[o]}load(){return this._loadingTriggered||(this._loadingTriggered=!0,o8[this._languageId].loader().then(o=>this._lazyLoadPromiseResolve(o),o=>this._lazyLoadPromiseReject(o))),this._lazyLoadPromise}};function ve(o){const e=o.id;o8[e]=o,Pp.languages.register(o);const t=r8.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)})}ve({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>me(()=>import("./abap-CRCWOmpq.js"),[])});ve({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>me(()=>import("./apex-DnsZk_dE.js"),[])});ve({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>me(()=>import("./azcli-1IWB1ccx.js"),[])});ve({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>me(()=>import("./bat-DPkNLes8.js"),[])});ve({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>me(()=>import("./bicep-Corcdgou.js"),[])});ve({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>me(()=>import("./cameligo-CGrWLZr3.js"),[])});ve({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>me(()=>import("./clojure-D9WOWImG.js"),[])});ve({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>me(()=>import("./coffee-B7EJu28W.js"),[])});ve({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>me(()=>import("./cpp-BaF-TIV3.js"),[])});ve({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>me(()=>import("./cpp-BaF-TIV3.js"),[])});ve({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>me(()=>import("./csharp-BoL64M5l.js"),[])});ve({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>me(()=>import("./csp-C46ZqvIl.js"),[])});ve({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>me(()=>import("./css-DQU6DXDx.js"),[])});ve({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>me(()=>import("./cypher-D84EuPTj.js"),[])});ve({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>me(()=>import("./dart-D8lhlL1r.js"),[])});ve({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>me(()=>import("./dockerfile-DLk6rpji.js"),[])});ve({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>me(()=>import("./ecl-BO6FnfXk.js"),[])});ve({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>me(()=>import("./elixir-DhnAcdHF.js"),[])});ve({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>me(()=>import("./flow9-Cac8vKd7.js"),[])});ve({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>me(()=>import("./fsharp-fd1GTHhf.js"),[])});ve({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>me(()=>import("./freemarker2-Cr303UPI.js"),__vite__mapDeps([0,1,2])).then(o=>o.TagAutoInterpolationDollar)});ve({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>me(()=>import("./freemarker2-Cr303UPI.js"),__vite__mapDeps([0,1,2])).then(o=>o.TagAngleInterpolationDollar)});ve({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>me(()=>import("./freemarker2-Cr303UPI.js"),__vite__mapDeps([0,1,2])).then(o=>o.TagBracketInterpolationDollar)});ve({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>me(()=>import("./freemarker2-Cr303UPI.js"),__vite__mapDeps([0,1,2])).then(o=>o.TagAngleInterpolationBracket)});ve({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>me(()=>import("./freemarker2-Cr303UPI.js"),__vite__mapDeps([0,1,2])).then(o=>o.TagBracketInterpolationBracket)});ve({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>me(()=>import("./freemarker2-Cr303UPI.js"),__vite__mapDeps([0,1,2])).then(o=>o.TagAutoInterpolationDollar)});ve({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>me(()=>import("./freemarker2-Cr303UPI.js"),__vite__mapDeps([0,1,2])).then(o=>o.TagAutoInterpolationBracket)});ve({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>me(()=>import("./go-O9LJTZXk.js"),[])});ve({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>me(()=>import("./graphql-LQdxqEYJ.js"),[])});ve({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>me(()=>import("./handlebars-C-uGZQP_.js"),__vite__mapDeps([3,1,2]))});ve({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>me(()=>import("./hcl-DxDQ3s82.js"),[])});ve({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-CzXZ9GKY.js"),__vite__mapDeps([4,1,2]))});ve({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>me(()=>import("./ini-BvajGCUy.js"),[])});ve({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>me(()=>import("./java-SYsfObOQ.js"),[])});ve({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>me(()=>import("./javascript-CLvPYtY7.js"),__vite__mapDeps([5,6,1,2]))});ve({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>me(()=>import("./julia-DQXNmw_w.js"),[])});ve({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>me(()=>import("./kotlin-qQ0MG-9I.js"),[])});ve({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>me(()=>import("./less-GGFNNJHn.js"),[])});ve({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>me(()=>import("./lexon-Canl7DCW.js"),[])});ve({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>me(()=>import("./lua-D28Ae8-K.js"),[])});ve({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>me(()=>import("./liquid-B3Ig1-8M.js"),__vite__mapDeps([7,1,2]))});ve({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>me(()=>import("./m3-DPitgjJI.js"),[])});ve({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>me(()=>import("./markdown-B811l8j2.js"),[])});ve({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>me(()=>import("./mips-CdjsipkG.js"),[])});ve({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>me(()=>import("./msdax-CYqgjx_P.js"),[])});ve({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>me(()=>import("./mysql-BHd6q0vd.js"),[])});ve({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>me(()=>import("./objective-c-B1aVtJYH.js"),[])});ve({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>me(()=>import("./pascal-BhNW15KB.js"),[])});ve({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>me(()=>import("./pascaligo-5jv8CcQD.js"),[])});ve({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:()=>me(()=>import("./perl-DlYyT36c.js"),[])});ve({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>me(()=>import("./pgsql-Dy0bjov7.js"),[])});ve({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>me(()=>import("./php-120yhfDK.js"),[])});ve({id:"pla",extensions:[".pla"],loader:()=>me(()=>import("./pla-CjnFlu4u.js"),[])});ve({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>me(()=>import("./postiats-CQpG440k.js"),[])});ve({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>me(()=>import("./powerquery-DdJtto1Z.js"),[])});ve({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>me(()=>import("./powershell-Bu_VLpJB.js"),[])});ve({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>me(()=>import("./protobuf-IBS6jZEB.js"),[])});ve({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>me(()=>import("./pug-kFxLfcjb.js"),[])});ve({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>me(()=>import("./python-Cj6l3V68.js"),__vite__mapDeps([8,1,2]))});ve({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>me(()=>import("./qsharp-gaqVKiJ_.js"),[])});ve({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>me(()=>import("./r-BIFz-_sK.js"),[])});ve({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>me(()=>import("./razor-WIHsCv-P.js"),__vite__mapDeps([9,1,2]))});ve({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>me(()=>import("./redis-CHOsPHWR.js"),[])});ve({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>me(()=>import("./redshift-CBifECDb.js"),[])});ve({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>me(()=>import("./restructuredtext-CghPJEOS.js"),[])});ve({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>me(()=>import("./ruby-CYWGW-b1.js"),[])});ve({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>me(()=>import("./rust-DMDD0SHb.js"),[])});ve({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>me(()=>import("./sb-BYAiYHFx.js"),[])});ve({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-Bqvq8jcR.js"),[])});ve({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>me(()=>import("./scheme-Dhb-2j9p.js"),[])});ve({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>me(()=>import("./scss-CTwUZ5N7.js"),[])});ve({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>me(()=>import("./shell-CsDZo4DB.js"),[])});ve({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>me(()=>import("./solidity-CME5AdoB.js"),[])});ve({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>me(()=>import("./sophia-RYC1BQQz.js"),[])});ve({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>me(()=>import("./sparql-KEyrF7De.js"),[])});ve({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>me(()=>import("./sql-BdTr02Mf.js"),[])});ve({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:()=>me(()=>import("./st-C8kzSboH.js"),[])});ve({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>me(()=>import("./swift-D7IUmUK8.js"),[])});ve({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>me(()=>import("./systemverilog-DgMryOEJ.js"),[])});ve({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>me(()=>import("./systemverilog-DgMryOEJ.js"),[])});ve({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>me(()=>import("./tcl-PloMZuKG.js"),[])});ve({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>me(()=>import("./twig-bne2BnKZ.js"),[])});ve({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>me(()=>import("./typescript-Bf-nANOc.js"),__vite__mapDeps([6,1,2]))});ve({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>me(()=>import("./vb-BwAE3J76.js"),[])});ve({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\me(()=>import("./xml-DRfkQZD8.js"),__vite__mapDeps([10,1,2]))});ve({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>me(()=>import("./yaml-DUizjfby.js"),__vite__mapDeps([11,1,2]))});var Rse=Object.defineProperty,Pse=Object.getOwnPropertyDescriptor,Ose=Object.getOwnPropertyNames,Fse=Object.prototype.hasOwnProperty,Bse=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ose(e))!Fse.call(o,n)&&n!==t&&Rse(o,n,{get:()=>e[n],enumerable:!(i=Pse(e,n))||i.enumerable});return o},Wse=(o,e,t)=>(Bse(o,e,"default"),t),Ng={};Wse(Ng,l0);var O2=class{constructor(e,t,i){Zt(this,"_onDidChange",new Ng.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)}},F2={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}},B2={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},a8=new O2("css",F2,B2),l8=new O2("scss",F2,B2),d8=new O2("less",F2,B2);Ng.languages.css={cssDefaults:a8,lessDefaults:d8,scssDefaults:l8};function W2(){return me(()=>import("./cssMode-Dr_dLNo_.js"),__vite__mapDeps([12,1,2]))}Ng.languages.onLanguage("less",()=>{W2().then(o=>o.setupMode(d8))});Ng.languages.onLanguage("scss",()=>{W2().then(o=>o.setupMode(l8))});Ng.languages.onLanguage("css",()=>{W2().then(o=>o.setupMode(a8))});var Vse=Object.defineProperty,Hse=Object.getOwnPropertyDescriptor,zse=Object.getOwnPropertyNames,Use=Object.prototype.hasOwnProperty,$se=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of zse(e))!Use.call(o,n)&&n!==t&&Vse(o,n,{get:()=>e[n],enumerable:!(i=Hse(e,n))||i.enumerable});return o},jse=(o,e,t)=>($se(o,e,"default"),t),Aw={};jse(Aw,l0);var Kse=class{constructor(e,t,i){Zt(this,"_onDidChange",new Aw.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)}},qse={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"},Rw={format:qse,suggest:{},data:{useDefaultDataProvider:!0}};function Pw(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",AP="handlebars",RP="razor",c8=Ow(hm,Rw,Pw(hm)),Gse=c8.defaults,h8=Ow(AP,Rw,Pw(AP)),Zse=h8.defaults,u8=Ow(RP,Rw,Pw(RP)),Yse=u8.defaults;Aw.languages.html={htmlDefaults:Gse,razorDefaults:Yse,handlebarDefaults:Zse,htmlLanguageService:c8,handlebarLanguageService:h8,razorLanguageService:u8,registerHTMLLanguageService:Ow};function Qse(){return me(()=>import("./htmlMode-6R6887KQ.js"),__vite__mapDeps([13,1,2]))}function Ow(o,e=Rw,t=Pw(o)){const i=new Kse(o,e,t);let n;const s=Aw.languages.onLanguage(o,async()=>{n=(await Qse()).setupMode(i)});return{defaults:i,dispose(){s.dispose(),n==null||n.dispose(),n=void 0}}}var Xse=Object.defineProperty,Jse=Object.getOwnPropertyDescriptor,eoe=Object.getOwnPropertyNames,toe=Object.prototype.hasOwnProperty,ioe=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of eoe(e))!toe.call(o,n)&&n!==t&&Xse(o,n,{get:()=>e[n],enumerable:!(i=Jse(e,n))||i.enumerable});return o},noe=(o,e,t)=>(ioe(o,e,"default"),t),d0={};noe(d0,l0);var soe=class{constructor(e,t,i){Zt(this,"_onDidChange",new d0.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},f8=new soe("json",ooe,roe);d0.languages.json={jsonDefaults:f8};function aoe(){return me(()=>import("./jsonMode-C-TI3MVh.js"),__vite__mapDeps([14,1,2]))}d0.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});d0.languages.onLanguage("json",()=>{aoe().then(o=>o.setupMode(f8))});var loe=Object.defineProperty,doe=Object.getOwnPropertyDescriptor,coe=Object.getOwnPropertyNames,hoe=Object.prototype.hasOwnProperty,uoe=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of coe(e))!hoe.call(o,n)&&n!==t&&loe(o,n,{get:()=>e[n],enumerable:!(i=doe(e,n))||i.enumerable});return o},foe=(o,e,t)=>(uoe(o,e,"default"),t),goe="4.5.5",sg={};foe(sg,l0);var g8=(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))(g8||{}),p8=(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))(p8||{}),m8=(o=>(o[o.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",o[o.LineFeed=1]="LineFeed",o))(m8||{}),_8=(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))(_8||{}),v8=(o=>(o[o.Classic=1]="Classic",o[o.NodeJs=2]="NodeJs",o))(v8||{}),b8=class{constructor(o,e,t,i,n){Zt(this,"_onDidChange",new sg.Emitter);Zt(this,"_onDidExtraLibsChange",new sg.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)}},poe=goe,C8={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},w8=new b8({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},C8),S8=new b8({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},C8),moe=()=>Fw().then(o=>o.getTypeScriptWorker()),_oe=()=>Fw().then(o=>o.getJavaScriptWorker());sg.languages.typescript={ModuleKind:g8,JsxEmit:p8,NewLineKind:m8,ScriptTarget:_8,ModuleResolutionKind:v8,typescriptVersion:poe,typescriptDefaults:w8,javascriptDefaults:S8,getTypeScriptWorker:moe,getJavaScriptWorker:_oe};function Fw(){return me(()=>import("./tsMode-eFPjmWu1.js"),__vite__mapDeps([15,1,2]))}sg.languages.onLanguage("typescript",()=>Fw().then(o=>o.setupTypeScript(w8)));sg.languages.onLanguage("javascript",()=>Fw().then(o=>o.setupJavaScript(S8)));var voe=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=function(o,e){return function(t,i){e(t,i,o)}},Bw=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};const Ww=new de("selectionAnchorSet",!1);let yl=class y8{static get(e){return e.getContribution(y8.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=Ww.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(ue.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new Yn().appendText(g("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),dn(g("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(ue.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=voe([boe(1,Ee)],yl);class Coe extends ce{constructor(){super({id:"editor.action.setSelectionAnchor",label:g("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:T.editorTextFocus,primary:ki(2089,2080),weight:100}})}run(e,t){var i;return Bw(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.setSelectionAnchor()})}}class woe extends ce{constructor(){super({id:"editor.action.goToSelectionAnchor",label:g("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:Ww})}run(e,t){var i;return Bw(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.goToSelectionAnchor()})}}class Soe extends ce{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:g("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:Ww,kbOpts:{kbExpr:T.editorTextFocus,primary:ki(2089,2089),weight:100}})}run(e,t){var i;return Bw(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.selectFromAnchorToCursor()})}}class yoe extends ce{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:g("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:Ww,kbOpts:{kbExpr:T.editorTextFocus,primary:9,weight:100}})}run(e,t){var i;return Bw(this,void 0,void 0,function*(){(i=yl.get(t))===null||i===void 0||i.cancelSelectionAnchor()})}}lt(yl.ID,yl,4);J(Coe);J(woe);J(Soe);J(yoe);const Loe=M("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},g("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class Doe extends ce{constructor(){super({id:"editor.action.jumpToBracket",label:g("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:T.editorTextFocus,primary:3160,weight:100}})}run(e,t){var i;(i=vr.get(t))===null||i===void 0||i.jumpToBracket()}}class xoe extends ce{constructor(){super({id:"editor.action.selectToBracket",label:g("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=vr.get(t))===null||n===void 0||n.selectToBracket(s)}}class koe{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class vr extends U{static get(e){return e.getContribution(vr.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 ue(r.lineNumber,r.column,r.lineNumber,r.column):new ue(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 d=t.bracketPairs.findNextBracket(s);d&&d.range&&(r=t.bracketPairs.matchBracket(d.range.getStartPosition()))}let a=null,l=null;if(r){r.sort(y.compareRangesUsingStarts);const[d,c]=r;if(a=e?d.getStartPosition():d.getEndPosition(),l=e?c.getEndPosition():c.getStartPosition(),c.containsPosition(s)){const h=a;a=l,l=h}}a&&l&&i.push(new ue(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,d=0;const c=n.length;for(let h=0,u=s.length;h0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}J(Toe);var Moe=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};const Lh="9_cutcopypaste",Aoe=ur||document.queryCommandSupported("cut"),D8=ur||document.queryCommandSupported("copy"),Roe=typeof navigator.clipboard>"u"||ro?document.queryCommandSupported("paste"):!0;function V2(o){return o.register(),o}const Poe=Aoe?V2(new yg({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:ur?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:N.MenubarEditMenu,group:"2_ccp",title:g({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:N.EditorContext,group:Lh,title:g("actions.clipboard.cutLabel","Cut"),when:T.writable,order:1},{menuId:N.CommandPalette,group:"",title:g("actions.clipboard.cutLabel","Cut"),order:1},{menuId:N.SimpleEditorContext,group:Lh,title:g("actions.clipboard.cutLabel","Cut"),when:T.writable,order:1}]})):void 0,Ooe=D8?V2(new yg({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:ur?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:N.MenubarEditMenu,group:"2_ccp",title:g({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:N.EditorContext,group:Lh,title:g("actions.clipboard.copyLabel","Copy"),order:2},{menuId:N.CommandPalette,group:"",title:g("actions.clipboard.copyLabel","Copy"),order:1},{menuId:N.SimpleEditorContext,group:Lh,title:g("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;Jn.appendMenuItem(N.MenubarEditMenu,{submenu:N.MenubarCopy,title:{value:g("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3});Jn.appendMenuItem(N.EditorContext,{submenu:N.EditorContextCopy,title:{value:g("copy as","Copy As"),original:"Copy As"},group:Lh,order:3});Jn.appendMenuItem(N.EditorContext,{submenu:N.EditorContextShare,title:{value:g("share","Share"),original:"Share"},group:"11_share",order:-1});const iL=Roe?V2(new yg({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:N.MenubarEditMenu,group:"2_ccp",title:g({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:N.EditorContext,group:Lh,title:g("actions.clipboard.pasteLabel","Paste"),when:T.writable,order:4},{menuId:N.CommandPalette,group:"",title:g("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:N.SimpleEditorContext,group:Lh,title:g("actions.clipboard.pasteLabel","Paste"),when:T.writable,order:4}]})):void 0;class Foe extends ce{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:g("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:T.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(34)&&t.getSelection().isEmpty()||(mx.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),mx.forceCopyWithSyntaxHighlighting=!1)}}function x8(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)))}x8(Poe,"cut");x8(Ooe,"copy");iL&&(iL.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")&&Kd?Moe(void 0,void 0,void 0,function*(){const r=yield i.readText();if(r!==""){const a=Bm.INSTANCE.get(r);let l=!1,d=null,c=null;a&&(l=n.getOption(34)&&!!a.isFromEmptySelection,d=typeof a.multicursorText<"u"?a.multicursorText:null,c=a.mode),n.trigger("keyboard","paste",{text:r,pasteOnNewLine:l,multicursorText:d,mode:c})}}):!0:!1}),iL.addImplementation(0,"generic-dom",(o,e)=>(document.execCommand("paste"),!0)));D8&&J(Foe);var Boe=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};class Ne{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+Ne.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new Ne(this.value+Ne.sep+e)}}Ne.sep=".";Ne.None=new Ne("@@none@@");Ne.Empty=new Ne("");Ne.QuickFix=new Ne("quickfix");Ne.Refactor=new Ne("refactor");Ne.RefactorExtract=Ne.Refactor.append("extract");Ne.RefactorInline=Ne.Refactor.append("inline");Ne.RefactorMove=Ne.Refactor.append("move");Ne.RefactorRewrite=Ne.Refactor.append("rewrite");Ne.Source=new Ne("source");Ne.SourceOrganizeImports=Ne.Source.append("organizeImports");Ne.SourceFixAll=Ne.Source.append("fixAll");Ne.SurroundWith=Ne.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 Woe(o,e){return!(o.include&&!o.include.intersects(e)||o.excludes&&o.excludes.some(t=>k8(e,t,o.include))||!o.includeSourceActions&&Ne.Source.contains(e))}function Voe(o,e){const t=e.kind?new Ne(e.kind):void 0;return!(o.include&&(!t||!o.include.contains(t))||o.excludes&&t&&o.excludes.some(i=>k8(t,i,o.include))||!o.includeSourceActions&&t&&Ne.Source.contains(t)||o.onlyIncludePreferredActions&&!e.isPreferred)}function k8(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 Ne(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 Hoe{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return Boe(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 e1=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};const I8="editor.action.codeAction",E8="editor.action.refactor",zoe="editor.action.refactor.preview",N8="editor.action.sourceAction",H2="editor.action.organizeImports",z2="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&&Ne.QuickFix.contains(new Ne(e.kind))&&!!e.isPreferred)}}const PP={actions:[],documentation:void 0};function U2(o,e,t,i,n,s){var r;return e1(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},d=new A2(e,s),c=Uoe(o,e,a),h=new Z,u=c.map(p=>e1(this,void 0,void 0,function*(){try{n.report(p);const m=yield p.provideCodeActions(e,t,l,d.token);if(m&&h.add(m),d.token.isCancellationRequested)return PP;const _=((m==null?void 0:m.actions)||[]).filter(v=>v&&Voe(a,v)),b=joe(p,_,a.include);return{actions:_.map(v=>new Hoe(v,p)),documentation:b}}catch(m){if(Da(m))throw m;return Vi(m),PP}})),f=o.onDidChange(()=>{const p=o.all(e);Bn(p,c)||d.cancel()});try{const p=yield Promise.all(u),m=p.map(b=>b.actions).flat(),_=[...mg(p.map(b=>b.documentation)),...$oe(o,e,i,m)];return new um(m,_,h)}finally{f.dispose(),d.dispose()}})}function Uoe(o,e,t){return o.all(e).filter(i=>i.providedCodeActionKinds?i.providedCodeActionKinds.some(n=>Woe(t,new Ne(n))):!0)}function*$oe(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 joe(o,e,t){if(!o.documentation)return;const i=o.documentation.map(n=>({kind:new Ne(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 Ne(n.kind)))return s.command}}var t1;(function(o){o.OnSave="onSave",o.FromProblemsView="fromProblemsView",o.FromCodeActions="fromCodeActions"})(t1||(t1={}));function Koe(o,e,t,i,n=Ye.None){var s;return e1(this,void 0,void 0,function*(){const r=o.get(i0),a=o.get(ri),l=o.get(mo),d=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!==t1.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(c){const h=qoe(c);d.error(typeof h=="string"?h:g("applyCodeActionFailed","An unknown error occurred while applying the code action"))}})}function qoe(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 e1(this,void 0,void 0,function*(){if(!(e instanceof Ce))throw Po();const{codeActionProvider:s}=o.get(fe),r=o.get(jt).getModel(e);if(!r)throw Po();const a=ue.isISelection(t)?ue.liftSelection(t):y.isIRange(t)?r.validateRange(t):void 0;if(!a)throw Po();const l=typeof i=="string"?new Ne(i):void 0,d=yield U2(s,r,a,{type:1,triggerAction:ns.Default,filter:{includeSourceActions:!0,include:l}},Qh.None,Ye.None),c=[],h=Math.min(d.validActions.length,typeof n=="number"?n:0);for(let u=0;uu.action)}finally{setTimeout(()=>d.dispose(),100)}})});var Goe=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},Zoe=function(o,e){return function(t,i){e(t,i,o)}};let i1=class T8{constructor(e){this.keybindingService=e}getResolver(){const e=new $h(()=>this.keybindingService.getKeybindings().filter(t=>T8.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let i=t.commandArgs;return t.command===H2?i={kind:Ne.SourceOrganizeImports.value}:t.command===z2&&(i={kind:Ne.SourceFixAll.value}),Object.assign({resolvedKeybinding:t.resolvedKeybinding},Yr.fromUser(i,{kind:Ne.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 Ne(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)}};i1.codeActionCommands=[E8,I8,N8,H2,z2];i1=Goe([Zoe(0,ei)],i1);M("symbolIcon.arrayForeground",{dark:te,light:te,hcDark:te,hcLight:te},g("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},g("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"},g("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},g("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},g("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"},g("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"},g("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"},g("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"},g("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"},g("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},g("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},g("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"},g("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"},g("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},g("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},g("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"},g("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},g("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},g("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},g("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},g("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},g("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},g("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},g("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},g("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},g("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},g("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},g("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},g("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},g("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},g("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},g("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"},g("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));const M8=Object.freeze({kind:Ne.Empty,title:g("codeAction.widget.id.more","More Actions...")}),Yoe=Object.freeze([{kind:Ne.QuickFix,title:g("codeAction.widget.id.quickfix","Quick Fix...")},{kind:Ne.RefactorExtract,title:g("codeAction.widget.id.extract","Extract..."),icon:se.wrench},{kind:Ne.RefactorInline,title:g("codeAction.widget.id.inline","Inline..."),icon:se.wrench},{kind:Ne.RefactorRewrite,title:g("codeAction.widget.id.convert","Rewrite..."),icon:se.wrench},{kind:Ne.RefactorMove,title:g("codeAction.widget.id.move","Move..."),icon:se.wrench},{kind:Ne.SurroundWith,title:g("codeAction.widget.id.surround","Surround With..."),icon:se.symbolSnippet},{kind:Ne.Source,title:g("codeAction.widget.id.source","Source Action..."),icon:se.symbolFile},M8]);function Qoe(o,e,t){if(!e)return o.map(s=>({kind:"action",item:s,group:M8,disabled:!!s.action.disabled,label:s.action.disabled||s.action.title}));const i=Yoe.map(s=>({group:s,actions:[]}));for(const s of o){const r=s.action.kind?new Ne(s.action.kind):Ne.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 Xoe=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},Joe=function(o,e){return function(t,i){e(t,i,o)}};let Cs=class Kk{static get(e){return e.getContribution(Kk.ID)}constructor(e,t){this._messageWidget=new wn,this._messageListeners=new Z,this._editor=e,this._visible=Kk.MESSAGE_VISIBLE.bindTo(t)}dispose(){this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){dn(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new OP(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 go(()=>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(OP.fadeOut(this._messageWidget.value))}};Cs.ID="editor.contrib.messageController";Cs.MESSAGE_VISIBLE=new de("messageVisible",!1,g("messageVisible","Whether the editor is currently showing an inline message"));Cs=Xoe([Joe(1,Ee)],Cs);const ere=Ji.bindToContribution(Cs.get);ie(new ere({id:"leaveEditorMessage",precondition:Cs.MESSAGE_VISIBLE,handler:o=>o.closeMessage(),kbOpts:{weight:130,primary:9}}));let OP=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 A8=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},qk=function(o,e){return function(t,i){e(t,i,o)}};const R8="acceptSelectedCodeAction",P8="previewSelectedCodeAction";class tre{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 Gk=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 n0(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=O8(e.label),e.keybinding?(i.keybinding.set(e.keybinding),hs(i.keybinding.element)):On(i.keybinding.element);const a=(s=this._keybindingService.lookupKeybinding(R8))===null||s===void 0?void 0:s.getLabel(),l=(r=this._keybindingService.lookupKeybinding(P8))===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=g({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=g({key:"label",comment:['placeholder is a keybinding, e.g "F2 to apply"']},"{0} to apply",a):i.container.title="",e.description){const d=new pl(q(i.container,X("span.label-description")));d.element.classList.add("action-list-description"),d.set(e.description)}}disposeTemplate(e){}};Gk=A8([qk(1,ei)],Gk);class ire extends UIEvent{constructor(){super("acceptSelectedAction")}}class FP extends UIEvent{constructor(){super("previewSelectedAction")}}let Zk=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 Gk(t,this._keybindingService),new tre],{keyboardSupport:!1,accessibilityProvider:{getAriaLabel:l=>{if(l.kind==="action"){let d=l.label?O8(l==null?void 0:l.label):"";return l.disabled&&(d=g({key:"customQuickFixWidget.labels",comment:["Action widget labels for accessibility."]},"{0}, Disabled Reason: {1}",d,l.disabled)),d}return null},getWidgetAriaLabel:()=>g({key:"customQuickFixWidget",comment:["An action widget option"]},"Action Widget"),getRole:l=>l.kind==="action"?"option":"separator",getWidgetRole:()=>"listbox"}})),this._list.style(Ig),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(d=>d.kind==="header").length,n=this._allMenuItems.length*this._actionLineHeight+t*this._headerLineHeight-t*this._actionLineHeight;this._list.layout(n);const s=this._allMenuItems.map((d,c)=>{const h=document.getElementById(this._list.getElementID(c));if(h){h.style.width="auto";const u=h.getBoundingClientRect().width;return h.style.width="",u}return 0}),r=Math.max(...s,e),l=Math.min(n,document.body.clientHeight*.7);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 FP:new ire;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 FP):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([])}};Zk=A8([qk(4,xl),qk(5,ei)],Zk);function O8(o){return o.replace(/\r\n|\r|\n/g," ")}var nre=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},nL=function(o,e){return function(t,i){e(t,i,o)}};const Dh={Visible:new de("codeActionMenuVisible",!1,g("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),d=this._instantiationService.createInstance(Zk,e,t,i,n);this._contextViewService.showContextView({getAnchor:()=>s,render:c=>(l.set(!0),this._renderWidget(c,d,a??[])),onHide:c=>{l.reset(),this._onWidgetClosed(c)}},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 d=document.createElement("div"),c=e.appendChild(d);c.classList.add("context-view-pointerBlock"),r.add(K(c,ae.POINTER_MOVE,()=>c.remove())),r.add(K(c,ae.MOUSE_DOWN,()=>c.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 f=r.add(fh(e));return r.add(f.onDidBlur(()=>this.hide())),r}_createActionBar(e,t){if(!t.length)return;const i=X(e),n=new fo(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=nre([nL(0,xl),nL(1,Ee),nL(2,Me)],xh);ot(tu,xh,1);const c0=1100;Nn(class extends Yd{constructor(){super({id:"hideCodeActionWidget",title:{value:g("hideCodeActionWidget.title","Hide action widget"),original:"Hide action widget"},precondition:Dh.Visible,keybinding:{weight:c0,primary:9,secondary:[1033]}})}run(o){o.get(tu).hide()}});Nn(class extends Yd{constructor(){super({id:"selectPrevCodeAction",title:{value:g("selectPrevCodeAction.title","Select previous action"),original:"Select previous action"},precondition:Dh.Visible,keybinding:{weight:c0,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})}run(o){const e=o.get(tu);e instanceof xh&&e.focusPrevious()}});Nn(class extends Yd{constructor(){super({id:"selectNextCodeAction",title:{value:g("selectNextCodeAction.title","Select next action"),original:"Select next action"},precondition:Dh.Visible,keybinding:{weight:c0,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})}run(o){const e=o.get(tu);e instanceof xh&&e.focusNext()}});Nn(class extends Yd{constructor(){super({id:R8,title:{value:g("acceptSelected.title","Accept selected action"),original:"Accept selected action"},precondition:Dh.Visible,keybinding:{weight:c0,primary:3,secondary:[2132]}})}run(o){const e=o.get(tu);e instanceof xh&&e.acceptSelected()}});Nn(class extends Yd{constructor(){super({id:P8,title:{value:g("previewSelected.title","Preview selected action"),original:"Preview selected action"},precondition:Dh.Visible,keybinding:{weight:c0,primary:2051}})}run(o){const e=o.get(tu);e instanceof xh&&e.acceptSelected(!0)}});var sre=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=function(o,e){return function(t,i){e(t,i,o)}},sf;(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})(sf||(sf={}));let n1=class F8 extends U{constructor(e,t,i,n){super(),this._editor=e,this._onClick=this._register(new O),this.onClick=this._onClick.event,this._state=sf.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(YU(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 d=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,d=n.get(47),c=s.getLineContent(r),h=lw(c,l),u=d.spaceWidth*h>22,f=m=>m>2&&this._editor.getTopForLineNumber(m)===this._editor.getTopForLineNumber(m-1);let p=r;if(!u){if(r>1&&!f(r-1))p-=1;else if(!f(r+1))p+=1;else if(a*d.spaceWidth<22)return this.hide()}this.state=new sf.Showing(e,t,i,{position:{lineNumber:p,column:1},preference:F8._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state!==sf.Hidden&&(this.state=sf.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=g("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=g("codeActionWithKb","Show Code Actions ({0})",this._quickFixKbLabel):this.title=g("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};n1._posPref=[0];n1=sre([ore(3,ei)],n1);var rre=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},vv=function(o,e){return function(t,i){e(t,i,o)}},sL=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})},are=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},lre=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)},gb;let Yk=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),gb.set(this,!1),this._showDisabled=!1,this._lightBulbWidget=new $h(()=>{const d=this._register(s.createInstance(n1,this._editor,t,i));return this._register(d.onClick(c=>this.showCodeActionList(c.actions,c,{includeDisabledActions:!1,fromLightbulb:!0}))),d}),this._resolver=s.createInstance(i1),this._register(this._editor.onDidLayoutChange(()=>this._actionWidgetService.hide()))}dispose(){are(this,gb,!0,"f"),super.dispose()}update(e){var t,i,n,s,r;return sL(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(!lre(this,gb,"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 d=this.tryGetValidActionToApply(e.trigger,a);if(d){try{this._lightBulbWidget.value.hide(),yield this.delegate.applyCodeAction(d,!1,!1)}finally{a.dispose()}return}if(e.trigger.context){const c=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,a);if(c&&c.action.disabled){(n=Cs.get(this._editor))===null||n===void 0||n.showMessage(c.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 sL(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,d)=>sL(this,void 0,void 0,function*(){this.delegate.applyCodeAction(l,!0,d||!1),this._actionWidgetService.hide()}),onHide:()=>{var l;(l=this._editor)===null||l===void 0||l.focus()}};this._actionWidgetService.show("codeActionWidget",!0,Qoe(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:g("hideMoreActions","Hide Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!1,this.showCodeActionList(e,t,i))}:{id:"showMoreActions",label:g("showMoreActions","Show Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!0,this.showCodeActionList(e,t,i))}),n}};gb=new WeakMap;Yk=rre([vv(4,Me),vv(5,at),vv(6,tu),vv(7,ri)],Yk);var oL=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)},dre=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 B8=new de("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 go),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=>LN(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 Rc;(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 hre;throw a})}cancel(){this._cancellablePromise.cancel()}}o.Triggered=e})(Rc||(Rc={}));const hre={allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1};class ure 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=Rc.Empty,this._onDidChangeState=this._register(new O),this.onDidChangeState=this._onDidChangeState.event,Ru.set(this,!1),this._supportedCodeActions=B8.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(){oL(this,Ru,"f")||(dre(this,Ru,!0,"f"),super.dispose(),this.setState(Rc.Empty,!0))}_update(){if(oL(this,Ru,"f"))return;this._codeActionOracle.value=void 0,this.setState(Rc.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(Rc.Empty);return}const s=Wi(r=>U2(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 Rc.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&&!oL(this,Ru,"f")&&this._onDidChangeState.fire(e))}}Ru=new WeakMap;var fre=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=function(o,e){return function(t,i){e(t,i,o)}},gre=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};function h0(o){return oe.regex(B8.keys()[0],new RegExp("(\\s|^)"+Hs(o.value)+"\\b"))}function W8(o,e,t,i){const n=Yr.fromUser(e,{kind:Ne.Refactor,apply:"never"});return iu(o,typeof(e==null?void 0:e.kind)=="string"?n.preferred?g("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",e.kind):g("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",e.kind):n.preferred?g("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):g("editor.action.refactor.noneMessage","No refactorings available"),{include:Ne.Refactor.contains(n.kind)?n.kind:Ne.None,onlyIncludePreferredActions:n.preferred},n.apply,t,i)}const Vw={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:g("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:g("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[g("args.schema.apply.first","Always apply the first returned code action."),g("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),g("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:g("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};let kh=class V8 extends U{static get(e){return e.getContribution(V8.ID)}constructor(e,t,i,n,s,r){super(),this._instantiationService=s,this._editor=e,this._model=this._register(new ure(this._editor,r.codeActionProvider,t,i,n)),this._register(this._model.onDidChangeState(a=>this.update(a))),this._ui=new $h(()=>this._register(s.createInstance(Yk,e,Tg.Id,u0.Id,{applyCodeAction:(a,l,d)=>gre(this,void 0,void 0,function*(){try{yield this._applyCodeAction(a,d)}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(Koe,e,t1.FromCodeActions,{preview:t,editor:this._editor})}};kh.ID="editor.contrib.codeActionController";kh=fre([sp(1,Ta),sp(2,Ee),sp(3,ec),sp(4,Me),sp(5,fe)],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 Tg extends ce{constructor(){super({id:Tg.Id,label:g("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:oe.and(T.writable,T.hasCodeActionsProvider),kbOpts:{kbExpr:T.editorTextFocus,primary:2132,weight:100}})}run(e,t){return iu(t,g("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,!1,ns.QuickFix)}}Tg.Id="editor.action.quickFix";class pre extends Ji{constructor(){super({id:I8,precondition:oe.and(T.writable,T.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:Vw}]}})}runEditorCommand(e,t,i){const n=Yr.fromUser(i,{kind:Ne.Empty,apply:"ifSingle"});return iu(t,typeof(i==null?void 0:i.kind)=="string"?n.preferred?g("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",i.kind):g("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",i.kind):n.preferred?g("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):g("editor.action.codeAction.noneMessage","No code actions available"),{include:n.kind,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply)}}class mre extends ce{constructor(){super({id:E8,label:g("refactor.label","Refactor..."),alias:"Refactor...",precondition:oe.and(T.writable,T.hasCodeActionsProvider),kbOpts:{kbExpr:T.editorTextFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:oe.and(T.writable,h0(Ne.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:Vw}]}})}run(e,t,i){return W8(t,i,!1,ns.Refactor)}}class _re extends ce{constructor(){super({id:zoe,label:g("refactor.preview.label","Refactor with Preview..."),alias:"Refactor Preview...",precondition:oe.and(T.writable,T.hasCodeActionsProvider),description:{description:"Refactor Preview...",args:[{name:"args",schema:Vw}]}})}run(e,t,i){return W8(t,i,!0,ns.RefactorPreview)}}class vre extends ce{constructor(){super({id:N8,label:g("source.label","Source Action..."),alias:"Source Action...",precondition:oe.and(T.writable,T.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:oe.and(T.writable,h0(Ne.Source))},description:{description:"Source Action...",args:[{name:"args",schema:Vw}]}})}run(e,t,i){const n=Yr.fromUser(i,{kind:Ne.Source,apply:"never"});return iu(t,typeof(i==null?void 0:i.kind)=="string"?n.preferred?g("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",i.kind):g("editor.action.source.noneMessage.kind","No source actions for '{0}' available",i.kind):n.preferred?g("editor.action.source.noneMessage.preferred","No preferred source actions available"):g("editor.action.source.noneMessage","No source actions available"),{include:Ne.Source.contains(n.kind)?n.kind:Ne.None,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply,void 0,ns.SourceAction)}}class bre extends ce{constructor(){super({id:H2,label:g("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:oe.and(T.writable,h0(Ne.SourceOrganizeImports)),kbOpts:{kbExpr:T.editorTextFocus,primary:1581,weight:100}})}run(e,t){return iu(t,g("editor.action.organize.noneMessage","No organize imports action available"),{include:Ne.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",void 0,ns.OrganizeImports)}}class Cre extends ce{constructor(){super({id:z2,label:g("fixAll.label","Fix All"),alias:"Fix All",precondition:oe.and(T.writable,h0(Ne.SourceFixAll))})}run(e,t){return iu(t,g("fixAll.noneMessage","No fix all action available"),{include:Ne.SourceFixAll,includeSourceActions:!0},"ifSingle",void 0,ns.FixAll)}}class u0 extends ce{constructor(){super({id:u0.Id,label:g("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:oe.and(T.writable,h0(Ne.QuickFix)),kbOpts:{kbExpr:T.editorTextFocus,primary:1620,mac:{primary:2644},weight:100}})}run(e,t){return iu(t,g("editor.action.autoFix.noneMessage","No auto fixes available"),{include:Ne.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",void 0,ns.AutoFix)}}u0.Id="editor.action.autoFix";lt(kh.ID,kh,3);J(Tg);J(mre);J(_re);J(vre);J(bre);J(u0);J(Cre);ie(new pre);$t.as(ka.Configuration).registerConfiguration(Object.assign(Object.assign({},e2),{properties:{"editor.codeActionWidget.showHeaders":{type:"boolean",scope:5,description:g("showCodeActionHeaders","Enable/disable showing group headers in the Code Action menu."),default:!0}}}));var BP=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};class Qk{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 H8(o,e,t){return BP(this,void 0,void 0,function*(){const i=o.ordered(e),n=new Map,s=new Qk,r=i.map((a,l)=>BP(this,void 0,void 0,function*(){n.set(a,l);try{const d=yield Promise.resolve(a.provideCodeLenses(e,t));d&&s.add(d,a)}catch(d){Vi(d)}}));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(fe),s=o.get(jt).getModel(t);if(!s)throw Po();const r=[],a=new Z;return H8(n,s,Ye.None).then(l=>{a.add(l);const d=[];for(const c of l.lenses)i==null||c.symbol.command?r.push(c.symbol):i-- >0&&c.provider.resolveCodeLens&&d.push(Promise.resolve(c.provider.resolveCodeLens(s,c.symbol,Ye.None)).then(h=>r.push(h||c.symbol)));return Promise.all(d)}).then(()=>r).finally(()=>{setTimeout(()=>a.dispose(),100)})});var wre=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=function(o,e){return function(t,i){e(t,i,o)}};const z8=Je("ICodeLensCache");class WP{constructor(e,t){this.lineCount=e,this.data=t}}let Xk=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new Xd(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===OC.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 Qk;n.add({lenses:i,dispose:()=>{}},this._fakeProvider);const s=new WP(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 Qk;r.add({lenses:s,dispose(){}},this._fakeProvider),this._cache.set(i,new WP(n.lineCount,r))}}catch{}}};Xk=wre([Sre(0,jo)],Xk);ot(z8,Xk,1);class yre{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 Hw{constructor(e,t){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id=`codelens.widget-${Hw._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{d.symbol.command&&l.push(d.symbol),i.addDecoration({range:d.symbol.range,options:VP},h=>this._decorationIds[c]=h),a?a=y.plusRange(a,d.symbol.range):a=y.lift(d.symbol.range)}),this._viewZone=new yre(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 Hw(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:VP},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=function(o,e){return function(t,i){e(t,i,o)}},Dre=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};let og=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(ch(()=>{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=>H8(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(d=>{!d.isValid()||a===d.getLineNumber()?r.push(d):(d.update(s),a=d.getLineNumber())});const l=new rL;r.forEach(d=>{d.dispose(l,s),this._lenses.splice(this._lenses.indexOf(d),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 rL;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 d=new rL;let c=0,h=0;for(;hthis._resolveCodeLensesInViewportSoon())),c++,h++)}for(;cthis._resolveCodeLensesInViewportSoon())),h++;d.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((d,c)=>{const h=new Array(d.length),u=d.map((f,p)=>!f.symbol.command&&typeof f.provider.resolveCodeLens=="function"?Promise.resolve(f.provider.resolveCodeLens(t,f.symbol,a)).then(m=>{h[p]=m},Vi):(h[p]=f.symbol,Promise.resolve(void 0)));return Promise.all(u).then(()=>{!a.isCancellationRequested&&!n[c].isDisposed()&&n[c].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}};og.ID="css.editor.codeLens";og=Lre([op(1,fe),op(2,Co),op(3,ri),op(4,_i),op(5,z8)],og);lt(og.ID,og,1);J(class extends ce{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:T.hasCodeLensProvider,label:g("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}run(e,t){return Dre(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(og.ID);if(!a)return;const l=a.getModel();if(!l)return;const d=[];for(const h of l.lenses)h.symbol.command&&h.symbol.range.startLineNumber===r&&d.push({label:h.symbol.command.title,command:h.symbol.command});if(d.length===0)return;const c=yield i.pick(d,{canPickMany:!1});if(c){if(l.isDisposed)return yield n.executeCommand(this.id);try{yield n.executeCommand(c.command.id,...c.command.arguments||[])}catch(h){s.error(h)}}})}});function xre(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 zP(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(fe),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(d=>{if(Array.isArray(d))for(const c of d)s.push({range:c.range,color:[c.color.red,c.color.green,c.color.blue,c.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,d]=t,{colorProvider:c}=o.get(fe),h=o.get(jt).getModel(n);if(!h)throw Po();const u={range:s,color:{red:r,green:a,blue:l,alpha:d}},f=[],m=c.ordered(h).reverse().map(_=>Promise.resolve(_.provideColorPresentations(h,u,Ye.None)).then(b=>{Array.isArray(b)&&f.push(...b)}));return Promise.all(m).then(()=>f)});var kre=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},aL=function(o,e){return function(t,i){e(t,i,o)}},Ire=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};const U8=Object.create({});let Ih=class $8 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:$8.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 go,this._timeoutTimer.cancelAndSet(()=>{this._timeoutTimer=null,this.beginCompute()},this._debounceInformation.get(e)))})),this.beginCompute())}beginCompute(){this._computePromise=Wi(e=>Ire(this,void 0,void 0,function*(){const t=this._editor.getModel();if(!t)return Promise.resolve([]);const i=new ts(!1),n=yield xre(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=kre([aL(1,at),aL(2,fe),aL(3,Co)],Ih);lt(Ih.ID,Ih,1);class Ere{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(cr(".codicon.codicon-color-mode"))}}class Tre extends U{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this.domNode=cr(".colorpicker-body"),q(e,this.domNode),this.saturationBox=new Mre(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 Are(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 Rre(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 Mre 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=cr(".saturation-wrap"),q(e,this.domNode),this.canvas=document.createElement("canvas"),this.canvas.className="saturation-box",q(this.domNode,this.canvas),this.selection=cr(".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 Lg);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 j8 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,cr(".strip")),this.overlay=q(this.domNode,cr(".overlay")),this.slider=q(this.domNode,cr(".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 Lg),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 Are extends j8{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 Rre extends j8{constructor(e,t){super(e,t),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}}class Pre extends vo{constructor(e,t,i,n){super(),this.model=t,this.pixelRatio=i,this._register(Pf.onDidChange(()=>this.layout()));const s=cr(".colorpicker-widget");e.appendChild(s);const r=new Nre(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 Ore=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},Fre=function(o,e){return function(t,i){e(t,i,o)}},UP=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};class Bre{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 Jk=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 UP(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 UP(this,void 0,void 0,function*(){const n=e.getValueInRange(t.range),{red:s,green:r,blue:a,alpha:l}=t.color,d=new nt(Math.round(s*255),Math.round(r*255),Math.round(a*255),l),c=new H(d),h=yield zP(e,t,i,Ye.None),u=new Ere(c,[],0);return u.colorPresentations=h||[],u.guessColorPresentation(c,n),new Bre(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 Pre(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 d=()=>{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 f=this._editor.getModel()._setTrackedRange(null,u,3);this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",h),u=this._editor.getModel()._getTrackedRange(f)||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},c=h=>zP(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=>{c(h).then(d)})),i.add(r.onDidChangeColor(c)),i}};Jk=Ore([Fre(1,Hi)],Jk);function eI(o,e){return!!o[e]}class lL{constructor(e,t){this.target=e.target,this.isLeftClick=e.event.leftButton,this.isMiddleClick=e.event.middleButton,this.isRightClick=e.event.rightButton,this.hasTriggerModifier=eI(e.event,t.triggerModifier),this.hasSideBySideModifier=eI(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}}class $P{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=eI(e,t.triggerModifier)}}class bv{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 jP(o){return o==="altKey"?Ke?new bv(57,"metaKey",6,"altKey"):new bv(5,"ctrlKey",6,"altKey"):Ke?new bv(6,"altKey",57,"metaKey"):new bv(6,"altKey",5,"ctrlKey")}class zw 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=jP(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=jP(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 lL(i,this._opts)))),this._register(this._editor.onMouseDown(i=>this._onEditorMouseDown(new lL(i,this._opts)))),this._register(this._editor.onMouseUp(i=>this._onEditorMouseUp(new lL(i,this._opts)))),this._register(this._editor.onKeyDown(i=>this._onEditorKeyDown(new $P(i,this._opts)))),this._register(this._editor.onKeyUp(i=>this._onEditorKeyUp(new $P(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 Wre=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=function(o,e){return function(t,i){e(t,i,o)}};let Bd=class extends Gf{constructor(e,t,i,n,s,r,a,l,d,c,h,u){super(e,Object.assign(Object.assign({},i.getRawOptions()),{overflowWidgetsDomNode:i.getOverflowWidgetsDomNode()}),{},n,s,r,a,l,d,c,h,u),this._parentEditor=i,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(i.onDidChangeConfiguration(f=>this._onParentConfigurationChanged(f)))}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)}};Bd=Wre([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,fe)],Bd);const KP=new H(new nt(0,122,204)),Vre={showArrow:!0,showFrame:!0,className:"",frameColor:KP,arrowColor:KP,keepEditorSelection:!1},Hre="vs.editor.contrib.zoneWidget";class zre{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 Ure{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}class Uw{constructor(e){this._editor=e,this._ruleName=Uw._IdGenerator.nextId(),this._decorations=this._editor.createDecorationsCollection(),this._color=null,this._height=-1}dispose(){this.hide(),UM(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(){UM(this._ruleName),ox(`.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()}}Uw._IdGenerator=new YN(".arrow-decoration-");class $re{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,Vre,!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 Uw(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 d=0,c=0;if(this._arrow&&this.options.showArrow&&(d=Math.round(a/3),this._arrow.height=d,this._arrow.show(i)),this.options.showFrame&&(c=Math.round(a/9)),this.editor.changeViewZones(f=>{this._viewZone&&f.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new zre(r,i.lineNumber,i.column,t,p=>this._onViewZoneTop(p),p=>this._onViewZoneHeight(p)),this._viewZone.id=f.addZone(this._viewZone),this._overlayWidget=new Ure(Hre+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)}),this.container&&this.options.showFrame){const f=this.options.frameWidth?this.options.frameWidth:c;this.container.style.borderTopWidth=f+"px",this.container.style.borderBottomWidth=f+"px"}const h=t*a-this._decoratingElementsHeight();this.container&&(this.container.style.top=d+"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 f=u.validateRange(new y(e.startLineNumber,1,e.endLineNumber+1,1));this.revealRange(f,f.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 gn(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 K8=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=function(o,e){return function(t,i){e(t,i,o)}};const G8=Je("IPeekViewService");ot(G8,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 de("inReferenceSearchEditor",!0,g("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),o.notInPeekEditor=o.inPeekEditor.toNegated()})(ss||(ss={}));let f_=class{constructor(e,t){e instanceof Bd&&ss.inPeekEditor.bindTo(t)}dispose(){}};f_.ID="editor.contrib.referenceController";f_=K8([q8(1,Ee)],f_);lt(f_.ID,f_,0);function jre(o){const e=o.get(ut).getFocusedCodeEditor();return e instanceof Bd?e.getParentEditor():e}const Kre={headerBackgroundColor:H.white,primaryHeadingColor:H.fromHex("#333333"),secondaryHeadingColor:H.fromHex("#6c6c6cb3")};let s1=class extends $re{constructor(e,t,i){super(e,t),this.instantiationService=i,this._onDidClose=new O,this.onDidClose=this._onDidClose.event,B_(this.options,Kre,!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 fo(n,s),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new ms("peekview.close",g("label.close","Close"),De.asClassName(se.close),!0,()=>(this.dispose(),Promise.resolve())),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:Cee.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`)}};s1=K8([q8(2,Me)],s1);const qre=M("peekViewTitle.background",{dark:pe(es,.1),light:pe(es,.1),hcDark:null,hcLight:null},g("peekViewTitleBackground","Background color of the peek view title area.")),Z8=M("peekViewTitleLabel.foreground",{dark:H.white,light:H.black,hcDark:H.white,hcLight:To},g("peekViewTitleForeground","Color of the peek view title.")),Y8=M("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},g("peekViewTitleInfoForeground","Color of the peek view title info.")),Gre=M("peekView.border",{dark:es,light:es,hcDark:Ze,hcLight:Ze},g("peekViewBorder","Color of the peek view borders and arrow.")),Zre=M("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:H.black,hcLight:H.white},g("peekViewResultsBackground","Background color of the peek view result list."));M("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:H.white,hcLight:To},g("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list."));M("peekViewResult.fileForeground",{dark:H.white,light:"#1E1E1E",hcDark:H.white,hcLight:To},g("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list."));M("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},g("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:To},g("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list."));const ld=M("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:H.black,hcLight:H.white},g("peekViewEditorBackground","Background color of the peek view editor."));M("peekViewEditorGutter.background",{dark:ld,light:ld,hcDark:ld,hcLight:ld},g("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor."));M("peekViewEditorStickScroll.background",{dark:ld,light:ld,hcDark:ld,hcLight:ld},g("peekViewEditorStickScrollBackground","Background color of sticky scroll in the peek view editor."));M("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},g("peekViewResultsMatchHighlight","Match highlight color in the peek view result list."));M("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},g("peekViewEditorMatchHighlight","Match highlight color in the peek view editor."));M("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:Pt,hcLight:Pt},g("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."));var Yre=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};class Wd{constructor(e,t,i,n){this.isProviderFirst=e,this.parent=t,this.link=i,this._rangeCallback=n,this.id=p3.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?g({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):g("aria.oneReference","symbol in {0} on line {1} at column {2}",uo(this.uri),this.range.startLineNumber,this.range.startColumn)}}class Qre{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}),d=new y(n,l.startColumn,n,s),c=new y(r,a,r,1073741824),h=i.getValueInRange(d).replace(/^\s+/,""),u=i.getValueInRange(e),f=i.getValueInRange(c).replace(/\s+$/,"");return{value:h+u+f,highlight:{start:h.length,end:h.length+u.length}}}}class g_{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new bn}dispose(){gt(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){const e=this.children.length;return e===1?g("aria.fileReferences.1","1 symbol in {0}, full path {1}",uo(this.uri),this.uri.fsPath):g("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,uo(this.uri),this.uri.fsPath)}resolve(e){return Yre(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 Qre(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 g_(this,s.uri),this.groups.push(n)),n.children.length===0||_s._compareReferences(s,n.children[n.children.length-1])!==0){const r=new Wd(i===s,n,s,a=>this._onDidChangeReferenceRange.fire(a));this.references.push(r),n.children.push(r)}}dispose(){gt(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?g("aria.result.0","No results found"):this.references.length===1?g("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):this.groups.length===1?g("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):g("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 $w=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},jw=function(o,e){return function(t,i){e(t,i,o)}};let tI=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof _s||e instanceof g_}getChildren(e){if(e instanceof _s)return e.groups;if(e instanceof g_)return e.resolve(this._resolverService).then(t=>t.children);throw new Error("bad tree")}};tI=$w([jw(0,os)],tI);class Xre{getHeight(){return 23}getTemplateId(e){return e instanceof g_?p_.id:f0.id}}let iI=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){var t;if(e instanceof Wd){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)}};iI=$w([jw(0,ei)],iI);class Jre{getId(e){return e instanceof Wd?e.id:e.uri}}let nI=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 jC(i,{supportHighlights:!0})),this.badge=new gk(q(i,X(".count")),{},q3),e.appendChild(i)}set(e,t){const i=cw(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(g("referencesCount","{0} references",n)):this.badge.setTitleFormat(g("referenceCount","{0} reference",n))}};nI=$w([jw(1,Qf)],nI);let p_=class Q8{constructor(e){this._instantiationService=e,this.templateId=Q8.id}renderTemplate(e){return this._instantiationService.createInstance(nI,e)}renderElement(e,t,i){i.set(e.element,pw(e.filterData))}disposeTemplate(e){e.dispose()}};p_.id="FileReferencesRenderer";p_=$w([jw(0,Me)],p_);class eae{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,pw(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(s,[r]))}}}class f0{constructor(){this.templateId=f0.id}renderTemplate(e){return new eae(e)}renderElement(e,t,i){i.set(e.element,e.filterData)}disposeTemplate(){}}f0.id="OneReferenceRenderer";class tae{getWidgetAriaLabel(){return g("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}var iae=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=function(o,e){return function(t,i){e(t,i,o)}},qP=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};class Kw{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(sae,"ReferencesWidget",this._treeContainer,new Xre,[this._instantiationService.createInstance(p_),this._instantiationService.createInstance(f0)],this._instantiationService.createInstance(tI),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})}},KC.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)}},KC.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 Wd&&(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=g("noResults","No results"),hs(this._messageContainer),Promise.resolve(void 0)):(On(this._messageContainer),this._decorationsManager=new Kw(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 Wd)return e;if(e instanceof g_&&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(rZ(e.uri),this._uriLabel.getUriLabel(cw(e.uri))):this.setTitle(g("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}gt(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()})}};sI=iae([Va(3,Hi),Va(4,os),Va(5,Me),Va(6,G8),Va(7,Qf),Va(8,hw),Va(9,ei),Va(10,Ut),Va(11,ui)],sI);var oae=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=function(o,e){return function(t,i){e(t,i,o)}},GP=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};const nu=new de("referenceSearchVisible",!1,g("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));let Vd=class oI{static get(e){return e.getContribution(oI.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=nae.fromJSON(this._storageService.get(s,0,"{}"));this._widget=this._instantiationService.createInstance(sI,this._editor,this._defaultTreeKeyboardSupport,r),this._widget.setTitle(g("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:d,kind:c}=l;if(d)switch(c){case"open":(l.source!=="editor"||!this._configurationService.getValue("editor.stablePeek"))&&this.openReference(d,!1,!1);break;case"side":this.openReference(d,!0,!1);break;case"goto":i?this._gotoReference(d,!0):this.openReference(d,!1,!0);break}}));const a=++this._requestIdPool;t.then(l=>{var d;if(a!==this._requestIdPool||!this._widget){l.dispose();return}return(d=this._model)===null||d===void 0||d.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(g("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));const c=this._editor.getModel().uri,h=new W(e.startLineNumber,e.startColumn),u=this._model.nearestReference(c,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 GP(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 GP(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=oI.get(s),l=this._model.clone();this.closeWidget(),s.focus(),a==null||a.toggleWidget(n,Wi(d=>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)}};Vd.ID="editor.contrib.referencesController";Vd=oae([Su(2,Ee),Su(3,ut),Su(4,_i),Su(5,Me),Su(6,jo),Su(7,at)],Vd);function su(o,e){const t=jre(o);if(!t)return;const i=Vd.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:90,primary:62,secondary:[70],when:oe.or(nu,ss.inPeekEditor),handler(o){su(o,e=>{e.goToNextOrPreviousReference(!0)})}});is.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:90,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:-1,primary:9,secondary:[1033],when:oe.and(ss.inPeekEditor,oe.not("config.editor.stablePeek"))});is.registerKeybindingRule({id:"closeReferenceSearch",weight:250,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,C7,C2.negate(),w2.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 Wd&&su(o,n=>n.revealReference(i[0]))}});is.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:oe.and(nu,C7,C2.negate(),w2.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 Wd&&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 Wd&&su(o,n=>n.openReference(i[0],!1,!0))});var X8=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=function(o,e){return function(t,i){e(t,i,o)}};const $2=new de("hasSymbols",!1,g("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),qw=Je("ISymbolNavigationService");let rI=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=$2.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 aI(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 d=!1,c=!1;for(const h of t.references)if(LN(h.uri,a.uri))d=!0,c=c||y.containsPosition(h.range,l);else if(d)break;(!d||!c)&&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?g("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,t.getLabel()):g("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(i)}};rI=X8([Op(0,Ee),Op(1,ut),Op(2,_i),Op(3,ei)],rI);ot(qw,rI,1);ie(new class extends Ji{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:$2,kbOpts:{weight:100,primary:70}})}runEditorCommand(o,e){return o.get(qw).revealNext(e)}});is.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:$2,primary:9,handler(o){o.get(qw).reset()}});let aI=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(),gt(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)}};aI=X8([Op(0,ut)],aI);var j2=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};function g0(o,e,t,i){return j2(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 mg(r.flat())})}function Gw(o,e,t,i){return g0(e,t,o,(n,s,r)=>n.provideDefinition(s,r,i))}function J8(o,e,t,i){return g0(e,t,o,(n,s,r)=>n.provideDeclaration(s,r,i))}function e9(o,e,t,i){return g0(e,t,o,(n,s,r)=>n.provideImplementation(s,r,i))}function t9(o,e,t,i){return g0(e,t,o,(n,s,r)=>n.provideTypeDefinition(s,r,i))}function Zw(o,e,t,i,n){return g0(e,t,o,(s,r,a)=>j2(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 d=yield s.provideReferences(r,a,{includeDeclaration:!1},n);return d&&d.length===1?d:l}))}function p0(o){return j2(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})}Na("_executeDefinitionProvider",(o,e,t)=>{const i=o.get(fe),n=Gw(i.definitionProvider,e,t,Ye.None);return p0(()=>n)});Na("_executeTypeDefinitionProvider",(o,e,t)=>{const i=o.get(fe),n=t9(i.typeDefinitionProvider,e,t,Ye.None);return p0(()=>n)});Na("_executeDeclarationProvider",(o,e,t)=>{const i=o.get(fe),n=J8(i.declarationProvider,e,t,Ye.None);return p0(()=>n)});Na("_executeReferenceProvider",(o,e,t)=>{const i=o.get(fe),n=Zw(i.referenceProvider,e,t,!1,Ye.None);return p0(()=>n)});Na("_executeImplementationProvider",(o,e,t)=>{const i=o.get(fe),n=e9(i.implementationProvider,e,t,Ye.None);return p0(()=>n)});var Fo=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})},dL,cL,hL,uL,fL,gL,pL,mL;Jn.appendMenuItem(N.EditorContext,{submenu:N.EditorContextPeek,title:g("peek.submenu","Peek"),group:"navigation",order:100});class rg{static is(e){return!e||typeof e!="object"?!1:!!(e instanceof rg||W.isIPosition(e.position)&&e.model)}constructor(e,t){this.model=e,this.position=t}}class In extends _${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===N.EditorContext||i.id===N.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(ec),l=e.get(qw),d=e.get(fe),c=e.get(Me),h=t.getModel(),u=t.getPosition(),f=rg.is(i)?i:new rg(h,u),p=new Sh(t,5),m=z1(this._getLocationModel(d,f.model,f.position,p.token),p.token).then(_=>Fo(this,void 0,void 0,function*(){var b;if(!_||p.token.isCancellationRequested)return;dn(_.ariaMessage);let v;if(_.referenceAt(h.uri,u)){const S=this._getAlternativeCommand(t);!In._activeAlternativeCommands.has(S)&&In._allSymbolNavigationCommands.has(S)&&(v=In._allSymbolNavigationCommands.get(S))}const C=_.references.length;if(C===0){if(!this.configuration.muteMessage){const S=h.getWordAtPosition(u);(b=Cs.get(t))===null||b===void 0||b.showMessage(this._getNoResultFoundMessage(S),u)}}else if(C===1&&v)In._activeAlternativeCommands.add(this.desc.id),c.invokeFunction(S=>v.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 Bd)&&(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",d=yield this._openReference(i,e,a,this.configuration.openToSide,!l);l&&d?this._openInPeek(d,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(pV(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(),d=a.createDecorationsCollection([{range:r,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout(()=>{a.getModel()===l&&d.clear()},350)}return a}})}_openInPeek(e,t,i){const n=Vd.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 m0 extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield Gw(e.definitionProvider,t,i,n),g("def.title","Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?g("noResultWord","No definition found for '{0}'",e.word):g("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(55).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(55).multipleDefinitions}}const i9=Kd&&!FE()?2118:70;Nn((dL=class lI extends m0{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:lI.id,title:{value:g("actions.goToDecl.label","Go to Definition"),original:"Go to Definition",mnemonicTitle:g({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},precondition:oe.and(T.hasDefinitionProvider,T.isInWalkThroughSnippet.toNegated()),keybinding:{when:T.editorTextFocus,primary:i9,weight:100},menu:[{id:N.EditorContext,group:"navigation",order:1.1},{id:N.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:2}]}),st.registerCommandAlias("editor.action.goToDeclaration",lI.id)}},dL.id="editor.action.revealDefinition",dL));Nn((cL=class dI extends m0{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:dI.id,title:{value:g("actions.goToDeclToSide.label","Open Definition to the Side"),original:"Open Definition to the Side"},precondition:oe.and(T.hasDefinitionProvider,T.isInWalkThroughSnippet.toNegated()),keybinding:{when:T.editorTextFocus,primary:ki(2089,i9),weight:100}}),st.registerCommandAlias("editor.action.openDeclarationToTheSide",dI.id)}},cL.id="editor.action.revealDefinitionAside",cL));Nn((hL=class cI extends m0{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:cI.id,title:{value:g("actions.previewDecl.label","Peek Definition"),original:"Peek Definition"},precondition:oe.and(T.hasDefinitionProvider,ss.notInPeekEditor,T.isInWalkThroughSnippet.toNegated()),keybinding:{when:T.editorTextFocus,primary:582,linux:{primary:3140},weight:100},menu:{id:N.EditorContextPeek,group:"peek",order:2}}),st.registerCommandAlias("editor.action.previewDeclaration",cI.id)}},hL.id="editor.action.peekDefinition",hL));class n9 extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield J8(e.declarationProvider,t,i,n),g("decl.title","Declarations"))})}_getNoResultFoundMessage(e){return e&&e.word?g("decl.noResultWord","No declaration found for '{0}'",e.word):g("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(55).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(55).multipleDeclarations}}Nn((uL=class s9 extends n9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:s9.id,title:{value:g("actions.goToDeclaration.label","Go to Declaration"),original:"Go to Declaration",mnemonicTitle:g({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},precondition:oe.and(T.hasDeclarationProvider,T.isInWalkThroughSnippet.toNegated()),menu:[{id:N.EditorContext,group:"navigation",order:1.3},{id:N.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}_getNoResultFoundMessage(e){return e&&e.word?g("decl.noResultWord","No declaration found for '{0}'",e.word):g("decl.generic.noResults","No declaration found")}},uL.id="editor.action.revealDeclaration",uL));Nn(class extends n9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",title:{value:g("actions.peekDecl.label","Peek Declaration"),original:"Peek Declaration"},precondition:oe.and(T.hasDeclarationProvider,ss.notInPeekEditor,T.isInWalkThroughSnippet.toNegated()),menu:{id:N.EditorContextPeek,group:"peek",order:3}})}});class o9 extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield t9(e.typeDefinitionProvider,t,i,n),g("typedef.title","Type Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?g("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):g("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(55).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(55).multipleTypeDefinitions}}Nn((fL=class r9 extends o9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:r9.ID,title:{value:g("actions.goToTypeDefinition.label","Go to Type Definition"),original:"Go to Type Definition",mnemonicTitle:g({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},precondition:oe.and(T.hasTypeDefinitionProvider,T.isInWalkThroughSnippet.toNegated()),keybinding:{when:T.editorTextFocus,primary:0,weight:100},menu:[{id:N.EditorContext,group:"navigation",order:1.4},{id:N.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}},fL.ID="editor.action.goToTypeDefinition",fL));Nn((gL=class a9 extends o9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:a9.ID,title:{value:g("actions.peekTypeDefinition.label","Peek Type Definition"),original:"Peek Type Definition"},precondition:oe.and(T.hasTypeDefinitionProvider,ss.notInPeekEditor,T.isInWalkThroughSnippet.toNegated()),menu:{id:N.EditorContextPeek,group:"peek",order:4}})}},gL.ID="editor.action.peekTypeDefinition",gL));class l9 extends In{_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield e9(e.implementationProvider,t,i,n),g("impl.title","Implementations"))})}_getNoResultFoundMessage(e){return e&&e.word?g("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):g("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(55).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(55).multipleImplementations}}Nn((pL=class d9 extends l9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:d9.ID,title:{value:g("actions.goToImplementation.label","Go to Implementations"),original:"Go to Implementations",mnemonicTitle:g({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},precondition:oe.and(T.hasImplementationProvider,T.isInWalkThroughSnippet.toNegated()),keybinding:{when:T.editorTextFocus,primary:2118,weight:100},menu:[{id:N.EditorContext,group:"navigation",order:1.45},{id:N.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:4}]})}},pL.ID="editor.action.goToImplementation",pL));Nn((mL=class c9 extends l9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:c9.ID,title:{value:g("actions.peekImplementation.label","Peek Implementations"),original:"Peek Implementations"},precondition:oe.and(T.hasImplementationProvider,ss.notInPeekEditor,T.isInWalkThroughSnippet.toNegated()),keybinding:{when:T.editorTextFocus,primary:3142,weight:100},menu:{id:N.EditorContextPeek,group:"peek",order:5}})}},mL.ID="editor.action.peekImplementation",mL));class h9 extends In{_getNoResultFoundMessage(e){return e?g("references.no","No references found for '{0}'",e.word):g("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(55).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(55).multipleReferences}}Nn(class extends h9{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",title:{value:g("goToReferences.label","Go to References"),original:"Go to References",mnemonicTitle:g({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},precondition:oe.and(T.hasReferenceProvider,ss.notInPeekEditor,T.isInWalkThroughSnippet.toNegated()),keybinding:{when:T.editorTextFocus,primary:1094,weight:100},menu:[{id:N.EditorContext,group:"navigation",order:1.45},{id:N.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 Zw(e.referenceProvider,t,i,!0,n),g("ref.title","References"))})}});Nn(class extends h9{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",title:{value:g("references.action.label","Peek References"),original:"Peek References"},precondition:oe.and(T.hasReferenceProvider,ss.notInPeekEditor,T.isInWalkThroughSnippet.toNegated()),menu:{id:N.EditorContextPeek,group:"peek",order:6}})}_getLocationModel(e,t,i,n){return Fo(this,void 0,void 0,function*(){return new _s(yield Zw(e.referenceProvider,t,i,!1,n),g("ref.title","References"))})}});class rae extends In{constructor(e,t,i){super(e,{id:"editor.action.goToLocation",title:{value:g("label.generic","Go to Any Symbol"),original:"Go to Any Symbol"},precondition:oe.and(ss.notInPeekEditor,T.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,g("generic.title","Locations"))})}_getNoResultFoundMessage(e){return e&&g("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(d=>{const c=new class extends rae{_getNoResultFoundMessage(h){return s||super._getNoResultFoundMessage(h)}}({muteMessage:!s,openInPeek:!!r,openToSide:!1},i,n);d.get(Me).invokeFunction(c.run.bind(c),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(fe),n=o.get(ut);return n.openCodeEditor({resource:e},n.getFocusedCodeEditor()).then(s=>{if(!La(s)||!s.hasModel())return;const r=Vd.get(s);if(!r)return;const a=Wi(d=>Zw(i.referenceProvider,s.getModel(),W.lift(t),!1,d).then(c=>new _s(c,g("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 aae=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},_L=function(o,e){return function(t,i){e(t,i,o)}},ZP=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};let Eh=class pb{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 zw(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(pb.ID)}startFindDefinitionFromCursor(e){return ZP(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 ZP(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 H7(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(g("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:d}}=l,{startLineNumber:c}=a.range;if(c<1||c>d.getLineCount()){l.dispose();return}const h=this.getPreviewValue(d,c,a),u=this.languageService.guessLanguageIdByFilepathOrFirstLine(d.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>=pb.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 m0({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=aae([_L(1,os),_L(2,Ut),_L(3,fe)],Eh);lt(Eh.ID,Eh,2);const Cv=X;class u9 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 K2 extends U{static render(e,t,i){return new K2(e,t,i)}constructor(e,t,i){super(),this.actionContainer=q(e,Cv("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=q(this.actionContainer,Cv("a.action")),this.action.setAttribute("role","button"),t.iconClass&&q(this.action,Cv(`span.icon.${t.iconClass}`));const n=q(this.action,Cv("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 Tt(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 lae=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})},dae=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(d){s({value:d,done:a})},r)}};let cae=class{constructor(e,t,i){this.value=e,this.isComplete=t,this.hasLoadingMessage=i}};class f9 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=VH(e=>this._computer.computeAsync(e)),lae(this,void 0,void 0,function*(){var e,t,i,n;try{try{for(var s=!0,r=dae(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 mb{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 Mg{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 d of a)d.parent=l,r(d.children,d)}(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 _0)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}}class Fn extends Mg{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new Fn(this.value)}}class g9 extends Mg{}class Xs extends g9{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 Ag?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 Ag extends Mg{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 Ag;return this.options.forEach(e.appendChild,e),e}}class q2 extends Mg{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 q2;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 Mg{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 g9{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 YP(o,e){const t=[...o];for(;t.length>0;){const i=t.shift();if(!e(i))break;t.unshift(...i.children)}}class _0 extends Mg{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 YP([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 _0;return this._children=this.children.map(t=>t.clone()),e}walk(e){YP(this.children,e)}}class Hd{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 _0;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,d)=>{const c=n.get(l.index);if(!c)return;const h=new Xs(l.index);h.transform=l.transform;for(const u of c){const f=u.clone();h.appendChild(f),f instanceof Xs&&n.has(f.index)&&!d.has(f.index)&&(d.add(f.index),r(f,d),d.delete(f.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 Ag;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 q2;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 hae=g("defaultLabel","input"),uae=g("label.preserveCaseToggle","Preserve Case");class fae extends Eg{constructor(e){super({icon:se.preserveCase,title:uae+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class gae extends vo{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||hae;const s=n.appendPreserveCaseLabel||"",r=n.history||[],a=!!n.flexibleHeight,l=!!n.flexibleWidth,d=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new a7(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},history:r,showHistoryHint:n.showHistoryHint,flexibleHeight:a,flexibleWidth:l,flexibleMaxHeight:d,inputBoxStyles:n.inputBoxStyles})),this.preserveCase=this._register(new fae(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 c=[this.preserveCase.domNode];this.onkeydown(this.domNode,u=>{if(u.equals(15)||u.equals(17)||u.equals(9)){const f=c.indexOf(document.activeElement);if(f>=0){let p=-1;u.equals(17)?p=(f+1)%c.length:u.equals(15)&&(f===0?p=c.length-1:p=f-1),u.equals(9)?(c[f].blur(),this.inputBox.focus()):p>=0&&c[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 p9=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},m9=function(o,e){return function(t,i){e(t,i,o)}};const G2=new de("suggestWidgetVisible",!1,g("suggestWidgetVisible","Whether suggestion are visible")),Z2="historyNavigationWidgetFocus",_9="historyNavigationForwardsEnabled",v9="historyNavigationBackwardsEnabled";let ml;const wv=[];function b9(o,e){if(wv.includes(e))throw new Error("Cannot register the same widget multiple times");wv.push(e);const t=new Z,i=new de(Z2,!1).bindTo(o),n=new de(_9,!0).bindTo(o),s=new de(v9,!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(()=>{wv.splice(wv.indexOf(e),1),a()})),{historyNavigationForwardsEnablement:n,historyNavigationBackwardsEnablement:s,dispose(){t.dispose()}}}let hI=class extends l7{constructor(e,t,i,n){super(e,t,i);const s=this._register(n.createScoped(this.inputBox.element));this._register(b9(s,this.inputBox))}};hI=p9([m9(3,Ee)],hI);let uI=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(b9(r,this.inputBox))}};uI=p9([m9(3,Ee)],uI);is.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:oe.and(oe.has(Z2),oe.equals(v9,!0),G2.isEqualTo(!1)),primary:16,secondary:[528],handler:o=>{ml==null||ml.showPreviousValue()}});is.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:oe.and(oe.has(Z2),oe.equals(_9,!0),G2.isEqualTo(!1)),primary:18,secondary:[530],handler:o=>{ml==null||ml.showNextValue()}});var fm=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};const Ge={Visible:G2,HasFocusedSuggestion:new de("suggestWidgetHasFocusedSuggestion",!1,g("suggestWidgetHasSelection","Whether any suggestion is focused")),DetailsVisible:new de("suggestWidgetDetailsVisible",!1,g("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new de("suggestWidgetMultipleSuggestions",!1,g("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new de("suggestionMakesTextEdit",!0,g("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new de("acceptSuggestionOnEnter",!0,g("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new de("suggestionHasInsertAndReplaceRange",!1,g("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new de("suggestionInsertMode",void 0,{type:"string",description:g("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new de("suggestionCanResolve",!1,g("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},wd=new N("suggestWidgetStatusBar");class pae{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 fm(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 mae;function _ae(){return mae}class vae{constructor(e,t,i,n){this.items=e,this.needsClipboard=t,this.durations=i,this.disposable=n}}function Y2(o,e,t,i=__.default,n={triggerKind:0},s=Ye.None){return fm(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),d={replace:l,insert:l.setEndPosition(t.lineNumber,t.column)},c=[],h=new Z,u=[];let f=!1;const p=(_,b,v)=>{var C,S,x;let E=!1;if(!b)return E;for(const L of b.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=d),L.sortText||(L.sortText=typeof L.label=="string"?L.label:L.label.label),!f&&L.insertTextRules&&L.insertTextRules&4&&(f=Hd.guessNeedsClipboard(L.insertText)),c.push(new pae(t,L,b,_)),E=!0}return CE(b)&&h.add(b),u.push({providerName:(S=_._debugDisplayName)!==null&&S!==void 0?S:"unknown_provider",elapsedProvider:(x=b.duration)!==null&&x!==void 0?x:-1,elapsedOverall:v.elapsed()}),E},m=fm(this,void 0,void 0,function*(){});for(const _ of o.orderedGroups(e)){let b=!1;if(yield Promise.all(_.map(v=>fm(this,void 0,void 0,function*(){if(i.providerItemsToReuse.has(v)){const C=i.providerItemsToReuse.get(v);C.forEach(S=>c.push(S)),b=b||C.length>0;return}if(!(i.providerFilter.size>0&&!i.providerFilter.has(v)))try{const C=new ts(!0),S=yield v.provideCompletionItems(e,t,n,s);b=p(v,S,C)||b}catch(C){Vi(C)}}))),b||s.isCancellationRequested)break}return yield m,s.isCancellationRequested?(h.dispose(),Promise.reject(new qd)):new vae(c.sort(wae(i.snippetSortOrder)),f,{entries:u,elapsed:r.elapsed()},h)})}function Q2(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 Q2(o,e)}function Cae(o,e){if(o.completion.kind!==e.completion.kind){if(o.completion.kind===27)return 1;if(e.completion.kind===27)return-1}return Q2(o,e)}const Yw=new Map;Yw.set(0,bae);Yw.set(2,Cae);Yw.set(1,Q2);function wae(o){return Yw.get(o)}st.registerCommand("_executeCompletionItemProvider",(o,...e)=>fm(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(fe),a=yield o.get(os).createModelReference(t);try{const l={incomplete:!1,suggestions:[]},d=[],c=yield Y2(r,a.object.textEditorModel,W.lift(i),void 0,{triggerCharacter:n??void 0,triggerKind:n?1:0});for(const h of c.items)d.length<(s??0)&&d.push(h.resolve(Ye.None)),l.incomplete=l.incomplete||h.container.incomplete,l.suggestions.push(h.completion);try{return yield Promise.all(d),l}finally{setTimeout(()=>c.disposable.dispose(),100)}}finally{a.dispose()}}));function Sae(o,e){var t;(t=o.getContribution("editor.contrib.suggestController"))===null||t===void 0||t.triggerSuggest(new Set().add(e),void 0,!0)}class of{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 X2=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},o1=function(o,e){return function(t,i){e(t,i,o)}};const QP=X;let r1=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 a1(this._editor,this._participants),this._hoverOperation=this._register(new f9(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 C9(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 gI(this._keybindingService)),l=document.createDocumentFragment();let d=null;const c={fragment:l,statusBar:a,setColorPicker:u=>d=u,onContentsChanged:()=>this._widget.onContentsChanged(),hide:()=>this.hide()};for(const u of this._participants){const f=t.filter(p=>p.owner===u);f.length>0&&r.add(u.renderHoverParts(c,f))}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 Lae(d,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 d=e._getViewModel(),c=d.coordinatesConverter,h=c.convertModelRangeToViewRange(t),u=new W(h.startLineNumber,d.getLineMinColumn(h.startLineNumber));n=c.convertViewPositionToModelPosition(u).column}const s=t.startLineNumber;let r=t.startColumn,a=i[0].range,l=null;for(const d of i)a=y.plusRange(a,d.range),d.range.startLineNumber===s&&d.range.endLineNumber===s&&(r=Math.max(Math.min(r,d.range.startColumn),n)),d.forceShowAtRange&&(l=d.range);return{showAtPosition:l?l.getStartPosition():new W(s,t.startColumn),showAtSecondaryPosition:l?l.getStartPosition():new W(s,r),highlightRange:a}}};r1._DECORATION_OPTIONS=Re.register({description:"content-hover-highlight",className:"hoverHighlight"});r1=X2([o1(1,Me),o1(2,ei)],r1);class C9{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 yae(this,this.anchor,t,this.isComplete)}}class yae extends C9{constructor(e,t,i,n){super(t,i,n),this.original=e}filter(e){return this.original.filter(e)}}class Lae{constructor(e,t,i,n,s,r,a,l,d,c){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=d,this.disposables=c,this.closestMouseDistance=void 0}}let ih=class w9 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=T.hoverVisible.bindTo(this._contextKeyService),this._hover=this._register(new u9),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 w9.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=XP(this._visibleData.initialMousePosX,this._visibleData.initialMousePosY,i.left,i.top,i.width,i.height));const n=XP(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=X2([o1(1,Ee)],ih);let gI=class extends U{get hasContent(){return this._hasContent}constructor(e){super(),this._keybindingService=e,this._hasContent=!1,this.hoverElement=QP("div.hover-row.status-bar"),this.actionsElement=q(this.hoverElement,QP("div.actions"))}addAction(e){const t=this._keybindingService.lookupKeybinding(e.commandId),i=t?t.getLabel():null;return this._hasContent=!0,this._register(K2.render(this.actionsElement,e,i))}append(e){const t=q(this.actionsElement,e);return this._hasContent=!0,t}};gI=X2([o1(0,ei)],gI);class a1{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=a1._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=a1._getLineDecorations(this._editor,this._anchor);let t=[];for(const i of this._participants)t=t.concat(i.computeSync(this._anchor,e));return mg(t)}}function XP(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),d=Math.max(Math.abs(e-a)-s/2,0);return Math.sqrt(l*l+d*d)}var Dae=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},JP=function(o,e){return function(t,i){e(t,i,o)}},S9=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})},bL;let Ll=class y9{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(m3(e,Object.assign(Object.assign({},this._getRenderOptions(e,n)),t),i)).element,dispose:()=>n.dispose()}}_getRenderOptions(e,t){return{codeBlockRenderer:(i,n)=>S9(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 d=yield LY(this._languageService,n,l),c=document.createElement("span");if(c.innerHTML=(a=(r=y9._ttpTokenizer)===null||r===void 0?void 0:r.createHTML(d))!==null&&a!==void 0?a:d,this._options.editor){const h=this._options.editor.getOption(47);Yi(c,h)}else this._options.codeBlockFontFamily&&(c.style.fontFamily=this._options.codeBlockFontFamily);return this._options.codeBlockFontSize!==void 0&&(c.style.fontSize=this._options.codeBlockFontSize),c}),asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:i=>xae(this._openerService,i,e.isTrusted),disposables:t}}}};Ll._ttpTokenizer=(bL=window.trustedTypes)===null||bL===void 0?void 0:bL.createPolicy("tokenizeToString",{createHTML(o){return o}});Ll=Dae([JP(1,Ut),JP(2,bo)],Ll);function xae(o,e,t){return S9(this,void 0,void 0,function*(){try{return yield o.open(e,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:kae(t)})}catch(i){return Oe(i),!1}})}function kae(o){return o===!0?!0:o&&Array.isArray(o.enabledCommands)?o.enabledCommands:!1}const eO=X;class kf 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 u9),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new Ll({editor:this._editor},t,i)),this._computer=new Iae(this._editor),this._hoverOperation=this._register(new f9(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 kf.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=eO("div.hover-row.markdown-hover"),r=q(s,eO("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`}}kf.ID="editor.contrib.modesGlyphHoverWidget";class Iae{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||Yf(s)||i.push(...vE(s).map(e))}return i}}var Eae=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};class Nae{constructor(e,t,i){this.provider=e,this.hover=t,this.ordinal=i}}function Tae(o,e,t,i,n){return Eae(this,void 0,void 0,function*(){try{const s=yield Promise.resolve(o.provideHover(t,i,n));if(s&&Aae(s))return new Nae(o,s,e)}catch(s){Vi(s)}})}function J2(o,e,t,i){const s=o.ordered(e).map((r,a)=>Tae(r,a,e,t,i));return pi.fromPromises(s).coalesce()}function Mae(o,e,t,i){return J2(o,e,t,i).map(n=>n.hover).toPromise()}Na("_executeHoverProvider",(o,e,t)=>{const i=o.get(fe);return Mae(i.hoverProvider,e,t,Ye.None)});function Aae(o){const e=typeof o.range<"u",t=typeof o.contents<"u"&&o.contents&&o.contents.length>0;return e&&t}var Rae=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},Sv=function(o,e){return function(t,i){e(t,i,o)}};const tO=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 l1=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(g("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),d=i.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),c=this._editor.getOption(111),h=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:d});let u=!1;c>=0&&l>c&&e.range.startColumn>=c&&(u=!0,r.push(new rr(this,e.range,[{value:g("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:g("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],!1,a++));let f=!1;for(const p of t){const m=p.range.startLineNumber===n?p.range.startColumn:1,_=p.range.endLineNumber===n?p.range.endColumn:s,b=p.options.hoverMessage;if(!b||Yf(b))continue;p.options.beforeContentClassName&&(f=!0);const v=new y(e.range.startLineNumber,m,e.range.startLineNumber,_);r.push(new rr(this,v,vE(b),f,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 J2(this._languageFeaturesService.hoverProvider,n,s,i).filter(r=>!Yf(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 L9(e,t,this._editor,this._languageService,this._openerService)}};l1=Rae([Sv(1,Ut),Sv(2,bo),Sv(3,at),Sv(4,fe)],l1);function L9(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(Yf(a))continue;const l=tO("div.hover-row.markdown-hover"),d=q(l,tO("div.hover-contents")),c=s.add(new Ll({editor:t},i,n));s.add(c.onDidRenderAsync(()=>{d.className="hover-contents code-hover-contents",o.onContentsChanged()}));const h=s.add(c.render(a));d.appendChild(h.element),o.fragment.appendChild(l)}return s}var D9=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=function(o,e){return function(t,i){e(t,i,o)}};class iO{constructor(e,t,i){this.marker=e,this.index=t,this.total=i}}let pI=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 d=Sm(a.resource.toString(),l.resource.toString());return d===0&&(n==="position"?d=y.compareRangesUsingStarts(a,l)||qt.compare(a.severity,l.severity):d=qt.compare(a.severity,l.severity)||y.compareRangesUsingStarts(a,l)),d},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 iO(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=vm(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=function(o,e){return function(t,i){e(t,i,o)}};class Oae{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 h5(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(){gt(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 f=document.createElement("span");f.innerText=t,f.classList.add("source"),u.appendChild(f)}if(s)if(typeof s=="string"){const f=document.createElement("span");f.innerText=`(${s})`,f.classList.add("code"),u.appendChild(f)}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 f=q(this._codeLink,X("span"));f.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 f of n){const p=document.createElement("div"),m=document.createElement("a");m.classList.add("filename"),m.innerText=`${this._labelService.getUriBasenameLabel(f.resource)}(${f.startLineNumber}, ${f.startColumn}): `,m.title=this._labelService.getUriLabel(f.resource),this._relatedDiagnostics.set(m,f);const _=document.createElement("span");_.innerText=f.message,p.appendChild(m),p.appendChild(_),this._lines+=1,u.appendChild(p)}}const d=this._editor.getOption(47),c=Math.ceil(d.typicalFullwidthCharacterWidth*this._longestLineLength*.75),h=d.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:c,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=g("Error","Error");break;case qt.Warning:t=g("Warning","Warning");break;case qt.Info:t=g("Info","Info");break;case qt.Hint:t=g("Hint","Hint");break}let i=g("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 ag=class k9 extends s1{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(Vae);let t=vI,i=Fae;this._severity===qt.Warning?(t=_b,i=Bae):this._severity===qt.Info&&(t=bI,i=Wae);const n=e.getColor(t),s=e.getColor(i);this.style({arrowColor:n,frameColor:n,headerBackgroundColor:s,primaryHeadingColor:e.getColor(Z8),secondaryHeadingColor:e.getColor(Y8)})}_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(k9.TitleMenu,this._contextKeyService);Z3(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 Oae(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?g("problems","{0} of {1} problems",t,i):g("change","{0} of {1} problem",t,i);this.setTitle(uo(a.uri),l)}this._icon.className=`codicon ${_I.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()}};ag.TitleMenu=new N("gotoErrorTitleMenu");ag=Pae([yu(1,Hi),yu(2,bo),yu(3,Ea),yu(4,Me),yu(5,Ee),yu(6,Qf)],ag);const nO=Am(ia,tj),sO=Am(Fs,Mm),oO=Am(es,ux),vI=M("editorMarkerNavigationError.background",{dark:nO,light:nO,hcDark:Ze,hcLight:Ze},g("editorMarkerNavigationError","Editor marker navigation widget error color.")),Fae=M("editorMarkerNavigationError.headerBackground",{dark:pe(vI,.1),light:pe(vI,.1),hcDark:null,hcLight:null},g("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),_b=M("editorMarkerNavigationWarning.background",{dark:sO,light:sO,hcDark:Ze,hcLight:Ze},g("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),Bae=M("editorMarkerNavigationWarning.headerBackground",{dark:pe(_b,.1),light:pe(_b,.1),hcDark:"#0C141F",hcLight:pe(_b,.2)},g("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),bI=M("editorMarkerNavigationInfo.background",{dark:oO,light:oO,hcDark:Ze,hcLight:Ze},g("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),Wae=M("editorMarkerNavigationInfo.headerBackground",{dark:pe(bI,.1),light:pe(bI,.1),hcDark:null,hcLight:null},g("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),Vae=M("editorMarkerNavigation.background",{dark:Ni,light:Ni,hcDark:Ni,hcLight:Ni},g("editorMarkerNavigationBackground","Editor marker navigation widget background."));var Hae=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},yv=function(o,e){return function(t,i){e(t,i,o)}},I9=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};let zd=class vb{static get(e){return e.getContribution(vb.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=E9.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(ag,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 I9(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=vb.get(r))===null||i===void 0||i.close(),(n=vb.get(r))===null||n===void 0||n.nagivate(e,t))}else this._widget.showAtMarker(s.selected.marker,s.selected.index,s.selected.total)}})}};zd.ID="editor.contrib.markerController";zd=Hae([yv(1,x9),yv(2,Ee),yv(3,ut),yv(4,Me)],zd);class Qw extends ce{constructor(e,t,i){super(i),this._next=e,this._multiFile=t}run(e,t){var i;return I9(this,void 0,void 0,function*(){t.hasModel()&&((i=zd.get(t))===null||i===void 0||i.nagivate(this._next,this._multiFile))})}}class Sd extends Qw{constructor(){super(!0,!1,{id:Sd.ID,label:Sd.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:T.focus,primary:578,weight:100},menuOpts:{menuId:ag.TitleMenu,title:Sd.LABEL,icon:fi("marker-navigation-next",se.arrowDown,g("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}}Sd.ID="editor.action.marker.next";Sd.LABEL=g("markerAction.next.label","Go to Next Problem (Error, Warning, Info)");class nh extends Qw{constructor(){super(!1,!1,{id:nh.ID,label:nh.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:T.focus,primary:1602,weight:100},menuOpts:{menuId:ag.TitleMenu,title:nh.LABEL,icon:fi("marker-navigation-previous",se.arrowUp,g("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}}nh.ID="editor.action.marker.prev";nh.LABEL=g("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)");class zae extends Qw{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:g("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:T.focus,primary:66,weight:100},menuOpts:{menuId:N.MenubarGoMenu,title:g({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}}class Uae extends Qw{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:g("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:T.focus,primary:1090,weight:100},menuOpts:{menuId:N.MenubarGoMenu,title:g({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}}lt(zd.ID,zd,4);J(Sd);J(nh);J(zae);J(Uae);const E9=new de("markersNavigationVisible",!1),$ae=Ji.bindToContribution(zd.get);ie(new $ae({id:"closeMarkersNavigation",precondition:E9,handler:o=>o.close(),kbOpts:{weight:150,kbExpr:T.focus,primary:9,secondary:[1033]}}));var jae=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},CL=function(o,e){return function(t,i){e(t,i,o)}};const yo=X;class Kae{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 rO={type:1,filter:{include:Ne.QuickFix},triggerAction:ns.QuickFixHover};let CI=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,d=a.range.endLineNumber===n?a.range.endColumn:s,c=this._markerDecorationsService.getMarker(i.uri,a);if(!c)continue;const h=new y(e.range.startLineNumber,l,e.range.startLineNumber,d);r.push(new Kae(this,h,c))}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 d=q(n,yo("span"));if(d.style.whiteSpace="pre-wrap",d.innerText=r,s||a)if(a&&typeof a!="string"){const c=yo("span");if(s){const p=q(c,yo("span"));p.innerText=s}const h=q(c,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 f=q(n,c);f.style.opacity="0.6",f.style.paddingLeft="6px"}else{const c=q(n,yo("span"));c.style.opacity="0.6",c.style.paddingLeft="6px",c.innerText=s&&a?`${s}(${a})`:s||`(${a})`}if(Cn(l))for(const{message:c,resource:h,startLineNumber:u,startColumn:f}of l){const p=q(n,yo("div"));p.style.marginTop="8px";const m=q(p,yo("a"));m.innerText=`${uo(h)}(${u}, ${f}): `,m.style.cursor="pointer",t.add(K(m,"click",b=>{b.stopPropagation(),b.preventDefault(),this._openerService&&this._openerService.open(h,{fromUserGesture:!0,editorOptions:{selection:{startLineNumber:u,startColumn:f}}}).catch(Oe)}));const _=q(p,yo("span"));_.innerText=c,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:g("view problem","View Problem"),commandId:Sd.ID,run:()=>{var n;e.hide(),(n=zd.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&&(zC.makeKey(this.recentMarkerCodeActionsInfo.marker)===zC.makeKey(t.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(n.textContent=g("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);const s=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?U.None:i.add(ch(()=>n.textContent=g("checkingForQuickFixes","Checking for quick fixes..."),200));n.textContent||(n.textContent=" ");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=g("noQuickFixes","No quick fixes available");return}n.style.display="none";let l=!1;i.add(Pe(()=>{l||a.dispose()})),e.statusBar.addAction({label:g("quick fixes","Quick Fix..."),commandId:Tg.Id,run:d=>{l=!0;const c=kh.get(this._editor),h=Fi(d);e.hide(),c==null||c.showCodeActions(rO,a,{x:h.left+6,y:h.top+h.height+6,width:h.width,height:h.height})}})},Oe)}}getCodeActions(e){return Wi(t=>U2(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new y(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),rO,Qh.None,t))}};CI=jae([CL(1,tN),CL(2,bo),CL(3,fe)],CI);const N9="editor.action.inlineSuggest.commit",T9="editor.action.inlineSuggest.showPrevious",M9="editor.action.inlineSuggest.showNext";var qae=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};class Gae extends U{constructor(e,t,i={orientation:0}){super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new jW),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=new Z,this.options=i,this.lookupKeybindings=typeof this.options.getKeyBinding=="function",this.toggleMenuAction=this._register(new v_(()=>{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 fo(this.element,{orientation:i.orientation,ariaLabel:i.ariaLabel,actionRunner:i.actionRunner,allowContextMenu:i.allowContextMenu,actionViewItemProvider:(n,s)=>{var r;if(n.id===v_.ID)return this.toggleMenuActionViewItem=new PC(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 zf){const a=new PC(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 v_ extends ms{constructor(e,t){t=t||g("moreActions","More Actions..."),super(v_.ID,t,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=e}run(){return qae(this,void 0,void 0,function*(){this.toggleDropdownMenu()})}get menuActions(){return this._menuActions}set menuActions(e){this._menuActions=e}}v_.ID="toolbar.toggle.more";var Zae=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=function(o,e){return function(t,i){e(t,i,o)}};let wI=class extends Gae{constructor(e,t,i,n,s,r,a){super(e,s,Object.assign(Object.assign({getKeyBinding:l=>{var d;return(d=r.lookupKeybinding(l.id))!==null&&d!==void 0?d: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(),d=[];let c=0;const h=[];let u=!1;if(((n=this._options)===null||n===void 0?void 0:n.hiddenItemStrategy)!==-1)for(let f=0;f=this._options.maxNumberOfItems&&(a[p]=void 0,h[p]=m)}}NT(a),NT(h),super.setActions(a,Bi.join(h,l)),d.length>0&&this._sessionDisposables.add(K(this.getElement(),"contextmenu",f=>{var p,m,_,b;const v=this.getItemAction(f.target);if(!v)return;f.preventDefault(),f.stopPropagation();let C=!1;if(c===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:()=>f,getActions:()=>x,menuId:(_=this._options)===null||_===void 0?void 0:_.contextMenu,menuActionOptions:Object.assign({renderShortTitle:!0},(b=this._options)===null||b===void 0?void 0:b.menuOptions),contextKeyService:this._contextKeyService})}))}};wI=Zae([rp(2,Ea),rp(3,Ee),rp(4,xr),rp(5,ei),rp(6,mo)],wI);var A9=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=function(o,e){return function(t,i){e(t,i,o)}};const Yae=fi("inline-suggestion-hints-next",se.chevronRight,g("parameterHintsNextIcon","Icon for show next parameter hint.")),Qae=fi("inline-suggestion-hints-previous",se.chevronLeft,g("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let Nh=class SI 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=g({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${SI.id++}`,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=bp("div.inlineSuggestionsHints",{className:this.withBorder?".withBorder":""},[bp("div",{style:{display:"flex"}},[bp("div@actionBar",{className:"custom-actions"}),bp("div@toolBar")])]),this.position=null,this.previousAction=this.createCommandAction(T9,g("previous","Previous"),De.asClassName(Qae)),this.availableSuggestionCountAction=new ms("inlineSuggestionHints.availableSuggestionCount","",void 0,!1),this.nextAction=this.createCommandAction(M9,g("next","Next"),De.asClassName(Yae)),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(N.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 fo(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(yI,this.nodes.toolBar,N.InlineSuggestionToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:d=>d.startsWith("primary")},actionViewItemProvider:(d,c)=>d instanceof Vo?n.createInstance(Xae,d,void 0):void 0,telemetrySource:"InlineSuggestionToolbar"})),this._register(this.toolBar.onDidChangeDropdownVisibility(d=>{SI._dropDownVisible=d}))}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}}};Nh._dropDownVisible=!1;Nh.id=0;Nh=A9([Qr(2,ri),Qr(3,Me),Qr(4,ei),Qr(5,Ee),Qr(6,Ea)],Nh);let Xae=class extends vh{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=bp("div.keybinding").root;new n0(t,Ps,{disableTitle:!0}).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineSuggestionStatusBarItemLabel")}}},yI=class extends wI{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=[],d=[];Z3(this.menu,(e=this.options2)===null||e===void 0?void 0:e.menuOptions,{primary:l,secondary:d},(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),d.push(...this.additionalActions),this.setActions(l,d)}setAdditionalSecondaryActions(e){this.additionalActions=e,this.updateToolbar()}};yI=A9([Qr(3,Ea),Qr(4,Ee),Qr(5,xr),Qr(6,ei),Qr(7,mo)],yI);var Jae=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},Lv=function(o,e){return function(t,i){e(t,i,o)}};let Ud=class R9{static get(e){return e.getContribution(R9.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===kf.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===kf.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 kf(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())||Nh.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(r1,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()}};Ud.ID="editor.contrib.hover";Ud=Jae([Lv(1,Me),Lv(2,bo),Lv(3,Ut),Lv(4,Ee)],Ud);class ele extends ce{constructor(){super({id:"editor.action.showHover",label:g({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:T.editorTextFocus,primary:ki(2089,2087),weight:100}})}run(e,t){if(!t.hasModel())return;const i=Ud.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 tle extends ce{constructor(){super({id:"editor.action.showDefinitionPreviewHover",label:g({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=Ud.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(Ud.ID,Ud,2);J(ele);J(tle);ou.register(l1);ou.register(CI);Ho((o,e)=>{const t=o.getColor(mj);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 LI 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!==U8||!t.range)return;const i=this._editor.getContribution(Ud.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)}}}LI.ID="editor.contrib.colorContribution";lt(LI.ID,LI,2);ou.register(Jk);const Xw=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;nP9(this,void 0,void 0,function*(){return o}),asFile:()=>{},value:typeof o=="string"?o:void 0}}function ile(o,e,t){return{id:Xw(),asString:()=>P9(this,void 0,void 0,function*(){return""}),asFile:()=>({name:o,uri:e,data:t}),value:void 0}}class O9{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 Jw=Object.freeze({create:o=>Dd(o.map(e=>e.toString())).join(`\r `),split:o=>o.split(`\r `),parse:o=>Jw.split(o).filter(e=>!e.startsWith("#"))}),c1={EDITORS:"CodeEditors",FILES:"CodeFiles"};function nle(o){var e;const t=[];if(o.dataTransfer&&o.dataTransfer.types.length>0){const s=o.dataTransfer.getData(c1.EDITORS);if(s)try{t.push(...yC(s))}catch{}else try{const l=o.dataTransfer.getData(J_.RESOURCES);t.push(...sle(l))}catch{}if(!((e=o.dataTransfer)===null||e===void 0)&&e.files)for(let l=0;l0){const{selection:n,uri:s}=V3(Ce.parse(i));e.push({resource:s,options:{selection:n}})}}return e}class ole{constructor(){this._contributions=new Map}getAll(){return this._contributions.values()}}const F9={DragAndDropContribution:"workbench.contributions.dragAndDrop"};$t.add(F9.DragAndDropContribution,new ole);var rle=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};function DI(o){const e=new O9;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,eT(n))}else if(t.kind==="file"){const n=t.getAsFile();n&&e.append(i,ale(n))}}return e}function ale(o){const e=o.path?Ce.parse(o.path):void 0;return ile(o.name,e,()=>rle(this,void 0,void 0,function*(){return new Uint8Array(yield o.arrayBuffer())}))}const lle=Object.freeze([c1.EDITORS,c1.FILES,J_.RESOURCES]);function dle(o,e,t=!1){var i;if(e.dataTransfer&&(t||!o.has(Qn.uriList))){const n=nle(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,eT(Jw.create(n)))}for(const n of lle)o.delete(n)}var cle=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=function(o,e){return function(t,i){e(t,i,o)}},Dv=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((i=i.apply(o,e||[])).next())})};const wL="application/vnd.code.copyMetadata";let b_=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 d=DI(e.clipboardData),c=Xw();this.setCopyMetadata(e.clipboardData,{id:c,wasFromEmptySelection:a});const h=Wi(u=>Dv(this,void 0,void 0,function*(){const f=yield Promise.all(l.map(p=>p.prepareDocumentPaste(i,s,d,u)));for(const p of f)p==null||p.forEach((m,_)=>{d.replace(_,m)});return d}));(t=this._currentClipboardItem)===null||t===void 0||t.dataTransferPromise.cancel(),this._currentClipboardItem={handle:c,dataTransferPromise:h}}setCopyMetadata(e,t){e.setData(wL,JSON.stringify(t))}handlePaste(e){var t,i,n,s;return Dv(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 d=(t=e.clipboardData)===null||t===void 0?void 0:t.getData(wL);d&&typeof d=="string"&&(l=JSON.parse(d));const c=this._languageFeaturesService.documentPasteEditProvider.ordered(a);if(!c.length)return;e.preventDefault(),e.stopImmediatePropagation();const h=new Sh(this._editor,3);try{const u=DI(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,eT(Jw.create(p)))}u.delete(wL);const f=yield this._progressService.withProgress({location:15,delay:750,title:g("pasteProgressTitle","Running paste handlers..."),cancellable:!0},()=>this.getProviderPasteEdit(c,u,a,r,h.token),()=>h.cancel());if(h.token.isCancellationRequested)return;if(f){const p=typeof f.insertText=="string"?Hd.escape(f.insertText):f.insertText.snippet,m={edits:[new gl(a.uri,{range:ue.liftSelection(this._editor.getSelection()),text:p,insertAsSnippet:!0}),...(s=(n=f.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 z1(Dv(this,void 0,void 0,function*(){for(const r of e){if(s.isCancellationRequested)return;if(!hle(r,t))continue;const a=yield r.provideDocumentPasteEdits(i,n,t,s);if(a)return a}}),s)}applyDefaultPasteHandler(e,t,i){var n;return Dv(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})})}};b_.ID="editor.contrib.copyPasteActionController";b_=cle([ap(1,i0),ap(2,Dl),ap(3,at),ap(4,fe),ap(5,QN)],b_);function hle(o,e){return o.pasteMimeTypes.some(t=>t.toLowerCase()===J_.FILES.toLowerCase()?[...e.values()].some(i=>i.asFile()):e.has(t))}lt(b_.ID,b_,0);$t.as(ka.Configuration).registerConfiguration(Object.assign(Object.assign({},e2),{properties:{"editor.experimental.pasteActions.enabled":{type:"boolean",scope:5,description:g("pasteActions","Enable/disable running edits from extensions on paste."),default:!1}}}));class dd{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,d=e.endLineNumber,c=e.endColumn,h=s.getLineContent(a),u=s.getLineContent(d);let f=h.lastIndexOf(t,l-1+t.length),p=u.indexOf(i,c-1-i.length);if(f!==-1&&p!==-1)if(a===d)h.substring(f+t.length,p).indexOf(i)>=0&&(f=-1,p=-1);else{const _=h.substring(f+t.length),b=u.substring(0,p);(_.indexOf(i)>=0||b.indexOf(i)>=0)&&(f=-1,p=-1)}let m;f!==-1&&p!==-1?(n&&f+t.length0&&u.charCodeAt(p-1)===32&&(i=" "+i,p-=1),m=dd._createRemoveBlockCommentOperations(new y(a,f+t.length+1,d,p+1),t,i)):(m=dd._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(Ht.delete(new y(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+i.length))):(n.push(Ht.delete(new y(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),n.push(Ht.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(Ht.replace(new y(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+i)):(s.push(Ht.insert(new W(e.startLineNumber,e.startColumn),t+(n?" ":""))),s.push(Ht.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 ue(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 ue(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 d=0,c=i-t+1;ds?t[l].commentStrOffset=r-1:t[l].commentStrOffset=r}}}class tT extends ce{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((c,h)=>({selection:c,index:h,ignoreFirstLine:!1}));l.sort((c,h)=>y.compareRangesUsingStarts(c.selection,h.selection));let d=l[0];for(let c=1;c=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=function(o,e){return function(t,i){e(t,i,o)}};let lg=class B9{static get(e){return e.getContribution(B9.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 d=this._contextViewService.getContextViewElement(),c=l.srcElement;c.shadowRoot&&uh(d)===c.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?N.SimpleEditorContext:N.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 d of a)if(d instanceof Nm){const c=this._getMenuActions(e,d.item.submenu);c.length>0&&(i.push(new zf(d.id,d.label,c)),l++)}else i.push(d),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)&&!fa;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=d=>({id:`menu-action-${++i}`,label:d.label,tooltip:"",class:void 0,enabled:typeof d.enabled>"u"?!0:d.enabled,checked:d.checked,run:d.run}),s=(d,c)=>new zf(`menu-action-${++i}`,d,c,void 0),r=(d,c,h,u,f)=>{if(!c)return n({label:d,enabled:c,run:()=>{}});const p=_=>()=>{this._configurationService.updateValue(h,_)},m=[];for(const _ of f)m.push(n({label:_.label,checked:u===_.value,run:p(_.value)}));return s(d,m)},a=[];a.push(n({label:g("context.minimap.minimap","Minimap"),checked:t.enabled,run:()=>{this._configurationService.updateValue("editor.minimap.enabled",!t.enabled)}})),a.push(new Bi),a.push(n({label:g("context.minimap.renderCharacters","Render Characters"),enabled:t.enabled,checked:t.renderCharacters,run:()=>{this._configurationService.updateValue("editor.minimap.renderCharacters",!t.renderCharacters)}})),a.push(r(g("context.minimap.size","Vertical size"),t.enabled,"editor.minimap.size",t.size,[{label:g("context.minimap.size.proportional","Proportional"),value:"proportional"},{label:g("context.minimap.size.fill","Fill"),value:"fill"},{label:g("context.minimap.size.fit","Fit"),value:"fit"}])),a.push(r(g("context.minimap.slider","Slider"),t.enabled,"editor.minimap.showSlider",t.showSlider,[{label:g("context.minimap.slider.mouseover","Mouse Over"),value:"mouseover"},{label:g("context.minimap.slider.always","Always"),value:"always"}]));const l=this._editor.getOption(121)&&!fa;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:l?this._editor.getDomNode():void 0,getAnchor:()=>e,getActions:()=>a,onHide:d=>{this._contextMenuIsBeingShownCount--,this._editor.focus()}})}_keybindingFor(e){return this._keybindingService.lookupKeybinding(e.id)}dispose(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}};lg.ID="editor.contrib.contextmenu";lg=mle([Lu(1,xr),Lu(2,xl),Lu(3,Ee),Lu(4,ei),Lu(5,Ea),Lu(6,at)],lg);class _le extends ce{constructor(){super({id:"editor.action.showContextMenu",label:g("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:T.textInputFocus,primary:1092,weight:100}})}run(e,t){var i;(i=lg.get(t))===null||i===void 0||i.showContextMenu()}}lt(lg.ID,lg,2);J(_le);class SL{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 SL(t.oldSelections);this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(i)||(this._undoStack.push(new yL(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 yL(new SL(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 yL(new SL(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}}Th.ID="editor.contrib.cursorUndoRedoController";class vle extends ce{constructor(){super({id:"cursorUndo",label:g("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:T.textInputFocus,primary:2099,weight:100}})}run(e,t,i){var n;(n=Th.get(t))===null||n===void 0||n.cursorUndo()}}class ble extends ce{constructor(){super({id:"cursorRedo",label:g("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(e,t,i){var n;(n=Th.get(t))===null||n===void 0||n.cursorRedo()}}lt(Th.ID,Th,0);J(vle);J(ble);class Cle{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 ue(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 ue(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 ue(s,r,t.lineNumber,t.column)]}}else i=(this._editor.getSelections()||[]).map(n=>n.containsPosition(t)?new ue(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 Cle(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 W9=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=function(o,e){return function(t,i){e(t,i,o)}},bb=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(c){try{d(i.next(c))}catch(h){r(h)}}function l(c){try{d(i.throw(c))}catch(h){r(h)}}function d(c){c.done?s(c.value):n(c.value).then(a,l)}d((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 xI(s))}onDropIntoEditor(e,t,i){var n,s;return bb(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 d=new Sh(e,1);try{const c=this._languageFeaturesService.documentOnDropEditProvider.ordered(r),h=yield this._progressService.withProgress({location:15,delay:750,title:g("dropProgressTitle","Running drop handlers..."),cancellable:!0},()=>z1(bb(this,void 0,void 0,function*(){for(const u of c){const f=yield u.provideDocumentOnDropEdits(r,t,l,d.token);if(d.token.isCancellationRequested)return;if(f)return f}}),d.token),()=>{d.cancel()});if(d.token.isCancellationRequested||e.getModel().getVersionId()!==a)return;if(h){const u=typeof h.insertText=="string"?Hd.escape(h.insertText):h.insertText.snippet,f={edits:[new gl(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(f,{editor:e});return}}finally{d.dispose()}})}extractDataTransferData(e){return bb(this,void 0,void 0,function*(){if(!e.dataTransfer)return new O9;const t=DI(e.dataTransfer);return dle(t,e),t})}};C_.ID="editor.contrib.dropIntoEditorController";C_=W9([Fp(1,i0),Fp(2,fe),Fp(3,QN),Fp(4,Xm)],C_);let xI=class{constructor(e){this._workspaceContextService=e}provideDocumentOnDropEdits(e,t,i,n){var s;return bb(this,void 0,void 0,function*(){const r=i.get(Qn.uriList);if(r){const l=yield r.asString(),d=this.getUriListInsertText(l);if(d)return{insertText:d}}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 Jw.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=cZ(n.uri,i);if(s)return s}return i.fsPath}).join(" ")}};xI=W9([Fp(0,Xm)],xI);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(),d=this._editor.getLayoutInfo().height/a,c=Math.max(2,Math.ceil(3/d));let h=e[0].range.startLineNumber,u=e[0].range.endLineNumber;for(let f=1,p=e.length;f=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 aO(o,e,t){return o[0].indexOf(t)!==-1&&e.indexOf(t)!==-1&&o[0].split(t).length===e.split(t).length}function lO(o,e,t){const i=e.split(t),n=o[0].split(t);let s="";return i.forEach((r,a)=>{s+=V9([n[a]],r)+t}),s.slice(0,-1)}class dO{constructor(e){this.staticValue=e,this.kind=0}}class Sle{constructor(e){this.pieces=e,this.kind=1}}class dg{static fromStaticValue(e){return new dg([sh.staticValue(e)])}get hasReplacementPatterns(){return this._state.kind===1}constructor(e){!e||e.length===0?this._state=new dO(""):e.length===1&&e[0].staticValue!==null?this._state=new dO(e[0].staticValue):this._state=new Sle(e)}buildReplaceString(e,t){if(this._state.kind===0)return t?V9(e,this._state.staticValue):this._state.staticValue;let i="";for(let n=0,s=this._state.pieces.length;n0){const l=[],d=r.caseOps.length;let c=0;for(let h=0,u=a.length;h=d){l.push(a.slice(h));break}switch(r.caseOps[c]){case"U":l.push(a[h].toUpperCase());break;case"u":l.push(a[h].toUpperCase()),c++;break;case"L":l.push(a[h].toLowerCase());break;case"l":l.push(a[h].toLowerCase()),c++;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-BUYTQiCk.js b/app/src/main/resources/web/assets/NetworkView-B5_GAGwK.js similarity index 79% rename from app/src/main/resources/web/assets/NetworkView-BUYTQiCk.js rename to app/src/main/resources/web/assets/NetworkView-B5_GAGwK.js index da56a68e..4b059a67 100644 --- a/app/src/main/resources/web/assets/NetworkView-BUYTQiCk.js +++ b/app/src/main/resources/web/assets/NetworkView-B5_GAGwK.js @@ -1,4 +1,4 @@ -import{_ as k}from"./MonacoEditor.vuevuetypescriptsetuptruelang-WcUH3tOp.js";import{_ as y}from"./EditToolbar.vuevuetypescriptsetuptruelang-BYnXPUga.js";import{_ as $}from"./Breadcrumb-B2BEfhSz.js";import{d as C,g as N,h as u,l as b,C as s,ac as p,bX as g,j as F,c as h,p as m,m as S,x as c,aH as d,O as U,o as q}from"./index-B-S542RM.js";const H=C({__name:"NetworkView",setup(B){const{t:i}=N(),o=u(0),n=u(""),t=u("");b({handle:(l,e)=>{e?s(i(e),"error"):(n.value=l.networkConfig.netplan,t.value=l.networkConfig.netmix)},document:p` +import{_ as k}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BFVbtP9H.js";import{_ as y}from"./EditToolbar.vuevuetypescriptsetuptruelang-CixbO2wa.js";import{_ as $}from"./Breadcrumb-7GnPZCg_.js";import{d as C,g as N,h as u,l as b,C as s,ac as p,b$ as g,j as F,c as h,p as m,m as S,x as c,aL as d,O as U,o as q}from"./index-BXOWKrmL.js";const I=C({__name:"NetworkView",setup(B){const{t:i}=N(),o=u(0),n=u(""),t=u("");b({handle:(l,e)=>{e?s(i(e),"error"):(n.value=l.networkConfig.netplan,t.value=l.networkConfig.netmix)},document:p` query { networkConfig { ...NetworkConfigFragment @@ -15,4 +15,4 @@ import{_ as k}from"./MonacoEditor.vuevuetypescriptsetuptruelang-WcUH3tOp.js";imp } } ${g} - `});v(()=>{s(i("saved"))});function w(){!n.value||!t.value||f({netplan:n.value,netmix:t.value})}return(l,e)=>{const x=$,V=y,r=k;return q(),h(U,null,[m(x,{current:()=>l.$t("page_title.network")},null,8,["current"]),m(V,{modelValue:o.value,"onUpdate:modelValue":e[0]||(e[0]=a=>o.value=a),save:w,loading:S(_),tabs:["/etc/netplan/config.yaml","/etc/plainbox/netmix.yaml"]},null,8,["modelValue","loading"]),c(m(r,{language:"yaml",height:"700",modelValue:n.value,"onUpdate:modelValue":e[1]||(e[1]=a=>n.value=a)},null,8,["modelValue"]),[[d,o.value===0]]),c(m(r,{language:"yaml",height:"700",modelValue:t.value,"onUpdate:modelValue":e[2]||(e[2]=a=>t.value=a)},null,8,["modelValue"]),[[d,o.value===1]])],64)}}});export{H as default}; + `});v(()=>{s(i("saved"))});function w(){!n.value||!t.value||f({netplan:n.value,netmix:t.value})}return(l,e)=>{const x=$,V=y,r=k;return q(),h(U,null,[m(x,{current:()=>l.$t("page_title.network")},null,8,["current"]),m(V,{modelValue:o.value,"onUpdate:modelValue":e[0]||(e[0]=a=>o.value=a),save:w,loading:S(_),tabs:["/etc/netplan/config.yaml","/etc/plainbox/netmix.yaml"]},null,8,["modelValue","loading"]),c(m(r,{language:"yaml",height:"700",modelValue:n.value,"onUpdate:modelValue":e[1]||(e[1]=a=>n.value=a)},null,8,["modelValue"]),[[d,o.value===0]]),c(m(r,{language:"yaml",height:"700",modelValue:t.value,"onUpdate:modelValue":e[2]||(e[2]=a=>t.value=a)},null,8,["modelValue"]),[[d,o.value===1]])],64)}}});export{I as default}; diff --git a/app/src/main/resources/web/assets/NoteEditView-vDUpCxeq.js b/app/src/main/resources/web/assets/NoteEditView-C-0qsgs1.js similarity index 64% rename from app/src/main/resources/web/assets/NoteEditView-vDUpCxeq.js rename to app/src/main/resources/web/assets/NoteEditView-C-0qsgs1.js index 17e9979a..a3052e5e 100644 --- a/app/src/main/resources/web/assets/NoteEditView-vDUpCxeq.js +++ b/app/src/main/resources/web/assets/NoteEditView-C-0qsgs1.js @@ -1 +1 @@ -import{_ as Y}from"./MonacoEditor.vuevuetypescriptsetuptruelang-WcUH3tOp.js";import{_ as ee}from"./print-outline-rounded-CtsVPpnN.js";import{b0 as te,b1 as F,b2 as ne,o as g,c as k,a as d,d as ae,u as oe,g as se,h as y,s as ie,i as ue,l as le,K as re,j as ce,b3 as de,a_ as _e,a1 as E,a$ as me,x as I,w as R,p as S,V as G,t as pe,m as O,aH as ve,v as fe,e as z,O as j,Q as ge,b4 as he,k as be,C as K,b5 as Te,b6 as ye,b7 as ke,U as we,a3 as $e,a4 as Se,S as Ce,F as xe,G as Le,a6 as Me,f as Ne,Z as Ee,$ as Ie,a2 as qe,H as Ve}from"./index-B-S542RM.js";import{u as Ae}from"./markdown-DdibuaIZ.js";var Q=function(){return te.Date.now()},De="Expected a function",He=Math.max,Re=Math.min;function Qe(_,u,l){var m,a,o,i,s,r,v=0,x=!1,f=!1,h=!0;if(typeof _!="function")throw new TypeError(De);u=F(u)||0,ne(l)&&(x=!!l.leading,f="maxWait"in l,o=f?He(F(l.maxWait)||0,u):o,h="trailing"in l?!!l.trailing:h);function w(n){var c=m,e=a;return m=a=void 0,v=n,i=_.apply(e,c),i}function L(n){return v=n,s=setTimeout(p,u),x?w(n):i}function q(n){var c=n-r,e=n-v,t=u-c;return f?Re(t,o-e):t}function b(n){var c=n-r,e=n-v;return r===void 0||c>=u||c<0||f&&e>=o}function p(){var n=Q();if(b(n))return M(n);s=setTimeout(p,q(n))}function M(n){return s=void 0,h&&m?w(n):(m=a=void 0,i)}function V(){s!==void 0&&clearTimeout(s),v=0,m=r=a=s=void 0}function A(){return s===void 0?i:M(Q())}function $(){var n=Q(),c=b(n);if(m=arguments,a=this,r=n,c){if(s===void 0)return L(r);if(f)return clearTimeout(s),s=setTimeout(p,u),w(r)}return s===void 0&&(s=setTimeout(p,u)),i}return $.cancel=V,$.flush=A,$}const Ue={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Be=d("path",{fill:"currentColor",d:"m7.825 13l4.9 4.9q.3.3.288.7t-.313.7q-.3.275-.7.288t-.7-.288l-6.6-6.6q-.15-.15-.213-.325T4.426 12t.063-.375t.212-.325l6.6-6.6q.275-.275.688-.275t.712.275q.3.3.3.713t-.3.712L7.825 11H19q.425 0 .713.288T20 12t-.288.713T19 13z"},null,-1),We=[Be];function Fe(_,u){return g(),k("svg",Ue,[...We])}const Ge={name:"material-symbols-arrow-back-rounded",render:Fe},U=_=>(xe("data-v-977015b7"),_=_(),Le(),_),Oe={class:"top-app-bar"},ze=U(()=>d("md-ripple",null,null,-1)),je={class:"title"},Ke={class:"state-point"},Pe={class:"actions"},Xe=U(()=>d("md-ripple",null,null,-1)),Ze=U(()=>d("md-ripple",null,null,-1)),Je={class:"panel-container"},Ye=["innerHTML"],C="NOTE",et=ae({__name:"NoteEditView",setup(_){const u=oe(),{t:l}=se(),m=ge(),a=y(""),o=y(),i=y(""),s=y(""),r=y(!1),{app:v,urlTokenKey:x}=ie(ue());function f(){const e=Me.currentRoute.value.query.q;let t="/notes";e&&(t+=`?q=${e}`),Ne(u,t)}const{render:h}=Ae(v,x),w=Qe(()=>{r.value=!1,M({id:a.value,input:{content:i.value,title:he(i.value,{length:250,omission:""})}})},500),L=()=>{be(i,async e=>{r.value=!0,s.value=await h(e),w()})},q=()=>{window.print()},b=y();le({handle:(e,t)=>{t?K(l(t),"error"):e&&(b.value=e.tags)},document:Te,variables:{type:C},appApi:!0});const{fetch:p}=re({handle:async(e,t)=>{t?K(l(t),"error"):(o.value=e.note,i.value=e.note.content,s.value=await h(i.value),L())},document:ye,variables:()=>({id:a.value}),appApi:!0}),{mutate:M,onDone:V}=ce({document:ke,appApi:!0});V(e=>{var t,T;o.value=e.data.saveNote,!a.value&&((t=o.value)!=null&&t.id)&&(a.value=(T=o.value)==null?void 0:T.id,de(u,`/notes/${a.value}`))});function A(){var t;const e=(t=o==null?void 0:o.value)==null?void 0:t.updatedAt;return e?`(${l("updated_at")}: ${we(e)})`:""}function $(){var e,t;Ee(Ie,{type:C,tags:b.value,item:{key:(e=o.value)==null?void 0:e.id,title:"",size:0},selected:(t=b.value)==null?void 0:t.filter(T=>{var N;return(N=o.value)==null?void 0:N.tags.some(D=>D.id===T.id)})})}const n=e=>{e.type===C&&p()},c=e=>{e.type===C&&p()};return _e(()=>{a.value=m.params.id,a.value==="create"&&(a.value=""),a.value?p():L(),E.on("item_tags_updated",c),E.on("items_tags_updated",n)}),me(()=>{E.off("item_tags_updated",c),E.off("items_tags_updated",n)}),(e,t)=>{var B,W;const T=Ge,N=$e,D=Se,P=qe,X=ee,Z=Y,H=Ce("tooltip");return g(),k(j,null,[d("div",Oe,[I((g(),k("button",{class:"btn-icon",onClick:R(f,["prevent"])},[ze,S(T)])),[[H,e.$t("back")]]),d("div",je,[G(pe(a.value?O(l)("edit"):O(l)("create"))+" ",1),I(d("span",Ke,"*",512),[[ve,r.value]]),G(),(B=o.value)!=null&&B.updatedAt?(g(),fe(N,{key:0,class:"time",id:A(),raw:o.value},null,8,["id","raw"])):z("",!0)]),d("div",Pe,[S(D,{tags:(W=o.value)==null?void 0:W.tags,type:C,"only-links":!0},null,8,["tags"]),a.value?(g(),k(j,{key:0},[I((g(),k("button",{class:"btn-icon",onClick:R($,["prevent"])},[Xe,S(P)])),[[H,e.$t("add_to_tags")]]),I((g(),k("button",{class:"btn-icon",onClick:R(q,["prevent"])},[Ze,S(X)])),[[H,e.$t("print")]])],64)):z("",!0)])]),d("div",Je,[S(Z,{language:"html",modelValue:i.value,"onUpdate:modelValue":t[0]||(t[0]=J=>i.value=J)},null,8,["modelValue"]),d("div",{class:"md-container",innerHTML:s.value},null,8,Ye)])],64)}}}),st=Ve(et,[["__scopeId","data-v-977015b7"]]);export{st as default}; +import{_ as Y}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BFVbtP9H.js";import{_ as ee}from"./print-outline-rounded-B-LbOkYS.js";import{b4 as te,b5 as F,b6 as ne,o as g,c as k,a as d,d as ae,u as oe,g as se,h as y,s as ie,i as ue,l as le,K as re,j as ce,b7 as de,af as _e,a1 as E,ag as me,x as I,w as H,p as S,V as G,t as pe,m as O,aL as ve,v as fe,e as z,O as j,Q as ge,b8 as he,k as be,C as K,b9 as Te,ba as ye,bb as ke,U as we,a3 as $e,a4 as Se,S as Ce,F as Le,G as xe,a6 as Me,f as Ne,Z as Ee,$ as Ie,a2 as qe,H as Ve}from"./index-BXOWKrmL.js";import{u as Ae}from"./markdown-CQMofEuT.js";var Q=function(){return te.Date.now()},De="Expected a function",Re=Math.max,He=Math.min;function Qe(_,u,l){var m,a,o,i,s,r,v=0,L=!1,f=!1,h=!0;if(typeof _!="function")throw new TypeError(De);u=F(u)||0,ne(l)&&(L=!!l.leading,f="maxWait"in l,o=f?Re(F(l.maxWait)||0,u):o,h="trailing"in l?!!l.trailing:h);function w(n){var c=m,e=a;return m=a=void 0,v=n,i=_.apply(e,c),i}function x(n){return v=n,s=setTimeout(p,u),L?w(n):i}function q(n){var c=n-r,e=n-v,t=u-c;return f?He(t,o-e):t}function b(n){var c=n-r,e=n-v;return r===void 0||c>=u||c<0||f&&e>=o}function p(){var n=Q();if(b(n))return M(n);s=setTimeout(p,q(n))}function M(n){return s=void 0,h&&m?w(n):(m=a=void 0,i)}function V(){s!==void 0&&clearTimeout(s),v=0,m=r=a=s=void 0}function A(){return s===void 0?i:M(Q())}function $(){var n=Q(),c=b(n);if(m=arguments,a=this,r=n,c){if(s===void 0)return x(r);if(f)return clearTimeout(s),s=setTimeout(p,u),w(r)}return s===void 0&&(s=setTimeout(p,u)),i}return $.cancel=V,$.flush=A,$}const Ue={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Be=d("path",{fill:"currentColor",d:"m7.825 13l4.9 4.9q.3.3.288.7t-.313.7q-.3.275-.7.288t-.7-.288l-6.6-6.6q-.15-.15-.213-.325T4.426 12t.063-.375t.212-.325l6.6-6.6q.275-.275.688-.275t.712.275q.3.3.3.713t-.3.712L7.825 11H19q.425 0 .713.288T20 12t-.288.713T19 13z"},null,-1),We=[Be];function Fe(_,u){return g(),k("svg",Ue,[...We])}const Ge={name:"material-symbols-arrow-back-rounded",render:Fe},U=_=>(Le("data-v-977015b7"),_=_(),xe(),_),Oe={class:"top-app-bar"},ze=U(()=>d("md-ripple",null,null,-1)),je={class:"title"},Ke={class:"state-point"},Pe={class:"actions"},Xe=U(()=>d("md-ripple",null,null,-1)),Ze=U(()=>d("md-ripple",null,null,-1)),Je={class:"panel-container"},Ye=["innerHTML"],C="NOTE",et=ae({__name:"NoteEditView",setup(_){const u=oe(),{t:l}=se(),m=ge(),a=y(""),o=y(),i=y(""),s=y(""),r=y(!1),{app:v,urlTokenKey:L}=ie(ue());function f(){const e=Me.currentRoute.value.query.q;let t="/notes";e&&(t+=`?q=${e}`),Ne(u,t)}const{render:h}=Ae(v,L),w=Qe(()=>{r.value=!1,M({id:a.value,input:{content:i.value,title:he(i.value,{length:250,omission:""})}})},500),x=()=>{be(i,async e=>{r.value=!0,s.value=await h(e),w()})},q=()=>{window.print()},b=y();le({handle:(e,t)=>{t?K(l(t),"error"):e&&(b.value=e.tags)},document:Te,variables:{type:C},appApi:!0});const{fetch:p}=re({handle:async(e,t)=>{t?K(l(t),"error"):(o.value=e.note,i.value=e.note.content,s.value=await h(i.value),x())},document:ye,variables:()=>({id:a.value}),appApi:!0}),{mutate:M,onDone:V}=ce({document:ke,appApi:!0});V(e=>{var t,T;o.value=e.data.saveNote,!a.value&&((t=o.value)!=null&&t.id)&&(a.value=(T=o.value)==null?void 0:T.id,de(u,`/notes/${a.value}`))});function A(){var t;const e=(t=o==null?void 0:o.value)==null?void 0:t.updatedAt;return e?`(${l("updated_at")}: ${we(e)})`:""}function $(){var e,t;Ee(Ie,{type:C,tags:b.value,item:{key:(e=o.value)==null?void 0:e.id,title:"",size:0},selected:(t=b.value)==null?void 0:t.filter(T=>{var N;return(N=o.value)==null?void 0:N.tags.some(D=>D.id===T.id)})})}const n=e=>{e.type===C&&p()},c=e=>{e.type===C&&p()};return _e(()=>{a.value=m.params.id,a.value==="create"&&(a.value=""),a.value?p():x(),E.on("item_tags_updated",c),E.on("items_tags_updated",n)}),me(()=>{E.off("item_tags_updated",c),E.off("items_tags_updated",n)}),(e,t)=>{var B,W;const T=Ge,N=$e,D=Se,P=qe,X=ee,Z=Y,R=Ce("tooltip");return g(),k(j,null,[d("div",Oe,[I((g(),k("button",{class:"btn-icon",onClick:H(f,["prevent"])},[ze,S(T)])),[[R,e.$t("back")]]),d("div",je,[G(pe(a.value?O(l)("edit"):O(l)("create"))+" ",1),I(d("span",Ke,"*",512),[[ve,r.value]]),G(),(B=o.value)!=null&&B.updatedAt?(g(),fe(N,{key:0,class:"time",id:A(),raw:o.value},null,8,["id","raw"])):z("",!0)]),d("div",Pe,[S(D,{tags:(W=o.value)==null?void 0:W.tags,type:C,"only-links":!0},null,8,["tags"]),a.value?(g(),k(j,{key:0},[I((g(),k("button",{class:"btn-icon",onClick:H($,["prevent"])},[Xe,S(P)])),[[R,e.$t("add_to_tags")]]),I((g(),k("button",{class:"btn-icon",onClick:H(q,["prevent"])},[Ze,S(X)])),[[R,e.$t("print")]])],64)):z("",!0)])]),d("div",Je,[S(Z,{language:"html",modelValue:i.value,"onUpdate:modelValue":t[0]||(t[0]=J=>i.value=J)},null,8,["modelValue"]),d("div",{class:"md-container",innerHTML:s.value},null,8,Ye)])],64)}}}),st=Ve(et,[["__scopeId","data-v-977015b7"]]);export{st as default}; diff --git a/app/src/main/resources/web/assets/NotesSidebar-ByAV-TPL.js b/app/src/main/resources/web/assets/NotesSidebar-ByAV-TPL.js new file mode 100644 index 00000000..4229cf66 --- /dev/null +++ b/app/src/main/resources/web/assets/NotesSidebar-ByAV-TPL.js @@ -0,0 +1 @@ +import{_ as B}from"./LeftSidebar.vuevuetypescriptsetuptruelang-qrlto0-t.js";import{_ as $}from"./TagFilter.vuevuetypescriptsetuptruelang-F0HSGzO6.js";import{d as I,u as V,s as A,i as L,I as Q,h as f,K as M,k as R,af as z,a1 as h,ag as E,v as x,q as v,bk as D,a6 as g,a0 as G,o as i,V as H,t as s,a,w as k,N as y,m as l,c as S,e as T,p as K,a7 as O,f as C,a8 as P}from"./index-BXOWKrmL.js";import{u as U}from"./search-B-8eugyA.js";import"./more-vert-B_3Etgle.js";import"./EditValueModal-HQ024-FF.js";import"./vee-validate.esm-Bmkx0D8v.js";const j={class:"nav"},F={class:"title"},J={key:0,class:"count"},W={class:"title"},X={key:0,class:"count"},re=I({__name:"NotesSidebar",setup(Y){const u=V(),{counter:t}=A(L()),{parseQ:N}=U(),o=Q({tagIds:[]}),n=f(!1),r=f(""),{fetch:d}=M({handle:e=>{e&&(t.value.notes=e.total,t.value.notesTrash=e.trash)},document:D,variables:()=>({}),appApi:!0});function p(){var c;const e=g.currentRoute.value,m=G(((c=e.query.q)==null?void 0:c.toString())??"");N(o,m),r.value=o.tagIds.length===1?o.tagIds[0]:"",n.value=o.trash??!1,n.value&&(r.value=""),d()}p(),R(()=>g.currentRoute.value,()=>{p()});function b(){const e=O([{name:"trash",op:"",value:"true"}]);C(u,`/notes?q=${P(e)}`)}function q(){C(u,"/notes")}const _=()=>{d()};return z(()=>{h.on("notes_actioned",_)}),E(()=>{h.off("notes_actioned",_)}),(e,m)=>{const c=$,w=B;return i(),x(w,null,{title:v(()=>[H(s(e.$t("page_title.notes")),1)]),body:v(()=>[a("ul",j,[a("li",{onClick:k(q,["prevent"]),class:y({active:!r.value&&!n.value})},[a("span",F,s(e.$t("all")),1),l(t).notes>=0?(i(),S("span",J,s(l(t).notes.toLocaleString()),1)):T("",!0)],2),a("li",{onClick:k(b,["prevent"]),class:y({active:n.value})},[a("span",W,s(e.$t("trash")),1),l(t).notesTrash>=0?(i(),S("span",X,s(l(t).notesTrash.toLocaleString()),1)):T("",!0)],2)]),K(c,{type:"NOTE",selected:r.value},null,8,["selected"])]),_:1})}}});export{re as default}; diff --git a/app/src/main/resources/web/assets/NotesSidebar-DLd9XA5A.js b/app/src/main/resources/web/assets/NotesSidebar-DLd9XA5A.js deleted file mode 100644 index 54fbdae4..00000000 --- a/app/src/main/resources/web/assets/NotesSidebar-DLd9XA5A.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as w}from"./LeftSidebar.vuevuetypescriptsetuptruelang-Bkp0VFG-.js";import{_ as B}from"./TagFilter.vuevuetypescriptsetuptruelang-DXYEFTYG.js";import{d as I,u as V,s as A,i as L,I as Q,h as f,K as M,k as R,a_ as z,a1 as h,a$ as E,v as x,q as v,bg as D,a6 as g,a0 as G,o as i,V as H,t as s,a,w as y,N as S,m as l,c as T,e as k,p as K,a7 as O,f as C,a8 as P}from"./index-B-S542RM.js";import{u as U}from"./search-k8SzNgo1.js";import"./more-vert-XZtlvs7x.js";import"./EditValueModal-u3M261_O.js";import"./vee-validate.esm-D5u4WlYW.js";const j={class:"nav"},F={class:"title"},J={key:0,class:"count"},W={class:"title"},X={key:0,class:"count"},re=I({__name:"NotesSidebar",setup(Y){const u=V(),{counter:t}=A(L()),{parseQ:N}=U(),o=Q({tagIds:[]}),n=f(!1),r=f(""),{fetch:d}=M({handle:e=>{e&&(t.value.notes=e.total,t.value.notesTrash=e.trash)},document:D,variables:()=>({}),appApi:!0});function p(){var c;const e=g.currentRoute.value,m=G(((c=e.query.q)==null?void 0:c.toString())??"");N(o,m),r.value=o.tagIds.length===1?o.tagIds[0]:"",n.value=o.trash??!1,n.value&&(r.value=""),d()}p(),R(()=>g.currentRoute.value,()=>{p()});function $(){const e=O([{name:"trash",op:"",value:"true"}]);C(u,`/notes?q=${P(e)}`)}function b(){C(u,"/notes")}const _=()=>{d()};return z(()=>{h.on("notes_actioned",_)}),E(()=>{h.off("notes_actioned",_)}),(e,m)=>{const c=B,q=w;return i(),x(q,null,{title:v(()=>[H(s(e.$t("page_title.notes")),1)]),body:v(()=>[a("ul",j,[a("li",{onClick:y(b,["prevent"]),class:S({active:!r.value&&!n.value})},[a("span",F,s(e.$t("all")),1),l(t).notes>=0?(i(),T("span",J,s(l(t).notes.toLocaleString()),1)):k("",!0)],2),a("li",{onClick:y($,["prevent"]),class:S({active:n.value})},[a("span",W,s(e.$t("trash")),1),l(t).notesTrash>=0?(i(),T("span",X,s(l(t).notesTrash.toLocaleString()),1)):k("",!0)],2)]),K(c,{type:"NOTE",selected:r.value},null,8,["selected"])]),_:1})}}});export{re as default}; diff --git a/app/src/main/resources/web/assets/NotesView-BGLkQPdA.js b/app/src/main/resources/web/assets/NotesView-BGLkQPdA.js new file mode 100644 index 00000000..5938f3aa --- /dev/null +++ b/app/src/main/resources/web/assets/NotesView-BGLkQPdA.js @@ -0,0 +1,6 @@ +import{_ as Qe}from"./VPagination.vuevuetypescriptsetuptruelang-Cqtk1_Un.js";import{o as s,c as l,a as i,j as B,bc as Ue,I as G,a1 as T,J as j,bd as ze,d as He,u as Be,h as H,g as Ge,K as je,be as Ke,L as Oe,M as Re,m as e,t as $,O as N,x as g,v as _,q as p,w as r,e as D,p as d,P as Pe,N as de,Q as Fe,C as Je,bf as We,bg as Xe,bh as Ye,aP as Ze,S as et,bi as tt,U as st,V as ot,W as at,bj as nt,X as lt,Y as it,f as ue,Z as _e,$ as ct,b8 as rt,ac as dt,ad as ut,a6 as pe,a0 as _t,ae as pt,aT as vt,aU as mt,a2 as ht,a3 as gt,a4 as kt,F as ft,G as bt,H as yt}from"./index-BXOWKrmL.js";import{_ as $t,a as Tt}from"./SearchInput-ZLdB9f4z.js";import{u as qt,b as Ct,a as wt}from"./key-events-DpI8L-ce.js";import{u as Nt,a as St}from"./tags-BpDG2_1g.js";import{u as Lt}from"./search-B-8eugyA.js";import"./search-rounded-DpdJ2cSK.js";import"./rss-feed-rounded-DN7yBBrR.js";import"./vee-validate.esm-Bmkx0D8v.js";const At={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Dt=i("path",{fill:"currentColor",d:"M19 17.7v1.8q0 .2.15.35t.35.15t.35-.15t.15-.35v-3q0-.2-.15-.35T19.5 16h-3q-.2 0-.35.15t-.15.35t.15.35t.35.15h1.8l-2.45 2.45q-.15.15-.15.35t.15.35t.35.15t.35-.15zM5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v5q0 .425-.288.713T20 11t-.712-.288T19 10V5H5v14h5q.425 0 .713.288T11 20t-.288.713T10 21zm0-3v1V5v6.075V11zm2-2q0 .425.288.713T8 17h2.075q.425 0 .713-.288t.287-.712t-.287-.712t-.713-.288H8q-.425 0-.712.288T7 16m0-4q0 .425.288.713T8 13h5q.425 0 .713-.288T14 12t-.288-.712T13 11H8q-.425 0-.712.288T7 12m0-4q0 .425.288.713T8 9h8q.425 0 .713-.288T17 8t-.288-.712T16 7H8q-.425 0-.712.288T7 8m11 15q-2.075 0-3.537-1.463T13 18t1.463-3.537T18 13t3.538 1.463T23 18t-1.463 3.538T18 23"},null,-1),It=[Dt];function Vt(k,q){return s(),l("svg",At,[...It])}const Mt={name:"material-symbols-export-notes-outline-rounded",render:Vt},Et=(k,q)=>{const{mutate:v,onDone:V}=B({document:Ue,appApi:!0}),f=G(new Map);return V(a=>{f.delete(a.data.trashNotes),k(),q(),T.emit("refetch_tags",j.NOTE),T.emit("notes_actioned",{action:"trash"})}),{trashLoading(a){return f.get(a)??!1},trash(a){f.set(a,!0),v({query:a})}}},xt=(k,q)=>{const{mutate:v,onDone:V}=B({document:ze,appApi:!0}),f=G(new Map);return V(a=>{f.delete(a.data.restoreNotes),k(),q(),T.emit("refetch_tags",j.NOTE),T.emit("notes_actioned",{action:"restore"})}),{restoreLoading(a){return f.get(a)??!1},restore(a){f.set(a,!0),v({query:a})}}},Qt=k=>(ft("data-v-68f43b2b"),k=k(),bt(),k),Ut={class:"top-app-bar"},zt=["checked","indeterminate"],Ht={class:"title"},Bt={key:0},Gt={key:1},jt={class:"actions"},Kt={key:0,class:"scroller"},Ot={class:"start"},Rt=Qt(()=>i("div",{class:"checkbox"},[i("div",{class:"skeleton-checkbox"})],-1)),Pt={class:"number"},Ft=it('
',4),Jt=["href"],Wt=["onClick","onMouseover"],Xt={class:"start"},Yt=["onClick","checked"],Zt=["onClick","checked"],es={class:"number"},ts={class:"title"},ss={class:"subtitle"},os={class:"actions"},as={class:"time"},ns={key:2,class:"no-data-placeholder"},I=50,ls=He({__name:"NotesView",setup(k){var le;const q=Be(),v=H([]),{t:V}=Ge(),{parseQ:f}=Lt(),a=G({tagIds:[],trash:!1}),S=j.NOTE,K=Fe(),O=K.query,Q=H(parseInt(((le=O.page)==null?void 0:le.toString())??"1")),C=H(""),{tags:M,fetch:ve}=Nt(S),{selectedIds:y,allChecked:R,realAllChecked:L,selectRealAll:me,allCheckedAlertVisible:he,clearSelection:w,toggleAllChecked:P,toggleSelect:F,total:m,checked:U,shiftEffectingIds:J,handleItemClick:ge,handleMouseOver:ke,selectAll:fe,shouldSelect:be}=qt(v),{addToTags:ye}=St(S,M),W=t=>{const n=K.query.q;ue(q,n?`/notes?page=${t}&q=${n}`:`/notes?page=${t}`)},{keyDown:X,keyUp:Y}=wt(m,I,Q,fe,w,W,()=>{Z(y.value,L.value,m.value,C.value)}),{loading:z,fetch:A}=je({handle:(t,n)=>{n?Je(V(n),"error"):t&&(v.value=t.notes,m.value=t.noteCount)},document:We,variables:()=>({offset:(Q.value-1)*I,limit:I,query:C.value}),appApi:!0});function $e(t){_e(ct,{type:S,tags:M.value,item:{key:t.id,title:"",size:0},selected:M.value.filter(n=>t.tags.some(x=>x.id===n.id))})}function Te(t){return t?`/notes?q=${t}`:"/notes"}const{mutate:qe,onDone:Ce}=B({document:Xe,appApi:!0}),we=()=>{qe({query:E()})},E=()=>{let t=C.value;return L.value||(t=`ids:${y.value.join(",")}`),t};Ce(t=>{Ke(t.data.exportNotes,"application/json","notes.json")});const{deleteItems:Z}=Ct(Ye,()=>{w(),A()});function Ne(t){_e(ut,{id:t.id,name:rt(t.title,{length:20}),gql:dt` + mutation DeleteNote($query: String!) { + deleteNotes(query: $query) + } + `,variables:()=>({query:`ids:${t.id}`}),done:()=>{w(),m.value--},appApi:!0,typeName:"Note"})}const{trashLoading:Se,trash:ee}=Et(w,A),{restoreLoading:te,restore:se}=xt(w,A);function Le(t){ue(q,oe(t))}function oe(t){const n=pe.currentRoute.value.query.q;return n?`/notes/${t.id}?q=${n}`:`/notes/${t.id}`}function Ae(){pe.push("/notes/create")}const ae=t=>{t.type===S&&(w(),A())},ne=t=>{t.type===S&&A()};return Oe(()=>{var t;C.value=_t(((t=O.q)==null?void 0:t.toString())??""),f(a,C.value),a.trash===void 0&&(a.trash=!1),ve(),A(),T.on("item_tags_updated",ne),T.on("items_tags_updated",ae),window.addEventListener("keydown",X),window.addEventListener("keyup",Y)}),Re(()=>{T.off("item_tags_updated",ne),T.off("items_tags_updated",ae),window.removeEventListener("keydown",X),window.removeEventListener("keyup",Y)}),(t,n)=>{const x=pt,b=Ze,ie=vt,ce=mt,re=ht,De=Mt,Ie=$t,Ve=Tt,Me=gt,Ee=kt,xe=Qe,h=et("tooltip");return s(),l(N,null,[i("div",Ut,[i("md-checkbox",{"touch-target":"wrapper",onChange:n[0]||(n[0]=(...c)=>e(P)&&e(P)(...c)),checked:e(R),indeterminate:!e(R)&&e(U)},null,40,zt),i("div",Ht,[e(y).length?(s(),l("span",Bt,$(t.$t("x_selected",{count:e(L)?e(m).toLocaleString():e(y).length.toLocaleString()})),1)):(s(),l("span",Gt,$(t.$t("page_title.notes"))+" ("+$(e(m).toLocaleString())+")",1)),e(U)?(s(),l(N,{key:2},[a.trash?(s(),l(N,{key:0},[g((s(),_(b,{onClick:n[1]||(n[1]=r(c=>e(Z)(e(y),e(L),e(m),C.value),["stop"]))},{icon:p(()=>[d(x)]),_:1})),[[h,t.$t("delete")]]),g((s(),_(b,{onClick:n[2]||(n[2]=r(c=>e(se)(E()),["stop"])),loading:e(te)(E())},{icon:p(()=>[d(ie)]),_:1},8,["loading"])),[[h,t.$t("restore")]])],64)):(s(),l(N,{key:1},[g((s(),_(b,{onClick:n[3]||(n[3]=r(c=>e(ee)(E()),["stop"]))},{icon:p(()=>[d(ce)]),_:1})),[[h,t.$t("move_to_trash")]]),g((s(),_(b,{onClick:n[4]||(n[4]=r(c=>e(ye)(e(y),e(L),C.value),["stop"]))},{icon:p(()=>[d(re)]),_:1})),[[h,t.$t("add_to_tags")]]),g((s(),_(b,{onClick:r(we,["stop"])},{icon:p(()=>[d(De)]),_:1})),[[h,t.$t("export_notes")]])],64))],64)):D("",!0)]),i("div",jt,[d(Ie,{filter:a,tags:e(M),"get-url":Te,"show-trash":!0},null,8,["filter","tags"]),a.trash?D("",!0):(s(),l("md-outlined-button",{key:0,class:"btn-sm",onClick:r(Ae,["prevent"])},$(t.$t("create")),1))])]),d(Ve,{limit:I,total:e(m),"all-checked-alert-visible":e(he),"real-all-checked":e(L),"select-real-all":e(me),"clear-selection":e(w)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),e(z)&&v.value.length===0?(s(),l("div",Kt,[(s(),l(N,null,Pe(20,c=>i("article",{class:"note-item selectable-card-skeleton",key:c},[i("div",Ot,[Rt,i("span",Pt,$(c),1)]),Ft])),64))])):D("",!0),v.value.length?(s(),_(e(nt),{key:1,class:de(["scroller",{"select-mode":e(U)}]),"data-key":"id","data-sources":v.value,"estimate-size":100},{item:p(({index:c,item:o})=>[(s(),l("a",{class:"item-link",key:o.id,href:oe(o)},[i("article",{class:de(["note-item selectable-card",{selected:e(y).includes(o.id)||o.id==t.$route.params.id,selecting:e(J).includes(o.id)}]),onClick:r(u=>e(ge)(u,o,c,()=>{Le(o)}),["stop","prevent"]),onMouseover:u=>e(ke)(u,c)},[i("div",Xt,[e(J).includes(o.id)?(s(),l("md-checkbox",{key:0,class:"checkbox","touch-target":"wrapper",onClick:r(u=>e(F)(u,o,c),["stop"]),checked:e(be)},null,8,Yt)):(s(),l("md-checkbox",{key:1,class:"checkbox","touch-target":"wrapper",onClick:r(u=>e(F)(u,o,c),["stop"]),checked:e(y).includes(o.id)},null,8,Zt)),i("span",es,[d(Me,{id:c+1,raw:o},null,8,["id","raw"])])]),i("div",ts,$(e(tt)(o.title.split(` +`)[0].trimStart())||t.$t("meta_no_title")),1),i("div",ss,[d(Ee,{tags:o.tags,type:e(S),"only-links":!0},null,8,["tags","type"])]),i("div",os,[a.trash?(s(),l(N,{key:0},[g((s(),_(b,{class:"sm",onClick:r(u=>Ne(o),["stop","prevent"])},{icon:p(()=>[d(x)]),_:2},1032,["onClick"])),[[h,t.$t("delete")]]),g((s(),_(b,{class:"sm",onClick:r(u=>e(se)(`ids:${o.id}`),["stop","prevent"]),loading:e(te)(`ids:${o.id}`)},{icon:p(()=>[d(ie)]),_:2},1032,["onClick","loading"])),[[h,t.$t("restore")]])],64)):(s(),l(N,{key:1},[g((s(),_(b,{class:"sm",onClick:r(u=>e(ee)(`ids:${o.id}`),["stop","prevent"]),loading:e(Se)(`ids:${o.id}`)},{icon:p(()=>[d(ce)]),_:2},1032,["onClick","loading"])),[[h,t.$t("move_to_trash")]]),g((s(),_(b,{class:"sm",onClick:r(u=>$e(o),["stop","prevent"])},{icon:p(()=>[d(re)]),_:2},1032,["onClick"])),[[h,t.$t("add_to_tags")]])],64))]),i("div",as,[g((s(),l("span",null,[ot($(e(at)(o.updatedAt)),1)])),[[h,e(st)(o.updatedAt)]])])],42,Wt)],8,Jt))]),footer:p(()=>[e(m)>I?(s(),_(xe,{key:0,page:Q.value,go:W,total:e(m),limit:I},null,8,["page","total"])):D("",!0)]),_:1},8,["data-sources","class"])):D("",!0),!e(z)&&v.value.length===0?(s(),l("div",ns,$(t.$t(e(lt)(e(z)))),1)):D("",!0)],64)}}}),hs=yt(ls,[["__scopeId","data-v-68f43b2b"]]);export{hs as default}; diff --git a/app/src/main/resources/web/assets/NotesView-D09b0SdB.js b/app/src/main/resources/web/assets/NotesView-D09b0SdB.js deleted file mode 100644 index a5c037b9..00000000 --- a/app/src/main/resources/web/assets/NotesView-D09b0SdB.js +++ /dev/null @@ -1,6 +0,0 @@ -import{_ as Qe}from"./VPagination.vuevuetypescriptsetuptruelang-DUdPyPtr.js";import{o as s,c as l,a as i,j as B,b8 as ze,I as G,a1 as T,J as K,b9 as He,d as Ue,u as Be,h as U,g as Ge,K as Ke,ba as Oe,L as Re,M as je,m as e,t as $,O as N,x as g,v as _,q as p,w as r,e as D,p as d,P as Fe,N as de,Q as Pe,C as Je,bb as We,bc as Xe,bd as Ye,S as Ze,be as et,U as tt,V as st,W as ot,bf as at,X as nt,Y as lt,f as ue,Z as _e,$ as it,b4 as ct,ac as rt,ad as dt,a6 as pe,a0 as ut,ae as _t,a2 as pt,a3 as mt,a4 as vt,F as ht,G as gt,H as kt}from"./index-B-S542RM.js";import{_ as ft,a as bt,b as yt}from"./SearchInput-D0d2xIiv.js";import{_ as $t}from"./restore-from-trash-outline-rounded-Ck6P-VkW.js";import{_ as Tt}from"./IconButton.vuevuetypescriptsetuptruelang-CxW8gnDA.js";import{u as qt,b as Ct,a as wt}from"./key-events-D1Kh05Em.js";import{u as Nt,a as St}from"./tags-x91i2rzh.js";import{u as Lt}from"./search-k8SzNgo1.js";import"./search-rounded-TCa6qTC1.js";import"./rss-feed-rounded-DzJ3TVan.js";import"./vee-validate.esm-D5u4WlYW.js";const At={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Dt=i("path",{fill:"currentColor",d:"M19 17.7v1.8q0 .2.15.35t.35.15t.35-.15t.15-.35v-3q0-.2-.15-.35T19.5 16h-3q-.2 0-.35.15t-.15.35t.15.35t.35.15h1.8l-2.45 2.45q-.15.15-.15.35t.15.35t.35.15t.35-.15zM5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v5q0 .425-.288.713T20 11t-.712-.288T19 10V5H5v14h5q.425 0 .713.288T11 20t-.288.713T10 21zm0-3v1V5v6.075V11zm2-2q0 .425.288.713T8 17h2.075q.425 0 .713-.288t.287-.712t-.287-.712t-.713-.288H8q-.425 0-.712.288T7 16m0-4q0 .425.288.713T8 13h5q.425 0 .713-.288T14 12t-.288-.712T13 11H8q-.425 0-.712.288T7 12m0-4q0 .425.288.713T8 9h8q.425 0 .713-.288T17 8t-.288-.712T16 7H8q-.425 0-.712.288T7 8m11 15q-2.075 0-3.537-1.463T13 18t1.463-3.537T18 13t3.538 1.463T23 18t-1.463 3.538T18 23"},null,-1),It=[Dt];function Vt(k,q){return s(),l("svg",At,[...It])}const Mt={name:"material-symbols-export-notes-outline-rounded",render:Vt},Et=(k,q)=>{const{mutate:m,onDone:V}=B({document:ze,appApi:!0}),f=G(new Map);return V(a=>{f.delete(a.data.trashNotes),k(),q(),T.emit("refetch_tags",K.NOTE),T.emit("notes_actioned",{action:"trash"})}),{trashLoading(a){return f.get(a)??!1},trash(a){f.set(a,!0),m({query:a})}}},xt=(k,q)=>{const{mutate:m,onDone:V}=B({document:He,appApi:!0}),f=G(new Map);return V(a=>{f.delete(a.data.restoreNotes),k(),q(),T.emit("refetch_tags",K.NOTE),T.emit("notes_actioned",{action:"restore"})}),{restoreLoading(a){return f.get(a)??!1},restore(a){f.set(a,!0),m({query:a})}}},Qt=k=>(ht("data-v-68f43b2b"),k=k(),gt(),k),zt={class:"top-app-bar"},Ht=["checked","indeterminate"],Ut={class:"title"},Bt={key:0},Gt={key:1},Kt={class:"actions"},Ot={key:0,class:"scroller"},Rt={class:"start"},jt=Qt(()=>i("div",{class:"checkbox"},[i("div",{class:"skeleton-checkbox"})],-1)),Ft={class:"number"},Pt=lt('
',4),Jt=["href"],Wt=["onClick","onMouseover"],Xt={class:"start"},Yt=["onClick","checked"],Zt=["onClick","checked"],es={class:"number"},ts={class:"title"},ss={class:"subtitle"},os={class:"actions"},as={class:"time"},ns={key:2,class:"no-data-placeholder"},I=50,ls=Ue({__name:"NotesView",setup(k){var le;const q=Be(),m=U([]),{t:V}=Ge(),{parseQ:f}=Lt(),a=G({tagIds:[],trash:!1}),S=K.NOTE,O=Pe(),R=O.query,Q=U(parseInt(((le=R.page)==null?void 0:le.toString())??"1")),C=U(""),{tags:M,fetch:me}=Nt(S),{selectedIds:y,allChecked:j,realAllChecked:L,selectRealAll:ve,allCheckedAlertVisible:he,clearSelection:w,toggleAllChecked:F,toggleSelect:P,total:v,checked:z,shiftEffectingIds:J,handleItemClick:ge,handleMouseOver:ke,selectAll:fe,shouldSelect:be}=qt(m),{addToTags:ye}=St(S,M),W=t=>{const n=O.query.q;ue(q,n?`/notes?page=${t}&q=${n}`:`/notes?page=${t}`)},{keyDown:X,keyUp:Y}=wt(v,I,Q,fe,w,W,()=>{Z(y.value,L.value,v.value,C.value)}),{loading:H,fetch:A}=Ke({handle:(t,n)=>{n?Je(V(n),"error"):t&&(m.value=t.notes,v.value=t.noteCount)},document:We,variables:()=>({offset:(Q.value-1)*I,limit:I,query:C.value}),appApi:!0});function $e(t){_e(it,{type:S,tags:M.value,item:{key:t.id,title:"",size:0},selected:M.value.filter(n=>t.tags.some(x=>x.id===n.id))})}function Te(t){return t?`/notes?q=${t}`:"/notes"}const{mutate:qe,onDone:Ce}=B({document:Xe,appApi:!0}),we=()=>{qe({query:E()})},E=()=>{let t=C.value;return L.value||(t=`ids:${y.value.join(",")}`),t};Ce(t=>{Oe(t.data.exportNotes,"application/json","notes.json")});const{deleteItems:Z}=Ct(Ye,()=>{w(),A()});function Ne(t){_e(dt,{id:t.id,name:ct(t.title,{length:20}),gql:rt` - mutation DeleteNote($query: String!) { - deleteNotes(query: $query) - } - `,variables:()=>({query:`ids:${t.id}`}),done:()=>{w(),v.value--},appApi:!0,typeName:"Note"})}const{trashLoading:Se,trash:ee}=Et(w,A),{restoreLoading:te,restore:se}=xt(w,A);function Le(t){ue(q,oe(t))}function oe(t){const n=pe.currentRoute.value.query.q;return n?`/notes/${t.id}?q=${n}`:`/notes/${t.id}`}function Ae(){pe.push("/notes/create")}const ae=t=>{t.type===S&&(w(),A())},ne=t=>{t.type===S&&A()};return Re(()=>{var t;C.value=ut(((t=R.q)==null?void 0:t.toString())??""),f(a,C.value),a.trash===void 0&&(a.trash=!1),me(),A(),T.on("item_tags_updated",ne),T.on("items_tags_updated",ae),window.addEventListener("keydown",X),window.addEventListener("keyup",Y)}),je(()=>{T.off("item_tags_updated",ne),T.off("items_tags_updated",ae),window.removeEventListener("keydown",X),window.removeEventListener("keyup",Y)}),(t,n)=>{const x=_t,b=Tt,ie=$t,ce=yt,re=pt,De=Mt,Ie=ft,Ve=bt,Me=mt,Ee=vt,xe=Qe,h=Ze("tooltip");return s(),l(N,null,[i("div",zt,[i("md-checkbox",{"touch-target":"wrapper",onChange:n[0]||(n[0]=(...c)=>e(F)&&e(F)(...c)),checked:e(j),indeterminate:!e(j)&&e(z)},null,40,Ht),i("div",Ut,[e(y).length?(s(),l("span",Bt,$(t.$t("x_selected",{count:e(L)?e(v).toLocaleString():e(y).length.toLocaleString()})),1)):(s(),l("span",Gt,$(t.$t("page_title.notes"))+" ("+$(e(v).toLocaleString())+")",1)),e(z)?(s(),l(N,{key:2},[a.trash?(s(),l(N,{key:0},[g((s(),_(b,{onClick:n[1]||(n[1]=r(c=>e(Z)(e(y),e(L),e(v),C.value),["stop"]))},{icon:p(()=>[d(x)]),_:1})),[[h,t.$t("delete")]]),g((s(),_(b,{onClick:n[2]||(n[2]=r(c=>e(se)(E()),["stop"])),loading:e(te)(E())},{icon:p(()=>[d(ie)]),_:1},8,["loading"])),[[h,t.$t("restore")]])],64)):(s(),l(N,{key:1},[g((s(),_(b,{onClick:n[3]||(n[3]=r(c=>e(ee)(E()),["stop"]))},{icon:p(()=>[d(ce)]),_:1})),[[h,t.$t("move_to_trash")]]),g((s(),_(b,{onClick:n[4]||(n[4]=r(c=>e(ye)(e(y),e(L),C.value),["stop"]))},{icon:p(()=>[d(re)]),_:1})),[[h,t.$t("add_to_tags")]]),g((s(),_(b,{onClick:r(we,["stop"])},{icon:p(()=>[d(De)]),_:1})),[[h,t.$t("export_notes")]])],64))],64)):D("",!0)]),i("div",Kt,[d(Ie,{filter:a,tags:e(M),"get-url":Te,"show-trash":!0},null,8,["filter","tags"]),a.trash?D("",!0):(s(),l("md-outlined-button",{key:0,class:"btn-sm",onClick:r(Ae,["prevent"])},$(t.$t("create")),1))])]),d(Ve,{limit:I,total:e(v),"all-checked-alert-visible":e(he),"real-all-checked":e(L),"select-real-all":e(ve),"clear-selection":e(w)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),e(H)&&m.value.length===0?(s(),l("div",Ot,[(s(),l(N,null,Fe(20,c=>i("article",{class:"note-item selectable-card-skeleton",key:c},[i("div",Rt,[jt,i("span",Ft,$(c),1)]),Pt])),64))])):D("",!0),m.value.length?(s(),_(e(at),{key:1,class:de(["scroller",{"select-mode":e(z)}]),"data-key":"id","data-sources":m.value,"estimate-size":100},{item:p(({index:c,item:o})=>[(s(),l("a",{class:"item-link",key:o.id,href:oe(o)},[i("article",{class:de(["note-item selectable-card",{selected:e(y).includes(o.id)||o.id==t.$route.params.id,selecting:e(J).includes(o.id)}]),onClick:r(u=>e(ge)(u,o,c,()=>{Le(o)}),["stop","prevent"]),onMouseover:u=>e(ke)(u,c)},[i("div",Xt,[e(J).includes(o.id)?(s(),l("md-checkbox",{key:0,class:"checkbox","touch-target":"wrapper",onClick:r(u=>e(P)(u,o,c),["stop"]),checked:e(be)},null,8,Yt)):(s(),l("md-checkbox",{key:1,class:"checkbox","touch-target":"wrapper",onClick:r(u=>e(P)(u,o,c),["stop"]),checked:e(y).includes(o.id)},null,8,Zt)),i("span",es,[d(Me,{id:c+1,raw:o},null,8,["id","raw"])])]),i("div",ts,$(e(et)(o.title.split(` -`)[0].trimStart())||t.$t("meta_no_title")),1),i("div",ss,[d(Ee,{tags:o.tags,type:e(S),"only-links":!0},null,8,["tags","type"])]),i("div",os,[a.trash?(s(),l(N,{key:0},[g((s(),_(b,{class:"sm",onClick:r(u=>Ne(o),["stop","prevent"])},{icon:p(()=>[d(x)]),_:2},1032,["onClick"])),[[h,t.$t("delete")]]),g((s(),_(b,{class:"sm",onClick:r(u=>e(se)(`ids:${o.id}`),["stop","prevent"]),loading:e(te)(`ids:${o.id}`)},{icon:p(()=>[d(ie)]),_:2},1032,["onClick","loading"])),[[h,t.$t("restore")]])],64)):(s(),l(N,{key:1},[g((s(),_(b,{class:"sm",onClick:r(u=>e(ee)(`ids:${o.id}`),["stop","prevent"]),loading:e(Se)(`ids:${o.id}`)},{icon:p(()=>[d(ce)]),_:2},1032,["onClick","loading"])),[[h,t.$t("move_to_trash")]]),g((s(),_(b,{class:"sm",onClick:r(u=>$e(o),["stop","prevent"])},{icon:p(()=>[d(re)]),_:2},1032,["onClick"])),[[h,t.$t("add_to_tags")]])],64))]),i("div",as,[g((s(),l("span",null,[st($(e(ot)(o.updatedAt)),1)])),[[h,e(tt)(o.updatedAt)]])])],42,Wt)],8,Jt))]),footer:p(()=>[e(v)>I?(s(),_(xe,{key:0,page:Q.value,go:W,total:e(v),limit:I},null,8,["page","total"])):D("",!0)]),_:1},8,["data-sources","class"])):D("",!0),!e(H)&&m.value.length===0?(s(),l("div",ns,$(t.$t(e(nt)(e(H)))),1)):D("",!0)],64)}}}),ks=kt(ls,[["__scopeId","data-v-68f43b2b"]]);export{ks as default}; diff --git a/app/src/main/resources/web/assets/QrCodeGeneratorView-DcFeB_XT.js b/app/src/main/resources/web/assets/QrCodeGeneratorView-CmzM_jYJ.js similarity index 96% rename from app/src/main/resources/web/assets/QrCodeGeneratorView-DcFeB_XT.js rename to app/src/main/resources/web/assets/QrCodeGeneratorView-CmzM_jYJ.js index 3f9df486..8c60ec4b 100644 --- a/app/src/main/resources/web/assets/QrCodeGeneratorView-DcFeB_XT.js +++ b/app/src/main/resources/web/assets/QrCodeGeneratorView-CmzM_jYJ.js @@ -1 +1 @@ -import{bN as E,d as U,s as W,u as Z,h as X,k as J,c as R,a as x,t as Y,x as $,y as j,m as q,z as tt,e as rt,O as et,o as T,H as nt}from"./index-B-S542RM.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 N=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 it(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 at=function(r){E(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=it(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 m[r]}var C=function(){function r(t,e){e===void 0&&(e=0);for(var i=0,n=t.length;i>>=1;return t}var M=L(F);function ct(r){for(var t=r<<12;L(t)-M>=0;)t^=F<=0;)t^=V<5&&i++):(a=u,s=1)}return i}function gt(r){return H(r,!0)+H(r,!1)}function wt(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 K=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}(K);function xt(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 bt=function(r){E(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}(),Ct=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 A;this.write(t);var e=kt(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 Et=236,_t=17,dt=Object.prototype.toString;function It(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 O(r,t,e,i){for(var n=new G,a=Lt.getRSBlocks(r,t),s=0,f=i;s=0?d.getAt(I):0}}r=new G;for(var h=0;h=e||(r.put(Et,8),r.getLengthInBits()>=e));)r.put(_t,8);return Rt(r,t)}var zt=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?B.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 B.L:case B.M:case B.Q:case B.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 N)e.push(t);else{var i=dt.call(t);if(i==="[object String]")e.push(new at(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=vt(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=ct(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=At(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=O(this.version,u,this.encodingHint,f),i=e[0],n=e[1],a=e[2];this.matrixSize=this.version*4+17;for(var l=[],y=Tt(i,n,a),h=-1,c=Number.MAX_VALUE,g=0;g<8;g++){this.buildMatrix(y,g),l.push(this.matrix);var k=mt(this);k>0),e=Math.max(0,e>>0);for(var i=this.matrixSize,n=t*i+e*2,a=e,s=n-e,f=new Ct(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 Mt={class:"top-app-bar"},Pt={class:"title"},Ht={class:"scroll-content"},Ot={class:"qrcode-panel"},Nt=["src"],Vt=U({__name:"QrCodeGeneratorView",setup(r){const{qrCode:t}=W(Z()),e=X(""),i=()=>{try{const n=new zt;n.setEncodingHint(!0),n.setErrorCorrectionLevel(B.H),n.write(t.value),n.make(),e.value=n.toDataURL(8)}catch(n){console.error(n)}};return J(t,()=>{i()}),i(),(n,a)=>(T(),R(et,null,[x("div",Mt,[x("div",Pt,Y(n.$t("qrcode_generator")),1)]),x("div",Ht,[$(x("md-outlined-text-field",{"onUpdate:modelValue":a[0]||(a[0]=s=>tt(t)?t.value=s:null),class:"textarea",type:"textarea",rows:"3"},null,512),[[j,q(t)]]),x("div",Ot,[e.value?(T(),R("img",{key:0,src:e.value},null,8,Nt)):rt("",!0)])])],64))}}),Gt=nt(Vt,[["__scopeId","data-v-7333bea1"]]);export{Gt as default}; +import{bR as E,d as U,s as W,u as Z,h as X,k as J,c as I,a as x,t as Y,x as $,y as j,m as q,z as tt,e as rt,O as et,o as T,H as nt}from"./index-BXOWKrmL.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 N=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 it(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 at=function(r){E(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=it(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 m[r]}var C=function(){function r(t,e){e===void 0&&(e=0);for(var i=0,n=t.length;i>>=1;return t}var M=L(F);function ct(r){for(var t=r<<12;L(t)-M>=0;)t^=F<=0;)t^=V<5&&i++):(a=u,s=1)}return i}function gt(r){return H(r,!0)+H(r,!1)}function wt(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 K=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}(K);function xt(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 bt=function(r){E(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}(),Ct=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 A;this.write(t);var e=kt(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 Et=236,_t=17,dt=Object.prototype.toString;function Rt(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 O(r,t,e,i){for(var n=new G,a=Lt.getRSBlocks(r,t),s=0,f=i;s=0?d.getAt(R):0}}r=new G;for(var h=0;h=e||(r.put(Et,8),r.getLengthInBits()>=e));)r.put(_t,8);return It(r,t)}var zt=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?B.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 B.L:case B.M:case B.Q:case B.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 N)e.push(t);else{var i=dt.call(t);if(i==="[object String]")e.push(new at(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=vt(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=ct(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=At(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=O(this.version,u,this.encodingHint,f),i=e[0],n=e[1],a=e[2];this.matrixSize=this.version*4+17;for(var l=[],y=Tt(i,n,a),h=-1,c=Number.MAX_VALUE,g=0;g<8;g++){this.buildMatrix(y,g),l.push(this.matrix);var k=mt(this);k>0),e=Math.max(0,e>>0);for(var i=this.matrixSize,n=t*i+e*2,a=e,s=n-e,f=new Ct(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 Mt={class:"top-app-bar"},Pt={class:"title"},Ht={class:"scroll-content"},Ot={class:"qrcode-panel"},Nt=["src"],Vt=U({__name:"QrCodeGeneratorView",setup(r){const{qrCode:t}=W(Z()),e=X(""),i=()=>{try{const n=new zt;n.setEncodingHint(!0),n.setErrorCorrectionLevel(B.H),n.write(t.value),n.make(),e.value=n.toDataURL(8)}catch(n){console.error(n)}};return J(t,()=>{i()}),i(),(n,a)=>(T(),I(et,null,[x("div",Mt,[x("div",Pt,Y(n.$t("qrcode_generator")),1)]),x("div",Ht,[$(x("md-outlined-text-field",{"onUpdate:modelValue":a[0]||(a[0]=s=>tt(t)?t.value=s:null),class:"textarea",type:"textarea",rows:"3"},null,512),[[j,q(t)]]),x("div",Ot,[e.value?(T(),I("img",{key:0,src:e.value},null,8,Nt)):rt("",!0)])])],64))}}),Gt=nt(Vt,[["__scopeId","data-v-7333bea1"]]);export{Gt as default}; diff --git a/app/src/main/resources/web/assets/RoutesView-aNsquRXJ.js b/app/src/main/resources/web/assets/RoutesView-DuiGJr-C.js similarity index 85% rename from app/src/main/resources/web/assets/RoutesView-aNsquRXJ.js rename to app/src/main/resources/web/assets/RoutesView-DuiGJr-C.js index 034c6c24..1149c18d 100644 --- a/app/src/main/resources/web/assets/RoutesView-aNsquRXJ.js +++ b/app/src/main/resources/web/assets/RoutesView-DuiGJr-C.js @@ -1,25 +1,25 @@ -import{d as le,I as re,h as D,g as ie,j as U,ac as C,co as N,cp as ce,as as pe,k as _e,at as F,o as d,c as u,a as e,t as a,m as s,x as g,cr as A,O as h,P as b,y as x,z as ee,p as J,q as te,e as V,V as L,am as ve,l as me,C as fe,cs as ge,ct as $e,Z as S,S as he,an as ae,U as oe,w as ne,ad as ye,a3 as be}from"./index-B-S542RM.js";import{T as v,a as k,_ as ke,A as Ce}from"./question-mark-rounded-9QsiQLvf.js";import{u as we,a as Te}from"./vee-validate.esm-D5u4WlYW.js";const Ne={slot:"headline"},Ie={slot:"content"},Ee={class:"row mb-3"},Fe={class:"col-md-3 col-form-label"},Ae={class:"col-md-9"},Ve=["value"],De={key:0,class:"input-group"},Re=["placeholder"],Me={class:"inner"},Oe={class:"help-block"},qe={value:""},Se=["value"],Ue={key:2,class:"invalid-feedback"},Je={class:"row mb-3"},Le={class:"col-md-3 col-form-label"},je={class:"col-md-9"},Be=["value"],Pe={class:"row mb-3"},ze={class:"col-md-3 col-form-label"},Qe={class:"col-md-9"},Ze={value:"all"},Ge=["value"],He=["value"],Ke={class:"row mb-3"},We={class:"col-md-3 col-form-label"},Xe={class:"col-md-9"},Ye={slot:"actions"},xe=["disabled"],et={key:0,indeterminate:"",slot:"icon"},se=le({__name:"EditRouteModal",props:{data:{type:Object},devices:{type:Array},networks:{type:Array}},setup(y){var j,B,P,z,Q,Z,G,H,K;const{handleSubmit:I}=we(),r=re({if_name:"",apply_to:"all",notes:"",target:"",is_enabled:!0}),c=D(v.INTERNET),R=Object.values(v).filter(n=>[v.IP,v.NET,v.REMOTE_PORT,v.INTERNET].includes(n)),{t:w}=ie(),m=y,{mutate:M,loading:E,onDone:O}=U({document:C` +import{d as le,I as re,h as D,g as ie,j as U,ac as w,cs as N,ct as ce,au as pe,k as _e,av as F,o as d,c as u,a as e,t as a,m as s,x as g,cv as A,O as h,P as b,y as x,z as ee,p as J,q as te,e as V,V as L,ao as ve,l as me,C as fe,cw as ge,cx as $e,Z as S,S as he,ap as ae,U as oe,w as ne,ad as ye,a3 as be}from"./index-BXOWKrmL.js";import{T as v,a as k,_ as ke,A as we}from"./question-mark-rounded-BTGy5YUq.js";import{u as Ce,a as Te}from"./vee-validate.esm-Bmkx0D8v.js";const Ne={slot:"headline"},Ie={slot:"content"},Ee={class:"row mb-3"},Fe={class:"col-md-3 col-form-label"},Ae={class:"col-md-9"},Ve=["value"],De={key:0,class:"input-group"},Re=["placeholder"],Me={class:"inner"},Oe={class:"help-block"},qe={value:""},Se=["value"],Ue={key:2,class:"invalid-feedback"},Je={class:"row mb-3"},Le={class:"col-md-3 col-form-label"},je={class:"col-md-9"},Be=["value"],Pe={class:"row mb-3"},ze={class:"col-md-3 col-form-label"},Qe={class:"col-md-9"},Ze={value:"all"},Ge=["value"],He=["value"],Ke={class:"row mb-3"},We={class:"col-md-3 col-form-label"},Xe={class:"col-md-9"},Ye={slot:"actions"},xe=["disabled"],et={key:0,indeterminate:"",slot:"icon"},se=le({__name:"EditRouteModal",props:{data:{type:Object},devices:{type:Array},networks:{type:Array}},setup(y){var j,B,P,z,Q,Z,G,H,K;const{handleSubmit:I}=Ce(),r=re({if_name:"",apply_to:"all",notes:"",target:"",is_enabled:!0}),c=D(v.INTERNET),R=Object.values(v).filter(n=>[v.IP,v.NET,v.REMOTE_PORT,v.INTERNET].includes(n)),{t:C}=ie(),m=y,{mutate:M,loading:E,onDone:O}=U({document:w` mutation createConfig($input: ConfigInput!) { createConfig(input: $input) { ...ConfigFragment } } ${N} - `,options:{update:(n,i)=>{ce(n,i.data.createConfig,C` + `,options:{update:(n,i)=>{ce(n,i.data.createConfig,w` query { configs { ...ConfigFragment } } ${N} - `)}}}),{mutate:q,loading:o,onDone:T}=U({document:C` + `)}}}),{mutate:q,loading:o,onDone:T}=U({document:w` mutation updateConfig($id: ID!, $input: ConfigInput!) { updateConfig(id: $id, input: $input) { ...ConfigFragment } } ${N} - `}),{value:p,resetField:f,errorMessage:l}=Te("inputValue",pe().test("required",n=>"valid.required",n=>!k.hasInput(c.value)||!!n).test("target-value",n=>"invalid_value",n=>k.isValid(c.value,n??""))),_=(j=m.data)==null?void 0:j.data;c.value=((P=(B=m.data)==null?void 0:B.target)==null?void 0:P.type)??v.INTERNET,p.value=((Q=(z=m.data)==null?void 0:z.target)==null?void 0:Q.value)??"",r.apply_to=((G=(Z=m.data)==null?void 0:Z.applyTo)==null?void 0:G.toValue())??"all",r.if_name=(_==null?void 0:_.if_name)??((K=(H=m.networks)==null?void 0:H[0])==null?void 0:K.ifName)??"",r.notes=(_==null?void 0:_.notes)??"",r.is_enabled=(_==null?void 0:_.is_enabled)??!0,_||f(),_e(c,(n,i)=>{(n===v.INTERFACE||i===v.INTERFACE)&&(p.value="")});const $=I(()=>{const n=new k;n.type=c.value,n.value=p.value??"",r.target=n.toValue(),m.data?q({id:m.data.id,input:{group:"route",value:JSON.stringify(r)}}):M({input:{group:"route",value:JSON.stringify(r)}})});return O(()=>{F()}),T(()=>{F()}),(n,i)=>{var W,X,Y;const de=ke,ue=ve;return d(),u("md-dialog",null,[e("div",Ne,a(s(_)?n.$t("edit"):n.$t("create")),1),e("div",Ie,[e("div",Ee,[e("label",Fe,a(n.$t("traffic_to")),1),e("div",Ae,[g(e("select",{class:"form-select","onUpdate:modelValue":i[0]||(i[0]=t=>c.value=t)},[(d(!0),u(h,null,b(s(R),t=>(d(),u("option",{key:t,value:t},a(n.$t(`target_type.${t}`)),9,Ve))),128))],512),[[A,c.value]]),s(k).hasInput(c.value)?(d(),u("div",De,[g(e("input",{type:"text",class:"form-control","onUpdate:modelValue":i[1]||(i[1]=t=>ee(p)?p.value=t:null),placeholder:n.$t("for_example")+" "+s(k).hint(c.value)},null,8,Re),[[x,s(p)]]),J(ue,{class:"input-group-text"},{content:te(()=>[e("pre",Oe,a(n.$t(`examples_${c.value}`)),1)]),default:te(()=>[e("span",Me,[J(de)])]),_:1})])):V("",!0),c.value===s(v).INTERFACE?g((d(),u("select",{key:1,class:"form-select","onUpdate:modelValue":i[2]||(i[2]=t=>ee(p)?p.value=t:null)},[e("option",qe,a(n.$t("all_local_networks")),1),(d(!0),u(h,null,b((W=y.networks)==null?void 0:W.filter(t=>t.type!=="wan"),t=>(d(),u("option",{value:t.ifName},a(t.name),9,Se))),256))],512)),[[A,s(p)]]):V("",!0),s(l)?(d(),u("div",Ue,a(s(l)?n.$t(s(l)):""),1)):V("",!0)])]),e("div",Je,[e("label",Le,a(s(w)("route_via")),1),e("div",je,[g(e("select",{class:"form-select","onUpdate:modelValue":i[3]||(i[3]=t=>r.if_name=t)},[(d(!0),u(h,null,b((X=y.networks)==null?void 0:X.filter(t=>["wan","vpn"].includes(t.type)),t=>(d(),u("option",{key:t.ifName,value:t.ifName},a(t.name),9,Be))),128))],512),[[A,r.if_name]])])]),e("div",Pe,[e("label",ze,a(s(w)("apply_to")),1),e("div",Qe,[g(e("select",{class:"form-select","onUpdate:modelValue":i[4]||(i[4]=t=>r.apply_to=t)},[e("option",Ze,a(n.$t("all_devices")),1),(d(!0),u(h,null,b((Y=y.networks)==null?void 0:Y.filter(t=>!["wan","vpn"].includes(t.type)),t=>(d(),u("option",{key:t.ifName,value:"iface:"+t.ifName},a(t.name),9,Ge))),128)),(d(!0),u(h,null,b(y.devices,t=>(d(),u("option",{value:"mac:"+t.mac},a(t.name),9,He))),256))],512),[[A,r.apply_to]])])]),e("div",Ke,[e("label",We,a(s(w)("notes")),1),e("div",Xe,[g(e("textarea",{class:"form-control","onUpdate:modelValue":i[5]||(i[5]=t=>r.notes=t),rows:"3"},null,512),[[x,r.notes]])])])]),e("div",Ye,[e("md-outlined-button",{value:"cancel",onClick:i[6]||(i[6]=(...t)=>s(F)&&s(F)(...t))},a(n.$t("cancel")),1),e("md-filled-button",{value:"save",disabled:s(E)||s(o),onClick:i[7]||(i[7]=(...t)=>s($)&&s($)(...t)),autofocus:""},[s(E)||s(o)?(d(),u("md-circular-progress",et)):V("",!0),L(" "+a(n.$t("save")),1)],8,xe)])])}}}),tt={class:"top-app-bar"},at={class:"title"},ot={class:"actions"},nt={class:"table-responsive"},st={class:"table"},lt=e("th",null,"ID",-1),it={class:"actions two"},dt={class:"form-check"},ut=["disabled","onChange","checked"],rt={class:"nowrap"},ct={class:"nowrap"},pt={class:"actions two"},_t=["onClick"],vt=["onClick"],$t=le({__name:"RoutesView",setup(y){const I=D([]),r=D([]),c=D([]),{t:R}=ie();me({handle:(o,T)=>{T?fe(R(T),"error"):(I.value=o.configs.filter(p=>p.group==="route").map(p=>{const f=JSON.parse(p.value),l=new Ce;l.parse(f.apply_to);const _=new k;return _.parse(f.target),{id:p.id,createdAt:p.createdAt,updatedAt:p.updatedAt,data:f,applyTo:l,target:_}}),r.value=[...o.devices],c.value=[...o.networks])},document:C` + `}),{value:p,resetField:f,errorMessage:l}=Te("inputValue",pe().test("required",n=>"valid.required",n=>!k.hasInput(c.value)||!!n).test("target-value",n=>"invalid_value",n=>k.isValid(c.value,n??""))),_=(j=m.data)==null?void 0:j.data;c.value=((P=(B=m.data)==null?void 0:B.target)==null?void 0:P.type)??v.INTERNET,p.value=((Q=(z=m.data)==null?void 0:z.target)==null?void 0:Q.value)??"",r.apply_to=((G=(Z=m.data)==null?void 0:Z.applyTo)==null?void 0:G.toValue())??"all",r.if_name=(_==null?void 0:_.if_name)??((K=(H=m.networks)==null?void 0:H[0])==null?void 0:K.ifName)??"",r.notes=(_==null?void 0:_.notes)??"",r.is_enabled=(_==null?void 0:_.is_enabled)??!0,_||f(),_e(c,(n,i)=>{(n===v.INTERFACE||i===v.INTERFACE)&&(p.value="")});const $=I(()=>{const n=new k;n.type=c.value,n.value=p.value??"",r.target=n.toValue(),m.data?q({id:m.data.id,input:{group:"route",value:JSON.stringify(r)}}):M({input:{group:"route",value:JSON.stringify(r)}})});return O(()=>{F()}),T(()=>{F()}),(n,i)=>{var W,X,Y;const de=ke,ue=ve;return d(),u("md-dialog",null,[e("div",Ne,a(s(_)?n.$t("edit"):n.$t("create")),1),e("div",Ie,[e("div",Ee,[e("label",Fe,a(n.$t("traffic_to")),1),e("div",Ae,[g(e("select",{class:"form-select","onUpdate:modelValue":i[0]||(i[0]=t=>c.value=t)},[(d(!0),u(h,null,b(s(R),t=>(d(),u("option",{key:t,value:t},a(n.$t(`target_type.${t}`)),9,Ve))),128))],512),[[A,c.value]]),s(k).hasInput(c.value)?(d(),u("div",De,[g(e("input",{type:"text",class:"form-control","onUpdate:modelValue":i[1]||(i[1]=t=>ee(p)?p.value=t:null),placeholder:n.$t("for_example")+" "+s(k).hint(c.value)},null,8,Re),[[x,s(p)]]),J(ue,{class:"input-group-text"},{content:te(()=>[e("pre",Oe,a(n.$t(`examples_${c.value}`)),1)]),default:te(()=>[e("span",Me,[J(de)])]),_:1})])):V("",!0),c.value===s(v).INTERFACE?g((d(),u("select",{key:1,class:"form-select","onUpdate:modelValue":i[2]||(i[2]=t=>ee(p)?p.value=t:null)},[e("option",qe,a(n.$t("all_local_networks")),1),(d(!0),u(h,null,b((W=y.networks)==null?void 0:W.filter(t=>t.type!=="wan"),t=>(d(),u("option",{value:t.ifName},a(t.name),9,Se))),256))],512)),[[A,s(p)]]):V("",!0),s(l)?(d(),u("div",Ue,a(s(l)?n.$t(s(l)):""),1)):V("",!0)])]),e("div",Je,[e("label",Le,a(s(C)("route_via")),1),e("div",je,[g(e("select",{class:"form-select","onUpdate:modelValue":i[3]||(i[3]=t=>r.if_name=t)},[(d(!0),u(h,null,b((X=y.networks)==null?void 0:X.filter(t=>["wan","vpn"].includes(t.type)),t=>(d(),u("option",{key:t.ifName,value:t.ifName},a(t.name),9,Be))),128))],512),[[A,r.if_name]])])]),e("div",Pe,[e("label",ze,a(s(C)("apply_to")),1),e("div",Qe,[g(e("select",{class:"form-select","onUpdate:modelValue":i[4]||(i[4]=t=>r.apply_to=t)},[e("option",Ze,a(n.$t("all_devices")),1),(d(!0),u(h,null,b((Y=y.networks)==null?void 0:Y.filter(t=>!["wan","vpn"].includes(t.type)),t=>(d(),u("option",{key:t.ifName,value:"iface:"+t.ifName},a(t.name),9,Ge))),128)),(d(!0),u(h,null,b(y.devices,t=>(d(),u("option",{value:"mac:"+t.mac},a(t.name),9,He))),256))],512),[[A,r.apply_to]])])]),e("div",Ke,[e("label",We,a(s(C)("notes")),1),e("div",Xe,[g(e("textarea",{class:"form-control","onUpdate:modelValue":i[5]||(i[5]=t=>r.notes=t),rows:"3"},null,512),[[x,r.notes]])])])]),e("div",Ye,[e("md-outlined-button",{value:"cancel",onClick:i[6]||(i[6]=(...t)=>s(F)&&s(F)(...t))},a(n.$t("cancel")),1),e("md-filled-button",{value:"save",disabled:s(E)||s(o),onClick:i[7]||(i[7]=(...t)=>s($)&&s($)(...t)),autofocus:""},[s(E)||s(o)?(d(),u("md-circular-progress",et)):V("",!0),L(" "+a(n.$t("save")),1)],8,xe)])])}}}),tt={class:"top-app-bar"},at={class:"title"},ot={class:"actions"},nt={class:"table-responsive"},st={class:"table"},lt=e("th",null,"ID",-1),it={class:"actions two"},dt={class:"form-check"},ut=["disabled","onChange","checked"],rt={class:"nowrap"},ct={class:"nowrap"},pt={class:"actions two"},_t=["onClick"],vt=["onClick"],$t=le({__name:"RoutesView",setup(y){const I=D([]),r=D([]),c=D([]),{t:R}=ie();me({handle:(o,T)=>{T?fe(R(T),"error"):(I.value=o.configs.filter(p=>p.group==="route").map(p=>{const f=JSON.parse(p.value),l=new we;l.parse(f.apply_to);const _=new k;return _.parse(f.target),{id:p.id,createdAt:p.createdAt,updatedAt:p.updatedAt,data:f,applyTo:l,target:_}}),r.value=[...o.devices],c.value=[...o.networks])},document:w` query { configs { ...ConfigFragment @@ -34,15 +34,15 @@ import{d as le,I as re,h as D,g as ie,j as U,ac as C,co as N,cp as ce,as as pe,k ${ge} ${N} ${$e} - `});function w(o){S(ye,{id:o.id,name:o.id,gql:C` + `});function C(o){S(ye,{id:o.id,name:o.id,gql:w` mutation DeleteConfig($id: ID!) { deleteConfig(id: $id) } - `,appApi:!1,typeName:"Config"})}function m(o){S(se,{data:o,devices:r,networks:c})}function M(){S(se,{data:null,devices:r,networks:c})}const{mutate:E,loading:O}=U({document:C` + `,appApi:!1,typeName:"Config"})}function m(o){S(se,{data:o,devices:r,networks:c})}function M(){S(se,{data:null,devices:r,networks:c})}const{mutate:E,loading:O}=U({document:w` mutation updateConfig($id: ID!, $input: ConfigInput!) { updateConfig(id: $id, input: $input) { ...ConfigFragment } } ${N} - `});function q(o){E({id:o.id,input:{group:"route",value:JSON.stringify(o.data)}})}return(o,T)=>{const p=be,f=he("tooltip");return d(),u(h,null,[e("div",tt,[e("div",at,a(o.$t("page_title.routes")),1),e("div",ot,[e("button",{type:"button",class:"btn",onClick:M},a(o.$t("create")),1)])]),e("div",nt,[e("table",st,[e("thead",null,[e("tr",null,[lt,e("th",null,a(o.$t("apply_to")),1),e("th",null,a(o.$t("description")),1),e("th",null,a(o.$t("notes")),1),e("th",null,a(o.$t("enabled")),1),e("th",null,a(o.$t("created_at")),1),e("th",null,a(o.$t("updated_at")),1),e("th",it,a(o.$t("actions")),1)])]),e("tbody",null,[(d(!0),u(h,null,b(I.value,l=>{var _;return d(),u("tr",{key:l.id},[e("td",null,[J(p,{id:l.id,raw:l.data},null,8,["id","raw"])]),e("td",null,a(l.applyTo.getText(o.$t,r.value,c.value)),1),e("td",null,a(o.$t("route_description",{if_name:((_=c.value.find($=>$.ifName==l.data.if_name))==null?void 0:_.name)??l.data.if_name,target:l.target.getText(o.$t,c.value)})),1),e("td",null,a(l.notes),1),e("td",null,[e("div",dt,[e("md-checkbox",{"touch-target":"wrapper",disabled:s(O),onChange:$=>q(l),checked:l.data.is_enabled},null,40,ut)])]),e("td",rt,[g((d(),u("time",null,[L(a(s(oe)(l.createdAt)),1)])),[[f,s(ae)(l.createdAt)]])]),e("td",ct,[g((d(),u("time",null,[L(a(s(oe)(l.updatedAt)),1)])),[[f,s(ae)(l.updatedAt)]])]),e("td",pt,[e("a",{href:"#",class:"v-link",onClick:ne($=>m(l),["prevent"])},a(o.$t("edit")),9,_t),e("a",{href:"#",class:"v-link",onClick:ne($=>w(l),["prevent"])},a(o.$t("delete")),9,vt)])])}),128))])])])],64)}}});export{$t as default}; + `});function q(o){E({id:o.id,input:{group:"route",value:JSON.stringify(o.data)}})}return(o,T)=>{const p=be,f=he("tooltip");return d(),u(h,null,[e("div",tt,[e("div",at,a(o.$t("page_title.routes")),1),e("div",ot,[e("button",{type:"button",class:"btn",onClick:M},a(o.$t("create")),1)])]),e("div",nt,[e("table",st,[e("thead",null,[e("tr",null,[lt,e("th",null,a(o.$t("apply_to")),1),e("th",null,a(o.$t("description")),1),e("th",null,a(o.$t("notes")),1),e("th",null,a(o.$t("enabled")),1),e("th",null,a(o.$t("created_at")),1),e("th",null,a(o.$t("updated_at")),1),e("th",it,a(o.$t("actions")),1)])]),e("tbody",null,[(d(!0),u(h,null,b(I.value,l=>{var _;return d(),u("tr",{key:l.id},[e("td",null,[J(p,{id:l.id,raw:l.data},null,8,["id","raw"])]),e("td",null,a(l.applyTo.getText(o.$t,r.value,c.value)),1),e("td",null,a(o.$t("route_description",{if_name:((_=c.value.find($=>$.ifName==l.data.if_name))==null?void 0:_.name)??l.data.if_name,target:l.target.getText(o.$t,c.value)})),1),e("td",null,a(l.notes),1),e("td",null,[e("div",dt,[e("md-checkbox",{"touch-target":"wrapper",disabled:s(O),onChange:$=>q(l),checked:l.data.is_enabled},null,40,ut)])]),e("td",rt,[g((d(),u("time",null,[L(a(s(oe)(l.createdAt)),1)])),[[f,s(ae)(l.createdAt)]])]),e("td",ct,[g((d(),u("time",null,[L(a(s(oe)(l.updatedAt)),1)])),[[f,s(ae)(l.updatedAt)]])]),e("td",pt,[e("a",{href:"#",class:"v-link",onClick:ne($=>m(l),["prevent"])},a(o.$t("edit")),9,_t),e("a",{href:"#",class:"v-link",onClick:ne($=>C(l),["prevent"])},a(o.$t("delete")),9,vt)])])}),128))])])])],64)}}});export{$t as default}; diff --git a/app/src/main/resources/web/assets/RulesView-BRxrR5pV.js b/app/src/main/resources/web/assets/RulesView-Dl_UesmL.js similarity index 87% rename from app/src/main/resources/web/assets/RulesView-BRxrR5pV.js rename to app/src/main/resources/web/assets/RulesView-Dl_UesmL.js index 306d7bec..29358dfe 100644 --- a/app/src/main/resources/web/assets/RulesView-BRxrR5pV.js +++ b/app/src/main/resources/web/assets/RulesView-Dl_UesmL.js @@ -1,4 +1,4 @@ -import{d as ne,I as de,h as I,g as le,j as L,ac as k,co as C,cp as ce,as as re,k as ue,at as F,o as c,c as r,a as e,t as a,m as d,x as m,cq as N,cr as O,O as b,P as w,y as X,z as Y,p as J,q as x,e as A,V as j,am as pe,l as me,C as _e,cs as ve,ct as fe,Z as R,S as he,an as ee,U as te,w as oe,ad as ge,a3 as $e}from"./index-B-S542RM.js";import{T as g,a as $,_ as be,A as ke}from"./question-mark-rounded-9QsiQLvf.js";import{u as ye,a as we}from"./vee-validate.esm-D5u4WlYW.js";const Ce={slot:"headline"},Ve={slot:"content"},Te={class:"row"},De={class:"col-md-3 col-form-label"},Fe={class:"col-md-9 form-checks"},Ne={class:"form-check form-check-inline"},Ae={class:"form-check-label",for:"action-allow"},Ie={class:"form-check form-check-inline"},Me={class:"form-check-label",for:"action-block"},Se={class:"row mb-2"},Ue={for:"action",class:"col-md-3 col-form-label"},qe={class:"col-md-9 form-checks"},Ee={class:"form-check form-check-inline"},Oe={class:"form-check-label",for:"direction-inbound"},Re={class:"form-check form-check-inline"},Le={class:"form-check-label",for:"direction-outbound"},Je={class:"row mb-3"},je={class:"col-md-3 col-form-label"},Be={class:"col-md-9"},Qe=["value"],ze={key:0,class:"input-group"},Ge=["placeholder"],Pe={class:"inner"},Ze={class:"help-block"},He={value:""},Ke=["value"],We={key:2,class:"invalid-feedback"},Xe={class:"row mb-3"},Ye={class:"col-md-3 col-form-label"},xe={class:"col-md-9"},et={value:"all"},tt=["value"],ot=["value"],at={class:"row mb-3"},nt={class:"col-md-3 col-form-label"},lt={class:"col-md-9"},st={slot:"actions"},it=["disabled"],dt={key:0,indeterminate:"",slot:"icon"},ae=ne({__name:"EditRuleModal",props:{data:{type:Object},devices:{type:Array},networks:{type:Array}},setup(y){var B,Q,z,G,P,Z,H;const{handleSubmit:V}=ye(),s=de({action:"block",direction:"inbound",protocol:"all",apply_to:"all",notes:"",target:"",is_enabled:!0}),u=I(g.DNS),M=Object.values(g),{t:S}=le(),f=y,{mutate:U,loading:T,onDone:q}=L({document:k` +import{d as ne,I as de,h as I,g as le,j as L,ac as k,cs as C,ct as ce,au as re,k as ue,av as F,o as c,c as r,a as e,t as a,m as d,x as m,cu as N,cv as O,O as b,P as w,y as X,z as Y,p as J,q as x,e as A,V as j,ao as pe,l as me,C as _e,cw as ve,cx as fe,Z as R,S as he,ap as ee,U as te,w as oe,ad as ge,a3 as $e}from"./index-BXOWKrmL.js";import{T as g,a as $,_ as be,A as ke}from"./question-mark-rounded-BTGy5YUq.js";import{u as ye,a as we}from"./vee-validate.esm-Bmkx0D8v.js";const Ce={slot:"headline"},Ve={slot:"content"},Te={class:"row"},De={class:"col-md-3 col-form-label"},Fe={class:"col-md-9 form-checks"},Ne={class:"form-check form-check-inline"},Ae={class:"form-check-label",for:"action-allow"},Ie={class:"form-check form-check-inline"},Me={class:"form-check-label",for:"action-block"},Se={class:"row mb-2"},Ue={for:"action",class:"col-md-3 col-form-label"},Ee={class:"col-md-9 form-checks"},qe={class:"form-check form-check-inline"},Oe={class:"form-check-label",for:"direction-inbound"},Re={class:"form-check form-check-inline"},Le={class:"form-check-label",for:"direction-outbound"},Je={class:"row mb-3"},je={class:"col-md-3 col-form-label"},Be={class:"col-md-9"},Qe=["value"],ze={key:0,class:"input-group"},Ge=["placeholder"],Pe={class:"inner"},Ze={class:"help-block"},He={value:""},Ke=["value"],We={key:2,class:"invalid-feedback"},Xe={class:"row mb-3"},Ye={class:"col-md-3 col-form-label"},xe={class:"col-md-9"},et={value:"all"},tt=["value"],ot=["value"],at={class:"row mb-3"},nt={class:"col-md-3 col-form-label"},lt={class:"col-md-9"},st={slot:"actions"},it=["disabled"],dt={key:0,indeterminate:"",slot:"icon"},ae=ne({__name:"EditRuleModal",props:{data:{type:Object},devices:{type:Array},networks:{type:Array}},setup(y){var B,Q,z,G,P,Z,H;const{handleSubmit:V}=ye(),s=de({action:"block",direction:"inbound",protocol:"all",apply_to:"all",notes:"",target:"",is_enabled:!0}),u=I(g.DNS),M=Object.values(g),{t:S}=le(),f=y,{mutate:U,loading:T,onDone:E}=L({document:k` mutation createConfig($input: ConfigInput!) { createConfig(input: $input) { ...ConfigFragment @@ -12,14 +12,14 @@ import{d as ne,I as de,h as I,g as le,j as L,ac as k,co as C,cp as ce,as as re,k } } ${C} - `)}}}),{mutate:E,loading:D,onDone:l}=L({document:k` + `)}}}),{mutate:q,loading:D,onDone:l}=L({document:k` mutation updateConfig($id: ID!, $input: ConfigInput!) { updateConfig(id: $id, input: $input) { ...ConfigFragment } } ${C} - `}),{value:p,resetField:_,errorMessage:v}=we("inputValue",re().test("required",n=>"valid.required",n=>!$.hasInput(u.value)||!!n).test("target-value",n=>"invalid_value",n=>$.isValid(u.value,n??""))),o=(B=f.data)==null?void 0:B.data;s.action=(o==null?void 0:o.action)??"block",s.direction=(o==null?void 0:o.direction)??"inbound",s.protocol=(o==null?void 0:o.protocol)??"all",u.value=((z=(Q=f.data)==null?void 0:Q.target)==null?void 0:z.type)??g.DNS,p.value=((P=(G=f.data)==null?void 0:G.target)==null?void 0:P.value)??"",s.apply_to=((H=(Z=f.data)==null?void 0:Z.applyTo)==null?void 0:H.toValue())??"all",s.notes=(o==null?void 0:o.notes)??"",s.is_enabled=(o==null?void 0:o.is_enabled)??!0,o||_(),ue(u,(n,i)=>{(n===g.INTERFACE||i===g.INTERFACE)&&(p.value="")});const h=V(()=>{const n=new $;n.type=u.value,n.value=p.value??"",s.target=n.toValue(),f.data?E({id:f.data.id,input:{group:"rule",value:JSON.stringify(s)}}):U({input:{group:"rule",value:JSON.stringify(s)}})});return q(()=>{F()}),l(()=>{F()}),(n,i)=>{var K,W;const se=be,ie=pe;return c(),r("md-dialog",null,[e("div",Ce,a(d(o)?n.$t("edit"):n.$t("create")),1),e("div",Ve,[e("div",Te,[e("label",De,a(n.$t("actions")),1),e("div",Fe,[e("div",Ne,[m(e("input",{class:"form-check-input",type:"radio",name:"action",id:"action-allow",value:"allow","onUpdate:modelValue":i[0]||(i[0]=t=>s.action=t)},null,512),[[N,s.action]]),e("label",Ae,a(n.$t("allow")),1)]),e("div",Ie,[m(e("input",{class:"form-check-input",type:"radio",name:"action",id:"action-block",value:"block","onUpdate:modelValue":i[1]||(i[1]=t=>s.action=t)},null,512),[[N,s.action]]),e("label",Me,a(n.$t("block")),1)])])]),e("div",Se,[e("label",Ue,a(n.$t("direction")),1),e("div",qe,[e("div",Ee,[m(e("input",{class:"form-check-input",type:"radio",name:"direction",id:"direction-inbound",value:"inbound","onUpdate:modelValue":i[2]||(i[2]=t=>s.direction=t)},null,512),[[N,s.direction]]),e("label",Oe,a(n.$t("inbound")),1)]),e("div",Re,[m(e("input",{class:"form-check-input",type:"radio",name:"direction",id:"direction-outbound",value:"outbound","onUpdate:modelValue":i[3]||(i[3]=t=>s.direction=t)},null,512),[[N,s.direction]]),e("label",Le,a(n.$t("outbound")),1)])])]),e("div",Je,[e("label",je,a(n.$t("match")),1),e("div",Be,[m(e("select",{class:"form-select","onUpdate:modelValue":i[4]||(i[4]=t=>u.value=t)},[(c(!0),r(b,null,w(d(M),t=>(c(),r("option",{value:t},a(n.$t(`target_type.${t}`)),9,Qe))),256))],512),[[O,u.value]]),d($).hasInput(u.value)?(c(),r("div",ze,[m(e("input",{type:"text",class:"form-control","onUpdate:modelValue":i[5]||(i[5]=t=>Y(p)?p.value=t:null),placeholder:n.$t("for_example")+" "+d($).hint(u.value)},null,8,Ge),[[X,d(p)]]),J(ie,{class:"input-group-text"},{content:x(()=>[e("pre",Ze,a(n.$t(`examples_${u.value}`)),1)]),default:x(()=>[e("span",Pe,[J(se)])]),_:1})])):A("",!0),u.value===d(g).INTERFACE?m((c(),r("select",{key:1,class:"form-select","onUpdate:modelValue":i[6]||(i[6]=t=>Y(p)?p.value=t:null)},[e("option",He,a(n.$t("all_local_networks")),1),(c(!0),r(b,null,w((K=y.networks)==null?void 0:K.filter(t=>t.type!=="wan"),t=>(c(),r("option",{value:t.ifName},a(t.name),9,Ke))),256))],512)),[[O,d(p)]]):A("",!0),d(v)?(c(),r("div",We,a(d(v)?n.$t(d(v)):""),1)):A("",!0)])]),e("div",Xe,[e("label",Ye,a(d(S)("apply_to")),1),e("div",xe,[m(e("select",{class:"form-select","onUpdate:modelValue":i[7]||(i[7]=t=>s.apply_to=t)},[e("option",et,a(n.$t("all_devices")),1),(c(!0),r(b,null,w((W=y.networks)==null?void 0:W.filter(t=>t.type!=="wan"),t=>(c(),r("option",{key:t.ifName,value:"iface:"+t.ifName},a(t.name),9,tt))),128)),(c(!0),r(b,null,w(y.devices,t=>(c(),r("option",{value:"mac:"+t.mac},a(t.name),9,ot))),256))],512),[[O,s.apply_to]])])]),e("div",at,[e("label",nt,a(n.$t("notes")),1),e("div",lt,[m(e("textarea",{class:"form-control","onUpdate:modelValue":i[8]||(i[8]=t=>s.notes=t),rows:"3"},null,512),[[X,s.notes]])])])]),e("div",st,[e("md-outlined-button",{value:"cancel",onClick:i[9]||(i[9]=(...t)=>d(F)&&d(F)(...t))},a(n.$t("cancel")),1),e("md-filled-button",{value:"save",disabled:d(T)||d(D),onClick:i[10]||(i[10]=(...t)=>d(h)&&d(h)(...t)),autofocus:""},[d(T)||d(D)?(c(),r("md-circular-progress",dt)):A("",!0),j(" "+a(n.$t("save")),1)],8,it)])])}}}),ct={class:"top-app-bar"},rt={class:"title"},ut={class:"top-app-bar"},pt={class:"title"},mt={class:"actions"},_t={class:"table-responsive"},vt={class:"table"},ft=e("th",null,"ID",-1),ht={class:"actions two"},gt={class:"form-check"},$t=["disabled","onChange","checked"],bt={class:"nowrap"},kt={class:"nowrap"},yt={class:"actions two"},wt=["onClick"],Ct=["onClick"],Ft=ne({__name:"RulesView",setup(y){const V=I([]),s=I([]),u=I([]),{t:M}=le();me({handle:(l,p)=>{p?_e(M(p),"error"):(V.value=l.configs.filter(_=>_.group==="rule").map(_=>{const v=JSON.parse(_.value),o=new ke;o.parse(v.apply_to);const h=new $;return h.parse(v.target),{id:_.id,createdAt:_.createdAt,updatedAt:_.updatedAt,data:v,applyTo:o,target:h}}),s.value=[...l.devices],u.value=[...l.networks])},document:k` + `}),{value:p,resetField:_,errorMessage:v}=we("inputValue",re().test("required",n=>"valid.required",n=>!$.hasInput(u.value)||!!n).test("target-value",n=>"invalid_value",n=>$.isValid(u.value,n??""))),o=(B=f.data)==null?void 0:B.data;s.action=(o==null?void 0:o.action)??"block",s.direction=(o==null?void 0:o.direction)??"inbound",s.protocol=(o==null?void 0:o.protocol)??"all",u.value=((z=(Q=f.data)==null?void 0:Q.target)==null?void 0:z.type)??g.DNS,p.value=((P=(G=f.data)==null?void 0:G.target)==null?void 0:P.value)??"",s.apply_to=((H=(Z=f.data)==null?void 0:Z.applyTo)==null?void 0:H.toValue())??"all",s.notes=(o==null?void 0:o.notes)??"",s.is_enabled=(o==null?void 0:o.is_enabled)??!0,o||_(),ue(u,(n,i)=>{(n===g.INTERFACE||i===g.INTERFACE)&&(p.value="")});const h=V(()=>{const n=new $;n.type=u.value,n.value=p.value??"",s.target=n.toValue(),f.data?q({id:f.data.id,input:{group:"rule",value:JSON.stringify(s)}}):U({input:{group:"rule",value:JSON.stringify(s)}})});return E(()=>{F()}),l(()=>{F()}),(n,i)=>{var K,W;const se=be,ie=pe;return c(),r("md-dialog",null,[e("div",Ce,a(d(o)?n.$t("edit"):n.$t("create")),1),e("div",Ve,[e("div",Te,[e("label",De,a(n.$t("actions")),1),e("div",Fe,[e("div",Ne,[m(e("input",{class:"form-check-input",type:"radio",name:"action",id:"action-allow",value:"allow","onUpdate:modelValue":i[0]||(i[0]=t=>s.action=t)},null,512),[[N,s.action]]),e("label",Ae,a(n.$t("allow")),1)]),e("div",Ie,[m(e("input",{class:"form-check-input",type:"radio",name:"action",id:"action-block",value:"block","onUpdate:modelValue":i[1]||(i[1]=t=>s.action=t)},null,512),[[N,s.action]]),e("label",Me,a(n.$t("block")),1)])])]),e("div",Se,[e("label",Ue,a(n.$t("direction")),1),e("div",Ee,[e("div",qe,[m(e("input",{class:"form-check-input",type:"radio",name:"direction",id:"direction-inbound",value:"inbound","onUpdate:modelValue":i[2]||(i[2]=t=>s.direction=t)},null,512),[[N,s.direction]]),e("label",Oe,a(n.$t("inbound")),1)]),e("div",Re,[m(e("input",{class:"form-check-input",type:"radio",name:"direction",id:"direction-outbound",value:"outbound","onUpdate:modelValue":i[3]||(i[3]=t=>s.direction=t)},null,512),[[N,s.direction]]),e("label",Le,a(n.$t("outbound")),1)])])]),e("div",Je,[e("label",je,a(n.$t("match")),1),e("div",Be,[m(e("select",{class:"form-select","onUpdate:modelValue":i[4]||(i[4]=t=>u.value=t)},[(c(!0),r(b,null,w(d(M),t=>(c(),r("option",{value:t},a(n.$t(`target_type.${t}`)),9,Qe))),256))],512),[[O,u.value]]),d($).hasInput(u.value)?(c(),r("div",ze,[m(e("input",{type:"text",class:"form-control","onUpdate:modelValue":i[5]||(i[5]=t=>Y(p)?p.value=t:null),placeholder:n.$t("for_example")+" "+d($).hint(u.value)},null,8,Ge),[[X,d(p)]]),J(ie,{class:"input-group-text"},{content:x(()=>[e("pre",Ze,a(n.$t(`examples_${u.value}`)),1)]),default:x(()=>[e("span",Pe,[J(se)])]),_:1})])):A("",!0),u.value===d(g).INTERFACE?m((c(),r("select",{key:1,class:"form-select","onUpdate:modelValue":i[6]||(i[6]=t=>Y(p)?p.value=t:null)},[e("option",He,a(n.$t("all_local_networks")),1),(c(!0),r(b,null,w((K=y.networks)==null?void 0:K.filter(t=>t.type!=="wan"),t=>(c(),r("option",{value:t.ifName},a(t.name),9,Ke))),256))],512)),[[O,d(p)]]):A("",!0),d(v)?(c(),r("div",We,a(d(v)?n.$t(d(v)):""),1)):A("",!0)])]),e("div",Xe,[e("label",Ye,a(d(S)("apply_to")),1),e("div",xe,[m(e("select",{class:"form-select","onUpdate:modelValue":i[7]||(i[7]=t=>s.apply_to=t)},[e("option",et,a(n.$t("all_devices")),1),(c(!0),r(b,null,w((W=y.networks)==null?void 0:W.filter(t=>t.type!=="wan"),t=>(c(),r("option",{key:t.ifName,value:"iface:"+t.ifName},a(t.name),9,tt))),128)),(c(!0),r(b,null,w(y.devices,t=>(c(),r("option",{value:"mac:"+t.mac},a(t.name),9,ot))),256))],512),[[O,s.apply_to]])])]),e("div",at,[e("label",nt,a(n.$t("notes")),1),e("div",lt,[m(e("textarea",{class:"form-control","onUpdate:modelValue":i[8]||(i[8]=t=>s.notes=t),rows:"3"},null,512),[[X,s.notes]])])])]),e("div",st,[e("md-outlined-button",{value:"cancel",onClick:i[9]||(i[9]=(...t)=>d(F)&&d(F)(...t))},a(n.$t("cancel")),1),e("md-filled-button",{value:"save",disabled:d(T)||d(D),onClick:i[10]||(i[10]=(...t)=>d(h)&&d(h)(...t)),autofocus:""},[d(T)||d(D)?(c(),r("md-circular-progress",dt)):A("",!0),j(" "+a(n.$t("save")),1)],8,it)])])}}}),ct={class:"top-app-bar"},rt={class:"title"},ut={class:"top-app-bar"},pt={class:"title"},mt={class:"actions"},_t={class:"table-responsive"},vt={class:"table"},ft=e("th",null,"ID",-1),ht={class:"actions two"},gt={class:"form-check"},$t=["disabled","onChange","checked"],bt={class:"nowrap"},kt={class:"nowrap"},yt={class:"actions two"},wt=["onClick"],Ct=["onClick"],Ft=ne({__name:"RulesView",setup(y){const V=I([]),s=I([]),u=I([]),{t:M}=le();me({handle:(l,p)=>{p?_e(M(p),"error"):(V.value=l.configs.filter(_=>_.group==="rule").map(_=>{const v=JSON.parse(_.value),o=new ke;o.parse(v.apply_to);const h=new $;return h.parse(v.target),{id:_.id,createdAt:_.createdAt,updatedAt:_.updatedAt,data:v,applyTo:o,target:h}}),s.value=[...l.devices],u.value=[...l.networks])},document:k` query { configs { ...ConfigFragment @@ -38,11 +38,11 @@ import{d as ne,I as de,h as I,g as le,j as L,ac as k,co as C,cp as ce,as as re,k mutation DeleteConfig($id: ID!) { deleteConfig(id: $id) } -`;function f(l){R(ge,{id:l.id,name:l.id,gql:S,appApi:!1,typeName:"Config"})}function U(l){R(ae,{data:l,devices:s,networks:u})}function T(){R(ae,{data:null,devices:s,networks:u})}const{mutate:q,loading:E}=L({document:k` +`;function f(l){R(ge,{id:l.id,name:l.id,gql:S,appApi:!1,typeName:"Config"})}function U(l){R(ae,{data:l,devices:s,networks:u})}function T(){R(ae,{data:null,devices:s,networks:u})}const{mutate:E,loading:q}=L({document:k` mutation updateConfig($id: ID!, $input: ConfigInput!) { updateConfig(id: $id, input: $input) { ...ConfigFragment } } ${C} - `});function D(l){q({id:l.id,input:{group:"rule",value:JSON.stringify(l.data)}})}return(l,p)=>{const _=$e,v=he("tooltip");return c(),r(b,null,[e("div",ct,[e("div",rt,a(l.$t("page_title.rules")),1)]),e("div",ut,[e("div",pt,a(l.$t("page_title.rules")),1),e("div",mt,[e("button",{type:"button",class:"btn",onClick:T},a(l.$t("create")),1)])]),e("div",_t,[e("table",vt,[e("thead",null,[e("tr",null,[ft,e("th",null,a(l.$t("apply_to")),1),e("th",null,a(l.$t("description")),1),e("th",null,a(l.$t("notes")),1),e("th",null,a(l.$t("enabled")),1),e("th",null,a(l.$t("created_at")),1),e("th",null,a(l.$t("updated_at")),1),e("th",ht,a(l.$t("actions")),1)])]),e("tbody",null,[(c(!0),r(b,null,w(V.value,o=>(c(),r("tr",{key:o.id},[e("td",null,[J(_,{id:o.id,raw:o.data},null,8,["id","raw"])]),e("td",null,a(o.applyTo.getText(l.$t,s.value,u.value)),1),e("td",null,a(l.$t(`rule_${o.data.direction}`,{action:l.$t(o.data.action),target:o.target.getText(l.$t,u.value)})),1),e("td",null,a(o.data.notes),1),e("td",null,[e("div",gt,[e("md-checkbox",{"touch-target":"wrapper",disabled:d(E),onChange:h=>D(o),checked:o.data.is_enabled},null,40,$t)])]),e("td",bt,[m((c(),r("time",null,[j(a(d(te)(o.createdAt)),1)])),[[v,d(ee)(o.createdAt)]])]),e("td",kt,[m((c(),r("time",null,[j(a(d(te)(o.updatedAt)),1)])),[[v,d(ee)(o.updatedAt)]])]),e("td",yt,[e("a",{href:"#",class:"v-link",onClick:oe(h=>U(o),["prevent"])},a(l.$t("edit")),9,wt),e("a",{href:"#",class:"v-link",onClick:oe(h=>f(o),["prevent"])},a(l.$t("delete")),9,Ct)])]))),128))])])])],64)}}});export{Ft as default}; + `});function D(l){E({id:l.id,input:{group:"rule",value:JSON.stringify(l.data)}})}return(l,p)=>{const _=$e,v=he("tooltip");return c(),r(b,null,[e("div",ct,[e("div",rt,a(l.$t("page_title.rules")),1)]),e("div",ut,[e("div",pt,a(l.$t("page_title.rules")),1),e("div",mt,[e("button",{type:"button",class:"btn",onClick:T},a(l.$t("create")),1)])]),e("div",_t,[e("table",vt,[e("thead",null,[e("tr",null,[ft,e("th",null,a(l.$t("apply_to")),1),e("th",null,a(l.$t("description")),1),e("th",null,a(l.$t("notes")),1),e("th",null,a(l.$t("enabled")),1),e("th",null,a(l.$t("created_at")),1),e("th",null,a(l.$t("updated_at")),1),e("th",ht,a(l.$t("actions")),1)])]),e("tbody",null,[(c(!0),r(b,null,w(V.value,o=>(c(),r("tr",{key:o.id},[e("td",null,[J(_,{id:o.id,raw:o.data},null,8,["id","raw"])]),e("td",null,a(o.applyTo.getText(l.$t,s.value,u.value)),1),e("td",null,a(l.$t(`rule_${o.data.direction}`,{action:l.$t(o.data.action),target:o.target.getText(l.$t,u.value)})),1),e("td",null,a(o.data.notes),1),e("td",null,[e("div",gt,[e("md-checkbox",{"touch-target":"wrapper",disabled:d(q),onChange:h=>D(o),checked:o.data.is_enabled},null,40,$t)])]),e("td",bt,[m((c(),r("time",null,[j(a(d(te)(o.createdAt)),1)])),[[v,d(ee)(o.createdAt)]])]),e("td",kt,[m((c(),r("time",null,[j(a(d(te)(o.updatedAt)),1)])),[[v,d(ee)(o.updatedAt)]])]),e("td",yt,[e("a",{href:"#",class:"v-link",onClick:oe(h=>U(o),["prevent"])},a(l.$t("edit")),9,wt),e("a",{href:"#",class:"v-link",onClick:oe(h=>f(o),["prevent"])},a(l.$t("delete")),9,Ct)])]))),128))])])])],64)}}});export{Ft as default}; diff --git a/app/src/main/resources/web/assets/ScreenMirrorView-C9zlEI1C.js b/app/src/main/resources/web/assets/ScreenMirrorView-B7mqDN-X.js similarity index 69% rename from app/src/main/resources/web/assets/ScreenMirrorView-C9zlEI1C.js rename to app/src/main/resources/web/assets/ScreenMirrorView-B7mqDN-X.js index 8b3c78a5..3f7d405f 100644 --- a/app/src/main/resources/web/assets/ScreenMirrorView-C9zlEI1C.js +++ b/app/src/main/resources/web/assets/ScreenMirrorView-B7mqDN-X.js @@ -1 +1 @@ -import{o,c as n,a as e,d as P,g as j,h as b,l as W,C as A,bO as le,j as D,bP as ie,at as R,t as i,O as I,P as U,x as p,y as x,m as r,e as H,V as C,H as Y,L as re,M as ce,p as w,aH as ue,bQ as de,Z as _e,bR as ve,bS as me,bT as pe,bU as he,S as fe,bV as ge,F as be,G as $e,a1 as z}from"./index-B-S542RM.js";import{_ as ye}from"./refresh-rounded-B2-aEsw4.js";const qe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Te=e("path",{fill:"currentColor",d:"M6 18H4q-.425 0-.712-.288T3 17t.288-.712T4 16h3q.425 0 .713.288T8 17v3q0 .425-.288.713T7 21t-.712-.288T6 20zm12 0v2q0 .425-.288.713T17 21t-.712-.288T16 20v-3q0-.425.288-.712T17 16h3q.425 0 .713.288T21 17t-.288.713T20 18zM6 6V4q0-.425.288-.712T7 3t.713.288T8 4v3q0 .425-.288.713T7 8H4q-.425 0-.712-.288T3 7t.288-.712T4 6zm12 0h2q.425 0 .713.288T21 7t-.288.713T20 8h-3q-.425 0-.712-.288T16 7V4q0-.425.288-.712T17 3t.713.288T18 4z"},null,-1),Me=[Te];function Se($,d){return o(),n("svg",qe,[...Me])}const ke={name:"material-symbols-fullscreen-exit-rounded",render:Se},we={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ce=e("path",{fill:"currentColor",d:"M5 19h2q.425 0 .713.288T8 20t-.288.713T7 21H4q-.425 0-.712-.288T3 20v-3q0-.425.288-.712T4 16t.713.288T5 17zm14 0v-2q0-.425.288-.712T20 16t.713.288T21 17v3q0 .425-.288.713T20 21h-3q-.425 0-.712-.288T16 20t.288-.712T17 19zM5 5v2q0 .425-.288.713T4 8t-.712-.288T3 7V4q0-.425.288-.712T4 3h3q.425 0 .713.288T8 4t-.288.713T7 5zm14 0h-2q-.425 0-.712-.288T16 4t.288-.712T17 3h3q.425 0 .713.288T21 4v3q0 .425-.288.713T20 8t-.712-.288T19 7z"},null,-1),Ie=[Ce];function Le($,d){return o(),n("svg",we,[...Ie])}const Qe={name:"material-symbols-fullscreen-rounded",render:Le},Ve={xmlns:"http://www.w3.org/2000/svg",viewBox:"176.31 -11.19 346.88 581.88"},ze=e("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),Ae=e("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),De=e("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),He=[ze,Ae,De];function Be($,d){return o(),n("svg",Ve,[...He])}const Fe={render:Be},Ge={slot:"headline"},Oe={slot:"content"},Re={class:"form-row"},Ue=["data-value","label","selected"],Ee={class:"form-row"},Ne={class:"form-label"},xe=["disabled"],Pe=["value"],je={slot:"headline"},We={class:"form-row"},Ye={class:"form-label"},Ze=["disabled"],Je=["value"],Ke={slot:"headline"},Xe={class:"form-row"},et={slot:"actions"},tt=["disabled"],st={key:0,indeterminate:"",slot:"icon"},ot=P({__name:"ChangeScreenMirrorQualityModal",setup($){const{t:d}=j(),v=b(720),c=b(60),_=b("quality_sd"),m=[{id:"quality_ld",data:{resolution:480,quality:50}},{id:"quality_sd",data:{resolution:720,quality:50}},{id:"quality_hd",data:{resolution:1080,quality:50}},{id:"custom"}],h=[10,20,30,40,50,60,70,80,90,100],T=[480,720,1080];W({handle:(a,u)=>{var s;u?A(d(u),"error"):a&&(v.value=a.screenMirrorQuality.resolution,c.value=a.screenMirrorQuality.quality,_.value=((s=m.find(g=>{var M,V;return((M=g.data)==null?void 0:M.resolution)===v.value&&((V=g.data)==null?void 0:V.quality)===c.value}))==null?void 0:s.id)||"custom")},document:le,appApi:!0});function k(a){return a===10?`10 (${d("low_quality")})`:a===60?`60 (${d("high_quality")})`:a===100?`100 (${d("best_quality")})`:a.toString()}function L(a){const{button:u}=a.detail,s=u.dataset.value;_.value=s;const g=m.find(M=>M.id===s);g&&g.data&&(v.value=g.data.resolution,c.value=g.data.quality)}const{mutate:f,loading:Q,onDone:F}=D({document:ie,appApi:!0});F(()=>{R()});const G=()=>{f({resolution:v.value,quality:c.value})};return(a,u)=>(o(),n("md-dialog",null,[e("div",Ge,i(a.$t("change_quality")),1),e("div",Oe,[e("div",Re,[e("md-outlined-segmented-button-set",{onSegmentedButtonSetSelection:L},[(o(),n(I,null,U(m,s=>e("md-outlined-segmented-button",{key:s.id,"data-value":s.id,label:a.$t(s.id),selected:_.value===s.id},null,8,Ue)),64))],32)]),e("div",Ee,[e("label",Ne,i(a.$t("compress_quality")),1),p(e("md-outlined-select",{class:"flex-2","menu-positioning":"fixed","onUpdate:modelValue":u[0]||(u[0]=s=>c.value=s),disabled:_.value!=="custom"},[(o(),n(I,null,U(h,s=>e("md-select-option",{key:s,value:s},[e("div",je,i(k(s)),1)],8,Pe)),64))],8,xe),[[x,c.value,void 0,{number:!0}]])]),e("div",We,[e("label",Ye,i(a.$t("resolution")),1),p(e("md-outlined-select",{class:"flex-2","menu-positioning":"fixed","onUpdate:modelValue":u[1]||(u[1]=s=>v.value=s),disabled:_.value!=="custom"},[(o(),n(I,null,U(T,s=>e("md-select-option",{key:s,value:s},[e("div",Ke,i(s)+"p",1)],8,Je)),64))],8,Ze),[[x,v.value,void 0,{number:!0}]])]),e("div",Xe,i(a.$t("screen_mirror_quality_tips")),1)]),e("div",et,[e("md-outlined-button",{value:"cancel",onClick:u[2]||(u[2]=(...s)=>r(R)&&r(R)(...s))},i(a.$t("cancel")),1),e("md-filled-button",{value:"save",disabled:r(Q),onClick:G,autofocus:""},[r(Q)?(o(),n("md-circular-progress",st)):H("",!0),C(" "+i(a.$t("save")),1)],8,tt)])]))}}),nt=Y(ot,[["__scopeId","data-v-4f617088"]]),B=$=>(be("data-v-b208b784"),$=$(),$e(),$),at={class:"screen-mirror"},lt={class:"top-app-bar"},it={class:"title"},rt={class:"actions"},ct=B(()=>e("md-ripple",null,null,-1)),ut=["disabled"],dt=B(()=>e("md-ripple",null,null,-1)),_t=B(()=>e("md-ripple",null,null,-1)),vt={class:"content"},mt={key:0},pt=B(()=>e("md-circular-progress",{indeterminate:""},null,-1)),ht=[pt],ft={key:0,class:"request-permission"},gt={class:"tap-phone"},bt={class:"text"},$t={key:1,class:"request-permission-failed"},yt=P({__name:"ScreenMirrorView",setup($){let d;const{t:v}=j(),c=b(!1),_=b(0),m=b(!1),h=b(!1),T=b(!1),k=b(),L=async t=>{c.value=!0,g(t),m.value=!1,_.value=0,clearInterval(d)};let f=!1;const{mutate:Q}=D({document:de,appApi:!0}),F=()=>{h.value=!h.value,h.value||E()},G=()=>{_e(nt)},a=()=>{Q(),f=!0},u=t=>{t&&f&&(f=!1,clearInterval(d),O())},s=()=>{const t=k.value;if(!t)return;const l=new Date,S="screenshot-"+[l.getFullYear(),l.getMonth()+1,l.getDate(),l.getHours(),l.getMinutes(),l.getSeconds(),l.getMilliseconds()].join("")+".png";ve(t.toDataURL(),S)};function g(t){const l=k.value;if(!l||h.value&&!T.value)return;T.value=!1;const S=l.getContext("2d"),y=new Image;y.src=URL.createObjectURL(t),y.onload=function(){S&&(l.width=y.width,l.height=y.height,S.drawImage(y,0,0))}}re(()=>{z.on("screen_mirroring",L),z.on("app_socket_connection_changed",u)}),ce(()=>{z.off("screen_mirroring",L),z.off("app_socket_connection_changed",u)});const{mutate:M,loading:V,onDone:Z,onError:J}=D({document:me,appApi:!0}),{loading:K,refetch:E}=W({handle:(t,l)=>{l?A(v(l),"error"):t.screenMirrorState?(c.value=!0,T.value=!0):(c.value=!1,T.value=!1,O())},options:{fetchPolicy:"no-cache"},document:pe,appApi:!0}),X=()=>{document.getElementsByClassName("screen-mirror")[0].requestFullscreen({navigationUI:"show"})},O=()=>{m.value=!1,h.value=!1,M()},ee=()=>{document.exitFullscreen()};J(t=>{A(v(t.message)),m.value=!0}),Z(()=>{_.value=30,d=setInterval(()=>{_.value--,_.value<=0&&(m.value=!0,clearInterval(d))},1e3)});const{mutate:N,loading:te,onDone:se,onError:oe}=D({document:he,appApi:!0});return oe(t=>{A(v(t.message))}),se(()=>{m.value=!0,c.value=!1}),(t,l)=>{const S=ye,y=Qe,ne=ke,q=fe("tooltip");return o(),n("div",at,[e("div",lt,[e("div",it,i(t.$t("screen_mirror")),1),e("div",rt,[c.value?(o(),n(I,{key:0},[p((o(),n("button",{class:"btn-icon",onClick:l[0]||(l[0]=()=>r(E)())},[ct,w(S)])),[[q,t.$t("refresh")]]),p((o(),n("md-outlined-button",{onClick:G,class:"btn-sm"},[C(i(t.$t("mirror_quality")),1)])),[[q,t.$t("change_quality")]]),p((o(),n("md-outlined-button",{onClick:s,class:"btn-sm"},[C(i(t.$t("screenshot")),1)])),[[q,t.$t("screenshot")]]),p((o(),n("md-outlined-button",{onClick:F,class:"btn-sm"},[C(i(t.$t(h.value?"resume":"pause")),1)])),[[q,t.$t(h.value?"resume":"pause")]]),p((o(),n("md-outlined-button",{disabled:r(te),onClick:l[1]||(l[1]=(...ae)=>r(N)&&r(N)(...ae)),class:"btn-sm btn-stop"},[C(i(t.$t("stop_mirror")),1)],8,ut)),[[q,t.$t("stop_mirror")]]),p((o(),n("button",{class:"btn-icon btn-enter-fullscreen",onClick:X},[dt,w(y)])),[[q,t.$t("fullscreen")]]),p((o(),n("button",{class:"btn-icon btn-exit-fullscreen",onClick:ee},[_t,w(ne)])),[[q,t.$t("exit_fullscreen")]])],64)):r(f)?H("",!0):(o(),n("md-outlined-button",{key:1,class:"btn-sm",onClick:a},i(t.$t("relaunch_app")),1))])]),e("div",vt,[r(K)||r(V)||r(f)?(o(),n("div",mt,ht)):(o(),n(I,{key:1},[_.value>0&&!r(f)?(o(),n("div",ft,[e("div",gt,[w(r(ge))]),e("pre",bt,i(t.$t("screen_mirror_request_permission",{seconds:_.value})),1)])):H("",!0),m.value&&!c.value&&!r(f)?(o(),n("div",$t,[w(r(Fe)),e("p",null,i(t.$t("screen_mirror_request_permission_failed")),1),e("md-filled-button",{onClick:O},i(t.$t("try_again")),1)])):H("",!0),p(e("canvas",{ref_key:"canvasRef",ref:k,class:"canvas"},null,512),[[ue,c.value]])],64))])])}}}),Mt=Y(yt,[["__scopeId","data-v-b208b784"]]);export{Mt as default}; +import{o,c as n,a as e,d as P,g as j,h as b,l as W,C as A,bS as le,j as D,bT as ie,av as E,t as i,O as I,P as N,x as p,y as x,m as r,e as H,V as C,H as Y,L as re,M as ce,p as w,aL as ue,bU as de,Z as _e,bV as ve,bW as me,bX as pe,bY as he,S as fe,bZ as ge,F as be,G as $e,a1 as Q}from"./index-BXOWKrmL.js";import{_ as ye}from"./refresh-rounded-CMms9dRf.js";const qe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Te=e("path",{fill:"currentColor",d:"M6 18H4q-.425 0-.712-.288T3 17t.288-.712T4 16h3q.425 0 .713.288T8 17v3q0 .425-.288.713T7 21t-.712-.288T6 20zm12 0v2q0 .425-.288.713T17 21t-.712-.288T16 20v-3q0-.425.288-.712T17 16h3q.425 0 .713.288T21 17t-.288.713T20 18zM6 6V4q0-.425.288-.712T7 3t.713.288T8 4v3q0 .425-.288.713T7 8H4q-.425 0-.712-.288T3 7t.288-.712T4 6zm12 0h2q.425 0 .713.288T21 7t-.288.713T20 8h-3q-.425 0-.712-.288T16 7V4q0-.425.288-.712T17 3t.713.288T18 4z"},null,-1),Me=[Te];function Se($,d){return o(),n("svg",qe,[...Me])}const ke={name:"material-symbols-fullscreen-exit-rounded",render:Se},we={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ce=e("path",{fill:"currentColor",d:"M5 19h2q.425 0 .713.288T8 20t-.288.713T7 21H4q-.425 0-.712-.288T3 20v-3q0-.425.288-.712T4 16t.713.288T5 17zm14 0v-2q0-.425.288-.712T20 16t.713.288T21 17v3q0 .425-.288.713T20 21h-3q-.425 0-.712-.288T16 20t.288-.712T17 19zM5 5v2q0 .425-.288.713T4 8t-.712-.288T3 7V4q0-.425.288-.712T4 3h3q.425 0 .713.288T8 4t-.288.713T7 5zm14 0h-2q-.425 0-.712-.288T16 4t.288-.712T17 3h3q.425 0 .713.288T21 4v3q0 .425-.288.713T20 8t-.712-.288T19 7z"},null,-1),Ie=[Ce];function Le($,d){return o(),n("svg",we,[...Ie])}const Ve={name:"material-symbols-fullscreen-rounded",render:Le},ze={xmlns:"http://www.w3.org/2000/svg",viewBox:"176.31 -11.19 346.88 581.88"},Qe=e("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),Ae=e("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),De=e("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),He=[Qe,Ae,De];function Be($,d){return o(),n("svg",ze,[...He])}const Fe={render:Be},Ge={slot:"headline"},Ue={slot:"content"},Ee={class:"form-row"},Ne=["data-value","label","selected"],Oe={class:"form-row"},Re={class:"form-label"},xe=["disabled"],Pe=["value"],je={slot:"headline"},We={class:"form-row"},Ye={class:"form-label"},Ze=["disabled"],Xe=["value"],Je={slot:"headline"},Ke={class:"form-row"},et={slot:"actions"},tt=["disabled"],st={key:0,indeterminate:"",slot:"icon"},ot=P({__name:"ChangeScreenMirrorQualityModal",setup($){const{t:d}=j(),v=b(720),c=b(60),_=b("quality_sd"),m=[{id:"quality_ld",data:{resolution:480,quality:50}},{id:"quality_sd",data:{resolution:720,quality:50}},{id:"quality_hd",data:{resolution:1080,quality:50}},{id:"custom"}],h=[10,20,30,40,50,60,70,80,90,100],T=[480,720,1080];W({handle:(a,u)=>{var s;u?A(d(u),"error"):a&&(v.value=a.screenMirrorQuality.resolution,c.value=a.screenMirrorQuality.quality,_.value=((s=m.find(g=>{var M,z;return((M=g.data)==null?void 0:M.resolution)===v.value&&((z=g.data)==null?void 0:z.quality)===c.value}))==null?void 0:s.id)||"custom")},document:le,appApi:!0});function k(a){return a===10?`10 (${d("low_quality")})`:a===60?`60 (${d("high_quality")})`:a===100?`100 (${d("best_quality")})`:a.toString()}function L(a){const{button:u}=a.detail,s=u.dataset.value;_.value=s;const g=m.find(M=>M.id===s);g&&g.data&&(v.value=g.data.resolution,c.value=g.data.quality)}const{mutate:f,loading:V,onDone:F}=D({document:ie,appApi:!0});F(()=>{E()});const G=()=>{f({resolution:v.value,quality:c.value})};return(a,u)=>(o(),n("md-dialog",null,[e("div",Ge,i(a.$t("change_quality")),1),e("div",Ue,[e("div",Ee,[e("md-outlined-segmented-button-set",{onSegmentedButtonSetSelection:L},[(o(),n(I,null,N(m,s=>e("md-outlined-segmented-button",{key:s.id,"data-value":s.id,label:a.$t(s.id),selected:_.value===s.id},null,8,Ne)),64))],32)]),e("div",Oe,[e("label",Re,i(a.$t("compress_quality")),1),p(e("md-outlined-select",{class:"flex-2","menu-positioning":"fixed","onUpdate:modelValue":u[0]||(u[0]=s=>c.value=s),disabled:_.value!=="custom"},[(o(),n(I,null,N(h,s=>e("md-select-option",{key:s,value:s},[e("div",je,i(k(s)),1)],8,Pe)),64))],8,xe),[[x,c.value,void 0,{number:!0}]])]),e("div",We,[e("label",Ye,i(a.$t("resolution")),1),p(e("md-outlined-select",{class:"flex-2","menu-positioning":"fixed","onUpdate:modelValue":u[1]||(u[1]=s=>v.value=s),disabled:_.value!=="custom"},[(o(),n(I,null,N(T,s=>e("md-select-option",{key:s,value:s},[e("div",Je,i(s)+"p",1)],8,Xe)),64))],8,Ze),[[x,v.value,void 0,{number:!0}]])]),e("div",Ke,i(a.$t("screen_mirror_quality_tips")),1)]),e("div",et,[e("md-outlined-button",{value:"cancel",onClick:u[2]||(u[2]=(...s)=>r(E)&&r(E)(...s))},i(a.$t("cancel")),1),e("md-filled-button",{value:"save",disabled:r(V),onClick:G,autofocus:""},[r(V)?(o(),n("md-circular-progress",st)):H("",!0),C(" "+i(a.$t("save")),1)],8,tt)])]))}}),nt=Y(ot,[["__scopeId","data-v-4f617088"]]),B=$=>(be("data-v-b208b784"),$=$(),$e(),$),at={class:"screen-mirror"},lt={class:"top-app-bar"},it={class:"title"},rt={class:"actions"},ct=B(()=>e("md-ripple",null,null,-1)),ut=["disabled"],dt=B(()=>e("md-ripple",null,null,-1)),_t=B(()=>e("md-ripple",null,null,-1)),vt={class:"content"},mt={key:0},pt=B(()=>e("md-circular-progress",{indeterminate:""},null,-1)),ht=[pt],ft={key:0,class:"request-permission"},gt={class:"tap-phone"},bt={class:"text"},$t={key:1,class:"request-permission-failed"},yt=P({__name:"ScreenMirrorView",setup($){let d;const{t:v}=j(),c=b(!1),_=b(0),m=b(!1),h=b(!1),T=b(!1),k=b(),L=async t=>{c.value=!0,g(t),m.value=!1,_.value=0,clearInterval(d)};let f=!1;const{mutate:V}=D({document:de,appApi:!0}),F=()=>{h.value=!h.value,h.value||O()},G=()=>{_e(nt)},a=()=>{V(),f=!0},u=t=>{t&&f&&(f=!1,clearInterval(d),U())},s=()=>{const t=k.value;if(!t)return;const l=new Date,S="screenshot-"+[l.getFullYear(),l.getMonth()+1,l.getDate(),l.getHours(),l.getMinutes(),l.getSeconds(),l.getMilliseconds()].join("")+".png";ve(t.toDataURL(),S)};function g(t){const l=k.value;if(!l||h.value&&!T.value)return;T.value=!1;const S=l.getContext("2d"),y=new Image;y.src=URL.createObjectURL(t),y.onload=function(){S&&(l.width=y.width,l.height=y.height,S.drawImage(y,0,0))}}re(()=>{Q.on("screen_mirroring",L),Q.on("app_socket_connection_changed",u)}),ce(()=>{Q.off("screen_mirroring",L),Q.off("app_socket_connection_changed",u)});const{mutate:M,loading:z,onDone:Z,onError:X}=D({document:me,appApi:!0}),{loading:J,refetch:O}=W({handle:(t,l)=>{l?A(v(l),"error"):t.screenMirrorState?(c.value=!0,T.value=!0):(c.value=!1,T.value=!1,U())},options:{fetchPolicy:"no-cache"},document:pe,appApi:!0}),K=()=>{document.getElementsByClassName("screen-mirror")[0].requestFullscreen({navigationUI:"show"})},U=()=>{m.value=!1,h.value=!1,M()},ee=()=>{document.exitFullscreen()};X(t=>{A(v(t.message)),m.value=!0}),Z(()=>{_.value=30,d=setInterval(()=>{_.value--,_.value<=0&&(m.value=!0,clearInterval(d))},1e3)});const{mutate:R,loading:te,onDone:se,onError:oe}=D({document:he,appApi:!0});return oe(t=>{A(v(t.message))}),se(()=>{m.value=!0,c.value=!1}),(t,l)=>{const S=ye,y=Ve,ne=ke,q=fe("tooltip");return o(),n("div",at,[e("div",lt,[e("div",it,i(t.$t("screen_mirror")),1),e("div",rt,[c.value?(o(),n(I,{key:0},[p((o(),n("button",{class:"btn-icon",onClick:l[0]||(l[0]=()=>r(O)())},[ct,w(S)])),[[q,t.$t("refresh")]]),p((o(),n("md-outlined-button",{onClick:G,class:"btn-sm"},[C(i(t.$t("mirror_quality")),1)])),[[q,t.$t("change_quality")]]),p((o(),n("md-outlined-button",{onClick:s,class:"btn-sm"},[C(i(t.$t("screenshot")),1)])),[[q,t.$t("screenshot")]]),p((o(),n("md-outlined-button",{onClick:F,class:"btn-sm"},[C(i(t.$t(h.value?"resume":"pause")),1)])),[[q,t.$t(h.value?"resume":"pause")]]),p((o(),n("md-outlined-button",{disabled:r(te),onClick:l[1]||(l[1]=(...ae)=>r(R)&&r(R)(...ae)),class:"btn-sm btn-stop"},[C(i(t.$t("stop_mirror")),1)],8,ut)),[[q,t.$t("stop_mirror")]]),p((o(),n("button",{class:"btn-icon btn-enter-fullscreen",onClick:K},[dt,w(y)])),[[q,t.$t("fullscreen")]]),p((o(),n("button",{class:"btn-icon btn-exit-fullscreen",onClick:ee},[_t,w(ne)])),[[q,t.$t("exit_fullscreen")]])],64)):r(f)?H("",!0):(o(),n("md-outlined-button",{key:1,class:"btn-sm",onClick:a},i(t.$t("relaunch_app")),1))])]),e("div",vt,[r(J)||r(z)||r(f)?(o(),n("div",mt,ht)):(o(),n(I,{key:1},[_.value>0&&!r(f)?(o(),n("div",ft,[e("div",gt,[w(r(ge))]),e("pre",bt,i(t.$t("screen_mirror_request_permission",{seconds:_.value})),1)])):H("",!0),m.value&&!c.value&&!r(f)?(o(),n("div",$t,[w(r(Fe)),e("p",null,i(t.$t("screen_mirror_request_permission_failed")),1),e("md-filled-button",{onClick:U},i(t.$t("try_again")),1)])):H("",!0),p(e("canvas",{ref_key:"canvasRef",ref:k,class:"canvas"},null,512),[[ue,c.value]])],64))])])}}}),Mt=Y(yt,[["__scopeId","data-v-b208b784"]]);export{Mt as default}; diff --git a/app/src/main/resources/web/assets/SearchInput-D0d2xIiv.js b/app/src/main/resources/web/assets/SearchInput-D0d2xIiv.js deleted file mode 100644 index c88bdc84..00000000 --- a/app/src/main/resources/web/assets/SearchInput-D0d2xIiv.js +++ /dev/null @@ -1 +0,0 @@ -import{d as w,o as l,c as o,O as d,V as q,t as h,a as i,w as k,N as Z,u as ee,I as te,aF as b,h as le,S as oe,e as c,p,P as m,x as C,y as ne,A as se,bK as I,f as ie,b$ as re,a2 as de,F as ae,G as ce,H as ue}from"./index-B-S542RM.js";import{_ as he}from"./search-rounded-TCa6qTC1.js";import{_ as _e}from"./rss-feed-rounded-DzJ3TVan.js";import{u as me}from"./search-k8SzNgo1.js";const ut=w({__name:"AllCheckedAlert",props:{limit:{type:Number,required:!0},total:{type:Number,required:!0},allCheckedAlertVisible:{type:Boolean,required:!0},realAllChecked:{type:Boolean,required:!0},selectRealAll:{type:Function},clearSelection:{type:Function}},setup(r){return(u,f)=>(l(),o("div",{class:Z(["alert-info alert-all-checked",{show:r.allCheckedAlertVisible||r.realAllChecked}])},[r.allCheckedAlertVisible?(l(),o(d,{key:0},[q(h(u.$t("all_items_on_this_page_are_selected",{count:r.limit}))+" ",1),i("a",{href:"#",onClick:f[0]||(f[0]=k((...y)=>r.selectRealAll&&r.selectRealAll(...y),["prevent"]))},h(u.$t("select_all_items",{count:r.total})),1)],64)):(l(),o(d,{key:1},[q(h(u.$t("all_items_are_selected",{count:r.total}))+" ",1),i("a",{href:"#",onClick:f[1]||(f[1]=k((...y)=>r.clearSelection&&r.clearSelection(...y),["prevent"]))},h(u.$t("clear_selection")),1)],64))],2))}}),fe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},pe=i("path",{fill:"currentColor",d:"M7.425 9.475L11.15 3.4q.15-.25.375-.363T12 2.925t.475.113t.375.362l3.725 6.075q.15.25.15.525t-.125.5t-.35.363t-.525.137h-7.45q-.3 0-.525-.137T7.4 10.5t-.125-.5t.15-.525M17.5 22q-1.875 0-3.187-1.312T13 17.5t1.313-3.187T17.5 13t3.188 1.313T22 17.5t-1.312 3.188T17.5 22M3 20.5v-6q0-.425.288-.712T4 13.5h6q.425 0 .713.288T11 14.5v6q0 .425-.288.713T10 21.5H4q-.425 0-.712-.288T3 20.5m14.5-.5q1.05 0 1.775-.725T20 17.5t-.725-1.775T17.5 15t-1.775.725T15 17.5t.725 1.775T17.5 20M5 19.5h4v-4H5zM10.05 9h3.9L12 5.85zm7.45 8.5"},null,-1),ye=[pe];function ve(r,u){return l(),o("svg",fe,[...ye])}const be={name:"material-symbols-category-outline-rounded",render:ve},ke={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Te=i("path",{fill:"currentColor",d:"M7 21q-.825 0-1.412-.587T5 19V6q-.425 0-.712-.288T4 5t.288-.712T5 4h4q0-.425.288-.712T10 3h4q.425 0 .713.288T15 4h4q.425 0 .713.288T20 5t-.288.713T19 6v13q0 .825-.587 1.413T17 21zM17 6H7v13h10zm-7 11q.425 0 .713-.288T11 16V9q0-.425-.288-.712T10 8t-.712.288T9 9v7q0 .425.288.713T10 17m4 0q.425 0 .713-.288T15 16V9q0-.425-.288-.712T14 8t-.712.288T13 9v7q0 .425.288.713T14 17M7 6v13z"},null,-1),ge=[Te];function $e(r,u){return l(),o("svg",ke,[...ge])}const qe={name:"material-symbols-delete-outline-rounded",render:$e},Ce={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ie=i("path",{fill:"currentColor",d:"M9 16.5q-1.05 0-1.775-.725T6.5 14t.725-1.775T9 11.5t1.775.725T11.5 14t-.725 1.775T9 16.5M5 22q-.825 0-1.412-.587T3 20V6q0-.825.588-1.412T5 4h1V3q0-.425.288-.712T7 2t.713.288T8 3v1h8V3q0-.425.288-.712T17 2t.713.288T18 3v1h1q.825 0 1.413.588T21 6v14q0 .825-.587 1.413T19 22zm0-2h14V10H5zM5 8h14V6H5zm0 0V6z"},null,-1),we=[Ie];function Ve(r,u){return l(),o("svg",Ce,[...we])}const Se={name:"material-symbols-today-outline-rounded",render:Ve},Ae=r=>(ae("data-v-20647efc"),r=r(),ce(),r),Be={key:0},Me={key:"filter-text"},Fe=["label"],Re={key:"filter-today"},ze=["label"],xe={key:"filter-trash"},Ne=["label"],He=["label"],De=["label"],Ke=["label"],Le=["label","onRemove"],Pe=Ae(()=>i("md-ripple",null,null,-1)),Ue=["open"],Oe={class:"filters"},je={class:"form-row"},Ee=["label"],Ge={key:0},Qe=["label","selected"],Je={key:1},We=["label","selected"],Xe={class:"form-label"},Ye=["label","selected","onClick"],Ze={class:"form-label"},et=["label","selected","onClick"],tt={class:"form-label"},lt=["label","selected","onClick"],ot={class:"form-label"},nt=["label","selected","onClick"],st={class:"buttons"},it=w({__name:"SearchInput",props:{filter:{type:Object,required:!0},getUrl:{type:Function,required:!0},tags:{type:Array,default:()=>[]},feeds:{type:Array,default:()=>[]},buckets:{type:Array,default:()=>[]},types:{type:Array,default:()=>[]},showChips:{type:Boolean,default:!0},showToday:{type:Boolean,default:!1},showTrash:{type:Boolean,default:!1}},setup(r,{expose:u}){const{copyFilter:f,buildQ:y}=me(),V=ee(),s=te({tagIds:[]}),n=r,S=b(()=>(n.tags??[]).filter(t=>{var a;return(a=n.filter.tagIds)==null?void 0:a.includes(t.id)})),A=b(()=>(n.feeds??[]).filter(t=>n.filter.feedId===t.id)),B=b(()=>(n.buckets??[]).filter(t=>n.filter.bucketId===t.id)),M=b(()=>(n.types??[]).filter(t=>n.filter.type===t.id)),T=le(!1);function F(t){s.tagIds.includes(t.id)?I(s.tagIds,a=>a===t.id):s.tagIds.push(t.id)}function R(t){s.feedId===t.id?s.feedId=void 0:s.feedId=t.id}function z(t){s.bucketId===t.id?s.bucketId=void 0:s.bucketId=t.id}function x(t){s.type===t.id?s.type=void 0:s.type=t.id}function $(){f(s,n.filter),_(),g()}function _(){ie(V,n.getUrl(y(n.filter)))}function N(){n.filter.feedId=void 0,_()}function H(){n.filter.type=void 0,_()}function D(){n.filter.bucketId=void 0,_()}function K(t){I(n.filter.tagIds??[],a=>a===t.id),_()}function L(){n.filter.today=void 0,_()}function P(){n.filter.trash=!1,_()}function U(){n.filter.text=void 0,_()}function O(){T.value=!0,f(n.filter,s)}function g(){T.value=!1}return u({dismiss:g}),(t,a)=>{const j=Se,E=qe,G=re,Q=_e,J=be,W=de,X=he,Y=oe("tooltip");return l(),o(d,null,[r.showChips?(l(),o("md-chip-set",Be,[n.filter.text?(l(),o("div",Me,[i("md-input-chip",{label:n.filter.text,"remove-only":"",onRemove:U},null,40,Fe)])):c("",!0),n.filter.today?(l(),o("div",Re,[i("md-input-chip",{label:t.$t("today"),"remove-only":"",onRemove:L},[p(j,{slot:"icon"})],40,ze)])):c("",!0),n.filter.trash?(l(),o("div",xe,[i("md-input-chip",{label:t.$t("trash"),"remove-only":"",onRemove:P},[p(E,{slot:"icon"})],40,Ne)])):c("",!0),(l(!0),o(d,null,m(B.value,e=>(l(),o("md-input-chip",{key:e.id,label:e.name,"remove-only":"",onRemove:D},[p(G,{slot:"icon"})],40,He))),128)),(l(!0),o(d,null,m(A.value,e=>(l(),o("md-input-chip",{key:e.id,label:e.name,"remove-only":"",onRemove:N},[p(Q,{slot:"icon"})],40,De))),128)),(l(!0),o(d,null,m(M.value,e=>(l(),o("md-input-chip",{key:e.id,label:e.name,"remove-only":"",onRemove:H},[p(J,{slot:"icon"})],40,Ke))),128)),(l(!0),o(d,null,m(S.value,e=>(l(),o("md-input-chip",{key:e.id,label:e.name,"remove-only":"",onRemove:v=>K(e)},[p(W,{slot:"icon"})],40,Le))),128))])):c("",!0),C((l(),o("button",{id:"btn-search",class:"btn-icon",onClick:k(O,["prevent"])},[Pe,p(X)])),[[Y,t.$t("search")]]),i("md-menu",{positioning:"popover",anchor:"btn-search","menu-corner":"start-end","anchor-corner":"end-end","stay-open-on-focusout":"",quick:"",open:T.value,onClosed:g},[i("div",Oe,[i("div",je,[C(i("md-outlined-text-field",{label:t.$t("keywords"),"onUpdate:modelValue":a[0]||(a[0]=e=>s.text=e),onKeyup:se($,["enter"])},null,40,Ee),[[ne,s.text]])]),n.showToday?(l(),o("md-chip-set",Ge,[i("md-filter-chip",{key:"chip-today",label:t.$t("today"),selected:s.today,onClick:a[1]||(a[1]=e=>s.today=!s.today)},null,8,Qe)])):c("",!0),n.showTrash?(l(),o("md-chip-set",Je,[i("md-filter-chip",{key:"chip-today",label:t.$t("trash"),selected:s.trash,onClick:a[2]||(a[2]=e=>s.trash=!s.trash)},null,8,We)])):c("",!0),n.tags.length>0?(l(),o(d,{key:2},[i("label",Xe,h(t.$t("tags")),1),i("md-chip-set",null,[(l(!0),o(d,null,m(r.tags,e=>(l(),o("md-filter-chip",{key:e.id,label:e.name,selected:s.tagIds.includes(e.id),onClick:v=>F(e)},null,8,Ye))),128))])],64)):c("",!0),n.feeds.length>0?(l(),o(d,{key:3},[i("label",Ze,h(t.$t("page_title.feeds")),1),i("md-chip-set",null,[(l(!0),o(d,null,m(r.feeds,e=>(l(),o("md-filter-chip",{key:e.id,label:e.name,selected:s.feedId===e.id,onClick:v=>R(e)},null,8,et))),128))])],64)):c("",!0),n.buckets.length>0?(l(),o(d,{key:4},[i("label",tt,h(t.$t("folders")),1),i("md-chip-set",null,[(l(!0),o(d,null,m(r.buckets,e=>(l(),o("md-filter-chip",{key:e.id,label:e.name,selected:s.bucketId===e.id,onClick:v=>z(e)},null,8,lt))),128))])],64)):c("",!0),n.types.length>0?(l(),o(d,{key:5},[i("label",ot,h(t.$t("types")),1),i("md-chip-set",null,[(l(!0),o(d,null,m(r.types,e=>(l(),o("md-filter-chip",{key:e.id,label:e.name,selected:s.type===e.id,onClick:v=>x(e)},null,8,nt))),128))])],64)):c("",!0),i("div",st,[i("md-filled-button",{onClick:k($,["stop"])},h(t.$t("search")),1)])])],40,Ue)],64)}}}),ht=ue(it,[["__scopeId","data-v-20647efc"]]);export{ht as _,ut as a,qe as b}; diff --git a/app/src/main/resources/web/assets/SearchInput-ZLdB9f4z.js b/app/src/main/resources/web/assets/SearchInput-ZLdB9f4z.js new file mode 100644 index 00000000..a59d5d5b --- /dev/null +++ b/app/src/main/resources/web/assets/SearchInput-ZLdB9f4z.js @@ -0,0 +1 @@ +import{d as w,o as l,c as o,O as d,V as C,t as u,a as i,w as k,N as Z,u as ee,I as te,aH as b,h as le,S as oe,e as c,p,P as m,x as I,y as ne,A as se,bO as q,f as ie,aU as re,c3 as de,a2 as ae,F as ce,G as ue,H as _e}from"./index-BXOWKrmL.js";import{_ as he}from"./search-rounded-DpdJ2cSK.js";import{_ as me}from"./rss-feed-rounded-DN7yBBrR.js";import{u as fe}from"./search-B-8eugyA.js";const rt=w({__name:"AllCheckedAlert",props:{limit:{type:Number,required:!0},total:{type:Number,required:!0},allCheckedAlertVisible:{type:Boolean,required:!0},realAllChecked:{type:Boolean,required:!0},selectRealAll:{type:Function},clearSelection:{type:Function}},setup(r){return(_,f)=>(l(),o("div",{class:Z(["alert-info alert-all-checked",{show:r.allCheckedAlertVisible||r.realAllChecked}])},[r.allCheckedAlertVisible?(l(),o(d,{key:0},[C(u(_.$t("all_items_on_this_page_are_selected",{count:r.limit}))+" ",1),i("a",{href:"#",onClick:f[0]||(f[0]=k((...y)=>r.selectRealAll&&r.selectRealAll(...y),["prevent"]))},u(_.$t("select_all_items",{count:r.total})),1)],64)):(l(),o(d,{key:1},[C(u(_.$t("all_items_are_selected",{count:r.total}))+" ",1),i("a",{href:"#",onClick:f[1]||(f[1]=k((...y)=>r.clearSelection&&r.clearSelection(...y),["prevent"]))},u(_.$t("clear_selection")),1)],64))],2))}}),pe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ye=i("path",{fill:"currentColor",d:"M7.425 9.475L11.15 3.4q.15-.25.375-.363T12 2.925t.475.113t.375.362l3.725 6.075q.15.25.15.525t-.125.5t-.35.363t-.525.137h-7.45q-.3 0-.525-.137T7.4 10.5t-.125-.5t.15-.525M17.5 22q-1.875 0-3.187-1.312T13 17.5t1.313-3.187T17.5 13t3.188 1.313T22 17.5t-1.312 3.188T17.5 22M3 20.5v-6q0-.425.288-.712T4 13.5h6q.425 0 .713.288T11 14.5v6q0 .425-.288.713T10 21.5H4q-.425 0-.712-.288T3 20.5m14.5-.5q1.05 0 1.775-.725T20 17.5t-.725-1.775T17.5 15t-1.775.725T15 17.5t.725 1.775T17.5 20M5 19.5h4v-4H5zM10.05 9h3.9L12 5.85zm7.45 8.5"},null,-1),ve=[ye];function be(r,_){return l(),o("svg",pe,[...ve])}const ke={name:"material-symbols-category-outline-rounded",render:be},Te={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ge=i("path",{fill:"currentColor",d:"M9 16.5q-1.05 0-1.775-.725T6.5 14t.725-1.775T9 11.5t1.775.725T11.5 14t-.725 1.775T9 16.5M5 22q-.825 0-1.412-.587T3 20V6q0-.825.588-1.412T5 4h1V3q0-.425.288-.712T7 2t.713.288T8 3v1h8V3q0-.425.288-.712T17 2t.713.288T18 3v1h1q.825 0 1.413.588T21 6v14q0 .825-.587 1.413T19 22zm0-2h14V10H5zM5 8h14V6H5zm0 0V6z"},null,-1),$e=[ge];function Ce(r,_){return l(),o("svg",Te,[...$e])}const Ie={name:"material-symbols-today-outline-rounded",render:Ce},qe=r=>(ce("data-v-20647efc"),r=r(),ue(),r),we={key:0},Se={key:"filter-text"},Ae=["label"],Ve={key:"filter-today"},Be=["label"],Me={key:"filter-trash"},Re=["label"],Fe=["label"],ze=["label"],Ne=["label"],He=["label","onRemove"],xe=qe(()=>i("md-ripple",null,null,-1)),De=["open"],Ue={class:"filters"},Le={class:"form-row"},Oe=["label"],Pe={key:0},Ke=["label","selected"],je={key:1},Ee=["label","selected"],Ge={class:"form-label"},Qe=["label","selected","onClick"],Je={class:"form-label"},We=["label","selected","onClick"],Xe={class:"form-label"},Ye=["label","selected","onClick"],Ze={class:"form-label"},et=["label","selected","onClick"],tt={class:"buttons"},lt=w({__name:"SearchInput",props:{filter:{type:Object,required:!0},getUrl:{type:Function,required:!0},tags:{type:Array,default:()=>[]},feeds:{type:Array,default:()=>[]},buckets:{type:Array,default:()=>[]},types:{type:Array,default:()=>[]},showChips:{type:Boolean,default:!0},showToday:{type:Boolean,default:!1},showTrash:{type:Boolean,default:!1}},setup(r,{expose:_}){const{copyFilter:f,buildQ:y}=fe(),S=ee(),s=te({tagIds:[]}),n=r,A=b(()=>(n.tags??[]).filter(t=>{var a;return(a=n.filter.tagIds)==null?void 0:a.includes(t.id)})),V=b(()=>(n.feeds??[]).filter(t=>n.filter.feedId===t.id)),B=b(()=>(n.buckets??[]).filter(t=>n.filter.bucketId===t.id)),M=b(()=>(n.types??[]).filter(t=>n.filter.type===t.id)),T=le(!1);function R(t){s.tagIds.includes(t.id)?q(s.tagIds,a=>a===t.id):s.tagIds.push(t.id)}function F(t){s.feedId===t.id?s.feedId=void 0:s.feedId=t.id}function z(t){s.bucketId===t.id?s.bucketId=void 0:s.bucketId=t.id}function N(t){s.type===t.id?s.type=void 0:s.type=t.id}function $(){f(s,n.filter),h(),g()}function h(){ie(S,n.getUrl(y(n.filter)))}function H(){n.filter.feedId=void 0,h()}function x(){n.filter.type=void 0,h()}function D(){n.filter.bucketId=void 0,h()}function U(t){q(n.filter.tagIds??[],a=>a===t.id),h()}function L(){n.filter.today=void 0,h()}function O(){n.filter.trash=!1,h()}function P(){n.filter.text=void 0,h()}function K(){T.value=!0,f(n.filter,s)}function g(){T.value=!1}return _({dismiss:g}),(t,a)=>{const j=Ie,E=re,G=de,Q=me,J=ke,W=ae,X=he,Y=oe("tooltip");return l(),o(d,null,[r.showChips?(l(),o("md-chip-set",we,[n.filter.text?(l(),o("div",Se,[i("md-input-chip",{label:n.filter.text,"remove-only":"",onRemove:P},null,40,Ae)])):c("",!0),n.filter.today?(l(),o("div",Ve,[i("md-input-chip",{label:t.$t("today"),"remove-only":"",onRemove:L},[p(j,{slot:"icon"})],40,Be)])):c("",!0),n.filter.trash?(l(),o("div",Me,[i("md-input-chip",{label:t.$t("trash"),"remove-only":"",onRemove:O},[p(E,{slot:"icon"})],40,Re)])):c("",!0),(l(!0),o(d,null,m(B.value,e=>(l(),o("md-input-chip",{key:e.id,label:e.name,"remove-only":"",onRemove:D},[p(G,{slot:"icon"})],40,Fe))),128)),(l(!0),o(d,null,m(V.value,e=>(l(),o("md-input-chip",{key:e.id,label:e.name,"remove-only":"",onRemove:H},[p(Q,{slot:"icon"})],40,ze))),128)),(l(!0),o(d,null,m(M.value,e=>(l(),o("md-input-chip",{key:e.id,label:e.name,"remove-only":"",onRemove:x},[p(J,{slot:"icon"})],40,Ne))),128)),(l(!0),o(d,null,m(A.value,e=>(l(),o("md-input-chip",{key:e.id,label:e.name,"remove-only":"",onRemove:v=>U(e)},[p(W,{slot:"icon"})],40,He))),128))])):c("",!0),I((l(),o("button",{id:"btn-search",class:"btn-icon",onClick:k(K,["prevent"])},[xe,p(X)])),[[Y,t.$t("search")]]),i("md-menu",{positioning:"popover",anchor:"btn-search","menu-corner":"start-end","anchor-corner":"end-end","stay-open-on-focusout":"",quick:"",open:T.value,onClosed:g},[i("div",Ue,[i("div",Le,[I(i("md-outlined-text-field",{label:t.$t("keywords"),"onUpdate:modelValue":a[0]||(a[0]=e=>s.text=e),onKeyup:se($,["enter"])},null,40,Oe),[[ne,s.text]])]),n.showToday?(l(),o("md-chip-set",Pe,[i("md-filter-chip",{key:"chip-today",label:t.$t("today"),selected:s.today,onClick:a[1]||(a[1]=e=>s.today=!s.today)},null,8,Ke)])):c("",!0),n.showTrash?(l(),o("md-chip-set",je,[i("md-filter-chip",{key:"chip-today",label:t.$t("trash"),selected:s.trash,onClick:a[2]||(a[2]=e=>s.trash=!s.trash)},null,8,Ee)])):c("",!0),n.tags.length>0?(l(),o(d,{key:2},[i("label",Ge,u(t.$t("tags")),1),i("md-chip-set",null,[(l(!0),o(d,null,m(r.tags,e=>(l(),o("md-filter-chip",{key:e.id,label:e.name,selected:s.tagIds.includes(e.id),onClick:v=>R(e)},null,8,Qe))),128))])],64)):c("",!0),n.feeds.length>0?(l(),o(d,{key:3},[i("label",Je,u(t.$t("page_title.feeds")),1),i("md-chip-set",null,[(l(!0),o(d,null,m(r.feeds,e=>(l(),o("md-filter-chip",{key:e.id,label:e.name,selected:s.feedId===e.id,onClick:v=>F(e)},null,8,We))),128))])],64)):c("",!0),n.buckets.length>0?(l(),o(d,{key:4},[i("label",Xe,u(t.$t("folders")),1),i("md-chip-set",null,[(l(!0),o(d,null,m(r.buckets,e=>(l(),o("md-filter-chip",{key:e.id,label:e.name,selected:s.bucketId===e.id,onClick:v=>z(e)},null,8,Ye))),128))])],64)):c("",!0),n.types.length>0?(l(),o(d,{key:5},[i("label",Ze,u(t.$t("types")),1),i("md-chip-set",null,[(l(!0),o(d,null,m(r.types,e=>(l(),o("md-filter-chip",{key:e.id,label:e.name,selected:s.type===e.id,onClick:v=>N(e)},null,8,et))),128))])],64)):c("",!0),i("div",tt,[i("md-filled-button",{onClick:k($,["stop"])},u(t.$t("search")),1)])])],40,De)],64)}}}),dt=_e(lt,[["__scopeId","data-v-20647efc"]]);export{dt as _,rt as a}; diff --git a/app/src/main/resources/web/assets/TagFilter.vuevuetypescriptsetuptruelang-DXYEFTYG.js b/app/src/main/resources/web/assets/TagFilter.vuevuetypescriptsetuptruelang-DXYEFTYG.js deleted file mode 100644 index 0ae0a9b9..00000000 --- a/app/src/main/resources/web/assets/TagFilter.vuevuetypescriptsetuptruelang-DXYEFTYG.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as E}from"./more-vert-XZtlvs7x.js";import{o as s,c as i,a as t,d as H,g as I,u as z,h as m,l as F,C as P,b5 as j,a_ as O,a1 as u,a$ as U,S as Z,p as v,t as d,x as C,w as h,O as k,P as x,N as J,Z as g,j as q,ce as K,cf as R,ad as W,cg as X,a7 as Y,f as ee,ch as te,a8 as ne,a2 as oe}from"./index-B-S542RM.js";import{E as M}from"./EditValueModal-u3M261_O.js";const ae={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},se=t("path",{fill:"currentColor",d:"M11 13H6q-.425 0-.712-.288T5 12t.288-.712T6 11h5V6q0-.425.288-.712T12 5t.713.288T13 6v5h5q.425 0 .713.288T19 12t-.288.713T18 13h-5v5q0 .425-.288.713T12 19t-.712-.288T11 18z"},null,-1),ie=[se];function le(p,a){return s(),i("svg",ae,[...ie])}const de={name:"material-symbols-add-rounded",render:le},ce={class:"top-app-bar"},re={class:"btn-icon no-click"},ue={class:"title"},pe={class:"actions"},_e=t("md-ripple",null,null,-1),me={class:"nav"},ve=["onClick"],he={class:"title"},ge=["id","onClick"],fe=t("md-ripple",null,null,-1),ye={class:"count"},be=["anchor","open"],Te={slot:"headline"},$e={slot:"headline"},Me=H({__name:"TagFilter",props:{type:{type:String,required:!0},selected:{type:String,required:!0}},setup(p){const a=p,{t:l}=I(),w=z(),f=m([]),_=m(!1),c=m(),{refetch:r}=F({handle:(e,n)=>{n?P(l(n),"error"):e&&(f.value=e.tags)},document:j,variables:{type:a.type},appApi:!0});function S(e){c.value=e,_.value=!0}function V(e){g(M,{title:l("rename"),placeholder:l("name"),value:e.name,mutation:()=>q({document:K,appApi:!0}),getVariables:n=>({id:e.id,name:n}),done:()=>{r()}})}function L(e){g(W,{id:e.id,name:e.name,gql:R,appApi:!0,typeName:"Tag"})}function Q(){g(M,{title:l("add_tag"),placeholder:l("name"),mutation:()=>q({document:X,options:{update:()=>{r()}},appApi:!0}),getVariables:e=>({type:a.type,name:e})})}function A(e){const n=Y([{name:"tag_id",op:"",value:e.id}]);ee(w,`/${te[a.type]}?q=${ne(n)}`)}const y=e=>{e===a.type&&r()},b=e=>{e.type===a.type&&r()};return O(()=>{u.on("refetch_tags",y),u.on("media_items_actioned",b)}),U(()=>{u.off("refetch_tags",y),u.off("media_items_actioned",b)}),(e,n)=>{var $;const B=oe,D=de,G=E,T=Z("tooltip");return s(),i(k,null,[t("div",ce,[t("div",re,[v(B)]),t("div",ue,d(e.$t("tags")),1),t("div",pe,[C((s(),i("button",{class:"btn-icon",onClick:h(Q,["prevent"])},[_e,v(D)])),[[T,e.$t("add_tag")]])])]),t("ul",me,[(s(!0),i(k,null,x(f.value,o=>(s(),i("li",{onClick:h(N=>A(o),["prevent"]),key:o.id,class:J({active:o.id===p.selected})},[t("span",he,d(o.name),1),C((s(),i("button",{id:"tag-"+o.id,class:"btn-icon sm",onClick:h(N=>S(o),["prevent","stop"])},[fe,v(G)],8,ge)),[[T,e.$t("actions")]]),t("span",ye,d(o.count.toLocaleString()),1)],10,ve))),128))]),t("md-menu",{positioning:"popover",anchor:"tag-"+(($=c.value)==null?void 0:$.id),"stay-open-on-focusout":"",quick:"",open:_.value,onClosed:n[2]||(n[2]=o=>_.value=!1)},[t("md-menu-item",{onClick:n[0]||(n[0]=o=>V(c.value))},[t("div",Te,d(e.$t("rename")),1)]),t("md-menu-item",{onClick:n[1]||(n[1]=o=>L(c.value))},[t("div",$e,d(e.$t("delete")),1)])],40,be)],64)}}});export{Me as _,de as a}; diff --git a/app/src/main/resources/web/assets/TagFilter.vuevuetypescriptsetuptruelang-F0HSGzO6.js b/app/src/main/resources/web/assets/TagFilter.vuevuetypescriptsetuptruelang-F0HSGzO6.js new file mode 100644 index 00000000..219975a3 --- /dev/null +++ b/app/src/main/resources/web/assets/TagFilter.vuevuetypescriptsetuptruelang-F0HSGzO6.js @@ -0,0 +1 @@ +import{_ as P}from"./more-vert-B_3Etgle.js";import{o as s,c as u,a as n,d as j,g as z,u as F,h as m,l as x,C as O,b9 as U,af as Z,a1 as r,ag as J,S as K,p as v,t as l,x as C,v as q,q as M,w as g,O as w,P as R,N as W,Z as h,j as S,ci as X,cj as Y,ad as ee,ck as te,a7 as ne,f as ae,cl as oe,a8 as se,a2 as ie,aP as le}from"./index-BXOWKrmL.js";import{E as V}from"./EditValueModal-HQ024-FF.js";const ce={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},de=n("path",{fill:"currentColor",d:"M11 13H6q-.425 0-.712-.288T5 12t.288-.712T6 11h5V6q0-.425.288-.712T12 5t.713.288T13 6v5h5q.425 0 .713.288T19 12t-.288.713T18 13h-5v5q0 .425-.288.713T12 19t-.712-.288T11 18z"},null,-1),re=[de];function ue(p,o){return s(),u("svg",ce,[...re])}const pe={name:"material-symbols-add-rounded",render:ue},_e={class:"top-app-bar"},me={class:"btn-icon no-click"},ve={class:"title"},ge={class:"actions"},he={class:"nav"},fe=["onClick"],ye={class:"title"},Te={class:"count"},$e=["anchor","open"],be={slot:"headline"},ke={slot:"headline"},we=j({__name:"TagFilter",props:{type:{type:String,required:!0},selected:{type:String,required:!0}},setup(p){const o=p,{t:i}=z(),B=F(),f=m([]),_=m(!1),c=m(),{refetch:d}=x({handle:(e,t)=>{t?O(i(t),"error"):e&&(f.value=e.tags)},document:U,variables:{type:o.type},appApi:!0});function L(e){c.value=e,_.value=!0}function Q(e){h(V,{title:i("rename"),placeholder:i("name"),value:e.name,mutation:()=>S({document:X,appApi:!0}),getVariables:t=>({id:e.id,name:t}),done:()=>{d()}})}function A(e){h(ee,{id:e.id,name:e.name,gql:Y,appApi:!0,typeName:"Tag"})}function D(){h(V,{title:i("add_tag"),placeholder:i("name"),mutation:()=>S({document:te,options:{update:()=>{d()}},appApi:!0}),getVariables:e=>({type:o.type,name:e})})}function G(e){const t=ne([{name:"tag_id",op:"",value:e.id}]);ae(B,`/${oe[o.type]}?q=${se(t)}`)}const y=e=>{e===o.type&&d()},T=e=>{e.type===o.type&&d()};return Z(()=>{r.on("refetch_tags",y),r.on("media_items_actioned",T)}),J(()=>{r.off("refetch_tags",y),r.off("media_items_actioned",T)}),(e,t)=>{var k;const N=ie,E=pe,$=le,H=P,b=K("tooltip");return s(),u(w,null,[n("div",_e,[n("div",me,[v(N)]),n("div",ve,l(e.$t("tags")),1),n("div",ge,[C((s(),q($,{onClick:g(D,["prevent"])},{icon:M(()=>[v(E)]),_:1})),[[b,e.$t("add_tag")]])])]),n("ul",he,[(s(!0),u(w,null,R(f.value,a=>(s(),u("li",{onClick:g(I=>G(a),["prevent"]),key:a.id,class:W({active:a.id===p.selected})},[n("span",ye,l(a.name),1),C((s(),q($,{id:"tag-"+a.id,class:"sm",onClick:g(I=>L(a),["prevent","stop"])},{icon:M(()=>[v(H)]),_:2},1032,["id","onClick"])),[[b,e.$t("actions")]]),n("span",Te,l(a.count.toLocaleString()),1)],10,fe))),128))]),n("md-menu",{positioning:"popover",anchor:"tag-"+((k=c.value)==null?void 0:k.id),"stay-open-on-focusout":"",quick:"",open:_.value,onClosed:t[2]||(t[2]=a=>_.value=!1)},[n("md-menu-item",{onClick:t[0]||(t[0]=a=>Q(c.value))},[n("div",be,l(e.$t("rename")),1)]),n("md-menu-item",{onClick:t[1]||(t[1]=a=>A(c.value))},[n("div",ke,l(e.$t("delete")),1)])],40,$e)],64)}}});export{we as _,pe as a}; diff --git a/app/src/main/resources/web/assets/VPagination.vuevuetypescriptsetuptruelang-DUdPyPtr.js b/app/src/main/resources/web/assets/VPagination.vuevuetypescriptsetuptruelang-Cqtk1_Un.js similarity index 69% rename from app/src/main/resources/web/assets/VPagination.vuevuetypescriptsetuptruelang-DUdPyPtr.js rename to app/src/main/resources/web/assets/VPagination.vuevuetypescriptsetuptruelang-Cqtk1_Un.js index 9f94d101..0cb4718e 100644 --- a/app/src/main/resources/web/assets/VPagination.vuevuetypescriptsetuptruelang-DUdPyPtr.js +++ b/app/src/main/resources/web/assets/VPagination.vuevuetypescriptsetuptruelang-Cqtk1_Un.js @@ -1 +1 @@ -import{d as N,aF as c,o as u,c as r,a as m,p as f,w as _,O as b,P as S,N as C,t as x,bq as z,br as B}from"./index-B-S542RM.js";const E={class:"pagination"},P=["disabled"],F={key:0,class:"page-link"},V=["onClick"],q=["disabled"],A=N({__name:"VPagination",props:{total:{type:Number,default:0},limit:{type:Number,default:50},rangeSize:{type:Number,default:2},go:{type:Function,required:!0},page:{type:Number,default:1}},setup(d){const e=d,n=c(()=>Math.ceil(e.total/e.limit)),h=c(()=>{const s=[],l=5+e.rangeSize*2;let a=n.value<=l?1:e.page-e.rangeSize,i=n.value<=l?n.value:e.page+e.rangeSize;if(i=i>n.value?n.value:i,a=a<1?1:a,n.value>l){const o=a-1<3,p=n.value-i<3;if(o){i=l-2;for(let t=1;te.page>1),g=c(()=>e.page{const a=z,i=B;return u(),r("div",E,[m("button",{class:"btn-icon",disabled:!v.value,onClick:_(y,["prevent"])},[f(a)],8,P),(u(!0),r(b,null,S(h.value,(o,p)=>(u(),r(b,{key:p},[o===null?(u(),r("span",F,"···")):(u(),r("button",{key:1,class:C(["btn-icon",{active:o===e.page}]),onClick:_(t=>d.go(o),["prevent"])},x(o),11,V))],64))),128)),m("button",{class:"btn-icon",disabled:!g.value,onClick:_(k,["prevent"])},[f(i)],8,q)])}}});export{A as _}; +import{d as N,aH as c,o as u,c as r,a as m,p as f,w as _,O as b,P as S,N as C,t as x,bu as z,bv as B}from"./index-BXOWKrmL.js";const E={class:"pagination"},P=["disabled"],V={key:0,class:"page-link"},w=["onClick"],A=["disabled"],M=N({__name:"VPagination",props:{total:{type:Number,default:0},limit:{type:Number,default:50},rangeSize:{type:Number,default:2},go:{type:Function,required:!0},page:{type:Number,default:1}},setup(d){const e=d,n=c(()=>Math.ceil(e.total/e.limit)),h=c(()=>{const s=[],l=5+e.rangeSize*2;let a=n.value<=l?1:e.page-e.rangeSize,i=n.value<=l?n.value:e.page+e.rangeSize;if(i=i>n.value?n.value:i,a=a<1?1:a,n.value>l){const o=a-1<3,p=n.value-i<3;if(o){i=l-2;for(let t=1;te.page>1),g=c(()=>e.page{const a=z,i=B;return u(),r("div",E,[m("button",{class:"btn-icon",disabled:!v.value,onClick:_(y,["prevent"])},[f(a)],8,P),(u(!0),r(b,null,S(h.value,(o,p)=>(u(),r(b,{key:p},[o===null?(u(),r("span",V,"···")):(u(),r("button",{key:1,class:C(["btn-icon",{active:o===e.page}]),onClick:_(t=>d.go(o),["prevent"])},x(o),11,w))],64))),128)),m("button",{class:"btn-icon",disabled:!g.value,onClick:_(k,["prevent"])},[f(i)],8,A)])}}});export{M as _}; diff --git a/app/src/main/resources/web/assets/VideosSidebar-DOxCYXc4.js b/app/src/main/resources/web/assets/VideosSidebar-DOxCYXc4.js deleted file mode 100644 index dd098768..00000000 --- a/app/src/main/resources/web/assets/VideosSidebar-DOxCYXc4.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e}from"./MediaSidebar.vuevuetypescriptsetuptruelang-BEpTuoep.js";import{d as r,v as a,m as o,o as p,J as m,aS as i}from"./index-B-S542RM.js";import"./LeftSidebar.vuevuetypescriptsetuptruelang-Bkp0VFG-.js";import"./TagFilter.vuevuetypescriptsetuptruelang-DXYEFTYG.js";import"./more-vert-XZtlvs7x.js";import"./EditValueModal-u3M261_O.js";import"./vee-validate.esm-D5u4WlYW.js";import"./search-k8SzNgo1.js";import"./feature-Cs4tKJbl.js";const q=r({__name:"VideosSidebar",setup(n){return(s,_)=>{const t=e;return p(),a(t,{type:o(m).VIDEO,gql:o(i)},null,8,["type","gql"])}}});export{q as default}; diff --git a/app/src/main/resources/web/assets/VideosSidebar-QJ1ou7Of.js b/app/src/main/resources/web/assets/VideosSidebar-QJ1ou7Of.js new file mode 100644 index 00000000..0b158546 --- /dev/null +++ b/app/src/main/resources/web/assets/VideosSidebar-QJ1ou7Of.js @@ -0,0 +1 @@ +import{_ as t}from"./MediaSidebar.vuevuetypescriptsetuptruelang-BnNr5Ols.js";import{d as a,v as r,m as o,o as p,J as m,a_ as i}from"./index-BXOWKrmL.js";import"./LeftSidebar.vuevuetypescriptsetuptruelang-qrlto0-t.js";import"./TagFilter.vuevuetypescriptsetuptruelang-F0HSGzO6.js";import"./more-vert-B_3Etgle.js";import"./EditValueModal-HQ024-FF.js";import"./vee-validate.esm-Bmkx0D8v.js";import"./search-B-8eugyA.js";const k=a({__name:"VideosSidebar",setup(n){return(s,_)=>{const e=t;return p(),r(e,{type:o(m).VIDEO,gql:o(i)},null,8,["type","gql"])}}});export{k as default}; diff --git a/app/src/main/resources/web/assets/VideosView-DteZXZKB.js b/app/src/main/resources/web/assets/VideosView-DteZXZKB.js deleted file mode 100644 index 904bf035..00000000 --- a/app/src/main/resources/web/assets/VideosView-DteZXZKB.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as wo}from"./VPagination.vuevuetypescriptsetuptruelang-DUdPyPtr.js";import{_ as Io,a as Eo,b as So,c as Do,d as To}from"./grid-view-outline-rounded-0fx6hZgv.js";import{d as Ao,u as Fo,s as Be,h as U,g as Mo,I as Vo,i as Lo,ag as Ne,aD as zo,J as qo,aE as Ro,aF as He,aG as Uo,aI as Bo,ah as No,K as Ho,L as Ko,M as Qo,c as u,a as r,m as e,t as y,O as f,x as _,v as i,q as d,w as a,e as M,p as l,aH as Oo,N as B,P as Z,Q as Po,f as Go,C as Zo,aJ as Jo,aQ as Wo,am as Xo,S as jo,o as t,aL as ue,aR as Ke,aA as _e,aM as V,E as Qe,ab as Oe,U as Yo,V as xo,W as es,X as os,ap as ss,ao as ts,Z as ns,$ as as,a0 as ls,a1 as L,ae as is,aq as cs,a2 as ds,aN as rs,a4 as us,a3 as _s,aO as ps}from"./index-B-S542RM.js";import{_ as ks,a as ms,b as vs}from"./SearchInput-D0d2xIiv.js";import{_ as gs}from"./sort-rounded-BVzv_GA2.js";import{_ as hs}from"./upload-rounded-_5wwNL4r.js";import{_ as ys}from"./restore-from-trash-outline-rounded-Ck6P-VkW.js";import{_ as fs}from"./IconButton.vuevuetypescriptsetuptruelang-CxW8gnDA.js";import{a as $s}from"./tags-x91i2rzh.js";import{u as Cs,a as bs}from"./key-events-D1Kh05Em.js";import{u as ws}from"./search-k8SzNgo1.js";import{u as Is,a as Es}from"./media-trash-C0Lwc6-9.js";import{h as pe}from"./feature-Cs4tKJbl.js";import"./search-rounded-TCa6qTC1.js";import"./rss-feed-rounded-DzJ3TVan.js";import"./vee-validate.esm-D5u4WlYW.js";const Ss={class:"top-app-bar"},Ds=["checked","indeterminate"],Ts={class:"title"},As={key:0},Fs={key:1},Ms={class:"actions"},Vs=["onClick"],Ls={slot:"headline"},zs=["onClick"],qs={slot:"headline"},Rs={class:"menu-items"},Us=["onClick","selected"],Bs={slot:"headline"},Ns={class:"sm"},Hs=["selected"],Ks=["selected"],Qs=["onClick","onMouseover"],Os=["src"],Ps=["src","onError"],Gs={key:1,class:"actions"},Zs={class:"right"},Js=["onClick","onMouseover"],Ws={class:"start"},Xs=["onClick","checked"],js=["onClick","checked"],Ys={class:"number"},xs={class:"image"},et=["src"],ot=["src","onError"],st={class:"title"},tt={class:"subtitle"},nt=["onClick"],at={class:"actions"},lt={class:"time"},it={key:2,class:"no-data-placeholder"},S=55,It=Ao({__name:"VideosView",setup(ct){var ze;const I=Fo(),{videoSortBy:N}=Be(I),E=U([]),{t:Pe}=Mo(),{parseQ:Ge}=ws(),D=Vo({tagIds:[]}),ke=Lo(),{app:z,urlTokenKey:J,uploads:W}=Be(ke),{input:Ze,upload:Je,uploadChanged:me}=Ne(W),{input:We,upload:Xe,uploadChanged:ve}=Ne(W),{dropping:je,fileDragEnter:ge,fileDragLeave:he,dropFiles:Ye}=zo(W),X=U(!1),m=qo.VIDEO,ye=Po(),fe=ye.query,j=U(parseInt(((ze=fe.page)==null?void 0:ze.toString())??"1")),{tags:H,buckets:Y,fetch:xe}=Ro(m),eo=He(()=>{const s={};return Y.value.forEach(n=>{s[n.id]=n}),s}),C=U(""),{addToTags:oo}=$s(m,H),{deleteItems:x,deleteItem:K}=Uo(),{view:so}=Bo(m),{selectedIds:h,allChecked:$e,realAllChecked:w,selectRealAll:to,allCheckedAlertVisible:no,clearSelection:T,toggleAllChecked:Ce,toggleSelect:q,total:b,checked:R,shiftEffectingIds:Q,handleItemClick:be,handleMouseOver:we,selectAll:ao,shouldSelect:Ie}=Cs(E),{downloadItems:Ee}=No(J,m,T,"videos.zip"),{downloadFile:O}=ss(J),Se=s=>{const n=ye.query.q;Go(I,n?`/videos?page=${s}&q=${n}`:`/videos?page=${s}`)},{keyDown:De,keyUp:Te}=bs(b,S,j,ao,T,Se,()=>{x(m,h.value,w.value,b.value,C.value)}),ee=U([]),lo=ts(),io=He(()=>E.value.map(s=>({src:_e(s.fileId),name:V(s.path),duration:s.duration,size:s.size,path:s.path,data:s,type:m}))),Ae=s=>{ee.value.push(s)},{loading:P,fetch:A}=Ho({handle:async(s,n)=>{if(X.value=!1,n)Zo(Pe(n),"error");else if(s){const $=[];for(const c of s.videos)$.push({...c,fileId:Jo(J.value,c.path,c.id)});E.value=$,b.value=s.videoCount}},document:Wo,variables:()=>({offset:(j.value-1)*S,limit:S,query:C.value,sortBy:N.value}),appApi:!0}),{trashLoading:oe,trash:se}=Is(m,T,A),{restoreLoading:te,restore:ne}=Es(m,T,A);function ae(s){ke.lightbox={sources:io.value,index:s,visible:!0}}const G=()=>{let s=C.value;return w.value||(s=`ids:${h.value.join(",")}`),s};function co(s,n){X.value=!0,N.value=n,s.close()}function ro(s){return s?`/videos?q=${s}`:"/videos"}function Fe(s){ns(as,{type:m,tags:H.value,item:{key:s.id,title:s.title,size:s.size},selected:H.value.filter(n=>s.tags.some($=>$.id===n.id))})}function le(){const s=Y.value.find(n=>n.id===D.bucketId);return s?ps(s.topItems[0]):`${z.value.internalStoragePath}/Movies`}function uo(s){Je(le()),s.close()}function _o(s){Xe(le()),s.close()}function po(s){Ye(s,le(),"video")}const Me=s=>{s.type===m&&(T(),A())},Ve=s=>{s.type===m&&A()},Le=s=>{s.type===m&&(T(),A())};return Ko(()=>{var s;C.value=ls(((s=fe.q)==null?void 0:s.toString())??""),Ge(D,C.value),xe(),A(),L.on("item_tags_updated",Ve),L.on("items_tags_updated",Me),L.on("media_items_actioned",Le),window.addEventListener("keydown",De),window.addEventListener("keyup",Te)}),Qo(()=>{L.off("item_tags_updated",Ve),L.off("items_tags_updated",Me),L.off("media_items_actioned",Le),window.removeEventListener("keydown",De),window.removeEventListener("keyup",Te)}),(s,n)=>{const $=is,c=fs,ie=ys,F=cs,ce=vs,de=ds,ko=ks,mo=hs,qe=Xo,vo=gs,go=Io,ho=Eo,yo=ms,re=So,Re=Do,fo=rs,Ue=us,$o=_s,Co=To,bo=wo,p=jo("tooltip");return t(),u(f,null,[r("div",Ss,[r("md-checkbox",{"touch-target":"wrapper",onChange:n[0]||(n[0]=(...o)=>e(Ce)&&e(Ce)(...o)),checked:e($e),indeterminate:!e($e)&&e(R)},null,40,Ds),r("div",Ts,[e(h).length?(t(),u("span",As,y(s.$t("x_selected",{count:e(w)?e(b).toLocaleString():e(h).length.toLocaleString()})),1)):(t(),u("span",Fs,y(s.$t("page_title.videos"))+" ("+y(e(b).toLocaleString())+")",1)),e(R)?(t(),u(f,{key:2},[D.trash?(t(),u(f,{key:0},[_((t(),i(c,{onClick:n[1]||(n[1]=a(o=>e(x)(e(m),e(h),e(w),e(b),C.value),["stop"]))},{icon:d(()=>[l($)]),_:1})),[[p,s.$t("delete")]]),_((t(),i(c,{onClick:n[2]||(n[2]=a(o=>e(ne)(G()),["stop"])),loading:e(te)(G())},{icon:d(()=>[l(ie)]),_:1},8,["loading"])),[[p,s.$t("restore")]]),_((t(),i(c,{onClick:n[3]||(n[3]=a(o=>e(Ee)(e(w),e(h),C.value),["stop"]))},{icon:d(()=>[l(F)]),_:1})),[[p,s.$t("download")]])],64)):(t(),u(f,{key:1},[e(pe)(e(ue).MEDIA_TRASH,e(z).osVersion)?_((t(),i(c,{key:0,onClick:n[4]||(n[4]=a(o=>e(se)(G()),["stop"])),loading:e(oe)(G())},{icon:d(()=>[l(ce)]),_:1},8,["loading"])),[[p,s.$t("move_to_trash")]]):_((t(),i(c,{key:1,onClick:n[5]||(n[5]=a(o=>e(x)(e(m),e(h),e(w),e(b),C.value),["stop"]))},{icon:d(()=>[l($)]),_:1})),[[p,s.$t("delete")]]),_((t(),i(c,{onClick:n[6]||(n[6]=a(o=>e(Ee)(e(w),e(h),C.value),["stop"]))},{icon:d(()=>[l(F)]),_:1})),[[p,s.$t("download")]]),_((t(),i(c,{onClick:n[7]||(n[7]=a(o=>e(oo)(e(h),e(w),C.value),["stop"]))},{icon:d(()=>[l(de)]),_:1})),[[p,s.$t("add_to_tags")]])],64))],64)):M("",!0)]),r("div",Ms,[l(ko,{filter:D,tags:e(H),buckets:e(Y),"get-url":ro},null,8,["filter","tags","buckets"]),D.trash?M("",!0):(t(),i(qe,{key:0},{content:d(o=>[r("md-menu-item",{onClick:a(v=>uo(o),["stop"])},[r("div",Ls,y(s.$t("upload_files")),1)],8,Vs),r("md-menu-item",{onClick:a(v=>_o(o),["stop"])},[r("div",qs,y(s.$t("upload_folder")),1)],8,zs)]),default:d(()=>[_((t(),i(c,null,{icon:d(()=>[l(mo)]),_:1})),[[p,s.$t("upload")]])]),_:1})),l(qe,null,{content:d(o=>[r("div",Rs,[(t(!0),u(f,null,Z(e(lo),v=>(t(),u("md-menu-item",{key:v.value,onClick:k=>co(o,v.value),selected:v.value===e(N)},[r("div",Bs,y(s.$t(v.label)),1)],8,Us))),128))])]),default:d(()=>[_((t(),i(c,{loading:X.value},{icon:d(()=>[l(vo)]),_:1},8,["loading"])),[[p,s.$t("sort")]])]),_:1}),r("md-outlined-segmented-button-set",Ns,[r("md-outlined-segmented-button",{"data-value":"grid","no-checkmark":"",selected:!e(I).videosCardView,onClick:n[8]||(n[8]=o=>e(I).videosCardView=!1)},[l(go,{slot:"icon"})],8,Hs),r("md-outlined-segmented-button",{"data-value":"card","no-checkmark":"",selected:e(I).videosCardView,onClick:n[9]||(n[9]=o=>e(I).videosCardView=!0)},[l(ho,{slot:"icon"})],8,Ks)])])]),l(yo,{limit:S,total:e(b),"all-checked-alert-visible":e(no),"real-all-checked":e(w),"select-real-all":e(to),"clear-selection":e(T)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),r("div",{class:"scroll-content",onDragover:n[13]||(n[13]=a((...o)=>e(ge)&&e(ge)(...o),["stop","prevent"]))},[_(r("div",{class:"drag-mask",onDrop:a(po,["stop","prevent"]),onDragleave:n[10]||(n[10]=a((...o)=>e(he)&&e(he)(...o),["stop","prevent"]))},y(s.$t("release_to_send_files")),545),[[Oo,e(je)]]),e(I).videosCardView?(t(),u("div",{key:1,class:B(["media-list",{"select-mode":e(R)}])},[(t(!0),u(f,null,Z(E.value,(o,v)=>{var k;return t(),u("section",{class:B(["media-item selectable-card",{selected:e(h).includes(o.id),selecting:e(Q).includes(o.id)}]),key:o.id,onClick:a(g=>e(be)(g,o,v,ae),["stop"]),onMouseover:g=>e(we)(g,v)},[r("div",Ws,[e(Q).includes(o.id)?(t(),u("md-checkbox",{key:0,class:"checkbox","touch-target":"wrapper",onClick:a(g=>e(q)(g,o,v),["stop"]),checked:e(Ie)},null,8,Xs)):(t(),u("md-checkbox",{key:1,class:"checkbox","touch-target":"wrapper",onClick:a(g=>e(q)(g,o,v),["stop"]),checked:e(h).includes(o.id)},null,8,js)),r("span",Ys,[l($o,{id:v+1,raw:o},null,8,["id","raw"])])]),r("div",xs,[ee.value.includes(o.id)?(t(),u("img",{key:0,src:`/ficons/${e(Ke)(o.path)}.svg`,class:"svg"},null,8,et)):(t(),u("img",{key:1,class:"image-thumb",src:e(_e)(o.fileId,"&w=200&h=200"),onError:g=>Ae(o.id)},null,40,ot))]),r("div",st,y(e(V)(o.path)),1),r("div",tt,[r("span",null,y(e(Qe)(o.size)),1),r("span",null,y(e(Oe)(o.duration)),1),r("a",{onClick:a(g=>e(so)(e(I),o.bucketId),["stop","prevent"])},y((k=eo.value[o.bucketId])==null?void 0:k.name),9,nt),l(Ue,{tags:o.tags,type:e(m),"only-links":!0},null,8,["tags","type"])]),r("div",at,[D.trash?(t(),u(f,{key:0},[_((t(),i(c,{class:"sm",onClick:a(g=>e(K)(e(m),o),["stop"])},{icon:d(()=>[l($)]),_:2},1032,["onClick"])),[[p,s.$t("delete")]]),_((t(),i(c,{class:"sm",onClick:a(g=>e(ne)(`ids:${o.id}`),["stop"]),loading:e(te)(`ids:${o.id}`)},{icon:d(()=>[l(ie)]),_:2},1032,["onClick","loading"])),[[p,s.$t("restore")]]),_((t(),i(c,{class:"sm",onClick:a(g=>e(O)(o.path,e(V)(o.path).replace(" ","-")),["stop"])},{icon:d(()=>[l(F)]),_:2},1032,["onClick"])),[[p,s.$t("download")]])],64)):(t(),u(f,{key:1},[e(pe)(e(ue).MEDIA_TRASH,e(z).osVersion)?_((t(),i(c,{key:0,class:"sm",onClick:a(g=>e(se)(`ids:${o.id}`),["stop"]),loading:e(oe)(`ids:${o.id}`)},{icon:d(()=>[l(ce)]),_:2},1032,["onClick","loading"])),[[p,s.$t("move_to_trash")]]):_((t(),i(c,{key:1,class:"sm",onClick:a(g=>e(K)(e(m),o),["stop"])},{icon:d(()=>[l($)]),_:2},1032,["onClick"])),[[p,s.$t("delete")]]),_((t(),i(c,{class:"sm",onClick:a(g=>e(O)(o.path,e(V)(o.path).replace(" ","-")),["stop"])},{icon:d(()=>[l(F)]),_:2},1032,["onClick"])),[[p,s.$t("download")]]),_((t(),i(c,{class:"sm",onClick:a(g=>Fe(o),["stop"])},{icon:d(()=>[l(de)]),_:2},1032,["onClick"])),[[p,s.$t("add_to_tags")]])],64))]),r("div",lt,[_((t(),u("span",null,[xo(y(e(es)(o.createdAt)),1)])),[[p,e(Yo)(o.createdAt)]])])],42,Js)}),128)),e(P)&&E.value.length===0?(t(),i(Co,{key:0,limit:S})):M("",!0)],2)):(t(),u("div",{key:0,class:B(["media-grid",{"select-mode":e(R)}])},[(t(!0),u(f,null,Z(E.value,(o,v)=>(t(),u("section",{class:B(["media-item",{selected:e(h).includes(o.id),selecting:e(Q).includes(o.id)}]),key:o.id,onClick:a(k=>e(be)(k,o,v,ae),["stop"]),onMouseover:k=>e(we)(k,v)},[ee.value.includes(o.id)?(t(),u("img",{key:0,src:`/ficons/${e(Ke)(o.path)}.svg`,class:"image svg"},null,8,Os)):(t(),u("img",{key:1,class:"image image-thumb",src:e(_e)(o.fileId,"&w=200&h=200"),onError:k=>Ae(o.id)},null,40,Ps)),e(Q).includes(o.id)?(t(),i(c,{key:2,class:"btn-checkbox",onClick:a(k=>e(q)(k,o,v),["stop"])},{icon:d(()=>[e(Ie)?(t(),i(re,{key:0})):(t(),i(Re,{key:1}))]),_:2},1032,["onClick"])):e(h).includes(o.id)?(t(),i(c,{key:3,class:"btn-checkbox",onClick:a(k=>e(q)(k,o,v),["stop"])},{icon:d(()=>[l(re)]),_:2},1032,["onClick"])):(t(),u(f,{key:4},[l(c,{class:"btn-checkbox",onClick:a(k=>e(q)(k,o,v),["stop"])},{icon:d(()=>[e(h).includes(o.id)?(t(),i(re,{key:0})):(t(),i(Re,{key:1}))]),_:2},1032,["onClick"]),e(R)?_((t(),i(c,{key:0,class:"btn-zoom sm",onClick:a(k=>ae(v),["stop"])},{icon:d(()=>[l(fo)]),_:2},1032,["onClick"])),[[p,s.$t("open")]]):(t(),u("div",Gs,[D.trash?(t(),u(f,{key:0},[_((t(),i(c,{class:"sm",onClick:a(k=>e(K)(e(m),o),["stop"])},{icon:d(()=>[l($)]),_:2},1032,["onClick"])),[[p,s.$t("delete")]]),_((t(),i(c,{class:"sm",onClick:a(k=>e(ne)(`ids:${o.id}`),["stop"]),loading:e(te)(`ids:${o.id}`)},{icon:d(()=>[l(ie)]),_:2},1032,["onClick","loading"])),[[p,s.$t("restore")]]),_((t(),i(c,{class:"sm",onClick:a(k=>e(O)(o.path,e(V)(o.path).replace(" ","-")),["stop"])},{icon:d(()=>[l(F)]),_:2},1032,["onClick"])),[[p,s.$t("download")]])],64)):(t(),u(f,{key:1},[e(pe)(e(ue).MEDIA_TRASH,e(z).osVersion)?_((t(),i(c,{key:0,class:"sm",onClick:a(k=>e(se)(`ids:${o.id}`),["stop"]),loading:e(oe)(`ids:${o.id}`)},{icon:d(()=>[l(ce)]),_:2},1032,["onClick","loading"])),[[p,s.$t("move_to_trash")]]):_((t(),i(c,{key:1,class:"sm",onClick:a(k=>e(K)(e(m),o),["stop"])},{icon:d(()=>[l($)]),_:2},1032,["onClick"])),[[p,s.$t("delete")]]),_((t(),i(c,{class:"sm",onClick:a(k=>e(O)(o.path,e(V)(o.path).replace(" ","-")),["stop"])},{icon:d(()=>[l(F)]),_:2},1032,["onClick"])),[[p,s.$t("download")]]),_((t(),i(c,{class:"sm",onClick:a(k=>Fe(o),["stop"])},{icon:d(()=>[l(de)]),_:2},1032,["onClick"])),[[p,s.$t("add_to_tags")]])],64))])),r("div",{class:B(["info",{"has-tags":o.tags.length>0}])},[l(Ue,{tags:o.tags,type:e(m)},null,8,["tags","type"]),r("span",Zs,y(["SIZE_ASC","SIZE_DESC"].includes(e(N))?e(Qe)(o.size):e(Oe)(o.duration)),1)],2)],64))],42,Qs))),128)),e(P)&&E.value.length===0?(t(),u(f,{key:0},Z(S,o=>r("section",{class:"skeleton-image media-item",key:o})),64)):M("",!0)],2)),!e(P)&&E.value.length===0?(t(),u("div",it,y(s.$t(e(os)(e(P),e(z).permissions,"WRITE_EXTERNAL_STORAGE"))),1)):M("",!0),e(b)>S?(t(),i(bo,{key:3,page:j.value,go:Se,total:e(b),limit:S},null,8,["page","total"])):M("",!0),r("input",{ref_key:"fileInput",ref:Ze,style:{display:"none"},type:"file",accept:"video/*",multiple:"",onChange:n[11]||(n[11]=(...o)=>e(me)&&e(me)(...o))},null,544),r("input",{ref_key:"dirFileInput",ref:We,style:{display:"none"},type:"file",accept:"video/*",multiple:"",webkitdirectory:"",mozdirectory:"",directory:"",onChange:n[12]||(n[12]=(...o)=>e(ve)&&e(ve)(...o))},null,544)],32)],64)}}});export{It as default}; diff --git a/app/src/main/resources/web/assets/VideosView-EnWFwQXg.js b/app/src/main/resources/web/assets/VideosView-EnWFwQXg.js new file mode 100644 index 00000000..2287a6e1 --- /dev/null +++ b/app/src/main/resources/web/assets/VideosView-EnWFwQXg.js @@ -0,0 +1 @@ +import{_ as wo}from"./VPagination.vuevuetypescriptsetuptruelang-Cqtk1_Un.js";import{_ as Io,a as So,b as Eo,c as Do,d as To}from"./grid-view-outline-rounded-DfUd5oBB.js";import{d as Ao,u as Vo,s as Be,h as q,g as Fo,I as Mo,i as Lo,ai as He,aF as zo,J as Ro,aG as Uo,aH as Ne,aI as qo,aM as Bo,aj as Ho,K as No,aJ as Ko,aK as Qo,L as Po,M as Oo,c as u,a as r,m as e,t as y,O as f,x as _,v as i,q as d,w as a,e as V,p as l,aL as Zo,N as B,P as W,Q as Go,f as Wo,C as jo,aN as Jo,aY as Xo,aP as Yo,ao as xo,S as es,o as t,aQ as j,aR as J,aZ as Ke,aC as pe,aS as F,E as Qe,ab as Pe,U as os,V as ss,W as ts,X as ns,ar as as,aq as ls,Z as is,$ as cs,a0 as ds,a1 as M,ae as rs,aT as us,as as _s,aU as ps,a2 as ks,aV as vs,a4 as ms,a3 as gs,aW as hs}from"./index-BXOWKrmL.js";import{_ as ys,a as fs}from"./SearchInput-ZLdB9f4z.js";import{_ as $s}from"./sort-rounded-CjGrBbPk.js";import{_ as Cs}from"./upload-rounded-D52A8109.js";import{a as bs}from"./tags-BpDG2_1g.js";import{u as ws,a as Is}from"./key-events-DpI8L-ce.js";import{u as Ss}from"./search-B-8eugyA.js";import"./search-rounded-DpdJ2cSK.js";import"./rss-feed-rounded-DN7yBBrR.js";import"./vee-validate.esm-Bmkx0D8v.js";const Es={class:"top-app-bar"},Ds=["checked","indeterminate"],Ts={class:"title"},As={key:0},Vs={key:1},Fs={class:"actions"},Ms=["onClick"],Ls={slot:"headline"},zs=["onClick"],Rs={slot:"headline"},Us={class:"menu-items"},qs=["onClick","selected"],Bs={slot:"headline"},Hs={class:"sm"},Ns=["selected"],Ks=["selected"],Qs=["onClick","onMouseover"],Ps=["src"],Os=["src","onError"],Zs={key:1,class:"actions"},Gs={class:"right"},Ws=["onClick","onMouseover"],js={class:"start"},Js=["onClick","checked"],Xs=["onClick","checked"],Ys={class:"number"},xs={class:"image"},et=["src"],ot=["src","onError"],st={class:"title"},tt={class:"subtitle"},nt=["onClick"],at={class:"actions"},lt={class:"time"},it={key:2,class:"no-data-placeholder"},E=55,$t=Ao({__name:"VideosView",setup(ct){var ze;const I=Vo(),{videoSortBy:H}=Be(I),S=q([]),{t:Oe}=Fo(),{parseQ:Ze}=Ss(),D=Mo({tagIds:[]}),ke=Lo(),{app:T,urlTokenKey:X,uploads:Y}=Be(ke),{input:Ge,upload:We,uploadChanged:ve}=He(Y),{input:je,upload:Je,uploadChanged:me}=He(Y),{dropping:Xe,fileDragEnter:ge,fileDragLeave:he,dropFiles:Ye}=zo(Y),x=q(!1),p=Ro.VIDEO,ye=Go(),fe=ye.query,ee=q(parseInt(((ze=fe.page)==null?void 0:ze.toString())??"1")),{tags:N,buckets:oe,fetch:xe}=Uo(p),eo=Ne(()=>{const s={};return oe.value.forEach(n=>{s[n.id]=n}),s}),C=q(""),{addToTags:oo}=bs(p,N),{deleteItems:se,deleteItem:K}=qo(),{view:so}=Bo(p),{selectedIds:h,allChecked:$e,realAllChecked:w,selectRealAll:to,allCheckedAlertVisible:no,clearSelection:L,toggleAllChecked:Ce,toggleSelect:z,total:b,checked:R,shiftEffectingIds:Q,handleItemClick:be,handleMouseOver:we,selectAll:ao,shouldSelect:Ie}=ws(S),{downloadItems:Se}=Ho(X,p,L,"videos.zip"),{downloadFile:P}=as(X),Ee=s=>{const n=ye.query.q;Wo(I,n?`/videos?page=${s}&q=${n}`:`/videos?page=${s}`)},{keyDown:De,keyUp:Te}=Is(b,E,ee,ao,L,Ee,()=>{j(J.MEDIA_TRASH,T.value.osVersion)?G(p,U()):se(p,h.value,w.value,b.value,C.value)}),te=q([]),lo=ls(),io=Ne(()=>S.value.map(s=>({src:pe(s.fileId),name:F(s.path),duration:s.duration,size:s.size,path:s.path,data:s,type:p}))),Ae=s=>{te.value.push(s)},{loading:O,fetch:Z}=No({handle:async(s,n)=>{if(x.value=!1,n)jo(Oe(n),"error");else if(s){const $=[];for(const c of s.videos)$.push({...c,fileId:Jo(X.value,c.path,c.id)});S.value=$,b.value=s.videoCount}},document:Xo,variables:()=>({offset:(ee.value-1)*E,limit:E,query:C.value,sortBy:H.value}),appApi:!0}),{trashLoading:ne,trash:G}=Ko(),{restoreLoading:ae,restore:le}=Qo();function ie(s){ke.lightbox={sources:io.value,index:s,visible:!0}}const U=()=>{let s=C.value;return w.value||(s=`ids:${h.value.join(",")}`),s};function co(s,n){x.value=!0,H.value=n,s.close()}function ro(s){return s?`/videos?q=${s}`:"/videos"}function Ve(s){is(cs,{type:p,tags:N.value,item:{key:s.id,title:s.title,size:s.size},selected:N.value.filter(n=>s.tags.some($=>$.id===n.id))})}function ce(){const s=oe.value.find(n=>n.id===D.bucketId);return s?hs(s.topItems[0]):`${T.value.internalStoragePath}/Movies`}function uo(s){We(ce()),s.close()}function _o(s){Je(ce()),s.close()}function po(s){Ye(s,ce(),"video")}const Fe=s=>{s.type===p&&(L(),Z())},Me=s=>{s.type===p&&Z()},Le=s=>{s.type===p&&(L(),Z())};return Po(()=>{var s;C.value=ds(((s=fe.q)==null?void 0:s.toString())??""),Ze(D,C.value),xe(),Z(),M.on("item_tags_updated",Me),M.on("items_tags_updated",Fe),M.on("media_items_actioned",Le),window.addEventListener("keydown",De),window.addEventListener("keyup",Te)}),Oo(()=>{M.off("item_tags_updated",Me),M.off("items_tags_updated",Fe),M.off("media_items_actioned",Le),window.removeEventListener("keydown",De),window.removeEventListener("keyup",Te)}),(s,n)=>{const $=rs,c=Yo,de=us,A=_s,re=ps,ue=ks,ko=ys,vo=Cs,Re=xo,mo=$s,go=Io,ho=So,yo=fs,_e=Eo,Ue=Do,fo=vs,qe=ms,$o=gs,Co=To,bo=wo,k=es("tooltip");return t(),u(f,null,[r("div",Es,[r("md-checkbox",{"touch-target":"wrapper",onChange:n[0]||(n[0]=(...o)=>e(Ce)&&e(Ce)(...o)),checked:e($e),indeterminate:!e($e)&&e(R)},null,40,Ds),r("div",Ts,[e(h).length?(t(),u("span",As,y(s.$t("x_selected",{count:e(w)?e(b).toLocaleString():e(h).length.toLocaleString()})),1)):(t(),u("span",Vs,y(s.$t("page_title.videos"))+" ("+y(e(b).toLocaleString())+")",1)),e(R)?(t(),u(f,{key:2},[D.trash?(t(),u(f,{key:0},[_((t(),i(c,{onClick:n[1]||(n[1]=a(o=>e(se)(e(p),e(h),e(w),e(b),C.value),["stop"]))},{icon:d(()=>[l($)]),_:1})),[[k,s.$t("delete")]]),_((t(),i(c,{onClick:n[2]||(n[2]=a(o=>e(le)(e(p),U()),["stop"])),loading:e(ae)(U())},{icon:d(()=>[l(de)]),_:1},8,["loading"])),[[k,s.$t("restore")]]),_((t(),i(c,{onClick:n[3]||(n[3]=a(o=>e(Se)(e(w),e(h),C.value),["stop"]))},{icon:d(()=>[l(A)]),_:1})),[[k,s.$t("download")]])],64)):(t(),u(f,{key:1},[e(j)(e(J).MEDIA_TRASH,e(T).osVersion)?_((t(),i(c,{key:0,onClick:n[4]||(n[4]=a(o=>e(G)(e(p),U()),["stop"])),loading:e(ne)(U())},{icon:d(()=>[l(re)]),_:1},8,["loading"])),[[k,s.$t("move_to_trash")]]):_((t(),i(c,{key:1,onClick:n[5]||(n[5]=a(o=>e(se)(e(p),e(h),e(w),e(b),C.value),["stop"]))},{icon:d(()=>[l($)]),_:1})),[[k,s.$t("delete")]]),_((t(),i(c,{onClick:n[6]||(n[6]=a(o=>e(Se)(e(w),e(h),C.value),["stop"]))},{icon:d(()=>[l(A)]),_:1})),[[k,s.$t("download")]]),_((t(),i(c,{onClick:n[7]||(n[7]=a(o=>e(oo)(e(h),e(w),C.value),["stop"]))},{icon:d(()=>[l(ue)]),_:1})),[[k,s.$t("add_to_tags")]])],64))],64)):V("",!0)]),r("div",Fs,[l(ko,{filter:D,tags:e(N),buckets:e(oe),"get-url":ro},null,8,["filter","tags","buckets"]),D.trash?V("",!0):(t(),i(Re,{key:0},{content:d(o=>[r("md-menu-item",{onClick:a(m=>uo(o),["stop"])},[r("div",Ls,y(s.$t("upload_files")),1)],8,Ms),r("md-menu-item",{onClick:a(m=>_o(o),["stop"])},[r("div",Rs,y(s.$t("upload_folder")),1)],8,zs)]),default:d(()=>[_((t(),i(c,null,{icon:d(()=>[l(vo)]),_:1})),[[k,s.$t("upload")]])]),_:1})),l(Re,null,{content:d(o=>[r("div",Us,[(t(!0),u(f,null,W(e(lo),m=>(t(),u("md-menu-item",{key:m.value,onClick:v=>co(o,m.value),selected:m.value===e(H)},[r("div",Bs,y(s.$t(m.label)),1)],8,qs))),128))])]),default:d(()=>[_((t(),i(c,{loading:x.value},{icon:d(()=>[l(mo)]),_:1},8,["loading"])),[[k,s.$t("sort")]])]),_:1}),r("md-outlined-segmented-button-set",Hs,[r("md-outlined-segmented-button",{"data-value":"grid","no-checkmark":"",selected:!e(I).videosCardView,onClick:n[8]||(n[8]=o=>e(I).videosCardView=!1)},[l(go,{slot:"icon"})],8,Ns),r("md-outlined-segmented-button",{"data-value":"card","no-checkmark":"",selected:e(I).videosCardView,onClick:n[9]||(n[9]=o=>e(I).videosCardView=!0)},[l(ho,{slot:"icon"})],8,Ks)])])]),l(yo,{limit:E,total:e(b),"all-checked-alert-visible":e(no),"real-all-checked":e(w),"select-real-all":e(to),"clear-selection":e(L)},null,8,["total","all-checked-alert-visible","real-all-checked","select-real-all","clear-selection"]),r("div",{class:"scroll-content",onDragover:n[13]||(n[13]=a((...o)=>e(ge)&&e(ge)(...o),["stop","prevent"]))},[_(r("div",{class:"drag-mask",onDrop:a(po,["stop","prevent"]),onDragleave:n[10]||(n[10]=a((...o)=>e(he)&&e(he)(...o),["stop","prevent"]))},y(s.$t("release_to_send_files")),545),[[Zo,e(Xe)]]),e(I).videosCardView?(t(),u("div",{key:1,class:B(["media-list",{"select-mode":e(R)}])},[(t(!0),u(f,null,W(S.value,(o,m)=>{var v;return t(),u("section",{class:B(["media-item selectable-card",{selected:e(h).includes(o.id),selecting:e(Q).includes(o.id)}]),key:o.id,onClick:a(g=>e(be)(g,o,m,ie),["stop"]),onMouseover:g=>e(we)(g,m)},[r("div",js,[e(Q).includes(o.id)?(t(),u("md-checkbox",{key:0,class:"checkbox","touch-target":"wrapper",onClick:a(g=>e(z)(g,o,m),["stop"]),checked:e(Ie)},null,8,Js)):(t(),u("md-checkbox",{key:1,class:"checkbox","touch-target":"wrapper",onClick:a(g=>e(z)(g,o,m),["stop"]),checked:e(h).includes(o.id)},null,8,Xs)),r("span",Ys,[l($o,{id:m+1,raw:o},null,8,["id","raw"])])]),r("div",xs,[te.value.includes(o.id)?(t(),u("img",{key:0,src:`/ficons/${e(Ke)(o.path)}.svg`,class:"svg"},null,8,et)):(t(),u("img",{key:1,class:"image-thumb",src:e(pe)(o.fileId,"&w=200&h=200"),onError:g=>Ae(o.id)},null,40,ot))]),r("div",st,y(e(F)(o.path)),1),r("div",tt,[r("span",null,y(e(Qe)(o.size)),1),r("span",null,y(e(Pe)(o.duration)),1),r("a",{onClick:a(g=>e(so)(e(I),o.bucketId),["stop","prevent"])},y((v=eo.value[o.bucketId])==null?void 0:v.name),9,nt),l(qe,{tags:o.tags,type:e(p),"only-links":!0},null,8,["tags","type"])]),r("div",at,[D.trash?(t(),u(f,{key:0},[_((t(),i(c,{class:"sm",onClick:a(g=>e(K)(e(p),o),["stop"])},{icon:d(()=>[l($)]),_:2},1032,["onClick"])),[[k,s.$t("delete")]]),_((t(),i(c,{class:"sm",onClick:a(g=>e(le)(e(p),`ids:${o.id}`),["stop"]),loading:e(ae)(`ids:${o.id}`)},{icon:d(()=>[l(de)]),_:2},1032,["onClick","loading"])),[[k,s.$t("restore")]]),_((t(),i(c,{class:"sm",onClick:a(g=>e(P)(o.path,e(F)(o.path).replace(" ","-")),["stop"])},{icon:d(()=>[l(A)]),_:2},1032,["onClick"])),[[k,s.$t("download")]])],64)):(t(),u(f,{key:1},[e(j)(e(J).MEDIA_TRASH,e(T).osVersion)?_((t(),i(c,{key:0,class:"sm",onClick:a(g=>e(G)(e(p),`ids:${o.id}`),["stop"]),loading:e(ne)(`ids:${o.id}`)},{icon:d(()=>[l(re)]),_:2},1032,["onClick","loading"])),[[k,s.$t("move_to_trash")]]):_((t(),i(c,{key:1,class:"sm",onClick:a(g=>e(K)(e(p),o),["stop"])},{icon:d(()=>[l($)]),_:2},1032,["onClick"])),[[k,s.$t("delete")]]),_((t(),i(c,{class:"sm",onClick:a(g=>e(P)(o.path,e(F)(o.path).replace(" ","-")),["stop"])},{icon:d(()=>[l(A)]),_:2},1032,["onClick"])),[[k,s.$t("download")]]),_((t(),i(c,{class:"sm",onClick:a(g=>Ve(o),["stop"])},{icon:d(()=>[l(ue)]),_:2},1032,["onClick"])),[[k,s.$t("add_to_tags")]])],64))]),r("div",lt,[_((t(),u("span",null,[ss(y(e(ts)(o.createdAt)),1)])),[[k,e(os)(o.createdAt)]])])],42,Ws)}),128)),e(O)&&S.value.length===0?(t(),i(Co,{key:0,limit:E})):V("",!0)],2)):(t(),u("div",{key:0,class:B(["media-grid",{"select-mode":e(R)}])},[(t(!0),u(f,null,W(S.value,(o,m)=>(t(),u("section",{class:B(["media-item",{selected:e(h).includes(o.id),selecting:e(Q).includes(o.id)}]),key:o.id,onClick:a(v=>e(be)(v,o,m,ie),["stop"]),onMouseover:v=>e(we)(v,m)},[te.value.includes(o.id)?(t(),u("img",{key:0,src:`/ficons/${e(Ke)(o.path)}.svg`,class:"image svg"},null,8,Ps)):(t(),u("img",{key:1,class:"image image-thumb",src:e(pe)(o.fileId,"&w=200&h=200"),onError:v=>Ae(o.id)},null,40,Os)),e(Q).includes(o.id)?(t(),i(c,{key:2,class:"btn-checkbox",onClick:a(v=>e(z)(v,o,m),["stop"])},{icon:d(()=>[e(Ie)?(t(),i(_e,{key:0})):(t(),i(Ue,{key:1}))]),_:2},1032,["onClick"])):e(h).includes(o.id)?(t(),i(c,{key:3,class:"btn-checkbox",onClick:a(v=>e(z)(v,o,m),["stop"])},{icon:d(()=>[l(_e)]),_:2},1032,["onClick"])):(t(),u(f,{key:4},[l(c,{class:"btn-checkbox",onClick:a(v=>e(z)(v,o,m),["stop"])},{icon:d(()=>[e(h).includes(o.id)?(t(),i(_e,{key:0})):(t(),i(Ue,{key:1}))]),_:2},1032,["onClick"]),e(R)?_((t(),i(c,{key:0,class:"btn-zoom sm",onClick:a(v=>ie(m),["stop"])},{icon:d(()=>[l(fo)]),_:2},1032,["onClick"])),[[k,s.$t("open")]]):(t(),u("div",Zs,[D.trash?(t(),u(f,{key:0},[_((t(),i(c,{class:"sm",onClick:a(v=>e(K)(e(p),o),["stop"])},{icon:d(()=>[l($)]),_:2},1032,["onClick"])),[[k,s.$t("delete")]]),_((t(),i(c,{class:"sm",onClick:a(v=>e(le)(e(p),`ids:${o.id}`),["stop"]),loading:e(ae)(`ids:${o.id}`)},{icon:d(()=>[l(de)]),_:2},1032,["onClick","loading"])),[[k,s.$t("restore")]]),_((t(),i(c,{class:"sm",onClick:a(v=>e(P)(o.path,e(F)(o.path).replace(" ","-")),["stop"])},{icon:d(()=>[l(A)]),_:2},1032,["onClick"])),[[k,s.$t("download")]])],64)):(t(),u(f,{key:1},[e(j)(e(J).MEDIA_TRASH,e(T).osVersion)?_((t(),i(c,{key:0,class:"sm",onClick:a(v=>e(G)(e(p),`ids:${o.id}`),["stop"]),loading:e(ne)(`ids:${o.id}`)},{icon:d(()=>[l(re)]),_:2},1032,["onClick","loading"])),[[k,s.$t("move_to_trash")]]):_((t(),i(c,{key:1,class:"sm",onClick:a(v=>e(K)(e(p),o),["stop"])},{icon:d(()=>[l($)]),_:2},1032,["onClick"])),[[k,s.$t("delete")]]),_((t(),i(c,{class:"sm",onClick:a(v=>e(P)(o.path,e(F)(o.path).replace(" ","-")),["stop"])},{icon:d(()=>[l(A)]),_:2},1032,["onClick"])),[[k,s.$t("download")]]),_((t(),i(c,{class:"sm",onClick:a(v=>Ve(o),["stop"])},{icon:d(()=>[l(ue)]),_:2},1032,["onClick"])),[[k,s.$t("add_to_tags")]])],64))])),r("div",{class:B(["info",{"has-tags":o.tags.length>0}])},[l(qe,{tags:o.tags,type:e(p)},null,8,["tags","type"]),r("span",Gs,y(["SIZE_ASC","SIZE_DESC"].includes(e(H))?e(Qe)(o.size):e(Pe)(o.duration)),1)],2)],64))],42,Qs))),128)),e(O)&&S.value.length===0?(t(),u(f,{key:0},W(E,o=>r("section",{class:"skeleton-image media-item",key:o})),64)):V("",!0)],2)),!e(O)&&S.value.length===0?(t(),u("div",it,y(s.$t(e(ns)(e(O),e(T).permissions,"WRITE_EXTERNAL_STORAGE"))),1)):V("",!0),e(b)>E?(t(),i(bo,{key:3,page:ee.value,go:Ee,total:e(b),limit:E},null,8,["page","total"])):V("",!0),r("input",{ref_key:"fileInput",ref:Ge,style:{display:"none"},type:"file",accept:"video/*",multiple:"",onChange:n[11]||(n[11]=(...o)=>e(ve)&&e(ve)(...o))},null,544),r("input",{ref_key:"dirFileInput",ref:je,style:{display:"none"},type:"file",accept:"video/*",multiple:"",webkitdirectory:"",mozdirectory:"",directory:"",onChange:n[12]||(n[12]=(...o)=>e(me)&&e(me)(...o))},null,544)],32)],64)}}});export{$t as default}; diff --git a/app/src/main/resources/web/assets/WiFiView-Ddi8fsYG.js b/app/src/main/resources/web/assets/WiFiView-C53_WvSg.js similarity index 80% rename from app/src/main/resources/web/assets/WiFiView-Ddi8fsYG.js rename to app/src/main/resources/web/assets/WiFiView-C53_WvSg.js index 5d051303..c388e8c9 100644 --- a/app/src/main/resources/web/assets/WiFiView-Ddi8fsYG.js +++ b/app/src/main/resources/web/assets/WiFiView-C53_WvSg.js @@ -1,17 +1,17 @@ -var P=Object.defineProperty;var Q=(i,s,t)=>s in i?P(i,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[s]=t;var w=(i,s,t)=>(Q(i,typeof s!="symbol"?s+"":s,t),t);import{_ as W}from"./MonacoEditor.vuevuetypescriptsetuptruelang-WcUH3tOp.js";import{o as M,c as E,a as e,d as Y,g as Z,h as v,as as S,l as A,C as G,ac as B,bY as H,j as J,p as g,m as l,x as r,aH as _,t as p,z as D,y as K,bZ as X,w as ee,O as te}from"./index-B-S542RM.js";import{_ as se}from"./EditToolbar.vuevuetypescriptsetuptruelang-BYnXPUga.js";import{_ as oe}from"./Breadcrumb-B2BEfhSz.js";import{u as ne,a as U}from"./vee-validate.esm-D5u4WlYW.js";const ae={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},le=e("path",{fill:"currentColor",d:"M12 16q1.875 0 3.188-1.312T16.5 11.5t-1.312-3.187T12 7T8.813 8.313T7.5 11.5t1.313 3.188T12 16m0-1.8q-1.125 0-1.912-.788T9.3 11.5t.788-1.912T12 8.8t1.913.788t.787 1.912t-.787 1.913T12 14.2m0 4.8q-3.35 0-6.113-1.8t-4.362-4.75q-.125-.225-.187-.462t-.063-.488t.063-.488t.187-.462q1.6-2.95 4.363-4.75T12 4t6.113 1.8t4.362 4.75q.125.225.188.463t.062.487t-.062.488t-.188.462q-1.6 2.95-4.362 4.75T12 19m0-2q2.825 0 5.188-1.487T20.8 11.5q-1.25-2.525-3.613-4.012T12 6T6.813 7.488T3.2 11.5q1.25 2.525 3.613 4.013T12 17"},null,-1),ie=[le];function ce(i,s){return M(),E("svg",ae,[...ie])}const de={name:"material-symbols-visibility-outline-rounded",render:ce},re={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ue=e("path",{fill:"currentColor",d:"M15.175 8.325q.725.725 1.063 1.65t.237 1.9q0 .375-.275.638t-.65.262t-.638-.262t-.262-.638q.125-.65-.075-1.25T13.95 9.6t-1.025-.65t-1.275-.1q-.375 0-.638-.275t-.262-.65t.263-.637t.637-.263q.95-.1 1.875.238t1.65 1.062M12 6q-.475 0-.925.037t-.9.138q-.425.075-.763-.125t-.462-.6t.088-.775t.612-.45q.575-.125 1.163-.175T12 4q3.425 0 6.263 1.8t4.337 4.85q.1.2.15.413t.05.437t-.038.438t-.137.412q-.45 1-1.112 1.875t-1.463 1.6q-.3.275-.7.225t-.65-.4t-.212-.763t.337-.687q.6-.575 1.1-1.25t.875-1.45q-1.25-2.525-3.613-4.012T12 6m0 13q-3.35 0-6.125-1.812T1.5 12.425q-.125-.2-.187-.437T1.25 11.5t.05-.475t.175-.45q.5-1 1.163-1.912T4.15 7L2.075 4.9q-.275-.3-.262-.712T2.1 3.5t.7-.275t.7.275l17 17q.275.275.288.688t-.288.712q-.275.275-.7.275t-.7-.275l-3.5-3.45q-.875.275-1.775.413T12 19M5.55 8.4q-.725.65-1.325 1.425T3.2 11.5q1.25 2.525 3.613 4.013T12 17q.5 0 .975-.062t.975-.138l-.9-.95q-.275.075-.525.113T12 16q-1.875 0-3.188-1.312T7.5 11.5q0-.275.038-.525t.112-.525zm4.2 4.2"},null,-1),me=[ue];function _e(i,s){return M(),E("svg",re,[...me])}const pe={name:"material-symbols-visibility-off-outline-rounded",render:_e};class T{constructor(){w(this,"line","");w(this,"key","");w(this,"value","")}update(s,t){this.line=this.line.replace(new RegExp(`^(${s}s*=s*).+$`),(o,n)=>n+t),this.value=t}static create(s,t){const o=new T;return o.key=s,o.value=t,o.line=`${s} = ${t}`,o}}function I(i){const s=[],t=i.split(` -`);for(const o of t){const n=o.split("="),d=new T;d.line=o,n.length>1&&(d.key=n[0].trimEnd(),d.value=n[1].trimStart()),s.push(d)}return s}function V(i,s,t){let o=i.find(n=>n.key==s);o?o.update(s,t):(o=T.create(s,t),i.push(o))}const he={class:"row mb-3"},fe={for:"is-enabled",class:"col-sm-3 col-md-2 col-form-label"},ve={class:"col-sm-4"},ge={class:"form-check"},be=["checked"],qe={class:"row mb-3"},we={for:"ssid",class:"col-sm-3 col-md-2 col-form-label"},Te={class:"col-sm-4"},ye={class:"row mb-3"},$e={for:"password",class:"col-sm-3 col-md-2 col-form-label"},ke={class:"col-sm-4"},xe={class:"input-group"},Ce=["type"],Ve={class:"inner"},Me={class:"row mb-3"},Ee={for:"hide-ssid",class:"col-sm-3 col-md-2 col-form-label"},Fe={class:"col-sm-4"},Se={class:"form-check"},Be=["checked"],Le=Y({__name:"WiFiView",setup(i){const{handleSubmit:s}=ne(),{t}=Z(),o=v(0),n=v(""),{value:d,errorMessage:y}=U("password",S().required().min(8)),{value:h,errorMessage:$}=U("ssid",S().required()),f=v(!1),k=v(!1),x=v(!1);function j(){f.value=!f.value}A({handle:(c,a)=>{a?G(t(a),"error"):(n.value=c.hostapd.config,k.value=c.hostapd.isEnabled,F())},document:B` +var P=Object.defineProperty;var Q=(i,s,t)=>s in i?P(i,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[s]=t;var w=(i,s,t)=>(Q(i,typeof s!="symbol"?s+"":s,t),t);import{_ as W}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BFVbtP9H.js";import{o as M,c as E,a as e,d as A,g as G,h as v,au as S,l as J,C as K,ac as B,c0 as D,j as X,p as g,m as l,x as r,aL as _,t as p,z as H,y as Y,c1 as Z,w as ee,O as te}from"./index-BXOWKrmL.js";import{_ as se}from"./EditToolbar.vuevuetypescriptsetuptruelang-CixbO2wa.js";import{_ as oe}from"./Breadcrumb-7GnPZCg_.js";import{u as ne,a as U}from"./vee-validate.esm-Bmkx0D8v.js";const ae={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},le=e("path",{fill:"currentColor",d:"M12 16q1.875 0 3.188-1.312T16.5 11.5t-1.312-3.187T12 7T8.813 8.313T7.5 11.5t1.313 3.188T12 16m0-1.8q-1.125 0-1.912-.788T9.3 11.5t.788-1.912T12 8.8t1.913.788t.787 1.912t-.787 1.913T12 14.2m0 4.8q-3.35 0-6.113-1.8t-4.362-4.75q-.125-.225-.187-.462t-.063-.488t.063-.488t.187-.462q1.6-2.95 4.363-4.75T12 4t6.113 1.8t4.362 4.75q.125.225.188.463t.062.487t-.062.488t-.188.462q-1.6 2.95-4.362 4.75T12 19m0-2q2.825 0 5.188-1.487T20.8 11.5q-1.25-2.525-3.613-4.012T12 6T6.813 7.488T3.2 11.5q1.25 2.525 3.613 4.013T12 17"},null,-1),ie=[le];function ce(i,s){return M(),E("svg",ae,[...ie])}const de={name:"material-symbols-visibility-outline-rounded",render:ce},re={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ue=e("path",{fill:"currentColor",d:"M15.175 8.325q.725.725 1.063 1.65t.237 1.9q0 .375-.275.638t-.65.262t-.638-.262t-.262-.638q.125-.65-.075-1.25T13.95 9.6t-1.025-.65t-1.275-.1q-.375 0-.638-.275t-.262-.65t.263-.637t.637-.263q.95-.1 1.875.238t1.65 1.062M12 6q-.475 0-.925.037t-.9.138q-.425.075-.763-.125t-.462-.6t.088-.775t.612-.45q.575-.125 1.163-.175T12 4q3.425 0 6.263 1.8t4.337 4.85q.1.2.15.413t.05.437t-.038.438t-.137.412q-.45 1-1.112 1.875t-1.463 1.6q-.3.275-.7.225t-.65-.4t-.212-.763t.337-.687q.6-.575 1.1-1.25t.875-1.45q-1.25-2.525-3.613-4.012T12 6m0 13q-3.35 0-6.125-1.812T1.5 12.425q-.125-.2-.187-.437T1.25 11.5t.05-.475t.175-.45q.5-1 1.163-1.912T4.15 7L2.075 4.9q-.275-.3-.262-.712T2.1 3.5t.7-.275t.7.275l17 17q.275.275.288.688t-.288.712q-.275.275-.7.275t-.7-.275l-3.5-3.45q-.875.275-1.775.413T12 19M5.55 8.4q-.725.65-1.325 1.425T3.2 11.5q1.25 2.525 3.613 4.013T12 17q.5 0 .975-.062t.975-.138l-.9-.95q-.275.075-.525.113T12 16q-1.875 0-3.188-1.312T7.5 11.5q0-.275.038-.525t.112-.525zm4.2 4.2"},null,-1),me=[ue];function _e(i,s){return M(),E("svg",re,[...me])}const pe={name:"material-symbols-visibility-off-outline-rounded",render:_e};class T{constructor(){w(this,"line","");w(this,"key","");w(this,"value","")}update(s,t){this.line=this.line.replace(new RegExp(`^(${s}s*=s*).+$`),(o,n)=>n+t),this.value=t}static create(s,t){const o=new T;return o.key=s,o.value=t,o.line=`${s} = ${t}`,o}}function I(i){const s=[],t=i.split(` +`);for(const o of t){const n=o.split("="),d=new T;d.line=o,n.length>1&&(d.key=n[0].trimEnd(),d.value=n[1].trimStart()),s.push(d)}return s}function V(i,s,t){let o=i.find(n=>n.key==s);o?o.update(s,t):(o=T.create(s,t),i.push(o))}const he={class:"row mb-3"},fe={for:"is-enabled",class:"col-sm-3 col-md-2 col-form-label"},ve={class:"col-sm-4"},ge={class:"form-check"},be=["checked"],qe={class:"row mb-3"},we={for:"ssid",class:"col-sm-3 col-md-2 col-form-label"},Te={class:"col-sm-4"},ye={class:"row mb-3"},$e={for:"password",class:"col-sm-3 col-md-2 col-form-label"},ke={class:"col-sm-4"},xe={class:"input-group"},Ce=["type"],Ve={class:"inner"},Me={class:"row mb-3"},Ee={for:"hide-ssid",class:"col-sm-3 col-md-2 col-form-label"},Fe={class:"col-sm-4"},Se={class:"form-check"},Be=["checked"],ze=A({__name:"WiFiView",setup(i){const{handleSubmit:s}=ne(),{t}=G(),o=v(0),n=v(""),{value:d,errorMessage:y}=U("password",S().required().min(8)),{value:h,errorMessage:$}=U("ssid",S().required()),f=v(!1),k=v(!1),x=v(!1);function L(){f.value=!f.value}J({handle:(c,a)=>{a?K(t(a),"error"):(n.value=c.hostapd.config,k.value=c.hostapd.isEnabled,F())},document:B` query { hostapd { ...HostapdFragment } } - ${H} - `});const{mutate:z,loading:L}=J({document:B` + ${D} + `});const{mutate:j,loading:z}=X({document:B` mutation applyHostapd($config: String!, $enable: Boolean!) { applyHostapd(config: $config, enable: $enable) { ...HostapdFragment } } - ${H} - `}),N=s(async()=>{n.value&&z({config:n.value,enable:k.value})});function C(){const c=I(n.value);V(c,"ssid",h.value??""),V(c,"wpa_passphrase",d.value??""),V(c,"ignore_broadcast_ssid",x.value?"1":"0"),n.value=c.map(a=>a.line).join(` -`)}function F(){var a,b,q;const c=I(n.value);h.value=((a=c.find(u=>u.key=="ssid"))==null?void 0:a.value)??"",d.value=((b=c.find(u=>u.key=="wpa_passphrase"))==null?void 0:b.value)??"",x.value=((q=c.find(u=>u.key=="ignore_broadcast_ssid"))==null?void 0:q.value)==="1"}return(c,a)=>{const b=oe,q=se,u=pe,R=de,O=W;return M(),E(te,null,[g(b,{current:()=>c.$t("page_title.wifi")},null,8,["current"]),g(q,{modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=m=>o.value=m),save:l(N),loading:l(L),tabs:["t:basic","/etc/hostapd/hostapd.conf"]},null,8,["modelValue","save","loading"]),r(e("form",null,[e("div",he,[e("label",fe,p(l(t)("enable")),1),e("div",ve,[e("div",ge,[e("md-checkbox",{"touch-target":"wrapper",checked:k.value,id:"is-enabled"},null,8,be)])])]),e("div",qe,[e("label",we,p(l(t)("wifi.ssid")),1),e("div",Te,[r(e("input",{type:"text","onUpdate:modelValue":a[1]||(a[1]=m=>D(h)?h.value=m:null),class:"form-control",id:"ssid",onChange:C},null,544),[[K,l(h)]]),r(e("div",{class:"invalid-feedback"},p(l($)?l(t)(l($)):""),513),[[_,l($)]])])]),e("div",ye,[e("label",$e,p(l(t)("password")),1),e("div",ke,[e("div",xe,[r(e("input",{class:"form-control","onUpdate:modelValue":a[2]||(a[2]=m=>D(d)?d.value=m:null),id:"password",onChange:C,type:f.value?"text":"password"},null,40,Ce),[[X,l(d)]]),e("a",{href:"#",onClick:ee(j,["prevent"]),class:"input-group-text"},[e("span",Ve,[r(g(u,null,null,512),[[_,f.value]]),r(g(R,null,null,512),[[_,!f.value]])])])]),r(e("div",{class:"invalid-feedback"},p(l(y)?l(t)(l(y),{min:8}):""),513),[[_,l(y)]])])]),e("div",Me,[e("label",Ee,p(l(t)("wifi.hide_ssid")),1),e("div",Fe,[e("div",Se,[e("md-checkbox",{"touch-target":"wrapper",checked:x.value,onChange:C,id:"hide-ssid"},null,40,Be)])])])],512),[[_,o.value===0]]),r(g(O,{language:"ini",onChange:F,height:"700",modelValue:n.value,"onUpdate:modelValue":a[3]||(a[3]=m=>n.value=m)},null,8,["modelValue"]),[[_,o.value===1]])],64)}}});export{Le as default}; + ${D} + `}),N=s(async()=>{n.value&&j({config:n.value,enable:k.value})});function C(){const c=I(n.value);V(c,"ssid",h.value??""),V(c,"wpa_passphrase",d.value??""),V(c,"ignore_broadcast_ssid",x.value?"1":"0"),n.value=c.map(a=>a.line).join(` +`)}function F(){var a,b,q;const c=I(n.value);h.value=((a=c.find(u=>u.key=="ssid"))==null?void 0:a.value)??"",d.value=((b=c.find(u=>u.key=="wpa_passphrase"))==null?void 0:b.value)??"",x.value=((q=c.find(u=>u.key=="ignore_broadcast_ssid"))==null?void 0:q.value)==="1"}return(c,a)=>{const b=oe,q=se,u=pe,R=de,O=W;return M(),E(te,null,[g(b,{current:()=>c.$t("page_title.wifi")},null,8,["current"]),g(q,{modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=m=>o.value=m),save:l(N),loading:l(z),tabs:["t:basic","/etc/hostapd/hostapd.conf"]},null,8,["modelValue","save","loading"]),r(e("form",null,[e("div",he,[e("label",fe,p(l(t)("enable")),1),e("div",ve,[e("div",ge,[e("md-checkbox",{"touch-target":"wrapper",checked:k.value,id:"is-enabled"},null,8,be)])])]),e("div",qe,[e("label",we,p(l(t)("wifi.ssid")),1),e("div",Te,[r(e("input",{type:"text","onUpdate:modelValue":a[1]||(a[1]=m=>H(h)?h.value=m:null),class:"form-control",id:"ssid",onChange:C},null,544),[[Y,l(h)]]),r(e("div",{class:"invalid-feedback"},p(l($)?l(t)(l($)):""),513),[[_,l($)]])])]),e("div",ye,[e("label",$e,p(l(t)("password")),1),e("div",ke,[e("div",xe,[r(e("input",{class:"form-control","onUpdate:modelValue":a[2]||(a[2]=m=>H(d)?d.value=m:null),id:"password",onChange:C,type:f.value?"text":"password"},null,40,Ce),[[Z,l(d)]]),e("a",{href:"#",onClick:ee(L,["prevent"]),class:"input-group-text"},[e("span",Ve,[r(g(u,null,null,512),[[_,f.value]]),r(g(R,null,null,512),[[_,!f.value]])])])]),r(e("div",{class:"invalid-feedback"},p(l(y)?l(t)(l(y),{min:8}):""),513),[[_,l(y)]])])]),e("div",Me,[e("label",Ee,p(l(t)("wifi.hide_ssid")),1),e("div",Fe,[e("div",Se,[e("md-checkbox",{"touch-target":"wrapper",checked:x.value,onChange:C,id:"hide-ssid"},null,40,Be)])])])],512),[[_,o.value===0]]),r(g(O,{language:"ini",onChange:F,height:"700",modelValue:n.value,"onUpdate:modelValue":a[3]||(a[3]=m=>n.value=m)},null,8,["modelValue"]),[[_,o.value===1]])],64)}}});export{ze as default}; diff --git a/app/src/main/resources/web/assets/WireGuardEditView-Bny0NhIz.js b/app/src/main/resources/web/assets/WireGuardEditView-C6fEJ_c-.js similarity index 92% rename from app/src/main/resources/web/assets/WireGuardEditView-Bny0NhIz.js rename to app/src/main/resources/web/assets/WireGuardEditView-C6fEJ_c-.js index 6b1e124e..2e93218b 100644 --- a/app/src/main/resources/web/assets/WireGuardEditView-Bny0NhIz.js +++ b/app/src/main/resources/web/assets/WireGuardEditView-C6fEJ_c-.js @@ -1,4 +1,4 @@ -import{_ as M}from"./MonacoEditor.vuevuetypescriptsetuptruelang-WcUH3tOp.js";import{_ as P}from"./EditToolbar.vuevuetypescriptsetuptruelang-BYnXPUga.js";import{_ as S}from"./Breadcrumb-B2BEfhSz.js";import{d as j,g as D,h as _,l as O,C as h,ac as x,b_ as U,j as T,c as Q,p as A,m as F,O as R,Q as q,o as N}from"./index-B-S542RM.js";import{p as G,g as B}from"./parser-DNY2aV9Q.js";function s(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,y(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 v(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 y(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 l(a,t,r){const e=new Float64Array(31);for(let o=0;o<16;++o)for(let n=0;n<16;++n)e[o+n]+=t[o]*r[n];for(let o=0;o<15;++o)e[o]+=38*e[o+16];for(let o=0;o<16;++o)a[o]=e[o];v(a),v(a)}function H(a,t){const r=s();for(let e=0;e<16;++e)r[e]=t[e];for(let e=253;e>=0;--e)l(r,r,r),e!==2&&e!==4&&l(r,r,t);for(let e=0;e<16;++e)a[e]=r[e]}function k(a){a[31]=a[31]&127|64,a[0]&=248}function J(a){let t;const r=new Uint8Array(32),e=s([1]),o=s([9]),n=s(),i=s([1]),f=s(),g=s(),$=s([56129,1]),I=s([9]);for(var u=0;u<32;++u)r[u]=a[u];k(r);for(var u=254;u>=0;--u)t=r[u>>>3]>>>(u&7)&1,y(e,o,t),y(n,i,t),w(f,e,n),K(e,e,n),w(n,o,i),K(o,o,i),l(i,f,f),l(g,e,e),l(e,n,e),l(n,o,f),w(f,e,n),K(e,e,n),l(o,e,e),K(n,i,g),l(e,n,$),w(e,e,i),l(n,n,e),l(e,i,g),l(i,o,I),l(o,f,f),y(e,o,t),y(n,i,t);return H(n,n),l(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 k(a),a}function C(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 W(a){let t;const r=new Uint8Array(44);for(t=0;t<32/3;++t)C(r.subarray(t*4),a.subarray(t*3));return C(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:W(t),privateKey:W(a)}},re=j({__name:"WireGuardEditView",setup(a){const{t}=D(),r=_(0),o=q().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=G(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=B(c)}}];O({handle:(c,d)=>{if(d)h(t(d),"error");else{const m=c.wireGuards.find(p=>p.id===o);if(m){n.value=m.config;const p=G(m.config);i.value=(p==null?void 0:p.wgInterface.name)??"",f.value=m.isEnabled}}},document:x` +import{_ as M}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BFVbtP9H.js";import{_ as P}from"./EditToolbar.vuevuetypescriptsetuptruelang-CixbO2wa.js";import{_ as S}from"./Breadcrumb-7GnPZCg_.js";import{d as j,g as D,h as _,l as O,C as h,ac as x,c2 as U,j as T,c as Q,p as A,m as F,O as R,Q as q,o as N}from"./index-BXOWKrmL.js";import{p as G,g as B}from"./parser-DNY2aV9Q.js";function s(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,y(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 v(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 y(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 l(a,t,r){const e=new Float64Array(31);for(let o=0;o<16;++o)for(let n=0;n<16;++n)e[o+n]+=t[o]*r[n];for(let o=0;o<15;++o)e[o]+=38*e[o+16];for(let o=0;o<16;++o)a[o]=e[o];v(a),v(a)}function H(a,t){const r=s();for(let e=0;e<16;++e)r[e]=t[e];for(let e=253;e>=0;--e)l(r,r,r),e!==2&&e!==4&&l(r,r,t);for(let e=0;e<16;++e)a[e]=r[e]}function k(a){a[31]=a[31]&127|64,a[0]&=248}function J(a){let t;const r=new Uint8Array(32),e=s([1]),o=s([9]),n=s(),i=s([1]),f=s(),g=s(),$=s([56129,1]),I=s([9]);for(var u=0;u<32;++u)r[u]=a[u];k(r);for(var u=254;u>=0;--u)t=r[u>>>3]>>>(u&7)&1,y(e,o,t),y(n,i,t),w(f,e,n),K(e,e,n),w(n,o,i),K(o,o,i),l(i,f,f),l(g,e,e),l(e,n,e),l(n,o,f),w(f,e,n),K(e,e,n),l(o,e,e),K(n,i,g),l(e,n,$),w(e,e,i),l(n,n,e),l(e,i,g),l(i,o,I),l(o,f,f),y(e,o,t),y(n,i,t);return H(n,n),l(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 k(a),a}function C(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 W(a){let t;const r=new Uint8Array(44);for(t=0;t<32/3;++t)C(r.subarray(t*4),a.subarray(t*3));return C(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:W(t),privateKey:W(a)}},re=j({__name:"WireGuardEditView",setup(a){const{t}=D(),r=_(0),o=q().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=G(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=B(c)}}];O({handle:(c,d)=>{if(d)h(t(d),"error");else{const m=c.wireGuards.find(p=>p.id===o);if(m){n.value=m.config;const p=G(m.config);i.value=(p==null?void 0:p.wgInterface.name)??"",f.value=m.isEnabled}}},document:x` query { wireGuards { ...WireGuardFragment diff --git a/app/src/main/resources/web/assets/WireGuardView-ByT6F4P7.js b/app/src/main/resources/web/assets/WireGuardView-CecgR6ou.js similarity index 75% rename from app/src/main/resources/web/assets/WireGuardView-ByT6F4P7.js rename to app/src/main/resources/web/assets/WireGuardView-CecgR6ou.js index 5b5f9ea7..b02c88dd 100644 --- a/app/src/main/resources/web/assets/WireGuardView-ByT6F4P7.js +++ b/app/src/main/resources/web/assets/WireGuardView-CecgR6ou.js @@ -1,4 +1,4 @@ -import{d as y,u as D,h as M,g as B,l as F,C as q,ac as o,b_ as g,j as E,c as r,p as f,a as e,t,O as $,P as N,o as i,m,w as b,f as P,Z as S,ad as V,a3 as j}from"./index-B-S542RM.js";import{_ as A}from"./Breadcrumb-B2BEfhSz.js";import{p as L}from"./parser-DNY2aV9Q.js";const O={class:"table-responsive"},Q={class:"table"},Z=e("th",null,"ID",-1),z={class:"actions two"},H={class:"form-check"},J=["disabled","onChange","checked"],K={class:"actions two"},R=["onClick"],T=["onClick"],ee=y({__name:"WireGuardView",setup(U){const w=D(),d=M([]),{t:u}=B();function k(n){P(w,`/wireguard/${n}`)}F({handle:(n,s)=>{s?q(u(s),"error"):d.value=n.wireGuards.map(l=>({...l,...L(l.config)}))},document:o` +import{d as y,u as D,h as M,g as B,l as F,C as q,ac as o,c2 as g,j as E,c as r,p as f,a as e,t,O as $,P as N,o as i,m,w as b,f as P,Z as S,ad as V,a3 as j}from"./index-BXOWKrmL.js";import{_ as A}from"./Breadcrumb-7GnPZCg_.js";import{p as L}from"./parser-DNY2aV9Q.js";const O={class:"table-responsive"},Q={class:"table"},Z=e("th",null,"ID",-1),z={class:"actions two"},H={class:"form-check"},J=["disabled","onChange","checked"],K={class:"actions two"},R=["onClick"],T=["onClick"],ee=y({__name:"WireGuardView",setup(U){const w=D(),d=M([]),{t:u}=B();function k(n){P(w,`/wireguard/${n}`)}F({handle:(n,s)=>{s?q(u(s),"error"):d.value=n.wireGuards.map(l=>({...l,...L(l.config)}))},document:o` query { wireGuards { ...WireGuardFragment @@ -16,4 +16,4 @@ import{d as y,u as D,h as M,g as B,l as F,C as q,ac as o,b_ as g,j as E,c as r,p mutation DeleteWireGuard($id: ID!) { deleteWireGuard(id: $id) } - `,appApi:!1,typeName:"WireGuard"})}return(n,s)=>{const l=A,I=j;return i(),r($,null,[f(l,{current:()=>n.$t("page_title.wireguard")},null,8,["current"]),e("div",O,[e("table",Q,[e("thead",null,[e("tr",null,[Z,e("th",null,t(n.$t("name")),1),e("th",null,t(n.$t("address")),1),e("th",null,t(n.$t("status")),1),e("th",null,t(n.$t("enabled")),1),e("th",z,t(n.$t("actions")),1)])]),e("tbody",null,[(i(!0),r($,null,N(d.value,a=>{var c,p,_;return i(),r("tr",{key:a.id},[e("td",null,[f(I,{id:a.id,raw:a},null,8,["id","raw"])]),e("td",null,t((c=a.wgInterface)==null?void 0:c.name),1),e("td",null,t((_=(p=a.wgInterface)==null?void 0:p.address)==null?void 0:_.join(", ")),1),e("td",null,t(a.isActive?n.$t("running")+` (${m(u)("listening_port")}: ${a.listeningPort})`:n.$t("stopped")),1),e("td",null,[e("div",H,[e("md-checkbox",{"touch-target":"wrapper",disabled:m(G),onChange:h=>C(a),checked:a.isEnabled},null,40,J)])]),e("td",K,[e("a",{href:"#",class:"v-link",onClick:b(h=>k(a.id),["prevent"])},t(n.$t("edit")),9,R),e("a",{href:"#",class:"v-link",onClick:b(h=>W(a),["prevent"])},t(n.$t("delete")),9,T)])])}),128))])])])],64)}}});export{ee as default}; + `,appApi:!1,typeName:"WireGuard"})}return(n,s)=>{const l=A,I=j;return i(),r($,null,[f(l,{current:()=>n.$t("page_title.wireguard")},null,8,["current"]),e("div",O,[e("table",Q,[e("thead",null,[e("tr",null,[Z,e("th",null,t(n.$t("name")),1),e("th",null,t(n.$t("address")),1),e("th",null,t(n.$t("status")),1),e("th",null,t(n.$t("enabled")),1),e("th",z,t(n.$t("actions")),1)])]),e("tbody",null,[(i(!0),r($,null,N(d.value,a=>{var c,p,h;return i(),r("tr",{key:a.id},[e("td",null,[f(I,{id:a.id,raw:a},null,8,["id","raw"])]),e("td",null,t((c=a.wgInterface)==null?void 0:c.name),1),e("td",null,t((h=(p=a.wgInterface)==null?void 0:p.address)==null?void 0:h.join(", ")),1),e("td",null,t(a.isActive?n.$t("running")+` (${m(u)("listening_port")}: ${a.listeningPort})`:n.$t("stopped")),1),e("td",null,[e("div",H,[e("md-checkbox",{"touch-target":"wrapper",disabled:m(G),onChange:_=>C(a),checked:a.isEnabled},null,40,J)])]),e("td",K,[e("a",{href:"#",class:"v-link",onClick:b(_=>k(a.id),["prevent"])},t(n.$t("edit")),9,R),e("a",{href:"#",class:"v-link",onClick:b(_=>W(a),["prevent"])},t(n.$t("delete")),9,T)])])}),128))])])])],64)}}});export{ee as default}; diff --git a/app/src/main/resources/web/assets/add-notes-outline-rounded-DjCnlzSZ.js b/app/src/main/resources/web/assets/add-notes-outline-rounded-BvbrKfug.js similarity index 96% rename from app/src/main/resources/web/assets/add-notes-outline-rounded-DjCnlzSZ.js rename to app/src/main/resources/web/assets/add-notes-outline-rounded-BvbrKfug.js index 9aa8e693..3f515213 100644 --- a/app/src/main/resources/web/assets/add-notes-outline-rounded-DjCnlzSZ.js +++ b/app/src/main/resources/web/assets/add-notes-outline-rounded-BvbrKfug.js @@ -1 +1 @@ -import{o as t,c as e,a as T}from"./index-B-S542RM.js";const q={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},s=T("path",{fill:"currentColor",d:"M6 12.05q0 1.125.425 2.188T7.75 16.2l.25.25V15q0-.425.288-.712T9 14t.713.288T10 15v4q0 .425-.288.713T9 20H5q-.425 0-.712-.288T4 19t.288-.712T5 18h1.75l-.4-.35q-1.3-1.15-1.825-2.625T4 12.05Q4 9.7 5.2 7.787T8.425 4.85q.35-.2.738-.025t.512.575q.125.375-.012.75t-.488.575q-1.45.8-2.312 2.213T6 12.05m12-.1q0-1.125-.425-2.187T16.25 7.8L16 7.55V9q0 .425-.288.713T15 10t-.712-.288T14 9V5q0-.425.288-.712T15 4h4q.425 0 .713.288T20 5t-.288.713T19 6h-1.75l.4.35q1.225 1.225 1.788 2.663T20 11.95q0 2.35-1.2 4.263t-3.225 2.937q-.35.2-.737.025t-.513-.575q-.125-.375.013-.75t.487-.575q1.45-.8 2.313-2.212T18 11.95"},null,-1),h=[s];function c(o,n){return t(),e("svg",q,[...h])}const m={name:"material-symbols-sync-rounded",render:c},r={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},_=T("path",{fill:"currentColor",d:"M17.5 18.5v2q0 .2.15.35T18 21t.35-.15t.15-.35v-2h2q.2 0 .35-.15T21 18t-.15-.35t-.35-.15h-2v-2q0-.2-.15-.35T18 15t-.35.15t-.15.35v2h-2q-.2 0-.35.15T15 18t.15.35t.35.15zM5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v5q0 .425-.288.713T20 11t-.712-.288T19 10V5H5v14h5q.425 0 .713.288T11 20t-.288.713T10 21zm0-3v1V5v6.075V11zm2-2q0 .425.288.713T8 17h2.075q.425 0 .713-.288t.287-.712t-.287-.712t-.713-.288H8q-.425 0-.712.288T7 16m0-4q0 .425.288.713T8 13h5q.425 0 .713-.288T14 12t-.288-.712T13 11H8q-.425 0-.712.288T7 12m0-4q0 .425.288.713T8 9h8q.425 0 .713-.288T17 8t-.288-.712T16 7H8q-.425 0-.712.288T7 8m11 15q-2.075 0-3.537-1.463T13 18t1.463-3.537T18 13t3.538 1.463T23 18t-1.463 3.538T18 23"},null,-1),l=[_];function i(o,n){return t(),e("svg",r,[...l])}const d={name:"material-symbols-add-notes-outline-rounded",render:i};export{d as _,m as a}; +import{o as t,c as e,a as T}from"./index-BXOWKrmL.js";const q={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},s=T("path",{fill:"currentColor",d:"M6 12.05q0 1.125.425 2.188T7.75 16.2l.25.25V15q0-.425.288-.712T9 14t.713.288T10 15v4q0 .425-.288.713T9 20H5q-.425 0-.712-.288T4 19t.288-.712T5 18h1.75l-.4-.35q-1.3-1.15-1.825-2.625T4 12.05Q4 9.7 5.2 7.787T8.425 4.85q.35-.2.738-.025t.512.575q.125.375-.012.75t-.488.575q-1.45.8-2.312 2.213T6 12.05m12-.1q0-1.125-.425-2.187T16.25 7.8L16 7.55V9q0 .425-.288.713T15 10t-.712-.288T14 9V5q0-.425.288-.712T15 4h4q.425 0 .713.288T20 5t-.288.713T19 6h-1.75l.4.35q1.225 1.225 1.788 2.663T20 11.95q0 2.35-1.2 4.263t-3.225 2.937q-.35.2-.737.025t-.513-.575q-.125-.375.013-.75t.487-.575q1.45-.8 2.313-2.212T18 11.95"},null,-1),h=[s];function c(o,n){return t(),e("svg",q,[...h])}const m={name:"material-symbols-sync-rounded",render:c},r={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},_=T("path",{fill:"currentColor",d:"M17.5 18.5v2q0 .2.15.35T18 21t.35-.15t.15-.35v-2h2q.2 0 .35-.15T21 18t-.15-.35t-.35-.15h-2v-2q0-.2-.15-.35T18 15t-.35.15t-.15.35v2h-2q-.2 0-.35.15T15 18t.15.35t.35.15zM5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v5q0 .425-.288.713T20 11t-.712-.288T19 10V5H5v14h5q.425 0 .713.288T11 20t-.288.713T10 21zm0-3v1V5v6.075V11zm2-2q0 .425.288.713T8 17h2.075q.425 0 .713-.288t.287-.712t-.287-.712t-.713-.288H8q-.425 0-.712.288T7 16m0-4q0 .425.288.713T8 13h5q.425 0 .713-.288T14 12t-.288-.712T13 11H8q-.425 0-.712.288T7 12m0-4q0 .425.288.713T8 9h8q.425 0 .713-.288T17 8t-.288-.712T16 7H8q-.425 0-.712.288T7 8m11 15q-2.075 0-3.537-1.463T13 18t1.463-3.537T18 13t3.538 1.463T23 18t-1.463 3.538T18 23"},null,-1),l=[_];function i(o,n){return t(),e("svg",r,[...l])}const d={name:"material-symbols-add-notes-outline-rounded",render:i};export{d as _,m as a}; diff --git a/app/src/main/resources/web/assets/call-outline-rounded-Z-SDSaoi.js b/app/src/main/resources/web/assets/call-outline-rounded-BPfmAopM.js similarity index 91% rename from app/src/main/resources/web/assets/call-outline-rounded-Z-SDSaoi.js rename to app/src/main/resources/web/assets/call-outline-rounded-BPfmAopM.js index 0726d4df..22d68d12 100644 --- a/app/src/main/resources/web/assets/call-outline-rounded-Z-SDSaoi.js +++ b/app/src/main/resources/web/assets/call-outline-rounded-BPfmAopM.js @@ -1 +1 @@ -import{o as e,c as t,a as o}from"./index-B-S542RM.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-BXOWKrmL.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/contact-page-outline-rounded-BW4vyYSZ.js b/app/src/main/resources/web/assets/contact-page-outline-rounded-Dn3mmffA.js similarity index 90% rename from app/src/main/resources/web/assets/contact-page-outline-rounded-BW4vyYSZ.js rename to app/src/main/resources/web/assets/contact-page-outline-rounded-Dn3mmffA.js index 79d8c997..4a98e4ee 100644 --- a/app/src/main/resources/web/assets/contact-page-outline-rounded-BW4vyYSZ.js +++ b/app/src/main/resources/web/assets/contact-page-outline-rounded-Dn3mmffA.js @@ -1 +1 @@ -import{o as t,c as e,a as o}from"./index-B-S542RM.js";const n={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},c=o("path",{fill:"currentColor",d:"M12 14q.825 0 1.413-.587T14 12t-.587-1.412T12 10t-1.412.588T10 12t.588 1.413T12 14m-4 4h8v-.575q0-.6-.325-1.1t-.9-.75q-.65-.275-1.338-.425T12 15t-1.437.15t-1.338.425q-.575.25-.9.75T8 17.425zm10 4H6q-.825 0-1.412-.587T4 20V4q0-.825.588-1.412T6 2h7.175q.4 0 .763.15t.637.425l4.85 4.85q.275.275.425.638t.15.762V20q0 .825-.587 1.413T18 22m0-2V8.85L13.15 4H6v16zM6 20V4z"},null,-1),s=[c];function a(r,l){return t(),e("svg",n,[...s])}const i={name:"material-symbols-contact-page-outline-rounded",render:a};export{i as _}; +import{o as t,c as e,a as o}from"./index-BXOWKrmL.js";const n={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},c=o("path",{fill:"currentColor",d:"M12 14q.825 0 1.413-.587T14 12t-.587-1.412T12 10t-1.412.588T10 12t.588 1.413T12 14m-4 4h8v-.575q0-.6-.325-1.1t-.9-.75q-.65-.275-1.338-.425T12 15t-1.437.15t-1.338.425q-.575.25-.9.75T8 17.425zm10 4H6q-.825 0-1.412-.587T4 20V4q0-.825.588-1.412T6 2h7.175q.4 0 .763.15t.637.425l4.85 4.85q.275.275.425.638t.15.762V20q0 .825-.587 1.413T18 22m0-2V8.85L13.15 4H6v16zM6 20V4z"},null,-1),s=[c];function a(r,l){return t(),e("svg",n,[...s])}const i={name:"material-symbols-contact-page-outline-rounded",render:a};export{i as _}; diff --git a/app/src/main/resources/web/assets/content-paste-rounded-CbiavvwV.js b/app/src/main/resources/web/assets/content-paste-rounded--YFEOBZV.js similarity index 89% rename from app/src/main/resources/web/assets/content-paste-rounded-CbiavvwV.js rename to app/src/main/resources/web/assets/content-paste-rounded--YFEOBZV.js index bb604b7e..af89d92b 100644 --- a/app/src/main/resources/web/assets/content-paste-rounded-CbiavvwV.js +++ b/app/src/main/resources/web/assets/content-paste-rounded--YFEOBZV.js @@ -1 +1 @@ -import{o as e,c as t,a as o}from"./index-B-S542RM.js";const n={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},s=o("path",{fill:"currentColor",d:"M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h4.175q.275-.875 1.075-1.437T12 1q1 0 1.788.563T14.85 3H19q.825 0 1.413.588T21 5v14q0 .825-.587 1.413T19 21zm0-2h14V5h-2v2q0 .425-.288.713T16 8H8q-.425 0-.712-.288T7 7V5H5zm7-14q.425 0 .713-.288T13 4t-.288-.712T12 3t-.712.288T11 4t.288.713T12 5"},null,-1),c=[s];function a(r,_){return e(),t("svg",n,[...c])}const h={name:"material-symbols-content-paste-rounded",render:a};export{h as _}; +import{o as e,c as t,a as o}from"./index-BXOWKrmL.js";const n={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},s=o("path",{fill:"currentColor",d:"M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h4.175q.275-.875 1.075-1.437T12 1q1 0 1.788.563T14.85 3H19q.825 0 1.413.588T21 5v14q0 .825-.587 1.413T19 21zm0-2h14V5h-2v2q0 .425-.288.713T16 8H8q-.425 0-.712-.288T7 7V5H5zm7-14q.425 0 .713-.288T13 4t-.288-.712T12 3t-.712.288T11 4t.288.713T12 5"},null,-1),c=[s];function a(r,_){return e(),t("svg",n,[...c])}const h={name:"material-symbols-content-paste-rounded",render:a};export{h as _}; diff --git a/app/src/main/resources/web/assets/cssMode-DGmecgny.js b/app/src/main/resources/web/assets/cssMode-Dr_dLNo_.js similarity index 99% rename from app/src/main/resources/web/assets/cssMode-DGmecgny.js rename to app/src/main/resources/web/assets/cssMode-Dr_dLNo_.js index fa62c1bb..3f58cf0b 100644 --- a/app/src/main/resources/web/assets/cssMode-DGmecgny.js +++ b/app/src/main/resources/web/assets/cssMode-Dr_dLNo_.js @@ -1,4 +1,4 @@ -var Fe=Object.defineProperty;var Le=(e,n,i)=>n in e?Fe(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>(Le(e,typeof n!="symbol"?n+"":n,i),i);import{m as je}from"./MonacoEditor.vuevuetypescriptsetuptruelang-WcUH3tOp.js";import"./index-B-S542RM.js";var Ne=Object.defineProperty,We=Object.getOwnPropertyDescriptor,Ue=Object.getOwnPropertyNames,Oe=Object.prototype.hasOwnProperty,Ve=(e,n,i,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of Ue(n))!Oe.call(e,t)&&t!==i&&Ne(e,t,{get:()=>n[t],enumerable:!(r=We(n,t))||r.enumerable});return e},He=(e,n,i)=>(Ve(e,n,"default"),i),c={};He(c,je);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)}},Y;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647})(Y||(Y={}));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 Z;(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})(Z||(Z={}));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 K;(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})(K||(K={}));var ee;(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})(ee||(ee={}));var P;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(P||(P={}));var te;(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})(te||(te={}));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 re;(function(e){e.Unnecessary=1,e.Deprecated=2})(re||(re={}));var ne;(function(e){function n(i){var r=i;return r!=null&&s.string(r.href)}e.is=n})(ne||(ne={}));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}(),ie=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 ie(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 ie,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 ae;(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})(ae||(ae={}));var oe;(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})(oe||(oe={}));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 se;(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})(se||(se={}));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 ue;(function(e){e.Deprecated=1})(ue||(ue={}));var ce;(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})(ce||(ce={}));var de;(function(e){e.asIs=1,e.adjustIndentation=2})(de||(de={}));var fe;(function(e){function n(i){return{label:i}}e.create=n})(fe||(fe={}));var ge;(function(e){function n(i,r){return{items:i||[],isIncomplete:!!r}}e.create=n})(ge||(ge={}));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 le;(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})(le||(le={}));var he;(function(e){function n(i,r){return r?{label:i,documentation:r}:{label:i}}e.create=n})(he||(he={}));var ve;(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?Fe(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>(Le(e,typeof n!="symbol"?n+"":n,i),i);import{m as je}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BFVbtP9H.js";import"./index-BXOWKrmL.js";var Ne=Object.defineProperty,We=Object.getOwnPropertyDescriptor,Ue=Object.getOwnPropertyNames,Oe=Object.prototype.hasOwnProperty,Ve=(e,n,i,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of Ue(n))!Oe.call(e,t)&&t!==i&&Ne(e,t,{get:()=>n[t],enumerable:!(r=We(n,t))||r.enumerable});return e},He=(e,n,i)=>(Ve(e,n,"default"),i),c={};He(c,je);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)}},Y;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647})(Y||(Y={}));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 Z;(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})(Z||(Z={}));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 K;(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})(K||(K={}));var ee;(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})(ee||(ee={}));var P;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(P||(P={}));var te;(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})(te||(te={}));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 re;(function(e){e.Unnecessary=1,e.Deprecated=2})(re||(re={}));var ne;(function(e){function n(i){var r=i;return r!=null&&s.string(r.href)}e.is=n})(ne||(ne={}));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}(),ie=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 ie(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 ie,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 ae;(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})(ae||(ae={}));var oe;(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})(oe||(oe={}));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 se;(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})(se||(se={}));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 ue;(function(e){e.Deprecated=1})(ue||(ue={}));var ce;(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})(ce||(ce={}));var de;(function(e){e.asIs=1,e.adjustIndentation=2})(de||(de={}));var fe;(function(e){function n(i){return{label:i}}e.create=n})(fe||(fe={}));var ge;(function(e){function n(i,r){return{items:i||[],isIncomplete:!!r}}e.create=n})(ge||(ge={}));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 le;(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})(le||(le={}));var he;(function(e){function n(i,r){return r?{label:i,documentation:r}:{label:i}}e.create=n})(he||(he={}));var ve;(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 De(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 Re(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(Re):[Re(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[Me(t)]})}};function Me(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(Me)})}},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,Te(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(),De(n),Te(i)).then(o=>{if(!(!o||o.length===0))return o.map(j)}))}};function Te(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,De(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;Se(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(Pe(i)),Pe(n)}function Pe(e){return{dispose:()=>Se(e)}}function Se(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,De as fromRange,kt as setupMode,_ as toRange,j as toTextEdit}; diff --git a/app/src/main/resources/web/assets/feature-Cs4tKJbl.js b/app/src/main/resources/web/assets/feature-Cs4tKJbl.js deleted file mode 100644 index 15d7ded7..00000000 --- a/app/src/main/resources/web/assets/feature-Cs4tKJbl.js +++ /dev/null @@ -1 +0,0 @@ -import{aL as s}from"./index-B-S542RM.js";const e={Q:29,R:30,S:31,S_V2:32,TIRAMISU:33,UPSIDE_DOWN_CAKE:34};function n(r){return r>=e.R}const R=(r,t)=>r===s.MEDIA_TRASH?n(t):!1;export{R as h}; diff --git a/app/src/main/resources/web/assets/feeds--RKt1Kst.js b/app/src/main/resources/web/assets/feeds-B70qguWF.js similarity index 77% rename from app/src/main/resources/web/assets/feeds--RKt1Kst.js rename to app/src/main/resources/web/assets/feeds-B70qguWF.js index a821deb6..a56fdc77 100644 --- a/app/src/main/resources/web/assets/feeds--RKt1Kst.js +++ b/app/src/main/resources/web/assets/feeds-B70qguWF.js @@ -1 +1 @@ -import{f as s,a7 as d,a8 as o}from"./index-B-S542RM.js";const f=e=>({viewAll:()=>{s(e,"/feeds")},viewFeed:a=>{const u=d([{name:"feed_id",op:"",value:a.id}]);s(e,`/feeds?q=${o(u)}`)},viewToday:()=>{const a=d([{name:"today",op:"",value:"true"}]);s(e,`/feeds?q=${o(a)}`)}});export{f as u}; +import{f as s,a7 as d,a8 as o}from"./index-BXOWKrmL.js";const f=e=>({viewAll:()=>{s(e,"/feeds")},viewFeed:a=>{const u=d([{name:"feed_id",op:"",value:a.id}]);s(e,`/feeds?q=${o(u)}`)},viewToday:()=>{const a=d([{name:"today",op:"",value:"true"}]);s(e,`/feeds?q=${o(a)}`)}});export{f as u}; diff --git a/app/src/main/resources/web/assets/freemarker2-DxReyA8H.js b/app/src/main/resources/web/assets/freemarker2-Cr303UPI.js similarity index 99% rename from app/src/main/resources/web/assets/freemarker2-DxReyA8H.js rename to app/src/main/resources/web/assets/freemarker2-Cr303UPI.js index 48685872..1134520f 100644 --- a/app/src/main/resources/web/assets/freemarker2-DxReyA8H.js +++ b/app/src/main/resources/web/assets/freemarker2-Cr303UPI.js @@ -1,3 +1,3 @@ -import{m as f}from"./MonacoEditor.vuevuetypescriptsetuptruelang-WcUH3tOp.js";import"./index-B-S542RM.js";var F=Object.defineProperty,b=Object.getOwnPropertyDescriptor,x=Object.getOwnPropertyNames,$=Object.prototype.hasOwnProperty,v=(t,n,_,e)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of x(n))!$.call(t,o)&&o!==_&&F(t,o,{get:()=>n[o],enumerable:!(e=b(n,o))||e.enumerable});return t},E=(t,n,_)=>(v(t,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-BFVbtP9H.js";import"./index-BXOWKrmL.js";var F=Object.defineProperty,b=Object.getOwnPropertyDescriptor,x=Object.getOwnPropertyNames,$=Object.prototype.hasOwnProperty,v=(t,n,_,e)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of x(n))!$.call(t,o)&&o!==_&&F(t,o,{get:()=>n[o],enumerable:!(e=b(n,o))||e.enumerable});return t},E=(t,n,_)=>(v(t,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 g(){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 m=c.source.replace(/__id__/g,_);return new RegExp(m,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 A(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:g(),language:A(k)},y={conf:g(),language:A(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-0fx6hZgv.js b/app/src/main/resources/web/assets/grid-view-outline-rounded-DfUd5oBB.js similarity index 97% rename from app/src/main/resources/web/assets/grid-view-outline-rounded-0fx6hZgv.js rename to app/src/main/resources/web/assets/grid-view-outline-rounded-DfUd5oBB.js index 7329c8b8..c8b7fdd9 100644 --- a/app/src/main/resources/web/assets/grid-view-outline-rounded-0fx6hZgv.js +++ b/app/src/main/resources/web/assets/grid-view-outline-rounded-DfUd5oBB.js @@ -1 +1 @@ -import{d as c,o as e,c as s,P as l,a as t,t as d,O as r,Y as a}from"./index-B-S542RM.js";const _={class:"start"},h=t("div",{class:"checkbox"},[t("div",{class:"skeleton-checkbox"})],-1),m={class:"number"},v=a('
',5),N=c({__name:"ImageVideoListSkeleton",props:{limit:{type:Number,required:!0}},setup(n){const o=n;return(C,H)=>(e(!0),s(r,null,l(o.limit,i=>(e(),s("section",{class:"media-item selectable-card-skeleton",key:i},[t("div",_,[h,t("span",m,d(i+1),1)]),v]))),128))}}),T={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},u=t("path",{fill:"currentColor",d:"m10.6 13.8l-2.15-2.15q-.275-.275-.7-.275t-.7.275t-.275.7t.275.7L9.9 15.9q.3.3.7.3t.7-.3l5.65-5.65q.275-.275.275-.7t-.275-.7t-.7-.275t-.7.275zM12 22q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12t-.788 3.9t-2.137 3.175t-3.175 2.138T12 22m0-2q3.35 0 5.675-2.325T20 12t-2.325-5.675T12 4T6.325 6.325T4 12t2.325 5.675T12 20m0-8"},null,-1),q=[u];function p(n,o){return e(),s("svg",T,[...q])}const S={name:"material-symbols-check-circle-outline-rounded",render:p},k={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},g=t("path",{fill:"currentColor",d:"m10.6 13.8l-2.15-2.15q-.275-.275-.7-.275t-.7.275t-.275.7t.275.7L9.9 15.9q.3.3.7.3t.7-.3l5.65-5.65q.275-.275.275-.7t-.275-.7t-.7-.275t-.7.275zM12 22q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12t-.788 3.9t-2.137 3.175t-3.175 2.138T12 22"},null,-1),x=[g];function z(n,o){return e(),s("svg",k,[...x])}const D={name:"material-symbols-check-circle-rounded",render:z},$={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},b=t("path",{fill:"currentColor",d:"M5 11q-.825 0-1.412-.587T3 9V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v4q0 .825-.587 1.413T19 11zm0-2h14V5H5zm0 12q-.825 0-1.412-.587T3 19v-4q0-.825.588-1.412T5 13h14q.825 0 1.413.588T21 15v4q0 .825-.587 1.413T19 21zm0-2h14v-4H5zM5 9V5zm0 10v-4z"},null,-1),f=[b];function V(n,o){return e(),s("svg",$,[...f])}const E={name:"material-symbols-splitscreen-outline",render:V},w={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},M=t("path",{fill:"currentColor",d:"M5 11q-.825 0-1.412-.587T3 9V5q0-.825.588-1.412T5 3h4q.825 0 1.413.588T11 5v4q0 .825-.587 1.413T9 11zm0 10q-.825 0-1.412-.587T3 19v-4q0-.825.588-1.412T5 13h4q.825 0 1.413.588T11 15v4q0 .825-.587 1.413T9 21zm10-10q-.825 0-1.412-.587T13 9V5q0-.825.588-1.412T15 3h4q.825 0 1.413.588T21 5v4q0 .825-.587 1.413T19 11zm0 10q-.825 0-1.412-.587T13 19v-4q0-.825.588-1.412T15 13h4q.825 0 1.413.588T21 15v4q0 .825-.587 1.413T19 21zM5 9h4V5H5zm10 0h4V5h-4zm0 10h4v-4h-4zM5 19h4v-4H5zM9 9"},null,-1),y=[M];function B(n,o){return e(),s("svg",w,[...y])}const F={name:"material-symbols-grid-view-outline-rounded",render:B};export{F as _,E as a,D as b,S as c,N as d}; +import{d as c,o as e,c as s,P as l,a as t,t as d,O as r,Y as a}from"./index-BXOWKrmL.js";const _={class:"start"},h=t("div",{class:"checkbox"},[t("div",{class:"skeleton-checkbox"})],-1),m={class:"number"},v=a('
',5),N=c({__name:"ImageVideoListSkeleton",props:{limit:{type:Number,required:!0}},setup(n){const o=n;return(C,H)=>(e(!0),s(r,null,l(o.limit,i=>(e(),s("section",{class:"media-item selectable-card-skeleton",key:i},[t("div",_,[h,t("span",m,d(i+1),1)]),v]))),128))}}),T={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},u=t("path",{fill:"currentColor",d:"m10.6 13.8l-2.15-2.15q-.275-.275-.7-.275t-.7.275t-.275.7t.275.7L9.9 15.9q.3.3.7.3t.7-.3l5.65-5.65q.275-.275.275-.7t-.275-.7t-.7-.275t-.7.275zM12 22q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12t-.788 3.9t-2.137 3.175t-3.175 2.138T12 22m0-2q3.35 0 5.675-2.325T20 12t-2.325-5.675T12 4T6.325 6.325T4 12t2.325 5.675T12 20m0-8"},null,-1),q=[u];function p(n,o){return e(),s("svg",T,[...q])}const S={name:"material-symbols-check-circle-outline-rounded",render:p},k={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},g=t("path",{fill:"currentColor",d:"m10.6 13.8l-2.15-2.15q-.275-.275-.7-.275t-.7.275t-.275.7t.275.7L9.9 15.9q.3.3.7.3t.7-.3l5.65-5.65q.275-.275.275-.7t-.275-.7t-.7-.275t-.7.275zM12 22q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12t-.788 3.9t-2.137 3.175t-3.175 2.138T12 22"},null,-1),x=[g];function z(n,o){return e(),s("svg",k,[...x])}const D={name:"material-symbols-check-circle-rounded",render:z},$={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},b=t("path",{fill:"currentColor",d:"M5 11q-.825 0-1.412-.587T3 9V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v4q0 .825-.587 1.413T19 11zm0-2h14V5H5zm0 12q-.825 0-1.412-.587T3 19v-4q0-.825.588-1.412T5 13h14q.825 0 1.413.588T21 15v4q0 .825-.587 1.413T19 21zm0-2h14v-4H5zM5 9V5zm0 10v-4z"},null,-1),f=[b];function V(n,o){return e(),s("svg",$,[...f])}const E={name:"material-symbols-splitscreen-outline",render:V},w={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},M=t("path",{fill:"currentColor",d:"M5 11q-.825 0-1.412-.587T3 9V5q0-.825.588-1.412T5 3h4q.825 0 1.413.588T11 5v4q0 .825-.587 1.413T9 11zm0 10q-.825 0-1.412-.587T3 19v-4q0-.825.588-1.412T5 13h4q.825 0 1.413.588T11 15v4q0 .825-.587 1.413T9 21zm10-10q-.825 0-1.412-.587T13 9V5q0-.825.588-1.412T15 3h4q.825 0 1.413.588T21 5v4q0 .825-.587 1.413T19 11zm0 10q-.825 0-1.412-.587T13 19v-4q0-.825.588-1.412T15 13h4q.825 0 1.413.588T21 15v4q0 .825-.587 1.413T19 21zM5 9h4V5H5zm10 0h4V5h-4zm0 10h4v-4h-4zM5 19h4v-4H5zM9 9"},null,-1),y=[M];function B(n,o){return e(),s("svg",w,[...y])}const F={name:"material-symbols-grid-view-outline-rounded",render:B};export{F as _,E as a,D as b,S as c,N as d}; diff --git a/app/src/main/resources/web/assets/handlebars-C85M79z7.js b/app/src/main/resources/web/assets/handlebars-C-uGZQP_.js similarity index 99% rename from app/src/main/resources/web/assets/handlebars-C85M79z7.js rename to app/src/main/resources/web/assets/handlebars-C-uGZQP_.js index 08c98c03..0bbac73b 100644 --- a/app/src/main/resources/web/assets/handlebars-C85M79z7.js +++ b/app/src/main/resources/web/assets/handlebars-C-uGZQP_.js @@ -1 +1 @@ -import{m as i}from"./MonacoEditor.vuevuetypescriptsetuptruelang-WcUH3tOp.js";import"./index-B-S542RM.js";var l=Object.defineProperty,s=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,p=(t,e,r,m)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of d(e))!c.call(t,n)&&n!==r&&l(t,n,{get:()=>e[n],enumerable:!(m=s(e,n))||m.enumerable});return t},h=(t,e,r)=>(p(t,e,"default"),r),a={};h(a,i);var o=["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(`<(?!(?:${o.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:a.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${o.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-BFVbtP9H.js";import"./index-BXOWKrmL.js";var l=Object.defineProperty,s=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,p=(t,e,r,m)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of d(e))!c.call(t,n)&&n!==r&&l(t,n,{get:()=>e[n],enumerable:!(m=s(e,n))||m.enumerable});return t},h=(t,e,r)=>(p(t,e,"default"),r),a={};h(a,i);var o=["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(`<(?!(?:${o.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:a.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${o.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-C5tELRuq.js b/app/src/main/resources/web/assets/html-CzXZ9GKY.js similarity index 98% rename from app/src/main/resources/web/assets/html-C5tELRuq.js rename to app/src/main/resources/web/assets/html-CzXZ9GKY.js index 87e42b01..534862b2 100644 --- a/app/src/main/resources/web/assets/html-C5tELRuq.js +++ b/app/src/main/resources/web/assets/html-CzXZ9GKY.js @@ -1 +1 @@ -import{m as s}from"./MonacoEditor.vuevuetypescriptsetuptruelang-WcUH3tOp.js";import"./index-B-S542RM.js";var d=Object.defineProperty,p=Object.getOwnPropertyDescriptor,m=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,c=(t,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of m(e))!l.call(t,r)&&r!==n&&d(t,r,{get:()=>e[r],enumerable:!(o=p(e,r))||o.enumerable});return t},u=(t,e,n)=>(c(t,e,"default"),n),i={};u(i,s);var a=["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(`<(?!(?:${a.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:i.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${a.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 s}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BFVbtP9H.js";import"./index-BXOWKrmL.js";var d=Object.defineProperty,p=Object.getOwnPropertyDescriptor,m=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,c=(t,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of m(e))!l.call(t,r)&&r!==n&&d(t,r,{get:()=>e[r],enumerable:!(o=p(e,r))||o.enumerable});return t},u=(t,e,n)=>(c(t,e,"default"),n),i={};u(i,s);var a=["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(`<(?!(?:${a.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:i.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${a.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-CU43yFfm.js b/app/src/main/resources/web/assets/htmlMode-6R6887KQ.js similarity index 99% rename from app/src/main/resources/web/assets/htmlMode-CU43yFfm.js rename to app/src/main/resources/web/assets/htmlMode-6R6887KQ.js index 19322ef9..f08d23bc 100644 --- a/app/src/main/resources/web/assets/htmlMode-CU43yFfm.js +++ b/app/src/main/resources/web/assets/htmlMode-6R6887KQ.js @@ -1,4 +1,4 @@ -var Be=Object.defineProperty;var $e=(e,n,i)=>n in e?Be(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>($e(e,typeof n!="symbol"?n+"":n,i),i);import{m as qe}from"./MonacoEditor.vuevuetypescriptsetuptruelang-WcUH3tOp.js";import"./index-B-S542RM.js";var Qe=Object.defineProperty,Ge=Object.getOwnPropertyDescriptor,Je=Object.getOwnPropertyNames,Ye=Object.prototype.hasOwnProperty,Ze=(e,n,i,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of Je(n))!Ye.call(e,t)&&t!==i&&Qe(e,t,{get:()=>n[t],enumerable:!(r=Ge(n,t))||r.enumerable});return e},Ke=(e,n,i)=>(Ze(e,n,"default"),i),c={};Ke(c,qe);var et=2*60*1e3,De=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)}},Y;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647})(Y||(Y={}));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 Z;(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})(Z||(Z={}));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 K;(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})(K||(K={}));var ee;(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})(ee||(ee={}));var R;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(R||(R={}));var te;(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})(te||(te={}));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 re;(function(e){e.Unnecessary=1,e.Deprecated=2})(re||(re={}));var ne;(function(e){function n(i){var r=i;return r!=null&&s.string(r.href)}e.is=n})(ne||(ne={}));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}(),ie=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 ie(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 ie,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 ae;(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})(ae||(ae={}));var oe;(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})(oe||(oe={}));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 se;(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})(se||(se={}));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 ue;(function(e){e.Deprecated=1})(ue||(ue={}));var ce;(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})(ce||(ce={}));var de;(function(e){e.asIs=1,e.adjustIndentation=2})(de||(de={}));var ge;(function(e){function n(i){return{label:i}}e.create=n})(ge||(ge={}));var fe;(function(e){function n(i,r){return{items:i||[],isIncomplete:!!r}}e.create=n})(fe||(fe={}));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 le;(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})(le||(le={}));var he;(function(e){function n(i,r){return r?{label:i,documentation:r}:{label:i}}e.create=n})(he||(he={}));var ve;(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?Be(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var E=(e,n,i)=>($e(e,typeof n!="symbol"?n+"":n,i),i);import{m as qe}from"./MonacoEditor.vuevuetypescriptsetuptruelang-BFVbtP9H.js";import"./index-BXOWKrmL.js";var Qe=Object.defineProperty,Ge=Object.getOwnPropertyDescriptor,Je=Object.getOwnPropertyNames,Ye=Object.prototype.hasOwnProperty,Ze=(e,n,i,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of Je(n))!Ye.call(e,t)&&t!==i&&Qe(e,t,{get:()=>n[t],enumerable:!(r=Ge(n,t))||r.enumerable});return e},Ke=(e,n,i)=>(Ze(e,n,"default"),i),c={};Ke(c,qe);var et=2*60*1e3,De=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)}},Y;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647})(Y||(Y={}));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 Z;(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})(Z||(Z={}));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 K;(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})(K||(K={}));var ee;(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})(ee||(ee={}));var R;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(R||(R={}));var te;(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})(te||(te={}));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 re;(function(e){e.Unnecessary=1,e.Deprecated=2})(re||(re={}));var ne;(function(e){function n(i){var r=i;return r!=null&&s.string(r.href)}e.is=n})(ne||(ne={}));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}(),ie=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 ie(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 ie,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 ae;(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})(ae||(ae={}));var oe;(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})(oe||(oe={}));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 se;(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})(se||(se={}));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 ue;(function(e){e.Deprecated=1})(ue||(ue={}));var ce;(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})(ce||(ce={}));var de;(function(e){e.asIs=1,e.adjustIndentation=2})(de||(de={}));var ge;(function(e){function n(i){return{label:i}}e.create=n})(ge||(ge={}));var fe;(function(e){function n(i,r){return{items:i||[],isIncomplete:!!r}}e.create=n})(fe||(fe={}));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 le;(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})(le||(le={}));var he;(function(e){function n(i,r){return r?{label:i,documentation:r}:{label:i}}e.create=n})(he||(he={}));var ve;(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 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 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 Se=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 Pe(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(Pe):[Pe(e)]}var Te=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[Fe(t)]})}};function Fe(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(Fe)})}},Le=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 je=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 Ne=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}))}})}},We=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,Ue(n)).then(a=>{if(!(!a||a.length===0))return a.map(j)}))}},He=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),Ue(i)).then(o=>{if(!(!o||o.length===0))return o.map(j)}))}};function Ue(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,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})})}},Oe=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 Ve=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})})}},ze=class extends it{constructor(e){super(e,[".",":","<",'"',"=","/"])}};function bt(e){const n=new De(e),i=(...t)=>n.getLanguageServiceWorker(...t);let r=e.languageId;c.languages.registerCompletionItemProvider(r,new ze(i)),c.languages.registerHoverProvider(r,new Se(i)),c.languages.registerDocumentHighlightProvider(r,new Te(i)),c.languages.registerLinkProvider(r,new Ne(i)),c.languages.registerFoldingRangeProvider(r,new Oe(i)),c.languages.registerDocumentSymbolProvider(r,new je(i)),c.languages.registerSelectionRangeProvider(r,new Ve(i)),c.languages.registerRenameProvider(r,new Le(i)),r==="html"&&(c.languages.registerDocumentFormattingEditProvider(r,new We(i)),c.languages.registerDocumentRangeFormattingEditProvider(r,new He(i)))}function Et(e){const n=[],i=[],r=new De(e);n.push(r);const t=(...o)=>r.getLanguageServiceWorker(...o);function a(){const{languageId:o,modeConfiguration:u}=e;Xe(i),u.completionItems&&i.push(c.languages.registerCompletionItemProvider(o,new ze(t))),u.hovers&&i.push(c.languages.registerHoverProvider(o,new Se(t))),u.documentHighlights&&i.push(c.languages.registerDocumentHighlightProvider(o,new Te(t))),u.links&&i.push(c.languages.registerLinkProvider(o,new Ne(t))),u.documentSymbols&&i.push(c.languages.registerDocumentSymbolProvider(o,new je(t))),u.rename&&i.push(c.languages.registerRenameProvider(o,new Le(t))),u.foldingRanges&&i.push(c.languages.registerFoldingRangeProvider(o,new Oe(t))),u.selectionRanges&&i.push(c.languages.registerSelectionRangeProvider(o,new Ve(t))),u.documentFormattingEdits&&i.push(c.languages.registerDocumentFormattingEditProvider(o,new We(t))),u.documentRangeFormattingEdits&&i.push(c.languages.registerDocumentRangeFormattingEditProvider(o,new He(t)))}return a(),n.push(Re(i)),Re(n)}function Re(e){return{dispose:()=>Xe(e)}}function Xe(e){for(;e.length;)e.pop().dispose()}export{it as CompletionAdapter,_t as DefinitionAdapter,mt as DiagnosticsAdapter,kt as DocumentColorAdapter,We as DocumentFormattingEditProvider,Te as DocumentHighlightAdapter,Ne as DocumentLinkAdapter,He as DocumentRangeFormattingEditProvider,je as DocumentSymbolAdapter,Oe as FoldingRangeAdapter,Se as HoverAdapter,wt as ReferenceAdapter,Le as RenameAdapter,Ve as SelectionRangeAdapter,De as WorkerManager,A as fromPosition,Me as fromRange,Et as setupMode,bt as setupMode1,_ as toRange,j as toTextEdit}; diff --git a/app/src/main/resources/web/assets/index-B-S542RM.js b/app/src/main/resources/web/assets/index-BXOWKrmL.js similarity index 54% rename from app/src/main/resources/web/assets/index-B-S542RM.js rename to app/src/main/resources/web/assets/index-BXOWKrmL.js index d82db94a..c7b13f17 100644 --- a/app/src/main/resources/web/assets/index-B-S542RM.js +++ b/app/src/main/resources/web/assets/index-BXOWKrmL.js @@ -1,71 +1,71 @@ -const __vite__fileDeps=["assets/HomeView-nno0lqBn.js","assets/content-paste-rounded-CbiavvwV.js","assets/contact-page-outline-rounded-BW4vyYSZ.js","assets/rss-feed-rounded-DzJ3TVan.js","assets/HomeView-D7955Nsw.css","assets/MessagesView-BAu1BpGj.js","assets/VPagination.vuevuetypescriptsetuptruelang-DUdPyPtr.js","assets/call-outline-rounded-Z-SDSaoi.js","assets/SearchInput-D0d2xIiv.js","assets/search-rounded-TCa6qTC1.js","assets/search-k8SzNgo1.js","assets/SearchInput-B8mbW6Pb.css","assets/tags-x91i2rzh.js","assets/vee-validate.esm-D5u4WlYW.js","assets/tags-Cd8okQsu.css","assets/key-events-D1Kh05Em.js","assets/MessagesView-CptXBCle.css","assets/MessagesSidebar-BMS62ogM.js","assets/LeftSidebar.vuevuetypescriptsetuptruelang-Bkp0VFG-.js","assets/TagFilter.vuevuetypescriptsetuptruelang-DXYEFTYG.js","assets/more-vert-XZtlvs7x.js","assets/EditValueModal-u3M261_O.js","assets/EditValueModal-Dc0A-wcv.css","assets/CallsView-DC8TWXew.js","assets/CallsView-DtiHr3nL.css","assets/CallsSidebar-DRbWt7_C.js","assets/AppsView-89NMnT97.js","assets/sort-rounded-BVzv_GA2.js","assets/AppsView-D9MzdfnP.css","assets/AppsSidebar-Cj1CrVM6.js","assets/ContactsView-CSK3a-nc.js","assets/ContactsView-BcXNxoAk.css","assets/ContactsSidebar-D1mwAWK5.js","assets/ImagesView-BVWs9mJH.js","assets/grid-view-outline-rounded-0fx6hZgv.js","assets/upload-rounded-_5wwNL4r.js","assets/restore-from-trash-outline-rounded-Ck6P-VkW.js","assets/IconButton.vuevuetypescriptsetuptruelang-CxW8gnDA.js","assets/media-trash-C0Lwc6-9.js","assets/feature-Cs4tKJbl.js","assets/ImagesSidebar-DfZzf2UQ.js","assets/MediaSidebar.vuevuetypescriptsetuptruelang-BEpTuoep.js","assets/VideosView-DteZXZKB.js","assets/VideosSidebar-DOxCYXc4.js","assets/AudiosView-4yfLJMGs.js","assets/AudiosView-B572va8i.css","assets/AudiosSidebar-CBgA4bNr.js","assets/NoteEditView-vDUpCxeq.js","assets/MonacoEditor.vuevuetypescriptsetuptruelang-WcUH3tOp.js","assets/MonacoEditor-f6DHwtwy.css","assets/print-outline-rounded-CtsVPpnN.js","assets/markdown-DdibuaIZ.js","assets/NoteEditView-NyTTm8EP.css","assets/NotesView-D09b0SdB.js","assets/NotesView-BacuxLVv.css","assets/NotesSidebar-DLd9XA5A.js","assets/AIChatView-DWTZwDqz.js","assets/AIChatView-DJtUiHID.css","assets/AIChatsView-DVptoi35.js","assets/AIChatsSidebar-CaTw6QFf.js","assets/FilesView-P-UuQ7zs.js","assets/refresh-rounded-B2-aEsw4.js","assets/default-BQXvEOng.js","assets/FilesView-D-xT5azp.css","assets/FilesSidebar-DGzsCKBr.js","assets/FilesRecentView-CNtr3u0V.js","assets/JsonViewerView-dUM7kA38.js","assets/JsonViewerView-DooypT0f.css","assets/QrCodeGeneratorView-DcFeB_XT.js","assets/QrCodeGeneratorView-zGsbr-uW.css","assets/ScreenMirrorView-C9zlEI1C.js","assets/ScreenMirrorView-DC7Xz2uk.css","assets/DeviceInfoView-DqZ-NosA.js","assets/DeviceInfoView-iGYgiKSx.css","assets/NetworkView-BUYTQiCk.js","assets/EditToolbar.vuevuetypescriptsetuptruelang-BYnXPUga.js","assets/Breadcrumb-B2BEfhSz.js","assets/Breadcrumb-aiFCf_Cu.css","assets/WiFiView-Ddi8fsYG.js","assets/WireGuardView-ByT6F4P7.js","assets/parser-DNY2aV9Q.js","assets/WireGuardEditView-Bny0NhIz.js","assets/RulesView-BRxrR5pV.js","assets/question-mark-rounded-9QsiQLvf.js","assets/RoutesView-aNsquRXJ.js","assets/DevicesView-DLXN6G6M.js","assets/FeedsSidebar-BlMq6Zgz.js","assets/feeds--RKt1Kst.js","assets/FeedsSidebar-CeLGFVT-.css","assets/FeedsSidebar2-CGc8dY8M.js","assets/add-notes-outline-rounded-DjCnlzSZ.js","assets/FeedsSidebar2-RJUybW8A.css","assets/FeedEntryView-2EJadICJ.js","assets/FeedEntryView-BQLkpK5x.css","assets/LoginView-iF0mahQu.js","assets/LoginView-DlNG7WQY.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -var LL=Object.defineProperty;var ML=(t,e,r)=>e in t?LL(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Wt=(t,e,r)=>(ML(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 Pb(t,e){const r=new Set(t.split(","));return n=>r.has(n)}const tr={},Ol=[],Zn=()=>{},FL=()=>!1,kp=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Rb=t=>t.startsWith("onUpdate:"),pr=Object.assign,Db=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},NL=Object.prototype.hasOwnProperty,St=(t,e)=>NL.call(t,e),Xe=Array.isArray,Pl=t=>dc(t)==="[object Map]",cc=t=>dc(t)==="[object Set]",fw=t=>dc(t)==="[object Date]",zL=t=>dc(t)==="[object RegExp]",at=t=>typeof t=="function",or=t=>typeof t=="string",bo=t=>typeof t=="symbol",Vt=t=>t!==null&&typeof t=="object",q4=t=>(Vt(t)||at(t))&&at(t.then)&&at(t.catch),B4=Object.prototype.toString,dc=t=>B4.call(t),qL=t=>dc(t).slice(8,-1),U4=t=>dc(t)==="[object Object]",Lb=t=>or(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,dd=Pb(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Cp=t=>{const e=Object.create(null);return r=>e[r]||(e[r]=t(r))},BL=/-(\w)/g,Bi=Cp(t=>t.replace(BL,(e,r)=>r?r.toUpperCase():"")),UL=/\B([A-Z])/g,Ds=Cp(t=>t.replace(UL,"-$1").toLowerCase()),Ap=Cp(t=>t.charAt(0).toUpperCase()+t.slice(1)),Th=Cp(t=>t?`on${Ap(t)}`:""),Ea=(t,e)=>!Object.is(t,e),Rl=(t,e)=>{for(let r=0;r{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:n,value:r})},Bh=t=>{const e=parseFloat(t);return isNaN(e)?t:e},VL=t=>{const e=or(t)?Number(t):NaN;return isNaN(e)?t:e};let hw;const j4=()=>hw||(hw=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ka(t){if(Xe(t)){const e={};for(let r=0;r{if(r){const n=r.split(HL);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function Pn(t){let e="";if(or(t))e=t;else if(Xe(t))for(let r=0;rTs(r,e))}const Me=t=>or(t)?t:t==null?"":Xe(t)||Vt(t)&&(t.toString===B4||!at(t.toString))?JSON.stringify(t,W4,2):String(t),W4=(t,e)=>e&&e.__v_isRef?W4(t,e.value):Pl(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[n,i],o)=>(r[Gv(n,o)+" =>"]=i,r),{})}:cc(e)?{[`Set(${e.size})`]:[...e.values()].map(r=>Gv(r))}:bo(e)?Gv(e):Vt(e)&&!Xe(e)&&!U4(e)?String(e):e,Gv=(t,e="")=>{var r;return bo(t)?`Symbol(${(r=t.description)!=null?r:e})`:t};let On;class G4{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=On,!e&&On&&(this.index=(On.scopes||(On.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const r=On;try{return On=this,e()}finally{On=r}}}on(){On=this}off(){On=this.parent}stop(e){if(this._active){let r,n;for(r=0,n=this.effects.length;r=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Na()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=_a,r=vs;try{return _a=!0,vs=this,this._runnings++,pw(this),this.fn()}finally{mw(this),this._runnings--,vs=r,_a=e}}stop(){this.active&&(pw(this),mw(this),this.onStop&&this.onStop(),this.active=!1)}}function ZL(t){return t.value}function pw(t){t._trackId++,t._depsLength=0}function mw(t){if(t.deps.length>t._depsLength){for(let e=t._depsLength;e{const r=new Map;return r.cleanup=t,r.computed=e,r},Uh=new WeakMap,gs=Symbol(""),t_=Symbol("");function xn(t,e,r){if(_a&&vs){let n=Uh.get(t);n||Uh.set(t,n=new Map);let i=n.get(r);i||n.set(r,i=Z4(()=>n.delete(r))),X4(vs,i)}}function vo(t,e,r,n,i,o){const a=Uh.get(t);if(!a)return;let l=[];if(e==="clear")l=[...a.values()];else if(r==="length"&&Xe(t)){const d=Number(n);a.forEach((u,f)=>{(f==="length"||!bo(f)&&f>=d)&&l.push(u)})}else switch(r!==void 0&&l.push(a.get(r)),e){case"add":Xe(t)?Lb(r)&&l.push(a.get("length")):(l.push(a.get(gs)),Pl(t)&&l.push(a.get(t_)));break;case"delete":Xe(t)||(l.push(a.get(gs)),Pl(t)&&l.push(a.get(t_)));break;case"set":Pl(t)&&l.push(a.get(gs));break}zb();for(const d of l)d&&J4(d,4);qb()}function eM(t,e){const r=Uh.get(t);return r&&r.get(e)}const tM=Pb("__proto__,__v_isRef,__isVue"),eC=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(bo)),vw=rM();function rM(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...r){const n=kt(this);for(let o=0,a=this.length;o{t[e]=function(...r){Fa(),zb();const n=kt(this)[e].apply(this,r);return qb(),Na(),n}}),t}function nM(t){bo(t)||(t=String(t));const e=kt(this);return xn(e,"has",t),e.hasOwnProperty(t)}class tC{constructor(e=!1,r=!1){this._isReadonly=e,this._isShallow=r}get(e,r,n){const i=this._isReadonly,o=this._isShallow;if(r==="__v_isReactive")return!i;if(r==="__v_isReadonly")return i;if(r==="__v_isShallow")return o;if(r==="__v_raw")return n===(i?o?vM:oC:o?iC:nC).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const a=Xe(e);if(!i){if(a&&St(vw,r))return Reflect.get(vw,r,n);if(r==="hasOwnProperty")return nM}const l=Reflect.get(e,r,n);return(bo(r)?eC.has(r):tM(r))||(i||xn(e,"get",r),o)?l:Qt(l)?a&&Lb(r)?l:l.value:Vt(l)?i?sC(l):ki(l):l}}class rC extends tC{constructor(e=!1){super(!1,e)}set(e,r,n,i){let o=e[r];if(!this._isShallow){const d=Md(o);if(!Vh(n)&&!Md(n)&&(o=kt(o),n=kt(n)),!Xe(e)&&Qt(o)&&!Qt(n))return d?!1:(o.value=n,!0)}const a=Xe(e)&&Lb(r)?Number(r)t,Sp=t=>Reflect.getPrototypeOf(t);function Hf(t,e,r=!1,n=!1){t=t.__v_raw;const i=kt(t),o=kt(e);r||(Ea(e,o)&&xn(i,"get",e),xn(i,"get",o));const{has:a}=Sp(i),l=n?Bb:r?jb:Fd;if(a.call(i,e))return l(t.get(e));if(a.call(i,o))return l(t.get(o));t!==i&&t.get(e)}function Wf(t,e=!1){const r=this.__v_raw,n=kt(r),i=kt(t);return e||(Ea(t,i)&&xn(n,"has",t),xn(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&&xn(kt(t),"iterate",gs),Reflect.get(t,"size",t)}function gw(t){t=kt(t);const e=kt(this);return Sp(e).has.call(e,t)||(e.add(t),vo(e,"add",t,t)),this}function _w(t,e){e=kt(e);const r=kt(this),{has:n,get:i}=Sp(r);let o=n.call(r,t);o||(t=kt(t),o=n.call(r,t));const a=i.call(r,t);return r.set(t,e),o?Ea(e,a)&&vo(r,"set",t,e):vo(r,"add",t,e),this}function yw(t){const e=kt(this),{has:r,get:n}=Sp(e);let i=r.call(e,t);i||(t=kt(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 bw(){const t=kt(this),e=t.size!==0,r=t.clear();return e&&vo(t,"clear",void 0,void 0),r}function Qf(t,e){return function(n,i){const o=this,a=o.__v_raw,l=kt(a),d=e?Bb:t?jb:Fd;return!t&&xn(l,"iterate",gs),a.forEach((u,f)=>n.call(i,d(u),d(f),o))}}function Kf(t,e,r){return function(...n){const i=this.__v_raw,o=kt(i),a=Pl(o),l=t==="entries"||t===Symbol.iterator&&a,d=t==="keys"&&a,u=i[t](...n),f=r?Bb:e?jb:Fd;return!e&&xn(o,"iterate",d?t_:gs),{next(){const{value:g,done:y}=u.next();return y?{value:g,done:y}:{value:l?[f(g[0]),f(g[1])]:f(g),done:y}},[Symbol.iterator](){return this}}}}function Wo(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function lM(){const t={get(o){return Hf(this,o)},get size(){return Gf(this)},has:Wf,add:gw,set:_w,delete:yw,clear:bw,forEach:Qf(!1,!1)},e={get(o){return Hf(this,o,!1,!0)},get size(){return Gf(this)},has:Wf,add:gw,set:_w,delete:yw,clear:bw,forEach:Qf(!1,!0)},r={get(o){return Hf(this,o,!0)},get size(){return Gf(this,!0)},has(o){return Wf.call(this,o,!0)},add:Wo("add"),set:Wo("set"),delete:Wo("delete"),clear:Wo("clear"),forEach:Qf(!0,!1)},n={get(o){return Hf(this,o,!0,!0)},get size(){return Gf(this,!0)},has(o){return Wf.call(this,o,!0)},add:Wo("add"),set:Wo("set"),delete:Wo("delete"),clear:Wo("clear"),forEach:Qf(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{t[o]=Kf(o,!1,!1),r[o]=Kf(o,!0,!1),e[o]=Kf(o,!1,!0),n[o]=Kf(o,!0,!0)}),[t,r,e,n]}const[cM,dM,uM,fM]=lM();function Ub(t,e){const r=e?t?fM:uM:t?dM:cM;return(n,i,o)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?n:Reflect.get(St(r,i)&&i in n?r:n,i,o)}const hM={get:Ub(!1,!1)},pM={get:Ub(!1,!0)},mM={get:Ub(!0,!1)};const nC=new WeakMap,iC=new WeakMap,oC=new WeakMap,vM=new WeakMap;function gM(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function _M(t){return t.__v_skip||!Object.isExtensible(t)?0:gM(qL(t))}function ki(t){return Md(t)?t:Vb(t,!1,oM,hM,nC)}function aC(t){return Vb(t,!1,sM,pM,iC)}function sC(t){return Vb(t,!0,aM,mM,oC)}function Vb(t,e,r,n,i){if(!Vt(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const o=i.get(t);if(o)return o;const a=_M(t);if(a===0)return t;const l=new Proxy(t,a===2?n:r);return i.set(t,l),l}function ya(t){return Md(t)?ya(t.__v_raw):!!(t&&t.__v_isReactive)}function Md(t){return!!(t&&t.__v_isReadonly)}function Vh(t){return!!(t&&t.__v_isShallow)}function lC(t){return t?!!t.__v_raw:!1}function kt(t){const e=t&&t.__v_raw;return e?kt(e):t}function Ip(t){return Object.isExtensible(t)&&V4(t,"__v_skip",!0),t}const Fd=t=>Vt(t)?ki(t):t,jb=t=>Vt(t)?sC(t):t;class cC{constructor(e,r,n,i){this.getter=e,this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Nb(()=>e(this._value),()=>Eh(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const e=kt(this);return(!e._cacheable||e.effect.dirty)&&Ea(e._value,e._value=e.effect.run())&&Eh(e,4),dC(e),e.effect._dirtyLevel>=2&&Eh(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function yM(t,e,r=!1){let n,i;const o=at(t);return o?(n=t,i=Zn):(n=t.get,i=t.set),new cC(n,i,o||!i,r)}function dC(t){var e;_a&&vs&&(t=kt(t),X4(vs,(e=t.dep)!=null?e:t.dep=Z4(()=>t.dep=void 0,t instanceof cC?t:void 0)))}function Eh(t,e=4,r){t=kt(t);const n=t.dep;n&&J4(n,e)}function Qt(t){return!!(t&&t.__v_isRef===!0)}function Le(t){return uC(t,!1)}function ud(t){return uC(t,!0)}function uC(t,e){return Qt(t)?t:new bM(t,e)}class bM{constructor(e,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?e:kt(e),this._value=r?e:Fd(e)}get value(){return dC(this),this._value}set value(e){const r=this.__v_isShallow||Vh(e)||Md(e);e=r?e:kt(e),Ea(e,this._rawValue)&&(this._rawValue=e,this._value=r?e:Fd(e),Eh(this,4))}}function oe(t){return Qt(t)?t.value:t}function Y0e(t){return at(t)?t():oe(t)}const xM={get:(t,e,r)=>oe(Reflect.get(t,e,r)),set:(t,e,r,n)=>{const i=t[e];return Qt(i)&&!Qt(r)?(i.value=r,!0):Reflect.set(t,e,r,n)}};function fC(t){return ya(t)?t:new Proxy(t,xM)}function $p(t){const e=Xe(t)?new Array(t.length):{};for(const r in t)e[r]=hC(t,r);return e}class wM{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 eM(kt(this._object),this._key)}}class TM{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function EM(t,e,r){return Qt(t)?t:at(t)?new TM(t):Vt(t)&&arguments.length>1?hC(t,e,r):Le(t)}function hC(t,e,r){const n=t[e];return Qt(n)?n:new wM(t,e,r)}function ba(t,e,r,n){try{return n?t(...n):t()}catch(i){Op(i,e,r)}}function ti(t,e,r,n){if(at(t)){const i=ba(t,e,r,n);return i&&q4(i)&&i.catch(o=>{Op(o,e,r)}),i}if(Xe(t)){const i=[];for(let o=0;o>>1,i=Kr[n],o=zd(i);oFi&&Kr.splice(e,1)}function SM(t){Xe(t)?Dl.push(...t):(!ra||!ra.includes(t,t.allowRecurse?cs+1:cs))&&Dl.push(t),mC()}function xw(t,e,r=Nd?Fi+1:0){for(;rzd(r)-zd(n));if(Dl.length=0,ra){ra.push(...e);return}for(ra=e,cs=0;cst.id==null?1/0:t.id,IM=(t,e)=>{const r=zd(t)-zd(e);if(r===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return r};function gC(t){r_=!1,Nd=!0,Kr.sort(IM);try{for(Fi=0;Fior(x)?x.trim():x)),g&&(i=r.map(Bh))}let l,d=n[l=Th(e)]||n[l=Th(Bi(e))];!d&&o&&(d=n[l=Th(Ds(e))]),d&&ti(d,t,6,i);const u=n[l+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[l])return;t.emitted[l]=!0,ti(u,t,6,i)}}function _C(t,e,r=!1){const n=e.emitsCache,i=n.get(t);if(i!==void 0)return i;const o=t.emits;let a={},l=!1;if(!at(t)){const d=u=>{const f=_C(u,e,!0);f&&(l=!0,pr(a,f))};!r&&e.mixins.length&&e.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}return!o&&!l?(Vt(t)&&n.set(t,null),null):(Xe(o)?o.forEach(d=>a[d]=null):pr(a,o),Vt(t)&&n.set(t,a),a)}function Pp(t,e){return!t||!kp(e)?!1:(e=e.slice(2).replace(/Once$/,""),St(t,e[0].toLowerCase()+e.slice(1))||St(t,Ds(e))||St(t,e))}let yr=null,Rp=null;function jh(t){const e=yr;return yr=t,Rp=t&&t.type.__scopeId||null,e}function ko(t){Rp=t}function Co(){Rp=null}function Dn(t,e=yr,r){if(!e||t._n)return t;const n=(...i)=>{n._d&&Mw(-1);const o=jh(e);let a;try{a=t(...i)}finally{jh(o),n._d&&Mw(1)}return a};return n._n=!0,n._c=!0,n._d=!0,n}function Qv(t){const{type:e,vnode:r,proxy:n,withProxy:i,propsOptions:[o],slots:a,attrs:l,emit:d,render:u,renderCache:f,props:g,data:y,setupState:x,ctx:m,inheritAttrs:p}=t,_=jh(t);let v,b;try{if(r.shapeFlag&4){const E=i||n,C=E;v=Mi(u.call(C,E,f,g,x,y,m)),b=l}else{const E=e;v=Mi(E.length>1?E(g,{attrs:l,slots:a,emit:d}):E(g,null)),b=e.props?l:OM(l)}}catch(E){gd.length=0,Op(E,t,1),v=Pe(Ln)}let w=v;if(b&&p!==!1){const E=Object.keys(b),{shapeFlag:C}=w;E.length&&C&7&&(o&&E.some(Rb)&&(b=PM(b,o)),w=xo(w,b,!1,!0))}return r.dirs&&(w=xo(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(r.dirs):r.dirs),r.transition&&(w.transition=r.transition),v=w,jh(_),v}const OM=t=>{let e;for(const r in t)(r==="class"||r==="style"||kp(r))&&((e||(e={}))[r]=t[r]);return e},PM=(t,e)=>{const r={};for(const n in t)(!Rb(n)||!(n.slice(9)in e))&&(r[n]=t[n]);return r};function RM(t,e,r){const{props:n,children:i,component:o}=t,{props:a,children:l,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?ww(n,a,u):!!a;if(d&8){const f=e.dynamicProps;for(let g=0;gt.__isSuspense;function MM(t,e){e&&e.pendingBranch?Xe(t)?e.effects.push(...t):e.effects.push(t):SM(t)}const FM=Symbol.for("v-scx"),NM=()=>on(FM);function zM(t,e){return Dp(t,null,e)}function qM(t,e){return Dp(t,null,{flush:"post"})}const Yf={};function Ot(t,e,r){return Dp(t,e,r)}function Dp(t,e,{immediate:r,deep:n,flush:i,once:o,onTrack:a,onTrigger:l}=tr){if(e&&o){const S=e;e=(...P)=>{S(...P),C()}}const d=Pr,u=S=>n===!0?S:fs(S,n===!1?1:void 0);let f,g=!1,y=!1;if(Qt(t)?(f=()=>t.value,g=Vh(t)):ya(t)?(f=()=>u(t),g=!0):Xe(t)?(y=!0,g=t.some(S=>ya(S)||Vh(S)),f=()=>t.map(S=>{if(Qt(S))return S.value;if(ya(S))return u(S);if(at(S))return ba(S,d,2)})):at(t)?e?f=()=>ba(t,d,2):f=()=>(x&&x(),ti(t,d,3,[m])):f=Zn,e&&n){const S=f;f=()=>fs(S())}let x,m=S=>{x=w.onStop=()=>{ba(S,d,4),x=w.onStop=void 0}},p;if(Np)if(m=Zn,e?r&&ti(e,d,3,[f(),y?[]:void 0,m]):f(),i==="sync"){const S=NM();p=S.__watcherHandles||(S.__watcherHandles=[])}else return Zn;let _=y?new Array(t.length).fill(Yf):Yf;const v=()=>{if(!(!w.active||!w.dirty))if(e){const S=w.run();(n||g||(y?S.some((P,R)=>Ea(P,_[R])):Ea(S,_)))&&(x&&x(),ti(e,d,3,[S,_===Yf?void 0:y&&_[0]===Yf?[]:_,m]),_=S)}else w.run()};v.allowRecurse=!!e;let b;i==="sync"?b=v:i==="post"?b=()=>zr(v,d&&d.suspense):(v.pre=!0,d&&(v.id=d.uid),b=()=>Wb(v));const w=new Nb(f,Zn,b),E=Q4(),C=()=>{w.stop(),E&&Db(E.effects,w)};return e?r?v():_=w.run():i==="post"?zr(w.run.bind(w),d&&d.suspense):w.run(),p&&p.push(C),C}function BM(t,e,r){const n=this.proxy,i=or(t)?t.includes(".")?xC(n,t):()=>n[t]:t.bind(n,n);let o;at(e)?o=e:(o=e.handler,r=e);const a=du(this),l=Dp(i,o.bind(n),r);return a(),l}function xC(t,e){const r=e.split(".");return()=>{let n=t;for(let i=0;i{fs(n,e,r)});else if(U4(t))for(const n in t)fs(t[n],e,r);return t}function lt(t,e){if(yr===null)return t;const r=zp(yr)||yr.proxy,n=t.dirs||(t.dirs=[]);for(let i=0;i{t.isMounted=!0}),Ii(()=>{t.isUnmounting=!0}),t}const Kn=[Function,Array],TC={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Kn,onEnter:Kn,onAfterEnter:Kn,onEnterCancelled:Kn,onBeforeLeave:Kn,onLeave:Kn,onAfterLeave:Kn,onLeaveCancelled:Kn,onBeforeAppear:Kn,onAppear:Kn,onAfterAppear:Kn,onAppearCancelled:Kn},UM={name:"BaseTransition",props:TC,setup(t,{slots:e}){const r=Gi(),n=wC();return()=>{const i=e.default&&Yb(e.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const y of i)if(y.type!==Ln){o=y;break}}const a=kt(t),{mode:l}=a;if(n.isLeaving)return Kv(o);const d=Ew(o);if(!d)return Kv(o);const u=qd(d,a,n,r);Vl(d,u);const f=r.subTree,g=f&&Ew(f);if(g&&g.type!==Ln&&!fa(d,g)){const y=qd(g,a,n,r);if(Vl(g,y),l==="out-in"&&d.type!==Ln)return n.isLeaving=!0,y.afterLeave=()=>{n.isLeaving=!1,r.update.active!==!1&&(r.effect.dirty=!0,r.update())},Kv(o);l==="in-out"&&d.type!==Ln&&(y.delayLeave=(x,m,p)=>{const _=EC(n,g);_[String(g.key)]=g,x[na]=()=>{m(),x[na]=void 0,delete u.delayedLeave},u.delayedLeave=p})}return o}}},VM=UM;function EC(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 qd(t,e,r,n){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:d,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:g,onLeave:y,onAfterLeave:x,onLeaveCancelled:m,onBeforeAppear:p,onAppear:_,onAfterAppear:v,onAppearCancelled:b}=e,w=String(t.key),E=EC(r,t),C=(R,D)=>{R&&ti(R,n,9,D)},S=(R,D)=>{const z=D[1];C(R,D),Xe(R)?R.every(j=>j.length<=1)&&z():R.length<=1&&z()},P={mode:o,persisted:a,beforeEnter(R){let D=l;if(!r.isMounted)if(i)D=p||l;else return;R[na]&&R[na](!0);const z=E[w];z&&fa(t,z)&&z.el[na]&&z.el[na](),C(D,[R])},enter(R){let D=d,z=u,j=f;if(!r.isMounted)if(i)D=_||d,z=v||u,j=b||f;else return;let q=!1;const Z=R[Xf]=we=>{q||(q=!0,we?C(j,[R]):C(z,[R]),P.delayedLeave&&P.delayedLeave(),R[Xf]=void 0)};D?S(D,[R,Z]):Z()},leave(R,D){const z=String(t.key);if(R[Xf]&&R[Xf](!0),r.isUnmounting)return D();C(g,[R]);let j=!1;const q=R[na]=Z=>{j||(j=!0,D(),Z?C(m,[R]):C(x,[R]),R[na]=void 0,E[z]===t&&delete E[z])};E[z]=t,y?S(y,[R,q]):q()},clone(R){return qd(R,e,r,n)}};return P}function Kv(t){if(Lp(t))return t=xo(t),t.children=null,t}function Ew(t){if(!Lp(t))return t;const{shapeFlag:e,children:r}=t;if(r){if(e&16)return r[0];if(e&32&&at(r.default))return r.default()}}function Vl(t,e){t.shapeFlag&6&&t.component?Vl(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 Yb(t,e=!1,r){let n=[],i=0;for(let o=0;o1)for(let o=0;o!!t.type.__asyncLoader,Lp=t=>t.type.__isKeepAlive,jM={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const r=Gi(),n=r.ctx;if(!n.renderer)return()=>{const b=e.default&&e.default();return b&&b.length===1?b[0]:b};const i=new Map,o=new Set;let a=null;const l=r.suspense,{renderer:{p:d,m:u,um:f,o:{createElement:g}}}=n,y=g("div");n.activate=(b,w,E,C,S)=>{const P=b.component;u(b,w,E,0,l),d(P.vnode,b,w,E,P,l,C,b.slotScopeIds,S),zr(()=>{P.isDeactivated=!1,P.a&&Rl(P.a);const R=b.props&&b.props.onVnodeMounted;R&&Xn(R,P.parent,b)},l)},n.deactivate=b=>{const w=b.component;u(b,y,null,1,l),zr(()=>{w.da&&Rl(w.da);const E=b.props&&b.props.onVnodeUnmounted;E&&Xn(E,w.parent,b),w.isDeactivated=!0},l)};function x(b){Xv(b),f(b,r,l,!0)}function m(b){i.forEach((w,E)=>{const C=d_(w.type);C&&(!b||!b(C))&&p(E)})}function p(b){const w=i.get(b);!a||!fa(w,a)?x(w):a&&Xv(a),i.delete(b),o.delete(b)}Ot(()=>[t.include,t.exclude],([b,w])=>{b&&m(E=>ad(b,E)),w&&m(E=>!ad(w,E))},{flush:"post",deep:!0});let _=null;const v=()=>{_!=null&&i.set(_,Jv(r.subTree))};return Ur(v),Fp(v),Ii(()=>{i.forEach(b=>{const{subTree:w,suspense:E}=r,C=Jv(w);if(b.type===C.type&&b.key===C.key){Xv(C);const S=C.component.da;S&&zr(S,E);return}x(b)})}),()=>{if(_=null,!e.default)return null;const b=e.default(),w=b[0];if(b.length>1)return a=null,b;if(!jl(w)||!(w.shapeFlag&4)&&!(w.shapeFlag&128))return a=null,w;let E=Jv(w);const C=E.type,S=d_(Ll(E)?E.type.__asyncResolved||{}:C),{include:P,exclude:R,max:D}=t;if(P&&(!S||!ad(P,S))||R&&S&&ad(R,S))return a=E,w;const z=E.key==null?C:E.key,j=i.get(z);return E.el&&(E=xo(E),w.shapeFlag&128&&(w.ssContent=E)),_=z,j?(E.el=j.el,E.component=j.component,E.transition&&Vl(E,E.transition),E.shapeFlag|=512,o.delete(z),o.add(z)):(o.add(z),D&&o.size>parseInt(D,10)&&p(o.values().next().value)),E.shapeFlag|=256,a=E,bC(w.type)?w:E}}},Yv=jM;function ad(t,e){return Xe(t)?t.some(r=>ad(r,e)):or(t)?t.split(",").includes(e):zL(t)?t.test(e):!1}function kC(t,e){CC(t,"a",e)}function HM(t,e){CC(t,"da",e)}function CC(t,e,r=Pr){const n=t.__wdc||(t.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(Mp(e,n,r),r){let i=r.parent;for(;i&&i.parent;)Lp(i.parent.vnode)&&WM(n,e,r,i),i=i.parent}}function WM(t,e,r,n){const i=Mp(e,t,n,!0);za(()=>{Db(n[e],i)},r)}function Xv(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function Jv(t){return t.shapeFlag&128?t.ssContent:t}function Mp(t,e,r=Pr,n=!1){if(r){const i=r[t]||(r[t]=[]),o=e.__weh||(e.__weh=(...a)=>{if(r.isUnmounted)return;Fa();const l=du(r),d=ti(e,r,t,a);return l(),Na(),d});return n?i.unshift(o):i.push(o),o}}const So=t=>(e,r=Pr)=>(!Np||t==="sp")&&Mp(t,(...n)=>e(...n),r),AC=So("bm"),Ur=So("m"),GM=So("bu"),Fp=So("u"),Ii=So("bum"),za=So("um"),SC=So("sp"),QM=So("rtg"),KM=So("rtc");function YM(t,e=Pr){Mp("ec",t,e)}function oi(t,e,r,n){let i;const o=r;if(Xe(t)||or(t)){i=new Array(t.length);for(let a=0,l=t.length;ae(a,l,void 0,o));else{const a=Object.keys(t);i=new Array(a.length);for(let l=0,d=a.length;ljl(e)?!(e.type===Ln||e.type===$t&&!IC(e.children)):!0)?t:null}function XM(t,e){const r={};for(const n in t)r[Th(n)]=t[n];return r}const n_=t=>t?WC(t)?zp(t)||t.proxy:n_(t.parent):null,hd=pr(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=>n_(t.parent),$root:t=>n_(t.root),$emit:t=>t.emit,$options:t=>Xb(t),$forceUpdate:t=>t.f||(t.f=()=>{t.effect.dirty=!0,Wb(t.update)}),$nextTick:t=>t.n||(t.n=mo.bind(t.proxy)),$watch:t=>BM.bind(t)}),Zv=(t,e)=>t!==tr&&!t.__isScriptSetup&&St(t,e),JM={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:r,setupState:n,data:i,props:o,accessCache:a,type:l,appContext:d}=t;let u;if(e[0]!=="$"){const x=a[e];if(x!==void 0)switch(x){case 1:return n[e];case 2:return i[e];case 4:return r[e];case 3:return o[e]}else{if(Zv(n,e))return a[e]=1,n[e];if(i!==tr&&St(i,e))return a[e]=2,i[e];if((u=t.propsOptions[0])&&St(u,e))return a[e]=3,o[e];if(r!==tr&&St(r,e))return a[e]=4,r[e];i_&&(a[e]=0)}}const f=hd[e];let g,y;if(f)return e==="$attrs"&&xn(t.attrs,"get",""),f(t);if((g=l.__cssModules)&&(g=g[e]))return g;if(r!==tr&&St(r,e))return a[e]=4,r[e];if(y=d.config.globalProperties,St(y,e))return y[e]},set({_:t},e,r){const{data:n,setupState:i,ctx:o}=t;return Zv(i,e)?(i[e]=r,!0):n!==tr&&St(n,e)?(n[e]=r,!0):St(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 l;return!!r[a]||t!==tr&&St(t,a)||Zv(e,a)||(l=o[0])&&St(l,a)||St(n,a)||St(hd,a)||St(i.config.globalProperties,a)},defineProperty(t,e,r){return r.get!=null?t._.accessCache[e]=0:St(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}};function ZM(){return eF().slots}function eF(){const t=Gi();return t.setupContext||(t.setupContext=QC(t))}function Cw(t){return Xe(t)?t.reduce((e,r)=>(e[r]=null,e),{}):t}let i_=!0;function tF(t){const e=Xb(t),r=t.proxy,n=t.ctx;i_=!1,e.beforeCreate&&Aw(e.beforeCreate,t,"bc");const{data:i,computed:o,methods:a,watch:l,provide:d,inject:u,created:f,beforeMount:g,mounted:y,beforeUpdate:x,updated:m,activated:p,deactivated:_,beforeDestroy:v,beforeUnmount:b,destroyed:w,unmounted:E,render:C,renderTracked:S,renderTriggered:P,errorCaptured:R,serverPrefetch:D,expose:z,inheritAttrs:j,components:q,directives:Z,filters:we}=e;if(u&&rF(u,n,null),a)for(const ke in a){const Ie=a[ke];at(Ie)&&(n[ke]=Ie.bind(r))}if(i){const ke=i.call(r,r);Vt(ke)&&(t.data=ki(ke))}if(i_=!0,o)for(const ke in o){const Ie=o[ke],Be=at(Ie)?Ie.bind(r,r):at(Ie.get)?Ie.get.bind(r,r):Zn,Re=!at(Ie)&&at(Ie.set)?Ie.set.bind(r):Zn,se=It({get:Be,set:Re});Object.defineProperty(n,ke,{enumerable:!0,configurable:!0,get:()=>se.value,set:Te=>se.value=Te})}if(l)for(const ke in l)$C(l[ke],n,r,ke);if(d){const ke=at(d)?d.call(r):d;Reflect.ownKeys(ke).forEach(Ie=>{pd(Ie,ke[Ie])})}f&&Aw(f,t,"c");function ye(ke,Ie){Xe(Ie)?Ie.forEach(Be=>ke(Be.bind(r))):Ie&&ke(Ie.bind(r))}if(ye(AC,g),ye(Ur,y),ye(GM,x),ye(Fp,m),ye(kC,p),ye(HM,_),ye(YM,R),ye(KM,S),ye(QM,P),ye(Ii,b),ye(za,E),ye(SC,D),Xe(z))if(z.length){const ke=t.exposed||(t.exposed={});z.forEach(Ie=>{Object.defineProperty(ke,Ie,{get:()=>r[Ie],set:Be=>r[Ie]=Be})})}else t.exposed||(t.exposed={});C&&t.render===Zn&&(t.render=C),j!=null&&(t.inheritAttrs=j),q&&(t.components=q),Z&&(t.directives=Z)}function rF(t,e,r=Zn){Xe(t)&&(t=o_(t));for(const n in t){const i=t[n];let o;Vt(i)?"default"in i?o=on(i.from||n,i.default,!0):o=on(i.from||n):o=on(i),Qt(o)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):e[n]=o}}function Aw(t,e,r){ti(Xe(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,r)}function $C(t,e,r,n){const i=n.includes(".")?xC(r,n):()=>r[n];if(or(t)){const o=e[t];at(o)&&Ot(i,o)}else if(at(t))Ot(i,t.bind(r));else if(Vt(t))if(Xe(t))t.forEach(o=>$C(o,e,r,n));else{const o=at(t.handler)?t.handler.bind(r):e[t.handler];at(o)&&Ot(i,o,t)}}function Xb(t){const e=t.type,{mixins:r,extends:n}=e,{mixins:i,optionsCache:o,config:{optionMergeStrategies:a}}=t.appContext,l=o.get(e);let d;return l?d=l:!i.length&&!r&&!n?d=e:(d={},i.length&&i.forEach(u=>Hh(d,u,a,!0)),Hh(d,e,a)),Vt(e)&&o.set(e,d),d}function Hh(t,e,r,n=!1){const{mixins:i,extends:o}=e;o&&Hh(t,o,r,!0),i&&i.forEach(a=>Hh(t,a,r,!0));for(const a in e)if(!(n&&a==="expose")){const l=nF[a]||r&&r[a];t[a]=l?l(t[a],e[a]):e[a]}return t}const nF={data:Sw,props:Iw,emits:Iw,methods:sd,computed:sd,beforeCreate:tn,created:tn,beforeMount:tn,mounted:tn,beforeUpdate:tn,updated:tn,beforeDestroy:tn,beforeUnmount:tn,destroyed:tn,unmounted:tn,activated:tn,deactivated:tn,errorCaptured:tn,serverPrefetch:tn,components:sd,directives:sd,watch:oF,provide:Sw,inject:iF};function Sw(t,e){return e?t?function(){return pr(at(t)?t.call(this,this):t,at(e)?e.call(this,this):e)}:e:t}function iF(t,e){return sd(o_(t),o_(e))}function o_(t){if(Xe(t)){const e={};for(let r=0;r1)return r&&at(e)?e.call(n&&n.proxy):e}}function PC(){return!!(Pr||yr||Ml)}const RC={},DC=()=>Object.create(RC),LC=t=>Object.getPrototypeOf(t)===RC;function lF(t,e,r,n=!1){const i={},o=DC();t.propsDefaults=Object.create(null),MC(t,e,i,o);for(const a in t.propsOptions[0])a in i||(i[a]=void 0);r?t.props=n?i:aC(i):t.type.props?t.props=i:t.props=o,t.attrs=o}function cF(t,e,r,n){const{props:i,attrs:o,vnode:{patchFlag:a}}=t,l=kt(i),[d]=t.propsOptions;let u=!1;if((n||a>0)&&!(a&16)){if(a&8){const f=t.vnode.dynamicProps;for(let g=0;g{d=!0;const[y,x]=FC(g,e,!0);pr(a,y),x&&l.push(...x)};!r&&e.mixins.length&&e.mixins.forEach(f),t.extends&&f(t.extends),t.mixins&&t.mixins.forEach(f)}if(!o&&!d)return Vt(t)&&n.set(t,Ol),Ol;if(Xe(o))for(let f=0;f-1,x[1]=p<0||m-1||St(x,"default"))&&l.push(g)}}}const u=[a,l];return Vt(t)&&n.set(t,u),u}function $w(t){return t[0]!=="$"&&!dd(t)}function Ow(t){return t===null?"null":typeof t=="function"?t.name||"":typeof t=="object"&&t.constructor&&t.constructor.name||""}function Pw(t,e){return Ow(t)===Ow(e)}function Rw(t,e){return Xe(e)?e.findIndex(r=>Pw(r,t)):at(e)&&Pw(e,t)?0:-1}const NC=t=>t[0]==="_"||t==="$stable",Jb=t=>Xe(t)?t.map(Mi):[Mi(t)],dF=(t,e,r)=>{if(e._n)return e;const n=Dn((...i)=>Jb(e(...i)),r);return n._c=!1,n},zC=(t,e,r)=>{const n=t._ctx;for(const i in t){if(NC(i))continue;const o=t[i];if(at(o))e[i]=dF(i,o,n);else if(o!=null){const a=Jb(o);e[i]=()=>a}}},qC=(t,e)=>{const r=Jb(e);t.slots.default=()=>r},uF=(t,e)=>{const r=t.slots=DC();if(t.vnode.shapeFlag&32){const n=e._;n?(pr(r,e),V4(r,"_",n,!0)):zC(e,r)}else e&&qC(t,e)},fF=(t,e,r)=>{const{vnode:n,slots:i}=t;let o=!0,a=tr;if(n.shapeFlag&32){const l=e._;l?r&&l===1?o=!1:(pr(i,e),!r&&l===1&&delete i._):(o=!e.$stable,zC(e,i)),a=e}else e&&(qC(t,e),a={default:1});if(o)for(const l in i)!NC(l)&&a[l]==null&&delete i[l]};function s_(t,e,r,n,i=!1){if(Xe(t)){t.forEach((y,x)=>s_(y,e&&(Xe(e)?e[x]:e),r,n,i));return}if(Ll(n)&&!i)return;const o=n.shapeFlag&4?zp(n.component)||n.component.proxy:n.el,a=i?null:o,{i:l,r:d}=t,u=e&&e.r,f=l.refs===tr?l.refs={}:l.refs,g=l.setupState;if(u!=null&&u!==d&&(or(u)?(f[u]=null,St(g,u)&&(g[u]=null)):Qt(u)&&(u.value=null)),at(d))ba(d,l,12,[a,f]);else{const y=or(d),x=Qt(d);if(y||x){const m=()=>{if(t.f){const p=y?St(g,d)?g[d]:f[d]:d.value;i?Xe(p)&&Db(p,o):Xe(p)?p.includes(o)||p.push(o):y?(f[d]=[o],St(g,d)&&(g[d]=f[d])):(d.value=[o],t.k&&(f[t.k]=d.value))}else y?(f[d]=a,St(g,d)&&(g[d]=a)):x&&(d.value=a,t.k&&(f[t.k]=a))};a?(m.id=-1,zr(m,r)):m()}}}const zr=MM;function hF(t){return pF(t)}function pF(t,e){const r=j4();r.__VUE__=!0;const{insert:n,remove:i,patchProp:o,createElement:a,createText:l,createComment:d,setText:u,setElementText:f,parentNode:g,nextSibling:y,setScopeId:x=Zn,insertStaticContent:m}=t,p=(k,A,M,V=null,G=null,ae=null,Ae=void 0,he=null,ge=!!A.dynamicChildren)=>{if(k===A)return;k&&!fa(k,A)&&(V=te(k),Te(k,G,ae,!0),k=null),A.patchFlag===-2&&(ge=!1,A.dynamicChildren=null);const{type:ie,ref:W,shapeFlag:U}=A;switch(ie){case cu:_(k,A,M,V);break;case Ln:v(k,A,M,V);break;case vd:k==null&&b(A,M,V,Ae);break;case $t:q(k,A,M,V,G,ae,Ae,he,ge);break;default:U&1?C(k,A,M,V,G,ae,Ae,he,ge):U&6?Z(k,A,M,V,G,ae,Ae,he,ge):(U&64||U&128)&&ie.process(k,A,M,V,G,ae,Ae,he,ge,De)}W!=null&&G&&s_(W,k&&k.ref,ae,A||k,!A)},_=(k,A,M,V)=>{if(k==null)n(A.el=l(A.children),M,V);else{const G=A.el=k.el;A.children!==k.children&&u(G,A.children)}},v=(k,A,M,V)=>{k==null?n(A.el=d(A.children||""),M,V):A.el=k.el},b=(k,A,M,V)=>{[k.el,k.anchor]=m(k.children,A,M,V,k.el,k.anchor)},w=({el:k,anchor:A},M,V)=>{let G;for(;k&&k!==A;)G=y(k),n(k,M,V),k=G;n(A,M,V)},E=({el:k,anchor:A})=>{let M;for(;k&&k!==A;)M=y(k),i(k),k=M;i(A)},C=(k,A,M,V,G,ae,Ae,he,ge)=>{A.type==="svg"?Ae="svg":A.type==="math"&&(Ae="mathml"),k==null?S(A,M,V,G,ae,Ae,he,ge):D(k,A,G,ae,Ae,he,ge)},S=(k,A,M,V,G,ae,Ae,he)=>{let ge,ie;const{props:W,shapeFlag:U,transition:xe,dirs:Se}=k;if(ge=k.el=a(k.type,ae,W&&W.is,W),U&8?f(ge,k.children):U&16&&R(k.children,ge,null,V,G,eg(k,ae),Ae,he),Se&&rs(k,null,V,"created"),P(ge,k,k.scopeId,Ae,V),W){for(const ce in W)ce!=="value"&&!dd(ce)&&o(ge,ce,null,W[ce],ae,k.children,V,G,Ge);"value"in W&&o(ge,"value",null,W.value,ae),(ie=W.onVnodeBeforeMount)&&Xn(ie,V,k)}Se&&rs(k,null,V,"beforeMount");const Y=mF(G,xe);Y&&xe.beforeEnter(ge),n(ge,A,M),((ie=W&&W.onVnodeMounted)||Y||Se)&&zr(()=>{ie&&Xn(ie,V,k),Y&&xe.enter(ge),Se&&rs(k,null,V,"mounted")},G)},P=(k,A,M,V,G)=>{if(M&&x(k,M),V)for(let ae=0;ae{for(let ie=ge;ie{const he=A.el=k.el;let{patchFlag:ge,dynamicChildren:ie,dirs:W}=A;ge|=k.patchFlag&16;const U=k.props||tr,xe=A.props||tr;let Se;if(M&&ns(M,!1),(Se=xe.onVnodeBeforeUpdate)&&Xn(Se,M,A,k),W&&rs(A,k,M,"beforeUpdate"),M&&ns(M,!0),ie?z(k.dynamicChildren,ie,he,M,V,eg(A,G),ae):Ae||Ie(k,A,he,null,M,V,eg(A,G),ae,!1),ge>0){if(ge&16)j(he,A,U,xe,M,V,G);else if(ge&2&&U.class!==xe.class&&o(he,"class",null,xe.class,G),ge&4&&o(he,"style",U.style,xe.style,G),ge&8){const Y=A.dynamicProps;for(let ce=0;ce{Se&&Xn(Se,M,A,k),W&&rs(A,k,M,"updated")},V)},z=(k,A,M,V,G,ae,Ae)=>{for(let he=0;he{if(M!==V){if(M!==tr)for(const he in M)!dd(he)&&!(he in V)&&o(k,he,M[he],null,Ae,A.children,G,ae,Ge);for(const he in V){if(dd(he))continue;const ge=V[he],ie=M[he];ge!==ie&&he!=="value"&&o(k,he,ie,ge,Ae,A.children,G,ae,Ge)}"value"in V&&o(k,"value",M.value,V.value,Ae)}},q=(k,A,M,V,G,ae,Ae,he,ge)=>{const ie=A.el=k?k.el:l(""),W=A.anchor=k?k.anchor:l("");let{patchFlag:U,dynamicChildren:xe,slotScopeIds:Se}=A;Se&&(he=he?he.concat(Se):Se),k==null?(n(ie,M,V),n(W,M,V),R(A.children||[],M,W,G,ae,Ae,he,ge)):U>0&&U&64&&xe&&k.dynamicChildren?(z(k.dynamicChildren,xe,M,G,ae,Ae,he),(A.key!=null||G&&A===G.subTree)&&Zb(k,A,!0)):Ie(k,A,M,W,G,ae,Ae,he,ge)},Z=(k,A,M,V,G,ae,Ae,he,ge)=>{A.slotScopeIds=he,k==null?A.shapeFlag&512?G.ctx.activate(A,M,V,Ae,ge):we(A,M,V,G,ae,Ae,ge):$e(k,A,ge)},we=(k,A,M,V,G,ae,Ae)=>{const he=k.component=CF(k,V,G);if(Lp(k)&&(he.ctx.renderer=De),AF(he),he.asyncDep){if(G&&G.registerDep(he,ye),!k.el){const ge=he.subTree=Pe(Ln);v(null,ge,A,M)}}else ye(he,k,A,M,G,ae,Ae)},$e=(k,A,M)=>{const V=A.component=k.component;if(RM(k,A,M))if(V.asyncDep&&!V.asyncResolved){ke(V,A,M);return}else V.next=A,AM(V.update),V.effect.dirty=!0,V.update();else A.el=k.el,V.vnode=A},ye=(k,A,M,V,G,ae,Ae)=>{const he=()=>{if(k.isMounted){let{next:W,bu:U,u:xe,parent:Se,vnode:Y}=k;{const vr=BC(k);if(vr){W&&(W.el=Y.el,ke(k,W,Ae)),vr.asyncDep.then(()=>{k.isUnmounted||he()});return}}let ce=W,Fe;ns(k,!1),W?(W.el=Y.el,ke(k,W,Ae)):W=Y,U&&Rl(U),(Fe=W.props&&W.props.onVnodeBeforeUpdate)&&Xn(Fe,Se,W,Y),ns(k,!0);const Ye=Qv(k),pt=k.subTree;k.subTree=Ye,p(pt,Ye,g(pt.el),te(pt),k,G,ae),W.el=Ye.el,ce===null&&DM(k,Ye.el),xe&&zr(xe,G),(Fe=W.props&&W.props.onVnodeUpdated)&&zr(()=>Xn(Fe,Se,W,Y),G)}else{let W;const{el:U,props:xe}=A,{bm:Se,m:Y,parent:ce}=k,Fe=Ll(A);if(ns(k,!1),Se&&Rl(Se),!Fe&&(W=xe&&xe.onVnodeBeforeMount)&&Xn(W,ce,A),ns(k,!0),U&&nt){const Ye=()=>{k.subTree=Qv(k),nt(U,k.subTree,k,G,null)};Fe?A.type.__asyncLoader().then(()=>!k.isUnmounted&&Ye()):Ye()}else{const Ye=k.subTree=Qv(k);p(null,Ye,M,V,k,G,ae),A.el=Ye.el}if(Y&&zr(Y,G),!Fe&&(W=xe&&xe.onVnodeMounted)){const Ye=A;zr(()=>Xn(W,ce,Ye),G)}(A.shapeFlag&256||ce&&Ll(ce.vnode)&&ce.vnode.shapeFlag&256)&&k.a&&zr(k.a,G),k.isMounted=!0,A=M=V=null}},ge=k.effect=new Nb(he,Zn,()=>Wb(ie),k.scope),ie=k.update=()=>{ge.dirty&&ge.run()};ie.id=k.uid,ns(k,!0),ie()},ke=(k,A,M)=>{A.component=k;const V=k.vnode.props;k.vnode=A,k.next=null,cF(k,A.props,V,M),fF(k,A.children,M),Fa(),xw(k),Na()},Ie=(k,A,M,V,G,ae,Ae,he,ge=!1)=>{const ie=k&&k.children,W=k?k.shapeFlag:0,U=A.children,{patchFlag:xe,shapeFlag:Se}=A;if(xe>0){if(xe&128){Re(ie,U,M,V,G,ae,Ae,he,ge);return}else if(xe&256){Be(ie,U,M,V,G,ae,Ae,he,ge);return}}Se&8?(W&16&&Ge(ie,G,ae),U!==ie&&f(M,U)):W&16?Se&16?Re(ie,U,M,V,G,ae,Ae,he,ge):Ge(ie,G,ae,!0):(W&8&&f(M,""),Se&16&&R(U,M,V,G,ae,Ae,he,ge))},Be=(k,A,M,V,G,ae,Ae,he,ge)=>{k=k||Ol,A=A||Ol;const ie=k.length,W=A.length,U=Math.min(ie,W);let xe;for(xe=0;xeW?Ge(k,G,ae,!0,!1,U):R(A,M,V,G,ae,Ae,he,ge,U)},Re=(k,A,M,V,G,ae,Ae,he,ge)=>{let ie=0;const W=A.length;let U=k.length-1,xe=W-1;for(;ie<=U&&ie<=xe;){const Se=k[ie],Y=A[ie]=ge?ia(A[ie]):Mi(A[ie]);if(fa(Se,Y))p(Se,Y,M,null,G,ae,Ae,he,ge);else break;ie++}for(;ie<=U&&ie<=xe;){const Se=k[U],Y=A[xe]=ge?ia(A[xe]):Mi(A[xe]);if(fa(Se,Y))p(Se,Y,M,null,G,ae,Ae,he,ge);else break;U--,xe--}if(ie>U){if(ie<=xe){const Se=xe+1,Y=Sexe)for(;ie<=U;)Te(k[ie],G,ae,!0),ie++;else{const Se=ie,Y=ie,ce=new Map;for(ie=Y;ie<=xe;ie++){const xr=A[ie]=ge?ia(A[ie]):Mi(A[ie]);xr.key!=null&&ce.set(xr.key,ie)}let Fe,Ye=0;const pt=xe-Y+1;let vr=!1,cn=0;const Vr=new Array(pt);for(ie=0;ie=pt){Te(xr,G,ae,!0);continue}let jr;if(xr.key!=null)jr=ce.get(xr.key);else for(Fe=Y;Fe<=xe;Fe++)if(Vr[Fe-Y]===0&&fa(xr,A[Fe])){jr=Fe;break}jr===void 0?Te(xr,G,ae,!0):(Vr[jr-Y]=ie+1,jr>=cn?cn=jr:vr=!0,p(xr,A[jr],M,null,G,ae,Ae,he,ge),Ye++)}const ui=vr?vF(Vr):Ol;for(Fe=ui.length-1,ie=pt-1;ie>=0;ie--){const xr=Y+ie,jr=A[xr],Ys=xr+1{const{el:ae,type:Ae,transition:he,children:ge,shapeFlag:ie}=k;if(ie&6){se(k.component.subTree,A,M,V);return}if(ie&128){k.suspense.move(A,M,V);return}if(ie&64){Ae.move(k,A,M,De);return}if(Ae===$t){n(ae,A,M);for(let U=0;Uhe.enter(ae),G);else{const{leave:U,delayLeave:xe,afterLeave:Se}=he,Y=()=>n(ae,A,M),ce=()=>{U(ae,()=>{Y(),Se&&Se()})};xe?xe(ae,Y,ce):ce()}else n(ae,A,M)},Te=(k,A,M,V=!1,G=!1)=>{const{type:ae,props:Ae,ref:he,children:ge,dynamicChildren:ie,shapeFlag:W,patchFlag:U,dirs:xe}=k;if(he!=null&&s_(he,null,M,k,!0),W&256){A.ctx.deactivate(k);return}const Se=W&1&&xe,Y=!Ll(k);let ce;if(Y&&(ce=Ae&&Ae.onVnodeBeforeUnmount)&&Xn(ce,A,k),W&6)je(k.component,M,V);else{if(W&128){k.suspense.unmount(M,V);return}Se&&rs(k,null,A,"beforeUnmount"),W&64?k.type.remove(k,A,M,G,De,V):ie&&(ae!==$t||U>0&&U&64)?Ge(ie,A,M,!1,!0):(ae===$t&&U&384||!G&&W&16)&&Ge(ge,A,M),V&&Oe(k)}(Y&&(ce=Ae&&Ae.onVnodeUnmounted)||Se)&&zr(()=>{ce&&Xn(ce,A,k),Se&&rs(k,null,A,"unmounted")},M)},Oe=k=>{const{type:A,el:M,anchor:V,transition:G}=k;if(A===$t){Ce(M,V);return}if(A===vd){E(k);return}const ae=()=>{i(M),G&&!G.persisted&&G.afterLeave&&G.afterLeave()};if(k.shapeFlag&1&&G&&!G.persisted){const{leave:Ae,delayLeave:he}=G,ge=()=>Ae(M,ae);he?he(k.el,ae,ge):ge()}else ae()},Ce=(k,A)=>{let M;for(;k!==A;)M=y(k),i(k),k=M;i(A)},je=(k,A,M)=>{const{bum:V,scope:G,update:ae,subTree:Ae,um:he}=k;V&&Rl(V),G.stop(),ae&&(ae.active=!1,Te(Ae,k,A,M)),he&&zr(he,A),zr(()=>{k.isUnmounted=!0},A),A&&A.pendingBranch&&!A.isUnmounted&&k.asyncDep&&!k.asyncResolved&&k.suspenseId===A.pendingId&&(A.deps--,A.deps===0&&A.resolve())},Ge=(k,A,M,V=!1,G=!1,ae=0)=>{for(let Ae=ae;Aek.shapeFlag&6?te(k.component.subTree):k.shapeFlag&128?k.suspense.next():y(k.anchor||k.el);let le=!1;const fe=(k,A,M)=>{k==null?A._vnode&&Te(A._vnode,null,null,!0):p(A._vnode||null,k,A,null,null,null,M),le||(le=!0,xw(),vC(),le=!1),A._vnode=k},De={p,um:Te,m:se,r:Oe,mt:we,mc:R,pc:Ie,pbc:z,n:te,o:t};let Ke,nt;return{render:fe,hydrate:Ke,createApp:sF(fe,Ke)}}function eg({type:t,props:e},r){return r==="svg"&&t==="foreignObject"||r==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:r}function ns({effect:t,update:e},r){t.allowRecurse=e.allowRecurse=r}function mF(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function Zb(t,e,r=!1){const n=t.children,i=e.children;if(Xe(n)&&Xe(i))for(let o=0;o>1,t[r[l]]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}function BC(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:BC(e)}const gF=t=>t.__isTeleport,md=t=>t&&(t.disabled||t.disabled===""),Dw=t=>typeof SVGElement<"u"&&t instanceof SVGElement,Lw=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,l_=(t,e)=>{const r=t&&t.to;return or(r)?e?e(r):null:r},_F={name:"Teleport",__isTeleport:!0,process(t,e,r,n,i,o,a,l,d,u){const{mc:f,pc:g,pbc:y,o:{insert:x,querySelector:m,createText:p,createComment:_}}=u,v=md(e.props);let{shapeFlag:b,children:w,dynamicChildren:E}=e;if(t==null){const C=e.el=p(""),S=e.anchor=p("");x(C,r,n),x(S,r,n);const P=e.target=l_(e.props,m),R=e.targetAnchor=p("");P&&(x(R,P),a==="svg"||Dw(P)?a="svg":(a==="mathml"||Lw(P))&&(a="mathml"));const D=(z,j)=>{b&16&&f(w,z,j,i,o,a,l,d)};v?D(r,S):P&&D(P,R)}else{e.el=t.el;const C=e.anchor=t.anchor,S=e.target=t.target,P=e.targetAnchor=t.targetAnchor,R=md(t.props),D=R?r:S,z=R?C:P;if(a==="svg"||Dw(S)?a="svg":(a==="mathml"||Lw(S))&&(a="mathml"),E?(y(t.dynamicChildren,E,D,i,o,a,l),Zb(t,e,!0)):d||g(t,e,D,z,i,o,a,l,!1),v)R?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):Jf(e,r,C,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const j=e.target=l_(e.props,m);j&&Jf(e,j,null,u,0)}else R&&Jf(e,S,P,u,1)}UC(e)},remove(t,e,r,n,{um:i,o:{remove:o}},a){const{shapeFlag:l,children:d,anchor:u,targetAnchor:f,target:g,props:y}=t;if(g&&o(f),a&&o(u),l&16){const x=a||!md(y);for(let m=0;m0?bi||Ol:null,bF(),Bd>0&&bi&&bi.push(t),t}function re(t,e,r,n,i,o){return VC(N(t,e,r,n,i,o,!0))}function kr(t,e,r,n,i){return VC(Pe(t,e,r,n,i,!0))}function jl(t){return t?t.__v_isVNode===!0:!1}function fa(t,e){return t.type===e.type&&t.key===e.key}const jC=({key:t})=>t??null,kh=({ref:t,ref_key:e,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?or(t)||Qt(t)||at(t)?{i:yr,r:t,k:e,f:!!r}:t:null);function N(t,e=null,r=null,n=0,i=null,o=t===$t?0:1,a=!1,l=!1){const d={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&jC(e),ref:e&&kh(e),scopeId:Rp,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:yr};return l?(t0(d,r),o&128&&t.normalize(d)):r&&(d.shapeFlag|=or(r)?8:16),Bd>0&&!a&&bi&&(d.patchFlag>0||o&6)&&d.patchFlag!==32&&bi.push(d),d}const Pe=xF;function xF(t,e=null,r=null,n=0,i=null,o=!1){if((!t||t===yC)&&(t=Ln),jl(t)){const l=xo(t,e,!0);return r&&t0(l,r),Bd>0&&!o&&bi&&(l.shapeFlag&6?bi[bi.indexOf(t)]=l:bi.push(l)),l.patchFlag|=-2,l}if($F(t)&&(t=t.__vccOpts),e){e=wF(e);let{class:l,style:d}=e;l&&!or(l)&&(e.class=Pn(l)),Vt(d)&&(lC(d)&&!Xe(d)&&(d=pr({},d)),e.style=ka(d))}const a=or(t)?1:bC(t)?128:gF(t)?64:Vt(t)?4:at(t)?2:0;return N(t,e,r,n,i,a,o,!0)}function wF(t){return t?lC(t)||LC(t)?pr({},t):t:null}function xo(t,e,r=!1,n=!1){const{props:i,ref:o,patchFlag:a,children:l,transition:d}=t,u=e?HC(i||{},e):i,f={__v_isVNode:!0,__v_skip:!0,type:t.type,props:u,key:u&&jC(u),ref:e&&e.ref?r&&o?Xe(o)?o.concat(kh(e)):[o,kh(e)]:kh(e):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:l,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==$t?a===-1?16:a|16:a,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:d,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&xo(t.ssContent),ssFallback:t.ssFallback&&xo(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return d&&n&&(f.transition=d.clone(f)),f}function ri(t=" ",e=0){return Pe(cu,null,t,e)}function TF(t,e){const r=Pe(vd,null,t);return r.staticCount=e,r}function yt(t="",e=!1){return e?(J(),kr(Ln,null,t)):Pe(Ln,null,t)}function Mi(t){return t==null||typeof t=="boolean"?Pe(Ln):Xe(t)?Pe($t,null,t.slice()):typeof t=="object"?ia(t):Pe(cu,null,String(t))}function ia(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:xo(t)}function t0(t,e){let r=0;const{shapeFlag:n}=t;if(e==null)e=null;else if(Xe(e))r=16;else if(typeof e=="object")if(n&65){const i=e.default;i&&(i._c&&(i._d=!1),t0(t,i()),i._c&&(i._d=!0));return}else{r=32;const i=e._;!i&&!LC(e)?e._ctx=yr:i===3&&yr&&(yr.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else at(e)?(e={default:e,_ctx:yr},r=32):(e=String(e),n&64?(r=16,e=[ri(e)]):r=8);t.children=e,t.shapeFlag|=r}function HC(...t){const e={};for(let r=0;rPr||yr;let Wh,c_;{const t=j4(),e=(r,n)=>{let i;return(i=t[r])||(i=t[r]=[]),i.push(n),o=>{i.length>1?i.forEach(a=>a(o)):i[0](o)}};Wh=e("__VUE_INSTANCE_SETTERS__",r=>Pr=r),c_=e("__VUE_SSR_SETTERS__",r=>Np=r)}const du=t=>{const e=Pr;return Wh(t),t.scope.on(),()=>{t.scope.off(),Wh(e)}},Fw=()=>{Pr&&Pr.scope.off(),Wh(null)};function WC(t){return t.vnode.shapeFlag&4}let Np=!1;function AF(t,e=!1){e&&c_(e);const{props:r,children:n}=t.vnode,i=WC(t);lF(t,r,i,e),uF(t,n);const o=i?SF(t,e):void 0;return e&&c_(!1),o}function SF(t,e){const r=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,JM);const{setup:n}=r;if(n){const i=t.setupContext=n.length>1?QC(t):null,o=du(t);Fa();const a=ba(n,t,0,[t.props,i]);if(Na(),o(),q4(a)){if(a.then(Fw,Fw),e)return a.then(l=>{Nw(t,l,e)}).catch(l=>{Op(l,t,0)});t.asyncDep=a}else Nw(t,a,e)}else GC(t,e)}function Nw(t,e,r){at(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Vt(e)&&(t.setupState=fC(e)),GC(t,r)}let zw;function GC(t,e,r){const n=t.type;if(!t.render){if(!e&&zw&&!n.render){const i=n.template||Xb(t).template;if(i){const{isCustomElement:o,compilerOptions:a}=t.appContext.config,{delimiters:l,compilerOptions:d}=n,u=pr(pr({isCustomElement:o,delimiters:l},a),d);n.render=zw(i,u)}}t.render=n.render||Zn}{const i=du(t);Fa();try{tF(t)}finally{Na(),i()}}}const IF={get(t,e){return xn(t,"get",""),t[e]}};function QC(t){const e=r=>{t.exposed=r||{}};return{attrs:new Proxy(t.attrs,IF),slots:t.slots,emit:t.emit,expose:e}}function zp(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(fC(Ip(t.exposed)),{get(e,r){if(r in e)return e[r];if(r in hd)return hd[r](t)},has(e,r){return r in e||r in hd}}))}function d_(t,e=!0){return at(t)?t.displayName||t.name:t.name||e&&t.__name}function $F(t){return at(t)&&"__vccOpts"in t}const It=(t,e)=>yM(t,e,Np);function Ui(t,e,r){const n=arguments.length;return n===2?Vt(e)&&!Xe(e)?jl(e)?Pe(t,null,[e]):Pe(t,e):Pe(t,null,e):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&jl(r)&&(r=[r]),Pe(t,e,r))}const OF="3.4.27";const PF="http://www.w3.org/2000/svg",RF="http://www.w3.org/1998/Math/MathML",oa=typeof document<"u"?document:null,qw=oa&&oa.createElement("template"),DF={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==="svg"?oa.createElementNS(PF,t):e==="mathml"?oa.createElementNS(RF,t):oa.createElement(t,r?{is:r}:void 0);return t==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:t=>oa.createTextNode(t),createComment:t=>oa.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>oa.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{qw.innerHTML=n==="svg"?`${t}`:n==="mathml"?`${t}`:t;const l=qw.content;if(n==="svg"||n==="mathml"){const d=l.firstChild;for(;d.firstChild;)l.appendChild(d.firstChild);l.removeChild(d)}e.insertBefore(l,r)}return[a?a.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}},Go="transition",Wc="animation",Hl=Symbol("_vtc"),qp=(t,{slots:e})=>Ui(VM,YC(t),e);qp.displayName="Transition";const KC={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},LF=qp.props=pr({},TC,KC),is=(t,e=[])=>{Xe(t)?t.forEach(r=>r(...e)):t&&t(...e)},Bw=t=>t?Xe(t)?t.some(e=>e.length>1):t.length>1:!1;function YC(t){const e={};for(const q in t)q in KC||(e[q]=t[q]);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:l=`${r}-enter-to`,appearFromClass:d=o,appearActiveClass:u=a,appearToClass:f=l,leaveFromClass:g=`${r}-leave-from`,leaveActiveClass:y=`${r}-leave-active`,leaveToClass:x=`${r}-leave-to`}=t,m=MF(i),p=m&&m[0],_=m&&m[1],{onBeforeEnter:v,onEnter:b,onEnterCancelled:w,onLeave:E,onLeaveCancelled:C,onBeforeAppear:S=v,onAppear:P=b,onAppearCancelled:R=w}=e,D=(q,Z,we)=>{Zo(q,Z?f:l),Zo(q,Z?u:a),we&&we()},z=(q,Z)=>{q._isLeaving=!1,Zo(q,g),Zo(q,x),Zo(q,y),Z&&Z()},j=q=>(Z,we)=>{const $e=q?P:b,ye=()=>D(Z,q,we);is($e,[Z,ye]),Uw(()=>{Zo(Z,q?d:o),co(Z,q?f:l),Bw($e)||Vw(Z,n,p,ye)})};return pr(e,{onBeforeEnter(q){is(v,[q]),co(q,o),co(q,a)},onBeforeAppear(q){is(S,[q]),co(q,d),co(q,u)},onEnter:j(!1),onAppear:j(!0),onLeave(q,Z){q._isLeaving=!0;const we=()=>z(q,Z);co(q,g),co(q,y),JC(),Uw(()=>{q._isLeaving&&(Zo(q,g),co(q,x),Bw(E)||Vw(q,n,_,we))}),is(E,[q,we])},onEnterCancelled(q){D(q,!1),is(w,[q])},onAppearCancelled(q){D(q,!0),is(R,[q])},onLeaveCancelled(q){z(q),is(C,[q])}})}function MF(t){if(t==null)return null;if(Vt(t))return[tg(t.enter),tg(t.leave)];{const e=tg(t);return[e,e]}}function tg(t){return VL(t)}function co(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t[Hl]||(t[Hl]=new Set)).add(e)}function Zo(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.remove(n));const r=t[Hl];r&&(r.delete(e),r.size||(t[Hl]=void 0))}function Uw(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let FF=0;function Vw(t,e,r,n){const i=t._endId=++FF,o=()=>{i===t._endId&&n()};if(r)return setTimeout(o,r);const{type:a,timeout:l,propCount:d}=XC(t,e);if(!a)return n();const u=a+"end";let f=0;const g=()=>{t.removeEventListener(u,y),o()},y=x=>{x.target===t&&++f>=d&&g()};setTimeout(()=>{f(r[m]||"").split(", "),i=n(`${Go}Delay`),o=n(`${Go}Duration`),a=jw(i,o),l=n(`${Wc}Delay`),d=n(`${Wc}Duration`),u=jw(l,d);let f=null,g=0,y=0;e===Go?a>0&&(f=Go,g=a,y=o.length):e===Wc?u>0&&(f=Wc,g=u,y=d.length):(g=Math.max(a,u),f=g>0?a>u?Go:Wc:null,y=f?f===Go?o.length:d.length:0);const x=f===Go&&/\b(transform|all)(,|$)/.test(n(`${Go}Property`).toString());return{type:f,timeout:g,propCount:y,hasTransform:x}}function jw(t,e){for(;t.lengthHw(r)+Hw(t[n])))}function Hw(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function JC(){return document.body.offsetHeight}function NF(t,e,r){const n=t[Hl];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):r?t.setAttribute("class",e):t.className=e}const Gh=Symbol("_vod"),ZC=Symbol("_vsh"),_n={beforeMount(t,{value:e},{transition:r}){t[Gh]=t.style.display==="none"?"":t.style.display,r&&e?r.beforeEnter(t):Gc(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),Gc(t,!0),n.enter(t)):n.leave(t,()=>{Gc(t,!1)}):Gc(t,e))},beforeUnmount(t,{value:e}){Gc(t,e)}};function Gc(t,e){t.style.display=e?t[Gh]:"none",t[ZC]=!e}const e3=Symbol("");function zF(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=>f_(o,i))},n=()=>{const i=t(e.proxy);u_(e.subTree,i),r(i)};Ur(()=>{qM(n);const i=new MutationObserver(n);i.observe(e.subTree.el.parentNode,{childList:!0}),za(()=>i.disconnect())})}function u_(t,e){if(t.shapeFlag&128){const r=t.suspense;t=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{u_(r.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)f_(t.el,e);else if(t.type===$t)t.children.forEach(r=>u_(r,e));else if(t.type===vd){let{el:r,anchor:n}=t;for(;r&&(f_(r,e),r!==n);)r=r.nextSibling}}function f_(t,e){if(t.nodeType===1){const r=t.style;let n="";for(const i in e)r.setProperty(`--${i}`,e[i]),n+=`--${i}: ${e[i]};`;r[e3]=n}}const qF=/(^|;)\s*display\s*:/;function BF(t,e,r){const n=t.style,i=or(r);let o=!1;if(r&&!i){if(e)if(or(e))for(const a of e.split(";")){const l=a.slice(0,a.indexOf(":")).trim();r[l]==null&&Ch(n,l,"")}else for(const a in e)r[a]==null&&Ch(n,a,"");for(const a in r)a==="display"&&(o=!0),Ch(n,a,r[a])}else if(i){if(e!==r){const a=n[e3];a&&(r+=";"+a),n.cssText=r,o=qF.test(r)}}else e&&t.removeAttribute("style");Gh in t&&(t[Gh]=o?n.display:"",t[ZC]&&(n.display="none"))}const Ww=/\s*!important$/;function Ch(t,e,r){if(Xe(r))r.forEach(n=>Ch(t,e,n));else if(r==null&&(r=""),e.startsWith("--"))t.setProperty(e,r);else{const n=UF(t,e);Ww.test(r)?t.setProperty(Ds(n),r.replace(Ww,""),"important"):t[n]=r}}const Gw=["Webkit","Moz","ms"],rg={};function UF(t,e){const r=rg[e];if(r)return r;let n=Bi(e);if(n!=="filter"&&n in t)return rg[e]=n;n=Ap(n);for(let i=0;ing||(QF.then(()=>ng=0),ng=Date.now());function YF(t,e){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;ti(XF(n,r.value),e,5,[n])};return r.value=t,r.attached=KF(),r}function XF(t,e){if(Xe(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 Xw=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,JF=(t,e,r,n,i,o,a,l,d)=>{const u=i==="svg";e==="class"?NF(t,n,u):e==="style"?BF(t,r,n):kp(e)?Rb(e)||WF(t,e,r,n,a):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):ZF(t,e,n,u))?jF(t,e,n,o,a,l,d):(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),VF(t,e,n,u))};function ZF(t,e,r,n){if(n)return!!(e==="innerHTML"||e==="textContent"||e in t&&Xw(e)&&at(r));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=t.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Xw(e)&&or(r)?!1:e in t}const t3=new WeakMap,r3=new WeakMap,Qh=Symbol("_moveCb"),Jw=Symbol("_enterCb"),n3={name:"TransitionGroup",props:pr({},LF,{tag:String,moveClass:String}),setup(t,{slots:e}){const r=Gi(),n=wC();let i,o;return Fp(()=>{if(!i.length)return;const a=t.moveClass||`${t.name||"v"}-move`;if(!oN(i[0].el,r.vnode.el,a))return;i.forEach(rN),i.forEach(nN);const l=i.filter(iN);JC(),l.forEach(d=>{const u=d.el,f=u.style;co(u,a),f.transform=f.webkitTransform=f.transitionDuration="";const g=u[Qh]=y=>{y&&y.target!==u||(!y||/transform$/.test(y.propertyName))&&(u.removeEventListener("transitionend",g),u[Qh]=null,Zo(u,a))};u.addEventListener("transitionend",g)})}),()=>{const a=kt(t),l=YC(a);let d=a.tag||$t;if(i=[],o)for(let u=0;udelete t.mode;n3.props;const tN=n3;function rN(t){const e=t.el;e[Qh]&&e[Qh](),e[Jw]&&e[Jw]()}function nN(t){r3.set(t,t.el.getBoundingClientRect())}function iN(t){const e=t3.get(t),r=r3.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 oN(t,e,r){const n=t.cloneNode(),i=t[Hl];i&&i.forEach(l=>{l.split(/\s+/).forEach(d=>d&&n.classList.remove(d))}),r.split(/\s+/).forEach(l=>l&&n.classList.add(l)),n.style.display="none";const o=e.nodeType===1?e:e.parentNode;o.appendChild(n);const{hasTransform:a}=XC(n);return o.removeChild(n),a}const Ca=t=>{const e=t.props["onUpdate:modelValue"]||!1;return Xe(e)?r=>Rl(e,r):e};function aN(t){t.target.composing=!0}function Zw(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const ni=Symbol("_assign"),h_={created(t,{modifiers:{lazy:e,trim:r,number:n}},i){t[ni]=Ca(i);const o=n||i.props&&i.props.type==="number";ho(t,e?"change":"input",a=>{if(a.target.composing)return;let l=t.value;r&&(l=l.trim()),o&&(l=Bh(l)),t[ni](l)}),r&&ho(t,"change",()=>{t.value=t.value.trim()}),e||(ho(t,"compositionstart",aN),ho(t,"compositionend",Zw),ho(t,"change",Zw))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:r,trim:n,number:i}},o){if(t[ni]=Ca(o),t.composing)return;const a=(i||t.type==="number")&&!/^0\d/.test(t.value)?Bh(t.value):t.value,l=e??"";a!==l&&(document.activeElement===t&&t.type!=="range"&&(r||n&&t.value.trim()===l)||(t.value=l))}},sN={deep:!0,created(t,e,r){t[ni]=Ca(r),ho(t,"change",()=>{const n=t._modelValue,i=Wl(t),o=t.checked,a=t[ni];if(Xe(n)){const l=Mb(n,i),d=l!==-1;if(o&&!d)a(n.concat(i));else if(!o&&d){const u=[...n];u.splice(l,1),a(u)}}else if(cc(n)){const l=new Set(n);o?l.add(i):l.delete(i),a(l)}else a(i3(t,o))})},mounted:eT,beforeUpdate(t,e,r){t[ni]=Ca(r),eT(t,e,r)}};function eT(t,{value:e,oldValue:r},n){t._modelValue=e,Xe(e)?t.checked=Mb(e,n.props.value)>-1:cc(e)?t.checked=e.has(n.props.value):e!==r&&(t.checked=Ts(e,i3(t,!0)))}const lN={created(t,{value:e},r){t.checked=Ts(e,r.props.value),t[ni]=Ca(r),ho(t,"change",()=>{t[ni](Wl(t))})},beforeUpdate(t,{value:e,oldValue:r},n){t[ni]=Ca(n),e!==r&&(t.checked=Ts(e,n.props.value))}},cN={deep:!0,created(t,{value:e,modifiers:{number:r}},n){const i=cc(e);ho(t,"change",()=>{const o=Array.prototype.filter.call(t.options,a=>a.selected).map(a=>r?Bh(Wl(a)):Wl(a));t[ni](t.multiple?i?new Set(o):o:o[0]),t._assigning=!0,mo(()=>{t._assigning=!1})}),t[ni]=Ca(n)},mounted(t,{value:e,modifiers:{number:r}}){tT(t,e)},beforeUpdate(t,e,r){t[ni]=Ca(r)},updated(t,{value:e,modifiers:{number:r}}){t._assigning||tT(t,e)}};function tT(t,e,r){const n=t.multiple,i=Xe(e);if(!(n&&!i&&!cc(e))){for(let o=0,a=t.options.length;oString(f)===String(d)):l.selected=Mb(e,d)>-1}else l.selected=e.has(d);else if(Ts(Wl(l),e)){t.selectedIndex!==o&&(t.selectedIndex=o);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function Wl(t){return"_value"in t?t._value:t.value}function i3(t,e){const r=e?"_trueValue":"_falseValue";return r in t?t[r]:e}const X0e={created(t,e,r){Zf(t,e,r,null,"created")},mounted(t,e,r){Zf(t,e,r,null,"mounted")},beforeUpdate(t,e,r,n){Zf(t,e,r,n,"beforeUpdate")},updated(t,e,r,n){Zf(t,e,r,n,"updated")}};function dN(t,e){switch(t){case"SELECT":return cN;case"TEXTAREA":return h_;default:switch(e){case"checkbox":return sN;case"radio":return lN;default:return h_}}}function Zf(t,e,r,n,i){const a=dN(t.tagName,r.props&&r.props.type)[i];a&&a(t,e,r,n)}const uN=["ctrl","shift","alt","meta"],fN={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)=>uN.some(r=>t[`${r}Key`]&&!e.includes(r))},wt=(t,e)=>{const r=t._withMods||(t._withMods={}),n=e.join(".");return r[n]||(r[n]=(i,...o)=>{for(let a=0;a{const r=t._withKeys||(t._withKeys={}),n=e.join(".");return r[n]||(r[n]=i=>{if(!("key"in i))return;const o=Ds(i.key);if(e.some(a=>a===o||hN[a]===o))return t(i)})},pN=pr({patchProp:JF},DF);let rT;function o3(){return rT||(rT=hF(pN))}const p_=(...t)=>{o3().render(...t)},mN=(...t)=>{const e=o3().createApp(...t),{mount:r}=e;return e.mount=n=>{const i=gN(n);if(!i)return;const o=e._component;!at(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.innerHTML="";const a=r(i,!1,vN(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},e};function vN(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function gN(t){return or(t)?document.querySelector(t):t}var _N=!1;function a3(t,e,r){var n=r||{},i=n.noTrailing,o=i===void 0?!1:i,a=n.noLeading,l=a===void 0?!1:a,d=n.debounceMode,u=d===void 0?void 0:d,f,g=!1,y=0;function x(){f&&clearTimeout(f)}function m(_){var v=_||{},b=v.upcomingOnly,w=b===void 0?!1:b;x(),g=!w}function p(){for(var _=arguments.length,v=new Array(_),b=0;b<_;b++)v[b]=arguments[b];var w=this,E=Date.now()-y;if(g)return;function C(){y=Date.now(),e.apply(w,v)}function S(){f=void 0}!l&&u&&!f&&C(),x(),u===void 0&&E>t?l?(y=Date.now(),o||(f=setTimeout(u?S:C,t))):C():o!==!0&&(f=setTimeout(u?S:C,u===void 0?t-E:t))}return p.cancel=m,p}function yN(t,e,r){var n={},i=n.atBegin,o=i===void 0?!1:i;return a3(t,e,{debounceMode:o!==!1})}var m_=function(t,e){return m_=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])},m_(t,e)};function Qi(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");m_(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var ee=function(){return ee=Object.assign||function(e){for(var r,n=1,i=arguments.length;n=0;l--)(a=t[l])&&(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 aa(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 l(f){try{u(n.next(f))}catch(g){a(g)}}function d(f){try{u(n.throw(f))}catch(g){a(g)}}function u(f){f.done?o(f.value):i(f.value).then(l,d)}u((n=n.apply(t,e||[])).next())})}function sa(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:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(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]=xN){var e=console[t]||console.log;return e.apply(console,arguments)}}}(function(t){t.debug=eh("debug"),t.log=eh("log"),t.warn=eh("warn"),t.error=eh("error")})(ds||(ds={}));var r0="3.10.4";function _i(t){try{return t()}catch{}}const v_=_i(function(){return globalThis})||_i(function(){return window})||_i(function(){return self})||_i(function(){return global})||_i(function(){return _i.constructor("return this")()});var iT=new Map;function g_(t){var e=iT.get(t)||1;return iT.set(t,e+1),"".concat(t,":").concat(e,":").concat(Math.random().toString(36).slice(2))}function c3(t,e){e===void 0&&(e=0);var r=g_("stringifyForDisplay");return JSON.stringify(t,function(n,i){return i===void 0?r:i},e).split(JSON.stringify(r)).join("")}function th(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 kN(t){return u3(t.source,__(t.source,t.start))}function u3(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,l=e.line===1?r:0,d=e.column+l,u=`${t.name}:${a}:${d} -`,f=n.split(/\r\n|[\n\r]/g),g=f[i];if(g.length>120){const y=Math.floor(d/80),x=d%80,m=[];for(let p=0;p["|",p]),["|","^".padStart(x)],["|",m[y+1]]])}return u+aT([[`${a-1} |`,f[i-1]],[`${a} |`,g],["|","^".padStart(d)],[`${a+1} |`,f[i+1]]])}function aT(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 CN(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 o0 extends Error{constructor(e,...r){var n,i,o;const{nodes:a,source:l,positions:d,path:u,originalError:f,extensions:g}=CN(r);super(e),this.name="GraphQLError",this.path=u??void 0,this.originalError=f??void 0,this.nodes=sT(Array.isArray(a)?a:a?[a]:void 0);const y=sT((n=this.nodes)===null||n===void 0?void 0:n.map(m=>m.loc).filter(m=>m!=null));this.source=l??(y==null||(i=y[0])===null||i===void 0?void 0:i.source),this.positions=d??(y==null?void 0:y.map(m=>m.start)),this.locations=d&&l?d.map(m=>__(l,m)):y==null?void 0:y.map(m=>__(m.source,m.start));const x=wN(f==null?void 0:f.extensions)?f==null?void 0:f.extensions:void 0;this.extensions=(o=g??x)!==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,o0):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+=` +const __vite__fileDeps=["assets/HomeView-B6EJgDUt.js","assets/content-paste-rounded--YFEOBZV.js","assets/contact-page-outline-rounded-Dn3mmffA.js","assets/rss-feed-rounded-DN7yBBrR.js","assets/HomeView-D7955Nsw.css","assets/MessagesView-CWAdJC92.js","assets/VPagination.vuevuetypescriptsetuptruelang-Cqtk1_Un.js","assets/call-outline-rounded-BPfmAopM.js","assets/SearchInput-ZLdB9f4z.js","assets/search-rounded-DpdJ2cSK.js","assets/search-B-8eugyA.js","assets/SearchInput-B8mbW6Pb.css","assets/tags-BpDG2_1g.js","assets/vee-validate.esm-Bmkx0D8v.js","assets/tags-Cd8okQsu.css","assets/key-events-DpI8L-ce.js","assets/MessagesView-CptXBCle.css","assets/MessagesSidebar-DAJJAbQR.js","assets/LeftSidebar.vuevuetypescriptsetuptruelang-qrlto0-t.js","assets/TagFilter.vuevuetypescriptsetuptruelang-F0HSGzO6.js","assets/more-vert-B_3Etgle.js","assets/EditValueModal-HQ024-FF.js","assets/EditValueModal-Dc0A-wcv.css","assets/CallsView-CSHaqzLI.js","assets/CallsView-BigERfzn.css","assets/CallsSidebar-C7gnaDCv.js","assets/AppsView-CjhlN3-N.js","assets/sort-rounded-CjGrBbPk.js","assets/AppsView-D9MzdfnP.css","assets/AppsSidebar-D9waOJT4.js","assets/ContactsView-BJQR5PGM.js","assets/ContactsView-BcXNxoAk.css","assets/ContactsSidebar-DIy88WkN.js","assets/ImagesView-D5aqwfsN.js","assets/grid-view-outline-rounded-DfUd5oBB.js","assets/upload-rounded-D52A8109.js","assets/ImagesSidebar-CTMKgbRD.js","assets/MediaSidebar.vuevuetypescriptsetuptruelang-BnNr5Ols.js","assets/VideosView-EnWFwQXg.js","assets/VideosSidebar-QJ1ou7Of.js","assets/AudiosView-BON-x76b.js","assets/AudiosView-B0P2D0co.css","assets/AudiosSidebar-oyD_wcyj.js","assets/NoteEditView-C-0qsgs1.js","assets/MonacoEditor.vuevuetypescriptsetuptruelang-BFVbtP9H.js","assets/MonacoEditor-f6DHwtwy.css","assets/print-outline-rounded-B-LbOkYS.js","assets/markdown-CQMofEuT.js","assets/NoteEditView-NyTTm8EP.css","assets/NotesView-BGLkQPdA.js","assets/NotesView-BacuxLVv.css","assets/NotesSidebar-ByAV-TPL.js","assets/AIChatView-C-vXmpXx.js","assets/AIChatView-DJtUiHID.css","assets/AIChatsView-h_L67qZA.js","assets/AIChatsSidebar-DXIsOw1o.js","assets/FilesView-CWRvNtkx.js","assets/refresh-rounded-CMms9dRf.js","assets/default-BQXvEOng.js","assets/FilesView-DriMBhIE.css","assets/FilesSidebar-DGDeJsty.js","assets/FilesRecentView-Ih4tM4Bo.js","assets/JsonViewerView-0dyovbJd.js","assets/JsonViewerView-DooypT0f.css","assets/QrCodeGeneratorView-CmzM_jYJ.js","assets/QrCodeGeneratorView-zGsbr-uW.css","assets/ScreenMirrorView-B7mqDN-X.js","assets/ScreenMirrorView-DC7Xz2uk.css","assets/DeviceInfoView-C3ZwUVaw.js","assets/DeviceInfoView-iGYgiKSx.css","assets/NetworkView-B5_GAGwK.js","assets/EditToolbar.vuevuetypescriptsetuptruelang-CixbO2wa.js","assets/Breadcrumb-7GnPZCg_.js","assets/Breadcrumb-aiFCf_Cu.css","assets/WiFiView-C53_WvSg.js","assets/WireGuardView-CecgR6ou.js","assets/parser-DNY2aV9Q.js","assets/WireGuardEditView-C6fEJ_c-.js","assets/RulesView-Dl_UesmL.js","assets/question-mark-rounded-BTGy5YUq.js","assets/RoutesView-DuiGJr-C.js","assets/DevicesView-DLJRQ-K_.js","assets/FeedsSidebar-B4F1te2F.js","assets/feeds-B70qguWF.js","assets/FeedsSidebar-CeLGFVT-.css","assets/FeedsSidebar2-BEGs6cYt.js","assets/add-notes-outline-rounded-BvbrKfug.js","assets/FeedsSidebar2-RJUybW8A.css","assets/FeedEntryView-CmXJcA56.js","assets/FeedEntryView-BQLkpK5x.css","assets/LoginView-CeL9P5vi.js","assets/LoginView-DlNG7WQY.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +var ML=Object.defineProperty;var FL=(t,e,r)=>e in t?ML(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Kt=(t,e,r)=>(FL(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 Wb(t,e){const r=new Set(t.split(","));return n=>r.has(n)}const ir={},zl=[],ni=()=>{},NL=()=>!1,Lp=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Gb=t=>t.startsWith("onUpdate:"),yr=Object.assign,Qb=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},zL=Object.prototype.hasOwnProperty,Pt=(t,e)=>zL.call(t,e),Xe=Array.isArray,ql=t=>_c(t)==="[object Map]",gc=t=>_c(t)==="[object Set]",Ew=t=>_c(t)==="[object Date]",qL=t=>_c(t)==="[object RegExp]",lt=t=>typeof t=="function",dr=t=>typeof t=="string",Eo=t=>typeof t=="symbol",Ht=t=>t!==null&&typeof t=="object",X4=t=>(Ht(t)||lt(t))&<(t.then)&<(t.catch),J4=Object.prototype.toString,_c=t=>J4.call(t),BL=t=>_c(t).slice(8,-1),Z4=t=>_c(t)==="[object Object]",Kb=t=>dr(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,wd=Wb(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Mp=t=>{const e=Object.create(null);return r=>e[r]||(e[r]=t(r))},VL=/-(\w)/g,Ui=Mp(t=>t.replace(VL,(e,r)=>r?r.toUpperCase():"")),UL=/\B([A-Z])/g,js=Mp(t=>t.replace(UL,"-$1").toLowerCase()),Fp=Mp(t=>t.charAt(0).toUpperCase()+t.slice(1)),Dh=Mp(t=>t?`on${Fp(t)}`:""),Oa=(t,e)=>!Object.is(t,e),Bl=(t,e)=>{for(let r=0;r{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:n,value:r})},Xh=t=>{const e=parseFloat(t);return isNaN(e)?t:e},jL=t=>{const e=dr(t)?Number(t):NaN;return isNaN(e)?t:e};let kw;const tC=()=>kw||(kw=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Pa(t){if(Xe(t)){const e={};for(let r=0;r{if(r){const n=r.split(WL);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function Dn(t){let e="";if(dr(t))e=t;else if(Xe(t))for(let r=0;rRs(r,e))}const Me=t=>dr(t)?t:t==null?"":Xe(t)||Ht(t)&&(t.toString===J4||!lt(t.toString))?JSON.stringify(t,nC,2):String(t),nC=(t,e)=>e&&e.__v_isRef?nC(t,e.value):ql(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[n,i],o)=>(r[ag(n,o)+" =>"]=i,r),{})}:gc(e)?{[`Set(${e.size})`]:[...e.values()].map(r=>ag(r))}:Eo(e)?ag(e):Ht(e)&&!Xe(e)&&!Z4(e)?String(e):e,ag=(t,e="")=>{var r;return Eo(t)?`Symbol(${(r=t.description)!=null?r:e})`:t};let Rn;class iC{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Rn,!e&&Rn&&(this.index=(Rn.scopes||(Rn.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const r=Rn;try{return Rn=this,e()}finally{Rn=r}}}on(){Rn=this}off(){Rn=this.parent}stop(e){if(this._active){let r,n;for(r=0,n=this.effects.length;r=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Ha()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=ka,r=Cs;try{return ka=!0,Cs=this,this._runnings++,Cw(this),this.fn()}finally{Aw(this),this._runnings--,Cs=r,ka=e}}stop(){this.active&&(Cw(this),Aw(this),this.onStop&&this.onStop(),this.active=!1)}}function eM(t){return t.value}function Cw(t){t._trackId++,t._depsLength=0}function Aw(t){if(t.deps.length>t._depsLength){for(let e=t._depsLength;e{const r=new Map;return r.cleanup=t,r.computed=e,r},Jh=new WeakMap,As=Symbol(""),p_=Symbol("");function Tn(t,e,r){if(ka&&Cs){let n=Jh.get(t);n||Jh.set(t,n=new Map);let i=n.get(r);i||n.set(r,i=dC(()=>n.delete(r))),lC(Cs,i)}}function bo(t,e,r,n,i,o){const a=Jh.get(t);if(!a)return;let l=[];if(e==="clear")l=[...a.values()];else if(r==="length"&&Xe(t)){const d=Number(n);a.forEach((u,f)=>{(f==="length"||!Eo(f)&&f>=d)&&l.push(u)})}else switch(r!==void 0&&l.push(a.get(r)),e){case"add":Xe(t)?Kb(r)&&l.push(a.get("length")):(l.push(a.get(As)),ql(t)&&l.push(a.get(p_)));break;case"delete":Xe(t)||(l.push(a.get(As)),ql(t)&&l.push(a.get(p_)));break;case"set":ql(t)&&l.push(a.get(As));break}Zb();for(const d of l)d&&cC(d,4);e0()}function tM(t,e){const r=Jh.get(t);return r&&r.get(e)}const rM=Wb("__proto__,__v_isRef,__isVue"),uC=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Eo)),Sw=nM();function nM(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...r){const n=St(this);for(let o=0,a=this.length;o{t[e]=function(...r){ja(),Zb();const n=St(this)[e].apply(this,r);return e0(),Ha(),n}}),t}function iM(t){Eo(t)||(t=String(t));const e=St(this);return Tn(e,"has",t),e.hasOwnProperty(t)}class fC{constructor(e=!1,r=!1){this._isReadonly=e,this._isShallow=r}get(e,r,n){const i=this._isReadonly,o=this._isShallow;if(r==="__v_isReactive")return!i;if(r==="__v_isReadonly")return i;if(r==="__v_isShallow")return o;if(r==="__v_raw")return n===(i?o?gM:vC:o?mC:pC).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const a=Xe(e);if(!i){if(a&&Pt(Sw,r))return Reflect.get(Sw,r,n);if(r==="hasOwnProperty")return iM}const l=Reflect.get(e,r,n);return(Eo(r)?uC.has(r):rM(r))||(i||Tn(e,"get",r),o)?l:Xt(l)?a&&Kb(r)?l:l.value:Ht(l)?i?_C(l):zn(l):l}}class hC extends fC{constructor(e=!1){super(!1,e)}set(e,r,n,i){let o=e[r];if(!this._isShallow){const d=Qd(o);if(!Zh(n)&&!Qd(n)&&(o=St(o),n=St(n)),!Xe(e)&&Xt(o)&&!Xt(n))return d?!1:(o.value=n,!0)}const a=Xe(e)&&Kb(r)?Number(r)t,Np=t=>Reflect.getPrototypeOf(t);function rh(t,e,r=!1,n=!1){t=t.__v_raw;const i=St(t),o=St(e);r||(Oa(e,o)&&Tn(i,"get",e),Tn(i,"get",o));const{has:a}=Np(i),l=n?t0:r?i0:Kd;if(a.call(i,e))return l(t.get(e));if(a.call(i,o))return l(t.get(o));t!==i&&t.get(e)}function nh(t,e=!1){const r=this.__v_raw,n=St(r),i=St(t);return e||(Oa(t,i)&&Tn(n,"has",t),Tn(n,"has",i)),t===i?r.has(t):r.has(t)||r.has(i)}function ih(t,e=!1){return t=t.__v_raw,!e&&Tn(St(t),"iterate",As),Reflect.get(t,"size",t)}function Iw(t){t=St(t);const e=St(this);return Np(e).has.call(e,t)||(e.add(t),bo(e,"add",t,t)),this}function $w(t,e){e=St(e);const r=St(this),{has:n,get:i}=Np(r);let o=n.call(r,t);o||(t=St(t),o=n.call(r,t));const a=i.call(r,t);return r.set(t,e),o?Oa(e,a)&&bo(r,"set",t,e):bo(r,"add",t,e),this}function Ow(t){const e=St(this),{has:r,get:n}=Np(e);let i=r.call(e,t);i||(t=St(t),i=r.call(e,t)),n&&n.call(e,t);const o=e.delete(t);return i&&bo(e,"delete",t,void 0),o}function Pw(){const t=St(this),e=t.size!==0,r=t.clear();return e&&bo(t,"clear",void 0,void 0),r}function oh(t,e){return function(n,i){const o=this,a=o.__v_raw,l=St(a),d=e?t0:t?i0:Kd;return!t&&Tn(l,"iterate",As),a.forEach((u,f)=>n.call(i,d(u),d(f),o))}}function ah(t,e,r){return function(...n){const i=this.__v_raw,o=St(i),a=ql(o),l=t==="entries"||t===Symbol.iterator&&a,d=t==="keys"&&a,u=i[t](...n),f=r?t0:e?i0:Kd;return!e&&Tn(o,"iterate",d?p_:As),{next(){const{value:g,done:y}=u.next();return y?{value:g,done:y}:{value:l?[f(g[0]),f(g[1])]:f(g),done:y}},[Symbol.iterator](){return this}}}}function Zo(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function cM(){const t={get(o){return rh(this,o)},get size(){return ih(this)},has:nh,add:Iw,set:$w,delete:Ow,clear:Pw,forEach:oh(!1,!1)},e={get(o){return rh(this,o,!1,!0)},get size(){return ih(this)},has:nh,add:Iw,set:$w,delete:Ow,clear:Pw,forEach:oh(!1,!0)},r={get(o){return rh(this,o,!0)},get size(){return ih(this,!0)},has(o){return nh.call(this,o,!0)},add:Zo("add"),set:Zo("set"),delete:Zo("delete"),clear:Zo("clear"),forEach:oh(!0,!1)},n={get(o){return rh(this,o,!0,!0)},get size(){return ih(this,!0)},has(o){return nh.call(this,o,!0)},add:Zo("add"),set:Zo("set"),delete:Zo("delete"),clear:Zo("clear"),forEach:oh(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{t[o]=ah(o,!1,!1),r[o]=ah(o,!0,!1),e[o]=ah(o,!1,!0),n[o]=ah(o,!0,!0)}),[t,r,e,n]}const[dM,uM,fM,hM]=cM();function r0(t,e){const r=e?t?hM:fM:t?uM:dM;return(n,i,o)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?n:Reflect.get(Pt(r,i)&&i in n?r:n,i,o)}const pM={get:r0(!1,!1)},mM={get:r0(!1,!0)},vM={get:r0(!0,!1)};const pC=new WeakMap,mC=new WeakMap,vC=new WeakMap,gM=new WeakMap;function _M(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function yM(t){return t.__v_skip||!Object.isExtensible(t)?0:_M(BL(t))}function zn(t){return Qd(t)?t:n0(t,!1,aM,pM,pC)}function gC(t){return n0(t,!1,lM,mM,mC)}function _C(t){return n0(t,!0,sM,vM,vC)}function n0(t,e,r,n,i){if(!Ht(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const o=i.get(t);if(o)return o;const a=yM(t);if(a===0)return t;const l=new Proxy(t,a===2?n:r);return i.set(t,l),l}function Ca(t){return Qd(t)?Ca(t.__v_raw):!!(t&&t.__v_isReactive)}function Qd(t){return!!(t&&t.__v_isReadonly)}function Zh(t){return!!(t&&t.__v_isShallow)}function yC(t){return t?!!t.__v_raw:!1}function St(t){const e=t&&t.__v_raw;return e?St(e):t}function zp(t){return Object.isExtensible(t)&&eC(t,"__v_skip",!0),t}const Kd=t=>Ht(t)?zn(t):t,i0=t=>Ht(t)?_C(t):t;class bC{constructor(e,r,n,i){this.getter=e,this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Jb(()=>e(this._value),()=>Lh(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const e=St(this);return(!e._cacheable||e.effect.dirty)&&Oa(e._value,e._value=e.effect.run())&&Lh(e,4),xC(e),e.effect._dirtyLevel>=2&&Lh(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function bM(t,e,r=!1){let n,i;const o=lt(t);return o?(n=t,i=ni):(n=t.get,i=t.set),new bC(n,i,o||!i,r)}function xC(t){var e;ka&&Cs&&(t=St(t),lC(Cs,(e=t.dep)!=null?e:t.dep=dC(()=>t.dep=void 0,t instanceof bC?t:void 0)))}function Lh(t,e=4,r){t=St(t);const n=t.dep;n&&cC(n,e)}function Xt(t){return!!(t&&t.__v_isRef===!0)}function Le(t){return wC(t,!1)}function Td(t){return wC(t,!0)}function wC(t,e){return Xt(t)?t:new xM(t,e)}class xM{constructor(e,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?e:St(e),this._value=r?e:Kd(e)}get value(){return xC(this),this._value}set value(e){const r=this.__v_isShallow||Zh(e)||Qd(e);e=r?e:St(e),Oa(e,this._rawValue)&&(this._rawValue=e,this._value=r?e:Kd(e),Lh(this,4))}}function ne(t){return Xt(t)?t.value:t}function p1e(t){return lt(t)?t():ne(t)}const wM={get:(t,e,r)=>ne(Reflect.get(t,e,r)),set:(t,e,r,n)=>{const i=t[e];return Xt(i)&&!Xt(r)?(i.value=r,!0):Reflect.set(t,e,r,n)}};function TC(t){return Ca(t)?t:new Proxy(t,wM)}function qp(t){const e=Xe(t)?new Array(t.length):{};for(const r in t)e[r]=EC(t,r);return e}class TM{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 tM(St(this._object),this._key)}}class EM{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function kM(t,e,r){return Xt(t)?t:lt(t)?new EM(t):Ht(t)&&arguments.length>1?EC(t,e,r):Le(t)}function EC(t,e,r){const n=t[e];return Xt(n)?n:new TM(t,e,r)}function Aa(t,e,r,n){try{return n?t(...n):t()}catch(i){Bp(i,e,r)}}function oi(t,e,r,n){if(lt(t)){const i=Aa(t,e,r,n);return i&&X4(i)&&i.catch(o=>{Bp(o,e,r)}),i}if(Xe(t)){const i=[];for(let o=0;o>>1,i=Zr[n],o=Xd(i);ozi&&Zr.splice(e,1)}function IM(t){Xe(t)?Vl.push(...t):(!ca||!ca.includes(t,t.allowRecurse?ys+1:ys))&&Vl.push(t),CC()}function Rw(t,e,r=Yd?zi+1:0){for(;rXd(r)-Xd(n));if(Vl.length=0,ca){ca.push(...e);return}for(ca=e,ys=0;yst.id==null?1/0:t.id,$M=(t,e)=>{const r=Xd(t)-Xd(e);if(r===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return r};function SC(t){m_=!1,Yd=!0,Zr.sort($M);try{for(zi=0;zidr(x)?x.trim():x)),g&&(i=r.map(Xh))}let l,d=n[l=Dh(e)]||n[l=Dh(Ui(e))];!d&&o&&(d=n[l=Dh(js(e))]),d&&oi(d,t,6,i);const u=n[l+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[l])return;t.emitted[l]=!0,oi(u,t,6,i)}}function IC(t,e,r=!1){const n=e.emitsCache,i=n.get(t);if(i!==void 0)return i;const o=t.emits;let a={},l=!1;if(!lt(t)){const d=u=>{const f=IC(u,e,!0);f&&(l=!0,yr(a,f))};!r&&e.mixins.length&&e.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}return!o&&!l?(Ht(t)&&n.set(t,null),null):(Xe(o)?o.forEach(d=>a[d]=null):yr(a,o),Ht(t)&&n.set(t,a),a)}function Vp(t,e){return!t||!Lp(e)?!1:(e=e.slice(2).replace(/Once$/,""),Pt(t,e[0].toLowerCase()+e.slice(1))||Pt(t,js(e))||Pt(t,e))}let Tr=null,Up=null;function ep(t){const e=Tr;return Tr=t,Up=t&&t.type.__scopeId||null,e}function Io(t){Up=t}function $o(){Up=null}function Ir(t,e=Tr,r){if(!e||t._n)return t;const n=(...i)=>{n._d&&Gw(-1);const o=ep(e);let a;try{a=t(...i)}finally{ep(o),n._d&&Gw(1)}return a};return n._n=!0,n._c=!0,n._d=!0,n}function sg(t){const{type:e,vnode:r,proxy:n,withProxy:i,propsOptions:[o],slots:a,attrs:l,emit:d,render:u,renderCache:f,props:g,data:y,setupState:x,ctx:m,inheritAttrs:p}=t,_=ep(t);let v,b;try{if(r.shapeFlag&4){const E=i||n,C=E;v=Ni(u.call(C,E,f,g,x,y,m)),b=l}else{const E=e;v=Ni(E.length>1?E(g,{attrs:l,slots:a,emit:d}):E(g,null)),b=e.props?l:PM(l)}}catch(E){Id.length=0,Bp(E,t,1),v=$e(Mn)}let w=v;if(b&&p!==!1){const E=Object.keys(b),{shapeFlag:C}=w;E.length&&C&7&&(o&&E.some(Gb)&&(b=RM(b,o)),w=ko(w,b,!1,!0))}return r.dirs&&(w=ko(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(r.dirs):r.dirs),r.transition&&(w.transition=r.transition),v=w,ep(_),v}const PM=t=>{let e;for(const r in t)(r==="class"||r==="style"||Lp(r))&&((e||(e={}))[r]=t[r]);return e},RM=(t,e)=>{const r={};for(const n in t)(!Gb(n)||!(n.slice(9)in e))&&(r[n]=t[n]);return r};function DM(t,e,r){const{props:n,children:i,component:o}=t,{props:a,children:l,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?Dw(n,a,u):!!a;if(d&8){const f=e.dynamicProps;for(let g=0;gt.__isSuspense;function FM(t,e){e&&e.pendingBranch?Xe(t)?e.effects.push(...t):e.effects.push(t):IM(t)}const NM=Symbol.for("v-scx"),zM=()=>cn(NM);function qM(t,e){return jp(t,null,e)}function BM(t,e){return jp(t,null,{flush:"post"})}const sh={};function Rt(t,e,r){return jp(t,e,r)}function jp(t,e,{immediate:r,deep:n,flush:i,once:o,onTrack:a,onTrigger:l}=ir){if(e&&o){const S=e;e=(...P)=>{S(...P),C()}}const d=Mr,u=S=>n===!0?S:ws(S,n===!1?1:void 0);let f,g=!1,y=!1;if(Xt(t)?(f=()=>t.value,g=Zh(t)):Ca(t)?(f=()=>u(t),g=!0):Xe(t)?(y=!0,g=t.some(S=>Ca(S)||Zh(S)),f=()=>t.map(S=>{if(Xt(S))return S.value;if(Ca(S))return u(S);if(lt(S))return Aa(S,d,2)})):lt(t)?e?f=()=>Aa(t,d,2):f=()=>(x&&x(),oi(t,d,3,[m])):f=ni,e&&n){const S=f;f=()=>ws(S())}let x,m=S=>{x=w.onStop=()=>{Aa(S,d,4),x=w.onStop=void 0}},p;if(Qp)if(m=ni,e?r&&oi(e,d,3,[f(),y?[]:void 0,m]):f(),i==="sync"){const S=zM();p=S.__watcherHandles||(S.__watcherHandles=[])}else return ni;let _=y?new Array(t.length).fill(sh):sh;const v=()=>{if(!(!w.active||!w.dirty))if(e){const S=w.run();(n||g||(y?S.some((P,R)=>Oa(P,_[R])):Oa(S,_)))&&(x&&x(),oi(e,d,3,[S,_===sh?void 0:y&&_[0]===sh?[]:_,m]),_=S)}else w.run()};v.allowRecurse=!!e;let b;i==="sync"?b=v:i==="post"?b=()=>Hr(v,d&&d.suspense):(v.pre=!0,d&&(v.id=d.uid),b=()=>a0(v));const w=new Jb(f,ni,b),E=oC(),C=()=>{w.stop(),E&&Qb(E.effects,w)};return e?r?v():_=w.run():i==="post"?Hr(w.run.bind(w),d&&d.suspense):w.run(),p&&p.push(C),C}function VM(t,e,r){const n=this.proxy,i=dr(t)?t.includes(".")?PC(n,t):()=>n[t]:t.bind(n,n);let o;lt(e)?o=e:(o=e.handler,r=e);const a=wu(this),l=jp(i,o.bind(n),r);return a(),l}function PC(t,e){const r=e.split(".");return()=>{let n=t;for(let i=0;i{ws(n,e,r)});else if(Z4(t))for(const n in t)ws(t[n],e,r);return t}function ot(t,e){if(Tr===null)return t;const r=Kp(Tr)||Tr.proxy,n=t.dirs||(t.dirs=[]);for(let i=0;i{t.isMounted=!0}),$i(()=>{t.isUnmounting=!0}),t}const Zn=[Function,Array],DC={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Zn,onEnter:Zn,onAfterEnter:Zn,onEnterCancelled:Zn,onBeforeLeave:Zn,onLeave:Zn,onAfterLeave:Zn,onLeaveCancelled:Zn,onBeforeAppear:Zn,onAppear:Zn,onAfterAppear:Zn,onAppearCancelled:Zn},UM={name:"BaseTransition",props:DC,setup(t,{slots:e}){const r=Ki(),n=RC();return()=>{const i=e.default&&d0(e.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const y of i)if(y.type!==Mn){o=y;break}}const a=St(t),{mode:l}=a;if(n.isLeaving)return lg(o);const d=Mw(o);if(!d)return lg(o);const u=Jd(d,a,n,r);Xl(d,u);const f=r.subTree,g=f&&Mw(f);if(g&&g.type!==Mn&&!ya(d,g)){const y=Jd(g,a,n,r);if(Xl(g,y),l==="out-in"&&d.type!==Mn)return n.isLeaving=!0,y.afterLeave=()=>{n.isLeaving=!1,r.update.active!==!1&&(r.effect.dirty=!0,r.update())},lg(o);l==="in-out"&&d.type!==Mn&&(y.delayLeave=(x,m,p)=>{const _=LC(n,g);_[String(g.key)]=g,x[da]=()=>{m(),x[da]=void 0,delete u.delayedLeave},u.delayedLeave=p})}return o}}},jM=UM;function LC(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 Jd(t,e,r,n){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:d,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:g,onLeave:y,onAfterLeave:x,onLeaveCancelled:m,onBeforeAppear:p,onAppear:_,onAfterAppear:v,onAppearCancelled:b}=e,w=String(t.key),E=LC(r,t),C=(R,D)=>{R&&oi(R,n,9,D)},S=(R,D)=>{const z=D[1];C(R,D),Xe(R)?R.every(j=>j.length<=1)&&z():R.length<=1&&z()},P={mode:o,persisted:a,beforeEnter(R){let D=l;if(!r.isMounted)if(i)D=p||l;else return;R[da]&&R[da](!0);const z=E[w];z&&ya(t,z)&&z.el[da]&&z.el[da](),C(D,[R])},enter(R){let D=d,z=u,j=f;if(!r.isMounted)if(i)D=_||d,z=v||u,j=b||f;else return;let q=!1;const J=R[lh]=be=>{q||(q=!0,be?C(j,[R]):C(z,[R]),P.delayedLeave&&P.delayedLeave(),R[lh]=void 0)};D?S(D,[R,J]):J()},leave(R,D){const z=String(t.key);if(R[lh]&&R[lh](!0),r.isUnmounting)return D();C(g,[R]);let j=!1;const q=R[da]=J=>{j||(j=!0,D(),J?C(m,[R]):C(x,[R]),R[da]=void 0,E[z]===t&&delete E[z])};E[z]=t,y?S(y,[R,q]):q()},clone(R){return Jd(R,e,r,n)}};return P}function lg(t){if(Hp(t))return t=ko(t),t.children=null,t}function Mw(t){if(!Hp(t))return t;const{shapeFlag:e,children:r}=t;if(r){if(e&16)return r[0];if(e&32&<(r.default))return r.default()}}function Xl(t,e){t.shapeFlag&6&&t.component?Xl(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 d0(t,e=!1,r){let n=[],i=0;for(let o=0;o1)for(let o=0;o!!t.type.__asyncLoader,Hp=t=>t.type.__isKeepAlive,HM={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const r=Ki(),n=r.ctx;if(!n.renderer)return()=>{const b=e.default&&e.default();return b&&b.length===1?b[0]:b};const i=new Map,o=new Set;let a=null;const l=r.suspense,{renderer:{p:d,m:u,um:f,o:{createElement:g}}}=n,y=g("div");n.activate=(b,w,E,C,S)=>{const P=b.component;u(b,w,E,0,l),d(P.vnode,b,w,E,P,l,C,b.slotScopeIds,S),Hr(()=>{P.isDeactivated=!1,P.a&&Bl(P.a);const R=b.props&&b.props.onVnodeMounted;R&&ti(R,P.parent,b)},l)},n.deactivate=b=>{const w=b.component;u(b,y,null,1,l),Hr(()=>{w.da&&Bl(w.da);const E=b.props&&b.props.onVnodeUnmounted;E&&ti(E,w.parent,b),w.isDeactivated=!0},l)};function x(b){dg(b),f(b,r,l,!0)}function m(b){i.forEach((w,E)=>{const C=E_(w.type);C&&(!b||!b(C))&&p(E)})}function p(b){const w=i.get(b);!a||!ya(w,a)?x(w):a&&dg(a),i.delete(b),o.delete(b)}Rt(()=>[t.include,t.exclude],([b,w])=>{b&&m(E=>_d(b,E)),w&&m(E=>!_d(w,E))},{flush:"post",deep:!0});let _=null;const v=()=>{_!=null&&i.set(_,ug(r.subTree))};return Qr(v),Gp(v),$i(()=>{i.forEach(b=>{const{subTree:w,suspense:E}=r,C=ug(w);if(b.type===C.type&&b.key===C.key){dg(C);const S=C.component.da;S&&Hr(S,E);return}x(b)})}),()=>{if(_=null,!e.default)return null;const b=e.default(),w=b[0];if(b.length>1)return a=null,b;if(!Jl(w)||!(w.shapeFlag&4)&&!(w.shapeFlag&128))return a=null,w;let E=ug(w);const C=E.type,S=E_(Ul(E)?E.type.__asyncResolved||{}:C),{include:P,exclude:R,max:D}=t;if(P&&(!S||!_d(P,S))||R&&S&&_d(R,S))return a=E,w;const z=E.key==null?C:E.key,j=i.get(z);return E.el&&(E=ko(E),w.shapeFlag&128&&(w.ssContent=E)),_=z,j?(E.el=j.el,E.component=j.component,E.transition&&Xl(E,E.transition),E.shapeFlag|=512,o.delete(z),o.add(z)):(o.add(z),D&&o.size>parseInt(D,10)&&p(o.values().next().value)),E.shapeFlag|=256,a=E,OC(w.type)?w:E}}},cg=HM;function _d(t,e){return Xe(t)?t.some(r=>_d(r,e)):dr(t)?t.split(",").includes(e):qL(t)?t.test(e):!1}function MC(t,e){FC(t,"a",e)}function WM(t,e){FC(t,"da",e)}function FC(t,e,r=Mr){const n=t.__wdc||(t.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(Wp(e,n,r),r){let i=r.parent;for(;i&&i.parent;)Hp(i.parent.vnode)&&GM(n,e,r,i),i=i.parent}}function GM(t,e,r,n){const i=Wp(e,t,n,!0);Wa(()=>{Qb(n[e],i)},r)}function dg(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function ug(t){return t.shapeFlag&128?t.ssContent:t}function Wp(t,e,r=Mr,n=!1){if(r){const i=r[t]||(r[t]=[]),o=e.__weh||(e.__weh=(...a)=>{if(r.isUnmounted)return;ja();const l=wu(r),d=oi(e,r,t,a);return l(),Ha(),d});return n?i.unshift(o):i.push(o),o}}const Po=t=>(e,r=Mr)=>(!Qp||t==="sp")&&Wp(t,(...n)=>e(...n),r),NC=Po("bm"),Qr=Po("m"),QM=Po("bu"),Gp=Po("u"),$i=Po("bum"),Wa=Po("um"),zC=Po("sp"),KM=Po("rtg"),YM=Po("rtc");function XM(t,e=Mr){Wp("ec",t,e)}function ci(t,e,r,n){let i;const o=r;if(Xe(t)||dr(t)){i=new Array(t.length);for(let a=0,l=t.length;ae(a,l,void 0,o));else{const a=Object.keys(t);i=new Array(a.length);for(let l=0,d=a.length;lJl(e)?!(e.type===Mn||e.type===$t&&!qC(e.children)):!0)?t:null}function JM(t,e){const r={};for(const n in t)r[Dh(n)]=t[n];return r}const g_=t=>t?n3(t)?Kp(t)||t.proxy:g_(t.parent):null,kd=yr(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=>g_(t.parent),$root:t=>g_(t.root),$emit:t=>t.emit,$options:t=>u0(t),$forceUpdate:t=>t.f||(t.f=()=>{t.effect.dirty=!0,a0(t.update)}),$nextTick:t=>t.n||(t.n=yo.bind(t.proxy)),$watch:t=>VM.bind(t)}),fg=(t,e)=>t!==ir&&!t.__isScriptSetup&&Pt(t,e),ZM={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:r,setupState:n,data:i,props:o,accessCache:a,type:l,appContext:d}=t;let u;if(e[0]!=="$"){const x=a[e];if(x!==void 0)switch(x){case 1:return n[e];case 2:return i[e];case 4:return r[e];case 3:return o[e]}else{if(fg(n,e))return a[e]=1,n[e];if(i!==ir&&Pt(i,e))return a[e]=2,i[e];if((u=t.propsOptions[0])&&Pt(u,e))return a[e]=3,o[e];if(r!==ir&&Pt(r,e))return a[e]=4,r[e];__&&(a[e]=0)}}const f=kd[e];let g,y;if(f)return e==="$attrs"&&Tn(t.attrs,"get",""),f(t);if((g=l.__cssModules)&&(g=g[e]))return g;if(r!==ir&&Pt(r,e))return a[e]=4,r[e];if(y=d.config.globalProperties,Pt(y,e))return y[e]},set({_:t},e,r){const{data:n,setupState:i,ctx:o}=t;return fg(i,e)?(i[e]=r,!0):n!==ir&&Pt(n,e)?(n[e]=r,!0):Pt(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 l;return!!r[a]||t!==ir&&Pt(t,a)||fg(e,a)||(l=o[0])&&Pt(l,a)||Pt(n,a)||Pt(kd,a)||Pt(i.config.globalProperties,a)},defineProperty(t,e,r){return r.get!=null?t._.accessCache[e]=0:Pt(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}};function eF(){return tF().slots}function tF(){const t=Ki();return t.setupContext||(t.setupContext=o3(t))}function Fw(t){return Xe(t)?t.reduce((e,r)=>(e[r]=null,e),{}):t}let __=!0;function rF(t){const e=u0(t),r=t.proxy,n=t.ctx;__=!1,e.beforeCreate&&Nw(e.beforeCreate,t,"bc");const{data:i,computed:o,methods:a,watch:l,provide:d,inject:u,created:f,beforeMount:g,mounted:y,beforeUpdate:x,updated:m,activated:p,deactivated:_,beforeDestroy:v,beforeUnmount:b,destroyed:w,unmounted:E,render:C,renderTracked:S,renderTriggered:P,errorCaptured:R,serverPrefetch:D,expose:z,inheritAttrs:j,components:q,directives:J,filters:be}=e;if(u&&nF(u,n,null),a)for(const ke in a){const Se=a[ke];lt(Se)&&(n[ke]=Se.bind(r))}if(i){const ke=i.call(r,r);Ht(ke)&&(t.data=zn(ke))}if(__=!0,o)for(const ke in o){const Se=o[ke],Be=lt(Se)?Se.bind(r,r):lt(Se.get)?Se.get.bind(r,r):ni,Re=!lt(Se)&<(Se.set)?Se.set.bind(r):ni,se=At({get:Be,set:Re});Object.defineProperty(n,ke,{enumerable:!0,configurable:!0,get:()=>se.value,set:we=>se.value=we})}if(l)for(const ke in l)BC(l[ke],n,r,ke);if(d){const ke=lt(d)?d.call(r):d;Reflect.ownKeys(ke).forEach(Se=>{Cd(Se,ke[Se])})}f&&Nw(f,t,"c");function ge(ke,Se){Xe(Se)?Se.forEach(Be=>ke(Be.bind(r))):Se&&ke(Se.bind(r))}if(ge(NC,g),ge(Qr,y),ge(QM,x),ge(Gp,m),ge(MC,p),ge(WM,_),ge(XM,R),ge(YM,S),ge(KM,P),ge($i,b),ge(Wa,E),ge(zC,D),Xe(z))if(z.length){const ke=t.exposed||(t.exposed={});z.forEach(Se=>{Object.defineProperty(ke,Se,{get:()=>r[Se],set:Be=>r[Se]=Be})})}else t.exposed||(t.exposed={});C&&t.render===ni&&(t.render=C),j!=null&&(t.inheritAttrs=j),q&&(t.components=q),J&&(t.directives=J)}function nF(t,e,r=ni){Xe(t)&&(t=y_(t));for(const n in t){const i=t[n];let o;Ht(i)?"default"in i?o=cn(i.from||n,i.default,!0):o=cn(i.from||n):o=cn(i),Xt(o)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):e[n]=o}}function Nw(t,e,r){oi(Xe(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,r)}function BC(t,e,r,n){const i=n.includes(".")?PC(r,n):()=>r[n];if(dr(t)){const o=e[t];lt(o)&&Rt(i,o)}else if(lt(t))Rt(i,t.bind(r));else if(Ht(t))if(Xe(t))t.forEach(o=>BC(o,e,r,n));else{const o=lt(t.handler)?t.handler.bind(r):e[t.handler];lt(o)&&Rt(i,o,t)}}function u0(t){const e=t.type,{mixins:r,extends:n}=e,{mixins:i,optionsCache:o,config:{optionMergeStrategies:a}}=t.appContext,l=o.get(e);let d;return l?d=l:!i.length&&!r&&!n?d=e:(d={},i.length&&i.forEach(u=>tp(d,u,a,!0)),tp(d,e,a)),Ht(e)&&o.set(e,d),d}function tp(t,e,r,n=!1){const{mixins:i,extends:o}=e;o&&tp(t,o,r,!0),i&&i.forEach(a=>tp(t,a,r,!0));for(const a in e)if(!(n&&a==="expose")){const l=iF[a]||r&&r[a];t[a]=l?l(t[a],e[a]):e[a]}return t}const iF={data:zw,props:qw,emits:qw,methods:yd,computed:yd,beforeCreate:an,created:an,beforeMount:an,mounted:an,beforeUpdate:an,updated:an,beforeDestroy:an,beforeUnmount:an,destroyed:an,unmounted:an,activated:an,deactivated:an,errorCaptured:an,serverPrefetch:an,components:yd,directives:yd,watch:aF,provide:zw,inject:oF};function zw(t,e){return e?t?function(){return yr(lt(t)?t.call(this,this):t,lt(e)?e.call(this,this):e)}:e:t}function oF(t,e){return yd(y_(t),y_(e))}function y_(t){if(Xe(t)){const e={};for(let r=0;r1)return r&<(e)?e.call(n&&n.proxy):e}}function UC(){return!!(Mr||Tr||jl)}const jC={},HC=()=>Object.create(jC),WC=t=>Object.getPrototypeOf(t)===jC;function cF(t,e,r,n=!1){const i={},o=HC();t.propsDefaults=Object.create(null),GC(t,e,i,o);for(const a in t.propsOptions[0])a in i||(i[a]=void 0);r?t.props=n?i:gC(i):t.type.props?t.props=i:t.props=o,t.attrs=o}function dF(t,e,r,n){const{props:i,attrs:o,vnode:{patchFlag:a}}=t,l=St(i),[d]=t.propsOptions;let u=!1;if((n||a>0)&&!(a&16)){if(a&8){const f=t.vnode.dynamicProps;for(let g=0;g{d=!0;const[y,x]=QC(g,e,!0);yr(a,y),x&&l.push(...x)};!r&&e.mixins.length&&e.mixins.forEach(f),t.extends&&f(t.extends),t.mixins&&t.mixins.forEach(f)}if(!o&&!d)return Ht(t)&&n.set(t,zl),zl;if(Xe(o))for(let f=0;f-1,x[1]=p<0||m-1||Pt(x,"default"))&&l.push(g)}}}const u=[a,l];return Ht(t)&&n.set(t,u),u}function Bw(t){return t[0]!=="$"&&!wd(t)}function Vw(t){return t===null?"null":typeof t=="function"?t.name||"":typeof t=="object"&&t.constructor&&t.constructor.name||""}function Uw(t,e){return Vw(t)===Vw(e)}function jw(t,e){return Xe(e)?e.findIndex(r=>Uw(r,t)):lt(e)&&Uw(e,t)?0:-1}const KC=t=>t[0]==="_"||t==="$stable",f0=t=>Xe(t)?t.map(Ni):[Ni(t)],uF=(t,e,r)=>{if(e._n)return e;const n=Ir((...i)=>f0(e(...i)),r);return n._c=!1,n},YC=(t,e,r)=>{const n=t._ctx;for(const i in t){if(KC(i))continue;const o=t[i];if(lt(o))e[i]=uF(i,o,n);else if(o!=null){const a=f0(o);e[i]=()=>a}}},XC=(t,e)=>{const r=f0(e);t.slots.default=()=>r},fF=(t,e)=>{const r=t.slots=HC();if(t.vnode.shapeFlag&32){const n=e._;n?(yr(r,e),eC(r,"_",n,!0)):YC(e,r)}else e&&XC(t,e)},hF=(t,e,r)=>{const{vnode:n,slots:i}=t;let o=!0,a=ir;if(n.shapeFlag&32){const l=e._;l?r&&l===1?o=!1:(yr(i,e),!r&&l===1&&delete i._):(o=!e.$stable,YC(e,i)),a=e}else e&&(XC(t,e),a={default:1});if(o)for(const l in i)!KC(l)&&a[l]==null&&delete i[l]};function x_(t,e,r,n,i=!1){if(Xe(t)){t.forEach((y,x)=>x_(y,e&&(Xe(e)?e[x]:e),r,n,i));return}if(Ul(n)&&!i)return;const o=n.shapeFlag&4?Kp(n.component)||n.component.proxy:n.el,a=i?null:o,{i:l,r:d}=t,u=e&&e.r,f=l.refs===ir?l.refs={}:l.refs,g=l.setupState;if(u!=null&&u!==d&&(dr(u)?(f[u]=null,Pt(g,u)&&(g[u]=null)):Xt(u)&&(u.value=null)),lt(d))Aa(d,l,12,[a,f]);else{const y=dr(d),x=Xt(d);if(y||x){const m=()=>{if(t.f){const p=y?Pt(g,d)?g[d]:f[d]:d.value;i?Xe(p)&&Qb(p,o):Xe(p)?p.includes(o)||p.push(o):y?(f[d]=[o],Pt(g,d)&&(g[d]=f[d])):(d.value=[o],t.k&&(f[t.k]=d.value))}else y?(f[d]=a,Pt(g,d)&&(g[d]=a)):x&&(d.value=a,t.k&&(f[t.k]=a))};a?(m.id=-1,Hr(m,r)):m()}}}const Hr=FM;function pF(t){return mF(t)}function mF(t,e){const r=tC();r.__VUE__=!0;const{insert:n,remove:i,patchProp:o,createElement:a,createText:l,createComment:d,setText:u,setElementText:f,parentNode:g,nextSibling:y,setScopeId:x=ni,insertStaticContent:m}=t,p=(k,A,M,U=null,G=null,ae=null,Ae=void 0,fe=null,_e=!!A.dynamicChildren)=>{if(k===A)return;k&&!ya(k,A)&&(U=ee(k),we(k,G,ae,!0),k=null),A.patchFlag===-2&&(_e=!1,A.dynamicChildren=null);const{type:ie,ref:W,shapeFlag:B}=A;switch(ie){case xu:_(k,A,M,U);break;case Mn:v(k,A,M,U);break;case Sd:k==null&&b(A,M,U,Ae);break;case $t:q(k,A,M,U,G,ae,Ae,fe,_e);break;default:B&1?C(k,A,M,U,G,ae,Ae,fe,_e):B&6?J(k,A,M,U,G,ae,Ae,fe,_e):(B&64||B&128)&&ie.process(k,A,M,U,G,ae,Ae,fe,_e,De)}W!=null&&G&&x_(W,k&&k.ref,ae,A||k,!A)},_=(k,A,M,U)=>{if(k==null)n(A.el=l(A.children),M,U);else{const G=A.el=k.el;A.children!==k.children&&u(G,A.children)}},v=(k,A,M,U)=>{k==null?n(A.el=d(A.children||""),M,U):A.el=k.el},b=(k,A,M,U)=>{[k.el,k.anchor]=m(k.children,A,M,U,k.el,k.anchor)},w=({el:k,anchor:A},M,U)=>{let G;for(;k&&k!==A;)G=y(k),n(k,M,U),k=G;n(A,M,U)},E=({el:k,anchor:A})=>{let M;for(;k&&k!==A;)M=y(k),i(k),k=M;i(A)},C=(k,A,M,U,G,ae,Ae,fe,_e)=>{A.type==="svg"?Ae="svg":A.type==="math"&&(Ae="mathml"),k==null?S(A,M,U,G,ae,Ae,fe,_e):D(k,A,G,ae,Ae,fe,_e)},S=(k,A,M,U,G,ae,Ae,fe)=>{let _e,ie;const{props:W,shapeFlag:B,transition:xe,dirs:Ie}=k;if(_e=k.el=a(k.type,ae,W&&W.is,W),B&8?f(_e,k.children):B&16&&R(k.children,_e,null,U,G,hg(k,ae),Ae,fe),Ie&&us(k,null,U,"created"),P(_e,k,k.scopeId,Ae,U),W){for(const Ye in W)Ye!=="value"&&!wd(Ye)&&o(_e,Ye,null,W[Ye],ae,k.children,U,G,Ge);"value"in W&&o(_e,"value",null,W.value,ae),(ie=W.onVnodeBeforeMount)&&ti(ie,U,k)}Ie&&us(k,null,U,"beforeMount");const ze=vF(G,xe);ze&&xe.beforeEnter(_e),n(_e,A,M),((ie=W&&W.onVnodeMounted)||ze||Ie)&&Hr(()=>{ie&&ti(ie,U,k),ze&&xe.enter(_e),Ie&&us(k,null,U,"mounted")},G)},P=(k,A,M,U,G)=>{if(M&&x(k,M),U)for(let ae=0;ae{for(let ie=_e;ie{const fe=A.el=k.el;let{patchFlag:_e,dynamicChildren:ie,dirs:W}=A;_e|=k.patchFlag&16;const B=k.props||ir,xe=A.props||ir;let Ie;if(M&&fs(M,!1),(Ie=xe.onVnodeBeforeUpdate)&&ti(Ie,M,A,k),W&&us(A,k,M,"beforeUpdate"),M&&fs(M,!0),ie?z(k.dynamicChildren,ie,fe,M,U,hg(A,G),ae):Ae||Se(k,A,fe,null,M,U,hg(A,G),ae,!1),_e>0){if(_e&16)j(fe,A,B,xe,M,U,G);else if(_e&2&&B.class!==xe.class&&o(fe,"class",null,xe.class,G),_e&4&&o(fe,"style",B.style,xe.style,G),_e&8){const ze=A.dynamicProps;for(let Ye=0;Ye{Ie&&ti(Ie,M,A,k),W&&us(A,k,M,"updated")},U)},z=(k,A,M,U,G,ae,Ae)=>{for(let fe=0;fe{if(M!==U){if(M!==ir)for(const fe in M)!wd(fe)&&!(fe in U)&&o(k,fe,M[fe],null,Ae,A.children,G,ae,Ge);for(const fe in U){if(wd(fe))continue;const _e=U[fe],ie=M[fe];_e!==ie&&fe!=="value"&&o(k,fe,ie,_e,Ae,A.children,G,ae,Ge)}"value"in U&&o(k,"value",M.value,U.value,Ae)}},q=(k,A,M,U,G,ae,Ae,fe,_e)=>{const ie=A.el=k?k.el:l(""),W=A.anchor=k?k.anchor:l("");let{patchFlag:B,dynamicChildren:xe,slotScopeIds:Ie}=A;Ie&&(fe=fe?fe.concat(Ie):Ie),k==null?(n(ie,M,U),n(W,M,U),R(A.children||[],M,W,G,ae,Ae,fe,_e)):B>0&&B&64&&xe&&k.dynamicChildren?(z(k.dynamicChildren,xe,M,G,ae,Ae,fe),(A.key!=null||G&&A===G.subTree)&&h0(k,A,!0)):Se(k,A,M,W,G,ae,Ae,fe,_e)},J=(k,A,M,U,G,ae,Ae,fe,_e)=>{A.slotScopeIds=fe,k==null?A.shapeFlag&512?G.ctx.activate(A,M,U,Ae,_e):be(A,M,U,G,ae,Ae,_e):Oe(k,A,_e)},be=(k,A,M,U,G,ae,Ae)=>{const fe=k.component=AF(k,U,G);if(Hp(k)&&(fe.ctx.renderer=De),SF(fe),fe.asyncDep){if(G&&G.registerDep(fe,ge),!k.el){const _e=fe.subTree=$e(Mn);v(null,_e,A,M)}}else ge(fe,k,A,M,G,ae,Ae)},Oe=(k,A,M)=>{const U=A.component=k.component;if(DM(k,A,M))if(U.asyncDep&&!U.asyncResolved){ke(U,A,M);return}else U.next=A,SM(U.update),U.effect.dirty=!0,U.update();else A.el=k.el,U.vnode=A},ge=(k,A,M,U,G,ae,Ae)=>{const fe=()=>{if(k.isMounted){let{next:W,bu:B,u:xe,parent:Ie,vnode:ze}=k;{const Un=JC(k);if(Un){W&&(W.el=ze.el,ke(k,W,Ae)),Un.asyncDep.then(()=>{k.isUnmounted||fe()});return}}let Ye=W,dt;fs(k,!1),W?(W.el=ze.el,ke(k,W,Ae)):W=ze,B&&Bl(B),(dt=W.props&&W.props.onVnodeBeforeUpdate)&&ti(dt,Ie,W,ze),fs(k,!0);const ht=sg(k),sr=k.subTree;k.subTree=ht,p(sr,ht,g(sr.el),ee(sr),k,G,ae),W.el=ht.el,Ye===null&&LM(k,ht.el),xe&&Hr(xe,G),(dt=W.props&&W.props.onVnodeUpdated)&&Hr(()=>ti(dt,Ie,W,ze),G)}else{let W;const{el:B,props:xe}=A,{bm:Ie,m:ze,parent:Ye}=k,dt=Ul(A);if(fs(k,!1),Ie&&Bl(Ie),!dt&&(W=xe&&xe.onVnodeBeforeMount)&&ti(W,Ye,A),fs(k,!0),B&&it){const ht=()=>{k.subTree=sg(k),it(B,k.subTree,k,G,null)};dt?A.type.__asyncLoader().then(()=>!k.isUnmounted&&ht()):ht()}else{const ht=k.subTree=sg(k);p(null,ht,M,U,k,G,ae),A.el=ht.el}if(ze&&Hr(ze,G),!dt&&(W=xe&&xe.onVnodeMounted)){const ht=A;Hr(()=>ti(W,Ye,ht),G)}(A.shapeFlag&256||Ye&&Ul(Ye.vnode)&&Ye.vnode.shapeFlag&256)&&k.a&&Hr(k.a,G),k.isMounted=!0,A=M=U=null}},_e=k.effect=new Jb(fe,ni,()=>a0(ie),k.scope),ie=k.update=()=>{_e.dirty&&_e.run()};ie.id=k.uid,fs(k,!0),ie()},ke=(k,A,M)=>{A.component=k;const U=k.vnode.props;k.vnode=A,k.next=null,dF(k,A.props,U,M),hF(k,A.children,M),ja(),Rw(k),Ha()},Se=(k,A,M,U,G,ae,Ae,fe,_e=!1)=>{const ie=k&&k.children,W=k?k.shapeFlag:0,B=A.children,{patchFlag:xe,shapeFlag:Ie}=A;if(xe>0){if(xe&128){Re(ie,B,M,U,G,ae,Ae,fe,_e);return}else if(xe&256){Be(ie,B,M,U,G,ae,Ae,fe,_e);return}}Ie&8?(W&16&&Ge(ie,G,ae),B!==ie&&f(M,B)):W&16?Ie&16?Re(ie,B,M,U,G,ae,Ae,fe,_e):Ge(ie,G,ae,!0):(W&8&&f(M,""),Ie&16&&R(B,M,U,G,ae,Ae,fe,_e))},Be=(k,A,M,U,G,ae,Ae,fe,_e)=>{k=k||zl,A=A||zl;const ie=k.length,W=A.length,B=Math.min(ie,W);let xe;for(xe=0;xeW?Ge(k,G,ae,!0,!1,B):R(A,M,U,G,ae,Ae,fe,_e,B)},Re=(k,A,M,U,G,ae,Ae,fe,_e)=>{let ie=0;const W=A.length;let B=k.length-1,xe=W-1;for(;ie<=B&&ie<=xe;){const Ie=k[ie],ze=A[ie]=_e?ua(A[ie]):Ni(A[ie]);if(ya(Ie,ze))p(Ie,ze,M,null,G,ae,Ae,fe,_e);else break;ie++}for(;ie<=B&&ie<=xe;){const Ie=k[B],ze=A[xe]=_e?ua(A[xe]):Ni(A[xe]);if(ya(Ie,ze))p(Ie,ze,M,null,G,ae,Ae,fe,_e);else break;B--,xe--}if(ie>B){if(ie<=xe){const Ie=xe+1,ze=Iexe)for(;ie<=B;)we(k[ie],G,ae,!0),ie++;else{const Ie=ie,ze=ie,Ye=new Map;for(ie=ze;ie<=xe;ie++){const oe=A[ie]=_e?ua(A[ie]):Ni(A[ie]);oe.key!=null&&Ye.set(oe.key,ie)}let dt,ht=0;const sr=xe-ze+1;let Un=!1,Ji=0;const jn=new Array(sr);for(ie=0;ie=sr){we(oe,G,ae,!0);continue}let Ee;if(oe.key!=null)Ee=Ye.get(oe.key);else for(dt=ze;dt<=xe;dt++)if(jn[dt-ze]===0&&ya(oe,A[dt])){Ee=dt;break}Ee===void 0?we(oe,G,ae,!0):(jn[Ee-ze]=ie+1,Ee>=Ji?Ji=Ee:Un=!0,p(oe,A[Ee],M,null,G,ae,Ae,fe,_e),ht++)}const Zi=Un?gF(jn):zl;for(dt=Zi.length-1,ie=sr-1;ie>=0;ie--){const oe=ze+ie,Ee=A[oe],Ze=oe+1{const{el:ae,type:Ae,transition:fe,children:_e,shapeFlag:ie}=k;if(ie&6){se(k.component.subTree,A,M,U);return}if(ie&128){k.suspense.move(A,M,U);return}if(ie&64){Ae.move(k,A,M,De);return}if(Ae===$t){n(ae,A,M);for(let B=0;B<_e.length;B++)se(_e[B],A,M,U);n(k.anchor,A,M);return}if(Ae===Sd){w(k,A,M);return}if(U!==2&&ie&1&&fe)if(U===0)fe.beforeEnter(ae),n(ae,A,M),Hr(()=>fe.enter(ae),G);else{const{leave:B,delayLeave:xe,afterLeave:Ie}=fe,ze=()=>n(ae,A,M),Ye=()=>{B(ae,()=>{ze(),Ie&&Ie()})};xe?xe(ae,ze,Ye):Ye()}else n(ae,A,M)},we=(k,A,M,U=!1,G=!1)=>{const{type:ae,props:Ae,ref:fe,children:_e,dynamicChildren:ie,shapeFlag:W,patchFlag:B,dirs:xe}=k;if(fe!=null&&x_(fe,null,M,k,!0),W&256){A.ctx.deactivate(k);return}const Ie=W&1&&xe,ze=!Ul(k);let Ye;if(ze&&(Ye=Ae&&Ae.onVnodeBeforeUnmount)&&ti(Ye,A,k),W&6)je(k.component,M,U);else{if(W&128){k.suspense.unmount(M,U);return}Ie&&us(k,null,A,"beforeUnmount"),W&64?k.type.remove(k,A,M,G,De,U):ie&&(ae!==$t||B>0&&B&64)?Ge(ie,A,M,!1,!0):(ae===$t&&B&384||!G&&W&16)&&Ge(_e,A,M),U&&Pe(k)}(ze&&(Ye=Ae&&Ae.onVnodeUnmounted)||Ie)&&Hr(()=>{Ye&&ti(Ye,A,k),Ie&&us(k,null,A,"unmounted")},M)},Pe=k=>{const{type:A,el:M,anchor:U,transition:G}=k;if(A===$t){Ce(M,U);return}if(A===Sd){E(k);return}const ae=()=>{i(M),G&&!G.persisted&&G.afterLeave&&G.afterLeave()};if(k.shapeFlag&1&&G&&!G.persisted){const{leave:Ae,delayLeave:fe}=G,_e=()=>Ae(M,ae);fe?fe(k.el,ae,_e):_e()}else ae()},Ce=(k,A)=>{let M;for(;k!==A;)M=y(k),i(k),k=M;i(A)},je=(k,A,M)=>{const{bum:U,scope:G,update:ae,subTree:Ae,um:fe}=k;U&&Bl(U),G.stop(),ae&&(ae.active=!1,we(Ae,k,A,M)),fe&&Hr(fe,A),Hr(()=>{k.isUnmounted=!0},A),A&&A.pendingBranch&&!A.isUnmounted&&k.asyncDep&&!k.asyncResolved&&k.suspenseId===A.pendingId&&(A.deps--,A.deps===0&&A.resolve())},Ge=(k,A,M,U=!1,G=!1,ae=0)=>{for(let Ae=ae;Aek.shapeFlag&6?ee(k.component.subTree):k.shapeFlag&128?k.suspense.next():y(k.anchor||k.el);let le=!1;const ue=(k,A,M)=>{k==null?A._vnode&&we(A._vnode,null,null,!0):p(A._vnode||null,k,A,null,null,null,M),le||(le=!0,Rw(),AC(),le=!1),A._vnode=k},De={p,um:we,m:se,r:Pe,mt:be,mc:R,pc:Se,pbc:z,n:ee,o:t};let Ke,it;return{render:ue,hydrate:Ke,createApp:lF(ue,Ke)}}function hg({type:t,props:e},r){return r==="svg"&&t==="foreignObject"||r==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:r}function fs({effect:t,update:e},r){t.allowRecurse=e.allowRecurse=r}function vF(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function h0(t,e,r=!1){const n=t.children,i=e.children;if(Xe(n)&&Xe(i))for(let o=0;o>1,t[r[l]]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}function JC(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:JC(e)}const _F=t=>t.__isTeleport,Ad=t=>t&&(t.disabled||t.disabled===""),Hw=t=>typeof SVGElement<"u"&&t instanceof SVGElement,Ww=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,w_=(t,e)=>{const r=t&&t.to;return dr(r)?e?e(r):null:r},yF={name:"Teleport",__isTeleport:!0,process(t,e,r,n,i,o,a,l,d,u){const{mc:f,pc:g,pbc:y,o:{insert:x,querySelector:m,createText:p,createComment:_}}=u,v=Ad(e.props);let{shapeFlag:b,children:w,dynamicChildren:E}=e;if(t==null){const C=e.el=p(""),S=e.anchor=p("");x(C,r,n),x(S,r,n);const P=e.target=w_(e.props,m),R=e.targetAnchor=p("");P&&(x(R,P),a==="svg"||Hw(P)?a="svg":(a==="mathml"||Ww(P))&&(a="mathml"));const D=(z,j)=>{b&16&&f(w,z,j,i,o,a,l,d)};v?D(r,S):P&&D(P,R)}else{e.el=t.el;const C=e.anchor=t.anchor,S=e.target=t.target,P=e.targetAnchor=t.targetAnchor,R=Ad(t.props),D=R?r:S,z=R?C:P;if(a==="svg"||Hw(S)?a="svg":(a==="mathml"||Ww(S))&&(a="mathml"),E?(y(t.dynamicChildren,E,D,i,o,a,l),h0(t,e,!0)):d||g(t,e,D,z,i,o,a,l,!1),v)R?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):ch(e,r,C,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const j=e.target=w_(e.props,m);j&&ch(e,j,null,u,0)}else R&&ch(e,S,P,u,1)}ZC(e)},remove(t,e,r,n,{um:i,o:{remove:o}},a){const{shapeFlag:l,children:d,anchor:u,targetAnchor:f,target:g,props:y}=t;if(g&&o(f),a&&o(u),l&16){const x=a||!Ad(y);for(let m=0;m0?wi||zl:null,xF(),Zd>0&&wi&&wi.push(t),t}function te(t,e,r,n,i,o){return e3(N(t,e,r,n,i,o,!0))}function or(t,e,r,n,i){return e3($e(t,e,r,n,i,!0))}function Jl(t){return t?t.__v_isVNode===!0:!1}function ya(t,e){return t.type===e.type&&t.key===e.key}const t3=({key:t})=>t??null,Mh=({ref:t,ref_key:e,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?dr(t)||Xt(t)||lt(t)?{i:Tr,r:t,k:e,f:!!r}:t:null);function N(t,e=null,r=null,n=0,i=null,o=t===$t?0:1,a=!1,l=!1){const d={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&t3(e),ref:e&&Mh(e),scopeId:Up,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:Tr};return l?(m0(d,r),o&128&&t.normalize(d)):r&&(d.shapeFlag|=dr(r)?8:16),Zd>0&&!a&&wi&&(d.patchFlag>0||o&6)&&d.patchFlag!==32&&wi.push(d),d}const $e=wF;function wF(t,e=null,r=null,n=0,i=null,o=!1){if((!t||t===$C)&&(t=Mn),Jl(t)){const l=ko(t,e,!0);return r&&m0(l,r),Zd>0&&!o&&wi&&(l.shapeFlag&6?wi[wi.indexOf(t)]=l:wi.push(l)),l.patchFlag|=-2,l}if(OF(t)&&(t=t.__vccOpts),e){e=TF(e);let{class:l,style:d}=e;l&&!dr(l)&&(e.class=Dn(l)),Ht(d)&&(yC(d)&&!Xe(d)&&(d=yr({},d)),e.style=Pa(d))}const a=dr(t)?1:OC(t)?128:_F(t)?64:Ht(t)?4:lt(t)?2:0;return N(t,e,r,n,i,a,o,!0)}function TF(t){return t?yC(t)||WC(t)?yr({},t):t:null}function ko(t,e,r=!1,n=!1){const{props:i,ref:o,patchFlag:a,children:l,transition:d}=t,u=e?r3(i||{},e):i,f={__v_isVNode:!0,__v_skip:!0,type:t.type,props:u,key:u&&t3(u),ref:e&&e.ref?r&&o?Xe(o)?o.concat(Mh(e)):[o,Mh(e)]:Mh(e):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:l,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==$t?a===-1?16:a|16:a,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:d,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&ko(t.ssContent),ssFallback:t.ssFallback&&ko(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return d&&n&&(f.transition=d.clone(f)),f}function ai(t=" ",e=0){return $e(xu,null,t,e)}function EF(t,e){const r=$e(Sd,null,t);return r.staticCount=e,r}function kt(t="",e=!1){return e?(Y(),or(Mn,null,t)):$e(Mn,null,t)}function Ni(t){return t==null||typeof t=="boolean"?$e(Mn):Xe(t)?$e($t,null,t.slice()):typeof t=="object"?ua(t):$e(xu,null,String(t))}function ua(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:ko(t)}function m0(t,e){let r=0;const{shapeFlag:n}=t;if(e==null)e=null;else if(Xe(e))r=16;else if(typeof e=="object")if(n&65){const i=e.default;i&&(i._c&&(i._d=!1),m0(t,i()),i._c&&(i._d=!0));return}else{r=32;const i=e._;!i&&!WC(e)?e._ctx=Tr:i===3&&Tr&&(Tr.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else lt(e)?(e={default:e,_ctx:Tr},r=32):(e=String(e),n&64?(r=16,e=[ai(e)]):r=8);t.children=e,t.shapeFlag|=r}function r3(...t){const e={};for(let r=0;rMr||Tr;let rp,T_;{const t=tC(),e=(r,n)=>{let i;return(i=t[r])||(i=t[r]=[]),i.push(n),o=>{i.length>1?i.forEach(a=>a(o)):i[0](o)}};rp=e("__VUE_INSTANCE_SETTERS__",r=>Mr=r),T_=e("__VUE_SSR_SETTERS__",r=>Qp=r)}const wu=t=>{const e=Mr;return rp(t),t.scope.on(),()=>{t.scope.off(),rp(e)}},Qw=()=>{Mr&&Mr.scope.off(),rp(null)};function n3(t){return t.vnode.shapeFlag&4}let Qp=!1;function SF(t,e=!1){e&&T_(e);const{props:r,children:n}=t.vnode,i=n3(t);cF(t,r,i,e),fF(t,n);const o=i?IF(t,e):void 0;return e&&T_(!1),o}function IF(t,e){const r=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,ZM);const{setup:n}=r;if(n){const i=t.setupContext=n.length>1?o3(t):null,o=wu(t);ja();const a=Aa(n,t,0,[t.props,i]);if(Ha(),o(),X4(a)){if(a.then(Qw,Qw),e)return a.then(l=>{Kw(t,l,e)}).catch(l=>{Bp(l,t,0)});t.asyncDep=a}else Kw(t,a,e)}else i3(t,e)}function Kw(t,e,r){lt(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Ht(e)&&(t.setupState=TC(e)),i3(t,r)}let Yw;function i3(t,e,r){const n=t.type;if(!t.render){if(!e&&Yw&&!n.render){const i=n.template||u0(t).template;if(i){const{isCustomElement:o,compilerOptions:a}=t.appContext.config,{delimiters:l,compilerOptions:d}=n,u=yr(yr({isCustomElement:o,delimiters:l},a),d);n.render=Yw(i,u)}}t.render=n.render||ni}{const i=wu(t);ja();try{rF(t)}finally{Ha(),i()}}}const $F={get(t,e){return Tn(t,"get",""),t[e]}};function o3(t){const e=r=>{t.exposed=r||{}};return{attrs:new Proxy(t.attrs,$F),slots:t.slots,emit:t.emit,expose:e}}function Kp(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(TC(zp(t.exposed)),{get(e,r){if(r in e)return e[r];if(r in kd)return kd[r](t)},has(e,r){return r in e||r in kd}}))}function E_(t,e=!0){return lt(t)?t.displayName||t.name:t.name||e&&t.__name}function OF(t){return lt(t)&&"__vccOpts"in t}const At=(t,e)=>bM(t,e,Qp);function ji(t,e,r){const n=arguments.length;return n===2?Ht(e)&&!Xe(e)?Jl(e)?$e(t,null,[e]):$e(t,e):$e(t,null,e):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&Jl(r)&&(r=[r]),$e(t,e,r))}const PF="3.4.27";const RF="http://www.w3.org/2000/svg",DF="http://www.w3.org/1998/Math/MathML",fa=typeof document<"u"?document:null,Xw=fa&&fa.createElement("template"),LF={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==="svg"?fa.createElementNS(RF,t):e==="mathml"?fa.createElementNS(DF,t):fa.createElement(t,r?{is:r}:void 0);return t==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:t=>fa.createTextNode(t),createComment:t=>fa.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>fa.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{Xw.innerHTML=n==="svg"?`${t}`:n==="mathml"?`${t}`:t;const l=Xw.content;if(n==="svg"||n==="mathml"){const d=l.firstChild;for(;d.firstChild;)l.appendChild(d.firstChild);l.removeChild(d)}e.insertBefore(l,r)}return[a?a.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}},ea="transition",id="animation",Zl=Symbol("_vtc"),Yp=(t,{slots:e})=>ji(jM,s3(t),e);Yp.displayName="Transition";const a3={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},MF=Yp.props=yr({},DC,a3),hs=(t,e=[])=>{Xe(t)?t.forEach(r=>r(...e)):t&&t(...e)},Jw=t=>t?Xe(t)?t.some(e=>e.length>1):t.length>1:!1;function s3(t){const e={};for(const q in t)q in a3||(e[q]=t[q]);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:l=`${r}-enter-to`,appearFromClass:d=o,appearActiveClass:u=a,appearToClass:f=l,leaveFromClass:g=`${r}-leave-from`,leaveActiveClass:y=`${r}-leave-active`,leaveToClass:x=`${r}-leave-to`}=t,m=FF(i),p=m&&m[0],_=m&&m[1],{onBeforeEnter:v,onEnter:b,onEnterCancelled:w,onLeave:E,onLeaveCancelled:C,onBeforeAppear:S=v,onAppear:P=b,onAppearCancelled:R=w}=e,D=(q,J,be)=>{aa(q,J?f:l),aa(q,J?u:a),be&&be()},z=(q,J)=>{q._isLeaving=!1,aa(q,g),aa(q,x),aa(q,y),J&&J()},j=q=>(J,be)=>{const Oe=q?P:b,ge=()=>D(J,q,be);hs(Oe,[J,ge]),Zw(()=>{aa(J,q?d:o),po(J,q?f:l),Jw(Oe)||eT(J,n,p,ge)})};return yr(e,{onBeforeEnter(q){hs(v,[q]),po(q,o),po(q,a)},onBeforeAppear(q){hs(S,[q]),po(q,d),po(q,u)},onEnter:j(!1),onAppear:j(!0),onLeave(q,J){q._isLeaving=!0;const be=()=>z(q,J);po(q,g),po(q,y),c3(),Zw(()=>{q._isLeaving&&(aa(q,g),po(q,x),Jw(E)||eT(q,n,_,be))}),hs(E,[q,be])},onEnterCancelled(q){D(q,!1),hs(w,[q])},onAppearCancelled(q){D(q,!0),hs(R,[q])},onLeaveCancelled(q){z(q),hs(C,[q])}})}function FF(t){if(t==null)return null;if(Ht(t))return[pg(t.enter),pg(t.leave)];{const e=pg(t);return[e,e]}}function pg(t){return jL(t)}function po(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t[Zl]||(t[Zl]=new Set)).add(e)}function aa(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.remove(n));const r=t[Zl];r&&(r.delete(e),r.size||(t[Zl]=void 0))}function Zw(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let NF=0;function eT(t,e,r,n){const i=t._endId=++NF,o=()=>{i===t._endId&&n()};if(r)return setTimeout(o,r);const{type:a,timeout:l,propCount:d}=l3(t,e);if(!a)return n();const u=a+"end";let f=0;const g=()=>{t.removeEventListener(u,y),o()},y=x=>{x.target===t&&++f>=d&&g()};setTimeout(()=>{f(r[m]||"").split(", "),i=n(`${ea}Delay`),o=n(`${ea}Duration`),a=tT(i,o),l=n(`${id}Delay`),d=n(`${id}Duration`),u=tT(l,d);let f=null,g=0,y=0;e===ea?a>0&&(f=ea,g=a,y=o.length):e===id?u>0&&(f=id,g=u,y=d.length):(g=Math.max(a,u),f=g>0?a>u?ea:id:null,y=f?f===ea?o.length:d.length:0);const x=f===ea&&/\b(transform|all)(,|$)/.test(n(`${ea}Property`).toString());return{type:f,timeout:g,propCount:y,hasTransform:x}}function tT(t,e){for(;t.lengthrT(r)+rT(t[n])))}function rT(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function c3(){return document.body.offsetHeight}function zF(t,e,r){const n=t[Zl];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):r?t.setAttribute("class",e):t.className=e}const np=Symbol("_vod"),d3=Symbol("_vsh"),bn={beforeMount(t,{value:e},{transition:r}){t[np]=t.style.display==="none"?"":t.style.display,r&&e?r.beforeEnter(t):od(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),od(t,!0),n.enter(t)):n.leave(t,()=>{od(t,!1)}):od(t,e))},beforeUnmount(t,{value:e}){od(t,e)}};function od(t,e){t.style.display=e?t[np]:"none",t[d3]=!e}const u3=Symbol("");function qF(t){const e=Ki();if(!e)return;const r=e.ut=(i=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(o=>C_(o,i))},n=()=>{const i=t(e.proxy);k_(e.subTree,i),r(i)};Qr(()=>{BM(n);const i=new MutationObserver(n);i.observe(e.subTree.el.parentNode,{childList:!0}),Wa(()=>i.disconnect())})}function k_(t,e){if(t.shapeFlag&128){const r=t.suspense;t=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{k_(r.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)C_(t.el,e);else if(t.type===$t)t.children.forEach(r=>k_(r,e));else if(t.type===Sd){let{el:r,anchor:n}=t;for(;r&&(C_(r,e),r!==n);)r=r.nextSibling}}function C_(t,e){if(t.nodeType===1){const r=t.style;let n="";for(const i in e)r.setProperty(`--${i}`,e[i]),n+=`--${i}: ${e[i]};`;r[u3]=n}}const BF=/(^|;)\s*display\s*:/;function VF(t,e,r){const n=t.style,i=dr(r);let o=!1;if(r&&!i){if(e)if(dr(e))for(const a of e.split(";")){const l=a.slice(0,a.indexOf(":")).trim();r[l]==null&&Fh(n,l,"")}else for(const a in e)r[a]==null&&Fh(n,a,"");for(const a in r)a==="display"&&(o=!0),Fh(n,a,r[a])}else if(i){if(e!==r){const a=n[u3];a&&(r+=";"+a),n.cssText=r,o=BF.test(r)}}else e&&t.removeAttribute("style");np in t&&(t[np]=o?n.display:"",t[d3]&&(n.display="none"))}const nT=/\s*!important$/;function Fh(t,e,r){if(Xe(r))r.forEach(n=>Fh(t,e,n));else if(r==null&&(r=""),e.startsWith("--"))t.setProperty(e,r);else{const n=UF(t,e);nT.test(r)?t.setProperty(js(n),r.replace(nT,""),"important"):t[n]=r}}const iT=["Webkit","Moz","ms"],mg={};function UF(t,e){const r=mg[e];if(r)return r;let n=Ui(e);if(n!=="filter"&&n in t)return mg[e]=n;n=Fp(n);for(let i=0;ivg||(KF.then(()=>vg=0),vg=Date.now());function XF(t,e){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;oi(JF(n,r.value),e,5,[n])};return r.value=t,r.attached=YF(),r}function JF(t,e){if(Xe(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 lT=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,ZF=(t,e,r,n,i,o,a,l,d)=>{const u=i==="svg";e==="class"?zF(t,n,u):e==="style"?VF(t,r,n):Lp(e)?Gb(e)||GF(t,e,r,n,a):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):eN(t,e,n,u))?HF(t,e,n,o,a,l,d):(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),jF(t,e,n,u))};function eN(t,e,r,n){if(n)return!!(e==="innerHTML"||e==="textContent"||e in t&&lT(e)&<(r));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=t.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return lT(e)&&dr(r)?!1:e in t}const f3=new WeakMap,h3=new WeakMap,ip=Symbol("_moveCb"),cT=Symbol("_enterCb"),p3={name:"TransitionGroup",props:yr({},MF,{tag:String,moveClass:String}),setup(t,{slots:e}){const r=Ki(),n=RC();let i,o;return Gp(()=>{if(!i.length)return;const a=t.moveClass||`${t.name||"v"}-move`;if(!aN(i[0].el,r.vnode.el,a))return;i.forEach(nN),i.forEach(iN);const l=i.filter(oN);c3(),l.forEach(d=>{const u=d.el,f=u.style;po(u,a),f.transform=f.webkitTransform=f.transitionDuration="";const g=u[ip]=y=>{y&&y.target!==u||(!y||/transform$/.test(y.propertyName))&&(u.removeEventListener("transitionend",g),u[ip]=null,aa(u,a))};u.addEventListener("transitionend",g)})}),()=>{const a=St(t),l=s3(a);let d=a.tag||$t;if(i=[],o)for(let u=0;udelete t.mode;p3.props;const rN=p3;function nN(t){const e=t.el;e[ip]&&e[ip](),e[cT]&&e[cT]()}function iN(t){h3.set(t,t.el.getBoundingClientRect())}function oN(t){const e=f3.get(t),r=h3.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 aN(t,e,r){const n=t.cloneNode(),i=t[Zl];i&&i.forEach(l=>{l.split(/\s+/).forEach(d=>d&&n.classList.remove(d))}),r.split(/\s+/).forEach(l=>l&&n.classList.add(l)),n.style.display="none";const o=e.nodeType===1?e:e.parentNode;o.appendChild(n);const{hasTransform:a}=l3(n);return o.removeChild(n),a}const Ra=t=>{const e=t.props["onUpdate:modelValue"]||!1;return Xe(e)?r=>Bl(e,r):e};function sN(t){t.target.composing=!0}function dT(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const si=Symbol("_assign"),A_={created(t,{modifiers:{lazy:e,trim:r,number:n}},i){t[si]=Ra(i);const o=n||i.props&&i.props.type==="number";go(t,e?"change":"input",a=>{if(a.target.composing)return;let l=t.value;r&&(l=l.trim()),o&&(l=Xh(l)),t[si](l)}),r&&go(t,"change",()=>{t.value=t.value.trim()}),e||(go(t,"compositionstart",sN),go(t,"compositionend",dT),go(t,"change",dT))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:r,trim:n,number:i}},o){if(t[si]=Ra(o),t.composing)return;const a=(i||t.type==="number")&&!/^0\d/.test(t.value)?Xh(t.value):t.value,l=e??"";a!==l&&(document.activeElement===t&&t.type!=="range"&&(r||n&&t.value.trim()===l)||(t.value=l))}},lN={deep:!0,created(t,e,r){t[si]=Ra(r),go(t,"change",()=>{const n=t._modelValue,i=ec(t),o=t.checked,a=t[si];if(Xe(n)){const l=Yb(n,i),d=l!==-1;if(o&&!d)a(n.concat(i));else if(!o&&d){const u=[...n];u.splice(l,1),a(u)}}else if(gc(n)){const l=new Set(n);o?l.add(i):l.delete(i),a(l)}else a(m3(t,o))})},mounted:uT,beforeUpdate(t,e,r){t[si]=Ra(r),uT(t,e,r)}};function uT(t,{value:e,oldValue:r},n){t._modelValue=e,Xe(e)?t.checked=Yb(e,n.props.value)>-1:gc(e)?t.checked=e.has(n.props.value):e!==r&&(t.checked=Rs(e,m3(t,!0)))}const cN={created(t,{value:e},r){t.checked=Rs(e,r.props.value),t[si]=Ra(r),go(t,"change",()=>{t[si](ec(t))})},beforeUpdate(t,{value:e,oldValue:r},n){t[si]=Ra(n),e!==r&&(t.checked=Rs(e,n.props.value))}},dN={deep:!0,created(t,{value:e,modifiers:{number:r}},n){const i=gc(e);go(t,"change",()=>{const o=Array.prototype.filter.call(t.options,a=>a.selected).map(a=>r?Xh(ec(a)):ec(a));t[si](t.multiple?i?new Set(o):o:o[0]),t._assigning=!0,yo(()=>{t._assigning=!1})}),t[si]=Ra(n)},mounted(t,{value:e,modifiers:{number:r}}){fT(t,e)},beforeUpdate(t,e,r){t[si]=Ra(r)},updated(t,{value:e,modifiers:{number:r}}){t._assigning||fT(t,e)}};function fT(t,e,r){const n=t.multiple,i=Xe(e);if(!(n&&!i&&!gc(e))){for(let o=0,a=t.options.length;oString(f)===String(d)):l.selected=Yb(e,d)>-1}else l.selected=e.has(d);else if(Rs(ec(l),e)){t.selectedIndex!==o&&(t.selectedIndex=o);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function ec(t){return"_value"in t?t._value:t.value}function m3(t,e){const r=e?"_trueValue":"_falseValue";return r in t?t[r]:e}const m1e={created(t,e,r){dh(t,e,r,null,"created")},mounted(t,e,r){dh(t,e,r,null,"mounted")},beforeUpdate(t,e,r,n){dh(t,e,r,n,"beforeUpdate")},updated(t,e,r,n){dh(t,e,r,n,"updated")}};function uN(t,e){switch(t){case"SELECT":return dN;case"TEXTAREA":return A_;default:switch(e){case"checkbox":return lN;case"radio":return cN;default:return A_}}}function dh(t,e,r,n,i){const a=uN(t.tagName,r.props&&r.props.type)[i];a&&a(t,e,r,n)}const fN=["ctrl","shift","alt","meta"],hN={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)=>fN.some(r=>t[`${r}Key`]&&!e.includes(r))},yt=(t,e)=>{const r=t._withMods||(t._withMods={}),n=e.join(".");return r[n]||(r[n]=(i,...o)=>{for(let a=0;a{const r=t._withKeys||(t._withKeys={}),n=e.join(".");return r[n]||(r[n]=i=>{if(!("key"in i))return;const o=js(i.key);if(e.some(a=>a===o||pN[a]===o))return t(i)})},mN=yr({patchProp:ZF},LF);let hT;function v3(){return hT||(hT=pF(mN))}const S_=(...t)=>{v3().render(...t)},vN=(...t)=>{const e=v3().createApp(...t),{mount:r}=e;return e.mount=n=>{const i=_N(n);if(!i)return;const o=e._component;!lt(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.innerHTML="";const a=r(i,!1,gN(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},e};function gN(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function _N(t){return dr(t)?document.querySelector(t):t}var yN=!1;function g3(t,e,r){var n=r||{},i=n.noTrailing,o=i===void 0?!1:i,a=n.noLeading,l=a===void 0?!1:a,d=n.debounceMode,u=d===void 0?void 0:d,f,g=!1,y=0;function x(){f&&clearTimeout(f)}function m(_){var v=_||{},b=v.upcomingOnly,w=b===void 0?!1:b;x(),g=!w}function p(){for(var _=arguments.length,v=new Array(_),b=0;b<_;b++)v[b]=arguments[b];var w=this,E=Date.now()-y;if(g)return;function C(){y=Date.now(),e.apply(w,v)}function S(){f=void 0}!l&&u&&!f&&C(),x(),u===void 0&&E>t?l?(y=Date.now(),o||(f=setTimeout(u?S:C,t))):C():o!==!0&&(f=setTimeout(u?S:C,u===void 0?t-E:t))}return p.cancel=m,p}function bN(t,e,r){var n={},i=n.atBegin,o=i===void 0?!1:i;return g3(t,e,{debounceMode:o!==!1})}var I_=function(t,e){return I_=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])},I_(t,e)};function Yi(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");I_(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Z=function(){return Z=Object.assign||function(e){for(var r,n=1,i=arguments.length;n=0;l--)(a=t[l])&&(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 ha(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 l(f){try{u(n.next(f))}catch(g){a(g)}}function d(f){try{u(n.throw(f))}catch(g){a(g)}}function u(f){f.done?o(f.value):i(f.value).then(l,d)}u((n=n.apply(t,e||[])).next())})}function pa(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:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(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]=wN){var e=console[t]||console.log;return e.apply(console,arguments)}}}(function(t){t.debug=uh("debug"),t.log=uh("log"),t.warn=uh("warn"),t.error=uh("error")})(bs||(bs={}));var v0="3.10.4";function bi(t){try{return t()}catch{}}const $_=bi(function(){return globalThis})||bi(function(){return window})||bi(function(){return self})||bi(function(){return global})||bi(function(){return bi.constructor("return this")()});var mT=new Map;function O_(t){var e=mT.get(t)||1;return mT.set(t,e+1),"".concat(t,":").concat(e,":").concat(Math.random().toString(36).slice(2))}function b3(t,e){e===void 0&&(e=0);var r=O_("stringifyForDisplay");return JSON.stringify(t,function(n,i){return i===void 0?r:i},e).split(JSON.stringify(r)).join("")}function fh(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 CN(t){return w3(t.source,P_(t.source,t.start))}function w3(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,l=e.line===1?r:0,d=e.column+l,u=`${t.name}:${a}:${d} +`,f=n.split(/\r\n|[\n\r]/g),g=f[i];if(g.length>120){const y=Math.floor(d/80),x=d%80,m=[];for(let p=0;p["|",p]),["|","^".padStart(x)],["|",m[y+1]]])}return u+gT([[`${a-1} |`,f[i-1]],[`${a} |`,g],["|","^".padStart(d)],[`${a+1} |`,f[i+1]]])}function gT(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 AN(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 y0 extends Error{constructor(e,...r){var n,i,o;const{nodes:a,source:l,positions:d,path:u,originalError:f,extensions:g}=AN(r);super(e),this.name="GraphQLError",this.path=u??void 0,this.originalError=f??void 0,this.nodes=_T(Array.isArray(a)?a:a?[a]:void 0);const y=_T((n=this.nodes)===null||n===void 0?void 0:n.map(m=>m.loc).filter(m=>m!=null));this.source=l??(y==null||(i=y[0])===null||i===void 0?void 0:i.source),this.positions=d??(y==null?void 0:y.map(m=>m.start)),this.locations=d&&l?d.map(m=>P_(l,m)):y==null?void 0:y.map(m=>P_(m.source,m.start));const x=TN(f==null?void 0:f.extensions)?f==null?void 0:f.extensions:void 0;this.extensions=(o=g??x)!==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,y0):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+=` -`+kN(r.loc));else if(this.source&&this.locations)for(const r of this.locations)e+=` +`+CN(r.loc));else if(this.source&&this.locations)for(const r of this.locations)e+=` -`+u3(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 sT(t){return t===void 0||t.length===0?void 0:t}function Or(t,e,r){return new o0(`Syntax Error: ${r}`,{source:t,positions:[e]})}class AN{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 f3{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 h3={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"]},SN=new Set(Object.keys(h3));function lT(t){const e=t==null?void 0:t.kind;return typeof e=="string"&&SN.has(e)}var El;(function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"})(El||(El={}));var y_;(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"})(y_||(y_={}));var Ue;(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"})(Ue||(Ue={}));function b_(t){return t===9||t===32}function Ud(t){return t>=48&&t<=57}function p3(t){return t>=97&&t<=122||t>=65&&t<=90}function m3(t){return p3(t)||t===95}function IN(t){return p3(t)||Ud(t)||t===95}function $N(t){var e;let r=Number.MAX_SAFE_INTEGER,n=null,i=-1;for(let a=0;al===0?a:a.slice(r)).slice((e=n)!==null&&e!==void 0?e:0,i+1)}function ON(t){let e=0;for(;e1&&n.slice(1).every(x=>x.length===0||b_(x.charCodeAt(0))),a=r.endsWith('\\"""'),l=t.endsWith('"')&&!a,d=t.endsWith("\\"),u=l||d,f=!i||t.length>70||u||o||a;let g="";const y=i&&b_(t.charCodeAt(0));return(f&&!y||o)&&(g+=` +`+w3(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 _T(t){return t===void 0||t.length===0?void 0:t}function Lr(t,e,r){return new y0(`Syntax Error: ${r}`,{source:t,positions:[e]})}class SN{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 T3{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 E3={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"]},IN=new Set(Object.keys(E3));function yT(t){const e=t==null?void 0:t.kind;return typeof e=="string"&&IN.has(e)}var Pl;(function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"})(Pl||(Pl={}));var R_;(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"})(R_||(R_={}));var Ve;(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"})(Ve||(Ve={}));function D_(t){return t===9||t===32}function eu(t){return t>=48&&t<=57}function k3(t){return t>=97&&t<=122||t>=65&&t<=90}function C3(t){return k3(t)||t===95}function $N(t){return k3(t)||eu(t)||t===95}function ON(t){var e;let r=Number.MAX_SAFE_INTEGER,n=null,i=-1;for(let a=0;al===0?a:a.slice(r)).slice((e=n)!==null&&e!==void 0?e:0,i+1)}function PN(t){let e=0;for(;e1&&n.slice(1).every(x=>x.length===0||D_(x.charCodeAt(0))),a=r.endsWith('\\"""'),l=t.endsWith('"')&&!a,d=t.endsWith("\\"),u=l||d,f=!i||t.length>70||u||o||a;let g="";const y=i&&D_(t.charCodeAt(0));return(f&&!y||o)&&(g+=` `),g+=r,(f||u)&&(g+=` -`),'"""'+g+'"""'}var be;(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"})(be||(be={}));class RN{constructor(e){const r=new f3(be.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!==be.EOF)do if(e.next)e=e.next;else{const r=LN(this,e.end);e.next=r,r.prev=e,e=r}while(e.kind===be.COMMENT);return e}}function DN(t){return t===be.BANG||t===be.DOLLAR||t===be.AMP||t===be.PAREN_L||t===be.PAREN_R||t===be.SPREAD||t===be.COLON||t===be.EQUALS||t===be.AT||t===be.BRACKET_L||t===be.BRACKET_R||t===be.BRACE_L||t===be.PIPE||t===be.BRACE_R}function uc(t){return t>=0&&t<=55295||t>=57344&&t<=1114111}function Bp(t,e){return v3(t.charCodeAt(e))&&g3(t.charCodeAt(e+1))}function v3(t){return t>=55296&&t<=56319}function g3(t){return t>=56320&&t<=57343}function Es(t,e){const r=t.source.body.codePointAt(e);if(r===void 0)return be.EOF;if(r>=32&&r<=126){const n=String.fromCodePoint(r);return n==='"'?`'"'`:`"${n}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function gr(t,e,r,n,i){const o=t.line,a=1+r-t.lineStart;return new f3(e,r,n,o,a,i)}function LN(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 BN(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 Or(t.source,e,`Invalid character escape sequence: "${r.slice(e,e+2)}".`)}function UN(t,e){const r=t.source.body,n=r.length;let i=t.lineStart,o=e+3,a=o,l="";const d=[];for(;o_3?"["+KN(t)+"]":"{ "+r.map(([i,o])=>i+": "+Up(o,e)).join(", ")+" }"}function QN(t,e){if(t.length===0)return"[]";if(e.length>_3)return"[Array]";const r=Math.min(jN,t.length),n=t.length-r,i=[];for(let o=0;o1&&i.push(`... ${n} more items`),"["+i.join(", ")+"]"}function KN(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 YN=function(e,r){return e instanceof r};class b3{constructor(e,r="GraphQL request",n={line:1,column:1}){typeof e=="string"||Ah(!1,`Body must be a string. Received: ${y3(e)}.`),this.body=e,this.name=r,this.locationOffset=n,this.locationOffset.line>0||Ah(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Ah(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function XN(t){return YN(t,b3)}function JN(t,e){return new ZN(t,e).parseDocument()}class ZN{constructor(e,r={}){const n=XN(e)?e:new b3(e);this._lexer=new RN(n),this._options=r,this._tokenCounter=0}parseName(){const e=this.expectToken(be.NAME);return this.node(e,{kind:Ue.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:Ue.DOCUMENT,definitions:this.many(be.SOF,this.parseDefinition,be.EOF)})}parseDefinition(){if(this.peek(be.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),r=e?this._lexer.lookahead():this._lexer.token;if(r.kind===be.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 Or(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(be.BRACE_L))return this.node(e,{kind:Ue.OPERATION_DEFINITION,operation:El.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const r=this.parseOperationType();let n;return this.peek(be.NAME)&&(n=this.parseName()),this.node(e,{kind:Ue.OPERATION_DEFINITION,operation:r,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(be.NAME);switch(e.value){case"query":return El.QUERY;case"mutation":return El.MUTATION;case"subscription":return El.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(be.PAREN_L,this.parseVariableDefinition,be.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Ue.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(be.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(be.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(be.DOLLAR),this.node(e,{kind:Ue.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Ue.SELECTION_SET,selections:this.many(be.BRACE_L,this.parseSelection,be.BRACE_R)})}parseSelection(){return this.peek(be.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,r=this.parseName();let n,i;return this.expectOptionalToken(be.COLON)?(n=r,i=this.parseName()):i=r,this.node(e,{kind:Ue.FIELD,alias:n,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(be.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const r=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(be.PAREN_L,r,be.PAREN_R)}parseArgument(e=!1){const r=this._lexer.token,n=this.parseName();return this.expectToken(be.COLON),this.node(r,{kind:Ue.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(be.SPREAD);const r=this.expectOptionalKeyword("on");return!r&&this.peek(be.NAME)?this.node(e,{kind:Ue.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:Ue.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:Ue.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:Ue.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 be.BRACKET_L:return this.parseList(e);case be.BRACE_L:return this.parseObject(e);case be.INT:return this.advanceLexer(),this.node(r,{kind:Ue.INT,value:r.value});case be.FLOAT:return this.advanceLexer(),this.node(r,{kind:Ue.FLOAT,value:r.value});case be.STRING:case be.BLOCK_STRING:return this.parseStringLiteral();case be.NAME:switch(this.advanceLexer(),r.value){case"true":return this.node(r,{kind:Ue.BOOLEAN,value:!0});case"false":return this.node(r,{kind:Ue.BOOLEAN,value:!1});case"null":return this.node(r,{kind:Ue.NULL});default:return this.node(r,{kind:Ue.ENUM,value:r.value})}case be.DOLLAR:if(e)if(this.expectToken(be.DOLLAR),this._lexer.token.kind===be.NAME){const n=this._lexer.token.value;throw Or(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:Ue.STRING,value:e.value,block:e.kind===be.BLOCK_STRING})}parseList(e){const r=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:Ue.LIST,values:this.any(be.BRACKET_L,r,be.BRACKET_R)})}parseObject(e){const r=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:Ue.OBJECT,fields:this.any(be.BRACE_L,r,be.BRACE_R)})}parseObjectField(e){const r=this._lexer.token,n=this.parseName();return this.expectToken(be.COLON),this.node(r,{kind:Ue.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const r=[];for(;this.peek(be.AT);)r.push(this.parseDirective(e));return r}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const r=this._lexer.token;return this.expectToken(be.AT),this.node(r,{kind:Ue.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let r;if(this.expectOptionalToken(be.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(be.BRACKET_R),r=this.node(e,{kind:Ue.LIST_TYPE,type:n})}else r=this.parseNamedType();return this.expectOptionalToken(be.BANG)?this.node(e,{kind:Ue.NON_NULL_TYPE,type:r}):r}parseNamedType(){return this.node(this._lexer.token,{kind:Ue.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(be.STRING)||this.peek(be.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(be.BRACE_L,this.parseOperationTypeDefinition,be.BRACE_R);return this.node(e,{kind:Ue.SCHEMA_DEFINITION,description:r,directives:n,operationTypes:i})}parseOperationTypeDefinition(){const e=this._lexer.token,r=this.parseOperationType();this.expectToken(be.COLON);const n=this.parseNamedType();return this.node(e,{kind:Ue.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:Ue.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:Ue.OBJECT_TYPE_DEFINITION,description:r,name:n,interfaces:i,directives:o,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(be.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(be.BRACE_L,this.parseFieldDefinition,be.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,r=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(be.COLON);const o=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:Ue.FIELD_DEFINITION,description:r,name:n,arguments:i,type:o,directives:a})}parseArgumentDefs(){return this.optionalMany(be.PAREN_L,this.parseInputValueDef,be.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(be.COLON);const i=this.parseTypeReference();let o;this.expectOptionalToken(be.EQUALS)&&(o=this.parseConstValueLiteral());const a=this.parseConstDirectives();return this.node(e,{kind:Ue.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:Ue.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:Ue.UNION_TYPE_DEFINITION,description:r,name:n,directives:i,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(be.EQUALS)?this.delimitedMany(be.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:Ue.ENUM_TYPE_DEFINITION,description:r,name:n,directives:i,values:o})}parseEnumValuesDefinition(){return this.optionalMany(be.BRACE_L,this.parseEnumValueDefinition,be.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,r=this.parseDescription(),n=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:Ue.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 Or(this._lexer.source,this._lexer.token.start,`${rh(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:Ue.INPUT_OBJECT_TYPE_DEFINITION,description:r,name:n,directives:i,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(be.BRACE_L,this.parseInputValueDef,be.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===be.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(be.BRACE_L,this.parseOperationTypeDefinition,be.BRACE_R);if(r.length===0&&n.length===0)throw this.unexpected();return this.node(e,{kind:Ue.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:Ue.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:Ue.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:Ue.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:Ue.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:Ue.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:Ue.INPUT_OBJECT_TYPE_EXTENSION,name:r,directives:n,fields:i})}parseDirectiveDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("directive"),this.expectToken(be.AT);const n=this.parseName(),i=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const a=this.parseDirectiveLocations();return this.node(e,{kind:Ue.DIRECTIVE_DEFINITION,description:r,name:n,arguments:i,repeatable:o,locations:a})}parseDirectiveLocations(){return this.delimitedMany(be.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,r=this.parseName();if(Object.prototype.hasOwnProperty.call(y_,r.value))return r;throw this.unexpected(e)}node(e,r){return this._options.noLocation!==!0&&(r.loc=new AN(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 Or(this._lexer.source,r.start,`Expected ${x3(e)}, found ${rh(r)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e?(this.advanceLexer(),!0):!1}expectKeyword(e){const r=this._lexer.token;if(r.kind===be.NAME&&r.value===e)this.advanceLexer();else throw Or(this._lexer.source,r.start,`Expected "${e}", found ${rh(r)}.`)}expectOptionalKeyword(e){const r=this._lexer.token;return r.kind===be.NAME&&r.value===e?(this.advanceLexer(),!0):!1}unexpected(e){const r=e??this._lexer.token;return Or(this._lexer.source,r.start,`Unexpected ${rh(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!==be.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw Or(this._lexer.source,r.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function rh(t){const e=t.value;return x3(t.kind)+(e!=null?` "${e}"`:"")}function x3(t){return DN(t)?`"${t}"`:t}function e9(t){return`"${t.replace(t9,r9)}"`}const t9=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function r9(t){return n9[t.charCodeAt(0)]}const n9=["\\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"],a0=Object.freeze({});function Vi(t,e,r=h3){const n=new Map;for(const v of Object.values(Ue))n.set(v,i9(e,v));let i,o=Array.isArray(t),a=[t],l=-1,d=[],u=t,f,g;const y=[],x=[];do{l++;const v=l===a.length,b=v&&d.length!==0;if(v){if(f=x.length===0?void 0:y[y.length-1],u=g,g=x.pop(),b)if(o){u=u.slice();let E=0;for(const[C,S]of d){const P=C-E;S===null?(u.splice(P,1),E++):u[P]=S}}else{u=Object.defineProperties({},Object.getOwnPropertyDescriptors(u));for(const[E,C]of d)u[E]=C}l=i.index,a=i.keys,d=i.edits,o=i.inArray,i=i.prev}else if(g){if(f=o?l:a[l],u=g[f],u==null)continue;y.push(f)}let w;if(!Array.isArray(u)){var m,p;lT(u)||Ah(!1,`Invalid AST Node: ${y3(u)}.`);const E=v?(m=n.get(u.kind))===null||m===void 0?void 0:m.leave:(p=n.get(u.kind))===null||p===void 0?void 0:p.enter;if(w=E==null?void 0:E.call(e,u,f,g,y,x),w===a0)break;if(w===!1){if(!v){y.pop();continue}}else if(w!==void 0&&(d.push([f,w]),!v))if(lT(w))u=w;else{y.pop();continue}}if(w===void 0&&b&&d.push([f,u]),v)y.pop();else{var _;i={inArray:o,index:l,keys:a,edits:d,prev:i},o=Array.isArray(u),a=o?u:(_=r[u.kind])!==null&&_!==void 0?_:[],l=-1,d=[],g&&x.push(g),g=u}}while(i!==void 0);return d.length!==0?d[d.length-1][1]:t}function i9(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 w3(t){return Vi(t,a9)}const o9=80,a9={Name:{leave:t=>t.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>Ve(t.definitions,` +`),'"""'+g+'"""'}var ye;(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"})(ye||(ye={}));class DN{constructor(e){const r=new T3(ye.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!==ye.EOF)do if(e.next)e=e.next;else{const r=MN(this,e.end);e.next=r,r.prev=e,e=r}while(e.kind===ye.COMMENT);return e}}function LN(t){return t===ye.BANG||t===ye.DOLLAR||t===ye.AMP||t===ye.PAREN_L||t===ye.PAREN_R||t===ye.SPREAD||t===ye.COLON||t===ye.EQUALS||t===ye.AT||t===ye.BRACKET_L||t===ye.BRACKET_R||t===ye.BRACE_L||t===ye.PIPE||t===ye.BRACE_R}function yc(t){return t>=0&&t<=55295||t>=57344&&t<=1114111}function Xp(t,e){return A3(t.charCodeAt(e))&&S3(t.charCodeAt(e+1))}function A3(t){return t>=55296&&t<=56319}function S3(t){return t>=56320&&t<=57343}function Ds(t,e){const r=t.source.body.codePointAt(e);if(r===void 0)return ye.EOF;if(r>=32&&r<=126){const n=String.fromCodePoint(r);return n==='"'?`'"'`:`"${n}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function xr(t,e,r,n,i){const o=t.line,a=1+r-t.lineStart;return new T3(e,r,n,o,a,i)}function MN(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 VN(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 Lr(t.source,e,`Invalid character escape sequence: "${r.slice(e,e+2)}".`)}function UN(t,e){const r=t.source.body,n=r.length;let i=t.lineStart,o=e+3,a=o,l="";const d=[];for(;oI3?"["+YN(t)+"]":"{ "+r.map(([i,o])=>i+": "+Jp(o,e)).join(", ")+" }"}function KN(t,e){if(t.length===0)return"[]";if(e.length>I3)return"[Array]";const r=Math.min(HN,t.length),n=t.length-r,i=[];for(let o=0;o1&&i.push(`... ${n} more items`),"["+i.join(", ")+"]"}function YN(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 XN=function(e,r){return e instanceof r};class O3{constructor(e,r="GraphQL request",n={line:1,column:1}){typeof e=="string"||Nh(!1,`Body must be a string. Received: ${$3(e)}.`),this.body=e,this.name=r,this.locationOffset=n,this.locationOffset.line>0||Nh(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Nh(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function JN(t){return XN(t,O3)}function ZN(t,e){return new e9(t,e).parseDocument()}class e9{constructor(e,r={}){const n=JN(e)?e:new O3(e);this._lexer=new DN(n),this._options=r,this._tokenCounter=0}parseName(){const e=this.expectToken(ye.NAME);return this.node(e,{kind:Ve.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:Ve.DOCUMENT,definitions:this.many(ye.SOF,this.parseDefinition,ye.EOF)})}parseDefinition(){if(this.peek(ye.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),r=e?this._lexer.lookahead():this._lexer.token;if(r.kind===ye.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 Lr(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(ye.BRACE_L))return this.node(e,{kind:Ve.OPERATION_DEFINITION,operation:Pl.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const r=this.parseOperationType();let n;return this.peek(ye.NAME)&&(n=this.parseName()),this.node(e,{kind:Ve.OPERATION_DEFINITION,operation:r,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(ye.NAME);switch(e.value){case"query":return Pl.QUERY;case"mutation":return Pl.MUTATION;case"subscription":return Pl.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(ye.PAREN_L,this.parseVariableDefinition,ye.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Ve.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(ye.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(ye.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(ye.DOLLAR),this.node(e,{kind:Ve.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Ve.SELECTION_SET,selections:this.many(ye.BRACE_L,this.parseSelection,ye.BRACE_R)})}parseSelection(){return this.peek(ye.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,r=this.parseName();let n,i;return this.expectOptionalToken(ye.COLON)?(n=r,i=this.parseName()):i=r,this.node(e,{kind:Ve.FIELD,alias:n,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(ye.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const r=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(ye.PAREN_L,r,ye.PAREN_R)}parseArgument(e=!1){const r=this._lexer.token,n=this.parseName();return this.expectToken(ye.COLON),this.node(r,{kind:Ve.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(ye.SPREAD);const r=this.expectOptionalKeyword("on");return!r&&this.peek(ye.NAME)?this.node(e,{kind:Ve.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:Ve.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:Ve.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:Ve.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 ye.BRACKET_L:return this.parseList(e);case ye.BRACE_L:return this.parseObject(e);case ye.INT:return this.advanceLexer(),this.node(r,{kind:Ve.INT,value:r.value});case ye.FLOAT:return this.advanceLexer(),this.node(r,{kind:Ve.FLOAT,value:r.value});case ye.STRING:case ye.BLOCK_STRING:return this.parseStringLiteral();case ye.NAME:switch(this.advanceLexer(),r.value){case"true":return this.node(r,{kind:Ve.BOOLEAN,value:!0});case"false":return this.node(r,{kind:Ve.BOOLEAN,value:!1});case"null":return this.node(r,{kind:Ve.NULL});default:return this.node(r,{kind:Ve.ENUM,value:r.value})}case ye.DOLLAR:if(e)if(this.expectToken(ye.DOLLAR),this._lexer.token.kind===ye.NAME){const n=this._lexer.token.value;throw Lr(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:Ve.STRING,value:e.value,block:e.kind===ye.BLOCK_STRING})}parseList(e){const r=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:Ve.LIST,values:this.any(ye.BRACKET_L,r,ye.BRACKET_R)})}parseObject(e){const r=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:Ve.OBJECT,fields:this.any(ye.BRACE_L,r,ye.BRACE_R)})}parseObjectField(e){const r=this._lexer.token,n=this.parseName();return this.expectToken(ye.COLON),this.node(r,{kind:Ve.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const r=[];for(;this.peek(ye.AT);)r.push(this.parseDirective(e));return r}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const r=this._lexer.token;return this.expectToken(ye.AT),this.node(r,{kind:Ve.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let r;if(this.expectOptionalToken(ye.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(ye.BRACKET_R),r=this.node(e,{kind:Ve.LIST_TYPE,type:n})}else r=this.parseNamedType();return this.expectOptionalToken(ye.BANG)?this.node(e,{kind:Ve.NON_NULL_TYPE,type:r}):r}parseNamedType(){return this.node(this._lexer.token,{kind:Ve.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(ye.STRING)||this.peek(ye.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(ye.BRACE_L,this.parseOperationTypeDefinition,ye.BRACE_R);return this.node(e,{kind:Ve.SCHEMA_DEFINITION,description:r,directives:n,operationTypes:i})}parseOperationTypeDefinition(){const e=this._lexer.token,r=this.parseOperationType();this.expectToken(ye.COLON);const n=this.parseNamedType();return this.node(e,{kind:Ve.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:Ve.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:Ve.OBJECT_TYPE_DEFINITION,description:r,name:n,interfaces:i,directives:o,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(ye.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(ye.BRACE_L,this.parseFieldDefinition,ye.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,r=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(ye.COLON);const o=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:Ve.FIELD_DEFINITION,description:r,name:n,arguments:i,type:o,directives:a})}parseArgumentDefs(){return this.optionalMany(ye.PAREN_L,this.parseInputValueDef,ye.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(ye.COLON);const i=this.parseTypeReference();let o;this.expectOptionalToken(ye.EQUALS)&&(o=this.parseConstValueLiteral());const a=this.parseConstDirectives();return this.node(e,{kind:Ve.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:Ve.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:Ve.UNION_TYPE_DEFINITION,description:r,name:n,directives:i,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(ye.EQUALS)?this.delimitedMany(ye.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:Ve.ENUM_TYPE_DEFINITION,description:r,name:n,directives:i,values:o})}parseEnumValuesDefinition(){return this.optionalMany(ye.BRACE_L,this.parseEnumValueDefinition,ye.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,r=this.parseDescription(),n=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:Ve.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 Lr(this._lexer.source,this._lexer.token.start,`${hh(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:Ve.INPUT_OBJECT_TYPE_DEFINITION,description:r,name:n,directives:i,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(ye.BRACE_L,this.parseInputValueDef,ye.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===ye.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(ye.BRACE_L,this.parseOperationTypeDefinition,ye.BRACE_R);if(r.length===0&&n.length===0)throw this.unexpected();return this.node(e,{kind:Ve.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:Ve.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:Ve.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:Ve.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:Ve.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:Ve.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:Ve.INPUT_OBJECT_TYPE_EXTENSION,name:r,directives:n,fields:i})}parseDirectiveDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("directive"),this.expectToken(ye.AT);const n=this.parseName(),i=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const a=this.parseDirectiveLocations();return this.node(e,{kind:Ve.DIRECTIVE_DEFINITION,description:r,name:n,arguments:i,repeatable:o,locations:a})}parseDirectiveLocations(){return this.delimitedMany(ye.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,r=this.parseName();if(Object.prototype.hasOwnProperty.call(R_,r.value))return r;throw this.unexpected(e)}node(e,r){return this._options.noLocation!==!0&&(r.loc=new SN(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 Lr(this._lexer.source,r.start,`Expected ${P3(e)}, found ${hh(r)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e?(this.advanceLexer(),!0):!1}expectKeyword(e){const r=this._lexer.token;if(r.kind===ye.NAME&&r.value===e)this.advanceLexer();else throw Lr(this._lexer.source,r.start,`Expected "${e}", found ${hh(r)}.`)}expectOptionalKeyword(e){const r=this._lexer.token;return r.kind===ye.NAME&&r.value===e?(this.advanceLexer(),!0):!1}unexpected(e){const r=e??this._lexer.token;return Lr(this._lexer.source,r.start,`Unexpected ${hh(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!==ye.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw Lr(this._lexer.source,r.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function hh(t){const e=t.value;return P3(t.kind)+(e!=null?` "${e}"`:"")}function P3(t){return LN(t)?`"${t}"`:t}function t9(t){return`"${t.replace(r9,n9)}"`}const r9=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function n9(t){return i9[t.charCodeAt(0)]}const i9=["\\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"],b0=Object.freeze({});function Hi(t,e,r=E3){const n=new Map;for(const v of Object.values(Ve))n.set(v,o9(e,v));let i,o=Array.isArray(t),a=[t],l=-1,d=[],u=t,f,g;const y=[],x=[];do{l++;const v=l===a.length,b=v&&d.length!==0;if(v){if(f=x.length===0?void 0:y[y.length-1],u=g,g=x.pop(),b)if(o){u=u.slice();let E=0;for(const[C,S]of d){const P=C-E;S===null?(u.splice(P,1),E++):u[P]=S}}else{u=Object.defineProperties({},Object.getOwnPropertyDescriptors(u));for(const[E,C]of d)u[E]=C}l=i.index,a=i.keys,d=i.edits,o=i.inArray,i=i.prev}else if(g){if(f=o?l:a[l],u=g[f],u==null)continue;y.push(f)}let w;if(!Array.isArray(u)){var m,p;yT(u)||Nh(!1,`Invalid AST Node: ${$3(u)}.`);const E=v?(m=n.get(u.kind))===null||m===void 0?void 0:m.leave:(p=n.get(u.kind))===null||p===void 0?void 0:p.enter;if(w=E==null?void 0:E.call(e,u,f,g,y,x),w===b0)break;if(w===!1){if(!v){y.pop();continue}}else if(w!==void 0&&(d.push([f,w]),!v))if(yT(w))u=w;else{y.pop();continue}}if(w===void 0&&b&&d.push([f,u]),v)y.pop();else{var _;i={inArray:o,index:l,keys:a,edits:d,prev:i},o=Array.isArray(u),a=o?u:(_=r[u.kind])!==null&&_!==void 0?_:[],l=-1,d=[],g&&x.push(g),g=u}}while(i!==void 0);return d.length!==0?d[d.length-1][1]:t}function o9(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 R3(t){return Hi(t,s9)}const a9=80,s9={Name:{leave:t=>t.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>Ue(t.definitions,` -`)},OperationDefinition:{leave(t){const e=xt("(",Ve(t.variableDefinitions,", "),")"),r=Ve([t.operation,Ve([t.name,e]),Ve(t.directives," ")]," ");return(r==="query"?"":r+" ")+t.selectionSet}},VariableDefinition:{leave:({variable:t,type:e,defaultValue:r,directives:n})=>t+": "+e+xt(" = ",r)+xt(" ",Ve(n," "))},SelectionSet:{leave:({selections:t})=>vi(t)},Field:{leave({alias:t,name:e,arguments:r,directives:n,selectionSet:i}){const o=xt("",t,": ")+e;let a=o+xt("(",Ve(r,", "),")");return a.length>o9&&(a=o+xt(`( -`,Sh(Ve(r,` +`)},OperationDefinition:{leave(t){const e=Et("(",Ue(t.variableDefinitions,", "),")"),r=Ue([t.operation,Ue([t.name,e]),Ue(t.directives," ")]," ");return(r==="query"?"":r+" ")+t.selectionSet}},VariableDefinition:{leave:({variable:t,type:e,defaultValue:r,directives:n})=>t+": "+e+Et(" = ",r)+Et(" ",Ue(n," "))},SelectionSet:{leave:({selections:t})=>_i(t)},Field:{leave({alias:t,name:e,arguments:r,directives:n,selectionSet:i}){const o=Et("",t,": ")+e;let a=o+Et("(",Ue(r,", "),")");return a.length>a9&&(a=o+Et(`( +`,zh(Ue(r,` `)),` -)`)),Ve([a,Ve(n," "),i]," ")}},Argument:{leave:({name:t,value:e})=>t+": "+e},FragmentSpread:{leave:({name:t,directives:e})=>"..."+t+xt(" ",Ve(e," "))},InlineFragment:{leave:({typeCondition:t,directives:e,selectionSet:r})=>Ve(["...",xt("on ",t),Ve(e," "),r]," ")},FragmentDefinition:{leave:({name:t,typeCondition:e,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${t}${xt("(",Ve(r,", "),")")} on ${e} ${xt("",Ve(n," ")," ")}`+i},IntValue:{leave:({value:t})=>t},FloatValue:{leave:({value:t})=>t},StringValue:{leave:({value:t,block:e})=>e?PN(t):e9(t)},BooleanValue:{leave:({value:t})=>t?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:t})=>t},ListValue:{leave:({values:t})=>"["+Ve(t,", ")+"]"},ObjectValue:{leave:({fields:t})=>"{"+Ve(t,", ")+"}"},ObjectField:{leave:({name:t,value:e})=>t+": "+e},Directive:{leave:({name:t,arguments:e})=>"@"+t+xt("(",Ve(e,", "),")")},NamedType:{leave:({name:t})=>t},ListType:{leave:({type:t})=>"["+t+"]"},NonNullType:{leave:({type:t})=>t+"!"},SchemaDefinition:{leave:({description:t,directives:e,operationTypes:r})=>xt("",t,` -`)+Ve(["schema",Ve(e," "),vi(r)]," ")},OperationTypeDefinition:{leave:({operation:t,type:e})=>t+": "+e},ScalarTypeDefinition:{leave:({description:t,name:e,directives:r})=>xt("",t,` -`)+Ve(["scalar",e,Ve(r," ")]," ")},ObjectTypeDefinition:{leave:({description:t,name:e,interfaces:r,directives:n,fields:i})=>xt("",t,` -`)+Ve(["type",e,xt("implements ",Ve(r," & ")),Ve(n," "),vi(i)]," ")},FieldDefinition:{leave:({description:t,name:e,arguments:r,type:n,directives:i})=>xt("",t,` -`)+e+(dT(r)?xt(`( -`,Sh(Ve(r,` +)`)),Ue([a,Ue(n," "),i]," ")}},Argument:{leave:({name:t,value:e})=>t+": "+e},FragmentSpread:{leave:({name:t,directives:e})=>"..."+t+Et(" ",Ue(e," "))},InlineFragment:{leave:({typeCondition:t,directives:e,selectionSet:r})=>Ue(["...",Et("on ",t),Ue(e," "),r]," ")},FragmentDefinition:{leave:({name:t,typeCondition:e,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${t}${Et("(",Ue(r,", "),")")} on ${e} ${Et("",Ue(n," ")," ")}`+i},IntValue:{leave:({value:t})=>t},FloatValue:{leave:({value:t})=>t},StringValue:{leave:({value:t,block:e})=>e?RN(t):t9(t)},BooleanValue:{leave:({value:t})=>t?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:t})=>t},ListValue:{leave:({values:t})=>"["+Ue(t,", ")+"]"},ObjectValue:{leave:({fields:t})=>"{"+Ue(t,", ")+"}"},ObjectField:{leave:({name:t,value:e})=>t+": "+e},Directive:{leave:({name:t,arguments:e})=>"@"+t+Et("(",Ue(e,", "),")")},NamedType:{leave:({name:t})=>t},ListType:{leave:({type:t})=>"["+t+"]"},NonNullType:{leave:({type:t})=>t+"!"},SchemaDefinition:{leave:({description:t,directives:e,operationTypes:r})=>Et("",t,` +`)+Ue(["schema",Ue(e," "),_i(r)]," ")},OperationTypeDefinition:{leave:({operation:t,type:e})=>t+": "+e},ScalarTypeDefinition:{leave:({description:t,name:e,directives:r})=>Et("",t,` +`)+Ue(["scalar",e,Ue(r," ")]," ")},ObjectTypeDefinition:{leave:({description:t,name:e,interfaces:r,directives:n,fields:i})=>Et("",t,` +`)+Ue(["type",e,Et("implements ",Ue(r," & ")),Ue(n," "),_i(i)]," ")},FieldDefinition:{leave:({description:t,name:e,arguments:r,type:n,directives:i})=>Et("",t,` +`)+e+(xT(r)?Et(`( +`,zh(Ue(r,` `)),` -)`):xt("(",Ve(r,", "),")"))+": "+n+xt(" ",Ve(i," "))},InputValueDefinition:{leave:({description:t,name:e,type:r,defaultValue:n,directives:i})=>xt("",t,` -`)+Ve([e+": "+r,xt("= ",n),Ve(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:t,name:e,interfaces:r,directives:n,fields:i})=>xt("",t,` -`)+Ve(["interface",e,xt("implements ",Ve(r," & ")),Ve(n," "),vi(i)]," ")},UnionTypeDefinition:{leave:({description:t,name:e,directives:r,types:n})=>xt("",t,` -`)+Ve(["union",e,Ve(r," "),xt("= ",Ve(n," | "))]," ")},EnumTypeDefinition:{leave:({description:t,name:e,directives:r,values:n})=>xt("",t,` -`)+Ve(["enum",e,Ve(r," "),vi(n)]," ")},EnumValueDefinition:{leave:({description:t,name:e,directives:r})=>xt("",t,` -`)+Ve([e,Ve(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:t,name:e,directives:r,fields:n})=>xt("",t,` -`)+Ve(["input",e,Ve(r," "),vi(n)]," ")},DirectiveDefinition:{leave:({description:t,name:e,arguments:r,repeatable:n,locations:i})=>xt("",t,` -`)+"directive @"+e+(dT(r)?xt(`( -`,Sh(Ve(r,` +)`):Et("(",Ue(r,", "),")"))+": "+n+Et(" ",Ue(i," "))},InputValueDefinition:{leave:({description:t,name:e,type:r,defaultValue:n,directives:i})=>Et("",t,` +`)+Ue([e+": "+r,Et("= ",n),Ue(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:t,name:e,interfaces:r,directives:n,fields:i})=>Et("",t,` +`)+Ue(["interface",e,Et("implements ",Ue(r," & ")),Ue(n," "),_i(i)]," ")},UnionTypeDefinition:{leave:({description:t,name:e,directives:r,types:n})=>Et("",t,` +`)+Ue(["union",e,Ue(r," "),Et("= ",Ue(n," | "))]," ")},EnumTypeDefinition:{leave:({description:t,name:e,directives:r,values:n})=>Et("",t,` +`)+Ue(["enum",e,Ue(r," "),_i(n)]," ")},EnumValueDefinition:{leave:({description:t,name:e,directives:r})=>Et("",t,` +`)+Ue([e,Ue(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:t,name:e,directives:r,fields:n})=>Et("",t,` +`)+Ue(["input",e,Ue(r," "),_i(n)]," ")},DirectiveDefinition:{leave:({description:t,name:e,arguments:r,repeatable:n,locations:i})=>Et("",t,` +`)+"directive @"+e+(xT(r)?Et(`( +`,zh(Ue(r,` `)),` -)`):xt("(",Ve(r,", "),")"))+(n?" repeatable":"")+" on "+Ve(i," | ")},SchemaExtension:{leave:({directives:t,operationTypes:e})=>Ve(["extend schema",Ve(t," "),vi(e)]," ")},ScalarTypeExtension:{leave:({name:t,directives:e})=>Ve(["extend scalar",t,Ve(e," ")]," ")},ObjectTypeExtension:{leave:({name:t,interfaces:e,directives:r,fields:n})=>Ve(["extend type",t,xt("implements ",Ve(e," & ")),Ve(r," "),vi(n)]," ")},InterfaceTypeExtension:{leave:({name:t,interfaces:e,directives:r,fields:n})=>Ve(["extend interface",t,xt("implements ",Ve(e," & ")),Ve(r," "),vi(n)]," ")},UnionTypeExtension:{leave:({name:t,directives:e,types:r})=>Ve(["extend union",t,Ve(e," "),xt("= ",Ve(r," | "))]," ")},EnumTypeExtension:{leave:({name:t,directives:e,values:r})=>Ve(["extend enum",t,Ve(e," "),vi(r)]," ")},InputObjectTypeExtension:{leave:({name:t,directives:e,fields:r})=>Ve(["extend input",t,Ve(e," "),vi(r)]," ")}};function Ve(t,e=""){var r;return(r=t==null?void 0:t.filter(n=>n).join(e))!==null&&r!==void 0?r:""}function vi(t){return xt(`{ -`,Sh(Ve(t,` +)`):Et("(",Ue(r,", "),")"))+(n?" repeatable":"")+" on "+Ue(i," | ")},SchemaExtension:{leave:({directives:t,operationTypes:e})=>Ue(["extend schema",Ue(t," "),_i(e)]," ")},ScalarTypeExtension:{leave:({name:t,directives:e})=>Ue(["extend scalar",t,Ue(e," ")]," ")},ObjectTypeExtension:{leave:({name:t,interfaces:e,directives:r,fields:n})=>Ue(["extend type",t,Et("implements ",Ue(e," & ")),Ue(r," "),_i(n)]," ")},InterfaceTypeExtension:{leave:({name:t,interfaces:e,directives:r,fields:n})=>Ue(["extend interface",t,Et("implements ",Ue(e," & ")),Ue(r," "),_i(n)]," ")},UnionTypeExtension:{leave:({name:t,directives:e,types:r})=>Ue(["extend union",t,Ue(e," "),Et("= ",Ue(r," | "))]," ")},EnumTypeExtension:{leave:({name:t,directives:e,values:r})=>Ue(["extend enum",t,Ue(e," "),_i(r)]," ")},InputObjectTypeExtension:{leave:({name:t,directives:e,fields:r})=>Ue(["extend input",t,Ue(e," "),_i(r)]," ")}};function Ue(t,e=""){var r;return(r=t==null?void 0:t.filter(n=>n).join(e))!==null&&r!==void 0?r:""}function _i(t){return Et(`{ +`,zh(Ue(t,` `)),` -}`)}function xt(t,e,r=""){return e!=null&&e!==""?t+e+r:""}function Sh(t){return xt(" ",t.replace(/\n/g,` - `))}function dT(t){var e;return(e=t==null?void 0:t.some(r=>r.includes(` -`)))!==null&&e!==void 0?e:!1}function uT(t){return t.kind===Ue.FIELD||t.kind===Ue.FRAGMENT_SPREAD||t.kind===Ue.INLINE_FRAGMENT}function uu(t,e){var r=t.directives;return!r||!r.length?!0:c9(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],it(a!==void 0,68,i.name.value)):a=o.value.value,i.name.value==="skip"?!a:a})}function Vd(t,e,r){var n=new Set(t),i=n.size;return Vi(e,{Directive:function(o){if(n.delete(o.name.value)&&(!r||!n.size))return a0}}),r?!n.size:n.sizeObject.create(null),{forEach:u9,slice:fT}=Array.prototype,{hasOwnProperty:f9}=Object.prototype;let fc=class T3{constructor(e=!0,r=d9){this.weakness=e,this.makeData=r}lookup(){return this.lookupArray(arguments)}lookupArray(e){let r=this;return u9.call(e,n=>r=r.getChildTrie(n)),f9.call(r,"data")?r.data:r.data=this.makeData(fT.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let r=this;for(let n=0,i=e.length;r&&n=0});function lr(t){return t!==null&&typeof t=="object"}function p9(t,e){var r=e,n=[];t.definitions.forEach(function(o){if(o.kind==="OperationDefinition")throw ln(72,o.operation,o.name?" named '".concat(o.name.value,"'"):"");o.kind==="FragmentDefinition"&&n.push(o)}),typeof r>"u"&&(it(n.length===1,73,n.length),r=n[0].name.value);var i=ee(ee({},t),{definitions:Ti([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],t.definitions,!0)});return i}function jp(t){t===void 0&&(t=[]);var e={};return t.forEach(function(r){e[r.name.value]=r}),e}function Hp(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 it(n,74,r),n||null}default:return null}}function m9(){}class x_{constructor(e=1/0,r=m9){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}get size(){return this.map.size}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}}function w_(){}const v9=w_,g9=typeof WeakRef<"u"?WeakRef:function(t){return{deref:()=>t}},_9=typeof WeakMap<"u"?WeakMap:Map,y9=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:w_,unregister:w_}},b9=10024;class Kh{constructor(e=1/0,r=v9){this.max=e,this.dispose=r,this.map=new _9,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const n=this.unfinalizedNodes.values();for(let i=0;i0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new y9(this.deleteNode.bind(this))}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.scheduleFinalization(n),this.map.set(e,n),this.size++,n.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;const r=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,r),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),r&&this.map.delete(r)}delete(e){const r=this.map.get(e);return r?(this.deleteNode(r),!0):!1}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}var ag=new WeakSet;function C3(t){t.size<=(t.max||-1)||ag.has(t)||(ag.add(t),setTimeout(function(){t.clean(),ag.delete(t)},100))}var A3=function(t,e){var r=new Kh(t,e);return r.set=function(n,i){var o=Kh.prototype.set.call(this,n,i);return C3(this),o},r},x9=function(t,e){var r=new x_(t,e);return r.set=function(n,i){var o=x_.prototype.set.call(this,n,i);return C3(this),o},r},w9=Symbol.for("apollo.cacheSize"),wo=ee({},v_[w9]),as={};function S3(t,e){as[t]=e}var T9=globalThis.__DEV__!==!1?A9:void 0,E9=globalThis.__DEV__!==!1?S9:void 0,k9=globalThis.__DEV__!==!1?I3:void 0;function C9(){var t={parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4};return Object.fromEntries(Object.entries(t).map(function(e){var r=e[0],n=e[1];return[r,wo[r]||n]}))}function A9(){var t,e,r,n,i;if(globalThis.__DEV__===!1)throw new Error("only supported in development mode");return{limits:C9(),sizes:ee({print:(t=as.print)===null||t===void 0?void 0:t.call(as),parser:(e=as.parser)===null||e===void 0?void 0:e.call(as),canonicalStringify:(r=as.canonicalStringify)===null||r===void 0?void 0:r.call(as),links:E_(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:O3(this.queryManager.documentTransform)}},(i=(n=this.cache).getMemoryInternals)===null||i===void 0?void 0:i.call(n))}}function I3(){return{cache:{fragmentQueryDocuments:la(this.getFragmentDoc)}}}function S9(){var t=this.config.fragments;return ee(ee({},I3.apply(this)),{addTypenameDocumentTransform:O3(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:la(this.storeReader.executeSelectionSet),executeSubSelectedArray:la(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:la(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:la(t==null?void 0:t.findFragmentSpreads),lookup:la(t==null?void 0:t.lookup),transform:la(t==null?void 0:t.transform)}})}function I9(t){return!!t&&"dirtyKey"in t}function la(t){return I9(t)?t.size:void 0}function $3(t){return t!=null}function O3(t){return T_(t).map(function(e){return{cache:e}})}function T_(t){return t?Ti(Ti([la(t==null?void 0:t.performWork)],T_(t==null?void 0:t.left),!0),T_(t==null?void 0:t.right),!0).filter($3):[]}function E_(t){var e;return t?Ti(Ti([(e=t==null?void 0:t.getMemoryInternals)===null||e===void 0?void 0:e.call(t)],E_(t==null?void 0:t.left),!0),E_(t==null?void 0:t.right),!0).filter($3):[]}var xa=Object.assign(function(e){return JSON.stringify(e,$9)},{reset:function(){kl=new x9(wo.canonicalStringify||1e3)}});globalThis.__DEV__!==!1&&S3("canonicalStringify",function(){return kl.size});var kl;xa.reset();function $9(t,e){if(e&&typeof e=="object"){var r=Object.getPrototypeOf(e);if(r===Object.prototype||r===null){var n=Object.keys(e);if(n.every(O9))return e;var i=JSON.stringify(n),o=kl.get(i);if(!o){n.sort();var a=JSON.stringify(n);o=kl.get(a)||n,kl.set(i,o),kl.set(a,o)}var l=Object.create(r);return o.forEach(function(d){l[d]=e[d]}),l}}return e}function O9(t,e,r){return e===0||r[e-1]<=t}function Fl(t){return{__ref:String(t)}}function Ft(t){return!!(t&&typeof t=="object"&&typeof t.__ref=="string")}function P9(t){return lr(t)&&t.kind==="Document"&&Array.isArray(t.definitions)}function R9(t){return t.kind==="StringValue"}function D9(t){return t.kind==="BooleanValue"}function L9(t){return t.kind==="IntValue"}function M9(t){return t.kind==="FloatValue"}function F9(t){return t.kind==="Variable"}function N9(t){return t.kind==="ObjectValue"}function z9(t){return t.kind==="ListValue"}function q9(t){return t.kind==="EnumValue"}function B9(t){return t.kind==="NullValue"}function Gl(t,e,r,n){if(L9(r)||M9(r))t[e.value]=Number(r.value);else if(D9(r)||R9(r))t[e.value]=r.value;else if(N9(r)){var i={};r.fields.map(function(a){return Gl(i,a.name,a.value,n)}),t[e.value]=i}else if(F9(r)){var o=(n||{})[r.name.value];t[e.value]=o}else if(z9(r))t[e.value]=r.values.map(function(a){var l={};return Gl(l,e,a,n),l[e.value]});else if(q9(r))t[e.value]=r.value;else if(B9(r))t[e.value]=null;else throw ln(83,e.value,r.kind)}function U9(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,l=o.value;return Gl(r[i.name.value],a,l,e)})}));var n=null;return t.arguments&&t.arguments.length&&(n={},t.arguments.forEach(function(i){var o=i.name,a=i.value;return Gl(n,o,a,e)})),P3(t.name.value,n,r)}var V9=["connection","include","skip","client","rest","export","nonreactive"],Qc=xa,P3=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(l){i[l]=e[l]}),"".concat(r.connection.key,"(").concat(Qc(i),")")}else return r.connection.key;var o=t;if(e){var a=Qc(e);o+="(".concat(a,")")}return r&&Object.keys(r).forEach(function(l){V9.indexOf(l)===-1&&(r[l]&&Object.keys(r[l]).length?o+="@".concat(l,"(").concat(Qc(r[l]),")"):o+="@".concat(l))}),o},{setStringify:function(t){var e=Qc;return Qc=t,e}});function Wp(t,e){if(t.arguments&&t.arguments.length){var r={};return t.arguments.forEach(function(n){var i=n.name,o=n.value;return Gl(r,i,o,e)}),r}return null}function Sa(t){return t.alias?t.alias.value:t.name.value}function k_(t,e,r){for(var n,i=0,o=e.selections;iObject.create(null),{forEach:G9,slice:Q9}=Array.prototype,{hasOwnProperty:K9}=Object.prototype;class l0{constructor(e=!0,r=W9){this.weakness=e,this.makeData=r}lookup(...e){return this.lookupArray(e)}lookupArray(e){let r=this;return G9.call(e,n=>r=r.getChildTrie(n)),K9.call(r,"data")?r.data:r.data=this.makeData(Q9.call(e))}peek(...e){return this.peekArray(e)}peekArray(e){let r=this;for(let n=0,i=e.length;r&&ne.push(r)),e};function d0(t){const{unsubscribe:e}=t;typeof e=="function"&&(t.unsubscribe=void 0,e())}const jd=[],ez=100;function Ql(t,e){if(!t)throw new Error(e||"assertion failure")}function D3(t,e){const r=t.length;return r>0&&r===e.length&&t[r-1]===e[r-1]}function L3(t){switch(t.length){case 0:throw new Error("unknown value");case 1:return t[0];case 2:throw t[1]}}function M3(t){return t.slice(0)}class Yp{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,++Yp.count}peek(){if(this.value.length===1&&!$a(this))return gT(this),this.value[0]}recompute(e){return Ql(!this.recomputing,"already recomputing"),gT(this),$a(this)?tz(this,e):L3(this.value)}setDirty(){this.dirty||(this.dirty=!0,F3(this),d0(this))}dispose(){this.setDirty(),U3(this),u0(this,(e,r)=>{e.setDirty(),V3(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=jd.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(c0(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),jd.push(this.deps),this.deps=null)}}Yp.count=0;function gT(t){const e=Kp.getValue();if(e)return t.parents.add(e),e.childValues.has(t)||e.childValues.set(t,[]),$a(t)?z3(e,t):q3(e,t),e}function tz(t,e){return U3(t),Kp.withValue(t,rz,[t,e]),iz(t,e)&&nz(t),L3(t.value)}function rz(t,e){t.recomputing=!0;const{normalizeResult:r}=t;let n;r&&t.value.length===1&&(n=M3(t.value)),t.value.length=0;try{if(t.value[0]=t.fn.apply(null,e),r&&n&&!D3(n,t.value))try{t.value[0]=r(t.value[0],n[0])}catch{}}catch(i){t.value[1]=i}t.recomputing=!1}function $a(t){return t.dirty||!!(t.dirtyChildren&&t.dirtyChildren.size)}function nz(t){t.dirty=!1,!$a(t)&&N3(t)}function F3(t){u0(t,z3)}function N3(t){u0(t,q3)}function u0(t,e){const r=t.parents.size;if(r){const n=c0(t.parents);for(let i=0;i0&&t.childValues.forEach((e,r)=>{V3(t,r)}),t.forgetDeps(),Ql(t.dirtyChildren===null)}function V3(t,e){e.parents.delete(t),t.childValues.delete(e),B3(t,e)}function iz(t,e){if(typeof t.subscribe=="function")try{d0(t),t.unsubscribe=t.subscribe.apply(null,e)}catch{return t.setDirty(),!1}return!0}const oz={setDirty:!0,dispose:!0,forget:!0};function j3(t){const e=new Map;function r(n){const i=Kp.getValue();if(i){let o=e.get(n);o||e.set(n,o=new Set),i.dependOn(o)}}return r.dirty=function(i,o){const a=e.get(i);if(a){const l=o&&Z9.call(oz,o)?o:"setDirty";c0(a).forEach(d=>d[l]()),e.delete(i),d0(a)}},r}let _T;function az(...t){return(_T||(_T=new l0(typeof WeakMap=="function"))).lookupArray(t)}const lg=new Set;function Hd(t,{max:e=Math.pow(2,16),keyArgs:r,makeCacheKey:n=az,normalizeResult:i,subscribe:o,cache:a=x_}=Object.create(null)){const l=typeof a=="function"?new a(e,y=>y.dispose()):a,d=function(){const y=n.apply(null,r?r.apply(null,arguments):arguments);if(y===void 0)return t.apply(null,arguments);let x=l.get(y);x||(l.set(y,x=new Yp(t)),x.normalizeResult=i,x.subscribe=o,x.forget=()=>l.delete(y));const m=x.recompute(Array.prototype.slice.call(arguments));return l.set(y,x),lg.add(l),Kp.hasValue()||(lg.forEach(p=>p.clean()),lg.clear()),m};Object.defineProperty(d,"size",{get:()=>l.size,configurable:!1,enumerable:!1}),Object.freeze(d.options={max:e,keyArgs:r,makeCacheKey:n,normalizeResult:i,subscribe:o,cache:l});function u(y){const x=y&&l.get(y);x&&x.setDirty()}d.dirtyKey=u,d.dirty=function(){u(n.apply(null,arguments))};function f(y){const x=y&&l.get(y);if(x)return x.peek()}d.peekKey=f,d.peek=function(){return f(n.apply(null,arguments))};function g(y){return y?l.delete(y):!1}return d.forgetKey=g,d.forget=function(){return g(n.apply(null,arguments))},d.makeCacheKey=n,d.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(d)}function sz(t){return t}var H3=function(){function t(e,r){r===void 0&&(r=Object.create(null)),this.resultCache=E3?new WeakSet:new Set,this.transform=e,r.getCacheKey&&(this.getCacheKey=r.getCacheKey),this.cached=r.cache!==!1,this.resetCache()}return t.prototype.getCacheKey=function(e){return[e]},t.identity=function(){return new t(sz,{cache:!1})},t.split=function(e,r,n){return n===void 0&&(n=t.identity()),Object.assign(new t(function(i){var o=e(i)?r:n;return o.transformDocument(i)},{cache:!1}),{left:r,right:n})},t.prototype.resetCache=function(){var e=this;if(this.cached){var r=new fc(hc);this.performWork=Hd(t.prototype.performWork.bind(this),{makeCacheKey:function(n){var i=e.getCacheKey(n);if(i)return it(Array.isArray(i),67),r.lookupArray(i)},max:wo["documentTransform.cache"],cache:Kh})}},t.prototype.performWork=function(e){return fu(e),this.transform(e)},t.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var r=this.performWork(e);return this.resultCache.add(r),r},t.prototype.concat=function(e){var r=this;return Object.assign(new t(function(n){return e.transformDocument(r.transformDocument(n))},{cache:!1}),{left:this,right:e})},t}(),_d,Xp=Object.assign(function(t){var e=_d.get(t);return e||(e=w3(t),_d.set(t,e)),e},{reset:function(){_d=new A3(wo.print||2e3)}});Xp.reset();globalThis.__DEV__!==!1&&S3("print",function(){return _d?_d.size:0});var cr=Array.isArray;function ji(t){return Array.isArray(t)&&t.length>0}var yT={kind:Ue.FIELD,name:{kind:Ue.NAME,value:"__typename"}};function W3(t,e){return!t||t.selectionSet.selections.every(function(r){return r.kind===Ue.FRAGMENT_SPREAD&&W3(e[r.name.value],e)})}function lz(t){return W3(hu(t)||H9(t),jp(Gp(t)))?null:t}function cz(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 bT(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 G3(t,e){fu(e);for(var r=bT(""),n=bT(""),i=function(v){for(var b=0,w=void 0;b=0;--a)e.definitions[a].kind===Ue.OPERATION_DEFINITION&&++o;var l=cz(t),d=function(v){return ji(v)&&v.map(l).some(function(b){return b&&b.remove})},u=new Map,f=!1,g={enter:function(v){if(d(v.directives))return f=!0,null}},y=Vi(e,{Field:g,InlineFragment:g,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(v,b,w,E,C){var S=i(C);S&&S.variables.add(v.name.value)}},FragmentSpread:{enter:function(v,b,w,E,C){if(d(v.directives))return f=!0,null;var S=i(C);S&&S.fragmentSpreads.add(v.name.value)}},FragmentDefinition:{enter:function(v,b,w,E){u.set(JSON.stringify(E),v)},leave:function(v,b,w,E){var C=u.get(JSON.stringify(E));if(v===C)return v;if(o>0&&v.selectionSet.selections.every(function(S){return S.kind===Ue.FIELD&&S.name.value==="__typename"}))return n(v.name.value).removed=!0,f=!0,null}},Directive:{leave:function(v){if(l(v))return f=!0,null}}});if(!f)return e;var x=function(v){return v.transitiveVars||(v.transitiveVars=new Set(v.variables),v.removed||v.fragmentSpreads.forEach(function(b){x(n(b)).transitiveVars.forEach(function(w){v.transitiveVars.add(w)})})),v},m=new Set;y.definitions.forEach(function(v){v.kind===Ue.OPERATION_DEFINITION?x(r(v.name&&v.name.value)).fragmentSpreads.forEach(function(b){m.add(b)}):v.kind===Ue.FRAGMENT_DEFINITION&&o===0&&!n(v.name.value).removed&&m.add(v.name.value)}),m.forEach(function(v){x(n(v)).fragmentSpreads.forEach(function(b){m.add(b)})});var p=function(v){return!!(!m.has(v)||n(v).removed)},_={enter:function(v){if(p(v.name.value))return null}};return lz(Vi(y,{FragmentSpread:_,FragmentDefinition:_,OperationDefinition:{leave:function(v){if(v.variableDefinitions){var b=x(r(v.name&&v.name.value)).transitiveVars;if(b.size1)for(var n=new Oa,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 pz(t,e){if(t){if(typeof t=="string")return wT(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 wT(t,e)}}function wT(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r1,l=!1,d=arguments[1],u=d;return new o(function(f){return i.subscribe({next:function(g){var y=!l;if(l=!0,!y||a)try{u=n(u,g)}catch(x){return f.error(x)}else u=g},error:function(g){f.error(g)},complete:function(){if(!l&&!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&&l.splice(y,1),u()}});l.push(g)},error:function(f){a.error(f)},complete:function(){u()}});function u(){d.closed&&l.length===0&&a.complete()}return function(){l.forEach(function(f){return f.unsubscribe()}),d.unsubscribe()}})},e[A_]=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=Yh(n,A_);if(o){var a=o.call(n);if(Object(a)!==a)throw new TypeError(a+" is not an object");return vz(a)&&a.constructor===i?a:new i(function(l){return a.subscribe(l)})}if(m0("iterator")&&(o=Yh(n,mz),o))return new i(function(l){Ih(function(){if(!l.closed){for(var d=hz(o.call(n)),u;!(u=d()).done;){var f=u.value;if(l.next(f),l.closed)return}l.complete()}})});if(Array.isArray(n))return new i(function(l){Ih(function(){if(!l.closed){for(var d=0;d=0;--l){var d=a[l],u=!isNaN(+d),f=u?[]:{};f[d]=o,o=f}r=n.merge(r,o)}),r}function $h(t){var e=O_(t);return ji(e)}function O_(t){var e=ji(t.errors)?t.errors.slice(0):[];return Nl(t)&&ji(t.incremental)&&t.incremental.forEach(function(r){r.errors&&e.push.apply(e,r.errors)}),e}function Yl(){for(var t=[],e=0;e-1;){if(_=void 0,P=[l.slice(0,p),l.slice(p+a.length)],_=P[0],l=P[1],v=_.indexOf(`\r +}`)}function Et(t,e,r=""){return e!=null&&e!==""?t+e+r:""}function zh(t){return Et(" ",t.replace(/\n/g,` + `))}function xT(t){var e;return(e=t==null?void 0:t.some(r=>r.includes(` +`)))!==null&&e!==void 0?e:!1}function wT(t){return t.kind===Ve.FIELD||t.kind===Ve.FRAGMENT_SPREAD||t.kind===Ve.INLINE_FRAGMENT}function Tu(t,e){var r=t.directives;return!r||!r.length?!0:d9(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],at(a!==void 0,68,i.name.value)):a=o.value.value,i.name.value==="skip"?!a:a})}function tu(t,e,r){var n=new Set(t),i=n.size;return Hi(e,{Directive:function(o){if(n.delete(o.name.value)&&(!r||!n.size))return b0}}),r?!n.size:n.sizeObject.create(null),{forEach:f9,slice:TT}=Array.prototype,{hasOwnProperty:h9}=Object.prototype;let bc=class D3{constructor(e=!0,r=u9){this.weakness=e,this.makeData=r}lookup(){return this.lookupArray(arguments)}lookupArray(e){let r=this;return f9.call(e,n=>r=r.getChildTrie(n)),h9.call(r,"data")?r.data:r.data=this.makeData(TT.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let r=this;for(let n=0,i=e.length;r&&n=0});function hr(t){return t!==null&&typeof t=="object"}function m9(t,e){var r=e,n=[];t.definitions.forEach(function(o){if(o.kind==="OperationDefinition")throw fn(72,o.operation,o.name?" named '".concat(o.name.value,"'"):"");o.kind==="FragmentDefinition"&&n.push(o)}),typeof r>"u"&&(at(n.length===1,73,n.length),r=n[0].name.value);var i=Z(Z({},t),{definitions:ki([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],t.definitions,!0)});return i}function em(t){t===void 0&&(t=[]);var e={};return t.forEach(function(r){e[r.name.value]=r}),e}function tm(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 at(n,74,r),n||null}default:return null}}function v9(){}class L_{constructor(e=1/0,r=v9){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}get size(){return this.map.size}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}}function M_(){}const g9=M_,_9=typeof WeakRef<"u"?WeakRef:function(t){return{deref:()=>t}},y9=typeof WeakMap<"u"?WeakMap:Map,b9=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:M_,unregister:M_}},x9=10024;class op{constructor(e=1/0,r=g9){this.max=e,this.dispose=r,this.map=new y9,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const n=this.unfinalizedNodes.values();for(let i=0;i0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new b9(this.deleteNode.bind(this))}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.scheduleFinalization(n),this.map.set(e,n),this.size++,n.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;const r=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,r),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),r&&this.map.delete(r)}delete(e){const r=this.map.get(e);return r?(this.deleteNode(r),!0):!1}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}var yg=new WeakSet;function F3(t){t.size<=(t.max||-1)||yg.has(t)||(yg.add(t),setTimeout(function(){t.clean(),yg.delete(t)},100))}var N3=function(t,e){var r=new op(t,e);return r.set=function(n,i){var o=op.prototype.set.call(this,n,i);return F3(this),o},r},w9=function(t,e){var r=new L_(t,e);return r.set=function(n,i){var o=L_.prototype.set.call(this,n,i);return F3(this),o},r},T9=Symbol.for("apollo.cacheSize"),Co=Z({},$_[T9]),ms={};function z3(t,e){ms[t]=e}var E9=globalThis.__DEV__!==!1?S9:void 0,k9=globalThis.__DEV__!==!1?I9:void 0,C9=globalThis.__DEV__!==!1?q3:void 0;function A9(){var t={parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4};return Object.fromEntries(Object.entries(t).map(function(e){var r=e[0],n=e[1];return[r,Co[r]||n]}))}function S9(){var t,e,r,n,i;if(globalThis.__DEV__===!1)throw new Error("only supported in development mode");return{limits:A9(),sizes:Z({print:(t=ms.print)===null||t===void 0?void 0:t.call(ms),parser:(e=ms.parser)===null||e===void 0?void 0:e.call(ms),canonicalStringify:(r=ms.canonicalStringify)===null||r===void 0?void 0:r.call(ms),links:N_(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:V3(this.queryManager.documentTransform)}},(i=(n=this.cache).getMemoryInternals)===null||i===void 0?void 0:i.call(n))}}function q3(){return{cache:{fragmentQueryDocuments:ma(this.getFragmentDoc)}}}function I9(){var t=this.config.fragments;return Z(Z({},q3.apply(this)),{addTypenameDocumentTransform:V3(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:ma(this.storeReader.executeSelectionSet),executeSubSelectedArray:ma(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:ma(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:ma(t==null?void 0:t.findFragmentSpreads),lookup:ma(t==null?void 0:t.lookup),transform:ma(t==null?void 0:t.transform)}})}function $9(t){return!!t&&"dirtyKey"in t}function ma(t){return $9(t)?t.size:void 0}function B3(t){return t!=null}function V3(t){return F_(t).map(function(e){return{cache:e}})}function F_(t){return t?ki(ki([ma(t==null?void 0:t.performWork)],F_(t==null?void 0:t.left),!0),F_(t==null?void 0:t.right),!0).filter(B3):[]}function N_(t){var e;return t?ki(ki([(e=t==null?void 0:t.getMemoryInternals)===null||e===void 0?void 0:e.call(t)],N_(t==null?void 0:t.left),!0),N_(t==null?void 0:t.right),!0).filter(B3):[]}var Sa=Object.assign(function(e){return JSON.stringify(e,O9)},{reset:function(){Rl=new w9(Co.canonicalStringify||1e3)}});globalThis.__DEV__!==!1&&z3("canonicalStringify",function(){return Rl.size});var Rl;Sa.reset();function O9(t,e){if(e&&typeof e=="object"){var r=Object.getPrototypeOf(e);if(r===Object.prototype||r===null){var n=Object.keys(e);if(n.every(P9))return e;var i=JSON.stringify(n),o=Rl.get(i);if(!o){n.sort();var a=JSON.stringify(n);o=Rl.get(a)||n,Rl.set(i,o),Rl.set(a,o)}var l=Object.create(r);return o.forEach(function(d){l[d]=e[d]}),l}}return e}function P9(t,e,r){return e===0||r[e-1]<=t}function Hl(t){return{__ref:String(t)}}function zt(t){return!!(t&&typeof t=="object"&&typeof t.__ref=="string")}function R9(t){return hr(t)&&t.kind==="Document"&&Array.isArray(t.definitions)}function D9(t){return t.kind==="StringValue"}function L9(t){return t.kind==="BooleanValue"}function M9(t){return t.kind==="IntValue"}function F9(t){return t.kind==="FloatValue"}function N9(t){return t.kind==="Variable"}function z9(t){return t.kind==="ObjectValue"}function q9(t){return t.kind==="ListValue"}function B9(t){return t.kind==="EnumValue"}function V9(t){return t.kind==="NullValue"}function tc(t,e,r,n){if(M9(r)||F9(r))t[e.value]=Number(r.value);else if(L9(r)||D9(r))t[e.value]=r.value;else if(z9(r)){var i={};r.fields.map(function(a){return tc(i,a.name,a.value,n)}),t[e.value]=i}else if(N9(r)){var o=(n||{})[r.name.value];t[e.value]=o}else if(q9(r))t[e.value]=r.values.map(function(a){var l={};return tc(l,e,a,n),l[e.value]});else if(B9(r))t[e.value]=r.value;else if(V9(r))t[e.value]=null;else throw fn(83,e.value,r.kind)}function U9(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,l=o.value;return tc(r[i.name.value],a,l,e)})}));var n=null;return t.arguments&&t.arguments.length&&(n={},t.arguments.forEach(function(i){var o=i.name,a=i.value;return tc(n,o,a,e)})),U3(t.name.value,n,r)}var j9=["connection","include","skip","client","rest","export","nonreactive"],ad=Sa,U3=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(l){i[l]=e[l]}),"".concat(r.connection.key,"(").concat(ad(i),")")}else return r.connection.key;var o=t;if(e){var a=ad(e);o+="(".concat(a,")")}return r&&Object.keys(r).forEach(function(l){j9.indexOf(l)===-1&&(r[l]&&Object.keys(r[l]).length?o+="@".concat(l,"(").concat(ad(r[l]),")"):o+="@".concat(l))}),o},{setStringify:function(t){var e=ad;return ad=t,e}});function rm(t,e){if(t.arguments&&t.arguments.length){var r={};return t.arguments.forEach(function(n){var i=n.name,o=n.value;return tc(r,i,o,e)}),r}return null}function La(t){return t.alias?t.alias.value:t.name.value}function z_(t,e,r){for(var n,i=0,o=e.selections;iObject.create(null),{forEach:Q9,slice:K9}=Array.prototype,{hasOwnProperty:Y9}=Object.prototype;class w0{constructor(e=!0,r=G9){this.weakness=e,this.makeData=r}lookup(...e){return this.lookupArray(e)}lookupArray(e){let r=this;return Q9.call(e,n=>r=r.getChildTrie(n)),Y9.call(r,"data")?r.data:r.data=this.makeData(K9.call(e))}peek(...e){return this.peekArray(e)}peekArray(e){let r=this;for(let n=0,i=e.length;r&&ne.push(r)),e};function E0(t){const{unsubscribe:e}=t;typeof e=="function"&&(t.unsubscribe=void 0,e())}const ru=[],tz=100;function rc(t,e){if(!t)throw new Error(e||"assertion failure")}function H3(t,e){const r=t.length;return r>0&&r===e.length&&t[r-1]===e[r-1]}function W3(t){switch(t.length){case 0:throw new Error("unknown value");case 1:return t[0];case 2:throw t[1]}}function G3(t){return t.slice(0)}class am{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,++am.count}peek(){if(this.value.length===1&&!Fa(this))return ST(this),this.value[0]}recompute(e){return rc(!this.recomputing,"already recomputing"),ST(this),Fa(this)?rz(this,e):W3(this.value)}setDirty(){this.dirty||(this.dirty=!0,Q3(this),E0(this))}dispose(){this.setDirty(),Z3(this),k0(this,(e,r)=>{e.setDirty(),eA(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=ru.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(T0(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),ru.push(this.deps),this.deps=null)}}am.count=0;function ST(t){const e=om.getValue();if(e)return t.parents.add(e),e.childValues.has(t)||e.childValues.set(t,[]),Fa(t)?Y3(e,t):X3(e,t),e}function rz(t,e){return Z3(t),om.withValue(t,nz,[t,e]),oz(t,e)&&iz(t),W3(t.value)}function nz(t,e){t.recomputing=!0;const{normalizeResult:r}=t;let n;r&&t.value.length===1&&(n=G3(t.value)),t.value.length=0;try{if(t.value[0]=t.fn.apply(null,e),r&&n&&!H3(n,t.value))try{t.value[0]=r(t.value[0],n[0])}catch{}}catch(i){t.value[1]=i}t.recomputing=!1}function Fa(t){return t.dirty||!!(t.dirtyChildren&&t.dirtyChildren.size)}function iz(t){t.dirty=!1,!Fa(t)&&K3(t)}function Q3(t){k0(t,Y3)}function K3(t){k0(t,X3)}function k0(t,e){const r=t.parents.size;if(r){const n=T0(t.parents);for(let i=0;i0&&t.childValues.forEach((e,r)=>{eA(t,r)}),t.forgetDeps(),rc(t.dirtyChildren===null)}function eA(t,e){e.parents.delete(t),t.childValues.delete(e),J3(t,e)}function oz(t,e){if(typeof t.subscribe=="function")try{E0(t),t.unsubscribe=t.subscribe.apply(null,e)}catch{return t.setDirty(),!1}return!0}const az={setDirty:!0,dispose:!0,forget:!0};function tA(t){const e=new Map;function r(n){const i=om.getValue();if(i){let o=e.get(n);o||e.set(n,o=new Set),i.dependOn(o)}}return r.dirty=function(i,o){const a=e.get(i);if(a){const l=o&&ez.call(az,o)?o:"setDirty";T0(a).forEach(d=>d[l]()),e.delete(i),E0(a)}},r}let IT;function sz(...t){return(IT||(IT=new w0(typeof WeakMap=="function"))).lookupArray(t)}const xg=new Set;function nu(t,{max:e=Math.pow(2,16),keyArgs:r,makeCacheKey:n=sz,normalizeResult:i,subscribe:o,cache:a=L_}=Object.create(null)){const l=typeof a=="function"?new a(e,y=>y.dispose()):a,d=function(){const y=n.apply(null,r?r.apply(null,arguments):arguments);if(y===void 0)return t.apply(null,arguments);let x=l.get(y);x||(l.set(y,x=new am(t)),x.normalizeResult=i,x.subscribe=o,x.forget=()=>l.delete(y));const m=x.recompute(Array.prototype.slice.call(arguments));return l.set(y,x),xg.add(l),om.hasValue()||(xg.forEach(p=>p.clean()),xg.clear()),m};Object.defineProperty(d,"size",{get:()=>l.size,configurable:!1,enumerable:!1}),Object.freeze(d.options={max:e,keyArgs:r,makeCacheKey:n,normalizeResult:i,subscribe:o,cache:l});function u(y){const x=y&&l.get(y);x&&x.setDirty()}d.dirtyKey=u,d.dirty=function(){u(n.apply(null,arguments))};function f(y){const x=y&&l.get(y);if(x)return x.peek()}d.peekKey=f,d.peek=function(){return f(n.apply(null,arguments))};function g(y){return y?l.delete(y):!1}return d.forgetKey=g,d.forget=function(){return g(n.apply(null,arguments))},d.makeCacheKey=n,d.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(d)}function lz(t){return t}var rA=function(){function t(e,r){r===void 0&&(r=Object.create(null)),this.resultCache=L3?new WeakSet:new Set,this.transform=e,r.getCacheKey&&(this.getCacheKey=r.getCacheKey),this.cached=r.cache!==!1,this.resetCache()}return t.prototype.getCacheKey=function(e){return[e]},t.identity=function(){return new t(lz,{cache:!1})},t.split=function(e,r,n){return n===void 0&&(n=t.identity()),Object.assign(new t(function(i){var o=e(i)?r:n;return o.transformDocument(i)},{cache:!1}),{left:r,right:n})},t.prototype.resetCache=function(){var e=this;if(this.cached){var r=new bc(xc);this.performWork=nu(t.prototype.performWork.bind(this),{makeCacheKey:function(n){var i=e.getCacheKey(n);if(i)return at(Array.isArray(i),67),r.lookupArray(i)},max:Co["documentTransform.cache"],cache:op})}},t.prototype.performWork=function(e){return Eu(e),this.transform(e)},t.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var r=this.performWork(e);return this.resultCache.add(r),r},t.prototype.concat=function(e){var r=this;return Object.assign(new t(function(n){return e.transformDocument(r.transformDocument(n))},{cache:!1}),{left:this,right:e})},t}(),$d,sm=Object.assign(function(t){var e=$d.get(t);return e||(e=R3(t),$d.set(t,e)),e},{reset:function(){$d=new N3(Co.print||2e3)}});sm.reset();globalThis.__DEV__!==!1&&z3("print",function(){return $d?$d.size:0});var pr=Array.isArray;function Wi(t){return Array.isArray(t)&&t.length>0}var $T={kind:Ve.FIELD,name:{kind:Ve.NAME,value:"__typename"}};function nA(t,e){return!t||t.selectionSet.selections.every(function(r){return r.kind===Ve.FRAGMENT_SPREAD&&nA(e[r.name.value],e)})}function cz(t){return nA(ku(t)||W9(t),em(nm(t)))?null:t}function dz(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 OT(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 iA(t,e){Eu(e);for(var r=OT(""),n=OT(""),i=function(v){for(var b=0,w=void 0;b=0;--a)e.definitions[a].kind===Ve.OPERATION_DEFINITION&&++o;var l=dz(t),d=function(v){return Wi(v)&&v.map(l).some(function(b){return b&&b.remove})},u=new Map,f=!1,g={enter:function(v){if(d(v.directives))return f=!0,null}},y=Hi(e,{Field:g,InlineFragment:g,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(v,b,w,E,C){var S=i(C);S&&S.variables.add(v.name.value)}},FragmentSpread:{enter:function(v,b,w,E,C){if(d(v.directives))return f=!0,null;var S=i(C);S&&S.fragmentSpreads.add(v.name.value)}},FragmentDefinition:{enter:function(v,b,w,E){u.set(JSON.stringify(E),v)},leave:function(v,b,w,E){var C=u.get(JSON.stringify(E));if(v===C)return v;if(o>0&&v.selectionSet.selections.every(function(S){return S.kind===Ve.FIELD&&S.name.value==="__typename"}))return n(v.name.value).removed=!0,f=!0,null}},Directive:{leave:function(v){if(l(v))return f=!0,null}}});if(!f)return e;var x=function(v){return v.transitiveVars||(v.transitiveVars=new Set(v.variables),v.removed||v.fragmentSpreads.forEach(function(b){x(n(b)).transitiveVars.forEach(function(w){v.transitiveVars.add(w)})})),v},m=new Set;y.definitions.forEach(function(v){v.kind===Ve.OPERATION_DEFINITION?x(r(v.name&&v.name.value)).fragmentSpreads.forEach(function(b){m.add(b)}):v.kind===Ve.FRAGMENT_DEFINITION&&o===0&&!n(v.name.value).removed&&m.add(v.name.value)}),m.forEach(function(v){x(n(v)).fragmentSpreads.forEach(function(b){m.add(b)})});var p=function(v){return!!(!m.has(v)||n(v).removed)},_={enter:function(v){if(p(v.name.value))return null}};return cz(Hi(y,{FragmentSpread:_,FragmentDefinition:_,OperationDefinition:{leave:function(v){if(v.variableDefinitions){var b=x(r(v.name&&v.name.value)).transitiveVars;if(b.size1)for(var n=new Na,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 mz(t,e){if(t){if(typeof t=="string")return RT(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 RT(t,e)}}function RT(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r1,l=!1,d=arguments[1],u=d;return new o(function(f){return i.subscribe({next:function(g){var y=!l;if(l=!0,!y||a)try{u=n(u,g)}catch(x){return f.error(x)}else u=g},error:function(g){f.error(g)},complete:function(){if(!l&&!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&&l.splice(y,1),u()}});l.push(g)},error:function(f){a.error(f)},complete:function(){u()}});function u(){d.closed&&l.length===0&&a.complete()}return function(){l.forEach(function(f){return f.unsubscribe()}),d.unsubscribe()}})},e[B_]=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=ap(n,B_);if(o){var a=o.call(n);if(Object(a)!==a)throw new TypeError(a+" is not an object");return gz(a)&&a.constructor===i?a:new i(function(l){return a.subscribe(l)})}if(I0("iterator")&&(o=ap(n,vz),o))return new i(function(l){qh(function(){if(!l.closed){for(var d=pz(o.call(n)),u;!(u=d()).done;){var f=u.value;if(l.next(f),l.closed)return}l.complete()}})});if(Array.isArray(n))return new i(function(l){qh(function(){if(!l.closed){for(var d=0;d=0;--l){var d=a[l],u=!isNaN(+d),f=u?[]:{};f[d]=o,o=f}r=n.merge(r,o)}),r}function Bh(t){var e=H_(t);return Wi(e)}function H_(t){var e=Wi(t.errors)?t.errors.slice(0):[];return Wl(t)&&Wi(t.incremental)&&t.incremental.forEach(function(r){r.errors&&e.push.apply(e,r.errors)}),e}function ic(){for(var t=[],e=0;e-1;){if(_=void 0,P=[l.slice(0,p),l.slice(p+a.length)],_=P[0],l=P[1],v=_.indexOf(`\r \r -`),b=jz(_.slice(0,v)),w=b["content-type"],w&&w.toLowerCase().indexOf("application/json")===-1)throw new Error("Unsupported patch content type: application/json is required.");if(E=_.slice(v),E){if(C=nA(t,E),Object.keys(C).length>1||"data"in C||"incremental"in C||"errors"in C||"payload"in C)if(Cz(C)){if(S={},"payload"in C){if(Object.keys(C).length===1&&C.payload===null)return[2];S=ee({},C.payload)}"errors"in C&&(S=ee(ee({},S),{extensions:ee(ee({},"extensions"in S?S.extensions:null),(R={},R[g0]=C.errors,R))})),e(S)}else e(C);else if(Object.keys(C).length===1&&"hasNext"in C&&!C.hasNext)return[2]}p=l.indexOf(a)}return[3,1];case 3:return[2]}})})}function jz(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 nA(t,e){if(t.status>=300){var r=function(){try{return JSON.parse(e)}catch{return e}};tA(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 Hz(t,e){t.result&&t.result.errors&&t.result.data&&e.next(t.result),e.error(t)}function iA(t){return function(e){return e.text().then(function(r){return nA(e,r)}).then(function(r){return!Array.isArray(r)&&!IT.call(r,"data")&&!IT.call(r,"errors")&&tA(e,r,"Server response was missing for query '".concat(Array.isArray(t)?t.map(function(n){return n.operationName}):t.operationName,"'.")),r})}}var Xh=function(t,e){var r;try{r=JSON.stringify(t)}catch(i){var n=ln(39,e,i.message);throw n.parseError=i,n}return r},Wz={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},Gz={accept:"*/*","content-type":"application/json"},Qz={method:"POST"},oA={http:Wz,headers:Gz,options:Qz},aA=function(t,e){return e(t)};function sA(t,e){for(var r=[],n=2;n"u")throw ln(37)},Xz=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var t=new AbortController,e=t.signal;return{controller:t,signal:e}},lA=function(t,e){var r=t.getContext(),n=r.uri;return n||(typeof e=="function"?e(t):e||"/graphql")};function Jz(t,e){var r=[],n=function(g,y){r.push("".concat(g,"=").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=Xh(e.variables,"Variables map")}catch(g){return{parseError:g}}n("variables",i)}if(e.extensions){var o=void 0;try{o=Xh(e.extensions,"Extensions map")}catch(g){return{parseError:g}}n("extensions",o)}var a="",l=t,d=t.indexOf("#");d!==-1&&(a=t.substr(d),l=t.substr(0,d));var u=l.indexOf("?")===-1?"?":"&",f=l+u+r.join("&")+a;return{newURI:f}}var $T=_i(function(){return fetch}),Zz=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?aA:i,a=t.includeExtensions,l=t.preserveHeaderCase,d=t.useGETForQueries,u=t.includeUnusedVariables,f=u===void 0?!1:u,g=Aa(t,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);globalThis.__DEV__!==!1&&Yz(n||$T);var y={http:{includeExtensions:a,preserveHeaderCase:l},options:g.fetchOptions,credentials:g.credentials,headers:g.headers};return new pc(function(x){var m=lA(x,r),p=x.getContext(),_={};if(p.clientAwareness){var v=p.clientAwareness,b=v.name,w=v.version;b&&(_["apollographql-client-name"]=b),w&&(_["apollographql-client-version"]=w)}var E=ee(ee({},_),p.headers),C={http:p.http,options:p.fetchOptions,credentials:p.credentials,headers:E};if(Vd(["client"],x.query)){var S=Q3(x.query);if(!S)return Oh(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`."));x.query=S}var P=sA(x,o,oA,y,C),R=P.options,D=P.body;D.variables&&!f&&(D.variables=$z(D.variables,x.query));var z;!R.signal&&typeof AbortController<"u"&&(z=new AbortController,R.signal=z.signal);var j=function(Be){return Be.kind==="OperationDefinition"&&Be.operation==="mutation"},q=function(Be){return Be.kind==="OperationDefinition"&&Be.operation==="subscription"},Z=q(pu(x.query)),we=Vd(["defer"],x.query);if(d&&!x.query.definitions.some(j)&&(R.method="GET"),we||Z){R.headers=R.headers||{};var $e="multipart/mixed;";Z&&we&&globalThis.__DEV__!==!1&&it.warn(38),Z?$e+="boundary=graphql;subscriptionSpec=1.0,application/json":we&&($e+="deferSpec=20220824,application/json"),R.headers.accept=$e}if(R.method==="GET"){var ye=Jz(m,D),ke=ye.newURI,Ie=ye.parseError;if(Ie)return Oh(Ie);m=ke}else try{R.body=Xh(D,"Payload")}catch(Be){return Oh(Be)}return new Gt(function(Be){var Re=n||_i(function(){return fetch})||$T,se=Be.next.bind(Be);return Re(m,R).then(function(Te){var Oe;x.setContext({response:Te});var Ce=(Oe=Te.headers)===null||Oe===void 0?void 0:Oe.get("content-type");return Ce!==null&&/^multipart\/mixed/i.test(Ce)?Vz(Te,se):iA(x)(Te).then(se)}).then(function(){z=void 0,Be.complete()}).catch(function(Te){z=void 0,Hz(Te,Be)}),function(){z&&z.abort()}})})},eq=function(t){Qi(e,t);function e(r){r===void 0&&(r={});var n=t.call(this,Zz(r).request)||this;return n.options=r,n}return e}(pc);const{toString:OT,hasOwnProperty:tq}=Object.prototype,PT=Function.prototype.toString,R_=new Map;function er(t,e){try{return D_(t,e)}finally{R_.clear()}}function D_(t,e){if(t===e)return!0;const r=OT.call(t),n=OT.call(e);if(r!==n)return!1;switch(r){case"[object Array]":if(t.length!==e.length)return!1;case"[object Object]":{if(DT(t,e))return!0;const i=RT(t),o=RT(e),a=i.length;if(a!==o.length)return!1;for(let l=0;l=0&&t.indexOf(e,r)===r}function DT(t,e){let r=R_.get(t);if(r){if(r.has(e))return!0}else R_.set(t,r=new Set);return r.add(e),!1}function cA(t,e,r,n){var i=e.data,o=Aa(e,["data"]),a=r.data,l=Aa(r,["data"]);return er(o,l)&&Ph(pu(t).selectionSet,i,a,{fragmentMap:jp(Gp(t)),variables:n})}function Ph(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),!uu(o,n.variables))||LT(o))return!0;if(Ia(o)){var a=Sa(o),l=e&&e[a],d=r&&r[a],u=o.selectionSet;if(!u)return er(l,d);var f=Array.isArray(l),g=Array.isArray(d);if(f!==g)return!1;if(f&&g){var y=l.length;if(d.length!==y)return!1;for(var x=0;x=0;--d)l.missing=(a={},a[l.path[d]]=l.missing,a)}else l.missing=l.path;return l.__proto__=e.prototype,l}return e}(Error),$r=Object.prototype.hasOwnProperty;function Xc(t){return t==null}function fA(t,e){var r=t.__typename,n=t.id,i=t._id;if(typeof r=="string"&&(e&&(e.keyObject=Xc(n)?Xc(i)?void 0:{_id:i}:{id:n}),Xc(n)&&!Xc(i)&&(n=i),!Xc(n)))return"".concat(r,":").concat(typeof n=="number"||typeof n=="string"?n:JSON.stringify(n))}var hA={dataIdFromObject:fA,addTypename:!0,resultCaching:!0,canonizeResults:!1};function aq(t){return Yl(hA,t)}function pA(t){var e=t.canonizeResults;return e===void 0?hA.canonizeResults:e}function sq(t,e){return Ft(e)?t.get(e.__ref,"__typename"):e&&e.__typename}var mA=/^[_a-z][_0-9a-z]*/i;function Pa(t){var e=t.match(mA);return e?e[0]:t}function L_(t,e,r){return lr(e)?cr(e)?e.every(function(n){return L_(t,n,r)}):t.selections.every(function(n){if(Ia(n)&&uu(n,r)){var i=Sa(n);return $r.call(e,i)&&(!n.selectionSet||L_(n.selectionSet,e[i],r))}return!0}):!1}function Cl(t){return lr(t)&&!Ft(t)&&!cr(t)}function lq(){return new Oa}function vA(t,e){var r=jp(Gp(t));return{fragmentMap:r,lookupFragment:function(n){var i=r[n];return!i&&e&&(i=e.lookup(n)),i||null}}}var Rh=Object.create(null),fg=function(){return Rh},MT=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 $_(Ft(i)?n.get(i.__ref,o):i&&i[o])},this.canRead=function(i){return Ft(i)?n.has(i.__ref):typeof i=="object"},this.toReference=function(i,o){if(typeof i=="string")return Fl(i);if(Ft(i))return i;var a=n.policies.identify(i)[0];if(a){var l=Fl(a);return o&&n.merge(a,i),l}}}return t.prototype.toObject=function(){return ee({},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),$r.call(this.data,e)){var n=this.data[e];if(n&&$r.call(n,r))return n[r]}if(r==="__typename"&&$r.call(this.policies.rootTypenamesById,e))return this.policies.rootTypenamesById[e];if(this instanceof ea)return this.parent.get(e,r)},t.prototype.lookup=function(e,r){if(r&&this.group.depend(e,"__exists"),$r.call(this.data,e))return this.data[e];if(this instanceof ea)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;Ft(e)&&(e=e.__ref),Ft(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){it(typeof i=="string",1);var l=new Oa(dq).merge(o,a);if(this.data[i]=l,l!==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]!==l[u]){d[u]=1;var f=Pa(u);f!==u&&!n.policies.hasKeyArgs(l.__typename,f)&&(d[f]=1),l[u]===void 0&&!(n instanceof ea)&&delete l[u]}}),d.__typename&&!(o&&o.__typename)&&this.policies.rootTypenamesById[i]===l.__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,l=!0,d={DELETE:Rh,INVALIDATE:MT,isReference:Ft,toReference:this.toReference,canRead:this.canRead,readField:function(u,f){return n.policies.readField(typeof u=="string"?{fieldName:u,from:f||Fl(e)}:u,{store:n})}};if(Object.keys(i).forEach(function(u){var f=Pa(u),g=i[u];if(g!==void 0){var y=typeof r=="function"?r:r[u]||r[f];if(y){var x=y===fg?Rh:y($_(g),ee(ee({},d),{fieldName:f,storeFieldName:u,storage:n.getStorage(e,u)}));if(x===MT)n.group.dirty(e,u);else if(x===Rh&&(x=void 0),x!==g&&(o[u]=x,a=!0,g=x,globalThis.__DEV__!==!1)){var m=function(C){if(n.lookup(C.__ref)===void 0)return globalThis.__DEV__!==!1&&it.warn(2,C),!0};if(Ft(x))m(x);else if(Array.isArray(x))for(var p=!1,_=void 0,v=0,b=x;v0){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 ea?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){$r.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 ea;)o=o.parent;i.forEach(function(a){return o.delete(a)})}return i},t.prototype.findChildRefIds=function(e){if(!$r.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){Ft(o)&&(r[o.__ref]=!0),lr(o)&&Object.keys(o).forEach(function(a){var l=o[a];lr(l)&&i.add(l)})})}return this.refs[e]},t.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},t}(),gA=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?j3():null,this.keyMaker=new fc(hc)},t.prototype.depend=function(e,r){if(this.d){this.d(hg(e,r));var n=Pa(r);n!==r&&this.d(hg(e,n)),this.parent&&this.parent.depend(e,r)}},t.prototype.dirty=function(e,r){this.d&&this.d.dirty(hg(e,r),r==="__exists"?"forget":"setDirty")},t}();function hg(t,e){return e+"#"+t}function FT(t,e){bd(t)&&t.group.depend(e,"__exists")}(function(t){var e=function(r){Qi(n,r);function n(i){var o=i.policies,a=i.resultCaching,l=a===void 0?!0:a,d=i.seed,u=r.call(this,o,new gA(l))||this;return u.stump=new cq(u),u.storageTrie=new fc(hc),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 ea=function(t){Qi(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],l=i.lookup(o);l?a?a!==l&&Object.keys(a).forEach(function(d){er(a[d],l[d])||n.group.dirty(o,d)}):(n.group.dirty(o,"__exists"),Object.keys(l).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 ee(ee({},this.parent.toObject()),this.data)},e.prototype.findChildRefIds=function(r){var n=this.parent.findChildRefIds(r);return $r.call(this.data,r)?ee(ee({},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),cq=function(t){Qi(e,t);function e(r){return t.call(this,"EntityStore.Stump",r,function(){},new gA(r.group.caching,r.group))||this}return e.prototype.removeLayer=function(){return this},e.prototype.merge=function(r,n){return this.parent.merge(r,n)},e}(ea);function dq(t,e,r){var n=t[r],i=e[r];return er(n,i)?n:i}function bd(t){return!!(t instanceof Wd&&t.group.caching)}function uq(t){return lr(t)?cr(t)?t.slice(0):ee({__proto__:Object.getPrototypeOf(t)},t):t}var NT=function(){function t(){this.known=new(E3?WeakSet:Set),this.pool=new fc(hc),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return t.prototype.isKnown=function(e){return lr(e)&&this.known.has(e)},t.prototype.pass=function(e){if(lr(e)){var r=uq(e);return this.passes.set(r,e),r}return e},t.prototype.admit=function(e){var r=this;if(lr(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 l=Object.getPrototypeOf(e),d=[l],u=this.sortedKeys(e);d.push(u.json);var f=d.length;u.sorted.forEach(function(x){d.push(r.admit(e[x]))});var a=this.pool.lookupArray(d);if(!a.object){var g=a.object=Object.create(l);this.known.add(g),u.sorted.forEach(function(x,m){g[x]=d[f+m]}),globalThis.__DEV__!==!1&&Object.freeze(g)}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}();function zT(t){return[t.selectionSet,t.objectOrReference,t.context,t.context.canonizeResults]}var fq=function(){function t(e){var r=this;this.knownResults=new(hc?WeakMap:Map),this.config=Yl(e,{addTypename:e.addTypename!==!1,canonizeResults:pA(e)}),this.canon=e.canon||new NT,this.executeSelectionSet=Hd(function(n){var i,o=n.context.canonizeResults,a=zT(n);a[3]=!o;var l=(i=r.executeSelectionSet).peek.apply(i,a);return l?o?ee(ee({},l),{result:r.canon.admit(l.result)}):l:(FT(n.context.store,n.enclosingRef.__ref),r.execSelectionSetImpl(n))},{max:this.config.resultCacheMaxSize||wo["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:zT,makeCacheKey:function(n,i,o,a){if(bd(o.store))return o.store.makeCacheKey(n,Ft(i)?i.__ref:i,o.varString,a)}}),this.executeSubSelectedArray=Hd(function(n){return FT(n.context.store,n.enclosingRef.__ref),r.execSubSelectedArrayImpl(n)},{max:this.config.resultCacheMaxSize||wo["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(n){var i=n.field,o=n.array,a=n.context;if(bd(a.store))return a.store.makeCacheKey(i,o,a.varString)}})}return t.prototype.resetCanon=function(){this.canon=new NT},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,l=e.returnPartialData,d=l===void 0?!0:l,u=e.canonizeResults,f=u===void 0?this.config.canonizeResults:u,g=this.config.cache.policies;a=ee(ee({},s0(R3(n))),a);var y=Fl(o),x=this.executeSelectionSet({selectionSet:pu(n).selectionSet,objectOrReference:y,enclosingRef:y,context:ee({store:r,query:n,policies:g,variables:a,varString:xa(a),canonizeResults:f},vA(n,this.config.fragments))}),m;if(x.missing&&(m=[new uA(hq(x.missing),x.missing,n,a)],!d))throw m[0];return{result:x.result,complete:!m,missing:m}},t.prototype.isFresh=function(e,r,n,i){if(bd(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(Ft(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 l=a.variables,d=a.policies,u=a.store,f=u.getFieldValue(i,"__typename"),g=[],y,x=new Oa;this.config.addTypename&&typeof f=="string"&&!d.rootIdsByTypename[f]&&g.push({__typename:f});function m(w,E){var C;return w.missing&&(y=x.merge(y,(C={},C[E]=w.missing,C))),w.result}var p=new Set(n.selections);p.forEach(function(w){var E,C;if(uu(w,l))if(Ia(w)){var S=d.readField({fieldName:w.name.value,field:w,variables:a.variables,from:i},a),P=Sa(w);S===void 0?f0.added(w)||(y=x.merge(y,(E={},E[P]="Can't find field '".concat(w.name.value,"' on ").concat(Ft(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),E))):cr(S)?S.length>0&&(S=m(r.executeSubSelectedArray({field:w,array:S,enclosingRef:o,context:a}),P)):w.selectionSet?S!=null&&(S=m(r.executeSelectionSet({selectionSet:w.selectionSet,objectOrReference:S,enclosingRef:Ft(S)?S:o,context:a}),P)):a.canonizeResults&&(S=r.canon.pass(S)),S!==void 0&&g.push((C={},C[P]=S,C))}else{var R=Hp(w,a.lookupFragment);if(!R&&w.kind===Ue.FRAGMENT_SPREAD)throw ln(9,w.name.value);R&&d.fragmentMatches(R,f)&&R.selectionSet.selections.forEach(p.add,p)}});var _=Jp(g),v={result:_,missing:y},b=a.canonizeResults?this.canon.admit(v):$_(v);return b.result&&this.knownResults.set(b.result,n),b},t.prototype.execSubSelectedArrayImpl=function(e){var r=this,n=e.field,i=e.array,o=e.enclosingRef,a=e.context,l,d=new Oa;function u(f,g){var y;return f.missing&&(l=d.merge(l,(y={},y[g]=f.missing,y))),f.result}return n.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map(function(f,g){return f===null?null:cr(f)?u(r.executeSubSelectedArray({field:n,array:f,enclosingRef:o,context:a}),g):n.selectionSet?u(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:f,enclosingRef:Ft(f)?f:o,context:a}),g):(globalThis.__DEV__!==!1&&pq(a.store,n,f),f)}),{result:a.canonizeResults?this.canon.admit(i):i,missing:l}},t}();function hq(t){try{JSON.stringify(t,function(e,r){if(typeof r=="string")throw r;return r})}catch(e){return e}}function pq(t,e,r){if(!e.selectionSet){var n=new Set([r]);n.forEach(function(i){lr(i)&&(it(!Ft(i),10,sq(t,i),e.name.value),Object.values(i).forEach(n.add,n))})}}var _0=new Qp,qT=new WeakMap;function xd(t){var e=qT.get(t);return e||qT.set(t,e={vars:new Set,dep:j3()}),e}function BT(t){xd(t).vars.forEach(function(e){return e.forgetCache(t)})}function mq(t){xd(t).vars.forEach(function(e){return e.attachCache(t)})}function vq(t){var e=new Set,r=new Set,n=function(o){if(arguments.length>0){if(t!==o){t=o,e.forEach(function(d){xd(d).dep.dirty(n),gq(d)});var a=Array.from(r);r.clear(),a.forEach(function(d){return d(t)})}}else{var l=_0.getValue();l&&(i(l),xd(l).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),xd(o).vars.add(n),n};return n.forgetCache=function(o){return e.delete(o)},n}function gq(t){t.broadcastWatches&&t.broadcastWatches()}var UT=Object.create(null);function y0(t){var e=JSON.stringify(t);return UT[e]||(UT[e]=Object.create(null))}function VT(t){var e=y0(t);return e.keyFieldsFn||(e.keyFieldsFn=function(r,n){var i=function(a,l){return n.readField(l,a)},o=n.keyObject=b0(t,function(a){var l=zl(n.storeObject,a,i);return l===void 0&&r!==n.storeObject&&$r.call(r,a[0])&&(l=zl(r,a,yA)),it(l!==void 0,4,a.join("."),r),l});return"".concat(n.typename,":").concat(JSON.stringify(o))})}function jT(t){var e=y0(t);return e.keyArgsFn||(e.keyArgsFn=function(r,n){var i=n.field,o=n.variables,a=n.fieldName,l=b0(t,function(u){var f=u[0],g=f.charAt(0);if(g==="@"){if(i&&ji(i.directives)){var y=f.slice(1),x=i.directives.find(function(v){return v.name.value===y}),m=x&&Wp(x,o);return m&&zl(m,u.slice(1))}return}if(g==="$"){var p=f.slice(1);if(o&&$r.call(o,p)){var _=u.slice(0);return _[0]=p,zl(o,_)}return}if(r)return zl(r,u)}),d=JSON.stringify(l);return(r||d!=="{}")&&(a+=":"+d),a})}function b0(t,e){var r=new Oa;return _A(t).reduce(function(n,i){var o,a=e(i);if(a!==void 0){for(var l=i.length-1;l>=0;--l)a=(o={},o[i[l]]=a,o);n=r.merge(n,a)}return n},Object.create(null))}function _A(t){var e=y0(t);if(!e.paths){var r=e.paths=[],n=[];t.forEach(function(i,o){cr(i)?(_A(i).forEach(function(a){return r.push(n.concat(a))}),n.length=0):(n.push(i),cr(t[o+1])||(r.push(n.slice(0)),n.length=0))})}return e.paths}function yA(t,e){return t[e]}function zl(t,e,r){return r=r||yA,bA(e.reduce(function n(i,o){return cr(i)?i.map(function(a){return n(a,o)}):i&&r(i,o)},t))}function bA(t){return lr(t)?cr(t)?t.map(bA):b0(Object.keys(t).sort(),function(e){return zl(t,e)}):t}function M_(t){return t.args!==void 0?t.args:t.field?Wp(t.field,t.variables):null}var _q=function(){},HT=function(t,e){return e.fieldName},WT=function(t,e,r){var n=r.mergeObjects;return n(t,e)},GT=function(t,e){return e},yq=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=ee({dataIdFromObject:fA},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,l=ee(ee({},r),{typename:o,storeObject:a,readField:r&&r.readField||function(){var y=x0(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 g=f(ee(ee({},e),a),l);if(cr(g))f=VT(g);else{d=g;break}}return d=d?String(d):void 0,l.keyObject?[d,l.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,l=i.subscriptionType,d=Aa(i,["queryType","mutationType","subscriptionType"]);o&&r.setRootTypename("Query",n),a&&r.setRootTypename("Mutation",n),l&&r.setRootTypename("Subscription",n),$r.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 l(d,u){d.merge=typeof u=="function"?u:u===!0?WT:u===!1?GT:d.merge}l(i,r.merge),i.keyFn=o===!1?_q:cr(o)?VT(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 g=f.keyArgs,y=f.read,x=f.merge;u.keyFn=g===!1?HT:cr(g)?jT(g):typeof g=="function"?g:u.keyFn,typeof y=="function"&&(u.read=y),l(u,x)}u.read&&u.merge&&(u.keyFn=u.keyFn||HT)})},t.prototype.setRootTypename=function(e,r){r===void 0&&(r=e);var n="ROOT_"+e.toUpperCase(),i=this.rootTypenamesById[n];r!==i&&(it(!i||i===e,5,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(mA);(!o||o[0]!==i)&&r.fuzzySubtypes.set(i,new RegExp(i))})})},t.prototype.getTypePolicy=function(e){var r=this;if(!$r.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,l){if(a.test(e)){var d=r.supertypeMap.get(l);d&&d.forEach(function(u){return i.add(u)})}})),i&&i.size&&i.forEach(function(a){var l=r.getTypePolicy(a),d=l.fields,u=Aa(l,["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 l=this.getSupertypeSet(r,!0),d=[l],u=function(m){var p=o.getSupertypeSet(m,!1);p&&p.size&&d.indexOf(p)<0&&d.push(p)},f=!!(n&&this.fuzzySubtypes.size),g=!1,y=0;y1?i:e}:(a=ee({},n),$r.call(a,"from")||(a.from=e)),globalThis.__DEV__!==!1&&a.from===void 0&&globalThis.__DEV__!==!1&&it.warn(7,c3(Array.from(t))),a.variables===void 0&&(a.variables=r),a}function xA(t){return function(r,n){if(cr(r)||cr(n))throw ln(8);if(lr(r)&&lr(n)){var i=t.getFieldValue(r,"__typename"),o=t.getFieldValue(n,"__typename"),a=i&&o&&i!==o;if(a)return n;if(Ft(r)&&Cl(n))return t.merge(r.__ref,n),r;if(Cl(r)&&Ft(n))return t.merge(r,n.__ref),n;if(Cl(r)&&Cl(n))return ee(ee({},r),n)}return n}}function pg(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:ee(ee({},t),{clientOnly:e,deferred:r})),i}var bq=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,l=r.variables,d=r.overwrite,u=hu(i),f=lq();l=ee(ee({},s0(u)),l);var g=ee(ee({store:e,written:Object.create(null),merge:function(x,m){return f.merge(x,m)},variables:l,varString:xa(l)},vA(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:g});if(!Ft(y))throw ln(11,o);return g.incomingById.forEach(function(x,m){var p=x.storeObject,_=x.mergeTree,v=x.fieldNodeSet,b=Fl(m);if(_&&_.map.size){var w=n.applyMerges(_,b,p,g);if(Ft(w))return;p=w}if(globalThis.__DEV__!==!1&&!g.overwrite){var E=Object.create(null);v.forEach(function(P){P.selectionSet&&(E[P.name.value]=!0)});var C=function(P){return E[Pa(P)]===!0},S=function(P){var R=_&&_.map.get(P);return!!(R&&R.info&&R.info.merge)};Object.keys(p).forEach(function(P){C(P)&&!S(P)&&xq(b,p,P,g.store)})}e.merge(m,p)}),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,l=e.mergeTree,d=this.cache.policies,u=Object.create(null),f=n&&d.rootTypenamesById[n]||k_(i,o,a.fragmentMap)||n&&a.store.get(n,"__typename");typeof f=="string"&&(u.__typename=f);var g=function(){var w=x0(arguments,u,a.variables);if(Ft(w.from)){var E=a.incomingById.get(w.from.__ref);if(E){var C=d.readField(ee(ee({},w),{from:E.storeObject}),a);if(C!==void 0)return C}}return d.readField(w,a)},y=new Set;this.flattenFields(o,i,a,f).forEach(function(w,E){var C,S=Sa(E),P=i[S];if(y.add(E),P!==void 0){var R=d.getStoreFieldName({typename:f,fieldName:E.name.value,field:E,variables:w.variables}),D=KT(l,R),z=r.processFieldValue(P,E,E.selectionSet?pg(w,!1,!1):w,D),j=void 0;E.selectionSet&&(Ft(z)||Cl(z))&&(j=g("__typename",z));var q=d.getMergeFunction(f,E.name.value,j);q?D.info={field:E,typename:f,merge:q}:YT(l,R),u=w.merge(u,(C={},C[R]=z,C))}else globalThis.__DEV__!==!1&&!w.clientOnly&&!w.deferred&&!f0.added(E)&&!d.getReadFunction(f,E.name.value)&&globalThis.__DEV__!==!1&&it.error(12,Sa(E),i)});try{var x=d.identify(i,{typename:f,selectionSet:o,fragmentMap:a.fragmentMap,storeObject:u,readField:g}),m=x[0],p=x[1];n=n||m,p&&(u=a.merge(u,p))}catch(w){if(!n)throw w}if(typeof n=="string"){var _=Fl(n),v=a.written[n]||(a.written[n]=[]);if(v.indexOf(o)>=0||(v.push(o),this.reader&&this.reader.isFresh(i,_,o,a)))return _;var b=a.incomingById.get(n);return b?(b.storeObject=a.merge(b.storeObject,u),b.mergeTree=F_(b.mergeTree,l),y.forEach(function(w){return b.fieldNodeSet.add(w)})):a.incomingById.set(n,{storeObject:u,mergeTree:Jh(l)?void 0:l,fieldNodeSet:y}),_}return u},t.prototype.processFieldValue=function(e,r,n,i){var o=this;return!r.selectionSet||e===null?globalThis.__DEV__!==!1?J3(e):e:cr(e)?e.map(function(a,l){var d=o.processFieldValue(a,r,n,KT(i,l));return YT(i,l),d}):this.processSelectionSet({result:e,selectionSet:r.selectionSet,context:n,mergeTree:i})},t.prototype.flattenFields=function(e,r,n,i){i===void 0&&(i=k_(r,e,n.fragmentMap));var o=new Map,a=this.cache.policies,l=new fc(!1);return function d(u,f){var g=l.lookup(u,f.clientOnly,f.deferred);g.visited||(g.visited=!0,u.selections.forEach(function(y){if(uu(y,n.variables)){var x=f.clientOnly,m=f.deferred;if(!(x&&m)&&ji(y.directives)&&y.directives.forEach(function(v){var b=v.name.value;if(b==="client"&&(x=!0),b==="defer"){var w=Wp(v,n.variables);(!w||w.if!==!1)&&(m=!0)}}),Ia(y)){var p=o.get(y);p&&(x=x&&p.clientOnly,m=m&&p.deferred),o.set(y,pg(n,x,m))}else{var _=Hp(y,n.lookupFragment);if(!_&&y.kind===Ue.FRAGMENT_SPREAD)throw ln(13,y.name.value);_&&a.fragmentMatches(_,i,r,n.variables)&&d(_.selectionSet,pg(n,x,m))}}}))}(e,n),o},t.prototype.applyMerges=function(e,r,n,i,o){var a,l=this;if(e.map.size&&!Ft(n)){var d=!cr(n)&&(Ft(r)||Cl(r))?r:void 0,u=n;d&&!o&&(o=[Ft(d)?d.__ref:d]);var f,g=function(y,x){return cr(y)?typeof x=="number"?y[x]:void 0:i.store.getFieldValue(y,String(x))};e.map.forEach(function(y,x){var m=g(d,x),p=g(u,x);if(p!==void 0){o&&o.push(x);var _=l.applyMerges(y,m,p,i,o);_!==p&&(f=f||new Map,f.set(x,_)),o&&it(o.pop()===x)}}),f&&(n=cr(u)?u.slice(0):ee({},u),f.forEach(function(y,x){n[x]=y}))}return e.info?this.cache.policies.runMergeFunction(r,n,e.info,i,o&&(a=i.store).getStorage.apply(a,o)):n},t}(),wA=[];function KT(t,e){var r=t.map;return r.has(e)||r.set(e,wA.pop()||{map:new Map}),r.get(e)}function F_(t,e){if(t===e||!e||Jh(e))return t;if(!t||Jh(t))return e;var r=t.info&&e.info?ee(ee({},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(l,d){o.map.set(d,F_(l,e.map.get(d))),a.delete(d)}),a.forEach(function(l){o.map.set(l,F_(e.map.get(l),t.map.get(l)))})}return o}function Jh(t){return!t||!(t.info||t.map.size)}function YT(t,e){var r=t.map,n=r.get(e);n&&Jh(n)&&(wA.push(n),r.delete(e))}var XT=new Set;function xq(t,e,r,n){var i=function(g){var y=n.getFieldValue(g,r);return typeof y=="object"&&y},o=i(t);if(o){var a=i(e);if(a&&!Ft(o)&&!er(o,a)&&!Object.keys(o).every(function(g){return n.getFieldValue(a,g)!==void 0})){var l=n.getFieldValue(t,"__typename")||n.getFieldValue(e,"__typename"),d=Pa(r),u="".concat(l,".").concat(d);if(!XT.has(u)){XT.add(u);var f=[];!cr(o)&&!cr(a)&&[o,a].forEach(function(g){var y=n.getFieldValue(g,"__typename");typeof y=="string"&&!f.includes(y)&&f.push(y)}),globalThis.__DEV__!==!1&&it.warn(14,d,l,f.length?"either ensure all objects of type "+f.join(" and ")+" have an ID or a custom merge function, or ":"",u,ee({},o),ee({},a))}}}}var w0=function(t){Qi(e,t);function e(r){r===void 0&&(r={});var n=t.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new H3(f0),n.assumeImmutableResults=!0,n.makeVar=vq,n.txCount=0,n.config=aq(r),n.addTypename=!!n.config.addTypename,n.policies=new yq({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 bq(this,this.storeReader=new fq({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:pA(this.config),canon:r?void 0:i&&i.canon,fragments:o}),o),this.maybeBroadcastWatch=Hd(function(a,l){return n.broadcastWatch(a,l)},{max:this.config.resultCacheMaxSize||wo["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(a){var l=a.optimistic?n.optimisticData:n.data;if(bd(l)){var d=a.optimistic,u=a.id,f=a.variables;return l.makeCacheKey(a.query,a.callback,xa({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(ee(ee({},r),{store:r.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:i})).result||null}catch(o){if(o instanceof uA)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($r.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(ee(ee({},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||mq(this),this.watches.add(r),r.immediate&&this.maybeBroadcastWatch(r),function(){n.watches.delete(r)&&!n.watches.size&&BT(n),n.maybeBroadcastWatch.forget(r)}},e.prototype.gc=function(r){var n;xa.reset(),Xp.reset(),this.addTypenameTransform.resetCache(),(n=this.config.fragments)===null||n===void 0||n.resetCaches();var i=this.optimisticData.gc();return r&&!this.txCount&&(r.resetResultCache?this.resetResultCache(r.resetResultIdentities):r.resetResultIdentities&&this.storeReader.resetCanon()),i},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(Ft(r))return r.__ref;try{return this.policies.identify(r)[0]}catch(n){globalThis.__DEV__!==!1&&it.warn(n)}},e.prototype.evict=function(r){if(!r.id){if($r.call(r,"id"))return!1;r=ee(ee({},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(),xa.reset(),r&&r.discardWatches?(this.watches.forEach(function(i){return n.maybeBroadcastWatch.forget(i)}),this.watches.clear(),BT(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,l=r.removeOptimistic,d=r.onWatchUpdated,u,f=function(y){var x=n,m=x.data,p=x.optimisticData;++n.txCount,y&&(n.data=n.optimisticData=y);try{return u=i(n)}finally{--n.txCount,n.data=m,n.optimisticData=p}},g=new Set;return d&&!this.txCount&&this.broadcastWatches(ee(ee({},r),{onWatchUpdated:function(y){return g.add(y),!1}})),typeof a=="string"?this.optimisticData=this.optimisticData.addLayer(a,f):a===!1?f(this.data):f(),typeof l=="string"&&(this.optimisticData=this.optimisticData.removeLayer(l)),d&&g.size?(this.broadcastWatches(ee(ee({},r),{onWatchUpdated:function(y,x){var m=d.call(this,y,x);return m!==!1&&g.delete(y),m}})),g.size&&g.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||!er(i.result,o.result))&&r.callback(r.lastDiff=o,i)},e}(dA);globalThis.__DEV__!==!1&&(w0.prototype.getMemoryInternals=E9);var Bt;(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"})(Bt||(Bt={}));function Gd(t){return t?t<7:!1}var JT=Object.assign,wq=Object.hasOwnProperty,N_=function(t){Qi(e,t);function e(r){var n=r.queryManager,i=r.queryInfo,o=r.options,a=t.call(this,function(_){try{var v=_._subscription._observer;v&&!v.error&&(v.error=Tq)}catch{}var b=!a.observers.size;a.observers.add(_);var w=a.last;return w&&w.error?_.error&&_.error(w.error):w&&w.result&&_.next&&_.next(w.result),b&&a.reobserve().catch(function(){}),function(){a.observers.delete(_)&&!a.observers.size&&a.tearDownQuery()}})||this;a.observers=new Set,a.subscriptions=new Set,a.queryInfo=i,a.queryManager=n,a.waitForOwnResult=mg(o.fetchPolicy),a.isTornDown=!1;var l=n.defaultOptions.watchQuery,d=l===void 0?{}:l,u=d.fetchPolicy,f=u===void 0?"cache-first":u,g=o.fetchPolicy,y=g===void 0?f:g,x=o.initialFetchPolicy,m=x===void 0?y==="standby"?f:y:x;a.options=ee(ee({},o),{initialFetchPolicy:m,fetchPolicy:y}),a.queryId=i.queryId||n.generateQueryId();var p=hu(a.query);return a.queryName=p&&p.name&&p.name.value,a}return Object.defineProperty(e.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),e.prototype.result=function(){var r=this;return new Promise(function(n,i){var o={next:function(l){n(l),r.observers.delete(o),r.observers.size||r.queryManager.removeQuery(r.queryId),setTimeout(function(){a.unsubscribe()},0)},error:i},a=r.subscribe(o)})},e.prototype.resetDiff=function(){this.queryInfo.resetDiff()},e.prototype.getCurrentResult=function(r){r===void 0&&(r=!0);var n=this.getLastResult(!0),i=this.queryInfo.networkStatus||n&&n.networkStatus||Bt.ready,o=ee(ee({},n),{loading:Gd(i),networkStatus:i}),a=this.options.fetchPolicy,l=a===void 0?"cache-first":a;if(!(mg(l)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers))if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var d=this.queryInfo.getDiff();(d.complete||this.options.returnPartialData)&&(o.data=d.result),er(o.data,{})&&(o.data=void 0),d.complete?(delete o.partial,d.complete&&o.networkStatus===Bt.loading&&(l==="cache-first"||l==="cache-only")&&(o.networkStatus=Bt.ready,o.loading=!1)):o.partial=!0,globalThis.__DEV__!==!1&&!d.complete&&!this.options.partialRefetch&&!o.loading&&!o.data&&!o.error&&EA(d.missing)}return r&&this.updateLastResult(o),o},e.prototype.isDifferentFromLastResult=function(r,n){if(!this.last)return!0;var i=this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!cA(this.query,this.last.result,r,this.variables):!er(this.last.result,r);return i||n&&!er(this.last.variables,n)},e.prototype.getLast=function(r,n){var i=this.last;if(i&&i[r]&&(!n||er(i.variables,this.variables)))return i[r]},e.prototype.getLastResult=function(r){return this.getLast("result",r)},e.prototype.getLastError=function(r){return this.getLast("error",r)},e.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},e.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},e.prototype.refetch=function(r){var n,i={pollInterval:0},o=this.options.fetchPolicy;if(o==="cache-and-network"?i.fetchPolicy=o:o==="no-cache"?i.fetchPolicy="no-cache":i.fetchPolicy="network-only",globalThis.__DEV__!==!1&&r&&wq.call(r,"variables")){var a=R3(this.query),l=a.variableDefinitions;(!l||!l.some(function(d){return d.variable.name.value==="variables"}))&&globalThis.__DEV__!==!1&&it.warn(20,r,((n=a.name)===null||n===void 0?void 0:n.value)||a)}return r&&!er(this.options.variables,r)&&(i.variables=this.options.variables=ee(ee({},this.options.variables),r)),this.queryInfo.resetLastWrite(),this.reobserve(i,Bt.refetch)},e.prototype.fetchMore=function(r){var n=this,i=ee(ee({},r.query?r:ee(ee(ee(ee({},this.options),{query:this.options.query}),r),{variables:ee(ee({},this.options.variables),r.variables)})),{fetchPolicy:"no-cache"});i.query=this.transformDocument(i.query);var o=this.queryManager.generateQueryId();this.lastQuery=r.query?this.transformDocument(this.options.query):i.query;var a=this.queryInfo,l=a.networkStatus;a.networkStatus=Bt.fetchMore,i.notifyOnNetworkStatusChange&&this.observe();var d=new Set;return this.queryManager.fetchQuery(o,i,Bt.fetchMore).then(function(u){return n.queryManager.removeQuery(o),a.networkStatus===Bt.fetchMore&&(a.networkStatus=l),n.queryManager.cache.batch({update:function(f){var g=r.updateQuery;g?f.updateQuery({query:n.query,variables:n.variables,returnPartialData:!0,optimistic:!1},function(y){return g(y,{fetchMoreResult:u.data,variables:i.variables})}):f.writeQuery({query:i.query,variables:i.variables,data:u.data})},onWatchUpdated:function(f){d.add(f.query)}}),u}).finally(function(){d.has(n.query)||TA(n)})},e.prototype.subscribeToMore=function(r){var n=this,i=this.queryManager.startGraphQLSubscription({query:r.document,variables:r.variables,context:r.context}).subscribe({next:function(o){var a=r.updateQuery;a&&n.updateQuery(function(l,d){var u=d.variables;return a(l,{subscriptionData:o,variables:u})})},error:function(o){if(r.onError){r.onError(o);return}globalThis.__DEV__!==!1&&it.error(21,o)}});return this.subscriptions.add(i),function(){n.subscriptions.delete(i)&&i.unsubscribe()}},e.prototype.setOptions=function(r){return this.reobserve(r)},e.prototype.silentSetOptions=function(r){var n=Yl(this.options,r||{});JT(this.options,n)},e.prototype.setVariables=function(r){return er(this.variables,r)?this.observers.size?this.result():Promise.resolve():(this.options.variables=r,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:r},Bt.setVariables):Promise.resolve())},e.prototype.updateQuery=function(r){var n=this.queryManager,i=n.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,o=r(i,{variables:this.variables});o&&(n.cache.writeQuery({query:this.options.query,data:o,variables:this.variables}),n.broadcastQueries())},e.prototype.startPolling=function(r){this.options.pollInterval=r,this.updatePolling()},e.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},e.prototype.applyNextFetchPolicy=function(r,n){if(n.nextFetchPolicy){var i=n.fetchPolicy,o=i===void 0?"cache-first":i,a=n.initialFetchPolicy,l=a===void 0?o:a;o==="standby"||(typeof n.nextFetchPolicy=="function"?n.fetchPolicy=n.nextFetchPolicy(o,{reason:r,options:n,observable:this,initialFetchPolicy:l}):r==="variables-changed"?n.fetchPolicy=l:n.fetchPolicy=n.nextFetchPolicy)}return n.fetchPolicy},e.prototype.fetch=function(r,n,i){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,r,n,i)},e.prototype.updatePolling=function(){var r=this;if(!this.queryManager.ssrMode){var n=this,i=n.pollingInfo,o=n.options.pollInterval;if(!o||!this.hasObservers()){i&&(clearTimeout(i.timeout),delete this.pollingInfo);return}if(!(i&&i.interval===o)){it(o,22);var a=i||(this.pollingInfo={});a.interval=o;var l=function(){var u,f;r.pollingInfo&&(!Gd(r.queryInfo.networkStatus)&&!(!((f=(u=r.options).skipPollAttempt)===null||f===void 0)&&f.call(u))?r.reobserve({fetchPolicy:r.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},Bt.poll).then(d,d):d())},d=function(){var u=r.pollingInfo;u&&(clearTimeout(u.timeout),u.timeout=setTimeout(l,u.interval))};d()}}},e.prototype.updateLastResult=function(r,n){n===void 0&&(n=this.variables);var i=this.getLastError();return i&&this.last&&!er(n,this.last.variables)&&(i=void 0),this.last=ee({result:this.queryManager.assumeImmutableResults?r:J3(r),variables:n},i?{error:i}:null)},e.prototype.reobserveAsConcast=function(r,n){var i=this;this.isTornDown=!1;var o=n===Bt.refetch||n===Bt.fetchMore||n===Bt.poll,a=this.options.variables,l=this.options.fetchPolicy,d=Yl(this.options,r||{}),u=o?d:JT(this.options,d),f=this.transformDocument(u.query);this.lastQuery=f,o||(this.updatePolling(),r&&r.variables&&!er(r.variables,a)&&u.fetchPolicy!=="standby"&&u.fetchPolicy===l&&(this.applyNextFetchPolicy("variables-changed",u),n===void 0&&(n=Bt.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=mg(u.fetchPolicy));var g=function(){i.concast===m&&(i.waitForOwnResult=!1)},y=u.variables&&ee({},u.variables),x=this.fetch(u,n,f),m=x.concast,p=x.fromLink,_={next:function(v){er(i.variables,y)&&(g(),i.reportResult(v,y))},error:function(v){er(i.variables,y)&&(g(),i.reportError(v,y))}};return!o&&(p||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=m,this.observer=_),m.addObserver(_),m},e.prototype.reobserve=function(r,n){return this.reobserveAsConcast(r,n).promise},e.prototype.resubscribeAfterError=function(){for(var r=[],n=0;n0},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);Z3(N_);function TA(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(i,o){return this.nextFetchPolicy=n,typeof this.nextFetchPolicy=="function"?this.nextFetchPolicy(i,o):r}}):t.reobserve()}function Tq(t){globalThis.__DEV__!==!1&&it.error(23,t.message,t.stack)}function EA(t){globalThis.__DEV__!==!1&&t&&globalThis.__DEV__!==!1&&it.debug(24,t)}function mg(t){return t==="network-only"||t==="no-cache"||t==="standby"}var kA=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=xT(r.resolvers,n)}):this.resolvers=xT(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){return aa(this,arguments,void 0,function(r){var n=r.document,i=r.remoteResult,o=r.context,a=r.variables,l=r.onlyRunForcedResolvers,d=l===void 0?!1:l;return sa(this,function(u){return n?[2,this.resolveDocument(n,i.data,o,a,this.fragmentMatcher,d).then(function(f){return ee(ee({},i),{data:f.result})})]:[2,i]})})},t.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},t.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},t.prototype.clientQuery=function(e){return Vd(["client"],e)&&this.resolvers?e:null},t.prototype.serverQuery=function(e){return Q3(e)},t.prototype.prepareContext=function(e){var r=this.cache;return ee(ee({},e),{cache:r,getCacheKey:function(n){return r.identify(n)}})},t.prototype.addExportedVariables=function(e){return aa(this,arguments,void 0,function(r,n,i){return n===void 0&&(n={}),i===void 0&&(i={}),sa(this,function(o){return r?[2,this.resolveDocument(r,this.buildRootValueFromCache(r,n)||{},this.prepareContext(i),n).then(function(a){return ee(ee({},n),a.exportedVariables)})]:[2,ee({},n)]})})},t.prototype.shouldForceResolvers=function(e){var r=!1;return Vi(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 a0}}}),r},t.prototype.buildRootValueFromCache=function(e,r){return this.cache.diff({query:dz(e),variables:r,returnPartialData:!0,optimistic:!1}).result},t.prototype.resolveDocument=function(e,r){return aa(this,arguments,void 0,function(n,i,o,a,l,d){var u,f,g,y,x,m,p,_,v,b,w;return o===void 0&&(o={}),a===void 0&&(a={}),l===void 0&&(l=function(){return!0}),d===void 0&&(d=!1),sa(this,function(E){return u=pu(n),f=Gp(n),g=jp(f),y=this.collectSelectionsToResolve(u,g),x=u.operation,m=x?x.charAt(0).toUpperCase()+x.slice(1):"Query",p=this,_=p.cache,v=p.client,b={fragmentMap:g,context:ee(ee({},o),{cache:_,client:v}),variables:a,fragmentMatcher:l,defaultOperationType:m,exportedVariables:{},selectionsToResolve:y,onlyRunForcedResolvers:d},w=!1,[2,this.resolveSelectionSet(u.selectionSet,w,i,b).then(function(C){return{result:C,exportedVariables:b.exportedVariables}})]})})},t.prototype.resolveSelectionSet=function(e,r,n,i){return aa(this,void 0,void 0,function(){var o,a,l,d,u,f=this;return sa(this,function(g){return o=i.fragmentMap,a=i.context,l=i.variables,d=[n],u=function(y){return aa(f,void 0,void 0,function(){var x,m;return sa(this,function(p){return!r&&!i.selectionsToResolve.has(y)?[2]:uu(y,l)?Ia(y)?[2,this.resolveField(y,r,n,i).then(function(_){var v;typeof _<"u"&&d.push((v={},v[Sa(y)]=_,v))})]:(j9(y)?x=y:(x=o[y.name.value],it(x,18,y.name.value)),x&&x.typeCondition&&(m=x.typeCondition.name.value,i.fragmentMatcher(n,m,a))?[2,this.resolveSelectionSet(x.selectionSet,r,n,i).then(function(_){d.push(_)})]:[2]):[2]})})},[2,Promise.all(e.selections.map(u)).then(function(){return Jp(d)})]})})},t.prototype.resolveField=function(e,r,n,i){return aa(this,void 0,void 0,function(){var o,a,l,d,u,f,g,y,x,m=this;return sa(this,function(p){return n?(o=i.variables,a=e.name.value,l=Sa(e),d=a!==l,u=n[l]||n[a],f=Promise.resolve(u),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(g=n.__typename||i.defaultOperationType,y=this.resolvers&&this.resolvers[g],y&&(x=y[d?a:l],x&&(f=Promise.resolve(_0.withValue(this.cache,x,[n,Wp(e,o),i.context,{field:e,fragmentMap:i.fragmentMap}]))))),[2,f.then(function(_){var v,b;if(_===void 0&&(_=u),e.directives&&e.directives.forEach(function(E){E.name.value==="export"&&E.arguments&&E.arguments.forEach(function(C){C.name.value==="as"&&C.value.kind==="StringValue"&&(i.exportedVariables[C.value.value]=_)})}),!e.selectionSet||_==null)return _;var w=(b=(v=e.directives)===null||v===void 0?void 0:v.some(function(E){return E.name.value==="client"}))!==null&&b!==void 0?b:!1;if(Array.isArray(_))return m.resolveSubSelectedArray(e,r||w,_,i);if(e.selectionSet)return m.resolveSelectionSet(e.selectionSet,r||w,_,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 l=new Set;i.set(a,l),Vi(a,{Directive:function(d,u,f,g,y){d.name.value==="client"&&y.forEach(function(x){n(x)&&uT(x)&&l.add(x)})},FragmentSpread:function(d,u,f,g,y){var x=r[d.name.value];it(x,19,d.name.value);var m=o(x);m.size>0&&(y.forEach(function(p){n(p)&&uT(p)&&l.add(p)}),l.add(d),m.forEach(function(p){l.add(p)}))}})}return i.get(a)}return o(e)},t}(),Al=new(hc?WeakMap:Map);function vg(t,e){var r=t[e];typeof r=="function"&&(t[e]=function(){return Al.set(t,(Al.get(t)+1)%1e15),r.apply(this,arguments)})}function ZT(t){t.notifyTimeout&&(clearTimeout(t.notifyTimeout),t.notifyTimeout=void 0)}var gg=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;Al.has(n)||(Al.set(n,0),vg(n,"evict"),vg(n,"modify"),vg(n,"reset"))}return t.prototype.init=function(e){var r=e.networkStatus||Bt.loading;return this.variables&&this.networkStatus!==Bt.loading&&!er(this.variables,e.variables)&&(r=Bt.setVariables),er(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(){ZT(this),this.dirty=!1},t.prototype.resetDiff=function(){this.lastDiff=void 0},t.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&er(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,i=this.lastDiff&&this.lastDiff.diff;e&&!e.complete&&(!((n=this.observableQuery)===null||n===void 0)&&n.getLastError())||(this.updateLastDiff(e),!this.dirty&&!er(i&&i.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():TA(e)})):delete this.oqListener)},t.prototype.notify=function(){var e=this;ZT(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(Gd(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=ee(ee({},this.getDiffOptions(e)),{watcher:this,callback:function(o){return r.setDiff(o)}});(!this.lastWatch||!er(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===Al.get(this.cache)&&er(r,n.variables)&&er(e.data,n.result.data))},t.prototype.markResult=function(e,r,n,i){var o=this,a=new Oa,l=ji(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&ji(e.incremental)){var d=eA(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=l,n.fetchPolicy==="no-cache"?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):i!==0&&(z_(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:Al.get(o.cache)};else if(o.lastDiff&&o.lastDiff.diff.complete){e.data=o.lastDiff.diff.result;return}var g=o.getDiffOptions(n.variables),y=f.diff(g);!o.stopped&&er(o.variables,n.variables)&&o.updateWatch(n.variables),o.updateLastDiff(y,g),y.complete&&(e.data=y.result)}):this.lastWrite=void 0)},t.prototype.markReady=function(){return this.networkError=null,this.networkStatus=Bt.ready},t.prototype.markError=function(e){return this.networkStatus=Bt.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},t}();function z_(t,e){e===void 0&&(e="none");var r=e==="ignore"||e==="all",n=!$h(t);return!n&&r&&t.data&&(n=!0),n}var Eq=Object.prototype.hasOwnProperty,eE=Object.create(null),kq=function(){function t(e){var r=e.cache,n=e.link,i=e.defaultOptions,o=e.documentTransform,a=e.queryDeduplication,l=a===void 0?!1:a,d=e.onBroadcast,u=e.ssrMode,f=u===void 0?!1:u,g=e.clientAwareness,y=g===void 0?{}:g,x=e.localState,m=e.assumeImmutableResults,p=m===void 0?!!r.assumeImmutableResults:m,_=e.defaultContext,v=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new A3(wo["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new fc(!1);var b=new H3(function(w){return v.cache.transformDocument(w)},{cache:!1});this.cache=r,this.link=n,this.defaultOptions=i||Object.create(null),this.queryDeduplication=l,this.clientAwareness=y,this.localState=x||new kA({cache:r}),this.ssrMode=f,this.assumeImmutableResults=p,this.documentTransform=o?b.concat(o).concat(b):b,this.defaultContext=_||Object.create(null),(this.onBroadcast=d)&&(this.mutationStore=Object.create(null))}return t.prototype.stop=function(){var e=this;this.queries.forEach(function(r,n){e.stopQueryNoBroadcast(n)}),this.cancelPendingFetches(ln(25))},t.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(r){return r(e)}),this.fetchCancelFns.clear()},t.prototype.mutate=function(e){return aa(this,arguments,void 0,function(r){var n,i,o,a,l,d,u,f=r.mutation,g=r.variables,y=r.optimisticResponse,x=r.updateQueries,m=r.refetchQueries,p=m===void 0?[]:m,_=r.awaitRefetchQueries,v=_===void 0?!1:_,b=r.update,w=r.onQueryUpdated,E=r.fetchPolicy,C=E===void 0?((d=this.defaultOptions.mutate)===null||d===void 0?void 0:d.fetchPolicy)||"network-only":E,S=r.errorPolicy,P=S===void 0?((u=this.defaultOptions.mutate)===null||u===void 0?void 0:u.errorPolicy)||"none":S,R=r.keepRootFields,D=r.context;return sa(this,function(z){switch(z.label){case 0:return it(f,26),it(C==="network-only"||C==="no-cache",27),n=this.generateMutationId(),f=this.cache.transformForLink(this.transform(f)),i=this.getDocumentInfo(f).hasClientExports,g=this.getVariables(f,g),i?[4,this.localState.addExportedVariables(f,g,D)]:[3,2];case 1:g=z.sent(),z.label=2;case 2:return o=this.mutationStore&&(this.mutationStore[n]={mutation:f,variables:g,loading:!0,error:null}),a=y&&this.markMutationOptimistic(y,{mutationId:n,document:f,variables:g,fetchPolicy:C,errorPolicy:P,context:D,updateQueries:x,update:b,keepRootFields:R}),this.broadcastQueries(),l=this,[2,new Promise(function(j,q){return dg(l.getObservableFromLink(f,ee(ee({},D),{optimisticResponse:a?y:void 0}),g,!1),function(Z){if($h(Z)&&P==="none")throw new fo({graphQLErrors:O_(Z)});o&&(o.loading=!1,o.error=null);var we=ee({},Z);return typeof p=="function"&&(p=p(we)),P==="ignore"&&$h(we)&&delete we.errors,l.markMutationResult({mutationId:n,result:we,document:f,variables:g,fetchPolicy:C,errorPolicy:P,context:D,update:b,updateQueries:x,awaitRefetchQueries:v,refetchQueries:p,removeOptimistic:a?n:void 0,onQueryUpdated:w,keepRootFields:R})}).subscribe({next:function(Z){l.broadcastQueries(),(!("hasNext"in Z)||Z.hasNext===!1)&&j(Z)},error:function(Z){o&&(o.loading=!1,o.error=Z),a&&l.cache.removeOptimistic(n),l.broadcastQueries(),q(Z instanceof fo?Z:new fo({networkError:Z}))}})})]}})})},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&&z_(i,e.errorPolicy)){if(Nl(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),Nl(i)&&ji(i.incremental)){var l=r.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),d=void 0;l.result&&(d=eA(l.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(g,y){var x=g.observableQuery,m=x&&x.queryName;if(!(!m||!Eq.call(u,m))){var p=u[m],_=n.queries.get(y),v=_.document,b=_.variables,w=r.diff({query:v,variables:b,returnPartialData:!0,optimistic:!1}),E=w.result,C=w.complete;if(C&&E){var S=p(E,{mutationResult:i,queryName:v&&C_(v)||void 0,queryVariables:b});S&&o.push({result:S,dataId:"ROOT_QUERY",query:v,variables:b})}}})}if(o.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var f=[];if(this.refetchQueries({updateCache:function(g){a||o.forEach(function(p){return g.write(p)});var y=e.update,x=!kz(i)||Nl(i)&&!i.hasNext;if(y){if(!a){var m=g.diff({id:"ROOT_MUTATION",query:n.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});m.complete&&(i=ee(ee({},i),{data:m.result}),"incremental"in i&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}x&&y(g,i,{context:e.context,variables:e.variables})}!a&&!e.keepRootFields&&x&&g.modify({id:"ROOT_MUTATION",fields:function(p,_){var v=_.fieldName,b=_.DELETE;return v==="__typename"?p:b}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(g){return f.push(g)}),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,{IGNORE:eE}):e;return i===eE?!1:(this.cache.recordOptimisticTransaction(function(o){try{n.markMutationResult(ee(ee({},r),{result:{data:i}}),o)}catch(a){globalThis.__DEV__!==!1&&it.error(a)}},r.mutationId),!0)},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:s9(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:Vd(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:G3([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:s0(hu(e)),asQuery:ee(ee({},e),{definitions:e.definitions.map(function(i){return i.kind==="OperationDefinition"&&i.operation!=="query"?ee(ee({},i),{operation:"query"}):i})})};r.set(e,n)}return r.get(e)},t.prototype.getVariables=function(e,r){return ee(ee({},this.getDocumentInfo(e).defaultVars),r)},t.prototype.watchQuery=function(e){var r=this.transform(e.query);e=ee(ee({},e),{variables:this.getVariables(r,e.variables)}),typeof e.notifyOnNetworkStatusChange>"u"&&(e.notifyOnNetworkStatusChange=!1);var n=new gg(this),i=new N_({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()),it(e.query,28),it(e.query.kind==="Document",29),it(!e.returnPartialData,30),it(!e.pollInterval,31),this.fetchQuery(r,ee(ee({},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(ln(32)),this.queries.forEach(function(r){r.observableQuery?r.networkStatus=Bt.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):P9(a)?i.set(r.transform(a),!1):lr(a)&&a.query&&o.add(a)}),this.queries.forEach(function(a,l){var d=a.observableQuery,u=a.document;if(d){if(e==="all"){n.set(l,d);return}var f=d.queryName,g=d.options.fetchPolicy;if(g==="standby"||e==="active"&&!d.hasObservers())return;(e==="active"||f&&i.has(f)||u&&i.has(u))&&(n.set(l,d),f&&i.set(f,!0),u&&i.set(u,!0))}}),o.size&&o.forEach(function(a){var l=g_("legacyOneTimeQuery"),d=r.getQuery(l).init({document:a.query,variables:a.variables}),u=new N_({queryManager:r,queryInfo:d,options:ee(ee({},a),{fetchPolicy:"network-only"})});it(u.queryId===l),d.setObservableQuery(u),n.set(l,u)}),globalThis.__DEV__!==!1&&i.size&&i.forEach(function(a,l){a||globalThis.__DEV__!==!1&&it.warn(typeof l=="string"?33:34,l)}),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,l=e.variables,d=e.context,u=d===void 0?{}:d;n=this.transform(n),l=this.getVariables(n,l);var f=function(y){return r.getObservableFromLink(n,u,y).map(function(x){i!=="no-cache"&&(z_(x,a)&&r.cache.write({query:n,result:x.data,dataId:"ROOT_SUBSCRIPTION",variables:y}),r.broadcastQueries());var m=$h(x),p=Bz(x);if(m||p){var _={};if(m&&(_.graphQLErrors=x.errors),p&&(_.protocolErrors=x.extensions[g0]),a==="none"||p)throw new fo(_)}return a==="ignore"&&delete x.errors,x})};if(this.getDocumentInfo(n).hasClientExports){var g=this.localState.addExportedVariables(n,l,u).then(f);return new Gt(function(y){var x=null;return g.then(function(m){return x=m.subscribe(y)},y.error),function(){return x&&x.unsubscribe()}})}return f(l)},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 l,d=this.getDocumentInfo(e),u=d.serverQuery,f=d.clientQuery;if(u){var g=this,y=g.inFlightLinkObservables,x=g.link,m={query:u,variables:n,operationName:C_(u)||void 0,context:this.prepareContext(ee(ee({},r),{forceFetch:!i}))};if(r=m.context,i){var p=Xp(u),_=xa(n),v=y.lookup(p,_);if(l=v.observable,!l){var b=new _l([P_(x,m)]);l=v.observable=b,b.beforeNext(function(){y.remove(p,_)})}}else l=new _l([P_(x,m)])}else l=new _l([Gt.of({data:{}})]),r=this.prepareContext(r);return f&&(l=dg(l,function(w){return o.localState.runResolvers({document:f,remoteResult:w,context:r,variables:n})})),l},t.prototype.getResultsFromLink=function(e,r,n){var i=e.lastRequestId=this.generateRequestId(),o=this.cache.transformForLink(n.query);return dg(this.getObservableFromLink(o,n.context,n.variables),function(a){var l=O_(a),d=l.length>0;if(i>=e.lastRequestId){if(d&&n.errorPolicy==="none")throw e.markError(new fo({graphQLErrors:l}));e.markResult(a,o,n,r),e.markReady()}var u={data:a.data,loading:!1,networkStatus:Bt.ready};return d&&n.errorPolicy!=="ignore"&&(u.errors=l,u.networkStatus=Bt.error),u},function(a){var l=rA(a)?a:new fo({networkError:a});throw i>=e.lastRequestId&&e.markError(l),l})},t.prototype.fetchConcastWithInfo=function(e,r,n,i){var o=this;n===void 0&&(n=Bt.loading),i===void 0&&(i=r.query);var a=this.getVariables(i,r.variables),l=this.getQuery(e),d=this.defaultOptions.watchQuery,u=r.fetchPolicy,f=u===void 0?d&&d.fetchPolicy||"cache-first":u,g=r.errorPolicy,y=g===void 0?d&&d.errorPolicy||"none":g,x=r.returnPartialData,m=x===void 0?!1:x,p=r.notifyOnNetworkStatusChange,_=p===void 0?!1:p,v=r.context,b=v===void 0?{}:v,w=Object.assign({},r,{query:i,variables:a,fetchPolicy:f,errorPolicy:y,returnPartialData:m,notifyOnNetworkStatusChange:_,context:b}),E=function(D){w.variables=D;var z=o.fetchQueryByPolicy(l,w,n);return w.fetchPolicy!=="standby"&&z.sources.length>0&&l.observableQuery&&l.observableQuery.applyNextFetchPolicy("after-fetch",r),z},C=function(){return o.fetchCancelFns.delete(e)};this.fetchCancelFns.set(e,function(D){C(),setTimeout(function(){return S.cancel(D)})});var S,P;if(this.getDocumentInfo(w.query).hasClientExports)S=new _l(this.localState.addExportedVariables(w.query,w.variables,w.context).then(E).then(function(D){return D.sources})),P=!0;else{var R=E(w.variables);P=R.fromLink,S=new _l(R.sources)}return S.promise.then(C,C),{concast:S,fromLink:P}},t.prototype.refetchQueries=function(e){var r=this,n=e.updateCache,i=e.include,o=e.optimistic,a=o===void 0?!1:o,l=e.removeOptimistic,d=l===void 0?a?g_("refetchQueries"):void 0:l,u=e.onQueryUpdated,f=new Map;i&&this.getObservableQueries(i).forEach(function(y,x){f.set(x,{oq:y,lastDiff:r.getQuery(x).getDiff()})});var g=new Map;return n&&this.cache.batch({update:n,optimistic:a&&d||!1,removeOptimistic:d,onWatchUpdated:function(y,x,m){var p=y.watcher instanceof gg&&y.watcher.observableQuery;if(p){if(u){f.delete(p.queryId);var _=u(p,x,m);return _===!0&&(_=p.refetch()),_!==!1&&g.set(p,_),_}u!==null&&f.set(p.queryId,{oq:p,lastDiff:m,diff:x})}}}),f.size&&f.forEach(function(y,x){var m=y.oq,p=y.lastDiff,_=y.diff,v;if(u){if(!_){var b=m.queryInfo;b.reset(),_=b.getDiff()}v=u(m,_,p)}(!u||v===!0)&&(v=m.refetch()),v!==!1&&g.set(m,v),x.indexOf("legacyOneTimeQuery")>=0&&r.stopQueryNoBroadcast(x)}),d&&this.cache.removeOptimistic(d),g},t.prototype.fetchQueryByPolicy=function(e,r,n){var i=this,o=r.query,a=r.variables,l=r.fetchPolicy,d=r.refetchWritePolicy,u=r.errorPolicy,f=r.returnPartialData,g=r.context,y=r.notifyOnNetworkStatusChange,x=e.networkStatus;e.init({document:o,variables:a,networkStatus:n});var m=function(){return e.getDiff()},p=function(E,C){C===void 0&&(C=e.networkStatus||Bt.loading);var S=E.result;globalThis.__DEV__!==!1&&!f&&!er(S,{})&&EA(E.missing);var P=function(R){return Gt.of(ee({data:R,loading:Gd(C),networkStatus:C},E.complete?null:{partial:!0}))};return S&&i.getDocumentInfo(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:S},context:g,variables:a,onlyRunForcedResolvers:!0}).then(function(R){return P(R.data||void 0)}):u==="none"&&C===Bt.refetch&&Array.isArray(E.missing)?P(void 0):P(S)},_=l==="no-cache"?0:n===Bt.refetch&&d!=="merge"?1:2,v=function(){return i.getResultsFromLink(e,_,{query:o,variables:a,context:g,fetchPolicy:l,errorPolicy:u})},b=y&&typeof x=="number"&&x!==n&&Gd(n);switch(l){default:case"cache-first":{var w=m();return w.complete?{fromLink:!1,sources:[p(w,e.markReady())]}:f||b?{fromLink:!0,sources:[p(w),v()]}:{fromLink:!0,sources:[v()]}}case"cache-and-network":{var w=m();return w.complete||f||b?{fromLink:!0,sources:[p(w),v()]}:{fromLink:!0,sources:[v()]}}case"cache-only":return{fromLink:!1,sources:[p(m(),e.markReady())]};case"network-only":return b?{fromLink:!0,sources:[p(m()),v()]}:{fromLink:!0,sources:[v()]};case"no-cache":return b?{fromLink:!0,sources:[p(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 gg(this,e)),this.queries.get(e)},t.prototype.prepareContext=function(e){e===void 0&&(e={});var r=this.localState.prepareContext(e);return ee(ee(ee({},this.defaultContext),r),{clientAwareness:this.clientAwareness})},t}(),tE=!1,T0=function(){function t(e){var r=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw ln(15);var n=e.uri,i=e.credentials,o=e.headers,a=e.cache,l=e.documentTransform,d=e.ssrMode,u=d===void 0?!1:d,f=e.ssrForceFetchDelay,g=f===void 0?0:f,y=e.connectToDevTools,x=y===void 0?typeof window=="object"&&!window.__APOLLO_CLIENT__&&globalThis.__DEV__!==!1:y,m=e.queryDeduplication,p=m===void 0?!0:m,_=e.defaultOptions,v=e.defaultContext,b=e.assumeImmutableResults,w=b===void 0?a.assumeImmutableResults:b,E=e.resolvers,C=e.typeDefs,S=e.fragmentMatcher,P=e.name,R=e.version,D=e.link;D||(D=n?new eq({uri:n,credentials:i,headers:o}):pc.empty()),this.link=D,this.cache=a,this.disableNetworkFetches=u||g>0,this.queryDeduplication=p,this.defaultOptions=_||Object.create(null),this.typeDefs=C,g&&setTimeout(function(){return r.disableNetworkFetches=!1},g),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=r0,this.localState=new kA({cache:a,client:this,resolvers:E,fragmentMatcher:S}),this.queryManager=new kq({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:v,documentTransform:l,queryDeduplication:p,ssrMode:u,clientAwareness:{name:P,version:R},localState:this.localState,assumeImmutableResults:w,onBroadcast:x?function(){r.devToolsHookCb&&r.devToolsHookCb({action:{},state:{queries:r.queryManager.getQueryStore(),mutations:r.queryManager.mutationStore||{}},dataWithOptimisticResults:r.cache.extract(!0)})}:void 0}),x&&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}!tE&&globalThis.__DEV__!==!1&&(tE=!0,setTimeout(function(){if(typeof window<"u"&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__&&/^(https?|file):$/.test(window.location.protocol)){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&&it.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=ug(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&(e.fetchPolicy==="network-only"||e.fetchPolicy==="cache-and-network")&&(e=ee(ee({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},t.prototype.query=function(e){return this.defaultOptions.query&&(e=ug(this.defaultOptions.query,e)),it(e.fetchPolicy!=="cache-and-network",16),this.disableNetworkFetches&&e.fetchPolicy==="network-only"&&(e=ee(ee({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},t.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=ug(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.watchFragment=function(e){return this.cache.watchFragment(e)},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 P_(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,l){n.push(l),i.push(a)});var o=Promise.all(i);return o.queries=n,o.results=i,o.catch(function(a){globalThis.__DEV__!==!1&&it.debug(17,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},Object.defineProperty(t.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),t}();globalThis.__DEV__!==!1&&(T0.prototype.getMemoryInternals=T9);var Dh=new Map,q_=new Map,CA=!0,Zh=!1;function AA(t){return t.replace(/[\s,]+/g," ").trim()}function Cq(t){return AA(t.source.body.substring(t.start,t.end))}function Aq(t){var e=new Set,r=[];return t.definitions.forEach(function(n){if(n.kind==="FragmentDefinition"){var i=n.name.value,o=Cq(n.loc),a=q_.get(i);a&&!a.has(o)?CA&&console.warn("Warning: fragment with name "+i+` already exists. +`),b=Hz(_.slice(0,v)),w=b["content-type"],w&&w.toLowerCase().indexOf("application/json")===-1)throw new Error("Unsupported patch content type: application/json is required.");if(E=_.slice(v),E){if(C=pA(t,E),Object.keys(C).length>1||"data"in C||"incremental"in C||"errors"in C||"payload"in C)if(Az(C)){if(S={},"payload"in C){if(Object.keys(C).length===1&&C.payload===null)return[2];S=Z({},C.payload)}"errors"in C&&(S=Z(Z({},S),{extensions:Z(Z({},"extensions"in S?S.extensions:null),(R={},R[O0]=C.errors,R))})),e(S)}else e(C);else if(Object.keys(C).length===1&&"hasNext"in C&&!C.hasNext)return[2]}p=l.indexOf(a)}return[3,1];case 3:return[2]}})})}function Hz(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 pA(t,e){if(t.status>=300){var r=function(){try{return JSON.parse(e)}catch{return e}};fA(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 Wz(t,e){t.result&&t.result.errors&&t.result.data&&e.next(t.result),e.error(t)}function mA(t){return function(e){return e.text().then(function(r){return pA(e,r)}).then(function(r){return!Array.isArray(r)&&!qT.call(r,"data")&&!qT.call(r,"errors")&&fA(e,r,"Server response was missing for query '".concat(Array.isArray(t)?t.map(function(n){return n.operationName}):t.operationName,"'.")),r})}}var sp=function(t,e){var r;try{r=JSON.stringify(t)}catch(i){var n=fn(39,e,i.message);throw n.parseError=i,n}return r},Gz={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},Qz={accept:"*/*","content-type":"application/json"},Kz={method:"POST"},vA={http:Gz,headers:Qz,options:Kz},gA=function(t,e){return e(t)};function _A(t,e){for(var r=[],n=2;n"u")throw fn(37)},Jz=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var t=new AbortController,e=t.signal;return{controller:t,signal:e}},yA=function(t,e){var r=t.getContext(),n=r.uri;return n||(typeof e=="function"?e(t):e||"/graphql")};function Zz(t,e){var r=[],n=function(g,y){r.push("".concat(g,"=").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=sp(e.variables,"Variables map")}catch(g){return{parseError:g}}n("variables",i)}if(e.extensions){var o=void 0;try{o=sp(e.extensions,"Extensions map")}catch(g){return{parseError:g}}n("extensions",o)}var a="",l=t,d=t.indexOf("#");d!==-1&&(a=t.substr(d),l=t.substr(0,d));var u=l.indexOf("?")===-1?"?":"&",f=l+u+r.join("&")+a;return{newURI:f}}var BT=bi(function(){return fetch}),eq=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?gA:i,a=t.includeExtensions,l=t.preserveHeaderCase,d=t.useGETForQueries,u=t.includeUnusedVariables,f=u===void 0?!1:u,g=Da(t,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);globalThis.__DEV__!==!1&&Xz(n||BT);var y={http:{includeExtensions:a,preserveHeaderCase:l},options:g.fetchOptions,credentials:g.credentials,headers:g.headers};return new wc(function(x){var m=yA(x,r),p=x.getContext(),_={};if(p.clientAwareness){var v=p.clientAwareness,b=v.name,w=v.version;b&&(_["apollographql-client-name"]=b),w&&(_["apollographql-client-version"]=w)}var E=Z(Z({},_),p.headers),C={http:p.http,options:p.fetchOptions,credentials:p.credentials,headers:E};if(tu(["client"],x.query)){var S=oA(x.query);if(!S)return Vh(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`."));x.query=S}var P=_A(x,o,vA,y,C),R=P.options,D=P.body;D.variables&&!f&&(D.variables=Oz(D.variables,x.query));var z;!R.signal&&typeof AbortController<"u"&&(z=new AbortController,R.signal=z.signal);var j=function(Be){return Be.kind==="OperationDefinition"&&Be.operation==="mutation"},q=function(Be){return Be.kind==="OperationDefinition"&&Be.operation==="subscription"},J=q(Cu(x.query)),be=tu(["defer"],x.query);if(d&&!x.query.definitions.some(j)&&(R.method="GET"),be||J){R.headers=R.headers||{};var Oe="multipart/mixed;";J&&be&&globalThis.__DEV__!==!1&&at.warn(38),J?Oe+="boundary=graphql;subscriptionSpec=1.0,application/json":be&&(Oe+="deferSpec=20220824,application/json"),R.headers.accept=Oe}if(R.method==="GET"){var ge=Zz(m,D),ke=ge.newURI,Se=ge.parseError;if(Se)return Vh(Se);m=ke}else try{R.body=sp(D,"Payload")}catch(Be){return Vh(Be)}return new Yt(function(Be){var Re=n||bi(function(){return fetch})||BT,se=Be.next.bind(Be);return Re(m,R).then(function(we){var Pe;x.setContext({response:we});var Ce=(Pe=we.headers)===null||Pe===void 0?void 0:Pe.get("content-type");return Ce!==null&&/^multipart\/mixed/i.test(Ce)?jz(we,se):mA(x)(we).then(se)}).then(function(){z=void 0,Be.complete()}).catch(function(we){z=void 0,Wz(we,Be)}),function(){z&&z.abort()}})})},tq=function(t){Yi(e,t);function e(r){r===void 0&&(r={});var n=t.call(this,eq(r).request)||this;return n.options=r,n}return e}(wc);const{toString:VT,hasOwnProperty:rq}=Object.prototype,UT=Function.prototype.toString,G_=new Map;function nr(t,e){try{return Q_(t,e)}finally{G_.clear()}}function Q_(t,e){if(t===e)return!0;const r=VT.call(t),n=VT.call(e);if(r!==n)return!1;switch(r){case"[object Array]":if(t.length!==e.length)return!1;case"[object Object]":{if(HT(t,e))return!0;const i=jT(t),o=jT(e),a=i.length;if(a!==o.length)return!1;for(let l=0;l=0&&t.indexOf(e,r)===r}function HT(t,e){let r=G_.get(t);if(r){if(r.has(e))return!0}else G_.set(t,r=new Set);return r.add(e),!1}function bA(t,e,r,n){var i=e.data,o=Da(e,["data"]),a=r.data,l=Da(r,["data"]);return nr(o,l)&&Uh(Cu(t).selectionSet,i,a,{fragmentMap:em(nm(t)),variables:n})}function Uh(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),!Tu(o,n.variables))||WT(o))return!0;if(Ma(o)){var a=La(o),l=e&&e[a],d=r&&r[a],u=o.selectionSet;if(!u)return nr(l,d);var f=Array.isArray(l),g=Array.isArray(d);if(f!==g)return!1;if(f&&g){var y=l.length;if(d.length!==y)return!1;for(var x=0;x=0;--d)l.missing=(a={},a[l.path[d]]=l.missing,a)}else l.missing=l.path;return l.__proto__=e.prototype,l}return e}(Error),Dr=Object.prototype.hasOwnProperty;function cd(t){return t==null}function TA(t,e){var r=t.__typename,n=t.id,i=t._id;if(typeof r=="string"&&(e&&(e.keyObject=cd(n)?cd(i)?void 0:{_id:i}:{id:n}),cd(n)&&!cd(i)&&(n=i),!cd(n)))return"".concat(r,":").concat(typeof n=="number"||typeof n=="string"?n:JSON.stringify(n))}var EA={dataIdFromObject:TA,addTypename:!0,resultCaching:!0,canonizeResults:!1};function sq(t){return ic(EA,t)}function kA(t){var e=t.canonizeResults;return e===void 0?EA.canonizeResults:e}function lq(t,e){return zt(e)?t.get(e.__ref,"__typename"):e&&e.__typename}var CA=/^[_a-z][_0-9a-z]*/i;function za(t){var e=t.match(CA);return e?e[0]:t}function K_(t,e,r){return hr(e)?pr(e)?e.every(function(n){return K_(t,n,r)}):t.selections.every(function(n){if(Ma(n)&&Tu(n,r)){var i=La(n);return Dr.call(e,i)&&(!n.selectionSet||K_(n.selectionSet,e[i],r))}return!0}):!1}function Dl(t){return hr(t)&&!zt(t)&&!pr(t)}function cq(){return new Na}function AA(t,e){var r=em(nm(t));return{fragmentMap:r,lookupFragment:function(n){var i=r[n];return!i&&e&&(i=e.lookup(n)),i||null}}}var jh=Object.create(null),kg=function(){return jh},GT=Object.create(null),iu=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 j_(zt(i)?n.get(i.__ref,o):i&&i[o])},this.canRead=function(i){return zt(i)?n.has(i.__ref):typeof i=="object"},this.toReference=function(i,o){if(typeof i=="string")return Hl(i);if(zt(i))return i;var a=n.policies.identify(i)[0];if(a){var l=Hl(a);return o&&n.merge(a,i),l}}}return t.prototype.toObject=function(){return Z({},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),Dr.call(this.data,e)){var n=this.data[e];if(n&&Dr.call(n,r))return n[r]}if(r==="__typename"&&Dr.call(this.policies.rootTypenamesById,e))return this.policies.rootTypenamesById[e];if(this instanceof sa)return this.parent.get(e,r)},t.prototype.lookup=function(e,r){if(r&&this.group.depend(e,"__exists"),Dr.call(this.data,e))return this.data[e];if(this instanceof sa)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;zt(e)&&(e=e.__ref),zt(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){at(typeof i=="string",1);var l=new Na(uq).merge(o,a);if(this.data[i]=l,l!==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]!==l[u]){d[u]=1;var f=za(u);f!==u&&!n.policies.hasKeyArgs(l.__typename,f)&&(d[f]=1),l[u]===void 0&&!(n instanceof sa)&&delete l[u]}}),d.__typename&&!(o&&o.__typename)&&this.policies.rootTypenamesById[i]===l.__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,l=!0,d={DELETE:jh,INVALIDATE:GT,isReference:zt,toReference:this.toReference,canRead:this.canRead,readField:function(u,f){return n.policies.readField(typeof u=="string"?{fieldName:u,from:f||Hl(e)}:u,{store:n})}};if(Object.keys(i).forEach(function(u){var f=za(u),g=i[u];if(g!==void 0){var y=typeof r=="function"?r:r[u]||r[f];if(y){var x=y===kg?jh:y(j_(g),Z(Z({},d),{fieldName:f,storeFieldName:u,storage:n.getStorage(e,u)}));if(x===GT)n.group.dirty(e,u);else if(x===jh&&(x=void 0),x!==g&&(o[u]=x,a=!0,g=x,globalThis.__DEV__!==!1)){var m=function(C){if(n.lookup(C.__ref)===void 0)return globalThis.__DEV__!==!1&&at.warn(2,C),!0};if(zt(x))m(x);else if(Array.isArray(x))for(var p=!1,_=void 0,v=0,b=x;v0){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 sa?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){Dr.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 sa;)o=o.parent;i.forEach(function(a){return o.delete(a)})}return i},t.prototype.findChildRefIds=function(e){if(!Dr.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){zt(o)&&(r[o.__ref]=!0),hr(o)&&Object.keys(o).forEach(function(a){var l=o[a];hr(l)&&i.add(l)})})}return this.refs[e]},t.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},t}(),SA=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?tA():null,this.keyMaker=new bc(xc)},t.prototype.depend=function(e,r){if(this.d){this.d(Cg(e,r));var n=za(r);n!==r&&this.d(Cg(e,n)),this.parent&&this.parent.depend(e,r)}},t.prototype.dirty=function(e,r){this.d&&this.d.dirty(Cg(e,r),r==="__exists"?"forget":"setDirty")},t}();function Cg(t,e){return e+"#"+t}function QT(t,e){Pd(t)&&t.group.depend(e,"__exists")}(function(t){var e=function(r){Yi(n,r);function n(i){var o=i.policies,a=i.resultCaching,l=a===void 0?!0:a,d=i.seed,u=r.call(this,o,new SA(l))||this;return u.stump=new dq(u),u.storageTrie=new bc(xc),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})(iu||(iu={}));var sa=function(t){Yi(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],l=i.lookup(o);l?a?a!==l&&Object.keys(a).forEach(function(d){nr(a[d],l[d])||n.group.dirty(o,d)}):(n.group.dirty(o,"__exists"),Object.keys(l).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 Z(Z({},this.parent.toObject()),this.data)},e.prototype.findChildRefIds=function(r){var n=this.parent.findChildRefIds(r);return Dr.call(this.data,r)?Z(Z({},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}(iu),dq=function(t){Yi(e,t);function e(r){return t.call(this,"EntityStore.Stump",r,function(){},new SA(r.group.caching,r.group))||this}return e.prototype.removeLayer=function(){return this},e.prototype.merge=function(r,n){return this.parent.merge(r,n)},e}(sa);function uq(t,e,r){var n=t[r],i=e[r];return nr(n,i)?n:i}function Pd(t){return!!(t instanceof iu&&t.group.caching)}function fq(t){return hr(t)?pr(t)?t.slice(0):Z({__proto__:Object.getPrototypeOf(t)},t):t}var KT=function(){function t(){this.known=new(L3?WeakSet:Set),this.pool=new bc(xc),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return t.prototype.isKnown=function(e){return hr(e)&&this.known.has(e)},t.prototype.pass=function(e){if(hr(e)){var r=fq(e);return this.passes.set(r,e),r}return e},t.prototype.admit=function(e){var r=this;if(hr(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 l=Object.getPrototypeOf(e),d=[l],u=this.sortedKeys(e);d.push(u.json);var f=d.length;u.sorted.forEach(function(x){d.push(r.admit(e[x]))});var a=this.pool.lookupArray(d);if(!a.object){var g=a.object=Object.create(l);this.known.add(g),u.sorted.forEach(function(x,m){g[x]=d[f+m]}),globalThis.__DEV__!==!1&&Object.freeze(g)}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}();function YT(t){return[t.selectionSet,t.objectOrReference,t.context,t.context.canonizeResults]}var hq=function(){function t(e){var r=this;this.knownResults=new(xc?WeakMap:Map),this.config=ic(e,{addTypename:e.addTypename!==!1,canonizeResults:kA(e)}),this.canon=e.canon||new KT,this.executeSelectionSet=nu(function(n){var i,o=n.context.canonizeResults,a=YT(n);a[3]=!o;var l=(i=r.executeSelectionSet).peek.apply(i,a);return l?o?Z(Z({},l),{result:r.canon.admit(l.result)}):l:(QT(n.context.store,n.enclosingRef.__ref),r.execSelectionSetImpl(n))},{max:this.config.resultCacheMaxSize||Co["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:YT,makeCacheKey:function(n,i,o,a){if(Pd(o.store))return o.store.makeCacheKey(n,zt(i)?i.__ref:i,o.varString,a)}}),this.executeSubSelectedArray=nu(function(n){return QT(n.context.store,n.enclosingRef.__ref),r.execSubSelectedArrayImpl(n)},{max:this.config.resultCacheMaxSize||Co["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(n){var i=n.field,o=n.array,a=n.context;if(Pd(a.store))return a.store.makeCacheKey(i,o,a.varString)}})}return t.prototype.resetCanon=function(){this.canon=new KT},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,l=e.returnPartialData,d=l===void 0?!0:l,u=e.canonizeResults,f=u===void 0?this.config.canonizeResults:u,g=this.config.cache.policies;a=Z(Z({},x0(j3(n))),a);var y=Hl(o),x=this.executeSelectionSet({selectionSet:Cu(n).selectionSet,objectOrReference:y,enclosingRef:y,context:Z({store:r,query:n,policies:g,variables:a,varString:Sa(a),canonizeResults:f},AA(n,this.config.fragments))}),m;if(x.missing&&(m=[new wA(pq(x.missing),x.missing,n,a)],!d))throw m[0];return{result:x.result,complete:!m,missing:m}},t.prototype.isFresh=function(e,r,n,i){if(Pd(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(zt(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 l=a.variables,d=a.policies,u=a.store,f=u.getFieldValue(i,"__typename"),g=[],y,x=new Na;this.config.addTypename&&typeof f=="string"&&!d.rootIdsByTypename[f]&&g.push({__typename:f});function m(w,E){var C;return w.missing&&(y=x.merge(y,(C={},C[E]=w.missing,C))),w.result}var p=new Set(n.selections);p.forEach(function(w){var E,C;if(Tu(w,l))if(Ma(w)){var S=d.readField({fieldName:w.name.value,field:w,variables:a.variables,from:i},a),P=La(w);S===void 0?C0.added(w)||(y=x.merge(y,(E={},E[P]="Can't find field '".concat(w.name.value,"' on ").concat(zt(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),E))):pr(S)?S.length>0&&(S=m(r.executeSubSelectedArray({field:w,array:S,enclosingRef:o,context:a}),P)):w.selectionSet?S!=null&&(S=m(r.executeSelectionSet({selectionSet:w.selectionSet,objectOrReference:S,enclosingRef:zt(S)?S:o,context:a}),P)):a.canonizeResults&&(S=r.canon.pass(S)),S!==void 0&&g.push((C={},C[P]=S,C))}else{var R=tm(w,a.lookupFragment);if(!R&&w.kind===Ve.FRAGMENT_SPREAD)throw fn(9,w.name.value);R&&d.fragmentMatches(R,f)&&R.selectionSet.selections.forEach(p.add,p)}});var _=lm(g),v={result:_,missing:y},b=a.canonizeResults?this.canon.admit(v):j_(v);return b.result&&this.knownResults.set(b.result,n),b},t.prototype.execSubSelectedArrayImpl=function(e){var r=this,n=e.field,i=e.array,o=e.enclosingRef,a=e.context,l,d=new Na;function u(f,g){var y;return f.missing&&(l=d.merge(l,(y={},y[g]=f.missing,y))),f.result}return n.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map(function(f,g){return f===null?null:pr(f)?u(r.executeSubSelectedArray({field:n,array:f,enclosingRef:o,context:a}),g):n.selectionSet?u(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:f,enclosingRef:zt(f)?f:o,context:a}),g):(globalThis.__DEV__!==!1&&mq(a.store,n,f),f)}),{result:a.canonizeResults?this.canon.admit(i):i,missing:l}},t}();function pq(t){try{JSON.stringify(t,function(e,r){if(typeof r=="string")throw r;return r})}catch(e){return e}}function mq(t,e,r){if(!e.selectionSet){var n=new Set([r]);n.forEach(function(i){hr(i)&&(at(!zt(i),10,lq(t,i),e.name.value),Object.values(i).forEach(n.add,n))})}}var P0=new im,XT=new WeakMap;function Rd(t){var e=XT.get(t);return e||XT.set(t,e={vars:new Set,dep:tA()}),e}function JT(t){Rd(t).vars.forEach(function(e){return e.forgetCache(t)})}function vq(t){Rd(t).vars.forEach(function(e){return e.attachCache(t)})}function gq(t){var e=new Set,r=new Set,n=function(o){if(arguments.length>0){if(t!==o){t=o,e.forEach(function(d){Rd(d).dep.dirty(n),_q(d)});var a=Array.from(r);r.clear(),a.forEach(function(d){return d(t)})}}else{var l=P0.getValue();l&&(i(l),Rd(l).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),Rd(o).vars.add(n),n};return n.forgetCache=function(o){return e.delete(o)},n}function _q(t){t.broadcastWatches&&t.broadcastWatches()}var ZT=Object.create(null);function R0(t){var e=JSON.stringify(t);return ZT[e]||(ZT[e]=Object.create(null))}function eE(t){var e=R0(t);return e.keyFieldsFn||(e.keyFieldsFn=function(r,n){var i=function(a,l){return n.readField(l,a)},o=n.keyObject=D0(t,function(a){var l=Gl(n.storeObject,a,i);return l===void 0&&r!==n.storeObject&&Dr.call(r,a[0])&&(l=Gl(r,a,$A)),at(l!==void 0,4,a.join("."),r),l});return"".concat(n.typename,":").concat(JSON.stringify(o))})}function tE(t){var e=R0(t);return e.keyArgsFn||(e.keyArgsFn=function(r,n){var i=n.field,o=n.variables,a=n.fieldName,l=D0(t,function(u){var f=u[0],g=f.charAt(0);if(g==="@"){if(i&&Wi(i.directives)){var y=f.slice(1),x=i.directives.find(function(v){return v.name.value===y}),m=x&&rm(x,o);return m&&Gl(m,u.slice(1))}return}if(g==="$"){var p=f.slice(1);if(o&&Dr.call(o,p)){var _=u.slice(0);return _[0]=p,Gl(o,_)}return}if(r)return Gl(r,u)}),d=JSON.stringify(l);return(r||d!=="{}")&&(a+=":"+d),a})}function D0(t,e){var r=new Na;return IA(t).reduce(function(n,i){var o,a=e(i);if(a!==void 0){for(var l=i.length-1;l>=0;--l)a=(o={},o[i[l]]=a,o);n=r.merge(n,a)}return n},Object.create(null))}function IA(t){var e=R0(t);if(!e.paths){var r=e.paths=[],n=[];t.forEach(function(i,o){pr(i)?(IA(i).forEach(function(a){return r.push(n.concat(a))}),n.length=0):(n.push(i),pr(t[o+1])||(r.push(n.slice(0)),n.length=0))})}return e.paths}function $A(t,e){return t[e]}function Gl(t,e,r){return r=r||$A,OA(e.reduce(function n(i,o){return pr(i)?i.map(function(a){return n(a,o)}):i&&r(i,o)},t))}function OA(t){return hr(t)?pr(t)?t.map(OA):D0(Object.keys(t).sort(),function(e){return Gl(t,e)}):t}function Y_(t){return t.args!==void 0?t.args:t.field?rm(t.field,t.variables):null}var yq=function(){},rE=function(t,e){return e.fieldName},nE=function(t,e,r){var n=r.mergeObjects;return n(t,e)},iE=function(t,e){return e},bq=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=Z({dataIdFromObject:TA},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,l=Z(Z({},r),{typename:o,storeObject:a,readField:r&&r.readField||function(){var y=L0(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 g=f(Z(Z({},e),a),l);if(pr(g))f=eE(g);else{d=g;break}}return d=d?String(d):void 0,l.keyObject?[d,l.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,l=i.subscriptionType,d=Da(i,["queryType","mutationType","subscriptionType"]);o&&r.setRootTypename("Query",n),a&&r.setRootTypename("Mutation",n),l&&r.setRootTypename("Subscription",n),Dr.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 l(d,u){d.merge=typeof u=="function"?u:u===!0?nE:u===!1?iE:d.merge}l(i,r.merge),i.keyFn=o===!1?yq:pr(o)?eE(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 g=f.keyArgs,y=f.read,x=f.merge;u.keyFn=g===!1?rE:pr(g)?tE(g):typeof g=="function"?g:u.keyFn,typeof y=="function"&&(u.read=y),l(u,x)}u.read&&u.merge&&(u.keyFn=u.keyFn||rE)})},t.prototype.setRootTypename=function(e,r){r===void 0&&(r=e);var n="ROOT_"+e.toUpperCase(),i=this.rootTypenamesById[n];r!==i&&(at(!i||i===e,5,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(CA);(!o||o[0]!==i)&&r.fuzzySubtypes.set(i,new RegExp(i))})})},t.prototype.getTypePolicy=function(e){var r=this;if(!Dr.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,l){if(a.test(e)){var d=r.supertypeMap.get(l);d&&d.forEach(function(u){return i.add(u)})}})),i&&i.size&&i.forEach(function(a){var l=r.getTypePolicy(a),d=l.fields,u=Da(l,["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 l=this.getSupertypeSet(r,!0),d=[l],u=function(m){var p=o.getSupertypeSet(m,!1);p&&p.size&&d.indexOf(p)<0&&d.push(p)},f=!!(n&&this.fuzzySubtypes.size),g=!1,y=0;y1?i:e}:(a=Z({},n),Dr.call(a,"from")||(a.from=e)),globalThis.__DEV__!==!1&&a.from===void 0&&globalThis.__DEV__!==!1&&at.warn(7,b3(Array.from(t))),a.variables===void 0&&(a.variables=r),a}function PA(t){return function(r,n){if(pr(r)||pr(n))throw fn(8);if(hr(r)&&hr(n)){var i=t.getFieldValue(r,"__typename"),o=t.getFieldValue(n,"__typename"),a=i&&o&&i!==o;if(a)return n;if(zt(r)&&Dl(n))return t.merge(r.__ref,n),r;if(Dl(r)&&zt(n))return t.merge(r,n.__ref),n;if(Dl(r)&&Dl(n))return Z(Z({},r),n)}return n}}function Ag(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:Z(Z({},t),{clientOnly:e,deferred:r})),i}var xq=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,l=r.variables,d=r.overwrite,u=ku(i),f=cq();l=Z(Z({},x0(u)),l);var g=Z(Z({store:e,written:Object.create(null),merge:function(x,m){return f.merge(x,m)},variables:l,varString:Sa(l)},AA(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:g});if(!zt(y))throw fn(11,o);return g.incomingById.forEach(function(x,m){var p=x.storeObject,_=x.mergeTree,v=x.fieldNodeSet,b=Hl(m);if(_&&_.map.size){var w=n.applyMerges(_,b,p,g);if(zt(w))return;p=w}if(globalThis.__DEV__!==!1&&!g.overwrite){var E=Object.create(null);v.forEach(function(P){P.selectionSet&&(E[P.name.value]=!0)});var C=function(P){return E[za(P)]===!0},S=function(P){var R=_&&_.map.get(P);return!!(R&&R.info&&R.info.merge)};Object.keys(p).forEach(function(P){C(P)&&!S(P)&&wq(b,p,P,g.store)})}e.merge(m,p)}),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,l=e.mergeTree,d=this.cache.policies,u=Object.create(null),f=n&&d.rootTypenamesById[n]||z_(i,o,a.fragmentMap)||n&&a.store.get(n,"__typename");typeof f=="string"&&(u.__typename=f);var g=function(){var w=L0(arguments,u,a.variables);if(zt(w.from)){var E=a.incomingById.get(w.from.__ref);if(E){var C=d.readField(Z(Z({},w),{from:E.storeObject}),a);if(C!==void 0)return C}}return d.readField(w,a)},y=new Set;this.flattenFields(o,i,a,f).forEach(function(w,E){var C,S=La(E),P=i[S];if(y.add(E),P!==void 0){var R=d.getStoreFieldName({typename:f,fieldName:E.name.value,field:E,variables:w.variables}),D=aE(l,R),z=r.processFieldValue(P,E,E.selectionSet?Ag(w,!1,!1):w,D),j=void 0;E.selectionSet&&(zt(z)||Dl(z))&&(j=g("__typename",z));var q=d.getMergeFunction(f,E.name.value,j);q?D.info={field:E,typename:f,merge:q}:sE(l,R),u=w.merge(u,(C={},C[R]=z,C))}else globalThis.__DEV__!==!1&&!w.clientOnly&&!w.deferred&&!C0.added(E)&&!d.getReadFunction(f,E.name.value)&&globalThis.__DEV__!==!1&&at.error(12,La(E),i)});try{var x=d.identify(i,{typename:f,selectionSet:o,fragmentMap:a.fragmentMap,storeObject:u,readField:g}),m=x[0],p=x[1];n=n||m,p&&(u=a.merge(u,p))}catch(w){if(!n)throw w}if(typeof n=="string"){var _=Hl(n),v=a.written[n]||(a.written[n]=[]);if(v.indexOf(o)>=0||(v.push(o),this.reader&&this.reader.isFresh(i,_,o,a)))return _;var b=a.incomingById.get(n);return b?(b.storeObject=a.merge(b.storeObject,u),b.mergeTree=X_(b.mergeTree,l),y.forEach(function(w){return b.fieldNodeSet.add(w)})):a.incomingById.set(n,{storeObject:u,mergeTree:lp(l)?void 0:l,fieldNodeSet:y}),_}return u},t.prototype.processFieldValue=function(e,r,n,i){var o=this;return!r.selectionSet||e===null?globalThis.__DEV__!==!1?cA(e):e:pr(e)?e.map(function(a,l){var d=o.processFieldValue(a,r,n,aE(i,l));return sE(i,l),d}):this.processSelectionSet({result:e,selectionSet:r.selectionSet,context:n,mergeTree:i})},t.prototype.flattenFields=function(e,r,n,i){i===void 0&&(i=z_(r,e,n.fragmentMap));var o=new Map,a=this.cache.policies,l=new bc(!1);return function d(u,f){var g=l.lookup(u,f.clientOnly,f.deferred);g.visited||(g.visited=!0,u.selections.forEach(function(y){if(Tu(y,n.variables)){var x=f.clientOnly,m=f.deferred;if(!(x&&m)&&Wi(y.directives)&&y.directives.forEach(function(v){var b=v.name.value;if(b==="client"&&(x=!0),b==="defer"){var w=rm(v,n.variables);(!w||w.if!==!1)&&(m=!0)}}),Ma(y)){var p=o.get(y);p&&(x=x&&p.clientOnly,m=m&&p.deferred),o.set(y,Ag(n,x,m))}else{var _=tm(y,n.lookupFragment);if(!_&&y.kind===Ve.FRAGMENT_SPREAD)throw fn(13,y.name.value);_&&a.fragmentMatches(_,i,r,n.variables)&&d(_.selectionSet,Ag(n,x,m))}}}))}(e,n),o},t.prototype.applyMerges=function(e,r,n,i,o){var a,l=this;if(e.map.size&&!zt(n)){var d=!pr(n)&&(zt(r)||Dl(r))?r:void 0,u=n;d&&!o&&(o=[zt(d)?d.__ref:d]);var f,g=function(y,x){return pr(y)?typeof x=="number"?y[x]:void 0:i.store.getFieldValue(y,String(x))};e.map.forEach(function(y,x){var m=g(d,x),p=g(u,x);if(p!==void 0){o&&o.push(x);var _=l.applyMerges(y,m,p,i,o);_!==p&&(f=f||new Map,f.set(x,_)),o&&at(o.pop()===x)}}),f&&(n=pr(u)?u.slice(0):Z({},u),f.forEach(function(y,x){n[x]=y}))}return e.info?this.cache.policies.runMergeFunction(r,n,e.info,i,o&&(a=i.store).getStorage.apply(a,o)):n},t}(),RA=[];function aE(t,e){var r=t.map;return r.has(e)||r.set(e,RA.pop()||{map:new Map}),r.get(e)}function X_(t,e){if(t===e||!e||lp(e))return t;if(!t||lp(t))return e;var r=t.info&&e.info?Z(Z({},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(l,d){o.map.set(d,X_(l,e.map.get(d))),a.delete(d)}),a.forEach(function(l){o.map.set(l,X_(e.map.get(l),t.map.get(l)))})}return o}function lp(t){return!t||!(t.info||t.map.size)}function sE(t,e){var r=t.map,n=r.get(e);n&&lp(n)&&(RA.push(n),r.delete(e))}var lE=new Set;function wq(t,e,r,n){var i=function(g){var y=n.getFieldValue(g,r);return typeof y=="object"&&y},o=i(t);if(o){var a=i(e);if(a&&!zt(o)&&!nr(o,a)&&!Object.keys(o).every(function(g){return n.getFieldValue(a,g)!==void 0})){var l=n.getFieldValue(t,"__typename")||n.getFieldValue(e,"__typename"),d=za(r),u="".concat(l,".").concat(d);if(!lE.has(u)){lE.add(u);var f=[];!pr(o)&&!pr(a)&&[o,a].forEach(function(g){var y=n.getFieldValue(g,"__typename");typeof y=="string"&&!f.includes(y)&&f.push(y)}),globalThis.__DEV__!==!1&&at.warn(14,d,l,f.length?"either ensure all objects of type "+f.join(" and ")+" have an ID or a custom merge function, or ":"",u,Z({},o),Z({},a))}}}}var M0=function(t){Yi(e,t);function e(r){r===void 0&&(r={});var n=t.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new rA(C0),n.assumeImmutableResults=!0,n.makeVar=gq,n.txCount=0,n.config=sq(r),n.addTypename=!!n.config.addTypename,n.policies=new bq({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 iu.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 xq(this,this.storeReader=new hq({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:kA(this.config),canon:r?void 0:i&&i.canon,fragments:o}),o),this.maybeBroadcastWatch=nu(function(a,l){return n.broadcastWatch(a,l)},{max:this.config.resultCacheMaxSize||Co["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(a){var l=a.optimistic?n.optimisticData:n.data;if(Pd(l)){var d=a.optimistic,u=a.id,f=a.variables;return l.makeCacheKey(a.query,a.callback,Sa({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(Z(Z({},r),{store:r.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:i})).result||null}catch(o){if(o instanceof wA)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(Dr.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(Z(Z({},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||vq(this),this.watches.add(r),r.immediate&&this.maybeBroadcastWatch(r),function(){n.watches.delete(r)&&!n.watches.size&&JT(n),n.maybeBroadcastWatch.forget(r)}},e.prototype.gc=function(r){var n;Sa.reset(),sm.reset(),this.addTypenameTransform.resetCache(),(n=this.config.fragments)===null||n===void 0||n.resetCaches();var i=this.optimisticData.gc();return r&&!this.txCount&&(r.resetResultCache?this.resetResultCache(r.resetResultIdentities):r.resetResultIdentities&&this.storeReader.resetCanon()),i},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(zt(r))return r.__ref;try{return this.policies.identify(r)[0]}catch(n){globalThis.__DEV__!==!1&&at.warn(n)}},e.prototype.evict=function(r){if(!r.id){if(Dr.call(r,"id"))return!1;r=Z(Z({},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(),Sa.reset(),r&&r.discardWatches?(this.watches.forEach(function(i){return n.maybeBroadcastWatch.forget(i)}),this.watches.clear(),JT(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,l=r.removeOptimistic,d=r.onWatchUpdated,u,f=function(y){var x=n,m=x.data,p=x.optimisticData;++n.txCount,y&&(n.data=n.optimisticData=y);try{return u=i(n)}finally{--n.txCount,n.data=m,n.optimisticData=p}},g=new Set;return d&&!this.txCount&&this.broadcastWatches(Z(Z({},r),{onWatchUpdated:function(y){return g.add(y),!1}})),typeof a=="string"?this.optimisticData=this.optimisticData.addLayer(a,f):a===!1?f(this.data):f(),typeof l=="string"&&(this.optimisticData=this.optimisticData.removeLayer(l)),d&&g.size?(this.broadcastWatches(Z(Z({},r),{onWatchUpdated:function(y,x){var m=d.call(this,y,x);return m!==!1&&g.delete(y),m}})),g.size&&g.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||!nr(i.result,o.result))&&r.callback(r.lastDiff=o,i)},e}(xA);globalThis.__DEV__!==!1&&(M0.prototype.getMemoryInternals=k9);var Ut;(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"})(Ut||(Ut={}));function ou(t){return t?t<7:!1}var cE=Object.assign,Tq=Object.hasOwnProperty,J_=function(t){Yi(e,t);function e(r){var n=r.queryManager,i=r.queryInfo,o=r.options,a=t.call(this,function(_){try{var v=_._subscription._observer;v&&!v.error&&(v.error=Eq)}catch{}var b=!a.observers.size;a.observers.add(_);var w=a.last;return w&&w.error?_.error&&_.error(w.error):w&&w.result&&_.next&&_.next(w.result),b&&a.reobserve().catch(function(){}),function(){a.observers.delete(_)&&!a.observers.size&&a.tearDownQuery()}})||this;a.observers=new Set,a.subscriptions=new Set,a.queryInfo=i,a.queryManager=n,a.waitForOwnResult=Sg(o.fetchPolicy),a.isTornDown=!1;var l=n.defaultOptions.watchQuery,d=l===void 0?{}:l,u=d.fetchPolicy,f=u===void 0?"cache-first":u,g=o.fetchPolicy,y=g===void 0?f:g,x=o.initialFetchPolicy,m=x===void 0?y==="standby"?f:y:x;a.options=Z(Z({},o),{initialFetchPolicy:m,fetchPolicy:y}),a.queryId=i.queryId||n.generateQueryId();var p=ku(a.query);return a.queryName=p&&p.name&&p.name.value,a}return Object.defineProperty(e.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),e.prototype.result=function(){var r=this;return new Promise(function(n,i){var o={next:function(l){n(l),r.observers.delete(o),r.observers.size||r.queryManager.removeQuery(r.queryId),setTimeout(function(){a.unsubscribe()},0)},error:i},a=r.subscribe(o)})},e.prototype.resetDiff=function(){this.queryInfo.resetDiff()},e.prototype.getCurrentResult=function(r){r===void 0&&(r=!0);var n=this.getLastResult(!0),i=this.queryInfo.networkStatus||n&&n.networkStatus||Ut.ready,o=Z(Z({},n),{loading:ou(i),networkStatus:i}),a=this.options.fetchPolicy,l=a===void 0?"cache-first":a;if(!(Sg(l)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers))if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var d=this.queryInfo.getDiff();(d.complete||this.options.returnPartialData)&&(o.data=d.result),nr(o.data,{})&&(o.data=void 0),d.complete?(delete o.partial,d.complete&&o.networkStatus===Ut.loading&&(l==="cache-first"||l==="cache-only")&&(o.networkStatus=Ut.ready,o.loading=!1)):o.partial=!0,globalThis.__DEV__!==!1&&!d.complete&&!this.options.partialRefetch&&!o.loading&&!o.data&&!o.error&&LA(d.missing)}return r&&this.updateLastResult(o),o},e.prototype.isDifferentFromLastResult=function(r,n){if(!this.last)return!0;var i=this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!bA(this.query,this.last.result,r,this.variables):!nr(this.last.result,r);return i||n&&!nr(this.last.variables,n)},e.prototype.getLast=function(r,n){var i=this.last;if(i&&i[r]&&(!n||nr(i.variables,this.variables)))return i[r]},e.prototype.getLastResult=function(r){return this.getLast("result",r)},e.prototype.getLastError=function(r){return this.getLast("error",r)},e.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},e.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},e.prototype.refetch=function(r){var n,i={pollInterval:0},o=this.options.fetchPolicy;if(o==="cache-and-network"?i.fetchPolicy=o:o==="no-cache"?i.fetchPolicy="no-cache":i.fetchPolicy="network-only",globalThis.__DEV__!==!1&&r&&Tq.call(r,"variables")){var a=j3(this.query),l=a.variableDefinitions;(!l||!l.some(function(d){return d.variable.name.value==="variables"}))&&globalThis.__DEV__!==!1&&at.warn(20,r,((n=a.name)===null||n===void 0?void 0:n.value)||a)}return r&&!nr(this.options.variables,r)&&(i.variables=this.options.variables=Z(Z({},this.options.variables),r)),this.queryInfo.resetLastWrite(),this.reobserve(i,Ut.refetch)},e.prototype.fetchMore=function(r){var n=this,i=Z(Z({},r.query?r:Z(Z(Z(Z({},this.options),{query:this.options.query}),r),{variables:Z(Z({},this.options.variables),r.variables)})),{fetchPolicy:"no-cache"});i.query=this.transformDocument(i.query);var o=this.queryManager.generateQueryId();this.lastQuery=r.query?this.transformDocument(this.options.query):i.query;var a=this.queryInfo,l=a.networkStatus;a.networkStatus=Ut.fetchMore,i.notifyOnNetworkStatusChange&&this.observe();var d=new Set;return this.queryManager.fetchQuery(o,i,Ut.fetchMore).then(function(u){return n.queryManager.removeQuery(o),a.networkStatus===Ut.fetchMore&&(a.networkStatus=l),n.queryManager.cache.batch({update:function(f){var g=r.updateQuery;g?f.updateQuery({query:n.query,variables:n.variables,returnPartialData:!0,optimistic:!1},function(y){return g(y,{fetchMoreResult:u.data,variables:i.variables})}):f.writeQuery({query:i.query,variables:i.variables,data:u.data})},onWatchUpdated:function(f){d.add(f.query)}}),u}).finally(function(){d.has(n.query)||DA(n)})},e.prototype.subscribeToMore=function(r){var n=this,i=this.queryManager.startGraphQLSubscription({query:r.document,variables:r.variables,context:r.context}).subscribe({next:function(o){var a=r.updateQuery;a&&n.updateQuery(function(l,d){var u=d.variables;return a(l,{subscriptionData:o,variables:u})})},error:function(o){if(r.onError){r.onError(o);return}globalThis.__DEV__!==!1&&at.error(21,o)}});return this.subscriptions.add(i),function(){n.subscriptions.delete(i)&&i.unsubscribe()}},e.prototype.setOptions=function(r){return this.reobserve(r)},e.prototype.silentSetOptions=function(r){var n=ic(this.options,r||{});cE(this.options,n)},e.prototype.setVariables=function(r){return nr(this.variables,r)?this.observers.size?this.result():Promise.resolve():(this.options.variables=r,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:r},Ut.setVariables):Promise.resolve())},e.prototype.updateQuery=function(r){var n=this.queryManager,i=n.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,o=r(i,{variables:this.variables});o&&(n.cache.writeQuery({query:this.options.query,data:o,variables:this.variables}),n.broadcastQueries())},e.prototype.startPolling=function(r){this.options.pollInterval=r,this.updatePolling()},e.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},e.prototype.applyNextFetchPolicy=function(r,n){if(n.nextFetchPolicy){var i=n.fetchPolicy,o=i===void 0?"cache-first":i,a=n.initialFetchPolicy,l=a===void 0?o:a;o==="standby"||(typeof n.nextFetchPolicy=="function"?n.fetchPolicy=n.nextFetchPolicy(o,{reason:r,options:n,observable:this,initialFetchPolicy:l}):r==="variables-changed"?n.fetchPolicy=l:n.fetchPolicy=n.nextFetchPolicy)}return n.fetchPolicy},e.prototype.fetch=function(r,n,i){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,r,n,i)},e.prototype.updatePolling=function(){var r=this;if(!this.queryManager.ssrMode){var n=this,i=n.pollingInfo,o=n.options.pollInterval;if(!o||!this.hasObservers()){i&&(clearTimeout(i.timeout),delete this.pollingInfo);return}if(!(i&&i.interval===o)){at(o,22);var a=i||(this.pollingInfo={});a.interval=o;var l=function(){var u,f;r.pollingInfo&&(!ou(r.queryInfo.networkStatus)&&!(!((f=(u=r.options).skipPollAttempt)===null||f===void 0)&&f.call(u))?r.reobserve({fetchPolicy:r.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},Ut.poll).then(d,d):d())},d=function(){var u=r.pollingInfo;u&&(clearTimeout(u.timeout),u.timeout=setTimeout(l,u.interval))};d()}}},e.prototype.updateLastResult=function(r,n){n===void 0&&(n=this.variables);var i=this.getLastError();return i&&this.last&&!nr(n,this.last.variables)&&(i=void 0),this.last=Z({result:this.queryManager.assumeImmutableResults?r:cA(r),variables:n},i?{error:i}:null)},e.prototype.reobserveAsConcast=function(r,n){var i=this;this.isTornDown=!1;var o=n===Ut.refetch||n===Ut.fetchMore||n===Ut.poll,a=this.options.variables,l=this.options.fetchPolicy,d=ic(this.options,r||{}),u=o?d:cE(this.options,d),f=this.transformDocument(u.query);this.lastQuery=f,o||(this.updatePolling(),r&&r.variables&&!nr(r.variables,a)&&u.fetchPolicy!=="standby"&&u.fetchPolicy===l&&(this.applyNextFetchPolicy("variables-changed",u),n===void 0&&(n=Ut.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=Sg(u.fetchPolicy));var g=function(){i.concast===m&&(i.waitForOwnResult=!1)},y=u.variables&&Z({},u.variables),x=this.fetch(u,n,f),m=x.concast,p=x.fromLink,_={next:function(v){nr(i.variables,y)&&(g(),i.reportResult(v,y))},error:function(v){nr(i.variables,y)&&(g(),i.reportError(v,y))}};return!o&&(p||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=m,this.observer=_),m.addObserver(_),m},e.prototype.reobserve=function(r,n){return this.reobserveAsConcast(r,n).promise},e.prototype.resubscribeAfterError=function(){for(var r=[],n=0;n0},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}(Yt);dA(J_);function DA(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(i,o){return this.nextFetchPolicy=n,typeof this.nextFetchPolicy=="function"?this.nextFetchPolicy(i,o):r}}):t.reobserve()}function Eq(t){globalThis.__DEV__!==!1&&at.error(23,t.message,t.stack)}function LA(t){globalThis.__DEV__!==!1&&t&&globalThis.__DEV__!==!1&&at.debug(24,t)}function Sg(t){return t==="network-only"||t==="no-cache"||t==="standby"}var MA=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=PT(r.resolvers,n)}):this.resolvers=PT(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){return ha(this,arguments,void 0,function(r){var n=r.document,i=r.remoteResult,o=r.context,a=r.variables,l=r.onlyRunForcedResolvers,d=l===void 0?!1:l;return pa(this,function(u){return n?[2,this.resolveDocument(n,i.data,o,a,this.fragmentMatcher,d).then(function(f){return Z(Z({},i),{data:f.result})})]:[2,i]})})},t.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},t.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},t.prototype.clientQuery=function(e){return tu(["client"],e)&&this.resolvers?e:null},t.prototype.serverQuery=function(e){return oA(e)},t.prototype.prepareContext=function(e){var r=this.cache;return Z(Z({},e),{cache:r,getCacheKey:function(n){return r.identify(n)}})},t.prototype.addExportedVariables=function(e){return ha(this,arguments,void 0,function(r,n,i){return n===void 0&&(n={}),i===void 0&&(i={}),pa(this,function(o){return r?[2,this.resolveDocument(r,this.buildRootValueFromCache(r,n)||{},this.prepareContext(i),n).then(function(a){return Z(Z({},n),a.exportedVariables)})]:[2,Z({},n)]})})},t.prototype.shouldForceResolvers=function(e){var r=!1;return Hi(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 b0}}}),r},t.prototype.buildRootValueFromCache=function(e,r){return this.cache.diff({query:uz(e),variables:r,returnPartialData:!0,optimistic:!1}).result},t.prototype.resolveDocument=function(e,r){return ha(this,arguments,void 0,function(n,i,o,a,l,d){var u,f,g,y,x,m,p,_,v,b,w;return o===void 0&&(o={}),a===void 0&&(a={}),l===void 0&&(l=function(){return!0}),d===void 0&&(d=!1),pa(this,function(E){return u=Cu(n),f=nm(n),g=em(f),y=this.collectSelectionsToResolve(u,g),x=u.operation,m=x?x.charAt(0).toUpperCase()+x.slice(1):"Query",p=this,_=p.cache,v=p.client,b={fragmentMap:g,context:Z(Z({},o),{cache:_,client:v}),variables:a,fragmentMatcher:l,defaultOperationType:m,exportedVariables:{},selectionsToResolve:y,onlyRunForcedResolvers:d},w=!1,[2,this.resolveSelectionSet(u.selectionSet,w,i,b).then(function(C){return{result:C,exportedVariables:b.exportedVariables}})]})})},t.prototype.resolveSelectionSet=function(e,r,n,i){return ha(this,void 0,void 0,function(){var o,a,l,d,u,f=this;return pa(this,function(g){return o=i.fragmentMap,a=i.context,l=i.variables,d=[n],u=function(y){return ha(f,void 0,void 0,function(){var x,m;return pa(this,function(p){return!r&&!i.selectionsToResolve.has(y)?[2]:Tu(y,l)?Ma(y)?[2,this.resolveField(y,r,n,i).then(function(_){var v;typeof _<"u"&&d.push((v={},v[La(y)]=_,v))})]:(H9(y)?x=y:(x=o[y.name.value],at(x,18,y.name.value)),x&&x.typeCondition&&(m=x.typeCondition.name.value,i.fragmentMatcher(n,m,a))?[2,this.resolveSelectionSet(x.selectionSet,r,n,i).then(function(_){d.push(_)})]:[2]):[2]})})},[2,Promise.all(e.selections.map(u)).then(function(){return lm(d)})]})})},t.prototype.resolveField=function(e,r,n,i){return ha(this,void 0,void 0,function(){var o,a,l,d,u,f,g,y,x,m=this;return pa(this,function(p){return n?(o=i.variables,a=e.name.value,l=La(e),d=a!==l,u=n[l]||n[a],f=Promise.resolve(u),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(g=n.__typename||i.defaultOperationType,y=this.resolvers&&this.resolvers[g],y&&(x=y[d?a:l],x&&(f=Promise.resolve(P0.withValue(this.cache,x,[n,rm(e,o),i.context,{field:e,fragmentMap:i.fragmentMap}]))))),[2,f.then(function(_){var v,b;if(_===void 0&&(_=u),e.directives&&e.directives.forEach(function(E){E.name.value==="export"&&E.arguments&&E.arguments.forEach(function(C){C.name.value==="as"&&C.value.kind==="StringValue"&&(i.exportedVariables[C.value.value]=_)})}),!e.selectionSet||_==null)return _;var w=(b=(v=e.directives)===null||v===void 0?void 0:v.some(function(E){return E.name.value==="client"}))!==null&&b!==void 0?b:!1;if(Array.isArray(_))return m.resolveSubSelectedArray(e,r||w,_,i);if(e.selectionSet)return m.resolveSelectionSet(e.selectionSet,r||w,_,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 l=new Set;i.set(a,l),Hi(a,{Directive:function(d,u,f,g,y){d.name.value==="client"&&y.forEach(function(x){n(x)&&wT(x)&&l.add(x)})},FragmentSpread:function(d,u,f,g,y){var x=r[d.name.value];at(x,19,d.name.value);var m=o(x);m.size>0&&(y.forEach(function(p){n(p)&&wT(p)&&l.add(p)}),l.add(d),m.forEach(function(p){l.add(p)}))}})}return i.get(a)}return o(e)},t}(),Ll=new(xc?WeakMap:Map);function Ig(t,e){var r=t[e];typeof r=="function"&&(t[e]=function(){return Ll.set(t,(Ll.get(t)+1)%1e15),r.apply(this,arguments)})}function dE(t){t.notifyTimeout&&(clearTimeout(t.notifyTimeout),t.notifyTimeout=void 0)}var $g=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;Ll.has(n)||(Ll.set(n,0),Ig(n,"evict"),Ig(n,"modify"),Ig(n,"reset"))}return t.prototype.init=function(e){var r=e.networkStatus||Ut.loading;return this.variables&&this.networkStatus!==Ut.loading&&!nr(this.variables,e.variables)&&(r=Ut.setVariables),nr(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(){dE(this),this.dirty=!1},t.prototype.resetDiff=function(){this.lastDiff=void 0},t.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&nr(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,i=this.lastDiff&&this.lastDiff.diff;e&&!e.complete&&(!((n=this.observableQuery)===null||n===void 0)&&n.getLastError())||(this.updateLastDiff(e),!this.dirty&&!nr(i&&i.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():DA(e)})):delete this.oqListener)},t.prototype.notify=function(){var e=this;dE(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(ou(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=Z(Z({},this.getDiffOptions(e)),{watcher:this,callback:function(o){return r.setDiff(o)}});(!this.lastWatch||!nr(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===Ll.get(this.cache)&&nr(r,n.variables)&&nr(e.data,n.result.data))},t.prototype.markResult=function(e,r,n,i){var o=this,a=new Na,l=Wi(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&Wi(e.incremental)){var d=uA(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=l,n.fetchPolicy==="no-cache"?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):i!==0&&(Z_(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:Ll.get(o.cache)};else if(o.lastDiff&&o.lastDiff.diff.complete){e.data=o.lastDiff.diff.result;return}var g=o.getDiffOptions(n.variables),y=f.diff(g);!o.stopped&&nr(o.variables,n.variables)&&o.updateWatch(n.variables),o.updateLastDiff(y,g),y.complete&&(e.data=y.result)}):this.lastWrite=void 0)},t.prototype.markReady=function(){return this.networkError=null,this.networkStatus=Ut.ready},t.prototype.markError=function(e){return this.networkStatus=Ut.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},t}();function Z_(t,e){e===void 0&&(e="none");var r=e==="ignore"||e==="all",n=!Bh(t);return!n&&r&&t.data&&(n=!0),n}var kq=Object.prototype.hasOwnProperty,uE=Object.create(null),Cq=function(){function t(e){var r=e.cache,n=e.link,i=e.defaultOptions,o=e.documentTransform,a=e.queryDeduplication,l=a===void 0?!1:a,d=e.onBroadcast,u=e.ssrMode,f=u===void 0?!1:u,g=e.clientAwareness,y=g===void 0?{}:g,x=e.localState,m=e.assumeImmutableResults,p=m===void 0?!!r.assumeImmutableResults:m,_=e.defaultContext,v=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new N3(Co["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new bc(!1);var b=new rA(function(w){return v.cache.transformDocument(w)},{cache:!1});this.cache=r,this.link=n,this.defaultOptions=i||Object.create(null),this.queryDeduplication=l,this.clientAwareness=y,this.localState=x||new MA({cache:r}),this.ssrMode=f,this.assumeImmutableResults=p,this.documentTransform=o?b.concat(o).concat(b):b,this.defaultContext=_||Object.create(null),(this.onBroadcast=d)&&(this.mutationStore=Object.create(null))}return t.prototype.stop=function(){var e=this;this.queries.forEach(function(r,n){e.stopQueryNoBroadcast(n)}),this.cancelPendingFetches(fn(25))},t.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(r){return r(e)}),this.fetchCancelFns.clear()},t.prototype.mutate=function(e){return ha(this,arguments,void 0,function(r){var n,i,o,a,l,d,u,f=r.mutation,g=r.variables,y=r.optimisticResponse,x=r.updateQueries,m=r.refetchQueries,p=m===void 0?[]:m,_=r.awaitRefetchQueries,v=_===void 0?!1:_,b=r.update,w=r.onQueryUpdated,E=r.fetchPolicy,C=E===void 0?((d=this.defaultOptions.mutate)===null||d===void 0?void 0:d.fetchPolicy)||"network-only":E,S=r.errorPolicy,P=S===void 0?((u=this.defaultOptions.mutate)===null||u===void 0?void 0:u.errorPolicy)||"none":S,R=r.keepRootFields,D=r.context;return pa(this,function(z){switch(z.label){case 0:return at(f,26),at(C==="network-only"||C==="no-cache",27),n=this.generateMutationId(),f=this.cache.transformForLink(this.transform(f)),i=this.getDocumentInfo(f).hasClientExports,g=this.getVariables(f,g),i?[4,this.localState.addExportedVariables(f,g,D)]:[3,2];case 1:g=z.sent(),z.label=2;case 2:return o=this.mutationStore&&(this.mutationStore[n]={mutation:f,variables:g,loading:!0,error:null}),a=y&&this.markMutationOptimistic(y,{mutationId:n,document:f,variables:g,fetchPolicy:C,errorPolicy:P,context:D,updateQueries:x,update:b,keepRootFields:R}),this.broadcastQueries(),l=this,[2,new Promise(function(j,q){return Tg(l.getObservableFromLink(f,Z(Z({},D),{optimisticResponse:a?y:void 0}),g,!1),function(J){if(Bh(J)&&P==="none")throw new vo({graphQLErrors:H_(J)});o&&(o.loading=!1,o.error=null);var be=Z({},J);return typeof p=="function"&&(p=p(be)),P==="ignore"&&Bh(be)&&delete be.errors,l.markMutationResult({mutationId:n,result:be,document:f,variables:g,fetchPolicy:C,errorPolicy:P,context:D,update:b,updateQueries:x,awaitRefetchQueries:v,refetchQueries:p,removeOptimistic:a?n:void 0,onQueryUpdated:w,keepRootFields:R})}).subscribe({next:function(J){l.broadcastQueries(),(!("hasNext"in J)||J.hasNext===!1)&&j(J)},error:function(J){o&&(o.loading=!1,o.error=J),a&&l.cache.removeOptimistic(n),l.broadcastQueries(),q(J instanceof vo?J:new vo({networkError:J}))}})})]}})})},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&&Z_(i,e.errorPolicy)){if(Wl(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),Wl(i)&&Wi(i.incremental)){var l=r.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),d=void 0;l.result&&(d=uA(l.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(g,y){var x=g.observableQuery,m=x&&x.queryName;if(!(!m||!kq.call(u,m))){var p=u[m],_=n.queries.get(y),v=_.document,b=_.variables,w=r.diff({query:v,variables:b,returnPartialData:!0,optimistic:!1}),E=w.result,C=w.complete;if(C&&E){var S=p(E,{mutationResult:i,queryName:v&&q_(v)||void 0,queryVariables:b});S&&o.push({result:S,dataId:"ROOT_QUERY",query:v,variables:b})}}})}if(o.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var f=[];if(this.refetchQueries({updateCache:function(g){a||o.forEach(function(p){return g.write(p)});var y=e.update,x=!Cz(i)||Wl(i)&&!i.hasNext;if(y){if(!a){var m=g.diff({id:"ROOT_MUTATION",query:n.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});m.complete&&(i=Z(Z({},i),{data:m.result}),"incremental"in i&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}x&&y(g,i,{context:e.context,variables:e.variables})}!a&&!e.keepRootFields&&x&&g.modify({id:"ROOT_MUTATION",fields:function(p,_){var v=_.fieldName,b=_.DELETE;return v==="__typename"?p:b}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(g){return f.push(g)}),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,{IGNORE:uE}):e;return i===uE?!1:(this.cache.recordOptimisticTransaction(function(o){try{n.markMutationResult(Z(Z({},r),{result:{data:i}}),o)}catch(a){globalThis.__DEV__!==!1&&at.error(a)}},r.mutationId),!0)},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:l9(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:tu(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:iA([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:x0(ku(e)),asQuery:Z(Z({},e),{definitions:e.definitions.map(function(i){return i.kind==="OperationDefinition"&&i.operation!=="query"?Z(Z({},i),{operation:"query"}):i})})};r.set(e,n)}return r.get(e)},t.prototype.getVariables=function(e,r){return Z(Z({},this.getDocumentInfo(e).defaultVars),r)},t.prototype.watchQuery=function(e){var r=this.transform(e.query);e=Z(Z({},e),{variables:this.getVariables(r,e.variables)}),typeof e.notifyOnNetworkStatusChange>"u"&&(e.notifyOnNetworkStatusChange=!1);var n=new $g(this),i=new J_({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()),at(e.query,28),at(e.query.kind==="Document",29),at(!e.returnPartialData,30),at(!e.pollInterval,31),this.fetchQuery(r,Z(Z({},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(fn(32)),this.queries.forEach(function(r){r.observableQuery?r.networkStatus=Ut.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):R9(a)?i.set(r.transform(a),!1):hr(a)&&a.query&&o.add(a)}),this.queries.forEach(function(a,l){var d=a.observableQuery,u=a.document;if(d){if(e==="all"){n.set(l,d);return}var f=d.queryName,g=d.options.fetchPolicy;if(g==="standby"||e==="active"&&!d.hasObservers())return;(e==="active"||f&&i.has(f)||u&&i.has(u))&&(n.set(l,d),f&&i.set(f,!0),u&&i.set(u,!0))}}),o.size&&o.forEach(function(a){var l=O_("legacyOneTimeQuery"),d=r.getQuery(l).init({document:a.query,variables:a.variables}),u=new J_({queryManager:r,queryInfo:d,options:Z(Z({},a),{fetchPolicy:"network-only"})});at(u.queryId===l),d.setObservableQuery(u),n.set(l,u)}),globalThis.__DEV__!==!1&&i.size&&i.forEach(function(a,l){a||globalThis.__DEV__!==!1&&at.warn(typeof l=="string"?33:34,l)}),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,l=e.variables,d=e.context,u=d===void 0?{}:d;n=this.transform(n),l=this.getVariables(n,l);var f=function(y){return r.getObservableFromLink(n,u,y).map(function(x){i!=="no-cache"&&(Z_(x,a)&&r.cache.write({query:n,result:x.data,dataId:"ROOT_SUBSCRIPTION",variables:y}),r.broadcastQueries());var m=Bh(x),p=Vz(x);if(m||p){var _={};if(m&&(_.graphQLErrors=x.errors),p&&(_.protocolErrors=x.extensions[O0]),a==="none"||p)throw new vo(_)}return a==="ignore"&&delete x.errors,x})};if(this.getDocumentInfo(n).hasClientExports){var g=this.localState.addExportedVariables(n,l,u).then(f);return new Yt(function(y){var x=null;return g.then(function(m){return x=m.subscribe(y)},y.error),function(){return x&&x.unsubscribe()}})}return f(l)},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 l,d=this.getDocumentInfo(e),u=d.serverQuery,f=d.clientQuery;if(u){var g=this,y=g.inFlightLinkObservables,x=g.link,m={query:u,variables:n,operationName:q_(u)||void 0,context:this.prepareContext(Z(Z({},r),{forceFetch:!i}))};if(r=m.context,i){var p=sm(u),_=Sa(n),v=y.lookup(p,_);if(l=v.observable,!l){var b=new Cl([W_(x,m)]);l=v.observable=b,b.beforeNext(function(){y.remove(p,_)})}}else l=new Cl([W_(x,m)])}else l=new Cl([Yt.of({data:{}})]),r=this.prepareContext(r);return f&&(l=Tg(l,function(w){return o.localState.runResolvers({document:f,remoteResult:w,context:r,variables:n})})),l},t.prototype.getResultsFromLink=function(e,r,n){var i=e.lastRequestId=this.generateRequestId(),o=this.cache.transformForLink(n.query);return Tg(this.getObservableFromLink(o,n.context,n.variables),function(a){var l=H_(a),d=l.length>0;if(i>=e.lastRequestId){if(d&&n.errorPolicy==="none")throw e.markError(new vo({graphQLErrors:l}));e.markResult(a,o,n,r),e.markReady()}var u={data:a.data,loading:!1,networkStatus:Ut.ready};return d&&n.errorPolicy!=="ignore"&&(u.errors=l,u.networkStatus=Ut.error),u},function(a){var l=hA(a)?a:new vo({networkError:a});throw i>=e.lastRequestId&&e.markError(l),l})},t.prototype.fetchConcastWithInfo=function(e,r,n,i){var o=this;n===void 0&&(n=Ut.loading),i===void 0&&(i=r.query);var a=this.getVariables(i,r.variables),l=this.getQuery(e),d=this.defaultOptions.watchQuery,u=r.fetchPolicy,f=u===void 0?d&&d.fetchPolicy||"cache-first":u,g=r.errorPolicy,y=g===void 0?d&&d.errorPolicy||"none":g,x=r.returnPartialData,m=x===void 0?!1:x,p=r.notifyOnNetworkStatusChange,_=p===void 0?!1:p,v=r.context,b=v===void 0?{}:v,w=Object.assign({},r,{query:i,variables:a,fetchPolicy:f,errorPolicy:y,returnPartialData:m,notifyOnNetworkStatusChange:_,context:b}),E=function(D){w.variables=D;var z=o.fetchQueryByPolicy(l,w,n);return w.fetchPolicy!=="standby"&&z.sources.length>0&&l.observableQuery&&l.observableQuery.applyNextFetchPolicy("after-fetch",r),z},C=function(){return o.fetchCancelFns.delete(e)};this.fetchCancelFns.set(e,function(D){C(),setTimeout(function(){return S.cancel(D)})});var S,P;if(this.getDocumentInfo(w.query).hasClientExports)S=new Cl(this.localState.addExportedVariables(w.query,w.variables,w.context).then(E).then(function(D){return D.sources})),P=!0;else{var R=E(w.variables);P=R.fromLink,S=new Cl(R.sources)}return S.promise.then(C,C),{concast:S,fromLink:P}},t.prototype.refetchQueries=function(e){var r=this,n=e.updateCache,i=e.include,o=e.optimistic,a=o===void 0?!1:o,l=e.removeOptimistic,d=l===void 0?a?O_("refetchQueries"):void 0:l,u=e.onQueryUpdated,f=new Map;i&&this.getObservableQueries(i).forEach(function(y,x){f.set(x,{oq:y,lastDiff:r.getQuery(x).getDiff()})});var g=new Map;return n&&this.cache.batch({update:n,optimistic:a&&d||!1,removeOptimistic:d,onWatchUpdated:function(y,x,m){var p=y.watcher instanceof $g&&y.watcher.observableQuery;if(p){if(u){f.delete(p.queryId);var _=u(p,x,m);return _===!0&&(_=p.refetch()),_!==!1&&g.set(p,_),_}u!==null&&f.set(p.queryId,{oq:p,lastDiff:m,diff:x})}}}),f.size&&f.forEach(function(y,x){var m=y.oq,p=y.lastDiff,_=y.diff,v;if(u){if(!_){var b=m.queryInfo;b.reset(),_=b.getDiff()}v=u(m,_,p)}(!u||v===!0)&&(v=m.refetch()),v!==!1&&g.set(m,v),x.indexOf("legacyOneTimeQuery")>=0&&r.stopQueryNoBroadcast(x)}),d&&this.cache.removeOptimistic(d),g},t.prototype.fetchQueryByPolicy=function(e,r,n){var i=this,o=r.query,a=r.variables,l=r.fetchPolicy,d=r.refetchWritePolicy,u=r.errorPolicy,f=r.returnPartialData,g=r.context,y=r.notifyOnNetworkStatusChange,x=e.networkStatus;e.init({document:o,variables:a,networkStatus:n});var m=function(){return e.getDiff()},p=function(E,C){C===void 0&&(C=e.networkStatus||Ut.loading);var S=E.result;globalThis.__DEV__!==!1&&!f&&!nr(S,{})&&LA(E.missing);var P=function(R){return Yt.of(Z({data:R,loading:ou(C),networkStatus:C},E.complete?null:{partial:!0}))};return S&&i.getDocumentInfo(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:S},context:g,variables:a,onlyRunForcedResolvers:!0}).then(function(R){return P(R.data||void 0)}):u==="none"&&C===Ut.refetch&&Array.isArray(E.missing)?P(void 0):P(S)},_=l==="no-cache"?0:n===Ut.refetch&&d!=="merge"?1:2,v=function(){return i.getResultsFromLink(e,_,{query:o,variables:a,context:g,fetchPolicy:l,errorPolicy:u})},b=y&&typeof x=="number"&&x!==n&&ou(n);switch(l){default:case"cache-first":{var w=m();return w.complete?{fromLink:!1,sources:[p(w,e.markReady())]}:f||b?{fromLink:!0,sources:[p(w),v()]}:{fromLink:!0,sources:[v()]}}case"cache-and-network":{var w=m();return w.complete||f||b?{fromLink:!0,sources:[p(w),v()]}:{fromLink:!0,sources:[v()]}}case"cache-only":return{fromLink:!1,sources:[p(m(),e.markReady())]};case"network-only":return b?{fromLink:!0,sources:[p(m()),v()]}:{fromLink:!0,sources:[v()]};case"no-cache":return b?{fromLink:!0,sources:[p(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 $g(this,e)),this.queries.get(e)},t.prototype.prepareContext=function(e){e===void 0&&(e={});var r=this.localState.prepareContext(e);return Z(Z(Z({},this.defaultContext),r),{clientAwareness:this.clientAwareness})},t}(),fE=!1,F0=function(){function t(e){var r=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw fn(15);var n=e.uri,i=e.credentials,o=e.headers,a=e.cache,l=e.documentTransform,d=e.ssrMode,u=d===void 0?!1:d,f=e.ssrForceFetchDelay,g=f===void 0?0:f,y=e.connectToDevTools,x=y===void 0?typeof window=="object"&&!window.__APOLLO_CLIENT__&&globalThis.__DEV__!==!1:y,m=e.queryDeduplication,p=m===void 0?!0:m,_=e.defaultOptions,v=e.defaultContext,b=e.assumeImmutableResults,w=b===void 0?a.assumeImmutableResults:b,E=e.resolvers,C=e.typeDefs,S=e.fragmentMatcher,P=e.name,R=e.version,D=e.link;D||(D=n?new tq({uri:n,credentials:i,headers:o}):wc.empty()),this.link=D,this.cache=a,this.disableNetworkFetches=u||g>0,this.queryDeduplication=p,this.defaultOptions=_||Object.create(null),this.typeDefs=C,g&&setTimeout(function(){return r.disableNetworkFetches=!1},g),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=v0,this.localState=new MA({cache:a,client:this,resolvers:E,fragmentMatcher:S}),this.queryManager=new Cq({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:v,documentTransform:l,queryDeduplication:p,ssrMode:u,clientAwareness:{name:P,version:R},localState:this.localState,assumeImmutableResults:w,onBroadcast:x?function(){r.devToolsHookCb&&r.devToolsHookCb({action:{},state:{queries:r.queryManager.getQueryStore(),mutations:r.queryManager.mutationStore||{}},dataWithOptimisticResults:r.cache.extract(!0)})}:void 0}),x&&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}!fE&&globalThis.__DEV__!==!1&&(fE=!0,setTimeout(function(){if(typeof window<"u"&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__&&/^(https?|file):$/.test(window.location.protocol)){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&&at.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=Eg(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&(e.fetchPolicy==="network-only"||e.fetchPolicy==="cache-and-network")&&(e=Z(Z({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},t.prototype.query=function(e){return this.defaultOptions.query&&(e=Eg(this.defaultOptions.query,e)),at(e.fetchPolicy!=="cache-and-network",16),this.disableNetworkFetches&&e.fetchPolicy==="network-only"&&(e=Z(Z({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},t.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Eg(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.watchFragment=function(e){return this.cache.watchFragment(e)},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 W_(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,l){n.push(l),i.push(a)});var o=Promise.all(i);return o.queries=n,o.results=i,o.catch(function(a){globalThis.__DEV__!==!1&&at.debug(17,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},Object.defineProperty(t.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),t}();globalThis.__DEV__!==!1&&(F0.prototype.getMemoryInternals=E9);var Hh=new Map,ey=new Map,FA=!0,cp=!1;function NA(t){return t.replace(/[\s,]+/g," ").trim()}function Aq(t){return NA(t.source.body.substring(t.start,t.end))}function Sq(t){var e=new Set,r=[];return t.definitions.forEach(function(n){if(n.kind==="FragmentDefinition"){var i=n.name.value,o=Aq(n.loc),a=ey.get(i);a&&!a.has(o)?FA&&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||q_.set(i,a=new Set),a.add(o),e.has(o)||(e.add(o),r.push(n))}else r.push(n)}),ee(ee({},t),{definitions:r})}function Sq(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 Iq(t){var e=AA(t);if(!Dh.has(e)){var r=JN(t,{experimentalFragmentVariables:Zh,allowLegacyFragmentVariables:Zh});if(!r||r.kind!=="Document")throw new Error("Not a valid GraphQL document.");Dh.set(e,Sq(Aq(r)))}return Dh.get(e)}function ue(t){for(var e=[],r=1;ri?yg(r,i):_g(r,r.default);else{const i=on(SA,null),o=on(Dq,null);e=a=>{if(a){const d=yg(i,a);return d||yg(r,a)}const l=_g(i,o);return l||_g(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 Lq={};function bg(t){return Qt(t)?t:typeof t=="function"?It(t):Le(t)}function Mq(t){return Qt(t)?t:typeof t=="function"?It(t):t&&ki(t)}function ep(){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 uo=typeof window>"u",Sl={queries:Le(0),mutations:Le(0),subscriptions:Le(0),components:new Map};function Fq(){const t=Gi();if(!t)return{};let e;return Sl.components.has(t)?e=Sl.components.get(t):(Sl.components.set(t,e={queries:Le(0),mutations:Le(0),subscriptions:Le(0)}),za(()=>{Sl.components.delete(t)})),{tracking:e}}function IA(t,e){if(uo)return;const{tracking:r}=Fq();Ot(t,(n,i)=>{if(i!=null&&n!==i){const o=n?1:-1;r&&(r[e].value+=o),Sl[e].value+=o}},{immediate:!0}),Ii(()=>{t.value&&(r&&r[e].value--,Sl[e].value--)})}function Nq(t){IA(t,"queries")}function zq(t){IA(t,"mutations")}function $A(t){return t instanceof Error?rA(t)?t:new fo({networkError:t,errorMessage:t.message}):new fo({networkError:Object.assign(new Error,{originalError:t}),errorMessage:String(t)})}function qq(t){return new fo({graphQLErrors:t,errorMessage:`GraphQL response contains errors: ${t.map(e=>e.message).join(" | ")}`})}function Bq(t,e,r){return OA(t,e,r)}function OA(t,e,r={},n=!1){var i;const o=Gi(),a=Le(),l=bg(t),d=bg(e),u=Mq(r),f=ud(),g=ep(),y=ud(null),x=ep(),m=Le(!1);o&&Nq(m);const p=Le();let _,v=!1,b,w;const E=()=>{v=!0,_&&_()},C=U=>{w=U,b&&b(U)},S=()=>{_=void 0,b=void 0,v=!1,w=void 0};o&&((i=SC)==null||i(()=>{var U;if(!(!k.value||uo&&((U=a.value)==null?void 0:U.prefetch)===!1))return new Promise((xe,Se)=>{_=()=>{S(),xe()},b=Y=>{S(),Se(Y)},v?_():w&&b(w)}).finally(Oe)}));const{resolveClient:P}=Zp();function R(){var U;return P((U=a.value)==null?void 0:U.clientId)}const D=ud();let z,j=!1,q=!1,Z=!0;function we(){var U,xe,Se,Y,ce;if(j||!k.value||uo&&((U=a.value)==null?void 0:U.prefetch)===!1||!De){E();return}uo&&(M(l.value),ae(d.value),A(oe(u))),j=!0,y.value=null,m.value=!0;const Fe=R();if(D.value=Fe.watchQuery({query:De,variables:V??{},...a.value,...uo&&((xe=a.value)==null?void 0:xe.fetchPolicy)!=="no-cache"?{fetchPolicy:"network-only"}:{}}),$e(),!uo&&(Z||!((Se=a.value)!=null&&Se.keepPreviousResult))&&(((Y=a.value)==null?void 0:Y.fetchPolicy)!=="no-cache"||a.value.notifyOnNetworkStatusChange)){const Ye=D.value.getCurrentResult(!1);!Ye.loading||Ye.partial||(ce=a.value)!=null&&ce.notifyOnNetworkStatusChange?(ke(Ye),q=!Ye.loading):Ye.error&&(Be(Ye.error),q=!0)}if(!uo)for(const Ye of ge)W(Ye);Z=!1}function $e(){z&&!z.closed||D.value&&(q=!1,z=D.value.subscribe({next:ke,error:Be}))}function ye(){var U,xe,Se,Y;const ce=P((U=a.value)==null?void 0:U.clientId);return((xe=a.value)==null?void 0:xe.errorPolicy)||((Y=(Se=ce.defaultOptions)==null?void 0:Se.watchQuery)==null?void 0:Y.errorPolicy)}function ke(U){var xe;if(q){q=!1;return}y.value=null,Ie(U);const Se=ye();Se&&Se==="all"&&!U.error&&((xe=U.errors)!=null&&xe.length)&&Re(qq(U.errors)),E()}function Ie(U){f.value=U.data&&Object.keys(U.data).length===0?void 0:U.data,m.value=U.loading,p.value=U.networkStatus,mo(()=>{g.trigger(U,{client:R()})})}function Be(U){if(q){q=!1;return}const xe=$A(U),Se=ye();Se&&Se!=="none"&&Ie(D.value.getCurrentResult()),Re(xe),C(xe),se()}function Re(U){y.value=U,m.value=!1,p.value=8,mo(()=>{x.trigger(U,{client:R()})})}function se(){if(!D.value)return;const U=D.value.getLastError(),xe=D.value.getLastResult();D.value.resetLastResults(),$e(),Object.assign(D.value,{lastError:U,lastResult:xe})}let Te=[];function Oe(){E(),j&&(j=!1,m.value=!1,Te.forEach(U=>U()),Te=[],D.value&&(D.value.stopPolling(),D.value=null),z&&(z.unsubscribe(),z=void 0))}let Ce=!1;function je(){!j||Ce||(Ce=!0,mo(()=>{j&&(Oe(),we()),Ce=!1}))}let Ge,te=!1;function le(){var U,xe;a.value?((U=a.value)!=null&&U.throttle?Ge=a3(a.value.throttle,je):(xe=a.value)!=null&&xe.debounce?Ge=yN(a.value.debounce,je):Ge=je,te=!0):Ge=je}function fe(){!j||Ce||(te||le(),Ge())}let De=l.value;const Ke=Le(n),nt=It(()=>!a.value||a.value.enabled==null||a.value.enabled),k=It(()=>nt.value&&!Ke.value&&!!l.value);Ot(()=>oe(u),A,{deep:!0,immediate:!0});function A(U){a.value&&(a.value.throttle!==U.throttle||a.value.debounce!==U.debounce)&&le(),a.value=U,fe()}Ot(l,M);function M(U){De=U,fe()}let V,G;Ot(()=>{if(k.value)return d.value},ae,{deep:!0,immediate:!0});function ae(U){const xe=JSON.stringify([U,k.value]);xe!==G&&(V=U,fe()),G=xe}function Ae(U=void 0){if(D.value)return U&&(V=U),y.value=null,m.value=!0,D.value.refetch(U).then(xe=>{var Se;const Y=(Se=D.value)==null?void 0:Se.getCurrentResult();return Y&&Ie(Y),xe})}function he(U){if(D.value)return y.value=null,m.value=!0,D.value.fetchMore(U).then(xe=>{var Se;const Y=(Se=D.value)==null?void 0:Se.getCurrentResult();return Y&&Ie(Y),xe})}const ge=[];function ie(U){if(uo)return;const xe=bg(U);Ot(xe,(Se,Y,ce)=>{const Fe=ge.findIndex(pt=>pt.options===Y);Fe!==-1&&ge.splice(Fe,1);const Ye={options:Se,unsubscribeFns:[]};ge.push(Ye),W(Ye),ce(()=>{Ye.unsubscribeFns.forEach(pt=>pt()),Ye.unsubscribeFns=[]})},{immediate:!0})}function W(U){if(!j)return;if(!D.value)throw new Error("Query is not defined");const xe=D.value.subscribeToMore(U.options);Te.push(xe),U.unsubscribeFns.push(xe)}return Ot(k,U=>{U?mo(()=>{we()}):Oe()}),k.value&&we(),o&&Ii(()=>{Oe(),ge.length=0}),{result:f,loading:m,networkStatus:p,error:y,start:we,stop:Oe,restart:fe,forceDisabled:Ke,document:l,variables:d,options:u,query:D,refetch:Ae,fetchMore:he,subscribeToMore:ie,onResult:g.on,onError:x.on}}function Uq(t,e,r){const n=OA(t,e,r,!0);function i(o,a,l){return o&&(n.document.value=o),a&&(n.variables.value=a),l&&Object.assign(Qt(n.options)?n.options.value:n.options,l),n.forceDisabled.value?(n.forceDisabled.value=!1,uo&&n.start(),new Promise((u,f)=>{const{off:g}=n.onResult(x=>{x.loading||(u(x.data),g(),y())}),{off:y}=n.onError(x=>{f(x),g(),y()})})):!1}return{...n,load:i}}function Vq(t,e={}){const r=Gi(),n=Le(!1);r&&zq(n);const i=ud(null),o=Le(!1),a=ep(),l=ep(),{resolveClient:d}=Zp();async function u(f,g={}){let y;typeof t=="function"?y=t():Qt(t)?y=t.value:y=t;let x;typeof e=="function"?x=e():Qt(e)?x=e.value:x=e;const m=d(x.clientId);i.value=null,n.value=!0,o.value=!0;try{const p=await m.mutate({mutation:y,...x,...g,variables:f??x.variables?{...x.variables,...f}:void 0});return n.value=!1,a.trigger(p,{client:m}),p}catch(p){const _=$A(p);if(i.value=_,n.value=!1,l.trigger(_,{client:m}),x.throws==="always"||x.throws!=="never"&&!l.getCount())throw _}return null}return r&&Ii(()=>{n.value=!1}),{mutate:u,loading:n,error:i,called:o,onDone:a.on,onError:l.on}}const Ei=Le([]),mc={initialized:!1,instanceStorage:{}};function jq(t,e){mc.instanceStorage[t]=e}function Hq(t){return mc.instanceStorage[t]}const rE=Dt({__name:"ModalContainerItem",props:{id:Number},setup(t){const e=Le(null),r=Le(),n=t,i=o(n.id);function o(a){return Ei.value.find(l=>l.id===a)}return Ot(()=>e.value,a=>{jq(n.id,a),setTimeout(()=>{r.value&&r.value.firstChild.show()},0)}),(a,l)=>{var d,u,f;return J(),re("div",{ref_key:"containerRef",ref:r,style:{position:"relative","z-index":"2"}},[(J(),kr(fd((d=oe(i))==null?void 0:d.component),HC((u=oe(i))==null?void 0:u.props.value,{modalId:`_modal_${t.id}`,ref_key:"modalRef",ref:e},XM((f=oe(i))==null?void 0:f.events)),null,16,["modalId"]))],512)}}}),Wq={backgroundClose:!0,escClose:!0};class _r extends Error{constructor(r,n=null){super();Wt(this,"isModalError",!0);Wt(this,"details");this.message=r,this.details=n}static Undefined(r){return new _r(`Modal with id: ${r} not founded. The modal window may have been closed earlier.`)}static UndefinedGuardName(r){return new _r(`Guard's name ${r} is not declaration.`)}static NextReject(r){return new _r(`Guard returned false. Modal navigation was stopped. Modal id ${r}`)}static GuardDeclarationType(r){return new _r("Guard's type should be a function. Provided:",r)}static ConfigurationType(r){return new _r("Configuration type must be an Object. Provided",r)}static ConfigurationUndefinedParam(r,n){return new _r(`In configuration founded unknown parameter: ${r}. Available are ${n.join(", ")} `)}static QueueNoEmpty(){return new _r("Modal's queue is not empty. Probably some modal reject closing by onClose hook.")}static EmptyModalQueue(){return new _r("Modal queue is empty.")}static NotInitialized(){return new _r("Modal Container not found. Put container from vue-modal in App's template.")}static ModalComponentNotProvided(){return new _r("The first parameter(VueComponent) was not specified.")}static DuplicatedRouterIntegration(){return new _r("useModalRouter.init should escaped only once.")}static ModalRouterIntegrationNotInitialized(){return new _r("The integration was not initialized. Please, use useModalRouter.init(router).")}static ModalEventNameMustBeString(r){return new _r(`Event name must be a string. Provided: ${r}`)}}const tp={store:{},add(t,e,r){if(typeof r!="function")throw _r.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 PA(t){return t.reduce((e,r)=>e.then(()=>r()),Promise.resolve())}function Gq(t,e,r){return()=>new Promise((n,i)=>{const o=(a=!0)=>{a===!1&&i(_r.NextReject(e)),n()};Promise.resolve(t.call(mc.instanceStorage[e],r)).then(o).catch(a=>i(a))})}function Qq(t){const e={backgroundClose:Wq.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){Wt(this,"id");Wt(this,"events",ki({}));Wt(this,"closed");Wt(this,"component");Wt(this,"props");Wt(this,"backgroundClose",!0);Wt(this,"isRoute",!1);this.id=Ld.modalId++,this.component=e,this.props=Le(r),this.closed=It(()=>!Ei.value.includes(this)),e.beforeModalClose&&tp.add(this.id,"close",e.beforeModalClose);const i=Qq(n);this.backgroundClose=i.backgroundClose,this.isRoute=i.isRoute}close(){return RA(this.id)}set onclose(e){tp.add(this.id,"close",e)}get instance(){return Hq(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)}}};Wt(Ld,"modalId",0),Wt(Ld,"EVENT_PROMPT","vue-modal:____P____R____O____M____P____T");let B_=Ld;function Kq(t={}){return Object.assign({background:!1,esc:!1},t)}function Yq(t,e,r){if(!mc.initialized)throw _r.NotInitialized();if(!t)throw _r.ModalComponentNotProvided();const n=new B_(t,e,r);return Ei.value.push(Ip(n)),n}function RA(t,e={}){const r=Ei.value.findIndex(i=>i.id===t);if(r===-1)return Promise.reject(_r.Undefined(t));const n=tp.get(t,"close").map(i=>Gq(i,t,Kq(e)));return PA(n).then(()=>{Ei.value.splice(r,1),delete mc.instanceStorage[t],tp.delete(t)})}function DA(t,e={},r={}){return Promise.resolve().then(()=>Yq(t,e,r))}function Xq(){return PA(Ei.value.map(t=>()=>t.close()))}function LA(){if(Ei.value.length!==0)return Ei.value[Ei.value.length-1]}function rp(t,e={},r={}){return Xq().then(()=>{if(Ei.value.length)throw _r.QueueNoEmpty()}).then(()=>DA(t,e,r))}function _s(){const t=LA();return t?t.close():Promise.resolve()}function Jq(){mc.initialized=!0,document.addEventListener("keyup",t=>{if(t.key==="Escape"||t.code==="Escape"){const e=LA();if(!e)return;RA(e.id,{esc:!0})}})}const Zq={components:{ContainerModalItem:rE},setup(){return Ur(Jq),()=>Ui(tN,{name:"modal-list"},{default:()=>Ei.value.map(t=>Ui(rE,{key:t.id,id:t.id}))})}};const U_=typeof window<"u",qa=(t,e=!1)=>e?Symbol.for(t):Symbol(t),eB=(t,e,r)=>tB({l:t,k:e,s:r}),tB=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Rr=t=>typeof t=="number"&&isFinite(t),rB=t=>FA(t)==="[object Date]",np=t=>FA(t)==="[object RegExp]",em=t=>At(t)&&Object.keys(t).length===0,an=Object.assign;let nE;const ip=()=>nE||(nE=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function iE(t){return t.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const nB=Object.prototype.hasOwnProperty;function E0(t,e){return nB.call(t,e)}const Cr=Array.isArray,Gr=t=>typeof t=="function",We=t=>typeof t=="string",ir=t=>typeof t=="boolean",qt=t=>t!==null&&typeof t=="object",MA=Object.prototype.toString,FA=t=>MA.call(t),At=t=>{if(!qt(t))return!1;const e=Object.getPrototypeOf(t);return e===null||e.constructor===Object},iB=t=>t==null?"":Cr(t)||At(t)&&t.toString===MA?JSON.stringify(t,null,2):String(t);function oB(t,e=""){return t.reduce((r,n,i)=>i===0?r+n:r+e+n,"")}function k0(t){let e=t;return()=>++e}function aB(t,e){typeof console<"u"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}function sB(t,e,r){return{line:t,column:e,offset:r}}function V_(t,e,r){return{start:t,end:e}}const lB=/\{([0-9a-zA-Z]+)\}/g;function cB(t,...e){return e.length===1&&dB(e[0])&&(e=e[0]),(!e||!e.hasOwnProperty)&&(e={}),t.replace(lB,(r,n)=>e.hasOwnProperty(n)?e[n]:"")}const NA=Object.assign,oE=t=>typeof t=="string",dB=t=>t!==null&&typeof t=="object";function zA(t,e=""){return t.reduce((r,n,i)=>i===0?r+n:r+e+n,"")}const rt={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},uB={[rt.EXPECTED_TOKEN]:"Expected token: '{0}'",[rt.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[rt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[rt.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[rt.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[rt.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[rt.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[rt.EMPTY_PLACEHOLDER]:"Empty placeholder",[rt.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[rt.INVALID_LINKED_FORMAT]:"Invalid linked format",[rt.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[rt.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[rt.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[rt.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[rt.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[rt.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function vc(t,e,r={}){const{domain:n,messages:i,args:o}=r,a=cB((i||uB)[t]||"",...o||[]),l=new SyntaxError(String(a));return l.code=t,e&&(l.location=e),l.domain=n,l}function fB(t){throw t}const oo=" ",hB="\r",nn=` -`,pB="\u2028",mB="\u2029";function vB(t){const e=t;let r=0,n=1,i=1,o=0;const a=P=>e[P]===hB&&e[P+1]===nn,l=P=>e[P]===nn,d=P=>e[P]===mB,u=P=>e[P]===pB,f=P=>a(P)||l(P)||d(P)||u(P),g=()=>r,y=()=>n,x=()=>i,m=()=>o,p=P=>a(P)||d(P)||u(P)?nn:e[P],_=()=>p(r),v=()=>p(r+o);function b(){return o=0,f(r)&&(n++,i=0),a(r)&&r++,r++,i++,e[r]}function w(){return a(r+o)&&o++,o++,e[r+o]}function E(){r=0,n=1,i=1,o=0}function C(P=0){o=P}function S(){const P=r+o;for(;P!==r;)b();o=0}return{index:g,line:y,column:x,peekOffset:m,charAt:p,currentChar:_,currentPeek:v,next:b,peek:w,reset:E,resetPeek:C,skipToPeek:S}}const Qo=void 0,gB=".",aE="'",_B="tokenizer";function yB(t,e={}){const r=e.location!==!1,n=vB(t),i=()=>n.index(),o=()=>sB(n.line(),n.column(),n.index()),a=o(),l=i(),d={currentType:14,offset:l,startLoc:a,endLoc:a,lastType:14,lastOffset:l,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},u=()=>d,{onError:f}=e;function g(k,A,M,...V){const G=u();if(A.column+=M,A.offset+=M,f){const ae=r?V_(G.startLoc,A):null,Ae=vc(k,ae,{domain:_B,args:V});f(Ae)}}function y(k,A,M){k.endLoc=o(),k.currentType=A;const V={type:A};return r&&(V.loc=V_(k.startLoc,k.endLoc)),M!=null&&(V.value=M),V}const x=k=>y(k,14);function m(k,A){return k.currentChar()===A?(k.next(),A):(g(rt.EXPECTED_TOKEN,o(),0,A),"")}function p(k){let A="";for(;k.currentPeek()===oo||k.currentPeek()===nn;)A+=k.currentPeek(),k.peek();return A}function _(k){const A=p(k);return k.skipToPeek(),A}function v(k){if(k===Qo)return!1;const A=k.charCodeAt(0);return A>=97&&A<=122||A>=65&&A<=90||A===95}function b(k){if(k===Qo)return!1;const A=k.charCodeAt(0);return A>=48&&A<=57}function w(k,A){const{currentType:M}=A;if(M!==2)return!1;p(k);const V=v(k.currentPeek());return k.resetPeek(),V}function E(k,A){const{currentType:M}=A;if(M!==2)return!1;p(k);const V=k.currentPeek()==="-"?k.peek():k.currentPeek(),G=b(V);return k.resetPeek(),G}function C(k,A){const{currentType:M}=A;if(M!==2)return!1;p(k);const V=k.currentPeek()===aE;return k.resetPeek(),V}function S(k,A){const{currentType:M}=A;if(M!==8)return!1;p(k);const V=k.currentPeek()===".";return k.resetPeek(),V}function P(k,A){const{currentType:M}=A;if(M!==9)return!1;p(k);const V=v(k.currentPeek());return k.resetPeek(),V}function R(k,A){const{currentType:M}=A;if(!(M===8||M===12))return!1;p(k);const V=k.currentPeek()===":";return k.resetPeek(),V}function D(k,A){const{currentType:M}=A;if(M!==10)return!1;const V=()=>{const ae=k.currentPeek();return ae==="{"?v(k.peek()):ae==="@"||ae==="%"||ae==="|"||ae===":"||ae==="."||ae===oo||!ae?!1:ae===nn?(k.peek(),V()):v(ae)},G=V();return k.resetPeek(),G}function z(k){p(k);const A=k.currentPeek()==="|";return k.resetPeek(),A}function j(k){const A=p(k),M=k.currentPeek()==="%"&&k.peek()==="{";return k.resetPeek(),{isModulo:M,hasSpace:A.length>0}}function q(k,A=!0){const M=(G=!1,ae="",Ae=!1)=>{const he=k.currentPeek();return he==="{"?ae==="%"?!1:G:he==="@"||!he?ae==="%"?!0:G:he==="%"?(k.peek(),M(G,"%",!0)):he==="|"?ae==="%"||Ae?!0:!(ae===oo||ae===nn):he===oo?(k.peek(),M(!0,oo,Ae)):he===nn?(k.peek(),M(!0,nn,Ae)):!0},V=M();return A&&k.resetPeek(),V}function Z(k,A){const M=k.currentChar();return M===Qo?Qo:A(M)?(k.next(),M):null}function we(k){return Z(k,M=>{const V=M.charCodeAt(0);return V>=97&&V<=122||V>=65&&V<=90||V>=48&&V<=57||V===95||V===36})}function $e(k){return Z(k,M=>{const V=M.charCodeAt(0);return V>=48&&V<=57})}function ye(k){return Z(k,M=>{const V=M.charCodeAt(0);return V>=48&&V<=57||V>=65&&V<=70||V>=97&&V<=102})}function ke(k){let A="",M="";for(;A=$e(k);)M+=A;return M}function Ie(k){_(k);const A=k.currentChar();return A!=="%"&&g(rt.EXPECTED_TOKEN,o(),0,A),k.next(),"%"}function Be(k){let A="";for(;;){const M=k.currentChar();if(M==="{"||M==="}"||M==="@"||M==="|"||!M)break;if(M==="%")if(q(k))A+=M,k.next();else break;else if(M===oo||M===nn)if(q(k))A+=M,k.next();else{if(z(k))break;A+=M,k.next()}else A+=M,k.next()}return A}function Re(k){_(k);let A="",M="";for(;A=we(k);)M+=A;return k.currentChar()===Qo&&g(rt.UNTERMINATED_CLOSING_BRACE,o(),0),M}function se(k){_(k);let A="";return k.currentChar()==="-"?(k.next(),A+=`-${ke(k)}`):A+=ke(k),k.currentChar()===Qo&&g(rt.UNTERMINATED_CLOSING_BRACE,o(),0),A}function Te(k){_(k),m(k,"'");let A="",M="";const V=ae=>ae!==aE&&ae!==nn;for(;A=Z(k,V);)A==="\\"?M+=Oe(k):M+=A;const G=k.currentChar();return G===nn||G===Qo?(g(rt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),G===nn&&(k.next(),m(k,"'")),M):(m(k,"'"),M)}function Oe(k){const A=k.currentChar();switch(A){case"\\":case"'":return k.next(),`\\${A}`;case"u":return Ce(k,A,4);case"U":return Ce(k,A,6);default:return g(rt.UNKNOWN_ESCAPE_SEQUENCE,o(),0,A),""}}function Ce(k,A,M){m(k,A);let V="";for(let G=0;GG!=="{"&&G!=="}"&&G!==oo&&G!==nn;for(;A=Z(k,V);)M+=A;return M}function Ge(k){let A="",M="";for(;A=we(k);)M+=A;return M}function te(k){const A=(M=!1,V)=>{const G=k.currentChar();return G==="{"||G==="%"||G==="@"||G==="|"||G==="("||G===")"||!G||G===oo?V:G===nn||G===gB?(V+=G,k.next(),A(M,V)):(V+=G,k.next(),A(!0,V))};return A(!1,"")}function le(k){_(k);const A=m(k,"|");return _(k),A}function fe(k,A){let M=null;switch(k.currentChar()){case"{":return A.braceNest>=1&&g(rt.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),k.next(),M=y(A,2,"{"),_(k),A.braceNest++,M;case"}":return A.braceNest>0&&A.currentType===2&&g(rt.EMPTY_PLACEHOLDER,o(),0),k.next(),M=y(A,3,"}"),A.braceNest--,A.braceNest>0&&_(k),A.inLinked&&A.braceNest===0&&(A.inLinked=!1),M;case"@":return A.braceNest>0&&g(rt.UNTERMINATED_CLOSING_BRACE,o(),0),M=De(k,A)||x(A),A.braceNest=0,M;default:let G=!0,ae=!0,Ae=!0;if(z(k))return A.braceNest>0&&g(rt.UNTERMINATED_CLOSING_BRACE,o(),0),M=y(A,1,le(k)),A.braceNest=0,A.inLinked=!1,M;if(A.braceNest>0&&(A.currentType===5||A.currentType===6||A.currentType===7))return g(rt.UNTERMINATED_CLOSING_BRACE,o(),0),A.braceNest=0,Ke(k,A);if(G=w(k,A))return M=y(A,5,Re(k)),_(k),M;if(ae=E(k,A))return M=y(A,6,se(k)),_(k),M;if(Ae=C(k,A))return M=y(A,7,Te(k)),_(k),M;if(!G&&!ae&&!Ae)return M=y(A,13,je(k)),g(rt.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,M.value),_(k),M;break}return M}function De(k,A){const{currentType:M}=A;let V=null;const G=k.currentChar();switch((M===8||M===9||M===12||M===10)&&(G===nn||G===oo)&&g(rt.INVALID_LINKED_FORMAT,o(),0),G){case"@":return k.next(),V=y(A,8,"@"),A.inLinked=!0,V;case".":return _(k),k.next(),y(A,9,".");case":":return _(k),k.next(),y(A,10,":");default:return z(k)?(V=y(A,1,le(k)),A.braceNest=0,A.inLinked=!1,V):S(k,A)||R(k,A)?(_(k),De(k,A)):P(k,A)?(_(k),y(A,12,Ge(k))):D(k,A)?(_(k),G==="{"?fe(k,A)||V:y(A,11,te(k))):(M===8&&g(rt.INVALID_LINKED_FORMAT,o(),0),A.braceNest=0,A.inLinked=!1,Ke(k,A))}}function Ke(k,A){let M={type:14};if(A.braceNest>0)return fe(k,A)||x(A);if(A.inLinked)return De(k,A)||x(A);switch(k.currentChar()){case"{":return fe(k,A)||x(A);case"}":return g(rt.UNBALANCED_CLOSING_BRACE,o(),0),k.next(),y(A,3,"}");case"@":return De(k,A)||x(A);default:if(z(k))return M=y(A,1,le(k)),A.braceNest=0,A.inLinked=!1,M;const{isModulo:G,hasSpace:ae}=j(k);if(G)return ae?y(A,0,Be(k)):y(A,4,Ie(k));if(q(k))return y(A,0,Be(k));break}return M}function nt(){const{currentType:k,offset:A,startLoc:M,endLoc:V}=d;return d.lastType=k,d.lastOffset=A,d.lastStartLoc=M,d.lastEndLoc=V,d.offset=i(),d.startLoc=o(),n.currentChar()===Qo?y(d,14):Ke(n,d)}return{nextToken:nt,currentOffset:i,currentPosition:o,context:u}}const bB="parser",xB=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function wB(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 TB(t={}){const e=t.location!==!1,{onError:r}=t;function n(v,b,w,E,...C){const S=v.currentPosition();if(S.offset+=E,S.column+=E,r){const P=e?V_(w,S):null,R=vc(b,P,{domain:bB,args:C});r(R)}}function i(v,b,w){const E={type:v};return e&&(E.start=b,E.end=b,E.loc={start:w,end:w}),E}function o(v,b,w,E){e&&(v.end=b,v.loc&&(v.loc.end=w))}function a(v,b){const w=v.context(),E=i(3,w.offset,w.startLoc);return E.value=b,o(E,v.currentOffset(),v.currentPosition()),E}function l(v,b){const w=v.context(),{lastOffset:E,lastStartLoc:C}=w,S=i(5,E,C);return S.index=parseInt(b,10),v.nextToken(),o(S,v.currentOffset(),v.currentPosition()),S}function d(v,b){const w=v.context(),{lastOffset:E,lastStartLoc:C}=w,S=i(4,E,C);return S.key=b,v.nextToken(),o(S,v.currentOffset(),v.currentPosition()),S}function u(v,b){const w=v.context(),{lastOffset:E,lastStartLoc:C}=w,S=i(9,E,C);return S.value=b.replace(xB,wB),v.nextToken(),o(S,v.currentOffset(),v.currentPosition()),S}function f(v){const b=v.nextToken(),w=v.context(),{lastOffset:E,lastStartLoc:C}=w,S=i(8,E,C);return b.type!==12?(n(v,rt.UNEXPECTED_EMPTY_LINKED_MODIFIER,w.lastStartLoc,0),S.value="",o(S,E,C),{nextConsumeToken:b,node:S}):(b.value==null&&n(v,rt.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Li(b)),S.value=b.value||"",o(S,v.currentOffset(),v.currentPosition()),{node:S})}function g(v,b){const w=v.context(),E=i(7,w.offset,w.startLoc);return E.value=b,o(E,v.currentOffset(),v.currentPosition()),E}function y(v){const b=v.context(),w=i(6,b.offset,b.startLoc);let E=v.nextToken();if(E.type===9){const C=f(v);w.modifier=C.node,E=C.nextConsumeToken||v.nextToken()}switch(E.type!==10&&n(v,rt.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Li(E)),E=v.nextToken(),E.type===2&&(E=v.nextToken()),E.type){case 11:E.value==null&&n(v,rt.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Li(E)),w.key=g(v,E.value||"");break;case 5:E.value==null&&n(v,rt.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Li(E)),w.key=d(v,E.value||"");break;case 6:E.value==null&&n(v,rt.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Li(E)),w.key=l(v,E.value||"");break;case 7:E.value==null&&n(v,rt.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Li(E)),w.key=u(v,E.value||"");break;default:n(v,rt.UNEXPECTED_EMPTY_LINKED_KEY,b.lastStartLoc,0);const C=v.context(),S=i(7,C.offset,C.startLoc);return S.value="",o(S,C.offset,C.startLoc),w.key=S,o(w,C.offset,C.startLoc),{nextConsumeToken:E,node:w}}return o(w,v.currentOffset(),v.currentPosition()),{node:w}}function x(v){const b=v.context(),w=b.currentType===1?v.currentOffset():b.offset,E=b.currentType===1?b.endLoc:b.startLoc,C=i(2,w,E);C.items=[];let S=null;do{const D=S||v.nextToken();switch(S=null,D.type){case 0:D.value==null&&n(v,rt.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Li(D)),C.items.push(a(v,D.value||""));break;case 6:D.value==null&&n(v,rt.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Li(D)),C.items.push(l(v,D.value||""));break;case 5:D.value==null&&n(v,rt.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Li(D)),C.items.push(d(v,D.value||""));break;case 7:D.value==null&&n(v,rt.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Li(D)),C.items.push(u(v,D.value||""));break;case 8:const z=y(v);C.items.push(z.node),S=z.nextConsumeToken||null;break}}while(b.currentType!==14&&b.currentType!==1);const P=b.currentType===1?b.lastOffset:v.currentOffset(),R=b.currentType===1?b.lastEndLoc:v.currentPosition();return o(C,P,R),C}function m(v,b,w,E){const C=v.context();let S=E.items.length===0;const P=i(1,b,w);P.cases=[],P.cases.push(E);do{const R=x(v);S||(S=R.items.length===0),P.cases.push(R)}while(C.currentType!==14);return S&&n(v,rt.MUST_HAVE_MESSAGES_IN_PLURAL,w,0),o(P,v.currentOffset(),v.currentPosition()),P}function p(v){const b=v.context(),{offset:w,startLoc:E}=b,C=x(v);return b.currentType===14?C:m(v,w,E,C)}function _(v){const b=yB(v,NA({},t)),w=b.context(),E=i(0,w.offset,w.startLoc);return e&&E.loc&&(E.loc.source=v),E.body=p(b),t.onCacheKey&&(E.cacheKey=t.onCacheKey(v)),w.currentType!==14&&n(b,rt.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,v[w.offset]||""),o(E,b.currentOffset(),b.currentPosition()),E}return{parse:_}}function Li(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 EB(t,e={}){const r={ast:t,helpers:new Set};return{context:()=>r,helper:o=>(r.helpers.add(o),o)}}function sE(t,e){for(let r=0;rlE(r)),t}function lE(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;rl;function u(_,v){l.code+=_}function f(_,v=!0){const b=v?i:"";u(o?b+" ".repeat(_):b)}function g(_=!0){const v=++l.indentLevel;_&&f(v)}function y(_=!0){const v=--l.indentLevel;_&&f(v)}function x(){f(l.indentLevel)}return{context:d,push:u,indent:g,deindent:y,newline:x,helper:_=>`_${_}`,needIndent:()=>l.needIndent}}function $B(t,e){const{helper:r}=t;t.push(`${r("linked")}(`),Xl(t,e.key),e.modifier?(t.push(", "),Xl(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function OB(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=oE(e.mode)?e.mode:"normal",n=oE(e.filename)?e.filename:"message.intl",i=!!e.sourceMap,o=e.breakLineCode!=null?e.breakLineCode:r==="arrow"?";":` -`,a=e.needIndent?e.needIndent:r!=="arrow",l=t.helpers||[],d=IB(t,{mode:r,filename:n,sourceMap:i,breakLineCode:o,needIndent:a});d.push(r==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),d.indent(a),l.length>0&&(d.push(`const { ${zA(l.map(g=>`${g}: _${g}`),", ")} } = ctx`),d.newline()),d.push("return "),Xl(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 LB(t,e={}){const r=NA({},e),n=!!r.jit,i=!!r.minify,o=r.optimize==null?!0:r.optimize,l=TB(r).parse(t);return n?(o&&CB(l),i&&yl(l),{ast:l,code:""}):(kB(l,r),DB(l,r))}function MB(){typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(ip().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ip().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Ba=[];Ba[0]={w:[0],i:[3,0],"[":[4],o:[7]};Ba[1]={w:[1],".":[2],"[":[4],o:[7]};Ba[2]={w:[2],i:[3,0],0:[3,0]};Ba[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Ba[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Ba[5]={"'":[4,0],o:8,l:[5,0]};Ba[6]={'"':[4,0],o:8,l:[6,0]};const FB=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function NB(t){return FB.test(t)}function zB(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 qB(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 BB(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:NB(e)?zB(e):"*"+e}function UB(t){const e=[];let r=-1,n=0,i=0,o,a,l,d,u,f,g;const y=[];y[0]=()=>{a===void 0?a=l:a+=l},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=BB(a),a===!1))return!1;y[1]()}};function x(){const m=t[r+1];if(n===5&&m==="'"||n===6&&m==='"')return r++,l="\\"+m,y[0](),!0}for(;n!==null;)if(r++,o=t[r],!(o==="\\"&&x())){if(d=qB(o),g=Ba[n],u=g[d]||g.l||8,u===8||(n=u[0],u[1]!==void 0&&(f=y[u[1]],f&&(l=o,f()===!1))))return;if(n===7)return e}}const cE=new Map;function VB(t,e){return qt(t)?t[e]:null}function jB(t,e){if(!qt(t))return null;let r=cE.get(e);if(r||(r=UB(e),r&&cE.set(e,r)),!r)return null;const n=r.length;let i=t,o=0;for(;ot,WB=t=>"",GB="text",QB=t=>t.length===0?"":oB(t),KB=iB;function dE(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function YB(t){const e=Rr(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(Rr(t.named.count)||Rr(t.named.n))?Rr(t.named.count)?t.named.count:Rr(t.named.n)?t.named.n:e:e}function XB(t,e){e.count||(e.count=t),e.n||(e.n=t)}function JB(t={}){const e=t.locale,r=YB(t),n=qt(t.pluralRules)&&We(e)&&Gr(t.pluralRules[e])?t.pluralRules[e]:dE,i=qt(t.pluralRules)&&We(e)&&Gr(t.pluralRules[e])?dE:void 0,o=v=>v[n(r,v.length,i)],a=t.list||[],l=v=>a[v],d=t.named||{};Rr(t.pluralIndex)&&XB(r,d);const u=v=>d[v];function f(v){const b=Gr(t.messages)?t.messages(v):qt(t.messages)?t.messages[v]:!1;return b||(t.parent?t.parent.message(v):WB)}const g=v=>t.modifiers?t.modifiers[v]:HB,y=At(t.processor)&&Gr(t.processor.normalize)?t.processor.normalize:QB,x=At(t.processor)&&Gr(t.processor.interpolate)?t.processor.interpolate:KB,m=At(t.processor)&&We(t.processor.type)?t.processor.type:GB,_={list:l,named:u,plural:o,linked:(v,...b)=>{const[w,E]=b;let C="text",S="";b.length===1?qt(w)?(S=w.modifier||S,C=w.type||C):We(w)&&(S=w||S):b.length===2&&(We(w)&&(S=w||S),We(E)&&(C=E||C));const P=f(v)(_),R=C==="vnode"&&Cr(P)&&S?P[0]:P;return S?g(S)(R,C):R},message:f,type:m,interpolate:x,normalize:y,values:an({},a,d)};return _}const ZB={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 eU(t,e,r){return[...new Set([r,...Cr(e)?e:qt(e)?Object.keys(e):We(e)?[e]:[r]])]}function qA(t,e,r){const n=We(r)?r:A0,i=t;i.__localeChainCache||(i.__localeChainCache=new Map);let o=i.__localeChainCache.get(n);if(!o){o=[];let a=[r];for(;Cr(a);)a=uE(o,a,e);const l=Cr(e)||!At(e)?e:e.default?e.default:null;a=We(l)?[l]:l,Cr(a)&&uE(o,a,!1),i.__localeChainCache.set(n,o)}return o}function uE(t,e,r){let n=!0;for(let i=0;i`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function iU(){return{upper:(t,e)=>e==="text"&&We(t)?t.toUpperCase():e==="vnode"&&qt(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&We(t)?t.toLowerCase():e==="vnode"&&qt(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&We(t)?hE(t):e==="vnode"&&qt(t)&&"__v_isVNode"in t?hE(t.children):t}}let BA;function pE(t){BA=t}let UA;function oU(t){UA=t}let VA;function aU(t){VA=t}let jA=null;const mE=t=>{jA=t},sU=()=>jA;let vE=0;function lU(t={}){const e=Gr(t.onWarn)?t.onWarn:aB,r=We(t.version)?t.version:nU,n=We(t.locale)?t.locale:A0,i=Cr(t.fallbackLocale)||At(t.fallbackLocale)||We(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:n,o=At(t.messages)?t.messages:{[n]:{}},a=At(t.datetimeFormats)?t.datetimeFormats:{[n]:{}},l=At(t.numberFormats)?t.numberFormats:{[n]:{}},d=an({},t.modifiers||{},iU()),u=t.pluralRules||{},f=Gr(t.missing)?t.missing:null,g=ir(t.missingWarn)||np(t.missingWarn)?t.missingWarn:!0,y=ir(t.fallbackWarn)||np(t.fallbackWarn)?t.fallbackWarn:!0,x=!!t.fallbackFormat,m=!!t.unresolving,p=Gr(t.postTranslation)?t.postTranslation:null,_=At(t.processor)?t.processor:null,v=ir(t.warnHtmlMessage)?t.warnHtmlMessage:!0,b=!!t.escapeParameter,w=Gr(t.messageCompiler)?t.messageCompiler:BA,E=Gr(t.messageResolver)?t.messageResolver:UA||VB,C=Gr(t.localeFallbacker)?t.localeFallbacker:VA||eU,S=qt(t.fallbackContext)?t.fallbackContext:void 0,P=t,R=qt(P.__datetimeFormatters)?P.__datetimeFormatters:new Map,D=qt(P.__numberFormatters)?P.__numberFormatters:new Map,z=qt(P.__meta)?P.__meta:{};vE++;const j={version:r,cid:vE,locale:n,fallbackLocale:i,messages:o,modifiers:d,pluralRules:u,missing:f,missingWarn:g,fallbackWarn:y,fallbackFormat:x,unresolving:m,postTranslation:p,processor:_,warnHtmlMessage:v,escapeParameter:b,messageCompiler:w,messageResolver:E,localeFallbacker:C,fallbackContext:S,onWarn:e,__meta:z};return j.datetimeFormats=a,j.numberFormats=l,j.__datetimeFormatters=R,j.__numberFormatters=D,j}function S0(t,e,r,n,i){const{missing:o,onWarn:a}=t;if(o!==null){const l=o(t,r,e,i);return We(l)?l:e}else return e}function Zc(t,e,r){const n=t;n.__localeChainCache=new Map,t.localeFallbacker(t,r,e)}function xg(t){return r=>cU(r,t)}function cU(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,gE(t,a)],[]))}else return gE(t,r)}function gE(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,j_(t,o)],[]);return t.normalize(n)}}function j_(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 l=e,d=l.m||l.modifier;return t.linked(j_(t,l.k||l.key),d?j_(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 HA=rt.__EXTEND_POINT__,ih=k0(HA),pa={INVALID_ARGUMENT:HA,INVALID_DATE_ARGUMENT:ih(),INVALID_ISO_DATE_ARGUMENT:ih(),NOT_SUPPORT_NON_STRING_MESSAGE:ih(),__EXTEND_POINT__:ih()};function hs(t){return vc(t,null,void 0)}const WA=t=>t;let Il=Object.create(null);const Qd=t=>qt(t)&&(t.t===0||t.type===0)&&("b"in t||"body"in t);function GA(t,e={}){let r=!1;const n=e.onError||fB;return e.onError=i=>{r=!0,n(i)},{...LB(t,e),detectError:r}}const dU=(t,e)=>{if(!We(t))throw hs(pa.NOT_SUPPORT_NON_STRING_MESSAGE);{ir(e.warnHtmlMessage)&&e.warnHtmlMessage;const n=(e.onCacheKey||WA)(t),i=Il[n];if(i)return i;const{code:o,detectError:a}=GA(t,e),l=new Function(`return ${o}`)();return a?l:Il[n]=l}};function uU(t,e){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&We(t)){ir(e.warnHtmlMessage)&&e.warnHtmlMessage;const n=(e.onCacheKey||WA)(t),i=Il[n];if(i)return i;const{ast:o,detectError:a}=GA(t,{...e,location:!1,jit:!0}),l=xg(o);return a?l:Il[n]=l}else{const r=t.cacheKey;if(r){const n=Il[r];return n||(Il[r]=xg(t))}else return xg(t)}}const _E=()=>"",wa=t=>Gr(t);function yE(t,...e){const{fallbackFormat:r,postTranslation:n,unresolving:i,messageCompiler:o,fallbackLocale:a,messages:l}=t,[d,u]=H_(...e),f=ir(u.missingWarn)?u.missingWarn:t.missingWarn,g=ir(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn,y=ir(u.escapeParameter)?u.escapeParameter:t.escapeParameter,x=!!u.resolvedMessage,m=We(u.default)||ir(u.default)?ir(u.default)?o?d:()=>d:u.default:r?o?d:()=>d:"",p=r||m!=="",_=We(u.locale)?u.locale:t.locale;y&&fU(u);let[v,b,w]=x?[d,_,l[_]||{}]:QA(t,d,_,a,g,f),E=v,C=d;if(!x&&!(We(E)||Qd(E)||wa(E))&&p&&(E=m,C=E),!x&&(!(We(E)||Qd(E)||wa(E))||!We(b)))return i?tm:d;let S=!1;const P=()=>{S=!0},R=wa(E)?E:KA(t,d,b,E,C,P);if(S)return E;const D=mU(t,b,w,u),z=JB(D),j=hU(t,R,z);return n?n(j,d):j}function fU(t){Cr(t.list)?t.list=t.list.map(e=>We(e)?iE(e):e):qt(t.named)&&Object.keys(t.named).forEach(e=>{We(t.named[e])&&(t.named[e]=iE(t.named[e]))})}function QA(t,e,r,n,i,o){const{messages:a,onWarn:l,messageResolver:d,localeFallbacker:u}=t,f=u(t,n,r);let g={},y,x=null;const m="translate";for(let p=0;pn;return u.locale=r,u.key=e,u}const d=a(n,pU(t,r,i,n,l,o));return d.locale=r,d.key=e,d.source=n,d}function hU(t,e,r){return e(r)}function H_(...t){const[e,r,n]=t,i={};if(!We(e)&&!Rr(e)&&!wa(e)&&!Qd(e))throw hs(pa.INVALID_ARGUMENT);const o=Rr(e)?String(e):(wa(e),e);return Rr(r)?i.plural=r:We(r)?i.default=r:At(r)&&!em(r)?i.named=r:Cr(r)&&(i.list=r),Rr(n)?i.plural=n:We(n)?i.default=n:At(n)&&an(i,n),[o,i]}function pU(t,e,r,n,i,o){return{locale:e,key:r,warnHtmlMessage:i,onError:a=>{throw o&&o(a),a},onCacheKey:a=>eB(e,r,a)}}function mU(t,e,r,n){const{modifiers:i,pluralRules:o,messageResolver:a,fallbackLocale:l,fallbackWarn:d,missingWarn:u,fallbackContext:f}=t,y={locale:e,modifiers:i,pluralRules:o,messages:x=>{let m=a(r,x);if(m==null&&f){const[,,p]=QA(f,x,e,l,d,u);m=a(p,x)}if(We(m)||Qd(m)){let p=!1;const v=KA(t,x,e,m,x,()=>{p=!0});return p?_E:v}else return wa(m)?m:_E}};return t.processor&&(y.processor=t.processor),n.list&&(y.list=n.list),n.named&&(y.named=n.named),Rr(n.plural)&&(y.pluralIndex=n.plural),y}function bE(t,...e){const{datetimeFormats:r,unresolving:n,fallbackLocale:i,onWarn:o,localeFallbacker:a}=t,{__datetimeFormatters:l}=t,[d,u,f,g]=W_(...e),y=ir(f.missingWarn)?f.missingWarn:t.missingWarn;ir(f.fallbackWarn)?f.fallbackWarn:t.fallbackWarn;const x=!!f.part,m=We(f.locale)?f.locale:t.locale,p=a(t,i,m);if(!We(d)||d==="")return new Intl.DateTimeFormat(m,g).format(u);let _={},v,b=null;const w="datetime format";for(let S=0;S{YA.includes(d)?a[d]=r[d]:o[d]=r[d]}),We(n)?o.locale=n:At(n)&&(a=n),At(i)&&(a=i),[o.key||"",l,o,a]}function xE(t,e,r){const n=t;for(const i in r){const o=`${e}__${i}`;n.__datetimeFormatters.has(o)&&n.__datetimeFormatters.delete(o)}}function wE(t,...e){const{numberFormats:r,unresolving:n,fallbackLocale:i,onWarn:o,localeFallbacker:a}=t,{__numberFormatters:l}=t,[d,u,f,g]=G_(...e),y=ir(f.missingWarn)?f.missingWarn:t.missingWarn;ir(f.fallbackWarn)?f.fallbackWarn:t.fallbackWarn;const x=!!f.part,m=We(f.locale)?f.locale:t.locale,p=a(t,i,m);if(!We(d)||d==="")return new Intl.NumberFormat(m,g).format(u);let _={},v,b=null;const w="number format";for(let S=0;S{XA.includes(d)?a[d]=r[d]:o[d]=r[d]}),We(n)?o.locale=n:At(n)&&(a=n),At(i)&&(a=i),[o.key||"",l,o,a]}function TE(t,e,r){const n=t;for(const i in r){const o=`${e}__${i}`;n.__numberFormatters.has(o)&&n.__numberFormatters.delete(o)}}MB();const vU="9.4.1";function gU(){typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(ip().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ip().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const JA=ZB.__EXTEND_POINT__,Ko=k0(JA);Ko(),Ko(),Ko(),Ko(),Ko(),Ko(),Ko(),Ko();const ZA=pa.__EXTEND_POINT__,mn=k0(ZA),Nn={UNEXPECTED_RETURN_TYPE:ZA,INVALID_ARGUMENT:mn(),MUST_BE_CALL_SETUP_TOP:mn(),NOT_INSTALLED:mn(),NOT_AVAILABLE_IN_LEGACY_MODE:mn(),REQUIRED_VALUE:mn(),INVALID_VALUE:mn(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:mn(),NOT_INSTALLED_WITH_PROVIDE:mn(),UNEXPECTED_ERROR:mn(),NOT_COMPATIBLE_LEGACY_VUE_I18N:mn(),BRIDGE_SUPPORT_VUE_2_ONLY:mn(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:mn(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:mn(),__EXTEND_POINT__:mn()};function ai(t,...e){return vc(t,null,void 0)}const Q_=qa("__translateVNode"),K_=qa("__datetimeParts"),Y_=qa("__numberParts"),_U=qa("__setPluralRules"),yU=qa("__injectWithOption"),X_=qa("__dispose");function J_(t){if(!qt(t))return t;for(const e in t)if(E0(t,e))if(!e.includes("."))qt(t[e])&&J_(t[e]);else{const r=e.split("."),n=r.length-1;let i=t,o=!1;for(let a=0;a{if("locale"in l&&"resource"in l){const{locale:d,resource:u}=l;d?(a[d]=a[d]||{},wd(u,a[d])):wd(u,a)}else We(l)&&wd(JSON.parse(l),a)}),i==null&&o)for(const l in a)E0(a,l)&&J_(a[l]);return a}const oh=t=>!qt(t)||Cr(t);function wd(t,e){if(oh(t)||oh(e))throw ai(Nn.INVALID_VALUE);for(const r in t)E0(t,r)&&(oh(t[r])||oh(e[r])?e[r]=t[r]:wd(t[r],e[r]))}function bU(t){return t.type}function xU(t,e,r){let n=qt(e.messages)?e.messages:{};"__i18nGlobal"in r&&(n=eS(t.locale.value,{messages:n,__i18n:r.__i18nGlobal}));const i=Object.keys(n);i.length&&i.forEach(o=>{t.mergeLocaleMessage(o,n[o])});{if(qt(e.datetimeFormats)){const o=Object.keys(e.datetimeFormats);o.length&&o.forEach(a=>{t.mergeDateTimeFormat(a,e.datetimeFormats[a])})}if(qt(e.numberFormats)){const o=Object.keys(e.numberFormats);o.length&&o.forEach(a=>{t.mergeNumberFormat(a,e.numberFormats[a])})}}}function EE(t){return Pe(cu,null,t,0)}let kE=0;function CE(t){return(e,r,n,i)=>t(r,n,Gi()||void 0,i)}function tS(t={},e){const{__root:r,__injectWithOption:n}=t,i=r===void 0;let o=ir(t.inheritLocale)?t.inheritLocale:!0;const a=Le(r&&o?r.locale.value:We(t.locale)?t.locale:A0),l=Le(r&&o?r.fallbackLocale.value:We(t.fallbackLocale)||Cr(t.fallbackLocale)||At(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:a.value),d=Le(eS(a.value,t)),u=Le(At(t.datetimeFormats)?t.datetimeFormats:{[a.value]:{}}),f=Le(At(t.numberFormats)?t.numberFormats:{[a.value]:{}});let g=r?r.missingWarn:ir(t.missingWarn)||np(t.missingWarn)?t.missingWarn:!0,y=r?r.fallbackWarn:ir(t.fallbackWarn)||np(t.fallbackWarn)?t.fallbackWarn:!0,x=r?r.fallbackRoot:ir(t.fallbackRoot)?t.fallbackRoot:!0,m=!!t.fallbackFormat,p=Gr(t.missing)?t.missing:null,_=Gr(t.missing)?CE(t.missing):null,v=Gr(t.postTranslation)?t.postTranslation:null,b=r?r.warnHtmlMessage:ir(t.warnHtmlMessage)?t.warnHtmlMessage:!0,w=!!t.escapeParameter;const E=r?r.modifiers:At(t.modifiers)?t.modifiers:{};let C=t.pluralRules||r&&r.pluralRules,S;S=(()=>{i&&mE(null);const W={version:vU,locale:a.value,fallbackLocale:l.value,messages:d.value,modifiers:E,pluralRules:C,missing:_===null?void 0:_,missingWarn:g,fallbackWarn:y,fallbackFormat:m,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:b,escapeParameter:w,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};W.datetimeFormats=u.value,W.numberFormats=f.value,W.__datetimeFormatters=At(S)?S.__datetimeFormatters:void 0,W.__numberFormatters=At(S)?S.__numberFormatters:void 0;const U=lU(W);return i&&mE(U),U})(),Zc(S,a.value,l.value);function R(){return[a.value,l.value,d.value,u.value,f.value]}const D=It({get:()=>a.value,set:W=>{a.value=W,S.locale=a.value}}),z=It({get:()=>l.value,set:W=>{l.value=W,S.fallbackLocale=l.value,Zc(S,a.value,W)}}),j=It(()=>d.value),q=It(()=>u.value),Z=It(()=>f.value);function we(){return Gr(v)?v:null}function $e(W){v=W,S.postTranslation=W}function ye(){return p}function ke(W){W!==null&&(_=CE(W)),p=W,S.missing=_}const Ie=(W,U,xe,Se,Y,ce)=>{R();let Fe;try{i||(S.fallbackContext=r?sU():void 0),Fe=W(S)}finally{i||(S.fallbackContext=void 0)}if(Rr(Fe)&&Fe===tm){const[Ye,pt]=U();return r&&x?Se(r):Y(Ye)}else{if(ce(Fe))return Fe;throw ai(Nn.UNEXPECTED_RETURN_TYPE)}};function Be(...W){return Ie(U=>Reflect.apply(yE,null,[U,...W]),()=>H_(...W),"translate",U=>Reflect.apply(U.t,U,[...W]),U=>U,U=>We(U))}function Re(...W){const[U,xe,Se]=W;if(Se&&!qt(Se))throw ai(Nn.INVALID_ARGUMENT);return Be(U,xe,an({resolvedMessage:!0},Se||{}))}function se(...W){return Ie(U=>Reflect.apply(bE,null,[U,...W]),()=>W_(...W),"datetime format",U=>Reflect.apply(U.d,U,[...W]),()=>fE,U=>We(U))}function Te(...W){return Ie(U=>Reflect.apply(wE,null,[U,...W]),()=>G_(...W),"number format",U=>Reflect.apply(U.n,U,[...W]),()=>fE,U=>We(U))}function Oe(W){return W.map(U=>We(U)||Rr(U)||ir(U)?EE(String(U)):U)}const je={normalize:Oe,interpolate:W=>W,type:"vnode"};function Ge(...W){return Ie(U=>{let xe;const Se=U;try{Se.processor=je,xe=Reflect.apply(yE,null,[Se,...W])}finally{Se.processor=null}return xe},()=>H_(...W),"translate",U=>U[Q_](...W),U=>[EE(U)],U=>Cr(U))}function te(...W){return Ie(U=>Reflect.apply(wE,null,[U,...W]),()=>G_(...W),"number format",U=>U[Y_](...W),()=>[],U=>We(U)||Cr(U))}function le(...W){return Ie(U=>Reflect.apply(bE,null,[U,...W]),()=>W_(...W),"datetime format",U=>U[K_](...W),()=>[],U=>We(U)||Cr(U))}function fe(W){C=W,S.pluralRules=C}function De(W,U){const xe=We(U)?U:a.value,Se=k(xe);return S.messageResolver(Se,W)!==null}function Ke(W){let U=null;const xe=qA(S,l.value,a.value);for(let Se=0;Se{o&&(a.value=W,S.locale=W,Zc(S,a.value,l.value))}),Ot(r.fallbackLocale,W=>{o&&(l.value=W,S.fallbackLocale=W,Zc(S,a.value,l.value))}));const ie={id:kE,locale:D,fallbackLocale:z,get inheritLocale(){return o},set inheritLocale(W){o=W,W&&r&&(a.value=r.locale.value,l.value=r.fallbackLocale.value,Zc(S,a.value,l.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:j,get modifiers(){return E},get pluralRules(){return C||{}},get isGlobal(){return i},get missingWarn(){return g},set missingWarn(W){g=W,S.missingWarn=g},get fallbackWarn(){return y},set fallbackWarn(W){y=W,S.fallbackWarn=y},get fallbackRoot(){return x},set fallbackRoot(W){x=W},get fallbackFormat(){return m},set fallbackFormat(W){m=W,S.fallbackFormat=m},get warnHtmlMessage(){return b},set warnHtmlMessage(W){b=W,S.warnHtmlMessage=W},get escapeParameter(){return w},set escapeParameter(W){w=W,S.escapeParameter=W},t:Be,getLocaleMessage:k,setLocaleMessage:A,mergeLocaleMessage:M,getPostTranslationHandler:we,setPostTranslationHandler:$e,getMissingHandler:ye,setMissingHandler:ke,[_U]:fe};return ie.datetimeFormats=q,ie.numberFormats=Z,ie.rt=Re,ie.te=De,ie.tm=nt,ie.d=se,ie.n=Te,ie.getDateTimeFormat=V,ie.setDateTimeFormat=G,ie.mergeDateTimeFormat=ae,ie.getNumberFormat=Ae,ie.setNumberFormat=he,ie.mergeNumberFormat=ge,ie[yU]=n,ie[Q_]=Ge,ie[K_]=le,ie[Y_]=te,ie}const I0={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function wU({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((n,i)=>[...n,...i.type===$t?i.children:[i]],[]):e.reduce((r,n)=>{const i=t[n];return i&&(r[n]=i()),r},{})}function rS(t){return $t}const TU=Dt({name:"i18n-t",props:an({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>Rr(t)||!isNaN(t)}},I0),setup(t,e){const{slots:r,attrs:n}=e,i=t.i18n||zn({useScope:t.scope,__useComponent:!0});return()=>{const o=Object.keys(r).filter(g=>g!=="_"),a={};t.locale&&(a.locale=t.locale),t.plural!==void 0&&(a.plural=We(t.plural)?+t.plural:t.plural);const l=wU(e,o),d=i[Q_](t.keypath,l,a),u=an({},n),f=We(t.tag)||qt(t.tag)?t.tag:rS();return Ui(f,u,d)}}}),AE=TU;function EU(t){return Cr(t)&&!We(t[0])}function nS(t,e,r,n){const{slots:i,attrs:o}=e;return()=>{const a={part:!0};let l={};t.locale&&(a.locale=t.locale),We(t.format)?a.key=t.format:qt(t.format)&&(We(t.format.key)&&(a.key=t.format.key),l=Object.keys(t.format).reduce((y,x)=>r.includes(x)?an({},y,{[x]:t.format[x]}):y,{}));const d=n(t.value,a,l);let u=[a.key];Cr(d)?u=d.map((y,x)=>{const m=i[y.type],p=m?m({[y.type]:y.value,index:x,parts:d}):[y.value];return EU(p)&&(p[0].key=`${y.type}-${x}`),p}):We(d)&&(u=[d]);const f=an({},o),g=We(t.tag)||qt(t.tag)?t.tag:rS();return Ui(g,f,u)}}const kU=Dt({name:"i18n-n",props:an({value:{type:Number,required:!0},format:{type:[String,Object]}},I0),setup(t,e){const r=t.i18n||zn({useScope:"parent",__useComponent:!0});return nS(t,e,XA,(...n)=>r[Y_](...n))}}),SE=kU,CU=Dt({name:"i18n-d",props:an({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},I0),setup(t,e){const r=t.i18n||zn({useScope:"parent",__useComponent:!0});return nS(t,e,YA,(...n)=>r[K_](...n))}}),IE=CU;function AU(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 SU(t){const e=a=>{const{instance:l,modifiers:d,value:u}=a;if(!l||!l.$)throw ai(Nn.UNEXPECTED_ERROR);const f=AU(t,l.$),g=$E(u);return[Reflect.apply(f.t,f,[...OE(g)]),f]};return{created:(a,l)=>{const[d,u]=e(l);U_&&t.global===u&&(a.__i18nWatcher=Ot(u.locale,()=>{l.instance&&l.instance.$forceUpdate()})),a.__composer=u,a.textContent=d},unmounted:a=>{U_&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:l})=>{if(a.__composer){const d=a.__composer,u=$E(l);a.textContent=Reflect.apply(d.t,d,[...OE(u)])}},getSSRProps:a=>{const[l]=e(a);return{textContent:l}}}}function $E(t){if(We(t))return{path:t};if(At(t)){if(!("path"in t))throw ai(Nn.REQUIRED_VALUE,"path");return t}else throw ai(Nn.INVALID_VALUE)}function OE(t){const{path:e,locale:r,args:n,choice:i,plural:o}=t,a={},l=n||{};return We(r)&&(a.locale=r),Rr(i)&&(a.plural=i),Rr(o)&&(a.plural=o),[e,l,a]}function IU(t,e,...r){const n=At(r[0])?r[0]:{},i=!!n.useI18nComponentName;(ir(n.globalInstall)?n.globalInstall:!0)&&([i?"i18n":AE.name,"I18nT"].forEach(a=>t.component(a,AE)),[SE.name,"I18nN"].forEach(a=>t.component(a,SE)),[IE.name,"I18nD"].forEach(a=>t.component(a,IE))),t.directive("t",SU(e))}const $U=qa("global-vue-i18n");function OU(t={},e){const r=ir(t.globalInjection)?t.globalInjection:!0,n=!0,i=new Map,[o,a]=PU(t),l=qa("");function d(g){return i.get(g)||null}function u(g,y){i.set(g,y)}function f(g){i.delete(g)}{const g={get mode(){return"composition"},get allowComposition(){return n},async install(y,...x){if(y.__VUE_I18N_SYMBOL__=l,y.provide(y.__VUE_I18N_SYMBOL__,g),At(x[0])){const _=x[0];g.__composerExtend=_.__composerExtend,g.__vueI18nExtend=_.__vueI18nExtend}let m=null;r&&(m=qU(y,g.global)),IU(y,g,...x);const p=y.unmount;y.unmount=()=>{m&&m(),g.dispose(),p()}},get global(){return a},dispose(){o.stop()},__instances:i,__getInstance:d,__setInstance:u,__deleteInstance:f};return g}}function zn(t={}){const e=Gi();if(e==null)throw ai(Nn.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw ai(Nn.NOT_INSTALLED);const r=RU(e),n=LU(r),i=bU(e),o=DU(t,i);if(o==="global")return xU(n,t,i),n;if(o==="parent"){let d=MU(r,e,t.__useComponent);return d==null&&(d=n),d}const a=r;let l=a.__getInstance(e);if(l==null){const d=an({},t);"__i18n"in i&&(d.__i18n=i.__i18n),n&&(d.__root=n),l=tS(d),a.__composerExtend&&(l[X_]=a.__composerExtend(l)),NU(a,e,l),a.__setInstance(e,l)}return l}function PU(t,e,r){const n=Fb();{const i=n.run(()=>tS(t));if(i==null)throw ai(Nn.UNEXPECTED_ERROR);return[n,i]}}function RU(t){{const e=on(t.isCE?$U:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw ai(t.isCE?Nn.NOT_INSTALLED_WITH_PROVIDE:Nn.UNEXPECTED_ERROR);return e}}function DU(t,e){return em(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function LU(t){return t.mode==="composition"?t.global:t.global.__composer}function MU(t,e,r=!1){let n=null;const i=e.root;let o=FU(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 FU(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function NU(t,e,r){Ur(()=>{},e),za(()=>{const n=r;t.__deleteInstance(e);const i=n[X_];i&&(i(),delete n[X_])},e)}const zU=["locale","fallbackLocale","availableLocales"],PE=["t","rt","d","n","tm","te"];function qU(t,e){const r=Object.create(null);return zU.forEach(i=>{const o=Object.getOwnPropertyDescriptor(e,i);if(!o)throw ai(Nn.UNEXPECTED_ERROR);const a=Qt(o.value)?{get(){return o.value.value},set(l){o.value.value=l}}:{get(){return o.get&&o.get()}};Object.defineProperty(r,i,a)}),t.config.globalProperties.$i18n=r,PE.forEach(i=>{const o=Object.getOwnPropertyDescriptor(e,i);if(!o||!o.value)throw ai(Nn.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${i}`,o)}),()=>{delete t.config.globalProperties.$i18n,PE.forEach(i=>{delete t.config.globalProperties[`$${i}`]})}}gU();__INTLIFY_JIT_COMPILATION__?pE(uU):pE(dU);oU(jB);aU(qA);function BU(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 Tt=BU();class UU{constructor(e,r){Wt(this,"startedAt");Wt(this,"callback");Wt(this,"delay");Wt(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 VU=Dt({__name:"PToaster",props:{message:{type:String,required:!0},type:{type:String,default:""},duration:{type:[Number,Boolean],default:3e3},onClick:{type:Function,default:()=>{}}},setup(t){const e=t,r=Le(!0),n=e.duration!==!1?new UU(l,e.duration):null;function i(){e.onClick.apply(null,arguments),l()}function o(d){n&&(d?n.pause():n.resume())}function a(){n&&n.stop()}function l(){a(),r.value=!1}return(d,u)=>(J(),kr(e0,{to:"body"},[r.value?(J(),re("div",{key:0,class:Pn(["v-toast",t.type]),onMouseover:u[0]||(u[0]=f=>o(!0)),onMouseleave:u[1]||(u[1]=f=>o(!1)),onClick:i,role:"alert"},Me(t.message),35)):yt("",!0)]))}}),Ls=(t,e="")=>{p_(Ui(VU,{message:t,type:e}),document.createElement("div"))};function iS(){return window.location.host}function jU(){return{"Content-Type":"multipart/form-data","c-id":localStorage.getItem("client_id")??""}}function HU(){return`${window.location.protocol==="http:"?"ws":"wss"}://${iS()}`}function Jl(){return`${window.location.protocol}//${iS()}`}const wg="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",WU=()=>{const t=crypto.getRandomValues(new Uint8Array(16));t[6]=t[6]&15|64,t[8]=t[8]&63|128;const e=GU(t).toLowerCase();return`${e.substring(0,8)}-${e.substring(8,12)}-${e.substring(12,16)}-${e.substring(16,20)}-${e.substring(20)}`},Kd=()=>{const t=KU("0123456789abcdef",wg,WU().toLowerCase().replace(/-/g,"")),e=Math.ceil(Math.log(2**128)/Math.log(wg.length));return t.padStart(e,wg[0])},GU=t=>[...t].map(e=>e.toString(16).padStart(2,"0")).join(""),QU=t=>{const e=new Uint8Array(t.length);for(let r=0;r/[\u3400-\u9FBF]/.test(t);function rm(t){return t?btoa(encodeURIComponent(t)):""}function Z0e(t){try{return decodeURIComponent(atob(t))}catch{return t}}function KU(t,e,r){const n=[],i=t.length,o=e.length;let a,l,d,u=r.length,f="";for(a=0;a=o?(n[d++]=parseInt((l/o).toString(),10),l=l%o):d>0&&(n[d++]=0);u=d,f=e.slice(l,l+1).concat(f)}while(d!==0);return f}const YU=/(\b(((https?|ftp):\/\/)|www.)[A-Z0-9+&@#\/%?=~_|!:,.;-]*[-A-Z0-9+&@#\/%=~_|])/gim,XU=/(\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,6})/gim;function JU(t){let e=ZU(t);return e=e.replace(YU,'$1'),e=e.replace(XU,'$1'),e.replace(/\n\r?/g,"
")}function ZU(t){return t.replace(/[\u00A0-\u9999<>&'"]/gim,function(e){return"&#"+e.charCodeAt(0)+";"})}function e1e(t){const e=/!\[.*?\]\(.*?\)|!\[.*?\]\[.*?\]|/gi;return t.replace(e,"🖼").replace(` -`,"").replace(/^\s*/,"")}var po=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ms(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function eV(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 oS={exports:{}};const tV={},rV=Object.freeze(Object.defineProperty({__proto__:null,default:tV},Symbol.toStringTag,{value:"Module"})),nV=eV(rV);(function(t){var e={cipher:{},hash:{},keyexchange:{},mode:{},misc:{},codec:{},exception:{corrupt:function(m){this.toString=function(){return"CORRUPT: "+this.message},this.message=m},invalid:function(m){this.toString=function(){return"INVALID: "+this.message},this.message=m},bug:function(m){this.toString=function(){return"BUG: "+this.message},this.message=m},notReady:function(m){this.toString=function(){return"NOT READY: "+this.message},this.message=m}}};e.cipher.aes=function(m){this.s[0][0][0]||this.O();var p,_,v,b,w=this.s[0][4],E=this.s[1];p=m.length;var C=1;if(p!==4&&p!==6&&p!==8)throw new e.exception.invalid("invalid aes key size");for(this.b=[v=m.slice(0),b=[]],m=p;m<4*p+28;m++)_=v[m-1],(m%p===0||p===8&&m%p===4)&&(_=w[_>>>24]<<24^w[_>>16&255]<<16^w[_>>8&255]<<8^w[_&255],m%p===0&&(_=_<<8^_>>>24^C<<24,C=C<<1^283*(C>>7))),v[m]=v[m-p]^_;for(p=0;m;p++,m--)_=v[p&3?m:m-4],b[p]=4>=m||4>p?_:E[0][w[_>>>24]]^E[1][w[_>>16&255]]^E[2][w[_>>8&255]]^E[3][w[_&255]]},e.cipher.aes.prototype={encrypt:function(m){return r(this,m,0)},decrypt:function(m){return r(this,m,1)},s:[[[],[],[],[],[]],[[],[],[],[],[]]],O:function(){var m=this.s[0],p=this.s[1],_=m[4],v=p[4],b,w,E,C=[],S=[],P,R,D,z;for(b=0;256>b;b++)S[(C[b]=b<<1^283*(b>>7))^b]=b;for(w=E=0;!_[w];w^=P||1,E=S[E]||1)for(D=E^E<<1^E<<2^E<<3^E<<4,D=D>>8^D&255^99,_[w]=D,v[D]=w,R=C[b=C[P=C[w]]],z=16843009*R^65537*b^257*P^16843008*w,R=257*C[D]^16843008*D,b=0;4>b;b++)m[b][w]=R=R<<24^R>>>8,p[b][D]=z=z<<24^z>>>8;for(b=0;5>b;b++)m[b]=m[b].slice(0),p[b]=p[b].slice(0)}};function r(m,p,_){if(p.length!==4)throw new e.exception.invalid("invalid aes block size");var v=m.b[_],b=p[0]^v[0],w=p[_?3:1]^v[1],E=p[2]^v[2];p=p[_?1:3]^v[3];var C,S,P,R=v.length/4-2,D,z=4,j=[0,0,0,0];C=m.s[_],m=C[0];var q=C[1],Z=C[2],we=C[3],$e=C[4];for(D=0;D>>24]^q[w>>16&255]^Z[E>>8&255]^we[p&255]^v[z],S=m[w>>>24]^q[E>>16&255]^Z[p>>8&255]^we[b&255]^v[z+1],P=m[E>>>24]^q[p>>16&255]^Z[b>>8&255]^we[w&255]^v[z+2],p=m[p>>>24]^q[b>>16&255]^Z[w>>8&255]^we[E&255]^v[z+3],z+=4,b=C,w=S,E=P;for(D=0;4>D;D++)j[_?3&-D:D]=$e[b>>>24]<<24^$e[w>>16&255]<<16^$e[E>>8&255]<<8^$e[p&255]^v[z++],C=b,b=w,w=E,E=p,p=C;return j}e.bitArray={bitSlice:function(m,p,_){return m=e.bitArray.$(m.slice(p/32),32-(p&31)).slice(1),_===void 0?m:e.bitArray.clamp(m,_-p)},extract:function(m,p,_){var v=Math.floor(-p-_&31);return((p+_-1^p)&-32?m[p/32|0]<<32-v^m[p/32+1|0]>>>v:m[p/32|0]>>>v)&(1<<_)-1},concat:function(m,p){if(m.length===0||p.length===0)return m.concat(p);var _=m[m.length-1],v=e.bitArray.getPartial(_);return v===32?m.concat(p):e.bitArray.$(p,v,_|0,m.slice(0,m.length-1))},bitLength:function(m){var p=m.length;return p===0?0:32*(p-1)+e.bitArray.getPartial(m[p-1])},clamp:function(m,p){if(32*m.length>p-1,1)),m},partial:function(m,p,_){return m===32?p:(_?p|0:p<<32-m)+1099511627776*m},getPartial:function(m){return Math.round(m/1099511627776)||32},equal:function(m,p){if(e.bitArray.bitLength(m)!==e.bitArray.bitLength(p))return!1;var _=0,v;for(v=0;v>>p),_=m[b]<<32-p;return b=m.length?m[m.length-1]:0,m=e.bitArray.getPartial(b),v.push(e.bitArray.partial(p+m&31,32>>24|_>>>8&65280|(_&65280)<<8|_<<24;return m}},e.codec.utf8String={fromBits:function(m){var p="",_=e.bitArray.bitLength(m),v,b;for(v=0;v<_/8;v++)!(v&3)&&(b=m[v/4]),p+=String.fromCharCode(b>>>8>>>8>>>8),b<<=8;return decodeURIComponent(escape(p))},toBits:function(m){m=unescape(encodeURIComponent(m));var p=[],_,v=0;for(_=0;_>>E)>>>b),ER){if(!p)try{return e.codec.base32hex.toBits(m)}catch{}throw new e.exception.invalid("this isn't "+D+"!")}C>b?(C-=b,w.push(P^R>>>C),P=R<<_-C):(C+=v,P^=R<<_-C)}return C&56&&w.push(e.bitArray.partial(C&56,P,1)),w}},e.codec.base32hex={fromBits:function(m,p){return e.codec.base32.fromBits(m,p,1)},toBits:function(m){return e.codec.base32.toBits(m,1)}},e.codec.base64={B:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fromBits:function(m,p,_){var v="",b=0,w=e.codec.base64.B,E=0,C=e.bitArray.bitLength(m);for(_&&(w=w.substr(0,62)+"-_"),_=0;6*v.length>>b)>>>26),6>b?(E=m[_]<<6-b,b+=26,_++):(E<<=6,b-=6);for(;v.length&3&&!p;)v+="=";return v},toBits:function(m,p){m=m.replace(/\s|=/g,"");var _=[],v,b=0,w=e.codec.base64.B,E=0,C;for(p&&(w=w.substr(0,62)+"-_"),v=0;vC)throw new e.exception.invalid("this isn't base64!");26>>b),E=C<<32-b):(b+=6,E^=C<<32-b)}return b&56&&_.push(e.bitArray.partial(b&56,E,1)),_}},e.codec.base64url={fromBits:function(m){return e.codec.base64.fromBits(m,1,1)},toBits:function(m){return e.codec.base64.toBits(m,1)}},e.hash.sha256=function(m){this.b[0]||this.O(),m?(this.F=m.F.slice(0),this.A=m.A.slice(0),this.l=m.l):this.reset()},e.hash.sha256.hash=function(m){return new e.hash.sha256().update(m).finalize()},e.hash.sha256.prototype={blockSize:512,reset:function(){return this.F=this.Y.slice(0),this.A=[],this.l=0,this},update:function(m){typeof m=="string"&&(m=e.codec.utf8String.toBits(m));var p,_=this.A=e.bitArray.concat(this.A,m);if(p=this.l,m=this.l=p+e.bitArray.bitLength(m),9007199254740991p;_++){for(b=!0,v=2;v*v<=_;v++)if(_%v===0){b=!1;break}b&&(8>p&&(this.Y[p]=m(Math.pow(_,.5))),this.b[p]=m(Math.pow(_,1/3)),p++)}}};function n(m,p){var _,v,b,w=m.F,E=m.b,C=w[0],S=w[1],P=w[2],R=w[3],D=w[4],z=w[5],j=w[6],q=w[7];for(_=0;64>_;_++)16>_?v=p[_]:(v=p[_+1&15],b=p[_+14&15],v=p[_&15]=(v>>>7^v>>>18^v>>>3^v<<25^v<<14)+(b>>>17^b>>>19^b>>>10^b<<15^b<<13)+p[_&15]+p[_+9&15]|0),v=v+q+(D>>>6^D>>>11^D>>>25^D<<26^D<<21^D<<7)+(j^D&(z^j))+E[_],q=j,j=z,z=D,D=R+v|0,R=P,P=S,S=C,C=v+(S&P^R&(S^P))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;w[0]=w[0]+C|0,w[1]=w[1]+S|0,w[2]=w[2]+P|0,w[3]=w[3]+R|0,w[4]=w[4]+D|0,w[5]=w[5]+z|0,w[6]=w[6]+j|0,w[7]=w[7]+q|0}e.mode.ccm={name:"ccm",G:[],listenProgress:function(m){e.mode.ccm.G.push(m)},unListenProgress:function(m){m=e.mode.ccm.G.indexOf(m),-1S)throw new e.exception.invalid("ccm: iv must be at least 7 bytes");for(w=2;4>w&&P>>>8*w;w++);return w<15-S&&(w=15-S),_=C.clamp(_,8*(15-w)),p=e.mode.ccm.V(m,p,_,v,b,w),E=e.mode.ccm.C(m,E,_,p,b,w),C.concat(E.data,E.tag)},decrypt:function(m,p,_,v,b){b=b||64,v=v||[];var w=e.bitArray,E=w.bitLength(_)/8,P=w.bitLength(p),C=w.clamp(p,P-b),S=w.bitSlice(p,P-b),P=(P-b)/8;if(7>E)throw new e.exception.invalid("ccm: iv must be at least 7 bytes");for(p=2;4>p&&P>>>8*p;p++);if(p<15-E&&(p=15-E),_=w.clamp(_,8*(15-p)),C=e.mode.ccm.C(m,C,_,S,b,p),m=e.mode.ccm.V(m,C.data,_,v,b,p),!w.equal(C.tag,m))throw new e.exception.corrupt("ccm: tag doesn't match");return C.data},na:function(m,p,_,v,b,w){var E=[],C=e.bitArray,S=C.i;if(v=[C.partial(8,(p.length?64:0)|v-2<<2|w-1)],v=C.concat(v,_),v[3]|=b,v=m.encrypt(v),p.length)for(_=C.bitLength(p)/8,65279>=_?E=[C.partial(16,_)]:4294967295>=_&&(E=C.concat([C.partial(16,65534)],[_])),E=C.concat(E,p),p=0;pb||16R&&(e.mode.ccm.fa(E/S),R+=D),_[3]++,b=m.encrypt(_),p[E]^=b[0],p[E+1]^=b[1],p[E+2]^=b[2],p[E+3]^=b[3];return{tag:v,data:C.clamp(p,P)}}},e.mode.ocb2={name:"ocb2",encrypt:function(m,p,_,v,b,w){if(e.bitArray.bitLength(_)!==128)throw new e.exception.invalid("ocb iv must be 128 bits");var E,C=e.mode.ocb2.S,S=e.bitArray,P=S.i,R=[0,0,0,0];_=C(m.encrypt(_));var D,z=[];for(v=v||[],b=b||64,E=0;E+4b.bitLength(_)&&(C=w(C,v(C)),_=b.concat(_,[-2147483648,0,0,0])),E=w(E,_),m.encrypt(w(v(w(C,v(C))),E))},S:function(m){return[m[0]<<1^m[1]>>>31,m[1]<<1^m[2]>>>31,m[2]<<1^m[3]>>>31,m[3]<<1^135*(m[0]>>>31)]}},e.mode.gcm={name:"gcm",encrypt:function(m,p,_,v,b){var w=p.slice(0);return p=e.bitArray,v=v||[],m=e.mode.gcm.C(!0,m,w,v,_,b||128),p.concat(m.data,m.tag)},decrypt:function(m,p,_,v,b){var w=p.slice(0),E=e.bitArray,C=E.bitLength(w);if(b=b||128,v=v||[],b<=C?(p=E.bitSlice(w,C-b),w=E.bitSlice(w,0,C-b)):(p=w,w=[]),m=e.mode.gcm.C(!1,m,w,v,_,b),!E.equal(m.tag,p))throw new e.exception.corrupt("gcm: tag doesn't match");return m.data},ka:function(m,p){var _,v,b,w,E,C=e.bitArray.i;for(b=[0,0,0,0],w=p.slice(0),_=0;128>_;_++){for((v=(m[Math.floor(_/32)]&1<<31-_%32)!==0)&&(b=C(b,w)),E=(w[3]&1)!==0,v=3;0>>1|(w[v-1]&1)<<31;w[0]>>>=1,E&&(w[0]^=-520093696)}return b},j:function(m,p,_){var v,b=_.length;for(p=p.slice(0),v=0;vb&&(m=p.hash(m)),v=0;vv||0>_)throw new e.exception.invalid("invalid params to pbkdf2");typeof m=="string"&&(m=e.codec.utf8String.toBits(m)),typeof p=="string"&&(p=e.codec.utf8String.toBits(p)),b=b||e.misc.hmac,m=new b(m);var w,E,C,S,P=[],R=e.bitArray;for(S=1;32*P.length<(v||1);S++){for(b=w=m.encrypt(R.concat(p,[S])),E=1;E<_;E++)for(w=m.encrypt(w),C=0;CE;E++)b.push(4294967296*Math.random()|0);for(E=0;E=1<this.o&&(this.o=w),this.P++,this.b=e.hash.sha256.hash(this.b.concat(b)),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[E].update([v,this.N++,2,p,w,m.length].concat(m))}break;case"string":p===void 0&&(p=m.length),this.c[E].update([v,this.N++,3,p,w,m.length]),this.c[E].update(m);break;default:S=1}if(S)throw new e.exception.bug("random: addEntropy only supports number, array of numbers or string");this.m[E]+=p,this.f+=p,C===this.u&&(this.isReady()!==this.u&&i("seeded",Math.max(this.o,this.f)),i("progress",this.getProgress()))},isReady:function(m){return m=this.T[m!==void 0?m:this.M],this.o&&this.o>=m?this.m[0]>this.ba&&new Date().valueOf()>this.Z?this.J|this.I:this.I:this.f>=m?this.J|this.u:this.u},getProgress:function(m){return m=this.T[m||this.M],this.o>=m||this.f>m?1:this.f/m},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(m,p){this.K[m][this.ga++]=p},removeEventListener:function(m,p){var _,v,b=this.K[m],w=[];for(v in b)b.hasOwnProperty(v)&&b[v]===p&&w.push(v);for(_=0;_p&&(m.h[p]=m.h[p]+1|0,!m.h[p]);p++);return m.L.encrypt(m.h)}function d(m,p){return function(){p.apply(m,arguments)}}e.random=new e.prng(6);e:try{var u,f,g,y;if(y=t.exports){var x;try{x=nV}catch{x=null}y=f=x}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(g=new Uint32Array(32),window.crypto&&window.crypto.getRandomValues)window.crypto.getRandomValues(g);else if(window.msCrypto&&window.msCrypto.getRandomValues)window.msCrypto.getRandomValues(g);else break e;e.random.addEntropy(g,1024,"crypto['getRandomValues']")}}catch(m){typeof window<"u"&&window.console&&(console.log("There was an error collecting entropy from the browser:"),console.log(m))}e.json={defaults:{v:1,iter:1e4,ks:128,ts:64,mode:"ccm",adata:"",cipher:"aes"},ja:function(m,p,_,v){_=_||{},v=v||{};var b=e.json,w=b.g({iv:e.random.randomWords(4,0)},b.defaults),E;if(b.g(w,_),_=w.adata,typeof w.salt=="string"&&(w.salt=e.codec.base64.toBits(w.salt)),typeof w.iv=="string"&&(w.iv=e.codec.base64.toBits(w.iv)),!e.mode[w.mode]||!e.cipher[w.cipher]||typeof m=="string"&&100>=w.iter||w.ts!==64&&w.ts!==96&&w.ts!==128||w.ks!==128&&w.ks!==192&&w.ks!==256||2>w.iv.length||4=p.iter||p.ts!==64&&p.ts!==96&&p.ts!==128||p.ks!==128&&p.ks!==192&&p.ks!==256||!p.iv||2>p.iv.length||49007199254740991)throw new Ut.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=Ut.bitArray.concat(e,[Ut.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],l=i[1],d=i[2],u=i[3],f=i[4],g=i[5],y=i[6],x=i[7],m=i[8],p=i[9],_=i[10],v=i[11],b=i[12],w=i[13],E=i[14],C=i[15],S;if(typeof Uint32Array<"u"){S=Array(160);for(let Oe=0;Oe<32;Oe++)S[Oe]=t[Oe]}else S=t;let P=a,R=l,D=d,z=u,j=f,q=g,Z=y,we=x,$e=m,ye=p,ke=_,Ie=v,Be=b,Re=w,se=E,Te=C;for(e=0;e<80;e++){if(e<16)r=S[e*2],n=S[e*2+1];else{const G=S[(e-15)*2],ae=S[(e-15)*2+1],Ae=(ae<<31|G>>>1)^(ae<<24|G>>>8)^G>>>7,he=(G<<31|ae>>>1)^(G<<24|ae>>>8)^(G<<25|ae>>>7),ge=S[(e-2)*2],ie=S[(e-2)*2+1],W=(ie<<13|ge>>>19)^(ge<<3|ie>>>29)^ge>>>6,U=(ge<<13|ie>>>19)^(ie<<3|ge>>>29)^(ge<<26|ie>>>6),xe=S[(e-7)*2],Se=S[(e-7)*2+1],Y=S[(e-16)*2],ce=S[(e-16)*2+1];n=he+Se,r=Ae+xe+(n>>>0>>0?1:0),n+=U,r+=W+(n>>>0>>0?1:0),n+=ce,r+=Y+(n>>>0>>0?1:0)}S[e*2]=r|=0,S[e*2+1]=n|=0;const Oe=$e&ke^~$e&Be,Ce=ye&Ie^~ye&Re,je=P&D^P&j^D&j,Ge=R&z^R&q^z&q,te=(R<<4|P>>>28)^(P<<30|R>>>2)^(P<<25|R>>>7),le=(P<<4|R>>>28)^(R<<30|P>>>2)^(R<<25|P>>>7),fe=(ye<<18|$e>>>14)^(ye<<14|$e>>>18)^($e<<23|ye>>>9),De=($e<<18|ye>>>14)^($e<<14|ye>>>18)^(ye<<23|$e>>>9),Ke=o[e*2],nt=o[e*2+1];let k=Te+De,A=se+fe+(k>>>0>>0?1:0);k+=Ce,A+=Oe+(k>>>0>>0?1:0),k+=nt,A+=Ke+(k>>>0>>0?1:0),k=k+n|0,A+=r+(k>>>0>>0?1:0);const M=le+Ge,V=te+je+(M>>>0>>0?1:0);se=Be,Te=Re,Be=ke,Re=Ie,ke=$e,Ie=ye,ye=we+k|0,$e=Z+A+(ye>>>0>>0?1:0)|0,Z=j,we=q,j=D,q=z,D=P,z=R,R=k+M|0,P=A+V+(R>>>0>>0?1:0)|0}l=i[1]=l+R|0,i[0]=a+P+(l>>>0>>0?1:0)|0,u=i[3]=u+z|0,i[2]=d+D+(u>>>0>>0?1:0)|0,g=i[5]=g+q|0,i[4]=f+j+(g>>>0>>0?1:0)|0,x=i[7]=x+we|0,i[6]=y+Z+(x>>>0>>0?1:0)|0,p=i[9]=p+ye|0,i[8]=m+$e+(p>>>0>>0?1:0)|0,v=i[11]=v+Ie|0,i[10]=_+ke+(v>>>0>>0?1:0)|0,w=i[13]=w+Re|0,i[12]=b+Be+(w>>>0>>0?1:0)|0,C=i[15]=C+Te|0,i[14]=E+se+(C>>>0>>0?1:0)|0}};Ut.hash.sha512;function iV(t){let e,r;if(t.length===0)return new ArrayBuffer(0);const n=Td.bitArray.bitLength(t)/8;if(Td.bitArray.bitLength(t)%8!==0)throw new Td.exception.invalid("Invalid bit size, must be divisble by 8 to fit in an arraybuffer correctly");const i=new DataView(new ArrayBuffer(t.length*4));for(r=0;re?e:r}function op(t,e,r){return re?e:r}function RE(t){return t=t%360,t<0&&(t=t+360),t}function ys(t){return t=t%360,t<0&&(t=t+360),t}function Z_(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 cS=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],lV=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],dS=[95.047,100,108.883];function O0(t,e,r){return(255<<24|(t&255)<<16|(e&255)<<8|r&255)>>>0}function DE(t){const e=bs(t[0]),r=bs(t[1]),n=bs(t[2]);return O0(e,r,n)}function P0(t){return t>>16&255}function R0(t){return t>>8&255}function D0(t){return t&255}function cV(t,e,r){const n=lV,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,l=bs(i),d=bs(o),u=bs(a);return O0(l,d,u)}function dV(t){const e=go(P0(t)),r=go(R0(t)),n=go(D0(t));return Z_([e,r,n],cS)}function uV(t){const e=go(P0(t)),r=go(R0(t)),n=go(D0(t)),i=cS,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,l=i[2][0]*e+i[2][1]*r+i[2][2]*n,d=dS,u=o/d[0],f=a/d[1],g=l/d[2],y=kd(u),x=kd(f),m=kd(g),p=116*x-16,_=500*(y-x),v=200*(x-m);return[p,_,v]}function fV(t){const e=ma(t),r=bs(e);return O0(r,r,r)}function LE(t){const e=dV(t)[1];return 116*kd(e/100)-16}function ma(t){return 100*pV((t+16)/116)}function ey(t){return kd(t/100)*116-16}function go(t){const e=t/255;return e<=.040449936?e/12.92*100:Math.pow((e+.055)/1.055,2.4)*100}function bs(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,sV(0,255,Math.round(r*255))}function hV(){return dS}function kd(t){const e=.008856451679035631,r=24389/27;return t>e?Math.pow(t,1/3):(r*t+16)/116}function pV(t){const e=.008856451679035631,r=24389/27,n=t*t*t;return n>e?n:(116*t-16)/r}class xi{static make(e=hV(),r=200/Math.PI*ma(50)/100,n=50,i=2,o=!1){const a=e,l=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,g=f>=.9?Ed(.59,.69,(f-.9)*10):Ed(.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 x=f,m=[y*(100/l)+1-y,y*(100/d)+1-y,y*(100/u)+1-y],p=1/(5*r+1),_=p*p*p*p,v=1-_,b=_*r+.1*v*v*Math.cbrt(5*r),w=ma(n)/e[1],E=1.48+Math.sqrt(w),C=.725/Math.pow(w,.2),S=C,P=[Math.pow(b*m[0]*l/100,.42),Math.pow(b*m[1]*d/100,.42),Math.pow(b*m[2]*u/100,.42)],R=[400*P[0]/(P[0]+27.13),400*P[1]/(P[1]+27.13),400*P[2]/(P[2]+27.13)],D=(2*R[0]+R[1]+.05*R[2])*C;return new xi(w,D,C,S,g,x,m,b,Math.pow(b,.25),E)}constructor(e,r,n,i,o,a,l,d,u,f){this.n=e,this.aw=r,this.nbb=n,this.ncb=i,this.c=o,this.nc=a,this.rgbD=l,this.fl=d,this.fLRoot=u,this.z=f}}xi.DEFAULT=xi.make();class Rn{constructor(e,r,n,i,o,a,l,d,u){this.hue=e,this.chroma=r,this.j=n,this.q=i,this.m=o,this.s=a,this.jstar=l,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 Rn.fromIntInViewingConditions(e,xi.DEFAULT)}static fromIntInViewingConditions(e,r){const n=(e&16711680)>>16,i=(e&65280)>>8,o=e&255,a=go(n),l=go(i),d=go(o),u=.41233895*a+.35762064*l+.18051042*d,f=.2126*a+.7152*l+.0722*d,g=.01932141*a+.11916382*l+.95034478*d,y=.401288*u+.650173*f-.051461*g,x=-.250268*u+1.204414*f+.045854*g,m=-.002079*u+.048952*f+.953127*g,p=r.rgbD[0]*y,_=r.rgbD[1]*x,v=r.rgbD[2]*m,b=Math.pow(r.fl*Math.abs(p)/100,.42),w=Math.pow(r.fl*Math.abs(_)/100,.42),E=Math.pow(r.fl*Math.abs(v)/100,.42),C=vn(p)*400*b/(b+27.13),S=vn(_)*400*w/(w+27.13),P=vn(v)*400*E/(E+27.13),R=(11*C+-12*S+P)/11,D=(C+S-2*P)/9,z=(20*C+20*S+21*P)/20,j=(40*C+20*S+P)/20,Z=Math.atan2(D,R)*180/Math.PI,we=Z<0?Z+360:Z>=360?Z-360:Z,$e=we*Math.PI/180,ye=j*r.nbb,ke=100*Math.pow(ye/r.aw,r.c*r.z),Ie=4/r.c*Math.sqrt(ke/100)*(r.aw+4)*r.fLRoot,Be=we<20.14?we+360:we,Re=.25*(Math.cos(Be*Math.PI/180+2)+3.8),Te=5e4/13*Re*r.nc*r.ncb*Math.sqrt(R*R+D*D)/(z+.305),Oe=Math.pow(Te,.9)*Math.pow(1.64-Math.pow(.29,r.n),.73),Ce=Oe*Math.sqrt(ke/100),je=Ce*r.fLRoot,Ge=50*Math.sqrt(Oe*r.c/(r.aw+4)),te=(1+100*.007)*ke/(1+.007*ke),le=1/.0228*Math.log(1+.0228*je),fe=le*Math.cos($e),De=le*Math.sin($e);return new Rn(we,Ce,ke,Ie,je,Ge,te,fe,De)}static fromJch(e,r,n){return Rn.fromJchInViewingConditions(e,r,n,xi.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,l=r/Math.sqrt(e/100),d=50*Math.sqrt(l*i.c/(i.aw+4)),u=n*Math.PI/180,f=(1+100*.007)*e/(1+.007*e),g=1/.0228*Math.log(1+.0228*a),y=g*Math.cos(u),x=g*Math.sin(u);return new Rn(n,r,e,o,a,d,f,y,x)}static fromUcs(e,r,n){return Rn.fromUcsInViewingConditions(e,r,n,xi.DEFAULT)}static fromUcsInViewingConditions(e,r,n,i){const o=r,a=n,l=Math.sqrt(o*o+a*a),u=(Math.exp(l*.0228)-1)/.0228/i.fLRoot;let f=Math.atan2(a,o)*(180/Math.PI);f<0&&(f+=360);const g=e/(1-(e-100)*.007);return Rn.fromJchInViewingConditions(g,u,f,i)}toInt(){return this.viewed(xi.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),l=o*(5e4/13)*e.nc*e.ncb,d=a/e.nbb,u=Math.sin(i),f=Math.cos(i),g=23*(d+.305)*n/(23*l+11*n*f+108*n*u),y=g*f,x=g*u,m=(460*d+451*y+288*x)/1403,p=(460*d-891*y-261*x)/1403,_=(460*d-220*y-6300*x)/1403,v=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),b=vn(m)*(100/e.fl)*Math.pow(v,1/.42),w=Math.max(0,27.13*Math.abs(p)/(400-Math.abs(p))),E=vn(p)*(100/e.fl)*Math.pow(w,1/.42),C=Math.max(0,27.13*Math.abs(_)/(400-Math.abs(_))),S=vn(_)*(100/e.fl)*Math.pow(C,1/.42),P=b/e.rgbD[0],R=E/e.rgbD[1],D=S/e.rgbD[2],z=1.86206786*P-1.01125463*R+.14918677*D,j=.38752654*P+.62144744*R-.00897398*D,q=-.0158415*P-.03412294*R+1.04996444*D;return cV(z,j,q)}static fromXyzInViewingConditions(e,r,n,i){const o=.401288*e+.650173*r-.051461*n,a=-.250268*e+1.204414*r+.045854*n,l=-.002079*e+.048952*r+.953127*n,d=i.rgbD[0]*o,u=i.rgbD[1]*a,f=i.rgbD[2]*l,g=Math.pow(i.fl*Math.abs(d)/100,.42),y=Math.pow(i.fl*Math.abs(u)/100,.42),x=Math.pow(i.fl*Math.abs(f)/100,.42),m=vn(d)*400*g/(g+27.13),p=vn(u)*400*y/(y+27.13),_=vn(f)*400*x/(x+27.13),v=(11*m+-12*p+_)/11,b=(m+p-2*_)/9,w=(20*m+20*p+21*_)/20,E=(40*m+20*p+_)/20,S=Math.atan2(b,v)*180/Math.PI,P=S<0?S+360:S>=360?S-360:S,R=P*Math.PI/180,D=E*i.nbb,z=100*Math.pow(D/i.aw,i.c*i.z),j=4/i.c*Math.sqrt(z/100)*(i.aw+4)*i.fLRoot,q=P<20.14?P+360:P,Z=1/4*(Math.cos(q*Math.PI/180+2)+3.8),$e=5e4/13*Z*i.nc*i.ncb*Math.sqrt(v*v+b*b)/(w+.305),ye=Math.pow($e,.9)*Math.pow(1.64-Math.pow(.29,i.n),.73),ke=ye*Math.sqrt(z/100),Ie=ke*i.fLRoot,Be=50*Math.sqrt(ye*i.c/(i.aw+4)),Re=(1+100*.007)*z/(1+.007*z),se=Math.log(1+.0228*Ie)/.0228,Te=se*Math.cos(R),Oe=se*Math.sin(R);return new Rn(P,ke,z,j,Ie,Be,Re,Te,Oe)}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),l=o*(5e4/13)*e.nc*e.ncb,d=a/e.nbb,u=Math.sin(i),f=Math.cos(i),g=23*(d+.305)*n/(23*l+11*n*f+108*n*u),y=g*f,x=g*u,m=(460*d+451*y+288*x)/1403,p=(460*d-891*y-261*x)/1403,_=(460*d-220*y-6300*x)/1403,v=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),b=vn(m)*(100/e.fl)*Math.pow(v,1/.42),w=Math.max(0,27.13*Math.abs(p)/(400-Math.abs(p))),E=vn(p)*(100/e.fl)*Math.pow(w,1/.42),C=Math.max(0,27.13*Math.abs(_)/(400-Math.abs(_))),S=vn(_)*(100/e.fl)*Math.pow(C,1/.42),P=b/e.rgbD[0],R=E/e.rgbD[1],D=S/e.rgbD[2],z=1.86206786*P-1.01125463*R+.14918677*D,j=.38752654*P+.62144744*R-.00897398*D,q=-.0158415*P-.03412294*R+1.04996444*D;return[z,j,q]}}class Je{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 vn(e)*400*r/(r+27.13)}static hueOf(e){const r=Z_(e,Je.SCALED_DISCOUNT_FROM_LINRGB),n=Je.chromaticAdaptation(r[0]),i=Je.chromaticAdaptation(r[1]),o=Je.chromaticAdaptation(r[2]),a=(11*n+-12*i+o)/11,l=(n+i-2*o)/9;return Math.atan2(l,a)}static areInCyclicOrder(e,r,n){const i=Je.sanitizeRadians(r-e),o=Je.sanitizeRadians(n-e);return i100.01||z[1]>100.01||z[2]>100.01?0:DE(z);i=i-(we-n)*i/(2*we)}return 0}static solveToInt(e,r,n){if(r<1e-4||n<1e-4||n>99.9999)return fV(n);e=ys(e);const i=e/180*Math.PI,o=ma(n),a=Je.findResultByJ(i,r,o);if(a!==0)return a;const l=Je.bisectToLimit(o,i);return DE(l)}static solveToCam(e,r,n){return Rn.fromInt(Je.solveToInt(e,r,n))}}Je.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]];Je.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]];Je.Y_FROM_LINRGB=[.2126,.7152,.0722];Je.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 Qr{static from(e,r,n){return new Qr(Je.solveToInt(e,r,n))}static fromInt(e){return new Qr(e)}toInt(){return this.argb}get hue(){return this.internalHue}set hue(e){this.setInternalState(Je.solveToInt(e,this.internalChroma,this.internalTone))}get chroma(){return this.internalChroma}set chroma(e){this.setInternalState(Je.solveToInt(this.internalHue,e,this.internalTone))}get tone(){return this.internalTone}set tone(e){this.setInternalState(Je.solveToInt(this.internalHue,this.internalChroma,e))}constructor(e){this.argb=e;const r=Rn.fromInt(e);this.internalHue=r.hue,this.internalChroma=r.chroma,this.internalTone=LE(e),this.argb=e}setInternalState(e){const r=Rn.fromInt(e);this.internalHue=r.hue,this.internalChroma=r.chroma,this.internalTone=LE(e),this.argb=e}inViewingConditions(e){const n=Rn.fromInt(this.toInt()).xyzInViewingConditions(e),i=Rn.fromXyzInViewingConditions(n[0],n[1],n[2],xi.make());return Qr.from(i.hue,i.chroma,ey(n[1]))}}class Ir{static ratioOfTones(e,r){return e=op(0,100,e),r=op(0,100,r),Ir.ratioOfYs(ma(e),ma(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=ma(e),i=r*(n+5)-5,o=Ir.ratioOfYs(i,n),a=Math.abs(o-r);if(o.04)return-1;const l=ey(i)+.4;return l<0||l>100?-1:l}static darker(e,r){if(e<0||e>100)return-1;const n=ma(e),i=(n+5)/r-5,o=Ir.ratioOfYs(n,i),a=Math.abs(o-r);if(o.04)return-1;const l=ey(i)-.4;return l<0||l>100?-1:l}static lighterUnsafe(e,r){const n=Ir.lighter(e,r);return n<0?100:n}static darkerUnsafe(e,r){const n=Ir.darker(e,r);return n<0?0:n}}class nm{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 nm.isDisliked(e)?Qr.from(e.hue,e.chroma,70):e}}class ze{static fromPalette(e){return new ze(e.name??"",e.palette,e.tone,e.isBackground??!1,e.background,e.secondBackground,e.contrastCurve,e.toneDeltaPair)}constructor(e,r,n,i,o,a,l,d){if(this.name=e,this.palette=r,this.tone=n,this.isBackground=i,this.background=o,this.secondBackground=a,this.contrastCurve=l,this.toneDeltaPair=d,this.hctCache=new Map,!o&&a)throw new Error(`Color ${e} has secondBackgrounddefined, but background is not defined.`);if(!o&&l)throw new Error(`Color ${e} has contrastCurvedefined, but background is not defined.`);if(o&&!l)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,l=n.polarity,d=n.stayTogether,f=this.background(e).getTone(e),g=l==="nearer"||l==="lighter"&&!e.isDark||l==="darker"&&e.isDark,y=g?i:o,x=g?o:i,m=this.name===y.name,p=e.isDark?1:-1,_=y.contrastCurve.getContrast(e.contrastLevel),v=x.contrastCurve.getContrast(e.contrastLevel),b=y.tone(e);let w=Ir.ratioOfTones(f,b)>=_?b:ze.foregroundTone(f,_);const E=x.tone(e);let C=Ir.ratioOfTones(f,E)>=v?E:ze.foregroundTone(f,v);return r&&(w=ze.foregroundTone(f,_),C=ze.foregroundTone(f,v)),(C-w)*p>=a||(C=op(0,100,w+a*p),(C-w)*p>=a||(w=op(0,100,C-a*p))),50<=w&&w<60?p>0?(w=60,C=Math.max(C,w+a*p)):(w=49,C=Math.min(C,w+a*p)):50<=C&&C<60&&(d?p>0?(w=60,C=Math.max(C,w+a*p)):(w=49,C=Math.min(C,w+a*p)):p>0?C=60:C=49),m?w: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(Ir.ratioOfTones(i,n)>=o||(n=ze.foregroundTone(i,o)),r&&(n=ze.foregroundTone(i,o)),this.isBackground&&50<=n&&n<60&&(Ir.ratioOfTones(49,i)>=o?n=49:n=60),this.secondBackground){const[a,l]=[this.background,this.secondBackground],[d,u]=[a(e).getTone(e),l(e).getTone(e)],[f,g]=[Math.max(d,u),Math.min(d,u)];if(Ir.ratioOfTones(f,n)>=o&&Ir.ratioOfTones(g,n)>=o)return n;const y=Ir.lighter(f,o),x=Ir.darker(g,o),m=[];return y!==-1&&m.push(y),x!==-1&&m.push(x),ze.tonePrefersLightForeground(d)||ze.tonePrefersLightForeground(u)?y<0?100:y:m.length===1?m[0]:x<0?0:x}return n}}static foregroundTone(e,r){const n=Ir.lighterUnsafe(e,r),i=Ir.darkerUnsafe(e,r),o=Ir.ratioOfTones(n,e),a=Ir.ratioOfTones(i,e);if(ze.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 ze.tonePrefersLightForeground(e)&&!ze.toneAllowsLightForeground(e)?49:e}}var Ra;(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"})(Ra||(Ra={}));class Ct{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?Ed(this.low,this.normal,(e- -1)/1):e<.5?Ed(this.normal,this.medium,(e-0)/.5):e<1?Ed(this.medium,this.high,(e-.5)/.5):this.high}}class wn{constructor(e,r,n,i,o){this.roleA=e,this.roleB=r,this.delta=n,this.polarity=i,this.stayTogether=o}}function gc(t){return t.variant===Ra.FIDELITY||t.variant===Ra.CONTENT}function mr(t){return t.variant===Ra.MONOCHROME}function mV(t,e,r,n){let i=r,o=Qr.from(t,e,r);if(o.chromal.chroma||Math.abs(l.chroma-e)<.4)break;const d=Math.abs(l.chroma-e),u=Math.abs(o.chroma-e);dt.primaryPalette,tone:t=>t.primaryPalette.keyColor.tone});X.secondaryPaletteKeyColor=ze.fromPalette({name:"secondary_palette_key_color",palette:t=>t.secondaryPalette,tone:t=>t.secondaryPalette.keyColor.tone});X.tertiaryPaletteKeyColor=ze.fromPalette({name:"tertiary_palette_key_color",palette:t=>t.tertiaryPalette,tone:t=>t.tertiaryPalette.keyColor.tone});X.neutralPaletteKeyColor=ze.fromPalette({name:"neutral_palette_key_color",palette:t=>t.neutralPalette,tone:t=>t.neutralPalette.keyColor.tone});X.neutralVariantPaletteKeyColor=ze.fromPalette({name:"neutral_variant_palette_key_color",palette:t=>t.neutralVariantPalette,tone:t=>t.neutralVariantPalette.keyColor.tone});X.background=ze.fromPalette({name:"background",palette:t=>t.neutralPalette,tone:t=>t.isDark?6:98,isBackground:!0});X.onBackground=ze.fromPalette({name:"on_background",palette:t=>t.neutralPalette,tone:t=>t.isDark?90:10,background:t=>X.background,contrastCurve:new Ct(3,3,4.5,7)});X.surface=ze.fromPalette({name:"surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?6:98,isBackground:!0});X.surfaceDim=ze.fromPalette({name:"surface_dim",palette:t=>t.neutralPalette,tone:t=>t.isDark?6:87,isBackground:!0});X.surfaceBright=ze.fromPalette({name:"surface_bright",palette:t=>t.neutralPalette,tone:t=>t.isDark?24:98,isBackground:!0});X.surfaceContainerLowest=ze.fromPalette({name:"surface_container_lowest",palette:t=>t.neutralPalette,tone:t=>t.isDark?4:100,isBackground:!0});X.surfaceContainerLow=ze.fromPalette({name:"surface_container_low",palette:t=>t.neutralPalette,tone:t=>t.isDark?10:96,isBackground:!0});X.surfaceContainer=ze.fromPalette({name:"surface_container",palette:t=>t.neutralPalette,tone:t=>t.isDark?12:94,isBackground:!0});X.surfaceContainerHigh=ze.fromPalette({name:"surface_container_high",palette:t=>t.neutralPalette,tone:t=>t.isDark?17:92,isBackground:!0});X.surfaceContainerHighest=ze.fromPalette({name:"surface_container_highest",palette:t=>t.neutralPalette,tone:t=>t.isDark?22:90,isBackground:!0});X.onSurface=ze.fromPalette({name:"on_surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?90:10,background:t=>X.highestSurface(t),contrastCurve:new Ct(4.5,7,11,21)});X.surfaceVariant=ze.fromPalette({name:"surface_variant",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?30:90,isBackground:!0});X.onSurfaceVariant=ze.fromPalette({name:"on_surface_variant",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?80:30,background:t=>X.highestSurface(t),contrastCurve:new Ct(3,4.5,7,11)});X.inverseSurface=ze.fromPalette({name:"inverse_surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?90:20});X.inverseOnSurface=ze.fromPalette({name:"inverse_on_surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?20:95,background:t=>X.inverseSurface,contrastCurve:new Ct(4.5,7,11,21)});X.outline=ze.fromPalette({name:"outline",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?60:50,background:t=>X.highestSurface(t),contrastCurve:new Ct(1.5,3,4.5,7)});X.outlineVariant=ze.fromPalette({name:"outline_variant",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?30:80,background:t=>X.highestSurface(t),contrastCurve:new Ct(1,1,3,7)});X.shadow=ze.fromPalette({name:"shadow",palette:t=>t.neutralPalette,tone:t=>0});X.scrim=ze.fromPalette({name:"scrim",palette:t=>t.neutralPalette,tone:t=>0});X.surfaceTint=ze.fromPalette({name:"surface_tint",palette:t=>t.primaryPalette,tone:t=>t.isDark?80:40,isBackground:!0});X.primary=ze.fromPalette({name:"primary",palette:t=>t.primaryPalette,tone:t=>mr(t)?t.isDark?100:0:t.isDark?80:40,isBackground:!0,background:t=>X.highestSurface(t),contrastCurve:new Ct(3,4.5,7,11),toneDeltaPair:t=>new wn(X.primaryContainer,X.primary,15,"nearer",!1)});X.onPrimary=ze.fromPalette({name:"on_primary",palette:t=>t.primaryPalette,tone:t=>mr(t)?t.isDark?10:90:t.isDark?20:100,background:t=>X.primary,contrastCurve:new Ct(4.5,7,11,21)});X.primaryContainer=ze.fromPalette({name:"primary_container",palette:t=>t.primaryPalette,tone:t=>gc(t)?L0(t.sourceColorHct,t):mr(t)?t.isDark?85:25:t.isDark?30:90,isBackground:!0,background:t=>X.highestSurface(t),contrastCurve:new Ct(1,1,3,7),toneDeltaPair:t=>new wn(X.primaryContainer,X.primary,15,"nearer",!1)});X.onPrimaryContainer=ze.fromPalette({name:"on_primary_container",palette:t=>t.primaryPalette,tone:t=>gc(t)?ze.foregroundTone(X.primaryContainer.tone(t),4.5):mr(t)?t.isDark?0:100:t.isDark?90:10,background:t=>X.primaryContainer,contrastCurve:new Ct(4.5,7,11,21)});X.inversePrimary=ze.fromPalette({name:"inverse_primary",palette:t=>t.primaryPalette,tone:t=>t.isDark?40:80,background:t=>X.inverseSurface,contrastCurve:new Ct(3,4.5,7,11)});X.secondary=ze.fromPalette({name:"secondary",palette:t=>t.secondaryPalette,tone:t=>t.isDark?80:40,isBackground:!0,background:t=>X.highestSurface(t),contrastCurve:new Ct(3,4.5,7,11),toneDeltaPair:t=>new wn(X.secondaryContainer,X.secondary,15,"nearer",!1)});X.onSecondary=ze.fromPalette({name:"on_secondary",palette:t=>t.secondaryPalette,tone:t=>mr(t)?t.isDark?10:100:t.isDark?20:100,background:t=>X.secondary,contrastCurve:new Ct(4.5,7,11,21)});X.secondaryContainer=ze.fromPalette({name:"secondary_container",palette:t=>t.secondaryPalette,tone:t=>{const e=t.isDark?30:90;if(mr(t))return t.isDark?30:85;if(!gc(t))return e;let r=mV(t.secondaryPalette.hue,t.secondaryPalette.chroma,e,!t.isDark);return r=L0(t.secondaryPalette.getHct(r),t),r},isBackground:!0,background:t=>X.highestSurface(t),contrastCurve:new Ct(1,1,3,7),toneDeltaPair:t=>new wn(X.secondaryContainer,X.secondary,15,"nearer",!1)});X.onSecondaryContainer=ze.fromPalette({name:"on_secondary_container",palette:t=>t.secondaryPalette,tone:t=>gc(t)?ze.foregroundTone(X.secondaryContainer.tone(t),4.5):t.isDark?90:10,background:t=>X.secondaryContainer,contrastCurve:new Ct(4.5,7,11,21)});X.tertiary=ze.fromPalette({name:"tertiary",palette:t=>t.tertiaryPalette,tone:t=>mr(t)?t.isDark?90:25:t.isDark?80:40,isBackground:!0,background:t=>X.highestSurface(t),contrastCurve:new Ct(3,4.5,7,11),toneDeltaPair:t=>new wn(X.tertiaryContainer,X.tertiary,15,"nearer",!1)});X.onTertiary=ze.fromPalette({name:"on_tertiary",palette:t=>t.tertiaryPalette,tone:t=>mr(t)?t.isDark?10:90:t.isDark?20:100,background:t=>X.tertiary,contrastCurve:new Ct(4.5,7,11,21)});X.tertiaryContainer=ze.fromPalette({name:"tertiary_container",palette:t=>t.tertiaryPalette,tone:t=>{if(mr(t))return t.isDark?60:49;if(!gc(t))return t.isDark?30:90;const e=L0(t.tertiaryPalette.getHct(t.sourceColorHct.tone),t),r=t.tertiaryPalette.getHct(e);return nm.fixIfDisliked(r).tone},isBackground:!0,background:t=>X.highestSurface(t),contrastCurve:new Ct(1,1,3,7),toneDeltaPair:t=>new wn(X.tertiaryContainer,X.tertiary,15,"nearer",!1)});X.onTertiaryContainer=ze.fromPalette({name:"on_tertiary_container",palette:t=>t.tertiaryPalette,tone:t=>mr(t)?t.isDark?0:100:gc(t)?ze.foregroundTone(X.tertiaryContainer.tone(t),4.5):t.isDark?90:10,background:t=>X.tertiaryContainer,contrastCurve:new Ct(4.5,7,11,21)});X.error=ze.fromPalette({name:"error",palette:t=>t.errorPalette,tone:t=>t.isDark?80:40,isBackground:!0,background:t=>X.highestSurface(t),contrastCurve:new Ct(3,4.5,7,11),toneDeltaPair:t=>new wn(X.errorContainer,X.error,15,"nearer",!1)});X.onError=ze.fromPalette({name:"on_error",palette:t=>t.errorPalette,tone:t=>t.isDark?20:100,background:t=>X.error,contrastCurve:new Ct(4.5,7,11,21)});X.errorContainer=ze.fromPalette({name:"error_container",palette:t=>t.errorPalette,tone:t=>t.isDark?30:90,isBackground:!0,background:t=>X.highestSurface(t),contrastCurve:new Ct(1,1,3,7),toneDeltaPair:t=>new wn(X.errorContainer,X.error,15,"nearer",!1)});X.onErrorContainer=ze.fromPalette({name:"on_error_container",palette:t=>t.errorPalette,tone:t=>t.isDark?90:10,background:t=>X.errorContainer,contrastCurve:new Ct(4.5,7,11,21)});X.primaryFixed=ze.fromPalette({name:"primary_fixed",palette:t=>t.primaryPalette,tone:t=>mr(t)?40:90,isBackground:!0,background:t=>X.highestSurface(t),contrastCurve:new Ct(1,1,3,7),toneDeltaPair:t=>new wn(X.primaryFixed,X.primaryFixedDim,10,"lighter",!0)});X.primaryFixedDim=ze.fromPalette({name:"primary_fixed_dim",palette:t=>t.primaryPalette,tone:t=>mr(t)?30:80,isBackground:!0,background:t=>X.highestSurface(t),contrastCurve:new Ct(1,1,3,7),toneDeltaPair:t=>new wn(X.primaryFixed,X.primaryFixedDim,10,"lighter",!0)});X.onPrimaryFixed=ze.fromPalette({name:"on_primary_fixed",palette:t=>t.primaryPalette,tone:t=>mr(t)?100:10,background:t=>X.primaryFixedDim,secondBackground:t=>X.primaryFixed,contrastCurve:new Ct(4.5,7,11,21)});X.onPrimaryFixedVariant=ze.fromPalette({name:"on_primary_fixed_variant",palette:t=>t.primaryPalette,tone:t=>mr(t)?90:30,background:t=>X.primaryFixedDim,secondBackground:t=>X.primaryFixed,contrastCurve:new Ct(3,4.5,7,11)});X.secondaryFixed=ze.fromPalette({name:"secondary_fixed",palette:t=>t.secondaryPalette,tone:t=>mr(t)?80:90,isBackground:!0,background:t=>X.highestSurface(t),contrastCurve:new Ct(1,1,3,7),toneDeltaPair:t=>new wn(X.secondaryFixed,X.secondaryFixedDim,10,"lighter",!0)});X.secondaryFixedDim=ze.fromPalette({name:"secondary_fixed_dim",palette:t=>t.secondaryPalette,tone:t=>mr(t)?70:80,isBackground:!0,background:t=>X.highestSurface(t),contrastCurve:new Ct(1,1,3,7),toneDeltaPair:t=>new wn(X.secondaryFixed,X.secondaryFixedDim,10,"lighter",!0)});X.onSecondaryFixed=ze.fromPalette({name:"on_secondary_fixed",palette:t=>t.secondaryPalette,tone:t=>10,background:t=>X.secondaryFixedDim,secondBackground:t=>X.secondaryFixed,contrastCurve:new Ct(4.5,7,11,21)});X.onSecondaryFixedVariant=ze.fromPalette({name:"on_secondary_fixed_variant",palette:t=>t.secondaryPalette,tone:t=>mr(t)?25:30,background:t=>X.secondaryFixedDim,secondBackground:t=>X.secondaryFixed,contrastCurve:new Ct(3,4.5,7,11)});X.tertiaryFixed=ze.fromPalette({name:"tertiary_fixed",palette:t=>t.tertiaryPalette,tone:t=>mr(t)?40:90,isBackground:!0,background:t=>X.highestSurface(t),contrastCurve:new Ct(1,1,3,7),toneDeltaPair:t=>new wn(X.tertiaryFixed,X.tertiaryFixedDim,10,"lighter",!0)});X.tertiaryFixedDim=ze.fromPalette({name:"tertiary_fixed_dim",palette:t=>t.tertiaryPalette,tone:t=>mr(t)?30:80,isBackground:!0,background:t=>X.highestSurface(t),contrastCurve:new Ct(1,1,3,7),toneDeltaPair:t=>new wn(X.tertiaryFixed,X.tertiaryFixedDim,10,"lighter",!0)});X.onTertiaryFixed=ze.fromPalette({name:"on_tertiary_fixed",palette:t=>t.tertiaryPalette,tone:t=>mr(t)?100:10,background:t=>X.tertiaryFixedDim,secondBackground:t=>X.tertiaryFixed,contrastCurve:new Ct(4.5,7,11,21)});X.onTertiaryFixedVariant=ze.fromPalette({name:"on_tertiary_fixed_variant",palette:t=>t.tertiaryPalette,tone:t=>mr(t)?90:30,background:t=>X.tertiaryFixedDim,secondBackground:t=>X.tertiaryFixed,contrastCurve:new Ct(3,4.5,7,11)});class hr{static fromInt(e){const r=Qr.fromInt(e);return hr.fromHct(r)}static fromHct(e){return new hr(e.hue,e.chroma,e)}static fromHueAndChroma(e,r){return new hr(e,r,hr.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=Qr.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 l=Qr.from(e,r,50+a),d=Math.abs(l.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 l=0;for(let m=0;m<360;m++){const p=RE(n+m),_=this.hctsByHue[p],v=this.relativeTemperature(_),b=Math.abs(v-o);o=v,l+=b}let d=1;const u=l/r;let f=0;for(o=this.relativeTemperature(i);a.length=b,E=1;for(;w&&a.length=C,E++}if(o=_,d++,d>360){for(;a.length=a.length&&(p=p%a.length),g.splice(0,0,a[p])}const x=e-y-1;for(let m=1;m=a.length&&(p=p%a.length),g.push(a[p])}return g}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=Cd.isBetween(this.input.hue,e,n),l=a?n:e,d=a?e:n,u=1;let f=1e3,g=this.hctsByHue[Math.round(this.input.hue)];const y=1-this.inputRelativeTemperature;for(let x=0;x<=360;x+=1){const m=ys(l+u*x);if(!Cd.isBetween(m,l,d))continue;const p=this.hctsByHue[Math.round(m)],_=(this.tempsByHct.get(p)-r)/o,v=Math.abs(y-_);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,Cd.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=Qr.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 ao(t){return parseInt(t,16)}function uS(t,e,r="material-theme"){var o,a;let n=globalThis[r];n||(n=new CSSStyleSheet,globalThis[r]=n,t.adoptedStyleSheets.push(n));const i=(o=e.match(/--md-sys-color-surface-container:(.+?);/))==null?void 0:o[1];i&&((a=document.querySelector('meta[name="theme-color"]'))==null||a.setAttribute("content",i)),n.replaceSync(e),localStorage.setItem(r,e)}const bV={background:X.background,"on-background":X.onBackground,surface:X.surface,"surface-dim":X.surfaceDim,"surface-bright":X.surfaceBright,"surface-container-lowest":X.surfaceContainerLowest,"surface-container-low":X.surfaceContainerLow,"surface-container":X.surfaceContainer,"surface-container-high":X.surfaceContainerHigh,"surface-container-highest":X.surfaceContainerHighest,"on-surface":X.onSurface,"surface-variant":X.surfaceVariant,"on-surface-variant":X.onSurfaceVariant,"inverse-surface":X.inverseSurface,"inverse-on-surface":X.inverseOnSurface,outline:X.outline,"outline-variant":X.outlineVariant,shadow:X.shadow,scrim:X.scrim,"surface-tint":X.surfaceTint,primary:X.primary,"on-primary":X.onPrimary,"primary-container":X.primaryContainer,"on-primary-container":X.onPrimaryContainer,"inverse-primary":X.inversePrimary,secondary:X.secondary,"on-secondary":X.onSecondary,"secondary-container":X.secondaryContainer,"on-secondary-container":X.onSecondaryContainer,tertiary:X.tertiary,"on-tertiary":X.onTertiary,"tertiary-container":X.tertiaryContainer,"on-tertiary-container":X.onTertiaryContainer,error:X.error,"on-error":X.onError,"error-container":X.errorContainer,"on-error-container":X.onErrorContainer};function xV(t,e){const r=new gV(Qr.fromInt(yV(t)),e,0),n={};for(const[i,o]of Object.entries(bV))n[i]=_V(o.getArgb(r));return n}function wV(t,e,r="material-theme"){let n=":root,:host{";for(const[i,o]of Object.entries(e))n+=`--md-sys-color-${i}:${o};`;n+="}",uS(t,n,r)}function M0(t,e){const r=xV(t,e);wV(document,r),window.dispatchEvent(new Event("theme-changed"))}function Yd(t,e=!0){let r=t==="dark";return t==="auto"&&(r=window.matchMedia("(prefers-color-scheme: dark)").matches,e&&kV(r?"dark":"light")),r}function TV(){return localStorage.getItem("material-theme")}function Ad(){return localStorage.getItem("color-mode")}function fS(t){localStorage.setItem("color-mode",t)}function F0(){return localStorage.getItem("seed-color")}function hS(t){localStorage.setItem("seed-color",t)}function EV(){return localStorage.getItem("last-auto-color-mode")}function kV(t){localStorage.setItem("last-auto-color-mode",t)}function pS(t){const e=Ad(),r=Yd(e);M0(t,r),im(r),hS(t)}function mS(t){const e=F0(),r=Yd(t);M0(e,r),fS(t),im(r)}function CV(t,e){const r=Yd(e);M0(t,r),im(r),hS(t),fS(e)}function im(t){t?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),Tt.emit("color_mode_changed")}const AV={xmlns:"http://www.w3.org/2000/svg",class:"icon",style:{color:"#000!important"},viewBox:"176.76 130.44 848.7 811.89"},SV=TF('',6),IV=[SV];function $V(t,e){return J(),re("svg",AV,[...IV])}const OV={render:$V};function N0(t){const e=t.toLowerCase();return e.startsWith("https://")||e.startsWith("http://")||e.startsWith("blob:")}function vu(t,e=""){return N0(t)?t:`${Jl()}/fs?id=${encodeURIComponent(t)}${e}`}function ql(t,e){return!e||!t?"":vu(q0(t,e))}function PV(){return`${Jl()}/upload`}function us(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 n1e(t,e,r){const n=new Blob([t],{type:e}),i=URL.createObjectURL(n);us(i,r)}function ks(t){return t.substring(t.lastIndexOf("/")+1)}function z0(t){return Ut.codec.base64.toBits(t)}function vS(t,e){if(!t)return"";const r=mu(t,e);return lS(r)}function RV(t,e){return e.startsWith("app://")?t+"/"+e.replace("app://",""):e}function q0(t,e,r=""){if(!e||!t)return"";const n=e.toLowerCase();if(n.startsWith("https://")||n.startsWith("http://"))return e;const i=window.fileIdMap||new Map;if(i.has(e))return i.get(e)??"";const o=mu(t,r?JSON.stringify({path:e,mediaId:r}):e),a=lS(o);return i.set(e,a),a}async function gS(t,e){const r=localStorage.getItem("auth_token")??"",n=Ut.codec.base64.toBits(r),i=1e3*1e3*512;async function o(a,l,d){const u=Math.min(a+i,t.file.size),f=u-a,g=new FormData,y=$0(mu(n,JSON.stringify({dir:t.dir,replace:e,index:l,size:f,total:d})));g.append("info",new Blob([y]));const x=t.file.slice(a,u);return g.append("file",new File([x],a>0?t.fileName:t.file.name)),new Promise(m=>{const p=new XMLHttpRequest;let _=0;p.upload.addEventListener("progress",function(v){v.lengthComputable&&(_===0&&(_=v.total-f),v.loaded>_&&(t.uploadedSize=a+v.loaded-_))},!1),p.upload.addEventListener("load",function(){l===d-1&&(t.uploadedSize=t.file.size,t.status="saving")},!1),p.onreadystatechange=function(){console.log(p),p.readyState===4&&(p.status===201?m({fileName:p.responseText}):m({error:p.responseText}))};try{p.open("POST",PV(),!0),p.setRequestHeader("c-id",localStorage.getItem("client_id")??""),p.send(g),t.xhr=p}catch(v){m({error:v.message})}})}try{let a=0;const l=[];for(;a=0);t.status="done"}catch(a){t.status="error",t.error=a}}function DV(t){const e=t.lastIndexOf(".");return e===-1||t.lastIndexOf("/")>e?"":t.substring(e+1).toLowerCase()}const LV={key:0,class:"top-error"},MV=Dt({__name:"App",setup(t){let e=0;const{t:r}=zn();document.title=r("app_name");const n=Le(""),i=Le("");let o,a=1e3;const l=()=>{i.value=""},d={1:"message_created",2:"message_deleted",3:"message_updated",4:"feeds_fetched",5:"screen_mirroring",6:"ai_chat_replied",7:"notification_created",8:"notification_updated",9:"notification_deleted"};async function u(){const x=localStorage.getItem("client_id"),m=localStorage.getItem("auth_token")??"";if(m)try{const p=z0(m);o=new WebSocket(`${HU()}?cid=${x}`),o.onopen=async()=>{Tt.emit("app_socket_connection_changed",!0),console.log("WebSocket is connecting to app"),a=1e3;const _=mu(p,new Date().getTime().toString());o.send($0(_)),n.value=""},o.onmessage=async _=>{const v=await _.data.arrayBuffer(),b=[5],w=oV(v,b),E=d[w.type]??"";if(b.includes(w.type))Tt.emit(E,new Blob([w.data],{type:"application/octet-stream"})),console.log(E);else try{const C=sS(p,w.data);Tt.emit(E,JSON.parse(C)),console.log(`${E}, ${C}`)}catch(C){console.error(C)}n.value=""},o.onclose=_=>{console.error(_),n.value="closed",f()},o.onerror=_=>{console.error(_),n.value="error",o.close(),Tt.emit("app_socket_connection_changed",!1)}}catch(p){console.error(p),f()}}function f(){e&&clearTimeout(e),e=setTimeout(()=>{u()},Math.min(5e3,a)),a+=1e3}function g(){if(Ad()!=="auto")return;const x=Yd("auto",!1)?"dark":"light",m=EV();x!==m&&mS("auto")}function y(){const x=TV();x?(uS(document,x),im(Yd(Ad()||"auto",!1))):CV("#0000FF","auto")}return Ur(()=>{Tt.on("toast",x=>{Ls(r(x))}),Tt.on("tap_phone",x=>{i.value=x}),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{Ad()==="auto"&&pS(F0())});try{y(),g()}catch(x){console.error(x)}u()}),(x,m)=>{const p=Qb("router-view"),_=Zq,v=Ao("click-away");return J(),re($t,null,[n.value?(J(),re("div",LV,Me(x.$t("fix_disconnect_tips")),1)):yt("",!0),Pe(p),(J(),kr(e0,{to:"body"},[Pe(_),i.value?lt((J(),re("div",{key:0,class:"tap-phone-container",onClick:l},[N("div",null,Me(i.value),1),Pe(oe(OV))])),[[v,l]]):yt("",!0)]))],64)}}}),Tn=(t,e)=>{const r=t.__vccOpts||t;for(const[n,i]of e)r[n]=i;return r},FV=Tn(MV,[["__scopeId","data-v-e0f3cc60"]]);"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 NV="modulepreload",zV=function(t){return"/"+t},ME={},ut=function(e,r,n){let i=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.all(r.map(l=>{if(l=zV(l),l in ME)return;ME[l]=!0;const d=l.endsWith(".css"),u=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const f=document.createElement("link");if(f.rel=d?"stylesheet":NV,d||(f.as="script",f.crossOrigin=""),f.href=l,a&&f.setAttribute("nonce",a),document.head.appendChild(f),d)return new Promise((g,y)=>{f.addEventListener("load",g),f.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${l}`)))})}))}return i.then(()=>e()).catch(o=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o})};const bl=typeof document<"u";function qV(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const zt=Object.assign;function Tg(t,e){const r={};for(const n in e){const i=e[n];r[n]=Ci(i)?i.map(t):t(i)}return r}const Sd=()=>{},Ci=Array.isArray,_S=/#/g,BV=/&/g,UV=/\//g,VV=/=/g,jV=/\?/g,yS=/\+/g,HV=/%5B/g,WV=/%5D/g,bS=/%5E/g,GV=/%60/g,xS=/%7B/g,QV=/%7C/g,wS=/%7D/g,KV=/%20/g;function B0(t){return encodeURI(""+t).replace(QV,"|").replace(HV,"[").replace(WV,"]")}function YV(t){return B0(t).replace(xS,"{").replace(wS,"}").replace(bS,"^")}function ty(t){return B0(t).replace(yS,"%2B").replace(KV,"+").replace(_S,"%23").replace(BV,"%26").replace(GV,"`").replace(xS,"{").replace(wS,"}").replace(bS,"^")}function XV(t){return ty(t).replace(VV,"%3D")}function JV(t){return B0(t).replace(_S,"%23").replace(jV,"%3F")}function ZV(t){return t==null?"":JV(t).replace(UV,"%2F")}function Xd(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const ej=/\/$/,tj=t=>t.replace(ej,"");function Eg(t,e,r="/"){let n,i={},o="",a="";const l=e.indexOf("#");let d=e.indexOf("?");return l=0&&(d=-1),d>-1&&(n=e.slice(0,d),o=e.slice(d+1,l>-1?l:e.length),i=t(o)),l>-1&&(n=n||e.slice(0,l),a=e.slice(l,e.length)),n=oj(n??e,r),{fullPath:n+(o&&"?")+o+a,path:n,query:i,hash:Xd(a)}}function rj(t,e){const r=e.query?t(e.query):"";return e.path+(r&&"?")+r+(e.hash||"")}function FE(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function nj(t,e,r){const n=e.matched.length-1,i=r.matched.length-1;return n>-1&&n===i&&Zl(e.matched[n],r.matched[i])&&TS(e.params,r.params)&&t(e.query)===t(r.query)&&e.hash===r.hash}function Zl(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function TS(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const r in t)if(!ij(t[r],e[r]))return!1;return!0}function ij(t,e){return Ci(t)?NE(t,e):Ci(e)?NE(e,t):t===e}function NE(t,e){return Ci(e)?t.length===e.length&&t.every((r,n)=>r===e[n]):t.length===1&&t[0]===e}function oj(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,l;for(a=0;a1&&o--;else break;return r.slice(0,o).join("/")+"/"+n.slice(a).join("/")}var Jd;(function(t){t.pop="pop",t.push="push"})(Jd||(Jd={}));var Id;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Id||(Id={}));function aj(t){if(!t)if(bl){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),tj(t)}const sj=/^[^#]+#/;function lj(t,e){return t.replace(sj,"#")+e}function cj(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 om=()=>({left:window.scrollX,top:window.scrollY});function dj(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=cj(i,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function zE(t,e){return(history.state?history.state.position-e:-1)+t}const ry=new Map;function uj(t,e){ry.set(t,e)}function fj(t){const e=ry.get(t);return ry.delete(t),e}let hj=()=>location.protocol+"//"+location.host;function ES(t,e){const{pathname:r,search:n,hash:i}=e,o=t.indexOf("#");if(o>-1){let l=i.includes(t.slice(o))?t.slice(o).length:1,d=i.slice(l);return d[0]!=="/"&&(d="/"+d),FE(d,"")}return FE(r,t)+n+i}function pj(t,e,r,n){let i=[],o=[],a=null;const l=({state:y})=>{const x=ES(t,location),m=r.value,p=e.value;let _=0;if(y){if(r.value=x,e.value=y,a&&a===m){a=null;return}_=p?y.position-p.position:0}else n(x);i.forEach(v=>{v(r.value,m,{delta:_,type:Jd.pop,direction:_?_>0?Id.forward:Id.back:Id.unknown})})};function d(){a=r.value}function u(y){i.push(y);const x=()=>{const m=i.indexOf(y);m>-1&&i.splice(m,1)};return o.push(x),x}function f(){const{history:y}=window;y.state&&y.replaceState(zt({},y.state,{scroll:om()}),"")}function g(){for(const y of o)y();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",f,{passive:!0}),{pauseListeners:d,listen:u,destroy:g}}function qE(t,e,r,n=!1,i=!1){return{back:t,current:e,forward:r,replaced:n,position:window.history.length,scroll:i?om():null}}function mj(t){const{history:e,location:r}=window,n={value:ES(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 g=t.indexOf("#"),y=g>-1?(r.host&&document.querySelector("base")?t:t.slice(g))+d:hj()+t+d;try{e[f?"replaceState":"pushState"](u,"",y),i.value=u}catch(x){console.error(x),r[f?"replace":"assign"](y)}}function a(d,u){const f=zt({},e.state,qE(i.value.back,d,i.value.forward,!0),u,{position:i.value.position});o(d,f,!0),n.value=d}function l(d,u){const f=zt({},i.value,e.state,{forward:d,scroll:om()});o(f.current,f,!0);const g=zt({},qE(n.value,d,null),{position:f.position+1},u);o(d,g,!1),n.value=d}return{location:n,state:i,push:l,replace:a}}function vj(t){t=aj(t);const e=mj(t),r=pj(t,e.state,e.location,e.replace);function n(o,a=!0){a||r.pauseListeners(),history.go(o)}const i=zt({location:"",base:t,go:n,createHref:lj.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 gj(t){return typeof t=="string"||t&&typeof t=="object"}function kS(t){return typeof t=="string"||typeof t=="symbol"}const Yo={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},CS=Symbol("");var BE;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(BE||(BE={}));function ec(t,e){return zt(new Error,{type:t,[CS]:!0},e)}function so(t,e){return t instanceof Error&&CS in t&&(e==null||!!(t.type&e))}const UE="[^/]+?",_j={sensitive:!1,strict:!1,start:!0,end:!0},yj=/[.+*?^${}()[\]/\\]/g;function bj(t,e){const r=zt({},_j,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 g=0;ge.length?e.length===1&&e[0]===80?1:-1:0}function wj(t,e){let r=0;const n=t.score,i=e.score;for(;r0&&e[e.length-1]<0}const Tj={type:0,value:""},Ej=/[a-zA-Z0-9_]/;function kj(t){if(!t)return[[]];if(t==="/")return[[Tj]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(x){throw new Error(`ERR (${r})/"${u}": ${x}`)}let r=0,n=r;const i=[];let o;function a(){o&&i.push(o),o=[]}let l=0,d,u="",f="";function g(){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(;l{a(b)}:Sd}function a(f){if(kS(f)){const g=n.get(f);g&&(n.delete(f),r.splice(r.indexOf(g),1),g.children.forEach(a),g.alias.forEach(a))}else{const g=r.indexOf(f);g>-1&&(r.splice(g,1),f.record.name&&n.delete(f.record.name),f.children.forEach(a),f.alias.forEach(a))}}function l(){return r}function d(f){let g=0;for(;g=0&&(f.record.path!==r[g].record.path||!AS(f,r[g]));)g++;r.splice(g,0,f),f.record.name&&!HE(f)&&n.set(f.record.name,f)}function u(f,g){let y,x={},m,p;if("name"in f&&f.name){if(y=n.get(f.name),!y)throw ec(1,{location:f});p=y.record.name,x=zt(jE(g.params,y.keys.filter(b=>!b.optional).concat(y.parent?y.parent.keys.filter(b=>b.optional):[]).map(b=>b.name)),f.params&&jE(f.params,y.keys.map(b=>b.name))),m=y.stringify(x)}else if(f.path!=null)m=f.path,y=r.find(b=>b.re.test(m)),y&&(x=y.parse(m),p=y.record.name);else{if(y=g.name?n.get(g.name):r.find(b=>b.re.test(g.path)),!y)throw ec(1,{location:f,currentLocation:g});p=y.record.name,x=zt({},g.params,f.params),m=y.stringify(x)}const _=[];let v=y;for(;v;)_.unshift(v.record),v=v.parent;return{name:p,path:m,params:x,matched:_,meta:$j(_)}}return t.forEach(f=>o(f)),{addRoute:o,resolve:u,removeRoute:a,getRoutes:l,getRecordMatcher:i}}function jE(t,e){const r={};for(const n of e)n in t&&(r[n]=t[n]);return r}function Sj(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:Ij(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 Ij(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 HE(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function $j(t){return t.reduce((e,r)=>zt(e,r.meta),{})}function WE(t,e){const r={};for(const n in t)r[n]=n in e?e[n]:t[n];return r}function AS(t,e){return e.children.some(r=>r===t||AS(t,r))}function Oj(t){const e={};if(t===""||t==="?")return e;const n=(t[0]==="?"?t.slice(1):t).split("&");for(let i=0;io&&ty(o)):[n&&ty(n)]).forEach(o=>{o!==void 0&&(e+=(e.length?"&":"")+r,o!=null&&(e+="="+o))})}return e}function Pj(t){const e={};for(const r in t){const n=t[r];n!==void 0&&(e[r]=Ci(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return e}const Rj=Symbol(""),QE=Symbol(""),am=Symbol(""),U0=Symbol(""),ny=Symbol("");function ed(){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 ca(t,e,r,n,i,o=a=>a()){const a=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((l,d)=>{const u=y=>{y===!1?d(ec(4,{from:r,to:e})):y instanceof Error?d(y):gj(y)?d(ec(2,{from:e,to:y})):(a&&n.enterCallbacks[i]===a&&typeof y=="function"&&a.push(y),l())},f=o(()=>t.call(n&&n.instances[i],e,r,u));let g=Promise.resolve(f);t.length<3&&(g=g.then(u)),g.catch(y=>d(y))})}function kg(t,e,r,n,i=o=>o()){const o=[];for(const a of t)for(const l in a.components){let d=a.components[l];if(!(e!=="beforeRouteEnter"&&!a.instances[l]))if(Dj(d)){const f=(d.__vccOpts||d)[e];f&&o.push(ca(f,r,n,a,l,i))}else{let u=d();o.push(()=>u.then(f=>{if(!f)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${a.path}"`));const g=qV(f)?f.default:f;a.components[l]=g;const x=(g.__vccOpts||g)[e];return x&&ca(x,r,n,a,l,i)()}))}}return o}function Dj(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function KE(t){const e=on(am),r=on(U0),n=It(()=>{const d=oe(t.to);return e.resolve(d)}),i=It(()=>{const{matched:d}=n.value,{length:u}=d,f=d[u-1],g=r.matched;if(!f||!g.length)return-1;const y=g.findIndex(Zl.bind(null,f));if(y>-1)return y;const x=YE(d[u-2]);return u>1&&YE(f)===x&&g[g.length-1].path!==x?g.findIndex(Zl.bind(null,d[u-2])):y}),o=It(()=>i.value>-1&&Nj(r.params,n.value.params)),a=It(()=>i.value>-1&&i.value===r.matched.length-1&&TS(r.params,n.value.params));function l(d={}){return Fj(d)?e[oe(t.replace)?"replace":"push"](oe(t.to)).catch(Sd):Promise.resolve()}return{route:n,href:It(()=>n.value.href),isActive:o,isExactActive:a,navigate:l}}const Lj=Dt({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:KE,setup(t,{slots:e}){const r=ki(KE(t)),{options:n}=on(am),i=It(()=>({[XE(t.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[XE(t.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const o=e.default&&e.default(r);return t.custom?o:Ui("a",{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:i.value},o)}}}),Mj=Lj;function Fj(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 Nj(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(!Ci(i)||i.length!==n.length||n.some((o,a)=>o!==i[a]))return!1}return!0}function YE(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const XE=(t,e,r)=>t??e??r,zj=Dt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:r}){const n=on(ny),i=It(()=>t.route||n.value),o=on(QE,0),a=It(()=>{let u=oe(o);const{matched:f}=i.value;let g;for(;(g=f[u])&&!g.components;)u++;return u}),l=It(()=>i.value.matched[a.value]);pd(QE,It(()=>a.value+1)),pd(Rj,l),pd(ny,i);const d=Le();return Ot(()=>[d.value,l.value,t.name],([u,f,g],[y,x,m])=>{f&&(f.instances[g]=u,x&&x!==f&&u&&u===y&&(f.leaveGuards.size||(f.leaveGuards=x.leaveGuards),f.updateGuards.size||(f.updateGuards=x.updateGuards))),u&&f&&(!x||!Zl(f,x)||!y)&&(f.enterCallbacks[g]||[]).forEach(p=>p(u))},{flush:"post"}),()=>{const u=i.value,f=t.name,g=l.value,y=g&&g.components[f];if(!y)return JE(r.default,{Component:y,route:u});const x=g.props[f],m=x?x===!0?u.params:typeof x=="function"?x(u):x:null,_=Ui(y,zt({},m,e,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(g.instances[f]=null)},ref:d}));return JE(r.default,{Component:_,route:u})||_}}});function JE(t,e){if(!t)return null;const r=t(e);return r.length===1?r[0]:r}const qj=zj;function Bj(t){const e=Aj(t.routes,t),r=t.parseQuery||Oj,n=t.stringifyQuery||GE,i=t.history,o=ed(),a=ed(),l=ed(),d=ud(Yo);let u=Yo;bl&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Tg.bind(null,te=>""+te),g=Tg.bind(null,ZV),y=Tg.bind(null,Xd);function x(te,le){let fe,De;return kS(te)?(fe=e.getRecordMatcher(te),De=le):De=te,e.addRoute(De,fe)}function m(te){const le=e.getRecordMatcher(te);le&&e.removeRoute(le)}function p(){return e.getRoutes().map(te=>te.record)}function _(te){return!!e.getRecordMatcher(te)}function v(te,le){if(le=zt({},le||d.value),typeof te=="string"){const A=Eg(r,te,le.path),M=e.resolve({path:A.path},le),V=i.createHref(A.fullPath);return zt(A,M,{params:y(M.params),hash:Xd(A.hash),redirectedFrom:void 0,href:V})}let fe;if(te.path!=null)fe=zt({},te,{path:Eg(r,te.path,le.path).path});else{const A=zt({},te.params);for(const M in A)A[M]==null&&delete A[M];fe=zt({},te,{params:g(A)}),le.params=g(le.params)}const De=e.resolve(fe,le),Ke=te.hash||"";De.params=f(y(De.params));const nt=rj(n,zt({},te,{hash:YV(Ke),path:De.path})),k=i.createHref(nt);return zt({fullPath:nt,hash:Ke,query:n===GE?Pj(te.query):te.query||{}},De,{redirectedFrom:void 0,href:k})}function b(te){return typeof te=="string"?Eg(r,te,d.value.path):zt({},te)}function w(te,le){if(u!==te)return ec(8,{from:le,to:te})}function E(te){return P(te)}function C(te){return E(zt(b(te),{replace:!0}))}function S(te){const le=te.matched[te.matched.length-1];if(le&&le.redirect){const{redirect:fe}=le;let De=typeof fe=="function"?fe(te):fe;return typeof De=="string"&&(De=De.includes("?")||De.includes("#")?De=b(De):{path:De},De.params={}),zt({query:te.query,hash:te.hash,params:De.path!=null?{}:te.params},De)}}function P(te,le){const fe=u=v(te),De=d.value,Ke=te.state,nt=te.force,k=te.replace===!0,A=S(fe);if(A)return P(zt(b(A),{state:typeof A=="object"?zt({},Ke,A.state):Ke,force:nt,replace:k}),le||fe);const M=fe;M.redirectedFrom=le;let V;return!nt&&nj(n,De,fe)&&(V=ec(16,{to:M,from:De}),se(De,De,!0,!1)),(V?Promise.resolve(V):z(M,De)).catch(G=>so(G)?so(G,2)?G:Re(G):Ie(G,M,De)).then(G=>{if(G){if(so(G,2))return P(zt({replace:k},b(G.to),{state:typeof G.to=="object"?zt({},Ke,G.to.state):Ke,force:nt}),le||M)}else G=q(M,De,!0,k,Ke);return j(M,De,G),G})}function R(te,le){const fe=w(te,le);return fe?Promise.reject(fe):Promise.resolve()}function D(te){const le=Ce.values().next().value;return le&&typeof le.runWithContext=="function"?le.runWithContext(te):te()}function z(te,le){let fe;const[De,Ke,nt]=Uj(te,le);fe=kg(De.reverse(),"beforeRouteLeave",te,le);for(const A of De)A.leaveGuards.forEach(M=>{fe.push(ca(M,te,le))});const k=R.bind(null,te,le);return fe.push(k),Ge(fe).then(()=>{fe=[];for(const A of o.list())fe.push(ca(A,te,le));return fe.push(k),Ge(fe)}).then(()=>{fe=kg(Ke,"beforeRouteUpdate",te,le);for(const A of Ke)A.updateGuards.forEach(M=>{fe.push(ca(M,te,le))});return fe.push(k),Ge(fe)}).then(()=>{fe=[];for(const A of nt)if(A.beforeEnter)if(Ci(A.beforeEnter))for(const M of A.beforeEnter)fe.push(ca(M,te,le));else fe.push(ca(A.beforeEnter,te,le));return fe.push(k),Ge(fe)}).then(()=>(te.matched.forEach(A=>A.enterCallbacks={}),fe=kg(nt,"beforeRouteEnter",te,le,D),fe.push(k),Ge(fe))).then(()=>{fe=[];for(const A of a.list())fe.push(ca(A,te,le));return fe.push(k),Ge(fe)}).catch(A=>so(A,8)?A:Promise.reject(A))}function j(te,le,fe){l.list().forEach(De=>D(()=>De(te,le,fe)))}function q(te,le,fe,De,Ke){const nt=w(te,le);if(nt)return nt;const k=le===Yo,A=bl?history.state:{};fe&&(De||k?i.replace(te.fullPath,zt({scroll:k&&A&&A.scroll},Ke)):i.push(te.fullPath,Ke)),d.value=te,se(te,le,fe,k),Re()}let Z;function we(){Z||(Z=i.listen((te,le,fe)=>{if(!je.listening)return;const De=v(te),Ke=S(De);if(Ke){P(zt(Ke,{replace:!0}),De).catch(Sd);return}u=De;const nt=d.value;bl&&uj(zE(nt.fullPath,fe.delta),om()),z(De,nt).catch(k=>so(k,12)?k:so(k,2)?(P(k.to,De).then(A=>{so(A,20)&&!fe.delta&&fe.type===Jd.pop&&i.go(-1,!1)}).catch(Sd),Promise.reject()):(fe.delta&&i.go(-fe.delta,!1),Ie(k,De,nt))).then(k=>{k=k||q(De,nt,!1),k&&(fe.delta&&!so(k,8)?i.go(-fe.delta,!1):fe.type===Jd.pop&&so(k,20)&&i.go(-1,!1)),j(De,nt,k)}).catch(Sd)}))}let $e=ed(),ye=ed(),ke;function Ie(te,le,fe){Re(te);const De=ye.list();return De.length?De.forEach(Ke=>Ke(te,le,fe)):console.error(te),Promise.reject(te)}function Be(){return ke&&d.value!==Yo?Promise.resolve():new Promise((te,le)=>{$e.add([te,le])})}function Re(te){return ke||(ke=!te,we(),$e.list().forEach(([le,fe])=>te?fe(te):le()),$e.reset()),te}function se(te,le,fe,De){const{scrollBehavior:Ke}=t;if(!bl||!Ke)return Promise.resolve();const nt=!fe&&fj(zE(te.fullPath,0))||(De||!fe)&&history.state&&history.state.scroll||null;return mo().then(()=>Ke(te,le,nt)).then(k=>k&&dj(k)).catch(k=>Ie(k,te,le))}const Te=te=>i.go(te);let Oe;const Ce=new Set,je={currentRoute:d,listening:!0,addRoute:x,removeRoute:m,hasRoute:_,getRoutes:p,resolve:v,options:t,push:E,replace:C,go:Te,back:()=>Te(-1),forward:()=>Te(1),beforeEach:o.add,beforeResolve:a.add,afterEach:l.add,onError:ye.add,isReady:Be,install(te){const le=this;te.component("RouterLink",Mj),te.component("RouterView",qj),te.config.globalProperties.$router=le,Object.defineProperty(te.config.globalProperties,"$route",{enumerable:!0,get:()=>oe(d)}),bl&&!Oe&&d.value===Yo&&(Oe=!0,E(i.location).catch(Ke=>{}));const fe={};for(const Ke in Yo)Object.defineProperty(fe,Ke,{get:()=>d.value[Ke],enumerable:!0});te.provide(am,le),te.provide(U0,aC(fe)),te.provide(ny,d);const De=te.unmount;Ce.add(te),te.unmount=function(){Ce.delete(te),Ce.size<1&&(u=Yo,Z&&Z(),Z=null,d.value=Yo,Oe=!1,ke=!1),De()}}};function Ge(te){return te.reduce((le,fe)=>le.then(()=>D(fe)),Promise.resolve())}return je}function Uj(t,e){const r=[],n=[],i=[],o=Math.max(e.matched.length,t.matched.length);for(let a=0;aZl(u,l))?n.push(l):r.push(l));const d=t.matched[a];d&&(e.matched.find(u=>Zl(u,d))||i.push(d))}return[r,n,i]}function Vj(){return on(am)}function i1e(){return on(U0)}let SS;const sm=t=>SS=t,IS=Symbol();function ZE(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var $d;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})($d||($d={}));function jj(){const t=Fb(!0),e=t.run(()=>Le({}));let r=[],n=[];const i=Ip({install(o){sm(i),i._a=o,o.provide(IS,i),o.config.globalProperties.$pinia=i,n.forEach(a=>r.push(a)),n=[]},use(o){return!this._a&&!_N?n.push(o):r.push(o),this},_p:r,_a:null,_e:t,_s:new Map,state:e});return i}const Hj=()=>{};function ek(t,e,r,n=Hj){t.push(e);const i=()=>{const o=t.indexOf(e);o>-1&&(t.splice(o,1),n())};return!r&&Q4()&&JL(i),i}function hl(t,...e){t.slice().forEach(r=>{r(...e)})}const Wj=t=>t();function $S(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];ZE(i)&&ZE(n)&&t.hasOwnProperty(r)&&!Qt(n)&&!ya(n)?t[r]=$S(i,n):t[r]=n}return t}const{assign:ta}=Object;function Gj(t){return!!(Qt(t)&&t.effect)}function Qj(t,e,r,n){const{state:i,actions:o,getters:a}=e,l=r.state.value[t];let d;function u(){l||(r.state.value[t]=i?i():{});const f=$p(r.state.value[t]);return ta(f,o,Object.keys(a||{}).reduce((g,y)=>(g[y]=Ip(It(()=>{sm(r);const x=r._s.get(t);return a[y].call(x,x)})),g),{}))}return d=Kj(t,u,e,r,n,!0),d}function Kj(t,e,r={},n,i,o){let a;const l=ta({actions:{}},r),d={deep:!0};let u,f,g=[],y=[],x;const m=n.state.value[t];Le({});let p;function _(R){let D;u=f=!1,typeof R=="function"?(R(n.state.value[t]),D={type:$d.patchFunction,storeId:t,events:x}):($S(n.state.value[t],R),D={type:$d.patchObject,payload:R,storeId:t,events:x});const z=p=Symbol();mo().then(()=>{p===z&&(u=!0)}),f=!0,hl(g,D,n.state.value[t])}const v=function(){const{state:D}=r,z=D?D():{};this.$patch(j=>{ta(j,z)})};function b(){a.stop(),g=[],y=[],n._s.delete(t)}function w(R,D){return function(){sm(n);const z=Array.from(arguments),j=[],q=[];function Z(ye){j.push(ye)}function we(ye){q.push(ye)}hl(y,{args:z,name:R,store:C,after:Z,onError:we});let $e;try{$e=D.apply(this&&this.$id===t?this:C,z)}catch(ye){throw hl(q,ye),ye}return $e instanceof Promise?$e.then(ye=>(hl(j,ye),ye)).catch(ye=>(hl(q,ye),Promise.reject(ye))):(hl(j,$e),$e)}}const E={_p:n,$id:t,$onAction:ek.bind(null,y),$patch:_,$reset:v,$subscribe(R,D={}){const z=ek(g,R,D.detached,()=>j()),j=a.run(()=>Ot(()=>n.state.value[t],q=>{(D.flush==="sync"?f:u)&&R({storeId:t,type:$d.direct,events:x},q)},ta({},d,D)));return z},$dispose:b},C=ki(E);n._s.set(t,C);const S=n._a&&n._a.runWithContext||Wj,P=n._e.run(()=>(a=Fb(),S(()=>a.run(e))));for(const R in P){const D=P[R];if(!(Qt(D)&&!Gj(D)||ya(D))){if(typeof D=="function"){const z=w(R,D);P[R]=z,l.actions[R]=D}}}return ta(C,P),ta(kt(C),P),Object.defineProperty(C,"$state",{get:()=>n.state.value[t],set:R=>{_(D=>{ta(D,R)})}}),n._p.forEach(R=>{ta(C,a.run(()=>R({store:C,app:n._a,pinia:n,options:l})))}),m&&o&&r.hydrate&&r.hydrate(C.$state,m),u=!0,f=!0,C}function OS(t,e,r){let n,i;typeof t=="string"?(n=t,i=e):(i=t,n=t.id);function o(a,l){const d=PC();return a=a||(d?on(IS,null):null),a&&sm(a),a=SS,a._s.has(n)||Qj(n,i,a),a._s.get(n)}return o.$id=n,o}function Cs(t){{t=kt(t);const e={};for(const r in t){const n=t[r];(Qt(n)||ya(n))&&(e[r]=EM(t,r))}return e}}const Fs=OS({id:"main",state:()=>({fileShowHidden:!1,chatText:"",quick:"chat",quickContentWidth:400,sidebarWidth:240,sidebar2Width:360,noteExpand:!0,pages:[],audios:[],audioPlaying:null,lightboxInfoVisible:!1,videosCardView:!1,imagesCardView:!1,appSortBy:"NAME_ASC",fileSortBy:"NAME_ASC",imageSortBy:"DATE_DESC",videoSortBy:"DATE_DESC",audioSortBy:"DATE_DESC",json:"",qrCode:"",callNumber:""}),actions:{getCurrentPage(t){return this.pages.find(e=>e.path===t)||{path:t}},replaceRoute(t,e){const r=this.pages.findIndex(n=>n.path===t);r!==-1&&this.pages.splice(r,1,{path:e,sidebar:this.pages[r].sidebar})},updatePageSidebar(t,e){const r=this.pages.find(n=>n.path===t);r&&(r.sidebar=e)}}});var PS=typeof global=="object"&&global&&global.Object===Object&&global,Yj=typeof self=="object"&&self&&self.Object===Object&&self,Io=PS||Yj||Function("return this")(),Hi=Io.Symbol,RS=Object.prototype,Xj=RS.hasOwnProperty,Jj=RS.toString,td=Hi?Hi.toStringTag:void 0;function Zj(t){var e=Xj.call(t,td),r=t[td];try{t[td]=void 0;var n=!0}catch{}var i=Jj.call(t);return n&&(e?t[td]=r:delete t[td]),i}var eH=Object.prototype,tH=eH.toString;function rH(t){return tH.call(t)}var nH="[object Null]",iH="[object Undefined]",tk=Hi?Hi.toStringTag:void 0;function Ns(t){return t==null?t===void 0?iH:nH:tk&&tk in Object(t)?Zj(t):rH(t)}function Da(t){return t!=null&&typeof t=="object"}var oH="[object Symbol]";function tc(t){return typeof t=="symbol"||Da(t)&&Ns(t)==oH}function Od(t,e){for(var r=-1,n=t==null?0:t.length,i=Array(n);++r0){if(++e>=LH)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function zH(t){return function(){return t}}var sk=function(){try{var t=qs(Object,"defineProperty");return t({},"",{}),t}catch{}}(),qH=sk?function(t,e){return sk(t,"toString",{configurable:!0,enumerable:!1,value:zH(e),writable:!0})}:lm,BH=NH(qH);function MS(t,e,r,n){for(var i=t.length,o=r+-1;++o-1}var WH=9007199254740991,GH=/^(?:0|[1-9]\d*)$/;function cm(t,e){var r=typeof t;return e=e??WH,!!e&&(r=="number"||r!="symbol"&&GH.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=KH}function gu(t){return t!=null&&j0(t.length)&&!LS(t)}function ck(t,e,r){if(!As(r))return!1;var n=typeof e;return(n=="number"?gu(r)&&cm(e,r.length):n=="string"&&e in r)?V0(r[e],t):!1}var YH=Object.prototype;function XH(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||YH;return t===r}function JH(t,e){for(var r=-1,n=Array(t);++r-1}function iG(t,e){var r=this.__data__,n=dm(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function $o(t){var e=-1,r=t==null?0:t.length;for(this.clear();++ei?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:Y0(t,e,r)}var wG="\\ud800-\\udfff",TG="\\u0300-\\u036f",EG="\\ufe20-\\ufe2f",kG="\\u20d0-\\u20ff",CG=TG+EG+kG,AG="\\ufe0e\\ufe0f",SG="\\u200d",IG=RegExp("["+SG+wG+CG+AG+"]");function X0(t){return IG.test(t)}function $G(t){return t.split("")}var VS="\\ud800-\\udfff",OG="\\u0300-\\u036f",PG="\\ufe20-\\ufe2f",RG="\\u20d0-\\u20ff",DG=OG+PG+RG,LG="\\ufe0e\\ufe0f",MG="["+VS+"]",sy="["+DG+"]",ly="\\ud83c[\\udffb-\\udfff]",FG="(?:"+sy+"|"+ly+")",jS="[^"+VS+"]",HS="(?:\\ud83c[\\udde6-\\uddff]){2}",WS="[\\ud800-\\udbff][\\udc00-\\udfff]",NG="\\u200d",GS=FG+"?",QS="["+LG+"]?",zG="(?:"+NG+"(?:"+[jS,HS,WS].join("|")+")"+QS+GS+")*",qG=QS+GS+zG,BG="(?:"+[jS+sy+"?",sy,HS,WS,MG].join("|")+")",UG=RegExp(ly+"(?="+ly+")|"+BG+qG,"g");function VG(t){return t.match(UG)||[]}function jG(t){return X0(t)?VG(t):$G(t)}var HG=Math.ceil,WG=Math.max;function GG(t,e,r){e===void 0?e=1:e=WG(DS(e),0);var n=t==null?0:t.length;if(!n||e<1)return[];for(var i=0,o=0,a=Array(HG(n/e));il))return!1;var u=o.get(t),f=o.get(e);if(u&&f)return u==e&&f==t;var g=-1,y=!0,x=r&gQ?new tu:void 0;for(o.set(t,e),o.set(e,t);++g=aK&&(o=KS,a=!1,e=new tu(e));e:for(;++ie||o&&a&&d&&!l&&!u||n&&a&&d||!r&&d||!i)return 1;if(!n&&!o&&!u&&t=l)return d;var u=r[n];return d*(u=="desc"?-1:1)}}return t.index-e.index}function xK(t,e,r){e.length?e=Od(e,function(o){return si(o)?function(a){return fm(a,o.length===1?o[0]:o)}:o}):e=[lm];var n=-1;e=Od(e,W0(Z0));var i=dK(t,function(o,a,l){var d=Od(e,function(u){return u(o)});return{criteria:d,index:++n,value:o}});return _K(i,function(o,a){return bK(o,a,r)})}var wK=ZS("length"),eI="\\ud800-\\udfff",TK="\\u0300-\\u036f",EK="\\ufe20-\\ufe2f",kK="\\u20d0-\\u20ff",CK=TK+EK+kK,AK="\\ufe0e\\ufe0f",SK="["+eI+"]",fy="["+CK+"]",hy="\\ud83c[\\udffb-\\udfff]",IK="(?:"+fy+"|"+hy+")",tI="[^"+eI+"]",rI="(?:\\ud83c[\\udde6-\\uddff]){2}",nI="[\\ud800-\\udbff][\\udc00-\\udfff]",$K="\\u200d",iI=IK+"?",oI="["+AK+"]?",OK="(?:"+$K+"(?:"+[tI,rI,nI].join("|")+")"+oI+iI+")*",PK=oI+iI+OK,RK="(?:"+[tI+fy+"?",fy,rI,nI,SK].join("|")+")",Sk=RegExp(hy+"(?="+hy+")|"+RK+PK,"g");function DK(t){for(var e=Sk.lastIndex=0;Sk.test(t);)++e;return e}function LK(t){return X0(t)?DK(t):wK(t)}var MK=Array.prototype,FK=MK.splice;function NK(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;cm(i)?FK.call(t,i,1):gK(t,i)}}return t}var zK=Math.floor,qK=Math.random;function BK(t,e){return t+zK(qK()*(e-t+1))}function La(t,e){var r=[];if(!(t&&t.length))return r;var n=-1,i=[],o=t.length;for(e=Z0(e);++n1&&ck(t,e[0],e[1])?e=[]:r>2&&ck(e[0],e[1],e[2])&&(e=[e[0]]),xK(t,bG(e),[])}),HK=30,WK="...",GK=/\w*$/;function QK(t,e){var r=HK,n=WK;if(As(e)){var i="separator"in e?e.separator:i;r="length"in e?DS(e.length):r,n="omission"in e?ap(e.omission):n}t=ay(t);var o=t.length;if(X0(t)){var a=jG(t);o=a.length}if(r>=o)return t;var l=r-LK(n);if(l<1)return n;var d=a?xG(a,0,l).join(""):t.slice(0,l);if(i===void 0)return d+n;if(a&&(l+=d.length-l),vK(i)){if(t.slice(l).search(i)){var u,f=d;for(i.global||(i=RegExp(i.source,ay(GK.exec(i))+"g")),i.lastIndex=0;u=i.exec(f);)var g=u.index;d=d.slice(0,g===void 0?l:g)}}else if(t.indexOf(ap(i),l)!=l){var y=d.lastIndexOf(i);y>-1&&(d=d.slice(0,y))}return d+n}var KK=FS(function(t,e){return oK(t)?sK(t,e):[]});const YK=/(?:[^\s"]+|"[^"]*")+/g,Ik=":",lp="NOT",sI={"=":"!=",">=":"<",">":"<=","!=":"=","<=":">","<":">=",in:"nin",nin:"in"},XK=KK(_u(sI),"in","nin");function JK(t){return t.match(YK)}function $k(t){return t.replace(/['"]+/g,"")}function ZK(t){return XK.find(e=>t.indexOf(e)===0)||""}function eY(t){const e=t.split(Ik),r=$k(e[0]),n=$k(e.slice(1).join(Ik)),i=ZK(n),o=n.slice(i.length);return{length:e.length,field:r,query:n,op:i,value:o}}function tY(t){if(t==lp)return{name:"",op:lp,value:""};const e=eY(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 rY=t=>{var n;const e=(n=JK(t))==null?void 0:n.map(i=>tY(i));if(!e)return[];let r=!1;return e.forEach(i=>{i.op==lp?r=!0:r&&(i.op=sI[i.op]||"",r=!1)}),e.filter(i=>i.op!==lp)},hm=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(" ")},nY={NOTE:"notes",AUDIO:"audios",IMAGE:"images",VIDEO:"videos",FEED_ENTRY:"feeds",SMS:"messages",CALL:"calls",CONTACT:"contacts",AI_CHAT:"aichats"},iY=["onClick"],oY={key:1,class:"tags"},aY=["onClick"],sY=Dt({__name:"ItemTags",props:{type:{type:String},onlyLinks:{type:Boolean,default:!1},tags:{type:Array,default:()=>[],required:!0}},setup(t){const e=t,r=Fs();function n(i){if(!e.type)return;const o=hm([{name:"tag_id",op:"",value:i.id}]);E1(r,`/${nY[e.type]}?q=${rm(o)}`)}return(i,o)=>t.onlyLinks?(J(!0),re($t,{key:0},oi(t.tags,a=>(J(),re("a",{key:a.id,onClick:wt(l=>n(a),["stop","prevent"])},"#"+Me(a.name),9,iY))),128)):t.tags.length?(J(),re("div",oY,[(J(!0),re($t,null,oi(t.tags,a=>(J(),re("a",{key:a.id,onClick:wt(l=>n(a),["stop","prevent"])},"#"+Me(a.name),9,aY))),128))])):yt("",!0)}}),lY=Tn(sY,[["__scopeId","data-v-50fb9085"]]),cY={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},dY=N("path",{fill:"currentColor",d:"m20.175 13.15l-3.525 5q-.275.4-.712.625T15 19H5q-.825 0-1.412-.587T3 17V7q0-.825.588-1.412T5 5h10q.5 0 .938.225t.712.625l3.525 5q.375.525.375 1.15t-.375 1.15M15 17l3.55-5L15 7H5v10zM5 7v10z"},null,-1),uY=[dY];function fY(t,e){return J(),re("svg",cY,[...uY])}const hY={name:"material-symbols-label-outline-rounded",render:fY},pY={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},mY=N("path",{fill:"currentColor",d:"M12 15.575q-.2 0-.375-.062T11.3 15.3l-3.6-3.6q-.3-.3-.288-.7t.288-.7q.3-.3.713-.312t.712.287L11 12.15V5q0-.425.288-.712T12 4t.713.288T13 5v7.15l1.875-1.875q.3-.3.713-.288t.712.313q.275.3.288.7t-.288.7l-3.6 3.6q-.15.15-.325.213t-.375.062M6 20q-.825 0-1.412-.587T4 18v-2q0-.425.288-.712T5 15t.713.288T6 16v2h12v-2q0-.425.288-.712T19 15t.713.288T20 16v2q0 .825-.587 1.413T18 20z"},null,-1),vY=[mY];function gY(t,e){return J(),re("svg",pY,[...vY])}const _Y={name:"material-symbols-download-rounded",render:gY},yY={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},bY=N("path",{fill:"currentColor",d:"M7 21q-.825 0-1.412-.587T5 19V6q-.425 0-.712-.288T4 5t.288-.712T5 4h4q0-.425.288-.712T10 3h4q.425 0 .713.288T15 4h4q.425 0 .713.288T20 5t-.288.713T19 6v13q0 .825-.587 1.413T17 21zM17 6H7v13h10zM7 6v13zm5 7.9l1.9 1.9q.275.275.7.275t.7-.275t.275-.7t-.275-.7l-1.9-1.9l1.9-1.9q.275-.275.275-.7t-.275-.7t-.7-.275t-.7.275L12 11.1l-1.9-1.9q-.275-.275-.7-.275t-.7.275t-.275.7t.275.7l1.9 1.9l-1.9 1.9q-.275.275-.275.7t.275.7t.7.275t.7-.275z"},null,-1),xY=[bY];function wY(t,e){return J(),re("svg",yY,[...xY])}const e1={name:"material-symbols-delete-forever-outline-rounded",render:wY};function TY(t,e,r){let n=null;const i=Le(!1);Ur(()=>{(t.content!==void 0||r.value)&&(i.value=!0),n=new MutationObserver(o),n.observe(e.value,{childList:!0,subtree:!0})}),Ii(()=>n==null?void 0:n.disconnect()),Ot(r,a=>{a?i.value=!0:i.value=!1});const o=()=>{t.content?i.value=!0:i.value=!1};return{hasContent:i}}function li(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Is(t){var e=li(t).Element;return t instanceof e||t instanceof Element}function ii(t){var e=li(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function t1(t){if(typeof ShadowRoot>"u")return!1;var e=li(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var ws=Math.max,cp=Math.min,rc=Math.round;function py(){var t=navigator.userAgentData;return t!=null&&t.brands?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function lI(){return!/^((?!chrome|android).)*safari/i.test(py())}function nc(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),i=1,o=1;e&&ii(t)&&(i=t.offsetWidth>0&&rc(n.width)/t.offsetWidth||1,o=t.offsetHeight>0&&rc(n.height)/t.offsetHeight||1);var a=Is(t)?li(t):window,l=a.visualViewport,d=!lI()&&r,u=(n.left+(d&&l?l.offsetLeft:0))/i,f=(n.top+(d&&l?l.offsetTop:0))/o,g=n.width/i,y=n.height/o;return{width:g,height:y,top:f,right:u+g,bottom:f+y,left:u,x:u,y:f}}function r1(t){var e=li(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function EY(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function kY(t){return t===li(t)||!ii(t)?r1(t):EY(t)}function Wi(t){return t?(t.nodeName||"").toLowerCase():null}function Ua(t){return((Is(t)?t.ownerDocument:t.document)||window.document).documentElement}function n1(t){return nc(Ua(t)).left+r1(t).scrollLeft}function To(t){return li(t).getComputedStyle(t)}function i1(t){var e=To(t),r=e.overflow,n=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function CY(t){var e=t.getBoundingClientRect(),r=rc(e.width)/t.offsetWidth||1,n=rc(e.height)/t.offsetHeight||1;return r!==1||n!==1}function AY(t,e,r){r===void 0&&(r=!1);var n=ii(e),i=ii(e)&&CY(e),o=Ua(e),a=nc(t,i,r),l={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(n||!n&&!r)&&((Wi(e)!=="body"||i1(o))&&(l=kY(e)),ii(e)?(d=nc(e,!0),d.x+=e.clientLeft,d.y+=e.clientTop):o&&(d.x=n1(o))),{x:a.left+l.scrollLeft-d.x,y:a.top+l.scrollTop-d.y,width:a.width,height:a.height}}function o1(t){var e=nc(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 pm(t){return Wi(t)==="html"?t:t.assignedSlot||t.parentNode||(t1(t)?t.host:null)||Ua(t)}function cI(t){return["html","body","#document"].indexOf(Wi(t))>=0?t.ownerDocument.body:ii(t)&&i1(t)?t:cI(pm(t))}function Rd(t,e){var r;e===void 0&&(e=[]);var n=cI(t),i=n===((r=t.ownerDocument)==null?void 0:r.body),o=li(n),a=i?[o].concat(o.visualViewport||[],i1(n)?n:[]):n,l=e.concat(a);return i?l:l.concat(Rd(pm(a)))}function SY(t){return["table","td","th"].indexOf(Wi(t))>=0}function Ok(t){return!ii(t)||To(t).position==="fixed"?null:t.offsetParent}function IY(t){var e=/firefox/i.test(py()),r=/Trident/i.test(py());if(r&&ii(t)){var n=To(t);if(n.position==="fixed")return null}var i=pm(t);for(t1(i)&&(i=i.host);ii(i)&&["html","body"].indexOf(Wi(i))<0;){var o=To(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 bu(t){for(var e=li(t),r=Ok(t);r&&SY(r)&&To(r).position==="static";)r=Ok(r);return r&&(Wi(r)==="html"||Wi(r)==="body"&&To(r).position==="static")?e:r||IY(t)||e}var Mn="top",Ai="bottom",Si="right",Fn="left",a1="auto",xu=[Mn,Ai,Si,Fn],ic="start",ru="end",$Y="clippingParents",dI="viewport",rd="popper",OY="reference",Pk=xu.reduce(function(t,e){return t.concat([e+"-"+ic,e+"-"+ru])},[]),uI=[].concat(xu,[a1]).reduce(function(t,e){return t.concat([e,e+"-"+ic,e+"-"+ru])},[]),PY="beforeRead",RY="read",DY="afterRead",LY="beforeMain",MY="main",FY="afterMain",NY="beforeWrite",zY="write",qY="afterWrite",BY=[PY,RY,DY,LY,MY,FY,NY,zY,qY];function UY(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(l){if(!r.has(l)){var d=e.get(l);d&&i(d)}}),n.push(o)}return t.forEach(function(o){r.has(o.name)||i(o)}),n}function VY(t){var e=UY(t);return BY.reduce(function(r,n){return r.concat(e.filter(function(i){return i.phase===n}))},[])}function jY(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function zi(t){return t.split("-")[0]}function HY(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 WY(t,e){var r=li(t),n=Ua(t),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,l=0,d=0;if(i){o=i.width,a=i.height;var u=lI();(u||!u&&e==="fixed")&&(l=i.offsetLeft,d=i.offsetTop)}return{width:o,height:a,x:l+n1(t),y:d}}function GY(t){var e,r=Ua(t),n=r1(t),i=(e=t.ownerDocument)==null?void 0:e.body,o=ws(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=ws(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-n.scrollLeft+n1(t),d=-n.scrollTop;return To(i||r).direction==="rtl"&&(l+=ws(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:l,y:d}}function fI(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&t1(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function my(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function QY(t,e){var r=nc(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 Rk(t,e,r){return e===dI?my(WY(t,r)):Is(e)?QY(e,r):my(GY(Ua(t)))}function KY(t){var e=Rd(pm(t)),r=["absolute","fixed"].indexOf(To(t).position)>=0,n=r&&ii(t)?bu(t):t;return Is(n)?e.filter(function(i){return Is(i)&&fI(i,n)&&Wi(i)!=="body"}):[]}function YY(t,e,r,n){var i=e==="clippingParents"?KY(t):[].concat(e),o=[].concat(i,[r]),a=o[0],l=o.reduce(function(d,u){var f=Rk(t,u,n);return d.top=ws(f.top,d.top),d.right=cp(f.right,d.right),d.bottom=cp(f.bottom,d.bottom),d.left=ws(f.left,d.left),d},Rk(t,a,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function oc(t){return t.split("-")[1]}function s1(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function hI(t){var e=t.reference,r=t.element,n=t.placement,i=n?zi(n):null,o=n?oc(n):null,a=e.x+e.width/2-r.width/2,l=e.y+e.height/2-r.height/2,d;switch(i){case Mn:d={x:a,y:e.y-r.height};break;case Ai:d={x:a,y:e.y+e.height};break;case Si:d={x:e.x+e.width,y:l};break;case Fn:d={x:e.x-r.width,y:l};break;default:d={x:e.x,y:e.y}}var u=i?s1(i):null;if(u!=null){var f=u==="y"?"height":"width";switch(o){case ic:d[u]=d[u]-(e[f]/2-r[f]/2);break;case ru:d[u]=d[u]+(e[f]/2-r[f]/2);break}}return d}function pI(){return{top:0,right:0,bottom:0,left:0}}function mI(t){return Object.assign({},pI(),t)}function vI(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}function l1(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,l=r.boundary,d=l===void 0?$Y:l,u=r.rootBoundary,f=u===void 0?dI:u,g=r.elementContext,y=g===void 0?rd:g,x=r.altBoundary,m=x===void 0?!1:x,p=r.padding,_=p===void 0?0:p,v=mI(typeof _!="number"?_:vI(_,xu)),b=y===rd?OY:rd,w=t.rects.popper,E=t.elements[m?b:y],C=YY(Is(E)?E:E.contextElement||Ua(t.elements.popper),d,f,a),S=nc(t.elements.reference),P=hI({reference:S,element:w,strategy:"absolute",placement:i}),R=my(Object.assign({},w,P)),D=y===rd?R:S,z={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},j=t.modifiersData.offset;if(y===rd&&j){var q=j[i];Object.keys(z).forEach(function(Z){var we=[Si,Ai].indexOf(Z)>=0?1:-1,$e=[Mn,Ai].indexOf(Z)>=0?"y":"x";z[Z]+=q[$e]*we})}return z}var Dk={placement:"bottom",modifiers:[],strategy:"absolute"};function Lk(){for(var t=arguments.length,e=new Array(t),r=0;rr?r:n}function hX(t){var e=t.state,r=t.options,n=t.name,i=r.mainAxis,o=i===void 0?!0:i,a=r.altAxis,l=a===void 0?!1:a,d=r.boundary,u=r.rootBoundary,f=r.altBoundary,g=r.padding,y=r.tether,x=y===void 0?!0:y,m=r.tetherOffset,p=m===void 0?0:m,_=l1(e,{boundary:d,rootBoundary:u,padding:g,altBoundary:f}),v=zi(e.placement),b=oc(e.placement),w=!b,E=s1(v),C=uX(E),S=e.modifiersData.popperOffsets,P=e.rects.reference,R=e.rects.popper,D=typeof p=="function"?p(Object.assign({},e.rects,{placement:e.placement})):p,z=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),j=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,q={x:0,y:0};if(S){if(o){var Z,we=E==="y"?Mn:Fn,$e=E==="y"?Ai:Si,ye=E==="y"?"height":"width",ke=S[E],Ie=ke+_[we],Be=ke-_[$e],Re=x?-R[ye]/2:0,se=b===ic?P[ye]:R[ye],Te=b===ic?-R[ye]:-P[ye],Oe=e.elements.arrow,Ce=x&&Oe?o1(Oe):{width:0,height:0},je=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:pI(),Ge=je[we],te=je[$e],le=Dd(0,P[ye],Ce[ye]),fe=w?P[ye]/2-Re-le-Ge-z.mainAxis:se-le-Ge-z.mainAxis,De=w?-P[ye]/2+Re+le+te+z.mainAxis:Te+le+te+z.mainAxis,Ke=e.elements.arrow&&bu(e.elements.arrow),nt=Ke?E==="y"?Ke.clientTop||0:Ke.clientLeft||0:0,k=(Z=j==null?void 0:j[E])!=null?Z:0,A=ke+fe-k-nt,M=ke+De-k,V=Dd(x?cp(Ie,A):Ie,ke,x?ws(Be,M):Be);S[E]=V,q[E]=V-ke}if(l){var G,ae=E==="x"?Mn:Fn,Ae=E==="x"?Ai:Si,he=S[C],ge=C==="y"?"height":"width",ie=he+_[ae],W=he-_[Ae],U=[Mn,Fn].indexOf(v)!==-1,xe=(G=j==null?void 0:j[C])!=null?G:0,Se=U?ie:he-P[ge]-R[ge]-xe+z.altAxis,Y=U?he+P[ge]+R[ge]-xe-z.altAxis:W,ce=x&&U?fX(Se,he,Y):Dd(x?Se:ie,he,x?Y:W);S[C]=ce,q[C]=ce-he}e.modifiersData[n]=q}}const pX={name:"preventOverflow",enabled:!0,phase:"main",fn:hX,requiresIfExists:["offset"]};function mX(t,e,r){var n=zi(t),i=[Fn,Mn].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,a=o[0],l=o[1];return a=a||0,l=(l||0)*i,[Fn,Si].indexOf(n)>=0?{x:l,y:a}:{x:a,y:l}}function vX(t){var e=t.state,r=t.options,n=t.name,i=r.offset,o=i===void 0?[0,0]:i,a=uI.reduce(function(f,g){return f[g]=mX(g,e.rects,o),f},{}),l=a[e.placement],d=l.x,u=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=d,e.modifiersData.popperOffsets.y+=u),e.modifiersData[n]=a}const gX={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:vX};var _X=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,mI(typeof e!="number"?e:vI(e,xu))};function yX(t){var e,r=t.state,n=t.name,i=t.options,o=r.elements.arrow,a=r.modifiersData.popperOffsets,l=zi(r.placement),d=s1(l),u=[Fn,Si].indexOf(l)>=0,f=u?"height":"width";if(!(!o||!a)){var g=_X(i.padding,r),y=o1(o),x=d==="y"?Mn:Fn,m=d==="y"?Ai:Si,p=r.rects.reference[f]+r.rects.reference[d]-a[d]-r.rects.popper[f],_=a[d]-r.rects.reference[d],v=bu(o),b=v?d==="y"?v.clientHeight||0:v.clientWidth||0:0,w=p/2-_/2,E=g[x],C=b-y[f]-g[m],S=b/2-y[f]/2+w,P=Dd(E,S,C),R=d;r.modifiersData[n]=(e={},e[R]=P,e.centerOffset=P-S,e)}}function bX(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)||fI(e.elements.popper,i)&&(e.elements.arrow=i))}const xX={name:"arrow",enabled:!0,phase:"main",fn:yX,effect:bX,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};var wX={left:"right",right:"left",bottom:"top",top:"bottom"};function Lh(t){return t.replace(/left|right|bottom|top/g,function(e){return wX[e]})}var TX={start:"end",end:"start"};function Fk(t){return t.replace(/start|end/g,function(e){return TX[e]})}function EX(t,e){e===void 0&&(e={});var r=e,n=r.placement,i=r.boundary,o=r.rootBoundary,a=r.padding,l=r.flipVariations,d=r.allowedAutoPlacements,u=d===void 0?uI:d,f=oc(n),g=f?l?Pk:Pk.filter(function(m){return oc(m)===f}):xu,y=g.filter(function(m){return u.indexOf(m)>=0});y.length===0&&(y=g);var x=y.reduce(function(m,p){return m[p]=l1(t,{placement:p,boundary:i,rootBoundary:o,padding:a})[zi(p)],m},{});return Object.keys(x).sort(function(m,p){return x[m]-x[p]})}function kX(t){if(zi(t)===a1)return[];var e=Lh(t);return[Fk(t),e,Fk(e)]}function CX(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,l=a===void 0?!0:a,d=r.fallbackPlacements,u=r.padding,f=r.boundary,g=r.rootBoundary,y=r.altBoundary,x=r.flipVariations,m=x===void 0?!0:x,p=r.allowedAutoPlacements,_=e.options.placement,v=zi(_),b=v===_,w=d||(b||!m?[Lh(_)]:kX(_)),E=[_].concat(w).reduce(function(Ce,je){return Ce.concat(zi(je)===a1?EX(e,{placement:je,boundary:f,rootBoundary:g,padding:u,flipVariations:m,allowedAutoPlacements:p}):je)},[]),C=e.rects.reference,S=e.rects.popper,P=new Map,R=!0,D=E[0],z=0;z=0,$e=we?"width":"height",ye=l1(e,{placement:j,boundary:f,rootBoundary:g,altBoundary:y,padding:u}),ke=we?Z?Si:Fn:Z?Ai:Mn;C[$e]>S[$e]&&(ke=Lh(ke));var Ie=Lh(ke),Be=[];if(o&&Be.push(ye[q]<=0),l&&Be.push(ye[ke]<=0,ye[Ie]<=0),Be.every(function(Ce){return Ce})){D=j,R=!1;break}P.set(j,Be)}if(R)for(var Re=m?3:1,se=function(je){var Ge=E.find(function(te){var le=P.get(te);if(le)return le.slice(0,je).every(function(fe){return fe})});if(Ge)return D=Ge,"break"},Te=Re;Te>0;Te--){var Oe=se(Te);if(Oe==="break")break}e.placement!==D&&(e.modifiersData[n]._skip=!0,e.placement=D,e.reset=!0)}}const AX={name:"flip",enabled:!0,phase:"main",fn:CX,requiresIfExists:["offset"],data:{_skip:!1}};function SX({emit:t,placement:e,popperNode:r,triggerNode:n}){const i=ki({isOpen:!1,popperInstance:null}),o=g=>{var y;(y=i.popperInstance)==null||y.setOptions(x=>({...x,modifiers:[...x.modifiers,{name:"eventListeners",enabled:g}]}))},a=()=>o(!0),l=()=>o(!1),d=()=>{i.isOpen&&(i.isOpen=!1,t("close:popper"))},u=()=>{i.isOpen||(i.isOpen=!0,t("open:popper"))};Ot([()=>i.isOpen,e],async([g])=>{g?(await f(),a()):l()});const f=async()=>{var g;await mo(),i.popperInstance=dX(n.value,r.value,{placement:e.value,modifiers:[pX,xX,{name:"arrow",options:{padding:0}},AX,{name:"flip",enabled:!0},gX,{name:"offset",options:{offset:[0,8]}}]}),(g=i.popperInstance)==null||g.update()};return Ii(()=>{var g;(g=i.popperInstance)==null||g.destroy()}),{...$p(i),open:u,close:d}}const IX=Dt({__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},content:{type:String,default:null}},emits:["open:popper","close:popper"],setup(t,{emit:e}){zF(S=>({"2a646406":t.zIndex}));const r=e,n=ZM(),i=t,o=Le(null),a=Le(null),l=Le(null),d=Le(!1),{content:u,placement:f,show:g}=$p(i),{isOpen:y,open:x,close:m}=SX({emit:r,placement:f,popperNode:a,triggerNode:l}),{hasContent:p}=TY(n,a,u),_=It(()=>g.value!==null),v=It(()=>!p.value),b=It(()=>y.value&&!v.value),w=async()=>{v.value||_.value||x()},E=async()=>{_.value||m()},C=()=>{y.value?E():w()};return Ot([p],([S])=>{y.value&&!S&&m()}),Ot(y,S=>{d.value=S}),zM(()=>{_.value&&(g.value?x():m())}),(S,P)=>{const R=Ao("click-away");return lt((J(),re("div",{class:"inline-block",onMouseleave:P[1]||(P[1]=D=>t.hover&&E()),ref_key:"popperContainerNode",ref:o},[N("div",{ref_key:"triggerNode",ref:l,onMouseover:P[0]||(P[0]=D=>t.hover&&w()),onClick:wt(C,["stop","prevent"]),onFocus:w,onKeyup:vl(E,["esc"])},[kw(S.$slots,"default",{},void 0,!0)],544),Pe(qp,{name:"fade"},{default:Dn(()=>[lt(N("div",{class:"popper",ref_key:"popperNode",ref:a,onClick:wt(()=>{},["stop"])},[kw(S.$slots,"content",{close:oe(m),isOpen:d.value},()=>[ri(Me(oe(u)),1)],!0)],512),[[_n,b.value]])]),_:3})],32)),[[R,E]])}}}),c1=Tn(IX,[["__scopeId","data-v-5e47d4a6"]]),$X={class:"nowrap"},OX={class:"view-raw"},PX=Dt({__name:"FieldId",props:{id:{type:[String,Number],required:!0},raw:{type:[String,Object],default:""}},setup(t){return(e,r)=>{const n=c1;return J(),kr(n,null,{content:Dn(()=>[N("pre",OX,Me(t.raw),1)]),default:Dn(()=>[N("span",$X,Me(t.id),1)]),_:1})}}}),RX={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},DX=N("path",{fill:"currentColor",d:"M12.6 12L8.7 8.1q-.275-.275-.275-.7t.275-.7t.7-.275t.7.275l4.6 4.6q.15.15.213.325t.062.375t-.062.375t-.213.325l-4.6 4.6q-.275.275-.7.275t-.7-.275t-.275-.7t.275-.7z"},null,-1),LX=[DX];function MX(t,e){return J(),re("svg",RX,[...LX])}const FX={name:"material-symbols-chevron-right-rounded",render:MX},NX={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},zX=N("path",{fill:"currentColor",d:"m10.8 12l3.9 3.9q.275.275.275.7t-.275.7t-.7.275t-.7-.275l-4.6-4.6q-.15-.15-.212-.325T8.425 12t.063-.375t.212-.325l4.6-4.6q.275-.275.7-.275t.7.275t.275.7t-.275.7z"},null,-1),qX=[zX];function BX(t,e){return J(),re("svg",NX,[...qX])}const UX={name:"material-symbols-chevron-left-rounded",render:BX},VX={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},jX=N("path",{fill:"currentColor",d:"M12 17q.425 0 .713-.288T13 16v-4q0-.425-.288-.712T12 11t-.712.288T11 12v4q0 .425.288.713T12 17m0-8q.425 0 .713-.288T13 8t-.288-.712T12 7t-.712.288T11 8t.288.713T12 9m0 13q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12t-.788 3.9t-2.137 3.175t-3.175 2.138T12 22m0-2q3.35 0 5.675-2.325T20 12t-2.325-5.675T12 4T6.325 6.325T4 12t2.325 5.675T12 20m0-8"},null,-1),HX=[jX];function WX(t,e){return J(),re("svg",VX,[...HX])}const GX={name:"material-symbols-info-outline-rounded",render:WX},QX={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},KX=N("path",{fill:"currentColor",d:"M19.75 12.05q-.3 0-.587-.213T18.8 11.3q-.125-.475-.312-.937t-.438-.888q-.175-.275-.125-.612T18.2 8.3q.375-.35.863-.3t.737.475q.325.55.575 1.125t.4 1.2q.125.5-.187.875t-.838.375m-6.7 8.7q0-.3.213-.587t.537-.363q.475-.125.938-.312t.887-.438q.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-.85m5.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-.737.475t-.863-.3m-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.375t-.062.375t-.213.325l-2.6 2.6q-.275.275-.7.275t-.7-.275t-.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.538.35t.212.6q0 .525-.363.825t-.862.175"},null,-1),YX=[KX];function XX(t,e){return J(),re("svg",QX,[...YX])}const JX={name:"material-symbols-rotate-right-rounded",render:XX},ZX={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},eJ=N("path",{fill:"currentColor",d:"M4.25 12.05q-.525 0-.837-.375t-.188-.875q.15-.625.4-1.2T4.2 8.475q.25-.425.738-.475t.862.3q.225.225.275.563t-.125.612q-.25.425-.437.888T5.2 11.3q-.075.325-.363.538t-.587.212m6.7 8.7q0 .55-.375.85t-.875.175q-.6-.175-1.175-.412t-1.15-.563q-.425-.25-.475-.737t.3-.863q.225-.225.563-.275t.612.125q.425.25.888.438t.937.312q.325.075.538.363t.212.587M5.8 17.8q-.375.35-.862.3t-.738-.475q-.325-.575-.562-1.15T3.225 15.3q-.125-.5.175-.875t.85-.375q.325 0 .6.213t.35.537q.125.475.312.938t.438.887q.175.275.125.625t-.275.55m8.375 3.95q-.5.125-.862-.175t-.363-.825q0-.325.213-.6t.537-.35q2.3-.6 3.775-2.463t1.475-4.287q0-2.925-2.037-4.962T11.95 6.05h-.2l.9.9q.275.275.275.7t-.275.7t-.7.275t-.7-.275l-2.6-2.6q-.15-.15-.213-.325t-.062-.375t.063-.375t.212-.325l2.575-2.6q.3-.275.725-.275t.7.275q.3.3.3.725t-.275.7l-.875.875h.15q3.75 0 6.375 2.625t2.625 6.375q0 3.1-1.9 5.5t-4.875 3.2"},null,-1),tJ=[eJ];function rJ(t,e){return J(),re("svg",ZX,[...tJ])}const nJ={name:"material-symbols-rotate-left-rounded",render:rJ},iJ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},oJ=N("path",{fill:"currentColor",d:"M17 15h-2q-.425 0-.712.288T14 16t.288.713T15 17h3q.425 0 .713-.288T19 16v-3q0-.425-.288-.712T18 12t-.712.288T17 13zM7 9h2q.425 0 .713-.288T10 8t-.288-.712T9 7H6q-.425 0-.712.288T5 8v3q0 .425.288.713T6 12t.713-.288T7 11zM4 20q-.825 0-1.412-.587T2 18V6q0-.825.588-1.412T4 4h16q.825 0 1.413.588T22 6v12q0 .825-.587 1.413T20 20zm0-2h16V6H4zm0 0V6z"},null,-1),aJ=[oJ];function sJ(t,e){return J(),re("svg",iJ,[...aJ])}const lJ={name:"material-symbols-aspect-ratio-outline-rounded",render:sJ},cJ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},dJ=N("path",{fill:"currentColor",d:"M8 10.5q-.425 0-.712-.288T7 9.5t.288-.712T8 8.5h3q.425 0 .713.288T12 9.5t-.288.713T11 10.5zM9.5 16q-2.725 0-4.612-1.888T3 9.5t1.888-4.612T9.5 3t4.613 1.888T16 9.5q0 1.1-.35 2.075T14.7 13.3l5.6 5.6q.275.275.275.7t-.275.7t-.7.275t-.7-.275l-5.6-5.6q-.75.6-1.725.95T9.5 16m0-2q1.875 0 3.188-1.312T14 9.5t-1.312-3.187T9.5 5T6.313 6.313T5 9.5t1.313 3.188T9.5 14"},null,-1),uJ=[dJ];function fJ(t,e){return J(),re("svg",cJ,[...uJ])}const hJ={name:"material-symbols-zoom-out-rounded",render:fJ},pJ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},mJ=N("path",{fill:"currentColor",d:"M8.5 10.5h-1q-.425 0-.712-.288T6.5 9.5t.288-.712T7.5 8.5h1v-1q0-.425.288-.712T9.5 6.5t.713.288t.287.712v1h1q.425 0 .713.288t.287.712t-.288.713t-.712.287h-1v1q0 .425-.288.713T9.5 12.5t-.712-.288T8.5 11.5zm1 5.5q-2.725 0-4.612-1.888T3 9.5t1.888-4.612T9.5 3t4.613 1.888T16 9.5q0 1.1-.35 2.075T14.7 13.3l5.6 5.6q.275.275.275.7t-.275.7t-.7.275t-.7-.275l-5.6-5.6q-.75.6-1.725.95T9.5 16m0-2q1.875 0 3.188-1.312T14 9.5t-1.312-3.187T9.5 5T6.313 6.313T5 9.5t1.313 3.188T9.5 14"},null,-1),vJ=[mJ];function gJ(t,e){return J(),re("svg",pJ,[...vJ])}const _J={name:"material-symbols-zoom-in-rounded",render:gJ},yJ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},bJ=N("path",{fill:"currentColor",d:"M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.587 1.413T19 21zm0-2h14V5H5zm0 0V5zm2-2h10q.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 17"},null,-1),xJ=[bJ];function wJ(t,e){return J(),re("svg",yJ,[...xJ])}const gI={name:"material-symbols-image-outline-rounded",render:wJ},TJ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},EJ=N("path",{fill:"currentColor",d:"m12 13.4l-4.9 4.9q-.275.275-.7.275t-.7-.275t-.275-.7t.275-.7l4.9-4.9l-4.9-4.9q-.275-.275-.275-.7t.275-.7t.7-.275t.7.275l4.9 4.9l4.9-4.9q.275-.275.7-.275t.7.275t.275.7t-.275.7L13.4 12l4.9 4.9q.275.275.275.7t-.275.7t-.7.275t-.7-.275z"},null,-1),kJ=[EJ];function CJ(t,e){return J(),re("svg",TJ,[...kJ])}const wu={name:"material-symbols-close-rounded",render:CJ},AJ=()=>{};let _I=!1;try{const t={};Object.defineProperty(t,"passive",{get(){_I=!0}}),window.addEventListener("test-passive",AJ,t)}catch{}const Nk=(t,e,r,n=!1)=>{t.addEventListener(e,r,_I?{capture:!1,passive:n}:!1)},zk=(t,e,r)=>{t.removeEventListener(e,r)},qk=t=>{t.preventDefault()},SJ=Object.prototype.toString,IJ=t=>e=>SJ.call(e).slice(8,-1)===t;function $J(t){return IJ("Array")(t)}function Bk(t,e){const r=t.clientX-e.clientX,n=t.clientY-e.clientY;return Math.sqrt(r*r+n*n)}const OJ=()=>{const t=Le(),e=ki({width:0,height:0,naturalWidth:0,naturalHeight:0,maxScale:1});return{imgRef:t,imgState:e,setImgSize:()=>{if(t.value){const{width:n,height:i,naturalWidth:o,naturalHeight:a}=t.value;e.maxScale=o/n,e.naturalWidth=o,e.naturalHeight=a,e.width=n,e.height=i}}}},PJ=(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:g,lastX:y}=t;t.top=u-g+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()}}},RJ=(t,e,r,n)=>{let i,o=!1,a=0,l=0;const d=50;return{onTouchStart:y=>{const{touches:x}=y;a=x[0].clientX,l=x[0].clientY,x.length>1?(r.gesturing=!0,e.touches=x):(e.initX=e.lastX=x[0].clientX,e.initY=e.lastY=x[0].clientY,r.dragging=!0),y.stopPropagation()},onTouchMove:y=>{if(o)return;const{touches:x}=y,{lastX:m,lastY:p,left:_,top:v,scale:b}=e,w=x[0].clientX,E=x[0].clientY,C=w-a,S=E-l;if(Math.abs(C)>Math.abs(S)&&(Cd&&(r.swipeToRight=!0)),!r.gesturing&&r.dragging){if(!x[0])return;const{clientX:R,clientY:D}=x[0];n()?i=requestAnimationFrame(()=>{e.lastX=R,e.lastY=D,e.top=v-p+D,e.left=_-m+R,o=!1}):(e.lastX=R,e.lastY=D)}else r.gesturing&&e.touches.length>1&&x.length>1&&(i=requestAnimationFrame(()=>{const R=(Bk(e.touches[0],e.touches[1])-Bk(x[0],x[1]))/t.width;e.touches=x;const D=b-R*1.3;D>.5&&D{cancelAnimationFrame(i),r.dragging=!1,r.gesturing=!1,o=!1}}},DJ=[".jpg",".png",".jpeg",".bmp",".webp",".heic",".heif",".apng",".avif",".gif",".tiff",".tif",".svg"],LJ=[".mp4",".mkv",".webm",".avi",".3gp",".mov",".m4v",".3gpp"],MJ=[".mp3",".wav",".wma",".ogg",".m4a",".opus",".flac",".aac"];function Ni(t){const e=t.toLowerCase();return DJ.some(r=>e.endsWith(r))}function Uk(t){return t.toLowerCase().endsWith(".svg")}function Eo(t){const e=t.toLowerCase();return LJ.some(r=>e.endsWith(r))}function nu(t){const e=t.toLowerCase();return MJ.some(r=>e.endsWith(r))}function Vk(t){return Ni(t)||Eo(t)||nu(t)}function o1e(t){return[".txt",".pdf",".md"].some(e=>t.endsWith(e))}function a1e(){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 jk(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,l=(r.videoHeight-o)/2;n.width=200,n.height=200,n.getContext("2d").drawImage(r,a,l,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,width:r.videoWidth,height:r.videoHeight})},r.onerror=()=>{e({src:i,duration:0,thumbnail:"",width:0,height:0})}})}async function Hk(t){return new Promise(e=>{const r=new Image,n=URL.createObjectURL(t);r.onload=function(){URL.revokeObjectURL(n),e({src:n,width:r.width,height:r.height})},r.src=n,r.onerror=()=>{e({src:n,width:0,height:0})}})}function s1e(t){const e=t.lastIndexOf("/");return e===-1?"":t.substring(0,e)}function FJ(t,e){const r=ks(t.path),n=t.isDir?"":DV(r),i=!t.isDir&&(Ni(r)||Eo(r));return{...t,id:t.path,name:r,fileId:i?q0(e,t.path):"",extension:n}}const Va=OS({id:"temp",state:()=>({app:{},urlTokenKey:null,uploads:[],selectedFiles:[],audioPlaying:!1,lightbox:{sources:[],visible:!1,index:-1},counter:{messages:-1,contacts:-1,calls:-1,videos:-1,videosTrash:-1,images:-1,imagesTrash:-1,audios:-1,audiosTrash:-1,packages:-1,packagesSystem:-1,notes:-1,notesTrash:-1,feedEntries:-1,feedEntriesToday:-1,total:-1,free:-1},feedsSyncing:!1})}),Ig=[["ثانية","ثانيتين","%s ثوان","%s ثانية"],["دقيقة","دقيقتين","%s دقائق","%s دقيقة"],["ساعة","ساعتين","%s ساعات","%s ساعة"],["يوم","يومين","%s أيام","%s يوماً"],["أسبوع","أسبوعين","%s أسابيع","%s أسبوعاً"],["شهر","شهرين","%s أشهر","%s شهراً"],["عام","عامين","%s أعوام","%s عاماً"]];function NJ(t,e){return e<3?Ig[t][e-1]:e>=3&&e<=10?Ig[t][2]:Ig[t][3]}function zJ(t,e){if(e===0)return["منذ لحظات","بعد لحظات"];const r=NJ(Math.floor(e/2),t);return["منذ "+r,"بعد "+r]}function Bs(t,e,r,n,i){const o=i%10;let a=n;return i===1?a=t:o===1&&i>20?a=e:o>1&&o<5&&(i>20||i<10)&&(a=r),a}const Wk=Bs.bind(null,"секунду","%s секунду","%s секунды","%s секунд"),Gk=Bs.bind(null,"хвіліну","%s хвіліну","%s хвіліны","%s хвілін"),Qk=Bs.bind(null,"гадзіну","%s гадзіну","%s гадзіны","%s гадзін"),Kk=Bs.bind(null,"дзень","%s дзень","%s дні","%s дзён"),Yk=Bs.bind(null,"тыдзень","%s тыдзень","%s тыдні","%s тыдняў"),Xk=Bs.bind(null,"месяц","%s месяц","%s месяцы","%s месяцаў"),Jk=Bs.bind(null,"год","%s год","%s гады","%s гадоў");function qJ(t,e){switch(e){case 0:return["толькі што","праз некалькі секунд"];case 1:return[Wk(t)+" таму","праз "+Wk(t)];case 2:case 3:return[Gk(t)+" таму","праз "+Gk(t)];case 4:case 5:return[Qk(t)+" таму","праз "+Qk(t)];case 6:case 7:return[Kk(t)+" таму","праз "+Kk(t)];case 8:case 9:return[Yk(t)+" таму","праз "+Yk(t)];case 10:case 11:return[Xk(t)+" таму","праз "+Xk(t)];case 12:case 13:return[Jk(t)+" таму","праз "+Jk(t)];default:return["",""]}}function BJ(t,e){return[["току що","съвсем скоро"],["преди %s секунди","след %s секунди"],["преди 1 минута","след 1 минута"],["преди %s минути","след %s минути"],["преди 1 час","след 1 час"],["преди %s часа","след %s часа"],["преди 1 ден","след 1 ден"],["преди %s дни","след %s дни"],["преди 1 седмица","след 1 седмица"],["преди %s седмици","след %s седмици"],["преди 1 месец","след 1 месец"],["преди %s месеца","след %s месеца"],["преди 1 година","след 1 година"],["преди %s години","след %s години"]][e]}function UJ(t,e){return[["এইমাত্র","একটা সময়"],["%s সেকেন্ড আগে","%s এর সেকেন্ডের মধ্যে"],["1 মিনিট আগে","1 মিনিটে"],["%s এর মিনিট আগে","%s এর মিনিটের মধ্যে"],["1 ঘন্টা আগে","1 ঘন্টা"],["%s ঘণ্টা আগে","%s এর ঘন্টার মধ্যে"],["1 দিন আগে","1 দিনের মধ্যে"],["%s এর দিন আগে","%s এর দিন"],["1 সপ্তাহ আগে","1 সপ্তাহের মধ্যে"],["%s এর সপ্তাহ আগে","%s সপ্তাহের মধ্যে"],["1 মাস আগে","1 মাসে"],["%s মাস আগে","%s মাসে"],["1 বছর আগে","1 বছরের মধ্যে"],["%s বছর আগে","%s বছরে"]][e]}function VJ(t,e){return[["fa un moment","d'aquí un moment"],["fa %s segons","d'aquí %s segons"],["fa 1 minut","d'aquí 1 minut"],["fa %s minuts","d'aquí %s minuts"],["fa 1 hora","d'aquí 1 hora"],["fa %s hores","d'aquí %s hores"],["fa 1 dia","d'aquí 1 dia"],["fa %s dies","d'aquí %s dies"],["fa 1 setmana","d'aquí 1 setmana"],["fa %s setmanes","d'aquí %s setmanes"],["fa 1 mes","d'aquí 1 mes"],["fa %s mesos","d'aquí %s mesos"],["fa 1 any","d'aquí 1 any"],["fa %s anys","d'aquí %s anys"]][e]}function jJ(t,e){let r=0;return(e==1||e==3||e==5||e==7||e==9||e==11||e==13)&&t>=5&&(r=1),[[["právě teď","právě teď"]],[["před %s vteřinami","za %s vteřiny"],["před %s vteřinami","za %s vteřin"]],[["před minutou","za minutu"]],[["před %s minutami","za %s minuty"],["před %s minutami","za %s minut"]],[["před hodinou","za hodinu"]],[["před %s hodinami","za %s hodiny"],["před %s hodinami","za %s hodin"]],[["včera","zítra"]],[["před %s dny","za %s dny"],["před %s dny","za %s dnů"]],[["minulý týden","příští týden"]],[["před %s týdny","za %s týdny"],["před %s týdny","za %s týdnů"]],[["minulý měsíc","přístí měsíc"]],[["před %s měsíci","za %s měsíce"],["před %s měsíci","za %s měsíců"]],[["před rokem","přístí rok"]],[["před %s lety","za %s roky"],["před %s lety","za %s let"]]][e][r]}function HJ(t,e){return[["for et øjeblik siden","om et øjeblik"],["for %s sekunder siden","om %s sekunder"],["for 1 minut siden","om 1 minut"],["for %s minutter siden","om %s minutter"],["for 1 time siden","om 1 time"],["for %s timer siden","om %s timer"],["for 1 dag siden","om 1 dag"],["for %s dage siden","om %s dage"],["for 1 uge siden","om 1 uge"],["for %s uger siden","om %s uger"],["for 1 måned siden","om 1 måned"],["for %s måneder siden","om %s måneder"],["for 1 år siden","om 1 år"],["for %s år siden","om %s år"]][e]}function WJ(t,e){return[["gerade eben","vor einer Weile"],["vor %s Sekunden","in %s Sekunden"],["vor 1 Minute","in 1 Minute"],["vor %s Minuten","in %s Minuten"],["vor 1 Stunde","in 1 Stunde"],["vor %s Stunden","in %s Stunden"],["vor 1 Tag","in 1 Tag"],["vor %s Tagen","in %s Tagen"],["vor 1 Woche","in 1 Woche"],["vor %s Wochen","in %s Wochen"],["vor 1 Monat","in 1 Monat"],["vor %s Monaten","in %s Monaten"],["vor 1 Jahr","in 1 Jahr"],["vor %s Jahren","in %s Jahren"]][e]}function GJ(t,e){return[["μόλις τώρα","σε λίγο"],["%s δευτερόλεπτα πριν","σε %s δευτερόλεπτα"],["1 λεπτό πριν","σε 1 λεπτό"],["%s λεπτά πριν","σε %s λεπτά"],["1 ώρα πριν","σε 1 ώρα"],["%s ώρες πριν","σε %s ώρες"],["1 μέρα πριν","σε 1 μέρα"],["%s μέρες πριν","σε %s μέρες"],["1 εβδομάδα πριν","σε 1 εβδομάδα"],["%s εβδομάδες πριν","σε %s εβδομάδες"],["1 μήνα πριν","σε 1 μήνα"],["%s μήνες πριν","σε %s μήνες"],["1 χρόνο πριν","σε 1 χρόνο"],["%s χρόνια πριν","σε %s χρόνια"]][e]}function QJ(t,e){return[["just now","right now"],["%ss ago","in %ss"],["1m ago","in 1m"],["%sm ago","in %sm"],["1h ago","in 1h"],["%sh ago","in %sh"],["1d ago","in 1d"],["%sd ago","in %sd"],["1w ago","in 1w"],["%sw ago","in %sw"],["1mo ago","in 1mo"],["%smo ago","in %smo"],["1yr ago","in 1yr"],["%syr ago","in %syr"]][e]}const KJ=["second","minute","hour","day","week","month","year"];function YJ(t,e){if(e===0)return["just now","right now"];let r=KJ[Math.floor(e/2)];return t>1&&(r+="s"),[`${t} ${r} ago`,`in ${t} ${r}`]}function XJ(t,e){return[["justo ahora","en un rato"],["hace %s segundos","en %s segundos"],["hace 1 minuto","en 1 minuto"],["hace %s minutos","en %s minutos"],["hace 1 hora","en 1 hora"],["hace %s horas","en %s horas"],["hace 1 día","en 1 día"],["hace %s días","en %s días"],["hace 1 semana","en 1 semana"],["hace %s semanas","en %s semanas"],["hace 1 mes","en 1 mes"],["hace %s meses","en %s meses"],["hace 1 año","en 1 año"],["hace %s años","en %s años"]][e]}function JJ(t,e){return[["orain","denbora bat barru"],["duela %s segundu","%s segundu barru"],["duela minutu 1","minutu 1 barru"],["duela %s minutu","%s minutu barru"],["duela ordu 1","ordu 1 barru"],["duela %s ordu","%s ordu barru"],["duela egun 1","egun 1 barru"],["duela %s egun","%s egun barru"],["duela aste 1","aste 1 barru"],["duela %s aste","%s aste barru"],["duela hillabete 1","hillabete 1 barru"],["duela %s hillabete","%s hillabete barru"],["duela urte 1","urte 1 barru"],["duela %s urte","%s urte barru"]][e]}function Zk(t){const e=["۰","۱","۲","۳","۴","۵","۶","۷","۸","۹"];return t.toString().replace(/\d/g,r=>e[r])}function ZJ(t,e){const r=[["لحظاتی پیش","همین حالا"],["%s ثانیه پیش","%s ثانیه دیگر"],["۱ دقیقه پیش","۱ دقیقه دیگر"],["%s دقیقه پیش","%s دقیقه دیگر"],["۱ ساعت پیش","۱ ساعت دیگر"],["%s ساعت پیش","%s ساعت دیگر"],["۱ روز پیش","۱ روز دیگر"],["%s روز پیش","%s روز دیگر"],["۱ هفته پیش","۱ هفته دیگر"],["%s هفته پیش","%s هفته دیگر"],["۱ ماه پیش","۱ ماه دیگر"],["%s ماه پیش","%s ماه دیگر"],["۱ سال پیش","۱ سال دیگر"],["%s سال پیش","%s سال دیگر"]][e];return[r[0].replace("%s",Zk(t)),r[1].replace("%s",Zk(t))]}function eZ(t,e){return[["juuri äsken","juuri nyt"],["%s sekuntia sitten","%s sekunnin päästä"],["minuutti sitten","minuutin päästä"],["%s minuuttia sitten","%s minuutin päästä"],["tunti sitten","tunnin päästä"],["%s tuntia sitten","%s tunnin päästä"],["päivä sitten","päivän päästä"],["%s päivää sitten","%s päivän päästä"],["viikko sitten","viikon päästä"],["%s viikkoa sitten","%s viikon päästä"],["kuukausi sitten","kuukauden päästä"],["%s kuukautta sitten","%s kuukauden päästä"],["vuosi sitten","vuoden päästä"],["%s vuotta sitten","%s vuoden päästä"]][e]}function tZ(t,e){return[["à l'instant","dans un instant"],["il y a %s secondes","dans %s secondes"],["il y a 1 minute","dans 1 minute"],["il y a %s minutes","dans %s minutes"],["il y a 1 heure","dans 1 heure"],["il y a %s heures","dans %s heures"],["il y a 1 jour","dans 1 jour"],["il y a %s jours","dans %s jours"],["il y a 1 semaine","dans 1 semaine"],["il y a %s semaines","dans %s semaines"],["il y a 1 mois","dans 1 mois"],["il y a %s mois","dans %s mois"],["il y a 1 an","dans 1 an"],["il y a %s ans","dans %s ans"]][e]}function rZ(t,e){return[["xusto agora","daquí a un pouco"],["hai %s segundos","en %s segundos"],["hai 1 minuto","nun minuto"],["hai %s minutos","en %s minutos"],["hai 1 hora","nunha hora"],["hai %s horas","en %s horas"],["hai 1 día","nun día"],["hai %s días","en %s días"],["hai 1 semana","nunha semana"],["hai %s semanas","en %s semanas"],["hai 1 mes","nun mes"],["hai %s meses","en %s meses"],["hai 1 ano","nun ano"],["hai %s anos","en %s anos"]][e]}function nZ(t,e){return[["זה עתה","עכשיו"],["לפני %s שניות","בעוד %s שניות"],["לפני דקה","בעוד דקה"],["לפני %s דקות","בעוד %s דקות"],["לפני שעה","בעוד שעה"],t===2?["לפני שעתיים","בעוד שעתיים"]:["לפני %s שעות","בעוד %s שעות"],["אתמול","מחר"],t===2?["לפני יומיים","בעוד יומיים"]:["לפני %s ימים","בעוד %s ימים"],["לפני שבוע","בעוד שבוע"],t===2?["לפני שבועיים","בעוד שבועיים"]:["לפני %s שבועות","בעוד %s שבועות"],["לפני חודש","בעוד חודש"],t===2?["לפני חודשיים","בעוד חודשיים"]:["לפני %s חודשים","בעוד %s חודשים"],["לפני שנה","בעוד שנה"],t===2?["לפני שנתיים","בעוד שנתיים"]:["לפני %s שנים","בעוד %s שנים"]][e]}function iZ(t,e){return[["अभी","कुछ समय"],["%s सेकंड पहले","%s सेकंड में"],["1 मिनट पहले","1 मिनट में"],["%s मिनट पहले","%s मिनट में"],["1 घंटे पहले","1 घंटे में"],["%s घंटे पहले","%s घंटे में"],["1 दिन पहले","1 दिन में"],["%s दिन पहले","%s दिनों में"],["1 सप्ताह पहले","1 सप्ताह में"],["%s हफ्ते पहले","%s हफ्तों में"],["1 महीने पहले","1 महीने में"],["%s महीने पहले","%s महीनों में"],["1 साल पहले","1 साल में"],["%s साल पहले","%s साल में"]][e]}function oZ(t,e){return[["éppen most","éppen most"],["%s másodperce","%s másodpercen belül"],["1 perce","1 percen belül"],["%s perce","%s percen belül"],["1 órája","1 órán belül"],["%s órája","%s órán belül"],["1 napja","1 napon belül"],["%s napja","%s napon belül"],["1 hete","1 héten belül"],["%s hete","%s héten belül"],["1 hónapja","1 hónapon belül"],["%s hónapja","%s hónapon belül"],["1 éve","1 éven belül"],["%s éve","%s éven belül"]][e]}function aZ(t,e){return[["baru saja","sebentar"],["%s detik yang lalu","dalam %s detik"],["1 menit yang lalu","dalam 1 menit"],["%s menit yang lalu","dalam %s menit"],["1 jam yang lalu","dalam 1 jam"],["%s jam yang lalu","dalam %s jam"],["1 hari yang lalu","dalam 1 hari"],["%s hari yang lalu","dalam %s hari"],["1 minggu yang lalu","dalam 1 minggu"],["%s minggu yang lalu","dalam %s minggu"],["1 bulan yang lalu","dalam 1 bulan"],["%s bulan yang lalu","dalam %s bulan"],["1 tahun yang lalu","dalam 1 tahun"],["%s tahun yang lalu","dalam %s tahun"]][e]}function sZ(t,e){return[["poco fa","fra poco"],["%s secondi fa","fra %s secondi"],["un minuto fa","fra un minuto"],["%s minuti fa","fra %s minuti"],["un'ora fa","fra un'ora"],["%s ore fa","fra %s ore"],["un giorno fa","fra un giorno"],["%s giorni fa","fra %s giorni"],["una settimana fa","fra una settimana"],["%s settimane fa","fra %s settimane"],["un mese fa","fra un mese"],["%s mesi fa","fra %s mesi"],["un anno fa","fra un anno"],["%s anni fa","fra %s anni"]][e]}function lZ(t,e){return[["すこし前","すぐに"],["%s秒前","%s秒以内"],["1分前","1分以内"],["%s分前","%s分以内"],["1時間前","1時間以内"],["%s時間前","%s時間以内"],["1日前","1日以内"],["%s日前","%s日以内"],["1週間前","1週間以内"],["%s週間前","%s週間以内"],["1ヶ月前","1ヶ月以内"],["%sヶ月前","%sヶ月以内"],["1年前","1年以内"],["%s年前","%s年以内"]][e]}function cZ(t,e){return[["ამ წამს","ახლა"],["%s წამის წინ","%s წამში"],["1 წუთის წინ","1 წუთში"],["%s წუთის წინ","%s წუთში"],["1 საათის წინ","1 საათში"],["%s საათის წინ","%s საათში"],["1 დღის წინ","1 დღეში"],["%s დღის წინ","%s დღეში"],["1 კვირის წინ","1 კვირაში"],["%s კვირის წინ","%s კვირაში"],["1 თვის წინ","1 თვეში"],["%s თვის წინ","%s თვეში"],["1 წლის წინ","1 წელიწადში"],["%s წლის წინ","%s წელიწადში"]][e]}function dZ(t,e){return[["방금","곧"],["%s초 전","%s초 후"],["1분 전","1분 후"],["%s분 전","%s분 후"],["1시간 전","1시간 후"],["%s시간 전","%s시간 후"],["1일 전","1일 후"],["%s일 전","%s일 후"],["1주일 전","1주일 후"],["%s주일 전","%s주일 후"],["1개월 전","1개월 후"],["%s개월 전","%s개월 후"],["1년 전","1년 후"],["%s년 전","%s년 후"]][e]}function uZ(t,e){return[["ഇപ്പോള്‍","കുറച്ചു മുന്‍പ്"],["%s സെക്കന്റ്‌കള്‍ക്ക് മുന്‍പ്","%s സെക്കന്റില്‍"],["1 മിനിറ്റിനു മുന്‍പ്","1 മിനിറ്റില്‍"],["%s മിനിറ്റുകള്‍ക്ക് മുന്‍പ","%s മിനിറ്റില്‍"],["1 മണിക്കൂറിനു മുന്‍പ്","1 മണിക്കൂറില്‍"],["%s മണിക്കൂറുകള്‍ക്കു മുന്‍പ്","%s മണിക്കൂറില്‍"],["1 ഒരു ദിവസം മുന്‍പ്","1 ദിവസത്തില്‍"],["%s ദിവസങ്ങള്‍ക് മുന്‍പ്","%s ദിവസങ്ങള്‍ക്കുള്ളില്‍"],["1 ആഴ്ച മുന്‍പ്","1 ആഴ്ചയില്‍"],["%s ആഴ്ചകള്‍ക്ക് മുന്‍പ്","%s ആഴ്ചകള്‍ക്കുള്ളില്‍"],["1 മാസത്തിനു മുന്‍പ്","1 മാസത്തിനുള്ളില്‍"],["%s മാസങ്ങള്‍ക്ക് മുന്‍പ്","%s മാസങ്ങള്‍ക്കുള്ളില്‍"],["1 വര്‍ഷത്തിനു മുന്‍പ്","1 വര്‍ഷത്തിനുള്ളില്‍"],["%s വര്‍ഷങ്ങള്‍ക്കു മുന്‍പ്","%s വര്‍ഷങ്ങള്‍ക്കുല്ല്ളില്‍"]][e]}function fZ(t,e){return[["ယခုအတွင်း","ယခု"],["%s စက္ကန့် အကြာက","%s စက္ကန့်အတွင်း"],["1 မိနစ် အကြာက","1 မိနစ်အတွင်း"],["%s မိနစ် အကြာက","%s မိနစ်အတွင်း"],["1 နာရီ အကြာက","1 နာရီအတွင်း"],["%s နာရီ အကြာက","%s နာရီအတွင်း"],["1 ရက် အကြာက","1 ရက်အတွင်း"],["%s ရက် အကြာက","%s ရက်အတွင်း"],["1 ပတ် အကြာက","1 ပတ်အတွင်း"],["%s ပတ် အကြာက","%s ပတ်အတွင်း"],["1 လ အကြာက","1 လအတွင်း"],["%s လ အကြာက","%s လအတွင်း"],["1 နှစ် အကြာက","1 နှစ်အတွင်း"],["%s နှစ် အကြာက","%s နှစ်အတွင်း"]][e]}function hZ(t,e){return[["akkurat nå","om litt"],["%s sekunder siden","om %s sekunder"],["1 minutt siden","om 1 minutt"],["%s minutter siden","om %s minutter"],["1 time siden","om 1 time"],["%s timer siden","om %s timer"],["1 dag siden","om 1 dag"],["%s dager siden","om %s dager"],["1 uke siden","om 1 uke"],["%s uker siden","om %s uker"],["1 måned siden","om 1 måned"],["%s måneder siden","om %s måneder"],["1 år siden","om 1 år"],["%s år siden","om %s år"]][e]}function pZ(t,e){return[["recent","binnenkort"],["%s seconden geleden","binnen %s seconden"],["1 minuut geleden","binnen 1 minuut"],["%s minuten geleden","binnen %s minuten"],["1 uur geleden","binnen 1 uur"],["%s uur geleden","binnen %s uur"],["1 dag geleden","binnen 1 dag"],["%s dagen geleden","binnen %s dagen"],["1 week geleden","binnen 1 week"],["%s weken geleden","binnen %s weken"],["1 maand geleden","binnen 1 maand"],["%s maanden geleden","binnen %s maanden"],["1 jaar geleden","binnen 1 jaar"],["%s jaar geleden","binnen %s jaar"]][e]}function mZ(t,e){return[["nett no","om litt"],["%s sekund sidan","om %s sekund"],["1 minutt sidan","om 1 minutt"],["%s minutt sidan","om %s minutt"],["1 time sidan","om 1 time"],["%s timar sidan","om %s timar"],["1 dag sidan","om 1 dag"],["%s dagar sidan","om %s dagar"],["1 veke sidan","om 1 veke"],["%s veker sidan","om %s veker"],["1 månad sidan","om 1 månad"],["%s månadar sidan","om %s månadar"],["1 år sidan","om 1 år"],["%s år sidan","om %s år"]][e]}function vZ(t,e){return[["fa un moment","d'aquí un moment"],["fa %s segondas","d'aquí %s segondas"],["fa 1 minuta","d'aquí 1 minuta"],["fa %s minutas","d'aquí %s minutas"],["fa 1 ora","d'aquí 1 ora"],["fa %s oras","d'aquí %s oras"],["fa 1 jorn","d'aquí 1 jorn"],["fa %s jorns","d'aquí %s jorns"],["fa 1 setmana","d'aquí 1 setmana"],["fa %s setmanas","d'aquí %s setmanas"],["fa 1 mes","d'aquí 1 mes"],["fa %s meses","d'aquí %s meses"],["fa 1 an","d'aquí 1 an"],["fa %s ans","d'aquí %s ans"]][e]}const gZ=[["w tej chwili","za chwilę"],["%s sekund temu","za %s sekund"],["1 minutę temu","za 1 minutę"],["%s minut temu","za %s minut"],["1 godzinę temu","za 1 godzinę"],["%s godzin temu","za %s godzin"],["1 dzień temu","za 1 dzień"],["%s dni temu","za %s dni"],["1 tydzień temu","za 1 tydzień"],["%s tygodni temu","za %s tygodni"],["1 miesiąc temu","za 1 miesiąc"],["%s miesięcy temu","za %s miesięcy"],["1 rok temu","za 1 rok"],["%s lat temu","za %s lat"],["%s sekundy temu","za %s sekundy"],["%s minuty temu","za %s minuty"],["%s godziny temu","za %s godziny"],["%s dni temu","za %s dni"],["%s tygodnie temu","za %s tygodnie"],["%s miesiące temu","za %s miesiące"],["%s lata temu","za %s lata"]];function _Z(t,e){return gZ[e&1?t%10>4||t%10<2||~~(t/10)%10===1?e:++e/2+13:e]}function yZ(t,e){return[["agora mesmo","agora"],["há %s segundos","em %s segundos"],["há um minuto","em um minuto"],["há %s minutos","em %s minutos"],["há uma hora","em uma hora"],["há %s horas","em %s horas"],["há um dia","em um dia"],["há %s dias","em %s dias"],["há uma semana","em uma semana"],["há %s semanas","em %s semanas"],["há um mês","em um mês"],["há %s meses","em %s meses"],["há um ano","em um ano"],["há %s anos","em %s anos"]][e]}function bZ(t,e){const r=[["chiar acum","chiar acum"],["acum %s secunde","peste %s secunde"],["acum un minut","peste un minut"],["acum %s minute","peste %s minute"],["acum o oră","peste o oră"],["acum %s ore","peste %s ore"],["acum o zi","peste o zi"],["acum %s zile","peste %s zile"],["acum o săptămână","peste o săptămână"],["acum %s săptămâni","peste %s săptămâni"],["acum o lună","peste o lună"],["acum %s luni","peste %s luni"],["acum un an","peste un an"],["acum %s ani","peste %s ani"]];return t<20?r[e]:[r[e][0].replace("%s","%s de"),r[e][1].replace("%s","%s de")]}function Us(t,e,r,n,i){const o=i%10;let a=n;return i===1?a=t:o===1&&i>20?a=e:o>1&&o<5&&(i>20||i<10)&&(a=r),a}const e5=Us.bind(null,"секунду","%s секунду","%s секунды","%s секунд"),t5=Us.bind(null,"минуту","%s минуту","%s минуты","%s минут"),r5=Us.bind(null,"час","%s час","%s часа","%s часов"),n5=Us.bind(null,"день","%s день","%s дня","%s дней"),i5=Us.bind(null,"неделю","%s неделю","%s недели","%s недель"),o5=Us.bind(null,"месяц","%s месяц","%s месяца","%s месяцев"),a5=Us.bind(null,"год","%s год","%s года","%s лет");function xZ(t,e){switch(e){case 0:return["только что","через несколько секунд"];case 1:return[e5(t)+" назад","через "+e5(t)];case 2:case 3:return[t5(t)+" назад","через "+t5(t)];case 4:case 5:return[r5(t)+" назад","через "+r5(t)];case 6:return["вчера","завтра"];case 7:return[n5(t)+" назад","через "+n5(t)];case 8:case 9:return[i5(t)+" назад","через "+i5(t)];case 10:case 11:return[o5(t)+" назад","через "+o5(t)];case 12:case 13:return[a5(t)+" назад","через "+a5(t)];default:return["",""]}}function wZ(t,e){return[["pak më parë","pas pak"],["para %s sekondash","pas %s sekondash"],["para një minute","pas një minute"],["para %s minutash","pas %s minutash"],["para një ore","pas një ore"],["para %s orësh","pas %s orësh"],["dje","nesër"],["para %s ditësh","pas %s ditësh"],["para një jave","pas një jave"],["para %s javësh","pas %s javësh"],["para një muaji","pas një muaji"],["para %s muajsh","pas %s muajsh"],["para një viti","pas një viti"],["para %s vjetësh","pas %s vjetësh"]][e]}function Vs(t,e,r,n,i){const o=i%10,a=i%100;return i==1?t:o==1&&a!=11?e:o>=2&&o<=4&&!(a>=12&&a<=14)?r:n}const s5=Vs.bind(null,"1 секунд","%s секунд","%s секунде","%s секунди"),l5=Vs.bind(null,"1 минут","%s минут","%s минуте","%s минута"),c5=Vs.bind(null,"сат времена","%s сат","%s сата","%s сати"),d5=Vs.bind(null,"1 дан","%s дан","%s дана","%s дана"),u5=Vs.bind(null,"недељу дана","%s недељу","%s недеље","%s недеља"),f5=Vs.bind(null,"месец дана","%s месец","%s месеца","%s месеци"),h5=Vs.bind(null,"годину дана","%s годину","%s године","%s година");function TZ(t,e){switch(e){case 0:return["малопре","управо сад"];case 1:return["пре "+s5(t),"за "+s5(t)];case 2:case 3:return["пре "+l5(t),"за "+l5(t)];case 4:case 5:return["пре "+c5(t),"за "+c5(t)];case 6:case 7:return["пре "+d5(t),"за "+d5(t)];case 8:case 9:return["пре "+u5(t),"за "+u5(t)];case 10:case 11:return["пре "+f5(t),"за "+f5(t)];case 12:case 13:return["пре "+h5(t),"за "+h5(t)];default:return["",""]}}function EZ(t,e){return[["just nu","om en stund"],["%s sekunder sedan","om %s sekunder"],["1 minut sedan","om 1 minut"],["%s minuter sedan","om %s minuter"],["1 timme sedan","om 1 timme"],["%s timmar sedan","om %s timmar"],["1 dag sedan","om 1 dag"],["%s dagar sedan","om %s dagar"],["1 vecka sedan","om 1 vecka"],["%s veckor sedan","om %s veckor"],["1 månad sedan","om 1 månad"],["%s månader sedan","om %s månader"],["1 år sedan","om 1 år"],["%s år sedan","om %s år"]][e]}function kZ(t,e){return[["இப்போது","சற்று நேரம் முன்பு"],["%s நொடிக்கு முன்","%s நொடிகளில்"],["1 நிமிடத்திற்க்கு முன்","1 நிமிடத்தில்"],["%s நிமிடத்திற்க்கு முன்","%s நிமிடங்களில்"],["1 மணி நேரத்திற்கு முன்","1 மணி நேரத்திற்குள்"],["%s மணி நேரத்திற்கு முன்","%s மணி நேரத்திற்குள்"],["1 நாளுக்கு முன்","1 நாளில்"],["%s நாட்களுக்கு முன்","%s நாட்களில்"],["1 வாரத்திற்கு முன்","1 வாரத்தில்"],["%s வாரங்களுக்கு முன்","%s வாரங்களில்"],["1 மாதத்திற்கு முன்","1 மாதத்தில்"],["%s மாதங்களுக்கு முன்","%s மாதங்களில்"],["1 வருடத்திற்கு முன்","1 வருடத்தில்"],["%s வருடங்களுக்கு முன்","%s வருடங்களில்"]][e]}function CZ(t,e){return[["เมื่อสักครู่นี้","อีกสักครู่"],["%s วินาทีที่แล้ว","ใน %s วินาที"],["1 นาทีที่แล้ว","ใน 1 นาที"],["%s นาทีที่แล้ว","ใน %s นาที"],["1 ชั่วโมงที่แล้ว","ใน 1 ชั่วโมง"],["%s ชั่วโมงที่แล้ว","ใน %s ชั่วโมง"],["1 วันที่แล้ว","ใน 1 วัน"],["%s วันที่แล้ว","ใน %s วัน"],["1 อาทิตย์ที่แล้ว","ใน 1 อาทิตย์"],["%s อาทิตย์ที่แล้ว","ใน %s อาทิตย์"],["1 เดือนที่แล้ว","ใน 1 เดือน"],["%s เดือนที่แล้ว","ใน %s เดือน"],["1 ปีที่แล้ว","ใน 1 ปี"],["%s ปีที่แล้ว","ใน %s ปี"]][e]}const AZ=["sekunt","minut","sagat","gün","hepde","aý","ýyl"];function SZ(t){return t.match(/[aouy]/)?"dan":"den"}function IZ(t,e){if(e===0)return["biraz öň","şuwagt"];const r=AZ[Math.floor(e/2)];return[`${t} ${r} öň`,`${t} ${r}${SZ(r)}`]}function $Z(t,e){return[["az önce","şimdi"],["%s saniye önce","%s saniye içinde"],["1 dakika önce","1 dakika içinde"],["%s dakika önce","%s dakika içinde"],["1 saat önce","1 saat içinde"],["%s saat önce","%s saat içinde"],["1 gün önce","1 gün içinde"],["%s gün önce","%s gün içinde"],["1 hafta önce","1 hafta içinde"],["%s hafta önce","%s hafta içinde"],["1 ay önce","1 ay içinde"],["%s ay önce","%s ay içinde"],["1 yıl önce","1 yıl içinde"],["%s yıl önce","%s yıl içinde"]][e]}function js(t,e,r,n,i){const o=i%10;let a=n;return i===1?a=t:o===1&&i>20?a=e:o>1&&o<5&&(i>20||i<10)&&(a=r),a}const p5=js.bind(null,"секунду","%s секунду","%s секунди","%s секунд"),m5=js.bind(null,"хвилину","%s хвилину","%s хвилини","%s хвилин"),v5=js.bind(null,"годину","%s годину","%s години","%s годин"),g5=js.bind(null,"день","%s день","%s дні","%s днів"),_5=js.bind(null,"тиждень","%s тиждень","%s тиждні","%s тижднів"),y5=js.bind(null,"місяць","%s місяць","%s місяці","%s місяців"),b5=js.bind(null,"рік","%s рік","%s роки","%s років");function OZ(t,e){switch(e){case 0:return["щойно","через декілька секунд"];case 1:return[p5(t)+" тому","через "+p5(t)];case 2:case 3:return[m5(t)+" тому","через "+m5(t)];case 4:case 5:return[v5(t)+" тому","через "+v5(t)];case 6:case 7:return[g5(t)+" тому","через "+g5(t)];case 8:case 9:return[_5(t)+" тому","через "+_5(t)];case 10:case 11:return[y5(t)+" тому","через "+y5(t)];case 12:case 13:return[b5(t)+" тому","через "+b5(t)];default:return["",""]}}function PZ(t,e){return[["vừa xong","một lúc"],["%s giây trước","trong %s giây"],["1 phút trước","trong 1 phút"],["%s phút trước","trong %s phút"],["1 giờ trước","trong 1 giờ"],["%s giờ trước","trong %s giờ"],["1 ngày trước","trong 1 ngày"],["%s ngày trước","trong %s ngày"],["1 tuần trước","trong 1 tuần"],["%s tuần trước","trong %s tuần"],["1 tháng trước","trong 1 tháng"],["%s tháng trước","trong %s tháng"],["1 năm trước","trong 1 năm"],["%s năm trước","trong %s năm"]][e]}const RZ=["秒","分钟","小时","天","周","个月","年"];function DZ(t,e){if(e===0)return["刚刚","片刻后"];const r=RZ[~~(e/2)];return[`${t} ${r}前`,`${t} ${r}后`]}function LZ(t,e){return[["剛剛","片刻後"],["%s 秒前","%s 秒後"],["1 分鐘前","1 分鐘後"],["%s 分鐘前","%s 分鐘後"],["1 小時前","1 小時後"],["%s 小時前","%s 小時後"],["1 天前","1 天後"],["%s 天前","%s 天後"],["1 週前","1 週後"],["%s 週前","%s 週後"],["1 個月前","1 個月後"],["%s 個月前","%s 個月後"],["1 年前","1 年後"],["%s 年前","%s 年後"]][e]}const x5=Object.freeze(Object.defineProperty({__proto__:null,ar:zJ,be:qJ,bg:BJ,bn_IN:UJ,ca:VJ,cs:jJ,da:HJ,de:WJ,el:GJ,en_US:YJ,en_short:QJ,es:XJ,eu:JJ,fa:ZJ,fi:eZ,fr:tZ,gl:rZ,he:nZ,hi_IN:iZ,hu:oZ,id_ID:aZ,it:sZ,ja:lZ,ka:cZ,ko:dZ,ml:uZ,my:fZ,nb_NO:hZ,nl:pZ,nn_NO:mZ,oc:vZ,pl:_Z,pt_BR:yZ,ro:bZ,ru:xZ,sq:wZ,sr:TZ,sv:EZ,ta:kZ,th:CZ,tk:IZ,tr:$Z,uk:OZ,vi:PZ,zh_CN:DZ,zh_TW:LZ},Symbol.toStringTag,{value:"Module"})),vy={},MZ=(t,e)=>{vy[t]=e},FZ=t=>vy[t]||vy.en_US,$g=[60,60,24,7,365/7/12,12];function NZ(t){return t instanceof Date?t:!isNaN(t)||/^\d+$/.test(t)?new Date(parseInt(t)):(t=(t||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"),new Date(t))}function zZ(t,e){const r=t<0?1:0;t=Math.abs(t);const n=t;let i=0;for(;t>=$g[i]&&i<$g.length;i++)t/=$g[i];return t=Math.floor(t),i*=2,t>(i===0?9:1)&&(i+=1),e(t,i,n)[r].replace("%s",t.toString())}function qZ(t,e){return(+new Date-+NZ(t))/1e3}const BZ=(t,e,r)=>{const n=qZ(t);return zZ(n,FZ(e))};Object.keys(x5).forEach(t=>{MZ(t,x5[t])});function mm(){return localStorage.getItem("locale")??navigator.language??"en-US"}function d1(t,e){return t==="1970-01-01T00:00:00Z"?"":new Intl.DateTimeFormat(mm(),{hour12:!1,dateStyle:"short",timeStyle:"short",...e}).format(new Date(t))}function u1(t){return t==="1970-01-01T00:00:00Z"?"":d1(t,{dateStyle:"long",timeStyle:"long"})}function l1e(t){return BZ(new Date(t),mm().replace("-","_"))}function Og(t){return new Intl.DateTimeFormat(mm()).format(new Date(t))}function UZ(t){return new Intl.DateTimeFormat(mm(),{hour12:!1,timeStyle:"short"}).format(new Date(t))}function vm(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 iu(t,e=!0,r=1){const n=e?1e3:1024;if(Math.abs(t)=n&&oi?Pg(r,i):Og(r,r.default);else{const i=cn(zA,null),o=cn(Lq,null);e=a=>{if(a){const d=Pg(i,a);return d||Pg(r,a)}const l=Og(i,o);return l||Og(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 Mq={};function Rg(t){return Xt(t)?t:typeof t=="function"?At(t):Le(t)}function Fq(t){return Xt(t)?t:typeof t=="function"?At(t):t&&zn(t)}function dp(){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 mo=typeof window>"u",Ml={queries:Le(0),mutations:Le(0),subscriptions:Le(0),components:new Map};function Nq(){const t=Ki();if(!t)return{};let e;return Ml.components.has(t)?e=Ml.components.get(t):(Ml.components.set(t,e={queries:Le(0),mutations:Le(0),subscriptions:Le(0)}),Wa(()=>{Ml.components.delete(t)})),{tracking:e}}function qA(t,e){if(mo)return;const{tracking:r}=Nq();Rt(t,(n,i)=>{if(i!=null&&n!==i){const o=n?1:-1;r&&(r[e].value+=o),Ml[e].value+=o}},{immediate:!0}),$i(()=>{t.value&&(r&&r[e].value--,Ml[e].value--)})}function zq(t){qA(t,"queries")}function qq(t){qA(t,"mutations")}function BA(t){return t instanceof Error?hA(t)?t:new vo({networkError:t,errorMessage:t.message}):new vo({networkError:Object.assign(new Error,{originalError:t}),errorMessage:String(t)})}function Bq(t){return new vo({graphQLErrors:t,errorMessage:`GraphQL response contains errors: ${t.map(e=>e.message).join(" | ")}`})}function Vq(t,e,r){return VA(t,e,r)}function VA(t,e,r={},n=!1){var i;const o=Ki(),a=Le(),l=Rg(t),d=Rg(e),u=Fq(r),f=Td(),g=dp(),y=Td(null),x=dp(),m=Le(!1);o&&zq(m);const p=Le();let _,v=!1,b,w;const E=()=>{v=!0,_&&_()},C=B=>{w=B,b&&b(B)},S=()=>{_=void 0,b=void 0,v=!1,w=void 0};o&&((i=zC)==null||i(()=>{var B;if(!(!k.value||mo&&((B=a.value)==null?void 0:B.prefetch)===!1))return new Promise((xe,Ie)=>{_=()=>{S(),xe()},b=ze=>{S(),Ie(ze)},v?_():w&&b(w)}).finally(Pe)}));const{resolveClient:P}=cm();function R(){var B;return P((B=a.value)==null?void 0:B.clientId)}const D=Td();let z,j=!1,q=!1,J=!0;function be(){var B,xe,Ie,ze,Ye;if(j||!k.value||mo&&((B=a.value)==null?void 0:B.prefetch)===!1||!De){E();return}mo&&(M(l.value),ae(d.value),A(ne(u))),j=!0,y.value=null,m.value=!0;const dt=R();if(D.value=dt.watchQuery({query:De,variables:U??{},...a.value,...mo&&((xe=a.value)==null?void 0:xe.fetchPolicy)!=="no-cache"?{fetchPolicy:"network-only"}:{}}),Oe(),!mo&&(J||!((Ie=a.value)!=null&&Ie.keepPreviousResult))&&(((ze=a.value)==null?void 0:ze.fetchPolicy)!=="no-cache"||a.value.notifyOnNetworkStatusChange)){const ht=D.value.getCurrentResult(!1);!ht.loading||ht.partial||(Ye=a.value)!=null&&Ye.notifyOnNetworkStatusChange?(ke(ht),q=!ht.loading):ht.error&&(Be(ht.error),q=!0)}if(!mo)for(const ht of _e)W(ht);J=!1}function Oe(){z&&!z.closed||D.value&&(q=!1,z=D.value.subscribe({next:ke,error:Be}))}function ge(){var B,xe,Ie,ze;const Ye=P((B=a.value)==null?void 0:B.clientId);return((xe=a.value)==null?void 0:xe.errorPolicy)||((ze=(Ie=Ye.defaultOptions)==null?void 0:Ie.watchQuery)==null?void 0:ze.errorPolicy)}function ke(B){var xe;if(q){q=!1;return}y.value=null,Se(B);const Ie=ge();Ie&&Ie==="all"&&!B.error&&((xe=B.errors)!=null&&xe.length)&&Re(Bq(B.errors)),E()}function Se(B){f.value=B.data&&Object.keys(B.data).length===0?void 0:B.data,m.value=B.loading,p.value=B.networkStatus,yo(()=>{g.trigger(B,{client:R()})})}function Be(B){if(q){q=!1;return}const xe=BA(B),Ie=ge();Ie&&Ie!=="none"&&Se(D.value.getCurrentResult()),Re(xe),C(xe),se()}function Re(B){y.value=B,m.value=!1,p.value=8,yo(()=>{x.trigger(B,{client:R()})})}function se(){if(!D.value)return;const B=D.value.getLastError(),xe=D.value.getLastResult();D.value.resetLastResults(),Oe(),Object.assign(D.value,{lastError:B,lastResult:xe})}let we=[];function Pe(){E(),j&&(j=!1,m.value=!1,we.forEach(B=>B()),we=[],D.value&&(D.value.stopPolling(),D.value=null),z&&(z.unsubscribe(),z=void 0))}let Ce=!1;function je(){!j||Ce||(Ce=!0,yo(()=>{j&&(Pe(),be()),Ce=!1}))}let Ge,ee=!1;function le(){var B,xe;a.value?((B=a.value)!=null&&B.throttle?Ge=g3(a.value.throttle,je):(xe=a.value)!=null&&xe.debounce?Ge=bN(a.value.debounce,je):Ge=je,ee=!0):Ge=je}function ue(){!j||Ce||(ee||le(),Ge())}let De=l.value;const Ke=Le(n),it=At(()=>!a.value||a.value.enabled==null||a.value.enabled),k=At(()=>it.value&&!Ke.value&&!!l.value);Rt(()=>ne(u),A,{deep:!0,immediate:!0});function A(B){a.value&&(a.value.throttle!==B.throttle||a.value.debounce!==B.debounce)&&le(),a.value=B,ue()}Rt(l,M);function M(B){De=B,ue()}let U,G;Rt(()=>{if(k.value)return d.value},ae,{deep:!0,immediate:!0});function ae(B){const xe=JSON.stringify([B,k.value]);xe!==G&&(U=B,ue()),G=xe}function Ae(B=void 0){if(D.value)return B&&(U=B),y.value=null,m.value=!0,D.value.refetch(B).then(xe=>{var Ie;const ze=(Ie=D.value)==null?void 0:Ie.getCurrentResult();return ze&&Se(ze),xe})}function fe(B){if(D.value)return y.value=null,m.value=!0,D.value.fetchMore(B).then(xe=>{var Ie;const ze=(Ie=D.value)==null?void 0:Ie.getCurrentResult();return ze&&Se(ze),xe})}const _e=[];function ie(B){if(mo)return;const xe=Rg(B);Rt(xe,(Ie,ze,Ye)=>{const dt=_e.findIndex(sr=>sr.options===ze);dt!==-1&&_e.splice(dt,1);const ht={options:Ie,unsubscribeFns:[]};_e.push(ht),W(ht),Ye(()=>{ht.unsubscribeFns.forEach(sr=>sr()),ht.unsubscribeFns=[]})},{immediate:!0})}function W(B){if(!j)return;if(!D.value)throw new Error("Query is not defined");const xe=D.value.subscribeToMore(B.options);we.push(xe),B.unsubscribeFns.push(xe)}return Rt(k,B=>{B?yo(()=>{be()}):Pe()}),k.value&&be(),o&&$i(()=>{Pe(),_e.length=0}),{result:f,loading:m,networkStatus:p,error:y,start:be,stop:Pe,restart:ue,forceDisabled:Ke,document:l,variables:d,options:u,query:D,refetch:Ae,fetchMore:fe,subscribeToMore:ie,onResult:g.on,onError:x.on}}function Uq(t,e,r){const n=VA(t,e,r,!0);function i(o,a,l){return o&&(n.document.value=o),a&&(n.variables.value=a),l&&Object.assign(Xt(n.options)?n.options.value:n.options,l),n.forceDisabled.value?(n.forceDisabled.value=!1,mo&&n.start(),new Promise((u,f)=>{const{off:g}=n.onResult(x=>{x.loading||(u(x.data),g(),y())}),{off:y}=n.onError(x=>{f(x),g(),y()})})):!1}return{...n,load:i}}function jq(t,e={}){const r=Ki(),n=Le(!1);r&&qq(n);const i=Td(null),o=Le(!1),a=dp(),l=dp(),{resolveClient:d}=cm();async function u(f,g={}){let y;typeof t=="function"?y=t():Xt(t)?y=t.value:y=t;let x;typeof e=="function"?x=e():Xt(e)?x=e.value:x=e;const m=d(x.clientId);i.value=null,n.value=!0,o.value=!0;try{const p=await m.mutate({mutation:y,...x,...g,variables:f??x.variables?{...x.variables,...f}:void 0});return n.value=!1,a.trigger(p,{client:m}),p}catch(p){const _=BA(p);if(i.value=_,n.value=!1,l.trigger(_,{client:m}),x.throws==="always"||x.throws!=="never"&&!l.getCount())throw _}return null}return r&&$i(()=>{n.value=!1}),{mutate:u,loading:n,error:i,called:o,onDone:a.on,onError:l.on}}const Ci=Le([]),Tc={initialized:!1,instanceStorage:{}};function Hq(t,e){Tc.instanceStorage[t]=e}function Wq(t){return Tc.instanceStorage[t]}const hE=Dt({__name:"ModalContainerItem",props:{id:Number},setup(t){const e=Le(null),r=Le(),n=t,i=o(n.id);function o(a){return Ci.value.find(l=>l.id===a)}return Rt(()=>e.value,a=>{Hq(n.id,a),setTimeout(()=>{r.value&&r.value.firstChild.show()},0)}),(a,l)=>{var d,u,f;return Y(),te("div",{ref_key:"containerRef",ref:r,style:{position:"relative","z-index":"2"}},[(Y(),or(Ed((d=ne(i))==null?void 0:d.component),r3((u=ne(i))==null?void 0:u.props.value,{modalId:`_modal_${t.id}`,ref_key:"modalRef",ref:e},JM((f=ne(i))==null?void 0:f.events)),null,16,["modalId"]))],512)}}}),Gq={backgroundClose:!0,escClose:!0};class wr extends Error{constructor(r,n=null){super();Kt(this,"isModalError",!0);Kt(this,"details");this.message=r,this.details=n}static Undefined(r){return new wr(`Modal with id: ${r} not founded. The modal window may have been closed earlier.`)}static UndefinedGuardName(r){return new wr(`Guard's name ${r} is not declaration.`)}static NextReject(r){return new wr(`Guard returned false. Modal navigation was stopped. Modal id ${r}`)}static GuardDeclarationType(r){return new wr("Guard's type should be a function. Provided:",r)}static ConfigurationType(r){return new wr("Configuration type must be an Object. Provided",r)}static ConfigurationUndefinedParam(r,n){return new wr(`In configuration founded unknown parameter: ${r}. Available are ${n.join(", ")} `)}static QueueNoEmpty(){return new wr("Modal's queue is not empty. Probably some modal reject closing by onClose hook.")}static EmptyModalQueue(){return new wr("Modal queue is empty.")}static NotInitialized(){return new wr("Modal Container not found. Put container from vue-modal in App's template.")}static ModalComponentNotProvided(){return new wr("The first parameter(VueComponent) was not specified.")}static DuplicatedRouterIntegration(){return new wr("useModalRouter.init should escaped only once.")}static ModalRouterIntegrationNotInitialized(){return new wr("The integration was not initialized. Please, use useModalRouter.init(router).")}static ModalEventNameMustBeString(r){return new wr(`Event name must be a string. Provided: ${r}`)}}const up={store:{},add(t,e,r){if(typeof r!="function")throw wr.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 UA(t){return t.reduce((e,r)=>e.then(()=>r()),Promise.resolve())}function Qq(t,e,r){return()=>new Promise((n,i)=>{const o=(a=!0)=>{a===!1&&i(wr.NextReject(e)),n()};Promise.resolve(t.call(Tc.instanceStorage[e],r)).then(o).catch(a=>i(a))})}function Kq(t){const e={backgroundClose:Gq.backgroundClose,isRoute:!1};return t.backgroundClose!==void 0&&(e.backgroundClose=t.backgroundClose),t.isRoute&&(e.isRoute=t.isRoute),e}const Gd=class Gd{constructor(e,r,n){Kt(this,"id");Kt(this,"events",zn({}));Kt(this,"closed");Kt(this,"component");Kt(this,"props");Kt(this,"backgroundClose",!0);Kt(this,"isRoute",!1);this.id=Gd.modalId++,this.component=e,this.props=Le(r),this.closed=At(()=>!Ci.value.includes(this)),e.beforeModalClose&&up.add(this.id,"close",e.beforeModalClose);const i=Kq(n);this.backgroundClose=i.backgroundClose,this.isRoute=i.isRoute}close(){return jA(this.id)}set onclose(e){up.add(this.id,"close",e)}get instance(){return Wq(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)}}};Kt(Gd,"modalId",0),Kt(Gd,"EVENT_PROMPT","vue-modal:____P____R____O____M____P____T");let ty=Gd;function Yq(t={}){return Object.assign({background:!1,esc:!1},t)}function Xq(t,e,r){if(!Tc.initialized)throw wr.NotInitialized();if(!t)throw wr.ModalComponentNotProvided();const n=new ty(t,e,r);return Ci.value.push(zp(n)),n}function jA(t,e={}){const r=Ci.value.findIndex(i=>i.id===t);if(r===-1)return Promise.reject(wr.Undefined(t));const n=up.get(t,"close").map(i=>Qq(i,t,Yq(e)));return UA(n).then(()=>{Ci.value.splice(r,1),delete Tc.instanceStorage[t],up.delete(t)})}function HA(t,e={},r={}){return Promise.resolve().then(()=>Xq(t,e,r))}function Jq(){return UA(Ci.value.map(t=>()=>t.close()))}function WA(){if(Ci.value.length!==0)return Ci.value[Ci.value.length-1]}function fp(t,e={},r={}){return Jq().then(()=>{if(Ci.value.length)throw wr.QueueNoEmpty()}).then(()=>HA(t,e,r))}function Ss(){const t=WA();return t?t.close():Promise.resolve()}function Zq(){Tc.initialized=!0,document.addEventListener("keyup",t=>{if(t.key==="Escape"||t.code==="Escape"){const e=WA();if(!e)return;jA(e.id,{esc:!0})}})}const eB={components:{ContainerModalItem:hE},setup(){return Qr(Zq),()=>ji(rN,{name:"modal-list"},{default:()=>Ci.value.map(t=>ji(hE,{key:t.id,id:t.id}))})}};const ry=typeof window<"u",Ga=(t,e=!1)=>e?Symbol.for(t):Symbol(t),tB=(t,e,r)=>rB({l:t,k:e,s:r}),rB=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Fr=t=>typeof t=="number"&&isFinite(t),nB=t=>QA(t)==="[object Date]",hp=t=>QA(t)==="[object RegExp]",dm=t=>Ot(t)&&Object.keys(t).length===0,dn=Object.assign;let pE;const pp=()=>pE||(pE=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function mE(t){return t.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const iB=Object.prototype.hasOwnProperty;function N0(t,e){return iB.call(t,e)}const $r=Array.isArray,Xr=t=>typeof t=="function",We=t=>typeof t=="string",cr=t=>typeof t=="boolean",Vt=t=>t!==null&&typeof t=="object",GA=Object.prototype.toString,QA=t=>GA.call(t),Ot=t=>{if(!Vt(t))return!1;const e=Object.getPrototypeOf(t);return e===null||e.constructor===Object},oB=t=>t==null?"":$r(t)||Ot(t)&&t.toString===GA?JSON.stringify(t,null,2):String(t);function aB(t,e=""){return t.reduce((r,n,i)=>i===0?r+n:r+e+n,"")}function z0(t){let e=t;return()=>++e}function sB(t,e){typeof console<"u"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}function lB(t,e,r){return{line:t,column:e,offset:r}}function ny(t,e,r){return{start:t,end:e}}const cB=/\{([0-9a-zA-Z]+)\}/g;function dB(t,...e){return e.length===1&&uB(e[0])&&(e=e[0]),(!e||!e.hasOwnProperty)&&(e={}),t.replace(cB,(r,n)=>e.hasOwnProperty(n)?e[n]:"")}const KA=Object.assign,vE=t=>typeof t=="string",uB=t=>t!==null&&typeof t=="object";function YA(t,e=""){return t.reduce((r,n,i)=>i===0?r+n:r+e+n,"")}const nt={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},fB={[nt.EXPECTED_TOKEN]:"Expected token: '{0}'",[nt.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[nt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[nt.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[nt.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[nt.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[nt.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[nt.EMPTY_PLACEHOLDER]:"Empty placeholder",[nt.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[nt.INVALID_LINKED_FORMAT]:"Invalid linked format",[nt.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[nt.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[nt.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[nt.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[nt.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[nt.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Ec(t,e,r={}){const{domain:n,messages:i,args:o}=r,a=dB((i||fB)[t]||"",...o||[]),l=new SyntaxError(String(a));return l.code=t,e&&(l.location=e),l.domain=n,l}function hB(t){throw t}const co=" ",pB="\r",ln=` +`,mB="\u2028",vB="\u2029";function gB(t){const e=t;let r=0,n=1,i=1,o=0;const a=P=>e[P]===pB&&e[P+1]===ln,l=P=>e[P]===ln,d=P=>e[P]===vB,u=P=>e[P]===mB,f=P=>a(P)||l(P)||d(P)||u(P),g=()=>r,y=()=>n,x=()=>i,m=()=>o,p=P=>a(P)||d(P)||u(P)?ln:e[P],_=()=>p(r),v=()=>p(r+o);function b(){return o=0,f(r)&&(n++,i=0),a(r)&&r++,r++,i++,e[r]}function w(){return a(r+o)&&o++,o++,e[r+o]}function E(){r=0,n=1,i=1,o=0}function C(P=0){o=P}function S(){const P=r+o;for(;P!==r;)b();o=0}return{index:g,line:y,column:x,peekOffset:m,charAt:p,currentChar:_,currentPeek:v,next:b,peek:w,reset:E,resetPeek:C,skipToPeek:S}}const ta=void 0,_B=".",gE="'",yB="tokenizer";function bB(t,e={}){const r=e.location!==!1,n=gB(t),i=()=>n.index(),o=()=>lB(n.line(),n.column(),n.index()),a=o(),l=i(),d={currentType:14,offset:l,startLoc:a,endLoc:a,lastType:14,lastOffset:l,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},u=()=>d,{onError:f}=e;function g(k,A,M,...U){const G=u();if(A.column+=M,A.offset+=M,f){const ae=r?ny(G.startLoc,A):null,Ae=Ec(k,ae,{domain:yB,args:U});f(Ae)}}function y(k,A,M){k.endLoc=o(),k.currentType=A;const U={type:A};return r&&(U.loc=ny(k.startLoc,k.endLoc)),M!=null&&(U.value=M),U}const x=k=>y(k,14);function m(k,A){return k.currentChar()===A?(k.next(),A):(g(nt.EXPECTED_TOKEN,o(),0,A),"")}function p(k){let A="";for(;k.currentPeek()===co||k.currentPeek()===ln;)A+=k.currentPeek(),k.peek();return A}function _(k){const A=p(k);return k.skipToPeek(),A}function v(k){if(k===ta)return!1;const A=k.charCodeAt(0);return A>=97&&A<=122||A>=65&&A<=90||A===95}function b(k){if(k===ta)return!1;const A=k.charCodeAt(0);return A>=48&&A<=57}function w(k,A){const{currentType:M}=A;if(M!==2)return!1;p(k);const U=v(k.currentPeek());return k.resetPeek(),U}function E(k,A){const{currentType:M}=A;if(M!==2)return!1;p(k);const U=k.currentPeek()==="-"?k.peek():k.currentPeek(),G=b(U);return k.resetPeek(),G}function C(k,A){const{currentType:M}=A;if(M!==2)return!1;p(k);const U=k.currentPeek()===gE;return k.resetPeek(),U}function S(k,A){const{currentType:M}=A;if(M!==8)return!1;p(k);const U=k.currentPeek()===".";return k.resetPeek(),U}function P(k,A){const{currentType:M}=A;if(M!==9)return!1;p(k);const U=v(k.currentPeek());return k.resetPeek(),U}function R(k,A){const{currentType:M}=A;if(!(M===8||M===12))return!1;p(k);const U=k.currentPeek()===":";return k.resetPeek(),U}function D(k,A){const{currentType:M}=A;if(M!==10)return!1;const U=()=>{const ae=k.currentPeek();return ae==="{"?v(k.peek()):ae==="@"||ae==="%"||ae==="|"||ae===":"||ae==="."||ae===co||!ae?!1:ae===ln?(k.peek(),U()):v(ae)},G=U();return k.resetPeek(),G}function z(k){p(k);const A=k.currentPeek()==="|";return k.resetPeek(),A}function j(k){const A=p(k),M=k.currentPeek()==="%"&&k.peek()==="{";return k.resetPeek(),{isModulo:M,hasSpace:A.length>0}}function q(k,A=!0){const M=(G=!1,ae="",Ae=!1)=>{const fe=k.currentPeek();return fe==="{"?ae==="%"?!1:G:fe==="@"||!fe?ae==="%"?!0:G:fe==="%"?(k.peek(),M(G,"%",!0)):fe==="|"?ae==="%"||Ae?!0:!(ae===co||ae===ln):fe===co?(k.peek(),M(!0,co,Ae)):fe===ln?(k.peek(),M(!0,ln,Ae)):!0},U=M();return A&&k.resetPeek(),U}function J(k,A){const M=k.currentChar();return M===ta?ta:A(M)?(k.next(),M):null}function be(k){return J(k,M=>{const U=M.charCodeAt(0);return U>=97&&U<=122||U>=65&&U<=90||U>=48&&U<=57||U===95||U===36})}function Oe(k){return J(k,M=>{const U=M.charCodeAt(0);return U>=48&&U<=57})}function ge(k){return J(k,M=>{const U=M.charCodeAt(0);return U>=48&&U<=57||U>=65&&U<=70||U>=97&&U<=102})}function ke(k){let A="",M="";for(;A=Oe(k);)M+=A;return M}function Se(k){_(k);const A=k.currentChar();return A!=="%"&&g(nt.EXPECTED_TOKEN,o(),0,A),k.next(),"%"}function Be(k){let A="";for(;;){const M=k.currentChar();if(M==="{"||M==="}"||M==="@"||M==="|"||!M)break;if(M==="%")if(q(k))A+=M,k.next();else break;else if(M===co||M===ln)if(q(k))A+=M,k.next();else{if(z(k))break;A+=M,k.next()}else A+=M,k.next()}return A}function Re(k){_(k);let A="",M="";for(;A=be(k);)M+=A;return k.currentChar()===ta&&g(nt.UNTERMINATED_CLOSING_BRACE,o(),0),M}function se(k){_(k);let A="";return k.currentChar()==="-"?(k.next(),A+=`-${ke(k)}`):A+=ke(k),k.currentChar()===ta&&g(nt.UNTERMINATED_CLOSING_BRACE,o(),0),A}function we(k){_(k),m(k,"'");let A="",M="";const U=ae=>ae!==gE&&ae!==ln;for(;A=J(k,U);)A==="\\"?M+=Pe(k):M+=A;const G=k.currentChar();return G===ln||G===ta?(g(nt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),G===ln&&(k.next(),m(k,"'")),M):(m(k,"'"),M)}function Pe(k){const A=k.currentChar();switch(A){case"\\":case"'":return k.next(),`\\${A}`;case"u":return Ce(k,A,4);case"U":return Ce(k,A,6);default:return g(nt.UNKNOWN_ESCAPE_SEQUENCE,o(),0,A),""}}function Ce(k,A,M){m(k,A);let U="";for(let G=0;GG!=="{"&&G!=="}"&&G!==co&&G!==ln;for(;A=J(k,U);)M+=A;return M}function Ge(k){let A="",M="";for(;A=be(k);)M+=A;return M}function ee(k){const A=(M=!1,U)=>{const G=k.currentChar();return G==="{"||G==="%"||G==="@"||G==="|"||G==="("||G===")"||!G||G===co?U:G===ln||G===_B?(U+=G,k.next(),A(M,U)):(U+=G,k.next(),A(!0,U))};return A(!1,"")}function le(k){_(k);const A=m(k,"|");return _(k),A}function ue(k,A){let M=null;switch(k.currentChar()){case"{":return A.braceNest>=1&&g(nt.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),k.next(),M=y(A,2,"{"),_(k),A.braceNest++,M;case"}":return A.braceNest>0&&A.currentType===2&&g(nt.EMPTY_PLACEHOLDER,o(),0),k.next(),M=y(A,3,"}"),A.braceNest--,A.braceNest>0&&_(k),A.inLinked&&A.braceNest===0&&(A.inLinked=!1),M;case"@":return A.braceNest>0&&g(nt.UNTERMINATED_CLOSING_BRACE,o(),0),M=De(k,A)||x(A),A.braceNest=0,M;default:let G=!0,ae=!0,Ae=!0;if(z(k))return A.braceNest>0&&g(nt.UNTERMINATED_CLOSING_BRACE,o(),0),M=y(A,1,le(k)),A.braceNest=0,A.inLinked=!1,M;if(A.braceNest>0&&(A.currentType===5||A.currentType===6||A.currentType===7))return g(nt.UNTERMINATED_CLOSING_BRACE,o(),0),A.braceNest=0,Ke(k,A);if(G=w(k,A))return M=y(A,5,Re(k)),_(k),M;if(ae=E(k,A))return M=y(A,6,se(k)),_(k),M;if(Ae=C(k,A))return M=y(A,7,we(k)),_(k),M;if(!G&&!ae&&!Ae)return M=y(A,13,je(k)),g(nt.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,M.value),_(k),M;break}return M}function De(k,A){const{currentType:M}=A;let U=null;const G=k.currentChar();switch((M===8||M===9||M===12||M===10)&&(G===ln||G===co)&&g(nt.INVALID_LINKED_FORMAT,o(),0),G){case"@":return k.next(),U=y(A,8,"@"),A.inLinked=!0,U;case".":return _(k),k.next(),y(A,9,".");case":":return _(k),k.next(),y(A,10,":");default:return z(k)?(U=y(A,1,le(k)),A.braceNest=0,A.inLinked=!1,U):S(k,A)||R(k,A)?(_(k),De(k,A)):P(k,A)?(_(k),y(A,12,Ge(k))):D(k,A)?(_(k),G==="{"?ue(k,A)||U:y(A,11,ee(k))):(M===8&&g(nt.INVALID_LINKED_FORMAT,o(),0),A.braceNest=0,A.inLinked=!1,Ke(k,A))}}function Ke(k,A){let M={type:14};if(A.braceNest>0)return ue(k,A)||x(A);if(A.inLinked)return De(k,A)||x(A);switch(k.currentChar()){case"{":return ue(k,A)||x(A);case"}":return g(nt.UNBALANCED_CLOSING_BRACE,o(),0),k.next(),y(A,3,"}");case"@":return De(k,A)||x(A);default:if(z(k))return M=y(A,1,le(k)),A.braceNest=0,A.inLinked=!1,M;const{isModulo:G,hasSpace:ae}=j(k);if(G)return ae?y(A,0,Be(k)):y(A,4,Se(k));if(q(k))return y(A,0,Be(k));break}return M}function it(){const{currentType:k,offset:A,startLoc:M,endLoc:U}=d;return d.lastType=k,d.lastOffset=A,d.lastStartLoc=M,d.lastEndLoc=U,d.offset=i(),d.startLoc=o(),n.currentChar()===ta?y(d,14):Ke(n,d)}return{nextToken:it,currentOffset:i,currentPosition:o,context:u}}const xB="parser",wB=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function TB(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 EB(t={}){const e=t.location!==!1,{onError:r}=t;function n(v,b,w,E,...C){const S=v.currentPosition();if(S.offset+=E,S.column+=E,r){const P=e?ny(w,S):null,R=Ec(b,P,{domain:xB,args:C});r(R)}}function i(v,b,w){const E={type:v};return e&&(E.start=b,E.end=b,E.loc={start:w,end:w}),E}function o(v,b,w,E){e&&(v.end=b,v.loc&&(v.loc.end=w))}function a(v,b){const w=v.context(),E=i(3,w.offset,w.startLoc);return E.value=b,o(E,v.currentOffset(),v.currentPosition()),E}function l(v,b){const w=v.context(),{lastOffset:E,lastStartLoc:C}=w,S=i(5,E,C);return S.index=parseInt(b,10),v.nextToken(),o(S,v.currentOffset(),v.currentPosition()),S}function d(v,b){const w=v.context(),{lastOffset:E,lastStartLoc:C}=w,S=i(4,E,C);return S.key=b,v.nextToken(),o(S,v.currentOffset(),v.currentPosition()),S}function u(v,b){const w=v.context(),{lastOffset:E,lastStartLoc:C}=w,S=i(9,E,C);return S.value=b.replace(wB,TB),v.nextToken(),o(S,v.currentOffset(),v.currentPosition()),S}function f(v){const b=v.nextToken(),w=v.context(),{lastOffset:E,lastStartLoc:C}=w,S=i(8,E,C);return b.type!==12?(n(v,nt.UNEXPECTED_EMPTY_LINKED_MODIFIER,w.lastStartLoc,0),S.value="",o(S,E,C),{nextConsumeToken:b,node:S}):(b.value==null&&n(v,nt.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Fi(b)),S.value=b.value||"",o(S,v.currentOffset(),v.currentPosition()),{node:S})}function g(v,b){const w=v.context(),E=i(7,w.offset,w.startLoc);return E.value=b,o(E,v.currentOffset(),v.currentPosition()),E}function y(v){const b=v.context(),w=i(6,b.offset,b.startLoc);let E=v.nextToken();if(E.type===9){const C=f(v);w.modifier=C.node,E=C.nextConsumeToken||v.nextToken()}switch(E.type!==10&&n(v,nt.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Fi(E)),E=v.nextToken(),E.type===2&&(E=v.nextToken()),E.type){case 11:E.value==null&&n(v,nt.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Fi(E)),w.key=g(v,E.value||"");break;case 5:E.value==null&&n(v,nt.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Fi(E)),w.key=d(v,E.value||"");break;case 6:E.value==null&&n(v,nt.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Fi(E)),w.key=l(v,E.value||"");break;case 7:E.value==null&&n(v,nt.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Fi(E)),w.key=u(v,E.value||"");break;default:n(v,nt.UNEXPECTED_EMPTY_LINKED_KEY,b.lastStartLoc,0);const C=v.context(),S=i(7,C.offset,C.startLoc);return S.value="",o(S,C.offset,C.startLoc),w.key=S,o(w,C.offset,C.startLoc),{nextConsumeToken:E,node:w}}return o(w,v.currentOffset(),v.currentPosition()),{node:w}}function x(v){const b=v.context(),w=b.currentType===1?v.currentOffset():b.offset,E=b.currentType===1?b.endLoc:b.startLoc,C=i(2,w,E);C.items=[];let S=null;do{const D=S||v.nextToken();switch(S=null,D.type){case 0:D.value==null&&n(v,nt.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Fi(D)),C.items.push(a(v,D.value||""));break;case 6:D.value==null&&n(v,nt.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Fi(D)),C.items.push(l(v,D.value||""));break;case 5:D.value==null&&n(v,nt.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Fi(D)),C.items.push(d(v,D.value||""));break;case 7:D.value==null&&n(v,nt.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Fi(D)),C.items.push(u(v,D.value||""));break;case 8:const z=y(v);C.items.push(z.node),S=z.nextConsumeToken||null;break}}while(b.currentType!==14&&b.currentType!==1);const P=b.currentType===1?b.lastOffset:v.currentOffset(),R=b.currentType===1?b.lastEndLoc:v.currentPosition();return o(C,P,R),C}function m(v,b,w,E){const C=v.context();let S=E.items.length===0;const P=i(1,b,w);P.cases=[],P.cases.push(E);do{const R=x(v);S||(S=R.items.length===0),P.cases.push(R)}while(C.currentType!==14);return S&&n(v,nt.MUST_HAVE_MESSAGES_IN_PLURAL,w,0),o(P,v.currentOffset(),v.currentPosition()),P}function p(v){const b=v.context(),{offset:w,startLoc:E}=b,C=x(v);return b.currentType===14?C:m(v,w,E,C)}function _(v){const b=bB(v,KA({},t)),w=b.context(),E=i(0,w.offset,w.startLoc);return e&&E.loc&&(E.loc.source=v),E.body=p(b),t.onCacheKey&&(E.cacheKey=t.onCacheKey(v)),w.currentType!==14&&n(b,nt.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,v[w.offset]||""),o(E,b.currentOffset(),b.currentPosition()),E}return{parse:_}}function Fi(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 kB(t,e={}){const r={ast:t,helpers:new Set};return{context:()=>r,helper:o=>(r.helpers.add(o),o)}}function _E(t,e){for(let r=0;ryE(r)),t}function yE(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;rl;function u(_,v){l.code+=_}function f(_,v=!0){const b=v?i:"";u(o?b+" ".repeat(_):b)}function g(_=!0){const v=++l.indentLevel;_&&f(v)}function y(_=!0){const v=--l.indentLevel;_&&f(v)}function x(){f(l.indentLevel)}return{context:d,push:u,indent:g,deindent:y,newline:x,helper:_=>`_${_}`,needIndent:()=>l.needIndent}}function OB(t,e){const{helper:r}=t;t.push(`${r("linked")}(`),oc(t,e.key),e.modifier?(t.push(", "),oc(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function PB(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=vE(e.mode)?e.mode:"normal",n=vE(e.filename)?e.filename:"message.intl",i=!!e.sourceMap,o=e.breakLineCode!=null?e.breakLineCode:r==="arrow"?";":` +`,a=e.needIndent?e.needIndent:r!=="arrow",l=t.helpers||[],d=$B(t,{mode:r,filename:n,sourceMap:i,breakLineCode:o,needIndent:a});d.push(r==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),d.indent(a),l.length>0&&(d.push(`const { ${YA(l.map(g=>`${g}: _${g}`),", ")} } = ctx`),d.newline()),d.push("return "),oc(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 MB(t,e={}){const r=KA({},e),n=!!r.jit,i=!!r.minify,o=r.optimize==null?!0:r.optimize,l=EB(r).parse(t);return n?(o&&AB(l),i&&Al(l),{ast:l,code:""}):(CB(l,r),LB(l,r))}function FB(){typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(pp().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(pp().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Qa=[];Qa[0]={w:[0],i:[3,0],"[":[4],o:[7]};Qa[1]={w:[1],".":[2],"[":[4],o:[7]};Qa[2]={w:[2],i:[3,0],0:[3,0]};Qa[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Qa[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Qa[5]={"'":[4,0],o:8,l:[5,0]};Qa[6]={'"':[4,0],o:8,l:[6,0]};const NB=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function zB(t){return NB.test(t)}function qB(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 BB(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 VB(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:zB(e)?qB(e):"*"+e}function UB(t){const e=[];let r=-1,n=0,i=0,o,a,l,d,u,f,g;const y=[];y[0]=()=>{a===void 0?a=l:a+=l},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=VB(a),a===!1))return!1;y[1]()}};function x(){const m=t[r+1];if(n===5&&m==="'"||n===6&&m==='"')return r++,l="\\"+m,y[0](),!0}for(;n!==null;)if(r++,o=t[r],!(o==="\\"&&x())){if(d=BB(o),g=Qa[n],u=g[d]||g.l||8,u===8||(n=u[0],u[1]!==void 0&&(f=y[u[1]],f&&(l=o,f()===!1))))return;if(n===7)return e}}const bE=new Map;function jB(t,e){return Vt(t)?t[e]:null}function HB(t,e){if(!Vt(t))return null;let r=bE.get(e);if(r||(r=UB(e),r&&bE.set(e,r)),!r)return null;const n=r.length;let i=t,o=0;for(;ot,GB=t=>"",QB="text",KB=t=>t.length===0?"":aB(t),YB=oB;function xE(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function XB(t){const e=Fr(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(Fr(t.named.count)||Fr(t.named.n))?Fr(t.named.count)?t.named.count:Fr(t.named.n)?t.named.n:e:e}function JB(t,e){e.count||(e.count=t),e.n||(e.n=t)}function ZB(t={}){const e=t.locale,r=XB(t),n=Vt(t.pluralRules)&&We(e)&&Xr(t.pluralRules[e])?t.pluralRules[e]:xE,i=Vt(t.pluralRules)&&We(e)&&Xr(t.pluralRules[e])?xE:void 0,o=v=>v[n(r,v.length,i)],a=t.list||[],l=v=>a[v],d=t.named||{};Fr(t.pluralIndex)&&JB(r,d);const u=v=>d[v];function f(v){const b=Xr(t.messages)?t.messages(v):Vt(t.messages)?t.messages[v]:!1;return b||(t.parent?t.parent.message(v):GB)}const g=v=>t.modifiers?t.modifiers[v]:WB,y=Ot(t.processor)&&Xr(t.processor.normalize)?t.processor.normalize:KB,x=Ot(t.processor)&&Xr(t.processor.interpolate)?t.processor.interpolate:YB,m=Ot(t.processor)&&We(t.processor.type)?t.processor.type:QB,_={list:l,named:u,plural:o,linked:(v,...b)=>{const[w,E]=b;let C="text",S="";b.length===1?Vt(w)?(S=w.modifier||S,C=w.type||C):We(w)&&(S=w||S):b.length===2&&(We(w)&&(S=w||S),We(E)&&(C=E||C));const P=f(v)(_),R=C==="vnode"&&$r(P)&&S?P[0]:P;return S?g(S)(R,C):R},message:f,type:m,interpolate:x,normalize:y,values:dn({},a,d)};return _}const eV={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 tV(t,e,r){return[...new Set([r,...$r(e)?e:Vt(e)?Object.keys(e):We(e)?[e]:[r]])]}function XA(t,e,r){const n=We(r)?r:B0,i=t;i.__localeChainCache||(i.__localeChainCache=new Map);let o=i.__localeChainCache.get(n);if(!o){o=[];let a=[r];for(;$r(a);)a=wE(o,a,e);const l=$r(e)||!Ot(e)?e:e.default?e.default:null;a=We(l)?[l]:l,$r(a)&&wE(o,a,!1),i.__localeChainCache.set(n,o)}return o}function wE(t,e,r){let n=!0;for(let i=0;i`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function oV(){return{upper:(t,e)=>e==="text"&&We(t)?t.toUpperCase():e==="vnode"&&Vt(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&We(t)?t.toLowerCase():e==="vnode"&&Vt(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&We(t)?EE(t):e==="vnode"&&Vt(t)&&"__v_isVNode"in t?EE(t.children):t}}let JA;function kE(t){JA=t}let ZA;function aV(t){ZA=t}let eS;function sV(t){eS=t}let tS=null;const CE=t=>{tS=t},lV=()=>tS;let AE=0;function cV(t={}){const e=Xr(t.onWarn)?t.onWarn:sB,r=We(t.version)?t.version:iV,n=We(t.locale)?t.locale:B0,i=$r(t.fallbackLocale)||Ot(t.fallbackLocale)||We(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:n,o=Ot(t.messages)?t.messages:{[n]:{}},a=Ot(t.datetimeFormats)?t.datetimeFormats:{[n]:{}},l=Ot(t.numberFormats)?t.numberFormats:{[n]:{}},d=dn({},t.modifiers||{},oV()),u=t.pluralRules||{},f=Xr(t.missing)?t.missing:null,g=cr(t.missingWarn)||hp(t.missingWarn)?t.missingWarn:!0,y=cr(t.fallbackWarn)||hp(t.fallbackWarn)?t.fallbackWarn:!0,x=!!t.fallbackFormat,m=!!t.unresolving,p=Xr(t.postTranslation)?t.postTranslation:null,_=Ot(t.processor)?t.processor:null,v=cr(t.warnHtmlMessage)?t.warnHtmlMessage:!0,b=!!t.escapeParameter,w=Xr(t.messageCompiler)?t.messageCompiler:JA,E=Xr(t.messageResolver)?t.messageResolver:ZA||jB,C=Xr(t.localeFallbacker)?t.localeFallbacker:eS||tV,S=Vt(t.fallbackContext)?t.fallbackContext:void 0,P=t,R=Vt(P.__datetimeFormatters)?P.__datetimeFormatters:new Map,D=Vt(P.__numberFormatters)?P.__numberFormatters:new Map,z=Vt(P.__meta)?P.__meta:{};AE++;const j={version:r,cid:AE,locale:n,fallbackLocale:i,messages:o,modifiers:d,pluralRules:u,missing:f,missingWarn:g,fallbackWarn:y,fallbackFormat:x,unresolving:m,postTranslation:p,processor:_,warnHtmlMessage:v,escapeParameter:b,messageCompiler:w,messageResolver:E,localeFallbacker:C,fallbackContext:S,onWarn:e,__meta:z};return j.datetimeFormats=a,j.numberFormats=l,j.__datetimeFormatters=R,j.__numberFormatters=D,j}function V0(t,e,r,n,i){const{missing:o,onWarn:a}=t;if(o!==null){const l=o(t,r,e,i);return We(l)?l:e}else return e}function ud(t,e,r){const n=t;n.__localeChainCache=new Map,t.localeFallbacker(t,r,e)}function Dg(t){return r=>dV(r,t)}function dV(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,SE(t,a)],[]))}else return SE(t,r)}function SE(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,iy(t,o)],[]);return t.normalize(n)}}function iy(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 l=e,d=l.m||l.modifier;return t.linked(iy(t,l.k||l.key),d?iy(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 rS=nt.__EXTEND_POINT__,mh=z0(rS),xa={INVALID_ARGUMENT:rS,INVALID_DATE_ARGUMENT:mh(),INVALID_ISO_DATE_ARGUMENT:mh(),NOT_SUPPORT_NON_STRING_MESSAGE:mh(),__EXTEND_POINT__:mh()};function Ts(t){return Ec(t,null,void 0)}const nS=t=>t;let Fl=Object.create(null);const au=t=>Vt(t)&&(t.t===0||t.type===0)&&("b"in t||"body"in t);function iS(t,e={}){let r=!1;const n=e.onError||hB;return e.onError=i=>{r=!0,n(i)},{...MB(t,e),detectError:r}}const uV=(t,e)=>{if(!We(t))throw Ts(xa.NOT_SUPPORT_NON_STRING_MESSAGE);{cr(e.warnHtmlMessage)&&e.warnHtmlMessage;const n=(e.onCacheKey||nS)(t),i=Fl[n];if(i)return i;const{code:o,detectError:a}=iS(t,e),l=new Function(`return ${o}`)();return a?l:Fl[n]=l}};function fV(t,e){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&We(t)){cr(e.warnHtmlMessage)&&e.warnHtmlMessage;const n=(e.onCacheKey||nS)(t),i=Fl[n];if(i)return i;const{ast:o,detectError:a}=iS(t,{...e,location:!1,jit:!0}),l=Dg(o);return a?l:Fl[n]=l}else{const r=t.cacheKey;if(r){const n=Fl[r];return n||(Fl[r]=Dg(t))}else return Dg(t)}}const IE=()=>"",Ia=t=>Xr(t);function $E(t,...e){const{fallbackFormat:r,postTranslation:n,unresolving:i,messageCompiler:o,fallbackLocale:a,messages:l}=t,[d,u]=oy(...e),f=cr(u.missingWarn)?u.missingWarn:t.missingWarn,g=cr(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn,y=cr(u.escapeParameter)?u.escapeParameter:t.escapeParameter,x=!!u.resolvedMessage,m=We(u.default)||cr(u.default)?cr(u.default)?o?d:()=>d:u.default:r?o?d:()=>d:"",p=r||m!=="",_=We(u.locale)?u.locale:t.locale;y&&hV(u);let[v,b,w]=x?[d,_,l[_]||{}]:oS(t,d,_,a,g,f),E=v,C=d;if(!x&&!(We(E)||au(E)||Ia(E))&&p&&(E=m,C=E),!x&&(!(We(E)||au(E)||Ia(E))||!We(b)))return i?um:d;let S=!1;const P=()=>{S=!0},R=Ia(E)?E:aS(t,d,b,E,C,P);if(S)return E;const D=vV(t,b,w,u),z=ZB(D),j=pV(t,R,z);return n?n(j,d):j}function hV(t){$r(t.list)?t.list=t.list.map(e=>We(e)?mE(e):e):Vt(t.named)&&Object.keys(t.named).forEach(e=>{We(t.named[e])&&(t.named[e]=mE(t.named[e]))})}function oS(t,e,r,n,i,o){const{messages:a,onWarn:l,messageResolver:d,localeFallbacker:u}=t,f=u(t,n,r);let g={},y,x=null;const m="translate";for(let p=0;pn;return u.locale=r,u.key=e,u}const d=a(n,mV(t,r,i,n,l,o));return d.locale=r,d.key=e,d.source=n,d}function pV(t,e,r){return e(r)}function oy(...t){const[e,r,n]=t,i={};if(!We(e)&&!Fr(e)&&!Ia(e)&&!au(e))throw Ts(xa.INVALID_ARGUMENT);const o=Fr(e)?String(e):(Ia(e),e);return Fr(r)?i.plural=r:We(r)?i.default=r:Ot(r)&&!dm(r)?i.named=r:$r(r)&&(i.list=r),Fr(n)?i.plural=n:We(n)?i.default=n:Ot(n)&&dn(i,n),[o,i]}function mV(t,e,r,n,i,o){return{locale:e,key:r,warnHtmlMessage:i,onError:a=>{throw o&&o(a),a},onCacheKey:a=>tB(e,r,a)}}function vV(t,e,r,n){const{modifiers:i,pluralRules:o,messageResolver:a,fallbackLocale:l,fallbackWarn:d,missingWarn:u,fallbackContext:f}=t,y={locale:e,modifiers:i,pluralRules:o,messages:x=>{let m=a(r,x);if(m==null&&f){const[,,p]=oS(f,x,e,l,d,u);m=a(p,x)}if(We(m)||au(m)){let p=!1;const v=aS(t,x,e,m,x,()=>{p=!0});return p?IE:v}else return Ia(m)?m:IE}};return t.processor&&(y.processor=t.processor),n.list&&(y.list=n.list),n.named&&(y.named=n.named),Fr(n.plural)&&(y.pluralIndex=n.plural),y}function OE(t,...e){const{datetimeFormats:r,unresolving:n,fallbackLocale:i,onWarn:o,localeFallbacker:a}=t,{__datetimeFormatters:l}=t,[d,u,f,g]=ay(...e),y=cr(f.missingWarn)?f.missingWarn:t.missingWarn;cr(f.fallbackWarn)?f.fallbackWarn:t.fallbackWarn;const x=!!f.part,m=We(f.locale)?f.locale:t.locale,p=a(t,i,m);if(!We(d)||d==="")return new Intl.DateTimeFormat(m,g).format(u);let _={},v,b=null;const w="datetime format";for(let S=0;S{sS.includes(d)?a[d]=r[d]:o[d]=r[d]}),We(n)?o.locale=n:Ot(n)&&(a=n),Ot(i)&&(a=i),[o.key||"",l,o,a]}function PE(t,e,r){const n=t;for(const i in r){const o=`${e}__${i}`;n.__datetimeFormatters.has(o)&&n.__datetimeFormatters.delete(o)}}function RE(t,...e){const{numberFormats:r,unresolving:n,fallbackLocale:i,onWarn:o,localeFallbacker:a}=t,{__numberFormatters:l}=t,[d,u,f,g]=sy(...e),y=cr(f.missingWarn)?f.missingWarn:t.missingWarn;cr(f.fallbackWarn)?f.fallbackWarn:t.fallbackWarn;const x=!!f.part,m=We(f.locale)?f.locale:t.locale,p=a(t,i,m);if(!We(d)||d==="")return new Intl.NumberFormat(m,g).format(u);let _={},v,b=null;const w="number format";for(let S=0;S{lS.includes(d)?a[d]=r[d]:o[d]=r[d]}),We(n)?o.locale=n:Ot(n)&&(a=n),Ot(i)&&(a=i),[o.key||"",l,o,a]}function DE(t,e,r){const n=t;for(const i in r){const o=`${e}__${i}`;n.__numberFormatters.has(o)&&n.__numberFormatters.delete(o)}}FB();const gV="9.4.1";function _V(){typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(pp().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(pp().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const cS=eV.__EXTEND_POINT__,ra=z0(cS);ra(),ra(),ra(),ra(),ra(),ra(),ra(),ra();const dS=xa.__EXTEND_POINT__,gn=z0(dS),qn={UNEXPECTED_RETURN_TYPE:dS,INVALID_ARGUMENT:gn(),MUST_BE_CALL_SETUP_TOP:gn(),NOT_INSTALLED:gn(),NOT_AVAILABLE_IN_LEGACY_MODE:gn(),REQUIRED_VALUE:gn(),INVALID_VALUE:gn(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:gn(),NOT_INSTALLED_WITH_PROVIDE:gn(),UNEXPECTED_ERROR:gn(),NOT_COMPATIBLE_LEGACY_VUE_I18N:gn(),BRIDGE_SUPPORT_VUE_2_ONLY:gn(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:gn(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:gn(),__EXTEND_POINT__:gn()};function di(t,...e){return Ec(t,null,void 0)}const ly=Ga("__translateVNode"),cy=Ga("__datetimeParts"),dy=Ga("__numberParts"),yV=Ga("__setPluralRules"),bV=Ga("__injectWithOption"),uy=Ga("__dispose");function fy(t){if(!Vt(t))return t;for(const e in t)if(N0(t,e))if(!e.includes("."))Vt(t[e])&&fy(t[e]);else{const r=e.split("."),n=r.length-1;let i=t,o=!1;for(let a=0;a{if("locale"in l&&"resource"in l){const{locale:d,resource:u}=l;d?(a[d]=a[d]||{},Dd(u,a[d])):Dd(u,a)}else We(l)&&Dd(JSON.parse(l),a)}),i==null&&o)for(const l in a)N0(a,l)&&fy(a[l]);return a}const vh=t=>!Vt(t)||$r(t);function Dd(t,e){if(vh(t)||vh(e))throw di(qn.INVALID_VALUE);for(const r in t)N0(t,r)&&(vh(t[r])||vh(e[r])?e[r]=t[r]:Dd(t[r],e[r]))}function xV(t){return t.type}function wV(t,e,r){let n=Vt(e.messages)?e.messages:{};"__i18nGlobal"in r&&(n=uS(t.locale.value,{messages:n,__i18n:r.__i18nGlobal}));const i=Object.keys(n);i.length&&i.forEach(o=>{t.mergeLocaleMessage(o,n[o])});{if(Vt(e.datetimeFormats)){const o=Object.keys(e.datetimeFormats);o.length&&o.forEach(a=>{t.mergeDateTimeFormat(a,e.datetimeFormats[a])})}if(Vt(e.numberFormats)){const o=Object.keys(e.numberFormats);o.length&&o.forEach(a=>{t.mergeNumberFormat(a,e.numberFormats[a])})}}}function LE(t){return $e(xu,null,t,0)}let ME=0;function FE(t){return(e,r,n,i)=>t(r,n,Ki()||void 0,i)}function fS(t={},e){const{__root:r,__injectWithOption:n}=t,i=r===void 0;let o=cr(t.inheritLocale)?t.inheritLocale:!0;const a=Le(r&&o?r.locale.value:We(t.locale)?t.locale:B0),l=Le(r&&o?r.fallbackLocale.value:We(t.fallbackLocale)||$r(t.fallbackLocale)||Ot(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:a.value),d=Le(uS(a.value,t)),u=Le(Ot(t.datetimeFormats)?t.datetimeFormats:{[a.value]:{}}),f=Le(Ot(t.numberFormats)?t.numberFormats:{[a.value]:{}});let g=r?r.missingWarn:cr(t.missingWarn)||hp(t.missingWarn)?t.missingWarn:!0,y=r?r.fallbackWarn:cr(t.fallbackWarn)||hp(t.fallbackWarn)?t.fallbackWarn:!0,x=r?r.fallbackRoot:cr(t.fallbackRoot)?t.fallbackRoot:!0,m=!!t.fallbackFormat,p=Xr(t.missing)?t.missing:null,_=Xr(t.missing)?FE(t.missing):null,v=Xr(t.postTranslation)?t.postTranslation:null,b=r?r.warnHtmlMessage:cr(t.warnHtmlMessage)?t.warnHtmlMessage:!0,w=!!t.escapeParameter;const E=r?r.modifiers:Ot(t.modifiers)?t.modifiers:{};let C=t.pluralRules||r&&r.pluralRules,S;S=(()=>{i&&CE(null);const W={version:gV,locale:a.value,fallbackLocale:l.value,messages:d.value,modifiers:E,pluralRules:C,missing:_===null?void 0:_,missingWarn:g,fallbackWarn:y,fallbackFormat:m,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:b,escapeParameter:w,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};W.datetimeFormats=u.value,W.numberFormats=f.value,W.__datetimeFormatters=Ot(S)?S.__datetimeFormatters:void 0,W.__numberFormatters=Ot(S)?S.__numberFormatters:void 0;const B=cV(W);return i&&CE(B),B})(),ud(S,a.value,l.value);function R(){return[a.value,l.value,d.value,u.value,f.value]}const D=At({get:()=>a.value,set:W=>{a.value=W,S.locale=a.value}}),z=At({get:()=>l.value,set:W=>{l.value=W,S.fallbackLocale=l.value,ud(S,a.value,W)}}),j=At(()=>d.value),q=At(()=>u.value),J=At(()=>f.value);function be(){return Xr(v)?v:null}function Oe(W){v=W,S.postTranslation=W}function ge(){return p}function ke(W){W!==null&&(_=FE(W)),p=W,S.missing=_}const Se=(W,B,xe,Ie,ze,Ye)=>{R();let dt;try{i||(S.fallbackContext=r?lV():void 0),dt=W(S)}finally{i||(S.fallbackContext=void 0)}if(Fr(dt)&&dt===um){const[ht,sr]=B();return r&&x?Ie(r):ze(ht)}else{if(Ye(dt))return dt;throw di(qn.UNEXPECTED_RETURN_TYPE)}};function Be(...W){return Se(B=>Reflect.apply($E,null,[B,...W]),()=>oy(...W),"translate",B=>Reflect.apply(B.t,B,[...W]),B=>B,B=>We(B))}function Re(...W){const[B,xe,Ie]=W;if(Ie&&!Vt(Ie))throw di(qn.INVALID_ARGUMENT);return Be(B,xe,dn({resolvedMessage:!0},Ie||{}))}function se(...W){return Se(B=>Reflect.apply(OE,null,[B,...W]),()=>ay(...W),"datetime format",B=>Reflect.apply(B.d,B,[...W]),()=>TE,B=>We(B))}function we(...W){return Se(B=>Reflect.apply(RE,null,[B,...W]),()=>sy(...W),"number format",B=>Reflect.apply(B.n,B,[...W]),()=>TE,B=>We(B))}function Pe(W){return W.map(B=>We(B)||Fr(B)||cr(B)?LE(String(B)):B)}const je={normalize:Pe,interpolate:W=>W,type:"vnode"};function Ge(...W){return Se(B=>{let xe;const Ie=B;try{Ie.processor=je,xe=Reflect.apply($E,null,[Ie,...W])}finally{Ie.processor=null}return xe},()=>oy(...W),"translate",B=>B[ly](...W),B=>[LE(B)],B=>$r(B))}function ee(...W){return Se(B=>Reflect.apply(RE,null,[B,...W]),()=>sy(...W),"number format",B=>B[dy](...W),()=>[],B=>We(B)||$r(B))}function le(...W){return Se(B=>Reflect.apply(OE,null,[B,...W]),()=>ay(...W),"datetime format",B=>B[cy](...W),()=>[],B=>We(B)||$r(B))}function ue(W){C=W,S.pluralRules=C}function De(W,B){const xe=We(B)?B:a.value,Ie=k(xe);return S.messageResolver(Ie,W)!==null}function Ke(W){let B=null;const xe=XA(S,l.value,a.value);for(let Ie=0;Ie{o&&(a.value=W,S.locale=W,ud(S,a.value,l.value))}),Rt(r.fallbackLocale,W=>{o&&(l.value=W,S.fallbackLocale=W,ud(S,a.value,l.value))}));const ie={id:ME,locale:D,fallbackLocale:z,get inheritLocale(){return o},set inheritLocale(W){o=W,W&&r&&(a.value=r.locale.value,l.value=r.fallbackLocale.value,ud(S,a.value,l.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:j,get modifiers(){return E},get pluralRules(){return C||{}},get isGlobal(){return i},get missingWarn(){return g},set missingWarn(W){g=W,S.missingWarn=g},get fallbackWarn(){return y},set fallbackWarn(W){y=W,S.fallbackWarn=y},get fallbackRoot(){return x},set fallbackRoot(W){x=W},get fallbackFormat(){return m},set fallbackFormat(W){m=W,S.fallbackFormat=m},get warnHtmlMessage(){return b},set warnHtmlMessage(W){b=W,S.warnHtmlMessage=W},get escapeParameter(){return w},set escapeParameter(W){w=W,S.escapeParameter=W},t:Be,getLocaleMessage:k,setLocaleMessage:A,mergeLocaleMessage:M,getPostTranslationHandler:be,setPostTranslationHandler:Oe,getMissingHandler:ge,setMissingHandler:ke,[yV]:ue};return ie.datetimeFormats=q,ie.numberFormats=J,ie.rt=Re,ie.te=De,ie.tm=it,ie.d=se,ie.n=we,ie.getDateTimeFormat=U,ie.setDateTimeFormat=G,ie.mergeDateTimeFormat=ae,ie.getNumberFormat=Ae,ie.setNumberFormat=fe,ie.mergeNumberFormat=_e,ie[bV]=n,ie[ly]=Ge,ie[cy]=le,ie[dy]=ee,ie}const U0={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function TV({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((n,i)=>[...n,...i.type===$t?i.children:[i]],[]):e.reduce((r,n)=>{const i=t[n];return i&&(r[n]=i()),r},{})}function hS(t){return $t}const EV=Dt({name:"i18n-t",props:dn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>Fr(t)||!isNaN(t)}},U0),setup(t,e){const{slots:r,attrs:n}=e,i=t.i18n||Bn({useScope:t.scope,__useComponent:!0});return()=>{const o=Object.keys(r).filter(g=>g!=="_"),a={};t.locale&&(a.locale=t.locale),t.plural!==void 0&&(a.plural=We(t.plural)?+t.plural:t.plural);const l=TV(e,o),d=i[ly](t.keypath,l,a),u=dn({},n),f=We(t.tag)||Vt(t.tag)?t.tag:hS();return ji(f,u,d)}}}),NE=EV;function kV(t){return $r(t)&&!We(t[0])}function pS(t,e,r,n){const{slots:i,attrs:o}=e;return()=>{const a={part:!0};let l={};t.locale&&(a.locale=t.locale),We(t.format)?a.key=t.format:Vt(t.format)&&(We(t.format.key)&&(a.key=t.format.key),l=Object.keys(t.format).reduce((y,x)=>r.includes(x)?dn({},y,{[x]:t.format[x]}):y,{}));const d=n(t.value,a,l);let u=[a.key];$r(d)?u=d.map((y,x)=>{const m=i[y.type],p=m?m({[y.type]:y.value,index:x,parts:d}):[y.value];return kV(p)&&(p[0].key=`${y.type}-${x}`),p}):We(d)&&(u=[d]);const f=dn({},o),g=We(t.tag)||Vt(t.tag)?t.tag:hS();return ji(g,f,u)}}const CV=Dt({name:"i18n-n",props:dn({value:{type:Number,required:!0},format:{type:[String,Object]}},U0),setup(t,e){const r=t.i18n||Bn({useScope:"parent",__useComponent:!0});return pS(t,e,lS,(...n)=>r[dy](...n))}}),zE=CV,AV=Dt({name:"i18n-d",props:dn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},U0),setup(t,e){const r=t.i18n||Bn({useScope:"parent",__useComponent:!0});return pS(t,e,sS,(...n)=>r[cy](...n))}}),qE=AV;function SV(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 IV(t){const e=a=>{const{instance:l,modifiers:d,value:u}=a;if(!l||!l.$)throw di(qn.UNEXPECTED_ERROR);const f=SV(t,l.$),g=BE(u);return[Reflect.apply(f.t,f,[...VE(g)]),f]};return{created:(a,l)=>{const[d,u]=e(l);ry&&t.global===u&&(a.__i18nWatcher=Rt(u.locale,()=>{l.instance&&l.instance.$forceUpdate()})),a.__composer=u,a.textContent=d},unmounted:a=>{ry&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:l})=>{if(a.__composer){const d=a.__composer,u=BE(l);a.textContent=Reflect.apply(d.t,d,[...VE(u)])}},getSSRProps:a=>{const[l]=e(a);return{textContent:l}}}}function BE(t){if(We(t))return{path:t};if(Ot(t)){if(!("path"in t))throw di(qn.REQUIRED_VALUE,"path");return t}else throw di(qn.INVALID_VALUE)}function VE(t){const{path:e,locale:r,args:n,choice:i,plural:o}=t,a={},l=n||{};return We(r)&&(a.locale=r),Fr(i)&&(a.plural=i),Fr(o)&&(a.plural=o),[e,l,a]}function $V(t,e,...r){const n=Ot(r[0])?r[0]:{},i=!!n.useI18nComponentName;(cr(n.globalInstall)?n.globalInstall:!0)&&([i?"i18n":NE.name,"I18nT"].forEach(a=>t.component(a,NE)),[zE.name,"I18nN"].forEach(a=>t.component(a,zE)),[qE.name,"I18nD"].forEach(a=>t.component(a,qE))),t.directive("t",IV(e))}const OV=Ga("global-vue-i18n");function PV(t={},e){const r=cr(t.globalInjection)?t.globalInjection:!0,n=!0,i=new Map,[o,a]=RV(t),l=Ga("");function d(g){return i.get(g)||null}function u(g,y){i.set(g,y)}function f(g){i.delete(g)}{const g={get mode(){return"composition"},get allowComposition(){return n},async install(y,...x){if(y.__VUE_I18N_SYMBOL__=l,y.provide(y.__VUE_I18N_SYMBOL__,g),Ot(x[0])){const _=x[0];g.__composerExtend=_.__composerExtend,g.__vueI18nExtend=_.__vueI18nExtend}let m=null;r&&(m=BV(y,g.global)),$V(y,g,...x);const p=y.unmount;y.unmount=()=>{m&&m(),g.dispose(),p()}},get global(){return a},dispose(){o.stop()},__instances:i,__getInstance:d,__setInstance:u,__deleteInstance:f};return g}}function Bn(t={}){const e=Ki();if(e==null)throw di(qn.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw di(qn.NOT_INSTALLED);const r=DV(e),n=MV(r),i=xV(e),o=LV(t,i);if(o==="global")return wV(n,t,i),n;if(o==="parent"){let d=FV(r,e,t.__useComponent);return d==null&&(d=n),d}const a=r;let l=a.__getInstance(e);if(l==null){const d=dn({},t);"__i18n"in i&&(d.__i18n=i.__i18n),n&&(d.__root=n),l=fS(d),a.__composerExtend&&(l[uy]=a.__composerExtend(l)),zV(a,e,l),a.__setInstance(e,l)}return l}function RV(t,e,r){const n=Xb();{const i=n.run(()=>fS(t));if(i==null)throw di(qn.UNEXPECTED_ERROR);return[n,i]}}function DV(t){{const e=cn(t.isCE?OV:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw di(t.isCE?qn.NOT_INSTALLED_WITH_PROVIDE:qn.UNEXPECTED_ERROR);return e}}function LV(t,e){return dm(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function MV(t){return t.mode==="composition"?t.global:t.global.__composer}function FV(t,e,r=!1){let n=null;const i=e.root;let o=NV(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 NV(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function zV(t,e,r){Qr(()=>{},e),Wa(()=>{const n=r;t.__deleteInstance(e);const i=n[uy];i&&(i(),delete n[uy])},e)}const qV=["locale","fallbackLocale","availableLocales"],UE=["t","rt","d","n","tm","te"];function BV(t,e){const r=Object.create(null);return qV.forEach(i=>{const o=Object.getOwnPropertyDescriptor(e,i);if(!o)throw di(qn.UNEXPECTED_ERROR);const a=Xt(o.value)?{get(){return o.value.value},set(l){o.value.value=l}}:{get(){return o.get&&o.get()}};Object.defineProperty(r,i,a)}),t.config.globalProperties.$i18n=r,UE.forEach(i=>{const o=Object.getOwnPropertyDescriptor(e,i);if(!o||!o.value)throw di(qn.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${i}`,o)}),()=>{delete t.config.globalProperties.$i18n,UE.forEach(i=>{delete t.config.globalProperties[`$${i}`]})}}_V();__INTLIFY_JIT_COMPILATION__?kE(fV):kE(uV);aV(HB);sV(XA);function VV(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 gt=VV();class UV{constructor(e,r){Kt(this,"startedAt");Kt(this,"callback");Kt(this,"delay");Kt(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 jV=Dt({__name:"PToaster",props:{message:{type:String,required:!0},type:{type:String,default:""},duration:{type:[Number,Boolean],default:3e3},onClick:{type:Function,default:()=>{}}},setup(t){const e=t,r=Le(!0),n=e.duration!==!1?new UV(l,e.duration):null;function i(){e.onClick.apply(null,arguments),l()}function o(d){n&&(d?n.pause():n.resume())}function a(){n&&n.stop()}function l(){a(),r.value=!1}return(d,u)=>(Y(),or(p0,{to:"body"},[r.value?(Y(),te("div",{key:0,class:Dn(["v-toast",t.type]),onMouseover:u[0]||(u[0]=f=>o(!0)),onMouseleave:u[1]||(u[1]=f=>o(!1)),onClick:i,role:"alert"},Me(t.message),35)):kt("",!0)]))}}),Hs=(t,e="")=>{S_(ji(jV,{message:t,type:e}),document.createElement("div"))};function mS(){return window.location.host}function HV(){return{"Content-Type":"multipart/form-data","c-id":localStorage.getItem("client_id")??""}}function WV(){return`${window.location.protocol==="http:"?"ws":"wss"}://${mS()}`}function ac(){return`${window.location.protocol}//${mS()}`}const Lg="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",GV=()=>{const t=crypto.getRandomValues(new Uint8Array(16));t[6]=t[6]&15|64,t[8]=t[8]&63|128;const e=QV(t).toLowerCase();return`${e.substring(0,8)}-${e.substring(8,12)}-${e.substring(12,16)}-${e.substring(16,20)}-${e.substring(20)}`},su=()=>{const t=YV("0123456789abcdef",Lg,GV().toLowerCase().replace(/-/g,"")),e=Math.ceil(Math.log(2**128)/Math.log(Lg.length));return t.padStart(e,Lg[0])},QV=t=>[...t].map(e=>e.toString(16).padStart(2,"0")).join(""),KV=t=>{const e=new Uint8Array(t.length);for(let r=0;r/[\u3400-\u9FBF]/.test(t);function fm(t){return t?btoa(encodeURIComponent(t)):""}function g1e(t){try{return decodeURIComponent(atob(t))}catch{return t}}function YV(t,e,r){const n=[],i=t.length,o=e.length;let a,l,d,u=r.length,f="";for(a=0;a=o?(n[d++]=parseInt((l/o).toString(),10),l=l%o):d>0&&(n[d++]=0);u=d,f=e.slice(l,l+1).concat(f)}while(d!==0);return f}const XV=/(\b(((https?|ftp):\/\/)|www.)[A-Z0-9+&@#\/%?=~_|!:,.;-]*[-A-Z0-9+&@#\/%=~_|])/gim,JV=/(\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,6})/gim;function ZV(t){let e=eU(t);return e=e.replace(XV,'$1'),e=e.replace(JV,'$1'),e.replace(/\n\r?/g,"
")}function eU(t){return t.replace(/[\u00A0-\u9999<>&'"]/gim,function(e){return"&#"+e.charCodeAt(0)+";"})}function _1e(t){const e=/!\[.*?\]\(.*?\)|!\[.*?\]\[.*?\]|/gi;return t.replace(e,"🖼").replace(` +`,"").replace(/^\s*/,"")}var _o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ws(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function tU(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 vS={exports:{}};const rU={},nU=Object.freeze(Object.defineProperty({__proto__:null,default:rU},Symbol.toStringTag,{value:"Module"})),iU=tU(nU);(function(t){var e={cipher:{},hash:{},keyexchange:{},mode:{},misc:{},codec:{},exception:{corrupt:function(m){this.toString=function(){return"CORRUPT: "+this.message},this.message=m},invalid:function(m){this.toString=function(){return"INVALID: "+this.message},this.message=m},bug:function(m){this.toString=function(){return"BUG: "+this.message},this.message=m},notReady:function(m){this.toString=function(){return"NOT READY: "+this.message},this.message=m}}};e.cipher.aes=function(m){this.s[0][0][0]||this.O();var p,_,v,b,w=this.s[0][4],E=this.s[1];p=m.length;var C=1;if(p!==4&&p!==6&&p!==8)throw new e.exception.invalid("invalid aes key size");for(this.b=[v=m.slice(0),b=[]],m=p;m<4*p+28;m++)_=v[m-1],(m%p===0||p===8&&m%p===4)&&(_=w[_>>>24]<<24^w[_>>16&255]<<16^w[_>>8&255]<<8^w[_&255],m%p===0&&(_=_<<8^_>>>24^C<<24,C=C<<1^283*(C>>7))),v[m]=v[m-p]^_;for(p=0;m;p++,m--)_=v[p&3?m:m-4],b[p]=4>=m||4>p?_:E[0][w[_>>>24]]^E[1][w[_>>16&255]]^E[2][w[_>>8&255]]^E[3][w[_&255]]},e.cipher.aes.prototype={encrypt:function(m){return r(this,m,0)},decrypt:function(m){return r(this,m,1)},s:[[[],[],[],[],[]],[[],[],[],[],[]]],O:function(){var m=this.s[0],p=this.s[1],_=m[4],v=p[4],b,w,E,C=[],S=[],P,R,D,z;for(b=0;256>b;b++)S[(C[b]=b<<1^283*(b>>7))^b]=b;for(w=E=0;!_[w];w^=P||1,E=S[E]||1)for(D=E^E<<1^E<<2^E<<3^E<<4,D=D>>8^D&255^99,_[w]=D,v[D]=w,R=C[b=C[P=C[w]]],z=16843009*R^65537*b^257*P^16843008*w,R=257*C[D]^16843008*D,b=0;4>b;b++)m[b][w]=R=R<<24^R>>>8,p[b][D]=z=z<<24^z>>>8;for(b=0;5>b;b++)m[b]=m[b].slice(0),p[b]=p[b].slice(0)}};function r(m,p,_){if(p.length!==4)throw new e.exception.invalid("invalid aes block size");var v=m.b[_],b=p[0]^v[0],w=p[_?3:1]^v[1],E=p[2]^v[2];p=p[_?1:3]^v[3];var C,S,P,R=v.length/4-2,D,z=4,j=[0,0,0,0];C=m.s[_],m=C[0];var q=C[1],J=C[2],be=C[3],Oe=C[4];for(D=0;D>>24]^q[w>>16&255]^J[E>>8&255]^be[p&255]^v[z],S=m[w>>>24]^q[E>>16&255]^J[p>>8&255]^be[b&255]^v[z+1],P=m[E>>>24]^q[p>>16&255]^J[b>>8&255]^be[w&255]^v[z+2],p=m[p>>>24]^q[b>>16&255]^J[w>>8&255]^be[E&255]^v[z+3],z+=4,b=C,w=S,E=P;for(D=0;4>D;D++)j[_?3&-D:D]=Oe[b>>>24]<<24^Oe[w>>16&255]<<16^Oe[E>>8&255]<<8^Oe[p&255]^v[z++],C=b,b=w,w=E,E=p,p=C;return j}e.bitArray={bitSlice:function(m,p,_){return m=e.bitArray.$(m.slice(p/32),32-(p&31)).slice(1),_===void 0?m:e.bitArray.clamp(m,_-p)},extract:function(m,p,_){var v=Math.floor(-p-_&31);return((p+_-1^p)&-32?m[p/32|0]<<32-v^m[p/32+1|0]>>>v:m[p/32|0]>>>v)&(1<<_)-1},concat:function(m,p){if(m.length===0||p.length===0)return m.concat(p);var _=m[m.length-1],v=e.bitArray.getPartial(_);return v===32?m.concat(p):e.bitArray.$(p,v,_|0,m.slice(0,m.length-1))},bitLength:function(m){var p=m.length;return p===0?0:32*(p-1)+e.bitArray.getPartial(m[p-1])},clamp:function(m,p){if(32*m.length>p-1,1)),m},partial:function(m,p,_){return m===32?p:(_?p|0:p<<32-m)+1099511627776*m},getPartial:function(m){return Math.round(m/1099511627776)||32},equal:function(m,p){if(e.bitArray.bitLength(m)!==e.bitArray.bitLength(p))return!1;var _=0,v;for(v=0;v>>p),_=m[b]<<32-p;return b=m.length?m[m.length-1]:0,m=e.bitArray.getPartial(b),v.push(e.bitArray.partial(p+m&31,32>>24|_>>>8&65280|(_&65280)<<8|_<<24;return m}},e.codec.utf8String={fromBits:function(m){var p="",_=e.bitArray.bitLength(m),v,b;for(v=0;v<_/8;v++)!(v&3)&&(b=m[v/4]),p+=String.fromCharCode(b>>>8>>>8>>>8),b<<=8;return decodeURIComponent(escape(p))},toBits:function(m){m=unescape(encodeURIComponent(m));var p=[],_,v=0;for(_=0;_>>E)>>>b),ER){if(!p)try{return e.codec.base32hex.toBits(m)}catch{}throw new e.exception.invalid("this isn't "+D+"!")}C>b?(C-=b,w.push(P^R>>>C),P=R<<_-C):(C+=v,P^=R<<_-C)}return C&56&&w.push(e.bitArray.partial(C&56,P,1)),w}},e.codec.base32hex={fromBits:function(m,p){return e.codec.base32.fromBits(m,p,1)},toBits:function(m){return e.codec.base32.toBits(m,1)}},e.codec.base64={B:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fromBits:function(m,p,_){var v="",b=0,w=e.codec.base64.B,E=0,C=e.bitArray.bitLength(m);for(_&&(w=w.substr(0,62)+"-_"),_=0;6*v.length>>b)>>>26),6>b?(E=m[_]<<6-b,b+=26,_++):(E<<=6,b-=6);for(;v.length&3&&!p;)v+="=";return v},toBits:function(m,p){m=m.replace(/\s|=/g,"");var _=[],v,b=0,w=e.codec.base64.B,E=0,C;for(p&&(w=w.substr(0,62)+"-_"),v=0;vC)throw new e.exception.invalid("this isn't base64!");26>>b),E=C<<32-b):(b+=6,E^=C<<32-b)}return b&56&&_.push(e.bitArray.partial(b&56,E,1)),_}},e.codec.base64url={fromBits:function(m){return e.codec.base64.fromBits(m,1,1)},toBits:function(m){return e.codec.base64.toBits(m,1)}},e.hash.sha256=function(m){this.b[0]||this.O(),m?(this.F=m.F.slice(0),this.A=m.A.slice(0),this.l=m.l):this.reset()},e.hash.sha256.hash=function(m){return new e.hash.sha256().update(m).finalize()},e.hash.sha256.prototype={blockSize:512,reset:function(){return this.F=this.Y.slice(0),this.A=[],this.l=0,this},update:function(m){typeof m=="string"&&(m=e.codec.utf8String.toBits(m));var p,_=this.A=e.bitArray.concat(this.A,m);if(p=this.l,m=this.l=p+e.bitArray.bitLength(m),9007199254740991p;_++){for(b=!0,v=2;v*v<=_;v++)if(_%v===0){b=!1;break}b&&(8>p&&(this.Y[p]=m(Math.pow(_,.5))),this.b[p]=m(Math.pow(_,1/3)),p++)}}};function n(m,p){var _,v,b,w=m.F,E=m.b,C=w[0],S=w[1],P=w[2],R=w[3],D=w[4],z=w[5],j=w[6],q=w[7];for(_=0;64>_;_++)16>_?v=p[_]:(v=p[_+1&15],b=p[_+14&15],v=p[_&15]=(v>>>7^v>>>18^v>>>3^v<<25^v<<14)+(b>>>17^b>>>19^b>>>10^b<<15^b<<13)+p[_&15]+p[_+9&15]|0),v=v+q+(D>>>6^D>>>11^D>>>25^D<<26^D<<21^D<<7)+(j^D&(z^j))+E[_],q=j,j=z,z=D,D=R+v|0,R=P,P=S,S=C,C=v+(S&P^R&(S^P))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;w[0]=w[0]+C|0,w[1]=w[1]+S|0,w[2]=w[2]+P|0,w[3]=w[3]+R|0,w[4]=w[4]+D|0,w[5]=w[5]+z|0,w[6]=w[6]+j|0,w[7]=w[7]+q|0}e.mode.ccm={name:"ccm",G:[],listenProgress:function(m){e.mode.ccm.G.push(m)},unListenProgress:function(m){m=e.mode.ccm.G.indexOf(m),-1S)throw new e.exception.invalid("ccm: iv must be at least 7 bytes");for(w=2;4>w&&P>>>8*w;w++);return w<15-S&&(w=15-S),_=C.clamp(_,8*(15-w)),p=e.mode.ccm.V(m,p,_,v,b,w),E=e.mode.ccm.C(m,E,_,p,b,w),C.concat(E.data,E.tag)},decrypt:function(m,p,_,v,b){b=b||64,v=v||[];var w=e.bitArray,E=w.bitLength(_)/8,P=w.bitLength(p),C=w.clamp(p,P-b),S=w.bitSlice(p,P-b),P=(P-b)/8;if(7>E)throw new e.exception.invalid("ccm: iv must be at least 7 bytes");for(p=2;4>p&&P>>>8*p;p++);if(p<15-E&&(p=15-E),_=w.clamp(_,8*(15-p)),C=e.mode.ccm.C(m,C,_,S,b,p),m=e.mode.ccm.V(m,C.data,_,v,b,p),!w.equal(C.tag,m))throw new e.exception.corrupt("ccm: tag doesn't match");return C.data},na:function(m,p,_,v,b,w){var E=[],C=e.bitArray,S=C.i;if(v=[C.partial(8,(p.length?64:0)|v-2<<2|w-1)],v=C.concat(v,_),v[3]|=b,v=m.encrypt(v),p.length)for(_=C.bitLength(p)/8,65279>=_?E=[C.partial(16,_)]:4294967295>=_&&(E=C.concat([C.partial(16,65534)],[_])),E=C.concat(E,p),p=0;pb||16R&&(e.mode.ccm.fa(E/S),R+=D),_[3]++,b=m.encrypt(_),p[E]^=b[0],p[E+1]^=b[1],p[E+2]^=b[2],p[E+3]^=b[3];return{tag:v,data:C.clamp(p,P)}}},e.mode.ocb2={name:"ocb2",encrypt:function(m,p,_,v,b,w){if(e.bitArray.bitLength(_)!==128)throw new e.exception.invalid("ocb iv must be 128 bits");var E,C=e.mode.ocb2.S,S=e.bitArray,P=S.i,R=[0,0,0,0];_=C(m.encrypt(_));var D,z=[];for(v=v||[],b=b||64,E=0;E+4b.bitLength(_)&&(C=w(C,v(C)),_=b.concat(_,[-2147483648,0,0,0])),E=w(E,_),m.encrypt(w(v(w(C,v(C))),E))},S:function(m){return[m[0]<<1^m[1]>>>31,m[1]<<1^m[2]>>>31,m[2]<<1^m[3]>>>31,m[3]<<1^135*(m[0]>>>31)]}},e.mode.gcm={name:"gcm",encrypt:function(m,p,_,v,b){var w=p.slice(0);return p=e.bitArray,v=v||[],m=e.mode.gcm.C(!0,m,w,v,_,b||128),p.concat(m.data,m.tag)},decrypt:function(m,p,_,v,b){var w=p.slice(0),E=e.bitArray,C=E.bitLength(w);if(b=b||128,v=v||[],b<=C?(p=E.bitSlice(w,C-b),w=E.bitSlice(w,0,C-b)):(p=w,w=[]),m=e.mode.gcm.C(!1,m,w,v,_,b),!E.equal(m.tag,p))throw new e.exception.corrupt("gcm: tag doesn't match");return m.data},ka:function(m,p){var _,v,b,w,E,C=e.bitArray.i;for(b=[0,0,0,0],w=p.slice(0),_=0;128>_;_++){for((v=(m[Math.floor(_/32)]&1<<31-_%32)!==0)&&(b=C(b,w)),E=(w[3]&1)!==0,v=3;0>>1|(w[v-1]&1)<<31;w[0]>>>=1,E&&(w[0]^=-520093696)}return b},j:function(m,p,_){var v,b=_.length;for(p=p.slice(0),v=0;vb&&(m=p.hash(m)),v=0;vv||0>_)throw new e.exception.invalid("invalid params to pbkdf2");typeof m=="string"&&(m=e.codec.utf8String.toBits(m)),typeof p=="string"&&(p=e.codec.utf8String.toBits(p)),b=b||e.misc.hmac,m=new b(m);var w,E,C,S,P=[],R=e.bitArray;for(S=1;32*P.length<(v||1);S++){for(b=w=m.encrypt(R.concat(p,[S])),E=1;E<_;E++)for(w=m.encrypt(w),C=0;CE;E++)b.push(4294967296*Math.random()|0);for(E=0;E=1<this.o&&(this.o=w),this.P++,this.b=e.hash.sha256.hash(this.b.concat(b)),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[E].update([v,this.N++,2,p,w,m.length].concat(m))}break;case"string":p===void 0&&(p=m.length),this.c[E].update([v,this.N++,3,p,w,m.length]),this.c[E].update(m);break;default:S=1}if(S)throw new e.exception.bug("random: addEntropy only supports number, array of numbers or string");this.m[E]+=p,this.f+=p,C===this.u&&(this.isReady()!==this.u&&i("seeded",Math.max(this.o,this.f)),i("progress",this.getProgress()))},isReady:function(m){return m=this.T[m!==void 0?m:this.M],this.o&&this.o>=m?this.m[0]>this.ba&&new Date().valueOf()>this.Z?this.J|this.I:this.I:this.f>=m?this.J|this.u:this.u},getProgress:function(m){return m=this.T[m||this.M],this.o>=m||this.f>m?1:this.f/m},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(m,p){this.K[m][this.ga++]=p},removeEventListener:function(m,p){var _,v,b=this.K[m],w=[];for(v in b)b.hasOwnProperty(v)&&b[v]===p&&w.push(v);for(_=0;_p&&(m.h[p]=m.h[p]+1|0,!m.h[p]);p++);return m.L.encrypt(m.h)}function d(m,p){return function(){p.apply(m,arguments)}}e.random=new e.prng(6);e:try{var u,f,g,y;if(y=t.exports){var x;try{x=iU}catch{x=null}y=f=x}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(g=new Uint32Array(32),window.crypto&&window.crypto.getRandomValues)window.crypto.getRandomValues(g);else if(window.msCrypto&&window.msCrypto.getRandomValues)window.msCrypto.getRandomValues(g);else break e;e.random.addEntropy(g,1024,"crypto['getRandomValues']")}}catch(m){typeof window<"u"&&window.console&&(console.log("There was an error collecting entropy from the browser:"),console.log(m))}e.json={defaults:{v:1,iter:1e4,ks:128,ts:64,mode:"ccm",adata:"",cipher:"aes"},ja:function(m,p,_,v){_=_||{},v=v||{};var b=e.json,w=b.g({iv:e.random.randomWords(4,0)},b.defaults),E;if(b.g(w,_),_=w.adata,typeof w.salt=="string"&&(w.salt=e.codec.base64.toBits(w.salt)),typeof w.iv=="string"&&(w.iv=e.codec.base64.toBits(w.iv)),!e.mode[w.mode]||!e.cipher[w.cipher]||typeof m=="string"&&100>=w.iter||w.ts!==64&&w.ts!==96&&w.ts!==128||w.ks!==128&&w.ks!==192&&w.ks!==256||2>w.iv.length||4=p.iter||p.ts!==64&&p.ts!==96&&p.ts!==128||p.ks!==128&&p.ks!==192&&p.ks!==256||!p.iv||2>p.iv.length||49007199254740991)throw new jt.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=jt.bitArray.concat(e,[jt.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],l=i[1],d=i[2],u=i[3],f=i[4],g=i[5],y=i[6],x=i[7],m=i[8],p=i[9],_=i[10],v=i[11],b=i[12],w=i[13],E=i[14],C=i[15],S;if(typeof Uint32Array<"u"){S=Array(160);for(let Pe=0;Pe<32;Pe++)S[Pe]=t[Pe]}else S=t;let P=a,R=l,D=d,z=u,j=f,q=g,J=y,be=x,Oe=m,ge=p,ke=_,Se=v,Be=b,Re=w,se=E,we=C;for(e=0;e<80;e++){if(e<16)r=S[e*2],n=S[e*2+1];else{const G=S[(e-15)*2],ae=S[(e-15)*2+1],Ae=(ae<<31|G>>>1)^(ae<<24|G>>>8)^G>>>7,fe=(G<<31|ae>>>1)^(G<<24|ae>>>8)^(G<<25|ae>>>7),_e=S[(e-2)*2],ie=S[(e-2)*2+1],W=(ie<<13|_e>>>19)^(_e<<3|ie>>>29)^_e>>>6,B=(_e<<13|ie>>>19)^(ie<<3|_e>>>29)^(_e<<26|ie>>>6),xe=S[(e-7)*2],Ie=S[(e-7)*2+1],ze=S[(e-16)*2],Ye=S[(e-16)*2+1];n=fe+Ie,r=Ae+xe+(n>>>0>>0?1:0),n+=B,r+=W+(n>>>0>>0?1:0),n+=Ye,r+=ze+(n>>>0>>0?1:0)}S[e*2]=r|=0,S[e*2+1]=n|=0;const Pe=Oe&ke^~Oe&Be,Ce=ge&Se^~ge&Re,je=P&D^P&j^D&j,Ge=R&z^R&q^z&q,ee=(R<<4|P>>>28)^(P<<30|R>>>2)^(P<<25|R>>>7),le=(P<<4|R>>>28)^(R<<30|P>>>2)^(R<<25|P>>>7),ue=(ge<<18|Oe>>>14)^(ge<<14|Oe>>>18)^(Oe<<23|ge>>>9),De=(Oe<<18|ge>>>14)^(Oe<<14|ge>>>18)^(ge<<23|Oe>>>9),Ke=o[e*2],it=o[e*2+1];let k=we+De,A=se+ue+(k>>>0>>0?1:0);k+=Ce,A+=Pe+(k>>>0>>0?1:0),k+=it,A+=Ke+(k>>>0>>0?1:0),k=k+n|0,A+=r+(k>>>0>>0?1:0);const M=le+Ge,U=ee+je+(M>>>0>>0?1:0);se=Be,we=Re,Be=ke,Re=Se,ke=Oe,Se=ge,ge=be+k|0,Oe=J+A+(ge>>>0>>0?1:0)|0,J=j,be=q,j=D,q=z,D=P,z=R,R=k+M|0,P=A+U+(R>>>0>>0?1:0)|0}l=i[1]=l+R|0,i[0]=a+P+(l>>>0>>0?1:0)|0,u=i[3]=u+z|0,i[2]=d+D+(u>>>0>>0?1:0)|0,g=i[5]=g+q|0,i[4]=f+j+(g>>>0>>0?1:0)|0,x=i[7]=x+be|0,i[6]=y+J+(x>>>0>>0?1:0)|0,p=i[9]=p+ge|0,i[8]=m+Oe+(p>>>0>>0?1:0)|0,v=i[11]=v+Se|0,i[10]=_+ke+(v>>>0>>0?1:0)|0,w=i[13]=w+Re|0,i[12]=b+Be+(w>>>0>>0?1:0)|0,C=i[15]=C+we|0,i[14]=E+se+(C>>>0>>0?1:0)|0}};jt.hash.sha512;function oU(t){let e,r;if(t.length===0)return new ArrayBuffer(0);const n=Ld.bitArray.bitLength(t)/8;if(Ld.bitArray.bitLength(t)%8!==0)throw new Ld.exception.invalid("Invalid bit size, must be divisble by 8 to fit in an arraybuffer correctly");const i=new DataView(new ArrayBuffer(t.length*4));for(r=0;re?e:r}function mp(t,e,r){return re?e:r}function jE(t){return t=t%360,t<0&&(t=t+360),t}function Is(t){return t=t%360,t<0&&(t=t+360),t}function hy(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 bS=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],cU=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],xS=[95.047,100,108.883];function H0(t,e,r){return(255<<24|(t&255)<<16|(e&255)<<8|r&255)>>>0}function HE(t){const e=$s(t[0]),r=$s(t[1]),n=$s(t[2]);return H0(e,r,n)}function W0(t){return t>>16&255}function G0(t){return t>>8&255}function Q0(t){return t&255}function dU(t,e,r){const n=cU,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,l=$s(i),d=$s(o),u=$s(a);return H0(l,d,u)}function uU(t){const e=xo(W0(t)),r=xo(G0(t)),n=xo(Q0(t));return hy([e,r,n],bS)}function fU(t){const e=xo(W0(t)),r=xo(G0(t)),n=xo(Q0(t)),i=bS,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,l=i[2][0]*e+i[2][1]*r+i[2][2]*n,d=xS,u=o/d[0],f=a/d[1],g=l/d[2],y=Fd(u),x=Fd(f),m=Fd(g),p=116*x-16,_=500*(y-x),v=200*(x-m);return[p,_,v]}function hU(t){const e=wa(t),r=$s(e);return H0(r,r,r)}function WE(t){const e=uU(t)[1];return 116*Fd(e/100)-16}function wa(t){return 100*mU((t+16)/116)}function py(t){return Fd(t/100)*116-16}function xo(t){const e=t/255;return e<=.040449936?e/12.92*100:Math.pow((e+.055)/1.055,2.4)*100}function $s(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,lU(0,255,Math.round(r*255))}function pU(){return xS}function Fd(t){const e=.008856451679035631,r=24389/27;return t>e?Math.pow(t,1/3):(r*t+16)/116}function mU(t){const e=.008856451679035631,r=24389/27,n=t*t*t;return n>e?n:(116*t-16)/r}class Ti{static make(e=pU(),r=200/Math.PI*wa(50)/100,n=50,i=2,o=!1){const a=e,l=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,g=f>=.9?Md(.59,.69,(f-.9)*10):Md(.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 x=f,m=[y*(100/l)+1-y,y*(100/d)+1-y,y*(100/u)+1-y],p=1/(5*r+1),_=p*p*p*p,v=1-_,b=_*r+.1*v*v*Math.cbrt(5*r),w=wa(n)/e[1],E=1.48+Math.sqrt(w),C=.725/Math.pow(w,.2),S=C,P=[Math.pow(b*m[0]*l/100,.42),Math.pow(b*m[1]*d/100,.42),Math.pow(b*m[2]*u/100,.42)],R=[400*P[0]/(P[0]+27.13),400*P[1]/(P[1]+27.13),400*P[2]/(P[2]+27.13)],D=(2*R[0]+R[1]+.05*R[2])*C;return new Ti(w,D,C,S,g,x,m,b,Math.pow(b,.25),E)}constructor(e,r,n,i,o,a,l,d,u,f){this.n=e,this.aw=r,this.nbb=n,this.ncb=i,this.c=o,this.nc=a,this.rgbD=l,this.fl=d,this.fLRoot=u,this.z=f}}Ti.DEFAULT=Ti.make();class Ln{constructor(e,r,n,i,o,a,l,d,u){this.hue=e,this.chroma=r,this.j=n,this.q=i,this.m=o,this.s=a,this.jstar=l,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 Ln.fromIntInViewingConditions(e,Ti.DEFAULT)}static fromIntInViewingConditions(e,r){const n=(e&16711680)>>16,i=(e&65280)>>8,o=e&255,a=xo(n),l=xo(i),d=xo(o),u=.41233895*a+.35762064*l+.18051042*d,f=.2126*a+.7152*l+.0722*d,g=.01932141*a+.11916382*l+.95034478*d,y=.401288*u+.650173*f-.051461*g,x=-.250268*u+1.204414*f+.045854*g,m=-.002079*u+.048952*f+.953127*g,p=r.rgbD[0]*y,_=r.rgbD[1]*x,v=r.rgbD[2]*m,b=Math.pow(r.fl*Math.abs(p)/100,.42),w=Math.pow(r.fl*Math.abs(_)/100,.42),E=Math.pow(r.fl*Math.abs(v)/100,.42),C=_n(p)*400*b/(b+27.13),S=_n(_)*400*w/(w+27.13),P=_n(v)*400*E/(E+27.13),R=(11*C+-12*S+P)/11,D=(C+S-2*P)/9,z=(20*C+20*S+21*P)/20,j=(40*C+20*S+P)/20,J=Math.atan2(D,R)*180/Math.PI,be=J<0?J+360:J>=360?J-360:J,Oe=be*Math.PI/180,ge=j*r.nbb,ke=100*Math.pow(ge/r.aw,r.c*r.z),Se=4/r.c*Math.sqrt(ke/100)*(r.aw+4)*r.fLRoot,Be=be<20.14?be+360:be,Re=.25*(Math.cos(Be*Math.PI/180+2)+3.8),we=5e4/13*Re*r.nc*r.ncb*Math.sqrt(R*R+D*D)/(z+.305),Pe=Math.pow(we,.9)*Math.pow(1.64-Math.pow(.29,r.n),.73),Ce=Pe*Math.sqrt(ke/100),je=Ce*r.fLRoot,Ge=50*Math.sqrt(Pe*r.c/(r.aw+4)),ee=(1+100*.007)*ke/(1+.007*ke),le=1/.0228*Math.log(1+.0228*je),ue=le*Math.cos(Oe),De=le*Math.sin(Oe);return new Ln(be,Ce,ke,Se,je,Ge,ee,ue,De)}static fromJch(e,r,n){return Ln.fromJchInViewingConditions(e,r,n,Ti.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,l=r/Math.sqrt(e/100),d=50*Math.sqrt(l*i.c/(i.aw+4)),u=n*Math.PI/180,f=(1+100*.007)*e/(1+.007*e),g=1/.0228*Math.log(1+.0228*a),y=g*Math.cos(u),x=g*Math.sin(u);return new Ln(n,r,e,o,a,d,f,y,x)}static fromUcs(e,r,n){return Ln.fromUcsInViewingConditions(e,r,n,Ti.DEFAULT)}static fromUcsInViewingConditions(e,r,n,i){const o=r,a=n,l=Math.sqrt(o*o+a*a),u=(Math.exp(l*.0228)-1)/.0228/i.fLRoot;let f=Math.atan2(a,o)*(180/Math.PI);f<0&&(f+=360);const g=e/(1-(e-100)*.007);return Ln.fromJchInViewingConditions(g,u,f,i)}toInt(){return this.viewed(Ti.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),l=o*(5e4/13)*e.nc*e.ncb,d=a/e.nbb,u=Math.sin(i),f=Math.cos(i),g=23*(d+.305)*n/(23*l+11*n*f+108*n*u),y=g*f,x=g*u,m=(460*d+451*y+288*x)/1403,p=(460*d-891*y-261*x)/1403,_=(460*d-220*y-6300*x)/1403,v=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),b=_n(m)*(100/e.fl)*Math.pow(v,1/.42),w=Math.max(0,27.13*Math.abs(p)/(400-Math.abs(p))),E=_n(p)*(100/e.fl)*Math.pow(w,1/.42),C=Math.max(0,27.13*Math.abs(_)/(400-Math.abs(_))),S=_n(_)*(100/e.fl)*Math.pow(C,1/.42),P=b/e.rgbD[0],R=E/e.rgbD[1],D=S/e.rgbD[2],z=1.86206786*P-1.01125463*R+.14918677*D,j=.38752654*P+.62144744*R-.00897398*D,q=-.0158415*P-.03412294*R+1.04996444*D;return dU(z,j,q)}static fromXyzInViewingConditions(e,r,n,i){const o=.401288*e+.650173*r-.051461*n,a=-.250268*e+1.204414*r+.045854*n,l=-.002079*e+.048952*r+.953127*n,d=i.rgbD[0]*o,u=i.rgbD[1]*a,f=i.rgbD[2]*l,g=Math.pow(i.fl*Math.abs(d)/100,.42),y=Math.pow(i.fl*Math.abs(u)/100,.42),x=Math.pow(i.fl*Math.abs(f)/100,.42),m=_n(d)*400*g/(g+27.13),p=_n(u)*400*y/(y+27.13),_=_n(f)*400*x/(x+27.13),v=(11*m+-12*p+_)/11,b=(m+p-2*_)/9,w=(20*m+20*p+21*_)/20,E=(40*m+20*p+_)/20,S=Math.atan2(b,v)*180/Math.PI,P=S<0?S+360:S>=360?S-360:S,R=P*Math.PI/180,D=E*i.nbb,z=100*Math.pow(D/i.aw,i.c*i.z),j=4/i.c*Math.sqrt(z/100)*(i.aw+4)*i.fLRoot,q=P<20.14?P+360:P,J=1/4*(Math.cos(q*Math.PI/180+2)+3.8),Oe=5e4/13*J*i.nc*i.ncb*Math.sqrt(v*v+b*b)/(w+.305),ge=Math.pow(Oe,.9)*Math.pow(1.64-Math.pow(.29,i.n),.73),ke=ge*Math.sqrt(z/100),Se=ke*i.fLRoot,Be=50*Math.sqrt(ge*i.c/(i.aw+4)),Re=(1+100*.007)*z/(1+.007*z),se=Math.log(1+.0228*Se)/.0228,we=se*Math.cos(R),Pe=se*Math.sin(R);return new Ln(P,ke,z,j,Se,Be,Re,we,Pe)}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),l=o*(5e4/13)*e.nc*e.ncb,d=a/e.nbb,u=Math.sin(i),f=Math.cos(i),g=23*(d+.305)*n/(23*l+11*n*f+108*n*u),y=g*f,x=g*u,m=(460*d+451*y+288*x)/1403,p=(460*d-891*y-261*x)/1403,_=(460*d-220*y-6300*x)/1403,v=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),b=_n(m)*(100/e.fl)*Math.pow(v,1/.42),w=Math.max(0,27.13*Math.abs(p)/(400-Math.abs(p))),E=_n(p)*(100/e.fl)*Math.pow(w,1/.42),C=Math.max(0,27.13*Math.abs(_)/(400-Math.abs(_))),S=_n(_)*(100/e.fl)*Math.pow(C,1/.42),P=b/e.rgbD[0],R=E/e.rgbD[1],D=S/e.rgbD[2],z=1.86206786*P-1.01125463*R+.14918677*D,j=.38752654*P+.62144744*R-.00897398*D,q=-.0158415*P-.03412294*R+1.04996444*D;return[z,j,q]}}class Je{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 _n(e)*400*r/(r+27.13)}static hueOf(e){const r=hy(e,Je.SCALED_DISCOUNT_FROM_LINRGB),n=Je.chromaticAdaptation(r[0]),i=Je.chromaticAdaptation(r[1]),o=Je.chromaticAdaptation(r[2]),a=(11*n+-12*i+o)/11,l=(n+i-2*o)/9;return Math.atan2(l,a)}static areInCyclicOrder(e,r,n){const i=Je.sanitizeRadians(r-e),o=Je.sanitizeRadians(n-e);return i100.01||z[1]>100.01||z[2]>100.01?0:HE(z);i=i-(be-n)*i/(2*be)}return 0}static solveToInt(e,r,n){if(r<1e-4||n<1e-4||n>99.9999)return hU(n);e=Is(e);const i=e/180*Math.PI,o=wa(n),a=Je.findResultByJ(i,r,o);if(a!==0)return a;const l=Je.bisectToLimit(o,i);return HE(l)}static solveToCam(e,r,n){return Ln.fromInt(Je.solveToInt(e,r,n))}}Je.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]];Je.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]];Je.Y_FROM_LINRGB=[.2126,.7152,.0722];Je.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 Jr{static from(e,r,n){return new Jr(Je.solveToInt(e,r,n))}static fromInt(e){return new Jr(e)}toInt(){return this.argb}get hue(){return this.internalHue}set hue(e){this.setInternalState(Je.solveToInt(e,this.internalChroma,this.internalTone))}get chroma(){return this.internalChroma}set chroma(e){this.setInternalState(Je.solveToInt(this.internalHue,e,this.internalTone))}get tone(){return this.internalTone}set tone(e){this.setInternalState(Je.solveToInt(this.internalHue,this.internalChroma,e))}constructor(e){this.argb=e;const r=Ln.fromInt(e);this.internalHue=r.hue,this.internalChroma=r.chroma,this.internalTone=WE(e),this.argb=e}setInternalState(e){const r=Ln.fromInt(e);this.internalHue=r.hue,this.internalChroma=r.chroma,this.internalTone=WE(e),this.argb=e}inViewingConditions(e){const n=Ln.fromInt(this.toInt()).xyzInViewingConditions(e),i=Ln.fromXyzInViewingConditions(n[0],n[1],n[2],Ti.make());return Jr.from(i.hue,i.chroma,py(n[1]))}}class Rr{static ratioOfTones(e,r){return e=mp(0,100,e),r=mp(0,100,r),Rr.ratioOfYs(wa(e),wa(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=wa(e),i=r*(n+5)-5,o=Rr.ratioOfYs(i,n),a=Math.abs(o-r);if(o.04)return-1;const l=py(i)+.4;return l<0||l>100?-1:l}static darker(e,r){if(e<0||e>100)return-1;const n=wa(e),i=(n+5)/r-5,o=Rr.ratioOfYs(n,i),a=Math.abs(o-r);if(o.04)return-1;const l=py(i)-.4;return l<0||l>100?-1:l}static lighterUnsafe(e,r){const n=Rr.lighter(e,r);return n<0?100:n}static darkerUnsafe(e,r){const n=Rr.darker(e,r);return n<0?0:n}}class hm{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 hm.isDisliked(e)?Jr.from(e.hue,e.chroma,70):e}}class Ne{static fromPalette(e){return new Ne(e.name??"",e.palette,e.tone,e.isBackground??!1,e.background,e.secondBackground,e.contrastCurve,e.toneDeltaPair)}constructor(e,r,n,i,o,a,l,d){if(this.name=e,this.palette=r,this.tone=n,this.isBackground=i,this.background=o,this.secondBackground=a,this.contrastCurve=l,this.toneDeltaPair=d,this.hctCache=new Map,!o&&a)throw new Error(`Color ${e} has secondBackgrounddefined, but background is not defined.`);if(!o&&l)throw new Error(`Color ${e} has contrastCurvedefined, but background is not defined.`);if(o&&!l)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,l=n.polarity,d=n.stayTogether,f=this.background(e).getTone(e),g=l==="nearer"||l==="lighter"&&!e.isDark||l==="darker"&&e.isDark,y=g?i:o,x=g?o:i,m=this.name===y.name,p=e.isDark?1:-1,_=y.contrastCurve.getContrast(e.contrastLevel),v=x.contrastCurve.getContrast(e.contrastLevel),b=y.tone(e);let w=Rr.ratioOfTones(f,b)>=_?b:Ne.foregroundTone(f,_);const E=x.tone(e);let C=Rr.ratioOfTones(f,E)>=v?E:Ne.foregroundTone(f,v);return r&&(w=Ne.foregroundTone(f,_),C=Ne.foregroundTone(f,v)),(C-w)*p>=a||(C=mp(0,100,w+a*p),(C-w)*p>=a||(w=mp(0,100,C-a*p))),50<=w&&w<60?p>0?(w=60,C=Math.max(C,w+a*p)):(w=49,C=Math.min(C,w+a*p)):50<=C&&C<60&&(d?p>0?(w=60,C=Math.max(C,w+a*p)):(w=49,C=Math.min(C,w+a*p)):p>0?C=60:C=49),m?w: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(Rr.ratioOfTones(i,n)>=o||(n=Ne.foregroundTone(i,o)),r&&(n=Ne.foregroundTone(i,o)),this.isBackground&&50<=n&&n<60&&(Rr.ratioOfTones(49,i)>=o?n=49:n=60),this.secondBackground){const[a,l]=[this.background,this.secondBackground],[d,u]=[a(e).getTone(e),l(e).getTone(e)],[f,g]=[Math.max(d,u),Math.min(d,u)];if(Rr.ratioOfTones(f,n)>=o&&Rr.ratioOfTones(g,n)>=o)return n;const y=Rr.lighter(f,o),x=Rr.darker(g,o),m=[];return y!==-1&&m.push(y),x!==-1&&m.push(x),Ne.tonePrefersLightForeground(d)||Ne.tonePrefersLightForeground(u)?y<0?100:y:m.length===1?m[0]:x<0?0:x}return n}}static foregroundTone(e,r){const n=Rr.lighterUnsafe(e,r),i=Rr.darkerUnsafe(e,r),o=Rr.ratioOfTones(n,e),a=Rr.ratioOfTones(i,e);if(Ne.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 Ne.tonePrefersLightForeground(e)&&!Ne.toneAllowsLightForeground(e)?49:e}}var qa;(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"})(qa||(qa={}));class It{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?Md(this.low,this.normal,(e- -1)/1):e<.5?Md(this.normal,this.medium,(e-0)/.5):e<1?Md(this.medium,this.high,(e-.5)/.5):this.high}}class En{constructor(e,r,n,i,o){this.roleA=e,this.roleB=r,this.delta=n,this.polarity=i,this.stayTogether=o}}function kc(t){return t.variant===qa.FIDELITY||t.variant===qa.CONTENT}function br(t){return t.variant===qa.MONOCHROME}function vU(t,e,r,n){let i=r,o=Jr.from(t,e,r);if(o.chromal.chroma||Math.abs(l.chroma-e)<.4)break;const d=Math.abs(l.chroma-e),u=Math.abs(o.chroma-e);dt.primaryPalette,tone:t=>t.primaryPalette.keyColor.tone});X.secondaryPaletteKeyColor=Ne.fromPalette({name:"secondary_palette_key_color",palette:t=>t.secondaryPalette,tone:t=>t.secondaryPalette.keyColor.tone});X.tertiaryPaletteKeyColor=Ne.fromPalette({name:"tertiary_palette_key_color",palette:t=>t.tertiaryPalette,tone:t=>t.tertiaryPalette.keyColor.tone});X.neutralPaletteKeyColor=Ne.fromPalette({name:"neutral_palette_key_color",palette:t=>t.neutralPalette,tone:t=>t.neutralPalette.keyColor.tone});X.neutralVariantPaletteKeyColor=Ne.fromPalette({name:"neutral_variant_palette_key_color",palette:t=>t.neutralVariantPalette,tone:t=>t.neutralVariantPalette.keyColor.tone});X.background=Ne.fromPalette({name:"background",palette:t=>t.neutralPalette,tone:t=>t.isDark?6:98,isBackground:!0});X.onBackground=Ne.fromPalette({name:"on_background",palette:t=>t.neutralPalette,tone:t=>t.isDark?90:10,background:t=>X.background,contrastCurve:new It(3,3,4.5,7)});X.surface=Ne.fromPalette({name:"surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?6:98,isBackground:!0});X.surfaceDim=Ne.fromPalette({name:"surface_dim",palette:t=>t.neutralPalette,tone:t=>t.isDark?6:87,isBackground:!0});X.surfaceBright=Ne.fromPalette({name:"surface_bright",palette:t=>t.neutralPalette,tone:t=>t.isDark?24:98,isBackground:!0});X.surfaceContainerLowest=Ne.fromPalette({name:"surface_container_lowest",palette:t=>t.neutralPalette,tone:t=>t.isDark?4:100,isBackground:!0});X.surfaceContainerLow=Ne.fromPalette({name:"surface_container_low",palette:t=>t.neutralPalette,tone:t=>t.isDark?10:96,isBackground:!0});X.surfaceContainer=Ne.fromPalette({name:"surface_container",palette:t=>t.neutralPalette,tone:t=>t.isDark?12:94,isBackground:!0});X.surfaceContainerHigh=Ne.fromPalette({name:"surface_container_high",palette:t=>t.neutralPalette,tone:t=>t.isDark?17:92,isBackground:!0});X.surfaceContainerHighest=Ne.fromPalette({name:"surface_container_highest",palette:t=>t.neutralPalette,tone:t=>t.isDark?22:90,isBackground:!0});X.onSurface=Ne.fromPalette({name:"on_surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?90:10,background:t=>X.highestSurface(t),contrastCurve:new It(4.5,7,11,21)});X.surfaceVariant=Ne.fromPalette({name:"surface_variant",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?30:90,isBackground:!0});X.onSurfaceVariant=Ne.fromPalette({name:"on_surface_variant",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?80:30,background:t=>X.highestSurface(t),contrastCurve:new It(3,4.5,7,11)});X.inverseSurface=Ne.fromPalette({name:"inverse_surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?90:20});X.inverseOnSurface=Ne.fromPalette({name:"inverse_on_surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?20:95,background:t=>X.inverseSurface,contrastCurve:new It(4.5,7,11,21)});X.outline=Ne.fromPalette({name:"outline",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?60:50,background:t=>X.highestSurface(t),contrastCurve:new It(1.5,3,4.5,7)});X.outlineVariant=Ne.fromPalette({name:"outline_variant",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?30:80,background:t=>X.highestSurface(t),contrastCurve:new It(1,1,3,7)});X.shadow=Ne.fromPalette({name:"shadow",palette:t=>t.neutralPalette,tone:t=>0});X.scrim=Ne.fromPalette({name:"scrim",palette:t=>t.neutralPalette,tone:t=>0});X.surfaceTint=Ne.fromPalette({name:"surface_tint",palette:t=>t.primaryPalette,tone:t=>t.isDark?80:40,isBackground:!0});X.primary=Ne.fromPalette({name:"primary",palette:t=>t.primaryPalette,tone:t=>br(t)?t.isDark?100:0:t.isDark?80:40,isBackground:!0,background:t=>X.highestSurface(t),contrastCurve:new It(3,4.5,7,11),toneDeltaPair:t=>new En(X.primaryContainer,X.primary,15,"nearer",!1)});X.onPrimary=Ne.fromPalette({name:"on_primary",palette:t=>t.primaryPalette,tone:t=>br(t)?t.isDark?10:90:t.isDark?20:100,background:t=>X.primary,contrastCurve:new It(4.5,7,11,21)});X.primaryContainer=Ne.fromPalette({name:"primary_container",palette:t=>t.primaryPalette,tone:t=>kc(t)?K0(t.sourceColorHct,t):br(t)?t.isDark?85:25:t.isDark?30:90,isBackground:!0,background:t=>X.highestSurface(t),contrastCurve:new It(1,1,3,7),toneDeltaPair:t=>new En(X.primaryContainer,X.primary,15,"nearer",!1)});X.onPrimaryContainer=Ne.fromPalette({name:"on_primary_container",palette:t=>t.primaryPalette,tone:t=>kc(t)?Ne.foregroundTone(X.primaryContainer.tone(t),4.5):br(t)?t.isDark?0:100:t.isDark?90:10,background:t=>X.primaryContainer,contrastCurve:new It(4.5,7,11,21)});X.inversePrimary=Ne.fromPalette({name:"inverse_primary",palette:t=>t.primaryPalette,tone:t=>t.isDark?40:80,background:t=>X.inverseSurface,contrastCurve:new It(3,4.5,7,11)});X.secondary=Ne.fromPalette({name:"secondary",palette:t=>t.secondaryPalette,tone:t=>t.isDark?80:40,isBackground:!0,background:t=>X.highestSurface(t),contrastCurve:new It(3,4.5,7,11),toneDeltaPair:t=>new En(X.secondaryContainer,X.secondary,15,"nearer",!1)});X.onSecondary=Ne.fromPalette({name:"on_secondary",palette:t=>t.secondaryPalette,tone:t=>br(t)?t.isDark?10:100:t.isDark?20:100,background:t=>X.secondary,contrastCurve:new It(4.5,7,11,21)});X.secondaryContainer=Ne.fromPalette({name:"secondary_container",palette:t=>t.secondaryPalette,tone:t=>{const e=t.isDark?30:90;if(br(t))return t.isDark?30:85;if(!kc(t))return e;let r=vU(t.secondaryPalette.hue,t.secondaryPalette.chroma,e,!t.isDark);return r=K0(t.secondaryPalette.getHct(r),t),r},isBackground:!0,background:t=>X.highestSurface(t),contrastCurve:new It(1,1,3,7),toneDeltaPair:t=>new En(X.secondaryContainer,X.secondary,15,"nearer",!1)});X.onSecondaryContainer=Ne.fromPalette({name:"on_secondary_container",palette:t=>t.secondaryPalette,tone:t=>kc(t)?Ne.foregroundTone(X.secondaryContainer.tone(t),4.5):t.isDark?90:10,background:t=>X.secondaryContainer,contrastCurve:new It(4.5,7,11,21)});X.tertiary=Ne.fromPalette({name:"tertiary",palette:t=>t.tertiaryPalette,tone:t=>br(t)?t.isDark?90:25:t.isDark?80:40,isBackground:!0,background:t=>X.highestSurface(t),contrastCurve:new It(3,4.5,7,11),toneDeltaPair:t=>new En(X.tertiaryContainer,X.tertiary,15,"nearer",!1)});X.onTertiary=Ne.fromPalette({name:"on_tertiary",palette:t=>t.tertiaryPalette,tone:t=>br(t)?t.isDark?10:90:t.isDark?20:100,background:t=>X.tertiary,contrastCurve:new It(4.5,7,11,21)});X.tertiaryContainer=Ne.fromPalette({name:"tertiary_container",palette:t=>t.tertiaryPalette,tone:t=>{if(br(t))return t.isDark?60:49;if(!kc(t))return t.isDark?30:90;const e=K0(t.tertiaryPalette.getHct(t.sourceColorHct.tone),t),r=t.tertiaryPalette.getHct(e);return hm.fixIfDisliked(r).tone},isBackground:!0,background:t=>X.highestSurface(t),contrastCurve:new It(1,1,3,7),toneDeltaPair:t=>new En(X.tertiaryContainer,X.tertiary,15,"nearer",!1)});X.onTertiaryContainer=Ne.fromPalette({name:"on_tertiary_container",palette:t=>t.tertiaryPalette,tone:t=>br(t)?t.isDark?0:100:kc(t)?Ne.foregroundTone(X.tertiaryContainer.tone(t),4.5):t.isDark?90:10,background:t=>X.tertiaryContainer,contrastCurve:new It(4.5,7,11,21)});X.error=Ne.fromPalette({name:"error",palette:t=>t.errorPalette,tone:t=>t.isDark?80:40,isBackground:!0,background:t=>X.highestSurface(t),contrastCurve:new It(3,4.5,7,11),toneDeltaPair:t=>new En(X.errorContainer,X.error,15,"nearer",!1)});X.onError=Ne.fromPalette({name:"on_error",palette:t=>t.errorPalette,tone:t=>t.isDark?20:100,background:t=>X.error,contrastCurve:new It(4.5,7,11,21)});X.errorContainer=Ne.fromPalette({name:"error_container",palette:t=>t.errorPalette,tone:t=>t.isDark?30:90,isBackground:!0,background:t=>X.highestSurface(t),contrastCurve:new It(1,1,3,7),toneDeltaPair:t=>new En(X.errorContainer,X.error,15,"nearer",!1)});X.onErrorContainer=Ne.fromPalette({name:"on_error_container",palette:t=>t.errorPalette,tone:t=>t.isDark?90:10,background:t=>X.errorContainer,contrastCurve:new It(4.5,7,11,21)});X.primaryFixed=Ne.fromPalette({name:"primary_fixed",palette:t=>t.primaryPalette,tone:t=>br(t)?40:90,isBackground:!0,background:t=>X.highestSurface(t),contrastCurve:new It(1,1,3,7),toneDeltaPair:t=>new En(X.primaryFixed,X.primaryFixedDim,10,"lighter",!0)});X.primaryFixedDim=Ne.fromPalette({name:"primary_fixed_dim",palette:t=>t.primaryPalette,tone:t=>br(t)?30:80,isBackground:!0,background:t=>X.highestSurface(t),contrastCurve:new It(1,1,3,7),toneDeltaPair:t=>new En(X.primaryFixed,X.primaryFixedDim,10,"lighter",!0)});X.onPrimaryFixed=Ne.fromPalette({name:"on_primary_fixed",palette:t=>t.primaryPalette,tone:t=>br(t)?100:10,background:t=>X.primaryFixedDim,secondBackground:t=>X.primaryFixed,contrastCurve:new It(4.5,7,11,21)});X.onPrimaryFixedVariant=Ne.fromPalette({name:"on_primary_fixed_variant",palette:t=>t.primaryPalette,tone:t=>br(t)?90:30,background:t=>X.primaryFixedDim,secondBackground:t=>X.primaryFixed,contrastCurve:new It(3,4.5,7,11)});X.secondaryFixed=Ne.fromPalette({name:"secondary_fixed",palette:t=>t.secondaryPalette,tone:t=>br(t)?80:90,isBackground:!0,background:t=>X.highestSurface(t),contrastCurve:new It(1,1,3,7),toneDeltaPair:t=>new En(X.secondaryFixed,X.secondaryFixedDim,10,"lighter",!0)});X.secondaryFixedDim=Ne.fromPalette({name:"secondary_fixed_dim",palette:t=>t.secondaryPalette,tone:t=>br(t)?70:80,isBackground:!0,background:t=>X.highestSurface(t),contrastCurve:new It(1,1,3,7),toneDeltaPair:t=>new En(X.secondaryFixed,X.secondaryFixedDim,10,"lighter",!0)});X.onSecondaryFixed=Ne.fromPalette({name:"on_secondary_fixed",palette:t=>t.secondaryPalette,tone:t=>10,background:t=>X.secondaryFixedDim,secondBackground:t=>X.secondaryFixed,contrastCurve:new It(4.5,7,11,21)});X.onSecondaryFixedVariant=Ne.fromPalette({name:"on_secondary_fixed_variant",palette:t=>t.secondaryPalette,tone:t=>br(t)?25:30,background:t=>X.secondaryFixedDim,secondBackground:t=>X.secondaryFixed,contrastCurve:new It(3,4.5,7,11)});X.tertiaryFixed=Ne.fromPalette({name:"tertiary_fixed",palette:t=>t.tertiaryPalette,tone:t=>br(t)?40:90,isBackground:!0,background:t=>X.highestSurface(t),contrastCurve:new It(1,1,3,7),toneDeltaPair:t=>new En(X.tertiaryFixed,X.tertiaryFixedDim,10,"lighter",!0)});X.tertiaryFixedDim=Ne.fromPalette({name:"tertiary_fixed_dim",palette:t=>t.tertiaryPalette,tone:t=>br(t)?30:80,isBackground:!0,background:t=>X.highestSurface(t),contrastCurve:new It(1,1,3,7),toneDeltaPair:t=>new En(X.tertiaryFixed,X.tertiaryFixedDim,10,"lighter",!0)});X.onTertiaryFixed=Ne.fromPalette({name:"on_tertiary_fixed",palette:t=>t.tertiaryPalette,tone:t=>br(t)?100:10,background:t=>X.tertiaryFixedDim,secondBackground:t=>X.tertiaryFixed,contrastCurve:new It(4.5,7,11,21)});X.onTertiaryFixedVariant=Ne.fromPalette({name:"on_tertiary_fixed_variant",palette:t=>t.tertiaryPalette,tone:t=>br(t)?90:30,background:t=>X.tertiaryFixedDim,secondBackground:t=>X.tertiaryFixed,contrastCurve:new It(3,4.5,7,11)});class _r{static fromInt(e){const r=Jr.fromInt(e);return _r.fromHct(r)}static fromHct(e){return new _r(e.hue,e.chroma,e)}static fromHueAndChroma(e,r){return new _r(e,r,_r.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=Jr.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 l=Jr.from(e,r,50+a),d=Math.abs(l.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 l=0;for(let m=0;m<360;m++){const p=jE(n+m),_=this.hctsByHue[p],v=this.relativeTemperature(_),b=Math.abs(v-o);o=v,l+=b}let d=1;const u=l/r;let f=0;for(o=this.relativeTemperature(i);a.length=b,E=1;for(;w&&a.length=C,E++}if(o=_,d++,d>360){for(;a.length=a.length&&(p=p%a.length),g.splice(0,0,a[p])}const x=e-y-1;for(let m=1;m=a.length&&(p=p%a.length),g.push(a[p])}return g}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=Nd.isBetween(this.input.hue,e,n),l=a?n:e,d=a?e:n,u=1;let f=1e3,g=this.hctsByHue[Math.round(this.input.hue)];const y=1-this.inputRelativeTemperature;for(let x=0;x<=360;x+=1){const m=Is(l+u*x);if(!Nd.isBetween(m,l,d))continue;const p=this.hctsByHue[Math.round(m)],_=(this.tempsByHct.get(p)-r)/o,v=Math.abs(y-_);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,Nd.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=Jr.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 uo(t){return parseInt(t,16)}function wS(t,e,r="material-theme"){var o,a;let n=globalThis[r];n||(n=new CSSStyleSheet,globalThis[r]=n,t.adoptedStyleSheets.push(n));const i=(o=e.match(/--md-sys-color-surface-container:(.+?);/))==null?void 0:o[1];i&&((a=document.querySelector('meta[name="theme-color"]'))==null||a.setAttribute("content",i)),n.replaceSync(e),localStorage.setItem(r,e)}const xU={background:X.background,"on-background":X.onBackground,surface:X.surface,"surface-dim":X.surfaceDim,"surface-bright":X.surfaceBright,"surface-container-lowest":X.surfaceContainerLowest,"surface-container-low":X.surfaceContainerLow,"surface-container":X.surfaceContainer,"surface-container-high":X.surfaceContainerHigh,"surface-container-highest":X.surfaceContainerHighest,"on-surface":X.onSurface,"surface-variant":X.surfaceVariant,"on-surface-variant":X.onSurfaceVariant,"inverse-surface":X.inverseSurface,"inverse-on-surface":X.inverseOnSurface,outline:X.outline,"outline-variant":X.outlineVariant,shadow:X.shadow,scrim:X.scrim,"surface-tint":X.surfaceTint,primary:X.primary,"on-primary":X.onPrimary,"primary-container":X.primaryContainer,"on-primary-container":X.onPrimaryContainer,"inverse-primary":X.inversePrimary,secondary:X.secondary,"on-secondary":X.onSecondary,"secondary-container":X.secondaryContainer,"on-secondary-container":X.onSecondaryContainer,tertiary:X.tertiary,"on-tertiary":X.onTertiary,"tertiary-container":X.tertiaryContainer,"on-tertiary-container":X.onTertiaryContainer,error:X.error,"on-error":X.onError,"error-container":X.errorContainer,"on-error-container":X.onErrorContainer};function wU(t,e){const r=new _U(Jr.fromInt(bU(t)),e,0),n={};for(const[i,o]of Object.entries(xU))n[i]=yU(o.getArgb(r));return n}function TU(t,e,r="material-theme"){let n=":root,:host{";for(const[i,o]of Object.entries(e))n+=`--md-sys-color-${i}:${o};`;n+="}",wS(t,n,r)}function Y0(t,e){const r=wU(t,e);TU(document,r),window.dispatchEvent(new Event("theme-changed"))}function lu(t,e=!0){let r=t==="dark";return t==="auto"&&(r=window.matchMedia("(prefers-color-scheme: dark)").matches,e&&CU(r?"dark":"light")),r}function EU(){return localStorage.getItem("material-theme")}function zd(){return localStorage.getItem("color-mode")}function TS(t){localStorage.setItem("color-mode",t)}function X0(){return localStorage.getItem("seed-color")}function ES(t){localStorage.setItem("seed-color",t)}function kU(){return localStorage.getItem("last-auto-color-mode")}function CU(t){localStorage.setItem("last-auto-color-mode",t)}function kS(t){const e=zd(),r=lu(e);Y0(t,r),pm(r),ES(t)}function CS(t){const e=X0(),r=lu(t);Y0(e,r),TS(t),pm(r)}function AU(t,e){const r=lu(e);Y0(t,r),pm(r),ES(t),TS(e)}function pm(t){t?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),gt.emit("color_mode_changed")}const SU={xmlns:"http://www.w3.org/2000/svg",class:"icon",style:{color:"#000!important"},viewBox:"176.76 130.44 848.7 811.89"},IU=EF('',6),$U=[IU];function OU(t,e){return Y(),te("svg",SU,[...$U])}const PU={render:OU};function J0(t){const e=t.toLowerCase();return e.startsWith("https://")||e.startsWith("http://")||e.startsWith("blob:")}function Su(t,e=""){return J0(t)?t:`${ac()}/fs?id=${encodeURIComponent(t)}${e}`}function Ql(t,e){return!e||!t?"":Su(e1(t,e))}function RU(){return`${ac()}/upload`}function xs(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 x1e(t,e,r){const n=new Blob([t],{type:e}),i=URL.createObjectURL(n);xs(i,r)}function Ls(t){return t.substring(t.lastIndexOf("/")+1)}function Z0(t){return jt.codec.base64.toBits(t)}function AS(t,e){if(!t)return"";const r=Au(t,e);return yS(r)}function DU(t,e){return e.startsWith("app://")?t+"/"+e.replace("app://",""):e}function e1(t,e,r=""){if(!e||!t)return"";const n=e.toLowerCase();if(n.startsWith("https://")||n.startsWith("http://"))return e;const i=window.fileIdMap||new Map;if(i.has(e))return i.get(e)??"";const o=Au(t,r?JSON.stringify({path:e,mediaId:r}):e),a=yS(o);return i.set(e,a),a}async function SS(t,e){const r=localStorage.getItem("auth_token")??"",n=jt.codec.base64.toBits(r),i=1e3*1e3*512;async function o(a,l,d){const u=Math.min(a+i,t.file.size),f=u-a,g=new FormData,y=j0(Au(n,JSON.stringify({dir:t.dir,replace:e,index:l,size:f,total:d})));g.append("info",new Blob([y]));const x=t.file.slice(a,u);return g.append("file",new File([x],a>0?t.fileName:t.file.name)),new Promise(m=>{const p=new XMLHttpRequest;let _=0;p.upload.addEventListener("progress",function(v){v.lengthComputable&&(_===0&&(_=v.total-f),v.loaded>_&&(t.uploadedSize=a+v.loaded-_))},!1),p.upload.addEventListener("load",function(){l===d-1&&(t.uploadedSize=t.file.size,t.status="saving")},!1),p.onreadystatechange=function(){console.log(p),p.readyState===4&&(p.status===201?m({fileName:p.responseText}):m({error:p.responseText}))};try{p.open("POST",RU(),!0),p.setRequestHeader("c-id",localStorage.getItem("client_id")??""),p.send(g),t.xhr=p}catch(v){m({error:v.message})}})}try{let a=0;const l=[];for(;a=0);t.status="done"}catch(a){t.status="error",t.error=a}}function LU(t){const e=t.lastIndexOf(".");return e===-1||t.lastIndexOf("/")>e?"":t.substring(e+1).toLowerCase()}const MU={key:0,class:"top-error"},FU=Dt({__name:"App",setup(t){let e=0;const{t:r}=Bn();document.title=r("app_name");const n=Le(""),i=Le("");let o,a=1e3;const l=()=>{i.value=""},d={1:"message_created",2:"message_deleted",3:"message_updated",4:"feeds_fetched",5:"screen_mirroring",6:"ai_chat_replied",7:"notification_created",8:"notification_updated",9:"notification_deleted"};async function u(){const x=localStorage.getItem("client_id"),m=localStorage.getItem("auth_token")??"";if(m)try{const p=Z0(m);o=new WebSocket(`${WV()}?cid=${x}`),o.onopen=async()=>{gt.emit("app_socket_connection_changed",!0),console.log("WebSocket is connecting to app"),a=1e3;const _=Au(p,new Date().getTime().toString());o.send(j0(_)),n.value=""},o.onmessage=async _=>{const v=await _.data.arrayBuffer(),b=[5],w=aU(v,b),E=d[w.type]??"";if(b.includes(w.type))gt.emit(E,new Blob([w.data],{type:"application/octet-stream"})),console.log(E);else try{const C=_S(p,w.data);gt.emit(E,JSON.parse(C)),console.log(`${E}, ${C}`)}catch(C){console.error(C)}n.value=""},o.onclose=_=>{console.error(_),n.value="closed",f()},o.onerror=_=>{console.error(_),n.value="error",o.close(),gt.emit("app_socket_connection_changed",!1)}}catch(p){console.error(p),f()}}function f(){e&&clearTimeout(e),e=setTimeout(()=>{u()},Math.min(5e3,a)),a+=1e3}function g(){if(zd()!=="auto")return;const x=lu("auto",!1)?"dark":"light",m=kU();x!==m&&CS("auto")}function y(){const x=EU();x?(wS(document,x),pm(lu(zd()||"auto",!1))):AU("#0000FF","auto")}return Qr(()=>{gt.on("toast",x=>{Hs(r(x))}),gt.on("tap_phone",x=>{i.value=x}),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{zd()==="auto"&&kS(X0())});try{y(),g()}catch(x){console.error(x)}u()}),(x,m)=>{const p=l0("router-view"),_=eB,v=Oo("click-away");return Y(),te($t,null,[n.value?(Y(),te("div",MU,Me(x.$t("fix_disconnect_tips")),1)):kt("",!0),$e(p),(Y(),or(p0,{to:"body"},[$e(_),i.value?ot((Y(),te("div",{key:0,class:"tap-phone-container",onClick:l},[N("div",null,Me(i.value),1),$e(ne(PU))])),[[v,l]]):kt("",!0)]))],64)}}}),kn=(t,e)=>{const r=t.__vccOpts||t;for(const[n,i]of e)r[n]=i;return r},NU=kn(FU,[["__scopeId","data-v-e0f3cc60"]]);"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 zU="modulepreload",qU=function(t){return"/"+t},GE={},pt=function(e,r,n){let i=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.all(r.map(l=>{if(l=qU(l),l in GE)return;GE[l]=!0;const d=l.endsWith(".css"),u=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const f=document.createElement("link");if(f.rel=d?"stylesheet":zU,d||(f.as="script",f.crossOrigin=""),f.href=l,a&&f.setAttribute("nonce",a),document.head.appendChild(f),d)return new Promise((g,y)=>{f.addEventListener("load",g),f.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${l}`)))})}))}return i.then(()=>e()).catch(o=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o})};const Sl=typeof document<"u";function BU(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const Bt=Object.assign;function Mg(t,e){const r={};for(const n in e){const i=e[n];r[n]=Ai(i)?i.map(t):t(i)}return r}const qd=()=>{},Ai=Array.isArray,IS=/#/g,VU=/&/g,UU=/\//g,jU=/=/g,HU=/\?/g,$S=/\+/g,WU=/%5B/g,GU=/%5D/g,OS=/%5E/g,QU=/%60/g,PS=/%7B/g,KU=/%7C/g,RS=/%7D/g,YU=/%20/g;function t1(t){return encodeURI(""+t).replace(KU,"|").replace(WU,"[").replace(GU,"]")}function XU(t){return t1(t).replace(PS,"{").replace(RS,"}").replace(OS,"^")}function my(t){return t1(t).replace($S,"%2B").replace(YU,"+").replace(IS,"%23").replace(VU,"%26").replace(QU,"`").replace(PS,"{").replace(RS,"}").replace(OS,"^")}function JU(t){return my(t).replace(jU,"%3D")}function ZU(t){return t1(t).replace(IS,"%23").replace(HU,"%3F")}function ej(t){return t==null?"":ZU(t).replace(UU,"%2F")}function cu(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const tj=/\/$/,rj=t=>t.replace(tj,"");function Fg(t,e,r="/"){let n,i={},o="",a="";const l=e.indexOf("#");let d=e.indexOf("?");return l=0&&(d=-1),d>-1&&(n=e.slice(0,d),o=e.slice(d+1,l>-1?l:e.length),i=t(o)),l>-1&&(n=n||e.slice(0,l),a=e.slice(l,e.length)),n=aj(n??e,r),{fullPath:n+(o&&"?")+o+a,path:n,query:i,hash:cu(a)}}function nj(t,e){const r=e.query?t(e.query):"";return e.path+(r&&"?")+r+(e.hash||"")}function QE(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function ij(t,e,r){const n=e.matched.length-1,i=r.matched.length-1;return n>-1&&n===i&&sc(e.matched[n],r.matched[i])&&DS(e.params,r.params)&&t(e.query)===t(r.query)&&e.hash===r.hash}function sc(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function DS(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const r in t)if(!oj(t[r],e[r]))return!1;return!0}function oj(t,e){return Ai(t)?KE(t,e):Ai(e)?KE(e,t):t===e}function KE(t,e){return Ai(e)?t.length===e.length&&t.every((r,n)=>r===e[n]):t.length===1&&t[0]===e}function aj(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,l;for(a=0;a1&&o--;else break;return r.slice(0,o).join("/")+"/"+n.slice(a).join("/")}var du;(function(t){t.pop="pop",t.push="push"})(du||(du={}));var Bd;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Bd||(Bd={}));function sj(t){if(!t)if(Sl){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),rj(t)}const lj=/^[^#]+#/;function cj(t,e){return t.replace(lj,"#")+e}function dj(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 mm=()=>({left:window.scrollX,top:window.scrollY});function uj(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=dj(i,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function YE(t,e){return(history.state?history.state.position-e:-1)+t}const vy=new Map;function fj(t,e){vy.set(t,e)}function hj(t){const e=vy.get(t);return vy.delete(t),e}let pj=()=>location.protocol+"//"+location.host;function LS(t,e){const{pathname:r,search:n,hash:i}=e,o=t.indexOf("#");if(o>-1){let l=i.includes(t.slice(o))?t.slice(o).length:1,d=i.slice(l);return d[0]!=="/"&&(d="/"+d),QE(d,"")}return QE(r,t)+n+i}function mj(t,e,r,n){let i=[],o=[],a=null;const l=({state:y})=>{const x=LS(t,location),m=r.value,p=e.value;let _=0;if(y){if(r.value=x,e.value=y,a&&a===m){a=null;return}_=p?y.position-p.position:0}else n(x);i.forEach(v=>{v(r.value,m,{delta:_,type:du.pop,direction:_?_>0?Bd.forward:Bd.back:Bd.unknown})})};function d(){a=r.value}function u(y){i.push(y);const x=()=>{const m=i.indexOf(y);m>-1&&i.splice(m,1)};return o.push(x),x}function f(){const{history:y}=window;y.state&&y.replaceState(Bt({},y.state,{scroll:mm()}),"")}function g(){for(const y of o)y();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",f,{passive:!0}),{pauseListeners:d,listen:u,destroy:g}}function XE(t,e,r,n=!1,i=!1){return{back:t,current:e,forward:r,replaced:n,position:window.history.length,scroll:i?mm():null}}function vj(t){const{history:e,location:r}=window,n={value:LS(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 g=t.indexOf("#"),y=g>-1?(r.host&&document.querySelector("base")?t:t.slice(g))+d:pj()+t+d;try{e[f?"replaceState":"pushState"](u,"",y),i.value=u}catch(x){console.error(x),r[f?"replace":"assign"](y)}}function a(d,u){const f=Bt({},e.state,XE(i.value.back,d,i.value.forward,!0),u,{position:i.value.position});o(d,f,!0),n.value=d}function l(d,u){const f=Bt({},i.value,e.state,{forward:d,scroll:mm()});o(f.current,f,!0);const g=Bt({},XE(n.value,d,null),{position:f.position+1},u);o(d,g,!1),n.value=d}return{location:n,state:i,push:l,replace:a}}function gj(t){t=sj(t);const e=vj(t),r=mj(t,e.state,e.location,e.replace);function n(o,a=!0){a||r.pauseListeners(),history.go(o)}const i=Bt({location:"",base:t,go:n,createHref:cj.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 _j(t){return typeof t=="string"||t&&typeof t=="object"}function MS(t){return typeof t=="string"||typeof t=="symbol"}const na={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},FS=Symbol("");var JE;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(JE||(JE={}));function lc(t,e){return Bt(new Error,{type:t,[FS]:!0},e)}function fo(t,e){return t instanceof Error&&FS in t&&(e==null||!!(t.type&e))}const ZE="[^/]+?",yj={sensitive:!1,strict:!1,start:!0,end:!0},bj=/[.+*?^${}()[\]/\\]/g;function xj(t,e){const r=Bt({},yj,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 g=0;ge.length?e.length===1&&e[0]===80?1:-1:0}function Tj(t,e){let r=0;const n=t.score,i=e.score;for(;r0&&e[e.length-1]<0}const Ej={type:0,value:""},kj=/[a-zA-Z0-9_]/;function Cj(t){if(!t)return[[]];if(t==="/")return[[Ej]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(x){throw new Error(`ERR (${r})/"${u}": ${x}`)}let r=0,n=r;const i=[];let o;function a(){o&&i.push(o),o=[]}let l=0,d,u="",f="";function g(){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(;l{a(b)}:qd}function a(f){if(MS(f)){const g=n.get(f);g&&(n.delete(f),r.splice(r.indexOf(g),1),g.children.forEach(a),g.alias.forEach(a))}else{const g=r.indexOf(f);g>-1&&(r.splice(g,1),f.record.name&&n.delete(f.record.name),f.children.forEach(a),f.alias.forEach(a))}}function l(){return r}function d(f){let g=0;for(;g=0&&(f.record.path!==r[g].record.path||!NS(f,r[g]));)g++;r.splice(g,0,f),f.record.name&&!rk(f)&&n.set(f.record.name,f)}function u(f,g){let y,x={},m,p;if("name"in f&&f.name){if(y=n.get(f.name),!y)throw lc(1,{location:f});p=y.record.name,x=Bt(tk(g.params,y.keys.filter(b=>!b.optional).concat(y.parent?y.parent.keys.filter(b=>b.optional):[]).map(b=>b.name)),f.params&&tk(f.params,y.keys.map(b=>b.name))),m=y.stringify(x)}else if(f.path!=null)m=f.path,y=r.find(b=>b.re.test(m)),y&&(x=y.parse(m),p=y.record.name);else{if(y=g.name?n.get(g.name):r.find(b=>b.re.test(g.path)),!y)throw lc(1,{location:f,currentLocation:g});p=y.record.name,x=Bt({},g.params,f.params),m=y.stringify(x)}const _=[];let v=y;for(;v;)_.unshift(v.record),v=v.parent;return{name:p,path:m,params:x,matched:_,meta:Oj(_)}}return t.forEach(f=>o(f)),{addRoute:o,resolve:u,removeRoute:a,getRoutes:l,getRecordMatcher:i}}function tk(t,e){const r={};for(const n of e)n in t&&(r[n]=t[n]);return r}function Ij(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:$j(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 $j(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 rk(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function Oj(t){return t.reduce((e,r)=>Bt(e,r.meta),{})}function nk(t,e){const r={};for(const n in t)r[n]=n in e?e[n]:t[n];return r}function NS(t,e){return e.children.some(r=>r===t||NS(t,r))}function Pj(t){const e={};if(t===""||t==="?")return e;const n=(t[0]==="?"?t.slice(1):t).split("&");for(let i=0;io&&my(o)):[n&&my(n)]).forEach(o=>{o!==void 0&&(e+=(e.length?"&":"")+r,o!=null&&(e+="="+o))})}return e}function Rj(t){const e={};for(const r in t){const n=t[r];n!==void 0&&(e[r]=Ai(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return e}const Dj=Symbol(""),ok=Symbol(""),vm=Symbol(""),r1=Symbol(""),gy=Symbol("");function fd(){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 va(t,e,r,n,i,o=a=>a()){const a=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((l,d)=>{const u=y=>{y===!1?d(lc(4,{from:r,to:e})):y instanceof Error?d(y):_j(y)?d(lc(2,{from:e,to:y})):(a&&n.enterCallbacks[i]===a&&typeof y=="function"&&a.push(y),l())},f=o(()=>t.call(n&&n.instances[i],e,r,u));let g=Promise.resolve(f);t.length<3&&(g=g.then(u)),g.catch(y=>d(y))})}function Ng(t,e,r,n,i=o=>o()){const o=[];for(const a of t)for(const l in a.components){let d=a.components[l];if(!(e!=="beforeRouteEnter"&&!a.instances[l]))if(Lj(d)){const f=(d.__vccOpts||d)[e];f&&o.push(va(f,r,n,a,l,i))}else{let u=d();o.push(()=>u.then(f=>{if(!f)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${a.path}"`));const g=BU(f)?f.default:f;a.components[l]=g;const x=(g.__vccOpts||g)[e];return x&&va(x,r,n,a,l,i)()}))}}return o}function Lj(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function ak(t){const e=cn(vm),r=cn(r1),n=At(()=>{const d=ne(t.to);return e.resolve(d)}),i=At(()=>{const{matched:d}=n.value,{length:u}=d,f=d[u-1],g=r.matched;if(!f||!g.length)return-1;const y=g.findIndex(sc.bind(null,f));if(y>-1)return y;const x=sk(d[u-2]);return u>1&&sk(f)===x&&g[g.length-1].path!==x?g.findIndex(sc.bind(null,d[u-2])):y}),o=At(()=>i.value>-1&&zj(r.params,n.value.params)),a=At(()=>i.value>-1&&i.value===r.matched.length-1&&DS(r.params,n.value.params));function l(d={}){return Nj(d)?e[ne(t.replace)?"replace":"push"](ne(t.to)).catch(qd):Promise.resolve()}return{route:n,href:At(()=>n.value.href),isActive:o,isExactActive:a,navigate:l}}const Mj=Dt({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:ak,setup(t,{slots:e}){const r=zn(ak(t)),{options:n}=cn(vm),i=At(()=>({[lk(t.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[lk(t.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const o=e.default&&e.default(r);return t.custom?o:ji("a",{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:i.value},o)}}}),Fj=Mj;function Nj(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 zj(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(!Ai(i)||i.length!==n.length||n.some((o,a)=>o!==i[a]))return!1}return!0}function sk(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const lk=(t,e,r)=>t??e??r,qj=Dt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:r}){const n=cn(gy),i=At(()=>t.route||n.value),o=cn(ok,0),a=At(()=>{let u=ne(o);const{matched:f}=i.value;let g;for(;(g=f[u])&&!g.components;)u++;return u}),l=At(()=>i.value.matched[a.value]);Cd(ok,At(()=>a.value+1)),Cd(Dj,l),Cd(gy,i);const d=Le();return Rt(()=>[d.value,l.value,t.name],([u,f,g],[y,x,m])=>{f&&(f.instances[g]=u,x&&x!==f&&u&&u===y&&(f.leaveGuards.size||(f.leaveGuards=x.leaveGuards),f.updateGuards.size||(f.updateGuards=x.updateGuards))),u&&f&&(!x||!sc(f,x)||!y)&&(f.enterCallbacks[g]||[]).forEach(p=>p(u))},{flush:"post"}),()=>{const u=i.value,f=t.name,g=l.value,y=g&&g.components[f];if(!y)return ck(r.default,{Component:y,route:u});const x=g.props[f],m=x?x===!0?u.params:typeof x=="function"?x(u):x:null,_=ji(y,Bt({},m,e,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(g.instances[f]=null)},ref:d}));return ck(r.default,{Component:_,route:u})||_}}});function ck(t,e){if(!t)return null;const r=t(e);return r.length===1?r[0]:r}const Bj=qj;function Vj(t){const e=Sj(t.routes,t),r=t.parseQuery||Pj,n=t.stringifyQuery||ik,i=t.history,o=fd(),a=fd(),l=fd(),d=Td(na);let u=na;Sl&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Mg.bind(null,ee=>""+ee),g=Mg.bind(null,ej),y=Mg.bind(null,cu);function x(ee,le){let ue,De;return MS(ee)?(ue=e.getRecordMatcher(ee),De=le):De=ee,e.addRoute(De,ue)}function m(ee){const le=e.getRecordMatcher(ee);le&&e.removeRoute(le)}function p(){return e.getRoutes().map(ee=>ee.record)}function _(ee){return!!e.getRecordMatcher(ee)}function v(ee,le){if(le=Bt({},le||d.value),typeof ee=="string"){const A=Fg(r,ee,le.path),M=e.resolve({path:A.path},le),U=i.createHref(A.fullPath);return Bt(A,M,{params:y(M.params),hash:cu(A.hash),redirectedFrom:void 0,href:U})}let ue;if(ee.path!=null)ue=Bt({},ee,{path:Fg(r,ee.path,le.path).path});else{const A=Bt({},ee.params);for(const M in A)A[M]==null&&delete A[M];ue=Bt({},ee,{params:g(A)}),le.params=g(le.params)}const De=e.resolve(ue,le),Ke=ee.hash||"";De.params=f(y(De.params));const it=nj(n,Bt({},ee,{hash:XU(Ke),path:De.path})),k=i.createHref(it);return Bt({fullPath:it,hash:Ke,query:n===ik?Rj(ee.query):ee.query||{}},De,{redirectedFrom:void 0,href:k})}function b(ee){return typeof ee=="string"?Fg(r,ee,d.value.path):Bt({},ee)}function w(ee,le){if(u!==ee)return lc(8,{from:le,to:ee})}function E(ee){return P(ee)}function C(ee){return E(Bt(b(ee),{replace:!0}))}function S(ee){const le=ee.matched[ee.matched.length-1];if(le&&le.redirect){const{redirect:ue}=le;let De=typeof ue=="function"?ue(ee):ue;return typeof De=="string"&&(De=De.includes("?")||De.includes("#")?De=b(De):{path:De},De.params={}),Bt({query:ee.query,hash:ee.hash,params:De.path!=null?{}:ee.params},De)}}function P(ee,le){const ue=u=v(ee),De=d.value,Ke=ee.state,it=ee.force,k=ee.replace===!0,A=S(ue);if(A)return P(Bt(b(A),{state:typeof A=="object"?Bt({},Ke,A.state):Ke,force:it,replace:k}),le||ue);const M=ue;M.redirectedFrom=le;let U;return!it&&ij(n,De,ue)&&(U=lc(16,{to:M,from:De}),se(De,De,!0,!1)),(U?Promise.resolve(U):z(M,De)).catch(G=>fo(G)?fo(G,2)?G:Re(G):Se(G,M,De)).then(G=>{if(G){if(fo(G,2))return P(Bt({replace:k},b(G.to),{state:typeof G.to=="object"?Bt({},Ke,G.to.state):Ke,force:it}),le||M)}else G=q(M,De,!0,k,Ke);return j(M,De,G),G})}function R(ee,le){const ue=w(ee,le);return ue?Promise.reject(ue):Promise.resolve()}function D(ee){const le=Ce.values().next().value;return le&&typeof le.runWithContext=="function"?le.runWithContext(ee):ee()}function z(ee,le){let ue;const[De,Ke,it]=Uj(ee,le);ue=Ng(De.reverse(),"beforeRouteLeave",ee,le);for(const A of De)A.leaveGuards.forEach(M=>{ue.push(va(M,ee,le))});const k=R.bind(null,ee,le);return ue.push(k),Ge(ue).then(()=>{ue=[];for(const A of o.list())ue.push(va(A,ee,le));return ue.push(k),Ge(ue)}).then(()=>{ue=Ng(Ke,"beforeRouteUpdate",ee,le);for(const A of Ke)A.updateGuards.forEach(M=>{ue.push(va(M,ee,le))});return ue.push(k),Ge(ue)}).then(()=>{ue=[];for(const A of it)if(A.beforeEnter)if(Ai(A.beforeEnter))for(const M of A.beforeEnter)ue.push(va(M,ee,le));else ue.push(va(A.beforeEnter,ee,le));return ue.push(k),Ge(ue)}).then(()=>(ee.matched.forEach(A=>A.enterCallbacks={}),ue=Ng(it,"beforeRouteEnter",ee,le,D),ue.push(k),Ge(ue))).then(()=>{ue=[];for(const A of a.list())ue.push(va(A,ee,le));return ue.push(k),Ge(ue)}).catch(A=>fo(A,8)?A:Promise.reject(A))}function j(ee,le,ue){l.list().forEach(De=>D(()=>De(ee,le,ue)))}function q(ee,le,ue,De,Ke){const it=w(ee,le);if(it)return it;const k=le===na,A=Sl?history.state:{};ue&&(De||k?i.replace(ee.fullPath,Bt({scroll:k&&A&&A.scroll},Ke)):i.push(ee.fullPath,Ke)),d.value=ee,se(ee,le,ue,k),Re()}let J;function be(){J||(J=i.listen((ee,le,ue)=>{if(!je.listening)return;const De=v(ee),Ke=S(De);if(Ke){P(Bt(Ke,{replace:!0}),De).catch(qd);return}u=De;const it=d.value;Sl&&fj(YE(it.fullPath,ue.delta),mm()),z(De,it).catch(k=>fo(k,12)?k:fo(k,2)?(P(k.to,De).then(A=>{fo(A,20)&&!ue.delta&&ue.type===du.pop&&i.go(-1,!1)}).catch(qd),Promise.reject()):(ue.delta&&i.go(-ue.delta,!1),Se(k,De,it))).then(k=>{k=k||q(De,it,!1),k&&(ue.delta&&!fo(k,8)?i.go(-ue.delta,!1):ue.type===du.pop&&fo(k,20)&&i.go(-1,!1)),j(De,it,k)}).catch(qd)}))}let Oe=fd(),ge=fd(),ke;function Se(ee,le,ue){Re(ee);const De=ge.list();return De.length?De.forEach(Ke=>Ke(ee,le,ue)):console.error(ee),Promise.reject(ee)}function Be(){return ke&&d.value!==na?Promise.resolve():new Promise((ee,le)=>{Oe.add([ee,le])})}function Re(ee){return ke||(ke=!ee,be(),Oe.list().forEach(([le,ue])=>ee?ue(ee):le()),Oe.reset()),ee}function se(ee,le,ue,De){const{scrollBehavior:Ke}=t;if(!Sl||!Ke)return Promise.resolve();const it=!ue&&hj(YE(ee.fullPath,0))||(De||!ue)&&history.state&&history.state.scroll||null;return yo().then(()=>Ke(ee,le,it)).then(k=>k&&uj(k)).catch(k=>Se(k,ee,le))}const we=ee=>i.go(ee);let Pe;const Ce=new Set,je={currentRoute:d,listening:!0,addRoute:x,removeRoute:m,hasRoute:_,getRoutes:p,resolve:v,options:t,push:E,replace:C,go:we,back:()=>we(-1),forward:()=>we(1),beforeEach:o.add,beforeResolve:a.add,afterEach:l.add,onError:ge.add,isReady:Be,install(ee){const le=this;ee.component("RouterLink",Fj),ee.component("RouterView",Bj),ee.config.globalProperties.$router=le,Object.defineProperty(ee.config.globalProperties,"$route",{enumerable:!0,get:()=>ne(d)}),Sl&&!Pe&&d.value===na&&(Pe=!0,E(i.location).catch(Ke=>{}));const ue={};for(const Ke in na)Object.defineProperty(ue,Ke,{get:()=>d.value[Ke],enumerable:!0});ee.provide(vm,le),ee.provide(r1,gC(ue)),ee.provide(gy,d);const De=ee.unmount;Ce.add(ee),ee.unmount=function(){Ce.delete(ee),Ce.size<1&&(u=na,J&&J(),J=null,d.value=na,Pe=!1,ke=!1),De()}}};function Ge(ee){return ee.reduce((le,ue)=>le.then(()=>D(ue)),Promise.resolve())}return je}function Uj(t,e){const r=[],n=[],i=[],o=Math.max(e.matched.length,t.matched.length);for(let a=0;asc(u,l))?n.push(l):r.push(l));const d=t.matched[a];d&&(e.matched.find(u=>sc(u,d))||i.push(d))}return[r,n,i]}function jj(){return cn(vm)}function w1e(){return cn(r1)}let zS;const gm=t=>zS=t,qS=Symbol();function dk(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Vd;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Vd||(Vd={}));function Hj(){const t=Xb(!0),e=t.run(()=>Le({}));let r=[],n=[];const i=zp({install(o){gm(i),i._a=o,o.provide(qS,i),o.config.globalProperties.$pinia=i,n.forEach(a=>r.push(a)),n=[]},use(o){return!this._a&&!yN?n.push(o):r.push(o),this},_p:r,_a:null,_e:t,_s:new Map,state:e});return i}const Wj=()=>{};function uk(t,e,r,n=Wj){t.push(e);const i=()=>{const o=t.indexOf(e);o>-1&&(t.splice(o,1),n())};return!r&&oC()&&ZL(i),i}function xl(t,...e){t.slice().forEach(r=>{r(...e)})}const Gj=t=>t();function BS(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];dk(i)&&dk(n)&&t.hasOwnProperty(r)&&!Xt(n)&&!Ca(n)?t[r]=BS(i,n):t[r]=n}return t}const{assign:la}=Object;function Qj(t){return!!(Xt(t)&&t.effect)}function Kj(t,e,r,n){const{state:i,actions:o,getters:a}=e,l=r.state.value[t];let d;function u(){l||(r.state.value[t]=i?i():{});const f=qp(r.state.value[t]);return la(f,o,Object.keys(a||{}).reduce((g,y)=>(g[y]=zp(At(()=>{gm(r);const x=r._s.get(t);return a[y].call(x,x)})),g),{}))}return d=Yj(t,u,e,r,n,!0),d}function Yj(t,e,r={},n,i,o){let a;const l=la({actions:{}},r),d={deep:!0};let u,f,g=[],y=[],x;const m=n.state.value[t];Le({});let p;function _(R){let D;u=f=!1,typeof R=="function"?(R(n.state.value[t]),D={type:Vd.patchFunction,storeId:t,events:x}):(BS(n.state.value[t],R),D={type:Vd.patchObject,payload:R,storeId:t,events:x});const z=p=Symbol();yo().then(()=>{p===z&&(u=!0)}),f=!0,xl(g,D,n.state.value[t])}const v=function(){const{state:D}=r,z=D?D():{};this.$patch(j=>{la(j,z)})};function b(){a.stop(),g=[],y=[],n._s.delete(t)}function w(R,D){return function(){gm(n);const z=Array.from(arguments),j=[],q=[];function J(ge){j.push(ge)}function be(ge){q.push(ge)}xl(y,{args:z,name:R,store:C,after:J,onError:be});let Oe;try{Oe=D.apply(this&&this.$id===t?this:C,z)}catch(ge){throw xl(q,ge),ge}return Oe instanceof Promise?Oe.then(ge=>(xl(j,ge),ge)).catch(ge=>(xl(q,ge),Promise.reject(ge))):(xl(j,Oe),Oe)}}const E={_p:n,$id:t,$onAction:uk.bind(null,y),$patch:_,$reset:v,$subscribe(R,D={}){const z=uk(g,R,D.detached,()=>j()),j=a.run(()=>Rt(()=>n.state.value[t],q=>{(D.flush==="sync"?f:u)&&R({storeId:t,type:Vd.direct,events:x},q)},la({},d,D)));return z},$dispose:b},C=zn(E);n._s.set(t,C);const S=n._a&&n._a.runWithContext||Gj,P=n._e.run(()=>(a=Xb(),S(()=>a.run(e))));for(const R in P){const D=P[R];if(!(Xt(D)&&!Qj(D)||Ca(D))){if(typeof D=="function"){const z=w(R,D);P[R]=z,l.actions[R]=D}}}return la(C,P),la(St(C),P),Object.defineProperty(C,"$state",{get:()=>n.state.value[t],set:R=>{_(D=>{la(D,R)})}}),n._p.forEach(R=>{la(C,a.run(()=>R({store:C,app:n._a,pinia:n,options:l})))}),m&&o&&r.hydrate&&r.hydrate(C.$state,m),u=!0,f=!0,C}function VS(t,e,r){let n,i;typeof t=="string"?(n=t,i=e):(i=t,n=t.id);function o(a,l){const d=UC();return a=a||(d?cn(qS,null):null),a&&gm(a),a=zS,a._s.has(n)||Kj(n,i,a),a._s.get(n)}return o.$id=n,o}function Ms(t){{t=St(t);const e={};for(const r in t){const n=t[r];(Xt(n)||Ca(n))&&(e[r]=kM(t,r))}return e}}const Gs=VS({id:"main",state:()=>({fileShowHidden:!1,chatText:"",quick:"chat",quickContentWidth:400,sidebarWidth:240,sidebar2Width:360,noteExpand:!0,pages:[],audios:[],audioPlaying:null,lightboxInfoVisible:!1,videosCardView:!1,imagesCardView:!1,appSortBy:"NAME_ASC",fileSortBy:"NAME_ASC",imageSortBy:"DATE_DESC",videoSortBy:"DATE_DESC",audioSortBy:"DATE_DESC",json:"",qrCode:"",callNumber:""}),actions:{getCurrentPage(t){return this.pages.find(e=>e.path===t)||{path:t}},replaceRoute(t,e){const r=this.pages.findIndex(n=>n.path===t);r!==-1&&this.pages.splice(r,1,{path:e,sidebar:this.pages[r].sidebar})},updatePageSidebar(t,e){const r=this.pages.find(n=>n.path===t);r&&(r.sidebar=e)}}});var US=typeof global=="object"&&global&&global.Object===Object&&global,Xj=typeof self=="object"&&self&&self.Object===Object&&self,Ro=US||Xj||Function("return this")(),Gi=Ro.Symbol,jS=Object.prototype,Jj=jS.hasOwnProperty,Zj=jS.toString,hd=Gi?Gi.toStringTag:void 0;function eH(t){var e=Jj.call(t,hd),r=t[hd];try{t[hd]=void 0;var n=!0}catch{}var i=Zj.call(t);return n&&(e?t[hd]=r:delete t[hd]),i}var tH=Object.prototype,rH=tH.toString;function nH(t){return rH.call(t)}var iH="[object Null]",oH="[object Undefined]",fk=Gi?Gi.toStringTag:void 0;function Qs(t){return t==null?t===void 0?oH:iH:fk&&fk in Object(t)?eH(t):nH(t)}function Ba(t){return t!=null&&typeof t=="object"}var aH="[object Symbol]";function cc(t){return typeof t=="symbol"||Ba(t)&&Qs(t)==aH}function Ud(t,e){for(var r=-1,n=t==null?0:t.length,i=Array(n);++r0){if(++e>=MH)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function qH(t){return function(){return t}}var _k=function(){try{var t=Ys(Object,"defineProperty");return t({},"",{}),t}catch{}}(),BH=_k?function(t,e){return _k(t,"toString",{configurable:!0,enumerable:!1,value:qH(e),writable:!0})}:_m,VH=zH(BH);function GS(t,e,r,n){for(var i=t.length,o=r+-1;++o-1}var GH=9007199254740991,QH=/^(?:0|[1-9]\d*)$/;function ym(t,e){var r=typeof t;return e=e??GH,!!e&&(r=="number"||r!="symbol"&&QH.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=YH}function Iu(t){return t!=null&&i1(t.length)&&!WS(t)}function bk(t,e,r){if(!Fs(r))return!1;var n=typeof e;return(n=="number"?Iu(r)&&ym(e,r.length):n=="string"&&e in r)?n1(r[e],t):!1}var XH=Object.prototype;function JH(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||XH;return t===r}function ZH(t,e){for(var r=-1,n=Array(t);++r-1}function oG(t,e){var r=this.__data__,n=bm(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function Do(t){var e=-1,r=t==null?0:t.length;for(this.clear();++ei?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:d1(t,e,r)}var TG="\\ud800-\\udfff",EG="\\u0300-\\u036f",kG="\\ufe20-\\ufe2f",CG="\\u20d0-\\u20ff",AG=EG+kG+CG,SG="\\ufe0e\\ufe0f",IG="\\u200d",$G=RegExp("["+IG+TG+AG+SG+"]");function u1(t){return $G.test(t)}function OG(t){return t.split("")}var eI="\\ud800-\\udfff",PG="\\u0300-\\u036f",RG="\\ufe20-\\ufe2f",DG="\\u20d0-\\u20ff",LG=PG+RG+DG,MG="\\ufe0e\\ufe0f",FG="["+eI+"]",xy="["+LG+"]",wy="\\ud83c[\\udffb-\\udfff]",NG="(?:"+xy+"|"+wy+")",tI="[^"+eI+"]",rI="(?:\\ud83c[\\udde6-\\uddff]){2}",nI="[\\ud800-\\udbff][\\udc00-\\udfff]",zG="\\u200d",iI=NG+"?",oI="["+MG+"]?",qG="(?:"+zG+"(?:"+[tI,rI,nI].join("|")+")"+oI+iI+")*",BG=oI+iI+qG,VG="(?:"+[tI+xy+"?",xy,rI,nI,FG].join("|")+")",UG=RegExp(wy+"(?="+wy+")|"+VG+BG,"g");function jG(t){return t.match(UG)||[]}function HG(t){return u1(t)?jG(t):OG(t)}var WG=Math.ceil,GG=Math.max;function QG(t,e,r){e===void 0?e=1:e=GG(HS(e),0);var n=t==null?0:t.length;if(!n||e<1)return[];for(var i=0,o=0,a=Array(WG(n/e));il))return!1;var u=o.get(t),f=o.get(e);if(u&&f)return u==e&&f==t;var g=-1,y=!0,x=r&_Q?new hu:void 0;for(o.set(t,e),o.set(e,t);++g=sK&&(o=aI,a=!1,e=new hu(e));e:for(;++ie||o&&a&&d&&!l&&!u||n&&a&&d||!r&&d||!i)return 1;if(!n&&!o&&!u&&t=l)return d;var u=r[n];return d*(u=="desc"?-1:1)}}return t.index-e.index}function wK(t,e,r){e.length?e=Ud(e,function(o){return ui(o)?function(a){return wm(a,o.length===1?o[0]:o)}:o}):e=[_m];var n=-1;e=Ud(e,a1(h1));var i=uK(t,function(o,a,l){var d=Ud(e,function(u){return u(o)});return{criteria:d,index:++n,value:o}});return yK(i,function(o,a){return xK(o,a,r)})}var TK=dI("length"),uI="\\ud800-\\udfff",EK="\\u0300-\\u036f",kK="\\ufe20-\\ufe2f",CK="\\u20d0-\\u20ff",AK=EK+kK+CK,SK="\\ufe0e\\ufe0f",IK="["+uI+"]",Cy="["+AK+"]",Ay="\\ud83c[\\udffb-\\udfff]",$K="(?:"+Cy+"|"+Ay+")",fI="[^"+uI+"]",hI="(?:\\ud83c[\\udde6-\\uddff]){2}",pI="[\\ud800-\\udbff][\\udc00-\\udfff]",OK="\\u200d",mI=$K+"?",vI="["+SK+"]?",PK="(?:"+OK+"(?:"+[fI,hI,pI].join("|")+")"+vI+mI+")*",RK=vI+mI+PK,DK="(?:"+[fI+Cy+"?",Cy,hI,pI,IK].join("|")+")",zk=RegExp(Ay+"(?="+Ay+")|"+DK+RK,"g");function LK(t){for(var e=zk.lastIndex=0;zk.test(t);)++e;return e}function MK(t){return u1(t)?LK(t):TK(t)}var FK=Array.prototype,NK=FK.splice;function zK(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;ym(i)?NK.call(t,i,1):_K(t,i)}}return t}var qK=Math.floor,BK=Math.random;function VK(t,e){return t+qK(BK()*(e-t+1))}function Va(t,e){var r=[];if(!(t&&t.length))return r;var n=-1,i=[],o=t.length;for(e=h1(e);++n1&&bk(t,e[0],e[1])?e=[]:r>2&&bk(e[0],e[1],e[2])&&(e=[e[0]]),wK(t,xG(e),[])}),WK=30,GK="...",QK=/\w*$/;function KK(t,e){var r=WK,n=GK;if(Fs(e)){var i="separator"in e?e.separator:i;r="length"in e?HS(e.length):r,n="omission"in e?vp(e.omission):n}t=by(t);var o=t.length;if(u1(t)){var a=HG(t);o=a.length}if(r>=o)return t;var l=r-MK(n);if(l<1)return n;var d=a?wG(a,0,l).join(""):t.slice(0,l);if(i===void 0)return d+n;if(a&&(l+=d.length-l),gK(i)){if(t.slice(l).search(i)){var u,f=d;for(i.global||(i=RegExp(i.source,by(QK.exec(i))+"g")),i.lastIndex=0;u=i.exec(f);)var g=u.index;d=d.slice(0,g===void 0?l:g)}}else if(t.indexOf(vp(i),l)!=l){var y=d.lastIndexOf(i);y>-1&&(d=d.slice(0,y))}return d+n}var YK=QS(function(t,e){return aK(t)?lK(t,e):[]});const XK=/(?:[^\s"]+|"[^"]*")+/g,qk=":",_p="NOT",_I={"=":"!=",">=":"<",">":"<=","!=":"=","<=":">","<":">=",in:"nin",nin:"in"},JK=YK($u(_I),"in","nin");function ZK(t){return t.match(XK)}function Bk(t){return t.replace(/['"]+/g,"")}function eY(t){return JK.find(e=>t.indexOf(e)===0)||""}function tY(t){const e=t.split(qk),r=Bk(e[0]),n=Bk(e.slice(1).join(qk)),i=eY(n),o=n.slice(i.length);return{length:e.length,field:r,query:n,op:i,value:o}}function rY(t){if(t==_p)return{name:"",op:_p,value:""};const e=tY(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 nY=t=>{var n;const e=(n=ZK(t))==null?void 0:n.map(i=>rY(i));if(!e)return[];let r=!1;return e.forEach(i=>{i.op==_p?r=!0:r&&(i.op=_I[i.op]||"",r=!1)}),e.filter(i=>i.op!==_p)},Tm=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(" ")},iY={NOTE:"notes",AUDIO:"audios",IMAGE:"images",VIDEO:"videos",FEED_ENTRY:"feeds",SMS:"messages",CALL:"calls",CONTACT:"contacts",AI_CHAT:"aichats"},oY=["onClick"],aY={key:1,class:"tags"},sY=["onClick"],lY=Dt({__name:"ItemTags",props:{type:{type:String},onlyLinks:{type:Boolean,default:!1},tags:{type:Array,default:()=>[],required:!0}},setup(t){const e=t,r=Gs();function n(i){if(!e.type)return;const o=Tm([{name:"tag_id",op:"",value:i.id}]);z1(r,`/${iY[e.type]}?q=${fm(o)}`)}return(i,o)=>t.onlyLinks?(Y(!0),te($t,{key:0},ci(t.tags,a=>(Y(),te("a",{key:a.id,onClick:yt(l=>n(a),["stop","prevent"])},"#"+Me(a.name),9,oY))),128)):t.tags.length?(Y(),te("div",aY,[(Y(!0),te($t,null,ci(t.tags,a=>(Y(),te("a",{key:a.id,onClick:yt(l=>n(a),["stop","prevent"])},"#"+Me(a.name),9,sY))),128))])):kt("",!0)}}),cY=kn(lY,[["__scopeId","data-v-50fb9085"]]),dY={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},uY=N("path",{fill:"currentColor",d:"m20.175 13.15l-3.525 5q-.275.4-.712.625T15 19H5q-.825 0-1.412-.587T3 17V7q0-.825.588-1.412T5 5h10q.5 0 .938.225t.712.625l3.525 5q.375.525.375 1.15t-.375 1.15M15 17l3.55-5L15 7H5v10zM5 7v10z"},null,-1),fY=[uY];function hY(t,e){return Y(),te("svg",dY,[...fY])}const pY={name:"material-symbols-label-outline-rounded",render:hY},mY={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},vY=N("path",{fill:"currentColor",d:"M12 15.575q-.2 0-.375-.062T11.3 15.3l-3.6-3.6q-.3-.3-.288-.7t.288-.7q.3-.3.713-.312t.712.287L11 12.15V5q0-.425.288-.712T12 4t.713.288T13 5v7.15l1.875-1.875q.3-.3.713-.288t.712.313q.275.3.288.7t-.288.7l-3.6 3.6q-.15.15-.325.213t-.375.062M6 20q-.825 0-1.412-.587T4 18v-2q0-.425.288-.712T5 15t.713.288T6 16v2h12v-2q0-.425.288-.712T19 15t.713.288T20 16v2q0 .825-.587 1.413T18 20z"},null,-1),gY=[vY];function _Y(t,e){return Y(),te("svg",mY,[...gY])}const yY={name:"material-symbols-download-rounded",render:_Y},bY={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},xY=N("path",{fill:"currentColor",d:"M7 21q-.825 0-1.412-.587T5 19V6q-.425 0-.712-.288T4 5t.288-.712T5 4h4q0-.425.288-.712T10 3h4q.425 0 .713.288T15 4h4q.425 0 .713.288T20 5t-.288.713T19 6v13q0 .825-.587 1.413T17 21zM17 6H7v13h10zm-7 11q.425 0 .713-.288T11 16V9q0-.425-.288-.712T10 8t-.712.288T9 9v7q0 .425.288.713T10 17m4 0q.425 0 .713-.288T15 16V9q0-.425-.288-.712T14 8t-.712.288T13 9v7q0 .425.288.713T14 17M7 6v13z"},null,-1),wY=[xY];function TY(t,e){return Y(),te("svg",bY,[...wY])}const EY={name:"material-symbols-delete-outline-rounded",render:TY},kY={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},CY=N("path",{fill:"currentColor",d:"M7 21q-.825 0-1.412-.587T5 19V6q-.425 0-.712-.288T4 5t.288-.712T5 4h4q0-.425.288-.712T10 3h4q.425 0 .713.288T15 4h4q.425 0 .713.288T20 5t-.288.713T19 6v13q0 .825-.587 1.413T17 21zM17 6H7v13h10zM7 6v13zm4 5.85V15q0 .425.288.713T12 16t.713-.288T13 15v-3.15l.9.875q.275.275.688.275t.712-.3q.275-.275.275-.7t-.275-.7l-2.6-2.6q-.3-.3-.7-.3t-.7.3l-2.6 2.6q-.275.275-.287.688t.287.712q.275.275.688.288t.712-.263z"},null,-1),AY=[CY];function SY(t,e){return Y(),te("svg",kY,[...AY])}const IY={name:"material-symbols-restore-from-trash-outline-rounded",render:SY},$Y=["disabled"],OY=N("md-ripple",null,null,-1),PY={key:0,indeterminate:""},RY=Dt({__name:"IconButton",props:{loading:{type:Boolean}},setup(t){return(e,r)=>(Y(),te("button",{class:"btn-icon",disabled:t.loading},[OY,t.loading?(Y(),te("md-circular-progress",PY)):v_(e.$slots,"icon",{key:1})],8,$Y))}}),DY={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},LY=N("path",{fill:"currentColor",d:"M7 21q-.825 0-1.412-.587T5 19V6q-.425 0-.712-.288T4 5t.288-.712T5 4h4q0-.425.288-.712T10 3h4q.425 0 .713.288T15 4h4q.425 0 .713.288T20 5t-.288.713T19 6v13q0 .825-.587 1.413T17 21zM17 6H7v13h10zM7 6v13zm5 7.9l1.9 1.9q.275.275.7.275t.7-.275t.275-.7t-.275-.7l-1.9-1.9l1.9-1.9q.275-.275.275-.7t-.275-.7t-.7-.275t-.7.275L12 11.1l-1.9-1.9q-.275-.275-.7-.275t-.7.275t-.275.7t.275.7l1.9 1.9l-1.9 1.9q-.275.275-.275.7t.275.7t.7.275t.7-.275z"},null,-1),MY=[LY];function FY(t,e){return Y(),te("svg",DY,[...MY])}const p1={name:"material-symbols-delete-forever-outline-rounded",render:FY};function NY(t,e,r){let n=null;const i=Le(!1);Qr(()=>{(t.content!==void 0||r.value)&&(i.value=!0),n=new MutationObserver(o),n.observe(e.value,{childList:!0,subtree:!0})}),$i(()=>n==null?void 0:n.disconnect()),Rt(r,a=>{a?i.value=!0:i.value=!1});const o=()=>{t.content?i.value=!0:i.value=!1};return{hasContent:i}}function fi(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function zs(t){var e=fi(t).Element;return t instanceof e||t instanceof Element}function li(t){var e=fi(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function m1(t){if(typeof ShadowRoot>"u")return!1;var e=fi(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var Ps=Math.max,yp=Math.min,dc=Math.round;function Sy(){var t=navigator.userAgentData;return t!=null&&t.brands?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function yI(){return!/^((?!chrome|android).)*safari/i.test(Sy())}function uc(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),i=1,o=1;e&&li(t)&&(i=t.offsetWidth>0&&dc(n.width)/t.offsetWidth||1,o=t.offsetHeight>0&&dc(n.height)/t.offsetHeight||1);var a=zs(t)?fi(t):window,l=a.visualViewport,d=!yI()&&r,u=(n.left+(d&&l?l.offsetLeft:0))/i,f=(n.top+(d&&l?l.offsetTop:0))/o,g=n.width/i,y=n.height/o;return{width:g,height:y,top:f,right:u+g,bottom:f+y,left:u,x:u,y:f}}function v1(t){var e=fi(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function zY(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function qY(t){return t===fi(t)||!li(t)?v1(t):zY(t)}function Qi(t){return t?(t.nodeName||"").toLowerCase():null}function Ka(t){return((zs(t)?t.ownerDocument:t.document)||window.document).documentElement}function g1(t){return uc(Ka(t)).left+v1(t).scrollLeft}function Ao(t){return fi(t).getComputedStyle(t)}function _1(t){var e=Ao(t),r=e.overflow,n=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function BY(t){var e=t.getBoundingClientRect(),r=dc(e.width)/t.offsetWidth||1,n=dc(e.height)/t.offsetHeight||1;return r!==1||n!==1}function VY(t,e,r){r===void 0&&(r=!1);var n=li(e),i=li(e)&&BY(e),o=Ka(e),a=uc(t,i,r),l={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(n||!n&&!r)&&((Qi(e)!=="body"||_1(o))&&(l=qY(e)),li(e)?(d=uc(e,!0),d.x+=e.clientLeft,d.y+=e.clientTop):o&&(d.x=g1(o))),{x:a.left+l.scrollLeft-d.x,y:a.top+l.scrollTop-d.y,width:a.width,height:a.height}}function y1(t){var e=uc(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 Em(t){return Qi(t)==="html"?t:t.assignedSlot||t.parentNode||(m1(t)?t.host:null)||Ka(t)}function bI(t){return["html","body","#document"].indexOf(Qi(t))>=0?t.ownerDocument.body:li(t)&&_1(t)?t:bI(Em(t))}function Hd(t,e){var r;e===void 0&&(e=[]);var n=bI(t),i=n===((r=t.ownerDocument)==null?void 0:r.body),o=fi(n),a=i?[o].concat(o.visualViewport||[],_1(n)?n:[]):n,l=e.concat(a);return i?l:l.concat(Hd(Em(a)))}function UY(t){return["table","td","th"].indexOf(Qi(t))>=0}function Vk(t){return!li(t)||Ao(t).position==="fixed"?null:t.offsetParent}function jY(t){var e=/firefox/i.test(Sy()),r=/Trident/i.test(Sy());if(r&&li(t)){var n=Ao(t);if(n.position==="fixed")return null}var i=Em(t);for(m1(i)&&(i=i.host);li(i)&&["html","body"].indexOf(Qi(i))<0;){var o=Ao(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 Pu(t){for(var e=fi(t),r=Vk(t);r&&UY(r)&&Ao(r).position==="static";)r=Vk(r);return r&&(Qi(r)==="html"||Qi(r)==="body"&&Ao(r).position==="static")?e:r||jY(t)||e}var Fn="top",Si="bottom",Ii="right",Nn="left",b1="auto",Ru=[Fn,Si,Ii,Nn],fc="start",pu="end",HY="clippingParents",xI="viewport",pd="popper",WY="reference",Uk=Ru.reduce(function(t,e){return t.concat([e+"-"+fc,e+"-"+pu])},[]),wI=[].concat(Ru,[b1]).reduce(function(t,e){return t.concat([e,e+"-"+fc,e+"-"+pu])},[]),GY="beforeRead",QY="read",KY="afterRead",YY="beforeMain",XY="main",JY="afterMain",ZY="beforeWrite",eX="write",tX="afterWrite",rX=[GY,QY,KY,YY,XY,JY,ZY,eX,tX];function nX(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(l){if(!r.has(l)){var d=e.get(l);d&&i(d)}}),n.push(o)}return t.forEach(function(o){r.has(o.name)||i(o)}),n}function iX(t){var e=nX(t);return rX.reduce(function(r,n){return r.concat(e.filter(function(i){return i.phase===n}))},[])}function oX(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function Bi(t){return t.split("-")[0]}function aX(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 sX(t,e){var r=fi(t),n=Ka(t),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,l=0,d=0;if(i){o=i.width,a=i.height;var u=yI();(u||!u&&e==="fixed")&&(l=i.offsetLeft,d=i.offsetTop)}return{width:o,height:a,x:l+g1(t),y:d}}function lX(t){var e,r=Ka(t),n=v1(t),i=(e=t.ownerDocument)==null?void 0:e.body,o=Ps(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Ps(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-n.scrollLeft+g1(t),d=-n.scrollTop;return Ao(i||r).direction==="rtl"&&(l+=Ps(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:l,y:d}}function TI(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&m1(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Iy(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function cX(t,e){var r=uc(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 jk(t,e,r){return e===xI?Iy(sX(t,r)):zs(e)?cX(e,r):Iy(lX(Ka(t)))}function dX(t){var e=Hd(Em(t)),r=["absolute","fixed"].indexOf(Ao(t).position)>=0,n=r&&li(t)?Pu(t):t;return zs(n)?e.filter(function(i){return zs(i)&&TI(i,n)&&Qi(i)!=="body"}):[]}function uX(t,e,r,n){var i=e==="clippingParents"?dX(t):[].concat(e),o=[].concat(i,[r]),a=o[0],l=o.reduce(function(d,u){var f=jk(t,u,n);return d.top=Ps(f.top,d.top),d.right=yp(f.right,d.right),d.bottom=yp(f.bottom,d.bottom),d.left=Ps(f.left,d.left),d},jk(t,a,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function hc(t){return t.split("-")[1]}function x1(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function EI(t){var e=t.reference,r=t.element,n=t.placement,i=n?Bi(n):null,o=n?hc(n):null,a=e.x+e.width/2-r.width/2,l=e.y+e.height/2-r.height/2,d;switch(i){case Fn:d={x:a,y:e.y-r.height};break;case Si:d={x:a,y:e.y+e.height};break;case Ii:d={x:e.x+e.width,y:l};break;case Nn:d={x:e.x-r.width,y:l};break;default:d={x:e.x,y:e.y}}var u=i?x1(i):null;if(u!=null){var f=u==="y"?"height":"width";switch(o){case fc:d[u]=d[u]-(e[f]/2-r[f]/2);break;case pu:d[u]=d[u]+(e[f]/2-r[f]/2);break}}return d}function kI(){return{top:0,right:0,bottom:0,left:0}}function CI(t){return Object.assign({},kI(),t)}function AI(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}function w1(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,l=r.boundary,d=l===void 0?HY:l,u=r.rootBoundary,f=u===void 0?xI:u,g=r.elementContext,y=g===void 0?pd:g,x=r.altBoundary,m=x===void 0?!1:x,p=r.padding,_=p===void 0?0:p,v=CI(typeof _!="number"?_:AI(_,Ru)),b=y===pd?WY:pd,w=t.rects.popper,E=t.elements[m?b:y],C=uX(zs(E)?E:E.contextElement||Ka(t.elements.popper),d,f,a),S=uc(t.elements.reference),P=EI({reference:S,element:w,strategy:"absolute",placement:i}),R=Iy(Object.assign({},w,P)),D=y===pd?R:S,z={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},j=t.modifiersData.offset;if(y===pd&&j){var q=j[i];Object.keys(z).forEach(function(J){var be=[Ii,Si].indexOf(J)>=0?1:-1,Oe=[Fn,Si].indexOf(J)>=0?"y":"x";z[J]+=q[Oe]*be})}return z}var Hk={placement:"bottom",modifiers:[],strategy:"absolute"};function Wk(){for(var t=arguments.length,e=new Array(t),r=0;rr?r:n}function SX(t){var e=t.state,r=t.options,n=t.name,i=r.mainAxis,o=i===void 0?!0:i,a=r.altAxis,l=a===void 0?!1:a,d=r.boundary,u=r.rootBoundary,f=r.altBoundary,g=r.padding,y=r.tether,x=y===void 0?!0:y,m=r.tetherOffset,p=m===void 0?0:m,_=w1(e,{boundary:d,rootBoundary:u,padding:g,altBoundary:f}),v=Bi(e.placement),b=hc(e.placement),w=!b,E=x1(v),C=CX(E),S=e.modifiersData.popperOffsets,P=e.rects.reference,R=e.rects.popper,D=typeof p=="function"?p(Object.assign({},e.rects,{placement:e.placement})):p,z=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),j=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,q={x:0,y:0};if(S){if(o){var J,be=E==="y"?Fn:Nn,Oe=E==="y"?Si:Ii,ge=E==="y"?"height":"width",ke=S[E],Se=ke+_[be],Be=ke-_[Oe],Re=x?-R[ge]/2:0,se=b===fc?P[ge]:R[ge],we=b===fc?-R[ge]:-P[ge],Pe=e.elements.arrow,Ce=x&&Pe?y1(Pe):{width:0,height:0},je=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:kI(),Ge=je[be],ee=je[Oe],le=Wd(0,P[ge],Ce[ge]),ue=w?P[ge]/2-Re-le-Ge-z.mainAxis:se-le-Ge-z.mainAxis,De=w?-P[ge]/2+Re+le+ee+z.mainAxis:we+le+ee+z.mainAxis,Ke=e.elements.arrow&&Pu(e.elements.arrow),it=Ke?E==="y"?Ke.clientTop||0:Ke.clientLeft||0:0,k=(J=j==null?void 0:j[E])!=null?J:0,A=ke+ue-k-it,M=ke+De-k,U=Wd(x?yp(Se,A):Se,ke,x?Ps(Be,M):Be);S[E]=U,q[E]=U-ke}if(l){var G,ae=E==="x"?Fn:Nn,Ae=E==="x"?Si:Ii,fe=S[C],_e=C==="y"?"height":"width",ie=fe+_[ae],W=fe-_[Ae],B=[Fn,Nn].indexOf(v)!==-1,xe=(G=j==null?void 0:j[C])!=null?G:0,Ie=B?ie:fe-P[_e]-R[_e]-xe+z.altAxis,ze=B?fe+P[_e]+R[_e]-xe-z.altAxis:W,Ye=x&&B?AX(Ie,fe,ze):Wd(x?Ie:ie,fe,x?ze:W);S[C]=Ye,q[C]=Ye-fe}e.modifiersData[n]=q}}const IX={name:"preventOverflow",enabled:!0,phase:"main",fn:SX,requiresIfExists:["offset"]};function $X(t,e,r){var n=Bi(t),i=[Nn,Fn].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,a=o[0],l=o[1];return a=a||0,l=(l||0)*i,[Nn,Ii].indexOf(n)>=0?{x:l,y:a}:{x:a,y:l}}function OX(t){var e=t.state,r=t.options,n=t.name,i=r.offset,o=i===void 0?[0,0]:i,a=wI.reduce(function(f,g){return f[g]=$X(g,e.rects,o),f},{}),l=a[e.placement],d=l.x,u=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=d,e.modifiersData.popperOffsets.y+=u),e.modifiersData[n]=a}const PX={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:OX};var RX=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,CI(typeof e!="number"?e:AI(e,Ru))};function DX(t){var e,r=t.state,n=t.name,i=t.options,o=r.elements.arrow,a=r.modifiersData.popperOffsets,l=Bi(r.placement),d=x1(l),u=[Nn,Ii].indexOf(l)>=0,f=u?"height":"width";if(!(!o||!a)){var g=RX(i.padding,r),y=y1(o),x=d==="y"?Fn:Nn,m=d==="y"?Si:Ii,p=r.rects.reference[f]+r.rects.reference[d]-a[d]-r.rects.popper[f],_=a[d]-r.rects.reference[d],v=Pu(o),b=v?d==="y"?v.clientHeight||0:v.clientWidth||0:0,w=p/2-_/2,E=g[x],C=b-y[f]-g[m],S=b/2-y[f]/2+w,P=Wd(E,S,C),R=d;r.modifiersData[n]=(e={},e[R]=P,e.centerOffset=P-S,e)}}function LX(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)||TI(e.elements.popper,i)&&(e.elements.arrow=i))}const MX={name:"arrow",enabled:!0,phase:"main",fn:DX,effect:LX,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};var FX={left:"right",right:"left",bottom:"top",top:"bottom"};function Wh(t){return t.replace(/left|right|bottom|top/g,function(e){return FX[e]})}var NX={start:"end",end:"start"};function Qk(t){return t.replace(/start|end/g,function(e){return NX[e]})}function zX(t,e){e===void 0&&(e={});var r=e,n=r.placement,i=r.boundary,o=r.rootBoundary,a=r.padding,l=r.flipVariations,d=r.allowedAutoPlacements,u=d===void 0?wI:d,f=hc(n),g=f?l?Uk:Uk.filter(function(m){return hc(m)===f}):Ru,y=g.filter(function(m){return u.indexOf(m)>=0});y.length===0&&(y=g);var x=y.reduce(function(m,p){return m[p]=w1(t,{placement:p,boundary:i,rootBoundary:o,padding:a})[Bi(p)],m},{});return Object.keys(x).sort(function(m,p){return x[m]-x[p]})}function qX(t){if(Bi(t)===b1)return[];var e=Wh(t);return[Qk(t),e,Qk(e)]}function BX(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,l=a===void 0?!0:a,d=r.fallbackPlacements,u=r.padding,f=r.boundary,g=r.rootBoundary,y=r.altBoundary,x=r.flipVariations,m=x===void 0?!0:x,p=r.allowedAutoPlacements,_=e.options.placement,v=Bi(_),b=v===_,w=d||(b||!m?[Wh(_)]:qX(_)),E=[_].concat(w).reduce(function(Ce,je){return Ce.concat(Bi(je)===b1?zX(e,{placement:je,boundary:f,rootBoundary:g,padding:u,flipVariations:m,allowedAutoPlacements:p}):je)},[]),C=e.rects.reference,S=e.rects.popper,P=new Map,R=!0,D=E[0],z=0;z=0,Oe=be?"width":"height",ge=w1(e,{placement:j,boundary:f,rootBoundary:g,altBoundary:y,padding:u}),ke=be?J?Ii:Nn:J?Si:Fn;C[Oe]>S[Oe]&&(ke=Wh(ke));var Se=Wh(ke),Be=[];if(o&&Be.push(ge[q]<=0),l&&Be.push(ge[ke]<=0,ge[Se]<=0),Be.every(function(Ce){return Ce})){D=j,R=!1;break}P.set(j,Be)}if(R)for(var Re=m?3:1,se=function(je){var Ge=E.find(function(ee){var le=P.get(ee);if(le)return le.slice(0,je).every(function(ue){return ue})});if(Ge)return D=Ge,"break"},we=Re;we>0;we--){var Pe=se(we);if(Pe==="break")break}e.placement!==D&&(e.modifiersData[n]._skip=!0,e.placement=D,e.reset=!0)}}const VX={name:"flip",enabled:!0,phase:"main",fn:BX,requiresIfExists:["offset"],data:{_skip:!1}};function UX({emit:t,placement:e,popperNode:r,triggerNode:n}){const i=zn({isOpen:!1,popperInstance:null}),o=g=>{var y;(y=i.popperInstance)==null||y.setOptions(x=>({...x,modifiers:[...x.modifiers,{name:"eventListeners",enabled:g}]}))},a=()=>o(!0),l=()=>o(!1),d=()=>{i.isOpen&&(i.isOpen=!1,t("close:popper"))},u=()=>{i.isOpen||(i.isOpen=!0,t("open:popper"))};Rt([()=>i.isOpen,e],async([g])=>{g?(await f(),a()):l()});const f=async()=>{var g;await yo(),i.popperInstance=kX(n.value,r.value,{placement:e.value,modifiers:[IX,MX,{name:"arrow",options:{padding:0}},VX,{name:"flip",enabled:!0},PX,{name:"offset",options:{offset:[0,8]}}]}),(g=i.popperInstance)==null||g.update()};return $i(()=>{var g;(g=i.popperInstance)==null||g.destroy()}),{...qp(i),open:u,close:d}}const jX=Dt({__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},content:{type:String,default:null}},emits:["open:popper","close:popper"],setup(t,{emit:e}){qF(S=>({"2a646406":t.zIndex}));const r=e,n=eF(),i=t,o=Le(null),a=Le(null),l=Le(null),d=Le(!1),{content:u,placement:f,show:g}=qp(i),{isOpen:y,open:x,close:m}=UX({emit:r,placement:f,popperNode:a,triggerNode:l}),{hasContent:p}=NY(n,a,u),_=At(()=>g.value!==null),v=At(()=>!p.value),b=At(()=>y.value&&!v.value),w=async()=>{v.value||_.value||x()},E=async()=>{_.value||m()},C=()=>{y.value?E():w()};return Rt([p],([S])=>{y.value&&!S&&m()}),Rt(y,S=>{d.value=S}),qM(()=>{_.value&&(g.value?x():m())}),(S,P)=>{const R=Oo("click-away");return ot((Y(),te("div",{class:"inline-block",onMouseleave:P[1]||(P[1]=D=>t.hover&&E()),ref_key:"popperContainerNode",ref:o},[N("div",{ref_key:"triggerNode",ref:l,onMouseover:P[0]||(P[0]=D=>t.hover&&w()),onClick:yt(C,["stop","prevent"]),onFocus:w,onKeyup:El(E,["esc"])},[v_(S.$slots,"default",{},void 0,!0)],544),$e(Yp,{name:"fade"},{default:Ir(()=>[ot(N("div",{class:"popper",ref_key:"popperNode",ref:a,onClick:yt(()=>{},["stop"])},[v_(S.$slots,"content",{close:ne(m),isOpen:d.value},()=>[ai(Me(ne(u)),1)],!0)],512),[[bn,b.value]])]),_:3})],32)),[[R,E]])}}}),T1=kn(jX,[["__scopeId","data-v-5e47d4a6"]]),HX={class:"nowrap"},WX={class:"view-raw"},GX=Dt({__name:"FieldId",props:{id:{type:[String,Number],required:!0},raw:{type:[String,Object],default:""}},setup(t){return(e,r)=>{const n=T1;return Y(),or(n,null,{content:Ir(()=>[N("pre",WX,Me(t.raw),1)]),default:Ir(()=>[N("span",HX,Me(t.id),1)]),_:1})}}}),QX={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},KX=N("path",{fill:"currentColor",d:"M12.6 12L8.7 8.1q-.275-.275-.275-.7t.275-.7t.7-.275t.7.275l4.6 4.6q.15.15.213.325t.062.375t-.062.375t-.213.325l-4.6 4.6q-.275.275-.7.275t-.7-.275t-.275-.7t.275-.7z"},null,-1),YX=[KX];function XX(t,e){return Y(),te("svg",QX,[...YX])}const JX={name:"material-symbols-chevron-right-rounded",render:XX},ZX={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},eJ=N("path",{fill:"currentColor",d:"m10.8 12l3.9 3.9q.275.275.275.7t-.275.7t-.7.275t-.7-.275l-4.6-4.6q-.15-.15-.212-.325T8.425 12t.063-.375t.212-.325l4.6-4.6q.275-.275.7-.275t.7.275t.275.7t-.275.7z"},null,-1),tJ=[eJ];function rJ(t,e){return Y(),te("svg",ZX,[...tJ])}const nJ={name:"material-symbols-chevron-left-rounded",render:rJ},iJ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},oJ=N("path",{fill:"currentColor",d:"M12 17q.425 0 .713-.288T13 16v-4q0-.425-.288-.712T12 11t-.712.288T11 12v4q0 .425.288.713T12 17m0-8q.425 0 .713-.288T13 8t-.288-.712T12 7t-.712.288T11 8t.288.713T12 9m0 13q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12t-.788 3.9t-2.137 3.175t-3.175 2.138T12 22m0-2q3.35 0 5.675-2.325T20 12t-2.325-5.675T12 4T6.325 6.325T4 12t2.325 5.675T12 20m0-8"},null,-1),aJ=[oJ];function sJ(t,e){return Y(),te("svg",iJ,[...aJ])}const lJ={name:"material-symbols-info-outline-rounded",render:sJ},cJ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},dJ=N("path",{fill:"currentColor",d:"M19.75 12.05q-.3 0-.587-.213T18.8 11.3q-.125-.475-.312-.937t-.438-.888q-.175-.275-.125-.612T18.2 8.3q.375-.35.863-.3t.737.475q.325.55.575 1.125t.4 1.2q.125.5-.187.875t-.838.375m-6.7 8.7q0-.3.213-.587t.537-.363q.475-.125.938-.312t.887-.438q.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-.85m5.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-.737.475t-.863-.3m-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.375t-.062.375t-.213.325l-2.6 2.6q-.275.275-.7.275t-.7-.275t-.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.538.35t.212.6q0 .525-.363.825t-.862.175"},null,-1),uJ=[dJ];function fJ(t,e){return Y(),te("svg",cJ,[...uJ])}const hJ={name:"material-symbols-rotate-right-rounded",render:fJ},pJ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},mJ=N("path",{fill:"currentColor",d:"M4.25 12.05q-.525 0-.837-.375t-.188-.875q.15-.625.4-1.2T4.2 8.475q.25-.425.738-.475t.862.3q.225.225.275.563t-.125.612q-.25.425-.437.888T5.2 11.3q-.075.325-.363.538t-.587.212m6.7 8.7q0 .55-.375.85t-.875.175q-.6-.175-1.175-.412t-1.15-.563q-.425-.25-.475-.737t.3-.863q.225-.225.563-.275t.612.125q.425.25.888.438t.937.312q.325.075.538.363t.212.587M5.8 17.8q-.375.35-.862.3t-.738-.475q-.325-.575-.562-1.15T3.225 15.3q-.125-.5.175-.875t.85-.375q.325 0 .6.213t.35.537q.125.475.312.938t.438.887q.175.275.125.625t-.275.55m8.375 3.95q-.5.125-.862-.175t-.363-.825q0-.325.213-.6t.537-.35q2.3-.6 3.775-2.463t1.475-4.287q0-2.925-2.037-4.962T11.95 6.05h-.2l.9.9q.275.275.275.7t-.275.7t-.7.275t-.7-.275l-2.6-2.6q-.15-.15-.213-.325t-.062-.375t.063-.375t.212-.325l2.575-2.6q.3-.275.725-.275t.7.275q.3.3.3.725t-.275.7l-.875.875h.15q3.75 0 6.375 2.625t2.625 6.375q0 3.1-1.9 5.5t-4.875 3.2"},null,-1),vJ=[mJ];function gJ(t,e){return Y(),te("svg",pJ,[...vJ])}const _J={name:"material-symbols-rotate-left-rounded",render:gJ},yJ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},bJ=N("path",{fill:"currentColor",d:"M17 15h-2q-.425 0-.712.288T14 16t.288.713T15 17h3q.425 0 .713-.288T19 16v-3q0-.425-.288-.712T18 12t-.712.288T17 13zM7 9h2q.425 0 .713-.288T10 8t-.288-.712T9 7H6q-.425 0-.712.288T5 8v3q0 .425.288.713T6 12t.713-.288T7 11zM4 20q-.825 0-1.412-.587T2 18V6q0-.825.588-1.412T4 4h16q.825 0 1.413.588T22 6v12q0 .825-.587 1.413T20 20zm0-2h16V6H4zm0 0V6z"},null,-1),xJ=[bJ];function wJ(t,e){return Y(),te("svg",yJ,[...xJ])}const TJ={name:"material-symbols-aspect-ratio-outline-rounded",render:wJ},EJ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},kJ=N("path",{fill:"currentColor",d:"M8 10.5q-.425 0-.712-.288T7 9.5t.288-.712T8 8.5h3q.425 0 .713.288T12 9.5t-.288.713T11 10.5zM9.5 16q-2.725 0-4.612-1.888T3 9.5t1.888-4.612T9.5 3t4.613 1.888T16 9.5q0 1.1-.35 2.075T14.7 13.3l5.6 5.6q.275.275.275.7t-.275.7t-.7.275t-.7-.275l-5.6-5.6q-.75.6-1.725.95T9.5 16m0-2q1.875 0 3.188-1.312T14 9.5t-1.312-3.187T9.5 5T6.313 6.313T5 9.5t1.313 3.188T9.5 14"},null,-1),CJ=[kJ];function AJ(t,e){return Y(),te("svg",EJ,[...CJ])}const SJ={name:"material-symbols-zoom-out-rounded",render:AJ},IJ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},$J=N("path",{fill:"currentColor",d:"M8.5 10.5h-1q-.425 0-.712-.288T6.5 9.5t.288-.712T7.5 8.5h1v-1q0-.425.288-.712T9.5 6.5t.713.288t.287.712v1h1q.425 0 .713.288t.287.712t-.288.713t-.712.287h-1v1q0 .425-.288.713T9.5 12.5t-.712-.288T8.5 11.5zm1 5.5q-2.725 0-4.612-1.888T3 9.5t1.888-4.612T9.5 3t4.613 1.888T16 9.5q0 1.1-.35 2.075T14.7 13.3l5.6 5.6q.275.275.275.7t-.275.7t-.7.275t-.7-.275l-5.6-5.6q-.75.6-1.725.95T9.5 16m0-2q1.875 0 3.188-1.312T14 9.5t-1.312-3.187T9.5 5T6.313 6.313T5 9.5t1.313 3.188T9.5 14"},null,-1),OJ=[$J];function PJ(t,e){return Y(),te("svg",IJ,[...OJ])}const RJ={name:"material-symbols-zoom-in-rounded",render:PJ},DJ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},LJ=N("path",{fill:"currentColor",d:"M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.587 1.413T19 21zm0-2h14V5H5zm0 0V5zm2-2h10q.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 17"},null,-1),MJ=[LJ];function FJ(t,e){return Y(),te("svg",DJ,[...MJ])}const SI={name:"material-symbols-image-outline-rounded",render:FJ},NJ={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},zJ=N("path",{fill:"currentColor",d:"m12 13.4l-4.9 4.9q-.275.275-.7.275t-.7-.275t-.275-.7t.275-.7l4.9-4.9l-4.9-4.9q-.275-.275-.275-.7t.275-.7t.7-.275t.7.275l4.9 4.9l4.9-4.9q.275-.275.7-.275t.7.275t.275.7t-.275.7L13.4 12l4.9 4.9q.275.275.275.7t-.275.7t-.7.275t-.7-.275z"},null,-1),qJ=[zJ];function BJ(t,e){return Y(),te("svg",NJ,[...qJ])}const Du={name:"material-symbols-close-rounded",render:BJ},VJ=()=>{};let II=!1;try{const t={};Object.defineProperty(t,"passive",{get(){II=!0}}),window.addEventListener("test-passive",VJ,t)}catch{}const Kk=(t,e,r,n=!1)=>{t.addEventListener(e,r,II?{capture:!1,passive:n}:!1)},Yk=(t,e,r)=>{t.removeEventListener(e,r)},Xk=t=>{t.preventDefault()},UJ=Object.prototype.toString,jJ=t=>e=>UJ.call(e).slice(8,-1)===t;function HJ(t){return jJ("Array")(t)}function Jk(t,e){const r=t.clientX-e.clientX,n=t.clientY-e.clientY;return Math.sqrt(r*r+n*n)}const WJ=()=>{const t=Le(),e=zn({width:0,height:0,naturalWidth:0,naturalHeight:0,maxScale:1});return{imgRef:t,imgState:e,setImgSize:()=>{if(t.value){const{width:n,height:i,naturalWidth:o,naturalHeight:a}=t.value;e.maxScale=o/n,e.naturalWidth=o,e.naturalHeight=a,e.width=n,e.height=i}}}},GJ=(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:g,lastX:y}=t;t.top=u-g+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()}}},QJ=(t,e,r,n)=>{let i,o=!1,a=0,l=0;const d=50;return{onTouchStart:y=>{const{touches:x}=y;a=x[0].clientX,l=x[0].clientY,x.length>1?(r.gesturing=!0,e.touches=x):(e.initX=e.lastX=x[0].clientX,e.initY=e.lastY=x[0].clientY,r.dragging=!0),y.stopPropagation()},onTouchMove:y=>{if(o)return;const{touches:x}=y,{lastX:m,lastY:p,left:_,top:v,scale:b}=e,w=x[0].clientX,E=x[0].clientY,C=w-a,S=E-l;if(Math.abs(C)>Math.abs(S)&&(Cd&&(r.swipeToRight=!0)),!r.gesturing&&r.dragging){if(!x[0])return;const{clientX:R,clientY:D}=x[0];n()?i=requestAnimationFrame(()=>{e.lastX=R,e.lastY=D,e.top=v-p+D,e.left=_-m+R,o=!1}):(e.lastX=R,e.lastY=D)}else r.gesturing&&e.touches.length>1&&x.length>1&&(i=requestAnimationFrame(()=>{const R=(Jk(e.touches[0],e.touches[1])-Jk(x[0],x[1]))/t.width;e.touches=x;const D=b-R*1.3;D>.5&&D{cancelAnimationFrame(i),r.dragging=!1,r.gesturing=!1,o=!1}}},KJ=[".jpg",".png",".jpeg",".bmp",".webp",".heic",".heif",".apng",".avif",".gif",".tiff",".tif",".svg"],YJ=[".mp4",".mkv",".webm",".avi",".3gp",".mov",".m4v",".3gpp"],XJ=[".mp3",".wav",".wma",".ogg",".m4a",".opus",".flac",".aac"];function qi(t){const e=t.toLowerCase();return KJ.some(r=>e.endsWith(r))}function Zk(t){return t.toLowerCase().endsWith(".svg")}function So(t){const e=t.toLowerCase();return YJ.some(r=>e.endsWith(r))}function mu(t){const e=t.toLowerCase();return XJ.some(r=>e.endsWith(r))}function e5(t){return qi(t)||So(t)||mu(t)}function T1e(t){return[".txt",".pdf",".md"].some(e=>t.endsWith(e))}function E1e(){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 t5(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,l=(r.videoHeight-o)/2;n.width=200,n.height=200,n.getContext("2d").drawImage(r,a,l,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,width:r.videoWidth,height:r.videoHeight})},r.onerror=()=>{e({src:i,duration:0,thumbnail:"",width:0,height:0})}})}async function r5(t){return new Promise(e=>{const r=new Image,n=URL.createObjectURL(t);r.onload=function(){URL.revokeObjectURL(n),e({src:n,width:r.width,height:r.height})},r.src=n,r.onerror=()=>{e({src:n,width:0,height:0})}})}function k1e(t){const e=t.lastIndexOf("/");return e===-1?"":t.substring(0,e)}function JJ(t,e){const r=Ls(t.path),n=t.isDir?"":LU(r),i=!t.isDir&&(qi(r)||So(r));return{...t,id:t.path,name:r,fileId:i?e1(e,t.path):"",extension:n}}const Ya=VS({id:"temp",state:()=>({app:{},urlTokenKey:null,uploads:[],selectedFiles:[],audioPlaying:!1,lightbox:{sources:[],visible:!1,index:-1},counter:{messages:-1,contacts:-1,calls:-1,videos:-1,videosTrash:-1,images:-1,imagesTrash:-1,audios:-1,audiosTrash:-1,packages:-1,packagesSystem:-1,notes:-1,notesTrash:-1,feedEntries:-1,feedEntriesToday:-1,total:-1,free:-1},feedsSyncing:!1})}),Vg=[["ثانية","ثانيتين","%s ثوان","%s ثانية"],["دقيقة","دقيقتين","%s دقائق","%s دقيقة"],["ساعة","ساعتين","%s ساعات","%s ساعة"],["يوم","يومين","%s أيام","%s يوماً"],["أسبوع","أسبوعين","%s أسابيع","%s أسبوعاً"],["شهر","شهرين","%s أشهر","%s شهراً"],["عام","عامين","%s أعوام","%s عاماً"]];function ZJ(t,e){return e<3?Vg[t][e-1]:e>=3&&e<=10?Vg[t][2]:Vg[t][3]}function eZ(t,e){if(e===0)return["منذ لحظات","بعد لحظات"];const r=ZJ(Math.floor(e/2),t);return["منذ "+r,"بعد "+r]}function Xs(t,e,r,n,i){const o=i%10;let a=n;return i===1?a=t:o===1&&i>20?a=e:o>1&&o<5&&(i>20||i<10)&&(a=r),a}const n5=Xs.bind(null,"секунду","%s секунду","%s секунды","%s секунд"),i5=Xs.bind(null,"хвіліну","%s хвіліну","%s хвіліны","%s хвілін"),o5=Xs.bind(null,"гадзіну","%s гадзіну","%s гадзіны","%s гадзін"),a5=Xs.bind(null,"дзень","%s дзень","%s дні","%s дзён"),s5=Xs.bind(null,"тыдзень","%s тыдзень","%s тыдні","%s тыдняў"),l5=Xs.bind(null,"месяц","%s месяц","%s месяцы","%s месяцаў"),c5=Xs.bind(null,"год","%s год","%s гады","%s гадоў");function tZ(t,e){switch(e){case 0:return["толькі што","праз некалькі секунд"];case 1:return[n5(t)+" таму","праз "+n5(t)];case 2:case 3:return[i5(t)+" таму","праз "+i5(t)];case 4:case 5:return[o5(t)+" таму","праз "+o5(t)];case 6:case 7:return[a5(t)+" таму","праз "+a5(t)];case 8:case 9:return[s5(t)+" таму","праз "+s5(t)];case 10:case 11:return[l5(t)+" таму","праз "+l5(t)];case 12:case 13:return[c5(t)+" таму","праз "+c5(t)];default:return["",""]}}function rZ(t,e){return[["току що","съвсем скоро"],["преди %s секунди","след %s секунди"],["преди 1 минута","след 1 минута"],["преди %s минути","след %s минути"],["преди 1 час","след 1 час"],["преди %s часа","след %s часа"],["преди 1 ден","след 1 ден"],["преди %s дни","след %s дни"],["преди 1 седмица","след 1 седмица"],["преди %s седмици","след %s седмици"],["преди 1 месец","след 1 месец"],["преди %s месеца","след %s месеца"],["преди 1 година","след 1 година"],["преди %s години","след %s години"]][e]}function nZ(t,e){return[["এইমাত্র","একটা সময়"],["%s সেকেন্ড আগে","%s এর সেকেন্ডের মধ্যে"],["1 মিনিট আগে","1 মিনিটে"],["%s এর মিনিট আগে","%s এর মিনিটের মধ্যে"],["1 ঘন্টা আগে","1 ঘন্টা"],["%s ঘণ্টা আগে","%s এর ঘন্টার মধ্যে"],["1 দিন আগে","1 দিনের মধ্যে"],["%s এর দিন আগে","%s এর দিন"],["1 সপ্তাহ আগে","1 সপ্তাহের মধ্যে"],["%s এর সপ্তাহ আগে","%s সপ্তাহের মধ্যে"],["1 মাস আগে","1 মাসে"],["%s মাস আগে","%s মাসে"],["1 বছর আগে","1 বছরের মধ্যে"],["%s বছর আগে","%s বছরে"]][e]}function iZ(t,e){return[["fa un moment","d'aquí un moment"],["fa %s segons","d'aquí %s segons"],["fa 1 minut","d'aquí 1 minut"],["fa %s minuts","d'aquí %s minuts"],["fa 1 hora","d'aquí 1 hora"],["fa %s hores","d'aquí %s hores"],["fa 1 dia","d'aquí 1 dia"],["fa %s dies","d'aquí %s dies"],["fa 1 setmana","d'aquí 1 setmana"],["fa %s setmanes","d'aquí %s setmanes"],["fa 1 mes","d'aquí 1 mes"],["fa %s mesos","d'aquí %s mesos"],["fa 1 any","d'aquí 1 any"],["fa %s anys","d'aquí %s anys"]][e]}function oZ(t,e){let r=0;return(e==1||e==3||e==5||e==7||e==9||e==11||e==13)&&t>=5&&(r=1),[[["právě teď","právě teď"]],[["před %s vteřinami","za %s vteřiny"],["před %s vteřinami","za %s vteřin"]],[["před minutou","za minutu"]],[["před %s minutami","za %s minuty"],["před %s minutami","za %s minut"]],[["před hodinou","za hodinu"]],[["před %s hodinami","za %s hodiny"],["před %s hodinami","za %s hodin"]],[["včera","zítra"]],[["před %s dny","za %s dny"],["před %s dny","za %s dnů"]],[["minulý týden","příští týden"]],[["před %s týdny","za %s týdny"],["před %s týdny","za %s týdnů"]],[["minulý měsíc","přístí měsíc"]],[["před %s měsíci","za %s měsíce"],["před %s měsíci","za %s měsíců"]],[["před rokem","přístí rok"]],[["před %s lety","za %s roky"],["před %s lety","za %s let"]]][e][r]}function aZ(t,e){return[["for et øjeblik siden","om et øjeblik"],["for %s sekunder siden","om %s sekunder"],["for 1 minut siden","om 1 minut"],["for %s minutter siden","om %s minutter"],["for 1 time siden","om 1 time"],["for %s timer siden","om %s timer"],["for 1 dag siden","om 1 dag"],["for %s dage siden","om %s dage"],["for 1 uge siden","om 1 uge"],["for %s uger siden","om %s uger"],["for 1 måned siden","om 1 måned"],["for %s måneder siden","om %s måneder"],["for 1 år siden","om 1 år"],["for %s år siden","om %s år"]][e]}function sZ(t,e){return[["gerade eben","vor einer Weile"],["vor %s Sekunden","in %s Sekunden"],["vor 1 Minute","in 1 Minute"],["vor %s Minuten","in %s Minuten"],["vor 1 Stunde","in 1 Stunde"],["vor %s Stunden","in %s Stunden"],["vor 1 Tag","in 1 Tag"],["vor %s Tagen","in %s Tagen"],["vor 1 Woche","in 1 Woche"],["vor %s Wochen","in %s Wochen"],["vor 1 Monat","in 1 Monat"],["vor %s Monaten","in %s Monaten"],["vor 1 Jahr","in 1 Jahr"],["vor %s Jahren","in %s Jahren"]][e]}function lZ(t,e){return[["μόλις τώρα","σε λίγο"],["%s δευτερόλεπτα πριν","σε %s δευτερόλεπτα"],["1 λεπτό πριν","σε 1 λεπτό"],["%s λεπτά πριν","σε %s λεπτά"],["1 ώρα πριν","σε 1 ώρα"],["%s ώρες πριν","σε %s ώρες"],["1 μέρα πριν","σε 1 μέρα"],["%s μέρες πριν","σε %s μέρες"],["1 εβδομάδα πριν","σε 1 εβδομάδα"],["%s εβδομάδες πριν","σε %s εβδομάδες"],["1 μήνα πριν","σε 1 μήνα"],["%s μήνες πριν","σε %s μήνες"],["1 χρόνο πριν","σε 1 χρόνο"],["%s χρόνια πριν","σε %s χρόνια"]][e]}function cZ(t,e){return[["just now","right now"],["%ss ago","in %ss"],["1m ago","in 1m"],["%sm ago","in %sm"],["1h ago","in 1h"],["%sh ago","in %sh"],["1d ago","in 1d"],["%sd ago","in %sd"],["1w ago","in 1w"],["%sw ago","in %sw"],["1mo ago","in 1mo"],["%smo ago","in %smo"],["1yr ago","in 1yr"],["%syr ago","in %syr"]][e]}const dZ=["second","minute","hour","day","week","month","year"];function uZ(t,e){if(e===0)return["just now","right now"];let r=dZ[Math.floor(e/2)];return t>1&&(r+="s"),[`${t} ${r} ago`,`in ${t} ${r}`]}function fZ(t,e){return[["justo ahora","en un rato"],["hace %s segundos","en %s segundos"],["hace 1 minuto","en 1 minuto"],["hace %s minutos","en %s minutos"],["hace 1 hora","en 1 hora"],["hace %s horas","en %s horas"],["hace 1 día","en 1 día"],["hace %s días","en %s días"],["hace 1 semana","en 1 semana"],["hace %s semanas","en %s semanas"],["hace 1 mes","en 1 mes"],["hace %s meses","en %s meses"],["hace 1 año","en 1 año"],["hace %s años","en %s años"]][e]}function hZ(t,e){return[["orain","denbora bat barru"],["duela %s segundu","%s segundu barru"],["duela minutu 1","minutu 1 barru"],["duela %s minutu","%s minutu barru"],["duela ordu 1","ordu 1 barru"],["duela %s ordu","%s ordu barru"],["duela egun 1","egun 1 barru"],["duela %s egun","%s egun barru"],["duela aste 1","aste 1 barru"],["duela %s aste","%s aste barru"],["duela hillabete 1","hillabete 1 barru"],["duela %s hillabete","%s hillabete barru"],["duela urte 1","urte 1 barru"],["duela %s urte","%s urte barru"]][e]}function d5(t){const e=["۰","۱","۲","۳","۴","۵","۶","۷","۸","۹"];return t.toString().replace(/\d/g,r=>e[r])}function pZ(t,e){const r=[["لحظاتی پیش","همین حالا"],["%s ثانیه پیش","%s ثانیه دیگر"],["۱ دقیقه پیش","۱ دقیقه دیگر"],["%s دقیقه پیش","%s دقیقه دیگر"],["۱ ساعت پیش","۱ ساعت دیگر"],["%s ساعت پیش","%s ساعت دیگر"],["۱ روز پیش","۱ روز دیگر"],["%s روز پیش","%s روز دیگر"],["۱ هفته پیش","۱ هفته دیگر"],["%s هفته پیش","%s هفته دیگر"],["۱ ماه پیش","۱ ماه دیگر"],["%s ماه پیش","%s ماه دیگر"],["۱ سال پیش","۱ سال دیگر"],["%s سال پیش","%s سال دیگر"]][e];return[r[0].replace("%s",d5(t)),r[1].replace("%s",d5(t))]}function mZ(t,e){return[["juuri äsken","juuri nyt"],["%s sekuntia sitten","%s sekunnin päästä"],["minuutti sitten","minuutin päästä"],["%s minuuttia sitten","%s minuutin päästä"],["tunti sitten","tunnin päästä"],["%s tuntia sitten","%s tunnin päästä"],["päivä sitten","päivän päästä"],["%s päivää sitten","%s päivän päästä"],["viikko sitten","viikon päästä"],["%s viikkoa sitten","%s viikon päästä"],["kuukausi sitten","kuukauden päästä"],["%s kuukautta sitten","%s kuukauden päästä"],["vuosi sitten","vuoden päästä"],["%s vuotta sitten","%s vuoden päästä"]][e]}function vZ(t,e){return[["à l'instant","dans un instant"],["il y a %s secondes","dans %s secondes"],["il y a 1 minute","dans 1 minute"],["il y a %s minutes","dans %s minutes"],["il y a 1 heure","dans 1 heure"],["il y a %s heures","dans %s heures"],["il y a 1 jour","dans 1 jour"],["il y a %s jours","dans %s jours"],["il y a 1 semaine","dans 1 semaine"],["il y a %s semaines","dans %s semaines"],["il y a 1 mois","dans 1 mois"],["il y a %s mois","dans %s mois"],["il y a 1 an","dans 1 an"],["il y a %s ans","dans %s ans"]][e]}function gZ(t,e){return[["xusto agora","daquí a un pouco"],["hai %s segundos","en %s segundos"],["hai 1 minuto","nun minuto"],["hai %s minutos","en %s minutos"],["hai 1 hora","nunha hora"],["hai %s horas","en %s horas"],["hai 1 día","nun día"],["hai %s días","en %s días"],["hai 1 semana","nunha semana"],["hai %s semanas","en %s semanas"],["hai 1 mes","nun mes"],["hai %s meses","en %s meses"],["hai 1 ano","nun ano"],["hai %s anos","en %s anos"]][e]}function _Z(t,e){return[["זה עתה","עכשיו"],["לפני %s שניות","בעוד %s שניות"],["לפני דקה","בעוד דקה"],["לפני %s דקות","בעוד %s דקות"],["לפני שעה","בעוד שעה"],t===2?["לפני שעתיים","בעוד שעתיים"]:["לפני %s שעות","בעוד %s שעות"],["אתמול","מחר"],t===2?["לפני יומיים","בעוד יומיים"]:["לפני %s ימים","בעוד %s ימים"],["לפני שבוע","בעוד שבוע"],t===2?["לפני שבועיים","בעוד שבועיים"]:["לפני %s שבועות","בעוד %s שבועות"],["לפני חודש","בעוד חודש"],t===2?["לפני חודשיים","בעוד חודשיים"]:["לפני %s חודשים","בעוד %s חודשים"],["לפני שנה","בעוד שנה"],t===2?["לפני שנתיים","בעוד שנתיים"]:["לפני %s שנים","בעוד %s שנים"]][e]}function yZ(t,e){return[["अभी","कुछ समय"],["%s सेकंड पहले","%s सेकंड में"],["1 मिनट पहले","1 मिनट में"],["%s मिनट पहले","%s मिनट में"],["1 घंटे पहले","1 घंटे में"],["%s घंटे पहले","%s घंटे में"],["1 दिन पहले","1 दिन में"],["%s दिन पहले","%s दिनों में"],["1 सप्ताह पहले","1 सप्ताह में"],["%s हफ्ते पहले","%s हफ्तों में"],["1 महीने पहले","1 महीने में"],["%s महीने पहले","%s महीनों में"],["1 साल पहले","1 साल में"],["%s साल पहले","%s साल में"]][e]}function bZ(t,e){return[["éppen most","éppen most"],["%s másodperce","%s másodpercen belül"],["1 perce","1 percen belül"],["%s perce","%s percen belül"],["1 órája","1 órán belül"],["%s órája","%s órán belül"],["1 napja","1 napon belül"],["%s napja","%s napon belül"],["1 hete","1 héten belül"],["%s hete","%s héten belül"],["1 hónapja","1 hónapon belül"],["%s hónapja","%s hónapon belül"],["1 éve","1 éven belül"],["%s éve","%s éven belül"]][e]}function xZ(t,e){return[["baru saja","sebentar"],["%s detik yang lalu","dalam %s detik"],["1 menit yang lalu","dalam 1 menit"],["%s menit yang lalu","dalam %s menit"],["1 jam yang lalu","dalam 1 jam"],["%s jam yang lalu","dalam %s jam"],["1 hari yang lalu","dalam 1 hari"],["%s hari yang lalu","dalam %s hari"],["1 minggu yang lalu","dalam 1 minggu"],["%s minggu yang lalu","dalam %s minggu"],["1 bulan yang lalu","dalam 1 bulan"],["%s bulan yang lalu","dalam %s bulan"],["1 tahun yang lalu","dalam 1 tahun"],["%s tahun yang lalu","dalam %s tahun"]][e]}function wZ(t,e){return[["poco fa","fra poco"],["%s secondi fa","fra %s secondi"],["un minuto fa","fra un minuto"],["%s minuti fa","fra %s minuti"],["un'ora fa","fra un'ora"],["%s ore fa","fra %s ore"],["un giorno fa","fra un giorno"],["%s giorni fa","fra %s giorni"],["una settimana fa","fra una settimana"],["%s settimane fa","fra %s settimane"],["un mese fa","fra un mese"],["%s mesi fa","fra %s mesi"],["un anno fa","fra un anno"],["%s anni fa","fra %s anni"]][e]}function TZ(t,e){return[["すこし前","すぐに"],["%s秒前","%s秒以内"],["1分前","1分以内"],["%s分前","%s分以内"],["1時間前","1時間以内"],["%s時間前","%s時間以内"],["1日前","1日以内"],["%s日前","%s日以内"],["1週間前","1週間以内"],["%s週間前","%s週間以内"],["1ヶ月前","1ヶ月以内"],["%sヶ月前","%sヶ月以内"],["1年前","1年以内"],["%s年前","%s年以内"]][e]}function EZ(t,e){return[["ამ წამს","ახლა"],["%s წამის წინ","%s წამში"],["1 წუთის წინ","1 წუთში"],["%s წუთის წინ","%s წუთში"],["1 საათის წინ","1 საათში"],["%s საათის წინ","%s საათში"],["1 დღის წინ","1 დღეში"],["%s დღის წინ","%s დღეში"],["1 კვირის წინ","1 კვირაში"],["%s კვირის წინ","%s კვირაში"],["1 თვის წინ","1 თვეში"],["%s თვის წინ","%s თვეში"],["1 წლის წინ","1 წელიწადში"],["%s წლის წინ","%s წელიწადში"]][e]}function kZ(t,e){return[["방금","곧"],["%s초 전","%s초 후"],["1분 전","1분 후"],["%s분 전","%s분 후"],["1시간 전","1시간 후"],["%s시간 전","%s시간 후"],["1일 전","1일 후"],["%s일 전","%s일 후"],["1주일 전","1주일 후"],["%s주일 전","%s주일 후"],["1개월 전","1개월 후"],["%s개월 전","%s개월 후"],["1년 전","1년 후"],["%s년 전","%s년 후"]][e]}function CZ(t,e){return[["ഇപ്പോള്‍","കുറച്ചു മുന്‍പ്"],["%s സെക്കന്റ്‌കള്‍ക്ക് മുന്‍പ്","%s സെക്കന്റില്‍"],["1 മിനിറ്റിനു മുന്‍പ്","1 മിനിറ്റില്‍"],["%s മിനിറ്റുകള്‍ക്ക് മുന്‍പ","%s മിനിറ്റില്‍"],["1 മണിക്കൂറിനു മുന്‍പ്","1 മണിക്കൂറില്‍"],["%s മണിക്കൂറുകള്‍ക്കു മുന്‍പ്","%s മണിക്കൂറില്‍"],["1 ഒരു ദിവസം മുന്‍പ്","1 ദിവസത്തില്‍"],["%s ദിവസങ്ങള്‍ക് മുന്‍പ്","%s ദിവസങ്ങള്‍ക്കുള്ളില്‍"],["1 ആഴ്ച മുന്‍പ്","1 ആഴ്ചയില്‍"],["%s ആഴ്ചകള്‍ക്ക് മുന്‍പ്","%s ആഴ്ചകള്‍ക്കുള്ളില്‍"],["1 മാസത്തിനു മുന്‍പ്","1 മാസത്തിനുള്ളില്‍"],["%s മാസങ്ങള്‍ക്ക് മുന്‍പ്","%s മാസങ്ങള്‍ക്കുള്ളില്‍"],["1 വര്‍ഷത്തിനു മുന്‍പ്","1 വര്‍ഷത്തിനുള്ളില്‍"],["%s വര്‍ഷങ്ങള്‍ക്കു മുന്‍പ്","%s വര്‍ഷങ്ങള്‍ക്കുല്ല്ളില്‍"]][e]}function AZ(t,e){return[["ယခုအတွင်း","ယခု"],["%s စက္ကန့် အကြာက","%s စက္ကန့်အတွင်း"],["1 မိနစ် အကြာက","1 မိနစ်အတွင်း"],["%s မိနစ် အကြာက","%s မိနစ်အတွင်း"],["1 နာရီ အကြာက","1 နာရီအတွင်း"],["%s နာရီ အကြာက","%s နာရီအတွင်း"],["1 ရက် အကြာက","1 ရက်အတွင်း"],["%s ရက် အကြာက","%s ရက်အတွင်း"],["1 ပတ် အကြာက","1 ပတ်အတွင်း"],["%s ပတ် အကြာက","%s ပတ်အတွင်း"],["1 လ အကြာက","1 လအတွင်း"],["%s လ အကြာက","%s လအတွင်း"],["1 နှစ် အကြာက","1 နှစ်အတွင်း"],["%s နှစ် အကြာက","%s နှစ်အတွင်း"]][e]}function SZ(t,e){return[["akkurat nå","om litt"],["%s sekunder siden","om %s sekunder"],["1 minutt siden","om 1 minutt"],["%s minutter siden","om %s minutter"],["1 time siden","om 1 time"],["%s timer siden","om %s timer"],["1 dag siden","om 1 dag"],["%s dager siden","om %s dager"],["1 uke siden","om 1 uke"],["%s uker siden","om %s uker"],["1 måned siden","om 1 måned"],["%s måneder siden","om %s måneder"],["1 år siden","om 1 år"],["%s år siden","om %s år"]][e]}function IZ(t,e){return[["recent","binnenkort"],["%s seconden geleden","binnen %s seconden"],["1 minuut geleden","binnen 1 minuut"],["%s minuten geleden","binnen %s minuten"],["1 uur geleden","binnen 1 uur"],["%s uur geleden","binnen %s uur"],["1 dag geleden","binnen 1 dag"],["%s dagen geleden","binnen %s dagen"],["1 week geleden","binnen 1 week"],["%s weken geleden","binnen %s weken"],["1 maand geleden","binnen 1 maand"],["%s maanden geleden","binnen %s maanden"],["1 jaar geleden","binnen 1 jaar"],["%s jaar geleden","binnen %s jaar"]][e]}function $Z(t,e){return[["nett no","om litt"],["%s sekund sidan","om %s sekund"],["1 minutt sidan","om 1 minutt"],["%s minutt sidan","om %s minutt"],["1 time sidan","om 1 time"],["%s timar sidan","om %s timar"],["1 dag sidan","om 1 dag"],["%s dagar sidan","om %s dagar"],["1 veke sidan","om 1 veke"],["%s veker sidan","om %s veker"],["1 månad sidan","om 1 månad"],["%s månadar sidan","om %s månadar"],["1 år sidan","om 1 år"],["%s år sidan","om %s år"]][e]}function OZ(t,e){return[["fa un moment","d'aquí un moment"],["fa %s segondas","d'aquí %s segondas"],["fa 1 minuta","d'aquí 1 minuta"],["fa %s minutas","d'aquí %s minutas"],["fa 1 ora","d'aquí 1 ora"],["fa %s oras","d'aquí %s oras"],["fa 1 jorn","d'aquí 1 jorn"],["fa %s jorns","d'aquí %s jorns"],["fa 1 setmana","d'aquí 1 setmana"],["fa %s setmanas","d'aquí %s setmanas"],["fa 1 mes","d'aquí 1 mes"],["fa %s meses","d'aquí %s meses"],["fa 1 an","d'aquí 1 an"],["fa %s ans","d'aquí %s ans"]][e]}const PZ=[["w tej chwili","za chwilę"],["%s sekund temu","za %s sekund"],["1 minutę temu","za 1 minutę"],["%s minut temu","za %s minut"],["1 godzinę temu","za 1 godzinę"],["%s godzin temu","za %s godzin"],["1 dzień temu","za 1 dzień"],["%s dni temu","za %s dni"],["1 tydzień temu","za 1 tydzień"],["%s tygodni temu","za %s tygodni"],["1 miesiąc temu","za 1 miesiąc"],["%s miesięcy temu","za %s miesięcy"],["1 rok temu","za 1 rok"],["%s lat temu","za %s lat"],["%s sekundy temu","za %s sekundy"],["%s minuty temu","za %s minuty"],["%s godziny temu","za %s godziny"],["%s dni temu","za %s dni"],["%s tygodnie temu","za %s tygodnie"],["%s miesiące temu","za %s miesiące"],["%s lata temu","za %s lata"]];function RZ(t,e){return PZ[e&1?t%10>4||t%10<2||~~(t/10)%10===1?e:++e/2+13:e]}function DZ(t,e){return[["agora mesmo","agora"],["há %s segundos","em %s segundos"],["há um minuto","em um minuto"],["há %s minutos","em %s minutos"],["há uma hora","em uma hora"],["há %s horas","em %s horas"],["há um dia","em um dia"],["há %s dias","em %s dias"],["há uma semana","em uma semana"],["há %s semanas","em %s semanas"],["há um mês","em um mês"],["há %s meses","em %s meses"],["há um ano","em um ano"],["há %s anos","em %s anos"]][e]}function LZ(t,e){const r=[["chiar acum","chiar acum"],["acum %s secunde","peste %s secunde"],["acum un minut","peste un minut"],["acum %s minute","peste %s minute"],["acum o oră","peste o oră"],["acum %s ore","peste %s ore"],["acum o zi","peste o zi"],["acum %s zile","peste %s zile"],["acum o săptămână","peste o săptămână"],["acum %s săptămâni","peste %s săptămâni"],["acum o lună","peste o lună"],["acum %s luni","peste %s luni"],["acum un an","peste un an"],["acum %s ani","peste %s ani"]];return t<20?r[e]:[r[e][0].replace("%s","%s de"),r[e][1].replace("%s","%s de")]}function Js(t,e,r,n,i){const o=i%10;let a=n;return i===1?a=t:o===1&&i>20?a=e:o>1&&o<5&&(i>20||i<10)&&(a=r),a}const u5=Js.bind(null,"секунду","%s секунду","%s секунды","%s секунд"),f5=Js.bind(null,"минуту","%s минуту","%s минуты","%s минут"),h5=Js.bind(null,"час","%s час","%s часа","%s часов"),p5=Js.bind(null,"день","%s день","%s дня","%s дней"),m5=Js.bind(null,"неделю","%s неделю","%s недели","%s недель"),v5=Js.bind(null,"месяц","%s месяц","%s месяца","%s месяцев"),g5=Js.bind(null,"год","%s год","%s года","%s лет");function MZ(t,e){switch(e){case 0:return["только что","через несколько секунд"];case 1:return[u5(t)+" назад","через "+u5(t)];case 2:case 3:return[f5(t)+" назад","через "+f5(t)];case 4:case 5:return[h5(t)+" назад","через "+h5(t)];case 6:return["вчера","завтра"];case 7:return[p5(t)+" назад","через "+p5(t)];case 8:case 9:return[m5(t)+" назад","через "+m5(t)];case 10:case 11:return[v5(t)+" назад","через "+v5(t)];case 12:case 13:return[g5(t)+" назад","через "+g5(t)];default:return["",""]}}function FZ(t,e){return[["pak më parë","pas pak"],["para %s sekondash","pas %s sekondash"],["para një minute","pas një minute"],["para %s minutash","pas %s minutash"],["para një ore","pas një ore"],["para %s orësh","pas %s orësh"],["dje","nesër"],["para %s ditësh","pas %s ditësh"],["para një jave","pas një jave"],["para %s javësh","pas %s javësh"],["para një muaji","pas një muaji"],["para %s muajsh","pas %s muajsh"],["para një viti","pas një viti"],["para %s vjetësh","pas %s vjetësh"]][e]}function Zs(t,e,r,n,i){const o=i%10,a=i%100;return i==1?t:o==1&&a!=11?e:o>=2&&o<=4&&!(a>=12&&a<=14)?r:n}const _5=Zs.bind(null,"1 секунд","%s секунд","%s секунде","%s секунди"),y5=Zs.bind(null,"1 минут","%s минут","%s минуте","%s минута"),b5=Zs.bind(null,"сат времена","%s сат","%s сата","%s сати"),x5=Zs.bind(null,"1 дан","%s дан","%s дана","%s дана"),w5=Zs.bind(null,"недељу дана","%s недељу","%s недеље","%s недеља"),T5=Zs.bind(null,"месец дана","%s месец","%s месеца","%s месеци"),E5=Zs.bind(null,"годину дана","%s годину","%s године","%s година");function NZ(t,e){switch(e){case 0:return["малопре","управо сад"];case 1:return["пре "+_5(t),"за "+_5(t)];case 2:case 3:return["пре "+y5(t),"за "+y5(t)];case 4:case 5:return["пре "+b5(t),"за "+b5(t)];case 6:case 7:return["пре "+x5(t),"за "+x5(t)];case 8:case 9:return["пре "+w5(t),"за "+w5(t)];case 10:case 11:return["пре "+T5(t),"за "+T5(t)];case 12:case 13:return["пре "+E5(t),"за "+E5(t)];default:return["",""]}}function zZ(t,e){return[["just nu","om en stund"],["%s sekunder sedan","om %s sekunder"],["1 minut sedan","om 1 minut"],["%s minuter sedan","om %s minuter"],["1 timme sedan","om 1 timme"],["%s timmar sedan","om %s timmar"],["1 dag sedan","om 1 dag"],["%s dagar sedan","om %s dagar"],["1 vecka sedan","om 1 vecka"],["%s veckor sedan","om %s veckor"],["1 månad sedan","om 1 månad"],["%s månader sedan","om %s månader"],["1 år sedan","om 1 år"],["%s år sedan","om %s år"]][e]}function qZ(t,e){return[["இப்போது","சற்று நேரம் முன்பு"],["%s நொடிக்கு முன்","%s நொடிகளில்"],["1 நிமிடத்திற்க்கு முன்","1 நிமிடத்தில்"],["%s நிமிடத்திற்க்கு முன்","%s நிமிடங்களில்"],["1 மணி நேரத்திற்கு முன்","1 மணி நேரத்திற்குள்"],["%s மணி நேரத்திற்கு முன்","%s மணி நேரத்திற்குள்"],["1 நாளுக்கு முன்","1 நாளில்"],["%s நாட்களுக்கு முன்","%s நாட்களில்"],["1 வாரத்திற்கு முன்","1 வாரத்தில்"],["%s வாரங்களுக்கு முன்","%s வாரங்களில்"],["1 மாதத்திற்கு முன்","1 மாதத்தில்"],["%s மாதங்களுக்கு முன்","%s மாதங்களில்"],["1 வருடத்திற்கு முன்","1 வருடத்தில்"],["%s வருடங்களுக்கு முன்","%s வருடங்களில்"]][e]}function BZ(t,e){return[["เมื่อสักครู่นี้","อีกสักครู่"],["%s วินาทีที่แล้ว","ใน %s วินาที"],["1 นาทีที่แล้ว","ใน 1 นาที"],["%s นาทีที่แล้ว","ใน %s นาที"],["1 ชั่วโมงที่แล้ว","ใน 1 ชั่วโมง"],["%s ชั่วโมงที่แล้ว","ใน %s ชั่วโมง"],["1 วันที่แล้ว","ใน 1 วัน"],["%s วันที่แล้ว","ใน %s วัน"],["1 อาทิตย์ที่แล้ว","ใน 1 อาทิตย์"],["%s อาทิตย์ที่แล้ว","ใน %s อาทิตย์"],["1 เดือนที่แล้ว","ใน 1 เดือน"],["%s เดือนที่แล้ว","ใน %s เดือน"],["1 ปีที่แล้ว","ใน 1 ปี"],["%s ปีที่แล้ว","ใน %s ปี"]][e]}const VZ=["sekunt","minut","sagat","gün","hepde","aý","ýyl"];function UZ(t){return t.match(/[aouy]/)?"dan":"den"}function jZ(t,e){if(e===0)return["biraz öň","şuwagt"];const r=VZ[Math.floor(e/2)];return[`${t} ${r} öň`,`${t} ${r}${UZ(r)}`]}function HZ(t,e){return[["az önce","şimdi"],["%s saniye önce","%s saniye içinde"],["1 dakika önce","1 dakika içinde"],["%s dakika önce","%s dakika içinde"],["1 saat önce","1 saat içinde"],["%s saat önce","%s saat içinde"],["1 gün önce","1 gün içinde"],["%s gün önce","%s gün içinde"],["1 hafta önce","1 hafta içinde"],["%s hafta önce","%s hafta içinde"],["1 ay önce","1 ay içinde"],["%s ay önce","%s ay içinde"],["1 yıl önce","1 yıl içinde"],["%s yıl önce","%s yıl içinde"]][e]}function el(t,e,r,n,i){const o=i%10;let a=n;return i===1?a=t:o===1&&i>20?a=e:o>1&&o<5&&(i>20||i<10)&&(a=r),a}const k5=el.bind(null,"секунду","%s секунду","%s секунди","%s секунд"),C5=el.bind(null,"хвилину","%s хвилину","%s хвилини","%s хвилин"),A5=el.bind(null,"годину","%s годину","%s години","%s годин"),S5=el.bind(null,"день","%s день","%s дні","%s днів"),I5=el.bind(null,"тиждень","%s тиждень","%s тиждні","%s тижднів"),$5=el.bind(null,"місяць","%s місяць","%s місяці","%s місяців"),O5=el.bind(null,"рік","%s рік","%s роки","%s років");function WZ(t,e){switch(e){case 0:return["щойно","через декілька секунд"];case 1:return[k5(t)+" тому","через "+k5(t)];case 2:case 3:return[C5(t)+" тому","через "+C5(t)];case 4:case 5:return[A5(t)+" тому","через "+A5(t)];case 6:case 7:return[S5(t)+" тому","через "+S5(t)];case 8:case 9:return[I5(t)+" тому","через "+I5(t)];case 10:case 11:return[$5(t)+" тому","через "+$5(t)];case 12:case 13:return[O5(t)+" тому","через "+O5(t)];default:return["",""]}}function GZ(t,e){return[["vừa xong","một lúc"],["%s giây trước","trong %s giây"],["1 phút trước","trong 1 phút"],["%s phút trước","trong %s phút"],["1 giờ trước","trong 1 giờ"],["%s giờ trước","trong %s giờ"],["1 ngày trước","trong 1 ngày"],["%s ngày trước","trong %s ngày"],["1 tuần trước","trong 1 tuần"],["%s tuần trước","trong %s tuần"],["1 tháng trước","trong 1 tháng"],["%s tháng trước","trong %s tháng"],["1 năm trước","trong 1 năm"],["%s năm trước","trong %s năm"]][e]}const QZ=["秒","分钟","小时","天","周","个月","年"];function KZ(t,e){if(e===0)return["刚刚","片刻后"];const r=QZ[~~(e/2)];return[`${t} ${r}前`,`${t} ${r}后`]}function YZ(t,e){return[["剛剛","片刻後"],["%s 秒前","%s 秒後"],["1 分鐘前","1 分鐘後"],["%s 分鐘前","%s 分鐘後"],["1 小時前","1 小時後"],["%s 小時前","%s 小時後"],["1 天前","1 天後"],["%s 天前","%s 天後"],["1 週前","1 週後"],["%s 週前","%s 週後"],["1 個月前","1 個月後"],["%s 個月前","%s 個月後"],["1 年前","1 年後"],["%s 年前","%s 年後"]][e]}const P5=Object.freeze(Object.defineProperty({__proto__:null,ar:eZ,be:tZ,bg:rZ,bn_IN:nZ,ca:iZ,cs:oZ,da:aZ,de:sZ,el:lZ,en_US:uZ,en_short:cZ,es:fZ,eu:hZ,fa:pZ,fi:mZ,fr:vZ,gl:gZ,he:_Z,hi_IN:yZ,hu:bZ,id_ID:xZ,it:wZ,ja:TZ,ka:EZ,ko:kZ,ml:CZ,my:AZ,nb_NO:SZ,nl:IZ,nn_NO:$Z,oc:OZ,pl:RZ,pt_BR:DZ,ro:LZ,ru:MZ,sq:FZ,sr:NZ,sv:zZ,ta:qZ,th:BZ,tk:jZ,tr:HZ,uk:WZ,vi:GZ,zh_CN:KZ,zh_TW:YZ},Symbol.toStringTag,{value:"Module"})),$y={},XZ=(t,e)=>{$y[t]=e},JZ=t=>$y[t]||$y.en_US,Ug=[60,60,24,7,365/7/12,12];function ZZ(t){return t instanceof Date?t:!isNaN(t)||/^\d+$/.test(t)?new Date(parseInt(t)):(t=(t||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"),new Date(t))}function eee(t,e){const r=t<0?1:0;t=Math.abs(t);const n=t;let i=0;for(;t>=Ug[i]&&i(i===0?9:1)&&(i+=1),e(t,i,n)[r].replace("%s",t.toString())}function tee(t,e){return(+new Date-+ZZ(t))/1e3}const ree=(t,e,r)=>{const n=tee(t);return eee(n,JZ(e))};Object.keys(P5).forEach(t=>{XZ(t,P5[t])});function km(){return localStorage.getItem("locale")??navigator.language??"en-US"}function E1(t,e){return t==="1970-01-01T00:00:00Z"?"":new Intl.DateTimeFormat(km(),{hour12:!1,dateStyle:"short",timeStyle:"short",...e}).format(new Date(t))}function k1(t){return t==="1970-01-01T00:00:00Z"?"":E1(t,{dateStyle:"long",timeStyle:"long"})}function C1e(t){return ree(new Date(t),km().replace("-","_"))}function jg(t){return new Intl.DateTimeFormat(km()).format(new Date(t))}function nee(t){return new Intl.DateTimeFormat(km(),{hour12:!1,timeStyle:"short"}).format(new Date(t))}function Cm(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 vu(t,e=!0,r=1){const n=e?1e3:1024;if(Math.abs(t)=n&&o({clientId:t.appApi?"a":"b",...typeof t.options=="function"?t.options():t.options}));return e.value&&t.handle(e.value,""),r(a=>{var d,u,f,g,y;let l="";a.error&&((d=a.error)!=null&&d.networkError?((g=(f=(u=a.error)==null?void 0:u.networkError)==null?void 0:f.response)==null?void 0:g.status)===403?l="web_access_disabled":l="network_error":l=(y=a.error)==null?void 0:y.message),(l||a.data)&&t.handle(a.data,l)}),{result:e,onResult:r,refetch:n,loading:i,variables:o}}function gy(t){const{result:e,onResult:r,load:n,loading:i,variables:o,refetch:a}=Uq(t.document,t.variables,()=>({clientId:t.appApi?"a":"b",...typeof t.options=="function"?t.options():t.options}));let l=!0;return r(d=>{var f,g;let u="";d.error&&((f=d.error)!=null&&f.networkError?u="network_error":u=(g=d.error)==null?void 0:g.message),(u||d.data)&&t.handle(d.data,u)}),{result:e,onResult:r,load:n,loading:i,variables:o,refetch:a,fetch:()=>{l?(l=!1,n()):a()}}}const xl=ue` +`;function Am(t){const{result:e,onResult:r,refetch:n,loading:i,variables:o}=Vq(t.document,t.variables,()=>({clientId:t.appApi?"a":"b",...typeof t.options=="function"?t.options():t.options}));return e.value&&t.handle(e.value,""),r(a=>{var d,u,f,g,y;let l="";a.error&&((d=a.error)!=null&&d.networkError?((g=(f=(u=a.error)==null?void 0:u.networkError)==null?void 0:f.response)==null?void 0:g.status)===403?l="web_access_disabled":l="network_error":l=(y=a.error)==null?void 0:y.message),(l||a.data)&&t.handle(a.data,l)}),{result:e,onResult:r,refetch:n,loading:i,variables:o}}function Oy(t){const{result:e,onResult:r,load:n,loading:i,variables:o,refetch:a}=Uq(t.document,t.variables,()=>({clientId:t.appApi?"a":"b",...typeof t.options=="function"?t.options():t.options}));let l=!0;return r(d=>{var f,g;let u="";d.error&&((f=d.error)!=null&&f.networkError?u="network_error":u=(g=d.error)==null?void 0:g.message),(u||d.data)&&t.handle(d.data,u)}),{result:e,onResult:r,load:n,loading:i,variables:o,refetch:a,fetch:()=>{l?(l=!1,n()):a()}}}const Il=de` query { chatItems { ...ChatItemFragment } } - ${f1} -`,ZZ=ue` + ${C1} +`,pee=de` query ($id: ID!, $path: String!) { fileInfo(id: $id, path: $path) { ... on FileInfo { @@ -461,24 +461,24 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a } } } - ${ci} -`,m1e=ue` + ${hi} +`,R1e=de` query messages($offset: Int!, $limit: Int!, $query: String!) { messages(offset: $offset, limit: $limit, query: $query) { ...MessageFragment } messageCount(query: $query) } - ${jZ} -`,v1e=ue` + ${oee} +`,D1e=de` query contacts($offset: Int!, $limit: Int!, $query: String!) { contacts(offset: $offset, limit: $limit, query: $query) { ...ContactFragment } contactCount(query: $query) } - ${HZ} -`,g1e=ue` + ${aee} +`,L1e=de` query { messageCount(query: "") contactCount(query: "") @@ -504,60 +504,60 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a } } } -`,_1e=ue` +`,M1e=de` query { contactSources { name type } } -`,y1e=ue` +`,F1e=de` query calls($offset: Int!, $limit: Int!, $query: String!) { calls(offset: $offset, limit: $limit, query: $query) { ...CallFragment } callCount(query: $query) } - ${WZ} -`,b1e=ue` + ${see} +`,N1e=de` query images($offset: Int!, $limit: Int!, $query: String!, $sortBy: FileSortBy!) { images(offset: $offset, limit: $limit, query: $query, sortBy: $sortBy) { ...ImageFragment } imageCount(query: $query) } - ${GZ} -`,x1e=ue` + ${lee} +`,z1e=de` query videos($offset: Int!, $limit: Int!, $query: String!, $sortBy: FileSortBy!) { videos(offset: $offset, limit: $limit, query: $query, sortBy: $sortBy) { ...VideoFragment } videoCount(query: $query) } - ${QZ} -`,w1e=ue` + ${cee} +`,q1e=de` query audios($offset: Int!, $limit: Int!, $query: String!, $sortBy: FileSortBy!) { items: audios(offset: $offset, limit: $limit, query: $query, sortBy: $sortBy) { ...AudioFragment } total: audioCount(query: $query) } - ${KZ} -`,T1e=ue` + ${dee} +`,B1e=de` query files($root: String!, $offset: Int!, $limit: Int!, $query: String!, $sortBy: FileSortBy!) { files(root: $root, offset: $offset, limit: $limit, query: $query, sortBy: $sortBy) { ...FileFragment } } - ${h1} -`,E1e=ue` + ${A1} +`,V1e=de` query recentFiles { recentFiles { ...FileFragment } } - ${h1} -`,eee=ue` + ${A1} +`,mee=de` query { storageStats { internal { @@ -574,21 +574,21 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a } } } -`,tee=ue` +`,vee=de` query { app { ...AppFragment } } - ${VZ} -`,ree=ue` + ${iee} +`,gee=de` query tags($type: DataType!) { tags(type: $type) { ...TagFragment } } - ${Tu} -`,k1e=ue` + ${Lu} +`,U1e=de` query mediaBuckets($type: DataType!) { mediaBuckets(type: $type) { id @@ -597,7 +597,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a topItems } } -`,C1e=ue` +`,j1e=de` query notes($offset: Int!, $limit: Int!, $query: String!) { notes(offset: $offset, limit: $limit, query: $query) { id @@ -611,22 +611,22 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a } noteCount(query: $query) } - ${ci} -`,A1e=ue` + ${hi} +`,H1e=de` query note($id: ID!) { note(id: $id) { ...NoteFragment } } - ${p1} -`,S1e=ue` + ${S1} +`,W1e=de` query { feeds { ...FeedFragment } } - ${_c} -`,I1e=ue` + ${Cc} +`,G1e=de` query feedEntries($offset: Int!, $limit: Int!, $query: String!) { items: feedEntries(offset: $offset, limit: $limit, query: $query) { id @@ -645,8 +645,8 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a } total: feedEntryCount(query: $query) } - ${ci} -`,$1e=ue` + ${hi} +`,Q1e=de` query feedsTags($type: DataType!) { tags(type: $type) { ...TagFragment @@ -655,9 +655,9 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a ...FeedFragment } } - ${_c} - ${Tu} -`,nee=ue` + ${Cc} + ${Lu} +`,_ee=de` query bucketsTags($type: DataType!) { tags(type: $type) { ...TagFragment @@ -669,8 +669,8 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a topItems } } - ${Tu} -`,O1e=ue` + ${Lu} +`,K1e=de` query feedEntry($id: ID!) { feedEntry(id: $id) { ...FeedEntryFragment @@ -679,9 +679,9 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a } } } - ${_c} - ${bI} -`;ue` + ${Cc} + ${OI} +`;de` query latestExchangeRates($live: Boolean!) { latestExchangeRates(live: $live) { date @@ -691,35 +691,35 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a } } } -`;const P1e=ue` +`;const Y1e=de` query aiChats($offset: Int!, $limit: Int!, $query: String!) { aiChats(offset: $offset, limit: $limit, query: $query) { ...AIChatFragment } aiChatCount(query: $query) } - ${xI} -`,R1e=ue` + ${PI} +`,X1e=de` query { total: imageCount(query: "") trash: imageCount(query: "trash:true") } -`,D1e=ue` +`,J1e=de` query { total: audioCount(query: "") trash: audioCount(query: "trash:true") } -`,L1e=ue` +`,Z1e=de` query { total: videoCount(query: "") trash: videoCount(query: "trash:true") } -`,M1e=ue` +`,exe=de` query { total: packageCount(query: "") system: packageCount(query: "type:system") } -`,F1e=ue` +`,txe=de` query { total: feedEntryCount(query: "") today: feedEntryCount(query: "today:true") @@ -728,30 +728,30 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a count } } -`,N1e=ue` +`,rxe=de` query { total: contactCount(query: "") } -`,z1e=ue` +`,nxe=de` query { total: callCount(query: "") incoming: callCount(query: "type:1") outgoing: callCount(query: "type:2") missed: callCount(query: "type:3") } -`,q1e=ue` +`,ixe=de` query { total: messageCount(query: "") inbox: messageCount(query: "type:1") sent: messageCount(query: "type:2") drafts: messageCount(query: "type:3") } -`,B1e=ue` +`,oxe=de` query { total: noteCount(query: "") trash: noteCount(query: "trash:true") } -`,U1e=ue` +`,axe=de` query aiChats($id: ID!, $query: String!) { aiChat(id: $id) { ...AIChatFragment @@ -761,29 +761,29 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a } aiChatCount(query: $query) } - ${xI} -`,V1e=ue` + ${PI} +`,sxe=de` query { aiChatConfig { chatGPTApiKey } } -`,j1e=ue` +`,lxe=de` query packages($offset: Int!, $limit: Int!, $query: String!, $sortBy: FileSortBy!) { packages(offset: $offset, limit: $limit, query: $query, sortBy: $sortBy) { ...PackageFragment } packageCount(query: $query) } - ${YZ} -`,H1e=ue` + ${uee} +`,cxe=de` query packageStatuses($ids: [ID!]!) { packageStatuses(ids: $ids) { id exist } } -`,W1e=ue` +`,dxe=de` query { screenMirrorState screenMirrorQuality { @@ -791,21 +791,21 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a quality } } -`,G1e=ue` +`,uxe=de` query { screenMirrorQuality { resolution quality } } -`,Pg=ue` +`,Hg=de` query { notifications { ...NotificationFragment } } - ${XZ} -`,Q1e=ue` + ${fee} +`,fxe=de` query { deviceInfo { ...DeviceInfoFragment @@ -821,176 +821,185 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a capacity } } - ${JZ} -`;function iee(t){const e=[],{graphQLErrors:r,networkError:n}=t,i="operation"in t?t.operation:void 0,o="stack"in t?t.stack:void 0;let a;return i&&(a=w3(i.query)),r&&r.forEach(({message:l,locations:d})=>{e.push(`[GraphQL error] ${l}`),i&&(e.push(aee(a,d)),Object.keys(i.variables).length&&e.push(`with variables: ${JSON.stringify(i.variables,null,2)}`))}),n&&e.push(`[Network error] ${n}`),o&&e.push(o),e}function oee(t,e=!0){if(iee(t).forEach(r=>{const n=/\[([\w ]*)](.*)/.exec(r);if(n){const[,i,o]=n;console.log(`%c${i}`,"color:white;border-radius:3px;background:#ff4400;font-weight:bold;padding:2px 6px;",o)}else console.log(r)}),e){let r=new Error().stack;if(r==null)return;const n=r.indexOf(` + ${hee} +`;function yee(t){const e=[],{graphQLErrors:r,networkError:n}=t,i="operation"in t?t.operation:void 0,o="stack"in t?t.stack:void 0;let a;return i&&(a=R3(i.query)),r&&r.forEach(({message:l,locations:d})=>{e.push(`[GraphQL error] ${l}`),i&&(e.push(xee(a,d)),Object.keys(i.variables).length&&e.push(`with variables: ${JSON.stringify(i.variables,null,2)}`))}),n&&e.push(`[Network error] ${n}`),o&&e.push(o),e}function bee(t,e=!0){if(yee(t).forEach(r=>{const n=/\[([\w ]*)](.*)/.exec(r);if(n){const[,i,o]=n;console.log(`%c${i}`,"color:white;border-radius:3px;background:#ff4400;font-weight:bold;padding:2px 6px;",o)}else console.log(r)}),e){let r=new Error().stack;if(r==null)return;const n=r.indexOf(` `);r=r.slice(r.indexOf(` -`,n+1)),console.log(`%c${r}`,"color:grey;")}}function aee(t,e){const r=t.split(` +`,n+1)),console.log(`%c${r}`,"color:grey;")}}function xee(t,e){const r=t.split(` `),n=r.length,i=r.slice(),o={};for(let a=0;a{var i;((i=n.networkError)==null?void 0:i.message)==="connection_timeout"?Tt.emit("toast","connection_timeout"):Tt.emit("toast",n.message),oee(n)}),r}function ps(t,e,r,n,i=!1){const o=t.readQuery({query:r,variables:n}),a=Object.keys(o)[0],l={};a==="files"?l[a]={...o[a],items:i?e.concat(o[a].items):o[a].items.concat(e)}:l[a]=i?e.concat(o[a]):o[a].concat(e),t.writeQuery({query:r,variables:n,data:l})}const wI=ue` +`)}function Nr(t,e=!0){const r=jq(t.document,{clientId:t.appApi?"a":"b",...t.options});return e&&r.onError(n=>{var i;((i=n.networkError)==null?void 0:i.message)==="connection_timeout"?gt.emit("toast","connection_timeout"):gt.emit("toast",n.message),bee(n)}),r}function Es(t,e,r,n,i=!1){const o=t.readQuery({query:r,variables:n}),a=Object.keys(o)[0],l={};a==="files"?l[a]={...o[a],items:i?e.concat(o[a].items):o[a].items.concat(e)}:l[a]=i?e.concat(o[a]):o[a].concat(e),t.writeQuery({query:r,variables:n,data:l})}const RI=de` mutation createChatItem($content: String!) { createChatItem(content: $content) { ...ChatItemFragment } } - ${f1} -`,see=ue` + ${C1} +`,wee=de` mutation deleteChatItem($id: ID!) { deleteChatItem(id: $id) } -`,lee=ue` +`,Tee=de` mutation createDir($path: String!) { createDir(path: $path) { ...FileFragment } } - ${h1} -`,cee=ue` + ${A1} +`,Eee=de` mutation renameFile($path: String!, $name: String!) { renameFile(path: $path, name: $name) } -`,dee=ue` +`,kee=de` mutation copyFile($src: String!, $dst: String!, $overwrite: Boolean!) { copyFile(src: $src, dst: $dst, overwrite: $overwrite) } -`,uee=ue` +`,Cee=de` mutation moveFile($src: String!, $dst: String!, $overwrite: Boolean!) { moveFile(src: $src, dst: $dst, overwrite: $overwrite) } -`,fee=ue` +`,Aee=de` mutation playAudio($path: String!) { playAudio(path: $path) { ...PlaylistAudioFragment } } - ${yI} -`,hee=ue` + ${$I} +`,See=de` mutation updateAudioPlayMode($mode: MediaPlayMode!) { updateAudioPlayMode(mode: $mode) } -`,pee=ue` +`,Iee=de` mutation deletePlaylistAudio($path: String!) { deletePlaylistAudio(path: $path) } -`,K1e=ue` +`,hxe=de` mutation addPlaylistAudios($query: String!) { addPlaylistAudios(query: $query) } -`,mee=ue` +`,$ee=de` mutation clearAudioPlaylist { clearAudioPlaylist } -`,w5=ue` +`,R5=de` mutation deleteMediaItems($type: DataType!, $query: String!) { - deleteMediaItems(type: $type, query: $query) + deleteMediaItems(type: $type, query: $query) { + type + query + } } -`,Y1e=ue` +`,Oee=de` mutation trashMediaItems($type: DataType!, $query: String!) { - trashMediaItems(type: $type, query: $query) + trashMediaItems(type: $type, query: $query) { + type + query + } } -`,X1e=ue` +`,Pee=de` mutation restoreMediaItems($type: DataType!, $query: String!) { - restoreMediaItems(type: $type, query: $query) + restoreMediaItems(type: $type, query: $query) { + type + query + } } -`,J1e=ue` +`,pxe=de` mutation removeFromTags($type: DataType!, $tagIds: [ID!]!, $query: String!) { removeFromTags(type: $type, tagIds: $tagIds, query: $query) } -`,Z1e=ue` +`,mxe=de` mutation addToTags($type: DataType!, $tagIds: [ID!]!, $query: String!) { addToTags(type: $type, tagIds: $tagIds, query: $query) } -`,vee=ue` +`,Ree=de` mutation updateTagRelations($type: DataType!, $item: TagRelationStub!, $addTagIds: [ID!]!, $removeTagIds: [ID!]!) { updateTagRelations(type: $type, item: $item, addTagIds: $addTagIds, removeTagIds: $removeTagIds) } -`,exe=ue` +`,vxe=de` mutation createTag($type: DataType!, $name: String!) { createTag(type: $type, name: $name) { ...TagFragment } } - ${Tu} -`,txe=ue` + ${Lu} +`,gxe=de` mutation updateTag($id: ID!, $name: String!) { updateTag(id: $id, name: $name) { ...TagFragment } } - ${Tu} -`,rxe=ue` + ${Lu} +`,_xe=de` mutation deleteTag($id: ID!) { deleteTag(id: $id) } -`,nxe=ue` +`,yxe=de` mutation saveNote($id: ID!, $input: NoteInput!) { saveNote(id: $id, input: $input) { ...NoteFragment } } - ${p1} -`,ixe=ue` + ${S1} +`,bxe=de` mutation deleteNotes($query: String!) { deleteNotes(query: $query) } -`,oxe=ue` +`,xxe=de` mutation trashNotes($query: String!) { trashNotes(query: $query) } -`,axe=ue` +`,wxe=de` mutation restoreNotes($query: String!) { restoreNotes(query: $query) } -`,sxe=ue` +`,Txe=de` mutation deleteFeedEntries($query: String!) { deleteFeedEntries(query: $query) } -`,lxe=ue` +`,Exe=de` mutation deleteCalls($query: String!) { deleteCalls(query: $query) } -`,cxe=ue` +`,kxe=de` mutation deleteContacts($query: String!) { deleteContacts(query: $query) } -`,dxe=ue` +`,Cxe=de` mutation createFeed($url: String!, $fetchContent: Boolean!) { createFeed(url: $url, fetchContent: $fetchContent) { ...FeedFragment } } - ${_c} -`,uxe=ue` + ${Cc} +`,Axe=de` mutation importFeeds($content: String!) { importFeeds(content: $content) } -`,fxe=ue` +`,Sxe=de` mutation exportFeeds { exportFeeds } -`,hxe=ue` +`,Ixe=de` mutation exportNotes($query: String!) { exportNotes(query: $query) } -`,pxe=ue` +`,$xe=de` mutation relaunchApp { relaunchApp } -`,mxe=ue` +`,Oxe=de` mutation deleteFeed($id: ID!) { deleteFeed(id: $id) } -`,vxe=ue` +`,Pxe=de` mutation updateFeed($id: ID!, $name: String!, $fetchContent: Boolean!) { updateFeed(id: $id, name: $name, fetchContent: $fetchContent) { ...FeedFragment } } - ${_c} -`,gxe=ue` + ${Cc} +`,Rxe=de` mutation syncFeeds($id: ID) { syncFeeds(id: $id) } -`,_xe=ue` +`,Dxe=de` mutation syncFeedContent($id: ID!) { syncFeedContent(id: $id) { ...FeedEntryFragment @@ -999,13 +1008,13 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a } } } - ${_c} - ${bI} -`,yxe=ue` + ${Cc} + ${OI} +`,Lxe=de` mutation call($number: String!) { call(number: $number) } -`,bxe=ue` +`,Mxe=de` mutation createAIChat($id: ID!, $message: String!, $isMe: Boolean!) { createAIChat(id: $id, message: $message, isMe: $isMe) { id @@ -1017,106 +1026,106 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a updatedAt } } -`,xxe=ue` +`,Fxe=de` mutation deleteAIChats($query: String!) { deleteAIChats(query: $query) } -`,wxe=ue` +`,Nxe=de` mutation updateAIChatConfig($chatGPTApiKey: String!) { updateAIChatConfig(chatGPTApiKey: $chatGPTApiKey) { chatGPTApiKey } } -`;ue` +`;de` mutation uninstallPackages($ids: [ID!]!) { uninstallPackages(ids: $ids) } -`;const Txe=ue` +`;const zxe=de` mutation uninstallPackages($id: ID!) { uninstallPackages(ids: [$id]) } -`,Exe=ue` +`,qxe=de` mutation startScreenMirror { startScreenMirror } -`,kxe=ue` +`,Bxe=de` mutation stopScreenMirror { stopScreenMirror } -`,Cxe=ue` +`,Vxe=de` mutation setTempValue($key: String!, $value: String!) { setTempValue(key: $key, value: $value) { key value } } -`,gee=ue` +`,Dee=de` mutation cancelNotifications($ids: [ID!]!) { cancelNotifications(ids: $ids) } -`,Axe=ue` +`,Uxe=de` mutation updateScreenMirrorQuality($quality: Int!, $resolution: Int!) { updateScreenMirrorQuality(quality: $quality, resolution: $resolution) } -`,Sxe=ue` +`,jxe=de` mutation saveFeedEntriesToNotes($query: String!) { saveFeedEntriesToNotes(query: $query) { ...NoteFragment } } - ${p1} -`;var dp={exports:{}};dp.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",l="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",u=500,f="__lodash_placeholder__",g=1,y=2,x=4,m=1,p=2,_=1,v=2,b=4,w=8,E=16,C=32,S=64,P=128,R=256,D=512,z=30,j="...",q=800,Z=16,we=1,$e=2,ye=3,ke=1/0,Ie=9007199254740991,Be=17976931348623157e292,Re=NaN,se=4294967295,Te=se-1,Oe=se>>>1,Ce=[["ary",P],["bind",_],["bindKey",v],["curry",w],["curryRight",E],["flip",D],["partial",C],["partialRight",S],["rearg",R]],je="[object Arguments]",Ge="[object Array]",te="[object AsyncFunction]",le="[object Boolean]",fe="[object Date]",De="[object DOMException]",Ke="[object Error]",nt="[object Function]",k="[object GeneratorFunction]",A="[object Map]",M="[object Number]",V="[object Null]",G="[object Object]",ae="[object Promise]",Ae="[object Proxy]",he="[object RegExp]",ge="[object Set]",ie="[object String]",W="[object Symbol]",U="[object Undefined]",xe="[object WeakMap]",Se="[object WeakSet]",Y="[object ArrayBuffer]",ce="[object DataView]",Fe="[object Float32Array]",Ye="[object Float64Array]",pt="[object Int8Array]",vr="[object Int16Array]",cn="[object Int32Array]",Vr="[object Uint8Array]",ui="[object Uint8ClampedArray]",xr="[object Uint16Array]",jr="[object Uint32Array]",Ys=/\b__p \+= '';/g,Dm=/\b(__p \+=) '' \+/g,Lm=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Fu=/&(?:amp|lt|gt|quot|#39);/g,Nu=/[&<>"']/g,Mm=RegExp(Fu.source),dn=RegExp(Nu.source),zu=/<%-([\s\S]+?)%>/g,qu=/<%([\s\S]+?)%>/g,Ic=/<%=([\s\S]+?)%>/g,Bu=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Uu=/^\w*$/,Vu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Xs=/[\\^$.*+?()[\]{}|]/g,ju=RegExp(Xs.source),Js=/^\s+/,Hu=/\s/,Wu=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Gu=/\{\n\/\* \[wrapped with (.+)\] \*/,Qu=/,? & /,Ku=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Yu=/[()=,{}\[\]\/\s]/,Xu=/\\(\\)?/g,Ju=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$c=/\w*$/,Zu=/^[-+]0x[0-9a-f]+$/i,wr=/^0b[01]+$/i,ef=/^\[object .+?Constructor\]$/,tf=/^0o[0-7]+$/i,kO=/^(?:0|[1-9]\d*)$/,CO=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rf=/($^)/,AO=/['\n\r\u2028\u2029\\]/g,nf="\\ud800-\\udfff",SO="\\u0300-\\u036f",IO="\\ufe20-\\ufe2f",$O="\\u20d0-\\u20ff",B1=SO+IO+$O,U1="\\u2700-\\u27bf",V1="a-z\\xdf-\\xf6\\xf8-\\xff",OO="\\xac\\xb1\\xd7\\xf7",PO="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",RO="\\u2000-\\u206f",DO=" \\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",j1="A-Z\\xc0-\\xd6\\xd8-\\xde",H1="\\ufe0e\\ufe0f",W1=OO+PO+RO+DO,Fm="['’]",LO="["+nf+"]",G1="["+W1+"]",of="["+B1+"]",Q1="\\d+",MO="["+U1+"]",K1="["+V1+"]",Y1="[^"+nf+W1+Q1+U1+V1+j1+"]",Nm="\\ud83c[\\udffb-\\udfff]",FO="(?:"+of+"|"+Nm+")",X1="[^"+nf+"]",zm="(?:\\ud83c[\\udde6-\\uddff]){2}",qm="[\\ud800-\\udbff][\\udc00-\\udfff]",Zs="["+j1+"]",J1="\\u200d",Z1="(?:"+K1+"|"+Y1+")",NO="(?:"+Zs+"|"+Y1+")",ex="(?:"+Fm+"(?:d|ll|m|re|s|t|ve))?",tx="(?:"+Fm+"(?:D|LL|M|RE|S|T|VE))?",rx=FO+"?",nx="["+H1+"]?",zO="(?:"+J1+"(?:"+[X1,zm,qm].join("|")+")"+nx+rx+")*",qO="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",BO="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ix=nx+rx+zO,UO="(?:"+[MO,zm,qm].join("|")+")"+ix,VO="(?:"+[X1+of+"?",of,zm,qm,LO].join("|")+")",jO=RegExp(Fm,"g"),HO=RegExp(of,"g"),Bm=RegExp(Nm+"(?="+Nm+")|"+VO+ix,"g"),WO=RegExp([Zs+"?"+K1+"+"+ex+"(?="+[G1,Zs,"$"].join("|")+")",NO+"+"+tx+"(?="+[G1,Zs+Z1,"$"].join("|")+")",Zs+"?"+Z1+"+"+ex,Zs+"+"+tx,BO,qO,Q1,UO].join("|"),"g"),GO=RegExp("["+J1+nf+B1+H1+"]"),QO=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,KO=["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"],YO=-1,Xt={};Xt[Fe]=Xt[Ye]=Xt[pt]=Xt[vr]=Xt[cn]=Xt[Vr]=Xt[ui]=Xt[xr]=Xt[jr]=!0,Xt[je]=Xt[Ge]=Xt[Y]=Xt[le]=Xt[ce]=Xt[fe]=Xt[Ke]=Xt[nt]=Xt[A]=Xt[M]=Xt[G]=Xt[he]=Xt[ge]=Xt[ie]=Xt[xe]=!1;var Kt={};Kt[je]=Kt[Ge]=Kt[Y]=Kt[ce]=Kt[le]=Kt[fe]=Kt[Fe]=Kt[Ye]=Kt[pt]=Kt[vr]=Kt[cn]=Kt[A]=Kt[M]=Kt[G]=Kt[he]=Kt[ge]=Kt[ie]=Kt[W]=Kt[Vr]=Kt[ui]=Kt[xr]=Kt[jr]=!0,Kt[Ke]=Kt[nt]=Kt[xe]=!1;var XO={À:"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"},JO={"&":"&","<":"<",">":">",'"':""","'":"'"},ZO={"&":"&","<":"<",">":">",""":'"',"'":"'"},e8={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},t8=parseFloat,r8=parseInt,ox=typeof po=="object"&&po&&po.Object===Object&&po,n8=typeof self=="object"&&self&&self.Object===Object&&self,Mr=ox||n8||Function("return this")(),Um=e&&!e.nodeType&&e,Ga=Um&&!0&&t&&!t.nodeType&&t,ax=Ga&&Ga.exports===Um,Vm=ax&&ox.process,Bn=function(){try{var Q=Ga&&Ga.require&&Ga.require("util").types;return Q||Vm&&Vm.binding&&Vm.binding("util")}catch{}}(),sx=Bn&&Bn.isArrayBuffer,lx=Bn&&Bn.isDate,cx=Bn&&Bn.isMap,dx=Bn&&Bn.isRegExp,ux=Bn&&Bn.isSet,fx=Bn&&Bn.isTypedArray;function kn(Q,de,ne){switch(ne.length){case 0:return Q.call(de);case 1:return Q.call(de,ne[0]);case 2:return Q.call(de,ne[0],ne[1]);case 3:return Q.call(de,ne[0],ne[1],ne[2])}return Q.apply(de,ne)}function i8(Q,de,ne,qe){for(var st=-1,Rt=Q==null?0:Q.length;++st-1}function jm(Q,de,ne){for(var qe=-1,st=Q==null?0:Q.length;++qe-1;);return ne}function bx(Q,de){for(var ne=Q.length;ne--&&el(de,Q[ne],0)>-1;);return ne}function h8(Q,de){for(var ne=Q.length,qe=0;ne--;)Q[ne]===de&&++qe;return qe}var p8=Qm(XO),m8=Qm(JO);function v8(Q){return"\\"+e8[Q]}function g8(Q,de){return Q==null?r:Q[de]}function tl(Q){return GO.test(Q)}function _8(Q){return QO.test(Q)}function y8(Q){for(var de,ne=[];!(de=Q.next()).done;)ne.push(de.value);return ne}function Jm(Q){var de=-1,ne=Array(Q.size);return Q.forEach(function(qe,st){ne[++de]=[st,qe]}),ne}function xx(Q,de){return function(ne){return Q(de(ne))}}function zo(Q,de){for(var ne=-1,qe=Q.length,st=0,Rt=[];++ne-1}function a7(s,c){var h=this.__data__,T=Tf(h,s);return T<0?(++this.size,h.push([s,c])):h[T][1]=c,this}Yi.prototype.clear=r7,Yi.prototype.delete=n7,Yi.prototype.get=i7,Yi.prototype.has=o7,Yi.prototype.set=a7;function Xi(s){var c=-1,h=s==null?0:s.length;for(this.clear();++c=c?s:c)),s}function Hn(s,c,h,T,I,L){var F,B=c&g,K=c&y,pe=c&x;if(h&&(F=I?h(s,T,I,L):h(s)),F!==r)return F;if(!nr(s))return s;var _e=ct(s);if(_e){if(F=dP(s),!B)return un(s,F)}else{var Ee=Wr(s),Ne=Ee==nt||Ee==k;if(Ho(s))return n2(s,B);if(Ee==G||Ee==je||Ne&&!I){if(F=K||Ne?{}:w2(s),!B)return K?Z7(s,w7(F,s)):J7(s,Rx(F,s))}else{if(!Kt[Ee])return I?s:{};F=uP(s,Ee,B)}}L||(L=new hi);var Qe=L.get(s);if(Qe)return Qe;L.set(s,F),X2(s)?s.forEach(function(tt){F.add(Hn(tt,c,h,tt,s,L))}):K2(s)&&s.forEach(function(tt,_t){F.set(_t,Hn(tt,c,h,_t,s,L))});var et=pe?K?Ev:Tv:K?hn:Sr,ht=_e?r:et(s);return Un(ht||s,function(tt,_t){ht&&(_t=tt,tt=s[_t]),Fc(F,_t,Hn(tt,c,h,_t,s,L))}),F}function T7(s){var c=Sr(s);return function(h){return Dx(h,s,c)}}function Dx(s,c,h){var T=h.length;if(s==null)return!T;for(s=Ht(s);T--;){var I=h[T],L=c[I],F=s[I];if(F===r&&!(I in s)||!L(F))return!1}return!0}function Lx(s,c,h){if(typeof s!="function")throw new Vn(a);return jc(function(){s.apply(r,h)},c)}function Nc(s,c,h,T){var I=-1,L=af,F=!0,B=s.length,K=[],pe=c.length;if(!B)return K;h&&(c=rr(c,Cn(h))),T?(L=jm,F=!1):c.length>=i&&(L=Oc,F=!1,c=new Ya(c));e:for(;++II?0:I+h),T=T===r||T>I?I:ft(T),T<0&&(T+=I),T=h>T?0:Z2(T);h0&&h(B)?c>1?Fr(B,c-1,h,T,I):No(I,B):T||(I[I.length]=B)}return I}var ov=c2(),Nx=c2(!0);function Pi(s,c){return s&&ov(s,c,Sr)}function av(s,c){return s&&Nx(s,c,Sr)}function kf(s,c){return Fo(c,function(h){return ro(s[h])})}function Ja(s,c){c=Vo(c,s);for(var h=0,T=c.length;s!=null&&hc}function C7(s,c){return s!=null&&Nt.call(s,c)}function A7(s,c){return s!=null&&c in Ht(s)}function S7(s,c,h){return s>=Hr(c,h)&&s=120&&_e.length>=120)?new Ya(F&&_e):r}_e=s[0];var Ee=-1,Ne=B[0];e:for(;++Ee-1;)B!==s&&vf.call(B,K,1),vf.call(s,K,1);return s}function Kx(s,c){for(var h=s?c.length:0,T=h-1;h--;){var I=c[h];if(h==T||I!==L){var L=I;to(I)?vf.call(s,I,1):vv(s,I)}}return s}function hv(s,c){return s+yf(Ix()*(c-s+1))}function B7(s,c,h,T){for(var I=-1,L=Er(_f((c-s)/(h||1)),0),F=ne(L);L--;)F[T?L:++I]=s,s+=h;return F}function pv(s,c){var h="";if(!s||c<1||c>Ie)return h;do c%2&&(h+=s),c=yf(c/2),c&&(s+=s);while(c);return h}function mt(s,c){return Ov(k2(s,c,pn),s+"")}function U7(s){return Px(fl(s))}function V7(s,c){var h=fl(s);return Mf(h,Xa(c,0,h.length))}function Bc(s,c,h,T){if(!nr(s))return s;c=Vo(c,s);for(var I=-1,L=c.length,F=L-1,B=s;B!=null&&++II?0:I+c),h=h>I?I:h,h<0&&(h+=I),I=c>h?0:h-c>>>0,c>>>=0;for(var L=ne(I);++T>>1,F=s[L];F!==null&&!Sn(F)&&(h?F<=c:F=i){var pe=c?null:nP(s);if(pe)return lf(pe);F=!1,I=Oc,K=new Ya}else K=c?[]:B;e:for(;++T=T?s:Wn(s,c,h)}var r2=D8||function(s){return Mr.clearTimeout(s)};function n2(s,c){if(c)return s.slice();var h=s.length,T=Ex?Ex(h):new s.constructor(h);return s.copy(T),T}function bv(s){var c=new s.constructor(s.byteLength);return new pf(c).set(new pf(s)),c}function Q7(s,c){var h=c?bv(s.buffer):s.buffer;return new s.constructor(h,s.byteOffset,s.byteLength)}function K7(s){var c=new s.constructor(s.source,$c.exec(s));return c.lastIndex=s.lastIndex,c}function Y7(s){return Mc?Ht(Mc.call(s)):{}}function i2(s,c){var h=c?bv(s.buffer):s.buffer;return new s.constructor(h,s.byteOffset,s.length)}function o2(s,c){if(s!==c){var h=s!==r,T=s===null,I=s===s,L=Sn(s),F=c!==r,B=c===null,K=c===c,pe=Sn(c);if(!B&&!pe&&!L&&s>c||L&&F&&K&&!B&&!pe||T&&F&&K||!h&&K||!I)return 1;if(!T&&!L&&!pe&&s=B)return K;var pe=h[T];return K*(pe=="desc"?-1:1)}}return s.index-c.index}function a2(s,c,h,T){for(var I=-1,L=s.length,F=h.length,B=-1,K=c.length,pe=Er(L-F,0),_e=ne(K+pe),Ee=!T;++B1?h[I-1]:r,F=I>2?h[2]:r;for(L=s.length>3&&typeof L=="function"?(I--,L):r,F&&Zr(h[0],h[1],F)&&(L=I<3?r:L,I=1),c=Ht(c);++T-1?I[L?c[F]:F]:r}}function f2(s){return eo(function(c){var h=c.length,T=h,I=jn.prototype.thru;for(s&&c.reverse();T--;){var L=c[T];if(typeof L!="function")throw new Vn(a);if(I&&!F&&Df(L)=="wrapper")var F=new jn([],!0)}for(T=F?T:h;++T1&&Et.reverse(),_e&&K<_t&&(Et.length=K),this&&this!==Mr&&this instanceof tt&&(io=ht||Uc(io)),io.apply(mi,Et)}return tt}function h2(s,c){return function(h,T){return I7(h,s,c(T),{})}}function Of(s,c){return function(h,T){var I;if(h===r&&T===r)return c;if(h!==r&&(I=h),T!==r){if(I===r)return T;typeof h=="string"||typeof T=="string"?(h=An(h),T=An(T)):(h=Jx(h),T=Jx(T)),I=s(h,T)}return I}}function xv(s){return eo(function(c){return c=rr(c,Cn(Ze())),mt(function(h){var T=this;return s(c,function(I){return kn(I,T,h)})})})}function Pf(s,c){c=c===r?" ":An(c);var h=c.length;if(h<2)return h?pv(c,s):c;var T=pv(c,_f(s/rl(c)));return tl(c)?jo(fi(T),0,s).join(""):T.slice(0,s)}function rP(s,c,h,T){var I=c&_,L=Uc(s);function F(){for(var B=-1,K=arguments.length,pe=-1,_e=T.length,Ee=ne(_e+K),Ne=this&&this!==Mr&&this instanceof F?L:s;++pe<_e;)Ee[pe]=T[pe];for(;K--;)Ee[pe++]=arguments[++B];return kn(Ne,I?h:this,Ee)}return F}function p2(s){return function(c,h,T){return T&&typeof T!="number"&&Zr(c,h,T)&&(h=T=r),c=no(c),h===r?(h=c,c=0):h=no(h),T=T===r?cB))return!1;var pe=L.get(s),_e=L.get(c);if(pe&&_e)return pe==c&&_e==s;var Ee=-1,Ne=!0,Qe=h&p?new Ya:r;for(L.set(s,c),L.set(c,s);++Ee1?"& ":"")+c[T],c=c.join(h>2?", ":" "),s.replace(Wu,`{ + ${S1} +`;var bp={exports:{}};bp.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",l="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",u=500,f="__lodash_placeholder__",g=1,y=2,x=4,m=1,p=2,_=1,v=2,b=4,w=8,E=16,C=32,S=64,P=128,R=256,D=512,z=30,j="...",q=800,J=16,be=1,Oe=2,ge=3,ke=1/0,Se=9007199254740991,Be=17976931348623157e292,Re=NaN,se=4294967295,we=se-1,Pe=se>>>1,Ce=[["ary",P],["bind",_],["bindKey",v],["curry",w],["curryRight",E],["flip",D],["partial",C],["partialRight",S],["rearg",R]],je="[object Arguments]",Ge="[object Array]",ee="[object AsyncFunction]",le="[object Boolean]",ue="[object Date]",De="[object DOMException]",Ke="[object Error]",it="[object Function]",k="[object GeneratorFunction]",A="[object Map]",M="[object Number]",U="[object Null]",G="[object Object]",ae="[object Promise]",Ae="[object Proxy]",fe="[object RegExp]",_e="[object Set]",ie="[object String]",W="[object Symbol]",B="[object Undefined]",xe="[object WeakMap]",Ie="[object WeakSet]",ze="[object ArrayBuffer]",Ye="[object DataView]",dt="[object Float32Array]",ht="[object Float64Array]",sr="[object Int8Array]",Un="[object Int16Array]",Ji="[object Int32Array]",jn="[object Uint8Array]",Zi="[object Uint8ClampedArray]",oe="[object Uint16Array]",Ee="[object Uint32Array]",Ze=/\b__p \+= '';/g,Gt=/\b(__p \+=) '' \+/g,kr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,tn=/&(?:amp|lt|gt|quot|#39);/g,Ri=/[&<>"']/g,Vo=RegExp(tn.source),al=RegExp(Ri.source),jm=/<%-([\s\S]+?)%>/g,Hm=/<%([\s\S]+?)%>/g,Ku=/<%=([\s\S]+?)%>/g,Wm=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Yu=/^\w*$/,Uo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fc=/[\\^$.*+?()[\]{}|]/g,Gm=RegExp(Fc.source),Nc=/^\s+/,Qm=/\s/,Km=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Br=/\{\n\/\* \[wrapped with (.+)\] \*/,Xu=/,? & /,Ju=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Zu=/[()=,{}\[\]\/\s]/,ef=/\\(\\)?/g,tf=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,zc=/\w*$/,rf=/^[-+]0x[0-9a-f]+$/i,nf=/^0b[01]+$/i,of=/^\[object .+?Constructor\]$/,af=/^0o[0-7]+$/i,sf=/^(?:0|[1-9]\d*)$/,lf=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,es=/($^)/,cf=/['\n\r\u2028\u2029\\]/g,ts="\\ud800-\\udfff",df="\\u0300-\\u036f",uf="\\ufe20-\\ufe2f",ff="\\u20d0-\\u20ff",qc=df+uf+ff,Bc="\\u2700-\\u27bf",Vc="a-z\\xdf-\\xf6\\xf8-\\xff",hf="\\xac\\xb1\\xd7\\xf7",Cr="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",pf="\\u2000-\\u206f",mf=" \\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",rx="A-Z\\xc0-\\xd6\\xd8-\\xde",nx="\\ufe0e\\ufe0f",ix=hf+Cr+pf+mf,Ym="['’]",M8="["+ts+"]",ox="["+ix+"]",vf="["+qc+"]",ax="\\d+",F8="["+Bc+"]",sx="["+Vc+"]",lx="[^"+ts+ix+ax+Bc+Vc+rx+"]",Xm="\\ud83c[\\udffb-\\udfff]",N8="(?:"+vf+"|"+Xm+")",cx="[^"+ts+"]",Jm="(?:\\ud83c[\\udde6-\\uddff]){2}",Zm="[\\ud800-\\udbff][\\udc00-\\udfff]",sl="["+rx+"]",dx="\\u200d",ux="(?:"+sx+"|"+lx+")",z8="(?:"+sl+"|"+lx+")",fx="(?:"+Ym+"(?:d|ll|m|re|s|t|ve))?",hx="(?:"+Ym+"(?:D|LL|M|RE|S|T|VE))?",px=N8+"?",mx="["+nx+"]?",q8="(?:"+dx+"(?:"+[cx,Jm,Zm].join("|")+")"+mx+px+")*",B8="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",V8="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",vx=mx+px+q8,U8="(?:"+[F8,Jm,Zm].join("|")+")"+vx,j8="(?:"+[cx+vf+"?",vf,Jm,Zm,M8].join("|")+")",H8=RegExp(Ym,"g"),W8=RegExp(vf,"g"),ev=RegExp(Xm+"(?="+Xm+")|"+j8+vx,"g"),G8=RegExp([sl+"?"+sx+"+"+fx+"(?="+[ox,sl,"$"].join("|")+")",z8+"+"+hx+"(?="+[ox,sl+ux,"$"].join("|")+")",sl+"?"+ux+"+"+fx,sl+"+"+hx,V8,B8,ax,U8].join("|"),"g"),Q8=RegExp("["+dx+ts+qc+nx+"]"),K8=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Y8=["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"],X8=-1,er={};er[dt]=er[ht]=er[sr]=er[Un]=er[Ji]=er[jn]=er[Zi]=er[oe]=er[Ee]=!0,er[je]=er[Ge]=er[ze]=er[le]=er[Ye]=er[ue]=er[Ke]=er[it]=er[A]=er[M]=er[G]=er[fe]=er[_e]=er[ie]=er[xe]=!1;var Jt={};Jt[je]=Jt[Ge]=Jt[ze]=Jt[Ye]=Jt[le]=Jt[ue]=Jt[dt]=Jt[ht]=Jt[sr]=Jt[Un]=Jt[Ji]=Jt[A]=Jt[M]=Jt[G]=Jt[fe]=Jt[_e]=Jt[ie]=Jt[W]=Jt[jn]=Jt[Zi]=Jt[oe]=Jt[Ee]=!0,Jt[Ke]=Jt[it]=Jt[xe]=!1;var J8={À:"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"},Z8={"&":"&","<":"<",">":">",'"':""","'":"'"},eO={"&":"&","<":"<",">":">",""":'"',"'":"'"},tO={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rO=parseFloat,nO=parseInt,gx=typeof _o=="object"&&_o&&_o.Object===Object&&_o,iO=typeof self=="object"&&self&&self.Object===Object&&self,Vr=gx||iO||Function("return this")(),tv=e&&!e.nodeType&&e,rs=tv&&!0&&t&&!t.nodeType&&t,_x=rs&&rs.exports===tv,rv=_x&&gx.process,Hn=function(){try{var Q=rs&&rs.require&&rs.require("util").types;return Q||rv&&rv.binding&&rv.binding("util")}catch{}}(),yx=Hn&&Hn.isArrayBuffer,bx=Hn&&Hn.isDate,xx=Hn&&Hn.isMap,wx=Hn&&Hn.isRegExp,Tx=Hn&&Hn.isSet,Ex=Hn&&Hn.isTypedArray;function An(Q,ce,re){switch(re.length){case 0:return Q.call(ce);case 1:return Q.call(ce,re[0]);case 2:return Q.call(ce,re[0],re[1]);case 3:return Q.call(ce,re[0],re[1],re[2])}return Q.apply(ce,re)}function oO(Q,ce,re,qe){for(var ct=-1,Mt=Q==null?0:Q.length;++ct-1}function nv(Q,ce,re){for(var qe=-1,ct=Q==null?0:Q.length;++qe-1;);return re}function Px(Q,ce){for(var re=Q.length;re--&&ll(ce,Q[re],0)>-1;);return re}function pO(Q,ce){for(var re=Q.length,qe=0;re--;)Q[re]===ce&&++qe;return qe}var mO=sv(J8),vO=sv(Z8);function gO(Q){return"\\"+tO[Q]}function _O(Q,ce){return Q==null?r:Q[ce]}function cl(Q){return Q8.test(Q)}function yO(Q){return K8.test(Q)}function bO(Q){for(var ce,re=[];!(ce=Q.next()).done;)re.push(ce.value);return re}function uv(Q){var ce=-1,re=Array(Q.size);return Q.forEach(function(qe,ct){re[++ce]=[ct,qe]}),re}function Rx(Q,ce){return function(re){return Q(ce(re))}}function Wo(Q,ce){for(var re=-1,qe=Q.length,ct=0,Mt=[];++re-1}function s7(s,c){var h=this.__data__,T=Df(h,s);return T<0?(++this.size,h.push([s,c])):h[T][1]=c,this}eo.prototype.clear=n7,eo.prototype.delete=i7,eo.prototype.get=o7,eo.prototype.has=a7,eo.prototype.set=s7;function to(s){var c=-1,h=s==null?0:s.length;for(this.clear();++c=c?s:c)),s}function Kn(s,c,h,T,I,L){var F,V=c&g,K=c&y,he=c&x;if(h&&(F=I?h(s,T,I,L):h(s)),F!==r)return F;if(!lr(s))return s;var ve=ut(s);if(ve){if(F=uP(s),!V)return hn(s,F)}else{var Te=Yr(s),Fe=Te==it||Te==k;if(Jo(s))return m2(s,V);if(Te==G||Te==je||Fe&&!I){if(F=K||Fe?{}:D2(s),!V)return K?eP(s,T7(F,s)):Z7(s,Hx(F,s))}else{if(!Jt[Te])return I?s:{};F=fP(s,Te,V)}}L||(L=new mi);var Qe=L.get(s);if(Qe)return Qe;L.set(s,F),cw(s)?s.forEach(function(rt){F.add(Kn(rt,c,h,rt,s,L))}):sw(s)&&s.forEach(function(rt,wt){F.set(wt,Kn(rt,c,h,wt,s,L))});var tt=he?K?Fv:Mv:K?mn:Pr,vt=ve?r:tt(s);return Wn(vt||s,function(rt,wt){vt&&(wt=rt,rt=s[wt]),Kc(F,wt,Kn(rt,c,h,wt,s,L))}),F}function E7(s){var c=Pr(s);return function(h){return Wx(h,s,c)}}function Wx(s,c,h){var T=h.length;if(s==null)return!T;for(s=Qt(s);T--;){var I=h[T],L=c[I],F=s[I];if(F===r&&!(I in s)||!L(F))return!1}return!0}function Gx(s,c,h){if(typeof s!="function")throw new Gn(a);return rd(function(){s.apply(r,h)},c)}function Yc(s,c,h,T){var I=-1,L=gf,F=!0,V=s.length,K=[],he=c.length;if(!V)return K;h&&(c=ar(c,Sn(h))),T?(L=nv,F=!1):c.length>=i&&(L=Uc,F=!1,c=new os(c));e:for(;++II?0:I+h),T=T===r||T>I?I:mt(T),T<0&&(T+=I),T=h>T?0:uw(T);h0&&h(V)?c>1?Ur(V,c-1,h,T,I):Ho(I,V):T||(I[I.length]=V)}return I}var _v=x2(),Yx=x2(!0);function Di(s,c){return s&&_v(s,c,Pr)}function yv(s,c){return s&&Yx(s,c,Pr)}function Mf(s,c){return jo(c,function(h){return ao(s[h])})}function ss(s,c){c=Yo(c,s);for(var h=0,T=c.length;s!=null&&hc}function A7(s,c){return s!=null&&qt.call(s,c)}function S7(s,c){return s!=null&&c in Qt(s)}function I7(s,c,h){return s>=Kr(c,h)&&s=120&&ve.length>=120)?new os(F&&ve):r}ve=s[0];var Te=-1,Fe=V[0];e:for(;++Te-1;)V!==s&&Af.call(V,K,1),Af.call(s,K,1);return s}function s2(s,c){for(var h=s?c.length:0,T=h-1;h--;){var I=c[h];if(h==T||I!==L){var L=I;oo(I)?Af.call(s,I,1):Iv(s,I)}}return s}function Cv(s,c){return s+$f(Bx()*(c-s+1))}function V7(s,c,h,T){for(var I=-1,L=Sr(If((c-s)/(h||1)),0),F=re(L);L--;)F[T?L:++I]=s,s+=h;return F}function Av(s,c){var h="";if(!s||c<1||c>Se)return h;do c%2&&(h+=s),c=$f(c/2),c&&(s+=s);while(c);return h}function _t(s,c){return jv(F2(s,c,vn),s+"")}function U7(s){return jx(bl(s))}function j7(s,c){var h=bl(s);return Gf(h,as(c,0,h.length))}function Zc(s,c,h,T){if(!lr(s))return s;c=Yo(c,s);for(var I=-1,L=c.length,F=L-1,V=s;V!=null&&++II?0:I+c),h=h>I?I:h,h<0&&(h+=I),I=c>h?0:h-c>>>0,c>>>=0;for(var L=re(I);++T>>1,F=s[L];F!==null&&!$n(F)&&(h?F<=c:F=i){var he=c?null:iP(s);if(he)return yf(he);F=!1,I=Uc,K=new os}else K=c?[]:V;e:for(;++T=T?s:Yn(s,c,h)}var p2=LO||function(s){return Vr.clearTimeout(s)};function m2(s,c){if(c)return s.slice();var h=s.length,T=Mx?Mx(h):new s.constructor(h);return s.copy(T),T}function Rv(s){var c=new s.constructor(s.byteLength);return new kf(c).set(new kf(s)),c}function K7(s,c){var h=c?Rv(s.buffer):s.buffer;return new s.constructor(h,s.byteOffset,s.byteLength)}function Y7(s){var c=new s.constructor(s.source,zc.exec(s));return c.lastIndex=s.lastIndex,c}function X7(s){return Qc?Qt(Qc.call(s)):{}}function v2(s,c){var h=c?Rv(s.buffer):s.buffer;return new s.constructor(h,s.byteOffset,s.length)}function g2(s,c){if(s!==c){var h=s!==r,T=s===null,I=s===s,L=$n(s),F=c!==r,V=c===null,K=c===c,he=$n(c);if(!V&&!he&&!L&&s>c||L&&F&&K&&!V&&!he||T&&F&&K||!h&&K||!I)return 1;if(!T&&!L&&!he&&s=V)return K;var he=h[T];return K*(he=="desc"?-1:1)}}return s.index-c.index}function _2(s,c,h,T){for(var I=-1,L=s.length,F=h.length,V=-1,K=c.length,he=Sr(L-F,0),ve=re(K+he),Te=!T;++V1?h[I-1]:r,F=I>2?h[2]:r;for(L=s.length>3&&typeof L=="function"?(I--,L):r,F&&nn(h[0],h[1],F)&&(L=I<3?r:L,I=1),c=Qt(c);++T-1?I[L?c[F]:F]:r}}function E2(s){return io(function(c){var h=c.length,T=h,I=Qn.prototype.thru;for(s&&c.reverse();T--;){var L=c[T];if(typeof L!="function")throw new Gn(a);if(I&&!F&&Hf(L)=="wrapper")var F=new Qn([],!0)}for(T=F?T:h;++T1&&Ct.reverse(),ve&&KV))return!1;var he=L.get(s),ve=L.get(c);if(he&&ve)return he==c&&ve==s;var Te=-1,Fe=!0,Qe=h&p?new os:r;for(L.set(s,c),L.set(c,s);++Te1?"& ":"")+c[T],c=c.join(h>2?", ":" "),s.replace(Km,`{ /* [wrapped with `+c+`] */ -`)}function hP(s){return ct(s)||ts(s)||!!(Ax&&s&&s[Ax])}function to(s,c){var h=typeof s;return c=c??Ie,!!c&&(h=="number"||h!="symbol"&&kO.test(s))&&s>-1&&s%1==0&&s0){if(++c>=q)return arguments[0]}else c=0;return s.apply(r,arguments)}}function Mf(s,c){var h=-1,T=s.length,I=T-1;for(c=c===r?T:c;++h1?s[c-1]:r;return h=typeof h=="function"?(s.pop(),h):r,F2(s,h)});function N2(s){var c=$(s);return c.__chain__=!0,c}function ER(s,c){return c(s),s}function Ff(s,c){return c(s)}var kR=eo(function(s){var c=s.length,h=c?s[0]:0,T=this.__wrapped__,I=function(L){return iv(L,s)};return c>1||this.__actions__.length||!(T instanceof bt)||!to(h)?this.thru(I):(T=T.slice(h,+h+(c?1:0)),T.__actions__.push({func:Ff,args:[I],thisArg:r}),new jn(T,this.__chain__).thru(function(L){return c&&!L.length&&L.push(r),L}))});function CR(){return N2(this)}function AR(){return new jn(this.value(),this.__chain__)}function SR(){this.__values__===r&&(this.__values__=J2(this.value()));var s=this.__index__>=this.__values__.length,c=s?r:this.__values__[this.__index__++];return{done:s,value:c}}function IR(){return this}function $R(s){for(var c,h=this;h instanceof wf;){var T=O2(h);T.__index__=0,T.__values__=r,c?I.__wrapped__=T:c=T;var I=T;h=h.__wrapped__}return I.__wrapped__=s,c}function OR(){var s=this.__wrapped__;if(s instanceof bt){var c=s;return this.__actions__.length&&(c=new bt(this)),c=c.reverse(),c.__actions__.push({func:Ff,args:[Pv],thisArg:r}),new jn(c,this.__chain__)}return this.thru(Pv)}function PR(){return e2(this.__wrapped__,this.__actions__)}var RR=If(function(s,c,h){Nt.call(s,h)?++s[h]:Ji(s,h,1)});function DR(s,c,h){var T=ct(s)?hx:E7;return h&&Zr(s,c,h)&&(c=r),T(s,Ze(c,3))}function LR(s,c){var h=ct(s)?Fo:Fx;return h(s,Ze(c,3))}var MR=u2(P2),FR=u2(R2);function NR(s,c){return Fr(Nf(s,c),1)}function zR(s,c){return Fr(Nf(s,c),ke)}function qR(s,c,h){return h=h===r?1:ft(h),Fr(Nf(s,c),h)}function z2(s,c){var h=ct(s)?Un:Bo;return h(s,Ze(c,3))}function q2(s,c){var h=ct(s)?o8:Mx;return h(s,Ze(c,3))}var BR=If(function(s,c,h){Nt.call(s,h)?s[h].push(c):Ji(s,h,[c])});function UR(s,c,h,T){s=fn(s)?s:fl(s),h=h&&!T?ft(h):0;var I=s.length;return h<0&&(h=Er(I+h,0)),Vf(s)?h<=I&&s.indexOf(c,h)>-1:!!I&&el(s,c,h)>-1}var VR=mt(function(s,c,h){var T=-1,I=typeof c=="function",L=fn(s)?ne(s.length):[];return Bo(s,function(F){L[++T]=I?kn(c,F,h):zc(F,c,h)}),L}),jR=If(function(s,c,h){Ji(s,h,c)});function Nf(s,c){var h=ct(s)?rr:Vx;return h(s,Ze(c,3))}function HR(s,c,h,T){return s==null?[]:(ct(c)||(c=c==null?[]:[c]),h=T?r:h,ct(h)||(h=h==null?[]:[h]),Gx(s,c,h))}var WR=If(function(s,c,h){s[h?0:1].push(c)},function(){return[[],[]]});function GR(s,c,h){var T=ct(s)?Hm:gx,I=arguments.length<3;return T(s,Ze(c,4),h,I,Bo)}function QR(s,c,h){var T=ct(s)?a8:gx,I=arguments.length<3;return T(s,Ze(c,4),h,I,Mx)}function KR(s,c){var h=ct(s)?Fo:Fx;return h(s,Bf(Ze(c,3)))}function YR(s){var c=ct(s)?Px:U7;return c(s)}function XR(s,c,h){(h?Zr(s,c,h):c===r)?c=1:c=ft(c);var T=ct(s)?y7:V7;return T(s,c)}function JR(s){var c=ct(s)?b7:H7;return c(s)}function ZR(s){if(s==null)return 0;if(fn(s))return Vf(s)?rl(s):s.length;var c=Wr(s);return c==A||c==ge?s.size:dv(s).length}function e6(s,c,h){var T=ct(s)?Wm:W7;return h&&Zr(s,c,h)&&(c=r),T(s,Ze(c,3))}var t6=mt(function(s,c){if(s==null)return[];var h=c.length;return h>1&&Zr(s,c[0],c[1])?c=[]:h>2&&Zr(c[0],c[1],c[2])&&(c=[c[0]]),Gx(s,Fr(c,1),[])}),zf=L8||function(){return Mr.Date.now()};function r6(s,c){if(typeof c!="function")throw new Vn(a);return s=ft(s),function(){if(--s<1)return c.apply(this,arguments)}}function B2(s,c,h){return c=h?r:c,c=s&&c==null?s.length:c,Zi(s,P,r,r,r,r,c)}function U2(s,c){var h;if(typeof c!="function")throw new Vn(a);return s=ft(s),function(){return--s>0&&(h=c.apply(this,arguments)),s<=1&&(c=r),h}}var Dv=mt(function(s,c,h){var T=_;if(h.length){var I=zo(h,dl(Dv));T|=C}return Zi(s,T,c,h,I)}),V2=mt(function(s,c,h){var T=_|v;if(h.length){var I=zo(h,dl(V2));T|=C}return Zi(c,T,s,h,I)});function j2(s,c,h){c=h?r:c;var T=Zi(s,w,r,r,r,r,r,c);return T.placeholder=j2.placeholder,T}function H2(s,c,h){c=h?r:c;var T=Zi(s,E,r,r,r,r,r,c);return T.placeholder=H2.placeholder,T}function W2(s,c,h){var T,I,L,F,B,K,pe=0,_e=!1,Ee=!1,Ne=!0;if(typeof s!="function")throw new Vn(a);c=Qn(c)||0,nr(h)&&(_e=!!h.leading,Ee="maxWait"in h,L=Ee?Er(Qn(h.maxWait)||0,c):L,Ne="trailing"in h?!!h.trailing:Ne);function Qe(fr){var mi=T,io=I;return T=I=r,pe=fr,F=s.apply(io,mi),F}function et(fr){return pe=fr,B=jc(_t,c),_e?Qe(fr):F}function ht(fr){var mi=fr-K,io=fr-pe,uw=c-mi;return Ee?Hr(uw,L-io):uw}function tt(fr){var mi=fr-K,io=fr-pe;return K===r||mi>=c||mi<0||Ee&&io>=L}function _t(){var fr=zf();if(tt(fr))return Et(fr);B=jc(_t,ht(fr))}function Et(fr){return B=r,Ne&&T?Qe(fr):(T=I=r,F)}function In(){B!==r&&r2(B),pe=0,T=K=I=B=r}function en(){return B===r?F:Et(zf())}function $n(){var fr=zf(),mi=tt(fr);if(T=arguments,I=this,K=fr,mi){if(B===r)return et(K);if(Ee)return r2(B),B=jc(_t,c),Qe(K)}return B===r&&(B=jc(_t,c)),F}return $n.cancel=In,$n.flush=en,$n}var n6=mt(function(s,c){return Lx(s,1,c)}),i6=mt(function(s,c,h){return Lx(s,Qn(c)||0,h)});function o6(s){return Zi(s,D)}function qf(s,c){if(typeof s!="function"||c!=null&&typeof c!="function")throw new Vn(a);var h=function(){var T=arguments,I=c?c.apply(this,T):T[0],L=h.cache;if(L.has(I))return L.get(I);var F=s.apply(this,T);return h.cache=L.set(I,F)||L,F};return h.cache=new(qf.Cache||Xi),h}qf.Cache=Xi;function Bf(s){if(typeof s!="function")throw new Vn(a);return function(){var c=arguments;switch(c.length){case 0:return!s.call(this);case 1:return!s.call(this,c[0]);case 2:return!s.call(this,c[0],c[1]);case 3:return!s.call(this,c[0],c[1],c[2])}return!s.apply(this,c)}}function a6(s){return U2(2,s)}var s6=G7(function(s,c){c=c.length==1&&ct(c[0])?rr(c[0],Cn(Ze())):rr(Fr(c,1),Cn(Ze()));var h=c.length;return mt(function(T){for(var I=-1,L=Hr(T.length,h);++I=c}),ts=qx(function(){return arguments}())?qx:function(s){return sr(s)&&Nt.call(s,"callee")&&!Cx.call(s,"callee")},ct=ne.isArray,w6=sx?Cn(sx):$7;function fn(s){return s!=null&&Uf(s.length)&&!ro(s)}function ur(s){return sr(s)&&fn(s)}function T6(s){return s===!0||s===!1||sr(s)&&Jr(s)==le}var Ho=F8||Wv,E6=lx?Cn(lx):O7;function k6(s){return sr(s)&&s.nodeType===1&&!Hc(s)}function C6(s){if(s==null)return!0;if(fn(s)&&(ct(s)||typeof s=="string"||typeof s.splice=="function"||Ho(s)||ul(s)||ts(s)))return!s.length;var c=Wr(s);if(c==A||c==ge)return!s.size;if(Vc(s))return!dv(s).length;for(var h in s)if(Nt.call(s,h))return!1;return!0}function A6(s,c){return qc(s,c)}function S6(s,c,h){h=typeof h=="function"?h:r;var T=h?h(s,c):r;return T===r?qc(s,c,r,h):!!T}function Mv(s){if(!sr(s))return!1;var c=Jr(s);return c==Ke||c==De||typeof s.message=="string"&&typeof s.name=="string"&&!Hc(s)}function I6(s){return typeof s=="number"&&Sx(s)}function ro(s){if(!nr(s))return!1;var c=Jr(s);return c==nt||c==k||c==te||c==Ae}function Q2(s){return typeof s=="number"&&s==ft(s)}function Uf(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=Ie}function nr(s){var c=typeof s;return s!=null&&(c=="object"||c=="function")}function sr(s){return s!=null&&typeof s=="object"}var K2=cx?Cn(cx):R7;function $6(s,c){return s===c||cv(s,c,Cv(c))}function O6(s,c,h){return h=typeof h=="function"?h:r,cv(s,c,Cv(c),h)}function P6(s){return Y2(s)&&s!=+s}function R6(s){if(vP(s))throw new st(o);return Bx(s)}function D6(s){return s===null}function L6(s){return s==null}function Y2(s){return typeof s=="number"||sr(s)&&Jr(s)==M}function Hc(s){if(!sr(s)||Jr(s)!=G)return!1;var c=mf(s);if(c===null)return!0;var h=Nt.call(c,"constructor")&&c.constructor;return typeof h=="function"&&h instanceof h&&uf.call(h)==O8}var Fv=dx?Cn(dx):D7;function M6(s){return Q2(s)&&s>=-Ie&&s<=Ie}var X2=ux?Cn(ux):L7;function Vf(s){return typeof s=="string"||!ct(s)&&sr(s)&&Jr(s)==ie}function Sn(s){return typeof s=="symbol"||sr(s)&&Jr(s)==W}var ul=fx?Cn(fx):M7;function F6(s){return s===r}function N6(s){return sr(s)&&Wr(s)==xe}function z6(s){return sr(s)&&Jr(s)==Se}var q6=Rf(uv),B6=Rf(function(s,c){return s<=c});function J2(s){if(!s)return[];if(fn(s))return Vf(s)?fi(s):un(s);if(Pc&&s[Pc])return y8(s[Pc]());var c=Wr(s),h=c==A?Jm:c==ge?lf:fl;return h(s)}function no(s){if(!s)return s===0?s:0;if(s=Qn(s),s===ke||s===-ke){var c=s<0?-1:1;return c*Be}return s===s?s:0}function ft(s){var c=no(s),h=c%1;return c===c?h?c-h:c:0}function Z2(s){return s?Xa(ft(s),0,se):0}function Qn(s){if(typeof s=="number")return s;if(Sn(s))return Re;if(nr(s)){var c=typeof s.valueOf=="function"?s.valueOf():s;s=nr(c)?c+"":c}if(typeof s!="string")return s===0?s:+s;s=_x(s);var h=wr.test(s);return h||tf.test(s)?r8(s.slice(2),h?2:8):Zu.test(s)?Re:+s}function ew(s){return Ri(s,hn(s))}function U6(s){return s?Xa(ft(s),-Ie,Ie):s===0?s:0}function Mt(s){return s==null?"":An(s)}var V6=ll(function(s,c){if(Vc(c)||fn(c)){Ri(c,Sr(c),s);return}for(var h in c)Nt.call(c,h)&&Fc(s,h,c[h])}),tw=ll(function(s,c){Ri(c,hn(c),s)}),jf=ll(function(s,c,h,T){Ri(c,hn(c),s,T)}),j6=ll(function(s,c,h,T){Ri(c,Sr(c),s,T)}),H6=eo(iv);function W6(s,c){var h=sl(s);return c==null?h:Rx(h,c)}var G6=mt(function(s,c){s=Ht(s);var h=-1,T=c.length,I=T>2?c[2]:r;for(I&&Zr(c[0],c[1],I)&&(T=1);++h1),L}),Ri(s,Ev(s),h),T&&(h=Hn(h,g|y|x,iP));for(var I=c.length;I--;)vv(h,c[I]);return h});function uD(s,c){return nw(s,Bf(Ze(c)))}var fD=eo(function(s,c){return s==null?{}:z7(s,c)});function nw(s,c){if(s==null)return{};var h=rr(Ev(s),function(T){return[T]});return c=Ze(c),Qx(s,h,function(T,I){return c(T,I[0])})}function hD(s,c,h){c=Vo(c,s);var T=-1,I=c.length;for(I||(I=1,s=r);++Tc){var T=s;s=c,c=T}if(h||s%1||c%1){var I=Ix();return Hr(s+I*(c-s+t8("1e-"+((I+"").length-1))),c)}return hv(s,c)}var ED=cl(function(s,c,h){return c=c.toLowerCase(),s+(h?aw(c):c)});function aw(s){return qv(Mt(s).toLowerCase())}function sw(s){return s=Mt(s),s&&s.replace(CO,p8).replace(HO,"")}function kD(s,c,h){s=Mt(s),c=An(c);var T=s.length;h=h===r?T:Xa(ft(h),0,T);var I=h;return h-=c.length,h>=0&&s.slice(h,I)==c}function CD(s){return s=Mt(s),s&&dn.test(s)?s.replace(Nu,m8):s}function AD(s){return s=Mt(s),s&&ju.test(s)?s.replace(Xs,"\\$&"):s}var SD=cl(function(s,c,h){return s+(h?"-":"")+c.toLowerCase()}),ID=cl(function(s,c,h){return s+(h?" ":"")+c.toLowerCase()}),$D=d2("toLowerCase");function OD(s,c,h){s=Mt(s),c=ft(c);var T=c?rl(s):0;if(!c||T>=c)return s;var I=(c-T)/2;return Pf(yf(I),h)+s+Pf(_f(I),h)}function PD(s,c,h){s=Mt(s),c=ft(c);var T=c?rl(s):0;return c&&T>>0,h?(s=Mt(s),s&&(typeof c=="string"||c!=null&&!Fv(c))&&(c=An(c),!c&&tl(s))?jo(fi(s),0,h):s.split(c,h)):[]}var zD=cl(function(s,c,h){return s+(h?" ":"")+qv(c)});function qD(s,c,h){return s=Mt(s),h=h==null?0:Xa(ft(h),0,s.length),c=An(c),s.slice(h,h+c.length)==c}function BD(s,c,h){var T=$.templateSettings;h&&Zr(s,c,h)&&(c=r),s=Mt(s),c=jf({},c,T,g2);var I=jf({},c.imports,T.imports,g2),L=Sr(I),F=Xm(I,L),B,K,pe=0,_e=c.interpolate||rf,Ee="__p += '",Ne=Zm((c.escape||rf).source+"|"+_e.source+"|"+(_e===Ic?Ju:rf).source+"|"+(c.evaluate||rf).source+"|$","g"),Qe="//# sourceURL="+(Nt.call(c,"sourceURL")?(c.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++YO+"]")+` -`;s.replace(Ne,function(tt,_t,Et,In,en,$n){return Et||(Et=In),Ee+=s.slice(pe,$n).replace(AO,v8),_t&&(B=!0,Ee+=`' + -__e(`+_t+`) + -'`),en&&(K=!0,Ee+=`'; -`+en+`; -__p += '`),Et&&(Ee+=`' + -((__t = (`+Et+`)) == null ? '' : __t) + -'`),pe=$n+tt.length,tt}),Ee+=`'; -`;var et=Nt.call(c,"variable")&&c.variable;if(!et)Ee=`with (obj) { -`+Ee+` +`)}function pP(s){return ut(s)||ds(s)||!!(zx&&s&&s[zx])}function oo(s,c){var h=typeof s;return c=c??Se,!!c&&(h=="number"||h!="symbol"&&sf.test(s))&&s>-1&&s%1==0&&s0){if(++c>=q)return arguments[0]}else c=0;return s.apply(r,arguments)}}function Gf(s,c){var h=-1,T=s.length,I=T-1;for(c=c===r?T:c;++h1?s[c-1]:r;return h=typeof h=="function"?(s.pop(),h):r,K2(s,h)});function Y2(s){var c=$(s);return c.__chain__=!0,c}function kR(s,c){return c(s),s}function Qf(s,c){return c(s)}var CR=io(function(s){var c=s.length,h=c?s[0]:0,T=this.__wrapped__,I=function(L){return gv(L,s)};return c>1||this.__actions__.length||!(T instanceof Tt)||!oo(h)?this.thru(I):(T=T.slice(h,+h+(c?1:0)),T.__actions__.push({func:Qf,args:[I],thisArg:r}),new Qn(T,this.__chain__).thru(function(L){return c&&!L.length&&L.push(r),L}))});function AR(){return Y2(this)}function SR(){return new Qn(this.value(),this.__chain__)}function IR(){this.__values__===r&&(this.__values__=dw(this.value()));var s=this.__index__>=this.__values__.length,c=s?r:this.__values__[this.__index__++];return{done:s,value:c}}function $R(){return this}function OR(s){for(var c,h=this;h instanceof Rf;){var T=U2(h);T.__index__=0,T.__values__=r,c?I.__wrapped__=T:c=T;var I=T;h=h.__wrapped__}return I.__wrapped__=s,c}function PR(){var s=this.__wrapped__;if(s instanceof Tt){var c=s;return this.__actions__.length&&(c=new Tt(this)),c=c.reverse(),c.__actions__.push({func:Qf,args:[Hv],thisArg:r}),new Qn(c,this.__chain__)}return this.thru(Hv)}function RR(){return f2(this.__wrapped__,this.__actions__)}var DR=qf(function(s,c,h){qt.call(s,h)?++s[h]:ro(s,h,1)});function LR(s,c,h){var T=ut(s)?kx:k7;return h&&nn(s,c,h)&&(c=r),T(s,et(c,3))}function MR(s,c){var h=ut(s)?jo:Kx;return h(s,et(c,3))}var FR=T2(j2),NR=T2(H2);function zR(s,c){return Ur(Kf(s,c),1)}function qR(s,c){return Ur(Kf(s,c),ke)}function BR(s,c,h){return h=h===r?1:mt(h),Ur(Kf(s,c),h)}function X2(s,c){var h=ut(s)?Wn:Qo;return h(s,et(c,3))}function J2(s,c){var h=ut(s)?aO:Qx;return h(s,et(c,3))}var VR=qf(function(s,c,h){qt.call(s,h)?s[h].push(c):ro(s,h,[c])});function UR(s,c,h,T){s=pn(s)?s:bl(s),h=h&&!T?mt(h):0;var I=s.length;return h<0&&(h=Sr(I+h,0)),eh(s)?h<=I&&s.indexOf(c,h)>-1:!!I&&ll(s,c,h)>-1}var jR=_t(function(s,c,h){var T=-1,I=typeof c=="function",L=pn(s)?re(s.length):[];return Qo(s,function(F){L[++T]=I?An(c,F,h):Xc(F,c,h)}),L}),HR=qf(function(s,c,h){ro(s,h,c)});function Kf(s,c){var h=ut(s)?ar:t2;return h(s,et(c,3))}function WR(s,c,h,T){return s==null?[]:(ut(c)||(c=c==null?[]:[c]),h=T?r:h,ut(h)||(h=h==null?[]:[h]),o2(s,c,h))}var GR=qf(function(s,c,h){s[h?0:1].push(c)},function(){return[[],[]]});function QR(s,c,h){var T=ut(s)?iv:Ix,I=arguments.length<3;return T(s,et(c,4),h,I,Qo)}function KR(s,c,h){var T=ut(s)?sO:Ix,I=arguments.length<3;return T(s,et(c,4),h,I,Qx)}function YR(s,c){var h=ut(s)?jo:Kx;return h(s,Jf(et(c,3)))}function XR(s){var c=ut(s)?jx:U7;return c(s)}function JR(s,c,h){(h?nn(s,c,h):c===r)?c=1:c=mt(c);var T=ut(s)?b7:j7;return T(s,c)}function ZR(s){var c=ut(s)?x7:W7;return c(s)}function e6(s){if(s==null)return 0;if(pn(s))return eh(s)?dl(s):s.length;var c=Yr(s);return c==A||c==_e?s.size:Tv(s).length}function t6(s,c,h){var T=ut(s)?ov:G7;return h&&nn(s,c,h)&&(c=r),T(s,et(c,3))}var r6=_t(function(s,c){if(s==null)return[];var h=c.length;return h>1&&nn(s,c[0],c[1])?c=[]:h>2&&nn(c[0],c[1],c[2])&&(c=[c[0]]),o2(s,Ur(c,1),[])}),Yf=MO||function(){return Vr.Date.now()};function n6(s,c){if(typeof c!="function")throw new Gn(a);return s=mt(s),function(){if(--s<1)return c.apply(this,arguments)}}function Z2(s,c,h){return c=h?r:c,c=s&&c==null?s.length:c,no(s,P,r,r,r,r,c)}function ew(s,c){var h;if(typeof c!="function")throw new Gn(a);return s=mt(s),function(){return--s>0&&(h=c.apply(this,arguments)),s<=1&&(c=r),h}}var Gv=_t(function(s,c,h){var T=_;if(h.length){var I=Wo(h,_l(Gv));T|=C}return no(s,T,c,h,I)}),tw=_t(function(s,c,h){var T=_|v;if(h.length){var I=Wo(h,_l(tw));T|=C}return no(c,T,s,h,I)});function rw(s,c,h){c=h?r:c;var T=no(s,w,r,r,r,r,r,c);return T.placeholder=rw.placeholder,T}function nw(s,c,h){c=h?r:c;var T=no(s,E,r,r,r,r,r,c);return T.placeholder=nw.placeholder,T}function iw(s,c,h){var T,I,L,F,V,K,he=0,ve=!1,Te=!1,Fe=!0;if(typeof s!="function")throw new Gn(a);c=Jn(c)||0,lr(h)&&(ve=!!h.leading,Te="maxWait"in h,L=Te?Sr(Jn(h.maxWait)||0,c):L,Fe="trailing"in h?!!h.trailing:Fe);function Qe(gr){var gi=T,lo=I;return T=I=r,he=gr,F=s.apply(lo,gi),F}function tt(gr){return he=gr,V=rd(wt,c),ve?Qe(gr):F}function vt(gr){var gi=gr-K,lo=gr-he,Tw=c-gi;return Te?Kr(Tw,L-lo):Tw}function rt(gr){var gi=gr-K,lo=gr-he;return K===r||gi>=c||gi<0||Te&&lo>=L}function wt(){var gr=Yf();if(rt(gr))return Ct(gr);V=rd(wt,vt(gr))}function Ct(gr){return V=r,Fe&&T?Qe(gr):(T=I=r,F)}function On(){V!==r&&p2(V),he=0,T=K=I=V=r}function on(){return V===r?F:Ct(Yf())}function Pn(){var gr=Yf(),gi=rt(gr);if(T=arguments,I=this,K=gr,gi){if(V===r)return tt(K);if(Te)return p2(V),V=rd(wt,c),Qe(K)}return V===r&&(V=rd(wt,c)),F}return Pn.cancel=On,Pn.flush=on,Pn}var i6=_t(function(s,c){return Gx(s,1,c)}),o6=_t(function(s,c,h){return Gx(s,Jn(c)||0,h)});function a6(s){return no(s,D)}function Xf(s,c){if(typeof s!="function"||c!=null&&typeof c!="function")throw new Gn(a);var h=function(){var T=arguments,I=c?c.apply(this,T):T[0],L=h.cache;if(L.has(I))return L.get(I);var F=s.apply(this,T);return h.cache=L.set(I,F)||L,F};return h.cache=new(Xf.Cache||to),h}Xf.Cache=to;function Jf(s){if(typeof s!="function")throw new Gn(a);return function(){var c=arguments;switch(c.length){case 0:return!s.call(this);case 1:return!s.call(this,c[0]);case 2:return!s.call(this,c[0],c[1]);case 3:return!s.call(this,c[0],c[1],c[2])}return!s.apply(this,c)}}function s6(s){return ew(2,s)}var l6=Q7(function(s,c){c=c.length==1&&ut(c[0])?ar(c[0],Sn(et())):ar(Ur(c,1),Sn(et()));var h=c.length;return _t(function(T){for(var I=-1,L=Kr(T.length,h);++I=c}),ds=Jx(function(){return arguments}())?Jx:function(s){return fr(s)&&qt.call(s,"callee")&&!Nx.call(s,"callee")},ut=re.isArray,T6=yx?Sn(yx):O7;function pn(s){return s!=null&&Zf(s.length)&&!ao(s)}function vr(s){return fr(s)&&pn(s)}function E6(s){return s===!0||s===!1||fr(s)&&rn(s)==le}var Jo=NO||og,k6=bx?Sn(bx):P7;function C6(s){return fr(s)&&s.nodeType===1&&!nd(s)}function A6(s){if(s==null)return!0;if(pn(s)&&(ut(s)||typeof s=="string"||typeof s.splice=="function"||Jo(s)||yl(s)||ds(s)))return!s.length;var c=Yr(s);if(c==A||c==_e)return!s.size;if(td(s))return!Tv(s).length;for(var h in s)if(qt.call(s,h))return!1;return!0}function S6(s,c){return Jc(s,c)}function I6(s,c,h){h=typeof h=="function"?h:r;var T=h?h(s,c):r;return T===r?Jc(s,c,r,h):!!T}function Kv(s){if(!fr(s))return!1;var c=rn(s);return c==Ke||c==De||typeof s.message=="string"&&typeof s.name=="string"&&!nd(s)}function $6(s){return typeof s=="number"&&qx(s)}function ao(s){if(!lr(s))return!1;var c=rn(s);return c==it||c==k||c==ee||c==Ae}function aw(s){return typeof s=="number"&&s==mt(s)}function Zf(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=Se}function lr(s){var c=typeof s;return s!=null&&(c=="object"||c=="function")}function fr(s){return s!=null&&typeof s=="object"}var sw=xx?Sn(xx):D7;function O6(s,c){return s===c||wv(s,c,zv(c))}function P6(s,c,h){return h=typeof h=="function"?h:r,wv(s,c,zv(c),h)}function R6(s){return lw(s)&&s!=+s}function D6(s){if(gP(s))throw new ct(o);return Zx(s)}function L6(s){return s===null}function M6(s){return s==null}function lw(s){return typeof s=="number"||fr(s)&&rn(s)==M}function nd(s){if(!fr(s)||rn(s)!=G)return!1;var c=Cf(s);if(c===null)return!0;var h=qt.call(c,"constructor")&&c.constructor;return typeof h=="function"&&h instanceof h&&wf.call(h)==PO}var Yv=wx?Sn(wx):L7;function F6(s){return aw(s)&&s>=-Se&&s<=Se}var cw=Tx?Sn(Tx):M7;function eh(s){return typeof s=="string"||!ut(s)&&fr(s)&&rn(s)==ie}function $n(s){return typeof s=="symbol"||fr(s)&&rn(s)==W}var yl=Ex?Sn(Ex):F7;function N6(s){return s===r}function z6(s){return fr(s)&&Yr(s)==xe}function q6(s){return fr(s)&&rn(s)==Ie}var B6=jf(Ev),V6=jf(function(s,c){return s<=c});function dw(s){if(!s)return[];if(pn(s))return eh(s)?pi(s):hn(s);if(jc&&s[jc])return bO(s[jc]());var c=Yr(s),h=c==A?uv:c==_e?yf:bl;return h(s)}function so(s){if(!s)return s===0?s:0;if(s=Jn(s),s===ke||s===-ke){var c=s<0?-1:1;return c*Be}return s===s?s:0}function mt(s){var c=so(s),h=c%1;return c===c?h?c-h:c:0}function uw(s){return s?as(mt(s),0,se):0}function Jn(s){if(typeof s=="number")return s;if($n(s))return Re;if(lr(s)){var c=typeof s.valueOf=="function"?s.valueOf():s;s=lr(c)?c+"":c}if(typeof s!="string")return s===0?s:+s;s=$x(s);var h=nf.test(s);return h||af.test(s)?nO(s.slice(2),h?2:8):rf.test(s)?Re:+s}function fw(s){return Li(s,mn(s))}function U6(s){return s?as(mt(s),-Se,Se):s===0?s:0}function Nt(s){return s==null?"":In(s)}var j6=vl(function(s,c){if(td(c)||pn(c)){Li(c,Pr(c),s);return}for(var h in c)qt.call(c,h)&&Kc(s,h,c[h])}),hw=vl(function(s,c){Li(c,mn(c),s)}),th=vl(function(s,c,h,T){Li(c,mn(c),s,T)}),H6=vl(function(s,c,h,T){Li(c,Pr(c),s,T)}),W6=io(gv);function G6(s,c){var h=ml(s);return c==null?h:Hx(h,c)}var Q6=_t(function(s,c){s=Qt(s);var h=-1,T=c.length,I=T>2?c[2]:r;for(I&&nn(c[0],c[1],I)&&(T=1);++h1),L}),Li(s,Fv(s),h),T&&(h=Kn(h,g|y|x,oP));for(var I=c.length;I--;)Iv(h,c[I]);return h});function fD(s,c){return mw(s,Jf(et(c)))}var hD=io(function(s,c){return s==null?{}:q7(s,c)});function mw(s,c){if(s==null)return{};var h=ar(Fv(s),function(T){return[T]});return c=et(c),a2(s,h,function(T,I){return c(T,I[0])})}function pD(s,c,h){c=Yo(c,s);var T=-1,I=c.length;for(I||(I=1,s=r);++Tc){var T=s;s=c,c=T}if(h||s%1||c%1){var I=Bx();return Kr(s+I*(c-s+rO("1e-"+((I+"").length-1))),c)}return Cv(s,c)}var kD=gl(function(s,c,h){return c=c.toLowerCase(),s+(h?_w(c):c)});function _w(s){return Zv(Nt(s).toLowerCase())}function yw(s){return s=Nt(s),s&&s.replace(lf,mO).replace(W8,"")}function CD(s,c,h){s=Nt(s),c=In(c);var T=s.length;h=h===r?T:as(mt(h),0,T);var I=h;return h-=c.length,h>=0&&s.slice(h,I)==c}function AD(s){return s=Nt(s),s&&al.test(s)?s.replace(Ri,vO):s}function SD(s){return s=Nt(s),s&&Gm.test(s)?s.replace(Fc,"\\$&"):s}var ID=gl(function(s,c,h){return s+(h?"-":"")+c.toLowerCase()}),$D=gl(function(s,c,h){return s+(h?" ":"")+c.toLowerCase()}),OD=w2("toLowerCase");function PD(s,c,h){s=Nt(s),c=mt(c);var T=c?dl(s):0;if(!c||T>=c)return s;var I=(c-T)/2;return Uf($f(I),h)+s+Uf(If(I),h)}function RD(s,c,h){s=Nt(s),c=mt(c);var T=c?dl(s):0;return c&&T>>0,h?(s=Nt(s),s&&(typeof c=="string"||c!=null&&!Yv(c))&&(c=In(c),!c&&cl(s))?Xo(pi(s),0,h):s.split(c,h)):[]}var qD=gl(function(s,c,h){return s+(h?" ":"")+Zv(c)});function BD(s,c,h){return s=Nt(s),h=h==null?0:as(mt(h),0,s.length),c=In(c),s.slice(h,h+c.length)==c}function VD(s,c,h){var T=$.templateSettings;h&&nn(s,c,h)&&(c=r),s=Nt(s),c=th({},c,T,I2);var I=th({},c.imports,T.imports,I2),L=Pr(I),F=dv(I,L),V,K,he=0,ve=c.interpolate||es,Te="__p += '",Fe=fv((c.escape||es).source+"|"+ve.source+"|"+(ve===Ku?tf:es).source+"|"+(c.evaluate||es).source+"|$","g"),Qe="//# sourceURL="+(qt.call(c,"sourceURL")?(c.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++X8+"]")+` +`;s.replace(Fe,function(rt,wt,Ct,On,on,Pn){return Ct||(Ct=On),Te+=s.slice(he,Pn).replace(cf,gO),wt&&(V=!0,Te+=`' + +__e(`+wt+`) + +'`),on&&(K=!0,Te+=`'; +`+on+`; +__p += '`),Ct&&(Te+=`' + +((__t = (`+Ct+`)) == null ? '' : __t) + +'`),he=Pn+rt.length,rt}),Te+=`'; +`;var tt=qt.call(c,"variable")&&c.variable;if(!tt)Te=`with (obj) { +`+Te+` } -`;else if(Yu.test(et))throw new st(l);Ee=(K?Ee.replace(Ys,""):Ee).replace(Dm,"$1").replace(Lm,"$1;"),Ee="function("+(et||"obj")+`) { -`+(et?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(B?", __e = _.escape":"")+(K?`, __j = Array.prototype.join; +`;else if(Zu.test(tt))throw new ct(l);Te=(K?Te.replace(Ze,""):Te).replace(Gt,"$1").replace(kr,"$1;"),Te="function("+(tt||"obj")+`) { +`+(tt?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(V?", __e = _.escape":"")+(K?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; -`)+Ee+`return __p -}`;var ht=cw(function(){return Rt(L,Qe+"return "+Ee).apply(r,F)});if(ht.source=Ee,Mv(ht))throw ht;return ht}function UD(s){return Mt(s).toLowerCase()}function VD(s){return Mt(s).toUpperCase()}function jD(s,c,h){if(s=Mt(s),s&&(h||c===r))return _x(s);if(!s||!(c=An(c)))return s;var T=fi(s),I=fi(c),L=yx(T,I),F=bx(T,I)+1;return jo(T,L,F).join("")}function HD(s,c,h){if(s=Mt(s),s&&(h||c===r))return s.slice(0,wx(s)+1);if(!s||!(c=An(c)))return s;var T=fi(s),I=bx(T,fi(c))+1;return jo(T,0,I).join("")}function WD(s,c,h){if(s=Mt(s),s&&(h||c===r))return s.replace(Js,"");if(!s||!(c=An(c)))return s;var T=fi(s),I=yx(T,fi(c));return jo(T,I).join("")}function GD(s,c){var h=z,T=j;if(nr(c)){var I="separator"in c?c.separator:I;h="length"in c?ft(c.length):h,T="omission"in c?An(c.omission):T}s=Mt(s);var L=s.length;if(tl(s)){var F=fi(s);L=F.length}if(h>=L)return s;var B=h-rl(T);if(B<1)return T;var K=F?jo(F,0,B).join(""):s.slice(0,B);if(I===r)return K+T;if(F&&(B+=K.length-B),Fv(I)){if(s.slice(B).search(I)){var pe,_e=K;for(I.global||(I=Zm(I.source,Mt($c.exec(I))+"g")),I.lastIndex=0;pe=I.exec(_e);)var Ee=pe.index;K=K.slice(0,Ee===r?B:Ee)}}else if(s.indexOf(An(I),B)!=B){var Ne=K.lastIndexOf(I);Ne>-1&&(K=K.slice(0,Ne))}return K+T}function QD(s){return s=Mt(s),s&&Mm.test(s)?s.replace(Fu,T8):s}var KD=cl(function(s,c,h){return s+(h?" ":"")+c.toUpperCase()}),qv=d2("toUpperCase");function lw(s,c,h){return s=Mt(s),c=h?r:c,c===r?_8(s)?C8(s):c8(s):s.match(c)||[]}var cw=mt(function(s,c){try{return kn(s,r,c)}catch(h){return Mv(h)?h:new st(h)}}),YD=eo(function(s,c){return Un(c,function(h){h=Di(h),Ji(s,h,Dv(s[h],s))}),s});function XD(s){var c=s==null?0:s.length,h=Ze();return s=c?rr(s,function(T){if(typeof T[1]!="function")throw new Vn(a);return[h(T[0]),T[1]]}):[],mt(function(T){for(var I=-1;++IIe)return[];var h=se,T=Hr(s,se);c=Ze(c),s-=se;for(var I=Ym(T,c);++h0||c<0)?new bt(h):(s<0?h=h.takeRight(-s):s&&(h=h.drop(s)),c!==r&&(c=ft(c),h=c<0?h.dropRight(-c):h.take(c-s)),h)},bt.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},bt.prototype.toArray=function(){return this.take(se)},Pi(bt.prototype,function(s,c){var h=/^(?:filter|find|map|reject)|While$/.test(c),T=/^(?:head|last)$/.test(c),I=$[T?"take"+(c=="last"?"Right":""):c],L=T||/^find/.test(c);I&&($.prototype[c]=function(){var F=this.__wrapped__,B=T?[1]:arguments,K=F instanceof bt,pe=B[0],_e=K||ct(F),Ee=function(_t){var Et=I.apply($,No([_t],B));return T&&Ne?Et[0]:Et};_e&&h&&typeof pe=="function"&&pe.length!=1&&(K=_e=!1);var Ne=this.__chain__,Qe=!!this.__actions__.length,et=L&&!Ne,ht=K&&!Qe;if(!L&&_e){F=ht?F:new bt(this);var tt=s.apply(F,B);return tt.__actions__.push({func:Ff,args:[Ee],thisArg:r}),new jn(tt,Ne)}return et&&ht?s.apply(this,B):(tt=this.thru(Ee),et?T?tt.value()[0]:tt.value():tt)})}),Un(["pop","push","shift","sort","splice","unshift"],function(s){var c=cf[s],h=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",T=/^(?:pop|shift)$/.test(s);$.prototype[s]=function(){var I=arguments;if(T&&!this.__chain__){var L=this.value();return c.apply(ct(L)?L:[],I)}return this[h](function(F){return c.apply(ct(F)?F:[],I)})}}),Pi(bt.prototype,function(s,c){var h=$[c];if(h){var T=h.name+"";Nt.call(al,T)||(al[T]=[]),al[T].push({name:c,func:h})}}),al[$f(r,v).name]=[{name:"wrapper",func:r}],bt.prototype.clone=Q8,bt.prototype.reverse=K8,bt.prototype.value=Y8,$.prototype.at=kR,$.prototype.chain=CR,$.prototype.commit=AR,$.prototype.next=SR,$.prototype.plant=$R,$.prototype.reverse=OR,$.prototype.toJSON=$.prototype.valueOf=$.prototype.value=PR,$.prototype.first=$.prototype.head,Pc&&($.prototype[Pc]=IR),$},nl=A8();Ga?((Ga.exports=nl)._=nl,Um._=nl):Mr._=nl}).call(po)})(dp,dp.exports);var T5=dp.exports;const _ee={slot:"headline"},yee={slot:"content"},bee=["label","selected","onClick"],xee={slot:"actions"},wee=["disabled"],Tee={key:0,indeterminate:"",slot:"icon"},Eee=Dt({__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=Le([...e.selected]),{mutate:n,loading:i,onDone:o}=Yr({document:vee,appApi:!0});o(()=>{Tt.emit("item_tags_updated",{item:e.item,type:e.type}),Tt.emit("refetch_tags",e.type),_s()});function a(d){r.value.includes(d)?La(r.value,u=>u.id===d.id):r.value.push(d)}const l=()=>{const d=r.value.map(f=>f.id),u=e.selected.map(f=>f.id);n({type:e.type,addTagIds:T5.difference(d,u),item:e.item,removeTagIds:T5.difference(u,d)})};return(d,u)=>(J(),re("md-dialog",null,[N("div",_ee,Me(d.$t("add_to_tags")),1),N("div",yee,[N("md-chip-set",null,[(J(!0),re($t,null,oi(t.tags,f=>(J(),re("md-filter-chip",{key:f.id,label:f.name,selected:r.value.includes(f),onClick:g=>a(f)},null,8,bee))),128))])]),N("div",xee,[N("md-outlined-button",{value:"cancel",onClick:u[0]||(u[0]=(...f)=>oe(_s)&&oe(_s)(...f))},Me(d.$t("cancel")),1),N("md-filled-button",{value:"save",disabled:oe(i),onClick:l,autofocus:""},[oe(i)?(J(),re("md-circular-progress",Tee)):yt("",!0),ri(" "+Me(d.$t("save")),1)],8,wee)])]))}}),Ixe=(t,e)=>{const r=Le("");return{createPath:r,createVariables(n){return{path:r.value+"/"+n}},createMutation(){return Yr({document:lee,options:{update:async(n,i)=>{const o=i.data.createDir;La(e.value,a=>a.path===o.path),e.value.unshift(FJ(o,t.value))}},appApi:!0})}}},$xe=t=>{const e=Le();return{renameItem:e,renameDone(r){t()},renameMutation(){return Yr({document:cee,appApi:!0})},renameVariables(r){var n;return{path:(n=e.value)==null?void 0:n.path,name:r}}}},Oxe=()=>{const t=Le(null),e=Le(null),r=Le([]),{refetch:n}=gm({handle:(i,o)=>{o||(t.value=i.storageStats.internal,e.value=i.storageStats.sdcard,r.value=i.storageStats.usb)},document:eee,appApi:!0});return{internal:t,sdcard:e,usb:r,refetch:n}},kee=t=>({async downloadFile(e,r){const n=ql(t.value,e);r?us(n+`&dl=1&name=${r}`,r):us(n+"&dl=1",ks(e))},async downloadDir(e,r){const n=q0(t.value,e),i=`${Jl()}/zip/dir?id=${encodeURIComponent(n)}`;r?us(i+`&name=${r}`,r):us(i,ks(e))},downloadFiles(e){const r=vS(t.value,JSON.stringify({id:e,type:"FILE",name:""}));us(`${Jl()}/zip/files?id=${encodeURIComponent(r)}`,"")}}),Pxe=(t,e)=>({view(r,n){t.value=r.filter(o=>Ni(o.name)||Eo(o.name)||nu(o.name)).map(o=>({path:o.path,src:o.fileId?vu(o.fileId):"",name:ks(o.path),size:o.size,duration:0,data:n}));const i=cK(t.value,o=>o.path===n.path);e(t.value,i)}}),Rxe=(t,e,r,n,i)=>{const o=Le(),{mutate:a,loading:l,onDone:d,onError:u}=Yr({document:dee,appApi:!0}),{mutate:f,loading:g,onDone:y,onError:x}=Yr({document:uee,appApi:!0}),{t:m}=zn(),p=v=>{Ls(m(v.message))};u(p),x(p);const _=()=>{if(e.value)for(const v of r.value)La(t.value,b=>b.path===v.path);r.value=[],setTimeout(()=>{n(),i()},500)};return d(_),y(_),{loading:l||g,canPaste(){return r.value.length>0},copy(v){r.value=t.value.filter(b=>v.includes(b.id)),e.value=!1},cut(v){r.value=t.value.filter(b=>v.includes(b.id)),e.value=!0},paste(v){o.value=v;for(const b of r.value){const w={src:b.path,dst:v+"/"+b.name,overwrite:!1};e.value?f(w):a(w)}}}};function TI(t){let e="Documents";return Ni(t)?e="Pictures":Eo(t)?e="Movies":nu(t)&&(e="Music"),e}const Dxe=(t,e,r,n)=>{const{t:i}=zn();return{downloadItems:(o,a,l)=>{let d=l;if(!o){if(a.length===0){Ls(i("select_first"),"error");return}d=`ids:${a.join(",")}`}const u=vS(t.value,JSON.stringify({query:d,type:e,name:n}));us(`${Jl()}/zip/files?id=${encodeURIComponent(u)}`,n),r()}}},Lxe=(t,e)=>{let r=e.internalStoragePath;return t&&(t==="sdcard"?r=e.sdcardPath:t.startsWith("usb")?r=e.usbDiskPaths[parseInt(t.substring(3))-1]:t==="app"&&(r=e.externalFilesDir)),r},Mxe=()=>({copyFilter:(t,e)=>{e.text=t.text,e.parent=t.parent,e.linkName=t.linkName,e.showHidden=t.showHidden},parseQ:(t,e)=>{const r=rY(e);t.showHidden=!1,t.text="",t.parent="",t.linkName="",r.forEach(n=>{n.name==="text"?t.text=n.value:n.name==="parent"?t.parent=n.value:n.name==="link_name"?t.linkName=n.value:n.name==="show_hidden"&&(t.showHidden=n.value==="true")})},buildQ:t=>{const e=[];return t.parent!==""&&e.push({name:"parent",op:"",value:t.parent}),t.linkName!==""&&e.push({name:"link_name",op:"",value:t.linkName}),t.text!==""&&e.push({name:"text",op:"",value:t.text}),t.showHidden&&e.push({name:"show_hidden",op:"",value:t.showHidden?"true":"false"}),rm(hm(e))}}),Cee={id:"form",slot:"content",method:"dialog"},Aee={slot:"actions"},See={form:"form",value:"cancel"},Iee=["disabled"],$ee=Dt({__name:"DeleteItemsConfirm",props:{gql:{type:Object,required:!0},count:{type:Number,required:!0},done:{type:Function,required:!0},variables:{type:Function,required:!0}},setup(t){const e=t,{mutate:r,loading:n,onDone:i}=Yr({document:e.gql,appApi:!0});function o(){r(e.variables())}return i(()=>{e.done(),_s()}),(a,l)=>(J(),re("md-dialog",null,[N("form",Cee,Me(a.$t("confirm_to_delete",{count:t.count})),1),N("div",Aee,[N("md-outlined-button",See,Me(a.$t("cancel")),1),N("md-filled-button",{form:"form",value:"delete",disabled:oe(n),onClick:o,autofocus:""},Me(a.$t("delete")),9,Iee)])]))}}),Oee={id:"form",slot:"content",method:"dialog"},Pee={class:"title"},Ree={class:"image"},Dee=["src"],Lee={slot:"actions"},Mee={form:"form",value:"cancel"},Fee=["disabled"],Nee=Dt({__name:"DeleteConfirm",props:{id:{type:String,default:"",required:!0},name:{type:String},image:{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}=Yr({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(),_s()}),(a,l)=>(J(),re("md-dialog",null,[N("form",Oee,[N("div",Pee,Me(a.$t("confirm_to_delete_name",{name:t.name})),1),N("div",Ree,[t.image?(J(),re("img",{key:0,src:oe(vu)(t.image,"&w=200&h=200"),alt:"",class:"image-thumb",onerror:"this.style.display='none'"},null,8,Dee)):yt("",!0)])]),N("div",Lee,[N("md-outlined-button",Mee,Me(a.$t("cancel")),1),N("md-filled-button",{form:"form",value:"delete",disabled:oe(n),onClick:o,autofocus:""},Me(a.$t("delete")),9,Fee)])]))}}),zee=Tn(Nee,[["__scopeId","data-v-eabaeaf2"]]),qee=()=>{const{t}=zn(),e=new Map;return e.set("AUDIO","Audio"),e.set("VIDEO","Video"),e.set("IMAGE","Image"),{deleteItems:(r,n,i,o,a)=>{let l=a;if(!i){if(n.length===0){Ls(t("select_first"),"error");return}l=`ids:${n.join(",")}`}rp($ee,{gql:w5,count:i?o:n.length,variables:()=>({type:r,query:l}),done:()=>{Tt.emit("media_items_actioned",{type:r,action:"delete"})}})},deleteItem:(r,n)=>{rp(zee,{id:n.id,name:n.title,image:Bee(n)?"":n.fileId,gql:w5,variables:()=>({type:r,query:`ids:${n.id}`}),appApi:!0,typeName:e.get(r)??"",done:()=>{Tt.emit("media_items_actioned",{type:r,action:"delete",id:n.id})}})}}};function Bee(t){return"albumFileId"in t}const Fxe=t=>{const e={AUDIO:"audios",IMAGE:"images",VIDEO:"videos"}[t];return{view(r,n){const i=hm([{name:"bucket_id",op:"",value:n}]);E1(r,`/${e}?q=${rm(i)}`)}}},Nxe=t=>{const e=Le([]),r=Le([]),{t:n}=zn(),{fetch:i}=gy({handle:async(o,a)=>{a?Ls(n(a),"error"):o&&(e.value=o.tags,r.value=o.mediaBuckets)},document:nee,variables:{type:t},appApi:!0});return{tags:e,buckets:r,fetch:i}};var Mh=(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))(Mh||{}),Uee=(t=>(t[t.MEDIA_TRASH=0]="MEDIA_TRASH",t))(Uee||{});const Vee={id:"form",slot:"content",method:"dialog"},jee={slot:"actions"},Hee={form:"form",value:"cancel"},Wee=["disabled"],Gee={key:0,indeterminate:"",slot:"icon"},Qee=Dt({__name:"DeleteFileConfirm",props:{onDone:{type:Function,required:!0},files:{type:Array,required:!0}},setup(t){const e=t,{mutate:r,loading:n,onDone:i}=Yr({document:ue` +`)+Te+`return __p +}`;var vt=xw(function(){return Mt(L,Qe+"return "+Te).apply(r,F)});if(vt.source=Te,Kv(vt))throw vt;return vt}function UD(s){return Nt(s).toLowerCase()}function jD(s){return Nt(s).toUpperCase()}function HD(s,c,h){if(s=Nt(s),s&&(h||c===r))return $x(s);if(!s||!(c=In(c)))return s;var T=pi(s),I=pi(c),L=Ox(T,I),F=Px(T,I)+1;return Xo(T,L,F).join("")}function WD(s,c,h){if(s=Nt(s),s&&(h||c===r))return s.slice(0,Dx(s)+1);if(!s||!(c=In(c)))return s;var T=pi(s),I=Px(T,pi(c))+1;return Xo(T,0,I).join("")}function GD(s,c,h){if(s=Nt(s),s&&(h||c===r))return s.replace(Nc,"");if(!s||!(c=In(c)))return s;var T=pi(s),I=Ox(T,pi(c));return Xo(T,I).join("")}function QD(s,c){var h=z,T=j;if(lr(c)){var I="separator"in c?c.separator:I;h="length"in c?mt(c.length):h,T="omission"in c?In(c.omission):T}s=Nt(s);var L=s.length;if(cl(s)){var F=pi(s);L=F.length}if(h>=L)return s;var V=h-dl(T);if(V<1)return T;var K=F?Xo(F,0,V).join(""):s.slice(0,V);if(I===r)return K+T;if(F&&(V+=K.length-V),Yv(I)){if(s.slice(V).search(I)){var he,ve=K;for(I.global||(I=fv(I.source,Nt(zc.exec(I))+"g")),I.lastIndex=0;he=I.exec(ve);)var Te=he.index;K=K.slice(0,Te===r?V:Te)}}else if(s.indexOf(In(I),V)!=V){var Fe=K.lastIndexOf(I);Fe>-1&&(K=K.slice(0,Fe))}return K+T}function KD(s){return s=Nt(s),s&&Vo.test(s)?s.replace(tn,EO):s}var YD=gl(function(s,c,h){return s+(h?" ":"")+c.toUpperCase()}),Zv=w2("toUpperCase");function bw(s,c,h){return s=Nt(s),c=h?r:c,c===r?yO(s)?AO(s):dO(s):s.match(c)||[]}var xw=_t(function(s,c){try{return An(s,r,c)}catch(h){return Kv(h)?h:new ct(h)}}),XD=io(function(s,c){return Wn(c,function(h){h=Mi(h),ro(s,h,Gv(s[h],s))}),s});function JD(s){var c=s==null?0:s.length,h=et();return s=c?ar(s,function(T){if(typeof T[1]!="function")throw new Gn(a);return[h(T[0]),T[1]]}):[],_t(function(T){for(var I=-1;++ISe)return[];var h=se,T=Kr(s,se);c=et(c),s-=se;for(var I=cv(T,c);++h0||c<0)?new Tt(h):(s<0?h=h.takeRight(-s):s&&(h=h.drop(s)),c!==r&&(c=mt(c),h=c<0?h.dropRight(-c):h.take(c-s)),h)},Tt.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Tt.prototype.toArray=function(){return this.take(se)},Di(Tt.prototype,function(s,c){var h=/^(?:filter|find|map|reject)|While$/.test(c),T=/^(?:head|last)$/.test(c),I=$[T?"take"+(c=="last"?"Right":""):c],L=T||/^find/.test(c);I&&($.prototype[c]=function(){var F=this.__wrapped__,V=T?[1]:arguments,K=F instanceof Tt,he=V[0],ve=K||ut(F),Te=function(wt){var Ct=I.apply($,Ho([wt],V));return T&&Fe?Ct[0]:Ct};ve&&h&&typeof he=="function"&&he.length!=1&&(K=ve=!1);var Fe=this.__chain__,Qe=!!this.__actions__.length,tt=L&&!Fe,vt=K&&!Qe;if(!L&&ve){F=vt?F:new Tt(this);var rt=s.apply(F,V);return rt.__actions__.push({func:Qf,args:[Te],thisArg:r}),new Qn(rt,Fe)}return tt&&vt?s.apply(this,V):(rt=this.thru(Te),tt?T?rt.value()[0]:rt.value():rt)})}),Wn(["pop","push","shift","sort","splice","unshift"],function(s){var c=bf[s],h=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",T=/^(?:pop|shift)$/.test(s);$.prototype[s]=function(){var I=arguments;if(T&&!this.__chain__){var L=this.value();return c.apply(ut(L)?L:[],I)}return this[h](function(F){return c.apply(ut(F)?F:[],I)})}}),Di(Tt.prototype,function(s,c){var h=$[c];if(h){var T=h.name+"";qt.call(pl,T)||(pl[T]=[]),pl[T].push({name:c,func:h})}}),pl[Bf(r,v).name]=[{name:"wrapper",func:r}],Tt.prototype.clone=KO,Tt.prototype.reverse=YO,Tt.prototype.value=XO,$.prototype.at=CR,$.prototype.chain=AR,$.prototype.commit=SR,$.prototype.next=IR,$.prototype.plant=OR,$.prototype.reverse=PR,$.prototype.toJSON=$.prototype.valueOf=$.prototype.value=RR,$.prototype.first=$.prototype.head,jc&&($.prototype[jc]=$R),$},ul=SO();rs?((rs.exports=ul)._=ul,tv._=ul):Vr._=ul}).call(_o)})(bp,bp.exports);var D5=bp.exports;const Lee={slot:"headline"},Mee={slot:"content"},Fee=["label","selected","onClick"],Nee={slot:"actions"},zee=["disabled"],qee={key:0,indeterminate:"",slot:"icon"},Bee=Dt({__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=Le([...e.selected]),{mutate:n,loading:i,onDone:o}=Nr({document:Ree,appApi:!0});o(()=>{gt.emit("item_tags_updated",{item:e.item,type:e.type}),gt.emit("refetch_tags",e.type),Ss()});function a(d){r.value.includes(d)?Va(r.value,u=>u.id===d.id):r.value.push(d)}const l=()=>{const d=r.value.map(f=>f.id),u=e.selected.map(f=>f.id);n({type:e.type,addTagIds:D5.difference(d,u),item:e.item,removeTagIds:D5.difference(u,d)})};return(d,u)=>(Y(),te("md-dialog",null,[N("div",Lee,Me(d.$t("add_to_tags")),1),N("div",Mee,[N("md-chip-set",null,[(Y(!0),te($t,null,ci(t.tags,f=>(Y(),te("md-filter-chip",{key:f.id,label:f.name,selected:r.value.includes(f),onClick:g=>a(f)},null,8,Fee))),128))])]),N("div",Nee,[N("md-outlined-button",{value:"cancel",onClick:u[0]||(u[0]=(...f)=>ne(Ss)&&ne(Ss)(...f))},Me(d.$t("cancel")),1),N("md-filled-button",{value:"save",disabled:ne(i),onClick:l,autofocus:""},[ne(i)?(Y(),te("md-circular-progress",qee)):kt("",!0),ai(" "+Me(d.$t("save")),1)],8,zee)])]))}}),Hxe=(t,e)=>{const r=Le("");return{createPath:r,createVariables(n){return{path:r.value+"/"+n}},createMutation(){return Nr({document:Tee,options:{update:async(n,i)=>{const o=i.data.createDir;Va(e.value,a=>a.path===o.path),e.value.unshift(JJ(o,t.value))}},appApi:!0})}}},Wxe=t=>{const e=Le();return{renameItem:e,renameDone(r){t()},renameMutation(){return Nr({document:Eee,appApi:!0})},renameVariables(r){var n;return{path:(n=e.value)==null?void 0:n.path,name:r}}}},Gxe=()=>{const t=Le(null),e=Le(null),r=Le([]),{refetch:n}=Am({handle:(i,o)=>{o||(t.value=i.storageStats.internal,e.value=i.storageStats.sdcard,r.value=i.storageStats.usb)},document:mee,appApi:!0});return{internal:t,sdcard:e,usb:r,refetch:n}},Vee=t=>({async downloadFile(e,r){const n=Ql(t.value,e);r?xs(n+`&dl=1&name=${r}`,r):xs(n+"&dl=1",Ls(e))},async downloadDir(e,r){const n=e1(t.value,e),i=`${ac()}/zip/dir?id=${encodeURIComponent(n)}`;r?xs(i+`&name=${r}`,r):xs(i,Ls(e))},downloadFiles(e){const r=AS(t.value,JSON.stringify({id:e,type:"FILE",name:""}));xs(`${ac()}/zip/files?id=${encodeURIComponent(r)}`,"")}}),Qxe=(t,e)=>({view(r,n){t.value=r.filter(o=>qi(o.name)||So(o.name)||mu(o.name)).map(o=>({path:o.path,src:o.fileId?Su(o.fileId):"",name:Ls(o.path),size:o.size,duration:0,data:n}));const i=dK(t.value,o=>o.path===n.path);e(t.value,i)}}),Kxe=(t,e,r,n,i)=>{const o=Le(),{mutate:a,loading:l,onDone:d,onError:u}=Nr({document:kee,appApi:!0}),{mutate:f,loading:g,onDone:y,onError:x}=Nr({document:Cee,appApi:!0}),{t:m}=Bn(),p=v=>{Hs(m(v.message))};u(p),x(p);const _=()=>{if(e.value)for(const v of r.value)Va(t.value,b=>b.path===v.path);r.value=[],setTimeout(()=>{n(),i()},500)};return d(_),y(_),{loading:l||g,canPaste(){return r.value.length>0},copy(v){r.value=t.value.filter(b=>v.includes(b.id)),e.value=!1},cut(v){r.value=t.value.filter(b=>v.includes(b.id)),e.value=!0},paste(v){o.value=v;for(const b of r.value){const w={src:b.path,dst:v+"/"+b.name,overwrite:!1};e.value?f(w):a(w)}}}};function DI(t){let e="Documents";return qi(t)?e="Pictures":So(t)?e="Movies":mu(t)&&(e="Music"),e}const Yxe=(t,e,r,n)=>{const{t:i}=Bn();return{downloadItems:(o,a,l)=>{let d=l;if(!o){if(a.length===0){Hs(i("select_first"),"error");return}d=`ids:${a.join(",")}`}const u=AS(t.value,JSON.stringify({query:d,type:e,name:n}));xs(`${ac()}/zip/files?id=${encodeURIComponent(u)}`,n),r()}}},Xxe=(t,e)=>{let r=e.internalStoragePath;return t&&(t==="sdcard"?r=e.sdcardPath:t.startsWith("usb")?r=e.usbDiskPaths[parseInt(t.substring(3))-1]:t==="app"&&(r=e.externalFilesDir)),r},Jxe=()=>({copyFilter:(t,e)=>{e.text=t.text,e.parent=t.parent,e.linkName=t.linkName,e.showHidden=t.showHidden},parseQ:(t,e)=>{const r=nY(e);t.showHidden=!1,t.text="",t.parent="",t.linkName="",r.forEach(n=>{n.name==="text"?t.text=n.value:n.name==="parent"?t.parent=n.value:n.name==="link_name"?t.linkName=n.value:n.name==="show_hidden"&&(t.showHidden=n.value==="true")})},buildQ:t=>{const e=[];return t.parent!==""&&e.push({name:"parent",op:"",value:t.parent}),t.linkName!==""&&e.push({name:"link_name",op:"",value:t.linkName}),t.text!==""&&e.push({name:"text",op:"",value:t.text}),t.showHidden&&e.push({name:"show_hidden",op:"",value:t.showHidden?"true":"false"}),fm(Tm(e))}}),Uee={id:"form",slot:"content",method:"dialog"},jee={slot:"actions"},Hee={form:"form",value:"cancel"},Wee=["disabled"],Gee=Dt({__name:"DeleteItemsConfirm",props:{gql:{type:Object,required:!0},count:{type:Number,required:!0},done:{type:Function,required:!0},variables:{type:Function,required:!0}},setup(t){const e=t,{mutate:r,loading:n,onDone:i}=Nr({document:e.gql,appApi:!0});function o(){r(e.variables())}return i(()=>{e.done(),Ss()}),(a,l)=>(Y(),te("md-dialog",null,[N("form",Uee,Me(a.$t("confirm_to_delete",{count:t.count})),1),N("div",jee,[N("md-outlined-button",Hee,Me(a.$t("cancel")),1),N("md-filled-button",{form:"form",value:"delete",disabled:ne(n),onClick:o,autofocus:""},Me(a.$t("delete")),9,Wee)])]))}}),Qee={id:"form",slot:"content",method:"dialog"},Kee={class:"title"},Yee={class:"image"},Xee=["src"],Jee={slot:"actions"},Zee={form:"form",value:"cancel"},ete=["disabled"],tte=Dt({__name:"DeleteConfirm",props:{id:{type:String,default:"",required:!0},name:{type:String},image:{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}=Nr({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,l)=>(Y(),te("md-dialog",null,[N("form",Qee,[N("div",Kee,Me(a.$t("confirm_to_delete_name",{name:t.name})),1),N("div",Yee,[t.image?(Y(),te("img",{key:0,src:ne(Su)(t.image,"&w=200&h=200"),alt:"",class:"image-thumb",onerror:"this.style.display='none'"},null,8,Xee)):kt("",!0)])]),N("div",Jee,[N("md-outlined-button",Zee,Me(a.$t("cancel")),1),N("md-filled-button",{form:"form",value:"delete",disabled:ne(n),onClick:o,autofocus:""},Me(a.$t("delete")),9,ete)])]))}}),rte=kn(tte,[["__scopeId","data-v-eabaeaf2"]]),nte=()=>{const{t}=Bn(),e=new Map;return e.set("AUDIO","Audio"),e.set("VIDEO","Video"),e.set("IMAGE","Image"),{deleteItems:(r,n,i,o,a)=>{let l=a;if(!i){if(n.length===0){Hs(t("select_first"),"error");return}l=`ids:${n.join(",")}`}fp(Gee,{gql:R5,count:i?o:n.length,variables:()=>({type:r,query:l}),done:()=>{gt.emit("media_items_actioned",{type:r,action:"delete",query:l})}})},deleteItem:(r,n)=>{fp(rte,{id:n.id,name:n.title,image:ite(n)?"":n.fileId,gql:R5,variables:()=>({type:r,query:`ids:${n.id}`}),appApi:!0,typeName:e.get(r)??"",done:()=>{gt.emit("media_items_actioned",{type:r,action:"delete",id:n.id,query:`ids:${n.id}`})}})}}};function ite(t){return"albumFileId"in t}const Zxe=t=>{const e={AUDIO:"audios",IMAGE:"images",VIDEO:"videos"}[t];return{view(r,n){const i=Tm([{name:"bucket_id",op:"",value:n}]);z1(r,`/${e}?q=${fm(i)}`)}}},e2e=t=>{const e=Le([]),r=Le([]),{t:n}=Bn(),{fetch:i}=Oy({handle:async(o,a)=>{a?Hs(n(a),"error"):o&&(e.value=o.tags,r.value=o.mediaBuckets)},document:_ee,variables:{type:t},appApi:!0});return{tags:e,buckets:r,fetch:i}};var vs=(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))(vs||{}),I1=(t=>(t[t.MEDIA_TRASH=0]="MEDIA_TRASH",t))(I1||{});const ote={id:"form",slot:"content",method:"dialog"},ate={slot:"actions"},ste={form:"form",value:"cancel"},lte=["disabled"],cte={key:0,indeterminate:"",slot:"icon"},dte=Dt({__name:"DeleteFileConfirm",props:{onDone:{type:Function,required:!0},files:{type:Array,required:!0}},setup(t){const e=t,{mutate:r,loading:n,onDone:i}=Nr({document:de` 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),_s()}),(a,l)=>(J(),re("md-dialog",null,[N("form",Vee,Me(a.$t("confirm_to_delete_name",{name:oe(QK)(t.files.map(d=>d.name).join(", "),{length:200})})),1),N("div",jee,[N("md-outlined-button",Hee,Me(a.$t("cancel")),1),N("md-filled-button",{form:"form",value:"delete",disabled:oe(n),onClick:o,autofocus:""},[oe(n)?(J(),re("md-circular-progress",Gee)):yt("",!0),ri(Me(a.$t("delete")),1)],8,Wee)])]))}}),di=t=>(ko("data-v-2b141af6"),t=t(),Co(),t),Kee={class:"layout"},Yee={key:0,class:"toolbar"},Xee={key:0,class:"source-name v-center"},Jee=di(()=>N("md-ripple",null,null,-1)),Zee=di(()=>N("md-ripple",null,null,-1)),ete=di(()=>N("md-ripple",null,null,-1)),tte=di(()=>N("md-ripple",null,null,-1)),rte=di(()=>N("md-ripple",null,null,-1)),nte=di(()=>N("md-ripple",null,null,-1)),ite=di(()=>N("md-ripple",null,null,-1)),ote=di(()=>N("md-ripple",null,null,-1)),ate={key:2,class:"loading"},ste=di(()=>N("md-circular-progress",{indeterminate:""},null,-1)),lte=[ste],cte={key:3,class:"v-on-error"},dte=["src"],ute={style:{padding:"50px"}},fte=["src"],hte=["src"],pte={key:1,class:"info"},mte={class:"top-app-bar"},vte={class:"actions"},gte=di(()=>N("md-ripple",null,null,-1)),_te=di(()=>N("md-ripple",null,null,-1)),yte={class:"list-items"},bte={class:"item"},xte={class:"title"},wte={class:"subtitle"},Tte={key:0},Ete={key:0,class:"item"},kte={class:"title"},Cte={class:"subtitle"},Ate={key:1,class:"item"},Ste={class:"title"},Ite={class:"subtitle"},$te={key:2,class:"item"},Ote={class:"title"},Pte=di(()=>N("md-ripple",null,null,-1)),Rte={class:"subtitle"},Dte={key:3,class:"item"},Lte={class:"title"},Mte={class:"subtitle"},E5=1.5,Fte=Dt({__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=e,i=()=>{const Y=b.value;Y&&(Y.viewOriginImage=!0),v.loading=!0},o=Va(),{urlTokenKey:a,app:l}=Cs(o),d=Le(),{imgRef:u,imgState:f,setImgSize:g}=OJ(),y=Le(0),{lightboxInfoVisible:x}=Cs(Fs()),{downloadFile:m}=kee(a),{deleteItem:p}=qee(),_=ki({scale:1,lastScale:1,rotateDeg:0,top:0,left:0,initX:0,initY:0,lastX:0,lastY:0,touches:[]}),v=ki({loadError:!1,loading:!1,dragging:!1,gesturing:!1,swipeToLeft:!1,swipeToRight:!1,wheeling:!1}),b=Le(),w=()=>v.loadError?"default":"move",E=Le(null);function C(){var Ye,pt;const Y=[Mh.VIDEO,Mh.AUDIO,Mh.IMAGE],ce=(Ye=b.value)==null?void 0:Ye.type,Fe=(pt=b.value)==null?void 0:pt.data;ce&&Y.includes(ce)?p(ce,Fe):rp(Qee,{files:[Fe],onDone:()=>{Tt.emit("file_deleted",{item:Fe})}})}const{loading:S,load:P,refetch:R}=gy({handle:(Y,ce)=>{ce||Y&&(E.value=Y.fileInfo,D())},document:ZZ,variables:()=>{var Y,ce,Fe;return{id:((ce=(Y=b.value)==null?void 0:Y.data)==null?void 0:ce.id)??"",path:((Fe=b.value)==null?void 0:Fe.path)??""}},appApi:!0});function D(){if(b.value&&E.value&&Ni(b.value.name)&&b.value.path===E.value.path)if(Uk(b.value.name))b.value.viewOriginImage=!0;else{const{width:Y,height:ce}=E.value.data;Y===f.naturalWidth&&ce===f.naturalHeight&&(b.value.viewOriginImage=!0)}}const z=new Map,{loading:j,load:q}=gy({handle:(Y,ce)=>{var Fe;Y&&z.set(((Fe=b.value)==null?void 0:Fe.type)??"",Y.tags)},document:ree,variables:()=>{var Y;return{type:((Y=b.value)==null?void 0:Y.type)??""}},appApi:!0}),Z=It(()=>({cursor:w(),top:`calc(50% + ${_.top}px)`,left:`calc(50% + ${_.left}px)`,transition:v.dragging||v.gesturing?"none":"",transform:`translate(-50%, -50%) scale(${_.scale}) rotate(${_.rotateDeg}deg)`})),we=()=>{o.lightbox.visible=!1,o.lightbox.index=-1,y.value=0};function $e(){var Ye,pt,vr,cn,Vr;const Y=((pt=(Ye=E.value)==null?void 0:Ye.data)==null?void 0:pt.width)??0,ce=((cn=(vr=E.value)==null?void 0:vr.data)==null?void 0:cn.height)??0;let Fe=` ${Y} x ${ce}`;if(Ni(((Vr=b.value)==null?void 0:Vr.name)??"")){const ui=Math.round(Y*ce/1e6);ui>1&&(Fe+=` ${ui} MP`)}return Fe}const ye=()=>{_.scale=1,_.lastScale=1,_.rotateDeg=0,_.top=0,_.left=0,v.loadError=!1,v.dragging=!1,v.gesturing=!1,v.loading=!0},ke=async(Y,ce)=>{const Fe=y.value;ye();const Ye=o.lightbox.sources[Y];Ye.src||(Ye.src=ql(o.urlTokenKey,Ye.path)),y.value=Y,b.value=o.lightbox.sources[y.value],setTimeout(()=>{var vr;const pt=((vr=b.value)==null?void 0:vr.type)??"";pt&&!z.has(pt)&&q(),P()},0),Fe!==Y&&(ce&&($J(ce)?ce.forEach(pt=>{n(pt,Fe,Y)}):n(ce,Fe,Y)),n("on-index-change",Fe,Y))},Ie=()=>{const Y=y.value,ce=r.loop?(Y+1)%o.lightbox.sources.length:Y+1;!r.loop&&ce>o.lightbox.sources.length-1||ke(ce,["on-next","on-next-click"])},Be=()=>{const Y=y.value;let ce=Y-1;if(Y===0){if(!r.loop)return;ce=o.lightbox.sources.length-1}ke(ce,["on-prev","on-prev-click"])},Re=Y=>{Math.abs(1-Y)<.05?Y=1:Math.abs(f.maxScale-Y)<.05&&(Y=f.maxScale),_.lastScale=_.scale,_.scale=Y},se=()=>{const Y=_.scale*E5;Y{const Y=_.scale/E5;Y>.1&&Re(Y)},Oe=()=>{_.rotateDeg-=90},Ce=()=>{_.rotateDeg+=90},je=()=>{_.scale=1,_.top=0,_.left=0},Ge=Y=>Y===0,{onMouseDown:te,onMouseMove:le,onMouseUp:fe}=PJ(_,v,Ge),{onTouchStart:De,onTouchMove:Ke,onTouchEnd:nt}=RJ(f,_,v,Ge),k=()=>{_.scale!==f.maxScale?(_.lastScale=_.scale,_.scale=f.maxScale):_.scale=_.lastScale},A=Y=>{v.loadError||v.gesturing||v.loading||v.dragging||v.wheeling||(v.wheeling=!0,setTimeout(()=>{v.wheeling=!1},80),Y.deltaY<0?se():Te())};let M=!0;const V=()=>{var Y;M=!0,(Y=d.value)==null||Y.blur()},G=()=>{var Y;M=!1,(Y=d.value)==null||Y.blur()},ae=()=>{var Y;(Y=d.value)==null||Y.blur()},Ae=Y=>{if(!o.lightbox.visible)return;const ce=Y;if(ce.key==="Escape"){if(document.querySelector("md-dialog[open]"))return;ce==null||ce.stopPropagation(),we()}else if(ce.key==="ArrowLeft")ce==null||ce.stopPropagation(),Be();else if(ce.key==="ArrowRight")ce==null||ce.stopPropagation(),Ie();else if(ce.key===" "){const Fe=d.value;Fe&&(Fe.paused&&!M?Fe.play():Fe.pause())}},he=()=>{v.loading=!1,b.value&&Ni(b.value.name)&&(g(),D())},ge=Y=>{v.loading=!1,v.loadError=!0,n("on-error",Y)},ie=()=>{g()};Ot(()=>o.lightbox.index,Y=>{Y<0||Y>=o.lightbox.sources.length||ke(Y)}),Ot(()=>v.dragging,(Y,ce)=>{});function W(){var Ye,pt;const Y=((Ye=b.value)==null?void 0:Ye.type)??"",ce=z.get(Y)??[],Fe=((pt=b.value)==null?void 0:pt.data)??{};rp(Eee,{type:Y,tags:ce,item:{key:Fe.id,title:Fe.title,size:Fe.size},selected:ce.filter(vr=>{var cn;return(cn=E.value)==null?void 0:cn.tags.some(Vr=>Vr.id===vr.id)})})}const U=Y=>{var ce,Fe;Y.item.key===((Fe=(ce=b.value)==null?void 0:ce.data)==null?void 0:Fe.id)&&R()},xe=Y=>{var ce,Fe;Y.action==="delete"&&Y.id===((Fe=(ce=b.value)==null?void 0:ce.data)==null?void 0:Fe.id)&&(La(o.lightbox.sources,Ye=>{var pt;return((pt=Ye.data)==null?void 0:pt.id)===Y.id}),o.lightbox.sources.length?Ie():we())},Se=Y=>{var ce,Fe;Y.item.path===((Fe=(ce=b.value)==null?void 0:ce.data)==null?void 0:Fe.path)&&(La(o.lightbox.sources,Ye=>Ye.path===Y.item.path),o.lightbox.sources.length?Ie():we())};return Ur(()=>{Nk(window,"keydown",Ae),Nk(window,"resize",ie),Tt.on("item_tags_updated",U),Tt.on("media_items_actioned",xe),Tt.on("file_deleted",Se)}),Ii(()=>{zk(window,"keydown",Ae),zk(window,"resize",ie),Tt.off("item_tags_updated",U),Tt.off("media_items_actioned",xe),Tt.off("file_deleted",Se)}),(Y,ce)=>{var zu,qu,Ic,Bu,Uu,Vu,Xs,ju,Js,Hu,Wu,Gu,Qu,Ku,Yu,Xu,Ju,$c,Zu;const Fe=wu,Ye=gI,pt=_J,vr=hJ,cn=lJ,Vr=nJ,ui=JX,xr=GX,jr=UX,Ys=FX,Dm=PX,Lm=e1,Fu=_Y,Nu=hY,Mm=lY,dn=Ao("tooltip");return J(),kr(e0,{to:"body"},[oe(o).lightbox.visible?(J(),re("div",{key:0,onTouchmove:ce[9]||(ce[9]=(...wr)=>oe(qk)&&oe(qk)(...wr)),class:"lightbox",onWheel:A},[N("div",Kee,[b.value?(J(),re("header",Yee,[b.value.name?(J(),re("div",Xee,[lt((J(),re("button",{class:"btn-icon",onClick:we},[Jee,Pe(Fe)])),[[dn,Y.$t("close")]]),N("span",null,Me(b.value.name),1)])):yt("",!0),oe(Ni)(b.value.name)?(J(),re($t,{key:1},[b.value.viewOriginImage?yt("",!0):lt((J(),re("button",{key:0,class:"btn-icon",onClick:i},[Zee,Pe(Ye)])),[[dn,Y.$t("view_origin_image")]]),lt((J(),re("button",{class:"btn-icon",onClick:se},[ete,Pe(pt)])),[[dn,Y.$t("zoom_in")]]),lt((J(),re("button",{class:"btn-icon",onClick:Te},[tte,Pe(vr)])),[[dn,Y.$t("zoom_out")]]),lt((J(),re("button",{class:"btn-icon",onClick:je},[rte,Pe(cn)])),[[dn,Y.$t("resize")]]),lt((J(),re("button",{class:"btn-icon",onClick:Oe},[nte,Pe(Vr)])),[[dn,Y.$t("rotate_left")]]),lt((J(),re("button",{class:"btn-icon",onClick:Ce},[ite,Pe(ui)])),[[dn,Y.$t("rotate_right")]])],64)):yt("",!0),lt((J(),re("button",{class:"btn-icon",onClick:ce[0]||(ce[0]=wr=>x.value=!oe(x))},[ote,Pe(xr)])),[[dn,Y.$t("info")]])])):yt("",!0),N("section",{class:"content",onClick:wt(we,["self"])},[oe(o).lightbox.sources.length>1&&(t.loop||y.value>0)?(J(),re("div",{key:0,class:"btn-prev",onClick:Be},[Pe(jr)])):yt("",!0),oe(o).lightbox.sources.length>1&&(t.loop||y.valueoe(te)&&oe(te)(...wr)),onMouseup:ce[2]||(ce[2]=(...wr)=>oe(fe)&&oe(fe)(...wr)),onMousemove:ce[3]||(ce[3]=(...wr)=>oe(le)&&oe(le)(...wr)),onTouchstart:ce[4]||(ce[4]=(...wr)=>oe(De)&&oe(De)(...wr)),onTouchmove:ce[5]||(ce[5]=(...wr)=>oe(Ke)&&oe(Ke)(...wr)),onTouchend:ce[6]||(ce[6]=(...wr)=>oe(nt)&&oe(nt)(...wr)),onLoad:he,onError:ge,onDblclick:k,onDragstart:ce[7]||(ce[7]=wr=>{wr.preventDefault()})},null,44,hte)],4)),[[_n,!v.loading&&!v.loadError]]):yt("",!0)]),oe(x)?(J(),re("section",pte,[N("div",mte,[Pe(Dm,{id:Y.$t("info"),raw:E.value},null,8,["id","raw"]),N("div",vte,[(Bu=b.value)!=null&&Bu.data?lt((J(),re("button",{key:0,class:"btn-icon",onClick:wt(C,["stop"])},[gte,Pe(Lm)])),[[dn,Y.$t("delete")]]):yt("",!0),lt((J(),re("button",{class:"btn-icon",onClick:ce[8]||(ce[8]=wt(wr=>{var ef,tf;return oe(m)(((ef=b.value)==null?void 0:ef.path)??"",oe(ks)(((tf=b.value)==null?void 0:tf.path)??"").replace(" ","-"))},["stop"]))},[_te,Pe(Fu)])),[[dn,Y.$t("download")]])])]),N("section",yte,[N("div",bte,[N("div",xte,Me(Y.$t("file_size")),1),N("div",wte,[ri(Me(oe(iu)(((Uu=b.value)==null?void 0:Uu.size)??0))+" ",1),(Xs=(Vu=E.value)==null?void 0:Vu.data)!=null&&Xs.width&&((Js=(ju=E.value)==null?void 0:ju.data)!=null&&Js.height)?(J(),re("span",Tte,Me($e()),1)):yt("",!0)])]),(Hu=E.value)!=null&&Hu.updatedAt?(J(),re("div",Ete,[N("div",kte,Me(Y.$t("updated_at")),1),N("div",Cte,[lt((J(),re("time",null,[ri(Me(oe(d1)(E.value.updatedAt)),1)])),[[dn,oe(u1)(E.value.updatedAt)]])])])):yt("",!0),b.value&&(oe(nu)((Wu=b.value)==null?void 0:Wu.name)||oe(Eo)((Gu=b.value)==null?void 0:Gu.name))?(J(),re("div",Ate,[N("div",Ste,Me(Y.$t("duration")),1),N("div",Ite,Me(oe(vm)(((Ku=(Qu=E.value)==null?void 0:Qu.data)==null?void 0:Ku.duration)??((Yu=b.value)==null?void 0:Yu.duration))),1)])):yt("",!0),(Xu=b.value)!=null&&Xu.type?(J(),re("div",$te,[N("div",Ote,[ri(Me(Y.$t("tags"))+" ",1),lt((J(),re("button",{class:"btn-icon sm",onClick:wt(W,["prevent"])},[Pte,Pe(Nu)])),[[dn,Y.$t("add_to_tags")]])]),N("div",Rte,[Pe(Mm,{tags:(Ju=E.value)==null?void 0:Ju.tags},null,8,["tags"])])])):yt("",!0),($c=b.value)!=null&&$c.path?(J(),re("div",Dte,[N("div",Lte,Me(Y.$t("path")),1),N("div",Mte,Me(oe(RV)(oe(l).externalFilesDir,(Zu=b.value)==null?void 0:Zu.path)),1)])):yt("",!0)])])):yt("",!0)])],32)):yt("",!0)])}}}),Nte=Tn(Fte,[["__scopeId","data-v-2b141af6"]]),zte={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},qte=N("path",{fill:"currentColor",d:"M12 17q.425 0 .713-.288T13 16t-.288-.712T12 15t-.712.288T11 16t.288.713T12 17m0-4q.425 0 .713-.288T13 12V8q0-.425-.288-.712T12 7t-.712.288T11 8v4q0 .425.288.713T12 13m0 9q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12t-.788 3.9t-2.137 3.175t-3.175 2.138T12 22m0-2q3.35 0 5.675-2.325T20 12t-2.325-5.675T12 4T6.325 6.325T4 12t2.325 5.675T12 20m0-8"},null,-1),Bte=[qte];function Ute(t,e){return J(),re("svg",zte,[...Bte])}const Vte={name:"material-symbols-error-outline-rounded",render:Ute},jte={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Hte=N("path",{fill:"currentColor",d:"M7.5 8v8l4-4zM5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.587 1.413T19 21zm11-2h3V5h-3zm-2 0V5H5v14zm2 0h3z"},null,-1),Wte=[Hte];function Gte(t,e){return J(),re("svg",jte,[...Wte])}const _m={name:"material-symbols-right-panel-close-outline",render:Gte};function Qte(t,e=[],r=""){return t?"loading":r&&!e.includes(r)?"no_permission":"no_data"}const Kte={type:"alert"},Yte={slot:"headline"},Xte={slot:"content",method:"dialog"},Jte={slot:"actions"},Zte=Dt({__name:"ConfirmModal",props:{title:{type:String},message:{type:String}},setup(t){function e(){_s()}return(r,n)=>(J(),re("md-dialog",Kte,[N("div",Yte,Me(t.title||r.$t("confirm")),1),N("section",Xte,[N("pre",null,Me(t.message),1)]),N("div",Jte,[N("md-filled-button",{form:"form",value:"ok",onClick:e},Me(r.$t("ok")),1)])]))}}),m1=t=>(ko("data-v-5637eeb4"),t=t(),Co(),t),ere={class:"quick-content-main"},tre={class:"top-app-bar"},rre=m1(()=>N("md-ripple",null,null,-1)),nre={class:"title"},ire={class:"actions"},ore=m1(()=>N("md-ripple",null,null,-1)),are={key:0,class:"alert-warning show"},sre={class:"body"},lre={class:"actions"},cre={key:1,class:"alert-warning show"},dre={class:"body"},ure={class:"actions"},fre={class:"quick-content-body"},hre={key:0,class:"list-items"},pre={class:"title"},mre=["src"],vre={class:"view-raw"},gre={class:"name"},_re={class:"time nowrap"},yre={class:"subtitle"},bre={class:"body"},xre=["onClick"],wre=m1(()=>N("md-ripple",null,null,-1)),Tre={key:1,class:"no-data"},Ere=Dt({__name:"PNotifications",setup(t){const{resolveClient:e}=Zp(),r=Fs(),{t:n}=zn(),{app:i,urlTokenKey:o}=Cs(Va()),a=Le([]),l=window.location.protocol==="https:",{loading:d}=gm({handle:(p,_)=>{_?Ls(n(_),"error"):p&&(a.value=p.notifications.map(v=>({...v,icon:ql(o.value,"pkgicon://"+v.appId)})))},document:Pg,appApi:!0}),u=Le(Notification.permission),{mutate:f}=Yr({document:gee,appApi:!0}),g=p=>{f({ids:[p.id]})},y=()=>{window.open(`https://${window.location.hostname}:${i.value.httpsPort}`,"_blank")},x=()=>{if(Notification.permission==="denied"){DA(Zte,{title:n("desktop_notification_permission_grant_title"),message:n("desktop_notification_permission_grant_message")});return}Notification.requestPermission().then(p=>{u.value=p})},m=()=>{const p=a.value.map(_=>_.id);f({ids:p})};return Ur(()=>{Tt.on("notification_created",async p=>{const _=e("a");if(ps(_.cache,[{...p,__typename:"Notification"}],Pg,null,!0),p.icon=ql(o.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()}}}),Tt.on("notification_updated",async p=>{const v=e("a").cache;if(v.evict({id:v.identify({__typename:"Notification",id:p.id})}),ps(v,[{...p,__typename:"Notification"}],Pg,null,!0),p.icon=ql(o.value,"pkgicon://"+p.appId),"Notification"in window&&Notification.permission==="granted"){const b=new Notification(p.title,{body:p.body,icon:p.icon});b.onclick=()=>{window.focus(),b.close()}}}),Tt.on("notification_deleted",async p=>{const v=e("a").cache;v.evict({id:v.identify({__typename:"Notification",id:p.id})})})}),(p,_)=>{const v=_m,b=e1,w=Vte,E=c1,C=wu,S=Ao("tooltip");return J(),re("div",ere,[N("div",tre,[lt((J(),re("button",{class:"btn-icon",onClick:_[0]||(_[0]=wt(P=>oe(r).quick="",["prevent"]))},[rre,Pe(v)])),[[S,p.$t("close")]]),N("div",nre,Me(p.$t("header_actions.notifications"))+" ("+Me(a.value.length)+")",1),N("div",ire,[a.value.length?lt((J(),re("button",{key:0,class:"btn-icon",onClick:wt(m,["prevent"])},[ore,Pe(b)])),[[S,p.$t("clear_list")]]):yt("",!0)])]),!l&&u.value!=="granted"?(J(),re("div",are,[Pe(w),N("div",sre,Me(p.$t("desktop_notification_need_https")),1),N("div",lre,[N("md-filled-button",{class:"btn-sm",onClick:wt(y,["stop"])},Me(p.$t("use_https_link")),1)])])):u.value!=="granted"?(J(),re("div",cre,[Pe(w),N("div",dre,Me(p.$t("desktop_notification_permission_not_granted")),1),N("div",ure,[N("md-filled-button",{class:"btn-sm",onClick:wt(x,["stop"])},Me(p.$t("grant_permission")),1)])])):yt("",!0),N("div",fre,[a.value.length?(J(),re("section",hre,[(J(!0),re($t,null,oi(a.value,P=>(J(),re("div",{class:"item",key:P.id},[N("div",pre,[Pe(E,null,{content:Dn(()=>[N("pre",vre,Me(P),1)]),default:Dn(()=>[N("img",{width:"20",height:"20",src:P.icon},null,8,mre)]),_:2},1024),N("span",gre,Me(P.appName),1),lt((J(),re("time",_re,[ri(Me(oe(d1)(P.time)),1)])),[[S,oe(u1)(P.time)]])]),N("div",yre,Me(P.title),1),N("div",bre,Me(P.body),1),N("button",{class:"btn-icon icon",onClick:wt(R=>g(P),["stop"])},[wre,Pe(C)],8,xre)]))),128))])):(J(),re("span",Tre,Me(p.$t(oe(Qte)(oe(d),oe(i).permissions,"NOTIFICATION_LISTENER"))),1))])])}}}),kre=Tn(Ere,[["__scopeId","data-v-5637eeb4"]]),Cre={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Are=N("path",{fill:"currentColor",d:"M16.5 17V7q0-.425.288-.712T17.5 6t.713.288T18.5 7v10q0 .425-.288.713T17.5 18t-.712-.288T16.5 17m-11-.875v-8.25q0-.45.3-.725t.7-.275q.125 0 .275.025t.275.125l6.2 4.15q.225.15.338.363T13.7 12t-.112.463t-.338.362l-6.2 4.15q-.125.1-.275.125t-.275.025q-.4 0-.7-.275t-.3-.725m2-1.875L10.9 12L7.5 9.75z"},null,-1),Sre=[Are];function Ire(t,e){return J(),re("svg",Cre,[...Sre])}const $re={name:"material-symbols-skip-next-outline-rounded",render:Ire},Ore={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Pre=N("path",{fill:"currentColor",d:"M11.5 10.5h-.75q-.325 0-.537-.213T10 9.75t.213-.537T10.75 9H12q.425 0 .713.288T13 10v4.25q0 .325-.213.538T12.25 15t-.537-.213t-.213-.537zM6.85 19l.85.85q.3.3.288.7t-.288.7q-.3.3-.712.313t-.713-.288L3.7 18.7q-.15-.15-.213-.325T3.426 18t.063-.375t.212-.325l2.575-2.575q.3-.3.713-.287t.712.312q.275.3.288.7t-.288.7l-.85.85H17v-3q0-.425.288-.712T18 13t.713.288T19 14v3q0 .825-.587 1.413T17 19zm10.3-12H7v3q0 .425-.288.713T6 11t-.712-.288T5 10V7q0-.825.588-1.412T7 5h10.15l-.85-.85q-.3-.3-.288-.7t.288-.7q.3-.3.712-.312t.713.287L20.3 5.3q.15.15.213.325t.062.375t-.062.375t-.213.325l-2.575 2.575q-.3.3-.712.288T16.3 9.25q-.275-.3-.288-.7t.288-.7z"},null,-1),Rre=[Pre];function Dre(t,e){return J(),re("svg",Ore,[...Rre])}const Lre={name:"material-symbols-repeat-one-rounded",render:Dre},Mre={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Fre=N("path",{fill:"currentColor",d:"m6.85 19l.85.85q.3.3.288.7t-.288.7q-.3.3-.712.313t-.713-.288L3.7 18.7q-.15-.15-.213-.325T3.426 18t.063-.375t.212-.325l2.575-2.575q.3-.3.713-.287t.712.312q.275.3.288.7t-.288.7l-.85.85H17v-3q0-.425.288-.712T18 13t.713.288T19 14v3q0 .825-.587 1.413T17 19zm10.3-12H7v3q0 .425-.288.713T6 11t-.712-.288T5 10V7q0-.825.588-1.412T7 5h10.15l-.85-.85q-.3-.3-.288-.7t.288-.7q.3-.3.712-.312t.713.287L20.3 5.3q.15.15.213.325t.062.375t-.062.375t-.213.325l-2.575 2.575q-.3.3-.712.288T16.3 9.25q-.275-.3-.288-.7t.288-.7z"},null,-1),Nre=[Fre];function zre(t,e){return J(),re("svg",Mre,[...Nre])}const qre={name:"material-symbols-repeat-rounded",render:zre},Bre={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ure=N("path",{fill:"currentColor",d:"m16.6 18l-3.175-3.175L14.85 13.4L18 16.55V15q0-.425.288-.712T19 14t.713.288T20 15v4q0 .425-.288.713T19 20h-4q-.425 0-.712-.288T14 19t.288-.712T15 18zM18 7.4L5.7 19.7q-.275.275-.7.275t-.7-.275t-.275-.7t.275-.7L16.6 6H15q-.425 0-.712-.287T14 5t.288-.712T15 4h4q.425 0 .713.288T20 5v4q0 .425-.288.713T19 10t-.712-.288T18 9zm-8.825 3.175L4.275 5.7Q4 5.425 4 5t.275-.7t.688-.275t.712.275l4.9 4.875z"},null,-1),Vre=[Ure];function jre(t,e){return J(),re("svg",Bre,[...Vre])}const Hre={name:"material-symbols-shuffle-outline-rounded",render:jre},Wre={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Gre=N("path",{fill:"currentColor",d:"M5.5 17V7q0-.425.288-.712T6.5 6t.713.288T7.5 7v10q0 .425-.288.713T6.5 18t-.712-.288T5.5 17m11.45-.025l-6.2-4.15q-.225-.15-.337-.362T10.3 12t.113-.462t.337-.363l6.2-4.15q.125-.1.275-.125t.275-.025q.4 0 .7.275t.3.725v8.25q0 .45-.3.725t-.7.275q-.125 0-.275-.025t-.275-.125m-.45-2.725v-4.5L13.1 12z"},null,-1),Qre=[Gre];function Kre(t,e){return J(),re("svg",Wre,[...Qre])}const Yre={name:"material-symbols-skip-previous-outline-rounded",render:Kre};function k5(t){t.detail>1&&t.preventDefault()}const yc=t=>(ko("data-v-40a71df6"),t=t(),Co(),t),Xre={class:"quick-content-main"},Jre={class:"top-app-bar"},Zre=yc(()=>N("md-ripple",null,null,-1)),ene={class:"title"},tne={class:"quick-content-body"},rne=["src"],nne={key:0,class:"buttons"},ine=yc(()=>N("md-ripple",null,null,-1)),one=yc(()=>N("md-ripple",null,null,-1)),ane=yc(()=>N("md-ripple",null,null,-1)),sne={key:0,indeterminate:"",class:"spinner-sm"},lne=yc(()=>N("md-ripple",null,null,-1)),cne={class:"list-items"},dne=["onClick"],une={class:"title"},fne={class:"subtitle"},hne=["onClick"],pne=yc(()=>N("md-ripple",null,null,-1)),mne=Dt({__name:"AudioPlayer",setup(t){const{app:e,urlTokenKey:r,audioPlaying:n}=Cs(Va()),i=Fs(),o=It(()=>{var Re;return((Re=e.value)==null?void 0:Re.audios)??[]}),a=Le(),l=Le("");async function d(){const{audioCurrent:Re}=e.value;l.value=ql(r.value,Re),a.value=o.value.find(se=>se.path==Re)}d(),Ot(()=>e.value.audioCurrent,d);const{mutate:u,loading:f,onDone:g,onError:y}=Yr({document:fee,appApi:!0}),{mutate:x,loading:m,onDone:p,onError:_}=Yr({document:mee,appApi:!0});p(()=>{e.value={...e.value,audioCurrent:"",audios:[]}});const{mutate:v,loading:b,onDone:w,onError:E}=Yr({document:hee,appApi:!0}),{mutate:C,loading:S,onDone:P,onError:R}=Yr({document:pee,appApi:!0}),D=Le();async function z(){var se;if(o.value.length===0)return;const Re=e.value.audioMode;Re==="REPEAT"?ye():Re==="REPEAT_ONE"?(se=D.value)==null||se.play():j()}function j(){const Re=VK(e.value.audios);u({path:Re.path}),e.value={...e.value,audioCurrent:Re.path}}function q(){o.value.length!==0&&(e.value.audioMode==="SHUFFLE"?j():Z())}function Z(){const Re=o.value.findIndex(Te=>{var Oe;return Te.path===((Oe=a.value)==null?void 0:Oe.path)});let se;Re<=0?se=o.value[o.value.length-1]:se=o.value[Re-1],u({path:se.path}),e.value={...e.value,audioCurrent:se.path}}function we(){o.value.length!==0&&(e.value.audioMode==="SHUFFLE"?j():ye())}function $e(){var Re;(Re=D.value)==null||Re.play()}function ye(){const Re=o.value.findIndex(Te=>{var Oe;return Te.path===((Oe=a.value)==null?void 0:Oe.path)});let se;Re+1>=o.value.length?se=o.value[0]:se=o.value[Re+1],u({path:se.path}),e.value={...e.value,audioCurrent:se.path}}function ke(){let Re=e.value.audioMode;Re==="REPEAT"?Re="REPEAT_ONE":Re==="REPEAT_ONE"?Re="SHUFFLE":Re="REPEAT",v({mode:Re}),e.value={...e.value,audioMode:Re}}function Ie(Re){u({path:Re.path}),e.value={...e.value,audioCurrent:Re.path}}g(()=>{$e()});function Be(Re){C({path:Re.path});const se=[...e.value.audios];La(se,Te=>Te.path===Re.path),e.value={...e.value,audios:se}}return Ur(()=>{var Re,se;Tt.on("do_play_audio",()=>{setTimeout($e,500)}),Tt.on("pause_audio",()=>{var Te;(Te=D.value)==null||Te.pause()}),(Re=D.value)==null||Re.addEventListener("pause",function(){n.value=!1}),(se=D.value)==null||se.addEventListener("play",function(){n.value=!0})}),(Re,se)=>{var Ke,nt,k;const Te=_m,Oe=Yre,Ce=Hre,je=qre,Ge=Lre,te=$re,le=e1,fe=wu,De=Ao("tooltip");return J(),re("div",Xre,[N("div",Jre,[lt((J(),re("button",{class:"btn-icon",onClick:se[0]||(se[0]=wt(A=>oe(i).quick="",["prevent"]))},[Zre,Pe(Te)])),[[De,Re.$t("close")]]),N("div",ene,Me(((Ke=a.value)==null?void 0:Ke.title)??Re.$t("audio_player")),1)]),N("div",tne,[N("audio",{ref_key:"audioRef",ref:D,class:"audio",controls:"",src:l.value,onEnded:z},null,40,rne),o.value.length?(J(),re("div",nne,[N("button",{class:"btn-icon",onClick:wt(q,["stop"])},[ine,Pe(Oe)]),N("button",{class:"btn-icon mode",onClick:wt(ke,["stop"])},[one,((nt=oe(e))==null?void 0:nt.audioMode)==="SHUFFLE"?(J(),kr(Ce,{key:0})):((k=oe(e))==null?void 0:k.audioMode)==="REPEAT"?(J(),kr(je,{key:1})):(J(),kr(Ge,{key:2}))]),N("button",{class:"btn-icon",onClick:wt(we,["stop"])},[ane,Pe(te)]),oe(m)?(J(),re("md-circular-progress",sne)):lt((J(),re("button",{key:1,class:"btn-icon",onClick:se[1]||(se[1]=wt((...A)=>oe(x)&&oe(x)(...A),["prevent"]))},[lne,Pe(le)])),[[De,Re.$t("clear_list")]])])):yt("",!0),N("section",cne,[(J(!0),re($t,null,oi(o.value,A=>{var M;return J(),re("div",{class:Pn(["item",{selected:A.path===((M=a.value)==null?void 0:M.path)}]),key:A.path,onClick:wt(V=>Ie(A),["stop"]),onMousedown:se[2]||(se[2]=(...V)=>oe(k5)&&oe(k5)(...V))},[N("div",une,Me(A.title),1),N("div",fne,Me(A.artist)+" "+Me(oe(vm)(A.duration)),1),N("button",{class:"btn-icon icon",onClick:wt(V=>Be(A),["stop"])},[pne,Pe(fe)],8,hne)],42,dne)}),128))])])])}}}),vne=Tn(mne,[["__scopeId","data-v-40a71df6"]]),gne={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},_ne=N("path",{fill:"currentColor",d:"m19.8 12.925l-15.4 6.5q-.5.2-.95-.088T3 18.5v-13q0-.55.45-.837t.95-.088l15.4 6.5q.625.275.625.925t-.625.925M5 17l11.85-5L5 7v3.5l6 1.5l-6 1.5zm0 0V7z"},null,-1),yne=[_ne];function bne(t,e){return J(),re("svg",gne,[...yne])}const xne={name:"material-symbols-send-outline-rounded",render:bne},wne={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Tne=N("path",{fill:"currentColor",d:"M4 20q-.825 0-1.412-.587T2 18V6q0-.825.588-1.412T4 4h5.175q.4 0 .763.15t.637.425L12 6h8q.825 0 1.413.588T22 8v10q0 .825-.587 1.413T20 20zm0-2h16V8h-8.825l-2-2H4zm0 0V6z"},null,-1),Ene=[Tne];function kne(t,e){return J(),re("svg",wne,[...Ene])}const Cne={name:"material-symbols-folder-outline-rounded",render:kne},Ane={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Sne=N("path",{fill:"currentColor",d:"M12 14.95q-.2 0-.375-.062t-.325-.213l-4.6-4.6q-.275-.275-.275-.7t.275-.7t.7-.275t.7.275l3.9 3.9l3.9-3.9q.275-.275.7-.275t.7.275t.275.7t-.275.7l-4.6 4.6q-.15.15-.325.213T12 14.95"},null,-1),Ine=[Sne];function $ne(t,e){return J(),re("svg",Ane,[...Ine])}const One={name:"material-symbols-expand-more-rounded",render:$ne},Pne={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Rne=N("path",{fill:"currentColor",d:"M4 20q-.825 0-1.412-.587T2 18V6q0-.825.588-1.412T4 4h5.175q.4 0 .763.15t.637.425L12 6h9q.425 0 .713.288T22 7t-.288.713T21 8h-9.825l-2-2H4v12l1.975-6.575q.2-.65.738-1.037T7.9 10h12.9q1.025 0 1.613.813t.312 1.762l-1.8 6q-.2.65-.737 1.038T19 20zm2.1-2H19l1.8-6H7.9zM4 11.45V6zM6.1 18l1.8-6z"},null,-1),Dne=[Rne];function Lne(t,e){return J(),re("svg",Pne,[...Dne])}const Mne={name:"material-symbols-folder-open-outline-rounded",render:Lne},Fne={class:"image-container"},Nne=["onClick"],zne=["src"],qne={class:"duration"},Bne=Dt({__name:"ChatImages",props:{data:{type:Object}},setup(t){const e=Va(),r=t;function n(a){return a.thumbnail?a.thumbnail:a.src.startsWith("blob:")?a.src:`${a.src}&w=200&h=200`}function i(a){e.lightbox={sources:o.value,index:a,visible:!0}}const o=It(()=>{var u,f,g,y;const a=r.data,l=((f=(u=a==null?void 0:a._content)==null?void 0:u.value)==null?void 0:f.items)??[],d=[];return(y=(g=a==null?void 0:a.data)==null?void 0:g.ids)==null||y.forEach((x,m)=>{const p=l[m];d.push({path:p.uri,src:vu(x),viewOriginImage:N0(x)||p.uri.endsWith(".gif"),name:ks(p.uri),duration:p.duration,size:p.size,thumbnail:p.thumbnail})}),d});return(a,l)=>(J(),re("div",Fne,[(J(!0),re($t,null,oi(o.value,(d,u)=>(J(),re("div",{class:"media-item",key:u,onClick:f=>i(u)},[N("img",{class:"image-thumb",src:n(d),onerror:"this.src='/broken-image.png'"},null,8,zne),N("span",qne,Me(oe(Eo)(d.name)?oe(vm)(d.duration):oe(iu)(d.size)),1)],8,Nne))),128))]))}}),Une={class:"chat-section"},Vne=["href","onClick"],jne={class:"left"},Hne={class:"info"},Wne=["src"],Gne=Dt({__name:"ChatFiles",props:{data:{type:Object}},setup(t){const e=Va(),r=Le([]),n=t;function i(l){return l.thumbnail?l.thumbnail:l.src.startsWith("blob:")?l.src:`${l.src}&w=50&h=50`}const o=It(()=>{var u,f,g,y,x,m;const l=((g=(f=(u=n.data)==null?void 0:u._content)==null?void 0:f.value)==null?void 0:g.items)??[],d=[];return(m=(x=(y=n.data)==null?void 0:y.data)==null?void 0:x.ids)==null||m.forEach((p,_)=>{const v=l[_];d.push({path:v.uri,src:vu(p),viewOriginImage:N0(p)||v.uri.endsWith(".gif"),name:ks(v.uri),duration:v.duration,size:v.size,thumbnail:v.thumbnail})}),d});function a(l){if(Vk(l.name)){r.value=o.value.filter(u=>Vk(u.name));const d=r.value.findIndex(u=>u.src===l.src);e.lightbox={sources:r.value,index:d,visible:!0}}else window.open(l.src,"_blank")}return(l,d)=>(J(),re("div",Une,[(J(!0),re($t,null,oi(o.value,(u,f)=>(J(),re("a",{key:f,class:"file-item",target:"_blank",href:u.src,onClick:wt(g=>a(u),["prevent"])},[N("span",jne,[N("span",null,Me(u.name),1),N("span",Hne,Me(oe(iu)(u.size))+Me(oe(Eo)(u.name)?" / "+oe(vm)(u.duration):""),1)]),oe(Ni)(u.name)||oe(Eo)(u.name)?(J(),re("img",{key:0,src:i(u),onerror:"this.src='/broken-image.png'"},null,8,Wne)):yt("",!0)],8,Vne))),128))]))}}),Qne=Tn(Gne,[["__scopeId","data-v-887cbdea"]]);function EI(t,e){return{id:Kd(),dir:e,fileName:"",file:t,status:"created",uploadedSize:0,error:""}}const zxe=t=>{let e="";const r=Le();return{input:r,upload(n){e=n,r.value.value="",r.value.click()},uploadChanged(n){const i=n.target.files;if(!i)return;const o=[];for(let a=0;a{const e=Le(!1);return{dropping:e,fileDragEnter(){e.value=!0},fileDragLeave(){e.value=!1},dropFiles(r,n,i=""){var l;e.value=!1;const o=(l=r.dataTransfer)==null?void 0:l.files;if(!o)return;const a=[];for(let d=0;d({getUploads(t,e){const r=[];for(let n=0;n{const t=[];let e=null;const{mutate:r}=Yr({document:wI,options:{update:(o,a)=>{o.evict({id:o.identify({__typename:"ChatItem",id:e==null?void 0:e.item.id})}),ps(o,a.data.createChatItem,xl),n()}},appApi:!0}),n=()=>{e=null,t.length&&i()},i=async()=>{if(!e&&(e=t.shift()||null,e)){const o=GG(e.uploads,5);for(const d of o)await Promise.all(d.map(async u=>{await gS(u,!1)}));const a=e.item._content,l=[];a.value.items.forEach((d,u)=>{const f=TI(d.uri);l.push({uri:`app://${f}/`+e.uploads[u].fileName,size:d.size,duration:d.duration,width:d.width,height:d.height})}),r({content:JSON.stringify({type:a.type,value:{items:l}})})}};return{async enqueue(o,a){t.push({item:o,uploads:a}),e==null&&await i()}}},Eu=t=>(ko("data-v-38e60902"),t=t(),Co(),t),Xne={class:"quick-content-main"},Jne={class:"top-app-bar"},Zne=Eu(()=>N("md-ripple",null,null,-1)),eie={class:"title"},tie={class:"actions"},rie=Eu(()=>N("md-ripple",null,null,-1)),nie={key:0,class:"date"},iie={class:"chat-title"},oie={class:"name"},aie={class:"time"},sie={key:0,class:"sending"},lie={class:"menu-items"},cie=["onClick","disabled"],die={slot:"headline"},uie={class:"chat-content"},fie={key:0},hie=["innerHTML"],pie={class:"chat-input"},mie={class:"textarea-wrapper"},vie=["placeholder","onKeydown"],gie={class:"leading-icons",slot:"leading-icon"},_ie=Eu(()=>N("md-ripple",null,null,-1)),yie=Eu(()=>N("md-ripple",null,null,-1)),bie=["disable"],xie=Eu(()=>N("md-ripple",null,null,-1)),wie=Dt({__name:"PChat",setup(t){const{getUploads:e}=Kne(),{resolveClient:r}=Zp(),n=Le(),i=Le(),o=Le(),a=Le([]),{enqueue:l}=Yne(),{app:d}=Cs(Va()),{externalFilesDir:u}=d.value,f=Le(""),{t:g}=zn();let y=!1;function x(se,Te){let Oe=!1;if(Te==0)Oe=!0;else{const Ce=Te>0?a.value[Te-1]:null;Ce!=null&&Og(Ce.createdAt)!==Og(se.createdAt)&&(Oe=!0)}return Oe}gm({handle:async(se,Te)=>{Te?Ls(g(Te),"error"):se&&(a.value=se.chatItems,y||(D(),y=!0))},document:xl,appApi:!0});function m(se){return{images:Bne,files:Qne}[se]}const p=Fs(),{chatText:_}=Cs(p),{mutate:v,loading:b,onDone:w}=Yr({document:wI,options:{update:(se,Te)=>{ps(se,Te.data.createChatItem,xl)}},appApi:!0});function E(se){const Te=se.target.files,Oe=[];for(const Ce of Te)Oe.push(Ce);C(Oe)}async function C(se){if(!se.length)return;const Te=e(u,se),Oe=[],Ce=[];for(const le of Te)if(le.file.type.startsWith("video")){const fe=await jk(le.file);Ce.push({uri:le.fileName,size:le.file.size,duration:fe.duration,thumbnail:fe.thumbnail,width:fe.width,height:fe.height})}else if(le.file.type.startsWith("image")){const fe=await Hk(le.file);Ce.push({uri:le.fileName,size:le.file.size,duration:0,width:fe.width,height:fe.height})}else Ce.push({uri:le.fileName,size:le.file.size,duration:0,width:0,height:0});const je={type:"files",value:{items:Ce}},Ge={id:"new_"+Kd(),isMe:!0,createdAt:new Date().toISOString(),content:JSON.stringify(je),_content:je,__typename:"ChatItem",data:{__typename:"MessageFiles",ids:Te.map(le=>URL.createObjectURL(le.file))}};Oe.push(Ge),l(Ge,Te);const te=r("a");ps(te.cache,Oe,xl),D()}function S(se){const Te=se.target.files,Oe=[];for(const Ce of Te)Oe.push(Ce);P(Oe)}async function P(se){if(!se.length)return;const Te=e(u,se),Oe=[],Ce=[];for(const le of Te)if(le.file.type.startsWith("video")){const fe=await jk(le.file);Ce.push({uri:le.fileName,size:le.file.size,duration:fe.duration,thumbnail:fe.thumbnail,width:fe.width,height:fe.height})}else{const fe=await Hk(le.file);Ce.push({uri:le.fileName,size:le.file.size,duration:0,width:fe.width,height:fe.height})}const je={type:"images",value:{items:Ce}},Ge={id:"new_"+Kd(),isMe:!0,createdAt:new Date().toISOString(),content:JSON.stringify(je),_content:je,__typename:"ChatItem",data:{__typename:"MessageImages",ids:Te.map(le=>URL.createObjectURL(le.file))}};Oe.push(Ge),l(Ge,Te);const te=r("a");ps(te.cache,Oe,xl),D()}function R(){_.value&&v({content:JSON.stringify({type:"text",value:{text:_.value}})})}function D(){const se=n.value;se&&setTimeout(()=>{se.scrollTop=se.scrollHeight},100)}w(()=>{_.value="",D()});const{mutate:z,loading:j}=Yr({document:see,options:{update:se=>{se.evict({id:se.identify({__typename:"ChatItem",id:f.value})})}},appApi:!0});function q(se){f.value=se,z({id:se})}function Z(){o.value.value="",o.value.click()}function we(){const se=hm([{name:"parent",op:"",value:d.value.externalFilesDir},{name:"link_name",op:"",value:"app"}]);E1(p,`/files?q=${rm(se)}`)}function $e(){i.value.value="",i.value.click()}const ye=Le(!1);function ke(){ye.value=!0}function Ie(){ye.value=!1}function Be(se){var Oe;const Te=(Oe=se.dataTransfer)==null?void 0:Oe.files;if(ye.value=!1,Te){const Ce=[];for(const je of Te)Ce.push(je);Ce.length&&C(Ce)}}function Re(se){var Oe;const Te=(Oe=se.clipboardData)==null?void 0:Oe.items;if(Te){const Ce=[],je=[];for(const Ge of Te){if(Ge.kind!=="file")continue;const te=Ge.getAsFile();te.type.startsWith("image")||te.type.startsWith("video")?Ce.push(te):je.push(te)}Ce.length&&(se.preventDefault(),P(Ce)),je.length&&(se.preventDefault(),C(je))}}return Ur(()=>{Tt.on("message_created",async se=>{const Te=r("a"),Oe=[];for(const Ce of se){let je=null;Ce.data&&(je=Ce.data,je.__typename=Ce.data.type.split(".").pop()),Oe.push({...Ce,data:je,__typename:"ChatItem"})}ps(Te.cache,Oe,xl),D()}),Tt.on("message_deleted",async se=>{const Oe=r("a").cache;for(const Ce of se)Oe.evict({id:Oe.identify({__typename:"ChatItem",id:Ce})})}),Tt.on("message_updated",async se=>{const Oe=r("a").cache;for(const Ce of se){const je=Ce.id,Ge=Oe.identify({__typename:"ChatItem",id:je}),te=f1,le=Oe.readFragment({id:Ge,fragment:te});le&&Oe.writeFragment({id:Ge,fragment:te,data:{...le,...Ce}})}})}),(se,Te)=>{var Ke,nt,k;const Oe=_m,Ce=Mne,je=One,Ge=c1,te=gI,le=Cne,fe=xne,De=Ao("tooltip");return J(),re("div",Xne,[N("div",Jne,[lt((J(),re("button",{class:"btn-icon",onClick:Te[0]||(Te[0]=wt(A=>oe(p).quick="",["prevent"]))},[Zne,Pe(Oe)])),[[De,se.$t("close")]]),N("div",eie,Me(((Ke=oe(d))==null?void 0:Ke.deviceName)??se.$t("my_phone"))+Me((nt=oe(d))!=null&&nt.battery?" ("+se.$t("battery_left",{percentage:(k=oe(d))==null?void 0:k.battery})+")":""),1),N("div",tie,[lt((J(),re("button",{class:"btn-icon",onClick:wt(we,["prevent"])},[rie,Pe(Ce)])),[[De,se.$t("files")]])])]),N("div",{class:"quick-content-body",ref_key:"scrollContainer",ref:n},[(J(!0),re($t,null,oi(a.value,(A,M)=>(J(),re("div",{key:A.id,class:"chat-item"},[x(A,M)?(J(),re("div",nie,Me(oe(Og)(A.createdAt)),1)):yt("",!0),Pe(Ge,null,{content:Dn(()=>[N("div",lie,[N("md-menu-item",{onClick:V=>q(A.id),disabled:oe(j)},[N("div",die,Me(se.$t("delete_message")),1)],8,cie)])]),default:Dn(()=>[N("div",iie,[N("span",oie,Me(se.$t(A.isMe?"me":"app_name")),1),lt((J(),re("time",aie,[ri(Me(oe(UZ)(A.createdAt)),1)])),[[De,oe(u1)(A.createdAt)]]),A.id.startsWith("new_")?(J(),re("span",sie,Me(se.$t("sending")),1)):yt("",!0),Pe(je,{class:"bi bi-more"})])]),_:2},1024),N("div",uie,[A._content.type==="text"?(J(),re("div",fie,[N("pre",{innerHTML:oe(JU)(A._content.value.text)},null,8,hie)])):(J(),kr(fd(m(A._content.type)),{key:1,data:A},null,8,["data"]))])]))),128))],512),N("div",pie,[N("div",mie,[lt(N("div",{class:"drag-mask"},Me(se.$t("release_to_send_files")),513),[[_n,ye.value]]),lt(N("md-outlined-text-field",{type:"textarea",rows:"2","onUpdate:modelValue":Te[1]||(Te[1]=A=>Qt(_)?_.value=A:null),autocomplete:"off",onPaste:Re,onDrop:wt(Be,["prevent"]),onDragenter:wt(ke,["prevent"]),onDragleave:wt(Ie,["prevent"]),class:"textarea",placeholder:se.$t("chat_input_hint"),onKeydown:[vl(wt(R,["exact","prevent"]),["enter"]),Te[2]||(Te[2]=vl(wt(A=>_.value+=` -`,["shift","exact","prevent"]),["enter"])),Te[3]||(Te[3]=vl(wt(A=>_.value+=` -`,["ctrl","exact","prevent"]),["enter"])),Te[4]||(Te[4]=vl(wt(A=>_.value+=` -`,["alt","exact","prevent"]),["enter"])),Te[5]||(Te[5]=vl(wt(A=>_.value+=` -`,["meta","exact","prevent"]),["enter"]))]},[N("div",gie,[N("button",{class:"btn-icon",onClick:Z},[_ie,Pe(te)]),N("button",{class:"btn-icon",onClick:$e},[yie,Pe(le)])]),N("button",{class:"btn-icon btn-send",onClick:R,disable:oe(b),slot:"trailing-icon"},[xie,Pe(fe)],8,bie)],40,vie),[[h_,oe(_)]])])]),N("input",{ref_key:"fileInput",ref:i,style:{display:"none"},type:"file",multiple:"",onChange:E},null,544),N("input",{ref_key:"imageInput",ref:o,style:{display:"none"},type:"file",accept:"image/*, video/*",multiple:"",onChange:S},null,544)])}}}),Tie=Tn(wie,[["__scopeId","data-v-38e60902"]]);const ot=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 Eie=(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)}},kie=(t,e,r)=>{e.constructor.createProperty(r,t)};function H(t){return(e,r)=>r!==void 0?kie(t,e,r):Eie(t,e)}function Pt(t){return H({...t,state:!0})}const ku=({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(l){t(l,o)}),a}{const o=r.constructor;e!==void 0&&Object.defineProperty(r,n,e(n)),t==null||t(o,n)}};function gt(t,e){return ku({descriptor:r=>({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})})}function Cie(t){return ku({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 kI(t){return ku({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 Rg;const Aie=((Rg=window.HTMLSlotElement)===null||Rg===void 0?void 0:Rg.prototype.assignedElements)!=null?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter(r=>r.nodeType===Node.ELEMENT_NODE);function Ar(t){const{slot:e,selector:r}=t??{};return ku({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),l=a!=null?Aie(a,t):[];return r?l.filter(d=>d.matches(r)):l},enumerable:!0,configurable:!0})})}function v1(t,e,r){let n,i=t;return typeof t=="object"?(i=t.slot,n=t):n={flatten:e},r?Ar({slot:i,flatten:e,selector:r}):ku({descriptor:o=>({get(){var a,l;const d="slot"+(i?`[name=${i}]`:":not([name])"),u=(a=this.renderRoot)===null||a===void 0?void 0:a.querySelector(d);return(l=u==null?void 0:u.assignedNodes(n))!==null&&l!==void 0?l:[]},enumerable:!0,configurable:!0})})}const Fh=window,g1=Fh.ShadowRoot&&(Fh.ShadyCSS===void 0||Fh.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,_1=Symbol(),C5=new WeakMap;let CI=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==_1)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(g1&&e===void 0){const n=r!==void 0&&r.length===1;n&&(e=C5.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&C5.set(r,e))}return e}toString(){return this.cssText}};const Sie=t=>new CI(typeof t=="string"?t:t+"",void 0,_1),He=(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 CI(r,t,_1)},Iie=(t,e)=>{g1?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{const n=document.createElement("style"),i=Fh.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)})},A5=g1?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const n of e.cssRules)r+=n.cssText;return Sie(r)})(t):t;var Dg;const up=window,S5=up.trustedTypes,$ie=S5?S5.emptyScript:"",I5=up.reactiveElementPolyfillSupport,_y={toAttribute(t,e){switch(e){case Boolean:t=t?$ie: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}},AI=(t,e)=>e!==t&&(e==e||t==t),Lg={attribute:!0,type:String,converter:_y,reflect:!1,hasChanged:AI},yy="finalized";let wl=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=Lg){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)||Lg}static finalize(){if(this.hasOwnProperty(yy))return!1;this[yy]=!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(A5(i))}else e!==void 0&&r.push(A5(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 Iie(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=Lg){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:_y).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),l=typeof a.converter=="function"?{fromAttribute:a.converter}:((n=a.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?a.converter:_y;this._$El=o,this[o]=l.fromAttribute(r,a.type),this._$El=null}}requestUpdate(e,r,n){let i=!0;e!==void 0&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||AI)(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){}};wl[yy]=!0,wl.elementProperties=new Map,wl.elementStyles=[],wl.shadowRootOptions={mode:"open"},I5==null||I5({ReactiveElement:wl}),((Dg=up.reactiveElementVersions)!==null&&Dg!==void 0?Dg:up.reactiveElementVersions=[]).push("1.6.3");var Mg;const fp=window,ac=fp.trustedTypes,$5=ac?ac.createPolicy("lit-html",{createHTML:t=>t}):void 0,by="$lit$",ha=`lit$${(Math.random()+"").slice(9)}$`,SI="?"+ha,Oie=`<${SI}>`,$s=document,ou=()=>$s.createComment(""),au=t=>t===null||typeof t!="object"&&typeof t!="function",II=Array.isArray,Pie=t=>II(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",Fg=`[ -\f\r]`,nd=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,O5=/-->/g,P5=/>/g,os=RegExp(`>|${Fg}(?:([^\\s"'>=/]+)(${Fg}*=${Fg}*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`,"g"),R5=/'/g,D5=/"/g,$I=/^(?:script|style|textarea|title)$/i,Rie=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),ve=Rie(1),ei=Symbol.for("lit-noChange"),me=Symbol.for("lit-nothing"),L5=new WeakMap,ms=$s.createTreeWalker($s,129,null,!1);function OI(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return $5!==void 0?$5.createHTML(e):e}const Die=(t,e)=>{const r=t.length-1,n=[];let i,o=e===2?"":"",a=nd;for(let l=0;l"?(a=i??nd,g=-1):f[1]===void 0?g=-2:(g=a.lastIndex-f[2].length,u=f[1],a=f[3]===void 0?os:f[3]==='"'?D5:R5):a===D5||a===R5?a=os:a===O5||a===P5?a=nd:(a=os,i=void 0);const x=a===os&&t[l+1].startsWith("/>")?" ":"";o+=a===nd?d+Oie:g>=0?(n.push(u),d.slice(0,g)+by+d.slice(g)+ha+x):d+ha+(g===-2?(n.push(void 0),l):x)}return[OI(t,o+(t[r]||"")+(e===2?"":"")),n]};class su{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let o=0,a=0;const l=e.length-1,d=this.parts,[u,f]=Die(e,r);if(this.el=su.createElement(u,n),ms.currentNode=this.el.content,r===2){const g=this.el.content,y=g.firstChild;y.remove(),g.append(...y.childNodes)}for(;(i=ms.nextNode())!==null&&d.length0){i.textContent=ac?ac.emptyScript:"";for(let x=0;x2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=me}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=sc(this,e,r,0),a=!au(e)||e!==this._$AH&&e!==ei,a&&(this._$AH=e);else{const l=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 l=(i=r==null?void 0:r.renderBefore)!==null&&i!==void 0?i:null;o._$litPart$=a=new Cu(e.insertBefore(ou(),l),l,void 0,r??{})}return a._$AI(t),a};var Ng,zg;let dt=class extends wl{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=y1(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 ei}};dt.finalized=!0,dt._$litElement$=!0,(Ng=globalThis.litElementHydrateSupport)===null||Ng===void 0||Ng.call(globalThis,{LitElement:dt});const F5=globalThis.litElementPolyfillSupport;F5==null||F5({LitElement:dt});((zg=globalThis.litElementVersions)!==null&&zg!==void 0?zg:globalThis.litElementVersions=[]).push("3.3.3");const Bie=!1;const ua={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},b1=t=>(...e)=>({_$litDirective$:t,values:e});let x1=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 Yt=b1(class extends x1{constructor(t){var e;if(super(t),t.type!==ua.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 ei}});class PI extends dt{constructor(){super(...arguments),this.value=""}render(){const e={"md3-badge--large":this.value};return ve`
+ `,appApi:!0});function o(){r({paths:e.files.map(a=>a.path)})}return i(()=>{e.onDone(e.files),Ss()}),(a,l)=>(Y(),te("md-dialog",null,[N("form",ote,Me(a.$t("confirm_to_delete_name",{name:ne(KK)(t.files.map(d=>d.name).join(", "),{length:200})})),1),N("div",ate,[N("md-outlined-button",ste,Me(a.$t("cancel")),1),N("md-filled-button",{form:"form",value:"delete",disabled:ne(n),onClick:o,autofocus:""},[ne(n)?(Y(),te("md-circular-progress",cte)):kt("",!0),ai(Me(a.$t("delete")),1)],8,lte)])]))}}),ute={Q:29,R:30,S:31,S_V2:32,TIRAMISU:33,UPSIDE_DOWN_CAKE:34};function fte(t){return t>=ute.R}const hte=(t,e)=>t===I1.MEDIA_TRASH?fte(e):!1,pte=()=>{const{mutate:t,onDone:e}=Nr({document:Oee,appApi:!0}),r=zn(new Map);return e(n=>{const{type:i,query:o}=n.data.trashMediaItems;r.delete(o),gt.emit("refetch_tags",i),gt.emit("media_items_actioned",{type:i,action:"trash",query:o})}),{trashLoading(n){return r.get(n)??!1},trash(n,i){r.set(i,!0),t({query:i,type:n})}}},mte=()=>{const{mutate:t,onDone:e}=Nr({document:Pee,appApi:!0}),r=zn(new Map);return e(n=>{const{type:i,query:o}=n.data.restoreMediaItems;r.delete(o),gt.emit("refetch_tags",i),gt.emit("media_items_actioned",{type:i,action:"restore",query:o})}),{restoreLoading(n){return r.get(n)??!1},restore(n,i){r.set(i,!0),t({query:i,type:n})}}},Mo=t=>(Io("data-v-1883dae1"),t=t(),$o(),t),vte={class:"layout"},gte={key:0,class:"toolbar"},_te={key:0,class:"source-name v-center"},yte=Mo(()=>N("md-ripple",null,null,-1)),bte=Mo(()=>N("md-ripple",null,null,-1)),xte=Mo(()=>N("md-ripple",null,null,-1)),wte=Mo(()=>N("md-ripple",null,null,-1)),Tte=Mo(()=>N("md-ripple",null,null,-1)),Ete=Mo(()=>N("md-ripple",null,null,-1)),kte=Mo(()=>N("md-ripple",null,null,-1)),Cte=Mo(()=>N("md-ripple",null,null,-1)),Ate={key:2,class:"loading"},Ste=Mo(()=>N("md-circular-progress",{indeterminate:""},null,-1)),Ite=[Ste],$te={key:3,class:"v-on-error"},Ote=["src"],Pte={style:{padding:"50px"}},Rte=["src"],Dte=["src"],Lte={key:1,class:"info"},Mte={class:"top-app-bar"},Fte={class:"actions"},Nte={class:"list-items"},zte={class:"item"},qte={class:"title"},Bte={class:"subtitle"},Vte={key:0},Ute={key:0,class:"item"},jte={class:"title"},Hte={class:"subtitle"},Wte={key:1,class:"item"},Gte={class:"title"},Qte={class:"subtitle"},Kte={key:2,class:"item"},Yte={class:"title"},Xte={class:"subtitle"},Jte={key:3,class:"item"},Zte={class:"title"},ere={class:"subtitle"},L5=1.5,tre=Dt({__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=e,i=()=>{const oe=b.value;oe&&(oe.viewOriginImage=!0),v.loading=!0},o=Ya(),{urlTokenKey:a,app:l}=Ms(o),d=Le(),{imgRef:u,imgState:f,setImgSize:g}=WJ(),y=Le(0),{lightboxInfoVisible:x}=Ms(Gs()),{downloadFile:m}=Vee(a),{deleteItem:p}=nte(),_=zn({scale:1,lastScale:1,rotateDeg:0,top:0,left:0,initX:0,initY:0,lastX:0,lastY:0,touches:[]}),v=zn({loadError:!1,loading:!1,dragging:!1,gesturing:!1,swipeToLeft:!1,swipeToRight:!1,wheeling:!1}),b=Le(),w=()=>v.loadError?"default":"move",E=Le(null);function C(){var Gt,kr;const oe=[vs.VIDEO,vs.AUDIO,vs.IMAGE],Ee=(Gt=b.value)==null?void 0:Gt.type,Ze=(kr=b.value)==null?void 0:kr.data;Ee&&oe.includes(Ee)?p(Ee,Ze):fp(dte,{files:[Ze],onDone:()=>{gt.emit("file_deleted",{item:Ze})}})}const{loading:S,load:P,refetch:R}=Oy({handle:(oe,Ee)=>{Ee||oe&&(E.value=oe.fileInfo,D())},document:pee,variables:()=>{var oe,Ee,Ze;return{id:((Ee=(oe=b.value)==null?void 0:oe.data)==null?void 0:Ee.id)??"",path:((Ze=b.value)==null?void 0:Ze.path)??""}},appApi:!0});function D(){if(b.value&&E.value&&qi(b.value.name)&&b.value.path===E.value.path)if(Zk(b.value.name))b.value.viewOriginImage=!0;else{const{width:oe,height:Ee}=E.value.data;oe===f.naturalWidth&&Ee===f.naturalHeight&&(b.value.viewOriginImage=!0)}}const z=new Map,{loading:j,load:q}=Oy({handle:(oe,Ee)=>{var Ze;oe&&z.set(((Ze=b.value)==null?void 0:Ze.type)??"",oe.tags)},document:gee,variables:()=>{var oe;return{type:((oe=b.value)==null?void 0:oe.type)??""}},appApi:!0}),J=At(()=>({cursor:w(),top:`calc(50% + ${_.top}px)`,left:`calc(50% + ${_.left}px)`,transition:v.dragging||v.gesturing?"none":"",transform:`translate(-50%, -50%) scale(${_.scale}) rotate(${_.rotateDeg}deg)`})),be=()=>{o.lightbox.visible=!1,o.lightbox.index=-1,y.value=0};function Oe(){var Gt,kr,tn,Ri,Vo;const oe=((kr=(Gt=E.value)==null?void 0:Gt.data)==null?void 0:kr.width)??0,Ee=((Ri=(tn=E.value)==null?void 0:tn.data)==null?void 0:Ri.height)??0;let Ze=` ${oe} x ${Ee}`;if(qi(((Vo=b.value)==null?void 0:Vo.name)??"")){const al=Math.round(oe*Ee/1e6);al>1&&(Ze+=` ${al} MP`)}return Ze}const ge=()=>{_.scale=1,_.lastScale=1,_.rotateDeg=0,_.top=0,_.left=0,v.loadError=!1,v.dragging=!1,v.gesturing=!1,v.loading=!0},ke=async(oe,Ee)=>{const Ze=y.value;ge();const Gt=o.lightbox.sources[oe];Gt.src||(Gt.src=Ql(o.urlTokenKey,Gt.path)),y.value=oe,b.value=o.lightbox.sources[y.value],setTimeout(()=>{var tn;const kr=((tn=b.value)==null?void 0:tn.type)??"";kr&&!z.has(kr)&&q(),P()},0),Ze!==oe&&(Ee&&(HJ(Ee)?Ee.forEach(kr=>{n(kr,Ze,oe)}):n(Ee,Ze,oe)),n("on-index-change",Ze,oe))},Se=()=>{const oe=y.value,Ee=r.loop?(oe+1)%o.lightbox.sources.length:oe+1;!r.loop&&Ee>o.lightbox.sources.length-1||ke(Ee,["on-next","on-next-click"])},Be=()=>{const oe=y.value;let Ee=oe-1;if(oe===0){if(!r.loop)return;Ee=o.lightbox.sources.length-1}ke(Ee,["on-prev","on-prev-click"])},Re=oe=>{Math.abs(1-oe)<.05?oe=1:Math.abs(f.maxScale-oe)<.05&&(oe=f.maxScale),_.lastScale=_.scale,_.scale=oe},se=()=>{const oe=_.scale*L5;oe{const oe=_.scale/L5;oe>.1&&Re(oe)},Pe=()=>{_.rotateDeg-=90},Ce=()=>{_.rotateDeg+=90},je=()=>{_.scale=1,_.top=0,_.left=0},Ge=oe=>oe===0,{onMouseDown:ee,onMouseMove:le,onMouseUp:ue}=GJ(_,v,Ge),{onTouchStart:De,onTouchMove:Ke,onTouchEnd:it}=QJ(f,_,v,Ge),k=()=>{_.scale!==f.maxScale?(_.lastScale=_.scale,_.scale=f.maxScale):_.scale=_.lastScale},A=At(()=>{var oe,Ee;return((Ee=(oe=b.value)==null?void 0:oe.path)==null?void 0:Ee.includes(".trashed-"))===!0}),M=At(()=>{var Ze;const oe=[vs.VIDEO,vs.AUDIO,vs.IMAGE],Ee=(Ze=b.value)==null?void 0:Ze.type;return Ee&&oe.includes(Ee)&&hte(I1.MEDIA_TRASH,l.value.osVersion)});function U(){var oe,Ee;p((oe=b.value)==null?void 0:oe.type,(Ee=b.value)==null?void 0:Ee.data)}const{trash:G,trashLoading:ae}=pte();function Ae(){var Ee,Ze,Gt;const oe=(Ee=b.value)==null?void 0:Ee.type;G(oe,`ids:${(Gt=(Ze=b.value)==null?void 0:Ze.data)==null?void 0:Gt.id}`)}const{restore:fe,restoreLoading:_e}=mte();function ie(){var Ee,Ze,Gt;const oe=(Ee=b.value)==null?void 0:Ee.type;fe(oe,`ids:${(Gt=(Ze=b.value)==null?void 0:Ze.data)==null?void 0:Gt.id}`)}const W=oe=>{v.loadError||v.gesturing||v.loading||v.dragging||v.wheeling||(v.wheeling=!0,setTimeout(()=>{v.wheeling=!1},80),oe.deltaY<0?se():we())};let B=!0;const xe=()=>{var oe;B=!0,(oe=d.value)==null||oe.blur()},Ie=()=>{var oe;B=!1,(oe=d.value)==null||oe.blur()},ze=()=>{var oe;(oe=d.value)==null||oe.blur()},Ye=oe=>{if(!o.lightbox.visible)return;const Ee=oe;if(Ee.key==="Escape"){if(document.querySelector("md-dialog[open]"))return;Ee==null||Ee.stopPropagation(),be()}else if(Ee.key==="ArrowLeft")Ee==null||Ee.stopPropagation(),Be();else if(Ee.key==="ArrowRight")Ee==null||Ee.stopPropagation(),Se();else if(Ee.key===" "){const Ze=d.value;Ze&&(Ze.paused&&!B?Ze.play():Ze.pause())}},dt=()=>{v.loading=!1,b.value&&qi(b.value.name)&&(g(),D())},ht=oe=>{v.loading=!1,v.loadError=!0,n("on-error",oe)},sr=()=>{g()};Rt(()=>o.lightbox.index,oe=>{oe<0||oe>=o.lightbox.sources.length||ke(oe)}),Rt(()=>v.dragging,(oe,Ee)=>{});function Un(){var Gt,kr;const oe=((Gt=b.value)==null?void 0:Gt.type)??"",Ee=z.get(oe)??[],Ze=((kr=b.value)==null?void 0:kr.data)??{};fp(Bee,{type:oe,tags:Ee,item:{key:Ze.id,title:Ze.title,size:Ze.size},selected:Ee.filter(tn=>{var Ri;return(Ri=E.value)==null?void 0:Ri.tags.some(Vo=>Vo.id===tn.id)})})}const Ji=oe=>{var Ee,Ze;oe.item.key===((Ze=(Ee=b.value)==null?void 0:Ee.data)==null?void 0:Ze.id)&&R()},jn=oe=>{var Ze,Gt;const Ee=`ids:${(Gt=(Ze=b.value)==null?void 0:Ze.data)==null?void 0:Gt.id}`;["delete","trash","restore"].includes(oe.action)&&oe.query===Ee&&(Va(o.lightbox.sources,kr=>{var tn;return`ids:${(tn=kr.data)==null?void 0:tn.id}`===oe.query}),o.lightbox.sources.length?Se():be())},Zi=oe=>{var Ee,Ze;oe.item.path===((Ze=(Ee=b.value)==null?void 0:Ee.data)==null?void 0:Ze.path)&&(Va(o.lightbox.sources,Gt=>Gt.path===oe.item.path),o.lightbox.sources.length?Se():be())};return Qr(()=>{Kk(window,"keydown",Ye),Kk(window,"resize",sr),gt.on("item_tags_updated",Ji),gt.on("media_items_actioned",jn),gt.on("file_deleted",Zi)}),$i(()=>{Yk(window,"keydown",Ye),Yk(window,"resize",sr),gt.off("item_tags_updated",Ji),gt.off("media_items_actioned",jn),gt.off("file_deleted",Zi)}),(oe,Ee)=>{var Xu,Ju,Zu,ef,tf,zc,rf,nf,of,af,sf,lf,es,cf,ts,df,uf,ff,qc,Bc,Vc,hf;const Ze=Du,Gt=SI,kr=RJ,tn=SJ,Ri=TJ,Vo=_J,al=hJ,jm=lJ,Hm=nJ,Ku=JX,Wm=GX,Yu=p1,Uo=RY,Fc=IY,Gm=EY,Nc=yY,Qm=pY,Km=cY,Br=Oo("tooltip");return Y(),or(p0,{to:"body"},[ne(o).lightbox.visible?(Y(),te("div",{key:0,onTouchmove:Ee[9]||(Ee[9]=(...Cr)=>ne(Xk)&&ne(Xk)(...Cr)),class:"lightbox",onWheel:W},[N("div",vte,[b.value?(Y(),te("header",gte,[b.value.name?(Y(),te("div",_te,[ot((Y(),te("button",{class:"btn-icon",onClick:be},[yte,$e(Ze)])),[[Br,oe.$t("close")]]),N("span",null,Me(b.value.name),1)])):kt("",!0),ne(qi)(b.value.name)?(Y(),te($t,{key:1},[b.value.viewOriginImage?kt("",!0):ot((Y(),te("button",{key:0,class:"btn-icon",onClick:i},[bte,$e(Gt)])),[[Br,oe.$t("view_origin_image")]]),ot((Y(),te("button",{class:"btn-icon",onClick:se},[xte,$e(kr)])),[[Br,oe.$t("zoom_in")]]),ot((Y(),te("button",{class:"btn-icon",onClick:we},[wte,$e(tn)])),[[Br,oe.$t("zoom_out")]]),ot((Y(),te("button",{class:"btn-icon",onClick:je},[Tte,$e(Ri)])),[[Br,oe.$t("resize")]]),ot((Y(),te("button",{class:"btn-icon",onClick:Pe},[Ete,$e(Vo)])),[[Br,oe.$t("rotate_left")]]),ot((Y(),te("button",{class:"btn-icon",onClick:Ce},[kte,$e(al)])),[[Br,oe.$t("rotate_right")]])],64)):kt("",!0),ot((Y(),te("button",{class:"btn-icon",onClick:Ee[0]||(Ee[0]=Cr=>x.value=!ne(x))},[Cte,$e(jm)])),[[Br,oe.$t("info")]])])):kt("",!0),N("section",{class:"content",onClick:yt(be,["self"])},[ne(o).lightbox.sources.length>1&&(t.loop||y.value>0)?(Y(),te("div",{key:0,class:"btn-prev",onClick:Be},[$e(Hm)])):kt("",!0),ne(o).lightbox.sources.length>1&&(t.loop||y.valuene(ee)&&ne(ee)(...Cr)),onMouseup:Ee[2]||(Ee[2]=(...Cr)=>ne(ue)&&ne(ue)(...Cr)),onMousemove:Ee[3]||(Ee[3]=(...Cr)=>ne(le)&&ne(le)(...Cr)),onTouchstart:Ee[4]||(Ee[4]=(...Cr)=>ne(De)&&ne(De)(...Cr)),onTouchmove:Ee[5]||(Ee[5]=(...Cr)=>ne(Ke)&&ne(Ke)(...Cr)),onTouchend:Ee[6]||(Ee[6]=(...Cr)=>ne(it)&&ne(it)(...Cr)),onLoad:dt,onError:ht,onDblclick:k,onDragstart:Ee[7]||(Ee[7]=Cr=>{Cr.preventDefault()})},null,44,Dte)],4)),[[bn,!v.loading&&!v.loadError]]):kt("",!0)]),ne(x)?(Y(),te("section",Lte,[N("div",Mte,[$e(Wm,{id:oe.$t("info"),raw:E.value},null,8,["id","raw"]),N("div",Fte,[M.value?(Y(),te($t,{key:0},[A.value?(Y(),te($t,{key:0},[ot((Y(),or(Uo,{onClick:yt(U,["stop"])},{icon:Ir(()=>[$e(Yu)]),_:1})),[[Br,oe.$t("delete")]]),ot((Y(),or(Uo,{class:"sm",onClick:yt(ie,["stop"]),loading:ne(_e)(`ids:${(tf=(ef=b.value)==null?void 0:ef.data)==null?void 0:tf.id}`)},{icon:Ir(()=>[$e(Fc)]),_:1},8,["loading"])),[[Br,oe.$t("restore")]])],64)):ot((Y(),or(Uo,{key:1,onClick:yt(Ae,["stop"]),loading:ne(ae)(`ids:${(rf=(zc=b.value)==null?void 0:zc.data)==null?void 0:rf.id}`)},{icon:Ir(()=>[$e(Gm)]),_:1},8,["loading"])),[[Br,oe.$t("move_to_trash")]])],64)):ot((Y(),or(Uo,{key:1,onClick:yt(C,["stop"])},{icon:Ir(()=>[$e(Yu)]),_:1})),[[Br,oe.$t("delete")]]),ot((Y(),or(Uo,{onClick:Ee[8]||(Ee[8]=yt(Cr=>{var pf,mf;return ne(m)(((pf=b.value)==null?void 0:pf.path)??"",ne(Ls)(((mf=b.value)==null?void 0:mf.path)??"").replace(" ","-"))},["stop"]))},{icon:Ir(()=>[$e(Nc)]),_:1})),[[Br,oe.$t("download")]])])]),N("section",Nte,[N("div",zte,[N("div",qte,Me(oe.$t("file_size")),1),N("div",Bte,[ai(Me(ne(vu)(((nf=b.value)==null?void 0:nf.size)??0))+" ",1),(af=(of=E.value)==null?void 0:of.data)!=null&&af.width&&((lf=(sf=E.value)==null?void 0:sf.data)!=null&&lf.height)?(Y(),te("span",Vte,Me(Oe()),1)):kt("",!0)])]),(es=E.value)!=null&&es.updatedAt?(Y(),te("div",Ute,[N("div",jte,Me(oe.$t("updated_at")),1),N("div",Hte,[ot((Y(),te("time",null,[ai(Me(ne(E1)(E.value.updatedAt)),1)])),[[Br,ne(k1)(E.value.updatedAt)]])])])):kt("",!0),b.value&&(ne(mu)((cf=b.value)==null?void 0:cf.name)||ne(So)((ts=b.value)==null?void 0:ts.name))?(Y(),te("div",Wte,[N("div",Gte,Me(oe.$t("duration")),1),N("div",Qte,Me(ne(Cm)(((uf=(df=E.value)==null?void 0:df.data)==null?void 0:uf.duration)??((ff=b.value)==null?void 0:ff.duration))),1)])):kt("",!0),(qc=b.value)!=null&&qc.type?(Y(),te("div",Kte,[N("div",Yte,[ai(Me(oe.$t("tags"))+" ",1),ot((Y(),or(Uo,{class:"sm",onClick:yt(Un,["prevent"])},{icon:Ir(()=>[$e(Qm)]),_:1})),[[Br,oe.$t("add_to_tags")]])]),N("div",Xte,[$e(Km,{tags:(Bc=E.value)==null?void 0:Bc.tags},null,8,["tags"])])])):kt("",!0),(Vc=b.value)!=null&&Vc.path?(Y(),te("div",Jte,[N("div",Zte,Me(oe.$t("path")),1),N("div",ere,Me(ne(DU)(ne(l).externalFilesDir,(hf=b.value)==null?void 0:hf.path)),1)])):kt("",!0)])])):kt("",!0)])],32)):kt("",!0)])}}}),rre=kn(tre,[["__scopeId","data-v-1883dae1"]]),nre={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ire=N("path",{fill:"currentColor",d:"M12 17q.425 0 .713-.288T13 16t-.288-.712T12 15t-.712.288T11 16t.288.713T12 17m0-4q.425 0 .713-.288T13 12V8q0-.425-.288-.712T12 7t-.712.288T11 8v4q0 .425.288.713T12 13m0 9q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12t-.788 3.9t-2.137 3.175t-3.175 2.138T12 22m0-2q3.35 0 5.675-2.325T20 12t-2.325-5.675T12 4T6.325 6.325T4 12t2.325 5.675T12 20m0-8"},null,-1),ore=[ire];function are(t,e){return Y(),te("svg",nre,[...ore])}const sre={name:"material-symbols-error-outline-rounded",render:are},lre={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},cre=N("path",{fill:"currentColor",d:"M7.5 8v8l4-4zM5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.587 1.413T19 21zm11-2h3V5h-3zm-2 0V5H5v14zm2 0h3z"},null,-1),dre=[cre];function ure(t,e){return Y(),te("svg",lre,[...dre])}const Sm={name:"material-symbols-right-panel-close-outline",render:ure};function fre(t,e=[],r=""){return t?"loading":r&&!e.includes(r)?"no_permission":"no_data"}const hre={type:"alert"},pre={slot:"headline"},mre={slot:"content",method:"dialog"},vre={slot:"actions"},gre=Dt({__name:"ConfirmModal",props:{title:{type:String},message:{type:String}},setup(t){function e(){Ss()}return(r,n)=>(Y(),te("md-dialog",hre,[N("div",pre,Me(t.title||r.$t("confirm")),1),N("section",mre,[N("pre",null,Me(t.message),1)]),N("div",vre,[N("md-filled-button",{form:"form",value:"ok",onClick:e},Me(r.$t("ok")),1)])]))}}),$1=t=>(Io("data-v-5637eeb4"),t=t(),$o(),t),_re={class:"quick-content-main"},yre={class:"top-app-bar"},bre=$1(()=>N("md-ripple",null,null,-1)),xre={class:"title"},wre={class:"actions"},Tre=$1(()=>N("md-ripple",null,null,-1)),Ere={key:0,class:"alert-warning show"},kre={class:"body"},Cre={class:"actions"},Are={key:1,class:"alert-warning show"},Sre={class:"body"},Ire={class:"actions"},$re={class:"quick-content-body"},Ore={key:0,class:"list-items"},Pre={class:"title"},Rre=["src"],Dre={class:"view-raw"},Lre={class:"name"},Mre={class:"time nowrap"},Fre={class:"subtitle"},Nre={class:"body"},zre=["onClick"],qre=$1(()=>N("md-ripple",null,null,-1)),Bre={key:1,class:"no-data"},Vre=Dt({__name:"PNotifications",setup(t){const{resolveClient:e}=cm(),r=Gs(),{t:n}=Bn(),{app:i,urlTokenKey:o}=Ms(Ya()),a=Le([]),l=window.location.protocol==="https:",{loading:d}=Am({handle:(p,_)=>{_?Hs(n(_),"error"):p&&(a.value=p.notifications.map(v=>({...v,icon:Ql(o.value,"pkgicon://"+v.appId)})))},document:Hg,appApi:!0}),u=Le(Notification.permission),{mutate:f}=Nr({document:Dee,appApi:!0}),g=p=>{f({ids:[p.id]})},y=()=>{window.open(`https://${window.location.hostname}:${i.value.httpsPort}`,"_blank")},x=()=>{if(Notification.permission==="denied"){HA(gre,{title:n("desktop_notification_permission_grant_title"),message:n("desktop_notification_permission_grant_message")});return}Notification.requestPermission().then(p=>{u.value=p})},m=()=>{const p=a.value.map(_=>_.id);f({ids:p})};return Qr(()=>{gt.on("notification_created",async p=>{const _=e("a");if(Es(_.cache,[{...p,__typename:"Notification"}],Hg,null,!0),p.icon=Ql(o.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()}}}),gt.on("notification_updated",async p=>{const v=e("a").cache;if(v.evict({id:v.identify({__typename:"Notification",id:p.id})}),Es(v,[{...p,__typename:"Notification"}],Hg,null,!0),p.icon=Ql(o.value,"pkgicon://"+p.appId),"Notification"in window&&Notification.permission==="granted"){const b=new Notification(p.title,{body:p.body,icon:p.icon});b.onclick=()=>{window.focus(),b.close()}}}),gt.on("notification_deleted",async p=>{const v=e("a").cache;v.evict({id:v.identify({__typename:"Notification",id:p.id})})})}),(p,_)=>{const v=Sm,b=p1,w=sre,E=T1,C=Du,S=Oo("tooltip");return Y(),te("div",_re,[N("div",yre,[ot((Y(),te("button",{class:"btn-icon",onClick:_[0]||(_[0]=yt(P=>ne(r).quick="",["prevent"]))},[bre,$e(v)])),[[S,p.$t("close")]]),N("div",xre,Me(p.$t("header_actions.notifications"))+" ("+Me(a.value.length)+")",1),N("div",wre,[a.value.length?ot((Y(),te("button",{key:0,class:"btn-icon",onClick:yt(m,["prevent"])},[Tre,$e(b)])),[[S,p.$t("clear_list")]]):kt("",!0)])]),!l&&u.value!=="granted"?(Y(),te("div",Ere,[$e(w),N("div",kre,Me(p.$t("desktop_notification_need_https")),1),N("div",Cre,[N("md-filled-button",{class:"btn-sm",onClick:yt(y,["stop"])},Me(p.$t("use_https_link")),1)])])):u.value!=="granted"?(Y(),te("div",Are,[$e(w),N("div",Sre,Me(p.$t("desktop_notification_permission_not_granted")),1),N("div",Ire,[N("md-filled-button",{class:"btn-sm",onClick:yt(x,["stop"])},Me(p.$t("grant_permission")),1)])])):kt("",!0),N("div",$re,[a.value.length?(Y(),te("section",Ore,[(Y(!0),te($t,null,ci(a.value,P=>(Y(),te("div",{class:"item",key:P.id},[N("div",Pre,[$e(E,null,{content:Ir(()=>[N("pre",Dre,Me(P),1)]),default:Ir(()=>[N("img",{width:"20",height:"20",src:P.icon},null,8,Rre)]),_:2},1024),N("span",Lre,Me(P.appName),1),ot((Y(),te("time",Mre,[ai(Me(ne(E1)(P.time)),1)])),[[S,ne(k1)(P.time)]])]),N("div",Fre,Me(P.title),1),N("div",Nre,Me(P.body),1),N("button",{class:"btn-icon icon",onClick:yt(R=>g(P),["stop"])},[qre,$e(C)],8,zre)]))),128))])):(Y(),te("span",Bre,Me(p.$t(ne(fre)(ne(d),ne(i).permissions,"NOTIFICATION_LISTENER"))),1))])])}}}),Ure=kn(Vre,[["__scopeId","data-v-5637eeb4"]]),jre={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Hre=N("path",{fill:"currentColor",d:"M16.5 17V7q0-.425.288-.712T17.5 6t.713.288T18.5 7v10q0 .425-.288.713T17.5 18t-.712-.288T16.5 17m-11-.875v-8.25q0-.45.3-.725t.7-.275q.125 0 .275.025t.275.125l6.2 4.15q.225.15.338.363T13.7 12t-.112.463t-.338.362l-6.2 4.15q-.125.1-.275.125t-.275.025q-.4 0-.7-.275t-.3-.725m2-1.875L10.9 12L7.5 9.75z"},null,-1),Wre=[Hre];function Gre(t,e){return Y(),te("svg",jre,[...Wre])}const Qre={name:"material-symbols-skip-next-outline-rounded",render:Gre},Kre={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Yre=N("path",{fill:"currentColor",d:"M11.5 10.5h-.75q-.325 0-.537-.213T10 9.75t.213-.537T10.75 9H12q.425 0 .713.288T13 10v4.25q0 .325-.213.538T12.25 15t-.537-.213t-.213-.537zM6.85 19l.85.85q.3.3.288.7t-.288.7q-.3.3-.712.313t-.713-.288L3.7 18.7q-.15-.15-.213-.325T3.426 18t.063-.375t.212-.325l2.575-2.575q.3-.3.713-.287t.712.312q.275.3.288.7t-.288.7l-.85.85H17v-3q0-.425.288-.712T18 13t.713.288T19 14v3q0 .825-.587 1.413T17 19zm10.3-12H7v3q0 .425-.288.713T6 11t-.712-.288T5 10V7q0-.825.588-1.412T7 5h10.15l-.85-.85q-.3-.3-.288-.7t.288-.7q.3-.3.712-.312t.713.287L20.3 5.3q.15.15.213.325t.062.375t-.062.375t-.213.325l-2.575 2.575q-.3.3-.712.288T16.3 9.25q-.275-.3-.288-.7t.288-.7z"},null,-1),Xre=[Yre];function Jre(t,e){return Y(),te("svg",Kre,[...Xre])}const Zre={name:"material-symbols-repeat-one-rounded",render:Jre},ene={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},tne=N("path",{fill:"currentColor",d:"m6.85 19l.85.85q.3.3.288.7t-.288.7q-.3.3-.712.313t-.713-.288L3.7 18.7q-.15-.15-.213-.325T3.426 18t.063-.375t.212-.325l2.575-2.575q.3-.3.713-.287t.712.312q.275.3.288.7t-.288.7l-.85.85H17v-3q0-.425.288-.712T18 13t.713.288T19 14v3q0 .825-.587 1.413T17 19zm10.3-12H7v3q0 .425-.288.713T6 11t-.712-.288T5 10V7q0-.825.588-1.412T7 5h10.15l-.85-.85q-.3-.3-.288-.7t.288-.7q.3-.3.712-.312t.713.287L20.3 5.3q.15.15.213.325t.062.375t-.062.375t-.213.325l-2.575 2.575q-.3.3-.712.288T16.3 9.25q-.275-.3-.288-.7t.288-.7z"},null,-1),rne=[tne];function nne(t,e){return Y(),te("svg",ene,[...rne])}const ine={name:"material-symbols-repeat-rounded",render:nne},one={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ane=N("path",{fill:"currentColor",d:"m16.6 18l-3.175-3.175L14.85 13.4L18 16.55V15q0-.425.288-.712T19 14t.713.288T20 15v4q0 .425-.288.713T19 20h-4q-.425 0-.712-.288T14 19t.288-.712T15 18zM18 7.4L5.7 19.7q-.275.275-.7.275t-.7-.275t-.275-.7t.275-.7L16.6 6H15q-.425 0-.712-.287T14 5t.288-.712T15 4h4q.425 0 .713.288T20 5v4q0 .425-.288.713T19 10t-.712-.288T18 9zm-8.825 3.175L4.275 5.7Q4 5.425 4 5t.275-.7t.688-.275t.712.275l4.9 4.875z"},null,-1),sne=[ane];function lne(t,e){return Y(),te("svg",one,[...sne])}const cne={name:"material-symbols-shuffle-outline-rounded",render:lne},dne={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},une=N("path",{fill:"currentColor",d:"M5.5 17V7q0-.425.288-.712T6.5 6t.713.288T7.5 7v10q0 .425-.288.713T6.5 18t-.712-.288T5.5 17m11.45-.025l-6.2-4.15q-.225-.15-.337-.362T10.3 12t.113-.462t.337-.363l6.2-4.15q.125-.1.275-.125t.275-.025q.4 0 .7.275t.3.725v8.25q0 .45-.3.725t-.7.275q-.125 0-.275-.025t-.275-.125m-.45-2.725v-4.5L13.1 12z"},null,-1),fne=[une];function hne(t,e){return Y(),te("svg",dne,[...fne])}const pne={name:"material-symbols-skip-previous-outline-rounded",render:hne};function M5(t){t.detail>1&&t.preventDefault()}const Ac=t=>(Io("data-v-40a71df6"),t=t(),$o(),t),mne={class:"quick-content-main"},vne={class:"top-app-bar"},gne=Ac(()=>N("md-ripple",null,null,-1)),_ne={class:"title"},yne={class:"quick-content-body"},bne=["src"],xne={key:0,class:"buttons"},wne=Ac(()=>N("md-ripple",null,null,-1)),Tne=Ac(()=>N("md-ripple",null,null,-1)),Ene=Ac(()=>N("md-ripple",null,null,-1)),kne={key:0,indeterminate:"",class:"spinner-sm"},Cne=Ac(()=>N("md-ripple",null,null,-1)),Ane={class:"list-items"},Sne=["onClick"],Ine={class:"title"},$ne={class:"subtitle"},One=["onClick"],Pne=Ac(()=>N("md-ripple",null,null,-1)),Rne=Dt({__name:"AudioPlayer",setup(t){const{app:e,urlTokenKey:r,audioPlaying:n}=Ms(Ya()),i=Gs(),o=At(()=>{var Re;return((Re=e.value)==null?void 0:Re.audios)??[]}),a=Le(),l=Le("");async function d(){const{audioCurrent:Re}=e.value;l.value=Ql(r.value,Re),a.value=o.value.find(se=>se.path==Re)}d(),Rt(()=>e.value.audioCurrent,d);const{mutate:u,loading:f,onDone:g,onError:y}=Nr({document:Aee,appApi:!0}),{mutate:x,loading:m,onDone:p,onError:_}=Nr({document:$ee,appApi:!0});p(()=>{e.value={...e.value,audioCurrent:"",audios:[]}});const{mutate:v,loading:b,onDone:w,onError:E}=Nr({document:See,appApi:!0}),{mutate:C,loading:S,onDone:P,onError:R}=Nr({document:Iee,appApi:!0}),D=Le();async function z(){var se;if(o.value.length===0)return;const Re=e.value.audioMode;Re==="REPEAT"?ge():Re==="REPEAT_ONE"?(se=D.value)==null||se.play():j()}function j(){const Re=jK(e.value.audios);u({path:Re.path}),e.value={...e.value,audioCurrent:Re.path}}function q(){o.value.length!==0&&(e.value.audioMode==="SHUFFLE"?j():J())}function J(){const Re=o.value.findIndex(we=>{var Pe;return we.path===((Pe=a.value)==null?void 0:Pe.path)});let se;Re<=0?se=o.value[o.value.length-1]:se=o.value[Re-1],u({path:se.path}),e.value={...e.value,audioCurrent:se.path}}function be(){o.value.length!==0&&(e.value.audioMode==="SHUFFLE"?j():ge())}function Oe(){var Re;(Re=D.value)==null||Re.play()}function ge(){const Re=o.value.findIndex(we=>{var Pe;return we.path===((Pe=a.value)==null?void 0:Pe.path)});let se;Re+1>=o.value.length?se=o.value[0]:se=o.value[Re+1],u({path:se.path}),e.value={...e.value,audioCurrent:se.path}}function ke(){let Re=e.value.audioMode;Re==="REPEAT"?Re="REPEAT_ONE":Re==="REPEAT_ONE"?Re="SHUFFLE":Re="REPEAT",v({mode:Re}),e.value={...e.value,audioMode:Re}}function Se(Re){u({path:Re.path}),e.value={...e.value,audioCurrent:Re.path}}g(()=>{Oe()});function Be(Re){C({path:Re.path});const se=[...e.value.audios];Va(se,we=>we.path===Re.path),e.value={...e.value,audios:se}}return Qr(()=>{var Re,se;gt.on("do_play_audio",()=>{setTimeout(Oe,500)}),gt.on("pause_audio",()=>{var we;(we=D.value)==null||we.pause()}),(Re=D.value)==null||Re.addEventListener("pause",function(){n.value=!1}),(se=D.value)==null||se.addEventListener("play",function(){n.value=!0})}),(Re,se)=>{var Ke,it,k;const we=Sm,Pe=pne,Ce=cne,je=ine,Ge=Zre,ee=Qre,le=p1,ue=Du,De=Oo("tooltip");return Y(),te("div",mne,[N("div",vne,[ot((Y(),te("button",{class:"btn-icon",onClick:se[0]||(se[0]=yt(A=>ne(i).quick="",["prevent"]))},[gne,$e(we)])),[[De,Re.$t("close")]]),N("div",_ne,Me(((Ke=a.value)==null?void 0:Ke.title)??Re.$t("audio_player")),1)]),N("div",yne,[N("audio",{ref_key:"audioRef",ref:D,class:"audio",controls:"",src:l.value,onEnded:z},null,40,bne),o.value.length?(Y(),te("div",xne,[N("button",{class:"btn-icon",onClick:yt(q,["stop"])},[wne,$e(Pe)]),N("button",{class:"btn-icon mode",onClick:yt(ke,["stop"])},[Tne,((it=ne(e))==null?void 0:it.audioMode)==="SHUFFLE"?(Y(),or(Ce,{key:0})):((k=ne(e))==null?void 0:k.audioMode)==="REPEAT"?(Y(),or(je,{key:1})):(Y(),or(Ge,{key:2}))]),N("button",{class:"btn-icon",onClick:yt(be,["stop"])},[Ene,$e(ee)]),ne(m)?(Y(),te("md-circular-progress",kne)):ot((Y(),te("button",{key:1,class:"btn-icon",onClick:se[1]||(se[1]=yt((...A)=>ne(x)&&ne(x)(...A),["prevent"]))},[Cne,$e(le)])),[[De,Re.$t("clear_list")]])])):kt("",!0),N("section",Ane,[(Y(!0),te($t,null,ci(o.value,A=>{var M;return Y(),te("div",{class:Dn(["item",{selected:A.path===((M=a.value)==null?void 0:M.path)}]),key:A.path,onClick:yt(U=>Se(A),["stop"]),onMousedown:se[2]||(se[2]=(...U)=>ne(M5)&&ne(M5)(...U))},[N("div",Ine,Me(A.title),1),N("div",$ne,Me(A.artist)+" "+Me(ne(Cm)(A.duration)),1),N("button",{class:"btn-icon icon",onClick:yt(U=>Be(A),["stop"])},[Pne,$e(ue)],8,One)],42,Sne)}),128))])])])}}}),Dne=kn(Rne,[["__scopeId","data-v-40a71df6"]]),Lne={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Mne=N("path",{fill:"currentColor",d:"m19.8 12.925l-15.4 6.5q-.5.2-.95-.088T3 18.5v-13q0-.55.45-.837t.95-.088l15.4 6.5q.625.275.625.925t-.625.925M5 17l11.85-5L5 7v3.5l6 1.5l-6 1.5zm0 0V7z"},null,-1),Fne=[Mne];function Nne(t,e){return Y(),te("svg",Lne,[...Fne])}const zne={name:"material-symbols-send-outline-rounded",render:Nne},qne={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Bne=N("path",{fill:"currentColor",d:"M4 20q-.825 0-1.412-.587T2 18V6q0-.825.588-1.412T4 4h5.175q.4 0 .763.15t.637.425L12 6h8q.825 0 1.413.588T22 8v10q0 .825-.587 1.413T20 20zm0-2h16V8h-8.825l-2-2H4zm0 0V6z"},null,-1),Vne=[Bne];function Une(t,e){return Y(),te("svg",qne,[...Vne])}const jne={name:"material-symbols-folder-outline-rounded",render:Une},Hne={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Wne=N("path",{fill:"currentColor",d:"M12 14.95q-.2 0-.375-.062t-.325-.213l-4.6-4.6q-.275-.275-.275-.7t.275-.7t.7-.275t.7.275l3.9 3.9l3.9-3.9q.275-.275.7-.275t.7.275t.275.7t-.275.7l-4.6 4.6q-.15.15-.325.213T12 14.95"},null,-1),Gne=[Wne];function Qne(t,e){return Y(),te("svg",Hne,[...Gne])}const Kne={name:"material-symbols-expand-more-rounded",render:Qne},Yne={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Xne=N("path",{fill:"currentColor",d:"M4 20q-.825 0-1.412-.587T2 18V6q0-.825.588-1.412T4 4h5.175q.4 0 .763.15t.637.425L12 6h9q.425 0 .713.288T22 7t-.288.713T21 8h-9.825l-2-2H4v12l1.975-6.575q.2-.65.738-1.037T7.9 10h12.9q1.025 0 1.613.813t.312 1.762l-1.8 6q-.2.65-.737 1.038T19 20zm2.1-2H19l1.8-6H7.9zM4 11.45V6zM6.1 18l1.8-6z"},null,-1),Jne=[Xne];function Zne(t,e){return Y(),te("svg",Yne,[...Jne])}const eie={name:"material-symbols-folder-open-outline-rounded",render:Zne},tie={class:"image-container"},rie=["onClick"],nie=["src"],iie={class:"duration"},oie=Dt({__name:"ChatImages",props:{data:{type:Object}},setup(t){const e=Ya(),r=t;function n(a){return a.thumbnail?a.thumbnail:a.src.startsWith("blob:")?a.src:`${a.src}&w=200&h=200`}function i(a){e.lightbox={sources:o.value,index:a,visible:!0}}const o=At(()=>{var u,f,g,y;const a=r.data,l=((f=(u=a==null?void 0:a._content)==null?void 0:u.value)==null?void 0:f.items)??[],d=[];return(y=(g=a==null?void 0:a.data)==null?void 0:g.ids)==null||y.forEach((x,m)=>{const p=l[m];d.push({path:p.uri,src:Su(x),viewOriginImage:J0(x)||p.uri.endsWith(".gif"),name:Ls(p.uri),duration:p.duration,size:p.size,thumbnail:p.thumbnail})}),d});return(a,l)=>(Y(),te("div",tie,[(Y(!0),te($t,null,ci(o.value,(d,u)=>(Y(),te("div",{class:"media-item",key:u,onClick:f=>i(u)},[N("img",{class:"image-thumb",src:n(d),onerror:"this.src='/broken-image.png'"},null,8,nie),N("span",iie,Me(ne(So)(d.name)?ne(Cm)(d.duration):ne(vu)(d.size)),1)],8,rie))),128))]))}}),aie={class:"chat-section"},sie=["href","onClick"],lie={class:"left"},cie={class:"info"},die=["src"],uie=Dt({__name:"ChatFiles",props:{data:{type:Object}},setup(t){const e=Ya(),r=Le([]),n=t;function i(l){return l.thumbnail?l.thumbnail:l.src.startsWith("blob:")?l.src:`${l.src}&w=50&h=50`}const o=At(()=>{var u,f,g,y,x,m;const l=((g=(f=(u=n.data)==null?void 0:u._content)==null?void 0:f.value)==null?void 0:g.items)??[],d=[];return(m=(x=(y=n.data)==null?void 0:y.data)==null?void 0:x.ids)==null||m.forEach((p,_)=>{const v=l[_];d.push({path:v.uri,src:Su(p),viewOriginImage:J0(p)||v.uri.endsWith(".gif"),name:Ls(v.uri),duration:v.duration,size:v.size,thumbnail:v.thumbnail})}),d});function a(l){if(e5(l.name)){r.value=o.value.filter(u=>e5(u.name));const d=r.value.findIndex(u=>u.src===l.src);e.lightbox={sources:r.value,index:d,visible:!0}}else window.open(l.src,"_blank")}return(l,d)=>(Y(),te("div",aie,[(Y(!0),te($t,null,ci(o.value,(u,f)=>(Y(),te("a",{key:f,class:"file-item",target:"_blank",href:u.src,onClick:yt(g=>a(u),["prevent"])},[N("span",lie,[N("span",null,Me(u.name),1),N("span",cie,Me(ne(vu)(u.size))+Me(ne(So)(u.name)?" / "+ne(Cm)(u.duration):""),1)]),ne(qi)(u.name)||ne(So)(u.name)?(Y(),te("img",{key:0,src:i(u),onerror:"this.src='/broken-image.png'"},null,8,die)):kt("",!0)],8,sie))),128))]))}}),fie=kn(uie,[["__scopeId","data-v-887cbdea"]]);function LI(t,e){return{id:su(),dir:e,fileName:"",file:t,status:"created",uploadedSize:0,error:""}}const t2e=t=>{let e="";const r=Le();return{input:r,upload(n){e=n,r.value.value="",r.value.click()},uploadChanged(n){const i=n.target.files;if(!i)return;const o=[];for(let a=0;a{const e=Le(!1);return{dropping:e,fileDragEnter(){e.value=!0},fileDragLeave(){e.value=!1},dropFiles(r,n,i=""){var l;e.value=!1;const o=(l=r.dataTransfer)==null?void 0:l.files;if(!o)return;const a=[];for(let d=0;d({getUploads(t,e){const r=[];for(let n=0;n{const t=[];let e=null;const{mutate:r}=Nr({document:RI,options:{update:(o,a)=>{o.evict({id:o.identify({__typename:"ChatItem",id:e==null?void 0:e.item.id})}),Es(o,a.data.createChatItem,Il),n()}},appApi:!0}),n=()=>{e=null,t.length&&i()},i=async()=>{if(!e&&(e=t.shift()||null,e)){const o=QG(e.uploads,5);for(const d of o)await Promise.all(d.map(async u=>{await SS(u,!1)}));const a=e.item._content,l=[];a.value.items.forEach((d,u)=>{const f=DI(d.uri);l.push({uri:`app://${f}/`+e.uploads[u].fileName,size:d.size,duration:d.duration,width:d.width,height:d.height})}),r({content:JSON.stringify({type:a.type,value:{items:l}})})}};return{async enqueue(o,a){t.push({item:o,uploads:a}),e==null&&await i()}}},Mu=t=>(Io("data-v-38e60902"),t=t(),$o(),t),mie={class:"quick-content-main"},vie={class:"top-app-bar"},gie=Mu(()=>N("md-ripple",null,null,-1)),_ie={class:"title"},yie={class:"actions"},bie=Mu(()=>N("md-ripple",null,null,-1)),xie={key:0,class:"date"},wie={class:"chat-title"},Tie={class:"name"},Eie={class:"time"},kie={key:0,class:"sending"},Cie={class:"menu-items"},Aie=["onClick","disabled"],Sie={slot:"headline"},Iie={class:"chat-content"},$ie={key:0},Oie=["innerHTML"],Pie={class:"chat-input"},Rie={class:"textarea-wrapper"},Die=["placeholder","onKeydown"],Lie={class:"leading-icons",slot:"leading-icon"},Mie=Mu(()=>N("md-ripple",null,null,-1)),Fie=Mu(()=>N("md-ripple",null,null,-1)),Nie=["disable"],zie=Mu(()=>N("md-ripple",null,null,-1)),qie=Dt({__name:"PChat",setup(t){const{getUploads:e}=hie(),{resolveClient:r}=cm(),n=Le(),i=Le(),o=Le(),a=Le([]),{enqueue:l}=pie(),{app:d}=Ms(Ya()),{externalFilesDir:u}=d.value,f=Le(""),{t:g}=Bn();let y=!1;function x(se,we){let Pe=!1;if(we==0)Pe=!0;else{const Ce=we>0?a.value[we-1]:null;Ce!=null&&jg(Ce.createdAt)!==jg(se.createdAt)&&(Pe=!0)}return Pe}Am({handle:async(se,we)=>{we?Hs(g(we),"error"):se&&(a.value=se.chatItems,y||(D(),y=!0))},document:Il,appApi:!0});function m(se){return{images:oie,files:fie}[se]}const p=Gs(),{chatText:_}=Ms(p),{mutate:v,loading:b,onDone:w}=Nr({document:RI,options:{update:(se,we)=>{Es(se,we.data.createChatItem,Il)}},appApi:!0});function E(se){const we=se.target.files,Pe=[];for(const Ce of we)Pe.push(Ce);C(Pe)}async function C(se){if(!se.length)return;const we=e(u,se),Pe=[],Ce=[];for(const le of we)if(le.file.type.startsWith("video")){const ue=await t5(le.file);Ce.push({uri:le.fileName,size:le.file.size,duration:ue.duration,thumbnail:ue.thumbnail,width:ue.width,height:ue.height})}else if(le.file.type.startsWith("image")){const ue=await r5(le.file);Ce.push({uri:le.fileName,size:le.file.size,duration:0,width:ue.width,height:ue.height})}else Ce.push({uri:le.fileName,size:le.file.size,duration:0,width:0,height:0});const je={type:"files",value:{items:Ce}},Ge={id:"new_"+su(),isMe:!0,createdAt:new Date().toISOString(),content:JSON.stringify(je),_content:je,__typename:"ChatItem",data:{__typename:"MessageFiles",ids:we.map(le=>URL.createObjectURL(le.file))}};Pe.push(Ge),l(Ge,we);const ee=r("a");Es(ee.cache,Pe,Il),D()}function S(se){const we=se.target.files,Pe=[];for(const Ce of we)Pe.push(Ce);P(Pe)}async function P(se){if(!se.length)return;const we=e(u,se),Pe=[],Ce=[];for(const le of we)if(le.file.type.startsWith("video")){const ue=await t5(le.file);Ce.push({uri:le.fileName,size:le.file.size,duration:ue.duration,thumbnail:ue.thumbnail,width:ue.width,height:ue.height})}else{const ue=await r5(le.file);Ce.push({uri:le.fileName,size:le.file.size,duration:0,width:ue.width,height:ue.height})}const je={type:"images",value:{items:Ce}},Ge={id:"new_"+su(),isMe:!0,createdAt:new Date().toISOString(),content:JSON.stringify(je),_content:je,__typename:"ChatItem",data:{__typename:"MessageImages",ids:we.map(le=>URL.createObjectURL(le.file))}};Pe.push(Ge),l(Ge,we);const ee=r("a");Es(ee.cache,Pe,Il),D()}function R(){_.value&&v({content:JSON.stringify({type:"text",value:{text:_.value}})})}function D(){const se=n.value;se&&setTimeout(()=>{se.scrollTop=se.scrollHeight},100)}w(()=>{_.value="",D()});const{mutate:z,loading:j}=Nr({document:wee,options:{update:se=>{se.evict({id:se.identify({__typename:"ChatItem",id:f.value})})}},appApi:!0});function q(se){f.value=se,z({id:se})}function J(){o.value.value="",o.value.click()}function be(){const se=Tm([{name:"parent",op:"",value:d.value.externalFilesDir},{name:"link_name",op:"",value:"app"}]);z1(p,`/files?q=${fm(se)}`)}function Oe(){i.value.value="",i.value.click()}const ge=Le(!1);function ke(){ge.value=!0}function Se(){ge.value=!1}function Be(se){var Pe;const we=(Pe=se.dataTransfer)==null?void 0:Pe.files;if(ge.value=!1,we){const Ce=[];for(const je of we)Ce.push(je);Ce.length&&C(Ce)}}function Re(se){var Pe;const we=(Pe=se.clipboardData)==null?void 0:Pe.items;if(we){const Ce=[],je=[];for(const Ge of we){if(Ge.kind!=="file")continue;const ee=Ge.getAsFile();ee.type.startsWith("image")||ee.type.startsWith("video")?Ce.push(ee):je.push(ee)}Ce.length&&(se.preventDefault(),P(Ce)),je.length&&(se.preventDefault(),C(je))}}return Qr(()=>{gt.on("message_created",async se=>{const we=r("a"),Pe=[];for(const Ce of se){let je=null;Ce.data&&(je=Ce.data,je.__typename=Ce.data.type.split(".").pop()),Pe.push({...Ce,data:je,__typename:"ChatItem"})}Es(we.cache,Pe,Il),D()}),gt.on("message_deleted",async se=>{const Pe=r("a").cache;for(const Ce of se)Pe.evict({id:Pe.identify({__typename:"ChatItem",id:Ce})})}),gt.on("message_updated",async se=>{const Pe=r("a").cache;for(const Ce of se){const je=Ce.id,Ge=Pe.identify({__typename:"ChatItem",id:je}),ee=C1,le=Pe.readFragment({id:Ge,fragment:ee});le&&Pe.writeFragment({id:Ge,fragment:ee,data:{...le,...Ce}})}})}),(se,we)=>{var Ke,it,k;const Pe=Sm,Ce=eie,je=Kne,Ge=T1,ee=SI,le=jne,ue=zne,De=Oo("tooltip");return Y(),te("div",mie,[N("div",vie,[ot((Y(),te("button",{class:"btn-icon",onClick:we[0]||(we[0]=yt(A=>ne(p).quick="",["prevent"]))},[gie,$e(Pe)])),[[De,se.$t("close")]]),N("div",_ie,Me(((Ke=ne(d))==null?void 0:Ke.deviceName)??se.$t("my_phone"))+Me((it=ne(d))!=null&&it.battery?" ("+se.$t("battery_left",{percentage:(k=ne(d))==null?void 0:k.battery})+")":""),1),N("div",yie,[ot((Y(),te("button",{class:"btn-icon",onClick:yt(be,["prevent"])},[bie,$e(Ce)])),[[De,se.$t("files")]])])]),N("div",{class:"quick-content-body",ref_key:"scrollContainer",ref:n},[(Y(!0),te($t,null,ci(a.value,(A,M)=>(Y(),te("div",{key:A.id,class:"chat-item"},[x(A,M)?(Y(),te("div",xie,Me(ne(jg)(A.createdAt)),1)):kt("",!0),$e(Ge,null,{content:Ir(()=>[N("div",Cie,[N("md-menu-item",{onClick:U=>q(A.id),disabled:ne(j)},[N("div",Sie,Me(se.$t("delete_message")),1)],8,Aie)])]),default:Ir(()=>[N("div",wie,[N("span",Tie,Me(se.$t(A.isMe?"me":"app_name")),1),ot((Y(),te("time",Eie,[ai(Me(ne(nee)(A.createdAt)),1)])),[[De,ne(k1)(A.createdAt)]]),A.id.startsWith("new_")?(Y(),te("span",kie,Me(se.$t("sending")),1)):kt("",!0),$e(je,{class:"bi bi-more"})])]),_:2},1024),N("div",Iie,[A._content.type==="text"?(Y(),te("div",$ie,[N("pre",{innerHTML:ne(ZV)(A._content.value.text)},null,8,Oie)])):(Y(),or(Ed(m(A._content.type)),{key:1,data:A},null,8,["data"]))])]))),128))],512),N("div",Pie,[N("div",Rie,[ot(N("div",{class:"drag-mask"},Me(se.$t("release_to_send_files")),513),[[bn,ge.value]]),ot(N("md-outlined-text-field",{type:"textarea",rows:"2","onUpdate:modelValue":we[1]||(we[1]=A=>Xt(_)?_.value=A:null),autocomplete:"off",onPaste:Re,onDrop:yt(Be,["prevent"]),onDragenter:yt(ke,["prevent"]),onDragleave:yt(Se,["prevent"]),class:"textarea",placeholder:se.$t("chat_input_hint"),onKeydown:[El(yt(R,["exact","prevent"]),["enter"]),we[2]||(we[2]=El(yt(A=>_.value+=` +`,["shift","exact","prevent"]),["enter"])),we[3]||(we[3]=El(yt(A=>_.value+=` +`,["ctrl","exact","prevent"]),["enter"])),we[4]||(we[4]=El(yt(A=>_.value+=` +`,["alt","exact","prevent"]),["enter"])),we[5]||(we[5]=El(yt(A=>_.value+=` +`,["meta","exact","prevent"]),["enter"]))]},[N("div",Lie,[N("button",{class:"btn-icon",onClick:J},[Mie,$e(ee)]),N("button",{class:"btn-icon",onClick:Oe},[Fie,$e(le)])]),N("button",{class:"btn-icon btn-send",onClick:R,disable:ne(b),slot:"trailing-icon"},[zie,$e(ue)],8,Nie)],40,Die),[[A_,ne(_)]])])]),N("input",{ref_key:"fileInput",ref:i,style:{display:"none"},type:"file",multiple:"",onChange:E},null,544),N("input",{ref_key:"imageInput",ref:o,style:{display:"none"},type:"file",accept:"image/*, video/*",multiple:"",onChange:S},null,544)])}}}),Bie=kn(qie,[["__scopeId","data-v-38e60902"]]);const st=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 Vie=(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)}},Uie=(t,e,r)=>{e.constructor.createProperty(r,t)};function H(t){return(e,r)=>r!==void 0?Uie(t,e,r):Vie(t,e)}function Lt(t){return H({...t,state:!0})}const Fu=({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(l){t(l,o)}),a}{const o=r.constructor;e!==void 0&&Object.defineProperty(r,n,e(n)),t==null||t(o,n)}};function xt(t,e){return Fu({descriptor:r=>({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})})}function jie(t){return Fu({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 MI(t){return Fu({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 Wg;const Hie=((Wg=window.HTMLSlotElement)===null||Wg===void 0?void 0:Wg.prototype.assignedElements)!=null?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter(r=>r.nodeType===Node.ELEMENT_NODE);function Or(t){const{slot:e,selector:r}=t??{};return Fu({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),l=a!=null?Hie(a,t):[];return r?l.filter(d=>d.matches(r)):l},enumerable:!0,configurable:!0})})}function O1(t,e,r){let n,i=t;return typeof t=="object"?(i=t.slot,n=t):n={flatten:e},r?Or({slot:i,flatten:e,selector:r}):Fu({descriptor:o=>({get(){var a,l;const d="slot"+(i?`[name=${i}]`:":not([name])"),u=(a=this.renderRoot)===null||a===void 0?void 0:a.querySelector(d);return(l=u==null?void 0:u.assignedNodes(n))!==null&&l!==void 0?l:[]},enumerable:!0,configurable:!0})})}const Gh=window,P1=Gh.ShadowRoot&&(Gh.ShadyCSS===void 0||Gh.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,R1=Symbol(),F5=new WeakMap;let FI=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==R1)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(P1&&e===void 0){const n=r!==void 0&&r.length===1;n&&(e=F5.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&F5.set(r,e))}return e}toString(){return this.cssText}};const Wie=t=>new FI(typeof t=="string"?t:t+"",void 0,R1),He=(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 FI(r,t,R1)},Gie=(t,e)=>{P1?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{const n=document.createElement("style"),i=Gh.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)})},N5=P1?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const n of e.cssRules)r+=n.cssText;return Wie(r)})(t):t;var Gg;const xp=window,z5=xp.trustedTypes,Qie=z5?z5.emptyScript:"",q5=xp.reactiveElementPolyfillSupport,Py={toAttribute(t,e){switch(e){case Boolean:t=t?Qie: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}},NI=(t,e)=>e!==t&&(e==e||t==t),Qg={attribute:!0,type:String,converter:Py,reflect:!1,hasChanged:NI},Ry="finalized";let $l=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=Qg){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)||Qg}static finalize(){if(this.hasOwnProperty(Ry))return!1;this[Ry]=!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(N5(i))}else e!==void 0&&r.push(N5(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 Gie(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=Qg){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:Py).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),l=typeof a.converter=="function"?{fromAttribute:a.converter}:((n=a.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?a.converter:Py;this._$El=o,this[o]=l.fromAttribute(r,a.type),this._$El=null}}requestUpdate(e,r,n){let i=!0;e!==void 0&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||NI)(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){}};$l[Ry]=!0,$l.elementProperties=new Map,$l.elementStyles=[],$l.shadowRootOptions={mode:"open"},q5==null||q5({ReactiveElement:$l}),((Gg=xp.reactiveElementVersions)!==null&&Gg!==void 0?Gg:xp.reactiveElementVersions=[]).push("1.6.3");var Kg;const wp=window,pc=wp.trustedTypes,B5=pc?pc.createPolicy("lit-html",{createHTML:t=>t}):void 0,Dy="$lit$",ba=`lit$${(Math.random()+"").slice(9)}$`,zI="?"+ba,Kie=`<${zI}>`,qs=document,gu=()=>qs.createComment(""),_u=t=>t===null||typeof t!="object"&&typeof t!="function",qI=Array.isArray,Yie=t=>qI(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",Yg=`[ +\f\r]`,md=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,V5=/-->/g,U5=/>/g,ps=RegExp(`>|${Yg}(?:([^\\s"'>=/]+)(${Yg}*=${Yg}*(?:[^ +\f\r"'\`<>=]|("|')|))|$)`,"g"),j5=/'/g,H5=/"/g,BI=/^(?:script|style|textarea|title)$/i,Xie=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),me=Xie(1),ii=Symbol.for("lit-noChange"),pe=Symbol.for("lit-nothing"),W5=new WeakMap,ks=qs.createTreeWalker(qs,129,null,!1);function VI(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return B5!==void 0?B5.createHTML(e):e}const Jie=(t,e)=>{const r=t.length-1,n=[];let i,o=e===2?"":"",a=md;for(let l=0;l"?(a=i??md,g=-1):f[1]===void 0?g=-2:(g=a.lastIndex-f[2].length,u=f[1],a=f[3]===void 0?ps:f[3]==='"'?H5:j5):a===H5||a===j5?a=ps:a===V5||a===U5?a=md:(a=ps,i=void 0);const x=a===ps&&t[l+1].startsWith("/>")?" ":"";o+=a===md?d+Kie:g>=0?(n.push(u),d.slice(0,g)+Dy+d.slice(g)+ba+x):d+ba+(g===-2?(n.push(void 0),l):x)}return[VI(t,o+(t[r]||"")+(e===2?"":"")),n]};class yu{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let o=0,a=0;const l=e.length-1,d=this.parts,[u,f]=Jie(e,r);if(this.el=yu.createElement(u,n),ks.currentNode=this.el.content,r===2){const g=this.el.content,y=g.firstChild;y.remove(),g.append(...y.childNodes)}for(;(i=ks.nextNode())!==null&&d.length0){i.textContent=pc?pc.emptyScript:"";for(let x=0;x2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=pe}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=mc(this,e,r,0),a=!_u(e)||e!==this._$AH&&e!==ii,a&&(this._$AH=e);else{const l=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 l=(i=r==null?void 0:r.renderBefore)!==null&&i!==void 0?i:null;o._$litPart$=a=new Nu(e.insertBefore(gu(),l),l,void 0,r??{})}return a._$AI(t),a};var Xg,Jg;let ft=class extends $l{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=D1(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 ii}};ft.finalized=!0,ft._$litElement$=!0,(Xg=globalThis.litElementHydrateSupport)===null||Xg===void 0||Xg.call(globalThis,{LitElement:ft});const Q5=globalThis.litElementPolyfillSupport;Q5==null||Q5({LitElement:ft});((Jg=globalThis.litElementVersions)!==null&&Jg!==void 0?Jg:globalThis.litElementVersions=[]).push("3.3.3");const ooe=!1;const _a={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},L1=t=>(...e)=>({_$litDirective$:t,values:e});let M1=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 Zt=L1(class extends M1{constructor(t){var e;if(super(t),t.type!==_a.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 ii}});class UI extends ft{constructor(){super(...arguments),this.value=""}render(){const e={"md3-badge--large":this.value};return me`

${this.value}

-
`}}O([H()],PI.prototype,"value",void 0);const Uie=He`: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, var(--md-sys-shape-corner-full, 9999px));--_large-size: var(--md-badge-large-size, 16px);--_shape: var(--md-badge-shape, var(--md-sys-shape-corner-full, 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)} -`;let xy=class extends PI{};xy.styles=[Uie];xy=O([ot("md-badge")],xy);const pl={FRONT:"FRONT",BEHIND:"BEHIND"},Xo={INIT:"INIT",FIXED:"FIXED",DYNAMIC:"DYNAMIC"},N5=2;class Vie{constructor(e,r){Wt(this,"direction","");Wt(this,"fixedSizeValue",0);Wt(this,"sizes",new Map);Wt(this,"offset",0);Wt(this,"param",null);Wt(this,"range",null);Wt(this,"firstRangeTotalSize",0);Wt(this,"firstRangeAverageSize",0);Wt(this,"lastCalcIndex",0);Wt(this,"callUpdate",null);Wt(this,"calcType",Xo.INIT);this.init(e,r)}init(e,r){this.param=e,this.callUpdate=r,this.sizes=new Map,this.firstRangeTotalSize=0,this.firstRangeAverageSize=0,this.lastCalcIndex=0,this.fixedSizeValue=0,this.calcType=Xo.INIT,this.offset=0,this.direction="",this.range=Object.create(null),e&&this.checkRange(0,e.keeps-1)}destroy(){this.init(null,null)}getRange(){const e=Object.create(null);return e.start=this.range.start,e.end=this.range.end,e.padFront=this.range.padFront,e.padBehind=this.range.padBehind,e}isBehind(){return this.direction===pl.BEHIND}isFront(){return this.direction===pl.FRONT}getOffset(e){return(e<1?0:this.getIndexOffset(e))+this.param.slotHeaderSize}updateParam(e,r){this.param&&e in this.param&&(e==="uniqueIds"&&this.sizes.forEach((n,i)=>{r.includes(i)||this.sizes.delete(i)}),this.param[e]=r)}saveSize(e,r){this.sizes.set(e,r),this.calcType===Xo.INIT?(this.fixedSizeValue=r,this.calcType=Xo.FIXED):this.calcType===Xo.FIXED&&this.fixedSizeValue!==r&&(this.calcType=Xo.DYNAMIC,this.fixedSizeValue=0),this.calcType!==Xo.FIXED&&typeof this.firstRangeTotalSize<"u"&&(this.sizes.sizen+i,0),this.firstRangeAverageSize=Math.round(this.firstRangeTotalSize/this.sizes.size)):this.firstRangeTotalSize=void 0)}handleDataSourcesChange(){let e=this.range.start;this.isFront()?e=e-N5:this.isBehind()&&(e=e+N5),e=Math.max(e,0),this.updateRange(this.range.start,this.getEndByStart(e))}handleSlotSizeChange(){this.handleDataSourcesChange()}handleScroll(e){this.direction=ethis.range.start)return;const r=Math.max(e-this.param.buffer,0);this.checkRange(r,this.getEndByStart(r))}handleBehind(){const e=this.getScrollOvers();ee&&(o=n-1)}return r>0?--r:0}getIndexOffset(e){if(!e)return 0;let r=0,n=0;for(let i=0;i[]},keeps:{type:Number,default:100},estimateSize:{type:Number,default:50},direction:{type:String,default:"vertical"},start:{type:Number,default:0},offset:{type:Number,default:0},topThreshold:{type:Number,default:0},bottomThreshold:{type:Number,default:0},pageMode:{type:Boolean,default:!1}},Hie={index:{type:Number},event:{type:String},horizontal:{type:Boolean},source:{type:Object},component:{type:Function},uniqueKey:{type:[String,Number]}},Wie={event:{type:String},uniqueKey:{type:String},horizontal:{type:Boolean}},RI=(t,e,r)=>{let n=null;const i=It(()=>t.horizontal?"offsetWidth":"offsetHeight"),o=()=>e.value?e.value[i.value]:0,a=()=>{const{event:l,uniqueKey:d,hasInitial:u}=t;r(l,d,o(),u)};Ur(()=>{typeof ResizeObserver<"u"&&(n=new ResizeObserver(()=>{a()}),e.value&&n.observe(e.value))}),Fp(()=>{a()}),za(()=>{n&&(n.disconnect(),n=null)})},Gie=Dt({name:"VirtualListItem",props:Hie,emits:["itemResize"],setup(t,{emit:e}){const r=Le(null);return RI(t,r,e),()=>{const{component:n,index:i,source:o,uniqueKey:a}=t;return Pe("div",{key:a,ref:r},[n({index:i,item:o})])}}}),z5=Dt({name:"VirtualListSlot",props:Wie,emits:["slotResize"],setup(t,{slots:e,emit:r}){const n=Le(null);return RI(t,n,r),()=>{var o;const{uniqueKey:i}=t;return Pe("div",{ref:n,key:i},[(o=e.default)==null?void 0:o.call(e)])}}});function q5(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!jl(t)}var Nh=function(t){return t.ITEM="itemResize",t.SLOT="slotResize",t}(Nh||{}),cd=function(t){return t.HEADER="thead",t.FOOTER="tfoot",t}(cd||{});const Qie=Dt({name:"VirtualList",props:jie,setup(t,{emit:e,slots:r,expose:n}){const i=t.direction==="horizontal",o=i?"scrollLeft":"scrollTop",a=Le(null),l=Le(),d=Le(null);let u;Ot(()=>t.dataSources.length,()=>{u.updateParam("uniqueIds",_()),u.handleDataSourcesChange()}),Ot(()=>t.keeps,j=>{u.updateParam("keeps",j),u.handleSlotSizeChange()}),Ot(()=>t.start,j=>{w(j)}),Ot(()=>t.offset,j=>E(j));const f=j=>u.sizes.get(j),g=()=>t.pageMode?document.documentElement[o]||document.body[o]:l.value?Math.ceil(l.value[o]):0,y=()=>{const j=i?"clientWidth":"clientHeight";return t.pageMode?document.documentElement[j]||document.body[j]:l.value?Math.ceil(l.value[j]):0},x=()=>{const j=i?"scrollWidth":"scrollHeight";return t.pageMode?document.documentElement[j]||document.body[j]:l.value?Math.ceil(l.value[j]):0},m=(j,q,Z,we)=>{e("scroll",we,u.getRange()),u.isFront()&&t.dataSources.length&&j-t.topThreshold<=0?e("totop"):u.isBehind()&&j+q+t.bottomThreshold>=Z&&e("tobottom")},p=j=>{const q=g(),Z=y(),we=x();q<0||q+Z>we+1||!we||(u.handleScroll(q),m(q,Z,we,j))},_=()=>{const{dataKey:j,dataSources:q=[]}=t;return q.map(Z=>typeof j=="function"?j(Z):Z[j])},v=j=>{a.value=j},b=()=>{u=new Vie({slotHeaderSize:0,slotFooterSize:0,keeps:t.keeps,estimateSize:t.estimateSize,buffer:Math.round(t.keeps/3),uniqueIds:_()},v),a.value=u.getRange()},w=j=>{if(j>=t.dataSources.length-1)R();else{const q=u.getOffset(j);E(q)}},E=j=>{t.pageMode?(document.body[o]=j,document.documentElement[o]=j):l.value&&(l.value[o]=j)},C=j=>{const q=[],{start:Z,end:we}=a.value||{start:0,end:0},{dataSources:$e,dataKey:ye}=t;for(let ke=Z;ke<=we;ke++){const Ie=$e[ke];if(Ie){const Be=typeof ye=="function"?ye(Ie):Ie[ye];typeof Be=="string"||typeof Be=="number"?q.push(Pe(Gie,{index:ke,event:Nh.ITEM,horizontal:i,uniqueKey:Be,source:Ie,component:j,onItemResize:S},null)):console.warn(`Cannot get the data-key '${ye}' from data-sources.`)}else console.warn(`Cannot get the index '${ke}' from data-sources.`)}return q},S=(j,q)=>{u.saveSize(j,q),e("resized",j,q)},P=(j,q,Z)=>{j===cd.HEADER?u.updateParam("slotHeaderSize",q):j===cd.FOOTER&&u.updateParam("slotFooterSize",q),Z&&u.handleSlotSizeChange()},R=()=>{if(d.value){const j=d.value[i?"offsetLeft":"offsetTop"];E(j),setTimeout(()=>{g()+y(){if(l.value){const j=l.value.getBoundingClientRect(),{defaultView:q}=l.value.ownerDocument,Z=i?j.left+q.pageXOffset:j.top+q.pageYOffset;u.updateParam("slotHeaderSize",Z)}},z=()=>u.sizes.size;return AC(()=>{b()}),kC(()=>{E(u.offset)}),Ur(()=>{t.start?w(t.start):t.offset&&E(t.offset),t.pageMode&&(D(),document.addEventListener("scroll",p,{passive:!1}))}),za(()=>{u.destroy(),t.pageMode&&document.removeEventListener("scroll",p)}),n({scrollToBottom:R,getSizes:z,getSize:f,getOffset:g,getScrollSize:x,getClientSize:y,scrollToOffset:E,scrollToIndex:w}),()=>{let j,q;const{pageMode:Z}=t,{padFront:we,padBehind:$e}=a.value,ye={padding:i?`0px ${$e}px 0px ${we}px`:`${we}px 0px ${$e}px`},{header:ke,footer:Ie,item:Be}=r;return Pe("div",{ref:l,onScroll:Z?void 0:p},[ke&&Pe(z5,{class:"header",event:Nh.SLOT,uniqueKey:cd.HEADER,onSlotResize:P},q5(j=ke())?j:{default:()=>[j]}),Pe("div",{class:"wrap",style:ye},[C(Be)]),Ie&&Pe(z5,{class:"footer",event:Nh.SLOT,uniqueKey:cd.FOOTER,onSlotResize:P},q5(q=Ie())?q:{default:()=>[q]}),Pe("div",{ref:d,style:{width:i?"0px":"100%",height:i?"100%":"0px"}},null)])}}}),DI=t=>(ko("data-v-643a9262"),t=t(),Co(),t),Kie={class:"quick-content-main"},Yie={class:"top-app-bar"},Xie=DI(()=>N("md-ripple",null,null,-1)),Jie={class:"title"},Zie={class:"actions"},eoe={class:"sm"},toe=["data-value","label","selected","onClick"],roe={class:"quick-content-body"},noe={class:"item"},ioe={class:"title"},ooe={class:"subtitle"},aoe={key:0,class:"body"},soe=["onClick"],loe=DI(()=>N("md-ripple",null,null,-1)),coe={key:0,class:"no-data"},doe=Dt({__name:"TaskList",setup(t){const e=Va(),r=Fs(),n=Le("in_progress"),i=["in_progress","completed"],{t:o}=zn(),a=Le();function l(p){n.value=p;const _=a.value;_&&(_.scrollTop=0)}const d=It(()=>n.value==="in_progress"?u():f()),u=()=>{const p=new Map;return p.set("saving",0),p.set("pending",1),p.set("created",2),jK(e.uploads.filter(_=>!["error","done"].includes(_.status)),_=>p.get(_.status)??0)},f=()=>e.uploads.filter(p=>["error","done"].includes(p.status)),g=It(()=>f().length);function y(p){const _=g.value;return o(p)+(p==="completed"?` (${_})`:` (${e.uploads.length-_})`)}function x(p){var _;e.uploads.splice(e.uploads.indexOf(p),1),p.status==="pending"&&(p.status="canceled",(_=p.xhr)==null||_.abort())}Ot(()=>e.uploads,async()=>{if(r.quick="task",e.uploads.some(_=>_.status==="pending")){console.log("pending");return}m()});async function m(){console.log("doUpload");const p=e.uploads.filter(_=>_.status==="created").slice(0,5);p.length!==0&&(await Promise.all(p.map(async _=>{_.status="pending",await gS(_,!0),Tt.emit("upload_task_done",_)})),m())}return(p,_)=>{const v=_m,b=wu,w=Ao("tooltip");return J(),re("div",Kie,[N("div",Yie,[lt((J(),re("button",{class:"btn-icon",onClick:_[0]||(_[0]=wt(E=>oe(r).quick="",["prevent"]))},[Xie,Pe(v)])),[[w,p.$t("close")]]),N("div",Jie,Me(p.$t("header_actions.tasks"))+" ("+Me(oe(e).uploads.length)+")",1),N("div",Zie,[N("md-outlined-segmented-button-set",eoe,[(J(),re($t,null,oi(i,E=>N("md-outlined-segmented-button",{"no-checkmark":"",key:E,"data-value":E,label:y(E),selected:n.value===E,onClick:C=>l(E)},null,8,toe)),64))])])]),N("div",roe,[Pe(oe(Qie),{ref_key:"listItemsRef",ref:a,class:"list-items","data-key":"id","data-sources":d.value,"estimate-size":64},{item:Dn(({item:E})=>[N("section",noe,[N("div",ioe,Me(E.file.name),1),N("div",ooe,[ri(" ["+Me(p.$t(`upload_status.${E.status}`))+"] ",1),["created","done"].includes(E.status)?yt("",!0):(J(),re($t,{key:0},[ri(Me(oe(iu)(E.uploadedSize))+"("+Me(E.uploadedSize)+") / ",1)],64)),ri(Me(oe(iu)(E.file.size)),1)]),E.error?(J(),re("div",aoe,Me(E.error),1)):yt("",!0),N("button",{class:"btn-icon icon",onClick:wt(C=>x(E),["stop"])},[loe,Pe(b)],8,soe)])]),_:1},8,["data-sources"]),d.value.length?yt("",!0):(J(),re("span",coe,Me(p.$t("no_task")),1))])])}}}),uoe=Tn(doe,[["__scopeId","data-v-643a9262"]]),foe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},hoe=N("path",{fill:"currentColor",d:"M9 20q-.825 0-1.412-.587T7 18t.588-1.412T9 16t1.413.588T11 18t-.587 1.413T9 20m6 0q-.825 0-1.412-.587T13 18t.588-1.412T15 16t1.413.588T17 18t-.587 1.413T15 20m-6-6q-.825 0-1.412-.587T7 12t.588-1.412T9 10t1.413.588T11 12t-.587 1.413T9 14m6 0q-.825 0-1.412-.587T13 12t.588-1.412T15 10t1.413.588T17 12t-.587 1.413T15 14M9 8q-.825 0-1.412-.587T7 6t.588-1.412T9 4t1.413.588T11 6t-.587 1.413T9 8m6 0q-.825 0-1.412-.587T13 6t.588-1.412T15 4t1.413.588T17 6t-.587 1.413T15 8"},null,-1),poe=[hoe];function moe(t,e){return J(),re("svg",foe,[...poe])}const voe={name:"material-symbols-drag-indicator",render:moe},goe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},_oe=N("path",{fill:"currentColor",d:"M7 23q-.825 0-1.412-.587T5 21V3q0-.825.588-1.412T7 1h10q.825 0 1.413.588T19 3v18q0 .825-.587 1.413T17 23zm0-3v1h10v-1zm0-2h10V6H7zM7 4h10V3H7zm0 0V3zm0 16v1z"},null,-1),yoe=[_oe];function boe(t,e){return J(),re("svg",goe,[...yoe])}const xoe={name:"material-symbols-smartphone-outline",render:boe},woe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Toe=N("path",{fill:"currentColor",d:"M16 20q-1.25 0-2.125-.875T13 17t.875-2.125T16 14q.275 0 .525.038T17 14.2V7q0-.425.288-.712T18 6h3q.425 0 .713.288T22 7t-.288.713T21 8h-2v9q0 1.25-.875 2.125T16 20M4 16q-.425 0-.712-.288T3 15t.288-.712T4 14h6q.425 0 .713.288T11 15t-.288.713T10 16zm0-4q-.425 0-.712-.288T3 11t.288-.712T4 10h10q.425 0 .713.288T15 11t-.288.713T14 12zm0-4q-.425 0-.712-.288T3 7t.288-.712T4 6h10q.425 0 .713.288T15 7t-.288.713T14 8z"},null,-1),Eoe=[Toe];function koe(t,e){return J(),re("svg",woe,[...Eoe])}const Coe={name:"material-symbols-queue-music-rounded",render:koe},Aoe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Soe=N("path",{fill:"currentColor",d:"M5 19q-.425 0-.712-.288T4 18t.288-.712T5 17h1v-7q0-2.075 1.25-3.687T10.5 4.2v-.7q0-.625.438-1.062T12 2t1.063.438T13.5 3.5v.7q2 .5 3.25 2.113T18 10v7h1q.425 0 .713.288T20 18t-.288.713T19 19zm7 3q-.825 0-1.412-.587T10 20h4q0 .825-.587 1.413T12 22m-4-5h8v-7q0-1.65-1.175-2.825T12 6T9.175 7.175T8 10z"},null,-1),Ioe=[Soe];function $oe(t,e){return J(),re("svg",Aoe,[...Ioe])}const Ooe={name:"material-symbols-notifications-outline-rounded",render:$oe},Poe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Roe=N("path",{fill:"currentColor",d:"M3.75 22q-.325 0-.537-.213T3 21.25t.213-.537t.537-.213H5.5v-.75h-.75q-.325 0-.537-.213T4 19t.213-.537t.537-.213h.75v-.75H3.75q-.325 0-.537-.213T3 16.75t.213-.537T3.75 16H6q.425 0 .713.288T7 17v1q0 .425-.288.713T6 19q.425 0 .713.288T7 20v1q0 .425-.288.713T6 22zm0-7q-.325 0-.537-.213T3 14.25v-2q0-.425.288-.712T4 11.25h1.5v-.75H3.75q-.325 0-.537-.213T3 9.75t.213-.537T3.75 9H6q.425 0 .713.288T7 10v1.75q0 .425-.288.713T6 12.75H4.5v.75h1.75q.325 0 .538.213T7 14.25t-.213.538T6.25 15zm1.5-7q-.325 0-.537-.213T4.5 7.25V3.5h-.75q-.325 0-.537-.213T3 2.75t.213-.537T3.75 2h1.5q.325 0 .538.213T6 2.75v4.5q0 .325-.213.538T5.25 8M10 19q-.425 0-.712-.288T9 18t.288-.712T10 17h10q.425 0 .713.288T21 18t-.288.713T20 19zm0-6q-.425 0-.712-.288T9 12t.288-.712T10 11h10q.425 0 .713.288T21 12t-.288.713T20 13zm0-6q-.425 0-.712-.288T9 6t.288-.712T10 5h10q.425 0 .713.288T21 6t-.288.713T20 7z"},null,-1),Doe=[Roe];function Loe(t,e){return J(),re("svg",Poe,[...Doe])}const Moe={name:"material-symbols-format-list-numbered-rounded",render:Loe},Foe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Noe=N("path",{fill:"currentColor",d:"M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h6q.425 0 .713.288T12 4t-.288.713T11 5H5v14h6q.425 0 .713.288T12 20t-.288.713T11 21zm12.175-8H10q-.425 0-.712-.288T9 12t.288-.712T10 11h7.175L15.3 9.125q-.275-.275-.275-.675t.275-.7t.7-.313t.725.288L20.3 11.3q.3.3.3.7t-.3.7l-3.575 3.575q-.3.3-.712.288t-.713-.313q-.275-.3-.262-.712t.287-.688z"},null,-1),zoe=[Noe];function qoe(t,e){return J(),re("svg",Foe,[...zoe])}const Boe={name:"material-symbols-logout-rounded",render:qoe},Uoe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Voe=N("path",{fill:"currentColor",d:"M12 5q-.425 0-.712-.288T11 4V2q0-.425.288-.712T12 1t.713.288T13 2v2q0 .425-.288.713T12 5m4.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-.275M20 13q-.425 0-.713-.288T19 12t.288-.712T20 11h2q.425 0 .713.288T23 12t-.288.713T22 13zm-8 10q-.425 0-.712-.288T11 22v-2q0-.425.288-.712T12 19t.713.288T13 20v2q0 .425-.288.713T12 23M5.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-.275m12.7 12.725l-1.4-1.425q-.275-.3-.275-.712t.275-.688t.688-.275t.712.275l1.425 1.4q.3.275.288.7t-.288.725q-.3.3-.725.3t-.7-.3M2 13q-.425 0-.712-.288T1 12t.288-.712T2 11h2q.425 0 .713.288T5 12t-.288.713T4 13zm2.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-.3M12 18q-2.5 0-4.25-1.75T6 12t1.75-4.25T12 6t4.25 1.75T18 12t-1.75 4.25T12 18m0-2q1.65 0 2.825-1.175T16 12t-1.175-2.825T12 8T9.175 9.175T8 12t1.175 2.825T12 16m0-4"},null,-1),joe=[Voe];function Hoe(t,e){return J(),re("svg",Uoe,[...joe])}const Woe={name:"material-symbols-sunny-outline-rounded",render:Hoe},Goe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Qoe=N("path",{fill:"currentColor",d:"M8.65 20H6q-.825 0-1.412-.587T4 18v-2.65L2.075 13.4q-.275-.3-.425-.662T1.5 12t.15-.737t.425-.663L4 8.65V6q0-.825.588-1.412T6 4h2.65l1.95-1.925q.3-.275.663-.425T12 1.5t.738.15t.662.425L15.35 4H18q.825 0 1.413.588T20 6v2.65l1.925 1.95q.275.3.425.663t.15.737t-.15.738t-.425.662L20 15.35V18q0 .825-.587 1.413T18 20h-2.65l-1.95 1.925q-.3.275-.662.425T12 22.5t-.737-.15t-.663-.425zm.85-2l2.5 2.5l2.5-2.5H18v-3.5l2.5-2.5L18 9.5V6h-3.5L12 3.5L9.5 6H6v3.5L3.5 12L6 14.5V18zm2.5-1q2.075 0 3.538-1.463T17 12t-1.463-3.537T12 7z"},null,-1),Koe=[Qoe];function Yoe(t,e){return J(),re("svg",Goe,[...Koe])}const Xoe={name:"material-symbols-brightness6-outline-rounded",render:Yoe},Joe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Zoe=N("path",{fill:"currentColor",d:"M12 21q-3.775 0-6.387-2.613T3 12q0-3.45 2.25-5.988T11 3.05q.325-.05.575.088t.4.362t.163.525t-.188.575q-.425.65-.638 1.375T11.1 7.5q0 2.25 1.575 3.825T16.5 12.9q.775 0 1.538-.225t1.362-.625q.275-.175.563-.162t.512.137q.25.125.388.375t.087.6q-.35 3.45-2.937 5.725T12 21m0-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 19m-.25-6.75"},null,-1),eae=[Zoe];function tae(t,e){return J(),re("svg",Joe,[...eae])}const rae={name:"material-symbols-dark-mode-outline-rounded",render:tae};const LI=["role","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"];LI.map(MI);function MI(t){return t.replace("aria","aria-").replace(/Elements?/g,"").toLowerCase()}function Xr(t){for(const e of LI)t.createProperty(e,{attribute:MI(e),reflect:!0});t.addInitializer(e=>{const r={hostConnected(){e.setAttribute("role","presentation")}};e.addController(r)})}class bm extends dt{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 ve` +
`}}O([H()],UI.prototype,"value",void 0);const aoe=He`: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, var(--md-sys-shape-corner-full, 9999px));--_large-size: var(--md-badge-large-size, 16px);--_shape: var(--md-badge-shape, var(--md-sys-shape-corner-full, 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)} +`;let Ly=class extends UI{};Ly.styles=[aoe];Ly=O([st("md-badge")],Ly);const wl={FRONT:"FRONT",BEHIND:"BEHIND"},ia={INIT:"INIT",FIXED:"FIXED",DYNAMIC:"DYNAMIC"},K5=2;class soe{constructor(e,r){Kt(this,"direction","");Kt(this,"fixedSizeValue",0);Kt(this,"sizes",new Map);Kt(this,"offset",0);Kt(this,"param",null);Kt(this,"range",null);Kt(this,"firstRangeTotalSize",0);Kt(this,"firstRangeAverageSize",0);Kt(this,"lastCalcIndex",0);Kt(this,"callUpdate",null);Kt(this,"calcType",ia.INIT);this.init(e,r)}init(e,r){this.param=e,this.callUpdate=r,this.sizes=new Map,this.firstRangeTotalSize=0,this.firstRangeAverageSize=0,this.lastCalcIndex=0,this.fixedSizeValue=0,this.calcType=ia.INIT,this.offset=0,this.direction="",this.range=Object.create(null),e&&this.checkRange(0,e.keeps-1)}destroy(){this.init(null,null)}getRange(){const e=Object.create(null);return e.start=this.range.start,e.end=this.range.end,e.padFront=this.range.padFront,e.padBehind=this.range.padBehind,e}isBehind(){return this.direction===wl.BEHIND}isFront(){return this.direction===wl.FRONT}getOffset(e){return(e<1?0:this.getIndexOffset(e))+this.param.slotHeaderSize}updateParam(e,r){this.param&&e in this.param&&(e==="uniqueIds"&&this.sizes.forEach((n,i)=>{r.includes(i)||this.sizes.delete(i)}),this.param[e]=r)}saveSize(e,r){this.sizes.set(e,r),this.calcType===ia.INIT?(this.fixedSizeValue=r,this.calcType=ia.FIXED):this.calcType===ia.FIXED&&this.fixedSizeValue!==r&&(this.calcType=ia.DYNAMIC,this.fixedSizeValue=0),this.calcType!==ia.FIXED&&typeof this.firstRangeTotalSize<"u"&&(this.sizes.sizen+i,0),this.firstRangeAverageSize=Math.round(this.firstRangeTotalSize/this.sizes.size)):this.firstRangeTotalSize=void 0)}handleDataSourcesChange(){let e=this.range.start;this.isFront()?e=e-K5:this.isBehind()&&(e=e+K5),e=Math.max(e,0),this.updateRange(this.range.start,this.getEndByStart(e))}handleSlotSizeChange(){this.handleDataSourcesChange()}handleScroll(e){this.direction=ethis.range.start)return;const r=Math.max(e-this.param.buffer,0);this.checkRange(r,this.getEndByStart(r))}handleBehind(){const e=this.getScrollOvers();ee&&(o=n-1)}return r>0?--r:0}getIndexOffset(e){if(!e)return 0;let r=0,n=0;for(let i=0;i[]},keeps:{type:Number,default:100},estimateSize:{type:Number,default:50},direction:{type:String,default:"vertical"},start:{type:Number,default:0},offset:{type:Number,default:0},topThreshold:{type:Number,default:0},bottomThreshold:{type:Number,default:0},pageMode:{type:Boolean,default:!1}},coe={index:{type:Number},event:{type:String},horizontal:{type:Boolean},source:{type:Object},component:{type:Function},uniqueKey:{type:[String,Number]}},doe={event:{type:String},uniqueKey:{type:String},horizontal:{type:Boolean}},jI=(t,e,r)=>{let n=null;const i=At(()=>t.horizontal?"offsetWidth":"offsetHeight"),o=()=>e.value?e.value[i.value]:0,a=()=>{const{event:l,uniqueKey:d,hasInitial:u}=t;r(l,d,o(),u)};Qr(()=>{typeof ResizeObserver<"u"&&(n=new ResizeObserver(()=>{a()}),e.value&&n.observe(e.value))}),Gp(()=>{a()}),Wa(()=>{n&&(n.disconnect(),n=null)})},uoe=Dt({name:"VirtualListItem",props:coe,emits:["itemResize"],setup(t,{emit:e}){const r=Le(null);return jI(t,r,e),()=>{const{component:n,index:i,source:o,uniqueKey:a}=t;return $e("div",{key:a,ref:r},[n({index:i,item:o})])}}}),Y5=Dt({name:"VirtualListSlot",props:doe,emits:["slotResize"],setup(t,{slots:e,emit:r}){const n=Le(null);return jI(t,n,r),()=>{var o;const{uniqueKey:i}=t;return $e("div",{ref:n,key:i},[(o=e.default)==null?void 0:o.call(e)])}}});function X5(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Jl(t)}var Qh=function(t){return t.ITEM="itemResize",t.SLOT="slotResize",t}(Qh||{}),xd=function(t){return t.HEADER="thead",t.FOOTER="tfoot",t}(xd||{});const foe=Dt({name:"VirtualList",props:loe,setup(t,{emit:e,slots:r,expose:n}){const i=t.direction==="horizontal",o=i?"scrollLeft":"scrollTop",a=Le(null),l=Le(),d=Le(null);let u;Rt(()=>t.dataSources.length,()=>{u.updateParam("uniqueIds",_()),u.handleDataSourcesChange()}),Rt(()=>t.keeps,j=>{u.updateParam("keeps",j),u.handleSlotSizeChange()}),Rt(()=>t.start,j=>{w(j)}),Rt(()=>t.offset,j=>E(j));const f=j=>u.sizes.get(j),g=()=>t.pageMode?document.documentElement[o]||document.body[o]:l.value?Math.ceil(l.value[o]):0,y=()=>{const j=i?"clientWidth":"clientHeight";return t.pageMode?document.documentElement[j]||document.body[j]:l.value?Math.ceil(l.value[j]):0},x=()=>{const j=i?"scrollWidth":"scrollHeight";return t.pageMode?document.documentElement[j]||document.body[j]:l.value?Math.ceil(l.value[j]):0},m=(j,q,J,be)=>{e("scroll",be,u.getRange()),u.isFront()&&t.dataSources.length&&j-t.topThreshold<=0?e("totop"):u.isBehind()&&j+q+t.bottomThreshold>=J&&e("tobottom")},p=j=>{const q=g(),J=y(),be=x();q<0||q+J>be+1||!be||(u.handleScroll(q),m(q,J,be,j))},_=()=>{const{dataKey:j,dataSources:q=[]}=t;return q.map(J=>typeof j=="function"?j(J):J[j])},v=j=>{a.value=j},b=()=>{u=new soe({slotHeaderSize:0,slotFooterSize:0,keeps:t.keeps,estimateSize:t.estimateSize,buffer:Math.round(t.keeps/3),uniqueIds:_()},v),a.value=u.getRange()},w=j=>{if(j>=t.dataSources.length-1)R();else{const q=u.getOffset(j);E(q)}},E=j=>{t.pageMode?(document.body[o]=j,document.documentElement[o]=j):l.value&&(l.value[o]=j)},C=j=>{const q=[],{start:J,end:be}=a.value||{start:0,end:0},{dataSources:Oe,dataKey:ge}=t;for(let ke=J;ke<=be;ke++){const Se=Oe[ke];if(Se){const Be=typeof ge=="function"?ge(Se):Se[ge];typeof Be=="string"||typeof Be=="number"?q.push($e(uoe,{index:ke,event:Qh.ITEM,horizontal:i,uniqueKey:Be,source:Se,component:j,onItemResize:S},null)):console.warn(`Cannot get the data-key '${ge}' from data-sources.`)}else console.warn(`Cannot get the index '${ke}' from data-sources.`)}return q},S=(j,q)=>{u.saveSize(j,q),e("resized",j,q)},P=(j,q,J)=>{j===xd.HEADER?u.updateParam("slotHeaderSize",q):j===xd.FOOTER&&u.updateParam("slotFooterSize",q),J&&u.handleSlotSizeChange()},R=()=>{if(d.value){const j=d.value[i?"offsetLeft":"offsetTop"];E(j),setTimeout(()=>{g()+y(){if(l.value){const j=l.value.getBoundingClientRect(),{defaultView:q}=l.value.ownerDocument,J=i?j.left+q.pageXOffset:j.top+q.pageYOffset;u.updateParam("slotHeaderSize",J)}},z=()=>u.sizes.size;return NC(()=>{b()}),MC(()=>{E(u.offset)}),Qr(()=>{t.start?w(t.start):t.offset&&E(t.offset),t.pageMode&&(D(),document.addEventListener("scroll",p,{passive:!1}))}),Wa(()=>{u.destroy(),t.pageMode&&document.removeEventListener("scroll",p)}),n({scrollToBottom:R,getSizes:z,getSize:f,getOffset:g,getScrollSize:x,getClientSize:y,scrollToOffset:E,scrollToIndex:w}),()=>{let j,q;const{pageMode:J}=t,{padFront:be,padBehind:Oe}=a.value,ge={padding:i?`0px ${Oe}px 0px ${be}px`:`${be}px 0px ${Oe}px`},{header:ke,footer:Se,item:Be}=r;return $e("div",{ref:l,onScroll:J?void 0:p},[ke&&$e(Y5,{class:"header",event:Qh.SLOT,uniqueKey:xd.HEADER,onSlotResize:P},X5(j=ke())?j:{default:()=>[j]}),$e("div",{class:"wrap",style:ge},[C(Be)]),Se&&$e(Y5,{class:"footer",event:Qh.SLOT,uniqueKey:xd.FOOTER,onSlotResize:P},X5(q=Se())?q:{default:()=>[q]}),$e("div",{ref:d,style:{width:i?"0px":"100%",height:i?"100%":"0px"}},null)])}}}),HI=t=>(Io("data-v-643a9262"),t=t(),$o(),t),hoe={class:"quick-content-main"},poe={class:"top-app-bar"},moe=HI(()=>N("md-ripple",null,null,-1)),voe={class:"title"},goe={class:"actions"},_oe={class:"sm"},yoe=["data-value","label","selected","onClick"],boe={class:"quick-content-body"},xoe={class:"item"},woe={class:"title"},Toe={class:"subtitle"},Eoe={key:0,class:"body"},koe=["onClick"],Coe=HI(()=>N("md-ripple",null,null,-1)),Aoe={key:0,class:"no-data"},Soe=Dt({__name:"TaskList",setup(t){const e=Ya(),r=Gs(),n=Le("in_progress"),i=["in_progress","completed"],{t:o}=Bn(),a=Le();function l(p){n.value=p;const _=a.value;_&&(_.scrollTop=0)}const d=At(()=>n.value==="in_progress"?u():f()),u=()=>{const p=new Map;return p.set("saving",0),p.set("pending",1),p.set("created",2),HK(e.uploads.filter(_=>!["error","done"].includes(_.status)),_=>p.get(_.status)??0)},f=()=>e.uploads.filter(p=>["error","done"].includes(p.status)),g=At(()=>f().length);function y(p){const _=g.value;return o(p)+(p==="completed"?` (${_})`:` (${e.uploads.length-_})`)}function x(p){var _;e.uploads.splice(e.uploads.indexOf(p),1),p.status==="pending"&&(p.status="canceled",(_=p.xhr)==null||_.abort())}Rt(()=>e.uploads,async()=>{if(r.quick="task",e.uploads.some(_=>_.status==="pending")){console.log("pending");return}m()});async function m(){console.log("doUpload");const p=e.uploads.filter(_=>_.status==="created").slice(0,5);p.length!==0&&(await Promise.all(p.map(async _=>{_.status="pending",await SS(_,!0),gt.emit("upload_task_done",_)})),m())}return(p,_)=>{const v=Sm,b=Du,w=Oo("tooltip");return Y(),te("div",hoe,[N("div",poe,[ot((Y(),te("button",{class:"btn-icon",onClick:_[0]||(_[0]=yt(E=>ne(r).quick="",["prevent"]))},[moe,$e(v)])),[[w,p.$t("close")]]),N("div",voe,Me(p.$t("header_actions.tasks"))+" ("+Me(ne(e).uploads.length)+")",1),N("div",goe,[N("md-outlined-segmented-button-set",_oe,[(Y(),te($t,null,ci(i,E=>N("md-outlined-segmented-button",{"no-checkmark":"",key:E,"data-value":E,label:y(E),selected:n.value===E,onClick:C=>l(E)},null,8,yoe)),64))])])]),N("div",boe,[$e(ne(foe),{ref_key:"listItemsRef",ref:a,class:"list-items","data-key":"id","data-sources":d.value,"estimate-size":64},{item:Ir(({item:E})=>[N("section",xoe,[N("div",woe,Me(E.file.name),1),N("div",Toe,[ai(" ["+Me(p.$t(`upload_status.${E.status}`))+"] ",1),["created","done"].includes(E.status)?kt("",!0):(Y(),te($t,{key:0},[ai(Me(ne(vu)(E.uploadedSize))+"("+Me(E.uploadedSize)+") / ",1)],64)),ai(Me(ne(vu)(E.file.size)),1)]),E.error?(Y(),te("div",Eoe,Me(E.error),1)):kt("",!0),N("button",{class:"btn-icon icon",onClick:yt(C=>x(E),["stop"])},[Coe,$e(b)],8,koe)])]),_:1},8,["data-sources"]),d.value.length?kt("",!0):(Y(),te("span",Aoe,Me(p.$t("no_task")),1))])])}}}),Ioe=kn(Soe,[["__scopeId","data-v-643a9262"]]),$oe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ooe=N("path",{fill:"currentColor",d:"M9 20q-.825 0-1.412-.587T7 18t.588-1.412T9 16t1.413.588T11 18t-.587 1.413T9 20m6 0q-.825 0-1.412-.587T13 18t.588-1.412T15 16t1.413.588T17 18t-.587 1.413T15 20m-6-6q-.825 0-1.412-.587T7 12t.588-1.412T9 10t1.413.588T11 12t-.587 1.413T9 14m6 0q-.825 0-1.412-.587T13 12t.588-1.412T15 10t1.413.588T17 12t-.587 1.413T15 14M9 8q-.825 0-1.412-.587T7 6t.588-1.412T9 4t1.413.588T11 6t-.587 1.413T9 8m6 0q-.825 0-1.412-.587T13 6t.588-1.412T15 4t1.413.588T17 6t-.587 1.413T15 8"},null,-1),Poe=[Ooe];function Roe(t,e){return Y(),te("svg",$oe,[...Poe])}const Doe={name:"material-symbols-drag-indicator",render:Roe},Loe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Moe=N("path",{fill:"currentColor",d:"M7 23q-.825 0-1.412-.587T5 21V3q0-.825.588-1.412T7 1h10q.825 0 1.413.588T19 3v18q0 .825-.587 1.413T17 23zm0-3v1h10v-1zm0-2h10V6H7zM7 4h10V3H7zm0 0V3zm0 16v1z"},null,-1),Foe=[Moe];function Noe(t,e){return Y(),te("svg",Loe,[...Foe])}const zoe={name:"material-symbols-smartphone-outline",render:Noe},qoe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Boe=N("path",{fill:"currentColor",d:"M16 20q-1.25 0-2.125-.875T13 17t.875-2.125T16 14q.275 0 .525.038T17 14.2V7q0-.425.288-.712T18 6h3q.425 0 .713.288T22 7t-.288.713T21 8h-2v9q0 1.25-.875 2.125T16 20M4 16q-.425 0-.712-.288T3 15t.288-.712T4 14h6q.425 0 .713.288T11 15t-.288.713T10 16zm0-4q-.425 0-.712-.288T3 11t.288-.712T4 10h10q.425 0 .713.288T15 11t-.288.713T14 12zm0-4q-.425 0-.712-.288T3 7t.288-.712T4 6h10q.425 0 .713.288T15 7t-.288.713T14 8z"},null,-1),Voe=[Boe];function Uoe(t,e){return Y(),te("svg",qoe,[...Voe])}const joe={name:"material-symbols-queue-music-rounded",render:Uoe},Hoe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Woe=N("path",{fill:"currentColor",d:"M5 19q-.425 0-.712-.288T4 18t.288-.712T5 17h1v-7q0-2.075 1.25-3.687T10.5 4.2v-.7q0-.625.438-1.062T12 2t1.063.438T13.5 3.5v.7q2 .5 3.25 2.113T18 10v7h1q.425 0 .713.288T20 18t-.288.713T19 19zm7 3q-.825 0-1.412-.587T10 20h4q0 .825-.587 1.413T12 22m-4-5h8v-7q0-1.65-1.175-2.825T12 6T9.175 7.175T8 10z"},null,-1),Goe=[Woe];function Qoe(t,e){return Y(),te("svg",Hoe,[...Goe])}const Koe={name:"material-symbols-notifications-outline-rounded",render:Qoe},Yoe={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Xoe=N("path",{fill:"currentColor",d:"M3.75 22q-.325 0-.537-.213T3 21.25t.213-.537t.537-.213H5.5v-.75h-.75q-.325 0-.537-.213T4 19t.213-.537t.537-.213h.75v-.75H3.75q-.325 0-.537-.213T3 16.75t.213-.537T3.75 16H6q.425 0 .713.288T7 17v1q0 .425-.288.713T6 19q.425 0 .713.288T7 20v1q0 .425-.288.713T6 22zm0-7q-.325 0-.537-.213T3 14.25v-2q0-.425.288-.712T4 11.25h1.5v-.75H3.75q-.325 0-.537-.213T3 9.75t.213-.537T3.75 9H6q.425 0 .713.288T7 10v1.75q0 .425-.288.713T6 12.75H4.5v.75h1.75q.325 0 .538.213T7 14.25t-.213.538T6.25 15zm1.5-7q-.325 0-.537-.213T4.5 7.25V3.5h-.75q-.325 0-.537-.213T3 2.75t.213-.537T3.75 2h1.5q.325 0 .538.213T6 2.75v4.5q0 .325-.213.538T5.25 8M10 19q-.425 0-.712-.288T9 18t.288-.712T10 17h10q.425 0 .713.288T21 18t-.288.713T20 19zm0-6q-.425 0-.712-.288T9 12t.288-.712T10 11h10q.425 0 .713.288T21 12t-.288.713T20 13zm0-6q-.425 0-.712-.288T9 6t.288-.712T10 5h10q.425 0 .713.288T21 6t-.288.713T20 7z"},null,-1),Joe=[Xoe];function Zoe(t,e){return Y(),te("svg",Yoe,[...Joe])}const eae={name:"material-symbols-format-list-numbered-rounded",render:Zoe},tae={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},rae=N("path",{fill:"currentColor",d:"M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h6q.425 0 .713.288T12 4t-.288.713T11 5H5v14h6q.425 0 .713.288T12 20t-.288.713T11 21zm12.175-8H10q-.425 0-.712-.288T9 12t.288-.712T10 11h7.175L15.3 9.125q-.275-.275-.275-.675t.275-.7t.7-.313t.725.288L20.3 11.3q.3.3.3.7t-.3.7l-3.575 3.575q-.3.3-.712.288t-.713-.313q-.275-.3-.262-.712t.287-.688z"},null,-1),nae=[rae];function iae(t,e){return Y(),te("svg",tae,[...nae])}const oae={name:"material-symbols-logout-rounded",render:iae},aae={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},sae=N("path",{fill:"currentColor",d:"M12 5q-.425 0-.712-.288T11 4V2q0-.425.288-.712T12 1t.713.288T13 2v2q0 .425-.288.713T12 5m4.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-.275M20 13q-.425 0-.713-.288T19 12t.288-.712T20 11h2q.425 0 .713.288T23 12t-.288.713T22 13zm-8 10q-.425 0-.712-.288T11 22v-2q0-.425.288-.712T12 19t.713.288T13 20v2q0 .425-.288.713T12 23M5.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-.275m12.7 12.725l-1.4-1.425q-.275-.3-.275-.712t.275-.688t.688-.275t.712.275l1.425 1.4q.3.275.288.7t-.288.725q-.3.3-.725.3t-.7-.3M2 13q-.425 0-.712-.288T1 12t.288-.712T2 11h2q.425 0 .713.288T5 12t-.288.713T4 13zm2.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-.3M12 18q-2.5 0-4.25-1.75T6 12t1.75-4.25T12 6t4.25 1.75T18 12t-1.75 4.25T12 18m0-2q1.65 0 2.825-1.175T16 12t-1.175-2.825T12 8T9.175 9.175T8 12t1.175 2.825T12 16m0-4"},null,-1),lae=[sae];function cae(t,e){return Y(),te("svg",aae,[...lae])}const dae={name:"material-symbols-sunny-outline-rounded",render:cae},uae={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},fae=N("path",{fill:"currentColor",d:"M8.65 20H6q-.825 0-1.412-.587T4 18v-2.65L2.075 13.4q-.275-.3-.425-.662T1.5 12t.15-.737t.425-.663L4 8.65V6q0-.825.588-1.412T6 4h2.65l1.95-1.925q.3-.275.663-.425T12 1.5t.738.15t.662.425L15.35 4H18q.825 0 1.413.588T20 6v2.65l1.925 1.95q.275.3.425.663t.15.737t-.15.738t-.425.662L20 15.35V18q0 .825-.587 1.413T18 20h-2.65l-1.95 1.925q-.3.275-.662.425T12 22.5t-.737-.15t-.663-.425zm.85-2l2.5 2.5l2.5-2.5H18v-3.5l2.5-2.5L18 9.5V6h-3.5L12 3.5L9.5 6H6v3.5L3.5 12L6 14.5V18zm2.5-1q2.075 0 3.538-1.463T17 12t-1.463-3.537T12 7z"},null,-1),hae=[fae];function pae(t,e){return Y(),te("svg",uae,[...hae])}const mae={name:"material-symbols-brightness6-outline-rounded",render:pae},vae={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},gae=N("path",{fill:"currentColor",d:"M12 21q-3.775 0-6.387-2.613T3 12q0-3.45 2.25-5.988T11 3.05q.325-.05.575.088t.4.362t.163.525t-.188.575q-.425.65-.638 1.375T11.1 7.5q0 2.25 1.575 3.825T16.5 12.9q.775 0 1.538-.225t1.362-.625q.275-.175.563-.162t.512.137q.25.125.388.375t.087.6q-.35 3.45-2.937 5.725T12 21m0-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 19m-.25-6.75"},null,-1),_ae=[gae];function yae(t,e){return Y(),te("svg",vae,[..._ae])}const bae={name:"material-symbols-dark-mode-outline-rounded",render:yae};const WI=["role","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"];WI.map(GI);function GI(t){return t.replace("aria","aria-").replace(/Elements?/g,"").toLowerCase()}function en(t){for(const e of WI)t.createProperty(e,{attribute:GI(e),reflect:!0});t.addInitializer(e=>{const r={hostConnected(){e.setAttribute("role","presentation")}};e.addController(r)})}class $m extends ft{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 me` - `}getRenderClasses(){return{}}}Xr(bm);O([H({type:Boolean})],bm.prototype,"multiselect",void 0);O([Ar({flatten:!0})],bm.prototype,"buttons",void 0);class nae extends bm{getRenderClasses(){return{...super.getRenderClasses(),"md3-segmented-button-set--outlined":!0}}}const iae=He`: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));--_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(--md-outlined-segmented-button-shape, var(--md-sys-shape-corner-full, 9999px)));--_shape-start-end: var(--md-outlined-segmented-button-shape-start-end, var(--md-outlined-segmented-button-shape, var(--md-sys-shape-corner-full, 9999px)));--_shape-end-end: var(--md-outlined-segmented-button-shape-end-end, var(--md-outlined-segmented-button-shape, var(--md-sys-shape-corner-full, 9999px)));--_shape-end-start: var(--md-outlined-segmented-button-shape-end-start, var(--md-outlined-segmented-button-shape, var(--md-sys-shape-corner-full, 9999px)))} -`;const oae=He`: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)} -`;let wy=class extends nae{};wy.styles=[oae,iae];wy=O([ot("md-outlined-segmented-button-set")],wy);const FI=Symbol("attachableController");let zh;zh=new MutationObserver(t=>{var e;for(const r of t)(e=r.target[FI])==null||e.hostConnected()});class NI{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[FI]=this,zh==null||zh.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 aae=["focusin","focusout","pointerdown"];class w1 extends dt{constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new NI(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[B5]){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[B5]=!0}}onControlChange(e,r){for(const n of aae)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)}}O([H({type:Boolean,reflect:!0})],w1.prototype,"visible",void 0);O([H({type:Boolean,reflect:!0})],w1.prototype,"inward",void 0);const B5=Symbol("handledByFocusRing");const sae=He`: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, var(--md-sys-shape-corner-full, 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, var(--md-sys-shape-corner-full, 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, var(--md-sys-shape-corner-full, 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, var(--md-sys-shape-corner-full, 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, var(--md-sys-shape-corner-full, 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, var(--md-sys-shape-corner-full, 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, var(--md-sys-shape-corner-full, 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, var(--md-sys-shape-corner-full, 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}} -`;let Ty=class extends w1{};Ty.styles=[sae];Ty=O([ot("md-focus-ring")],Ty);const wi={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 lae(){let t=null;return{start(){return t==null||t.abort(),t=new AbortController,t.signal},finish(){t=null}}}const cae=450,U5=225,dae=.2,uae=10,fae=75,hae=.35,pae="::after",mae="forwards";var rn;(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"})(rn||(rn={}));const vae=["click","contextmenu","pointercancel","pointerdown","pointerenter","pointerleave","pointerup"],gae=150,qg=window.matchMedia("(forced-colors: active)");class Au extends dt{constructor(){super(...arguments),this.disabled=!1,this.hovered=!1,this.pressed=!1,this.rippleSize="",this.rippleScale="",this.initialSize=0,this.state=rn.INACTIVE,this.checkBoundsAfterContextMenu=!1,this.attachableController=new NI(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 ve`
`}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!==rn.INACTIVE&&this.endPressAnimation())}handlePointerup(e){if(this.shouldReactToEvent(e)){if(this.state===rn.HOLDING){this.state=rn.WAITING_FOR_CLICK;return}if(this.state===rn.TOUCH_DELAY){this.state=rn.WAITING_FOR_CLICK,this.startPressAnimation(this.rippleStartEvent);return}}}async handlePointerdown(e){if(this.shouldReactToEvent(e)){if(this.rippleStartEvent=e,!this.isTouch(e)){this.state=rn.WAITING_FOR_CLICK,this.startPressAnimation(e);return}this.checkBoundsAfterContextMenu&&!this.inBounds(e)||(this.checkBoundsAfterContextMenu=!1,this.state=rn.TOUCH_DELAY,await new Promise(r=>{setTimeout(r,gae)}),this.state===rn.TOUCH_DELAY&&(this.state=rn.HOLDING,this.startPressAnimation(e)))}}handleClick(){if(!this.disabled){if(this.state===rn.WAITING_FOR_CLICK){this.endPressAnimation();return}this.state===rn.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(hae*n,fae),o=Math.floor(n*dae),l=Math.sqrt(r**2+e**2)+uae;this.initialSize=o,this.rippleScale=`${(l+i)/o}`,this.rippleSize=`${o}px`}getNormalizedPointerEventCoords(e){const{scrollX:r,scrollY:n}=window,{left:i,top:o}=this.getBoundingClientRect(),a=r+i,l=n+o,{pageX:d,pageY:u}=e;return{x:d-a,y:u-l}}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:pae,duration:cae,easing:wi.STANDARD,fill:mae})}async endPressAnimation(){this.rippleStartEvent=void 0,this.state=rn.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>=U5){this.pressed=!1;return}await new Promise(n=>{setTimeout(n,U5-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){if(!(qg!=null&&qg.matches))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 vae)e==null||e.removeEventListener(n,this),r==null||r.addEventListener(n,this)}}O([H({type:Boolean,reflect:!0})],Au.prototype,"disabled",void 0);O([Pt()],Au.prototype,"hovered",void 0);O([Pt()],Au.prototype,"pressed",void 0);O([gt(".surface")],Au.prototype,"mdRoot",void 0);const _ae=He`:host{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(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));inset:0;transition:opacity 15ms linear,background-color 15ms linear}.surface::after{background:radial-gradient(closest-side, var(--md-ripple-pressed-color, var(--md-sys-color-on-surface, #1d1b20)) max(100% - 70px, 65%), transparent 100%);transform-origin:center center;transition:opacity 375ms linear}.hovered::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-ripple-hover-opacity, 0.08)}.pressed::after{opacity:var(--md-ripple-pressed-opacity, 0.12);transition-duration:105ms} -`;let Ey=class extends Au{};Ey.styles=[_ae];Ey=O([ot("md-ripple")],Ey);class Po extends dt{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 ve` + `}getRenderClasses(){return{}}}en($m);O([H({type:Boolean})],$m.prototype,"multiselect",void 0);O([Or({flatten:!0})],$m.prototype,"buttons",void 0);class xae extends $m{getRenderClasses(){return{...super.getRenderClasses(),"md3-segmented-button-set--outlined":!0}}}const wae=He`: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));--_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(--md-outlined-segmented-button-shape, var(--md-sys-shape-corner-full, 9999px)));--_shape-start-end: var(--md-outlined-segmented-button-shape-start-end, var(--md-outlined-segmented-button-shape, var(--md-sys-shape-corner-full, 9999px)));--_shape-end-end: var(--md-outlined-segmented-button-shape-end-end, var(--md-outlined-segmented-button-shape, var(--md-sys-shape-corner-full, 9999px)));--_shape-end-start: var(--md-outlined-segmented-button-shape-end-start, var(--md-outlined-segmented-button-shape, var(--md-sys-shape-corner-full, 9999px)))} +`;const Tae=He`: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)} +`;let My=class extends xae{};My.styles=[Tae,wae];My=O([st("md-outlined-segmented-button-set")],My);const QI=Symbol("attachableController");let Kh;Kh=new MutationObserver(t=>{var e;for(const r of t)(e=r.target[QI])==null||e.hostConnected()});class KI{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[QI]=this,Kh==null||Kh.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 Eae=["focusin","focusout","pointerdown"];class F1 extends ft{constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new KI(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[J5]){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[J5]=!0}}onControlChange(e,r){for(const n of Eae)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)}}O([H({type:Boolean,reflect:!0})],F1.prototype,"visible",void 0);O([H({type:Boolean,reflect:!0})],F1.prototype,"inward",void 0);const J5=Symbol("handledByFocusRing");const kae=He`: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, var(--md-sys-shape-corner-full, 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, var(--md-sys-shape-corner-full, 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, var(--md-sys-shape-corner-full, 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, var(--md-sys-shape-corner-full, 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, var(--md-sys-shape-corner-full, 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, var(--md-sys-shape-corner-full, 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, var(--md-sys-shape-corner-full, 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, var(--md-sys-shape-corner-full, 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}} +`;let Fy=class extends F1{};Fy.styles=[kae];Fy=O([st("md-focus-ring")],Fy);const Ei={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 Cae(){let t=null;return{start(){return t==null||t.abort(),t=new AbortController,t.signal},finish(){t=null}}}const Aae=450,Z5=225,Sae=.2,Iae=10,$ae=75,Oae=.35,Pae="::after",Rae="forwards";var sn;(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"})(sn||(sn={}));const Dae=["click","contextmenu","pointercancel","pointerdown","pointerenter","pointerleave","pointerup"],Lae=150,Zg=window.matchMedia("(forced-colors: active)");class zu extends ft{constructor(){super(...arguments),this.disabled=!1,this.hovered=!1,this.pressed=!1,this.rippleSize="",this.rippleScale="",this.initialSize=0,this.state=sn.INACTIVE,this.checkBoundsAfterContextMenu=!1,this.attachableController=new KI(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 me`
`}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!==sn.INACTIVE&&this.endPressAnimation())}handlePointerup(e){if(this.shouldReactToEvent(e)){if(this.state===sn.HOLDING){this.state=sn.WAITING_FOR_CLICK;return}if(this.state===sn.TOUCH_DELAY){this.state=sn.WAITING_FOR_CLICK,this.startPressAnimation(this.rippleStartEvent);return}}}async handlePointerdown(e){if(this.shouldReactToEvent(e)){if(this.rippleStartEvent=e,!this.isTouch(e)){this.state=sn.WAITING_FOR_CLICK,this.startPressAnimation(e);return}this.checkBoundsAfterContextMenu&&!this.inBounds(e)||(this.checkBoundsAfterContextMenu=!1,this.state=sn.TOUCH_DELAY,await new Promise(r=>{setTimeout(r,Lae)}),this.state===sn.TOUCH_DELAY&&(this.state=sn.HOLDING,this.startPressAnimation(e)))}}handleClick(){if(!this.disabled){if(this.state===sn.WAITING_FOR_CLICK){this.endPressAnimation();return}this.state===sn.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(Oae*n,$ae),o=Math.floor(n*Sae),l=Math.sqrt(r**2+e**2)+Iae;this.initialSize=o,this.rippleScale=`${(l+i)/o}`,this.rippleSize=`${o}px`}getNormalizedPointerEventCoords(e){const{scrollX:r,scrollY:n}=window,{left:i,top:o}=this.getBoundingClientRect(),a=r+i,l=n+o,{pageX:d,pageY:u}=e;return{x:d-a,y:u-l}}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:Pae,duration:Aae,easing:Ei.STANDARD,fill:Rae})}async endPressAnimation(){this.rippleStartEvent=void 0,this.state=sn.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>=Z5){this.pressed=!1;return}await new Promise(n=>{setTimeout(n,Z5-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){if(!(Zg!=null&&Zg.matches))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 Dae)e==null||e.removeEventListener(n,this),r==null||r.addEventListener(n,this)}}O([H({type:Boolean,reflect:!0})],zu.prototype,"disabled",void 0);O([Lt()],zu.prototype,"hovered",void 0);O([Lt()],zu.prototype,"pressed",void 0);O([xt(".surface")],zu.prototype,"mdRoot",void 0);const Mae=He`:host{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(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));inset:0;transition:opacity 15ms linear,background-color 15ms linear}.surface::after{background:radial-gradient(closest-side, var(--md-ripple-pressed-color, var(--md-sys-color-on-surface, #1d1b20)) max(100% - 70px, 65%), transparent 100%);transform-origin:center center;transition:opacity 375ms linear}.hovered::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-ripple-hover-opacity, 0.08)}.pressed::after{opacity:var(--md-ripple-pressed-opacity, 0.12);transition-duration:105ms} +`;let Ny=class extends zu{};Ny.styles=[Mae];Ny=O([st("md-ripple")],Ny);class Fo extends ft{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 me` - `}getRenderClasses(){return{"md3-segmented-button--selected":this.selected,"md3-segmented-button--unselected":!this.selected,"md3-segmented-button--with-label":this.label!=="","md3-segmented-button--without-label":this.label==="","md3-segmented-button--with-icon":this.hasIcon,"md3-segmented-button--with-checkmark":!this.noCheckmark,"md3-segmented-button--without-checkmark":this.noCheckmark,"md3-segmented-button--selecting":this.animState==="selecting","md3-segmented-button--deselecting":this.animState==="deselecting"}}renderOutline(){return me}renderLeading(){return this.label===""?this.renderLeadingWithoutLabel():this.renderLeadingWithLabel()}renderLeadingWithoutLabel(){return ve` + `}getRenderClasses(){return{"md3-segmented-button--selected":this.selected,"md3-segmented-button--unselected":!this.selected,"md3-segmented-button--with-label":this.label!=="","md3-segmented-button--without-label":this.label==="","md3-segmented-button--with-icon":this.hasIcon,"md3-segmented-button--with-checkmark":!this.noCheckmark,"md3-segmented-button--without-checkmark":this.noCheckmark,"md3-segmented-button--selecting":this.animState==="selecting","md3-segmented-button--deselecting":this.animState==="deselecting"}}renderOutline(){return pe}renderLeading(){return this.label===""?this.renderLeadingWithoutLabel():this.renderLeadingWithLabel()}renderLeadingWithoutLabel(){return me` - `}renderLeadingWithLabel(){return ve` + `}renderLeadingWithLabel(){return me` - `}renderLabel(){return ve` + `}renderLabel(){return me` ${this.label} - `}renderTouchTarget(){return ve``}}Xr(Po);O([H({type:Boolean})],Po.prototype,"disabled",void 0);O([H({type:Boolean})],Po.prototype,"selected",void 0);O([H()],Po.prototype,"label",void 0);O([H({type:Boolean,attribute:"no-checkmark"})],Po.prototype,"noCheckmark",void 0);O([H({type:Boolean,attribute:"has-icon"})],Po.prototype,"hasIcon",void 0);O([Pt()],Po.prototype,"animState",void 0);O([Ar({slot:"icon",flatten:!0})],Po.prototype,"iconElement",void 0);class yae extends Po{getRenderClasses(){return{...super.getRenderClasses(),"md3-segmented-button--outlined":!0}}renderOutline(){return ve``}}const bae=He`: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, var(--md-sys-shape-corner-full, 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(--md-sys-shape-corner-full, 9999px));--_shape-start-end: var(--md-outlined-segmented-button-shape-start-end, var(--md-sys-shape-corner-full, 9999px));--_shape-end-end: var(--md-outlined-segmented-button-shape-end-end, var(--md-sys-shape-corner-full, 9999px));--_shape-end-start: var(--md-outlined-segmented-button-shape-end-start, var(--md-sys-shape-corner-full, 9999px));--_spacing-leading: var(--md-outlined-segmented-button-spacing-leading, 12px);--_spacing-trailing: var(--md-outlined-segmented-button-spacing-trailing, 12px)}.md3-segmented-button__outline{border-radius:inherit;border-style:solid;border-width:1px;inset:0px -0.5px;pointer-events:none;position:absolute} -`;const xae=He`@keyframes md3-segmented-button-checkmark-selection-draw-in{from{stroke-dashoffset:29.7833385}to{stroke-dashoffset:0}}@keyframes md3-segmented-button-simple-fade-out{from{opacity:1}to{opacity:0}}@keyframes md3-segmented-button-simple-fade-in{from{opacity:0}to{opacity:1}}:host{display:inline-flex;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.md3-segmented-button{align-items:center;background:rgba(0,0,0,0);border:none;border-radius:inherit;display:flex;flex:1;justify-content:center;outline:none;position:relative;vertical-align:middle;padding-inline-start:var(--_spacing-leading);padding-inline-end:var(--_spacing-trailing);text-transform:inherit}.md3-segmented-button .md3-segmented-button__outline{border-color:var(--_outline-color)}.md3-segmented-button:disabled .md3-segmented-button__outline{border-color:var(--_disabled-outline-color)}.md3-segmented-button .md3-segmented-button__graphic,.md3-segmented-button .md3-segmented-button__checkmark,.md3-segmented-button .md3-segmented-button__icon,.md3-segmented-button .md3-segmented-button__icon ::slotted([slot=icon]){height:var(--_icon-size);width:var(--_icon-size);font-size:var(--_icon-size)}.md3-segmented-button.md3-segmented-button--with-icon.md3-segmented-button--with-label .md3-segmented-button__graphic,.md3-segmented-button.md3-segmented-button--selected.md3-segmented-button--with-label.md3-segmented-button--with-checkmark .md3-segmented-button__graphic,.md3-segmented-button.md3-segmented-button--selected.md3-segmented-button--without-label.md3-segmented-button--with-checkmark .md3-segmented-button__graphic{width:calc(var(--_icon-size) + 8px)}.md3-segmented-button .md3-segmented-button__label-text{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)}.md3-segmented-button.md3-segmented-button--selected:enabled .md3-segmented-button__label-text{color:var(--_selected-label-text-color)}.md3-segmented-button.md3-segmented-button--selected:enabled:hover .md3-segmented-button__label-text{color:var(--_selected-hover-label-text-color)}.md3-segmented-button.md3-segmented-button--selected:enabled:focus .md3-segmented-button__label-text{color:var(--_selected-focus-label-text-color)}.md3-segmented-button.md3-segmented-button--selected:enabled:active .md3-segmented-button__label-text{color:var(--_selected-pressed-label-text-color)}.md3-segmented-button.md3-segmented-button--unselected:enabled .md3-segmented-button__label-text{color:var(--_unselected-label-text-color)}.md3-segmented-button.md3-segmented-button--unselected:enabled:hover .md3-segmented-button__label-text{color:var(--_unselected-hover-label-text-color)}.md3-segmented-button.md3-segmented-button--unselected:enabled:focus .md3-segmented-button__label-text{color:var(--_unselected-focus-label-text-color)}.md3-segmented-button.md3-segmented-button--unselected:enabled:active .md3-segmented-button__label-text{color:var(--_unselected-pressed-label-text-color)}.md3-segmented-button:disabled .md3-segmented-button__label-text{color:var(--_disabled-label-text-color)}.md3-segmented-button--unselected{--md-ripple-hover-color: var(--_unselected-hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_unselected-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.md3-segmented-button--unselected .md3-segmented-button__icon{color:var(--_unselected-icon-color)}.md3-segmented-button--unselected:hover .md3-segmented-button__icon{color:var(--_unselected-hover-icon-color)}.md3-segmented-button--unselected:focus .md3-segmented-button__icon{color:var(--_unselected-focus-icon-color)}.md3-segmented-button--unselected:active .md3-segmented-button__icon{color:var(--_unselected-pressed-icon-color)}.md3-segmented-button--unselected:disabled .md3-segmented-button__icon{color:var(--_disabled-icon-color)}.md3-segmented-button--selected{background-color:var(--_selected-container-color);--md-ripple-hover-color: var(--_selected-hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_selected-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.md3-segmented-button--selected .md3-segmented-button__icon{color:var(--_selected-icon-color)}.md3-segmented-button--selected .md3-segmented-button__checkmark-path{stroke:var(--_selected-icon-color)}.md3-segmented-button--selected:hover .md3-segmented-button__checkmark-path{stroke:var(--_selected-hover-icon-color)}.md3-segmented-button--selected:focus .md3-segmented-button__checkmark-path{stroke:var(--_selected-focus-icon-color)}.md3-segmented-button--selected:active .md3-segmented-button__checkmark-path{stroke:var(--_selected-pressed-icon-color)}.md3-segmented-button--selected:disabled .md3-segmented-button__checkmark-path{stroke:var(--_disabled-icon-color)}.md3-segmented-button:enabled{cursor:pointer}.md3-segmented-button__focus-ring{z-index:1}.md3-segmented-button__ripple{border-radius:inherit;z-index:0}.md3-segmented-button__touch{position:absolute;top:50%;height:48px;left:50%;width:100%;transform:translate(-50%, -50%)}.md3-segmented-button__leading,.md3-segmented-button__graphic{display:inline-flex;justify-content:flex-start;align-items:center}.md3-segmented-button__graphic{position:relative;overflow:hidden}.md3-segmented-button__graphic{transition:width 150ms cubic-bezier(0.4, 0, 0.2, 1)}.md3-segmented-button--unselected.md3-segmented-button--with-label .md3-segmented-button__graphic,.md3-segmented-button--unselected.md3-segmented-button--without-label .md3-segmented-button__graphic,.md3-segmented-button--selected.md3-segmented-button--without-checkmark .md3-segmented-button__graphic{width:0}.md3-segmented-button--unselected .md3-segmented-button__checkmark{opacity:0}.md3-segmented-button--selected.md3-segmented-button--with-label .md3-segmented-button__icon{opacity:0}.md3-segmented-button--with-label .md3-segmented-button__checkmark{display:inline-flex;position:absolute}.md3-segmented-button__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385}.md3-segmented-button--selecting .md3-segmented-button__checkmark-path{stroke-dashoffset:29.7833385;animation:md3-segmented-button-checkmark-selection-draw-in;animation-duration:150ms;animation-delay:50ms;animation-fill-mode:forwards;animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.md3-segmented-button--selecting.md3-segmented-button--with-label .md3-segmented-button__icon{animation:md3-segmented-button-simple-fade-out;animation-duration:75ms;animation-timing-function:linear;animation-fill-mode:forwards}.md3-segmented-button--deselecting .md3-segmented-button__checkmark{animation:md3-segmented-button-simple-fade-out;animation-duration:50ms;animation-timing-function:linear;animation-fill-mode:forwards}.md3-segmented-button--deselecting.md3-segmented-button--with-label .md3-segmented-button__icon{opacity:0;animation:md3-segmented-button-simple-fade-in;animation-delay:50ms;animation-duration:150ms;animation-timing-function:linear;animation-fill-mode:forwards} -`;let ky=class extends yae{};ky.styles=[xae,bae];ky=O([ot("md-outlined-segmented-button")],ky);const wae=t=>(ko("data-v-0e60f0ae"),t=t(),Co(),t),Tae={class:"theme-changer"},Eae={id:"hex"},kae={class:"label"},Cae={class:"input-wrapper"},Aae={class:"overflow"},Sae=["value"],Iae=wae(()=>N("md-focus-ring",{for:"color-input"},null,-1)),$ae=["selected"],Oae=["selected"],Pae=["selected"],Rae=Dt({__name:"ThemeChanger",setup(t){const e=Le(F0()),r=Le(Ad());function n(o){r.value=o,mS(o)}function i(o){e.value=o.target.value,pS(e.value)}return(o,a)=>{const l=rae,d=Xoe,u=Woe;return J(),re("div",Tae,[N("div",null,[N("label",Eae,[N("span",kae,Me(o.$t("color")),1),N("span",Cae,[N("div",Aae,[N("input",{id:"color-input",onInput:i,type:"color",value:e.value},null,40,Sae)]),Iae])])]),N("md-outlined-segmented-button-set",null,[N("md-outlined-segmented-button",{"data-value":"dark",selected:r.value==="dark",onClick:a[0]||(a[0]=f=>n("dark"))},[Pe(l,{slot:"icon"})],8,$ae),N("md-outlined-segmented-button",{"data-value":"auto",selected:r.value==="auto",onClick:a[1]||(a[1]=f=>n("auto"))},[Pe(d,{slot:"icon"})],8,Oae),N("md-outlined-segmented-button",{"data-value":"light",selected:r.value==="light",onClick:a[2]||(a[2]=f=>n("light"))},[Pe(u,{slot:"icon"})],8,Pae)])])}}}),Dae=Tn(Rae,[["__scopeId","data-v-0e60f0ae"]]),Lae={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Mae=N("path",{fill:"currentColor",d:"M12 22q-2.05 0-3.875-.788t-3.187-2.15t-2.15-3.187T2 12q0-2.075.813-3.9t2.2-3.175T8.25 2.788T12.2 2q2 0 3.775.688t3.113 1.9t2.125 2.875T22 11.05q0 2.875-1.75 4.413T16 17h-1.85q-.225 0-.312.125t-.088.275q0 .3.375.863t.375 1.287q0 1.25-.687 1.85T12 22m-5.5-9q.65 0 1.075-.425T8 11.5t-.425-1.075T6.5 10t-1.075.425T5 11.5t.425 1.075T6.5 13m3-4q.65 0 1.075-.425T11 7.5t-.425-1.075T9.5 6t-1.075.425T8 7.5t.425 1.075T9.5 9m5 0q.65 0 1.075-.425T16 7.5t-.425-1.075T14.5 6t-1.075.425T13 7.5t.425 1.075T14.5 9m3 4q.65 0 1.075-.425T19 11.5t-.425-1.075T17.5 10t-1.075.425T16 11.5t.425 1.075T17.5 13M12 20q.225 0 .363-.125t.137-.325q0-.35-.375-.825T11.75 17.3q0-1.05.725-1.675T14.25 15H16q1.65 0 2.825-.962T20 11.05q0-3.025-2.312-5.038T12.2 4Q8.8 4 6.4 6.325T4 12q0 3.325 2.338 5.663T12 20"},null,-1),Fae=[Mae];function Nae(t,e){return J(),re("svg",Lae,[...Fae])}const zae={name:"material-symbols-palette-outline",render:Nae},qae={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Bae=N("path",{fill:"currentColor",d:"m15.075 18.95l-.85 2.425q-.1.275-.35.45t-.55.175q-.5 0-.812-.413t-.113-.912l3.8-10.05q.125-.275.375-.45t.55-.175h.75q.3 0 .55.175t.375.45L22.6 20.7q.2.475-.1.888t-.8.412q-.325 0-.562-.175t-.363-.475l-.85-2.4zM9.05 13.975L4.7 18.3q-.275.275-.687.288T3.3 18.3q-.275-.275-.275-.7t.275-.7l4.35-4.35q-.875-.875-1.588-2T4.75 8h2.1q.5.975 1 1.7t1.2 1.45q.825-.825 1.713-2.313T12.1 6H2q-.425 0-.712-.288T1 5t.288-.712T2 4h6V3q0-.425.288-.712T9 2t.713.288T10 3v1h6q.425 0 .713.288T17 5t-.288.713T16 6h-1.9q-.525 1.8-1.575 3.7t-2.075 2.9l2.4 2.45l-.75 2.05zM15.7 17.2h3.6l-1.8-5.1z"},null,-1),Uae=[Bae];function Vae(t,e){return J(),re("svg",qae,[...Uae])}const jae={name:"material-symbols-translate-rounded",render:Vae},T1=t=>(ko("data-v-fbb2ebf7"),t=t(),Co(),t),Hae={class:"h-action",style:{position:"relative"}},Wae=T1(()=>N("md-ripple",null,null,-1)),Gae=["open"],Qae=["onClick"],Kae={slot:"headline"},Yae={class:"h-action",style:{position:"relative"}},Xae=T1(()=>N("md-ripple",null,null,-1)),Jae=["open"],Zae=T1(()=>N("md-ripple",null,null,-1)),ese=Dt({__name:"HeaderActions",props:{loggedIn:{type:Boolean}},setup(t){const e=t,r=Le(!1),n=Le(!1),{locale:i,t:o}=zn(),a=[{name:"English",value:"en-US"},{name:"简体中文",value:"zh-CN"},{name:"繁体中文",value:"zh-TW"},{name:"español",value:"es"},{name:"日本語",value:"ja"},{name:"Nederlands",value:"nl"},{name:"italiano",value:"it"},{name:"हिन्दी",value:"hi"},{name:"français",value:"fr"},{name:"русский язык",value:"ru"},{name:"বাংলা",value:"bn"},{name:"Deutsch",value:"de"},{name:"Português",value:"pt"},{name:"தமிழ்",value:"ta"},{name:"한국어",value:"ko"},{name:"Türkçe",value:"tr"},{name:"Tiếng Việt",value:"vi"}];function l(u){r.value=!1,i.value=u,localStorage.setItem("locale",u),document.title=o("app_name")}function d(){localStorage.clear(),window.location.reload()}return(u,f)=>{const g=jae,y=zae,x=Dae,m=Boe,p=Ao("tooltip");return J(),re($t,null,[N("div",Hae,[lt((J(),re("button",{class:"btn-icon",id:"lang-ref",onClick:f[0]||(f[0]=()=>r.value=!0)},[Wae,Pe(g)])),[[p,oe(o)("header_actions.language")]]),N("md-menu",{anchor:"lang-ref","stay-open-on-focusout":"",quick:"",open:r.value,onClosed:f[1]||(f[1]=()=>r.value=!1)},[(J(),re($t,null,oi(a,_=>N("md-menu-item",{key:_.value,onClick:v=>l(_.value)},[N("div",Kae,Me(_.name),1)],8,Qae)),64))],40,Gae)]),N("div",Yae,[lt((J(),re("button",{class:"btn-icon",id:"theme-ref",onClick:f[2]||(f[2]=()=>n.value=!0)},[Xae,Pe(y)])),[[p,oe(o)("header_actions.theme")]]),N("md-menu",{anchor:"theme-ref","stay-open-on-focusout":"",quick:"",open:n.value,onClosed:f[3]||(f[3]=()=>n.value=!1)},[Pe(x)],40,Jae)]),e.loggedIn?lt((J(),re("button",{key:0,class:"btn-icon h-action",style:{"margin-inline-end":"8px"},onClick:d},[Zae,Pe(m)])),[[p,u.$t("header_actions.logout")]]):yt("",!0)],64)}}}),tse=Tn(ese,[["__scopeId","data-v-fbb2ebf7"]]),zI=t=>(ko("data-v-034bd5b7"),t=t(),Co(),t),rse=zI(()=>N("span",{class:"right-arrow"},null,-1)),nse=[rse],ise=zI(()=>N("span",{class:"right-arrow"},null,-1)),ose=[ise],ase=["disabled","onMouseenter","onFocus","onClick"],sse={slot:"headline"},lse=Dt({__name:"ContextSubMenu",props:{items:{type:Object,default:null},parentItem:{type:Object,default:null},options:{type:Object,default:null},zIndex:{type:Number,default:0},globalData:{type:Object,default:null},position:{type:Object,default:null}},emits:["close","keepOpen","preUpdatePos"],setup(t,{emit:e}){const r=t,n=e,{globalData:i,position:o,options:a,parentItem:l}=$p(r),d=Le(),u=Le(),f=Le(!1),g=Le(!1);let y=null;const x=Le(0),m=Le(null),p=Le({parentPosition:{x:0,y:0},screenSize:i.value.screenSize}),_=Le({x:0,y:0});function v(q,Z){if(Z.disabled||!Z.children||Z.children.length==0||m.value===Z)return;m.value=Z,p.value.parentPosition.x=i.value.parentPosition.x+o.value.x,p.value.parentPosition.y=i.value.parentPosition.y+o.value.y,d.value&&(_.value.x=d.value.offsetWidth+(a.value.xOffset||0));const we=q.target;we&&(_.value.y=we.offsetTop+(a.value.yOffset||0))}function b(){y=m.value,setTimeout(()=>{y===m.value&&(m.value=null)})}Ot(m,(q,Z)=>{q&&Z&&setTimeout(()=>{u.value&&u.value.doCheckPos()},50)});function w(q){b(),q&&n("close",!0)}function E(q){y===q&&(y=null),n("keepOpen",l.value)}function C(q){_.value.x=q.x,_.value.y=q.y}function S(q){q.disabled||(typeof q.onClick=="function"?(q.onClick(),n("close",!0)):(!q.children||q.children.length===0)&&n("close",!0))}function P(){n("keepOpen",l.value)}function R(q){q.relatedTarget!=null&&n("close",!1)}function D(q){d.value&&(d.value.scrollTop+=q?30:-30)}let z=0;function j(){const q=d.value,Z=i.value;if(q){const we={x:o.value.x,y:o.value.y},$e=Z.parentPosition.x+o.value.x+q.offsetWidth;if($e>Z.screenSize.w&&(we.x-=$e-Z.screenSize.w),q.offsetHeight>Z.screenSize.h-30)x.value=Z.screenSize.h-30,we.y=-Z.parentPosition.y,g.value=!0;else{g.value=!1,x.value=0;const ye=Z.parentPosition.y+o.value.y+q.offsetHeight;ye>Z.screenSize.h&&(we.y-=ye-Z.screenSize.h+30)}n("preUpdatePos",we),f.value=!0}}return Ur(()=>{z=window.setTimeout(()=>j(),100)}),Ii(()=>{z>0&&(clearTimeout(z),z=0)}),(q,Z)=>{const we=Qb("ContextSubMenu",!0);return t.items?(J(),re("div",{key:0,class:Pn("context-menu "+(oe(a).customClass?oe(a).customClass:"")+(f.value?" ready":"")),style:ka({maxWidth:oe(l)&&oe(l).maxWidth?`${oe(l).maxWidth}px`:"600px",minWidth:oe(l)&&oe(l).minWidth?`${oe(l).minWidth}px`:"100px",zIndex:t.zIndex,left:`${oe(o).x}px`,top:`${oe(o).y}px`}),onMouseenter:P,onMouseleave:Z[4]||(Z[4]=$e=>R($e))},[lt(N("div",{class:"context-menu-updown up",onClick:Z[0]||(Z[0]=$e=>D(!1))},nse,512),[[_n,g.value]]),lt(N("div",{class:"context-menu-updown down",onClick:Z[1]||(Z[1]=$e=>D(!0))},ose,512),[[_n,g.value]]),N("div",{class:"context-menu-items",ref_key:"menu",ref:d,style:ka({maxHeight:x.value>0?`${x.value}px`:""})},[(J(!0),re($t,null,oi(t.items,($e,ye)=>(J(),re("md-menu-item",{key:ye,disabled:$e.disabled,onMouseenter:ke=>v(ke,$e),onMouseleave:Z[2]||(Z[2]=ke=>b()),onFocus:ke=>v(ke,$e),onBlur:Z[3]||(Z[3]=ke=>b()),onClick:ke=>S($e)},[N("div",sse,Me($e.label),1)],40,ase))),128))],4),m.value&&m.value.children?(J(),kr(we,{key:0,ref_key:"childMenu",ref:u,zIndex:t.zIndex+1,items:m.value.children,parentItem:m.value,options:oe(a),globalData:p.value,position:_.value,onClose:w,onKeepOpen:E,onPreUpdatePos:C},null,8,["zIndex","items","parentItem","options","globalData","position"])):yt("",!0)],38)):yt("",!0)}}}),cse=Tn(lse,[["__scopeId","data-v-034bd5b7"]]),Bg={defaultMinWidth:100,defaultMaxWidth:600,defaultStartZindex:1},dse=Dt({__name:"ContextMenu",props:{options:{type:Object,default:null},show:{type:Boolean,default:!1}},emits:["update:show","close"],setup(t,{emit:e}){const r=e,n=t,i=Le({x:0,y:0}),o={parentPosition:{x:0,y:0},screenSize:{w:window.innerWidth,h:window.innerHeight}};function a(){i.value.x=n.options.x,i.value.y=n.options.y}function l(){r("update:show",!1),r("close")}function d(g){g&&l()}function u(g){i.value.x=g.x,i.value.y=g.y}const f=g=>{g.key==="Escape"&&l()};return Ur(()=>{document.addEventListener("keydown",f),a(),setTimeout(()=>{document.addEventListener("click",l),document.addEventListener("contextmenu",l)},100)}),Ii(()=>{document.removeEventListener("keydown",f),document.removeEventListener("click",l)}),Ot(()=>n.show,g=>{g&&a()}),(g,y)=>{const x=cse;return t.show?(J(),kr(x,{key:0,items:t.options.items,parentItem:{maxWidth:t.options.maxWidth||oe(Bg).defaultMaxWidth,minWidth:t.options.minWidth||oe(Bg).defaultMinWidth},options:t.options,"z-index":t.options.zIndex||oe(Bg).defaultStartZindex,globalData:o,position:i.value,"on-close":d,onPreUpdatePos:u},null,8,["items","parentItem","options","z-index","position"])):yt("",!0)}}}),use=t=>{const e=document.createElement("div"),r=Ui(dse,{options:t,show:!0,onClose:()=>{p_(null,e)}});return p_(r,e),document.body.appendChild(e.firstElementChild),r.component},Yxe=(t,e,r)=>({resizeWidth:n=>{const i=n.clientX,o=e(),a=document.getElementById("app");a&&(a.style.userSelect="none");const l=u=>{let f=o+(u.clientX-i);f{a==null||a.style.removeProperty("user-select"),window.removeEventListener("mousemove",l),window.removeEventListener("mouseup",d)};window.addEventListener("mousemove",l),window.addEventListener("mouseup",d)}}),fse=(t,e,r)=>({resizeWidth:n=>{const i=n.clientX,o=e(),a=document.getElementById("app");a&&(a.style.userSelect="none");const l=u=>{let f=o+i-u.clientX;f{a==null||a.style.removeProperty("user-select"),window.removeEventListener("mousemove",l),window.removeEventListener("mouseup",d)};window.addEventListener("mousemove",l),window.addEventListener("mouseup",d)}}),bc=t=>(ko("data-v-ed1e5c6b"),t=t(),Co(),t),hse={key:0,class:"content-loading"},pse=bc(()=>N("md-circular-progress",{indeterminate:""},null,-1)),mse=[pse],vse={key:1,class:"alert alert-danger"},gse={key:2,class:"layout"},_se={id:"header"},yse={class:"start"},bse={class:"tab-items"},xse=["onClick","onContextmenu"],wse=["onClick"],Tse=bc(()=>N("md-ripple",null,null,-1)),Ese={class:"end"},kse={class:"page-content"},Cse={class:"quick"},Ase=bc(()=>N("md-ripple",null,null,-1)),Sse=bc(()=>N("md-ripple",null,null,-1)),Ise=bc(()=>N("md-ripple",null,null,-1)),$se=bc(()=>N("md-ripple",null,null,-1)),Ose=Dt({__name:"MainView",setup(t){const e=Fs(),r=Vj(),n=Va(),{app:i,urlTokenKey:o}=Cs(n),{t:a}=zn(),l=Le(!0),d=Le("");let u=!1;const f=It(()=>n.uploads.length>0);function g(){const R=r.currentRoute.value;return(R.meta.group??"")+(R.query.q??"")}function y(R){e.quick===R?e.quick="":e.quick=R}const{refetch:x}=gm({handle:(R,D)=>{var z;if(l.value=!1,D)d.value=D;else if(R){const j=(z=i.value)==null?void 0:z.urlToken,q=R.app.urlToken;o.value=z0(q),j!==q&&(window.fileIdMap=new Map),i.value=R.app,u&&(u=!1,Tt.emit("do_play_audio"))}},document:tee,appApi:!0}),{resizeWidth:m}=fse(300,()=>e.quickContentWidth,R=>{e.quickContentWidth=R});function p(R,D){R.preventDefault();const z=[];D!=="/"&&z.push({label:a("close"),onClick:()=>{C(D)}}),z.push({label:a("close_other_tabs"),onClick:()=>{La(e.pages,j=>j.path!==D),_.value!==D&&_.value!=="/"&&E(D)}}),z.push({label:a("close_tabs_to_the_right"),onClick:()=>{const j=e.pages.findIndex(q=>q.path===D);La(e.pages,q=>e.pages.indexOf(q)>j),_.value!==D&&_.value!=="/"&&E(D)}}),use({x:R.x,y:R.y,items:z})}const _=Le(r.currentRoute.value.fullPath);Ot(()=>r.currentRoute.value.fullPath,R=>{_.value=R});const v=()=>{x()},b=()=>{u=!0,x()},w=R=>{R.type==="AUDIO"&&x()};Ur(()=>{Tt.on("refetch_app",v),Tt.on("play_audio",b),Tt.on("media_items_actioned",w)}),za(()=>{Tt.off("refetch_app",v),Tt.off("play_audio",b),Tt.off("media_items_actioned",w)});function E(R){r.push(R)}function C(R){const D=e.pages.findIndex(z=>z.path===R);D!==-1&&(e.pages.splice(D,1),_.value===R&&(e.pages.length?D{localStorage.setItem("main_state",JSON.stringify(R)),_.value=r.currentRoute.value.fullPath},{deep:!0});const S=localStorage.getItem("main_state");if(S){const R=JSON.parse(S);if(R.pages){const D=[];R.pages.forEach(z=>{typeof z=="string"?D.push({path:z}):D.push(z)}),R.pages=D}e.$state={...e.$state,...R}}const P=R=>{["/","/login"].includes(R.path)||e.pages.some(D=>D.path===R.fullPath)||e.pages.push({path:R.fullPath})};return P(r.currentRoute.value),r.afterEach((R,D,z)=>{P(R)}),(R,D)=>{const z=wu,j=tse,q=Qb("router-view"),Z=Moe,we=Ooe,$e=Coe,ye=xoe,ke=voe,Ie=uoe,Be=Tie,Re=vne,se=kre,Te=Nte,Oe=Ao("tooltip");return l.value?(J(),re("div",hse,mse)):d.value?(J(),re("div",vse,Me(R.$t(d.value)),1)):(J(),re("div",gse,[N("header",_se,[N("section",yse,[N("div",bse,[N("div",{class:Pn(["tab-item",{active:_.value==="/"}]),onClick:D[0]||(D[0]=Ce=>E("/")),key:"/",onContextmenu:D[1]||(D[1]=Ce=>p(Ce,"/"))},[N("span",null,Me(R.$t("page_title.home")),1)],34),(J(!0),re($t,null,oi(oe(e).pages,Ce=>(J(),re("div",{key:Ce.path,onClick:je=>E(Ce.path),class:Pn(["tab-item",{active:_.value===Ce.path}]),onContextmenu:je=>p(je,Ce.path)},[N("span",null,Me(R.$t(`page_title.${oe(Rse)(Ce.path)}`)),1),N("button",{class:"btn-icon sm tab-icon",onClick:wt(je=>C(Ce.path),["stop"])},[Tse,Pe(z)],8,wse)],42,xse))),128))])]),N("section",Ese,[Pe(j,{"logged-in":!0})])]),N("div",kse,[Pe(q,{name:"LeftSidebar"},{default:Dn(({Component:Ce})=>[(J(),kr(Yv,null,[(J(),kr(fd(Ce),{key:R.$route.meta.group}))],1024))]),_:1}),N("main",{class:Pn(["main","main-"+(R.$route.meta.className||"default")])},[Pe(q,{name:"LeftSidebar2"},{default:Dn(({Component:Ce})=>[(J(),kr(Yv,null,[(J(),kr(fd(Ce),{key:g()}))],1024))]),_:1}),Pe(q,null,{default:Dn(({Component:Ce})=>[(J(),kr(Yv,{exclude:"NoteEditView"},[(J(),kr(fd(Ce),{key:R.$route.fullPath}))],1024))]),_:1})],2)]),N("div",Cse,[lt((J(),re("button",{class:Pn(["btn-icon q-action",{selected:oe(e).quick==="task"}]),onClick:D[2]||(D[2]=Ce=>y("task")),toggle:""},[Ase,Pe(Z)],2)),[[_n,f.value],[Oe,R.$t("header_actions.tasks")]]),oe(i).channel!=="GOOGLE"?lt((J(),re("button",{key:0,class:Pn(["btn-icon q-action",{selected:oe(e).quick==="notification"}]),onClick:D[3]||(D[3]=Ce=>y("notification")),toggle:""},[Sse,Pe(we)],2)),[[Oe,R.$t("header_actions.notifications")]]):yt("",!0),lt((J(),re("button",{id:"quick-audio",class:Pn(["btn-icon q-action",{selected:oe(e).quick==="audio"}]),onClick:D[4]||(D[4]=Ce=>y("audio")),toggle:""},[Ise,Pe($e)],2)),[[Oe,R.$t("playlist")]]),lt((J(),re("button",{class:Pn(["btn-icon q-action",{selected:oe(e).quick==="chat"}]),onClick:D[5]||(D[5]=Ce=>y("chat")),toggle:""},[$se,Pe(ye)],2)),[[Oe,R.$t("my_phone")]]),lt(N("div",{class:"drag-indicator",onMousedown:D[6]||(D[6]=(...Ce)=>oe(m)&&oe(m)(...Ce))},[Pe(ke)],544),[[_n,oe(e).quick]])]),Pe(qp,{name:"width"},{default:Dn(()=>[lt(N("div",{class:"quick-content",style:ka({width:oe(e).quickContentWidth+"px"})},[lt(Pe(Ie,null,null,512),[[_n,oe(e).quick==="task"]]),lt(Pe(Be,null,null,512),[[_n,oe(e).quick==="chat"]]),lt(Pe(Re,null,null,512),[[_n,oe(e).quick==="audio"]]),lt(Pe(se,null,null,512),[[_n,oe(e).quick==="notification"]])],4),[[_n,oe(e).quick]])]),_:1}),Pe(Te)]))}}}),Pse=Tn(Ose,[["__scopeId","data-v-ed1e5c6b"]]),qi=Bj({strict:!0,history:vj(),scrollBehavior(t,e,r){return r||{top:0}},routes:[{path:"/",component:Pse,meta:{requiresAuth:!0},children:[{name:"home",path:"",components:{default:()=>ut(()=>import("./HomeView-nno0lqBn.js"),__vite__mapDeps([0,1,2,3,4]))},meta:{group:"home"}},{path:"messages",components:{default:()=>ut(()=>import("./MessagesView-BAu1BpGj.js"),__vite__mapDeps([5,6,7,8,9,3,10,11,12,13,14,15,16])),LeftSidebar:()=>ut(()=>import("./MessagesSidebar-BMS62ogM.js"),__vite__mapDeps([17,18,19,20,21,13,22,10]))},meta:{group:"messages"}},{path:"calls",components:{default:()=>ut(()=>import("./CallsView-DC8TWXew.js"),__vite__mapDeps([23,6,7,8,9,3,10,11,15,12,13,14,24])),LeftSidebar:()=>ut(()=>import("./CallsSidebar-DRbWt7_C.js"),__vite__mapDeps([25,18,19,20,21,13,22,10]))},meta:{group:"calls"}},{path:"apps",components:{default:()=>ut(()=>import("./AppsView-89NMnT97.js"),__vite__mapDeps([26,6,8,9,3,10,11,27,15,28])),LeftSidebar:()=>ut(()=>import("./AppsSidebar-Cj1CrVM6.js"),__vite__mapDeps([29,18,10]))},meta:{group:"apps"}},{path:"contacts",components:{default:()=>ut(()=>import("./ContactsView-CSK3a-nc.js"),__vite__mapDeps([30,6,7,2,8,9,3,10,11,13,12,14,15,31])),LeftSidebar:()=>ut(()=>import("./ContactsSidebar-D1mwAWK5.js"),__vite__mapDeps([32,18,19,20,21,13,22,10]))},meta:{group:"contacts"}},{path:"images",components:{default:()=>ut(()=>import("./ImagesView-BVWs9mJH.js"),__vite__mapDeps([33,6,34,8,9,3,10,11,27,35,36,37,12,13,14,15,38,39])),LeftSidebar:()=>ut(()=>import("./ImagesSidebar-DfZzf2UQ.js"),__vite__mapDeps([40,41,18,19,20,21,13,22,10,39]))},meta:{group:"images"}},{path:"videos",components:{default:()=>ut(()=>import("./VideosView-DteZXZKB.js"),__vite__mapDeps([42,6,34,8,9,3,10,11,27,35,36,37,12,13,14,15,38,39])),LeftSidebar:()=>ut(()=>import("./VideosSidebar-DOxCYXc4.js"),__vite__mapDeps([43,41,18,19,20,21,13,22,10,39]))},meta:{group:"videos"}},{path:"audios",components:{default:()=>ut(()=>import("./AudiosView-4yfLJMGs.js"),__vite__mapDeps([44,6,8,9,3,10,11,27,35,36,37,15,12,13,14,38,39,45])),LeftSidebar:()=>ut(()=>import("./AudiosSidebar-CBgA4bNr.js"),__vite__mapDeps([46,41,18,19,20,21,13,22,10,39]))},meta:{group:"audios"}},{path:"notes/:id",component:()=>ut(()=>import("./NoteEditView-vDUpCxeq.js"),__vite__mapDeps([47,48,49,50,51,52])),meta:{group:"notes"}},{path:"notes",components:{default:()=>ut(()=>import("./NotesView-D09b0SdB.js"),__vite__mapDeps([53,6,8,9,3,10,11,36,37,15,12,13,14,54])),LeftSidebar:()=>ut(()=>import("./NotesSidebar-DLd9XA5A.js"),__vite__mapDeps([55,18,19,20,21,13,22,10]))},meta:{group:"notes"}},{path:"aichats/:id",component:()=>ut(()=>import("./AIChatView-DWTZwDqz.js"),__vite__mapDeps([56,51,57])),meta:{group:"aichats"}},{path:"aichats",components:{default:()=>ut(()=>import("./AIChatsView-DVptoi35.js"),__vite__mapDeps([58,6,8,9,3,10,11,15,12,13,14])),LeftSidebar:()=>ut(()=>import("./AIChatsSidebar-CaTw6QFf.js"),__vite__mapDeps([59,18,19,20,21,13,22,10]))},meta:{group:"aichats"}},{path:"files",components:{default:()=>ut(()=>import("./FilesView-P-UuQ7zs.js"),__vite__mapDeps([60,20,27,61,1,35,9,37,62,21,13,22,15,63])),LeftSidebar:()=>ut(()=>import("./FilesSidebar-DGzsCKBr.js"),__vite__mapDeps([64,18]))},meta:{group:"files",className:"files"}},{path:"files/recent",components:{default:()=>ut(()=>import("./FilesRecentView-CNtr3u0V.js"),__vite__mapDeps([65,62,15])),LeftSidebar:()=>ut(()=>import("./FilesSidebar-DGzsCKBr.js"),__vite__mapDeps([64,18]))},meta:{group:"files",className:"files"}},{path:"json-viewer",component:()=>ut(()=>import("./JsonViewerView-dUM7kA38.js"),__vite__mapDeps([66,48,49,67])),meta:{group:"json_viewer"}},{path:"qrcode-generator",component:()=>ut(()=>import("./QrCodeGeneratorView-DcFeB_XT.js"),__vite__mapDeps([68,69])),meta:{group:"qrcode_generator"}},{path:"screen-mirror",component:()=>ut(()=>import("./ScreenMirrorView-C9zlEI1C.js"),__vite__mapDeps([70,61,71])),meta:{group:"screen_mirror"}},{path:"device-info",component:()=>ut(()=>import("./DeviceInfoView-DqZ-NosA.js"),__vite__mapDeps([72,73])),meta:{group:"device_info"}},{path:"network",component:()=>ut(()=>import("./NetworkView-BUYTQiCk.js"),__vite__mapDeps([74,48,49,75,76,77])),meta:{group:"network"}},{path:"wifi",component:()=>ut(()=>import("./WiFiView-Ddi8fsYG.js"),__vite__mapDeps([78,48,49,75,76,77,13])),meta:{group:"wifi"}},{path:"wireguard",component:()=>ut(()=>import("./WireGuardView-ByT6F4P7.js"),__vite__mapDeps([79,76,77,80])),meta:{group:"wireguard"}},{path:"wireguard/:id",component:()=>ut(()=>import("./WireGuardEditView-Bny0NhIz.js"),__vite__mapDeps([81,48,49,75,76,77,80])),meta:{group:"wireguard"}},{path:"rules",component:()=>ut(()=>import("./RulesView-BRxrR5pV.js"),__vite__mapDeps([82,83,13])),meta:{group:"rules"}},{path:"routes",component:()=>ut(()=>import("./RoutesView-aNsquRXJ.js"),__vite__mapDeps([84,83,13])),meta:{group:"routes"}},{path:"devices",component:()=>ut(()=>import("./DevicesView-DLXN6G6M.js"),__vite__mapDeps([85,76,77,21,13,22])),meta:{group:"devices"}},{path:"feeds",components:{LeftSidebar:()=>ut(()=>import("./FeedsSidebar-BlMq6Zgz.js"),__vite__mapDeps([86,18,19,20,21,13,22,87,10,88])),LeftSidebar2:()=>ut(()=>import("./FeedsSidebar2-CGc8dY8M.js"),__vite__mapDeps([89,20,8,9,3,10,11,90,87,15,12,13,14,91]))},meta:{group:"feeds",className:"feeds"}},{path:"feeds/:feedId/entries/:id",components:{default:()=>ut(()=>import("./FeedEntryView-2EJadICJ.js"),__vite__mapDeps([92,50,90,51,87,93])),LeftSidebar:()=>ut(()=>import("./FeedsSidebar-BlMq6Zgz.js"),__vite__mapDeps([86,18,19,20,21,13,22,87,10,88])),LeftSidebar2:()=>ut(()=>import("./FeedsSidebar2-CGc8dY8M.js"),__vite__mapDeps([89,20,8,9,3,10,11,90,87,15,12,13,14,91]))},meta:{group:"feeds",className:"feed-entry"}}]},{name:"login",path:"/login",component:()=>ut(()=>import("./LoginView-iF0mahQu.js"),__vite__mapDeps([94,13,95])),meta:{requiresAuth:!1}}]}),qI=new Map;qi.beforeEach(async(t,e)=>{var i;const r=(i=document.getElementsByClassName("main")[0])==null?void 0:i.scrollTop;r!==void 0&&qI.set(e.fullPath,r);const n=localStorage.getItem("auth_token");if(t.meta.requiresAuth&&!n)return{path:"/login",query:{redirect:t.fullPath}};clearTimeout(globalThis.showTooltipTimeout),setTimeout(()=>{const o=document.getElementsByClassName("tooltip");for(const a of o)document.body.removeChild(a)},100)});qi.afterEach((t,e)=>{setTimeout(()=>{const r=document.getElementsByClassName("main")[0];if(r){const n=qI.get(t.fullPath);r.scrollTop=n||0}},0)});const Xxe=(t,e)=>{const r=qi.currentRoute.value.fullPath;qi.currentRoute.value.fullPath=e,t.pages.findIndex(i=>i.path===e)!==-1?window.history.pushState({},document.title,e):(window.history.replaceState({},document.title,e),t.replaceRoute(r,e))},E1=(t,e)=>{if(t.pages.findIndex(n=>n.path===e)!==-1)qi.push(e);else{const n=qi.currentRoute.value.fullPath;qi.replace(e),t.replaceRoute(n,e)}},Jxe=t=>{setTimeout(()=>{qi.push(t)},0)},Rse=t=>qi.resolve(t).meta.group;class Dse extends dt{connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){return ve``}}const Lse=He`:host,.shadow,.shadow::before,.shadow::after{border-radius:inherit;inset:0;position:absolute;transition-duration:inherit;transition-property:inherit;transition-timing-function:inherit}:host{display:flex;pointer-events:none;transition-property:box-shadow,opacity}.shadow::before,.shadow::after{content:"";transition-property:box-shadow,opacity;--_level: var(--md-elevation-level, 0);--_shadow-color: var(--md-elevation-shadow-color, var(--md-sys-color-shadow, #000))}.shadow::before{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 3,1) + 2*clamp(0,var(--_level) - 4,1))) calc(1px*(2*clamp(0,var(--_level),1) + clamp(0,var(--_level) - 2,1) + clamp(0,var(--_level) - 4,1))) 0px var(--_shadow-color);opacity:.3}.shadow::after{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 1,1) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(3*clamp(0,var(--_level),2) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(clamp(0,var(--_level),4) + 2*clamp(0,var(--_level) - 4,1))) var(--_shadow-color);opacity:.15} -`;let Cy=class extends Dse{};Cy.styles=[Lse];Cy=O([ot("md-elevation")],Cy);const Br=Symbol("internals"),Ug=Symbol("privateInternals");function ja(t){class e extends t{get[Br](){return this[Ug]||(this[Ug]=this.attachInternals()),this[Ug]}}return e}function BI(t){t.addInitializer(e=>{const r=e;r.addEventListener("click",async n=>{const{type:i,[Br]:o}=r,{form:a}=o;if(!(!a||i==="button")&&(await new Promise(l=>{setTimeout(l)}),!n.defaultPrevented)){if(i==="reset"){a.reset();return}a.addEventListener("submit",l=>{Object.defineProperty(l,"submitter",{configurable:!0,enumerable:!0,get:()=>r})},{capture:!0,once:!0}),o.setFormValue(r.value),a.requestSubmit()}})})}function xm(t){const e=new MouseEvent("click",{bubbles:!0});return t.dispatchEvent(e),e}function Su(t){return t.currentTarget!==t.target||t.composedPath()[0]!==t.target||t.target.disabled?!1:!Mse(t)}function Mse(t){const e=Ay;return e&&(t.preventDefault(),t.stopImmediatePropagation()),Fse(),e}let Ay=!1;async function Fse(){Ay=!0,await null,Ay=!1}const Nse=ja(dt);class Dr extends Nse{get name(){return this.getAttribute("name")??""}set name(e){this.setAttribute("name",e)}get form(){return this[Br].form}constructor(){super(),this.disabled=!1,this.href="",this.target="",this.trailingIcon=!1,this.hasIcon=!1,this.type="submit",this.value="",this.handleActivationClick=e=>{!Su(e)||!this.buttonElement||(this.focus(),xm(this.buttonElement))},this.addEventListener("click",this.handleActivationClick)}focus(){var e;(e=this.buttonElement)==null||e.focus()}blur(){var e;(e=this.buttonElement)==null||e.blur()}render(){var i;const e=this.disabled&&!this.href,r=this.href?this.renderLink():this.renderButton(),n=this.href?"link":"button";return ve` + `}renderTouchTarget(){return me``}}en(Fo);O([H({type:Boolean})],Fo.prototype,"disabled",void 0);O([H({type:Boolean})],Fo.prototype,"selected",void 0);O([H()],Fo.prototype,"label",void 0);O([H({type:Boolean,attribute:"no-checkmark"})],Fo.prototype,"noCheckmark",void 0);O([H({type:Boolean,attribute:"has-icon"})],Fo.prototype,"hasIcon",void 0);O([Lt()],Fo.prototype,"animState",void 0);O([Or({slot:"icon",flatten:!0})],Fo.prototype,"iconElement",void 0);class Fae extends Fo{getRenderClasses(){return{...super.getRenderClasses(),"md3-segmented-button--outlined":!0}}renderOutline(){return me``}}const Nae=He`: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, var(--md-sys-shape-corner-full, 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(--md-sys-shape-corner-full, 9999px));--_shape-start-end: var(--md-outlined-segmented-button-shape-start-end, var(--md-sys-shape-corner-full, 9999px));--_shape-end-end: var(--md-outlined-segmented-button-shape-end-end, var(--md-sys-shape-corner-full, 9999px));--_shape-end-start: var(--md-outlined-segmented-button-shape-end-start, var(--md-sys-shape-corner-full, 9999px));--_spacing-leading: var(--md-outlined-segmented-button-spacing-leading, 12px);--_spacing-trailing: var(--md-outlined-segmented-button-spacing-trailing, 12px)}.md3-segmented-button__outline{border-radius:inherit;border-style:solid;border-width:1px;inset:0px -0.5px;pointer-events:none;position:absolute} +`;const zae=He`@keyframes md3-segmented-button-checkmark-selection-draw-in{from{stroke-dashoffset:29.7833385}to{stroke-dashoffset:0}}@keyframes md3-segmented-button-simple-fade-out{from{opacity:1}to{opacity:0}}@keyframes md3-segmented-button-simple-fade-in{from{opacity:0}to{opacity:1}}:host{display:inline-flex;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.md3-segmented-button{align-items:center;background:rgba(0,0,0,0);border:none;border-radius:inherit;display:flex;flex:1;justify-content:center;outline:none;position:relative;vertical-align:middle;padding-inline-start:var(--_spacing-leading);padding-inline-end:var(--_spacing-trailing);text-transform:inherit}.md3-segmented-button .md3-segmented-button__outline{border-color:var(--_outline-color)}.md3-segmented-button:disabled .md3-segmented-button__outline{border-color:var(--_disabled-outline-color)}.md3-segmented-button .md3-segmented-button__graphic,.md3-segmented-button .md3-segmented-button__checkmark,.md3-segmented-button .md3-segmented-button__icon,.md3-segmented-button .md3-segmented-button__icon ::slotted([slot=icon]){height:var(--_icon-size);width:var(--_icon-size);font-size:var(--_icon-size)}.md3-segmented-button.md3-segmented-button--with-icon.md3-segmented-button--with-label .md3-segmented-button__graphic,.md3-segmented-button.md3-segmented-button--selected.md3-segmented-button--with-label.md3-segmented-button--with-checkmark .md3-segmented-button__graphic,.md3-segmented-button.md3-segmented-button--selected.md3-segmented-button--without-label.md3-segmented-button--with-checkmark .md3-segmented-button__graphic{width:calc(var(--_icon-size) + 8px)}.md3-segmented-button .md3-segmented-button__label-text{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)}.md3-segmented-button.md3-segmented-button--selected:enabled .md3-segmented-button__label-text{color:var(--_selected-label-text-color)}.md3-segmented-button.md3-segmented-button--selected:enabled:hover .md3-segmented-button__label-text{color:var(--_selected-hover-label-text-color)}.md3-segmented-button.md3-segmented-button--selected:enabled:focus .md3-segmented-button__label-text{color:var(--_selected-focus-label-text-color)}.md3-segmented-button.md3-segmented-button--selected:enabled:active .md3-segmented-button__label-text{color:var(--_selected-pressed-label-text-color)}.md3-segmented-button.md3-segmented-button--unselected:enabled .md3-segmented-button__label-text{color:var(--_unselected-label-text-color)}.md3-segmented-button.md3-segmented-button--unselected:enabled:hover .md3-segmented-button__label-text{color:var(--_unselected-hover-label-text-color)}.md3-segmented-button.md3-segmented-button--unselected:enabled:focus .md3-segmented-button__label-text{color:var(--_unselected-focus-label-text-color)}.md3-segmented-button.md3-segmented-button--unselected:enabled:active .md3-segmented-button__label-text{color:var(--_unselected-pressed-label-text-color)}.md3-segmented-button:disabled .md3-segmented-button__label-text{color:var(--_disabled-label-text-color)}.md3-segmented-button--unselected{--md-ripple-hover-color: var(--_unselected-hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_unselected-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.md3-segmented-button--unselected .md3-segmented-button__icon{color:var(--_unselected-icon-color)}.md3-segmented-button--unselected:hover .md3-segmented-button__icon{color:var(--_unselected-hover-icon-color)}.md3-segmented-button--unselected:focus .md3-segmented-button__icon{color:var(--_unselected-focus-icon-color)}.md3-segmented-button--unselected:active .md3-segmented-button__icon{color:var(--_unselected-pressed-icon-color)}.md3-segmented-button--unselected:disabled .md3-segmented-button__icon{color:var(--_disabled-icon-color)}.md3-segmented-button--selected{background-color:var(--_selected-container-color);--md-ripple-hover-color: var(--_selected-hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_selected-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.md3-segmented-button--selected .md3-segmented-button__icon{color:var(--_selected-icon-color)}.md3-segmented-button--selected .md3-segmented-button__checkmark-path{stroke:var(--_selected-icon-color)}.md3-segmented-button--selected:hover .md3-segmented-button__checkmark-path{stroke:var(--_selected-hover-icon-color)}.md3-segmented-button--selected:focus .md3-segmented-button__checkmark-path{stroke:var(--_selected-focus-icon-color)}.md3-segmented-button--selected:active .md3-segmented-button__checkmark-path{stroke:var(--_selected-pressed-icon-color)}.md3-segmented-button--selected:disabled .md3-segmented-button__checkmark-path{stroke:var(--_disabled-icon-color)}.md3-segmented-button:enabled{cursor:pointer}.md3-segmented-button__focus-ring{z-index:1}.md3-segmented-button__ripple{border-radius:inherit;z-index:0}.md3-segmented-button__touch{position:absolute;top:50%;height:48px;left:50%;width:100%;transform:translate(-50%, -50%)}.md3-segmented-button__leading,.md3-segmented-button__graphic{display:inline-flex;justify-content:flex-start;align-items:center}.md3-segmented-button__graphic{position:relative;overflow:hidden}.md3-segmented-button__graphic{transition:width 150ms cubic-bezier(0.4, 0, 0.2, 1)}.md3-segmented-button--unselected.md3-segmented-button--with-label .md3-segmented-button__graphic,.md3-segmented-button--unselected.md3-segmented-button--without-label .md3-segmented-button__graphic,.md3-segmented-button--selected.md3-segmented-button--without-checkmark .md3-segmented-button__graphic{width:0}.md3-segmented-button--unselected .md3-segmented-button__checkmark{opacity:0}.md3-segmented-button--selected.md3-segmented-button--with-label .md3-segmented-button__icon{opacity:0}.md3-segmented-button--with-label .md3-segmented-button__checkmark{display:inline-flex;position:absolute}.md3-segmented-button__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385}.md3-segmented-button--selecting .md3-segmented-button__checkmark-path{stroke-dashoffset:29.7833385;animation:md3-segmented-button-checkmark-selection-draw-in;animation-duration:150ms;animation-delay:50ms;animation-fill-mode:forwards;animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.md3-segmented-button--selecting.md3-segmented-button--with-label .md3-segmented-button__icon{animation:md3-segmented-button-simple-fade-out;animation-duration:75ms;animation-timing-function:linear;animation-fill-mode:forwards}.md3-segmented-button--deselecting .md3-segmented-button__checkmark{animation:md3-segmented-button-simple-fade-out;animation-duration:50ms;animation-timing-function:linear;animation-fill-mode:forwards}.md3-segmented-button--deselecting.md3-segmented-button--with-label .md3-segmented-button__icon{opacity:0;animation:md3-segmented-button-simple-fade-in;animation-delay:50ms;animation-duration:150ms;animation-timing-function:linear;animation-fill-mode:forwards} +`;let zy=class extends Fae{};zy.styles=[zae,Nae];zy=O([st("md-outlined-segmented-button")],zy);const qae=t=>(Io("data-v-0e60f0ae"),t=t(),$o(),t),Bae={class:"theme-changer"},Vae={id:"hex"},Uae={class:"label"},jae={class:"input-wrapper"},Hae={class:"overflow"},Wae=["value"],Gae=qae(()=>N("md-focus-ring",{for:"color-input"},null,-1)),Qae=["selected"],Kae=["selected"],Yae=["selected"],Xae=Dt({__name:"ThemeChanger",setup(t){const e=Le(X0()),r=Le(zd());function n(o){r.value=o,CS(o)}function i(o){e.value=o.target.value,kS(e.value)}return(o,a)=>{const l=bae,d=mae,u=dae;return Y(),te("div",Bae,[N("div",null,[N("label",Vae,[N("span",Uae,Me(o.$t("color")),1),N("span",jae,[N("div",Hae,[N("input",{id:"color-input",onInput:i,type:"color",value:e.value},null,40,Wae)]),Gae])])]),N("md-outlined-segmented-button-set",null,[N("md-outlined-segmented-button",{"data-value":"dark",selected:r.value==="dark",onClick:a[0]||(a[0]=f=>n("dark"))},[$e(l,{slot:"icon"})],8,Qae),N("md-outlined-segmented-button",{"data-value":"auto",selected:r.value==="auto",onClick:a[1]||(a[1]=f=>n("auto"))},[$e(d,{slot:"icon"})],8,Kae),N("md-outlined-segmented-button",{"data-value":"light",selected:r.value==="light",onClick:a[2]||(a[2]=f=>n("light"))},[$e(u,{slot:"icon"})],8,Yae)])])}}}),Jae=kn(Xae,[["__scopeId","data-v-0e60f0ae"]]),Zae={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ese=N("path",{fill:"currentColor",d:"M12 22q-2.05 0-3.875-.788t-3.187-2.15t-2.15-3.187T2 12q0-2.075.813-3.9t2.2-3.175T8.25 2.788T12.2 2q2 0 3.775.688t3.113 1.9t2.125 2.875T22 11.05q0 2.875-1.75 4.413T16 17h-1.85q-.225 0-.312.125t-.088.275q0 .3.375.863t.375 1.287q0 1.25-.687 1.85T12 22m-5.5-9q.65 0 1.075-.425T8 11.5t-.425-1.075T6.5 10t-1.075.425T5 11.5t.425 1.075T6.5 13m3-4q.65 0 1.075-.425T11 7.5t-.425-1.075T9.5 6t-1.075.425T8 7.5t.425 1.075T9.5 9m5 0q.65 0 1.075-.425T16 7.5t-.425-1.075T14.5 6t-1.075.425T13 7.5t.425 1.075T14.5 9m3 4q.65 0 1.075-.425T19 11.5t-.425-1.075T17.5 10t-1.075.425T16 11.5t.425 1.075T17.5 13M12 20q.225 0 .363-.125t.137-.325q0-.35-.375-.825T11.75 17.3q0-1.05.725-1.675T14.25 15H16q1.65 0 2.825-.962T20 11.05q0-3.025-2.312-5.038T12.2 4Q8.8 4 6.4 6.325T4 12q0 3.325 2.338 5.663T12 20"},null,-1),tse=[ese];function rse(t,e){return Y(),te("svg",Zae,[...tse])}const nse={name:"material-symbols-palette-outline",render:rse},ise={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ose=N("path",{fill:"currentColor",d:"m15.075 18.95l-.85 2.425q-.1.275-.35.45t-.55.175q-.5 0-.812-.413t-.113-.912l3.8-10.05q.125-.275.375-.45t.55-.175h.75q.3 0 .55.175t.375.45L22.6 20.7q.2.475-.1.888t-.8.412q-.325 0-.562-.175t-.363-.475l-.85-2.4zM9.05 13.975L4.7 18.3q-.275.275-.687.288T3.3 18.3q-.275-.275-.275-.7t.275-.7l4.35-4.35q-.875-.875-1.588-2T4.75 8h2.1q.5.975 1 1.7t1.2 1.45q.825-.825 1.713-2.313T12.1 6H2q-.425 0-.712-.288T1 5t.288-.712T2 4h6V3q0-.425.288-.712T9 2t.713.288T10 3v1h6q.425 0 .713.288T17 5t-.288.713T16 6h-1.9q-.525 1.8-1.575 3.7t-2.075 2.9l2.4 2.45l-.75 2.05zM15.7 17.2h3.6l-1.8-5.1z"},null,-1),ase=[ose];function sse(t,e){return Y(),te("svg",ise,[...ase])}const lse={name:"material-symbols-translate-rounded",render:sse},N1=t=>(Io("data-v-fbb2ebf7"),t=t(),$o(),t),cse={class:"h-action",style:{position:"relative"}},dse=N1(()=>N("md-ripple",null,null,-1)),use=["open"],fse=["onClick"],hse={slot:"headline"},pse={class:"h-action",style:{position:"relative"}},mse=N1(()=>N("md-ripple",null,null,-1)),vse=["open"],gse=N1(()=>N("md-ripple",null,null,-1)),_se=Dt({__name:"HeaderActions",props:{loggedIn:{type:Boolean}},setup(t){const e=t,r=Le(!1),n=Le(!1),{locale:i,t:o}=Bn(),a=[{name:"English",value:"en-US"},{name:"简体中文",value:"zh-CN"},{name:"繁体中文",value:"zh-TW"},{name:"español",value:"es"},{name:"日本語",value:"ja"},{name:"Nederlands",value:"nl"},{name:"italiano",value:"it"},{name:"हिन्दी",value:"hi"},{name:"français",value:"fr"},{name:"русский язык",value:"ru"},{name:"বাংলা",value:"bn"},{name:"Deutsch",value:"de"},{name:"Português",value:"pt"},{name:"தமிழ்",value:"ta"},{name:"한국어",value:"ko"},{name:"Türkçe",value:"tr"},{name:"Tiếng Việt",value:"vi"}];function l(u){r.value=!1,i.value=u,localStorage.setItem("locale",u),document.title=o("app_name")}function d(){localStorage.clear(),window.location.reload()}return(u,f)=>{const g=lse,y=nse,x=Jae,m=oae,p=Oo("tooltip");return Y(),te($t,null,[N("div",cse,[ot((Y(),te("button",{class:"btn-icon",id:"lang-ref",onClick:f[0]||(f[0]=()=>r.value=!0)},[dse,$e(g)])),[[p,ne(o)("header_actions.language")]]),N("md-menu",{anchor:"lang-ref","stay-open-on-focusout":"",quick:"",open:r.value,onClosed:f[1]||(f[1]=()=>r.value=!1)},[(Y(),te($t,null,ci(a,_=>N("md-menu-item",{key:_.value,onClick:v=>l(_.value)},[N("div",hse,Me(_.name),1)],8,fse)),64))],40,use)]),N("div",pse,[ot((Y(),te("button",{class:"btn-icon",id:"theme-ref",onClick:f[2]||(f[2]=()=>n.value=!0)},[mse,$e(y)])),[[p,ne(o)("header_actions.theme")]]),N("md-menu",{anchor:"theme-ref","stay-open-on-focusout":"",quick:"",open:n.value,onClosed:f[3]||(f[3]=()=>n.value=!1)},[$e(x)],40,vse)]),e.loggedIn?ot((Y(),te("button",{key:0,class:"btn-icon h-action",style:{"margin-inline-end":"8px"},onClick:d},[gse,$e(m)])),[[p,u.$t("header_actions.logout")]]):kt("",!0)],64)}}}),yse=kn(_se,[["__scopeId","data-v-fbb2ebf7"]]),YI=t=>(Io("data-v-034bd5b7"),t=t(),$o(),t),bse=YI(()=>N("span",{class:"right-arrow"},null,-1)),xse=[bse],wse=YI(()=>N("span",{class:"right-arrow"},null,-1)),Tse=[wse],Ese=["disabled","onMouseenter","onFocus","onClick"],kse={slot:"headline"},Cse=Dt({__name:"ContextSubMenu",props:{items:{type:Object,default:null},parentItem:{type:Object,default:null},options:{type:Object,default:null},zIndex:{type:Number,default:0},globalData:{type:Object,default:null},position:{type:Object,default:null}},emits:["close","keepOpen","preUpdatePos"],setup(t,{emit:e}){const r=t,n=e,{globalData:i,position:o,options:a,parentItem:l}=qp(r),d=Le(),u=Le(),f=Le(!1),g=Le(!1);let y=null;const x=Le(0),m=Le(null),p=Le({parentPosition:{x:0,y:0},screenSize:i.value.screenSize}),_=Le({x:0,y:0});function v(q,J){if(J.disabled||!J.children||J.children.length==0||m.value===J)return;m.value=J,p.value.parentPosition.x=i.value.parentPosition.x+o.value.x,p.value.parentPosition.y=i.value.parentPosition.y+o.value.y,d.value&&(_.value.x=d.value.offsetWidth+(a.value.xOffset||0));const be=q.target;be&&(_.value.y=be.offsetTop+(a.value.yOffset||0))}function b(){y=m.value,setTimeout(()=>{y===m.value&&(m.value=null)})}Rt(m,(q,J)=>{q&&J&&setTimeout(()=>{u.value&&u.value.doCheckPos()},50)});function w(q){b(),q&&n("close",!0)}function E(q){y===q&&(y=null),n("keepOpen",l.value)}function C(q){_.value.x=q.x,_.value.y=q.y}function S(q){q.disabled||(typeof q.onClick=="function"?(q.onClick(),n("close",!0)):(!q.children||q.children.length===0)&&n("close",!0))}function P(){n("keepOpen",l.value)}function R(q){q.relatedTarget!=null&&n("close",!1)}function D(q){d.value&&(d.value.scrollTop+=q?30:-30)}let z=0;function j(){const q=d.value,J=i.value;if(q){const be={x:o.value.x,y:o.value.y},Oe=J.parentPosition.x+o.value.x+q.offsetWidth;if(Oe>J.screenSize.w&&(be.x-=Oe-J.screenSize.w),q.offsetHeight>J.screenSize.h-30)x.value=J.screenSize.h-30,be.y=-J.parentPosition.y,g.value=!0;else{g.value=!1,x.value=0;const ge=J.parentPosition.y+o.value.y+q.offsetHeight;ge>J.screenSize.h&&(be.y-=ge-J.screenSize.h+30)}n("preUpdatePos",be),f.value=!0}}return Qr(()=>{z=window.setTimeout(()=>j(),100)}),$i(()=>{z>0&&(clearTimeout(z),z=0)}),(q,J)=>{const be=l0("ContextSubMenu",!0);return t.items?(Y(),te("div",{key:0,class:Dn("context-menu "+(ne(a).customClass?ne(a).customClass:"")+(f.value?" ready":"")),style:Pa({maxWidth:ne(l)&&ne(l).maxWidth?`${ne(l).maxWidth}px`:"600px",minWidth:ne(l)&&ne(l).minWidth?`${ne(l).minWidth}px`:"100px",zIndex:t.zIndex,left:`${ne(o).x}px`,top:`${ne(o).y}px`}),onMouseenter:P,onMouseleave:J[4]||(J[4]=Oe=>R(Oe))},[ot(N("div",{class:"context-menu-updown up",onClick:J[0]||(J[0]=Oe=>D(!1))},xse,512),[[bn,g.value]]),ot(N("div",{class:"context-menu-updown down",onClick:J[1]||(J[1]=Oe=>D(!0))},Tse,512),[[bn,g.value]]),N("div",{class:"context-menu-items",ref_key:"menu",ref:d,style:Pa({maxHeight:x.value>0?`${x.value}px`:""})},[(Y(!0),te($t,null,ci(t.items,(Oe,ge)=>(Y(),te("md-menu-item",{key:ge,disabled:Oe.disabled,onMouseenter:ke=>v(ke,Oe),onMouseleave:J[2]||(J[2]=ke=>b()),onFocus:ke=>v(ke,Oe),onBlur:J[3]||(J[3]=ke=>b()),onClick:ke=>S(Oe)},[N("div",kse,Me(Oe.label),1)],40,Ese))),128))],4),m.value&&m.value.children?(Y(),or(be,{key:0,ref_key:"childMenu",ref:u,zIndex:t.zIndex+1,items:m.value.children,parentItem:m.value,options:ne(a),globalData:p.value,position:_.value,onClose:w,onKeepOpen:E,onPreUpdatePos:C},null,8,["zIndex","items","parentItem","options","globalData","position"])):kt("",!0)],38)):kt("",!0)}}}),Ase=kn(Cse,[["__scopeId","data-v-034bd5b7"]]),e_={defaultMinWidth:100,defaultMaxWidth:600,defaultStartZindex:1},Sse=Dt({__name:"ContextMenu",props:{options:{type:Object,default:null},show:{type:Boolean,default:!1}},emits:["update:show","close"],setup(t,{emit:e}){const r=e,n=t,i=Le({x:0,y:0}),o={parentPosition:{x:0,y:0},screenSize:{w:window.innerWidth,h:window.innerHeight}};function a(){i.value.x=n.options.x,i.value.y=n.options.y}function l(){r("update:show",!1),r("close")}function d(g){g&&l()}function u(g){i.value.x=g.x,i.value.y=g.y}const f=g=>{g.key==="Escape"&&l()};return Qr(()=>{document.addEventListener("keydown",f),a(),setTimeout(()=>{document.addEventListener("click",l),document.addEventListener("contextmenu",l)},100)}),$i(()=>{document.removeEventListener("keydown",f),document.removeEventListener("click",l)}),Rt(()=>n.show,g=>{g&&a()}),(g,y)=>{const x=Ase;return t.show?(Y(),or(x,{key:0,items:t.options.items,parentItem:{maxWidth:t.options.maxWidth||ne(e_).defaultMaxWidth,minWidth:t.options.minWidth||ne(e_).defaultMinWidth},options:t.options,"z-index":t.options.zIndex||ne(e_).defaultStartZindex,globalData:o,position:i.value,"on-close":d,onPreUpdatePos:u},null,8,["items","parentItem","options","z-index","position"])):kt("",!0)}}}),Ise=t=>{const e=document.createElement("div"),r=ji(Sse,{options:t,show:!0,onClose:()=>{S_(null,e)}});return S_(r,e),document.body.appendChild(e.firstElementChild),r.component},f2e=(t,e,r)=>({resizeWidth:n=>{const i=n.clientX,o=e(),a=document.getElementById("app");a&&(a.style.userSelect="none");const l=u=>{let f=o+(u.clientX-i);f{a==null||a.style.removeProperty("user-select"),window.removeEventListener("mousemove",l),window.removeEventListener("mouseup",d)};window.addEventListener("mousemove",l),window.addEventListener("mouseup",d)}}),$se=(t,e,r)=>({resizeWidth:n=>{const i=n.clientX,o=e(),a=document.getElementById("app");a&&(a.style.userSelect="none");const l=u=>{let f=o+i-u.clientX;f{a==null||a.style.removeProperty("user-select"),window.removeEventListener("mousemove",l),window.removeEventListener("mouseup",d)};window.addEventListener("mousemove",l),window.addEventListener("mouseup",d)}}),Sc=t=>(Io("data-v-ed1e5c6b"),t=t(),$o(),t),Ose={key:0,class:"content-loading"},Pse=Sc(()=>N("md-circular-progress",{indeterminate:""},null,-1)),Rse=[Pse],Dse={key:1,class:"alert alert-danger"},Lse={key:2,class:"layout"},Mse={id:"header"},Fse={class:"start"},Nse={class:"tab-items"},zse=["onClick","onContextmenu"],qse=["onClick"],Bse=Sc(()=>N("md-ripple",null,null,-1)),Vse={class:"end"},Use={class:"page-content"},jse={class:"quick"},Hse=Sc(()=>N("md-ripple",null,null,-1)),Wse=Sc(()=>N("md-ripple",null,null,-1)),Gse=Sc(()=>N("md-ripple",null,null,-1)),Qse=Sc(()=>N("md-ripple",null,null,-1)),Kse=Dt({__name:"MainView",setup(t){const e=Gs(),r=jj(),n=Ya(),{app:i,urlTokenKey:o}=Ms(n),{t:a}=Bn(),l=Le(!0),d=Le("");let u=!1;const f=At(()=>n.uploads.length>0);function g(){const R=r.currentRoute.value;return(R.meta.group??"")+(R.query.q??"")}function y(R){e.quick===R?e.quick="":e.quick=R}const{refetch:x}=Am({handle:(R,D)=>{var z;if(l.value=!1,D)d.value=D;else if(R){const j=(z=i.value)==null?void 0:z.urlToken,q=R.app.urlToken;o.value=Z0(q),j!==q&&(window.fileIdMap=new Map),i.value=R.app,u&&(u=!1,gt.emit("do_play_audio"))}},document:vee,appApi:!0}),{resizeWidth:m}=$se(300,()=>e.quickContentWidth,R=>{e.quickContentWidth=R});function p(R,D){R.preventDefault();const z=[];D!=="/"&&z.push({label:a("close"),onClick:()=>{C(D)}}),z.push({label:a("close_other_tabs"),onClick:()=>{Va(e.pages,j=>j.path!==D),_.value!==D&&_.value!=="/"&&E(D)}}),z.push({label:a("close_tabs_to_the_right"),onClick:()=>{const j=e.pages.findIndex(q=>q.path===D);Va(e.pages,q=>e.pages.indexOf(q)>j),_.value!==D&&_.value!=="/"&&E(D)}}),Ise({x:R.x,y:R.y,items:z})}const _=Le(r.currentRoute.value.fullPath);Rt(()=>r.currentRoute.value.fullPath,R=>{_.value=R});const v=()=>{x()},b=()=>{u=!0,x()},w=R=>{R.type==="AUDIO"&&x()};Qr(()=>{gt.on("refetch_app",v),gt.on("play_audio",b),gt.on("media_items_actioned",w)}),Wa(()=>{gt.off("refetch_app",v),gt.off("play_audio",b),gt.off("media_items_actioned",w)});function E(R){r.push(R)}function C(R){const D=e.pages.findIndex(z=>z.path===R);D!==-1&&(e.pages.splice(D,1),_.value===R&&(e.pages.length?D{localStorage.setItem("main_state",JSON.stringify(R)),_.value=r.currentRoute.value.fullPath},{deep:!0});const S=localStorage.getItem("main_state");if(S){const R=JSON.parse(S);if(R.pages){const D=[];R.pages.forEach(z=>{typeof z=="string"?D.push({path:z}):D.push(z)}),R.pages=D}e.$state={...e.$state,...R}}const P=R=>{["/","/login"].includes(R.path)||e.pages.some(D=>D.path===R.fullPath)||e.pages.push({path:R.fullPath})};return P(r.currentRoute.value),r.afterEach((R,D,z)=>{P(R)}),(R,D)=>{const z=Du,j=yse,q=l0("router-view"),J=eae,be=Koe,Oe=joe,ge=zoe,ke=Doe,Se=Ioe,Be=Bie,Re=Dne,se=Ure,we=rre,Pe=Oo("tooltip");return l.value?(Y(),te("div",Ose,Rse)):d.value?(Y(),te("div",Dse,Me(R.$t(d.value)),1)):(Y(),te("div",Lse,[N("header",Mse,[N("section",Fse,[N("div",Nse,[N("div",{class:Dn(["tab-item",{active:_.value==="/"}]),onClick:D[0]||(D[0]=Ce=>E("/")),key:"/",onContextmenu:D[1]||(D[1]=Ce=>p(Ce,"/"))},[N("span",null,Me(R.$t("page_title.home")),1)],34),(Y(!0),te($t,null,ci(ne(e).pages,Ce=>(Y(),te("div",{key:Ce.path,onClick:je=>E(Ce.path),class:Dn(["tab-item",{active:_.value===Ce.path}]),onContextmenu:je=>p(je,Ce.path)},[N("span",null,Me(R.$t(`page_title.${ne(Xse)(Ce.path)}`)),1),N("button",{class:"btn-icon sm tab-icon",onClick:yt(je=>C(Ce.path),["stop"])},[Bse,$e(z)],8,qse)],42,zse))),128))])]),N("section",Vse,[$e(j,{"logged-in":!0})])]),N("div",Use,[$e(q,{name:"LeftSidebar"},{default:Ir(({Component:Ce})=>[(Y(),or(cg,null,[(Y(),or(Ed(Ce),{key:R.$route.meta.group}))],1024))]),_:1}),N("main",{class:Dn(["main","main-"+(R.$route.meta.className||"default")])},[$e(q,{name:"LeftSidebar2"},{default:Ir(({Component:Ce})=>[(Y(),or(cg,null,[(Y(),or(Ed(Ce),{key:g()}))],1024))]),_:1}),$e(q,null,{default:Ir(({Component:Ce})=>[(Y(),or(cg,{exclude:"NoteEditView"},[(Y(),or(Ed(Ce),{key:R.$route.fullPath}))],1024))]),_:1})],2)]),N("div",jse,[ot((Y(),te("button",{class:Dn(["btn-icon q-action",{selected:ne(e).quick==="task"}]),onClick:D[2]||(D[2]=Ce=>y("task")),toggle:""},[Hse,$e(J)],2)),[[bn,f.value],[Pe,R.$t("header_actions.tasks")]]),ne(i).channel!=="GOOGLE"?ot((Y(),te("button",{key:0,class:Dn(["btn-icon q-action",{selected:ne(e).quick==="notification"}]),onClick:D[3]||(D[3]=Ce=>y("notification")),toggle:""},[Wse,$e(be)],2)),[[Pe,R.$t("header_actions.notifications")]]):kt("",!0),ot((Y(),te("button",{id:"quick-audio",class:Dn(["btn-icon q-action",{selected:ne(e).quick==="audio"}]),onClick:D[4]||(D[4]=Ce=>y("audio")),toggle:""},[Gse,$e(Oe)],2)),[[Pe,R.$t("playlist")]]),ot((Y(),te("button",{class:Dn(["btn-icon q-action",{selected:ne(e).quick==="chat"}]),onClick:D[5]||(D[5]=Ce=>y("chat")),toggle:""},[Qse,$e(ge)],2)),[[Pe,R.$t("my_phone")]]),ot(N("div",{class:"drag-indicator",onMousedown:D[6]||(D[6]=(...Ce)=>ne(m)&&ne(m)(...Ce))},[$e(ke)],544),[[bn,ne(e).quick]])]),$e(Yp,{name:"width"},{default:Ir(()=>[ot(N("div",{class:"quick-content",style:Pa({width:ne(e).quickContentWidth+"px"})},[ot($e(Se,null,null,512),[[bn,ne(e).quick==="task"]]),ot($e(Be,null,null,512),[[bn,ne(e).quick==="chat"]]),ot($e(Re,null,null,512),[[bn,ne(e).quick==="audio"]]),ot($e(se,null,null,512),[[bn,ne(e).quick==="notification"]])],4),[[bn,ne(e).quick]])]),_:1}),$e(we)]))}}}),Yse=kn(Kse,[["__scopeId","data-v-ed1e5c6b"]]),Vi=Vj({strict:!0,history:gj(),scrollBehavior(t,e,r){return r||{top:0}},routes:[{path:"/",component:Yse,meta:{requiresAuth:!0},children:[{name:"home",path:"",components:{default:()=>pt(()=>import("./HomeView-B6EJgDUt.js"),__vite__mapDeps([0,1,2,3,4]))},meta:{group:"home"}},{path:"messages",components:{default:()=>pt(()=>import("./MessagesView-CWAdJC92.js"),__vite__mapDeps([5,6,7,8,9,3,10,11,12,13,14,15,16])),LeftSidebar:()=>pt(()=>import("./MessagesSidebar-DAJJAbQR.js"),__vite__mapDeps([17,18,19,20,21,13,22,10]))},meta:{group:"messages"}},{path:"calls",components:{default:()=>pt(()=>import("./CallsView-CSHaqzLI.js"),__vite__mapDeps([23,6,7,8,9,3,10,11,15,12,13,14,24])),LeftSidebar:()=>pt(()=>import("./CallsSidebar-C7gnaDCv.js"),__vite__mapDeps([25,18,19,20,21,13,22,10]))},meta:{group:"calls"}},{path:"apps",components:{default:()=>pt(()=>import("./AppsView-CjhlN3-N.js"),__vite__mapDeps([26,6,8,9,3,10,11,27,15,28])),LeftSidebar:()=>pt(()=>import("./AppsSidebar-D9waOJT4.js"),__vite__mapDeps([29,18,10]))},meta:{group:"apps"}},{path:"contacts",components:{default:()=>pt(()=>import("./ContactsView-BJQR5PGM.js"),__vite__mapDeps([30,6,7,2,8,9,3,10,11,13,12,14,15,31])),LeftSidebar:()=>pt(()=>import("./ContactsSidebar-DIy88WkN.js"),__vite__mapDeps([32,18,19,20,21,13,22,10]))},meta:{group:"contacts"}},{path:"images",components:{default:()=>pt(()=>import("./ImagesView-D5aqwfsN.js"),__vite__mapDeps([33,6,34,8,9,3,10,11,27,35,12,13,14,15])),LeftSidebar:()=>pt(()=>import("./ImagesSidebar-CTMKgbRD.js"),__vite__mapDeps([36,37,18,19,20,21,13,22,10]))},meta:{group:"images"}},{path:"videos",components:{default:()=>pt(()=>import("./VideosView-EnWFwQXg.js"),__vite__mapDeps([38,6,34,8,9,3,10,11,27,35,12,13,14,15])),LeftSidebar:()=>pt(()=>import("./VideosSidebar-QJ1ou7Of.js"),__vite__mapDeps([39,37,18,19,20,21,13,22,10]))},meta:{group:"videos"}},{path:"audios",components:{default:()=>pt(()=>import("./AudiosView-BON-x76b.js"),__vite__mapDeps([40,6,8,9,3,10,11,27,35,15,12,13,14,41])),LeftSidebar:()=>pt(()=>import("./AudiosSidebar-oyD_wcyj.js"),__vite__mapDeps([42,37,18,19,20,21,13,22,10]))},meta:{group:"audios"}},{path:"notes/:id",component:()=>pt(()=>import("./NoteEditView-C-0qsgs1.js"),__vite__mapDeps([43,44,45,46,47,48])),meta:{group:"notes"}},{path:"notes",components:{default:()=>pt(()=>import("./NotesView-BGLkQPdA.js"),__vite__mapDeps([49,6,8,9,3,10,11,15,12,13,14,50])),LeftSidebar:()=>pt(()=>import("./NotesSidebar-ByAV-TPL.js"),__vite__mapDeps([51,18,19,20,21,13,22,10]))},meta:{group:"notes"}},{path:"aichats/:id",component:()=>pt(()=>import("./AIChatView-C-vXmpXx.js"),__vite__mapDeps([52,47,53])),meta:{group:"aichats"}},{path:"aichats",components:{default:()=>pt(()=>import("./AIChatsView-h_L67qZA.js"),__vite__mapDeps([54,6,8,9,3,10,11,15,12,13,14])),LeftSidebar:()=>pt(()=>import("./AIChatsSidebar-DXIsOw1o.js"),__vite__mapDeps([55,18,19,20,21,13,22,10]))},meta:{group:"aichats"}},{path:"files",components:{default:()=>pt(()=>import("./FilesView-CWRvNtkx.js"),__vite__mapDeps([56,20,27,57,1,35,9,58,21,13,22,15,59])),LeftSidebar:()=>pt(()=>import("./FilesSidebar-DGDeJsty.js"),__vite__mapDeps([60,18]))},meta:{group:"files",className:"files"}},{path:"files/recent",components:{default:()=>pt(()=>import("./FilesRecentView-Ih4tM4Bo.js"),__vite__mapDeps([61,58,15])),LeftSidebar:()=>pt(()=>import("./FilesSidebar-DGDeJsty.js"),__vite__mapDeps([60,18]))},meta:{group:"files",className:"files"}},{path:"json-viewer",component:()=>pt(()=>import("./JsonViewerView-0dyovbJd.js"),__vite__mapDeps([62,44,45,63])),meta:{group:"json_viewer"}},{path:"qrcode-generator",component:()=>pt(()=>import("./QrCodeGeneratorView-CmzM_jYJ.js"),__vite__mapDeps([64,65])),meta:{group:"qrcode_generator"}},{path:"screen-mirror",component:()=>pt(()=>import("./ScreenMirrorView-B7mqDN-X.js"),__vite__mapDeps([66,57,67])),meta:{group:"screen_mirror"}},{path:"device-info",component:()=>pt(()=>import("./DeviceInfoView-C3ZwUVaw.js"),__vite__mapDeps([68,69])),meta:{group:"device_info"}},{path:"network",component:()=>pt(()=>import("./NetworkView-B5_GAGwK.js"),__vite__mapDeps([70,44,45,71,72,73])),meta:{group:"network"}},{path:"wifi",component:()=>pt(()=>import("./WiFiView-C53_WvSg.js"),__vite__mapDeps([74,44,45,71,72,73,13])),meta:{group:"wifi"}},{path:"wireguard",component:()=>pt(()=>import("./WireGuardView-CecgR6ou.js"),__vite__mapDeps([75,72,73,76])),meta:{group:"wireguard"}},{path:"wireguard/:id",component:()=>pt(()=>import("./WireGuardEditView-C6fEJ_c-.js"),__vite__mapDeps([77,44,45,71,72,73,76])),meta:{group:"wireguard"}},{path:"rules",component:()=>pt(()=>import("./RulesView-Dl_UesmL.js"),__vite__mapDeps([78,79,13])),meta:{group:"rules"}},{path:"routes",component:()=>pt(()=>import("./RoutesView-DuiGJr-C.js"),__vite__mapDeps([80,79,13])),meta:{group:"routes"}},{path:"devices",component:()=>pt(()=>import("./DevicesView-DLJRQ-K_.js"),__vite__mapDeps([81,72,73,21,13,22])),meta:{group:"devices"}},{path:"feeds",components:{LeftSidebar:()=>pt(()=>import("./FeedsSidebar-B4F1te2F.js"),__vite__mapDeps([82,18,19,20,21,13,22,83,10,84])),LeftSidebar2:()=>pt(()=>import("./FeedsSidebar2-BEGs6cYt.js"),__vite__mapDeps([85,20,8,9,3,10,11,86,83,15,12,13,14,87]))},meta:{group:"feeds",className:"feeds"}},{path:"feeds/:feedId/entries/:id",components:{default:()=>pt(()=>import("./FeedEntryView-CmXJcA56.js"),__vite__mapDeps([88,46,86,47,83,89])),LeftSidebar:()=>pt(()=>import("./FeedsSidebar-B4F1te2F.js"),__vite__mapDeps([82,18,19,20,21,13,22,83,10,84])),LeftSidebar2:()=>pt(()=>import("./FeedsSidebar2-BEGs6cYt.js"),__vite__mapDeps([85,20,8,9,3,10,11,86,83,15,12,13,14,87]))},meta:{group:"feeds",className:"feed-entry"}}]},{name:"login",path:"/login",component:()=>pt(()=>import("./LoginView-CeL9P5vi.js"),__vite__mapDeps([90,13,91])),meta:{requiresAuth:!1}}]}),XI=new Map;Vi.beforeEach(async(t,e)=>{var i;const r=(i=document.getElementsByClassName("main")[0])==null?void 0:i.scrollTop;r!==void 0&&XI.set(e.fullPath,r);const n=localStorage.getItem("auth_token");if(t.meta.requiresAuth&&!n)return{path:"/login",query:{redirect:t.fullPath}};clearTimeout(globalThis.showTooltipTimeout),setTimeout(()=>{const o=document.getElementsByClassName("tooltip");for(const a of o)document.body.removeChild(a)},100)});Vi.afterEach((t,e)=>{setTimeout(()=>{const r=document.getElementsByClassName("main")[0];if(r){const n=XI.get(t.fullPath);r.scrollTop=n||0}},0)});const h2e=(t,e)=>{const r=Vi.currentRoute.value.fullPath;Vi.currentRoute.value.fullPath=e,t.pages.findIndex(i=>i.path===e)!==-1?window.history.pushState({},document.title,e):(window.history.replaceState({},document.title,e),t.replaceRoute(r,e))},z1=(t,e)=>{if(t.pages.findIndex(n=>n.path===e)!==-1)Vi.push(e);else{const n=Vi.currentRoute.value.fullPath;Vi.replace(e),t.replaceRoute(n,e)}},p2e=t=>{setTimeout(()=>{Vi.push(t)},0)},Xse=t=>Vi.resolve(t).meta.group;class Jse extends ft{connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){return me``}}const Zse=He`:host,.shadow,.shadow::before,.shadow::after{border-radius:inherit;inset:0;position:absolute;transition-duration:inherit;transition-property:inherit;transition-timing-function:inherit}:host{display:flex;pointer-events:none;transition-property:box-shadow,opacity}.shadow::before,.shadow::after{content:"";transition-property:box-shadow,opacity;--_level: var(--md-elevation-level, 0);--_shadow-color: var(--md-elevation-shadow-color, var(--md-sys-color-shadow, #000))}.shadow::before{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 3,1) + 2*clamp(0,var(--_level) - 4,1))) calc(1px*(2*clamp(0,var(--_level),1) + clamp(0,var(--_level) - 2,1) + clamp(0,var(--_level) - 4,1))) 0px var(--_shadow-color);opacity:.3}.shadow::after{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 1,1) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(3*clamp(0,var(--_level),2) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(clamp(0,var(--_level),4) + 2*clamp(0,var(--_level) - 4,1))) var(--_shadow-color);opacity:.15} +`;let qy=class extends Jse{};qy.styles=[Zse];qy=O([st("md-elevation")],qy);const Gr=Symbol("internals"),t_=Symbol("privateInternals");function Xa(t){class e extends t{get[Gr](){return this[t_]||(this[t_]=this.attachInternals()),this[t_]}}return e}function JI(t){t.addInitializer(e=>{const r=e;r.addEventListener("click",async n=>{const{type:i,[Gr]:o}=r,{form:a}=o;if(!(!a||i==="button")&&(await new Promise(l=>{setTimeout(l)}),!n.defaultPrevented)){if(i==="reset"){a.reset();return}a.addEventListener("submit",l=>{Object.defineProperty(l,"submitter",{configurable:!0,enumerable:!0,get:()=>r})},{capture:!0,once:!0}),o.setFormValue(r.value),a.requestSubmit()}})})}function Om(t){const e=new MouseEvent("click",{bubbles:!0});return t.dispatchEvent(e),e}function qu(t){return t.currentTarget!==t.target||t.composedPath()[0]!==t.target||t.target.disabled?!1:!ele(t)}function ele(t){const e=By;return e&&(t.preventDefault(),t.stopImmediatePropagation()),tle(),e}let By=!1;async function tle(){By=!0,await null,By=!1}const rle=Xa(ft);class zr extends rle{get name(){return this.getAttribute("name")??""}set name(e){this.setAttribute("name",e)}get form(){return this[Gr].form}constructor(){super(),this.disabled=!1,this.href="",this.target="",this.trailingIcon=!1,this.hasIcon=!1,this.type="submit",this.value="",this.handleActivationClick=e=>{!qu(e)||!this.buttonElement||(this.focus(),Om(this.buttonElement))},this.addEventListener("click",this.handleActivationClick)}focus(){var e;(e=this.buttonElement)==null||e.focus()}blur(){var e;(e=this.buttonElement)==null||e.blur()}render(){var i;const e=this.disabled&&!this.href,r=this.href?this.renderLink():this.renderButton(),n=this.href?"link":"button";return me` ${(i=this.renderElevationOrOutline)==null?void 0:i.call(this)}
${r} - `}renderButton(){const{ariaLabel:e,ariaHasPopup:r,ariaExpanded:n}=this;return ve``}renderLink(){const{ariaLabel:e,ariaHasPopup:r,ariaExpanded:n}=this;return ve``}renderLink(){const{ariaLabel:e,ariaHasPopup:r,ariaExpanded:n}=this;return me`${this.renderContent()} - `}renderContent(){const e=ve``}renderContent(){const e=me``;return ve` + @slotchange="${this.handleSlotChange}">`;return me` - ${this.trailingIcon?me:e} + ${this.trailingIcon?pe:e} - ${this.trailingIcon?e:me} - `}handleSlotChange(){this.hasIcon=this.assignedIcons.length>0}}Xr(Dr),BI(Dr);Dr.formAssociated=!0;Dr.shadowRootOptions={mode:"open",delegatesFocus:!0};O([H({type:Boolean,reflect:!0})],Dr.prototype,"disabled",void 0);O([H()],Dr.prototype,"href",void 0);O([H()],Dr.prototype,"target",void 0);O([H({type:Boolean,attribute:"trailing-icon",reflect:!0})],Dr.prototype,"trailingIcon",void 0);O([H({type:Boolean,attribute:"has-icon",reflect:!0})],Dr.prototype,"hasIcon",void 0);O([H()],Dr.prototype,"type",void 0);O([H({reflect:!0})],Dr.prototype,"value",void 0);O([gt(".button")],Dr.prototype,"buttonElement",void 0);O([Ar({slot:"icon",flatten:!0})],Dr.prototype,"assignedIcons",void 0);class zse extends Dr{renderElevationOrOutline(){return ve``}}const qse=He`:host{--_container-color: var(--md-elevated-button-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_container-elevation: var(--md-elevated-button-container-elevation, 1);--_container-height: var(--md-elevated-button-container-height, 40px);--_container-shadow-color: var(--md-elevated-button-container-shadow-color, var(--md-sys-color-shadow, #000));--_disabled-container-color: var(--md-elevated-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-elevation: var(--md-elevated-button-disabled-container-elevation, 0);--_disabled-container-opacity: var(--md-elevated-button-disabled-container-opacity, 0.12);--_disabled-label-text-color: var(--md-elevated-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-elevated-button-disabled-label-text-opacity, 0.38);--_focus-container-elevation: var(--md-elevated-button-focus-container-elevation, 1);--_focus-label-text-color: var(--md-elevated-button-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-container-elevation: var(--md-elevated-button-hover-container-elevation, 2);--_hover-label-text-color: var(--md-elevated-button-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-color: var(--md-elevated-button-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-elevated-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-elevated-button-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-font: var(--md-elevated-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-elevated-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-elevated-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-elevated-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-container-elevation: var(--md-elevated-button-pressed-container-elevation, 1);--_pressed-label-text-color: var(--md-elevated-button-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-color: var(--md-elevated-button-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-elevated-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-elevated-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-elevated-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-elevated-button-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-icon-color: var(--md-elevated-button-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-color: var(--md-elevated-button-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-elevated-button-icon-size, 18px);--_pressed-icon-color: var(--md-elevated-button-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var(--md-elevated-button-container-shape-start-start, var(--md-elevated-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-elevated-button-container-shape-start-end, var(--md-elevated-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-elevated-button-container-shape-end-end, var(--md-elevated-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-elevated-button-container-shape-end-start, var(--md-elevated-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-elevated-button-leading-space, 24px);--_trailing-space: var(--md-elevated-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-elevated-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-elevated-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-elevated-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-elevated-button-with-trailing-icon-trailing-space, 16px)} -`;const k1=He`md-elevation{transition-duration:280ms}:host([disabled]) md-elevation{transition:none}md-elevation{--md-elevation-level: var(--_container-elevation);--md-elevation-shadow-color: var(--_container-shadow-color)}:host(:focus-within) md-elevation{--md-elevation-level: var(--_focus-container-elevation)}:host(:hover) md-elevation{--md-elevation-level: var(--_hover-container-elevation)}:host(:active) md-elevation{--md-elevation-level: var(--_pressed-container-elevation)}:host([disabled]) md-elevation{--md-elevation-level: var(--_disabled-container-elevation)} -`;const Iu=He`: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);box-sizing:border-box;cursor:pointer;display:inline-flex;gap:8px;min-height:var(--_container-height);outline:none;padding-block:calc((var(--_container-height) - max(var(--_label-text-line-height),var(--_icon-size)))/2);padding-inline-start:var(--_leading-space);padding-inline-end:var(--_trailing-space);place-content:center;place-items:center;position:relative;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);text-overflow:ellipsis;text-wrap:nowrap;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);vertical-align:top;--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}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)}:host([disabled]){cursor:default;pointer-events:none}.button{border-radius:inherit;cursor:inherit;display:inline-flex;align-items:center;justify-content:center;border:none;outline:none;-webkit-appearance:none;vertical-align:middle;background:rgba(0,0,0,0);text-decoration:none;min-width:calc(64px - var(--_leading-space) - var(--_trailing-space));width:100%;z-index:0;height:100%;font:inherit;color:var(--_label-text-color);padding:0;gap:inherit;text-transform:inherit}.button::-moz-focus-inner{padding:0;border:0}:host(:hover) .button{color:var(--_hover-label-text-color)}:host(:focus-within) .button{color:var(--_focus-label-text-color)}:host(:active) .button{color:var(--_pressed-label-text-color)}.background{background-color:var(--_container-color);border-radius:inherit;inset:0;position:absolute}.label{overflow:hidden}:is(.button,.label,.label slot),.label ::slotted(*){text-overflow:inherit}:host([disabled]) .label{color:var(--_disabled-label-text-color);opacity:var(--_disabled-label-text-opacity)}:host([disabled]) .background{background-color:var(--_disabled-container-color);opacity:var(--_disabled-container-opacity)}@media(forced-colors: active){.background{border:1px solid CanvasText}:host([disabled]){--_disabled-icon-color: GrayText;--_disabled-icon-opacity: 1;--_disabled-container-opacity: 1;--_disabled-label-text-color: GrayText;--_disabled-label-text-opacity: 1}}:host([has-icon]:not([trailing-icon])){padding-inline-start:var(--_with-leading-icon-leading-space);padding-inline-end:var(--_with-leading-icon-trailing-space)}:host([has-icon][trailing-icon]){padding-inline-start:var(--_with-trailing-icon-leading-space);padding-inline-end:var(--_with-trailing-icon-trailing-space)}::slotted([slot=icon]){display:inline-flex;position:relative;writing-mode:horizontal-tb;fill:currentColor;flex-shrink:0;color:var(--_icon-color);font-size:var(--_icon-size);inline-size:var(--_icon-size);block-size:var(--_icon-size)}:host(:hover) ::slotted([slot=icon]){color:var(--_hover-icon-color)}:host(:focus-within) ::slotted([slot=icon]){color:var(--_focus-icon-color)}:host(:active) ::slotted([slot=icon]){color:var(--_pressed-icon-color)}:host([disabled]) ::slotted([slot=icon]){color:var(--_disabled-icon-color);opacity:var(--_disabled-icon-opacity)}.touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_container-height))/2) 0}:host([touch-target=none]) .touch{display:none} -`;let Sy=class extends zse{};Sy.styles=[Iu,k1,qse];Sy=O([ot("md-elevated-button")],Sy);class Bse extends Dr{renderElevationOrOutline(){return ve``}}const Use=He`:host{--_container-color: var(--md-filled-button-container-color, var(--md-sys-color-primary, #6750a4));--_container-elevation: var(--md-filled-button-container-elevation, 0);--_container-height: var(--md-filled-button-container-height, 40px);--_container-shadow-color: var(--md-filled-button-container-shadow-color, var(--md-sys-color-shadow, #000));--_disabled-container-color: var(--md-filled-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-elevation: var(--md-filled-button-disabled-container-elevation, 0);--_disabled-container-opacity: var(--md-filled-button-disabled-container-opacity, 0.12);--_disabled-label-text-color: var(--md-filled-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-button-disabled-label-text-opacity, 0.38);--_focus-container-elevation: var(--md-filled-button-focus-container-elevation, 0);--_focus-label-text-color: var(--md-filled-button-focus-label-text-color, var(--md-sys-color-on-primary, #fff));--_hover-container-elevation: var(--md-filled-button-hover-container-elevation, 1);--_hover-label-text-color: var(--md-filled-button-hover-label-text-color, var(--md-sys-color-on-primary, #fff));--_hover-state-layer-color: var(--md-filled-button-hover-state-layer-color, var(--md-sys-color-on-primary, #fff));--_hover-state-layer-opacity: var(--md-filled-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-filled-button-label-text-color, var(--md-sys-color-on-primary, #fff));--_label-text-font: var(--md-filled-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-filled-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-filled-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-container-elevation: var(--md-filled-button-pressed-container-elevation, 0);--_pressed-label-text-color: var(--md-filled-button-pressed-label-text-color, var(--md-sys-color-on-primary, #fff));--_pressed-state-layer-color: var(--md-filled-button-pressed-state-layer-color, var(--md-sys-color-on-primary, #fff));--_pressed-state-layer-opacity: var(--md-filled-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-filled-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-filled-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-filled-button-focus-icon-color, var(--md-sys-color-on-primary, #fff));--_hover-icon-color: var(--md-filled-button-hover-icon-color, var(--md-sys-color-on-primary, #fff));--_icon-color: var(--md-filled-button-icon-color, var(--md-sys-color-on-primary, #fff));--_icon-size: var(--md-filled-button-icon-size, 18px);--_pressed-icon-color: var(--md-filled-button-pressed-icon-color, var(--md-sys-color-on-primary, #fff));--_container-shape-start-start: var(--md-filled-button-container-shape-start-start, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-filled-button-container-shape-start-end, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-filled-button-container-shape-end-end, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-filled-button-container-shape-end-start, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-filled-button-leading-space, 24px);--_trailing-space: var(--md-filled-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-filled-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-filled-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-filled-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-filled-button-with-trailing-icon-trailing-space, 16px)} -`;let Iy=class extends Bse{};Iy.styles=[Iu,k1,Use];Iy=O([ot("md-filled-button")],Iy);class Vse extends Dr{renderElevationOrOutline(){return ve``}}const jse=He`:host{--_container-color: var(--md-filled-tonal-button-container-color, var(--md-sys-color-secondary-container, #e8def8));--_container-elevation: var(--md-filled-tonal-button-container-elevation, 0);--_container-height: var(--md-filled-tonal-button-container-height, 40px);--_container-shadow-color: var(--md-filled-tonal-button-container-shadow-color, var(--md-sys-color-shadow, #000));--_disabled-container-color: var(--md-filled-tonal-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-elevation: var(--md-filled-tonal-button-disabled-container-elevation, 0);--_disabled-container-opacity: var(--md-filled-tonal-button-disabled-container-opacity, 0.12);--_disabled-label-text-color: var(--md-filled-tonal-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-tonal-button-disabled-label-text-opacity, 0.38);--_focus-container-elevation: var(--md-filled-tonal-button-focus-container-elevation, 0);--_focus-label-text-color: var(--md-filled-tonal-button-focus-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-container-elevation: var(--md-filled-tonal-button-hover-container-elevation, 1);--_hover-label-text-color: var(--md-filled-tonal-button-hover-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-state-layer-color: var(--md-filled-tonal-button-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-state-layer-opacity: var(--md-filled-tonal-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-filled-tonal-button-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_label-text-font: var(--md-filled-tonal-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-tonal-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-filled-tonal-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-filled-tonal-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-container-elevation: var(--md-filled-tonal-button-pressed-container-elevation, 0);--_pressed-label-text-color: var(--md-filled-tonal-button-pressed-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-color: var(--md-filled-tonal-button-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-opacity: var(--md-filled-tonal-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-filled-tonal-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-filled-tonal-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-filled-tonal-button-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-icon-color: var(--md-filled-tonal-button-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_icon-color: var(--md-filled-tonal-button-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_icon-size: var(--md-filled-tonal-button-icon-size, 18px);--_pressed-icon-color: var(--md-filled-tonal-button-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_container-shape-start-start: var(--md-filled-tonal-button-container-shape-start-start, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-filled-tonal-button-container-shape-start-end, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-filled-tonal-button-container-shape-end-end, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-filled-tonal-button-container-shape-end-start, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-filled-tonal-button-leading-space, 24px);--_trailing-space: var(--md-filled-tonal-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-filled-tonal-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-filled-tonal-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-filled-tonal-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-filled-tonal-button-with-trailing-icon-trailing-space, 16px)} -`;let $y=class extends Vse{};$y.styles=[Iu,k1,jse];$y=O([ot("md-filled-tonal-button")],$y);class Hse extends Dr{renderElevationOrOutline(){return ve`
`}}const Wse=He`:host{--_container-height: var(--md-outlined-button-container-height, 40px);--_disabled-label-text-color: var(--md-outlined-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-button-disabled-label-text-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-button-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-button-disabled-outline-opacity, 0.12);--_focus-label-text-color: var(--md-outlined-button-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-label-text-color: var(--md-outlined-button-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-color: var(--md-outlined-button-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-outlined-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-outlined-button-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-font: var(--md-outlined-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-outlined-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-outlined-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_outline-color: var(--md-outlined-button-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-outlined-button-outline-width, 1px);--_pressed-label-text-color: var(--md-outlined-button-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_pressed-outline-color: var(--md-outlined-button-pressed-outline-color, var(--md-sys-color-outline, #79747e));--_pressed-state-layer-color: var(--md-outlined-button-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-outlined-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-outlined-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-outlined-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-outlined-button-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-icon-color: var(--md-outlined-button-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-color: var(--md-outlined-button-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-outlined-button-icon-size, 18px);--_pressed-icon-color: var(--md-outlined-button-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var(--md-outlined-button-container-shape-start-start, var(--md-outlined-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-outlined-button-container-shape-start-end, var(--md-outlined-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-outlined-button-container-shape-end-end, var(--md-outlined-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-outlined-button-container-shape-end-start, var(--md-outlined-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-outlined-button-leading-space, 24px);--_trailing-space: var(--md-outlined-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-outlined-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-outlined-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-outlined-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-outlined-button-with-trailing-icon-trailing-space, 16px);--_container-color: none;--_disabled-container-color: none;--_disabled-container-opacity: 0}.outline{inset:0;border-style:solid;position:absolute;box-sizing:border-box;border-color:var(--_outline-color);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)}:host(:active) .outline{border-color:var(--_pressed-outline-color)}:host([disabled]) .outline{border-color:var(--_disabled-outline-color);opacity:var(--_disabled-outline-opacity)}@media(forced-colors: active){:host([disabled]) .background{border-color:GrayText}:host([disabled]) .outline{opacity:1}}.outline,md-ripple{border-width:var(--_outline-width)}md-ripple{inline-size:calc(100% - 2*var(--_outline-width));block-size:calc(100% - 2*var(--_outline-width));border-style:solid;border-color:rgba(0,0,0,0)} -`;let Oy=class extends Hse{};Oy.styles=[Iu,Wse];Oy=O([ot("md-outlined-button")],Oy);class Gse extends Dr{}const Qse=He`:host{--_container-height: var(--md-text-button-container-height, 40px);--_disabled-label-text-color: var(--md-text-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-text-button-disabled-label-text-opacity, 0.38);--_focus-label-text-color: var(--md-text-button-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-label-text-color: var(--md-text-button-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-color: var(--md-text-button-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-text-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-text-button-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-font: var(--md-text-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-text-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-text-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-text-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-label-text-color: var(--md-text-button-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-color: var(--md-text-button-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-text-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-text-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-text-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-text-button-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-icon-color: var(--md-text-button-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-color: var(--md-text-button-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-text-button-icon-size, 18px);--_pressed-icon-color: var(--md-text-button-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var(--md-text-button-container-shape-start-start, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-text-button-container-shape-start-end, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-text-button-container-shape-end-end, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-text-button-container-shape-end-start, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-text-button-leading-space, 12px);--_trailing-space: var(--md-text-button-trailing-space, 12px);--_with-leading-icon-leading-space: var(--md-text-button-with-leading-icon-leading-space, 12px);--_with-leading-icon-trailing-space: var(--md-text-button-with-leading-icon-trailing-space, 16px);--_with-trailing-icon-leading-space: var(--md-text-button-with-trailing-icon-leading-space, 16px);--_with-trailing-icon-trailing-space: var(--md-text-button-with-trailing-icon-trailing-space, 12px);--_container-color: none;--_disabled-container-color: none;--_disabled-container-opacity: 0} -`;let Py=class extends Gse{};Py.styles=[Iu,Qse];Py=O([ot("md-text-button")],Py);function Ma(t,e){e.bubbles&&(!t.shadowRoot||e.composed)&&e.stopPropagation();const r=Reflect.construct(e.constructor,[e.type,e]),n=t.dispatchEvent(r);return n||e.preventDefault(),n}const Os=Symbol("createValidator"),Ps=Symbol("getValidityAnchor"),Vg=Symbol("privateValidator"),lo=Symbol("privateSyncValidity"),lh=Symbol("privateCustomValidationMessage");function $u(t){var e;class r extends t{constructor(){super(...arguments),this[e]=""}get validity(){return this[lo](),this[Br].validity}get validationMessage(){return this[lo](),this[Br].validationMessage}get willValidate(){return this[lo](),this[Br].willValidate}checkValidity(){return this[lo](),this[Br].checkValidity()}reportValidity(){return this[lo](),this[Br].reportValidity()}setCustomValidity(i){this[lh]=i,this[lo]()}requestUpdate(i,o,a){super.requestUpdate(i,o,a),this[lo]()}firstUpdated(i){super.firstUpdated(i),this[lo]()}[(e=lh,lo)](){this[Vg]||(this[Vg]=this[Os]());const{validity:i,validationMessage:o}=this[Vg].getValidity(),a=!!this[lh],l=this[lh]||o;this[Br].setValidity({...i,customError:a},l,this[Ps]()??void 0)}[Os](){throw new Error("Implement [createValidator]")}[Ps](){throw new Error("Implement [getValidityAnchor]")}}return r}const yo=Symbol("getFormValue"),lu=Symbol("getFormState");function xc(t){class e extends t{get form(){return this[Br].form}get labels(){return this[Br].labels}get name(){return this.getAttribute("name")??""}set name(n){this.setAttribute("name",n)}get disabled(){return this.hasAttribute("disabled")}set disabled(n){this.toggleAttribute("disabled",n)}attributeChangedCallback(n,i,o){if(n==="name"||n==="disabled"){const a=n==="disabled"?i!==null:i;this.requestUpdate(n,a);return}super.attributeChangedCallback(n,i,o)}requestUpdate(n,i,o){super.requestUpdate(n,i,o),this[Br].setFormValue(this[yo](),this[lu]())}[yo](){throw new Error("Implement [getFormValue]")}[lu](){return this[yo]()}formDisabledCallback(n){this.disabled=n}}return e.formAssociated=!0,O([H({noAccessor:!0})],e.prototype,"name",null),O([H({type:Boolean,noAccessor:!0})],e.prototype,"disabled",null),e}class wm{constructor(e){this.getCurrentState=e,this.currentValidity={validity:{},validationMessage:""}}getValidity(){const e=this.getCurrentState();if(!(!this.prevState||!this.equals(this.prevState,e)))return this.currentValidity;const{validity:n,validationMessage:i}=this.computeValidity(e);return this.prevState=this.copy(e),this.currentValidity={validationMessage:i,validity:{badInput:n.badInput,customError:n.customError,patternMismatch:n.patternMismatch,rangeOverflow:n.rangeOverflow,rangeUnderflow:n.rangeUnderflow,stepMismatch:n.stepMismatch,tooLong:n.tooLong,tooShort:n.tooShort,typeMismatch:n.typeMismatch,valueMissing:n.valueMissing}},this.currentValidity}}class UI extends wm{computeValidity(e){return this.checkboxControl||(this.checkboxControl=document.createElement("input"),this.checkboxControl.type="checkbox"),this.checkboxControl.checked=e.checked,this.checkboxControl.required=e.required,{validity:this.checkboxControl.validity,validationMessage:this.checkboxControl.validationMessage}}equals(e,r){return e.checked===r.checked&&e.required===r.required}copy({checked:e,required:r}){return{checked:e,required:r}}}const Kse=$u(xc(ja(dt)));class $i extends Kse{constructor(){super(),this.checked=!1,this.indeterminate=!1,this.required=!1,this.value="on",this.prevChecked=!1,this.prevDisabled=!1,this.prevIndeterminate=!1,this.addEventListener("click",e=>{!Su(e)||!this.input||(this.focus(),xm(this.input))})}update(e){(e.has("checked")||e.has("disabled")||e.has("indeterminate"))&&(this.prevChecked=e.get("checked")??this.checked,this.prevDisabled=e.get("disabled")??this.disabled,this.prevIndeterminate=e.get("indeterminate")??this.indeterminate),super.update(e)}render(){const e=!this.prevChecked&&!this.prevIndeterminate,r=this.prevChecked&&!this.prevIndeterminate,n=this.prevIndeterminate,i=this.checked&&!this.indeterminate,o=this.indeterminate,a=Yt({disabled:this.disabled,selected:i||o,unselected:!i&&!o,checked:i,indeterminate:o,"prev-unselected":e,"prev-checked":r,"prev-indeterminate":n,"prev-disabled":this.prevDisabled}),{ariaLabel:l,ariaInvalid:d}=this;return ve` + ${this.trailingIcon?e:pe} + `}handleSlotChange(){this.hasIcon=this.assignedIcons.length>0}}en(zr),JI(zr);zr.formAssociated=!0;zr.shadowRootOptions={mode:"open",delegatesFocus:!0};O([H({type:Boolean,reflect:!0})],zr.prototype,"disabled",void 0);O([H()],zr.prototype,"href",void 0);O([H()],zr.prototype,"target",void 0);O([H({type:Boolean,attribute:"trailing-icon",reflect:!0})],zr.prototype,"trailingIcon",void 0);O([H({type:Boolean,attribute:"has-icon",reflect:!0})],zr.prototype,"hasIcon",void 0);O([H()],zr.prototype,"type",void 0);O([H({reflect:!0})],zr.prototype,"value",void 0);O([xt(".button")],zr.prototype,"buttonElement",void 0);O([Or({slot:"icon",flatten:!0})],zr.prototype,"assignedIcons",void 0);class nle extends zr{renderElevationOrOutline(){return me``}}const ile=He`:host{--_container-color: var(--md-elevated-button-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_container-elevation: var(--md-elevated-button-container-elevation, 1);--_container-height: var(--md-elevated-button-container-height, 40px);--_container-shadow-color: var(--md-elevated-button-container-shadow-color, var(--md-sys-color-shadow, #000));--_disabled-container-color: var(--md-elevated-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-elevation: var(--md-elevated-button-disabled-container-elevation, 0);--_disabled-container-opacity: var(--md-elevated-button-disabled-container-opacity, 0.12);--_disabled-label-text-color: var(--md-elevated-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-elevated-button-disabled-label-text-opacity, 0.38);--_focus-container-elevation: var(--md-elevated-button-focus-container-elevation, 1);--_focus-label-text-color: var(--md-elevated-button-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-container-elevation: var(--md-elevated-button-hover-container-elevation, 2);--_hover-label-text-color: var(--md-elevated-button-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-color: var(--md-elevated-button-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-elevated-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-elevated-button-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-font: var(--md-elevated-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-elevated-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-elevated-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-elevated-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-container-elevation: var(--md-elevated-button-pressed-container-elevation, 1);--_pressed-label-text-color: var(--md-elevated-button-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-color: var(--md-elevated-button-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-elevated-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-elevated-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-elevated-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-elevated-button-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-icon-color: var(--md-elevated-button-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-color: var(--md-elevated-button-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-elevated-button-icon-size, 18px);--_pressed-icon-color: var(--md-elevated-button-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var(--md-elevated-button-container-shape-start-start, var(--md-elevated-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-elevated-button-container-shape-start-end, var(--md-elevated-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-elevated-button-container-shape-end-end, var(--md-elevated-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-elevated-button-container-shape-end-start, var(--md-elevated-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-elevated-button-leading-space, 24px);--_trailing-space: var(--md-elevated-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-elevated-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-elevated-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-elevated-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-elevated-button-with-trailing-icon-trailing-space, 16px)} +`;const q1=He`md-elevation{transition-duration:280ms}:host([disabled]) md-elevation{transition:none}md-elevation{--md-elevation-level: var(--_container-elevation);--md-elevation-shadow-color: var(--_container-shadow-color)}:host(:focus-within) md-elevation{--md-elevation-level: var(--_focus-container-elevation)}:host(:hover) md-elevation{--md-elevation-level: var(--_hover-container-elevation)}:host(:active) md-elevation{--md-elevation-level: var(--_pressed-container-elevation)}:host([disabled]) md-elevation{--md-elevation-level: var(--_disabled-container-elevation)} +`;const Bu=He`: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);box-sizing:border-box;cursor:pointer;display:inline-flex;gap:8px;min-height:var(--_container-height);outline:none;padding-block:calc((var(--_container-height) - max(var(--_label-text-line-height),var(--_icon-size)))/2);padding-inline-start:var(--_leading-space);padding-inline-end:var(--_trailing-space);place-content:center;place-items:center;position:relative;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);text-overflow:ellipsis;text-wrap:nowrap;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);vertical-align:top;--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}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)}:host([disabled]){cursor:default;pointer-events:none}.button{border-radius:inherit;cursor:inherit;display:inline-flex;align-items:center;justify-content:center;border:none;outline:none;-webkit-appearance:none;vertical-align:middle;background:rgba(0,0,0,0);text-decoration:none;min-width:calc(64px - var(--_leading-space) - var(--_trailing-space));width:100%;z-index:0;height:100%;font:inherit;color:var(--_label-text-color);padding:0;gap:inherit;text-transform:inherit}.button::-moz-focus-inner{padding:0;border:0}:host(:hover) .button{color:var(--_hover-label-text-color)}:host(:focus-within) .button{color:var(--_focus-label-text-color)}:host(:active) .button{color:var(--_pressed-label-text-color)}.background{background-color:var(--_container-color);border-radius:inherit;inset:0;position:absolute}.label{overflow:hidden}:is(.button,.label,.label slot),.label ::slotted(*){text-overflow:inherit}:host([disabled]) .label{color:var(--_disabled-label-text-color);opacity:var(--_disabled-label-text-opacity)}:host([disabled]) .background{background-color:var(--_disabled-container-color);opacity:var(--_disabled-container-opacity)}@media(forced-colors: active){.background{border:1px solid CanvasText}:host([disabled]){--_disabled-icon-color: GrayText;--_disabled-icon-opacity: 1;--_disabled-container-opacity: 1;--_disabled-label-text-color: GrayText;--_disabled-label-text-opacity: 1}}:host([has-icon]:not([trailing-icon])){padding-inline-start:var(--_with-leading-icon-leading-space);padding-inline-end:var(--_with-leading-icon-trailing-space)}:host([has-icon][trailing-icon]){padding-inline-start:var(--_with-trailing-icon-leading-space);padding-inline-end:var(--_with-trailing-icon-trailing-space)}::slotted([slot=icon]){display:inline-flex;position:relative;writing-mode:horizontal-tb;fill:currentColor;flex-shrink:0;color:var(--_icon-color);font-size:var(--_icon-size);inline-size:var(--_icon-size);block-size:var(--_icon-size)}:host(:hover) ::slotted([slot=icon]){color:var(--_hover-icon-color)}:host(:focus-within) ::slotted([slot=icon]){color:var(--_focus-icon-color)}:host(:active) ::slotted([slot=icon]){color:var(--_pressed-icon-color)}:host([disabled]) ::slotted([slot=icon]){color:var(--_disabled-icon-color);opacity:var(--_disabled-icon-opacity)}.touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_container-height))/2) 0}:host([touch-target=none]) .touch{display:none} +`;let Vy=class extends nle{};Vy.styles=[Bu,q1,ile];Vy=O([st("md-elevated-button")],Vy);class ole extends zr{renderElevationOrOutline(){return me``}}const ale=He`:host{--_container-color: var(--md-filled-button-container-color, var(--md-sys-color-primary, #6750a4));--_container-elevation: var(--md-filled-button-container-elevation, 0);--_container-height: var(--md-filled-button-container-height, 40px);--_container-shadow-color: var(--md-filled-button-container-shadow-color, var(--md-sys-color-shadow, #000));--_disabled-container-color: var(--md-filled-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-elevation: var(--md-filled-button-disabled-container-elevation, 0);--_disabled-container-opacity: var(--md-filled-button-disabled-container-opacity, 0.12);--_disabled-label-text-color: var(--md-filled-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-button-disabled-label-text-opacity, 0.38);--_focus-container-elevation: var(--md-filled-button-focus-container-elevation, 0);--_focus-label-text-color: var(--md-filled-button-focus-label-text-color, var(--md-sys-color-on-primary, #fff));--_hover-container-elevation: var(--md-filled-button-hover-container-elevation, 1);--_hover-label-text-color: var(--md-filled-button-hover-label-text-color, var(--md-sys-color-on-primary, #fff));--_hover-state-layer-color: var(--md-filled-button-hover-state-layer-color, var(--md-sys-color-on-primary, #fff));--_hover-state-layer-opacity: var(--md-filled-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-filled-button-label-text-color, var(--md-sys-color-on-primary, #fff));--_label-text-font: var(--md-filled-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-filled-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-filled-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-container-elevation: var(--md-filled-button-pressed-container-elevation, 0);--_pressed-label-text-color: var(--md-filled-button-pressed-label-text-color, var(--md-sys-color-on-primary, #fff));--_pressed-state-layer-color: var(--md-filled-button-pressed-state-layer-color, var(--md-sys-color-on-primary, #fff));--_pressed-state-layer-opacity: var(--md-filled-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-filled-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-filled-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-filled-button-focus-icon-color, var(--md-sys-color-on-primary, #fff));--_hover-icon-color: var(--md-filled-button-hover-icon-color, var(--md-sys-color-on-primary, #fff));--_icon-color: var(--md-filled-button-icon-color, var(--md-sys-color-on-primary, #fff));--_icon-size: var(--md-filled-button-icon-size, 18px);--_pressed-icon-color: var(--md-filled-button-pressed-icon-color, var(--md-sys-color-on-primary, #fff));--_container-shape-start-start: var(--md-filled-button-container-shape-start-start, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-filled-button-container-shape-start-end, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-filled-button-container-shape-end-end, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-filled-button-container-shape-end-start, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-filled-button-leading-space, 24px);--_trailing-space: var(--md-filled-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-filled-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-filled-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-filled-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-filled-button-with-trailing-icon-trailing-space, 16px)} +`;let Uy=class extends ole{};Uy.styles=[Bu,q1,ale];Uy=O([st("md-filled-button")],Uy);class sle extends zr{renderElevationOrOutline(){return me``}}const lle=He`:host{--_container-color: var(--md-filled-tonal-button-container-color, var(--md-sys-color-secondary-container, #e8def8));--_container-elevation: var(--md-filled-tonal-button-container-elevation, 0);--_container-height: var(--md-filled-tonal-button-container-height, 40px);--_container-shadow-color: var(--md-filled-tonal-button-container-shadow-color, var(--md-sys-color-shadow, #000));--_disabled-container-color: var(--md-filled-tonal-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-elevation: var(--md-filled-tonal-button-disabled-container-elevation, 0);--_disabled-container-opacity: var(--md-filled-tonal-button-disabled-container-opacity, 0.12);--_disabled-label-text-color: var(--md-filled-tonal-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-tonal-button-disabled-label-text-opacity, 0.38);--_focus-container-elevation: var(--md-filled-tonal-button-focus-container-elevation, 0);--_focus-label-text-color: var(--md-filled-tonal-button-focus-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-container-elevation: var(--md-filled-tonal-button-hover-container-elevation, 1);--_hover-label-text-color: var(--md-filled-tonal-button-hover-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-state-layer-color: var(--md-filled-tonal-button-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-state-layer-opacity: var(--md-filled-tonal-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-filled-tonal-button-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_label-text-font: var(--md-filled-tonal-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-tonal-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-filled-tonal-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-filled-tonal-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-container-elevation: var(--md-filled-tonal-button-pressed-container-elevation, 0);--_pressed-label-text-color: var(--md-filled-tonal-button-pressed-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-color: var(--md-filled-tonal-button-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-opacity: var(--md-filled-tonal-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-filled-tonal-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-filled-tonal-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-filled-tonal-button-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-icon-color: var(--md-filled-tonal-button-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_icon-color: var(--md-filled-tonal-button-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_icon-size: var(--md-filled-tonal-button-icon-size, 18px);--_pressed-icon-color: var(--md-filled-tonal-button-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_container-shape-start-start: var(--md-filled-tonal-button-container-shape-start-start, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-filled-tonal-button-container-shape-start-end, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-filled-tonal-button-container-shape-end-end, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-filled-tonal-button-container-shape-end-start, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-filled-tonal-button-leading-space, 24px);--_trailing-space: var(--md-filled-tonal-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-filled-tonal-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-filled-tonal-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-filled-tonal-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-filled-tonal-button-with-trailing-icon-trailing-space, 16px)} +`;let jy=class extends sle{};jy.styles=[Bu,q1,lle];jy=O([st("md-filled-tonal-button")],jy);class cle extends zr{renderElevationOrOutline(){return me`
`}}const dle=He`:host{--_container-height: var(--md-outlined-button-container-height, 40px);--_disabled-label-text-color: var(--md-outlined-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-button-disabled-label-text-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-button-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-button-disabled-outline-opacity, 0.12);--_focus-label-text-color: var(--md-outlined-button-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-label-text-color: var(--md-outlined-button-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-color: var(--md-outlined-button-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-outlined-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-outlined-button-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-font: var(--md-outlined-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-outlined-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-outlined-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_outline-color: var(--md-outlined-button-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-outlined-button-outline-width, 1px);--_pressed-label-text-color: var(--md-outlined-button-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_pressed-outline-color: var(--md-outlined-button-pressed-outline-color, var(--md-sys-color-outline, #79747e));--_pressed-state-layer-color: var(--md-outlined-button-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-outlined-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-outlined-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-outlined-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-outlined-button-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-icon-color: var(--md-outlined-button-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-color: var(--md-outlined-button-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-outlined-button-icon-size, 18px);--_pressed-icon-color: var(--md-outlined-button-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var(--md-outlined-button-container-shape-start-start, var(--md-outlined-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-outlined-button-container-shape-start-end, var(--md-outlined-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-outlined-button-container-shape-end-end, var(--md-outlined-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-outlined-button-container-shape-end-start, var(--md-outlined-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-outlined-button-leading-space, 24px);--_trailing-space: var(--md-outlined-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-outlined-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-outlined-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-outlined-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-outlined-button-with-trailing-icon-trailing-space, 16px);--_container-color: none;--_disabled-container-color: none;--_disabled-container-opacity: 0}.outline{inset:0;border-style:solid;position:absolute;box-sizing:border-box;border-color:var(--_outline-color);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)}:host(:active) .outline{border-color:var(--_pressed-outline-color)}:host([disabled]) .outline{border-color:var(--_disabled-outline-color);opacity:var(--_disabled-outline-opacity)}@media(forced-colors: active){:host([disabled]) .background{border-color:GrayText}:host([disabled]) .outline{opacity:1}}.outline,md-ripple{border-width:var(--_outline-width)}md-ripple{inline-size:calc(100% - 2*var(--_outline-width));block-size:calc(100% - 2*var(--_outline-width));border-style:solid;border-color:rgba(0,0,0,0)} +`;let Hy=class extends cle{};Hy.styles=[Bu,dle];Hy=O([st("md-outlined-button")],Hy);class ule extends zr{}const fle=He`:host{--_container-height: var(--md-text-button-container-height, 40px);--_disabled-label-text-color: var(--md-text-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-text-button-disabled-label-text-opacity, 0.38);--_focus-label-text-color: var(--md-text-button-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-label-text-color: var(--md-text-button-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-color: var(--md-text-button-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-text-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-text-button-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-font: var(--md-text-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-text-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-text-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-text-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-label-text-color: var(--md-text-button-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-color: var(--md-text-button-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-text-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-text-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-text-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-text-button-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-icon-color: var(--md-text-button-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-color: var(--md-text-button-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-text-button-icon-size, 18px);--_pressed-icon-color: var(--md-text-button-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var(--md-text-button-container-shape-start-start, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-text-button-container-shape-start-end, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-text-button-container-shape-end-end, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-text-button-container-shape-end-start, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-text-button-leading-space, 12px);--_trailing-space: var(--md-text-button-trailing-space, 12px);--_with-leading-icon-leading-space: var(--md-text-button-with-leading-icon-leading-space, 12px);--_with-leading-icon-trailing-space: var(--md-text-button-with-leading-icon-trailing-space, 16px);--_with-trailing-icon-leading-space: var(--md-text-button-with-trailing-icon-leading-space, 16px);--_with-trailing-icon-trailing-space: var(--md-text-button-with-trailing-icon-trailing-space, 12px);--_container-color: none;--_disabled-container-color: none;--_disabled-container-opacity: 0} +`;let Wy=class extends ule{};Wy.styles=[Bu,fle];Wy=O([st("md-text-button")],Wy);function Ua(t,e){e.bubbles&&(!t.shadowRoot||e.composed)&&e.stopPropagation();const r=Reflect.construct(e.constructor,[e.type,e]),n=t.dispatchEvent(r);return n||e.preventDefault(),n}const Bs=Symbol("createValidator"),Vs=Symbol("getValidityAnchor"),r_=Symbol("privateValidator"),ho=Symbol("privateSyncValidity"),yh=Symbol("privateCustomValidationMessage");function Vu(t){var e;class r extends t{constructor(){super(...arguments),this[e]=""}get validity(){return this[ho](),this[Gr].validity}get validationMessage(){return this[ho](),this[Gr].validationMessage}get willValidate(){return this[ho](),this[Gr].willValidate}checkValidity(){return this[ho](),this[Gr].checkValidity()}reportValidity(){return this[ho](),this[Gr].reportValidity()}setCustomValidity(i){this[yh]=i,this[ho]()}requestUpdate(i,o,a){super.requestUpdate(i,o,a),this[ho]()}firstUpdated(i){super.firstUpdated(i),this[ho]()}[(e=yh,ho)](){this[r_]||(this[r_]=this[Bs]());const{validity:i,validationMessage:o}=this[r_].getValidity(),a=!!this[yh],l=this[yh]||o;this[Gr].setValidity({...i,customError:a},l,this[Vs]()??void 0)}[Bs](){throw new Error("Implement [createValidator]")}[Vs](){throw new Error("Implement [getValidityAnchor]")}}return r}const To=Symbol("getFormValue"),bu=Symbol("getFormState");function Ic(t){class e extends t{get form(){return this[Gr].form}get labels(){return this[Gr].labels}get name(){return this.getAttribute("name")??""}set name(n){this.setAttribute("name",n)}get disabled(){return this.hasAttribute("disabled")}set disabled(n){this.toggleAttribute("disabled",n)}attributeChangedCallback(n,i,o){if(n==="name"||n==="disabled"){const a=n==="disabled"?i!==null:i;this.requestUpdate(n,a);return}super.attributeChangedCallback(n,i,o)}requestUpdate(n,i,o){super.requestUpdate(n,i,o),this[Gr].setFormValue(this[To](),this[bu]())}[To](){throw new Error("Implement [getFormValue]")}[bu](){return this[To]()}formDisabledCallback(n){this.disabled=n}}return e.formAssociated=!0,O([H({noAccessor:!0})],e.prototype,"name",null),O([H({type:Boolean,noAccessor:!0})],e.prototype,"disabled",null),e}class Pm{constructor(e){this.getCurrentState=e,this.currentValidity={validity:{},validationMessage:""}}getValidity(){const e=this.getCurrentState();if(!(!this.prevState||!this.equals(this.prevState,e)))return this.currentValidity;const{validity:n,validationMessage:i}=this.computeValidity(e);return this.prevState=this.copy(e),this.currentValidity={validationMessage:i,validity:{badInput:n.badInput,customError:n.customError,patternMismatch:n.patternMismatch,rangeOverflow:n.rangeOverflow,rangeUnderflow:n.rangeUnderflow,stepMismatch:n.stepMismatch,tooLong:n.tooLong,tooShort:n.tooShort,typeMismatch:n.typeMismatch,valueMissing:n.valueMissing}},this.currentValidity}}class ZI extends Pm{computeValidity(e){return this.checkboxControl||(this.checkboxControl=document.createElement("input"),this.checkboxControl.type="checkbox"),this.checkboxControl.checked=e.checked,this.checkboxControl.required=e.required,{validity:this.checkboxControl.validity,validationMessage:this.checkboxControl.validationMessage}}equals(e,r){return e.checked===r.checked&&e.required===r.required}copy({checked:e,required:r}){return{checked:e,required:r}}}const hle=Vu(Ic(Xa(ft)));class Oi extends hle{constructor(){super(),this.checked=!1,this.indeterminate=!1,this.required=!1,this.value="on",this.prevChecked=!1,this.prevDisabled=!1,this.prevIndeterminate=!1,this.addEventListener("click",e=>{!qu(e)||!this.input||(this.focus(),Om(this.input))})}update(e){(e.has("checked")||e.has("disabled")||e.has("indeterminate"))&&(this.prevChecked=e.get("checked")??this.checked,this.prevDisabled=e.get("disabled")??this.disabled,this.prevIndeterminate=e.get("indeterminate")??this.indeterminate),super.update(e)}render(){const e=!this.prevChecked&&!this.prevIndeterminate,r=this.prevChecked&&!this.prevIndeterminate,n=this.prevIndeterminate,i=this.checked&&!this.indeterminate,o=this.indeterminate,a=Zt({disabled:this.disabled,selected:i||o,unselected:!i&&!o,checked:i,indeterminate:o,"prev-unselected":e,"prev-checked":r,"prev-indeterminate":n,"prev-disabled":this.prevDisabled}),{ariaLabel:l,ariaInvalid:d}=this;return me`
- `}handleInput(e){const r=e.target;this.checked=r.checked,this.indeterminate=r.indeterminate}handleChange(e){Ma(this,e)}[yo](){return!this.checked||this.indeterminate?null:this.value}[lu](){return String(this.checked)}formResetCallback(){this.checked=this.hasAttribute("checked")}formStateRestoreCallback(e){this.checked=e==="true"}[Os](){return new UI(()=>this)}[Ps](){return this.input}}Xr($i);$i.shadowRootOptions={...dt.shadowRootOptions,delegatesFocus:!0};O([H({type:Boolean})],$i.prototype,"checked",void 0);O([H({type:Boolean})],$i.prototype,"indeterminate",void 0);O([H({type:Boolean})],$i.prototype,"required",void 0);O([H()],$i.prototype,"value",void 0);O([Pt()],$i.prototype,"prevChecked",void 0);O([Pt()],$i.prototype,"prevDisabled",void 0);O([Pt()],$i.prototype,"prevIndeterminate",void 0);O([gt("input")],$i.prototype,"input",void 0);const Yse=He`:host{border-start-start-radius:var(--md-checkbox-container-shape-start-start, var(--md-checkbox-container-shape, 2px));border-start-end-radius:var(--md-checkbox-container-shape-start-end, var(--md-checkbox-container-shape, 2px));border-end-end-radius:var(--md-checkbox-container-shape-end-end, var(--md-checkbox-container-shape, 2px));border-end-start-radius:var(--md-checkbox-container-shape-end-start, var(--md-checkbox-container-shape, 2px));display:inline-flex;height:var(--md-checkbox-container-size, 18px);position:relative;vertical-align:top;width:var(--md-checkbox-container-size, 18px);-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer}:host([disabled]){cursor:default}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--md-checkbox-container-size, 18px))/2)}md-focus-ring{height:44px;inset:unset;width:44px}input{appearance:none;height:48px;margin:0;opacity:0;outline:none;position:absolute;width:48px;z-index:1;cursor:inherit}:host([touch-target=none]) input{height:100%;width:100%}.container{border-radius:inherit;display:flex;height:100%;place-content:center;place-items:center;position:relative;width:100%}.outline,.background,.icon{inset:0;position:absolute}.outline,.background{border-radius:inherit}.outline{border-color:var(--md-checkbox-outline-color, var(--md-sys-color-on-surface-variant, #49454f));border-style:solid;border-width:var(--md-checkbox-outline-width, 2px);box-sizing:border-box}.background{background-color:var(--md-checkbox-selected-container-color, var(--md-sys-color-primary, #6750a4))}.background,.icon{opacity:0;transition-duration:150ms,50ms;transition-property:transform,opacity;transition-timing-function:cubic-bezier(0.3, 0, 0.8, 0.15),linear;transform:scale(0.6)}:where(.selected) :is(.background,.icon){opacity:1;transition-duration:350ms,50ms;transition-timing-function:cubic-bezier(0.05, 0.7, 0.1, 1),linear;transform:scale(1)}md-ripple{border-radius:var(--md-checkbox-state-layer-shape, var(--md-sys-shape-corner-full, 9999px));height:var(--md-checkbox-state-layer-size, 40px);inset:unset;width:var(--md-checkbox-state-layer-size, 40px);--md-ripple-hover-color: var(--md-checkbox-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity: var(--md-checkbox-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-checkbox-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-pressed-opacity: var(--md-checkbox-pressed-state-layer-opacity, 0.12)}.selected md-ripple{--md-ripple-hover-color: var(--md-checkbox-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-hover-opacity: var(--md-checkbox-selected-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-checkbox-selected-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity: var(--md-checkbox-selected-pressed-state-layer-opacity, 0.12)}.icon{fill:var(--md-checkbox-selected-icon-color, var(--md-sys-color-on-primary, #fff));height:var(--md-checkbox-icon-size, 18px);width:var(--md-checkbox-icon-size, 18px)}.mark.short{height:2px;transition-property:transform,height;width:2px}.mark.long{height:2px;transition-property:transform,width;width:10px}.mark{animation-duration:150ms;animation-timing-function:cubic-bezier(0.3, 0, 0.8, 0.15);transition-duration:150ms;transition-timing-function:cubic-bezier(0.3, 0, 0.8, 0.15)}.selected .mark{animation-duration:350ms;animation-timing-function:cubic-bezier(0.05, 0.7, 0.1, 1);transition-duration:350ms;transition-timing-function:cubic-bezier(0.05, 0.7, 0.1, 1)}.checked .mark,.prev-checked.unselected .mark{transform:scaleY(-1) translate(7px, -14px) rotate(45deg)}.checked .mark.short,.prev-checked.unselected .mark.short{height:5.6568542495px}.checked .mark.long,.prev-checked.unselected .mark.long{width:11.313708499px}.indeterminate .mark,.prev-indeterminate.unselected .mark{transform:scaleY(-1) translate(4px, -10px) rotate(0deg)}.prev-unselected .mark{transition-property:none}.prev-unselected.checked .mark.long{animation-name:prev-unselected-to-checked}@keyframes prev-unselected-to-checked{from{width:0}}:where(:hover) .outline{border-color:var(--md-checkbox-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));border-width:var(--md-checkbox-hover-outline-width, 2px)}:where(:hover) .background{background:var(--md-checkbox-selected-hover-container-color, var(--md-sys-color-primary, #6750a4))}:where(:hover) .icon{fill:var(--md-checkbox-selected-hover-icon-color, var(--md-sys-color-on-primary, #fff))}:where(:focus-within) .outline{border-color:var(--md-checkbox-focus-outline-color, var(--md-sys-color-on-surface, #1d1b20));border-width:var(--md-checkbox-focus-outline-width, 2px)}:where(:focus-within) .background{background:var(--md-checkbox-selected-focus-container-color, var(--md-sys-color-primary, #6750a4))}:where(:focus-within) .icon{fill:var(--md-checkbox-selected-focus-icon-color, var(--md-sys-color-on-primary, #fff))}:where(:active) .outline{border-color:var(--md-checkbox-pressed-outline-color, var(--md-sys-color-on-surface, #1d1b20));border-width:var(--md-checkbox-pressed-outline-width, 2px)}:where(:active) .background{background:var(--md-checkbox-selected-pressed-container-color, var(--md-sys-color-primary, #6750a4))}:where(:active) .icon{fill:var(--md-checkbox-selected-pressed-icon-color, var(--md-sys-color-on-primary, #fff))}:where(.disabled,.prev-disabled) :is(.background,.icon,.mark){animation-duration:0s;transition-duration:0s}:where(.disabled) .outline{border-color:var(--md-checkbox-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));border-width:var(--md-checkbox-disabled-outline-width, 2px);opacity:var(--md-checkbox-disabled-container-opacity, 0.38)}:where(.selected.disabled) .outline{visibility:hidden}:where(.selected.disabled) .background{background:var(--md-checkbox-selected-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-checkbox-selected-disabled-container-opacity, 0.38)}:where(.disabled) .icon{fill:var(--md-checkbox-selected-disabled-icon-color, var(--md-sys-color-surface, #fef7ff))}@media(forced-colors: active){.background{background-color:CanvasText}.selected.disabled .background{background-color:GrayText;opacity:1}.outline{border-color:CanvasText}.disabled .outline{border-color:GrayText;opacity:1}.icon{fill:Canvas}} -`;let Ry=class extends $i{};Ry.styles=[Yse];Ry=O([ot("md-checkbox")],Ry);class Ro extends dt{constructor(){super(...arguments),this.disabled=!1,this.alwaysFocusable=!1,this.label="",this.hasIcon=!1}get rippleDisabled(){return this.disabled}focus(e){this.disabled&&!this.alwaysFocusable||super.focus(e)}render(){return ve` -
+ `}handleInput(e){const r=e.target;this.checked=r.checked,this.indeterminate=r.indeterminate}handleChange(e){Ua(this,e)}[To](){return!this.checked||this.indeterminate?null:this.value}[bu](){return String(this.checked)}formResetCallback(){this.checked=this.hasAttribute("checked")}formStateRestoreCallback(e){this.checked=e==="true"}[Bs](){return new ZI(()=>this)}[Vs](){return this.input}}en(Oi);Oi.shadowRootOptions={...ft.shadowRootOptions,delegatesFocus:!0};O([H({type:Boolean})],Oi.prototype,"checked",void 0);O([H({type:Boolean})],Oi.prototype,"indeterminate",void 0);O([H({type:Boolean})],Oi.prototype,"required",void 0);O([H()],Oi.prototype,"value",void 0);O([Lt()],Oi.prototype,"prevChecked",void 0);O([Lt()],Oi.prototype,"prevDisabled",void 0);O([Lt()],Oi.prototype,"prevIndeterminate",void 0);O([xt("input")],Oi.prototype,"input",void 0);const ple=He`:host{border-start-start-radius:var(--md-checkbox-container-shape-start-start, var(--md-checkbox-container-shape, 2px));border-start-end-radius:var(--md-checkbox-container-shape-start-end, var(--md-checkbox-container-shape, 2px));border-end-end-radius:var(--md-checkbox-container-shape-end-end, var(--md-checkbox-container-shape, 2px));border-end-start-radius:var(--md-checkbox-container-shape-end-start, var(--md-checkbox-container-shape, 2px));display:inline-flex;height:var(--md-checkbox-container-size, 18px);position:relative;vertical-align:top;width:var(--md-checkbox-container-size, 18px);-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer}:host([disabled]){cursor:default}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--md-checkbox-container-size, 18px))/2)}md-focus-ring{height:44px;inset:unset;width:44px}input{appearance:none;height:48px;margin:0;opacity:0;outline:none;position:absolute;width:48px;z-index:1;cursor:inherit}:host([touch-target=none]) input{height:100%;width:100%}.container{border-radius:inherit;display:flex;height:100%;place-content:center;place-items:center;position:relative;width:100%}.outline,.background,.icon{inset:0;position:absolute}.outline,.background{border-radius:inherit}.outline{border-color:var(--md-checkbox-outline-color, var(--md-sys-color-on-surface-variant, #49454f));border-style:solid;border-width:var(--md-checkbox-outline-width, 2px);box-sizing:border-box}.background{background-color:var(--md-checkbox-selected-container-color, var(--md-sys-color-primary, #6750a4))}.background,.icon{opacity:0;transition-duration:150ms,50ms;transition-property:transform,opacity;transition-timing-function:cubic-bezier(0.3, 0, 0.8, 0.15),linear;transform:scale(0.6)}:where(.selected) :is(.background,.icon){opacity:1;transition-duration:350ms,50ms;transition-timing-function:cubic-bezier(0.05, 0.7, 0.1, 1),linear;transform:scale(1)}md-ripple{border-radius:var(--md-checkbox-state-layer-shape, var(--md-sys-shape-corner-full, 9999px));height:var(--md-checkbox-state-layer-size, 40px);inset:unset;width:var(--md-checkbox-state-layer-size, 40px);--md-ripple-hover-color: var(--md-checkbox-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity: var(--md-checkbox-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-checkbox-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-pressed-opacity: var(--md-checkbox-pressed-state-layer-opacity, 0.12)}.selected md-ripple{--md-ripple-hover-color: var(--md-checkbox-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-hover-opacity: var(--md-checkbox-selected-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-checkbox-selected-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity: var(--md-checkbox-selected-pressed-state-layer-opacity, 0.12)}.icon{fill:var(--md-checkbox-selected-icon-color, var(--md-sys-color-on-primary, #fff));height:var(--md-checkbox-icon-size, 18px);width:var(--md-checkbox-icon-size, 18px)}.mark.short{height:2px;transition-property:transform,height;width:2px}.mark.long{height:2px;transition-property:transform,width;width:10px}.mark{animation-duration:150ms;animation-timing-function:cubic-bezier(0.3, 0, 0.8, 0.15);transition-duration:150ms;transition-timing-function:cubic-bezier(0.3, 0, 0.8, 0.15)}.selected .mark{animation-duration:350ms;animation-timing-function:cubic-bezier(0.05, 0.7, 0.1, 1);transition-duration:350ms;transition-timing-function:cubic-bezier(0.05, 0.7, 0.1, 1)}.checked .mark,.prev-checked.unselected .mark{transform:scaleY(-1) translate(7px, -14px) rotate(45deg)}.checked .mark.short,.prev-checked.unselected .mark.short{height:5.6568542495px}.checked .mark.long,.prev-checked.unselected .mark.long{width:11.313708499px}.indeterminate .mark,.prev-indeterminate.unselected .mark{transform:scaleY(-1) translate(4px, -10px) rotate(0deg)}.prev-unselected .mark{transition-property:none}.prev-unselected.checked .mark.long{animation-name:prev-unselected-to-checked}@keyframes prev-unselected-to-checked{from{width:0}}:where(:hover) .outline{border-color:var(--md-checkbox-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));border-width:var(--md-checkbox-hover-outline-width, 2px)}:where(:hover) .background{background:var(--md-checkbox-selected-hover-container-color, var(--md-sys-color-primary, #6750a4))}:where(:hover) .icon{fill:var(--md-checkbox-selected-hover-icon-color, var(--md-sys-color-on-primary, #fff))}:where(:focus-within) .outline{border-color:var(--md-checkbox-focus-outline-color, var(--md-sys-color-on-surface, #1d1b20));border-width:var(--md-checkbox-focus-outline-width, 2px)}:where(:focus-within) .background{background:var(--md-checkbox-selected-focus-container-color, var(--md-sys-color-primary, #6750a4))}:where(:focus-within) .icon{fill:var(--md-checkbox-selected-focus-icon-color, var(--md-sys-color-on-primary, #fff))}:where(:active) .outline{border-color:var(--md-checkbox-pressed-outline-color, var(--md-sys-color-on-surface, #1d1b20));border-width:var(--md-checkbox-pressed-outline-width, 2px)}:where(:active) .background{background:var(--md-checkbox-selected-pressed-container-color, var(--md-sys-color-primary, #6750a4))}:where(:active) .icon{fill:var(--md-checkbox-selected-pressed-icon-color, var(--md-sys-color-on-primary, #fff))}:where(.disabled,.prev-disabled) :is(.background,.icon,.mark){animation-duration:0s;transition-duration:0s}:where(.disabled) .outline{border-color:var(--md-checkbox-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));border-width:var(--md-checkbox-disabled-outline-width, 2px);opacity:var(--md-checkbox-disabled-container-opacity, 0.38)}:where(.selected.disabled) .outline{visibility:hidden}:where(.selected.disabled) .background{background:var(--md-checkbox-selected-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-checkbox-selected-disabled-container-opacity, 0.38)}:where(.disabled) .icon{fill:var(--md-checkbox-selected-disabled-icon-color, var(--md-sys-color-surface, #fef7ff))}@media(forced-colors: active){.background{background-color:CanvasText}.selected.disabled .background{background-color:GrayText;opacity:1}.outline{border-color:CanvasText}.disabled .outline{border-color:GrayText;opacity:1}.icon{fill:Canvas}} +`;let Gy=class extends Oi{};Gy.styles=[ple];Gy=O([st("md-checkbox")],Gy);class No extends ft{constructor(){super(...arguments),this.disabled=!1,this.alwaysFocusable=!1,this.label="",this.hasIcon=!1}get rippleDisabled(){return this.disabled}focus(e){this.disabled&&!this.alwaysFocusable||super.focus(e)}render(){return me` +
${this.renderContainerContent()}
- `}updated(e){e.has("disabled")&&e.get("disabled")!==void 0&&this.dispatchEvent(new Event("update-focus",{bubbles:!0}))}getContainerClasses(){return{disabled:this.disabled,"has-icon":this.hasIcon}}renderContainerContent(){return ve` + `}updated(e){e.has("disabled")&&e.get("disabled")!==void 0&&this.dispatchEvent(new Event("update-focus",{bubbles:!0}))}getContainerClasses(){return{disabled:this.disabled,"has-icon":this.hasIcon}}renderContainerContent(){return me` ${this.renderOutline()} ${this.renderPrimaryAction(this.renderPrimaryContent())} - `}renderOutline(){return ve``}renderLeadingIcon(){return ve``}renderPrimaryContent(){return ve` + `}renderOutline(){return me``}renderLeadingIcon(){return me``}renderPrimaryContent(){return me` ${this.label} - `}handleIconChange(e){const r=e.target;this.hasIcon=r.assignedElements({flatten:!0}).length>0}}Xr(Ro);Ro.shadowRootOptions={...dt.shadowRootOptions,delegatesFocus:!0};O([H({type:Boolean,reflect:!0})],Ro.prototype,"disabled",void 0);O([H({type:Boolean,attribute:"always-focusable"})],Ro.prototype,"alwaysFocusable",void 0);O([H()],Ro.prototype,"label",void 0);O([H({type:Boolean,reflect:!0,attribute:"has-icon"})],Ro.prototype,"hasIcon",void 0);class Ou extends Ro{constructor(){super(...arguments),this.elevated=!1,this.href="",this.target=""}get primaryId(){return this.href?"link":"button"}get rippleDisabled(){return!this.href&&this.disabled}getContainerClasses(){return{...super.getContainerClasses(),disabled:!this.href&&this.disabled,elevated:this.elevated,link:!!this.href}}renderPrimaryAction(e){const{ariaLabel:r}=this;return this.href?ve` + `}handleIconChange(e){const r=e.target;this.hasIcon=r.assignedElements({flatten:!0}).length>0}}en(No);No.shadowRootOptions={...ft.shadowRootOptions,delegatesFocus:!0};O([H({type:Boolean,reflect:!0})],No.prototype,"disabled",void 0);O([H({type:Boolean,attribute:"always-focusable"})],No.prototype,"alwaysFocusable",void 0);O([H()],No.prototype,"label",void 0);O([H({type:Boolean,reflect:!0,attribute:"has-icon"})],No.prototype,"hasIcon",void 0);class Uu extends No{constructor(){super(...arguments),this.elevated=!1,this.href="",this.target=""}get primaryId(){return this.href?"link":"button"}get rippleDisabled(){return!this.href&&this.disabled}getContainerClasses(){return{...super.getContainerClasses(),disabled:!this.href&&this.disabled,elevated:this.elevated,link:!!this.href}}renderPrimaryAction(e){const{ariaLabel:r}=this;return this.href?me` ${e} - `:ve` + `:me` - `}renderOutline(){return this.elevated?ve``:super.renderOutline()}}O([H({type:Boolean})],Ou.prototype,"elevated",void 0);O([H()],Ou.prototype,"href",void 0);O([H()],Ou.prototype,"target",void 0);const Xse=He`:host{--_container-height: var(--md-assist-chip-container-height, 32px);--_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(--md-assist-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-start-end: var(--md-assist-chip-container-shape-start-end, var(--md-assist-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-end-end: var(--md-assist-chip-container-shape-end-end, var(--md-assist-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-end-start: var(--md-assist-chip-container-shape-end-start, var(--md-assist-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_leading-space: var(--md-assist-chip-leading-space, 16px);--_trailing-space: var(--md-assist-chip-trailing-space, 16px);--_icon-label-space: var(--md-assist-chip-icon-label-space, 8px);--_with-leading-icon-leading-space: var(--md-assist-chip-with-leading-icon-leading-space, 8px)}@media(forced-colors: active){.link .outline{border-color:ActiveText}} -`;const C1=He`.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}} -`;const Tm=He`: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;-webkit-tap-highlight-color:rgba(0,0,0,0);--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([disabled]){pointer-events:none}: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;outline:none;padding:0;position:relative;text-decoration:none}.primary.action{padding-inline-start:var(--_leading-space);padding-inline-end:var(--_trailing-space)}.has-icon .primary.action{padding-inline-start:var(--_with-leading-icon-leading-space)}.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)}.leading.icon ::slotted(*),.leading.icon svg{margin-inline-end:var(--_icon-label-space)}: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{text-transform:inherit}a,button:not(:disabled){cursor:inherit} -`;let Dy=class extends Ou{};Dy.styles=[Tm,C1,Xse];Dy=O([ot("md-assist-chip")],Dy);class VI extends dt{get chips(){return this.childElements.filter(e=>e instanceof Ro)}constructor(){super(),this.internals=this.attachInternals(),this.addEventListener("focusin",this.updateTabIndices.bind(this)),this.addEventListener("update-focus",this.updateTabIndices.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.internals.role="toolbar"}render(){return ve``}handleKeyDown(e){const r=e.key==="ArrowLeft",n=e.key==="ArrowRight",i=e.key==="Home",o=e.key==="End";if(!r&&!n&&!i&&!o)return;const{chips:a}=this;if(a.length<2)return;if(e.preventDefault(),i||o){const y=i?0:a.length-1;a[y].focus({trailing:o}),this.updateTabIndices();return}const d=getComputedStyle(this).direction==="rtl"?r:n,u=a.find(y=>y.matches(":focus-within"));if(!u){(d?a[0]:a[a.length-1]).focus({trailing:!d}),this.updateTabIndices();return}const f=a.indexOf(u);let g=d?f+1:f-1;for(;g!==f;){g>=a.length?g=0:g<0&&(g=a.length-1);const y=a[g];if(y.disabled&&!y.alwaysFocusable){d?g++:g--;continue}y.focus({trailing:!d}),this.updateTabIndices();break}}updateTabIndices(){const{chips:e}=this;let r;for(const n of e){const i=n.alwaysFocusable||!n.disabled;if(n.matches(":focus-within")&&i){r=n;continue}i&&!r&&(r=n),n.tabIndex=-1}r&&(r.tabIndex=0)}}O([Ar()],VI.prototype,"childElements",void 0);const Jse=He`:host{display:flex;flex-wrap:wrap;gap:8px} -`;let Ly=class extends VI{};Ly.styles=[Jse];Ly=O([ot("md-chip-set")],Ly);const ch="aria-label-remove";class jI extends Ro{get ariaLabelRemove(){if(this.hasAttribute(ch))return this.getAttribute(ch);const{ariaLabel:e}=this;return`Remove ${e||this.label}`}set ariaLabelRemove(e){const r=this.ariaLabelRemove;e!==r&&(e===null?this.removeAttribute(ch):this.setAttribute(ch,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 ve` + `}renderOutline(){return this.elevated?me``:super.renderOutline()}}O([H({type:Boolean})],Uu.prototype,"elevated",void 0);O([H()],Uu.prototype,"href",void 0);O([H()],Uu.prototype,"target",void 0);const mle=He`:host{--_container-height: var(--md-assist-chip-container-height, 32px);--_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(--md-assist-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-start-end: var(--md-assist-chip-container-shape-start-end, var(--md-assist-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-end-end: var(--md-assist-chip-container-shape-end-end, var(--md-assist-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-end-start: var(--md-assist-chip-container-shape-end-start, var(--md-assist-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_leading-space: var(--md-assist-chip-leading-space, 16px);--_trailing-space: var(--md-assist-chip-trailing-space, 16px);--_icon-label-space: var(--md-assist-chip-icon-label-space, 8px);--_with-leading-icon-leading-space: var(--md-assist-chip-with-leading-icon-leading-space, 8px)}@media(forced-colors: active){.link .outline{border-color:ActiveText}} +`;const B1=He`.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}} +`;const Rm=He`: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;-webkit-tap-highlight-color:rgba(0,0,0,0);--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([disabled]){pointer-events:none}: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;outline:none;padding:0;position:relative;text-decoration:none}.primary.action{padding-inline-start:var(--_leading-space);padding-inline-end:var(--_trailing-space)}.has-icon .primary.action{padding-inline-start:var(--_with-leading-icon-leading-space)}.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)}.leading.icon ::slotted(*),.leading.icon svg{margin-inline-end:var(--_icon-label-space)}: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{text-transform:inherit}a,button:not(:disabled){cursor:inherit} +`;let Qy=class extends Uu{};Qy.styles=[Rm,B1,mle];Qy=O([st("md-assist-chip")],Qy);class e$ extends ft{get chips(){return this.childElements.filter(e=>e instanceof No)}constructor(){super(),this.internals=this.attachInternals(),this.addEventListener("focusin",this.updateTabIndices.bind(this)),this.addEventListener("update-focus",this.updateTabIndices.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.internals.role="toolbar"}render(){return me``}handleKeyDown(e){const r=e.key==="ArrowLeft",n=e.key==="ArrowRight",i=e.key==="Home",o=e.key==="End";if(!r&&!n&&!i&&!o)return;const{chips:a}=this;if(a.length<2)return;if(e.preventDefault(),i||o){const y=i?0:a.length-1;a[y].focus({trailing:o}),this.updateTabIndices();return}const d=getComputedStyle(this).direction==="rtl"?r:n,u=a.find(y=>y.matches(":focus-within"));if(!u){(d?a[0]:a[a.length-1]).focus({trailing:!d}),this.updateTabIndices();return}const f=a.indexOf(u);let g=d?f+1:f-1;for(;g!==f;){g>=a.length?g=0:g<0&&(g=a.length-1);const y=a[g];if(y.disabled&&!y.alwaysFocusable){d?g++:g--;continue}y.focus({trailing:!d}),this.updateTabIndices();break}}updateTabIndices(){const{chips:e}=this;let r;for(const n of e){const i=n.alwaysFocusable||!n.disabled;if(n.matches(":focus-within")&&i){r=n;continue}i&&!r&&(r=n),n.tabIndex=-1}r&&(r.tabIndex=0)}}O([Or()],e$.prototype,"childElements",void 0);const vle=He`:host{display:flex;flex-wrap:wrap;gap:8px} +`;let Ky=class extends e${};Ky.styles=[vle];Ky=O([st("md-chip-set")],Ky);const bh="aria-label-remove";class t$ extends No{get ariaLabelRemove(){if(this.hasAttribute(bh))return this.getAttribute(bh);const{ariaLabel:e}=this;return`Remove ${e||this.label}`}set ariaLabelRemove(e){const r=this.ariaLabelRemove;e!==r&&(e===null?this.removeAttribute(bh):this.setAttribute(bh,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 me` ${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"),l=(f=this.trailingAction)==null?void 0:f.matches(":focus-within");if(o&&l||!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 HI({ariaLabel:t,disabled:e,focusListener:r,tabbable:n=!1}){return ve` + `}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"),l=(f=this.trailingAction)==null?void 0:f.matches(":focus-within");if(o&&l||!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 r$({ariaLabel:t,disabled:e,focusListener:r,tabbable:n=!1}){return me` - `}function Zse(t){this.disabled||(t.stopPropagation(),!this.dispatchEvent(new Event("remove",{cancelable:!0})))||this.remove()}class Hs extends jI{constructor(){super(...arguments),this.elevated=!1,this.removable=!1,this.selected=!1,this.hasSelectedIcon=!1}get primaryId(){return"button"}getContainerClasses(){return{...super.getContainerClasses(),elevated:this.elevated,selected:this.selected,"has-trailing":this.removable,"has-icon":this.hasIcon||this.selected}}renderPrimaryAction(e){const{ariaLabel:r}=this;return ve` + `}function gle(t){this.disabled||(t.stopPropagation(),!this.dispatchEvent(new Event("remove",{cancelable:!0})))||this.remove()}class tl extends t${constructor(){super(...arguments),this.elevated=!1,this.removable=!1,this.selected=!1,this.hasSelectedIcon=!1}get primaryId(){return"button"}getContainerClasses(){return{...super.getContainerClasses(),elevated:this.elevated,selected:this.selected,"has-trailing":this.removable,"has-icon":this.hasIcon||this.selected}}renderPrimaryAction(e){const{ariaLabel:r}=this;return me` - `}renderLeadingIcon(){return this.selected?ve` + `}renderLeadingIcon(){return this.selected?me` - `:super.renderLeadingIcon()}renderTrailingAction(e){return this.removable?HI({focusListener:e,ariaLabel:this.ariaLabelRemove,disabled:this.disabled}):me}renderOutline(){return this.elevated?ve``:super.renderOutline()}handleClick(e){if(this.disabled)return;const r=this.selected;if(this.selected=!this.selected,!Ma(this,e)){this.selected=r;return}}}O([H({type:Boolean})],Hs.prototype,"elevated",void 0);O([H({type:Boolean})],Hs.prototype,"removable",void 0);O([H({type:Boolean,reflect:!0})],Hs.prototype,"selected",void 0);O([H({type:Boolean,reflect:!0,attribute:"has-selected-icon"})],Hs.prototype,"hasSelectedIcon",void 0);O([gt(".primary.action")],Hs.prototype,"primaryAction",void 0);O([gt(".trailing.action")],Hs.prototype,"trailingAction",void 0);const ele=He`:host{--_container-height: var(--md-filter-chip-container-height, 32px);--_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(--md-filter-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-start-end: var(--md-filter-chip-container-shape-start-end, var(--md-filter-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-end-end: var(--md-filter-chip-container-shape-end-end, var(--md-filter-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-end-start: var(--md-filter-chip-container-shape-end-start, var(--md-filter-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_leading-space: var(--md-filter-chip-leading-space, 16px);--_trailing-space: var(--md-filter-chip-trailing-space, 16px);--_icon-label-space: var(--md-filter-chip-icon-label-space, 8px);--_with-leading-icon-leading-space: var(--md-filter-chip-with-leading-icon-leading-space, 8px);--_with-trailing-icon-trailing-space: var(--md-filter-chip-with-trailing-icon-trailing-space, 8px)}.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}} -`;const WI=He`.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}} -`;const GI=He`.trailing.action{align-items:center;justify-content:center;padding-inline-start:var(--_icon-label-space);padding-inline-end:var(--_with-trailing-icon-trailing-space)}.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}} -`;let My=class extends Hs{};My.styles=[Tm,C1,GI,WI,ele];My=O([ot("md-filter-chip")],My);class Ws extends jI{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?ve` + `:super.renderLeadingIcon()}renderTrailingAction(e){return this.removable?r$({focusListener:e,ariaLabel:this.ariaLabelRemove,disabled:this.disabled}):pe}renderOutline(){return this.elevated?me``:super.renderOutline()}handleClick(e){if(this.disabled)return;const r=this.selected;if(this.selected=!this.selected,!Ua(this,e)){this.selected=r;return}}}O([H({type:Boolean})],tl.prototype,"elevated",void 0);O([H({type:Boolean})],tl.prototype,"removable",void 0);O([H({type:Boolean,reflect:!0})],tl.prototype,"selected",void 0);O([H({type:Boolean,reflect:!0,attribute:"has-selected-icon"})],tl.prototype,"hasSelectedIcon",void 0);O([xt(".primary.action")],tl.prototype,"primaryAction",void 0);O([xt(".trailing.action")],tl.prototype,"trailingAction",void 0);const _le=He`:host{--_container-height: var(--md-filter-chip-container-height, 32px);--_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(--md-filter-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-start-end: var(--md-filter-chip-container-shape-start-end, var(--md-filter-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-end-end: var(--md-filter-chip-container-shape-end-end, var(--md-filter-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-end-start: var(--md-filter-chip-container-shape-end-start, var(--md-filter-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_leading-space: var(--md-filter-chip-leading-space, 16px);--_trailing-space: var(--md-filter-chip-trailing-space, 16px);--_icon-label-space: var(--md-filter-chip-icon-label-space, 8px);--_with-leading-icon-leading-space: var(--md-filter-chip-with-leading-icon-leading-space, 8px);--_with-trailing-icon-trailing-space: var(--md-filter-chip-with-trailing-icon-trailing-space, 8px)}.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}} +`;const n$=He`.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}} +`;const i$=He`.trailing.action{align-items:center;justify-content:center;padding-inline-start:var(--_icon-label-space);padding-inline-end:var(--_with-trailing-icon-trailing-space)}.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}} +`;let Yy=class extends tl{};Yy.styles=[Rm,B1,i$,n$,_le];Yy=O([st("md-filter-chip")],Yy);class rl extends t${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?me` ${e} - `:this.removeOnly?ve` - + `:this.removeOnly?me` + ${e} - `:ve` + `:me` - `}renderTrailingAction(e){return HI({focusListener:e,ariaLabel:this.ariaLabelRemove,disabled:!this.href&&this.disabled,tabbable:this.removeOnly})}}O([H({type:Boolean})],Ws.prototype,"avatar",void 0);O([H()],Ws.prototype,"href",void 0);O([H()],Ws.prototype,"target",void 0);O([H({type:Boolean,attribute:"remove-only"})],Ws.prototype,"removeOnly",void 0);O([H({type:Boolean,reflect:!0})],Ws.prototype,"selected",void 0);O([gt(".trailing.action")],Ws.prototype,"trailingAction",void 0);const tle=He`:host{--_container-height: var(--md-input-chip-container-height, 32px);--_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, var(--md-sys-shape-corner-full, 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(--md-input-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-start-end: var(--md-input-chip-container-shape-start-end, var(--md-input-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-end-end: var(--md-input-chip-container-shape-end-end, var(--md-input-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-end-start: var(--md-input-chip-container-shape-end-start, var(--md-input-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_leading-space: var(--md-input-chip-leading-space, 16px);--_trailing-space: var(--md-input-chip-trailing-space, 16px);--_icon-label-space: var(--md-input-chip-icon-label-space, 8px);--_with-leading-icon-leading-space: var(--md-input-chip-with-leading-icon-leading-space, 8px);--_with-trailing-icon-trailing-space: var(--md-input-chip-with-trailing-icon-trailing-space, 8px)}: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}} -`;let Fy=class extends Ws{};Fy.styles=[Tm,GI,WI,tle];Fy=O([ot("md-input-chip")],Fy);class rle extends Ou{}const nle=He`:host{--_container-height: var(--md-suggestion-chip-container-height, 32px);--_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(--md-suggestion-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-start-end: var(--md-suggestion-chip-container-shape-start-end, var(--md-suggestion-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-end-end: var(--md-suggestion-chip-container-shape-end-end, var(--md-suggestion-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-end-start: var(--md-suggestion-chip-container-shape-end-start, var(--md-suggestion-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_leading-space: var(--md-suggestion-chip-leading-space, 16px);--_trailing-space: var(--md-suggestion-chip-trailing-space, 16px);--_icon-label-space: var(--md-suggestion-chip-icon-label-space, 8px);--_with-leading-icon-leading-space: var(--md-suggestion-chip-with-leading-icon-leading-space, 8px)}@media(forced-colors: active){.link .outline{border-color:ActiveText}} -`;let Ny=class extends rle{};Ny.styles=[Tm,C1,nle];Ny=O([ot("md-suggestion-chip")],Ny);class Em extends dt{constructor(){super(...arguments),this.inset=!1,this.insetStart=!1,this.insetEnd=!1}}O([H({type:Boolean,reflect:!0})],Em.prototype,"inset",void 0);O([H({type:Boolean,reflect:!0,attribute:"inset-start"})],Em.prototype,"insetStart",void 0);O([H({type:Boolean,reflect:!0,attribute:"inset-end"})],Em.prototype,"insetEnd",void 0);const ile=He`:host{box-sizing:border-box;color:var(--md-divider-color, var(--md-sys-color-outline-variant, #cac4d0));display:flex;height:var(--md-divider-thickness, 1px);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}} -`;let zy=class extends Em{};zy.styles=[ile];zy=O([ot("md-divider")],zy);const ole={dialog:[[[{transform:"translateY(-50px)"},{transform:"translateY(0)"}],{duration:500,easing:wi.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:wi.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"}]]},ale={dialog:[[[{transform:"translateY(0)"},{transform:"translateY(-50px)"}],{duration:150,easing:wi.EMPHASIZED_ACCELERATE}]],scrim:[[[{opacity:.32},{opacity:0}],{duration:150,easing:"linear"}]],container:[[[{height:"100%"},{height:"35%"}],{duration:150,easing:wi.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 dr extends dt{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.quick=!1,this.returnValue="",this.noFocusTrap=!1,this.getOpenAnimation=()=>ole,this.getCloseAnimation=()=>ale,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.escapePressedWithoutCancel=!1,this.treewalker=document.createTreeWalker(this,NodeFilter.SHOW_ELEMENT),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,this.isOpening=!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},n=this.open&&!this.noFocusTrap,i=ve` + `}renderTrailingAction(e){return r$({focusListener:e,ariaLabel:this.ariaLabelRemove,disabled:!this.href&&this.disabled,tabbable:this.removeOnly})}}O([H({type:Boolean})],rl.prototype,"avatar",void 0);O([H()],rl.prototype,"href",void 0);O([H()],rl.prototype,"target",void 0);O([H({type:Boolean,attribute:"remove-only"})],rl.prototype,"removeOnly",void 0);O([H({type:Boolean,reflect:!0})],rl.prototype,"selected",void 0);O([xt(".trailing.action")],rl.prototype,"trailingAction",void 0);const yle=He`:host{--_container-height: var(--md-input-chip-container-height, 32px);--_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, var(--md-sys-shape-corner-full, 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(--md-input-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-start-end: var(--md-input-chip-container-shape-start-end, var(--md-input-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-end-end: var(--md-input-chip-container-shape-end-end, var(--md-input-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-end-start: var(--md-input-chip-container-shape-end-start, var(--md-input-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_leading-space: var(--md-input-chip-leading-space, 16px);--_trailing-space: var(--md-input-chip-trailing-space, 16px);--_icon-label-space: var(--md-input-chip-icon-label-space, 8px);--_with-leading-icon-leading-space: var(--md-input-chip-with-leading-icon-leading-space, 8px);--_with-trailing-icon-trailing-space: var(--md-input-chip-with-trailing-icon-trailing-space, 8px)}: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}} +`;let Xy=class extends rl{};Xy.styles=[Rm,i$,n$,yle];Xy=O([st("md-input-chip")],Xy);class ble extends Uu{}const xle=He`:host{--_container-height: var(--md-suggestion-chip-container-height, 32px);--_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(--md-suggestion-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-start-end: var(--md-suggestion-chip-container-shape-start-end, var(--md-suggestion-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-end-end: var(--md-suggestion-chip-container-shape-end-end, var(--md-suggestion-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_container-shape-end-start: var(--md-suggestion-chip-container-shape-end-start, var(--md-suggestion-chip-container-shape, var(--md-sys-shape-corner-small, 8px)));--_leading-space: var(--md-suggestion-chip-leading-space, 16px);--_trailing-space: var(--md-suggestion-chip-trailing-space, 16px);--_icon-label-space: var(--md-suggestion-chip-icon-label-space, 8px);--_with-leading-icon-leading-space: var(--md-suggestion-chip-with-leading-icon-leading-space, 8px)}@media(forced-colors: active){.link .outline{border-color:ActiveText}} +`;let Jy=class extends ble{};Jy.styles=[Rm,B1,xle];Jy=O([st("md-suggestion-chip")],Jy);class Dm extends ft{constructor(){super(...arguments),this.inset=!1,this.insetStart=!1,this.insetEnd=!1}}O([H({type:Boolean,reflect:!0})],Dm.prototype,"inset",void 0);O([H({type:Boolean,reflect:!0,attribute:"inset-start"})],Dm.prototype,"insetStart",void 0);O([H({type:Boolean,reflect:!0,attribute:"inset-end"})],Dm.prototype,"insetEnd",void 0);const wle=He`:host{box-sizing:border-box;color:var(--md-divider-color, var(--md-sys-color-outline-variant, #cac4d0));display:flex;height:var(--md-divider-thickness, 1px);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}} +`;let Zy=class extends Dm{};Zy.styles=[wle];Zy=O([st("md-divider")],Zy);const Tle={dialog:[[[{transform:"translateY(-50px)"},{transform:"translateY(0)"}],{duration:500,easing:Ei.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:Ei.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"}]]},Ele={dialog:[[[{transform:"translateY(0)"},{transform:"translateY(-50px)"}],{duration:150,easing:Ei.EMPHASIZED_ACCELERATE}]],scrim:[[[{opacity:.32},{opacity:0}],{duration:150,easing:"linear"}]],container:[[[{height:"100%"},{height:"35%"}],{duration:150,easing:Ei.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 ft{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.quick=!1,this.returnValue="",this.noFocusTrap=!1,this.getOpenAnimation=()=>Tle,this.getCloseAnimation=()=>Ele,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.escapePressedWithoutCancel=!1,this.treewalker=document.createTreeWalker(this,NodeFilter.SHOW_ELEMENT),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,this.isOpening=!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},n=this.open&&!this.noFocusTrap,i=me` - `,{ariaLabel:o}=this;return ve` + `,{ariaLabel:o}=this;return me`
- ${n?i:me} + .returnValue=${this.returnValue||pe}> + ${n?i:pe}
-

+

@@ -1370,30 +1379,30 @@ function print() { __p += __j.call(arguments, '') }

- ${n?i:me} + ${n?i:pe}
- `}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;this.escapePressedWithoutCancel=!1;const r=!Ma(this,e);e.preventDefault(),!r&&this.close()}handleClose(){var e;this.escapePressedWithoutCancel&&(this.escapePressedWithoutCancel=!1,(e=this.dialog)==null||e.dispatchEvent(new Event("cancel",{cancelable:!0})))}handleKeydown(e){e.key==="Escape"&&(this.escapePressedWithoutCancel=!0,setTimeout(()=>{this.escapePressedWithoutCancel=!1}))}async animateDialog(e){var _;if((_=this.cancelAnimations)==null||_.abort(),this.cancelAnimations=new AbortController,this.quick)return;const{dialog:r,scrim:n,container:i,headline:o,content:a,actions:l}=this;if(!r||!n||!i||!o||!a||!l)return;const{container:d,dialog:u,scrim:f,headline:g,content:y,actions:x}=e,m=[[r,u??[]],[n,f??[]],[i,d??[]],[o,g??[]],[a,y??[]],[l,x??[]]],p=[];for(const[v,b]of m)for(const w of b){const E=v.animate(...w);this.cancelAnimations.signal.addEventListener("abort",()=>{E.cancel()}),p.push(E)}await Promise.all(p.map(v=>v.finished.catch(()=>{})))}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})}handleFocusTrapFocus(e){var g;const[r,n]=this.getFirstAndLastFocusableChildren();if(!r||!n){(g=this.dialog)==null||g.focus();return}const i=e.target===this.firstFocusTrap,o=!i,a=e.relatedTarget===r,l=e.relatedTarget===n,d=!a&&!l;if(o&&l||i&&d){r.focus();return}if(i&&a||o&&d){n.focus();return}}getFirstAndLastFocusableChildren(){let e=null,r=null;for(this.treewalker.currentNode=this.treewalker.root;this.treewalker.nextNode();){const n=this.treewalker.currentNode;sle(n)&&(e||(e=n),r=n)}return[e,r]}}Xr(dr);O([H({type:Boolean})],dr.prototype,"open",null);O([H({type:Boolean})],dr.prototype,"quick",void 0);O([H({attribute:!1})],dr.prototype,"returnValue",void 0);O([H()],dr.prototype,"type",void 0);O([H({type:Boolean,attribute:"no-focus-trap"})],dr.prototype,"noFocusTrap",void 0);O([gt("dialog")],dr.prototype,"dialog",void 0);O([gt(".scrim")],dr.prototype,"scrim",void 0);O([gt(".container")],dr.prototype,"container",void 0);O([gt(".headline")],dr.prototype,"headline",void 0);O([gt(".content")],dr.prototype,"content",void 0);O([gt(".actions")],dr.prototype,"actions",void 0);O([Pt()],dr.prototype,"isAtScrollTop",void 0);O([Pt()],dr.prototype,"isAtScrollBottom",void 0);O([gt(".scroller")],dr.prototype,"scroller",void 0);O([gt(".top.anchor")],dr.prototype,"topAnchor",void 0);O([gt(".bottom.anchor")],dr.prototype,"bottomAnchor",void 0);O([gt(".focus-trap")],dr.prototype,"firstFocusTrap",void 0);O([Pt()],dr.prototype,"hasHeadline",void 0);O([Pt()],dr.prototype,"hasActions",void 0);O([Pt()],dr.prototype,"hasIcon",void 0);function sle(t){var o;const e=":is(button,input,select,textarea,object,:is(a,area)[href],[tabindex],[contenteditable=true])",r=":not(:disabled,[disabled])";return t.matches(e+r+':not([tabindex^="-"])')?!0:!t.localName.includes("-")||!t.matches(r)?!1:((o=t.shadowRoot)==null?void 0:o.delegatesFocus)??!1}const lle=He`:host{border-start-start-radius:var(--md-dialog-container-shape-start-start, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));border-start-end-radius:var(--md-dialog-container-shape-start-end, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));border-end-end-radius:var(--md-dialog-container-shape-end-end, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));border-end-start-radius:var(--md-dialog-container-shape-end-start, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));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(--md-dialog-headline-color, var(--md-sys-color-on-surface, #1d1b20));display:flex;flex-direction:column;font-family:var(--md-dialog-headline-font, var(--md-sys-typescale-headline-small-font, var(--md-ref-typeface-brand, Roboto)));font-size:var(--md-dialog-headline-size, var(--md-sys-typescale-headline-small-size, 1.5rem));line-height:var(--md-dialog-headline-line-height, var(--md-sys-typescale-headline-small-line-height, 2rem));font-weight:var(--md-dialog-headline-weight, var(--md-sys-typescale-headline-small-weight, var(--md-ref-typeface-weight-regular, 400)));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(--md-dialog-icon-color, var(--md-sys-color-secondary, #625b71));fill:currentColor;font-size:var(--md-dialog-icon-size, 24px);margin-top:24px;height:var(--md-dialog-icon-size, 24px);width:var(--md-dialog-icon-size, 24px)}.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(--md-dialog-container-color, var(--md-sys-color-surface-container-high, #ece6f0));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(--md-dialog-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-dialog-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-dialog-supporting-text-size, var(--md-sys-typescale-body-medium-size, 0.875rem));line-height:var(--md-dialog-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));font-weight:var(--md-dialog-supporting-text-weight, var(--md-sys-typescale-body-medium-weight, var(--md-ref-typeface-weight-regular, 400)));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}} -`;let qy=class extends dr{};qy.styles=[lle];qy=O([ot("md-dialog")],qy);class wc extends dt{constructor(){super(...arguments),this.size="medium",this.label="",this.lowered=!1}render(){const{ariaLabel:e}=this;return ve` + `}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;this.escapePressedWithoutCancel=!1;const r=!Ua(this,e);e.preventDefault(),!r&&this.close()}handleClose(){var e;this.escapePressedWithoutCancel&&(this.escapePressedWithoutCancel=!1,(e=this.dialog)==null||e.dispatchEvent(new Event("cancel",{cancelable:!0})))}handleKeydown(e){e.key==="Escape"&&(this.escapePressedWithoutCancel=!0,setTimeout(()=>{this.escapePressedWithoutCancel=!1}))}async animateDialog(e){var _;if((_=this.cancelAnimations)==null||_.abort(),this.cancelAnimations=new AbortController,this.quick)return;const{dialog:r,scrim:n,container:i,headline:o,content:a,actions:l}=this;if(!r||!n||!i||!o||!a||!l)return;const{container:d,dialog:u,scrim:f,headline:g,content:y,actions:x}=e,m=[[r,u??[]],[n,f??[]],[i,d??[]],[o,g??[]],[a,y??[]],[l,x??[]]],p=[];for(const[v,b]of m)for(const w of b){const E=v.animate(...w);this.cancelAnimations.signal.addEventListener("abort",()=>{E.cancel()}),p.push(E)}await Promise.all(p.map(v=>v.finished.catch(()=>{})))}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})}handleFocusTrapFocus(e){var g;const[r,n]=this.getFirstAndLastFocusableChildren();if(!r||!n){(g=this.dialog)==null||g.focus();return}const i=e.target===this.firstFocusTrap,o=!i,a=e.relatedTarget===r,l=e.relatedTarget===n,d=!a&&!l;if(o&&l||i&&d){r.focus();return}if(i&&a||o&&d){n.focus();return}}getFirstAndLastFocusableChildren(){let e=null,r=null;for(this.treewalker.currentNode=this.treewalker.root;this.treewalker.nextNode();){const n=this.treewalker.currentNode;kle(n)&&(e||(e=n),r=n)}return[e,r]}}en(mr);O([H({type:Boolean})],mr.prototype,"open",null);O([H({type:Boolean})],mr.prototype,"quick",void 0);O([H({attribute:!1})],mr.prototype,"returnValue",void 0);O([H()],mr.prototype,"type",void 0);O([H({type:Boolean,attribute:"no-focus-trap"})],mr.prototype,"noFocusTrap",void 0);O([xt("dialog")],mr.prototype,"dialog",void 0);O([xt(".scrim")],mr.prototype,"scrim",void 0);O([xt(".container")],mr.prototype,"container",void 0);O([xt(".headline")],mr.prototype,"headline",void 0);O([xt(".content")],mr.prototype,"content",void 0);O([xt(".actions")],mr.prototype,"actions",void 0);O([Lt()],mr.prototype,"isAtScrollTop",void 0);O([Lt()],mr.prototype,"isAtScrollBottom",void 0);O([xt(".scroller")],mr.prototype,"scroller",void 0);O([xt(".top.anchor")],mr.prototype,"topAnchor",void 0);O([xt(".bottom.anchor")],mr.prototype,"bottomAnchor",void 0);O([xt(".focus-trap")],mr.prototype,"firstFocusTrap",void 0);O([Lt()],mr.prototype,"hasHeadline",void 0);O([Lt()],mr.prototype,"hasActions",void 0);O([Lt()],mr.prototype,"hasIcon",void 0);function kle(t){var o;const e=":is(button,input,select,textarea,object,:is(a,area)[href],[tabindex],[contenteditable=true])",r=":not(:disabled,[disabled])";return t.matches(e+r+':not([tabindex^="-"])')?!0:!t.localName.includes("-")||!t.matches(r)?!1:((o=t.shadowRoot)==null?void 0:o.delegatesFocus)??!1}const Cle=He`:host{border-start-start-radius:var(--md-dialog-container-shape-start-start, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));border-start-end-radius:var(--md-dialog-container-shape-start-end, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));border-end-end-radius:var(--md-dialog-container-shape-end-end, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));border-end-start-radius:var(--md-dialog-container-shape-end-start, var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));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(--md-dialog-headline-color, var(--md-sys-color-on-surface, #1d1b20));display:flex;flex-direction:column;font-family:var(--md-dialog-headline-font, var(--md-sys-typescale-headline-small-font, var(--md-ref-typeface-brand, Roboto)));font-size:var(--md-dialog-headline-size, var(--md-sys-typescale-headline-small-size, 1.5rem));line-height:var(--md-dialog-headline-line-height, var(--md-sys-typescale-headline-small-line-height, 2rem));font-weight:var(--md-dialog-headline-weight, var(--md-sys-typescale-headline-small-weight, var(--md-ref-typeface-weight-regular, 400)));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(--md-dialog-icon-color, var(--md-sys-color-secondary, #625b71));fill:currentColor;font-size:var(--md-dialog-icon-size, 24px);margin-top:24px;height:var(--md-dialog-icon-size, 24px);width:var(--md-dialog-icon-size, 24px)}.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(--md-dialog-container-color, var(--md-sys-color-surface-container-high, #ece6f0));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(--md-dialog-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-dialog-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-dialog-supporting-text-size, var(--md-sys-typescale-body-medium-size, 0.875rem));line-height:var(--md-dialog-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));font-weight:var(--md-dialog-supporting-text-weight, var(--md-sys-typescale-body-medium-weight, var(--md-ref-typeface-weight-regular, 400)));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}} +`;let eb=class extends mr{};eb.styles=[Cle];eb=O([st("md-dialog")],eb);class $c extends ft{constructor(){super(...arguments),this.size="medium",this.label="",this.lowered=!1}render(){const{ariaLabel:e}=this;return me` - `}getRenderClasses(){const e=!!this.label;return{lowered:this.lowered,small:this.size==="small"&&!e,large:this.size==="large"&&!e,extended:e}}renderTouchTarget(){return ve`
`}renderLabel(){return this.label?ve`${this.label}`:""}renderIcon(){const{ariaLabel:e}=this;return ve` + `}getRenderClasses(){const e=!!this.label;return{lowered:this.lowered,small:this.size==="small"&&!e,large:this.size==="large"&&!e,extended:e}}renderTouchTarget(){return me`
`}renderLabel(){return this.label?me`${this.label}`:""}renderIcon(){const{ariaLabel:e}=this;return me` + aria-hidden=${e||this.label?"true":pe}> - `}}Xr(wc);wc.shadowRootOptions={mode:"open",delegatesFocus:!0};O([H({reflect:!0})],wc.prototype,"size",void 0);O([H()],wc.prototype,"label",void 0);O([H({type:Boolean})],wc.prototype,"lowered",void 0);class A1 extends wc{constructor(){super(...arguments),this.variant="surface"}getRenderClasses(){return{...super.getRenderClasses(),primary:this.variant==="primary",secondary:this.variant==="secondary",tertiary:this.variant==="tertiary"}}}O([H()],A1.prototype,"variant",void 0);const cle=He`:host{--_container-color: var(--md-fab-branded-container-color, var(--md-sys-color-surface-container-high, #ece6f0));--_container-elevation: var(--md-fab-branded-container-elevation, 3);--_container-height: var(--md-fab-branded-container-height, 56px);--_container-shadow-color: var(--md-fab-branded-container-shadow-color, var(--md-sys-color-shadow, #000));--_container-width: var(--md-fab-branded-container-width, 56px);--_focus-container-elevation: var(--md-fab-branded-focus-container-elevation, 3);--_hover-container-elevation: var(--md-fab-branded-hover-container-elevation, 4);--_hover-state-layer-color: var(--md-fab-branded-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-fab-branded-hover-state-layer-opacity, 0.08);--_icon-size: var(--md-fab-branded-icon-size, 36px);--_lowered-container-color: var(--md-fab-branded-lowered-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_lowered-container-elevation: var(--md-fab-branded-lowered-container-elevation, 1);--_lowered-focus-container-elevation: var(--md-fab-branded-lowered-focus-container-elevation, 1);--_lowered-hover-container-elevation: var(--md-fab-branded-lowered-hover-container-elevation, 2);--_lowered-pressed-container-elevation: var(--md-fab-branded-lowered-pressed-container-elevation, 1);--_pressed-container-elevation: var(--md-fab-branded-pressed-container-elevation, 3);--_pressed-state-layer-color: var(--md-fab-branded-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-fab-branded-pressed-state-layer-opacity, 0.12);--_focus-label-text-color: var(--md-fab-branded-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-label-text-color: var(--md-fab-branded-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-color: var(--md-fab-branded-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_label-text-font: var(--md-fab-branded-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-size: var(--md-fab-branded-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-line-height: var(--md-fab-branded-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-weight: var(--md-fab-branded-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_large-container-height: var(--md-fab-branded-large-container-height, 96px);--_large-container-width: var(--md-fab-branded-large-container-width, 96px);--_large-icon-size: var(--md-fab-branded-large-icon-size, 48px);--_pressed-label-text-color: var(--md-fab-branded-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var(--md-fab-branded-container-shape-start-start, var(--md-fab-branded-container-shape, var(--md-sys-shape-corner-large, 16px)));--_container-shape-start-end: var(--md-fab-branded-container-shape-start-end, var(--md-fab-branded-container-shape, var(--md-sys-shape-corner-large, 16px)));--_container-shape-end-end: var(--md-fab-branded-container-shape-end-end, var(--md-fab-branded-container-shape, var(--md-sys-shape-corner-large, 16px)));--_container-shape-end-start: var(--md-fab-branded-container-shape-end-start, var(--md-fab-branded-container-shape, var(--md-sys-shape-corner-large, 16px)));--_large-container-shape-start-start: var(--md-fab-branded-large-container-shape-start-start, var(--md-fab-branded-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));--_large-container-shape-start-end: var(--md-fab-branded-large-container-shape-start-end, var(--md-fab-branded-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));--_large-container-shape-end-end: var(--md-fab-branded-large-container-shape-end-end, var(--md-fab-branded-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));--_large-container-shape-end-start: var(--md-fab-branded-large-container-shape-end-start, var(--md-fab-branded-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)))} -`;const QI=He`@media(forced-colors: active){.fab{border:1px solid ButtonText}.fab.extended{padding-inline-start:15px;padding-inline-end:19px}md-focus-ring{--md-focus-ring-outward-offset: 3px}} -`;const KI=He`:host{--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity);display:inline-flex;-webkit-tap-highlight-color:rgba(0,0,0,0)}:host([size=medium][touch-target=wrapper]){margin:max(0px,48px - var(--_container-height))}:host([size=large][touch-target=wrapper]){margin:max(0px,48px - var(--_large-container-height))}.fab,.icon,.icon ::slotted(*){display:flex}.fab{align-items:center;justify-content:center;vertical-align:middle;padding:0;position:relative;height:var(--_container-height);transition-property:background-color;border-width:0px;outline:none;z-index:0;text-transform:inherit;--md-elevation-level: var(--_container-elevation);--md-elevation-shadow-color: var(--_container-shadow-color);background-color:var(--_container-color);--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-pressed-color: var(--_pressed-state-layer-color)}.fab.extended{width:inherit;box-sizing:border-box;padding-inline-start:16px;padding-inline-end:20px}.fab:not(.extended){width:var(--_container-width)}.fab.large{width:var(--_large-container-width);height:var(--_large-container-height)}.fab.large .icon ::slotted(*){width:var(--_large-icon-size);height:var(--_large-icon-size);font-size:var(--_large-icon-size)}.fab.large,.fab.large .ripple{border-start-start-radius:var(--_large-container-shape-start-start);border-start-end-radius:var(--_large-container-shape-start-end);border-end-start-radius:var(--_large-container-shape-end-start);border-end-end-radius:var(--_large-container-shape-end-end)}.fab.large md-focus-ring{--md-focus-ring-shape-start-start: var(--_large-container-shape-start-start);--md-focus-ring-shape-start-end: var(--_large-container-shape-start-end);--md-focus-ring-shape-end-end: var(--_large-container-shape-end-end);--md-focus-ring-shape-end-start: var(--_large-container-shape-end-start)}.fab:focus{--md-elevation-level: var(--_focus-container-elevation)}.fab:hover{--md-elevation-level: var(--_hover-container-elevation)}.fab:active{--md-elevation-level: var(--_pressed-container-elevation)}.fab.lowered{background-color:var(--_lowered-container-color);--md-elevation-level: var(--_lowered-container-elevation)}.fab.lowered:focus{--md-elevation-level: var(--_lowered-focus-container-elevation)}.fab.lowered:hover{--md-elevation-level: var(--_lowered-hover-container-elevation)}.fab.lowered:active{--md-elevation-level: var(--_lowered-pressed-container-elevation)}.fab .label{color:var(--_label-text-color)}.fab:hover .fab .label{color:var(--_hover-label-text-color)}.fab:focus .fab .label{color:var(--_focus-label-text-color)}.fab:active .fab .label{color:var(--_pressed-label-text-color)}.label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;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)}.fab.extended .icon ::slotted(*){margin-inline-end:12px}.ripple{overflow:hidden}.ripple,md-elevation{z-index:-1}.touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}:host([touch-target=none]) .touch-target{display:none}md-elevation,.fab{transition-duration:280ms;transition-timing-function:cubic-bezier(0.2, 0, 0, 1)}.fab,.ripple{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)}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)}.icon ::slotted(*){width:var(--_icon-size);height:var(--_icon-size);font-size:var(--_icon-size)} -`;let By=class extends A1{getRenderClasses(){return{...super.getRenderClasses(),primary:!1,secondary:!1,tertiary:!1,small:!1}}};By.styles=[KI,cle,QI];By=O([ot("md-branded-fab")],By);const dle=He`:host{--_container-color: var(--md-fab-container-color, var(--md-sys-color-surface-container-high, #ece6f0));--_container-elevation: var(--md-fab-container-elevation, 3);--_container-height: var(--md-fab-container-height, 56px);--_container-shadow-color: var(--md-fab-container-shadow-color, var(--md-sys-color-shadow, #000));--_container-width: var(--md-fab-container-width, 56px);--_focus-container-elevation: var(--md-fab-focus-container-elevation, 3);--_focus-icon-color: var(--md-fab-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-container-elevation: var(--md-fab-hover-container-elevation, 4);--_hover-icon-color: var(--md-fab-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-color: var(--md-fab-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-fab-hover-state-layer-opacity, 0.08);--_icon-color: var(--md-fab-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-fab-icon-size, 24px);--_lowered-container-color: var(--md-fab-lowered-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_lowered-container-elevation: var(--md-fab-lowered-container-elevation, 1);--_lowered-focus-container-elevation: var(--md-fab-lowered-focus-container-elevation, 1);--_lowered-hover-container-elevation: var(--md-fab-lowered-hover-container-elevation, 2);--_lowered-pressed-container-elevation: var(--md-fab-lowered-pressed-container-elevation, 1);--_pressed-container-elevation: var(--md-fab-pressed-container-elevation, 3);--_pressed-icon-color: var(--md-fab-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-color: var(--md-fab-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-fab-pressed-state-layer-opacity, 0.12);--_focus-label-text-color: var(--md-fab-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-label-text-color: var(--md-fab-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-color: var(--md-fab-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-font: var(--md-fab-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-fab-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-fab-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-fab-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_large-container-height: var(--md-fab-large-container-height, 96px);--_large-container-width: var(--md-fab-large-container-width, 96px);--_large-icon-size: var(--md-fab-large-icon-size, 36px);--_pressed-label-text-color: var(--md-fab-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_primary-container-color: var(--md-fab-primary-container-color, var(--md-sys-color-primary-container, #eaddff));--_primary-focus-icon-color: var(--md-fab-primary-focus-icon-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-focus-label-text-color: var(--md-fab-primary-focus-label-text-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-hover-icon-color: var(--md-fab-primary-hover-icon-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-hover-label-text-color: var(--md-fab-primary-hover-label-text-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-hover-state-layer-color: var(--md-fab-primary-hover-state-layer-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-icon-color: var(--md-fab-primary-icon-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-label-text-color: var(--md-fab-primary-label-text-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-pressed-icon-color: var(--md-fab-primary-pressed-icon-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-pressed-label-text-color: var(--md-fab-primary-pressed-label-text-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-pressed-state-layer-color: var(--md-fab-primary-pressed-state-layer-color, var(--md-sys-color-on-primary-container, #21005d));--_secondary-container-color: var(--md-fab-secondary-container-color, var(--md-sys-color-secondary-container, #e8def8));--_secondary-focus-icon-color: var(--md-fab-secondary-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-focus-label-text-color: var(--md-fab-secondary-focus-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-hover-icon-color: var(--md-fab-secondary-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-hover-label-text-color: var(--md-fab-secondary-hover-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-hover-state-layer-color: var(--md-fab-secondary-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-icon-color: var(--md-fab-secondary-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-label-text-color: var(--md-fab-secondary-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-pressed-icon-color: var(--md-fab-secondary-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-pressed-label-text-color: var(--md-fab-secondary-pressed-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-pressed-state-layer-color: var(--md-fab-secondary-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_small-container-height: var(--md-fab-small-container-height, 40px);--_small-container-width: var(--md-fab-small-container-width, 40px);--_small-icon-size: var(--md-fab-small-icon-size, 24px);--_tertiary-container-color: var(--md-fab-tertiary-container-color, var(--md-sys-color-tertiary-container, #ffd8e4));--_tertiary-focus-icon-color: var(--md-fab-tertiary-focus-icon-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-focus-label-text-color: var(--md-fab-tertiary-focus-label-text-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-hover-icon-color: var(--md-fab-tertiary-hover-icon-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-hover-label-text-color: var(--md-fab-tertiary-hover-label-text-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-hover-state-layer-color: var(--md-fab-tertiary-hover-state-layer-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-icon-color: var(--md-fab-tertiary-icon-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-label-text-color: var(--md-fab-tertiary-label-text-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-pressed-icon-color: var(--md-fab-tertiary-pressed-icon-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-pressed-label-text-color: var(--md-fab-tertiary-pressed-label-text-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-pressed-state-layer-color: var(--md-fab-tertiary-pressed-state-layer-color, var(--md-sys-color-on-tertiary-container, #31111d));--_container-shape-start-start: var(--md-fab-container-shape-start-start, var(--md-fab-container-shape, var(--md-sys-shape-corner-large, 16px)));--_container-shape-start-end: var(--md-fab-container-shape-start-end, var(--md-fab-container-shape, var(--md-sys-shape-corner-large, 16px)));--_container-shape-end-end: var(--md-fab-container-shape-end-end, var(--md-fab-container-shape, var(--md-sys-shape-corner-large, 16px)));--_container-shape-end-start: var(--md-fab-container-shape-end-start, var(--md-fab-container-shape, var(--md-sys-shape-corner-large, 16px)));--_large-container-shape-start-start: var(--md-fab-large-container-shape-start-start, var(--md-fab-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));--_large-container-shape-start-end: var(--md-fab-large-container-shape-start-end, var(--md-fab-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));--_large-container-shape-end-end: var(--md-fab-large-container-shape-end-end, var(--md-fab-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));--_large-container-shape-end-start: var(--md-fab-large-container-shape-end-start, var(--md-fab-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));--_small-container-shape-start-start: var(--md-fab-small-container-shape-start-start, var(--md-fab-small-container-shape, var(--md-sys-shape-corner-medium, 12px)));--_small-container-shape-start-end: var(--md-fab-small-container-shape-start-end, var(--md-fab-small-container-shape, var(--md-sys-shape-corner-medium, 12px)));--_small-container-shape-end-end: var(--md-fab-small-container-shape-end-end, var(--md-fab-small-container-shape, var(--md-sys-shape-corner-medium, 12px)));--_small-container-shape-end-start: var(--md-fab-small-container-shape-end-start, var(--md-fab-small-container-shape, var(--md-sys-shape-corner-medium, 12px)));cursor:pointer}:host([size=small][touch-target=wrapper]){margin:max(0px,48px - var(--_small-container-height))}.fab{cursor:inherit}.fab .icon ::slotted(*){color:var(--_icon-color)}.fab:focus{color:var(--_focus-icon-color)}.fab:hover{color:var(--_hover-icon-color)}.fab:active{color:var(--_pressed-icon-color)}.fab.primary{background-color:var(--_primary-container-color);--md-ripple-hover-color: var(--_primary-hover-state-layer-color);--md-ripple-pressed-color: var(--_primary-pressed-state-layer-color)}.fab.primary .icon ::slotted(*){color:var(--_primary-icon-color)}.fab.primary:focus{color:var(--_primary-focus-icon-color)}.fab.primary:hover{color:var(--_primary-hover-icon-color)}.fab.primary:active{color:var(--_primary-pressed-icon-color)}.fab.primary .label{color:var(--_primary-label-text-color)}.fab:hover .fab.primary .label{color:var(--_primary-hover-label-text-color)}.fab:focus .fab.primary .label{color:var(--_primary-focus-label-text-color)}.fab:active .fab.primary .label{color:var(--_primary-pressed-label-text-color)}.fab.secondary{background-color:var(--_secondary-container-color);--md-ripple-hover-color: var(--_secondary-hover-state-layer-color);--md-ripple-pressed-color: var(--_secondary-pressed-state-layer-color)}.fab.secondary .icon ::slotted(*){color:var(--_secondary-icon-color)}.fab.secondary:focus{color:var(--_secondary-focus-icon-color)}.fab.secondary:hover{color:var(--_secondary-hover-icon-color)}.fab.secondary:active{color:var(--_secondary-pressed-icon-color)}.fab.secondary .label{color:var(--_secondary-label-text-color)}.fab:hover .fab.secondary .label{color:var(--_secondary-hover-label-text-color)}.fab:focus .fab.secondary .label{color:var(--_secondary-focus-label-text-color)}.fab:active .fab.secondary .label{color:var(--_secondary-pressed-label-text-color)}.fab.tertiary{background-color:var(--_tertiary-container-color);--md-ripple-hover-color: var(--_tertiary-hover-state-layer-color);--md-ripple-pressed-color: var(--_tertiary-pressed-state-layer-color)}.fab.tertiary .icon ::slotted(*){color:var(--_tertiary-icon-color)}.fab.tertiary:focus{color:var(--_tertiary-focus-icon-color)}.fab.tertiary:hover{color:var(--_tertiary-hover-icon-color)}.fab.tertiary:active{color:var(--_tertiary-pressed-icon-color)}.fab.tertiary .label{color:var(--_tertiary-label-text-color)}.fab:hover .fab.tertiary .label{color:var(--_tertiary-hover-label-text-color)}.fab:focus .fab.tertiary .label{color:var(--_tertiary-focus-label-text-color)}.fab:active .fab.tertiary .label{color:var(--_tertiary-pressed-label-text-color)}.fab.extended slot span{padding-inline-start:4px}.fab.small{width:var(--_small-container-width);height:var(--_small-container-height)}.fab.small .icon ::slotted(*){width:var(--_small-icon-size);height:var(--_small-icon-size);font-size:var(--_small-icon-size)}.fab.small,.fab.small .ripple{border-start-start-radius:var(--_small-container-shape-start-start);border-start-end-radius:var(--_small-container-shape-start-end);border-end-start-radius:var(--_small-container-shape-end-start);border-end-end-radius:var(--_small-container-shape-end-end)}.fab.small md-focus-ring{--md-focus-ring-shape-start-start: var(--_small-container-shape-start-start);--md-focus-ring-shape-start-end: var(--_small-container-shape-start-end);--md-focus-ring-shape-end-end: var(--_small-container-shape-end-end);--md-focus-ring-shape-end-start: var(--_small-container-shape-end-start)} -`;let Uy=class extends A1{};Uy.styles=[KI,dle,QI];Uy=O([ot("md-fab")],Uy);class ar extends dt{constructor(){super(...arguments),this.disabled=!1,this.error=!1,this.focused=!1,this.label="",this.noAsterisk=!1,this.populated=!1,this.required=!1,this.resizable=!1,this.supportingText="",this.errorText="",this.count=-1,this.max=-1,this.hasStart=!1,this.hasEnd=!1,this.isAnimating=!1,this.refreshErrorAlert=!1,this.disableTransitions=!1}get counterText(){const e=this.count??-1,r=this.max??-1;return e<0||r<=0?"":`${e} / ${r}`}get supportingOrErrorText(){return this.error&&this.errorText?this.errorText:this.supportingText}reannounceError(){this.refreshErrorAlert=!0}update(e){e.has("disabled")&&e.get("disabled")!==void 0&&(this.disableTransitions=!0),this.disabled&&this.focused&&(e.set("focused",!0),this.focused=!1),this.animateLabelIfNeeded({wasFocused:e.get("focused"),wasPopulated:e.get("populated")}),super.update(e)}render(){var o,a,l;const e=this.renderLabel(!0),r=this.renderLabel(!1),n=(o=this.renderOutline)==null?void 0:o.call(this,e),i={disabled:this.disabled,"disable-transitions":this.disableTransitions,error:this.error&&!this.disabled,focused:this.focused,"with-start":this.hasStart,"with-end":this.hasEnd,populated:this.populated,resizable:this.resizable,required:this.required,"no-label":!this.label};return ve` -
+ `}}en($c);$c.shadowRootOptions={mode:"open",delegatesFocus:!0};O([H({reflect:!0})],$c.prototype,"size",void 0);O([H()],$c.prototype,"label",void 0);O([H({type:Boolean})],$c.prototype,"lowered",void 0);class V1 extends $c{constructor(){super(...arguments),this.variant="surface"}getRenderClasses(){return{...super.getRenderClasses(),primary:this.variant==="primary",secondary:this.variant==="secondary",tertiary:this.variant==="tertiary"}}}O([H()],V1.prototype,"variant",void 0);const Ale=He`:host{--_container-color: var(--md-fab-branded-container-color, var(--md-sys-color-surface-container-high, #ece6f0));--_container-elevation: var(--md-fab-branded-container-elevation, 3);--_container-height: var(--md-fab-branded-container-height, 56px);--_container-shadow-color: var(--md-fab-branded-container-shadow-color, var(--md-sys-color-shadow, #000));--_container-width: var(--md-fab-branded-container-width, 56px);--_focus-container-elevation: var(--md-fab-branded-focus-container-elevation, 3);--_hover-container-elevation: var(--md-fab-branded-hover-container-elevation, 4);--_hover-state-layer-color: var(--md-fab-branded-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-fab-branded-hover-state-layer-opacity, 0.08);--_icon-size: var(--md-fab-branded-icon-size, 36px);--_lowered-container-color: var(--md-fab-branded-lowered-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_lowered-container-elevation: var(--md-fab-branded-lowered-container-elevation, 1);--_lowered-focus-container-elevation: var(--md-fab-branded-lowered-focus-container-elevation, 1);--_lowered-hover-container-elevation: var(--md-fab-branded-lowered-hover-container-elevation, 2);--_lowered-pressed-container-elevation: var(--md-fab-branded-lowered-pressed-container-elevation, 1);--_pressed-container-elevation: var(--md-fab-branded-pressed-container-elevation, 3);--_pressed-state-layer-color: var(--md-fab-branded-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-fab-branded-pressed-state-layer-opacity, 0.12);--_focus-label-text-color: var(--md-fab-branded-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-label-text-color: var(--md-fab-branded-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-color: var(--md-fab-branded-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_label-text-font: var(--md-fab-branded-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-size: var(--md-fab-branded-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-line-height: var(--md-fab-branded-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-weight: var(--md-fab-branded-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_large-container-height: var(--md-fab-branded-large-container-height, 96px);--_large-container-width: var(--md-fab-branded-large-container-width, 96px);--_large-icon-size: var(--md-fab-branded-large-icon-size, 48px);--_pressed-label-text-color: var(--md-fab-branded-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var(--md-fab-branded-container-shape-start-start, var(--md-fab-branded-container-shape, var(--md-sys-shape-corner-large, 16px)));--_container-shape-start-end: var(--md-fab-branded-container-shape-start-end, var(--md-fab-branded-container-shape, var(--md-sys-shape-corner-large, 16px)));--_container-shape-end-end: var(--md-fab-branded-container-shape-end-end, var(--md-fab-branded-container-shape, var(--md-sys-shape-corner-large, 16px)));--_container-shape-end-start: var(--md-fab-branded-container-shape-end-start, var(--md-fab-branded-container-shape, var(--md-sys-shape-corner-large, 16px)));--_large-container-shape-start-start: var(--md-fab-branded-large-container-shape-start-start, var(--md-fab-branded-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));--_large-container-shape-start-end: var(--md-fab-branded-large-container-shape-start-end, var(--md-fab-branded-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));--_large-container-shape-end-end: var(--md-fab-branded-large-container-shape-end-end, var(--md-fab-branded-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));--_large-container-shape-end-start: var(--md-fab-branded-large-container-shape-end-start, var(--md-fab-branded-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)))} +`;const o$=He`@media(forced-colors: active){.fab{border:1px solid ButtonText}.fab.extended{padding-inline-start:15px;padding-inline-end:19px}md-focus-ring{--md-focus-ring-outward-offset: 3px}} +`;const a$=He`:host{--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity);display:inline-flex;-webkit-tap-highlight-color:rgba(0,0,0,0)}:host([size=medium][touch-target=wrapper]){margin:max(0px,48px - var(--_container-height))}:host([size=large][touch-target=wrapper]){margin:max(0px,48px - var(--_large-container-height))}.fab,.icon,.icon ::slotted(*){display:flex}.fab{align-items:center;justify-content:center;vertical-align:middle;padding:0;position:relative;height:var(--_container-height);transition-property:background-color;border-width:0px;outline:none;z-index:0;text-transform:inherit;--md-elevation-level: var(--_container-elevation);--md-elevation-shadow-color: var(--_container-shadow-color);background-color:var(--_container-color);--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-pressed-color: var(--_pressed-state-layer-color)}.fab.extended{width:inherit;box-sizing:border-box;padding-inline-start:16px;padding-inline-end:20px}.fab:not(.extended){width:var(--_container-width)}.fab.large{width:var(--_large-container-width);height:var(--_large-container-height)}.fab.large .icon ::slotted(*){width:var(--_large-icon-size);height:var(--_large-icon-size);font-size:var(--_large-icon-size)}.fab.large,.fab.large .ripple{border-start-start-radius:var(--_large-container-shape-start-start);border-start-end-radius:var(--_large-container-shape-start-end);border-end-start-radius:var(--_large-container-shape-end-start);border-end-end-radius:var(--_large-container-shape-end-end)}.fab.large md-focus-ring{--md-focus-ring-shape-start-start: var(--_large-container-shape-start-start);--md-focus-ring-shape-start-end: var(--_large-container-shape-start-end);--md-focus-ring-shape-end-end: var(--_large-container-shape-end-end);--md-focus-ring-shape-end-start: var(--_large-container-shape-end-start)}.fab:focus{--md-elevation-level: var(--_focus-container-elevation)}.fab:hover{--md-elevation-level: var(--_hover-container-elevation)}.fab:active{--md-elevation-level: var(--_pressed-container-elevation)}.fab.lowered{background-color:var(--_lowered-container-color);--md-elevation-level: var(--_lowered-container-elevation)}.fab.lowered:focus{--md-elevation-level: var(--_lowered-focus-container-elevation)}.fab.lowered:hover{--md-elevation-level: var(--_lowered-hover-container-elevation)}.fab.lowered:active{--md-elevation-level: var(--_lowered-pressed-container-elevation)}.fab .label{color:var(--_label-text-color)}.fab:hover .fab .label{color:var(--_hover-label-text-color)}.fab:focus .fab .label{color:var(--_focus-label-text-color)}.fab:active .fab .label{color:var(--_pressed-label-text-color)}.label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;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)}.fab.extended .icon ::slotted(*){margin-inline-end:12px}.ripple{overflow:hidden}.ripple,md-elevation{z-index:-1}.touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}:host([touch-target=none]) .touch-target{display:none}md-elevation,.fab{transition-duration:280ms;transition-timing-function:cubic-bezier(0.2, 0, 0, 1)}.fab,.ripple{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)}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)}.icon ::slotted(*){width:var(--_icon-size);height:var(--_icon-size);font-size:var(--_icon-size)} +`;let tb=class extends V1{getRenderClasses(){return{...super.getRenderClasses(),primary:!1,secondary:!1,tertiary:!1,small:!1}}};tb.styles=[a$,Ale,o$];tb=O([st("md-branded-fab")],tb);const Sle=He`:host{--_container-color: var(--md-fab-container-color, var(--md-sys-color-surface-container-high, #ece6f0));--_container-elevation: var(--md-fab-container-elevation, 3);--_container-height: var(--md-fab-container-height, 56px);--_container-shadow-color: var(--md-fab-container-shadow-color, var(--md-sys-color-shadow, #000));--_container-width: var(--md-fab-container-width, 56px);--_focus-container-elevation: var(--md-fab-focus-container-elevation, 3);--_focus-icon-color: var(--md-fab-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-container-elevation: var(--md-fab-hover-container-elevation, 4);--_hover-icon-color: var(--md-fab-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-color: var(--md-fab-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-fab-hover-state-layer-opacity, 0.08);--_icon-color: var(--md-fab-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-fab-icon-size, 24px);--_lowered-container-color: var(--md-fab-lowered-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_lowered-container-elevation: var(--md-fab-lowered-container-elevation, 1);--_lowered-focus-container-elevation: var(--md-fab-lowered-focus-container-elevation, 1);--_lowered-hover-container-elevation: var(--md-fab-lowered-hover-container-elevation, 2);--_lowered-pressed-container-elevation: var(--md-fab-lowered-pressed-container-elevation, 1);--_pressed-container-elevation: var(--md-fab-pressed-container-elevation, 3);--_pressed-icon-color: var(--md-fab-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-color: var(--md-fab-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-fab-pressed-state-layer-opacity, 0.12);--_focus-label-text-color: var(--md-fab-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-label-text-color: var(--md-fab-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-color: var(--md-fab-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-font: var(--md-fab-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-fab-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-fab-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-fab-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_large-container-height: var(--md-fab-large-container-height, 96px);--_large-container-width: var(--md-fab-large-container-width, 96px);--_large-icon-size: var(--md-fab-large-icon-size, 36px);--_pressed-label-text-color: var(--md-fab-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_primary-container-color: var(--md-fab-primary-container-color, var(--md-sys-color-primary-container, #eaddff));--_primary-focus-icon-color: var(--md-fab-primary-focus-icon-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-focus-label-text-color: var(--md-fab-primary-focus-label-text-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-hover-icon-color: var(--md-fab-primary-hover-icon-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-hover-label-text-color: var(--md-fab-primary-hover-label-text-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-hover-state-layer-color: var(--md-fab-primary-hover-state-layer-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-icon-color: var(--md-fab-primary-icon-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-label-text-color: var(--md-fab-primary-label-text-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-pressed-icon-color: var(--md-fab-primary-pressed-icon-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-pressed-label-text-color: var(--md-fab-primary-pressed-label-text-color, var(--md-sys-color-on-primary-container, #21005d));--_primary-pressed-state-layer-color: var(--md-fab-primary-pressed-state-layer-color, var(--md-sys-color-on-primary-container, #21005d));--_secondary-container-color: var(--md-fab-secondary-container-color, var(--md-sys-color-secondary-container, #e8def8));--_secondary-focus-icon-color: var(--md-fab-secondary-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-focus-label-text-color: var(--md-fab-secondary-focus-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-hover-icon-color: var(--md-fab-secondary-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-hover-label-text-color: var(--md-fab-secondary-hover-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-hover-state-layer-color: var(--md-fab-secondary-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-icon-color: var(--md-fab-secondary-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-label-text-color: var(--md-fab-secondary-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-pressed-icon-color: var(--md-fab-secondary-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-pressed-label-text-color: var(--md-fab-secondary-pressed-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_secondary-pressed-state-layer-color: var(--md-fab-secondary-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_small-container-height: var(--md-fab-small-container-height, 40px);--_small-container-width: var(--md-fab-small-container-width, 40px);--_small-icon-size: var(--md-fab-small-icon-size, 24px);--_tertiary-container-color: var(--md-fab-tertiary-container-color, var(--md-sys-color-tertiary-container, #ffd8e4));--_tertiary-focus-icon-color: var(--md-fab-tertiary-focus-icon-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-focus-label-text-color: var(--md-fab-tertiary-focus-label-text-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-hover-icon-color: var(--md-fab-tertiary-hover-icon-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-hover-label-text-color: var(--md-fab-tertiary-hover-label-text-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-hover-state-layer-color: var(--md-fab-tertiary-hover-state-layer-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-icon-color: var(--md-fab-tertiary-icon-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-label-text-color: var(--md-fab-tertiary-label-text-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-pressed-icon-color: var(--md-fab-tertiary-pressed-icon-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-pressed-label-text-color: var(--md-fab-tertiary-pressed-label-text-color, var(--md-sys-color-on-tertiary-container, #31111d));--_tertiary-pressed-state-layer-color: var(--md-fab-tertiary-pressed-state-layer-color, var(--md-sys-color-on-tertiary-container, #31111d));--_container-shape-start-start: var(--md-fab-container-shape-start-start, var(--md-fab-container-shape, var(--md-sys-shape-corner-large, 16px)));--_container-shape-start-end: var(--md-fab-container-shape-start-end, var(--md-fab-container-shape, var(--md-sys-shape-corner-large, 16px)));--_container-shape-end-end: var(--md-fab-container-shape-end-end, var(--md-fab-container-shape, var(--md-sys-shape-corner-large, 16px)));--_container-shape-end-start: var(--md-fab-container-shape-end-start, var(--md-fab-container-shape, var(--md-sys-shape-corner-large, 16px)));--_large-container-shape-start-start: var(--md-fab-large-container-shape-start-start, var(--md-fab-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));--_large-container-shape-start-end: var(--md-fab-large-container-shape-start-end, var(--md-fab-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));--_large-container-shape-end-end: var(--md-fab-large-container-shape-end-end, var(--md-fab-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));--_large-container-shape-end-start: var(--md-fab-large-container-shape-end-start, var(--md-fab-large-container-shape, var(--md-sys-shape-corner-extra-large, 28px)));--_small-container-shape-start-start: var(--md-fab-small-container-shape-start-start, var(--md-fab-small-container-shape, var(--md-sys-shape-corner-medium, 12px)));--_small-container-shape-start-end: var(--md-fab-small-container-shape-start-end, var(--md-fab-small-container-shape, var(--md-sys-shape-corner-medium, 12px)));--_small-container-shape-end-end: var(--md-fab-small-container-shape-end-end, var(--md-fab-small-container-shape, var(--md-sys-shape-corner-medium, 12px)));--_small-container-shape-end-start: var(--md-fab-small-container-shape-end-start, var(--md-fab-small-container-shape, var(--md-sys-shape-corner-medium, 12px)));cursor:pointer}:host([size=small][touch-target=wrapper]){margin:max(0px,48px - var(--_small-container-height))}.fab{cursor:inherit}.fab .icon ::slotted(*){color:var(--_icon-color)}.fab:focus{color:var(--_focus-icon-color)}.fab:hover{color:var(--_hover-icon-color)}.fab:active{color:var(--_pressed-icon-color)}.fab.primary{background-color:var(--_primary-container-color);--md-ripple-hover-color: var(--_primary-hover-state-layer-color);--md-ripple-pressed-color: var(--_primary-pressed-state-layer-color)}.fab.primary .icon ::slotted(*){color:var(--_primary-icon-color)}.fab.primary:focus{color:var(--_primary-focus-icon-color)}.fab.primary:hover{color:var(--_primary-hover-icon-color)}.fab.primary:active{color:var(--_primary-pressed-icon-color)}.fab.primary .label{color:var(--_primary-label-text-color)}.fab:hover .fab.primary .label{color:var(--_primary-hover-label-text-color)}.fab:focus .fab.primary .label{color:var(--_primary-focus-label-text-color)}.fab:active .fab.primary .label{color:var(--_primary-pressed-label-text-color)}.fab.secondary{background-color:var(--_secondary-container-color);--md-ripple-hover-color: var(--_secondary-hover-state-layer-color);--md-ripple-pressed-color: var(--_secondary-pressed-state-layer-color)}.fab.secondary .icon ::slotted(*){color:var(--_secondary-icon-color)}.fab.secondary:focus{color:var(--_secondary-focus-icon-color)}.fab.secondary:hover{color:var(--_secondary-hover-icon-color)}.fab.secondary:active{color:var(--_secondary-pressed-icon-color)}.fab.secondary .label{color:var(--_secondary-label-text-color)}.fab:hover .fab.secondary .label{color:var(--_secondary-hover-label-text-color)}.fab:focus .fab.secondary .label{color:var(--_secondary-focus-label-text-color)}.fab:active .fab.secondary .label{color:var(--_secondary-pressed-label-text-color)}.fab.tertiary{background-color:var(--_tertiary-container-color);--md-ripple-hover-color: var(--_tertiary-hover-state-layer-color);--md-ripple-pressed-color: var(--_tertiary-pressed-state-layer-color)}.fab.tertiary .icon ::slotted(*){color:var(--_tertiary-icon-color)}.fab.tertiary:focus{color:var(--_tertiary-focus-icon-color)}.fab.tertiary:hover{color:var(--_tertiary-hover-icon-color)}.fab.tertiary:active{color:var(--_tertiary-pressed-icon-color)}.fab.tertiary .label{color:var(--_tertiary-label-text-color)}.fab:hover .fab.tertiary .label{color:var(--_tertiary-hover-label-text-color)}.fab:focus .fab.tertiary .label{color:var(--_tertiary-focus-label-text-color)}.fab:active .fab.tertiary .label{color:var(--_tertiary-pressed-label-text-color)}.fab.extended slot span{padding-inline-start:4px}.fab.small{width:var(--_small-container-width);height:var(--_small-container-height)}.fab.small .icon ::slotted(*){width:var(--_small-icon-size);height:var(--_small-icon-size);font-size:var(--_small-icon-size)}.fab.small,.fab.small .ripple{border-start-start-radius:var(--_small-container-shape-start-start);border-start-end-radius:var(--_small-container-shape-start-end);border-end-start-radius:var(--_small-container-shape-end-start);border-end-end-radius:var(--_small-container-shape-end-end)}.fab.small md-focus-ring{--md-focus-ring-shape-start-start: var(--_small-container-shape-start-start);--md-focus-ring-shape-start-end: var(--_small-container-shape-start-end);--md-focus-ring-shape-end-end: var(--_small-container-shape-end-end);--md-focus-ring-shape-end-start: var(--_small-container-shape-end-start)} +`;let rb=class extends V1{};rb.styles=[a$,Sle,o$];rb=O([st("md-fab")],rb);class ur extends ft{constructor(){super(...arguments),this.disabled=!1,this.error=!1,this.focused=!1,this.label="",this.noAsterisk=!1,this.populated=!1,this.required=!1,this.resizable=!1,this.supportingText="",this.errorText="",this.count=-1,this.max=-1,this.hasStart=!1,this.hasEnd=!1,this.isAnimating=!1,this.refreshErrorAlert=!1,this.disableTransitions=!1}get counterText(){const e=this.count??-1,r=this.max??-1;return e<0||r<=0?"":`${e} / ${r}`}get supportingOrErrorText(){return this.error&&this.errorText?this.errorText:this.supportingText}reannounceError(){this.refreshErrorAlert=!0}update(e){e.has("disabled")&&e.get("disabled")!==void 0&&(this.disableTransitions=!0),this.disabled&&this.focused&&(e.set("focused",!0),this.focused=!1),this.animateLabelIfNeeded({wasFocused:e.get("focused"),wasPopulated:e.get("populated")}),super.update(e)}render(){var o,a,l;const e=this.renderLabel(!0),r=this.renderLabel(!1),n=(o=this.renderOutline)==null?void 0:o.call(this,e),i={disabled:this.disabled,"disable-transitions":this.disableTransitions,error:this.error&&!this.disabled,focused:this.focused,"with-start":this.hasStart,"with-end":this.hasEnd,populated:this.populated,resizable:this.resizable,required:this.required,"no-label":!this.label};return me` +
${(a=this.renderBackground)==null?void 0:a.call(this)} ${(l=this.renderIndicator)==null?void 0:l.call(this)} ${n}
@@ -1402,7 +1411,7 @@ function print() { __p += __j.call(arguments, '') }
- ${r} ${n?me:e} + ${r} ${n?pe:e}
@@ -1415,21 +1424,21 @@ function print() { __p += __j.call(arguments, '') }
${this.renderSupportingText()}
- `}updated(e){(e.has("supportingText")||e.has("errorText")||e.has("count")||e.has("max"))&&this.updateSlottedAriaDescribedBy(),this.refreshErrorAlert&&requestAnimationFrame(()=>{this.refreshErrorAlert=!1}),this.disableTransitions&&requestAnimationFrame(()=>{this.disableTransitions=!1})}renderSupportingText(){const{supportingOrErrorText:e,counterText:r}=this;if(!e&&!r)return me;const n=ve`${e}`,i=r?ve`${r}`:me,a=this.error&&this.errorText&&!this.refreshErrorAlert?"alert":me;return ve` + `}updated(e){(e.has("supportingText")||e.has("errorText")||e.has("count")||e.has("max"))&&this.updateSlottedAriaDescribedBy(),this.refreshErrorAlert&&requestAnimationFrame(()=>{this.refreshErrorAlert=!1}),this.disableTransitions&&requestAnimationFrame(()=>{this.disableTransitions=!1})}renderSupportingText(){const{supportingOrErrorText:e,counterText:r}=this;if(!e&&!r)return pe;const n=me`${e}`,i=r?me`${r}`:pe,a=this.error&&this.errorText&&!this.refreshErrorAlert?"alert":pe;return me`
${n}${i}
- `}updateSlottedAriaDescribedBy(){for(const e of this.slottedAriaDescribedBy)y1(ve`${this.supportingOrErrorText} ${this.counterText}`,e),e.setAttribute("hidden","")}renderLabel(e){if(!this.label)return me;let r;e?r=this.focused||this.populated||this.isAnimating:r=!this.focused&&!this.populated&&!this.isAnimating;const n={hidden:!r,floating:e,resting:!e},i=`${this.label}${this.required&&!this.noAsterisk?"*":""}`;return ve` - ${i} - `}animateLabelIfNeeded({wasFocused:e,wasPopulated:r}){var o,a,l;if(!this.label)return;e??(e=this.focused),r??(r=this.populated);const n=e||r,i=this.focused||this.populated;n!==i&&(this.isAnimating=!0,(o=this.labelAnimation)==null||o.cancel(),this.labelAnimation=(a=this.floatingLabelEl)==null?void 0:a.animate(this.getLabelKeyframes(),{duration:150,easing:wi.STANDARD}),(l=this.labelAnimation)==null||l.addEventListener("finish",()=>{this.isAnimating=!1}))}getLabelKeyframes(){const{floatingLabelEl:e,restingLabelEl:r}=this;if(!e||!r)return[];const{x:n,y:i,height:o}=e.getBoundingClientRect(),{x:a,y:l,height:d}=r.getBoundingClientRect(),u=e.scrollWidth,f=r.scrollWidth,g=f/u,y=a-n,x=l-i+Math.round((d-o*g)/2),m=`translateX(${y}px) translateY(${x}px) scale(${g})`,p="translateX(0) translateY(0) scale(1)",_=r.clientWidth,b=f>_?`${_/g}px`:"";return this.focused||this.populated?[{transform:m,width:b},{transform:p,width:b}]:[{transform:p,width:b},{transform:m,width:b}]}getSurfacePositionClientRect(){return this.containerEl.getBoundingClientRect()}}O([H({type:Boolean})],ar.prototype,"disabled",void 0);O([H({type:Boolean})],ar.prototype,"error",void 0);O([H({type:Boolean})],ar.prototype,"focused",void 0);O([H()],ar.prototype,"label",void 0);O([H({type:Boolean,attribute:"no-asterisk"})],ar.prototype,"noAsterisk",void 0);O([H({type:Boolean})],ar.prototype,"populated",void 0);O([H({type:Boolean})],ar.prototype,"required",void 0);O([H({type:Boolean})],ar.prototype,"resizable",void 0);O([H({attribute:"supporting-text"})],ar.prototype,"supportingText",void 0);O([H({attribute:"error-text"})],ar.prototype,"errorText",void 0);O([H({type:Number})],ar.prototype,"count",void 0);O([H({type:Number})],ar.prototype,"max",void 0);O([H({type:Boolean,attribute:"has-start"})],ar.prototype,"hasStart",void 0);O([H({type:Boolean,attribute:"has-end"})],ar.prototype,"hasEnd",void 0);O([Ar({slot:"aria-describedby"})],ar.prototype,"slottedAriaDescribedBy",void 0);O([Pt()],ar.prototype,"isAnimating",void 0);O([Pt()],ar.prototype,"refreshErrorAlert",void 0);O([Pt()],ar.prototype,"disableTransitions",void 0);O([gt(".label.floating")],ar.prototype,"floatingLabelEl",void 0);O([gt(".label.resting")],ar.prototype,"restingLabelEl",void 0);O([gt(".container")],ar.prototype,"containerEl",void 0);class ule extends ar{renderBackground(){return ve` + `}animateLabelIfNeeded({wasFocused:e,wasPopulated:r}){var o,a,l;if(!this.label)return;e??(e=this.focused),r??(r=this.populated);const n=e||r,i=this.focused||this.populated;n!==i&&(this.isAnimating=!0,(o=this.labelAnimation)==null||o.cancel(),this.labelAnimation=(a=this.floatingLabelEl)==null?void 0:a.animate(this.getLabelKeyframes(),{duration:150,easing:Ei.STANDARD}),(l=this.labelAnimation)==null||l.addEventListener("finish",()=>{this.isAnimating=!1}))}getLabelKeyframes(){const{floatingLabelEl:e,restingLabelEl:r}=this;if(!e||!r)return[];const{x:n,y:i,height:o}=e.getBoundingClientRect(),{x:a,y:l,height:d}=r.getBoundingClientRect(),u=e.scrollWidth,f=r.scrollWidth,g=f/u,y=a-n,x=l-i+Math.round((d-o*g)/2),m=`translateX(${y}px) translateY(${x}px) scale(${g})`,p="translateX(0) translateY(0) scale(1)",_=r.clientWidth,b=f>_?`${_/g}px`:"";return this.focused||this.populated?[{transform:m,width:b},{transform:p,width:b}]:[{transform:p,width:b},{transform:m,width:b}]}getSurfacePositionClientRect(){return this.containerEl.getBoundingClientRect()}}O([H({type:Boolean})],ur.prototype,"disabled",void 0);O([H({type:Boolean})],ur.prototype,"error",void 0);O([H({type:Boolean})],ur.prototype,"focused",void 0);O([H()],ur.prototype,"label",void 0);O([H({type:Boolean,attribute:"no-asterisk"})],ur.prototype,"noAsterisk",void 0);O([H({type:Boolean})],ur.prototype,"populated",void 0);O([H({type:Boolean})],ur.prototype,"required",void 0);O([H({type:Boolean})],ur.prototype,"resizable",void 0);O([H({attribute:"supporting-text"})],ur.prototype,"supportingText",void 0);O([H({attribute:"error-text"})],ur.prototype,"errorText",void 0);O([H({type:Number})],ur.prototype,"count",void 0);O([H({type:Number})],ur.prototype,"max",void 0);O([H({type:Boolean,attribute:"has-start"})],ur.prototype,"hasStart",void 0);O([H({type:Boolean,attribute:"has-end"})],ur.prototype,"hasEnd",void 0);O([Or({slot:"aria-describedby"})],ur.prototype,"slottedAriaDescribedBy",void 0);O([Lt()],ur.prototype,"isAnimating",void 0);O([Lt()],ur.prototype,"refreshErrorAlert",void 0);O([Lt()],ur.prototype,"disableTransitions",void 0);O([xt(".label.floating")],ur.prototype,"floatingLabelEl",void 0);O([xt(".label.resting")],ur.prototype,"restingLabelEl",void 0);O([xt(".container")],ur.prototype,"containerEl",void 0);class Ile extends ur{renderBackground(){return me`
- `}renderIndicator(){return ve`
`}}const fle=He`@layer styles{:host{--_active-indicator-color: var(--md-filled-field-active-indicator-color, var(--md-sys-color-on-surface-variant, #49454f));--_active-indicator-height: var(--md-filled-field-active-indicator-height, 1px);--_bottom-space: var(--md-filled-field-bottom-space, 16px);--_container-color: var(--md-filled-field-container-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_content-color: var(--md-filled-field-content-color, var(--md-sys-color-on-surface, #1d1b20));--_content-font: var(--md-filled-field-content-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_content-line-height: var(--md-filled-field-content-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_content-size: var(--md-filled-field-content-size, var(--md-sys-typescale-body-large-size, 1rem));--_content-weight: var(--md-filled-field-content-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_disabled-active-indicator-color: var(--md-filled-field-disabled-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-active-indicator-height: var(--md-filled-field-disabled-active-indicator-height, 1px);--_disabled-active-indicator-opacity: var(--md-filled-field-disabled-active-indicator-opacity, 0.38);--_disabled-container-color: var(--md-filled-field-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-opacity: var(--md-filled-field-disabled-container-opacity, 0.04);--_disabled-content-color: var(--md-filled-field-disabled-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-content-opacity: var(--md-filled-field-disabled-content-opacity, 0.38);--_disabled-label-text-color: var(--md-filled-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-field-disabled-label-text-opacity, 0.38);--_disabled-leading-content-color: var(--md-filled-field-disabled-leading-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-content-opacity: var(--md-filled-field-disabled-leading-content-opacity, 0.38);--_disabled-supporting-text-color: var(--md-filled-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-filled-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-content-color: var(--md-filled-field-disabled-trailing-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-content-opacity: var(--md-filled-field-disabled-trailing-content-opacity, 0.38);--_error-active-indicator-color: var(--md-filled-field-error-active-indicator-color, var(--md-sys-color-error, #b3261e));--_error-content-color: var(--md-filled-field-error-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-active-indicator-color: var(--md-filled-field-error-focus-active-indicator-color, var(--md-sys-color-error, #b3261e));--_error-focus-content-color: var(--md-filled-field-error-focus-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-label-text-color: var(--md-filled-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-content-color: var(--md-filled-field-error-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-supporting-text-color: var(--md-filled-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-content-color: var(--md-filled-field-error-focus-trailing-content-color, var(--md-sys-color-error, #b3261e));--_error-hover-active-indicator-color: var(--md-filled-field-error-hover-active-indicator-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-content-color: var(--md-filled-field-error-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-filled-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-content-color: var(--md-filled-field-error-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-state-layer-color: var(--md-filled-field-error-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-state-layer-opacity: var(--md-filled-field-error-hover-state-layer-opacity, 0.08);--_error-hover-supporting-text-color: var(--md-filled-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-content-color: var(--md-filled-field-error-hover-trailing-content-color, var(--md-sys-color-on-error-container, #410e0b));--_error-label-text-color: var(--md-filled-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-content-color: var(--md-filled-field-error-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-supporting-text-color: var(--md-filled-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-content-color: var(--md-filled-field-error-trailing-content-color, var(--md-sys-color-error, #b3261e));--_focus-active-indicator-color: var(--md-filled-field-focus-active-indicator-color, var(--md-sys-color-primary, #6750a4));--_focus-active-indicator-height: var(--md-filled-field-focus-active-indicator-height, 3px);--_focus-content-color: var(--md-filled-field-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-filled-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-content-color: var(--md-filled-field-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-supporting-text-color: var(--md-filled-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-content-color: var(--md-filled-field-focus-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-active-indicator-color: var(--md-filled-field-hover-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-active-indicator-height: var(--md-filled-field-hover-active-indicator-height, 1px);--_hover-content-color: var(--md-filled-field-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-filled-field-hover-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-leading-content-color: var(--md-filled-field-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-filled-field-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--md-filled-field-hover-state-layer-opacity, 0.08);--_hover-supporting-text-color: var(--md-filled-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-content-color: var(--md-filled-field-hover-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-color: var(--md-filled-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-filled-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-populated-line-height: var(--md-filled-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-filled-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-filled-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-filled-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-content-color: var(--md-filled-field-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-space: var(--md-filled-field-leading-space, 16px);--_supporting-text-color: var(--md-filled-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-filled-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-leading-space: var(--md-filled-field-supporting-text-leading-space, 16px);--_supporting-text-line-height: var(--md-filled-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-filled-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-top-space: var(--md-filled-field-supporting-text-top-space, 4px);--_supporting-text-trailing-space: var(--md-filled-field-supporting-text-trailing-space, 16px);--_supporting-text-weight: var(--md-filled-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_top-space: var(--md-filled-field-top-space, 16px);--_trailing-content-color: var(--md-filled-field-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-space: var(--md-filled-field-trailing-space, 16px);--_with-label-bottom-space: var(--md-filled-field-with-label-bottom-space, 8px);--_with-label-top-space: var(--md-filled-field-with-label-top-space, 8px);--_container-shape-start-start: var(--md-filled-field-container-shape-start-start, var(--md-filled-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-start-end: var(--md-filled-field-container-shape-start-end, var(--md-filled-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-end: var(--md-filled-field-container-shape-end-end, var(--md-filled-field-container-shape, var(--md-sys-shape-corner-none, 0px)));--_container-shape-end-start: var(--md-filled-field-container-shape-end-start, var(--md-filled-field-container-shape, var(--md-sys-shape-corner-none, 0px)))}.background,.state-layer{border-radius:inherit;inset:0;pointer-events:none;position:absolute}.background{background:var(--_container-color)}.state-layer{visibility:hidden}.field:not(.disabled):hover .state-layer{visibility:visible}.label.floating{position:absolute;top:var(--_with-label-top-space)}.field:not(.with-start) .label-wrapper{margin-inline-start:var(--_leading-space)}.field:not(.with-end) .label-wrapper{margin-inline-end:var(--_trailing-space)}.active-indicator{inset:auto 0 0 0;pointer-events:none;position:absolute;width:100%;z-index:1}.active-indicator::before,.active-indicator::after{border-bottom:var(--_active-indicator-height) solid var(--_active-indicator-color);inset:auto 0 0 0;content:"";position:absolute;width:100%}.active-indicator::after{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .active-indicator::after{opacity:1}.field:not(.with-start) .content ::slotted(*){padding-inline-start:var(--_leading-space)}.field:not(.with-end) .content ::slotted(*){padding-inline-end:var(--_trailing-space)}.field:not(.no-label) .content ::slotted(:not(textarea)){padding-bottom:var(--_with-label-bottom-space);padding-top:calc(var(--_with-label-top-space) + var(--_label-text-populated-line-height))}.field:not(.no-label) .content ::slotted(textarea){margin-bottom:var(--_with-label-bottom-space);margin-top:calc(var(--_with-label-top-space) + var(--_label-text-populated-line-height))}:hover .active-indicator::before{border-bottom-color:var(--_hover-active-indicator-color);border-bottom-width:var(--_hover-active-indicator-height)}.active-indicator::after{border-bottom-color:var(--_focus-active-indicator-color);border-bottom-width:var(--_focus-active-indicator-height)}:hover .state-layer{background:var(--_hover-state-layer-color);opacity:var(--_hover-state-layer-opacity)}.disabled .active-indicator::before{border-bottom-color:var(--_disabled-active-indicator-color);border-bottom-width:var(--_disabled-active-indicator-height);opacity:var(--_disabled-active-indicator-opacity)}.disabled .background{background:var(--_disabled-container-color);opacity:var(--_disabled-container-opacity)}.error .active-indicator::before{border-bottom-color:var(--_error-active-indicator-color)}.error:hover .active-indicator::before{border-bottom-color:var(--_error-hover-active-indicator-color)}.error:hover .state-layer{background:var(--_error-hover-state-layer-color);opacity:var(--_error-hover-state-layer-opacity)}.error .active-indicator::after{border-bottom-color:var(--_error-focus-active-indicator-color)}.resizable .container{bottom:var(--_focus-active-indicator-height);clip-path:inset(var(--_focus-active-indicator-height) 0 0 0)}.resizable .container>*{top:var(--_focus-active-indicator-height)}}@layer hcm{@media(forced-colors: active){.disabled .active-indicator::before{border-color:GrayText;opacity:1}}} -`;const YI=He`:host{display:inline-flex;resize:both}.field{display:flex;flex:1;flex-direction:column;writing-mode:horizontal-tb;max-width:100%}.container-overflow{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:flex;height:100%;position:relative}.container{align-items:center;border-radius:inherit;display:flex;flex:1;max-height:100%;min-height:100%;min-width:min-content;position:relative}.field,.container-overflow{resize:inherit}.resizable:not(.disabled) .container{resize:inherit;overflow:hidden}.disabled{pointer-events:none}@layer styles{.start,.middle,.end{display:flex;box-sizing:border-box;height:100%;position:relative}.start{color:var(--_leading-content-color)}.end{color:var(--_trailing-content-color)}.start,.end{align-items:center;justify-content:center}.with-start .start,.with-end .end{min-width:48px}.with-start .start{margin-inline-end:4px}.with-end .end{margin-inline-start:4px}.middle{align-items:stretch;align-self:baseline;flex:1}.content{color:var(--_content-color);display:flex;flex:1;opacity:0;transition:opacity 83ms cubic-bezier(0.2, 0, 0, 1)}.no-label .content,.focused .content,.populated .content{opacity:1;transition-delay:67ms}:is(.disabled,.disable-transitions) .content{transition:none}.content ::slotted(*){all:unset;color:currentColor;font-family:var(--_content-font);font-size:var(--_content-size);line-height:var(--_content-line-height);font-weight:var(--_content-weight);width:100%;overflow-wrap:revert;white-space:revert}.content ::slotted(:not(textarea)){padding-top:var(--_top-space);padding-bottom:var(--_bottom-space)}.content ::slotted(textarea){margin-top:var(--_top-space);margin-bottom:var(--_bottom-space)}:hover .content{color:var(--_hover-content-color)}:hover .start{color:var(--_hover-leading-content-color)}:hover .end{color:var(--_hover-trailing-content-color)}.focused .content{color:var(--_focus-content-color)}.focused .start{color:var(--_focus-leading-content-color)}.focused .end{color:var(--_focus-trailing-content-color)}.disabled .content{color:var(--_disabled-content-color)}.disabled.no-label .content,.disabled.focused .content,.disabled.populated .content{opacity:var(--_disabled-content-opacity)}.disabled .start{color:var(--_disabled-leading-content-color);opacity:var(--_disabled-leading-content-opacity)}.disabled .end{color:var(--_disabled-trailing-content-color);opacity:var(--_disabled-trailing-content-opacity)}.error .content{color:var(--_error-content-color)}.error .start{color:var(--_error-leading-content-color)}.error .end{color:var(--_error-trailing-content-color)}.error:hover .content{color:var(--_error-hover-content-color)}.error:hover .start{color:var(--_error-hover-leading-content-color)}.error:hover .end{color:var(--_error-hover-trailing-content-color)}.error.focused .content{color:var(--_error-focus-content-color)}.error.focused .start{color:var(--_error-focus-leading-content-color)}.error.focused .end{color:var(--_error-focus-trailing-content-color)}}@layer hcm{@media(forced-colors: active){.disabled :is(.start,.content,.end){color:GrayText;opacity:1}}}@layer styles{.label{box-sizing:border-box;color:var(--_label-text-color);overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap;z-index:1;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);width:min-content}.label-wrapper{inset:0;pointer-events:none;position:absolute}.label.resting{position:absolute;top:var(--_top-space)}.label.floating{font-size:var(--_label-text-populated-size);line-height:var(--_label-text-populated-line-height);transform-origin:top left}.label.hidden{opacity:0}.no-label .label{display:none}.label-wrapper{inset:0;position:absolute;text-align:initial}:hover .label{color:var(--_hover-label-text-color)}.focused .label{color:var(--_focus-label-text-color)}.disabled .label{color:var(--_disabled-label-text-color)}.disabled .label:not(.hidden){opacity:var(--_disabled-label-text-opacity)}.error .label{color:var(--_error-label-text-color)}.error:hover .label{color:var(--_error-hover-label-text-color)}.error.focused .label{color:var(--_error-focus-label-text-color)}}@layer hcm{@media(forced-colors: active){.disabled .label:not(.hidden){color:GrayText;opacity:1}}}@layer styles{.supporting-text{color:var(--_supporting-text-color);display:flex;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);gap:16px;justify-content:space-between;padding-inline-start:var(--_supporting-text-leading-space);padding-inline-end:var(--_supporting-text-trailing-space);padding-top:var(--_supporting-text-top-space)}.supporting-text :nth-child(2){flex-shrink:0}:hover .supporting-text{color:var(--_hover-supporting-text-color)}.focus .supporting-text{color:var(--_focus-supporting-text-color)}.disabled .supporting-text{color:var(--_disabled-supporting-text-color);opacity:var(--_disabled-supporting-text-opacity)}.error .supporting-text{color:var(--_error-supporting-text-color)}.error:hover .supporting-text{color:var(--_error-hover-supporting-text-color)}.error.focus .supporting-text{color:var(--_error-focus-supporting-text-color)}}@layer hcm{@media(forced-colors: active){.disabled .supporting-text{color:GrayText;opacity:1}}} -`;let Vy=class extends ule{};Vy.styles=[YI,fle];Vy=O([ot("md-filled-field")],Vy);class hle extends ar{renderOutline(e){return ve` + `}renderIndicator(){return me`
`}}const $le=He`@layer styles{:host{--_active-indicator-color: var(--md-filled-field-active-indicator-color, var(--md-sys-color-on-surface-variant, #49454f));--_active-indicator-height: var(--md-filled-field-active-indicator-height, 1px);--_bottom-space: var(--md-filled-field-bottom-space, 16px);--_container-color: var(--md-filled-field-container-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_content-color: var(--md-filled-field-content-color, var(--md-sys-color-on-surface, #1d1b20));--_content-font: var(--md-filled-field-content-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_content-line-height: var(--md-filled-field-content-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_content-size: var(--md-filled-field-content-size, var(--md-sys-typescale-body-large-size, 1rem));--_content-weight: var(--md-filled-field-content-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_disabled-active-indicator-color: var(--md-filled-field-disabled-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-active-indicator-height: var(--md-filled-field-disabled-active-indicator-height, 1px);--_disabled-active-indicator-opacity: var(--md-filled-field-disabled-active-indicator-opacity, 0.38);--_disabled-container-color: var(--md-filled-field-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-opacity: var(--md-filled-field-disabled-container-opacity, 0.04);--_disabled-content-color: var(--md-filled-field-disabled-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-content-opacity: var(--md-filled-field-disabled-content-opacity, 0.38);--_disabled-label-text-color: var(--md-filled-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-field-disabled-label-text-opacity, 0.38);--_disabled-leading-content-color: var(--md-filled-field-disabled-leading-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-content-opacity: var(--md-filled-field-disabled-leading-content-opacity, 0.38);--_disabled-supporting-text-color: var(--md-filled-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-filled-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-content-color: var(--md-filled-field-disabled-trailing-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-content-opacity: var(--md-filled-field-disabled-trailing-content-opacity, 0.38);--_error-active-indicator-color: var(--md-filled-field-error-active-indicator-color, var(--md-sys-color-error, #b3261e));--_error-content-color: var(--md-filled-field-error-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-active-indicator-color: var(--md-filled-field-error-focus-active-indicator-color, var(--md-sys-color-error, #b3261e));--_error-focus-content-color: var(--md-filled-field-error-focus-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-label-text-color: var(--md-filled-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-content-color: var(--md-filled-field-error-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-supporting-text-color: var(--md-filled-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-content-color: var(--md-filled-field-error-focus-trailing-content-color, var(--md-sys-color-error, #b3261e));--_error-hover-active-indicator-color: var(--md-filled-field-error-hover-active-indicator-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-content-color: var(--md-filled-field-error-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-filled-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-content-color: var(--md-filled-field-error-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-state-layer-color: var(--md-filled-field-error-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-state-layer-opacity: var(--md-filled-field-error-hover-state-layer-opacity, 0.08);--_error-hover-supporting-text-color: var(--md-filled-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-content-color: var(--md-filled-field-error-hover-trailing-content-color, var(--md-sys-color-on-error-container, #410e0b));--_error-label-text-color: var(--md-filled-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-content-color: var(--md-filled-field-error-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-supporting-text-color: var(--md-filled-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-content-color: var(--md-filled-field-error-trailing-content-color, var(--md-sys-color-error, #b3261e));--_focus-active-indicator-color: var(--md-filled-field-focus-active-indicator-color, var(--md-sys-color-primary, #6750a4));--_focus-active-indicator-height: var(--md-filled-field-focus-active-indicator-height, 3px);--_focus-content-color: var(--md-filled-field-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-filled-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-content-color: var(--md-filled-field-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-supporting-text-color: var(--md-filled-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-content-color: var(--md-filled-field-focus-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-active-indicator-color: var(--md-filled-field-hover-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-active-indicator-height: var(--md-filled-field-hover-active-indicator-height, 1px);--_hover-content-color: var(--md-filled-field-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-filled-field-hover-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-leading-content-color: var(--md-filled-field-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-filled-field-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--md-filled-field-hover-state-layer-opacity, 0.08);--_hover-supporting-text-color: var(--md-filled-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-content-color: var(--md-filled-field-hover-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-color: var(--md-filled-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-filled-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-populated-line-height: var(--md-filled-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-filled-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-filled-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-filled-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-content-color: var(--md-filled-field-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-space: var(--md-filled-field-leading-space, 16px);--_supporting-text-color: var(--md-filled-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-filled-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-leading-space: var(--md-filled-field-supporting-text-leading-space, 16px);--_supporting-text-line-height: var(--md-filled-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-filled-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-top-space: var(--md-filled-field-supporting-text-top-space, 4px);--_supporting-text-trailing-space: var(--md-filled-field-supporting-text-trailing-space, 16px);--_supporting-text-weight: var(--md-filled-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_top-space: var(--md-filled-field-top-space, 16px);--_trailing-content-color: var(--md-filled-field-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-space: var(--md-filled-field-trailing-space, 16px);--_with-label-bottom-space: var(--md-filled-field-with-label-bottom-space, 8px);--_with-label-top-space: var(--md-filled-field-with-label-top-space, 8px);--_container-shape-start-start: var(--md-filled-field-container-shape-start-start, var(--md-filled-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-start-end: var(--md-filled-field-container-shape-start-end, var(--md-filled-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-end: var(--md-filled-field-container-shape-end-end, var(--md-filled-field-container-shape, var(--md-sys-shape-corner-none, 0px)));--_container-shape-end-start: var(--md-filled-field-container-shape-end-start, var(--md-filled-field-container-shape, var(--md-sys-shape-corner-none, 0px)))}.background,.state-layer{border-radius:inherit;inset:0;pointer-events:none;position:absolute}.background{background:var(--_container-color)}.state-layer{visibility:hidden}.field:not(.disabled):hover .state-layer{visibility:visible}.label.floating{position:absolute;top:var(--_with-label-top-space)}.field:not(.with-start) .label-wrapper{margin-inline-start:var(--_leading-space)}.field:not(.with-end) .label-wrapper{margin-inline-end:var(--_trailing-space)}.active-indicator{inset:auto 0 0 0;pointer-events:none;position:absolute;width:100%;z-index:1}.active-indicator::before,.active-indicator::after{border-bottom:var(--_active-indicator-height) solid var(--_active-indicator-color);inset:auto 0 0 0;content:"";position:absolute;width:100%}.active-indicator::after{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .active-indicator::after{opacity:1}.field:not(.with-start) .content ::slotted(*){padding-inline-start:var(--_leading-space)}.field:not(.with-end) .content ::slotted(*){padding-inline-end:var(--_trailing-space)}.field:not(.no-label) .content ::slotted(:not(textarea)){padding-bottom:var(--_with-label-bottom-space);padding-top:calc(var(--_with-label-top-space) + var(--_label-text-populated-line-height))}.field:not(.no-label) .content ::slotted(textarea){margin-bottom:var(--_with-label-bottom-space);margin-top:calc(var(--_with-label-top-space) + var(--_label-text-populated-line-height))}:hover .active-indicator::before{border-bottom-color:var(--_hover-active-indicator-color);border-bottom-width:var(--_hover-active-indicator-height)}.active-indicator::after{border-bottom-color:var(--_focus-active-indicator-color);border-bottom-width:var(--_focus-active-indicator-height)}:hover .state-layer{background:var(--_hover-state-layer-color);opacity:var(--_hover-state-layer-opacity)}.disabled .active-indicator::before{border-bottom-color:var(--_disabled-active-indicator-color);border-bottom-width:var(--_disabled-active-indicator-height);opacity:var(--_disabled-active-indicator-opacity)}.disabled .background{background:var(--_disabled-container-color);opacity:var(--_disabled-container-opacity)}.error .active-indicator::before{border-bottom-color:var(--_error-active-indicator-color)}.error:hover .active-indicator::before{border-bottom-color:var(--_error-hover-active-indicator-color)}.error:hover .state-layer{background:var(--_error-hover-state-layer-color);opacity:var(--_error-hover-state-layer-opacity)}.error .active-indicator::after{border-bottom-color:var(--_error-focus-active-indicator-color)}.resizable .container{bottom:var(--_focus-active-indicator-height);clip-path:inset(var(--_focus-active-indicator-height) 0 0 0)}.resizable .container>*{top:var(--_focus-active-indicator-height)}}@layer hcm{@media(forced-colors: active){.disabled .active-indicator::before{border-color:GrayText;opacity:1}}} +`;const s$=He`:host{display:inline-flex;resize:both}.field{display:flex;flex:1;flex-direction:column;writing-mode:horizontal-tb;max-width:100%}.container-overflow{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:flex;height:100%;position:relative}.container{align-items:center;border-radius:inherit;display:flex;flex:1;max-height:100%;min-height:100%;min-width:min-content;position:relative}.field,.container-overflow{resize:inherit}.resizable:not(.disabled) .container{resize:inherit;overflow:hidden}.disabled{pointer-events:none}@layer styles{.start,.middle,.end{display:flex;box-sizing:border-box;height:100%;position:relative}.start{color:var(--_leading-content-color)}.end{color:var(--_trailing-content-color)}.start,.end{align-items:center;justify-content:center}.with-start .start,.with-end .end{min-width:48px}.with-start .start{margin-inline-end:4px}.with-end .end{margin-inline-start:4px}.middle{align-items:stretch;align-self:baseline;flex:1}.content{color:var(--_content-color);display:flex;flex:1;opacity:0;transition:opacity 83ms cubic-bezier(0.2, 0, 0, 1)}.no-label .content,.focused .content,.populated .content{opacity:1;transition-delay:67ms}:is(.disabled,.disable-transitions) .content{transition:none}.content ::slotted(*){all:unset;color:currentColor;font-family:var(--_content-font);font-size:var(--_content-size);line-height:var(--_content-line-height);font-weight:var(--_content-weight);width:100%;overflow-wrap:revert;white-space:revert}.content ::slotted(:not(textarea)){padding-top:var(--_top-space);padding-bottom:var(--_bottom-space)}.content ::slotted(textarea){margin-top:var(--_top-space);margin-bottom:var(--_bottom-space)}:hover .content{color:var(--_hover-content-color)}:hover .start{color:var(--_hover-leading-content-color)}:hover .end{color:var(--_hover-trailing-content-color)}.focused .content{color:var(--_focus-content-color)}.focused .start{color:var(--_focus-leading-content-color)}.focused .end{color:var(--_focus-trailing-content-color)}.disabled .content{color:var(--_disabled-content-color)}.disabled.no-label .content,.disabled.focused .content,.disabled.populated .content{opacity:var(--_disabled-content-opacity)}.disabled .start{color:var(--_disabled-leading-content-color);opacity:var(--_disabled-leading-content-opacity)}.disabled .end{color:var(--_disabled-trailing-content-color);opacity:var(--_disabled-trailing-content-opacity)}.error .content{color:var(--_error-content-color)}.error .start{color:var(--_error-leading-content-color)}.error .end{color:var(--_error-trailing-content-color)}.error:hover .content{color:var(--_error-hover-content-color)}.error:hover .start{color:var(--_error-hover-leading-content-color)}.error:hover .end{color:var(--_error-hover-trailing-content-color)}.error.focused .content{color:var(--_error-focus-content-color)}.error.focused .start{color:var(--_error-focus-leading-content-color)}.error.focused .end{color:var(--_error-focus-trailing-content-color)}}@layer hcm{@media(forced-colors: active){.disabled :is(.start,.content,.end){color:GrayText;opacity:1}}}@layer styles{.label{box-sizing:border-box;color:var(--_label-text-color);overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap;z-index:1;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);width:min-content}.label-wrapper{inset:0;pointer-events:none;position:absolute}.label.resting{position:absolute;top:var(--_top-space)}.label.floating{font-size:var(--_label-text-populated-size);line-height:var(--_label-text-populated-line-height);transform-origin:top left}.label.hidden{opacity:0}.no-label .label{display:none}.label-wrapper{inset:0;position:absolute;text-align:initial}:hover .label{color:var(--_hover-label-text-color)}.focused .label{color:var(--_focus-label-text-color)}.disabled .label{color:var(--_disabled-label-text-color)}.disabled .label:not(.hidden){opacity:var(--_disabled-label-text-opacity)}.error .label{color:var(--_error-label-text-color)}.error:hover .label{color:var(--_error-hover-label-text-color)}.error.focused .label{color:var(--_error-focus-label-text-color)}}@layer hcm{@media(forced-colors: active){.disabled .label:not(.hidden){color:GrayText;opacity:1}}}@layer styles{.supporting-text{color:var(--_supporting-text-color);display:flex;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);gap:16px;justify-content:space-between;padding-inline-start:var(--_supporting-text-leading-space);padding-inline-end:var(--_supporting-text-trailing-space);padding-top:var(--_supporting-text-top-space)}.supporting-text :nth-child(2){flex-shrink:0}:hover .supporting-text{color:var(--_hover-supporting-text-color)}.focus .supporting-text{color:var(--_focus-supporting-text-color)}.disabled .supporting-text{color:var(--_disabled-supporting-text-color);opacity:var(--_disabled-supporting-text-opacity)}.error .supporting-text{color:var(--_error-supporting-text-color)}.error:hover .supporting-text{color:var(--_error-hover-supporting-text-color)}.error.focus .supporting-text{color:var(--_error-focus-supporting-text-color)}}@layer hcm{@media(forced-colors: active){.disabled .supporting-text{color:GrayText;opacity:1}}} +`;let nb=class extends Ile{};nb.styles=[s$,$le];nb=O([st("md-filled-field")],nb);class Ole extends ur{renderOutline(e){return me`
@@ -1439,50 +1448,50 @@ function print() { __p += __j.call(arguments, '') }
- `}}const ple=He`@layer styles{:host{--_bottom-space: var(--md-outlined-field-bottom-space, 16px);--_content-color: var(--md-outlined-field-content-color, var(--md-sys-color-on-surface, #1d1b20));--_content-font: var(--md-outlined-field-content-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_content-line-height: var(--md-outlined-field-content-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_content-size: var(--md-outlined-field-content-size, var(--md-sys-typescale-body-large-size, 1rem));--_content-weight: var(--md-outlined-field-content-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_disabled-content-color: var(--md-outlined-field-disabled-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-content-opacity: var(--md-outlined-field-disabled-content-opacity, 0.38);--_disabled-label-text-color: var(--md-outlined-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-field-disabled-label-text-opacity, 0.38);--_disabled-leading-content-color: var(--md-outlined-field-disabled-leading-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-content-opacity: var(--md-outlined-field-disabled-leading-content-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-field-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-field-disabled-outline-opacity, 0.12);--_disabled-outline-width: var(--md-outlined-field-disabled-outline-width, 1px);--_disabled-supporting-text-color: var(--md-outlined-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-outlined-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-content-color: var(--md-outlined-field-disabled-trailing-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-content-opacity: var(--md-outlined-field-disabled-trailing-content-opacity, 0.38);--_error-content-color: var(--md-outlined-field-error-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-content-color: var(--md-outlined-field-error-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-label-text-color: var(--md-outlined-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-content-color: var(--md-outlined-field-error-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-outline-color: var(--md-outlined-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));--_error-focus-supporting-text-color: var(--md-outlined-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-content-color: var(--md-outlined-field-error-focus-trailing-content-color, var(--md-sys-color-error, #b3261e));--_error-hover-content-color: var(--md-outlined-field-error-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-outlined-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-content-color: var(--md-outlined-field-error-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-outline-color: var(--md-outlined-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-supporting-text-color: var(--md-outlined-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-content-color: var(--md-outlined-field-error-hover-trailing-content-color, var(--md-sys-color-on-error-container, #410e0b));--_error-label-text-color: var(--md-outlined-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-content-color: var(--md-outlined-field-error-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-outline-color: var(--md-outlined-field-error-outline-color, var(--md-sys-color-error, #b3261e));--_error-supporting-text-color: var(--md-outlined-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-content-color: var(--md-outlined-field-error-trailing-content-color, var(--md-sys-color-error, #b3261e));--_focus-content-color: var(--md-outlined-field-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-outlined-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-content-color: var(--md-outlined-field-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-outline-color: var(--md-outlined-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));--_focus-outline-width: var(--md-outlined-field-focus-outline-width, 3px);--_focus-supporting-text-color: var(--md-outlined-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-content-color: var(--md-outlined-field-focus-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-content-color: var(--md-outlined-field-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-outlined-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-leading-content-color: var(--md-outlined-field-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-outline-color: var(--md-outlined-field-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-outline-width: var(--md-outlined-field-hover-outline-width, 1px);--_hover-supporting-text-color: var(--md-outlined-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-content-color: var(--md-outlined-field-hover-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-color: var(--md-outlined-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-outlined-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-padding-bottom: var(--md-outlined-field-label-text-padding-bottom, 8px);--_label-text-populated-line-height: var(--md-outlined-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-outlined-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-outlined-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-outlined-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-content-color: var(--md-outlined-field-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-space: var(--md-outlined-field-leading-space, 16px);--_outline-color: var(--md-outlined-field-outline-color, var(--md-sys-color-outline, #79747e));--_outline-label-padding: var(--md-outlined-field-outline-label-padding, 4px);--_outline-width: var(--md-outlined-field-outline-width, 1px);--_supporting-text-color: var(--md-outlined-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-outlined-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-leading-space: var(--md-outlined-field-supporting-text-leading-space, 16px);--_supporting-text-line-height: var(--md-outlined-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-outlined-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-top-space: var(--md-outlined-field-supporting-text-top-space, 4px);--_supporting-text-trailing-space: var(--md-outlined-field-supporting-text-trailing-space, 16px);--_supporting-text-weight: var(--md-outlined-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_top-space: var(--md-outlined-field-top-space, 16px);--_trailing-content-color: var(--md-outlined-field-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-space: var(--md-outlined-field-trailing-space, 16px);--_container-shape-start-start: var(--md-outlined-field-container-shape-start-start, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-start-end: var(--md-outlined-field-container-shape-start-end, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-end: var(--md-outlined-field-container-shape-end-end, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-start: var(--md-outlined-field-container-shape-end-start, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)))}.outline{border-color:var(--_outline-color);border-radius:inherit;display:flex;pointer-events:none;height:100%;position:absolute;width:100%;z-index:1}.outline-start::before,.outline-start::after,.outline-panel-inactive::before,.outline-panel-inactive::after,.outline-panel-active::before,.outline-panel-active::after,.outline-end::before,.outline-end::after{border:inherit;content:"";inset:0;position:absolute}.outline-start,.outline-end{border:inherit;border-radius:inherit;box-sizing:border-box;position:relative}.outline-start::before,.outline-start::after,.outline-end::before,.outline-end::after{border-bottom-style:solid;border-top-style:solid}.outline-start::after,.outline-end::after{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .outline-start::after,.focused .outline-end::after{opacity:1}.outline-start::before,.outline-start::after{border-inline-start-style:solid;border-inline-end-style:none;border-start-start-radius:inherit;border-start-end-radius:0;border-end-start-radius:inherit;border-end-end-radius:0;margin-inline-end:var(--_outline-label-padding)}.outline-end{flex-grow:1;margin-inline-start:calc(-1*var(--_outline-label-padding))}.outline-end::before,.outline-end::after{border-inline-start-style:none;border-inline-end-style:solid;border-start-start-radius:0;border-start-end-radius:inherit;border-end-start-radius:0;border-end-end-radius:inherit}.outline-notch{align-items:flex-start;border:inherit;display:flex;margin-inline-start:calc(-1*var(--_outline-label-padding));margin-inline-end:var(--_outline-label-padding);max-width:calc(100% - var(--_leading-space) - var(--_trailing-space));padding:0 var(--_outline-label-padding);position:relative}.no-label .outline-notch{display:none}.outline-panel-inactive,.outline-panel-active{border:inherit;border-bottom-style:solid;inset:0;position:absolute}.outline-panel-inactive::before,.outline-panel-inactive::after,.outline-panel-active::before,.outline-panel-active::after{border-top-style:solid;border-bottom:none;bottom:auto;transform:scaleX(1);transition:transform 150ms cubic-bezier(0.2, 0, 0, 1)}.outline-panel-inactive::before,.outline-panel-active::before{right:50%;transform-origin:top left}.outline-panel-inactive::after,.outline-panel-active::after{left:50%;transform-origin:top right}.populated .outline-panel-inactive::before,.populated .outline-panel-inactive::after,.populated .outline-panel-active::before,.populated .outline-panel-active::after,.focused .outline-panel-inactive::before,.focused .outline-panel-inactive::after,.focused .outline-panel-active::before,.focused .outline-panel-active::after{transform:scaleX(0)}.outline-panel-active{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .outline-panel-active{opacity:1}.outline-label{display:flex;max-width:100%;transform:translateY(calc(-100% + var(--_label-text-padding-bottom)))}.outline-start,.field:not(.with-start) .content ::slotted(*){padding-inline-start:max(var(--_leading-space),max(var(--_container-shape-start-start),var(--_container-shape-end-start)) + var(--_outline-label-padding))}.field:not(.with-start) .label-wrapper{margin-inline-start:max(var(--_leading-space),max(var(--_container-shape-start-start),var(--_container-shape-end-start)) + var(--_outline-label-padding))}.field:not(.with-end) .content ::slotted(*){padding-inline-end:max(var(--_trailing-space),max(var(--_container-shape-start-end),var(--_container-shape-end-end)))}.field:not(.with-end) .label-wrapper{margin-inline-end:max(var(--_trailing-space),max(var(--_container-shape-start-end),var(--_container-shape-end-end)))}.outline-start::before,.outline-end::before,.outline-panel-inactive,.outline-panel-inactive::before,.outline-panel-inactive::after{border-width:var(--_outline-width)}:hover .outline{border-color:var(--_hover-outline-color);color:var(--_hover-outline-color)}:hover .outline-start::before,:hover .outline-end::before,:hover .outline-panel-inactive,:hover .outline-panel-inactive::before,:hover .outline-panel-inactive::after{border-width:var(--_hover-outline-width)}.focused .outline{border-color:var(--_focus-outline-color);color:var(--_focus-outline-color)}.outline-start::after,.outline-end::after,.outline-panel-active,.outline-panel-active::before,.outline-panel-active::after{border-width:var(--_focus-outline-width)}.disabled .outline{border-color:var(--_disabled-outline-color);color:var(--_disabled-outline-color)}.disabled .outline-start,.disabled .outline-end,.disabled .outline-panel-inactive{opacity:var(--_disabled-outline-opacity)}.disabled .outline-start::before,.disabled .outline-end::before,.disabled .outline-panel-inactive,.disabled .outline-panel-inactive::before,.disabled .outline-panel-inactive::after{border-width:var(--_disabled-outline-width)}.error .outline{border-color:var(--_error-outline-color);color:var(--_error-outline-color)}.error:hover .outline{border-color:var(--_error-hover-outline-color);color:var(--_error-hover-outline-color)}.error.focused .outline{border-color:var(--_error-focus-outline-color);color:var(--_error-focus-outline-color)}.resizable .container{bottom:var(--_focus-outline-width);inset-inline-end:var(--_focus-outline-width);clip-path:inset(var(--_focus-outline-width) 0 0 var(--_focus-outline-width))}.resizable .container>*{top:var(--_focus-outline-width);inset-inline-start:var(--_focus-outline-width)}.resizable .container:dir(rtl){clip-path:inset(var(--_focus-outline-width) var(--_focus-outline-width) 0 0)}}@layer hcm{@media(forced-colors: active){.disabled .outline{border-color:GrayText;color:GrayText}.disabled :is(.outline-start,.outline-end,.outline-panel-inactive){opacity:1}}} -`;let jy=class extends hle{};jy.styles=[YI,ple];jy=O([ot("md-outlined-field")],jy);class mle extends dt{render(){return ve``}connectedCallback(){if(super.connectedCallback(),this.getAttribute("aria-hidden")==="false"){this.removeAttribute("aria-hidden");return}this.setAttribute("aria-hidden","true")}}const vle=He`:host{font-size:var(--md-icon-size, 24px);width:var(--md-icon-size, 24px);height:var(--md-icon-size, 24px);color:inherit;font-variation-settings:inherit;font-weight:400;font-family:var(--md-icon-font, Material Symbols Outlined);display:inline-flex;font-style:normal;place-items:center;place-content:center;line-height:1;overflow:hidden;letter-spacing:normal;text-transform:none;user-select:none;white-space:nowrap;word-wrap:normal;flex-shrink:0;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}::slotted(svg){fill:currentColor}::slotted(*){height:100%;width:100%} -`;let Hy=class extends mle{};Hy.styles=[vle];Hy=O([ot("md-icon")],Hy);const gle=He`:host{--_container-color: var(--md-filled-icon-button-container-color, var(--md-sys-color-primary, #6750a4));--_container-height: var(--md-filled-icon-button-container-height, 40px);--_container-width: var(--md-filled-icon-button-container-width, 40px);--_disabled-container-color: var(--md-filled-icon-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-opacity: var(--md-filled-icon-button-disabled-container-opacity, 0.12);--_disabled-icon-color: var(--md-filled-icon-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-filled-icon-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-filled-icon-button-focus-icon-color, var(--md-sys-color-on-primary, #fff));--_hover-icon-color: var(--md-filled-icon-button-hover-icon-color, var(--md-sys-color-on-primary, #fff));--_hover-state-layer-color: var(--md-filled-icon-button-hover-state-layer-color, var(--md-sys-color-on-primary, #fff));--_hover-state-layer-opacity: var(--md-filled-icon-button-hover-state-layer-opacity, 0.08);--_icon-color: var(--md-filled-icon-button-icon-color, var(--md-sys-color-on-primary, #fff));--_icon-size: var(--md-filled-icon-button-icon-size, 24px);--_pressed-icon-color: var(--md-filled-icon-button-pressed-icon-color, var(--md-sys-color-on-primary, #fff));--_pressed-state-layer-color: var(--md-filled-icon-button-pressed-state-layer-color, var(--md-sys-color-on-primary, #fff));--_pressed-state-layer-opacity: var(--md-filled-icon-button-pressed-state-layer-opacity, 0.12);--_selected-container-color: var(--md-filled-icon-button-selected-container-color, var(--md-sys-color-primary, #6750a4));--_toggle-selected-focus-icon-color: var(--md-filled-icon-button-toggle-selected-focus-icon-color, var(--md-sys-color-on-primary, #fff));--_toggle-selected-hover-icon-color: var(--md-filled-icon-button-toggle-selected-hover-icon-color, var(--md-sys-color-on-primary, #fff));--_toggle-selected-hover-state-layer-color: var(--md-filled-icon-button-toggle-selected-hover-state-layer-color, var(--md-sys-color-on-primary, #fff));--_toggle-selected-icon-color: var(--md-filled-icon-button-toggle-selected-icon-color, var(--md-sys-color-on-primary, #fff));--_toggle-selected-pressed-icon-color: var(--md-filled-icon-button-toggle-selected-pressed-icon-color, var(--md-sys-color-on-primary, #fff));--_toggle-selected-pressed-state-layer-color: var(--md-filled-icon-button-toggle-selected-pressed-state-layer-color, var(--md-sys-color-on-primary, #fff));--_unselected-container-color: var(--md-filled-icon-button-unselected-container-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_toggle-focus-icon-color: var(--md-filled-icon-button-toggle-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_toggle-hover-icon-color: var(--md-filled-icon-button-toggle-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_toggle-hover-state-layer-color: var(--md-filled-icon-button-toggle-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_toggle-icon-color: var(--md-filled-icon-button-toggle-icon-color, var(--md-sys-color-primary, #6750a4));--_toggle-pressed-icon-color: var(--md-filled-icon-button-toggle-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_toggle-pressed-state-layer-color: var(--md-filled-icon-button-toggle-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var(--md-filled-icon-button-container-shape-start-start, var(--md-filled-icon-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-filled-icon-button-container-shape-start-end, var(--md-filled-icon-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-filled-icon-button-container-shape-end-end, var(--md-filled-icon-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-filled-icon-button-container-shape-end-start, var(--md-filled-icon-button-container-shape, var(--md-sys-shape-corner-full, 9999px)))}.icon-button{color:var(--_icon-color);--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)}.icon-button:hover{color:var(--_hover-icon-color)}.icon-button:focus{color:var(--_focus-icon-color)}.icon-button:active{color:var(--_pressed-icon-color)}.icon-button:disabled{color:var(--_disabled-icon-color)}.icon-button::before{background-color:var(--_container-color);border-radius:inherit;content:"";inset:0;position:absolute;z-index:-1}.icon-button:disabled::before{background-color:var(--_disabled-container-color);opacity:var(--_disabled-container-opacity)}.icon-button:disabled .icon{opacity:var(--_disabled-icon-opacity)}.toggle-filled{--md-ripple-hover-color: var(--_toggle-hover-state-layer-color);--md-ripple-pressed-color: var(--_toggle-pressed-state-layer-color)}.toggle-filled:not(:disabled){color:var(--_toggle-icon-color)}.toggle-filled:not(:disabled):hover{color:var(--_toggle-hover-icon-color)}.toggle-filled:not(:disabled):focus{color:var(--_toggle-focus-icon-color)}.toggle-filled:not(:disabled):active{color:var(--_toggle-pressed-icon-color)}.toggle-filled:not(:disabled)::before{background-color:var(--_unselected-container-color)}.selected{--md-ripple-hover-color: var(--_toggle-selected-hover-state-layer-color);--md-ripple-pressed-color: var(--_toggle-selected-pressed-state-layer-color)}.selected:not(:disabled){color:var(--_toggle-selected-icon-color)}.selected:not(:disabled):hover{color:var(--_toggle-selected-hover-icon-color)}.selected:not(:disabled):focus{color:var(--_toggle-selected-focus-icon-color)}.selected:not(:disabled):active{color:var(--_toggle-selected-pressed-icon-color)}.selected:not(:disabled)::before{background-color:var(--_selected-container-color)} -`;const XI=Symbol.for(""),_le=t=>{if((t==null?void 0:t.r)===XI)return t==null?void 0:t._$litStatic$},bn=(t,...e)=>({_$litStatic$:e.reduce((r,n,i)=>r+(o=>{if(o._$litStatic$!==void 0)return o._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${o}. Use 'unsafeStatic' to pass non-literal values, but - take care to ensure page security.`)})(n)+t[i+1],t[0]),r:XI}),V5=new Map,yle=t=>(e,...r)=>{const n=r.length;let i,o;const a=[],l=[];let d,u=0,f=!1;for(;u*{top:var(--_focus-outline-width);inset-inline-start:var(--_focus-outline-width)}.resizable .container:dir(rtl){clip-path:inset(var(--_focus-outline-width) var(--_focus-outline-width) 0 0)}}@layer hcm{@media(forced-colors: active){.disabled .outline{border-color:GrayText;color:GrayText}.disabled :is(.outline-start,.outline-end,.outline-panel-inactive){opacity:1}}} +`;let ib=class extends Ole{};ib.styles=[s$,Ple];ib=O([st("md-outlined-field")],ib);class Rle extends ft{render(){return me``}connectedCallback(){if(super.connectedCallback(),this.getAttribute("aria-hidden")==="false"){this.removeAttribute("aria-hidden");return}this.setAttribute("aria-hidden","true")}}const Dle=He`:host{font-size:var(--md-icon-size, 24px);width:var(--md-icon-size, 24px);height:var(--md-icon-size, 24px);color:inherit;font-variation-settings:inherit;font-weight:400;font-family:var(--md-icon-font, Material Symbols Outlined);display:inline-flex;font-style:normal;place-items:center;place-content:center;line-height:1;overflow:hidden;letter-spacing:normal;text-transform:none;user-select:none;white-space:nowrap;word-wrap:normal;flex-shrink:0;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}::slotted(svg){fill:currentColor}::slotted(*){height:100%;width:100%} +`;let ob=class extends Rle{};ob.styles=[Dle];ob=O([st("md-icon")],ob);const Lle=He`:host{--_container-color: var(--md-filled-icon-button-container-color, var(--md-sys-color-primary, #6750a4));--_container-height: var(--md-filled-icon-button-container-height, 40px);--_container-width: var(--md-filled-icon-button-container-width, 40px);--_disabled-container-color: var(--md-filled-icon-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-opacity: var(--md-filled-icon-button-disabled-container-opacity, 0.12);--_disabled-icon-color: var(--md-filled-icon-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-filled-icon-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-filled-icon-button-focus-icon-color, var(--md-sys-color-on-primary, #fff));--_hover-icon-color: var(--md-filled-icon-button-hover-icon-color, var(--md-sys-color-on-primary, #fff));--_hover-state-layer-color: var(--md-filled-icon-button-hover-state-layer-color, var(--md-sys-color-on-primary, #fff));--_hover-state-layer-opacity: var(--md-filled-icon-button-hover-state-layer-opacity, 0.08);--_icon-color: var(--md-filled-icon-button-icon-color, var(--md-sys-color-on-primary, #fff));--_icon-size: var(--md-filled-icon-button-icon-size, 24px);--_pressed-icon-color: var(--md-filled-icon-button-pressed-icon-color, var(--md-sys-color-on-primary, #fff));--_pressed-state-layer-color: var(--md-filled-icon-button-pressed-state-layer-color, var(--md-sys-color-on-primary, #fff));--_pressed-state-layer-opacity: var(--md-filled-icon-button-pressed-state-layer-opacity, 0.12);--_selected-container-color: var(--md-filled-icon-button-selected-container-color, var(--md-sys-color-primary, #6750a4));--_toggle-selected-focus-icon-color: var(--md-filled-icon-button-toggle-selected-focus-icon-color, var(--md-sys-color-on-primary, #fff));--_toggle-selected-hover-icon-color: var(--md-filled-icon-button-toggle-selected-hover-icon-color, var(--md-sys-color-on-primary, #fff));--_toggle-selected-hover-state-layer-color: var(--md-filled-icon-button-toggle-selected-hover-state-layer-color, var(--md-sys-color-on-primary, #fff));--_toggle-selected-icon-color: var(--md-filled-icon-button-toggle-selected-icon-color, var(--md-sys-color-on-primary, #fff));--_toggle-selected-pressed-icon-color: var(--md-filled-icon-button-toggle-selected-pressed-icon-color, var(--md-sys-color-on-primary, #fff));--_toggle-selected-pressed-state-layer-color: var(--md-filled-icon-button-toggle-selected-pressed-state-layer-color, var(--md-sys-color-on-primary, #fff));--_unselected-container-color: var(--md-filled-icon-button-unselected-container-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_toggle-focus-icon-color: var(--md-filled-icon-button-toggle-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_toggle-hover-icon-color: var(--md-filled-icon-button-toggle-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_toggle-hover-state-layer-color: var(--md-filled-icon-button-toggle-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_toggle-icon-color: var(--md-filled-icon-button-toggle-icon-color, var(--md-sys-color-primary, #6750a4));--_toggle-pressed-icon-color: var(--md-filled-icon-button-toggle-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_toggle-pressed-state-layer-color: var(--md-filled-icon-button-toggle-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var(--md-filled-icon-button-container-shape-start-start, var(--md-filled-icon-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-filled-icon-button-container-shape-start-end, var(--md-filled-icon-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-filled-icon-button-container-shape-end-end, var(--md-filled-icon-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-filled-icon-button-container-shape-end-start, var(--md-filled-icon-button-container-shape, var(--md-sys-shape-corner-full, 9999px)))}.icon-button{color:var(--_icon-color);--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)}.icon-button:hover{color:var(--_hover-icon-color)}.icon-button:focus{color:var(--_focus-icon-color)}.icon-button:active{color:var(--_pressed-icon-color)}.icon-button:disabled{color:var(--_disabled-icon-color)}.icon-button::before{background-color:var(--_container-color);border-radius:inherit;content:"";inset:0;position:absolute;z-index:-1}.icon-button:disabled::before{background-color:var(--_disabled-container-color);opacity:var(--_disabled-container-opacity)}.icon-button:disabled .icon{opacity:var(--_disabled-icon-opacity)}.toggle-filled{--md-ripple-hover-color: var(--_toggle-hover-state-layer-color);--md-ripple-pressed-color: var(--_toggle-pressed-state-layer-color)}.toggle-filled:not(:disabled){color:var(--_toggle-icon-color)}.toggle-filled:not(:disabled):hover{color:var(--_toggle-hover-icon-color)}.toggle-filled:not(:disabled):focus{color:var(--_toggle-focus-icon-color)}.toggle-filled:not(:disabled):active{color:var(--_toggle-pressed-icon-color)}.toggle-filled:not(:disabled)::before{background-color:var(--_unselected-container-color)}.selected{--md-ripple-hover-color: var(--_toggle-selected-hover-state-layer-color);--md-ripple-pressed-color: var(--_toggle-selected-pressed-state-layer-color)}.selected:not(:disabled){color:var(--_toggle-selected-icon-color)}.selected:not(:disabled):hover{color:var(--_toggle-selected-hover-icon-color)}.selected:not(:disabled):focus{color:var(--_toggle-selected-focus-icon-color)}.selected:not(:disabled):active{color:var(--_toggle-selected-pressed-icon-color)}.selected:not(:disabled)::before{background-color:var(--_selected-container-color)} +`;const l$=Symbol.for(""),Mle=t=>{if((t==null?void 0:t.r)===l$)return t==null?void 0:t._$litStatic$},wn=(t,...e)=>({_$litStatic$:e.reduce((r,n,i)=>r+(o=>{if(o._$litStatic$!==void 0)return o._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${o}. Use 'unsafeStatic' to pass non-literal values, but + take care to ensure page security.`)})(n)+t[i+1],t[0]),r:l$}),e4=new Map,Fle=t=>(e,...r)=>{const n=r.length;let i,o;const a=[],l=[];let d,u=0,f=!1;for(;u ${this.renderFocusRing()} ${this.renderRipple()} - ${this.selected?me:this.renderIcon()} - ${this.selected?this.renderSelectedIcon():me} + ${this.selected?pe:this.renderIcon()} + ${this.selected?this.renderSelectedIcon():pe} ${this.renderTouchTarget()} ${this.href&&this.renderLink()} - `}renderLink(){const{ariaLabel:e}=this;return ve` + `}renderLink(){const{ariaLabel:e}=this;return me` - `}getRenderClasses(){return{"flip-icon":this.flipIcon,selected:this.toggle&&this.selected}}renderIcon(){return ve``}renderSelectedIcon(){return ve` + `}getRenderClasses(){return{"flip-icon":this.flipIcon,selected:this.toggle&&this.selected}}renderIcon(){return me``}renderSelectedIcon(){return me``}renderTouchTarget(){return ve``}renderFocusRing(){return ve``}renderTouchTarget(){return me``}renderFocusRing(){return me``}renderRipple(){return ve``}connectedCallback(){this.flipIcon=j5(this,this.flipIconInRtl),super.connectedCallback()}async handleClick(e){await 0,!(!this.toggle||this.disabled||e.defaultPrevented)&&(this.selected=!this.selected,this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0})))}}Xr(Lr),BI(Lr);Lr.formAssociated=!0;Lr.shadowRootOptions={mode:"open",delegatesFocus:!0};O([H({type:Boolean,reflect:!0})],Lr.prototype,"disabled",void 0);O([H({type:Boolean,attribute:"flip-icon-in-rtl"})],Lr.prototype,"flipIconInRtl",void 0);O([H()],Lr.prototype,"href",void 0);O([H()],Lr.prototype,"target",void 0);O([H({attribute:"aria-label-selected"})],Lr.prototype,"ariaLabelSelected",void 0);O([H({type:Boolean})],Lr.prototype,"toggle",void 0);O([H({type:Boolean,reflect:!0})],Lr.prototype,"selected",void 0);O([H()],Lr.prototype,"type",void 0);O([H({reflect:!0})],Lr.prototype,"value",void 0);O([Pt()],Lr.prototype,"flipIcon",void 0);const km=He`:host{display:inline-flex;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0);height:var(--_container-height);width:var(--_container-width);justify-content:center}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_container-height))/2) max(0px,(48px - var(--_container-width))/2)}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)}:host([disabled]){pointer-events:none}.icon-button{place-items:center;background:none;border:none;box-sizing:border-box;cursor:pointer;display:flex;place-content:center;outline:none;padding:0;position:relative;text-decoration:none;user-select:none;z-index:0;flex:1;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)}.icon ::slotted(*){font-size:var(--_icon-size);height:var(--_icon-size);width:var(--_icon-size);font-weight:inherit}md-ripple{z-index:-1;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)}.flip-icon .icon{transform:scaleX(-1)}.icon{display:inline-flex}.link{height:100%;outline:none;position:absolute;width:100%}.touch{position:absolute;height:max(48px,100%);width:max(48px,100%)}:host([touch-target=none]) .touch{display:none}@media(forced-colors: active){:host([disabled]){--_disabled-icon-opacity: 1}} -`;let Wy=class extends Lr{getRenderClasses(){return{...super.getRenderClasses(),filled:!0,"toggle-filled":this.toggle}}};Wy.styles=[km,gle];Wy=O([ot("md-filled-icon-button")],Wy);const xle=He`:host{--_container-color: var(--md-filled-tonal-icon-button-container-color, var(--md-sys-color-secondary-container, #e8def8));--_container-height: var(--md-filled-tonal-icon-button-container-height, 40px);--_container-width: var(--md-filled-tonal-icon-button-container-width, 40px);--_disabled-container-color: var(--md-filled-tonal-icon-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-opacity: var(--md-filled-tonal-icon-button-disabled-container-opacity, 0.12);--_disabled-icon-color: var(--md-filled-tonal-icon-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-filled-tonal-icon-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-filled-tonal-icon-button-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-icon-color: var(--md-filled-tonal-icon-button-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-state-layer-color: var(--md-filled-tonal-icon-button-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-state-layer-opacity: var(--md-filled-tonal-icon-button-hover-state-layer-opacity, 0.08);--_icon-color: var(--md-filled-tonal-icon-button-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_icon-size: var(--md-filled-tonal-icon-button-icon-size, 24px);--_pressed-icon-color: var(--md-filled-tonal-icon-button-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-color: var(--md-filled-tonal-icon-button-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-opacity: var(--md-filled-tonal-icon-button-pressed-state-layer-opacity, 0.12);--_selected-container-color: var(--md-filled-tonal-icon-button-selected-container-color, var(--md-sys-color-secondary-container, #e8def8));--_toggle-selected-focus-icon-color: var(--md-filled-tonal-icon-button-toggle-selected-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_toggle-selected-hover-icon-color: var(--md-filled-tonal-icon-button-toggle-selected-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_toggle-selected-hover-state-layer-color: var(--md-filled-tonal-icon-button-toggle-selected-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_toggle-selected-icon-color: var(--md-filled-tonal-icon-button-toggle-selected-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_toggle-selected-pressed-icon-color: var(--md-filled-tonal-icon-button-toggle-selected-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_toggle-selected-pressed-state-layer-color: var(--md-filled-tonal-icon-button-toggle-selected-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_unselected-container-color: var(--md-filled-tonal-icon-button-unselected-container-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_toggle-focus-icon-color: var(--md-filled-tonal-icon-button-toggle-focus-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_toggle-hover-icon-color: var(--md-filled-tonal-icon-button-toggle-hover-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_toggle-hover-state-layer-color: var(--md-filled-tonal-icon-button-toggle-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_toggle-icon-color: var(--md-filled-tonal-icon-button-toggle-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_toggle-pressed-icon-color: var(--md-filled-tonal-icon-button-toggle-pressed-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_toggle-pressed-state-layer-color: var(--md-filled-tonal-icon-button-toggle-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_container-shape-start-start: var(--md-filled-tonal-icon-button-container-shape-start-start, var(--md-filled-tonal-icon-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-filled-tonal-icon-button-container-shape-start-end, var(--md-filled-tonal-icon-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-filled-tonal-icon-button-container-shape-end-end, var(--md-filled-tonal-icon-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-filled-tonal-icon-button-container-shape-end-start, var(--md-filled-tonal-icon-button-container-shape, var(--md-sys-shape-corner-full, 9999px)))}.icon-button{color:var(--_icon-color);--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)}.icon-button:hover{color:var(--_hover-icon-color)}.icon-button:focus{color:var(--_focus-icon-color)}.icon-button:active{color:var(--_pressed-icon-color)}.icon-button:disabled{color:var(--_disabled-icon-color)}.icon-button::before{background-color:var(--_container-color);border-radius:inherit;content:"";inset:0;position:absolute;z-index:-1}.icon-button:disabled::before{background-color:var(--_disabled-container-color);opacity:var(--_disabled-container-opacity)}.icon-button:disabled .icon{opacity:var(--_disabled-icon-opacity)}.toggle-filled-tonal{--md-ripple-hover-color: var(--_toggle-hover-state-layer-color);--md-ripple-pressed-color: var(--_toggle-pressed-state-layer-color)}.toggle-filled-tonal:not(:disabled){color:var(--_toggle-icon-color)}.toggle-filled-tonal:not(:disabled):hover{color:var(--_toggle-hover-icon-color)}.toggle-filled-tonal:not(:disabled):focus{color:var(--_toggle-focus-icon-color)}.toggle-filled-tonal:not(:disabled):active{color:var(--_toggle-pressed-icon-color)}.toggle-filled-tonal:not(:disabled)::before{background-color:var(--_unselected-container-color)}.selected{--md-ripple-hover-color: var(--_toggle-selected-hover-state-layer-color);--md-ripple-pressed-color: var(--_toggle-selected-pressed-state-layer-color)}.selected:not(:disabled){color:var(--_toggle-selected-icon-color)}.selected:not(:disabled):hover{color:var(--_toggle-selected-hover-icon-color)}.selected:not(:disabled):focus{color:var(--_toggle-selected-focus-icon-color)}.selected:not(:disabled):active{color:var(--_toggle-selected-pressed-icon-color)}.selected:not(:disabled)::before{background-color:var(--_selected-container-color)} -`;let Gy=class extends Lr{getRenderClasses(){return{...super.getRenderClasses(),"filled-tonal":!0,"toggle-filled-tonal":this.toggle}}};Gy.styles=[km,xle];Gy=O([ot("md-filled-tonal-icon-button")],Gy);const wle=He`:host{--_disabled-icon-color: var(--md-icon-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-icon-button-disabled-icon-opacity, 0.38);--_icon-size: var(--md-icon-button-icon-size, 24px);--_selected-focus-icon-color: var(--md-icon-button-selected-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-icon-color: var(--md-icon-button-selected-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-state-layer-color: var(--md-icon-button-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-state-layer-opacity: var(--md-icon-button-selected-hover-state-layer-opacity, 0.08);--_selected-icon-color: var(--md-icon-button-selected-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-icon-color: var(--md-icon-button-selected-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-state-layer-color: var(--md-icon-button-selected-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-state-layer-opacity: var(--md-icon-button-selected-pressed-state-layer-opacity, 0.12);--_state-layer-height: var(--md-icon-button-state-layer-height, 40px);--_state-layer-shape: var(--md-icon-button-state-layer-shape, var(--md-sys-shape-corner-full, 9999px));--_state-layer-width: var(--md-icon-button-state-layer-width, 40px);--_focus-icon-color: var(--md-icon-button-focus-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-icon-color: var(--md-icon-button-hover-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-icon-button-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-opacity: var(--md-icon-button-hover-state-layer-opacity, 0.08);--_icon-color: var(--md-icon-button-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-icon-color: var(--md-icon-button-pressed-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-color: var(--md-icon-button-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-opacity: var(--md-icon-button-pressed-state-layer-opacity, 0.12);--_container-shape-start-start: 0;--_container-shape-start-end: 0;--_container-shape-end-end: 0;--_container-shape-end-start: 0;--_container-height: 0;--_container-width: 0;height:var(--_state-layer-height);width:var(--_state-layer-width)}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_state-layer-height))/2) max(0px,(48px - var(--_state-layer-width))/2)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_state-layer-shape);--md-focus-ring-shape-start-end: var(--_state-layer-shape);--md-focus-ring-shape-end-end: var(--_state-layer-shape);--md-focus-ring-shape-end-start: var(--_state-layer-shape)}.standard{background-color:rgba(0,0,0,0);color:var(--_icon-color);--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)}.standard:hover{color:var(--_hover-icon-color)}.standard:focus{color:var(--_focus-icon-color)}.standard:active{color:var(--_pressed-icon-color)}.standard:disabled{color:var(--_disabled-icon-color)}md-ripple{border-radius:var(--_state-layer-shape)}.standard:disabled .icon{opacity:var(--_disabled-icon-opacity)}.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)}.selected:not(:disabled){color:var(--_selected-icon-color)}.selected:not(:disabled):hover{color:var(--_selected-hover-icon-color)}.selected:not(:disabled):focus{color:var(--_selected-focus-icon-color)}.selected:not(:disabled):active{color:var(--_selected-pressed-icon-color)} -`;let Qy=class extends Lr{getRenderClasses(){return{...super.getRenderClasses(),standard:!0}}};Qy.styles=[km,wle];Qy=O([ot("md-icon-button")],Qy);const Tle=He`:host{--_container-height: var(--md-outlined-icon-button-container-height, 40px);--_container-width: var(--md-outlined-icon-button-container-width, 40px);--_disabled-icon-color: var(--md-outlined-icon-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-outlined-icon-button-disabled-icon-opacity, 0.38);--_disabled-selected-container-color: var(--md-outlined-icon-button-disabled-selected-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-selected-container-opacity: var(--md-outlined-icon-button-disabled-selected-container-opacity, 0.12);--_hover-state-layer-opacity: var(--md-outlined-icon-button-hover-state-layer-opacity, 0.08);--_icon-size: var(--md-outlined-icon-button-icon-size, 24px);--_pressed-state-layer-opacity: var(--md-outlined-icon-button-pressed-state-layer-opacity, 0.12);--_selected-container-color: var(--md-outlined-icon-button-selected-container-color, var(--md-sys-color-inverse-surface, #322f35));--_selected-focus-icon-color: var(--md-outlined-icon-button-selected-focus-icon-color, var(--md-sys-color-inverse-on-surface, #f5eff7));--_selected-hover-icon-color: var(--md-outlined-icon-button-selected-hover-icon-color, var(--md-sys-color-inverse-on-surface, #f5eff7));--_selected-hover-state-layer-color: var(--md-outlined-icon-button-selected-hover-state-layer-color, var(--md-sys-color-inverse-on-surface, #f5eff7));--_selected-icon-color: var(--md-outlined-icon-button-selected-icon-color, var(--md-sys-color-inverse-on-surface, #f5eff7));--_selected-pressed-icon-color: var(--md-outlined-icon-button-selected-pressed-icon-color, var(--md-sys-color-inverse-on-surface, #f5eff7));--_selected-pressed-state-layer-color: var(--md-outlined-icon-button-selected-pressed-state-layer-color, var(--md-sys-color-inverse-on-surface, #f5eff7));--_disabled-outline-color: var(--md-outlined-icon-button-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-icon-button-disabled-outline-opacity, 0.12);--_focus-icon-color: var(--md-outlined-icon-button-focus-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-icon-color: var(--md-outlined-icon-button-hover-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-outlined-icon-button-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_icon-color: var(--md-outlined-icon-button-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_outline-color: var(--md-outlined-icon-button-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-outlined-icon-button-outline-width, 1px);--_pressed-icon-color: var(--md-outlined-icon-button-pressed-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_pressed-state-layer-color: var(--md-outlined-icon-button-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_container-shape-start-start: var(--md-outlined-icon-button-container-shape-start-start, var(--md-outlined-icon-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-outlined-icon-button-container-shape-start-end, var(--md-outlined-icon-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-outlined-icon-button-container-shape-end-end, var(--md-outlined-icon-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-outlined-icon-button-container-shape-end-start, var(--md-outlined-icon-button-container-shape, var(--md-sys-shape-corner-full, 9999px)))}.outlined{background-color:rgba(0,0,0,0);color:var(--_icon-color);--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)}.outlined::before{border-color:var(--_outline-color);border-width:var(--_outline-width)}.outlined:hover{color:var(--_hover-icon-color)}.outlined:focus{color:var(--_focus-icon-color)}.outlined:active{color:var(--_pressed-icon-color)}.outlined:disabled{color:var(--_disabled-icon-color)}.outlined:disabled::before{border-color:var(--_disabled-outline-color);opacity:var(--_disabled-outline-opacity)}.outlined:disabled .icon{opacity:var(--_disabled-icon-opacity)}.outlined::before{block-size:100%;border-style:solid;border-radius:inherit;box-sizing:border-box;content:"";inline-size:100%;inset:0;pointer-events:none;position:absolute;z-index:-1}.outlined.selected::before{border-width:0}.selected{--md-ripple-hover-color: var(--_selected-hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_selected-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.selected:not(:disabled){color:var(--_selected-icon-color)}.selected:not(:disabled):hover{color:var(--_selected-hover-icon-color)}.selected:not(:disabled):focus{color:var(--_selected-focus-icon-color)}.selected:not(:disabled):active{color:var(--_selected-pressed-icon-color)}.selected:not(:disabled)::before{background-color:var(--_selected-container-color)}.selected:disabled::before{background-color:var(--_disabled-selected-container-color);opacity:var(--_disabled-selected-container-opacity)}@media(forced-colors: active){:host([disabled]){--_disabled-outline-opacity: 1}.selected::before{border-color:CanvasText;border-width:var(--_outline-width)}.selected:disabled::before{border-color:GrayText;opacity:1}} -`;let Ky=class extends Lr{getRenderClasses(){return{...super.getRenderClasses(),outlined:!0}}};Ky.styles=[km,Tle];Ky=O([ot("md-outlined-icon-button")],Ky);function JI(t,e=Ki){const r=Cm(t,e);return r&&(r.tabIndex=0,r.focus()),r}function ZI(t,e=Ki){const r=e$(t,e);return r&&(r.tabIndex=0,r.focus()),r}function Ele(t,e=Ki){const r=Bl(t,e);return r&&(r.item.tabIndex=-1),r}function Bl(t,e=Ki){for(let r=0;r=0;r--){const n=t[r];if(e(n))return n}return null}function kle(t,e,r=Ki,n=!0){for(let i=1;ie&&!n)return null;const a=t[o];if(r(a))return a}return t[e]?t[e]:null}function H5(t,e,r=Ki,n=!0){if(e){const i=kle(t,e.index,r,n);return i&&(i.tabIndex=0,i.focus()),i}else return JI(t,r)}function W5(t,e,r=Ki,n=!0){if(e){const i=Cle(t,e.index,r,n);return i&&(i.tabIndex=0,i.focus()),i}else return ZI(t,r)}function dh(){return new Event("deactivate-items",{bubbles:!0,composed:!0})}function t$(){return new Event("request-activation",{bubbles:!0,composed:!0})}function Ki(t){return!t.disabled}const qr={ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",Home:"Home",End:"End"};class r${constructor(e){this.handleKeydown=f=>{const g=f.key;if(f.defaultPrevented||!this.isNavigableKey(g))return;const y=this.items;if(!y.length)return;const x=Bl(y,this.isActivatable);f.preventDefault();const m=this.isRtl(),p=m?qr.ArrowRight:qr.ArrowLeft,_=m?qr.ArrowLeft:qr.ArrowRight;let v=null;switch(g){case qr.ArrowDown:case _:v=H5(y,x,this.isActivatable,this.wrapNavigation());break;case qr.ArrowUp:case p:v=W5(y,x,this.isActivatable,this.wrapNavigation());break;case qr.Home:v=JI(y,this.isActivatable);break;case qr.End:v=ZI(y,this.isActivatable);break}v&&x&&x.item!==v&&(x.item.tabIndex=-1)},this.onDeactivateItems=()=>{const f=this.items;for(const g of f)this.deactivateItem(g)},this.onRequestActivation=f=>{this.onDeactivateItems();const g=f.target;this.activateItem(g),g.focus()},this.onSlotchange=()=>{const f=this.items;let g=!1;for(const x of f){if(!x.disabled&&x.tabIndex>-1&&!g){g=!0,x.tabIndex=0;continue}x.tabIndex=-1}if(g)return;const y=Cm(f,this.isActivatable);y&&(y.tabIndex=0)};const{isItem:r,getPossibleItems:n,isRtl:i,deactivateItem:o,activateItem:a,isNavigableKey:l,isActivatable:d,wrapNavigation:u}=e;this.isItem=r,this.getPossibleItems=n,this.isRtl=i,this.deactivateItem=o,this.activateItem=a,this.isNavigableKey=l,this.isActivatable=d,this.wrapNavigation=u??(()=>!0)}get items(){const e=this.getPossibleItems(),r=[];for(const n of e){if(this.isItem(n)){r.push(n);continue}const o=n.item;o&&this.isItem(o)&&r.push(o)}return r}activateNextItem(){const e=this.items,r=Bl(e,this.isActivatable);return r&&(r.item.tabIndex=-1),H5(e,r,this.isActivatable,this.wrapNavigation())}activatePreviousItem(){const e=this.items,r=Bl(e,this.isActivatable);return r&&(r.item.tabIndex=-1),W5(e,r,this.isActivatable,this.wrapNavigation())}}const Ale=new Set(Object.values(qr));class n$ extends dt{get items(){return this.listController.items}constructor(){super(),this.listController=new r$({isItem:e=>e.hasAttribute("md-list-item"),getPossibleItems:()=>this.slotItems,isRtl:()=>getComputedStyle(this).direction==="rtl",deactivateItem:e=>{e.tabIndex=-1},activateItem:e=>{e.tabIndex=0},isNavigableKey:e=>Ale.has(e),isActivatable:e=>!e.disabled&&e.type!=="text"}),this.internals=this.attachInternals(),this.internals.role="list",this.addEventListener("keydown",this.listController.handleKeydown)}render(){return ve` + for=${this.href?"link":"button"}>`}renderRipple(){return me``}connectedCallback(){this.flipIcon=t4(this,this.flipIconInRtl),super.connectedCallback()}async handleClick(e){await 0,!(!this.toggle||this.disabled||e.defaultPrevented)&&(this.selected=!this.selected,this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0})))}}en(qr),JI(qr);qr.formAssociated=!0;qr.shadowRootOptions={mode:"open",delegatesFocus:!0};O([H({type:Boolean,reflect:!0})],qr.prototype,"disabled",void 0);O([H({type:Boolean,attribute:"flip-icon-in-rtl"})],qr.prototype,"flipIconInRtl",void 0);O([H()],qr.prototype,"href",void 0);O([H()],qr.prototype,"target",void 0);O([H({attribute:"aria-label-selected"})],qr.prototype,"ariaLabelSelected",void 0);O([H({type:Boolean})],qr.prototype,"toggle",void 0);O([H({type:Boolean,reflect:!0})],qr.prototype,"selected",void 0);O([H()],qr.prototype,"type",void 0);O([H({reflect:!0})],qr.prototype,"value",void 0);O([Lt()],qr.prototype,"flipIcon",void 0);const Lm=He`:host{display:inline-flex;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0);height:var(--_container-height);width:var(--_container-width);justify-content:center}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_container-height))/2) max(0px,(48px - var(--_container-width))/2)}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)}:host([disabled]){pointer-events:none}.icon-button{place-items:center;background:none;border:none;box-sizing:border-box;cursor:pointer;display:flex;place-content:center;outline:none;padding:0;position:relative;text-decoration:none;user-select:none;z-index:0;flex:1;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)}.icon ::slotted(*){font-size:var(--_icon-size);height:var(--_icon-size);width:var(--_icon-size);font-weight:inherit}md-ripple{z-index:-1;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)}.flip-icon .icon{transform:scaleX(-1)}.icon{display:inline-flex}.link{height:100%;outline:none;position:absolute;width:100%}.touch{position:absolute;height:max(48px,100%);width:max(48px,100%)}:host([touch-target=none]) .touch{display:none}@media(forced-colors: active){:host([disabled]){--_disabled-icon-opacity: 1}} +`;let ab=class extends qr{getRenderClasses(){return{...super.getRenderClasses(),filled:!0,"toggle-filled":this.toggle}}};ab.styles=[Lm,Lle];ab=O([st("md-filled-icon-button")],ab);const zle=He`:host{--_container-color: var(--md-filled-tonal-icon-button-container-color, var(--md-sys-color-secondary-container, #e8def8));--_container-height: var(--md-filled-tonal-icon-button-container-height, 40px);--_container-width: var(--md-filled-tonal-icon-button-container-width, 40px);--_disabled-container-color: var(--md-filled-tonal-icon-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-opacity: var(--md-filled-tonal-icon-button-disabled-container-opacity, 0.12);--_disabled-icon-color: var(--md-filled-tonal-icon-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-filled-tonal-icon-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-filled-tonal-icon-button-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-icon-color: var(--md-filled-tonal-icon-button-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-state-layer-color: var(--md-filled-tonal-icon-button-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-state-layer-opacity: var(--md-filled-tonal-icon-button-hover-state-layer-opacity, 0.08);--_icon-color: var(--md-filled-tonal-icon-button-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_icon-size: var(--md-filled-tonal-icon-button-icon-size, 24px);--_pressed-icon-color: var(--md-filled-tonal-icon-button-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-color: var(--md-filled-tonal-icon-button-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-opacity: var(--md-filled-tonal-icon-button-pressed-state-layer-opacity, 0.12);--_selected-container-color: var(--md-filled-tonal-icon-button-selected-container-color, var(--md-sys-color-secondary-container, #e8def8));--_toggle-selected-focus-icon-color: var(--md-filled-tonal-icon-button-toggle-selected-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_toggle-selected-hover-icon-color: var(--md-filled-tonal-icon-button-toggle-selected-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_toggle-selected-hover-state-layer-color: var(--md-filled-tonal-icon-button-toggle-selected-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_toggle-selected-icon-color: var(--md-filled-tonal-icon-button-toggle-selected-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_toggle-selected-pressed-icon-color: var(--md-filled-tonal-icon-button-toggle-selected-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_toggle-selected-pressed-state-layer-color: var(--md-filled-tonal-icon-button-toggle-selected-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_unselected-container-color: var(--md-filled-tonal-icon-button-unselected-container-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_toggle-focus-icon-color: var(--md-filled-tonal-icon-button-toggle-focus-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_toggle-hover-icon-color: var(--md-filled-tonal-icon-button-toggle-hover-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_toggle-hover-state-layer-color: var(--md-filled-tonal-icon-button-toggle-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_toggle-icon-color: var(--md-filled-tonal-icon-button-toggle-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_toggle-pressed-icon-color: var(--md-filled-tonal-icon-button-toggle-pressed-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_toggle-pressed-state-layer-color: var(--md-filled-tonal-icon-button-toggle-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_container-shape-start-start: var(--md-filled-tonal-icon-button-container-shape-start-start, var(--md-filled-tonal-icon-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-filled-tonal-icon-button-container-shape-start-end, var(--md-filled-tonal-icon-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-filled-tonal-icon-button-container-shape-end-end, var(--md-filled-tonal-icon-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-filled-tonal-icon-button-container-shape-end-start, var(--md-filled-tonal-icon-button-container-shape, var(--md-sys-shape-corner-full, 9999px)))}.icon-button{color:var(--_icon-color);--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)}.icon-button:hover{color:var(--_hover-icon-color)}.icon-button:focus{color:var(--_focus-icon-color)}.icon-button:active{color:var(--_pressed-icon-color)}.icon-button:disabled{color:var(--_disabled-icon-color)}.icon-button::before{background-color:var(--_container-color);border-radius:inherit;content:"";inset:0;position:absolute;z-index:-1}.icon-button:disabled::before{background-color:var(--_disabled-container-color);opacity:var(--_disabled-container-opacity)}.icon-button:disabled .icon{opacity:var(--_disabled-icon-opacity)}.toggle-filled-tonal{--md-ripple-hover-color: var(--_toggle-hover-state-layer-color);--md-ripple-pressed-color: var(--_toggle-pressed-state-layer-color)}.toggle-filled-tonal:not(:disabled){color:var(--_toggle-icon-color)}.toggle-filled-tonal:not(:disabled):hover{color:var(--_toggle-hover-icon-color)}.toggle-filled-tonal:not(:disabled):focus{color:var(--_toggle-focus-icon-color)}.toggle-filled-tonal:not(:disabled):active{color:var(--_toggle-pressed-icon-color)}.toggle-filled-tonal:not(:disabled)::before{background-color:var(--_unselected-container-color)}.selected{--md-ripple-hover-color: var(--_toggle-selected-hover-state-layer-color);--md-ripple-pressed-color: var(--_toggle-selected-pressed-state-layer-color)}.selected:not(:disabled){color:var(--_toggle-selected-icon-color)}.selected:not(:disabled):hover{color:var(--_toggle-selected-hover-icon-color)}.selected:not(:disabled):focus{color:var(--_toggle-selected-focus-icon-color)}.selected:not(:disabled):active{color:var(--_toggle-selected-pressed-icon-color)}.selected:not(:disabled)::before{background-color:var(--_selected-container-color)} +`;let sb=class extends qr{getRenderClasses(){return{...super.getRenderClasses(),"filled-tonal":!0,"toggle-filled-tonal":this.toggle}}};sb.styles=[Lm,zle];sb=O([st("md-filled-tonal-icon-button")],sb);const qle=He`:host{--_disabled-icon-color: var(--md-icon-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-icon-button-disabled-icon-opacity, 0.38);--_icon-size: var(--md-icon-button-icon-size, 24px);--_selected-focus-icon-color: var(--md-icon-button-selected-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-icon-color: var(--md-icon-button-selected-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-state-layer-color: var(--md-icon-button-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-state-layer-opacity: var(--md-icon-button-selected-hover-state-layer-opacity, 0.08);--_selected-icon-color: var(--md-icon-button-selected-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-icon-color: var(--md-icon-button-selected-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-state-layer-color: var(--md-icon-button-selected-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-state-layer-opacity: var(--md-icon-button-selected-pressed-state-layer-opacity, 0.12);--_state-layer-height: var(--md-icon-button-state-layer-height, 40px);--_state-layer-shape: var(--md-icon-button-state-layer-shape, var(--md-sys-shape-corner-full, 9999px));--_state-layer-width: var(--md-icon-button-state-layer-width, 40px);--_focus-icon-color: var(--md-icon-button-focus-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-icon-color: var(--md-icon-button-hover-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-icon-button-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-opacity: var(--md-icon-button-hover-state-layer-opacity, 0.08);--_icon-color: var(--md-icon-button-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-icon-color: var(--md-icon-button-pressed-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-color: var(--md-icon-button-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-opacity: var(--md-icon-button-pressed-state-layer-opacity, 0.12);--_container-shape-start-start: 0;--_container-shape-start-end: 0;--_container-shape-end-end: 0;--_container-shape-end-start: 0;--_container-height: 0;--_container-width: 0;height:var(--_state-layer-height);width:var(--_state-layer-width)}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_state-layer-height))/2) max(0px,(48px - var(--_state-layer-width))/2)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_state-layer-shape);--md-focus-ring-shape-start-end: var(--_state-layer-shape);--md-focus-ring-shape-end-end: var(--_state-layer-shape);--md-focus-ring-shape-end-start: var(--_state-layer-shape)}.standard{background-color:rgba(0,0,0,0);color:var(--_icon-color);--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)}.standard:hover{color:var(--_hover-icon-color)}.standard:focus{color:var(--_focus-icon-color)}.standard:active{color:var(--_pressed-icon-color)}.standard:disabled{color:var(--_disabled-icon-color)}md-ripple{border-radius:var(--_state-layer-shape)}.standard:disabled .icon{opacity:var(--_disabled-icon-opacity)}.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)}.selected:not(:disabled){color:var(--_selected-icon-color)}.selected:not(:disabled):hover{color:var(--_selected-hover-icon-color)}.selected:not(:disabled):focus{color:var(--_selected-focus-icon-color)}.selected:not(:disabled):active{color:var(--_selected-pressed-icon-color)} +`;let lb=class extends qr{getRenderClasses(){return{...super.getRenderClasses(),standard:!0}}};lb.styles=[Lm,qle];lb=O([st("md-icon-button")],lb);const Ble=He`:host{--_container-height: var(--md-outlined-icon-button-container-height, 40px);--_container-width: var(--md-outlined-icon-button-container-width, 40px);--_disabled-icon-color: var(--md-outlined-icon-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-outlined-icon-button-disabled-icon-opacity, 0.38);--_disabled-selected-container-color: var(--md-outlined-icon-button-disabled-selected-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-selected-container-opacity: var(--md-outlined-icon-button-disabled-selected-container-opacity, 0.12);--_hover-state-layer-opacity: var(--md-outlined-icon-button-hover-state-layer-opacity, 0.08);--_icon-size: var(--md-outlined-icon-button-icon-size, 24px);--_pressed-state-layer-opacity: var(--md-outlined-icon-button-pressed-state-layer-opacity, 0.12);--_selected-container-color: var(--md-outlined-icon-button-selected-container-color, var(--md-sys-color-inverse-surface, #322f35));--_selected-focus-icon-color: var(--md-outlined-icon-button-selected-focus-icon-color, var(--md-sys-color-inverse-on-surface, #f5eff7));--_selected-hover-icon-color: var(--md-outlined-icon-button-selected-hover-icon-color, var(--md-sys-color-inverse-on-surface, #f5eff7));--_selected-hover-state-layer-color: var(--md-outlined-icon-button-selected-hover-state-layer-color, var(--md-sys-color-inverse-on-surface, #f5eff7));--_selected-icon-color: var(--md-outlined-icon-button-selected-icon-color, var(--md-sys-color-inverse-on-surface, #f5eff7));--_selected-pressed-icon-color: var(--md-outlined-icon-button-selected-pressed-icon-color, var(--md-sys-color-inverse-on-surface, #f5eff7));--_selected-pressed-state-layer-color: var(--md-outlined-icon-button-selected-pressed-state-layer-color, var(--md-sys-color-inverse-on-surface, #f5eff7));--_disabled-outline-color: var(--md-outlined-icon-button-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-icon-button-disabled-outline-opacity, 0.12);--_focus-icon-color: var(--md-outlined-icon-button-focus-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-icon-color: var(--md-outlined-icon-button-hover-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-outlined-icon-button-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_icon-color: var(--md-outlined-icon-button-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_outline-color: var(--md-outlined-icon-button-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-outlined-icon-button-outline-width, 1px);--_pressed-icon-color: var(--md-outlined-icon-button-pressed-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_pressed-state-layer-color: var(--md-outlined-icon-button-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_container-shape-start-start: var(--md-outlined-icon-button-container-shape-start-start, var(--md-outlined-icon-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-outlined-icon-button-container-shape-start-end, var(--md-outlined-icon-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-outlined-icon-button-container-shape-end-end, var(--md-outlined-icon-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-outlined-icon-button-container-shape-end-start, var(--md-outlined-icon-button-container-shape, var(--md-sys-shape-corner-full, 9999px)))}.outlined{background-color:rgba(0,0,0,0);color:var(--_icon-color);--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)}.outlined::before{border-color:var(--_outline-color);border-width:var(--_outline-width)}.outlined:hover{color:var(--_hover-icon-color)}.outlined:focus{color:var(--_focus-icon-color)}.outlined:active{color:var(--_pressed-icon-color)}.outlined:disabled{color:var(--_disabled-icon-color)}.outlined:disabled::before{border-color:var(--_disabled-outline-color);opacity:var(--_disabled-outline-opacity)}.outlined:disabled .icon{opacity:var(--_disabled-icon-opacity)}.outlined::before{block-size:100%;border-style:solid;border-radius:inherit;box-sizing:border-box;content:"";inline-size:100%;inset:0;pointer-events:none;position:absolute;z-index:-1}.outlined.selected::before{border-width:0}.selected{--md-ripple-hover-color: var(--_selected-hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_selected-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.selected:not(:disabled){color:var(--_selected-icon-color)}.selected:not(:disabled):hover{color:var(--_selected-hover-icon-color)}.selected:not(:disabled):focus{color:var(--_selected-focus-icon-color)}.selected:not(:disabled):active{color:var(--_selected-pressed-icon-color)}.selected:not(:disabled)::before{background-color:var(--_selected-container-color)}.selected:disabled::before{background-color:var(--_disabled-selected-container-color);opacity:var(--_disabled-selected-container-opacity)}@media(forced-colors: active){:host([disabled]){--_disabled-outline-opacity: 1}.selected::before{border-color:CanvasText;border-width:var(--_outline-width)}.selected:disabled::before{border-color:GrayText;opacity:1}} +`;let cb=class extends qr{getRenderClasses(){return{...super.getRenderClasses(),outlined:!0}}};cb.styles=[Lm,Ble];cb=O([st("md-outlined-icon-button")],cb);function c$(t,e=Xi){const r=Mm(t,e);return r&&(r.tabIndex=0,r.focus()),r}function d$(t,e=Xi){const r=u$(t,e);return r&&(r.tabIndex=0,r.focus()),r}function Vle(t,e=Xi){const r=Kl(t,e);return r&&(r.item.tabIndex=-1),r}function Kl(t,e=Xi){for(let r=0;r=0;r--){const n=t[r];if(e(n))return n}return null}function Ule(t,e,r=Xi,n=!0){for(let i=1;ie&&!n)return null;const a=t[o];if(r(a))return a}return t[e]?t[e]:null}function r4(t,e,r=Xi,n=!0){if(e){const i=Ule(t,e.index,r,n);return i&&(i.tabIndex=0,i.focus()),i}else return c$(t,r)}function n4(t,e,r=Xi,n=!0){if(e){const i=jle(t,e.index,r,n);return i&&(i.tabIndex=0,i.focus()),i}else return d$(t,r)}function xh(){return new Event("deactivate-items",{bubbles:!0,composed:!0})}function f$(){return new Event("request-activation",{bubbles:!0,composed:!0})}function Xi(t){return!t.disabled}const Wr={ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",Home:"Home",End:"End"};class h${constructor(e){this.handleKeydown=f=>{const g=f.key;if(f.defaultPrevented||!this.isNavigableKey(g))return;const y=this.items;if(!y.length)return;const x=Kl(y,this.isActivatable);f.preventDefault();const m=this.isRtl(),p=m?Wr.ArrowRight:Wr.ArrowLeft,_=m?Wr.ArrowLeft:Wr.ArrowRight;let v=null;switch(g){case Wr.ArrowDown:case _:v=r4(y,x,this.isActivatable,this.wrapNavigation());break;case Wr.ArrowUp:case p:v=n4(y,x,this.isActivatable,this.wrapNavigation());break;case Wr.Home:v=c$(y,this.isActivatable);break;case Wr.End:v=d$(y,this.isActivatable);break}v&&x&&x.item!==v&&(x.item.tabIndex=-1)},this.onDeactivateItems=()=>{const f=this.items;for(const g of f)this.deactivateItem(g)},this.onRequestActivation=f=>{this.onDeactivateItems();const g=f.target;this.activateItem(g),g.focus()},this.onSlotchange=()=>{const f=this.items;let g=!1;for(const x of f){if(!x.disabled&&x.tabIndex>-1&&!g){g=!0,x.tabIndex=0;continue}x.tabIndex=-1}if(g)return;const y=Mm(f,this.isActivatable);y&&(y.tabIndex=0)};const{isItem:r,getPossibleItems:n,isRtl:i,deactivateItem:o,activateItem:a,isNavigableKey:l,isActivatable:d,wrapNavigation:u}=e;this.isItem=r,this.getPossibleItems=n,this.isRtl=i,this.deactivateItem=o,this.activateItem=a,this.isNavigableKey=l,this.isActivatable=d,this.wrapNavigation=u??(()=>!0)}get items(){const e=this.getPossibleItems(),r=[];for(const n of e){if(this.isItem(n)){r.push(n);continue}const o=n.item;o&&this.isItem(o)&&r.push(o)}return r}activateNextItem(){const e=this.items,r=Kl(e,this.isActivatable);return r&&(r.item.tabIndex=-1),r4(e,r,this.isActivatable,this.wrapNavigation())}activatePreviousItem(){const e=this.items,r=Kl(e,this.isActivatable);return r&&(r.item.tabIndex=-1),n4(e,r,this.isActivatable,this.wrapNavigation())}}const Hle=new Set(Object.values(Wr));class p$ extends ft{get items(){return this.listController.items}constructor(){super(),this.listController=new h$({isItem:e=>e.hasAttribute("md-list-item"),getPossibleItems:()=>this.slotItems,isRtl:()=>getComputedStyle(this).direction==="rtl",deactivateItem:e=>{e.tabIndex=-1},activateItem:e=>{e.tabIndex=0},isNavigableKey:e=>Hle.has(e),isActivatable:e=>!e.disabled&&e.type!=="text"}),this.internals=this.attachInternals(),this.internals.role="list",this.addEventListener("keydown",this.listController.handleKeydown)}render(){return me` - `}activateNextItem(){return this.listController.activateNextItem()}activatePreviousItem(){return this.listController.activatePreviousItem()}}O([Ar({flatten:!0})],n$.prototype,"slotItems",void 0);const Sle=He`:host{background:var(--md-list-container-color, var(--md-sys-color-surface, #fef7ff));color:unset;display:flex;flex-direction:column;outline:none;padding:8px 0;position:relative} -`;let Yy=class extends n${};Yy.styles=[Sle];Yy=O([ot("md-list")],Yy);class S1 extends dt{constructor(){super(...arguments),this.multiline=!1}render(){return ve` + `}activateNextItem(){return this.listController.activateNextItem()}activatePreviousItem(){return this.listController.activatePreviousItem()}}O([Or({flatten:!0})],p$.prototype,"slotItems",void 0);const Wle=He`:host{background:var(--md-list-container-color, var(--md-sys-color-surface, #fef7ff));color:unset;display:flex;flex-direction:column;outline:none;padding:8px 0;position:relative} +`;let db=class extends p${};db.styles=[Wle];db=O([st("md-list")],db);class U1 extends ft{constructor(){super(...arguments),this.multiline=!1}render(){return me`
@@ -1497,8 +1506,8 @@ function print() { __p += __j.call(arguments, '') }
- `}handleTextSlotChange(){let e=!1,r=0;for(const n of this.textSlots)if(Ile(n)&&(r+=1),r>1){e=!0;break}this.multiline=e}}O([H({type:Boolean,reflect:!0})],S1.prototype,"multiline",void 0);O([Cie(".text slot")],S1.prototype,"textSlots",void 0);function Ile(t){var e;for(const r of t.assignedNodes({flatten:!0})){const n=r.nodeType===Node.ELEMENT_NODE,i=r.nodeType===Node.TEXT_NODE&&((e=r.textContent)==null?void 0:e.match(/\S/));if(n||i)return!0}return!1}const $le=He`:host{color:var(--md-sys-color-on-surface, #1d1b20);font-family:var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-body-large-size, 1rem);font-weight:var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400));line-height:var(--md-sys-typescale-body-large-line-height, 1.5rem);align-items:center;box-sizing:border-box;display:flex;gap:16px;min-height:56px;overflow:hidden;padding:12px 16px;position:relative;text-overflow:ellipsis}:host([multiline]){min-height:72px}[name=overline]{color:var(--md-sys-color-on-surface-variant, #49454f);font-family:var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-label-small-size, 0.6875rem);font-weight:var(--md-sys-typescale-label-small-weight, var(--md-ref-typeface-weight-medium, 500));line-height:var(--md-sys-typescale-label-small-line-height, 1rem)}[name=supporting-text]{color:var(--md-sys-color-on-surface-variant, #49454f);font-family:var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-body-medium-size, 0.875rem);font-weight:var(--md-sys-typescale-body-medium-weight, var(--md-ref-typeface-weight-regular, 400));line-height:var(--md-sys-typescale-body-medium-line-height, 1.25rem)}[name=trailing-supporting-text]{color:var(--md-sys-color-on-surface-variant, #49454f);font-family:var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-label-small-size, 0.6875rem);font-weight:var(--md-sys-typescale-label-small-weight, var(--md-ref-typeface-weight-medium, 500));line-height:var(--md-sys-typescale-label-small-line-height, 1rem)}[name=container]::slotted(*){inset:0;position:absolute}.default-slot{display:inline}.default-slot,.text ::slotted(*){overflow:hidden;text-overflow:ellipsis}.text{display:flex;flex:1;flex-direction:column;overflow:hidden} -`;let Xy=class extends S1{};Xy.styles=[$le];Xy=O([ot("md-item")],Xy);class Do extends dt{constructor(){super(...arguments),this.disabled=!1,this.type="text",this.isListItem=!0,this.href="",this.target=""}get isDisabled(){return this.disabled&&this.type!=="link"}willUpdate(e){this.href&&(this.type="link"),super.willUpdate(e)}render(){return this.renderListItem(ve` + `}handleTextSlotChange(){let e=!1,r=0;for(const n of this.textSlots)if(Gle(n)&&(r+=1),r>1){e=!0;break}this.multiline=e}}O([H({type:Boolean,reflect:!0})],U1.prototype,"multiline",void 0);O([jie(".text slot")],U1.prototype,"textSlots",void 0);function Gle(t){var e;for(const r of t.assignedNodes({flatten:!0})){const n=r.nodeType===Node.ELEMENT_NODE,i=r.nodeType===Node.TEXT_NODE&&((e=r.textContent)==null?void 0:e.match(/\S/));if(n||i)return!0}return!1}const Qle=He`:host{color:var(--md-sys-color-on-surface, #1d1b20);font-family:var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-body-large-size, 1rem);font-weight:var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400));line-height:var(--md-sys-typescale-body-large-line-height, 1.5rem);align-items:center;box-sizing:border-box;display:flex;gap:16px;min-height:56px;overflow:hidden;padding:12px 16px;position:relative;text-overflow:ellipsis}:host([multiline]){min-height:72px}[name=overline]{color:var(--md-sys-color-on-surface-variant, #49454f);font-family:var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-label-small-size, 0.6875rem);font-weight:var(--md-sys-typescale-label-small-weight, var(--md-ref-typeface-weight-medium, 500));line-height:var(--md-sys-typescale-label-small-line-height, 1rem)}[name=supporting-text]{color:var(--md-sys-color-on-surface-variant, #49454f);font-family:var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-body-medium-size, 0.875rem);font-weight:var(--md-sys-typescale-body-medium-weight, var(--md-ref-typeface-weight-regular, 400));line-height:var(--md-sys-typescale-body-medium-line-height, 1.25rem)}[name=trailing-supporting-text]{color:var(--md-sys-color-on-surface-variant, #49454f);font-family:var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-label-small-size, 0.6875rem);font-weight:var(--md-sys-typescale-label-small-weight, var(--md-ref-typeface-weight-medium, 500));line-height:var(--md-sys-typescale-label-small-line-height, 1rem)}[name=container]::slotted(*){inset:0;position:absolute}.default-slot{display:inline}.default-slot,.text ::slotted(*){overflow:hidden;text-overflow:ellipsis}.text{display:flex;flex:1;flex-direction:column;overflow:hidden} +`;let ub=class extends U1{};ub.styles=[Qle];ub=O([st("md-item")],ub);class zo extends ft{constructor(){super(...arguments),this.disabled=!1,this.type="text",this.isListItem=!0,this.href="",this.target=""}get isDisabled(){return this.disabled&&this.type!=="link"}willUpdate(e){this.href&&(this.type="link"),super.willUpdate(e)}render(){return this.renderListItem(me`
${this.renderRipple()} ${this.renderFocusRing()} @@ -1507,29 +1516,29 @@ function print() { __p += __j.call(arguments, '') } ${this.renderBody()} - `)}renderListItem(e){const r=this.type==="link";let n;switch(this.type){case"link":n=bn`a`;break;case"button":n=bn`button`;break;default:case"text":n=bn`li`;break}const i=this.type!=="text",o=r&&this.target?this.target:me;return Pu` + `)}renderListItem(e){const r=this.type==="link";let n;switch(this.type){case"link":n=wn`a`;break;case"button":n=wn`button`;break;default:case"text":n=wn`li`;break}const i=this.type!=="text",o=r&&this.target?this.target:pe;return ju` <${n} id="item" tabindex="${this.isDisabled||!i?-1:0}" ?disabled=${this.isDisabled} role="listitem" - aria-selected=${this.ariaSelected||me} - aria-checked=${this.ariaChecked||me} - aria-expanded=${this.ariaExpanded||me} - aria-haspopup=${this.ariaHasPopup||me} - class="list-item ${Yt(this.getRenderClasses())}" - href=${this.href||me} + aria-selected=${this.ariaSelected||pe} + aria-checked=${this.ariaChecked||pe} + aria-expanded=${this.ariaExpanded||pe} + aria-haspopup=${this.ariaHasPopup||pe} + class="list-item ${Zt(this.getRenderClasses())}" + href=${this.href||pe} target=${o} @focus=${this.onFocus} >${e} - `}renderRipple(){return this.type==="text"?me:ve` `}renderFocusRing(){return this.type==="text"?me:ve` `}renderFocusRing(){return this.type==="text"?pe:me` `}onFocusRingVisibilityChanged(e){}getRenderClasses(){return{disabled:this.isDisabled}}renderBody(){return ve` + inward>`}onFocusRingVisibilityChanged(e){}getRenderClasses(){return{disabled:this.isDisabled}}renderBody(){return me` @@ -1537,18 +1546,18 @@ function print() { __p += __j.call(arguments, '') } - `}onFocus(){this.tabIndex===-1&&this.dispatchEvent(t$())}focus(){var e;(e=this.listItemRoot)==null||e.focus()}}Xr(Do);Do.shadowRootOptions={...dt.shadowRootOptions,delegatesFocus:!0};O([H({type:Boolean,reflect:!0})],Do.prototype,"disabled",void 0);O([H({reflect:!0})],Do.prototype,"type",void 0);O([H({type:Boolean,attribute:"md-list-item",reflect:!0})],Do.prototype,"isListItem",void 0);O([H()],Do.prototype,"href",void 0);O([H()],Do.prototype,"target",void 0);O([gt(".list-item")],Do.prototype,"listItemRoot",void 0);const Ole=He`:host{display:flex;-webkit-tap-highlight-color:rgba(0,0,0,0);--md-ripple-hover-color: var(--md-list-item-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity: var(--md-list-item-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-list-item-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity: var(--md-list-item-pressed-state-layer-opacity, 0.12)}:host(:is([type=button]:not([disabled]),[type=link])){cursor:pointer}md-focus-ring{z-index:1;--md-focus-ring-shape: 8px}a,button,li{background:none;border:none;cursor:inherit;padding:0;margin:0;text-align:unset;text-decoration:none}.list-item{border-radius:inherit;display:flex;flex:1;max-width:inherit;min-width:inherit;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%}.list-item.interactive{cursor:pointer}.list-item.disabled{opacity:var(--md-list-item-disabled-opacity, 0.3);pointer-events:none}[slot=container]{pointer-events:none}md-ripple{border-radius:inherit}md-item{border-radius:inherit;flex:1;height:100%;color:var(--md-list-item-label-text-color, var(--md-sys-color-on-surface, #1d1b20));font-family:var(--md-list-item-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));line-height:var(--md-list-item-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));font-weight:var(--md-list-item-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));min-height:var(--md-list-item-one-line-container-height, 56px);padding-top:var(--md-list-item-top-space, 12px);padding-bottom:var(--md-list-item-bottom-space, 12px);padding-inline-start:var(--md-list-item-leading-space, 16px);padding-inline-end:var(--md-list-item-trailing-space, 16px)}md-item[multiline]{min-height:var(--md-list-item-two-line-container-height, 72px)}[slot=supporting-text]{color:var(--md-list-item-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-list-item-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-supporting-text-size, var(--md-sys-typescale-body-medium-size, 0.875rem));line-height:var(--md-list-item-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));font-weight:var(--md-list-item-supporting-text-weight, var(--md-sys-typescale-body-medium-weight, var(--md-ref-typeface-weight-regular, 400)))}[slot=trailing-supporting-text]{color:var(--md-list-item-trailing-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-list-item-trailing-supporting-text-font, var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-trailing-supporting-text-size, var(--md-sys-typescale-label-small-size, 0.6875rem));line-height:var(--md-list-item-trailing-supporting-text-line-height, var(--md-sys-typescale-label-small-line-height, 1rem));font-weight:var(--md-list-item-trailing-supporting-text-weight, var(--md-sys-typescale-label-small-weight, var(--md-ref-typeface-weight-medium, 500)))}:is([slot=start],[slot=end])::slotted(*){fill:currentColor}[slot=start]{color:var(--md-list-item-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f))}[slot=end]{color:var(--md-list-item-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f))}@media(forced-colors: active){.disabled slot{color:GrayText}.list-item.disabled{color:GrayText;opacity:1}} -`;let Jy=class extends Do{};Jy.styles=[Ole];Jy=O([ot("md-list-item")],Jy);const i$="important",Ple=" !"+i$,Rs=b1(class extends x1{constructor(t){var e;if(super(t),t.type!==ua.ATTRIBUTE||t.name!=="style"||((e=t.strings)===null||e===void 0?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,r)=>{const n=t[r];return n==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(t,[e]){const{style:r}=t.element;if(this.ht===void 0){this.ht=new Set;for(const n in e)this.ht.add(n);return this.render(e)}this.ht.forEach(n=>{e[n]==null&&(this.ht.delete(n),n.includes("-")?r.removeProperty(n):r[n]="")});for(const n in e){const i=e[n];if(i!=null){this.ht.add(n);const o=typeof i=="string"&&i.endsWith(Ple);n.includes("-")||o?r.setProperty(n,o?i.slice(0,-11):i,o?i$:""):r[n]=i}}return ei}});function Rle(t,e){return new CustomEvent("close-menu",{bubbles:!0,composed:!0,detail:{initiator:t,reason:e,itemPath:[t]}})}const G5=Rle;function Dle(){return new Event("deactivate-typeahead",{bubbles:!0,composed:!0})}function jg(){return new Event("activate-typeahead",{bubbles:!0,composed:!0})}const Jo={UP:"ArrowUp",DOWN:"ArrowDown",RIGHT:"ArrowRight",LEFT:"ArrowLeft"},Ul={SPACE:"Space",ENTER:"Enter"},Zy={CLICK_SELECTION:"click-selection",KEYDOWN:"keydown"},eb={ESCAPE:"Escape",SPACE:Ul.SPACE,ENTER:Ul.ENTER};function o$(t){return Object.values(eb).some(e=>e===t)}function Lle(t){return Object.values(Ul).some(e=>e===t)}function tb(t,e){const r=new Event("md-contains",{bubbles:!0,composed:!0});let n=[];const i=a=>{n=a.composedPath()};return e.addEventListener("md-contains",i),t.dispatchEvent(r),e.removeEventListener("md-contains",i),n.length>0}const yi={NONE:"none",LIST_ROOT:"list-root",FIRST_ITEM:"first-item",LAST_ITEM:"last-item"};const hp={END_START:"end-start",END_END:"end-end",START_START:"start-start",START_END:"start-end"};class Mle{constructor(e,r){this.host=e,this.getProperties=r,this.surfaceStylesInternal={display:"none"},this.lastValues={isOpen:!1},this.host.addController(this)}get surfaceStyles(){return this.surfaceStylesInternal}async position(){const{surfaceEl:e,anchorEl:r,anchorCorner:n,surfaceCorner:i,positioning:o,xOffset:a,yOffset:l,repositionStrategy:d}=this.getProperties(),u=n.toLowerCase().trim(),f=i.toLowerCase().trim();if(!e||!r)return;const g=window.innerWidth,y=window.innerHeight,x=document.createElement("div");x.style.opacity="0",x.style.position="fixed",x.style.display="block",x.style.inset="0",document.body.appendChild(x);const m=x.getBoundingClientRect();x.remove();const p=window.innerHeight-m.bottom,_=window.innerWidth-m.right;this.surfaceStylesInternal={display:"block",opacity:"0"},this.host.requestUpdate(),await this.host.updateComplete,e.popover&&e.isConnected&&e.showPopover();const v=e.getSurfacePositionClientRect?e.getSurfacePositionClientRect():e.getBoundingClientRect(),b=r.getSurfacePositionClientRect?r.getSurfacePositionClientRect():r.getBoundingClientRect(),[w,E]=f.split("-"),[C,S]=u.split("-"),P=getComputedStyle(e).direction==="ltr";let{blockInset:R,blockOutOfBoundsCorrection:D,surfaceBlockProperty:z}=this.calculateBlock({surfaceRect:v,anchorRect:b,anchorBlock:C,surfaceBlock:w,yOffset:l,positioning:o,windowInnerHeight:y,blockScrollbarHeight:p});if(D){const we=w==="start"?"end":"start",$e=C==="start"?"end":"start",ye=this.calculateBlock({surfaceRect:v,anchorRect:b,anchorBlock:$e,surfaceBlock:we,yOffset:l,positioning:o,windowInnerHeight:y,blockScrollbarHeight:p});D>ye.blockOutOfBoundsCorrection&&(R=ye.blockInset,D=ye.blockOutOfBoundsCorrection,z=ye.surfaceBlockProperty)}let{inlineInset:j,inlineOutOfBoundsCorrection:q,surfaceInlineProperty:Z}=this.calculateInline({surfaceRect:v,anchorRect:b,anchorInline:S,surfaceInline:E,xOffset:a,positioning:o,isLTR:P,windowInnerWidth:g,inlineScrollbarWidth:_});if(q){const we=E==="start"?"end":"start",$e=S==="start"?"end":"start",ye=this.calculateInline({surfaceRect:v,anchorRect:b,anchorInline:$e,surfaceInline:we,xOffset:a,positioning:o,isLTR:P,windowInnerWidth:g,inlineScrollbarWidth:_});Math.abs(q)>Math.abs(ye.inlineOutOfBoundsCorrection)&&(j=ye.inlineInset,q=ye.inlineOutOfBoundsCorrection,Z=ye.surfaceInlineProperty)}d==="move"&&(R=R-D,j=j-q),this.surfaceStylesInternal={display:"block",opacity:"1",[z]:`${R}px`,[Z]:`${j}px`},d==="resize"&&(D&&(this.surfaceStylesInternal.height=`${v.height-D}px`),q&&(this.surfaceStylesInternal.width=`${v.width-q}px`)),this.host.requestUpdate()}calculateBlock(e){const{surfaceRect:r,anchorRect:n,anchorBlock:i,surfaceBlock:o,yOffset:a,positioning:l,windowInnerHeight:d,blockScrollbarHeight:u}=e,f=l==="fixed"||l==="document"?1:0,g=l==="document"?1:0,y=o==="start"?1:0,x=o==="end"?1:0,p=(i!==o?1:0)*n.height+a,_=y*n.top+x*(d-n.bottom-u),v=y*window.scrollY-x*window.scrollY,b=Math.abs(Math.min(0,d-_-p-r.height));return{blockInset:f*_+g*v+p,blockOutOfBoundsCorrection:b,surfaceBlockProperty:o==="start"?"inset-block-start":"inset-block-end"}}calculateInline(e){const{isLTR:r,surfaceInline:n,anchorInline:i,anchorRect:o,surfaceRect:a,xOffset:l,positioning:d,windowInnerWidth:u,inlineScrollbarWidth:f}=e,g=d==="fixed"||d==="document"?1:0,y=d==="document"?1:0,x=r?1:0,m=r?0:1,p=n==="start"?1:0,_=n==="end"?1:0,b=(i!==n?1:0)*o.width+l,w=p*o.left+_*(u-o.right-f),E=p*(u-o.right-f)+_*o.left,C=x*w+m*E,S=p*window.scrollX-_*window.scrollX,P=_*window.scrollX-p*window.scrollX,R=x*S+m*P,D=Math.abs(Math.min(0,u-C-b-a.width)),z=g*C+b+y*R;let j=n==="start"?"inset-inline-start":"inset-inline-end";return(d==="document"||d==="fixed")&&(n==="start"&&r||n==="end"&&!r?j="left":j="right"),{inlineInset:z,inlineOutOfBoundsCorrection:D,surfaceInlineProperty:j}}hostUpdate(){this.onUpdate()}hostUpdated(){this.onUpdate()}async onUpdate(){const e=this.getProperties();let r=!1;for(const[a,l]of Object.entries(e))if(r=r||l!==this.lastValues[a],r)break;const n=this.lastValues.isOpen!==e.isOpen,i=!!e.anchorEl,o=!!e.surfaceEl;r&&i&&o&&(this.lastValues.isOpen=e.isOpen,e.isOpen?(this.lastValues=e,await this.position(),e.onOpen()):n&&(await e.beforeClose(),this.close(),e.onClose()))}close(){this.surfaceStylesInternal={display:"none"},this.host.requestUpdate();const e=this.getProperties().surfaceEl;e!=null&&e.popover&&(e!=null&&e.isConnected)&&e.hidePopover()}}const Yn={INDEX:0,ITEM:1,TEXT:2};class Fle{constructor(e){this.getProperties=e,this.typeaheadRecords=[],this.typaheadBuffer="",this.cancelTypeaheadTimeout=0,this.isTypingAhead=!1,this.lastActiveRecord=null,this.onKeydown=r=>{this.isTypingAhead?this.typeahead(r):this.beginTypeahead(r)},this.endTypeahead=()=>{this.isTypingAhead=!1,this.typaheadBuffer="",this.typeaheadRecords=[]}}get items(){return this.getProperties().getItems()}get active(){return this.getProperties().active}beginTypeahead(e){this.active&&(e.code==="Space"||e.code==="Enter"||e.code.startsWith("Arrow")||e.code==="Escape"||(this.isTypingAhead=!0,this.typeaheadRecords=this.items.map((r,n)=>[n,r,r.typeaheadText.trim().toLowerCase()]),this.lastActiveRecord=this.typeaheadRecords.find(r=>r[Yn.ITEM].tabIndex===0)??null,this.lastActiveRecord&&(this.lastActiveRecord[Yn.ITEM].tabIndex=-1),this.typeahead(e)))}typeahead(e){if(e.defaultPrevented)return;if(clearTimeout(this.cancelTypeaheadTimeout),e.code==="Enter"||e.code.startsWith("Arrow")||e.code==="Escape"){this.endTypeahead(),this.lastActiveRecord&&(this.lastActiveRecord[Yn.ITEM].tabIndex=-1);return}e.code==="Space"&&e.preventDefault(),this.cancelTypeaheadTimeout=setTimeout(this.endTypeahead,this.getProperties().typeaheadBufferTime),this.typaheadBuffer+=e.key.toLowerCase();const r=this.lastActiveRecord?this.lastActiveRecord[Yn.INDEX]:-1,n=this.typeaheadRecords.length,i=d=>(d[Yn.INDEX]+n-r)%n,o=this.typeaheadRecords.filter(d=>!d[Yn.ITEM].disabled&&d[Yn.TEXT].startsWith(this.typaheadBuffer)).sort((d,u)=>i(d)-i(u));if(o.length===0){clearTimeout(this.cancelTypeaheadTimeout),this.lastActiveRecord&&(this.lastActiveRecord[Yn.ITEM].tabIndex=-1),this.endTypeahead();return}const a=this.typaheadBuffer.length===1;let l;this.lastActiveRecord===o[0]&&a?l=o[1]??o[0]:l=o[0],this.lastActiveRecord&&(this.lastActiveRecord[Yn.ITEM].tabIndex=-1),this.lastActiveRecord=l,l[Yn.ITEM].tabIndex=0,l[Yn.ITEM].focus()}}const a$=200,s$=new Set([qr.ArrowDown,qr.ArrowUp,qr.Home,qr.End]),Nle=new Set([qr.ArrowLeft,qr.ArrowRight,...s$]);function zle(t=document){var r;let e=t.activeElement;for(;e&&((r=e==null?void 0:e.shadowRoot)!=null&&r.activeElement);)e=e.shadowRoot.activeElement;return e}class br extends dt{get openDirection(){return this.menuCorner.split("-")[0]==="start"?"DOWN":"UP"}get anchorElement(){return this.anchor?this.getRootNode().querySelector(`#${this.anchor}`):this.currentAnchorElement}set anchorElement(e){this.currentAnchorElement=e,this.requestUpdate("anchorElement")}constructor(){super(),this.anchor="",this.positioning="absolute",this.quick=!1,this.hasOverflow=!1,this.open=!1,this.xOffset=0,this.yOffset=0,this.typeaheadDelay=a$,this.anchorCorner=hp.END_START,this.menuCorner=hp.START_START,this.stayOpenOnOutsideClick=!1,this.stayOpenOnFocusout=!1,this.skipRestoreFocus=!1,this.defaultFocus=yi.FIRST_ITEM,this.noNavigationWrap=!1,this.typeaheadActive=!0,this.isSubmenu=!1,this.pointerPath=[],this.isRepositioning=!1,this.openCloseAnimationSignal=lae(),this.listController=new r$({isItem:e=>e.hasAttribute("md-menu-item"),getPossibleItems:()=>this.slotItems,isRtl:()=>getComputedStyle(this).direction==="rtl",deactivateItem:e=>{e.selected=!1,e.tabIndex=-1},activateItem:e=>{e.selected=!0,e.tabIndex=0},isNavigableKey:e=>{if(!this.isSubmenu)return Nle.has(e);const n=getComputedStyle(this).direction==="rtl"?qr.ArrowLeft:qr.ArrowRight;return e===n?!0:s$.has(e)},wrapNavigation:()=>!this.noNavigationWrap}),this.lastFocusedElement=null,this.typeaheadController=new Fle(()=>({getItems:()=>this.items,typeaheadBufferTime:this.typeaheadDelay,active:this.typeaheadActive})),this.currentAnchorElement=null,this.internals=this.attachInternals(),this.menuPositionController=new Mle(this,()=>({anchorCorner:this.anchorCorner,surfaceCorner:this.menuCorner,surfaceEl:this.surfaceEl,anchorEl:this.anchorElement,positioning:this.positioning==="popover"?"document":this.positioning,isOpen:this.open,xOffset:this.xOffset,yOffset:this.yOffset,onOpen:this.onOpened,beforeClose:this.beforeClose,onClose:this.onClosed,repositionStrategy:this.hasOverflow&&this.positioning!=="popover"?"move":"resize"})),this.onWindowResize=()=>{this.isRepositioning||this.positioning!=="document"&&this.positioning!=="fixed"&&this.positioning!=="popover"||(this.isRepositioning=!0,this.reposition(),this.isRepositioning=!1)},this.handleFocusout=async e=>{const r=this.anchorElement;if(this.stayOpenOnFocusout||!this.open||this.pointerPath.includes(r))return;if(e.relatedTarget){if(tb(e.relatedTarget,this)||this.pointerPath.length!==0&&tb(e.relatedTarget,r))return}else if(this.pointerPath.includes(this))return;const n=this.skipRestoreFocus;this.skipRestoreFocus=!0,this.close(),await this.updateComplete,this.skipRestoreFocus=n},this.onOpened=async()=>{this.lastFocusedElement=zle();const e=this.items,r=Bl(e);r&&this.defaultFocus!==yi.NONE&&(r.item.tabIndex=-1);let n=!this.quick;switch(this.quick?this.dispatchEvent(new Event("opening")):n=!!await this.animateOpen(),this.defaultFocus){case yi.FIRST_ITEM:const i=Cm(e);i&&(i.tabIndex=0,i.focus(),await i.updateComplete);break;case yi.LAST_ITEM:const o=e$(e);o&&(o.tabIndex=0,o.focus(),await o.updateComplete);break;case yi.LIST_ROOT:this.focus();break;default:case yi.NONE:break}n||this.dispatchEvent(new Event("opened"))},this.beforeClose=async()=>{var e,r;this.open=!1,this.skipRestoreFocus||(r=(e=this.lastFocusedElement)==null?void 0:e.focus)==null||r.call(e),this.quick||await this.animateClose()},this.onClosed=()=>{this.quick&&(this.dispatchEvent(new Event("closing")),this.dispatchEvent(new Event("closed")))},this.onWindowPointerdown=e=>{this.pointerPath=e.composedPath()},this.onDocumentClick=e=>{if(!this.open)return;const r=e.composedPath();!this.stayOpenOnOutsideClick&&!r.includes(this)&&!r.includes(this.anchorElement)&&(this.open=!1)},this.internals.role="menu",this.addEventListener("keydown",this.handleKeydown),this.addEventListener("keydown",this.captureKeydown,{capture:!0}),this.addEventListener("focusout",this.handleFocusout)}get items(){return this.listController.items}willUpdate(e){if(e.has("open")){if(this.open){this.removeAttribute("aria-hidden");return}this.setAttribute("aria-hidden","true")}}update(e){e.has("open")&&(this.open?this.setUpGlobalEventListeners():this.cleanUpGlobalEventListeners()),e.has("positioning")&&this.positioning==="popover"&&!this.showPopover&&(this.positioning="fixed"),super.update(e)}connectedCallback(){super.connectedCallback(),this.open&&this.setUpGlobalEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.cleanUpGlobalEventListeners()}getBoundingClientRect(){return this.surfaceEl?this.surfaceEl.getBoundingClientRect():super.getBoundingClientRect()}getClientRects(){return this.surfaceEl?this.surfaceEl.getClientRects():super.getClientRects()}render(){return this.renderSurface()}renderSurface(){return ve` + `}onFocus(){this.tabIndex===-1&&this.dispatchEvent(f$())}focus(){var e;(e=this.listItemRoot)==null||e.focus()}}en(zo);zo.shadowRootOptions={...ft.shadowRootOptions,delegatesFocus:!0};O([H({type:Boolean,reflect:!0})],zo.prototype,"disabled",void 0);O([H({reflect:!0})],zo.prototype,"type",void 0);O([H({type:Boolean,attribute:"md-list-item",reflect:!0})],zo.prototype,"isListItem",void 0);O([H()],zo.prototype,"href",void 0);O([H()],zo.prototype,"target",void 0);O([xt(".list-item")],zo.prototype,"listItemRoot",void 0);const Kle=He`:host{display:flex;-webkit-tap-highlight-color:rgba(0,0,0,0);--md-ripple-hover-color: var(--md-list-item-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity: var(--md-list-item-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-list-item-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity: var(--md-list-item-pressed-state-layer-opacity, 0.12)}:host(:is([type=button]:not([disabled]),[type=link])){cursor:pointer}md-focus-ring{z-index:1;--md-focus-ring-shape: 8px}a,button,li{background:none;border:none;cursor:inherit;padding:0;margin:0;text-align:unset;text-decoration:none}.list-item{border-radius:inherit;display:flex;flex:1;max-width:inherit;min-width:inherit;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%}.list-item.interactive{cursor:pointer}.list-item.disabled{opacity:var(--md-list-item-disabled-opacity, 0.3);pointer-events:none}[slot=container]{pointer-events:none}md-ripple{border-radius:inherit}md-item{border-radius:inherit;flex:1;height:100%;color:var(--md-list-item-label-text-color, var(--md-sys-color-on-surface, #1d1b20));font-family:var(--md-list-item-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));line-height:var(--md-list-item-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));font-weight:var(--md-list-item-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));min-height:var(--md-list-item-one-line-container-height, 56px);padding-top:var(--md-list-item-top-space, 12px);padding-bottom:var(--md-list-item-bottom-space, 12px);padding-inline-start:var(--md-list-item-leading-space, 16px);padding-inline-end:var(--md-list-item-trailing-space, 16px)}md-item[multiline]{min-height:var(--md-list-item-two-line-container-height, 72px)}[slot=supporting-text]{color:var(--md-list-item-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-list-item-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-supporting-text-size, var(--md-sys-typescale-body-medium-size, 0.875rem));line-height:var(--md-list-item-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));font-weight:var(--md-list-item-supporting-text-weight, var(--md-sys-typescale-body-medium-weight, var(--md-ref-typeface-weight-regular, 400)))}[slot=trailing-supporting-text]{color:var(--md-list-item-trailing-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-list-item-trailing-supporting-text-font, var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-trailing-supporting-text-size, var(--md-sys-typescale-label-small-size, 0.6875rem));line-height:var(--md-list-item-trailing-supporting-text-line-height, var(--md-sys-typescale-label-small-line-height, 1rem));font-weight:var(--md-list-item-trailing-supporting-text-weight, var(--md-sys-typescale-label-small-weight, var(--md-ref-typeface-weight-medium, 500)))}:is([slot=start],[slot=end])::slotted(*){fill:currentColor}[slot=start]{color:var(--md-list-item-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f))}[slot=end]{color:var(--md-list-item-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f))}@media(forced-colors: active){.disabled slot{color:GrayText}.list-item.disabled{color:GrayText;opacity:1}} +`;let fb=class extends zo{};fb.styles=[Kle];fb=O([st("md-list-item")],fb);const m$="important",Yle=" !"+m$,Us=L1(class extends M1{constructor(t){var e;if(super(t),t.type!==_a.ATTRIBUTE||t.name!=="style"||((e=t.strings)===null||e===void 0?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,r)=>{const n=t[r];return n==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(t,[e]){const{style:r}=t.element;if(this.ht===void 0){this.ht=new Set;for(const n in e)this.ht.add(n);return this.render(e)}this.ht.forEach(n=>{e[n]==null&&(this.ht.delete(n),n.includes("-")?r.removeProperty(n):r[n]="")});for(const n in e){const i=e[n];if(i!=null){this.ht.add(n);const o=typeof i=="string"&&i.endsWith(Yle);n.includes("-")||o?r.setProperty(n,o?i.slice(0,-11):i,o?m$:""):r[n]=i}}return ii}});function Xle(t,e){return new CustomEvent("close-menu",{bubbles:!0,composed:!0,detail:{initiator:t,reason:e,itemPath:[t]}})}const i4=Xle;function Jle(){return new Event("deactivate-typeahead",{bubbles:!0,composed:!0})}function n_(){return new Event("activate-typeahead",{bubbles:!0,composed:!0})}const oa={UP:"ArrowUp",DOWN:"ArrowDown",RIGHT:"ArrowRight",LEFT:"ArrowLeft"},Yl={SPACE:"Space",ENTER:"Enter"},hb={CLICK_SELECTION:"click-selection",KEYDOWN:"keydown"},pb={ESCAPE:"Escape",SPACE:Yl.SPACE,ENTER:Yl.ENTER};function v$(t){return Object.values(pb).some(e=>e===t)}function Zle(t){return Object.values(Yl).some(e=>e===t)}function mb(t,e){const r=new Event("md-contains",{bubbles:!0,composed:!0});let n=[];const i=a=>{n=a.composedPath()};return e.addEventListener("md-contains",i),t.dispatchEvent(r),e.removeEventListener("md-contains",i),n.length>0}const xi={NONE:"none",LIST_ROOT:"list-root",FIRST_ITEM:"first-item",LAST_ITEM:"last-item"};const Tp={END_START:"end-start",END_END:"end-end",START_START:"start-start",START_END:"start-end"};class ece{constructor(e,r){this.host=e,this.getProperties=r,this.surfaceStylesInternal={display:"none"},this.lastValues={isOpen:!1},this.host.addController(this)}get surfaceStyles(){return this.surfaceStylesInternal}async position(){const{surfaceEl:e,anchorEl:r,anchorCorner:n,surfaceCorner:i,positioning:o,xOffset:a,yOffset:l,repositionStrategy:d}=this.getProperties(),u=n.toLowerCase().trim(),f=i.toLowerCase().trim();if(!e||!r)return;const g=window.innerWidth,y=window.innerHeight,x=document.createElement("div");x.style.opacity="0",x.style.position="fixed",x.style.display="block",x.style.inset="0",document.body.appendChild(x);const m=x.getBoundingClientRect();x.remove();const p=window.innerHeight-m.bottom,_=window.innerWidth-m.right;this.surfaceStylesInternal={display:"block",opacity:"0"},this.host.requestUpdate(),await this.host.updateComplete,e.popover&&e.isConnected&&e.showPopover();const v=e.getSurfacePositionClientRect?e.getSurfacePositionClientRect():e.getBoundingClientRect(),b=r.getSurfacePositionClientRect?r.getSurfacePositionClientRect():r.getBoundingClientRect(),[w,E]=f.split("-"),[C,S]=u.split("-"),P=getComputedStyle(e).direction==="ltr";let{blockInset:R,blockOutOfBoundsCorrection:D,surfaceBlockProperty:z}=this.calculateBlock({surfaceRect:v,anchorRect:b,anchorBlock:C,surfaceBlock:w,yOffset:l,positioning:o,windowInnerHeight:y,blockScrollbarHeight:p});if(D){const be=w==="start"?"end":"start",Oe=C==="start"?"end":"start",ge=this.calculateBlock({surfaceRect:v,anchorRect:b,anchorBlock:Oe,surfaceBlock:be,yOffset:l,positioning:o,windowInnerHeight:y,blockScrollbarHeight:p});D>ge.blockOutOfBoundsCorrection&&(R=ge.blockInset,D=ge.blockOutOfBoundsCorrection,z=ge.surfaceBlockProperty)}let{inlineInset:j,inlineOutOfBoundsCorrection:q,surfaceInlineProperty:J}=this.calculateInline({surfaceRect:v,anchorRect:b,anchorInline:S,surfaceInline:E,xOffset:a,positioning:o,isLTR:P,windowInnerWidth:g,inlineScrollbarWidth:_});if(q){const be=E==="start"?"end":"start",Oe=S==="start"?"end":"start",ge=this.calculateInline({surfaceRect:v,anchorRect:b,anchorInline:Oe,surfaceInline:be,xOffset:a,positioning:o,isLTR:P,windowInnerWidth:g,inlineScrollbarWidth:_});Math.abs(q)>Math.abs(ge.inlineOutOfBoundsCorrection)&&(j=ge.inlineInset,q=ge.inlineOutOfBoundsCorrection,J=ge.surfaceInlineProperty)}d==="move"&&(R=R-D,j=j-q),this.surfaceStylesInternal={display:"block",opacity:"1",[z]:`${R}px`,[J]:`${j}px`},d==="resize"&&(D&&(this.surfaceStylesInternal.height=`${v.height-D}px`),q&&(this.surfaceStylesInternal.width=`${v.width-q}px`)),this.host.requestUpdate()}calculateBlock(e){const{surfaceRect:r,anchorRect:n,anchorBlock:i,surfaceBlock:o,yOffset:a,positioning:l,windowInnerHeight:d,blockScrollbarHeight:u}=e,f=l==="fixed"||l==="document"?1:0,g=l==="document"?1:0,y=o==="start"?1:0,x=o==="end"?1:0,p=(i!==o?1:0)*n.height+a,_=y*n.top+x*(d-n.bottom-u),v=y*window.scrollY-x*window.scrollY,b=Math.abs(Math.min(0,d-_-p-r.height));return{blockInset:f*_+g*v+p,blockOutOfBoundsCorrection:b,surfaceBlockProperty:o==="start"?"inset-block-start":"inset-block-end"}}calculateInline(e){const{isLTR:r,surfaceInline:n,anchorInline:i,anchorRect:o,surfaceRect:a,xOffset:l,positioning:d,windowInnerWidth:u,inlineScrollbarWidth:f}=e,g=d==="fixed"||d==="document"?1:0,y=d==="document"?1:0,x=r?1:0,m=r?0:1,p=n==="start"?1:0,_=n==="end"?1:0,b=(i!==n?1:0)*o.width+l,w=p*o.left+_*(u-o.right-f),E=p*(u-o.right-f)+_*o.left,C=x*w+m*E,S=p*window.scrollX-_*window.scrollX,P=_*window.scrollX-p*window.scrollX,R=x*S+m*P,D=Math.abs(Math.min(0,u-C-b-a.width)),z=g*C+b+y*R;let j=n==="start"?"inset-inline-start":"inset-inline-end";return(d==="document"||d==="fixed")&&(n==="start"&&r||n==="end"&&!r?j="left":j="right"),{inlineInset:z,inlineOutOfBoundsCorrection:D,surfaceInlineProperty:j}}hostUpdate(){this.onUpdate()}hostUpdated(){this.onUpdate()}async onUpdate(){const e=this.getProperties();let r=!1;for(const[a,l]of Object.entries(e))if(r=r||l!==this.lastValues[a],r)break;const n=this.lastValues.isOpen!==e.isOpen,i=!!e.anchorEl,o=!!e.surfaceEl;r&&i&&o&&(this.lastValues.isOpen=e.isOpen,e.isOpen?(this.lastValues=e,await this.position(),e.onOpen()):n&&(await e.beforeClose(),this.close(),e.onClose()))}close(){this.surfaceStylesInternal={display:"none"},this.host.requestUpdate();const e=this.getProperties().surfaceEl;e!=null&&e.popover&&(e!=null&&e.isConnected)&&e.hidePopover()}}const ei={INDEX:0,ITEM:1,TEXT:2};class tce{constructor(e){this.getProperties=e,this.typeaheadRecords=[],this.typaheadBuffer="",this.cancelTypeaheadTimeout=0,this.isTypingAhead=!1,this.lastActiveRecord=null,this.onKeydown=r=>{this.isTypingAhead?this.typeahead(r):this.beginTypeahead(r)},this.endTypeahead=()=>{this.isTypingAhead=!1,this.typaheadBuffer="",this.typeaheadRecords=[]}}get items(){return this.getProperties().getItems()}get active(){return this.getProperties().active}beginTypeahead(e){this.active&&(e.code==="Space"||e.code==="Enter"||e.code.startsWith("Arrow")||e.code==="Escape"||(this.isTypingAhead=!0,this.typeaheadRecords=this.items.map((r,n)=>[n,r,r.typeaheadText.trim().toLowerCase()]),this.lastActiveRecord=this.typeaheadRecords.find(r=>r[ei.ITEM].tabIndex===0)??null,this.lastActiveRecord&&(this.lastActiveRecord[ei.ITEM].tabIndex=-1),this.typeahead(e)))}typeahead(e){if(e.defaultPrevented)return;if(clearTimeout(this.cancelTypeaheadTimeout),e.code==="Enter"||e.code.startsWith("Arrow")||e.code==="Escape"){this.endTypeahead(),this.lastActiveRecord&&(this.lastActiveRecord[ei.ITEM].tabIndex=-1);return}e.code==="Space"&&e.preventDefault(),this.cancelTypeaheadTimeout=setTimeout(this.endTypeahead,this.getProperties().typeaheadBufferTime),this.typaheadBuffer+=e.key.toLowerCase();const r=this.lastActiveRecord?this.lastActiveRecord[ei.INDEX]:-1,n=this.typeaheadRecords.length,i=d=>(d[ei.INDEX]+n-r)%n,o=this.typeaheadRecords.filter(d=>!d[ei.ITEM].disabled&&d[ei.TEXT].startsWith(this.typaheadBuffer)).sort((d,u)=>i(d)-i(u));if(o.length===0){clearTimeout(this.cancelTypeaheadTimeout),this.lastActiveRecord&&(this.lastActiveRecord[ei.ITEM].tabIndex=-1),this.endTypeahead();return}const a=this.typaheadBuffer.length===1;let l;this.lastActiveRecord===o[0]&&a?l=o[1]??o[0]:l=o[0],this.lastActiveRecord&&(this.lastActiveRecord[ei.ITEM].tabIndex=-1),this.lastActiveRecord=l,l[ei.ITEM].tabIndex=0,l[ei.ITEM].focus()}}const g$=200,_$=new Set([Wr.ArrowDown,Wr.ArrowUp,Wr.Home,Wr.End]),rce=new Set([Wr.ArrowLeft,Wr.ArrowRight,..._$]);function nce(t=document){var r;let e=t.activeElement;for(;e&&((r=e==null?void 0:e.shadowRoot)!=null&&r.activeElement);)e=e.shadowRoot.activeElement;return e}class Er extends ft{get openDirection(){return this.menuCorner.split("-")[0]==="start"?"DOWN":"UP"}get anchorElement(){return this.anchor?this.getRootNode().querySelector(`#${this.anchor}`):this.currentAnchorElement}set anchorElement(e){this.currentAnchorElement=e,this.requestUpdate("anchorElement")}constructor(){super(),this.anchor="",this.positioning="absolute",this.quick=!1,this.hasOverflow=!1,this.open=!1,this.xOffset=0,this.yOffset=0,this.typeaheadDelay=g$,this.anchorCorner=Tp.END_START,this.menuCorner=Tp.START_START,this.stayOpenOnOutsideClick=!1,this.stayOpenOnFocusout=!1,this.skipRestoreFocus=!1,this.defaultFocus=xi.FIRST_ITEM,this.noNavigationWrap=!1,this.typeaheadActive=!0,this.isSubmenu=!1,this.pointerPath=[],this.isRepositioning=!1,this.openCloseAnimationSignal=Cae(),this.listController=new h$({isItem:e=>e.hasAttribute("md-menu-item"),getPossibleItems:()=>this.slotItems,isRtl:()=>getComputedStyle(this).direction==="rtl",deactivateItem:e=>{e.selected=!1,e.tabIndex=-1},activateItem:e=>{e.selected=!0,e.tabIndex=0},isNavigableKey:e=>{if(!this.isSubmenu)return rce.has(e);const n=getComputedStyle(this).direction==="rtl"?Wr.ArrowLeft:Wr.ArrowRight;return e===n?!0:_$.has(e)},wrapNavigation:()=>!this.noNavigationWrap}),this.lastFocusedElement=null,this.typeaheadController=new tce(()=>({getItems:()=>this.items,typeaheadBufferTime:this.typeaheadDelay,active:this.typeaheadActive})),this.currentAnchorElement=null,this.internals=this.attachInternals(),this.menuPositionController=new ece(this,()=>({anchorCorner:this.anchorCorner,surfaceCorner:this.menuCorner,surfaceEl:this.surfaceEl,anchorEl:this.anchorElement,positioning:this.positioning==="popover"?"document":this.positioning,isOpen:this.open,xOffset:this.xOffset,yOffset:this.yOffset,onOpen:this.onOpened,beforeClose:this.beforeClose,onClose:this.onClosed,repositionStrategy:this.hasOverflow&&this.positioning!=="popover"?"move":"resize"})),this.onWindowResize=()=>{this.isRepositioning||this.positioning!=="document"&&this.positioning!=="fixed"&&this.positioning!=="popover"||(this.isRepositioning=!0,this.reposition(),this.isRepositioning=!1)},this.handleFocusout=async e=>{const r=this.anchorElement;if(this.stayOpenOnFocusout||!this.open||this.pointerPath.includes(r))return;if(e.relatedTarget){if(mb(e.relatedTarget,this)||this.pointerPath.length!==0&&mb(e.relatedTarget,r))return}else if(this.pointerPath.includes(this))return;const n=this.skipRestoreFocus;this.skipRestoreFocus=!0,this.close(),await this.updateComplete,this.skipRestoreFocus=n},this.onOpened=async()=>{this.lastFocusedElement=nce();const e=this.items,r=Kl(e);r&&this.defaultFocus!==xi.NONE&&(r.item.tabIndex=-1);let n=!this.quick;switch(this.quick?this.dispatchEvent(new Event("opening")):n=!!await this.animateOpen(),this.defaultFocus){case xi.FIRST_ITEM:const i=Mm(e);i&&(i.tabIndex=0,i.focus(),await i.updateComplete);break;case xi.LAST_ITEM:const o=u$(e);o&&(o.tabIndex=0,o.focus(),await o.updateComplete);break;case xi.LIST_ROOT:this.focus();break;default:case xi.NONE:break}n||this.dispatchEvent(new Event("opened"))},this.beforeClose=async()=>{var e,r;this.open=!1,this.skipRestoreFocus||(r=(e=this.lastFocusedElement)==null?void 0:e.focus)==null||r.call(e),this.quick||await this.animateClose()},this.onClosed=()=>{this.quick&&(this.dispatchEvent(new Event("closing")),this.dispatchEvent(new Event("closed")))},this.onWindowPointerdown=e=>{this.pointerPath=e.composedPath()},this.onDocumentClick=e=>{if(!this.open)return;const r=e.composedPath();!this.stayOpenOnOutsideClick&&!r.includes(this)&&!r.includes(this.anchorElement)&&(this.open=!1)},this.internals.role="menu",this.addEventListener("keydown",this.handleKeydown),this.addEventListener("keydown",this.captureKeydown,{capture:!0}),this.addEventListener("focusout",this.handleFocusout)}get items(){return this.listController.items}willUpdate(e){if(e.has("open")){if(this.open){this.removeAttribute("aria-hidden");return}this.setAttribute("aria-hidden","true")}}update(e){e.has("open")&&(this.open?this.setUpGlobalEventListeners():this.cleanUpGlobalEventListeners()),e.has("positioning")&&this.positioning==="popover"&&!this.showPopover&&(this.positioning="fixed"),super.update(e)}connectedCallback(){super.connectedCallback(),this.open&&this.setUpGlobalEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.cleanUpGlobalEventListeners()}getBoundingClientRect(){return this.surfaceEl?this.surfaceEl.getBoundingClientRect():super.getBoundingClientRect()}getClientRects(){return this.surfaceEl?this.surfaceEl.getClientRects():super.getClientRects()}render(){return this.renderSurface()}renderSurface(){return me` - `}renderMenuItems(){return ve``}renderElevation(){return ve``}getSurfaceClasses(){return{open:this.open,fixed:this.positioning==="fixed","has-overflow":this.hasOverflow}}captureKeydown(e){e.target===this&&!e.defaultPrevented&&o$(e.code)&&(e.preventDefault(),this.close()),this.typeaheadController.onKeydown(e)}async animateOpen(){const e=this.surfaceEl,r=this.slotEl;if(!e||!r)return!0;const n=this.openDirection;this.dispatchEvent(new Event("opening")),e.classList.toggle("animating",!0);const i=this.openCloseAnimationSignal.start(),o=e.offsetHeight,a=n==="UP",l=this.items,d=500,u=50,f=250,g=(d-f)/l.length,y=e.animate([{height:"0px"},{height:`${o}px`}],{duration:d,easing:wi.EMPHASIZED}),x=r.animate([{transform:a?`translateY(-${o}px)`:""},{transform:""}],{duration:d,easing:wi.EMPHASIZED}),m=e.animate([{opacity:0},{opacity:1}],u),p=[];for(let b=0;b{E.classList.toggle("md-menu-hidden",!1)}),p.push([E,C])}let _=b=>{};const v=new Promise(b=>{_=b});return i.addEventListener("abort",()=>{y.cancel(),x.cancel(),m.cancel(),p.forEach(([b,w])=>{b.classList.toggle("md-menu-hidden",!1),w.cancel()}),_(!0)}),y.addEventListener("finish",()=>{e.classList.toggle("animating",!1),this.openCloseAnimationSignal.finish(),_(!1)}),await v}animateClose(){let e,r;const n=new Promise((S,P)=>{e=S,r=P}),i=this.surfaceEl,o=this.slotEl;if(!i||!o)return r(),n;const l=this.openDirection==="UP";this.dispatchEvent(new Event("closing")),i.classList.toggle("animating",!0);const d=this.openCloseAnimationSignal.start(),u=i.offsetHeight,f=this.items,g=150,y=50,x=g-y,m=50,p=50,_=.35,v=(g-p-m)/f.length,b=i.animate([{height:`${u}px`},{height:`${u*_}px`}],{duration:g,easing:wi.EMPHASIZED_ACCELERATE}),w=o.animate([{transform:""},{transform:l?`translateY(-${u*(1-_)}px)`:""}],{duration:g,easing:wi.EMPHASIZED_ACCELERATE}),E=i.animate([{opacity:1},{opacity:0}],{duration:y,delay:x}),C=[];for(let S=0;S{R.classList.toggle("md-menu-hidden",!0)}),C.push([R,D])}return d.addEventListener("abort",()=>{b.cancel(),w.cancel(),E.cancel(),C.forEach(([S,P])=>{P.cancel(),S.classList.toggle("md-menu-hidden",!1)}),r()}),b.addEventListener("finish",()=>{i.classList.toggle("animating",!1),C.forEach(([S])=>{S.classList.toggle("md-menu-hidden",!1)}),this.openCloseAnimationSignal.finish(),this.dispatchEvent(new Event("closed")),e(!0)}),n}handleKeydown(e){this.pointerPath=[],this.listController.handleKeydown(e)}setUpGlobalEventListeners(){document.addEventListener("click",this.onDocumentClick,{capture:!0}),window.addEventListener("pointerdown",this.onWindowPointerdown),document.addEventListener("resize",this.onWindowResize,{passive:!0}),window.addEventListener("resize",this.onWindowResize,{passive:!0})}cleanUpGlobalEventListeners(){document.removeEventListener("click",this.onDocumentClick,{capture:!0}),window.removeEventListener("pointerdown",this.onWindowPointerdown),document.removeEventListener("resize",this.onWindowResize),window.removeEventListener("resize",this.onWindowResize)}onCloseMenu(){this.close()}onDeactivateItems(e){e.stopPropagation(),this.listController.onDeactivateItems()}onRequestActivation(e){e.stopPropagation(),this.listController.onRequestActivation(e)}handleDeactivateTypeahead(e){e.stopPropagation(),this.typeaheadActive=!1}handleActivateTypeahead(e){e.stopPropagation(),this.typeaheadActive=!0}handleStayOpenOnFocusout(e){e.stopPropagation(),this.stayOpenOnFocusout=!0}handleCloseOnFocusout(e){e.stopPropagation(),this.stayOpenOnFocusout=!1}close(){this.open=!1,this.slotItems.forEach(r=>{var n;(n=r.close)==null||n.call(r)})}show(){this.open=!0}activateNextItem(){return this.listController.activateNextItem()??null}activatePreviousItem(){return this.listController.activatePreviousItem()??null}reposition(){this.open&&this.menuPositionController.position()}}O([gt(".menu")],br.prototype,"surfaceEl",void 0);O([gt("slot")],br.prototype,"slotEl",void 0);O([H()],br.prototype,"anchor",void 0);O([H()],br.prototype,"positioning",void 0);O([H({type:Boolean})],br.prototype,"quick",void 0);O([H({type:Boolean,attribute:"has-overflow"})],br.prototype,"hasOverflow",void 0);O([H({type:Boolean,reflect:!0})],br.prototype,"open",void 0);O([H({type:Number,attribute:"x-offset"})],br.prototype,"xOffset",void 0);O([H({type:Number,attribute:"y-offset"})],br.prototype,"yOffset",void 0);O([H({type:Number,attribute:"typeahead-delay"})],br.prototype,"typeaheadDelay",void 0);O([H({attribute:"anchor-corner"})],br.prototype,"anchorCorner",void 0);O([H({attribute:"menu-corner"})],br.prototype,"menuCorner",void 0);O([H({type:Boolean,attribute:"stay-open-on-outside-click"})],br.prototype,"stayOpenOnOutsideClick",void 0);O([H({type:Boolean,attribute:"stay-open-on-focusout"})],br.prototype,"stayOpenOnFocusout",void 0);O([H({type:Boolean,attribute:"skip-restore-focus"})],br.prototype,"skipRestoreFocus",void 0);O([H({attribute:"default-focus"})],br.prototype,"defaultFocus",void 0);O([H({type:Boolean,attribute:"no-navigation-wrap"})],br.prototype,"noNavigationWrap",void 0);O([Ar({flatten:!0})],br.prototype,"slotItems",void 0);O([Pt()],br.prototype,"typeaheadActive",void 0);const qle=He`:host{--md-elevation-level: var(--md-menu-container-elevation, 2);--md-elevation-shadow-color: var(--md-menu-container-shadow-color, var(--md-sys-color-shadow, #000));min-width:112px;color:unset;display:contents}md-focus-ring{--md-focus-ring-shape: var(--md-menu-container-shape, var(--md-sys-shape-corner-extra-small, 4px))}.menu{border-radius:var(--md-menu-container-shape, var(--md-sys-shape-corner-extra-small, 4px));display:none;inset:auto;border:none;padding:0px;overflow:visible;background-color:rgba(0,0,0,0);color:inherit;opacity:0;z-index:20;position:absolute;user-select:none;max-height:inherit;height:inherit;min-width:inherit;max-width:inherit;scrollbar-width:inherit}.menu::backdrop{display:none}.fixed{position:fixed}.items{display:block;list-style-type:none;margin:0;outline:none;box-sizing:border-box;background-color:var(--md-menu-container-color, var(--md-sys-color-surface-container, #f3edf7));height:inherit;max-height:inherit;overflow:auto;min-width:inherit;max-width:inherit;border-radius:inherit;scrollbar-width:inherit}.item-padding{padding-block:8px}.has-overflow:not([popover]) .items{overflow:visible}.has-overflow.animating .items,.animating .items{overflow:hidden}.has-overflow.animating .items{pointer-events:none}.animating ::slotted(.md-menu-hidden){opacity:0}slot{display:block;height:inherit;max-height:inherit}::slotted(:is(md-divider,[role=separator])){margin:8px 0}@media(forced-colors: active){.menu{border-style:solid;border-color:CanvasText;border-width:1px}} -`;let rb=class extends br{};rb.styles=[qle];rb=O([ot("md-menu")],rb);class l${constructor(e,r){this.host=e,this.internalTypeaheadText=null,this.onClick=()=>{this.host.keepOpen||this.host.dispatchEvent(G5(this.host,{kind:Zy.CLICK_SELECTION}))},this.onKeydown=n=>{if(this.host.href&&n.code==="Enter"){const o=this.getInteractiveElement();o instanceof HTMLAnchorElement&&o.click()}if(n.defaultPrevented)return;const i=n.code;this.host.keepOpen&&i!=="Escape"||o$(i)&&(n.preventDefault(),this.host.dispatchEvent(G5(this.host,{kind:Zy.KEYDOWN,key:i})))},this.getHeadlineElements=r.getHeadlineElements,this.getSupportingTextElements=r.getSupportingTextElements,this.getDefaultElements=r.getDefaultElements,this.getInteractiveElement=r.getInteractiveElement,this.host.addController(this)}get typeaheadText(){if(this.internalTypeaheadText!==null)return this.internalTypeaheadText;const e=this.getHeadlineElements(),r=[];return e.forEach(n=>{n.textContent&&n.textContent.trim()&&r.push(n.textContent.trim())}),r.length===0&&this.getDefaultElements().forEach(n=>{n.textContent&&n.textContent.trim()&&r.push(n.textContent.trim())}),r.length===0&&this.getSupportingTextElements().forEach(n=>{n.textContent&&n.textContent.trim()&&r.push(n.textContent.trim())}),r.join(" ")}get tagName(){switch(this.host.type){case"link":return"a";case"button":return"button";default:case"menuitem":case"option":return"li"}}get role(){return this.host.type==="option"?"option":"menuitem"}hostConnected(){this.host.toggleAttribute("md-menu-item",!0)}hostUpdate(){this.host.href&&(this.host.type="link")}setTypeaheadText(e){this.internalTypeaheadText=e}}class En extends dt{constructor(){super(...arguments),this.disabled=!1,this.type="menuitem",this.href="",this.target="",this.keepOpen=!1,this.selected=!1,this.menuItemController=new l$(this,{getHeadlineElements:()=>this.headlineElements,getSupportingTextElements:()=>this.supportingTextElements,getDefaultElements:()=>this.defaultElements,getInteractiveElement:()=>this.listItemRoot})}get typeaheadText(){return this.menuItemController.typeaheadText}set typeaheadText(e){this.menuItemController.setTypeaheadText(e)}render(){return this.renderListItem(ve` + @slotchange=${this.listController.onSlotchange}>`}renderElevation(){return me``}getSurfaceClasses(){return{open:this.open,fixed:this.positioning==="fixed","has-overflow":this.hasOverflow}}captureKeydown(e){e.target===this&&!e.defaultPrevented&&v$(e.code)&&(e.preventDefault(),this.close()),this.typeaheadController.onKeydown(e)}async animateOpen(){const e=this.surfaceEl,r=this.slotEl;if(!e||!r)return!0;const n=this.openDirection;this.dispatchEvent(new Event("opening")),e.classList.toggle("animating",!0);const i=this.openCloseAnimationSignal.start(),o=e.offsetHeight,a=n==="UP",l=this.items,d=500,u=50,f=250,g=(d-f)/l.length,y=e.animate([{height:"0px"},{height:`${o}px`}],{duration:d,easing:Ei.EMPHASIZED}),x=r.animate([{transform:a?`translateY(-${o}px)`:""},{transform:""}],{duration:d,easing:Ei.EMPHASIZED}),m=e.animate([{opacity:0},{opacity:1}],u),p=[];for(let b=0;b{E.classList.toggle("md-menu-hidden",!1)}),p.push([E,C])}let _=b=>{};const v=new Promise(b=>{_=b});return i.addEventListener("abort",()=>{y.cancel(),x.cancel(),m.cancel(),p.forEach(([b,w])=>{b.classList.toggle("md-menu-hidden",!1),w.cancel()}),_(!0)}),y.addEventListener("finish",()=>{e.classList.toggle("animating",!1),this.openCloseAnimationSignal.finish(),_(!1)}),await v}animateClose(){let e,r;const n=new Promise((S,P)=>{e=S,r=P}),i=this.surfaceEl,o=this.slotEl;if(!i||!o)return r(),n;const l=this.openDirection==="UP";this.dispatchEvent(new Event("closing")),i.classList.toggle("animating",!0);const d=this.openCloseAnimationSignal.start(),u=i.offsetHeight,f=this.items,g=150,y=50,x=g-y,m=50,p=50,_=.35,v=(g-p-m)/f.length,b=i.animate([{height:`${u}px`},{height:`${u*_}px`}],{duration:g,easing:Ei.EMPHASIZED_ACCELERATE}),w=o.animate([{transform:""},{transform:l?`translateY(-${u*(1-_)}px)`:""}],{duration:g,easing:Ei.EMPHASIZED_ACCELERATE}),E=i.animate([{opacity:1},{opacity:0}],{duration:y,delay:x}),C=[];for(let S=0;S{R.classList.toggle("md-menu-hidden",!0)}),C.push([R,D])}return d.addEventListener("abort",()=>{b.cancel(),w.cancel(),E.cancel(),C.forEach(([S,P])=>{P.cancel(),S.classList.toggle("md-menu-hidden",!1)}),r()}),b.addEventListener("finish",()=>{i.classList.toggle("animating",!1),C.forEach(([S])=>{S.classList.toggle("md-menu-hidden",!1)}),this.openCloseAnimationSignal.finish(),this.dispatchEvent(new Event("closed")),e(!0)}),n}handleKeydown(e){this.pointerPath=[],this.listController.handleKeydown(e)}setUpGlobalEventListeners(){document.addEventListener("click",this.onDocumentClick,{capture:!0}),window.addEventListener("pointerdown",this.onWindowPointerdown),document.addEventListener("resize",this.onWindowResize,{passive:!0}),window.addEventListener("resize",this.onWindowResize,{passive:!0})}cleanUpGlobalEventListeners(){document.removeEventListener("click",this.onDocumentClick,{capture:!0}),window.removeEventListener("pointerdown",this.onWindowPointerdown),document.removeEventListener("resize",this.onWindowResize),window.removeEventListener("resize",this.onWindowResize)}onCloseMenu(){this.close()}onDeactivateItems(e){e.stopPropagation(),this.listController.onDeactivateItems()}onRequestActivation(e){e.stopPropagation(),this.listController.onRequestActivation(e)}handleDeactivateTypeahead(e){e.stopPropagation(),this.typeaheadActive=!1}handleActivateTypeahead(e){e.stopPropagation(),this.typeaheadActive=!0}handleStayOpenOnFocusout(e){e.stopPropagation(),this.stayOpenOnFocusout=!0}handleCloseOnFocusout(e){e.stopPropagation(),this.stayOpenOnFocusout=!1}close(){this.open=!1,this.slotItems.forEach(r=>{var n;(n=r.close)==null||n.call(r)})}show(){this.open=!0}activateNextItem(){return this.listController.activateNextItem()??null}activatePreviousItem(){return this.listController.activatePreviousItem()??null}reposition(){this.open&&this.menuPositionController.position()}}O([xt(".menu")],Er.prototype,"surfaceEl",void 0);O([xt("slot")],Er.prototype,"slotEl",void 0);O([H()],Er.prototype,"anchor",void 0);O([H()],Er.prototype,"positioning",void 0);O([H({type:Boolean})],Er.prototype,"quick",void 0);O([H({type:Boolean,attribute:"has-overflow"})],Er.prototype,"hasOverflow",void 0);O([H({type:Boolean,reflect:!0})],Er.prototype,"open",void 0);O([H({type:Number,attribute:"x-offset"})],Er.prototype,"xOffset",void 0);O([H({type:Number,attribute:"y-offset"})],Er.prototype,"yOffset",void 0);O([H({type:Number,attribute:"typeahead-delay"})],Er.prototype,"typeaheadDelay",void 0);O([H({attribute:"anchor-corner"})],Er.prototype,"anchorCorner",void 0);O([H({attribute:"menu-corner"})],Er.prototype,"menuCorner",void 0);O([H({type:Boolean,attribute:"stay-open-on-outside-click"})],Er.prototype,"stayOpenOnOutsideClick",void 0);O([H({type:Boolean,attribute:"stay-open-on-focusout"})],Er.prototype,"stayOpenOnFocusout",void 0);O([H({type:Boolean,attribute:"skip-restore-focus"})],Er.prototype,"skipRestoreFocus",void 0);O([H({attribute:"default-focus"})],Er.prototype,"defaultFocus",void 0);O([H({type:Boolean,attribute:"no-navigation-wrap"})],Er.prototype,"noNavigationWrap",void 0);O([Or({flatten:!0})],Er.prototype,"slotItems",void 0);O([Lt()],Er.prototype,"typeaheadActive",void 0);const ice=He`:host{--md-elevation-level: var(--md-menu-container-elevation, 2);--md-elevation-shadow-color: var(--md-menu-container-shadow-color, var(--md-sys-color-shadow, #000));min-width:112px;color:unset;display:contents}md-focus-ring{--md-focus-ring-shape: var(--md-menu-container-shape, var(--md-sys-shape-corner-extra-small, 4px))}.menu{border-radius:var(--md-menu-container-shape, var(--md-sys-shape-corner-extra-small, 4px));display:none;inset:auto;border:none;padding:0px;overflow:visible;background-color:rgba(0,0,0,0);color:inherit;opacity:0;z-index:20;position:absolute;user-select:none;max-height:inherit;height:inherit;min-width:inherit;max-width:inherit;scrollbar-width:inherit}.menu::backdrop{display:none}.fixed{position:fixed}.items{display:block;list-style-type:none;margin:0;outline:none;box-sizing:border-box;background-color:var(--md-menu-container-color, var(--md-sys-color-surface-container, #f3edf7));height:inherit;max-height:inherit;overflow:auto;min-width:inherit;max-width:inherit;border-radius:inherit;scrollbar-width:inherit}.item-padding{padding-block:8px}.has-overflow:not([popover]) .items{overflow:visible}.has-overflow.animating .items,.animating .items{overflow:hidden}.has-overflow.animating .items{pointer-events:none}.animating ::slotted(.md-menu-hidden){opacity:0}slot{display:block;height:inherit;max-height:inherit}::slotted(:is(md-divider,[role=separator])){margin:8px 0}@media(forced-colors: active){.menu{border-style:solid;border-color:CanvasText;border-width:1px}} +`;let vb=class extends Er{};vb.styles=[ice];vb=O([st("md-menu")],vb);class y${constructor(e,r){this.host=e,this.internalTypeaheadText=null,this.onClick=()=>{this.host.keepOpen||this.host.dispatchEvent(i4(this.host,{kind:hb.CLICK_SELECTION}))},this.onKeydown=n=>{if(this.host.href&&n.code==="Enter"){const o=this.getInteractiveElement();o instanceof HTMLAnchorElement&&o.click()}if(n.defaultPrevented)return;const i=n.code;this.host.keepOpen&&i!=="Escape"||v$(i)&&(n.preventDefault(),this.host.dispatchEvent(i4(this.host,{kind:hb.KEYDOWN,key:i})))},this.getHeadlineElements=r.getHeadlineElements,this.getSupportingTextElements=r.getSupportingTextElements,this.getDefaultElements=r.getDefaultElements,this.getInteractiveElement=r.getInteractiveElement,this.host.addController(this)}get typeaheadText(){if(this.internalTypeaheadText!==null)return this.internalTypeaheadText;const e=this.getHeadlineElements(),r=[];return e.forEach(n=>{n.textContent&&n.textContent.trim()&&r.push(n.textContent.trim())}),r.length===0&&this.getDefaultElements().forEach(n=>{n.textContent&&n.textContent.trim()&&r.push(n.textContent.trim())}),r.length===0&&this.getSupportingTextElements().forEach(n=>{n.textContent&&n.textContent.trim()&&r.push(n.textContent.trim())}),r.join(" ")}get tagName(){switch(this.host.type){case"link":return"a";case"button":return"button";default:case"menuitem":case"option":return"li"}}get role(){return this.host.type==="option"?"option":"menuitem"}hostConnected(){this.host.toggleAttribute("md-menu-item",!0)}hostUpdate(){this.host.href&&(this.host.type="link")}setTypeaheadText(e){this.internalTypeaheadText=e}}class Cn extends ft{constructor(){super(...arguments),this.disabled=!1,this.type="menuitem",this.href="",this.target="",this.keepOpen=!1,this.selected=!1,this.menuItemController=new y$(this,{getHeadlineElements:()=>this.headlineElements,getSupportingTextElements:()=>this.supportingTextElements,getDefaultElements:()=>this.defaultElements,getInteractiveElement:()=>this.listItemRoot})}get typeaheadText(){return this.menuItemController.typeaheadText}set typeaheadText(e){this.menuItemController.setTypeaheadText(e)}render(){return this.renderListItem(me`
${this.renderRipple()} ${this.renderFocusRing()} @@ -1566,29 +1575,29 @@ function print() { __p += __j.call(arguments, '') } ${this.renderBody()} - `)}renderListItem(e){const r=this.type==="link";let n;switch(this.menuItemController.tagName){case"a":n=bn`a`;break;case"button":n=bn`button`;break;default:case"li":n=bn`li`;break}const i=r&&this.target?this.target:me;return Pu` + `)}renderListItem(e){const r=this.type==="link";let n;switch(this.menuItemController.tagName){case"a":n=wn`a`;break;case"button":n=wn`button`;break;default:case"li":n=wn`li`;break}const i=r&&this.target?this.target:pe;return ju` <${n} id="item" tabindex=${this.disabled&&!r?-1:0} role=${this.menuItemController.role} - aria-label=${this.ariaLabel||me} - aria-selected=${this.ariaSelected||me} - aria-checked=${this.ariaChecked||me} - aria-expanded=${this.ariaExpanded||me} - aria-haspopup=${this.ariaHasPopup||me} - class="list-item ${Yt(this.getRenderClasses())}" - href=${this.href||me} + aria-label=${this.ariaLabel||pe} + aria-selected=${this.ariaSelected||pe} + aria-checked=${this.ariaChecked||pe} + aria-expanded=${this.ariaExpanded||pe} + aria-haspopup=${this.ariaHasPopup||pe} + class="list-item ${Zt(this.getRenderClasses())}" + href=${this.href||pe} target=${i} @click=${this.menuItemController.onClick} @keydown=${this.menuItemController.onKeydown} >${e} - `}renderRipple(){return ve` `}renderFocusRing(){return ve` `}renderFocusRing(){return me` `}getRenderClasses(){return{disabled:this.disabled,selected:this.selected}}renderBody(){return ve` + inward>`}getRenderClasses(){return{disabled:this.disabled,selected:this.selected}}renderBody(){return me` @@ -1596,8 +1605,8 @@ function print() { __p += __j.call(arguments, '') } - `}focus(){var e;(e=this.listItemRoot)==null||e.focus()}}Xr(En);En.shadowRootOptions={...dt.shadowRootOptions,delegatesFocus:!0};O([H({type:Boolean,reflect:!0})],En.prototype,"disabled",void 0);O([H()],En.prototype,"type",void 0);O([H()],En.prototype,"href",void 0);O([H()],En.prototype,"target",void 0);O([H({type:Boolean,attribute:"keep-open"})],En.prototype,"keepOpen",void 0);O([H({type:Boolean})],En.prototype,"selected",void 0);O([gt(".list-item")],En.prototype,"listItemRoot",void 0);O([Ar({slot:"headline"})],En.prototype,"headlineElements",void 0);O([Ar({slot:"supporting-text"})],En.prototype,"supportingTextElements",void 0);O([v1({slot:""})],En.prototype,"defaultElements",void 0);O([H({attribute:"typeahead-text"})],En.prototype,"typeaheadText",null);const c$=He`:host{display:flex;--md-ripple-hover-color: var(--md-menu-item-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity: var(--md-menu-item-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-menu-item-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity: var(--md-menu-item-pressed-state-layer-opacity, 0.12)}:host([disabled]){opacity:var(--md-menu-item-disabled-opacity, 0.3);pointer-events:none}md-focus-ring{z-index:1;--md-focus-ring-shape: 8px}a,button,li{background:none;border:none;padding:0;margin:0;text-align:unset;text-decoration:none}.list-item{border-radius:inherit;display:flex;flex:1;max-width:inherit;min-width:inherit;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.list-item:not(.disabled){cursor:pointer}[slot=container]{pointer-events:none}md-ripple{border-radius:inherit}md-item{border-radius:inherit;flex:1;color:var(--md-menu-item-label-text-color, var(--md-sys-color-on-surface, #1d1b20));font-family:var(--md-menu-item-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-menu-item-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));line-height:var(--md-menu-item-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));font-weight:var(--md-menu-item-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));min-height:var(--md-menu-item-one-line-container-height, 56px);padding-top:var(--md-menu-item-top-space, 12px);padding-bottom:var(--md-menu-item-bottom-space, 12px);padding-inline-start:var(--md-menu-item-leading-space, 16px);padding-inline-end:var(--md-menu-item-trailing-space, 16px)}md-item[multiline]{min-height:var(--md-menu-item-two-line-container-height, 72px)}[slot=supporting-text]{color:var(--md-menu-item-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-menu-item-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-menu-item-supporting-text-size, var(--md-sys-typescale-body-medium-size, 0.875rem));line-height:var(--md-menu-item-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));font-weight:var(--md-menu-item-supporting-text-weight, var(--md-sys-typescale-body-medium-weight, var(--md-ref-typeface-weight-regular, 400)))}[slot=trailing-supporting-text]{color:var(--md-menu-item-trailing-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-menu-item-trailing-supporting-text-font, var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-menu-item-trailing-supporting-text-size, var(--md-sys-typescale-label-small-size, 0.6875rem));line-height:var(--md-menu-item-trailing-supporting-text-line-height, var(--md-sys-typescale-label-small-line-height, 1rem));font-weight:var(--md-menu-item-trailing-supporting-text-weight, var(--md-sys-typescale-label-small-weight, var(--md-ref-typeface-weight-medium, 500)))}:is([slot=start],[slot=end])::slotted(*){fill:currentColor}[slot=start]{color:var(--md-menu-item-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f))}[slot=end]{color:var(--md-menu-item-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f))}.list-item{background-color:var(--md-menu-item-container-color, transparent)}.list-item.selected{background-color:var(--md-menu-item-selected-container-color, var(--md-sys-color-secondary-container, #e8def8))}.selected:not(.disabled) ::slotted(*){color:var(--md-menu-item-selected-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b))}@media(forced-colors: active){:host([disabled]),:host([disabled]) slot{color:GrayText;opacity:1}.list-item{position:relative}.list-item.selected::before{content:"";position:absolute;inset:0;box-sizing:border-box;border-radius:inherit;pointer-events:none;border:3px double CanvasText}} -`;let nb=class extends En{};nb.styles=[c$];nb=O([ot("md-menu-item")],nb);class Ha extends dt{get item(){return this.items[0]??null}get menu(){return this.menus[0]??null}constructor(){super(),this.anchorCorner=hp.START_END,this.menuCorner=hp.START_START,this.hoverOpenDelay=400,this.hoverCloseDelay=400,this.isSubMenu=!0,this.previousOpenTimeout=0,this.previousCloseTimeout=0,this.onMouseenter=()=>{var e;clearTimeout(this.previousOpenTimeout),clearTimeout(this.previousCloseTimeout),!((e=this.menu)!=null&&e.open)&&(this.hoverOpenDelay?this.previousOpenTimeout=setTimeout(()=>{this.show()},this.hoverOpenDelay):this.show())},this.onMouseleave=()=>{clearTimeout(this.previousCloseTimeout),clearTimeout(this.previousOpenTimeout),this.hoverCloseDelay?this.previousCloseTimeout=setTimeout(()=>{this.close()},this.hoverCloseDelay):this.close()},this.addEventListener("mouseenter",this.onMouseenter),this.addEventListener("mouseleave",this.onMouseleave)}render(){return ve` + `}focus(){var e;(e=this.listItemRoot)==null||e.focus()}}en(Cn);Cn.shadowRootOptions={...ft.shadowRootOptions,delegatesFocus:!0};O([H({type:Boolean,reflect:!0})],Cn.prototype,"disabled",void 0);O([H()],Cn.prototype,"type",void 0);O([H()],Cn.prototype,"href",void 0);O([H()],Cn.prototype,"target",void 0);O([H({type:Boolean,attribute:"keep-open"})],Cn.prototype,"keepOpen",void 0);O([H({type:Boolean})],Cn.prototype,"selected",void 0);O([xt(".list-item")],Cn.prototype,"listItemRoot",void 0);O([Or({slot:"headline"})],Cn.prototype,"headlineElements",void 0);O([Or({slot:"supporting-text"})],Cn.prototype,"supportingTextElements",void 0);O([O1({slot:""})],Cn.prototype,"defaultElements",void 0);O([H({attribute:"typeahead-text"})],Cn.prototype,"typeaheadText",null);const b$=He`:host{display:flex;--md-ripple-hover-color: var(--md-menu-item-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity: var(--md-menu-item-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-menu-item-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity: var(--md-menu-item-pressed-state-layer-opacity, 0.12)}:host([disabled]){opacity:var(--md-menu-item-disabled-opacity, 0.3);pointer-events:none}md-focus-ring{z-index:1;--md-focus-ring-shape: 8px}a,button,li{background:none;border:none;padding:0;margin:0;text-align:unset;text-decoration:none}.list-item{border-radius:inherit;display:flex;flex:1;max-width:inherit;min-width:inherit;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.list-item:not(.disabled){cursor:pointer}[slot=container]{pointer-events:none}md-ripple{border-radius:inherit}md-item{border-radius:inherit;flex:1;color:var(--md-menu-item-label-text-color, var(--md-sys-color-on-surface, #1d1b20));font-family:var(--md-menu-item-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-menu-item-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));line-height:var(--md-menu-item-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));font-weight:var(--md-menu-item-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));min-height:var(--md-menu-item-one-line-container-height, 56px);padding-top:var(--md-menu-item-top-space, 12px);padding-bottom:var(--md-menu-item-bottom-space, 12px);padding-inline-start:var(--md-menu-item-leading-space, 16px);padding-inline-end:var(--md-menu-item-trailing-space, 16px)}md-item[multiline]{min-height:var(--md-menu-item-two-line-container-height, 72px)}[slot=supporting-text]{color:var(--md-menu-item-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-menu-item-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-menu-item-supporting-text-size, var(--md-sys-typescale-body-medium-size, 0.875rem));line-height:var(--md-menu-item-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));font-weight:var(--md-menu-item-supporting-text-weight, var(--md-sys-typescale-body-medium-weight, var(--md-ref-typeface-weight-regular, 400)))}[slot=trailing-supporting-text]{color:var(--md-menu-item-trailing-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-menu-item-trailing-supporting-text-font, var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-menu-item-trailing-supporting-text-size, var(--md-sys-typescale-label-small-size, 0.6875rem));line-height:var(--md-menu-item-trailing-supporting-text-line-height, var(--md-sys-typescale-label-small-line-height, 1rem));font-weight:var(--md-menu-item-trailing-supporting-text-weight, var(--md-sys-typescale-label-small-weight, var(--md-ref-typeface-weight-medium, 500)))}:is([slot=start],[slot=end])::slotted(*){fill:currentColor}[slot=start]{color:var(--md-menu-item-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f))}[slot=end]{color:var(--md-menu-item-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f))}.list-item{background-color:var(--md-menu-item-container-color, transparent)}.list-item.selected{background-color:var(--md-menu-item-selected-container-color, var(--md-sys-color-secondary-container, #e8def8))}.selected:not(.disabled) ::slotted(*){color:var(--md-menu-item-selected-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b))}@media(forced-colors: active){:host([disabled]),:host([disabled]) slot{color:GrayText;opacity:1}.list-item{position:relative}.list-item.selected::before{content:"";position:absolute;inset:0;box-sizing:border-box;border-radius:inherit;pointer-events:none;border:3px double CanvasText}} +`;let gb=class extends Cn{};gb.styles=[b$];gb=O([st("md-menu-item")],gb);class Ja extends ft{get item(){return this.items[0]??null}get menu(){return this.menus[0]??null}constructor(){super(),this.anchorCorner=Tp.START_END,this.menuCorner=Tp.START_START,this.hoverOpenDelay=400,this.hoverCloseDelay=400,this.isSubMenu=!0,this.previousOpenTimeout=0,this.previousCloseTimeout=0,this.onMouseenter=()=>{var e;clearTimeout(this.previousOpenTimeout),clearTimeout(this.previousCloseTimeout),!((e=this.menu)!=null&&e.open)&&(this.hoverOpenDelay?this.previousOpenTimeout=setTimeout(()=>{this.show()},this.hoverOpenDelay):this.show())},this.onMouseleave=()=>{clearTimeout(this.previousCloseTimeout),clearTimeout(this.previousOpenTimeout),this.hoverCloseDelay?this.previousCloseTimeout=setTimeout(()=>{this.close()},this.hoverCloseDelay):this.close()},this.addEventListener("mouseenter",this.onMouseenter),this.addEventListener("mouseleave",this.onMouseleave)}render(){return me` - `}firstUpdated(){this.onSlotchange()}async show(){const e=this.menu;if(!e||e.open)return;e.addEventListener("closed",()=>{this.item.ariaExpanded="false",this.dispatchEvent(jg()),this.dispatchEvent(dh()),e.ariaHidden="true"},{once:!0}),e.positioning==="document"&&(e.positioning="absolute"),e.quick=!0,e.hasOverflow=!0,e.anchorCorner=this.anchorCorner,e.menuCorner=this.menuCorner,e.anchorElement=this.item,e.defaultFocus="first-item",e.removeAttribute("aria-hidden"),e.skipRestoreFocus=!1;const r=e.open;if(e.show(),this.item.ariaExpanded="true",this.item.ariaHasPopup="menu",e.id&&this.item.setAttribute("aria-controls",e.id),this.dispatchEvent(dh()),this.dispatchEvent(Dle()),this.item.selected=!0,!r){let n=o=>{};const i=new Promise(o=>{n=o});e.addEventListener("opened",n,{once:!0}),await i}}async close(){const e=this.menu;if(!e||!e.open)return;this.dispatchEvent(jg()),e.quick=!0,e.close(),this.dispatchEvent(dh());let r=i=>{};const n=new Promise(i=>{r=i});e.addEventListener("closed",r,{once:!0}),await n}onSlotchange(){var r;if(!this.item)return;this.item.ariaExpanded="false",this.item.ariaHasPopup="menu",(r=this.menu)!=null&&r.id&&this.item.setAttribute("aria-controls",this.menu.id),this.item.keepOpen=!0;const e=this.menu;e&&(e.isSubmenu=!0,e.ariaHidden="true")}onClick(){this.show()}async onKeydown(e){const r=this.isSubmenuOpenKey(e.code);if(e.defaultPrevented)return;const n=r&&(Jo.LEFT===e.code||Jo.RIGHT===e.code);if((e.code===Ul.SPACE||n)&&(e.preventDefault(),n&&e.stopPropagation()),!r)return;const i=this.menu;if(!i)return;const o=i.items,a=Cm(o);if(a){await this.show(),a.tabIndex=0,a.focus();return}}onCloseSubmenu(e){const{itemPath:r,reason:n}=e.detail;if(r.push(this.item),this.dispatchEvent(jg()),n.kind===Zy.KEYDOWN&&n.key===eb.ESCAPE){e.stopPropagation(),this.item.dispatchEvent(t$());return}this.dispatchEvent(dh())}async onSubMenuKeydown(e){var i;if(e.defaultPrevented)return;const{close:r,keyCode:n}=this.isSubmenuCloseKey(e.code);r&&(e.preventDefault(),(n===Jo.LEFT||n===Jo.RIGHT)&&e.stopPropagation(),await this.close(),Ele(this.menu.items),(i=this.item)==null||i.focus(),this.item.tabIndex=0,this.item.focus())}isSubmenuOpenKey(e){const n=getComputedStyle(this).direction==="rtl"?Jo.LEFT:Jo.RIGHT;switch(e){case n:case Ul.SPACE:case Ul.ENTER:return!0;default:return!1}}isSubmenuCloseKey(e){const n=getComputedStyle(this).direction==="rtl"?Jo.RIGHT:Jo.LEFT;switch(e){case n:case eb.ESCAPE:return{close:!0,keyCode:e};default:return{close:!1}}}}O([H({attribute:"anchor-corner"})],Ha.prototype,"anchorCorner",void 0);O([H({attribute:"menu-corner"})],Ha.prototype,"menuCorner",void 0);O([H({type:Number,attribute:"hover-open-delay"})],Ha.prototype,"hoverOpenDelay",void 0);O([H({type:Number,attribute:"hover-close-delay"})],Ha.prototype,"hoverCloseDelay",void 0);O([H({type:Boolean,reflect:!0,attribute:"md-sub-menu"})],Ha.prototype,"isSubMenu",void 0);O([Ar({slot:"item",flatten:!0})],Ha.prototype,"items",void 0);O([Ar({slot:"menu",flatten:!0})],Ha.prototype,"menus",void 0);const Ble=He`:host{position:relative;display:flex;flex-direction:column} -`;let ib=class extends Ha{};ib.styles=[Ble];ib=O([ot("md-sub-menu")],ib);class Gs extends dt{constructor(){super(...arguments),this.value=0,this.max=1,this.indeterminate=!1,this.fourColor=!1}render(){const{ariaLabel:e}=this;return ve` + `}firstUpdated(){this.onSlotchange()}async show(){const e=this.menu;if(!e||e.open)return;e.addEventListener("closed",()=>{this.item.ariaExpanded="false",this.dispatchEvent(n_()),this.dispatchEvent(xh()),e.ariaHidden="true"},{once:!0}),e.positioning==="document"&&(e.positioning="absolute"),e.quick=!0,e.hasOverflow=!0,e.anchorCorner=this.anchorCorner,e.menuCorner=this.menuCorner,e.anchorElement=this.item,e.defaultFocus="first-item",e.removeAttribute("aria-hidden"),e.skipRestoreFocus=!1;const r=e.open;if(e.show(),this.item.ariaExpanded="true",this.item.ariaHasPopup="menu",e.id&&this.item.setAttribute("aria-controls",e.id),this.dispatchEvent(xh()),this.dispatchEvent(Jle()),this.item.selected=!0,!r){let n=o=>{};const i=new Promise(o=>{n=o});e.addEventListener("opened",n,{once:!0}),await i}}async close(){const e=this.menu;if(!e||!e.open)return;this.dispatchEvent(n_()),e.quick=!0,e.close(),this.dispatchEvent(xh());let r=i=>{};const n=new Promise(i=>{r=i});e.addEventListener("closed",r,{once:!0}),await n}onSlotchange(){var r;if(!this.item)return;this.item.ariaExpanded="false",this.item.ariaHasPopup="menu",(r=this.menu)!=null&&r.id&&this.item.setAttribute("aria-controls",this.menu.id),this.item.keepOpen=!0;const e=this.menu;e&&(e.isSubmenu=!0,e.ariaHidden="true")}onClick(){this.show()}async onKeydown(e){const r=this.isSubmenuOpenKey(e.code);if(e.defaultPrevented)return;const n=r&&(oa.LEFT===e.code||oa.RIGHT===e.code);if((e.code===Yl.SPACE||n)&&(e.preventDefault(),n&&e.stopPropagation()),!r)return;const i=this.menu;if(!i)return;const o=i.items,a=Mm(o);if(a){await this.show(),a.tabIndex=0,a.focus();return}}onCloseSubmenu(e){const{itemPath:r,reason:n}=e.detail;if(r.push(this.item),this.dispatchEvent(n_()),n.kind===hb.KEYDOWN&&n.key===pb.ESCAPE){e.stopPropagation(),this.item.dispatchEvent(f$());return}this.dispatchEvent(xh())}async onSubMenuKeydown(e){var i;if(e.defaultPrevented)return;const{close:r,keyCode:n}=this.isSubmenuCloseKey(e.code);r&&(e.preventDefault(),(n===oa.LEFT||n===oa.RIGHT)&&e.stopPropagation(),await this.close(),Vle(this.menu.items),(i=this.item)==null||i.focus(),this.item.tabIndex=0,this.item.focus())}isSubmenuOpenKey(e){const n=getComputedStyle(this).direction==="rtl"?oa.LEFT:oa.RIGHT;switch(e){case n:case Yl.SPACE:case Yl.ENTER:return!0;default:return!1}}isSubmenuCloseKey(e){const n=getComputedStyle(this).direction==="rtl"?oa.RIGHT:oa.LEFT;switch(e){case n:case pb.ESCAPE:return{close:!0,keyCode:e};default:return{close:!1}}}}O([H({attribute:"anchor-corner"})],Ja.prototype,"anchorCorner",void 0);O([H({attribute:"menu-corner"})],Ja.prototype,"menuCorner",void 0);O([H({type:Number,attribute:"hover-open-delay"})],Ja.prototype,"hoverOpenDelay",void 0);O([H({type:Number,attribute:"hover-close-delay"})],Ja.prototype,"hoverCloseDelay",void 0);O([H({type:Boolean,reflect:!0,attribute:"md-sub-menu"})],Ja.prototype,"isSubMenu",void 0);O([Or({slot:"item",flatten:!0})],Ja.prototype,"items",void 0);O([Or({slot:"menu",flatten:!0})],Ja.prototype,"menus",void 0);const oce=He`:host{position:relative;display:flex;flex-direction:column} +`;let _b=class extends Ja{};_b.styles=[oce];_b=O([st("md-sub-menu")],_b);class nl extends ft{constructor(){super(...arguments),this.value=0,this.max=1,this.indeterminate=!1,this.fourColor=!1}render(){const{ariaLabel:e}=this;return me`
${this.renderIndicator()}
- `}getRenderClasses(){return{indeterminate:this.indeterminate,"four-color":this.fourColor}}}Xr(Gs);O([H({type:Number})],Gs.prototype,"value",void 0);O([H({type:Number})],Gs.prototype,"max",void 0);O([H({type:Boolean})],Gs.prototype,"indeterminate",void 0);O([H({type:Boolean,attribute:"four-color"})],Gs.prototype,"fourColor",void 0);class Ule extends Gs{renderIndicator(){return this.indeterminate?this.renderIndeterminateContainer():this.renderDeterminateContainer()}renderDeterminateContainer(){const e=(1-this.value/this.max)*100;return ve` + `}getRenderClasses(){return{indeterminate:this.indeterminate,"four-color":this.fourColor}}}en(nl);O([H({type:Number})],nl.prototype,"value",void 0);O([H({type:Number})],nl.prototype,"max",void 0);O([H({type:Boolean})],nl.prototype,"indeterminate",void 0);O([H({type:Boolean,attribute:"four-color"})],nl.prototype,"fourColor",void 0);class ace extends nl{renderIndicator(){return this.indeterminate?this.renderIndeterminateContainer():this.renderDeterminateContainer()}renderDeterminateContainer(){const e=(1-this.value/this.max)*100;return me` - `}renderIndeterminateContainer(){return ve`
+ `}renderIndeterminateContainer(){return me`
-
`}}const Vle=He`:host{--_active-indicator-color: var(--md-circular-progress-active-indicator-color, var(--md-sys-color-primary, #6750a4));--_active-indicator-width: var(--md-circular-progress-active-indicator-width, 10);--_four-color-active-indicator-four-color: var(--md-circular-progress-four-color-active-indicator-four-color, var(--md-sys-color-tertiary-container, #ffd8e4));--_four-color-active-indicator-one-color: var(--md-circular-progress-four-color-active-indicator-one-color, var(--md-sys-color-primary, #6750a4));--_four-color-active-indicator-three-color: var(--md-circular-progress-four-color-active-indicator-three-color, var(--md-sys-color-tertiary, #7d5260));--_four-color-active-indicator-two-color: var(--md-circular-progress-four-color-active-indicator-two-color, var(--md-sys-color-primary-container, #eaddff));--_size: var(--md-circular-progress-size, 48px);display:inline-flex;vertical-align:middle;width:var(--_size);height:var(--_size);position:relative;align-items:center;justify-content:center;contain:strict;content-visibility:auto}.progress{flex:1;align-self:stretch;margin:4px}.progress,.spinner,.left,.right,.circle,svg,.track,.active-track{position:absolute;inset:0}svg{transform:rotate(-90deg)}circle{cx:50%;cy:50%;r:calc(50%*(1 - var(--_active-indicator-width)/100));stroke-width:calc(var(--_active-indicator-width)*1%);stroke-dasharray:100;fill:rgba(0,0,0,0)}.active-track{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1);stroke:var(--_active-indicator-color)}.track{stroke:rgba(0,0,0,0)}.progress.indeterminate{animation:linear infinite linear-rotate;animation-duration:1568.2352941176ms}.spinner{animation:infinite both rotate-arc;animation-duration:5332ms;animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.left{overflow:hidden;inset:0 50% 0 0}.right{overflow:hidden;inset:0 0 0 50%}.circle{box-sizing:border-box;border-radius:50%;border:solid calc(var(--_active-indicator-width)/100*(var(--_size) - 8px));border-color:var(--_active-indicator-color) var(--_active-indicator-color) rgba(0,0,0,0) rgba(0,0,0,0);animation:expand-arc;animation-iteration-count:infinite;animation-fill-mode:both;animation-duration:1333ms,5332ms;animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.four-color .circle{animation-name:expand-arc,four-color}.left .circle{rotate:135deg;inset:0 -100% 0 0}.right .circle{rotate:100deg;inset:0 0 0 -100%;animation-delay:-666.5ms,0ms}@media(forced-colors: active){.active-track{stroke:CanvasText}.circle{border-color:CanvasText CanvasText Canvas Canvas}}@keyframes expand-arc{0%{transform:rotate(265deg)}50%{transform:rotate(130deg)}100%{transform:rotate(265deg)}}@keyframes rotate-arc{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes linear-rotate{to{transform:rotate(360deg)}}@keyframes four-color{0%{border-top-color:var(--_four-color-active-indicator-one-color);border-right-color:var(--_four-color-active-indicator-one-color)}15%{border-top-color:var(--_four-color-active-indicator-one-color);border-right-color:var(--_four-color-active-indicator-one-color)}25%{border-top-color:var(--_four-color-active-indicator-two-color);border-right-color:var(--_four-color-active-indicator-two-color)}40%{border-top-color:var(--_four-color-active-indicator-two-color);border-right-color:var(--_four-color-active-indicator-two-color)}50%{border-top-color:var(--_four-color-active-indicator-three-color);border-right-color:var(--_four-color-active-indicator-three-color)}65%{border-top-color:var(--_four-color-active-indicator-three-color);border-right-color:var(--_four-color-active-indicator-three-color)}75%{border-top-color:var(--_four-color-active-indicator-four-color);border-right-color:var(--_four-color-active-indicator-four-color)}90%{border-top-color:var(--_four-color-active-indicator-four-color);border-right-color:var(--_four-color-active-indicator-four-color)}100%{border-top-color:var(--_four-color-active-indicator-one-color);border-right-color:var(--_four-color-active-indicator-one-color)}} -`;let ob=class extends Ule{};ob.styles=[Vle];ob=O([ot("md-circular-progress")],ob);class d$ extends Gs{constructor(){super(...arguments),this.buffer=0}renderIndicator(){const e={transform:`scaleX(${(this.indeterminate?1:this.value/this.max)*100}%)`},r=this.buffer??0,n=r>0,o={transform:`scaleX(${(this.indeterminate||!n?1:r/this.max)*100}%)`},a=this.indeterminate||!n||r>=this.max||this.value>=this.max;return ve` +
`}}const sce=He`:host{--_active-indicator-color: var(--md-circular-progress-active-indicator-color, var(--md-sys-color-primary, #6750a4));--_active-indicator-width: var(--md-circular-progress-active-indicator-width, 10);--_four-color-active-indicator-four-color: var(--md-circular-progress-four-color-active-indicator-four-color, var(--md-sys-color-tertiary-container, #ffd8e4));--_four-color-active-indicator-one-color: var(--md-circular-progress-four-color-active-indicator-one-color, var(--md-sys-color-primary, #6750a4));--_four-color-active-indicator-three-color: var(--md-circular-progress-four-color-active-indicator-three-color, var(--md-sys-color-tertiary, #7d5260));--_four-color-active-indicator-two-color: var(--md-circular-progress-four-color-active-indicator-two-color, var(--md-sys-color-primary-container, #eaddff));--_size: var(--md-circular-progress-size, 48px);display:inline-flex;vertical-align:middle;width:var(--_size);height:var(--_size);position:relative;align-items:center;justify-content:center;contain:strict;content-visibility:auto}.progress{flex:1;align-self:stretch;margin:4px}.progress,.spinner,.left,.right,.circle,svg,.track,.active-track{position:absolute;inset:0}svg{transform:rotate(-90deg)}circle{cx:50%;cy:50%;r:calc(50%*(1 - var(--_active-indicator-width)/100));stroke-width:calc(var(--_active-indicator-width)*1%);stroke-dasharray:100;fill:rgba(0,0,0,0)}.active-track{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1);stroke:var(--_active-indicator-color)}.track{stroke:rgba(0,0,0,0)}.progress.indeterminate{animation:linear infinite linear-rotate;animation-duration:1568.2352941176ms}.spinner{animation:infinite both rotate-arc;animation-duration:5332ms;animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.left{overflow:hidden;inset:0 50% 0 0}.right{overflow:hidden;inset:0 0 0 50%}.circle{box-sizing:border-box;border-radius:50%;border:solid calc(var(--_active-indicator-width)/100*(var(--_size) - 8px));border-color:var(--_active-indicator-color) var(--_active-indicator-color) rgba(0,0,0,0) rgba(0,0,0,0);animation:expand-arc;animation-iteration-count:infinite;animation-fill-mode:both;animation-duration:1333ms,5332ms;animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.four-color .circle{animation-name:expand-arc,four-color}.left .circle{rotate:135deg;inset:0 -100% 0 0}.right .circle{rotate:100deg;inset:0 0 0 -100%;animation-delay:-666.5ms,0ms}@media(forced-colors: active){.active-track{stroke:CanvasText}.circle{border-color:CanvasText CanvasText Canvas Canvas}}@keyframes expand-arc{0%{transform:rotate(265deg)}50%{transform:rotate(130deg)}100%{transform:rotate(265deg)}}@keyframes rotate-arc{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes linear-rotate{to{transform:rotate(360deg)}}@keyframes four-color{0%{border-top-color:var(--_four-color-active-indicator-one-color);border-right-color:var(--_four-color-active-indicator-one-color)}15%{border-top-color:var(--_four-color-active-indicator-one-color);border-right-color:var(--_four-color-active-indicator-one-color)}25%{border-top-color:var(--_four-color-active-indicator-two-color);border-right-color:var(--_four-color-active-indicator-two-color)}40%{border-top-color:var(--_four-color-active-indicator-two-color);border-right-color:var(--_four-color-active-indicator-two-color)}50%{border-top-color:var(--_four-color-active-indicator-three-color);border-right-color:var(--_four-color-active-indicator-three-color)}65%{border-top-color:var(--_four-color-active-indicator-three-color);border-right-color:var(--_four-color-active-indicator-three-color)}75%{border-top-color:var(--_four-color-active-indicator-four-color);border-right-color:var(--_four-color-active-indicator-four-color)}90%{border-top-color:var(--_four-color-active-indicator-four-color);border-right-color:var(--_four-color-active-indicator-four-color)}100%{border-top-color:var(--_four-color-active-indicator-one-color);border-right-color:var(--_four-color-active-indicator-one-color)}} +`;let yb=class extends ace{};yb.styles=[sce];yb=O([st("md-circular-progress")],yb);class x$ extends nl{constructor(){super(...arguments),this.buffer=0}renderIndicator(){const e={transform:`scaleX(${(this.indeterminate?1:this.value/this.max)*100}%)`},r=this.buffer??0,n=r>0,o={transform:`scaleX(${(this.indeterminate||!n?1:r/this.max)*100}%)`},a=this.indeterminate||!n||r>=this.max||this.value>=this.max;return me`
-
-
+
+
- `}}O([H({type:Number})],d$.prototype,"buffer",void 0);const jle=He`:host{--_active-indicator-color: var(--md-linear-progress-active-indicator-color, var(--md-sys-color-primary, #6750a4));--_active-indicator-height: var(--md-linear-progress-active-indicator-height, 4px);--_four-color-active-indicator-four-color: var(--md-linear-progress-four-color-active-indicator-four-color, var(--md-sys-color-tertiary-container, #ffd8e4));--_four-color-active-indicator-one-color: var(--md-linear-progress-four-color-active-indicator-one-color, var(--md-sys-color-primary, #6750a4));--_four-color-active-indicator-three-color: var(--md-linear-progress-four-color-active-indicator-three-color, var(--md-sys-color-tertiary, #7d5260));--_four-color-active-indicator-two-color: var(--md-linear-progress-four-color-active-indicator-two-color, var(--md-sys-color-primary-container, #eaddff));--_track-color: var(--md-linear-progress-track-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_track-height: var(--md-linear-progress-track-height, 4px);--_track-shape: var(--md-linear-progress-track-shape, var(--md-sys-shape-corner-none, 0px));border-radius:var(--_track-shape);display:flex;position:relative;min-width:80px;height:var(--_track-height);content-visibility:auto;contain:strict}.progress,.dots,.inactive-track,.bar,.bar-inner{position:absolute}.progress{direction:ltr;inset:0;border-radius:inherit;overflow:hidden;display:flex;align-items:center}.bar{animation:none;width:100%;height:var(--_active-indicator-height);transform-origin:left center;transition:transform 250ms cubic-bezier(0.4, 0, 0.6, 1)}.secondary-bar{display:none}.bar-inner{inset:0;animation:none;background:var(--_active-indicator-color)}.inactive-track{background:var(--_track-color);inset:0;transition:transform 250ms cubic-bezier(0.4, 0, 0.6, 1);transform-origin:left center}.dots{inset:0;animation:linear infinite 250ms;animation-name:buffering;background-color:var(--_track-color);background-repeat:repeat-x;-webkit-mask-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E");z-index:-1}.dots[hidden]{display:none}.indeterminate .bar{transition:none}.indeterminate .primary-bar{inset-inline-start:-145.167%}.indeterminate .secondary-bar{inset-inline-start:-54.8889%;display:block}.indeterminate .primary-bar{animation:linear infinite 2s;animation-name:primary-indeterminate-translate}.indeterminate .primary-bar>.bar-inner{animation:linear infinite 2s primary-indeterminate-scale}.indeterminate.four-color .primary-bar>.bar-inner{animation-name:primary-indeterminate-scale,four-color;animation-duration:2s,4s}.indeterminate .secondary-bar{animation:linear infinite 2s;animation-name:secondary-indeterminate-translate}.indeterminate .secondary-bar>.bar-inner{animation:linear infinite 2s secondary-indeterminate-scale}.indeterminate.four-color .secondary-bar>.bar-inner{animation-name:secondary-indeterminate-scale,four-color;animation-duration:2s,4s}:host(:dir(rtl)){transform:scale(-1)}@keyframes primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.00432);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes buffering{0%{transform:translateX(calc(var(--_track-height) / 2 * 5))}}@keyframes primary-indeterminate-translate{0%{transform:translateX(0px)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0px)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.6714%)}100%{transform:translateX(200.611%)}}@keyframes secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0px)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.6519%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.3862%)}100%{transform:translateX(160.278%)}}@keyframes four-color{0%{background:var(--_four-color-active-indicator-one-color)}15%{background:var(--_four-color-active-indicator-one-color)}25%{background:var(--_four-color-active-indicator-two-color)}40%{background:var(--_four-color-active-indicator-two-color)}50%{background:var(--_four-color-active-indicator-three-color)}65%{background:var(--_four-color-active-indicator-three-color)}75%{background:var(--_four-color-active-indicator-four-color)}90%{background:var(--_four-color-active-indicator-four-color)}100%{background:var(--_four-color-active-indicator-one-color)}}@media(forced-colors: active){:host{outline:1px solid CanvasText}.bar-inner,.dots{background-color:CanvasText}} -`;let ab=class extends d${};ab.styles=[jle];ab=O([ot("md-linear-progress")],ab);const uh=Symbol("isFocusable"),Hg=Symbol("privateIsFocusable"),fh=Symbol("externalTabIndex"),hh=Symbol("isUpdatingTabIndex"),ph=Symbol("updateTabIndex");function u$(t){var e,r,n;class i extends t{constructor(){super(...arguments),this[e]=!0,this[r]=null,this[n]=!1}get[uh](){return this[Hg]}set[uh](a){this[uh]!==a&&(this[Hg]=a,this[ph]())}connectedCallback(){super.connectedCallback(),this[ph]()}attributeChangedCallback(a,l,d){if(a!=="tabindex"){super.attributeChangedCallback(a,l,d);return}if(this.requestUpdate("tabIndex",Number(l??-1)),!this[hh]){if(!this.hasAttribute("tabindex")){this[fh]=null,this[ph]();return}this[fh]=this.tabIndex}}[(e=Hg,r=fh,n=hh,ph)](){const a=this[uh]?0:-1,l=this[fh]??a;this[hh]=!0,this.tabIndex=l,this[hh]=!1}}return O([H({noAccessor:!0})],i.prototype,"tabIndex",void 0),i}class Hle extends wm{computeValidity(e){this.radioElement||(this.radioElement=document.createElement("input"),this.radioElement.type="radio",this.radioElement.name="group");let r=!1,n=!1;for(const{checked:i,required:o}of e)o&&(r=!0),i&&(n=!0);return this.radioElement.checked=n,this.radioElement.required=r,{validity:{valueMissing:r&&!n},validationMessage:this.radioElement.validationMessage}}equals(e,r){if(e.length!==r.length)return!1;for(let n=0;n({checked:r,required:n}))}}class Wle{get controls(){const e=this.host.getAttribute("name");return!e||!this.root||!this.host.isConnected?[this.host]:Array.from(this.root.querySelectorAll(`[name="${e}"]`))}constructor(e){this.host=e,this.focused=!1,this.root=null,this.handleFocusIn=()=>{this.focused=!0,this.updateTabIndices()},this.handleFocusOut=()=>{this.focused=!1,this.updateTabIndices()},this.handleKeyDown=r=>{const n=r.key==="ArrowDown",i=r.key==="ArrowUp",o=r.key==="ArrowLeft",a=r.key==="ArrowRight";if(!o&&!a&&!n&&!i)return;const l=this.controls;if(!l.length)return;r.preventDefault();const u=getComputedStyle(this.host).direction==="rtl"?o||n:a||n,f=l.indexOf(this.host);let g=u?f+1:f-1;for(;g!==f;){g>=l.length?g=0:g<0&&(g=l.length-1);const y=l[g];if(y.hasAttribute("disabled")){u?g++:g--;continue}for(const x of l)x!==y&&(x.checked=!1,x.tabIndex=-1,x.blur());y.checked=!0,y.tabIndex=0,y.focus(),y.dispatchEvent(new Event("change",{bubbles:!0}));break}}}hostConnected(){this.root=this.host.getRootNode(),this.host.addEventListener("keydown",this.handleKeyDown),this.host.addEventListener("focusin",this.handleFocusIn),this.host.addEventListener("focusout",this.handleFocusOut),this.host.checked&&this.uncheckSiblings(),this.updateTabIndices()}hostDisconnected(){this.host.removeEventListener("keydown",this.handleKeyDown),this.host.removeEventListener("focusin",this.handleFocusIn),this.host.removeEventListener("focusout",this.handleFocusOut),this.updateTabIndices(),this.root=null}handleCheckedChange(){this.host.checked&&(this.uncheckSiblings(),this.updateTabIndices())}uncheckSiblings(){for(const e of this.controls)e!==this.host&&(e.checked=!1)}updateTabIndices(){const e=this.controls,r=e.find(n=>n.checked);if(r||this.focused){const n=r||this.host;n.tabIndex=0;for(const i of e)i!==n&&(i.tabIndex=-1);return}for(const n of e)n.tabIndex=0}}var Q5;const Wg=Symbol("checked");let Gle=0;const Qle=$u(xc(ja(u$(dt))));class Ru extends Qle{get checked(){return this[Wg]}set checked(e){const r=this.checked;r!==e&&(this[Wg]=e,this.requestUpdate("checked",r),this.selectionController.handleCheckedChange())}constructor(){super(),this.maskId=`cutout${++Gle}`,this[Q5]=!1,this.required=!1,this.value="on",this.selectionController=new Wle(this),this.addController(this.selectionController),this[Br].role="radio",this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("keydown",this.handleKeydown.bind(this))}render(){const e={checked:this.checked};return ve` -