@vokril/ui-solid 0.27.0 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +33 -0
- package/README.md +19 -1
- package/dist/{AttributeGrid-XTVaiwLe.js → AttributeGrid-CASILa4u.js} +3 -3
- package/dist/{AttributeGrid-Qzt5LYnu.cjs → AttributeGrid-eND8YDby.cjs} +1 -1
- package/dist/{Button-U95Tz8F5.cjs → Button-Bb68ymNP.cjs} +1 -1
- package/dist/{Button-qtxB2SYf.js → Button-D-T0tyGF.js} +1 -1
- package/dist/CommandPalette-5FQRgPG9.cjs +2 -0
- package/dist/CommandPalette-Cj618AOz.js +4017 -0
- package/dist/{CopyButton-CsM8UeX5.cjs → CopyButton-B5gS2ft3.cjs} +1 -1
- package/dist/{CopyButton-NfxWzVHT.js → CopyButton-g-WSiBDZ.js} +1 -1
- package/dist/{DateRangePicker-C8IVJRT2.js → DateRangePicker-CJD9ADgB.js} +3 -3
- package/dist/{DateRangePicker-BKHxyHL4.cjs → DateRangePicker-Frc0HVxp.cjs} +1 -1
- package/dist/{GuidedTour-B61cbsdy.cjs → GuidedTour-B6q7lYhn.cjs} +1 -1
- package/dist/{GuidedTour-Dj41FCdE.js → GuidedTour-CFCvRJN4.js} +3 -3
- package/dist/{IconPicker-BZCQG8SO.cjs → IconPicker-CIbJb1ei.cjs} +1 -1
- package/dist/{IconPicker-DC9E35Ou.js → IconPicker-DYqNi5ud.js} +3 -3
- package/dist/{Modal-CaurOG_K.cjs → Modal-CY6ePolt.cjs} +1 -1
- package/dist/{Modal-DJpQqqTJ.js → Modal-NzZzHSwb.js} +2 -2
- package/dist/{PageSkeleton-DICmahMs.cjs → PageSkeleton-BPbb28-H.cjs} +1 -1
- package/dist/{PageSkeleton-C0eVQO20.js → PageSkeleton-CLnJO6uD.js} +3 -3
- package/dist/{SearchableSelect-DayP1Qs6.js → SearchableSelect-BvCm4enQ.js} +2 -2
- package/dist/{SearchableSelect-ClrAX2hK.cjs → SearchableSelect-CVqdVMOC.cjs} +1 -1
- package/dist/StatusBarNotificationBell-CJ3HuhRu.cjs +50 -0
- package/dist/{StatusBarNotificationBell-BRnCKU72.js → StatusBarNotificationBell-yryWdwyX.js} +4324 -3998
- package/dist/{Stepper-DTuchuOX.cjs → Stepper-Ci5JpLbS.cjs} +1 -1
- package/dist/{Stepper-aiuAdbkl.js → Stepper-D9i1Xclm.js} +1 -1
- package/dist/{TimeSeriesChart-SHx_cp8y.js → TimeSeriesChart-DOwi2lJs.js} +1 -1
- package/dist/{TimeSeriesChart-CvU0lxar.cjs → TimeSeriesChart-huvheefm.cjs} +1 -1
- package/dist/{ToggleButton-BcHNAGPy.cjs → ToggleButton-BFWh1_o5.cjs} +1 -1
- package/dist/{ToggleButton-BhP17bvW.js → ToggleButton-CFM8P3JY.js} +4 -4
- package/dist/_internal/contract/browser/workspace.d.cts +4 -0
- package/dist/_internal/contract/browser/workspace.d.ts +4 -0
- package/dist/_internal/contract/notification.d.cts +63 -4
- package/dist/_internal/contract/notification.d.ts +63 -4
- package/dist/_internal/contract/notificationCatalog.d.cts +7 -1
- package/dist/_internal/contract/notificationCatalog.d.ts +7 -1
- package/dist/base.css +4 -7
- package/dist/charts/index.cjs +1 -1
- package/dist/charts/index.js +1 -1
- package/dist/{createDialogShellFocus-Vv3hhW-I.js → createDialogShellFocus-B4piXDU4.js} +1 -1
- package/dist/{createDialogShellFocus-CsrZ2GDZ.cjs → createDialogShellFocus-CJaw9-B9.cjs} +1 -1
- package/dist/{createResizableSidebar-DnHgvr7P.js → createResizableSidebar-BDUlX9-G.js} +3 -3
- package/dist/{createResizableSidebar-CeksJQ9Q.cjs → createResizableSidebar-BVJBU2kP.cjs} +1 -1
- package/dist/de-BqFZ0Ac8.cjs +1 -0
- package/dist/{server/de-CEltsqV5.js → de-q3NXnC0J.js} +27 -25
- package/dist/desktop/index.cjs +1 -1
- package/dist/desktop/index.js +1 -1
- package/dist/feedback/index.cjs +1 -1
- package/dist/feedback/index.js +2 -2
- package/dist/forms/index.cjs +1 -1
- package/dist/forms/index.js +7 -7
- package/dist/grid/index.cjs +1 -1
- package/dist/grid/index.js +1 -1
- package/dist/host/index.cjs +1 -1
- package/dist/host/index.js +1 -1
- package/dist/i18n/index.cjs +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/messageKeys.d.cts +1 -1
- package/dist/i18n/messageKeys.d.ts +1 -1
- package/dist/{i18n-DW9kcu0G.js → i18n-CBlUGOyu.js} +2 -2
- package/dist/{server/i18n-DZ0JlZal.cjs → i18n-D3s-a2a0.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +199 -196
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.js +2 -2
- package/dist/navigation/index.cjs +1 -1
- package/dist/navigation/index.js +1 -1
- package/dist/notifications/NotificationItem.d.cts +15 -1
- package/dist/notifications/NotificationItem.d.ts +15 -1
- package/dist/notifications/RunningProgressCards.d.cts +20 -0
- package/dist/notifications/RunningProgressCards.d.ts +20 -0
- package/dist/notifications/StatusBarNotificationBell.d.cts +17 -5
- package/dist/notifications/StatusBarNotificationBell.d.ts +17 -5
- package/dist/notifications/createNotificationPreviewRuntime.d.cts +2 -2
- package/dist/notifications/createNotificationPreviewRuntime.d.ts +2 -2
- package/dist/notifications/dismissableToastIds.d.cts +4 -1
- package/dist/notifications/dismissableToastIds.d.ts +4 -1
- package/dist/notifications/fireNotification.d.cts +33 -1
- package/dist/notifications/fireNotification.d.ts +33 -1
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.d.cts +1 -1
- package/dist/notifications/index.d.ts +1 -1
- package/dist/notifications/index.js +43 -40
- package/dist/notifications/nativeEngine.d.cts +88 -5
- package/dist/notifications/nativeEngine.d.ts +88 -5
- package/dist/notifications/notificationCardServices.d.cts +4 -1
- package/dist/notifications/notificationCardServices.d.ts +4 -1
- package/dist/notifications/notificationCommands.d.cts +16 -4
- package/dist/notifications/notificationCommands.d.ts +16 -4
- package/dist/notifications/notificationOverlaySnapshot.d.cts +1 -0
- package/dist/notifications/notificationOverlaySnapshot.d.ts +1 -0
- package/dist/notifications/notificationService.d.cts +26 -0
- package/dist/notifications/notificationService.d.ts +26 -0
- package/dist/notifications/quietHours.d.cts +10 -0
- package/dist/notifications/quietHours.d.ts +10 -0
- package/dist/notifications/toast.d.cts +32 -1
- package/dist/notifications/toast.d.ts +32 -1
- package/dist/overlay/ConfirmDialog.d.cts +68 -2
- package/dist/overlay/ConfirmDialog.d.ts +68 -2
- package/dist/overlay/index.cjs +1 -1
- package/dist/overlay/index.js +4 -4
- package/dist/{rowSource-C43bEUD4.js → rowSource-D__7o4h0.js} +1 -1
- package/dist/{rowSource-Dg-jndEu.cjs → rowSource-DiwTu_r8.cjs} +1 -1
- package/dist/server/{AttributeGrid-C_CvCXpC.cjs → AttributeGrid-B7sb3btp.cjs} +1 -1
- package/dist/server/{AttributeGrid-D8QYVZDq.js → AttributeGrid-CMi-UtWb.js} +3 -3
- package/dist/server/{Button-VKl-_GaO.cjs → Button-0AXWRw9Q.cjs} +1 -1
- package/dist/server/{Button-BPNNFcHc.js → Button-3yNrnn4P.js} +1 -1
- package/dist/server/{CommandPalette-COVjWlx9.js → CommandPalette-CozogFlk.js} +980 -947
- package/dist/server/CommandPalette-DQK6N98N.cjs +1 -0
- package/dist/server/{CopyButton-HDffWzaN.js → CopyButton-B6xd9Z6j.js} +1 -1
- package/dist/server/{CopyButton-rWDnbTBF.cjs → CopyButton-D8IN6Vnd.cjs} +1 -1
- package/dist/server/{DateRangePicker-Dl3zr-PD.js → DateRangePicker-C35q8BTw.js} +2 -2
- package/dist/server/{DateRangePicker-Dq0HGz27.cjs → DateRangePicker-KLZzyuPJ.cjs} +1 -1
- package/dist/server/{GuidedTour-BoPGRyX5.cjs → GuidedTour-DfV0yzqh.cjs} +1 -1
- package/dist/server/{GuidedTour-CIlHyRcR.js → GuidedTour-DmLbBttx.js} +3 -3
- package/dist/server/{IconPicker-BDS92veL.cjs → IconPicker-B1soopAp.cjs} +1 -1
- package/dist/server/{IconPicker-CZxYKJOT.js → IconPicker-B4aXspLw.js} +4 -4
- package/dist/server/{Modal-j54-C2Md.js → Modal-BheFQLs1.js} +2 -2
- package/dist/server/{Modal-CtJFoR96.cjs → Modal-BswxV8Pn.cjs} +1 -1
- package/dist/server/{PageSkeleton-B0V43uDV.cjs → PageSkeleton-DBo7hQq-.cjs} +1 -1
- package/dist/server/{PageSkeleton-BfGfda9G.js → PageSkeleton-DoxlE_bD.js} +3 -3
- package/dist/server/{SearchableSelect-ClQzcYdL.cjs → SearchableSelect-09ECcDlB.cjs} +1 -1
- package/dist/server/{SearchableSelect-DtcMC7Xu.js → SearchableSelect-vjhS4c-H.js} +2 -2
- package/dist/server/{StatusBarNotificationBell-FFpOkyUk.js → StatusBarNotificationBell-DdAdsduo.js} +4340 -4011
- package/dist/server/StatusBarNotificationBell-Z2LmIkM1.cjs +49 -0
- package/dist/server/{Stepper-CCEItuZb.cjs → Stepper-DxNrskdq.cjs} +1 -1
- package/dist/server/{Stepper-B7wf8h9G.js → Stepper-n5f9r-ye.js} +1 -1
- package/dist/server/{TimeSeriesChart-TsaZS7YU.cjs → TimeSeriesChart-BQVXUFoj.cjs} +1 -1
- package/dist/server/{TimeSeriesChart-DjNQiCn_.js → TimeSeriesChart-PAb95s6x.js} +1 -1
- package/dist/server/{ToggleButton-CHaIvApv.js → ToggleButton-FywO2CCI.js} +3 -3
- package/dist/server/{ToggleButton-D6Tux9wG.cjs → ToggleButton-TE3Xf2yD.cjs} +1 -1
- package/dist/server/charts/index.cjs +1 -1
- package/dist/server/charts/index.js +1 -1
- package/dist/server/{createResizableSidebar-Dn9UMUf_.js → createResizableSidebar-BImbKlLe.js} +3 -3
- package/dist/server/{createResizableSidebar-B0NDaq7D.cjs → createResizableSidebar-GFgZIj-5.cjs} +1 -1
- package/dist/server/de-BqFZ0Ac8.cjs +1 -0
- package/dist/{de-CEltsqV5.js → server/de-q3NXnC0J.js} +27 -25
- package/dist/server/desktop/index.cjs +1 -1
- package/dist/server/desktop/index.js +1 -1
- package/dist/server/feedback/index.cjs +1 -1
- package/dist/server/feedback/index.js +2 -2
- package/dist/server/forms/index.cjs +1 -1
- package/dist/server/forms/index.js +6 -6
- package/dist/server/grid/index.cjs +1 -1
- package/dist/server/grid/index.js +1 -1
- package/dist/server/host/index.cjs +1 -1
- package/dist/server/host/index.js +1 -1
- package/dist/server/i18n/index.cjs +1 -1
- package/dist/server/i18n/index.js +1 -1
- package/dist/server/{i18n-DW9kcu0G.js → i18n-CBlUGOyu.js} +2 -2
- package/dist/{i18n-DZ0JlZal.cjs → server/i18n-D3s-a2a0.cjs} +1 -1
- package/dist/server/{index-BfR3Xipt.cjs → index-2mQPVEDR.cjs} +1 -1
- package/dist/server/{index-Wv18Fcu8.js → index-UIjsx3oJ.js} +1 -1
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +143 -140
- package/dist/server/layout/index.cjs +1 -1
- package/dist/server/layout/index.js +2 -2
- package/dist/server/navigation/index.cjs +1 -1
- package/dist/server/navigation/index.js +1 -1
- package/dist/server/notifications/index.cjs +1 -1
- package/dist/server/notifications/index.js +43 -40
- package/dist/server/overlay/index.cjs +1 -1
- package/dist/server/overlay/index.js +3 -3
- package/dist/server/{rowSource-CYYdnUFl.js → rowSource-D-wcDmFU.js} +1 -1
- package/dist/server/{rowSource-DoBeEg9N.cjs → rowSource-DltiY0o3.cjs} +1 -1
- package/dist/server/{tr-CxuAFkCi.js → tr-C_dUz00P.js} +32 -30
- package/dist/server/tr-D7bwe7tl.cjs +1 -0
- package/dist/server/tree/index.cjs +1 -1
- package/dist/server/tree/index.js +1 -1
- package/dist/solid/i18n/locales/de.json +2 -0
- package/dist/solid/i18n/locales/tr.json +2 -0
- package/dist/solid/notifications/NotificationHost.jsx +5 -4
- package/dist/solid/notifications/NotificationItem.jsx +40 -15
- package/dist/solid/notifications/NotificationPanel.jsx +8 -3
- package/dist/solid/notifications/NotificationsCenter.jsx +4 -1
- package/dist/solid/notifications/RunningProgressCards.jsx +29 -0
- package/dist/solid/notifications/StatusBarNotificationBell.jsx +44 -17
- package/dist/solid/notifications/StatusBarNotificationBell.module.css.js +1 -0
- package/dist/solid/notifications/catalogAdapter.js +2 -1
- package/dist/solid/notifications/createNotificationPreviewRuntime.js +49 -35
- package/dist/solid/notifications/fireNotification.js +53 -27
- package/dist/solid/notifications/index.js +1 -1
- package/dist/solid/notifications/nativeEngine.js +129 -26
- package/dist/solid/notifications/notificationCardServices.js +1 -1
- package/dist/solid/notifications/notificationOverlaySnapshot.js +2 -0
- package/dist/solid/notifications/notificationOverlaySync.js +1 -0
- package/dist/solid/notifications/notificationService.js +46 -0
- package/dist/solid/notifications/quietHours.js +18 -0
- package/dist/solid/notifications/toast.js +30 -11
- package/dist/solid/overlay/ConfirmDialog.jsx +57 -17
- package/dist/solid/overlay/ConfirmDialog.module.css.js +1 -0
- package/dist/style.css +5 -8
- package/dist/theme.css +4 -7
- package/dist/tokens/tokens.css +4 -7
- package/dist/{tr-CxuAFkCi.js → tr-C_dUz00P.js} +32 -30
- package/dist/tr-D7bwe7tl.cjs +1 -0
- package/dist/tree/index.cjs +1 -1
- package/dist/tree/index.js +1 -1
- package/dist/ui.css +1 -1
- package/package.json +4 -6
- package/dist/CommandPalette-Bf8flX2t.cjs +0 -2
- package/dist/CommandPalette-CoIdCmZ0.js +0 -3977
- package/dist/StatusBarNotificationBell-B4v__j6s.cjs +0 -50
- package/dist/de-DRobPEJV.cjs +0 -1
- package/dist/server/CommandPalette-C_9Z8gVc.cjs +0 -1
- package/dist/server/StatusBarNotificationBell-D9oc6WVf.cjs +0 -49
- package/dist/server/de-DRobPEJV.cjs +0 -1
- package/dist/server/tr-BDbiY5YD.cjs +0 -1
- package/dist/tr-BDbiY5YD.cjs +0 -1
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";var $s=Object.defineProperty;var Vs=(e,t,n)=>t in e?$s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Te=(e,t,n)=>Vs(e,typeof t!="symbol"?t+"":t,n);const dt=require("./electronBridge-cT0xww92.cjs"),go=require("./bugIndicatingError-D2X5Hfgg.cjs"),K=require("./useSettingsSubscription-DKjCwmRd.cjs"),S=require("./i18n-D3s-a2a0.cjs"),Rt=require("./errorHandler-DoDAPpv2.cjs"),a=require("solid-js/web"),m=require("solid-js"),Bu=require("solid-js/store"),Wr=require("./createDialogShellFocus-BiBAZOCI.cjs"),Yu=require("./OverlayScrollArea-D4e9D9Nd.cjs"),hi=require("./HostPortal-CgJwxt-f.cjs"),qr=require("./HostWindowContext-_VZCt7xE.cjs"),Sn=require("./kitHost-BfJExE1G.cjs"),Mt=require("./builtins-DM7FDxEt.cjs"),Ws=require("./window-_BfSgFGO.cjs"),Eo=require("./prefersReducedMotion-BQp-Q4UR.cjs"),Ct=require("./keys-GMxY2wcl.cjs"),it=require("./mainRealmDom-DwZVMPnO.cjs"),Yr=require("./Input-CjvD8w18.cjs"),vn=require("./GuidedTour-DfV0yzqh.cjs"),Kr=require("./DesktopContextMenuContext-DMGNVjaR.cjs"),Fe=require("./Button-0AXWRw9Q.cjs"),Bn=require("./DateRangePicker-KLZzyuPJ.cjs"),Se=require("./VpTrash-D49oUUJh.cjs"),qs=require("./VpDots-ZiJ27JK9.cjs"),Ys=require("./VpCheck-CGTZXiSk.cjs"),Ks=require("./VpCopy-DsiWuj67.cjs"),Xs=require("./VpMinus-DUPk_dTT.cjs"),Tn=require("./Popover-BsxIKBbl.cjs"),js=require("./isOneOf-9EXOSYJu.cjs"),Zs=require("./windowRegistry-CxXtP-iY.cjs"),fr=require("./iconScale.module-CzmKG1rf.cjs"),bo=require("./VpAlertTriangle-BqDp6ZRi.cjs"),Lr=require("./VpClose-O8jHAcCB.cjs"),Qs=require("./EmptyState-BnAHklc5.cjs"),Js="vk_bar_iSxMW",ec="vk_barCompact_SCRfr",tc="vk_search_P2Oii",nc="vk_dateBtn_v3RN1",Iu={bar:Js,barCompact:ec,search:tc,dateBtn:nc};var uc=['<div class="','">',"","","</div>"];function _o(e){return a.ssr(uc,`${a.escape(Iu.bar,!0)} ${e.compact?a.escape(Iu.barCompact,!0):""} ${a.escape(e.class??"",!0)}`,a.escape(a.createComponent(Yr.Input,{type:"text",get class(){return Iu.search},get placeholder(){return e.searchPlaceholder??S.t("Search…")},get value(){return e.searchValue},onInput:t=>e.onSearchInput(t.currentTarget.value)})),a.escape(a.createComponent(m.Show,{get when(){return e.onDateRangeChange},get children(){return a.createComponent(Bn.DateRangePicker,a.mergeProps({get value(){return e.dateRange??null},onChange:t=>{var n;return(n=e.onDateRangeChange)==null?void 0:n.call(e,t)},get triggerClass(){return Iu.dateBtn}},()=>e.dateRangeAlign?{align:e.dateRangeAlign}:{}))}})),a.escape(e.children))}const Xr=["general","vendor-error","sql-execution","connection","ssh","schema","users","tablespaces","locking","monitoring","source-control","file-system","settings","rss","plugins","workspace","dev"];function mo(e){return js.isOneOf(Xr,e)}const pi={dispose:()=>{}};function Ao(e){return e.id===""}function fu(e,t){if(e.durationMs!==void 0)return e.durationMs;switch(e.severity){case"info":return t.infoDurationMs;case"success":return t.successDurationMs;case"warning":return t.warningDurationMs;case"error":return t.errorDurationMs}}function hu(e,t){if(e.sticky||e.priority==="urgent"||e.priority==="acknowledgment-required"||e.progress&&!e.progress.done||e.severity==="error"&&t.errorsAlwaysSticky||e.severity==="warning"&&t.warningsAlwaysSticky)return!0;const n=e.durationMs;return n!==void 0&&(!Number.isFinite(n)||n<=0)}function Gt(e){return e.progress!==void 0&&e.progress.done!==!0&&e.isolated!==!0}function Ku(e){return e.priority!=="acknowledgment-required"&&e.hidden!==!0}function jr(e){const{getSettings:t,warn:n}=e,u=e.isSilenced??(()=>!1),r=e.isTurnedDown??(()=>!1),i=e.now??(()=>Date.now()),s=e.setTimeout??((N,U)=>window.setTimeout(N,U)),o=e.clearTimeout??(N=>window.clearTimeout(N)),c=e.recordAutoFade,l=new Map,h=new Set,f=new Map,E=new Map;function _(){return[...l.values()].sort((N,U)=>N.createdAt-U.createdAt)}function g(N){const U=t();if(!U.pauseTimerWhileHidden)return!1;const q=_().filter(Ku),ce=Math.max(1,U.maxVisibleNotifications);if(q.length<=ce)return!1;const Ae=q.length-ce,j=q.findIndex(Ye=>Ye.id===N);return j>=0&&j<Ae}function I(){for(const N of l.keys()){if(f.has(N)){g(N)&&C(N);continue}se(N)}}function T(){const N=_();for(const U of Array.from(h))try{U(N)}catch(q){n("a notification engine listener threw:",q)}I()}function w(N){return!!(hu(N,t())||N.hovered||N.focused)}function v(N){return fu(N,t())}function C(N){const U=f.get(N);U!==void 0&&(o(U),f.delete(N))}function k(N){const U=E.get(N);if(U)return U;const q={state:"open",changed:new dt.Emitter};return E.set(N,q),q}function O(N,U){const q=E.get(N);return E.delete(N),q&&(q.state=U),q}function D(N){N&&(N.changed.fire(N.state),N.changed.dispose())}function P(N,U){if(C(N),!l.delete(N))return;const q=O(N,U);T(),D(q)}function W(N){return{...N,hidden:!0,hovered:!1,focused:!1}}function te(N){return{...N,hidden:!1,createdAt:i()}}function _e(N,U){const q=l.get(N);if(!q)return;const ce={...q,...U},Ae=Gt(q)&&!Gt(ce);if(Ae&&u(ce)){P(N,"suppressed");return}l.set(N,Ae&&ce.hidden?te(ce):ce),T(),se(N)}function se(N){C(N);const U=l.get(N);if(!U||w(U)||g(N))return;const q=v(U);if(!Number.isFinite(q)||q<=0)return;const ce=s(()=>{f.delete(N);const Ae=l.get(N);if(!Ae||w(Ae))return;c(Ae.source??"general"),l.delete(N);const j=O(N,"closed");T(),D(j)},q);f.set(N,ce)}let Ce=0;function G(){return Ce+=1,`n-${i().toString(36)}-${Ce.toString(36)}`}const J=800,X=3,le=[];function ke(){const N=i();for(;le.length>0&&(le[0]??0)<N-J;)le.shift();return le.length>=X}function Q(){le.push(i())}function pe(N){return!N||N.length===0?"":N.filter(U=>U.primary).map(U=>`${U.id??""}::${U.label}`).sort().join("|")}function Ie(N){const U=N.source??"",q=pe(N.actions);for(const[ce,Ae]of l)if((Ae.source??"")===U&&Ae.title===N.title&&pe(Ae.actions)===q)return ce;return null}function Oe(N){const U=N.id,q=U??Ie(N),ce=q===null;if(ce&&!U&&ke())return{id:"",update:()=>{},setProgress:()=>{},close:()=>{},state:()=>"suppressed",onDidChangeState:()=>pi};const Ae=q??G(),j=l.get(Ae),Ye={...N,id:Ae,createdAt:(j==null?void 0:j.createdAt)??i(),expanded:(j==null?void 0:j.expanded)??!1,hovered:(j==null?void 0:j.hovered)??!1,focused:(j==null?void 0:j.focused)??!1},Yt=Gt(Ye)&&u(Ye)?W(Ye):j!=null&&j.hidden?te(Ye):Ye;l.set(Ae,Yt);const Ke=k(Ae);return ce&&Q(),T(),se(Ae),{id:Ae,update(st){_e(Ae,st)},setProgress(st){_e(Ae,{progress:st})},close(){P(Ae,"closed")},state:()=>Ke.state,onDidChangeState:(st,Kt)=>Ke.state==="open"?Ke.changed.event(st,Kt):pi}}function We(N){return h.add(N),N(_()),()=>{h.delete(N)}}function $e(N,U){const q=l.get(N);!q||q.hovered===U||(l.set(N,{...q,hovered:U}),T(),U?C(N):se(N))}function ot(N,U){const q=l.get(N);!q||q.focused===U||(l.set(N,{...q,focused:U}),T(),U?C(N):se(N))}function qt(N){const U=l.get(N);U&&(l.set(N,{...U,expanded:!U.expanded}),T(),se(N))}function be(N){P(N,"closed")}function Ot(N){const U=l.get(N);if(U){if(!Gt(U)||r(U)){P(N,"dismissed");return}U.hidden||(l.set(N,W(U)),T())}}function Pt(N){const U=[...l.values()].filter(ce=>ce.hidden!==!0&&N(ce));if(U.length===0)return;for(const ce of U.filter(Gt))l.set(ce.id,W(ce));const q=U.filter(ce=>!Gt(ce)).map(({id:ce})=>(C(ce),l.delete(ce),O(ce,"suppressed")));T();for(const ce of q)D(ce)}function F(N){var U;((U=l.get(N))==null?void 0:U.priority)!=="acknowledgment-required"&&P(N,"suppressed")}function ge(){for(const U of f.keys())C(U);const N=[...E.keys()].map(U=>O(U,"closed"));l.clear(),h.clear();for(const U of N)D(U)}return{notify:Oe,subscribe:We,setHover:$e,setFocus:ot,toggleExpanded:qt,close:be,dismiss:Ot,suppress:Pt,reject:F,dispose:ge}}function Hu(e,t){return t.vendorError===void 0?null:dt.resolveVendorError(e,t.vendorError)}function eu(e){if(e)return[{label:e.label,onClick:e.onClick,primary:!0}]}const rc=200;class To{constructor(t){Te(this,"entries",[]);Te(this,"listeners",new Set);Te(this,"unreadSeq",0);Te(this,"seenSeq",0);Te(this,"unreadListeners",new Set);Te(this,"lastSyncedBadge",-1);this.deps=t}add(t,n,u="general",r="default",i,s){if(!t.trim())return;const o={id:`${Date.now()}-${Math.random().toString(36).slice(2,10)}`,message:Rt.scrubSecrets(t),tone:n,createdAt:Date.now(),source:u,priority:r,...i&&i.length>0?{actions:i}:{},...s?{vendorError:s}:{}};this.write([o,...this.entries]),this.unreadSeq+=1,this.notifyUnread()}subscribe(t){return this.listeners.add(t),t([...this.entries]),()=>{this.listeners.delete(t)}}subscribeUnread(t){return this.unreadListeners.add(t),t(this.unreadCount()),()=>{this.unreadListeners.delete(t)}}find(t){return this.entries.find(n=>n.id===t)}markSeen(){this.seenSeq!==this.unreadSeq&&(this.seenSeq=this.unreadSeq,this.notifyUnread())}clear(){this.write([])}dismiss(t){this.write(this.entries.filter(n=>n.id!==t))}dismissMany(t){if(t.length===0)return;const n=new Set(t);this.write(this.entries.filter(u=>!n.has(u.id)))}dismissBySource(t){this.write(this.entries.filter(n=>n.source!==t))}togglePin(t){this.write(this.entries.map(n=>{if(n.id!==t)return n;const{pinnedAt:u,...r}=n;return n.pinned?{...r,pinned:!1}:{...r,pinned:!0,pinnedAt:Date.now()}}))}refreshBadge(){this.lastSyncedBadge=-1,this.syncBadge(this.unreadCount())}unreadCount(){return Math.max(0,this.unreadSeq-this.seenSeq)}write(t){const n=[...t].sort((o,c)=>c.createdAt-o.createdAt),u=n.filter(o=>o.pinned===!0),i=n.filter(o=>o.pinned!==!0).slice(0,Math.max(0,rc-u.length)),s=[...u].sort((o,c)=>(c.pinnedAt??c.createdAt)-(o.pinnedAt??o.createdAt));this.entries=[...s,...i];for(const o of Array.from(this.listeners))try{o(this.entries)}catch(c){this.deps.warn("a timeline listener threw:",c)}}notifyUnread(){const t=this.unreadCount();for(const n of Array.from(this.unreadListeners))try{n(t)}catch(u){this.deps.warn("an unread count listener threw:",u)}this.syncBadge(t)}syncBadge(t){const n=K.notificationSettings.get(),u=n.badgeCountEnabled?Math.min(t,n.badgeCountMax):0;u!==this.lastSyncedBadge&&(this.lastSyncedBadge=u,this.deps.setBadgeCount(u))}}class ic{constructor(){Te(this,"stats",new Map)}recordFire(t,n,u){const r=this.bucket(t);r.total+=1,n&&(r.shown+=1),u&&(r.muted+=1)}recordClick(t){this.bucket(t).clicked+=1}recordDismiss(t){this.bucket(t).dismissed+=1}recordAutoFade(t){this.bucket(t).autoFaded+=1}snapshot(){return[...this.stats.values()].map(t=>({...t})).sort((t,n)=>n.total-t.total)}reset(){this.stats.clear()}bucket(t){let n=this.stats.get(t);return n||(n={source:t,total:0,shown:0,clicked:0,dismissed:0,autoFaded:0,muted:0},this.stats.set(t,n)),n}}class oc{constructor(t){Te(this,"dataUrls",new Map);Te(this,"inFlight",new Map);this.readAudioAsDataUrl=t}async load(t){const n=this.dataUrls.get(t);if(n)return n;let u=this.inFlight.get(t);return u||(u=this.readAudioAsDataUrl(t).then(r=>(this.inFlight.delete(t),r&&this.dataUrls.set(t,r),r)),this.inFlight.set(t,u)),await u??void 0}invalidate(){this.dataUrls.clear(),this.inFlight.clear()}}const So={info:{freq:660,ms:140},success:{freq:880,ms:180},warning:{freq:520,ms:220},error:{freq:320,ms:260}},sc={info:"soundOnInfo",success:"soundOnSuccess",warning:"soundOnWarning",error:"soundOnError"},cc={info:"customSoundInfo",success:"customSoundSuccess",warning:"customSoundWarning",error:"customSoundError"};function Co(e,t,n){if(!t[sc[e]]||t.quietHoursMutesSounds&&n)return null;const u=t[cc[e]].trim();if(u)return{kind:"custom",path:u};const r=So[e];return{kind:"builtin",freq:r.freq,ms:r.ms}}class ac{constructor(t,n){Te(this,"context",null);Te(this,"contextFailed",!1);this.sounds=t,this.log=n}playQueryCompletedCue(){this.playTone(800,200)}playSeverityToneIfEnabled(t,n){const u=Co(t,K.notificationSettings.get(),n);if(u){if(u.kind==="custom"){this.playCustomSound(u.path);return}this.playTone(u.freq,u.ms)}}dispose(){const t=this.context;this.context=null,t&&t.close().catch(n=>{this.log.warn("AudioContext could not be closed:",n)})}audioContext(){if(this.contextFailed)return null;if(this.context)return this.context;try{const t=window.AudioContext??window.webkitAudioContext;return t?(this.context=new t,this.context):(this.contextFailed=!0,null)}catch(t){return this.contextFailed=!0,this.log.warn("AudioContext could not be created; notification sounds are off:",t),null}}async playCustomSound(t){const n=await this.sounds.load(t);if(n)try{const u=new Audio(n);u.volume=.6,await u.play()}catch(u){this.log.warn("Custom notification sound could not be played:",u)}}playTone(t,n){const u=this.audioContext();if(u)try{const r=u.currentTime,i=u.createOscillator(),s=u.createGain();i.connect(s),s.connect(u.destination),i.frequency.value=t,s.gain.setValueAtTime(.3,r),s.gain.exponentialRampToValueAtTime(.01,r+n/1e3),i.start(r),i.stop(r+n/1e3)}catch(r){this.log.warn("Notification tone could not be played:",r)}}}const wr="notification.emailDigestSmtpPass",vr="notification.webhook.url.";function uu(e){return`${vr}${e}`}function No(e){return e.get(wr)}async function lc(e,t){t?await e.set(wr,t):await e.delete(wr)}function Ro(e,t){return e.get(uu(t))}async function dc(e,t,n){n?await e.set(uu(t),n):await e.delete(uu(t))}function fc(e,t){return e.delete(uu(t))}async function hc(e,t){const n=new Set(t),u=(await e.keys()).filter(r=>r.startsWith(vr)).map(r=>r.slice(vr.length)).filter(r=>!n.has(r));await Promise.all(u.map(r=>e.delete(uu(r))))}const pc={info:"#007AB0",success:"#108846",warning:"#D27908",error:"#BE2E34"},gc={info:1668818,success:3046706,warning:16088064,error:12986408};function Ec(e,t){const{severities:n,priorities:u,sources:r}=e.filters;return!(n.length>0&&!n.includes(t.severity)||u.length>0&&!u.includes(t.priority)||r.length>0&&!r.includes(t.source))}function bc(e,t){switch(e.type){case"slack":return{text:t.title,attachments:[{color:pc[t.severity],fields:[{title:"Source",value:t.source,short:!0},{title:"Severity",value:t.severity,short:!0},{title:"Priority",value:t.priority,short:!0}],text:t.body??""}]};case"discord":return{embeds:[{title:t.title,description:t.body??"",color:gc[t.severity],fields:[{name:"Source",value:t.source,inline:!0},{name:"Severity",value:t.severity,inline:!0},{name:"Priority",value:t.priority,inline:!0}]}]};case"generic":default:return{title:t.title,body:t.body??"",severity:t.severity,priority:t.priority,source:t.source,timestamp:Date.now()}}}class _c{constructor(t,n){this.secrets=t,this.log=n}dispatch(t){const n=K.notificationSettings.get().webhooks.filter(u=>u.enabled&&Ec(u,t));for(const u of n)this.deliver(u,t)}async deliver(t,n){try{const u=await Ro(this.secrets,t.id)??"";if(!u)return;await fetch(u,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(bc(t,n))})}catch(u){this.log.warn("Webhook delivery failed:",u)}}}const gi=500,Ei={info:0,success:1,warning:2,error:3},Ou=e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");function mc(e,t){const n=t.map(u=>`<tr>
|
|
2
|
+
<td style="padding:4px 8px">${new Date(u.at).toISOString().slice(11,19)}</td>
|
|
3
|
+
<td style="padding:4px 8px"><strong>${u.severity}</strong></td>
|
|
4
|
+
<td style="padding:4px 8px">${Ou(u.source)}</td>
|
|
5
|
+
<td style="padding:4px 8px">${Ou(u.title)}${u.body?`<br><small>${Ou(u.body)}</small>`:""}</td>
|
|
6
|
+
</tr>`).join(`
|
|
7
|
+
`);return`<!doctype html>
|
|
8
|
+
<html><body>
|
|
9
|
+
<h2>${e?`${Ou(e)} notification digest`:"Notification digest"}</h2>
|
|
10
|
+
<p>${t.length} notification(s) since the last digest.</p>
|
|
11
|
+
<table style="border-collapse:collapse">
|
|
12
|
+
<thead><tr style="background:#eee">
|
|
13
|
+
<th style="padding:4px 8px;text-align:left">Time (UTC)</th>
|
|
14
|
+
<th style="padding:4px 8px;text-align:left">Severity</th>
|
|
15
|
+
<th style="padding:4px 8px;text-align:left">Source</th>
|
|
16
|
+
<th style="padding:4px 8px;text-align:left">Message</th>
|
|
17
|
+
</tr></thead>
|
|
18
|
+
<tbody>
|
|
19
|
+
${n}
|
|
20
|
+
</tbody></table>
|
|
21
|
+
</body></html>`}function Ac(e){const t=e.map(n=>`[${new Date(n.at).toISOString()}] ${n.severity.toUpperCase()} (${n.source}): ${n.title}${n.body?` — ${n.body}`:""}`);return`${e.length} notification(s):
|
|
22
|
+
|
|
23
|
+
${t.join(`
|
|
24
|
+
`)}`}function Tc(e){const t=K.notificationSettings.get();if(!t.emailDigestEnabled)return!1;const n=e.getHours(),u=e.getMinutes(),r=e.getDay();switch(t.emailDigestSchedule){case"hourly":return u===0;case"daily-9am":return n===9&&u===0;case"daily-5pm":return n===17&&u===0;case"weekly-mon-9am":return r===1&&n===9&&u===0}}class Sc{constructor(t){Te(this,"queue",[]);Te(this,"lastSentMinute",0);Te(this,"scheduler");this.deps=t,this.scheduler=setInterval(()=>this.tick(),6e4)}enqueue(t){const n=K.notificationSettings.get();n.emailDigestEnabled&&(Ei[t.severity]<Ei[n.emailDigestMinSeverity]||(this.queue.push(t),this.queue.length>gi&&this.queue.splice(0,this.queue.length-gi)))}async flush(){const t=K.notificationSettings.get();if(!t.emailDigestEnabled)return{kind:"not-sent",reason:{kind:"disabled"}};if(this.queue.length===0)return{kind:"sent",count:0};if(!t.emailDigestSmtpHost||!t.emailDigestFrom||!t.emailDigestTo)return{kind:"not-sent",reason:{kind:"smtp-incomplete"}};const n=this.queue.splice(0,this.queue.length),u=this.deps.appName;try{const r=await No(this.deps.secrets)??"";return await this.deps.send({smtp:{host:t.emailDigestSmtpHost,port:t.emailDigestSmtpPort,secure:t.emailDigestSmtpSecure,user:t.emailDigestSmtpUser,pass:r},from:t.emailDigestFrom,to:t.emailDigestTo,subject:`${u?`[${u}] `:""}${n.length} notification(s)`,html:mc(u,n),text:Ac(n)}),{kind:"sent",count:n.length}}catch(r){return this.queue.unshift(...n),{kind:"not-sent",reason:{kind:"send-failed",error:r}}}}notSentText(t){switch(t.kind){case"disabled":return S.t("Email digest is turned off.");case"smtp-incomplete":return S.t("SMTP host, sender and recipient are required.");case"send-failed":return this.deps.errorText(t.error,S.t("The digest could not be sent."))}}dispose(){clearInterval(this.scheduler)}tick(){const t=new Date;if(!Tc(t))return;const n=Math.floor(t.getTime()/6e4);n!==this.lastSentMinute&&(this.lastSentMinute=n,this.flush().then(u=>{u.kind==="not-sent"&&u.reason.kind==="send-failed"&&this.deps.log.warn("scheduled email digest failed",u.reason.error)}))}}const vu=new Map;function Io(){vu.clear()}function Cc(e){if(vu.has(e))return vu.get(e)??null;let t;try{t=new RegExp(e,"i")}catch{t=null}return vu.set(e,t),t}function Nc(e,t){const n=e.conditions;if(n.source&&n.source!==t.source||n.severities&&n.severities.length>0&&!n.severities.includes(t.severity))return!1;if(n.titleRegex){const u=Cc(n.titleRegex);if(!u||!u.test(t.title))return!1}return!0}function Zr(e,t){if(t.length===0)return e;let n={...e};for(const u of t)if(u.enabled&&Nc(u,n)){if(u.actions.suppress===!0)return null;if(u.actions.setSeverity&&(n={...n,severity:u.actions.setSeverity}),u.actions.setPriority&&(n={...n,priority:u.actions.setPriority}),u.actions.addPrefix){const r=u.actions.addPrefix.trim();r&&(n={...n,title:`${r} ${n.title}`})}}return n}function Mr(e){const t=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!t)return null;const n=Number(t[1]),u=Number(t[2]);return n>23||u>59?null:n*60+u}function ru(e,t){if(!e.quietHoursEnabled||!e.quietHoursWeekdays.includes(t.getDay()))return!1;const n=Mr(e.quietHoursStart),u=Mr(e.quietHoursEnd);if(n===null||u===null||n===u)return!1;const r=t.getHours()*60+t.getMinutes();return n<u?r>=n&&r<u:r>=n||r<u}function Oo(e,t){if(!e.quietHoursEnabled)return null;const n=Mr(e.quietHoursStart);if(n===null)return null;for(let u=0;u<=7;u++)for(const r of n===0?[0]:[0,n]){const i=new Date(t.getFullYear(),t.getMonth(),t.getDate()+u,0,r);if(i.getTime()<=t.getTime())continue;const s=new Date(i.getTime()-6e4);if(ru(e,i)&&!ru(e,s))return i}return null}function pu(e,t){return`__remind:${e}:${t}`}function iu(e,t,n){const{priority:u}=e,r=e.recordTimeline!==!1;if(!t.notificationsEnabled)return{showToast:!1,recordTimeline:!1};if(n.dismissed)return{showToast:!1,recordTimeline:!1};if(n.remindSuppressed)return{showToast:!1,recordTimeline:!1};if(u==="silent")return{showToast:!1,recordTimeline:r};const i=u==="urgent"||u==="acknowledgment-required";return t.doNotDisturb&&(!i||u==="urgent"&&t.dndBlocksUrgent)?{showToast:!1,recordTimeline:r}:n.inQuietHours&&(!i||u==="urgent"&&t.quietHoursBlocksUrgent)?{showToast:!1,recordTimeline:r}:i?t.urgentRoutesToCenterOnly&&u==="urgent"?{showToast:!1,recordTimeline:r}:{showToast:!0,recordTimeline:r}:n.sourceMuted?{showToast:!1,recordTimeline:r}:{showToast:!0,recordTimeline:r}}function Rc(e){return e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")}const Fr={info:0,success:1,warning:2,error:3};function yo(e,t){return t.osNativeEnabled?e.priority==="urgent"&&t.osNativeUrgentAlways?{fire:!0,onlyWhenUnfocused:!1}:Fr[e.severity]<Fr[t.osNativeMinSeverity]?{fire:!1,onlyWhenUnfocused:!1}:{fire:!0,onlyWhenUnfocused:t.osNativeOnlyWhenUnfocused}:{fire:!1,onlyWhenUnfocused:!1}}const Ic={"sql-execution":"sql",users:"users",tablespaces:"tablespaces",rss:"rss-feeds",locking:"locking",monitoring:"monitoring"};function Oc(e,t){if(t)return t;if(e!==void 0)return Ic[e]}function hn(e){return K.notificationSettings.get().mutedSources.includes(e)}function Qr(e){return K.notificationSettings.get().dontShowAgainKeys.includes(e)}function Gu(e){const t=Date.now();return K.notificationSettings.get().remindersUntil.some(u=>u.key===e&&u.remindAt>t)}async function xo(e,t){if(!e||t<=0)return;const n=K.notificationSettings.get(),u=Date.now()+t,i=[...n.remindersUntil.filter(s=>s.key!==e),{key:e,remindAt:u}];K.notificationSettings.applyFromBroadcast({...n,remindersUntil:i}),await K.notificationSettings.update({...n,remindersUntil:i})}async function Do(e,t){const n=K.notificationSettings.get(),u=t?Array.from(new Set([...n.mutedSources,e])):n.mutedSources.filter(r=>r!==e);K.notificationSettings.applyFromBroadcast({...n,mutedSources:u}),await K.notificationSettings.update({...n,mutedSources:u})}async function ko(e){const t=K.notificationSettings.get();if(t.dontShowAgainKeys.includes(e))return;const n=[...t.dontShowAgainKeys,e];K.notificationSettings.applyFromBroadcast({...t,dontShowAgainKeys:n}),await K.notificationSettings.update({...t,dontShowAgainKeys:n})}async function yc(e){const t=K.notificationSettings.get();if(!t.dontShowAgainKeys.includes(e))return;const n=t.dontShowAgainKeys.filter(u=>u!==e);K.notificationSettings.applyFromBroadcast({...t,dontShowAgainKeys:n}),await K.notificationSettings.update({...t,dontShowAgainKeys:n})}async function xc(){const e=K.notificationSettings.get();e.dontShowAgainKeys.length!==0&&(K.notificationSettings.applyFromBroadcast({...e,dontShowAgainKeys:[]}),await K.notificationSettings.update({...e,dontShowAgainKeys:[]}))}async function Dc(){const e=K.notificationSettings.get();e.mutedSources.length!==0&&(K.notificationSettings.applyFromBroadcast({...e,mutedSources:[]}),await K.notificationSettings.update({...e,mutedSources:[]}))}function Jr(){return ru(K.notificationSettings.get(),new Date)}function Lo(e,t,n){return{dismissed:n!==void 0&&Qr(n),remindSuppressed:n!==void 0&&Gu(n)||Gu(pu(e,t))}}function Jn(e,t,n,u,r){return iu({priority:n,recordTimeline:r},K.notificationSettings.get(),{...Lo(e,t,u),sourceMuted:hn(e),inQuietHours:Jr()})}function kc(e,t,n){const u=Lo(e,t,n);return u.dismissed||u.remindSuppressed}function Lc(e){const t=e.neverShowAgainKey;return t!==void 0&&Qr(t)||Gu(t??e.remindKey??pu(e.source??"general",e.title))}function wc(e,t){return!iu({priority:t,recordTimeline:void 0},K.notificationSettings.get(),{dismissed:!1,remindSuppressed:!1,sourceMuted:hn(e),inQuietHours:Jr()}).showToast}function vc(e,t,n,u,r){return{label:t.label,primary:r,keepOpen:t.expireOnAction===!1,onClick:()=>{e.analytics.recordClick(u);try{t.onClick()}finally{const i=n();t.expireOnAction!==!1&&i&&e.engine.close(i)}}}}function wo(e,t,n,u,r){return[...t?[t]:[],...n??[]].map((i,s)=>vc(e,i,u,r,s===0))}function vo(e){var r,i;const t=((r=e.subtitle)==null?void 0:r.trim())||((i=e.description)==null?void 0:i.trim()),n=e.markdown??K.notificationSettings.get().markdownEnabled,u=Oc(e.source,e.defaultRoute);return{...t?{body:t}:{},...n?{markdown:!0}:{},...e.duration!==void 0?{durationMs:e.duration}:{},...e.dontShowAgainKey?{neverShowAgainKey:e.dontShowAgainKey}:{},...e.icon?{icon:e.icon}:{},...e.announce?{announce:e.announce}:{},...u?{defaultRoute:u}:{}}}function Mu(e,t){const n=t.options.source??"general";if(e.analytics.recordFire(n,t.decision.showToast,hn(n)),!t.decision.showToast)return null;e.audio.playSeverityToneIfEnabled(t.severity,Jr());const{options:u}=t,r=vo(u),i=r.body,s=u.id!==void 0?String(u.id):void 0;let o=null;const c=wo(e,t.primaryAction,u.actions,()=>o==null?void 0:o.id,n),l=e.engine.notify({severity:t.severity,title:t.title,...r,source:u.source??"general",priority:u.priority??"default",...s?{id:s}:{},...t.vendorError?{vendorError:t.vendorError}:{},...c.length>0?{actions:c}:{}});if(o=l,Ao(l)||u.inAppOnly)return l;const h=Rt.scrubSecrets(t.title),f=i?Rt.scrubSecrets(i):void 0,E={title:h,...f?{body:f}:{},severity:t.severity,priority:u.priority??"default",source:u.source??"general"};return Mc(e,E),e.webhooks.dispatch(E),e.digest.enqueue({...E,at:Date.now()}),l}function Mc(e,t){const n=yo(t,K.notificationSettings.get());n.fire&&e.osNotify({title:t.title,...t.body?{body:t.body}:{},severity:t.severity,urgent:t.priority==="urgent",onlyWhenUnfocused:n.onlyWhenUnfocused})}function wn(e){return typeof e=="string"?e:e instanceof Error?e.message:e==null?"":String(e)}function ei(e,t,n,u){var h,f,E;const r=wn(e),i=(h=t.title)==null?void 0:h.trim(),s=((f=t.subtitle)==null?void 0:f.trim())||((E=t.description)==null?void 0:E.trim());let o=i??r,c=s;if(n&&!i){const _=n.helpers.formatCode(n.code),g=new RegExp(`^\\s*${Rc(_)}\\s*[:-]\\s*(.+)$`,"i"),I=r.match(g);if(I!=null&&I[1]){o=_;const T=I[1].trim();c=c?`${T}
|
|
25
|
+
|
|
26
|
+
${c}`:T}}let l=t.action;if(!l&&n){const _=n.helpers.docsUrl(n.code);_&&(l={label:`${n.helpers.formatCode(n.code)} ${n.helpers.docsLinkLabel}`,onClick:()=>u(_)})}return{text:r,displayText:o,bodyText:c,primaryAction:l}}const Mo={update:()=>{},success:()=>{},fail:()=>{},dismiss:()=>{},updateActions:()=>{},state:()=>"suppressed",onDidChangeState:()=>({dispose:()=>{}})};function Pr(e){return Zr(e,K.notificationSettings.get().notificationRules)}function Fc(e){const{sinks:t,timeline:n}=e;return{success(u,r={}){const i=wn(u),s=K.notificationSettings.get(),o=Pr({severity:"success",title:i,priority:r.priority??"default",source:r.source??"general"});if(!o)return"";const c=Jn(o.source,o.title,o.priority,r.dontShowAgainKey,r.recordTimeline);if(c.recordTimeline&&n.add(o.title,o.severity,o.source,o.priority,eu(r.action)),!s.showSuccessToasts&&o.priority!=="urgent")return"";const l=Mu(t,{severity:o.severity,title:o.title,options:{...r,source:o.source,priority:o.priority},decision:c,...r.action?{primaryAction:r.action}:{}});return(l==null?void 0:l.id)??""},error(u,r={}){const i=wn(u),s=r.vendorError===void 0?null:dt.resolveVendorError(e.vendorErrors,r.vendorError),o=ei(i,r,s,e.openExternal),c=s!==null,l=o.bodyText,h=l?`${o.displayText}
|
|
27
|
+
${l}`:i,f=c&&K.notificationSettings.get().vendorCodesAreUrgent,E=Pr({severity:"error",title:o.displayText,priority:r.priority??(f?"urgent":"default"),source:r.source??(c?"vendor-error":"general")});if(!E)return"";const{source:_,priority:g}=E,I=Jn(_,E.title,g,r.dontShowAgainKey,r.recordTimeline);I.recordTimeline&&n.add(h,E.severity,_,g,eu(r.action),r.vendorError);const T=Mu(t,{severity:E.severity,title:E.title,options:{...r,source:_,priority:g,...l?{description:l}:{}},decision:I,...o.primaryAction?{primaryAction:o.primaryAction}:{},...r.vendorError?{vendorError:r.vendorError}:{}});return(T==null?void 0:T.id)??""},info(u,r={}){return bi(e,"info",u,r)},warning(u,r={}){return bi(e,"warning",u,r)},queryCompleted(u,r={}){const i=wn(u),s=K.notificationSettings.get(),o=r.source??"sql-execution",c=r.priority??"default",l=Jn(o,i,c,r.dontShowAgainKey,r.recordTimeline);if(l.recordTimeline&&n.add(i,"success",o,c,eu(r.action)),s.notificationsEnabled&&s.soundOnQueryCompletion&&!(s.quietHoursMutesSounds&&ru(s,new Date))&&t.audio.playQueryCompletedCue(),!s.showSuccessToasts&&c!=="urgent")return"";const h=Mu(t,{severity:"success",title:i,options:{...r,source:o,priority:c},decision:l,...r.action?{primaryAction:r.action}:{}});return(h==null?void 0:h.id)??""},progress(u,r={}){const i=wn(u),s=r.onCancel,o=r.source??"general",c=r.priority??"default",l=r.id!==void 0?String(r.id):void 0,h=Jn(o,i,c,r.dontShowAgainKey,r.recordTimeline);if(h.recordTimeline&&n.add(i,"info",o,c),!h.showToast&&(kc(o,i,r.dontShowAgainKey)||c==="acknowledgment-required"))return l!==void 0&&t.engine.reject(l),Mo;const f=l??`progress-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,E=I=>wo(t,I.action,I.actions,()=>f,o),_=E(r),g=t.engine.notify({id:f,severity:"info",title:i,...vo({...r,source:o}),source:o,priority:c,sticky:!0,progress:s?{onCancel:s}:{},remindKey:pu(o,i),..._.length>0?{actions:_}:{}});return{update:(I,T)=>{g.update({title:I}),T!==void 0&&g.setProgress({value:Math.max(0,Math.min(1,T)),...s?{onCancel:s}:{}})},success:I=>{const T=I??i;h.recordTimeline&&n.add(T,"success",o,c),g.update({title:T,severity:"success",sticky:!1,progress:{done:!0}})},fail:I=>{const T=I??i;h.recordTimeline&&n.add(T,"error",o,c),g.update({title:T,severity:"error",sticky:!0,progress:{done:!0},durationMs:1/0})},dismiss:()=>g.close(),updateActions:I=>{const T=E(I);g.update({actions:T.length>0?T:void 0})},state:()=>g.state(),onDidChangeState:g.onDidChangeState}}}}function bi(e,t,n,u){const r=Pr({severity:t,title:wn(n),priority:u.priority??"default",source:u.source??"general"});if(!r)return"";const i=Jn(r.source,r.title,r.priority,u.dontShowAgainKey,u.recordTimeline);i.recordTimeline&&e.timeline.add(r.title,r.severity,r.source,r.priority,eu(u.action));const s=Mu(e.sinks,{severity:r.severity,title:r.title,options:{...u,source:r.source,priority:r.priority},decision:i,...u.action?{primaryAction:u.action}:{}});return(s==null?void 0:s.id)??""}function Fo(e,t,n){if(!("cause"in e))return e;const{cause:u,...r}=e,i=t(u).map(n);return i.length===0?r:{...r,actions:[...r.actions??[],...i]}}function Pc(e){return t=>({label:t.label,onClick:()=>{Promise.resolve().then(()=>t.run()).catch(e)}})}function _i(e,t){return{...e.severity==="error"&&e.source==="general"?{}:{source:e.source},...e.severity==="error"&&e.priority==="default"?{}:{priority:e.priority},...t.subtitle?{subtitle:t.subtitle}:{},...t.description?{description:t.description}:{},...t.action?{action:t.action}:{},...t.actions?{actions:t.actions}:{},...t.duration!==void 0?{duration:t.duration}:{},...t.dontShowAgainKey?{dontShowAgainKey:t.dontShowAgainKey}:{},...t.defaultRoute?{defaultRoute:t.defaultRoute}:{},...t.icon?{icon:t.icon}:{},...t.markdown!==void 0?{markdown:t.markdown}:{},...t.recordTimeline!==void 0?{recordTimeline:t.recordTimeline}:{},...t.id!==void 0?{id:t.id}:{},...t.announce!==void 0?{announce:t.announce}:{},...e.delivery==="in-app-only"?{inAppOnly:!0}:{}}}function Uc(e){const t=Pc(e.onActionFailed),n=u=>Fo(u,e.errorActions,t);return{notify(u,r){const i=n(r);if(u.delivery==="os-only"){const o=i.title??i.message,c=i.description??i.subtitle??(i.title?i.message:void 0);return e.osNotify({title:o,...c?{body:c}:{},severity:u.severity,urgent:u.priority==="urgent",onlyWhenUnfocused:!1}),""}const s=_i(u,i);if(u.kind==="query-completed")return e.toast.queryCompleted(i.message,s);switch(u.severity){case"success":return e.toast.success(i.message,s);case"error":{const o={...s,...i.title?{title:i.title}:{},...i.vendorError?{vendorError:i.vendorError}:{}};return e.toast.error(i.message,o)}case"warning":return e.toast.warning(i.message,s);case"info":return e.toast.info(i.message,s)}},progress(u,r){const i=n(r);if(u.delivery==="os-only")throw new go.BugIndicatingError("Progress notifications require an in-app catalog definition.");return e.toast.progress(i.message,{..._i(u,i),...i.onCancel?{onCancel:i.onCancel}:{}})}}}function ti(e,t,n,u){return e==="error"&&t==="default"&&n&&u?"urgent":t}function Bc(e,t,n){var h;const u=n.vendorError===void 0?null:dt.resolveVendorError(e.vendorErrors,n.vendorError),r=t.severity==="error"?ei(n.message,{...n.title?{title:n.title}:{},...n.subtitle?{subtitle:n.subtitle}:{},...n.description?{description:n.description}:{},...n.action?{action:n.action}:{}},u,e.openExternal):null,i=(r==null?void 0:r.displayText)??n.title??n.message,s=(r==null?void 0:r.bodyText)??n.subtitle??n.description,o=(r==null?void 0:r.primaryAction)??n.action,c=t.severity==="error"&&t.source==="general"&&u!==null?"vendor-error":t.source,l=ti(t.severity,t.priority,u!==null,K.notificationSettings.get().vendorCodesAreUrgent);return e.engine.notify({severity:t.severity,title:Rt.scrubSecrets(i),...s?{body:Rt.scrubSecrets(s)}:{},source:c,priority:l,isolated:!0,...n.duration!==void 0?{durationMs:n.duration}:{},...n.id!==void 0?{id:`dev-preview:${n.id}`}:{},...n.icon?{icon:n.icon}:{},...n.markdown?{markdown:!0}:{},...t.kind==="progress"?{sticky:!0,progress:{done:!1}}:{},...o||(h=n.actions)!=null&&h.length?{actions:[o,...n.actions??[]].filter(f=>f!==void 0).map((f,E)=>({id:`dev-preview-action-${E}`,label:f.label,primary:E===0,onClick:()=>{f.onClick()}}))}:{}}).id}function Xu(e,t){return{message:e,...t!=null&&t.title?{title:t.title}:{},...t!=null&&t.subtitle?{subtitle:t.subtitle}:{},...t!=null&&t.description?{description:t.description}:{},...t!=null&&t.action?{action:t.action}:{},...(t==null?void 0:t.duration)!==void 0?{duration:t.duration}:{},...t!=null&&t.dontShowAgainKey?{dontShowAgainKey:t.dontShowAgainKey}:{},...t!=null&&t.defaultRoute?{defaultRoute:t.defaultRoute}:{},...t!=null&&t.icon?{icon:t.icon}:{},...(t==null?void 0:t.markdown)!==void 0?{markdown:t.markdown}:{},...(t==null?void 0:t.recordTimeline)!==void 0?{recordTimeline:t.recordTimeline}:{},...(t==null?void 0:t.id)!==void 0?{id:t.id}:{},...t!=null&&t.onCancel?{onCancel:t.onCancel}:{}}}const Hc=it.defineNotification({id:"notifications.timeline.replay.error",source:"general",severity:"error",priority:"urgent",delivery:"in-app",kind:"message"},({timelineMessage:e,options:t})=>Xu(e,t)),Gc=it.defineNotification({id:"notifications.timeline.replay.warning",source:"general",severity:"warning",priority:"urgent",delivery:"in-app",kind:"message"},({timelineMessage:e,options:t})=>Xu(e,t)),zc=it.defineNotification({id:"notifications.timeline.replay.success",source:"general",severity:"success",priority:"urgent",delivery:"in-app",kind:"message"},({timelineMessage:e,options:t})=>Xu(e,t)),$c=it.defineNotification({id:"notifications.timeline.replay.info",source:"general",severity:"info",priority:"urgent",delivery:"in-app",kind:"message"},({timelineMessage:e,options:t})=>Xu(e,t)),Vc=it.defineNotification({id:"notifications.timeline.exported",source:"general",severity:"success",priority:"default",delivery:"in-app",kind:"message"},({entryCount:e})=>({message:S.t("Exported {count} notifications",{count:e})})),Wc=it.defineNotification({id:"notifications.timeline.export.failed",source:"general",severity:"error",priority:"default",delivery:"in-app",kind:"message"},({cause:e},{errorText:t})=>({message:S.t("Export failed: {message}",{message:t(e,S.t("Operation failed."))}),cause:e})),qc=it.defineNotification({id:"notifications.errorAction.failed",source:"general",severity:"error",priority:"default",delivery:"in-app",kind:"message"},({cause:e},{errorText:t})=>({message:S.t("The action could not be completed: {message}",{message:t(e,S.t("Operation failed."))}),cause:e})),Po=it.defineNotification({id:"notifications.settings.update.failed",source:"settings",severity:"error",priority:"default",delivery:"in-app",kind:"message"},({cause:e},{errorText:t})=>({message:t(e,S.t("Operation failed.")),cause:e})),Yc=60*6e4;function mi(e){return!e.isolated&&e.priority!=="acknowledgment-required"&&wc(e.source??"general",e.priority??"default")}class Kc{constructor(t){Te(this,"renderHost");Te(this,"toast");Te(this,"stack");Te(this,"timeline");Te(this,"onDidRequestNavigation");Te(this,"engine");Te(this,"analytics",new ic);Te(this,"sounds");Te(this,"audio");Te(this,"digest");Te(this,"delivery");Te(this,"navigation",new dt.Emitter);Te(this,"log");Te(this,"onSettingsChanged");Te(this,"stopWatchingCards");Te(this,"watchingQuietHours",!1);Te(this,"quietHoursTimer");this.deps=t;const n=t.log.withTag("Notifications");this.log=n,this.renderHost={errorText:t.errorPresenter.text},this.engine=jr({getSettings:()=>K.notificationSettings.get(),recordAutoFade:r=>this.analytics.recordAutoFade(r),warn:(r,i)=>n.warn(r,i),isSilenced:mi,isTurnedDown:Lc}),this.stack=this.engine,this.timeline=new To({setBadgeCount:r=>this.unawaited("the OS badge could not be set",t.desktop.setBadgeCount(r)),warn:(r,i)=>n.warn(r,i)}),this.sounds=new oc(r=>t.desktop.readAudioAsDataUrl(r).catch(i=>(n.warn("custom sound could not be read",{filePath:r,error:i}),null))),this.audio=new ac(this.sounds,n),this.digest=new Sc({secrets:t.secrets,send:t.sendEmailDigest,appName:t.appName,errorText:t.errorPresenter.text,log:n});const u=r=>this.unawaited("the OS notification was not shown",t.desktop.osNotify(r));this.toast=Fc({sinks:{engine:this.engine,analytics:this.analytics,audio:this.audio,webhooks:new _c(t.secrets,n),digest:this.digest,osNotify:u},timeline:this.timeline,vendorErrors:t.vendorErrors,openExternal:r=>dt.openExternalUrl(t.desktop,n,r)}),this.delivery=Uc({toast:this.toast,osNotify:u,errorActions:t.errorPresenter.actions,onActionFailed:r=>this.notify(qc,{cause:r})}),this.onDidRequestNavigation=this.navigation.event,this.onSettingsChanged=()=>{Io(),this.sounds.invalidate(),this.timeline.refreshBadge(),this.takeBackSilencedCards(),this.watchingQuietHours&&this.watchQuietHoursStart()},window.addEventListener(K.notificationSettings.changeEvent,this.onSettingsChanged),this.stopWatchingCards=this.engine.subscribe(r=>{r.length===0?this.stopWatchingQuietHours():this.watchingQuietHours||this.watchQuietHoursStart()})}notify(t,n){return this.delivery.notify(t,t.build(n,this.renderHost))}progress(t,n){if(t.kind!=="progress")throw new go.BugIndicatingError("notifications: a message definition cannot be delivered as progress.");return this.delivery.progress(t,t.build(n,this.renderHost))}showPreview(t,n){return Bc({engine:this.engine,vendorErrors:this.deps.vendorErrors,openExternal:u=>dt.openExternalUrl(this.deps.desktop,this.log,u)},t,n)}dismissEntry(t){const n=this.timeline.find(t);n!==void 0&&(this.analytics.recordDismiss(n.source),this.timeline.dismiss(t))}flushDigest(){return this.digest.flush()}digestNotSentText(t){return this.digest.notSentText(t)}getStatsSnapshot(){return this.analytics.snapshot()}resetStats(){this.analytics.reset()}requestNavigation(t){this.navigation.fire(t)}dispose(){window.removeEventListener(K.notificationSettings.changeEvent,this.onSettingsChanged),this.stopWatchingCards(),this.stopWatchingQuietHours(),this.digest.dispose(),this.audio.dispose(),this.engine.dispose(),this.navigation.dispose()}takeBackSilencedCards(){this.engine.suppress(mi)}watchQuietHoursStart(){this.stopWatchingQuietHours(),this.watchingQuietHours=!0;const t=Oo(K.notificationSettings.get(),new Date);if(t===null)return;const n=Math.max(0,t.getTime()-Date.now());this.quietHoursTimer=setTimeout(()=>{this.quietHoursTimer=void 0,this.takeBackSilencedCards(),this.watchingQuietHours&&this.watchQuietHoursStart()},Math.min(n,Yc))}stopWatchingQuietHours(){clearTimeout(this.quietHoursTimer),this.quietHoursTimer=void 0,this.watchingQuietHours=!1}unawaited(t,n){Promise.resolve(n).catch(u=>this.log.debug(t,u))}}function Uo(e,t){const n=e.trim();if(!n)return null;if(t)try{const u=new RegExp(n,"i");return{test:r=>u.test(r)}}catch{return Ai(n)}return Ai(n)}function Ai(e){const t=e.toLowerCase();return{test:n=>n.toLowerCase().includes(t)}}function Bo(e,t){const{tones:n,sources:u,priorities:r,dateBounds:i,searchMatcher:s}=t;return e.filter(o=>!(n.size>0&&!n.has(o.tone)||u.size>0&&!u.has(o.source)||r.size>0&&!r.has(o.priority)||i&&(o.createdAt<i.start||o.createdAt>i.end)||s&&!s.test(`${o.message} ${o.source}`)))}const Xc="acknowledgment-required";function Ho(e){return e.filter(t=>t.priority!==Xc).map(t=>t.id)}const jc={general:{label:"General",description:"Uncategorized notifications. Default for callers that do not pass a source."},"vendor-error":{label:"Database errors",description:"Errors carrying a recognised vendor code (Oracle ORA-NNNNN, PG SQLSTATE, MSSQL Msg N, …). Treated as urgent when the matching setting is enabled."},"sql-execution":{label:"SQL execution",description:"Query completion / cancellation / failure notifications."},connection:{label:"Connection",description:"Connect, disconnect, test, vault credential events."},ssh:{label:"SSH & terminal",description:"SSH dock, tunnels, terminal lifecycle."},schema:{label:"Schema browser",description:"DDL extraction, copy-name, refresh."},users:{label:"Users",description:"User management — create, unlock, alter."},tablespaces:{label:"Tablespaces",description:"Tablespace creation, quota warnings."},locking:{label:"Locking",description:"Blocking sessions and deadlock alerts."},monitoring:{label:"Monitoring",description:"Threshold alerts — CPU, blocked sessions, long-running ops, invalid objects, failed logins."},"source-control":{label:"Source control",description:"Git commit / pull / push outcomes."},"file-system":{label:"File system",description:"Save, copy, paste, image clipboard."},settings:{label:"Settings",description:"Preference saves, layout reset, import/export."},rss:{label:"RSS feeds",description:"Feed refresh, post counts."},plugins:{label:"Plugins",description:"Plugin install, activation, marketplace and sandbox events."},workspace:{label:"Workspace",description:"Workspace tabs, session restore and layout events."},dev:{label:"Developer",description:"Dev test surface and internal diagnostics."}},ju=Xr.map(e=>({id:e,...jc[e]})),Ti=new Map(ju.map(e=>[e.id,e]));function An(e){if(e){const t=Ti.get(e);if(t)return t}return Ti.get("general")??ju[0]}function Zc(){return ju}function Go(e,t){const n=[];let u=0;for(;u<e.length;){const r=e[u];if(!r)break;if(r.pinned===!0){n.push({type:"entry",id:r.id,entry:r}),u+=1;continue}const i=t==="source"?r.source:`${r.source}|${r.tone}`;let s=u+1;for(;s<e.length;){const c=e[s];if(!c||c.pinned===!0||(t==="source"?c.source:`${c.source}|${c.tone}`)!==i)break;s+=1}const o=s-u;o===1?n.push({type:"entry",id:r.id,entry:r}):n.push({type:"group",id:`group:${i}:${r.id}`,groupKey:i,groupCount:o,groupSource:r.source,groupTone:r.tone,groupItems:e.slice(u,s)}),u=s}return n}function Qc(e,t){return(e+t).indexOf(t)<e.length}const Jc=/^[=+\-@\t\r]/,ea=/^[+-]?\d[\d.,' \u00A0\u202F]*(?:[eE][+-]?\d+)?$/,ta=/^[ \t]|[ \t]$/;function zo(e){return Jc.test(e)}function na(e,t){return zo(e)?t==="quotePrefix"?`'${e}`:` ${e}`:e}function ua(e,t,n={}){if(e==null)return"";const u=String(e),r=n.numeric===!0&&ea.test(u),i=r?u:na(u,t.policy),s=n.forceQuote===!0,o=t.quoteChar,c=t.escape==="backslash";return t.alwaysQuote||s||ta.test(u)||!r&&t.policy==="tabPrefix"&&zo(u)||Qc(i,t.delimiter)||i.includes(o)||i.includes(`
|
|
28
|
+
`)||i.includes("\r")||c&&i.includes("\\")?ra(i,o,t.escape):i}function ra(e,t,n){const u=n==="backslash"?e.replace(/\\/g,"\\\\").split(t).join(`\\${t}`):e.split(t).join(t+t);return`${t}${u}${t}`}const ia=e=>e==="crlf"?`\r
|
|
29
|
+
`:`
|
|
30
|
+
`,oa="\uFEFF",sa=Object.freeze({cell:Object.freeze({delimiter:",",quoteChar:'"',escape:"double",alwaysQuote:!1,policy:"quotePrefix"}),lineEnd:"crlf",byteOrderMark:!0});function ca(e,t){const n=e instanceof Date?e.toISOString():e;return ua(n,t,{numeric:typeof e=="number"})}function aa(e,t,n){const u=ia(n.lineEnd),r=i=>i.map(s=>ca(s,n.cell)).join(n.cell.delimiter)+u;return r(t.map(i=>i.header))+e.map(i=>r(t.map(s=>s.value(i)))).join("")}function la(e,t,n){return(n.byteOrderMark?oa:"")+aa(e,t,n)}const da=[{header:"timestamp",value:e=>new Date(e.createdAt)},{header:"source",value:e=>e.source},{header:"tone",value:e=>e.tone},{header:"priority",value:e=>e.priority},{header:"pinned",value:e=>e.pinned===!0},{header:"message",value:e=>e.message}];function $o(e){return la(e,da,sa)}function Vo(e){return JSON.stringify(e,null,2)}function fa(e,t){return{update:(n,u)=>{e.update({title:n}),u!==void 0&&e.setProgress({value:Math.max(0,Math.min(1,u)),...t.onCancel?{onCancel:t.onCancel}:{}})},success:n=>e.update({title:n??t.message,severity:"success",sticky:!1,progress:{done:!0}}),fail:n=>e.update({title:n??t.message,severity:"error",sticky:!0,progress:{done:!0},durationMs:1/0}),dismiss:()=>e.close(),updateActions:n=>{var u;return e.update({actions:Ur(n.action?tu(n.action):void 0,(u=n.actions)==null?void 0:u.map(tu),()=>e.close())})},state:()=>e.state(),onDidChangeState:e.onDidChangeState}}const Wo=()=>{};function tu(e){return{label:e.label,onClick:Wo,...e.expireOnAction!==void 0?{expireOnAction:e.expireOnAction}:{}}}function Ur(e,t,n){const u=[e,...t??[]].filter(r=>r!==void 0);if(u.length!==0)return u.map((r,i)=>({label:r.label,primary:i===0,keepOpen:r.expireOnAction===!1,onClick:()=>{r.onClick(),r.expireOnAction!==!1&&n()}}))}function Si(e,t){return{...t?{body:Rt.scrubSecrets(t)}:{},...e.duration!==void 0?{durationMs:e.duration}:{},...e.icon?{icon:e.icon}:{},...e.markdown?{markdown:!0}:{},...e.announce?{announce:e.announce}:{}}}function Ci(e,t){const n=Fo(e,t,tu);return{...n,...n.action?{action:tu(n.action)}:{},...n.actions?{actions:n.actions.map(tu)}:{},...n.onCancel?{onCancel:Wo}:{}}}function ha(e,t){return t.vendorError===void 0?null:dt.resolveVendorError(e,t.vendorError)}function pa(e){let t={...K.DEFAULT_NOTIFICATION_SETTINGS},n={dismissed:!1,remindSuppressed:!1,sourceMuted:!1,inQuietHours:!1};const u=[],r=jr({getSettings:()=>t,recordAutoFade:()=>{},warn:(l,h)=>e.log.warn(l,h)});let i=[];const s=r.subscribe(l=>{i=l}),o={close:l=>r.dismiss(l),setFocus:(l,h)=>r.setFocus(l,h),setHover:(l,h)=>r.setHover(l,h),toggleExpanded:l=>r.toggleExpanded(l),isSticky:l=>hu(l,t),duration:l=>fu(l,t),resolveVendorError:l=>dt.resolveVendorError(e.vendorErrors,l),openExternal:e.openExternal,announcer:e.announcer};return{host:{notify(l,h){const f=Ci(h,e.errorActions),E=ha(e.vendorErrors,f),_=l.severity==="error"?ei(f.message,{...f.title?{title:f.title}:{},...f.subtitle?{subtitle:f.subtitle}:{},...f.description?{description:f.description}:{},...f.action?{action:f.action}:{}},E,e.openExternal):null,g=l.severity==="error"&&l.source==="general"&&E!==null?"vendor-error":l.source,I=ti(l.severity,l.priority,E!==null,t.vendorCodesAreUrgent),T=Zr({severity:l.severity,title:(_==null?void 0:_.displayText)??f.title??f.message,priority:I,source:g},t.notificationRules),w=T===null?{showToast:!1,recordTimeline:!1}:iu({priority:T.priority,recordTimeline:f.recordTimeline},t,n),v=l.delivery==="os-only"?"mock-os":w.showToast?"shown":w.recordTimeline?"timeline-only":"suppressed",C={definition:l,payload:{...f,message:Rt.scrubSecrets(f.message),...f.title?{title:Rt.scrubSecrets(f.title)}:{},...f.description?{description:Rt.scrubSecrets(f.description)}:{}},channel:l.delivery,decision:w,outcome:v};if(l.delivery==="os-only"||T===null||!w.showToast)return u.push(C),"";const k=(_==null?void 0:_.bodyText)??f.subtitle??f.description;let O;const D=Ur((_==null?void 0:_.primaryAction)??f.action,f.actions,()=>O==null?void 0:O.close()),P=r.notify({severity:T.severity,title:Rt.scrubSecrets(T.title),...Si(f,k),source:T.source,priority:T.priority,isolated:!0,...f.id!==void 0?{id:String(f.id)}:{},...D?{actions:D}:{}});return O=P,u.push(P.id?C:{...C,outcome:"spam-dropped"}),P.id},progress(l,h){const f=Ci(h,e.errorActions),E=iu({priority:l.priority,recordTimeline:f.recordTimeline},t,n);u.push({definition:l,payload:f,channel:l.delivery,decision:E,outcome:E.showToast?"shown":E.recordTimeline?"timeline-only":"suppressed"});const _=f.id!==void 0?String(f.id):void 0;if(!E.showToast)return _!==void 0&&r.suppress(w=>w.id===_),Mo;let g;const I=Ur(f.action,f.actions,()=>g==null?void 0:g.close()),T=r.notify({severity:l.severity,title:Rt.scrubSecrets(f.message),...Si(f,f.subtitle??f.description),source:l.source,priority:l.priority,isolated:!0,sticky:!0,progress:f.onCancel?{onCancel:f.onCancel}:{},..._!==void 0?{id:_}:{},...I?{actions:I}:{}});return g=T,fa(T,f)}},controller:o,deliveries:u,setBehavior:l=>{t={...K.DEFAULT_NOTIFICATION_SETTINGS},n={dismissed:l==="dismissed",remindSuppressed:l==="reminder",sourceMuted:l==="source-muted",inQuietHours:l==="quiet-hours"},l==="dnd"?t={...t,doNotDisturb:!0}:l==="rule-transform"?t={...t,notificationRules:[{id:"preview-transform",name:"Preview transform",enabled:!0,conditions:{source:"dev"},actions:{setSeverity:"warning",setPriority:"urgent",addPrefix:"[RULE]"}}]}:l==="rule-suppress"&&(t={...t,notificationRules:[{id:"preview-suppress",name:"Preview suppress",enabled:!0,conditions:{source:"dev"},actions:{suppress:!0}}]})},subscribe:l=>r.subscribe(l),clear:()=>{for(const l of i)r.close(l.id);u.splice(0,u.length)},dispose:()=>{s(),r.dispose()}}}function qo(e,t){const n=e.notifications.stack;return{close:u=>n.dismiss(u),setFocus:(u,r)=>n.setFocus(u,r),setHover:(u,r)=>n.setHover(u,r),toggleExpanded:u=>n.toggleExpanded(u),isSticky:u=>hu(u,t()),duration:u=>fu(u,t()),resolveVendorError:u=>dt.resolveVendorError(e.vendorErrors,u),openExternal:u=>dt.openExternalUrl(e.desktop,e.log,u),announcer:e.announcer}}function ni(e){const t=n=>{n.catch(u=>e.notifications.notify(Po,{cause:u}))};return{remindLaterEnabled:()=>K.notificationSettings.get().remindLaterEnabled,isSourceMuted:hn,setSourceMuted:(n,u)=>t(Do(n,u)),dismissKey:n=>t(ko(n)),remindLater:(n,u)=>t(xo(n,u)),openSettings:()=>e.openNotificationSettings(),navigate:n=>e.notifications.requestNavigation(n)}}const ga=3e4,[Ea,Ni]=m.createSignal(Date.now());let Fu=0,nu;function ba(){Fu+=1,nu===void 0&&(typeof window>"u"||(Ni(Date.now()),nu=setInterval(()=>Ni(Date.now()),ga)))}function _a(){Fu=Math.max(0,Fu-1),!(Fu>0||nu===void 0)&&(clearInterval(nu),nu=void 0)}function ma(){return ba(),m.onCleanup(_a),Ea}const Aa=1e3,Ta=6e4,Sa=60,Ca=60,Ri=24,Na=30;function Ra(e){const t=Math.max(0,e);if(Math.floor(t/Aa)<Na)return{key:"now"};const u=Math.floor(t/Ta);if(u<1)return{key:"now"};if(u<Ca)return{key:"{n}m ago",values:{n:u}};const r=Math.floor(u/Sa);return r<Ri?{key:"{n}h ago",values:{n:r}}:{key:"{n}d ago",values:{n:Math.floor(r/Ri)}}}const Ii={};function Ia(e){let t=Ii[e];if(t)return t;t=Ii[e]=[];for(let n=0;n<128;n++){const u=String.fromCharCode(n);t.push(u)}for(let n=0;n<e.length;n++){const u=e.charCodeAt(n);t[u]="%"+("0"+u.toString(16).toUpperCase()).slice(-2)}return t}function Pn(e,t){typeof t!="string"&&(t=Pn.defaultChars);const n=Ia(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(u){let r="";for(let i=0,s=u.length;i<s;i+=3){const o=parseInt(u.slice(i+1,i+3),16);if(o<128){r+=n[o];continue}if((o&224)===192&&i+3<s){const c=parseInt(u.slice(i+4,i+6),16);if((c&192)===128){const l=o<<6&1984|c&63;l<128?r+="��":r+=String.fromCharCode(l),i+=3;continue}}if((o&240)===224&&i+6<s){const c=parseInt(u.slice(i+4,i+6),16),l=parseInt(u.slice(i+7,i+9),16);if((c&192)===128&&(l&192)===128){const h=o<<12&61440|c<<6&4032|l&63;h<2048||h>=55296&&h<=57343?r+="���":r+=String.fromCharCode(h),i+=6;continue}}if((o&248)===240&&i+9<s){const c=parseInt(u.slice(i+4,i+6),16),l=parseInt(u.slice(i+7,i+9),16),h=parseInt(u.slice(i+10,i+12),16);if((c&192)===128&&(l&192)===128&&(h&192)===128){let f=o<<18&1835008|c<<12&258048|l<<6&4032|h&63;f<65536||f>1114111?r+="����":(f-=65536,r+=String.fromCharCode(55296+(f>>10),56320+(f&1023))),i+=9;continue}}r+="�"}return r})}Pn.defaultChars=";/?:@&=+$,#";Pn.componentChars="";const Oi={};function Oa(e){let t=Oi[e];if(t)return t;t=Oi[e]=[];for(let n=0;n<128;n++){const u=String.fromCharCode(n);/^[0-9a-z]$/i.test(u)?t.push(u):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function gu(e,t,n){typeof t!="string"&&(n=t,t=gu.defaultChars),typeof n>"u"&&(n=!0);const u=Oa(t);let r="";for(let i=0,s=e.length;i<s;i++){const o=e.charCodeAt(i);if(n&&o===37&&i+2<s&&/^[0-9a-f]{2}$/i.test(e.slice(i+1,i+3))){r+=e.slice(i,i+3),i+=2;continue}if(o<128){r+=u[o];continue}if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&i+1<s){const c=e.charCodeAt(i+1);if(c>=56320&&c<=57343){r+=encodeURIComponent(e[i]+e[i+1]),i++;continue}}r+="%EF%BF%BD";continue}r+=encodeURIComponent(e[i])}return r}gu.defaultChars=";/?:@&=+$,-_.!~*'()#";gu.componentChars="-_.!~*'()";function ui(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function zu(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const ya=/^([a-z0-9.+-]+:)/i,xa=/:[0-9]*$/,Da=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,ka=["<",">",'"',"`"," ","\r",`
|
|
31
|
+
`," "],La=["{","}","|","\\","^","`"].concat(ka),wa=["'"].concat(La),yi=["%","/","?",";","#"].concat(wa),xi=["/","?","#"],va=255,Di=/^[+a-z0-9A-Z_-]{0,63}$/,Ma=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ki={javascript:!0,"javascript:":!0},Li={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function ri(e,t){if(e&&e instanceof zu)return e;const n=new zu;return n.parse(e,t),n}zu.prototype.parse=function(e,t){let n,u,r,i=e;if(i=i.trim(),!t&&e.split("#").length===1){const l=Da.exec(i);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}let s=ya.exec(i);if(s&&(s=s[0],n=s.toLowerCase(),this.protocol=s,i=i.substr(s.length)),(t||s||i.match(/^\/\/[^@\/]+@[^@\/]+/))&&(r=i.substr(0,2)==="//",r&&!(s&&ki[s])&&(i=i.substr(2),this.slashes=!0)),!ki[s]&&(r||s&&!Li[s])){let l=-1;for(let g=0;g<xi.length;g++)u=i.indexOf(xi[g]),u!==-1&&(l===-1||u<l)&&(l=u);let h,f;l===-1?f=i.lastIndexOf("@"):f=i.lastIndexOf("@",l),f!==-1&&(h=i.slice(0,f),i=i.slice(f+1),this.auth=h),l=-1;for(let g=0;g<yi.length;g++)u=i.indexOf(yi[g]),u!==-1&&(l===-1||u<l)&&(l=u);l===-1&&(l=i.length),i[l-1]===":"&&l--;const E=i.slice(0,l);i=i.slice(l),this.parseHost(E),this.hostname=this.hostname||"";const _=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!_){const g=this.hostname.split(/\./);for(let I=0,T=g.length;I<T;I++){const w=g[I];if(w&&!w.match(Di)){let v="";for(let C=0,k=w.length;C<k;C++)w.charCodeAt(C)>127?v+="x":v+=w[C];if(!v.match(Di)){const C=g.slice(0,I),k=g.slice(I+1),O=w.match(Ma);O&&(C.push(O[1]),k.unshift(O[2])),k.length&&(i=k.join(".")+i),this.hostname=C.join(".");break}}}}this.hostname.length>va&&(this.hostname=""),_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const o=i.indexOf("#");o!==-1&&(this.hash=i.substr(o),i=i.slice(0,o));const c=i.indexOf("?");return c!==-1&&(this.search=i.substr(c),i=i.slice(0,c)),i&&(this.pathname=i),Li[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};zu.prototype.parseHost=function(e){let t=xa.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const Fa=Object.freeze(Object.defineProperty({__proto__:null,decode:Pn,encode:gu,format:ui,parse:ri},Symbol.toStringTag,{value:"Module"})),Yo=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Ko=/[\0-\x1F\x7F-\x9F]/,Pa=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,ii=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Xo=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,jo=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Ua=Object.freeze(Object.defineProperty({__proto__:null,Any:Yo,Cc:Ko,Cf:Pa,P:ii,S:Xo,Z:jo},Symbol.toStringTag,{value:"Module"})),Ba=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Ha=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var hr;const Ga=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),za=(hr=String.fromCodePoint)!==null&&hr!==void 0?hr:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function $a(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Ga.get(e))!==null&&t!==void 0?t:e}var Je;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Je||(Je={}));const Va=32;var dn;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(dn||(dn={}));function Br(e){return e>=Je.ZERO&&e<=Je.NINE}function Wa(e){return e>=Je.UPPER_A&&e<=Je.UPPER_F||e>=Je.LOWER_A&&e<=Je.LOWER_F}function qa(e){return e>=Je.UPPER_A&&e<=Je.UPPER_Z||e>=Je.LOWER_A&&e<=Je.LOWER_Z||Br(e)}function Ya(e){return e===Je.EQUALS||qa(e)}var Qe;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Qe||(Qe={}));var en;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(en||(en={}));class Ka{constructor(t,n,u){this.decodeTree=t,this.emitCodePoint=n,this.errors=u,this.state=Qe.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=en.Strict}startEntity(t){this.decodeMode=t,this.state=Qe.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Qe.EntityStart:return t.charCodeAt(n)===Je.NUM?(this.state=Qe.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Qe.NamedEntity,this.stateNamedEntity(t,n));case Qe.NumericStart:return this.stateNumericStart(t,n);case Qe.NumericDecimal:return this.stateNumericDecimal(t,n);case Qe.NumericHex:return this.stateNumericHex(t,n);case Qe.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Va)===Je.LOWER_X?(this.state=Qe.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Qe.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,u,r){if(n!==u){const i=u-n;this.result=this.result*Math.pow(r,i)+parseInt(t.substr(n,i),r),this.consumed+=i}}stateNumericHex(t,n){const u=n;for(;n<t.length;){const r=t.charCodeAt(n);if(Br(r)||Wa(r))n+=1;else return this.addToNumericResult(t,u,n,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(t,u,n,16),-1}stateNumericDecimal(t,n){const u=n;for(;n<t.length;){const r=t.charCodeAt(n);if(Br(r))n+=1;else return this.addToNumericResult(t,u,n,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(t,u,n,10),-1}emitNumericEntity(t,n){var u;if(this.consumed<=n)return(u=this.errors)===null||u===void 0||u.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Je.SEMI)this.consumed+=1;else if(this.decodeMode===en.Strict)return 0;return this.emitCodePoint($a(this.result),this.consumed),this.errors&&(t!==Je.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:u}=this;let r=u[this.treeIndex],i=(r&dn.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=Xa(u,r,this.treeIndex+Math.max(1,i),s),this.treeIndex<0)return this.result===0||this.decodeMode===en.Attribute&&(i===0||Ya(s))?0:this.emitNotTerminatedNamedEntity();if(r=u[this.treeIndex],i=(r&dn.VALUE_LENGTH)>>14,i!==0){if(s===Je.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==en.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:u}=this,r=(u[n]&dn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,r,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,u){const{decodeTree:r}=this;return this.emitCodePoint(n===1?r[t]&~dn.VALUE_LENGTH:r[t+1],u),n===3&&this.emitCodePoint(r[t+2],u),u}end(){var t;switch(this.state){case Qe.NamedEntity:return this.result!==0&&(this.decodeMode!==en.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Qe.NumericDecimal:return this.emitNumericEntity(0,2);case Qe.NumericHex:return this.emitNumericEntity(0,3);case Qe.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Qe.EntityStart:return 0}}}function Zo(e){let t="";const n=new Ka(e,u=>t+=za(u));return function(r,i){let s=0,o=0;for(;(o=r.indexOf("&",o))>=0;){t+=r.slice(s,o),n.startEntity(i);const l=n.write(r,o+1);if(l<0){s=o+n.end();break}s=o+l,o=l===0?s+1:s}const c=t+r.slice(s);return t="",c}}function Xa(e,t,n,u){const r=(t&dn.BRANCH_LENGTH)>>7,i=t&dn.JUMP_TABLE;if(r===0)return i!==0&&u===i?n:-1;if(i){const c=u-i;return c<0||c>=r?-1:e[n+c]-1}let s=n,o=s+r-1;for(;s<=o;){const c=s+o>>>1,l=e[c];if(l<u)s=c+1;else if(l>u)o=c-1;else return e[c+r]}return-1}const Qo=Zo(Ba);Zo(Ha);function ja(e,t=en.Legacy){return Qo(e,t)}function Za(e){return Qo(e,en.Strict)}function Qa(e){return Object.prototype.toString.call(e)}function oi(e){return Qa(e)==="[object String]"}const Ja=Object.prototype.hasOwnProperty;function el(e,t){return Ja.call(e,t)}function Zu(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(u){e[u]=n[u]})}}),e}function tl(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function si(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function ou(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const Jo=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,nl=/&([a-z#][a-z0-9]{1,31});/gi,ul=new RegExp(Jo.source+"|"+nl.source,"gi"),rl=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function il(e,t){if(t.charCodeAt(0)===35&&rl.test(t)){const u=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return si(u)?ou(u):e}const n=ja(e);return n!==e?n:e}function ol(e){return e.indexOf("\\")<0?e:e.replace(Jo,"$1")}function Un(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(ul,function(t,n,u){return n||il(t,u)})}const sl=/[&<>"]/,cl=/[&<>"]/g,al={"&":"&","<":"<",">":">",'"':"""};function ll(e){return al[e]}function fn(e){return sl.test(e)?e.replace(cl,ll):e}const dl=/[.?*+^$[\]\\(){}|-]/g;function fl(e){return e.replace(dl,"\\$&")}function Pe(e){switch(e){case 9:case 32:return!0}return!1}function su(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function es(e){return ii.test(e)||Xo.test(e)}function cu(e){return es(ou(e))}function au(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Qu(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}function wi(e){return e===32||e===9||e===10||e===13}function Ju(e){let t=0;for(;t<e.length&&wi(e.charCodeAt(t));t++);let n=e.length-1;for(;n>=t&&wi(e.charCodeAt(n));n--);return e.slice(t,n+1)}const hl={mdurl:Fa,ucmicro:Ua},pl=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:tl,asciiTrim:Ju,assign:Zu,escapeHtml:fn,escapeRE:fl,fromCodePoint:ou,has:el,isMdAsciiPunct:au,isPunctChar:es,isPunctCharCode:cu,isSpace:Pe,isString:oi,isValidEntityCode:si,isWhiteSpace:su,lib:hl,normalizeReference:Qu,unescapeAll:Un,unescapeMd:ol},Symbol.toStringTag,{value:"Module"}));function gl(e,t,n){let u,r,i,s;const o=e.posMax,c=e.pos;for(e.pos=t+1,u=1;e.pos<o;){if(i=e.src.charCodeAt(e.pos),i===93&&(u--,u===0)){r=!0;break}if(s=e.pos,e.md.inline.skipToken(e),i===91){if(s===e.pos-1)u++;else if(n)return e.pos=c,-1}}let l=-1;return r&&(l=e.pos),e.pos=c,l}function El(e,t,n){let u,r=t;const i={ok:!1,pos:0,str:""};if(e.charCodeAt(r)===60){for(r++;r<n;){if(u=e.charCodeAt(r),u===10||u===60)return i;if(u===62)return i.pos=r+1,i.str=Un(e.slice(t+1,r)),i.ok=!0,i;if(u===92&&r+1<n){r+=2;continue}r++}return i}let s=0;for(;r<n&&(u=e.charCodeAt(r),!(u===32||u<32||u===127));){if(u===92&&r+1<n){if(e.charCodeAt(r+1)===32){r++;continue}r+=2;continue}if(u===40&&(s++,s>32))return i;if(u===41){if(s===0)break;s--}r++}return t===r||s!==0||(i.str=Un(e.slice(t,r)),i.pos=r,i.ok=!0),i}function bl(e,t,n,u){let r,i=t;const s={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(u)s.str=u.str,s.marker=u.marker;else{if(i>=n)return s;let o=e.charCodeAt(i);if(o!==34&&o!==39&&o!==40)return s;t++,i++,o===40&&(o=41),s.marker=o}for(;i<n;){if(r=e.charCodeAt(i),r===s.marker)return s.pos=i+1,s.str+=Un(e.slice(t,i)),s.ok=!0,s;if(r===40&&s.marker===41)return s;r===92&&i+1<n&&i++,i++}return s.can_continue=!0,s.str+=Un(e.slice(t,i)),s}const _l=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:El,parseLinkLabel:gl,parseLinkTitle:bl},Symbol.toStringTag,{value:"Module"})),Vt={};Vt.code_inline=function(e,t,n,u,r){const i=e[t];return"<code"+r.renderAttrs(i)+">"+fn(i.content)+"</code>"};Vt.code_block=function(e,t,n,u,r){const i=e[t];return"<pre"+r.renderAttrs(i)+"><code>"+fn(e[t].content)+`</code></pre>
|
|
32
|
+
`};Vt.fence=function(e,t,n,u,r){const i=e[t],s=i.info?Un(i.info).trim():"";let o="",c="";if(s){const h=s.split(/(\s+)/g);o=h[0],c=h.slice(2).join("")}let l;if(n.highlight?l=n.highlight(i.content,o,c)||fn(i.content):l=fn(i.content),l.indexOf("<pre")===0)return l+`
|
|
33
|
+
`;if(s){const h=i.attrIndex("class"),f=i.attrs?i.attrs.slice():[];h<0?f.push(["class",n.langPrefix+o]):(f[h]=f[h].slice(),f[h][1]+=" "+n.langPrefix+o);const E={attrs:f};return`<pre><code${r.renderAttrs(E)}>${l}</code></pre>
|
|
34
|
+
`}return`<pre><code${r.renderAttrs(i)}>${l}</code></pre>
|
|
35
|
+
`};Vt.image=function(e,t,n,u,r){const i=e[t];return i.attrs[i.attrIndex("alt")][1]=r.renderInlineAsText(i.children,n,u),r.renderToken(e,t,n)};Vt.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
|
|
36
|
+
`:`<br>
|
|
37
|
+
`};Vt.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
|
|
38
|
+
`:`<br>
|
|
39
|
+
`:`
|
|
40
|
+
`};Vt.text=function(e,t){return fn(e[t].content)};Vt.html_block=function(e,t){return e[t].content};Vt.html_inline=function(e,t){return e[t].content};function Hn(){this.rules=Zu({},Vt)}Hn.prototype.renderAttrs=function(t){let n,u,r;if(!t.attrs)return"";for(r="",n=0,u=t.attrs.length;n<u;n++)r+=" "+fn(t.attrs[n][0])+'="'+fn(t.attrs[n][1])+'"';return r};Hn.prototype.renderToken=function(t,n,u){const r=t[n];let i="";if(r.hidden)return"";r.block&&r.nesting!==-1&&n&&t[n-1].hidden&&(i+=`
|
|
41
|
+
`),i+=(r.nesting===-1?"</":"<")+r.tag,i+=this.renderAttrs(r),r.nesting===0&&u.xhtmlOut&&(i+=" /");let s=!1;if(r.block&&(s=!0,r.nesting===1&&n+1<t.length)){const o=t[n+1];(o.type==="inline"||o.hidden||o.nesting===-1&&o.tag===r.tag)&&(s=!1)}return i+=s?`>
|
|
42
|
+
`:">",i};Hn.prototype.renderInline=function(e,t,n){let u="";const r=this.rules;for(let i=0,s=e.length;i<s;i++){const o=e[i].type;typeof r[o]<"u"?u+=r[o](e,i,t,n,this):u+=this.renderToken(e,i,t)}return u};Hn.prototype.renderInlineAsText=function(e,t,n){let u="";for(let r=0,i=e.length;r<i;r++)switch(e[r].type){case"text":u+=e[r].content;break;case"image":u+=this.renderInlineAsText(e[r].children,t,n);break;case"html_inline":case"html_block":u+=e[r].content;break;case"softbreak":case"hardbreak":u+=`
|
|
43
|
+
`;break}return u};Hn.prototype.render=function(e,t,n){let u="";const r=this.rules;for(let i=0,s=e.length;i<s;i++){const o=e[i].type;o==="inline"?u+=this.renderInline(e[i].children,t,n):typeof r[o]<"u"?u+=r[o](e,i,t,n,this):u+=this.renderToken(e,i,t,n)}return u};function Et(){this.__rules__=[],this.__cache__=null}Et.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};Et.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(u){t.indexOf(u)<0&&t.push(u)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(u){u.enabled&&(n&&u.alt.indexOf(n)<0||e.__cache__[n].push(u.fn))})})};Et.prototype.at=function(e,t,n){const u=this.__find__(e),r=n||{};if(u===-1)throw new Error("Parser rule not found: "+e);this.__rules__[u].fn=t,this.__rules__[u].alt=r.alt||[],this.__cache__=null};Et.prototype.before=function(e,t,n,u){const r=this.__find__(e),i=u||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null};Et.prototype.after=function(e,t,n,u){const r=this.__find__(e),i=u||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r+1,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null};Et.prototype.push=function(e,t,n){const u=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:u.alt||[]}),this.__cache__=null};Et.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(u){const r=this.__find__(u);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+u)}this.__rules__[r].enabled=!0,n.push(u)},this),this.__cache__=null,n};Et.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)};Et.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(u){const r=this.__find__(u);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+u)}this.__rules__[r].enabled=!1,n.push(u)},this),this.__cache__=null,n};Et.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function Ft(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Ft.prototype.attrIndex=function(t){if(!this.attrs)return-1;const n=this.attrs;for(let u=0,r=n.length;u<r;u++)if(n[u][0]===t)return u;return-1};Ft.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]};Ft.prototype.attrSet=function(t,n){const u=this.attrIndex(t),r=[t,n];u<0?this.attrPush(r):this.attrs[u]=r};Ft.prototype.attrGet=function(t){const n=this.attrIndex(t);let u=null;return n>=0&&(u=this.attrs[n][1]),u};Ft.prototype.attrJoin=function(t,n){const u=this.attrIndex(t);u<0?this.attrPush([t,n]):this.attrs[u][1]=this.attrs[u][1]+" "+n};function ts(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}ts.prototype.Token=Ft;const ml=/\r\n?|\n/g,Al=/\0/g;function Tl(e){let t;t=e.src.replace(ml,`
|
|
44
|
+
`),t=t.replace(Al,"�"),e.src=t}function Sl(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function Cl(e){const t=e.tokens;for(let n=0,u=t.length;n<u;n++){const r=t[n];r.type==="inline"&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}function Nl(e){return/^<a[>\s]/i.test(e)}function Rl(e){return/^<\/a\s*>/i.test(e)}function Il(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,u=t.length;n<u;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;const r=t[n].children,i=[];let s=0;for(let o=r.length-1;o>=0;o--){const c=r[o];if(c.type==="link_close"){for(o--;r[o].level!==c.level&&r[o].type!=="link_open";)o--;continue}if(c.type==="html_inline"&&(Nl(c.content)&&s>0&&s--,Rl(c.content)&&s++),!(s>0)&&c.type==="text"&&e.md.linkify.test(c.content)){const l=c.content;let h=e.md.linkify.match(l);const f=[];let E=c.level,_=0;h.length>0&&h[0].index===0&&o>0&&r[o-1].type==="text_special"&&(h=h.slice(1));for(let g=0;g<h.length;g++){const I=h[g].url,T=e.md.normalizeLink(I);if(!e.md.validateLink(T))continue;let w=h[g].text;h[g].schema?h[g].schema==="mailto:"&&!/^mailto:/i.test(w)?w=e.md.normalizeLinkText("mailto:"+w).replace(/^mailto:/,""):w=e.md.normalizeLinkText(w):w=e.md.normalizeLinkText("http://"+w).replace(/^http:\/\//,"");const v=h[g].index;if(v>_){const D=new e.Token("text","",0);D.content=l.slice(_,v),D.level=E,f.push(D)}const C=new e.Token("link_open","a",1);C.attrs=[["href",T]],C.level=E++,C.markup="linkify",C.info="auto",f.push(C);const k=new e.Token("text","",0);k.content=w,k.level=E,f.push(k);const O=new e.Token("link_close","a",-1);O.level=--E,O.markup="linkify",O.info="auto",f.push(O),_=h[g].lastIndex}if(_<l.length){const g=new e.Token("text","",0);g.content=l.slice(_),g.level=E,f.push(g)}i.push({index:o,nodes:f})}}if(i.length>0){let o=r.length;for(const f of i)o+=f.nodes.length-1;const c=new Array(o);let l=0,h=0;i.reverse();for(let f=0;f<r.length;f++){const E=i[l];if((E==null?void 0:E.index)===f){for(const _ of E.nodes)c[h++]=_;l++}else c[h++]=r[f]}t[n].children=c}}}const ns=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Ol=/\((c|tm|r)\)/i,yl=/\((c|tm|r)\)/ig,xl={c:"©",r:"®",tm:"™"};function Dl(e,t){return xl[t.toLowerCase()]}function kl(e){let t=0;for(let n=e.length-1;n>=0;n--){const u=e[n];u.type==="text"&&!t&&(u.content=u.content.replace(yl,Dl)),u.type==="link_open"&&u.info==="auto"&&t--,u.type==="link_close"&&u.info==="auto"&&t++}}function Ll(e){let t=0;for(let n=e.length-1;n>=0;n--){const u=e[n];u.type==="text"&&!t&&ns.test(u.content)&&(u.content=u.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),u.type==="link_open"&&u.info==="auto"&&t--,u.type==="link_close"&&u.info==="auto"&&t++}}function wl(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(Ol.test(e.tokens[t].content)&&kl(e.tokens[t].children),ns.test(e.tokens[t].content)&&Ll(e.tokens[t].children))}const vl=/['"]/,vi=/['"]/g,Mi="’",Ml=1e3;function Fi(e,t,n){for(;e.length>n;){const u=e.pop();u.isSingleQuote?t.single=u.prevSameQuoteIdx:t.double=u.prevSameQuoteIdx}}function yu(e,t,n,u){e[t]||(e[t]=[]),e[t].push({pos:n,ch:u})}function Fl(e,t){let n="",u=0;t.sort((r,i)=>r.pos-i.pos);for(let r=0;r<t.length;r++){const i=t[r];n+=e.slice(u,i.pos)+i.ch,u=i.pos+1}return n+e.slice(u)}function Pl(e,t){let n;const u=[],r={single:-1,double:-1},i={};for(let s=0;s<e.length;s++){const o=e[s],c=e[s].level;for(n=u.length-1;n>=0&&!(u[n].level<=c);n--);if(Fi(u,r,n+1),o.type!=="text")continue;const l=o.content;let h=0;const f=l.length;e:for(;h<f;){vi.lastIndex=h;const E=vi.exec(l);if(!E)break;let _=!0,g=!0;h=E.index+1;const I=E[0]==="'";let T=32;if(E.index-1>=0)T=l.charCodeAt(E.index-1);else for(n=s-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){T=e[n].content.charCodeAt(e[n].content.length-1);break}let w=32;if(h<f)w=l.charCodeAt(h);else for(n=s+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){w=e[n].content.charCodeAt(0);break}const v=au(T)||cu(T),C=au(w)||cu(w),k=su(T),O=su(w);if(O?_=!1:C&&(k||v||(_=!1)),k?g=!1:v&&(O||C||(g=!1)),w===34&&E[0]==='"'&&T>=48&&T<=57&&(g=_=!1),_&&g&&(_=v,g=C),!_&&!g){I&&yu(i,s,E.index,Mi);continue}if(g&&(n=I?r.single:r.double,n>=0&&u[n].level===c)){const D=u[n];let P,W;I?(P=t.md.options.quotes[2],W=t.md.options.quotes[3]):(P=t.md.options.quotes[0],W=t.md.options.quotes[1]),yu(i,s,E.index,W),yu(i,D.tokenIdx,D.contentPos,P),Fi(u,r,n);continue e}if(_){if(u.length>=Ml)return;u.push({tokenIdx:s,contentPos:E.index,isSingleQuote:I,level:c,prevSameQuoteIdx:I?r.single:r.double}),I?r.single=u.length-1:r.double=u.length-1}else g&&I&&yu(i,s,E.index,Mi)}}Object.keys(i).forEach(function(s){e[s].content=Fl(e[s].content,i[s])})}function Ul(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!vl.test(e.tokens[t].content)||Pl(e.tokens[t].children,e)}function Bl(e){let t,n;const u=e.tokens,r=u.length;for(let i=0;i<r;i++){if(u[i].type!=="inline")continue;const s=u[i].children,o=s.length;for(t=0;t<o;t++)s[t].type==="text_special"&&(s[t].type="text");for(t=n=0;t<o;t++)s[t].type==="text"&&t+1<o&&s[t+1].type==="text"?s[t+1].content=s[t].content+s[t+1].content:(t!==n&&(s[n]=s[t]),n++);t!==n&&(s.length=n)}}const pr=[["normalize",Tl],["block",Sl],["inline",Cl],["linkify",Il],["replacements",wl],["smartquotes",Ul],["text_join",Bl]];function ci(){this.ruler=new Et;for(let e=0;e<pr.length;e++)this.ruler.push(pr[e][0],pr[e][1])}ci.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,u=t.length;n<u;n++)t[n](e)};ci.prototype.State=ts;function Wt(e,t,n,u){this.src=e,this.md=t,this.env=n,this.tokens=u,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const r=this.src;for(let i=0,s=0,o=0,c=0,l=r.length,h=!1;s<l;s++){const f=r.charCodeAt(s);if(!h)if(Pe(f)){o++,f===9?c+=4-c%4:c++;continue}else h=!0;(f===10||s===l-1)&&(f!==10&&s++,this.bMarks.push(i),this.eMarks.push(s),this.tShift.push(o),this.sCount.push(c),this.bsCount.push(0),h=!1,o=0,c=0,i=s+1)}this.bMarks.push(r.length),this.eMarks.push(r.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Wt.prototype.push=function(e,t,n){const u=new Ft(e,t,n);return u.block=!0,n<0&&this.level--,u.level=this.level,n>0&&this.level++,this.tokens.push(u),u};Wt.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};Wt.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};Wt.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const u=this.src.charCodeAt(t);if(!Pe(u))break}return t};Wt.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!Pe(this.src.charCodeAt(--t)))return t+1;return t};Wt.prototype.skipChars=function(t,n){for(let u=this.src.length;t<u&&this.src.charCodeAt(t)===n;t++);return t};Wt.prototype.skipCharsBack=function(t,n,u){if(t<=u)return t;for(;t>u;)if(n!==this.src.charCodeAt(--t))return t+1;return t};Wt.prototype.getLines=function(t,n,u,r){if(t>=n)return"";const i=new Array(n-t);for(let s=0,o=t;o<n;o++,s++){let c=0;const l=this.bMarks[o];let h=l,f;for(o+1<n||r?f=this.eMarks[o]+1:f=this.eMarks[o];h<f&&c<u;){const E=this.src.charCodeAt(h);if(Pe(E))E===9?c+=4-(c+this.bsCount[o])%4:c++;else if(h-l<this.tShift[o])c++;else break;h++}c>u?i[s]=new Array(c-u+1).join(" ")+this.src.slice(h,f):i[s]=this.src.slice(h,f)}return i.join("")};Wt.prototype.Token=Ft;const Hl=65536;function gr(e,t){const n=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];return e.src.slice(n,u)}function Pi(e){const t=[],n=e.length;let u=0,r=e.charCodeAt(u),i=!1,s=0,o="";for(;u<n;)r===124&&(i?(o+=e.substring(s,u-1),s=u):(t.push(o+e.substring(s,u)),o="",s=u+1)),i=r===92,u++,r=e.charCodeAt(u);return t.push(o+e.substring(s)),t}function Gl(e,t,n,u){if(t+2>n)return!1;let r=t+1;if(e.sCount[r]<e.blkIndent||e.sCount[r]-e.blkIndent>=4)return!1;let i=e.bMarks[r]+e.tShift[r];if(i>=e.eMarks[r])return!1;const s=e.src.charCodeAt(i++);if(s!==124&&s!==45&&s!==58||i>=e.eMarks[r])return!1;const o=e.src.charCodeAt(i++);if(o!==124&&o!==45&&o!==58&&!Pe(o)||s===45&&Pe(o))return!1;for(;i<e.eMarks[r];){const k=e.src.charCodeAt(i);if(k!==124&&k!==45&&k!==58&&!Pe(k))return!1;i++}let c=gr(e,t+1),l=c.split("|");const h=[];for(let k=0;k<l.length;k++){const O=l[k].trim();if(!O){if(k===0||k===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(O))return!1;O.charCodeAt(O.length-1)===58?h.push(O.charCodeAt(0)===58?"center":"right"):O.charCodeAt(0)===58?h.push("left"):h.push("")}if(c=gr(e,t).trim(),c.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;l=Pi(c),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop();const f=l.length;if(f===0||f!==h.length)return!1;if(u)return!0;const E=e.parentType;e.parentType="table";const _=e.md.block.ruler.getRules("blockquote"),g=e.push("table_open","table",1),I=[t,0];g.map=I;const T=e.push("thead_open","thead",1);T.map=[t,t+1];const w=e.push("tr_open","tr",1);w.map=[t,t+1];for(let k=0;k<l.length;k++){const O=e.push("th_open","th",1);h[k]&&(O.attrs=[["style","text-align:"+h[k]]]);const D=e.push("inline","",0);D.content=l[k].trim(),D.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let v,C=0;for(r=t+2;r<n&&!(e.sCount[r]<e.blkIndent);r++){let k=!1;for(let D=0,P=_.length;D<P;D++)if(_[D](e,r,n,!0)){k=!0;break}if(k||(c=gr(e,r).trim(),!c)||e.sCount[r]-e.blkIndent>=4||(l=Pi(c),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop(),C+=f-l.length,C>Hl))break;if(r===t+2){const D=e.push("tbody_open","tbody",1);D.map=v=[t+2,0]}const O=e.push("tr_open","tr",1);O.map=[r,r+1];for(let D=0;D<f;D++){const P=e.push("td_open","td",1);h[D]&&(P.attrs=[["style","text-align:"+h[D]]]);const W=e.push("inline","",0);W.content=l[D]?l[D].trim():"",W.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return v&&(e.push("tbody_close","tbody",-1),v[1]=r),e.push("table_close","table",-1),I[1]=r,e.parentType=E,e.line=r,!0}function zl(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let u=t+1,r=u;for(;u<n;){if(e.isEmpty(u)){u++;continue}if(e.sCount[u]-e.blkIndent>=4){u++,r=u;continue}break}e.line=r;const i=e.push("code_block","code",0);return i.content=e.getLines(t,r,4+e.blkIndent,!1)+`
|
|
45
|
+
`,i.map=[t,e.line],!0}function $l(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||r+3>i)return!1;const s=e.src.charCodeAt(r);if(s!==126&&s!==96)return!1;let o=r;r=e.skipChars(r,s);let c=r-o;if(c<3)return!1;const l=e.src.slice(o,r),h=e.src.slice(r,i);if(s===96&&h.indexOf(String.fromCharCode(s))>=0)return!1;if(u)return!0;let f=t,E=!1;for(;f++,!(f>=n||(r=o=e.bMarks[f]+e.tShift[f],i=e.eMarks[f],r<i&&e.sCount[f]<e.blkIndent));)if(e.src.charCodeAt(r)===s&&!(e.sCount[f]-e.blkIndent>=4)&&(r=e.skipChars(r,s),!(r-o<c)&&(r=e.skipSpaces(r),!(r<i)))){E=!0;break}c=e.sCount[t],e.line=f+(E?1:0);const _=e.push("fence","code",0);return _.info=h,_.content=e.getLines(t+1,f,c,!0),_.markup=l,_.map=[t,e.line],!0}function Vl(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];const s=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(r)!==62)return!1;if(u)return!0;const o=[],c=[],l=[],h=[],f=e.md.block.ruler.getRules("blockquote"),E=e.parentType;e.parentType="blockquote";let _=!1,g;for(g=t;g<n;g++){const C=e.sCount[g]<e.blkIndent;if(r=e.bMarks[g]+e.tShift[g],i=e.eMarks[g],r>=i)break;if(e.src.charCodeAt(r++)===62&&!C){let O=e.sCount[g]+1,D,P;e.src.charCodeAt(r)===32?(r++,O++,P=!1,D=!0):e.src.charCodeAt(r)===9?(D=!0,(e.bsCount[g]+O)%4===3?(r++,O++,P=!1):P=!0):D=!1;let W=O;for(o.push(e.bMarks[g]),e.bMarks[g]=r;r<i;){const te=e.src.charCodeAt(r);if(Pe(te))te===9?W+=4-(W+e.bsCount[g]+(P?1:0))%4:W++;else break;r++}_=r>=i,c.push(e.bsCount[g]),e.bsCount[g]=e.sCount[g]+1+(D?1:0),l.push(e.sCount[g]),e.sCount[g]=W-O,h.push(e.tShift[g]),e.tShift[g]=r-e.bMarks[g];continue}if(_)break;let k=!1;for(let O=0,D=f.length;O<D;O++)if(f[O](e,g,n,!0)){k=!0;break}if(k){e.lineMax=g,e.blkIndent!==0&&(o.push(e.bMarks[g]),c.push(e.bsCount[g]),h.push(e.tShift[g]),l.push(e.sCount[g]),e.sCount[g]-=e.blkIndent);break}o.push(e.bMarks[g]),c.push(e.bsCount[g]),h.push(e.tShift[g]),l.push(e.sCount[g]),e.sCount[g]=-1}const I=e.blkIndent;e.blkIndent=0;const T=e.push("blockquote_open","blockquote",1);T.markup=">";const w=[t,0];T.map=w,e.md.block.tokenize(e,t,g);const v=e.push("blockquote_close","blockquote",-1);v.markup=">",e.lineMax=s,e.parentType=E,w[1]=e.line;for(let C=0;C<h.length;C++)e.bMarks[C+t]=o[C],e.tShift[C+t]=h[C],e.sCount[C+t]=l[C],e.bsCount[C+t]=c[C];return e.blkIndent=I,!0}function Wl(e,t,n,u){const r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.bMarks[t]+e.tShift[t];const s=e.src.charCodeAt(i++);if(s!==42&&s!==45&&s!==95)return!1;let o=1;for(;i<r;){const l=e.src.charCodeAt(i++);if(l!==s&&!Pe(l))return!1;l===s&&o++}if(o<3)return!1;if(u)return!0;e.line=t+1;const c=e.push("hr","hr",0);return c.map=[t,e.line],c.markup=Array(o+1).join(String.fromCharCode(s)),!0}function Ui(e,t){const n=e.eMarks[t];let u=e.bMarks[t]+e.tShift[t];const r=e.src.charCodeAt(u++);if(r!==42&&r!==45&&r!==43)return-1;if(u<n){const i=e.src.charCodeAt(u);if(!Pe(i))return-1}return u}function Bi(e,t){const n=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];let r=n;if(r+1>=u)return-1;let i=e.src.charCodeAt(r++);if(i<48||i>57)return-1;for(;;){if(r>=u)return-1;if(i=e.src.charCodeAt(r++),i>=48&&i<=57){if(r-n>=10)return-1;continue}if(i===41||i===46)break;return-1}return r<u&&(i=e.src.charCodeAt(r),!Pe(i))?-1:r}function ql(e,t){const n=e.level+2;for(let u=t+2,r=e.tokens.length-2;u<r;u++)e.tokens[u].level===n&&e.tokens[u].type==="paragraph_open"&&(e.tokens[u+2].hidden=!0,e.tokens[u].hidden=!0,u+=2)}function Yl(e,t,n,u){let r,i,s,o,c=t,l=!0;if(e.sCount[c]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[c]-e.listIndent>=4&&e.sCount[c]<e.blkIndent)return!1;let h=!1;u&&e.parentType==="paragraph"&&e.sCount[c]>=e.blkIndent&&(h=!0);let f,E,_;if((_=Bi(e,c))>=0){if(f=!0,s=e.bMarks[c]+e.tShift[c],E=Number(e.src.slice(s,_-1)),h&&E!==1)return!1}else if((_=Ui(e,c))>=0)f=!1;else return!1;if(h&&e.skipSpaces(_)>=e.eMarks[c])return!1;if(u)return!0;const g=e.src.charCodeAt(_-1),I=e.tokens.length;f?(o=e.push("ordered_list_open","ol",1),E!==1&&(o.attrs=[["start",E]])):o=e.push("bullet_list_open","ul",1);const T=[c,0];o.map=T,o.markup=String.fromCharCode(g);let w=!1;const v=e.md.block.ruler.getRules("list"),C=e.parentType;for(e.parentType="list";c<n;){i=_,r=e.eMarks[c];const k=e.sCount[c]+_-(e.bMarks[c]+e.tShift[c]);let O=k;for(;i<r;){const X=e.src.charCodeAt(i);if(X===9)O+=4-(O+e.bsCount[c])%4;else if(X===32)O++;else break;i++}const D=i;let P;D>=r?P=1:P=O-k,P>4&&(P=1);const W=k+P;o=e.push("list_item_open","li",1),o.markup=String.fromCharCode(g);const te=[c,0];o.map=te,f&&(o.info=e.src.slice(s,_-1));const _e=e.tight,se=e.tShift[c],Ce=e.sCount[c],G=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=W,e.tight=!0,e.tShift[c]=D-e.bMarks[c],e.sCount[c]=O,D>=r&&e.isEmpty(c+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,c,n,!0),(!e.tight||w)&&(l=!1),w=e.line-c>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=G,e.tShift[c]=se,e.sCount[c]=Ce,e.tight=_e,o=e.push("list_item_close","li",-1),o.markup=String.fromCharCode(g),c=e.line,te[1]=c,c>=n||e.sCount[c]<e.blkIndent||e.sCount[c]-e.blkIndent>=4)break;let J=!1;for(let X=0,le=v.length;X<le;X++)if(v[X](e,c,n,!0)){J=!0;break}if(J)break;if(f){if(_=Bi(e,c),_<0)break;s=e.bMarks[c]+e.tShift[c]}else if(_=Ui(e,c),_<0)break;if(g!==e.src.charCodeAt(_-1))break}return f?o=e.push("ordered_list_close","ol",-1):o=e.push("bullet_list_close","ul",-1),o.markup=String.fromCharCode(g),T[1]=c,e.line=c,e.parentType=C,l&&ql(e,I),!0}function Kl(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],s=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(r)!==91)return!1;function o(v){const C=e.lineMax;if(v>=C||e.isEmpty(v))return null;let k=!1;if(e.sCount[v]-e.blkIndent>3&&(k=!0),e.sCount[v]<0&&(k=!0),!k){const P=e.md.block.ruler.getRules("reference"),W=e.parentType;e.parentType="reference";let te=!1;for(let _e=0,se=P.length;_e<se;_e++)if(P[_e](e,v,C,!0)){te=!0;break}if(e.parentType=W,te)return null}const O=e.bMarks[v]+e.tShift[v],D=e.eMarks[v];return e.src.slice(O,D+1)}let c=e.src.slice(r,i+1);i=c.length;let l=-1;for(r=1;r<i;r++){const v=c.charCodeAt(r);if(v===91)return!1;if(v===93){l=r;break}else if(v===10){const C=o(s);C!==null&&(c+=C,i=c.length,s++)}else if(v===92&&(r++,r<i&&c.charCodeAt(r)===10)){const C=o(s);C!==null&&(c+=C,i=c.length,s++)}}if(l<0||c.charCodeAt(l+1)!==58)return!1;for(r=l+2;r<i;r++){const v=c.charCodeAt(r);if(v===10){const C=o(s);C!==null&&(c+=C,i=c.length,s++)}else if(!Pe(v))break}const h=e.md.helpers.parseLinkDestination(c,r,i);if(!h.ok)return!1;const f=e.md.normalizeLink(h.str);if(!e.md.validateLink(f))return!1;r=h.pos;const E=r,_=s,g=r;for(;r<i;r++){const v=c.charCodeAt(r);if(v===10){const C=o(s);C!==null&&(c+=C,i=c.length,s++)}else if(!Pe(v))break}let I=e.md.helpers.parseLinkTitle(c,r,i);for(;I.can_continue;){const v=o(s);if(v===null)break;c+=v,r=i,i=c.length,s++,I=e.md.helpers.parseLinkTitle(c,r,i,I)}let T;for(r<i&&g!==r&&I.ok?(T=I.str,r=I.pos):(T="",r=E,s=_);r<i;){const v=c.charCodeAt(r);if(!Pe(v))break;r++}if(r<i&&c.charCodeAt(r)!==10&&T)for(T="",r=E,s=_;r<i;){const v=c.charCodeAt(r);if(!Pe(v))break;r++}if(r<i&&c.charCodeAt(r)!==10)return!1;const w=Qu(c.slice(1,l));return w?(u||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[w]>"u"&&(e.env.references[w]={title:T,href:f}),e.line=s),!0):!1}const Xl=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],jl="[a-zA-Z_:][a-zA-Z0-9:._-]*",Zl="[^\"'=<>`\\x00-\\x20]+",Ql="'[^']*'",Jl='"[^"]*"',e0="(?:"+Zl+"|"+Ql+"|"+Jl+")",t0="(?:\\s+"+jl+"(?:\\s*=\\s*"+e0+")?)",us="<[A-Za-z][A-Za-z0-9\\-]*"+t0+"*\\s*\\/?>",rs="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",n0="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",u0="<[?][\\s\\S]*?[?]>",r0="<![A-Za-z][^>]*>",i0="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",o0=new RegExp("^(?:"+us+"|"+rs+"|"+n0+"|"+u0+"|"+r0+"|"+i0+")"),s0=new RegExp("^(?:"+us+"|"+rs+")"),_n=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Za-z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Xl.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(s0.source+"\\s*$"),/^$/,!1]];function c0(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(r)!==60)return!1;let s=e.src.slice(r,i),o=0;for(;o<_n.length&&!_n[o][0].test(s);o++);if(o===_n.length)return!1;if(u)return _n[o][2];let c=t+1;const l=_n[o][1].test("");if(!_n[o][1].test(s)){for(;c<n&&!(e.sCount[c]<e.blkIndent&&(l||!e.isEmpty(c)));c++)if(r=e.bMarks[c]+e.tShift[c],i=e.eMarks[c],s=e.src.slice(r,i),_n[o][1].test(s)){s.length!==0&&c++;break}}e.line=c;const h=e.push("html_block","",0);return h.map=[t,c],h.content=e.getLines(t,c,e.blkIndent,!0),!0}function a0(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.src.charCodeAt(r);if(s!==35||r>=i)return!1;let o=1;for(s=e.src.charCodeAt(++r);s===35&&r<i&&o<=6;)o++,s=e.src.charCodeAt(++r);if(o>6||r<i&&!Pe(s))return!1;if(u)return!0;i=e.skipSpacesBack(i,r);const c=e.skipCharsBack(i,35,r);c>r&&Pe(e.src.charCodeAt(c-1))&&(i=c),e.line=t+1;const l=e.push("heading_open","h"+String(o),1);l.markup="########".slice(0,o),l.map=[t,e.line];const h=e.push("inline","",0);h.content=Ju(e.src.slice(r,i)),h.map=[t,e.line],h.children=[];const f=e.push("heading_close","h"+String(o),-1);return f.markup="########".slice(0,o),!0}function l0(e,t,n){const u=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const r=e.parentType;e.parentType="paragraph";let i=0,s,o=t+1;for(;o<n&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3)continue;if(e.sCount[o]>=e.blkIndent){let _=e.bMarks[o]+e.tShift[o];const g=e.eMarks[o];if(_<g&&(s=e.src.charCodeAt(_),(s===45||s===61)&&(_=e.skipChars(_,s),_=e.skipSpaces(_),_>=g))){i=s===61?1:2;break}}if(e.sCount[o]<0)continue;let E=!1;for(let _=0,g=u.length;_<g;_++)if(u[_](e,o,n,!0)){E=!0;break}if(E)break}if(!i)return e.parentType=r,!1;const c=Ju(e.getLines(t,o,e.blkIndent,!1));e.line=o+1;const l=e.push("heading_open","h"+String(i),1);l.markup=String.fromCharCode(s),l.map=[t,e.line];const h=e.push("inline","",0);h.content=c,h.map=[t,e.line-1],h.children=[];const f=e.push("heading_close","h"+String(i),-1);return f.markup=String.fromCharCode(s),e.parentType=r,!0}function d0(e,t,n){const u=e.md.block.ruler.getRules("paragraph"),r=e.parentType;let i=t+1;for(e.parentType="paragraph";i<n&&!e.isEmpty(i);i++){if(e.sCount[i]-e.blkIndent>3||e.sCount[i]<0)continue;let l=!1;for(let h=0,f=u.length;h<f;h++)if(u[h](e,i,n,!0)){l=!0;break}if(l)break}const s=Ju(e.getLines(t,i,e.blkIndent,!1));e.line=i;const o=e.push("paragraph_open","p",1);o.map=[t,e.line];const c=e.push("inline","",0);return c.content=s,c.map=[t,e.line],c.children=[],e.push("paragraph_close","p",-1),e.parentType=r,!0}const xu=[["table",Gl,["paragraph","reference"]],["code",zl],["fence",$l,["paragraph","reference","blockquote","list"]],["blockquote",Vl,["paragraph","reference","blockquote","list"]],["hr",Wl,["paragraph","reference","blockquote","list"]],["list",Yl,["paragraph","reference","blockquote"]],["reference",Kl],["html_block",c0,["paragraph","reference","blockquote"]],["heading",a0,["paragraph","reference","blockquote"]],["lheading",l0],["paragraph",d0]];function er(){this.ruler=new Et;for(let e=0;e<xu.length;e++)this.ruler.push(xu[e][0],xu[e][1],{alt:(xu[e][2]||[]).slice()})}er.prototype.tokenize=function(e,t,n){const u=this.ruler.getRules(""),r=u.length,i=e.md.options.maxNesting;let s=t,o=!1;for(;s<n&&(e.line=s=e.skipEmptyLines(s),!(s>=n||e.sCount[s]<e.blkIndent));){if(e.level>=i){e.line=n;break}const c=e.line;let l=!1;for(let h=0;h<r;h++)if(l=u[h](e,s,n,!1),l){if(c>=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!o,e.isEmpty(e.line-1)&&(o=!0),s=e.line,s<n&&e.isEmpty(s)&&(o=!0,s++,e.line=s)}};er.prototype.parse=function(e,t,n,u){if(!e)return;const r=new this.State(e,t,n,u);this.tokenize(r,r.line,r.lineMax)};er.prototype.State=Wt;function Eu(e,t,n,u){this.src=e,this.env=n,this.md=t,this.tokens=u,this.tokens_meta=Array(u.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Eu.prototype.pushPending=function(){const e=new Ft("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};Eu.prototype.push=function(e,t,n){this.pending&&this.pushPending();const u=new Ft(e,t,n);let r=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),u.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(u),this.tokens_meta.push(r),u};Eu.prototype.scanDelims=function(e,t){const n=this.posMax,u=this.src.charCodeAt(e);let r;if(e===0)r=32;else if(e===1)r=this.src.charCodeAt(0),(r&63488)===55296&&(r=65533);else if(r=this.src.charCodeAt(e-1),(r&64512)===56320){const T=this.src.charCodeAt(e-2);r=(T&64512)===55296?65536+(T-55296<<10)+(r-56320):65533}else(r&64512)===55296&&(r=65533);let i=e;for(;i<n&&this.src.charCodeAt(i)===u;)i++;const s=i-e;let o=i<n?this.src.charCodeAt(i):32;if((o&64512)===55296){const T=this.src.charCodeAt(i+1);o=(T&64512)===56320?65536+(o-55296<<10)+(T-56320):65533}else(o&64512)===56320&&(o=65533);const c=au(r)||cu(r),l=au(o)||cu(o),h=su(r),f=su(o),E=!f&&(!l||h||c),_=!h&&(!c||f||l);return{can_open:E&&(t||!_||c),can_close:_&&(t||!E||l),length:s}};Eu.prototype.Token=Ft;function f0(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function h0(e,t){let n=e.pos;for(;n<e.posMax&&!f0(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}function p0(e){return e>=65&&e<=90||e>=97&&e<=122}function g0(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===45||e===46}function E0(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,u=e.posMax;if(n+3>u||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const r=n-Math.min(10,e.pending.length,n);let i=n;for(;i>r&&g0(e.src.charCodeAt(i-1));)i--;if(i===n||!p0(e.src.charCodeAt(i)))return!1;const s=n-i,o=e.md.linkify.matchAtStart(e.src.slice(i));if(!o)return!1;let c=o.url;if(c.length<=s)return!1;let l=c.length;for(;l>0&&c.charCodeAt(l-1)===42;)l--;l!==c.length&&(c=c.slice(0,l));const h=e.md.normalizeLink(c);if(!e.md.validateLink(h))return!1;if(!t){e.pending=e.pending.slice(0,-s);const f=e.push("link_open","a",1);f.attrs=[["href",h]],f.markup="linkify",f.info="auto";const E=e.push("text","",0);E.content=e.md.normalizeLinkText(c);const _=e.push("link_close","a",-1);_.markup="linkify",_.info="auto"}return e.pos+=c.length-s,!0}function b0(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const u=e.pending.length-1,r=e.posMax;if(!t)if(u>=0&&e.pending.charCodeAt(u)===32)if(u>=1&&e.pending.charCodeAt(u-1)===32){let i=u-1;for(;i>=1&&e.pending.charCodeAt(i-1)===32;)i--;e.pending=e.pending.slice(0,i),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<r&&Pe(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const ai=[];for(let e=0;e<256;e++)ai.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){ai[e.charCodeAt(0)]=1});function _0(e,t){let n=e.pos;const u=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=u))return!1;let r=e.src.charCodeAt(n);if(r===10){for(t||e.push("hardbreak","br",0),n++;n<u&&(r=e.src.charCodeAt(n),!!Pe(r));)n++;return e.pos=n,!0}if(r===32){if(!t){const o=e.push("text_special","",0);o.content="\\",o.markup="\\",o.info="escape"}return e.pos=n,!0}let i=e.src[n];if(r>=55296&&r<=56319&&n+1<u){const o=e.src.charCodeAt(n+1);o>=56320&&o<=57343&&(i+=e.src[n+1],n++)}const s="\\"+i;if(!t){const o=e.push("text_special","",0);r<256&&ai[r]!==0?o.content=i:o.content=s,o.markup=s,o.info="escape"}return e.pos=n+1,!0}function m0(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const r=n;n++;const i=e.posMax;for(;n<i&&e.src.charCodeAt(n)===96;)n++;const s=e.src.slice(r,n),o=s.length;if(e.backticksScanned&&(e.backticks[o]||0)<=r)return t||(e.pending+=s),e.pos+=o,!0;let c=n,l;for(;(l=e.src.indexOf("`",c))!==-1;){for(c=l+1;c<i&&e.src.charCodeAt(c)===96;)c++;const h=c-l;if(h===o){if(!t){const f=e.push("code_inline","code",0);f.markup=s,f.content=e.src.slice(n,l).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=c,!0}e.backticks[h]=l}return e.backticksScanned=!0,t||(e.pending+=s),e.pos+=o,!0}function A0(e,t){const n=e.pos,u=e.src.charCodeAt(n);if(t||u!==126)return!1;const r=e.scanDelims(e.pos,!0);let i=r.length;const s=String.fromCharCode(u);if(i<2)return!1;let o;i%2&&(o=e.push("text","",0),o.content=s,i--);for(let c=0;c<i;c+=2)o=e.push("text","",0),o.content=s+s,e.delimiters.push({marker:u,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0}function Hi(e,t){let n;const u=[],r=t.length;for(let i=0;i<r;i++){const s=t[i];if(s.marker!==126||s.end===-1)continue;const o=t[s.end];n=e.tokens[s.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[o.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[o.token-1].type==="text"&&e.tokens[o.token-1].content==="~"&&u.push(o.token-1)}for(;u.length;){const i=u.pop();let s=i+1;for(;s<e.tokens.length&&e.tokens[s].type==="s_close";)s++;s--,i!==s&&(n=e.tokens[s],e.tokens[s]=e.tokens[i],e.tokens[i]=n)}}function T0(e){const t=e.tokens_meta,n=e.tokens_meta.length;Hi(e,e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&Hi(e,t[u].delimiters)}const is={tokenize:A0,postProcess:T0};function S0(e,t){const n=e.pos,u=e.src.charCodeAt(n);if(t||u!==95&&u!==42)return!1;const r=e.scanDelims(e.pos,u===42);for(let i=0;i<r.length;i++){const s=e.push("text","",0);s.content=String.fromCharCode(u),e.delimiters.push({marker:u,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close})}return e.pos+=r.length,!0}function Gi(e,t){const n=t.length;for(let u=n-1;u>=0;u--){const r=t[u];if(r.marker!==95&&r.marker!==42||r.end===-1)continue;const i=t[r.end],s=u>0&&t[u-1].end===r.end+1&&t[u-1].marker===r.marker&&t[u-1].token===r.token-1&&t[r.end+1].token===i.token+1,o=String.fromCharCode(r.marker),c=e.tokens[r.token];c.type=s?"strong_open":"em_open",c.tag=s?"strong":"em",c.nesting=1,c.markup=s?o+o:o,c.content="";const l=e.tokens[i.token];l.type=s?"strong_close":"em_close",l.tag=s?"strong":"em",l.nesting=-1,l.markup=s?o+o:o,l.content="",s&&(e.tokens[t[u-1].token].content="",e.tokens[t[r.end+1].token].content="",u--)}}function C0(e){const t=e.tokens_meta,n=e.tokens_meta.length;Gi(e,e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&Gi(e,t[u].delimiters)}const os={tokenize:S0,postProcess:C0};function N0(e,t){let n,u,r,i,s="",o="",c=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const h=e.pos,f=e.posMax,E=e.pos+1,_=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(_<0)return!1;let g=_+1;if(g<f&&e.src.charCodeAt(g)===40){for(l=!1,g++;g<f&&(n=e.src.charCodeAt(g),!(!Pe(n)&&n!==10));g++);if(g>=f)return!1;if(c=g,r=e.md.helpers.parseLinkDestination(e.src,g,e.posMax),r.ok){for(s=e.md.normalizeLink(r.str),e.md.validateLink(s)?g=r.pos:s="",c=g;g<f&&(n=e.src.charCodeAt(g),!(!Pe(n)&&n!==10));g++);if(r=e.md.helpers.parseLinkTitle(e.src,g,e.posMax),g<f&&c!==g&&r.ok)for(o=r.str,g=r.pos;g<f&&(n=e.src.charCodeAt(g),!(!Pe(n)&&n!==10));g++);}(g>=f||e.src.charCodeAt(g)!==41)&&(l=!0),g++}if(l){if(typeof e.env.references>"u")return!1;if(g<f&&e.src.charCodeAt(g)===91?(c=g+1,g=e.md.helpers.parseLinkLabel(e,g),g>=0?u=e.src.slice(c,g++):g=_+1):g=_+1,u||(u=e.src.slice(E,_)),i=e.env.references[Qu(u)],!i)return e.pos=h,!1;s=i.href,o=i.title}if(!t){e.pos=E,e.posMax=_;const I=e.push("link_open","a",1),T=[["href",s]];I.attrs=T,o&&T.push(["title",o]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=g,e.posMax=f,!0}function R0(e,t){let n,u,r,i,s,o,c,l,h="";const f=e.pos,E=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const _=e.pos+2,g=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(g<0)return!1;if(i=g+1,i<E&&e.src.charCodeAt(i)===40){for(i++;i<E&&(n=e.src.charCodeAt(i),!(!Pe(n)&&n!==10));i++);if(i>=E)return!1;for(l=i,o=e.md.helpers.parseLinkDestination(e.src,i,e.posMax),o.ok&&(h=e.md.normalizeLink(o.str),e.md.validateLink(h)?i=o.pos:h=""),l=i;i<E&&(n=e.src.charCodeAt(i),!(!Pe(n)&&n!==10));i++);if(o=e.md.helpers.parseLinkTitle(e.src,i,e.posMax),i<E&&l!==i&&o.ok)for(c=o.str,i=o.pos;i<E&&(n=e.src.charCodeAt(i),!(!Pe(n)&&n!==10));i++);else c="";if(i>=E||e.src.charCodeAt(i)!==41)return e.pos=f,!1;i++}else{if(typeof e.env.references>"u")return!1;if(i<E&&e.src.charCodeAt(i)===91?(l=i+1,i=e.md.helpers.parseLinkLabel(e,i),i>=0?r=e.src.slice(l,i++):i=g+1):i=g+1,r||(r=e.src.slice(_,g)),s=e.env.references[Qu(r)],!s)return e.pos=f,!1;h=s.href,c=s.title}if(!t){u=e.src.slice(_,g);const I=[];e.md.inline.parse(u,e.md,e.env,I);const T=e.push("image","img",0),w=[["src",h],["alt",""]];T.attrs=w,T.children=I,T.content=u,c&&w.push(["title",c])}return e.pos=i,e.posMax=E,!0}const I0=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,O0=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function y0(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const u=e.pos,r=e.posMax;for(;;){if(++n>=r)return!1;const s=e.src.charCodeAt(n);if(s===60)return!1;if(s===62)break}const i=e.src.slice(u+1,n);if(O0.test(i)){const s=e.md.normalizeLink(i);if(!e.md.validateLink(s))return!1;if(!t){const o=e.push("link_open","a",1);o.attrs=[["href",s]],o.markup="autolink",o.info="auto";const c=e.push("text","",0);c.content=e.md.normalizeLinkText(i);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=i.length+2,!0}if(I0.test(i)){const s=e.md.normalizeLink("mailto:"+i);if(!e.md.validateLink(s))return!1;if(!t){const o=e.push("link_open","a",1);o.attrs=[["href",s]],o.markup="autolink",o.info="auto";const c=e.push("text","",0);c.content=e.md.normalizeLinkText(i);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=i.length+2,!0}return!1}function x0(e){return/^<a[>\s]/i.test(e)}function D0(e){return/^<\/a\s*>/i.test(e)}function k0(e){const t=e|32;return t>=97&&t<=122}function L0(e,t){if(!e.md.options.html)return!1;const n=e.posMax,u=e.pos;if(e.src.charCodeAt(u)!==60||u+2>=n)return!1;const r=e.src.charCodeAt(u+1);if(r!==33&&r!==63&&r!==47&&!k0(r))return!1;const i=e.src.slice(u).match(o0);if(!i)return!1;if(!t){const s=e.push("html_inline","",0);s.content=i[0],x0(s.content)&&e.linkLevel++,D0(s.content)&&e.linkLevel--}return e.pos+=i[0].length,!0}const w0=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,v0=/^&([a-z][a-z0-9]{1,31});/i;function M0(e,t){const n=e.pos,u=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=u)return!1;if(e.src.charCodeAt(n+1)===35){const i=e.src.slice(n).match(w0);if(i){if(!t){const s=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),o=e.push("text_special","",0);o.content=si(s)?ou(s):ou(65533),o.markup=i[0],o.info="entity"}return e.pos+=i[0].length,!0}}else{const i=e.src.slice(n).match(v0);if(i){const s=Za(i[0]);if(s!==i[0]){if(!t){const o=e.push("text_special","",0);o.content=s,o.markup=i[0],o.info="entity"}return e.pos+=i[0].length,!0}}}return!1}function zi(e){const t={},n=e.length;if(!n)return;let u=0,r=-2;const i=[];for(let s=0;s<n;s++){const o=e[s];if(i.push(0),(e[u].marker!==o.marker||r!==o.token-1)&&(u=s),r=o.token,o.length=o.length||0,!o.close)continue;t.hasOwnProperty(o.marker)||(t[o.marker]=[-1,-1,-1,-1,-1,-1]);const c=t[o.marker][(o.open?3:0)+o.length%3];let l=u-i[u]-1,h=l;for(;l>c;l-=i[l]+1){const f=e[l];if(f.marker===o.marker&&f.open&&f.end<0){let E=!1;if((f.close||o.open)&&(f.length+o.length)%3===0&&(f.length%3!==0||o.length%3!==0)&&(E=!0),!E){const _=l>0&&!e[l-1].open?i[l-1]+1:0;i[s]=s-l+_,i[l]=_,o.open=!1,f.end=s,f.close=!1,h=-1,r=-2;break}}}h!==-1&&(t[o.marker][(o.open?3:0)+(o.length||0)%3]=h)}}function F0(e){const t=e.tokens_meta,n=e.tokens_meta.length;zi(e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&zi(t[u].delimiters)}function P0(e){let t,n,u=0;const r=e.tokens,i=e.tokens.length;for(t=n=0;t<i;t++)r[t].nesting<0&&u--,r[t].level=u,r[t].nesting>0&&u++,r[t].type==="text"&&t+1<i&&r[t+1].type==="text"?r[t+1].content=r[t].content+r[t+1].content:(t!==n&&(r[n]=r[t]),n++);t!==n&&(r.length=n)}const Er=[["text",h0],["linkify",E0],["newline",b0],["escape",_0],["backticks",m0],["strikethrough",is.tokenize],["emphasis",os.tokenize],["link",N0],["image",R0],["autolink",y0],["html_inline",L0],["entity",M0]],br=[["balance_pairs",F0],["strikethrough",is.postProcess],["emphasis",os.postProcess],["fragments_join",P0]];function bu(){this.ruler=new Et;for(let e=0;e<Er.length;e++)this.ruler.push(Er[e][0],Er[e][1]);this.ruler2=new Et;for(let e=0;e<br.length;e++)this.ruler2.push(br[e][0],br[e][1])}bu.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),u=n.length,r=e.md.options.maxNesting,i=e.cache;if(typeof i[t]<"u"){e.pos=i[t];return}let s=!1;if(e.level<r){for(let o=0;o<u;o++)if(e.level++,s=n[o](e,!0),e.level--,s){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;s||e.pos++,i[t]=e.pos};bu.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,u=e.posMax,r=e.md.options.maxNesting;for(;e.pos<u;){const i=e.pos;let s=!1;if(e.level<r){for(let o=0;o<n;o++)if(s=t[o](e,!1),s){if(i>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(s){if(e.pos>=u)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};bu.prototype.parse=function(e,t,n,u){const r=new this.State(e,t,n,u);this.tokenize(r);const i=this.ruler2.getRules(""),s=i.length;for(let o=0;o<s;o++)i[o](r)};bu.prototype.State=Eu;function U0(e){const t={};e=e||{},t.src_Any=Yo.source,t.src_Cc=Ko.source,t.src_Z=jo.source,t.src_P=ii.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter=`(?:(?!${n}|${t.src_ZPCc})${t.src_Any})`,t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth=`(?:(?:(?!${t.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`,t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator=`(?=$|${n}|${t.src_ZPCc})(?!${e["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${t.src_ZPCc}))`,t.src_path=`(?:[/?#](?:(?!${t.src_ZCc}|${n}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${t.src_ZCc}|\\]).)*\\]|\\((?:(?!${t.src_ZCc}|[)]).)*\\)|\\{(?:(?!${t.src_ZCc}|[}]).)*\\}|\\"(?:(?!${t.src_ZCc}|["]).)+\\"|\\'(?:(?!${t.src_ZCc}|[']).)+\\'|\\'(?=${t.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${t.src_ZCc}|[.]|$)|`+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+`,(?!${t.src_ZCc}|$)|;(?!${t.src_ZCc}|$)|\\!+(?!${t.src_ZCc}|[!]|$)|\\?(?!${t.src_ZCc}|[?]|$))+|\\/)?`,t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]{0,63}',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+`|${t.src_pseudo_letter}{1,63})`,t.src_domain="(?:"+t.src_xn+`|(?:${t.src_pseudo_letter})|(?:${t.src_pseudo_letter}(?:-|${t.src_pseudo_letter}){0,61}${t.src_pseudo_letter}))`,t.src_host=`(?:(?:(?:(?:${t.src_domain})\\.)*${t.src_domain}))`,t.tpl_host_fuzzy="(?:"+t.src_ip4+`|(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%)))`,t.tpl_host_no_ip_fuzzy=`(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%))`,t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${t.src_ZPCc}|>|$))`,t.tpl_email_fuzzy=`(^|${n}|"|\\(|${t.src_ZCc})(${t.src_email_name}@${t.tpl_host_fuzzy_strict})`,t.tpl_link_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${t.src_ZPCc}))((?![$+<=>^\`||])${t.tpl_host_port_fuzzy_strict}${t.src_path})`,t.tpl_link_no_ip_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${t.src_ZPCc}))((?![$+<=>^\`||])${t.tpl_host_port_no_ip_fuzzy_strict}${t.src_path})`,t}function Hr(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(u){e[u]=n[u]})}),e}function tr(e){return Object.prototype.toString.call(e)}function B0(e){return tr(e)==="[object String]"}function H0(e){return tr(e)==="[object Object]"}function G0(e){return tr(e)==="[object RegExp]"}function $i(e){return tr(e)==="[object Function]"}function z0(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const ss={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function $0(e){return Object.keys(e||{}).reduce(function(t,n){return t||ss.hasOwnProperty(n)},!1)}const V0={"http:":{validate:function(e,t,n){const u=e.slice(t);return n.re.http||(n.re.http=new RegExp(`^\\/\\/${n.re.src_auth}${n.re.src_host_port_strict}${n.re.src_path}`,"i")),n.re.http.test(u)?u.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const u=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+`(?:localhost|(?:(?:${n.re.src_domain})\\.)+${n.re.src_domain_root})`+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(u)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:u.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const u=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp(`^${n.re.src_email_name}@${n.re.src_host_strict}`,"i")),n.re.mailto.test(u)?u.match(n.re.mailto)[0].length:0}}},W0="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",q0="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Y0(e){return function(t,n){const u=t.slice(n);return e.test(u)?u.match(e)[0].length:0}}function Vi(){return function(e,t){t.normalize(e)}}function $u(e){const t=e.re=U0(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(W0),n.push(t.src_xn),t.src_tlds=n.join("|");function u(o){return o.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(u(t.tpl_email_fuzzy),"i"),t.email_fuzzy_global=RegExp(u(t.tpl_email_fuzzy),"ig"),t.link_fuzzy=RegExp(u(t.tpl_link_fuzzy),"i"),t.link_fuzzy_global=RegExp(u(t.tpl_link_fuzzy),"ig"),t.link_no_ip_fuzzy=RegExp(u(t.tpl_link_no_ip_fuzzy),"i"),t.link_no_ip_fuzzy_global=RegExp(u(t.tpl_link_no_ip_fuzzy),"ig"),t.host_fuzzy_test=RegExp(u(t.tpl_host_fuzzy_test),"i");const r=[];e.__compiled__={};function i(o,c){throw new Error(`(LinkifyIt) Invalid schema "${o}": ${c}`)}Object.keys(e.__schemas__).forEach(function(o){const c=e.__schemas__[o];if(c===null)return;const l={validate:null,link:null};if(e.__compiled__[o]=l,H0(c)){G0(c.validate)?l.validate=Y0(c.validate):$i(c.validate)?l.validate=c.validate:i(o,c),$i(c.normalize)?l.normalize=c.normalize:c.normalize?i(o,c):l.normalize=Vi();return}if(B0(c)){r.push(o);return}i(o,c)}),r.forEach(function(o){e.__compiled__[e.__schemas__[o]]&&(e.__compiled__[o].validate=e.__compiled__[e.__schemas__[o]].validate,e.__compiled__[o].normalize=e.__compiled__[e.__schemas__[o]].normalize)}),e.__compiled__[""]={validate:null,normalize:Vi()};const s=Object.keys(e.__compiled__).filter(function(o){return o.length>0&&e.__compiled__[o]}).map(z0).join("|");e.re.schema_test=RegExp(`(^|(?!_)(?:[><|]|${t.src_ZPCc}))(${s})`,"i"),e.re.schema_search=RegExp(`(^|(?!_)(?:[><|]|${t.src_ZPCc}))(${s})`,"ig"),e.re.schema_at_start=RegExp(`^${e.re.schema_search.source}`,"i"),e.re.pretest=RegExp(`(${e.re.schema_test.source})|(${e.re.host_fuzzy_test.source})|@`,"i")}function cs(e,t,n,u){const r=e.slice(n,u);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=u,this.raw=r,this.text=r,this.url=r}function mt(e,t){if(!(this instanceof mt))return new mt(e,t);t||$0(e)&&(t=e,e={}),this.__opts__=Hr({},ss,t),this.__schemas__=Hr({},V0,e),this.__compiled__={},this.__tlds__=q0,this.__tlds_replaced__=!1,this.re={},$u(this)}mt.prototype.add=function(t,n){return this.__schemas__[t]=n,$u(this),this};mt.prototype.set=function(t){return this.__opts__=Hr(this.__opts__,t),this};mt.prototype.test=function(t){if(!t.length)return!1;let n,u;if(this.re.schema_test.test(t)){for(u=this.re.schema_search,u.lastIndex=0;(n=u.exec(t))!==null;)if(this.testSchemaAt(t,n[2],u.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&t.search(this.re.host_fuzzy_test)>=0&&t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&t.indexOf("@")>=0&&t.match(this.re.email_fuzzy)!==null)};mt.prototype.pretest=function(t){return this.re.pretest.test(t)};mt.prototype.testSchemaAt=function(t,n,u){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,u,this):0};mt.prototype.match=function(t){const n=[],u=[],r=[],i=[];let s,o,c;function l(E,_){return E?_?E.index!==_.index?E.index<_.index?E:_:E.lastIndex>=_.lastIndex?E:_:E:_}if(!t.length)return null;if(this.re.schema_test.test(t))for(c=this.re.schema_search,c.lastIndex=0;(s=c.exec(t))!==null;)o=this.testSchemaAt(t,s[2],c.lastIndex),o&&u.push({schema:s[2],index:s.index+s[1].length,lastIndex:s.index+s[0].length+o});if(this.__opts__.fuzzyLink&&this.__compiled__["http:"])for(c=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,c.lastIndex=0;(s=c.exec(t))!==null;)r.push({schema:"",index:s.index+s[1].length,lastIndex:s.index+s[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for(c=this.re.email_fuzzy_global,c.lastIndex=0;(s=c.exec(t))!==null;)i.push({schema:"mailto:",index:s.index+s[1].length,lastIndex:s.index+s[0].length});const h=[0,0,0];let f=0;for(;;){const E=[u[h[0]],i[h[1]],r[h[2]]],_=l(l(E[0],E[1]),E[2]);if(!_)break;if(_===E[0]?h[0]++:_===E[1]?h[1]++:h[2]++,_.index<f)continue;const g=new cs(t,_.schema,_.index,_.lastIndex);this.__compiled__[g.schema].normalize(g,this),n.push(g),f=_.lastIndex}return n.length?n:null};mt.prototype.matchAtStart=function(t){if(!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const u=this.testSchemaAt(t,n[2],n[0].length);if(!u)return null;const r=new cs(t,n[2],n.index+n[1].length,n.index+n[0].length+u);return this.__compiled__[r.schema].normalize(r,this),r};mt.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(u,r,i){return u!==i[r-1]}).reverse(),$u(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,$u(this),this)};mt.prototype.normalize=function(t){t.schema||(t.url=`http://${t.url}`),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url=`mailto:${t.url}`)};mt.prototype.onCompile=function(){};const Mn=2147483647,zt=36,li=1,lu=26,K0=38,X0=700,as=72,ls=128,ds="-",j0=/^xn--/,Z0=/[^\0-\x7F]/,Q0=/[\x2E\u3002\uFF0E\uFF61]/g,J0={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_r=zt-li,$t=Math.floor,mr=String.fromCharCode;function ln(e){throw new RangeError(J0[e])}function ed(e,t){const n=[];let u=e.length;for(;u--;)n[u]=t(e[u]);return n}function fs(e,t){const n=e.split("@");let u="";n.length>1&&(u=n[0]+"@",e=n[1]),e=e.replace(Q0,".");const r=e.split("."),i=ed(r,t).join(".");return u+i}function hs(e){const t=[];let n=0;const u=e.length;for(;n<u;){const r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<u){const i=e.charCodeAt(n++);(i&64512)==56320?t.push(((r&1023)<<10)+(i&1023)+65536):(t.push(r),n--)}else t.push(r)}return t}const td=e=>String.fromCodePoint(...e),nd=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:zt},Wi=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},ps=function(e,t,n){let u=0;for(e=n?$t(e/X0):e>>1,e+=$t(e/t);e>_r*lu>>1;u+=zt)e=$t(e/_r);return $t(u+(_r+1)*e/(e+K0))},gs=function(e){const t=[],n=e.length;let u=0,r=ls,i=as,s=e.lastIndexOf(ds);s<0&&(s=0);for(let o=0;o<s;++o)e.charCodeAt(o)>=128&&ln("not-basic"),t.push(e.charCodeAt(o));for(let o=s>0?s+1:0;o<n;){const c=u;for(let h=1,f=zt;;f+=zt){o>=n&&ln("invalid-input");const E=nd(e.charCodeAt(o++));E>=zt&&ln("invalid-input"),E>$t((Mn-u)/h)&&ln("overflow"),u+=E*h;const _=f<=i?li:f>=i+lu?lu:f-i;if(E<_)break;const g=zt-_;h>$t(Mn/g)&&ln("overflow"),h*=g}const l=t.length+1;i=ps(u-c,l,c==0),$t(u/l)>Mn-r&&ln("overflow"),r+=$t(u/l),u%=l,t.splice(u++,0,r)}return String.fromCodePoint(...t)},Es=function(e){const t=[];e=hs(e);const n=e.length;let u=ls,r=0,i=as;for(const c of e)c<128&&t.push(mr(c));const s=t.length;let o=s;for(s&&t.push(ds);o<n;){let c=Mn;for(const h of e)h>=u&&h<c&&(c=h);const l=o+1;c-u>$t((Mn-r)/l)&&ln("overflow"),r+=(c-u)*l,u=c;for(const h of e)if(h<u&&++r>Mn&&ln("overflow"),h===u){let f=r;for(let E=zt;;E+=zt){const _=E<=i?li:E>=i+lu?lu:E-i;if(f<_)break;const g=f-_,I=zt-_;t.push(mr(Wi(_+g%I,0))),f=$t(g/I)}t.push(mr(Wi(f,0))),i=ps(r,l,o===s),r=0,++o}++r,++u}return t.join("")},ud=function(e){return fs(e,function(t){return j0.test(t)?gs(t.slice(4).toLowerCase()):t})},rd=function(e){return fs(e,function(t){return Z0.test(t)?"xn--"+Es(t):t})},bs={version:"2.3.1",ucs2:{decode:hs,encode:td},decode:gs,encode:Es,toASCII:rd,toUnicode:ud},id={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},od={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},sd={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},cd={default:id,zero:od,commonmark:sd},ad=/^(vbscript|javascript|file|data):/,ld=/^data:image\/(gif|png|jpeg|webp);/;function dd(e){const t=e.trim().toLowerCase();return ad.test(t)?ld.test(t):!0}const _s=["http:","https:","mailto:"];function fd(e){const t=ri(e,!0);if(t.hostname&&(!t.protocol||_s.indexOf(t.protocol)>=0))try{t.hostname=bs.toASCII(t.hostname)}catch{}return gu(ui(t))}function hd(e){const t=ri(e,!0);if(t.hostname&&(!t.protocol||_s.indexOf(t.protocol)>=0))try{t.hostname=bs.toUnicode(t.hostname)}catch{}return Pn(ui(t),Pn.defaultChars+"%")}function It(e,t){if(!(this instanceof It))return new It(e,t);t||oi(e)||(t=e||{},e="default"),this.inline=new bu,this.block=new er,this.core=new ci,this.renderer=new Hn,this.linkify=new mt,this.validateLink=dd,this.normalizeLink=fd,this.normalizeLinkText=hd,this.utils=pl,this.helpers=Zu({},_l),this.options={},this.configure(e),t&&this.set(t)}It.prototype.set=function(e){return Zu(this.options,e),this};It.prototype.configure=function(e){const t=this;if(oi(e)){const n=e;if(e=cd[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this};It.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const u=e.filter(function(r){return n.indexOf(r)<0});if(u.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+u);return this};It.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const u=e.filter(function(r){return n.indexOf(r)<0});if(u.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+u);return this};It.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};It.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens};It.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};It.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};It.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};/*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */function qi(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,u=Array(t);n<t;n++)u[n]=e[n];return u}function pd(e){if(Array.isArray(e))return e}function gd(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var u,r,i,s,o=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(u=i.call(n)).done)&&(o.push(u.value),o.length!==t);c=!0);}catch(h){l=!0,r=h}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw r}}return o}}function Ed(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
46
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */function bd(e,t){return pd(e)||gd(e,t)||_d(e,t)||Ed()}function _d(e,t){if(e){if(typeof e=="string")return qi(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qi(e,t):void 0}}const ms=Object.entries,Yi=Object.setPrototypeOf,md=Object.isFrozen,As=Object.getPrototypeOf,Ts=Object.getOwnPropertyDescriptor;let et=Object.freeze,ut=Object.seal,Ln=Object.create,Ss=typeof Reflect<"u"&&Reflect,Gr=Ss.apply,zr=Ss.construct;et||(et=function(t){return t});ut||(ut=function(t){return t});Gr||(Gr=function(t,n){for(var u=arguments.length,r=new Array(u>2?u-2:0),i=2;i<u;i++)r[i-2]=arguments[i];return t.apply(n,r)});zr||(zr=function(t){for(var n=arguments.length,u=new Array(n>1?n-1:0),r=1;r<n;r++)u[r-1]=arguments[r];return new t(...u)});const Qt=He(Array.prototype.forEach),Ad=He(Array.prototype.lastIndexOf),Ki=He(Array.prototype.pop),Kn=He(Array.prototype.push),Td=He(Array.prototype.slice),Sd=He(Array.prototype.splice),Fn=Array.isArray,Ar=Cs(Set),Tr=He(Set.prototype.add),Xn=He(Set.prototype.has),mn=He(String.prototype.toLowerCase),Sr=He(String.prototype.toString),Xi=He(String.prototype.match),jn=He(String.prototype.replace),ji=He(String.prototype.indexOf),Cd=He(String.prototype.trim),Nd=He(Number.prototype.toString),Rd=He(Boolean.prototype.toString),Zi=typeof BigInt>"u"?null:He(BigInt.prototype.toString),Qi=typeof Symbol>"u"?null:He(Symbol.prototype.toString),gt=He(Object.prototype.hasOwnProperty),Zn=He(Object.prototype.toString),nt=He(RegExp.prototype.test),Jt=Cs(TypeError);function He(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,u=new Array(n>1?n-1:0),r=1;r<n;r++)u[r-1]=arguments[r];return Gr(e,t,u)}}function Cs(e){return function(){for(var t=arguments.length,n=new Array(t),u=0;u<t;u++)n[u]=arguments[u];return zr(e,n)}}function me(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:mn;if(Yi&&Yi(e,null),!Fn(t))return e;let u=t.length;for(;u--;){let r=t[u];if(typeof r=="string"){const i=n(r);i!==r&&(md(t)||(t[u]=i),r=i)}e[r]=!0}return e}function Id(e){for(let t=0;t<e.length;t++)gt(e,t)||(e[t]=null);return e}function _t(e){const t=Ln(null);for(const u of ms(e)){var n=bd(u,2);const r=n[0],i=n[1];gt(e,r)&&(Fn(i)?t[r]=Id(i):i&&typeof i=="object"&&i.constructor===Object?t[r]=_t(i):t[r]=i)}return t}function Od(e){switch(typeof e){case"string":return e;case"number":return Nd(e);case"boolean":return Rd(e);case"bigint":return Zi?Zi(e):"0";case"symbol":return Qi?Qi(e):"Symbol()";case"undefined":return Zn(e);case"function":case"object":{if(e===null)return Zn(e);const t=e,n=Nt(t,"toString");if(typeof n=="function"){const u=n(t);return typeof u=="string"?u:Zn(u)}return Zn(e)}default:return Zn(e)}}function Nt(e,t){for(;e!==null;){const u=Ts(e,t);if(u){if(u.get)return He(u.get);if(typeof u.value=="function")return He(u.value)}e=As(e)}function n(){return null}return n}function yd(e,t){for(;e!==null;){const n=Ts(e,t);if(n)return n.get?He(n.get):null;e=As(e)}return null}function xd(e){try{return nt(e,""),!0}catch{return!1}}const Ji=et(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Cr=et(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Nr=et(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Dd=et(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Rr=et(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),kd=et(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),eo=et(["#text"]),to=et(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Ir=et(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),no=et(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Du=et(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ld=ut(/{{[\w\W]*|^[\w\W]*}}/g),wd=ut(/<%[\w\W]*|^[\w\W]*%>/g),vd=ut(/\${[\w\W]*/g),Md=ut(/^data-[\-\w.\u00B7-\uFFFF]+$/),Fd=ut(/^aria-[\-\w]+$/),uo=ut(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Pd=ut(/^(?:\w+script|data):/i),Ud=ut(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Bd=ut(/^html$/i),Hd=ut(/^[a-z][.\w]*(-[.\w]+)+$/i),Or=ut(/<[/\w!]/g),ro=ut(/<[/\w]/g),Gd=ut(/<\/no(script|embed|frames)/i),io=ut(/\/>/i),qe={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},zd=et(me({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),$d=function(){return typeof window>"u"?null:window},Vd=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let u=null;const r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(u=n.getAttribute(r));const i="dompurify"+(u?"#"+u:"");try{return t.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},oo=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},cn=function(t,n,u,r){return gt(t,n)&&Fn(t[n])?me(r.base?_t(r.base):{},t[n],r.transform):u},yr=function(t,n,u){const r=gt(t,n)?t[n]:void 0;return r&&typeof r=="object"?_t(r):u()};function Ns(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$d();const t=L=>Ns(L);if(t.version="3.4.17",t.removed=[],!e||!e.document||e.document.nodeType!==qe.document||!e.Element)return t.isSupported=!1,t;let n=e.document;const u=n,r=u.currentScript;e.DocumentFragment;const i=e.HTMLTemplateElement,s=e.Node,o=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const l=e.DOMParser,h=e.trustedTypes,f=o.prototype,E=Nt(f,"cloneNode"),_=Nt(f,"remove"),g=Nt(f,"removeAttributeNode"),I=Nt(f,"nextSibling"),T=Nt(f,"childNodes"),w=Nt(f,"parentNode"),v=Nt(f,"shadowRoot"),C=Nt(f,"attributes"),k=s&&s.prototype?Nt(s.prototype,"nodeType"):null,O=s&&s.prototype?Nt(s.prototype,"nodeName"):null,D=s&&s.prototype?Nt(s.prototype,"ownerDocument"):null,P=function(d){return k?k(d):d.nodeType},W=function(d){return O?O(d):d.nodeName},te=yd(f,"namespaceURI"),_e=function(d){return te?te(d):d.namespaceURI};if(typeof i=="function"){const L=n.createElement("template");L.content&&L.content.ownerDocument&&(n=L.content.ownerDocument)}let se,Ce="",G,J=!1,X=0;const le=function(){if(X>0)throw Jt('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},ke=function(d){le(),X++;try{return se.createHTML(d)}finally{X--}},Q=function(d){le(),X++;try{return se.createScriptURL(d)}finally{X--}},pe=function(){return J||(G=Vd(h,r),J=!0),G},Ie=n,Oe=Ie.implementation,We=Ie.createNodeIterator,$e=Ie.createDocumentFragment,ot=Ie.getElementsByTagName,qt=u.importNode;let be=oo();t.isSupported=typeof ms=="function"&&typeof w=="function"&&Oe&&Oe.createHTMLDocument!==void 0;const Ot=Ld,Pt=wd,F=vd,ge=Md,N=Fd,U=Pd,q=Ud,ce=Hd;let Ae=uo,j=null;const Ye=me({},[...Ji,...Cr,...Nr,...Rr,...eo]);let ye=null;const Yt=me({},[...to,...Ir,...no,...Du]);let Ke=Object.seal(Ln(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),st=null,Kt=null;const bt=Object.seal(Ln(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let rt=!0,tn=!0,yt=!1,xt=!0,ct=!1,Dt=!0,kt=!1,pn=!1,Ut=null,Xt=null,nn=!1,Lt=!1,un=!1,jt=!1,A=!0,ie=!1;const Ee="user-content-";let xe=!0,Ze=!1,we=null,p={},R=null;const H=me({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let re=null;const Ue=me({},["audio","video","img","source","image","track"]);let Be=null;const V=me({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),z="http://www.w3.org/1998/Math/MathML",ee="http://www.w3.org/2000/svg",De="http://www.w3.org/1999/xhtml";let Le=De,Zt=!1,gn=null;const Gn=me({},[z,ee,De],Sr),_u=et(["mi","mo","mn","ms","mtext"]);let En=me({},_u);const mu=et(["annotation-xml"]);let zn=me({},mu);const nr=me({},["title","style","font","a","script"]);let rn=null;const Cn=["application/xhtml+xml","text/html"],ur="text/html";let Ge=null,on=null;const Bt=n.createElement("form"),$n=function(d){return d instanceof RegExp||d instanceof Function},Nn=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(on&&on===d)return;(!d||typeof d!="object")&&(d={}),d=_t(d),rn=Cn.indexOf(d.PARSER_MEDIA_TYPE)===-1?ur:d.PARSER_MEDIA_TYPE,Ge=rn==="application/xhtml+xml"?Sr:mn,j=cn(d,"ALLOWED_TAGS",Ye,{transform:Ge}),ye=cn(d,"ALLOWED_ATTR",Yt,{transform:Ge}),gn=cn(d,"ALLOWED_NAMESPACES",Gn,{transform:Sr}),Be=cn(d,"ADD_URI_SAFE_ATTR",V,{transform:Ge,base:V}),re=cn(d,"ADD_DATA_URI_TAGS",Ue,{transform:Ge,base:Ue}),R=cn(d,"FORBID_CONTENTS",H,{transform:Ge}),st=cn(d,"FORBID_TAGS",_t({}),{transform:Ge}),Kt=cn(d,"FORBID_ATTR",_t({}),{transform:Ge}),p=gt(d,"USE_PROFILES")?d.USE_PROFILES&&typeof d.USE_PROFILES=="object"?_t(d.USE_PROFILES):d.USE_PROFILES:!1,rt=d.ALLOW_ARIA_ATTR!==!1,tn=d.ALLOW_DATA_ATTR!==!1,yt=d.ALLOW_UNKNOWN_PROTOCOLS||!1,xt=d.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ct=d.SAFE_FOR_TEMPLATES||!1,Dt=d.SAFE_FOR_XML!==!1,kt=d.WHOLE_DOCUMENT||!1,Lt=d.RETURN_DOM||!1,un=d.RETURN_DOM_FRAGMENT||!1,jt=d.RETURN_TRUSTED_TYPE||!1,nn=d.FORCE_BODY||!1,A=d.SANITIZE_DOM!==!1,ie=d.SANITIZE_NAMED_PROPS||!1,xe=d.KEEP_CONTENT!==!1,Ze=d.IN_PLACE||!1,Ae=xd(d.ALLOWED_URI_REGEXP)?d.ALLOWED_URI_REGEXP:uo,Le=typeof d.NAMESPACE=="string"?d.NAMESPACE:De,En=yr(d,"MATHML_TEXT_INTEGRATION_POINTS",()=>me({},_u)),zn=yr(d,"HTML_INTEGRATION_POINTS",()=>me({},mu));const b=yr(d,"CUSTOM_ELEMENT_HANDLING",()=>Ln(null));if(Ke=Ln(null),gt(b,"tagNameCheck")&&$n(b.tagNameCheck)&&(Ke.tagNameCheck=b.tagNameCheck),gt(b,"attributeNameCheck")&&$n(b.attributeNameCheck)&&(Ke.attributeNameCheck=b.attributeNameCheck),gt(b,"allowCustomizedBuiltInElements")&&typeof b.allowCustomizedBuiltInElements=="boolean"&&(Ke.allowCustomizedBuiltInElements=b.allowCustomizedBuiltInElements),ut(Ke),ct&&(tn=!1),un&&(Lt=!0),p&&(j=me({},eo),ye=Ln(null),p.html===!0&&(me(j,Ji),me(ye,to)),p.svg===!0&&(me(j,Cr),me(ye,Ir),me(ye,Du)),p.svgFilters===!0&&(me(j,Nr),me(ye,Ir),me(ye,Du)),p.mathMl===!0&&(me(j,Rr),me(ye,no),me(ye,Du))),bt.tagCheck=null,bt.attributeCheck=null,gt(d,"ADD_TAGS")&&(typeof d.ADD_TAGS=="function"?bt.tagCheck=d.ADD_TAGS:Fn(d.ADD_TAGS)&&(j===Ye&&(j=_t(j)),me(j,d.ADD_TAGS,Ge))),gt(d,"ADD_ATTR")&&(typeof d.ADD_ATTR=="function"?bt.attributeCheck=d.ADD_ATTR:Fn(d.ADD_ATTR)&&(ye===Yt&&(ye=_t(ye)),me(ye,d.ADD_ATTR,Ge))),gt(d,"ADD_FORBID_CONTENTS")&&Fn(d.ADD_FORBID_CONTENTS)&&(R===H&&(R=_t(R)),me(R,d.ADD_FORBID_CONTENTS,Ge)),xe&&(j["#text"]=!0),kt&&me(j,["html","head","body"]),j.table&&(me(j,["tbody"]),delete st.tbody),d.TRUSTED_TYPES_POLICY){if(typeof d.TRUSTED_TYPES_POLICY.createHTML!="function")throw Jt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof d.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Jt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const y=se;se=d.TRUSTED_TYPES_POLICY;try{Ce=ke("")}catch(x){throw se=y,x}}else d.TRUSTED_TYPES_POLICY===null?(se=void 0,Ce=""):(se===void 0&&(se=pe()),se&&typeof Ce=="string"&&(Ce=ke("")));et&&et(d),on=d},Au=me({},[...Cr,...Nr,...Dd]),Tu=me({},[...Rr,...kd]),rr=function(d,b,y){return b.namespaceURI===De?d==="svg":b.namespaceURI===z?d==="svg"&&(y==="annotation-xml"||En[y]):!!Au[d]},Rn=function(d,b,y){return b.namespaceURI===De?d==="math":b.namespaceURI===ee?d==="math"&&zn[y]:!!Tu[d]},ir=function(d,b,y){return b.namespaceURI===ee&&!zn[y]||b.namespaceURI===z&&!En[y]?!1:!Tu[d]&&(nr[d]||!Au[d])},M=function(d){const b=_e(d),y=mn(W(d)),x=w(d);let Z,ue;return x&&P(x)===qe.element?(Z={namespaceURI:_e(x)},ue=mn(W(x))):(Z={namespaceURI:Le},ue="template"),gn[b]?b===ee?rr(y,Z,ue):b===z?Rn(y,Z,ue):b===De?ir(y,Z,ue):!!(rn==="application/xhtml+xml"&&gn[b]):!1},$=function(d){Kn(t.removed,{element:d});try{w(d).removeChild(d)}catch{if(_(d),!w(d))throw Jt("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},de=function(d,b,y){try{g(d,b)}catch{try{d.removeAttribute(y)}catch{}}},Re=function(d){sn(d);const b=T(d);b&&Qt(Td(b),x=>{try{_(x)}catch{}});const y=P(d)===qe.element?C(d):null;if(y)for(let x=y.length-1;x>=0;--x){const Z=y[x],ue=Z&&Z.name;typeof ue=="string"&&de(d,Z,ue)}},ve=function(d,b,y){if(!y)try{y=b.getAttributeNode(d)}catch{y=null}Kn(t.removed,{attribute:y||null,from:b});try{y?g(b,y):b.removeAttribute(d)}catch{try{b.removeAttribute(d)}catch{}}if(d==="is")if(Lt||un)try{$(b)}catch{}else try{b.setAttribute(d,"")}catch{}},ft=function(d){const b=C(d);if(b)for(let y=b.length-1;y>=0;--y){const x=b[y],Z=x&&x.name;typeof Z!="string"||ye[Ge(Z)]||de(d,x,Z)}},At=function(d,b){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const x=[d];for(;x.length>0;){const Z=x.pop();if(b(Z)===!1)continue;if(y&&P(Z)===qe.element){const he=v(Z);wt(he)&&x.push(he)}const ue=T(Z);if(ue)for(let he=ue.length-1;he>=0;--he)x.push(ue[he])}},sn=function(d){At(d,b=>{P(b)===qe.element&&ft(b)})},tt=function(d){const b=[];return At(d,y=>{b.push(y)},!0),b},Tt=function(d,b){const y=Ar();Qt(tt(d),x=>{P(x)===qe.element&&Tr(y,x)}),Qt(b,x=>{P(x)===qe.element&&!Xn(y,x)&&ft(x)})},Vn=function(d,b){let y=!1;return Qt(t.removed,x=>{x.element&&(y=y||x.element===d,sn(x.element))}),Tt(d,b),y},Su=8,Cu=function(d,b){const y=we;let x=null;const Z=()=>(x||(x=Ar(),Qt(b,ue=>{Tr(x,ue)})),x);for(let ue=0;;ue++){const he=tt(d),je=[d];let Ht=!1;if(Qt(he,lt=>{P(lt)===qe.documentFragment?Kn(je,lt):!Ht&&!Xn(y,lt)&&(Ht=Xn(Z(),lt))}),!Ht)return;if(ue>=Su)throw Jt("the tree kept changing during in-place sanitization; refusing to return it");Qt(je,(lt,ht)=>{or(lt,ht>0,d,Z())})}},or=function(d,b,y,x){const Z=In(d);let ue;for(;ue=Z.nextNode();)!Xn(x,ue)||Xn(we,ue)||(b&&fe(be.uponSanitizeShadowNode,ue,null),Y(ue,y),lr(ue,y),wt(ue.content)&&Yn(ue.content))},sr=function(d){we&&Tr(we,d)},Nu=function(d,b){return Dt?d==="patchsrc"?!0:d==="for"&&b!=="label"&&b!=="output":!1},cr=function(d){Dt&&At(d,b=>{const y=P(b);if(y===qe.processingInstruction||y===qe.comment&&nt(ro,b.data)){try{_(b)}catch{}return!1}if(y===qe.element){const x=b,Z=Ge(W(b));try{x.hasAttribute&&x.hasAttribute("patchsrc")&&x.removeAttribute("patchsrc"),x.hasAttribute&&x.hasAttribute("for")&&Nu("for",Z)&&x.removeAttribute("for")}catch{}}return!0})},bn=function(d){let b=null,y=null;if(nn)d="<remove></remove>"+d;else{const ue=Xi(d,/^[\r\n\t ]+/);y=ue&&ue[0]}rn==="application/xhtml+xml"&&Le===De&&(d='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+d+"</body></html>");const x=se?ke(d):d;if(Le===De)try{b=new l().parseFromString(x,rn)}catch{}if(!b||!b.documentElement){b=Oe.createDocument(Le,"template",null);try{b.documentElement.innerHTML=Zt?Ce:x}catch{}}const Z=b.body||b.documentElement;return d&&y&&Z.insertBefore(n.createTextNode(y),Z.childNodes[0]||null),Le===De?ot.call(b,kt?"html":"body")[0]:kt?b.documentElement:Z},In=function(d){const b=D?D(d):d.ownerDocument;return We.call(b||d,d,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},at=function(d){return d=jn(d,Ot," "),d=jn(d,Pt," "),d=jn(d,F," "),d},Wn=function(d){var b;On(d);const y=(b=d.querySelectorAll)===null||b===void 0?void 0:b.call(d,"template");y&&Qt(y,x=>{wt(x.content)&&Wn(x.content)})},On=function(d){d.normalize();const b=D?D(d):d.ownerDocument,y=We.call(b||d,d,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let x=y.nextNode();for(;x;)x.data=at(x.data),x=y.nextNode()},ne=function(d){const b=O?O(d):null;return typeof b!="string"||Ge(b)!=="form"?!1:typeof d.nodeName!="string"||typeof d.textContent!="string"||typeof d.removeChild!="function"||d.attributes!==C(d)||typeof d.removeAttribute!="function"||typeof d.removeAttributeNode!="function"||typeof d.getAttributeNode!="function"||typeof d.setAttribute!="function"||typeof d.namespaceURI!="string"||typeof d.insertBefore!="function"||typeof d.hasChildNodes!="function"||d.nodeType!==k(d)||d.childNodes!==T(d)},wt=function(d){if(!k||typeof d!="object"||d===null)return!1;try{return k(d)===qe.documentFragment}catch{return!1}},ze=function(d){if(!k||typeof d!="object"||d===null)return!1;try{return typeof k(d)=="number"}catch{return!1}};function fe(L,d,b){L.length!==0&&Qt(L,y=>{y.call(t,d,b,on)})}const yn=function(d,b){return!!(Dt&&d.hasChildNodes()&&!ze(d.firstElementChild)&&nt(Or,d.textContent)&&nt(Or,d.innerHTML)||Dt&&zd[b]&&P(d)===qe.element&&_e(d)===De&&(ze(d.firstElementChild)||typeof d.textContent=="string"&&nt(Or,d.textContent))||d.nodeType===qe.processingInstruction||Dt&&d.nodeType===qe.comment&&nt(ro,d.data))},St=function(d,b){if(d instanceof RegExp)return nt(d,b);if(d instanceof Function){for(var y=arguments.length,x=new Array(y>2?y-2:0),Z=2;Z<y;Z++)x[Z-2]=arguments[Z];return!!d(b,...x)}return!1},qn=function(d,b,y){if(!st[b]&&Xe(b)&&St(Ke.tagNameCheck,b))return!1;if(xe&&!R[b]&&!R[mn(b)]){const x=w(d),Z=T(d);if(Z&&x){const ue=Z.length;for(let he=ue-1;he>=0;--he){const je=d===y?E(Z[he],!0):Z[he];x.insertBefore(je,I(d))}}}return $(d),!0},xn=function(d,b,y,x){return d.length===0?b:b===y||b===x?_t(b):b},B=function(d,b){return d===b||w(d)!==null?!1:(Ze&&sn(d),!0)},Y=function(d,b){if(sr(d),fe(be.beforeSanitizeElements,d,null),B(d,b))return!0;if(ne(d))return $(d),!0;const y=Ge(W(d));if(j=xn(be.uponSanitizeElement,j,Ye,Ut),fe(be.uponSanitizeElement,d,{tagName:y,allowedTags:j}),B(d,b))return!0;if(yn(d,y))return $(d),!0;if(st[y]||!(bt.tagCheck instanceof Function&&bt.tagCheck(y))&&!j[y]){const x=qn(d,y,b);return x===!1&&(fe(be.afterSanitizeElements,d,null),B(d,b))?!0:x}if(P(d)===qe.element&&!M(d)||(y==="noscript"||y==="noembed"||y==="noframes")&&nt(Gd,d.innerHTML))return $(d),!0;if(ct&&d.nodeType===qe.text){const x=at(d.textContent);d.textContent!==x&&(Kn(t.removed,{element:d.cloneNode()}),d.textContent=x)}return fe(be.afterSanitizeElements,d,null),B(d,b)},ae=function(d,b,y){if(Kt[b]||Nu(b,d)||A&&(b==="id"||b==="name")&&(y in n||y in Bt))return!1;const x=ye[b]||bt.attributeCheck instanceof Function&&bt.attributeCheck(b,d);return tn&&nt(ge,b)||rt&&nt(N,b)?!0:x?Be[b]||nt(Ae,jn(y,q,""))||(b==="src"||b==="xlink:href"||b==="href")&&d!=="script"&&ji(y,"data:")===0&&re[d]||yt&&!nt(U,jn(y,q,""))?!0:!y:Xe(d)&&St(Ke.tagNameCheck,d)&&St(Ke.attributeNameCheck,b,d)||b==="is"&&Ke.allowCustomizedBuiltInElements&&St(Ke.tagNameCheck,y)},Ne=me({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Xe=function(d){return!Ne[mn(d)]&&nt(ce,d)},vt=function(d,b,y,x){if(se&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!y)switch(h.getAttributeType(d,b)){case"TrustedHTML":return ke(x);case"TrustedScriptURL":return Q(x)}return x},ar=function(d,b,y,x){try{return y?d.setAttributeNS(y,b,x):d.setAttribute(b,x),ne(d)?($(d),!1):!0}catch{return ve(b,d),!1}},Ru=function(d,b){return Dt&&nt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,b)?!0:mn(d)==="attributename"&&Xi(b,"href")!==null},lr=function(d,b){if(fe(be.beforeSanitizeAttributes,d,null),B(d,b))return;const y=d.attributes;if(!y||ne(d))return;ye=xn(be.uponSanitizeAttribute,ye,Yt,Xt);const x={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ye,forceKeepAttr:void 0};let Z=y.length;const ue=Ge(d.nodeName);for(;Z--;){const he=y[Z],je=he.name,Ht=he.namespaceURI,lt=he.value,ht=Ge(je),Dn=lt;let pt=je==="value"?Dn:Cd(Dn),fi=!1;if(x.attrName=ht,x.attrValue=pt,x.keepAttr=!0,x.forceKeepAttr=void 0,fe(be.uponSanitizeAttribute,d,x),pt=x.attrValue,ie&&(ht==="id"||ht==="name")&&ji(pt,Ee)!==0&&(ve(je,d,he),pt=Ee+pt,fi=!0),Ru(je,pt)){ve(je,d,he);continue}if(!x.forceKeepAttr){if(!x.keepAttr){ve(je,d,he);continue}if(!xt&&nt(io,pt)){ve(je,d,he);continue}if(ct&&(pt=at(pt)),!ae(ue,ht,pt)){ve(je,d,he);continue}pt=vt(ue,ht,Ht,pt),pt!==Dn&&ar(d,je,Ht,pt)&&fi&&Ki(t.removed)}}fe(be.afterSanitizeAttributes,d,null),B(d,b)},Yn=function(d){let b=null;const y=In(d);for(fe(be.beforeSanitizeShadowDOM,d,null);b=y.nextNode();)if(fe(be.uponSanitizeShadowNode,b,null),Y(b,d),lr(b,d),wt(b.content)&&Yn(b.content),P(b)===qe.element){const x=v(b);wt(x)&&(dr(x),Yn(x))}ct&&On(d),fe(be.afterSanitizeShadowDOM,d,null)},dr=function(d){const b=[{node:d,shadow:null}];for(;b.length>0;){const y=b.pop();if(y.shadow){Yn(y.shadow);continue}const x=y.node,Z=P(x)===qe.element,ue=T(x);if(ue)for(let he=ue.length-1;he>=0;--he)b.push({node:ue[he],shadow:null});if(Z){const he=O?O(x):null;if(typeof he=="string"&&Ge(he)==="template"){const je=x.content;wt(je)&&b.push({node:je,shadow:null})}}if(Z){const he=v(x);wt(he)&&b.push({node:null,shadow:he},{node:he,shadow:null})}}};return t.sanitize=function(L){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=null,y=null,x=null,Z=null;if(Zt=!L,Zt&&(L="<!-->"),typeof L!="string"&&!ze(L)&&(L=Od(L),typeof L!="string"))throw Jt("dirty is not a string, aborting");if(!t.isSupported)return L;pn?(j=Ut,ye=Xt):Nn(d),(be.uponSanitizeElement.length>0||be.uponSanitizeAttribute.length>0)&&(j=_t(j)),be.uponSanitizeAttribute.length>0&&(ye=_t(ye)),t.removed=[];const ue=Ze&&typeof L!="string"&&ze(L);let he=[];const je=we;if(ue){cr(L);const ht=W(L);if(typeof ht=="string"){const Dn=Ge(ht);if(!j[Dn]||st[Dn])throw Re(L),Jt("root node is forbidden and cannot be sanitized in-place")}if(ne(L))throw Re(L),Jt("root node is clobbered and cannot be sanitized in-place");he=tt(L),we=Ar()}else if(ze(L))b=bn("<!---->"),y=b.ownerDocument.importNode(L,!0),y.nodeType===qe.element&&y.nodeName==="BODY"||y.nodeName==="HTML"?b=y:b.appendChild(y),dr(b);else{if(!Lt&&!ct&&!kt&&L.indexOf("<")===-1)return se&&jt?ke(L):L;if(b=bn(L),!b)return Lt?null:jt?Ce:""}b&&nn&&$(b.firstChild);const Ht=ue?L:b;try{ue&&dr(L);const ht=In(Ht);for(;x=ht.nextNode();)Y(x,Ht),lr(x,Ht),wt(x.content)&&Yn(x.content);ue&&Cu(L,he)}catch(ht){throw ue&&(Re(L),Vn(L,he)),ht}finally{we=je}if(ue){if(Vn(L,he))throw Jt("a node selected for removal could not be safely returned; refusing to sanitize in place");return ct&&Wn(L),L}if(Lt){if(ct&&Wn(b),un)for(Z=$e.call(b.ownerDocument);b.firstChild;)Z.appendChild(b.firstChild);else Z=b;return(ye.shadowroot||ye.shadowrootmode)&&(Z=qt.call(u,Z,!0)),Z}let lt=kt?b.outerHTML:b.innerHTML;return kt&&j["!doctype"]&&b.ownerDocument&&b.ownerDocument.doctype&&b.ownerDocument.doctype.name&&nt(Bd,b.ownerDocument.doctype.name)&&(lt="<!DOCTYPE "+b.ownerDocument.doctype.name+`>
|
|
47
|
+
`+lt),ct&&(lt=at(lt)),se&&jt?ke(lt):lt},t.setConfig=function(){let L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Nn(L),pn=!0,Ut=j,Xt=ye},t.clearConfig=function(){on=null,pn=!1,Ut=null,Xt=null,se=G,Ce=""},t.isValidAttribute=function(L,d,b){on||Nn({});const y=Ge(L),x=Ge(d);return typeof b=="string"&&(Ru(d,b)||!xt&&nt(io,b))?!1:ae(y,x,b)},t.addHook=function(L,d){typeof d=="function"&>(be,L)&&Kn(be[L],d)},t.removeHook=function(L,d){if(gt(be,L)){if(d!==void 0){const b=Ad(be[L],d);return b===-1?void 0:Sd(be[L],b,1)[0]}return Ki(be[L])}},t.removeHooks=function(L){gt(be,L)&&(be[L]=[])},t.removeAllHooks=function(){be=oo()},t}var Wd=Ns();function qd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xr,so;function Yd(){if(so)return xr;so=1;function e(p){return p instanceof Map?p.clear=p.delete=p.set=function(){throw new Error("map is read-only")}:p instanceof Set&&(p.add=p.clear=p.delete=function(){throw new Error("set is read-only")}),Object.freeze(p),Object.getOwnPropertyNames(p).forEach(R=>{const H=p[R],re=typeof H;(re==="object"||re==="function")&&!Object.isFrozen(H)&&e(H)}),p}class t{constructor(R){R.data===void 0&&(R.data={}),this.data=R.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(p){return p.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function u(p,...R){const H=Object.create(null);for(const re in p)H[re]=p[re];return R.forEach(function(re){for(const Ue in re)H[Ue]=re[Ue]}),H}const r="</span>",i=p=>!!p.scope,s=(p,{prefix:R})=>{if(p.startsWith("language:"))return p.replace("language:","language-");if(p.includes(".")){const H=p.split(".");return[`${R}${H.shift()}`,...H.map((re,Ue)=>`${re}${"_".repeat(Ue+1)}`)].join(" ")}return`${R}${p}`};class o{constructor(R,H){this.buffer="",this.classPrefix=H.classPrefix,R.walk(this)}addText(R){this.buffer+=n(R)}openNode(R){if(!i(R))return;const H=s(R.scope,{prefix:this.classPrefix});this.span(H)}closeNode(R){i(R)&&(this.buffer+=r)}value(){return this.buffer}span(R){this.buffer+=`<span class="${R}">`}}const c=(p={})=>{const R={children:[]};return Object.assign(R,p),R};class l{constructor(){this.rootNode=c(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(R){this.top.children.push(R)}openNode(R){const H=c({scope:R});this.add(H),this.stack.push(H)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(R){return this.constructor._walk(R,this.rootNode)}static _walk(R,H){return typeof H=="string"?R.addText(H):H.children&&(R.openNode(H),H.children.forEach(re=>this._walk(R,re)),R.closeNode(H)),R}static _collapse(R){typeof R!="string"&&R.children&&(R.children.every(H=>typeof H=="string")?R.children=[R.children.join("")]:R.children.forEach(H=>{l._collapse(H)}))}}class h extends l{constructor(R){super(),this.options=R}addText(R){R!==""&&this.add(R)}startScope(R){this.openNode(R)}endScope(){this.closeNode()}__addSublanguage(R,H){const re=R.root;H&&(re.scope=`language:${H}`),this.add(re)}toHTML(){return new o(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function f(p){return p?typeof p=="string"?p:p.source:null}function E(p){return I("(?=",p,")")}function _(p){return I("(?:",p,")*")}function g(p){return I("(?:",p,")?")}function I(...p){return p.map(H=>f(H)).join("")}function T(p){const R=p[p.length-1];return typeof R=="object"&&R.constructor===Object?(p.splice(p.length-1,1),R):{}}function w(...p){return"("+(T(p).capture?"":"?:")+p.map(re=>f(re)).join("|")+")"}function v(p){return new RegExp(p.toString()+"|").exec("").length-1}function C(p,R){const H=p&&p.exec(R);return H&&H.index===0}const k=new RegExp(w(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));function O(p,{joinWith:R}){let H=0;return p.map(re=>{H+=1;const Ue=H;let Be=f(re),V="";for(;Be.length>0;){const z=k.exec(Be);if(!z){V+=Be;break}V+=Be.substring(0,z.index),Be=Be.substring(z.index+z[0].length),z[0][0]==="\\"&&z[1]?V+="\\"+String(Number(z[1])+Ue):(V+=z[0],(z[0]==="("||/^\(\?[<']/.test(z[0]))&&H++)}return V}).map(re=>`(${re})`).join(R)}const D=/\b\B/,P="[a-zA-Z]\\w*",W="[a-zA-Z_]\\w*",te="\\b\\d+(\\.\\d+)?",_e="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",se="\\b(0b[01]+)",Ce="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",G=(p={})=>{const R=/^#![ ]*\//;return p.binary&&(p.begin=I(R,/.*\b/,p.binary,/\b.*/)),u({scope:"meta",begin:R,end:/$/,relevance:0,"on:begin":(H,re)=>{H.index!==0&&re.ignoreMatch()}},p)},J={begin:"\\\\[\\s\\S]",relevance:0},X={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[J]},le={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[J]},ke={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Q=function(p,R,H={}){const re=u({scope:"comment",begin:p,end:R,contains:[]},H);re.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const Ue=w("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return re.contains.push({begin:I(/[ ]+/,"(",Ue,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),re},pe=Q("//","$"),Ie=Q("/\\*","\\*/"),Oe=Q("#","$"),We={scope:"number",begin:te,relevance:0},$e={scope:"number",begin:_e,relevance:0},ot={scope:"number",begin:se,relevance:0},qt={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[J,{begin:/\[/,end:/\]/,relevance:0,contains:[J]}]},be={scope:"title",begin:P,relevance:0},Ot={scope:"title",begin:W,relevance:0},Pt={begin:"\\.\\s*"+W,relevance:0};var ge=Object.freeze({__proto__:null,APOS_STRING_MODE:X,BACKSLASH_ESCAPE:J,BINARY_NUMBER_MODE:ot,BINARY_NUMBER_RE:se,COMMENT:Q,C_BLOCK_COMMENT_MODE:Ie,C_LINE_COMMENT_MODE:pe,C_NUMBER_MODE:$e,C_NUMBER_RE:_e,END_SAME_AS_BEGIN:function(p){return Object.assign(p,{"on:begin":(R,H)=>{H.data._beginMatch=R[1]},"on:end":(R,H)=>{H.data._beginMatch!==R[1]&&H.ignoreMatch()}})},HASH_COMMENT_MODE:Oe,IDENT_RE:P,MATCH_NOTHING_RE:D,METHOD_GUARD:Pt,NUMBER_MODE:We,NUMBER_RE:te,PHRASAL_WORDS_MODE:ke,QUOTE_STRING_MODE:le,REGEXP_MODE:qt,RE_STARTERS_RE:Ce,SHEBANG:G,TITLE_MODE:be,UNDERSCORE_IDENT_RE:W,UNDERSCORE_TITLE_MODE:Ot});function N(p,R){p.input[p.index-1]==="."&&R.ignoreMatch()}function U(p,R){p.className!==void 0&&(p.scope=p.className,delete p.className)}function q(p,R){R&&p.beginKeywords&&(p.begin="\\b("+p.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",p.__beforeBegin=N,p.keywords=p.keywords||p.beginKeywords,delete p.beginKeywords,p.relevance===void 0&&(p.relevance=0))}function ce(p,R){Array.isArray(p.illegal)&&(p.illegal=w(...p.illegal))}function Ae(p,R){if(p.match){if(p.begin||p.end)throw new Error("begin & end are not supported with match");p.begin=p.match,delete p.match}}function j(p,R){p.relevance===void 0&&(p.relevance=1)}const Ye=(p,R)=>{if(!p.beforeMatch)return;if(p.starts)throw new Error("beforeMatch cannot be used with starts");const H=Object.assign({},p);Object.keys(p).forEach(re=>{delete p[re]}),p.keywords=H.keywords,p.begin=I(H.beforeMatch,E(H.begin)),p.starts={relevance:0,contains:[Object.assign(H,{endsParent:!0})]},p.relevance=0,delete H.beforeMatch},ye=["of","and","for","in","not","or","if","then","parent","list","value"],Yt="keyword";function Ke(p,R,H=Yt){const re=Object.create(null);return typeof p=="string"?Ue(H,p.split(" ")):Array.isArray(p)?Ue(H,p):Object.keys(p).forEach(function(Be){Object.assign(re,Ke(p[Be],R,Be))}),re;function Ue(Be,V){R&&(V=V.map(z=>z.toLowerCase())),V.forEach(function(z){const ee=z.split("|");re[ee[0]]=[Be,st(ee[0],ee[1])]})}}function st(p,R){return R?Number(R):Kt(p)?0:1}function Kt(p){return ye.includes(p.toLowerCase())}const bt={},rt=p=>{console.error(p)},tn=(p,...R)=>{console.log(`WARN: ${p}`,...R)},yt=(p,R)=>{bt[`${p}/${R}`]||(console.log(`Deprecated as of ${p}. ${R}`),bt[`${p}/${R}`]=!0)},xt=new Error;function ct(p,R,{key:H}){let re=0;const Ue=p[H],Be={},V={};for(let z=1;z<=R.length;z++)V[z+re]=Ue[z],Be[z+re]=!0,re+=v(R[z-1]);p[H]=V,p[H]._emit=Be,p[H]._multi=!0}function Dt(p){if(Array.isArray(p.begin)){if(p.skip||p.excludeBegin||p.returnBegin)throw rt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),xt;if(typeof p.beginScope!="object"||p.beginScope===null)throw rt("beginScope must be object"),xt;ct(p,p.begin,{key:"beginScope"}),p.begin=O(p.begin,{joinWith:""})}}function kt(p){if(Array.isArray(p.end)){if(p.skip||p.excludeEnd||p.returnEnd)throw rt("skip, excludeEnd, returnEnd not compatible with endScope: {}"),xt;if(typeof p.endScope!="object"||p.endScope===null)throw rt("endScope must be object"),xt;ct(p,p.end,{key:"endScope"}),p.end=O(p.end,{joinWith:""})}}function pn(p){p.scope&&typeof p.scope=="object"&&p.scope!==null&&(p.beginScope=p.scope,delete p.scope)}function Ut(p){pn(p),typeof p.beginScope=="string"&&(p.beginScope={_wrap:p.beginScope}),typeof p.endScope=="string"&&(p.endScope={_wrap:p.endScope}),Dt(p),kt(p)}function Xt(p){function R(V,z){return new RegExp(f(V),"m"+(p.case_insensitive?"i":"")+(p.unicodeRegex?"u":"")+(z?"g":""))}class H{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(z,ee){ee.position=this.position++,this.matchIndexes[this.matchAt]=ee,this.regexes.push([ee,z]),this.matchAt+=v(z)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const z=this.regexes.map(ee=>ee[1]);this.matcherRe=R(O(z,{joinWith:"|"}),!0),this.lastIndex=0}exec(z){this.matcherRe.lastIndex=this.lastIndex;const ee=this.matcherRe.exec(z);if(!ee)return null;const De=ee.findIndex((Zt,gn)=>gn>0&&Zt!==void 0),Le=this.matchIndexes[De];return ee.splice(0,De),Object.assign(ee,Le)}}class re{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(z){if(this.multiRegexes[z])return this.multiRegexes[z];const ee=new H;return this.rules.slice(z).forEach(([De,Le])=>ee.addRule(De,Le)),ee.compile(),this.multiRegexes[z]=ee,ee}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(z,ee){this.rules.push([z,ee]),ee.type==="begin"&&this.count++}exec(z){const ee=this.getMatcher(this.regexIndex);ee.lastIndex=this.lastIndex;let De=ee.exec(z);if(this.resumingScanAtSamePosition()&&!(De&&De.index===this.lastIndex)){const Le=this.getMatcher(0);Le.lastIndex=this.lastIndex+1,De=Le.exec(z)}return De&&(this.regexIndex+=De.position+1,this.regexIndex===this.count&&this.considerAll()),De}}function Ue(V){const z=new re;return V.contains.forEach(ee=>z.addRule(ee.begin,{rule:ee,type:"begin"})),V.terminatorEnd&&z.addRule(V.terminatorEnd,{type:"end"}),V.illegal&&z.addRule(V.illegal,{type:"illegal"}),z}function Be(V,z){const ee=V;if(V.isCompiled)return ee;[U,Ae,Ut,Ye].forEach(Le=>Le(V,z)),p.compilerExtensions.forEach(Le=>Le(V,z)),V.__beforeBegin=null,[q,ce,j].forEach(Le=>Le(V,z)),V.isCompiled=!0;let De=null;return typeof V.keywords=="object"&&V.keywords.$pattern&&(V.keywords=Object.assign({},V.keywords),De=V.keywords.$pattern,delete V.keywords.$pattern),De=De||/\w+/,V.keywords&&(V.keywords=Ke(V.keywords,p.case_insensitive)),ee.keywordPatternRe=R(De,!0),z&&(V.begin||(V.begin=/\B|\b/),ee.beginRe=R(ee.begin),!V.end&&!V.endsWithParent&&(V.end=/\B|\b/),V.end&&(ee.endRe=R(ee.end)),ee.terminatorEnd=f(ee.end)||"",V.endsWithParent&&z.terminatorEnd&&(ee.terminatorEnd+=(V.end?"|":"")+z.terminatorEnd)),V.illegal&&(ee.illegalRe=R(V.illegal)),V.contains||(V.contains=[]),V.contains=[].concat(...V.contains.map(function(Le){return Lt(Le==="self"?V:Le)})),V.contains.forEach(function(Le){Be(Le,ee)}),V.starts&&Be(V.starts,z),ee.matcher=Ue(ee),ee}if(p.compilerExtensions||(p.compilerExtensions=[]),p.contains&&p.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return p.classNameAliases=u(p.classNameAliases||{}),Be(p)}function nn(p){return p?p.endsWithParent||nn(p.starts):!1}function Lt(p){return p.variants&&!p.cachedVariants&&(p.cachedVariants=p.variants.map(function(R){return u(p,{variants:null},R)})),p.cachedVariants?p.cachedVariants:nn(p)?u(p,{starts:p.starts?u(p.starts):null}):Object.isFrozen(p)?u(p):p}var un="11.12.0";class jt extends Error{constructor(R,H){super(R),this.name="HTMLInjectionError",this.html=H}}const A=n,ie=u,Ee=Symbol("nomatch"),xe=7,Ze=function(p){const R=Object.create(null),H=Object.create(null),re=[];let Ue=!0;const Be="Could not find the language '{}', did you forget to load/include a language module?",V={disableAutodetect:!0,name:"Plain text",contains:[]};let z={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:h};function ee(M){return z.noHighlightRe.test(M)}function De(M){let $=M.className+" ";$+=M.parentNode?M.parentNode.className:"";const de=z.languageDetectRe.exec($);if(de){const Re=Bt(de[1]);return Re||(tn(Be.replace("{}",de[1])),tn("Falling back to no-highlight mode for this block.",M)),Re?de[1]:"no-highlight"}return $.split(/\s+/).find(Re=>ee(Re)||Bt(Re))}function Le(M,$,de){let Re="",ve="";typeof $=="object"?(Re=M,de=$.ignoreIllegals,ve=$.language):(yt("10.7.0","highlight(lang, code, ...args) has been deprecated."),yt("10.7.0",`Please use highlight(code, options) instead.
|
|
48
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),ve=M,Re=$),de===void 0&&(de=!0);const ft={code:Re,language:ve};Rn("before:highlight",ft);const At=ft.result?ft.result:Zt(ft.language,ft.code,de);return At.code=ft.code,Rn("after:highlight",At),At}function Zt(M,$,de,Re){const ve=Object.create(null);function ft(B,Y){return B.keywords[Y]}function At(){if(!ne.keywords){ze.addText(fe);return}let B=0;ne.keywordPatternRe.lastIndex=0;let Y=ne.keywordPatternRe.exec(fe),ae="";for(;Y;){ae+=fe.substring(B,Y.index);const Ne=at.case_insensitive?Y[0].toLowerCase():Y[0],Xe=ft(ne,Ne);if(Xe){const[vt,ar]=Xe;if(ze.addText(ae),ae="",ve[Ne]=(ve[Ne]||0)+1,ve[Ne]<=xe&&(yn+=ar),vt.startsWith("_"))ae+=Y[0];else{const Ru=at.classNameAliases[vt]||vt;Tt(Y[0],Ru)}}else ae+=Y[0];B=ne.keywordPatternRe.lastIndex,Y=ne.keywordPatternRe.exec(fe)}ae+=fe.substring(B),ze.addText(ae)}function sn(){if(fe==="")return;let B=null;if(typeof ne.subLanguage=="string"){if(!R[ne.subLanguage]){ze.addText(fe);return}B=Zt(ne.subLanguage,fe,!0,wt[ne.subLanguage]),wt[ne.subLanguage]=B._top}else B=Gn(fe,ne.subLanguage.length?ne.subLanguage:null);ne.relevance>0&&(yn+=B.relevance),ze.__addSublanguage(B._emitter,B.language)}function tt(){ne.subLanguage!=null?sn():At(),fe=""}function Tt(B,Y){B!==""&&(ze.startScope(Y),ze.addText(B),ze.endScope())}function Vn(B,Y){let ae=1;const Ne=Y.length-1;for(;ae<=Ne;){if(!B._emit[ae]){ae++;continue}const Xe=at.classNameAliases[B[ae]]||B[ae],vt=Y[ae];Xe?Tt(vt,Xe):(fe=vt,At(),fe=""),ae++}}function Su(B,Y){return B.scope&&typeof B.scope=="string"&&ze.openNode(at.classNameAliases[B.scope]||B.scope),B.beginScope&&(B.beginScope._wrap?(Tt(fe,at.classNameAliases[B.beginScope._wrap]||B.beginScope._wrap),fe=""):B.beginScope._multi&&(Vn(B.beginScope,Y),fe="")),ne=Object.create(B,{parent:{value:ne}}),ne}function Cu(B,Y,ae){let Ne=C(B.endRe,ae);if(Ne){if(B["on:end"]){const Xe=new t(B);B["on:end"](Y,Xe),Xe.isMatchIgnored&&(Ne=!1)}if(Ne){for(;B.endsParent&&B.parent;)B=B.parent;return B}}if(B.endsWithParent)return Cu(B.parent,Y,ae)}function or(B){return ne.matcher.regexIndex===0?(fe+=B[0],1):(xn=!0,0)}function sr(B){const Y=B[0],ae=B.rule,Ne=new t(ae),Xe=[ae.__beforeBegin,ae["on:begin"]];for(const vt of Xe)if(vt&&(vt(B,Ne),Ne.isMatchIgnored))return or(Y);return ae.skip?fe+=Y:(ae.excludeBegin&&(fe+=Y),tt(),!ae.returnBegin&&!ae.excludeBegin&&(fe=Y)),Su(ae,B),ae.returnBegin?0:Y.length}function Nu(B){const Y=B[0],ae=$.substring(B.index),Ne=Cu(ne,B,ae);if(!Ne)return Ee;const Xe=ne;ne.endScope&&ne.endScope._wrap?(tt(),Tt(Y,ne.endScope._wrap)):ne.endScope&&ne.endScope._multi?(tt(),Vn(ne.endScope,B)):Xe.skip?fe+=Y:(Xe.returnEnd||Xe.excludeEnd||(fe+=Y),tt(),Xe.excludeEnd&&(fe=Y));do ne.scope&&ze.closeNode(),!ne.skip&&!ne.subLanguage&&(yn+=ne.relevance),ne=ne.parent;while(ne!==Ne.parent);return Ne.starts&&Su(Ne.starts,B),Xe.returnEnd?0:Y.length}function cr(){const B=[];for(let Y=ne;Y!==at;Y=Y.parent)Y.scope&&B.unshift(Y.scope);B.forEach(Y=>ze.openNode(Y))}let bn={};function In(B,Y){const ae=Y&&Y[0];if(fe+=B,ae==null)return tt(),0;if(bn.type==="begin"&&Y.type==="end"&&bn.index===Y.index&&ae===""){if(fe+=$.slice(Y.index,Y.index+1),!Ue){const Ne=new Error(`0 width match regex (${M})`);throw Ne.languageName=M,Ne.badRule=bn.rule,Ne}return 1}if(bn=Y,Y.type==="begin")return sr(Y);if(Y.type==="illegal"&&!de){const Ne=new Error('Illegal lexeme "'+ae+'" for mode "'+(ne.scope||"<unnamed>")+'"');throw Ne.mode=ne,Ne}else if(Y.type==="end"){const Ne=Nu(Y);if(Ne!==Ee)return Ne}if(Y.type==="illegal"&&ae==="")return Y.index===$.length||(fe+=`
|
|
49
|
+
`),1;if(qn>1e5&&qn>Y.index*3)throw new Error("potential infinite loop, way more iterations than matches");return fe+=ae,ae.length}const at=Bt(M);if(!at)throw rt(Be.replace("{}",M)),new Error('Unknown language: "'+M+'"');const Wn=Xt(at);let On="",ne=Re||Wn;const wt={},ze=new z.__emitter(z);cr();let fe="",yn=0,St=0,qn=0,xn=!1;try{if(at.__emitTokens)at.__emitTokens($,ze);else{for(ne.matcher.considerAll();;){qn++,xn?xn=!1:ne.matcher.considerAll(),ne.matcher.lastIndex=St;const B=ne.matcher.exec($);if(!B)break;const Y=$.substring(St,B.index),ae=In(Y,B);St=B.index+ae}In($.substring(St))}return ze.finalize(),On=ze.toHTML(),{language:M,value:On,relevance:yn,illegal:!1,_emitter:ze,_top:ne}}catch(B){if(B.message&&B.message.includes("Illegal"))return{language:M,value:A($),illegal:!0,relevance:0,_illegalBy:{message:B.message,index:St,context:$.slice(St-100,St+100),mode:B.mode,resultSoFar:On},_emitter:ze};if(Ue)return{language:M,value:A($),illegal:!1,relevance:0,errorRaised:B,_emitter:ze,_top:ne};throw B}}function gn(M){const $={value:A(M),illegal:!1,relevance:0,_top:V,_emitter:new z.__emitter(z)};return $._emitter.addText(M),$}function Gn(M,$){$=$||z.languages||Object.keys(R);const de=gn(M),Re=$.filter(Bt).filter(Nn).map(tt=>Zt(tt,M,!1));Re.unshift(de);const ve=Re.sort((tt,Tt)=>{if(tt.relevance!==Tt.relevance)return Tt.relevance-tt.relevance;if(tt.language&&Tt.language){if(Bt(tt.language).supersetOf===Tt.language)return 1;if(Bt(Tt.language).supersetOf===tt.language)return-1}return 0}),[ft,At]=ve,sn=ft;return sn.secondBest=At,sn}function _u(M,$,de){const Re=$&&H[$]||de;M.classList.add("hljs"),M.classList.add(`language-${Re}`)}function En(M){let $=null;const de=De(M);if(ee(de))return;if(Rn("before:highlightElement",{el:M,language:de}),M.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",M);return}if(M.children.length>0&&(z.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(M)),z.throwUnescapedHTML))throw new jt("One of your code blocks includes unescaped HTML.",M.innerHTML);$=M;const Re=$.textContent,ve=de?Le(Re,{language:de,ignoreIllegals:!0}):Gn(Re);M.innerHTML=ve.value,M.dataset.highlighted="yes",_u(M,de,ve.language),M.result={language:ve.language,re:ve.relevance,relevance:ve.relevance},ve.secondBest&&(M.secondBest={language:ve.secondBest.language,relevance:ve.secondBest.relevance}),Rn("after:highlightElement",{el:M,result:ve,text:Re})}function mu(M){z=ie(z,M)}const zn=()=>{Cn(),yt("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function nr(){Cn(),yt("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let rn=!1;function Cn(){function M(){Cn()}if(document.readyState==="loading"){rn||window.addEventListener("DOMContentLoaded",M,!1),rn=!0;return}document.querySelectorAll(z.cssSelector).forEach(En)}function ur(M,$){let de=null;try{de=$(p)}catch(Re){if(rt("Language definition for '{}' could not be registered.".replace("{}",M)),Ue)rt(Re);else throw Re;de=V}de.name||(de.name=M),R[M]=de,de.rawDefinition=$.bind(null,p),de.aliases&&$n(de.aliases,{languageName:M})}function Ge(M){delete R[M];for(const $ of Object.keys(H))H[$]===M&&delete H[$]}function on(){return Object.keys(R)}function Bt(M){return M=(M||"").toLowerCase(),R[M]||R[H[M]]}function $n(M,{languageName:$}){typeof M=="string"&&(M=[M]),M.forEach(de=>{H[de.toLowerCase()]=$})}function Nn(M){const $=Bt(M);return $&&!$.disableAutodetect}function Au(M){M["before:highlightBlock"]&&!M["before:highlightElement"]&&(M["before:highlightElement"]=$=>{M["before:highlightBlock"](Object.assign({block:$.el},$))}),M["after:highlightBlock"]&&!M["after:highlightElement"]&&(M["after:highlightElement"]=$=>{M["after:highlightBlock"](Object.assign({block:$.el},$))})}function Tu(M){Au(M),re.push(M)}function rr(M){const $=re.indexOf(M);$!==-1&&re.splice($,1)}function Rn(M,$){const de=M;re.forEach(function(Re){Re[de]&&Re[de]($)})}function ir(M){return yt("10.7.0","highlightBlock will be removed entirely in v12.0"),yt("10.7.0","Please use highlightElement now."),En(M)}Object.assign(p,{highlight:Le,highlightAuto:Gn,highlightAll:Cn,highlightElement:En,highlightBlock:ir,configure:mu,initHighlighting:zn,initHighlightingOnLoad:nr,registerLanguage:ur,unregisterLanguage:Ge,listLanguages:on,getLanguage:Bt,registerAliases:$n,autoDetection:Nn,inherit:ie,addPlugin:Tu,removePlugin:rr}),p.debugMode=function(){Ue=!1},p.safeMode=function(){Ue=!0},p.versionString=un,p.regex={concat:I,lookahead:E,either:w,optional:g,anyNumberOfTimes:_};for(const M in ge)typeof ge[M]=="object"&&e(ge[M]);return Object.assign(p,ge),p},we=Ze({});return we.newInstance=()=>Ze({}),xr=we,we.HighlightJS=we,we.default=we,xr}var Kd=Yd();const du=qd(Kd);function Xd(e){const t=e.regex,n=e.COMMENT("--","$"),u={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},r={begin:/"/,end:/"/,contains:[{match:/""/}]},i=["true","false","unknown"],s=["double precision","large object","with timezone","without timezone"],o=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],c=["add","asc","collation","desc","final","first","last","view"],l=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],h=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],f=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],E=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],_=h,g=[...l,...c].filter(O=>!h.includes(O)),I={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},T={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},w={match:t.concat(/\b/,t.either(..._),/\s*\(/),relevance:0,keywords:{built_in:_}};function v(O){return t.concat(/\b/,t.either(...O.map(D=>D.replace(/\s+/,"\\s+"))),/\b/)}const C={scope:"keyword",match:v(E),relevance:0};function k(O,{exceptions:D,when:P}={}){const W=P;return D=D||[],O.map(te=>te.match(/\|\d+$/)||D.includes(te)?te:W(te)?`${te}|0`:te)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:k(g,{when:O=>O.length<3}),literal:i,type:o,built_in:f},contains:[{scope:"type",match:v(s)},C,w,I,u,r,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,T]}}function jd(e){const t=e.COMMENT("--","$"),n="[a-zA-Z_][a-zA-Z_0-9$]*",u="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",r="<<\\s*"+n+"\\s*>>",i="ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ",s="SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",o="ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN ",c="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",l=c.trim().split(" ").map(function(I){return I.split("|")[0]}).join("|"),h="CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ",f="FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ",E="SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED ",g="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ".trim().split(" ").map(function(I){return I.split("|")[0]}).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],supersetOf:"sql",case_insensitive:!0,keywords:{keyword:i+o+s,built_in:h+f+E},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:e.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+g+")\\s*\\("},{begin:"\\.("+l+")\\b"},{begin:"\\b("+l+")\\s+PATH\\b",keywords:{keyword:"PATH",type:c.replace("PATH ","")}},{className:"type",begin:"\\b("+l+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},e.END_SAME_AS_BEGIN({begin:u,end:u,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:r,relevance:10}]}}const co="[A-Za-z$_][0-9A-Za-z$_]*",Zd=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Qd=["true","false","null","undefined","NaN","Infinity"],Rs=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Is=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Os=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Jd=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],ef=[].concat(Os,Rs,Is);function tf(e){const t=e.regex,n=(Q,{after:pe})=>{const Ie="</"+Q[0].slice(1);return Q.input.indexOf(Ie,pe)!==-1},u=co,r={begin:"<>",end:"</>"},i=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Q,pe)=>{const Ie=Q[0].length+Q.index,Oe=Q.input[Ie];if(Oe==="<"||Oe===","){pe.ignoreMatch();return}Oe===">"&&(n(Q,{after:Ie})||pe.ignoreMatch());let We;const $e=Q.input.substring(Ie);if(We=$e.match(/^\s*=/)){pe.ignoreMatch();return}if((We=$e.match(/^\s+extends\s+/))&&We.index===0){pe.ignoreMatch();return}}},o={$pattern:co,keyword:Zd,literal:Qd,built_in:ef,"variable.language":Jd},c="[0-9](_?[0-9])*",l=`\\.(${c})`,h="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",f={className:"number",variants:[{begin:`(\\b(${h})((${l})|\\.)?|(${l}))[eE][+-]?(${c})\\b`},{begin:`\\b(${h})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},E={className:"subst",begin:"\\$\\{",end:"\\}",keywords:o,contains:[]},_={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"xml"}},g={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"css"}},I={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"graphql"}},T={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,E]},v={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:u+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},C=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,g,I,T,{match:/\$\d+/},f];E.contains=C.concat({begin:/\{/,end:/\}/,keywords:o,contains:["self"].concat(C)});const k=[].concat(v,E.contains),O=k.concat([{begin:/(\s*)\(/,end:/\)/,keywords:o,contains:["self"].concat(k)}]),D={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:O},P={variants:[{match:[/class/,/\s+/,u,/\s+/,/extends/,/\s+/,t.concat(u,"(",t.concat(/\./,u),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,u],scope:{1:"keyword",3:"title.class"}}]},W={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Rs,...Is]}},te={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},_e={variants:[{match:[/function/,/\s+/,u,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[D],illegal:/%/},se={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Ce(Q){return t.concat("(?!",Q.join("|"),")")}const G={match:t.concat(/\b/,Ce([...Os,"super","import","await"].map(Q=>`${Q}\\s*\\(`)),u,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},J={begin:t.concat(/\./,t.lookahead(t.concat(u,/(?![0-9A-Za-z$_(])/))),end:u,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},X={match:[/get|set/,/\s+/,u,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},D]},le="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",ke={match:[/const|var|let/,/\s+/,u,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(le)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[D]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:o,exports:{PARAMS_CONTAINS:O,CLASS_REFERENCE:W},illegal:/#(?![$_A-Za-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),te,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,g,I,T,v,{match:/\$\d+/},f,W,{scope:"attr",match:u+t.lookahead(":"),relevance:0},ke,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[v,e.REGEXP_MODE,{className:"function",begin:le,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:O}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:r.begin,end:r.end},{match:i},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},_e,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[D,e.inherit(e.TITLE_MODE,{begin:u,className:"title.function"})]},{match:/\.\.\./,relevance:0},J,{match:"\\$"+u,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[D]},G,se,P,X,{match:/\$[(.]/}]}}const Vu="[A-Za-z$_][0-9A-Za-z$_]*",ys=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],xs=["true","false","null","undefined","NaN","Infinity"],Ds=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],ks=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Ls=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],ws=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],vs=[].concat(Ls,Ds,ks);function nf(e){const t=e.regex,n=(Q,{after:pe})=>{const Ie="</"+Q[0].slice(1);return Q.input.indexOf(Ie,pe)!==-1},u=Vu,r={begin:"<>",end:"</>"},i=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Q,pe)=>{const Ie=Q[0].length+Q.index,Oe=Q.input[Ie];if(Oe==="<"||Oe===","){pe.ignoreMatch();return}Oe===">"&&(n(Q,{after:Ie})||pe.ignoreMatch());let We;const $e=Q.input.substring(Ie);if(We=$e.match(/^\s*=/)){pe.ignoreMatch();return}if((We=$e.match(/^\s+extends\s+/))&&We.index===0){pe.ignoreMatch();return}}},o={$pattern:Vu,keyword:ys,literal:xs,built_in:vs,"variable.language":ws},c="[0-9](_?[0-9])*",l=`\\.(${c})`,h="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",f={className:"number",variants:[{begin:`(\\b(${h})((${l})|\\.)?|(${l}))[eE][+-]?(${c})\\b`},{begin:`\\b(${h})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},E={className:"subst",begin:"\\$\\{",end:"\\}",keywords:o,contains:[]},_={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"xml"}},g={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"css"}},I={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"graphql"}},T={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,E]},v={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:u+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},C=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,g,I,T,{match:/\$\d+/},f];E.contains=C.concat({begin:/\{/,end:/\}/,keywords:o,contains:["self"].concat(C)});const k=[].concat(v,E.contains),O=k.concat([{begin:/(\s*)\(/,end:/\)/,keywords:o,contains:["self"].concat(k)}]),D={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:O},P={variants:[{match:[/class/,/\s+/,u,/\s+/,/extends/,/\s+/,t.concat(u,"(",t.concat(/\./,u),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,u],scope:{1:"keyword",3:"title.class"}}]},W={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Ds,...ks]}},te={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},_e={variants:[{match:[/function/,/\s+/,u,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[D],illegal:/%/},se={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Ce(Q){return t.concat("(?!",Q.join("|"),")")}const G={match:t.concat(/\b/,Ce([...Ls,"super","import","await"].map(Q=>`${Q}\\s*\\(`)),u,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},J={begin:t.concat(/\./,t.lookahead(t.concat(u,/(?![0-9A-Za-z$_(])/))),end:u,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},X={match:[/get|set/,/\s+/,u,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},D]},le="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",ke={match:[/const|var|let/,/\s+/,u,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(le)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[D]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:o,exports:{PARAMS_CONTAINS:O,CLASS_REFERENCE:W},illegal:/#(?![$_A-Za-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),te,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,g,I,T,v,{match:/\$\d+/},f,W,{scope:"attr",match:u+t.lookahead(":"),relevance:0},ke,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[v,e.REGEXP_MODE,{className:"function",begin:le,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:O}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:r.begin,end:r.end},{match:i},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},_e,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[D,e.inherit(e.TITLE_MODE,{begin:u,className:"title.function"})]},{match:/\.\.\./,relevance:0},J,{match:"\\$"+u,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[D]},G,se,P,X,{match:/\$[(.]/}]}}function uf(e){const t=e.regex,n=nf(e),u=Vu,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],i={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},s={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[n.exports.CLASS_REFERENCE]},o={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},c=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],l={$pattern:Vu,keyword:ys.concat(c),literal:xs,built_in:vs.concat(r),"variable.language":ws},h={className:"meta",begin:"@"+u},f=(I,T,w)=>{const v=I.contains.findIndex(C=>C.label===T);if(v===-1)throw new Error("can not find mode to replace");I.contains.splice(v,1,w)};Object.assign(n.keywords,l),n.exports.PARAMS_CONTAINS.push(h);const E=n.contains.find(I=>I.scope==="attr"),_=Object.assign({},E,{match:t.concat(u,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,E,_]),n.contains=n.contains.concat([h,i,s,_]),f(n,"shebang",e.SHEBANG()),f(n,"use_strict",o);const g=n.contains.find(I=>I.label==="func.def");return g.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}const rf="([-+]?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)|NaN|[-+]?Infinity",of={scope:"number",match:rf,relevance:0};function sf(e){const t={className:"attr",begin:/(("(\\.|[^\\"\r\n])*")|('(\\.|[^\\'\r\n])*'))(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},u=["true","false","null"],r={scope:"literal",beginKeywords:u.join(" ")};return{name:"JSON",aliases:["jsonc","json5"],keywords:{literal:u},contains:[t,n,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,r,of,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function cf(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),u=/[\p{L}0-9._:-]+/u,r={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},i={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},s=e.inherit(i,{begin:/\(/,end:/\)/}),o=e.inherit(e.APOS_STRING_MODE,{className:"string"}),c=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[r]},{begin:/'/,end:/'/,contains:[r]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[i,c,o,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[i,s,c,o]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},r,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[c]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:"css"}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:"javascript"}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:l}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function af(e){const t=e.regex,n={},u={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},u]});const r={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},i=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),s={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},o={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,r]};r.contains.push(o);const c={match:/\\"/},l={className:"string",begin:/'/,end:/'/},h={match:/\\'/},f={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},E=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],_=e.SHEBANG({binary:`(${E.join("|")})`,relevance:10}),g={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},I=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],T=["true","false"],w={match:/(\/[a-z._-]+)+/},v=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],C=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],k=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],O=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:I,literal:T,built_in:[...v,...C,"set","shopt",...k,...O]},contains:[_,e.SHEBANG(),g,f,i,s,w,o,c,l,h,n]}}function lf(e){const t=e.regex,n=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),u=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","lazy","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],o={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:u,built_in:["__import__","abs","aiter","all","anext","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozendict","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","sentinel","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},c={className:"meta",begin:/^(>>>|\.\.\.) /},l={className:"subst",begin:/\{/,end:/\}/,keywords:o,illegal:/#/},h={begin:/\{\{/,relevance:0},f={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,c],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,c],relevance:10},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,c,h,l]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,c,h,l]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,h,l]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,h,l]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},E="[0-9](_?[0-9])*",_=`(\\b(${E}))?\\.(${E})|\\b(${E})\\.`,g=`\\b|${u.join("|")}`,I={className:"number",relevance:0,variants:[{begin:`(\\b(${E})|(${_}))[eE][+-]?(${E})[jJ]?(?=${g})`},{begin:`(${_})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${g})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${g})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${g})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${g})`},{begin:`\\b(${E})[jJ](?=${g})`}]},T={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:o,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},w={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:["self",c,I,f,e.HASH_COMMENT_MODE]}]};return l.contains=[f,I,c],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:o,illegal:/(<\/|\?)|=>/,contains:[c,I,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},f,T,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[w]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[I,w,f]}]}}function df(e){const t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",u={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},r={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},i={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},s={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,r]},o=e.inherit(s,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),E={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},_={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},g={begin:/\{/,end:/\}/,contains:[_],illegal:"\\n",relevance:0},I={begin:"\\[",end:"\\]",contains:[_],illegal:"\\n",relevance:0},T=[u,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},E,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},g,I,i,s],w=[...T];return w.pop(),w.push(o),_.contains=w,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:T}}function ff(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}const hf={sql:Xd,pgsql:jd,javascript:tf,typescript:uf,json:sf,xml:cf,bash:af,python:lf,yaml:df,plaintext:ff};for(const[e,t]of Object.entries(hf))du.registerLanguage(e,t);const Ms=[];function pf(e,t){Ms.push({aliases:e,languageName:t}),du.registerAliases([...e],{languageName:t})}let Dr=null;function gf(){for(const{aliases:e,languageName:t}of Ms)du.registerAliases([...e],{languageName:t})}const Ef=/text-align:\s*(left|center|right)/;function bf(e){for(const t of["th_open","td_open"]){const n=e.renderer.rules[t]??((r,i,s,o,c)=>c.renderToken(r,i,s)),u=(r,i,s,o,c)=>{var f,E;const l=r[i],h=(l==null?void 0:l.attrIndex("style"))??-1;if(l&&l.attrs&&h>=0){const _=((f=l.attrs[h])==null?void 0:f[1])??"",g=(E=Ef.exec(_))==null?void 0:E[1];l.attrs.splice(h,1),g&&l.attrSet("data-align",g)}return n(r,i,s,o,c)};e.renderer.rules[t]=u}}function _f(){if(Dr)return Dr;gf();const e=new It({html:!1,linkify:!0,breaks:!0,typographer:!1,highlight:(n,u)=>{if(u&&du.getLanguage(u))try{const r=du.highlight(n,{language:u,ignoreIllegals:!0}).value;return`<pre class="hljs"><code class="hljs language-${u}">${r}</code></pre>`}catch(r){Rt.bestEffortFailed("fall through to markdown-it's escaped default",r)}return""}}),t=e.renderer.rules.link_open??((n,u,r,i,s)=>s.renderToken(n,u,r));return e.renderer.rules.link_open=(n,u,r,i,s)=>{const o=n[u];return o&&(o.attrSet("target","_blank"),o.attrSet("rel","noopener noreferrer")),t(n,u,r,i,s)},bf(e),Dr=e,e}const ao=["a","p","br","strong","em","code","pre","kbd","s","del","ul","ol","li","blockquote","hr","h1","h2","h3","h4","h5","h6","span","table","thead","tbody","tr","th","td"],mf="img",Af=["href","target","rel","src","alt","title","width","height","class"],Tf=/^(?:https?:|mailto:|tel:|data:image\/(?:png|jpe?g|gif|webp|svg\+xml);base64,)/i,Sf=["target","rel"];function Cf(e,t){if(!e)return"";const n=_f().render(e);return Wd.sanitize(n,{ALLOWED_TAGS:t!=null&&t.allowImages?[...ao,mf]:ao,ALLOWED_ATTR:Af,ALLOWED_URI_REGEXP:Tf,ADD_URI_SAFE_ATTR:Sf})}function Nf(e,t=!0){return Cf(e,{allowImages:t})}const Fs={info:"Info",success:"Success",warning:"Warning",error:"Error"};function Rf(e){return e==="above"?Tn.AnchorPosition.ABOVE:Tn.AnchorPosition.BELOW}function If(e){return e==="right"?Tn.AnchorAlignment.RIGHT:Tn.AnchorAlignment.LEFT}function Ps(e,t={}){const n=e.getBoundingClientRect();return{ownerWindow:Zs.getWindow(e),triggerEl:e,anchor:{top:n.top,left:n.left,width:n.width,height:n.height},anchorAlignment:If(t.horizontal),anchorPosition:Rf(t.vertical)}}const Of="vk_item_iu5b9",yf="vk_itemExiting_1AEmJ",xf="vk_closeFuse_uJM3j",Df="vk_subtitleCollapse_TrzAH",kf="vk_detailsCollapse_nY1gW",Lf="vk_subtitle_XM9-h",wf="vk_detailsRow_QOjtY",vf="vk_chevron_8399G",Mf="vk_mainRow_Or-HS",Ff="vk_icon_tpHzZ",Pf="vk_body_M1AsL",Uf="vk_titleRow_P14EL",Bf="vk_title_LULCY",Hf="vk_timestamp_oi-zj",Gf="vk_subtitleViewport_-M4DV",zf="vk_toolbar_Pojzw",$f="vk_actions_c2fy8",Vf="vk_source_0ZwCJ",Wf="vk_progressRow_HGeTR vk_rowCenter_saaBE",qf="vk_progress_oqKTw",Yf="vk_progressCancel_d41du",Kf="vk_closeWrapper_al-7O",Xf="vk_closeButton_PbZLT",jf="vk_fuseTrack_oN787",Zf="vk_fusePath_vX094",Me={item:Of,itemExiting:yf,closeFuse:xf,subtitleCollapse:Df,detailsCollapse:kf,subtitle:Lf,detailsRow:wf,chevron:vf,mainRow:Mf,icon:Ff,body:Pf,titleRow:Uf,title:Bf,timestamp:Hf,subtitleViewport:Gf,toolbar:zf,actions:$f,source:Vf,progressRow:Wf,progress:qf,progressCancel:Yf,closeWrapper:Kf,closeButton:Xf,fuseTrack:jf,fusePath:Zf};function Qf(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}var lo=["<span",">","</span>"],Jf=["<div",' tabindex="-1">',"</div>"],fo=["<div",">","","</div>"],e1=["<div","><span",' aria-hidden="true">','</span><div class="','"><div','><span class="','">',"</span>","</div>","</div>","</div>"],t1=["<div",">","</div>"],n1=["<div","><div",">","","</div></div>"],u1=["<svg",' viewBox="0 0 100 100" aria-hidden="true"',' style="','"><path',' d="M 50 3 H 79 A 18 18 0 0 1 97 21 V 79 A 18 18 0 0 1 79 97 H 21 A 18 18 0 0 1 3 79 V 21 A 18 18 0 0 1 21 3 Z"></path><path',' pathLength="100" stroke-dasharray="100 100" stroke-dashoffset="0" d="M 50 3 H 79 A 18 18 0 0 1 97 21 V 79 A 18 18 0 0 1 79 97 H 21 A 18 18 0 0 1 3 79 V 21 A 18 18 0 0 1 21 3 Z"></path></svg>'];const kr=new WeakMap;function r1(e,t){const n=Ra(t-e);return S.t(n.key,n.values)}function i1(e){try{return Bn.formatDateTime(new Date(e))}catch{return new Date(e).toISOString()}}const o1={info:Se.VpInfoCircle,warning:bo.VpAlertTriangle,error:Se.VpCircleX,success:Se.VpCircleCheck},ho={plug:Se.VpPlug,key:Se.VpKey,cloud:Se.VpCloud,database:Se.VpDatabase,"git-merge":Se.VpGitMerge,terminal:Se.VpTerminal,rocket:Se.VpRocket,bell:Se.VpBell,lock:Se.VpLock},Wu=e=>{const t=ma(),n=m.useContext(Kr.DesktopContextMenuContext),[u,r]=m.createSignal(!1);let i;m.onCleanup(()=>{i!==void 0&&clearTimeout(i)});const s=m.createMemo(()=>!Gt(e.item)),o=()=>{if(!u()){if(!s()||Eo.prefersReducedMotion(document)){e.controller.close(e.item.id);return}r(!0),i!==void 0&&clearTimeout(i),i=setTimeout(()=>e.controller.close(e.item.id),180)}},c=()=>e.controller.toggleExpanded(e.item.id),l=m.createMemo(()=>{const G=e.item.icon;return G&&ho[G]?ho[G]:o1[e.item.severity]}),h=m.createMemo(()=>r1(e.item.createdAt,t())),f=m.createMemo(()=>i1(e.item.createdAt)),E=m.createMemo(()=>e.controller.isSticky(e.item)),_=m.createMemo(()=>e.controller.duration(e.item)),g=m.createMemo(()=>{if(E())return!1;const G=_();return Number.isFinite(G)&&G>0}),[I,T]=m.createSignal(!1),[w,v]=m.createSignal(!1);m.onCleanup(()=>{const G=I(),J=w();if(!G&&!J)return;const X=e.item;if(X===void 0)return;const{id:le}=X,ke=e.controller;queueMicrotask(()=>{G&&ke.setHover(le,!1),J&&ke.setFocus(le,!1)})});const[C,k]=m.createSignal(0),O=m.createMemo(()=>I()||w()||!!(e.item.hovered||e.item.focused));let D=!1;m.createEffect(()=>{const G=O();D&&!G&&k(J=>J+1),D=G});let P=e.item.expanded;m.createEffect(()=>{const G=e.item.expanded;G!==P&&(P=G,k(J=>J+1))});const W=m.createMemo(()=>g()?`${e.item.id}-${_()}-${C()}`:null),te=()=>e.item.announce??(e.item.severity==="error"?"assertive":"polite");m.createEffect(()=>{if(e.inCenter)return;const G=e.item.title,J=e.item.body,X=J?`${G}: ${J}`:G;te()==="assertive"?e.controller.announcer.assertive(X):e.controller.announcer.polite(X)});const _e=m.createMemo(()=>{const G=e.item.body;return G?e.item.markdown?Nf(G,e.shell!==null):Qf(G).replace(/\n/g,"<br>"):""}),se=G=>{const J=e.shell;if(J===null||!n)return;if(G.preventDefault(),G.stopPropagation(),n.state()&&kr.get(n)===e.item.id){n.close(),kr.set(n,null);return}kr.set(n,e.item.id);const X=G.currentTarget,le=e.item.source,ke=e.item.neverShowAgainKey,Q=ke??e.item.remindKey??pu(le??"general",e.item.title),pe=[];if(ke&&pe.push({label:S.t("Don't show again"),onSelect:()=>{J.dismissKey(ke),o()}}),J.remindLaterEnabled()){const $e=()=>{const ot=new Date;return ot.setDate(ot.getDate()+1),ot.setHours(9,0,0,0),ot.getTime()-Date.now()};pe.push({label:S.t("Remind me in 15 minutes"),onSelect:()=>{J.remindLater(Q,15*6e4),o()}}),pe.push({label:S.t("Remind me in 1 hour"),onSelect:()=>{J.remindLater(Q,36e5),o()}}),pe.push({label:S.t("Remind me tomorrow morning"),onSelect:()=>{J.remindLater(Q,$e()),o()}})}if(le&&le!=="general"){const Oe=J.isSourceMuted(le);pe.push({label:Oe?S.t("Unmute notifications from this source"):S.t("Mute notifications from this source"),onSelect:()=>J.setSourceMuted(le,!Oe)})}const Ie=e.item.secondaryActions;if(Ie&&Ie.length>0){pe.length>0&&pe.push({type:"separator"});for(const Oe of Ie)pe.push({label:Oe.label,onSelect:()=>{Oe.onClick()}})}pe.length>0&&pe.push({type:"separator"}),pe.push({label:S.t("Notification settings…"),onSelect:()=>J.openSettings()}),n.openWithPlacement(Ps(X,{vertical:"auto",horizontal:"auto"}),pe)},Ce=async G=>{try{await G.onClick()}finally{G.keepOpen||o()}};return a.ssrElement("div",a.mergeProps({get class(){return`${Me.item} card ${u()?Me.itemExiting:""}`},get id(){return e.inCenter?void 0:`notification-card-${e.item.id}`},tabIndex:-1,get"data-severity"(){return e.item.severity},get"data-expanded"(){return e.item.expanded},get"data-has-actions"(){return e.item.actions&&e.item.actions.length>0?"true":"false"},get"data-has-timer"(){return g()?"true":"false"}},()=>e.inCenter?{}:{"aria-live":te()},{get"aria-atomic"(){return e.inCenter?void 0:"true"},get"aria-label"(){return S.t("{severity}: {title}",{severity:S.t(Fs[e.item.severity]),title:e.item.title})}}),[a.ssr(e1,a.ssrAttribute("class",a.escape(Me.mainRow,!0),!1),a.ssrAttribute("class",a.escape(Me.icon,!0),!1)+a.ssrAttribute("data-severity",a.escape(e.item.severity,!0),!1),a.escape(a.createComponent(a.Dynamic,{get component(){return l()},size:16})),`${a.escape(Me.body,!0)} body`,a.ssrAttribute("class",a.escape(Me.titleRow,!0),!1),`${a.escape(Me.title,!0)} title`,a.escape(e.item.title),a.escape(a.createComponent(Wr.HoverTooltip,{get content(){return f()},delayMs:400,get children(){return a.ssr(lo,a.ssrAttribute("class",a.escape(Me.timestamp,!0),!1),a.escape(h()))}})),a.escape(a.createComponent(m.Show,{get when(){return e.item.body},get children(){return a.createComponent(Yu.OverlayScrollArea,{get rootClass(){return Me.subtitleCollapse},get viewportClass(){return Me.subtitleViewport},hideHorizontal:!0,get children(){return a.ssr(Jf,a.ssrAttribute("class",a.escape(Me.subtitle,!0),!1),_e())}})}})),a.escape(a.createComponent(vn.Panel.Toolbar,{get class(){return Me.toolbar},get children(){return[a.createComponent(m.Show,{get when(){return e.item.body},get children(){return a.createComponent(Fe.Button,{variant:"ghost",size:"sm",iconOnly:!0,get"aria-label"(){return a.memo(()=>!!e.item.expanded)()?S.t("Collapse"):S.t("Expand")},get title(){return a.memo(()=>!!e.item.expanded)()?S.t("Collapse"):S.t("Expand")},onClick:c,get children(){return a.createComponent(Tn.VpChevronDown,{get class(){return`${fr.iconScale.iconMd} ${Me.chevron}`}})}})}}),a.createComponent(m.Show,{get when(){return e.shell!==null},get children(){return a.createComponent(Fe.Button,{variant:"ghost",size:"sm",iconOnly:!0,get"aria-label"(){return S.t("More actions")},get title(){return S.t("More actions")},onMouseDown:G=>G.stopPropagation(),onClick:se,get children(){return a.createComponent(Se.VpSettings,{get class(){return fr.iconScale.iconMd}})}})}}),a.createComponent(m.Show,{get when(){return s()},get children(){return a.ssr(fo,a.ssrAttribute("class",a.escape(Me.closeWrapper,!0),!1),a.escape(a.createComponent(Fe.Button,{variant:"ghost",size:"sm",iconOnly:!0,get class(){return`${Me.closeButton} close-btn`},"data-testid":"notification-close-btn",get"aria-label"(){return S.t("Close")},get title(){return S.t("Close")},onClick:o,get children(){return a.createComponent(Lr.VpClose,{get class(){return fr.iconScale.iconMd}})}})),a.escape(a.createComponent(m.Show,{keyed:!0,get when(){return W()},children:G=>a.ssr(u1,a.ssrAttribute("class",a.escape(Me.closeFuse,!0),!1),a.ssrAttribute("data-fuse-key",a.escape(G,!0),!1),a.ssrStyleProperty("--fuse-duration:",`${a.escape(_(),!0)}ms`),a.ssrAttribute("class",a.escape(Me.fuseTrack,!0),!1),a.ssrAttribute("class",a.escape(Me.fusePath,!0),!1))})))}})]}}))),a.escape(a.createComponent(m.Show,{get when(){return a.memo(()=>!!e.item.actions)()&&e.item.actions.length>0||typeof e.item.source=="string"&&e.item.source.length>0&&e.item.source!=="general"&&e.item.source!=="undefined"},get children(){return a.ssr(n1,a.ssrAttribute("class",a.escape(Me.detailsCollapse,!0),!1),a.ssrAttribute("class",a.escape(Me.detailsRow,!0),!1),a.escape(a.createComponent(m.Show,{get when(){return a.memo(()=>!!e.item.actions)()&&e.item.actions.length>0},get children(){return a.ssr(t1,a.ssrAttribute("class",a.escape(Me.actions,!0),!1),a.escape(a.createComponent(m.For,{get each(){return e.item.actions},children:G=>a.createComponent(Fe.Button,{get variant(){return G.primary?"primary":"secondary"},size:"sm",get class(){return`${G.primary?"primary ":""}btn`},onClick:()=>void Ce(G),get children(){return G.label}})})))}})),a.escape(a.createComponent(m.Show,{get when(){return a.memo(()=>typeof e.item.source=="string"&&e.item.source.length>0&&e.item.source!=="general")()&&e.item.source!=="undefined"},get children(){return a.ssr(lo,a.ssrAttribute("class",a.escape(Me.source,!0),!1),a.escape(S.t("Source: {source}",{source:String(e.item.source)})))}})))}})),a.escape(a.createComponent(m.Show,{get when(){return a.memo(()=>!!e.item.progress)()&&!e.item.progress.done},get children(){return a.ssr(fo,a.ssrAttribute("class",a.escape(Me.progressRow,!0),!1),a.escape(a.createComponent(m.Show,{get when(){var G;return typeof((G=e.item.progress)==null?void 0:G.value)=="number"},get fallback(){return a.createComponent(it.Progress,{indeterminate:!0,size:"2xs",get class(){return Me.progress},get ariaLabel(){return S.t("Progress")}})},get children(){return a.createComponent(it.Progress,{get value(){var G;return((G=e.item.progress)==null?void 0:G.value)??0},max:1,size:"2xs",get class(){return Me.progress},get ariaLabel(){return S.t("Progress")}})}})),a.escape(a.createComponent(m.Show,{get when(){var G;return(G=e.item.progress)==null?void 0:G.onCancel},get children(){return a.createComponent(Fe.Button,{iconOnly:!0,variant:"ghost",size:"sm",get class(){return Me.progressCancel},get title(){return S.t("Cancel")},get"aria-label"(){return S.t("Cancel")},onClick:()=>{var G,J;return(J=(G=e.item.progress)==null?void 0:G.onCancel)==null?void 0:J.call(G)},get children(){return a.createComponent(Lr.VpClose,{})}})}})))}}))],!1)},ku=200,$r="notification.acceptPrimaryAction",Vr="notification.clear",Pu="notifications.hideToasts",s1=`${Mt.ACCESSIBILITY_MODE_ENABLED_KEY} && (${Mt.FOCUS_CONTEXT_KEYS.notificationFocus} || ${Mt.FOCUS_CONTEXT_KEYS.notificationToastsVisible})`,c1=Mt.FOCUS_CONTEXT_KEYS.notificationToastsVisible,a1=`${Mt.FOCUS_CONTEXT_KEYS.notificationToastsVisible} && ${Mt.FOCUS_CONTEXT_KEYS.notificationFocus}`;function Us(e,t){const n=[e.commands.register({id:$r,handler:()=>t.acceptPrimaryAction(),metadata:{label:"Accept Notification Primary Action",category:"Notifications"}}),e.bindings.register({command:$r,key:"CmdOrCtrl+Shift+A",when:s1,weight:ku+1,source:"core"}),e.commands.register({id:Vr,handler:()=>t.clearFocused(),metadata:{label:"Clear Notification",category:"Notifications"}}),e.bindings.register({command:Vr,key:"Delete",mac:"Cmd+Backspace",when:Mt.FOCUS_CONTEXT_KEYS.notificationFocus,weight:ku,source:"core"}),e.commands.register({id:Pu,handler:()=>t.hideToasts(),metadata:{label:"Hide notifications",category:"Notifications"}}),e.bindings.register({command:Pu,key:"Escape",when:c1,weight:ku-50,source:"core"}),e.bindings.register({command:Pu,key:"Escape",when:a1,weight:ku+100,source:"core"})];return()=>{for(const u of n.reverse())u()}}const Bs={kind:"none"};function Hs(e){const t=e.notificationOverlay(Ws.getMainWindow().window);return t?{kind:"native",port:t}:Bs}function Uu(e){return e&&e.width>0&&e.height>0?{x:e.x,y:e.y,width:e.width,height:e.height}:void 0}function l1(e){var t;return[(t=e.progress)==null?void 0:t.onCancel,e.defaultRoute,e.source,e.neverShowAgainKey,...(e.actions??[]).flatMap(n=>[n.id,n.label,n.primary,n.keepOpen,n.onClick]),...(e.secondaryActions??[]).flatMap(n=>[n.label,n.onClick])]}function d1(e){return{...e.value!==void 0?{value:e.value}:{},done:e.done??!1,hasCancel:typeof e.onCancel=="function"}}function f1(e){return e.map(t=>({label:t.label,...t.id?{id:t.id}:{},...t.primary!==void 0?{primary:t.primary}:{},...t.keepOpen!==void 0?{keepOpen:t.keepOpen}:{}}))}function h1(e,t){const n=fu(e,t.settings);return{id:e.id,itemRevision:t.revision,severity:e.severity,title:e.title,...e.body?{body:e.body}:{},...e.markdown!==void 0?{markdown:e.markdown}:{},...e.icon?{icon:e.icon}:{},...e.announce?{announce:e.announce}:{},...e.expanded!==void 0?{expanded:e.expanded}:{},...e.progress?{progress:d1(e.progress)}:{},duration:Number.isFinite(n)?n:0,sticky:hu(e,t.settings),hovered:e.hovered,focused:e.focused,sourceMuted:e.source?hn(e.source):!1,...t.bounds?{bounds:t.bounds}:{},...e.source?{source:e.source}:{},...e.neverShowAgainKey?{neverShowAgainKey:e.neverShowAgainKey}:{},...e.remindKey?{remindKey:e.remindKey}:{},...e.defaultRoute?{defaultRoute:e.defaultRoute}:{},...e.actions?{actions:f1(e.actions)}:{},...e.secondaryActions?{secondaryActions:e.secondaryActions.map(u=>({label:u.label}))}:{},createdAt:e.createdAt}}function p1(e){return{visible:e.visible,position:e.position,width:e.width,theme:e.theme,language:e.language,...e.appearance??{},generation:e.generation,reduceMotion:e.reduceMotion,animationDuration:e.animationDuration,remindLaterEnabled:e.remindLaterEnabled,sequence:e.sequence,...e.bounds?{bounds:e.bounds}:{},...e.clipBounds?{clipBounds:e.clipBounds}:{},items:e.items}}function g1(){const e=new Map;let t=0;return{revisionOf(n){const u=l1(n),r=e.get(n.id);if(r&&r.callbacks.length===u.length&&u.every((s,o)=>s===r.callbacks[o]))return r.revision;const i=++t;return e.set(n.id,{revision:i,callbacks:u}),i},current:n=>{var u;return(u=e.get(n))==null?void 0:u.revision},prune(n){for(const u of e.keys())n.some(r=>r.id===u)||e.delete(u)}}}function E1(e){const t=Math.min(...e.map(i=>i.x)),n=Math.min(...e.map(i=>i.y)),u=Math.max(...e.map(i=>i.x+i.width)),r=Math.max(...e.map(i=>i.y+i.height));return{x:t,y:n,width:u-t,height:r-n}}function b1(e,t){return!(e.x>=t.x+t.width||e.x+e.width<=t.x||e.y>=t.y+t.height||e.y+e.height<=t.y)}function _1(e){return e?{x:Math.round(e.x),y:Math.round(e.y),width:Math.round(e.width),height:Math.round(e.height)}:void 0}function m1(e){const t=i=>{var f,E;const s=e.hostEl(),o=(s==null?void 0:s.getBoundingClientRect())??i.getBoundingClientRect();let c=0,l=0,h=i;for(;h&&h!==s;)c+=h.offsetLeft,l+=h.offsetTop,h=h.offsetParent;return{x:o.x+c-(((f=e.scrollEl())==null?void 0:f.scrollLeft)??0),y:o.y+l-(((E=e.scrollEl())==null?void 0:E.scrollTop)??0),width:i.offsetWidth,height:i.offsetHeight}},n=()=>{const i=e.hostEl();if(!i)return;const s=e.cards().map(t).filter(o=>o.width>0&&o.height>0);return s.length>0?E1(s):Uu(i.getBoundingClientRect())},[u,r]=m.createSignal();return m.createEffect(()=>{const i=e.hostEl(),s=e.hostWindow.ResizeObserver;if(!i||!s)return;const o=()=>{const h=n();h&&r(h)},c=new s(o),l=e.scrollEl();l==null||l.addEventListener("scroll",o),l&&c.observe(l),c.observe(i),o(),m.onCleanup(()=>{c.disconnect(),l==null||l.removeEventListener("scroll",o)})}),{cardBounds:t,stackBounds:n,hostRect:u}}function A1(e,t){return m.createMemo(()=>{const n=dt.getVisibleBrowsers(e.hostWindow);if(n.length===0)return!1;const u=e.hostEl();if(!u)return!1;const r=t.hostRect()??t.stackBounds()??u.getBoundingClientRect();return r.width<=0||r.height<=0?!1:n.some(i=>b1(i.bounds,r))})}function T1(e,t,n){var r,i;if(t.actionType==="secondary"){const s=(r=e==null?void 0:e.secondaryActions)==null?void 0:r[t.actionIndex];s&&s.onClick();return}const u=(i=e==null?void 0:e.actions)==null?void 0:i[t.actionIndex];u&&(u.onClick(),u.keepOpen||n.close(t.id))}function S1(e,t,n){var u,r,i;switch(e.type){case"scroll-stack":(u=n.scrollEl())==null||u.scrollBy({top:e.deltaY});break;case"open-settings":n.shell.openSettings();break;case"cancel-progress":(i=(r=t.progress)==null?void 0:r.onCancel)==null||i.call(r);break;case"navigate":t.defaultRoute&&n.shell.navigate(t.defaultRoute);break;case"open-external":n.controller.openExternal(e.url);break;case"dismiss-key":n.shell.dismissKey(e.key);break;case"remind-later":n.shell.remindLater(e.key,e.ttlMs);break;case"mute-source":n.shell.setSourceMuted(e.source,e.muted);break}}function C1(e,t){const n=r=>t.items().find(i=>i.id===r),{controller:u}=t;m.onCleanup(e.onNotificationOverlayClose(r=>{t.isCurrent(r)&&u.close(r.id)})),m.onCleanup(e.onNotificationOverlayAction(r=>{t.isCurrent(r,!0)&&T1(n(r.id),r,u)})),m.onCleanup(e.onNotificationOverlayHover(r=>{t.isCurrent(r)&&u.setHover(r.id,r.hovered)})),m.onCleanup(e.onNotificationOverlayFocus(r=>{t.isCurrent(r)&&u.setFocus(r.id,r.focused)})),m.onCleanup(e.onNotificationOverlayPresented(t.onPresented)),m.onCleanup(e.onNotificationOverlayToggleExpanded(r=>{t.isCurrent(r)&&u.toggleExpanded(r.id)})),m.onCleanup(e.onNotificationOverlayCommand(r=>{if(!t.isCurrent(r,r.type!=="scroll-stack"))return;const i=n(r.id);i&&S1(r,i,t)}))}function N1(e,t){for(const n of e)n.hovered&&t.setHover(n.id,!1),n.focused&&t.setFocus(n.id,!1)}function R1(e,t,n,u){var o,c,l;const r=e.hostEl(),i=r?t.stackBounds()??t.hostRect()??r.getBoundingClientRect():void 0,s=h=>{const f=r==null?void 0:r.ownerDocument.getElementById(`notification-card-${h}`);return Uu(f?t.cardBounds(f):void 0)};return p1({visible:u.active,position:e.position(),width:e.width(),theme:((o=e.appearance())==null?void 0:o.theme)??((l=(c=e.hostWindow.document)==null?void 0:c.documentElement)!=null&&l.classList.contains("light")?"light":"dark"),language:S.appI18n.language,appearance:e.appearance(),generation:u.generation,sequence:u.sequence,reduceMotion:e.reduceMotion(),animationDuration:e.animationDuration(),remindLaterEnabled:e.settings().remindLaterEnabled,bounds:_1(Uu(i)),clipBounds:Uu(r==null?void 0:r.getBoundingClientRect()),items:e.visible().map(h=>h1(h,{revision:n.revisionOf(h),settings:e.settings(),bounds:s(h.id)}))})}function I1(e){const t=e.channel;if(t.kind==="none")return{nativeRendered:()=>!1};const n=t.port,u=Math.floor(performance.timeOrigin*1e3+performance.now());let r=0,i=!1;const s=g1(),o=m1(e),c=A1(e,o),[l,h]=m.createSignal(!1),f=(E,_=!1)=>e.ownsDisplay()&&i&&E.generation===u&&E.sequence<=r&&(!_||s.current(E.id)===E.itemRevision);return m.onMount(()=>C1(n,{...e,isCurrent:f,onPresented:E=>{E.generation!==u||E.sequence>r||h(i&&E.visible)}})),m.createEffect(()=>{const E=e.visible(),_=e.ownsDisplay()&&!e.isCenterOpen()&&E.length>0,g=c()&&_,I=i;i=g,I&&!g&&queueMicrotask(()=>{i||N1(e.items(),e.controller)}),s.prune(e.items()),g||h(!1),n.setNotificationOverlay(R1(e,o,s,{active:g,generation:u,sequence:++r}))}),m.onCleanup(()=>{n.setNotificationOverlay({visible:!1,position:e.position(),width:e.width(),items:[],generation:u,sequence:++r})}),{nativeRendered:l}}const O1="vk_host_-dTTD",y1="vk_scrollArea_FaEtH",x1="vk_stack_4LHtI",D1="vk_enter_GAjwE",k1="vk_ackOverlay_1dc3n",L1="vk_ackCenterWrap_ZPFTX",w1="vk_ackQueueHint_HL0SL",an={host:O1,scrollArea:y1,stack:x1,enter:D1,ackOverlay:k1,ackCenterWrap:L1,ackQueueHint:w1};var v1=["<div",">","</div>"],M1=["<p",">","</p>"],F1=["<div",' role="alertdialog" aria-modal="true" aria-labelledby="','"',"><div",' id="','">',"","</div></div>"];const P1=e=>{var Pt;const t=qr.useHostWindow().window,n=Sn.useKitHost(),u=n.notifications.stack,r=n.displayOwner.register(t);m.onCleanup(r.dispose);const[i,s]=Bu.createStore({items:[]}),o=K.notificationSettings.get(),[c,l]=m.createSignal(o),[h,f]=m.createSignal(),[E,_]=m.createSignal(o.toastPosition),g=()=>E(),[I,T]=m.createSignal(o.notificationWidth),[w,v]=m.createSignal(o.maxVisibleNotifications),[C,k]=m.createSignal(o.animationDuration),[O,D]=m.createSignal(o.reduceMotion),[P,W]=m.createSignal(),[te,_e]=m.createSignal(),[se,Ce]=m.createSignal(null),G=qo(n,c),J=ni(n),X=()=>i.items.filter(F=>F.priority==="acknowledgment-required"),le=()=>{const F=Math.max(1,w()),ge=i.items.filter(Ku);return ge.length<=F?ge:ge.slice(ge.length-F)},ke=()=>X()[0]??null,Q=()=>e.centerOpen(),pe=F=>{F&&(l(ge=>({...ge,...F})),F.toastPosition&&_(F.toastPosition),typeof F.notificationWidth=="number"&&T(F.notificationWidth),typeof F.maxVisibleNotifications=="number"&&v(F.maxVisibleNotifications),(F.animationDuration==="fast"||F.animationDuration==="normal"||F.animationDuration==="slow")&&k(F.animationDuration),typeof F.reduceMotion=="boolean"&&D(F.reduceMotion))},Ie=()=>{var q;const F=le(),ge=se(),N=ge!==null?F[ge]:F[0],U=(q=N==null?void 0:N.actions)==null?void 0:q.find(ce=>ce.primary);!N||!U||(U.onClick(),U.keepOpen||u.close(N.id))},Oe=()=>{const F=le(),ge=se();if(ge===null)return;const N=F[ge];!N||Gt(N)||(u.dismiss(N.id),Ce(F.length<=1?null:Math.min(ge,F.length-2)))},We=()=>{le().length!==0&&(Ho(i.items).forEach(F=>u.dismiss(F)),Ce(null))},$e=Mt.useKeybindingsOptional(),ot=$e===null,qt=/Mac OS X|Macintosh/i.test(((Pt=t.navigator)==null?void 0:Pt.userAgent)??""),be=F=>{var ce;const ge=le();if(ge.length===0)return;if(ot&&!F.defaultPrevented&&Ct.isKey(F,"Escape")){F.preventDefault(),We();return}const N=F.target;if(!N||typeof N.nodeType!="number"||!((ce=P())!=null&&ce.contains(N)))return;const U=se();if(Ct.isKey(F,"ArrowDown")||Ct.isKey(F,"PageDown")){F.preventDefault(),Ce(U===null?0:Math.min(ge.length-1,U+1));return}if(Ct.isKey(F,"ArrowUp")||Ct.isKey(F,"PageUp")){F.preventDefault(),Ce(U===null?ge.length-1:Math.max(0,U-1));return}if(Ct.isKey(F,"Home")){F.preventDefault(),Ce(0);return}if(Ct.isKey(F,"End")){F.preventDefault(),Ce(ge.length-1);return}if(U===null)return;const q=ge[U];if(q){if(Ct.isKey(F,"ArrowRight")&&!q.expanded){F.preventDefault(),u.toggleExpanded(q.id);return}if(Ct.isKey(F,"ArrowLeft")&&q.expanded){F.preventDefault(),u.toggleExpanded(q.id);return}if(ot&&!F.defaultPrevented&&(Ct.isKey(F,"Delete")||qt&&Ct.isKey(F,"Backspace")&&F.metaKey)){F.preventDefault(),Oe();return}(F.key===" "||Ct.isKey(F,"Enter"))&&(F.preventDefault(),u.toggleExpanded(q.id))}};K.useSettingsSubscription(K.notificationSettings,pe),$e&&(Mt.createFocusContextKey({contextKeys:$e.contextKeys,key:Mt.FOCUS_CONTEXT_KEYS.notificationFocus,containerRef:P}),m.createRenderEffect(()=>{$e.contextKeys.setContext(Mt.FOCUS_CONTEXT_KEYS.notificationToastsVisible,r.ownsDisplay()&&!Q()&&le().length>0)}),m.onCleanup(Us($e,{acceptPrimaryAction:Ie,clearFocused:Oe,hideToasts:We}))),m.onMount(()=>{const F=t.document.documentElement,ge=()=>{const q=t.getComputedStyle(F),ce={};for(let j=0;j<q.length;j++){const Ye=q.item(j);Ye.startsWith("--")&&(ce[Ye]=q.getPropertyValue(Ye))}const Ae={cssVariables:ce,fontFamily:q.fontFamily,fontSize:q.fontSize,theme:F.classList.contains("light")?"light":"dark"};f(j=>JSON.stringify(j)===JSON.stringify(Ae)?j:Ae)};ge();const N=new t.MutationObserver(ge);N.observe(F,{attributes:!0,attributeFilter:["class","style","data-theme","data-palette"]}),m.onCleanup(()=>N.disconnect());const U=u.subscribe(q=>{s("items",Bu.reconcile(q,{key:"id",merge:!0}))});t.addEventListener("keydown",be),m.onCleanup(()=>{U(),t.removeEventListener("keydown",be)})}),m.createEffect(()=>{var F;(F=P())==null||F.style.setProperty("--notif-width",`${I()}px`)});const Ot=I1({channel:e.overlay??Hs(n.desktop),hostWindow:t,ownsDisplay:r.ownsDisplay,items:()=>i.items,visible:le,isCenterOpen:Q,hostEl:P,scrollEl:te,cards:()=>{var F;return[...((F=P())==null?void 0:F.querySelectorAll(`.${an.enter}`))??[]]},position:E,width:I,appearance:h,reduceMotion:O,animationDuration:C,settings:c,controller:G,shell:J});return m.createEffect(()=>{const F=P();if(F){if(O()){F.style.setProperty("--notif-anim-duration","0ms");return}switch(C()){case"fast":F.style.setProperty("--notif-anim-duration","100ms");break;case"normal":F.style.setProperty("--notif-anim-duration","220ms");break;case"slow":F.style.setProperty("--notif-anim-duration","400ms");break}}}),Wr.createDialogShellFocus({open:()=>r.ownsDisplay()&&ke()!==null,onDismiss:()=>{},ownerDocument:()=>globalThis.document,dismissDisabled:()=>!0}),[a.createComponent(hi.HostPortal,{element:()=>P(),type:"toast",open:()=>!!(r.ownsDisplay()&&!Q()&&le().length>0),idPrefix:"notification-toast",get children(){return a.createComponent(m.Show,{get when(){return a.memo(()=>!!r.ownsDisplay())()&&!Q()},get children(){return a.ssrElement("div",a.mergeProps(()=>Eo.modalBackgroundExemption("notifications"),{get class(){return an.host},get"data-position"(){return g()},get"data-presenter"(){return Ot.nativeRendered()?"native":"dom"},"aria-label":"Notifications",tabIndex:-1}),a.escape(a.createComponent(Yu.OverlayScrollArea,{get rootClass(){return an.scrollArea},get viewportClass(){return an.stack},viewportRef:_e,hideHorizontal:!0,get children(){return a.createComponent(m.For,{get each(){return le()},children:(F,ge)=>a.ssr(v1,a.ssrAttribute("class",a.escape(an.enter,!0),!1)+a.ssrAttribute("data-focused",se()===ge()?"true":"false",!1),a.escape(a.createComponent(Wu,{item:F,controller:G,get shell(){return F.isolated?null:J}})))})}})),!1)}})}}),a.createComponent(hi.HostPortal,{modal:!0,open:()=>!!(r.ownsDisplay()&&ke()),idPrefix:"notification-ack",get children(){return a.createComponent(m.Show,{keyed:!0,get when(){return a.memo(()=>!!r.ownsDisplay())()?ke():null},children:F=>a.ssr(F1,a.ssrAttribute("class",a.escape(an.ackOverlay,!0),!1),`notif-ack-${a.escape(F.id,!0)}`,a.ssrAttribute("data-ack-queue-size",X().length>1?a.escape(X().length,!0):a.escape(void 0,!0),!1),a.ssrAttribute("class",a.escape(an.ackCenterWrap,!0),!1),`notif-ack-${a.escape(F.id,!0)}`,a.escape(a.createComponent(Wu,{item:F,controller:G,get shell(){return F.isolated?null:J}})),a.escape(a.createComponent(m.Show,{get when(){return X().length>1},get children(){return a.ssr(M1,a.ssrAttribute("class",a.escape(an.ackQueueHint,!0),!1),a.escape(S.t("+{count} pending acknowledgment",{count:X().length-1})))}})))})}})]},U1=it.defineNotification({id:"onboarding.PageTourHost.info.1",source:"general",severity:"info",priority:"default",delivery:"in-app",kind:"message"},()=>({message:S.t("You can reopen this tour from Help → Page tours.")}));function qu(e){return e.getClientRects().length>0&&e.getBoundingClientRect().width>0&&e.getBoundingClientRect().height>0}function Lu(e){return t=>t.matches(e)&&qu(t)?t:Array.from(t.querySelectorAll(e)).find(qu)??null}var B1=["<span hidden","></span>"];function H1(e){const t=m.useContext(dt.ToolWindowContext),{tours:n,notifications:u,log:r}=Sn.useKitHost(),i=r.withTag("PageTour");let s;const[o,c]=m.createSignal(!1),[l,h]=m.createSignal(0),[f,E]=m.createSignal([]);let _=!1,g=!1,I=!1;const T={},w=()=>s.parentElement,v=()=>qu(w()),C=(D,P=!0)=>{var W;c(!1),n.release(T),n.setActive(null),(W=e.onTourActiveChange)==null||W.call(e,!1);try{n.writeStatus(e.definition.pageId,D?"completed":"skipped")}catch(te){i.warn("Could not save tour progress",te)}_&&P&&u.notify(U1,{}),_=!1},k=()=>{n.setNeverShowAgain(!0),C(!1,!1)},O=(D=!1)=>{var W;if(!v()||!n.claim(T))return;g=!1;const P=e.definition.steps.filter(te=>{var _e;return((_e=te.available)==null?void 0:_e.call(te))!==!1});if(!P.length){n.release(T);return}E(P),h(0),_=D;try{n.writeStatus(e.definition.pageId,"shown")}catch(te){i.warn("Could not save tour progress",te)}n.setActive(e.definition.pageId),(W=e.onTourActiveChange)==null||W.call(e,!0),c(!0)};return m.onMount(()=>{const D=w(),P=D.hasAttribute("tabindex");P||(D.tabIndex=-1),m.onCleanup(()=>{P||D.removeAttribute("tabindex")});const te=s.ownerDocument.defaultView;if(!te)return;const _e=()=>Array.from(s.ownerDocument.querySelectorAll('[role="dialog"], [role="alertdialog"]')).some(X=>qu(X)&&!X.contains(w()));let se=0;const Ce=()=>{var X;if(!v()){se=0,o()&&C(!1,!1);return}if(!(o()||_e()||((X=t==null?void 0:t.isReady)==null?void 0:X.call(t))===!1)&&!(++se<2)){if(n.consumeRequest(e.definition.pageId)&&(g=!0),g){O();return}if(!I&&!n.skipWelcome())try{n.readStatus(e.definition.pageId)||O(!0)}catch(le){I=!0,i.warn("Could not read tour progress",le)}}},G=n.registerHost({page:e.definition.pageId,document:()=>s.ownerDocument,visible:v,start:()=>{g=!0,(o()||!_e())&&O()},dismiss:()=>{o()&&C(!1,!1)}}),J=te.setInterval(Ce,250);m.onCleanup(()=>{var X;te.clearInterval(J),G(),n.release(T),n.activePage()===e.definition.pageId&&(n.setActive(null),(X=e.onTourActiveChange)==null||X.call(e,!1))})}),[a.ssr(B1,a.ssrAttribute("data-page-tour-host",a.escape(e.definition.pageId,!0),!1)),a.createComponent(m.Show,{get when(){return o()},get children(){return a.createComponent(vn.GuidedTour,{get document(){return s.ownerDocument},focusFallback:()=>v()?w():null,get steps(){return f()},get index(){return l()},target:()=>{var D;return((D=f()[l()])==null?void 0:D.target(w()))??null},onSelect:h,onClose:C,onNeverShowAgain:k})}})]}const G1={id:"notifications",pageId:"notifications",version:1,steps:[{id:"panel",title:"Notification Center",description:"Stay informed on database events, completed exports, query execution errors, and background system alerts.",target:Lu('[data-tour-target="notifications-panel"]')},{id:"actions",title:"Timeline Actions & Filter Options",description:"Search notifications, filter by priority or notification source, pin important entries, and export history to CSV or JSON.",target:Lu('[data-tour-target="notifications-actions"]')},{id:"settings",title:"Notification Settings & DND",description:"Open the notification menu to configure do-not-disturb, quiet hours, and notification delivery preferences.",target:Lu('[data-tour-target="notifications-settings"]')},{id:"timeline",title:"Interactive Timeline Cards",description:"Click notification entries to expand stack traces, inspect vendor error codes, or navigate directly to affected queries.",target:Lu('[data-tour-target="notifications-timeline"]')}]},z1=e=>Gt(e)&&e.priority!=="acknowledgment-required";function di(){const{stack:e}=Sn.useKitHost().notifications,[t,n]=Bu.createStore({items:[]});return m.onMount(()=>{const u=e.subscribe(r=>{n("items",Bu.reconcile(r.filter(z1),{key:"id",merge:!0}))});m.onCleanup(u)}),()=>t.items}function Gs(e){const t=Sn.useKitHost(),n=qo(t,()=>K.notificationSettings.get()),u=ni(t);return a.createComponent(m.For,{get each(){return e.items},children:r=>a.createComponent(Wu,{item:r,controller:n,shell:u,inCenter:!0})})}function $1(e,t,n,u,r=2){return e<=0||e>n?0:Math.min(t,r+Math.floor((n-e)/u))}function Qn(e,t){e(n=>{const u=new Set(n);return u.has(t)?u.delete(t):u.add(t),u})}const V1="vk_rightRail_HtYMh",W1="vk_notificationPanel_nrSZl",q1="vk_filterBar_WTQg3",Y1="vk_notificationPanelHeader_aHtxT vk_headerRail_CLLzD",K1="vk_notificationPanelTitleWrap_cOfAP vk_titleWrapRail_b0Czp",X1="vk_notificationPanelTitle_9iMrQ vk_titleSmMargin_PPvAx",j1="vk_notificationPanelActions_7fRj6 vk_actionsRail_QqUv8",Z1="vk_notificationActionIcon_d5EzT",Q1="vk_notificationTimeline_K-mMI",J1="vk_notificationEmpty_IU6kY",eh="vk_notificationItem_tm8HP",th="vk_notificationGroup_4hkdy",nh="vk_notificationGroupToggle_Opmmd",uh="vk_notificationGroupBody_nlrmq",rh="vk_notificationItemSelected_DspyF",ih="vk_notificationItemCheckbox_knWVX",oh="vk_bulkActionBar_6MHEY",sh="vk_bulkActionCount_Mb4tN",ch="vk_notificationItemTop_Mt0D7",ah="vk_notificationToneDot_Z-LOj",lh="vk_notificationToneInfo_rxKOj",dh="vk_notificationToneSuccess_Bxc9E",fh="vk_notificationToneWarning_uBK0T",hh="vk_notificationToneError_p9EYY",ph="vk_notificationItemTime_WT4cd",gh="vk_notificationItemCopyDone_P39uT",Eh="vk_notificationItemMessage_G2mnV",bh="vk_notificationItemMeta_xdFUH",_h="vk_notificationSourceLabel_VvB0i",mh="vk_priorityBadgeIcon_UaJX0",oe={rightRail:V1,notificationPanel:W1,filterBar:q1,notificationPanelHeader:Y1,notificationPanelTitleWrap:K1,notificationPanelTitle:X1,notificationPanelActions:j1,notificationActionIcon:Z1,notificationTimeline:Q1,notificationEmpty:J1,notificationItem:eh,notificationGroup:th,notificationGroupToggle:nh,notificationGroupBody:uh,notificationItemSelected:rh,notificationItemCheckbox:ih,bulkActionBar:oh,bulkActionCount:sh,notificationItemTop:ch,notificationToneDot:ah,notificationToneInfo:lh,notificationToneSuccess:dh,notificationToneWarning:fh,notificationToneError:hh,notificationItemTime:ph,notificationItemCopyDone:gh,notificationItemMessage:Eh,notificationItemMeta:bh,notificationSourceLabel:_h,priorityBadgeIcon:mh};var Ah=["<h3",">","</h3>"],Th=["<div",' data-tour-target="notifications-actions">',"</div>"],Sh=["<div",' role="toolbar"',"><span",">","</span>","","","","</div>"],Ch=["<span",">📌 ","</span>"],Nh=["<aside",' tabindex="-1"><section',' data-tour-target="notifications-panel">',"","","","","</section></aside>"],Rh=["<p",">","</p>"],Ih=['<span class="','"></span>'],Oh=["<span",">","</span>"],yh=['<article class="','"><div',">",'<span class="','"></span><time',">","</time>","","","","</div><p",">","</p><div","><span",">","</span>","","","</div></article>"];function xh(e){return new Intl.DateTimeFormat(Bn.systemFormatLocale(),{hour:"2-digit",minute:"2-digit"}).format(new Date(e))}function Dh(e){return new Intl.DateTimeFormat(Bn.systemFormatLocale(),{year:"numeric",month:"short",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date(e))}function po(e){switch(e){case"success":return oe.notificationToneSuccess;case"error":return oe.notificationToneError;case"warning":return oe.notificationToneWarning;default:return oe.notificationToneInfo}}const wu=["error","warning","info","success"],kh=189,Lh=27;function wh(e){const t=qr.useHostDocument(),n=Sn.useKitHost(),{notifications:u}=n,r=u.timeline,i=n.log.withTag("NotificationPanel"),s=A=>dt.openExternalUrl(n.desktop,i,A),o=A=>Hu(n.vendorErrors,A),[c,l]=m.createSignal(null),[h,f]=m.createSignal(0),[E,_]=m.createSignal(""),[g,I]=m.createSignal(null),[T,w]=m.createSignal(new Set),[v,C]=m.createSignal(!1),[k,O]=m.createSignal(new Set),[D,P]=m.createSignal(new Set),[W,te]=m.createSignal(new Set),[_e,se]=m.createSignal(!1),[Ce,G]=m.createSignal(0);let J=null;const X=Kr.useDesktopContextMenu(),le=di(),ke=m.createMemo(()=>Uo(E(),_e())),Q=m.createMemo(()=>Bo(e.notificationTimeline(),{tones:T(),sources:D(),priorities:W(),dateBounds:g(),searchMatcher:ke()})),pe=m.createMemo(()=>{const A=new Set;for(const ie of e.notificationTimeline())A.add(ie.source);return Array.from(A).sort()}),Ie=m.createMemo(()=>Q().filter(A=>A.pinned===!0)),[Oe,We]=m.createSignal(0);K.useSettingsSubscription(K.notificationSettings,()=>{We(A=>A+1)});const[$e,ot]=m.createSignal(new Set),qt=m.createMemo(()=>{Oe();const A=K.notificationSettings.get();return A.timelineGroupingEnabled?Go(Q(),A.timelineGroupBy):Q().map(ie=>({type:"entry",id:ie.id,entry:ie}))}),be=A=>{Qn(ot,A)},Ot=()=>E().trim()!==""||g()!==null||T().size>0||D().size>0||W().size>0,Pt=()=>{_(""),I(null),w(new Set),P(new Set),te(new Set)},F=A=>{Qn(P,A)},ge=A=>{Qn(te,A)},N=["urgent","acknowledgment-required","default","optional","silent"],U=A=>{if(A.preventDefault(),A.stopPropagation(),X.state()!==null){X.close();return}const Ee=A.currentTarget.getBoundingClientRect(),xe=pe(),Ze={urgent:S.t("Urgent"),"acknowledgment-required":S.t("Acknowledgment required"),default:S.t("Default"),optional:S.t("Optional"),silent:S.t("Silent")};X.open(Ee.left,Ee.bottom+4,[{label:S.t("Use regex in search"),checked:()=>_e(),keepOpenOnSelect:!0,onSelect:()=>{se(we=>!we)}},{type:"separator"},{label:S.t("Filter by priority"),submenu:N.map(we=>({label:Ze[we],checked:()=>W().has(we),keepOpenOnSelect:!0,onSelect:()=>ge(we)}))},...xe.length>0?[{label:S.t("Filter by source"),submenu:xe.map(we=>({label:An(we).label,checked:()=>D().has(we),keepOpenOnSelect:!0,onSelect:()=>F(we)}))}]:[],{type:"separator"},{label:S.t("Clear advanced filters"),disabled:D().size===0&&W().size===0,onSelect:()=>{P(new Set),te(new Set)}}])},q=A=>{Qn(w,A)},ce=()=>{const A=T();return A.size===0||A.size===wu.length?S.t("All tones"):Array.from(A).join(", ")},Ae=A=>{if(A.preventDefault(),A.stopPropagation(),X.state()!==null){X.close();return}const Ee=A.currentTarget.getBoundingClientRect();X.open(Ee.left,Ee.bottom+4,[...wu.map(xe=>({label:S.t(Fs[xe]),checked:()=>T().has(xe),keepOpenOnSelect:!0,onSelect:()=>q(xe)})),{type:"separator"},...T().size===wu.length?[{label:S.t("Select none"),onSelect:()=>{w(new Set)}}]:[{label:S.t("Select all"),onSelect:()=>{w(new Set(wu))}}]])};m.onMount(()=>{const A=r.subscribeUnread(f);m.onCleanup(A)});const j=A=>u.dismissEntry(A),Ye=A=>{const ie={source:mo(A.source)?A.source:"general",priority:"urgent",recordTimeline:!1},Ee=A.tone;Ee==="error"?u.notify(Hc,{timelineMessage:A.message,options:ie}):Ee==="warning"?u.notify(Gc,{timelineMessage:A.message,options:ie}):Ee==="success"?u.notify(zc,{timelineMessage:A.message,options:ie}):u.notify($c,{timelineMessage:A.message,options:ie})},ye=A=>{const ie=o(A);ie&&s(ie.helpers.docsUrl(ie.code))},Yt=()=>r.clear(),Ke=A=>{Qn(O,A)},st=()=>{C(!0),O(new Set)},Kt=()=>{C(!1),O(new Set)},bt=()=>{O(new Set(Q().map(A=>A.id)))},rt=()=>k().size,tn=()=>{const A=k();return Q().filter(ie=>A.has(ie.id)).map(ie=>ie.id)},yt=()=>{const A=tn();A.length!==0&&(r.dismissMany(A),Kt())},xt=A=>{const ie=k(),Ee=e.notificationTimeline().filter(xe=>ie.has(xe.id));for(const xe of Ee)(xe.pinned??!1)!==A&&r.togglePin(xe.id)},ct=async A=>{const ie=Q();if(ie.length===0)return;const Ee=n.desktop.fs,Ze=`notifications-${new Date().toISOString().replace(/[:T]/g,"-").slice(0,19)}.${A}`,we=A==="csv"?[{name:"CSV",extensions:["csv"]}]:[{name:"JSON",extensions:["json"]}];try{const p=await Ee.showSaveDialog({title:S.t("Export notifications"),defaultPath:Ze,filters:we});if(!(p!=null&&p.filePath))return;const R=A==="csv"?$o(ie):Vo(ie);await Ee.writeFile(p.filePath,R),u.notify(Vc,{entryCount:ie.length})}catch(p){u.notify(Wc,{cause:p})}},Dt=()=>n.openNotificationSettings(),kt=A=>{if(A.preventDefault(),A.stopPropagation(),X.state()!==null){X.close();return}const Ee=A.currentTarget.getBoundingClientRect(),xe=Q().length===0;X.open(Ee.left,Ee.bottom+4,[{label:S.t("Export"),disabled:xe,submenu:[{label:S.t("Export as CSV"),onSelect:()=>{ct("csv")}},{label:S.t("Export as JSON"),onSelect:()=>{ct("json")}}]},{type:"separator"},{label:S.t("Notification settings…"),onSelect:Dt}])},pn=async A=>{var Ee;const ie=A.message.trim();if(ie)try{if((Ee=navigator.clipboard)!=null&&Ee.writeText)await navigator.clipboard.writeText(ie);else{const xe=t,Ze=it.createElement("textarea");Ze.value=ie,Ze.setAttribute("readonly","true"),Ze.style.position="fixed",Ze.style.opacity="0",xe.body.appendChild(Ze),Ze.select(),xe.execCommand("copy"),xe.body.removeChild(Ze)}l(A.id),J!==null&&window.clearTimeout(J),J=window.setTimeout(()=>{l(xe=>xe===A.id?null:xe),J=null},1400)}catch(xe){i.warn("Timeline entry could not be copied:",xe)}};m.onCleanup(()=>{J!==null&&window.clearTimeout(J)}),m.onMount(()=>{});const Ut=m.createMemo(()=>[{id:"select",icon:()=>a.createComponent(Se.VpSquareCheck,{get class(){return oe.notificationActionIcon}}),label:()=>S.t("Select multiple notifications"),disabled:()=>Q().length===0,onSelect:st},{id:"mark-read",icon:()=>a.createComponent(Se.VpMailOpened,{get class(){return oe.notificationActionIcon}}),label:()=>S.t("Mark all as read"),disabled:()=>h()===0,onSelect:()=>r.markSeen()},{id:"clear",icon:()=>a.createComponent(Se.VpTrash,{get class(){return oe.notificationActionIcon}}),label:()=>S.t("Clear all notifications"),disabled:()=>e.notificationTimeline().length===0,onSelect:Yt}]),Xt=m.createMemo(()=>$1(Ce(),Ut().length,kh,Lh)),nn=m.createMemo(()=>{const A=Ut();return A.slice(0,A.length-Xt())}),Lt=m.createMemo(()=>{const A=Ut();return A.slice(A.length-Xt())}),un=A=>{if(A.preventDefault(),A.stopPropagation(),X.state()!==null){X.close();return}X.openWithPlacement(Ps(A.currentTarget,{horizontal:"right"}),Lt().map(ie=>({label:ie.label(),icon:ie.icon(),disabled:ie.disabled(),onSelect:ie.onSelect})))};return a.ssr(Nh,a.ssrAttribute("class",a.escape(oe.rightRail,!0),!1),a.ssrAttribute("class",a.escape(oe.notificationPanel,!0),!1),a.escape(a.createComponent(vn.Panel.Header,{get class(){return oe.notificationPanelHeader},get children(){return[a.createComponent(Yr.PressableSurface,{type:"button",get class(){return oe.notificationPanelTitleWrap},"data-tour-target":"notifications-settings",onClick:kt,get title(){return S.t("Notification menu")},"aria-haspopup":"menu",get children(){return[a.ssr(Ah,a.ssrAttribute("class",a.escape(oe.notificationPanelTitle,!0),!1),a.escape(S.t("Notifications"))),a.createComponent(m.Show,{get when(){return h()>0},get children(){return a.createComponent(it.Badge,{tone:"danger",size:"sm",get tooltip(){return S.t("{count} unread",{count:h()})},get children(){return h()>99?"99+":h()}})}})]}}),a.ssr(Th,a.ssrAttribute("class",a.escape(oe.notificationPanelActions,!0),!1),a.escape(a.createComponent(m.Show,{get when(){return!v()},get fallback(){return a.createComponent(Fe.Button,{variant:"ghost",size:"sm",onClick:Kt,get title(){return S.t("Exit selection mode")},get children(){return S.t("Cancel")}})},get children(){return[a.createComponent(m.For,{get each(){return nn()},children:A=>a.createComponent(Fe.Button,{variant:"ghost",size:"sm",iconOnly:!0,get onClick(){return A.onSelect},get disabled(){return A.disabled()},get title(){return A.label()},get"aria-label"(){return A.label()},get children(){return A.icon()}})}),a.createComponent(m.Show,{get when(){return Lt().length>0},get children(){return a.createComponent(Fe.Button,{variant:"ghost",size:"sm",iconOnly:!0,onClick:un,get title(){return S.t("More actions")},get"aria-label"(){return S.t("More actions")},get children(){return a.createComponent(qs.VpDots,{get class(){return oe.notificationActionIcon}})}})}})]}})))]}})),a.escape(a.createComponent(m.Show,{get when(){return v()},get children(){return a.ssr(Sh,a.ssrAttribute("class",a.escape(oe.bulkActionBar,!0),!1),a.ssrAttribute("aria-label",a.escape(S.t("Bulk actions"),!0),!1),a.ssrAttribute("class",a.escape(oe.bulkActionCount,!0),!1),a.escape(S.t("{count} selected",{count:rt()})),a.escape(a.createComponent(Fe.Button,{variant:"ghost",size:"sm",onClick:bt,get disabled(){return Q().length===0||rt()===Q().length},get title(){return S.t("Select all visible")},get children(){return S.t("Select all")}})),a.escape(a.createComponent(Fe.Button,{variant:"ghost",size:"sm",onClick:()=>xt(!0),get disabled(){return rt()===0},get title(){return S.t("Pin selected")},get children(){return S.t("Pin")}})),a.escape(a.createComponent(Fe.Button,{variant:"ghost",size:"sm",onClick:()=>xt(!1),get disabled(){return rt()===0},get title(){return S.t("Unpin selected")},get children(){return S.t("Unpin")}})),a.escape(a.createComponent(Fe.Button,{variant:"ghost",size:"sm",onClick:yt,get disabled(){return rt()===0},get title(){return S.t("Delete selected")},get leadingIcon(){return a.createComponent(Se.VpTrash,{get class(){return oe.notificationActionIcon}})},get children(){return S.t("Delete")}})))}})),a.escape(a.createComponent(_o,{get class(){return oe.filterBar},get searchValue(){return E()},onSearchInput:_,get searchPlaceholder(){return S.t("Search notifications…")},get dateRange(){return g()},onDateRangeChange:I,dateRangeAlign:"end",get children(){return[a.createComponent(Fe.Button,{variant:"ghost",size:"sm",iconOnly:!0,get active(){return T().size>0},onClick:Ae,get title(){return a.memo(()=>T().size===0)()?S.t("Filter by tone"):S.t("Tone filter: {tones}",{tones:ce()})},get children(){return a.createComponent(Se.VpFilter,{get class(){return oe.notificationActionIcon}})}}),a.createComponent(Fe.Button,{variant:"ghost",size:"sm",iconOnly:!0,get active(){return D().size>0||W().size>0||_e()},onClick:U,get title(){return S.t("Advanced filters (source, priority, regex)")},get children(){return a.createComponent(Se.VpAdjustments,{get class(){return oe.notificationActionIcon}})}}),a.createComponent(m.Show,{get when(){return Ot()},get children(){return a.createComponent(Fe.Button,{variant:"ghost",size:"sm",onClick:Pt,get title(){return S.t("Clear filters")},get children(){return S.t("Clear")}})}})]}})),a.escape(a.createComponent(Yu.OverlayScrollArea,{get viewportClass(){return oe.notificationTimeline},"data-tour-target":"notifications-timeline",get children(){return[a.createComponent(Gs,{get items(){return le()}}),a.createComponent(m.Show,{get when(){return Q().length>0},get fallback(){return a.createComponent(m.Show,{get when(){return Ot()||le().length===0},get children(){return a.ssr(Rh,a.ssrAttribute("class",a.escape(oe.notificationEmpty,!0),!1),Ot()?a.escape(S.t("No notifications match the current filter.")):a.escape(S.t("No notifications yet.")))}})},get children(){return[a.createComponent(m.Show,{get when(){return Ie().length>0},get children(){return a.createComponent(vn.Panel.Header,{get class(){return oe.notificationItemTop},get children(){return a.ssr(Ch,a.ssrAttribute("class",a.escape(oe.notificationSourceLabel,!0),!1),a.escape(S.t("Pinned ({count})",{count:Ie().length})))}})}}),a.createComponent(m.For,{get each(){return qt()},children:A=>{if(A.type==="group"&&A.groupItems){const ie=()=>$e().has(A.id);return a.createComponent(vn.Disclosure,{get class(){return oe.notificationGroup},get toggleClass(){return oe.notificationGroupToggle},get open(){return ie()},onToggle:()=>be(A.id),get bodyClass(){return oe.notificationGroupBody},get title(){return[a.ssr(Ih,`${a.escape(oe.notificationToneDot,!0)} ${a.escape(po(A.groupTone??"info"),!0)}`),a.ssr(Oh,a.ssrAttribute("class",a.escape(oe.notificationItemMessage,!0),!1),a.escape(S.t('{count} from "{source}"',{count:A.groupCount??0,source:An(A.groupSource??"").label})))]},get children(){return a.createComponent(m.For,{get each(){return A.groupItems},children:Ee=>jt(Ee)})}})}return A.type==="entry"&&A.entry?jt(A.entry):null}})]}})]}})),a.escape(a.createComponent(H1,{definition:G1})));function jt(A){const ie=()=>o(A);return a.ssr(yh,`${a.escape(oe.notificationItem,!0)} ${v()&&k().has(A.id)?a.escape(oe.notificationItemSelected,!0):""}`,a.ssrAttribute("class",a.escape(oe.notificationItemTop,!0),!1),a.escape(a.createComponent(m.Show,{get when(){return v()},get children(){return a.createComponent(Wr.Checkbox,{get class(){return oe.notificationItemCheckbox},get checked(){return k().has(A.id)},onChange:()=>Ke(A.id),get ariaLabel(){return S.t("Select notification")}})}})),`${a.escape(oe.notificationToneDot,!0)} ${a.escape(po(A.tone),!0)}`,a.ssrAttribute("class",a.escape(oe.notificationItemTime,!0),!1)+a.ssrAttribute("datetime",a.escape(new Date(A.createdAt).toISOString(),!0),!1)+a.ssrAttribute("title",a.escape(Dh(A.createdAt),!0),!1),a.escape(xh(A.createdAt)),a.escape(a.createComponent(m.Show,{keyed:!0,get when(){return ie()},children:Ee=>a.createComponent(Fe.Button,{variant:"ghost",size:"2xs",iconOnly:!0,onClick:()=>{ye(A)},get title(){return S.t("Open {vendor} ({code})",{vendor:Ee.helpers.docsLinkLabel,code:Ee.helpers.formatCode(Ee.code)})},get"aria-label"(){return S.t("Open {vendor} ({code})",{vendor:Ee.helpers.docsLinkLabel,code:Ee.helpers.formatCode(Ee.code)})},get leadingIcon(){return a.createComponent(Se.VpBook,{get class(){return oe.notificationActionIcon}})}})})),a.escape(a.createComponent(Fe.Button,{variant:"ghost",size:"2xs",iconOnly:!0,onClick:()=>Ye(A),get title(){return S.t("Show as toast again")},get"aria-label"(){return S.t("Show as toast again")},get leadingIcon(){return a.createComponent(Se.VpBellRinging,{get class(){return oe.notificationActionIcon}})}})),a.escape(a.createComponent(Fe.Button,{variant:"ghost",size:"2xs",iconOnly:!0,get class(){return a.memo(()=>c()===A.id)()?oe.notificationItemCopyDone:void 0},onClick:()=>{pn(A)},get title(){return a.memo(()=>c()===A.id)()?S.t("Copied"):S.t("Copy log message")},get"aria-label"(){return a.memo(()=>c()===A.id)()?S.t("Copied"):S.t("Copy log message")},get children(){return a.createComponent(m.Show,{get when(){return c()===A.id},get fallback(){return a.createComponent(Ks.VpCopy,{get class(){return oe.notificationActionIcon}})},get children(){return a.createComponent(Ys.VpCheck,{get class(){return oe.notificationActionIcon}})}})}})),a.escape(a.createComponent(Fe.Button,{variant:"ghost",size:"2xs",iconOnly:!0,onClick:()=>{j(A.id)},get title(){return S.t("Remove notification")},get"aria-label"(){return S.t("Remove notification")},get leadingIcon(){return a.createComponent(Xs.VpMinus,{get class(){return oe.notificationActionIcon}})}})),a.ssrAttribute("class",a.escape(oe.notificationItemMessage,!0),!1),a.escape(A.message),a.ssrAttribute("class",a.escape(oe.notificationItemMeta,!0),!1),a.ssrAttribute("class",a.escape(oe.notificationSourceLabel,!0),!1)+a.ssrAttribute("title",a.escape(An(A.source).description,!0),!1),a.escape(An(A.source).label),a.escape(a.createComponent(m.Show,{get when(){return A.priority==="urgent"},get children(){return a.createComponent(it.Badge,{tone:"danger",size:"sm",children:"urgent"})}})),a.escape(a.createComponent(m.Show,{get when(){return A.priority==="silent"},get children(){return a.createComponent(it.Badge,{tone:"neutral",size:"sm",get icon(){return a.createComponent(Se.VpBellOff,{get class(){return oe.priorityBadgeIcon}})},get tooltip(){return S.t("Silent — timeline only")},children:"silent"})}})),a.escape(a.createComponent(m.Show,{get when(){return hn(A.source)},get children(){return a.createComponent(it.Badge,{tone:"warning",size:"sm",get tooltip(){return S.t("Source muted")},children:"muted"})}})))}}const vh="vk_center_5Vlx7",Mh="vk_header_vo883",Fh="vk_title_JpYEU",Ph="vk_actions_ErJgC",Uh="vk_actionIcon_-JWZ1",Bh="vk_list_YLy-l",Hh="vk_card_-fwSa",Gh="vk_cardIcon_RBj-W",zh="vk_cardBody_z8pxK",$h="vk_cardMessage_aN-yw",Vh="vk_cardMeta_XQ3my",Wh="vk_cardButtons_1PXZE",qh="vk_cardSource_Z8c0M",Yh="vk_cardTime_OXbCq",Kh="vk_cardActions_QOc1i",Ve={center:vh,header:Mh,title:Fh,actions:Ph,actionIcon:Uh,list:Bh,card:Hh,cardIcon:Gh,cardBody:zh,cardMessage:$h,cardMeta:Vh,cardButtons:Wh,cardSource:qh,cardTime:Yh,cardActions:Kh};var Xh=["<h3",">","","</h3>"],jh=["<div",">","","","","</div>"],Zh=["<section"," data-notification-center>","","</section>"],Qh=["<div"," data-notification-card-actions>","</div>"],Jh=["<article","><span",' aria-hidden="true">',"</span><div","><p",">","</p><div","><span",">","</span><time",">","</time></div>","</div><div",">","","</div></article>"];const ep={info:Se.VpInfoCircle,warning:bo.VpAlertTriangle,error:Se.VpCircleX,success:Se.VpCircleCheck};function tp(e){return new Intl.DateTimeFormat(Bn.systemFormatLocale(),{hour:"2-digit",minute:"2-digit"}).format(new Date(e))}function np(e){return new Intl.DateTimeFormat(Bn.systemFormatLocale(),{year:"numeric",month:"short",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date(e))}function zs(e){const t=Sn.useKitHost(),{notifications:n}=t,u=ni(t),r=t.log.withTag("NotificationsCenter"),i=C=>dt.openExternalUrl(t.desktop,r,C),[s,o]=m.createSignal([]),[c,l]=m.createSignal(K.notificationSettings.get().doNotDisturb),h=Kr.useDesktopContextMenu(),f=di();m.onMount(()=>{const C=n.timeline.subscribe(o);m.onCleanup(C)}),K.useSettingsSubscription(K.notificationSettings,()=>{l(K.notificationSettings.get().doNotDisturb)});const E=m.createMemo(()=>[...s()].sort((C,k)=>k.createdAt-C.createdAt)),_=C=>ep[C],g=()=>{const C=K.notificationSettings.get();K.notificationSettings.update({...C,doNotDisturb:!C.doNotDisturb}).catch(k=>{n.notify(Po,{cause:k})})},I=()=>t.openNotificationSettings(),T=C=>{const k=[...C.actions??[]],O=Hu(t.vendorErrors,C);if(O){const D=O.helpers.docsUrl(O.code);if(D){const P=`${O.helpers.formatCode(O.code)} ${O.helpers.docsLinkLabel}`;k.some(W=>W.label===P)||k.push({label:P,onClick:()=>i(D)})}}return k},w=C=>{var O;const k=C.message.trim();k&&((O=navigator.clipboard)==null||O.writeText(k).catch(D=>{r.warn("notification message could not be copied",D)}))},v=(C,k,O)=>{if(h.state()!==null){h.close();return}const D=An(O.source),P=hn(D.id),W=Hu(t.vendorErrors,O);h.open(C,k,[{label:S.t("Copy log message"),onSelect:()=>w(O)},...W?[{label:S.t("Open {vendor} ({code})",{vendor:W.helpers.docsLinkLabel,code:W.helpers.formatCode(W.code)}),onSelect:()=>i(W.helpers.docsUrl(W.code))}]:[],{type:"separator"},{label:P?S.t('Unmute "{source}"',{source:D.label}):S.t('Mute "{source}"',{source:D.label}),onSelect:()=>u.setSourceMuted(D.id,!P)},{type:"separator"},{label:S.t("Remove notification"),danger:!0,onSelect:()=>n.dismissEntry(O.id)},{label:S.t('Remove all from "{source}"',{source:D.label}),danger:!0,onSelect:()=>n.timeline.dismissBySource(D.id)}])};return a.ssr(Zh,a.ssrAttribute("class",a.escape(Ve.center,!0),!1),a.escape(a.createComponent(vn.Panel.Header,{get class(){return Ve.header},get children(){return[a.ssr(Xh,a.ssrAttribute("class",a.escape(Ve.title,!0),!1),a.escape(S.t("Notifications")),a.escape(a.createComponent(m.Show,{get when(){return E().length>0},get children(){return` (${E().length})`}}))),a.ssr(jh,a.ssrAttribute("class",a.escape(Ve.actions,!0),!1),a.escape(a.createComponent(Fe.Button,{variant:"ghost",size:"sm",iconOnly:!0,onClick:()=>n.timeline.clear(),get disabled(){return E().length===0},get title(){return S.t("Clear all notifications")},get"aria-label"(){return S.t("Clear all notifications")},get children(){return a.createComponent(Se.VpTrash,{get class(){return Ve.actionIcon}})}})),a.escape(a.createComponent(Fe.Button,{variant:"ghost",size:"sm",iconOnly:!0,get active(){return c()},onClick:g,get title(){return a.memo(()=>!!c())()?S.t("Disable Do Not Disturb"):S.t("Enable Do Not Disturb")},get"aria-label"(){return a.memo(()=>!!c())()?S.t("Disable Do Not Disturb"):S.t("Enable Do Not Disturb")},get children(){return a.createComponent(m.Show,{get when(){return c()},get fallback(){return a.createComponent(Se.VpBell,{get class(){return Ve.actionIcon}})},get children(){return a.createComponent(Se.VpBellOff,{get class(){return Ve.actionIcon}})}})}})),a.escape(a.createComponent(Fe.Button,{variant:"ghost",size:"sm",iconOnly:!0,onClick:I,get title(){return S.t("Notification settings")},get"aria-label"(){return S.t("Notification settings")},get children(){return a.createComponent(Se.VpSettings,{get class(){return Ve.actionIcon}})}})),a.escape(a.createComponent(Fe.Button,{variant:"ghost",size:"sm",iconOnly:!0,get onClick(){return e.onHide},get title(){return S.t("Hide notifications")},get"aria-label"(){return S.t("Hide notifications")},get children(){return a.createComponent(Tn.VpChevronDown,{get class(){return Ve.actionIcon}})}})))]}})),a.escape(a.createComponent(m.Show,{get when(){return f().length>0||E().length>0},get fallback(){return a.createComponent(Qs.EmptyState,{size:"sm",get title(){return S.t("No new notifications")}})},get children(){return a.createComponent(Yu.OverlayScrollArea,{get viewportClass(){return Ve.list},get children(){return[a.createComponent(Gs,{get items(){return f()}}),a.createComponent(m.For,{get each(){return E()},children:C=>{const k=An(C.source),O=T(C);return a.ssr(Jh,a.ssrAttribute("class",a.escape(Ve.card,!0),!1),a.ssrAttribute("class",a.escape(Ve.cardIcon,!0),!1)+a.ssrAttribute("data-tone",a.escape(C.tone,!0),!1),a.escape(a.createComponent(a.Dynamic,{get component(){return _(C.tone)}})),a.ssrAttribute("class",a.escape(Ve.cardBody,!0),!1),a.ssrAttribute("class",a.escape(Ve.cardMessage,!0),!1),a.escape(C.message),a.ssrAttribute("class",a.escape(Ve.cardMeta,!0),!1),a.ssrAttribute("class",a.escape(Ve.cardSource,!0),!1)+a.ssrAttribute("title",a.escape(k.description,!0),!1),a.escape(S.t("Source: {source}",{source:k.label})),a.ssrAttribute("class",a.escape(Ve.cardTime,!0),!1)+a.ssrAttribute("datetime",a.escape(new Date(C.createdAt).toISOString(),!0),!1)+a.ssrAttribute("title",a.escape(np(C.createdAt),!0),!1),a.escape(tp(C.createdAt)),a.escape(a.createComponent(m.Show,{get when(){return O.length>0},get children(){return a.ssr(Qh,a.ssrAttribute("class",a.escape(Ve.cardButtons,!0),!1),a.escape(a.createComponent(m.For,{each:O,children:D=>a.createComponent(Fe.Button,{get variant(){return D.primary?"primary":"secondary"},size:"sm",onClick:()=>D.onClick(),get children(){return D.label}})})))}})),a.ssrAttribute("class",a.escape(Ve.cardActions,!0),!1),a.escape(a.createComponent(Fe.Button,{variant:"ghost",size:"sm",iconOnly:!0,onClick:D=>{const P=D.currentTarget.getBoundingClientRect();v(P.left,P.bottom+4,C)},get title(){return S.t("More actions")},get"aria-label"(){return S.t("More actions")},get children(){return a.createComponent(Se.VpSettings,{get class(){return Ve.actionIcon}})}})),a.escape(a.createComponent(Fe.Button,{variant:"ghost",size:"sm",iconOnly:!0,onClick:()=>n.dismissEntry(C.id),get title(){return S.t("Remove notification")},get"aria-label"(){return S.t("Remove notification")},get children(){return a.createComponent(Lr.VpClose,{get class(){return Ve.actionIcon}})}})))}})]}})}})))}const up="vk_bell_tx9ag vk_buttonReset_3WpyU",rp="vk_bellIcon_w6Lmy",ip="vk_badge_2L8Eg",op="vk_progressDot_yphKG",sp="vk_centerPopover_48x5p",kn={bell:up,bellIcon:rp,badge:ip,progressDot:op,centerPopover:sp};var cp=["<span",">","</span>"],ap=["<span",' aria-hidden="true"></span>'];function lp(e){const t=Sn.useKitHost(),{timeline:n,stack:u}=t.notifications,r=t.displayOwner.register(qr.useHostWindow().window);m.onCleanup(r.dispose);const[i,s]=m.createSignal(!1),[o,c]=m.createSignal(0),[l,h]=m.createSignal(K.notificationSettings.get().doNotDisturb),[f,E]=m.createSignal(!1),_=di();let g;m.onMount(()=>{const k=n.subscribeUnread(c),O=u.subscribe(D=>E(D.some(Ku)));m.onCleanup(()=>{k(),O()})});const I=()=>f()&&r.ownsDisplay();K.useSettingsSubscription(K.notificationSettings,()=>{h(K.notificationSettings.get().doNotDisturb)});const T=k=>{var O;k!==i()&&(k&&n.markSeen(),s(k),(O=e.onOpenChange)==null||O.call(e,k))};m.onCleanup(()=>T(!1));const w=()=>i()||I()?0:_().length,v=()=>{const k=w();return l()?k>0?S.t("Notifications (Do Not Disturb on, {count} in progress)",{count:k}):S.t("Notifications (Do Not Disturb on)"):i()?S.t("Hide notifications"):k>0?S.t("Notifications ({count} in progress)",{count:k}):S.t("Show notifications")},C=()=>o()>99?"99+":String(o());return[a.createComponent(Yr.PressableSurface,{type:"button",get class(){return kn.bell},"data-status-bar-bell":!0,get"data-open"(){return i()?"true":"false"},onClick:()=>T(!i()),get title(){return v()},get"aria-label"(){return v()},"aria-haspopup":"dialog",get"aria-expanded"(){return i()},get children(){return[a.createComponent(m.Show,{get when(){return l()},get fallback(){return a.createComponent(Se.VpBell,{get class(){return kn.bellIcon}})},get children(){return a.createComponent(Se.VpBellOff,{get class(){return kn.bellIcon}})}}),a.createComponent(m.Show,{get when(){return o()>0},get fallback(){return a.createComponent(m.Show,{get when(){return w()>0},get children(){return a.ssr(ap,a.ssrAttribute("class",a.escape(kn.progressDot,!0),!1))}})},get children(){return a.ssr(cp,a.ssrAttribute("class",a.escape(kn.badge,!0),!1),a.escape(C()))}})]}}),a.createComponent(Tn.Popover,{get open(){return i()},onClose:()=>T(!1),anchor:()=>g,placement:"top-end",gap:6,role:"dialog",get ariaLabel(){return S.t("Notifications")},get class(){return kn.centerPopover},get children(){return a.createComponent(zs,{onHide:()=>T(!1)})}})]}exports.ACCEPT_PRIMARY_ACTION_NOTIFICATION=$r;exports.CLEAR_NOTIFICATION=Vr;exports.HIDE_NOTIFICATION_TOASTS=Pu;exports.LogFilterBar=_o;exports.NOTIFICATION_SOURCES=ju;exports.NOTIFICATION_SOURCE_IDS=Xr;exports.NO_NOTIFICATION_OVERLAY=Bs;exports.NotificationHost=P1;exports.NotificationItem=Wu;exports.NotificationPanel=wh;exports.NotificationService=Kc;exports.NotificationTimeline=To;exports.NotificationsCenter=zs;exports.SEVERITY_ORDER=Fr;exports.SEVERITY_TONES=So;exports.StatusBarNotificationBell=lp;exports.appWindowNotificationOverlay=Hs;exports.applyNotificationRules=Zr;exports.clearCompiledRuleRegexCache=Io;exports.compileNotificationSearchMatcher=Uo;exports.createNativeNotificationEngine=jr;exports.createNotificationPreviewRuntime=pa;exports.decideFilter=iu;exports.deleteWebhookUrl=fc;exports.deriveImplicitRemindKey=pu;exports.dismissKey=ko;exports.dismissableToastIds=Ho;exports.entryVendorMatch=Hu;exports.exportTimelineAsCsv=$o;exports.exportTimelineAsJson=Vo;exports.filterNotificationTimeline=Bo;exports.getSmtpPass=No;exports.getWebhookUrl=Ro;exports.groupTimelineEntries=Go;exports.isInQuietHours=ru;exports.isKeyDismissed=Qr;exports.isKeyRemindSuppressed=Gu;exports.isNotificationSourceId=mo;exports.isNotificationSticky=hu;exports.isOnToastStack=Ku;exports.isProgressRunning=Gt;exports.isSourceMuted=hn;exports.isSpamDropHandle=Ao;exports.listNotificationSources=Zc;exports.nextQuietHoursStart=Oo;exports.pruneOrphanWebhookSecrets=hc;exports.registerFenceAliases=pf;exports.registerNotificationCommands=Us;exports.remindLater=xo;exports.resolveCatalogPreviewPriority=ti;exports.resolveNotificationDuration=fu;exports.resolveNotificationSource=An;exports.resolveSeverityTone=Co;exports.restoreAllKeys=xc;exports.restoreKey=yc;exports.setSmtpPass=lc;exports.setSourceMuted=Do;exports.setWebhookUrl=dc;exports.shouldFireOsNative=yo;exports.toTimelineActions=eu;exports.unmuteAllSources=Dc;
|