@punica/editor-shell-classic 1.8.0 → 1.9.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/dist/index.bundle.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{emitShellEvent as e,isHeadlessScope as t,Profile as n,MODULE_NAMES as i,ModuleLifecycleState as r,COMMAND_IDS as a,parseKeyChord as s,registerShell as o}from"@punica/editor";const l="shell-classic-sidebar-dock-style",c="sidebar.width";function d(){return globalThis.punica?.extensions?.settings?.manager??null}const u=new class{#e=!1;#t="drawer";#n=!1;#i=300;#r=null;#a=null;#s=null;#o=!1;init(){this.#e||(this.#e=!0,this.#l(),this.#c(),this.#d(),this.#u())}getMode(){return this.#t}isVisible(){return this.#n}setVisible(e){this.#n=e,this.#e?this.#u():this.init()}setDismissHandler(e){this.#s=e}getWidth(){return this.#h(this.#i)}#l(){if(document.getElementById(l))return;const e=document.createElement("style");e.id=l,e.textContent="/* `:not(.layout-welcome)` keeps the welcome profile's full-bleed single-column\n grid intact: it is defined with the same specificity in the host stylesheet,\n so this injected rule would otherwise win on order alone and re-introduce a\n sidebar track the welcome layout has no element for. */\n#punica-editor[data-sidebar-mode='docked']:not(.layout-welcome) {\n grid-template-columns: 48px var(--primary-sidebar-width, 300px) 1fr;\n grid-template-areas:\n 'activityBar primarySidebar mainContent'\n 'statusBar statusBar statusBar';\n}\n#punica-editor[data-sidebar-mode='docked'][data-sidebar-collapsed='true']:not(.layout-welcome) {\n grid-template-columns: 48px 0 1fr;\n}\n#punica-editor[data-sidebar-mode='docked'] #primarySidebar {\n grid-area: primarySidebar;\n /* Containing block for the resize handle. */\n position: relative;\n top: auto;\n bottom: auto;\n left: auto;\n width: auto;\n min-width: 0;\n height: 100%;\n transform: none;\n transition: none;\n /* The resize handle draws the separator (a split gutter line), so the host's\n border would stack a second line next to it. */\n border-right: 0;\n /* The handle is positioned against this box, so this box must not scroll:\n an absolutely positioned child of a scroll container scrolls away with the\n content, which cut the separator short. `Layout` gives the primary\n sidebar's view hosts the scrolling instead. */\n overflow: hidden;\n /* In flow now, but it must still outrank the contextual drawer: that drawer\n slides in from off-screen left and has to look like it comes out from\n UNDER the sidebar, not sweep across the top of it. Same rank the host\n gives the sidebar in drawer mode; menus and popovers live at\n --zindex-popover, far above this. */\n z-index: calc(var(--zindex-drawer, 1200) + 1);\n}\n/* `:not(:empty)` is required: `#contentSidebar:empty` in the host stylesheet is\n the only thing that closes the contextual drawer, and this two-id selector\n would otherwise outrank it and pin the drawer open forever. */\n#punica-editor[data-sidebar-mode='docked'] #contentSidebar:not(:empty) {\n transform: translateX(calc(48px + var(--primary-sidebar-width, 300px)));\n}\n#punica-editor[data-sidebar-mode='docked'][data-sidebar-collapsed='true'] #contentSidebar:not(:empty) {\n transform: translateX(48px);\n}\n/* The contextual drawer's offset follows the sidebar width, and the host gives\n it a 225ms transform transition — which would make it trail behind the\n pointer during a drag. Pin it to the sidebar while resizing. */\n#punica-editor[data-sidebar-resizing='true'] #contentSidebar {\n transition: none;\n}\n/* The handle is a `punica-split` gutter, restated in plain CSS: the sidebar is\n not a split pane (it is an overlay in drawer mode), but it must not look\n different from the right sidebar's separator. Same anatomy as the component's\n shadow style — a gutter-sized invisible lane carrying a 2px line, neutral at\n rest and highlighted while hovered, focused or dragged. The component's\n `--split-*` tokens live on its own `:host`, so they cannot be inherited out\n here; the fallbacks repeat its values and a host that defines them globally\n still wins. */\n#primarySidebar-resizer {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n width: var(--split-gutter-size, 8px);\n cursor: col-resize;\n background: transparent;\n /* Above sidebar content: view headers are sticky with `z-index: 1` and an\n opaque background, and the view host is appended after this handle, so at\n equal rank the header would paint over the top of the separator line and\n leave it short. */\n z-index: 5;\n outline: none;\n}\n#primarySidebar-resizer::before {\n content: '';\n position: absolute;\n top: 0;\n bottom: 0;\n /* Flush with the sidebar edge, over the host's 1px border, so the separator\n reads as one 2px line instead of a line plus a border. */\n right: 0;\n width: 2px;\n background: var(--split-gutter-color, var(--neutral-main));\n transition: background\n var(--split-transition, 120ms cubic-bezier(0.4, 0, 0.2, 1));\n}\n#primarySidebar-resizer:hover::before,\n#primarySidebar-resizer:focus-visible::before,\n#punica-editor[data-sidebar-resizing='true'] #primarySidebar-resizer::before {\n background: var(--split-gutter-hover, var(--highlight));\n}\n",document.head.appendChild(e)}#p(){try{const e=globalThis.punica?.shell?.Layout?.manager?.getSlot?.("primarySidebar");return e?.content??null}catch{return null}}#m(){const e=this.#p();return e?.parentElement??document.getElementById("punica-editor")}#f(){try{const e=globalThis.punica?.shell?.Layout?.manager?.getSlot?.("activityBar"),t=e?.content?.getBoundingClientRect?.().width;if("number"==typeof t&&t>0)return t}catch{}return 48}#u(){const e=this.#p(),t=this.#m();e&&t&&(t.dataset.sidebarMode=this.#t,t.dataset.sidebarCollapsed=this.#n?"false":"true",e.classList.toggle("primarySidebar-hidden",!this.#n),this.#g(t),"docked"===this.#t?(this.#b(),this.#y(e)):(this.#v(),this.#n?this.#w(t):this.#b()))}#g(e){const t=e??this.#m();t&&t.style.setProperty("--primary-sidebar-width",`${this.#h(this.#i)}px`)}#h(e){const t="undefined"!=typeof window?window.innerWidth:0,n=t>0?Math.min(720,Math.max(180,.6*t)):720,i=Math.min(Math.max(e,180),n);return Math.round(i)}#c(){try{const e=d()?.get?.("system",c),t="string"==typeof e?Number(e):e;"number"==typeof t&&Number.isFinite(t)&&t>0&&(this.#i=t)}catch{}}#x(){const e=d();e?.set&&Promise.resolve(e.set("system",c,this.#h(this.#i),"global")).catch(e=>{console.warn("[SidebarDock] failed to persist sidebar width",e)})}#E(e,t){this.#i=this.#h(e),this.#g(null),t&&this.#x()}#d(){const e="undefined"!=typeof window&&"function"==typeof window.matchMedia?window.matchMedia("(min-width: 1024px)"):null;if(this.#t=e?.matches?"docked":"drawer","undefined"==typeof window)return;const t=e=>{const t=e.matches?"docked":"drawer";t!==this.#t&&(this.#t=t,this.#u())};e?.addEventListener?e.addEventListener("change",e=>t(e)):"function"==typeof e?.addListener&&e.addListener(t),window.addEventListener("resize",()=>this.#g(null))}#w(e){if(!this.#r){const e=document.createElement("div");e.id="primarySidebar-scrim",e.setAttribute("style","position:absolute;inset:0;background:transparent;z-index:calc(var(--zindex-drawer, 1200) - 1);"),e.addEventListener("pointerdown",()=>this.#s?.()),this.#r=e}this.#r.parentElement!==e&&e.appendChild(this.#r),this.#r.style.display="block"}#b(){this.#r&&(this.#r.style.display="none")}#y(e){if(!this.#a){const e=document.createElement("div");e.id="primarySidebar-resizer",e.setAttribute("role","separator"),e.setAttribute("aria-orientation","vertical"),e.setAttribute("aria-label","Resize primary side bar"),e.tabIndex=0,e.addEventListener("pointerdown",e=>this.#k(e)),e.addEventListener("keydown",e=>this.#_(e)),e.addEventListener("dblclick",()=>this.#E(300,!0)),this.#a=e}this.#a.parentElement!==e&&e.appendChild(this.#a),this.#a.style.display=this.#n?"block":"none"}#v(){const e=this.#a?.parentElement;e&&this.#a&&e.removeChild(this.#a)}#k(e){if("docked"!==this.#t||!this.#n||this.#o)return;e.preventDefault(),this.#o=!0;const t=this.#f(),n=this.#m();n&&(n.dataset.sidebarResizing="true");try{this.#a?.setPointerCapture?.(e.pointerId)}catch{}let i=null,r=null;const a="function"==typeof requestAnimationFrame?requestAnimationFrame:null,s=()=>{if(r=null,null===i)return;const e=i;i=null,this.#E(e,!1)},o=e=>{i=e.clientX-t,a?null===r&&(r=a(s)):s()},l=()=>{window.removeEventListener("pointermove",o),window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",l),null!==r&&"function"==typeof cancelAnimationFrame&&(cancelAnimationFrame(r),r=null),s(),document.documentElement.style.removeProperty("user-select"),n&&delete n.dataset.sidebarResizing,this.#o=!1,this.#x()};window.addEventListener("pointermove",o),window.addEventListener("pointerup",l),window.addEventListener("pointercancel",l),document.documentElement.style.setProperty("user-select","none")}#_(e){if("ArrowLeft"!==e.key&&"ArrowRight"!==e.key)return;e.preventDefault();const t=e.shiftKey?64:16,n="ArrowLeft"===e.key?-t:t;this.#E(this.#h(this.#i)+n,!0)}};const h="punica-status-dot-styles";function p(e,t){!function(){if("undefined"==typeof document)return;if(document.getElementById(h))return;const e=document.createElement("style");e.id=h,e.textContent=".punica-status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--text-disabled, #6d6d6d); }\n.punica-status-dot--running, .punica-status-dot--success { background: var(--success-main, #4caf50); box-shadow: 0 0 5px rgba(76,175,80,0.7); }\n.punica-status-dot--busy, .punica-status-dot--paused, .punica-status-dot--warning { background: var(--warning-main, #ff9800); }\n.punica-status-dot--stopped, .punica-status-dot--idle { background: var(--text-disabled, #6d6d6d); }\n.punica-status-dot--error { background: var(--error-main, #e5534b); }\n.punica-status-dot--pulse { animation: punica-status-pulse 1.6s ease-in-out infinite; }\n@keyframes punica-status-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }\n@media (prefers-reduced-motion: reduce) { .punica-status-dot--pulse { animation: none; } }\n",document.head.appendChild(e)}();const n=document.createElement("span");let i=`punica-status-dot punica-status-dot--${e}`;return t?.pulse&&(i+=" punica-status-dot--pulse"),t?.className&&(i+=` ${t.className}`),n.className=i,n}const m=new Set(["headline1","headline2","headline3","headline4","headline5","headline6","subtitle1","subtitle2","body1","body2","button","caption","overline"]);function f(e){return"string"==typeof e&&m.has(e)}const g=new Set(["thin","regular","medium","semi-bold","bold","extra-bold"]);function b(e){return"string"==typeof e&&g.has(e)}function y(e,t,n){const i=document.createElement("punica-button");if(e.includes("<")||e.includes("<")?i.innerHTML=e:i.textContent=e,!1!==n?.rounded&&i.setAttribute("rounded",""),i.setAttribute("size",n?.size??"small"),i.setAttribute("variant",n?.variant??"outlined"),n?.color&&i.setAttribute("color",n.color),n?.disabled&&i.setAttribute("disabled",""),n?.fullwidth&&i.setAttribute("fullwidth",""),n?.attrs)for(const[e,t]of Object.entries(n.attrs))i.setAttribute(e,t);if(n?.style&&("string"==typeof n.style?i.setAttribute("style",n.style):Object.assign(i.style,n.style)),n?.className&&(i.className=n.className),n?.icon){const e=document.createElement("punica-icon");e.setAttribute("slot","startIcon");const t=document.createElement("i");t.className=n.icon,e.appendChild(t),i.appendChild(e)}return n?.disabled||i.addEventListener("click",e=>t(e)),i}function v(e,t){const n=document.createElement("punica-typography");if(n.textContent=e,f(t?.variant)&&n.setAttribute("variant",t.variant),t?.color&&n.setAttribute("color",t.color),b(t?.fontWeight)&&n.setAttribute("fontweight",t.fontWeight),t?.attrs)for(const[e,i]of Object.entries(t.attrs))("variant"!==e||f(i))&&("fontweight"!==e||b(i))&&n.setAttribute(e,i);return t?.style&&("string"==typeof t.style?n.setAttribute("style",t.style):Object.assign(n.style,t.style)),t?.className&&(n.className=t.className),n}const w="punica-secret-adornment-styles";function x(){if("undefined"==typeof document)return;if(document.getElementById(w))return;const e=document.createElement("style");e.id=w,e.textContent="/* The key marks an input whose value is a credential. It is the Secret\n Manager's own glyph, so a token field and the panel that stores it read as\n the same thing.\n\n Decorative only: aria-hidden on the element, pointer-events off here, and no\n tab stop — there is nothing to click. `punica-input` lays its shadow root out\n as a flex row whose inner input is width:100% with the default flex-shrink,\n so without `flex: 0 0 auto` the input's greed squeezes the glyph away. */\npunica-input > .punica-secret-adornment {\n flex: 0 0 auto;\n font-size: 12px;\n color: var(--text-secondary, #8a8a8a);\n opacity: 0.75;\n pointer-events: none;\n}\n",document.head.appendChild(e)}const E="punica-search-adornment-styles";const k="punica-list-view-item-styles";const _="punica-card-styles";function C(){if("undefined"==typeof document)return;if(document.getElementById(_))return;const e=document.createElement("style");e.id=_,e.textContent='.punica-card { position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; background: var(--background-paper, rgba(255,255,255,0.03)); cursor: pointer; user-select: none; }\n.punica-card:hover { background: var(--neutral-main, rgba(127,127,127,0.14)); }\n.punica-card--selected { background: var(--neutral-main, rgba(127,127,127,0.2)); }\n.punica-card--inactive { opacity: 0.55; }\n.punica-card-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }\n.punica-card-name { font-size: 13px; font-weight: 600; color: var(--text-primary, inherit); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.punica-card-sub { font-size: 12px; color: var(--text-secondary, #8a8a8a); opacity: 0.75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.punica-card-meta { font-size: 11px; font-family: var(--font-mono, ui-monospace, monospace); font-variant-numeric: tabular-nums; color: var(--text-secondary, #8a8a8a); flex-shrink: 0; margin-left: auto; }\n.punica-card-icon { flex-shrink: 0; width: 16px; text-align: center; color: var(--text-secondary, #8a8a8a); font-size: 13px; }\n.punica-group-header { display: flex; align-items: center; gap: 6px; font-size: 9.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-secondary, #8a8a8a); opacity: 0.8; padding: 6px 4px 2px 6px; }\n.punica-group-header::after { content: ""; flex: 1; height: 1px; background: var(--divider, rgba(128,128,128,0.25)); opacity: 0.4; }\n',document.head.appendChild(e)}const A="punica-empty-state-styles";const S="punica-capability-styles";function D(e,t,n){const i=document.createElement("span");i.className=`json-view-${n}`,i.textContent=t,e.appendChild(i)}function N(e,t,n){const i=" ".repeat(n);if(null===t)return D(e,"null","null");if("boolean"==typeof t)return D(e,String(t),"boolean");if("number"==typeof t)return D(e,String(t),"number");if("string"==typeof t)return D(e,JSON.stringify(t),"string");if(Array.isArray(t))return e.appendChild(document.createTextNode("[\n")),t.forEach((r,a)=>{e.appendChild(document.createTextNode(`${i} `)),N(e,r,n+1),a<t.length-1&&e.appendChild(document.createTextNode(",")),e.appendChild(document.createTextNode("\n"))}),void e.appendChild(document.createTextNode(`${i}]`));if("object"==typeof t){const r=Object.keys(t);e.appendChild(document.createTextNode("{\n")),r.forEach((a,s)=>{e.appendChild(document.createTextNode(`${i} `)),D(e,JSON.stringify(a),"key"),e.appendChild(document.createTextNode(": ")),N(e,t[a],n+1),s<r.length-1&&e.appendChild(document.createTextNode(",")),e.appendChild(document.createTextNode("\n"))}),e.appendChild(document.createTextNode(`${i}}`))}}function T(e){const t=document.createElement("pre");return t.className="json-view cap-schema-code",N(t,e,0),t}function I(e){const t=document.createElement("div");return t.className="cap-detail-section",t.textContent=e,t}function L(e){const t=document.createElement("div");return t.className="cap-detail-meta cap-detail-note",t.textContent=e,t}function M(e,t){const n=document.createElement("span");return n.className=`cap-pill cap-pill-${t}`,n.textContent=e,n}function z(e,t,n){const i=[`source: ${n.source||"unknown"}`];t.id&&i.push(`id: ${t.id}`),t.version&&i.push(`version: ${t.version}`);const r=t.policy?.approval;r&&i.push(`approval: ${r}`),t.sideEffects&&t.sideEffects.length>0&&i.push(`sideEffects: ${t.sideEffects.join(", ")}`);const a=document.createElement("div");if(a.className="cap-detail-meta",a.textContent=i.join(" · "),e.appendChild(a),e.appendChild(I("Inputs")),t.inputs?.schema?e.appendChild(T(t.inputs.schema)):e.appendChild(L("This capability takes no input parameters.")),e.appendChild(I("Outputs")),t.outputs){const n=t.outputs;if("event"===n.kind){const t=[];n.resultEvent&&t.push(`success → ${n.resultEvent}`),n.errorEvent&&t.push(`error → ${n.errorEvent}`);const i=document.createElement("div");i.className="cap-detail-meta",i.textContent=t.length?`Emits an event on completion (${t.join(" · ")}).`:"Emits an event on completion.",e.appendChild(i)}else if("direct"===n.kind)e.appendChild(L("Returns a value directly to the caller."));else if(n.kind){const t=document.createElement("div");t.className="cap-detail-meta",t.textContent=`kind: ${n.kind}`,e.appendChild(t)}n.schema?(e.appendChild(I("Result payload")),e.appendChild(T(n.schema))):e.appendChild(L("Result payload shape is not documented."))}else e.appendChild(L("No outputs declared."));if(t.tags&&t.tags.length>0){e.appendChild(I("Tags"));const n=document.createElement("div");n.className="cap-detail-tags";for(const e of t.tags){const t=document.createElement("span");t.className="cap-tag",t.textContent=e,n.appendChild(t)}e.appendChild(n)}if(n.extraSections)for(const t of n.extraSections)e.appendChild(t);const s=document.createElement("button");s.type="button",s.className="cap-detail-raw-toggle",s.textContent="Show raw definition";const o=T(t);o.style.display="none",s.addEventListener("click",()=>{const e="none"===o.style.display;o.style.display=e?"block":"none",s.textContent=e?"Hide raw definition":"Show raw definition"}),e.appendChild(I("Raw")),e.appendChild(s),e.appendChild(o)}const F={createElement:function(e,t){const n=document.createElement(e);if(t?.attrs)for(const[e,i]of Object.entries(t.attrs))n.setAttribute(e,i);if(t?.text&&(n.textContent=t.text),t?.children&&t.children.forEach(e=>n.appendChild(e)),t?.style&&("string"==typeof t.style?n.setAttribute("style",t.style):Object.assign(n.style,t.style)),t?.className&&(n.className=t.className),t?.on)for(const[e,i]of Object.entries(t.on))n.addEventListener(e,i);return n},createSidebarCard:function(e){C();const t=document.createElement("div");let n="punica-card";if(e.inactive&&(n+=" punica-card--inactive"),e.selected&&(n+=" punica-card--selected"),t.className=n,t.dataset.nodeId=e.id,e.data)for(const[n,i]of Object.entries(e.data))t.dataset[n]=i;if(e.title&&(t.title=e.title),e.dot)t.appendChild(p(e.dot));else if(e.icon){const n=document.createElement("span");n.className="punica-card-icon";const i=document.createElement("i");i.className=e.icon,n.appendChild(i),t.appendChild(n)}const i=document.createElement("div");i.className="punica-card-main";const r=document.createElement("div");if(r.className="punica-card-name",r.textContent=e.name,i.appendChild(r),e.sub){const t=document.createElement("div");t.className="punica-card-sub",t.textContent=e.sub,i.appendChild(t)}if(t.appendChild(i),e.meta){const n=document.createElement("span");n.className="punica-card-meta",n.textContent=e.meta,t.appendChild(n)}return t},createStatusDot:p,createGroupHeader:function(e){C();const t="string"==typeof e?e:e.label,n="string"==typeof e?void 0:e.count,i=document.createElement("div");return i.className="punica-group-header",i.textContent=n?`${t} · ${n}`:t,i},createEmptyState:function(e){!function(){if("undefined"==typeof document)return;if(document.getElementById(A))return;const e=document.createElement("style");e.id=A,e.textContent=".punica-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; box-sizing: border-box; margin: auto; }\n.punica-empty-state--panel { flex: 1 1 auto; min-height: 100%; padding: 28px 16px; }\n.punica-empty-state--section { min-height: 100%; padding: 12px 14px; }\n.punica-empty-state:not(:only-child) { min-height: 0; }\n.punica-empty-state--fill { min-height: calc(100vh - 150px - var(--punica-appbar-height, 0px)); }\n.punica-empty-state-icon { font-size: 26px; line-height: 1; color: var(--text-secondary, #8a8a8a); }\n.punica-empty-state-icon--warning { color: var(--warning-main, #ff9800); }\n.punica-empty-state-icon--error { color: var(--error-main, #f44336); }\n.punica-empty-state-title { font-size: var(--font-size-body2, 0.875rem); font-weight: 600; color: var(--text-primary, inherit); max-width: 240px; }\n.punica-empty-state--section .punica-empty-state-title { font-weight: 400; color: var(--text-secondary, #8a8a8a); }\n.punica-empty-state-detail { font-size: var(--font-size-body2, 0.875rem); line-height: 1.5; max-width: 240px; color: var(--text-secondary, #8a8a8a); }\n.punica-empty-state-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }\n.punica-empty-state--section .punica-empty-state-actions { margin-top: 4px; }\n",document.head.appendChild(e)}();const t=e.variant??"panel",n=document.createElement("div");if(n.className=`punica-empty-state punica-empty-state--${t}`,e.fillViewport&&n.classList.add("punica-empty-state--fill"),e.icon&&"panel"===t){const t=document.createElement("div"),i=e.tone??"muted";t.className="muted"===i?"punica-empty-state-icon":`punica-empty-state-icon punica-empty-state-icon--${i}`;const r=document.createElement("i");r.className=e.icon,t.appendChild(r),n.appendChild(t)}const i=document.createElement("div");if(i.className="punica-empty-state-title",i.textContent=e.title,n.appendChild(i),e.detail){const t=document.createElement("div");t.className="punica-empty-state-detail",t.textContent=e.detail,n.appendChild(t)}if(e.actions&&e.actions.length>0){const t=document.createElement("div");t.className="punica-empty-state-actions",e.actions.forEach((e,n)=>{const i=e.variant??(0===n?"filled":"outlined");t.appendChild(y(e.label,()=>e.onClick(),{variant:i,..."filled"===i?{color:"primary"}:{},size:"small"}))}),n.appendChild(t)}if(e.extra){const t=Array.isArray(e.extra)?e.extra:[e.extra];for(const e of t)n.appendChild(e)}return n},formatBytes:function(e){if(!e||e<=0)return null;const t=["B","KB","MB","GB","TB"];let n=e,i=0;for(;n>=1024&&i<t.length-1;)n/=1024,i+=1;return`${n>=10||0===i?String(Math.round(n)):n.toFixed(1).replace(/\.0$/,"")} ${t[i]}`},attachContextMenu:function(e){if("undefined"==typeof document)return()=>{};const t=document.createElement("punica-context-menu");t.setAttribute("id",e.menuId),e.listEl.id&&t.setAttribute("target",`#${e.listEl.id}`);let n=null;const i=i=>{const r=i.target.closest("[data-node-id]");if(n=r,t.innerHTML="",r)for(const n of e.buildItems(r)){n.separatorBefore&&t.appendChild(document.createElement("punica-context-menu-separator"));const e=document.createElement("punica-context-menu-item");e.setAttribute("label",n.label),e.setAttribute("value",n.value),n.icon&&e.setAttribute("icon",n.icon),t.appendChild(e)}},r=t=>{const i=t?.detail?.value;i&&n&&e.onSelect(i,n)};return e.listEl.addEventListener("contextmenu",i),t.addEventListener("punica-context-menu-select",r),e.listEl.insertAdjacentElement("afterend",t),()=>{e.listEl.removeEventListener("contextmenu",i),t.removeEventListener("punica-context-menu-select",r),t.remove()}},createCapabilityDetail:function(e,t){!function(){if("undefined"==typeof document)return;if(document.getElementById(S))return;const e=document.createElement("style");e.id=S,e.textContent='.cap-row { border: 1px solid var(--divider-color, rgba(127,127,127,0.16)); border-radius: 8px; background: var(--background-paper, rgba(127,127,127,0.04)); margin-bottom: 6px; overflow: hidden; }\n.cap-row.expanded { border-color: var(--primary-main, #6ea8fe); }\n.cap-row--static { border: none; background: transparent; }\n.cap-row-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; }\n.cap-row-head:hover { background: var(--action-hover, rgba(127,127,127,0.08)); }\n.cap-row--static .cap-row-head { cursor: default; padding: 0 0 4px; }\n.cap-row--static .cap-row-head:hover { background: transparent; }\n.cap-row-chevron { flex: 0 0 auto; font-size: 11px; color: var(--text-secondary); transition: transform 0.15s ease; }\n.cap-row.expanded .cap-row-chevron { transform: rotate(90deg); }\n.cap-row-main { flex: 1 1 auto; min-width: 0; }\n.cap-row-title-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }\n.cap-row-title { font-size: 13.5px; font-weight: 600; color: var(--text-primary); }\n.cap-row-id { font-size: 11px; font-family: "SF Mono", "Courier New", monospace; color: var(--text-secondary); opacity: 0.8; }\n.cap-row-desc { margin-top: 2px; font-size: 12px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.cap-row.expanded .cap-row-desc, .cap-row--static .cap-row-desc { white-space: normal; }\n.cap-row-badges { flex: 0 0 auto; display: flex; gap: 6px; align-items: center; }\n.cap-pill { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; padding: 2px 8px; border-radius: 10px; border: 1px solid transparent; white-space: nowrap; }\n.cap-pill-risk-low { color: #5bbf7b; background: rgba(91,191,123,0.12); border-color: rgba(91,191,123,0.3); }\n.cap-pill-risk-medium { color: #e0a13a; background: rgba(224,161,58,0.12); border-color: rgba(224,161,58,0.3); }\n.cap-pill-risk-high { color: #e06c6c; background: rgba(224,108,108,0.14); border-color: rgba(224,108,108,0.35); }\n.cap-pill-approval { color: var(--text-secondary); background: var(--action-hover, rgba(127,127,127,0.14)); }\n.cap-row-detail { padding: 4px 14px 14px 34px; border-top: 1px solid var(--divider-color, rgba(127,127,127,0.12)); }\n.cap-row--static .cap-row-detail { padding: 0; border-top: none; }\n.cap-detail-section { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-secondary); margin: 12px 0 6px; }\n.cap-detail-meta { font-size: 12px; color: var(--text-secondary); font-family: "SF Mono", "Courier New", monospace; margin-bottom: 6px; }\n.cap-schema-code { background: var(--background-main, rgba(0,0,0,0.18)); border: 1px solid var(--neutral-light, rgba(127,127,127,0.2)); border-radius: 6px; padding: 10px 12px; overflow-x: auto; font-family: "SF Mono", "Courier New", monospace; font-size: 11.5px; line-height: 1.5; color: var(--text-primary); }\n.cap-detail-note { font-style: italic; opacity: 0.85; }\n.cap-detail-raw-toggle { margin: 0 0 6px; padding: 0; background: none; border: none; cursor: pointer; font-size: 12px; color: var(--text-link, var(--accent-color, #6ea8fe)); opacity: 0.85; }\n.cap-detail-raw-toggle:hover { opacity: 1; text-decoration: underline; }\n.cap-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; }\n.cap-tag { font-size: 11px; padding: 2px 8px; border-radius: 10px; border: 1px solid var(--neutral-light, rgba(127,127,127,0.24)); color: var(--text-secondary); }\n.json-view-key { color: var(--primary-main, #7ec8e3); }\n.json-view-string { color: var(--success-main, #98c379); }\n.json-view-number { color: var(--warning-main, #d19a66); }\n.json-view-boolean { color: var(--error-main, #c678dd); }\n.json-view-null { color: var(--text-placeholder, #9aa0a6); font-style: italic; }\n',document.head.appendChild(e)}();const n=t??{},i=!0===n.collapsible,r=document.createElement("div");r.className=i?"cap-row":"cap-row cap-row--static";const a=document.createElement("div");if(a.className="cap-row-head",i){a.setAttribute("role","button"),a.setAttribute("tabindex","0");const e=document.createElement("i");e.className="cap-row-chevron fa-solid fa-chevron-right",a.appendChild(e)}const s=document.createElement("div");s.className="cap-row-main";const o=document.createElement("div");o.className="cap-row-title-line";const l=document.createElement("span");if(l.className="cap-row-title",l.textContent=e.title||e.id||"(untitled)",o.appendChild(l),e.id){const t=document.createElement("span");t.className="cap-row-id",t.textContent=e.id,o.appendChild(t)}if(s.appendChild(o),e.description){const t=document.createElement("div");t.className="cap-row-desc",t.textContent=e.description,s.appendChild(t)}a.appendChild(s);const c=document.createElement("div");c.className="cap-row-badges";const d=e.policy?.risk;d&&c.appendChild(M(d,`risk-${d}`));const u=e.policy?.approval;u&&"none"!==u&&c.appendChild(M(u,"approval")),a.appendChild(c),r.appendChild(a);const h=document.createElement("div");if(h.className="cap-row-detail",r.appendChild(h),i){h.style.display=n.open?"block":"none";let t=!1;const i=()=>{t||(t=!0,z(h,e,n))};n.open&&(i(),r.classList.add("expanded"));const s=()=>{const e="none"===h.style.display;e&&i(),h.style.display=e?"block":"none",r.classList.toggle("expanded",e)};a.addEventListener("click",s),a.addEventListener("keydown",e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),s())})}else z(h,e,n);return r},createButton:y,createIconButton:function(e,t,n){const i=document.createElement("punica-icon-button"),r=n?.size??"x-small";if(i.setAttribute("size","x-small"===r?"xsmall":r),n?.variant&&i.setAttribute("variant",n.variant),n?.title&&i.setAttribute("title",n.title),n?.disabled&&i.setAttribute("disabled",""),n?.attrs)for(const[e,t]of Object.entries(n.attrs))i.setAttribute(e,t);return n?.style&&("string"==typeof n.style?i.setAttribute("style",n.style):Object.assign(i.style,n.style)),n?.className&&(i.className=n.className),e?i.innerHTML=`<i class="${e}"></i>`:n?.innerHTML&&(i.innerHTML=n.innerHTML),n?.disabled||i.addEventListener("click",e=>t(e)),i},createTypography:v,createChip:function(e,t){const n=document.createElement("punica-chip");if(n.setAttribute("size",t?.size??"small"),n.setAttribute("variant",t?.variant??"filled"),t?.color&&n.setAttribute("color",t.color),t?.icon||t?.children?.length){if(t.icon){const e=document.createElement("i");e.className=t.icon,n.appendChild(e)}e&&n.appendChild(document.createTextNode(e)),t.children?.forEach(e=>n.appendChild(e))}else n.textContent=e;if(t?.onDelete){const e=document.createElement("button");e.setAttribute("slot","delete"),e.setAttribute("type","button"),e.setAttribute("aria-label","Remove"),e.innerHTML='<i class="fa-solid fa-xmark" aria-hidden="true"></i>',e.addEventListener("click",e=>{e.stopPropagation(),t.onDelete?.(e)}),n.appendChild(e)}if(t?.attrs)for(const[e,i]of Object.entries(t.attrs))n.setAttribute(e,i);return t?.style&&("string"==typeof t.style?n.setAttribute("style",t.style):Object.assign(n.style,t.style)),t?.className&&(n.className=t.className),t?.onClick&&(n.setAttribute("role","button"),n.setAttribute("tabindex","0"),n.style.cursor="pointer",n.addEventListener("click",e=>t.onClick?.(e)),n.addEventListener("keydown",e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t.onClick?.(e))})),n},createBox:function(e){const t=document.createElement("punica-box");if(e?.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return e?.children&&e.children.forEach(e=>t.appendChild(e)),e?.style&&("string"==typeof e.style?t.setAttribute("style",e.style):Object.assign(t.style,e.style)),e?.className&&(t.className=e.className),t},createRow:function(e){const t=document.createElement("punica-row");if(e?.spacing&&t.setAttribute("spacing",e.spacing),e?.alignItems&&t.setAttribute("alignitems",e.alignItems),e?.wrap&&t.setAttribute("wrap",e.wrap),e?.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return e?.children&&e.children.forEach(e=>t.appendChild(e)),e?.style&&("string"==typeof e.style?t.setAttribute("style",e.style):Object.assign(t.style,e.style)),e?.className&&(t.className=e.className),t},createCol:function(e){const t=document.createElement("punica-col");if(void 0!==e?.xs&&t.setAttribute("xs",String(e.xs)),void 0!==e?.sm&&t.setAttribute("sm",String(e.sm)),void 0!==e?.md&&t.setAttribute("md",String(e.md)),void 0!==e?.lg&&t.setAttribute("lg",String(e.lg)),void 0!==e?.xl&&t.setAttribute("xl",String(e.xl)),e?.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return e?.children&&e.children.forEach(e=>t.appendChild(e)),e?.style&&("string"==typeof e.style?t.setAttribute("style",e.style):Object.assign(t.style,e.style)),e?.className&&(t.className=e.className),t},createInput:function(e){const t=document.createElement("punica-input");if(void 0!==e?.value&&(t.value=e.value),e?.placeholder&&t.setAttribute("placeholder",e.placeholder),e?.type&&t.setAttribute("type",e.type),e?.size&&t.setAttribute("size",e.size),e?.fullwidth&&t.setAttribute("fullwidth",""),e?.rounded&&t.setAttribute("rounded",""),e?.disabled&&t.setAttribute("disabled",""),e?.id&&t.setAttribute("id",e.id),void 0!==e?.min&&t.setAttribute("min",String(e.min)),void 0!==e?.max&&t.setAttribute("max",String(e.max)),void 0!==e?.step&&t.setAttribute("step",String(e.step)),e?.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return e?.style&&("string"==typeof e.style?t.setAttribute("style",e.style):Object.assign(t.style,e.style)),e?.className&&(t.className=e.className),"password"===t.getAttribute("type")&&(x(),t.appendChild(function(){const e=document.createElement("i");return e.className="fa-solid fa-key punica-secret-adornment",e.setAttribute("slot","endAdornment"),e.setAttribute("aria-hidden","true"),e}())),(t.hasAttribute("search")||!0===e?.search)&&(!function(){if("undefined"==typeof document)return;if(document.getElementById(E))return;const e=document.createElement("style");e.id=E,e.textContent="/* The magnifier marks a field you type into to narrow a list. Four panels\n shipped it hand-rolled first — the marketplace, Courses, ivy-nodes and the\n ivy-node marketplace — and these are their metrics, so adopting the shared\n glyph changes none of those four screens by a pixel.\n\n Decorative: aria-hidden on the element, no tab stop, and pointer-events off,\n because there is nothing to click. `punica-input` lays its shadow root out as\n a flex row whose inner input is width:100% with the default flex-shrink, so\n without `flex: 0 0 auto` the input's greed squeezes the glyph away. */\npunica-input > .punica-search-adornment {\n flex: 0 0 auto;\n padding-left: 6px;\n font-size: 11px;\n pointer-events: none;\n}\n",document.head.appendChild(e)}(),t.appendChild(function(){const e=document.createElement("i");return e.className="fa-duotone fa-solid fa-magnifying-glass punica-search-adornment",e.setAttribute("slot","startAdornment"),e.setAttribute("aria-hidden","true"),e}()),t.hasAttribute("autocomplete")||t.setAttribute("autocomplete","off")),e?.onInput&&t.addEventListener("input",t=>{const n=t?.detail?.value??t?.target?.value??"";e.onInput(n)}),e?.onChange&&t.addEventListener("change",t=>{const n=t?.detail?.value??t?.target?.value??"";e.onChange(n)}),t},createSelect:function(e){const t=document.createElement("punica-select");if(void 0!==e?.value&&(t.value=e.value),e?.size&&t.setAttribute("size",e.size),e?.fullwidth&&t.setAttribute("fullwidth",""),e?.rounded&&t.setAttribute("rounded",""),e?.disabled&&t.setAttribute("disabled",""),e?.minimumTargetWidth&&t.setAttribute("minimumtargetwidth",""),e?.id&&t.setAttribute("id",e.id),e?.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return e?.style&&("string"==typeof e.style?t.setAttribute("style",e.style):Object.assign(t.style,e.style)),e?.className&&(t.className=e.className),e?.onChange&&t.addEventListener("change",t=>{const n=t?.detail?.value??t?.target?.value??"";e.onChange(n)}),t.appendChild(function(){const e=document.createElement("punica-icon");e.setAttribute("slot","caret"),e.setAttribute("aria-hidden","true");const t=document.createElement("i");return t.className="fa-light fa-angle-down",e.appendChild(t),e}()),t},createSelectItem:function(e){const t=document.createElement("punica-select-item");if(t.setAttribute("value",e.value),e.text&&(t.textContent=e.text),e.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return t},createCheckbox:function(e){const t=document.createElement("punica-checkbox");if(void 0!==e?.checked&&(t.checked=e.checked),e?.disabled&&t.setAttribute("disabled",""),e?.id&&t.setAttribute("id",e.id),e?.label&&t.setAttribute("label",e.label),e?.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return e?.style&&("string"==typeof e.style?t.setAttribute("style",e.style):Object.assign(t.style,e.style)),e?.className&&(t.className=e.className),e?.onChange&&t.addEventListener("change",t=>{const n=t?.detail?.checked??t?.target?.checked??!1;e.onChange(n)}),t},createIcon:function(e){const t=document.createElement("punica-icon");if(e?.iconClass){const n=document.createElement("i");n.className=e.iconClass,t.appendChild(n)}else e?.innerHTML&&(t.innerHTML=e.innerHTML);if(e?.slot&&t.setAttribute("slot",e.slot),e?.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return e?.style&&("string"==typeof e.style?t.setAttribute("style",e.style):Object.assign(t.style,e.style)),e?.className&&(t.className=e.className),t},createTextarea:function(e){const t=document.createElement("punica-textarea");if(void 0!==e?.value&&(t.value=e.value),e?.placeholder&&t.setAttribute("placeholder",e.placeholder),e?.rows&&t.setAttribute("rows",String(e.rows)),e?.cols&&t.setAttribute("cols",String(e.cols)),e?.size&&t.setAttribute("size",e.size),e?.fullwidth&&t.setAttribute("fullwidth",""),e?.rounded&&t.setAttribute("rounded",""),e?.disabled&&t.setAttribute("disabled",""),e?.id&&t.setAttribute("id",e.id),e?.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return e?.style&&("string"==typeof e.style?t.setAttribute("style",e.style):Object.assign(t.style,e.style)),e?.className&&(t.className=e.className),e?.onInput&&t.addEventListener("input",t=>{const n=t?.detail?.value??t?.target?.value??"";e.onInput(n)}),e?.onChange&&t.addEventListener("change",t=>{const n=t?.detail?.value??t?.target?.value??"";e.onChange(n)}),t},createDivider:function(e){const t=document.createElement("punica-divider");if(e?.orientation&&t.setAttribute("orientation",e.orientation),e?.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return e?.style&&("string"==typeof e.style?t.setAttribute("style",e.style):Object.assign(t.style,e.style)),e?.className&&(t.className=e.className),t},createListView:function(e){const t=document.createElement("punica-list-view");if(e?.enableDivider&&t.setAttribute("enabledivider",""),e?.spacing&&t.setAttribute("spacing",e.spacing),e?.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return e?.children&&e.children.forEach(e=>t.appendChild(e)),e?.style&&("string"==typeof e.style?t.setAttribute("style",e.style):Object.assign(t.style,e.style)),e?.className&&(t.className=e.className),t},createListViewItem:function(e){!function(){if("undefined"==typeof document)return;if(document.getElementById(k))return;const e=document.createElement("style");e.id=k,e.textContent="punica-list-view-item .punica-list-item-row { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; box-sizing: border-box; padding: 4px 8px; border-radius: 6px; }\npunica-list-view-item .punica-list-item-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }\npunica-list-view-item .punica-list-item-label { font-size: 13px; font-weight: 600; color: var(--text-primary, inherit); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\npunica-list-view-item .punica-list-item-content { font-size: 12px; color: var(--text-secondary, #8a8a8a); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\npunica-list-view-item .punica-list-item-end { flex: 0 0 auto; margin-left: auto; display: flex; align-items: center; gap: 4px; }\n",document.head.appendChild(e)}();const t=document.createElement("punica-list-view-item"),n=document.createElement("div");n.className="punica-list-item-row";const i=document.createElement("div");if(i.className="punica-list-item-main",e?.label)if("string"==typeof e.label){const t=document.createElement("div");t.className="punica-list-item-label",t.textContent=e.label,i.appendChild(t)}else e.label.removeAttribute("slot"),i.appendChild(e.label);if(e?.content)if("string"==typeof e.content){const t=document.createElement("div");t.className="punica-list-item-content",t.textContent=e.content,i.appendChild(t)}else e.content.removeAttribute("slot"),i.appendChild(e.content);if(i.childNodes.length>0&&n.appendChild(i),e?.endAdornment){e.endAdornment.removeAttribute("slot");const t=document.createElement("div");t.className="punica-list-item-end",t.appendChild(e.endAdornment),n.appendChild(t)}if(t.appendChild(n),e?.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return e?.children&&e.children.forEach(e=>t.appendChild(e)),t},createPaper:function(e){const t=document.createElement("punica-paper");if(void 0!==e?.elevation&&t.setAttribute("elevation",String(e.elevation)),e?.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return e?.children&&e.children.forEach(e=>t.appendChild(e)),e?.style&&("string"==typeof e.style?t.setAttribute("style",e.style):Object.assign(t.style,e.style)),e?.className&&(t.className=e.className),t},createTab:function(e){const t=document.createElement("punica-tab");if(e?.value&&t.setAttribute("value",e.value),e?.orientation&&t.setAttribute("orientation",e.orientation),e?.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return e?.children&&e.children.forEach(e=>t.appendChild(e)),e?.style&&("string"==typeof e.style?t.setAttribute("style",e.style):Object.assign(t.style,e.style)),e?.className&&(t.className=e.className),e?.onChange&&t.addEventListener("change",t=>{const n=t?.detail?.value??t?.target?.getAttribute("value")??"";e.onChange(n)}),t},createTabItem:function(e){const t=document.createElement("punica-tab-item");if(t.setAttribute("value",e.value),e.text&&(t.textContent=e.text),e.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return e.children&&e.children.forEach(e=>t.appendChild(e)),e.style&&("string"==typeof e.style?t.setAttribute("style",e.style):Object.assign(t.style,e.style)),e.className&&(t.className=e.className),t},createTabPanel:function(e){const t=document.createElement("punica-tab-panel");if(t.setAttribute("value",e.value),e.selectedValue&&t.setAttribute("selectedvalue",e.selectedValue),e?.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return e?.children&&e.children.forEach(e=>t.appendChild(e)),e?.style&&("string"==typeof e.style?t.setAttribute("style",e.style):Object.assign(t.style,e.style)),e?.className&&(t.className=e.className),t},createBadge:function(e){const t=document.createElement("punica-badge");if(e?.text&&(t.textContent=e.text),e?.variant&&t.setAttribute("variant",e.variant),e?.color&&t.setAttribute("color",e.color),e?.size&&t.setAttribute("size",e.size),e?.title&&t.setAttribute("title",e.title),e?.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return t},createMenu:function(e){const t=document.createElement("punica-menu");if(e?.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return e?.children&&e.children.forEach(e=>t.appendChild(e)),e?.style&&("string"==typeof e.style?t.setAttribute("style",e.style):Object.assign(t.style,e.style)),e?.className&&(t.className=e.className),t},createMenuItem:function(e){const t=document.createElement("punica-menu-item");if(e?.innerHTML&&(t.innerHTML=e.innerHTML),e?.text){const n=v(e.text);t.appendChild(n)}if(e?.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return e?.onClick&&t.addEventListener("click",e.onClick),e?.style&&("string"==typeof e.style?t.setAttribute("style",e.style):Object.assign(t.style,e.style)),e?.className&&(t.className=e.className),e?.children&&e.children.forEach(e=>t.appendChild(e)),t},openMenuAt:function(e,t){const n=t.anchor,i="function"==typeof n.getBoundingClientRect?n.getBoundingClientRect():n,r=i.bottom??i.top,a=i.width,s=i.height;e.setAttribute("top",String(i.top)),e.setAttribute("left",String(i.left)),e.setAttribute("width",String(a??0)),e.setAttribute("height",String(s??0)),e.setAttribute("bottom",String(r)),e.setAttribute("placement",t.placement??"bottom"),e.setAttribute("open","true")},closeMenu:function(e){e.removeAttribute("open")},createSplit:function(e){const t=document.createElement("punica-split");if(e?.orientation&&t.setAttribute("orientation",e.orientation),e?.sizes?.length&&t.setAttribute("sizes",e.sizes.join(",")),e?.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return e?.children&&e.children.forEach(e=>t.appendChild(e)),e?.style&&("string"==typeof e.style?t.setAttribute("style",e.style):Object.assign(t.style,e.style)),e?.className&&(t.className=e.className),t},createContextMenu:function(e){const t=document.createElement("punica-context-menu");if(e.target&&t.setAttribute("target",e.target),e.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);for(const n of e.items){n.separatorBefore&&t.appendChild(document.createElement("punica-context-menu-separator"));const e=document.createElement("punica-context-menu-item");e.setAttribute("label",n.label),e.setAttribute("value",n.value),n.icon&&e.setAttribute("icon",n.icon),t.appendChild(e)}return t.addEventListener("punica-context-menu-select",t=>{const n=t?.detail?.value;n&&e.onSelect(n)}),t},createLink:function(e,t){const n=document.createElement("a");if(n.href=t.href,n.textContent=e,t.target&&(n.target=t.target),t.rel&&(n.rel=t.rel),t.download&&(n.download=t.download),t.attrs)for(const[e,i]of Object.entries(t.attrs))n.setAttribute(e,i);return t.children&&t.children.forEach(e=>n.appendChild(e)),t.style&&("string"==typeof t.style?n.setAttribute("style",t.style):Object.assign(n.style,t.style)),t.className&&(n.className=t.className),n},createToolbar:function(e){const t=document.createElement("punica-toolbar");if(e?.variant&&t.setAttribute("variant",e.variant),e?.disableGutters&&t.setAttribute("disablegutters",""),e?.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return e?.children&&e.children.forEach(e=>t.appendChild(e)),e?.style&&("string"==typeof e.style?t.setAttribute("style",e.style):Object.assign(t.style,e.style)),e?.className&&(t.className=e.className),t}};const B=e=>`activity-group-${e}`;const O={manager:new class{#C=new Map;#A=new Map;#S=null;#D=null;#N;#T;#I;#L=new Map;#M=0;#z=new Map;#F=new Map;#B(e,t,n){this.#L.has(n)||this.#L.set(n,this.#M++);const i=this.#L.get(n),r=e.querySelector("#"+n);r&&e.removeChild(r);let a=null;for(const t of Array.from(e.children)){const e=this.#L.get(t.id);if(void 0!==e&&e>i){a=t;break}}e.insertBefore(t,a)}#O(){const e=punica.shell.Layout.manager,t=e.getSlot("activityBar")??e.getSlot("primarySidebar"),n=t?.content;if(this.#N=document.createElement("div"),this.#T=document.createElement("div"),this.#I=document.createElement("div"),this.#N.setAttribute("style","display: flex; flex-direction: column; height: 100%;"),this.#T.classList.add("activityBar-primary-scroll"),this.#T.setAttribute("style","display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden;"),this.#I.setAttribute("style","display: flex; flex-direction: column; flex: 0 0 auto;"),!document.getElementById("activityBar-scroll-style")){const e=document.createElement("style");e.id="activityBar-scroll-style",e.textContent=".activityBar-primary-scroll::-webkit-scrollbar {\n width: 0;\n height: 0;\n}\n\n.activityBar-primary-scroll {\n scrollbar-width: none;\n}\n",document.head.appendChild(e)}this.#N.appendChild(this.#T),this.#N.appendChild(this.#I),n?.appendChild(this.#N)}constructor(){u.setDismissHandler(()=>this.#R())}#R(){const e=globalThis.punica?.shell?.Views?.manager,t=e?.getVisibleView?.("primarySidebar");t?e.hide(t,{kind:"user-gesture",id:"outside-click"}):this.#$(null)}setActiveByViewId(e){if(e){for(const t of this.#C.values())if(t.viewId===e)return void this.#$(t.id);for(const t of this.#A.values())if(t.viewId===e)return void this.#$(t.id)}else this.#$(null)}#j(e,t){const n=globalThis,i=()=>{const i=n.punica?.shell?.Views?.manager;return i?.reveal?.(e,{kind:"user-gesture",id:`activity-bar:${t}`})},r=n.punica?.runtime?.capabilities?.gateway;if(!r?.call)return void Promise.resolve(i()).catch(t=>{console.error("[ActivityBar] Failed to reveal view",e,t)});const a=n.punica?.kernel?.Events?.manager,s=a?.createCorrelationId?.()??`activity-bar-${Date.now()}`;r.call("shell.revealView",{viewId:e},{sessionId:"default",actor:{type:"user"},origin:{kind:"command",id:`activity-bar:${t}`},trace:{traceId:s},policy:{mode:"execute"}}).catch(e=>(console.warn("[ActivityBar] shell.revealView failed, falling back to direct reveal:",e),Promise.resolve(i()))).catch(t=>{console.error("[ActivityBar] Failed to reveal view",e,t)})}#$(e){this.#S=e;const t=punica.shell.Layout.manager;e?(this.#D=null,u.setVisible(!0)):(u.setVisible(!1),t.resetContentSidebar?.()),this.#P()}syncContentTool(e){const t=e?this.#H(e):void 0;this.#D=t?.id??null,this.#P()}#H(e){for(const t of this.#A.values())if(t.contentViewType===e)return t;for(const t of this.#C.values())if(t.contentViewType===e)return t}#P(){if(!this.#N)return;const e="extension-is-active",t=this.#D??this.#S;if(this.#N.querySelectorAll(".extension").forEach(t=>t.classList.remove(e)),!t)return;const n=this.#q(t),i=this.#N.querySelector("#"+n);i&&i.classList.add(e)}#q(e){const t=this.#V(e)?.group?.id;return t?B(t):e}#V(e){return this.#C.get(e)??this.#A.get(e)}#U(e){const t=[];for(const n of this.#C.values())n.group?.id===e&&t.push(n);for(const n of this.#A.values())n.group?.id===e&&t.push(n);return t.sort((e,t)=>(this.#L.get(e.id)??0)-(this.#L.get(t.id)??0))}#Z(e){const t=punica.shell.Layout.manager,n=globalThis.punica?.shell?.Views?.manager,i=!!e.viewId&&!!n?.getPlacement?.(e.viewId),r=()=>{if(e.command)try{punica.kernel.Commands.manager.executeCommand(e.command)}catch(t){console.error("[ActivityBar] Failed to execute command for item",e.id,e.command,t)}};if(!(i||!!e.viewId)){return e.contentViewType&&(this.#D=e.id,"drawer"===u.getMode()&&(this.#S=null,u.setVisible(!1)),punica.shell.Layout.manager.resetContentSidebar?.(),this.#P()),void r()}if(this.#S===e.id)return i&&n.hide(e.viewId,{kind:"user-gesture",id:`activity-bar:${e.id}`}),void this.#$(null);if(this.#$(e.id),i)this.#j(e.viewId,e.id);else{try{t.ensureViewHost("primarySidebar",e.viewId)}catch(t){console.error("[ActivityBar] Failed to show primary view for item",e.id,e.viewId,t)}r()}}#W(e,t,n,i){const r=F.createButton(`<punica-icon size="xlarge">${t}</punica-icon>`,i,{rounded:!0,color:"primary",variant:"text",size:"medium"});return r.setAttribute("id",e),r.setAttribute("style","margin-bottom: 4px;"),r.setAttribute("title",n),r.className="extension",r}#K(e){const t=B(e),n=this.#U(e);if(0===n.length)return this.#T?.querySelector("#"+t)?.remove(),this.#I?.querySelector("#"+t)?.remove(),this.#F.get(e)?.remove(),this.#F.delete(e),void this.#z.delete(e);const i="primary"===n[0].alignment?this.#T:this.#I,r=this.#z.get(e)??{},a=1===n.length?n[0]:null,s=this.#W(t,a?a.icon:r.icon??n[0].icon,a?a.title:r.title??e,()=>{a?this.#Z(a):this.#G(e,s)});this.#B(i,s,t);const o=this.#D??this.#S;o&&n.some(e=>e.id===o)&&s.classList.add("extension-is-active")}#G(e,t){let n=this.#F.get(e);n||(n=F.createMenu({attrs:{id:`${B(e)}-menu`}}),n.addEventListener("close",()=>n?.removeAttribute("open")),n.addEventListener("menu-item-click",e=>{const t=e?.detail?.data;n?.removeAttribute("open");const i=t?this.#V(t):void 0;i&&this.#Z(i)}),this.#N.appendChild(n),this.#F.set(e,n)),n.innerHTML="";const i=this.#D??this.#S;for(const t of this.#U(e))n.appendChild(F.createMenuItem({attrs:{"data-item":t.id,"aria-label":t.title},innerHTML:`<span style="display: flex; align-items: center; gap: 8px;"><punica-icon size="small">${t.icon}</punica-icon><span>${t.title}</span>`+(t.id===i?'<i class="fa-solid fa-check" style="margin-left: auto;" aria-hidden="true"></i>':"")+"</span>"}));F.openMenuAt(n,{anchor:t,placement:"right"})}addItem(e){this.#N||this.#O();const t="primary"===e.alignment;(t?this.#C:this.#A).set(e.id,e);const n=e.group?.id;if(n)return this.#L.has(e.id)||this.#L.set(e.id,this.#M++),this.#z.has(n)||this.#z.set(n,{title:e.group?.title,icon:e.group?.icon}),void this.#K(n);const i=this.#W(e.id,e.icon,e.title,()=>this.#Z(e)),r=t?this.#T:this.#I;this.#B(r,i,e.id);(this.#D??this.#S)===e.id&&i.classList.add("extension-is-active")}removeItem(e){const t=this.#V(e)?.group?.id;if(t)return this.#C.delete(e),this.#A.delete(e),void this.#K(t);if(this.#C.has(e)){const t=this.#T.querySelector("#"+e);t&&(this.#T.removeChild(t),this.#C.delete(e))}else if(this.#A.has(e)){const t=this.#I.querySelector("#"+e);t&&(this.#I.removeChild(t),this.#A.delete(e))}}}};const R="punica-appbar",$="shell-classic-appbar-style";function j(){try{const e=punica.kernel.Commands.manager.getAllCommands?.()??[];return new Set(e.map(e=>e.id))}catch{return new Set}}function P(e,t){return!!t&&(0===e.size||e.has(t))}function H(e){try{punica.kernel.Commands.manager.executeCommand(e)}catch(t){console.error("[AppBar] Failed to execute command",e,t)}}const q={manager:new class{#X=null;#J=null;#Y=null;#Q=null;#ee={};#te=new Map;#L=new Map;#M=0;init(e){if("undefined"==typeof document)return;this.#ee=e??{},this.#l();const t=this.#ee.height??30;document.documentElement.style.setProperty("--punica-appbar-height",`${t}px`),document.documentElement.dataset.punicaAppbar="on",this.#ne();for(const e of this.#ee.items??[])this.addItem(e);this.#ie()}addItem(e){e?.id&&(this.#te.set(e.id,e),this.#L.has(e.id)||this.#L.set(e.id,this.#M++),this.#X&&this.#re(e))}removeItem(e){this.#te.delete(e),this.#X?.querySelector(`[data-appbar-item='${e}']`)?.remove()}#l(){if(document.getElementById($))return;const e=document.createElement("style");e.id=$,e.textContent=":root {\n --punica-appbar-height: 30px;\n}\n/* The bar's room is taken from the layout container as PADDING, and the\n workbench then fills what is left with a plain `height: 100%`.\n *\n * The obvious alternative — a margin plus viewport-minus-bar arithmetic on the\n * workbench — splits one offset over two declarations that can disagree: if one of\n * them lands (a margin reset, an unresolvable var, a stale bundle) the window\n * either hides its top 30px behind the bar or leaves a 30px hole above the\n * status bar. Padding cannot come apart that way, and `* { box-sizing:\n * border-box }` in both hosts keeps the container at 100vh regardless.\n *\n * Attribute + id, so these outrank the hosts' single-id layout rules without\n * editing either host stylesheet. Rows only — the docked sidebar owns columns. */\n/* Whatever element the host mounted the layout into — `#app` in both of ours,\n but `:has(> …)` matches the real parent instead of assuming its id. */\nhtml[data-punica-appbar='on'] :has(> #punica-editor) {\n padding-top: var(--punica-appbar-height);\n}\nhtml[data-punica-appbar='on'] #punica-editor {\n height: 100%;\n margin-top: 0;\n grid-template-rows: 1fr 24px;\n /* Containing block for the sidebar drawers: the hosts position them\n `absolute; top: 0; bottom: 24px`, which without this resolves against the\n viewport — under the bar, and 24px above the WINDOW bottom rather than\n above the status bar. */\n position: relative;\n}\nhtml[data-punica-appbar='on'] #punica-editor.layout-welcome {\n grid-template-rows: 1fr;\n}\n#punica-appbar {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n height: var(--punica-appbar-height);\n display: flex;\n align-items: center;\n gap: 8px;\n padding-left: calc(8px + var(--window-inset-left, 0px));\n padding-right: calc(8px + var(--window-inset-right, 0px));\n /* The bar is the product's branded surface, which is what the `navbar` token\n family was always named for — the activity bar borrowed it and left\n `--text-navbar` unused. Branding it here also separates the bar from the\n tab strip below: both were `--background-paper`, and the divider between\n them (`--neutral-main` on `--background-paper`) resolved to 1.05:1, so the\n bar had no visible bottom edge. The lip is `--primary-dark` because a\n neutral divider reads as a bright hairline over the brand colour. */\n background-color: var(--background-navbar);\n border-bottom: 1px solid var(--primary-dark);\n color: var(--text-navbar, #fff);\n font-size: 12px;\n user-select: none;\n /* Above the sidebar drawer and its scrim; below menus and popovers. */\n z-index: calc(var(--zindex-drawer, 1200) + 3);\n /* The whole strip moves the window; every control opts back out below. */\n -webkit-app-region: drag;\n app-region: drag;\n}\n#punica-appbar .appbar-region {\n display: flex;\n align-items: center;\n gap: 4px;\n min-width: 0;\n}\n#punica-appbar .appbar-region-center {\n flex: 1;\n justify-content: center;\n}\n#punica-appbar .appbar-branding {\n display: flex;\n align-items: center;\n gap: 8px;\n min-width: 0;\n}\n#punica-appbar .appbar-mark {\n flex: none;\n display: flex;\n align-items: center;\n justify-content: center;\n /* The activity bar's column, less the bar's own left padding, so the mark\n centres on the activity bar's icon axis instead of 8px inside it. */\n width: 48px;\n margin-left: -8px;\n}\n#punica-appbar .appbar-logo {\n display: block;\n width: 18px;\n height: 18px;\n /* Part of the drag strip, so it must not swallow the press or start a\n native image drag of its own. */\n pointer-events: none;\n -webkit-user-drag: none;\n user-select: none;\n}\n#punica-appbar .appbar-title {\n max-width: 60%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-weight: 600;\n}\n#punica-appbar .appbar-action,\n#punica-appbar .appbar-avatar {\n -webkit-app-region: no-drag;\n app-region: no-drag;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 6px;\n /* 3px of bar left above and below inside the 30px strip — a 26px control\n touched the bar's edges once the bar came down from 38px. */\n height: 24px;\n margin: 0;\n padding: 0 8px;\n border: 0;\n border-radius: 4px;\n background: transparent;\n color: inherit;\n font-size: 12px;\n line-height: 1;\n cursor: pointer;\n}\n/* A white wash, which needs the surface underneath to be dark — that is now\n true of the branded bar, and was not true of `--background-paper`, where in\n the light theme this hover was invisible. */\n#punica-appbar .appbar-action:hover {\n background-color: rgb(255 255 255 / 12%);\n}\n/* Reverse-contrast chip: a `--primary-main` fill would sink into the branded\n bar, and inverting it is also the one place on the strip that reads as a\n target rather than a label. */\n#punica-appbar .appbar-avatar {\n width: 24px;\n padding: 0;\n border-radius: 50%;\n background-color: var(--white, #fff);\n color: var(--primary-main, #0870fd);\n font-weight: 600;\n text-transform: uppercase;\n}\n/* The chip is already the brightest thing on the bar, so it hovers DOWN. The\n shared white wash above would have washed it out towards the bar instead. */\n#punica-appbar .appbar-avatar:hover {\n background-color: rgb(255 255 255 / 82%);\n}\n#punica-appbar .appbar-item {\n position: relative;\n display: inline-flex;\n -webkit-app-region: no-drag;\n app-region: no-drag;\n}\n/* The dropdown is a light-DOM descendant of the bar — Helpers.createMenuItem\n appends a <punica-typography> child, and the summary below is a plain div —\n so both inherit the bar's colour. On the branded bar that is white, and the\n popup renders on a paper surface: without this reset the account menu's\n labels would be white-on-light. The bar's colour is for the BAR, not for\n everything that happens to be nested in it. */\n#punica-appbar .appbar-menu {\n color: var(--text-primary);\n}\n/* The menu header carries no rules here on purpose. punica-menu clones itself\n into document.body when it opens, so nothing scoped under #punica-appbar can\n reach the rendered rows — they arrive inline-styled from #summaryRows. */\n",document.head.appendChild(e)}#ne(){let e=document.getElementById(R);e||(e=document.createElement("div"),e.id=R,document.body.appendChild(e)),e.innerHTML="",this.#X=e,this.#J=this.#ae("appbar-region-left"),this.#Y=this.#ae("appbar-region-center"),this.#Q=this.#ae("appbar-region-right"),e.append(this.#J,this.#Y,this.#Q)}#ae(e){const t=document.createElement("div");return t.className=`appbar-region ${e}`,t}async#ie(){const e=this.#se(),t=this.#oe(e);this.#J&&t&&this.#J.prepend(t);const n=this.#ee.title??"workspace";if(!this.#Y||"none"===n)return;const i="product"===n?e:await async function(){try{const e=await(punica.runtime?.workspace?.getCurrent?.()),t=e?.rootUri;if(!t)return null;return decodeURIComponent(String(t)).replace(/[\\/]+$/,"").split(/[\\/]/).pop()||null}catch{return null}}()??e;if(!i)return;const r=document.createElement("div");r.className="appbar-title",r.textContent=i,r.title=i,this.#Y.appendChild(r)}#oe(e){const t=this.#le()?.logo;if(!t)return null;const n=document.createElement("div");n.className="appbar-branding",e&&(n.title=e);const i=document.createElement("img");i.className="appbar-logo",i.src=t,i.alt=e??"";const r=document.createElement("span");return r.className="appbar-mark",r.appendChild(i),n.appendChild(r),n}#le(){try{return punica.shell.Profile.manager.registry.getActive()?.identity?.branding}catch{return}}#se(){try{const e=punica.shell.Profile.manager.registry.getActive();return e?.identity?.branding?.productName??e?.identity?.name??null}catch{return null}}#re(e){const t="left"===(e.alignment??"right")?this.#J:this.#Q;if(!t)return;const n=document.createElement("div");n.className="appbar-item",n.dataset.appbarItem=e.id;const i=document.createElement("button");if(i.type="button",i.className="avatar"===e.kind?"appbar-avatar":"appbar-action",i.title=e.title??e.label??e.id,i.setAttribute("aria-label",i.title),"avatar"===e.kind)i.textContent=(e.label??e.title??"?").trim().charAt(0),!i.textContent&&e.icon&&(i.innerHTML=e.icon),this.#ce(i,e);else{const t=[];e.icon&&t.push(e.icon),e.label&&t.push(`<span>${e.label}</span>`),i.innerHTML=t.join("")}if(n.appendChild(i),e.menu?.length)this.#de(n,i,e);else if(e.command){const t=e.command;i.addEventListener("click",()=>H(t))}this.#B(t,n,e.id)}#de(e,t,n){const i=F.createMenu({className:"appbar-menu"}),r=new Map;e.appendChild(i);const a=e=>{const t=j();r.clear(),i.innerHTML="";for(const t of e)i.appendChild(t);for(const e of n.menu??[])P(t,e.command)&&(r.set(e.id,e),i.appendChild(F.createMenuItem({text:e.label,attrs:{"data-item":e.id,"aria-label":e.label}})));return r.size};t.addEventListener("pointerdown",e=>{e.stopPropagation(),e.preventDefault(),this.#ue(i,t,n,a)}),i.addEventListener("close",()=>i.removeAttribute("open")),i.addEventListener("menu-item-click",e=>{const t=e.detail,n=t?.data?r.get(t.data):void 0;e.stopPropagation(),i.removeAttribute("open"),n&&H(n.command)})}async#ce(e,t){const n=t.initialsCommand;if(n&&P(j(),n))try{const t=await punica.kernel.Commands.manager.executeCommand(n),i="string"==typeof t?t.trim().slice(0,2):"";i&&(e.textContent=i)}catch{}}async#ue(e,t,n,i){const r=n.summaryCommand;i(r&&P(j(),r)?await this.#he(r):[])?("avatar"===n.kind&&this.#ce(t,n),F.openMenuAt(e,{anchor:t,placement:"bottom"})):n.command&&H(n.command)}async#he(e){let t;try{t=await punica.kernel.Commands.manager.executeCommand(e)}catch{return[]}return"string"==typeof t&&t.trim()?t.trim().split("\n").map(e=>e.trim()).filter(Boolean).map((e,t)=>{const n=document.createElement("span");return n.textContent=e,n.setAttribute("style",["display:block","max-width:220px","overflow:hidden","text-overflow:ellipsis","white-space:nowrap","font-size:12px",0===t?"font-weight:600":"opacity:0.7"].join(";")),F.createMenuItem({attrs:{disabled:"","data-appbar-summary":0===t?"lead":"line"},children:[n]})}):[]}#B(e,t,n){e.querySelector(`[data-appbar-item='${n}']`)?.remove();const i=this.#L.get(n)??this.#M++;let r=null;for(const t of Array.from(e.children)){const e=t.dataset?.appbarItem,n=e?this.#L.get(e):void 0;if(void 0!==n&&n>i){r=t;break}}e.insertBefore(t,r)}}};const V={manager:new class{#C=new Map;#A=new Map;#N;#T;#I;#L=new Map;#M=0;#pe=new Map;#B(e,t,n){this.#L.has(n)||this.#L.set(n,this.#M++);const i=this.#L.get(n),r=this.#pe.get(n);r?.parentNode&&r.parentNode.removeChild(r),this.#pe.set(n,t);let a=null;for(const t of Array.from(e.children)){const e=this.#L.get(t.id);if(void 0!==e&&e>i){a=t;break}}e.insertBefore(t,a)}#O(){const e=window.punica?.shell?.Layout.manager,t=e.getSlot("statusbar"),n=t?.content;this.#N=document.createElement("div"),this.#N.className="status-bar-inner",this.#T=document.createElement("div"),this.#T.className="status-bar-group status-bar-group-primary",this.#I=document.createElement("div"),this.#I.className="status-bar-group status-bar-group-secondary",this.#N.appendChild(this.#T),this.#N.appendChild(this.#I),n?.appendChild(this.#N)}constructor(){}addItem(e){this.#N||this.#O();const t=document.createElement("button");t.type="button",t.id=e.id,t.title=e.title,t.className="status-bar-action";const n=e.command??e.capability;t.onclick=()=>{if(n)try{punica.kernel.Commands.manager.executeCommand(n)}catch(t){console.error("[Statusbar] Failed to execute command for item",e.id,n,t)}};const i=[];var r;e.icon&&i.push(`<punica-icon size="small">${e.icon}</punica-icon>`),e.label&&i.push(`<span class="status-bar-label">${e.label}</span>`),t.innerHTML=i.join(""),e.status&&t.prepend(p(e.status,{pulse:(r=e.status,"running"===r||"busy"===r),className:"status-bar-dot"}));const a="primary"===e.alignment,s=a?this.#T:this.#I;(a?this.#C:this.#A).set(e.id,e),this.#B(s,t,e.id)}removeItem(e){const t=this.#pe.get(e);t?.parentNode&&t.parentNode.removeChild(t),this.#pe.delete(e),this.#C.delete(e),this.#A.delete(e)}}},U=F,Z="1px solid var(--divider, rgba(255, 255, 255, 0.1))",W=new Map;function K(e){const t=e.split(".").pop()?.toLowerCase();return{ts:"typescript",tsx:"typescript",js:"javascript",jsx:"javascript",py:"python",json:"json",md:"markdown",html:"html",css:"css",yaml:"yaml",yml:"yaml"}[t||""]||"plaintext"}function G(e){if(0===e.length)return{root:U.createEmptyState({title:"Nothing to review",detail:"This change writes no files.",variant:"section"}),mount:()=>{},dispose:()=>{}};let t=0,n=null;const i=U.createBox({style:{flex:"1",minHeight:"0",overflowY:"auto",padding:"4px"}}),r=U.createTypography(e[0]?.path??"",{fontWeight:"bold",attrs:{truncate:"1"},style:{minWidth:"0"}}),a=U.createBox({style:{flex:"1",minHeight:"0",minWidth:"0",display:"flex",overflow:"auto"}}),s=()=>{i.innerHTML="",e.forEach((e,n)=>{const r=U.createBadge({text:e.action,variant:"filled",color:"delete"===e.action?"error":"create"===e.action?"success":"primary",size:"small"}),a=e.path.lastIndexOf("/"),l=U.createListViewItem({label:a>=0?e.path.slice(a+1):e.path,content:a>0?e.path.slice(0,a):"",endAdornment:r});n===t&&(l.style.backgroundColor="rgba(255, 255, 255, 0.1)"),l.style.cursor="pointer",l.addEventListener("click",()=>{n!==t&&(t=n,s(),o())}),i.appendChild(l)})},o=()=>{const i=e[t];if(r.textContent=i?.path??"",n){try{n.dispose()}catch{}n=null}if(a.innerHTML="",!i)return;if("delete"===i.action)return void a.appendChild(U.createTypography(`This file will be deleted: ${i.path}`,{variant:"body1",style:{padding:"10px"}}));if(!i.content)return void a.appendChild(U.createTypography("No content preview available",{variant:"body1",style:{padding:"10px"}}));const s=U.createBox({style:{flex:"1",minWidth:"0",minHeight:"0",width:"100%",overflow:"hidden"}});a.appendChild(s);const o=window.monaco||globalThis.monaco;if(o?.editor)try{return void(n=o.editor.create(s,{value:i.content||"",language:K(i.path),theme:"vs-dark",readOnly:!0,minimap:{enabled:!1},fontSize:13,fontLigatures:!0,automaticLayout:!0,scrollBeyondLastLine:!1}))}catch{}((e,t)=>{const n=document.createElement("pre");n.style.cssText="margin: 0; padding: 10px; overflow: auto; flex: 1; min-width: 0; font-family: monospace; font-size: 12px; white-space: pre-wrap; word-wrap: break-word;",n.textContent=t,e.innerHTML="",e.appendChild(n)})(s,i.content||"")},l=e=>U.createBox({style:{flex:"0 0 auto",padding:"8px",minWidth:"0",borderBottom:Z},children:[e]}),c=U.createBox({style:{flex:"0 0 300px",flexShrink:"0",maxWidth:"30%",minWidth:"180px",display:"flex",flexDirection:"column",border:Z,borderRadius:"4px",overflow:"hidden"},children:[l(U.createTypography(`Files (${e.length})`,{fontWeight:"bold"})),i]}),d=U.createBox({style:{flex:"1",minWidth:"0",display:"flex",flexDirection:"column",border:Z,borderRadius:"4px",overflow:"hidden"},children:[l(r),a]}),u=U.createBox({style:{display:"flex",gap:"12px",flex:"1",minHeight:"0"},children:[c,d]});return s(),{root:u,mount:o,dispose:()=>{if(n){try{n.dispose()}catch{}n=null}}}}async function X(e){try{await punica.shell.View.showAlert({title:"Error",message:`Failed to apply changes: ${e instanceof Error?e.message:String(e)}`,variant:"error"})}catch{}}function J(e,t,n){return W.get(t)?.(),new Promise(i=>{let r=!1,a=!1,s=null;const o=G(n.files),l=()=>{s?.(),s=null,W.get(t)===d&&W.delete(t),o.dispose()},c=(e,n)=>{r||(r=!0,l(),n&&(()=>{try{punica.shell.ContentTabs.forceClose(t)}catch{}})(),i(e))},d=()=>{r||(r=!0,l(),i(void 0))};W.set(t,d),s=function(e){try{const t=punica.kernel.Events.manager.subscribe("shell.contentTabs.didClose",t=>{const n=function(e){const t=e;if(!t||"object"!=typeof t)return;const n=("string"==typeof t.name&&t.payload?t.payload:t).path;return"string"==typeof n&&n?n:void 0}(t);n&&e(n)});return"function"==typeof t?t:null}catch{return null}}(e=>{e===t&&(n.onCancel?.(),c("cancel",!1))});const u=[U.createTypography(n.title,{variant:"subtitle1",fontWeight:"bold"})];n.summary&&u.push(U.createTypography(n.summary,{variant:"body2",style:{color:"var(--text-secondary)"}}));const h=U.createButton("Cancel",()=>{n.onCancel?.(),c("cancel",!0)},{variant:"outlined",size:"small"}),p=U.createButton("Apply Changes",()=>{r||a||(a=!0,p.setAttribute("disabled",""),h.setAttribute("disabled",""),n.onConfirm().then(()=>c("confirm",!0)).catch(async e=>{await X(e),c(void 0,!0)}))},{variant:"filled",color:"primary",size:"small"}),m=U.createBox({style:{flex:"0 0 auto",display:"flex",gap:"8px",justifyContent:"flex-end",paddingTop:"12px",borderTop:Z},children:[h,p]}),f=U.createBox({style:{height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column",gap:"12px",padding:"12px",minHeight:"0"},children:[U.createBox({style:{flex:"0 0 auto",display:"flex",flexDirection:"column",gap:"4px"},children:u}),o.root,m]});e.innerHTML="",e.appendChild(f),o.mount()})}const Y={light:{id:"light",name:"Light",variables:{"--background-main":"#ffffff","--background-paper":"#f0f0f0","--background-navbar":"#086ffd","--background-tabbar":"#e1e4e8","--background-backdrop":"rgba(0, 0, 0, 0.25)","--text-primary":"#24292f","--text-secondary":"#57606a","--text-placeholder":"#8c959f","--text-navbar":"#ffffff","--text-tabbar":"#0969da","--icon-navbar":"#ffffff","--icon-tabbar-active":"#0969da","--icon-tabbar-inactive":"#656d76","--primary-light":"#58a6ff","--primary-main":"#0969da","--primary-dark":"#0550ae","--error-light":"#ffebe9","--error-main":"#cf222e","--error-dark":"#a40e26","--warning-light":"#fff8c5","--warning-main":"#9a6700","--warning-dark":"#7d4e00","--success-light":"#dafbe1","--success-main":"#1a7f37","--success-dark":"#116329","--info-light":"#ddf4ff","--info-main":"#0969da","--info-dark":"#0550ae","--neutral-light":"#d1d9e0","--neutral-main":"#e9e9e9","--neutral-dark":"#8c959f","--disabled":"#33353a","--highlight":"#ddf4ff","--white":"#ffffff","--black":"#000000","--divider":"#d1d9e0","--focus-ring":"#0969da","--root-border-radius":"8px","--root-padding":"16px"}},dark:{id:"dark",name:"Dark",variables:{"--background-main":"#131416","--background-paper":"#2a2d33","--background-navbar":"#086ffd","--background-tabbar":"#232529","--background-backdrop":"rgba(0, 0, 0, 0.5)","--text-primary":"#f5f7fa","--text-secondary":"#c0c4cc","--text-placeholder":"#9aa0a6","--text-navbar":"#ffffff","--text-tabbar":"#0a84ff","--icon-navbar":"#ffffff","--icon-tabbar-active":"#0a84ff","--icon-tabbar-inactive":"#6b6e76","--primary-light":"#66b3ff","--primary-main":"#0a84ff","--primary-dark":"#0056b3","--error-light":"#f8d7da","--error-main":"#ff453a","--error-dark":"#c41c12","--warning-light":"#ffe28a","--warning-main":"#ffd60a","--warning-dark":"#c9a400","--success-light":"#48e09e","--success-main":"#30d158","--success-dark":"#228c3f","--info-light":"#4ac8ff","--info-main":"#64d2ff","--info-dark":"#0a84ff","--neutral-light":"#45484e","--neutral-main":"#35383f","--neutral-dark":"#25272b","--disabled":"#33353a","--highlight":"#52a8ff","--white":"#ffffff","--black":"#000000","--divider":"#3a3d44","--focus-ring":"#52a8ff","--root-border-radius":"8px","--root-padding":"16px"}}};const Q=new class{currentProfileId=null;listeners=new Set;async loadProfile(e){const t=Y[e];if(!t)return void console.warn(`[Theme] Profile not found: ${e}`);const n=document.documentElement;if(Object.entries(t.variables).forEach(([e,t])=>{n.style.setProperty(e,t)}),this.currentProfileId=e,this.listeners.forEach(t=>t(e)),"undefined"!=typeof punica&&punica.extensions?.settings?.manager)try{await punica.extensions.settings.manager.set("system","theme.profile",e,"global")}catch(e){console.error("[Theme] Failed to save profile to settings:",e)}}getCurrentProfile(){return this.currentProfileId}getProfiles(){return{...Y}}getProfile(e){return Y[e]}registerProfile(e){Y[e.id]=e}onDidChangeProfile(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}loadDefaultImmediate(){const e=Y.dark;if(!e)return void console.warn("[Theme] Default dark profile not found");const t=document.documentElement;Object.entries(e.variables).forEach(([e,n])=>{t.style.setProperty(e,n)}),this.currentProfileId="dark"}async initialize(){if("undefined"!=typeof punica&&punica.extensions?.settings?.manager)try{await punica.extensions.settings.manager.load();const e=punica.extensions.settings.manager.get("system","theme.profile");e&&"string"==typeof e&&Y[e]?await this.loadProfile(e):await this.loadProfile("dark")}catch(e){console.error("[Theme] Failed to initialize from settings:",e),await this.loadProfile("dark")}else await this.loadProfile("dark")}};function ee(e){return String(e??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function te(e){return ee(e).replace(/\r?\n/g,"<br>")}async function ne(e){return new Promise(t=>{const{title:n,message:i,html:r,buttons:a=[{label:"OK",variant:"filled",action:"ok"}],footerHtml:s,modal:o=!0,width:l,height:c,icon:d,tone:u,onMount:h}=e,p=`punica-dialog-${Date.now()}`,m=document.querySelector(`#${p}`);m?.remove();const f=document.createElement("punica-dialog");f.id=p,f.setAttribute("rounded",""),o&&f.setAttribute("modal",""),l&&f.setAttribute("width",l);const g=[`width: ${l||"440px"}`];c&&g.push(`height: ${c}`);const b=` style="${g.join("; ")}"`,y=u?`var(--${u}-main)`:"",v=d||(u?{info:"fa-circle-info",warning:"fa-triangle-exclamation",error:"fa-circle-exclamation",success:"fa-circle-check"}[u]:""),w=v&&y?`<span style="flex:0 0 auto; width:34px; height:34px; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; background: color-mix(in srgb, ${y} 16%, transparent); color:${y}; font-size:16px;"><i class="fa-duotone fa-solid ${v}"></i></span>`:"",x=r||(i?`<punica-typography style="color: var(--text-secondary); line-height: 1.6;">${te(i)}</punica-typography>`:"");f.innerHTML=`\n <punica-dialog-header>\n <punica-box style="display:flex; align-items:center; gap:12px;">\n ${w}\n <punica-typography fontweight="bold" style="color: var(--text-primary); font-size: 16px;">${ee(n)}</punica-typography>\n </punica-box>\n </punica-dialog-header>\n <punica-dialog-content${b}>\n <punica-box style="display:flex; flex-direction: column; gap: 10px; padding: 4px 2px 8px;">\n ${x}\n </punica-box>\n </punica-dialog-content>\n <punica-dialog-footer>\n ${s||`\n <punica-box style="display:flex; width:100%; box-sizing:border-box; gap: 8px; justify-content: flex-end; padding-top: 14px; border-top: 1px solid var(--divider);">\n ${a.map((e,t)=>`<punica-button id="${`${p}-btn-${t}`}" variant="${e.variant||"outlined"}" color="${e.color||"primary"}" size="small" rounded>${ee(e.label)}</punica-button>`).join("")}\n </punica-box>\n `}\n </punica-dialog-footer>\n `,document.body.appendChild(f),queueMicrotask(()=>{try{f.setAttribute("open","true"),f.open=!0,h?.(f)}catch{}});const E=e=>{try{f.remove()}catch{}t(e)};a.forEach((e,t)=>{const n=`${p}-btn-${t}`,i=f.querySelector(`#${n}`);i?.addEventListener("click",()=>{E(e.action||e.label.toLowerCase())})}),f.addEventListener?.("close",()=>{E(void 0)})})}async function ie(e){const{title:t,message:n,variant:i="info",buttonLabel:r="OK"}=e,a=t||("success"===i?"Success":"warning"===i?"Warning":"error"===i?"Error":"Information");await ne({title:a,message:n,tone:i,buttons:[{label:r,variant:"filled",color:"error"===i?"error":"primary",action:"ok"}]})}const re={showInformationMessage:async function(e,...t){return 0===t.length?void await ie({message:e,variant:"info",title:"Information"}):await ne({title:"Information",message:e,buttons:t.map(e=>({label:e,variant:"outlined",action:e}))})},showWarningMessage:async function(e,...t){return 0===t.length?void await ie({message:e,variant:"warning",title:"Warning"}):await ne({title:"Warning",message:e,buttons:t.map(e=>({label:e,variant:"outlined",action:e}))})},showErrorMessage:async function(e,...t){return 0===t.length?void await ie({message:e,variant:"error",title:"Error"}):await ne({title:"Error",message:e,buttons:t.map(e=>({label:e,variant:"outlined",action:e}))})},showDialog:ne,showConfirm:async function(e){const{title:t="Confirm",message:n,confirmLabel:i="OK",cancelLabel:r="Cancel",variant:a="info"}=e;return"confirm"===await ne({title:t,message:n,tone:a,buttons:[{label:r,variant:"text",action:"cancel"},{label:i,variant:"filled",color:"error"===a?"error":"primary",action:"confirm"}]})},showAlert:ie,showPrompt:async function(e){return new Promise(t=>{const{title:n="Prompt",message:i,placeholder:r="",defaultValue:a="",confirmLabel:s="OK",cancelLabel:o="Cancel",type:l="text"}=e,c=`punica-prompt-${Date.now()}`,d=`${c}-input`;x();let u=a;ne({title:n,html:`\n <punica-box style="display:flex; flex-direction: column; gap: 10px;">\n <punica-typography>${te(i)}</punica-typography>\n <punica-input\n id="${d}"\n type="${ee(l)}"\n placeholder="${ee(r)}"\n value="${ee(a)}"\n rounded>\n ${"password"===l?'<i class="fa-solid fa-key punica-secret-adornment" slot="endAdornment" aria-hidden="true"></i>':""}\n </punica-input>\n </punica-box>\n `,buttons:[{label:o,variant:"outlined",action:"cancel"},{label:s,variant:"filled",action:"confirm"}],onMount:e=>{const t=e.querySelector(`#${d}`);if(!t)return;const n=()=>{const e=t.value??t.getAttribute?.("value");"string"==typeof e&&(u=e)};t.addEventListener("input",n),t.addEventListener("change",n),t.addEventListener("keydown",t=>{if("Enter"===t.key){n();const t=e.querySelector(`#${c}-btn-1`);t?.click()}}),setTimeout(()=>t.focus?.(),0)}}).then(e=>{if("confirm"===e){const e=(u??"").trim();t(e?u:void 0)}else t(void 0)})})},showToast:function(e){const{title:t="",message:n="",variant:i="neutral",duration:r=1e3,dismissible:a=!0,placement:s="top-right"}=e,o=function(){let e=document.querySelector("punica-toaster");return e||(e=document.createElement("punica-toaster"),document.body.appendChild(e)),e}().shadowRoot;if(!o){if(window.Toast?.show)return window.Toast.show(e);throw new Error("punica-toaster shadow root not available")}const l=o.querySelector(`.region.${s}`)||o.querySelector(".region.top-right");if(!l)throw new Error(`Toast region not found: ${s}`);const c=document.createElement("punica-toast");return c.setAttribute("variant",i),t&&c.setAttribute("title",t),n&&c.setAttribute("message",n),r>0&&c.setAttribute("duration",String(r)),c.setAttribute("dismissible",String(a)),c.setAttribute("enter-from",s.startsWith("top")?"top":"bottom"),l.prepend(c),c},showChangesPreview:async function(e){const t=`@changes/${(e.title||"Review changes").replace(/\//g," ")}`;let n=null;try{n=punica.shell?.ContentTabs?.open?.({path:t,title:e.title,viewType:"changes-preview"})??null}catch{n=null}return n?J(n,t,e):function(e){const{title:t,summary:n,files:i,onConfirm:r,onCancel:a}=e,s=`changes-preview-body-${Date.now()}`,o=G(i),l=`\n <punica-box id="${s}" style="display: flex; flex-direction: column; gap: 12px; min-width: 800px; max-width: 1200px; height: 60vh; max-height: 80vh;"></punica-box>\n `;return new Promise(e=>{punica.shell.View.showDialog({title:t,html:l,buttons:[{label:"Cancel",variant:"outlined",action:"cancel"},{label:"Apply Changes",variant:"filled",color:"primary",action:"confirm"}],width:"90vw",onMount:e=>{const t=e.querySelector(`#${s}`);t&&(n&&t.appendChild(U.createTypography(n,{variant:"body2"})),t.appendChild(o.root),o.mount())}}).then(async t=>{if(o.dispose(),"confirm"===t)try{await r(),e("confirm")}catch(t){await X(t),e(void 0)}else a?.(),e("cancel"===t?"cancel":void 0)})})}(e)},Helpers:F,Theme:{manager:Q,profiles:Y}};function ae(){return globalThis.punica?.shell?.Layout?.manager}function se(e){const t=(globalThis.punica?.shell?.PanelContainers)?.forSlot?.(e);return t||("panel"===e?globalThis.punica?.shell?.PanelTabs:null)}function oe(){return globalThis.punica?.shell?.ActivityBar?.manager}const le={manager:new class{#me=new Map;#fe=new Map;#ge=new Map;#be=new Map;#ye=new Map;registerPlacement(t){if(!t?.viewId||!t.slot)return;const n=this.#me.get(t.viewId);n&&n.extensionName!==t.extensionName&&console.warn(`[Views] Placement collision for view "${t.viewId}" between "${n.extensionName}" and "${t.extensionName}". Keeping the last registered.`),this.#me.set(t.viewId,t),e({name:"shell.view.registered",source:"shell:views",payload:{viewId:t.viewId,slot:t.slot,extensionName:t.extensionName}})}registerProvider(e,t,n){return this.#me.has(e)||console.warn(`[Views] Provider registered for "${e}" but no placement is declared in any manifest.`+(n?` (extension: ${n})`:"")),this.#fe.set(e,t),{dispose:()=>{this.#fe.get(e)===t&&this.#fe.delete(e)}}}getPlacement(e){return this.#me.get(e)}hasProvider(e){return this.#fe.has(e)}getState(e){if(!this.#me.has(e)&&!this.#fe.has(e))return;const t=this.#me.get(e);return t&&this.#be.get(t.slot)===e?"visible":this.#ge.has(e)?"materialized":"registered"}getVisibleView(e){return this.#be.get(e)}listViews(){return Array.from(this.#me.values()).map(e=>({viewId:e.viewId,slot:e.slot,extensionName:e.extensionName,title:e.title,state:this.getState(e.viewId)??"registered"}))}async reveal(t,n,i){const r=this.#me.get(t);if(!r)throw new Error(`[Views] Cannot reveal "${t}": no placement is registered for this view.`);if(!this.#fe.has(t)){const e=globalThis.punica?.extensions?.manager;e?.activate&&await e.activate(r.extensionName,{reason:"view",trigger:t,presentation:"interactive"})}const a=ae();if(!a)throw new Error("[Views] Layout manager unavailable — cannot reveal.");const s=a.materializeViewHost(r.slot,t),o=this.#fe.get(t),l="contentSidebar"===r.slot;if(o&&(l||!this.#ge.has(t))){if(l){const e=this.#ge.get(t);try{e?.dispose()}catch(e){console.warn(`[Views] provider dispose failed for "${t}":`,e)}}const e=await o.render(s);this.#ge.set(t,e&&"function"==typeof e.dispose?e:null)}a.showView(r.slot,t),a.setSlotCollapsed?.(r.slot,!1),this.#be.set(r.slot,t);const c=se(r.slot);if(c&&(c.open?.({id:t,title:r.title??t,commandId:r.fallbackCommand??"",iconClass:r.icon,order:r.order,autoActivate:!1,toolbar:r.panelToolbar}),c.activateTabVisual?.(t),this.#ve(t,r.slot)),"primarySidebar"===r.slot)try{oe()?.setActiveByViewId?.(t)}catch{}if(!o&&r.fallbackCommand)try{(globalThis.punica?.kernel?.Commands?.manager)?.executeCommand?.(r.fallbackCommand)}catch(e){console.warn(`[Views] fallback command "${r.fallbackCommand}" for view "${t}" failed:`,e)}e({name:"shell.view.revealed",source:"shell:views",payload:{viewId:t,slot:r.slot,extensionName:r.extensionName,source:n?.kind??"host",sourceId:n?.id,focus:i?.focus??!1}})}hide(t,n){const i=this.#me.get(t);if(!i)return;if(this.#be.get(i.slot)!==t)return;const r=ae();if("contentSidebar"===i.slot?this.#we(i.slot):(r?.hideSlotViews(i.slot),r?.setSlotCollapsed?.(i.slot,!0),i.onDemand&&se(i.slot)?.close?.(t,{silent:!0})),this.#be.delete(i.slot),"primarySidebar"===i.slot)try{oe()?.setActiveByViewId?.(null)}catch{}e({name:"shell.view.hidden",source:"shell:views",payload:{viewId:t,slot:i.slot,source:n?.kind??"host",sourceId:n?.id}})}setViewStatus(e,t,n){const i=this.#me.get(e);if(!i)return void console.warn(`[Views] setViewStatus for unknown view "${e}" ignored${n?` (${n})`:""}.`);if(n&&i.extensionName&&n!==i.extensionName)return void console.warn(`[Views] "${n}" may not set the status of view "${e}" (owned by "${i.extensionName}").`);const r=t?.level??"none";"none"===r?this.#ye.delete(e):this.#ye.set(e,{level:r,detail:t?.detail}),this.#ve(e,i.slot)}getViewStatus(e){return this.#ye.get(e)}#ve(e,t){try{se(t)?.setTabStatus?.(e,this.#ye.get(e)??null)}catch{}}async moveView(t,n,i){const r=this.#me.get(t);if(!r)throw new Error(`[Views] Cannot move "${t}": no placement is registered.`);const a=r.allowedSlots??[r.slot];if(!a.includes(n))throw new Error(`[Views] "${t}" cannot be moved to "${n}". Allowed slots: ${a.join(", ")}.`);const s=r.slot;if(s===n)return;const o=this.#be.get(s)===t,l=ae(),c=se(s);c?.close?.(t,{silent:!0});const d=this.#ge.get(t);try{d?.dispose()}catch(e){console.warn(`[Views] provider dispose failed for "${t}":`,e)}this.#ge.delete(t),l?.removeViewHost?.(s,t);let u=null;if(o){this.#be.delete(s);const e=(c?.listTabs?.()??[]).filter(e=>!e.userHidden&&e.id!==t);e.length>0?u=e[0].id:l?.setSlotCollapsed?.(s,!0)}r.slot=n;try{await((globalThis.punica?.shell?.PanelLayout?.manager)?.setSlotOverride?.(t,n,r.homeSlot??s))}catch(e){console.warn(`[Views] failed to persist slot override for "${t}":`,e)}if(o?await this.reveal(t,i):r.onDemand||(se(n)?.open?.({id:t,title:r.title??t,commandId:r.fallbackCommand??"",iconClass:r.icon,order:r.order,autoActivate:!1,toolbar:r.panelToolbar}),this.#ve(t,n)),u)try{await this.reveal(u,i)}catch(e){console.warn(`[Views] failed to promote sibling "${u}" in "${s}":`,e)}e({name:"shell.view.moved",source:"shell:views",payload:{viewId:t,fromSlot:s,toSlot:n,source:i?.kind??"host",sourceId:i?.id}})}notifySlotReset(t){this.#we(t);const n=this.#be.get(t);void 0!==n&&(this.#be.delete(t),e({name:"shell.view.hidden",source:"shell:views",payload:{viewId:n,slot:t,source:"host",sourceId:"slot-reset"}}))}#we(e){const t=ae();for(const n of this.#me.values()){if(n.slot!==e)continue;const i=this.#ge.get(n.viewId);try{i?.dispose()}catch(e){console.warn(`[Views] provider dispose failed for "${n.viewId}":`,e)}this.#ge.delete(n.viewId),t?.removeViewHost?.(e,n.viewId)}}unmountByExtension(e){for(const t of this.#me.values()){if(t.extensionName!==e)continue;const n=t.viewId;this.#be.get(t.slot)===n&&this.hide(n,{kind:"host",id:"deactivate"});const i=this.#ge.get(n);try{i?.dispose()}catch(e){console.warn(`[Views] provider dispose failed for "${n}":`,e)}this.#ge.delete(n),this.#fe.delete(n);const r=ae();r?.removeViewHost?.(t.slot,n)}}}};const ce={manager:new class{#xe=[];#Ee(e,t){return e.length===t.length&&e.every((e,n)=>e.key.toLowerCase()===t[n].key.toLowerCase()&&!!e.ctrlKey==!!t[n].ctrlKey&&!!e.shiftKey==!!t[n].shiftKey&&!!e.altKey==!!t[n].altKey&&!!e.metaKey==!!t[n].metaKey)}#ke(e,t){return t.every(t=>!!t.ctrlKey===e.ctrlKey&&!!t.shiftKey===e.shiftKey&&!!t.altKey===e.altKey&&!!t.metaKey===e.metaKey&&e.key.toLowerCase()===t.key.toLowerCase())}constructor(){document.addEventListener("keydown",this.handleKeyEvent.bind(this))}#_e(e){switch(e){case"editorTextFocus":return this.#Ce();case"fileExplorerFocus":return this.#Ae("primarySidebar","file-explorer-sidebar");default:return}}#Ce(){const e="undefined"!=typeof document?document.activeElement:null;if(!e)return!1;const t=e.tagName;return"INPUT"===t||"TEXTAREA"===t||(!!e.isContentEditable||!!e.closest?.(".monaco-editor, .cm-editor"))}#Ae(e,t){if("undefined"==typeof document)return!1;if((punica.shell.Views?.manager?.getVisibleView?.(e)??null)!==t)return!1;const n=document.getElementById(e),i=document.activeElement;return!!(n&&i&&n.contains(i))}#Se(e){const t=e.when;return!t||t.split("&&").map(e=>e.trim()).filter(e=>e.length>0).every(e=>this.#De(e))}#De(e){const t=e.indexOf("==");if(-1!==t){const n=e.slice(0,t).trim(),i=e.slice(t+2).trim().replace(/^['"]|['"]$/g,"");if("view"===n){return(punica.shell.ContentTabs?.getActiveViewType?.()??null)===i}return!1}if(e.startsWith("!")){const t=this.#_e(e.slice(1).trim());return void 0!==t&&!t}return!0===this.#_e(e)}registerShortcut(e){const t=this.#xe.find(t=>this.#Ee(t.keys,e.keys)&&(t.when??"")===(e.when??""));t?console.warn(`[KeyboardShortcuts] Ignoring duplicate binding for command "${e.command}"; "${t.command}" already owns this chord${e.when?` (when: ${e.when})`:""}.`):this.#xe.push(e)}unregisterShortcut(e){this.#xe=this.#xe.filter(t=>!this.#Ee(t.keys,e))}handleKeyEvent(e){if(e.repeat)return;const t=this.#xe.find(t=>this.#ke(e,t.keys)&&this.#Se(t));t&&(e.preventDefault(),punica.kernel.Commands.manager.executeCommand(t.command))}}},de={id:"classic-editor",title:"Classic Editor",root:{type:"row",sizes:[70,30],children:[{type:"column",sizes:[80,20],children:[{type:"slot",id:"content",role:"content"},{type:"slot",id:"panel",role:"panel"}]},{type:"slot",id:"secondarySidebar",role:"secondarySidebar"}]}},ue={id:"welcome",title:"Welcome",root:{type:"row",sizes:[100],children:[{type:"column",sizes:[100],children:[{type:"slot",id:"content",role:"content"}]}]}},he=new Set(["secondarySidebar","panel"]);const pe={type:"row",sizes:[100],children:[{type:"slot",id:"content",role:"content"}]};const me={manager:new class{#Ne;#Te=new Map;#Ie=new Map;#Le;#Me=new Map;#ze=[];constructor(){this.#Ne=document.createElement("div"),this.#Ne.id="punica-editor",this.#Le=de}applyProfile(e){if(this.#Le=e,this.#Te.clear(),this.#Ie.clear(),this.#Me.clear(),this.#Fe(),this.#Ne.innerHTML="",this.#Ne.classList.remove("layout-welcome","layout-classic"),this.#Ne.classList.add("welcome"===e.id?"layout-welcome":"layout-classic"),"welcome"!==e.id){const e=document.createElement("div");e.id="activityBar",this.#Ne.appendChild(e),this.#Te.set("activityBar",{id:"activityBar",role:"activityBar",content:e})}const t=document.createElement("div");if(t.id="mainContent",t.style.height="100%",t.style.width="100%",t.style.display="flex",this.#Ne.appendChild(t),"welcome"!==e.id){const e=document.createElement("div");e.id="primarySidebar",this.#Ne.appendChild(e),this.#Te.set("primarySidebar",{id:"primarySidebar",role:"primarySidebar",content:e});const t=document.createElement("div");t.id="contentSidebar",this.#Ne.appendChild(t),this.#Te.set("contentSidebar",{id:"contentSidebar",role:"overlay",content:t})}const n=document.createElement("div");n.id="statusbar",this.#Ne.appendChild(n),this.#Te.set("statusbar",{id:"statusbar",role:"statusbar",content:n}),this.#Be(e.root,t,!0)}getActiveProfile(){return this.#Le}getSlot(e){return this.#Te.get(e)}materializeViewHost(e,t){const n=this.#Te.get(e);if(!n)throw new Error(`Layout slot "${e}" not found in active profile`);let i=this.#Ie.get(e);i||(i=new Map,this.#Ie.set(e,i));let r=n.content;if("panel"===e||"secondarySidebar"===e){const e=n.content.querySelector("[data-views-root]");e&&(r=e)}let a=i.get(t);return a?a.parentElement||r.appendChild(a):(a=document.createElement("div"),a.dataset.viewId=t,a.style.height="100%",a.style.width="100%","primarySidebar"===e&&(a.style.overflowX="hidden",a.style.overflowY="auto"),a.style.display="none",r.appendChild(a),i.set(t,a)),a}showView(e,t){"primarySidebar"===e&&this.resetContentSidebar();const n=this.#Te.get(e);if(!n)throw new Error(`Layout slot "${e}" not found in active profile`);const i=this.#Ie.get(e);if(i?.forEach((e,n)=>{e.style.display=n===t?"block":"none"}),n.content.style.display="block","primarySidebar"===e)try{punica.shell.ActivityBar.manager.setActiveByViewId?.(t)}catch(e){console.warn("[Layout] Failed to sync ActivityBar selection:",e)}}resetContentSidebar(){const e=this.#Te.get("contentSidebar");if(!e)return;const t=this.#Ie.get("contentSidebar");t&&(t.forEach(e=>{e.parentElement&&e.parentElement.removeChild(e)}),t.clear()),e.content.innerHTML="";try{punica.shell?.Views?.manager?.notifySlotReset?.("contentSidebar")}catch{}}hideSlotViews(e){const t=this.#Ie.get(e);t?.forEach(e=>{e.style.display="none"})}#Oe(e){const t=this.#Te.get(e);if(!t)return;const n=t.content.closest("punica-split");if(!n)return;let i=t.content;for(;i&&i.parentElement!==n;)i=i.parentElement;if(!i)return;const r=Array.from(n.children).filter(e=>1===e.nodeType),a=r.indexOf(i);return a<0?void 0:{split:n,index:a,count:r.length}}isSlotCollapsed(e){return this.#Me.has(e)}setSlotCollapsed(e,t){const n=this.#Oe(e);if(!n)return;const{split:i,index:r,count:a}=n;if("function"==typeof i.setSizes)if(t){if(this.#Me.has(e))return;const t=(i.getSizes?.()??[]).slice();if(t.length!==a||a<2)return;this.#Me.set(e,t);const n=t.reduce((e,t,n)=>n===r?e:e+t,0),s=t.map((e,t)=>t===r?0:n>0?e/n*100:100/(a-1));i.setSizes(s)}else{const t=this.#Me.get(e);this.#Me.delete(e),t&&t.length===a&&i.setSizes(t)}}removeViewHost(e,t){const n=this.#Ie.get(e),i=n?.get(t);i&&(i.parentElement&&i.parentElement.removeChild(i),n?.delete(t))}ensureViewHost(n,i){const r=this.materializeViewHost(n,i);return t()?(e({name:"shell.view.revealBlocked",source:"shell:views",kind:"warn",payload:{viewId:i,slot:n,api:"Layout.ensureViewHost"}}),console.warn(`[Shell] UI mutation during headless activation blocked: ensureViewHost("${n}", "${i}"). Register a ViewProvider (context.ui.registerViewProvider) and reveal via the shell.revealView capability instead.`),r):(this.showView(n,i),r)}#Be(e,t,n){if("slot"===e.type){const n=document.createElement("div");n.style.height="100%",n.style.width="100%",n.style.overflow="hidden",t.appendChild(n);const i={id:e.id,role:e.role,content:n};return void this.#Te.set(e.id,i)}const i="row"===e.type,r=F.createSplit({orientation:i?"horizontal":"vertical",sizes:e.sizes,style:{height:"100%",width:"100%"}});t.appendChild(r);const a=e.children.length;for(let t=0;t<a;t++){const n=document.createElement("div");n.style.height="100%",n.style.width="100%",r.appendChild(n),this.#Be(e.children[t],n,!1)}this.#Re(r,e)}#Re(e,t){if("slot"===t.type)return;if("undefined"==typeof ResizeObserver)return;const n=t.children.map((e,t)=>"slot"===e.type&&he.has(e.role??"")?t:-1).filter(e=>e>=0);if(!n.length||n.length===t.children.length)return;const i="row"===t.type;let r=0,a=null;const s=new ResizeObserver(()=>{const t=i?e.clientWidth:e.clientHeight;if(t<=0)return;const s=r;if(r=t,s<=0||s===t)return;const o=e,l=o.getSizes?.();if(!l?.length)return;const c=function(e,t,n,i,r=5){if(!e.length||t<=0||n<=0)return null;const a=e.map((e,t)=>t).filter(e=>!i.includes(e));if(!a.length)return null;const s=[...e];let o=0;for(const a of i){const i=e[a]/100*t,l=Math.max(r,i/n*100);s[a]=l,o+=l}const l=100-o;if(l<r*a.length)return null;const c=a.reduce((t,n)=>t+e[n],0);for(const t of a)s[t]=c>0?e[t]/c*l:l/a.length;const d=s.reduce((e,t)=>e+t,0),u=a.reduce((e,t)=>s[e]>=s[t]?e:t);return s[u]+=100-d,s}(l,s,t,n);c&&(e.toggleAttribute("no-transition",!0),o.setSizes?.(c),a&&clearTimeout(a),a=setTimeout(()=>{a=null,e.removeAttribute("no-transition")},150))});s.observe(e),this.#ze.push(s)}#Fe(){for(const e of this.#ze)e.disconnect();this.#ze=[]}applyApplicationProfile(e){const t=new Set(e.shell.activeModules),n=t.has("shell.activityBar"),i=t.has("shell.view"),r=t.has("shell.statusbar"),a=e.shell.layout,s=a?.id??e.identity.id,o=a?.root??pe;if(this.#Le={id:s,title:e.identity.name,root:o},this.#Te.clear(),this.#Ie.clear(),this.#Me.clear(),this.#Fe(),this.#Ne.innerHTML="",this.#Ne.classList.remove("layout-welcome","layout-classic"),this.#Ne.classList.add(n?"layout-classic":"layout-welcome"),this.#Ne.dataset.profileId=e.identity.id,n){const e=document.createElement("div");e.id="activityBar",this.#Ne.appendChild(e),this.#Te.set("activityBar",{id:"activityBar",role:"activityBar",content:e})}const l=document.createElement("div");if(l.id="mainContent",l.style.height="100%",l.style.width="100%",l.style.display="flex",this.#Ne.appendChild(l),i){const e=document.createElement("div");e.id="primarySidebar",this.#Ne.appendChild(e),this.#Te.set("primarySidebar",{id:"primarySidebar",role:"primarySidebar",content:e});const t=document.createElement("div");t.id="contentSidebar",this.#Ne.appendChild(t),this.#Te.set("contentSidebar",{id:"contentSidebar",role:"overlay",content:t})}if(r){const e=document.createElement("div");e.id="statusbar",this.#Ne.appendChild(e),this.#Te.set("statusbar",{id:"statusbar",role:"statusbar",content:e})}this.#Be(o,l,!0)}render(e){try{const e=window,t=e.punica?.Runtime?.runtime??e.punica?.runtime,n=t?.lifecyclePhase,i="noWorkspace"===n?ue:de,r=this.#Le.id===de.id||this.#Le.id===ue.id;this.#Ne.childElementCount?r&&this.#Le.id!==i.id&&this.applyProfile(i):this.applyProfile(i)}catch{this.#Ne.childElementCount||this.applyProfile(this.#Le)}e.appendChild(this.#Ne)}}};function fe(e){return e.split("/").pop()||e}function ge(e,t,n){return e===t?n:`${n}${e.slice(t.length)}`}const be=new class{#e=!1;#$e=null;#je=null;#Pe=new Map;#He=null;#qe(){if(this.#e)return;const e=punica.shell.Layout.manager.getSlot("content"),t=e?.content;if(!t)return void console.warn("[ContentTabs] content host not found");t.innerHTML="";const n=F.createBox({attrs:{id:"content-tabs-root"},style:{height:"100%",display:"flex",flexDirection:"column"}}),i=F.createBox({attrs:{id:"content-tabs-bar"},style:{height:"40px",flex:"0 0 auto",display:"flex",alignItems:"center",overflowX:"auto",overflowY:"hidden",backgroundColor:"var(--background-paper)"}});i.addEventListener("wheel",e=>{i.scrollWidth<=i.clientWidth||0!==e.deltaY&&(i.scrollLeft+=e.deltaY,e.preventDefault())},{passive:!1});const r=F.createTab({orientation:"horizontal",style:{width:"max-content",minWidth:"100%",flex:"0 0 auto",height:"100%"},onChange:e=>{e&&this.#Ve(e)}});i.appendChild(r);const a=document.createElement("style");a.textContent=" #content-tabs-bar::-webkit-scrollbar { height: 6px; }\n #content-tabs-bar::-webkit-scrollbar-thumb {\n background: var(--divider, rgba(255, 255, 255, 0.15));\n border-radius: 3px;\n }\n #content-tabs-bar::-webkit-scrollbar-track { background: transparent; }\n \n",i.appendChild(a);const s=F.createBox({attrs:{id:"content-tabs-panels"},style:{flex:"1",height:"calc(100% - 40px)"}});n.appendChild(i),n.appendChild(s);const o=F.createContextMenu({attrs:{id:"content-tabs-menu"},target:"#content-tabs-root",items:[{label:"Close",value:"close"},{label:"Close Others",value:"closeOthers"},{label:"Close All",value:"closeAll"}],onSelect:e=>{const t=this.#He||this.#$e&&this.#$e.getAttribute("value")||"";switch(e){case"close":t&&this.closeById(t);break;case"closeOthers":t&&this.closeOthersById(t);break;case"closeAll":this.closeAll()}this.#He=null}});n.appendChild(o),t.appendChild(n),this.#$e=r,this.#je=s,this.#e=!0}#Ve(e){if(!this.#$e||!this.#je)return;this.#$e.setAttribute("value",e);this.#$e.querySelectorAll("punica-tab-item").forEach(t=>{t.getAttribute("value")===e?(t.style.backgroundColor="var(--background-main)",t.scrollIntoView({block:"nearest",inline:"nearest"})):t.style.backgroundColor=""});this.#je.querySelectorAll("punica-tab-panel").forEach(t=>{t.setAttribute("selectedvalue",e)});try{const t=window,n=t?.punica?.kernel?.Commands?.manager;n&&"function"==typeof n.executeCommand&&n.executeCommand("file-explorer.revealFile",e)}catch(e){console.warn("[ContentTabs] Failed to notify file-explorer",e)}this.#Ue(e)}#Ue(e){try{const t=e?Array.from(this.#Pe.values()).find(t=>t.id===e):void 0;punica.shell.ActivityBar.manager.syncContentTool?.(t?.viewType??null)}catch{}}open(e){if(this.#qe(),!this.#$e||!this.#je)return null;const t=this.#Pe.get(e.path);if(t)return this.#Ve(t.id),t.container;const n=e.path,i=fe(e.path),r=e.title??i,a=r===i,s=F.createTypography(r,{attrs:{truncate:"1",title:e.path},style:{maxWidth:"150px"}}),o=F.createIconButton("fa-duotone fa-solid fa-xmark",t=>{t.stopPropagation(),this.close(e.path)},{size:"small",title:"Close"}),l=F.createElement("span",{attrs:{role:"img","aria-label":"Unsaved changes",title:"Unsaved changes"},style:{display:"none",flex:"0 0 auto",width:"6px",height:"6px",borderRadius:"50%",backgroundColor:"var(--text-primary)"}}),c=F.createRow({alignItems:"center",wrap:"nowrap",spacing:"0.5",style:{maxWidth:"200px"},children:[F.createCol({children:[s]}),F.createCol({children:[l]}),F.createCol({children:[o]})]}),d=F.createTabItem({value:n,className:"content-file-type",style:{maxWidth:"200px",flex:"0 0 auto",padding:"var(--spacing-8) var(--spacing-4) var(--spacing-8) var(--spacing-12)"},children:[c]});d.addEventListener("contextmenu",()=>{this.#He=n,this.#Ve(n)}),this.#$e.appendChild(d);const u=F.createElement("div",{style:{height:"100%",width:"100%",boxSizing:"border-box"}}),h=F.createTabPanel({value:n,selectedValue:n,style:{height:"100%",width:"100%",boxSizing:"border-box"},children:[u]});this.#je.appendChild(h);const p={id:n,path:e.path,title:r,titleFollowsPath:a,viewType:e.viewType,tabElement:d,labelElement:s,dirtyElement:l,container:u,panel:h,dirty:!1};return this.#Pe.set(e.path,p),this.#Ve(n),u}async close(e){const t=this.#Pe.get(e);t&&await this.#Ze(t)&&this.#We(t)}async closeById(e){const t=Array.from(this.#Pe.values()).find(t=>t.id===e);t&&await this.#Ze(t)&&this.#We(t)}async closeOthers(e){const t=this.#Pe.get(e);t&&await this.closeOthersById(t.id)}async closeOthersById(e){const t=Array.from(this.#Pe.values()).filter(t=>t.id!==e);for(const e of t){if(!await this.#Ze(e))return;this.#We(e)}this.#Ve(e)}async closeAll(){const e=Array.from(this.#Pe.values());for(const t of e){if(!await this.#Ze(t))return;this.#We(t)}}#We(e){if(!this.#$e||!this.#je)return;e.tabElement.parentElement===this.#$e&&this.#$e.removeChild(e.tabElement),e.panel.parentElement===this.#je&&this.#je.removeChild(e.panel),this.#Pe.delete(e.path),this.#Ke("shell.contentTabs.didClose",{path:e.path});const t=Array.from(this.#Pe.values());if(t.length>0){const e=t[t.length-1];this.#Ve(e.id)}else this.#$e.removeAttribute("value"),this.#Ue(null)}async#Ze(e){if(!e.dirty)return!0;this.#Ve(e.id);const t=e.title||e.path.split("/").pop()||e.path,n=await punica.shell.View.showDialog({title:"Unsaved changes",message:`"${t}" has unsaved changes. Do you want to save before closing?`,tone:"warning",buttons:[{label:"Cancel",variant:"text",action:"cancel"},{label:"Don't Save",variant:"outlined",action:"discard"},{label:"Save",variant:"filled",color:"primary",action:"save"}]});if("save"===n)try{const e=punica?.kernel?.Commands?.manager;return e&&"function"==typeof e.executeCommand&&await e.executeCommand("editor.saveActiveFile"),!0}catch(e){return await punica.shell.View.showAlert({title:"Save failed",message:`Could not save "${t}". The tab was left open.`,variant:"error"}),console.warn("[ContentTabs] save before close failed",e),!1}return"discard"===n}setDirty(e,t){const n=this.#Pe.get(e);if(n){n.dirty=t,this.#Ge(n);try{punica.runtime.fileOperations?.setDirty(e,t)}catch{}}}isDirty(e){return this.#Pe.get(e)?.dirty??!1}list(){return Array.from(this.#Pe.values()).map(e=>({path:e.path,title:e.title,viewType:e.viewType,dirty:e.dirty}))}rename(e,t){if(!e||!t||e===t)return;const n=this.#Xe(e);if(0===n.length)return;const i=this.#$e?.getAttribute("value")??null;let r=null;for(const a of n){const n=ge(a.path,e,t),s=a.id===i;this.#Pe.delete(a.path),a.path=n,a.id=n,a.titleFollowsPath&&(a.title=fe(n)),a.tabElement.setAttribute("value",n),a.panel.setAttribute("value",n),a.labelElement.setAttribute("title",n),this.#Ge(a),this.#Pe.set(n,a),s&&(r=n)}r&&this.#Ve(r),this.#Ke("shell.contentTabs.didRename",{oldPath:e,newPath:t})}forceClose(e){for(const t of this.#Xe(e))this.#We(t)}#Xe(e){return Array.from(this.#Pe.values()).filter(t=>t.path===e||t.path.startsWith(`${e}/`))}#Ge(e){e.labelElement.textContent=e.title||fe(e.path),e.dirtyElement.style.display=e.dirty?"inline-block":"none"}#Ke(e,t){try{punica.kernel.Events.manager.publish(e,t)}catch{}}getActivePath(){if(!this.#$e)return null;const e=this.#$e.getAttribute("value");if(!e)return null;const t=Array.from(this.#Pe.values()).find(t=>t.id===e);return t?.path??null}getActiveViewType(){if(!this.#$e)return null;const e=this.#$e.getAttribute("value");if(!e)return null;const t=Array.from(this.#Pe.values()).find(t=>t.id===e);return t?.viewType??null}};const ye="punica-tabbed-container-style",ve={panel:"bottom panel",secondarySidebar:"right sidebar"};let we=null;const xe=[];class Ee{slotId;orientation;#e=!1;#m=null;#$e=null;#Je=null;#Ye=null;#Qe=null;#et=null;#tt=null;#nt=null;#it=!1;#rt=new Set;#at=new Map;#S=null;#st="both";#ot=null;#lt=!1;#ct=!1;constructor(e,t){this.slotId=e,this.orientation=t,xe.push(this)}#dt(e){return`${this.slotId}-${e}`}get#ut(){return"horizontal"===this.orientation}#ht(){return globalThis.punica?.shell?.PanelLayout?.manager??null}#qe(){if(this.#e)return;const e=punica.shell.Layout.manager.getSlot(this.slotId),t=e?.content;if(!t)return void console.warn(`[TabbedContainer] host not found for slot "${this.slotId}"`);t.innerHTML="";const n="vertical"===this.orientation?"icon":"both";this.#st=this.#ht()?.getDisplayMode?.(this.slotId)??n,this.#l();const i=F.createBox({attrs:{id:this.#dt("tabs-root"),"data-tabbed-container":"","data-orientation":this.orientation},style:{height:"100%",width:"100%",display:"flex",flexDirection:this.#ut?"column":"row"}}),r=F.createBox({style:{display:"flex",alignItems:"center",backgroundColor:"var(--background-paper)",...this.#ut?{height:"32px",flexDirection:"row"}:{width:"44px",height:"100%",flexDirection:"column"}}}),a=F.createTab({orientation:this.orientation,attrs:{role:"tablist"},style:{flex:"1 1 auto",overflow:"hidden",backgroundColor:"var(--background-paper)",...this.#ut?{minWidth:"0",height:"100%"}:{minHeight:"0",width:"100%",display:"flex",flexDirection:"column"}},onChange:e=>{e&&this.#pt(e,this.#dt("tab"))}});r.addEventListener("contextmenu",e=>{this.#mt(e)});const s=F.createIconButton("fa-solid fa-ellipsis",()=>{this.#ft()},{size:"x-small",title:"More tabs",attrs:{id:this.#dt("tab-overflow-btn"),"aria-label":"More tabs"}});s.style.flex="0 0 auto",s.style.display="none";const o=F.createIconButton("fa-solid fa-plus",()=>{this.#gt()},{size:"x-small",title:"Show hidden tabs",attrs:{id:this.#dt("tab-show-hidden-btn"),"aria-label":"Show hidden tabs"}});o.style.flex="0 0 auto",o.style.display="none";const l=F.createBox({attrs:{id:this.#dt("toolbar-area")},style:{flex:"0 0 auto",display:"flex",alignItems:"center",padding:"0 var(--spacing-8)"}});r.appendChild(a),r.appendChild(o),r.appendChild(s),r.appendChild(l);const c=F.createMenu({attrs:{id:this.#dt("tab-overflow-menu")}});c.addEventListener("close",()=>{c.removeAttribute("open")}),c.addEventListener("menu-item-click",e=>{const t=e?.detail?.data;t&&(e.stopPropagation?.(),c.removeAttribute("open"),this.#pt(t,this.#dt("tab-overflow")))});const d=F.createMenu({attrs:{id:this.#dt("tab-context-menu")}});d.addEventListener("close",()=>{d.removeAttribute("open")}),d.addEventListener("menu-item-click",e=>{const t=e?.detail?.data;d.removeAttribute("open"),t&&this.#bt(t)});const u=document.createElement("div");if(u.id=this.#dt("views-root"),u.setAttribute("data-views-root",""),u.style.flex="1",this.#ut?(u.style.height="calc(100% - 32px)",u.style.width="100%"):(u.style.height="100%",u.style.width="calc(100% - 44px)"),i.appendChild(r),i.appendChild(u),i.appendChild(c),i.appendChild(d),t.appendChild(i),this.#yt(i),"undefined"!=typeof ResizeObserver){new ResizeObserver(()=>{this.#vt()}).observe(r)}this.#m=i,this.#$e=a,this.#Je=l,this.#Ye=s,this.#Qe=c,this.#et=o,this.#tt=d,this.#e=!0}#l(){if("undefined"==typeof document)return;if(document.getElementById(ye))return;const e=document.createElement("style");e.id=ye,e.textContent=" [data-tabbed-container] punica-tab-item {\n cursor: pointer;\n transition: background-color 0.08s ease;\n }\n [data-tabbed-container] punica-tab-item:hover {\n background-color: var(--background-main);\n }\n [data-tabbed-container] punica-tab-item[data-user-hidden] {\n display: none !important;\n }\n /* The active tab uses OUR accent only; we strip the component's selected\n attribute (its border indicator), so restore its full opacity here. */\n [data-tabbed-container] punica-tab-item[active] {\n opacity: 1;\n }\n [data-orientation='horizontal'] punica-tab-item {\n border-top: 2px solid transparent;\n }\n [data-orientation='horizontal'] punica-tab-item[active] {\n background-color: var(--background-main);\n border-top: 2px solid var(--primary-main);\n }\n [data-orientation='vertical'] punica-tab-item {\n border-left: 2px solid transparent;\n justify-content: center;\n }\n [data-orientation='vertical'] punica-tab-item[active] {\n background-color: var(--background-main);\n border-left: 2px solid var(--primary-main);\n }\n /* Passive status tint: a tab's icon takes the color of the worst thing its\n view is holding, so a closed panel stops looking identical whether it holds\n three errors or nothing. Same tokens the lists themselves use for those\n severities, so the tab reads as a summary of its rows rather than a second\n vocabulary. Selectors reach the icon in the tab's light DOM, which is why\n one rule covers both orientations and all three display modes — icon-only\n included, where the tint is the only thing on screen (its words live in the\n tab's title/aria-label). */\n [data-tabbed-container] punica-tab-item[data-status='error'] [data-col='icon'] i {\n color: var(--error-main);\n }\n [data-tabbed-container] punica-tab-item[data-status='warning'] [data-col='icon'] i {\n color: var(--warning-main);\n }\n [data-tabbed-container] punica-tab-item[data-status='info'] [data-col='icon'] i {\n color: var(--info-main);\n }\n [data-tabbed-container] punica-tab-item[data-status='success'] [data-col='icon'] i {\n color: var(--success-main);\n }\n /* Inactive tabs render at 0.6 opacity (the component's :host rule), which\n mutes the tint exactly where it has to be noticed. A status is a reason to\n look at a tab you are NOT on, so opt those tabs back to full opacity. */\n [data-tabbed-container] punica-tab-item[data-status]:not([active]) {\n opacity: 1;\n }\n\n [data-tabbed-container][data-drop-target] {\n outline: 2px dashed var(--primary-main);\n outline-offset: -2px;\n }\n",document.head.appendChild(e)}#pt(e,t){const n=globalThis.punica?.shell?.Views?.manager;if(n?.getPlacement?.(e))return n.reveal(e,{kind:"user-gesture",id:`${t}:${e}`}).catch(t=>{console.warn("[TabbedContainer] reveal failed for tab",e,t)}),void this.activateTabVisual(e);this.setActive(e)}open(e){if(this.#qe(),!this.#$e)return;if(this.#at.get(e.id))return void(!1===e.autoActivate||this.#S===e.id||this.#wt(e.id,"PanelTabs.open")||this.setActive(e.id));const t=F.createRow({alignItems:"center",wrap:"nowrap",spacing:"0.5"});let n=null;if(e.iconClass){const i=e.iconClass.trim(),r=F.createIcon(i.startsWith("<")?{innerHTML:i}:{iconClass:i});n=F.createCol({attrs:{"data-col":"icon"},children:[r]}),t.appendChild(n)}const i=F.createCol({attrs:{"data-col":"label"},children:[F.createTypography(e.title,{attrs:{truncate:"1"}})]});t.appendChild(i);const r=F.createTabItem({value:e.id,attrs:{title:e.title,role:"tab"},style:{flex:"0 0 auto",...this.#ut?{maxWidth:"160px",padding:"var(--spacing-6) var(--spacing-8)"}:{width:"100%",padding:"var(--spacing-8) var(--spacing-6)",height:"auto",flexGrow:"0"}},children:[t]});r.draggable=!0;const a=!0===this.#ht()?.isTabHidden?.(e.id,this.slotId);a&&r.setAttribute("data-user-hidden","");const s=this.#xt(e.id,e.order),o=Array.from(this.#at.values()).sort((e,t)=>e.order-t.order).find(e=>e.order>s);o?this.#$e.insertBefore(r,o.tabElement):this.#$e.appendChild(r);const l={id:e.id,title:e.title,commandId:e.commandId,iconClass:e.iconClass,order:s,tabElement:r,iconColEl:n,labelColEl:i,userHidden:a,toolbar:e.toolbar,toolbarEl:null};e.toolbar?.length&&this.#Je&&(l.toolbarEl=this.#Et(e.id,e.toolbar),this.#Je.appendChild(l.toolbarEl)),this.#at.set(e.id,l),this.#kt(l),this.#_t(l),this.#Ct(),this.#vt();const c=e.autoActivate;this.#S||a||!1===c||this.#wt(e.id,"PanelTabs.open")||this.setActive(e.id)}#xt(e,t){const n=this.#ht()?.getTabOrder?.(this.slotId);if(n&&n.length){const i=n.indexOf(e);return i>=0?i:1e3*n.length+(t??1e3)}return t??1e3}#kt(e){const t=this.#st,n=!!e.iconColEl,i=n&&("icon"===t||"both"===t),r="label"===t||"both"===t||!n;e.iconColEl&&(e.iconColEl.style.display=i?"":"none"),e.labelColEl&&(e.labelColEl.style.display=r?"":"none")}#Et(e,t){const n=document.createElement("div");n.dataset.viewId=e,n.style.display="none",n.style.alignItems="center",n.style.gap="var(--spacing-4)";for(const e of t){if(!e?.command)continue;const t=F.createIconButton("",()=>{try{const t=window,n=t?.punica?.kernel?.Commands?.manager;n&&"function"==typeof n.executeCommand&&n.executeCommand(e.command)}catch(t){console.warn("[TabbedContainer] Failed to execute toolbar command",e.command,t)}},{size:"x-small",title:e.title??e.command,attrs:{"aria-label":e.title??e.command,"data-action-id":e.id},style:{flex:"0 0 auto"},innerHTML:e.icon??""});n.appendChild(t)}return n}#wt(n,i){return!!t()&&(e({name:"shell.view.revealBlocked",source:"shell:views",kind:"warn",payload:{viewId:n,slot:this.slotId,api:i}}),console.warn(`[Shell] UI mutation during headless activation blocked: ${i}("${n}"). Declare the tab without autoActivate and reveal via the shell.revealView capability instead.`),!0)}setTabStatus(e,t){const n=this.#at.get(e);if(!n)return;n.status=t;const i=t?.level&&"none"!==t.level?t.level:null;i?n.tabElement.setAttribute("data-status",i):n.tabElement.removeAttribute("data-status");const r=t?.detail?`${n.title} · ${t.detail}`:n.title;n.tabElement.setAttribute("title",r),n.tabElement.setAttribute("aria-label",r)}activateTabVisual(e){if(!this.#$e)return;if(!this.#at.get(e))return;this.#S=e,this.#$e.setAttribute("value",e);this.#$e.querySelectorAll("punica-tab-item").forEach(t=>{const n=t.getAttribute("value");t.removeAttribute("selected"),n===e?(t.setAttribute("active",""),t.setAttribute("aria-selected","true")):(t.removeAttribute("active"),t.setAttribute("aria-selected","false"))}),this.#at.forEach(t=>{t.toolbarEl&&(t.toolbarEl.style.display=t.id===e?"flex":"none")}),this.recomputeOverflow()}close(e,t){if(!this.#$e)return;const n=this.#at.get(e);if(n&&(n.tabElement.parentElement===this.#$e&&this.#$e.removeChild(n.tabElement),n.toolbarEl&&(n.toolbarEl.remove(),n.toolbarEl=null),this.#rt.delete(e),this.#at.delete(e),this.#vt(),this.#S===e)){const e=Array.from(this.#at.values()).filter(e=>!e.userHidden).sort((e,t)=>e.order-t.order);this.#S=null,!t?.silent&&e.length>0?this.setActive(e[0].id):this.#$e.removeAttribute("value")}}closeAll(){this.#$e&&Array.from(this.#at.keys()).forEach(e=>this.close(e))}setActive(e){if(!this.#$e)return;const t=this.#at.get(e);if(t&&!this.#wt(e,"PanelTabs.setActive")&&(this.activateTabVisual(e),t.commandId))try{const e=window,n=e?.punica?.kernel?.Commands?.manager;n&&"function"==typeof n.executeCommand&&n.executeCommand(t.commandId)}catch(e){console.warn("[TabbedContainer] Failed to execute command",t.commandId,e)}}getActiveId(){return this.#S}getDisplayMode(){return this.#st}setDisplayMode(e){this.#st=e,this.#at.forEach(e=>this.#kt(e)),this.#ht()?.setDisplayMode?.(e,{slot:this.slotId}),this.#vt()}hideTab(e){const t=this.#at.get(e);if(t&&!t.userHidden){if(t.userHidden=!0,t.tabElement.setAttribute("data-user-hidden",""),this.#ht()?.setTabHidden?.(e,!0,{slot:this.slotId}),this.#Ct(),this.#S===e){this.#S=null,this.#$e?.removeAttribute("value"),t.tabElement.removeAttribute("active");const e=Array.from(this.#at.values()).filter(e=>!e.userHidden).sort((e,t)=>e.order-t.order)[0];e&&this.#pt(e.id,this.#dt("tab-hide"))}this.#vt()}}showTab(e){const t=this.#at.get(e);t&&t.userHidden&&(t.userHidden=!1,t.tabElement.removeAttribute("data-user-hidden"),this.#ht()?.setTabHidden?.(e,!1,{slot:this.slotId}),this.#Ct(),this.#vt(),this.#pt(e,this.#dt("tab-show")))}setUserOrder(e){this.#$e&&(e.forEach((e,t)=>{const n=this.#at.get(e);n&&(n.order=t,this.#$e.appendChild(n.tabElement))}),Array.from(this.#at.values()).filter(t=>!e.includes(t.id)).sort((e,t)=>e.order-t.order).forEach((t,n)=>{t.order=e.length+n,this.#$e.appendChild(t.tabElement)}),this.#ht()?.setTabOrder?.(this.#At(),{slot:this.slotId}),this.#vt())}listTabs(){return Array.from(this.#at.values()).sort((e,t)=>e.order-t.order).map(e=>({id:e.id,title:e.title,userHidden:e.userHidden}))}#At(){return Array.from(this.#at.values()).sort((e,t)=>e.order-t.order).map(e=>e.id)}#_t(e){const t=e.tabElement;t.addEventListener("dragstart",t=>{this.#ot=e.id,we={viewId:e.id,sourceSlot:this.slotId},t.dataTransfer?.setData("application/x-punica-view",e.id),t.dataTransfer&&(t.dataTransfer.effectAllowed="move"),function(){for(const e of xe)e.armDropZone()}()}),t.addEventListener("dragend",()=>{this.#ot=null,we=null,function(){for(const e of xe)e.disarmDropZone()}()}),t.addEventListener("dragover",t=>{this.#ot&&this.#ot!==e.id&&t.preventDefault()}),t.addEventListener("drop",t=>{t.preventDefault();const n=this.#ot;if(this.#ot=null,!n||n===e.id)return;const i=this.#ut?t.clientX:t.clientY;this.#St(n,e.id,i)})}#St(e,t,n){const i=this.#at.get(t);if(!i)return;const r=i.tabElement.getBoundingClientRect(),a=this.#ut?n>r.left+r.width/2:n>r.top+r.height/2,s=this.#At().filter(t=>t!==e),o=s.indexOf(t),l=a?o+1:o;s.splice(l,0,e),this.setUserOrder(s)}#yt(e){e.addEventListener("dragover",e=>{this.#Dt()&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="move"),this.#m?.setAttribute("data-drop-target",""))}),e.addEventListener("dragleave",t=>{e.contains(t.relatedTarget)||this.#m?.removeAttribute("data-drop-target")}),e.addEventListener("drop",e=>{this.#m?.removeAttribute("data-drop-target");const t=we;t&&this.#Dt()&&(e.preventDefault(),e.stopPropagation(),this.#ct=!0,we=null,this.#Nt(t.viewId,this.slotId))})}armDropZone(){if(this.#ct=!1,!this.#Dt())return;this.#qe();const e=punica.shell.Layout.manager;e.isSlotCollapsed?.(this.slotId)&&(e.setSlotCollapsed(this.slotId,!1),this.#lt=!0)}disarmDropZone(){this.#m?.removeAttribute("data-drop-target"),this.#lt&&!this.#ct&&punica.shell.Layout.manager.setSlotCollapsed(this.slotId,!0),this.#lt=!1,this.#ct=!1}#Dt(){const e=we;if(!e||e.sourceSlot===this.slotId)return!1;const t=globalThis.punica?.shell?.Views?.manager?.getPlacement?.(e.viewId),n=t?.allowedSlots;return Array.isArray(n)&&n.includes(this.slotId)}#Nt(e,t){const n=globalThis.punica?.shell?.Views?.manager;"function"==typeof n?.moveView&&n.moveView(e,t,{kind:"user-gesture",id:`view-dnd:${e}`}).catch(t=>{console.warn("[TabbedContainer] moveView failed",e,t)})}#mt(e){const t=this.#tt;if(!t)return;e.preventDefault();const n=e.target?.closest?.("punica-tab-item");if(t.innerHTML="",n){const e=n.getAttribute("value");if(e){this.#Tt(t,`hide:${e}`,"Hide tab");const n=globalThis.punica?.shell?.Views?.manager?.getPlacement?.(e);(n?.allowedSlots??[]).filter(e=>e!==this.slotId).forEach(n=>{this.#Tt(t,`move:${e}:${n}`,`Move to ${ve[n]??n}`)})}}this.#Tt(t,"display:both",("both"===this.#st?"● ":"")+"Show icons and labels"),this.#Tt(t,"display:icon",("icon"===this.#st?"● ":"")+"Show icons only"),this.#Tt(t,"display:label",("label"===this.#st?"● ":"")+"Show labels only"),this.#It(t,e.clientX,e.clientY)}#bt(e){const t=e.split(":"),n=t[0];"hide"===n&&t[1]?this.hideTab(t[1]):"display"===n&&t[1]?this.setDisplayMode(t[1]):"show"===n&&t[1]?this.showTab(t[1]):"move"===n&&t[1]&&t[2]&&this.#Nt(t[1],t[2])}#Tt(e,t,n){e.appendChild(F.createMenuItem({text:n,attrs:{"data-item":t,"aria-label":n}}))}#It(e,t,n){F.openMenuAt(e,{anchor:{top:n,left:t,bottom:n},placement:"bottom"})}#gt(){const e=this.#tt,t=this.#et;if(!e||!t)return;e.innerHTML="",Array.from(this.#at.values()).filter(e=>e.userHidden).sort((e,t)=>e.order-t.order).forEach(t=>this.#Tt(e,`show:${t.id}`,t.title));const n=t.getBoundingClientRect();this.#It(e,n.left,n.bottom)}#Ct(){const e=this.#et;if(!e)return;const t=Array.from(this.#at.values()).some(e=>e.userHidden);e.style.display=t?"inline-flex":"none"}#vt(){if(this.#it)return;this.#it=!0;const e=()=>{this.#it=!1,this.recomputeOverflow()};"function"==typeof requestAnimationFrame?requestAnimationFrame(e):setTimeout(e,0)}#Lt(){const e=this.#$e;return e?this.#ut?e.clientWidth:e.clientHeight:0}#Mt(e){return this.#ut?e.offsetWidth:e.offsetHeight}recomputeOverflow(){const e=this.#$e;if(!e)return;const t=Array.from(e.querySelectorAll("punica-tab-item")).filter(e=>!e.hasAttribute("data-user-hidden"));if(t.forEach(e=>{e.style.display=""}),0===t.length)return this.#rt.clear(),void this.#zt(!1);const n=this.#Lt();if(n<=0)return this.#rt.clear(),void this.#zt(!1);const i=t.map(e=>this.#Mt(e));if(i.reduce((e,t)=>e+t,0)<=n)return this.#rt.clear(),void this.#zt(!1);const r=n-this.#Ft(),a=t.findIndex(e=>e.getAttribute("value")===this.#S);let s=a>=0?i[a]:0;const o=new Set;let l=!0;t.forEach((e,t)=>{if(t===a)return;if(l&&s+i[t]<=r)return void(s+=i[t]);l=!1,e.style.display="none";const n=e.getAttribute("value");n&&o.add(n)}),this.#rt=o,this.#zt(o.size>0)}#zt(e){const t=this.#Ye;t&&(t.style.display=e?"inline-flex":"none",e||this.#Qe?.removeAttribute("open"))}#Ft(){if(null!=this.#nt)return this.#nt;const e=this.#Ye;if(!e)return 28;const t=e.style.display;e.style.display="inline-flex";const n=this.#Mt(e)||28;return e.style.display=t,this.#nt=n,n}#ft(){const e=this.#Qe,t=this.#Ye,n=this.#$e;e&&t&&n&&0!==this.#rt.size&&(e.innerHTML="",n.querySelectorAll("punica-tab-item").forEach(t=>{const n=t.getAttribute("value");if(!n||!this.#rt.has(n))return;const i=this.#at.get(n);i&&e.appendChild(F.createMenuItem({text:i.title,attrs:{"data-item":n,"aria-label":i.title}}))}),F.openMenuAt(e,{anchor:t,placement:"bottom"}))}}const ke=new class extends Ee{constructor(){super("panel","horizontal")}},_e=new Ee("secondarySidebar","vertical"),Ce={bottom:ke,right:_e,forSlot:e=>"panel"===e?ke:"secondarySidebar"===e?_e:null},Ae="panel.tabDisplay",Se="panel.hiddenTabs",De="panel.tabOrder",Ne="view.slotOverrides",Te="panel";function Ie(){return globalThis.punica?.extensions?.settings?.manager??null}function Le(){try{const e=globalThis.punica?.shell?.Profile?.manager?.registry?.getActive?.();return e?.shell??null}catch{return null}}const Me=new class{#Bt=!1;#Ot=null;#Rt=new Map;#$t={};async load(){const e=Ie();if(this.#Ot=e,e){try{await e.load()}catch(e){console.warn("[PanelLayout] settings.load() failed",e)}this.#$t=this.#jt(e.get("system",Ne))??{}}this.#Bt=!0}getDisplayMode(e=Te){const t=this.#Pt(this.#Ht(Ae,e));if(t)return t;if(e===Te){const e=this.#Pt(Le()?.panel?.tabDisplay);if(e)return e}return e===Te?"both":"icon"}getHiddenTabs(e=Te){const t=this.#qt(this.#Ht(Se,e));if(t)return t;if(e===Te){const e=this.#qt(Le()?.panel?.hiddenTabs);if(e)return e}return[]}isTabHidden(e,t=Te){return this.getHiddenTabs(t).includes(e)}getTabOrder(e=Te){const t=this.#qt(this.#Ht(De,e));return t||(e===Te?this.#qt(Le()?.panel?.tabOrder):void 0)}getSlotOverride(e){const t=this.#$t[e];if(void 0!==t)return t;const n=this.#jt(Le()?.viewDefaults?.slotOverrides);return n?.[e]}async setDisplayMode(e,t){await this.#Vt(Ae,e,t)}async setTabHidden(e,t,n){const i=n?.slot??Te,r=new Set(this.getHiddenTabs(i));t?r.add(e):r.delete(e),await this.#Vt(Se,Array.from(r),n)}async setTabOrder(e,t){await this.#Vt(De,[...e],t)}async setSlotOverride(e,t,n,i){const r={...this.#$t};t===n?delete r[e]:r[e]=t,this.#$t=r,await this.#Ut(Ne,r,i)}#Zt(e,t){return t===Te?e:`${e}.${t}`}#Ht(e,t){const n=this.#Zt(e,t);if(this.#Rt.has(n))return this.#Rt.get(n);const i=this.#Ot?.get?.("system",n);return this.#Rt.set(n,i),i}async#Vt(e,t,n){const i=n?.slot??Te,r=this.#Zt(e,i);this.#Rt.set(r,t),await this.#Ut(r,t,n)}async#Ut(e,t,n){const i=Ie();if(!i)return;const r=n?.workspace?"project":"global";try{await i.set("system",e,t,r)}catch(t){console.warn("[PanelLayout] failed to persist",e,t)}}#Pt(e){return"icon"===e||"label"===e||"both"===e?e:void 0}#qt(e){return Array.isArray(e)&&e.every(e=>"string"==typeof e)?e:void 0}#jt(e){if(!e||"object"!=typeof e||Array.isArray(e))return;const t={};for(const[n,i]of Object.entries(e))"string"==typeof i&&(t[n]=i);return t}},ze={};function Fe(e,t){"string"!=typeof t&&(t=Fe.defaultChars);const n=function(e){let t=ze[e];if(t)return t;t=ze[e]=[];for(let e=0;e<128;e++){const n=String.fromCharCode(e);t.push(n)}for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);t[i]="%"+("0"+i.toString(16).toUpperCase()).slice(-2)}return t}(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(e){let t="";for(let i=0,r=e.length;i<r;i+=3){const a=parseInt(e.slice(i+1,i+3),16);if(a<128)t+=n[a];else{if(192==(224&a)&&i+3<r){const n=parseInt(e.slice(i+4,i+6),16);if(128==(192&n)){const e=a<<6&1984|63&n;t+=e<128?"��":String.fromCharCode(e),i+=3;continue}}if(224==(240&a)&&i+6<r){const n=parseInt(e.slice(i+4,i+6),16),r=parseInt(e.slice(i+7,i+9),16);if(128==(192&n)&&128==(192&r)){const e=a<<12&61440|n<<6&4032|63&r;t+=e<2048||e>=55296&&e<=57343?"���":String.fromCharCode(e),i+=6;continue}}if(240==(248&a)&&i+9<r){const n=parseInt(e.slice(i+4,i+6),16),r=parseInt(e.slice(i+7,i+9),16),s=parseInt(e.slice(i+10,i+12),16);if(128==(192&n)&&128==(192&r)&&128==(192&s)){let e=a<<18&1835008|n<<12&258048|r<<6&4032|63&s;e<65536||e>1114111?t+="����":(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(1023&e))),i+=9;continue}}t+="�"}}return t})}Fe.defaultChars=";/?:@&=+$,#",Fe.componentChars="";const Be={};function Oe(e,t,n){"string"!=typeof t&&(n=t,t=Oe.defaultChars),void 0===n&&(n=!0);const i=function(e){let t=Be[e];if(t)return t;t=Be[e]=[];for(let e=0;e<128;e++){const n=String.fromCharCode(e);/^[0-9a-z]$/i.test(n)?t.push(n):t.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}(t);let r="";for(let t=0,a=e.length;t<a;t++){const s=e.charCodeAt(t);if(n&&37===s&&t+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3)))r+=e.slice(t,t+3),t+=2;else if(s<128)r+=i[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&t+1<a){const n=e.charCodeAt(t+1);if(n>=56320&&n<=57343){r+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}r+="%EF%BF%BD"}else r+=encodeURIComponent(e[t])}return r}function Re(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function $e(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}Oe.defaultChars=";/?:@&=+$,-_.!~*'()#",Oe.componentChars="-_.!~*'()";const je=/^([a-z0-9.+-]+:)/i,Pe=/:[0-9]*$/,He=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,qe=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),Ve=["'"].concat(qe),Ue=["%","/","?",";","#"].concat(Ve),Ze=["/","?","#"],We=/^[+a-z0-9A-Z_-]{0,63}$/,Ke=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ge={javascript:!0,"javascript:":!0},Xe={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Je(e,t){if(e&&e instanceof $e)return e;const n=new $e;return n.parse(e,t),n}$e.prototype.parse=function(e,t){let n,i,r,a=e;if(a=a.trim(),!t&&1===e.split("#").length){const e=He.exec(a);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let s=je.exec(a);if(s&&(s=s[0],n=s.toLowerCase(),this.protocol=s,a=a.substr(s.length)),(t||s||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(r="//"===a.substr(0,2),!r||s&&Ge[s]||(a=a.substr(2),this.slashes=!0)),!Ge[s]&&(r||s&&!Xe[s])){let e,t,n=-1;for(let e=0;e<Ze.length;e++)i=a.indexOf(Ze[e]),-1!==i&&(-1===n||i<n)&&(n=i);t=-1===n?a.lastIndexOf("@"):a.lastIndexOf("@",n),-1!==t&&(e=a.slice(0,t),a=a.slice(t+1),this.auth=e),n=-1;for(let e=0;e<Ue.length;e++)i=a.indexOf(Ue[e]),-1!==i&&(-1===n||i<n)&&(n=i);-1===n&&(n=a.length),":"===a[n-1]&&n--;const r=a.slice(0,n);a=a.slice(n),this.parseHost(r),this.hostname=this.hostname||"";const s="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!s){const e=this.hostname.split(/\./);for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n&&!n.match(We)){let i="";for(let e=0,t=n.length;e<t;e++)n.charCodeAt(e)>127?i+="x":i+=n[e];if(!i.match(We)){const i=e.slice(0,t),r=e.slice(t+1),s=n.match(Ke);s&&(i.push(s[1]),r.unshift(s[2])),r.length&&(a=r.join(".")+a),this.hostname=i.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),s&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const o=a.indexOf("#");-1!==o&&(this.hash=a.substr(o),a=a.slice(0,o));const l=a.indexOf("?");return-1!==l&&(this.search=a.substr(l),a=a.slice(0,l)),a&&(this.pathname=a),Xe[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},$e.prototype.parseHost=function(e){let t=Pe.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var Ye,Qe=Object.freeze({__proto__:null,decode:Fe,encode:Oe,format:Re,parse:Je}),et=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,tt=/[\0-\x1F\x7F-\x9F]/,nt=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,it=/[\$\+<->\^`\|~\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]/,rt=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,at=Object.freeze({__proto__:null,Any:et,Cc:tt,Cf:/[\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]/,P:nt,S:it,Z:rt}),st=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))),ot=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));const lt=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]]),ct=null!==(Ye=String.fromCodePoint)&&void 0!==Ye?Ye:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};var dt;!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"}(dt||(dt={}));var ut,ht,pt;function mt(e){return e>=dt.ZERO&&e<=dt.NINE}function ft(e){return e>=dt.UPPER_A&&e<=dt.UPPER_F||e>=dt.LOWER_A&&e<=dt.LOWER_F}function gt(e){return e===dt.EQUALS||function(e){return e>=dt.UPPER_A&&e<=dt.UPPER_Z||e>=dt.LOWER_A&&e<=dt.LOWER_Z||mt(e)}(e)}!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(ut||(ut={})),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"}(ht||(ht={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(pt||(pt={}));class bt{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=ht.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=pt.Strict}startEntity(e){this.decodeMode=e,this.state=ht.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case ht.EntityStart:return e.charCodeAt(t)===dt.NUM?(this.state=ht.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=ht.NamedEntity,this.stateNamedEntity(e,t));case ht.NumericStart:return this.stateNumericStart(e,t);case ht.NumericDecimal:return this.stateNumericDecimal(e,t);case ht.NumericHex:return this.stateNumericHex(e,t);case ht.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===dt.LOWER_X?(this.state=ht.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=ht.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,i){if(t!==n){const r=n-t;this.result=this.result*Math.pow(i,r)+parseInt(e.substr(t,r),i),this.consumed+=r}}stateNumericHex(e,t){const n=t;for(;t<e.length;){const i=e.charCodeAt(t);if(!mt(i)&&!ft(i))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(i,3);t+=1}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t<e.length;){const i=e.charCodeAt(t);if(!mt(i))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(i,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===dt.SEMI)this.consumed+=1;else if(this.decodeMode===pt.Strict)return 0;return this.emitCodePoint(function(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=lt.get(e))&&void 0!==t?t:e}(this.result),this.consumed),this.errors&&(e!==dt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let i=n[this.treeIndex],r=(i&ut.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const a=e.charCodeAt(t);if(this.treeIndex=vt(n,i,this.treeIndex+Math.max(1,r),a),this.treeIndex<0)return 0===this.result||this.decodeMode===pt.Attribute&&(0===r||gt(a))?0:this.emitNotTerminatedNamedEntity();if(i=n[this.treeIndex],r=(i&ut.VALUE_LENGTH)>>14,0!==r){if(a===dt.SEMI)return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess);this.decodeMode!==pt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,i=(n[t]&ut.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,i,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:i}=this;return this.emitCodePoint(1===t?i[e]&~ut.VALUE_LENGTH:i[e+1],n),3===t&&this.emitCodePoint(i[e+2],n),n}end(){var e;switch(this.state){case ht.NamedEntity:return 0===this.result||this.decodeMode===pt.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case ht.NumericDecimal:return this.emitNumericEntity(0,2);case ht.NumericHex:return this.emitNumericEntity(0,3);case ht.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ht.EntityStart:return 0}}}function yt(e){let t="";const n=new bt(e,e=>t+=ct(e));return function(e,i){let r=0,a=0;for(;(a=e.indexOf("&",a))>=0;){t+=e.slice(r,a),n.startEntity(i);const s=n.write(e,a+1);if(s<0){r=a+n.end();break}r=a+s,a=0===s?r+1:r}const s=t+e.slice(r);return t="",s}}function vt(e,t,n,i){const r=(t&ut.BRANCH_LENGTH)>>7,a=t&ut.JUMP_TABLE;if(0===r)return 0!==a&&i===a?n:-1;if(a){const t=i-a;return t<0||t>=r?-1:e[n+t]-1}let s=n,o=s+r-1;for(;s<=o;){const t=s+o>>>1,n=e[t];if(n<i)s=t+1;else{if(!(n>i))return e[t+r];o=t-1}}return-1}const wt=yt(st);function xt(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)}yt(ot);const Et=Object.prototype.hasOwnProperty;function kt(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e}function _t(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function Ct(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(!!(65535&~e&&65534!=(65535&e))&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function At(e){if(e>65535){const t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const St=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Dt=new RegExp(St.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),Nt=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Tt(e,t){if(35===t.charCodeAt(0)&&Nt.test(t)){const n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Ct(n)?At(n):e}const n=function(e,t=pt.Legacy){return wt(e,t)}(e);return n!==e?n:e}function It(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(Dt,function(e,t,n){return t||Tt(e,n)})}const Lt=/[&<>"]/,Mt=/[&<>"]/g,zt={"&":"&","<":"<",">":">",'"':"""};function Ft(e){return zt[e]}function Bt(e){return Lt.test(e)?e.replace(Mt,Ft):e}const Ot=/[.?*+^$[\]\\(){}|-]/g;function Rt(e){switch(e){case 9:case 32:return!0}return!1}function $t(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 jt(e){return nt.test(e)||it.test(e)}function Pt(e){return jt(At(e))}function Ht(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 qt(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}function Vt(e){return 32===e||9===e||10===e||13===e}function Ut(e){let t=0;for(;t<e.length&&Vt(e.charCodeAt(t));t++);let n=e.length-1;for(;n>=t&&Vt(e.charCodeAt(n));n--);return e.slice(t,n+1)}const Zt={mdurl:Qe,ucmicro:at};var Wt=Object.freeze({__proto__:null,arrayReplaceAt:_t,asciiTrim:Ut,assign:kt,escapeHtml:Bt,escapeRE:function(e){return e.replace(Ot,"\\$&")},fromCodePoint:At,has:function(e,t){return Et.call(e,t)},isMdAsciiPunct:Ht,isPunctChar:jt,isPunctCharCode:Pt,isSpace:Rt,isString:xt,isValidEntityCode:Ct,isWhiteSpace:$t,lib:Zt,normalizeReference:qt,unescapeAll:It,unescapeMd:function(e){return e.indexOf("\\")<0?e:e.replace(St,"$1")}});var Kt=Object.freeze({__proto__:null,parseLinkDestination:function(e,t,n){let i,r=t;const a={ok:!1,pos:0,str:""};if(60===e.charCodeAt(r)){for(r++;r<n;){if(i=e.charCodeAt(r),10===i)return a;if(60===i)return a;if(62===i)return a.pos=r+1,a.str=It(e.slice(t+1,r)),a.ok=!0,a;92===i&&r+1<n?r+=2:r++}return a}let s=0;for(;r<n&&(i=e.charCodeAt(r),32!==i)&&!(i<32||127===i);)if(92===i&&r+1<n){if(32===e.charCodeAt(r+1))break;r+=2}else{if(40===i&&(s++,s>32))return a;if(41===i){if(0===s)break;s--}r++}return t===r||0!==s||(a.str=It(e.slice(t,r)),a.pos=r,a.ok=!0),a},parseLinkLabel:function(e,t,n){let i,r,a,s;const o=e.posMax,l=e.pos;for(e.pos=t+1,i=1;e.pos<o;){if(a=e.src.charCodeAt(e.pos),93===a&&(i--,0===i)){r=!0;break}if(s=e.pos,e.md.inline.skipToken(e),91===a)if(s===e.pos-1)i++;else if(n)return e.pos=l,-1}let c=-1;return r&&(c=e.pos),e.pos=l,c},parseLinkTitle:function(e,t,n,i){let r,a=t;const s={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(i)s.str=i.str,s.marker=i.marker;else{if(a>=n)return s;let i=e.charCodeAt(a);if(34!==i&&39!==i&&40!==i)return s;t++,a++,40===i&&(i=41),s.marker=i}for(;a<n;){if(r=e.charCodeAt(a),r===s.marker)return s.pos=a+1,s.str+=It(e.slice(t,a)),s.ok=!0,s;if(40===r&&41===s.marker)return s;92===r&&a+1<n&&a++,a++}return s.can_continue=!0,s.str+=It(e.slice(t,a)),s}});const Gt={};function Xt(){this.rules=kt({},Gt)}function Jt(){this.__rules__=[],this.__cache__=null}function Yt(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}function Qt(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}Gt.code_inline=function(e,t,n,i,r){const a=e[t];return"<code"+r.renderAttrs(a)+">"+Bt(a.content)+"</code>"},Gt.code_block=function(e,t,n,i,r){const a=e[t];return"<pre"+r.renderAttrs(a)+"><code>"+Bt(e[t].content)+"</code></pre>\n"},Gt.fence=function(e,t,n,i,r){const a=e[t],s=a.info?It(a.info).trim():"";let o,l="",c="";if(s){const e=s.split(/(\s+)/g);l=e[0],c=e.slice(2).join("")}if(o=n.highlight&&n.highlight(a.content,l,c)||Bt(a.content),0===o.indexOf("<pre"))return o+"\n";if(s){const e=a.attrIndex("class"),t=a.attrs?a.attrs.slice():[];e<0?t.push(["class",n.langPrefix+l]):(t[e]=t[e].slice(),t[e][1]+=" "+n.langPrefix+l);const i={attrs:t};return`<pre><code${r.renderAttrs(i)}>${o}</code></pre>\n`}return`<pre><code${r.renderAttrs(a)}>${o}</code></pre>\n`},Gt.image=function(e,t,n,i,r){const a=e[t];return a.attrs[a.attrIndex("alt")][1]=r.renderInlineAsText(a.children,n,i),r.renderToken(e,t,n)},Gt.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},Gt.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},Gt.text=function(e,t){return Bt(e[t].content)},Gt.html_block=function(e,t){return e[t].content},Gt.html_inline=function(e,t){return e[t].content},Xt.prototype.renderAttrs=function(e){let t,n,i;if(!e.attrs)return"";for(i="",t=0,n=e.attrs.length;t<n;t++)i+=" "+Bt(e.attrs[t][0])+'="'+Bt(e.attrs[t][1])+'"';return i},Xt.prototype.renderToken=function(e,t,n){const i=e[t];let r="";if(i.hidden)return"";i.block&&-1!==i.nesting&&t&&e[t-1].hidden&&(r+="\n"),r+=(-1===i.nesting?"</":"<")+i.tag,r+=this.renderAttrs(i),0===i.nesting&&n.xhtmlOut&&(r+=" /");let a=!1;if(i.block&&(a=!0,1===i.nesting&&t+1<e.length)){const n=e[t+1];("inline"===n.type||n.hidden||-1===n.nesting&&n.tag===i.tag)&&(a=!1)}return r+=a?">\n":">",r},Xt.prototype.renderInline=function(e,t,n){let i="";const r=this.rules;for(let a=0,s=e.length;a<s;a++){const s=e[a].type;void 0!==r[s]?i+=r[s](e,a,t,n,this):i+=this.renderToken(e,a,t)}return i},Xt.prototype.renderInlineAsText=function(e,t,n){let i="";for(let r=0,a=e.length;r<a;r++)switch(e[r].type){case"text":case"html_inline":case"html_block":i+=e[r].content;break;case"image":i+=this.renderInlineAsText(e[r].children,t,n);break;case"softbreak":case"hardbreak":i+="\n"}return i},Xt.prototype.render=function(e,t,n){let i="";const r=this.rules;for(let a=0,s=e.length;a<s;a++){const s=e[a].type;"inline"===s?i+=this.renderInline(e[a].children,t,n):void 0!==r[s]?i+=r[s](e,a,t,n,this):i+=this.renderToken(e,a,t,n)}return i},Jt.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},Jt.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){t.indexOf(e)<0&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))})})},Jt.prototype.at=function(e,t,n){const i=this.__find__(e),r=n||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__[i].fn=t,this.__rules__[i].alt=r.alt||[],this.__cache__=null},Jt.prototype.before=function(e,t,n,i){const r=this.__find__(e),a=i||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null},Jt.prototype.after=function(e,t,n,i){const r=this.__find__(e),a=i||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r+1,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null},Jt.prototype.push=function(e,t,n){const i=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:i.alt||[]}),this.__cache__=null},Jt.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(e){const i=this.__find__(e);if(i<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[i].enabled=!0,n.push(e)},this),this.__cache__=null,n},Jt.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},Jt.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(e){const i=this.__find__(e);if(i<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[i].enabled=!1,n.push(e)},this),this.__cache__=null,n},Jt.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},Yt.prototype.attrIndex=function(e){if(!this.attrs)return-1;const t=this.attrs;for(let n=0,i=t.length;n<i;n++)if(t[n][0]===e)return n;return-1},Yt.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},Yt.prototype.attrSet=function(e,t){const n=this.attrIndex(e),i=[e,t];n<0?this.attrPush(i):this.attrs[n]=i},Yt.prototype.attrGet=function(e){const t=this.attrIndex(e);let n=null;return t>=0&&(n=this.attrs[t][1]),n},Yt.prototype.attrJoin=function(e,t){const n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},Qt.prototype.Token=Yt;const en=/\r\n?|\n/g,tn=/\0/g;function nn(e){return/^<a[>\s]/i.test(e)}function rn(e){return/^<\/a\s*>/i.test(e)}const an=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,sn=/\((c|tm|r)\)/i,on=/\((c|tm|r)\)/gi,ln={c:"©",r:"®",tm:"™"};function cn(e,t){return ln[t.toLowerCase()]}function dn(e){let t=0;for(let n=e.length-1;n>=0;n--){const i=e[n];"text"!==i.type||t||(i.content=i.content.replace(on,cn)),"link_open"===i.type&&"auto"===i.info&&t--,"link_close"===i.type&&"auto"===i.info&&t++}}function un(e){let t=0;for(let n=e.length-1;n>=0;n--){const i=e[n];"text"!==i.type||t||an.test(i.content)&&(i.content=i.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===i.type&&"auto"===i.info&&t--,"link_close"===i.type&&"auto"===i.info&&t++}}const hn=/['"]/,pn=/['"]/g;function mn(e,t,n,i){e[t]||(e[t]=[]),e[t].push({pos:n,ch:i})}function fn(e,t){let n;const i=[],r={};for(let a=0;a<e.length;a++){const s=e[a],o=e[a].level;for(n=i.length-1;n>=0&&!(i[n].level<=o);n--);if(i.length=n+1,"text"!==s.type)continue;const l=s.content;let c=0;const d=l.length;e:for(;c<d;){pn.lastIndex=c;const s=pn.exec(l);if(!s)break;let u=!0,h=!0;c=s.index+1;const p="'"===s[0];let m=32;if(s.index-1>=0)m=l.charCodeAt(s.index-1);else for(n=a-1;n>=0&&("softbreak"!==e[n].type&&"hardbreak"!==e[n].type);n--)if(e[n].content){m=e[n].content.charCodeAt(e[n].content.length-1);break}let f=32;if(c<d)f=l.charCodeAt(c);else for(n=a+1;n<e.length&&("softbreak"!==e[n].type&&"hardbreak"!==e[n].type);n++)if(e[n].content){f=e[n].content.charCodeAt(0);break}const g=Ht(m)||Pt(m),b=Ht(f)||Pt(f),y=$t(m),v=$t(f);if(v?u=!1:b&&(y||g||(u=!1)),y?h=!1:g&&(v||b||(h=!1)),34===f&&'"'===s[0]&&m>=48&&m<=57&&(h=u=!1),u&&h&&(u=g,h=b),u||h){if(h)for(n=i.length-1;n>=0;n--){let e=i[n];if(i[n].level<o)break;if(e.single===p&&i[n].level===o){let o,l;e=i[n],p?(o=t.md.options.quotes[2],l=t.md.options.quotes[3]):(o=t.md.options.quotes[0],l=t.md.options.quotes[1]),mn(r,a,s.index,l),mn(r,e.token,e.pos,o),i.length=n;continue e}}u?i.push({token:a,pos:s.index,single:p,level:o}):h&&p&&mn(r,a,s.index,"’")}else p&&mn(r,a,s.index,"’")}}Object.keys(r).forEach(function(t){e[t].content=function(e,t){let n="",i=0;t.sort((e,t)=>e.pos-t.pos);for(let r=0;r<t.length;r++){const a=t[r];n+=e.slice(i,a.pos)+a.ch,i=a.pos+1}return n+e.slice(i)}(e[t].content,r[t])})}const gn=[["normalize",function(e){let t;t=e.src.replace(en,"\n"),t=t.replace(tn,"�"),e.src=t}],["block",function(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)}],["inline",function(e){const t=e.tokens;for(let n=0,i=t.length;n<i;n++){const i=t[n];"inline"===i.type&&e.md.inline.parse(i.content,e.md,e.env,i.children)}}],["linkify",function(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,i=t.length;n<i;n++){if("inline"!==t[n].type||!e.md.linkify.pretest(t[n].content))continue;let i=t[n].children,r=0;for(let a=i.length-1;a>=0;a--){const s=i[a];if("link_close"!==s.type){if("html_inline"===s.type&&(nn(s.content)&&r>0&&r--,rn(s.content)&&r++),!(r>0)&&"text"===s.type&&e.md.linkify.test(s.content)){const r=s.content;let o=e.md.linkify.match(r);const l=[];let c=s.level,d=0;o.length>0&&0===o[0].index&&a>0&&"text_special"===i[a-1].type&&(o=o.slice(1));for(let t=0;t<o.length;t++){const n=o[t].url,i=e.md.normalizeLink(n);if(!e.md.validateLink(i))continue;let a=o[t].text;a=o[t].schema?"mailto:"!==o[t].schema||/^mailto:/i.test(a)?e.md.normalizeLinkText(a):e.md.normalizeLinkText("mailto:"+a).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+a).replace(/^http:\/\//,"");const s=o[t].index;if(s>d){const t=new e.Token("text","",0);t.content=r.slice(d,s),t.level=c,l.push(t)}const u=new e.Token("link_open","a",1);u.attrs=[["href",i]],u.level=c++,u.markup="linkify",u.info="auto",l.push(u);const h=new e.Token("text","",0);h.content=a,h.level=c,l.push(h);const p=new e.Token("link_close","a",-1);p.level=--c,p.markup="linkify",p.info="auto",l.push(p),d=o[t].lastIndex}if(d<r.length){const t=new e.Token("text","",0);t.content=r.slice(d),t.level=c,l.push(t)}t[n].children=i=_t(i,a,l)}}else for(a--;i[a].level!==s.level&&"link_open"!==i[a].type;)a--}}}],["replacements",function(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(sn.test(e.tokens[t].content)&&dn(e.tokens[t].children),an.test(e.tokens[t].content)&&un(e.tokens[t].children))}],["smartquotes",function(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&hn.test(e.tokens[t].content)&&fn(e.tokens[t].children,e)}],["text_join",function(e){let t,n;const i=e.tokens,r=i.length;for(let e=0;e<r;e++){if("inline"!==i[e].type)continue;const r=i[e].children,a=r.length;for(t=0;t<a;t++)"text_special"===r[t].type&&(r[t].type="text");for(t=n=0;t<a;t++)"text"===r[t].type&&t+1<a&&"text"===r[t+1].type?r[t+1].content=r[t].content+r[t+1].content:(t!==n&&(r[n]=r[t]),n++);t!==n&&(r.length=n)}}]];function bn(){this.ruler=new Jt;for(let e=0;e<gn.length;e++)this.ruler.push(gn[e][0],gn[e][1])}function yn(e,t,n,i){this.src=e,this.md=t,this.env=n,this.tokens=i,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 e=0,t=0,n=0,i=0,a=r.length,s=!1;t<a;t++){const o=r.charCodeAt(t);if(!s){if(Rt(o)){n++,9===o?i+=4-i%4:i++;continue}s=!0}10!==o&&t!==a-1||(10!==o&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(n),this.sCount.push(i),this.bsCount.push(0),s=!1,n=0,i=0,e=t+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}bn.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,i=t.length;n<i;n++)t[n](e)},bn.prototype.State=Qt,yn.prototype.push=function(e,t,n){const i=new Yt(e,t,n);return i.block=!0,n<0&&this.level--,i.level=this.level,n>0&&this.level++,this.tokens.push(i),i},yn.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},yn.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},yn.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t;e++){if(!Rt(this.src.charCodeAt(e)))break}return e},yn.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!Rt(this.src.charCodeAt(--e)))return e+1;return e},yn.prototype.skipChars=function(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},yn.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},yn.prototype.getLines=function(e,t,n,i){if(e>=t)return"";const r=new Array(t-e);for(let a=0,s=e;s<t;s++,a++){let e=0;const o=this.bMarks[s];let l,c=o;for(l=s+1<t||i?this.eMarks[s]+1:this.eMarks[s];c<l&&e<n;){const t=this.src.charCodeAt(c);if(Rt(t))9===t?e+=4-(e+this.bsCount[s])%4:e++;else{if(!(c-o<this.tShift[s]))break;e++}c++}r[a]=e>n?new Array(e-n+1).join(" ")+this.src.slice(c,l):this.src.slice(c,l)}return r.join("")},yn.prototype.Token=Yt;function vn(e,t){const n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];return e.src.slice(n,i)}function wn(e){const t=[],n=e.length;let i=0,r=e.charCodeAt(i),a=!1,s=0,o="";for(;i<n;)124===r&&(a?(o+=e.substring(s,i-1),s=i):(t.push(o+e.substring(s,i)),o="",s=i+1)),a=92===r,i++,r=e.charCodeAt(i);return t.push(o+e.substring(s)),t}function xn(e,t){const n=e.eMarks[t];let i=e.bMarks[t]+e.tShift[t];const r=e.src.charCodeAt(i++);if(42!==r&&45!==r&&43!==r)return-1;if(i<n){if(!Rt(e.src.charCodeAt(i)))return-1}return i}function En(e,t){const n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];let r=n;if(r+1>=i)return-1;let a=e.src.charCodeAt(r++);if(a<48||a>57)return-1;for(;;){if(r>=i)return-1;if(a=e.src.charCodeAt(r++),!(a>=48&&a<=57)){if(41===a||46===a)break;return-1}if(r-n>=10)return-1}return r<i&&(a=e.src.charCodeAt(r),!Rt(a))?-1:r}const kn="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",_n="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Cn=new RegExp("^(?:"+kn+"|"+_n+"|\x3c!---?>|\x3c!--(?:[^-]|-[^-]|--[^>])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),An=new RegExp("^(?:"+kn+"|"+_n+")"),Sn=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+["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"].join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(An.source+"\\s*$"),/^$/,!1]];const Dn=[["table",function(e,t,n,i){if(t+2>n)return!1;let r=t+1;if(e.sCount[r]<e.blkIndent)return!1;if(e.sCount[r]-e.blkIndent>=4)return!1;let a=e.bMarks[r]+e.tShift[r];if(a>=e.eMarks[r])return!1;const s=e.src.charCodeAt(a++);if(124!==s&&45!==s&&58!==s)return!1;if(a>=e.eMarks[r])return!1;const o=e.src.charCodeAt(a++);if(124!==o&&45!==o&&58!==o&&!Rt(o))return!1;if(45===s&&Rt(o))return!1;for(;a<e.eMarks[r];){const t=e.src.charCodeAt(a);if(124!==t&&45!==t&&58!==t&&!Rt(t))return!1;a++}let l=vn(e,t+1),c=l.split("|");const d=[];for(let e=0;e<c.length;e++){const t=c[e].trim();if(!t){if(0===e||e===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(t))return!1;58===t.charCodeAt(t.length-1)?d.push(58===t.charCodeAt(0)?"center":"right"):58===t.charCodeAt(0)?d.push("left"):d.push("")}if(l=vn(e,t).trim(),-1===l.indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;c=wn(l),c.length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop();const u=c.length;if(0===u||u!==d.length)return!1;if(i)return!0;const h=e.parentType;e.parentType="table";const p=e.md.block.ruler.getRules("blockquote"),m=[t,0];e.push("table_open","table",1).map=m,e.push("thead_open","thead",1).map=[t,t+1],e.push("tr_open","tr",1).map=[t,t+1];for(let t=0;t<c.length;t++){const n=e.push("th_open","th",1);d[t]&&(n.attrs=[["style","text-align:"+d[t]]]);const i=e.push("inline","",0);i.content=c[t].trim(),i.children=[],e.push("th_close","th",-1)}let f;e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let g=0;for(r=t+2;r<n&&!(e.sCount[r]<e.blkIndent);r++){let i=!1;for(let t=0,a=p.length;t<a;t++)if(p[t](e,r,n,!0)){i=!0;break}if(i)break;if(l=vn(e,r).trim(),!l)break;if(e.sCount[r]-e.blkIndent>=4)break;if(c=wn(l),c.length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop(),g+=u-c.length,g>65536)break;if(r===t+2){e.push("tbody_open","tbody",1).map=f=[t+2,0]}e.push("tr_open","tr",1).map=[r,r+1];for(let t=0;t<u;t++){const n=e.push("td_open","td",1);d[t]&&(n.attrs=[["style","text-align:"+d[t]]]);const i=e.push("inline","",0);i.content=c[t]?c[t].trim():"",i.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return f&&(e.push("tbody_close","tbody",-1),f[1]=r),e.push("table_close","table",-1),m[1]=r,e.parentType=h,e.line=r,!0},["paragraph","reference"]],["code",function(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let i=t+1,r=i;for(;i<n;)if(e.isEmpty(i))i++;else{if(!(e.sCount[i]-e.blkIndent>=4))break;i++,r=i}e.line=r;const a=e.push("code_block","code",0);return a.content=e.getLines(t,r,4+e.blkIndent,!1)+"\n",a.map=[t,e.line],!0}],["fence",function(e,t,n,i){let r=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(r+3>a)return!1;const s=e.src.charCodeAt(r);if(126!==s&&96!==s)return!1;let o=r;r=e.skipChars(r,s);let l=r-o;if(l<3)return!1;const c=e.src.slice(o,r),d=e.src.slice(r,a);if(96===s&&d.indexOf(String.fromCharCode(s))>=0)return!1;if(i)return!0;let u=t,h=!1;for(;(u++,!(u>=n))&&(r=o=e.bMarks[u]+e.tShift[u],a=e.eMarks[u],!(r<a&&e.sCount[u]<e.blkIndent));)if(e.src.charCodeAt(r)===s&&!(e.sCount[u]-e.blkIndent>=4||(r=e.skipChars(r,s),r-o<l||(r=e.skipSpaces(r),r<a)))){h=!0;break}l=e.sCount[t],e.line=u+(h?1:0);const p=e.push("fence","code",0);return p.info=d,p.content=e.getLines(t+1,u,l,!0),p.markup=c,p.map=[t,e.line],!0},["paragraph","reference","blockquote","list"]],["blockquote",function(e,t,n,i){let r=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];const s=e.lineMax;if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(r))return!1;if(i)return!0;const o=[],l=[],c=[],d=[],u=e.md.block.ruler.getRules("blockquote"),h=e.parentType;e.parentType="blockquote";let p,m=!1;for(p=t;p<n;p++){const t=e.sCount[p]<e.blkIndent;if(r=e.bMarks[p]+e.tShift[p],a=e.eMarks[p],r>=a)break;if(62===e.src.charCodeAt(r++)&&!t){let t,n,i=e.sCount[p]+1;32===e.src.charCodeAt(r)?(r++,i++,n=!1,t=!0):9===e.src.charCodeAt(r)?(t=!0,(e.bsCount[p]+i)%4==3?(r++,i++,n=!1):n=!0):t=!1;let s=i;for(o.push(e.bMarks[p]),e.bMarks[p]=r;r<a;){const t=e.src.charCodeAt(r);if(!Rt(t))break;9===t?s+=4-(s+e.bsCount[p]+(n?1:0))%4:s++,r++}m=r>=a,l.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(t?1:0),c.push(e.sCount[p]),e.sCount[p]=s-i,d.push(e.tShift[p]),e.tShift[p]=r-e.bMarks[p];continue}if(m)break;let i=!1;for(let t=0,r=u.length;t<r;t++)if(u[t](e,p,n,!0)){i=!0;break}if(i){e.lineMax=p,0!==e.blkIndent&&(o.push(e.bMarks[p]),l.push(e.bsCount[p]),d.push(e.tShift[p]),c.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}o.push(e.bMarks[p]),l.push(e.bsCount[p]),d.push(e.tShift[p]),c.push(e.sCount[p]),e.sCount[p]=-1}const f=e.blkIndent;e.blkIndent=0;const g=e.push("blockquote_open","blockquote",1);g.markup=">";const b=[t,0];g.map=b,e.md.block.tokenize(e,t,p),e.push("blockquote_close","blockquote",-1).markup=">",e.lineMax=s,e.parentType=h,b[1]=e.line;for(let n=0;n<d.length;n++)e.bMarks[n+t]=o[n],e.tShift[n+t]=d[n],e.sCount[n+t]=c[n],e.bsCount[n+t]=l[n];return e.blkIndent=f,!0},["paragraph","reference","blockquote","list"]],["hr",function(e,t,n,i){const r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t];const s=e.src.charCodeAt(a++);if(42!==s&&45!==s&&95!==s)return!1;let o=1;for(;a<r;){const t=e.src.charCodeAt(a++);if(t!==s&&!Rt(t))return!1;t===s&&o++}if(o<3)return!1;if(i)return!0;e.line=t+1;const l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(o+1).join(String.fromCharCode(s)),!0},["paragraph","reference","blockquote","list"]],["list",function(e,t,n,i){let r,a,s,o,l=t,c=!0;if(e.sCount[l]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]<e.blkIndent)return!1;let d,u,h,p=!1;if(i&&"paragraph"===e.parentType&&e.sCount[l]>=e.blkIndent&&(p=!0),(h=En(e,l))>=0){if(d=!0,s=e.bMarks[l]+e.tShift[l],u=Number(e.src.slice(s,h-1)),p&&1!==u)return!1}else{if(!((h=xn(e,l))>=0))return!1;d=!1}if(p&&e.skipSpaces(h)>=e.eMarks[l])return!1;if(i)return!0;const m=e.src.charCodeAt(h-1),f=e.tokens.length;d?(o=e.push("ordered_list_open","ol",1),1!==u&&(o.attrs=[["start",u]])):o=e.push("bullet_list_open","ul",1);const g=[l,0];o.map=g,o.markup=String.fromCharCode(m);let b=!1;const y=e.md.block.ruler.getRules("list"),v=e.parentType;for(e.parentType="list";l<n;){a=h,r=e.eMarks[l];const t=e.sCount[l]+h-(e.bMarks[l]+e.tShift[l]);let i=t;for(;a<r;){const t=e.src.charCodeAt(a);if(9===t)i+=4-(i+e.bsCount[l])%4;else{if(32!==t)break;i++}a++}const u=a;let p;p=u>=r?1:i-t,p>4&&(p=1);const f=t+p;o=e.push("list_item_open","li",1),o.markup=String.fromCharCode(m);const g=[l,0];o.map=g,d&&(o.info=e.src.slice(s,h-1));const v=e.tight,w=e.tShift[l],x=e.sCount[l],E=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=f,e.tight=!0,e.tShift[l]=u-e.bMarks[l],e.sCount[l]=i,u>=r&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),e.tight&&!b||(c=!1),b=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=E,e.tShift[l]=w,e.sCount[l]=x,e.tight=v,o=e.push("list_item_close","li",-1),o.markup=String.fromCharCode(m),l=e.line,g[1]=l,l>=n)break;if(e.sCount[l]<e.blkIndent)break;if(e.sCount[l]-e.blkIndent>=4)break;let k=!1;for(let t=0,i=y.length;t<i;t++)if(y[t](e,l,n,!0)){k=!0;break}if(k)break;if(d){if(h=En(e,l),h<0)break;s=e.bMarks[l]+e.tShift[l]}else if(h=xn(e,l),h<0)break;if(m!==e.src.charCodeAt(h-1))break}return o=d?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1),o.markup=String.fromCharCode(m),g[1]=l,e.line=l,e.parentType=v,c&&function(e,t){const n=e.level+2;for(let i=t+2,r=e.tokens.length-2;i<r;i++)e.tokens[i].level===n&&"paragraph_open"===e.tokens[i].type&&(e.tokens[i+2].hidden=!0,e.tokens[i].hidden=!0,i+=2)}(e,f),!0},["paragraph","reference","blockquote"]],["reference",function(e,t,n,i){let r=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],s=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(r))return!1;function o(t){const n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let i=!1;if(e.sCount[t]-e.blkIndent>3&&(i=!0),e.sCount[t]<0&&(i=!0),!i){const i=e.md.block.ruler.getRules("reference"),r=e.parentType;e.parentType="reference";let a=!1;for(let r=0,s=i.length;r<s;r++)if(i[r](e,t,n,!0)){a=!0;break}if(e.parentType=r,a)return null}const r=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];return e.src.slice(r,a+1)}let l=e.src.slice(r,a+1);a=l.length;let c=-1;for(r=1;r<a;r++){const e=l.charCodeAt(r);if(91===e)return!1;if(93===e){c=r;break}if(10===e){const e=o(s);null!==e&&(l+=e,a=l.length,s++)}else if(92===e&&(r++,r<a&&10===l.charCodeAt(r))){const e=o(s);null!==e&&(l+=e,a=l.length,s++)}}if(c<0||58!==l.charCodeAt(c+1))return!1;for(r=c+2;r<a;r++){const e=l.charCodeAt(r);if(10===e){const e=o(s);null!==e&&(l+=e,a=l.length,s++)}else if(!Rt(e))break}const d=e.md.helpers.parseLinkDestination(l,r,a);if(!d.ok)return!1;const u=e.md.normalizeLink(d.str);if(!e.md.validateLink(u))return!1;r=d.pos;const h=r,p=s,m=r;for(;r<a;r++){const e=l.charCodeAt(r);if(10===e){const e=o(s);null!==e&&(l+=e,a=l.length,s++)}else if(!Rt(e))break}let f,g=e.md.helpers.parseLinkTitle(l,r,a);for(;g.can_continue;){const t=o(s);if(null===t)break;l+=t,r=a,a=l.length,s++,g=e.md.helpers.parseLinkTitle(l,r,a,g)}for(r<a&&m!==r&&g.ok?(f=g.str,r=g.pos):(f="",r=h,s=p);r<a;){if(!Rt(l.charCodeAt(r)))break;r++}if(r<a&&10!==l.charCodeAt(r)&&f)for(f="",r=h,s=p;r<a;){if(!Rt(l.charCodeAt(r)))break;r++}if(r<a&&10!==l.charCodeAt(r))return!1;const b=qt(l.slice(1,c));return!!b&&(i||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[b]&&(e.env.references[b]={title:f,href:u}),e.line=s),!0)}],["html_block",function(e,t,n,i){let r=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(r))return!1;let s=e.src.slice(r,a),o=0;for(;o<Sn.length&&!Sn[o][0].test(s);o++);if(o===Sn.length)return!1;if(i)return Sn[o][2];let l=t+1;const c=Sn[o][1].test("");if(!Sn[o][1].test(s))for(;l<n&&(!(e.sCount[l]<e.blkIndent)||!c&&e.isEmpty(l));l++)if(r=e.bMarks[l]+e.tShift[l],a=e.eMarks[l],s=e.src.slice(r,a),Sn[o][1].test(s)){0!==s.length&&l++;break}e.line=l;const d=e.push("html_block","",0);return d.map=[t,l],d.content=e.getLines(t,l,e.blkIndent,!0),!0},["paragraph","reference","blockquote"]],["heading",function(e,t,n,i){let r=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.src.charCodeAt(r);if(35!==s||r>=a)return!1;let o=1;for(s=e.src.charCodeAt(++r);35===s&&r<a&&o<=6;)o++,s=e.src.charCodeAt(++r);if(o>6||r<a&&!Rt(s))return!1;if(i)return!0;a=e.skipSpacesBack(a,r);const l=e.skipCharsBack(a,35,r);l>r&&Rt(e.src.charCodeAt(l-1))&&(a=l),e.line=t+1;const c=e.push("heading_open","h"+String(o),1);c.markup="########".slice(0,o),c.map=[t,e.line];const d=e.push("inline","",0);return d.content=Ut(e.src.slice(r,a)),d.map=[t,e.line],d.children=[],e.push("heading_close","h"+String(o),-1).markup="########".slice(0,o),!0},["paragraph","reference","blockquote"]],["lheading",function(e,t,n){const i=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const r=e.parentType;e.parentType="paragraph";let a,s=0,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 t=e.bMarks[o]+e.tShift[o];const n=e.eMarks[o];if(t<n&&(a=e.src.charCodeAt(t),(45===a||61===a)&&(t=e.skipChars(t,a),t=e.skipSpaces(t),t>=n))){s=61===a?1:2;break}}if(e.sCount[o]<0)continue;let t=!1;for(let r=0,a=i.length;r<a;r++)if(i[r](e,o,n,!0)){t=!0;break}if(t)break}if(!s)return e.parentType=r,!1;const l=Ut(e.getLines(t,o,e.blkIndent,!1));e.line=o+1;const c=e.push("heading_open","h"+String(s),1);c.markup=String.fromCharCode(a),c.map=[t,e.line];const d=e.push("inline","",0);return d.content=l,d.map=[t,e.line-1],d.children=[],e.push("heading_close","h"+String(s),-1).markup=String.fromCharCode(a),e.parentType=r,!0}],["paragraph",function(e,t,n){const i=e.md.block.ruler.getRules("paragraph"),r=e.parentType;let a=t+1;for(e.parentType="paragraph";a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3)continue;if(e.sCount[a]<0)continue;let t=!1;for(let r=0,s=i.length;r<s;r++)if(i[r](e,a,n,!0)){t=!0;break}if(t)break}const s=Ut(e.getLines(t,a,e.blkIndent,!1));e.line=a,e.push("paragraph_open","p",1).map=[t,e.line];const o=e.push("inline","",0);return o.content=s,o.map=[t,e.line],o.children=[],e.push("paragraph_close","p",-1),e.parentType=r,!0}]];function Nn(){this.ruler=new Jt;for(let e=0;e<Dn.length;e++)this.ruler.push(Dn[e][0],Dn[e][1],{alt:(Dn[e][2]||[]).slice()})}function Tn(e,t,n,i){this.src=e,this.env=n,this.md=t,this.tokens=i,this.tokens_meta=Array(i.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}function In(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}}Nn.prototype.tokenize=function(e,t,n){const i=this.ruler.getRules(""),r=i.length,a=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>=a){e.line=n;break}const t=e.line;let l=!1;for(let a=0;a<r;a++)if(l=i[a](e,s,n,!1),l){if(t>=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)}},Nn.prototype.parse=function(e,t,n,i){if(!e)return;const r=new this.State(e,t,n,i);this.tokenize(r,r.line,r.lineMax)},Nn.prototype.State=yn,Tn.prototype.pushPending=function(){const e=new Yt("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},Tn.prototype.push=function(e,t,n){this.pending&&this.pushPending();const i=new Yt(e,t,n);let r=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.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(i),this.tokens_meta.push(r),i},Tn.prototype.scanDelims=function(e,t){const n=this.posMax,i=this.src.charCodeAt(e);let r;if(0===e)r=32;else if(1===e)r=this.src.charCodeAt(0),55296==(63488&r)&&(r=65533);else if(r=this.src.charCodeAt(e-1),56320==(64512&r)){const t=this.src.charCodeAt(e-2);r=55296==(64512&t)?65536+(t-55296<<10)+(r-56320):65533}else 55296==(64512&r)&&(r=65533);let a=e;for(;a<n&&this.src.charCodeAt(a)===i;)a++;const s=a-e;let o=a<n?this.src.charCodeAt(a):32;if(55296==(64512&o)){const e=this.src.charCodeAt(a+1);o=56320==(64512&e)?65536+(o-55296<<10)+(e-56320):65533}else 56320==(64512&o)&&(o=65533);const l=Ht(r)||Pt(r),c=Ht(o)||Pt(o),d=$t(r),u=$t(o),h=!u&&(!c||d||l),p=!d&&(!l||u||c);return{can_open:h&&(t||!p||l),can_close:p&&(t||!h||c),length:s}},Tn.prototype.Token=Yt;const Ln=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;const Mn=[];for(let e=0;e<256;e++)Mn.push(0);function zn(e,t){let n;const i=[],r=t.length;for(let a=0;a<r;a++){const r=t[a];if(126!==r.marker)continue;if(-1===r.end)continue;const s=t[r.end];n=e.tokens[r.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[s.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="","text"===e.tokens[s.token-1].type&&"~"===e.tokens[s.token-1].content&&i.push(s.token-1)}for(;i.length;){const t=i.pop();let r=t+1;for(;r<e.tokens.length&&"s_close"===e.tokens[r].type;)r++;r--,t!==r&&(n=e.tokens[r],e.tokens[r]=e.tokens[t],e.tokens[t]=n)}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){Mn[e.charCodeAt(0)]=1});var Fn={tokenize:function(e,t){const n=e.pos,i=e.src.charCodeAt(n);if(t)return!1;if(126!==i)return!1;const r=e.scanDelims(e.pos,!0);let a=r.length;const s=String.fromCharCode(i);if(a<2)return!1;let o;a%2&&(o=e.push("text","",0),o.content=s,a--);for(let t=0;t<a;t+=2)o=e.push("text","",0),o.content=s+s,e.delimiters.push({marker:i,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},postProcess:function(e){const t=e.tokens_meta,n=e.tokens_meta.length;zn(e,e.delimiters);for(let i=0;i<n;i++)t[i]&&t[i].delimiters&&zn(e,t[i].delimiters)}};function Bn(e,t){for(let n=t.length-1;n>=0;n--){const i=t[n];if(95!==i.marker&&42!==i.marker)continue;if(-1===i.end)continue;const r=t[i.end],a=n>0&&t[n-1].end===i.end+1&&t[n-1].marker===i.marker&&t[n-1].token===i.token-1&&t[i.end+1].token===r.token+1,s=String.fromCharCode(i.marker),o=e.tokens[i.token];o.type=a?"strong_open":"em_open",o.tag=a?"strong":"em",o.nesting=1,o.markup=a?s+s:s,o.content="";const l=e.tokens[r.token];l.type=a?"strong_close":"em_close",l.tag=a?"strong":"em",l.nesting=-1,l.markup=a?s+s:s,l.content="",a&&(e.tokens[t[n-1].token].content="",e.tokens[t[i.end+1].token].content="",n--)}}var On={tokenize:function(e,t){const n=e.pos,i=e.src.charCodeAt(n);if(t)return!1;if(95!==i&&42!==i)return!1;const r=e.scanDelims(e.pos,42===i);for(let t=0;t<r.length;t++){e.push("text","",0).content=String.fromCharCode(i),e.delimiters.push({marker:i,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close})}return e.pos+=r.length,!0},postProcess:function(e){const t=e.tokens_meta,n=e.tokens_meta.length;Bn(e,e.delimiters);for(let i=0;i<n;i++)t[i]&&t[i].delimiters&&Bn(e,t[i].delimiters)}};const Rn=/^([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])?)*)$/,$n=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;const jn=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Pn=/^&([a-z][a-z0-9]{1,31});/i;function Hn(e){const t={},n=e.length;if(!n)return;let i=0,r=-2;const a=[];for(let s=0;s<n;s++){const n=e[s];if(a.push(0),e[i].marker===n.marker&&r===n.token-1||(i=s),r=n.token,n.length=n.length||0,!n.close)continue;t.hasOwnProperty(n.marker)||(t[n.marker]=[-1,-1,-1,-1,-1,-1]);const o=t[n.marker][(n.open?3:0)+n.length%3];let l=i-a[i]-1,c=l;for(;l>o;l-=a[l]+1){const t=e[l];if(t.marker===n.marker&&(t.open&&t.end<0)){let i=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3==0&&n.length%3==0||(i=!0)),!i){const i=l>0&&!e[l-1].open?a[l-1]+1:0;a[s]=s-l+i,a[l]=i,n.open=!1,t.end=s,t.close=!1,c=-1,r=-2;break}}}-1!==c&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=c)}}const qn=[["text",function(e,t){let n=e.pos;for(;n<e.posMax&&!In(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}],["linkify",function(e,t){if(!e.md.options.linkify)return!1;if(e.linkLevel>0)return!1;const n=e.pos;if(n+3>e.posMax)return!1;if(58!==e.src.charCodeAt(n))return!1;if(47!==e.src.charCodeAt(n+1))return!1;if(47!==e.src.charCodeAt(n+2))return!1;const i=e.pending.match(Ln);if(!i)return!1;const r=i[1],a=e.md.linkify.matchAtStart(e.src.slice(n-r.length));if(!a)return!1;let s=a.url;if(s.length<=r.length)return!1;let o=s.length;for(;o>0&&42===s.charCodeAt(o-1);)o--;o!==s.length&&(s=s.slice(0,o));const l=e.md.normalizeLink(s);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-r.length);const t=e.push("link_open","a",1);t.attrs=[["href",l]],t.markup="linkify",t.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(s);const n=e.push("link_close","a",-1);n.markup="linkify",n.info="auto"}return e.pos+=s.length-r.length,!0}],["newline",function(e,t){let n=e.pos;if(10!==e.src.charCodeAt(n))return!1;const i=e.pending.length-1,r=e.posMax;if(!t)if(i>=0&&32===e.pending.charCodeAt(i))if(i>=1&&32===e.pending.charCodeAt(i-1)){let t=i-1;for(;t>=1&&32===e.pending.charCodeAt(t-1);)t--;e.pending=e.pending.slice(0,t),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&&Rt(e.src.charCodeAt(n));)n++;return e.pos=n,!0}],["escape",function(e,t){let n=e.pos;const i=e.posMax;if(92!==e.src.charCodeAt(n))return!1;if(n++,n>=i)return!1;let r=e.src.charCodeAt(n);if(10===r){for(t||e.push("hardbreak","br",0),n++;n<i&&(r=e.src.charCodeAt(n),Rt(r));)n++;return e.pos=n,!0}if(32===r){if(!t){const t=e.push("text_special","",0);t.content="\\",t.markup="\\",t.info="escape"}return e.pos=n,!0}let a=e.src[n];if(r>=55296&&r<=56319&&n+1<i){const t=e.src.charCodeAt(n+1);t>=56320&&t<=57343&&(a+=e.src[n+1],n++)}const s="\\"+a;if(!t){const t=e.push("text_special","",0);r<256&&0!==Mn[r]?t.content=a:t.content=s,t.markup=s,t.info="escape"}return e.pos=n+1,!0}],["backticks",function(e,t){let n=e.pos;if(96!==e.src.charCodeAt(n))return!1;const i=n;n++;const r=e.posMax;for(;n<r&&96===e.src.charCodeAt(n);)n++;const a=e.src.slice(i,n),s=a.length;if(e.backticksScanned&&(e.backticks[s]||0)<=i)return t||(e.pending+=a),e.pos+=s,!0;let o,l=n;for(;-1!==(o=e.src.indexOf("`",l));){for(l=o+1;l<r&&96===e.src.charCodeAt(l);)l++;const i=l-o;if(i===s){if(!t){const t=e.push("code_inline","code",0);t.markup=a,t.content=e.src.slice(n,o).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[i]=o}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=s,!0}],["strikethrough",Fn.tokenize],["emphasis",On.tokenize],["link",function(e,t){let n,i,r,a,s="",o="",l=e.pos,c=!0;if(91!==e.src.charCodeAt(e.pos))return!1;const d=e.pos,u=e.posMax,h=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let m=p+1;if(m<u&&40===e.src.charCodeAt(m)){for(c=!1,m++;m<u&&(n=e.src.charCodeAt(m),Rt(n)||10===n);m++);if(m>=u)return!1;if(l=m,r=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),r.ok){for(s=e.md.normalizeLink(r.str),e.md.validateLink(s)?m=r.pos:s="",l=m;m<u&&(n=e.src.charCodeAt(m),Rt(n)||10===n);m++);if(r=e.md.helpers.parseLinkTitle(e.src,m,e.posMax),m<u&&l!==m&&r.ok)for(o=r.str,m=r.pos;m<u&&(n=e.src.charCodeAt(m),Rt(n)||10===n);m++);}(m>=u||41!==e.src.charCodeAt(m))&&(c=!0),m++}if(c){if(void 0===e.env.references)return!1;if(m<u&&91===e.src.charCodeAt(m)?(l=m+1,m=e.md.helpers.parseLinkLabel(e,m),m>=0?i=e.src.slice(l,m++):m=p+1):m=p+1,i||(i=e.src.slice(h,p)),a=e.env.references[qt(i)],!a)return e.pos=d,!1;s=a.href,o=a.title}if(!t){e.pos=h,e.posMax=p;const t=[["href",s]];e.push("link_open","a",1).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=m,e.posMax=u,!0}],["image",function(e,t){let n,i,r,a,s,o,l,c,d="";const u=e.pos,h=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;const p=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(a=m+1,a<h&&40===e.src.charCodeAt(a)){for(a++;a<h&&(n=e.src.charCodeAt(a),Rt(n)||10===n);a++);if(a>=h)return!1;for(c=a,o=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),o.ok&&(d=e.md.normalizeLink(o.str),e.md.validateLink(d)?a=o.pos:d=""),c=a;a<h&&(n=e.src.charCodeAt(a),Rt(n)||10===n);a++);if(o=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<h&&c!==a&&o.ok)for(l=o.str,a=o.pos;a<h&&(n=e.src.charCodeAt(a),Rt(n)||10===n);a++);else l="";if(a>=h||41!==e.src.charCodeAt(a))return e.pos=u,!1;a++}else{if(void 0===e.env.references)return!1;if(a<h&&91===e.src.charCodeAt(a)?(c=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?r=e.src.slice(c,a++):a=m+1):a=m+1,r||(r=e.src.slice(p,m)),s=e.env.references[qt(r)],!s)return e.pos=u,!1;d=s.href,l=s.title}if(!t){i=e.src.slice(p,m);const t=[];e.md.inline.parse(i,e.md,e.env,t);const n=e.push("image","img",0),r=[["src",d],["alt",""]];n.attrs=r,n.children=t,n.content=i,l&&r.push(["title",l])}return e.pos=a,e.posMax=h,!0}],["autolink",function(e,t){let n=e.pos;if(60!==e.src.charCodeAt(n))return!1;const i=e.pos,r=e.posMax;for(;;){if(++n>=r)return!1;const t=e.src.charCodeAt(n);if(60===t)return!1;if(62===t)break}const a=e.src.slice(i+1,n);if($n.test(a)){const n=e.md.normalizeLink(a);if(!e.md.validateLink(n))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(a);const i=e.push("link_close","a",-1);i.markup="autolink",i.info="auto"}return e.pos+=a.length+2,!0}if(Rn.test(a)){const n=e.md.normalizeLink("mailto:"+a);if(!e.md.validateLink(n))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(a);const i=e.push("link_close","a",-1);i.markup="autolink",i.info="auto"}return e.pos+=a.length+2,!0}return!1}],["html_inline",function(e,t){if(!e.md.options.html)return!1;const n=e.posMax,i=e.pos;if(60!==e.src.charCodeAt(i)||i+2>=n)return!1;const r=e.src.charCodeAt(i+1);if(33!==r&&63!==r&&47!==r&&!function(e){const t=32|e;return t>=97&&t<=122}(r))return!1;const a=e.src.slice(i).match(Cn);if(!a)return!1;if(!t){const t=e.push("html_inline","",0);t.content=a[0],s=t.content,/^<a[>\s]/i.test(s)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(t.content)&&e.linkLevel--}var s;return e.pos+=a[0].length,!0}],["entity",function(e,t){const n=e.pos,i=e.posMax;if(38!==e.src.charCodeAt(n))return!1;if(n+1>=i)return!1;if(35===e.src.charCodeAt(n+1)){const i=e.src.slice(n).match(jn);if(i){if(!t){const t="x"===i[1][0].toLowerCase()?parseInt(i[1].slice(1),16):parseInt(i[1],10),n=e.push("text_special","",0);n.content=Ct(t)?At(t):At(65533),n.markup=i[0],n.info="entity"}return e.pos+=i[0].length,!0}}else{const i=e.src.slice(n).match(Pn);if(i){const n=(r=i[0],wt(r,pt.Strict));if(n!==i[0]){if(!t){const t=e.push("text_special","",0);t.content=n,t.markup=i[0],t.info="entity"}return e.pos+=i[0].length,!0}}}var r;return!1}]],Vn=[["balance_pairs",function(e){const t=e.tokens_meta,n=e.tokens_meta.length;Hn(e.delimiters);for(let e=0;e<n;e++)t[e]&&t[e].delimiters&&Hn(t[e].delimiters)}],["strikethrough",Fn.postProcess],["emphasis",On.postProcess],["fragments_join",function(e){let t,n,i=0;const r=e.tokens,a=e.tokens.length;for(t=n=0;t<a;t++)r[t].nesting<0&&i--,r[t].level=i,r[t].nesting>0&&i++,"text"===r[t].type&&t+1<a&&"text"===r[t+1].type?r[t+1].content=r[t].content+r[t+1].content:(t!==n&&(r[n]=r[t]),n++);t!==n&&(r.length=n)}]];function Un(){this.ruler=new Jt;for(let e=0;e<qn.length;e++)this.ruler.push(qn[e][0],qn[e][1]);this.ruler2=new Jt;for(let e=0;e<Vn.length;e++)this.ruler2.push(Vn[e][0],Vn[e][1])}function Zn(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function Wn(e){return Object.prototype.toString.call(e)}function Kn(e){return"[object Function]"===Wn(e)}function Gn(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}Un.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),i=n.length,r=e.md.options.maxNesting,a=e.cache;if(void 0!==a[t])return void(e.pos=a[t]);let s=!1;if(e.level<r){for(let r=0;r<i;r++)if(e.level++,s=n[r](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++,a[t]=e.pos},Un.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,i=e.posMax,r=e.md.options.maxNesting;for(;e.pos<i;){const a=e.pos;let s=!1;if(e.level<r)for(let i=0;i<n;i++)if(s=t[i](e,!1),s){if(a>=e.pos)throw new Error("inline rule didn't increment state.pos");break}if(s){if(e.pos>=i)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Un.prototype.parse=function(e,t,n,i){const r=new this.State(e,t,n,i);this.tokenize(r);const a=this.ruler2.getRules(""),s=a.length;for(let e=0;e<s;e++)a[e](r)},Un.prototype.State=Tn;const Xn={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};const Jn={"http:":{validate:function(e,t,n){const i=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(i)?i.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const i=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(i)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:i.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const i=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(i)?i.match(n.re.mailto)[0].length:0}}},Yn="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Qn(e){const t=e.re=function(e){const t={};e=e||{},t.src_Any=et.source,t.src_Cc=tt.source,t.src_Z=rt.source,t.src_P=nt.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}(e.__opts__),n=e.__tlds__.slice();function i(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push("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]"),n.push(t.src_xn),t.src_tlds=n.join("|"),t.email_fuzzy=RegExp(i(t.tpl_email_fuzzy),"i"),t.email_fuzzy_global=RegExp(i(t.tpl_email_fuzzy),"ig"),t.link_fuzzy=RegExp(i(t.tpl_link_fuzzy),"i"),t.link_fuzzy_global=RegExp(i(t.tpl_link_fuzzy),"ig"),t.link_no_ip_fuzzy=RegExp(i(t.tpl_link_no_ip_fuzzy),"i"),t.link_no_ip_fuzzy_global=RegExp(i(t.tpl_link_no_ip_fuzzy),"ig"),t.host_fuzzy_test=RegExp(i(t.tpl_host_fuzzy_test),"i");const r=[];function a(e,t){throw new Error(`(LinkifyIt) Invalid schema "${e}": ${t}`)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){const n=e.__schemas__[t];if(null===n)return;const i={validate:null,link:null};if(e.__compiled__[t]=i,"[object Object]"===Wn(n))return!function(e){return"[object RegExp]"===Wn(e)}(n.validate)?Kn(n.validate)?i.validate=n.validate:a(t,n):i.validate=function(e){return function(t,n){const i=t.slice(n);return e.test(i)?i.match(e)[0].length:0}}(n.validate),void(Kn(n.normalize)?i.normalize=n.normalize:n.normalize?a(t,n):i.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===Wn(e)}(n)?a(t,n):r.push(t)}),r.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};const s=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(Gn).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 ei(e,t,n,i){const r=e.slice(n,i);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=i,this.raw=r,this.text=r,this.url=r}function ti(e,t){if(!(this instanceof ti))return new ti(e,t);var n;t||(n=e,Object.keys(n||{}).reduce(function(e,t){return e||Xn.hasOwnProperty(t)},!1)&&(t=e,e={})),this.__opts__=Zn({},Xn,t),this.__schemas__=Zn({},Jn,e),this.__compiled__={},this.__tlds__=Yn,this.__tlds_replaced__=!1,this.re={},Qn(this)}ti.prototype.add=function(e,t){return this.__schemas__[e]=t,Qn(this),this},ti.prototype.set=function(e){return this.__opts__=Zn(this.__opts__,e),this},ti.prototype.test=function(e){if(!e.length)return!1;let t,n;if(this.re.schema_test.test(e))for(n=this.re.schema_search,n.lastIndex=0;null!==(t=n.exec(e));)if(this.testSchemaAt(e,t[2],n.lastIndex))return!0;return!!(this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&e.search(this.re.host_fuzzy_test)>=0&&null!==e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))||!!(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==e.match(this.re.email_fuzzy))},ti.prototype.pretest=function(e){return this.re.pretest.test(e)},ti.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},ti.prototype.match=function(e){const t=[],n=[],i=[],r=[];let a,s,o;function l(e,t){return e?t?e.index!==t.index?e.index<t.index?e:t:e.lastIndex>=t.lastIndex?e:t:e:t}if(!e.length)return null;if(this.re.schema_test.test(e))for(o=this.re.schema_search,o.lastIndex=0;null!==(a=o.exec(e));)s=this.testSchemaAt(e,a[2],o.lastIndex),s&&n.push({schema:a[2],index:a.index+a[1].length,lastIndex:a.index+a[0].length+s});if(this.__opts__.fuzzyLink&&this.__compiled__["http:"])for(o=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,o.lastIndex=0;null!==(a=o.exec(e));)i.push({schema:"",index:a.index+a[1].length,lastIndex:a.index+a[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for(o=this.re.email_fuzzy_global,o.lastIndex=0;null!==(a=o.exec(e));)r.push({schema:"mailto:",index:a.index+a[1].length,lastIndex:a.index+a[0].length});const c=[0,0,0];let d=0;for(;;){const a=[n[c[0]],r[c[1]],i[c[2]]],s=l(l(a[0],a[1]),a[2]);if(!s)break;if(s===a[0]?c[0]++:s===a[1]?c[1]++:c[2]++,s.index<d)continue;const o=new ei(e,s.schema,s.index,s.lastIndex);this.__compiled__[o.schema].normalize(o,this),t.push(o),d=s.lastIndex}return t.length?t:null},ti.prototype.matchAtStart=function(e){if(!e.length)return null;const t=this.re.schema_at_start.exec(e);if(!t)return null;const n=this.testSchemaAt(e,t[2],t[0].length);if(!n)return null;const i=new ei(e,t[2],t.index+t[1].length,t.index+t[0].length+n);return this.__compiled__[i.schema].normalize(i,this),i},ti.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),Qn(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Qn(this),this)},ti.prototype.normalize=function(e){e.schema||(e.url=`http://${e.url}`),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url=`mailto:${e.url}`)},ti.prototype.onCompile=function(){};const ni=2147483647,ii=36,ri=/^xn--/,ai=/[^\0-\x7F]/,si=/[\x2E\u3002\uFF0E\uFF61]/g,oi={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},li=Math.floor,ci=String.fromCharCode;function di(e){throw new RangeError(oi[e])}function ui(e,t){const n=e.split("@");let i="";n.length>1&&(i=n[0]+"@",e=n[1]);const r=function(e,t){const n=[];let i=e.length;for(;i--;)n[i]=t(e[i]);return n}((e=e.replace(si,".")).split("."),t).join(".");return i+r}function hi(e){const t=[];let n=0;const i=e.length;for(;n<i;){const r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<i){const i=e.charCodeAt(n++);56320==(64512&i)?t.push(((1023&r)<<10)+(1023&i)+65536):(t.push(r),n--)}else t.push(r)}return t}const pi=function(e){return e>=48&&e<58?e-48+26:e>=65&&e<91?e-65:e>=97&&e<123?e-97:ii},mi=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},fi=function(e,t,n){let i=0;for(e=n?li(e/700):e>>1,e+=li(e/t);e>455;i+=ii)e=li(e/35);return li(i+36*e/(e+38))},gi=function(e){const t=[],n=e.length;let i=0,r=128,a=72,s=e.lastIndexOf("-");s<0&&(s=0);for(let n=0;n<s;++n)e.charCodeAt(n)>=128&&di("not-basic"),t.push(e.charCodeAt(n));for(let o=s>0?s+1:0;o<n;){const s=i;for(let t=1,r=ii;;r+=ii){o>=n&&di("invalid-input");const s=pi(e.charCodeAt(o++));s>=ii&&di("invalid-input"),s>li((ni-i)/t)&&di("overflow"),i+=s*t;const l=r<=a?1:r>=a+26?26:r-a;if(s<l)break;const c=ii-l;t>li(ni/c)&&di("overflow"),t*=c}const l=t.length+1;a=fi(i-s,l,0==s),li(i/l)>ni-r&&di("overflow"),r+=li(i/l),i%=l,t.splice(i++,0,r)}return String.fromCodePoint(...t)},bi=function(e){const t=[],n=(e=hi(e)).length;let i=128,r=0,a=72;for(const n of e)n<128&&t.push(ci(n));const s=t.length;let o=s;for(s&&t.push("-");o<n;){let n=ni;for(const t of e)t>=i&&t<n&&(n=t);const l=o+1;n-i>li((ni-r)/l)&&di("overflow"),r+=(n-i)*l,i=n;for(const n of e)if(n<i&&++r>ni&&di("overflow"),n===i){let e=r;for(let n=ii;;n+=ii){const i=n<=a?1:n>=a+26?26:n-a;if(e<i)break;const r=e-i,s=ii-i;t.push(ci(mi(i+r%s,0))),e=li(r/s)}t.push(ci(mi(e,0))),a=fi(r,l,o===s),r=0,++o}++r,++i}return t.join("")},yi=function(e){return ui(e,function(e){return ai.test(e)?"xn--"+bi(e):e})},vi=function(e){return ui(e,function(e){return ri.test(e)?gi(e.slice(4).toLowerCase()):e})};const wi={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{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"]}}},commonmark:{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"]}}}},xi=/^(vbscript|javascript|file|data):/,Ei=/^data:image\/(gif|png|jpeg|webp);/;function ki(e){const t=e.trim().toLowerCase();return!xi.test(t)||Ei.test(t)}const _i=["http:","https:","mailto:"];function Ci(e){const t=Je(e,!0);if(t.hostname&&(!t.protocol||_i.indexOf(t.protocol)>=0))try{t.hostname=yi(t.hostname)}catch(e){}return Oe(Re(t))}function Ai(e){const t=Je(e,!0);if(t.hostname&&(!t.protocol||_i.indexOf(t.protocol)>=0))try{t.hostname=vi(t.hostname)}catch(e){}return Fe(Re(t),Fe.defaultChars+"%")}function Si(e,t){if(!(this instanceof Si))return new Si(e,t);t||xt(e)||(t=e||{},e="default"),this.inline=new Un,this.block=new Nn,this.core=new bn,this.renderer=new Xt,this.linkify=new ti,this.validateLink=ki,this.normalizeLink=Ci,this.normalizeLinkText=Ai,this.utils=Wt,this.helpers=kt({},Kt),this.options={},this.configure(e),t&&this.set(t)}function Di(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ni,Ti;function Ii(){if(Ti)return Ni;function e(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach(n=>{const i=t[n],r=typeof i;"object"!==r&&"function"!==r||Object.isFrozen(i)||e(i)}),t}Ti=1;class t{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function i(e,...t){const n=Object.create(null);for(const t in e)n[t]=e[t];return t.forEach(function(e){for(const t in e)n[t]=e[t]}),n}const r=e=>!!e.scope;class a{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=n(e)}openNode(e){if(!r(e))return;const t=((e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map((e,t)=>`${e}${"_".repeat(t+1)}`)].join(" ")}return`${t}${e}`})(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){r(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const s=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class o{constructor(){this.rootNode=s(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=s({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every(e=>"string"==typeof e)?e.children=[e.children.join("")]:e.children.forEach(e=>{o._collapse(e)}))}}class l extends o{constructor(e){super(),this.options=e}addText(e){""!==e&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const n=e.root;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){return new a(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function c(e){return e?"string"==typeof e?e:e.source:null}function d(e){return p("(?=",e,")")}function u(e){return p("(?:",e,")*")}function h(e){return p("(?:",e,")?")}function p(...e){return e.map(e=>c(e)).join("")}function m(...e){const t=function(e){const t=e[e.length-1];return"object"==typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}(e);return"("+(t.capture?"":"?:")+e.map(e=>c(e)).join("|")+")"}function f(e){return new RegExp(e.toString()+"|").exec("").length-1}const g=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function b(e,{joinWith:t}){let n=0;return e.map(e=>{n+=1;const t=n;let i=c(e),r="";for(;i.length>0;){const e=g.exec(i);if(!e){r+=i;break}r+=i.substring(0,e.index),i=i.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?r+="\\"+String(Number(e[1])+t):(r+=e[0],"("===e[0]&&n++)}return r}).map(e=>`(${e})`).join(t)}const y="[a-zA-Z]\\w*",v="[a-zA-Z_]\\w*",w="\\b\\d+(\\.\\d+)?",x="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",E="\\b(0b[01]+)",k={begin:"\\\\[\\s\\S]",relevance:0},_={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[k]},C={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[k]},A=function(e,t,n={}){const r=i({scope:"comment",begin:e,end:t,contains:[]},n);r.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 a=m("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 r.contains.push({begin:p(/[ ]+/,"(",a,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},S=A("//","$"),D=A("/\\*","\\*/"),N=A("#","$"),T={scope:"number",begin:w,relevance:0},I={scope:"number",begin:x,relevance:0},L={scope:"number",begin:E,relevance:0},M={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[k,{begin:/\[/,end:/\]/,relevance:0,contains:[k]}]},z={scope:"title",begin:y,relevance:0},F={scope:"title",begin:v,relevance:0},B={begin:"\\.\\s*"+v,relevance:0};var O=Object.freeze({__proto__:null,APOS_STRING_MODE:_,BACKSLASH_ESCAPE:k,BINARY_NUMBER_MODE:L,BINARY_NUMBER_RE:E,COMMENT:A,C_BLOCK_COMMENT_MODE:D,C_LINE_COMMENT_MODE:S,C_NUMBER_MODE:I,C_NUMBER_RE:x,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})},HASH_COMMENT_MODE:N,IDENT_RE:y,MATCH_NOTHING_RE:/\b\B/,METHOD_GUARD:B,NUMBER_MODE:T,NUMBER_RE:w,PHRASAL_WORDS_MODE:{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/},QUOTE_STRING_MODE:C,REGEXP_MODE:M,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=p(t,/.*\b/,e.binary,/\b.*/)),i({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},TITLE_MODE:z,UNDERSCORE_IDENT_RE:v,UNDERSCORE_TITLE_MODE:F});function R(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function $(e,t){void 0!==e.className&&(e.scope=e.className,delete e.className)}function j(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=R,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function P(e,t){Array.isArray(e.illegal)&&(e.illegal=m(...e.illegal))}function H(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function q(e,t){void 0===e.relevance&&(e.relevance=1)}const V=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach(t=>{delete e[t]}),e.keywords=n.keywords,e.begin=p(n.beforeMatch,d(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},U=["of","and","for","in","not","or","if","then","parent","list","value"];function Z(e,t,n="keyword"){const i=Object.create(null);return"string"==typeof e?r(n,e.split(" ")):Array.isArray(e)?r(n,e):Object.keys(e).forEach(function(n){Object.assign(i,Z(e[n],t,n))}),i;function r(e,n){t&&(n=n.map(e=>e.toLowerCase())),n.forEach(function(t){const n=t.split("|");i[n[0]]=[e,W(n[0],n[1])]})}}function W(e,t){return t?Number(t):function(e){return U.includes(e.toLowerCase())}(e)?0:1}const K={},G=e=>{console.error(e)},X=(e,...t)=>{console.log(`WARN: ${e}`,...t)},J=(e,t)=>{K[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),K[`${e}/${t}`]=!0)},Y=new Error;function Q(e,t,{key:n}){let i=0;const r=e[n],a={},s={};for(let e=1;e<=t.length;e++)s[e+i]=r[e],a[e+i]=!0,i+=f(t[e-1]);e[n]=s,e[n]._emit=a,e[n]._multi=!0}function ee(e){!function(e){e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,delete e.scope)}(e),"string"==typeof e.beginScope&&(e.beginScope={_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope}),function(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw G("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Y;if("object"!=typeof e.beginScope||null===e.beginScope)throw G("beginScope must be object"),Y;Q(e,e.begin,{key:"beginScope"}),e.begin=b(e.begin,{joinWith:""})}}(e),function(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw G("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Y;if("object"!=typeof e.endScope||null===e.endScope)throw G("endScope must be object"),Y;Q(e,e.end,{key:"endScope"}),e.end=b(e.end,{joinWith:""})}}(e)}function te(e){function t(t,n){return new RegExp(c(t),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(n?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=f(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map(e=>e[1]);this.matcherRe=t(b(e,{joinWith:"|"}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const n=t.findIndex((e,t)=>t>0&&void 0!==e),i=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,i)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new n;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=i(e.classNameAliases||{}),function n(a,s){const o=a;if(a.isCompiled)return o;[$,H,ee,V].forEach(e=>e(a,s)),e.compilerExtensions.forEach(e=>e(a,s)),a.__beforeBegin=null,[j,P,q].forEach(e=>e(a,s)),a.isCompiled=!0;let l=null;return"object"==typeof a.keywords&&a.keywords.$pattern&&(a.keywords=Object.assign({},a.keywords),l=a.keywords.$pattern,delete a.keywords.$pattern),l=l||/\w+/,a.keywords&&(a.keywords=Z(a.keywords,e.case_insensitive)),o.keywordPatternRe=t(l,!0),s&&(a.begin||(a.begin=/\B|\b/),o.beginRe=t(o.begin),a.end||a.endsWithParent||(a.end=/\B|\b/),a.end&&(o.endRe=t(o.end)),o.terminatorEnd=c(o.end)||"",a.endsWithParent&&s.terminatorEnd&&(o.terminatorEnd+=(a.end?"|":"")+s.terminatorEnd)),a.illegal&&(o.illegalRe=t(a.illegal)),a.contains||(a.contains=[]),a.contains=[].concat(...a.contains.map(function(e){return function(e){e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return i(e,{variants:null},t)}));if(e.cachedVariants)return e.cachedVariants;if(ne(e))return i(e,{starts:e.starts?i(e.starts):null});if(Object.isFrozen(e))return i(e);return e}("self"===e?a:e)})),a.contains.forEach(function(e){n(e,o)}),a.starts&&n(a.starts,s),o.matcher=function(e){const t=new r;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:"begin"})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(o),o}(e)}function ne(e){return!!e&&(e.endsWithParent||ne(e.starts))}class ie extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const re=n,ae=i,se=Symbol("nomatch"),oe=function(n){const i=Object.create(null),r=Object.create(null),a=[];let s=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",c={disableAutodetect:!0,name:"Plain text",contains:[]};let f={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:l};function g(e){return f.noHighlightRe.test(e)}function b(e,t,n){let i="",r="";"object"==typeof t?(i=e,n=t.ignoreIllegals,r=t.language):(J("10.7.0","highlight(lang, code, ...args) has been deprecated."),J("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),r=e,i=t),void 0===n&&(n=!0);const a={code:i,language:r};A("before:highlight",a);const s=a.result?a.result:y(a.language,a.code,n);return s.code=a.code,A("after:highlight",s),s}function y(e,n,r,a){const l=Object.create(null);function c(e,t){return e.keywords[t]}function d(){if(!S.keywords)return void N.addText(T);let e=0;S.keywordPatternRe.lastIndex=0;let t=S.keywordPatternRe.exec(T),n="";for(;t;){n+=T.substring(e,t.index);const i=_.case_insensitive?t[0].toLowerCase():t[0],r=c(S,i);if(r){const[e,a]=r;if(N.addText(n),n="",l[i]=(l[i]||0)+1,l[i]<=7&&(I+=a),e.startsWith("_"))n+=t[0];else{const n=_.classNameAliases[e]||e;h(t[0],n)}}else n+=t[0];e=S.keywordPatternRe.lastIndex,t=S.keywordPatternRe.exec(T)}n+=T.substring(e),N.addText(n)}function u(){null!=S.subLanguage?function(){if(""===T)return;let e=null;if("string"==typeof S.subLanguage){if(!i[S.subLanguage])return void N.addText(T);e=y(S.subLanguage,T,!0,D[S.subLanguage]),D[S.subLanguage]=e._top}else e=v(T,S.subLanguage.length?S.subLanguage:null);S.relevance>0&&(I+=e.relevance),N.__addSublanguage(e._emitter,e.language)}():d(),T=""}function h(e,t){""!==e&&(N.startScope(t),N.addText(e),N.endScope())}function p(e,t){let n=1;const i=t.length-1;for(;n<=i;){if(!e._emit[n]){n++;continue}const i=_.classNameAliases[e[n]]||e[n],r=t[n];i?h(r,i):(T=r,d(),T=""),n++}}function m(e,t){return e.scope&&"string"==typeof e.scope&&N.openNode(_.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(h(T,_.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),T=""):e.beginScope._multi&&(p(e.beginScope,t),T="")),S=Object.create(e,{parent:{value:S}}),S}function g(e,n,i){let r=function(e,t){const n=e&&e.exec(t);return n&&0===n.index}(e.endRe,i);if(r){if(e["on:end"]){const i=new t(e);e["on:end"](n,i),i.isMatchIgnored&&(r=!1)}if(r){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return g(e.parent,n,i)}function b(e){return 0===S.matcher.regexIndex?(T+=e[0],1):(z=!0,0)}function w(e){const t=e[0],i=n.substring(e.index),r=g(S,e,i);if(!r)return se;const a=S;S.endScope&&S.endScope._wrap?(u(),h(t,S.endScope._wrap)):S.endScope&&S.endScope._multi?(u(),p(S.endScope,e)):a.skip?T+=t:(a.returnEnd||a.excludeEnd||(T+=t),u(),a.excludeEnd&&(T=t));do{S.scope&&N.closeNode(),S.skip||S.subLanguage||(I+=S.relevance),S=S.parent}while(S!==r.parent);return r.starts&&m(r.starts,e),a.returnEnd?0:t.length}let x={};function E(i,a){const o=a&&a[0];if(T+=i,null==o)return u(),0;if("begin"===x.type&&"end"===a.type&&x.index===a.index&&""===o){if(T+=n.slice(a.index,a.index+1),!s){const t=new Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=x.rule,t}return 1}if(x=a,"begin"===a.type)return function(e){const n=e[0],i=e.rule,r=new t(i),a=[i.__beforeBegin,i["on:begin"]];for(const t of a)if(t&&(t(e,r),r.isMatchIgnored))return b(n);return i.skip?T+=n:(i.excludeBegin&&(T+=n),u(),i.returnBegin||i.excludeBegin||(T=n)),m(i,e),i.returnBegin?0:n.length}(a);if("illegal"===a.type&&!r){const e=new Error('Illegal lexeme "'+o+'" for mode "'+(S.scope||"<unnamed>")+'"');throw e.mode=S,e}if("end"===a.type){const e=w(a);if(e!==se)return e}if("illegal"===a.type&&""===o)return T+="\n",1;if(M>1e5&&M>3*a.index){throw new Error("potential infinite loop, way more iterations than matches")}return T+=o,o.length}const _=k(e);if(!_)throw G(o.replace("{}",e)),new Error('Unknown language: "'+e+'"');const C=te(_);let A="",S=a||C;const D={},N=new f.__emitter(f);!function(){const e=[];for(let t=S;t!==_;t=t.parent)t.scope&&e.unshift(t.scope);e.forEach(e=>N.openNode(e))}();let T="",I=0,L=0,M=0,z=!1;try{if(_.__emitTokens)_.__emitTokens(n,N);else{for(S.matcher.considerAll();;){M++,z?z=!1:S.matcher.considerAll(),S.matcher.lastIndex=L;const e=S.matcher.exec(n);if(!e)break;const t=E(n.substring(L,e.index),e);L=e.index+t}E(n.substring(L))}return N.finalize(),A=N.toHTML(),{language:e,value:A,relevance:I,illegal:!1,_emitter:N,_top:S}}catch(t){if(t.message&&t.message.includes("Illegal"))return{language:e,value:re(n),illegal:!0,relevance:0,_illegalBy:{message:t.message,index:L,context:n.slice(L-100,L+100),mode:t.mode,resultSoFar:A},_emitter:N};if(s)return{language:e,value:re(n),illegal:!1,relevance:0,errorRaised:t,_emitter:N,_top:S};throw t}}function v(e,t){t=t||f.languages||Object.keys(i);const n=function(e){const t={value:re(e),illegal:!1,relevance:0,_top:c,_emitter:new f.__emitter(f)};return t._emitter.addText(e),t}(e),r=t.filter(k).filter(C).map(t=>y(t,e,!1));r.unshift(n);const a=r.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(k(e.language).supersetOf===t.language)return 1;if(k(t.language).supersetOf===e.language)return-1}return 0}),[s,o]=a,l=s;return l.secondBest=o,l}function w(e){let t=null;const n=function(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const n=f.languageDetectRe.exec(t);if(n){const t=k(n[1]);return t||(X(o.replace("{}",n[1])),X("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}return t.split(/\s+/).find(e=>g(e)||k(e))}(e);if(g(n))return;if(A("before:highlightElement",{el:e,language:n}),e.dataset.highlighted)return void console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e);if(e.children.length>0&&(f.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(e)),f.throwUnescapedHTML)){throw new ie("One of your code blocks includes unescaped HTML.",e.innerHTML)}t=e;const i=t.textContent,a=n?b(i,{language:n,ignoreIllegals:!0}):v(i);e.innerHTML=a.value,e.dataset.highlighted="yes",function(e,t,n){const i=t&&r[t]||n;e.classList.add("hljs"),e.classList.add(`language-${i}`)}(e,n,a.language),e.result={language:a.language,re:a.relevance,relevance:a.relevance},a.secondBest&&(e.secondBest={language:a.secondBest.language,relevance:a.secondBest.relevance}),A("after:highlightElement",{el:e,result:a,text:i})}let x=!1;function E(){if("loading"===document.readyState)return x||window.addEventListener("DOMContentLoaded",function(){E()},!1),void(x=!0);document.querySelectorAll(f.cssSelector).forEach(w)}function k(e){return e=(e||"").toLowerCase(),i[e]||i[r[e]]}function _(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach(e=>{r[e.toLowerCase()]=t})}function C(e){const t=k(e);return t&&!t.disableAutodetect}function A(e,t){const n=e;a.forEach(function(e){e[n]&&e[n](t)})}Object.assign(n,{highlight:b,highlightAuto:v,highlightAll:E,highlightElement:w,highlightBlock:function(e){return J("10.7.0","highlightBlock will be removed entirely in v12.0"),J("10.7.0","Please use highlightElement now."),w(e)},configure:function(e){f=ae(f,e)},initHighlighting:()=>{E(),J("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:function(){E(),J("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:function(e,t){let r=null;try{r=t(n)}catch(t){if(G("Language definition for '{}' could not be registered.".replace("{}",e)),!s)throw t;G(t),r=c}r.name||(r.name=e),i[e]=r,r.rawDefinition=t.bind(null,n),r.aliases&&_(r.aliases,{languageName:e})},unregisterLanguage:function(e){delete i[e];for(const t of Object.keys(r))r[t]===e&&delete r[t]},listLanguages:function(){return Object.keys(i)},getLanguage:k,registerAliases:_,autoDetection:C,inherit:ae,addPlugin:function(e){!function(e){e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{e["before:highlightBlock"](Object.assign({block:t.el},t))}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{e["after:highlightBlock"](Object.assign({block:t.el},t))})}(e),a.push(e)},removePlugin:function(e){const t=a.indexOf(e);-1!==t&&a.splice(t,1)}}),n.debugMode=function(){s=!1},n.safeMode=function(){s=!0},n.versionString="11.11.1",n.regex={concat:p,lookahead:d,either:m,optional:h,anyNumberOfTimes:u};for(const t in O)"object"==typeof O[t]&&e(O[t]);return Object.assign(n,O),n},le=oe({});return le.newInstance=()=>oe({}),Ni=le,le.HighlightJS=le,le.default=le,Ni}Si.prototype.set=function(e){return kt(this.options,e),this},Si.prototype.configure=function(e){const t=this;if(xt(e)){const t=e;if(!(e=wi[t]))throw new Error('Wrong `markdown-it` preset "'+t+'", 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},Si.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const i=e.filter(function(e){return n.indexOf(e)<0});if(i.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+i);return this},Si.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const i=e.filter(function(e){return n.indexOf(e)<0});if(i.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+i);return this},Si.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Si.prototype.parse=function(e,t){if("string"!=typeof e)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},Si.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Si.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Si.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var Li=Di(Ii());const Mi="[A-Za-z$_][0-9A-Za-z$_]*",zi=["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"],Fi=["true","false","null","undefined","NaN","Infinity"],Bi=["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"],Oi=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Ri=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],$i=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],ji=[].concat(Ri,Bi,Oi);const Pi="[A-Za-z$_][0-9A-Za-z$_]*",Hi=["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"],qi=["true","false","null","undefined","NaN","Infinity"],Vi=["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"],Ui=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Zi=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Wi=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Ki=[].concat(Zi,Vi,Ui);function Gi(e){const t=e.regex,n=Pi,i="<>",r="</>",a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{const n=e[0].length+e.index,i=e.input[n];if("<"===i||","===i)return void t.ignoreMatch();let r;">"===i&&(((e,{after:t})=>{const n="</"+e[0].slice(1);return-1!==e.input.indexOf(n,t)})(e,{after:n})||t.ignoreMatch());const a=e.input.substring(n);((r=a.match(/^\s*=/))||(r=a.match(/^\s+extends\s+/))&&0===r.index)&&t.ignoreMatch()}},s={$pattern:Pi,keyword:Hi,literal:qi,built_in:Ki,"variable.language":Wi},o="[0-9](_?[0-9])*",l=`\\.(${o})`,c="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${c})((${l})|\\.)?|(${l}))[eE][+-]?(${o})\\b`},{begin:`\\b(${c})\\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},u={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},h={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,u],subLanguage:"xml"}},p={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,u],subLanguage:"css"}},m={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,u],subLanguage:"graphql"}},f={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,u]},g={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:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},b=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,h,p,m,f,{match:/\$\d+/},d];u.contains=b.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(b)});const y=[].concat(g,u.contains),v=y.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:["self"].concat(y)}]),w={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:v},x={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,t.concat(n,"(",t.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},E={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:{_:[...Vi,...Ui]}},k={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[w],illegal:/%/};const _={match:t.concat(/\b/,function(e){return t.concat("(?!",e.join("|"),")")}([...Zi,"super","import"].map(e=>`${e}\\s*\\(`)),n,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},C={begin:t.concat(/\./,t.lookahead(t.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},A={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},w]},S="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",D={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(S)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[w]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:v,CLASS_REFERENCE:E},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,h,p,m,f,g,{match:/\$\d+/},d,E,{scope:"attr",match:n+t.lookahead(":"),relevance:0},D,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[g,e.REGEXP_MODE,{className:"function",begin:S,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:s,contains:v}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i,end:r},{match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},k,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[w,e.inherit(e.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},C,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[w]},_,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},x,A,{match:/\$[(.]/}]}}const Xi=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video","defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Ji=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Yi=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Qi=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),er=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();Li.registerLanguage("javascript",function(e){const t=e.regex,n=Mi,i="<>",r="</>",a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{const n=e[0].length+e.index,i=e.input[n];if("<"===i||","===i)return void t.ignoreMatch();let r;">"===i&&(((e,{after:t})=>{const n="</"+e[0].slice(1);return-1!==e.input.indexOf(n,t)})(e,{after:n})||t.ignoreMatch());const a=e.input.substring(n);((r=a.match(/^\s*=/))||(r=a.match(/^\s+extends\s+/))&&0===r.index)&&t.ignoreMatch()}},s={$pattern:Mi,keyword:zi,literal:Fi,built_in:ji,"variable.language":$i},o="[0-9](_?[0-9])*",l=`\\.(${o})`,c="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${c})((${l})|\\.)?|(${l}))[eE][+-]?(${o})\\b`},{begin:`\\b(${c})\\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},u={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},h={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,u],subLanguage:"xml"}},p={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,u],subLanguage:"css"}},m={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,u],subLanguage:"graphql"}},f={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,u]},g={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:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},b=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,h,p,m,f,{match:/\$\d+/},d];u.contains=b.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(b)});const y=[].concat(g,u.contains),v=y.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:["self"].concat(y)}]),w={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:v},x={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,t.concat(n,"(",t.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},E={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:{_:[...Bi,...Oi]}},k={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[w],illegal:/%/},_={match:t.concat(/\b/,function(e){return t.concat("(?!",e.join("|"),")")}([...Ri,"super","import"].map(e=>`${e}\\s*\\(`)),n,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},C={begin:t.concat(/\./,t.lookahead(t.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},A={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},w]},S="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",D={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(S)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[w]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:v,CLASS_REFERENCE:E},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,h,p,m,f,g,{match:/\$\d+/},d,E,{scope:"attr",match:n+t.lookahead(":"),relevance:0},D,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[g,e.REGEXP_MODE,{className:"function",begin:S,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:s,contains:v}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i,end:r},{match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},k,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[w,e.inherit(e.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},C,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[w]},_,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},x,A,{match:/\$[(.]/}]}}),Li.registerLanguage("typescript",function(e){const t=e.regex,n=Gi(e),i=Pi,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],a={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={$pattern:Pi,keyword:Hi.concat(["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"]),literal:qi,built_in:Ki.concat(r),"variable.language":Wi},l={className:"meta",begin:"@"+i},c=(e,t,n)=>{const i=e.contains.findIndex(e=>e.label===t);if(-1===i)throw new Error("can not find mode to replace");e.contains.splice(i,1,n)};Object.assign(n.keywords,o),n.exports.PARAMS_CONTAINS.push(l);const d=n.contains.find(e=>"attr"===e.scope),u=Object.assign({},d,{match:t.concat(i,t.lookahead(/\s*\?:/))});return n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,d,u]),n.contains=n.contains.concat([l,a,s,u]),c(n,"shebang",e.SHEBANG()),c(n,"use_strict",{className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/}),n.contains.find(e=>"func.def"===e.label).relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}),Li.registerLanguage("python",function(e){const t=e.regex,n=/[\p{XID_Start}_]\p{XID_Continue}*/u,i=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],r={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:i,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","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","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"]},a={className:"meta",begin:/^(>>>|\.\.\.) /},s={className:"subst",begin:/\{/,end:/\}/,keywords:r,illegal:/#/},o={begin:/\{\{/,relevance:0},l={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,a],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,a],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,a,o,s]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,a,o,s]},{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:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,o,s]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,o,s]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},c="[0-9](_?[0-9])*",d=`(\\b(${c}))?\\.(${c})|\\b(${c})\\.`,u=`\\b|${i.join("|")}`,h={className:"number",relevance:0,variants:[{begin:`(\\b(${c})|(${d}))[eE][+-]?(${c})[jJ]?(?=${u})`},{begin:`(${d})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${u})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${u})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${u})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${u})`},{begin:`\\b(${c})[jJ](?=${u})`}]},p={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:r,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},m={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:r,contains:["self",a,h,l,e.HASH_COMMENT_MODE]}]};return s.contains=[l,h,a],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:r,illegal:/(<\/|\?)|=>/,contains:[a,h,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},l,p,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[m]},{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:[h,m,l]}]}}),Li.registerLanguage("json",function(e){const t=["true","false","null"],n={scope:"literal",beginKeywords:t.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:t},contains:[{className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},{match:/[{}[\],:]/,className:"punctuation",relevance:0},e.QUOTE_STRING_MODE,n,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}),Li.registerLanguage("yaml",function(e){const t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",i={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,{className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]}]},r=e.inherit(i,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),a={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"},s={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},o={begin:/\{/,end:/\}/,contains:[s],illegal:"\\n",relevance:0},l={begin:"\\[",end:"\\]",contains:[s],illegal:"\\n",relevance:0},c=[{className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},{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}},a,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},o,l,{className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},i],d=[...c];return d.pop(),d.push(r),s.contains=d,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:c}}),Li.registerLanguage("bash",function(e){const t=e.regex,n={},i={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},i]});const r={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},a=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 l={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},c=e.SHEBANG({binary:`(${["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"].join("|")})`,relevance:10}),d={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],literal:["true","false"],built_in:["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset","alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias","set","shopt","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","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"]},contains:[c,e.SHEBANG(),d,l,a,s,{match:/(\/[a-z._-]+)+/},o,{match:/\\"/},{className:"string",begin:/'/,end:/'/},{match:/\\'/},n]}}),Li.registerLanguage("xml",function(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},r={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=e.inherit(r,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:"string"}),o=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:/[\p{L}0-9._:-]+/u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{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:[r,o,s,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[r,a,o,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[o]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{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}]}]}}),Li.registerLanguage("css",function(e){const t=e.regex,n=(e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}))(e),i=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,{begin:/-(webkit|moz|ms|o)-(?=[a-z])/},n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\.[a-zA-Z-][a-zA-Z0-9_-]*",relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Yi.join("|")+")"},{begin:":(:)?("+Qi.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+er.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...i,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...i,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:/@-?\w[\w]*(-\w+)*/},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:"and or not only",attribute:Ji.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...i,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Xi.join("|")+")\\b"}]}}),Li.registerLanguage("sql",function(e){const t=e.regex,n=e.COMMENT("--","$"),i=["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"],r=i,a=["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","add","asc","collation","desc","final","first","last","view"].filter(e=>!i.includes(e)),s={match:t.concat(/\b/,t.either(...r),/\s*\(/),relevance:0,keywords:{built_in:r}};function o(e){return t.concat(/\b/,t.either(...e.map(e=>e.replace(/\s+/,"\\s+"))),/\b/)}const l={scope:"keyword",match:o(["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"]),relevance:0};return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:function(e,{exceptions:t,when:n}={}){const i=n;return t=t||[],e.map(e=>e.match(/\|\d+$/)||t.includes(e)?e:i(e)?`${e}|0`:e)}(a,{when:e=>e.length<3}),literal:["true","false","unknown"],type:["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"],built_in:["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"]},contains:[{scope:"type",match:o(["double precision","large object","with timezone","without timezone"])},l,s,{scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},{scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},{begin:/"/,end:/"/,contains:[{match:/""/}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,{scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0}]}}),Li.registerLanguage("markdown",function(e){const t={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},n={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:e.regex.concat(/\[.+?\]\(/,/[A-Za-z][A-Za-z0-9+.-]*/,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},i={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},r={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},a=e.inherit(i,{contains:[]}),s=e.inherit(r,{contains:[]});i.contains.push(s),r.contains.push(a);let o=[t,n];return[i,r,a,s].forEach(e=>{e.contains=e.contains.concat(o)}),o=o.concat(i,r),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:o},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:o}]}]},t,{className:"bullet",begin:"^[ \t]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},i,r,{className:"quote",begin:"^>\\s+",contains:o,end:"$"},{className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},{begin:"^[-\\*]{3,}",end:"$"},n,{begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}),Li.registerLanguage("diff",function(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}});const tr={js:"javascript",jsx:"javascript",mjs:"javascript",ts:"typescript",tsx:"typescript",py:"python",yml:"yaml",sh:"bash",shell:"bash",zsh:"bash",html:"xml",htm:"xml",md:"markdown"};function nr(e){const t=new Si({html:!1,linkify:!0,breaks:!0,highlight:e?(e,t)=>{const n=function(e){const t=(e||"").trim().toLowerCase();if(!t)return;const n=tr[t]??t;return Li.getLanguage(n)?n:void 0}(t);if(n)try{return Li.highlight(e,{language:n,ignoreIllegals:!0}).value}catch{}return""}:void 0});return t}const ir=nr(!0),rr=nr(!1);const ar={ActivityBar:O,AppBar:q,Statusbar:V,View:re,Views:le,KeyboardShortcuts:ce,Layout:me,ContentTabs:be,PanelTabs:ke,PanelContainers:Ce,PanelLayout:{manager:Me},Profile:n,Markdown:{render:function(e,t){return(!1===t?.highlight?rr:ir).render(String(e??""))},css:".pnc-md { font-size: 14px; line-height: 1.65; word-break: break-word; }\n.pnc-md p { margin: 0 0 8px; }\n.pnc-md p:last-child { margin-bottom: 0; }\n.pnc-md h1, .pnc-md h2, .pnc-md h3,\n.pnc-md h4, .pnc-md h5, .pnc-md h6 {\n margin: 14px 0 6px;\n line-height: 1.3;\n font-weight: 600;\n}\n.pnc-md h1 { font-size: 1.4em; }\n.pnc-md h2 { font-size: 1.25em; }\n.pnc-md h3 { font-size: 1.12em; }\n.pnc-md h4 { font-size: 1em; }\n.pnc-md h5, .pnc-md h6 { font-size: 0.92em; color: var(--text-secondary, #9aa0a6); }\n.pnc-md ul, .pnc-md ol { margin: 0 0 8px; padding-left: 22px; }\n.pnc-md li { margin: 2px 0; }\n.pnc-md li:last-child { margin-bottom: 0; }\n.pnc-md a { color: var(--primary-main, #6ea8fe); text-decoration: underline; }\n.pnc-md blockquote {\n margin: 6px 0;\n padding: 2px 0 2px 12px;\n border-left: 3px solid var(--neutral-main, rgba(127, 127, 127, 0.35));\n color: var(--text-secondary, #9aa0a6);\n}\n.pnc-md table {\n border-collapse: collapse;\n margin: 8px 0;\n font-size: 13px;\n display: block;\n overflow-x: auto;\n}\n.pnc-md th, .pnc-md td {\n border: 1px solid var(--neutral-main, rgba(127, 127, 127, 0.3));\n padding: 4px 8px;\n text-align: left;\n}\n.pnc-md th { background: rgba(127, 127, 127, 0.12); font-weight: 600; }\n\n/* Inline code */\n.pnc-md code {\n font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);\n font-size: 0.92em;\n padding: 1px 5px;\n border-radius: 5px;\n background: rgba(127, 127, 127, 0.16);\n}\n\n/* Fenced code block — fixed dark surface (One Dark), independent of app theme */\n.pnc-md pre {\n margin: 6px 0 10px;\n border-radius: 8px;\n overflow: hidden;\n background: #282c34;\n border: 1px solid rgba(127, 127, 127, 0.28);\n}\n.pnc-md pre code {\n display: block;\n padding: 12px 14px;\n overflow-x: auto;\n background: none;\n border-radius: 0;\n font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);\n font-size: 12.5px;\n line-height: 1.55;\n color: #abb2bf;\n white-space: pre;\n}\n\n/* Code-block chrome (extension-added): top bar with language + copy button */\n.pnc-md-code { position: relative; }\n.pnc-md-code__bar {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 4px 10px;\n background: #21252b;\n border-bottom: 1px solid rgba(127, 127, 127, 0.28);\n font-size: 11px;\n}\n.pnc-md-code__lang {\n color: #7f848e;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n}\n.pnc-md-code__copy {\n border: none;\n background: transparent;\n color: #abb2bf;\n cursor: pointer;\n font-size: 11px;\n padding: 2px 6px;\n border-radius: 4px;\n}\n.pnc-md-code__copy:hover { background: rgba(127, 127, 127, 0.2); }\n.pnc-md-code__copy--done { color: #98c379; }\n\n/* highlight.js — One Dark palette (matches the editor's code coloring) */\n.hljs-comment, .hljs-quote { color: #5c6370; font-style: italic; }\n.hljs-keyword, .hljs-selector-tag, .hljs-literal,\n.hljs-doctag, .hljs-name { color: #c678dd; }\n.hljs-built_in, .hljs-class .hljs-title, .hljs-title.class_,\n.hljs-attr, .hljs-attribute { color: #e5c07b; }\n.hljs-string, .hljs-symbol, .hljs-bullet,\n.hljs-addition, .hljs-regexp { color: #98c379; }\n.hljs-number, .hljs-meta .hljs-number { color: #d19a66; }\n.hljs-title, .hljs-title.function_, .hljs-section { color: #61afef; }\n.hljs-variable, .hljs-template-variable, .hljs-tag,\n.hljs-selector-id, .hljs-selector-class { color: #e06c75; }\n.hljs-meta, .hljs-comment .hljs-doctag { color: #56b6c2; }\n.hljs-deletion { color: #e06c75; }\n.hljs-emphasis { font-style: italic; }\n.hljs-strong { font-weight: 600; }\n"}};class sr{name=i.SHELL.ACTIVITY_BAR;version="1.0.0";dependencies=[i.KERNEL.COMMANDS,i.RUNTIME.WORKSPACE];#Wt=r.CREATED;get state(){return this.#Wt}async bootstrap(e){const{punica:t,registry:n}=e,a=n.getState(i.KERNEL.COMMANDS),s=n.getState(i.RUNTIME.WORKSPACE);if(a!==r.BOOTSTRAPPED)throw new Error("kernel.commands must be bootstrapped before shell.activityBar");if(s!==r.BOOTSTRAPPED)throw new Error("runtime.workspace must be bootstrapped before shell.activityBar");if(!t.shell?.ActivityBar?.manager)throw new Error("ActivityBar manager not available")}async start(e){u.init()}}class or{name="shell.appBar";version="1.0.0";dependencies=[i.KERNEL.COMMANDS,i.SHELL.LAYOUT];#Wt=r.CREATED;get state(){return this.#Wt}async bootstrap(e){const{punica:t,registry:n}=e;if(n.getState(i.KERNEL.COMMANDS)!==r.BOOTSTRAPPED)throw new Error("kernel.commands must be bootstrapped before shell.appBar");if(!t.shell?.Layout?.manager)throw new Error("Layout manager not available")}async start(e){const{punica:t}=e;let n;try{n=t.shell?.Profile?.manager?.registry?.getActive?.()?.shell?.appBar}catch{n=void 0}q.manager.init(n)}}class lr{name=i.SHELL.STATUSBAR;version="1.0.0";dependencies=[i.KERNEL.EVENTS];#Wt=r.CREATED;get state(){return this.#Wt}async bootstrap(e){const{punica:t,registry:n}=e;if(n.getState(i.KERNEL.EVENTS)!==r.BOOTSTRAPPED)throw new Error("kernel.events must be bootstrapped before shell.statusbar");if(!t.shell?.Statusbar?.manager)throw new Error("Statusbar manager not available")}async start(e){}}class cr{name=i.SHELL.VIEW;version="1.0.0";dependencies=[i.KERNEL.COMMANDS];#Wt=r.CREATED;get state(){return this.#Wt}async bootstrap(e){const{punica:t,registry:n}=e;if(n.getState(i.KERNEL.COMMANDS)!==r.BOOTSTRAPPED)throw new Error("kernel.commands must be bootstrapped before shell.view");if(!t.shell?.View)throw new Error("View API not available")}async start(e){const{punica:t}=e;if(x(),t.shell?.View?.Theme?.manager)try{await t.shell.View.Theme.manager.initialize(),console.log("[ViewModule] Theme manager initialized")}catch(e){console.error("[ViewModule] Failed to initialize theme manager:",e)}}}class dr{name=i.SHELL.VIEWS;version="1.0.0";dependencies=[i.SHELL.LAYOUT,i.KERNEL.COMMANDS];#Wt=r.CREATED;get state(){return this.#Wt}async bootstrap(e){const{punica:t,registry:n}=e;if(n.getState(i.SHELL.LAYOUT)!==r.BOOTSTRAPPED)throw new Error("shell.layout must be bootstrapped before shell.views");if(!t.shell?.Views?.manager)throw new Error("Views API not available")}async start(e){}}class ur{name=i.SHELL.KEYBOARD_SHORTCUTS;version="1.0.0";dependencies=[i.KERNEL.COMMANDS];#Wt=r.CREATED;get state(){return this.#Wt}async bootstrap(e){const{punica:t,registry:n}=e;if(n.getState(i.KERNEL.COMMANDS)!==r.BOOTSTRAPPED)throw new Error("kernel.commands must be bootstrapped before shell.keyboardShortcuts");if(!t.shell?.KeyboardShortcuts?.manager)throw new Error("KeyboardShortcuts manager not available")}async start(e){!function(){const e=globalThis.punica?.shell?.KeyboardShortcuts?.manager;if(!e)return;const t=(t,n,i)=>{e.registerShortcut({command:n,keys:[s(t)],when:i})};t("mod+j",a.SHELL.TOGGLE_PANEL),t("mod+b",a.SHELL.TOGGLE_PRIMARY_SIDEBAR),t("mod+l",a.SHELL.TOGGLE_SECONDARY_SIDEBAR)}()}}class hr{name=i.SHELL.LAYOUT;version="1.0.0";dependencies=[i.KERNEL.COMMANDS,i.RUNTIME.WORKSPACE];#Wt=r.CREATED;get state(){return this.#Wt}async bootstrap(e){const{punica:t,registry:n}=e,a=n.getState(i.KERNEL.COMMANDS),s=n.getState(i.RUNTIME.WORKSPACE);if(a!==r.BOOTSTRAPPED)throw new Error("kernel.commands must be bootstrapped before shell.layout");if(s!==r.BOOTSTRAPPED)throw new Error("runtime.workspace must be bootstrapped before shell.layout");if(!t.shell?.Layout?.manager)throw new Error("Layout manager not available")}async start(e){}}class pr{name=i.SHELL.CONTENT_TABS;version="1.0.0";dependencies=[i.KERNEL.COMMANDS];#Wt=r.CREATED;get state(){return this.#Wt}async bootstrap(e){const{punica:t,registry:n}=e;if(n.getState(i.KERNEL.COMMANDS)!==r.BOOTSTRAPPED)throw new Error("kernel.commands must be bootstrapped before shell.contentTabs");if(!t.shell?.ContentTabs)throw new Error("ContentTabs API not available")}async start(e){const{punica:t}=e;t.runtime.fileOperations?.registerParticipant({id:"shell.contentTabs",didRename:({oldPath:e,newPath:n})=>{t.shell.ContentTabs.rename(e,n)},didDelete:({path:e})=>{t.shell.ContentTabs.forceClose(e)}})}}class mr{name=i.SHELL.PANEL_TABS;version="1.0.0";dependencies=[i.KERNEL.COMMANDS];#Wt=r.CREATED;get state(){return this.#Wt}async bootstrap(e){const{punica:t,registry:n}=e;if(n.getState(i.KERNEL.COMMANDS)!==r.BOOTSTRAPPED)throw new Error("kernel.commands must be bootstrapped before shell.panelTabs");if(!t.shell?.PanelTabs)throw new Error("PanelTabs API not available")}async start(e){}}class fr{name=i.SHELL.PANEL_LAYOUT;version="1.0.0";dependencies=[i.KERNEL.COMMANDS];#Wt=r.CREATED;get state(){return this.#Wt}async bootstrap(e){const{punica:t}=e;if(!t.shell?.PanelLayout?.manager)throw new Error("PanelLayout API not available")}async start(e){try{await e.punica.shell.PanelLayout.manager.load()}catch(e){console.warn("[PanelLayout] load during start failed",e)}}}const gr=["<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 99.21 99.21'>","<circle cx='49.61' cy='49.61' r='49.61' fill='#0870fd'/>","<g fill='none' stroke='#fff' stroke-width='5' stroke-miterlimit='10' stroke-linecap='round'>","<path d='M86.3,53.2c.13-1.24.19-2.5.19-3.77,0-20.37-16.51-36.88-36.88-36.88-8.01,0-15.42,2.55-21.47,6.89l.14-.08c-2.19,1.49-2.76,4.48-1.27,6.67s4.48,2.76,6.67,1.27c0,0,14.81-10.43,30.03-.12l.14.08-.14-.08c2.19,1.49,2.76,4.48,1.27,6.67-1.49,2.19-4.48,2.76-6.67,1.27,0,0-10.17-7.22-19.87,1.26'/>","<circle cx='34.55' cy='40.56' r='4.96' fill='#fff'/>","<circle cx='13.8' cy='40.56' r='4.96' fill='#fff'/>","<circle cx='66.75' cy='58.16' r='4.96' opacity='.99'/>","<circle cx='85.41' cy='58.16' r='4.96' opacity='.99'/>","<path d='M13.99,46.01c-.13,1.24-.19,2.5-.19,3.77,0,20.37,16.51,36.88,36.88,36.88,8.01,0,15.42-2.55,21.47-6.89l-.14.08c2.19-1.49,2.76-4.48,1.27-6.67-1.49-2.19-4.48-2.76-6.67-1.27,0,0-14.81,10.43-30.03.12l-.14-.08.14.08c-2.19-1.49-2.76-4.48-1.27-6.67s4.48-2.76,6.67-1.27c0,0,10.17,7.22,19.87-1.26'/>","</g></svg>"].join(""),br={schemaVersion:"1",identity:{id:"ivyx-classic",name:"ivyx",version:"1.0.0",audience:"ml-engineer",branding:{productName:"IVYX Studio",logo:`data:image/svg+xml,${encodeURIComponent(gr)}`}},shell:{activeModules:["shell.activityBar","shell.statusbar","shell.view","shell.keyboardShortcuts","shell.layout","shell.views","shell.appBar","shell.contentTabs","shell.panelTabs","shell.panelLayout","flow.shell"],layout:{id:"classic-editor",root:{type:"row",sizes:[70,30],children:[{type:"column",sizes:[80,20],children:[{type:"slot",id:"content",role:"content"},{type:"slot",id:"panel",role:"panel"}]},{type:"slot",id:"secondarySidebar",role:"secondarySidebar"}]}},appBar:{height:30,title:"workspace",items:[]}},theme:{mode:"auto",density:"comfortable",branding:{productName:"IVYX Studio"}},capabilities:{allowedIds:"*"},localization:{default:"en",supported:["en","tr"]}},yr={schemaVersion:"1",identity:{id:"agent-ops-console",name:"Agent Ops Console",version:"1.0.0",audience:"compliance-officer",branding:{productName:"Agent Ops Console"}},shell:{activeModules:["shell.statusbar","shell.view","shell.layout","shell.views","shell.contentTabs"],layout:{id:"agent-ops-dashboard",root:{type:"column",sizes:[100],children:[{type:"slot",id:"content",role:"content"}]}}},theme:{mode:"dark",density:"compact",branding:{productName:"Agent Ops Console"}},capabilities:{allowedIds:["capability.catalog","capability.schemaExport","event.query","event.replay","llm.listProviders","workspace.get","fs.read","fs.stat","fs.exists","fs.list","fs.snapshot","approval.grant","approval.revoke","delegation.create","flow.validate","cost.report"],deniedIds:["fs.write","fs.delete","fs.copy","fs.migrate","fs.restore","workspace.create","workspace.delete","secrets.set","secrets.delete","vcs.commit","vcs.push"],allowedOrigins:["core","extension","instruction-class"]}};function vr(){o({facade:ar,moduleFactories:{"shell.statusbar":()=>new lr,"shell.view":()=>new cr,"shell.views":()=>new dr,"shell.keyboardShortcuts":()=>new ur,"shell.contentTabs":()=>new pr,"shell.panelTabs":()=>new mr,"shell.panelLayout":()=>new fr,"shell.layout":()=>new hr,"shell.activityBar":()=>new sr,"shell.appBar":()=>new or},profiles:[br,yr],defaultProfileId:"ivyx-classic"})}export{vr as registerClassicShell};
|
|
1
|
+
import{emitShellEvent as e,isHeadlessScope as t,Profile as n,MODULE_NAMES as i,ModuleLifecycleState as r,COMMAND_IDS as a,parseKeyChord as s,registerShell as o}from"@punica/editor";const l="shell-classic-sidebar-dock-style",c="sidebar.width";function d(){return globalThis.punica?.extensions?.settings?.manager??null}const u=new class{#e=!1;#t="drawer";#n=!1;#i=300;#r=null;#a=null;#s=null;#o=!1;init(){this.#e||(this.#e=!0,this.#l(),this.#c(),this.#d(),this.#u())}getMode(){return this.#t}isVisible(){return this.#n}setVisible(e){this.#n=e,this.#e?this.#u():this.init()}setDismissHandler(e){this.#s=e}getWidth(){return this.#h(this.#i)}#l(){if(document.getElementById(l))return;const e=document.createElement("style");e.id=l,e.textContent="/* `:not(.layout-welcome)` keeps the welcome profile's full-bleed single-column\n grid intact: it is defined with the same specificity in the host stylesheet,\n so this injected rule would otherwise win on order alone and re-introduce a\n sidebar track the welcome layout has no element for. */\n#punica-editor[data-sidebar-mode='docked']:not(.layout-welcome) {\n grid-template-columns: 48px var(--primary-sidebar-width, 300px) 1fr;\n grid-template-areas:\n 'activityBar primarySidebar mainContent'\n 'statusBar statusBar statusBar';\n}\n#punica-editor[data-sidebar-mode='docked'][data-sidebar-collapsed='true']:not(.layout-welcome) {\n grid-template-columns: 48px 0 1fr;\n}\n#punica-editor[data-sidebar-mode='docked'] #primarySidebar {\n grid-area: primarySidebar;\n /* Containing block for the resize handle. */\n position: relative;\n top: auto;\n bottom: auto;\n left: auto;\n width: auto;\n min-width: 0;\n height: 100%;\n transform: none;\n transition: none;\n /* The resize handle draws the separator (a split gutter line), so the host's\n border would stack a second line next to it. */\n border-right: 0;\n /* The handle is positioned against this box, so this box must not scroll:\n an absolutely positioned child of a scroll container scrolls away with the\n content, which cut the separator short. `Layout` gives the primary\n sidebar's view hosts the scrolling instead. */\n overflow: hidden;\n /* In flow now, but it must still outrank the contextual drawer: that drawer\n slides in from off-screen left and has to look like it comes out from\n UNDER the sidebar, not sweep across the top of it. Same rank the host\n gives the sidebar in drawer mode; menus and popovers live at\n --zindex-popover, far above this. */\n z-index: calc(var(--zindex-drawer, 1200) + 1);\n}\n/* `:not(:empty)` is required: `#contentSidebar:empty` in the host stylesheet is\n the only thing that closes the contextual drawer, and this two-id selector\n would otherwise outrank it and pin the drawer open forever. */\n#punica-editor[data-sidebar-mode='docked'] #contentSidebar:not(:empty) {\n transform: translateX(calc(48px + var(--primary-sidebar-width, 300px)));\n}\n#punica-editor[data-sidebar-mode='docked'][data-sidebar-collapsed='true'] #contentSidebar:not(:empty) {\n transform: translateX(48px);\n}\n/* The contextual drawer's offset follows the sidebar width, and the host gives\n it a 225ms transform transition — which would make it trail behind the\n pointer during a drag. Pin it to the sidebar while resizing. */\n#punica-editor[data-sidebar-resizing='true'] #contentSidebar {\n transition: none;\n}\n/* The handle is a `punica-split` gutter, restated in plain CSS: the sidebar is\n not a split pane (it is an overlay in drawer mode), but it must not look\n different from the right sidebar's separator. Same anatomy as the component's\n shadow style — a gutter-sized invisible lane carrying a 2px line, neutral at\n rest and highlighted while hovered, focused or dragged. The component's\n `--split-*` tokens live on its own `:host`, so they cannot be inherited out\n here; the fallbacks repeat its values and a host that defines them globally\n still wins. */\n#primarySidebar-resizer {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n width: var(--split-gutter-size, 8px);\n cursor: col-resize;\n background: transparent;\n /* Above sidebar content: view headers are sticky with `z-index: 1` and an\n opaque background, and the view host is appended after this handle, so at\n equal rank the header would paint over the top of the separator line and\n leave it short. */\n z-index: 5;\n outline: none;\n}\n#primarySidebar-resizer::before {\n content: '';\n position: absolute;\n top: 0;\n bottom: 0;\n /* Flush with the sidebar edge, over the host's 1px border, so the separator\n reads as one 2px line instead of a line plus a border. */\n right: 0;\n width: 2px;\n background: var(--split-gutter-color, var(--neutral-main));\n transition: background\n var(--split-transition, 120ms cubic-bezier(0.4, 0, 0.2, 1));\n}\n#primarySidebar-resizer:hover::before,\n#primarySidebar-resizer:focus-visible::before,\n#punica-editor[data-sidebar-resizing='true'] #primarySidebar-resizer::before {\n background: var(--split-gutter-hover, var(--highlight));\n}\n",document.head.appendChild(e)}#p(){try{const e=globalThis.punica?.shell?.Layout?.manager?.getSlot?.("primarySidebar");return e?.content??null}catch{return null}}#m(){const e=this.#p();return e?.parentElement??document.getElementById("punica-editor")}#f(){try{const e=globalThis.punica?.shell?.Layout?.manager?.getSlot?.("activityBar"),t=e?.content?.getBoundingClientRect?.().width;if("number"==typeof t&&t>0)return t}catch{}return 48}#u(){const e=this.#p(),t=this.#m();e&&t&&(t.dataset.sidebarMode=this.#t,t.dataset.sidebarCollapsed=this.#n?"false":"true",e.classList.toggle("primarySidebar-hidden",!this.#n),this.#g(t),"docked"===this.#t?(this.#b(),this.#y(e)):(this.#v(),this.#n?this.#w(t):this.#b()))}#g(e){const t=e??this.#m();t&&t.style.setProperty("--primary-sidebar-width",`${this.#h(this.#i)}px`)}#h(e){const t="undefined"!=typeof window?window.innerWidth:0,n=t>0?Math.min(720,Math.max(180,.6*t)):720,i=Math.min(Math.max(e,180),n);return Math.round(i)}#c(){try{const e=d()?.get?.("system",c),t="string"==typeof e?Number(e):e;"number"==typeof t&&Number.isFinite(t)&&t>0&&(this.#i=t)}catch{}}#x(){const e=d();e?.set&&Promise.resolve(e.set("system",c,this.#h(this.#i),"global")).catch(e=>{console.warn("[SidebarDock] failed to persist sidebar width",e)})}#E(e,t){this.#i=this.#h(e),this.#g(null),t&&this.#x()}#d(){const e="undefined"!=typeof window&&"function"==typeof window.matchMedia?window.matchMedia("(min-width: 1024px)"):null;if(this.#t=e?.matches?"docked":"drawer","undefined"==typeof window)return;const t=e=>{const t=e.matches?"docked":"drawer";t!==this.#t&&(this.#t=t,this.#u())};e?.addEventListener?e.addEventListener("change",e=>t(e)):"function"==typeof e?.addListener&&e.addListener(t),window.addEventListener("resize",()=>this.#g(null))}#w(e){if(!this.#r){const e=document.createElement("div");e.id="primarySidebar-scrim",e.setAttribute("style","position:absolute;inset:0;background:transparent;z-index:calc(var(--zindex-drawer, 1200) - 1);"),e.addEventListener("pointerdown",()=>this.#s?.()),this.#r=e}this.#r.parentElement!==e&&e.appendChild(this.#r),this.#r.style.display="block"}#b(){this.#r&&(this.#r.style.display="none")}#y(e){if(!this.#a){const e=document.createElement("div");e.id="primarySidebar-resizer",e.setAttribute("role","separator"),e.setAttribute("aria-orientation","vertical"),e.setAttribute("aria-label","Resize primary side bar"),e.tabIndex=0,e.addEventListener("pointerdown",e=>this.#k(e)),e.addEventListener("keydown",e=>this.#_(e)),e.addEventListener("dblclick",()=>this.#E(300,!0)),this.#a=e}this.#a.parentElement!==e&&e.appendChild(this.#a),this.#a.style.display=this.#n?"block":"none"}#v(){const e=this.#a?.parentElement;e&&this.#a&&e.removeChild(this.#a)}#k(e){if("docked"!==this.#t||!this.#n||this.#o)return;e.preventDefault(),this.#o=!0;const t=this.#f(),n=this.#m();n&&(n.dataset.sidebarResizing="true");try{this.#a?.setPointerCapture?.(e.pointerId)}catch{}let i=null,r=null;const a="function"==typeof requestAnimationFrame?requestAnimationFrame:null,s=()=>{if(r=null,null===i)return;const e=i;i=null,this.#E(e,!1)},o=e=>{i=e.clientX-t,a?null===r&&(r=a(s)):s()},l=()=>{window.removeEventListener("pointermove",o),window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",l),null!==r&&"function"==typeof cancelAnimationFrame&&(cancelAnimationFrame(r),r=null),s(),document.documentElement.style.removeProperty("user-select"),n&&delete n.dataset.sidebarResizing,this.#o=!1,this.#x()};window.addEventListener("pointermove",o),window.addEventListener("pointerup",l),window.addEventListener("pointercancel",l),document.documentElement.style.setProperty("user-select","none")}#_(e){if("ArrowLeft"!==e.key&&"ArrowRight"!==e.key)return;e.preventDefault();const t=e.shiftKey?64:16,n="ArrowLeft"===e.key?-t:t;this.#E(this.#h(this.#i)+n,!0)}};const h="punica-status-dot-styles";function p(e,t){!function(){if("undefined"==typeof document)return;if(document.getElementById(h))return;const e=document.createElement("style");e.id=h,e.textContent=".punica-status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--text-disabled, #6d6d6d); }\n.punica-status-dot--running, .punica-status-dot--success { background: var(--success-main, #4caf50); box-shadow: 0 0 5px rgba(76,175,80,0.7); }\n.punica-status-dot--busy, .punica-status-dot--paused, .punica-status-dot--warning { background: var(--warning-main, #ff9800); }\n.punica-status-dot--stopped, .punica-status-dot--idle { background: var(--text-disabled, #6d6d6d); }\n.punica-status-dot--error { background: var(--error-main, #e5534b); }\n.punica-status-dot--pulse { animation: punica-status-pulse 1.6s ease-in-out infinite; }\n@keyframes punica-status-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }\n@media (prefers-reduced-motion: reduce) { .punica-status-dot--pulse { animation: none; } }\n",document.head.appendChild(e)}();const n=document.createElement("span");let i=`punica-status-dot punica-status-dot--${e}`;return t?.pulse&&(i+=" punica-status-dot--pulse"),t?.className&&(i+=` ${t.className}`),n.className=i,n}const m=new Set(["headline1","headline2","headline3","headline4","headline5","headline6","subtitle1","subtitle2","body1","body2","button","caption","overline"]);function f(e){return"string"==typeof e&&m.has(e)}const g=new Set(["thin","regular","medium","semi-bold","bold","extra-bold"]);function b(e){return"string"==typeof e&&g.has(e)}function y(e,t,n){const i=document.createElement("punica-button");if(e.includes("<")||e.includes("<")?i.innerHTML=e:i.textContent=e,!1!==n?.rounded&&i.setAttribute("rounded",""),i.setAttribute("size",n?.size??"small"),i.setAttribute("variant",n?.variant??"outlined"),n?.color&&i.setAttribute("color",n.color),n?.disabled&&i.setAttribute("disabled",""),n?.fullwidth&&i.setAttribute("fullwidth",""),n?.attrs)for(const[e,t]of Object.entries(n.attrs))i.setAttribute(e,t);if(n?.style&&("string"==typeof n.style?i.setAttribute("style",n.style):Object.assign(i.style,n.style)),n?.className&&(i.className=n.className),n?.icon){const e=document.createElement("punica-icon");e.setAttribute("slot","startIcon");const t=document.createElement("i");t.className=n.icon,e.appendChild(t),i.appendChild(e)}return n?.disabled||i.addEventListener("click",e=>t(e)),i}function v(e,t){const n=document.createElement("punica-typography");if(n.textContent=e,f(t?.variant)&&n.setAttribute("variant",t.variant),t?.color&&n.setAttribute("color",t.color),b(t?.fontWeight)&&n.setAttribute("fontweight",t.fontWeight),t?.attrs)for(const[e,i]of Object.entries(t.attrs))("variant"!==e||f(i))&&("fontweight"!==e||b(i))&&n.setAttribute(e,i);return t?.style&&("string"==typeof t.style?n.setAttribute("style",t.style):Object.assign(n.style,t.style)),t?.className&&(n.className=t.className),n}const w="punica-secret-adornment-styles";function x(){if("undefined"==typeof document)return;if(document.getElementById(w))return;const e=document.createElement("style");e.id=w,e.textContent="/* The key marks an input whose value is a credential. It is the Secret\n Manager's own glyph, so a token field and the panel that stores it read as\n the same thing.\n\n Decorative only: aria-hidden on the element, pointer-events off here, and no\n tab stop — there is nothing to click. `punica-input` lays its shadow root out\n as a flex row whose inner input is width:100% with the default flex-shrink,\n so without `flex: 0 0 auto` the input's greed squeezes the glyph away. */\npunica-input > .punica-secret-adornment {\n flex: 0 0 auto;\n font-size: 12px;\n color: var(--text-secondary, #8a8a8a);\n opacity: 0.75;\n pointer-events: none;\n}\n",document.head.appendChild(e)}const E="punica-search-adornment-styles";const k="punica-list-view-item-styles";const _="punica-card-styles";function C(){if("undefined"==typeof document)return;if(document.getElementById(_))return;const e=document.createElement("style");e.id=_,e.textContent='.punica-card { position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; background: var(--background-paper, rgba(255,255,255,0.03)); cursor: pointer; user-select: none; }\n.punica-card:hover { background: var(--neutral-main, rgba(127,127,127,0.14)); }\n.punica-card--selected { background: var(--neutral-main, rgba(127,127,127,0.2)); }\n.punica-card--inactive { opacity: 0.55; }\n.punica-card-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }\n.punica-card-name { font-size: 13px; font-weight: 600; color: var(--text-primary, inherit); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.punica-card-sub { font-size: 12px; color: var(--text-secondary, #8a8a8a); opacity: 0.75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.punica-card-meta { font-size: 11px; font-family: var(--font-mono, ui-monospace, monospace); font-variant-numeric: tabular-nums; color: var(--text-secondary, #8a8a8a); flex-shrink: 0; margin-left: auto; }\n.punica-card-icon { flex-shrink: 0; width: 16px; text-align: center; color: var(--text-secondary, #8a8a8a); font-size: 13px; }\n.punica-group-header { display: flex; align-items: center; gap: 6px; font-size: 9.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-secondary, #8a8a8a); opacity: 0.8; padding: 6px 4px 2px 6px; }\n.punica-group-header::after { content: ""; flex: 1; height: 1px; background: var(--divider, rgba(128,128,128,0.25)); opacity: 0.4; }\n',document.head.appendChild(e)}const A="punica-empty-state-styles";const S="punica-capability-styles";function D(e,t,n){const i=document.createElement("span");i.className=`json-view-${n}`,i.textContent=t,e.appendChild(i)}function N(e,t,n){const i=" ".repeat(n);if(null===t)return D(e,"null","null");if("boolean"==typeof t)return D(e,String(t),"boolean");if("number"==typeof t)return D(e,String(t),"number");if("string"==typeof t)return D(e,JSON.stringify(t),"string");if(Array.isArray(t))return e.appendChild(document.createTextNode("[\n")),t.forEach((r,a)=>{e.appendChild(document.createTextNode(`${i} `)),N(e,r,n+1),a<t.length-1&&e.appendChild(document.createTextNode(",")),e.appendChild(document.createTextNode("\n"))}),void e.appendChild(document.createTextNode(`${i}]`));if("object"==typeof t){const r=Object.keys(t);e.appendChild(document.createTextNode("{\n")),r.forEach((a,s)=>{e.appendChild(document.createTextNode(`${i} `)),D(e,JSON.stringify(a),"key"),e.appendChild(document.createTextNode(": ")),N(e,t[a],n+1),s<r.length-1&&e.appendChild(document.createTextNode(",")),e.appendChild(document.createTextNode("\n"))}),e.appendChild(document.createTextNode(`${i}}`))}}function T(e){const t=document.createElement("pre");return t.className="json-view cap-schema-code",N(t,e,0),t}function I(e){const t=document.createElement("div");return t.className="cap-detail-section",t.textContent=e,t}function L(e){const t=document.createElement("div");return t.className="cap-detail-meta cap-detail-note",t.textContent=e,t}function M(e,t){const n=document.createElement("span");return n.className=`cap-pill cap-pill-${t}`,n.textContent=e,n}function z(e,t,n){const i=[`source: ${n.source||"unknown"}`];t.id&&i.push(`id: ${t.id}`),t.version&&i.push(`version: ${t.version}`);const r=t.policy?.approval;r&&i.push(`approval: ${r}`),t.sideEffects&&t.sideEffects.length>0&&i.push(`sideEffects: ${t.sideEffects.join(", ")}`);const a=document.createElement("div");if(a.className="cap-detail-meta",a.textContent=i.join(" · "),e.appendChild(a),e.appendChild(I("Inputs")),t.inputs?.schema?e.appendChild(T(t.inputs.schema)):e.appendChild(L("This capability takes no input parameters.")),e.appendChild(I("Outputs")),t.outputs){const n=t.outputs;if("event"===n.kind){const t=[];n.resultEvent&&t.push(`success → ${n.resultEvent}`),n.errorEvent&&t.push(`error → ${n.errorEvent}`);const i=document.createElement("div");i.className="cap-detail-meta",i.textContent=t.length?`Emits an event on completion (${t.join(" · ")}).`:"Emits an event on completion.",e.appendChild(i)}else if("direct"===n.kind)e.appendChild(L("Returns a value directly to the caller."));else if(n.kind){const t=document.createElement("div");t.className="cap-detail-meta",t.textContent=`kind: ${n.kind}`,e.appendChild(t)}n.schema?(e.appendChild(I("Result payload")),e.appendChild(T(n.schema))):e.appendChild(L("Result payload shape is not documented."))}else e.appendChild(L("No outputs declared."));if(t.tags&&t.tags.length>0){e.appendChild(I("Tags"));const n=document.createElement("div");n.className="cap-detail-tags";for(const e of t.tags){const t=document.createElement("span");t.className="cap-tag",t.textContent=e,n.appendChild(t)}e.appendChild(n)}if(n.extraSections)for(const t of n.extraSections)e.appendChild(t);const s=document.createElement("button");s.type="button",s.className="cap-detail-raw-toggle",s.textContent="Show raw definition";const o=T(t);o.style.display="none",s.addEventListener("click",()=>{const e="none"===o.style.display;o.style.display=e?"block":"none",s.textContent=e?"Hide raw definition":"Show raw definition"}),e.appendChild(I("Raw")),e.appendChild(s),e.appendChild(o)}const F={createElement:function(e,t){const n=document.createElement(e);if(t?.attrs)for(const[e,i]of Object.entries(t.attrs))n.setAttribute(e,i);if(t?.text&&(n.textContent=t.text),t?.children&&t.children.forEach(e=>n.appendChild(e)),t?.style&&("string"==typeof t.style?n.setAttribute("style",t.style):Object.assign(n.style,t.style)),t?.className&&(n.className=t.className),t?.on)for(const[e,i]of Object.entries(t.on))n.addEventListener(e,i);return n},createSidebarCard:function(e){C();const t=document.createElement("div");let n="punica-card";if(e.inactive&&(n+=" punica-card--inactive"),e.selected&&(n+=" punica-card--selected"),t.className=n,t.dataset.nodeId=e.id,e.data)for(const[n,i]of Object.entries(e.data))t.dataset[n]=i;if(e.title&&(t.title=e.title),e.dot)t.appendChild(p(e.dot));else if(e.icon){const n=document.createElement("span");n.className="punica-card-icon";const i=document.createElement("i");i.className=e.icon,n.appendChild(i),t.appendChild(n)}const i=document.createElement("div");i.className="punica-card-main";const r=document.createElement("div");if(r.className="punica-card-name",r.textContent=e.name,i.appendChild(r),e.sub){const t=document.createElement("div");t.className="punica-card-sub",t.textContent=e.sub,i.appendChild(t)}if(t.appendChild(i),e.meta){const n=document.createElement("span");n.className="punica-card-meta",n.textContent=e.meta,t.appendChild(n)}return t},createStatusDot:p,createGroupHeader:function(e){C();const t="string"==typeof e?e:e.label,n="string"==typeof e?void 0:e.count,i=document.createElement("div");return i.className="punica-group-header",i.textContent=n?`${t} · ${n}`:t,i},createEmptyState:function(e){!function(){if("undefined"==typeof document)return;if(document.getElementById(A))return;const e=document.createElement("style");e.id=A,e.textContent=".punica-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; box-sizing: border-box; margin: auto; }\n.punica-empty-state--panel { flex: 1 1 auto; min-height: 100%; padding: 28px 16px; }\n.punica-empty-state--section { min-height: 100%; padding: 12px 14px; }\n.punica-empty-state:not(:only-child) { min-height: 0; }\n.punica-empty-state--fill { min-height: calc(100vh - 150px - var(--punica-appbar-height, 0px)); }\n.punica-empty-state-icon { font-size: 26px; line-height: 1; color: var(--text-secondary, #8a8a8a); }\n.punica-empty-state-icon--warning { color: var(--warning-main, #ff9800); }\n.punica-empty-state-icon--error { color: var(--error-main, #f44336); }\n.punica-empty-state-title { font-size: var(--font-size-body2, 0.875rem); font-weight: 600; color: var(--text-primary, inherit); max-width: 240px; }\n.punica-empty-state--section .punica-empty-state-title { font-weight: 400; color: var(--text-secondary, #8a8a8a); }\n.punica-empty-state-detail { font-size: var(--font-size-body2, 0.875rem); line-height: 1.5; max-width: 240px; color: var(--text-secondary, #8a8a8a); }\n.punica-empty-state-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }\n.punica-empty-state--section .punica-empty-state-actions { margin-top: 4px; }\n",document.head.appendChild(e)}();const t=e.variant??"panel",n=document.createElement("div");if(n.className=`punica-empty-state punica-empty-state--${t}`,e.fillViewport&&n.classList.add("punica-empty-state--fill"),e.icon&&"panel"===t){const t=document.createElement("div"),i=e.tone??"muted";t.className="muted"===i?"punica-empty-state-icon":`punica-empty-state-icon punica-empty-state-icon--${i}`;const r=document.createElement("i");r.className=e.icon,t.appendChild(r),n.appendChild(t)}const i=document.createElement("div");if(i.className="punica-empty-state-title",i.textContent=e.title,n.appendChild(i),e.detail){const t=document.createElement("div");t.className="punica-empty-state-detail",t.textContent=e.detail,n.appendChild(t)}if(e.actions&&e.actions.length>0){const t=document.createElement("div");t.className="punica-empty-state-actions",e.actions.forEach((e,n)=>{const i=e.variant??(0===n?"filled":"outlined");t.appendChild(y(e.label,()=>e.onClick(),{variant:i,..."filled"===i?{color:"primary"}:{},size:"small"}))}),n.appendChild(t)}if(e.extra){const t=Array.isArray(e.extra)?e.extra:[e.extra];for(const e of t)n.appendChild(e)}return n},formatBytes:function(e){if(!e||e<=0)return null;const t=["B","KB","MB","GB","TB"];let n=e,i=0;for(;n>=1024&&i<t.length-1;)n/=1024,i+=1;return`${n>=10||0===i?String(Math.round(n)):n.toFixed(1).replace(/\.0$/,"")} ${t[i]}`},attachContextMenu:function(e){if("undefined"==typeof document)return()=>{};const t=document.createElement("punica-context-menu");t.setAttribute("id",e.menuId),e.listEl.id&&t.setAttribute("target",`#${e.listEl.id}`);let n=null;const i=i=>{const r=i.target.closest("[data-node-id]");if(n=r,t.innerHTML="",r)for(const n of e.buildItems(r)){n.separatorBefore&&t.appendChild(document.createElement("punica-context-menu-separator"));const e=document.createElement("punica-context-menu-item");e.setAttribute("label",n.label),e.setAttribute("value",n.value),n.icon&&e.setAttribute("icon",n.icon),t.appendChild(e)}},r=t=>{const i=t?.detail?.value;i&&n&&e.onSelect(i,n)};return e.listEl.addEventListener("contextmenu",i),t.addEventListener("punica-context-menu-select",r),e.listEl.insertAdjacentElement("afterend",t),()=>{e.listEl.removeEventListener("contextmenu",i),t.removeEventListener("punica-context-menu-select",r),t.remove()}},createCapabilityDetail:function(e,t){!function(){if("undefined"==typeof document)return;if(document.getElementById(S))return;const e=document.createElement("style");e.id=S,e.textContent='.cap-row { border: 1px solid var(--divider-color, rgba(127,127,127,0.16)); border-radius: 8px; background: var(--background-paper, rgba(127,127,127,0.04)); margin-bottom: 6px; overflow: hidden; }\n.cap-row.expanded { border-color: var(--primary-main, #6ea8fe); }\n.cap-row--static { border: none; background: transparent; }\n.cap-row-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; }\n.cap-row-head:hover { background: var(--action-hover, rgba(127,127,127,0.08)); }\n.cap-row--static .cap-row-head { cursor: default; padding: 0 0 4px; }\n.cap-row--static .cap-row-head:hover { background: transparent; }\n.cap-row-chevron { flex: 0 0 auto; font-size: 11px; color: var(--text-secondary); transition: transform 0.15s ease; }\n.cap-row.expanded .cap-row-chevron { transform: rotate(90deg); }\n.cap-row-main { flex: 1 1 auto; min-width: 0; }\n.cap-row-title-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }\n.cap-row-title { font-size: 13.5px; font-weight: 600; color: var(--text-primary); }\n.cap-row-id { font-size: 11px; font-family: "SF Mono", "Courier New", monospace; color: var(--text-secondary); opacity: 0.8; }\n.cap-row-desc { margin-top: 2px; font-size: 12px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.cap-row.expanded .cap-row-desc, .cap-row--static .cap-row-desc { white-space: normal; }\n.cap-row-badges { flex: 0 0 auto; display: flex; gap: 6px; align-items: center; }\n.cap-pill { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; padding: 2px 8px; border-radius: 10px; border: 1px solid transparent; white-space: nowrap; }\n.cap-pill-risk-low { color: #5bbf7b; background: rgba(91,191,123,0.12); border-color: rgba(91,191,123,0.3); }\n.cap-pill-risk-medium { color: #e0a13a; background: rgba(224,161,58,0.12); border-color: rgba(224,161,58,0.3); }\n.cap-pill-risk-high { color: #e06c6c; background: rgba(224,108,108,0.14); border-color: rgba(224,108,108,0.35); }\n.cap-pill-approval { color: var(--text-secondary); background: var(--action-hover, rgba(127,127,127,0.14)); }\n.cap-row-detail { padding: 4px 14px 14px 34px; border-top: 1px solid var(--divider-color, rgba(127,127,127,0.12)); }\n.cap-row--static .cap-row-detail { padding: 0; border-top: none; }\n.cap-detail-section { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-secondary); margin: 12px 0 6px; }\n.cap-detail-meta { font-size: 12px; color: var(--text-secondary); font-family: "SF Mono", "Courier New", monospace; margin-bottom: 6px; }\n.cap-schema-code { background: var(--background-main, rgba(0,0,0,0.18)); border: 1px solid var(--neutral-light, rgba(127,127,127,0.2)); border-radius: 6px; padding: 10px 12px; overflow-x: auto; font-family: "SF Mono", "Courier New", monospace; font-size: 11.5px; line-height: 1.5; color: var(--text-primary); }\n.cap-detail-note { font-style: italic; opacity: 0.85; }\n.cap-detail-raw-toggle { margin: 0 0 6px; padding: 0; background: none; border: none; cursor: pointer; font-size: 12px; color: var(--text-link, var(--accent-color, #6ea8fe)); opacity: 0.85; }\n.cap-detail-raw-toggle:hover { opacity: 1; text-decoration: underline; }\n.cap-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; }\n.cap-tag { font-size: 11px; padding: 2px 8px; border-radius: 10px; border: 1px solid var(--neutral-light, rgba(127,127,127,0.24)); color: var(--text-secondary); }\n.json-view-key { color: var(--primary-main, #7ec8e3); }\n.json-view-string { color: var(--success-main, #98c379); }\n.json-view-number { color: var(--warning-main, #d19a66); }\n.json-view-boolean { color: var(--error-main, #c678dd); }\n.json-view-null { color: var(--text-placeholder, #9aa0a6); font-style: italic; }\n',document.head.appendChild(e)}();const n=t??{},i=!0===n.collapsible,r=document.createElement("div");r.className=i?"cap-row":"cap-row cap-row--static";const a=document.createElement("div");if(a.className="cap-row-head",i){a.setAttribute("role","button"),a.setAttribute("tabindex","0");const e=document.createElement("i");e.className="cap-row-chevron fa-solid fa-chevron-right",a.appendChild(e)}const s=document.createElement("div");s.className="cap-row-main";const o=document.createElement("div");o.className="cap-row-title-line";const l=document.createElement("span");if(l.className="cap-row-title",l.textContent=e.title||e.id||"(untitled)",o.appendChild(l),e.id){const t=document.createElement("span");t.className="cap-row-id",t.textContent=e.id,o.appendChild(t)}if(s.appendChild(o),e.description){const t=document.createElement("div");t.className="cap-row-desc",t.textContent=e.description,s.appendChild(t)}a.appendChild(s);const c=document.createElement("div");c.className="cap-row-badges";const d=e.policy?.risk;d&&c.appendChild(M(d,`risk-${d}`));const u=e.policy?.approval;u&&"none"!==u&&c.appendChild(M(u,"approval")),a.appendChild(c),r.appendChild(a);const h=document.createElement("div");if(h.className="cap-row-detail",r.appendChild(h),i){h.style.display=n.open?"block":"none";let t=!1;const i=()=>{t||(t=!0,z(h,e,n))};n.open&&(i(),r.classList.add("expanded"));const s=()=>{const e="none"===h.style.display;e&&i(),h.style.display=e?"block":"none",r.classList.toggle("expanded",e)};a.addEventListener("click",s),a.addEventListener("keydown",e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),s())})}else z(h,e,n);return r},createButton:y,createIconButton:function(e,t,n){const i=document.createElement("punica-icon-button"),r=n?.size??"x-small";if(i.setAttribute("size","x-small"===r?"xsmall":r),n?.variant&&i.setAttribute("variant",n.variant),n?.title&&i.setAttribute("title",n.title),n?.disabled&&i.setAttribute("disabled",""),n?.attrs)for(const[e,t]of Object.entries(n.attrs))i.setAttribute(e,t);return n?.style&&("string"==typeof n.style?i.setAttribute("style",n.style):Object.assign(i.style,n.style)),n?.className&&(i.className=n.className),e?i.innerHTML=`<i class="${e}"></i>`:n?.innerHTML&&(i.innerHTML=n.innerHTML),n?.disabled||i.addEventListener("click",e=>t(e)),i},createTypography:v,createChip:function(e,t){const n=document.createElement("punica-chip");if(n.setAttribute("size",t?.size??"small"),n.setAttribute("variant",t?.variant??"filled"),t?.color&&n.setAttribute("color",t.color),t?.icon||t?.children?.length){if(t.icon){const e=document.createElement("i");e.className=t.icon,n.appendChild(e)}e&&n.appendChild(document.createTextNode(e)),t.children?.forEach(e=>n.appendChild(e))}else n.textContent=e;if(t?.onDelete){const e=document.createElement("button");e.setAttribute("slot","delete"),e.setAttribute("type","button"),e.setAttribute("aria-label","Remove"),e.innerHTML='<i class="fa-solid fa-xmark" aria-hidden="true"></i>',e.addEventListener("click",e=>{e.stopPropagation(),t.onDelete?.(e)}),n.appendChild(e)}if(t?.attrs)for(const[e,i]of Object.entries(t.attrs))n.setAttribute(e,i);return t?.style&&("string"==typeof t.style?n.setAttribute("style",t.style):Object.assign(n.style,t.style)),t?.className&&(n.className=t.className),t?.onClick&&(n.setAttribute("role","button"),n.setAttribute("tabindex","0"),n.style.cursor="pointer",n.addEventListener("click",e=>t.onClick?.(e)),n.addEventListener("keydown",e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t.onClick?.(e))})),n},createBox:function(e){const t=document.createElement("punica-box");if(e?.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return e?.children&&e.children.forEach(e=>t.appendChild(e)),e?.style&&("string"==typeof e.style?t.setAttribute("style",e.style):Object.assign(t.style,e.style)),e?.className&&(t.className=e.className),t},createRow:function(e){const t=document.createElement("punica-row");if(e?.spacing&&t.setAttribute("spacing",e.spacing),e?.alignItems&&t.setAttribute("alignitems",e.alignItems),e?.wrap&&t.setAttribute("wrap",e.wrap),e?.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return e?.children&&e.children.forEach(e=>t.appendChild(e)),e?.style&&("string"==typeof e.style?t.setAttribute("style",e.style):Object.assign(t.style,e.style)),e?.className&&(t.className=e.className),t},createCol:function(e){const t=document.createElement("punica-col");if(void 0!==e?.xs&&t.setAttribute("xs",String(e.xs)),void 0!==e?.sm&&t.setAttribute("sm",String(e.sm)),void 0!==e?.md&&t.setAttribute("md",String(e.md)),void 0!==e?.lg&&t.setAttribute("lg",String(e.lg)),void 0!==e?.xl&&t.setAttribute("xl",String(e.xl)),e?.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return e?.children&&e.children.forEach(e=>t.appendChild(e)),e?.style&&("string"==typeof e.style?t.setAttribute("style",e.style):Object.assign(t.style,e.style)),e?.className&&(t.className=e.className),t},createInput:function(e){const t=document.createElement("punica-input");if(void 0!==e?.value&&(t.value=e.value),e?.placeholder&&t.setAttribute("placeholder",e.placeholder),e?.type&&t.setAttribute("type",e.type),e?.size&&t.setAttribute("size",e.size),e?.fullwidth&&t.setAttribute("fullwidth",""),e?.rounded&&t.setAttribute("rounded",""),e?.disabled&&t.setAttribute("disabled",""),e?.id&&t.setAttribute("id",e.id),void 0!==e?.min&&t.setAttribute("min",String(e.min)),void 0!==e?.max&&t.setAttribute("max",String(e.max)),void 0!==e?.step&&t.setAttribute("step",String(e.step)),e?.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return e?.style&&("string"==typeof e.style?t.setAttribute("style",e.style):Object.assign(t.style,e.style)),e?.className&&(t.className=e.className),"password"===t.getAttribute("type")&&(x(),t.appendChild(function(){const e=document.createElement("i");return e.className="fa-solid fa-key punica-secret-adornment",e.setAttribute("slot","endAdornment"),e.setAttribute("aria-hidden","true"),e}())),(t.hasAttribute("search")||!0===e?.search)&&(!function(){if("undefined"==typeof document)return;if(document.getElementById(E))return;const e=document.createElement("style");e.id=E,e.textContent="/* The magnifier marks a field you type into to narrow a list. Four panels\n shipped it hand-rolled first — the marketplace, Courses, ivy-nodes and the\n ivy-node marketplace — and these are their metrics, so adopting the shared\n glyph changes none of those four screens by a pixel.\n\n Decorative: aria-hidden on the element, no tab stop, and pointer-events off,\n because there is nothing to click. `punica-input` lays its shadow root out as\n a flex row whose inner input is width:100% with the default flex-shrink, so\n without `flex: 0 0 auto` the input's greed squeezes the glyph away. */\npunica-input > .punica-search-adornment {\n flex: 0 0 auto;\n padding-left: 6px;\n font-size: 11px;\n pointer-events: none;\n}\n",document.head.appendChild(e)}(),t.appendChild(function(){const e=document.createElement("i");return e.className="fa-duotone fa-solid fa-magnifying-glass punica-search-adornment",e.setAttribute("slot","startAdornment"),e.setAttribute("aria-hidden","true"),e}()),t.hasAttribute("autocomplete")||t.setAttribute("autocomplete","off")),e?.onInput&&t.addEventListener("input",t=>{const n=t?.detail?.value??t?.target?.value??"";e.onInput(n)}),e?.onChange&&t.addEventListener("change",t=>{const n=t?.detail?.value??t?.target?.value??"";e.onChange(n)}),t},createSelect:function(e){const t=document.createElement("punica-select");if(void 0!==e?.value&&(t.value=e.value),e?.size&&t.setAttribute("size",e.size),e?.fullwidth&&t.setAttribute("fullwidth",""),e?.rounded&&t.setAttribute("rounded",""),e?.disabled&&t.setAttribute("disabled",""),e?.minimumTargetWidth&&t.setAttribute("minimumtargetwidth",""),e?.id&&t.setAttribute("id",e.id),e?.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return e?.style&&("string"==typeof e.style?t.setAttribute("style",e.style):Object.assign(t.style,e.style)),e?.className&&(t.className=e.className),e?.onChange&&t.addEventListener("change",t=>{const n=t?.detail?.value??t?.target?.value??"";e.onChange(n)}),t.appendChild(function(){const e=document.createElement("punica-icon");e.setAttribute("slot","caret"),e.setAttribute("aria-hidden","true");const t=document.createElement("i");return t.className="fa-light fa-angle-down",e.appendChild(t),e}()),t},createSelectItem:function(e){const t=document.createElement("punica-select-item");if(t.setAttribute("value",e.value),e.text&&(t.textContent=e.text),e.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return t},createCheckbox:function(e){const t=document.createElement("punica-checkbox");if(void 0!==e?.checked&&(t.checked=e.checked),e?.disabled&&t.setAttribute("disabled",""),e?.id&&t.setAttribute("id",e.id),e?.label&&t.setAttribute("label",e.label),e?.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return e?.style&&("string"==typeof e.style?t.setAttribute("style",e.style):Object.assign(t.style,e.style)),e?.className&&(t.className=e.className),e?.onChange&&t.addEventListener("change",t=>{const n=t?.detail?.checked??t?.target?.checked??!1;e.onChange(n)}),t},createIcon:function(e){const t=document.createElement("punica-icon");if(e?.iconClass){const n=document.createElement("i");n.className=e.iconClass,t.appendChild(n)}else e?.innerHTML&&(t.innerHTML=e.innerHTML);if(e?.slot&&t.setAttribute("slot",e.slot),e?.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return e?.style&&("string"==typeof e.style?t.setAttribute("style",e.style):Object.assign(t.style,e.style)),e?.className&&(t.className=e.className),t},createTextarea:function(e){const t=document.createElement("punica-textarea");if(void 0!==e?.value&&(t.value=e.value),e?.placeholder&&t.setAttribute("placeholder",e.placeholder),e?.rows&&t.setAttribute("rows",String(e.rows)),e?.cols&&t.setAttribute("cols",String(e.cols)),e?.size&&t.setAttribute("size",e.size),e?.fullwidth&&t.setAttribute("fullwidth",""),e?.rounded&&t.setAttribute("rounded",""),e?.disabled&&t.setAttribute("disabled",""),e?.id&&t.setAttribute("id",e.id),e?.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return e?.style&&("string"==typeof e.style?t.setAttribute("style",e.style):Object.assign(t.style,e.style)),e?.className&&(t.className=e.className),e?.onInput&&t.addEventListener("input",t=>{const n=t?.detail?.value??t?.target?.value??"";e.onInput(n)}),e?.onChange&&t.addEventListener("change",t=>{const n=t?.detail?.value??t?.target?.value??"";e.onChange(n)}),t},createDivider:function(e){const t=document.createElement("punica-divider");if(e?.orientation&&t.setAttribute("orientation",e.orientation),e?.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return e?.style&&("string"==typeof e.style?t.setAttribute("style",e.style):Object.assign(t.style,e.style)),e?.className&&(t.className=e.className),t},createListView:function(e){const t=document.createElement("punica-list-view");if(e?.enableDivider&&t.setAttribute("enabledivider",""),e?.spacing&&t.setAttribute("spacing",e.spacing),e?.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return e?.children&&e.children.forEach(e=>t.appendChild(e)),e?.style&&("string"==typeof e.style?t.setAttribute("style",e.style):Object.assign(t.style,e.style)),e?.className&&(t.className=e.className),t},createListViewItem:function(e){!function(){if("undefined"==typeof document)return;if(document.getElementById(k))return;const e=document.createElement("style");e.id=k,e.textContent="punica-list-view-item .punica-list-item-row { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; box-sizing: border-box; padding: 4px 8px; border-radius: 6px; }\npunica-list-view-item .punica-list-item-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }\npunica-list-view-item .punica-list-item-label { font-size: 13px; font-weight: 600; color: var(--text-primary, inherit); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\npunica-list-view-item .punica-list-item-content { font-size: 12px; color: var(--text-secondary, #8a8a8a); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\npunica-list-view-item .punica-list-item-end { flex: 0 0 auto; margin-left: auto; display: flex; align-items: center; gap: 4px; }\n",document.head.appendChild(e)}();const t=document.createElement("punica-list-view-item"),n=document.createElement("div");n.className="punica-list-item-row";const i=document.createElement("div");if(i.className="punica-list-item-main",e?.label)if("string"==typeof e.label){const t=document.createElement("div");t.className="punica-list-item-label",t.textContent=e.label,i.appendChild(t)}else e.label.removeAttribute("slot"),i.appendChild(e.label);if(e?.content)if("string"==typeof e.content){const t=document.createElement("div");t.className="punica-list-item-content",t.textContent=e.content,i.appendChild(t)}else e.content.removeAttribute("slot"),i.appendChild(e.content);if(i.childNodes.length>0&&n.appendChild(i),e?.endAdornment){e.endAdornment.removeAttribute("slot");const t=document.createElement("div");t.className="punica-list-item-end",t.appendChild(e.endAdornment),n.appendChild(t)}if(t.appendChild(n),e?.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return e?.children&&e.children.forEach(e=>t.appendChild(e)),t},createPaper:function(e){const t=document.createElement("punica-paper");if(void 0!==e?.elevation&&t.setAttribute("elevation",String(e.elevation)),e?.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return e?.children&&e.children.forEach(e=>t.appendChild(e)),e?.style&&("string"==typeof e.style?t.setAttribute("style",e.style):Object.assign(t.style,e.style)),e?.className&&(t.className=e.className),t},createTab:function(e){const t=document.createElement("punica-tab");if(e?.value&&t.setAttribute("value",e.value),e?.orientation&&t.setAttribute("orientation",e.orientation),e?.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return e?.children&&e.children.forEach(e=>t.appendChild(e)),e?.style&&("string"==typeof e.style?t.setAttribute("style",e.style):Object.assign(t.style,e.style)),e?.className&&(t.className=e.className),e?.onChange&&t.addEventListener("change",t=>{const n=t?.detail?.value??t?.target?.getAttribute("value")??"";e.onChange(n)}),t},createTabItem:function(e){const t=document.createElement("punica-tab-item");if(t.setAttribute("value",e.value),e.text&&(t.textContent=e.text),e.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return e.children&&e.children.forEach(e=>t.appendChild(e)),e.style&&("string"==typeof e.style?t.setAttribute("style",e.style):Object.assign(t.style,e.style)),e.className&&(t.className=e.className),t},createTabPanel:function(e){const t=document.createElement("punica-tab-panel");if(t.setAttribute("value",e.value),e.selectedValue&&t.setAttribute("selectedvalue",e.selectedValue),e?.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return e?.children&&e.children.forEach(e=>t.appendChild(e)),e?.style&&("string"==typeof e.style?t.setAttribute("style",e.style):Object.assign(t.style,e.style)),e?.className&&(t.className=e.className),t},createBadge:function(e){const t=document.createElement("punica-badge");if(e?.text&&(t.textContent=e.text),e?.variant&&t.setAttribute("variant",e.variant),e?.color&&t.setAttribute("color",e.color),e?.size&&t.setAttribute("size",e.size),e?.title&&t.setAttribute("title",e.title),e?.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return t},createMenu:function(e){const t=document.createElement("punica-menu");if(e?.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return e?.children&&e.children.forEach(e=>t.appendChild(e)),e?.style&&("string"==typeof e.style?t.setAttribute("style",e.style):Object.assign(t.style,e.style)),e?.className&&(t.className=e.className),t},createMenuItem:function(e){const t=document.createElement("punica-menu-item");if(e?.innerHTML&&(t.innerHTML=e.innerHTML),e?.text){const n=v(e.text);t.appendChild(n)}if(e?.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return e?.onClick&&t.addEventListener("click",e.onClick),e?.style&&("string"==typeof e.style?t.setAttribute("style",e.style):Object.assign(t.style,e.style)),e?.className&&(t.className=e.className),e?.children&&e.children.forEach(e=>t.appendChild(e)),t},openMenuAt:function(e,t){const n=t.anchor,i="function"==typeof n.getBoundingClientRect?n.getBoundingClientRect():n,r=i.bottom??i.top,a=i.width,s=i.height;e.setAttribute("top",String(i.top)),e.setAttribute("left",String(i.left)),e.setAttribute("width",String(a??0)),e.setAttribute("height",String(s??0)),e.setAttribute("bottom",String(r)),e.setAttribute("placement",t.placement??"bottom"),e.setAttribute("open","true")},closeMenu:function(e){e.removeAttribute("open")},createSplit:function(e){const t=document.createElement("punica-split");if(e?.orientation&&t.setAttribute("orientation",e.orientation),e?.sizes?.length&&t.setAttribute("sizes",e.sizes.join(",")),e?.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return e?.children&&e.children.forEach(e=>t.appendChild(e)),e?.style&&("string"==typeof e.style?t.setAttribute("style",e.style):Object.assign(t.style,e.style)),e?.className&&(t.className=e.className),t},createContextMenu:function(e){const t=document.createElement("punica-context-menu");if(e.target&&t.setAttribute("target",e.target),e.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);for(const n of e.items){n.separatorBefore&&t.appendChild(document.createElement("punica-context-menu-separator"));const e=document.createElement("punica-context-menu-item");e.setAttribute("label",n.label),e.setAttribute("value",n.value),n.icon&&e.setAttribute("icon",n.icon),t.appendChild(e)}return t.addEventListener("punica-context-menu-select",t=>{const n=t?.detail?.value;n&&e.onSelect(n)}),t},createLink:function(e,t){const n=document.createElement("a");if(n.href=t.href,n.textContent=e,t.target&&(n.target=t.target),t.rel&&(n.rel=t.rel),t.download&&(n.download=t.download),t.attrs)for(const[e,i]of Object.entries(t.attrs))n.setAttribute(e,i);return t.children&&t.children.forEach(e=>n.appendChild(e)),t.style&&("string"==typeof t.style?n.setAttribute("style",t.style):Object.assign(n.style,t.style)),t.className&&(n.className=t.className),n},createToolbar:function(e){const t=document.createElement("punica-toolbar");if(e?.variant&&t.setAttribute("variant",e.variant),e?.disableGutters&&t.setAttribute("disablegutters",""),e?.attrs)for(const[n,i]of Object.entries(e.attrs))t.setAttribute(n,i);return e?.children&&e.children.forEach(e=>t.appendChild(e)),e?.style&&("string"==typeof e.style?t.setAttribute("style",e.style):Object.assign(t.style,e.style)),e?.className&&(t.className=e.className),t}};const B=e=>`activity-group-${e}`;const O={manager:new class{#C=new Map;#A=new Map;#S=null;#D=null;#N;#T;#I;#L=new Map;#M=0;#z=new Map;#F=new Map;#B(e,t,n){this.#L.has(n)||this.#L.set(n,this.#M++);const i=this.#L.get(n),r=e.querySelector("#"+n);r&&e.removeChild(r);let a=null;for(const t of Array.from(e.children)){const e=this.#L.get(t.id);if(void 0!==e&&e>i){a=t;break}}e.insertBefore(t,a)}#O(){const e=punica.shell.Layout.manager,t=e.getSlot("activityBar")??e.getSlot("primarySidebar"),n=t?.content;if(this.#N=document.createElement("div"),this.#T=document.createElement("div"),this.#I=document.createElement("div"),this.#N.setAttribute("style","display: flex; flex-direction: column; height: 100%;"),this.#T.classList.add("activityBar-primary-scroll"),this.#T.setAttribute("style","display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden;"),this.#I.setAttribute("style","display: flex; flex-direction: column; flex: 0 0 auto;"),!document.getElementById("activityBar-scroll-style")){const e=document.createElement("style");e.id="activityBar-scroll-style",e.textContent=".activityBar-primary-scroll::-webkit-scrollbar {\n width: 0;\n height: 0;\n}\n\n.activityBar-primary-scroll {\n scrollbar-width: none;\n}\n",document.head.appendChild(e)}this.#N.appendChild(this.#T),this.#N.appendChild(this.#I),n?.appendChild(this.#N)}constructor(){u.setDismissHandler(()=>this.#R())}#R(){const e=globalThis.punica?.shell?.Views?.manager,t=e?.getVisibleView?.("primarySidebar");t?e.hide(t,{kind:"user-gesture",id:"outside-click"}):this.#$(null)}setActiveByViewId(e){if(e){for(const t of this.#C.values())if(t.viewId===e)return void this.#$(t.id);for(const t of this.#A.values())if(t.viewId===e)return void this.#$(t.id)}else this.#$(null)}#j(e,t){const n=globalThis,i=()=>{const i=n.punica?.shell?.Views?.manager;return i?.reveal?.(e,{kind:"user-gesture",id:`activity-bar:${t}`})},r=n.punica?.runtime?.capabilities?.gateway;if(!r?.call)return void Promise.resolve(i()).catch(t=>{console.error("[ActivityBar] Failed to reveal view",e,t)});const a=n.punica?.kernel?.Events?.manager,s=a?.createCorrelationId?.()??`activity-bar-${Date.now()}`;r.call("shell.revealView",{viewId:e},{sessionId:"default",actor:{type:"user"},origin:{kind:"command",id:`activity-bar:${t}`},trace:{traceId:s},policy:{mode:"execute"}}).catch(e=>(console.warn("[ActivityBar] shell.revealView failed, falling back to direct reveal:",e),Promise.resolve(i()))).catch(t=>{console.error("[ActivityBar] Failed to reveal view",e,t)})}#$(e){this.#S=e;const t=punica.shell.Layout.manager;e?(this.#D=null,u.setVisible(!0)):(u.setVisible(!1),t.resetContentSidebar?.()),this.#P()}syncContentTool(e){const t=e?this.#H(e):void 0;this.#D=t?.id??null,this.#P()}#H(e){for(const t of this.#A.values())if(t.contentViewType===e)return t;for(const t of this.#C.values())if(t.contentViewType===e)return t}#P(){if(!this.#N)return;const e="extension-is-active",t=this.#D??this.#S;if(this.#N.querySelectorAll(".extension").forEach(t=>t.classList.remove(e)),!t)return;const n=this.#q(t),i=this.#N.querySelector("#"+n);i&&i.classList.add(e)}#q(e){const t=this.#V(e)?.group?.id;return t?B(t):e}#V(e){return this.#C.get(e)??this.#A.get(e)}#U(e){const t=[];for(const n of this.#C.values())n.group?.id===e&&t.push(n);for(const n of this.#A.values())n.group?.id===e&&t.push(n);return t.sort((e,t)=>(this.#L.get(e.id)??0)-(this.#L.get(t.id)??0))}#Z(e){const t=punica.shell.Layout.manager,n=globalThis.punica?.shell?.Views?.manager,i=!!e.viewId&&!!n?.getPlacement?.(e.viewId),r=()=>{if(e.command)try{punica.kernel.Commands.manager.executeCommand(e.command)}catch(t){console.error("[ActivityBar] Failed to execute command for item",e.id,e.command,t)}};if(!(i||!!e.viewId)){return e.contentViewType&&(this.#D=e.id,"drawer"===u.getMode()&&(this.#S=null,u.setVisible(!1)),punica.shell.Layout.manager.resetContentSidebar?.(),this.#P()),void r()}if(this.#S===e.id)return i&&n.hide(e.viewId,{kind:"user-gesture",id:`activity-bar:${e.id}`}),void this.#$(null);if(this.#$(e.id),i)this.#j(e.viewId,e.id);else{try{t.ensureViewHost("primarySidebar",e.viewId)}catch(t){console.error("[ActivityBar] Failed to show primary view for item",e.id,e.viewId,t)}r()}}#W(e,t,n,i){const r=F.createButton(`<punica-icon size="xlarge">${t}</punica-icon>`,i,{rounded:!0,color:"primary",variant:"text",size:"medium"});return r.setAttribute("id",e),r.setAttribute("style","margin-bottom: 4px;"),r.setAttribute("title",n),r.className="extension",r}#K(e){const t=B(e),n=this.#U(e);if(0===n.length)return this.#T?.querySelector("#"+t)?.remove(),this.#I?.querySelector("#"+t)?.remove(),this.#F.get(e)?.remove(),this.#F.delete(e),void this.#z.delete(e);const i="primary"===n[0].alignment?this.#T:this.#I,r=this.#z.get(e)??{},a=1===n.length?n[0]:null,s=this.#W(t,a?a.icon:r.icon??n[0].icon,a?a.title:r.title??e,()=>{a?this.#Z(a):this.#G(e,s)});this.#B(i,s,t);const o=this.#D??this.#S;o&&n.some(e=>e.id===o)&&s.classList.add("extension-is-active")}#G(e,t){let n=this.#F.get(e);n||(n=F.createMenu({attrs:{id:`${B(e)}-menu`}}),n.addEventListener("close",()=>n?.removeAttribute("open")),n.addEventListener("menu-item-click",e=>{const t=e?.detail?.data;n?.removeAttribute("open");const i=t?this.#V(t):void 0;i&&this.#Z(i)}),this.#N.appendChild(n),this.#F.set(e,n)),n.innerHTML="";const i=this.#D??this.#S;for(const t of this.#U(e))n.appendChild(F.createMenuItem({attrs:{"data-item":t.id,"aria-label":t.title},innerHTML:`<span style="display: flex; align-items: center; gap: 8px;"><punica-icon size="small">${t.icon}</punica-icon><span>${t.title}</span>`+(t.id===i?'<i class="fa-solid fa-check" style="margin-left: auto;" aria-hidden="true"></i>':"")+"</span>"}));F.openMenuAt(n,{anchor:t,placement:"right"})}addItem(e){this.#N||this.#O();const t="primary"===e.alignment;(t?this.#C:this.#A).set(e.id,e);const n=e.group?.id;if(n)return this.#L.has(e.id)||this.#L.set(e.id,this.#M++),this.#z.has(n)||this.#z.set(n,{title:e.group?.title,icon:e.group?.icon}),void this.#K(n);const i=this.#W(e.id,e.icon,e.title,()=>this.#Z(e)),r=t?this.#T:this.#I;this.#B(r,i,e.id);(this.#D??this.#S)===e.id&&i.classList.add("extension-is-active")}removeItem(e){const t=this.#V(e)?.group?.id;if(t)return this.#C.delete(e),this.#A.delete(e),void this.#K(t);if(this.#C.has(e)){const t=this.#T.querySelector("#"+e);t&&(this.#T.removeChild(t),this.#C.delete(e))}else if(this.#A.has(e)){const t=this.#I.querySelector("#"+e);t&&(this.#I.removeChild(t),this.#A.delete(e))}}}};const R="punica-appbar",$="shell-classic-appbar-style";function j(){try{const e=punica.kernel.Commands.manager.getAllCommands?.()??[];return new Set(e.map(e=>e.id))}catch{return new Set}}function P(e,t){return!!t&&(0===e.size||e.has(t))}function H(e){try{punica.kernel.Commands.manager.executeCommand(e)}catch(t){console.error("[AppBar] Failed to execute command",e,t)}}const q={manager:new class{#X=null;#J=null;#Y=null;#Q=null;#ee={};#te=new Map;#L=new Map;#M=0;init(e){if("undefined"==typeof document)return;this.#ee=e??{},this.#l();const t=this.#ee.height??30;document.documentElement.style.setProperty("--punica-appbar-height",`${t}px`),document.documentElement.dataset.punicaAppbar="on",this.#ne();for(const e of this.#ee.items??[])this.addItem(e);this.#ie()}addItem(e){e?.id&&(this.#te.set(e.id,e),this.#L.has(e.id)||this.#L.set(e.id,this.#M++),this.#X&&this.#re(e))}removeItem(e){this.#te.delete(e),this.#X?.querySelector(`[data-appbar-item='${e}']`)?.remove()}#l(){if(document.getElementById($))return;const e=document.createElement("style");e.id=$,e.textContent=":root {\n --punica-appbar-height: 30px;\n}\n/* The bar's room is taken from the layout container as PADDING, and the\n workbench then fills what is left with a plain `height: 100%`.\n *\n * The obvious alternative — a margin plus viewport-minus-bar arithmetic on the\n * workbench — splits one offset over two declarations that can disagree: if one of\n * them lands (a margin reset, an unresolvable var, a stale bundle) the window\n * either hides its top 30px behind the bar or leaves a 30px hole above the\n * status bar. Padding cannot come apart that way, and `* { box-sizing:\n * border-box }` in both hosts keeps the container at 100vh regardless.\n *\n * Attribute + id, so these outrank the hosts' single-id layout rules without\n * editing either host stylesheet. Rows only — the docked sidebar owns columns. */\n/* Whatever element the host mounted the layout into — `#app` in both of ours,\n but `:has(> …)` matches the real parent instead of assuming its id. */\nhtml[data-punica-appbar='on'] :has(> #punica-editor) {\n padding-top: var(--punica-appbar-height);\n}\nhtml[data-punica-appbar='on'] #punica-editor {\n height: 100%;\n margin-top: 0;\n grid-template-rows: 1fr 24px;\n /* Containing block for the sidebar drawers: the hosts position them\n `absolute; top: 0; bottom: 24px`, which without this resolves against the\n viewport — under the bar, and 24px above the WINDOW bottom rather than\n above the status bar. */\n position: relative;\n}\nhtml[data-punica-appbar='on'] #punica-editor.layout-welcome {\n grid-template-rows: 1fr;\n}\n#punica-appbar {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n height: var(--punica-appbar-height);\n display: flex;\n align-items: center;\n gap: 8px;\n padding-left: calc(8px + var(--window-inset-left, 0px));\n padding-right: calc(8px + var(--window-inset-right, 0px));\n /* The bar is the product's branded surface, which is what the `navbar` token\n family was always named for — the activity bar borrowed it and left\n `--text-navbar` unused. Branding it here also separates the bar from the\n tab strip below: both were `--background-paper`, and the divider between\n them (`--neutral-main` on `--background-paper`) resolved to 1.05:1, so the\n bar had no visible bottom edge. The lip is `--primary-dark` because a\n neutral divider reads as a bright hairline over the brand colour. */\n background-color: var(--background-navbar);\n border-bottom: 1px solid var(--primary-dark);\n color: var(--text-navbar, #fff);\n font-size: 12px;\n user-select: none;\n /* Above the sidebar drawer and its scrim; below menus and popovers. */\n z-index: calc(var(--zindex-drawer, 1200) + 3);\n /* The whole strip moves the window; every control opts back out below. */\n -webkit-app-region: drag;\n app-region: drag;\n}\n#punica-appbar .appbar-region {\n display: flex;\n align-items: center;\n gap: 4px;\n min-width: 0;\n}\n#punica-appbar .appbar-region-center {\n flex: 1;\n justify-content: center;\n}\n#punica-appbar .appbar-branding {\n display: flex;\n align-items: center;\n gap: 8px;\n min-width: 0;\n}\n#punica-appbar .appbar-mark {\n flex: none;\n display: flex;\n align-items: center;\n justify-content: center;\n /* The activity bar's column, less the bar's own left padding, so the mark\n centres on the activity bar's icon axis instead of 8px inside it. */\n width: 48px;\n margin-left: -8px;\n}\n#punica-appbar .appbar-logo {\n display: block;\n width: 18px;\n height: 18px;\n /* Part of the drag strip, so it must not swallow the press or start a\n native image drag of its own. */\n pointer-events: none;\n -webkit-user-drag: none;\n user-select: none;\n}\n#punica-appbar .appbar-title {\n max-width: 60%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-weight: 600;\n}\n#punica-appbar .appbar-action,\n#punica-appbar .appbar-avatar {\n -webkit-app-region: no-drag;\n app-region: no-drag;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 6px;\n /* 3px of bar left above and below inside the 30px strip — a 26px control\n touched the bar's edges once the bar came down from 38px. */\n height: 24px;\n margin: 0;\n padding: 0 8px;\n border: 0;\n border-radius: 4px;\n background: transparent;\n color: inherit;\n font-size: 12px;\n line-height: 1;\n cursor: pointer;\n}\n/* A white wash, which needs the surface underneath to be dark — that is now\n true of the branded bar, and was not true of `--background-paper`, where in\n the light theme this hover was invisible. */\n#punica-appbar .appbar-action:hover {\n background-color: rgb(255 255 255 / 12%);\n}\n/* Reverse-contrast chip: a `--primary-main` fill would sink into the branded\n bar, and inverting it is also the one place on the strip that reads as a\n target rather than a label. */\n#punica-appbar .appbar-avatar {\n width: 24px;\n padding: 0;\n border-radius: 50%;\n background-color: var(--white, #fff);\n color: var(--primary-main, #0870fd);\n font-weight: 600;\n text-transform: uppercase;\n}\n/* The chip is already the brightest thing on the bar, so it hovers DOWN. The\n shared white wash above would have washed it out towards the bar instead. */\n#punica-appbar .appbar-avatar:hover {\n background-color: rgb(255 255 255 / 82%);\n}\n#punica-appbar .appbar-item {\n position: relative;\n display: inline-flex;\n -webkit-app-region: no-drag;\n app-region: no-drag;\n}\n/* The dropdown is a light-DOM descendant of the bar — Helpers.createMenuItem\n appends a <punica-typography> child, and the summary below is a plain div —\n so both inherit the bar's colour. On the branded bar that is white, and the\n popup renders on a paper surface: without this reset the account menu's\n labels would be white-on-light. The bar's colour is for the BAR, not for\n everything that happens to be nested in it. */\n#punica-appbar .appbar-menu {\n color: var(--text-primary);\n}\n/* The menu header carries no rules here on purpose. punica-menu clones itself\n into document.body when it opens, so nothing scoped under #punica-appbar can\n reach the rendered rows — they arrive inline-styled from #summaryRows. */\n",document.head.appendChild(e)}#ne(){let e=document.getElementById(R);e||(e=document.createElement("div"),e.id=R,document.body.appendChild(e)),e.innerHTML="",this.#X=e,this.#J=this.#ae("appbar-region-left"),this.#Y=this.#ae("appbar-region-center"),this.#Q=this.#ae("appbar-region-right"),e.append(this.#J,this.#Y,this.#Q)}#ae(e){const t=document.createElement("div");return t.className=`appbar-region ${e}`,t}async#ie(){const e=this.#se(),t=this.#oe(e);this.#J&&t&&this.#J.prepend(t);const n=this.#ee.title??"workspace";if(!this.#Y||"none"===n)return;const i="product"===n?e:await async function(){try{const e=await(punica.runtime?.workspace?.getCurrent?.()),t=e?.rootUri;if(!t)return null;return decodeURIComponent(String(t)).replace(/[\\/]+$/,"").split(/[\\/]/).pop()||null}catch{return null}}()??e;if(!i)return;const r=document.createElement("div");r.className="appbar-title",r.textContent=i,r.title=i,this.#Y.appendChild(r)}#oe(e){const t=this.#le()?.logo;if(!t)return null;const n=document.createElement("div");n.className="appbar-branding",e&&(n.title=e);const i=document.createElement("img");i.className="appbar-logo",i.src=t,i.alt=e??"";const r=document.createElement("span");return r.className="appbar-mark",r.appendChild(i),n.appendChild(r),n}#le(){try{return punica.shell.Profile.manager.registry.getActive()?.identity?.branding}catch{return}}#se(){try{const e=punica.shell.Profile.manager.registry.getActive();return e?.identity?.branding?.productName??e?.identity?.name??null}catch{return null}}#re(e){const t="left"===(e.alignment??"right")?this.#J:this.#Q;if(!t)return;const n=document.createElement("div");n.className="appbar-item",n.dataset.appbarItem=e.id;const i=document.createElement("button");if(i.type="button",i.className="avatar"===e.kind?"appbar-avatar":"appbar-action",i.title=e.title??e.label??e.id,i.setAttribute("aria-label",i.title),"avatar"===e.kind)i.textContent=(e.label??e.title??"?").trim().charAt(0),!i.textContent&&e.icon&&(i.innerHTML=e.icon),this.#ce(i,e);else{const t=[];e.icon&&t.push(e.icon),e.label&&t.push(`<span>${e.label}</span>`),i.innerHTML=t.join("")}if(n.appendChild(i),e.menu?.length)this.#de(n,i,e);else if(e.command){const t=e.command;i.addEventListener("click",()=>H(t))}this.#B(t,n,e.id)}#de(e,t,n){const i=F.createMenu({className:"appbar-menu"}),r=new Map;e.appendChild(i);const a=e=>{const t=j();r.clear(),i.innerHTML="";for(const t of e)i.appendChild(t);for(const e of n.menu??[])P(t,e.command)&&(r.set(e.id,e),i.appendChild(F.createMenuItem({text:e.label,attrs:{"data-item":e.id,"aria-label":e.label}})));return r.size};t.addEventListener("pointerdown",e=>{e.stopPropagation(),e.preventDefault(),this.#ue(i,t,n,a)}),i.addEventListener("close",()=>i.removeAttribute("open")),i.addEventListener("menu-item-click",e=>{const t=e.detail,n=t?.data?r.get(t.data):void 0;e.stopPropagation(),i.removeAttribute("open"),n&&H(n.command)})}async#ce(e,t){const n=t.initialsCommand;if(n&&P(j(),n))try{const t=await punica.kernel.Commands.manager.executeCommand(n),i="string"==typeof t?t.trim().slice(0,2):"";i&&(e.textContent=i)}catch{}}async#ue(e,t,n,i){const r=n.summaryCommand;i(r&&P(j(),r)?await this.#he(r):[])?("avatar"===n.kind&&this.#ce(t,n),F.openMenuAt(e,{anchor:t,placement:"bottom"})):n.command&&H(n.command)}async#he(e){let t;try{t=await punica.kernel.Commands.manager.executeCommand(e)}catch{return[]}return"string"==typeof t&&t.trim()?t.trim().split("\n").map(e=>e.trim()).filter(Boolean).map((e,t)=>{const n=document.createElement("span");return n.textContent=e,n.setAttribute("style",["display:block","max-width:220px","overflow:hidden","text-overflow:ellipsis","white-space:nowrap","font-size:12px",0===t?"font-weight:600":"opacity:0.7"].join(";")),F.createMenuItem({attrs:{disabled:"","data-appbar-summary":0===t?"lead":"line"},children:[n]})}):[]}#B(e,t,n){e.querySelector(`[data-appbar-item='${n}']`)?.remove();const i=this.#L.get(n)??this.#M++;let r=null;for(const t of Array.from(e.children)){const e=t.dataset?.appbarItem,n=e?this.#L.get(e):void 0;if(void 0!==n&&n>i){r=t;break}}e.insertBefore(t,r)}}};const V={manager:new class{#C=new Map;#A=new Map;#N;#T;#I;#L=new Map;#M=0;#pe=new Map;#B(e,t,n){this.#L.has(n)||this.#L.set(n,this.#M++);const i=this.#L.get(n),r=this.#pe.get(n);r?.parentNode&&r.parentNode.removeChild(r),this.#pe.set(n,t);let a=null;for(const t of Array.from(e.children)){const e=this.#L.get(t.id);if(void 0!==e&&e>i){a=t;break}}e.insertBefore(t,a)}#O(){const e=window.punica?.shell?.Layout.manager,t=e.getSlot("statusbar"),n=t?.content;this.#N=document.createElement("div"),this.#N.className="status-bar-inner",this.#T=document.createElement("div"),this.#T.className="status-bar-group status-bar-group-primary",this.#I=document.createElement("div"),this.#I.className="status-bar-group status-bar-group-secondary",this.#N.appendChild(this.#T),this.#N.appendChild(this.#I),n?.appendChild(this.#N)}constructor(){}addItem(e){this.#N||this.#O();const t=document.createElement("button");t.type="button",t.id=e.id,t.title=e.title,t.className="status-bar-action";const n=e.command??e.capability;t.onclick=()=>{if(n)try{punica.kernel.Commands.manager.executeCommand(n)}catch(t){console.error("[Statusbar] Failed to execute command for item",e.id,n,t)}};const i=[];var r;e.icon&&i.push(`<punica-icon size="small">${e.icon}</punica-icon>`),e.label&&i.push(`<span class="status-bar-label">${e.label}</span>`),t.innerHTML=i.join(""),e.status&&t.prepend(p(e.status,{pulse:(r=e.status,"running"===r||"busy"===r),className:"status-bar-dot"}));const a="primary"===e.alignment,s=a?this.#T:this.#I;(a?this.#C:this.#A).set(e.id,e),this.#B(s,t,e.id)}removeItem(e){const t=this.#pe.get(e);t?.parentNode&&t.parentNode.removeChild(t),this.#pe.delete(e),this.#C.delete(e),this.#A.delete(e)}}},U=F,Z="1px solid var(--divider, rgba(255, 255, 255, 0.1))",W=new Map;function K(e){const t=e.split(".").pop()?.toLowerCase();return{ts:"typescript",tsx:"typescript",js:"javascript",jsx:"javascript",py:"python",json:"json",md:"markdown",html:"html",css:"css",yaml:"yaml",yml:"yaml"}[t||""]||"plaintext"}function G(e){if(0===e.length)return{root:U.createEmptyState({title:"Nothing to review",detail:"This change writes no files.",variant:"section"}),mount:()=>{},dispose:()=>{}};let t=0,n=null;const i=U.createBox({style:{flex:"1",minHeight:"0",overflowY:"auto",padding:"4px"}}),r=U.createTypography(e[0]?.path??"",{fontWeight:"bold",attrs:{truncate:"1"},style:{minWidth:"0"}}),a=U.createBox({style:{flex:"1",minHeight:"0",minWidth:"0",display:"flex",overflow:"auto"}}),s=()=>{i.innerHTML="",e.forEach((e,n)=>{const r=U.createBadge({text:e.action,variant:"filled",color:"delete"===e.action?"error":"create"===e.action?"success":"primary",size:"small"}),a=e.path.lastIndexOf("/"),l=U.createListViewItem({label:a>=0?e.path.slice(a+1):e.path,content:a>0?e.path.slice(0,a):"",endAdornment:r});n===t&&(l.style.backgroundColor="rgba(255, 255, 255, 0.1)"),l.style.cursor="pointer",l.addEventListener("click",()=>{n!==t&&(t=n,s(),o())}),i.appendChild(l)})},o=()=>{const i=e[t];if(r.textContent=i?.path??"",n){try{n.dispose()}catch{}n=null}if(a.innerHTML="",!i)return;if("delete"===i.action)return void a.appendChild(U.createTypography(`This file will be deleted: ${i.path}`,{variant:"body1",style:{padding:"10px"}}));if(!i.content)return void a.appendChild(U.createTypography("No content preview available",{variant:"body1",style:{padding:"10px"}}));const s=U.createBox({style:{flex:"1",minWidth:"0",minHeight:"0",width:"100%",overflow:"hidden"}});a.appendChild(s);const o=window.monaco||globalThis.monaco;if(o?.editor)try{return void(n=o.editor.create(s,{value:i.content||"",language:K(i.path),theme:"vs-dark",readOnly:!0,minimap:{enabled:!1},fontSize:13,fontLigatures:!0,automaticLayout:!0,scrollBeyondLastLine:!1}))}catch{}((e,t)=>{const n=document.createElement("pre");n.style.cssText="margin: 0; padding: 10px; overflow: auto; flex: 1; min-width: 0; font-family: monospace; font-size: 12px; white-space: pre-wrap; word-wrap: break-word;",n.textContent=t,e.innerHTML="",e.appendChild(n)})(s,i.content||"")},l=e=>U.createBox({style:{flex:"0 0 auto",padding:"8px",minWidth:"0",borderBottom:Z},children:[e]}),c=U.createBox({style:{flex:"0 0 300px",flexShrink:"0",maxWidth:"30%",minWidth:"180px",display:"flex",flexDirection:"column",border:Z,borderRadius:"4px",overflow:"hidden"},children:[l(U.createTypography(`Files (${e.length})`,{fontWeight:"bold"})),i]}),d=U.createBox({style:{flex:"1",minWidth:"0",display:"flex",flexDirection:"column",border:Z,borderRadius:"4px",overflow:"hidden"},children:[l(r),a]}),u=U.createBox({style:{display:"flex",gap:"12px",flex:"1",minHeight:"0"},children:[c,d]});return s(),{root:u,mount:o,dispose:()=>{if(n){try{n.dispose()}catch{}n=null}}}}async function X(e){try{await punica.shell.View.showAlert({title:"Error",message:`Failed to apply changes: ${e instanceof Error?e.message:String(e)}`,variant:"error"})}catch{}}function J(e,t,n){return W.get(t)?.(),new Promise(i=>{let r=!1,a=!1,s=null;const o=G(n.files),l=()=>{s?.(),s=null,W.get(t)===d&&W.delete(t),o.dispose()},c=(e,n)=>{r||(r=!0,l(),n&&(()=>{try{punica.shell.ContentTabs.forceClose(t)}catch{}})(),i(e))},d=()=>{r||(r=!0,l(),i(void 0))};W.set(t,d),s=function(e){try{const t=punica.kernel.Events.manager.subscribe("shell.contentTabs.didClose",t=>{const n=function(e){const t=e;if(!t||"object"!=typeof t)return;const n=("string"==typeof t.name&&t.payload?t.payload:t).path;return"string"==typeof n&&n?n:void 0}(t);n&&e(n)});return"function"==typeof t?t:null}catch{return null}}(e=>{e===t&&(n.onCancel?.(),c("cancel",!1))});const u=[U.createTypography(n.title,{variant:"subtitle1",fontWeight:"bold"})];n.summary&&u.push(U.createTypography(n.summary,{variant:"body2",style:{color:"var(--text-secondary)"}}));const h=U.createButton("Cancel",()=>{n.onCancel?.(),c("cancel",!0)},{variant:"outlined",size:"small"}),p=U.createButton("Apply Changes",()=>{r||a||(a=!0,p.setAttribute("disabled",""),h.setAttribute("disabled",""),n.onConfirm().then(()=>c("confirm",!0)).catch(async e=>{await X(e),c(void 0,!0)}))},{variant:"filled",color:"primary",size:"small"}),m=U.createBox({style:{flex:"0 0 auto",display:"flex",gap:"8px",justifyContent:"flex-end",paddingTop:"12px",borderTop:Z},children:[h,p]}),f=U.createBox({style:{height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column",gap:"12px",padding:"12px",minHeight:"0"},children:[U.createBox({style:{flex:"0 0 auto",display:"flex",flexDirection:"column",gap:"4px"},children:u}),o.root,m]});e.innerHTML="",e.appendChild(f),o.mount()})}const Y={light:{id:"light",name:"Light",variables:{"--background-main":"#ffffff","--background-paper":"#f0f0f0","--background-navbar":"#086ffd","--background-tabbar":"#e1e4e8","--background-backdrop":"rgba(0, 0, 0, 0.25)","--text-primary":"#24292f","--text-secondary":"#57606a","--text-placeholder":"#8c959f","--text-navbar":"#ffffff","--text-tabbar":"#0969da","--icon-navbar":"#ffffff","--icon-tabbar-active":"#0969da","--icon-tabbar-inactive":"#656d76","--primary-light":"#58a6ff","--primary-main":"#0969da","--primary-dark":"#0550ae","--error-light":"#ffebe9","--error-main":"#cf222e","--error-dark":"#a40e26","--warning-light":"#fff8c5","--warning-main":"#9a6700","--warning-dark":"#7d4e00","--success-light":"#dafbe1","--success-main":"#1a7f37","--success-dark":"#116329","--info-light":"#ddf4ff","--info-main":"#0969da","--info-dark":"#0550ae","--neutral-light":"#d1d9e0","--neutral-main":"#e9e9e9","--neutral-dark":"#8c959f","--disabled":"#33353a","--highlight":"#ddf4ff","--white":"#ffffff","--black":"#000000","--divider":"#d1d9e0","--focus-ring":"#0969da","--root-border-radius":"8px","--root-padding":"16px"}},dark:{id:"dark",name:"Dark",variables:{"--background-main":"#131416","--background-paper":"#2a2d33","--background-navbar":"#086ffd","--background-tabbar":"#232529","--background-backdrop":"rgba(0, 0, 0, 0.5)","--text-primary":"#f5f7fa","--text-secondary":"#c0c4cc","--text-placeholder":"#9aa0a6","--text-navbar":"#ffffff","--text-tabbar":"#0a84ff","--icon-navbar":"#ffffff","--icon-tabbar-active":"#0a84ff","--icon-tabbar-inactive":"#6b6e76","--primary-light":"#66b3ff","--primary-main":"#0a84ff","--primary-dark":"#0056b3","--error-light":"#f8d7da","--error-main":"#ff453a","--error-dark":"#c41c12","--warning-light":"#ffe28a","--warning-main":"#ffd60a","--warning-dark":"#c9a400","--success-light":"#48e09e","--success-main":"#30d158","--success-dark":"#228c3f","--info-light":"#4ac8ff","--info-main":"#64d2ff","--info-dark":"#0a84ff","--neutral-light":"#45484e","--neutral-main":"#35383f","--neutral-dark":"#25272b","--disabled":"#33353a","--highlight":"#52a8ff","--white":"#ffffff","--black":"#000000","--divider":"#3a3d44","--focus-ring":"#52a8ff","--root-border-radius":"8px","--root-padding":"16px"}}};const Q=new class{currentProfileId=null;listeners=new Set;async loadProfile(e){const t=Y[e];if(!t)return void console.warn(`[Theme] Profile not found: ${e}`);const n=document.documentElement;if(Object.entries(t.variables).forEach(([e,t])=>{n.style.setProperty(e,t)}),this.currentProfileId=e,this.listeners.forEach(t=>t(e)),"undefined"!=typeof punica&&punica.extensions?.settings?.manager)try{await punica.extensions.settings.manager.set("system","theme.profile",e,"global")}catch(e){console.error("[Theme] Failed to save profile to settings:",e)}}getCurrentProfile(){return this.currentProfileId}getProfiles(){return{...Y}}getProfile(e){return Y[e]}registerProfile(e){Y[e.id]=e}onDidChangeProfile(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}loadDefaultImmediate(){const e=Y.dark;if(!e)return void console.warn("[Theme] Default dark profile not found");const t=document.documentElement;Object.entries(e.variables).forEach(([e,n])=>{t.style.setProperty(e,n)}),this.currentProfileId="dark"}async initialize(){if("undefined"!=typeof punica&&punica.extensions?.settings?.manager)try{await punica.extensions.settings.manager.load();const e=punica.extensions.settings.manager.get("system","theme.profile");e&&"string"==typeof e&&Y[e]?await this.loadProfile(e):await this.loadProfile("dark")}catch(e){console.error("[Theme] Failed to initialize from settings:",e),await this.loadProfile("dark")}else await this.loadProfile("dark")}};function ee(e){return String(e??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function te(e){return ee(e).replace(/\r?\n/g,"<br>")}async function ne(e){return new Promise(t=>{const{title:n,message:i,html:r,buttons:a=[{label:"OK",variant:"filled",action:"ok"}],footerHtml:s,modal:o=!0,width:l,height:c,icon:d,tone:u,onMount:h}=e,p=`punica-dialog-${Date.now()}`,m=document.querySelector(`#${p}`);m?.remove();const f=document.createElement("punica-dialog");f.id=p,f.setAttribute("rounded",""),o&&f.setAttribute("modal",""),l&&f.setAttribute("width",l);const g=[`width: ${l||"440px"}`];c&&g.push(`height: ${c}`);const b=` style="${g.join("; ")}"`,y=u?`var(--${u}-main)`:"",v=d||(u?{info:"fa-circle-info",warning:"fa-triangle-exclamation",error:"fa-circle-exclamation",success:"fa-circle-check"}[u]:""),w=v&&y?`<span style="flex:0 0 auto; width:34px; height:34px; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; background: color-mix(in srgb, ${y} 16%, transparent); color:${y}; font-size:16px;"><i class="fa-duotone fa-solid ${v}"></i></span>`:"",x=r||(i?`<punica-typography style="color: var(--text-secondary); line-height: 1.6;">${te(i)}</punica-typography>`:"");f.innerHTML=`\n <punica-dialog-header>\n <punica-box style="display:flex; align-items:center; gap:12px;">\n ${w}\n <punica-typography fontweight="bold" style="color: var(--text-primary); font-size: 16px;">${ee(n)}</punica-typography>\n </punica-box>\n </punica-dialog-header>\n <punica-dialog-content${b}>\n <punica-box style="display:flex; flex-direction: column; gap: 10px; padding: 4px 2px 8px;">\n ${x}\n </punica-box>\n </punica-dialog-content>\n <punica-dialog-footer>\n ${s||`\n <punica-box style="display:flex; width:100%; box-sizing:border-box; gap: 8px; justify-content: flex-end; padding-top: 14px; border-top: 1px solid var(--divider);">\n ${a.map((e,t)=>`<punica-button id="${`${p}-btn-${t}`}" variant="${e.variant||"outlined"}" color="${e.color||"primary"}" size="small" rounded>${ee(e.label)}</punica-button>`).join("")}\n </punica-box>\n `}\n </punica-dialog-footer>\n `,document.body.appendChild(f),queueMicrotask(()=>{try{f.setAttribute("open","true"),f.open=!0,h?.(f)}catch{}});const E=e=>{try{f.remove()}catch{}t(e)};a.forEach((e,t)=>{const n=`${p}-btn-${t}`,i=f.querySelector(`#${n}`);i?.addEventListener("click",()=>{E(e.action||e.label.toLowerCase())})}),f.addEventListener?.("close",()=>{E(void 0)})})}async function ie(e){const{title:t,message:n,variant:i="info",buttonLabel:r="OK"}=e,a=t||("success"===i?"Success":"warning"===i?"Warning":"error"===i?"Error":"Information");await ne({title:a,message:n,tone:i,buttons:[{label:r,variant:"filled",color:"error"===i?"error":"primary",action:"ok"}]})}const re={showInformationMessage:async function(e,...t){return 0===t.length?void await ie({message:e,variant:"info",title:"Information"}):await ne({title:"Information",message:e,buttons:t.map(e=>({label:e,variant:"outlined",action:e}))})},showWarningMessage:async function(e,...t){return 0===t.length?void await ie({message:e,variant:"warning",title:"Warning"}):await ne({title:"Warning",message:e,buttons:t.map(e=>({label:e,variant:"outlined",action:e}))})},showErrorMessage:async function(e,...t){return 0===t.length?void await ie({message:e,variant:"error",title:"Error"}):await ne({title:"Error",message:e,buttons:t.map(e=>({label:e,variant:"outlined",action:e}))})},showDialog:ne,showConfirm:async function(e){const{title:t="Confirm",message:n,confirmLabel:i="OK",cancelLabel:r="Cancel",variant:a="info"}=e;return"confirm"===await ne({title:t,message:n,tone:a,buttons:[{label:r,variant:"text",action:"cancel"},{label:i,variant:"filled",color:"error"===a?"error":"primary",action:"confirm"}]})},showAlert:ie,showPrompt:async function(e){return new Promise(t=>{const{title:n="Prompt",message:i,placeholder:r="",defaultValue:a="",confirmLabel:s="OK",cancelLabel:o="Cancel",type:l="text"}=e,c=`punica-prompt-${Date.now()}`,d=`${c}-input`;x();let u=a;ne({title:n,html:`\n <punica-box style="display:flex; flex-direction: column; gap: 10px;">\n <punica-typography>${te(i)}</punica-typography>\n <punica-input\n id="${d}"\n type="${ee(l)}"\n placeholder="${ee(r)}"\n value="${ee(a)}"\n rounded>\n ${"password"===l?'<i class="fa-solid fa-key punica-secret-adornment" slot="endAdornment" aria-hidden="true"></i>':""}\n </punica-input>\n </punica-box>\n `,buttons:[{label:o,variant:"outlined",action:"cancel"},{label:s,variant:"filled",action:"confirm"}],onMount:e=>{const t=e.querySelector(`#${d}`);if(!t)return;const n=()=>{const e=t.value??t.getAttribute?.("value");"string"==typeof e&&(u=e)};t.addEventListener("input",n),t.addEventListener("change",n),t.addEventListener("keydown",t=>{if("Enter"===t.key){n();const t=e.querySelector(`#${c}-btn-1`);t?.click()}}),setTimeout(()=>t.focus?.(),0)}}).then(e=>{if("confirm"===e){const e=(u??"").trim();t(e?u:void 0)}else t(void 0)})})},showToast:function(e){const{title:t="",message:n="",variant:i="neutral",duration:r=1e3,dismissible:a=!0,placement:s="top-right"}=e,o=function(){let e=document.querySelector("punica-toaster");return e||(e=document.createElement("punica-toaster"),document.body.appendChild(e)),e}().shadowRoot;if(!o){if(window.Toast?.show)return window.Toast.show(e);throw new Error("punica-toaster shadow root not available")}const l=o.querySelector(`.region.${s}`)||o.querySelector(".region.top-right");if(!l)throw new Error(`Toast region not found: ${s}`);const c=document.createElement("punica-toast");return c.setAttribute("variant",i),t&&c.setAttribute("title",t),n&&c.setAttribute("message",n),r>0&&c.setAttribute("duration",String(r)),c.setAttribute("dismissible",String(a)),c.setAttribute("enter-from",s.startsWith("top")?"top":"bottom"),l.prepend(c),c},showChangesPreview:async function(e){const t=`@changes/${(e.title||"Review changes").replace(/\//g," ")}`;let n=null;try{n=punica.shell?.ContentTabs?.open?.({path:t,title:e.title,viewType:"changes-preview"})??null}catch{n=null}return n?J(n,t,e):function(e){const{title:t,summary:n,files:i,onConfirm:r,onCancel:a}=e,s=`changes-preview-body-${Date.now()}`,o=G(i),l=`\n <punica-box id="${s}" style="display: flex; flex-direction: column; gap: 12px; min-width: 800px; max-width: 1200px; height: 60vh; max-height: 80vh;"></punica-box>\n `;return new Promise(e=>{punica.shell.View.showDialog({title:t,html:l,buttons:[{label:"Cancel",variant:"outlined",action:"cancel"},{label:"Apply Changes",variant:"filled",color:"primary",action:"confirm"}],width:"90vw",onMount:e=>{const t=e.querySelector(`#${s}`);t&&(n&&t.appendChild(U.createTypography(n,{variant:"body2"})),t.appendChild(o.root),o.mount())}}).then(async t=>{if(o.dispose(),"confirm"===t)try{await r(),e("confirm")}catch(t){await X(t),e(void 0)}else a?.(),e("cancel"===t?"cancel":void 0)})})}(e)},Helpers:F,Theme:{manager:Q,profiles:Y}};function ae(){return globalThis.punica?.shell?.Layout?.manager}function se(e){const t=(globalThis.punica?.shell?.PanelContainers)?.forSlot?.(e);return t||("panel"===e?globalThis.punica?.shell?.PanelTabs:null)}function oe(){return globalThis.punica?.shell?.ActivityBar?.manager}const le={manager:new class{#me=new Map;#fe=new Map;#ge=new Map;#be=new Map;#ye=new Map;registerPlacement(t){if(!t?.viewId||!t.slot)return;const n=this.#me.get(t.viewId);n&&n.extensionName!==t.extensionName&&console.warn(`[Views] Placement collision for view "${t.viewId}" between "${n.extensionName}" and "${t.extensionName}". Keeping the last registered.`),this.#me.set(t.viewId,t),e({name:"shell.view.registered",source:"shell:views",payload:{viewId:t.viewId,slot:t.slot,extensionName:t.extensionName}})}registerProvider(e,t,n){return this.#me.has(e)||console.warn(`[Views] Provider registered for "${e}" but no placement is declared in any manifest.`+(n?` (extension: ${n})`:"")),this.#fe.set(e,t),{dispose:()=>{this.#fe.get(e)===t&&this.#fe.delete(e)}}}getPlacement(e){return this.#me.get(e)}hasProvider(e){return this.#fe.has(e)}getState(e){if(!this.#me.has(e)&&!this.#fe.has(e))return;const t=this.#me.get(e);return t&&this.#be.get(t.slot)===e?"visible":this.#ge.has(e)?"materialized":"registered"}getVisibleView(e){return this.#be.get(e)}listViews(){return Array.from(this.#me.values()).map(e=>({viewId:e.viewId,slot:e.slot,extensionName:e.extensionName,title:e.title,state:this.getState(e.viewId)??"registered"}))}async reveal(t,n,i){const r=this.#me.get(t);if(!r)throw new Error(`[Views] Cannot reveal "${t}": no placement is registered for this view.`);if(!this.#fe.has(t)){const e=globalThis.punica?.extensions?.manager;e?.activate&&await e.activate(r.extensionName,{reason:"view",trigger:t,presentation:"interactive"})}const a=ae();if(!a)throw new Error("[Views] Layout manager unavailable — cannot reveal.");const s=a.materializeViewHost(r.slot,t),o=this.#fe.get(t),l="contentSidebar"===r.slot;if(o&&(l||!this.#ge.has(t))){if(l){const e=this.#ge.get(t);try{e?.dispose()}catch(e){console.warn(`[Views] provider dispose failed for "${t}":`,e)}}const e=await o.render(s);this.#ge.set(t,e&&"function"==typeof e.dispose?e:null)}a.showView(r.slot,t),a.setSlotCollapsed?.(r.slot,!1),this.#be.set(r.slot,t);const c=se(r.slot);if(c&&(c.open?.({id:t,title:r.title??t,commandId:r.fallbackCommand??"",iconClass:r.icon,order:r.order,autoActivate:!1,toolbar:r.panelToolbar}),c.activateTabVisual?.(t),this.#ve(t,r.slot)),"primarySidebar"===r.slot)try{oe()?.setActiveByViewId?.(t)}catch{}if(!o&&r.fallbackCommand)try{(globalThis.punica?.kernel?.Commands?.manager)?.executeCommand?.(r.fallbackCommand)}catch(e){console.warn(`[Views] fallback command "${r.fallbackCommand}" for view "${t}" failed:`,e)}e({name:"shell.view.revealed",source:"shell:views",payload:{viewId:t,slot:r.slot,extensionName:r.extensionName,source:n?.kind??"host",sourceId:n?.id,focus:i?.focus??!1}})}hide(t,n){const i=this.#me.get(t);if(!i)return;if(this.#be.get(i.slot)!==t)return;const r=ae();if("contentSidebar"===i.slot?this.#we(i.slot):(r?.hideSlotViews(i.slot),r?.setSlotCollapsed?.(i.slot,!0),i.onDemand&&se(i.slot)?.close?.(t,{silent:!0})),this.#be.delete(i.slot),"primarySidebar"===i.slot)try{oe()?.setActiveByViewId?.(null)}catch{}e({name:"shell.view.hidden",source:"shell:views",payload:{viewId:t,slot:i.slot,source:n?.kind??"host",sourceId:n?.id}})}setViewStatus(e,t,n){const i=this.#me.get(e);if(!i)return void console.warn(`[Views] setViewStatus for unknown view "${e}" ignored${n?` (${n})`:""}.`);if(n&&i.extensionName&&n!==i.extensionName)return void console.warn(`[Views] "${n}" may not set the status of view "${e}" (owned by "${i.extensionName}").`);const r=t?.level??"none";"none"===r?this.#ye.delete(e):this.#ye.set(e,{level:r,detail:t?.detail}),this.#ve(e,i.slot)}getViewStatus(e){return this.#ye.get(e)}#ve(e,t){try{se(t)?.setTabStatus?.(e,this.#ye.get(e)??null)}catch{}}async moveView(t,n,i){const r=this.#me.get(t);if(!r)throw new Error(`[Views] Cannot move "${t}": no placement is registered.`);const a=r.allowedSlots??[r.slot];if(!a.includes(n))throw new Error(`[Views] "${t}" cannot be moved to "${n}". Allowed slots: ${a.join(", ")}.`);const s=r.slot;if(s===n)return;const o=this.#be.get(s)===t,l=ae(),c=se(s);c?.close?.(t,{silent:!0});const d=this.#ge.get(t);try{d?.dispose()}catch(e){console.warn(`[Views] provider dispose failed for "${t}":`,e)}this.#ge.delete(t),l?.removeViewHost?.(s,t);let u=null;if(o){this.#be.delete(s);const e=(c?.listTabs?.()??[]).filter(e=>!e.userHidden&&e.id!==t);e.length>0?u=e[0].id:l?.setSlotCollapsed?.(s,!0)}r.slot=n;try{await((globalThis.punica?.shell?.PanelLayout?.manager)?.setSlotOverride?.(t,n,r.homeSlot??s))}catch(e){console.warn(`[Views] failed to persist slot override for "${t}":`,e)}if(o?await this.reveal(t,i):r.onDemand||(se(n)?.open?.({id:t,title:r.title??t,commandId:r.fallbackCommand??"",iconClass:r.icon,order:r.order,autoActivate:!1,toolbar:r.panelToolbar}),this.#ve(t,n)),u)try{await this.reveal(u,i)}catch(e){console.warn(`[Views] failed to promote sibling "${u}" in "${s}":`,e)}e({name:"shell.view.moved",source:"shell:views",payload:{viewId:t,fromSlot:s,toSlot:n,source:i?.kind??"host",sourceId:i?.id}})}notifySlotReset(t){this.#we(t);const n=this.#be.get(t);void 0!==n&&(this.#be.delete(t),e({name:"shell.view.hidden",source:"shell:views",payload:{viewId:n,slot:t,source:"host",sourceId:"slot-reset"}}))}#we(e){const t=ae();for(const n of this.#me.values()){if(n.slot!==e)continue;const i=this.#ge.get(n.viewId);try{i?.dispose()}catch(e){console.warn(`[Views] provider dispose failed for "${n.viewId}":`,e)}this.#ge.delete(n.viewId),t?.removeViewHost?.(e,n.viewId)}}unmountByExtension(e){for(const t of this.#me.values()){if(t.extensionName!==e)continue;const n=t.viewId;this.#be.get(t.slot)===n&&this.hide(n,{kind:"host",id:"deactivate"});const i=this.#ge.get(n);try{i?.dispose()}catch(e){console.warn(`[Views] provider dispose failed for "${n}":`,e)}this.#ge.delete(n),this.#fe.delete(n);const r=ae();r?.removeViewHost?.(t.slot,n)}}}};const ce={manager:new class{#xe=[];#Ee(e,t){return e.length===t.length&&e.every((e,n)=>e.key.toLowerCase()===t[n].key.toLowerCase()&&!!e.ctrlKey==!!t[n].ctrlKey&&!!e.shiftKey==!!t[n].shiftKey&&!!e.altKey==!!t[n].altKey&&!!e.metaKey==!!t[n].metaKey)}#ke(e,t){return t.every(t=>!!t.ctrlKey===e.ctrlKey&&!!t.shiftKey===e.shiftKey&&!!t.altKey===e.altKey&&!!t.metaKey===e.metaKey&&e.key.toLowerCase()===t.key.toLowerCase())}constructor(){document.addEventListener("keydown",this.handleKeyEvent.bind(this))}#_e(e){switch(e){case"editorTextFocus":return this.#Ce();case"fileExplorerFocus":return this.#Ae("primarySidebar","file-explorer-sidebar");default:return}}#Ce(){const e="undefined"!=typeof document?document.activeElement:null;if(!e)return!1;const t=e.tagName;return"INPUT"===t||"TEXTAREA"===t||(!!e.isContentEditable||!!e.closest?.(".monaco-editor, .cm-editor"))}#Ae(e,t){if("undefined"==typeof document)return!1;if((punica.shell.Views?.manager?.getVisibleView?.(e)??null)!==t)return!1;const n=document.getElementById(e),i=document.activeElement;return!!(n&&i&&n.contains(i))}#Se(e){const t=e.when;return!t||t.split("&&").map(e=>e.trim()).filter(e=>e.length>0).every(e=>this.#De(e))}#De(e){const t=e.indexOf("==");if(-1!==t){const n=e.slice(0,t).trim(),i=e.slice(t+2).trim().replace(/^['"]|['"]$/g,"");if("view"===n){return(punica.shell.ContentTabs?.getActiveViewType?.()??null)===i}return!1}if(e.startsWith("!")){const t=this.#_e(e.slice(1).trim());return void 0!==t&&!t}return!0===this.#_e(e)}registerShortcut(e){const t=this.#xe.find(t=>this.#Ee(t.keys,e.keys)&&(t.when??"")===(e.when??""));t?console.warn(`[KeyboardShortcuts] Ignoring duplicate binding for command "${e.command}"; "${t.command}" already owns this chord${e.when?` (when: ${e.when})`:""}.`):this.#xe.push(e)}unregisterShortcut(e){this.#xe=this.#xe.filter(t=>!this.#Ee(t.keys,e))}handleKeyEvent(e){if(e.repeat)return;const t=this.#xe.find(t=>this.#ke(e,t.keys)&&this.#Se(t));t&&(e.preventDefault(),punica.kernel.Commands.manager.executeCommand(t.command))}}},de={id:"classic-editor",title:"Classic Editor",root:{type:"row",sizes:[70,30],children:[{type:"column",sizes:[80,20],children:[{type:"slot",id:"content",role:"content"},{type:"slot",id:"panel",role:"panel"}]},{type:"slot",id:"secondarySidebar",role:"secondarySidebar"}]}},ue={id:"welcome",title:"Welcome",root:{type:"row",sizes:[100],children:[{type:"column",sizes:[100],children:[{type:"slot",id:"content",role:"content"}]}]}},he=new Set(["secondarySidebar","panel"]);const pe={type:"row",sizes:[100],children:[{type:"slot",id:"content",role:"content"}]};const me={manager:new class{#Ne;#Te=new Map;#Ie=new Map;#Le;#Me=new Map;#ze=[];constructor(){this.#Ne=document.createElement("div"),this.#Ne.id="punica-editor",this.#Le=de}applyProfile(e){if(this.#Le=e,this.#Te.clear(),this.#Ie.clear(),this.#Me.clear(),this.#Fe(),this.#Ne.innerHTML="",this.#Ne.classList.remove("layout-welcome","layout-classic"),this.#Ne.classList.add("welcome"===e.id?"layout-welcome":"layout-classic"),"welcome"!==e.id){const e=document.createElement("div");e.id="activityBar",this.#Ne.appendChild(e),this.#Te.set("activityBar",{id:"activityBar",role:"activityBar",content:e})}const t=document.createElement("div");if(t.id="mainContent",t.style.height="100%",t.style.width="100%",t.style.display="flex",this.#Ne.appendChild(t),"welcome"!==e.id){const e=document.createElement("div");e.id="primarySidebar",this.#Ne.appendChild(e),this.#Te.set("primarySidebar",{id:"primarySidebar",role:"primarySidebar",content:e});const t=document.createElement("div");t.id="contentSidebar",this.#Ne.appendChild(t),this.#Te.set("contentSidebar",{id:"contentSidebar",role:"overlay",content:t})}const n=document.createElement("div");n.id="statusbar",this.#Ne.appendChild(n),this.#Te.set("statusbar",{id:"statusbar",role:"statusbar",content:n}),this.#Be(e.root,t,!0)}getActiveProfile(){return this.#Le}getSlot(e){return this.#Te.get(e)}materializeViewHost(e,t){const n=this.#Te.get(e);if(!n)throw new Error(`Layout slot "${e}" not found in active profile`);let i=this.#Ie.get(e);i||(i=new Map,this.#Ie.set(e,i));let r=n.content;if("panel"===e||"secondarySidebar"===e){const e=n.content.querySelector("[data-views-root]");e&&(r=e)}let a=i.get(t);return a?a.parentElement||r.appendChild(a):(a=document.createElement("div"),a.dataset.viewId=t,a.style.height="100%",a.style.width="100%","primarySidebar"===e&&(a.style.overflowX="hidden",a.style.overflowY="auto"),a.style.display="none",r.appendChild(a),i.set(t,a)),a}showView(e,t){"primarySidebar"===e&&this.resetContentSidebar();const n=this.#Te.get(e);if(!n)throw new Error(`Layout slot "${e}" not found in active profile`);const i=this.#Ie.get(e);if(i?.forEach((e,n)=>{e.style.display=n===t?"block":"none"}),n.content.style.display="block","primarySidebar"===e)try{punica.shell.ActivityBar.manager.setActiveByViewId?.(t)}catch(e){console.warn("[Layout] Failed to sync ActivityBar selection:",e)}}resetContentSidebar(){const e=this.#Te.get("contentSidebar");if(!e)return;const t=this.#Ie.get("contentSidebar");t&&(t.forEach(e=>{e.parentElement&&e.parentElement.removeChild(e)}),t.clear()),e.content.innerHTML="";try{punica.shell?.Views?.manager?.notifySlotReset?.("contentSidebar")}catch{}}hideSlotViews(e){const t=this.#Ie.get(e);t?.forEach(e=>{e.style.display="none"})}#Oe(e){const t=this.#Te.get(e);if(!t)return;const n=t.content.closest("punica-split");if(!n)return;let i=t.content;for(;i&&i.parentElement!==n;)i=i.parentElement;if(!i)return;const r=Array.from(n.children).filter(e=>1===e.nodeType),a=r.indexOf(i);return a<0?void 0:{split:n,index:a,count:r.length}}isSlotCollapsed(e){return this.#Me.has(e)}setSlotCollapsed(e,t){const n=this.#Oe(e);if(!n)return;const{split:i,index:r,count:a}=n;if("function"==typeof i.setSizes)if(t){if(this.#Me.has(e))return;const t=(i.getSizes?.()??[]).slice();if(t.length!==a||a<2)return;this.#Me.set(e,t);const n=t.reduce((e,t,n)=>n===r?e:e+t,0),s=t.map((e,t)=>t===r?0:n>0?e/n*100:100/(a-1));i.setSizes(s)}else{const t=this.#Me.get(e);this.#Me.delete(e),t&&t.length===a&&i.setSizes(t)}}removeViewHost(e,t){const n=this.#Ie.get(e),i=n?.get(t);i&&(i.parentElement&&i.parentElement.removeChild(i),n?.delete(t))}ensureViewHost(n,i){const r=this.materializeViewHost(n,i);return t()?(e({name:"shell.view.revealBlocked",source:"shell:views",kind:"warn",payload:{viewId:i,slot:n,api:"Layout.ensureViewHost"}}),console.warn(`[Shell] UI mutation during headless activation blocked: ensureViewHost("${n}", "${i}"). Register a ViewProvider (context.ui.registerViewProvider) and reveal via the shell.revealView capability instead.`),r):(this.showView(n,i),r)}#Be(e,t,n){if("slot"===e.type){const n=document.createElement("div");n.style.height="100%",n.style.width="100%",n.style.overflow="hidden",t.appendChild(n);const i={id:e.id,role:e.role,content:n};return void this.#Te.set(e.id,i)}const i="row"===e.type,r=F.createSplit({orientation:i?"horizontal":"vertical",sizes:e.sizes,style:{height:"100%",width:"100%"}});t.appendChild(r);const a=e.children.length;for(let t=0;t<a;t++){const n=document.createElement("div");n.style.height="100%",n.style.width="100%",r.appendChild(n),this.#Be(e.children[t],n,!1)}this.#Re(r,e)}#Re(e,t){if("slot"===t.type)return;if("undefined"==typeof ResizeObserver)return;const n=t.children.map((e,t)=>"slot"===e.type&&he.has(e.role??"")?t:-1).filter(e=>e>=0);if(!n.length||n.length===t.children.length)return;const i="row"===t.type;let r=0,a=null;const s=new ResizeObserver(()=>{const t=i?e.clientWidth:e.clientHeight;if(t<=0)return;const s=r;if(r=t,s<=0||s===t)return;const o=e,l=o.getSizes?.();if(!l?.length)return;const c=function(e,t,n,i,r=5){if(!e.length||t<=0||n<=0)return null;const a=e.map((e,t)=>t).filter(e=>!i.includes(e));if(!a.length)return null;const s=[...e];let o=0;for(const a of i){const i=e[a]/100*t,l=Math.max(r,i/n*100);s[a]=l,o+=l}const l=100-o;if(l<r*a.length)return null;const c=a.reduce((t,n)=>t+e[n],0);for(const t of a)s[t]=c>0?e[t]/c*l:l/a.length;const d=s.reduce((e,t)=>e+t,0),u=a.reduce((e,t)=>s[e]>=s[t]?e:t);return s[u]+=100-d,s}(l,s,t,n);c&&(e.toggleAttribute("no-transition",!0),o.setSizes?.(c),a&&clearTimeout(a),a=setTimeout(()=>{a=null,e.removeAttribute("no-transition")},150))});s.observe(e),this.#ze.push(s)}#Fe(){for(const e of this.#ze)e.disconnect();this.#ze=[]}applyApplicationProfile(e){const t=new Set(e.shell.activeModules),n=t.has("shell.activityBar"),i=t.has("shell.view"),r=t.has("shell.statusbar"),a=e.shell.layout,s=a?.id??e.identity.id,o=a?.root??pe;if(this.#Le={id:s,title:e.identity.name,root:o},this.#Te.clear(),this.#Ie.clear(),this.#Me.clear(),this.#Fe(),this.#Ne.innerHTML="",this.#Ne.classList.remove("layout-welcome","layout-classic"),this.#Ne.classList.add(n?"layout-classic":"layout-welcome"),this.#Ne.dataset.profileId=e.identity.id,n){const e=document.createElement("div");e.id="activityBar",this.#Ne.appendChild(e),this.#Te.set("activityBar",{id:"activityBar",role:"activityBar",content:e})}const l=document.createElement("div");if(l.id="mainContent",l.style.height="100%",l.style.width="100%",l.style.display="flex",this.#Ne.appendChild(l),i){const e=document.createElement("div");e.id="primarySidebar",this.#Ne.appendChild(e),this.#Te.set("primarySidebar",{id:"primarySidebar",role:"primarySidebar",content:e});const t=document.createElement("div");t.id="contentSidebar",this.#Ne.appendChild(t),this.#Te.set("contentSidebar",{id:"contentSidebar",role:"overlay",content:t})}if(r){const e=document.createElement("div");e.id="statusbar",this.#Ne.appendChild(e),this.#Te.set("statusbar",{id:"statusbar",role:"statusbar",content:e})}this.#Be(o,l,!0)}render(e){try{const e=window,t=e.punica?.Runtime?.runtime??e.punica?.runtime,n=t?.lifecyclePhase,i="noWorkspace"===n?ue:de,r=this.#Le.id===de.id||this.#Le.id===ue.id;this.#Ne.childElementCount?r&&this.#Le.id!==i.id&&this.applyProfile(i):this.applyProfile(i)}catch{this.#Ne.childElementCount||this.applyProfile(this.#Le)}e.appendChild(this.#Ne)}}};function fe(e){return e.split("/").pop()||e}function ge(e,t,n){return e===t?n:`${n}${e.slice(t.length)}`}const be=new class{#e=!1;#$e=null;#je=null;#Pe=new Map;#He=null;#qe(){if(this.#e)return;const e=punica.shell.Layout.manager.getSlot("content"),t=e?.content;if(!t)return void console.warn("[ContentTabs] content host not found");t.innerHTML="";const n=F.createBox({attrs:{id:"content-tabs-root"},style:{height:"100%",display:"flex",flexDirection:"column"}}),i=F.createBox({attrs:{id:"content-tabs-bar"},style:{height:"40px",flex:"0 0 auto",display:"flex",alignItems:"center",overflowX:"auto",overflowY:"hidden",backgroundColor:"var(--background-paper)"}});i.addEventListener("wheel",e=>{i.scrollWidth<=i.clientWidth||0!==e.deltaY&&(i.scrollLeft+=e.deltaY,e.preventDefault())},{passive:!1});const r=F.createTab({orientation:"horizontal",style:{width:"max-content",minWidth:"100%",flex:"0 0 auto",height:"100%"},onChange:e=>{e&&this.#Ve(e)}});i.appendChild(r);const a=document.createElement("style");a.textContent=" #content-tabs-bar::-webkit-scrollbar { height: 6px; }\n #content-tabs-bar::-webkit-scrollbar-thumb {\n background: var(--divider, rgba(255, 255, 255, 0.15));\n border-radius: 3px;\n }\n #content-tabs-bar::-webkit-scrollbar-track { background: transparent; }\n \n",i.appendChild(a);const s=F.createBox({attrs:{id:"content-tabs-panels"},style:{flex:"1",height:"calc(100% - 40px)"}});n.appendChild(i),n.appendChild(s);const o=F.createContextMenu({attrs:{id:"content-tabs-menu"},target:"#content-tabs-root",items:[{label:"Close",value:"close"},{label:"Close Others",value:"closeOthers"},{label:"Close All",value:"closeAll"}],onSelect:e=>{const t=this.#He||this.#$e&&this.#$e.getAttribute("value")||"";switch(e){case"close":t&&this.closeById(t);break;case"closeOthers":t&&this.closeOthersById(t);break;case"closeAll":this.closeAll()}this.#He=null}});n.appendChild(o),t.appendChild(n),this.#$e=r,this.#je=s,this.#e=!0}#Ve(e){if(!this.#$e||!this.#je)return;this.#$e.setAttribute("value",e);this.#$e.querySelectorAll("punica-tab-item").forEach(t=>{t.getAttribute("value")===e?(t.style.backgroundColor="var(--background-main)",t.scrollIntoView({block:"nearest",inline:"nearest"})):t.style.backgroundColor=""});this.#je.querySelectorAll("punica-tab-panel").forEach(t=>{t.setAttribute("selectedvalue",e)});try{const t=window,n=t?.punica?.kernel?.Commands?.manager;n&&"function"==typeof n.executeCommand&&n.executeCommand("file-explorer.revealFile",e)}catch(e){console.warn("[ContentTabs] Failed to notify file-explorer",e)}this.#Ue(e)}#Ue(e){try{const t=e?Array.from(this.#Pe.values()).find(t=>t.id===e):void 0;punica.shell.ActivityBar.manager.syncContentTool?.(t?.viewType??null)}catch{}}open(e){if(this.#qe(),!this.#$e||!this.#je)return null;const t=this.#Pe.get(e.path);if(t)return this.#Ve(t.id),t.container;const n=e.path,i=fe(e.path),r=e.title??i,a=r===i,s=F.createTypography(r,{attrs:{truncate:"1",title:e.path},style:{maxWidth:"150px"}}),o=F.createIconButton("fa-duotone fa-solid fa-xmark",t=>{t.stopPropagation(),this.close(e.path)},{size:"small",title:"Close"}),l=F.createElement("span",{attrs:{role:"img","aria-label":"Unsaved changes",title:"Unsaved changes"},style:{display:"none",flex:"0 0 auto",width:"6px",height:"6px",borderRadius:"50%",backgroundColor:"var(--text-primary)"}}),c=F.createRow({alignItems:"center",wrap:"nowrap",spacing:"0.5",style:{maxWidth:"200px"},children:[F.createCol({children:[s]}),F.createCol({children:[l]}),F.createCol({children:[o]})]}),d=F.createTabItem({value:n,className:"content-file-type",style:{maxWidth:"200px",flex:"0 0 auto",padding:"var(--spacing-8) var(--spacing-4) var(--spacing-8) var(--spacing-12)"},children:[c]});d.addEventListener("contextmenu",()=>{this.#He=n,this.#Ve(n)}),this.#$e.appendChild(d);const u=F.createElement("div",{style:{height:"100%",width:"100%",boxSizing:"border-box"}}),h=F.createTabPanel({value:n,selectedValue:n,style:{height:"100%",width:"100%",boxSizing:"border-box"},children:[u]});this.#je.appendChild(h);const p={id:n,path:e.path,title:r,titleFollowsPath:a,viewType:e.viewType,tabElement:d,labelElement:s,dirtyElement:l,container:u,panel:h,dirty:!1};return this.#Pe.set(e.path,p),this.#Ve(n),u}async close(e){const t=this.#Pe.get(e);t&&await this.#Ze(t)&&this.#We(t)}async closeById(e){const t=Array.from(this.#Pe.values()).find(t=>t.id===e);t&&await this.#Ze(t)&&this.#We(t)}async closeOthers(e){const t=this.#Pe.get(e);t&&await this.closeOthersById(t.id)}async closeOthersById(e){const t=Array.from(this.#Pe.values()).filter(t=>t.id!==e);for(const e of t){if(!await this.#Ze(e))return;this.#We(e)}this.#Ve(e)}async closeAll(){const e=Array.from(this.#Pe.values());for(const t of e){if(!await this.#Ze(t))return;this.#We(t)}}#We(e){if(!this.#$e||!this.#je)return;e.tabElement.parentElement===this.#$e&&this.#$e.removeChild(e.tabElement),e.panel.parentElement===this.#je&&this.#je.removeChild(e.panel),this.#Pe.delete(e.path),this.#Ke("shell.contentTabs.didClose",{path:e.path});const t=Array.from(this.#Pe.values());if(t.length>0){const e=t[t.length-1];this.#Ve(e.id)}else this.#$e.removeAttribute("value"),this.#Ue(null)}async#Ze(e){if(!e.dirty)return!0;this.#Ve(e.id);const t=e.title||e.path.split("/").pop()||e.path,n=await punica.shell.View.showDialog({title:"Unsaved changes",message:`"${t}" has unsaved changes. Do you want to save before closing?`,tone:"warning",buttons:[{label:"Cancel",variant:"text",action:"cancel"},{label:"Don't Save",variant:"outlined",action:"discard"},{label:"Save",variant:"filled",color:"primary",action:"save"}]});if("save"===n)try{const e=punica?.kernel?.Commands?.manager;return e&&"function"==typeof e.executeCommand&&await e.executeCommand("editor.saveActiveFile"),!0}catch(e){return await punica.shell.View.showAlert({title:"Save failed",message:`Could not save "${t}". The tab was left open.`,variant:"error"}),console.warn("[ContentTabs] save before close failed",e),!1}return"discard"===n}setDirty(e,t){const n=this.#Pe.get(e);if(n){n.dirty=t,this.#Ge(n);try{punica.runtime.fileOperations?.setDirty(e,t)}catch{}}}isDirty(e){return this.#Pe.get(e)?.dirty??!1}list(){return Array.from(this.#Pe.values()).map(e=>({path:e.path,title:e.title,viewType:e.viewType,dirty:e.dirty}))}rename(e,t){if(!e||!t||e===t)return;const n=this.#Xe(e);if(0===n.length)return;const i=this.#$e?.getAttribute("value")??null;let r=null;for(const a of n){const n=ge(a.path,e,t),s=a.id===i;this.#Pe.delete(a.path),a.path=n,a.id=n,a.titleFollowsPath&&(a.title=fe(n)),a.tabElement.setAttribute("value",n),a.panel.setAttribute("value",n),a.labelElement.setAttribute("title",n),this.#Ge(a),this.#Pe.set(n,a),s&&(r=n)}r&&this.#Ve(r),this.#Ke("shell.contentTabs.didRename",{oldPath:e,newPath:t})}forceClose(e){for(const t of this.#Xe(e))this.#We(t)}#Xe(e){return Array.from(this.#Pe.values()).filter(t=>t.path===e||t.path.startsWith(`${e}/`))}#Ge(e){e.labelElement.textContent=e.title||fe(e.path),e.dirtyElement.style.display=e.dirty?"inline-block":"none"}#Ke(e,t){try{punica.kernel.Events.manager.publish(e,t)}catch{}}getActivePath(){if(!this.#$e)return null;const e=this.#$e.getAttribute("value");if(!e)return null;const t=Array.from(this.#Pe.values()).find(t=>t.id===e);return t?.path??null}getActiveViewType(){if(!this.#$e)return null;const e=this.#$e.getAttribute("value");if(!e)return null;const t=Array.from(this.#Pe.values()).find(t=>t.id===e);return t?.viewType??null}};const ye="punica-tabbed-container-style",ve={panel:"bottom panel",secondarySidebar:"right sidebar"};let we=null;const xe=[];class Ee{slotId;orientation;#e=!1;#m=null;#$e=null;#Je=null;#Ye=null;#Qe=null;#et=null;#tt=null;#nt=null;#it=!1;#rt=new Set;#at=new Map;#S=null;#st="both";#ot=null;#lt=!1;#ct=!1;constructor(e,t){this.slotId=e,this.orientation=t,xe.push(this)}#dt(e){return`${this.slotId}-${e}`}get#ut(){return"horizontal"===this.orientation}#ht(){return globalThis.punica?.shell?.PanelLayout?.manager??null}#qe(){if(this.#e)return;const e=punica.shell.Layout.manager.getSlot(this.slotId),t=e?.content;if(!t)return void console.warn(`[TabbedContainer] host not found for slot "${this.slotId}"`);t.innerHTML="";const n="vertical"===this.orientation?"icon":"both";this.#st=this.#ht()?.getDisplayMode?.(this.slotId)??n,this.#l();const i=F.createBox({attrs:{id:this.#dt("tabs-root"),"data-tabbed-container":"","data-orientation":this.orientation},style:{height:"100%",width:"100%",display:"flex",flexDirection:this.#ut?"column":"row"}}),r=F.createBox({style:{display:"flex",alignItems:"center",backgroundColor:"var(--background-paper)",...this.#ut?{height:"32px",flexDirection:"row"}:{width:"44px",height:"100%",flexDirection:"column"}}}),a=F.createTab({orientation:this.orientation,attrs:{role:"tablist"},style:{flex:"1 1 auto",overflow:"hidden",backgroundColor:"var(--background-paper)",...this.#ut?{minWidth:"0",height:"100%"}:{minHeight:"0",width:"100%",display:"flex",flexDirection:"column"}},onChange:e=>{e&&this.#pt(e,this.#dt("tab"))}});r.addEventListener("contextmenu",e=>{this.#mt(e)});const s=F.createIconButton("fa-solid fa-ellipsis",()=>{this.#ft()},{size:"x-small",title:"More tabs",attrs:{id:this.#dt("tab-overflow-btn"),"aria-label":"More tabs"}});s.style.flex="0 0 auto",s.style.display="none";const o=F.createIconButton("fa-solid fa-plus",()=>{this.#gt()},{size:"x-small",title:"Show hidden tabs",attrs:{id:this.#dt("tab-show-hidden-btn"),"aria-label":"Show hidden tabs"}});o.style.flex="0 0 auto",o.style.display="none";const l=F.createBox({attrs:{id:this.#dt("toolbar-area")},style:{flex:"0 0 auto",display:"flex",alignItems:"center",padding:"0 var(--spacing-8)"}});r.appendChild(a),r.appendChild(o),r.appendChild(s),r.appendChild(l);const c=F.createMenu({attrs:{id:this.#dt("tab-overflow-menu")}});c.addEventListener("close",()=>{c.removeAttribute("open")}),c.addEventListener("menu-item-click",e=>{const t=e?.detail?.data;t&&(e.stopPropagation?.(),c.removeAttribute("open"),this.#pt(t,this.#dt("tab-overflow")))});const d=F.createMenu({attrs:{id:this.#dt("tab-context-menu")}});d.addEventListener("close",()=>{d.removeAttribute("open")}),d.addEventListener("menu-item-click",e=>{const t=e?.detail?.data;d.removeAttribute("open"),t&&this.#bt(t)});const u=document.createElement("div");if(u.id=this.#dt("views-root"),u.setAttribute("data-views-root",""),u.style.flex="1",this.#ut?(u.style.height="calc(100% - 32px)",u.style.width="100%"):(u.style.height="100%",u.style.width="calc(100% - 44px)"),i.appendChild(r),i.appendChild(u),i.appendChild(c),i.appendChild(d),t.appendChild(i),this.#yt(i),"undefined"!=typeof ResizeObserver){new ResizeObserver(()=>{this.#vt()}).observe(r)}this.#m=i,this.#$e=a,this.#Je=l,this.#Ye=s,this.#Qe=c,this.#et=o,this.#tt=d,this.#e=!0}#l(){if("undefined"==typeof document)return;if(document.getElementById(ye))return;const e=document.createElement("style");e.id=ye,e.textContent=" [data-tabbed-container] punica-tab-item {\n cursor: pointer;\n transition: background-color 0.08s ease;\n }\n [data-tabbed-container] punica-tab-item:hover {\n background-color: var(--background-main);\n }\n [data-tabbed-container] punica-tab-item[data-user-hidden] {\n display: none !important;\n }\n /* The active tab uses OUR accent only; we strip the component's selected\n attribute (its border indicator), so restore its full opacity here. */\n [data-tabbed-container] punica-tab-item[active] {\n opacity: 1;\n }\n [data-orientation='horizontal'] punica-tab-item {\n border-top: 2px solid transparent;\n }\n [data-orientation='horizontal'] punica-tab-item[active] {\n background-color: var(--background-main);\n border-top: 2px solid var(--primary-main);\n }\n [data-orientation='vertical'] punica-tab-item {\n border-left: 2px solid transparent;\n justify-content: center;\n }\n [data-orientation='vertical'] punica-tab-item[active] {\n background-color: var(--background-main);\n border-left: 2px solid var(--primary-main);\n }\n /* Passive status tint: a tab's icon takes the color of the worst thing its\n view is holding, so a closed panel stops looking identical whether it holds\n three errors or nothing. Same tokens the lists themselves use for those\n severities, so the tab reads as a summary of its rows rather than a second\n vocabulary. Selectors reach the icon in the tab's light DOM, which is why\n one rule covers both orientations and all three display modes — icon-only\n included, where the tint is the only thing on screen (its words live in the\n tab's title/aria-label). */\n [data-tabbed-container] punica-tab-item[data-status='error'] [data-col='icon'] i {\n color: var(--error-main);\n }\n [data-tabbed-container] punica-tab-item[data-status='warning'] [data-col='icon'] i {\n color: var(--warning-main);\n }\n [data-tabbed-container] punica-tab-item[data-status='info'] [data-col='icon'] i {\n color: var(--info-main);\n }\n [data-tabbed-container] punica-tab-item[data-status='success'] [data-col='icon'] i {\n color: var(--success-main);\n }\n /* Inactive tabs render at 0.6 opacity (the component's :host rule), which\n mutes the tint exactly where it has to be noticed. A status is a reason to\n look at a tab you are NOT on, so opt those tabs back to full opacity. */\n [data-tabbed-container] punica-tab-item[data-status]:not([active]) {\n opacity: 1;\n }\n\n [data-tabbed-container][data-drop-target] {\n outline: 2px dashed var(--primary-main);\n outline-offset: -2px;\n }\n",document.head.appendChild(e)}#pt(e,t){const n=globalThis.punica?.shell?.Views?.manager;if(n?.getPlacement?.(e))return n.reveal(e,{kind:"user-gesture",id:`${t}:${e}`}).catch(t=>{console.warn("[TabbedContainer] reveal failed for tab",e,t)}),void this.activateTabVisual(e);this.setActive(e)}open(e){if(this.#qe(),!this.#$e)return;if(this.#at.get(e.id))return void(!1===e.autoActivate||this.#S===e.id||this.#wt(e.id,"PanelTabs.open")||this.setActive(e.id));const t=F.createRow({alignItems:"center",wrap:"nowrap",spacing:"0.5"});let n=null;if(e.iconClass){const i=e.iconClass.trim(),r=F.createIcon(i.startsWith("<")?{innerHTML:i}:{iconClass:i});n=F.createCol({attrs:{"data-col":"icon"},children:[r]}),t.appendChild(n)}const i=F.createCol({attrs:{"data-col":"label"},children:[F.createTypography(e.title,{attrs:{truncate:"1"}})]});t.appendChild(i);const r=F.createTabItem({value:e.id,attrs:{title:e.title,role:"tab"},style:{flex:"0 0 auto",...this.#ut?{maxWidth:"160px",padding:"var(--spacing-6) var(--spacing-8)"}:{width:"100%",padding:"var(--spacing-8) var(--spacing-6)",height:"auto",flexGrow:"0"}},children:[t]});r.draggable=!0;const a=!0===this.#ht()?.isTabHidden?.(e.id,this.slotId);a&&r.setAttribute("data-user-hidden","");const s=this.#xt(e.id,e.order),o=Array.from(this.#at.values()).sort((e,t)=>e.order-t.order).find(e=>e.order>s);o?this.#$e.insertBefore(r,o.tabElement):this.#$e.appendChild(r);const l={id:e.id,title:e.title,commandId:e.commandId,iconClass:e.iconClass,order:s,tabElement:r,iconColEl:n,labelColEl:i,userHidden:a,toolbar:e.toolbar,toolbarEl:null};e.toolbar?.length&&this.#Je&&(l.toolbarEl=this.#Et(e.id,e.toolbar),this.#Je.appendChild(l.toolbarEl)),this.#at.set(e.id,l),this.#kt(l),this.#_t(l),this.#Ct(),this.#vt();const c=e.autoActivate;this.#S||a||!1===c||this.#wt(e.id,"PanelTabs.open")||this.setActive(e.id)}#xt(e,t){const n=this.#ht()?.getTabOrder?.(this.slotId);if(n&&n.length){const i=n.indexOf(e);return i>=0?i:1e3*n.length+(t??1e3)}return t??1e3}#kt(e){const t=this.#st,n=!!e.iconColEl,i=n&&("icon"===t||"both"===t),r="label"===t||"both"===t||!n;e.iconColEl&&(e.iconColEl.style.display=i?"":"none"),e.labelColEl&&(e.labelColEl.style.display=r?"":"none")}#Et(e,t){const n=document.createElement("div");n.dataset.viewId=e,n.style.display="none",n.style.alignItems="center",n.style.gap="var(--spacing-4)";for(const e of t){if(!e?.command)continue;const t=F.createIconButton("",()=>{try{const t=window,n=t?.punica?.kernel?.Commands?.manager;n&&"function"==typeof n.executeCommand&&n.executeCommand(e.command)}catch(t){console.warn("[TabbedContainer] Failed to execute toolbar command",e.command,t)}},{size:"x-small",title:e.title??e.command,attrs:{"aria-label":e.title??e.command,"data-action-id":e.id},style:{flex:"0 0 auto"},innerHTML:e.icon??""});n.appendChild(t)}return n}#wt(n,i){return!!t()&&(e({name:"shell.view.revealBlocked",source:"shell:views",kind:"warn",payload:{viewId:n,slot:this.slotId,api:i}}),console.warn(`[Shell] UI mutation during headless activation blocked: ${i}("${n}"). Declare the tab without autoActivate and reveal via the shell.revealView capability instead.`),!0)}setTabStatus(e,t){const n=this.#at.get(e);if(!n)return;n.status=t;const i=t?.level&&"none"!==t.level?t.level:null;i?n.tabElement.setAttribute("data-status",i):n.tabElement.removeAttribute("data-status");const r=t?.detail?`${n.title} · ${t.detail}`:n.title;n.tabElement.setAttribute("title",r),n.tabElement.setAttribute("aria-label",r)}activateTabVisual(e){if(!this.#$e)return;if(!this.#at.get(e))return;this.#S=e,this.#$e.setAttribute("value",e);this.#$e.querySelectorAll("punica-tab-item").forEach(t=>{const n=t.getAttribute("value");t.removeAttribute("selected"),n===e?(t.setAttribute("active",""),t.setAttribute("aria-selected","true")):(t.removeAttribute("active"),t.setAttribute("aria-selected","false"))}),this.#at.forEach(t=>{t.toolbarEl&&(t.toolbarEl.style.display=t.id===e?"flex":"none")}),this.recomputeOverflow()}close(e,t){if(!this.#$e)return;const n=this.#at.get(e);if(n&&(n.tabElement.parentElement===this.#$e&&this.#$e.removeChild(n.tabElement),n.toolbarEl&&(n.toolbarEl.remove(),n.toolbarEl=null),this.#rt.delete(e),this.#at.delete(e),this.#vt(),this.#S===e)){const e=Array.from(this.#at.values()).filter(e=>!e.userHidden).sort((e,t)=>e.order-t.order);this.#S=null,!t?.silent&&e.length>0?this.setActive(e[0].id):this.#$e.removeAttribute("value")}}closeAll(){this.#$e&&Array.from(this.#at.keys()).forEach(e=>this.close(e))}setActive(e){if(!this.#$e)return;const t=this.#at.get(e);if(t&&!this.#wt(e,"PanelTabs.setActive")&&(this.activateTabVisual(e),t.commandId))try{const e=window,n=e?.punica?.kernel?.Commands?.manager;n&&"function"==typeof n.executeCommand&&n.executeCommand(t.commandId)}catch(e){console.warn("[TabbedContainer] Failed to execute command",t.commandId,e)}}getActiveId(){return this.#S}getDisplayMode(){return this.#st}setDisplayMode(e){this.#st=e,this.#at.forEach(e=>this.#kt(e)),this.#ht()?.setDisplayMode?.(e,{slot:this.slotId}),this.#vt()}hideTab(e){const t=this.#at.get(e);if(t&&!t.userHidden){if(t.userHidden=!0,t.tabElement.setAttribute("data-user-hidden",""),this.#ht()?.setTabHidden?.(e,!0,{slot:this.slotId}),this.#Ct(),this.#S===e){this.#S=null,this.#$e?.removeAttribute("value"),t.tabElement.removeAttribute("active");const e=Array.from(this.#at.values()).filter(e=>!e.userHidden).sort((e,t)=>e.order-t.order)[0];e&&this.#pt(e.id,this.#dt("tab-hide"))}this.#vt()}}showTab(e){const t=this.#at.get(e);t&&t.userHidden&&(t.userHidden=!1,t.tabElement.removeAttribute("data-user-hidden"),this.#ht()?.setTabHidden?.(e,!1,{slot:this.slotId}),this.#Ct(),this.#vt(),this.#pt(e,this.#dt("tab-show")))}setUserOrder(e){this.#$e&&(e.forEach((e,t)=>{const n=this.#at.get(e);n&&(n.order=t,this.#$e.appendChild(n.tabElement))}),Array.from(this.#at.values()).filter(t=>!e.includes(t.id)).sort((e,t)=>e.order-t.order).forEach((t,n)=>{t.order=e.length+n,this.#$e.appendChild(t.tabElement)}),this.#ht()?.setTabOrder?.(this.#At(),{slot:this.slotId}),this.#vt())}listTabs(){return Array.from(this.#at.values()).sort((e,t)=>e.order-t.order).map(e=>({id:e.id,title:e.title,userHidden:e.userHidden}))}#At(){return Array.from(this.#at.values()).sort((e,t)=>e.order-t.order).map(e=>e.id)}#_t(e){const t=e.tabElement;t.addEventListener("dragstart",t=>{this.#ot=e.id,we={viewId:e.id,sourceSlot:this.slotId},t.dataTransfer?.setData("application/x-punica-view",e.id),t.dataTransfer&&(t.dataTransfer.effectAllowed="move"),function(){for(const e of xe)e.armDropZone()}()}),t.addEventListener("dragend",()=>{this.#ot=null,we=null,function(){for(const e of xe)e.disarmDropZone()}()}),t.addEventListener("dragover",t=>{this.#ot&&this.#ot!==e.id&&t.preventDefault()}),t.addEventListener("drop",t=>{t.preventDefault();const n=this.#ot;if(this.#ot=null,!n||n===e.id)return;const i=this.#ut?t.clientX:t.clientY;this.#St(n,e.id,i)})}#St(e,t,n){const i=this.#at.get(t);if(!i)return;const r=i.tabElement.getBoundingClientRect(),a=this.#ut?n>r.left+r.width/2:n>r.top+r.height/2,s=this.#At().filter(t=>t!==e),o=s.indexOf(t),l=a?o+1:o;s.splice(l,0,e),this.setUserOrder(s)}#yt(e){e.addEventListener("dragover",e=>{this.#Dt()&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="move"),this.#m?.setAttribute("data-drop-target",""))}),e.addEventListener("dragleave",t=>{e.contains(t.relatedTarget)||this.#m?.removeAttribute("data-drop-target")}),e.addEventListener("drop",e=>{this.#m?.removeAttribute("data-drop-target");const t=we;t&&this.#Dt()&&(e.preventDefault(),e.stopPropagation(),this.#ct=!0,we=null,this.#Nt(t.viewId,this.slotId))})}armDropZone(){if(this.#ct=!1,!this.#Dt())return;this.#qe();const e=punica.shell.Layout.manager;e.isSlotCollapsed?.(this.slotId)&&(e.setSlotCollapsed(this.slotId,!1),this.#lt=!0)}disarmDropZone(){this.#m?.removeAttribute("data-drop-target"),this.#lt&&!this.#ct&&punica.shell.Layout.manager.setSlotCollapsed(this.slotId,!0),this.#lt=!1,this.#ct=!1}#Dt(){const e=we;if(!e||e.sourceSlot===this.slotId)return!1;const t=globalThis.punica?.shell?.Views?.manager?.getPlacement?.(e.viewId),n=t?.allowedSlots;return Array.isArray(n)&&n.includes(this.slotId)}#Nt(e,t){const n=globalThis.punica?.shell?.Views?.manager;"function"==typeof n?.moveView&&n.moveView(e,t,{kind:"user-gesture",id:`view-dnd:${e}`}).catch(t=>{console.warn("[TabbedContainer] moveView failed",e,t)})}#mt(e){const t=this.#tt;if(!t)return;e.preventDefault();const n=e.target?.closest?.("punica-tab-item");if(t.innerHTML="",n){const e=n.getAttribute("value");if(e){this.#Tt(t,`hide:${e}`,"Hide tab");const n=globalThis.punica?.shell?.Views?.manager?.getPlacement?.(e);(n?.allowedSlots??[]).filter(e=>e!==this.slotId).forEach(n=>{this.#Tt(t,`move:${e}:${n}`,`Move to ${ve[n]??n}`)})}}this.#Tt(t,"display:both",("both"===this.#st?"● ":"")+"Show icons and labels"),this.#Tt(t,"display:icon",("icon"===this.#st?"● ":"")+"Show icons only"),this.#Tt(t,"display:label",("label"===this.#st?"● ":"")+"Show labels only"),this.#It(t,e.clientX,e.clientY)}#bt(e){const t=e.split(":"),n=t[0];"hide"===n&&t[1]?this.hideTab(t[1]):"display"===n&&t[1]?this.setDisplayMode(t[1]):"show"===n&&t[1]?this.showTab(t[1]):"move"===n&&t[1]&&t[2]&&this.#Nt(t[1],t[2])}#Tt(e,t,n){e.appendChild(F.createMenuItem({text:n,attrs:{"data-item":t,"aria-label":n}}))}#It(e,t,n){F.openMenuAt(e,{anchor:{top:n,left:t,bottom:n},placement:"bottom"})}#gt(){const e=this.#tt,t=this.#et;if(!e||!t)return;e.innerHTML="",Array.from(this.#at.values()).filter(e=>e.userHidden).sort((e,t)=>e.order-t.order).forEach(t=>this.#Tt(e,`show:${t.id}`,t.title));const n=t.getBoundingClientRect();this.#It(e,n.left,n.bottom)}#Ct(){const e=this.#et;if(!e)return;const t=Array.from(this.#at.values()).some(e=>e.userHidden);e.style.display=t?"inline-flex":"none"}#vt(){if(this.#it)return;this.#it=!0;const e=()=>{this.#it=!1,this.recomputeOverflow()};"function"==typeof requestAnimationFrame?requestAnimationFrame(e):setTimeout(e,0)}#Lt(){const e=this.#$e;return e?this.#ut?e.clientWidth:e.clientHeight:0}#Mt(e){return this.#ut?e.offsetWidth:e.offsetHeight}recomputeOverflow(){const e=this.#$e;if(!e)return;const t=Array.from(e.querySelectorAll("punica-tab-item")).filter(e=>!e.hasAttribute("data-user-hidden"));if(t.forEach(e=>{e.style.display=""}),0===t.length)return this.#rt.clear(),void this.#zt(!1);const n=this.#Lt();if(n<=0)return this.#rt.clear(),void this.#zt(!1);const i=t.map(e=>this.#Mt(e));if(i.reduce((e,t)=>e+t,0)<=n)return this.#rt.clear(),void this.#zt(!1);const r=n-this.#Ft(),a=t.findIndex(e=>e.getAttribute("value")===this.#S);let s=a>=0?i[a]:0;const o=new Set;let l=!0;t.forEach((e,t)=>{if(t===a)return;if(l&&s+i[t]<=r)return void(s+=i[t]);l=!1,e.style.display="none";const n=e.getAttribute("value");n&&o.add(n)}),this.#rt=o,this.#zt(o.size>0)}#zt(e){const t=this.#Ye;t&&(t.style.display=e?"inline-flex":"none",e||this.#Qe?.removeAttribute("open"))}#Ft(){if(null!=this.#nt)return this.#nt;const e=this.#Ye;if(!e)return 28;const t=e.style.display;e.style.display="inline-flex";const n=this.#Mt(e)||28;return e.style.display=t,this.#nt=n,n}#ft(){const e=this.#Qe,t=this.#Ye,n=this.#$e;e&&t&&n&&0!==this.#rt.size&&(e.innerHTML="",n.querySelectorAll("punica-tab-item").forEach(t=>{const n=t.getAttribute("value");if(!n||!this.#rt.has(n))return;const i=this.#at.get(n);i&&e.appendChild(F.createMenuItem({text:i.title,attrs:{"data-item":n,"aria-label":i.title}}))}),F.openMenuAt(e,{anchor:t,placement:"bottom"}))}}const ke=new class extends Ee{constructor(){super("panel","horizontal")}},_e=new Ee("secondarySidebar","vertical"),Ce={bottom:ke,right:_e,forSlot:e=>"panel"===e?ke:"secondarySidebar"===e?_e:null},Ae="panel.tabDisplay",Se="panel.hiddenTabs",De="panel.tabOrder",Ne="view.slotOverrides",Te="panel";function Ie(){return globalThis.punica?.extensions?.settings?.manager??null}function Le(){try{const e=globalThis.punica?.shell?.Profile?.manager?.registry?.getActive?.();return e?.shell??null}catch{return null}}const Me=new class{#Bt=!1;#Ot=null;#Rt=new Map;#$t={};async load(){const e=Ie();if(this.#Ot=e,e){try{await e.load()}catch(e){console.warn("[PanelLayout] settings.load() failed",e)}this.#$t=this.#jt(e.get("system",Ne))??{}}this.#Bt=!0}getDisplayMode(e=Te){const t=this.#Pt(this.#Ht(Ae,e));if(t)return t;if(e===Te){const e=this.#Pt(Le()?.panel?.tabDisplay);if(e)return e}return e===Te?"both":"icon"}getHiddenTabs(e=Te){const t=this.#qt(this.#Ht(Se,e));if(t)return t;if(e===Te){const e=this.#qt(Le()?.panel?.hiddenTabs);if(e)return e}return[]}isTabHidden(e,t=Te){return this.getHiddenTabs(t).includes(e)}getTabOrder(e=Te){const t=this.#qt(this.#Ht(De,e));return t||(e===Te?this.#qt(Le()?.panel?.tabOrder):void 0)}getSlotOverride(e){const t=this.#$t[e];if(void 0!==t)return t;const n=this.#jt(Le()?.viewDefaults?.slotOverrides);return n?.[e]}async setDisplayMode(e,t){await this.#Vt(Ae,e,t)}async setTabHidden(e,t,n){const i=n?.slot??Te,r=new Set(this.getHiddenTabs(i));t?r.add(e):r.delete(e),await this.#Vt(Se,Array.from(r),n)}async setTabOrder(e,t){await this.#Vt(De,[...e],t)}async setSlotOverride(e,t,n,i){const r={...this.#$t};t===n?delete r[e]:r[e]=t,this.#$t=r,await this.#Ut(Ne,r,i)}#Zt(e,t){return t===Te?e:`${e}.${t}`}#Ht(e,t){const n=this.#Zt(e,t);if(this.#Rt.has(n))return this.#Rt.get(n);const i=this.#Ot?.get?.("system",n);return this.#Rt.set(n,i),i}async#Vt(e,t,n){const i=n?.slot??Te,r=this.#Zt(e,i);this.#Rt.set(r,t),await this.#Ut(r,t,n)}async#Ut(e,t,n){const i=Ie();if(!i)return;const r=n?.workspace?"project":"global";try{await i.set("system",e,t,r)}catch(t){console.warn("[PanelLayout] failed to persist",e,t)}}#Pt(e){return"icon"===e||"label"===e||"both"===e?e:void 0}#qt(e){return Array.isArray(e)&&e.every(e=>"string"==typeof e)?e:void 0}#jt(e){if(!e||"object"!=typeof e||Array.isArray(e))return;const t={};for(const[n,i]of Object.entries(e))"string"==typeof i&&(t[n]=i);return t}},ze={};function Fe(e,t){"string"!=typeof t&&(t=Fe.defaultChars);const n=function(e){let t=ze[e];if(t)return t;t=ze[e]=[];for(let e=0;e<128;e++){const n=String.fromCharCode(e);t.push(n)}for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);t[i]="%"+("0"+i.toString(16).toUpperCase()).slice(-2)}return t}(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(e){let t="";for(let i=0,r=e.length;i<r;i+=3){const a=parseInt(e.slice(i+1,i+3),16);if(a<128)t+=n[a];else{if(192==(224&a)&&i+3<r){const n=parseInt(e.slice(i+4,i+6),16);if(128==(192&n)){const e=a<<6&1984|63&n;t+=e<128?"��":String.fromCharCode(e),i+=3;continue}}if(224==(240&a)&&i+6<r){const n=parseInt(e.slice(i+4,i+6),16),r=parseInt(e.slice(i+7,i+9),16);if(128==(192&n)&&128==(192&r)){const e=a<<12&61440|n<<6&4032|63&r;t+=e<2048||e>=55296&&e<=57343?"���":String.fromCharCode(e),i+=6;continue}}if(240==(248&a)&&i+9<r){const n=parseInt(e.slice(i+4,i+6),16),r=parseInt(e.slice(i+7,i+9),16),s=parseInt(e.slice(i+10,i+12),16);if(128==(192&n)&&128==(192&r)&&128==(192&s)){let e=a<<18&1835008|n<<12&258048|r<<6&4032|63&s;e<65536||e>1114111?t+="����":(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(1023&e))),i+=9;continue}}t+="�"}}return t})}Fe.defaultChars=";/?:@&=+$,#",Fe.componentChars="";const Be={};function Oe(e,t,n){"string"!=typeof t&&(n=t,t=Oe.defaultChars),void 0===n&&(n=!0);const i=function(e){let t=Be[e];if(t)return t;t=Be[e]=[];for(let e=0;e<128;e++){const n=String.fromCharCode(e);/^[0-9a-z]$/i.test(n)?t.push(n):t.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}(t);let r="";for(let t=0,a=e.length;t<a;t++){const s=e.charCodeAt(t);if(n&&37===s&&t+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3)))r+=e.slice(t,t+3),t+=2;else if(s<128)r+=i[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&t+1<a){const n=e.charCodeAt(t+1);if(n>=56320&&n<=57343){r+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}r+="%EF%BF%BD"}else r+=encodeURIComponent(e[t])}return r}function Re(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function $e(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}Oe.defaultChars=";/?:@&=+$,-_.!~*'()#",Oe.componentChars="-_.!~*'()";const je=/^([a-z0-9.+-]+:)/i,Pe=/:[0-9]*$/,He=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,qe=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),Ve=["'"].concat(qe),Ue=["%","/","?",";","#"].concat(Ve),Ze=["/","?","#"],We=/^[+a-z0-9A-Z_-]{0,63}$/,Ke=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ge={javascript:!0,"javascript:":!0},Xe={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Je(e,t){if(e&&e instanceof $e)return e;const n=new $e;return n.parse(e,t),n}$e.prototype.parse=function(e,t){let n,i,r,a=e;if(a=a.trim(),!t&&1===e.split("#").length){const e=He.exec(a);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let s=je.exec(a);if(s&&(s=s[0],n=s.toLowerCase(),this.protocol=s,a=a.substr(s.length)),(t||s||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(r="//"===a.substr(0,2),!r||s&&Ge[s]||(a=a.substr(2),this.slashes=!0)),!Ge[s]&&(r||s&&!Xe[s])){let e,t,n=-1;for(let e=0;e<Ze.length;e++)i=a.indexOf(Ze[e]),-1!==i&&(-1===n||i<n)&&(n=i);t=-1===n?a.lastIndexOf("@"):a.lastIndexOf("@",n),-1!==t&&(e=a.slice(0,t),a=a.slice(t+1),this.auth=e),n=-1;for(let e=0;e<Ue.length;e++)i=a.indexOf(Ue[e]),-1!==i&&(-1===n||i<n)&&(n=i);-1===n&&(n=a.length),":"===a[n-1]&&n--;const r=a.slice(0,n);a=a.slice(n),this.parseHost(r),this.hostname=this.hostname||"";const s="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!s){const e=this.hostname.split(/\./);for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n&&!n.match(We)){let i="";for(let e=0,t=n.length;e<t;e++)n.charCodeAt(e)>127?i+="x":i+=n[e];if(!i.match(We)){const i=e.slice(0,t),r=e.slice(t+1),s=n.match(Ke);s&&(i.push(s[1]),r.unshift(s[2])),r.length&&(a=r.join(".")+a),this.hostname=i.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),s&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const o=a.indexOf("#");-1!==o&&(this.hash=a.substr(o),a=a.slice(0,o));const l=a.indexOf("?");return-1!==l&&(this.search=a.substr(l),a=a.slice(0,l)),a&&(this.pathname=a),Xe[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},$e.prototype.parseHost=function(e){let t=Pe.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var Ye,Qe=Object.freeze({__proto__:null,decode:Fe,encode:Oe,format:Re,parse:Je}),et=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,tt=/[\0-\x1F\x7F-\x9F]/,nt=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,it=/[\$\+<->\^`\|~\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]/,rt=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,at=Object.freeze({__proto__:null,Any:et,Cc:tt,Cf:/[\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]/,P:nt,S:it,Z:rt}),st=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))),ot=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));const lt=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]]),ct=null!==(Ye=String.fromCodePoint)&&void 0!==Ye?Ye:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};var dt;!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"}(dt||(dt={}));var ut,ht,pt;function mt(e){return e>=dt.ZERO&&e<=dt.NINE}function ft(e){return e>=dt.UPPER_A&&e<=dt.UPPER_F||e>=dt.LOWER_A&&e<=dt.LOWER_F}function gt(e){return e===dt.EQUALS||function(e){return e>=dt.UPPER_A&&e<=dt.UPPER_Z||e>=dt.LOWER_A&&e<=dt.LOWER_Z||mt(e)}(e)}!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(ut||(ut={})),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"}(ht||(ht={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(pt||(pt={}));class bt{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=ht.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=pt.Strict}startEntity(e){this.decodeMode=e,this.state=ht.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case ht.EntityStart:return e.charCodeAt(t)===dt.NUM?(this.state=ht.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=ht.NamedEntity,this.stateNamedEntity(e,t));case ht.NumericStart:return this.stateNumericStart(e,t);case ht.NumericDecimal:return this.stateNumericDecimal(e,t);case ht.NumericHex:return this.stateNumericHex(e,t);case ht.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===dt.LOWER_X?(this.state=ht.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=ht.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,i){if(t!==n){const r=n-t;this.result=this.result*Math.pow(i,r)+parseInt(e.substr(t,r),i),this.consumed+=r}}stateNumericHex(e,t){const n=t;for(;t<e.length;){const i=e.charCodeAt(t);if(!mt(i)&&!ft(i))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(i,3);t+=1}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t<e.length;){const i=e.charCodeAt(t);if(!mt(i))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(i,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===dt.SEMI)this.consumed+=1;else if(this.decodeMode===pt.Strict)return 0;return this.emitCodePoint(function(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=lt.get(e))&&void 0!==t?t:e}(this.result),this.consumed),this.errors&&(e!==dt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let i=n[this.treeIndex],r=(i&ut.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const a=e.charCodeAt(t);if(this.treeIndex=vt(n,i,this.treeIndex+Math.max(1,r),a),this.treeIndex<0)return 0===this.result||this.decodeMode===pt.Attribute&&(0===r||gt(a))?0:this.emitNotTerminatedNamedEntity();if(i=n[this.treeIndex],r=(i&ut.VALUE_LENGTH)>>14,0!==r){if(a===dt.SEMI)return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess);this.decodeMode!==pt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,i=(n[t]&ut.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,i,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:i}=this;return this.emitCodePoint(1===t?i[e]&~ut.VALUE_LENGTH:i[e+1],n),3===t&&this.emitCodePoint(i[e+2],n),n}end(){var e;switch(this.state){case ht.NamedEntity:return 0===this.result||this.decodeMode===pt.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case ht.NumericDecimal:return this.emitNumericEntity(0,2);case ht.NumericHex:return this.emitNumericEntity(0,3);case ht.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ht.EntityStart:return 0}}}function yt(e){let t="";const n=new bt(e,e=>t+=ct(e));return function(e,i){let r=0,a=0;for(;(a=e.indexOf("&",a))>=0;){t+=e.slice(r,a),n.startEntity(i);const s=n.write(e,a+1);if(s<0){r=a+n.end();break}r=a+s,a=0===s?r+1:r}const s=t+e.slice(r);return t="",s}}function vt(e,t,n,i){const r=(t&ut.BRANCH_LENGTH)>>7,a=t&ut.JUMP_TABLE;if(0===r)return 0!==a&&i===a?n:-1;if(a){const t=i-a;return t<0||t>=r?-1:e[n+t]-1}let s=n,o=s+r-1;for(;s<=o;){const t=s+o>>>1,n=e[t];if(n<i)s=t+1;else{if(!(n>i))return e[t+r];o=t-1}}return-1}const wt=yt(st);function xt(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)}yt(ot);const Et=Object.prototype.hasOwnProperty;function kt(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e}function _t(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function Ct(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(!!(65535&~e&&65534!=(65535&e))&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function At(e){if(e>65535){const t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const St=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Dt=new RegExp(St.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),Nt=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Tt(e,t){if(35===t.charCodeAt(0)&&Nt.test(t)){const n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Ct(n)?At(n):e}const n=function(e,t=pt.Legacy){return wt(e,t)}(e);return n!==e?n:e}function It(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(Dt,function(e,t,n){return t||Tt(e,n)})}const Lt=/[&<>"]/,Mt=/[&<>"]/g,zt={"&":"&","<":"<",">":">",'"':"""};function Ft(e){return zt[e]}function Bt(e){return Lt.test(e)?e.replace(Mt,Ft):e}const Ot=/[.?*+^$[\]\\(){}|-]/g;function Rt(e){switch(e){case 9:case 32:return!0}return!1}function $t(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 jt(e){return nt.test(e)||it.test(e)}function Pt(e){return jt(At(e))}function Ht(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 qt(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}function Vt(e){return 32===e||9===e||10===e||13===e}function Ut(e){let t=0;for(;t<e.length&&Vt(e.charCodeAt(t));t++);let n=e.length-1;for(;n>=t&&Vt(e.charCodeAt(n));n--);return e.slice(t,n+1)}const Zt={mdurl:Qe,ucmicro:at};var Wt=Object.freeze({__proto__:null,arrayReplaceAt:_t,asciiTrim:Ut,assign:kt,escapeHtml:Bt,escapeRE:function(e){return e.replace(Ot,"\\$&")},fromCodePoint:At,has:function(e,t){return Et.call(e,t)},isMdAsciiPunct:Ht,isPunctChar:jt,isPunctCharCode:Pt,isSpace:Rt,isString:xt,isValidEntityCode:Ct,isWhiteSpace:$t,lib:Zt,normalizeReference:qt,unescapeAll:It,unescapeMd:function(e){return e.indexOf("\\")<0?e:e.replace(St,"$1")}});var Kt=Object.freeze({__proto__:null,parseLinkDestination:function(e,t,n){let i,r=t;const a={ok:!1,pos:0,str:""};if(60===e.charCodeAt(r)){for(r++;r<n;){if(i=e.charCodeAt(r),10===i)return a;if(60===i)return a;if(62===i)return a.pos=r+1,a.str=It(e.slice(t+1,r)),a.ok=!0,a;92===i&&r+1<n?r+=2:r++}return a}let s=0;for(;r<n&&(i=e.charCodeAt(r),32!==i)&&!(i<32||127===i);)if(92===i&&r+1<n){if(32===e.charCodeAt(r+1))break;r+=2}else{if(40===i&&(s++,s>32))return a;if(41===i){if(0===s)break;s--}r++}return t===r||0!==s||(a.str=It(e.slice(t,r)),a.pos=r,a.ok=!0),a},parseLinkLabel:function(e,t,n){let i,r,a,s;const o=e.posMax,l=e.pos;for(e.pos=t+1,i=1;e.pos<o;){if(a=e.src.charCodeAt(e.pos),93===a&&(i--,0===i)){r=!0;break}if(s=e.pos,e.md.inline.skipToken(e),91===a)if(s===e.pos-1)i++;else if(n)return e.pos=l,-1}let c=-1;return r&&(c=e.pos),e.pos=l,c},parseLinkTitle:function(e,t,n,i){let r,a=t;const s={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(i)s.str=i.str,s.marker=i.marker;else{if(a>=n)return s;let i=e.charCodeAt(a);if(34!==i&&39!==i&&40!==i)return s;t++,a++,40===i&&(i=41),s.marker=i}for(;a<n;){if(r=e.charCodeAt(a),r===s.marker)return s.pos=a+1,s.str+=It(e.slice(t,a)),s.ok=!0,s;if(40===r&&41===s.marker)return s;92===r&&a+1<n&&a++,a++}return s.can_continue=!0,s.str+=It(e.slice(t,a)),s}});const Gt={};function Xt(){this.rules=kt({},Gt)}function Jt(){this.__rules__=[],this.__cache__=null}function Yt(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}function Qt(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}Gt.code_inline=function(e,t,n,i,r){const a=e[t];return"<code"+r.renderAttrs(a)+">"+Bt(a.content)+"</code>"},Gt.code_block=function(e,t,n,i,r){const a=e[t];return"<pre"+r.renderAttrs(a)+"><code>"+Bt(e[t].content)+"</code></pre>\n"},Gt.fence=function(e,t,n,i,r){const a=e[t],s=a.info?It(a.info).trim():"";let o,l="",c="";if(s){const e=s.split(/(\s+)/g);l=e[0],c=e.slice(2).join("")}if(o=n.highlight&&n.highlight(a.content,l,c)||Bt(a.content),0===o.indexOf("<pre"))return o+"\n";if(s){const e=a.attrIndex("class"),t=a.attrs?a.attrs.slice():[];e<0?t.push(["class",n.langPrefix+l]):(t[e]=t[e].slice(),t[e][1]+=" "+n.langPrefix+l);const i={attrs:t};return`<pre><code${r.renderAttrs(i)}>${o}</code></pre>\n`}return`<pre><code${r.renderAttrs(a)}>${o}</code></pre>\n`},Gt.image=function(e,t,n,i,r){const a=e[t];return a.attrs[a.attrIndex("alt")][1]=r.renderInlineAsText(a.children,n,i),r.renderToken(e,t,n)},Gt.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},Gt.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},Gt.text=function(e,t){return Bt(e[t].content)},Gt.html_block=function(e,t){return e[t].content},Gt.html_inline=function(e,t){return e[t].content},Xt.prototype.renderAttrs=function(e){let t,n,i;if(!e.attrs)return"";for(i="",t=0,n=e.attrs.length;t<n;t++)i+=" "+Bt(e.attrs[t][0])+'="'+Bt(e.attrs[t][1])+'"';return i},Xt.prototype.renderToken=function(e,t,n){const i=e[t];let r="";if(i.hidden)return"";i.block&&-1!==i.nesting&&t&&e[t-1].hidden&&(r+="\n"),r+=(-1===i.nesting?"</":"<")+i.tag,r+=this.renderAttrs(i),0===i.nesting&&n.xhtmlOut&&(r+=" /");let a=!1;if(i.block&&(a=!0,1===i.nesting&&t+1<e.length)){const n=e[t+1];("inline"===n.type||n.hidden||-1===n.nesting&&n.tag===i.tag)&&(a=!1)}return r+=a?">\n":">",r},Xt.prototype.renderInline=function(e,t,n){let i="";const r=this.rules;for(let a=0,s=e.length;a<s;a++){const s=e[a].type;void 0!==r[s]?i+=r[s](e,a,t,n,this):i+=this.renderToken(e,a,t)}return i},Xt.prototype.renderInlineAsText=function(e,t,n){let i="";for(let r=0,a=e.length;r<a;r++)switch(e[r].type){case"text":case"html_inline":case"html_block":i+=e[r].content;break;case"image":i+=this.renderInlineAsText(e[r].children,t,n);break;case"softbreak":case"hardbreak":i+="\n"}return i},Xt.prototype.render=function(e,t,n){let i="";const r=this.rules;for(let a=0,s=e.length;a<s;a++){const s=e[a].type;"inline"===s?i+=this.renderInline(e[a].children,t,n):void 0!==r[s]?i+=r[s](e,a,t,n,this):i+=this.renderToken(e,a,t,n)}return i},Jt.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},Jt.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){t.indexOf(e)<0&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))})})},Jt.prototype.at=function(e,t,n){const i=this.__find__(e),r=n||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__[i].fn=t,this.__rules__[i].alt=r.alt||[],this.__cache__=null},Jt.prototype.before=function(e,t,n,i){const r=this.__find__(e),a=i||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null},Jt.prototype.after=function(e,t,n,i){const r=this.__find__(e),a=i||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r+1,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null},Jt.prototype.push=function(e,t,n){const i=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:i.alt||[]}),this.__cache__=null},Jt.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(e){const i=this.__find__(e);if(i<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[i].enabled=!0,n.push(e)},this),this.__cache__=null,n},Jt.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},Jt.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(e){const i=this.__find__(e);if(i<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[i].enabled=!1,n.push(e)},this),this.__cache__=null,n},Jt.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},Yt.prototype.attrIndex=function(e){if(!this.attrs)return-1;const t=this.attrs;for(let n=0,i=t.length;n<i;n++)if(t[n][0]===e)return n;return-1},Yt.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},Yt.prototype.attrSet=function(e,t){const n=this.attrIndex(e),i=[e,t];n<0?this.attrPush(i):this.attrs[n]=i},Yt.prototype.attrGet=function(e){const t=this.attrIndex(e);let n=null;return t>=0&&(n=this.attrs[t][1]),n},Yt.prototype.attrJoin=function(e,t){const n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},Qt.prototype.Token=Yt;const en=/\r\n?|\n/g,tn=/\0/g;function nn(e){return/^<a[>\s]/i.test(e)}function rn(e){return/^<\/a\s*>/i.test(e)}const an=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,sn=/\((c|tm|r)\)/i,on=/\((c|tm|r)\)/gi,ln={c:"©",r:"®",tm:"™"};function cn(e,t){return ln[t.toLowerCase()]}function dn(e){let t=0;for(let n=e.length-1;n>=0;n--){const i=e[n];"text"!==i.type||t||(i.content=i.content.replace(on,cn)),"link_open"===i.type&&"auto"===i.info&&t--,"link_close"===i.type&&"auto"===i.info&&t++}}function un(e){let t=0;for(let n=e.length-1;n>=0;n--){const i=e[n];"text"!==i.type||t||an.test(i.content)&&(i.content=i.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===i.type&&"auto"===i.info&&t--,"link_close"===i.type&&"auto"===i.info&&t++}}const hn=/['"]/,pn=/['"]/g;function mn(e,t,n,i){e[t]||(e[t]=[]),e[t].push({pos:n,ch:i})}function fn(e,t){let n;const i=[],r={};for(let a=0;a<e.length;a++){const s=e[a],o=e[a].level;for(n=i.length-1;n>=0&&!(i[n].level<=o);n--);if(i.length=n+1,"text"!==s.type)continue;const l=s.content;let c=0;const d=l.length;e:for(;c<d;){pn.lastIndex=c;const s=pn.exec(l);if(!s)break;let u=!0,h=!0;c=s.index+1;const p="'"===s[0];let m=32;if(s.index-1>=0)m=l.charCodeAt(s.index-1);else for(n=a-1;n>=0&&("softbreak"!==e[n].type&&"hardbreak"!==e[n].type);n--)if(e[n].content){m=e[n].content.charCodeAt(e[n].content.length-1);break}let f=32;if(c<d)f=l.charCodeAt(c);else for(n=a+1;n<e.length&&("softbreak"!==e[n].type&&"hardbreak"!==e[n].type);n++)if(e[n].content){f=e[n].content.charCodeAt(0);break}const g=Ht(m)||Pt(m),b=Ht(f)||Pt(f),y=$t(m),v=$t(f);if(v?u=!1:b&&(y||g||(u=!1)),y?h=!1:g&&(v||b||(h=!1)),34===f&&'"'===s[0]&&m>=48&&m<=57&&(h=u=!1),u&&h&&(u=g,h=b),u||h){if(h)for(n=i.length-1;n>=0;n--){let e=i[n];if(i[n].level<o)break;if(e.single===p&&i[n].level===o){let o,l;e=i[n],p?(o=t.md.options.quotes[2],l=t.md.options.quotes[3]):(o=t.md.options.quotes[0],l=t.md.options.quotes[1]),mn(r,a,s.index,l),mn(r,e.token,e.pos,o),i.length=n;continue e}}u?i.push({token:a,pos:s.index,single:p,level:o}):h&&p&&mn(r,a,s.index,"’")}else p&&mn(r,a,s.index,"’")}}Object.keys(r).forEach(function(t){e[t].content=function(e,t){let n="",i=0;t.sort((e,t)=>e.pos-t.pos);for(let r=0;r<t.length;r++){const a=t[r];n+=e.slice(i,a.pos)+a.ch,i=a.pos+1}return n+e.slice(i)}(e[t].content,r[t])})}const gn=[["normalize",function(e){let t;t=e.src.replace(en,"\n"),t=t.replace(tn,"�"),e.src=t}],["block",function(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)}],["inline",function(e){const t=e.tokens;for(let n=0,i=t.length;n<i;n++){const i=t[n];"inline"===i.type&&e.md.inline.parse(i.content,e.md,e.env,i.children)}}],["linkify",function(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,i=t.length;n<i;n++){if("inline"!==t[n].type||!e.md.linkify.pretest(t[n].content))continue;let i=t[n].children,r=0;for(let a=i.length-1;a>=0;a--){const s=i[a];if("link_close"!==s.type){if("html_inline"===s.type&&(nn(s.content)&&r>0&&r--,rn(s.content)&&r++),!(r>0)&&"text"===s.type&&e.md.linkify.test(s.content)){const r=s.content;let o=e.md.linkify.match(r);const l=[];let c=s.level,d=0;o.length>0&&0===o[0].index&&a>0&&"text_special"===i[a-1].type&&(o=o.slice(1));for(let t=0;t<o.length;t++){const n=o[t].url,i=e.md.normalizeLink(n);if(!e.md.validateLink(i))continue;let a=o[t].text;a=o[t].schema?"mailto:"!==o[t].schema||/^mailto:/i.test(a)?e.md.normalizeLinkText(a):e.md.normalizeLinkText("mailto:"+a).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+a).replace(/^http:\/\//,"");const s=o[t].index;if(s>d){const t=new e.Token("text","",0);t.content=r.slice(d,s),t.level=c,l.push(t)}const u=new e.Token("link_open","a",1);u.attrs=[["href",i]],u.level=c++,u.markup="linkify",u.info="auto",l.push(u);const h=new e.Token("text","",0);h.content=a,h.level=c,l.push(h);const p=new e.Token("link_close","a",-1);p.level=--c,p.markup="linkify",p.info="auto",l.push(p),d=o[t].lastIndex}if(d<r.length){const t=new e.Token("text","",0);t.content=r.slice(d),t.level=c,l.push(t)}t[n].children=i=_t(i,a,l)}}else for(a--;i[a].level!==s.level&&"link_open"!==i[a].type;)a--}}}],["replacements",function(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(sn.test(e.tokens[t].content)&&dn(e.tokens[t].children),an.test(e.tokens[t].content)&&un(e.tokens[t].children))}],["smartquotes",function(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&hn.test(e.tokens[t].content)&&fn(e.tokens[t].children,e)}],["text_join",function(e){let t,n;const i=e.tokens,r=i.length;for(let e=0;e<r;e++){if("inline"!==i[e].type)continue;const r=i[e].children,a=r.length;for(t=0;t<a;t++)"text_special"===r[t].type&&(r[t].type="text");for(t=n=0;t<a;t++)"text"===r[t].type&&t+1<a&&"text"===r[t+1].type?r[t+1].content=r[t].content+r[t+1].content:(t!==n&&(r[n]=r[t]),n++);t!==n&&(r.length=n)}}]];function bn(){this.ruler=new Jt;for(let e=0;e<gn.length;e++)this.ruler.push(gn[e][0],gn[e][1])}function yn(e,t,n,i){this.src=e,this.md=t,this.env=n,this.tokens=i,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 e=0,t=0,n=0,i=0,a=r.length,s=!1;t<a;t++){const o=r.charCodeAt(t);if(!s){if(Rt(o)){n++,9===o?i+=4-i%4:i++;continue}s=!0}10!==o&&t!==a-1||(10!==o&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(n),this.sCount.push(i),this.bsCount.push(0),s=!1,n=0,i=0,e=t+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}bn.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,i=t.length;n<i;n++)t[n](e)},bn.prototype.State=Qt,yn.prototype.push=function(e,t,n){const i=new Yt(e,t,n);return i.block=!0,n<0&&this.level--,i.level=this.level,n>0&&this.level++,this.tokens.push(i),i},yn.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},yn.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},yn.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t;e++){if(!Rt(this.src.charCodeAt(e)))break}return e},yn.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!Rt(this.src.charCodeAt(--e)))return e+1;return e},yn.prototype.skipChars=function(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},yn.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},yn.prototype.getLines=function(e,t,n,i){if(e>=t)return"";const r=new Array(t-e);for(let a=0,s=e;s<t;s++,a++){let e=0;const o=this.bMarks[s];let l,c=o;for(l=s+1<t||i?this.eMarks[s]+1:this.eMarks[s];c<l&&e<n;){const t=this.src.charCodeAt(c);if(Rt(t))9===t?e+=4-(e+this.bsCount[s])%4:e++;else{if(!(c-o<this.tShift[s]))break;e++}c++}r[a]=e>n?new Array(e-n+1).join(" ")+this.src.slice(c,l):this.src.slice(c,l)}return r.join("")},yn.prototype.Token=Yt;function vn(e,t){const n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];return e.src.slice(n,i)}function wn(e){const t=[],n=e.length;let i=0,r=e.charCodeAt(i),a=!1,s=0,o="";for(;i<n;)124===r&&(a?(o+=e.substring(s,i-1),s=i):(t.push(o+e.substring(s,i)),o="",s=i+1)),a=92===r,i++,r=e.charCodeAt(i);return t.push(o+e.substring(s)),t}function xn(e,t){const n=e.eMarks[t];let i=e.bMarks[t]+e.tShift[t];const r=e.src.charCodeAt(i++);if(42!==r&&45!==r&&43!==r)return-1;if(i<n){if(!Rt(e.src.charCodeAt(i)))return-1}return i}function En(e,t){const n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];let r=n;if(r+1>=i)return-1;let a=e.src.charCodeAt(r++);if(a<48||a>57)return-1;for(;;){if(r>=i)return-1;if(a=e.src.charCodeAt(r++),!(a>=48&&a<=57)){if(41===a||46===a)break;return-1}if(r-n>=10)return-1}return r<i&&(a=e.src.charCodeAt(r),!Rt(a))?-1:r}const kn="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",_n="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Cn=new RegExp("^(?:"+kn+"|"+_n+"|\x3c!---?>|\x3c!--(?:[^-]|-[^-]|--[^>])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),An=new RegExp("^(?:"+kn+"|"+_n+")"),Sn=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+["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"].join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(An.source+"\\s*$"),/^$/,!1]];const Dn=[["table",function(e,t,n,i){if(t+2>n)return!1;let r=t+1;if(e.sCount[r]<e.blkIndent)return!1;if(e.sCount[r]-e.blkIndent>=4)return!1;let a=e.bMarks[r]+e.tShift[r];if(a>=e.eMarks[r])return!1;const s=e.src.charCodeAt(a++);if(124!==s&&45!==s&&58!==s)return!1;if(a>=e.eMarks[r])return!1;const o=e.src.charCodeAt(a++);if(124!==o&&45!==o&&58!==o&&!Rt(o))return!1;if(45===s&&Rt(o))return!1;for(;a<e.eMarks[r];){const t=e.src.charCodeAt(a);if(124!==t&&45!==t&&58!==t&&!Rt(t))return!1;a++}let l=vn(e,t+1),c=l.split("|");const d=[];for(let e=0;e<c.length;e++){const t=c[e].trim();if(!t){if(0===e||e===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(t))return!1;58===t.charCodeAt(t.length-1)?d.push(58===t.charCodeAt(0)?"center":"right"):58===t.charCodeAt(0)?d.push("left"):d.push("")}if(l=vn(e,t).trim(),-1===l.indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;c=wn(l),c.length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop();const u=c.length;if(0===u||u!==d.length)return!1;if(i)return!0;const h=e.parentType;e.parentType="table";const p=e.md.block.ruler.getRules("blockquote"),m=[t,0];e.push("table_open","table",1).map=m,e.push("thead_open","thead",1).map=[t,t+1],e.push("tr_open","tr",1).map=[t,t+1];for(let t=0;t<c.length;t++){const n=e.push("th_open","th",1);d[t]&&(n.attrs=[["style","text-align:"+d[t]]]);const i=e.push("inline","",0);i.content=c[t].trim(),i.children=[],e.push("th_close","th",-1)}let f;e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let g=0;for(r=t+2;r<n&&!(e.sCount[r]<e.blkIndent);r++){let i=!1;for(let t=0,a=p.length;t<a;t++)if(p[t](e,r,n,!0)){i=!0;break}if(i)break;if(l=vn(e,r).trim(),!l)break;if(e.sCount[r]-e.blkIndent>=4)break;if(c=wn(l),c.length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop(),g+=u-c.length,g>65536)break;if(r===t+2){e.push("tbody_open","tbody",1).map=f=[t+2,0]}e.push("tr_open","tr",1).map=[r,r+1];for(let t=0;t<u;t++){const n=e.push("td_open","td",1);d[t]&&(n.attrs=[["style","text-align:"+d[t]]]);const i=e.push("inline","",0);i.content=c[t]?c[t].trim():"",i.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return f&&(e.push("tbody_close","tbody",-1),f[1]=r),e.push("table_close","table",-1),m[1]=r,e.parentType=h,e.line=r,!0},["paragraph","reference"]],["code",function(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let i=t+1,r=i;for(;i<n;)if(e.isEmpty(i))i++;else{if(!(e.sCount[i]-e.blkIndent>=4))break;i++,r=i}e.line=r;const a=e.push("code_block","code",0);return a.content=e.getLines(t,r,4+e.blkIndent,!1)+"\n",a.map=[t,e.line],!0}],["fence",function(e,t,n,i){let r=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(r+3>a)return!1;const s=e.src.charCodeAt(r);if(126!==s&&96!==s)return!1;let o=r;r=e.skipChars(r,s);let l=r-o;if(l<3)return!1;const c=e.src.slice(o,r),d=e.src.slice(r,a);if(96===s&&d.indexOf(String.fromCharCode(s))>=0)return!1;if(i)return!0;let u=t,h=!1;for(;(u++,!(u>=n))&&(r=o=e.bMarks[u]+e.tShift[u],a=e.eMarks[u],!(r<a&&e.sCount[u]<e.blkIndent));)if(e.src.charCodeAt(r)===s&&!(e.sCount[u]-e.blkIndent>=4||(r=e.skipChars(r,s),r-o<l||(r=e.skipSpaces(r),r<a)))){h=!0;break}l=e.sCount[t],e.line=u+(h?1:0);const p=e.push("fence","code",0);return p.info=d,p.content=e.getLines(t+1,u,l,!0),p.markup=c,p.map=[t,e.line],!0},["paragraph","reference","blockquote","list"]],["blockquote",function(e,t,n,i){let r=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];const s=e.lineMax;if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(r))return!1;if(i)return!0;const o=[],l=[],c=[],d=[],u=e.md.block.ruler.getRules("blockquote"),h=e.parentType;e.parentType="blockquote";let p,m=!1;for(p=t;p<n;p++){const t=e.sCount[p]<e.blkIndent;if(r=e.bMarks[p]+e.tShift[p],a=e.eMarks[p],r>=a)break;if(62===e.src.charCodeAt(r++)&&!t){let t,n,i=e.sCount[p]+1;32===e.src.charCodeAt(r)?(r++,i++,n=!1,t=!0):9===e.src.charCodeAt(r)?(t=!0,(e.bsCount[p]+i)%4==3?(r++,i++,n=!1):n=!0):t=!1;let s=i;for(o.push(e.bMarks[p]),e.bMarks[p]=r;r<a;){const t=e.src.charCodeAt(r);if(!Rt(t))break;9===t?s+=4-(s+e.bsCount[p]+(n?1:0))%4:s++,r++}m=r>=a,l.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(t?1:0),c.push(e.sCount[p]),e.sCount[p]=s-i,d.push(e.tShift[p]),e.tShift[p]=r-e.bMarks[p];continue}if(m)break;let i=!1;for(let t=0,r=u.length;t<r;t++)if(u[t](e,p,n,!0)){i=!0;break}if(i){e.lineMax=p,0!==e.blkIndent&&(o.push(e.bMarks[p]),l.push(e.bsCount[p]),d.push(e.tShift[p]),c.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}o.push(e.bMarks[p]),l.push(e.bsCount[p]),d.push(e.tShift[p]),c.push(e.sCount[p]),e.sCount[p]=-1}const f=e.blkIndent;e.blkIndent=0;const g=e.push("blockquote_open","blockquote",1);g.markup=">";const b=[t,0];g.map=b,e.md.block.tokenize(e,t,p),e.push("blockquote_close","blockquote",-1).markup=">",e.lineMax=s,e.parentType=h,b[1]=e.line;for(let n=0;n<d.length;n++)e.bMarks[n+t]=o[n],e.tShift[n+t]=d[n],e.sCount[n+t]=c[n],e.bsCount[n+t]=l[n];return e.blkIndent=f,!0},["paragraph","reference","blockquote","list"]],["hr",function(e,t,n,i){const r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t];const s=e.src.charCodeAt(a++);if(42!==s&&45!==s&&95!==s)return!1;let o=1;for(;a<r;){const t=e.src.charCodeAt(a++);if(t!==s&&!Rt(t))return!1;t===s&&o++}if(o<3)return!1;if(i)return!0;e.line=t+1;const l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(o+1).join(String.fromCharCode(s)),!0},["paragraph","reference","blockquote","list"]],["list",function(e,t,n,i){let r,a,s,o,l=t,c=!0;if(e.sCount[l]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]<e.blkIndent)return!1;let d,u,h,p=!1;if(i&&"paragraph"===e.parentType&&e.sCount[l]>=e.blkIndent&&(p=!0),(h=En(e,l))>=0){if(d=!0,s=e.bMarks[l]+e.tShift[l],u=Number(e.src.slice(s,h-1)),p&&1!==u)return!1}else{if(!((h=xn(e,l))>=0))return!1;d=!1}if(p&&e.skipSpaces(h)>=e.eMarks[l])return!1;if(i)return!0;const m=e.src.charCodeAt(h-1),f=e.tokens.length;d?(o=e.push("ordered_list_open","ol",1),1!==u&&(o.attrs=[["start",u]])):o=e.push("bullet_list_open","ul",1);const g=[l,0];o.map=g,o.markup=String.fromCharCode(m);let b=!1;const y=e.md.block.ruler.getRules("list"),v=e.parentType;for(e.parentType="list";l<n;){a=h,r=e.eMarks[l];const t=e.sCount[l]+h-(e.bMarks[l]+e.tShift[l]);let i=t;for(;a<r;){const t=e.src.charCodeAt(a);if(9===t)i+=4-(i+e.bsCount[l])%4;else{if(32!==t)break;i++}a++}const u=a;let p;p=u>=r?1:i-t,p>4&&(p=1);const f=t+p;o=e.push("list_item_open","li",1),o.markup=String.fromCharCode(m);const g=[l,0];o.map=g,d&&(o.info=e.src.slice(s,h-1));const v=e.tight,w=e.tShift[l],x=e.sCount[l],E=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=f,e.tight=!0,e.tShift[l]=u-e.bMarks[l],e.sCount[l]=i,u>=r&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),e.tight&&!b||(c=!1),b=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=E,e.tShift[l]=w,e.sCount[l]=x,e.tight=v,o=e.push("list_item_close","li",-1),o.markup=String.fromCharCode(m),l=e.line,g[1]=l,l>=n)break;if(e.sCount[l]<e.blkIndent)break;if(e.sCount[l]-e.blkIndent>=4)break;let k=!1;for(let t=0,i=y.length;t<i;t++)if(y[t](e,l,n,!0)){k=!0;break}if(k)break;if(d){if(h=En(e,l),h<0)break;s=e.bMarks[l]+e.tShift[l]}else if(h=xn(e,l),h<0)break;if(m!==e.src.charCodeAt(h-1))break}return o=d?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1),o.markup=String.fromCharCode(m),g[1]=l,e.line=l,e.parentType=v,c&&function(e,t){const n=e.level+2;for(let i=t+2,r=e.tokens.length-2;i<r;i++)e.tokens[i].level===n&&"paragraph_open"===e.tokens[i].type&&(e.tokens[i+2].hidden=!0,e.tokens[i].hidden=!0,i+=2)}(e,f),!0},["paragraph","reference","blockquote"]],["reference",function(e,t,n,i){let r=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],s=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(r))return!1;function o(t){const n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let i=!1;if(e.sCount[t]-e.blkIndent>3&&(i=!0),e.sCount[t]<0&&(i=!0),!i){const i=e.md.block.ruler.getRules("reference"),r=e.parentType;e.parentType="reference";let a=!1;for(let r=0,s=i.length;r<s;r++)if(i[r](e,t,n,!0)){a=!0;break}if(e.parentType=r,a)return null}const r=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];return e.src.slice(r,a+1)}let l=e.src.slice(r,a+1);a=l.length;let c=-1;for(r=1;r<a;r++){const e=l.charCodeAt(r);if(91===e)return!1;if(93===e){c=r;break}if(10===e){const e=o(s);null!==e&&(l+=e,a=l.length,s++)}else if(92===e&&(r++,r<a&&10===l.charCodeAt(r))){const e=o(s);null!==e&&(l+=e,a=l.length,s++)}}if(c<0||58!==l.charCodeAt(c+1))return!1;for(r=c+2;r<a;r++){const e=l.charCodeAt(r);if(10===e){const e=o(s);null!==e&&(l+=e,a=l.length,s++)}else if(!Rt(e))break}const d=e.md.helpers.parseLinkDestination(l,r,a);if(!d.ok)return!1;const u=e.md.normalizeLink(d.str);if(!e.md.validateLink(u))return!1;r=d.pos;const h=r,p=s,m=r;for(;r<a;r++){const e=l.charCodeAt(r);if(10===e){const e=o(s);null!==e&&(l+=e,a=l.length,s++)}else if(!Rt(e))break}let f,g=e.md.helpers.parseLinkTitle(l,r,a);for(;g.can_continue;){const t=o(s);if(null===t)break;l+=t,r=a,a=l.length,s++,g=e.md.helpers.parseLinkTitle(l,r,a,g)}for(r<a&&m!==r&&g.ok?(f=g.str,r=g.pos):(f="",r=h,s=p);r<a;){if(!Rt(l.charCodeAt(r)))break;r++}if(r<a&&10!==l.charCodeAt(r)&&f)for(f="",r=h,s=p;r<a;){if(!Rt(l.charCodeAt(r)))break;r++}if(r<a&&10!==l.charCodeAt(r))return!1;const b=qt(l.slice(1,c));return!!b&&(i||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[b]&&(e.env.references[b]={title:f,href:u}),e.line=s),!0)}],["html_block",function(e,t,n,i){let r=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(r))return!1;let s=e.src.slice(r,a),o=0;for(;o<Sn.length&&!Sn[o][0].test(s);o++);if(o===Sn.length)return!1;if(i)return Sn[o][2];let l=t+1;const c=Sn[o][1].test("");if(!Sn[o][1].test(s))for(;l<n&&(!(e.sCount[l]<e.blkIndent)||!c&&e.isEmpty(l));l++)if(r=e.bMarks[l]+e.tShift[l],a=e.eMarks[l],s=e.src.slice(r,a),Sn[o][1].test(s)){0!==s.length&&l++;break}e.line=l;const d=e.push("html_block","",0);return d.map=[t,l],d.content=e.getLines(t,l,e.blkIndent,!0),!0},["paragraph","reference","blockquote"]],["heading",function(e,t,n,i){let r=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.src.charCodeAt(r);if(35!==s||r>=a)return!1;let o=1;for(s=e.src.charCodeAt(++r);35===s&&r<a&&o<=6;)o++,s=e.src.charCodeAt(++r);if(o>6||r<a&&!Rt(s))return!1;if(i)return!0;a=e.skipSpacesBack(a,r);const l=e.skipCharsBack(a,35,r);l>r&&Rt(e.src.charCodeAt(l-1))&&(a=l),e.line=t+1;const c=e.push("heading_open","h"+String(o),1);c.markup="########".slice(0,o),c.map=[t,e.line];const d=e.push("inline","",0);return d.content=Ut(e.src.slice(r,a)),d.map=[t,e.line],d.children=[],e.push("heading_close","h"+String(o),-1).markup="########".slice(0,o),!0},["paragraph","reference","blockquote"]],["lheading",function(e,t,n){const i=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const r=e.parentType;e.parentType="paragraph";let a,s=0,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 t=e.bMarks[o]+e.tShift[o];const n=e.eMarks[o];if(t<n&&(a=e.src.charCodeAt(t),(45===a||61===a)&&(t=e.skipChars(t,a),t=e.skipSpaces(t),t>=n))){s=61===a?1:2;break}}if(e.sCount[o]<0)continue;let t=!1;for(let r=0,a=i.length;r<a;r++)if(i[r](e,o,n,!0)){t=!0;break}if(t)break}if(!s)return e.parentType=r,!1;const l=Ut(e.getLines(t,o,e.blkIndent,!1));e.line=o+1;const c=e.push("heading_open","h"+String(s),1);c.markup=String.fromCharCode(a),c.map=[t,e.line];const d=e.push("inline","",0);return d.content=l,d.map=[t,e.line-1],d.children=[],e.push("heading_close","h"+String(s),-1).markup=String.fromCharCode(a),e.parentType=r,!0}],["paragraph",function(e,t,n){const i=e.md.block.ruler.getRules("paragraph"),r=e.parentType;let a=t+1;for(e.parentType="paragraph";a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3)continue;if(e.sCount[a]<0)continue;let t=!1;for(let r=0,s=i.length;r<s;r++)if(i[r](e,a,n,!0)){t=!0;break}if(t)break}const s=Ut(e.getLines(t,a,e.blkIndent,!1));e.line=a,e.push("paragraph_open","p",1).map=[t,e.line];const o=e.push("inline","",0);return o.content=s,o.map=[t,e.line],o.children=[],e.push("paragraph_close","p",-1),e.parentType=r,!0}]];function Nn(){this.ruler=new Jt;for(let e=0;e<Dn.length;e++)this.ruler.push(Dn[e][0],Dn[e][1],{alt:(Dn[e][2]||[]).slice()})}function Tn(e,t,n,i){this.src=e,this.env=n,this.md=t,this.tokens=i,this.tokens_meta=Array(i.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}function In(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}}Nn.prototype.tokenize=function(e,t,n){const i=this.ruler.getRules(""),r=i.length,a=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>=a){e.line=n;break}const t=e.line;let l=!1;for(let a=0;a<r;a++)if(l=i[a](e,s,n,!1),l){if(t>=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)}},Nn.prototype.parse=function(e,t,n,i){if(!e)return;const r=new this.State(e,t,n,i);this.tokenize(r,r.line,r.lineMax)},Nn.prototype.State=yn,Tn.prototype.pushPending=function(){const e=new Yt("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},Tn.prototype.push=function(e,t,n){this.pending&&this.pushPending();const i=new Yt(e,t,n);let r=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.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(i),this.tokens_meta.push(r),i},Tn.prototype.scanDelims=function(e,t){const n=this.posMax,i=this.src.charCodeAt(e);let r;if(0===e)r=32;else if(1===e)r=this.src.charCodeAt(0),55296==(63488&r)&&(r=65533);else if(r=this.src.charCodeAt(e-1),56320==(64512&r)){const t=this.src.charCodeAt(e-2);r=55296==(64512&t)?65536+(t-55296<<10)+(r-56320):65533}else 55296==(64512&r)&&(r=65533);let a=e;for(;a<n&&this.src.charCodeAt(a)===i;)a++;const s=a-e;let o=a<n?this.src.charCodeAt(a):32;if(55296==(64512&o)){const e=this.src.charCodeAt(a+1);o=56320==(64512&e)?65536+(o-55296<<10)+(e-56320):65533}else 56320==(64512&o)&&(o=65533);const l=Ht(r)||Pt(r),c=Ht(o)||Pt(o),d=$t(r),u=$t(o),h=!u&&(!c||d||l),p=!d&&(!l||u||c);return{can_open:h&&(t||!p||l),can_close:p&&(t||!h||c),length:s}},Tn.prototype.Token=Yt;const Ln=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;const Mn=[];for(let e=0;e<256;e++)Mn.push(0);function zn(e,t){let n;const i=[],r=t.length;for(let a=0;a<r;a++){const r=t[a];if(126!==r.marker)continue;if(-1===r.end)continue;const s=t[r.end];n=e.tokens[r.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[s.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="","text"===e.tokens[s.token-1].type&&"~"===e.tokens[s.token-1].content&&i.push(s.token-1)}for(;i.length;){const t=i.pop();let r=t+1;for(;r<e.tokens.length&&"s_close"===e.tokens[r].type;)r++;r--,t!==r&&(n=e.tokens[r],e.tokens[r]=e.tokens[t],e.tokens[t]=n)}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){Mn[e.charCodeAt(0)]=1});var Fn={tokenize:function(e,t){const n=e.pos,i=e.src.charCodeAt(n);if(t)return!1;if(126!==i)return!1;const r=e.scanDelims(e.pos,!0);let a=r.length;const s=String.fromCharCode(i);if(a<2)return!1;let o;a%2&&(o=e.push("text","",0),o.content=s,a--);for(let t=0;t<a;t+=2)o=e.push("text","",0),o.content=s+s,e.delimiters.push({marker:i,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},postProcess:function(e){const t=e.tokens_meta,n=e.tokens_meta.length;zn(e,e.delimiters);for(let i=0;i<n;i++)t[i]&&t[i].delimiters&&zn(e,t[i].delimiters)}};function Bn(e,t){for(let n=t.length-1;n>=0;n--){const i=t[n];if(95!==i.marker&&42!==i.marker)continue;if(-1===i.end)continue;const r=t[i.end],a=n>0&&t[n-1].end===i.end+1&&t[n-1].marker===i.marker&&t[n-1].token===i.token-1&&t[i.end+1].token===r.token+1,s=String.fromCharCode(i.marker),o=e.tokens[i.token];o.type=a?"strong_open":"em_open",o.tag=a?"strong":"em",o.nesting=1,o.markup=a?s+s:s,o.content="";const l=e.tokens[r.token];l.type=a?"strong_close":"em_close",l.tag=a?"strong":"em",l.nesting=-1,l.markup=a?s+s:s,l.content="",a&&(e.tokens[t[n-1].token].content="",e.tokens[t[i.end+1].token].content="",n--)}}var On={tokenize:function(e,t){const n=e.pos,i=e.src.charCodeAt(n);if(t)return!1;if(95!==i&&42!==i)return!1;const r=e.scanDelims(e.pos,42===i);for(let t=0;t<r.length;t++){e.push("text","",0).content=String.fromCharCode(i),e.delimiters.push({marker:i,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close})}return e.pos+=r.length,!0},postProcess:function(e){const t=e.tokens_meta,n=e.tokens_meta.length;Bn(e,e.delimiters);for(let i=0;i<n;i++)t[i]&&t[i].delimiters&&Bn(e,t[i].delimiters)}};const Rn=/^([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])?)*)$/,$n=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;const jn=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Pn=/^&([a-z][a-z0-9]{1,31});/i;function Hn(e){const t={},n=e.length;if(!n)return;let i=0,r=-2;const a=[];for(let s=0;s<n;s++){const n=e[s];if(a.push(0),e[i].marker===n.marker&&r===n.token-1||(i=s),r=n.token,n.length=n.length||0,!n.close)continue;t.hasOwnProperty(n.marker)||(t[n.marker]=[-1,-1,-1,-1,-1,-1]);const o=t[n.marker][(n.open?3:0)+n.length%3];let l=i-a[i]-1,c=l;for(;l>o;l-=a[l]+1){const t=e[l];if(t.marker===n.marker&&(t.open&&t.end<0)){let i=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3==0&&n.length%3==0||(i=!0)),!i){const i=l>0&&!e[l-1].open?a[l-1]+1:0;a[s]=s-l+i,a[l]=i,n.open=!1,t.end=s,t.close=!1,c=-1,r=-2;break}}}-1!==c&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=c)}}const qn=[["text",function(e,t){let n=e.pos;for(;n<e.posMax&&!In(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}],["linkify",function(e,t){if(!e.md.options.linkify)return!1;if(e.linkLevel>0)return!1;const n=e.pos;if(n+3>e.posMax)return!1;if(58!==e.src.charCodeAt(n))return!1;if(47!==e.src.charCodeAt(n+1))return!1;if(47!==e.src.charCodeAt(n+2))return!1;const i=e.pending.match(Ln);if(!i)return!1;const r=i[1],a=e.md.linkify.matchAtStart(e.src.slice(n-r.length));if(!a)return!1;let s=a.url;if(s.length<=r.length)return!1;let o=s.length;for(;o>0&&42===s.charCodeAt(o-1);)o--;o!==s.length&&(s=s.slice(0,o));const l=e.md.normalizeLink(s);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-r.length);const t=e.push("link_open","a",1);t.attrs=[["href",l]],t.markup="linkify",t.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(s);const n=e.push("link_close","a",-1);n.markup="linkify",n.info="auto"}return e.pos+=s.length-r.length,!0}],["newline",function(e,t){let n=e.pos;if(10!==e.src.charCodeAt(n))return!1;const i=e.pending.length-1,r=e.posMax;if(!t)if(i>=0&&32===e.pending.charCodeAt(i))if(i>=1&&32===e.pending.charCodeAt(i-1)){let t=i-1;for(;t>=1&&32===e.pending.charCodeAt(t-1);)t--;e.pending=e.pending.slice(0,t),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&&Rt(e.src.charCodeAt(n));)n++;return e.pos=n,!0}],["escape",function(e,t){let n=e.pos;const i=e.posMax;if(92!==e.src.charCodeAt(n))return!1;if(n++,n>=i)return!1;let r=e.src.charCodeAt(n);if(10===r){for(t||e.push("hardbreak","br",0),n++;n<i&&(r=e.src.charCodeAt(n),Rt(r));)n++;return e.pos=n,!0}if(32===r){if(!t){const t=e.push("text_special","",0);t.content="\\",t.markup="\\",t.info="escape"}return e.pos=n,!0}let a=e.src[n];if(r>=55296&&r<=56319&&n+1<i){const t=e.src.charCodeAt(n+1);t>=56320&&t<=57343&&(a+=e.src[n+1],n++)}const s="\\"+a;if(!t){const t=e.push("text_special","",0);r<256&&0!==Mn[r]?t.content=a:t.content=s,t.markup=s,t.info="escape"}return e.pos=n+1,!0}],["backticks",function(e,t){let n=e.pos;if(96!==e.src.charCodeAt(n))return!1;const i=n;n++;const r=e.posMax;for(;n<r&&96===e.src.charCodeAt(n);)n++;const a=e.src.slice(i,n),s=a.length;if(e.backticksScanned&&(e.backticks[s]||0)<=i)return t||(e.pending+=a),e.pos+=s,!0;let o,l=n;for(;-1!==(o=e.src.indexOf("`",l));){for(l=o+1;l<r&&96===e.src.charCodeAt(l);)l++;const i=l-o;if(i===s){if(!t){const t=e.push("code_inline","code",0);t.markup=a,t.content=e.src.slice(n,o).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[i]=o}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=s,!0}],["strikethrough",Fn.tokenize],["emphasis",On.tokenize],["link",function(e,t){let n,i,r,a,s="",o="",l=e.pos,c=!0;if(91!==e.src.charCodeAt(e.pos))return!1;const d=e.pos,u=e.posMax,h=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let m=p+1;if(m<u&&40===e.src.charCodeAt(m)){for(c=!1,m++;m<u&&(n=e.src.charCodeAt(m),Rt(n)||10===n);m++);if(m>=u)return!1;if(l=m,r=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),r.ok){for(s=e.md.normalizeLink(r.str),e.md.validateLink(s)?m=r.pos:s="",l=m;m<u&&(n=e.src.charCodeAt(m),Rt(n)||10===n);m++);if(r=e.md.helpers.parseLinkTitle(e.src,m,e.posMax),m<u&&l!==m&&r.ok)for(o=r.str,m=r.pos;m<u&&(n=e.src.charCodeAt(m),Rt(n)||10===n);m++);}(m>=u||41!==e.src.charCodeAt(m))&&(c=!0),m++}if(c){if(void 0===e.env.references)return!1;if(m<u&&91===e.src.charCodeAt(m)?(l=m+1,m=e.md.helpers.parseLinkLabel(e,m),m>=0?i=e.src.slice(l,m++):m=p+1):m=p+1,i||(i=e.src.slice(h,p)),a=e.env.references[qt(i)],!a)return e.pos=d,!1;s=a.href,o=a.title}if(!t){e.pos=h,e.posMax=p;const t=[["href",s]];e.push("link_open","a",1).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=m,e.posMax=u,!0}],["image",function(e,t){let n,i,r,a,s,o,l,c,d="";const u=e.pos,h=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;const p=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(a=m+1,a<h&&40===e.src.charCodeAt(a)){for(a++;a<h&&(n=e.src.charCodeAt(a),Rt(n)||10===n);a++);if(a>=h)return!1;for(c=a,o=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),o.ok&&(d=e.md.normalizeLink(o.str),e.md.validateLink(d)?a=o.pos:d=""),c=a;a<h&&(n=e.src.charCodeAt(a),Rt(n)||10===n);a++);if(o=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<h&&c!==a&&o.ok)for(l=o.str,a=o.pos;a<h&&(n=e.src.charCodeAt(a),Rt(n)||10===n);a++);else l="";if(a>=h||41!==e.src.charCodeAt(a))return e.pos=u,!1;a++}else{if(void 0===e.env.references)return!1;if(a<h&&91===e.src.charCodeAt(a)?(c=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?r=e.src.slice(c,a++):a=m+1):a=m+1,r||(r=e.src.slice(p,m)),s=e.env.references[qt(r)],!s)return e.pos=u,!1;d=s.href,l=s.title}if(!t){i=e.src.slice(p,m);const t=[];e.md.inline.parse(i,e.md,e.env,t);const n=e.push("image","img",0),r=[["src",d],["alt",""]];n.attrs=r,n.children=t,n.content=i,l&&r.push(["title",l])}return e.pos=a,e.posMax=h,!0}],["autolink",function(e,t){let n=e.pos;if(60!==e.src.charCodeAt(n))return!1;const i=e.pos,r=e.posMax;for(;;){if(++n>=r)return!1;const t=e.src.charCodeAt(n);if(60===t)return!1;if(62===t)break}const a=e.src.slice(i+1,n);if($n.test(a)){const n=e.md.normalizeLink(a);if(!e.md.validateLink(n))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(a);const i=e.push("link_close","a",-1);i.markup="autolink",i.info="auto"}return e.pos+=a.length+2,!0}if(Rn.test(a)){const n=e.md.normalizeLink("mailto:"+a);if(!e.md.validateLink(n))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(a);const i=e.push("link_close","a",-1);i.markup="autolink",i.info="auto"}return e.pos+=a.length+2,!0}return!1}],["html_inline",function(e,t){if(!e.md.options.html)return!1;const n=e.posMax,i=e.pos;if(60!==e.src.charCodeAt(i)||i+2>=n)return!1;const r=e.src.charCodeAt(i+1);if(33!==r&&63!==r&&47!==r&&!function(e){const t=32|e;return t>=97&&t<=122}(r))return!1;const a=e.src.slice(i).match(Cn);if(!a)return!1;if(!t){const t=e.push("html_inline","",0);t.content=a[0],s=t.content,/^<a[>\s]/i.test(s)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(t.content)&&e.linkLevel--}var s;return e.pos+=a[0].length,!0}],["entity",function(e,t){const n=e.pos,i=e.posMax;if(38!==e.src.charCodeAt(n))return!1;if(n+1>=i)return!1;if(35===e.src.charCodeAt(n+1)){const i=e.src.slice(n).match(jn);if(i){if(!t){const t="x"===i[1][0].toLowerCase()?parseInt(i[1].slice(1),16):parseInt(i[1],10),n=e.push("text_special","",0);n.content=Ct(t)?At(t):At(65533),n.markup=i[0],n.info="entity"}return e.pos+=i[0].length,!0}}else{const i=e.src.slice(n).match(Pn);if(i){const n=(r=i[0],wt(r,pt.Strict));if(n!==i[0]){if(!t){const t=e.push("text_special","",0);t.content=n,t.markup=i[0],t.info="entity"}return e.pos+=i[0].length,!0}}}var r;return!1}]],Vn=[["balance_pairs",function(e){const t=e.tokens_meta,n=e.tokens_meta.length;Hn(e.delimiters);for(let e=0;e<n;e++)t[e]&&t[e].delimiters&&Hn(t[e].delimiters)}],["strikethrough",Fn.postProcess],["emphasis",On.postProcess],["fragments_join",function(e){let t,n,i=0;const r=e.tokens,a=e.tokens.length;for(t=n=0;t<a;t++)r[t].nesting<0&&i--,r[t].level=i,r[t].nesting>0&&i++,"text"===r[t].type&&t+1<a&&"text"===r[t+1].type?r[t+1].content=r[t].content+r[t+1].content:(t!==n&&(r[n]=r[t]),n++);t!==n&&(r.length=n)}]];function Un(){this.ruler=new Jt;for(let e=0;e<qn.length;e++)this.ruler.push(qn[e][0],qn[e][1]);this.ruler2=new Jt;for(let e=0;e<Vn.length;e++)this.ruler2.push(Vn[e][0],Vn[e][1])}function Zn(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function Wn(e){return Object.prototype.toString.call(e)}function Kn(e){return"[object Function]"===Wn(e)}function Gn(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}Un.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),i=n.length,r=e.md.options.maxNesting,a=e.cache;if(void 0!==a[t])return void(e.pos=a[t]);let s=!1;if(e.level<r){for(let r=0;r<i;r++)if(e.level++,s=n[r](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++,a[t]=e.pos},Un.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,i=e.posMax,r=e.md.options.maxNesting;for(;e.pos<i;){const a=e.pos;let s=!1;if(e.level<r)for(let i=0;i<n;i++)if(s=t[i](e,!1),s){if(a>=e.pos)throw new Error("inline rule didn't increment state.pos");break}if(s){if(e.pos>=i)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Un.prototype.parse=function(e,t,n,i){const r=new this.State(e,t,n,i);this.tokenize(r);const a=this.ruler2.getRules(""),s=a.length;for(let e=0;e<s;e++)a[e](r)},Un.prototype.State=Tn;const Xn={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};const Jn={"http:":{validate:function(e,t,n){const i=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(i)?i.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const i=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(i)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:i.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const i=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(i)?i.match(n.re.mailto)[0].length:0}}},Yn="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Qn(e){const t=e.re=function(e){const t={};e=e||{},t.src_Any=et.source,t.src_Cc=tt.source,t.src_Z=rt.source,t.src_P=nt.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}(e.__opts__),n=e.__tlds__.slice();function i(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push("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]"),n.push(t.src_xn),t.src_tlds=n.join("|"),t.email_fuzzy=RegExp(i(t.tpl_email_fuzzy),"i"),t.email_fuzzy_global=RegExp(i(t.tpl_email_fuzzy),"ig"),t.link_fuzzy=RegExp(i(t.tpl_link_fuzzy),"i"),t.link_fuzzy_global=RegExp(i(t.tpl_link_fuzzy),"ig"),t.link_no_ip_fuzzy=RegExp(i(t.tpl_link_no_ip_fuzzy),"i"),t.link_no_ip_fuzzy_global=RegExp(i(t.tpl_link_no_ip_fuzzy),"ig"),t.host_fuzzy_test=RegExp(i(t.tpl_host_fuzzy_test),"i");const r=[];function a(e,t){throw new Error(`(LinkifyIt) Invalid schema "${e}": ${t}`)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){const n=e.__schemas__[t];if(null===n)return;const i={validate:null,link:null};if(e.__compiled__[t]=i,"[object Object]"===Wn(n))return!function(e){return"[object RegExp]"===Wn(e)}(n.validate)?Kn(n.validate)?i.validate=n.validate:a(t,n):i.validate=function(e){return function(t,n){const i=t.slice(n);return e.test(i)?i.match(e)[0].length:0}}(n.validate),void(Kn(n.normalize)?i.normalize=n.normalize:n.normalize?a(t,n):i.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===Wn(e)}(n)?a(t,n):r.push(t)}),r.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};const s=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(Gn).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 ei(e,t,n,i){const r=e.slice(n,i);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=i,this.raw=r,this.text=r,this.url=r}function ti(e,t){if(!(this instanceof ti))return new ti(e,t);var n;t||(n=e,Object.keys(n||{}).reduce(function(e,t){return e||Xn.hasOwnProperty(t)},!1)&&(t=e,e={})),this.__opts__=Zn({},Xn,t),this.__schemas__=Zn({},Jn,e),this.__compiled__={},this.__tlds__=Yn,this.__tlds_replaced__=!1,this.re={},Qn(this)}ti.prototype.add=function(e,t){return this.__schemas__[e]=t,Qn(this),this},ti.prototype.set=function(e){return this.__opts__=Zn(this.__opts__,e),this},ti.prototype.test=function(e){if(!e.length)return!1;let t,n;if(this.re.schema_test.test(e))for(n=this.re.schema_search,n.lastIndex=0;null!==(t=n.exec(e));)if(this.testSchemaAt(e,t[2],n.lastIndex))return!0;return!!(this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&e.search(this.re.host_fuzzy_test)>=0&&null!==e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))||!!(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==e.match(this.re.email_fuzzy))},ti.prototype.pretest=function(e){return this.re.pretest.test(e)},ti.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},ti.prototype.match=function(e){const t=[],n=[],i=[],r=[];let a,s,o;function l(e,t){return e?t?e.index!==t.index?e.index<t.index?e:t:e.lastIndex>=t.lastIndex?e:t:e:t}if(!e.length)return null;if(this.re.schema_test.test(e))for(o=this.re.schema_search,o.lastIndex=0;null!==(a=o.exec(e));)s=this.testSchemaAt(e,a[2],o.lastIndex),s&&n.push({schema:a[2],index:a.index+a[1].length,lastIndex:a.index+a[0].length+s});if(this.__opts__.fuzzyLink&&this.__compiled__["http:"])for(o=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,o.lastIndex=0;null!==(a=o.exec(e));)i.push({schema:"",index:a.index+a[1].length,lastIndex:a.index+a[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for(o=this.re.email_fuzzy_global,o.lastIndex=0;null!==(a=o.exec(e));)r.push({schema:"mailto:",index:a.index+a[1].length,lastIndex:a.index+a[0].length});const c=[0,0,0];let d=0;for(;;){const a=[n[c[0]],r[c[1]],i[c[2]]],s=l(l(a[0],a[1]),a[2]);if(!s)break;if(s===a[0]?c[0]++:s===a[1]?c[1]++:c[2]++,s.index<d)continue;const o=new ei(e,s.schema,s.index,s.lastIndex);this.__compiled__[o.schema].normalize(o,this),t.push(o),d=s.lastIndex}return t.length?t:null},ti.prototype.matchAtStart=function(e){if(!e.length)return null;const t=this.re.schema_at_start.exec(e);if(!t)return null;const n=this.testSchemaAt(e,t[2],t[0].length);if(!n)return null;const i=new ei(e,t[2],t.index+t[1].length,t.index+t[0].length+n);return this.__compiled__[i.schema].normalize(i,this),i},ti.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),Qn(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Qn(this),this)},ti.prototype.normalize=function(e){e.schema||(e.url=`http://${e.url}`),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url=`mailto:${e.url}`)},ti.prototype.onCompile=function(){};const ni=2147483647,ii=36,ri=/^xn--/,ai=/[^\0-\x7F]/,si=/[\x2E\u3002\uFF0E\uFF61]/g,oi={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},li=Math.floor,ci=String.fromCharCode;function di(e){throw new RangeError(oi[e])}function ui(e,t){const n=e.split("@");let i="";n.length>1&&(i=n[0]+"@",e=n[1]);const r=function(e,t){const n=[];let i=e.length;for(;i--;)n[i]=t(e[i]);return n}((e=e.replace(si,".")).split("."),t).join(".");return i+r}function hi(e){const t=[];let n=0;const i=e.length;for(;n<i;){const r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<i){const i=e.charCodeAt(n++);56320==(64512&i)?t.push(((1023&r)<<10)+(1023&i)+65536):(t.push(r),n--)}else t.push(r)}return t}const pi=function(e){return e>=48&&e<58?e-48+26:e>=65&&e<91?e-65:e>=97&&e<123?e-97:ii},mi=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},fi=function(e,t,n){let i=0;for(e=n?li(e/700):e>>1,e+=li(e/t);e>455;i+=ii)e=li(e/35);return li(i+36*e/(e+38))},gi=function(e){const t=[],n=e.length;let i=0,r=128,a=72,s=e.lastIndexOf("-");s<0&&(s=0);for(let n=0;n<s;++n)e.charCodeAt(n)>=128&&di("not-basic"),t.push(e.charCodeAt(n));for(let o=s>0?s+1:0;o<n;){const s=i;for(let t=1,r=ii;;r+=ii){o>=n&&di("invalid-input");const s=pi(e.charCodeAt(o++));s>=ii&&di("invalid-input"),s>li((ni-i)/t)&&di("overflow"),i+=s*t;const l=r<=a?1:r>=a+26?26:r-a;if(s<l)break;const c=ii-l;t>li(ni/c)&&di("overflow"),t*=c}const l=t.length+1;a=fi(i-s,l,0==s),li(i/l)>ni-r&&di("overflow"),r+=li(i/l),i%=l,t.splice(i++,0,r)}return String.fromCodePoint(...t)},bi=function(e){const t=[],n=(e=hi(e)).length;let i=128,r=0,a=72;for(const n of e)n<128&&t.push(ci(n));const s=t.length;let o=s;for(s&&t.push("-");o<n;){let n=ni;for(const t of e)t>=i&&t<n&&(n=t);const l=o+1;n-i>li((ni-r)/l)&&di("overflow"),r+=(n-i)*l,i=n;for(const n of e)if(n<i&&++r>ni&&di("overflow"),n===i){let e=r;for(let n=ii;;n+=ii){const i=n<=a?1:n>=a+26?26:n-a;if(e<i)break;const r=e-i,s=ii-i;t.push(ci(mi(i+r%s,0))),e=li(r/s)}t.push(ci(mi(e,0))),a=fi(r,l,o===s),r=0,++o}++r,++i}return t.join("")},yi=function(e){return ui(e,function(e){return ai.test(e)?"xn--"+bi(e):e})},vi=function(e){return ui(e,function(e){return ri.test(e)?gi(e.slice(4).toLowerCase()):e})};const wi={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{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"]}}},commonmark:{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"]}}}},xi=/^(vbscript|javascript|file|data):/,Ei=/^data:image\/(gif|png|jpeg|webp);/;function ki(e){const t=e.trim().toLowerCase();return!xi.test(t)||Ei.test(t)}const _i=["http:","https:","mailto:"];function Ci(e){const t=Je(e,!0);if(t.hostname&&(!t.protocol||_i.indexOf(t.protocol)>=0))try{t.hostname=yi(t.hostname)}catch(e){}return Oe(Re(t))}function Ai(e){const t=Je(e,!0);if(t.hostname&&(!t.protocol||_i.indexOf(t.protocol)>=0))try{t.hostname=vi(t.hostname)}catch(e){}return Fe(Re(t),Fe.defaultChars+"%")}function Si(e,t){if(!(this instanceof Si))return new Si(e,t);t||xt(e)||(t=e||{},e="default"),this.inline=new Un,this.block=new Nn,this.core=new bn,this.renderer=new Xt,this.linkify=new ti,this.validateLink=ki,this.normalizeLink=Ci,this.normalizeLinkText=Ai,this.utils=Wt,this.helpers=kt({},Kt),this.options={},this.configure(e),t&&this.set(t)}function Di(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ni,Ti;function Ii(){if(Ti)return Ni;function e(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach(n=>{const i=t[n],r=typeof i;"object"!==r&&"function"!==r||Object.isFrozen(i)||e(i)}),t}Ti=1;class t{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function i(e,...t){const n=Object.create(null);for(const t in e)n[t]=e[t];return t.forEach(function(e){for(const t in e)n[t]=e[t]}),n}const r=e=>!!e.scope;class a{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=n(e)}openNode(e){if(!r(e))return;const t=((e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map((e,t)=>`${e}${"_".repeat(t+1)}`)].join(" ")}return`${t}${e}`})(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){r(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const s=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class o{constructor(){this.rootNode=s(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=s({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every(e=>"string"==typeof e)?e.children=[e.children.join("")]:e.children.forEach(e=>{o._collapse(e)}))}}class l extends o{constructor(e){super(),this.options=e}addText(e){""!==e&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const n=e.root;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){return new a(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function c(e){return e?"string"==typeof e?e:e.source:null}function d(e){return p("(?=",e,")")}function u(e){return p("(?:",e,")*")}function h(e){return p("(?:",e,")?")}function p(...e){return e.map(e=>c(e)).join("")}function m(...e){const t=function(e){const t=e[e.length-1];return"object"==typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}(e);return"("+(t.capture?"":"?:")+e.map(e=>c(e)).join("|")+")"}function f(e){return new RegExp(e.toString()+"|").exec("").length-1}const g=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function b(e,{joinWith:t}){let n=0;return e.map(e=>{n+=1;const t=n;let i=c(e),r="";for(;i.length>0;){const e=g.exec(i);if(!e){r+=i;break}r+=i.substring(0,e.index),i=i.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?r+="\\"+String(Number(e[1])+t):(r+=e[0],"("===e[0]&&n++)}return r}).map(e=>`(${e})`).join(t)}const y="[a-zA-Z]\\w*",v="[a-zA-Z_]\\w*",w="\\b\\d+(\\.\\d+)?",x="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",E="\\b(0b[01]+)",k={begin:"\\\\[\\s\\S]",relevance:0},_={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[k]},C={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[k]},A=function(e,t,n={}){const r=i({scope:"comment",begin:e,end:t,contains:[]},n);r.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 a=m("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 r.contains.push({begin:p(/[ ]+/,"(",a,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},S=A("//","$"),D=A("/\\*","\\*/"),N=A("#","$"),T={scope:"number",begin:w,relevance:0},I={scope:"number",begin:x,relevance:0},L={scope:"number",begin:E,relevance:0},M={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[k,{begin:/\[/,end:/\]/,relevance:0,contains:[k]}]},z={scope:"title",begin:y,relevance:0},F={scope:"title",begin:v,relevance:0},B={begin:"\\.\\s*"+v,relevance:0};var O=Object.freeze({__proto__:null,APOS_STRING_MODE:_,BACKSLASH_ESCAPE:k,BINARY_NUMBER_MODE:L,BINARY_NUMBER_RE:E,COMMENT:A,C_BLOCK_COMMENT_MODE:D,C_LINE_COMMENT_MODE:S,C_NUMBER_MODE:I,C_NUMBER_RE:x,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})},HASH_COMMENT_MODE:N,IDENT_RE:y,MATCH_NOTHING_RE:/\b\B/,METHOD_GUARD:B,NUMBER_MODE:T,NUMBER_RE:w,PHRASAL_WORDS_MODE:{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/},QUOTE_STRING_MODE:C,REGEXP_MODE:M,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=p(t,/.*\b/,e.binary,/\b.*/)),i({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},TITLE_MODE:z,UNDERSCORE_IDENT_RE:v,UNDERSCORE_TITLE_MODE:F});function R(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function $(e,t){void 0!==e.className&&(e.scope=e.className,delete e.className)}function j(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=R,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function P(e,t){Array.isArray(e.illegal)&&(e.illegal=m(...e.illegal))}function H(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function q(e,t){void 0===e.relevance&&(e.relevance=1)}const V=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach(t=>{delete e[t]}),e.keywords=n.keywords,e.begin=p(n.beforeMatch,d(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},U=["of","and","for","in","not","or","if","then","parent","list","value"];function Z(e,t,n="keyword"){const i=Object.create(null);return"string"==typeof e?r(n,e.split(" ")):Array.isArray(e)?r(n,e):Object.keys(e).forEach(function(n){Object.assign(i,Z(e[n],t,n))}),i;function r(e,n){t&&(n=n.map(e=>e.toLowerCase())),n.forEach(function(t){const n=t.split("|");i[n[0]]=[e,W(n[0],n[1])]})}}function W(e,t){return t?Number(t):function(e){return U.includes(e.toLowerCase())}(e)?0:1}const K={},G=e=>{console.error(e)},X=(e,...t)=>{console.log(`WARN: ${e}`,...t)},J=(e,t)=>{K[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),K[`${e}/${t}`]=!0)},Y=new Error;function Q(e,t,{key:n}){let i=0;const r=e[n],a={},s={};for(let e=1;e<=t.length;e++)s[e+i]=r[e],a[e+i]=!0,i+=f(t[e-1]);e[n]=s,e[n]._emit=a,e[n]._multi=!0}function ee(e){!function(e){e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,delete e.scope)}(e),"string"==typeof e.beginScope&&(e.beginScope={_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope}),function(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw G("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Y;if("object"!=typeof e.beginScope||null===e.beginScope)throw G("beginScope must be object"),Y;Q(e,e.begin,{key:"beginScope"}),e.begin=b(e.begin,{joinWith:""})}}(e),function(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw G("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Y;if("object"!=typeof e.endScope||null===e.endScope)throw G("endScope must be object"),Y;Q(e,e.end,{key:"endScope"}),e.end=b(e.end,{joinWith:""})}}(e)}function te(e){function t(t,n){return new RegExp(c(t),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(n?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=f(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map(e=>e[1]);this.matcherRe=t(b(e,{joinWith:"|"}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const n=t.findIndex((e,t)=>t>0&&void 0!==e),i=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,i)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new n;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=i(e.classNameAliases||{}),function n(a,s){const o=a;if(a.isCompiled)return o;[$,H,ee,V].forEach(e=>e(a,s)),e.compilerExtensions.forEach(e=>e(a,s)),a.__beforeBegin=null,[j,P,q].forEach(e=>e(a,s)),a.isCompiled=!0;let l=null;return"object"==typeof a.keywords&&a.keywords.$pattern&&(a.keywords=Object.assign({},a.keywords),l=a.keywords.$pattern,delete a.keywords.$pattern),l=l||/\w+/,a.keywords&&(a.keywords=Z(a.keywords,e.case_insensitive)),o.keywordPatternRe=t(l,!0),s&&(a.begin||(a.begin=/\B|\b/),o.beginRe=t(o.begin),a.end||a.endsWithParent||(a.end=/\B|\b/),a.end&&(o.endRe=t(o.end)),o.terminatorEnd=c(o.end)||"",a.endsWithParent&&s.terminatorEnd&&(o.terminatorEnd+=(a.end?"|":"")+s.terminatorEnd)),a.illegal&&(o.illegalRe=t(a.illegal)),a.contains||(a.contains=[]),a.contains=[].concat(...a.contains.map(function(e){return function(e){e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return i(e,{variants:null},t)}));if(e.cachedVariants)return e.cachedVariants;if(ne(e))return i(e,{starts:e.starts?i(e.starts):null});if(Object.isFrozen(e))return i(e);return e}("self"===e?a:e)})),a.contains.forEach(function(e){n(e,o)}),a.starts&&n(a.starts,s),o.matcher=function(e){const t=new r;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:"begin"})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(o),o}(e)}function ne(e){return!!e&&(e.endsWithParent||ne(e.starts))}class ie extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const re=n,ae=i,se=Symbol("nomatch"),oe=function(n){const i=Object.create(null),r=Object.create(null),a=[];let s=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",c={disableAutodetect:!0,name:"Plain text",contains:[]};let f={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:l};function g(e){return f.noHighlightRe.test(e)}function b(e,t,n){let i="",r="";"object"==typeof t?(i=e,n=t.ignoreIllegals,r=t.language):(J("10.7.0","highlight(lang, code, ...args) has been deprecated."),J("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),r=e,i=t),void 0===n&&(n=!0);const a={code:i,language:r};A("before:highlight",a);const s=a.result?a.result:y(a.language,a.code,n);return s.code=a.code,A("after:highlight",s),s}function y(e,n,r,a){const l=Object.create(null);function c(e,t){return e.keywords[t]}function d(){if(!S.keywords)return void N.addText(T);let e=0;S.keywordPatternRe.lastIndex=0;let t=S.keywordPatternRe.exec(T),n="";for(;t;){n+=T.substring(e,t.index);const i=_.case_insensitive?t[0].toLowerCase():t[0],r=c(S,i);if(r){const[e,a]=r;if(N.addText(n),n="",l[i]=(l[i]||0)+1,l[i]<=7&&(I+=a),e.startsWith("_"))n+=t[0];else{const n=_.classNameAliases[e]||e;h(t[0],n)}}else n+=t[0];e=S.keywordPatternRe.lastIndex,t=S.keywordPatternRe.exec(T)}n+=T.substring(e),N.addText(n)}function u(){null!=S.subLanguage?function(){if(""===T)return;let e=null;if("string"==typeof S.subLanguage){if(!i[S.subLanguage])return void N.addText(T);e=y(S.subLanguage,T,!0,D[S.subLanguage]),D[S.subLanguage]=e._top}else e=v(T,S.subLanguage.length?S.subLanguage:null);S.relevance>0&&(I+=e.relevance),N.__addSublanguage(e._emitter,e.language)}():d(),T=""}function h(e,t){""!==e&&(N.startScope(t),N.addText(e),N.endScope())}function p(e,t){let n=1;const i=t.length-1;for(;n<=i;){if(!e._emit[n]){n++;continue}const i=_.classNameAliases[e[n]]||e[n],r=t[n];i?h(r,i):(T=r,d(),T=""),n++}}function m(e,t){return e.scope&&"string"==typeof e.scope&&N.openNode(_.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(h(T,_.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),T=""):e.beginScope._multi&&(p(e.beginScope,t),T="")),S=Object.create(e,{parent:{value:S}}),S}function g(e,n,i){let r=function(e,t){const n=e&&e.exec(t);return n&&0===n.index}(e.endRe,i);if(r){if(e["on:end"]){const i=new t(e);e["on:end"](n,i),i.isMatchIgnored&&(r=!1)}if(r){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return g(e.parent,n,i)}function b(e){return 0===S.matcher.regexIndex?(T+=e[0],1):(z=!0,0)}function w(e){const t=e[0],i=n.substring(e.index),r=g(S,e,i);if(!r)return se;const a=S;S.endScope&&S.endScope._wrap?(u(),h(t,S.endScope._wrap)):S.endScope&&S.endScope._multi?(u(),p(S.endScope,e)):a.skip?T+=t:(a.returnEnd||a.excludeEnd||(T+=t),u(),a.excludeEnd&&(T=t));do{S.scope&&N.closeNode(),S.skip||S.subLanguage||(I+=S.relevance),S=S.parent}while(S!==r.parent);return r.starts&&m(r.starts,e),a.returnEnd?0:t.length}let x={};function E(i,a){const o=a&&a[0];if(T+=i,null==o)return u(),0;if("begin"===x.type&&"end"===a.type&&x.index===a.index&&""===o){if(T+=n.slice(a.index,a.index+1),!s){const t=new Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=x.rule,t}return 1}if(x=a,"begin"===a.type)return function(e){const n=e[0],i=e.rule,r=new t(i),a=[i.__beforeBegin,i["on:begin"]];for(const t of a)if(t&&(t(e,r),r.isMatchIgnored))return b(n);return i.skip?T+=n:(i.excludeBegin&&(T+=n),u(),i.returnBegin||i.excludeBegin||(T=n)),m(i,e),i.returnBegin?0:n.length}(a);if("illegal"===a.type&&!r){const e=new Error('Illegal lexeme "'+o+'" for mode "'+(S.scope||"<unnamed>")+'"');throw e.mode=S,e}if("end"===a.type){const e=w(a);if(e!==se)return e}if("illegal"===a.type&&""===o)return T+="\n",1;if(M>1e5&&M>3*a.index){throw new Error("potential infinite loop, way more iterations than matches")}return T+=o,o.length}const _=k(e);if(!_)throw G(o.replace("{}",e)),new Error('Unknown language: "'+e+'"');const C=te(_);let A="",S=a||C;const D={},N=new f.__emitter(f);!function(){const e=[];for(let t=S;t!==_;t=t.parent)t.scope&&e.unshift(t.scope);e.forEach(e=>N.openNode(e))}();let T="",I=0,L=0,M=0,z=!1;try{if(_.__emitTokens)_.__emitTokens(n,N);else{for(S.matcher.considerAll();;){M++,z?z=!1:S.matcher.considerAll(),S.matcher.lastIndex=L;const e=S.matcher.exec(n);if(!e)break;const t=E(n.substring(L,e.index),e);L=e.index+t}E(n.substring(L))}return N.finalize(),A=N.toHTML(),{language:e,value:A,relevance:I,illegal:!1,_emitter:N,_top:S}}catch(t){if(t.message&&t.message.includes("Illegal"))return{language:e,value:re(n),illegal:!0,relevance:0,_illegalBy:{message:t.message,index:L,context:n.slice(L-100,L+100),mode:t.mode,resultSoFar:A},_emitter:N};if(s)return{language:e,value:re(n),illegal:!1,relevance:0,errorRaised:t,_emitter:N,_top:S};throw t}}function v(e,t){t=t||f.languages||Object.keys(i);const n=function(e){const t={value:re(e),illegal:!1,relevance:0,_top:c,_emitter:new f.__emitter(f)};return t._emitter.addText(e),t}(e),r=t.filter(k).filter(C).map(t=>y(t,e,!1));r.unshift(n);const a=r.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(k(e.language).supersetOf===t.language)return 1;if(k(t.language).supersetOf===e.language)return-1}return 0}),[s,o]=a,l=s;return l.secondBest=o,l}function w(e){let t=null;const n=function(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const n=f.languageDetectRe.exec(t);if(n){const t=k(n[1]);return t||(X(o.replace("{}",n[1])),X("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}return t.split(/\s+/).find(e=>g(e)||k(e))}(e);if(g(n))return;if(A("before:highlightElement",{el:e,language:n}),e.dataset.highlighted)return void console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e);if(e.children.length>0&&(f.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(e)),f.throwUnescapedHTML)){throw new ie("One of your code blocks includes unescaped HTML.",e.innerHTML)}t=e;const i=t.textContent,a=n?b(i,{language:n,ignoreIllegals:!0}):v(i);e.innerHTML=a.value,e.dataset.highlighted="yes",function(e,t,n){const i=t&&r[t]||n;e.classList.add("hljs"),e.classList.add(`language-${i}`)}(e,n,a.language),e.result={language:a.language,re:a.relevance,relevance:a.relevance},a.secondBest&&(e.secondBest={language:a.secondBest.language,relevance:a.secondBest.relevance}),A("after:highlightElement",{el:e,result:a,text:i})}let x=!1;function E(){if("loading"===document.readyState)return x||window.addEventListener("DOMContentLoaded",function(){E()},!1),void(x=!0);document.querySelectorAll(f.cssSelector).forEach(w)}function k(e){return e=(e||"").toLowerCase(),i[e]||i[r[e]]}function _(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach(e=>{r[e.toLowerCase()]=t})}function C(e){const t=k(e);return t&&!t.disableAutodetect}function A(e,t){const n=e;a.forEach(function(e){e[n]&&e[n](t)})}Object.assign(n,{highlight:b,highlightAuto:v,highlightAll:E,highlightElement:w,highlightBlock:function(e){return J("10.7.0","highlightBlock will be removed entirely in v12.0"),J("10.7.0","Please use highlightElement now."),w(e)},configure:function(e){f=ae(f,e)},initHighlighting:()=>{E(),J("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:function(){E(),J("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:function(e,t){let r=null;try{r=t(n)}catch(t){if(G("Language definition for '{}' could not be registered.".replace("{}",e)),!s)throw t;G(t),r=c}r.name||(r.name=e),i[e]=r,r.rawDefinition=t.bind(null,n),r.aliases&&_(r.aliases,{languageName:e})},unregisterLanguage:function(e){delete i[e];for(const t of Object.keys(r))r[t]===e&&delete r[t]},listLanguages:function(){return Object.keys(i)},getLanguage:k,registerAliases:_,autoDetection:C,inherit:ae,addPlugin:function(e){!function(e){e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{e["before:highlightBlock"](Object.assign({block:t.el},t))}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{e["after:highlightBlock"](Object.assign({block:t.el},t))})}(e),a.push(e)},removePlugin:function(e){const t=a.indexOf(e);-1!==t&&a.splice(t,1)}}),n.debugMode=function(){s=!1},n.safeMode=function(){s=!0},n.versionString="11.11.1",n.regex={concat:p,lookahead:d,either:m,optional:h,anyNumberOfTimes:u};for(const t in O)"object"==typeof O[t]&&e(O[t]);return Object.assign(n,O),n},le=oe({});return le.newInstance=()=>oe({}),Ni=le,le.HighlightJS=le,le.default=le,Ni}Si.prototype.set=function(e){return kt(this.options,e),this},Si.prototype.configure=function(e){const t=this;if(xt(e)){const t=e;if(!(e=wi[t]))throw new Error('Wrong `markdown-it` preset "'+t+'", 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},Si.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const i=e.filter(function(e){return n.indexOf(e)<0});if(i.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+i);return this},Si.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const i=e.filter(function(e){return n.indexOf(e)<0});if(i.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+i);return this},Si.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Si.prototype.parse=function(e,t){if("string"!=typeof e)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},Si.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Si.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Si.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var Li=Di(Ii());const Mi="[A-Za-z$_][0-9A-Za-z$_]*",zi=["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"],Fi=["true","false","null","undefined","NaN","Infinity"],Bi=["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"],Oi=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Ri=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],$i=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],ji=[].concat(Ri,Bi,Oi);const Pi="[A-Za-z$_][0-9A-Za-z$_]*",Hi=["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"],qi=["true","false","null","undefined","NaN","Infinity"],Vi=["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"],Ui=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Zi=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Wi=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Ki=[].concat(Zi,Vi,Ui);function Gi(e){const t=e.regex,n=Pi,i="<>",r="</>",a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{const n=e[0].length+e.index,i=e.input[n];if("<"===i||","===i)return void t.ignoreMatch();let r;">"===i&&(((e,{after:t})=>{const n="</"+e[0].slice(1);return-1!==e.input.indexOf(n,t)})(e,{after:n})||t.ignoreMatch());const a=e.input.substring(n);((r=a.match(/^\s*=/))||(r=a.match(/^\s+extends\s+/))&&0===r.index)&&t.ignoreMatch()}},s={$pattern:Pi,keyword:Hi,literal:qi,built_in:Ki,"variable.language":Wi},o="[0-9](_?[0-9])*",l=`\\.(${o})`,c="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${c})((${l})|\\.)?|(${l}))[eE][+-]?(${o})\\b`},{begin:`\\b(${c})\\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},u={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},h={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,u],subLanguage:"xml"}},p={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,u],subLanguage:"css"}},m={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,u],subLanguage:"graphql"}},f={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,u]},g={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:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},b=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,h,p,m,f,{match:/\$\d+/},d];u.contains=b.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(b)});const y=[].concat(g,u.contains),v=y.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:["self"].concat(y)}]),w={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:v},x={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,t.concat(n,"(",t.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},E={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:{_:[...Vi,...Ui]}},k={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[w],illegal:/%/};const _={match:t.concat(/\b/,function(e){return t.concat("(?!",e.join("|"),")")}([...Zi,"super","import"].map(e=>`${e}\\s*\\(`)),n,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},C={begin:t.concat(/\./,t.lookahead(t.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},A={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},w]},S="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",D={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(S)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[w]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:v,CLASS_REFERENCE:E},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,h,p,m,f,g,{match:/\$\d+/},d,E,{scope:"attr",match:n+t.lookahead(":"),relevance:0},D,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[g,e.REGEXP_MODE,{className:"function",begin:S,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:s,contains:v}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i,end:r},{match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},k,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[w,e.inherit(e.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},C,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[w]},_,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},x,A,{match:/\$[(.]/}]}}const Xi=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video","defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Ji=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Yi=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Qi=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),er=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();Li.registerLanguage("javascript",function(e){const t=e.regex,n=Mi,i="<>",r="</>",a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{const n=e[0].length+e.index,i=e.input[n];if("<"===i||","===i)return void t.ignoreMatch();let r;">"===i&&(((e,{after:t})=>{const n="</"+e[0].slice(1);return-1!==e.input.indexOf(n,t)})(e,{after:n})||t.ignoreMatch());const a=e.input.substring(n);((r=a.match(/^\s*=/))||(r=a.match(/^\s+extends\s+/))&&0===r.index)&&t.ignoreMatch()}},s={$pattern:Mi,keyword:zi,literal:Fi,built_in:ji,"variable.language":$i},o="[0-9](_?[0-9])*",l=`\\.(${o})`,c="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${c})((${l})|\\.)?|(${l}))[eE][+-]?(${o})\\b`},{begin:`\\b(${c})\\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},u={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},h={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,u],subLanguage:"xml"}},p={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,u],subLanguage:"css"}},m={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,u],subLanguage:"graphql"}},f={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,u]},g={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:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},b=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,h,p,m,f,{match:/\$\d+/},d];u.contains=b.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(b)});const y=[].concat(g,u.contains),v=y.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:["self"].concat(y)}]),w={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:v},x={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,t.concat(n,"(",t.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},E={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:{_:[...Bi,...Oi]}},k={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[w],illegal:/%/},_={match:t.concat(/\b/,function(e){return t.concat("(?!",e.join("|"),")")}([...Ri,"super","import"].map(e=>`${e}\\s*\\(`)),n,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},C={begin:t.concat(/\./,t.lookahead(t.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},A={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},w]},S="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",D={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(S)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[w]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:v,CLASS_REFERENCE:E},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,h,p,m,f,g,{match:/\$\d+/},d,E,{scope:"attr",match:n+t.lookahead(":"),relevance:0},D,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[g,e.REGEXP_MODE,{className:"function",begin:S,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:s,contains:v}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i,end:r},{match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},k,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[w,e.inherit(e.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},C,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[w]},_,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},x,A,{match:/\$[(.]/}]}}),Li.registerLanguage("typescript",function(e){const t=e.regex,n=Gi(e),i=Pi,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],a={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={$pattern:Pi,keyword:Hi.concat(["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"]),literal:qi,built_in:Ki.concat(r),"variable.language":Wi},l={className:"meta",begin:"@"+i},c=(e,t,n)=>{const i=e.contains.findIndex(e=>e.label===t);if(-1===i)throw new Error("can not find mode to replace");e.contains.splice(i,1,n)};Object.assign(n.keywords,o),n.exports.PARAMS_CONTAINS.push(l);const d=n.contains.find(e=>"attr"===e.scope),u=Object.assign({},d,{match:t.concat(i,t.lookahead(/\s*\?:/))});return n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,d,u]),n.contains=n.contains.concat([l,a,s,u]),c(n,"shebang",e.SHEBANG()),c(n,"use_strict",{className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/}),n.contains.find(e=>"func.def"===e.label).relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}),Li.registerLanguage("python",function(e){const t=e.regex,n=/[\p{XID_Start}_]\p{XID_Continue}*/u,i=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],r={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:i,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","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","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"]},a={className:"meta",begin:/^(>>>|\.\.\.) /},s={className:"subst",begin:/\{/,end:/\}/,keywords:r,illegal:/#/},o={begin:/\{\{/,relevance:0},l={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,a],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,a],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,a,o,s]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,a,o,s]},{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:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,o,s]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,o,s]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},c="[0-9](_?[0-9])*",d=`(\\b(${c}))?\\.(${c})|\\b(${c})\\.`,u=`\\b|${i.join("|")}`,h={className:"number",relevance:0,variants:[{begin:`(\\b(${c})|(${d}))[eE][+-]?(${c})[jJ]?(?=${u})`},{begin:`(${d})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${u})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${u})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${u})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${u})`},{begin:`\\b(${c})[jJ](?=${u})`}]},p={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:r,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},m={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:r,contains:["self",a,h,l,e.HASH_COMMENT_MODE]}]};return s.contains=[l,h,a],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:r,illegal:/(<\/|\?)|=>/,contains:[a,h,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},l,p,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[m]},{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:[h,m,l]}]}}),Li.registerLanguage("json",function(e){const t=["true","false","null"],n={scope:"literal",beginKeywords:t.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:t},contains:[{className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},{match:/[{}[\],:]/,className:"punctuation",relevance:0},e.QUOTE_STRING_MODE,n,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}),Li.registerLanguage("yaml",function(e){const t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",i={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,{className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]}]},r=e.inherit(i,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),a={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"},s={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},o={begin:/\{/,end:/\}/,contains:[s],illegal:"\\n",relevance:0},l={begin:"\\[",end:"\\]",contains:[s],illegal:"\\n",relevance:0},c=[{className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},{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}},a,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},o,l,{className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},i],d=[...c];return d.pop(),d.push(r),s.contains=d,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:c}}),Li.registerLanguage("bash",function(e){const t=e.regex,n={},i={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},i]});const r={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},a=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 l={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},c=e.SHEBANG({binary:`(${["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"].join("|")})`,relevance:10}),d={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],literal:["true","false"],built_in:["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset","alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias","set","shopt","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","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"]},contains:[c,e.SHEBANG(),d,l,a,s,{match:/(\/[a-z._-]+)+/},o,{match:/\\"/},{className:"string",begin:/'/,end:/'/},{match:/\\'/},n]}}),Li.registerLanguage("xml",function(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},r={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=e.inherit(r,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:"string"}),o=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:/[\p{L}0-9._:-]+/u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{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:[r,o,s,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[r,a,o,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[o]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{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}]}]}}),Li.registerLanguage("css",function(e){const t=e.regex,n=(e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}))(e),i=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,{begin:/-(webkit|moz|ms|o)-(?=[a-z])/},n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\.[a-zA-Z-][a-zA-Z0-9_-]*",relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Yi.join("|")+")"},{begin:":(:)?("+Qi.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+er.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...i,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...i,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:/@-?\w[\w]*(-\w+)*/},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:"and or not only",attribute:Ji.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...i,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Xi.join("|")+")\\b"}]}}),Li.registerLanguage("sql",function(e){const t=e.regex,n=e.COMMENT("--","$"),i=["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"],r=i,a=["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","add","asc","collation","desc","final","first","last","view"].filter(e=>!i.includes(e)),s={match:t.concat(/\b/,t.either(...r),/\s*\(/),relevance:0,keywords:{built_in:r}};function o(e){return t.concat(/\b/,t.either(...e.map(e=>e.replace(/\s+/,"\\s+"))),/\b/)}const l={scope:"keyword",match:o(["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"]),relevance:0};return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:function(e,{exceptions:t,when:n}={}){const i=n;return t=t||[],e.map(e=>e.match(/\|\d+$/)||t.includes(e)?e:i(e)?`${e}|0`:e)}(a,{when:e=>e.length<3}),literal:["true","false","unknown"],type:["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"],built_in:["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"]},contains:[{scope:"type",match:o(["double precision","large object","with timezone","without timezone"])},l,s,{scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},{scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},{begin:/"/,end:/"/,contains:[{match:/""/}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,{scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0}]}}),Li.registerLanguage("markdown",function(e){const t={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},n={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:e.regex.concat(/\[.+?\]\(/,/[A-Za-z][A-Za-z0-9+.-]*/,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},i={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},r={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},a=e.inherit(i,{contains:[]}),s=e.inherit(r,{contains:[]});i.contains.push(s),r.contains.push(a);let o=[t,n];return[i,r,a,s].forEach(e=>{e.contains=e.contains.concat(o)}),o=o.concat(i,r),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:o},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:o}]}]},t,{className:"bullet",begin:"^[ \t]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},i,r,{className:"quote",begin:"^>\\s+",contains:o,end:"$"},{className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},{begin:"^[-\\*]{3,}",end:"$"},n,{begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}),Li.registerLanguage("diff",function(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}});const tr={js:"javascript",jsx:"javascript",mjs:"javascript",ts:"typescript",tsx:"typescript",py:"python",yml:"yaml",sh:"bash",shell:"bash",zsh:"bash",html:"xml",htm:"xml",md:"markdown"};function nr(e,t){const n=new Si({html:t,linkify:!0,breaks:!0,highlight:e?(e,t)=>{const n=function(e){const t=(e||"").trim().toLowerCase();if(!t)return;const n=tr[t]??t;return Li.getLanguage(n)?n:void 0}(t);if(n)try{return Li.highlight(e,{language:n,ignoreIllegals:!0}).value}catch{}return""}:void 0});return n}const ir=new Map;const rr={ActivityBar:O,AppBar:q,Statusbar:V,View:re,Views:le,KeyboardShortcuts:ce,Layout:me,ContentTabs:be,PanelTabs:ke,PanelContainers:Ce,PanelLayout:{manager:Me},Profile:n,Markdown:{render:function(e,t){return function(e,t){const n=`${e}|${t}`;let i=ir.get(n);return i||(i=nr(e,t),ir.set(n,i)),i}(!1!==t?.highlight,!0===t?.html).render(String(e??""))},css:'.pnc-md { font-size: 14px; line-height: 1.65; word-break: break-word; }\n.pnc-md p { margin: 0 0 8px; }\n.pnc-md p:last-child { margin-bottom: 0; }\n.pnc-md h1, .pnc-md h2, .pnc-md h3,\n.pnc-md h4, .pnc-md h5, .pnc-md h6 {\n margin: 14px 0 6px;\n line-height: 1.3;\n font-weight: 600;\n}\n.pnc-md h1 { font-size: 1.4em; }\n.pnc-md h2 { font-size: 1.25em; }\n.pnc-md h3 { font-size: 1.12em; }\n.pnc-md h4 { font-size: 1em; }\n.pnc-md h5, .pnc-md h6 { font-size: 0.92em; color: var(--text-secondary, #9aa0a6); }\n.pnc-md ul, .pnc-md ol { margin: 0 0 8px; padding-left: 22px; }\n.pnc-md li { margin: 2px 0; }\n.pnc-md li:last-child { margin-bottom: 0; }\n.pnc-md a { color: var(--primary-main, #6ea8fe); text-decoration: underline; }\n.pnc-md blockquote {\n margin: 6px 0;\n padding: 2px 0 2px 12px;\n border-left: 3px solid var(--neutral-main, rgba(127, 127, 127, 0.35));\n color: var(--text-secondary, #9aa0a6);\n}\n.pnc-md table {\n border-collapse: collapse;\n margin: 8px 0;\n font-size: 13px;\n display: block;\n overflow-x: auto;\n}\n.pnc-md th, .pnc-md td {\n border: 1px solid var(--neutral-main, rgba(127, 127, 127, 0.3));\n padding: 4px 8px;\n text-align: left;\n}\n.pnc-md th { background: rgba(127, 127, 127, 0.12); font-weight: 600; }\n\n/* Inline code */\n.pnc-md code {\n font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);\n font-size: 0.92em;\n padding: 1px 5px;\n border-radius: 5px;\n background: rgba(127, 127, 127, 0.16);\n}\n\n/* Fenced code block — fixed dark surface (One Dark), independent of app theme */\n.pnc-md pre {\n margin: 6px 0 10px;\n border-radius: 8px;\n overflow: hidden;\n background: #282c34;\n border: 1px solid rgba(127, 127, 127, 0.28);\n}\n.pnc-md pre code {\n display: block;\n padding: 12px 14px;\n overflow-x: auto;\n background: none;\n border-radius: 0;\n font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);\n font-size: 12.5px;\n line-height: 1.55;\n color: #abb2bf;\n white-space: pre;\n}\n\n/* Code-block chrome (extension-added): top bar with language + copy button */\n.pnc-md-code { position: relative; }\n.pnc-md-code__bar {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 4px 10px;\n background: #21252b;\n border-bottom: 1px solid rgba(127, 127, 127, 0.28);\n font-size: 11px;\n}\n.pnc-md-code__lang {\n color: #7f848e;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n}\n.pnc-md-code__copy {\n border: none;\n background: transparent;\n color: #abb2bf;\n cursor: pointer;\n font-size: 11px;\n padding: 2px 6px;\n border-radius: 4px;\n}\n.pnc-md-code__copy:hover { background: rgba(127, 127, 127, 0.2); }\n.pnc-md-code__copy--done { color: #98c379; }\n\n/* highlight.js — One Dark palette (matches the editor\'s code coloring) */\n.hljs-comment, .hljs-quote { color: #5c6370; font-style: italic; }\n.hljs-keyword, .hljs-selector-tag, .hljs-literal,\n.hljs-doctag, .hljs-name { color: #c678dd; }\n.hljs-built_in, .hljs-class .hljs-title, .hljs-title.class_,\n.hljs-attr, .hljs-attribute { color: #e5c07b; }\n.hljs-string, .hljs-symbol, .hljs-bullet,\n.hljs-addition, .hljs-regexp { color: #98c379; }\n.hljs-number, .hljs-meta .hljs-number { color: #d19a66; }\n.hljs-title, .hljs-title.function_, .hljs-section { color: #61afef; }\n.hljs-variable, .hljs-template-variable, .hljs-tag,\n.hljs-selector-id, .hljs-selector-class { color: #e06c75; }\n.hljs-meta, .hljs-comment .hljs-doctag { color: #56b6c2; }\n.hljs-deletion { color: #e06c75; }\n.hljs-emphasis { font-style: italic; }\n.hljs-strong { font-weight: 600; }\n\n/* Bootstrap alert callouts — the Jupyter convention for notebook markdown\n cells (`<div class="alert alert-info">`). Deliberately light-filled even in\n the dark app theme: the notebook author picked these colors, and Jupyter\n renders them this way everywhere. */\n.pnc-md .alert {\n margin: 10px 0;\n padding: 12px 16px;\n border: 1px solid transparent;\n border-radius: 6px;\n}\n.pnc-md .alert-success { background: #dff0d8; border-color: #d6e9c6; color: #3c763d; }\n.pnc-md .alert-info { background: #d9edf7; border-color: #bce8f1; color: #31708f; }\n.pnc-md .alert-warning { background: #fcf8e3; border-color: #faebcc; color: #8a6d3b; }\n.pnc-md .alert-danger { background: #f2dede; border-color: #ebccd1; color: #a94442; }\n\n/* Inside a light-filled callout the app-theme colors are unreadable: the link\n blue and the translucent grey code background both assume a dark surface. */\n.pnc-md .alert h1, .pnc-md .alert h2, .pnc-md .alert h3,\n.pnc-md .alert h4, .pnc-md .alert h5, .pnc-md .alert h6,\n.pnc-md .alert strong, .pnc-md .alert li, .pnc-md .alert p {\n color: inherit;\n}\n.pnc-md .alert a { color: inherit; text-decoration: underline; }\n.pnc-md .alert code {\n background: rgba(0, 0, 0, 0.07);\n color: inherit;\n}\n.pnc-md .alert blockquote {\n border-left-color: currentColor;\n color: inherit;\n}\n.pnc-md .alert > :first-child { margin-top: 0; }\n.pnc-md .alert > :last-child { margin-bottom: 0; }\n'}};class ar{name=i.SHELL.ACTIVITY_BAR;version="1.0.0";dependencies=[i.KERNEL.COMMANDS,i.RUNTIME.WORKSPACE];#Wt=r.CREATED;get state(){return this.#Wt}async bootstrap(e){const{punica:t,registry:n}=e,a=n.getState(i.KERNEL.COMMANDS),s=n.getState(i.RUNTIME.WORKSPACE);if(a!==r.BOOTSTRAPPED)throw new Error("kernel.commands must be bootstrapped before shell.activityBar");if(s!==r.BOOTSTRAPPED)throw new Error("runtime.workspace must be bootstrapped before shell.activityBar");if(!t.shell?.ActivityBar?.manager)throw new Error("ActivityBar manager not available")}async start(e){u.init()}}class sr{name="shell.appBar";version="1.0.0";dependencies=[i.KERNEL.COMMANDS,i.SHELL.LAYOUT];#Wt=r.CREATED;get state(){return this.#Wt}async bootstrap(e){const{punica:t,registry:n}=e;if(n.getState(i.KERNEL.COMMANDS)!==r.BOOTSTRAPPED)throw new Error("kernel.commands must be bootstrapped before shell.appBar");if(!t.shell?.Layout?.manager)throw new Error("Layout manager not available")}async start(e){const{punica:t}=e;let n;try{n=t.shell?.Profile?.manager?.registry?.getActive?.()?.shell?.appBar}catch{n=void 0}q.manager.init(n)}}class or{name=i.SHELL.STATUSBAR;version="1.0.0";dependencies=[i.KERNEL.EVENTS];#Wt=r.CREATED;get state(){return this.#Wt}async bootstrap(e){const{punica:t,registry:n}=e;if(n.getState(i.KERNEL.EVENTS)!==r.BOOTSTRAPPED)throw new Error("kernel.events must be bootstrapped before shell.statusbar");if(!t.shell?.Statusbar?.manager)throw new Error("Statusbar manager not available")}async start(e){}}class lr{name=i.SHELL.VIEW;version="1.0.0";dependencies=[i.KERNEL.COMMANDS];#Wt=r.CREATED;get state(){return this.#Wt}async bootstrap(e){const{punica:t,registry:n}=e;if(n.getState(i.KERNEL.COMMANDS)!==r.BOOTSTRAPPED)throw new Error("kernel.commands must be bootstrapped before shell.view");if(!t.shell?.View)throw new Error("View API not available")}async start(e){const{punica:t}=e;if(x(),t.shell?.View?.Theme?.manager)try{await t.shell.View.Theme.manager.initialize(),console.log("[ViewModule] Theme manager initialized")}catch(e){console.error("[ViewModule] Failed to initialize theme manager:",e)}}}class cr{name=i.SHELL.VIEWS;version="1.0.0";dependencies=[i.SHELL.LAYOUT,i.KERNEL.COMMANDS];#Wt=r.CREATED;get state(){return this.#Wt}async bootstrap(e){const{punica:t,registry:n}=e;if(n.getState(i.SHELL.LAYOUT)!==r.BOOTSTRAPPED)throw new Error("shell.layout must be bootstrapped before shell.views");if(!t.shell?.Views?.manager)throw new Error("Views API not available")}async start(e){}}class dr{name=i.SHELL.KEYBOARD_SHORTCUTS;version="1.0.0";dependencies=[i.KERNEL.COMMANDS];#Wt=r.CREATED;get state(){return this.#Wt}async bootstrap(e){const{punica:t,registry:n}=e;if(n.getState(i.KERNEL.COMMANDS)!==r.BOOTSTRAPPED)throw new Error("kernel.commands must be bootstrapped before shell.keyboardShortcuts");if(!t.shell?.KeyboardShortcuts?.manager)throw new Error("KeyboardShortcuts manager not available")}async start(e){!function(){const e=globalThis.punica?.shell?.KeyboardShortcuts?.manager;if(!e)return;const t=(t,n,i)=>{e.registerShortcut({command:n,keys:[s(t)],when:i})};t("mod+j",a.SHELL.TOGGLE_PANEL),t("mod+b",a.SHELL.TOGGLE_PRIMARY_SIDEBAR),t("mod+l",a.SHELL.TOGGLE_SECONDARY_SIDEBAR)}()}}class ur{name=i.SHELL.LAYOUT;version="1.0.0";dependencies=[i.KERNEL.COMMANDS,i.RUNTIME.WORKSPACE];#Wt=r.CREATED;get state(){return this.#Wt}async bootstrap(e){const{punica:t,registry:n}=e,a=n.getState(i.KERNEL.COMMANDS),s=n.getState(i.RUNTIME.WORKSPACE);if(a!==r.BOOTSTRAPPED)throw new Error("kernel.commands must be bootstrapped before shell.layout");if(s!==r.BOOTSTRAPPED)throw new Error("runtime.workspace must be bootstrapped before shell.layout");if(!t.shell?.Layout?.manager)throw new Error("Layout manager not available")}async start(e){}}class hr{name=i.SHELL.CONTENT_TABS;version="1.0.0";dependencies=[i.KERNEL.COMMANDS];#Wt=r.CREATED;get state(){return this.#Wt}async bootstrap(e){const{punica:t,registry:n}=e;if(n.getState(i.KERNEL.COMMANDS)!==r.BOOTSTRAPPED)throw new Error("kernel.commands must be bootstrapped before shell.contentTabs");if(!t.shell?.ContentTabs)throw new Error("ContentTabs API not available")}async start(e){const{punica:t}=e;t.runtime.fileOperations?.registerParticipant({id:"shell.contentTabs",didRename:({oldPath:e,newPath:n})=>{t.shell.ContentTabs.rename(e,n)},didDelete:({path:e})=>{t.shell.ContentTabs.forceClose(e)}})}}class pr{name=i.SHELL.PANEL_TABS;version="1.0.0";dependencies=[i.KERNEL.COMMANDS];#Wt=r.CREATED;get state(){return this.#Wt}async bootstrap(e){const{punica:t,registry:n}=e;if(n.getState(i.KERNEL.COMMANDS)!==r.BOOTSTRAPPED)throw new Error("kernel.commands must be bootstrapped before shell.panelTabs");if(!t.shell?.PanelTabs)throw new Error("PanelTabs API not available")}async start(e){}}class mr{name=i.SHELL.PANEL_LAYOUT;version="1.0.0";dependencies=[i.KERNEL.COMMANDS];#Wt=r.CREATED;get state(){return this.#Wt}async bootstrap(e){const{punica:t}=e;if(!t.shell?.PanelLayout?.manager)throw new Error("PanelLayout API not available")}async start(e){try{await e.punica.shell.PanelLayout.manager.load()}catch(e){console.warn("[PanelLayout] load during start failed",e)}}}const fr=["<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 99.21 99.21'>","<circle cx='49.61' cy='49.61' r='49.61' fill='#0870fd'/>","<g fill='none' stroke='#fff' stroke-width='5' stroke-miterlimit='10' stroke-linecap='round'>","<path d='M86.3,53.2c.13-1.24.19-2.5.19-3.77,0-20.37-16.51-36.88-36.88-36.88-8.01,0-15.42,2.55-21.47,6.89l.14-.08c-2.19,1.49-2.76,4.48-1.27,6.67s4.48,2.76,6.67,1.27c0,0,14.81-10.43,30.03-.12l.14.08-.14-.08c2.19,1.49,2.76,4.48,1.27,6.67-1.49,2.19-4.48,2.76-6.67,1.27,0,0-10.17-7.22-19.87,1.26'/>","<circle cx='34.55' cy='40.56' r='4.96' fill='#fff'/>","<circle cx='13.8' cy='40.56' r='4.96' fill='#fff'/>","<circle cx='66.75' cy='58.16' r='4.96' opacity='.99'/>","<circle cx='85.41' cy='58.16' r='4.96' opacity='.99'/>","<path d='M13.99,46.01c-.13,1.24-.19,2.5-.19,3.77,0,20.37,16.51,36.88,36.88,36.88,8.01,0,15.42-2.55,21.47-6.89l-.14.08c2.19-1.49,2.76-4.48,1.27-6.67-1.49-2.19-4.48-2.76-6.67-1.27,0,0-14.81,10.43-30.03.12l-.14-.08.14.08c-2.19-1.49-2.76-4.48-1.27-6.67s4.48-2.76,6.67-1.27c0,0,10.17,7.22,19.87-1.26'/>","</g></svg>"].join(""),gr={schemaVersion:"1",identity:{id:"ivyx-classic",name:"ivyx",version:"1.0.0",audience:"ml-engineer",branding:{productName:"IVYX Studio",logo:`data:image/svg+xml,${encodeURIComponent(fr)}`}},shell:{activeModules:["shell.activityBar","shell.statusbar","shell.view","shell.keyboardShortcuts","shell.layout","shell.views","shell.appBar","shell.contentTabs","shell.panelTabs","shell.panelLayout","flow.shell"],layout:{id:"classic-editor",root:{type:"row",sizes:[70,30],children:[{type:"column",sizes:[80,20],children:[{type:"slot",id:"content",role:"content"},{type:"slot",id:"panel",role:"panel"}]},{type:"slot",id:"secondarySidebar",role:"secondarySidebar"}]}},appBar:{height:30,title:"workspace",items:[]}},theme:{mode:"auto",density:"comfortable",branding:{productName:"IVYX Studio"}},capabilities:{allowedIds:"*"},localization:{default:"en",supported:["en","tr"]}},br={schemaVersion:"1",identity:{id:"agent-ops-console",name:"Agent Ops Console",version:"1.0.0",audience:"compliance-officer",branding:{productName:"Agent Ops Console"}},shell:{activeModules:["shell.statusbar","shell.view","shell.layout","shell.views","shell.contentTabs"],layout:{id:"agent-ops-dashboard",root:{type:"column",sizes:[100],children:[{type:"slot",id:"content",role:"content"}]}}},theme:{mode:"dark",density:"compact",branding:{productName:"Agent Ops Console"}},capabilities:{allowedIds:["capability.catalog","capability.schemaExport","event.query","event.replay","llm.listProviders","workspace.get","fs.read","fs.stat","fs.exists","fs.list","fs.snapshot","approval.grant","approval.revoke","delegation.create","flow.validate","cost.report"],deniedIds:["fs.write","fs.delete","fs.copy","fs.migrate","fs.restore","workspace.create","workspace.delete","secrets.set","secrets.delete","vcs.commit","vcs.push"],allowedOrigins:["core","extension","instruction-class"]}};function yr(){o({facade:rr,moduleFactories:{"shell.statusbar":()=>new or,"shell.view":()=>new lr,"shell.views":()=>new cr,"shell.keyboardShortcuts":()=>new dr,"shell.contentTabs":()=>new hr,"shell.panelTabs":()=>new pr,"shell.panelLayout":()=>new mr,"shell.layout":()=>new ur,"shell.activityBar":()=>new ar,"shell.appBar":()=>new sr},profiles:[gr,br],defaultProfileId:"ivyx-classic"})}export{yr as registerClassicShell};
|
|
2
2
|
//# sourceMappingURL=index.bundle.esm.js.map
|