@punica/editor-shell-classic 1.5.1 → 1.6.1

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.
@@ -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 s,parseKeyChord as a,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;#s=null;#a=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.#a=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.#a?.()),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.#s){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.#s=e}this.#s.parentElement!==e&&e.appendChild(this.#s),this.#s.style.display=this.#n?"block":"none"}#v(){const e=this.#s?.parentElement;e&&this.#s&&e.removeChild(this.#s)}#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.#s?.setPointerCapture?.(e.pointerId)}catch{}let i=null,r=null;const s="function"==typeof requestAnimationFrame?requestAnimationFrame:null,a=()=>{if(r=null,null===i)return;const e=i;i=null,this.#E(e,!1)},o=e=>{i=e.clientX-t,s?null===r&&(r=s(a)):a()},l=()=>{window.removeEventListener("pointermove",o),window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",l),null!==r&&"function"==typeof cancelAnimationFrame&&(cancelAnimationFrame(r),r=null),a(),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){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 v="punica-secret-adornment-styles";function w(){if("undefined"==typeof document)return;if(document.getElementById(v))return;const e=document.createElement("style");e.id=v,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 x="punica-search-adornment-styles";const E="punica-list-view-item-styles";const k="punica-card-styles";function _(){if("undefined"==typeof document)return;if(document.getElementById(k))return;const e=document.createElement("style");e.id=k,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-capability-styles";function C(e,t,n){const i=document.createElement("span");i.className=`json-view-${n}`,i.textContent=t,e.appendChild(i)}function S(e,t,n){const i=" ".repeat(n);if(null===t)return C(e,"null","null");if("boolean"==typeof t)return C(e,String(t),"boolean");if("number"==typeof t)return C(e,String(t),"number");if("string"==typeof t)return C(e,JSON.stringify(t),"string");if(Array.isArray(t))return e.appendChild(document.createTextNode("[\n")),t.forEach((r,s)=>{e.appendChild(document.createTextNode(`${i} `)),S(e,r,n+1),s<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((s,a)=>{e.appendChild(document.createTextNode(`${i} `)),C(e,JSON.stringify(s),"key"),e.appendChild(document.createTextNode(": ")),S(e,t[s],n+1),a<r.length-1&&e.appendChild(document.createTextNode(",")),e.appendChild(document.createTextNode("\n"))}),e.appendChild(document.createTextNode(`${i}}`))}}function D(e){const t=document.createElement("pre");return t.className="json-view cap-schema-code",S(t,e,0),t}function N(e){const t=document.createElement("div");return t.className="cap-detail-section",t.textContent=e,t}function T(e){const t=document.createElement("div");return t.className="cap-detail-meta cap-detail-note",t.textContent=e,t}function I(e,t){const n=document.createElement("span");return n.className=`cap-pill cap-pill-${t}`,n.textContent=e,n}function L(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 s=document.createElement("div");if(s.className="cap-detail-meta",s.textContent=i.join(" · "),e.appendChild(s),e.appendChild(N("Inputs")),t.inputs?.schema?e.appendChild(D(t.inputs.schema)):e.appendChild(T("This capability takes no input parameters.")),e.appendChild(N("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(T("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(N("Result payload")),e.appendChild(D(n.schema))):e.appendChild(T("Result payload shape is not documented."))}else e.appendChild(T("No outputs declared."));if(t.tags&&t.tags.length>0){e.appendChild(N("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 a=document.createElement("button");a.type="button",a.className="cap-detail-raw-toggle",a.textContent="Show raw definition";const o=D(t);o.style.display="none",a.addEventListener("click",()=>{const e="none"===o.style.display;o.style.display=e?"block":"none",a.textContent=e?"Hide raw definition":"Show raw definition"}),e.appendChild(N("Raw")),e.appendChild(a),e.appendChild(o)}const M={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){_();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){_();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},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(A))return;const e=document.createElement("style");e.id=A,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 s=document.createElement("div");if(s.className="cap-row-head",i){s.setAttribute("role","button"),s.setAttribute("tabindex","0");const e=document.createElement("i");e.className="cap-row-chevron fa-solid fa-chevron-right",s.appendChild(e)}const a=document.createElement("div");a.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(a.appendChild(o),e.description){const t=document.createElement("div");t.className="cap-row-desc",t.textContent=e.description,a.appendChild(t)}s.appendChild(a);const c=document.createElement("div");c.className="cap-row-badges";const d=e.policy?.risk;d&&c.appendChild(I(d,`risk-${d}`));const u=e.policy?.approval;u&&"none"!==u&&c.appendChild(I(u,"approval")),s.appendChild(c),r.appendChild(s);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,L(h,e,n))};n.open&&(i(),r.classList.add("expanded"));const a=()=>{const e="none"===h.style.display;e&&i(),h.style.display=e?"block":"none",r.classList.toggle("expanded",e)};s.addEventListener("click",a),s.addEventListener("keydown",e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),a())})}else L(h,e,n);return r},createButton:function(e,t,n){const i=document.createElement("punica-button");if(e.includes("<")||e.includes("&lt;")?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},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:y,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")&&(w(),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(x))return;const e=document.createElement("style");e.id=x,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},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(E))return;const e=document.createElement("style");e.id=E,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=y(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,s=i.width,a=i.height;e.setAttribute("top",String(i.top)),e.setAttribute("left",String(i.left)),e.setAttribute("width",String(s??0)),e.setAttribute("height",String(a??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 F=e=>`activity-group-${e}`;const z={manager:new class{#A=new Map;#C=new Map;#S=null;#D=null;#N;#T;#I;#L=new Map;#M=0;#F=new Map;#z=new Map;#O(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 s=null;for(const t of Array.from(e.children)){const e=this.#L.get(t.id);if(void 0!==e&&e>i){s=t;break}}e.insertBefore(t,s)}#B(){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.#A.values())if(t.viewId===e)return void this.#$(t.id);for(const t of this.#C.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 s=n.punica?.kernel?.Events?.manager,a=s?.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:a},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.#C.values())if(t.contentViewType===e)return t;for(const t of this.#A.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?F(t):e}#V(e){return this.#A.get(e)??this.#C.get(e)}#U(e){const t=[];for(const n of this.#A.values())n.group?.id===e&&t.push(n);for(const n of this.#C.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()}}#K(e,t,n,i){const r=M.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}#W(e){const t=F(e),n=this.#U(e);if(0===n.length)return this.#T?.querySelector("#"+t)?.remove(),this.#I?.querySelector("#"+t)?.remove(),this.#z.get(e)?.remove(),this.#z.delete(e),void this.#F.delete(e);const i="primary"===n[0].alignment?this.#T:this.#I,r=this.#F.get(e)??{},s=1===n.length?n[0]:null,a=this.#K(t,s?s.icon:r.icon??n[0].icon,s?s.title:r.title??e,()=>{s?this.#Z(s):this.#G(e,a)});this.#O(i,a,t);const o=this.#D??this.#S;o&&n.some(e=>e.id===o)&&a.classList.add("extension-is-active")}#G(e,t){let n=this.#z.get(e);n||(n=M.createMenu({attrs:{id:`${F(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.#z.set(e,n)),n.innerHTML="";const i=this.#D??this.#S;for(const t of this.#U(e))n.appendChild(M.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>"}));M.openMenuAt(n,{anchor:t,placement:"right"})}addItem(e){this.#N||this.#B();const t="primary"===e.alignment;(t?this.#A:this.#C).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.#F.has(n)||this.#F.set(n,{title:e.group?.title,icon:e.group?.icon}),void this.#W(n);const i=this.#K(e.id,e.icon,e.title,()=>this.#Z(e)),r=t?this.#T:this.#I;this.#O(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.#A.delete(e),this.#C.delete(e),void this.#W(t);if(this.#A.has(e)){const t=this.#T.querySelector("#"+e);t&&(this.#T.removeChild(t),this.#A.delete(e))}else if(this.#C.has(e)){const t=this.#I.querySelector("#"+e);t&&(this.#I.removeChild(t),this.#C.delete(e))}}}};const O="punica-appbar",B="shell-classic-appbar-style";function R(){try{const e=punica.kernel.Commands.manager.getAllCommands?.()??[];return new Set(e.map(e=>e.id))}catch{return new Set}}function $(e,t){return!!t&&(0===e.size||e.has(t))}function j(e){try{punica.kernel.Commands.manager.executeCommand(e)}catch(t){console.error("[AppBar] Failed to execute command",e,t)}}const P={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(B))return;const e=document.createElement("style");e.id=B,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/* Quieter than the workspace title on purpose. The product name never changes\n and the logo 8px to its left already says it; the workspace is the one piece\n of state on the bar, so it gets the weight. */\n#punica-appbar .appbar-brand {\n font-weight: 500;\n opacity: 0.72;\n white-space: nowrap;\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(O);e||(e=document.createElement("div"),e.id=O,document.body.appendChild(e)),e.innerHTML="",this.#X=e,this.#J=this.#se("appbar-region-left"),this.#Y=this.#se("appbar-region-center"),this.#Q=this.#se("appbar-region-right"),e.append(this.#J,this.#Y,this.#Q)}#se(e){const t=document.createElement("div");return t.className=`appbar-region ${e}`,t}async#ie(){const e=this.#ae(),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&&!e)return null;const n=document.createElement("div");if(n.className="appbar-branding",e&&(n.title=e),t){const i=document.createElement("img");i.className="appbar-logo",i.src=t,i.alt=e??"";const r=document.createElement("span");r.className="appbar-mark",r.appendChild(i),n.appendChild(r)}if(e){const t=document.createElement("div");t.className="appbar-brand",t.textContent=e,n.appendChild(t)}return n}#le(){try{return punica.shell.Profile.manager.registry.getActive()?.identity?.branding}catch{return}}#ae(){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",()=>j(t))}this.#O(t,n,e.id)}#de(e,t,n){const i=M.createMenu({className:"appbar-menu"}),r=new Map;e.appendChild(i);const s=e=>{const t=R();r.clear(),i.innerHTML="";for(const t of e)i.appendChild(t);for(const e of n.menu??[])$(t,e.command)&&(r.set(e.id,e),i.appendChild(M.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,s)}),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&&j(n.command)})}async#ce(e,t){const n=t.initialsCommand;if(n&&$(R(),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&&$(R(),r)?await this.#he(r):[])?("avatar"===n.kind&&this.#ce(t,n),M.openMenuAt(e,{anchor:t,placement:"bottom"})):n.command&&j(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(";")),M.createMenuItem({attrs:{disabled:"","data-appbar-summary":0===t?"lead":"line"},children:[n]})}):[]}#O(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 H={manager:new class{#A=new Map;#C=new Map;#N;#T;#I;#L=new Map;#M=0;#pe=new Map;#O(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 s=null;for(const t of Array.from(e.children)){const e=this.#L.get(t.id);if(void 0!==e&&e>i){s=t;break}}e.insertBefore(t,s)}#B(){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.#B();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 s="primary"===e.alignment,a=s?this.#T:this.#I;(s?this.#A:this.#C).set(e.id,e),this.#O(a,t,e.id)}removeItem(e){const t=this.#pe.get(e);t?.parentNode&&t.parentNode.removeChild(t),this.#pe.delete(e),this.#A.delete(e),this.#C.delete(e)}}};const q={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 V=new class{currentProfileId=null;listeners=new Set;async loadProfile(e){const t=q[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{...q}}getProfile(e){return q[e]}registerProfile(e){q[e.id]=e}onDidChangeProfile(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}loadDefaultImmediate(){const e=q.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&&q[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 U(e){return String(e??"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function Z(e){return U(e).replace(/\r?\n/g,"<br>")}async function K(e){return new Promise(t=>{const{title:n,message:i,html:r,buttons:s=[{label:"OK",variant:"filled",action:"ok"}],footerHtml:a,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","");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;">${Z(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;">${U(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 ${a||`\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 ${s.map((e,t)=>`<punica-button id="${`${p}-btn-${t}`}" variant="${e.variant||"outlined"}" color="${e.color||"primary"}" size="small" rounded>${U(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)};s.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 W(e){const{title:t,message:n,variant:i="info",buttonLabel:r="OK"}=e,s=t||("success"===i?"Success":"warning"===i?"Warning":"error"===i?"Error":"Information");await K({title:s,message:n,tone:i,buttons:[{label:r,variant:"filled",color:"error"===i?"error":"primary",action:"ok"}]})}const G={showInformationMessage:async function(e,...t){return 0===t.length?void await W({message:e,variant:"info",title:"Information"}):await K({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 W({message:e,variant:"warning",title:"Warning"}):await K({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 W({message:e,variant:"error",title:"Error"}):await K({title:"Error",message:e,buttons:t.map(e=>({label:e,variant:"outlined",action:e}))})},showDialog:K,showConfirm:async function(e){const{title:t="Confirm",message:n,confirmLabel:i="OK",cancelLabel:r="Cancel",variant:s="info"}=e;return"confirm"===await K({title:t,message:n,tone:s,buttons:[{label:r,variant:"text",action:"cancel"},{label:i,variant:"filled",color:"error"===s?"error":"primary",action:"confirm"}]})},showAlert:W,showPrompt:async function(e){return new Promise(t=>{const{title:n="Prompt",message:i,placeholder:r="",defaultValue:s="",confirmLabel:a="OK",cancelLabel:o="Cancel",type:l="text"}=e,c=`punica-prompt-${Date.now()}`,d=`${c}-input`;w();let u=s;K({title:n,html:`\n <punica-box style="display:flex; flex-direction: column; gap: 10px;">\n <punica-typography>${Z(i)}</punica-typography>\n <punica-input\n id="${d}"\n type="${U(l)}"\n placeholder="${U(r)}"\n value="${U(s)}"\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:a,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:s=!0,placement:a="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.${a}`)||o.querySelector(".region.top-right");if(!l)throw new Error(`Toast region not found: ${a}`);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(s)),c.setAttribute("enter-from",a.startsWith("top")?"top":"bottom"),l.prepend(c),c},showChangesPreview:async function(e){const{title:t,summary:n,files:i,onConfirm:r,onCancel:s}=e,a=`changes-preview-files-${Date.now()}`,o=`changes-preview-content-${Date.now()}`,l=`changes-preview-selected-${Date.now()}`;let c=0;const d=()=>{const e=document.querySelector(`#${l}`);e&&i[c]&&(e.textContent=i[c].path)},u=e=>{e.innerHTML="",i.forEach((t,n)=>{const i=M.createBadge({text:t.action,variant:"filled",color:"delete"===t.action?"error":"create"===t.action?"success":"primary",size:"small"}),r=M.createListViewItem({label:t.path,content:t.action,endAdornment:i});n===c&&(r.style.backgroundColor="rgba(255, 255, 255, 0.1)"),r.style.cursor="pointer",r.addEventListener("click",()=>{c=n,u(e),h(document.getElementById(o)),d()}),e.appendChild(r)})},h=e=>{const t=i[c];if(e.innerHTML="","delete"===t.action){const n=M.createTypography(`This file will be deleted: ${t.path}`,{variant:"body1"});return void e.appendChild(n)}if(!t.content){const t=M.createTypography("No content preview available",{variant:"body1"});return void e.appendChild(t)}const n=M.createBox({style:{width:"100%",height:"400px",border:"1px solid rgba(255, 255, 255, 0.1)",borderRadius:"4px",overflow:"hidden"}});e.appendChild(n);const r=window.monaco||globalThis.monaco;if(r?.editor)try{const i=m(t.path),s=r.editor.create(n,{value:t.content||"",language:i,theme:"vs-dark",readOnly:!0,minimap:{enabled:!1},fontSize:13,fontLigatures:!0,automaticLayout:!0,scrollBeyondLastLine:!1});e.__monacoEditor=s}catch(e){p(n,t.content||"")}else p(n,t.content||"")},p=(e,t)=>{const n=document.createElement("pre");n.style.cssText="margin: 0; padding: 10px; overflow: auto; font-family: monospace; font-size: 12px; white-space: pre-wrap; word-wrap: break-word;",n.textContent=t,e.innerHTML="",e.appendChild(n)},m=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"},f=e=>String(e??"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;"),g=`\n <punica-box style="display: flex; flex-direction: column; gap: 12px; min-width: 800px; max-width: 1200px; max-height: 80vh;">\n ${n?`<punica-typography>${f(n)}</punica-typography>`:""}\n <punica-box style="display: flex; gap: 12px; flex: 1; min-height: 0;">\n <punica-box style="flex: 0 0 300px; display: flex; flex-direction: column; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 4px; overflow: hidden;">\n <punica-box style="padding: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.1);">\n <punica-typography fontweight="bold">Files (${i.length})</punica-typography>\n </punica-box>\n <punica-box id="${a}" style="flex: 1; overflow-y: auto; padding: 4px;"></punica-box>\n </punica-box>\n <punica-box style="flex: 1; display: flex; flex-direction: column; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 4px; overflow: hidden; min-width: 0;">\n <punica-box style="padding: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.1);">\n <punica-typography fontweight="bold" id="${l}">${f(i[0]?.path||"")}</punica-typography>\n </punica-box>\n <punica-box id="${o}" style="flex: 1; overflow: auto; padding: 0;"></punica-box>\n </punica-box>\n </punica-box>\n </punica-box>\n `;return new Promise(e=>{punica.shell.View.showDialog({title:t,html:g,buttons:[{label:"Cancel",variant:"outlined",action:"cancel"},{label:"Apply Changes",variant:"filled",color:"primary",action:"confirm"}],width:"90vw",onMount:e=>{const t=e.querySelector(`#${a}`),n=e.querySelector(`#${o}`);e.querySelector(`#${l}`),t&&u(t),n&&h(n),d()}}).then(async t=>{const n=document.querySelector('[id^="punica-dialog-"]');if(n){const e=n.querySelector(`#${o}`);if(e&&e.__monacoEditor)try{e.__monacoEditor.dispose()}catch{}}if("confirm"===t)try{await r(),e("confirm")}catch(t){await punica.shell.View.showAlert({title:"Error",message:`Failed to apply changes: ${t instanceof Error?t.message:String(t)}`,variant:"error"}),e(void 0)}else s?.(),e("cancel"===t?"cancel":void 0)})})},Helpers:M,Theme:{manager:V,profiles:q}};function X(){return globalThis.punica?.shell?.Layout?.manager}function J(e){const t=(globalThis.punica?.shell?.PanelContainers)?.forSlot?.(e);return t||("panel"===e?globalThis.punica?.shell?.PanelTabs:null)}function Y(){return globalThis.punica?.shell?.ActivityBar?.manager}const Q={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 s=X();if(!s)throw new Error("[Views] Layout manager unavailable — cannot reveal.");const a=s.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(a);this.#ge.set(t,e&&"function"==typeof e.dispose?e:null)}s.showView(r.slot,t),s.setSlotCollapsed?.(r.slot,!1),this.#be.set(r.slot,t);const c=J(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{Y()?.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=X();if("contentSidebar"===i.slot?this.#we(i.slot):(r?.hideSlotViews(i.slot),r?.setSlotCollapsed?.(i.slot,!0),i.onDemand&&J(i.slot)?.close?.(t,{silent:!0})),this.#be.delete(i.slot),"primarySidebar"===i.slot)try{Y()?.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{J(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 s=r.allowedSlots??[r.slot];if(!s.includes(n))throw new Error(`[Views] "${t}" cannot be moved to "${n}". Allowed slots: ${s.join(", ")}.`);const a=r.slot;if(a===n)return;const o=this.#be.get(a)===t,l=X(),c=J(a);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?.(a,t);let u=null;if(o){this.#be.delete(a);const e=(c?.listTabs?.()??[]).filter(e=>!e.userHidden&&e.id!==t);e.length>0?u=e[0].id:l?.setSlotCollapsed?.(a,!0)}r.slot=n;try{await((globalThis.punica?.shell?.PanelLayout?.manager)?.setSlotOverride?.(t,n,r.homeSlot??a))}catch(e){console.warn(`[Views] failed to persist slot override for "${t}":`,e)}if(o?await this.reveal(t,i):r.onDemand||(J(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 "${a}":`,e)}e({name:"shell.view.moved",source:"shell:views",payload:{viewId:t,fromSlot:a,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=X();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=X();r?.removeViewHost?.(t.slot,n)}}}};const ee={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.#Ae();case"fileExplorerFocus":return this.#Ce("primarySidebar","file-explorer-sidebar");default:return}}#Ae(){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"))}#Ce(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))}}},te={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"}]}},ne={id:"welcome",title:"Welcome",root:{type:"row",sizes:[100],children:[{type:"column",sizes:[100],children:[{type:"slot",id:"content",role:"content"}]}]}},ie=new Set(["secondarySidebar","panel"]);const re={type:"row",sizes:[100],children:[{type:"slot",id:"content",role:"content"}]};const se={manager:new class{#Ne;#Te=new Map;#Ie=new Map;#Le;#Me=new Map;#Fe=[];constructor(){this.#Ne=document.createElement("div"),this.#Ne.id="punica-editor",this.#Le=te}applyProfile(e){if(this.#Le=e,this.#Te.clear(),this.#Ie.clear(),this.#Me.clear(),this.#ze(),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.#Oe(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 s=i.get(t);return s?s.parentElement||r.appendChild(s):(s=document.createElement("div"),s.dataset.viewId=t,s.style.height="100%",s.style.width="100%","primarySidebar"===e&&(s.style.overflowX="hidden",s.style.overflowY="auto"),s.style.display="none",r.appendChild(s),i.set(t,s)),s}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"})}#Be(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),s=r.indexOf(i);return s<0?void 0:{split:n,index:s,count:r.length}}isSlotCollapsed(e){return this.#Me.has(e)}setSlotCollapsed(e,t){const n=this.#Be(e);if(!n)return;const{split:i,index:r,count:s}=n;if("function"==typeof i.setSizes)if(t){if(this.#Me.has(e))return;const t=(i.getSizes?.()??[]).slice();if(t.length!==s||s<2)return;this.#Me.set(e,t);const n=t.reduce((e,t,n)=>n===r?e:e+t,0),a=t.map((e,t)=>t===r?0:n>0?e/n*100:100/(s-1));i.setSizes(a)}else{const t=this.#Me.get(e);this.#Me.delete(e),t&&t.length===s&&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)}#Oe(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=M.createSplit({orientation:i?"horizontal":"vertical",sizes:e.sizes,style:{height:"100%",width:"100%"}});t.appendChild(r);const s=e.children.length;for(let t=0;t<s;t++){const n=document.createElement("div");n.style.height="100%",n.style.width="100%",r.appendChild(n),this.#Oe(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&&ie.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,s=null;const a=new ResizeObserver(()=>{const t=i?e.clientWidth:e.clientHeight;if(t<=0)return;const a=r;if(r=t,a<=0||a===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 s=e.map((e,t)=>t).filter(e=>!i.includes(e));if(!s.length)return null;const a=[...e];let o=0;for(const s of i){const i=e[s]/100*t,l=Math.max(r,i/n*100);a[s]=l,o+=l}const l=100-o;if(l<r*s.length)return null;const c=s.reduce((t,n)=>t+e[n],0);for(const t of s)a[t]=c>0?e[t]/c*l:l/s.length;const d=a.reduce((e,t)=>e+t,0),u=s.reduce((e,t)=>a[e]>=a[t]?e:t);return a[u]+=100-d,a}(l,a,t,n);c&&(e.toggleAttribute("no-transition",!0),o.setSizes?.(c),s&&clearTimeout(s),s=setTimeout(()=>{s=null,e.removeAttribute("no-transition")},150))});a.observe(e),this.#Fe.push(a)}#ze(){for(const e of this.#Fe)e.disconnect();this.#Fe=[]}applyApplicationProfile(e){const t=new Set(e.shell.activeModules),n=t.has("shell.activityBar"),i=t.has("shell.view"),r=t.has("shell.statusbar"),s=e.shell.layout,a=s?.id??e.identity.id,o=s?.root??re;if(this.#Le={id:a,title:e.identity.name,root:o},this.#Te.clear(),this.#Ie.clear(),this.#Me.clear(),this.#ze(),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.#Oe(o,l,!0)}render(e){try{const e=window,t=e.punica?.Runtime?.runtime??e.punica?.runtime,n=t?.lifecyclePhase,i="noWorkspace"===n?ne:te,r=this.#Le.id===te.id||this.#Le.id===ne.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)}}};const ae=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=M.createBox({attrs:{id:"content-tabs-root"},style:{height:"100%",display:"flex",flexDirection:"column"}}),i=M.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=M.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 s=document.createElement("style");s.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(s);const a=M.createBox({attrs:{id:"content-tabs-panels"},style:{flex:"1",height:"calc(100% - 40px)"}});n.appendChild(i),n.appendChild(a);const o=M.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=a,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=e.title??e.path.split("/").pop()??e.path,r=M.createTypography(i,{attrs:{truncate:"1",title:e.path},style:{maxWidth:"150px"}}),s=M.createIconButton("fa-duotone fa-solid fa-xmark",t=>{t.stopPropagation(),this.close(e.path)},{size:"small",title:"Close"}),a=M.createRow({alignItems:"center",wrap:"nowrap",spacing:"0.5",style:{maxWidth:"200px"},children:[M.createCol({children:[r]}),M.createCol({children:[s]})]}),o=M.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:[a]});o.addEventListener("contextmenu",()=>{this.#He=n,this.#Ve(n)}),this.#$e.appendChild(o);const l=M.createElement("div",{style:{height:"100%",width:"100%",boxSizing:"border-box"}}),c=M.createTabPanel({value:n,selectedValue:n,style:{height:"100%",width:"100%",boxSizing:"border-box"},children:[l]});this.#je.appendChild(c);const d={id:n,path:e.path,title:i,viewType:e.viewType,tabElement:o,labelElement:r,container:l,panel:c,dirty:!1};return this.#Pe.set(e.path,d),this.#Ve(n),l}async close(e){const t=this.#Pe.get(e);t&&await this.#Ze(t)&&this.#Ke(t)}async closeById(e){const t=Array.from(this.#Pe.values()).find(t=>t.id===e);t&&await this.#Ze(t)&&this.#Ke(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.#Ke(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.#Ke(t)}}#Ke(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);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)return;n.dirty=t;const i=n.title||n.path.split("/").pop()||n.path;n.labelElement.textContent=t?`${i} •`:i}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 oe="punica-tabbed-container-style",le={panel:"bottom panel",secondarySidebar:"right sidebar"};let ce=null;const de=[];class ue{slotId;orientation;#e=!1;#m=null;#$e=null;#We=null;#Ge=null;#Xe=null;#Je=null;#Ye=null;#Qe=null;#et=!1;#tt=new Set;#nt=new Map;#S=null;#it="both";#rt=null;#st=!1;#at=!1;constructor(e,t){this.slotId=e,this.orientation=t,de.push(this)}#ot(e){return`${this.slotId}-${e}`}get#lt(){return"horizontal"===this.orientation}#ct(){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.#it=this.#ct()?.getDisplayMode?.(this.slotId)??n,this.#l();const i=M.createBox({attrs:{id:this.#ot("tabs-root"),"data-tabbed-container":"","data-orientation":this.orientation},style:{height:"100%",width:"100%",display:"flex",flexDirection:this.#lt?"column":"row"}}),r=M.createBox({style:{display:"flex",alignItems:"center",backgroundColor:"var(--background-paper)",...this.#lt?{height:"32px",flexDirection:"row"}:{width:"44px",height:"100%",flexDirection:"column"}}}),s=M.createTab({orientation:this.orientation,attrs:{role:"tablist"},style:{flex:"1 1 auto",overflow:"hidden",backgroundColor:"var(--background-paper)",...this.#lt?{minWidth:"0",height:"100%"}:{minHeight:"0",width:"100%",display:"flex",flexDirection:"column"}},onChange:e=>{e&&this.#dt(e,this.#ot("tab"))}});r.addEventListener("contextmenu",e=>{this.#ut(e)});const a=M.createIconButton("fa-solid fa-ellipsis",()=>{this.#ht()},{size:"x-small",title:"More tabs",attrs:{id:this.#ot("tab-overflow-btn"),"aria-label":"More tabs"}});a.style.flex="0 0 auto",a.style.display="none";const o=M.createIconButton("fa-solid fa-plus",()=>{this.#pt()},{size:"x-small",title:"Show hidden tabs",attrs:{id:this.#ot("tab-show-hidden-btn"),"aria-label":"Show hidden tabs"}});o.style.flex="0 0 auto",o.style.display="none";const l=M.createBox({attrs:{id:this.#ot("toolbar-area")},style:{flex:"0 0 auto",display:"flex",alignItems:"center",padding:"0 var(--spacing-8)"}});r.appendChild(s),r.appendChild(o),r.appendChild(a),r.appendChild(l);const c=M.createMenu({attrs:{id:this.#ot("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.#dt(t,this.#ot("tab-overflow")))});const d=M.createMenu({attrs:{id:this.#ot("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.#mt(t)});const u=document.createElement("div");if(u.id=this.#ot("views-root"),u.setAttribute("data-views-root",""),u.style.flex="1",this.#lt?(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.#ft(i),"undefined"!=typeof ResizeObserver){new ResizeObserver(()=>{this.#gt()}).observe(r)}this.#m=i,this.#$e=s,this.#We=l,this.#Ge=a,this.#Xe=c,this.#Je=o,this.#Ye=d,this.#e=!0}#l(){if("undefined"==typeof document)return;if(document.getElementById(oe))return;const e=document.createElement("style");e.id=oe,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)}#dt(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.#nt.get(e.id))return void(!1===e.autoActivate||this.#S===e.id||this.#bt(e.id,"PanelTabs.open")||this.setActive(e.id));const t=M.createRow({alignItems:"center",wrap:"nowrap",spacing:"0.5"});let n=null;if(e.iconClass){const i=e.iconClass.trim(),r=M.createIcon(i.startsWith("<")?{innerHTML:i}:{iconClass:i});n=M.createCol({attrs:{"data-col":"icon"},children:[r]}),t.appendChild(n)}const i=M.createCol({attrs:{"data-col":"label"},children:[M.createTypography(e.title,{attrs:{truncate:"1"}})]});t.appendChild(i);const r=M.createTabItem({value:e.id,attrs:{title:e.title,role:"tab"},style:{flex:"0 0 auto",...this.#lt?{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 s=!0===this.#ct()?.isTabHidden?.(e.id,this.slotId);s&&r.setAttribute("data-user-hidden","");const a=this.#yt(e.id,e.order),o=Array.from(this.#nt.values()).sort((e,t)=>e.order-t.order).find(e=>e.order>a);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:a,tabElement:r,iconColEl:n,labelColEl:i,userHidden:s,toolbar:e.toolbar,toolbarEl:null};e.toolbar?.length&&this.#We&&(l.toolbarEl=this.#vt(e.id,e.toolbar),this.#We.appendChild(l.toolbarEl)),this.#nt.set(e.id,l),this.#wt(l),this.#xt(l),this.#Et(),this.#gt();const c=e.autoActivate;this.#S||s||!1===c||this.#bt(e.id,"PanelTabs.open")||this.setActive(e.id)}#yt(e,t){const n=this.#ct()?.getTabOrder?.(this.slotId);if(n&&n.length){const i=n.indexOf(e);return i>=0?i:1e3*n.length+(t??1e3)}return t??1e3}#wt(e){const t=this.#it,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")}#vt(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=M.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}#bt(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.#nt.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.#nt.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.#nt.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.#nt.get(e);if(n&&(n.tabElement.parentElement===this.#$e&&this.#$e.removeChild(n.tabElement),n.toolbarEl&&(n.toolbarEl.remove(),n.toolbarEl=null),this.#tt.delete(e),this.#nt.delete(e),this.#gt(),this.#S===e)){const e=Array.from(this.#nt.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.#nt.keys()).forEach(e=>this.close(e))}setActive(e){if(!this.#$e)return;const t=this.#nt.get(e);if(t&&!this.#bt(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.#it}setDisplayMode(e){this.#it=e,this.#nt.forEach(e=>this.#wt(e)),this.#ct()?.setDisplayMode?.(e,{slot:this.slotId}),this.#gt()}hideTab(e){const t=this.#nt.get(e);if(t&&!t.userHidden){if(t.userHidden=!0,t.tabElement.setAttribute("data-user-hidden",""),this.#ct()?.setTabHidden?.(e,!0,{slot:this.slotId}),this.#Et(),this.#S===e){this.#S=null,this.#$e?.removeAttribute("value"),t.tabElement.removeAttribute("active");const e=Array.from(this.#nt.values()).filter(e=>!e.userHidden).sort((e,t)=>e.order-t.order)[0];e&&this.#dt(e.id,this.#ot("tab-hide"))}this.#gt()}}showTab(e){const t=this.#nt.get(e);t&&t.userHidden&&(t.userHidden=!1,t.tabElement.removeAttribute("data-user-hidden"),this.#ct()?.setTabHidden?.(e,!1,{slot:this.slotId}),this.#Et(),this.#gt(),this.#dt(e,this.#ot("tab-show")))}setUserOrder(e){this.#$e&&(e.forEach((e,t)=>{const n=this.#nt.get(e);n&&(n.order=t,this.#$e.appendChild(n.tabElement))}),Array.from(this.#nt.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.#ct()?.setTabOrder?.(this.#kt(),{slot:this.slotId}),this.#gt())}listTabs(){return Array.from(this.#nt.values()).sort((e,t)=>e.order-t.order).map(e=>({id:e.id,title:e.title,userHidden:e.userHidden}))}#kt(){return Array.from(this.#nt.values()).sort((e,t)=>e.order-t.order).map(e=>e.id)}#xt(e){const t=e.tabElement;t.addEventListener("dragstart",t=>{this.#rt=e.id,ce={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 de)e.armDropZone()}()}),t.addEventListener("dragend",()=>{this.#rt=null,ce=null,function(){for(const e of de)e.disarmDropZone()}()}),t.addEventListener("dragover",t=>{this.#rt&&this.#rt!==e.id&&t.preventDefault()}),t.addEventListener("drop",t=>{t.preventDefault();const n=this.#rt;if(this.#rt=null,!n||n===e.id)return;const i=this.#lt?t.clientX:t.clientY;this.#_t(n,e.id,i)})}#_t(e,t,n){const i=this.#nt.get(t);if(!i)return;const r=i.tabElement.getBoundingClientRect(),s=this.#lt?n>r.left+r.width/2:n>r.top+r.height/2,a=this.#kt().filter(t=>t!==e),o=a.indexOf(t),l=s?o+1:o;a.splice(l,0,e),this.setUserOrder(a)}#ft(e){e.addEventListener("dragover",e=>{this.#At()&&(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=ce;t&&this.#At()&&(e.preventDefault(),e.stopPropagation(),this.#at=!0,ce=null,this.#Ct(t.viewId,this.slotId))})}armDropZone(){if(this.#at=!1,!this.#At())return;this.#qe();const e=punica.shell.Layout.manager;e.isSlotCollapsed?.(this.slotId)&&(e.setSlotCollapsed(this.slotId,!1),this.#st=!0)}disarmDropZone(){this.#m?.removeAttribute("data-drop-target"),this.#st&&!this.#at&&punica.shell.Layout.manager.setSlotCollapsed(this.slotId,!0),this.#st=!1,this.#at=!1}#At(){const e=ce;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)}#Ct(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)})}#ut(e){const t=this.#Ye;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.#St(t,`hide:${e}`,"Hide tab");const n=globalThis.punica?.shell?.Views?.manager?.getPlacement?.(e);(n?.allowedSlots??[]).filter(e=>e!==this.slotId).forEach(n=>{this.#St(t,`move:${e}:${n}`,`Move to ${le[n]??n}`)})}}this.#St(t,"display:both",("both"===this.#it?"● ":"")+"Show icons and labels"),this.#St(t,"display:icon",("icon"===this.#it?"● ":"")+"Show icons only"),this.#St(t,"display:label",("label"===this.#it?"● ":"")+"Show labels only"),this.#Dt(t,e.clientX,e.clientY)}#mt(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.#Ct(t[1],t[2])}#St(e,t,n){e.appendChild(M.createMenuItem({text:n,attrs:{"data-item":t,"aria-label":n}}))}#Dt(e,t,n){M.openMenuAt(e,{anchor:{top:n,left:t,bottom:n},placement:"bottom"})}#pt(){const e=this.#Ye,t=this.#Je;if(!e||!t)return;e.innerHTML="",Array.from(this.#nt.values()).filter(e=>e.userHidden).sort((e,t)=>e.order-t.order).forEach(t=>this.#St(e,`show:${t.id}`,t.title));const n=t.getBoundingClientRect();this.#Dt(e,n.left,n.bottom)}#Et(){const e=this.#Je;if(!e)return;const t=Array.from(this.#nt.values()).some(e=>e.userHidden);e.style.display=t?"inline-flex":"none"}#gt(){if(this.#et)return;this.#et=!0;const e=()=>{this.#et=!1,this.recomputeOverflow()};"function"==typeof requestAnimationFrame?requestAnimationFrame(e):setTimeout(e,0)}#Nt(){const e=this.#$e;return e?this.#lt?e.clientWidth:e.clientHeight:0}#Tt(e){return this.#lt?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.#tt.clear(),void this.#It(!1);const n=this.#Nt();if(n<=0)return this.#tt.clear(),void this.#It(!1);const i=t.map(e=>this.#Tt(e));if(i.reduce((e,t)=>e+t,0)<=n)return this.#tt.clear(),void this.#It(!1);const r=n-this.#Lt(),s=t.findIndex(e=>e.getAttribute("value")===this.#S);let a=s>=0?i[s]:0;const o=new Set;let l=!0;t.forEach((e,t)=>{if(t===s)return;if(l&&a+i[t]<=r)return void(a+=i[t]);l=!1,e.style.display="none";const n=e.getAttribute("value");n&&o.add(n)}),this.#tt=o,this.#It(o.size>0)}#It(e){const t=this.#Ge;t&&(t.style.display=e?"inline-flex":"none",e||this.#Xe?.removeAttribute("open"))}#Lt(){if(null!=this.#Qe)return this.#Qe;const e=this.#Ge;if(!e)return 28;const t=e.style.display;e.style.display="inline-flex";const n=this.#Tt(e)||28;return e.style.display=t,this.#Qe=n,n}#ht(){const e=this.#Xe,t=this.#Ge,n=this.#$e;e&&t&&n&&0!==this.#tt.size&&(e.innerHTML="",n.querySelectorAll("punica-tab-item").forEach(t=>{const n=t.getAttribute("value");if(!n||!this.#tt.has(n))return;const i=this.#nt.get(n);i&&e.appendChild(M.createMenuItem({text:i.title,attrs:{"data-item":n,"aria-label":i.title}}))}),M.openMenuAt(e,{anchor:t,placement:"bottom"}))}}const he=new class extends ue{constructor(){super("panel","horizontal")}},pe=new ue("secondarySidebar","vertical"),me={bottom:he,right:pe,forSlot:e=>"panel"===e?he:"secondarySidebar"===e?pe:null},fe="panel.tabDisplay",ge="panel.hiddenTabs",be="panel.tabOrder",ye="view.slotOverrides",ve="panel";function we(){return globalThis.punica?.extensions?.settings?.manager??null}function xe(){try{const e=globalThis.punica?.shell?.Profile?.manager?.registry?.getActive?.();return e?.shell??null}catch{return null}}const Ee=new class{#Mt=!1;#Ft=null;#zt=new Map;#Ot={};async load(){const e=we();if(this.#Ft=e,e){try{await e.load()}catch(e){console.warn("[PanelLayout] settings.load() failed",e)}this.#Ot=this.#Bt(e.get("system",ye))??{}}this.#Mt=!0}getDisplayMode(e=ve){const t=this.#Rt(this.#$t(fe,e));if(t)return t;if(e===ve){const e=this.#Rt(xe()?.panel?.tabDisplay);if(e)return e}return e===ve?"both":"icon"}getHiddenTabs(e=ve){const t=this.#jt(this.#$t(ge,e));if(t)return t;if(e===ve){const e=this.#jt(xe()?.panel?.hiddenTabs);if(e)return e}return[]}isTabHidden(e,t=ve){return this.getHiddenTabs(t).includes(e)}getTabOrder(e=ve){const t=this.#jt(this.#$t(be,e));return t||(e===ve?this.#jt(xe()?.panel?.tabOrder):void 0)}getSlotOverride(e){const t=this.#Ot[e];if(void 0!==t)return t;const n=this.#Bt(xe()?.viewDefaults?.slotOverrides);return n?.[e]}async setDisplayMode(e,t){await this.#Pt(fe,e,t)}async setTabHidden(e,t,n){const i=n?.slot??ve,r=new Set(this.getHiddenTabs(i));t?r.add(e):r.delete(e),await this.#Pt(ge,Array.from(r),n)}async setTabOrder(e,t){await this.#Pt(be,[...e],t)}async setSlotOverride(e,t,n,i){const r={...this.#Ot};t===n?delete r[e]:r[e]=t,this.#Ot=r,await this.#Ht(ye,r,i)}#qt(e,t){return t===ve?e:`${e}.${t}`}#$t(e,t){const n=this.#qt(e,t);if(this.#zt.has(n))return this.#zt.get(n);const i=this.#Ft?.get?.("system",n);return this.#zt.set(n,i),i}async#Pt(e,t,n){const i=n?.slot??ve,r=this.#qt(e,i);this.#zt.set(r,t),await this.#Ht(r,t,n)}async#Ht(e,t,n){const i=we();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)}}#Rt(e){return"icon"===e||"label"===e||"both"===e?e:void 0}#jt(e){return Array.isArray(e)&&e.every(e=>"string"==typeof e)?e:void 0}#Bt(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}},ke={};function _e(e,t){"string"!=typeof t&&(t=_e.defaultChars);const n=function(e){let t=ke[e];if(t)return t;t=ke[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 s=parseInt(e.slice(i+1,i+3),16);if(s<128)t+=n[s];else{if(192==(224&s)&&i+3<r){const n=parseInt(e.slice(i+4,i+6),16);if(128==(192&n)){const e=s<<6&1984|63&n;t+=e<128?"��":String.fromCharCode(e),i+=3;continue}}if(224==(240&s)&&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=s<<12&61440|n<<6&4032|63&r;t+=e<2048||e>=55296&&e<=57343?"���":String.fromCharCode(e),i+=6;continue}}if(240==(248&s)&&i+9<r){const n=parseInt(e.slice(i+4,i+6),16),r=parseInt(e.slice(i+7,i+9),16),a=parseInt(e.slice(i+10,i+12),16);if(128==(192&n)&&128==(192&r)&&128==(192&a)){let e=s<<18&1835008|n<<12&258048|r<<6&4032|63&a;e<65536||e>1114111?t+="����":(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(1023&e))),i+=9;continue}}t+="�"}}return t})}_e.defaultChars=";/?:@&=+$,#",_e.componentChars="";const Ae={};function Ce(e,t,n){"string"!=typeof t&&(n=t,t=Ce.defaultChars),void 0===n&&(n=!0);const i=function(e){let t=Ae[e];if(t)return t;t=Ae[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,s=e.length;t<s;t++){const a=e.charCodeAt(t);if(n&&37===a&&t+2<s&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3)))r+=e.slice(t,t+3),t+=2;else if(a<128)r+=i[a];else if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&t+1<s){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 Se(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 De(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}Ce.defaultChars=";/?:@&=+$,-_.!~*'()#",Ce.componentChars="-_.!~*'()";const Ne=/^([a-z0-9.+-]+:)/i,Te=/:[0-9]*$/,Ie=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Le=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),Me=["'"].concat(Le),Fe=["%","/","?",";","#"].concat(Me),ze=["/","?","#"],Oe=/^[+a-z0-9A-Z_-]{0,63}$/,Be=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Re={javascript:!0,"javascript:":!0},$e={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 De)return e;const n=new De;return n.parse(e,t),n}De.prototype.parse=function(e,t){let n,i,r,s=e;if(s=s.trim(),!t&&1===e.split("#").length){const e=Ie.exec(s);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let a=Ne.exec(s);if(a&&(a=a[0],n=a.toLowerCase(),this.protocol=a,s=s.substr(a.length)),(t||a||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(r="//"===s.substr(0,2),!r||a&&Re[a]||(s=s.substr(2),this.slashes=!0)),!Re[a]&&(r||a&&!$e[a])){let e,t,n=-1;for(let e=0;e<ze.length;e++)i=s.indexOf(ze[e]),-1!==i&&(-1===n||i<n)&&(n=i);t=-1===n?s.lastIndexOf("@"):s.lastIndexOf("@",n),-1!==t&&(e=s.slice(0,t),s=s.slice(t+1),this.auth=e),n=-1;for(let e=0;e<Fe.length;e++)i=s.indexOf(Fe[e]),-1!==i&&(-1===n||i<n)&&(n=i);-1===n&&(n=s.length),":"===s[n-1]&&n--;const r=s.slice(0,n);s=s.slice(n),this.parseHost(r),this.hostname=this.hostname||"";const a="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!a){const e=this.hostname.split(/\./);for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n&&!n.match(Oe)){let i="";for(let e=0,t=n.length;e<t;e++)n.charCodeAt(e)>127?i+="x":i+=n[e];if(!i.match(Oe)){const i=e.slice(0,t),r=e.slice(t+1),a=n.match(Be);a&&(i.push(a[1]),r.unshift(a[2])),r.length&&(s=r.join(".")+s),this.hostname=i.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),a&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const o=s.indexOf("#");-1!==o&&(this.hash=s.substr(o),s=s.slice(0,o));const l=s.indexOf("?");return-1!==l&&(this.search=s.substr(l),s=s.slice(0,l)),s&&(this.pathname=s),$e[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},De.prototype.parseHost=function(e){let t=Te.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 Pe,He=Object.freeze({__proto__:null,decode:_e,encode:Ce,format:Se,parse:je}),qe=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Ve=/[\0-\x1F\x7F-\x9F]/,Ue=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,Ze=/[\$\+<->\^`\|~\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]/,Ke=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,We=Object.freeze({__proto__:null,Any:qe,Cc:Ve,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:Ue,S:Ze,Z:Ke}),Ge=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୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢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;怳Ādp໩໮uct;戏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ǣጓ\0጖y;䐎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Ā;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀ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Ā;e᜚᜜lƀ;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\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩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ↄⅪ←ٖ↛ǰ↉\0↎proø₞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;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\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\0⹻m;櫳;櫽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))),Xe=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));const Je=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]]),Ye=null!==(Pe=String.fromCodePoint)&&void 0!==Pe?Pe: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 Qe;!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"}(Qe||(Qe={}));var et,tt,nt;function it(e){return e>=Qe.ZERO&&e<=Qe.NINE}function rt(e){return e>=Qe.UPPER_A&&e<=Qe.UPPER_F||e>=Qe.LOWER_A&&e<=Qe.LOWER_F}function st(e){return e===Qe.EQUALS||function(e){return e>=Qe.UPPER_A&&e<=Qe.UPPER_Z||e>=Qe.LOWER_A&&e<=Qe.LOWER_Z||it(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"}(et||(et={})),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"}(tt||(tt={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(nt||(nt={}));class at{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=tt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=nt.Strict}startEntity(e){this.decodeMode=e,this.state=tt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case tt.EntityStart:return e.charCodeAt(t)===Qe.NUM?(this.state=tt.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=tt.NamedEntity,this.stateNamedEntity(e,t));case tt.NumericStart:return this.stateNumericStart(e,t);case tt.NumericDecimal:return this.stateNumericDecimal(e,t);case tt.NumericHex:return this.stateNumericHex(e,t);case tt.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===Qe.LOWER_X?(this.state=tt.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=tt.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(!it(i)&&!rt(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(!it(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===Qe.SEMI)this.consumed+=1;else if(this.decodeMode===nt.Strict)return 0;return this.emitCodePoint(function(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=Je.get(e))&&void 0!==t?t:e}(this.result),this.consumed),this.errors&&(e!==Qe.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&et.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const s=e.charCodeAt(t);if(this.treeIndex=lt(n,i,this.treeIndex+Math.max(1,r),s),this.treeIndex<0)return 0===this.result||this.decodeMode===nt.Attribute&&(0===r||st(s))?0:this.emitNotTerminatedNamedEntity();if(i=n[this.treeIndex],r=(i&et.VALUE_LENGTH)>>14,0!==r){if(s===Qe.SEMI)return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess);this.decodeMode!==nt.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]&et.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]&~et.VALUE_LENGTH:i[e+1],n),3===t&&this.emitCodePoint(i[e+2],n),n}end(){var e;switch(this.state){case tt.NamedEntity:return 0===this.result||this.decodeMode===nt.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case tt.NumericDecimal:return this.emitNumericEntity(0,2);case tt.NumericHex:return this.emitNumericEntity(0,3);case tt.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case tt.EntityStart:return 0}}}function ot(e){let t="";const n=new at(e,e=>t+=Ye(e));return function(e,i){let r=0,s=0;for(;(s=e.indexOf("&",s))>=0;){t+=e.slice(r,s),n.startEntity(i);const a=n.write(e,s+1);if(a<0){r=s+n.end();break}r=s+a,s=0===a?r+1:r}const a=t+e.slice(r);return t="",a}}function lt(e,t,n,i){const r=(t&et.BRANCH_LENGTH)>>7,s=t&et.JUMP_TABLE;if(0===r)return 0!==s&&i===s?n:-1;if(s){const t=i-s;return t<0||t>=r?-1:e[n+t]-1}let a=n,o=a+r-1;for(;a<=o;){const t=a+o>>>1,n=e[t];if(n<i)a=t+1;else{if(!(n>i))return e[t+r];o=t-1}}return-1}const ct=ot(Ge);function dt(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)}ot(Xe);const ut=Object.prototype.hasOwnProperty;function ht(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 pt(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function mt(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 ft(e){if(e>65535){const t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const gt=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,bt=new RegExp(gt.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),yt=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function vt(e,t){if(35===t.charCodeAt(0)&&yt.test(t)){const n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return mt(n)?ft(n):e}const n=function(e,t=nt.Legacy){return ct(e,t)}(e);return n!==e?n:e}function wt(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(bt,function(e,t,n){return t||vt(e,n)})}const xt=/[&<>"]/,Et=/[&<>"]/g,kt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function _t(e){return kt[e]}function At(e){return xt.test(e)?e.replace(Et,_t):e}const Ct=/[.?*+^$[\]\\(){}|-]/g;function St(e){switch(e){case 9:case 32:return!0}return!1}function Dt(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 Nt(e){return Ue.test(e)||Ze.test(e)}function Tt(e){return Nt(ft(e))}function It(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 Lt(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}function Mt(e){return 32===e||9===e||10===e||13===e}function Ft(e){let t=0;for(;t<e.length&&Mt(e.charCodeAt(t));t++);let n=e.length-1;for(;n>=t&&Mt(e.charCodeAt(n));n--);return e.slice(t,n+1)}const zt={mdurl:He,ucmicro:We};var Ot=Object.freeze({__proto__:null,arrayReplaceAt:pt,asciiTrim:Ft,assign:ht,escapeHtml:At,escapeRE:function(e){return e.replace(Ct,"\\$&")},fromCodePoint:ft,has:function(e,t){return ut.call(e,t)},isMdAsciiPunct:It,isPunctChar:Nt,isPunctCharCode:Tt,isSpace:St,isString:dt,isValidEntityCode:mt,isWhiteSpace:Dt,lib:zt,normalizeReference:Lt,unescapeAll:wt,unescapeMd:function(e){return e.indexOf("\\")<0?e:e.replace(gt,"$1")}});var Bt=Object.freeze({__proto__:null,parseLinkDestination:function(e,t,n){let i,r=t;const s={ok:!1,pos:0,str:""};if(60===e.charCodeAt(r)){for(r++;r<n;){if(i=e.charCodeAt(r),10===i)return s;if(60===i)return s;if(62===i)return s.pos=r+1,s.str=wt(e.slice(t+1,r)),s.ok=!0,s;92===i&&r+1<n?r+=2:r++}return s}let a=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&&(a++,a>32))return s;if(41===i){if(0===a)break;a--}r++}return t===r||0!==a||(s.str=wt(e.slice(t,r)),s.pos=r,s.ok=!0),s},parseLinkLabel:function(e,t,n){let i,r,s,a;const o=e.posMax,l=e.pos;for(e.pos=t+1,i=1;e.pos<o;){if(s=e.src.charCodeAt(e.pos),93===s&&(i--,0===i)){r=!0;break}if(a=e.pos,e.md.inline.skipToken(e),91===s)if(a===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,s=t;const a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(i)a.str=i.str,a.marker=i.marker;else{if(s>=n)return a;let i=e.charCodeAt(s);if(34!==i&&39!==i&&40!==i)return a;t++,s++,40===i&&(i=41),a.marker=i}for(;s<n;){if(r=e.charCodeAt(s),r===a.marker)return a.pos=s+1,a.str+=wt(e.slice(t,s)),a.ok=!0,a;if(40===r&&41===a.marker)return a;92===r&&s+1<n&&s++,s++}return a.can_continue=!0,a.str+=wt(e.slice(t,s)),a}});const Rt={};function $t(){this.rules=ht({},Rt)}function jt(){this.__rules__=[],this.__cache__=null}function Pt(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 Ht(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}Rt.code_inline=function(e,t,n,i,r){const s=e[t];return"<code"+r.renderAttrs(s)+">"+At(s.content)+"</code>"},Rt.code_block=function(e,t,n,i,r){const s=e[t];return"<pre"+r.renderAttrs(s)+"><code>"+At(e[t].content)+"</code></pre>\n"},Rt.fence=function(e,t,n,i,r){const s=e[t],a=s.info?wt(s.info).trim():"";let o,l="",c="";if(a){const e=a.split(/(\s+)/g);l=e[0],c=e.slice(2).join("")}if(o=n.highlight&&n.highlight(s.content,l,c)||At(s.content),0===o.indexOf("<pre"))return o+"\n";if(a){const e=s.attrIndex("class"),t=s.attrs?s.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(s)}>${o}</code></pre>\n`},Rt.image=function(e,t,n,i,r){const s=e[t];return s.attrs[s.attrIndex("alt")][1]=r.renderInlineAsText(s.children,n,i),r.renderToken(e,t,n)},Rt.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},Rt.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},Rt.text=function(e,t){return At(e[t].content)},Rt.html_block=function(e,t){return e[t].content},Rt.html_inline=function(e,t){return e[t].content},$t.prototype.renderAttrs=function(e){let t,n,i;if(!e.attrs)return"";for(i="",t=0,n=e.attrs.length;t<n;t++)i+=" "+At(e.attrs[t][0])+'="'+At(e.attrs[t][1])+'"';return i},$t.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 s=!1;if(i.block&&(s=!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)&&(s=!1)}return r+=s?">\n":">",r},$t.prototype.renderInline=function(e,t,n){let i="";const r=this.rules;for(let s=0,a=e.length;s<a;s++){const a=e[s].type;void 0!==r[a]?i+=r[a](e,s,t,n,this):i+=this.renderToken(e,s,t)}return i},$t.prototype.renderInlineAsText=function(e,t,n){let i="";for(let r=0,s=e.length;r<s;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},$t.prototype.render=function(e,t,n){let i="";const r=this.rules;for(let s=0,a=e.length;s<a;s++){const a=e[s].type;"inline"===a?i+=this.renderInline(e[s].children,t,n):void 0!==r[a]?i+=r[a](e,s,t,n,this):i+=this.renderToken(e,s,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),s=i||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r,0,{name:t,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null},jt.prototype.after=function(e,t,n,i){const r=this.__find__(e),s=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:s.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]||[]},Pt.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},Pt.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},Pt.prototype.attrSet=function(e,t){const n=this.attrIndex(e),i=[e,t];n<0?this.attrPush(i):this.attrs[n]=i},Pt.prototype.attrGet=function(e){const t=this.attrIndex(e);let n=null;return t>=0&&(n=this.attrs[t][1]),n},Pt.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},Ht.prototype.Token=Pt;const qt=/\r\n?|\n/g,Vt=/\0/g;function Ut(e){return/^<a[>\s]/i.test(e)}function Zt(e){return/^<\/a\s*>/i.test(e)}const Kt=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Wt=/\((c|tm|r)\)/i,Gt=/\((c|tm|r)\)/gi,Xt={c:"©",r:"®",tm:"™"};function Jt(e,t){return Xt[t.toLowerCase()]}function Yt(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(Gt,Jt)),"link_open"===i.type&&"auto"===i.info&&t--,"link_close"===i.type&&"auto"===i.info&&t++}}function Qt(e){let t=0;for(let n=e.length-1;n>=0;n--){const i=e[n];"text"!==i.type||t||Kt.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 en=/['"]/,tn=/['"]/g;function nn(e,t,n,i){e[t]||(e[t]=[]),e[t].push({pos:n,ch:i})}function rn(e,t){let n;const i=[],r={};for(let s=0;s<e.length;s++){const a=e[s],o=e[s].level;for(n=i.length-1;n>=0&&!(i[n].level<=o);n--);if(i.length=n+1,"text"!==a.type)continue;const l=a.content;let c=0;const d=l.length;e:for(;c<d;){tn.lastIndex=c;const a=tn.exec(l);if(!a)break;let u=!0,h=!0;c=a.index+1;const p="'"===a[0];let m=32;if(a.index-1>=0)m=l.charCodeAt(a.index-1);else for(n=s-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=s+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=It(m)||Tt(m),b=It(f)||Tt(f),y=Dt(m),v=Dt(f);if(v?u=!1:b&&(y||g||(u=!1)),y?h=!1:g&&(v||b||(h=!1)),34===f&&'"'===a[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]),nn(r,s,a.index,l),nn(r,e.token,e.pos,o),i.length=n;continue e}}u?i.push({token:s,pos:a.index,single:p,level:o}):h&&p&&nn(r,s,a.index,"’")}else p&&nn(r,s,a.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 s=t[r];n+=e.slice(i,s.pos)+s.ch,i=s.pos+1}return n+e.slice(i)}(e[t].content,r[t])})}const sn=[["normalize",function(e){let t;t=e.src.replace(qt,"\n"),t=t.replace(Vt,"�"),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 s=i.length-1;s>=0;s--){const a=i[s];if("link_close"!==a.type){if("html_inline"===a.type&&(Ut(a.content)&&r>0&&r--,Zt(a.content)&&r++),!(r>0)&&"text"===a.type&&e.md.linkify.test(a.content)){const r=a.content;let o=e.md.linkify.match(r);const l=[];let c=a.level,d=0;o.length>0&&0===o[0].index&&s>0&&"text_special"===i[s-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 s=o[t].text;s=o[t].schema?"mailto:"!==o[t].schema||/^mailto:/i.test(s)?e.md.normalizeLinkText(s):e.md.normalizeLinkText("mailto:"+s).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+s).replace(/^http:\/\//,"");const a=o[t].index;if(a>d){const t=new e.Token("text","",0);t.content=r.slice(d,a),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=s,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=pt(i,s,l)}}else for(s--;i[s].level!==a.level&&"link_open"!==i[s].type;)s--}}}],["replacements",function(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(Wt.test(e.tokens[t].content)&&Yt(e.tokens[t].children),Kt.test(e.tokens[t].content)&&Qt(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&&en.test(e.tokens[t].content)&&rn(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,s=r.length;for(t=0;t<s;t++)"text_special"===r[t].type&&(r[t].type="text");for(t=n=0;t<s;t++)"text"===r[t].type&&t+1<s&&"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 an(){this.ruler=new jt;for(let e=0;e<sn.length;e++)this.ruler.push(sn[e][0],sn[e][1])}function on(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,s=r.length,a=!1;t<s;t++){const o=r.charCodeAt(t);if(!a){if(St(o)){n++,9===o?i+=4-i%4:i++;continue}a=!0}10!==o&&t!==s-1||(10!==o&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(n),this.sCount.push(i),this.bsCount.push(0),a=!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}an.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,i=t.length;n<i;n++)t[n](e)},an.prototype.State=Ht,on.prototype.push=function(e,t,n){const i=new Pt(e,t,n);return i.block=!0,n<0&&this.level--,i.level=this.level,n>0&&this.level++,this.tokens.push(i),i},on.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},on.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},on.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t;e++){if(!St(this.src.charCodeAt(e)))break}return e},on.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!St(this.src.charCodeAt(--e)))return e+1;return e},on.prototype.skipChars=function(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},on.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},on.prototype.getLines=function(e,t,n,i){if(e>=t)return"";const r=new Array(t-e);for(let s=0,a=e;a<t;a++,s++){let e=0;const o=this.bMarks[a];let l,c=o;for(l=a+1<t||i?this.eMarks[a]+1:this.eMarks[a];c<l&&e<n;){const t=this.src.charCodeAt(c);if(St(t))9===t?e+=4-(e+this.bsCount[a])%4:e++;else{if(!(c-o<this.tShift[a]))break;e++}c++}r[s]=e>n?new Array(e-n+1).join(" ")+this.src.slice(c,l):this.src.slice(c,l)}return r.join("")},on.prototype.Token=Pt;function ln(e,t){const n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];return e.src.slice(n,i)}function cn(e){const t=[],n=e.length;let i=0,r=e.charCodeAt(i),s=!1,a=0,o="";for(;i<n;)124===r&&(s?(o+=e.substring(a,i-1),a=i):(t.push(o+e.substring(a,i)),o="",a=i+1)),s=92===r,i++,r=e.charCodeAt(i);return t.push(o+e.substring(a)),t}function dn(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(!St(e.src.charCodeAt(i)))return-1}return i}function un(e,t){const n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];let r=n;if(r+1>=i)return-1;let s=e.src.charCodeAt(r++);if(s<48||s>57)return-1;for(;;){if(r>=i)return-1;if(s=e.src.charCodeAt(r++),!(s>=48&&s<=57)){if(41===s||46===s)break;return-1}if(r-n>=10)return-1}return r<i&&(s=e.src.charCodeAt(r),!St(s))?-1:r}const hn="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",pn="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",mn=new RegExp("^(?:"+hn+"|"+pn+"|\x3c!---?>|\x3c!--(?:[^-]|-[^-]|--[^>])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),fn=new RegExp("^(?:"+hn+"|"+pn+")"),gn=[[/^<(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(fn.source+"\\s*$"),/^$/,!1]];const bn=[["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 s=e.bMarks[r]+e.tShift[r];if(s>=e.eMarks[r])return!1;const a=e.src.charCodeAt(s++);if(124!==a&&45!==a&&58!==a)return!1;if(s>=e.eMarks[r])return!1;const o=e.src.charCodeAt(s++);if(124!==o&&45!==o&&58!==o&&!St(o))return!1;if(45===a&&St(o))return!1;for(;s<e.eMarks[r];){const t=e.src.charCodeAt(s);if(124!==t&&45!==t&&58!==t&&!St(t))return!1;s++}let l=ln(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=ln(e,t).trim(),-1===l.indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;c=cn(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,s=p.length;t<s;t++)if(p[t](e,r,n,!0)){i=!0;break}if(i)break;if(l=ln(e,r).trim(),!l)break;if(e.sCount[r]-e.blkIndent>=4)break;if(c=cn(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 s=e.push("code_block","code",0);return s.content=e.getLines(t,r,4+e.blkIndent,!1)+"\n",s.map=[t,e.line],!0}],["fence",function(e,t,n,i){let r=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(r+3>s)return!1;const a=e.src.charCodeAt(r);if(126!==a&&96!==a)return!1;let o=r;r=e.skipChars(r,a);let l=r-o;if(l<3)return!1;const c=e.src.slice(o,r),d=e.src.slice(r,s);if(96===a&&d.indexOf(String.fromCharCode(a))>=0)return!1;if(i)return!0;let u=t,h=!1;for(;(u++,!(u>=n))&&(r=o=e.bMarks[u]+e.tShift[u],s=e.eMarks[u],!(r<s&&e.sCount[u]<e.blkIndent));)if(e.src.charCodeAt(r)===a&&!(e.sCount[u]-e.blkIndent>=4||(r=e.skipChars(r,a),r-o<l||(r=e.skipSpaces(r),r<s)))){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],s=e.eMarks[t];const a=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],s=e.eMarks[p],r>=s)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 a=i;for(o.push(e.bMarks[p]),e.bMarks[p]=r;r<s;){const t=e.src.charCodeAt(r);if(!St(t))break;9===t?a+=4-(a+e.bsCount[p]+(n?1:0))%4:a++,r++}m=r>=s,l.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(t?1:0),c.push(e.sCount[p]),e.sCount[p]=a-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=a,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 s=e.bMarks[t]+e.tShift[t];const a=e.src.charCodeAt(s++);if(42!==a&&45!==a&&95!==a)return!1;let o=1;for(;s<r;){const t=e.src.charCodeAt(s++);if(t!==a&&!St(t))return!1;t===a&&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(a)),!0},["paragraph","reference","blockquote","list"]],["list",function(e,t,n,i){let r,s,a,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=un(e,l))>=0){if(d=!0,a=e.bMarks[l]+e.tShift[l],u=Number(e.src.slice(a,h-1)),p&&1!==u)return!1}else{if(!((h=dn(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;){s=h,r=e.eMarks[l];const t=e.sCount[l]+h-(e.bMarks[l]+e.tShift[l]);let i=t;for(;s<r;){const t=e.src.charCodeAt(s);if(9===t)i+=4-(i+e.bsCount[l])%4;else{if(32!==t)break;i++}s++}const u=s;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(a,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=un(e,l),h<0)break;a=e.bMarks[l]+e.tShift[l]}else if(h=dn(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],s=e.eMarks[t],a=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 s=!1;for(let r=0,a=i.length;r<a;r++)if(i[r](e,t,n,!0)){s=!0;break}if(e.parentType=r,s)return null}const r=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];return e.src.slice(r,s+1)}let l=e.src.slice(r,s+1);s=l.length;let c=-1;for(r=1;r<s;r++){const e=l.charCodeAt(r);if(91===e)return!1;if(93===e){c=r;break}if(10===e){const e=o(a);null!==e&&(l+=e,s=l.length,a++)}else if(92===e&&(r++,r<s&&10===l.charCodeAt(r))){const e=o(a);null!==e&&(l+=e,s=l.length,a++)}}if(c<0||58!==l.charCodeAt(c+1))return!1;for(r=c+2;r<s;r++){const e=l.charCodeAt(r);if(10===e){const e=o(a);null!==e&&(l+=e,s=l.length,a++)}else if(!St(e))break}const d=e.md.helpers.parseLinkDestination(l,r,s);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=a,m=r;for(;r<s;r++){const e=l.charCodeAt(r);if(10===e){const e=o(a);null!==e&&(l+=e,s=l.length,a++)}else if(!St(e))break}let f,g=e.md.helpers.parseLinkTitle(l,r,s);for(;g.can_continue;){const t=o(a);if(null===t)break;l+=t,r=s,s=l.length,a++,g=e.md.helpers.parseLinkTitle(l,r,s,g)}for(r<s&&m!==r&&g.ok?(f=g.str,r=g.pos):(f="",r=h,a=p);r<s;){if(!St(l.charCodeAt(r)))break;r++}if(r<s&&10!==l.charCodeAt(r)&&f)for(f="",r=h,a=p;r<s;){if(!St(l.charCodeAt(r)))break;r++}if(r<s&&10!==l.charCodeAt(r))return!1;const b=Lt(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=a),!0)}],["html_block",function(e,t,n,i){let r=e.bMarks[t]+e.tShift[t],s=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 a=e.src.slice(r,s),o=0;for(;o<gn.length&&!gn[o][0].test(a);o++);if(o===gn.length)return!1;if(i)return gn[o][2];let l=t+1;const c=gn[o][1].test("");if(!gn[o][1].test(a))for(;l<n&&(!(e.sCount[l]<e.blkIndent)||!c&&e.isEmpty(l));l++)if(r=e.bMarks[l]+e.tShift[l],s=e.eMarks[l],a=e.src.slice(r,s),gn[o][1].test(a)){0!==a.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],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.src.charCodeAt(r);if(35!==a||r>=s)return!1;let o=1;for(a=e.src.charCodeAt(++r);35===a&&r<s&&o<=6;)o++,a=e.src.charCodeAt(++r);if(o>6||r<s&&!St(a))return!1;if(i)return!0;s=e.skipSpacesBack(s,r);const l=e.skipCharsBack(s,35,r);l>r&&St(e.src.charCodeAt(l-1))&&(s=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=Ft(e.src.slice(r,s)),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 s,a=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&&(s=e.src.charCodeAt(t),(45===s||61===s)&&(t=e.skipChars(t,s),t=e.skipSpaces(t),t>=n))){a=61===s?1:2;break}}if(e.sCount[o]<0)continue;let t=!1;for(let r=0,s=i.length;r<s;r++)if(i[r](e,o,n,!0)){t=!0;break}if(t)break}if(!a)return e.parentType=r,!1;const l=Ft(e.getLines(t,o,e.blkIndent,!1));e.line=o+1;const c=e.push("heading_open","h"+String(a),1);c.markup=String.fromCharCode(s),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(a),-1).markup=String.fromCharCode(s),e.parentType=r,!0}],["paragraph",function(e,t,n){const i=e.md.block.ruler.getRules("paragraph"),r=e.parentType;let s=t+1;for(e.parentType="paragraph";s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]<0)continue;let t=!1;for(let r=0,a=i.length;r<a;r++)if(i[r](e,s,n,!0)){t=!0;break}if(t)break}const a=Ft(e.getLines(t,s,e.blkIndent,!1));e.line=s,e.push("paragraph_open","p",1).map=[t,e.line];const o=e.push("inline","",0);return o.content=a,o.map=[t,e.line],o.children=[],e.push("paragraph_close","p",-1),e.parentType=r,!0}]];function yn(){this.ruler=new jt;for(let e=0;e<bn.length;e++)this.ruler.push(bn[e][0],bn[e][1],{alt:(bn[e][2]||[]).slice()})}function vn(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 wn(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}}yn.prototype.tokenize=function(e,t,n){const i=this.ruler.getRules(""),r=i.length,s=e.md.options.maxNesting;let a=t,o=!1;for(;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n))&&!(e.sCount[a]<e.blkIndent);){if(e.level>=s){e.line=n;break}const t=e.line;let l=!1;for(let s=0;s<r;s++)if(l=i[s](e,a,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),a=e.line,a<n&&e.isEmpty(a)&&(o=!0,a++,e.line=a)}},yn.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)},yn.prototype.State=on,vn.prototype.pushPending=function(){const e=new Pt("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},vn.prototype.push=function(e,t,n){this.pending&&this.pushPending();const i=new Pt(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},vn.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 s=e;for(;s<n&&this.src.charCodeAt(s)===i;)s++;const a=s-e;let o=s<n?this.src.charCodeAt(s):32;if(55296==(64512&o)){const e=this.src.charCodeAt(s+1);o=56320==(64512&e)?65536+(o-55296<<10)+(e-56320):65533}else 56320==(64512&o)&&(o=65533);const l=It(r)||Tt(r),c=It(o)||Tt(o),d=Dt(r),u=Dt(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:a}},vn.prototype.Token=Pt;const xn=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;const En=[];for(let e=0;e<256;e++)En.push(0);function kn(e,t){let n;const i=[],r=t.length;for(let s=0;s<r;s++){const r=t[s];if(126!==r.marker)continue;if(-1===r.end)continue;const a=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[a.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="","text"===e.tokens[a.token-1].type&&"~"===e.tokens[a.token-1].content&&i.push(a.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){En[e.charCodeAt(0)]=1});var _n={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 s=r.length;const a=String.fromCharCode(i);if(s<2)return!1;let o;s%2&&(o=e.push("text","",0),o.content=a,s--);for(let t=0;t<s;t+=2)o=e.push("text","",0),o.content=a+a,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;kn(e,e.delimiters);for(let i=0;i<n;i++)t[i]&&t[i].delimiters&&kn(e,t[i].delimiters)}};function An(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],s=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,a=String.fromCharCode(i.marker),o=e.tokens[i.token];o.type=s?"strong_open":"em_open",o.tag=s?"strong":"em",o.nesting=1,o.markup=s?a+a:a,o.content="";const l=e.tokens[r.token];l.type=s?"strong_close":"em_close",l.tag=s?"strong":"em",l.nesting=-1,l.markup=s?a+a:a,l.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[i.end+1].token].content="",n--)}}var Cn={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;An(e,e.delimiters);for(let i=0;i<n;i++)t[i]&&t[i].delimiters&&An(e,t[i].delimiters)}};const Sn=/^([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])?)*)$/,Dn=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;const Nn=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Tn=/^&([a-z][a-z0-9]{1,31});/i;function In(e){const t={},n=e.length;if(!n)return;let i=0,r=-2;const s=[];for(let a=0;a<n;a++){const n=e[a];if(s.push(0),e[i].marker===n.marker&&r===n.token-1||(i=a),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-s[i]-1,c=l;for(;l>o;l-=s[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?s[l-1]+1:0;s[a]=a-l+i,s[l]=i,n.open=!1,t.end=a,t.close=!1,c=-1,r=-2;break}}}-1!==c&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=c)}}const Ln=[["text",function(e,t){let n=e.pos;for(;n<e.posMax&&!wn(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(xn);if(!i)return!1;const r=i[1],s=e.md.linkify.matchAtStart(e.src.slice(n-r.length));if(!s)return!1;let a=s.url;if(a.length<=r.length)return!1;let o=a.length;for(;o>0&&42===a.charCodeAt(o-1);)o--;o!==a.length&&(a=a.slice(0,o));const l=e.md.normalizeLink(a);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(a);const n=e.push("link_close","a",-1);n.markup="linkify",n.info="auto"}return e.pos+=a.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&&St(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),St(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 s=e.src[n];if(r>=55296&&r<=56319&&n+1<i){const t=e.src.charCodeAt(n+1);t>=56320&&t<=57343&&(s+=e.src[n+1],n++)}const a="\\"+s;if(!t){const t=e.push("text_special","",0);r<256&&0!==En[r]?t.content=s:t.content=a,t.markup=a,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 s=e.src.slice(i,n),a=s.length;if(e.backticksScanned&&(e.backticks[a]||0)<=i)return t||(e.pending+=s),e.pos+=a,!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===a){if(!t){const t=e.push("code_inline","code",0);t.markup=s,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+=s),e.pos+=a,!0}],["strikethrough",_n.tokenize],["emphasis",Cn.tokenize],["link",function(e,t){let n,i,r,s,a="",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),St(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(a=e.md.normalizeLink(r.str),e.md.validateLink(a)?m=r.pos:a="",l=m;m<u&&(n=e.src.charCodeAt(m),St(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),St(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)),s=e.env.references[Lt(i)],!s)return e.pos=d,!1;a=s.href,o=s.title}if(!t){e.pos=h,e.posMax=p;const t=[["href",a]];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,s,a,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(s=m+1,s<h&&40===e.src.charCodeAt(s)){for(s++;s<h&&(n=e.src.charCodeAt(s),St(n)||10===n);s++);if(s>=h)return!1;for(c=s,o=e.md.helpers.parseLinkDestination(e.src,s,e.posMax),o.ok&&(d=e.md.normalizeLink(o.str),e.md.validateLink(d)?s=o.pos:d=""),c=s;s<h&&(n=e.src.charCodeAt(s),St(n)||10===n);s++);if(o=e.md.helpers.parseLinkTitle(e.src,s,e.posMax),s<h&&c!==s&&o.ok)for(l=o.str,s=o.pos;s<h&&(n=e.src.charCodeAt(s),St(n)||10===n);s++);else l="";if(s>=h||41!==e.src.charCodeAt(s))return e.pos=u,!1;s++}else{if(void 0===e.env.references)return!1;if(s<h&&91===e.src.charCodeAt(s)?(c=s+1,s=e.md.helpers.parseLinkLabel(e,s),s>=0?r=e.src.slice(c,s++):s=m+1):s=m+1,r||(r=e.src.slice(p,m)),a=e.env.references[Lt(r)],!a)return e.pos=u,!1;d=a.href,l=a.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=s,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 s=e.src.slice(i+1,n);if(Dn.test(s)){const n=e.md.normalizeLink(s);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(s);const i=e.push("link_close","a",-1);i.markup="autolink",i.info="auto"}return e.pos+=s.length+2,!0}if(Sn.test(s)){const n=e.md.normalizeLink("mailto:"+s);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(s);const i=e.push("link_close","a",-1);i.markup="autolink",i.info="auto"}return e.pos+=s.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 s=e.src.slice(i).match(mn);if(!s)return!1;if(!t){const t=e.push("html_inline","",0);t.content=s[0],a=t.content,/^<a[>\s]/i.test(a)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(t.content)&&e.linkLevel--}var a;return e.pos+=s[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(Nn);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=mt(t)?ft(t):ft(65533),n.markup=i[0],n.info="entity"}return e.pos+=i[0].length,!0}}else{const i=e.src.slice(n).match(Tn);if(i){const n=(r=i[0],ct(r,nt.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}]],Mn=[["balance_pairs",function(e){const t=e.tokens_meta,n=e.tokens_meta.length;In(e.delimiters);for(let e=0;e<n;e++)t[e]&&t[e].delimiters&&In(t[e].delimiters)}],["strikethrough",_n.postProcess],["emphasis",Cn.postProcess],["fragments_join",function(e){let t,n,i=0;const r=e.tokens,s=e.tokens.length;for(t=n=0;t<s;t++)r[t].nesting<0&&i--,r[t].level=i,r[t].nesting>0&&i++,"text"===r[t].type&&t+1<s&&"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 Fn(){this.ruler=new jt;for(let e=0;e<Ln.length;e++)this.ruler.push(Ln[e][0],Ln[e][1]);this.ruler2=new jt;for(let e=0;e<Mn.length;e++)this.ruler2.push(Mn[e][0],Mn[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 On(e){return Object.prototype.toString.call(e)}function Bn(e){return"[object Function]"===On(e)}function Rn(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}Fn.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),i=n.length,r=e.md.options.maxNesting,s=e.cache;if(void 0!==s[t])return void(e.pos=s[t]);let a=!1;if(e.level<r){for(let r=0;r<i;r++)if(e.level++,a=n[r](e,!0),e.level--,a){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;a||e.pos++,s[t]=e.pos},Fn.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 s=e.pos;let a=!1;if(e.level<r)for(let i=0;i<n;i++)if(a=t[i](e,!1),a){if(s>=e.pos)throw new Error("inline rule didn't increment state.pos");break}if(a){if(e.pos>=i)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Fn.prototype.parse=function(e,t,n,i){const r=new this.State(e,t,n,i);this.tokenize(r);const s=this.ruler2.getRules(""),a=s.length;for(let e=0;e<a;e++)s[e](r)},Fn.prototype.State=vn;const $n={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}}},Pn="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Hn(e){const t=e.re=function(e){const t={};e=e||{},t.src_Any=qe.source,t.src_Cc=Ve.source,t.src_Z=Ke.source,t.src_P=Ue.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 s(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]"===On(n))return!function(e){return"[object RegExp]"===On(e)}(n.validate)?Bn(n.validate)?i.validate=n.validate:s(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(Bn(n.normalize)?i.normalize=n.normalize:n.normalize?s(t,n):i.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===On(e)}(n)?s(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 a=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(Rn).join("|");e.re.schema_test=RegExp(`(^|(?!_)(?:[><|]|${t.src_ZPCc}))(${a})`,"i"),e.re.schema_search=RegExp(`(^|(?!_)(?:[><|]|${t.src_ZPCc}))(${a})`,"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 qn(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 Vn(e,t){if(!(this instanceof Vn))return new Vn(e,t);var n;t||(n=e,Object.keys(n||{}).reduce(function(e,t){return e||$n.hasOwnProperty(t)},!1)&&(t=e,e={})),this.__opts__=zn({},$n,t),this.__schemas__=zn({},jn,e),this.__compiled__={},this.__tlds__=Pn,this.__tlds_replaced__=!1,this.re={},Hn(this)}Vn.prototype.add=function(e,t){return this.__schemas__[e]=t,Hn(this),this},Vn.prototype.set=function(e){return this.__opts__=zn(this.__opts__,e),this},Vn.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))},Vn.prototype.pretest=function(e){return this.re.pretest.test(e)},Vn.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},Vn.prototype.match=function(e){const t=[],n=[],i=[],r=[];let s,a,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!==(s=o.exec(e));)a=this.testSchemaAt(e,s[2],o.lastIndex),a&&n.push({schema:s[2],index:s.index+s[1].length,lastIndex:s.index+s[0].length+a});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!==(s=o.exec(e));)i.push({schema:"",index:s.index+s[1].length,lastIndex:s.index+s[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for(o=this.re.email_fuzzy_global,o.lastIndex=0;null!==(s=o.exec(e));)r.push({schema:"mailto:",index:s.index+s[1].length,lastIndex:s.index+s[0].length});const c=[0,0,0];let d=0;for(;;){const s=[n[c[0]],r[c[1]],i[c[2]]],a=l(l(s[0],s[1]),s[2]);if(!a)break;if(a===s[0]?c[0]++:a===s[1]?c[1]++:c[2]++,a.index<d)continue;const o=new qn(e,a.schema,a.index,a.lastIndex);this.__compiled__[o.schema].normalize(o,this),t.push(o),d=a.lastIndex}return t.length?t:null},Vn.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 qn(e,t[2],t.index+t[1].length,t.index+t[0].length+n);return this.__compiled__[i.schema].normalize(i,this),i},Vn.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(),Hn(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Hn(this),this)},Vn.prototype.normalize=function(e){e.schema||(e.url=`http://${e.url}`),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url=`mailto:${e.url}`)},Vn.prototype.onCompile=function(){};const Un=2147483647,Zn=36,Kn=/^xn--/,Wn=/[^\0-\x7F]/,Gn=/[\x2E\u3002\uFF0E\uFF61]/g,Xn={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Jn=Math.floor,Yn=String.fromCharCode;function Qn(e){throw new RangeError(Xn[e])}function ei(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(Gn,".")).split("."),t).join(".");return i+r}function ti(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 ni=function(e){return e>=48&&e<58?e-48+26:e>=65&&e<91?e-65:e>=97&&e<123?e-97:Zn},ii=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},ri=function(e,t,n){let i=0;for(e=n?Jn(e/700):e>>1,e+=Jn(e/t);e>455;i+=Zn)e=Jn(e/35);return Jn(i+36*e/(e+38))},si=function(e){const t=[],n=e.length;let i=0,r=128,s=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let n=0;n<a;++n)e.charCodeAt(n)>=128&&Qn("not-basic"),t.push(e.charCodeAt(n));for(let o=a>0?a+1:0;o<n;){const a=i;for(let t=1,r=Zn;;r+=Zn){o>=n&&Qn("invalid-input");const a=ni(e.charCodeAt(o++));a>=Zn&&Qn("invalid-input"),a>Jn((Un-i)/t)&&Qn("overflow"),i+=a*t;const l=r<=s?1:r>=s+26?26:r-s;if(a<l)break;const c=Zn-l;t>Jn(Un/c)&&Qn("overflow"),t*=c}const l=t.length+1;s=ri(i-a,l,0==a),Jn(i/l)>Un-r&&Qn("overflow"),r+=Jn(i/l),i%=l,t.splice(i++,0,r)}return String.fromCodePoint(...t)},ai=function(e){const t=[],n=(e=ti(e)).length;let i=128,r=0,s=72;for(const n of e)n<128&&t.push(Yn(n));const a=t.length;let o=a;for(a&&t.push("-");o<n;){let n=Un;for(const t of e)t>=i&&t<n&&(n=t);const l=o+1;n-i>Jn((Un-r)/l)&&Qn("overflow"),r+=(n-i)*l,i=n;for(const n of e)if(n<i&&++r>Un&&Qn("overflow"),n===i){let e=r;for(let n=Zn;;n+=Zn){const i=n<=s?1:n>=s+26?26:n-s;if(e<i)break;const r=e-i,a=Zn-i;t.push(Yn(ii(i+r%a,0))),e=Jn(r/a)}t.push(Yn(ii(e,0))),s=ri(r,l,o===a),r=0,++o}++r,++i}return t.join("")},oi=function(e){return ei(e,function(e){return Wn.test(e)?"xn--"+ai(e):e})},li=function(e){return ei(e,function(e){return Kn.test(e)?si(e.slice(4).toLowerCase()):e})};const ci={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"]}}}},di=/^(vbscript|javascript|file|data):/,ui=/^data:image\/(gif|png|jpeg|webp);/;function hi(e){const t=e.trim().toLowerCase();return!di.test(t)||ui.test(t)}const pi=["http:","https:","mailto:"];function mi(e){const t=je(e,!0);if(t.hostname&&(!t.protocol||pi.indexOf(t.protocol)>=0))try{t.hostname=oi(t.hostname)}catch(e){}return Ce(Se(t))}function fi(e){const t=je(e,!0);if(t.hostname&&(!t.protocol||pi.indexOf(t.protocol)>=0))try{t.hostname=li(t.hostname)}catch(e){}return _e(Se(t),_e.defaultChars+"%")}function gi(e,t){if(!(this instanceof gi))return new gi(e,t);t||dt(e)||(t=e||{},e="default"),this.inline=new Fn,this.block=new yn,this.core=new an,this.renderer=new $t,this.linkify=new Vn,this.validateLink=hi,this.normalizeLink=mi,this.normalizeLinkText=fi,this.utils=Ot,this.helpers=ht({},Bt),this.options={},this.configure(e),t&&this.set(t)}function bi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yi,vi;function wi(){if(vi)return yi;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}vi=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,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}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 s{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 a=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class o{constructor(){this.rootNode=a(),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=a({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 s(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]},A={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[k]},C=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 s=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(/[ ]+/,"(",s,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},S=C("//","$"),D=C("/\\*","\\*/"),N=C("#","$"),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]}]},F={scope:"title",begin:y,relevance:0},z={scope:"title",begin:v,relevance:0},O={begin:"\\.\\s*"+v,relevance:0};var B=Object.freeze({__proto__:null,APOS_STRING_MODE:_,BACKSLASH_ESCAPE:k,BINARY_NUMBER_MODE:L,BINARY_NUMBER_RE:E,COMMENT:C,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:O,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:A,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:F,UNDERSCORE_IDENT_RE:v,UNDERSCORE_TITLE_MODE:z});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,K(n[0],n[1])]})}}function K(e,t){return t?Number(t):function(e){return U.includes(e.toLowerCase())}(e)?0:1}const W={},G=e=>{console.error(e)},X=(e,...t)=>{console.log(`WARN: ${e}`,...t)},J=(e,t)=>{W[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),W[`${e}/${t}`]=!0)},Y=new Error;function Q(e,t,{key:n}){let i=0;const r=e[n],s={},a={};for(let e=1;e<=t.length;e++)a[e+i]=r[e],s[e+i]=!0,i+=f(t[e-1]);e[n]=a,e[n]._emit=s,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(s,a){const o=s;if(s.isCompiled)return o;[$,H,ee,V].forEach(e=>e(s,a)),e.compilerExtensions.forEach(e=>e(s,a)),s.__beforeBegin=null,[j,P,q].forEach(e=>e(s,a)),s.isCompiled=!0;let l=null;return"object"==typeof s.keywords&&s.keywords.$pattern&&(s.keywords=Object.assign({},s.keywords),l=s.keywords.$pattern,delete s.keywords.$pattern),l=l||/\w+/,s.keywords&&(s.keywords=Z(s.keywords,e.case_insensitive)),o.keywordPatternRe=t(l,!0),a&&(s.begin||(s.begin=/\B|\b/),o.beginRe=t(o.begin),s.end||s.endsWithParent||(s.end=/\B|\b/),s.end&&(o.endRe=t(o.end)),o.terminatorEnd=c(o.end)||"",s.endsWithParent&&a.terminatorEnd&&(o.terminatorEnd+=(s.end?"|":"")+a.terminatorEnd)),s.illegal&&(o.illegalRe=t(s.illegal)),s.contains||(s.contains=[]),s.contains=[].concat(...s.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?s:e)})),s.contains.forEach(function(e){n(e,o)}),s.starts&&n(s.starts,a),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,se=i,ae=Symbol("nomatch"),oe=function(n){const i=Object.create(null),r=Object.create(null),s=[];let a=!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 s={code:i,language:r};C("before:highlight",s);const a=s.result?s.result:y(s.language,s.code,n);return a.code=s.code,C("after:highlight",a),a}function y(e,n,r,s){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,s]=r;if(N.addText(n),n="",l[i]=(l[i]||0)+1,l[i]<=7&&(I+=s),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):(F=!0,0)}function w(e){const t=e[0],i=n.substring(e.index),r=g(S,e,i);if(!r)return ae;const s=S;S.endScope&&S.endScope._wrap?(u(),h(t,S.endScope._wrap)):S.endScope&&S.endScope._multi?(u(),p(S.endScope,e)):s.skip?T+=t:(s.returnEnd||s.excludeEnd||(T+=t),u(),s.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),s.returnEnd?0:t.length}let x={};function E(i,s){const o=s&&s[0];if(T+=i,null==o)return u(),0;if("begin"===x.type&&"end"===s.type&&x.index===s.index&&""===o){if(T+=n.slice(s.index,s.index+1),!a){const t=new Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=x.rule,t}return 1}if(x=s,"begin"===s.type)return function(e){const n=e[0],i=e.rule,r=new t(i),s=[i.__beforeBegin,i["on:begin"]];for(const t of s)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}(s);if("illegal"===s.type&&!r){const e=new Error('Illegal lexeme "'+o+'" for mode "'+(S.scope||"<unnamed>")+'"');throw e.mode=S,e}if("end"===s.type){const e=w(s);if(e!==ae)return e}if("illegal"===s.type&&""===o)return T+="\n",1;if(M>1e5&&M>3*s.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 A=te(_);let C="",S=s||A;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,F=!1;try{if(_.__emitTokens)_.__emitTokens(n,N);else{for(S.matcher.considerAll();;){M++,F?F=!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(),C=N.toHTML(),{language:e,value:C,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:C},_emitter:N};if(a)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(A).map(t=>y(t,e,!1));r.unshift(n);const s=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}),[a,o]=s,l=a;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(C("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,s=n?b(i,{language:n,ignoreIllegals:!0}):v(i);e.innerHTML=s.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,s.language),e.result={language:s.language,re:s.relevance,relevance:s.relevance},s.secondBest&&(e.secondBest={language:s.secondBest.language,relevance:s.secondBest.relevance}),C("after:highlightElement",{el:e,result:s,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 A(e){const t=k(e);return t&&!t.disableAutodetect}function C(e,t){const n=e;s.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=se(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)),!a)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:A,inherit:se,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),s.push(e)},removePlugin:function(e){const t=s.indexOf(e);-1!==t&&s.splice(t,1)}}),n.debugMode=function(){a=!1},n.safeMode=function(){a=!0},n.versionString="11.11.1",n.regex={concat:p,lookahead:d,either:m,optional:h,anyNumberOfTimes:u};for(const t in B)"object"==typeof B[t]&&e(B[t]);return Object.assign(n,B),n},le=oe({});return le.newInstance=()=>oe({}),yi=le,le.HighlightJS=le,le.default=le,yi}gi.prototype.set=function(e){return ht(this.options,e),this},gi.prototype.configure=function(e){const t=this;if(dt(e)){const t=e;if(!(e=ci[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},gi.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},gi.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},gi.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},gi.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},gi.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},gi.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},gi.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var xi=bi(wi());const Ei="[A-Za-z$_][0-9A-Za-z$_]*",ki=["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"],_i=["true","false","null","undefined","NaN","Infinity"],Ai=["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"],Ci=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Si=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Di=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Ni=[].concat(Si,Ai,Ci);const Ti="[A-Za-z$_][0-9A-Za-z$_]*",Ii=["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"],Li=["true","false","null","undefined","NaN","Infinity"],Mi=["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"],Fi=["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"],Oi=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Bi=[].concat(zi,Mi,Fi);function Ri(e){const t=e.regex,n=Ti,i="<>",r="</>",s={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 s=e.input.substring(n);((r=s.match(/^\s*=/))||(r=s.match(/^\s+extends\s+/))&&0===r.index)&&t.ignoreMatch()}},a={$pattern:Ti,keyword:Ii,literal:Li,built_in:Bi,"variable.language":Oi},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:a,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:a,contains:["self"].concat(b)});const y=[].concat(g,u.contains),v=y.concat([{begin:/(\s*)\(/,end:/\)/,keywords:a,contains:["self"].concat(y)}]),w={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,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:{_:[...Mi,...Fi]}},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},A={begin:t.concat(/\./,t.lookahead(t.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},C={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:a,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:a,contains:v}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i,end:r},{match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.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},A,{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,C,{match:/\$[(.]/}]}}const $i=["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(),Pi=["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(),Hi=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),qi=["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();xi.registerLanguage("javascript",function(e){const t=e.regex,n=Ei,i="<>",r="</>",s={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 s=e.input.substring(n);((r=s.match(/^\s*=/))||(r=s.match(/^\s+extends\s+/))&&0===r.index)&&t.ignoreMatch()}},a={$pattern:Ei,keyword:ki,literal:_i,built_in:Ni,"variable.language":Di},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:a,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:a,contains:["self"].concat(b)});const y=[].concat(g,u.contains),v=y.concat([{begin:/(\s*)\(/,end:/\)/,keywords:a,contains:["self"].concat(y)}]),w={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,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:{_:[...Ai,...Ci]}},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("|"),")")}([...Si,"super","import"].map(e=>`${e}\\s*\\(`)),n,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},A={begin:t.concat(/\./,t.lookahead(t.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},C={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:a,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:a,contains:v}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i,end:r},{match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.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},A,{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,C,{match:/\$[(.]/}]}}),xi.registerLanguage("typescript",function(e){const t=e.regex,n=Ri(e),i=Ti,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],s={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},a={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[n.exports.CLASS_REFERENCE]},o={$pattern:Ti,keyword:Ii.concat(["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"]),literal:Li,built_in:Bi.concat(r),"variable.language":Oi},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,s,a,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}),xi.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"]},s={className:"meta",begin:/^(>>>|\.\.\.) /},a={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,s],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,s],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,s,o,a]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,s,o,a]},{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,a]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,o,a]},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",s,h,l,e.HASH_COMMENT_MODE]}]};return a.contains=[l,h,s],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:r,illegal:/(<\/|\?)|=>/,contains:[s,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]}]}}),xi.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"}}),xi.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,{}[\]]+/}]}),s={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"},a={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},o={begin:/\{/,end:/\}/,contains:[a],illegal:"\\n",relevance:0},l={begin:"\\[",end:"\\]",contains:[a],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}},s,{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),a.contains=d,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:c}}),xi.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]},s=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),a={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,s,a,{match:/(\/[a-z._-]+)+/},o,{match:/\\"/},{className:"string",begin:/'/,end:/'/},{match:/\\'/},n]}}),xi.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/}]},s=e.inherit(r,{begin:/\(/,end:/\)/}),a=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,a,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[r,s,o,a]}]}]},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}]}]}}),xi.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:":("+Pi.join("|")+")"},{begin:":(:)?("+Hi.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+qi.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("+$i.join("|")+")\\b"}]}}),xi.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,s=["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)),a={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)}(s,{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,a,{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}]}}),xi.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}]},s=e.inherit(i,{contains:[]}),a=e.inherit(r,{contains:[]});i.contains.push(a),r.contains.push(s);let o=[t,n];return[i,r,s,a].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});/}]}}),xi.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 Vi={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 Ui(e){const t=new gi({html:!1,linkify:!0,breaks:!0,highlight:e?(e,t)=>{const n=function(e){const t=(e||"").trim().toLowerCase();if(!t)return;const n=Vi[t]??t;return xi.getLanguage(n)?n:void 0}(t);if(n)try{return xi.highlight(e,{language:n,ignoreIllegals:!0}).value}catch{}return""}:void 0});return t}const Zi=Ui(!0),Ki=Ui(!1);const Wi={ActivityBar:z,AppBar:P,Statusbar:H,View:G,Views:Q,KeyboardShortcuts:ee,Layout:se,ContentTabs:ae,PanelTabs:he,PanelContainers:me,PanelLayout:{manager:Ee},Profile:n,Markdown:{render:function(e,t){return(!1===t?.highlight?Ki:Zi).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 Gi{name=i.SHELL.ACTIVITY_BAR;version="1.0.0";dependencies=[i.KERNEL.COMMANDS,i.RUNTIME.WORKSPACE];#Vt=r.CREATED;get state(){return this.#Vt}async bootstrap(e){const{punica:t,registry:n}=e,s=n.getState(i.KERNEL.COMMANDS),a=n.getState(i.RUNTIME.WORKSPACE);if(s!==r.BOOTSTRAPPED)throw new Error("kernel.commands must be bootstrapped before shell.activityBar");if(a!==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 Xi{name="shell.appBar";version="1.0.0";dependencies=[i.KERNEL.COMMANDS,i.SHELL.LAYOUT];#Vt=r.CREATED;get state(){return this.#Vt}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}P.manager.init(n)}}class Ji{name=i.SHELL.STATUSBAR;version="1.0.0";dependencies=[i.KERNEL.EVENTS];#Vt=r.CREATED;get state(){return this.#Vt}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 Yi{name=i.SHELL.VIEW;version="1.0.0";dependencies=[i.KERNEL.COMMANDS];#Vt=r.CREATED;get state(){return this.#Vt}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(w(),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 Qi{name=i.SHELL.VIEWS;version="1.0.0";dependencies=[i.SHELL.LAYOUT,i.KERNEL.COMMANDS];#Vt=r.CREATED;get state(){return this.#Vt}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 er{name=i.SHELL.KEYBOARD_SHORTCUTS;version="1.0.0";dependencies=[i.KERNEL.COMMANDS];#Vt=r.CREATED;get state(){return this.#Vt}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:[a(t)],when:i})};t("mod+j",s.SHELL.TOGGLE_PANEL),t("mod+b",s.SHELL.TOGGLE_PRIMARY_SIDEBAR),t("mod+l",s.SHELL.TOGGLE_SECONDARY_SIDEBAR)}()}}class tr{name=i.SHELL.LAYOUT;version="1.0.0";dependencies=[i.KERNEL.COMMANDS,i.RUNTIME.WORKSPACE];#Vt=r.CREATED;get state(){return this.#Vt}async bootstrap(e){const{punica:t,registry:n}=e,s=n.getState(i.KERNEL.COMMANDS),a=n.getState(i.RUNTIME.WORKSPACE);if(s!==r.BOOTSTRAPPED)throw new Error("kernel.commands must be bootstrapped before shell.layout");if(a!==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 nr{name=i.SHELL.CONTENT_TABS;version="1.0.0";dependencies=[i.KERNEL.COMMANDS];#Vt=r.CREATED;get state(){return this.#Vt}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){}}class ir{name=i.SHELL.PANEL_TABS;version="1.0.0";dependencies=[i.KERNEL.COMMANDS];#Vt=r.CREATED;get state(){return this.#Vt}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 rr{name=i.SHELL.PANEL_LAYOUT;version="1.0.0";dependencies=[i.KERNEL.COMMANDS];#Vt=r.CREATED;get state(){return this.#Vt}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 sr=["<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(""),ar={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(sr)}`}},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:[{id:"appbar-settings",icon:'<i class="fa-solid fa-gear"></i>',title:"Settings",alignment:"right",command:"settings.open"},{id:"appbar-account",kind:"avatar",label:"ivyx",title:"Account",alignment:"right",summaryCommand:"host.account.summary",initialsCommand:"host.account.initials",menu:[{id:"account-settings",label:"Settings",command:"settings.open"},{id:"account-activate",label:"Activate License…",command:"host.license.activate"},{id:"account-updates",label:"Check for Updates…",command:"host.app.checkForUpdates"}]}]}},theme:{mode:"auto",density:"comfortable",branding:{productName:"IVYX Studio"}},capabilities:{allowedIds:"*"},localization:{default:"en",supported:["en","tr"]}},or={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 lr(){o({facade:Wi,moduleFactories:{"shell.statusbar":()=>new Ji,"shell.view":()=>new Yi,"shell.views":()=>new Qi,"shell.keyboardShortcuts":()=>new er,"shell.contentTabs":()=>new nr,"shell.panelTabs":()=>new ir,"shell.panelLayout":()=>new rr,"shell.layout":()=>new tr,"shell.activityBar":()=>new Gi,"shell.appBar":()=>new Xi},profiles:[ar,or],defaultProfileId:"ivyx-classic"})}export{lr as registerClassicShell};
1
+ import{emitShellEvent as e,isHeadlessScope as t,Profile as n,MODULE_NAMES as i,ModuleLifecycleState as r,COMMAND_IDS as s,parseKeyChord as a,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;#s=null;#a=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.#a=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.#a?.()),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.#s){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.#s=e}this.#s.parentElement!==e&&e.appendChild(this.#s),this.#s.style.display=this.#n?"block":"none"}#v(){const e=this.#s?.parentElement;e&&this.#s&&e.removeChild(this.#s)}#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.#s?.setPointerCapture?.(e.pointerId)}catch{}let i=null,r=null;const s="function"==typeof requestAnimationFrame?requestAnimationFrame:null,a=()=>{if(r=null,null===i)return;const e=i;i=null,this.#E(e,!1)},o=e=>{i=e.clientX-t,s?null===r&&(r=s(a)):a()},l=()=>{window.removeEventListener("pointermove",o),window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",l),null!==r&&"function"==typeof cancelAnimationFrame&&(cancelAnimationFrame(r),r=null),a(),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){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 v="punica-secret-adornment-styles";function w(){if("undefined"==typeof document)return;if(document.getElementById(v))return;const e=document.createElement("style");e.id=v,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 x="punica-search-adornment-styles";const E="punica-list-view-item-styles";const k="punica-card-styles";function _(){if("undefined"==typeof document)return;if(document.getElementById(k))return;const e=document.createElement("style");e.id=k,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-capability-styles";function C(e,t,n){const i=document.createElement("span");i.className=`json-view-${n}`,i.textContent=t,e.appendChild(i)}function S(e,t,n){const i=" ".repeat(n);if(null===t)return C(e,"null","null");if("boolean"==typeof t)return C(e,String(t),"boolean");if("number"==typeof t)return C(e,String(t),"number");if("string"==typeof t)return C(e,JSON.stringify(t),"string");if(Array.isArray(t))return e.appendChild(document.createTextNode("[\n")),t.forEach((r,s)=>{e.appendChild(document.createTextNode(`${i} `)),S(e,r,n+1),s<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((s,a)=>{e.appendChild(document.createTextNode(`${i} `)),C(e,JSON.stringify(s),"key"),e.appendChild(document.createTextNode(": ")),S(e,t[s],n+1),a<r.length-1&&e.appendChild(document.createTextNode(",")),e.appendChild(document.createTextNode("\n"))}),e.appendChild(document.createTextNode(`${i}}`))}}function D(e){const t=document.createElement("pre");return t.className="json-view cap-schema-code",S(t,e,0),t}function N(e){const t=document.createElement("div");return t.className="cap-detail-section",t.textContent=e,t}function T(e){const t=document.createElement("div");return t.className="cap-detail-meta cap-detail-note",t.textContent=e,t}function I(e,t){const n=document.createElement("span");return n.className=`cap-pill cap-pill-${t}`,n.textContent=e,n}function L(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 s=document.createElement("div");if(s.className="cap-detail-meta",s.textContent=i.join(" · "),e.appendChild(s),e.appendChild(N("Inputs")),t.inputs?.schema?e.appendChild(D(t.inputs.schema)):e.appendChild(T("This capability takes no input parameters.")),e.appendChild(N("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(T("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(N("Result payload")),e.appendChild(D(n.schema))):e.appendChild(T("Result payload shape is not documented."))}else e.appendChild(T("No outputs declared."));if(t.tags&&t.tags.length>0){e.appendChild(N("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 a=document.createElement("button");a.type="button",a.className="cap-detail-raw-toggle",a.textContent="Show raw definition";const o=D(t);o.style.display="none",a.addEventListener("click",()=>{const e="none"===o.style.display;o.style.display=e?"block":"none",a.textContent=e?"Hide raw definition":"Show raw definition"}),e.appendChild(N("Raw")),e.appendChild(a),e.appendChild(o)}const M={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){_();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){_();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},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(A))return;const e=document.createElement("style");e.id=A,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 s=document.createElement("div");if(s.className="cap-row-head",i){s.setAttribute("role","button"),s.setAttribute("tabindex","0");const e=document.createElement("i");e.className="cap-row-chevron fa-solid fa-chevron-right",s.appendChild(e)}const a=document.createElement("div");a.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(a.appendChild(o),e.description){const t=document.createElement("div");t.className="cap-row-desc",t.textContent=e.description,a.appendChild(t)}s.appendChild(a);const c=document.createElement("div");c.className="cap-row-badges";const d=e.policy?.risk;d&&c.appendChild(I(d,`risk-${d}`));const u=e.policy?.approval;u&&"none"!==u&&c.appendChild(I(u,"approval")),s.appendChild(c),r.appendChild(s);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,L(h,e,n))};n.open&&(i(),r.classList.add("expanded"));const a=()=>{const e="none"===h.style.display;e&&i(),h.style.display=e?"block":"none",r.classList.toggle("expanded",e)};s.addEventListener("click",a),s.addEventListener("keydown",e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),a())})}else L(h,e,n);return r},createButton:function(e,t,n){const i=document.createElement("punica-button");if(e.includes("<")||e.includes("&lt;")?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},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:y,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")&&(w(),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(x))return;const e=document.createElement("style");e.id=x,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},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(E))return;const e=document.createElement("style");e.id=E,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=y(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,s=i.width,a=i.height;e.setAttribute("top",String(i.top)),e.setAttribute("left",String(i.left)),e.setAttribute("width",String(s??0)),e.setAttribute("height",String(a??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 F=e=>`activity-group-${e}`;const z={manager:new class{#A=new Map;#C=new Map;#S=null;#D=null;#N;#T;#I;#L=new Map;#M=0;#F=new Map;#z=new Map;#O(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 s=null;for(const t of Array.from(e.children)){const e=this.#L.get(t.id);if(void 0!==e&&e>i){s=t;break}}e.insertBefore(t,s)}#B(){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.#A.values())if(t.viewId===e)return void this.#$(t.id);for(const t of this.#C.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 s=n.punica?.kernel?.Events?.manager,a=s?.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:a},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.#C.values())if(t.contentViewType===e)return t;for(const t of this.#A.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?F(t):e}#V(e){return this.#A.get(e)??this.#C.get(e)}#U(e){const t=[];for(const n of this.#A.values())n.group?.id===e&&t.push(n);for(const n of this.#C.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()}}#K(e,t,n,i){const r=M.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}#W(e){const t=F(e),n=this.#U(e);if(0===n.length)return this.#T?.querySelector("#"+t)?.remove(),this.#I?.querySelector("#"+t)?.remove(),this.#z.get(e)?.remove(),this.#z.delete(e),void this.#F.delete(e);const i="primary"===n[0].alignment?this.#T:this.#I,r=this.#F.get(e)??{},s=1===n.length?n[0]:null,a=this.#K(t,s?s.icon:r.icon??n[0].icon,s?s.title:r.title??e,()=>{s?this.#Z(s):this.#G(e,a)});this.#O(i,a,t);const o=this.#D??this.#S;o&&n.some(e=>e.id===o)&&a.classList.add("extension-is-active")}#G(e,t){let n=this.#z.get(e);n||(n=M.createMenu({attrs:{id:`${F(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.#z.set(e,n)),n.innerHTML="";const i=this.#D??this.#S;for(const t of this.#U(e))n.appendChild(M.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>"}));M.openMenuAt(n,{anchor:t,placement:"right"})}addItem(e){this.#N||this.#B();const t="primary"===e.alignment;(t?this.#A:this.#C).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.#F.has(n)||this.#F.set(n,{title:e.group?.title,icon:e.group?.icon}),void this.#W(n);const i=this.#K(e.id,e.icon,e.title,()=>this.#Z(e)),r=t?this.#T:this.#I;this.#O(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.#A.delete(e),this.#C.delete(e),void this.#W(t);if(this.#A.has(e)){const t=this.#T.querySelector("#"+e);t&&(this.#T.removeChild(t),this.#A.delete(e))}else if(this.#C.has(e)){const t=this.#I.querySelector("#"+e);t&&(this.#I.removeChild(t),this.#C.delete(e))}}}};const O="punica-appbar",B="shell-classic-appbar-style";function R(){try{const e=punica.kernel.Commands.manager.getAllCommands?.()??[];return new Set(e.map(e=>e.id))}catch{return new Set}}function $(e,t){return!!t&&(0===e.size||e.has(t))}function j(e){try{punica.kernel.Commands.manager.executeCommand(e)}catch(t){console.error("[AppBar] Failed to execute command",e,t)}}const P={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(B))return;const e=document.createElement("style");e.id=B,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/* Quieter than the workspace title on purpose. The product name never changes\n and the logo 8px to its left already says it; the workspace is the one piece\n of state on the bar, so it gets the weight. */\n#punica-appbar .appbar-brand {\n font-weight: 500;\n opacity: 0.72;\n white-space: nowrap;\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(O);e||(e=document.createElement("div"),e.id=O,document.body.appendChild(e)),e.innerHTML="",this.#X=e,this.#J=this.#se("appbar-region-left"),this.#Y=this.#se("appbar-region-center"),this.#Q=this.#se("appbar-region-right"),e.append(this.#J,this.#Y,this.#Q)}#se(e){const t=document.createElement("div");return t.className=`appbar-region ${e}`,t}async#ie(){const e=this.#ae(),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&&!e)return null;const n=document.createElement("div");if(n.className="appbar-branding",e&&(n.title=e),t){const i=document.createElement("img");i.className="appbar-logo",i.src=t,i.alt=e??"";const r=document.createElement("span");r.className="appbar-mark",r.appendChild(i),n.appendChild(r)}if(e){const t=document.createElement("div");t.className="appbar-brand",t.textContent=e,n.appendChild(t)}return n}#le(){try{return punica.shell.Profile.manager.registry.getActive()?.identity?.branding}catch{return}}#ae(){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",()=>j(t))}this.#O(t,n,e.id)}#de(e,t,n){const i=M.createMenu({className:"appbar-menu"}),r=new Map;e.appendChild(i);const s=e=>{const t=R();r.clear(),i.innerHTML="";for(const t of e)i.appendChild(t);for(const e of n.menu??[])$(t,e.command)&&(r.set(e.id,e),i.appendChild(M.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,s)}),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&&j(n.command)})}async#ce(e,t){const n=t.initialsCommand;if(n&&$(R(),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&&$(R(),r)?await this.#he(r):[])?("avatar"===n.kind&&this.#ce(t,n),M.openMenuAt(e,{anchor:t,placement:"bottom"})):n.command&&j(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(";")),M.createMenuItem({attrs:{disabled:"","data-appbar-summary":0===t?"lead":"line"},children:[n]})}):[]}#O(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 H={manager:new class{#A=new Map;#C=new Map;#N;#T;#I;#L=new Map;#M=0;#pe=new Map;#O(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 s=null;for(const t of Array.from(e.children)){const e=this.#L.get(t.id);if(void 0!==e&&e>i){s=t;break}}e.insertBefore(t,s)}#B(){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.#B();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 s="primary"===e.alignment,a=s?this.#T:this.#I;(s?this.#A:this.#C).set(e.id,e),this.#O(a,t,e.id)}removeItem(e){const t=this.#pe.get(e);t?.parentNode&&t.parentNode.removeChild(t),this.#pe.delete(e),this.#A.delete(e),this.#C.delete(e)}}};const q={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 V=new class{currentProfileId=null;listeners=new Set;async loadProfile(e){const t=q[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{...q}}getProfile(e){return q[e]}registerProfile(e){q[e.id]=e}onDidChangeProfile(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}loadDefaultImmediate(){const e=q.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&&q[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 U(e){return String(e??"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function Z(e){return U(e).replace(/\r?\n/g,"<br>")}async function K(e){return new Promise(t=>{const{title:n,message:i,html:r,buttons:s=[{label:"OK",variant:"filled",action:"ok"}],footerHtml:a,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","");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;">${Z(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;">${U(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 ${a||`\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 ${s.map((e,t)=>`<punica-button id="${`${p}-btn-${t}`}" variant="${e.variant||"outlined"}" color="${e.color||"primary"}" size="small" rounded>${U(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)};s.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 W(e){const{title:t,message:n,variant:i="info",buttonLabel:r="OK"}=e,s=t||("success"===i?"Success":"warning"===i?"Warning":"error"===i?"Error":"Information");await K({title:s,message:n,tone:i,buttons:[{label:r,variant:"filled",color:"error"===i?"error":"primary",action:"ok"}]})}const G={showInformationMessage:async function(e,...t){return 0===t.length?void await W({message:e,variant:"info",title:"Information"}):await K({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 W({message:e,variant:"warning",title:"Warning"}):await K({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 W({message:e,variant:"error",title:"Error"}):await K({title:"Error",message:e,buttons:t.map(e=>({label:e,variant:"outlined",action:e}))})},showDialog:K,showConfirm:async function(e){const{title:t="Confirm",message:n,confirmLabel:i="OK",cancelLabel:r="Cancel",variant:s="info"}=e;return"confirm"===await K({title:t,message:n,tone:s,buttons:[{label:r,variant:"text",action:"cancel"},{label:i,variant:"filled",color:"error"===s?"error":"primary",action:"confirm"}]})},showAlert:W,showPrompt:async function(e){return new Promise(t=>{const{title:n="Prompt",message:i,placeholder:r="",defaultValue:s="",confirmLabel:a="OK",cancelLabel:o="Cancel",type:l="text"}=e,c=`punica-prompt-${Date.now()}`,d=`${c}-input`;w();let u=s;K({title:n,html:`\n <punica-box style="display:flex; flex-direction: column; gap: 10px;">\n <punica-typography>${Z(i)}</punica-typography>\n <punica-input\n id="${d}"\n type="${U(l)}"\n placeholder="${U(r)}"\n value="${U(s)}"\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:a,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:s=!0,placement:a="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.${a}`)||o.querySelector(".region.top-right");if(!l)throw new Error(`Toast region not found: ${a}`);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(s)),c.setAttribute("enter-from",a.startsWith("top")?"top":"bottom"),l.prepend(c),c},showChangesPreview:async function(e){const{title:t,summary:n,files:i,onConfirm:r,onCancel:s}=e,a=`changes-preview-files-${Date.now()}`,o=`changes-preview-content-${Date.now()}`,l=`changes-preview-selected-${Date.now()}`;let c=0;const d=()=>{const e=document.querySelector(`#${l}`);e&&i[c]&&(e.textContent=i[c].path)},u=e=>{e.innerHTML="",i.forEach((t,n)=>{const i=M.createBadge({text:t.action,variant:"filled",color:"delete"===t.action?"error":"create"===t.action?"success":"primary",size:"small"}),r=M.createListViewItem({label:t.path,content:t.action,endAdornment:i});n===c&&(r.style.backgroundColor="rgba(255, 255, 255, 0.1)"),r.style.cursor="pointer",r.addEventListener("click",()=>{c=n,u(e),h(document.getElementById(o)),d()}),e.appendChild(r)})},h=e=>{const t=i[c];if(e.innerHTML="","delete"===t.action){const n=M.createTypography(`This file will be deleted: ${t.path}`,{variant:"body1"});return void e.appendChild(n)}if(!t.content){const t=M.createTypography("No content preview available",{variant:"body1"});return void e.appendChild(t)}const n=M.createBox({style:{width:"100%",height:"400px",border:"1px solid rgba(255, 255, 255, 0.1)",borderRadius:"4px",overflow:"hidden"}});e.appendChild(n);const r=window.monaco||globalThis.monaco;if(r?.editor)try{const i=m(t.path),s=r.editor.create(n,{value:t.content||"",language:i,theme:"vs-dark",readOnly:!0,minimap:{enabled:!1},fontSize:13,fontLigatures:!0,automaticLayout:!0,scrollBeyondLastLine:!1});e.__monacoEditor=s}catch(e){p(n,t.content||"")}else p(n,t.content||"")},p=(e,t)=>{const n=document.createElement("pre");n.style.cssText="margin: 0; padding: 10px; overflow: auto; font-family: monospace; font-size: 12px; white-space: pre-wrap; word-wrap: break-word;",n.textContent=t,e.innerHTML="",e.appendChild(n)},m=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"},f=e=>String(e??"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;"),g=`\n <punica-box style="display: flex; flex-direction: column; gap: 12px; min-width: 800px; max-width: 1200px; max-height: 80vh;">\n ${n?`<punica-typography>${f(n)}</punica-typography>`:""}\n <punica-box style="display: flex; gap: 12px; flex: 1; min-height: 0;">\n <punica-box style="flex: 0 0 300px; display: flex; flex-direction: column; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 4px; overflow: hidden;">\n <punica-box style="padding: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.1);">\n <punica-typography fontweight="bold">Files (${i.length})</punica-typography>\n </punica-box>\n <punica-box id="${a}" style="flex: 1; overflow-y: auto; padding: 4px;"></punica-box>\n </punica-box>\n <punica-box style="flex: 1; display: flex; flex-direction: column; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 4px; overflow: hidden; min-width: 0;">\n <punica-box style="padding: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.1);">\n <punica-typography fontweight="bold" id="${l}">${f(i[0]?.path||"")}</punica-typography>\n </punica-box>\n <punica-box id="${o}" style="flex: 1; overflow: auto; padding: 0;"></punica-box>\n </punica-box>\n </punica-box>\n </punica-box>\n `;return new Promise(e=>{punica.shell.View.showDialog({title:t,html:g,buttons:[{label:"Cancel",variant:"outlined",action:"cancel"},{label:"Apply Changes",variant:"filled",color:"primary",action:"confirm"}],width:"90vw",onMount:e=>{const t=e.querySelector(`#${a}`),n=e.querySelector(`#${o}`);e.querySelector(`#${l}`),t&&u(t),n&&h(n),d()}}).then(async t=>{const n=document.querySelector('[id^="punica-dialog-"]');if(n){const e=n.querySelector(`#${o}`);if(e&&e.__monacoEditor)try{e.__monacoEditor.dispose()}catch{}}if("confirm"===t)try{await r(),e("confirm")}catch(t){await punica.shell.View.showAlert({title:"Error",message:`Failed to apply changes: ${t instanceof Error?t.message:String(t)}`,variant:"error"}),e(void 0)}else s?.(),e("cancel"===t?"cancel":void 0)})})},Helpers:M,Theme:{manager:V,profiles:q}};function X(){return globalThis.punica?.shell?.Layout?.manager}function J(e){const t=(globalThis.punica?.shell?.PanelContainers)?.forSlot?.(e);return t||("panel"===e?globalThis.punica?.shell?.PanelTabs:null)}function Y(){return globalThis.punica?.shell?.ActivityBar?.manager}const Q={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 s=X();if(!s)throw new Error("[Views] Layout manager unavailable — cannot reveal.");const a=s.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(a);this.#ge.set(t,e&&"function"==typeof e.dispose?e:null)}s.showView(r.slot,t),s.setSlotCollapsed?.(r.slot,!1),this.#be.set(r.slot,t);const c=J(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{Y()?.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=X();if("contentSidebar"===i.slot?this.#we(i.slot):(r?.hideSlotViews(i.slot),r?.setSlotCollapsed?.(i.slot,!0),i.onDemand&&J(i.slot)?.close?.(t,{silent:!0})),this.#be.delete(i.slot),"primarySidebar"===i.slot)try{Y()?.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{J(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 s=r.allowedSlots??[r.slot];if(!s.includes(n))throw new Error(`[Views] "${t}" cannot be moved to "${n}". Allowed slots: ${s.join(", ")}.`);const a=r.slot;if(a===n)return;const o=this.#be.get(a)===t,l=X(),c=J(a);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?.(a,t);let u=null;if(o){this.#be.delete(a);const e=(c?.listTabs?.()??[]).filter(e=>!e.userHidden&&e.id!==t);e.length>0?u=e[0].id:l?.setSlotCollapsed?.(a,!0)}r.slot=n;try{await((globalThis.punica?.shell?.PanelLayout?.manager)?.setSlotOverride?.(t,n,r.homeSlot??a))}catch(e){console.warn(`[Views] failed to persist slot override for "${t}":`,e)}if(o?await this.reveal(t,i):r.onDemand||(J(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 "${a}":`,e)}e({name:"shell.view.moved",source:"shell:views",payload:{viewId:t,fromSlot:a,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=X();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=X();r?.removeViewHost?.(t.slot,n)}}}};const ee={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.#Ae();case"fileExplorerFocus":return this.#Ce("primarySidebar","file-explorer-sidebar");default:return}}#Ae(){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"))}#Ce(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))}}},te={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"}]}},ne={id:"welcome",title:"Welcome",root:{type:"row",sizes:[100],children:[{type:"column",sizes:[100],children:[{type:"slot",id:"content",role:"content"}]}]}},ie=new Set(["secondarySidebar","panel"]);const re={type:"row",sizes:[100],children:[{type:"slot",id:"content",role:"content"}]};const se={manager:new class{#Ne;#Te=new Map;#Ie=new Map;#Le;#Me=new Map;#Fe=[];constructor(){this.#Ne=document.createElement("div"),this.#Ne.id="punica-editor",this.#Le=te}applyProfile(e){if(this.#Le=e,this.#Te.clear(),this.#Ie.clear(),this.#Me.clear(),this.#ze(),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.#Oe(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 s=i.get(t);return s?s.parentElement||r.appendChild(s):(s=document.createElement("div"),s.dataset.viewId=t,s.style.height="100%",s.style.width="100%","primarySidebar"===e&&(s.style.overflowX="hidden",s.style.overflowY="auto"),s.style.display="none",r.appendChild(s),i.set(t,s)),s}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"})}#Be(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),s=r.indexOf(i);return s<0?void 0:{split:n,index:s,count:r.length}}isSlotCollapsed(e){return this.#Me.has(e)}setSlotCollapsed(e,t){const n=this.#Be(e);if(!n)return;const{split:i,index:r,count:s}=n;if("function"==typeof i.setSizes)if(t){if(this.#Me.has(e))return;const t=(i.getSizes?.()??[]).slice();if(t.length!==s||s<2)return;this.#Me.set(e,t);const n=t.reduce((e,t,n)=>n===r?e:e+t,0),a=t.map((e,t)=>t===r?0:n>0?e/n*100:100/(s-1));i.setSizes(a)}else{const t=this.#Me.get(e);this.#Me.delete(e),t&&t.length===s&&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)}#Oe(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=M.createSplit({orientation:i?"horizontal":"vertical",sizes:e.sizes,style:{height:"100%",width:"100%"}});t.appendChild(r);const s=e.children.length;for(let t=0;t<s;t++){const n=document.createElement("div");n.style.height="100%",n.style.width="100%",r.appendChild(n),this.#Oe(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&&ie.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,s=null;const a=new ResizeObserver(()=>{const t=i?e.clientWidth:e.clientHeight;if(t<=0)return;const a=r;if(r=t,a<=0||a===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 s=e.map((e,t)=>t).filter(e=>!i.includes(e));if(!s.length)return null;const a=[...e];let o=0;for(const s of i){const i=e[s]/100*t,l=Math.max(r,i/n*100);a[s]=l,o+=l}const l=100-o;if(l<r*s.length)return null;const c=s.reduce((t,n)=>t+e[n],0);for(const t of s)a[t]=c>0?e[t]/c*l:l/s.length;const d=a.reduce((e,t)=>e+t,0),u=s.reduce((e,t)=>a[e]>=a[t]?e:t);return a[u]+=100-d,a}(l,a,t,n);c&&(e.toggleAttribute("no-transition",!0),o.setSizes?.(c),s&&clearTimeout(s),s=setTimeout(()=>{s=null,e.removeAttribute("no-transition")},150))});a.observe(e),this.#Fe.push(a)}#ze(){for(const e of this.#Fe)e.disconnect();this.#Fe=[]}applyApplicationProfile(e){const t=new Set(e.shell.activeModules),n=t.has("shell.activityBar"),i=t.has("shell.view"),r=t.has("shell.statusbar"),s=e.shell.layout,a=s?.id??e.identity.id,o=s?.root??re;if(this.#Le={id:a,title:e.identity.name,root:o},this.#Te.clear(),this.#Ie.clear(),this.#Me.clear(),this.#ze(),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.#Oe(o,l,!0)}render(e){try{const e=window,t=e.punica?.Runtime?.runtime??e.punica?.runtime,n=t?.lifecyclePhase,i="noWorkspace"===n?ne:te,r=this.#Le.id===te.id||this.#Le.id===ne.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 ae(e){return e.split("/").pop()||e}function oe(e,t,n){return e===t?n:`${n}${e.slice(t.length)}`}const le=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=M.createBox({attrs:{id:"content-tabs-root"},style:{height:"100%",display:"flex",flexDirection:"column"}}),i=M.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=M.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 s=document.createElement("style");s.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(s);const a=M.createBox({attrs:{id:"content-tabs-panels"},style:{flex:"1",height:"calc(100% - 40px)"}});n.appendChild(i),n.appendChild(a);const o=M.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=a,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=ae(e.path),r=e.title??i,s=r===i,a=M.createTypography(r,{attrs:{truncate:"1",title:e.path},style:{maxWidth:"150px"}}),o=M.createIconButton("fa-duotone fa-solid fa-xmark",t=>{t.stopPropagation(),this.close(e.path)},{size:"small",title:"Close"}),l=M.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=M.createRow({alignItems:"center",wrap:"nowrap",spacing:"0.5",style:{maxWidth:"200px"},children:[M.createCol({children:[a]}),M.createCol({children:[l]}),M.createCol({children:[o]})]}),d=M.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=M.createElement("div",{style:{height:"100%",width:"100%",boxSizing:"border-box"}}),h=M.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:s,viewType:e.viewType,tabElement:d,labelElement:a,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.#Ke(t)}async closeById(e){const t=Array.from(this.#Pe.values()).find(t=>t.id===e);t&&await this.#Ze(t)&&this.#Ke(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.#Ke(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.#Ke(t)}}#Ke(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.#We("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 s of n){const n=oe(s.path,e,t),a=s.id===i;this.#Pe.delete(s.path),s.path=n,s.id=n,s.titleFollowsPath&&(s.title=ae(n)),s.tabElement.setAttribute("value",n),s.panel.setAttribute("value",n),s.labelElement.setAttribute("title",n),this.#Ge(s),this.#Pe.set(n,s),a&&(r=n)}r&&this.#Ve(r),this.#We("shell.contentTabs.didRename",{oldPath:e,newPath:t})}forceClose(e){for(const t of this.#Xe(e))this.#Ke(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||ae(e.path),e.dirtyElement.style.display=e.dirty?"inline-block":"none"}#We(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 ce="punica-tabbed-container-style",de={panel:"bottom panel",secondarySidebar:"right sidebar"};let ue=null;const he=[];class pe{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;#st=new Map;#S=null;#at="both";#ot=null;#lt=!1;#ct=!1;constructor(e,t){this.slotId=e,this.orientation=t,he.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.#at=this.#ht()?.getDisplayMode?.(this.slotId)??n,this.#l();const i=M.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=M.createBox({style:{display:"flex",alignItems:"center",backgroundColor:"var(--background-paper)",...this.#ut?{height:"32px",flexDirection:"row"}:{width:"44px",height:"100%",flexDirection:"column"}}}),s=M.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 a=M.createIconButton("fa-solid fa-ellipsis",()=>{this.#ft()},{size:"x-small",title:"More tabs",attrs:{id:this.#dt("tab-overflow-btn"),"aria-label":"More tabs"}});a.style.flex="0 0 auto",a.style.display="none";const o=M.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=M.createBox({attrs:{id:this.#dt("toolbar-area")},style:{flex:"0 0 auto",display:"flex",alignItems:"center",padding:"0 var(--spacing-8)"}});r.appendChild(s),r.appendChild(o),r.appendChild(a),r.appendChild(l);const c=M.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=M.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=s,this.#Je=l,this.#Ye=a,this.#Qe=c,this.#et=o,this.#tt=d,this.#e=!0}#l(){if("undefined"==typeof document)return;if(document.getElementById(ce))return;const e=document.createElement("style");e.id=ce,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.#st.get(e.id))return void(!1===e.autoActivate||this.#S===e.id||this.#wt(e.id,"PanelTabs.open")||this.setActive(e.id));const t=M.createRow({alignItems:"center",wrap:"nowrap",spacing:"0.5"});let n=null;if(e.iconClass){const i=e.iconClass.trim(),r=M.createIcon(i.startsWith("<")?{innerHTML:i}:{iconClass:i});n=M.createCol({attrs:{"data-col":"icon"},children:[r]}),t.appendChild(n)}const i=M.createCol({attrs:{"data-col":"label"},children:[M.createTypography(e.title,{attrs:{truncate:"1"}})]});t.appendChild(i);const r=M.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 s=!0===this.#ht()?.isTabHidden?.(e.id,this.slotId);s&&r.setAttribute("data-user-hidden","");const a=this.#xt(e.id,e.order),o=Array.from(this.#st.values()).sort((e,t)=>e.order-t.order).find(e=>e.order>a);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:a,tabElement:r,iconColEl:n,labelColEl:i,userHidden:s,toolbar:e.toolbar,toolbarEl:null};e.toolbar?.length&&this.#Je&&(l.toolbarEl=this.#Et(e.id,e.toolbar),this.#Je.appendChild(l.toolbarEl)),this.#st.set(e.id,l),this.#kt(l),this.#_t(l),this.#At(),this.#vt();const c=e.autoActivate;this.#S||s||!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.#at,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=M.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.#st.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.#st.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.#st.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.#st.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.#st.delete(e),this.#vt(),this.#S===e)){const e=Array.from(this.#st.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.#st.keys()).forEach(e=>this.close(e))}setActive(e){if(!this.#$e)return;const t=this.#st.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.#at}setDisplayMode(e){this.#at=e,this.#st.forEach(e=>this.#kt(e)),this.#ht()?.setDisplayMode?.(e,{slot:this.slotId}),this.#vt()}hideTab(e){const t=this.#st.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.#At(),this.#S===e){this.#S=null,this.#$e?.removeAttribute("value"),t.tabElement.removeAttribute("active");const e=Array.from(this.#st.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.#st.get(e);t&&t.userHidden&&(t.userHidden=!1,t.tabElement.removeAttribute("data-user-hidden"),this.#ht()?.setTabHidden?.(e,!1,{slot:this.slotId}),this.#At(),this.#vt(),this.#pt(e,this.#dt("tab-show")))}setUserOrder(e){this.#$e&&(e.forEach((e,t)=>{const n=this.#st.get(e);n&&(n.order=t,this.#$e.appendChild(n.tabElement))}),Array.from(this.#st.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.#Ct(),{slot:this.slotId}),this.#vt())}listTabs(){return Array.from(this.#st.values()).sort((e,t)=>e.order-t.order).map(e=>({id:e.id,title:e.title,userHidden:e.userHidden}))}#Ct(){return Array.from(this.#st.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,ue={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 he)e.armDropZone()}()}),t.addEventListener("dragend",()=>{this.#ot=null,ue=null,function(){for(const e of he)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.#st.get(t);if(!i)return;const r=i.tabElement.getBoundingClientRect(),s=this.#ut?n>r.left+r.width/2:n>r.top+r.height/2,a=this.#Ct().filter(t=>t!==e),o=a.indexOf(t),l=s?o+1:o;a.splice(l,0,e),this.setUserOrder(a)}#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=ue;t&&this.#Dt()&&(e.preventDefault(),e.stopPropagation(),this.#ct=!0,ue=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=ue;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 ${de[n]??n}`)})}}this.#Tt(t,"display:both",("both"===this.#at?"● ":"")+"Show icons and labels"),this.#Tt(t,"display:icon",("icon"===this.#at?"● ":"")+"Show icons only"),this.#Tt(t,"display:label",("label"===this.#at?"● ":"")+"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(M.createMenuItem({text:n,attrs:{"data-item":t,"aria-label":n}}))}#It(e,t,n){M.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.#st.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)}#At(){const e=this.#et;if(!e)return;const t=Array.from(this.#st.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.#Ft(!1);const n=this.#Lt();if(n<=0)return this.#rt.clear(),void this.#Ft(!1);const i=t.map(e=>this.#Mt(e));if(i.reduce((e,t)=>e+t,0)<=n)return this.#rt.clear(),void this.#Ft(!1);const r=n-this.#zt(),s=t.findIndex(e=>e.getAttribute("value")===this.#S);let a=s>=0?i[s]:0;const o=new Set;let l=!0;t.forEach((e,t)=>{if(t===s)return;if(l&&a+i[t]<=r)return void(a+=i[t]);l=!1,e.style.display="none";const n=e.getAttribute("value");n&&o.add(n)}),this.#rt=o,this.#Ft(o.size>0)}#Ft(e){const t=this.#Ye;t&&(t.style.display=e?"inline-flex":"none",e||this.#Qe?.removeAttribute("open"))}#zt(){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.#st.get(n);i&&e.appendChild(M.createMenuItem({text:i.title,attrs:{"data-item":n,"aria-label":i.title}}))}),M.openMenuAt(e,{anchor:t,placement:"bottom"}))}}const me=new class extends pe{constructor(){super("panel","horizontal")}},fe=new pe("secondarySidebar","vertical"),ge={bottom:me,right:fe,forSlot:e=>"panel"===e?me:"secondarySidebar"===e?fe:null},be="panel.tabDisplay",ye="panel.hiddenTabs",ve="panel.tabOrder",we="view.slotOverrides",xe="panel";function Ee(){return globalThis.punica?.extensions?.settings?.manager??null}function ke(){try{const e=globalThis.punica?.shell?.Profile?.manager?.registry?.getActive?.();return e?.shell??null}catch{return null}}const _e=new class{#Ot=!1;#Bt=null;#Rt=new Map;#$t={};async load(){const e=Ee();if(this.#Bt=e,e){try{await e.load()}catch(e){console.warn("[PanelLayout] settings.load() failed",e)}this.#$t=this.#jt(e.get("system",we))??{}}this.#Ot=!0}getDisplayMode(e=xe){const t=this.#Pt(this.#Ht(be,e));if(t)return t;if(e===xe){const e=this.#Pt(ke()?.panel?.tabDisplay);if(e)return e}return e===xe?"both":"icon"}getHiddenTabs(e=xe){const t=this.#qt(this.#Ht(ye,e));if(t)return t;if(e===xe){const e=this.#qt(ke()?.panel?.hiddenTabs);if(e)return e}return[]}isTabHidden(e,t=xe){return this.getHiddenTabs(t).includes(e)}getTabOrder(e=xe){const t=this.#qt(this.#Ht(ve,e));return t||(e===xe?this.#qt(ke()?.panel?.tabOrder):void 0)}getSlotOverride(e){const t=this.#$t[e];if(void 0!==t)return t;const n=this.#jt(ke()?.viewDefaults?.slotOverrides);return n?.[e]}async setDisplayMode(e,t){await this.#Vt(be,e,t)}async setTabHidden(e,t,n){const i=n?.slot??xe,r=new Set(this.getHiddenTabs(i));t?r.add(e):r.delete(e),await this.#Vt(ye,Array.from(r),n)}async setTabOrder(e,t){await this.#Vt(ve,[...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(we,r,i)}#Zt(e,t){return t===xe?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.#Bt?.get?.("system",n);return this.#Rt.set(n,i),i}async#Vt(e,t,n){const i=n?.slot??xe,r=this.#Zt(e,i);this.#Rt.set(r,t),await this.#Ut(r,t,n)}async#Ut(e,t,n){const i=Ee();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}},Ae={};function Ce(e,t){"string"!=typeof t&&(t=Ce.defaultChars);const n=function(e){let t=Ae[e];if(t)return t;t=Ae[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 s=parseInt(e.slice(i+1,i+3),16);if(s<128)t+=n[s];else{if(192==(224&s)&&i+3<r){const n=parseInt(e.slice(i+4,i+6),16);if(128==(192&n)){const e=s<<6&1984|63&n;t+=e<128?"��":String.fromCharCode(e),i+=3;continue}}if(224==(240&s)&&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=s<<12&61440|n<<6&4032|63&r;t+=e<2048||e>=55296&&e<=57343?"���":String.fromCharCode(e),i+=6;continue}}if(240==(248&s)&&i+9<r){const n=parseInt(e.slice(i+4,i+6),16),r=parseInt(e.slice(i+7,i+9),16),a=parseInt(e.slice(i+10,i+12),16);if(128==(192&n)&&128==(192&r)&&128==(192&a)){let e=s<<18&1835008|n<<12&258048|r<<6&4032|63&a;e<65536||e>1114111?t+="����":(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(1023&e))),i+=9;continue}}t+="�"}}return t})}Ce.defaultChars=";/?:@&=+$,#",Ce.componentChars="";const Se={};function De(e,t,n){"string"!=typeof t&&(n=t,t=De.defaultChars),void 0===n&&(n=!0);const i=function(e){let t=Se[e];if(t)return t;t=Se[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,s=e.length;t<s;t++){const a=e.charCodeAt(t);if(n&&37===a&&t+2<s&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3)))r+=e.slice(t,t+3),t+=2;else if(a<128)r+=i[a];else if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&t+1<s){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 Ne(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 Te(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}De.defaultChars=";/?:@&=+$,-_.!~*'()#",De.componentChars="-_.!~*'()";const Ie=/^([a-z0-9.+-]+:)/i,Le=/:[0-9]*$/,Me=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Fe=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),ze=["'"].concat(Fe),Oe=["%","/","?",";","#"].concat(ze),Be=["/","?","#"],Re=/^[+a-z0-9A-Z_-]{0,63}$/,$e=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,je={javascript:!0,"javascript:":!0},Pe={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function He(e,t){if(e&&e instanceof Te)return e;const n=new Te;return n.parse(e,t),n}Te.prototype.parse=function(e,t){let n,i,r,s=e;if(s=s.trim(),!t&&1===e.split("#").length){const e=Me.exec(s);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let a=Ie.exec(s);if(a&&(a=a[0],n=a.toLowerCase(),this.protocol=a,s=s.substr(a.length)),(t||a||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(r="//"===s.substr(0,2),!r||a&&je[a]||(s=s.substr(2),this.slashes=!0)),!je[a]&&(r||a&&!Pe[a])){let e,t,n=-1;for(let e=0;e<Be.length;e++)i=s.indexOf(Be[e]),-1!==i&&(-1===n||i<n)&&(n=i);t=-1===n?s.lastIndexOf("@"):s.lastIndexOf("@",n),-1!==t&&(e=s.slice(0,t),s=s.slice(t+1),this.auth=e),n=-1;for(let e=0;e<Oe.length;e++)i=s.indexOf(Oe[e]),-1!==i&&(-1===n||i<n)&&(n=i);-1===n&&(n=s.length),":"===s[n-1]&&n--;const r=s.slice(0,n);s=s.slice(n),this.parseHost(r),this.hostname=this.hostname||"";const a="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!a){const e=this.hostname.split(/\./);for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n&&!n.match(Re)){let i="";for(let e=0,t=n.length;e<t;e++)n.charCodeAt(e)>127?i+="x":i+=n[e];if(!i.match(Re)){const i=e.slice(0,t),r=e.slice(t+1),a=n.match($e);a&&(i.push(a[1]),r.unshift(a[2])),r.length&&(s=r.join(".")+s),this.hostname=i.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),a&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const o=s.indexOf("#");-1!==o&&(this.hash=s.substr(o),s=s.slice(0,o));const l=s.indexOf("?");return-1!==l&&(this.search=s.substr(l),s=s.slice(0,l)),s&&(this.pathname=s),Pe[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},Te.prototype.parseHost=function(e){let t=Le.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 qe,Ve=Object.freeze({__proto__:null,decode:Ce,encode:De,format:Ne,parse:He}),Ue=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Ze=/[\0-\x1F\x7F-\x9F]/,Ke=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,We=/[\$\+<->\^`\|~\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]/,Ge=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Xe=Object.freeze({__proto__:null,Any:Ue,Cc:Ze,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:Ke,S:We,Z:Ge}),Je=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୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢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;怳Ādp໩໮uct;戏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ǣጓ\0጖y;䐎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Ā;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀ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Ā;e᜚᜜lƀ;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\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩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ↄⅪ←ٖ↛ǰ↉\0↎proø₞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;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\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\0⹻m;櫳;櫽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))),Ye=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));const Qe=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]]),et=null!==(qe=String.fromCodePoint)&&void 0!==qe?qe: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 tt;!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"}(tt||(tt={}));var nt,it,rt;function st(e){return e>=tt.ZERO&&e<=tt.NINE}function at(e){return e>=tt.UPPER_A&&e<=tt.UPPER_F||e>=tt.LOWER_A&&e<=tt.LOWER_F}function ot(e){return e===tt.EQUALS||function(e){return e>=tt.UPPER_A&&e<=tt.UPPER_Z||e>=tt.LOWER_A&&e<=tt.LOWER_Z||st(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"}(nt||(nt={})),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"}(it||(it={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(rt||(rt={}));class lt{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=it.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=rt.Strict}startEntity(e){this.decodeMode=e,this.state=it.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case it.EntityStart:return e.charCodeAt(t)===tt.NUM?(this.state=it.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=it.NamedEntity,this.stateNamedEntity(e,t));case it.NumericStart:return this.stateNumericStart(e,t);case it.NumericDecimal:return this.stateNumericDecimal(e,t);case it.NumericHex:return this.stateNumericHex(e,t);case it.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===tt.LOWER_X?(this.state=it.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=it.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(!st(i)&&!at(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(!st(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===tt.SEMI)this.consumed+=1;else if(this.decodeMode===rt.Strict)return 0;return this.emitCodePoint(function(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=Qe.get(e))&&void 0!==t?t:e}(this.result),this.consumed),this.errors&&(e!==tt.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&nt.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const s=e.charCodeAt(t);if(this.treeIndex=dt(n,i,this.treeIndex+Math.max(1,r),s),this.treeIndex<0)return 0===this.result||this.decodeMode===rt.Attribute&&(0===r||ot(s))?0:this.emitNotTerminatedNamedEntity();if(i=n[this.treeIndex],r=(i&nt.VALUE_LENGTH)>>14,0!==r){if(s===tt.SEMI)return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess);this.decodeMode!==rt.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]&nt.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]&~nt.VALUE_LENGTH:i[e+1],n),3===t&&this.emitCodePoint(i[e+2],n),n}end(){var e;switch(this.state){case it.NamedEntity:return 0===this.result||this.decodeMode===rt.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case it.NumericDecimal:return this.emitNumericEntity(0,2);case it.NumericHex:return this.emitNumericEntity(0,3);case it.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case it.EntityStart:return 0}}}function ct(e){let t="";const n=new lt(e,e=>t+=et(e));return function(e,i){let r=0,s=0;for(;(s=e.indexOf("&",s))>=0;){t+=e.slice(r,s),n.startEntity(i);const a=n.write(e,s+1);if(a<0){r=s+n.end();break}r=s+a,s=0===a?r+1:r}const a=t+e.slice(r);return t="",a}}function dt(e,t,n,i){const r=(t&nt.BRANCH_LENGTH)>>7,s=t&nt.JUMP_TABLE;if(0===r)return 0!==s&&i===s?n:-1;if(s){const t=i-s;return t<0||t>=r?-1:e[n+t]-1}let a=n,o=a+r-1;for(;a<=o;){const t=a+o>>>1,n=e[t];if(n<i)a=t+1;else{if(!(n>i))return e[t+r];o=t-1}}return-1}const ut=ct(Je);function ht(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)}ct(Ye);const pt=Object.prototype.hasOwnProperty;function mt(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 ft(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function gt(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 bt(e){if(e>65535){const t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const yt=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,vt=new RegExp(yt.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),wt=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function xt(e,t){if(35===t.charCodeAt(0)&&wt.test(t)){const n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return gt(n)?bt(n):e}const n=function(e,t=rt.Legacy){return ut(e,t)}(e);return n!==e?n:e}function Et(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(vt,function(e,t,n){return t||xt(e,n)})}const kt=/[&<>"]/,_t=/[&<>"]/g,At={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function Ct(e){return At[e]}function St(e){return kt.test(e)?e.replace(_t,Ct):e}const Dt=/[.?*+^$[\]\\(){}|-]/g;function Nt(e){switch(e){case 9:case 32:return!0}return!1}function Tt(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 It(e){return Ke.test(e)||We.test(e)}function Lt(e){return It(bt(e))}function Mt(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 Ft(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}function zt(e){return 32===e||9===e||10===e||13===e}function Ot(e){let t=0;for(;t<e.length&&zt(e.charCodeAt(t));t++);let n=e.length-1;for(;n>=t&&zt(e.charCodeAt(n));n--);return e.slice(t,n+1)}const Bt={mdurl:Ve,ucmicro:Xe};var Rt=Object.freeze({__proto__:null,arrayReplaceAt:ft,asciiTrim:Ot,assign:mt,escapeHtml:St,escapeRE:function(e){return e.replace(Dt,"\\$&")},fromCodePoint:bt,has:function(e,t){return pt.call(e,t)},isMdAsciiPunct:Mt,isPunctChar:It,isPunctCharCode:Lt,isSpace:Nt,isString:ht,isValidEntityCode:gt,isWhiteSpace:Tt,lib:Bt,normalizeReference:Ft,unescapeAll:Et,unescapeMd:function(e){return e.indexOf("\\")<0?e:e.replace(yt,"$1")}});var $t=Object.freeze({__proto__:null,parseLinkDestination:function(e,t,n){let i,r=t;const s={ok:!1,pos:0,str:""};if(60===e.charCodeAt(r)){for(r++;r<n;){if(i=e.charCodeAt(r),10===i)return s;if(60===i)return s;if(62===i)return s.pos=r+1,s.str=Et(e.slice(t+1,r)),s.ok=!0,s;92===i&&r+1<n?r+=2:r++}return s}let a=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&&(a++,a>32))return s;if(41===i){if(0===a)break;a--}r++}return t===r||0!==a||(s.str=Et(e.slice(t,r)),s.pos=r,s.ok=!0),s},parseLinkLabel:function(e,t,n){let i,r,s,a;const o=e.posMax,l=e.pos;for(e.pos=t+1,i=1;e.pos<o;){if(s=e.src.charCodeAt(e.pos),93===s&&(i--,0===i)){r=!0;break}if(a=e.pos,e.md.inline.skipToken(e),91===s)if(a===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,s=t;const a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(i)a.str=i.str,a.marker=i.marker;else{if(s>=n)return a;let i=e.charCodeAt(s);if(34!==i&&39!==i&&40!==i)return a;t++,s++,40===i&&(i=41),a.marker=i}for(;s<n;){if(r=e.charCodeAt(s),r===a.marker)return a.pos=s+1,a.str+=Et(e.slice(t,s)),a.ok=!0,a;if(40===r&&41===a.marker)return a;92===r&&s+1<n&&s++,s++}return a.can_continue=!0,a.str+=Et(e.slice(t,s)),a}});const jt={};function Pt(){this.rules=mt({},jt)}function Ht(){this.__rules__=[],this.__cache__=null}function qt(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 Vt(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}jt.code_inline=function(e,t,n,i,r){const s=e[t];return"<code"+r.renderAttrs(s)+">"+St(s.content)+"</code>"},jt.code_block=function(e,t,n,i,r){const s=e[t];return"<pre"+r.renderAttrs(s)+"><code>"+St(e[t].content)+"</code></pre>\n"},jt.fence=function(e,t,n,i,r){const s=e[t],a=s.info?Et(s.info).trim():"";let o,l="",c="";if(a){const e=a.split(/(\s+)/g);l=e[0],c=e.slice(2).join("")}if(o=n.highlight&&n.highlight(s.content,l,c)||St(s.content),0===o.indexOf("<pre"))return o+"\n";if(a){const e=s.attrIndex("class"),t=s.attrs?s.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(s)}>${o}</code></pre>\n`},jt.image=function(e,t,n,i,r){const s=e[t];return s.attrs[s.attrIndex("alt")][1]=r.renderInlineAsText(s.children,n,i),r.renderToken(e,t,n)},jt.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},jt.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},jt.text=function(e,t){return St(e[t].content)},jt.html_block=function(e,t){return e[t].content},jt.html_inline=function(e,t){return e[t].content},Pt.prototype.renderAttrs=function(e){let t,n,i;if(!e.attrs)return"";for(i="",t=0,n=e.attrs.length;t<n;t++)i+=" "+St(e.attrs[t][0])+'="'+St(e.attrs[t][1])+'"';return i},Pt.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 s=!1;if(i.block&&(s=!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)&&(s=!1)}return r+=s?">\n":">",r},Pt.prototype.renderInline=function(e,t,n){let i="";const r=this.rules;for(let s=0,a=e.length;s<a;s++){const a=e[s].type;void 0!==r[a]?i+=r[a](e,s,t,n,this):i+=this.renderToken(e,s,t)}return i},Pt.prototype.renderInlineAsText=function(e,t,n){let i="";for(let r=0,s=e.length;r<s;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},Pt.prototype.render=function(e,t,n){let i="";const r=this.rules;for(let s=0,a=e.length;s<a;s++){const a=e[s].type;"inline"===a?i+=this.renderInline(e[s].children,t,n):void 0!==r[a]?i+=r[a](e,s,t,n,this):i+=this.renderToken(e,s,t,n)}return i},Ht.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},Ht.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))})})},Ht.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},Ht.prototype.before=function(e,t,n,i){const r=this.__find__(e),s=i||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r,0,{name:t,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null},Ht.prototype.after=function(e,t,n,i){const r=this.__find__(e),s=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:s.alt||[]}),this.__cache__=null},Ht.prototype.push=function(e,t,n){const i=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:i.alt||[]}),this.__cache__=null},Ht.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},Ht.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},Ht.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},Ht.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},qt.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},qt.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},qt.prototype.attrSet=function(e,t){const n=this.attrIndex(e),i=[e,t];n<0?this.attrPush(i):this.attrs[n]=i},qt.prototype.attrGet=function(e){const t=this.attrIndex(e);let n=null;return t>=0&&(n=this.attrs[t][1]),n},qt.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},Vt.prototype.Token=qt;const Ut=/\r\n?|\n/g,Zt=/\0/g;function Kt(e){return/^<a[>\s]/i.test(e)}function Wt(e){return/^<\/a\s*>/i.test(e)}const Gt=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Xt=/\((c|tm|r)\)/i,Jt=/\((c|tm|r)\)/gi,Yt={c:"©",r:"®",tm:"™"};function Qt(e,t){return Yt[t.toLowerCase()]}function en(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(Jt,Qt)),"link_open"===i.type&&"auto"===i.info&&t--,"link_close"===i.type&&"auto"===i.info&&t++}}function tn(e){let t=0;for(let n=e.length-1;n>=0;n--){const i=e[n];"text"!==i.type||t||Gt.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 nn=/['"]/,rn=/['"]/g;function sn(e,t,n,i){e[t]||(e[t]=[]),e[t].push({pos:n,ch:i})}function an(e,t){let n;const i=[],r={};for(let s=0;s<e.length;s++){const a=e[s],o=e[s].level;for(n=i.length-1;n>=0&&!(i[n].level<=o);n--);if(i.length=n+1,"text"!==a.type)continue;const l=a.content;let c=0;const d=l.length;e:for(;c<d;){rn.lastIndex=c;const a=rn.exec(l);if(!a)break;let u=!0,h=!0;c=a.index+1;const p="'"===a[0];let m=32;if(a.index-1>=0)m=l.charCodeAt(a.index-1);else for(n=s-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=s+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=Mt(m)||Lt(m),b=Mt(f)||Lt(f),y=Tt(m),v=Tt(f);if(v?u=!1:b&&(y||g||(u=!1)),y?h=!1:g&&(v||b||(h=!1)),34===f&&'"'===a[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]),sn(r,s,a.index,l),sn(r,e.token,e.pos,o),i.length=n;continue e}}u?i.push({token:s,pos:a.index,single:p,level:o}):h&&p&&sn(r,s,a.index,"’")}else p&&sn(r,s,a.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 s=t[r];n+=e.slice(i,s.pos)+s.ch,i=s.pos+1}return n+e.slice(i)}(e[t].content,r[t])})}const on=[["normalize",function(e){let t;t=e.src.replace(Ut,"\n"),t=t.replace(Zt,"�"),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 s=i.length-1;s>=0;s--){const a=i[s];if("link_close"!==a.type){if("html_inline"===a.type&&(Kt(a.content)&&r>0&&r--,Wt(a.content)&&r++),!(r>0)&&"text"===a.type&&e.md.linkify.test(a.content)){const r=a.content;let o=e.md.linkify.match(r);const l=[];let c=a.level,d=0;o.length>0&&0===o[0].index&&s>0&&"text_special"===i[s-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 s=o[t].text;s=o[t].schema?"mailto:"!==o[t].schema||/^mailto:/i.test(s)?e.md.normalizeLinkText(s):e.md.normalizeLinkText("mailto:"+s).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+s).replace(/^http:\/\//,"");const a=o[t].index;if(a>d){const t=new e.Token("text","",0);t.content=r.slice(d,a),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=s,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=ft(i,s,l)}}else for(s--;i[s].level!==a.level&&"link_open"!==i[s].type;)s--}}}],["replacements",function(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(Xt.test(e.tokens[t].content)&&en(e.tokens[t].children),Gt.test(e.tokens[t].content)&&tn(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&&nn.test(e.tokens[t].content)&&an(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,s=r.length;for(t=0;t<s;t++)"text_special"===r[t].type&&(r[t].type="text");for(t=n=0;t<s;t++)"text"===r[t].type&&t+1<s&&"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 ln(){this.ruler=new Ht;for(let e=0;e<on.length;e++)this.ruler.push(on[e][0],on[e][1])}function cn(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,s=r.length,a=!1;t<s;t++){const o=r.charCodeAt(t);if(!a){if(Nt(o)){n++,9===o?i+=4-i%4:i++;continue}a=!0}10!==o&&t!==s-1||(10!==o&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(n),this.sCount.push(i),this.bsCount.push(0),a=!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}ln.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,i=t.length;n<i;n++)t[n](e)},ln.prototype.State=Vt,cn.prototype.push=function(e,t,n){const i=new qt(e,t,n);return i.block=!0,n<0&&this.level--,i.level=this.level,n>0&&this.level++,this.tokens.push(i),i},cn.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},cn.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},cn.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t;e++){if(!Nt(this.src.charCodeAt(e)))break}return e},cn.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!Nt(this.src.charCodeAt(--e)))return e+1;return e},cn.prototype.skipChars=function(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},cn.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},cn.prototype.getLines=function(e,t,n,i){if(e>=t)return"";const r=new Array(t-e);for(let s=0,a=e;a<t;a++,s++){let e=0;const o=this.bMarks[a];let l,c=o;for(l=a+1<t||i?this.eMarks[a]+1:this.eMarks[a];c<l&&e<n;){const t=this.src.charCodeAt(c);if(Nt(t))9===t?e+=4-(e+this.bsCount[a])%4:e++;else{if(!(c-o<this.tShift[a]))break;e++}c++}r[s]=e>n?new Array(e-n+1).join(" ")+this.src.slice(c,l):this.src.slice(c,l)}return r.join("")},cn.prototype.Token=qt;function dn(e,t){const n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];return e.src.slice(n,i)}function un(e){const t=[],n=e.length;let i=0,r=e.charCodeAt(i),s=!1,a=0,o="";for(;i<n;)124===r&&(s?(o+=e.substring(a,i-1),a=i):(t.push(o+e.substring(a,i)),o="",a=i+1)),s=92===r,i++,r=e.charCodeAt(i);return t.push(o+e.substring(a)),t}function hn(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(!Nt(e.src.charCodeAt(i)))return-1}return i}function pn(e,t){const n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];let r=n;if(r+1>=i)return-1;let s=e.src.charCodeAt(r++);if(s<48||s>57)return-1;for(;;){if(r>=i)return-1;if(s=e.src.charCodeAt(r++),!(s>=48&&s<=57)){if(41===s||46===s)break;return-1}if(r-n>=10)return-1}return r<i&&(s=e.src.charCodeAt(r),!Nt(s))?-1:r}const mn="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",fn="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",gn=new RegExp("^(?:"+mn+"|"+fn+"|\x3c!---?>|\x3c!--(?:[^-]|-[^-]|--[^>])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),bn=new RegExp("^(?:"+mn+"|"+fn+")"),yn=[[/^<(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(bn.source+"\\s*$"),/^$/,!1]];const vn=[["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 s=e.bMarks[r]+e.tShift[r];if(s>=e.eMarks[r])return!1;const a=e.src.charCodeAt(s++);if(124!==a&&45!==a&&58!==a)return!1;if(s>=e.eMarks[r])return!1;const o=e.src.charCodeAt(s++);if(124!==o&&45!==o&&58!==o&&!Nt(o))return!1;if(45===a&&Nt(o))return!1;for(;s<e.eMarks[r];){const t=e.src.charCodeAt(s);if(124!==t&&45!==t&&58!==t&&!Nt(t))return!1;s++}let l=dn(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=dn(e,t).trim(),-1===l.indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;c=un(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,s=p.length;t<s;t++)if(p[t](e,r,n,!0)){i=!0;break}if(i)break;if(l=dn(e,r).trim(),!l)break;if(e.sCount[r]-e.blkIndent>=4)break;if(c=un(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 s=e.push("code_block","code",0);return s.content=e.getLines(t,r,4+e.blkIndent,!1)+"\n",s.map=[t,e.line],!0}],["fence",function(e,t,n,i){let r=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(r+3>s)return!1;const a=e.src.charCodeAt(r);if(126!==a&&96!==a)return!1;let o=r;r=e.skipChars(r,a);let l=r-o;if(l<3)return!1;const c=e.src.slice(o,r),d=e.src.slice(r,s);if(96===a&&d.indexOf(String.fromCharCode(a))>=0)return!1;if(i)return!0;let u=t,h=!1;for(;(u++,!(u>=n))&&(r=o=e.bMarks[u]+e.tShift[u],s=e.eMarks[u],!(r<s&&e.sCount[u]<e.blkIndent));)if(e.src.charCodeAt(r)===a&&!(e.sCount[u]-e.blkIndent>=4||(r=e.skipChars(r,a),r-o<l||(r=e.skipSpaces(r),r<s)))){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],s=e.eMarks[t];const a=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],s=e.eMarks[p],r>=s)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 a=i;for(o.push(e.bMarks[p]),e.bMarks[p]=r;r<s;){const t=e.src.charCodeAt(r);if(!Nt(t))break;9===t?a+=4-(a+e.bsCount[p]+(n?1:0))%4:a++,r++}m=r>=s,l.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(t?1:0),c.push(e.sCount[p]),e.sCount[p]=a-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=a,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 s=e.bMarks[t]+e.tShift[t];const a=e.src.charCodeAt(s++);if(42!==a&&45!==a&&95!==a)return!1;let o=1;for(;s<r;){const t=e.src.charCodeAt(s++);if(t!==a&&!Nt(t))return!1;t===a&&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(a)),!0},["paragraph","reference","blockquote","list"]],["list",function(e,t,n,i){let r,s,a,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=pn(e,l))>=0){if(d=!0,a=e.bMarks[l]+e.tShift[l],u=Number(e.src.slice(a,h-1)),p&&1!==u)return!1}else{if(!((h=hn(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;){s=h,r=e.eMarks[l];const t=e.sCount[l]+h-(e.bMarks[l]+e.tShift[l]);let i=t;for(;s<r;){const t=e.src.charCodeAt(s);if(9===t)i+=4-(i+e.bsCount[l])%4;else{if(32!==t)break;i++}s++}const u=s;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(a,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=pn(e,l),h<0)break;a=e.bMarks[l]+e.tShift[l]}else if(h=hn(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],s=e.eMarks[t],a=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 s=!1;for(let r=0,a=i.length;r<a;r++)if(i[r](e,t,n,!0)){s=!0;break}if(e.parentType=r,s)return null}const r=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];return e.src.slice(r,s+1)}let l=e.src.slice(r,s+1);s=l.length;let c=-1;for(r=1;r<s;r++){const e=l.charCodeAt(r);if(91===e)return!1;if(93===e){c=r;break}if(10===e){const e=o(a);null!==e&&(l+=e,s=l.length,a++)}else if(92===e&&(r++,r<s&&10===l.charCodeAt(r))){const e=o(a);null!==e&&(l+=e,s=l.length,a++)}}if(c<0||58!==l.charCodeAt(c+1))return!1;for(r=c+2;r<s;r++){const e=l.charCodeAt(r);if(10===e){const e=o(a);null!==e&&(l+=e,s=l.length,a++)}else if(!Nt(e))break}const d=e.md.helpers.parseLinkDestination(l,r,s);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=a,m=r;for(;r<s;r++){const e=l.charCodeAt(r);if(10===e){const e=o(a);null!==e&&(l+=e,s=l.length,a++)}else if(!Nt(e))break}let f,g=e.md.helpers.parseLinkTitle(l,r,s);for(;g.can_continue;){const t=o(a);if(null===t)break;l+=t,r=s,s=l.length,a++,g=e.md.helpers.parseLinkTitle(l,r,s,g)}for(r<s&&m!==r&&g.ok?(f=g.str,r=g.pos):(f="",r=h,a=p);r<s;){if(!Nt(l.charCodeAt(r)))break;r++}if(r<s&&10!==l.charCodeAt(r)&&f)for(f="",r=h,a=p;r<s;){if(!Nt(l.charCodeAt(r)))break;r++}if(r<s&&10!==l.charCodeAt(r))return!1;const b=Ft(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=a),!0)}],["html_block",function(e,t,n,i){let r=e.bMarks[t]+e.tShift[t],s=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 a=e.src.slice(r,s),o=0;for(;o<yn.length&&!yn[o][0].test(a);o++);if(o===yn.length)return!1;if(i)return yn[o][2];let l=t+1;const c=yn[o][1].test("");if(!yn[o][1].test(a))for(;l<n&&(!(e.sCount[l]<e.blkIndent)||!c&&e.isEmpty(l));l++)if(r=e.bMarks[l]+e.tShift[l],s=e.eMarks[l],a=e.src.slice(r,s),yn[o][1].test(a)){0!==a.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],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.src.charCodeAt(r);if(35!==a||r>=s)return!1;let o=1;for(a=e.src.charCodeAt(++r);35===a&&r<s&&o<=6;)o++,a=e.src.charCodeAt(++r);if(o>6||r<s&&!Nt(a))return!1;if(i)return!0;s=e.skipSpacesBack(s,r);const l=e.skipCharsBack(s,35,r);l>r&&Nt(e.src.charCodeAt(l-1))&&(s=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=Ot(e.src.slice(r,s)),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 s,a=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&&(s=e.src.charCodeAt(t),(45===s||61===s)&&(t=e.skipChars(t,s),t=e.skipSpaces(t),t>=n))){a=61===s?1:2;break}}if(e.sCount[o]<0)continue;let t=!1;for(let r=0,s=i.length;r<s;r++)if(i[r](e,o,n,!0)){t=!0;break}if(t)break}if(!a)return e.parentType=r,!1;const l=Ot(e.getLines(t,o,e.blkIndent,!1));e.line=o+1;const c=e.push("heading_open","h"+String(a),1);c.markup=String.fromCharCode(s),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(a),-1).markup=String.fromCharCode(s),e.parentType=r,!0}],["paragraph",function(e,t,n){const i=e.md.block.ruler.getRules("paragraph"),r=e.parentType;let s=t+1;for(e.parentType="paragraph";s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]<0)continue;let t=!1;for(let r=0,a=i.length;r<a;r++)if(i[r](e,s,n,!0)){t=!0;break}if(t)break}const a=Ot(e.getLines(t,s,e.blkIndent,!1));e.line=s,e.push("paragraph_open","p",1).map=[t,e.line];const o=e.push("inline","",0);return o.content=a,o.map=[t,e.line],o.children=[],e.push("paragraph_close","p",-1),e.parentType=r,!0}]];function wn(){this.ruler=new Ht;for(let e=0;e<vn.length;e++)this.ruler.push(vn[e][0],vn[e][1],{alt:(vn[e][2]||[]).slice()})}function xn(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 En(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}}wn.prototype.tokenize=function(e,t,n){const i=this.ruler.getRules(""),r=i.length,s=e.md.options.maxNesting;let a=t,o=!1;for(;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n))&&!(e.sCount[a]<e.blkIndent);){if(e.level>=s){e.line=n;break}const t=e.line;let l=!1;for(let s=0;s<r;s++)if(l=i[s](e,a,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),a=e.line,a<n&&e.isEmpty(a)&&(o=!0,a++,e.line=a)}},wn.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)},wn.prototype.State=cn,xn.prototype.pushPending=function(){const e=new qt("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},xn.prototype.push=function(e,t,n){this.pending&&this.pushPending();const i=new qt(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},xn.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 s=e;for(;s<n&&this.src.charCodeAt(s)===i;)s++;const a=s-e;let o=s<n?this.src.charCodeAt(s):32;if(55296==(64512&o)){const e=this.src.charCodeAt(s+1);o=56320==(64512&e)?65536+(o-55296<<10)+(e-56320):65533}else 56320==(64512&o)&&(o=65533);const l=Mt(r)||Lt(r),c=Mt(o)||Lt(o),d=Tt(r),u=Tt(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:a}},xn.prototype.Token=qt;const kn=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;const _n=[];for(let e=0;e<256;e++)_n.push(0);function An(e,t){let n;const i=[],r=t.length;for(let s=0;s<r;s++){const r=t[s];if(126!==r.marker)continue;if(-1===r.end)continue;const a=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[a.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="","text"===e.tokens[a.token-1].type&&"~"===e.tokens[a.token-1].content&&i.push(a.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){_n[e.charCodeAt(0)]=1});var Cn={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 s=r.length;const a=String.fromCharCode(i);if(s<2)return!1;let o;s%2&&(o=e.push("text","",0),o.content=a,s--);for(let t=0;t<s;t+=2)o=e.push("text","",0),o.content=a+a,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;An(e,e.delimiters);for(let i=0;i<n;i++)t[i]&&t[i].delimiters&&An(e,t[i].delimiters)}};function Sn(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],s=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,a=String.fromCharCode(i.marker),o=e.tokens[i.token];o.type=s?"strong_open":"em_open",o.tag=s?"strong":"em",o.nesting=1,o.markup=s?a+a:a,o.content="";const l=e.tokens[r.token];l.type=s?"strong_close":"em_close",l.tag=s?"strong":"em",l.nesting=-1,l.markup=s?a+a:a,l.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[i.end+1].token].content="",n--)}}var Dn={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;Sn(e,e.delimiters);for(let i=0;i<n;i++)t[i]&&t[i].delimiters&&Sn(e,t[i].delimiters)}};const Nn=/^([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])?)*)$/,Tn=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;const In=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Ln=/^&([a-z][a-z0-9]{1,31});/i;function Mn(e){const t={},n=e.length;if(!n)return;let i=0,r=-2;const s=[];for(let a=0;a<n;a++){const n=e[a];if(s.push(0),e[i].marker===n.marker&&r===n.token-1||(i=a),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-s[i]-1,c=l;for(;l>o;l-=s[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?s[l-1]+1:0;s[a]=a-l+i,s[l]=i,n.open=!1,t.end=a,t.close=!1,c=-1,r=-2;break}}}-1!==c&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=c)}}const Fn=[["text",function(e,t){let n=e.pos;for(;n<e.posMax&&!En(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(kn);if(!i)return!1;const r=i[1],s=e.md.linkify.matchAtStart(e.src.slice(n-r.length));if(!s)return!1;let a=s.url;if(a.length<=r.length)return!1;let o=a.length;for(;o>0&&42===a.charCodeAt(o-1);)o--;o!==a.length&&(a=a.slice(0,o));const l=e.md.normalizeLink(a);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(a);const n=e.push("link_close","a",-1);n.markup="linkify",n.info="auto"}return e.pos+=a.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&&Nt(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),Nt(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 s=e.src[n];if(r>=55296&&r<=56319&&n+1<i){const t=e.src.charCodeAt(n+1);t>=56320&&t<=57343&&(s+=e.src[n+1],n++)}const a="\\"+s;if(!t){const t=e.push("text_special","",0);r<256&&0!==_n[r]?t.content=s:t.content=a,t.markup=a,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 s=e.src.slice(i,n),a=s.length;if(e.backticksScanned&&(e.backticks[a]||0)<=i)return t||(e.pending+=s),e.pos+=a,!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===a){if(!t){const t=e.push("code_inline","code",0);t.markup=s,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+=s),e.pos+=a,!0}],["strikethrough",Cn.tokenize],["emphasis",Dn.tokenize],["link",function(e,t){let n,i,r,s,a="",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),Nt(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(a=e.md.normalizeLink(r.str),e.md.validateLink(a)?m=r.pos:a="",l=m;m<u&&(n=e.src.charCodeAt(m),Nt(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),Nt(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)),s=e.env.references[Ft(i)],!s)return e.pos=d,!1;a=s.href,o=s.title}if(!t){e.pos=h,e.posMax=p;const t=[["href",a]];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,s,a,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(s=m+1,s<h&&40===e.src.charCodeAt(s)){for(s++;s<h&&(n=e.src.charCodeAt(s),Nt(n)||10===n);s++);if(s>=h)return!1;for(c=s,o=e.md.helpers.parseLinkDestination(e.src,s,e.posMax),o.ok&&(d=e.md.normalizeLink(o.str),e.md.validateLink(d)?s=o.pos:d=""),c=s;s<h&&(n=e.src.charCodeAt(s),Nt(n)||10===n);s++);if(o=e.md.helpers.parseLinkTitle(e.src,s,e.posMax),s<h&&c!==s&&o.ok)for(l=o.str,s=o.pos;s<h&&(n=e.src.charCodeAt(s),Nt(n)||10===n);s++);else l="";if(s>=h||41!==e.src.charCodeAt(s))return e.pos=u,!1;s++}else{if(void 0===e.env.references)return!1;if(s<h&&91===e.src.charCodeAt(s)?(c=s+1,s=e.md.helpers.parseLinkLabel(e,s),s>=0?r=e.src.slice(c,s++):s=m+1):s=m+1,r||(r=e.src.slice(p,m)),a=e.env.references[Ft(r)],!a)return e.pos=u,!1;d=a.href,l=a.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=s,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 s=e.src.slice(i+1,n);if(Tn.test(s)){const n=e.md.normalizeLink(s);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(s);const i=e.push("link_close","a",-1);i.markup="autolink",i.info="auto"}return e.pos+=s.length+2,!0}if(Nn.test(s)){const n=e.md.normalizeLink("mailto:"+s);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(s);const i=e.push("link_close","a",-1);i.markup="autolink",i.info="auto"}return e.pos+=s.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 s=e.src.slice(i).match(gn);if(!s)return!1;if(!t){const t=e.push("html_inline","",0);t.content=s[0],a=t.content,/^<a[>\s]/i.test(a)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(t.content)&&e.linkLevel--}var a;return e.pos+=s[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(In);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=gt(t)?bt(t):bt(65533),n.markup=i[0],n.info="entity"}return e.pos+=i[0].length,!0}}else{const i=e.src.slice(n).match(Ln);if(i){const n=(r=i[0],ut(r,rt.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}]],zn=[["balance_pairs",function(e){const t=e.tokens_meta,n=e.tokens_meta.length;Mn(e.delimiters);for(let e=0;e<n;e++)t[e]&&t[e].delimiters&&Mn(t[e].delimiters)}],["strikethrough",Cn.postProcess],["emphasis",Dn.postProcess],["fragments_join",function(e){let t,n,i=0;const r=e.tokens,s=e.tokens.length;for(t=n=0;t<s;t++)r[t].nesting<0&&i--,r[t].level=i,r[t].nesting>0&&i++,"text"===r[t].type&&t+1<s&&"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 On(){this.ruler=new Ht;for(let e=0;e<Fn.length;e++)this.ruler.push(Fn[e][0],Fn[e][1]);this.ruler2=new Ht;for(let e=0;e<zn.length;e++)this.ruler2.push(zn[e][0],zn[e][1])}function Bn(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function Rn(e){return Object.prototype.toString.call(e)}function $n(e){return"[object Function]"===Rn(e)}function jn(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}On.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),i=n.length,r=e.md.options.maxNesting,s=e.cache;if(void 0!==s[t])return void(e.pos=s[t]);let a=!1;if(e.level<r){for(let r=0;r<i;r++)if(e.level++,a=n[r](e,!0),e.level--,a){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;a||e.pos++,s[t]=e.pos},On.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 s=e.pos;let a=!1;if(e.level<r)for(let i=0;i<n;i++)if(a=t[i](e,!1),a){if(s>=e.pos)throw new Error("inline rule didn't increment state.pos");break}if(a){if(e.pos>=i)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},On.prototype.parse=function(e,t,n,i){const r=new this.State(e,t,n,i);this.tokenize(r);const s=this.ruler2.getRules(""),a=s.length;for(let e=0;e<a;e++)s[e](r)},On.prototype.State=xn;const Pn={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};const Hn={"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}}},qn="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Vn(e){const t=e.re=function(e){const t={};e=e||{},t.src_Any=Ue.source,t.src_Cc=Ze.source,t.src_Z=Ge.source,t.src_P=Ke.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 s(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]"===Rn(n))return!function(e){return"[object RegExp]"===Rn(e)}(n.validate)?$n(n.validate)?i.validate=n.validate:s(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($n(n.normalize)?i.normalize=n.normalize:n.normalize?s(t,n):i.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===Rn(e)}(n)?s(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 a=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(jn).join("|");e.re.schema_test=RegExp(`(^|(?!_)(?:[><|]|${t.src_ZPCc}))(${a})`,"i"),e.re.schema_search=RegExp(`(^|(?!_)(?:[><|]|${t.src_ZPCc}))(${a})`,"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 Un(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 Zn(e,t){if(!(this instanceof Zn))return new Zn(e,t);var n;t||(n=e,Object.keys(n||{}).reduce(function(e,t){return e||Pn.hasOwnProperty(t)},!1)&&(t=e,e={})),this.__opts__=Bn({},Pn,t),this.__schemas__=Bn({},Hn,e),this.__compiled__={},this.__tlds__=qn,this.__tlds_replaced__=!1,this.re={},Vn(this)}Zn.prototype.add=function(e,t){return this.__schemas__[e]=t,Vn(this),this},Zn.prototype.set=function(e){return this.__opts__=Bn(this.__opts__,e),this},Zn.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))},Zn.prototype.pretest=function(e){return this.re.pretest.test(e)},Zn.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},Zn.prototype.match=function(e){const t=[],n=[],i=[],r=[];let s,a,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!==(s=o.exec(e));)a=this.testSchemaAt(e,s[2],o.lastIndex),a&&n.push({schema:s[2],index:s.index+s[1].length,lastIndex:s.index+s[0].length+a});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!==(s=o.exec(e));)i.push({schema:"",index:s.index+s[1].length,lastIndex:s.index+s[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for(o=this.re.email_fuzzy_global,o.lastIndex=0;null!==(s=o.exec(e));)r.push({schema:"mailto:",index:s.index+s[1].length,lastIndex:s.index+s[0].length});const c=[0,0,0];let d=0;for(;;){const s=[n[c[0]],r[c[1]],i[c[2]]],a=l(l(s[0],s[1]),s[2]);if(!a)break;if(a===s[0]?c[0]++:a===s[1]?c[1]++:c[2]++,a.index<d)continue;const o=new Un(e,a.schema,a.index,a.lastIndex);this.__compiled__[o.schema].normalize(o,this),t.push(o),d=a.lastIndex}return t.length?t:null},Zn.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 Un(e,t[2],t.index+t[1].length,t.index+t[0].length+n);return this.__compiled__[i.schema].normalize(i,this),i},Zn.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(),Vn(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Vn(this),this)},Zn.prototype.normalize=function(e){e.schema||(e.url=`http://${e.url}`),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url=`mailto:${e.url}`)},Zn.prototype.onCompile=function(){};const Kn=2147483647,Wn=36,Gn=/^xn--/,Xn=/[^\0-\x7F]/,Jn=/[\x2E\u3002\uFF0E\uFF61]/g,Yn={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Qn=Math.floor,ei=String.fromCharCode;function ti(e){throw new RangeError(Yn[e])}function ni(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(Jn,".")).split("."),t).join(".");return i+r}function ii(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 ri=function(e){return e>=48&&e<58?e-48+26:e>=65&&e<91?e-65:e>=97&&e<123?e-97:Wn},si=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},ai=function(e,t,n){let i=0;for(e=n?Qn(e/700):e>>1,e+=Qn(e/t);e>455;i+=Wn)e=Qn(e/35);return Qn(i+36*e/(e+38))},oi=function(e){const t=[],n=e.length;let i=0,r=128,s=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let n=0;n<a;++n)e.charCodeAt(n)>=128&&ti("not-basic"),t.push(e.charCodeAt(n));for(let o=a>0?a+1:0;o<n;){const a=i;for(let t=1,r=Wn;;r+=Wn){o>=n&&ti("invalid-input");const a=ri(e.charCodeAt(o++));a>=Wn&&ti("invalid-input"),a>Qn((Kn-i)/t)&&ti("overflow"),i+=a*t;const l=r<=s?1:r>=s+26?26:r-s;if(a<l)break;const c=Wn-l;t>Qn(Kn/c)&&ti("overflow"),t*=c}const l=t.length+1;s=ai(i-a,l,0==a),Qn(i/l)>Kn-r&&ti("overflow"),r+=Qn(i/l),i%=l,t.splice(i++,0,r)}return String.fromCodePoint(...t)},li=function(e){const t=[],n=(e=ii(e)).length;let i=128,r=0,s=72;for(const n of e)n<128&&t.push(ei(n));const a=t.length;let o=a;for(a&&t.push("-");o<n;){let n=Kn;for(const t of e)t>=i&&t<n&&(n=t);const l=o+1;n-i>Qn((Kn-r)/l)&&ti("overflow"),r+=(n-i)*l,i=n;for(const n of e)if(n<i&&++r>Kn&&ti("overflow"),n===i){let e=r;for(let n=Wn;;n+=Wn){const i=n<=s?1:n>=s+26?26:n-s;if(e<i)break;const r=e-i,a=Wn-i;t.push(ei(si(i+r%a,0))),e=Qn(r/a)}t.push(ei(si(e,0))),s=ai(r,l,o===a),r=0,++o}++r,++i}return t.join("")},ci=function(e){return ni(e,function(e){return Xn.test(e)?"xn--"+li(e):e})},di=function(e){return ni(e,function(e){return Gn.test(e)?oi(e.slice(4).toLowerCase()):e})};const ui={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"]}}}},hi=/^(vbscript|javascript|file|data):/,pi=/^data:image\/(gif|png|jpeg|webp);/;function mi(e){const t=e.trim().toLowerCase();return!hi.test(t)||pi.test(t)}const fi=["http:","https:","mailto:"];function gi(e){const t=He(e,!0);if(t.hostname&&(!t.protocol||fi.indexOf(t.protocol)>=0))try{t.hostname=ci(t.hostname)}catch(e){}return De(Ne(t))}function bi(e){const t=He(e,!0);if(t.hostname&&(!t.protocol||fi.indexOf(t.protocol)>=0))try{t.hostname=di(t.hostname)}catch(e){}return Ce(Ne(t),Ce.defaultChars+"%")}function yi(e,t){if(!(this instanceof yi))return new yi(e,t);t||ht(e)||(t=e||{},e="default"),this.inline=new On,this.block=new wn,this.core=new ln,this.renderer=new Pt,this.linkify=new Zn,this.validateLink=mi,this.normalizeLink=gi,this.normalizeLinkText=bi,this.utils=Rt,this.helpers=mt({},$t),this.options={},this.configure(e),t&&this.set(t)}function vi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wi,xi;function Ei(){if(xi)return wi;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}xi=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,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}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 s{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 a=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class o{constructor(){this.rootNode=a(),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=a({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 s(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]},A={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[k]},C=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 s=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(/[ ]+/,"(",s,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},S=C("//","$"),D=C("/\\*","\\*/"),N=C("#","$"),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]}]},F={scope:"title",begin:y,relevance:0},z={scope:"title",begin:v,relevance:0},O={begin:"\\.\\s*"+v,relevance:0};var B=Object.freeze({__proto__:null,APOS_STRING_MODE:_,BACKSLASH_ESCAPE:k,BINARY_NUMBER_MODE:L,BINARY_NUMBER_RE:E,COMMENT:C,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:O,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:A,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:F,UNDERSCORE_IDENT_RE:v,UNDERSCORE_TITLE_MODE:z});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,K(n[0],n[1])]})}}function K(e,t){return t?Number(t):function(e){return U.includes(e.toLowerCase())}(e)?0:1}const W={},G=e=>{console.error(e)},X=(e,...t)=>{console.log(`WARN: ${e}`,...t)},J=(e,t)=>{W[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),W[`${e}/${t}`]=!0)},Y=new Error;function Q(e,t,{key:n}){let i=0;const r=e[n],s={},a={};for(let e=1;e<=t.length;e++)a[e+i]=r[e],s[e+i]=!0,i+=f(t[e-1]);e[n]=a,e[n]._emit=s,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(s,a){const o=s;if(s.isCompiled)return o;[$,H,ee,V].forEach(e=>e(s,a)),e.compilerExtensions.forEach(e=>e(s,a)),s.__beforeBegin=null,[j,P,q].forEach(e=>e(s,a)),s.isCompiled=!0;let l=null;return"object"==typeof s.keywords&&s.keywords.$pattern&&(s.keywords=Object.assign({},s.keywords),l=s.keywords.$pattern,delete s.keywords.$pattern),l=l||/\w+/,s.keywords&&(s.keywords=Z(s.keywords,e.case_insensitive)),o.keywordPatternRe=t(l,!0),a&&(s.begin||(s.begin=/\B|\b/),o.beginRe=t(o.begin),s.end||s.endsWithParent||(s.end=/\B|\b/),s.end&&(o.endRe=t(o.end)),o.terminatorEnd=c(o.end)||"",s.endsWithParent&&a.terminatorEnd&&(o.terminatorEnd+=(s.end?"|":"")+a.terminatorEnd)),s.illegal&&(o.illegalRe=t(s.illegal)),s.contains||(s.contains=[]),s.contains=[].concat(...s.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?s:e)})),s.contains.forEach(function(e){n(e,o)}),s.starts&&n(s.starts,a),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,se=i,ae=Symbol("nomatch"),oe=function(n){const i=Object.create(null),r=Object.create(null),s=[];let a=!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 s={code:i,language:r};C("before:highlight",s);const a=s.result?s.result:y(s.language,s.code,n);return a.code=s.code,C("after:highlight",a),a}function y(e,n,r,s){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,s]=r;if(N.addText(n),n="",l[i]=(l[i]||0)+1,l[i]<=7&&(I+=s),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):(F=!0,0)}function w(e){const t=e[0],i=n.substring(e.index),r=g(S,e,i);if(!r)return ae;const s=S;S.endScope&&S.endScope._wrap?(u(),h(t,S.endScope._wrap)):S.endScope&&S.endScope._multi?(u(),p(S.endScope,e)):s.skip?T+=t:(s.returnEnd||s.excludeEnd||(T+=t),u(),s.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),s.returnEnd?0:t.length}let x={};function E(i,s){const o=s&&s[0];if(T+=i,null==o)return u(),0;if("begin"===x.type&&"end"===s.type&&x.index===s.index&&""===o){if(T+=n.slice(s.index,s.index+1),!a){const t=new Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=x.rule,t}return 1}if(x=s,"begin"===s.type)return function(e){const n=e[0],i=e.rule,r=new t(i),s=[i.__beforeBegin,i["on:begin"]];for(const t of s)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}(s);if("illegal"===s.type&&!r){const e=new Error('Illegal lexeme "'+o+'" for mode "'+(S.scope||"<unnamed>")+'"');throw e.mode=S,e}if("end"===s.type){const e=w(s);if(e!==ae)return e}if("illegal"===s.type&&""===o)return T+="\n",1;if(M>1e5&&M>3*s.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 A=te(_);let C="",S=s||A;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,F=!1;try{if(_.__emitTokens)_.__emitTokens(n,N);else{for(S.matcher.considerAll();;){M++,F?F=!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(),C=N.toHTML(),{language:e,value:C,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:C},_emitter:N};if(a)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(A).map(t=>y(t,e,!1));r.unshift(n);const s=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}),[a,o]=s,l=a;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(C("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,s=n?b(i,{language:n,ignoreIllegals:!0}):v(i);e.innerHTML=s.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,s.language),e.result={language:s.language,re:s.relevance,relevance:s.relevance},s.secondBest&&(e.secondBest={language:s.secondBest.language,relevance:s.secondBest.relevance}),C("after:highlightElement",{el:e,result:s,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 A(e){const t=k(e);return t&&!t.disableAutodetect}function C(e,t){const n=e;s.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=se(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)),!a)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:A,inherit:se,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),s.push(e)},removePlugin:function(e){const t=s.indexOf(e);-1!==t&&s.splice(t,1)}}),n.debugMode=function(){a=!1},n.safeMode=function(){a=!0},n.versionString="11.11.1",n.regex={concat:p,lookahead:d,either:m,optional:h,anyNumberOfTimes:u};for(const t in B)"object"==typeof B[t]&&e(B[t]);return Object.assign(n,B),n},le=oe({});return le.newInstance=()=>oe({}),wi=le,le.HighlightJS=le,le.default=le,wi}yi.prototype.set=function(e){return mt(this.options,e),this},yi.prototype.configure=function(e){const t=this;if(ht(e)){const t=e;if(!(e=ui[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},yi.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},yi.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},yi.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},yi.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},yi.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},yi.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},yi.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var ki=vi(Ei());const _i="[A-Za-z$_][0-9A-Za-z$_]*",Ai=["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"],Ci=["true","false","null","undefined","NaN","Infinity"],Si=["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"],Di=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Ni=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Ti=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Ii=[].concat(Ni,Si,Di);const Li="[A-Za-z$_][0-9A-Za-z$_]*",Mi=["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"],zi=["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"],Bi=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Ri=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],$i=[].concat(Bi,zi,Oi);function ji(e){const t=e.regex,n=Li,i="<>",r="</>",s={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 s=e.input.substring(n);((r=s.match(/^\s*=/))||(r=s.match(/^\s+extends\s+/))&&0===r.index)&&t.ignoreMatch()}},a={$pattern:Li,keyword:Mi,literal:Fi,built_in:$i,"variable.language":Ri},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:a,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:a,contains:["self"].concat(b)});const y=[].concat(g,u.contains),v=y.concat([{begin:/(\s*)\(/,end:/\)/,keywords:a,contains:["self"].concat(y)}]),w={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,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:{_:[...zi,...Oi]}},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("|"),")")}([...Bi,"super","import"].map(e=>`${e}\\s*\\(`)),n,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},A={begin:t.concat(/\./,t.lookahead(t.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},C={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:a,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:a,contains:v}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i,end:r},{match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.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},A,{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,C,{match:/\$[(.]/}]}}const Pi=["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"],Hi=["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(),qi=["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(),Vi=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Ui=["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();ki.registerLanguage("javascript",function(e){const t=e.regex,n=_i,i="<>",r="</>",s={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 s=e.input.substring(n);((r=s.match(/^\s*=/))||(r=s.match(/^\s+extends\s+/))&&0===r.index)&&t.ignoreMatch()}},a={$pattern:_i,keyword:Ai,literal:Ci,built_in:Ii,"variable.language":Ti},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:a,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:a,contains:["self"].concat(b)});const y=[].concat(g,u.contains),v=y.concat([{begin:/(\s*)\(/,end:/\)/,keywords:a,contains:["self"].concat(y)}]),w={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,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:{_:[...Si,...Di]}},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("|"),")")}([...Ni,"super","import"].map(e=>`${e}\\s*\\(`)),n,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},A={begin:t.concat(/\./,t.lookahead(t.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},C={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:a,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:a,contains:v}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i,end:r},{match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.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},A,{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,C,{match:/\$[(.]/}]}}),ki.registerLanguage("typescript",function(e){const t=e.regex,n=ji(e),i=Li,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],s={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},a={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[n.exports.CLASS_REFERENCE]},o={$pattern:Li,keyword:Mi.concat(["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"]),literal:Fi,built_in:$i.concat(r),"variable.language":Ri},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,s,a,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}),ki.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"]},s={className:"meta",begin:/^(>>>|\.\.\.) /},a={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,s],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,s],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,s,o,a]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,s,o,a]},{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,a]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,o,a]},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",s,h,l,e.HASH_COMMENT_MODE]}]};return a.contains=[l,h,s],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:r,illegal:/(<\/|\?)|=>/,contains:[s,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]}]}}),ki.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"}}),ki.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,{}[\]]+/}]}),s={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"},a={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},o={begin:/\{/,end:/\}/,contains:[a],illegal:"\\n",relevance:0},l={begin:"\\[",end:"\\]",contains:[a],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}},s,{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),a.contains=d,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:c}}),ki.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]},s=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),a={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,s,a,{match:/(\/[a-z._-]+)+/},o,{match:/\\"/},{className:"string",begin:/'/,end:/'/},{match:/\\'/},n]}}),ki.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/}]},s=e.inherit(r,{begin:/\(/,end:/\)/}),a=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,a,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[r,s,o,a]}]}]},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}]}]}}),ki.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:":("+qi.join("|")+")"},{begin:":(:)?("+Vi.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Ui.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:Hi.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...i,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Pi.join("|")+")\\b"}]}}),ki.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,s=["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)),a={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)}(s,{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,a,{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}]}}),ki.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}]},s=e.inherit(i,{contains:[]}),a=e.inherit(r,{contains:[]});i.contains.push(a),r.contains.push(s);let o=[t,n];return[i,r,s,a].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});/}]}}),ki.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 Zi={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 Ki(e){const t=new yi({html:!1,linkify:!0,breaks:!0,highlight:e?(e,t)=>{const n=function(e){const t=(e||"").trim().toLowerCase();if(!t)return;const n=Zi[t]??t;return ki.getLanguage(n)?n:void 0}(t);if(n)try{return ki.highlight(e,{language:n,ignoreIllegals:!0}).value}catch{}return""}:void 0});return t}const Wi=Ki(!0),Gi=Ki(!1);const Xi={ActivityBar:z,AppBar:P,Statusbar:H,View:G,Views:Q,KeyboardShortcuts:ee,Layout:se,ContentTabs:le,PanelTabs:me,PanelContainers:ge,PanelLayout:{manager:_e},Profile:n,Markdown:{render:function(e,t){return(!1===t?.highlight?Gi:Wi).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 Ji{name=i.SHELL.ACTIVITY_BAR;version="1.0.0";dependencies=[i.KERNEL.COMMANDS,i.RUNTIME.WORKSPACE];#Kt=r.CREATED;get state(){return this.#Kt}async bootstrap(e){const{punica:t,registry:n}=e,s=n.getState(i.KERNEL.COMMANDS),a=n.getState(i.RUNTIME.WORKSPACE);if(s!==r.BOOTSTRAPPED)throw new Error("kernel.commands must be bootstrapped before shell.activityBar");if(a!==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 Yi{name="shell.appBar";version="1.0.0";dependencies=[i.KERNEL.COMMANDS,i.SHELL.LAYOUT];#Kt=r.CREATED;get state(){return this.#Kt}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}P.manager.init(n)}}class Qi{name=i.SHELL.STATUSBAR;version="1.0.0";dependencies=[i.KERNEL.EVENTS];#Kt=r.CREATED;get state(){return this.#Kt}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 er{name=i.SHELL.VIEW;version="1.0.0";dependencies=[i.KERNEL.COMMANDS];#Kt=r.CREATED;get state(){return this.#Kt}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(w(),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 tr{name=i.SHELL.VIEWS;version="1.0.0";dependencies=[i.SHELL.LAYOUT,i.KERNEL.COMMANDS];#Kt=r.CREATED;get state(){return this.#Kt}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 nr{name=i.SHELL.KEYBOARD_SHORTCUTS;version="1.0.0";dependencies=[i.KERNEL.COMMANDS];#Kt=r.CREATED;get state(){return this.#Kt}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:[a(t)],when:i})};t("mod+j",s.SHELL.TOGGLE_PANEL),t("mod+b",s.SHELL.TOGGLE_PRIMARY_SIDEBAR),t("mod+l",s.SHELL.TOGGLE_SECONDARY_SIDEBAR)}()}}class ir{name=i.SHELL.LAYOUT;version="1.0.0";dependencies=[i.KERNEL.COMMANDS,i.RUNTIME.WORKSPACE];#Kt=r.CREATED;get state(){return this.#Kt}async bootstrap(e){const{punica:t,registry:n}=e,s=n.getState(i.KERNEL.COMMANDS),a=n.getState(i.RUNTIME.WORKSPACE);if(s!==r.BOOTSTRAPPED)throw new Error("kernel.commands must be bootstrapped before shell.layout");if(a!==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 rr{name=i.SHELL.CONTENT_TABS;version="1.0.0";dependencies=[i.KERNEL.COMMANDS];#Kt=r.CREATED;get state(){return this.#Kt}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 sr{name=i.SHELL.PANEL_TABS;version="1.0.0";dependencies=[i.KERNEL.COMMANDS];#Kt=r.CREATED;get state(){return this.#Kt}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 ar{name=i.SHELL.PANEL_LAYOUT;version="1.0.0";dependencies=[i.KERNEL.COMMANDS];#Kt=r.CREATED;get state(){return this.#Kt}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 or=["<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(""),lr={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(or)}`}},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:[{id:"appbar-settings",icon:'<i class="fa-solid fa-gear"></i>',title:"Settings",alignment:"right",command:"settings.open"},{id:"appbar-account",kind:"avatar",label:"ivyx",title:"Account",alignment:"right",summaryCommand:"host.account.summary",initialsCommand:"host.account.initials",menu:[{id:"account-settings",label:"Settings",command:"settings.open"},{id:"account-activate",label:"Activate License…",command:"host.license.activate"},{id:"account-updates",label:"Check for Updates…",command:"host.app.checkForUpdates"}]}]}},theme:{mode:"auto",density:"comfortable",branding:{productName:"IVYX Studio"}},capabilities:{allowedIds:"*"},localization:{default:"en",supported:["en","tr"]}},cr={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 dr(){o({facade:Xi,moduleFactories:{"shell.statusbar":()=>new Qi,"shell.view":()=>new er,"shell.views":()=>new tr,"shell.keyboardShortcuts":()=>new nr,"shell.contentTabs":()=>new rr,"shell.panelTabs":()=>new sr,"shell.panelLayout":()=>new ar,"shell.layout":()=>new ir,"shell.activityBar":()=>new Ji,"shell.appBar":()=>new Yi},profiles:[lr,cr],defaultProfileId:"ivyx-classic"})}export{dr as registerClassicShell};
2
2
  //# sourceMappingURL=index.bundle.esm.js.map