tina4ruby 3.11.35 → 3.11.36

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,4 +1,4 @@
1
- (function(){"use strict";var at;const vt="/__dev/api";async function T(e,t="GET",n){const i={method:t,headers:{}};return n&&(i.headers["Content-Type"]="application/json",i.body=JSON.stringify(n)),(await fetch(vt+e,i)).json()}function r(e){const t=document.createElement("span");return t.textContent=e,t.innerHTML}const Ue={python:{color:"#3b82f6",name:"Python"},php:{color:"#8b5cf6",name:"PHP"},ruby:{color:"#ef4444",name:"Ruby"},nodejs:{color:"#22c55e",name:"Node.js"}};function xt(){const e=document.getElementById("app"),t=(e==null?void 0:e.dataset.framework)??"python",n=e==null?void 0:e.dataset.color,i=Ue[t]??Ue.python;return{framework:t,color:n??i.color,name:i.name}}function wt(e){const t=document.documentElement;t.style.setProperty("--primary",e.color),t.style.setProperty("--bg","#0f172a"),t.style.setProperty("--surface","#1e293b"),t.style.setProperty("--border","#334155"),t.style.setProperty("--text","#e2e8f0"),t.style.setProperty("--muted","#94a3b8"),t.style.setProperty("--success","#22c55e"),t.style.setProperty("--danger","#ef4444"),t.style.setProperty("--warn","#f59e0b"),t.style.setProperty("--info","#3b82f6")}const _t=`
1
+ var GZ=Object.defineProperty;var IZ=(qi,A,Q)=>A in qi?GZ(qi,A,{enumerable:!0,configurable:!0,writable:!0,value:Q}):qi[A]=Q;var Ko=(qi,A,Q)=>IZ(qi,typeof A!="symbol"?A+"":A,Q);(function(){"use strict";const qi="/__dev/api";async function A(i,e="GET",t){const n={method:e,headers:{}};return t&&(n.headers["Content-Type"]="application/json",n.body=JSON.stringify(t)),(await fetch(qi+i,n)).json()}function Q(i){const e=document.createElement("span");return e.textContent=i,e.innerHTML}const Ic={python:{color:"#3b82f6",name:"Python"},php:{color:"#8b5cf6",name:"PHP"},ruby:{color:"#ef4444",name:"Ruby"},nodejs:{color:"#22c55e",name:"Node.js"}};function bQ(){const i=document.getElementById("app"),e=(i==null?void 0:i.dataset.framework)??"python",t=i==null?void 0:i.dataset.color,n=Ic[e]??Ic.python;return{framework:e,color:t??n.color,name:n.name}}function SQ(i){const e=document.documentElement;e.style.setProperty("--primary",i.color),e.style.setProperty("--bg","#0f172a"),e.style.setProperty("--surface","#1e293b"),e.style.setProperty("--border","#334155"),e.style.setProperty("--text","#e2e8f0"),e.style.setProperty("--muted","#94a3b8"),e.style.setProperty("--success","#22c55e"),e.style.setProperty("--danger","#ef4444"),e.style.setProperty("--warn","#f59e0b"),e.style.setProperty("--info","#3b82f6")}const wQ=`
2
2
  * { margin: 0; padding: 0; box-sizing: border-box; }
3
3
  body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
4
4
 
@@ -12,9 +12,11 @@ body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-
12
12
  .dev-tab:hover { color: var(--text); }
13
13
  .dev-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
14
14
 
15
- .dev-content { flex: 1; overflow-y: auto; }
15
+ .dev-content { flex: 1; overflow-y: auto; min-height: 0; }
16
16
  .dev-panel { padding: 1rem; display: none; }
17
17
  .dev-panel.active { display: block; }
18
+ .fullscreen-editor .dev-content { overflow: hidden; position: relative; }
19
+ .fullscreen-editor .dev-panel.active { padding: 0; display: block; position: absolute; inset: 0; }
18
20
  .dev-panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
19
21
  .dev-panel-header h2 { font-size: 0.95rem; font-weight: 600; }
20
22
 
@@ -76,7 +78,7 @@ tr:hover { background: rgba(255,255,255,0.03); }
76
78
  .error-trace { background: var(--bg); border: 1px solid var(--border); border-radius: 0.375rem; padding: 0.5rem; font-family: monospace; font-size: 0.75rem; white-space: pre-wrap; max-height: 200px; overflow-y: auto; margin-top: 0.5rem; }
77
79
 
78
80
  .bubble-chart { width: 100%; height: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: 0.5rem; overflow: hidden; }
79
- `;function kt(e){e.innerHTML=`
81
+ `;function PQ(i){i.innerHTML=`
80
82
  <div class="dev-panel-header">
81
83
  <h2>Routes <span id="routes-count" class="text-muted text-sm"></span></h2>
82
84
  <button class="btn btn-sm" onclick="window.__loadRoutes()">Refresh</button>
@@ -85,14 +87,14 @@ tr:hover { background: rgba(255,255,255,0.03); }
85
87
  <thead><tr><th>Method</th><th>Path</th><th>Auth</th><th>Handler</th></tr></thead>
86
88
  <tbody id="routes-body"></tbody>
87
89
  </table>
88
- `,Ve()}async function Ve(){const e=await T("/routes"),t=document.getElementById("routes-count");t&&(t.textContent=`(${e.count})`);const n=document.getElementById("routes-body");n&&(n.innerHTML=(e.routes||[]).map(i=>`
90
+ `,Dc()}async function Dc(){const i=await A("/routes"),e=document.getElementById("routes-count");e&&(e.textContent=`(${i.count})`);const t=document.getElementById("routes-body");t&&(t.innerHTML=(i.routes||[]).map(n=>`
89
91
  <tr>
90
- <td><span class="method method-${i.method.toLowerCase()}">${r(i.method)}</span></td>
91
- <td class="text-mono"><a href="${r(i.path)}" target="_blank" style="color:inherit;text-decoration:underline dotted">${r(i.path)}</a></td>
92
- <td>${i.auth_required?'<span class="badge badge-warn">auth</span>':'<span class="badge badge-success">open</span>'}</td>
93
- <td class="text-sm text-muted">${r(i.handler||"")} <small>(${r(i.module||"")})</small></td>
92
+ <td><span class="method method-${n.method.toLowerCase()}">${Q(n.method)}</span></td>
93
+ <td class="text-mono"><a href="${Q(n.path)}" target="_blank" style="color:inherit;text-decoration:underline dotted">${Q(n.path)}</a></td>
94
+ <td>${n.auth_required?'<span class="badge badge-warn">auth</span>':'<span class="badge badge-success">open</span>'}</td>
95
+ <td class="text-sm text-muted">${Q(n.handler||"")} <small>(${Q(n.module||"")})</small></td>
94
96
  </tr>
95
- `).join(""))}window.__loadRoutes=Ve;let Q=[],U=[],O=JSON.parse(localStorage.getItem("tina4_query_history")||"[]");function $t(e){e.innerHTML=`
97
+ `).join(""))}window.__loadRoutes=Dc;let Vi=[],Ci=[],Ot=JSON.parse(localStorage.getItem("tina4_query_history")||"[]");function xQ(i){i.innerHTML=`
96
98
  <div class="dev-panel-header">
97
99
  <h2>Database</h2>
98
100
  <button class="btn btn-sm" onclick="window.__loadTables()">Refresh</button>
@@ -159,11 +161,11 @@ tr:hover { background: rgba(255,255,255,0.03); }
159
161
  </div>
160
162
  </div>
161
163
  </div>
162
- `,ke(),Ee()}async function ke(){const t=(await T("/tables")).tables||[],n=document.getElementById("db-table-list");n&&(n.innerHTML=t.length?t.map(s=>`<div style="padding:0.3rem 0.5rem;cursor:pointer;border-radius:0.25rem;font-size:0.8rem;font-family:monospace" class="db-table-item" onclick="window.__selectTable('${r(s)}')" onmouseover="this.style.background='var(--border)'" onmouseout="this.style.background=''">${r(s)}</div>`).join(""):'<div class="text-sm text-muted">No tables</div>');const i=document.getElementById("db-seed-table");i&&(i.innerHTML='<option value="">Pick table...</option>'+t.map(s=>`<option value="${r(s)}">${r(s)}</option>`).join(""));const o=document.getElementById("paste-table");o&&(o.innerHTML='<option value="">Select table...</option>'+t.map(s=>`<option value="${r(s)}">${r(s)}</option>`).join(""))}function $e(e){var n;(n=document.getElementById("db-limit"))!=null&&n.value;const t=document.getElementById("db-query");t&&(t.value=`SELECT * FROM ${e}`),document.querySelectorAll(".db-table-item").forEach(i=>{i.style.background=i.textContent===e?"var(--border)":""}),Ye()}function Et(){var n;const e=document.getElementById("db-query"),t=((n=document.getElementById("db-limit"))==null?void 0:n.value)||"20";e!=null&&e.value&&(e.value=e.value.replace(/LIMIT\s+\d+/i,`LIMIT ${t}`))}function St(e){const t=e.trim();t&&(O=O.filter(n=>n!==t),O.unshift(t),O.length>50&&(O=O.slice(0,50)),localStorage.setItem("tina4_query_history",JSON.stringify(O)),Ee())}function Ee(){const e=document.getElementById("db-history");e&&(e.innerHTML='<option value="">Query history...</option>'+O.map((t,n)=>`<option value="${n}">${r(t.length>80?t.substring(0,80)+"...":t)}</option>`).join(""))}function Tt(e){const t=parseInt(e);if(isNaN(t)||!O[t])return;const n=document.getElementById("db-query");n&&(n.value=O[t]),document.getElementById("db-history").selectedIndex=0}function It(){O=[],localStorage.removeItem("tina4_query_history"),Ee()}async function Ye(){var o,s,l;const e=document.getElementById("db-query"),t=(o=e==null?void 0:e.value)==null?void 0:o.trim();if(!t)return;St(t);const n=document.getElementById("db-result"),i=((s=document.getElementById("db-type"))==null?void 0:s.value)||"sql";n&&(n.innerHTML='<p class="text-muted">Running...</p>');try{const a=parseInt(((l=document.getElementById("db-limit"))==null?void 0:l.value)||"20"),c=await T("/query","POST",{query:t,type:i,limit:a});if(c.error){n&&(n.innerHTML=`<p style="color:var(--danger)">${r(c.error)}</p>`);return}c.rows&&c.rows.length>0?(U=Object.keys(c.rows[0]),Q=c.rows,n&&(n.innerHTML=`<p class="text-sm text-muted" style="margin-bottom:0.5rem">${c.count??c.rows.length} rows</p>
163
- <div style="overflow-x:auto"><table><thead><tr>${U.map(d=>`<th>${r(d)}</th>`).join("")}</tr></thead>
164
- <tbody>${c.rows.map(d=>`<tr>${U.map(b=>`<td class="text-sm">${r(String(d[b]??""))}</td>`).join("")}</tr>`).join("")}</tbody></table></div>`)):c.affected!==void 0?(n&&(n.innerHTML=`<p class="text-muted">${c.affected} rows affected. ${c.success?"Success.":""}</p>`),Q=[],U=[]):(n&&(n.innerHTML='<p class="text-muted">No results</p>'),Q=[],U=[])}catch(a){n&&(n.innerHTML=`<p style="color:var(--danger)">${r(a.message)}</p>`)}}function qt(){if(!Q.length)return;const e=U.join(","),t=Q.map(n=>U.map(i=>{const o=String(n[i]??"");return o.includes(",")||o.includes('"')?`"${o.replace(/"/g,'""')}"`:o}).join(","));navigator.clipboard.writeText([e,...t].join(`
165
- `))}function Mt(){Q.length&&navigator.clipboard.writeText(JSON.stringify(Q,null,2))}function Lt(){const e=document.getElementById("db-paste-modal");e&&(e.style.display="flex")}function Ke(){const e=document.getElementById("db-paste-modal");e&&(e.style.display="none")}async function Ct(){var o,s,l,a,c;const e=(o=document.getElementById("paste-table"))==null?void 0:o.value,t=(l=(s=document.getElementById("paste-new-table"))==null?void 0:s.value)==null?void 0:l.trim(),n=t||e,i=(c=(a=document.getElementById("paste-data"))==null?void 0:a.value)==null?void 0:c.trim();if(!n||!i){alert("Select a table or enter a new table name, and paste data.");return}try{let d;try{d=JSON.parse(i),Array.isArray(d)||(d=[d])}catch{const _=i.split(`
166
- `).map(E=>E.trim()).filter(Boolean);if(_.length<2){alert("CSV needs at least a header row and one data row.");return}const g=_[0].split(",").map(E=>E.trim().replace(/[^a-zA-Z0-9_]/g,""));d=_.slice(1).map(E=>{const S=E.split(",").map(H=>H.trim()),w={};return g.forEach((H,ie)=>{w[H]=S[ie]??""}),w})}if(!d.length){alert("No data rows found.");return}if(t){const g=["id INTEGER PRIMARY KEY AUTOINCREMENT",...Object.keys(d[0]).filter(S=>S.toLowerCase()!=="id").map(S=>`"${S}" TEXT`)],E=await T("/query","POST",{query:`CREATE TABLE IF NOT EXISTS "${t}" (${g.join(", ")})`,type:"sql"});if(E.error){alert("Create table failed: "+E.error);return}}let b=0;for(const _ of d){const g=t?Object.keys(_).filter(H=>H.toLowerCase()!=="id"):Object.keys(_),E=g.map(H=>`"${H}"`).join(","),S=g.map(H=>`'${String(_[H]).replace(/'/g,"''")}'`).join(","),w=await T("/query","POST",{query:`INSERT INTO "${n}" (${E}) VALUES (${S})`,type:"sql"});if(w.error){alert(`Row ${b+1} failed: ${w.error}`);break}b++}document.getElementById("paste-data").value="",document.getElementById("paste-new-table").value="",document.getElementById("paste-table").selectedIndex=0,Ke(),ke(),b>0&&$e(n)}catch(d){alert("Import error: "+d.message)}}async function Bt(){var n,i;const e=(n=document.getElementById("db-seed-table"))==null?void 0:n.value,t=parseInt(((i=document.getElementById("db-seed-count"))==null?void 0:i.value)||"10");if(e)try{const o=await T("/seed","POST",{table:e,count:t});o.error?alert(o.error):$e(e)}catch(o){alert("Seed error: "+o.message)}}window.__loadTables=ke,window.__selectTable=$e,window.__updateLimit=Et,window.__runQuery=Ye,window.__copyCSV=qt,window.__copyJSON=Mt,window.__showPaste=Lt,window.__hidePaste=Ke,window.__doPaste=Ct,window.__seedTable=Bt,window.__loadHistory=Tt,window.__clearHistory=It;function zt(e){e.innerHTML=`
164
+ `,Jo(),ta()}async function Jo(){const e=(await A("/tables")).tables||[],t=document.getElementById("db-table-list");t&&(t.innerHTML=e.length?e.map(s=>`<div style="padding:0.3rem 0.5rem;cursor:pointer;border-radius:0.25rem;font-size:0.8rem;font-family:monospace" class="db-table-item" onclick="window.__selectTable('${Q(s)}')" onmouseover="this.style.background='var(--border)'" onmouseout="this.style.background=''">${Q(s)}</div>`).join(""):'<div class="text-sm text-muted">No tables</div>');const n=document.getElementById("db-seed-table");n&&(n.innerHTML='<option value="">Pick table...</option>'+e.map(s=>`<option value="${Q(s)}">${Q(s)}</option>`).join(""));const r=document.getElementById("paste-table");r&&(r.innerHTML='<option value="">Select table...</option>'+e.map(s=>`<option value="${Q(s)}">${Q(s)}</option>`).join(""))}function ea(i){var t;(t=document.getElementById("db-limit"))!=null&&t.value;const e=document.getElementById("db-query");e&&(e.value=`SELECT * FROM ${i}`),document.querySelectorAll(".db-table-item").forEach(n=>{n.style.background=n.textContent===i?"var(--border)":""}),Bc()}function TQ(){var t;const i=document.getElementById("db-query"),e=((t=document.getElementById("db-limit"))==null?void 0:t.value)||"20";i!=null&&i.value&&(i.value=i.value.replace(/LIMIT\s+\d+/i,`LIMIT ${e}`))}function vQ(i){const e=i.trim();e&&(Ot=Ot.filter(t=>t!==e),Ot.unshift(e),Ot.length>50&&(Ot=Ot.slice(0,50)),localStorage.setItem("tina4_query_history",JSON.stringify(Ot)),ta())}function ta(){const i=document.getElementById("db-history");i&&(i.innerHTML='<option value="">Query history...</option>'+Ot.map((e,t)=>`<option value="${t}">${Q(e.length>80?e.substring(0,80)+"...":e)}</option>`).join(""))}function kQ(i){const e=parseInt(i);if(isNaN(e)||!Ot[e])return;const t=document.getElementById("db-query");t&&(t.value=Ot[e]),document.getElementById("db-history").selectedIndex=0}function XQ(){Ot=[],localStorage.removeItem("tina4_query_history"),ta()}async function Bc(){var r,s,o;const i=document.getElementById("db-query"),e=(r=i==null?void 0:i.value)==null?void 0:r.trim();if(!e)return;vQ(e);const t=document.getElementById("db-result"),n=((s=document.getElementById("db-type"))==null?void 0:s.value)||"sql";t&&(t.innerHTML='<p class="text-muted">Running...</p>');try{const a=parseInt(((o=document.getElementById("db-limit"))==null?void 0:o.value)||"20"),l=await A("/query","POST",{query:e,type:n,limit:a});if(l.error){t&&(t.innerHTML=`<p style="color:var(--danger)">${Q(l.error)}</p>`);return}l.rows&&l.rows.length>0?(Ci=Object.keys(l.rows[0]),Vi=l.rows,t&&(t.innerHTML=`<p class="text-sm text-muted" style="margin-bottom:0.5rem">${l.count??l.rows.length} rows</p>
165
+ <div style="overflow-x:auto"><table><thead><tr>${Ci.map(O=>`<th>${Q(O)}</th>`).join("")}</tr></thead>
166
+ <tbody>${l.rows.map(O=>`<tr>${Ci.map(c=>`<td class="text-sm">${Q(String(O[c]??""))}</td>`).join("")}</tr>`).join("")}</tbody></table></div>`)):l.affected!==void 0?(t&&(t.innerHTML=`<p class="text-muted">${l.affected} rows affected. ${l.success?"Success.":""}</p>`),Vi=[],Ci=[]):(t&&(t.innerHTML='<p class="text-muted">No results</p>'),Vi=[],Ci=[])}catch(a){t&&(t.innerHTML=`<p style="color:var(--danger)">${Q(a.message)}</p>`)}}function _Q(){if(!Vi.length)return;const i=Ci.join(","),e=Vi.map(t=>Ci.map(n=>{const r=String(t[n]??"");return r.includes(",")||r.includes('"')?`"${r.replace(/"/g,'""')}"`:r}).join(","));navigator.clipboard.writeText([i,...e].join(`
167
+ `))}function RQ(){Vi.length&&navigator.clipboard.writeText(JSON.stringify(Vi,null,2))}function ZQ(){const i=document.getElementById("db-paste-modal");i&&(i.style.display="flex")}function Nc(){const i=document.getElementById("db-paste-modal");i&&(i.style.display="none")}async function zQ(){var r,s,o,a,l;const i=(r=document.getElementById("paste-table"))==null?void 0:r.value,e=(o=(s=document.getElementById("paste-new-table"))==null?void 0:s.value)==null?void 0:o.trim(),t=e||i,n=(l=(a=document.getElementById("paste-data"))==null?void 0:a.value)==null?void 0:l.trim();if(!t||!n){alert("Select a table or enter a new table name, and paste data.");return}try{let O;try{O=JSON.parse(n),Array.isArray(O)||(O=[O])}catch{const d=n.split(`
168
+ `).map(f=>f.trim()).filter(Boolean);if(d.length<2){alert("CSV needs at least a header row and one data row.");return}const h=d[0].split(",").map(f=>f.trim().replace(/[^a-zA-Z0-9_]/g,""));O=d.slice(1).map(f=>{const p=f.split(",").map($=>$.trim()),m={};return h.forEach(($,g)=>{m[$]=p[g]??""}),m})}if(!O.length){alert("No data rows found.");return}if(e){const h=["id INTEGER PRIMARY KEY AUTOINCREMENT",...Object.keys(O[0]).filter(p=>p.toLowerCase()!=="id").map(p=>`"${p}" TEXT`)],f=await A("/query","POST",{query:`CREATE TABLE IF NOT EXISTS "${e}" (${h.join(", ")})`,type:"sql"});if(f.error){alert("Create table failed: "+f.error);return}}let c=0;for(const d of O){const h=e?Object.keys(d).filter($=>$.toLowerCase()!=="id"):Object.keys(d),f=h.map($=>`"${$}"`).join(","),p=h.map($=>`'${String(d[$]).replace(/'/g,"''")}'`).join(","),m=await A("/query","POST",{query:`INSERT INTO "${t}" (${f}) VALUES (${p})`,type:"sql"});if(m.error){alert(`Row ${c+1} failed: ${m.error}`);break}c++}document.getElementById("paste-data").value="",document.getElementById("paste-new-table").value="",document.getElementById("paste-table").selectedIndex=0,Nc(),Jo(),c>0&&ea(t)}catch(O){alert("Import error: "+O.message)}}async function qQ(){var t,n;const i=(t=document.getElementById("db-seed-table"))==null?void 0:t.value,e=parseInt(((n=document.getElementById("db-seed-count"))==null?void 0:n.value)||"10");if(i)try{const r=await A("/seed","POST",{table:i,count:e});r.error?alert(r.error):ea(i)}catch(r){alert("Seed error: "+r.message)}}window.__loadTables=Jo,window.__selectTable=ea,window.__updateLimit=TQ,window.__runQuery=Bc,window.__copyCSV=_Q,window.__copyJSON=RQ,window.__showPaste=ZQ,window.__hidePaste=Nc,window.__doPaste=zQ,window.__seedTable=qQ,window.__loadHistory=kQ,window.__clearHistory=XQ;function VQ(i){i.innerHTML=`
167
169
  <div class="dev-panel-header">
168
170
  <h2>Errors <span id="errors-count" class="text-muted text-sm"></span></h2>
169
171
  <div class="flex gap-sm">
@@ -172,44 +174,44 @@ tr:hover { background: rgba(255,255,255,0.03); }
172
174
  </div>
173
175
  </div>
174
176
  <div id="errors-body"></div>
175
- `,le()}async function le(){const e=await T("/broken"),t=document.getElementById("errors-count"),n=document.getElementById("errors-body");if(!n)return;const i=e.errors||[];if(t&&(t.textContent=`(${i.length})`),!i.length){n.innerHTML='<div class="empty-state">No errors</div>';return}n.innerHTML=i.map((o,s)=>{const l=o.error_type?`${o.error_type}: ${o.message}`:o.error||o.message||"Unknown error",a=o.context||{},c=o.last_seen||o.first_seen||o.timestamp||"",d=c?new Date(c).toLocaleString():"";return`
177
+ `,es()}async function es(){const i=await A("/broken"),e=document.getElementById("errors-count"),t=document.getElementById("errors-body");if(!t)return;const n=i.errors||[];if(e&&(e.textContent=`(${n.length})`),!n.length){t.innerHTML='<div class="empty-state">No errors</div>';return}t.innerHTML=n.map((r,s)=>{const o=r.error_type?`${r.error_type}: ${r.message}`:r.error||r.message||"Unknown error",a=r.context||{},l=r.last_seen||r.first_seen||r.timestamp||"",O=l?new Date(l).toLocaleString():"";return`
176
178
  <div style="background:var(--surface);border:1px solid var(--border);border-radius:0.5rem;padding:0.75rem;margin-bottom:0.75rem">
177
179
  <div class="flex items-center" style="justify-content:space-between;flex-wrap:wrap;gap:0.5rem">
178
180
  <div style="flex:1;min-width:0">
179
- <span class="badge ${o.resolved?"badge-success":"badge-danger"}">${o.resolved?"RESOLVED":"UNRESOLVED"}</span>
180
- ${o.count>1?`<span class="badge badge-warn" style="margin-left:4px">x${o.count}</span>`:""}
181
- <strong style="margin-left:0.5rem;font-size:0.85rem">${r(l)}</strong>
181
+ <span class="badge ${r.resolved?"badge-success":"badge-danger"}">${r.resolved?"RESOLVED":"UNRESOLVED"}</span>
182
+ ${r.count>1?`<span class="badge badge-warn" style="margin-left:4px">x${r.count}</span>`:""}
183
+ <strong style="margin-left:0.5rem;font-size:0.85rem">${Q(o)}</strong>
182
184
  </div>
183
185
  <div class="flex gap-sm" style="flex-shrink:0">
184
- ${o.resolved?"":`<button class="btn btn-sm" onclick="window.__resolveError('${r(o.id||String(s))}')">Resolve</button>`}
186
+ ${r.resolved?"":`<button class="btn btn-sm" onclick="window.__resolveError('${Q(r.id||String(s))}')">Resolve</button>`}
185
187
  <button class="btn btn-sm btn-primary" onclick="window.__askAboutError(${s})">Ask Tina4</button>
186
188
  </div>
187
189
  </div>
188
- ${a.method?`<div class="text-sm text-mono" style="margin-top:0.5rem;color:var(--info)">${r(a.method)} ${r(a.path||"")}</div>`:""}
189
- ${o.traceback?`<pre style="margin-top:0.5rem;padding:0.5rem;background:var(--bg);border:1px solid var(--border);border-radius:4px;font-size:0.7rem;overflow-x:auto;white-space:pre-wrap;max-height:200px;overflow-y:auto">${r(o.traceback)}</pre>`:""}
190
- <div class="text-sm text-muted" style="margin-top:0.5rem">${r(d)}</div>
190
+ ${a.method?`<div class="text-sm text-mono" style="margin-top:0.5rem;color:var(--info)">${Q(a.method)} ${Q(a.path||"")}</div>`:""}
191
+ ${r.traceback?`<pre style="margin-top:0.5rem;padding:0.5rem;background:var(--bg);border:1px solid var(--border);border-radius:4px;font-size:0.7rem;overflow-x:auto;white-space:pre-wrap;max-height:200px;overflow-y:auto">${Q(r.traceback)}</pre>`:""}
192
+ <div class="text-sm text-muted" style="margin-top:0.5rem">${Q(O)}</div>
191
193
  </div>
192
- `}).join(""),window.__errorData=i}async function Ht(e){await T("/broken/resolve","POST",{id:e}),le()}async function Rt(){await T("/broken/clear","POST"),le()}function At(e){const n=(window.__errorData||[])[e];if(!n)return;const i=n.error_type?`${n.error_type}: ${n.message}`:n.error||n.message||"Unknown error",o=n.context||{},s=o.method&&o.path?`
193
- Route: ${o.method} ${o.path}`:"",l=`I have this error: ${i}${s}
194
+ `}).join(""),window.__errorData=n}async function CQ(i){await A("/broken/resolve","POST",{id:i}),es()}async function YQ(){await A("/broken/clear","POST"),es()}function WQ(i){const t=(window.__errorData||[])[i];if(!t)return;const n=t.error_type?`${t.error_type}: ${t.message}`:t.error||t.message||"Unknown error",r=t.context||{},s=r.method&&r.path?`
195
+ Route: ${r.method} ${r.path}`:"",o=`I have this error: ${n}${s}
194
196
 
195
- ${n.traceback||""}`;window.__switchTab("chat"),setTimeout(()=>{window.__prefillChat(l)},150)}window.__loadErrors=le,window.__clearErrors=Rt,window.__resolveError=Ht,window.__askAboutError=At;function Ot(e){e.innerHTML=`
197
+ ${t.traceback||""}`;window.__switchTab("chat"),setTimeout(()=>{window.__prefillChat(o)},150)}window.__loadErrors=es,window.__clearErrors=YQ,window.__resolveError=CQ,window.__askAboutError=WQ;function AQ(i){i.innerHTML=`
196
198
  <div class="dev-panel-header">
197
199
  <h2>System</h2>
198
200
  </div>
199
201
  <div id="system-grid" class="metric-grid"></div>
200
202
  <div id="system-env" style="margin-top:1rem"></div>
201
- `,Xe()}function Pt(e){if(!e||e<0)return"?";const t=Math.floor(e/86400),n=Math.floor(e%86400/3600),i=Math.floor(e%3600/60),o=Math.floor(e%60),s=[];return t>0&&s.push(`${t}d`),n>0&&s.push(`${n}h`),i>0&&s.push(`${i}m`),s.length===0&&s.push(`${o}s`),s.join(" ")}function jt(e){return e?e>=1024?`${(e/1024).toFixed(1)} GB`:`${e.toFixed(1)} MB`:"?"}async function Xe(){const e=await T("/system"),t=document.getElementById("system-grid"),n=document.getElementById("system-env");if(!t)return;const o=(e.python_version||e.php_version||e.ruby_version||e.node_version||e.runtime||"?").split("(")[0].trim(),s=[{label:"Framework",value:e.framework||"Tina4"},{label:"Runtime",value:o},{label:"Platform",value:e.platform||"?"},{label:"Architecture",value:e.architecture||"?"},{label:"PID",value:String(e.pid??"?")},{label:"Uptime",value:Pt(e.uptime_seconds)},{label:"Memory",value:jt(e.memory_mb)},{label:"Database",value:e.database||"none"},{label:"DB Tables",value:String(e.db_tables??"?")},{label:"DB Connected",value:e.db_connected?"Yes":"No"},{label:"Debug",value:e.debug==="true"||e.debug===!0?"ON":"OFF"},{label:"Log Level",value:e.log_level||"?"},{label:"Modules",value:String(e.loaded_modules??"?")},{label:"Working Dir",value:e.cwd||"?"}],l=new Set(["Working Dir","Database"]);if(t.innerHTML=s.map(a=>`
202
- <div class="metric-card" style="${l.has(a.label)?"grid-column:1/-1":""}">
203
- <div class="label">${r(a.label)}</div>
204
- <div class="value" style="font-size:${l.has(a.label)?"0.75rem":"1.1rem"}">${r(a.value)}</div>
203
+ `,Fc()}function EQ(i){if(!i||i<0)return"?";const e=Math.floor(i/86400),t=Math.floor(i%86400/3600),n=Math.floor(i%3600/60),r=Math.floor(i%60),s=[];return e>0&&s.push(`${e}d`),t>0&&s.push(`${t}h`),n>0&&s.push(`${n}m`),s.length===0&&s.push(`${r}s`),s.join(" ")}function UQ(i){return i?i>=1024?`${(i/1024).toFixed(1)} GB`:`${i.toFixed(1)} MB`:"?"}async function Fc(){const i=await A("/system"),e=document.getElementById("system-grid"),t=document.getElementById("system-env");if(!e)return;const r=(i.python_version||i.php_version||i.ruby_version||i.node_version||i.runtime||"?").split("(")[0].trim(),s=[{label:"Framework",value:i.framework||"Tina4"},{label:"Runtime",value:r},{label:"Platform",value:i.platform||"?"},{label:"Architecture",value:i.architecture||"?"},{label:"PID",value:String(i.pid??"?")},{label:"Uptime",value:EQ(i.uptime_seconds)},{label:"Memory",value:UQ(i.memory_mb)},{label:"Database",value:i.database||"none"},{label:"DB Tables",value:String(i.db_tables??"?")},{label:"DB Connected",value:i.db_connected?"Yes":"No"},{label:"Debug",value:i.debug==="true"||i.debug===!0?"ON":"OFF"},{label:"Log Level",value:i.log_level||"?"},{label:"Modules",value:String(i.loaded_modules??"?")},{label:"Working Dir",value:i.cwd||"?"}],o=new Set(["Working Dir","Database"]);if(e.innerHTML=s.map(a=>`
204
+ <div class="metric-card" style="${o.has(a.label)?"grid-column:1/-1":""}">
205
+ <div class="label">${Q(a.label)}</div>
206
+ <div class="value" style="font-size:${o.has(a.label)?"0.75rem":"1.1rem"}">${Q(a.value)}</div>
205
207
  </div>
206
- `).join(""),n){const a=[];e.debug!==void 0&&a.push(["TINA4_DEBUG",String(e.debug)]),e.log_level&&a.push(["LOG_LEVEL",e.log_level]),e.database&&a.push(["DATABASE_URL",e.database]),a.length&&(n.innerHTML=`
208
+ `).join(""),t){const a=[];i.debug!==void 0&&a.push(["TINA4_DEBUG",String(i.debug)]),i.log_level&&a.push(["LOG_LEVEL",i.log_level]),i.database&&a.push(["DATABASE_URL",i.database]),a.length&&(t.innerHTML=`
207
209
  <h3 style="font-size:0.85rem;margin-bottom:0.5rem">Environment</h3>
208
210
  <table>
209
211
  <thead><tr><th>Variable</th><th>Value</th></tr></thead>
210
- <tbody>${a.map(([c,d])=>`<tr><td class="text-mono text-sm" style="padding:4px 8px">${r(c)}</td><td class="text-sm" style="padding:4px 8px">${r(d)}</td></tr>`).join("")}</tbody>
212
+ <tbody>${a.map(([l,O])=>`<tr><td class="text-mono text-sm" style="padding:4px 8px">${Q(l)}</td><td class="text-sm" style="padding:4px 8px">${Q(O)}</td></tr>`).join("")}</tbody>
211
213
  </table>
212
- `)}}window.__loadSystem=Xe;function Nt(e){e.innerHTML=`
214
+ `)}}window.__loadSystem=Fc;function jQ(i){i.innerHTML=`
213
215
  <div class="dev-panel-header">
214
216
  <h2>Code Metrics</h2>
215
217
  </div>
@@ -218,47 +220,47 @@ ${n.traceback||""}`;window.__switchTab("chat"),setTimeout(()=>{window.__prefillC
218
220
  <div id="metrics-chart" style="display:none;margin:1rem 0"></div>
219
221
  <div id="metrics-detail" style="margin-top:1rem"></div>
220
222
  <div id="metrics-complex" style="margin-top:1rem"></div>
221
- `,Ft()}async function Ft(){var s;const e=document.getElementById("metrics-chart"),t=document.getElementById("metrics-complex"),n=document.getElementById("metrics-scan-info");e&&(e.style.display="block",e.innerHTML='<p class="text-muted">Analyzing...</p>');const i=await T("/metrics/full");if(i.error||!i.file_metrics){e&&(e.innerHTML=`<p style="color:var(--danger)">${r(i.error||"No data")}</p>`);return}if(n){const l=i.scan_mode==="framework"?'<span style="color:#cba6f7;font-weight:600">(Framework)</span> Add code to src/ to see your project':"";n.innerHTML=`${i.files_analyzed} files analyzed | ${i.total_functions} functions ${l}`}const o=document.getElementById("metrics-quick");o&&(o.innerHTML=[F("Files Analyzed",i.files_analyzed),F("Total Functions",i.total_functions),F("Avg Complexity",i.avg_complexity),F("Avg Maintainability",i.avg_maintainability)].join("")),e&&i.file_metrics.length>0?Dt(i.file_metrics,e,i.dependency_graph||{},i.scan_mode||"project"):e&&(e.innerHTML='<p class="text-muted">No files to visualize</p>'),t&&((s=i.most_complex_functions)!=null&&s.length)&&(t.innerHTML=`
223
+ `,MQ()}async function MQ(){var s;const i=document.getElementById("metrics-chart"),e=document.getElementById("metrics-complex"),t=document.getElementById("metrics-scan-info");i&&(i.style.display="block",i.innerHTML='<p class="text-muted">Analyzing...</p>');const n=await A("/metrics/full");if(n.error||!n.file_metrics){i&&(i.innerHTML=`<p style="color:var(--danger)">${Q(n.error||"No data")}</p>`);return}if(t){const o=n.scan_mode==="framework"?'<span style="color:#cba6f7;font-weight:600">(Framework)</span> Add code to src/ to see your project':"";t.innerHTML=`${n.files_analyzed} files analyzed | ${n.total_functions} functions ${o}`}const r=document.getElementById("metrics-quick");r&&(r.innerHTML=[Lt("Files Analyzed",n.files_analyzed),Lt("Total Functions",n.total_functions),Lt("Avg Complexity",n.avg_complexity),Lt("Avg Maintainability",n.avg_maintainability)].join("")),i&&n.file_metrics.length>0?LQ(n.file_metrics,i,n.dependency_graph||{},n.scan_mode||"project"):i&&(i.innerHTML='<p class="text-muted">No files to visualize</p>'),e&&((s=n.most_complex_functions)!=null&&s.length)&&(e.innerHTML=`
222
224
  <h3 style="font-size:0.85rem;margin-bottom:0.5rem">Most Complex Functions</h3>
223
225
  <table>
224
226
  <thead><tr><th>Function</th><th>File</th><th>Line</th><th>CC</th><th>LOC</th></tr></thead>
225
- <tbody>${i.most_complex_functions.slice(0,15).map(l=>`
227
+ <tbody>${n.most_complex_functions.slice(0,15).map(o=>`
226
228
  <tr>
227
- <td class="text-mono">${r(l.name)}</td>
228
- <td class="text-sm text-muted" style="cursor:pointer;text-decoration:underline dotted" onclick="window.__drillDown('${r(l.file)}')">${r(l.file)}</td>
229
- <td>${l.line}</td>
230
- <td><span class="${l.complexity>10?"badge badge-danger":l.complexity>5?"badge badge-warn":"badge badge-success"}">${l.complexity}</span></td>
231
- <td>${l.loc}</td>
229
+ <td class="text-mono">${Q(o.name)}</td>
230
+ <td class="text-sm text-muted" style="cursor:pointer;text-decoration:underline dotted" onclick="window.__drillDown('${Q(o.file)}')">${Q(o.file)}</td>
231
+ <td>${o.line}</td>
232
+ <td><span class="${o.complexity>10?"badge badge-danger":o.complexity>5?"badge badge-warn":"badge badge-success"}">${o.complexity}</span></td>
233
+ <td>${o.loc}</td>
232
234
  </tr>`).join("")}
233
235
  </tbody>
234
236
  </table>
235
- `)}function Dt(e,t,n,i){var yt,ft,ht;const o=t.offsetWidth||900,s=Math.max(450,Math.min(650,o*.45)),l=Math.max(...e.map(h=>h.loc))||1,a=Math.max(...e.map(h=>h.dep_count||0))||1,c=14,d=Math.min(70,o/10);function b(h){const y=Math.min((h.avg_complexity||0)/10,1),v=h.has_tests?0:1,k=Math.min((h.dep_count||0)/5,1),p=y*.4+v*.4+k*.2,m=Math.max(0,Math.min(1,p)),f=Math.round(120*(1-m)),x=Math.round(70+m*30),$=Math.round(42+18*(1-m));return`hsl(${f},${x}%,${$}%)`}function _(h){return h.loc/l*.4+(h.avg_complexity||0)/10*.4+(h.dep_count||0)/a*.2}const g=[...e].sort((h,y)=>_(h)-_(y)),E=o/2,S=s/2,w=[];let H=0,ie=0;for(const h of g){const y=c+Math.sqrt(_(h))*(d-c),v=b(h);let k=!1;for(let p=0;p<800;p++){const m=E+ie*Math.cos(H),f=S+ie*Math.sin(H);let x=!1;for(const $ of w){const C=m-$.x,z=f-$.y;if(Math.sqrt(C*C+z*z)<y+$.r+2){x=!0;break}}if(!x&&m>y+2&&m<o-y-2&&f>y+25&&f<s-y-2){w.push({x:m,y:f,vx:0,vy:0,r:y,color:v,f:h}),k=!0;break}H+=.2,ie+=.04}k||w.push({x:E+(Math.random()-.5)*o*.3,y:S+(Math.random()-.5)*s*.3,vx:0,vy:0,r:y,color:v,f:h})}const Je=[];function lt(h){const y=h.replace(/\\/g,"/").split("/").pop()||"",v=y.lastIndexOf(".");return(v>0?y.substring(0,v):y).toLowerCase()}const We={};w.forEach((h,y)=>{We[lt(h.f.path)]=y});for(const[h,y]of Object.entries(n)){let v=null;if(w.forEach((k,p)=>{k.f.path===h&&(v=p)}),v!==null)for(const k of y){const p=k.replace(/^\.\//,"").replace(/^\.\.\//,"").split(/[./]/);let m;for(let f=p.length-1;f>=0;f--){const x=p[f].toLowerCase();if(x&&x!=="js"&&x!=="py"&&x!=="rb"&&x!=="ts"&&x!=="index"&&(m=We[x],m!==void 0))break}m===void 0&&(m=We[lt(k)]),m!==void 0&&v!==m&&Je.push([v,m])}}const q=document.createElement("canvas");q.width=o,q.height=s,q.style.cssText="display:block;border:1px solid var(--border);border-radius:8px;cursor:pointer;background:#0f172a";const En=i==="framework"?'<span style="color:#cba6f7;font-weight:600">(Framework)</span> Add code to src/ to see your project':"";t.innerHTML=`<div style="display:flex;align-items:center;justify-content:space-between;margin-bottom:0.5rem"><h3 style="margin:0;font-size:0.85rem">Code Landscape ${En}</h3><span style="font-size:0.65rem;color:var(--muted)">Drag bubbles | Dbl-click to drill down</span></div><div style="position:relative" id="metrics-canvas-wrap"></div>`,document.getElementById("metrics-canvas-wrap").appendChild(q);const Qe=document.createElement("div");Qe.style.cssText="position:absolute;top:8px;left:8px;z-index:2;display:flex;gap:4px;flex-direction:column",Qe.innerHTML=`
237
+ `)}function LQ(i,e,t,n){var Ut,ui,On;const r=e.offsetWidth||900,s=Math.max(450,Math.min(650,r*.45)),o=Math.max(...i.map(W=>W.loc))||1,a=Math.max(...i.map(W=>W.dep_count||0))||1,l=14,O=Math.min(70,r/10);function c(W){const U=Math.min((W.avg_complexity||0)/10,1),M=W.has_tests?0:1,ae=Math.min((W.dep_count||0)/5,1),Y=U*.4+M*.4+ae*.2,z=Math.max(0,Math.min(1,Y)),j=Math.round(120*(1-z)),I=Math.round(70+z*30),le=Math.round(42+18*(1-z));return`hsl(${j},${I}%,${le}%)`}function d(W){return W.loc/o*.4+(W.avg_complexity||0)/10*.4+(W.dep_count||0)/a*.2}const h=[...i].sort((W,U)=>d(W)-d(U)),f=r/2,p=s/2,m=[];let $=0,g=0;for(const W of h){const U=l+Math.sqrt(d(W))*(O-l),M=c(W);let ae=!1;for(let Y=0;Y<800;Y++){const z=f+g*Math.cos($),j=p+g*Math.sin($);let I=!1;for(const le of m){const ve=z-le.x,Ve=j-le.y;if(Math.sqrt(ve*ve+Ve*Ve)<U+le.r+2){I=!0;break}}if(!I&&z>U+2&&z<r-U-2&&j>U+25&&j<s-U-2){m.push({x:z,y:j,vx:0,vy:0,r:U,color:M,f:W}),ae=!0;break}$+=.2,g+=.04}ae||m.push({x:f+(Math.random()-.5)*r*.3,y:p+(Math.random()-.5)*s*.3,vx:0,vy:0,r:U,color:M,f:W})}const y=[];function S(W){const U=W.replace(/\\/g,"/").split("/").pop()||"",M=U.lastIndexOf(".");return(M>0?U.substring(0,M):U).toLowerCase()}const R={};m.forEach((W,U)=>{R[S(W.f.path)]=U});for(const[W,U]of Object.entries(t)){let M=null;if(m.forEach((ae,Y)=>{ae.f.path===W&&(M=Y)}),M!==null)for(const ae of U){const Y=ae.replace(/^\.\//,"").replace(/^\.\.\//,"").split(/[./]/);let z;for(let j=Y.length-1;j>=0;j--){const I=Y[j].toLowerCase();if(I&&I!=="js"&&I!=="py"&&I!=="rb"&&I!=="ts"&&I!=="index"&&(z=R[I],z!==void 0))break}z===void 0&&(z=R[S(ae)]),z!==void 0&&M!==z&&y.push([M,z])}}const P=document.createElement("canvas");P.width=r,P.height=s,P.style.cssText="display:block;border:1px solid var(--border);border-radius:8px;cursor:pointer;background:#0f172a";const v=n==="framework"?'<span style="color:#cba6f7;font-weight:600">(Framework)</span> Add code to src/ to see your project':"";e.innerHTML=`<div style="display:flex;align-items:center;justify-content:space-between;margin-bottom:0.5rem"><h3 style="margin:0;font-size:0.85rem">Code Landscape ${v}</h3><span style="font-size:0.65rem;color:var(--muted)">Drag bubbles | Dbl-click to drill down</span></div><div style="position:relative" id="metrics-canvas-wrap"></div>`,document.getElementById("metrics-canvas-wrap").appendChild(P);const k=document.createElement("div");k.style.cssText="position:absolute;top:8px;left:8px;z-index:2;display:flex;gap:4px;flex-direction:column",k.innerHTML=`
236
238
  <button class="btn btn-sm" id="metrics-zoom-in" style="width:28px;height:28px;padding:0;font-size:14px;font-weight:700;line-height:1">+</button>
237
239
  <button class="btn btn-sm" id="metrics-zoom-out" style="width:28px;height:28px;padding:0;font-size:14px;font-weight:700;line-height:1">&minus;</button>
238
240
  <button class="btn btn-sm" id="metrics-zoom-fit" style="width:28px;height:28px;padding:0;font-size:10px;font-weight:700;line-height:1">Fit</button>
239
- `,document.getElementById("metrics-canvas-wrap").appendChild(Qe),(yt=document.getElementById("metrics-zoom-in"))==null||yt.addEventListener("click",()=>{L=Math.min(5,L*1.3)}),(ft=document.getElementById("metrics-zoom-out"))==null||ft.addEventListener("click",()=>{L=Math.max(.3,L*.7)}),(ht=document.getElementById("metrics-zoom-fit"))==null||ht.addEventListener("click",()=>{L=1,K=0,X=0});const u=q.getContext("2d");let G=-1,M=-1,dt=0,ct=0,K=0,X=0,L=1,se=!1,mt=0,ut=0,pt=0,gt=0;function Sn(){for(let p=0;p<w.length;p++){if(p===M)continue;const m=w[p],f=E-m.x,x=S-m.y,$=.3+m.r/d*.7,C=.008*$*$;m.vx+=f*C,m.vy+=x*C}for(const[p,m]of Je){const f=w[p],x=w[m],$=x.x-f.x,C=x.y-f.y,z=Math.sqrt($*$+C*C)||1,j=f.r+x.r+20,N=(z-j)*.002,re=$/z*N,ae=C/z*N;p!==M&&(f.vx+=re,f.vy+=ae),m!==M&&(x.vx-=re,x.vy-=ae)}for(let p=0;p<w.length;p++)for(let m=p+1;m<w.length;m++){const f=w[p],x=w[m],$=x.x-f.x,C=x.y-f.y,z=Math.sqrt($*$+C*C)||1,j=f.r+x.r+20;if(z<j){const N=40*(j-z)/j,re=$/z*N,ae=C/z*N;p!==M&&(f.vx-=re,f.vy-=ae),m!==M&&(x.vx+=re,x.vy+=ae)}}for(let p=0;p<w.length;p++){if(p===M)continue;const m=w[p];m.vx*=.65,m.vy*=.65;const f=2;m.vx=Math.max(-f,Math.min(f,m.vx)),m.vy=Math.max(-f,Math.min(f,m.vy)),m.x+=m.vx,m.y+=m.vy,m.x=Math.max(m.r+2,Math.min(o-m.r-2,m.x)),m.y=Math.max(m.r+25,Math.min(s-m.r-2,m.y))}}function bt(){var h;Sn(),u.clearRect(0,0,o,s),u.save(),u.translate(K,X),u.scale(L,L),u.strokeStyle="rgba(255,255,255,0.03)",u.lineWidth=1/L;for(let y=0;y<o/L;y+=50)u.beginPath(),u.moveTo(y,0),u.lineTo(y,s/L),u.stroke();for(let y=0;y<s/L;y+=50)u.beginPath(),u.moveTo(0,y),u.lineTo(o/L,y),u.stroke();for(const[y,v]of Je){const k=w[y],p=w[v],m=p.x-k.x,f=p.y-k.y,x=Math.sqrt(m*m+f*f)||1,$=G===y||G===v;u.beginPath(),u.moveTo(k.x+m/x*k.r,k.y+f/x*k.r);const C=p.x-m/x*p.r,z=p.y-f/x*p.r;u.lineTo(C,z),u.strokeStyle=$?"rgba(139,180,250,0.9)":"rgba(255,255,255,0.15)",u.lineWidth=$?3:1,u.stroke();const j=$?12:6,N=Math.atan2(f,m);u.beginPath(),u.moveTo(C,z),u.lineTo(C-j*Math.cos(N-.4),z-j*Math.sin(N-.4)),u.lineTo(C-j*Math.cos(N+.4),z-j*Math.sin(N+.4)),u.closePath(),u.fillStyle=u.strokeStyle,u.fill()}for(let y=0;y<w.length;y++){const v=w[y],k=y===G,p=k?v.r+4:v.r;k&&(u.beginPath(),u.arc(v.x,v.y,p+8,0,Math.PI*2),u.fillStyle="rgba(255,255,255,0.08)",u.fill()),u.beginPath(),u.arc(v.x,v.y,p,0,Math.PI*2),u.fillStyle=v.color,u.globalAlpha=k?1:.85,u.fill(),u.globalAlpha=1,u.strokeStyle=k?"rgba(255,255,255,0.6)":"rgba(255,255,255,0.25)",u.lineWidth=k?2.5:1.5,u.stroke();const m=((h=v.f.path.split("/").pop())==null?void 0:h.replace(/\.\w+$/,""))||"?";if(p>16){const $=Math.max(8,Math.min(13,p*.38));u.fillStyle="#fff",u.font=`600 ${$}px monospace`,u.textAlign="center",u.fillText(m,v.x,v.y-2),u.fillStyle="rgba(255,255,255,0.65)",u.font=`${$-1}px monospace`,u.fillText(`${v.f.loc} LOC`,v.x,v.y+$)}const f=Math.max(9,p*.3),x=f*.7;if(p>14&&v.f.dep_count>0){const $=v.y-p+x+3;u.beginPath(),u.arc(v.x,$,x,0,Math.PI*2),u.fillStyle="#ea580c",u.fill(),u.fillStyle="#fff",u.font=`bold ${f}px sans-serif`,u.textAlign="center",u.fillText("D",v.x,$+f*.35)}if(p>14&&v.f.has_tests){const $=v.y+p-x-3;u.beginPath(),u.arc(v.x,$,x,0,Math.PI*2),u.fillStyle="#16a34a",u.fill(),u.fillStyle="#fff",u.font=`bold ${f}px sans-serif`,u.textAlign="center",u.fillText("T",v.x,$+f*.35)}}u.restore(),requestAnimationFrame(bt)}q.addEventListener("mousemove",h=>{const y=q.getBoundingClientRect(),v=(h.clientX-y.left-K)/L,k=(h.clientY-y.top-X)/L;if(se){K=pt+(h.clientX-mt),X=gt+(h.clientY-ut);return}if(M>=0){_e=!0,w[M].x=v+dt,w[M].y=k+ct,w[M].vx=0,w[M].vy=0;return}G=-1;for(let p=w.length-1;p>=0;p--){const m=w[p],f=v-m.x,x=k-m.y;if(Math.sqrt(f*f+x*x)<m.r+4){G=p;break}}q.style.cursor=G>=0?"grab":"default"}),q.addEventListener("mousedown",h=>{const y=q.getBoundingClientRect(),v=(h.clientX-y.left-K)/L,k=(h.clientY-y.top-X)/L;if(h.button===2){se=!0,mt=h.clientX,ut=h.clientY,pt=K,gt=X,q.style.cursor="move";return}G>=0&&(M=G,dt=w[M].x-v,ct=w[M].y-k,_e=!1,q.style.cursor="grabbing")});let _e=!1;q.addEventListener("mouseup",h=>{if(se){se=!1,q.style.cursor="default";return}if(M>=0){_e||Se(w[M].f.path),q.style.cursor="grab",M=-1,_e=!1;return}}),q.addEventListener("mouseleave",()=>{G=-1,M=-1,se=!1}),q.addEventListener("dblclick",h=>{const y=q.getBoundingClientRect(),v=(h.clientX-y.left-K)/L,k=(h.clientY-y.top-X)/L;for(let p=w.length-1;p>=0;p--){const m=w[p],f=v-m.x,x=k-m.y;if(Math.sqrt(f*f+x*x)<m.r+4){Se(m.f.path);break}}}),q.addEventListener("contextmenu",h=>h.preventDefault()),requestAnimationFrame(bt)}async function Se(e){const t=document.getElementById("metrics-detail");if(!t)return;t.innerHTML='<p class="text-muted">Loading file analysis...</p>';const n=await T("/metrics/file?path="+encodeURIComponent(e));if(n.error){t.innerHTML=`<p style="color:var(--danger)">${r(n.error)}</p>`;return}const i=n.functions||[],o=Math.max(1,...i.map(s=>s.complexity));t.innerHTML=`
241
+ `,document.getElementById("metrics-canvas-wrap").appendChild(k),(Ut=document.getElementById("metrics-zoom-in"))==null||Ut.addEventListener("click",()=>{G=Math.min(5,G*1.3)}),(ui=document.getElementById("metrics-zoom-out"))==null||ui.addEventListener("click",()=>{G=Math.max(.3,G*.7)}),(On=document.getElementById("metrics-zoom-fit"))==null||On.addEventListener("click",()=>{G=1,te=0,re=0});const w=P.getContext("2d");let N=-1,q=-1,L=0,V=0,te=0,re=0,G=1,Se=!1,Ae=0,At=0,Et=0,Hr=0;function bt(){for(let Y=0;Y<m.length;Y++){if(Y===q)continue;const z=m[Y],j=f-z.x,I=p-z.y,le=.3+z.r/O*.7,ve=.008*le*le;z.vx+=j*ve,z.vy+=I*ve}for(const[Y,z]of y){const j=m[Y],I=m[z],le=I.x-j.x,ve=I.y-j.y,Ve=Math.sqrt(le*le+ve*ve)||1,jt=j.r+I.r+20,Mt=(Ve-jt)*.002,Kr=le/Ve*Mt,Jr=ve/Ve*Mt;Y!==q&&(j.vx+=Kr,j.vy+=Jr),z!==q&&(I.vx-=Kr,I.vy-=Jr)}for(let Y=0;Y<m.length;Y++)for(let z=Y+1;z<m.length;z++){const j=m[Y],I=m[z],le=I.x-j.x,ve=I.y-j.y,Ve=Math.sqrt(le*le+ve*ve)||1,jt=j.r+I.r+20;if(Ve<jt){const Mt=40*(jt-Ve)/jt,Kr=le/Ve*Mt,Jr=ve/Ve*Mt;Y!==q&&(j.vx-=Kr,j.vy-=Jr),z!==q&&(I.vx+=Kr,I.vy+=Jr)}}for(let Y=0;Y<m.length;Y++){if(Y===q)continue;const z=m[Y];z.vx*=.65,z.vy*=.65;const j=2;z.vx=Math.max(-j,Math.min(j,z.vx)),z.vy=Math.max(-j,Math.min(j,z.vy)),z.x+=z.vx,z.y+=z.vy,z.x=Math.max(z.r+2,Math.min(r-z.r-2,z.x)),z.y=Math.max(z.r+25,Math.min(s-z.r-2,z.y))}}function Ee(){var W;bt(),w.clearRect(0,0,r,s),w.save(),w.translate(te,re),w.scale(G,G),w.strokeStyle="rgba(255,255,255,0.03)",w.lineWidth=1/G;for(let U=0;U<r/G;U+=50)w.beginPath(),w.moveTo(U,0),w.lineTo(U,s/G),w.stroke();for(let U=0;U<s/G;U+=50)w.beginPath(),w.moveTo(0,U),w.lineTo(r/G,U),w.stroke();for(const[U,M]of y){const ae=m[U],Y=m[M],z=Y.x-ae.x,j=Y.y-ae.y,I=Math.sqrt(z*z+j*j)||1,le=N===U||N===M;w.beginPath(),w.moveTo(ae.x+z/I*ae.r,ae.y+j/I*ae.r);const ve=Y.x-z/I*Y.r,Ve=Y.y-j/I*Y.r;w.lineTo(ve,Ve),w.strokeStyle=le?"rgba(139,180,250,0.9)":"rgba(255,255,255,0.15)",w.lineWidth=le?3:1,w.stroke();const jt=le?12:6,Mt=Math.atan2(j,z);w.beginPath(),w.moveTo(ve,Ve),w.lineTo(ve-jt*Math.cos(Mt-.4),Ve-jt*Math.sin(Mt-.4)),w.lineTo(ve-jt*Math.cos(Mt+.4),Ve-jt*Math.sin(Mt+.4)),w.closePath(),w.fillStyle=w.strokeStyle,w.fill()}for(let U=0;U<m.length;U++){const M=m[U],ae=U===N,Y=ae?M.r+4:M.r;ae&&(w.beginPath(),w.arc(M.x,M.y,Y+8,0,Math.PI*2),w.fillStyle="rgba(255,255,255,0.08)",w.fill()),w.beginPath(),w.arc(M.x,M.y,Y,0,Math.PI*2),w.fillStyle=M.color,w.globalAlpha=ae?1:.85,w.fill(),w.globalAlpha=1,w.strokeStyle=ae?"rgba(255,255,255,0.6)":"rgba(255,255,255,0.25)",w.lineWidth=ae?2.5:1.5,w.stroke();const z=((W=M.f.path.split("/").pop())==null?void 0:W.replace(/\.\w+$/,""))||"?";if(Y>16){const le=Math.max(8,Math.min(13,Y*.38));w.fillStyle="#fff",w.font=`600 ${le}px monospace`,w.textAlign="center",w.fillText(z,M.x,M.y-2),w.fillStyle="rgba(255,255,255,0.65)",w.font=`${le-1}px monospace`,w.fillText(`${M.f.loc} LOC`,M.x,M.y+le)}const j=Math.max(9,Y*.3),I=j*.7;if(Y>14&&M.f.dep_count>0){const le=M.y-Y+I+3;w.beginPath(),w.arc(M.x,le,I,0,Math.PI*2),w.fillStyle="#ea580c",w.fill(),w.fillStyle="#fff",w.font=`bold ${j}px sans-serif`,w.textAlign="center",w.fillText("D",M.x,le+j*.35)}if(Y>14&&M.f.has_tests){const le=M.y+Y-I-3;w.beginPath(),w.arc(M.x,le,I,0,Math.PI*2),w.fillStyle="#16a34a",w.fill(),w.fillStyle="#fff",w.font=`bold ${j}px sans-serif`,w.textAlign="center",w.fillText("T",M.x,le+j*.35)}}w.restore(),requestAnimationFrame(Ee)}P.addEventListener("mousemove",W=>{const U=P.getBoundingClientRect(),M=(W.clientX-U.left-te)/G,ae=(W.clientY-U.top-re)/G;if(Se){te=Et+(W.clientX-Ae),re=Hr+(W.clientY-At);return}if(q>=0){Ue=!0,m[q].x=M+L,m[q].y=ae+V,m[q].vx=0,m[q].vy=0;return}N=-1;for(let Y=m.length-1;Y>=0;Y--){const z=m[Y],j=M-z.x,I=ae-z.y;if(Math.sqrt(j*j+I*I)<z.r+4){N=Y;break}}P.style.cursor=N>=0?"grab":"default"}),P.addEventListener("mousedown",W=>{const U=P.getBoundingClientRect(),M=(W.clientX-U.left-te)/G,ae=(W.clientY-U.top-re)/G;if(W.button===2){Se=!0,Ae=W.clientX,At=W.clientY,Et=te,Hr=re,P.style.cursor="move";return}N>=0&&(q=N,L=m[q].x-M,V=m[q].y-ae,Ue=!1,P.style.cursor="grabbing")});let Ue=!1;P.addEventListener("mouseup",W=>{if(Se){Se=!1,P.style.cursor="default";return}if(q>=0){Ue||ia(m[q].f.path),P.style.cursor="grab",q=-1,Ue=!1;return}}),P.addEventListener("mouseleave",()=>{N=-1,q=-1,Se=!1}),P.addEventListener("dblclick",W=>{const U=P.getBoundingClientRect(),M=(W.clientX-U.left-te)/G,ae=(W.clientY-U.top-re)/G;for(let Y=m.length-1;Y>=0;Y--){const z=m[Y],j=M-z.x,I=ae-z.y;if(Math.sqrt(j*j+I*I)<z.r+4){ia(z.f.path);break}}}),P.addEventListener("contextmenu",W=>W.preventDefault()),requestAnimationFrame(Ee)}async function ia(i){const e=document.getElementById("metrics-detail");if(!e)return;e.innerHTML='<p class="text-muted">Loading file analysis...</p>';const t=await A("/metrics/file?path="+encodeURIComponent(i));if(t.error){e.innerHTML=`<p style="color:var(--danger)">${Q(t.error)}</p>`;return}const n=t.functions||[],r=Math.max(1,...n.map(s=>s.complexity));e.innerHTML=`
240
242
  <div style="background:var(--surface);border:1px solid var(--border);border-radius:0.5rem;padding:1rem">
241
243
  <div class="flex items-center" style="justify-content:space-between;margin-bottom:0.75rem">
242
- <h3 style="font-size:0.9rem">${r(n.path)}</h3>
244
+ <h3 style="font-size:0.9rem">${Q(t.path)}</h3>
243
245
  <button class="btn btn-sm" onclick="document.getElementById('metrics-detail').innerHTML=''">Close</button>
244
246
  </div>
245
247
  <div class="metric-grid" style="margin-bottom:0.75rem">
246
- ${F("LOC",n.loc)}
247
- ${F("Total Lines",n.total_lines)}
248
- ${F("Classes",n.classes)}
249
- ${F("Functions",i.length)}
250
- ${F("Imports",n.imports?n.imports.length:0)}
248
+ ${Lt("LOC",t.loc)}
249
+ ${Lt("Total Lines",t.total_lines)}
250
+ ${Lt("Classes",t.classes)}
251
+ ${Lt("Functions",n.length)}
252
+ ${Lt("Imports",t.imports?t.imports.length:0)}
251
253
  </div>
252
- ${i.length?`
254
+ ${n.length?`
253
255
  <h4 style="font-size:0.8rem;color:var(--info);margin-bottom:0.5rem">Cyclomatic Complexity by Function</h4>
254
- ${i.sort((s,l)=>l.complexity-s.complexity).map(s=>{const l=s.complexity/o*100,a=s.complexity>10?"#ef4444":s.complexity>5?"#f59e0b":"#22c55e";return`<div style="display:flex;align-items:center;gap:0.5rem;margin-bottom:3px;font-size:0.75rem">
255
- <div style="width:200px;flex-shrink:0;text-align:right;font-family:monospace;overflow:hidden;text-overflow:ellipsis;white-space:nowrap" title="${r(s.name)}">${r(s.name)}</div>
256
- <div style="flex:1;height:14px;background:var(--bg);border-radius:2px;overflow:hidden"><div style="width:${l}%;height:100%;background:${a}"></div></div>
256
+ ${n.sort((s,o)=>o.complexity-s.complexity).map(s=>{const o=s.complexity/r*100,a=s.complexity>10?"#ef4444":s.complexity>5?"#f59e0b":"#22c55e";return`<div style="display:flex;align-items:center;gap:0.5rem;margin-bottom:3px;font-size:0.75rem">
257
+ <div style="width:200px;flex-shrink:0;text-align:right;font-family:monospace;overflow:hidden;text-overflow:ellipsis;white-space:nowrap" title="${Q(s.name)}">${Q(s.name)}</div>
258
+ <div style="flex:1;height:14px;background:var(--bg);border-radius:2px;overflow:hidden"><div style="width:${o}%;height:100%;background:${a}"></div></div>
257
259
  <div style="width:180px;flex-shrink:0;font-family:monospace;text-align:right"><span style="color:${a}">CC:${s.complexity}</span> <span style="color:var(--muted)">${s.loc} LOC L${s.line}</span></div>
258
260
  </div>`}).join("")}
259
261
  `:'<p class="text-muted">No functions</p>'}
260
262
  </div>
261
- `}function F(e,t){return`<div class="metric-card"><div class="label">${r(e)}</div><div class="value">${r(String(t??0))}</div></div>`}window.__drillDown=Se;let Te=null;function Gt(e){e.innerHTML=`
263
+ `}function Lt(i,e){return`<div class="metric-card"><div class="label">${Q(i)}</div><div class="value">${Q(String(e??0))}</div></div>`}window.__drillDown=ia;let na=null;function GQ(i){i.innerHTML=`
262
264
  <div class="dev-panel-header">
263
265
  <h2>GraphQL Explorer</h2>
264
266
  <button class="btn btn-sm" onclick="window.__loadGqlSchema()">Refresh Schema</button>
@@ -285,31 +287,31 @@ ${n.traceback||""}`;window.__switchTab("chat"),setTimeout(()=>{window.__prefillC
285
287
  <pre id="gql-result" style="flex:1;overflow:auto;background:var(--bg);border:1px solid var(--border);border-radius:0.375rem;padding:0.75rem;font-size:0.8rem;margin:0;white-space:pre-wrap;color:var(--text);font-family:monospace"></pre>
286
288
  </div>
287
289
  </div>
288
- `,Ze()}async function Ze(){const e=document.getElementById("gql-types"),t=document.getElementById("gql-queries"),n=document.getElementById("gql-mutations");try{const i=await T("/graphql/schema");if(i.error){e&&(e.innerHTML=`<p class="text-sm" style="color:var(--danger)">${r(i.error)}</p>`);return}const o=i.schema||{},s=o.types||{},l=o.queries||{},a=o.mutations||{};if(e){const c=Object.keys(s);c.length?e.innerHTML=c.map(d=>{const b=s[d],_=Object.entries(b).map(([g,E])=>`<div style="padding-left:1rem;color:var(--muted);font-size:0.7rem">${r(g)}: <span style="color:var(--primary)">${r(String(E))}</span></div>`).join("");return`
290
+ `,Hc()}async function Hc(){const i=document.getElementById("gql-types"),e=document.getElementById("gql-queries"),t=document.getElementById("gql-mutations");try{const n=await A("/graphql/schema");if(n.error){i&&(i.innerHTML=`<p class="text-sm" style="color:var(--danger)">${Q(n.error)}</p>`);return}const r=n.schema||{},s=r.types||{},o=r.queries||{},a=r.mutations||{};if(i){const l=Object.keys(s);l.length?i.innerHTML=l.map(O=>{const c=s[O],d=Object.entries(c).map(([h,f])=>`<div style="padding-left:1rem;color:var(--muted);font-size:0.7rem">${Q(h)}: <span style="color:var(--primary)">${Q(String(f))}</span></div>`).join("");return`
289
291
  <div style="margin-bottom:0.5rem">
290
- <div style="font-weight:600;font-size:0.8rem;color:var(--text);cursor:pointer" onclick="this.nextElementSibling.style.display=this.nextElementSibling.style.display==='none'?'block':'none'">${r(d)}</div>
291
- <div style="display:none">${_}</div>
292
- </div>`}).join(""):e.innerHTML='<p class="text-sm text-muted">No types registered</p>'}if(t){const c=Object.keys(l);c.length&&(t.innerHTML='<div style="font-weight:600;font-size:0.75rem;color:var(--muted);text-transform:uppercase;margin-bottom:0.25rem">Queries</div>'+c.map(d=>{const b=l[d],_=b.args?Object.entries(b.args).map(([g,E])=>`${g}: ${E}`).join(", "):"";return`<div style="font-size:0.8rem;padding:0.15rem 0;cursor:pointer;color:var(--text)" onclick="window.__insertGqlQuery('${r(d)}','query')" title="Click to insert">${r(d)}${_?`(${r(_)})`:""}: <span style="color:var(--primary)">${r(b.type||"")}</span></div>`}).join(""))}if(n){const c=Object.keys(a);c.length&&(n.innerHTML='<div style="font-weight:600;font-size:0.75rem;color:var(--muted);text-transform:uppercase;margin-bottom:0.25rem">Mutations</div>'+c.map(d=>{const b=a[d],_=b.args?Object.entries(b.args).map(([g,E])=>`${g}: ${E}`).join(", "):"";return`<div style="font-size:0.8rem;padding:0.15rem 0;cursor:pointer;color:var(--text)" onclick="window.__insertGqlQuery('${r(d)}','mutation')" title="Click to insert">${r(d)}${_?`(${r(_)})`:""}: <span style="color:var(--primary)">${r(b.type||"")}</span></div>`}).join(""))}}catch(i){e&&(e.innerHTML=`<p class="text-sm" style="color:var(--danger)">${r(i.message)}</p>`)}}function Jt(e,t){const n=document.getElementById("gql-query");n&&(t==="mutation"?n.value=`mutation {
293
- ${e} {
292
+ <div style="font-weight:600;font-size:0.8rem;color:var(--text);cursor:pointer" onclick="this.nextElementSibling.style.display=this.nextElementSibling.style.display==='none'?'block':'none'">${Q(O)}</div>
293
+ <div style="display:none">${d}</div>
294
+ </div>`}).join(""):i.innerHTML='<p class="text-sm text-muted">No types registered</p>'}if(e){const l=Object.keys(o);l.length&&(e.innerHTML='<div style="font-weight:600;font-size:0.75rem;color:var(--muted);text-transform:uppercase;margin-bottom:0.25rem">Queries</div>'+l.map(O=>{const c=o[O],d=c.args?Object.entries(c.args).map(([h,f])=>`${h}: ${f}`).join(", "):"";return`<div style="font-size:0.8rem;padding:0.15rem 0;cursor:pointer;color:var(--text)" onclick="window.__insertGqlQuery('${Q(O)}','query')" title="Click to insert">${Q(O)}${d?`(${Q(d)})`:""}: <span style="color:var(--primary)">${Q(c.type||"")}</span></div>`}).join(""))}if(t){const l=Object.keys(a);l.length&&(t.innerHTML='<div style="font-weight:600;font-size:0.75rem;color:var(--muted);text-transform:uppercase;margin-bottom:0.25rem">Mutations</div>'+l.map(O=>{const c=a[O],d=c.args?Object.entries(c.args).map(([h,f])=>`${h}: ${f}`).join(", "):"";return`<div style="font-size:0.8rem;padding:0.15rem 0;cursor:pointer;color:var(--text)" onclick="window.__insertGqlQuery('${Q(O)}','mutation')" title="Click to insert">${Q(O)}${d?`(${Q(d)})`:""}: <span style="color:var(--primary)">${Q(c.type||"")}</span></div>`}).join(""))}}catch(n){i&&(i.innerHTML=`<p class="text-sm" style="color:var(--danger)">${Q(n.message)}</p>`)}}function IQ(i,e){const t=document.getElementById("gql-query");t&&(e==="mutation"?t.value=`mutation {
295
+ ${i} {
294
296
 
295
297
  }
296
- }`:n.value=`{
297
- ${e} {
298
+ }`:t.value=`{
299
+ ${i} {
298
300
 
299
301
  }
300
- }`,n.focus())}async function Wt(){var l,a,c;const e=document.getElementById("gql-query"),t=(l=e==null?void 0:e.value)==null?void 0:l.trim();if(!t)return;const n=document.getElementById("gql-error"),i=document.getElementById("gql-result");let o={};const s=(c=(a=document.getElementById("gql-variables"))==null?void 0:a.value)==null?void 0:c.trim();if(s&&s!=="{}")try{o=JSON.parse(s)}catch{n&&(n.style.display="block",n.textContent="Invalid JSON in variables");return}n&&(n.style.display="none"),i&&(i.textContent="Executing...");try{const d=await T("/query","POST",{query:t,type:"graphql",variables:o});if(Te=d,d.errors&&d.errors.length){const b=d.errors.map(_=>_.message||String(_)).join(`
301
- `);n&&(n.style.display="block",n.textContent=b)}i&&(i.textContent=JSON.stringify(d.data??d,null,2))}catch(d){n&&(n.style.display="block",n.textContent=d.message),i&&(i.textContent="")}}function Qt(){Te&&navigator.clipboard.writeText(JSON.stringify(Te,null,2))}window.__loadGqlSchema=Ze,window.__runGqlQuery=Wt,window.__copyGqlResult=Qt,window.__insertGqlQuery=Jt;let Ie=!1,qe=null,de="jobs",V="",R="default",ce=["default"],me=null;function Ut(e){me=e,T("/queue/topics").then(t=>{t.topics&&t.topics.length>0&&(ce=t.topics,ce.includes(R)||(R=ce[0])),Me()}).catch(()=>Me())}function Me(){if(!me)return;const e=ce.map(t=>`<option value="${r(t)}" ${t===R?"selected":""}>${r(t)}</option>`).join("");me.innerHTML=`
302
+ }`,t.focus())}async function DQ(){var o,a,l;const i=document.getElementById("gql-query"),e=(o=i==null?void 0:i.value)==null?void 0:o.trim();if(!e)return;const t=document.getElementById("gql-error"),n=document.getElementById("gql-result");let r={};const s=(l=(a=document.getElementById("gql-variables"))==null?void 0:a.value)==null?void 0:l.trim();if(s&&s!=="{}")try{r=JSON.parse(s)}catch{t&&(t.style.display="block",t.textContent="Invalid JSON in variables");return}t&&(t.style.display="none"),n&&(n.textContent="Executing...");try{const O=await A("/query","POST",{query:e,type:"graphql",variables:r});if(na=O,O.errors&&O.errors.length){const c=O.errors.map(d=>d.message||String(d)).join(`
303
+ `);t&&(t.style.display="block",t.textContent=c)}n&&(n.textContent=JSON.stringify(O.data??O,null,2))}catch(O){t&&(t.style.display="block",t.textContent=O.message),n&&(n.textContent="")}}function BQ(){na&&navigator.clipboard.writeText(JSON.stringify(na,null,2))}window.__loadGqlSchema=Hc,window.__runGqlQuery=DQ,window.__copyGqlResult=BQ,window.__insertGqlQuery=IQ;let ra=!1,sa=null,ts="jobs",Yi="",it="default",is=["default"],ns=null;function NQ(i){ns=i,A("/queue/topics").then(e=>{e.topics&&e.topics.length>0&&(is=e.topics,is.includes(it)||(it=is[0])),oa()}).catch(()=>oa())}function oa(){if(!ns)return;const i=is.map(e=>`<option value="${Q(e)}" ${e===it?"selected":""}>${Q(e)}</option>`).join("");ns.innerHTML=`
302
304
  <div class="dev-panel-header">
303
305
  <h2>Queue Monitor</h2>
304
306
  <div style="display:flex;gap:0.5rem;align-items:center;flex-wrap:wrap">
305
307
  <select id="queue-topic-select" onchange="window.__queueTopic(this.value)" style="background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:0.25rem;padding:0.25rem 0.5rem;font-size:0.8rem">
306
- ${e}
308
+ ${i}
307
309
  </select>
308
- <button class="btn btn-sm ${de==="jobs"?"btn-primary":""}" onclick="window.__queueView('jobs')">Jobs</button>
309
- <button class="btn btn-sm ${de==="dead-letters"?"btn-primary":""}" onclick="window.__queueView('dead-letters')">Dead Letters</button>
310
+ <button class="btn btn-sm ${ts==="jobs"?"btn-primary":""}" onclick="window.__queueView('jobs')">Jobs</button>
311
+ <button class="btn btn-sm ${ts==="dead-letters"?"btn-primary":""}" onclick="window.__queueView('dead-letters')">Dead Letters</button>
310
312
  <span style="color:var(--muted)">|</span>
311
313
  <label style="font-size:0.75rem;color:var(--muted);cursor:pointer;display:flex;align-items:center;gap:0.25rem">
312
- <input type="checkbox" ${Ie?"checked":""} onchange="window.__queueAutoRefresh(this.checked)"> Auto
314
+ <input type="checkbox" ${ra?"checked":""} onchange="window.__queueAutoRefresh(this.checked)"> Auto
313
315
  </label>
314
316
  <button class="btn btn-sm" onclick="window.__queueRefresh()">Refresh</button>
315
317
  </div>
@@ -317,18 +319,18 @@ ${n.traceback||""}`;window.__switchTab("chat"),setTimeout(()=>{window.__prefillC
317
319
  <div id="queue-stats" style="display:flex;gap:0.75rem;margin-bottom:1rem;flex-wrap:wrap"></div>
318
320
  <div id="queue-actions" style="display:flex;gap:0.5rem;margin-bottom:1rem;flex-wrap:wrap"></div>
319
321
  <div id="queue-list"></div>
320
- `,J()}async function J(){if(de==="dead-letters"){Vt();return}try{const e=`?topic=${encodeURIComponent(R)}${V?`&status=${V}`:""}`,t=await T(`/queue${e}`),n=document.getElementById("queue-stats");if(n&&t.stats){const s=t.stats,l=(s.pending||0)+(s.reserved||0)+(s.completed||0)+(s.failed||0);n.innerHTML=`
321
- <span class="badge" style="background:var(--surface);border:1px solid var(--border);color:var(--text);cursor:pointer" onclick="window.__queueFilter('')">All: ${l}</span>
322
+ `,pi()}async function pi(){if(ts==="dead-letters"){FQ();return}try{const i=`?topic=${encodeURIComponent(it)}${Yi?`&status=${Yi}`:""}`,e=await A(`/queue${i}`),t=document.getElementById("queue-stats");if(t&&e.stats){const s=e.stats,o=(s.pending||0)+(s.reserved||0)+(s.completed||0)+(s.failed||0);t.innerHTML=`
323
+ <span class="badge" style="background:var(--surface);border:1px solid var(--border);color:var(--text);cursor:pointer" onclick="window.__queueFilter('')">All: ${o}</span>
322
324
  <span class="badge" style="background:var(--warn);color:#000;cursor:pointer" onclick="window.__queueFilter('pending')">Pending: ${s.pending||0}</span>
323
325
  <span class="badge" style="background:var(--info);cursor:pointer" onclick="window.__queueFilter('reserved')">Reserved: ${s.reserved||0}</span>
324
326
  <span class="badge" style="background:var(--success);cursor:pointer" onclick="window.__queueFilter('completed')">Completed: ${s.completed||0}</span>
325
327
  <span class="badge" style="background:var(--danger);cursor:pointer" onclick="window.__queueFilter('failed')">Failed: ${s.failed||0}</span>
326
- ${V?`<span class="badge" style="background:var(--muted);cursor:pointer" onclick="window.__queueFilter('')">&times; Clear</span>`:""}
327
- `}const i=document.getElementById("queue-actions");i&&(i.innerHTML=`
328
+ ${Yi?`<span class="badge" style="background:var(--muted);cursor:pointer" onclick="window.__queueFilter('')">&times; Clear</span>`:""}
329
+ `}const n=document.getElementById("queue-actions");n&&(n.innerHTML=`
328
330
  <button class="btn btn-sm" style="background:var(--warn);color:#000" onclick="window.__queueRetryAll()">Retry Failed</button>
329
331
  <button class="btn btn-sm" style="background:var(--success)" onclick="window.__queuePurge('completed')">Purge Completed</button>
330
332
  <button class="btn btn-sm" style="background:var(--danger)" onclick="window.__queuePurge('failed')">Purge Failed</button>
331
- `);const o=document.getElementById("queue-list");if(!o)return;if(!t.jobs||t.jobs.length===0){o.innerHTML=`<div class="text-muted text-center" style="padding:2rem">No jobs in <strong>${r(R)}</strong>${V?` with status <strong>${r(V)}</strong>`:""}</div>`;return}o.innerHTML=`
333
+ `);const r=document.getElementById("queue-list");if(!r)return;if(!e.jobs||e.jobs.length===0){r.innerHTML=`<div class="text-muted text-center" style="padding:2rem">No jobs in <strong>${Q(it)}</strong>${Yi?` with status <strong>${Q(Yi)}</strong>`:""}</div>`;return}r.innerHTML=`
332
334
  <table class="table" style="font-size:0.8rem">
333
335
  <thead>
334
336
  <tr>
@@ -340,19 +342,19 @@ ${n.traceback||""}`;window.__switchTab("chat"),setTimeout(()=>{window.__prefillC
340
342
  </tr>
341
343
  </thead>
342
344
  <tbody>
343
- ${t.jobs.map((s,l)=>(window.__queueJobs=window.__queueJobs||[],window.__queueJobs[l]=s,`
345
+ ${e.jobs.map((s,o)=>(window.__queueJobs=window.__queueJobs||[],window.__queueJobs[o]=s,`
344
346
  <tr>
345
- <td style="font-family:var(--mono);font-size:0.65rem">${r(String(s.id||"").slice(0,8))}</td>
346
- <td style="text-align:center">${Yt(s.status)}</td>
347
- <td><code style="font-size:0.7rem;word-break:break-all;max-width:300px;display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer" onclick="window.__queueExpandPayload(this,${l})">${r(JSON.stringify(s.data||{}).slice(0,80))}</code></td>
348
- <td style="color:var(--danger);font-size:0.7rem;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap" title="${r(s.error||"")}">${r(s.error||"-")}</td>
347
+ <td style="font-family:var(--mono);font-size:0.65rem">${Q(String(s.id||"").slice(0,8))}</td>
348
+ <td style="text-align:center">${HQ(s.status)}</td>
349
+ <td><code style="font-size:0.7rem;word-break:break-all;max-width:300px;display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer" onclick="window.__queueExpandPayload(this,${o})">${Q(JSON.stringify(s.data||{}).slice(0,80))}</code></td>
350
+ <td style="color:var(--danger);font-size:0.7rem;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap" title="${Q(s.error||"")}">${Q(s.error||"-")}</td>
349
351
  <td style="text-align:center">
350
- ${s.status==="failed"||s.status==="dead_letter"?`<button class="btn btn-sm" style="font-size:0.65rem;padding:2px 6px" onclick="window.__queueReplay('${r(String(s.id))}')">Retry</button>`:""}
352
+ ${s.status==="failed"||s.status==="dead_letter"?`<button class="btn btn-sm" style="font-size:0.65rem;padding:2px 6px" onclick="window.__queueReplay('${Q(String(s.id))}')">Retry</button>`:""}
351
353
  </td>
352
354
  </tr>`)).join("")}
353
355
  </tbody>
354
356
  </table>
355
- `}catch(e){const t=document.getElementById("queue-list");t&&(t.innerHTML=`<div style="color:var(--danger);padding:1rem">${r(e.message||String(e))}</div>`)}}async function Vt(){try{const e=await T(`/queue/dead-letters?topic=${encodeURIComponent(R)}`),t=document.getElementById("queue-stats");t&&(t.innerHTML=`<span class="badge" style="background:var(--danger)">Dead Letters: ${e.count||0}</span>`);const n=document.getElementById("queue-actions");n&&(n.innerHTML=e.count>0?'<button class="btn btn-sm" style="background:var(--warn);color:#000" onclick="window.__queueRetryAll()">Retry All</button>':"");const i=document.getElementById("queue-list");if(!i)return;if(!e.jobs||e.jobs.length===0){i.innerHTML=`<div class="text-muted text-center" style="padding:2rem">No dead letter jobs in <strong>${r(R)}</strong></div>`;return}i.innerHTML=`
357
+ `}catch(i){const e=document.getElementById("queue-list");e&&(e.innerHTML=`<div style="color:var(--danger);padding:1rem">${Q(i.message||String(i))}</div>`)}}async function FQ(){try{const i=await A(`/queue/dead-letters?topic=${encodeURIComponent(it)}`),e=document.getElementById("queue-stats");e&&(e.innerHTML=`<span class="badge" style="background:var(--danger)">Dead Letters: ${i.count||0}</span>`);const t=document.getElementById("queue-actions");t&&(t.innerHTML=i.count>0?'<button class="btn btn-sm" style="background:var(--warn);color:#000" onclick="window.__queueRetryAll()">Retry All</button>':"");const n=document.getElementById("queue-list");if(!n)return;if(!i.jobs||i.jobs.length===0){n.innerHTML=`<div class="text-muted text-center" style="padding:2rem">No dead letter jobs in <strong>${Q(it)}</strong></div>`;return}n.innerHTML=`
356
358
  <table class="table" style="font-size:0.8rem">
357
359
  <thead>
358
360
  <tr>
@@ -364,202 +366,1048 @@ ${n.traceback||""}`;window.__switchTab("chat"),setTimeout(()=>{window.__prefillC
364
366
  </tr>
365
367
  </thead>
366
368
  <tbody>
367
- ${e.jobs.map((o,s)=>(window.__queueJobs=window.__queueJobs||[],window.__queueJobs[1e3+s]=o,`
369
+ ${i.jobs.map((r,s)=>(window.__queueJobs=window.__queueJobs||[],window.__queueJobs[1e3+s]=r,`
368
370
  <tr>
369
- <td style="font-family:var(--mono);font-size:0.65rem">${r(String(o.id||"").slice(0,8))}</td>
370
- <td><code style="font-size:0.7rem;word-break:break-all;max-width:250px;display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer" onclick="window.__queueExpandPayload(this,${1e3+s})">${r(JSON.stringify(o.data||{}).slice(0,60))}</code></td>
371
- <td style="color:var(--danger);font-size:0.7rem;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap" title="${r(o.error||"")}">${r(o.error||"")}</td>
372
- <td style="text-align:center">${o.retries||o.attempts||0}</td>
371
+ <td style="font-family:var(--mono);font-size:0.65rem">${Q(String(r.id||"").slice(0,8))}</td>
372
+ <td><code style="font-size:0.7rem;word-break:break-all;max-width:250px;display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer" onclick="window.__queueExpandPayload(this,${1e3+s})">${Q(JSON.stringify(r.data||{}).slice(0,60))}</code></td>
373
+ <td style="color:var(--danger);font-size:0.7rem;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap" title="${Q(r.error||"")}">${Q(r.error||"")}</td>
374
+ <td style="text-align:center">${r.retries||r.attempts||0}</td>
373
375
  <td style="text-align:center">
374
- <button class="btn btn-sm" style="font-size:0.65rem;padding:2px 6px" onclick="window.__queueReplay('${r(String(o.id))}')">Replay</button>
376
+ <button class="btn btn-sm" style="font-size:0.65rem;padding:2px 6px" onclick="window.__queueReplay('${Q(String(r.id))}')">Replay</button>
375
377
  </td>
376
378
  </tr>`)).join("")}
377
379
  </tbody>
378
380
  </table>
379
- `}catch(e){const t=document.getElementById("queue-list");t&&(t.innerHTML=`<div style="color:var(--danger);padding:1rem">${r(e.message||String(e))}</div>`)}}function Yt(e){return`<span class="badge" style="background:${{pending:"var(--warn)",reserved:"var(--info)",completed:"var(--success)",failed:"var(--danger)",dead_letter:"#8b0000"}[e]||"var(--muted)"};font-size:0.65rem">${r(e)}</span>`}window.__queueExpandPayload=(e,t)=>{var a;const n=e.closest("tr");if(!n)return;const i=n.nextElementSibling;if(i&&i.classList.contains("queue-payload-row")){i.remove();return}const o=(a=window.__queueJobs)==null?void 0:a[t],s=JSON.stringify((o==null?void 0:o.data)||{},null,2),l=document.createElement("tr");l.className="queue-payload-row",l.innerHTML=`<td colspan="5" style="padding:0.75rem 1rem;background:rgba(0,0,0,0.3)">
381
+ `}catch(i){const e=document.getElementById("queue-list");e&&(e.innerHTML=`<div style="color:var(--danger);padding:1rem">${Q(i.message||String(i))}</div>`)}}function HQ(i){return`<span class="badge" style="background:${{pending:"var(--warn)",reserved:"var(--info)",completed:"var(--success)",failed:"var(--danger)",dead_letter:"#8b0000"}[i]||"var(--muted)"};font-size:0.65rem">${Q(i)}</span>`}window.__queueExpandPayload=(i,e)=>{var a;const t=i.closest("tr");if(!t)return;const n=t.nextElementSibling;if(n&&n.classList.contains("queue-payload-row")){n.remove();return}const r=(a=window.__queueJobs)==null?void 0:a[e],s=JSON.stringify((r==null?void 0:r.data)||{},null,2),o=document.createElement("tr");o.className="queue-payload-row",o.innerHTML=`<td colspan="5" style="padding:0.75rem 1rem;background:rgba(0,0,0,0.3)">
380
382
  <div style="display:flex;justify-content:space-between;align-items:center;margin-bottom:0.5rem">
381
- <span style="font-size:0.7rem;color:var(--muted)">Job ${r((o==null?void 0:o.id)||"")} — ${r((o==null?void 0:o.status)||"")}</span>
383
+ <span style="font-size:0.7rem;color:var(--muted)">Job ${Q((r==null?void 0:r.id)||"")} — ${Q((r==null?void 0:r.status)||"")}</span>
382
384
  <button class="btn btn-sm" style="font-size:0.65rem;padding:2px 8px" onclick="navigator.clipboard.writeText(this.closest('td').querySelector('pre').textContent).then(()=>{this.textContent='Copied!';setTimeout(()=>this.textContent='Copy',1000)})">Copy</button>
383
385
  </div>
384
- <pre style="margin:0;font-size:0.75rem;white-space:pre-wrap;color:var(--text);max-height:300px;overflow:auto;background:rgba(0,0,0,0.2);padding:0.5rem;border-radius:0.25rem">${r(s)}</pre>
385
- ${o!=null&&o.error?`<div style="margin-top:0.5rem;font-size:0.7rem;color:var(--danger)">Error: ${r(o.error)}</div>`:""}
386
- </td>`,n.after(l)},window.__queueTopic=e=>{R=e,J()},window.__queueView=e=>{de=e,V="",me&&Me()},window.__queueFilter=e=>{V=e,J()},window.__queueRefresh=()=>J(),window.__queueAutoRefresh=e=>{Ie=e,qe&&clearInterval(qe),Ie&&(qe=setInterval(J,3e3))},window.__queueRetryAll=async()=>{await T("/queue/retry","POST",{topic:R}),J()},window.__queuePurge=async e=>{confirm(`Purge all ${e} jobs in ${R}?`)&&(await T("/queue/purge","POST",{status:e,topic:R}),J())},window.__queueReplay=async e=>{await T("/queue/replay","POST",{id:e,topic:R}),J()};const ue={tina4:{model:"",url:"http://41.71.84.173:11437"},custom:{model:"",url:"http://localhost:11434"},anthropic:{model:"claude-sonnet-4-20250514",url:"https://api.anthropic.com"},openai:{model:"gpt-4o",url:"https://api.openai.com"}},W={thinking:{model:"",url:"http://41.71.84.173:11437"},vision:{model:"",url:"http://41.71.84.173:11434"},imageGen:{model:"",url:"http://41.71.84.173:11436"}};function pe(e="tina4",t="thinking"){if(e==="tina4"&&W[t]){const i=W[t];return{provider:e,model:i.model,url:i.url,apiKey:""}}const n=ue[e]||ue.tina4;return{provider:e,model:n.model,url:n.url,apiKey:""}}function Le(e,t="thinking"){const n={...pe("tina4",t),...e||{}};return n.provider==="ollama"&&(n.provider="custom"),n.model==="tina4-v1"&&(n.model=""),n.provider==="tina4"&&W[t]&&(n.url=W[t].url),n}function Kt(){try{const e=JSON.parse(localStorage.getItem("tina4_chat_settings")||"{}");return{thinking:Le(e.thinking,"thinking"),vision:Le(e.vision,"vision"),imageGen:Le(e.imageGen,"imageGen")}}catch{return{thinking:pe("tina4","thinking"),vision:pe("tina4","vision"),imageGen:pe("tina4","imageGen")}}}function Xt(e){localStorage.setItem("tina4_chat_settings",JSON.stringify(e)),I=e,Y()}let I=Kt(),A="Idle";const ge=[];function Zt(){const e=document.getElementById("chat-messages");if(!e)return;const t=[];e.querySelectorAll(".chat-msg").forEach(n=>{var s;const i=n.classList.contains("chat-user")?"user":"assistant",o=((s=n.querySelector(".chat-msg-content"))==null?void 0:s.innerHTML)||"";o.includes("Hi! I'm Tina4.")||t.push({role:i,content:o})});try{localStorage.setItem("tina4_chat_history",JSON.stringify(t))}catch{}}function en(){try{const e=localStorage.getItem("tina4_chat_history");if(!e)return;const t=JSON.parse(e);if(!t.length)return;t.reverse().forEach(n=>{const i=(n.content||"").trim();i&&B(i,n.role==="user"?"user":"bot")})}catch{}}function tn(){localStorage.removeItem("tina4_chat_history");const e=document.getElementById("chat-messages");e&&(e.innerHTML=`<div class="chat-msg chat-bot">Hi! I'm Tina4. Ask me to build routes, templates, models — or ask questions about your project.</div>`),be=0}function nn(e){var n,i,o,s,l,a,c,d,b,_;e.innerHTML=`
387
- <div class="dev-panel-header">
388
- <h2>Code With Me</h2>
389
- <div class="flex gap-sm">
390
- <button class="btn btn-sm" onclick="window.__clearChat()" title="Clear chat history">Clear</button>
391
- <button class="btn btn-sm" id="chat-thoughts-btn" title="Supervisor thoughts">Thoughts <span id="thoughts-dot" style="display:none;color:var(--info)">&#9679;</span></button>
392
- <button class="btn btn-sm" id="chat-settings-btn" title="Settings">&#9881; Settings</button>
393
- </div>
394
- </div>
395
- <div style="display:flex;gap:0.5rem;flex:1;min-height:0;overflow:hidden">
396
- <div style="flex:1;display:flex;flex-direction:column;min-height:0">
397
- <div style="display:flex;gap:0.5rem;align-items:flex-start;padding:0.5rem 0;flex-shrink:0">
398
- <textarea id="chat-input" class="input" placeholder="Ask Tina4 to build something..." rows="2" style="flex:1;resize:vertical;min-height:36px;max-height:200px;font-family:inherit;font-size:inherit"></textarea>
399
- <div style="display:flex;flex-direction:column;gap:4px">
400
- <button class="btn btn-primary" id="chat-send-btn" style="white-space:nowrap">Send</button>
401
- <div style="display:flex;gap:4px">
402
- <input type="file" id="chat-file-input" multiple style="display:none" />
403
- <button class="btn btn-sm" id="chat-file-btn" style="font-size:0.65rem;padding:2px 6px">File</button>
404
- <button class="btn btn-sm" id="chat-mic-btn" style="font-size:0.65rem;padding:2px 6px">Mic</button>
386
+ <pre style="margin:0;font-size:0.75rem;white-space:pre-wrap;color:var(--text);max-height:300px;overflow:auto;background:rgba(0,0,0,0.2);padding:0.5rem;border-radius:0.25rem">${Q(s)}</pre>
387
+ ${r!=null&&r.error?`<div style="margin-top:0.5rem;font-size:0.7rem;color:var(--danger)">Error: ${Q(r.error)}</div>`:""}
388
+ </td>`,t.after(o)},window.__queueTopic=i=>{it=i,pi()},window.__queueView=i=>{ts=i,Yi="",ns&&oa()},window.__queueFilter=i=>{Yi=i,pi()},window.__queueRefresh=()=>pi(),window.__queueAutoRefresh=i=>{ra=i,sa&&clearInterval(sa),ra&&(sa=setInterval(pi,3e3))},window.__queueRetryAll=async()=>{await A("/queue/retry","POST",{topic:it}),pi()},window.__queuePurge=async i=>{confirm(`Purge all ${i} jobs in ${it}?`)&&(await A("/queue/purge","POST",{status:i,topic:it}),pi())},window.__queueReplay=async i=>{await A("/queue/replay","POST",{id:i,topic:it}),pi()};const Gt={chat:{endpoint:"/ai",model:"qwen2.5-coder:14b"},vision:{endpoint:"/vision",model:"qwen2.5-vl:7b"},embed:{endpoint:"/embed",model:"nomic-embed-text"},image:{endpoint:"/image",model:"sdxl-turbo"},rag:{endpoint:"/rag"}};async function KQ(i,e={}){var s,o;const t=e.model||Gt.chat.model,n=await fetch(`${Gt.chat.endpoint}/api/chat`,{method:"POST",headers:{"Content-Type":"application/json"},signal:e.signal,body:JSON.stringify({model:t,messages:i,stream:!0})});if(!n.ok)throw new Error(`chat ${n.status}: ${await Kc(n)}`);if(!n.body){const a=await n.json(),l=((s=a==null?void 0:a.message)==null?void 0:s.content)??"";return l&&((o=e.onToken)==null||o.call(e,l,l)),l}let r="";return await iy(n.body,a=>{var l,O;try{const c=JSON.parse(a),d=((l=c==null?void 0:c.message)==null?void 0:l.content)??(c==null?void 0:c.response)??"";d&&(r+=d,(O=e.onToken)==null||O.call(e,d,r))}catch{}}),r}async function JQ(i,e={}){const t=e.width||512,n=e.height||512;try{const r=await fetch(`${Gt.image.endpoint}/v1/images/generations`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prompt:i,n:1,size:`${t}x${n}`,model:Gt.image.model,response_format:"b64_json"})});if(!r.ok)return{images:[],error:`${r.status}: ${await Kc(r)}`};const s=await r.json(),o=[];if(Array.isArray(s.data))for(const a of s.data)a!=null&&a.b64_json?o.push(`data:image/png;base64,${a.b64_json}`):a!=null&&a.url&&o.push(a.url);else if(Array.isArray(s.images))for(const a of s.images)typeof a=="string"&&o.push(a.startsWith("data:")||a.startsWith("http")?a:`data:image/png;base64,${a}`);else Array.isArray(s.urls)&&o.push(...s.urls);return{images:o.filter(Boolean)}}catch(r){return{images:[],error:String((r==null?void 0:r.message)||r)}}}async function ey(i,e,t=3){try{const n=new AbortController,r=setTimeout(()=>n.abort(),4e3),o=await fetch("/rag/search",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e?{query:i,file:e,k:t}:{query:i,k:t}),signal:n.signal});if(clearTimeout(r),!o.ok)return[];const a=await o.json();return(Array.isArray(a==null?void 0:a.results)?a.results:[]).slice(0,t).map(O=>({text:String((O==null?void 0:O.text)??(O==null?void 0:O.content)??"").slice(0,800),score:Number((O==null?void 0:O.score)??0),source:String((O==null?void 0:O.source)??(O==null?void 0:O.file)??"rag")})).filter(O=>O.text.length>0)}catch{return[]}}async function ty(i,e=2500){const t=new AbortController,n=setTimeout(()=>t.abort(),e);try{return(await fetch(i,{method:"GET",signal:t.signal})).status<500}catch{return!1}finally{clearTimeout(n)}}async function iy(i,e){const t=i.getReader(),n=new TextDecoder;let r="";try{for(;;){const{done:s,value:o}=await t.read();if(s)break;r+=n.decode(o,{stream:!0});let a=r.indexOf(`
389
+ `);for(;a>=0;){const l=r.slice(0,a).trim();r=r.slice(a+1),l&&e(l),a=r.indexOf(`
390
+ `)}}r.trim()&&e(r.trim())}finally{t.releaseLock()}}async function Kc(i){try{return(await i.text()).slice(0,200)}catch{return""}}let In=null;async function ny(){return In||(In=(async()=>{try{const i=await fetch("/__dev/api/mcp/tools");return i.ok?(await i.json()).tools||[]:[]}catch{return[]}finally{In=null}})(),In)}async function It(i,e={}){try{return await(await fetch("/__dev/api/mcp/call",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:i,arguments:e})})).json()}catch(t){return{ok:!1,error:String(t)}}}function ry(i){return i.length?["You have access to these project tools. To call one, emit a fenced block:","","```tool_call",'{"name": "tool_name", "arguments": {"arg": "value"}}',"```","","After a call, wait for the `tool_result` block before continuing. Never fabricate results.","","Available tools:",...i.map(t=>{const n=t.schema.required||[],r=Object.entries(t.schema.properties||{}).map(([s,o])=>`${s}:${o.type||"any"}${n.includes(s)?"":"?"}`).join(", ");return`- ${t.name}(${r}) — ${t.description}`})].join(`
391
+ `):""}function Jc(i,e){const t=[],n=/```tool_call\s*\n([\s\S]*?)(?:```|$)/g;let r;for(;(r=n.exec(i))!==null;){const a=sy(r[1].trim());a&&typeof a.name=="string"&&t.push({name:a.name,arguments:a.arguments||a.args||{},raw:r[0]}),r[0].length===0&&n.lastIndex++}if(t.length||!e||e.size===0)return t;const s=/^[ \t]*(?:(?:call|tool_call)\s*:\s*)?([a-zA-Z_][\w]*)\s*\(([\s\S]*?)\)\s*$/gm;let o;for(;(o=s.exec(i))!==null;){const a=o[1];if(!e.has(a))continue;const l=ay(o[2]);t.push({name:a,arguments:l,raw:o[0]})}return t}function sy(i){try{return JSON.parse(i)}catch{}const e=oy(i);try{return JSON.parse(e)}catch{}const t=e.replace(/,(\s*[}\]])/g,"$1");try{return JSON.parse(t)}catch{return null}}function oy(i){let e="",t=!1,n=!1;for(let r=0;r<i.length;r++){const s=i[r];if(n){e+=s,n=!1;continue}if(s==="\\"){e+=s,n=!0;continue}if(s==='"'){t=!t,e+=s;continue}if(t){if(s===`
392
+ `){e+="\\n";continue}if(s==="\r"){e+="\\r";continue}if(s===" "){e+="\\t";continue}}e+=s}return e}function ay(i){const e={},t=i.trim();if(!t)return e;let n=0;for(;n<t.length;){for(;n<t.length&&/[\s,]/.test(t[n]);)n++;if(n>=t.length)break;const r=n;for(;n<t.length&&/[\w]/.test(t[n]);)n++;const s=t.slice(r,n);for(;n<t.length&&/\s/.test(t[n]);)n++;if(t[n]!=="=")break;for(n++;n<t.length&&/\s/.test(t[n]);)n++;let o;if(t[n]==='"'||t[n]==="'"){const a=t[n++];let l="";for(;n<t.length&&t[n]!==a;)if(t[n]==="\\"&&n+1<t.length){const O=t[n+1];l+=O==="n"?`
393
+ `:O==="t"?" ":O,n+=2}else l+=t[n++];n++,o=l}else{const a=n;for(;n<t.length&&!/[,]/.test(t[n]);)n++;const l=t.slice(a,n).trim();l==="true"?o=!0:l==="false"?o=!1:l==="null"?o=null:/^-?\d+$/.test(l)?o=parseInt(l,10):/^-?\d*\.\d+$/.test(l)?o=parseFloat(l):o=l}s&&(e[s]=o)}return e}const ly='\nYou are working inside a Tina4 Python project (https://tina4.com). Follow these conventions — the framework already solves most common needs; never reinvent.\n\nWhen unsure about Tina4 specifics (filter syntax, engine-specific SQL, a module\'s API), call `docs_search(query)` against the shipped framework docs BEFORE guessing. Use `docs_list` to see what\'s available, `docs_section(file, heading)` for a full topic deep-dive.\n\nPLANS — you are always executing a plan (or about to create one).\n- The project has a plan/ folder. Each plan is a markdown file with a title, goal, and checkbox step list. Exactly one plan is active at a time (recorded in plan/.current). The active plan is injected into your system prompt EVERY turn — treat it as your standing orders.\n- User says "create a plan for X" → call `plan_create(title="Implement X", goal="...", steps=["Step 1...", "Step 2..."])`. Respond with one line: "Plan created in plan/<slug>.md."\n- User says "implement the contact form plan" or "let\'s work on the contact form" → call `plan_switch_to("contact-form")` (or list with `plan_list` to find the filename), then start executing the steps. Respond with "Implementing contact form plan — step 1: <first step text>."\n- When you FINISH a step, call `plan_complete_step(index)` in the SAME turn before moving on. Don\'t batch ticks for the end — a partial session should still leave correct progress state.\n- User request falls outside the current plan? Two options: `plan_add_step("...")` if it\'s a natural extension, or ask "That\'s not in the current plan — add it or switch plans?" Don\'t silently scope-creep.\n- Discovered a gotcha or made a decision worth remembering? `plan_note("Frond doesn\'t support e(\'js\') — use replace filter instead.")` — it gets timestamped into the plan\'s Notes section.\n- When all steps are done, confirm with the user and `plan_archive()` — moves the plan to plan/done/ and clears the active pointer.\n\nKNOW THIS PROJECT — there\'s a persistent index of every source file at .tina4/project_index.json with symbols, routes, imports, and summaries. It auto-refreshes on mtime. Use it like a colleague who already knows the codebase:\n- `index_overview()` — answer \'what is this project?\' in one call (files by language, route count, recent changes)\n- `index_search(query)` — \'where is the User model defined?\', \'which file handles /api/login?\' Returns ranked hits BEFORE grepping or file_list.\n- `index_file(path)` — shape of a single file (symbols/routes/imports) without reading its contents\n- For first-time orientation on an unfamiliar repo, call `index_overview` then drill with `index_search`. Skip this only when you already know the exact path.\n\nPROJECT LAYOUT\n- app.py: entry (orm_bind, Frond filters, then run()). Never `python app.py` directly — always `tina4 serve`.\n- src/routes/: one resource per file, auto-discovered.\n- src/orm/: one ORM model per file, filename == class name.\n- src/app/: shared helpers, services, middleware classes.\n- src/templates/: Twig/Jinja2. Every page extends base.twig.\n- src/scss/: auto-compiles to src/public/css/.\n- migrations/: NNNNNN_description.sql, run with `tina4 migrate`.\n\nROUTES\n```py\nfrom tina4_python.core.router import get, post, put, delete, noauth, secured, template\nfrom tina4_python.swagger import description, tags\n\n@noauth() # OR @secured() for GET\n@description("Short summary")\n@tags(["users"])\n@post("/api/users") # route decorator MUST be innermost\nasync def create_user(request, response):\n data = request.body # already-parsed dict for JSON\n return response({"id": 1}, 201) # always response(), NEVER response.json()\n```\n- GET public by default; POST/PUT/PATCH/DELETE require Authorization: Bearer token.\n- Path params: `{id}`, `{id:int}`, `{price:float}`, `{rest:path}`.\n- `@template("page.twig")` below the route decorator auto-renders a dict return.\n- Import noauth/secured from `tina4_python.core.router` — NOT from swagger.\n\nREQUEST / RESPONSE\n- `request.body` (dict), `request.params` (query), `request.headers` (lowercase), `request.files` (multipart, `content` is raw bytes), `request.session`, `request.cookies`.\n- `response({...})` JSON, `response("<html>")` HTML, `response("msg", 404)` status, `response.redirect("/login")`, `response.render("page.twig", data)`, `response.stream(async_gen)` for SSE.\n\nDATABASE\n```py\nfrom tina4_python.database import Database\ndb = Database("sqlite:///app.db") # relative\ndb = Database("postgresql://host:5432/db", "user", "pw")\nresult = db.fetch("SELECT * FROM u WHERE age > ?", [18])\nfor row in result.records: # DatabaseResult — NOT a list\n row["name"] # dict access, NOT row.name\nrow = db.fetch_one("SELECT * FROM u WHERE id = ?", [1]) # plain dict | None\ndb.insert("users", {"name": "A"})\ndb.update("users", {"id": 1, "name": "B"})\ndb.delete("users", {"id": 1})\ndb.start_transaction(); db.commit(); db.rollback() # NEVER execute("COMMIT")\n```\n\nORM\n```py\n# src/orm/User.py — one class per file\nfrom tina4_python.orm import ORM, IntegerField, StringField, ForeignKeyField\nclass User(ORM):\n id = IntegerField(primary_key=True, auto_increment=True)\n name = StringField()\n```\n`User.find(1)`, `User.find_or_fail(1)`, `User.all()`, `User.where("age>?",[18])`, `User.create({...})`, `user.save()`, `user.delete()`, `user.to_dict()`. Relationships: `ForeignKeyField(to=Author, related_name="posts")` auto-wires both sides.\n\nMIGRATIONS (MANDATORY FOR ALL SCHEMA CHANGES)\n- `tina4 generate migration "create users table"` → `migrations/000001_create_users_table.sql`.\n- Never run raw DDL outside a migration. Never modify a migration that\'s already been applied — write a new one.\n- SQLite: `INTEGER PRIMARY KEY AUTOINCREMENT`. PostgreSQL: `SERIAL`. MySQL: `AUTO_INCREMENT`. MSSQL: `IDENTITY(1,1)`. Firebird: generators, no `IF NOT EXISTS`, `VARCHAR` not `TEXT`, `DOUBLE PRECISION` not `REAL`.\n\nTEMPLATES (Frond — Jinja2/Twig)\n- Always `{% extends "base.twig" %}`. Partials in `src/templates/partials/`.\n- `{% elif %}` NOT `{% elseif %}`. `{{ x|raw }}` or `{{ x|safe }}` for unescaped. `{{ "hi " ~ name }}` for string concat, NOT `+`. `{{ "%.2f"|format(x) }}` for number format. Ternary: `{{ a if cond else b }}`. Default: `{{ x|default(\'\') }}`. JS-escape: `{{ x|replace("\'","\\\\\'") }}` — there is NO `|e(\'js\')`.\n- Forms must include `{{ form_token() }}` and `placeholder` on every input. Never inline-style — put it in `src/scss/`.\n- Register filters/globals in app.py: `Frond.add_filter("money", fn)`, `Frond.add_global("APP_NAME","x")`.\n\nCUSTOM MCP TOOLS — extending the AI\'s toolbox\n- Any function decorated with `@mcp_tool` shows up in the dev-admin chat\'s tool list automatically (localhost + TINA4_DEBUG=true).\n```py\n# src/app/services/invoicing.py\nfrom tina4_python.mcp import mcp_tool\n\n@mcp_tool("lookup_invoice", description="Find invoice by number")\ndef lookup_invoice(invoice_no: str) -> dict:\n # db is bound in app.py via orm_bind\n return db.fetch_one("SELECT * FROM invoices WHERE invoice_no = ?", [invoice_no])\n```\n- Imported during tina4\'s src/ auto-discovery. No manual registration; no route needed. Appears in the chat\'s tool registry within 10 seconds of the process seeing it.\n- Signature is the schema the model sees — type annotations matter. Keep args simple (str/int/float/bool/list/dict).\n\nBUILT-INS — never reinvent these\n- Background jobs: `Queue(topic="x").push({...})` + `for job in queue.consume():` in a worker. Any op >1s must use a queue.\n- External HTTP: `Api("https://x", auth_header="Bearer ...")`. Returns `{http_code, body, headers, error}`.\n- JWT/auth: `get_token({"user_id":1})`, `valid_token(t)`, `Auth.hash_password`, `Auth.check_password`.\n- Sessions: `request.session.get/set/flash/destroy`.\n- Events: `@on("user.created")`, `emit("user.created", payload)`, async via `emit_async`.\n- Periodic tasks: `background(fn, interval=2.0)` — never `threading.Thread`.\n- CRUD UI: `CRUD.to_crud(request, {"sql":"SELECT ...","title":"...","primary_key":"id"})`.\n- Cache: `@cached(True, max_age=120)` on a route, or `@middleware(ResponseCache)`.\n- i18n: `I18n(locale_dir="src/locales").t("key", name="Alice")`.\n- SOAP/WSDL: subclass `WSDL`, decorate methods with `@wsdl_operation`.\n- GraphQL: `GraphQL().schema.from_orm(Model)` then `register_route("/graphql")`.\n- Swagger: `@description`, `@tags`, `@example` — appears at `/swagger`.\n\nCOMMON GOTCHAS\n- `from tina4_python.database import Database` (NOT `from tina4_python`).\n- `from tina4_python.core.router import noauth` (NOT from `tina4_python.swagger` — that version only tags docs).\n- `request.body` is already a dict for JSON — don\'t `json.loads` it.\n- `db.fetch(...)` returns a `DatabaseResult`; use `.records` for the list. `db.fetch_one(...)` returns a plain dict.\n- Dict access everywhere: `row["name"]`, never `row.name`.\n- `@noauth` / `@secured` / `@description` go ABOVE the `@get`/`@post` decorator (route decorator is innermost).\n\nDEV MODE (TINA4_DEBUG=true)\n- Rust `tina4` CLI watches src/ and POSTs /__dev/api/reload; browser auto-refreshes via WS at /__dev_reload.\n- Rich error overlay on uncaught exceptions. SCSS auto-compiles.\n',Oy={python:`
394
+ THIS PROJECT IS TINA4 PYTHON — the generic Tina4 reference below uses
395
+ Python-native examples directly. No translation needed.
396
+ `,php:`
397
+ THIS PROJECT IS TINA4 PHP. Follow these idioms — they override any
398
+ Python-flavored examples in the generic Tina4 reference below.
399
+
400
+ ROUTES files in src/routes/, auto-discovered. One resource per file.
401
+ \`\`\`php
402
+ // src/routes/hello.php
403
+ <?php
404
+ use Tina4\\Router;
405
+ use Tina4\\Request;
406
+ use Tina4\\Response;
407
+
408
+ Router::get('/hello', function (Request $request, Response $response) {
409
+ return $response->json(['message' => 'Hello, world']);
410
+ });
411
+
412
+ Router::post('/hello', function (Request $request, Response $response) {
413
+ $body = $request->body; // already-parsed array for JSON
414
+ return $response->json(['echo' => $body], 201);
415
+ })->noAuth();
416
+ \`\`\`
417
+
418
+ CRITICAL — DON'T DO THESE:
419
+ - Don't write \`$app->get(...)\` — that's NOT a Tina4 PHP API. Use \`Router::get(...)\`.
420
+ - Don't \`new App()\` inside a route file. \`index.php\` already constructs the App and dispatches; route files just register routes at top level.
421
+ - Don't return a bare string. Use \`$response->json([...])\`, \`$response->text($str)\`, \`$response->html($html)\`.
422
+
423
+ ORM — extend \\Tina4\\ORM, snake_case fields:
424
+ \`\`\`php
425
+ // src/orm/User.php
426
+ <?php
427
+ class User extends \\Tina4\\ORM {
428
+ public $tableName = 'users';
429
+ public $primaryKey = 'id';
430
+ }
431
+ // usage: $u = new User(); $u->load('SELECT * FROM users WHERE email = ?', [$email]);
432
+ \`\`\`
433
+
434
+ DATABASE: \`\\Tina4\\Database\\Database::create($url, username: ..., password: ...)\`.
435
+
436
+ AUTH (expires_in is MINUTES since 3.11.27):
437
+ - \`\\Tina4\\Auth::getToken($payload, null, 60)\` — 60 minutes.
438
+ - \`\\Tina4\\Auth::checkPassword($plain, $hashed)\` — args are (plaintext, hash) NOT (hash, plaintext).
439
+
440
+ TEMPLATES (Frond — Twig-compatible):
441
+ - \`return $response->render('page.twig', ['title' => 'X']);\`
442
+ - Filter: \`{{ value | money }}\` — register in app.php with \`Frond::addFilter('money', fn($v) => ...);\`.
443
+
444
+ COMMON GOTCHAS:
445
+ - \`$request->body\` is already an associative array for JSON. Don't json_decode again.
446
+ - \`$response->json($data)\` returns COMPACT JSON since 3.11.25 (was pretty-printed; broke chat streaming).
447
+ - All decorators in PHP are method chains: \`Router::get(...)->noAuth()->cache(60)\`.
448
+ - Migration files in \`migrations/<NNNNNN>_<desc>.sql\` at PROJECT ROOT (not under src/).
449
+ `,ruby:`
450
+ THIS PROJECT IS TINA4 RUBY. Follow these idioms — they override any
451
+ Python-flavored examples in the generic Tina4 reference below.
452
+
453
+ ROUTES — registered via Tina4::Router. One resource per file under routes/.
454
+ \`\`\`ruby
455
+ # routes/hello.rb
456
+ Tina4::Router.get '/hello' do |request, response|
457
+ response.json({ message: 'Hello, world' })
458
+ end
459
+
460
+ Tina4::Router.post '/hello' do |request, response|
461
+ body = request.body # already-parsed Hash for JSON
462
+ response.json({ echo: body }, 201)
463
+ end
464
+ \`\`\`
465
+
466
+ ORM — class < Tina4::ORM, DSL field declarations:
467
+ \`\`\`ruby
468
+ class User < Tina4::ORM
469
+ integer_field :id, primary_key: true, auto_increment: true
470
+ string_field :email
471
+ end
472
+ # usage: u = User.find(5); u = User.where('email = ?', [email])
473
+ \`\`\`
474
+
475
+ DATABASE: \`Tina4::Database.new('postgres://localhost:5432/mydb', username:, password:)\`.
476
+
477
+ AUTH (expires_in is MINUTES):
478
+ - \`Tina4::Auth.get_token(payload, expires_in: 60)\`
479
+ - \`Tina4::Auth.check_password(plain, hashed)\`
480
+
481
+ PERIODIC TASKS (since 3.11.17): \`Tina4.background(interval: 2.0) { do_work }\` — never raw threads.
482
+
483
+ COMMON GOTCHAS:
484
+ - Path params use \`{id}\` not \`:id\` — matches Python/PHP.
485
+ - Method idioms: \`session.has?(:key)\`, \`request.cookies\`, \`response.json(data, 200)\`.
486
+ - Templates use ERB or Frond (Twig-compatible). \`Tina4::Template.render('page.twig', { title: 'X' })\`.
487
+ `,nodejs:`
488
+ THIS PROJECT IS TINA4 NODE.JS. Follow these idioms — they override any
489
+ Python-flavored examples in the generic Tina4 reference below.
490
+
491
+ ROUTES — file-based. Filename = HTTP method, directory path = URL.
492
+ \`\`\`typescript
493
+ // src/routes/hello/get.ts → GET /hello
494
+ // src/routes/hello/post.ts → POST /hello
495
+ // src/routes/users/[id]/get.ts → GET /users/{id}
496
+
497
+ import type { Tina4Request, Tina4Response } from '@tina4/core';
498
+
499
+ export default async function (req: Tina4Request, res: Tina4Response) {
500
+ return res.json({ message: 'Hello, world' });
501
+ }
502
+
503
+ export const meta = { summary: 'Say hello', tags: ['greetings'] };
504
+ \`\`\`
505
+
506
+ ORM — convention-based static fields, NO decorators:
507
+ \`\`\`typescript
508
+ // src/models/User.ts
509
+ export default class User {
510
+ static tableName = 'users';
511
+ static fields = {
512
+ id: { type: 'integer' as const, primaryKey: true, autoIncrement: true },
513
+ email: { type: 'string' as const, required: true },
514
+ };
515
+ }
516
+ // usage: const u = await User.findById(5);
517
+ \`\`\`
518
+
519
+ DATABASE: \`await initDatabase({ url: 'postgres://localhost:5432/mydb' })\`.
520
+
521
+ AUTH (expires_in is MINUTES):
522
+ - \`getToken(payload, secret?, 60)\` — 60 minutes.
523
+ - \`checkPassword(plain, hashed)\`
524
+
525
+ PERIODIC TASKS (since 3.11.17): \`background(callback, 2.0)\` — clears on SIGTERM/SIGINT.
526
+
527
+ COMMON GOTCHAS:
528
+ - Imports use .js extension even though source is .ts: \`import { x } from './foo.js'\`.
529
+ - Everything is ESM (\`"type": "module"\`). No \`require()\`.
530
+ - Native node:http — no Express, no Fastify. Don't pull them in.
531
+ - Path params: \`[id]\` directories → \`{id}\` URL pattern.
532
+ `};function cy(){var t;const i=document.getElementById("app"),e=(t=i==null?void 0:i.dataset.framework)==null?void 0:t.toLowerCase();return e==="php"||e==="ruby"||e==="nodejs"||e==="python"?e:"python"}function dy(i){return Oy[i]}let aa=[],ed=[];(()=>{let i="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e<i.length;e++)(e%2?ed:aa).push(t=t+i[e])})();function hy(i){if(i<768)return!1;for(let e=0,t=aa.length;;){let n=e+t>>1;if(i<aa[n])t=n;else if(i>=ed[n])e=n+1;else return!0;if(e==t)return!1}}function td(i){return i>=127462&&i<=127487}const id=8205;function fy(i,e,t=!0,n=!0){return(t?nd:uy)(i,e,n)}function nd(i,e,t){if(e==i.length)return e;e&&rd(i.charCodeAt(e))&&sd(i.charCodeAt(e-1))&&e--;let n=la(i,e);for(e+=od(n);e<i.length;){let r=la(i,e);if(n==id||r==id||t&&hy(r))e+=od(r),n=r;else if(td(r)){let s=0,o=e-2;for(;o>=0&&td(la(i,o));)s++,o-=2;if(s%2==0)break;e+=2}else break}return e}function uy(i,e,t){for(;e>0;){let n=nd(i,e-2,t);if(n<e)return n;e--}return 0}function la(i,e){let t=i.charCodeAt(e);if(!sd(t)||e+1==i.length)return t;let n=i.charCodeAt(e+1);return rd(n)?(t-55296<<10)+(n-56320)+65536:t}function rd(i){return i>=56320&&i<57344}function sd(i){return i>=55296&&i<56320}function od(i){return i<65536?1:2}class ie{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){[e,t]=cn(this,e,t);let r=[];return this.decompose(0,e,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(t,this.length,r,1),St.from(r,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=cn(this,e,t);let n=[];return this.decompose(e,t,n,0),St.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),r=new Dn(this),s=new Dn(e);for(let o=t,a=t;;){if(r.next(o),s.next(o),o=0,r.lineBreak!=s.lineBreak||r.done!=s.done||r.value!=s.value)return!1;if(a+=r.value.length,r.done||a>=n)return!0}}iter(e=1){return new Dn(this,e)}iterRange(e,t=this.length){return new ld(this,e,t)}iterLines(e,t){let n;if(e==null)n=this.iter();else{t==null&&(t=this.lines+1);let r=this.line(e).from;n=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new Od(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?ie.empty:e.length<=32?new me(e):St.from(me.split(e,[]))}}class me extends ie{constructor(e,t=py(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,r){for(let s=0;;s++){let o=this.text[s],a=r+o.length;if((t?n:a)>=e)return new my(r,a,n,o);r=a+1,n++}}decompose(e,t,n,r){let s=e<=0&&t>=this.length?this:new me(ad(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(r&1){let o=n.pop(),a=rs(s.text,o.text.slice(),0,s.length);if(a.length<=32)n.push(new me(a,o.length+s.length));else{let l=a.length>>1;n.push(new me(a.slice(0,l)),new me(a.slice(l)))}}else n.push(s)}replace(e,t,n){if(!(n instanceof me))return super.replace(e,t,n);[e,t]=cn(this,e,t);let r=rs(this.text,rs(n.text,ad(this.text,0,e)),t),s=this.length+n.length-(t-e);return r.length<=32?new me(r,s):St.from(me.split(r,[]),s)}sliceString(e,t=this.length,n=`
533
+ `){[e,t]=cn(this,e,t);let r="";for(let s=0,o=0;s<=t&&o<this.text.length;o++){let a=this.text[o],l=s+a.length;s>e&&o&&(r+=n),e<l&&t>s&&(r+=a.slice(Math.max(0,e-s),t-s)),s=l+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],r=-1;for(let s of e)n.push(s),r+=s.length+1,n.length==32&&(t.push(new me(n,r)),n=[],r=-1);return r>-1&&t.push(new me(n,r)),t}}class St extends ie{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let n of e)this.lines+=n.lines}lineInner(e,t,n,r){for(let s=0;;s++){let o=this.children[s],a=r+o.length,l=n+o.lines-1;if((t?l:a)>=e)return o.lineInner(e,t,n,r);r=a+1,n=l+1}}decompose(e,t,n,r){for(let s=0,o=0;o<=t&&s<this.children.length;s++){let a=this.children[s],l=o+a.length;if(e<=l&&t>=o){let O=r&((o<=e?1:0)|(l>=t?2:0));o>=e&&l<=t&&!O?n.push(a):a.decompose(e-o,t-o,n,O)}o=l+1}}replace(e,t,n){if([e,t]=cn(this,e,t),n.lines<this.lines)for(let r=0,s=0;r<this.children.length;r++){let o=this.children[r],a=s+o.length;if(e>=s&&t<=a){let l=o.replace(e-s,t-s,n),O=this.lines-o.lines+l.lines;if(l.lines<O>>4&&l.lines>O>>6){let c=this.children.slice();return c[r]=l,new St(c,this.length-(t-e)+n.length)}return super.replace(s,a,l)}s=a+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n=`
534
+ `){[e,t]=cn(this,e,t);let r="";for(let s=0,o=0;s<this.children.length&&o<=t;s++){let a=this.children[s],l=o+a.length;o>e&&s&&(r+=n),e<l&&t>o&&(r+=a.sliceString(e-o,t-o,n)),o=l+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof St))return 0;let n=0,[r,s,o,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,s+=t){if(r==o||s==a)return n;let l=this.children[r],O=e.children[s];if(l!=O)return n+l.scanIdentical(O,t);n+=l.length+1}}static from(e,t=e.reduce((n,r)=>n+r.length+1,-1)){let n=0;for(let f of e)n+=f.lines;if(n<32){let f=[];for(let p of e)p.flatten(f);return new me(f,t)}let r=Math.max(32,n>>5),s=r<<1,o=r>>1,a=[],l=0,O=-1,c=[];function d(f){let p;if(f.lines>s&&f instanceof St)for(let m of f.children)d(m);else f.lines>o&&(l>o||!l)?(h(),a.push(f)):f instanceof me&&l&&(p=c[c.length-1])instanceof me&&f.lines+p.lines<=32?(l+=f.lines,O+=f.length+1,c[c.length-1]=new me(p.text.concat(f.text),p.length+1+f.length)):(l+f.lines>r&&h(),l+=f.lines,O+=f.length+1,c.push(f))}function h(){l!=0&&(a.push(c.length==1?c[0]:St.from(c,O)),O=-1,l=c.length=0)}for(let f of e)d(f);return h(),a.length==1?a[0]:new St(a,t)}}ie.empty=new me([""],0);function py(i){let e=-1;for(let t of i)e+=t.length+1;return e}function rs(i,e,t=0,n=1e9){for(let r=0,s=0,o=!0;s<i.length&&r<=n;s++){let a=i[s],l=r+a.length;l>=t&&(l>n&&(a=a.slice(0,n-r)),r<t&&(a=a.slice(t-r)),o?(e[e.length-1]+=a,o=!1):e.push(a)),r=l+1}return e}function ad(i,e,t){return rs(i,[""],e,t)}class Dn{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof me?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],s=this.offsets[n],o=s>>1,a=r instanceof me?r.text.length:r.children.length;if(o==(t>0?a:0)){if(n==0)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((s&1)==(t>0?0:1)){if(this.offsets[n]+=t,e==0)return this.lineBreak=!0,this.value=`
535
+ `,this;e--}else if(r instanceof me){let l=r.text[o+(t<0?-1:0)];if(this.offsets[n]+=t,l.length>Math.max(0,e))return this.value=e==0?l:t>0?l.slice(e):l.slice(0,l.length-e),this;e-=l.length}else{let l=r.children[o+(t<0?-1:0)];e>l.length?(e-=l.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(l),this.offsets.push(t>0?1:(l instanceof me?l.text.length:l.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class ld{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new Dn(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=n?r:t<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class Od{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(ie.prototype[Symbol.iterator]=function(){return this.iter()},Dn.prototype[Symbol.iterator]=ld.prototype[Symbol.iterator]=Od.prototype[Symbol.iterator]=function(){return this});let my=class{constructor(e,t,n,r){this.from=e,this.to=t,this.number=n,this.text=r}get length(){return this.to-this.from}};function cn(i,e,t){return e=Math.max(0,Math.min(i.length,e)),[e,Math.max(e,Math.min(i.length,t))]}function we(i,e,t=!0,n=!0){return fy(i,e,t,n)}function $y(i){return i>=56320&&i<57344}function gy(i){return i>=55296&&i<56320}function De(i,e){let t=i.charCodeAt(e);if(!gy(t)||e+1==i.length)return t;let n=i.charCodeAt(e+1);return $y(n)?(t-55296<<10)+(n-56320)+65536:t}function Oa(i){return i<=65535?String.fromCharCode(i):(i-=65536,String.fromCharCode((i>>10)+55296,(i&1023)+56320))}function wt(i){return i<65536?1:2}const ca=/\r\n?|\n/;var _e=(function(i){return i[i.Simple=0]="Simple",i[i.TrackDel=1]="TrackDel",i[i.TrackBefore=2]="TrackBefore",i[i.TrackAfter=3]="TrackAfter",i})(_e||(_e={}));class Pt{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t+1];e+=n<0?this.sections[t]:n}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,n=0,r=0;t<this.sections.length;){let s=this.sections[t++],o=this.sections[t++];o<0?(e(n,r,s),r+=s):r+=o,n+=s}}iterChangedRanges(e,t=!1){da(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let n=this.sections[t++],r=this.sections[t++];r<0?e.push(n,r):e.push(r,n)}return new Pt(e)}composeDesc(e){return this.empty?e:e.empty?this:cd(this,e)}mapDesc(e,t=!1){return e.empty?this:ha(this,e,t)}mapPos(e,t=-1,n=_e.Simple){let r=0,s=0;for(let o=0;o<this.sections.length;){let a=this.sections[o++],l=this.sections[o++],O=r+a;if(l<0){if(O>e)return s+(e-r);s+=a}else{if(n!=_e.Simple&&O>=e&&(n==_e.TrackDel&&r<e&&O>e||n==_e.TrackBefore&&r<e||n==_e.TrackAfter&&O>e))return null;if(O>e||O==e&&t<0&&!a)return e==r||t<0?s:s+l;s+=l}r=O}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return s}touchesRange(e,t=e){for(let n=0,r=0;n<this.sections.length&&r<=t;){let s=this.sections[n++],o=this.sections[n++],a=r+s;if(o>=0&&r<=t&&a>=e)return r<e&&a>t?"cover":!0;r=a}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let n=this.sections[t++],r=this.sections[t++];e+=(e?" ":"")+n+(r>=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Pt(e)}static create(e){return new Pt(e)}}class ye extends Pt{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return da(this,(t,n,r,s,o)=>e=e.replace(r,r+(n-t),o),!1),e}mapDesc(e,t=!1){return ha(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let r=0,s=0;r<t.length;r+=2){let o=t[r],a=t[r+1];if(a>=0){t[r]=a,t[r+1]=o;let l=r>>1;for(;n.length<l;)n.push(ie.empty);n.push(o?e.slice(s,s+o):ie.empty)}s+=o}return new ye(t,n)}compose(e){return this.empty?e:e.empty?this:cd(this,e,!0)}map(e,t=!1){return e.empty?this:ha(this,e,t,!0)}iterChanges(e,t=!1){da(this,e,t)}get desc(){return Pt.create(this.sections)}filter(e){let t=[],n=[],r=[],s=new Bn(this);e:for(let o=0,a=0;;){let l=o==e.length?1e9:e[o++];for(;a<l||a==l&&s.len==0;){if(s.done)break e;let c=Math.min(s.len,l-a);Re(r,c,-1);let d=s.ins==-1?-1:s.off==0?s.ins:0;Re(t,c,d),d>0&&mi(n,t,s.text),s.forward(c),a+=c}let O=e[o++];for(;a<O;){if(s.done)break e;let c=Math.min(s.len,O-a);Re(t,c,-1),Re(r,c,s.ins==-1?-1:s.off==0?s.ins:0),s.forward(c),a+=c}}return{changes:new ye(t,n),filtered:Pt.create(r)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t],r=this.sections[t+1];r<0?e.push(n):r==0?e.push([n]):e.push([n].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,n){let r=[],s=[],o=0,a=null;function l(c=!1){if(!c&&!r.length)return;o<t&&Re(r,t-o,-1);let d=new ye(r,s);a=a?a.compose(d.map(a)):d,r=[],s=[],o=0}function O(c){if(Array.isArray(c))for(let d of c)O(d);else if(c instanceof ye){if(c.length!=t)throw new RangeError(`Mismatched change set length (got ${c.length}, expected ${t})`);l(),a=a?a.compose(c.map(a)):c}else{let{from:d,to:h=d,insert:f}=c;if(d>h||d<0||h>t)throw new RangeError(`Invalid change range ${d} to ${h} (in doc of length ${t})`);let p=f?typeof f=="string"?ie.of(f.split(n||ca)):f:ie.empty,m=p.length;if(d==h&&m==0)return;d<o&&l(),d>o&&Re(r,d-o,-1),Re(r,h-d,m),mi(s,r,p),o=h}}return O(e),l(!a),a}static empty(e){return new ye(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let r=0;r<e.length;r++){let s=e[r];if(typeof s=="number")t.push(s,-1);else{if(!Array.isArray(s)||typeof s[0]!="number"||s.some((o,a)=>a&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(s.length==1)t.push(s[0],0);else{for(;n.length<r;)n.push(ie.empty);n[r]=ie.of(s.slice(1)),t.push(s[0],n[r].length)}}}return new ye(t,n)}static createSet(e,t){return new ye(e,t)}}function Re(i,e,t,n=!1){if(e==0&&t<=0)return;let r=i.length-2;r>=0&&t<=0&&t==i[r+1]?i[r]+=e:r>=0&&e==0&&i[r]==0?i[r+1]+=t:n?(i[r]+=e,i[r+1]+=t):i.push(e,t)}function mi(i,e,t){if(t.length==0)return;let n=e.length-2>>1;if(n<i.length)i[i.length-1]=i[i.length-1].append(t);else{for(;i.length<n;)i.push(ie.empty);i.push(t)}}function da(i,e,t){let n=i.inserted;for(let r=0,s=0,o=0;o<i.sections.length;){let a=i.sections[o++],l=i.sections[o++];if(l<0)r+=a,s+=a;else{let O=r,c=s,d=ie.empty;for(;O+=a,c+=l,l&&n&&(d=d.append(n[o-2>>1])),!(t||o==i.sections.length||i.sections[o+1]<0);)a=i.sections[o++],l=i.sections[o++];e(r,O,s,c,d),r=O,s=c}}}function ha(i,e,t,n=!1){let r=[],s=n?[]:null,o=new Bn(i),a=new Bn(e);for(let l=-1;;){if(o.done&&a.len||a.done&&o.len)throw new Error("Mismatched change set lengths");if(o.ins==-1&&a.ins==-1){let O=Math.min(o.len,a.len);Re(r,O,-1),o.forward(O),a.forward(O)}else if(a.ins>=0&&(o.ins<0||l==o.i||o.off==0&&(a.len<o.len||a.len==o.len&&!t))){let O=a.len;for(Re(r,a.ins,-1);O;){let c=Math.min(o.len,O);o.ins>=0&&l<o.i&&o.len<=c&&(Re(r,0,o.ins),s&&mi(s,r,o.text),l=o.i),o.forward(c),O-=c}a.next()}else if(o.ins>=0){let O=0,c=o.len;for(;c;)if(a.ins==-1){let d=Math.min(c,a.len);O+=d,c-=d,a.forward(d)}else if(a.ins==0&&a.len<c)c-=a.len,a.next();else break;Re(r,O,l<o.i?o.ins:0),s&&l<o.i&&mi(s,r,o.text),l=o.i,o.forward(o.len-c)}else{if(o.done&&a.done)return s?ye.createSet(r,s):Pt.create(r);throw new Error("Mismatched change set lengths")}}}function cd(i,e,t=!1){let n=[],r=t?[]:null,s=new Bn(i),o=new Bn(e);for(let a=!1;;){if(s.done&&o.done)return r?ye.createSet(n,r):Pt.create(n);if(s.ins==0)Re(n,s.len,0,a),s.next();else if(o.len==0&&!o.done)Re(n,0,o.ins,a),r&&mi(r,n,o.text),o.next();else{if(s.done||o.done)throw new Error("Mismatched change set lengths");{let l=Math.min(s.len2,o.len),O=n.length;if(s.ins==-1){let c=o.ins==-1?-1:o.off?0:o.ins;Re(n,l,c,a),r&&c&&mi(r,n,o.text)}else o.ins==-1?(Re(n,s.off?0:s.len,l,a),r&&mi(r,n,s.textBit(l))):(Re(n,s.off?0:s.len,o.off?0:o.ins,a),r&&!o.off&&mi(r,n,o.text));a=(s.ins>l||o.ins>=0&&o.len>l)&&(a||n.length>O),s.forward2(l),o.forward(l)}}}}class Bn{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?ie.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?ie.empty:t[n].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class Wi{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,t=-1){let n,r;return this.empty?n=r=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),r=e.mapPos(this.to,-1)),n==this.from&&r==this.to?this:new Wi(n,r,this.flags)}extend(e,t=e,n=0){if(e<=this.anchor&&t>=this.anchor)return b.range(e,t,void 0,void 0,n);let r=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return b.range(this.anchor,r,void 0,void 0,n)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&this.goalColumn==e.goalColumn&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return b.range(e.anchor,e.head)}static create(e,t,n){return new Wi(e,t,n)}}class b{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:b.create(this.ranges.map(n=>n.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let n=0;n<this.ranges.length;n++)if(!this.ranges[n].eq(e.ranges[n],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new b([this.main],0)}addRange(e,t=!0){return b.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let n=this.ranges.slice();return n[t]=e,b.create(n,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new b(e.ranges.map(t=>Wi.fromJSON(t)),e.main)}static single(e,t=e){return new b([b.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let n=0,r=0;r<e.length;r++){let s=e[r];if(s.empty?s.from<=n:s.from<n)return b.normalized(e.slice(),t);n=s.to}return new b(e,t)}static cursor(e,t=0,n,r){return Wi.create(e,e,(t==0?0:t<0?8:16)|(n==null?7:Math.min(6,n))|(r??16777215)<<6)}static range(e,t,n,r,s){let o=(n??16777215)<<6|(r==null?7:Math.min(6,r));return!s&&e!=t&&(s=t<e?1:-1),t<e?Wi.create(t,e,48|o):Wi.create(e,t,(s?s<0?8:16:0)|o)}static normalized(e,t=0){let n=e[t];e.sort((r,s)=>r.from-s.from),t=e.indexOf(n);for(let r=1;r<e.length;r++){let s=e[r],o=e[r-1];if(s.empty?s.from<=o.to:s.from<o.to){let a=o.from,l=Math.max(s.to,o.to);r<=t&&t--,e.splice(--r,2,s.anchor>s.head?b.range(l,a):b.range(a,l))}}return new b(e,t)}}function dd(i,e){for(let t of i.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let fa=0;class Z{constructor(e,t,n,r,s){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=r,this.id=fa++,this.default=e([]),this.extensions=typeof s=="function"?s(this):s}get reader(){return this}static define(e={}){return new Z(e.combine||(t=>t),e.compareInput||((t,n)=>t===n),e.compare||(e.combine?(t,n)=>t===n:ua),!!e.static,e.enables)}of(e){return new ss([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new ss(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new ss(e,this,2,t)}from(e,t){return t||(t=n=>n),this.compute([e],n=>t(n.field(e)))}}function ua(i,e){return i==e||i.length==e.length&&i.every((t,n)=>t===e[n])}class ss{constructor(e,t,n,r){this.dependencies=e,this.facet=t,this.type=n,this.value=r,this.id=fa++}dynamicSlot(e){var t;let n=this.value,r=this.facet.compareInput,s=this.id,o=e[s]>>1,a=this.type==2,l=!1,O=!1,c=[];for(let d of this.dependencies)d=="doc"?l=!0:d=="selection"?O=!0:(((t=e[d.id])!==null&&t!==void 0?t:1)&1)==0&&c.push(e[d.id]);return{create(d){return d.values[o]=n(d),1},update(d,h){if(l&&h.docChanged||O&&(h.docChanged||h.selection)||pa(d,c)){let f=n(d);if(a?!hd(f,d.values[o],r):!r(f,d.values[o]))return d.values[o]=f,1}return 0},reconfigure:(d,h)=>{let f,p=h.config.address[s];if(p!=null){let m=Os(h,p);if(this.dependencies.every($=>$ instanceof Z?h.facet($)===d.facet($):$ instanceof Ce?h.field($,!1)==d.field($,!1):!0)||(a?hd(f=n(d),m,r):r(f=n(d),m)))return d.values[o]=m,0}else f=n(d);return d.values[o]=f,1}}}}function hd(i,e,t){if(i.length!=e.length)return!1;for(let n=0;n<i.length;n++)if(!t(i[n],e[n]))return!1;return!0}function pa(i,e){let t=!1;for(let n of e)Fn(i,n)&1&&(t=!0);return t}function Qy(i,e,t){let n=t.map(l=>i[l.id]),r=t.map(l=>l.type),s=n.filter(l=>!(l&1)),o=i[e.id]>>1;function a(l){let O=[];for(let c=0;c<n.length;c++){let d=Os(l,n[c]);if(r[c]==2)for(let h of d)O.push(h);else O.push(d)}return e.combine(O)}return{create(l){for(let O of n)Fn(l,O);return l.values[o]=a(l),1},update(l,O){if(!pa(l,s))return 0;let c=a(l);return e.compare(c,l.values[o])?0:(l.values[o]=c,1)},reconfigure(l,O){let c=pa(l,n),d=O.config.facets[e.id],h=O.facet(e);if(d&&!c&&ua(t,d))return l.values[o]=h,0;let f=a(l);return e.compare(f,h)?(l.values[o]=h,0):(l.values[o]=f,1)}}}const os=Z.define({static:!0});class Ce{constructor(e,t,n,r,s){this.id=e,this.createF=t,this.updateF=n,this.compareF=r,this.spec=s,this.provides=void 0}static define(e){let t=new Ce(fa++,e.create,e.update,e.compare||((n,r)=>n===r),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(os).find(n=>n.field==this);return((t==null?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:n=>(n.values[t]=this.create(n),1),update:(n,r)=>{let s=n.values[t],o=this.updateF(s,r);return this.compareF(s,o)?0:(n.values[t]=o,1)},reconfigure:(n,r)=>{let s=n.facet(os),o=r.facet(os),a;return(a=s.find(l=>l.field==this))&&a!=o.find(l=>l.field==this)?(n.values[t]=a.create(n),1):r.config.address[this.id]!=null?(n.values[t]=r.field(this),0):(n.values[t]=this.create(n),1)}}}init(e){return[this,os.of({field:this,create:e})]}get extension(){return this}}const Ai={lowest:4,low:3,default:2,high:1,highest:0};function Nn(i){return e=>new fd(e,i)}const Dt={highest:Nn(Ai.highest),high:Nn(Ai.high),default:Nn(Ai.default),low:Nn(Ai.low),lowest:Nn(Ai.lowest)};class fd{constructor(e,t){this.inner=e,this.prec=t}}class as{of(e){return new ma(this,e)}reconfigure(e){return as.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class ma{constructor(e,t){this.compartment=e,this.inner=t}}class ls{constructor(e,t,n,r,s,o){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=r,this.staticValues=s,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<n.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return t==null?e.default:this.staticValues[t>>1]}static resolve(e,t,n){let r=[],s=Object.create(null),o=new Map;for(let h of yy(e,t,o))h instanceof Ce?r.push(h):(s[h.facet.id]||(s[h.facet.id]=[])).push(h);let a=Object.create(null),l=[],O=[];for(let h of r)a[h.id]=O.length<<1,O.push(f=>h.slot(f));let c=n==null?void 0:n.config.facets;for(let h in s){let f=s[h],p=f[0].facet,m=c&&c[h]||[];if(f.every($=>$.type==0))if(a[p.id]=l.length<<1|1,ua(m,f))l.push(n.facet(p));else{let $=p.combine(f.map(g=>g.value));l.push(n&&p.compare($,n.facet(p))?n.facet(p):$)}else{for(let $ of f)$.type==0?(a[$.id]=l.length<<1|1,l.push($.value)):(a[$.id]=O.length<<1,O.push(g=>$.dynamicSlot(g)));a[p.id]=O.length<<1,O.push($=>Qy($,p,f))}}let d=O.map(h=>h(a));return new ls(e,o,d,a,l,s)}}function yy(i,e,t){let n=[[],[],[],[],[]],r=new Map;function s(o,a){let l=r.get(o);if(l!=null){if(l<=a)return;let O=n[l].indexOf(o);O>-1&&n[l].splice(O,1),o instanceof ma&&t.delete(o.compartment)}if(r.set(o,a),Array.isArray(o))for(let O of o)s(O,a);else if(o instanceof ma){if(t.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let O=e.get(o.compartment)||o.inner;t.set(o.compartment,O),s(O,a)}else if(o instanceof fd)s(o.inner,o.prec);else if(o instanceof Ce)n[a].push(o),o.provides&&s(o.provides,a);else if(o instanceof ss)n[a].push(o),o.facet.extensions&&s(o.facet.extensions,Ai.default);else{let O=o.extension;if(!O)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);s(O,a)}}return s(i,Ai.default),n.reduce((o,a)=>o.concat(a))}function Fn(i,e){if(e&1)return 2;let t=e>>1,n=i.status[t];if(n==4)throw new Error("Cyclic dependency between fields and/or facets");if(n&2)return n;i.status[t]=4;let r=i.computeSlot(i,i.config.dynamicSlots[t]);return i.status[t]=2|r}function Os(i,e){return e&1?i.config.staticValues[e>>1]:i.values[e>>1]}const ud=Z.define(),$a=Z.define({combine:i=>i.some(e=>e),static:!0}),pd=Z.define({combine:i=>i.length?i[0]:void 0,static:!0}),md=Z.define(),$d=Z.define(),gd=Z.define(),Qd=Z.define({combine:i=>i.length?i[0]:!1});class Bt{constructor(e,t){this.type=e,this.value=t}static define(){return new by}}class by{of(e){return new Bt(this,e)}}class Sy{constructor(e){this.map=e}of(e){return new F(this,e)}}class F{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new F(this.type,t)}is(e){return this.type==e}static define(e={}){return new Sy(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let r of e){let s=r.map(t);s&&n.push(s)}return n}}F.reconfigure=F.define(),F.appendConfig=F.define();class $e{constructor(e,t,n,r,s,o){this.startState=e,this.changes=t,this.selection=n,this.effects=r,this.annotations=s,this.scrollIntoView=o,this._doc=null,this._state=null,n&&dd(n,t.newLength),s.some(a=>a.type==$e.time)||(this.annotations=s.concat($e.time.of(Date.now())))}static create(e,t,n,r,s,o){return new $e(e,t,n,r,s,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation($e.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}$e.time=Bt.define(),$e.userEvent=Bt.define(),$e.addToHistory=Bt.define(),$e.remote=Bt.define();function wy(i,e){let t=[];for(let n=0,r=0;;){let s,o;if(n<i.length&&(r==e.length||e[r]>=i[n]))s=i[n++],o=i[n++];else if(r<e.length)s=e[r++],o=e[r++];else return t;!t.length||t[t.length-1]<s?t.push(s,o):t[t.length-1]<o&&(t[t.length-1]=o)}}function yd(i,e,t){var n;let r,s,o;return t?(r=e.changes,s=ye.empty(e.changes.length),o=i.changes.compose(e.changes)):(r=e.changes.map(i.changes),s=i.changes.mapDesc(e.changes,!0),o=i.changes.compose(r)),{changes:o,selection:e.selection?e.selection.map(s):(n=i.selection)===null||n===void 0?void 0:n.map(r),effects:F.mapEffects(i.effects,r).concat(F.mapEffects(e.effects,s)),annotations:i.annotations.length?i.annotations.concat(e.annotations):e.annotations,scrollIntoView:i.scrollIntoView||e.scrollIntoView}}function ga(i,e,t){let n=e.selection,r=dn(e.annotations);return e.userEvent&&(r=r.concat($e.userEvent.of(e.userEvent))),{changes:e.changes instanceof ye?e.changes:ye.of(e.changes||[],t,i.facet(pd)),selection:n&&(n instanceof b?n:b.single(n.anchor,n.head)),effects:dn(e.effects),annotations:r,scrollIntoView:!!e.scrollIntoView}}function bd(i,e,t){let n=ga(i,e.length?e[0]:{},i.doc.length);e.length&&e[0].filter===!1&&(t=!1);for(let s=1;s<e.length;s++){e[s].filter===!1&&(t=!1);let o=!!e[s].sequential;n=yd(n,ga(i,e[s],o?n.changes.newLength:i.doc.length),o)}let r=$e.create(i,n.changes,n.selection,n.effects,n.annotations,n.scrollIntoView);return xy(t?Py(r):r)}function Py(i){let e=i.startState,t=!0;for(let r of e.facet(md)){let s=r(i);if(s===!1){t=!1;break}Array.isArray(s)&&(t=t===!0?s:wy(t,s))}if(t!==!0){let r,s;if(t===!1)s=i.changes.invertedDesc,r=ye.empty(e.doc.length);else{let o=i.changes.filter(t);r=o.changes,s=o.filtered.mapDesc(o.changes).invertedDesc}i=$e.create(e,r,i.selection&&i.selection.map(s),F.mapEffects(i.effects,s),i.annotations,i.scrollIntoView)}let n=e.facet($d);for(let r=n.length-1;r>=0;r--){let s=n[r](i);s instanceof $e?i=s:Array.isArray(s)&&s.length==1&&s[0]instanceof $e?i=s[0]:i=bd(e,dn(s),!1)}return i}function xy(i){let e=i.startState,t=e.facet(gd),n=i;for(let r=t.length-1;r>=0;r--){let s=t[r](i);s&&Object.keys(s).length&&(n=yd(n,ga(e,s,i.changes.newLength),!0))}return n==i?i:$e.create(e,i.changes,i.selection,n.effects,n.annotations,n.scrollIntoView)}const Ty=[];function dn(i){return i==null?Ty:Array.isArray(i)?i:[i]}var ge=(function(i){return i[i.Word=0]="Word",i[i.Space=1]="Space",i[i.Other=2]="Other",i})(ge||(ge={}));const vy=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Qa;try{Qa=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function ky(i){if(Qa)return Qa.test(i);for(let e=0;e<i.length;e++){let t=i[e];if(/\w/.test(t)||t>"€"&&(t.toUpperCase()!=t.toLowerCase()||vy.test(t)))return!0}return!1}function Xy(i){return e=>{if(!/\S/.test(e))return ge.Space;if(ky(e))return ge.Word;for(let t=0;t<i.length;t++)if(e.indexOf(i[t])>-1)return ge.Word;return ge.Other}}class se{constructor(e,t,n,r,s,o){this.config=e,this.doc=t,this.selection=n,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=s,o&&(o._state=this);for(let a=0;a<this.config.dynamicSlots.length;a++)Fn(this,a<<1);this.computeSlot=null}field(e,t=!0){let n=this.config.address[e.id];if(n==null){if(t)throw new RangeError("Field is not present in this state");return}return Fn(this,n),Os(this,n)}update(...e){return bd(this,e,!0)}applyTransaction(e){let t=this.config,{base:n,compartments:r}=t;for(let a of e.effects)a.is(as.reconfigure)?(t&&(r=new Map,t.compartments.forEach((l,O)=>r.set(O,l)),t=null),r.set(a.value.compartment,a.value.extension)):a.is(F.reconfigure)?(t=null,n=a.value):a.is(F.appendConfig)&&(t=null,n=dn(n).concat(a.value));let s;t?s=e.startState.values.slice():(t=ls.resolve(n,r,this),s=new se(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(l,O)=>O.reconfigure(l,this),null).values);let o=e.startState.facet($a)?e.newSelection:e.newSelection.asSingle();new se(t,e.newDoc,o,s,(a,l)=>l.update(a,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:b.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),r=this.changes(n.changes),s=[n.range],o=dn(n.effects);for(let a=1;a<t.ranges.length;a++){let l=e(t.ranges[a]),O=this.changes(l.changes),c=O.map(r);for(let h=0;h<a;h++)s[h]=s[h].map(c);let d=r.mapDesc(O,!0);s.push(l.range.map(d)),r=r.compose(c),o=F.mapEffects(o,c).concat(F.mapEffects(dn(l.effects),d))}return{changes:r,selection:b.create(s,t.mainIndex),effects:o}}changes(e=[]){return e instanceof ye?e:ye.of(e,this.doc.length,this.facet(se.lineSeparator))}toText(e){return ie.of(e.split(this.facet(se.lineSeparator)||ca))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return t==null?e.default:(Fn(this,t),Os(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let n in e){let r=e[n];r instanceof Ce&&this.config.address[r.id]!=null&&(t[n]=r.spec.toJSON(this.field(e[n]),this))}return t}static fromJSON(e,t={},n){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let r=[];if(n){for(let s in n)if(Object.prototype.hasOwnProperty.call(e,s)){let o=n[s],a=e[s];r.push(o.init(l=>o.spec.fromJSON(a,l)))}}return se.create({doc:e.doc,selection:b.fromJSON(e.selection),extensions:t.extensions?r.concat([t.extensions]):r})}static create(e={}){let t=ls.resolve(e.extensions||[],new Map),n=e.doc instanceof ie?e.doc:ie.of((e.doc||"").split(t.staticFacet(se.lineSeparator)||ca)),r=e.selection?e.selection instanceof b?e.selection:b.single(e.selection.anchor,e.selection.head):b.single(0);return dd(r,n.length),t.staticFacet($a)||(r=r.asSingle()),new se(t,n,r,t.dynamicSlots.map(()=>null),(s,o)=>o.create(s),null)}get tabSize(){return this.facet(se.tabSize)}get lineBreak(){return this.facet(se.lineSeparator)||`
536
+ `}get readOnly(){return this.facet(Qd)}phrase(e,...t){for(let n of this.facet(se.phrases))if(Object.prototype.hasOwnProperty.call(n,e)){e=n[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(n,r)=>{if(r=="$")return"$";let s=+(r||1);return!s||s>t.length?n:t[s-1]})),e}languageDataAt(e,t,n=-1){let r=[];for(let s of this.facet(ud))for(let o of s(this,t,n))Object.prototype.hasOwnProperty.call(o,e)&&r.push(o[e]);return r}charCategorizer(e){let t=this.languageDataAt("wordChars",e);return Xy(t.length?t[0]:"")}wordAt(e){let{text:t,from:n,length:r}=this.doc.lineAt(e),s=this.charCategorizer(e),o=e-n,a=e-n;for(;o>0;){let l=we(t,o,!1);if(s(t.slice(l,o))!=ge.Word)break;o=l}for(;a<r;){let l=we(t,a);if(s(t.slice(a,l))!=ge.Word)break;a=l}return o==a?null:b.range(o+n,a+n)}}se.allowMultipleSelections=$a,se.tabSize=Z.define({combine:i=>i.length?i[0]:4}),se.lineSeparator=pd,se.readOnly=Qd,se.phrases=Z.define({compare(i,e){let t=Object.keys(i),n=Object.keys(e);return t.length==n.length&&t.every(r=>i[r]==e[r])}}),se.languageData=ud,se.changeFilter=md,se.transactionFilter=$d,se.transactionExtender=gd,as.reconfigure=F.define();function hn(i,e,t={}){let n={};for(let r of i)for(let s of Object.keys(r)){let o=r[s],a=n[s];if(a===void 0)n[s]=o;else if(!(a===o||o===void 0))if(Object.hasOwnProperty.call(t,s))n[s]=t[s](a,o);else throw new Error("Config merge conflict for field "+s)}for(let r in e)n[r]===void 0&&(n[r]=e[r]);return n}class $i{eq(e){return this==e}range(e,t=e){return ba.create(e,t,this)}}$i.prototype.startSide=$i.prototype.endSide=0,$i.prototype.point=!1,$i.prototype.mapMode=_e.TrackDel;function ya(i,e){return i==e||i.constructor==e.constructor&&i.eq(e)}let ba=class yQ{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new yQ(e,t,n)}};function Sa(i,e){return i.from-e.from||i.value.startSide-e.value.startSide}class wa{constructor(e,t,n,r){this.from=e,this.to=t,this.value=n,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,r=0){let s=n?this.to:this.from;for(let o=r,a=s.length;;){if(o==a)return o;let l=o+a>>1,O=s[l]-e||(n?this.value[l].endSide:this.value[l].startSide)-t;if(l==o)return O>=0?o:a;O>=0?a=l:o=l+1}}between(e,t,n,r){for(let s=this.findIndex(t,-1e9,!0),o=this.findIndex(n,1e9,!1,s);s<o;s++)if(r(this.from[s]+e,this.to[s]+e,this.value[s])===!1)return!1}map(e,t){let n=[],r=[],s=[],o=-1,a=-1;for(let l=0;l<this.value.length;l++){let O=this.value[l],c=this.from[l]+e,d=this.to[l]+e,h,f;if(c==d){let p=t.mapPos(c,O.startSide,O.mapMode);if(p==null||(h=f=p,O.startSide!=O.endSide&&(f=t.mapPos(c,O.endSide),f<h)))continue}else if(h=t.mapPos(c,O.startSide),f=t.mapPos(d,O.endSide),h>f||h==f&&O.startSide>0&&O.endSide<=0)continue;(f-h||O.endSide-O.startSide)<0||(o<0&&(o=h),O.point&&(a=Math.max(a,f-h)),n.push(O),r.push(h-o),s.push(f-o))}return{mapped:n.length?new wa(r,s,n,a):null,pos:o}}}class ee{constructor(e,t,n,r){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=r}static create(e,t,n,r){return new ee(e,t,n,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:r=0,filterTo:s=this.length}=e,o=e.filter;if(t.length==0&&!o)return this;if(n&&(t=t.slice().sort(Sa)),this.isEmpty)return t.length?ee.of(t):this;let a=new wd(this,null,-1).goto(0),l=0,O=[],c=new gi;for(;a.value||l<t.length;)if(l<t.length&&(a.from-t[l].from||a.startSide-t[l].value.startSide)>=0){let d=t[l++];c.addInner(d.from,d.to,d.value)||O.push(d)}else a.rangeIndex==1&&a.chunkIndex<this.chunk.length&&(l==t.length||this.chunkEnd(a.chunkIndex)<t[l].from)&&(!o||r>this.chunkEnd(a.chunkIndex)||s<this.chunkPos[a.chunkIndex])&&c.addChunk(this.chunkPos[a.chunkIndex],this.chunk[a.chunkIndex])?a.nextChunk():((!o||r>a.to||s<a.from||o(a.from,a.to,a.value))&&(c.addInner(a.from,a.to,a.value)||O.push(ba.create(a.from,a.to,a.value))),a.next());return c.finishInner(this.nextLayer.isEmpty&&!O.length?ee.empty:this.nextLayer.update({add:O,filter:o,filterFrom:r,filterTo:s}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],n=[],r=-1;for(let o=0;o<this.chunk.length;o++){let a=this.chunkPos[o],l=this.chunk[o],O=e.touchesRange(a,a+l.length);if(O===!1)r=Math.max(r,l.maxPoint),t.push(l),n.push(e.mapPos(a));else if(O===!0){let{mapped:c,pos:d}=l.map(a,e);c&&(r=Math.max(r,c.maxPoint),t.push(c),n.push(d))}}let s=this.nextLayer.map(e);return t.length==0?s:new ee(n,t,s||ee.empty,r)}between(e,t,n){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let s=this.chunkPos[r],o=this.chunk[r];if(t>=s&&e<=s+o.length&&o.between(s,e-s,t-s,n)===!1)return}this.nextLayer.between(e,t,n)}}iter(e=0){return Hn.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return Hn.from(e).goto(t)}static compare(e,t,n,r,s=-1){let o=e.filter(d=>d.maxPoint>0||!d.isEmpty&&d.maxPoint>=s),a=t.filter(d=>d.maxPoint>0||!d.isEmpty&&d.maxPoint>=s),l=Sd(o,a,n),O=new Kn(o,l,s),c=new Kn(a,l,s);n.iterGaps((d,h,f)=>Pd(O,d,c,h,f,r)),n.empty&&n.length==0&&Pd(O,0,c,0,0,r)}static eq(e,t,n=0,r){r==null&&(r=999999999);let s=e.filter(c=>!c.isEmpty&&t.indexOf(c)<0),o=t.filter(c=>!c.isEmpty&&e.indexOf(c)<0);if(s.length!=o.length)return!1;if(!s.length)return!0;let a=Sd(s,o),l=new Kn(s,a,0).goto(n),O=new Kn(o,a,0).goto(n);for(;;){if(l.to!=O.to||!xa(l.active,O.active)||l.point&&(!O.point||!ya(l.point,O.point)))return!1;if(l.to>r)return!0;l.next(),O.next()}}static spans(e,t,n,r,s=-1){let o=new Kn(e,null,s).goto(t),a=t,l=o.openStart;for(;;){let O=Math.min(o.to,n);if(o.point){let c=o.activeForPoint(o.to),d=o.pointFrom<t?c.length+1:o.point.startSide<0?c.length:Math.min(c.length,l);r.point(a,O,o.point,c,d,o.pointRank),l=Math.min(o.openEnd(O),c.length)}else O>a&&(r.span(a,O,o.active,l),l=o.openEnd(O));if(o.to>n)return l+(o.point&&o.to>n?1:0);a=o.to,o.next()}}static of(e,t=!1){let n=new gi;for(let r of e instanceof ba?[e]:t?_y(e):e)n.add(r.from,r.to,r.value);return n.finish()}static join(e){if(!e.length)return ee.empty;let t=e[e.length-1];for(let n=e.length-2;n>=0;n--)for(let r=e[n];r!=ee.empty;r=r.nextLayer)t=new ee(r.chunkPos,r.chunk,t,Math.max(r.maxPoint,t.maxPoint));return t}}ee.empty=new ee([],[],null,-1);function _y(i){if(i.length>1)for(let e=i[0],t=1;t<i.length;t++){let n=i[t];if(Sa(e,n)>0)return i.slice().sort(Sa);e=n}return i}ee.empty.nextLayer=ee.empty;class gi{finishChunk(e){this.chunks.push(new wa(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new gi)).add(e,t,n)}addInner(e,t,n){let r=e-this.lastTo||n.startSide-this.last.endSide;if(r<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return r<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(ee.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let t=ee.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function Sd(i,e,t){let n=new Map;for(let s of i)for(let o=0;o<s.chunk.length;o++)s.chunk[o].maxPoint<=0&&n.set(s.chunk[o],s.chunkPos[o]);let r=new Set;for(let s of e)for(let o=0;o<s.chunk.length;o++){let a=n.get(s.chunk[o]);a!=null&&(t?t.mapPos(a):a)==s.chunkPos[o]&&!(t!=null&&t.touchesRange(a,a+s.chunk[o].length))&&r.add(s.chunk[o])}return r}class wd{constructor(e,t,n,r=0){this.layer=e,this.skip=t,this.minPoint=n,this.rank=r}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,n){for(;this.chunkIndex<this.layer.chunk.length;){let r=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(r)||this.layer.chunkEnd(this.chunkIndex)<e||r.maxPoint<this.minPoint))break;this.chunkIndex++,n=!1}if(this.chunkIndex<this.layer.chunk.length){let r=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!n||this.rangeIndex<r)&&this.setRangeIndex(r)}this.next()}forward(e,t){(this.to-e||this.endSide-t)<0&&this.gotoInner(e,t,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],n=e+t.from[this.rangeIndex];if(this.from=n,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class Hn{constructor(e){this.heap=e}static from(e,t=null,n=-1){let r=[];for(let s=0;s<e.length;s++)for(let o=e[s];!o.isEmpty;o=o.nextLayer)o.maxPoint>=n&&r.push(new wd(o,t,n,s));return r.length==1?r[0]:new Hn(r)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let n=this.heap.length>>1;n>=0;n--)Pa(this.heap,n);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let n=this.heap.length>>1;n>=0;n--)Pa(this.heap,n);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),Pa(this.heap,0)}}}function Pa(i,e){for(let t=i[e];;){let n=(e<<1)+1;if(n>=i.length)break;let r=i[n];if(n+1<i.length&&r.compare(i[n+1])>=0&&(r=i[n+1],n++),t.compare(r)<0)break;i[n]=t,i[e]=r,e=n}}class Kn{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Hn.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){cs(this.active,e),cs(this.activeTo,e),cs(this.activeRank,e),this.minActive=xd(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:r,rank:s}=this.cursor;for(;t<this.activeRank.length&&(s-this.activeRank[t]||r-this.activeTo[t])>0;)t++;ds(this.active,t,n),ds(this.activeTo,t,r),ds(this.activeRank,t,s),e&&ds(e,t,this.cursor.from),this.minActive=xd(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let r=this.minActive;if(r>-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),n&&cs(n,r)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let s=this.cursor.value;if(!s.point)this.addActive(n),this.cursor.next();else if(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=s,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=s.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else{this.to=this.endSide=1e9;break}}if(n){this.openStart=0;for(let r=n.length-1;r>=0&&n[r]<e;r--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let n=this.active.length-1;n>=0&&!(this.activeRank[n]<this.pointRank);n--)(this.activeTo[n]>e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function Pd(i,e,t,n,r,s){i.goto(e),t.goto(n);let o=n+r,a=n,l=n-e,O=!!s.boundChange;for(let c=!1;;){let d=i.to+l-t.to,h=d||i.endSide-t.endSide,f=h<0?i.to+l:t.to,p=Math.min(f,o);if(i.point||t.point?(i.point&&t.point&&ya(i.point,t.point)&&xa(i.activeForPoint(i.to),t.activeForPoint(t.to))||s.comparePoint(a,p,i.point,t.point),c=!1):(c&&s.boundChange(a),p>a&&!xa(i.active,t.active)&&s.compareRange(a,p,i.active,t.active),O&&p<o&&(d||i.openEnd(f)!=t.openEnd(f))&&(c=!0)),f>o)break;a=f,h<=0&&i.next(),h>=0&&t.next()}}function xa(i,e){if(i.length!=e.length)return!1;for(let t=0;t<i.length;t++)if(i[t]!=e[t]&&!ya(i[t],e[t]))return!1;return!0}function cs(i,e){for(let t=e,n=i.length-1;t<n;t++)i[t]=i[t+1];i.pop()}function ds(i,e,t){for(let n=i.length-1;n>=e;n--)i[n+1]=i[n];i[e]=t}function xd(i,e){let t=-1,n=1e9;for(let r=0;r<e.length;r++)(e[r]-n||i[r].endSide-i[t].endSide)<0&&(t=r,n=e[r]);return t}function Nt(i,e,t=i.length){let n=0;for(let r=0;r<t&&r<i.length;)i.charCodeAt(r)==9?(n+=e-n%e,r++):(n++,r=we(i,r));return n}function Ry(i,e,t,n){for(let r=0,s=0;;){if(s>=e)return r;if(r==i.length)break;s+=i.charCodeAt(r)==9?t-s%t:1,r=we(i,r)}return i.length}const Ta="ͼ",Td=typeof Symbol>"u"?"__"+Ta:Symbol.for(Ta),va=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),vd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class Qi{constructor(e,t){this.rules=[];let{finish:n}=t||{};function r(o){return/^@/.test(o)?[o]:o.split(/,\s*/)}function s(o,a,l,O){let c=[],d=/^@(\w+)\b/.exec(o[0]),h=d&&d[1]=="keyframes";if(d&&a==null)return l.push(o[0]+";");for(let f in a){let p=a[f];if(/&/.test(f))s(f.split(/,\s*/).map(m=>o.map($=>m.replace(/&/,$))).reduce((m,$)=>m.concat($)),p,l);else if(p&&typeof p=="object"){if(!d)throw new RangeError("The value of a property ("+f+") should be a primitive value.");s(r(f),p,c,h)}else p!=null&&c.push(f.replace(/_.*/,"").replace(/[A-Z]/g,m=>"-"+m.toLowerCase())+": "+p+";")}(c.length||h)&&l.push((n&&!d&&!O?o.map(n):o).join(", ")+" {"+c.join(" ")+"}")}for(let o in e)s(r(o),e[o],this.rules)}getRules(){return this.rules.join(`
537
+ `)}static newName(){let e=vd[Td]||1;return vd[Td]=e+1,Ta+e.toString(36)}static mount(e,t,n){let r=e[va],s=n&&n.nonce;r?s&&r.setNonce(s):r=new Zy(e,s),r.mount(Array.isArray(t)?t:[t],e)}}let kd=new Map;class Zy{constructor(e,t){let n=e.ownerDocument||e,r=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let s=kd.get(n);if(s)return e[va]=s;this.sheet=new r.CSSStyleSheet,kd.set(n,this)}else this.styleTag=n.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[va]=this}mount(e,t){let n=this.sheet,r=0,s=0;for(let o=0;o<e.length;o++){let a=e[o],l=this.modules.indexOf(a);if(l<s&&l>-1&&(this.modules.splice(l,1),s--,l=-1),l==-1){if(this.modules.splice(s++,0,a),n)for(let O=0;O<a.rules.length;O++)n.insertRule(a.rules[O],r++)}else{for(;s<l;)r+=this.modules[s++].rules.length;r+=a.rules.length,s++}}if(n)t.adoptedStyleSheets.indexOf(this.sheet)<0&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let o="";for(let l=0;l<this.modules.length;l++)o+=this.modules[l].getRules()+`
538
+ `;this.styleTag.textContent=o;let a=t.head||t;this.styleTag.parentNode!=a&&a.insertBefore(this.styleTag,a.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}for(var yi={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Jn={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},zy=typeof navigator<"u"&&/Mac/.test(navigator.platform),qy=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),ke=0;ke<10;ke++)yi[48+ke]=yi[96+ke]=String(ke);for(var ke=1;ke<=24;ke++)yi[ke+111]="F"+ke;for(var ke=65;ke<=90;ke++)yi[ke]=String.fromCharCode(ke+32),Jn[ke]=String.fromCharCode(ke);for(var ka in yi)Jn.hasOwnProperty(ka)||(Jn[ka]=yi[ka]);function Vy(i){var e=zy&&i.metaKey&&i.shiftKey&&!i.ctrlKey&&!i.altKey||qy&&i.shiftKey&&i.key&&i.key.length==1||i.key=="Unidentified",t=!e&&i.key||(i.shiftKey?Jn:yi)[i.keyCode]||i.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function Pe(){var i=arguments[0];typeof i=="string"&&(i=document.createElement(i));var e=1,t=arguments[1];if(t&&typeof t=="object"&&t.nodeType==null&&!Array.isArray(t)){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=t[n];typeof r=="string"?i.setAttribute(n,r):r!=null&&(i[n]=r)}e++}for(;e<arguments.length;e++)Xd(i,arguments[e]);return i}function Xd(i,e){if(typeof e=="string")i.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)i.appendChild(e);else if(Array.isArray(e))for(var t=0;t<e.length;t++)Xd(i,e[t]);else throw new RangeError("Unsupported child node: "+e)}let Ye=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},Xa=typeof document<"u"?document:{documentElement:{style:{}}};const _a=/Edge\/(\d+)/.exec(Ye.userAgent),_d=/MSIE \d/.test(Ye.userAgent),Ra=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ye.userAgent),hs=!!(_d||Ra||_a),Rd=!hs&&/gecko\/(\d+)/i.test(Ye.userAgent),Za=!hs&&/Chrome\/(\d+)/.exec(Ye.userAgent),Cy="webkitFontSmoothing"in Xa.documentElement.style,za=!hs&&/Apple Computer/.test(Ye.vendor),Zd=za&&(/Mobile\/\w+/.test(Ye.userAgent)||Ye.maxTouchPoints>2);var _={mac:Zd||/Mac/.test(Ye.platform),windows:/Win/.test(Ye.platform),linux:/Linux|X11/.test(Ye.platform),ie:hs,ie_version:_d?Xa.documentMode||6:Ra?+Ra[1]:_a?+_a[1]:0,gecko:Rd,gecko_version:Rd?+(/Firefox\/(\d+)/.exec(Ye.userAgent)||[0,0])[1]:0,chrome:!!Za,chrome_version:Za?+Za[1]:0,ios:Zd,android:/Android\b/.test(Ye.userAgent),webkit_version:Cy?+(/\bAppleWebKit\/(\d+)/.exec(Ye.userAgent)||[0,0])[1]:0,safari:za,safari_version:za?+(/\bVersion\/(\d+(\.\d+)?)/.exec(Ye.userAgent)||[0,0])[1]:0,tabSize:Xa.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};function qa(i,e){for(let t in i)t=="class"&&e.class?e.class+=" "+i.class:t=="style"&&e.style?e.style+=";"+i.style:e[t]=i[t];return e}const fs=Object.create(null);function Va(i,e,t){if(i==e)return!0;i||(i=fs),e||(e=fs);let n=Object.keys(i),r=Object.keys(e);if(n.length-0!=r.length-0)return!1;for(let s of n)if(s!=t&&(r.indexOf(s)==-1||i[s]!==e[s]))return!1;return!0}function Yy(i,e){for(let t=i.attributes.length-1;t>=0;t--){let n=i.attributes[t].name;e[n]==null&&i.removeAttribute(n)}for(let t in e){let n=e[t];t=="style"?i.style.cssText=n:i.getAttribute(t)!=n&&i.setAttribute(t,n)}}function zd(i,e,t){let n=!1;if(e)for(let r in e)t&&r in t||(n=!0,r=="style"?i.style.cssText="":i.removeAttribute(r));if(t)for(let r in t)e&&e[r]==t[r]||(n=!0,r=="style"?i.style.cssText=t[r]:i.setAttribute(r,t[r]));return n}function Wy(i){let e=Object.create(null);for(let t=0;t<i.attributes.length;t++){let n=i.attributes[t];e[n.name]=n.value}return e}class bi{eq(e){return!1}updateDOM(e,t,n){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,n){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var je=(function(i){return i[i.Text=0]="Text",i[i.WidgetBefore=1]="WidgetBefore",i[i.WidgetAfter=2]="WidgetAfter",i[i.WidgetRange=3]="WidgetRange",i})(je||(je={}));class H extends $i{constructor(e,t,n,r){super(),this.startSide=e,this.endSide=t,this.widget=n,this.spec=r}get heightRelevant(){return!1}static mark(e){return new er(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),n=!!e.block;return t+=n&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new Ei(e,t,t,n,e.widget||null,!1)}static replace(e){let t=!!e.block,n,r;if(e.isBlockGap)n=-5e8,r=4e8;else{let{start:s,end:o}=qd(e,t);n=(s?t?-3e8:-1:5e8)-1,r=(o?t?2e8:1:-6e8)+1}return new Ei(e,n,r,t,e.widget||null,!0)}static line(e){return new tr(e)}static set(e,t=!1){return ee.of(e,t)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}H.none=ee.empty;class er extends H{constructor(e){let{start:t,end:n}=qd(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.attrs=e.class&&e.attributes?qa(e.attributes,{class:e.class}):e.class?{class:e.class}:e.attributes||fs}eq(e){return this==e||e instanceof er&&this.tagName==e.tagName&&Va(this.attrs,e.attrs)}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}er.prototype.point=!1;class tr extends H{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof tr&&this.spec.class==e.spec.class&&Va(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}tr.prototype.mapMode=_e.TrackBefore,tr.prototype.point=!0;class Ei extends H{constructor(e,t,n,r,s,o){super(t,n,s,e),this.block=r,this.isReplace=o,this.mapMode=r?t<=0?_e.TrackBefore:_e.TrackAfter:_e.TrackDel}get type(){return this.startSide!=this.endSide?je.WidgetRange:this.startSide<=0?je.WidgetBefore:je.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof Ei&&Ay(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}Ei.prototype.point=!0;function qd(i,e=!1){let{inclusiveStart:t,inclusiveEnd:n}=i;return t==null&&(t=i.inclusive),n==null&&(n=i.inclusive),{start:t??e,end:n??e}}function Ay(i,e){return i==e||!!(i&&e&&i.compare(e))}function fn(i,e,t,n=0){let r=t.length-1;r>=0&&t[r]+n>=i?t[r]=Math.max(t[r],e):t.push(i,e)}class ir extends $i{constructor(e,t){super(),this.tagName=e,this.attributes=t}eq(e){return e==this||e instanceof ir&&this.tagName==e.tagName&&Va(this.attributes,e.attributes)}static create(e){return new ir(e.tagName,e.attributes||fs)}static set(e,t=!1){return ee.of(e,t)}}ir.prototype.startSide=ir.prototype.endSide=-1;function nr(i){let e;return i.nodeType==11?e=i.getSelection?i:i.ownerDocument:e=i,e.getSelection()}function Ca(i,e){return e?i==e||i.contains(e.nodeType!=1?e.parentNode:e):!1}function rr(i,e){if(!e.anchorNode)return!1;try{return Ca(i,e.anchorNode)}catch{return!1}}function us(i){return i.nodeType==3?or(i,0,i.nodeValue.length).getClientRects():i.nodeType==1?i.getClientRects():[]}function sr(i,e,t,n){return t?Vd(i,e,t,n,-1)||Vd(i,e,t,n,1):!1}function Si(i){for(var e=0;;e++)if(i=i.previousSibling,!i)return e}function ps(i){return i.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(i.nodeName)}function Vd(i,e,t,n,r){for(;;){if(i==t&&e==n)return!0;if(e==(r<0?0:Ft(i))){if(i.nodeName=="DIV")return!1;let s=i.parentNode;if(!s||s.nodeType!=1)return!1;e=Si(i)+(r<0?0:1),i=s}else if(i.nodeType==1){if(i=i.childNodes[e+(r<0?-1:0)],i.nodeType==1&&i.contentEditable=="false")return!1;e=r<0?Ft(i):0}else return!1}}function Ft(i){return i.nodeType==3?i.nodeValue.length:i.childNodes.length}function ms(i,e){let t=e?i.left:i.right;return{left:t,right:t,top:i.top,bottom:i.bottom}}function Ey(i){let e=i.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:i.innerWidth,top:0,bottom:i.innerHeight}}function Cd(i,e){let t=e.width/i.offsetWidth,n=e.height/i.offsetHeight;return(t>.995&&t<1.005||!isFinite(t)||Math.abs(e.width-i.offsetWidth)<1)&&(t=1),(n>.995&&n<1.005||!isFinite(n)||Math.abs(e.height-i.offsetHeight)<1)&&(n=1),{scaleX:t,scaleY:n}}function Uy(i,e,t,n,r,s,o,a){let l=i.ownerDocument,O=l.defaultView||window;for(let c=i,d=!1;c&&!d;)if(c.nodeType==1){let h,f=c==l.body,p=1,m=1;if(f)h=Ey(O);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(d=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let y=c.getBoundingClientRect();({scaleX:p,scaleY:m}=Cd(c,y)),h={left:y.left,right:y.left+c.clientWidth*p,top:y.top,bottom:y.top+c.clientHeight*m}}let $=0,g=0;if(r=="nearest")e.top<h.top+o?(g=e.top-(h.top+o),t>0&&e.bottom>h.bottom+g&&(g=e.bottom-h.bottom+o)):e.bottom>h.bottom-o&&(g=e.bottom-h.bottom+o,t<0&&e.top-g<h.top&&(g=e.top-(h.top+o)));else{let y=e.bottom-e.top,S=h.bottom-h.top;g=(r=="center"&&y<=S?e.top+y/2-S/2:r=="start"||r=="center"&&t<0?e.top-o:e.bottom-S+o)-h.top}if(n=="nearest"?e.left<h.left+s?($=e.left-(h.left+s),t>0&&e.right>h.right+$&&($=e.right-h.right+s)):e.right>h.right-s&&($=e.right-h.right+s,t<0&&e.left<h.left+$&&($=e.left-(h.left+s))):$=(n=="center"?e.left+(e.right-e.left)/2-(h.right-h.left)/2:n=="start"==a?e.left-s:e.right-(h.right-h.left)+s)-h.left,$||g)if(f)O.scrollBy($,g);else{let y=0,S=0;if(g){let R=c.scrollTop;c.scrollTop+=g/m,S=(c.scrollTop-R)*m}if($){let R=c.scrollLeft;c.scrollLeft+=$/p,y=(c.scrollLeft-R)*p}e={left:e.left-y,top:e.top-S,right:e.right-y,bottom:e.bottom-S},y&&Math.abs(y-$)<1&&(n="nearest"),S&&Math.abs(S-g)<1&&(r="nearest")}if(f)break;(e.top<h.top||e.bottom>h.bottom||e.left<h.left||e.right>h.right)&&(e={left:Math.max(e.left,h.left),right:Math.min(e.right,h.right),top:Math.max(e.top,h.top),bottom:Math.min(e.bottom,h.bottom)}),c=c.assignedSlot||c.parentNode}else if(c.nodeType==11)c=c.host;else break}function Yd(i,e=!0){let t=i.ownerDocument,n=null,r=null;for(let s=i.parentNode;s&&!(s==t.body||(!e||n)&&r);)if(s.nodeType==1)!r&&s.scrollHeight>s.clientHeight&&(r=s),e&&!n&&s.scrollWidth>s.clientWidth&&(n=s),s=s.assignedSlot||s.parentNode;else if(s.nodeType==11)s=s.host;else break;return{x:n,y:r}}class jy{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:n}=e;this.set(t,Math.min(e.anchorOffset,t?Ft(t):0),n,Math.min(e.focusOffset,n?Ft(n):0))}set(e,t,n,r){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=r}}let Ui=null;_.safari&&_.safari_version>=26&&(Ui=!1);function Wd(i){if(i.setActive)return i.setActive();if(Ui)return i.focus(Ui);let e=[];for(let t=i;t&&(e.push(t,t.scrollTop,t.scrollLeft),t!=t.ownerDocument);t=t.parentNode);if(i.focus(Ui==null?{get preventScroll(){return Ui={preventScroll:!0},!0}}:void 0),!Ui){Ui=!1;for(let t=0;t<e.length;){let n=e[t++],r=e[t++],s=e[t++];n.scrollTop!=r&&(n.scrollTop=r),n.scrollLeft!=s&&(n.scrollLeft=s)}}}let Ad;function or(i,e,t=e){let n=Ad||(Ad=document.createRange());return n.setEnd(i,t),n.setStart(i,e),n}function un(i,e,t,n){let r={key:e,code:e,keyCode:t,which:t,cancelable:!0};n&&({altKey:r.altKey,ctrlKey:r.ctrlKey,shiftKey:r.shiftKey,metaKey:r.metaKey}=n);let s=new KeyboardEvent("keydown",r);s.synthetic=!0,i.dispatchEvent(s);let o=new KeyboardEvent("keyup",r);return o.synthetic=!0,i.dispatchEvent(o),s.defaultPrevented||o.defaultPrevented}function My(i){for(;i;){if(i&&(i.nodeType==9||i.nodeType==11&&i.host))return i;i=i.assignedSlot||i.parentNode}return null}function Ly(i,e){let t=e.focusNode,n=e.focusOffset;if(!t||e.anchorNode!=t||e.anchorOffset!=n)return!1;for(n=Math.min(n,Ft(t));;)if(n){if(t.nodeType!=1)return!1;let r=t.childNodes[n-1];r.contentEditable=="false"?n--:(t=r,n=Ft(t))}else{if(t==i)return!0;n=Si(t),t=t.parentNode}}function Ed(i){return i instanceof Window?i.pageYOffset>Math.max(0,i.document.documentElement.scrollHeight-i.innerHeight-4):i.scrollTop>Math.max(1,i.scrollHeight-i.clientHeight-4)}function Ud(i,e){for(let t=i,n=e;;){if(t.nodeType==3&&n>0)return{node:t,offset:n};if(t.nodeType==1&&n>0){if(t.contentEditable=="false")return null;t=t.childNodes[n-1],n=Ft(t)}else if(t.parentNode&&!ps(t))n=Si(t),t=t.parentNode;else return null}}function jd(i,e){for(let t=i,n=e;;){if(t.nodeType==3&&n<t.nodeValue.length)return{node:t,offset:n};if(t.nodeType==1&&n<t.childNodes.length){if(t.contentEditable=="false")return null;t=t.childNodes[n],n=0}else if(t.parentNode&&!ps(t))n=Si(t)+1,t=t.parentNode;else return null}}class ct{constructor(e,t,n=!0){this.node=e,this.offset=t,this.precise=n}static before(e,t){return new ct(e.parentNode,Si(e),t)}static after(e,t){return new ct(e.parentNode,Si(e)+1,t)}}var fe=(function(i){return i[i.LTR=0]="LTR",i[i.RTL=1]="RTL",i})(fe||(fe={}));const ji=fe.LTR,Ya=fe.RTL;function Md(i){let e=[];for(let t=0;t<i.length;t++)e.push(1<<+i[t]);return e}const Gy=Md("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),Iy=Md("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),Wa=Object.create(null),xt=[];for(let i of["()","[]","{}"]){let e=i.charCodeAt(0),t=i.charCodeAt(1);Wa[e]=t,Wa[t]=-e}function Ld(i){return i<=247?Gy[i]:1424<=i&&i<=1524?2:1536<=i&&i<=1785?Iy[i-1536]:1774<=i&&i<=2220?4:8192<=i&&i<=8204?256:64336<=i&&i<=65023?4:1}const Dy=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class Tt{get dir(){return this.level%2?Ya:ji}constructor(e,t,n){this.from=e,this.to=t,this.level=n}side(e,t){return this.dir==t==e?this.to:this.from}forward(e,t){return e==(this.dir==t)}static find(e,t,n,r){let s=-1;for(let o=0;o<e.length;o++){let a=e[o];if(a.from<=t&&a.to>=t){if(a.level==n)return o;(s<0||(r!=0?r<0?a.from<t:a.to>t:e[s].level>a.level))&&(s=o)}}if(s<0)throw new RangeError("Index out of range");return s}}function Gd(i,e){if(i.length!=e.length)return!1;for(let t=0;t<i.length;t++){let n=i[t],r=e[t];if(n.from!=r.from||n.to!=r.to||n.direction!=r.direction||!Gd(n.inner,r.inner))return!1}return!0}const ce=[];function By(i,e,t,n,r){for(let s=0;s<=n.length;s++){let o=s?n[s-1].to:e,a=s<n.length?n[s].from:t,l=s?256:r;for(let O=o,c=l,d=l;O<a;O++){let h=Ld(i.charCodeAt(O));h==512?h=c:h==8&&d==4&&(h=16),ce[O]=h==4?2:h,h&7&&(d=h),c=h}for(let O=o,c=l,d=l;O<a;O++){let h=ce[O];if(h==128)O<a-1&&c==ce[O+1]&&c&24?h=ce[O]=c:ce[O]=256;else if(h==64){let f=O+1;for(;f<a&&ce[f]==64;)f++;let p=O&&c==8||f<t&&ce[f]==8?d==1?1:8:256;for(let m=O;m<f;m++)ce[m]=p;O=f-1}else h==8&&d==1&&(ce[O]=1);c=h,h&7&&(d=h)}}}function Ny(i,e,t,n,r){let s=r==1?2:1;for(let o=0,a=0,l=0;o<=n.length;o++){let O=o?n[o-1].to:e,c=o<n.length?n[o].from:t;for(let d=O,h,f,p;d<c;d++)if(f=Wa[h=i.charCodeAt(d)])if(f<0){for(let m=a-3;m>=0;m-=3)if(xt[m+1]==-f){let $=xt[m+2],g=$&2?r:$&4?$&1?s:r:0;g&&(ce[d]=ce[xt[m]]=g),a=m;break}}else{if(xt.length==189)break;xt[a++]=d,xt[a++]=h,xt[a++]=l}else if((p=ce[d])==2||p==1){let m=p==r;l=m?0:1;for(let $=a-3;$>=0;$-=3){let g=xt[$+2];if(g&2)break;if(m)xt[$+2]|=2;else{if(g&4)break;xt[$+2]|=4}}}}}function Fy(i,e,t,n){for(let r=0,s=n;r<=t.length;r++){let o=r?t[r-1].to:i,a=r<t.length?t[r].from:e;for(let l=o;l<a;){let O=ce[l];if(O==256){let c=l+1;for(;;)if(c==a){if(r==t.length)break;c=t[r++].to,a=r<t.length?t[r].from:e}else if(ce[c]==256)c++;else break;let d=s==1,h=(c<e?ce[c]:n)==1,f=d==h?d?1:2:n;for(let p=c,m=r,$=m?t[m-1].to:i;p>l;)p==$&&(p=t[--m].from,$=m?t[m-1].to:i),ce[--p]=f;l=c}else s=O,l++}}}function Aa(i,e,t,n,r,s,o){let a=n%2?2:1;if(n%2==r%2)for(let l=e,O=0;l<t;){let c=!0,d=!1;if(O==s.length||l<s[O].from){let m=ce[l];m!=a&&(c=!1,d=m==16)}let h=!c&&a==1?[]:null,f=c?n:n+1,p=l;e:for(;;)if(O<s.length&&p==s[O].from){if(d)break e;let m=s[O];if(!c)for(let $=m.to,g=O+1;;){if($==t)break e;if(g<s.length&&s[g].from==$)$=s[g++].to;else{if(ce[$]==a)break e;break}}if(O++,h)h.push(m);else{m.from>l&&o.push(new Tt(l,m.from,f));let $=m.direction==ji!=!(f%2);Ea(i,$?n+1:n,r,m.inner,m.from,m.to,o),l=m.to}p=m.to}else{if(p==t||(c?ce[p]!=a:ce[p]==a))break;p++}h?Aa(i,l,p,n+1,r,h,o):l<p&&o.push(new Tt(l,p,f)),l=p}else for(let l=t,O=s.length;l>e;){let c=!0,d=!1;if(!O||l>s[O-1].to){let m=ce[l-1];m!=a&&(c=!1,d=m==16)}let h=!c&&a==1?[]:null,f=c?n:n+1,p=l;e:for(;;)if(O&&p==s[O-1].to){if(d)break e;let m=s[--O];if(!c)for(let $=m.from,g=O;;){if($==e)break e;if(g&&s[g-1].to==$)$=s[--g].from;else{if(ce[$-1]==a)break e;break}}if(h)h.push(m);else{m.to<l&&o.push(new Tt(m.to,l,f));let $=m.direction==ji!=!(f%2);Ea(i,$?n+1:n,r,m.inner,m.from,m.to,o),l=m.from}p=m.from}else{if(p==e||(c?ce[p-1]!=a:ce[p-1]==a))break;p--}h?Aa(i,p,l,n+1,r,h,o):p<l&&o.push(new Tt(p,l,f)),l=p}}function Ea(i,e,t,n,r,s,o){let a=e%2?2:1;By(i,r,s,n,a),Ny(i,r,s,n,a),Fy(r,s,n,a),Aa(i,r,s,e,t,n,o)}function Hy(i,e,t){if(!i)return[new Tt(0,0,e==Ya?1:0)];if(e==ji&&!t.length&&!Dy.test(i))return Id(i.length);if(t.length)for(;i.length>ce.length;)ce[ce.length]=256;let n=[],r=e==ji?0:1;return Ea(i,r,r,t,0,i.length,n),n}function Id(i){return[new Tt(0,i,0)]}let Dd="";function Ky(i,e,t,n,r){var s;let o=n.head-i.from,a=Tt.find(e,o,(s=n.bidiLevel)!==null&&s!==void 0?s:-1,n.assoc),l=e[a],O=l.side(r,t);if(o==O){let h=a+=r?1:-1;if(h<0||h>=e.length)return null;l=e[a=h],o=l.side(!r,t),O=l.side(r,t)}let c=we(i.text,o,l.forward(r,t));(c<l.from||c>l.to)&&(c=O),Dd=i.text.slice(Math.min(o,c),Math.max(o,c));let d=a==(r?e.length-1:0)?null:e[a+(r?1:-1)];return d&&c==O&&d.level+(r?0:1)<l.level?b.cursor(d.side(!r,t)+i.from,d.forward(r,t)?1:-1,d.level):b.cursor(c+i.from,l.forward(r,t)?-1:1,l.level)}function Jy(i,e,t){for(let n=e;n<t;n++){let r=Ld(i.charCodeAt(n));if(r==1)return ji;if(r==2||r==4)return Ya}return ji}const Bd=Z.define(),Nd=Z.define(),Fd=Z.define(),Hd=Z.define(),Ua=Z.define(),Kd=Z.define(),Jd=Z.define(),ja=Z.define(),Ma=Z.define(),eh=Z.define({combine:i=>i.some(e=>e)}),eb=Z.define({combine:i=>i.some(e=>e)}),th=Z.define();class pn{constructor(e,t,n,r,s,o=!1){this.range=e,this.y=t,this.x=n,this.yMargin=r,this.xMargin=s,this.isSnapshot=o}map(e){return e.empty?this:new pn(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new pn(b.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const $s=F.define({map:(i,e)=>i.map(e)}),ih=F.define();function Be(i,e,t){let n=i.facet(Hd);n.length?n[0](e):window.onerror&&window.onerror(String(e),t,void 0,void 0,e)||(t?console.error(t+":",e):console.error(e))}const Ht=Z.define({combine:i=>i.length?i[0]:!0});let tb=0;const mn=Z.define({combine(i){return i.filter((e,t)=>{for(let n=0;n<t;n++)if(i[n].plugin==e.plugin)return!1;return!0})}});class xe{constructor(e,t,n,r,s){this.id=e,this.create=t,this.domEventHandlers=n,this.domEventObservers=r,this.baseExtensions=s(this),this.extension=this.baseExtensions.concat(mn.of({plugin:this,arg:void 0}))}of(e){return this.baseExtensions.concat(mn.of({plugin:this,arg:e}))}static define(e,t){const{eventHandlers:n,eventObservers:r,provide:s,decorations:o}=t||{};return new xe(tb++,e,n,r,a=>{let l=[];return o&&l.push(gs.of(O=>{let c=O.plugin(a);return c?o(c):H.none})),s&&l.push(s(a)),l})}static fromClass(e,t){return xe.define((n,r)=>new e(n,r),t)}}class La{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}get plugin(){return this.spec&&this.spec.plugin}update(e){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(n){if(Be(t.state,n,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.plugin.create(e,this.spec.arg)}catch(t){Be(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(!((t=this.value)===null||t===void 0)&&t.destroy)try{this.value.destroy()}catch(n){Be(e.state,n,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const nh=Z.define(),Ga=Z.define(),gs=Z.define(),rh=Z.define(),Ia=Z.define(),ar=Z.define(),sh=Z.define();function oh(i,e){let t=i.state.facet(sh);if(!t.length)return t;let n=t.map(s=>s instanceof Function?s(i):s),r=[];return ee.spans(n,e.from,e.to,{point(){},span(s,o,a,l){let O=s-e.from,c=o-e.from,d=r;for(let h=a.length-1;h>=0;h--,l--){let f=a[h].spec.bidiIsolate,p;if(f==null&&(f=Jy(e.text,O,c)),l>0&&d.length&&(p=d[d.length-1]).to==O&&p.direction==f)p.to=c,d=p.inner;else{let m={from:O,to:c,direction:f,inner:[]};d.push(m),d=m.inner}}}}),r}const ah=Z.define();function Da(i){let e=0,t=0,n=0,r=0;for(let s of i.state.facet(ah)){let o=s(i);o&&(o.left!=null&&(e=Math.max(e,o.left)),o.right!=null&&(t=Math.max(t,o.right)),o.top!=null&&(n=Math.max(n,o.top)),o.bottom!=null&&(r=Math.max(r,o.bottom)))}return{left:e,right:t,top:n,bottom:r}}const lr=Z.define();class nt{constructor(e,t,n,r){this.fromA=e,this.toA=t,this.fromB=n,this.toB=r}join(e){return new nt(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let r=e[t-1];if(!(r.fromA>n.toA)){if(r.toA<n.fromA)break;n=n.join(r),e.splice(t-1,1)}}return e.splice(t,0,n),e}static extendWithRanges(e,t){if(t.length==0)return e;let n=[];for(let r=0,s=0,o=0;;){let a=r<e.length?e[r].fromB:1e9,l=s<t.length?t[s]:1e9,O=Math.min(a,l);if(O==1e9)break;let c=O+o,d=O,h=c;for(;;)if(s<t.length&&t[s]<=d){let f=t[s+1];s+=2,d=Math.max(d,f);for(let p=r;p<e.length&&e[p].fromB<=d;p++)o=e[p].toA-e[p].toB;h=Math.max(h,f+o)}else if(r<e.length&&e[r].fromB<=d){let f=e[r++];d=Math.max(d,f.toB),h=Math.max(h,f.toA),o=f.toA-f.toB}else break;n.push(new nt(c,h,O,d))}return n}}class Qs{constructor(e,t,n){this.view=e,this.state=t,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=ye.empty(this.startState.doc.length);for(let s of n)this.changes=this.changes.compose(s.changes);let r=[];this.changes.iterChangedRanges((s,o,a,l)=>r.push(new nt(s,o,a,l))),this.changedRanges=r}static create(e,t,n){return new Qs(e,t,n)}get viewportChanged(){return(this.flags&4)>0}get viewportMoved(){return(this.flags&8)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&18)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}const ib=[];class pe{constructor(e,t,n=0){this.dom=e,this.length=t,this.flags=n,this.parent=null,e.cmTile=this}get breakAfter(){return this.flags&1}get children(){return ib}isWidget(){return!1}get isHidden(){return!1}isComposite(){return!1}isLine(){return!1}isText(){return!1}isBlock(){return!1}get domAttrs(){return null}sync(e){if(this.flags|=2,this.flags&4){this.flags&=-5;let t=this.domAttrs;t&&Yy(this.dom,t)}}toString(){return this.constructor.name+(this.children.length?`(${this.children})`:"")+(this.breakAfter?"#":"")}destroy(){this.parent=null}setDOM(e){this.dom=e,e.cmTile=this}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e,t=this.posAtStart){let n=t;for(let r of this.children){if(r==e)return n;n+=r.length+r.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}covers(e){return!0}coordsIn(e,t){return null}domPosFor(e,t){let n=Si(this.dom),r=this.length?e>0:t>0;return new ct(this.parent.dom,n+(r?1:0),e==0||e==this.length)}markDirty(e){this.flags&=-3,e&&(this.flags|=4),this.parent&&this.parent.flags&2&&this.parent.markDirty(!1)}get overrideDOMText(){return null}get root(){for(let e=this;e;e=e.parent)if(e instanceof bs)return e;return null}static get(e){return e.cmTile}}class ys extends pe{constructor(e){super(e,0),this._children=[]}isComposite(){return!0}get children(){return this._children}get lastChild(){return this.children.length?this.children[this.children.length-1]:null}append(e){this.children.push(e),e.parent=this}sync(e){if(this.flags&2)return;super.sync(e);let t=this.dom,n=null,r,s=(e==null?void 0:e.node)==t?e:null,o=0;for(let a of this.children){if(a.sync(e),o+=a.length+a.breakAfter,r=n?n.nextSibling:t.firstChild,s&&r!=a.dom&&(s.written=!0),a.dom.parentNode==t)for(;r&&r!=a.dom;)r=lh(r);else t.insertBefore(a.dom,r);n=a.dom}for(r=n?n.nextSibling:t.firstChild,s&&r&&(s.written=!0);r;)r=lh(r);this.length=o}}function lh(i){let e=i.nextSibling;return i.parentNode.removeChild(i),e}class bs extends ys{constructor(e,t){super(t),this.view=e}owns(e){for(;e;e=e.parent)if(e==this)return!0;return!1}isBlock(){return!0}nearest(e){for(;;){if(!e)return null;let t=pe.get(e);if(t&&this.owns(t))return t;e=e.parentNode}}blockTiles(e){for(let t=[],n=this,r=0,s=0;;)if(r==n.children.length){if(!t.length)return;n=n.parent,n.breakAfter&&s++,r=t.pop()}else{let o=n.children[r++];if(o instanceof Kt)t.push(r),n=o,r=0;else{let a=s+o.length,l=e(o,s);if(l!==void 0)return l;s=a+o.breakAfter}}}resolveBlock(e,t){let n,r=-1,s,o=-1;if(this.blockTiles((a,l)=>{let O=l+a.length;if(e>=l&&e<=O){if(a.isWidget()&&t>=-1&&t<=1){if(a.flags&32)return!0;a.flags&16&&(n=void 0)}(l<e||e==O&&(t<-1?a.length:a.covers(1)))&&(!n||!a.isWidget()&&n.isWidget())&&(n=a,r=e-l),(O>e||e==l&&(t>1?a.length:a.covers(-1)))&&(!s||!a.isWidget()&&s.isWidget())&&(s=a,o=e-l)}}),!n&&!s)throw new Error("No tile at position "+e);return n&&t<0||!s?{tile:n,offset:r}:{tile:s,offset:o}}}class Kt extends ys{constructor(e,t){super(e),this.wrapper=t}isBlock(){return!0}covers(e){return this.children.length?e<0?this.children[0].covers(-1):this.lastChild.covers(1):!1}get domAttrs(){return this.wrapper.attributes}static of(e,t){let n=new Kt(t||document.createElement(e.tagName),e);return t||(n.flags|=4),n}}class $n extends ys{constructor(e,t){super(e),this.attrs=t}isLine(){return!0}static start(e,t,n){let r=new $n(t||document.createElement("div"),e);return(!t||!n)&&(r.flags|=4),r}get domAttrs(){return this.attrs}resolveInline(e,t,n){let r=null,s=-1,o=null,a=-1;function l(c,d){for(let h=0,f=0;h<c.children.length&&f<=d;h++){let p=c.children[h],m=f+p.length;m>=d&&(p.isComposite()?l(p,d-f):(!o||o.isHidden&&(t>0||n&&rb(o,p)))&&(m>d||p.flags&32)?(o=p,a=d-f):(f<d||p.flags&16&&!p.isHidden)&&(r=p,s=d-f)),f=m}}l(this,e);let O=(t<0?r:o)||r||o;return O?{tile:O,offset:O==r?s:a}:null}coordsIn(e,t){let n=this.resolveInline(e,t,!0);return n?n.tile.coordsIn(Math.max(0,n.offset),t):nb(this)}domIn(e,t){let n=this.resolveInline(e,t);if(n){let{tile:r,offset:s}=n;if(this.dom.contains(r.dom))return r.isText()?new ct(r.dom,Math.min(r.dom.nodeValue.length,s)):r.domPosFor(s,r.flags&16?1:r.flags&32?-1:t);let o=n.tile.parent,a=!1;for(let l of o.children){if(a)return new ct(l.dom,0);l==n.tile&&(a=!0)}}return new ct(this.dom,0)}}function nb(i){let e=i.dom.lastChild;if(!e)return i.dom.getBoundingClientRect();let t=us(e);return t[t.length-1]||null}function rb(i,e){let t=i.coordsIn(0,1),n=e.coordsIn(0,1);return t&&n&&n.top<t.bottom}class Me extends ys{constructor(e,t){super(e),this.mark=t}get domAttrs(){return this.mark.attrs}static of(e,t){let n=new Me(t||document.createElement(e.tagName),e);return t||(n.flags|=4),n}}class Mi extends pe{constructor(e,t){super(e,t.length),this.text=t}sync(e){this.flags&2||(super.sync(e),this.dom.nodeValue!=this.text&&(e&&e.node==this.dom&&(e.written=!0),this.dom.nodeValue=this.text))}isText(){return!0}toString(){return JSON.stringify(this.text)}coordsIn(e,t){let n=this.dom.nodeValue.length;e>n&&(e=n);let r=e,s=e,o=0;e==0&&t<0||e==n&&t>=0?_.chrome||_.gecko||(e?(r--,o=1):s<n&&(s++,o=-1)):t<0?r--:s<n&&s++;let a=or(this.dom,r,s).getClientRects();if(!a.length)return null;let l=a[(o?o<0:t>=0)?0:a.length-1];return _.safari&&!o&&l.width==0&&(l=Array.prototype.find.call(a,O=>O.width)||l),o?ms(l,o<0):l||null}static of(e,t){let n=new Mi(t||document.createTextNode(e),e);return t||(n.flags|=2),n}}class Li extends pe{constructor(e,t,n,r){super(e,t,r),this.widget=n}isWidget(){return!0}get isHidden(){return this.widget.isHidden}covers(e){return this.flags&48?!1:(this.flags&(e<0?64:128))>0}coordsIn(e,t){return this.coordsInWidget(e,t,!1)}coordsInWidget(e,t,n){let r=this.widget.coordsAt(this.dom,e,t);if(r)return r;if(n)return ms(this.dom.getBoundingClientRect(),this.length?e==0:t<=0);{let s=this.dom.getClientRects(),o=null;if(!s.length)return null;let a=this.flags&16?!0:this.flags&32?!1:e>0;for(let l=a?s.length-1:0;o=s[l],!(e>0?l==0:l==s.length-1||o.top<o.bottom);l+=a?-1:1);return ms(o,!a)}}get overrideDOMText(){if(!this.length)return ie.empty;let{root:e}=this;if(!e)return ie.empty;let t=this.posAtStart;return e.view.state.doc.slice(t,t+this.length)}destroy(){super.destroy(),this.widget.destroy(this.dom)}static of(e,t,n,r,s){return s||(s=e.toDOM(t),e.editable||(s.contentEditable="false")),new Li(s,n,e,r)}}class Ss extends pe{constructor(e){let t=document.createElement("img");t.className="cm-widgetBuffer",t.setAttribute("aria-hidden","true"),super(t,0,e)}get isHidden(){return!0}get overrideDOMText(){return ie.empty}coordsIn(e){return this.dom.getBoundingClientRect()}}class sb{constructor(e){this.index=0,this.beforeBreak=!1,this.parents=[],this.tile=e}advance(e,t,n){let{tile:r,index:s,beforeBreak:o,parents:a}=this;for(;e||t>0;)if(r.isComposite())if(o){if(!e)break;n&&n.break(),e--,o=!1}else if(s==r.children.length){if(!e&&!a.length)break;n&&n.leave(r),o=!!r.breakAfter,{tile:r,index:s}=a.pop(),s++}else{let l=r.children[s],O=l.breakAfter;(t>0?l.length<=e:l.length<e)&&(!n||n.skip(l,0,l.length)!==!1||!l.isComposite)?(o=!!O,s++,e-=l.length):(a.push({tile:r,index:s}),r=l,s=0,n&&l.isComposite()&&n.enter(l))}else if(s==r.length)o=!!r.breakAfter,{tile:r,index:s}=a.pop(),s++;else if(e){let l=Math.min(e,r.length-s);n&&n.skip(r,s,s+l),e-=l,s+=l}else break;return this.tile=r,this.index=s,this.beforeBreak=o,this}get root(){return this.parents.length?this.parents[0].tile:this.tile}}class ob{constructor(e,t,n,r){this.from=e,this.to=t,this.wrapper=n,this.rank=r}}class ab{constructor(e,t,n){this.cache=e,this.root=t,this.blockWrappers=n,this.curLine=null,this.lastBlock=null,this.afterWidget=null,this.pos=0,this.wrappers=[],this.wrapperPos=0}addText(e,t,n,r){var s;this.flushBuffer();let o=this.ensureMarks(t,n),a=o.lastChild;if(a&&a.isText()&&!(a.flags&8)&&a.length+e.length<512){this.cache.reused.set(a,2);let l=o.children[o.children.length-1]=new Mi(a.dom,a.text+e);l.parent=o}else o.append(r||Mi.of(e,(s=this.cache.find(Mi))===null||s===void 0?void 0:s.dom));this.pos+=e.length,this.afterWidget=null}addComposition(e,t){let n=this.curLine;n.dom!=t.line.dom&&(n.setDOM(this.cache.reused.has(t.line)?Ba(t.line.dom):t.line.dom),this.cache.reused.set(t.line,2));let r=n;for(let a=t.marks.length-1;a>=0;a--){let l=t.marks[a],O=r.lastChild;if(O instanceof Me&&O.mark.eq(l.mark))O.dom!=l.dom&&O.setDOM(Ba(l.dom)),r=O;else{if(this.cache.reused.get(l)){let d=pe.get(l.dom);d&&d.setDOM(Ba(l.dom))}let c=Me.of(l.mark,l.dom);r.append(c),r=c}this.cache.reused.set(l,2)}let s=pe.get(e.text);s&&this.cache.reused.set(s,2);let o=new Mi(e.text,e.text.nodeValue);o.flags|=8,r.append(o)}addInlineWidget(e,t,n){let r=this.afterWidget&&e.flags&48&&(this.afterWidget.flags&48)==(e.flags&48);r||this.flushBuffer();let s=this.ensureMarks(t,n);!r&&!(e.flags&16)&&s.append(this.getBuffer(1)),s.append(e),this.pos+=e.length,this.afterWidget=e}addMark(e,t,n){this.flushBuffer(),this.ensureMarks(t,n).append(e),this.pos+=e.length,this.afterWidget=null}addBlockWidget(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}continueWidget(e){let t=this.afterWidget||this.lastBlock;t.length+=e,this.pos+=e}addLineStart(e,t){var n;e||(e=ch);let r=$n.start(e,t||((n=this.cache.find($n))===null||n===void 0?void 0:n.dom),!!t);this.getBlockPos().append(this.lastBlock=this.curLine=r)}addLine(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}addBreak(){this.lastBlock.flags|=1,this.endLine(),this.pos++}addLineStartIfNotCovered(e){this.blockPosCovered()||this.addLineStart(e)}ensureLine(e){this.curLine||this.addLineStart(e)}ensureMarks(e,t){var n;let r=this.curLine;for(let s=e.length-1;s>=0;s--){let o=e[s],a;if(t>0&&(a=r.lastChild)&&a instanceof Me&&a.mark.eq(o))r=a,t--;else{let l=Me.of(o,(n=this.cache.find(Me,O=>O.mark.eq(o)))===null||n===void 0?void 0:n.dom);r.append(l),r=l,t=0}}return r}endLine(){if(this.curLine){this.flushBuffer();let e=this.curLine.lastChild;(!e||!Oh(this.curLine,!1)||e.dom.nodeName!="BR"&&e.isWidget()&&!(_.ios&&Oh(this.curLine,!0)))&&this.curLine.append(this.cache.findWidget(Na,0,32)||new Li(Na.toDOM(),0,Na,32)),this.curLine=this.afterWidget=null}}updateBlockWrappers(){this.wrapperPos>this.pos+1e4&&(this.blockWrappers.goto(this.pos),this.wrappers.length=0);for(let e=this.wrappers.length-1;e>=0;e--)this.wrappers[e].to<this.pos&&this.wrappers.splice(e,1);for(let e=this.blockWrappers;e.value&&e.from<=this.pos;e.next())if(e.to>=this.pos){let t=new ob(e.from,e.to,e.value,e.rank),n=this.wrappers.length;for(;n>0&&(this.wrappers[n-1].rank-t.rank||this.wrappers[n-1].to-t.to)<0;)n--;this.wrappers.splice(n,0,t)}this.wrapperPos=this.pos}getBlockPos(){var e;this.updateBlockWrappers();let t=this.root;for(let n of this.wrappers){let r=t.lastChild;if(n.from<this.pos&&r instanceof Kt&&r.wrapper.eq(n.wrapper))t=r;else{let s=Kt.of(n.wrapper,(e=this.cache.find(Kt,o=>o.wrapper.eq(n.wrapper)))===null||e===void 0?void 0:e.dom);t.append(s),t=s}}return t}blockPosCovered(){let e=this.lastBlock;return e!=null&&!e.breakAfter&&(!e.isWidget()||(e.flags&160)>0)}getBuffer(e){let t=2|(e<0?16:32),n=this.cache.find(Ss,void 0,1);return n&&(n.flags=t),n||new Ss(t)}flushBuffer(){this.afterWidget&&!(this.afterWidget.flags&32)&&(this.afterWidget.parent.append(this.getBuffer(-1)),this.afterWidget=null)}}class lb{constructor(e){this.skipCount=0,this.text="",this.textOff=0,this.cursor=e.iter()}skip(e){this.textOff+e<=this.text.length?this.textOff+=e:(this.skipCount+=e-(this.text.length-this.textOff),this.text="",this.textOff=0)}next(e){if(this.textOff==this.text.length){let{value:r,lineBreak:s,done:o}=this.cursor.next(this.skipCount);if(this.skipCount=0,o)throw new Error("Ran out of text content when drawing inline views");this.text=r;let a=this.textOff=Math.min(e,r.length);return s?null:r.slice(0,a)}let t=Math.min(this.text.length,this.textOff+e),n=this.text.slice(this.textOff,t);return this.textOff=t,n}}const ws=[Li,$n,Mi,Me,Ss,Kt,bs];for(let i=0;i<ws.length;i++)ws[i].bucket=i;class Ob{constructor(e){this.view=e,this.buckets=ws.map(()=>[]),this.index=ws.map(()=>0),this.reused=new Map}add(e){let t=e.constructor.bucket,n=this.buckets[t];n.length<6?n.push(e):n[this.index[t]=(this.index[t]+1)%6]=e}find(e,t,n=2){let r=e.bucket,s=this.buckets[r],o=this.index[r];for(let a=s.length-1;a>=0;a--){let l=(a+o)%s.length,O=s[l];if((!t||t(O))&&!this.reused.has(O))return s.splice(l,1),l<o&&this.index[r]--,this.reused.set(O,n),O}return null}findWidget(e,t,n){let r=this.buckets[0];if(r.length)for(let s=0,o=0;;s++){if(s==r.length){if(o)return null;o=1,s=0}let a=r[s];if(!this.reused.has(a)&&(o==0?a.widget.compare(e):a.widget.constructor==e.constructor&&e.updateDOM(a.dom,this.view,a.widget)))return r.splice(s,1),s<this.index[0]&&this.index[0]--,a.widget==e&&a.length==t&&(a.flags&497)==n?(this.reused.set(a,1),a):(this.reused.set(a,2),new Li(a.dom,t,e,a.flags&-498|n))}}reuse(e){return this.reused.set(e,1),e}maybeReuse(e,t=2){if(!this.reused.has(e))return this.reused.set(e,t),e.dom}clear(){for(let e=0;e<this.buckets.length;e++)this.buckets[e].length=this.index[e]=0}}class cb{constructor(e,t,n,r,s){this.view=e,this.decorations=r,this.disallowBlockEffectsFor=s,this.openWidget=!1,this.openMarks=0,this.cache=new Ob(e),this.text=new lb(e.state.doc),this.builder=new ab(this.cache,new bs(e,e.contentDOM),ee.iter(n)),this.cache.reused.set(t,2),this.old=new sb(t),this.reuseWalker={skip:(o,a,l)=>{if(this.cache.add(o),o.isComposite())return!1},enter:o=>this.cache.add(o),leave:()=>{},break:()=>{}}}run(e,t){let n=t&&this.getCompositionContext(t.text);for(let r=0,s=0,o=0;;){let a=o<e.length?e[o++]:null,l=a?a.fromA:this.old.root.length;if(l>r){let O=l-r;this.preserve(O,!o,!a),r=l,s+=O}if(!a)break;t&&a.fromA<=t.range.fromA&&a.toA>=t.range.toA?(this.forward(a.fromA,t.range.fromA,t.range.fromA<t.range.toA?1:-1),this.emit(s,t.range.fromB),this.cache.clear(),this.builder.addComposition(t,n),this.text.skip(t.range.toB-t.range.fromB),this.forward(t.range.fromA,a.toA),this.emit(t.range.toB,a.toB)):(this.forward(a.fromA,a.toA),this.emit(s,a.toB)),s=a.toB,r=a.toA}return this.builder.curLine&&this.builder.endLine(),this.builder.root}preserve(e,t,n){let r=fb(this.old),s=this.openMarks;this.old.advance(e,n?1:-1,{skip:(o,a,l)=>{if(o.isWidget())if(this.openWidget)this.builder.continueWidget(l-a);else{let O=l>0||a<o.length?Li.of(o.widget,this.view,l-a,o.flags&496,this.cache.maybeReuse(o)):this.cache.reuse(o);O.flags&256?(O.flags&=-2,this.builder.addBlockWidget(O)):(this.builder.ensureLine(null),this.builder.addInlineWidget(O,r,s),s=r.length)}else if(o.isText())this.builder.ensureLine(null),!a&&l==o.length&&!this.cache.reused.has(o)?this.builder.addText(o.text,r,s,this.cache.reuse(o)):(this.cache.add(o),this.builder.addText(o.text.slice(a,l),r,s)),s=r.length;else if(o.isLine())o.flags&=-2,this.cache.reused.set(o,1),this.builder.addLine(o);else if(o instanceof Ss)this.cache.add(o);else if(o instanceof Me)this.builder.ensureLine(null),this.builder.addMark(o,r,s),this.cache.reused.set(o,1),s=r.length;else return!1;this.openWidget=!1},enter:o=>{o.isLine()?this.builder.addLineStart(o.attrs,this.cache.maybeReuse(o)):(this.cache.add(o),o instanceof Me&&r.unshift(o.mark)),this.openWidget=!1},leave:o=>{o.isLine()?r.length&&(r.length=s=0):o instanceof Me&&(r.shift(),s=Math.min(s,r.length))},break:()=>{this.builder.addBreak(),this.openWidget=!1}}),this.text.skip(e)}emit(e,t){let n=null,r=this.builder,s=0,o=ee.spans(this.decorations,e,t,{point:(a,l,O,c,d,h)=>{if(O instanceof Ei){if(this.disallowBlockEffectsFor[h]){if(O.block)throw new RangeError("Block decorations may not be specified via plugins");if(l>this.view.state.doc.lineAt(a).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}if(s=c.length,d>c.length)r.continueWidget(l-a);else{let f=O.widget||(O.block?gn.block:gn.inline),p=db(O),m=this.cache.findWidget(f,l-a,p)||Li.of(f,this.view,l-a,p);O.block?(O.startSide>0&&r.addLineStartIfNotCovered(n),r.addBlockWidget(m)):(r.ensureLine(n),r.addInlineWidget(m,c,d))}n=null}else n=hb(n,O);l>a&&this.text.skip(l-a)},span:(a,l,O,c)=>{for(let d=a;d<l;){let h=this.text.next(Math.min(512,l-d));h==null?(r.addLineStartIfNotCovered(n),r.addBreak(),d++):(r.ensureLine(n),r.addText(h,O,d==a?c:O.length),d+=h.length),n=null}}});r.addLineStartIfNotCovered(n),this.openWidget=o>s,this.openMarks=o}forward(e,t,n=1){t-e<=10?this.old.advance(t-e,n,this.reuseWalker):(this.old.advance(5,-1,this.reuseWalker),this.old.advance(t-e-10,-1),this.old.advance(5,n,this.reuseWalker))}getCompositionContext(e){let t=[],n=null;for(let r=e.parentNode;;r=r.parentNode){let s=pe.get(r);if(r==this.view.contentDOM)break;s instanceof Me?t.push(s):s!=null&&s.isLine()?n=s:s instanceof Kt||(r.nodeName=="DIV"&&!n&&r!=this.view.contentDOM?n=new $n(r,ch):n||t.push(Me.of(new er({tagName:r.nodeName.toLowerCase(),attributes:Wy(r)}),r)))}return{line:n,marks:t}}}function Oh(i,e){let t=n=>{for(let r of n.children)if((e?r.isText():r.length)||t(r))return!0;return!1};return t(i)}function db(i){let e=i.isReplace?(i.startSide<0?64:0)|(i.endSide>0?128:0):i.startSide>0?32:16;return i.block&&(e|=256),e}const ch={class:"cm-line"};function hb(i,e){let t=e.spec.attributes,n=e.spec.class;return!t&&!n||(i||(i={class:"cm-line"}),t&&qa(t,i),n&&(i.class+=" "+n)),i}function fb(i){let e=[];for(let t=i.parents.length;t>1;t--){let n=t==i.parents.length?i.tile:i.parents[t].tile;n instanceof Me&&e.push(n.mark)}return e}function Ba(i){let e=pe.get(i);return e&&e.setDOM(i.cloneNode()),i}class gn extends bi{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}gn.inline=new gn("span"),gn.block=new gn("div");const Na=new class extends bi{toDOM(){return document.createElement("br")}get isHidden(){return!0}get editable(){return!0}};class dh{constructor(e){this.view=e,this.decorations=[],this.blockWrappers=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.editContextFormatting=H.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.updateDeco(),this.tile=new bs(e,e.contentDOM),this.updateInner([new nt(0,0,0,e.state.doc.length)],null)}update(e){var t;let n=e.changedRanges;this.minWidth>0&&n.length&&(n.every(({fromA:c,toA:d})=>d<this.minWidthFrom||c>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let r=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((t=this.domChanged)===null||t===void 0)&&t.newSel?r=this.domChanged.newSel.head:!Sb(e.changes,this.hasComposition)&&!e.selectionSet&&(r=e.state.selection.main.head));let s=r>-1?pb(this.view,e.changes,r):null;if(this.domChanged=null,this.hasComposition){let{from:c,to:d}=this.hasComposition;n=new nt(c,d,e.changes.mapPos(c,-1),e.changes.mapPos(d,1)).addToSet(n.slice())}this.hasComposition=s?{from:s.range.fromB,to:s.range.toB}:null,(_.ie||_.chrome)&&!s&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let o=this.decorations,a=this.blockWrappers;this.updateDeco();let l=gb(o,this.decorations,e.changes);l.length&&(n=nt.extendWithRanges(n,l));let O=yb(a,this.blockWrappers,e.changes);return O.length&&(n=nt.extendWithRanges(n,O)),s&&!n.some(c=>c.fromA<=s.range.fromA&&c.toA>=s.range.toA)&&(n=s.range.addToSet(n.slice())),this.tile.flags&2&&n.length==0?!1:(this.updateInner(n,s),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t){this.view.viewState.mustMeasureContent=!0;let{observer:n}=this.view;n.ignore(()=>{if(t||e.length){let o=this.tile,a=new cb(this.view,o,this.blockWrappers,this.decorations,this.dynamicDecorationMap);t&&pe.get(t.text)&&a.cache.reused.set(pe.get(t.text),2),this.tile=a.run(e,t),Fa(o,a.cache.reused)}this.tile.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.tile.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let s=_.chrome||_.ios?{node:n.selectionRange.focusNode,written:!1}:void 0;this.tile.sync(s),s&&(s.written||n.selectionRange.focusNode!=s.node||!this.tile.dom.contains(s.node))&&(this.forceSelection=!0),this.tile.dom.style.height=""});let r=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let s of this.tile.children)s.isWidget()&&s.widget instanceof Ha&&r.push(s.dom);n.updateGaps(r)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let t of e.transactions)for(let n of t.effects)n.is(ih)&&(this.editContextFormatting=n.value)}updateSelection(e=!1,t=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let{dom:n}=this.tile,r=this.view.root.activeElement,s=r==n,o=!s&&!(this.view.state.facet(Ht)||n.tabIndex>-1)&&rr(n,this.view.observer.selectionRange)&&!(r&&n.contains(r));if(!(s||t||o))return;let a=this.forceSelection;this.forceSelection=!1;let l=this.view.state.selection.main,O,c;if(l.empty?c=O=this.inlineDOMNearPos(l.anchor,l.assoc||1):(c=this.inlineDOMNearPos(l.head,l.head==l.from?1:-1),O=this.inlineDOMNearPos(l.anchor,l.anchor==l.from?1:-1)),_.gecko&&l.empty&&!this.hasComposition&&ub(O)){let h=document.createTextNode("");this.view.observer.ignore(()=>O.node.insertBefore(h,O.node.childNodes[O.offset]||null)),O=c=new ct(h,0),a=!0}let d=this.view.observer.selectionRange;(a||!d.focusNode||(!sr(O.node,O.offset,d.anchorNode,d.anchorOffset)||!sr(c.node,c.offset,d.focusNode,d.focusOffset))&&!this.suppressWidgetCursorChange(d,l))&&(this.view.observer.ignore(()=>{_.android&&_.chrome&&n.contains(d.focusNode)&&bb(d.focusNode,n)&&(n.blur(),n.focus({preventScroll:!0}));let h=nr(this.view.root);if(h)if(l.empty){if(_.gecko){let f=mb(O.node,O.offset);if(f&&f!=3){let p=(f==1?Ud:jd)(O.node,O.offset);p&&(O=new ct(p.node,p.offset))}}h.collapse(O.node,O.offset),l.bidiLevel!=null&&h.caretBidiLevel!==void 0&&(h.caretBidiLevel=l.bidiLevel)}else if(h.extend){h.collapse(O.node,O.offset);try{h.extend(c.node,c.offset)}catch{}}else{let f=document.createRange();l.anchor>l.head&&([O,c]=[c,O]),f.setEnd(c.node,c.offset),f.setStart(O.node,O.offset),h.removeAllRanges(),h.addRange(f)}o&&this.view.root.activeElement==n&&(n.blur(),r&&r.focus())}),this.view.observer.setSelectionRange(O,c)),this.impreciseAnchor=O.precise?null:new ct(d.anchorNode,d.anchorOffset),this.impreciseHead=c.precise?null:new ct(d.focusNode,d.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&sr(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,n=nr(e.root),{anchorNode:r,anchorOffset:s}=e.observer.selectionRange;if(!n||!t.empty||!t.assoc||!n.modify)return;let o=this.lineAt(t.head,t.assoc);if(!o)return;let a=o.posAtStart;if(t.head==a||t.head==a+o.length)return;let l=this.coordsAt(t.head,-1),O=this.coordsAt(t.head,1);if(!l||!O||l.bottom>O.top)return;let c=this.domAtPos(t.head+t.assoc,t.assoc);n.collapse(c.node,c.offset),n.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let d=e.observer.selectionRange;e.docView.posFromDOM(d.anchorNode,d.anchorOffset)!=t.from&&n.collapse(r,s)}posFromDOM(e,t){let n=this.tile.nearest(e);if(!n)return this.tile.dom.compareDocumentPosition(e)&2?0:this.view.state.doc.length;let r=n.posAtStart;if(n.isComposite()){let s;if(e==n.dom)s=n.dom.childNodes[t];else{let o=Ft(e)==0?0:t==0?-1:1;for(;;){let a=e.parentNode;if(a==n.dom)break;o==0&&a.firstChild!=a.lastChild&&(e==a.firstChild?o=-1:o=1),e=a}o<0?s=e:s=e.nextSibling}if(s==n.dom.firstChild)return r;for(;s&&!pe.get(s);)s=s.nextSibling;if(!s)return r+n.length;for(let o=0,a=r;;o++){let l=n.children[o];if(l.dom==s)return a;a+=l.length+l.breakAfter}}else return n.isText()?e==n.dom?r+t:r+(t?n.length:0):r}domAtPos(e,t){let{tile:n,offset:r}=this.tile.resolveBlock(e,t);return n.isWidget()?n.domPosFor(e,t):n.domIn(r,t)}inlineDOMNearPos(e,t){let n,r=-1,s=!1,o,a=-1,l=!1;return this.tile.blockTiles((O,c)=>{if(O.isWidget()){if(O.flags&32&&c>=e)return!0;O.flags&16&&(s=!0)}else{let d=c+O.length;if(c<=e&&(n=O,r=e-c,s=d<e),d>=e&&!o&&(o=O,a=e-c,l=c>e),c>e&&o)return!0}}),!n&&!o?this.domAtPos(e,t):(s&&o?n=null:l&&n&&(o=null),n&&t<0||!o?n.domIn(r,t):o.domIn(a,t))}coordsAt(e,t){let{tile:n,offset:r}=this.tile.resolveBlock(e,t);return n.isWidget()?n.widget instanceof Ha?null:n.coordsInWidget(r,t,!0):n.coordsIn(r,t)}lineAt(e,t){let{tile:n}=this.tile.resolveBlock(e,t);return n.isLine()?n:null}coordsForChar(e){let{tile:t,offset:n}=this.tile.resolveBlock(e,1);if(!t.isLine())return null;function r(s,o){if(s.isComposite())for(let a of s.children){if(a.length>=o){let l=r(a,o);if(l)return l}if(o-=a.length,o<0)break}else if(s.isText()&&o<s.length){let a=we(s.text,o);if(a==o)return null;let l=or(s.dom,o,a).getClientRects();for(let O=0;O<l.length;O++){let c=l[O];if(O==l.length-1||c.top<c.bottom&&c.left<c.right)return c}}return null}return r(t,n)}measureVisibleLineHeights(e){let t=[],{from:n,to:r}=e,s=this.view.contentDOM.clientWidth,o=s>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=-1,l=this.view.textDirection==fe.LTR,O=0,c=(d,h,f)=>{for(let p=0;p<d.children.length&&!(h>r);p++){let m=d.children[p],$=h+m.length,g=m.dom.getBoundingClientRect(),{height:y}=g;if(f&&!p&&(O+=g.top-f.top),m instanceof Kt)$>n&&c(m,h,g);else if(h>=n&&(O>0&&t.push(-O),t.push(y+O),O=0,o)){let S=m.dom.lastChild,R=S?us(S):[];if(R.length){let P=R[R.length-1],v=l?P.right-g.left:g.right-P.left;v>a&&(a=v,this.minWidth=s,this.minWidthFrom=h,this.minWidthTo=$)}}f&&p==d.children.length-1&&(O+=f.bottom-g.bottom),h=$+m.breakAfter}};return c(this.tile,0,null),t}textDirectionAt(e){let{tile:t}=this.tile.resolveBlock(e,1);return getComputedStyle(t.dom).direction=="rtl"?fe.RTL:fe.LTR}measureTextSize(){let e=this.tile.blockTiles(o=>{if(o.isLine()&&o.children.length&&o.length<=20){let a=0,l;for(let O of o.children){if(!O.isText()||/[^ -~]/.test(O.text))return;let c=us(O.dom);if(c.length!=1)return;a+=c[0].width,l=c[0].height}if(a)return{lineHeight:o.dom.getBoundingClientRect().height,charWidth:a/o.length,textHeight:l}}});if(e)return e;let t=document.createElement("div"),n,r,s;return t.className="cm-line",t.style.width="99999px",t.style.position="absolute",t.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.tile.dom.appendChild(t);let o=us(t.firstChild)[0];n=t.getBoundingClientRect().height,r=o&&o.width?o.width/27:7,s=o&&o.height?o.height:n,t.remove()}),{lineHeight:n,charWidth:r,textHeight:s}}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,r=0;;r++){let s=r==t.viewports.length?null:t.viewports[r],o=s?s.from-1:this.view.state.doc.length;if(o>n){let a=(t.lineBlockAt(o).bottom-t.lineBlockAt(n).top)/this.view.scaleY;e.push(H.replace({widget:new Ha(a),block:!0,inclusive:!0,isBlockGap:!0}).range(n,o))}if(!s)break;n=s.to+1}return H.set(e)}updateDeco(){let e=1,t=this.view.state.facet(gs).map(s=>(this.dynamicDecorationMap[e++]=typeof s=="function")?s(this.view):s),n=!1,r=this.view.state.facet(Ia).map((s,o)=>{let a=typeof s=="function";return a&&(n=!0),a?s(this.view):s});for(r.length&&(this.dynamicDecorationMap[e++]=n,t.push(ee.join(r))),this.decorations=[this.editContextFormatting,...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1;this.blockWrappers=this.view.state.facet(rh).map(s=>typeof s=="function"?s(this.view):s)}scrollIntoView(e){var t;if(e.isSnapshot){let c=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=c.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}for(let c of this.view.state.facet(th))try{if(c(this.view,e.range,e))return!0}catch(d){Be(this.view.state,d,"scroll handler")}let{range:n}=e,r=this.coordsAt(n.head,(t=n.assoc)!==null&&t!==void 0?t:n.empty?0:n.head>n.anchor?-1:1),s;if(!r)return;!n.empty&&(s=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,s.left),top:Math.min(r.top,s.top),right:Math.max(r.right,s.right),bottom:Math.max(r.bottom,s.bottom)});let o=Da(this.view),a={left:r.left-o.left,top:r.top-o.top,right:r.right+o.right,bottom:r.bottom+o.bottom},{offsetWidth:l,offsetHeight:O}=this.view.scrollDOM;if(Uy(this.view.scrollDOM,a,n.head<n.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,l),-l),Math.max(Math.min(e.yMargin,O),-O),this.view.textDirection==fe.LTR),window.visualViewport&&window.innerHeight-window.visualViewport.height>1&&(r.top>window.pageYOffset+window.visualViewport.offsetTop+window.visualViewport.height||r.bottom<window.pageYOffset+window.visualViewport.offsetTop)){let c=this.view.docView.lineAt(n.head,1);c&&c.dom.scrollIntoView({block:"nearest"})}}lineHasWidget(e){let t=n=>n.isWidget()||n.children.some(t);return t(this.tile.resolveBlock(e,1).tile)}destroy(){Fa(this.tile)}}function Fa(i,e){let t=e==null?void 0:e.get(i);if(t!=1){t==null&&i.destroy();for(let n of i.children)Fa(n,e)}}function ub(i){return i.node.nodeType==1&&i.node.firstChild&&(i.offset==0||i.node.childNodes[i.offset-1].contentEditable=="false")&&(i.offset==i.node.childNodes.length||i.node.childNodes[i.offset].contentEditable=="false")}function hh(i,e){let t=i.observer.selectionRange;if(!t.focusNode)return null;let n=Ud(t.focusNode,t.focusOffset),r=jd(t.focusNode,t.focusOffset),s=n||r;if(r&&n&&r.node!=n.node){let a=pe.get(r.node);if(!a||a.isText()&&a.text!=r.node.nodeValue)s=r;else if(i.docView.lastCompositionAfterCursor){let l=pe.get(n.node);!l||l.isText()&&l.text!=n.node.nodeValue||(s=r)}}if(i.docView.lastCompositionAfterCursor=s!=n,!s)return null;let o=e-s.offset;return{from:o,to:o+s.node.nodeValue.length,node:s.node}}function pb(i,e,t){let n=hh(i,t);if(!n)return null;let{node:r,from:s,to:o}=n,a=r.nodeValue;if(/[\n\r]/.test(a)||i.state.doc.sliceString(n.from,n.to)!=a)return null;let l=e.invertedDesc;return{range:new nt(l.mapPos(s),l.mapPos(o),s,o),text:r}}function mb(i,e){return i.nodeType!=1?0:(e&&i.childNodes[e-1].contentEditable=="false"?1:0)|(e<i.childNodes.length&&i.childNodes[e].contentEditable=="false"?2:0)}let $b=class{constructor(){this.changes=[]}compareRange(e,t){fn(e,t,this.changes)}comparePoint(e,t){fn(e,t,this.changes)}boundChange(e){fn(e,e,this.changes)}};function gb(i,e,t){let n=new $b;return ee.compare(i,e,t,n),n.changes}class Qb{constructor(){this.changes=[]}compareRange(e,t){fn(e,t,this.changes)}comparePoint(){}boundChange(e){fn(e,e,this.changes)}}function yb(i,e,t){let n=new Qb;return ee.compare(i,e,t,n),n.changes}function bb(i,e){for(let t=i;t&&t!=e;t=t.assignedSlot||t.parentNode)if(t.nodeType==1&&t.contentEditable=="false")return!0;return!1}function Sb(i,e){let t=!1;return e&&i.iterChangedRanges((n,r)=>{n<e.to&&r>e.from&&(t=!0)}),t}class Ha extends bi{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}function wb(i,e,t=1){let n=i.charCategorizer(e),r=i.doc.lineAt(e),s=e-r.from;if(r.length==0)return b.cursor(e);s==0?t=1:s==r.length&&(t=-1);let o=s,a=s;t<0?o=we(r.text,s,!1):a=we(r.text,s);let l=n(r.text.slice(o,a));for(;o>0;){let O=we(r.text,o,!1);if(n(r.text.slice(O,o))!=l)break;o=O}for(;a<r.length;){let O=we(r.text,a);if(n(r.text.slice(a,O))!=l)break;a=O}return b.range(o+r.from,a+r.from)}function Pb(i,e,t,n,r){let s=Math.round((n-e.left)*i.defaultCharacterWidth);if(i.lineWrapping&&t.height>i.defaultLineHeight*1.5){let a=i.viewState.heightOracle.textHeight,l=Math.floor((r-t.top-(i.defaultLineHeight-a)*.5)/a);s+=l*i.viewState.heightOracle.lineLength}let o=i.state.sliceDoc(t.from,t.to);return t.from+Ry(o,s,i.state.tabSize)}function xb(i,e,t){let n=i.lineBlockAt(e);if(Array.isArray(n.type)){let r;for(let s of n.type){if(s.from>e)break;if(!(s.to<e)){if(s.from<e&&s.to>e)return s;(!r||s.type==je.Text&&(r.type!=s.type||(t<0?s.from<e:s.to>e)))&&(r=s)}}return r||n}return n}function Tb(i,e,t,n){let r=xb(i,e.head,e.assoc||-1),s=!n||r.type!=je.Text||!(i.lineWrapping||r.widgetLineBreaks)?null:i.coordsAtPos(e.assoc<0&&e.head>r.from?e.head-1:e.head);if(s){let o=i.dom.getBoundingClientRect(),a=i.textDirectionAt(r.from),l=i.posAtCoords({x:t==(a==fe.LTR)?o.right-1:o.left+1,y:(s.top+s.bottom)/2});if(l!=null)return b.cursor(l,t?-1:1)}return b.cursor(t?r.to:r.from,t?-1:1)}function fh(i,e,t,n){let r=i.state.doc.lineAt(e.head),s=i.bidiSpans(r),o=i.textDirectionAt(r.from);for(let a=e,l=null;;){let O=Ky(r,s,o,a,t),c=Dd;if(!O){if(r.number==(t?i.state.doc.lines:1))return a;c=`
539
+ `,r=i.state.doc.line(r.number+(t?1:-1)),s=i.bidiSpans(r),O=i.visualLineSide(r,!t)}if(l){if(!l(c))return a}else{if(!n)return O;l=n(c)}a=O}}function vb(i,e,t){let n=i.state.charCategorizer(e),r=n(t);return s=>{let o=n(s);return r==ge.Space&&(r=o),r==o}}function kb(i,e,t,n){let r=e.head,s=t?1:-1;if(r==(t?i.state.doc.length:0))return b.cursor(r,e.assoc);let o=e.goalColumn,a,l=i.contentDOM.getBoundingClientRect(),O=i.coordsAtPos(r,e.assoc||((e.empty?t:e.head==e.from)?1:-1)),c=i.documentTop;if(O)o==null&&(o=O.left-l.left),a=s<0?O.top:O.bottom;else{let p=i.viewState.lineBlockAt(r);o==null&&(o=Math.min(l.right-l.left,i.defaultCharacterWidth*(r-p.from))),a=(s<0?p.top:p.bottom)+c}let d=l.left+o,h=i.viewState.heightOracle.textHeight>>1,f=n??h;for(let p=0;;p+=h){let m=a+(f+p)*s,$=Ja(i,{x:d,y:m},!1,s);if(t?m>l.bottom:m<l.top)return b.cursor($.pos,$.assoc);let g=i.coordsAtPos($.pos,$.assoc),y=g?(g.top+g.bottom)/2:0;if(!g||(t?y>a:y<a))return b.cursor($.pos,$.assoc,void 0,o)}}function Or(i,e,t){for(;;){let n=0;for(let r of i)r.between(e-1,e+1,(s,o,a)=>{if(e>s&&e<o){let l=n||t||(e-s<o-e?-1:1);e=l<0?s:o,n=l}});if(!n)return e}}function uh(i,e){let t=null;for(let n=0;n<e.ranges.length;n++){let r=e.ranges[n],s=null;if(r.empty){let o=Or(i,r.from,0);o!=r.from&&(s=b.cursor(o,-1))}else{let o=Or(i,r.from,-1),a=Or(i,r.to,1);(o!=r.from||a!=r.to)&&(s=b.range(r.from==r.anchor?o:a,r.from==r.head?o:a))}s&&(t||(t=e.ranges.slice()),t[n]=s)}return t?b.create(t,e.mainIndex):e}function Ka(i,e,t){let n=Or(i.state.facet(ar).map(r=>r(i)),t.from,e.head>t.from?-1:1);return n==t.from?t:b.cursor(n,n<t.from?1:-1)}class vt{constructor(e,t){this.pos=e,this.assoc=t}}function Ja(i,e,t,n){let r=i.contentDOM.getBoundingClientRect(),s=r.top+i.viewState.paddingTop,{x:o,y:a}=e,l=a-s,O;for(;;){if(l<0)return new vt(0,1);if(l>i.viewState.docHeight)return new vt(i.state.doc.length,-1);if(O=i.elementAtHeight(l),n==null)break;if(O.type==je.Text){if(n<0?O.to<i.viewport.from:O.from>i.viewport.to)break;let h=i.docView.coordsAt(n<0?O.from:O.to,n>0?-1:1);if(h&&(n<0?h.top<=l+s:h.bottom>=l+s))break}let d=i.viewState.heightOracle.textHeight/2;l=n>0?O.bottom+d:O.top-d}if(i.viewport.from>=O.to||i.viewport.to<=O.from){if(t)return null;if(O.type==je.Text){let d=Pb(i,r,O,o,a);return new vt(d,d==O.from?1:-1)}}if(O.type!=je.Text)return l<(O.top+O.bottom)/2?new vt(O.from,1):new vt(O.to,-1);let c=i.docView.lineAt(O.from,2);return(!c||c.length!=O.length)&&(c=i.docView.lineAt(O.from,-2)),new Xb(i,o,a,i.textDirectionAt(O.from)).scanTile(c,O.from)}class Xb{constructor(e,t,n,r){this.view=e,this.x=t,this.y=n,this.baseDir=r,this.line=null,this.spans=null}bidiSpansAt(e){return(!this.line||this.line.from>e||this.line.to<e)&&(this.line=this.view.state.doc.lineAt(e),this.spans=this.view.bidiSpans(this.line)),this}baseDirAt(e,t){let{line:n,spans:r}=this.bidiSpansAt(e);return r[Tt.find(r,e-n.from,-1,t)].level==this.baseDir}dirAt(e,t){let{line:n,spans:r}=this.bidiSpansAt(e);return r[Tt.find(r,e-n.from,-1,t)].dir}bidiIn(e,t){let{spans:n,line:r}=this.bidiSpansAt(e);return n.length>1||n.length&&(n[0].level!=this.baseDir||n[0].to+r.from<t)}scan(e,t){let n=0,r=e.length-1,s=new Set,o=this.bidiIn(e[0],e[r]),a,l,O=-1,c=1e9,d;e:for(;n<r;){let f=r-n,p=n+r>>1;t:if(s.has(p)){let $=n+Math.floor(Math.random()*f);for(let g=0;g<f;g++){if(!s.has($)){p=$;break t}$++,$==r&&($=n)}break e}s.add(p);let m=t(p);if(m)for(let $=0;$<m.length;$++){let g=m[$],y=0;if(!(g.width==0&&m.length>1)){if(g.bottom<this.y)(!a||a.bottom<g.bottom)&&(a=g),y=1;else if(g.top>this.y)(!l||l.top>g.top)&&(l=g),y=-1;else{let S=g.left>this.x?this.x-g.left:g.right<this.x?this.x-g.right:0,R=Math.abs(S);R<c&&(O=p,c=R,d=g),S&&(y=S<0==(this.baseDir==fe.LTR)?-1:1)}y==-1&&(!o||this.baseDirAt(e[p],1))?r=p:y==1&&(!o||this.baseDirAt(e[p+1],-1))&&(n=p+1)}}}if(!d){let f=a&&(!l||this.y-a.bottom<l.top-this.y)?a:l;return this.y=(f.top+f.bottom)/2,this.scan(e,t)}if(c){if(a&&a.bottom>d.top)return this.y=a.bottom-1,this.scan(e,t);if(l&&l.top<d.bottom)return this.y=l.top+1,this.scan(e,t)}let h=(o?this.dirAt(e[O],1):this.baseDir)==fe.LTR;return{i:O,after:this.x>(d.left+d.right)/2==h}}scanText(e,t){let n=[];for(let s=0;s<e.length;s=we(e.text,s))n.push(t+s);n.push(t+e.length);let r=this.scan(n,s=>{let o=n[s]-t,a=n[s+1]-t;return or(e.dom,o,a).getClientRects()});return r.after?new vt(n[r.i+1],-1):new vt(n[r.i],1)}scanTile(e,t){if(!e.length)return new vt(t,1);if(e.children.length==1){let a=e.children[0];if(a.isText())return this.scanText(a,t);if(a.isComposite())return this.scanTile(a,t)}let n=[t];for(let a=0,l=t;a<e.children.length;a++)n.push(l+=e.children[a].length);let r=this.scan(n,a=>{let l=e.children[a];return l.flags&48?null:(l.dom.nodeType==1?l.dom:or(l.dom,0,l.length)).getClientRects()}),s=e.children[r.i],o=n[r.i];return s.isText()?this.scanText(s,o):s.isComposite()?this.scanTile(s,o):r.after?new vt(n[r.i+1],-1):new vt(o,1)}}const Qn="￿";class _b{constructor(e,t){this.points=e,this.view=t,this.text="",this.lineSeparator=t.state.facet(se.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=Qn}readRange(e,t){if(!e)return this;let n=e.parentNode;for(let r=e;;){this.findPointBefore(n,r);let s=this.text.length;this.readNode(r);let o=pe.get(r),a=r.nextSibling;if(a==t){o!=null&&o.breakAfter&&!a&&n!=this.view.contentDOM&&this.lineBreak();break}let l=pe.get(a);(o&&l?o.breakAfter:(o?o.breakAfter:ps(r))||ps(a)&&(r.nodeName!="BR"||o!=null&&o.isWidget())&&this.text.length>s)&&!Zb(a,t)&&this.lineBreak(),r=a}return this.findPointBefore(n,t),this}readTextNode(e){let t=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,t.length));for(let n=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let s=-1,o=1,a;if(this.lineSeparator?(s=t.indexOf(this.lineSeparator,n),o=this.lineSeparator.length):(a=r.exec(t))&&(s=a.index,o=a[0].length),this.append(t.slice(n,s<0?t.length:s)),s<0)break;if(this.lineBreak(),o>1)for(let l of this.points)l.node==e&&l.pos>this.text.length&&(l.pos-=o-1);n=s+o}}readNode(e){let t=pe.get(e),n=t&&t.overrideDOMText;if(n!=null){this.findPointInside(e,n.length);for(let r=n.iter();!r.next().done;)r.lineBreak?this.lineBreak():this.append(r.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length)}findPointInside(e,t){for(let n of this.points)(e.nodeType==3?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+(Rb(e,n.node,n.offset)?t:0))}}function Rb(i,e,t){for(;;){if(!e||t<Ft(e))return!1;if(e==i)return!0;t=Si(e)+1,e=e.parentNode}}function Zb(i,e){let t;for(;!(i==e||!i);i=i.nextSibling){let n=pe.get(i);if(!(n!=null&&n.isWidget()))return!1;n&&(t||(t=[])).push(n)}if(t)for(let n of t){let r=n.overrideDOMText;if(r!=null&&r.length)return!1}return!0}class ph{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class zb{constructor(e,t,n,r){this.typeOver=r,this.bounds=null,this.text="",this.domChanged=t>-1;let{impreciseHead:s,impreciseAnchor:o}=e.docView,a=e.state.selection;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=mh(e.docView.tile,t,n,0))){let l=s||o?[]:Vb(e),O=new _b(l,e);O.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=O.text,this.newSel=Cb(l,this.bounds.from)}else{let l=e.observer.selectionRange,O=s&&s.node==l.focusNode&&s.offset==l.focusOffset||!Ca(e.contentDOM,l.focusNode)?a.main.head:e.docView.posFromDOM(l.focusNode,l.focusOffset),c=o&&o.node==l.anchorNode&&o.offset==l.anchorOffset||!Ca(e.contentDOM,l.anchorNode)?a.main.anchor:e.docView.posFromDOM(l.anchorNode,l.anchorOffset),d=e.viewport;if((_.ios||_.chrome)&&a.main.empty&&O!=c&&(d.from>0||d.to<e.state.doc.length)){let h=Math.min(O,c),f=Math.max(O,c),p=d.from-h,m=d.to-f;(p==0||p==1||h==0)&&(m==0||m==-1||f==e.state.doc.length)&&(O=0,c=e.state.doc.length)}if(e.inputState.composing>-1&&a.ranges.length>1)this.newSel=a.replaceRange(b.range(c,O));else if(e.lineWrapping&&c==O&&!(a.main.empty&&a.main.head==O)&&e.inputState.lastTouchTime>Date.now()-100){let h=e.coordsAtPos(O,-1),f=0;h&&(f=e.inputState.lastTouchY<=h.bottom?-1:1),this.newSel=b.create([b.cursor(O,f)])}else this.newSel=b.single(c,O)}}}function mh(i,e,t,n){if(i.isComposite()){let r=-1,s=-1,o=-1,a=-1;for(let l=0,O=n,c=n;l<i.children.length;l++){let d=i.children[l],h=O+d.length;if(O<e&&h>t)return mh(d,e,t,O);if(h>=e&&r==-1&&(r=l,s=O),O>t&&d.dom.parentNode==i.dom){o=l,a=c;break}c=h,O=h+d.breakAfter}return{from:s,to:a<0?n+i.length:a,startDOM:(r?i.children[r-1].dom.nextSibling:null)||i.dom.firstChild,endDOM:o<i.children.length&&o>=0?i.children[o].dom:null}}else return i.isText()?{from:n,to:n+i.length,startDOM:i.dom,endDOM:i.dom.nextSibling}:null}function $h(i,e){let t,{newSel:n}=e,{state:r}=i,s=r.selection.main,o=i.inputState.lastKeyTime>Date.now()-100?i.inputState.lastKeyCode:-1;if(e.bounds){let{from:a,to:l}=e.bounds,O=s.from,c=null;(o===8||_.android&&e.text.length<l-a)&&(O=s.to,c="end");let d=r.doc.sliceString(a,l,Qn),h,f;!s.empty&&s.from>=a&&s.to<=l&&(e.typeOver||d!=e.text)&&d.slice(0,s.from-a)==e.text.slice(0,s.from-a)&&d.slice(s.to-a)==e.text.slice(h=e.text.length-(d.length-(s.to-a)))?t={from:s.from,to:s.to,insert:ie.of(e.text.slice(s.from-a,h).split(Qn))}:(f=gh(d,e.text,O-a,c))&&(_.chrome&&o==13&&f.toB==f.from+2&&e.text.slice(f.from,f.toB)==Qn+Qn&&f.toB--,t={from:a+f.from,to:a+f.toA,insert:ie.of(e.text.slice(f.from,f.toB).split(Qn))})}else n&&(!i.hasFocus&&r.facet(Ht)||Ps(n,s))&&(n=null);if(!t&&!n)return!1;if((_.mac||_.android)&&t&&t.from==t.to&&t.from==s.head-1&&/^\. ?$/.test(t.insert.toString())&&i.contentDOM.getAttribute("autocorrect")=="off"?(n&&t.insert.length==2&&(n=b.single(n.main.anchor-1,n.main.head-1)),t={from:t.from,to:t.to,insert:ie.of([t.insert.toString().replace("."," ")])}):r.doc.lineAt(s.from).to<s.to&&i.docView.lineHasWidget(s.to)&&i.inputState.insertingTextAt>Date.now()-50?t={from:s.from,to:s.to,insert:r.toText(i.inputState.insertingText)}:_.chrome&&t&&t.from==t.to&&t.from==s.head&&t.insert.toString()==`
540
+ `&&i.lineWrapping&&(n&&(n=b.single(n.main.anchor-1,n.main.head-1)),t={from:s.from,to:s.to,insert:ie.of([" "])}),t)return el(i,t,n,o);if(n&&!Ps(n,s)){let a=!1,l="select";return i.inputState.lastSelectionTime>Date.now()-50&&(i.inputState.lastSelectionOrigin=="select"&&(a=!0),l=i.inputState.lastSelectionOrigin,l=="select.pointer"&&(n=uh(r.facet(ar).map(O=>O(i)),n))),i.dispatch({selection:n,scrollIntoView:a,userEvent:l}),!0}else return!1}function el(i,e,t,n=-1){if(_.ios&&i.inputState.flushIOSKey(e))return!0;let r=i.state.selection.main;if(_.android&&(e.to==r.to&&(e.from==r.from||e.from==r.from-1&&i.state.sliceDoc(e.from,r.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&un(i.contentDOM,"Enter",13)||(e.from==r.from-1&&e.to==r.to&&e.insert.length==0||n==8&&e.insert.length<e.to-e.from&&e.to>r.head)&&un(i.contentDOM,"Backspace",8)||e.from==r.from&&e.to==r.to+1&&e.insert.length==0&&un(i.contentDOM,"Delete",46)))return!0;let s=e.insert.toString();i.inputState.composing>=0&&i.inputState.composing++;let o,a=()=>o||(o=qb(i,e,t));return i.state.facet(Kd).some(l=>l(i,e.from,e.to,s,a))||i.dispatch(a()),!0}function qb(i,e,t){let n,r=i.state,s=r.selection.main,o=-1;if(e.from==e.to&&e.from<s.from||e.from>s.to){let l=e.from<s.from?-1:1,O=l<0?s.from:s.to,c=Or(r.facet(ar).map(d=>d(i)),O,l);e.from==c&&(o=c)}if(o>-1)n={changes:e,selection:b.cursor(e.from+e.insert.length,-1)};else if(e.from>=s.from&&e.to<=s.to&&e.to-e.from>=(s.to-s.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&i.inputState.composing<0){let l=s.from<e.from?r.sliceDoc(s.from,e.from):"",O=s.to>e.to?r.sliceDoc(e.to,s.to):"";n=r.replaceSelection(i.state.toText(l+e.insert.sliceString(0,void 0,i.state.lineBreak)+O))}else{let l=r.changes(e),O=t&&t.main.to<=l.newLength?t.main:void 0;if(r.selection.ranges.length>1&&(i.inputState.composing>=0||i.inputState.compositionPendingChange)&&e.to<=s.to+10&&e.to>=s.to-10){let c=i.state.sliceDoc(e.from,e.to),d,h=t&&hh(i,t.main.head);if(h){let p=e.insert.length-(e.to-e.from);d={from:h.from,to:h.to-p}}else d=i.state.doc.lineAt(s.head);let f=s.to-e.to;n=r.changeByRange(p=>{if(p.from==s.from&&p.to==s.to)return{changes:l,range:O||p.map(l)};let m=p.to-f,$=m-c.length;if(i.state.sliceDoc($,m)!=c||m>=d.from&&$<=d.to)return{range:p};let g=r.changes({from:$,to:m,insert:e.insert}),y=p.to-s.to;return{changes:g,range:O?b.range(Math.max(0,O.anchor+y),Math.max(0,O.head+y)):p.map(g)}})}else n={changes:l,selection:O&&r.selection.replaceRange(O)}}let a="input.type";return(i.composing||i.inputState.compositionPendingChange&&i.inputState.compositionEndedAt>Date.now()-50)&&(i.inputState.compositionPendingChange=!1,a+=".compose",i.inputState.compositionFirstChange&&(a+=".start",i.inputState.compositionFirstChange=!1)),r.update(n,{userEvent:a,scrollIntoView:!0})}function gh(i,e,t,n){let r=Math.min(i.length,e.length),s=0;for(;s<r&&i.charCodeAt(s)==e.charCodeAt(s);)s++;if(s==r&&i.length==e.length)return null;let o=i.length,a=e.length;for(;o>0&&a>0&&i.charCodeAt(o-1)==e.charCodeAt(a-1);)o--,a--;if(n=="end"){let l=Math.max(0,s-Math.min(o,a));t-=o+l-s}if(o<s&&i.length<e.length){let l=t<=s&&t>=o?s-t:0;s-=l,a=s+(a-o),o=s}else if(a<s){let l=t<=s&&t>=a?s-t:0;s-=l,o=s+(o-a),a=s}return{from:s,toA:o,toB:a}}function Vb(i){let e=[];if(i.root.activeElement!=i.contentDOM)return e;let{anchorNode:t,anchorOffset:n,focusNode:r,focusOffset:s}=i.observer.selectionRange;return t&&(e.push(new ph(t,n)),(r!=t||s!=n)&&e.push(new ph(r,s))),e}function Cb(i,e){if(i.length==0)return null;let t=i[0].pos,n=i.length==2?i[1].pos:t;return t>-1&&n>-1?b.single(t+e,n+e):null}function Ps(i,e){return e.head==i.main.head&&e.anchor==i.main.anchor}class Yb{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastTouchX=0,this.lastTouchY=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.lastWheelEvent=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.insertingText="",this.insertingTextAt=0,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,_.safari&&e.contentDOM.addEventListener("input",()=>null),_.gecko&&Kb(e.contentDOM.ownerDocument)}handleEvent(e){!Gb(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||(this.view.updateState!=0?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e))}runHandlers(e,t){let n=this.handlers[e];if(n){for(let r of n.observers)r(this.view,t);for(let r of n.handlers){if(t.defaultPrevented)break;if(r(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=Wb(e),n=this.handlers,r=this.view.contentDOM;for(let s in t)if(s!="scroll"){let o=!t[s].handlers.length,a=n[s];a&&o!=!a.handlers.length&&(r.removeEventListener(s,this.handleEvent),a=null),a||r.addEventListener(s,this.handleEvent,{passive:o})}for(let s in n)s!="scroll"&&!t[s]&&r.removeEventListener(s,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&e.keyCode!=27&&bh.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),_.android&&_.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return _.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&!e.shiftKey&&((t=yh.find(n=>n.keyCode==e.keyCode))&&!e.ctrlKey||Ab.indexOf(e.key)>-1&&e.ctrlKey)?(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(e){let t=this.pendingIOSKey;return!t||t.key=="Enter"&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString())?!1:(this.pendingIOSKey=void 0,un(this.view.contentDOM,t.key,t.keyCode,t instanceof KeyboardEvent?t:void 0))}ignoreDuringComposition(e){return!/^key/.test(e.type)||e.synthetic?!1:this.composing>0?!0:_.safari&&!_.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function Qh(i,e){return(t,n)=>{try{return e.call(i,n,t)}catch(r){Be(t.state,r)}}}function Wb(i){let e=Object.create(null);function t(n){return e[n]||(e[n]={observers:[],handlers:[]})}for(let n of i){let r=n.spec,s=r&&r.plugin.domEventHandlers,o=r&&r.plugin.domEventObservers;if(s)for(let a in s){let l=s[a];l&&t(a).handlers.push(Qh(n.value,l))}if(o)for(let a in o){let l=o[a];l&&t(a).observers.push(Qh(n.value,l))}}for(let n in dt)t(n).handlers.push(dt[n]);for(let n in Le)t(n).observers.push(Le[n]);return e}const yh=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Ab="dthko",bh=[16,17,18,20,91,92,224,225],xs=6;function Ts(i){return Math.max(0,i)*.7+8}function Eb(i,e){return Math.max(Math.abs(i.clientX-e.clientX),Math.abs(i.clientY-e.clientY))}class Ub{constructor(e,t,n,r){this.view=e,this.startEvent=t,this.style=n,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParents=Yd(e.contentDOM),this.atoms=e.state.facet(ar).map(o=>o(e));let s=e.contentDOM.ownerDocument;s.addEventListener("mousemove",this.move=this.move.bind(this)),s.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(se.allowMultipleSelections)&&jb(e,t),this.dragging=Lb(e,t)&&kh(t)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&Eb(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let t=0,n=0,r=0,s=0,o=this.view.win.innerWidth,a=this.view.win.innerHeight;this.scrollParents.x&&({left:r,right:o}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:s,bottom:a}=this.scrollParents.y.getBoundingClientRect());let l=Da(this.view);e.clientX-l.left<=r+xs?t=-Ts(r-e.clientX):e.clientX+l.right>=o-xs&&(t=Ts(e.clientX-o)),e.clientY-l.top<=s+xs?n=-Ts(s-e.clientY):e.clientY+l.bottom>=a-xs&&(n=Ts(e.clientY-a)),this.setScrollSpeed(t,n)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:t}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),t&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=t,t=0),(e||t)&&this.view.win.scrollBy(e,t),this.dragging===!1&&this.select(this.lastEvent)}select(e){let{view:t}=this,n=uh(this.atoms,this.style.get(e,this.extend,this.multiple));(this.mustSelect||!n.eq(t.state.selection,this.dragging===!1))&&this.view.dispatch({selection:n,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some(t=>t.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}function jb(i,e){let t=i.state.facet(Bd);return t.length?t[0](e):_.mac?e.metaKey:e.ctrlKey}function Mb(i,e){let t=i.state.facet(Nd);return t.length?t[0](e):_.mac?!e.altKey:!e.ctrlKey}function Lb(i,e){let{main:t}=i.state.selection;if(t.empty)return!1;let n=nr(i.root);if(!n||n.rangeCount==0)return!0;let r=n.getRangeAt(0).getClientRects();for(let s=0;s<r.length;s++){let o=r[s];if(o.left<=e.clientX&&o.right>=e.clientX&&o.top<=e.clientY&&o.bottom>=e.clientY)return!0}return!1}function Gb(i,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target,n;t!=i.contentDOM;t=t.parentNode)if(!t||t.nodeType==11||(n=pe.get(t))&&n.isWidget()&&!n.isHidden&&n.widget.ignoreEvent(e))return!1;return!0}const dt=Object.create(null),Le=Object.create(null),Sh=_.ie&&_.ie_version<15||_.ios&&_.webkit_version<604;function Ib(i){let e=i.dom.parentNode;if(!e)return;let t=e.appendChild(document.createElement("textarea"));t.style.cssText="position: fixed; left: -10000px; top: 10px",t.focus(),setTimeout(()=>{i.focus(),t.remove(),wh(i,t.value)},50)}function vs(i,e,t){for(let n of i.facet(e))t=n(t,i);return t}function wh(i,e){e=vs(i.state,ja,e);let{state:t}=i,n,r=1,s=t.toText(e),o=s.lines==t.selection.ranges.length;if(tl!=null&&t.selection.ranges.every(l=>l.empty)&&tl==s.toString()){let l=-1;n=t.changeByRange(O=>{let c=t.doc.lineAt(O.from);if(c.from==l)return{range:O};l=c.from;let d=t.toText((o?s.line(r++).text:e)+t.lineBreak);return{changes:{from:c.from,insert:d},range:b.cursor(O.from+d.length)}})}else o?n=t.changeByRange(l=>{let O=s.line(r++);return{changes:{from:l.from,to:l.to,insert:O.text},range:b.cursor(l.from+O.length)}}):n=t.replaceSelection(s);i.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}Le.scroll=i=>{i.inputState.lastScrollTop=i.scrollDOM.scrollTop,i.inputState.lastScrollLeft=i.scrollDOM.scrollLeft},Le.wheel=Le.mousewheel=i=>{i.inputState.lastWheelEvent=Date.now()},dt.keydown=(i,e)=>(i.inputState.setSelectionOrigin("select"),e.keyCode==27&&i.inputState.tabFocusMode!=0&&(i.inputState.tabFocusMode=Date.now()+2e3),!1),Le.touchstart=(i,e)=>{let t=i.inputState,n=e.targetTouches[0];t.lastTouchTime=Date.now(),n&&(t.lastTouchX=n.clientX,t.lastTouchY=n.clientY),t.setSelectionOrigin("select.pointer")},Le.touchmove=i=>{i.inputState.setSelectionOrigin("select.pointer")},dt.mousedown=(i,e)=>{if(i.observer.flush(),i.inputState.lastTouchTime>Date.now()-2e3)return!1;let t=null;for(let n of i.state.facet(Fd))if(t=n(i,e),t)break;if(!t&&e.button==0&&(t=Bb(i,e)),t){let n=!i.hasFocus;i.inputState.startMouseSelection(new Ub(i,e,t,n)),n&&i.observer.ignore(()=>{Wd(i.contentDOM);let s=i.root.activeElement;s&&!s.contains(i.contentDOM)&&s.blur()});let r=i.inputState.mouseSelection;if(r)return r.start(e),r.dragging===!1}else i.inputState.setSelectionOrigin("select.pointer");return!1};function Ph(i,e,t,n){if(n==1)return b.cursor(e,t);if(n==2)return wb(i.state,e,t);{let r=i.docView.lineAt(e,t),s=i.state.doc.lineAt(r?r.posAtEnd:e),o=r?r.posAtStart:s.from,a=r?r.posAtEnd:s.to;return a<i.state.doc.length&&a==s.to&&a++,b.range(o,a)}}const Db=_.ie&&_.ie_version<=11;let xh=null,Th=0,vh=0;function kh(i){if(!Db)return i.detail;let e=xh,t=vh;return xh=i,vh=Date.now(),Th=!e||t>Date.now()-400&&Math.abs(e.clientX-i.clientX)<2&&Math.abs(e.clientY-i.clientY)<2?(Th+1)%3:1}function Bb(i,e){let t=i.posAndSideAtCoords({x:e.clientX,y:e.clientY},!1),n=kh(e),r=i.state.selection;return{update(s){s.docChanged&&(t.pos=s.changes.mapPos(t.pos),r=r.map(s.changes))},get(s,o,a){let l=i.posAndSideAtCoords({x:s.clientX,y:s.clientY},!1),O,c=Ph(i,l.pos,l.assoc,n);if(t.pos!=l.pos&&!o){let d=Ph(i,t.pos,t.assoc,n),h=Math.min(d.from,c.from),f=Math.max(d.to,c.to);c=h<c.from?b.range(h,f,c.assoc):b.range(f,h,c.assoc)}return o?r.replaceRange(r.main.extend(c.from,c.to,c.assoc)):a&&n==1&&r.ranges.length>1&&(O=Nb(r,l.pos))?O:a?r.addRange(c):b.create([c])}}}function Nb(i,e){for(let t=0;t<i.ranges.length;t++){let{from:n,to:r}=i.ranges[t];if(n<=e&&r>=e)return b.create(i.ranges.slice(0,t).concat(i.ranges.slice(t+1)),i.mainIndex==t?0:i.mainIndex-(i.mainIndex>t?1:0))}return null}dt.dragstart=(i,e)=>{let{selection:{main:t}}=i.state;if(e.target.draggable){let r=i.docView.tile.nearest(e.target);if(r&&r.isWidget()){let s=r.posAtStart,o=s+r.length;(s>=t.to||o<=t.from)&&(t=b.range(s,o))}}let{inputState:n}=i;return n.mouseSelection&&(n.mouseSelection.dragging=!0),n.draggedContent=t,e.dataTransfer&&(e.dataTransfer.setData("Text",vs(i.state,Ma,i.state.sliceDoc(t.from,t.to))),e.dataTransfer.effectAllowed="copyMove"),!1},dt.dragend=i=>(i.inputState.draggedContent=null,!1);function Xh(i,e,t,n){if(t=vs(i.state,ja,t),!t)return;let r=i.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:s}=i.inputState,o=n&&s&&Mb(i,e)?{from:s.from,to:s.to}:null,a={from:r,insert:t},l=i.state.changes(o?[o,a]:a);i.focus(),i.dispatch({changes:l,selection:{anchor:l.mapPos(r,-1),head:l.mapPos(r,1)},userEvent:o?"move.drop":"input.drop"}),i.inputState.draggedContent=null}dt.drop=(i,e)=>{if(!e.dataTransfer)return!1;if(i.state.readOnly)return!0;let t=e.dataTransfer.files;if(t&&t.length){let n=Array(t.length),r=0,s=()=>{++r==t.length&&Xh(i,e,n.filter(o=>o!=null).join(i.state.lineBreak),!1)};for(let o=0;o<t.length;o++){let a=new FileReader;a.onerror=s,a.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(a.result)||(n[o]=a.result),s()},a.readAsText(t[o])}return!0}else{let n=e.dataTransfer.getData("Text");if(n)return Xh(i,e,n,!0),!0}return!1},dt.paste=(i,e)=>{if(i.state.readOnly)return!0;i.observer.flush();let t=Sh?null:e.clipboardData;return t?(wh(i,t.getData("text/plain")||t.getData("text/uri-list")),!0):(Ib(i),!1)};function Fb(i,e){let t=i.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.value=e,n.focus(),n.selectionEnd=e.length,n.selectionStart=0,setTimeout(()=>{n.remove(),i.focus()},50)}function Hb(i){let e=[],t=[],n=!1;for(let r of i.selection.ranges)r.empty||(e.push(i.sliceDoc(r.from,r.to)),t.push(r));if(!e.length){let r=-1;for(let{from:s}of i.selection.ranges){let o=i.doc.lineAt(s);o.number>r&&(e.push(o.text),t.push({from:o.from,to:Math.min(i.doc.length,o.to+1)})),r=o.number}n=!0}return{text:vs(i,Ma,e.join(i.lineBreak)),ranges:t,linewise:n}}let tl=null;dt.copy=dt.cut=(i,e)=>{if(!rr(i.contentDOM,i.observer.selectionRange))return!1;let{text:t,ranges:n,linewise:r}=Hb(i.state);if(!t&&!r)return!1;tl=r?t:null,e.type=="cut"&&!i.state.readOnly&&i.dispatch({changes:n,scrollIntoView:!0,userEvent:"delete.cut"});let s=Sh?null:e.clipboardData;return s?(s.clearData(),s.setData("text/plain",t),!0):(Fb(i,t),!1)};const _h=Bt.define();function Rh(i,e){let t=[];for(let n of i.facet(Jd)){let r=n(i,e);r&&t.push(r)}return t.length?i.update({effects:t,annotations:_h.of(!0)}):null}function Zh(i){setTimeout(()=>{let e=i.hasFocus;if(e!=i.inputState.notifiedFocused){let t=Rh(i.state,e);t?i.dispatch(t):i.update([])}},10)}Le.focus=i=>{i.inputState.lastFocusTime=Date.now(),!i.scrollDOM.scrollTop&&(i.inputState.lastScrollTop||i.inputState.lastScrollLeft)&&(i.scrollDOM.scrollTop=i.inputState.lastScrollTop,i.scrollDOM.scrollLeft=i.inputState.lastScrollLeft),Zh(i)},Le.blur=i=>{i.observer.clearSelectionRange(),Zh(i)},Le.compositionstart=Le.compositionupdate=i=>{i.observer.editContext||(i.inputState.compositionFirstChange==null&&(i.inputState.compositionFirstChange=!0),i.inputState.composing<0&&(i.inputState.composing=0))},Le.compositionend=i=>{i.observer.editContext||(i.inputState.composing=-1,i.inputState.compositionEndedAt=Date.now(),i.inputState.compositionPendingKey=!0,i.inputState.compositionPendingChange=i.observer.pendingRecords().length>0,i.inputState.compositionFirstChange=null,_.chrome&&_.android?i.observer.flushSoon():i.inputState.compositionPendingChange?Promise.resolve().then(()=>i.observer.flush()):setTimeout(()=>{i.inputState.composing<0&&i.docView.hasComposition&&i.update([])},50))},Le.contextmenu=i=>{i.inputState.lastContextMenu=Date.now()},dt.beforeinput=(i,e)=>{var t,n;if((e.inputType=="insertText"||e.inputType=="insertCompositionText")&&(i.inputState.insertingText=e.data,i.inputState.insertingTextAt=Date.now()),e.inputType=="insertReplacementText"&&i.observer.editContext){let s=(t=e.dataTransfer)===null||t===void 0?void 0:t.getData("text/plain"),o=e.getTargetRanges();if(s&&o.length){let a=o[0],l=i.posAtDOM(a.startContainer,a.startOffset),O=i.posAtDOM(a.endContainer,a.endOffset);return el(i,{from:l,to:O,insert:i.state.toText(s)},null),!0}}let r;if(_.chrome&&_.android&&(r=yh.find(s=>s.inputType==e.inputType))&&(i.observer.delayAndroidKey(r.key,r.keyCode),r.key=="Backspace"||r.key=="Delete")){let s=((n=window.visualViewport)===null||n===void 0?void 0:n.height)||0;setTimeout(()=>{var o;(((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0)>s+10&&i.hasFocus&&(i.contentDOM.blur(),i.focus())},100)}return _.ios&&e.inputType=="deleteContentForward"&&i.observer.flushSoon(),_.safari&&e.inputType=="insertText"&&i.inputState.composing>=0&&setTimeout(()=>Le.compositionend(i,e),20),!1};const zh=new Set;function Kb(i){zh.has(i)||(zh.add(i),i.addEventListener("copy",()=>{}),i.addEventListener("cut",()=>{}))}const qh=["pre-wrap","normal","pre-line","break-spaces"];let yn=!1;function Vh(){yn=!1}class Jb{constructor(e){this.lineWrapping=e,this.doc=ie.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/Math.max(1,this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return qh.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let n=0;n<e.length;n++){let r=e[n];r<0?n++:this.heightSamples[Math.floor(r*10)]||(t=!0,this.heightSamples[Math.floor(r*10)]=!0)}return t}refresh(e,t,n,r,s,o){let a=qh.indexOf(e)>-1,l=Math.abs(t-this.lineHeight)>.3||this.lineWrapping!=a||Math.abs(n-this.charWidth)>.1;if(this.lineWrapping=a,this.lineHeight=t,this.charWidth=n,this.textHeight=r,this.lineLength=s,l){this.heightSamples={};for(let O=0;O<o.length;O++){let c=o[O];c<0?O++:this.heightSamples[Math.floor(c*10)]=!0}}return l}}class e0{constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}}class ht{constructor(e,t,n,r,s){this.from=e,this.length=t,this.top=n,this.height=r,this._content=s}get type(){return typeof this._content=="number"?je.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof Ei?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(e){let t=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new ht(this.from,this.length+e.length,this.top,this.height+e.height,t)}}var de=(function(i){return i[i.ByPos=0]="ByPos",i[i.ByHeight=1]="ByHeight",i[i.ByPosNoHeight=2]="ByPosNoHeight",i})(de||(de={}));const ks=.001;class We{constructor(e,t,n=2){this.length=e,this.height=t,this.flags=n}get outdated(){return(this.flags&2)>0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>ks&&(yn=!0),this.height=e)}replace(e,t,n){return We.of(n)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,r){let s=this,o=n.doc;for(let a=r.length-1;a>=0;a--){let{fromA:l,toA:O,fromB:c,toB:d}=r[a],h=s.lineAt(l,de.ByPosNoHeight,n.setDoc(t),0,0),f=h.to>=O?h:s.lineAt(O,de.ByPosNoHeight,n,0,0);for(d+=f.to-O,O=f.to;a>0&&h.from<=r[a-1].toA;)l=r[a-1].fromA,c=r[a-1].fromB,a--,l<h.from&&(h=s.lineAt(l,de.ByPosNoHeight,n,0,0));c+=h.from-l,l=h.from;let p=il.build(n.setDoc(o),e,c,d);s=Xs(s,s.replace(l,O,p))}return s.updateHeight(n,0)}static empty(){return new Ne(0,0,0)}static of(e){if(e.length==1)return e[0];let t=0,n=e.length,r=0,s=0;for(;;)if(t==n)if(r>s*2){let a=e[t-1];a.break?e.splice(--t,1,a.left,null,a.right):e.splice(--t,1,a.left,a.right),n+=1+a.break,r-=a.size}else if(s>r*2){let a=e[n];a.break?e.splice(n,1,a.left,null,a.right):e.splice(n,1,a.left,a.right),n+=2+a.break,s-=a.size}else break;else if(r<s){let a=e[t++];a&&(r+=a.size)}else{let a=e[--n];a&&(s+=a.size)}let o=0;return e[t-1]==null?(o=1,t--):e[t]==null&&(o=1,n++),new i0(We.of(e.slice(0,t)),o,We.of(e.slice(n)))}}function Xs(i,e){return i==e?i:(i.constructor!=e.constructor&&(yn=!0),e)}We.prototype.size=1;const t0=H.replace({});class Ch extends We{constructor(e,t,n){super(e,t),this.deco=n,this.spaceAbove=0}mainBlock(e,t){return new ht(t,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.deco||0)}blockAt(e,t,n,r){return this.spaceAbove&&e<n+this.spaceAbove?new ht(r,0,n,this.spaceAbove,t0):this.mainBlock(n,r)}lineAt(e,t,n,r,s){let o=this.mainBlock(r,s);return this.spaceAbove?this.blockAt(0,n,r,s).join(o):o}forEachLine(e,t,n,r,s,o){e<=s+this.length&&t>=s&&o(this.lineAt(0,de.ByPos,n,r,s))}setMeasuredHeight(e){let t=e.heights[e.index++];t<0?(this.spaceAbove=-t,t=e.heights[e.index++]):this.spaceAbove=0,this.setHeight(t)}updateHeight(e,t=0,n=!1,r){return r&&r.from<=t&&r.more&&this.setMeasuredHeight(r),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Ne extends Ch{constructor(e,t,n){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0,this.spaceAbove=n}mainBlock(e,t){return new ht(t,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.breaks)}replace(e,t,n){let r=n[0];return n.length==1&&(r instanceof Ne||r instanceof Xe&&r.flags&4)&&Math.abs(this.length-r.length)<10?(r instanceof Xe?r=new Ne(r.length,this.height,this.spaceAbove):r.height=this.height,this.outdated||(r.outdated=!1),r):We.of(n)}updateHeight(e,t=0,n=!1,r){return r&&r.from<=t&&r.more?this.setMeasuredHeight(r):(n||this.outdated)&&(this.spaceAbove=0,this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight)),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Xe extends We{constructor(e){super(e,0)}heightMetrics(e,t){let n=e.doc.lineAt(t).number,r=e.doc.lineAt(t+this.length).number,s=r-n+1,o,a=0;if(e.lineWrapping){let l=Math.min(this.height,e.lineHeight*s);o=l/s,this.length>s+1&&(a=(this.height-l)/(this.length-s-1))}else o=this.height/s;return{firstLine:n,lastLine:r,perLine:o,perChar:a}}blockAt(e,t,n,r){let{firstLine:s,lastLine:o,perLine:a,perChar:l}=this.heightMetrics(t,r);if(t.lineWrapping){let O=r+(e<t.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-n)/this.height))*this.length)),c=t.doc.lineAt(O),d=a+c.length*l,h=Math.max(n,e-d/2);return new ht(c.from,c.length,h,d,0)}else{let O=Math.max(0,Math.min(o-s,Math.floor((e-n)/a))),{from:c,length:d}=t.doc.line(s+O);return new ht(c,d,n+a*O,a,0)}}lineAt(e,t,n,r,s){if(t==de.ByHeight)return this.blockAt(e,n,r,s);if(t==de.ByPosNoHeight){let{from:f,to:p}=n.doc.lineAt(e);return new ht(f,p-f,0,0,0)}let{firstLine:o,perLine:a,perChar:l}=this.heightMetrics(n,s),O=n.doc.lineAt(e),c=a+O.length*l,d=O.number-o,h=r+a*d+l*(O.from-s-d);return new ht(O.from,O.length,Math.max(r,Math.min(h,r+this.height-c)),c,0)}forEachLine(e,t,n,r,s,o){e=Math.max(e,s),t=Math.min(t,s+this.length);let{firstLine:a,perLine:l,perChar:O}=this.heightMetrics(n,s);for(let c=e,d=r;c<=t;){let h=n.doc.lineAt(c);if(c==e){let p=h.number-a;d+=l*p+O*(e-s-p)}let f=l+O*h.length;o(new ht(h.from,h.length,d,f,0)),d+=f,c=h.to+1}}replace(e,t,n){let r=this.length-t;if(r>0){let s=n[n.length-1];s instanceof Xe?n[n.length-1]=new Xe(s.length+r):n.push(null,new Xe(r-1))}if(e>0){let s=n[0];s instanceof Xe?n[0]=new Xe(e+s.length):n.unshift(new Xe(e-1),null)}return We.of(n)}decomposeLeft(e,t){t.push(new Xe(e-1),null)}decomposeRight(e,t){t.push(null,new Xe(this.length-e-1))}updateHeight(e,t=0,n=!1,r){let s=t+this.length;if(r&&r.from<=t+this.length&&r.more){let o=[],a=Math.max(t,r.from),l=-1;for(r.from>t&&o.push(new Xe(r.from-t-1).updateHeight(e,t));a<=s&&r.more;){let c=e.doc.lineAt(a).length;o.length&&o.push(null);let d=r.heights[r.index++],h=0;d<0&&(h=-d,d=r.heights[r.index++]),l==-1?l=d:Math.abs(d-l)>=ks&&(l=-2);let f=new Ne(c,d,h);f.outdated=!1,o.push(f),a+=c+1}a<=s&&o.push(null,new Xe(s-a).updateHeight(e,a));let O=We.of(o);return(l<0||Math.abs(O.height-this.height)>=ks||Math.abs(l-this.heightMetrics(e,t).perLine)>=ks)&&(yn=!0),Xs(this,O)}else(n||this.outdated)&&(this.setHeight(e.heightForGap(t,t+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class i0 extends We{constructor(e,t,n){super(e.length+t+n.length,e.height+n.height,t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return this.flags&1}blockAt(e,t,n,r){let s=n+this.left.height;return e<s?this.left.blockAt(e,t,n,r):this.right.blockAt(e,t,s,r+this.left.length+this.break)}lineAt(e,t,n,r,s){let o=r+this.left.height,a=s+this.left.length+this.break,l=t==de.ByHeight?e<o:e<a,O=l?this.left.lineAt(e,t,n,r,s):this.right.lineAt(e,t,n,o,a);if(this.break||(l?O.to<a:O.from>a))return O;let c=t==de.ByPosNoHeight?de.ByPosNoHeight:de.ByPos;return l?O.join(this.right.lineAt(a,c,n,o,a)):this.left.lineAt(a,c,n,r,s).join(O)}forEachLine(e,t,n,r,s,o){let a=r+this.left.height,l=s+this.left.length+this.break;if(this.break)e<l&&this.left.forEachLine(e,t,n,r,s,o),t>=l&&this.right.forEachLine(e,t,n,a,l,o);else{let O=this.lineAt(l,de.ByPos,n,r,s);e<O.from&&this.left.forEachLine(e,O.from-1,n,r,s,o),O.to>=e&&O.from<=t&&o(O),t>O.to&&this.right.forEachLine(O.to+1,t,n,a,l,o)}}replace(e,t,n){let r=this.left.length+this.break;if(t<r)return this.balanced(this.left.replace(e,t,n),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-r,t-r,n));let s=[];e>0&&this.decomposeLeft(e,s);let o=s.length;for(let a of n)s.push(a);if(e>0&&Yh(s,o-1),t<this.length){let a=s.length;this.decomposeRight(t,s),Yh(s,a)}return We.of(s)}decomposeLeft(e,t){let n=this.left.length;if(e<=n)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&(n++,e>=n&&t.push(null)),e>n&&this.right.decomposeLeft(e-n,t)}decomposeRight(e,t){let n=this.left.length,r=n+this.break;if(e>=r)return this.right.decomposeRight(e-r,t);e<n&&this.left.decomposeRight(e,t),this.break&&e<r&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?We.of(this.break?[e,null,t]:[e,t]):(this.left=Xs(this.left,e),this.right=Xs(this.right,t),this.setHeight(e.height+t.height),this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,n=!1,r){let{left:s,right:o}=this,a=t+s.length+this.break,l=null;return r&&r.from<=t+s.length&&r.more?l=s=s.updateHeight(e,t,n,r):s.updateHeight(e,t,n),r&&r.from<=a+o.length&&r.more?l=o=o.updateHeight(e,a,n,r):o.updateHeight(e,a,n),l?this.balanced(s,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function Yh(i,e){let t,n;i[e]==null&&(t=i[e-1])instanceof Xe&&(n=i[e+1])instanceof Xe&&i.splice(e-1,3,new Xe(t.length+1+n.length))}const n0=5;class il{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let n=Math.min(t,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof Ne?r.length+=n-this.pos:(n>this.pos||!this.isCovered)&&this.nodes.push(new Ne(n-this.pos,-1,0)),this.writtenTo=n,t>n&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,n){if(e<t||n.heightRelevant){let r=n.widget?n.widget.estimatedHeight:0,s=n.widget?n.widget.lineBreaks:0;r<0&&(r=this.oracle.lineHeight);let o=t-e;n.block?this.addBlock(new Ch(o,r,n)):(o||s||r>=n0)&&this.addLineDeco(r,s,o)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenTo<e&&((this.writtenTo<e-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new Ne(this.pos-e,-1,0)),this.writtenTo=this.pos}blankContent(e,t){let n=new Xe(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Ne)return e;let t=new Ne(0,-1,0);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,n){let r=this.ensureLine();r.length+=n,r.collapsed+=n,r.widgetHeight=Math.max(r.widgetHeight,e),r.breaks+=t,this.writtenTo=this.pos=this.pos+n}finish(e){let t=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(t instanceof Ne)&&!this.isCovered?this.nodes.push(new Ne(0,-1,0)):(this.writtenTo<this.pos||t==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let n=e;for(let r of this.nodes)r instanceof Ne&&r.updateHeight(this.oracle,n),n+=r?r.length:1;return this.nodes}static build(e,t,n,r){let s=new il(n,e);return ee.spans(t,n,r,s,0),s.finish(n)}}function r0(i,e,t){let n=new s0;return ee.compare(i,e,t,n,0),n.changes}class s0{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,n,r){(e<t||n&&n.heightRelevant||r&&r.heightRelevant)&&fn(e,t,this.changes,5)}}function o0(i,e){let t=i.getBoundingClientRect(),n=i.ownerDocument,r=n.defaultView||window,s=Math.max(0,t.left),o=Math.min(r.innerWidth,t.right),a=Math.max(0,t.top),l=Math.min(r.innerHeight,t.bottom);for(let O=i.parentNode;O&&O!=n.body;)if(O.nodeType==1){let c=O,d=window.getComputedStyle(c);if((c.scrollHeight>c.clientHeight||c.scrollWidth>c.clientWidth)&&d.overflow!="visible"){let h=c.getBoundingClientRect();s=Math.max(s,h.left),o=Math.min(o,h.right),a=Math.max(a,h.top),l=Math.min(O==i.parentNode?r.innerHeight:l,h.bottom)}O=d.position=="absolute"||d.position=="fixed"?c.offsetParent:c.parentNode}else if(O.nodeType==11)O=O.host;else break;return{left:s-t.left,right:Math.max(s,o)-t.left,top:a-(t.top+e),bottom:Math.max(a,l)-(t.top+e)}}function a0(i){let e=i.getBoundingClientRect(),t=i.ownerDocument.defaultView||window;return e.left<t.innerWidth&&e.right>0&&e.top<t.innerHeight&&e.bottom>0}function l0(i,e){let t=i.getBoundingClientRect();return{left:0,right:t.right-t.left,top:e,bottom:t.bottom-(t.top+e)}}class nl{constructor(e,t,n,r){this.from=e,this.to=t,this.size=n,this.displaySize=r}static same(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],s=t[n];if(r.from!=s.from||r.to!=s.to||r.size!=s.size)return!1}return!0}draw(e,t){return H.replace({widget:new O0(this.displaySize*(t?e.scaleY:e.scaleX),t)}).range(this.from,this.to)}}class O0 extends bi{constructor(e,t){super(),this.size=e,this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class Wh{constructor(e,t){this.view=e,this.state=t,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scaleX=1,this.scaleY=1,this.scrollOffset=0,this.scrolledToBottom=!1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=Ah,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=fe.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let n=t.facet(Ga).some(r=>typeof r!="function"&&r.class=="cm-lineWrapping");this.heightOracle=new Jb(n),this.stateDeco=Eh(t),this.heightMap=We.empty().applyChanges(this.stateDeco,ie.empty,this.heightOracle.setDoc(t.doc),[new nt(0,0,0,t.doc.length)]);for(let r=0;r<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());r++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=H.set(this.lineGaps.map(r=>r.draw(this,!1))),this.scrollParent=e.scrollDOM,this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let r=n?t.head:t.anchor;if(!e.some(({from:s,to:o})=>r>=s&&r<=o)){let{from:s,to:o}=this.lineBlockAt(r);e.push(new _s(s,o))}}return this.viewports=e.sort((n,r)=>n.from-r.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?Ah:new rl(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(cr(e,this.scaler))})}update(e,t=null){this.state=e.state;let n=this.stateDeco;this.stateDeco=Eh(this.state);let r=e.changedRanges,s=nt.extendWithRanges(r,r0(n,this.stateDeco,e?e.changes:ye.empty(this.state.doc.length))),o=this.heightMap.height,a=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollOffset);Vh(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),s),(this.heightMap.height!=o||yn)&&(e.flags|=2),a?(this.scrollAnchorPos=e.changes.mapPos(a.from,-1),this.scrollAnchorHeight=a.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=o);let l=s.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<l.from||t.range.head>l.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,t));let O=l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,e.flags|=this.updateForViewport(),(O||!e.changes.empty||e.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&(e.selectionSet||e.focusChanged)&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(eb)&&(this.mustEnforceCursorAssoc=!0)}measure(){let{view:e}=this,t=e.contentDOM,n=window.getComputedStyle(t),r=this.heightOracle,s=n.whiteSpace;this.defaultTextDirection=n.direction=="rtl"?fe.RTL:fe.LTR;let o=this.heightOracle.mustRefreshForWrapping(s)||this.mustMeasureContent==="refresh",a=t.getBoundingClientRect(),l=o||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;let O=0,c=0;if(a.width&&a.height){let{scaleX:P,scaleY:v}=Cd(t,a);(P>.005&&Math.abs(this.scaleX-P)>.005||v>.005&&Math.abs(this.scaleY-v)>.005)&&(this.scaleX=P,this.scaleY=v,O|=16,o=l=!0)}let d=(parseInt(n.paddingTop)||0)*this.scaleY,h=(parseInt(n.paddingBottom)||0)*this.scaleY;(this.paddingTop!=d||this.paddingBottom!=h)&&(this.paddingTop=d,this.paddingBottom=h,O|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(r.lineWrapping&&(l=!0),this.editorWidth=e.scrollDOM.clientWidth,O|=16);let f=Yd(this.view.contentDOM,!1).y;f!=this.scrollParent&&(this.scrollParent=f,this.scrollAnchorHeight=-1,this.scrollOffset=0);let p=this.getScrollOffset();this.scrollOffset!=p&&(this.scrollAnchorHeight=-1,this.scrollOffset=p),this.scrolledToBottom=Ed(this.scrollParent||e.win);let m=(this.printing?l0:o0)(t,this.paddingTop),$=m.top-this.pixelViewport.top,g=m.bottom-this.pixelViewport.bottom;this.pixelViewport=m;let y=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(y!=this.inView&&(this.inView=y,y&&(l=!0)),!this.inView&&!this.scrollTarget&&!a0(e.dom))return 0;let S=a.width;if((this.contentDOMWidth!=S||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=a.width,this.editorHeight=e.scrollDOM.clientHeight,O|=16),l){let P=e.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(P)&&(o=!0),o||r.lineWrapping&&Math.abs(S-this.contentDOMWidth)>r.charWidth){let{lineHeight:v,charWidth:k,textHeight:w}=e.docView.measureTextSize();o=v>0&&r.refresh(s,v,k,w,Math.max(5,S/k),P),o&&(e.docView.minWidth=0,O|=16)}$>0&&g>0?c=Math.max($,g):$<0&&g<0&&(c=Math.min($,g)),Vh();for(let v of this.viewports){let k=v.from==this.viewport.from?P:e.docView.measureVisibleLineHeights(v);this.heightMap=(o?We.empty().applyChanges(this.stateDeco,ie.empty,this.heightOracle,[new nt(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(r,0,o,new e0(v.from,k))}yn&&(O|=2)}let R=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return R&&(O&2&&(O|=this.updateScaler()),this.viewport=this.getViewport(c,this.scrollTarget),O|=this.updateForViewport()),(O&2||R)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,e)),O|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),O}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,s=this.heightOracle,{visibleTop:o,visibleBottom:a}=this,l=new _s(r.lineAt(o-n*1e3,de.ByHeight,s,0,0).from,r.lineAt(a+(1-n)*1e3,de.ByHeight,s,0,0).to);if(t){let{head:O}=t.range;if(O<l.from||O>l.to){let c=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),d=r.lineAt(O,de.ByPos,s,0,0),h;t.y=="center"?h=(d.top+d.bottom)/2-c/2:t.y=="start"||t.y=="nearest"&&O<l.from?h=d.top:h=d.bottom-c,l=new _s(r.lineAt(h-1e3/2,de.ByHeight,s,0,0).from,r.lineAt(h+c+1e3/2,de.ByHeight,s,0,0).to)}}return l}mapViewport(e,t){let n=t.mapPos(e.from,-1),r=t.mapPos(e.to,1);return new _s(this.heightMap.lineAt(n,de.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(r,de.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:t},n=0){if(!this.inView)return!0;let{top:r}=this.heightMap.lineAt(e,de.ByPos,this.heightOracle,0,0),{bottom:s}=this.heightMap.lineAt(t,de.ByPos,this.heightOracle,0,0),{visibleTop:o,visibleBottom:a}=this;return(e==0||r<=o-Math.max(10,Math.min(-n,250)))&&(t==this.state.doc.length||s>=a+Math.max(10,Math.min(n,250)))&&r>o-2*1e3&&s<a+2*1e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let n=[];for(let r of e)t.touchesRange(r.from,r.to)||n.push(new nl(t.mapPos(r.from),t.mapPos(r.to),r.size,r.displaySize));return n}ensureLineGaps(e,t){let n=this.heightOracle.lineWrapping,r=n?1e4:2e3,s=r>>1,o=r<<1;if(this.defaultTextDirection!=fe.LTR&&!n)return[];let a=[],l=(c,d,h,f)=>{if(d-c<s)return;let p=this.state.selection.main,m=[p.from];p.empty||m.push(p.to);for(let g of m)if(g>c&&g<d){l(c,g-10,h,f),l(g+10,d,h,f);return}let $=d0(e,g=>g.from>=h.from&&g.to<=h.to&&Math.abs(g.from-c)<s&&Math.abs(g.to-d)<s&&!m.some(y=>g.from<y&&g.to>y));if(!$){if(d<h.to&&t&&n&&t.visibleRanges.some(S=>S.from<=d&&S.to>=d)){let S=t.moveToLineBoundary(b.cursor(d),!1,!0).head;S>c&&(d=S)}let g=this.gapSize(h,c,d,f),y=n||g<2e6?g:2e6;$=new nl(c,d,g,y)}a.push($)},O=c=>{if(c.length<o||c.type!=je.Text)return;let d=c0(c.from,c.to,this.stateDeco);if(d.total<o)return;let h=this.scrollTarget?this.scrollTarget.range.head:null,f,p;if(n){let m=r/this.heightOracle.lineLength*this.heightOracle.lineHeight,$,g;if(h!=null){let y=Zs(d,h),S=((this.visibleBottom-this.visibleTop)/2+m)/c.height;$=y-S,g=y+S}else $=(this.visibleTop-c.top-m)/c.height,g=(this.visibleBottom-c.top+m)/c.height;f=Rs(d,$),p=Rs(d,g)}else{let m=d.total*this.heightOracle.charWidth,$=r*this.heightOracle.charWidth,g=0;if(m>2e6)for(let v of e)v.from>=c.from&&v.from<c.to&&v.size!=v.displaySize&&v.from*this.heightOracle.charWidth+g<this.pixelViewport.left&&(g=v.size-v.displaySize);let y=this.pixelViewport.left+g,S=this.pixelViewport.right+g,R,P;if(h!=null){let v=Zs(d,h),k=((S-y)/2+$)/m;R=v-k,P=v+k}else R=(y-$)/m,P=(S+$)/m;f=Rs(d,R),p=Rs(d,P)}f>c.from&&l(c.from,f,c,d),p<c.to&&l(p,c.to,c,d)};for(let c of this.viewportLines)Array.isArray(c.type)?c.type.forEach(O):O(c);return a}gapSize(e,t,n,r){let s=Zs(r,n)-Zs(r,t);return this.heightOracle.lineWrapping?e.height*s:r.total*this.heightOracle.charWidth*s}updateLineGaps(e){nl.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=H.set(e.map(t=>t.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(e){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let n=[];ee.spans(t,this.viewport.from,this.viewport.to,{span(s,o){n.push({from:s,to:o})},point(){}},20);let r=0;if(n.length!=this.visibleRanges.length)r=12;else for(let s=0;s<n.length&&!(r&8);s++){let o=this.visibleRanges[s],a=n[s];(o.from!=a.from||o.to!=a.to)&&(r|=4,e&&e.mapPos(o.from,-1)==a.from&&e.mapPos(o.to,1)==a.to||(r|=8))}return this.visibleRanges=n,r}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||cr(this.heightMap.lineAt(e,de.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(t=>t.top<=e&&t.bottom>=e)||cr(this.heightMap.lineAt(this.scaler.fromDOM(e),de.ByHeight,this.heightOracle,0,0),this.scaler)}getScrollOffset(){return(this.scrollParent==this.view.scrollDOM?this.scrollParent.scrollTop:(this.scrollParent?this.scrollParent.getBoundingClientRect().top:0)-this.view.contentDOM.getBoundingClientRect().top)*this.scaleY}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return cr(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class _s{constructor(e,t){this.from=e,this.to=t}}function c0(i,e,t){let n=[],r=i,s=0;return ee.spans(t,i,e,{span(){},point(o,a){o>r&&(n.push({from:r,to:o}),s+=o-r),r=a}},20),r<e&&(n.push({from:r,to:e}),s+=e-r),{total:s,ranges:n}}function Rs({total:i,ranges:e},t){if(t<=0)return e[0].from;if(t>=1)return e[e.length-1].to;let n=Math.floor(i*t);for(let r=0;;r++){let{from:s,to:o}=e[r],a=o-s;if(n<=a)return s+n;n-=a}}function Zs(i,e){let t=0;for(let{from:n,to:r}of i.ranges){if(e<=r){t+=e-n;break}t+=r-n}return t/i.total}function d0(i,e){for(let t of i)if(e(t))return t}const Ah={toDOM(i){return i},fromDOM(i){return i},scale:1,eq(i){return i==this}};function Eh(i){let e=i.facet(gs).filter(n=>typeof n!="function"),t=i.facet(Ia).filter(n=>typeof n!="function");return t.length&&e.push(ee.join(t)),e}class rl{constructor(e,t,n){let r=0,s=0,o=0;this.viewports=n.map(({from:a,to:l})=>{let O=t.lineAt(a,de.ByPos,e,0,0).top,c=t.lineAt(l,de.ByPos,e,0,0).bottom;return r+=c-O,{from:a,to:l,top:O,bottom:c,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(t.height-r);for(let a of this.viewports)a.domTop=o+(a.top-s)*this.scale,o=a.domBottom=a.domTop+(a.bottom-a.top),s=a.bottom}toDOM(e){for(let t=0,n=0,r=0;;t++){let s=t<this.viewports.length?this.viewports[t]:null;if(!s||e<s.top)return r+(e-n)*this.scale;if(e<=s.bottom)return s.domTop+(e-s.top);n=s.bottom,r=s.domBottom}}fromDOM(e){for(let t=0,n=0,r=0;;t++){let s=t<this.viewports.length?this.viewports[t]:null;if(!s||e<s.domTop)return n+(e-r)/this.scale;if(e<=s.domBottom)return s.top+(e-s.domTop);n=s.bottom,r=s.domBottom}}eq(e){return e instanceof rl?this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every((t,n)=>t.from==e.viewports[n].from&&t.to==e.viewports[n].to):!1}}function cr(i,e){if(e.scale==1)return i;let t=e.toDOM(i.top),n=e.toDOM(i.bottom);return new ht(i.from,i.length,t,n-t,Array.isArray(i._content)?i._content.map(r=>cr(r,e)):i._content)}const zs=Z.define({combine:i=>i.join(" ")}),sl=Z.define({combine:i=>i.indexOf(!0)>-1}),ol=Qi.newName(),Uh=Qi.newName(),jh=Qi.newName(),Mh={"&light":"."+Uh,"&dark":"."+jh};function al(i,e,t){return new Qi(e,{finish(n){return/&/.test(n)?n.replace(/&\w*/,r=>{if(r=="&")return i;if(!t||!t[r])throw new RangeError(`Unsupported selector: ${r}`);return t[r]}):i+" "+n}})}const h0=al("."+ol,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-selectionHandle":{backgroundColor:"currentColor",width:"1.5px"},".cm-selectionHandle-start::before, .cm-selectionHandle-end::before":{content:'""',backgroundColor:"inherit",borderRadius:"50%",width:"8px",height:"8px",position:"absolute",left:"-3.25px"},".cm-selectionHandle-start::before":{top:"-8px"},".cm-selectionHandle-end::before":{bottom:"-8px"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",zIndex:200},".cm-gutters-before":{insetInlineStart:0},".cm-gutters-after":{insetInlineEnd:0},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",border:"0px solid #ddd","&.cm-gutters-before":{borderRightWidth:"1px"},"&.cm-gutters-after":{borderLeftWidth:"1px"}},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-dialog":{padding:"2px 19px 4px 6px",position:"relative","& label":{fontSize:"80%"}},".cm-dialog-close":{position:"absolute",top:"3px",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",fontSize:"14px",padding:"0"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},Mh),f0={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},ll=_.ie&&_.ie_version<=11;class u0{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new jy,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let n of t)this.queue.push(n);(_.ie&&_.ie_version<=11||_.ios&&e.composing)&&t.some(n=>n.type=="childList"&&n.removedNodes.length||n.type=="characterData"&&n.oldValue.length>n.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&_.android&&e.constructor.EDIT_CONTEXT!==!1&&!(_.chrome&&_.chrome_version<126)&&(this.editContext=new m0(e),e.state.facet(Ht)&&(e.contentDOM.editContext=this.editContext.editContext)),ll&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var t;((t=this.view.docView)===null||t===void 0?void 0:t.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(t=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){(e.type=="change"||!e.type)&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,n)=>t!=e[n]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,r=this.selectionRange;if(n.state.facet(Ht)?n.root.activeElement!=this.dom:!rr(this.dom,r))return;let s=r.anchorNode&&n.docView.tile.nearest(r.anchorNode);if(s&&s.isWidget()&&s.widget.ignoreEvent(e)){t||(this.selectionChanged=!1);return}(_.ie&&_.ie_version<=11||_.android&&_.chrome)&&!n.state.selection.main.empty&&r.focusNode&&sr(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=nr(e.root);if(!t)return!1;let n=_.safari&&e.root.nodeType==11&&e.root.activeElement==this.dom&&p0(this.view,t)||t;if(!n||this.selectionRange.eq(n))return!1;let r=rr(this.dom,n);return r&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&Ly(this.dom,n)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(n),r&&(this.selectionChanged=!0),!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let n=this.dom;n;)if(n.nodeType==1)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==n?e++:t||(t=this.scrollTargets.slice(0,e)),t&&t.push(n),n=n.assignedSlot||n.parentNode;else if(n.nodeType==11)n=n.host;else break;if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){for(let n of this.scrollTargets)n.removeEventListener("scroll",this.onScroll);for(let n of this.scrollTargets=t)n.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,f0),ll&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),ll&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,t){var n;if(!this.delayedAndroidKey){let r=()=>{let s=this.delayedAndroidKey;s&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=s.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&s.force&&un(this.dom,s.key,s.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(r)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange<Date.now()-50||!!(!((n=this.delayedAndroidKey)===null||n===void 0)&&n.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,n=-1,r=!1;for(let s of e){let o=this.readMutation(s);o&&(o.typeOver&&(r=!0),t==-1?{from:t,to:n}=o:(t=Math.min(o.from,t),n=Math.max(o.to,n)))}return{from:t,to:n,typeOver:r}}readChange(){let{from:e,to:t,typeOver:n}=this.processRecords(),r=this.selectionChanged&&rr(this.dom,this.selectionRange);if(e<0&&!r)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let s=new zb(this.view,e,t,n);return this.view.docView.domChanged={newSel:s.newSel?s.newSel.main:null},s}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let n=this.view.state,r=$h(this.view,t);return this.view.state==n&&(t.domChanged||t.newSel&&!Ps(this.view.state.selection,t.newSel.main))&&this.view.update([]),r}readMutation(e){let t=this.view.docView.tile.nearest(e.target);if(!t||t.isWidget())return null;if(t.markDirty(e.type=="attributes"),e.type=="childList"){let n=Lh(t,e.previousSibling||e.target.previousSibling,-1),r=Lh(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:r?t.posBefore(r):t.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(Ht)!=e.state.facet(Ht)&&(e.view.contentDOM.editContext=e.state.facet(Ht)?this.editContext.editContext:null))}destroy(){var e,t,n;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(t=this.gapIntersection)===null||t===void 0||t.disconnect(),(n=this.resizeScroll)===null||n===void 0||n.disconnect();for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function Lh(i,e,t){for(;e;){let n=pe.get(e);if(n&&n.parent==i)return n;let r=e.parentNode;e=r!=i.dom?r:t>0?e.nextSibling:e.previousSibling}return null}function Gh(i,e){let t=e.startContainer,n=e.startOffset,r=e.endContainer,s=e.endOffset,o=i.docView.domAtPos(i.state.selection.main.anchor,1);return sr(o.node,o.offset,r,s)&&([t,n,r,s]=[r,s,t,n]),{anchorNode:t,anchorOffset:n,focusNode:r,focusOffset:s}}function p0(i,e){if(e.getComposedRanges){let r=e.getComposedRanges(i.root)[0];if(r)return Gh(i,r)}let t=null;function n(r){r.preventDefault(),r.stopImmediatePropagation(),t=r.getTargetRanges()[0]}return i.contentDOM.addEventListener("beforeinput",n,!0),i.dom.ownerDocument.execCommand("indent"),i.contentDOM.removeEventListener("beforeinput",n,!0),t?Gh(i,t):null}class m0{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let t=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=n=>{let r=e.state.selection.main,{anchor:s,head:o}=r,a=this.toEditorPos(n.updateRangeStart),l=this.toEditorPos(n.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:n.updateRangeStart,editorBase:a,drifted:!1});let O=l-a>n.text.length;a==this.from&&s<this.from?a=s:l==this.to&&s>this.to&&(l=s);let c=gh(e.state.sliceDoc(a,l),n.text,(O?r.from:r.to)-a,O?"end":null);if(!c){let h=b.single(this.toEditorPos(n.selectionStart),this.toEditorPos(n.selectionEnd));Ps(h,r)||e.dispatch({selection:h,userEvent:"select"});return}let d={from:c.from+a,to:c.toA+a,insert:ie.of(n.text.slice(c.from,c.toB).split(`
541
+ `))};if((_.mac||_.android)&&d.from==o-1&&/^\. ?$/.test(n.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(d={from:a,to:l,insert:ie.of([n.text.replace("."," ")])}),this.pendingContextChange=d,!e.state.readOnly){let h=this.to-this.from+(d.to-d.from+d.insert.length);el(e,d,b.single(this.toEditorPos(n.selectionStart,h),this.toEditorPos(n.selectionEnd,h)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)),d.from<d.to&&!d.insert.length&&e.inputState.composing>=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(t.text.slice(Math.max(0,n.updateRangeStart-1),Math.min(t.text.length,n.updateRangeStart+1)))&&this.handlers.compositionend(n)},this.handlers.characterboundsupdate=n=>{let r=[],s=null;for(let o=this.toEditorPos(n.rangeStart),a=this.toEditorPos(n.rangeEnd);o<a;o++){let l=e.coordsForChar(o);s=l&&new DOMRect(l.left,l.top,l.right-l.left,l.bottom-l.top)||s||new DOMRect,r.push(s)}t.updateCharacterBounds(n.rangeStart,r)},this.handlers.textformatupdate=n=>{let r=[];for(let s of n.getTextFormats()){let o=s.underlineStyle,a=s.underlineThickness;if(!/none/i.test(o)&&!/none/i.test(a)){let l=this.toEditorPos(s.rangeStart),O=this.toEditorPos(s.rangeEnd);if(l<O){let c=`text-decoration: underline ${/^[a-z]/.test(o)?o+" ":o=="Dashed"?"dashed ":o=="Squiggle"?"wavy ":""}${/thin/i.test(a)?1:2}px`;r.push(H.mark({attributes:{style:c}}).range(l,O))}}}e.dispatch({effects:ih.of(H.set(r))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:n}=this.composing;this.composing=null,n&&this.reset(e.state)}};for(let n in this.handlers)t.addEventListener(n,this.handlers[n]);this.measureReq={read:n=>{this.editContext.updateControlBounds(n.contentDOM.getBoundingClientRect());let r=nr(n.root);r&&r.rangeCount&&this.editContext.updateSelectionBounds(r.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,n=!1,r=this.pendingContextChange;return e.changes.iterChanges((s,o,a,l,O)=>{if(n)return;let c=O.length-(o-s);if(r&&o>=r.to)if(r.from==s&&r.to==o&&r.insert.eq(O)){r=this.pendingContextChange=null,t+=c,this.to+=c;return}else r=null,this.revertPending(e.state);if(s+=t,o+=t,o<=this.from)this.from+=c,this.to+=c;else if(s<this.to){if(s<this.from||o>this.to||this.to-this.from+O.length>3e4){n=!0;return}this.editContext.updateText(this.toContextPos(s),this.toContextPos(o),O.toString()),this.to+=c}t+=c}),r&&!n&&this.revertPending(e.state),!n}update(e){let t=this.pendingContextChange,n=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(n.from,n.to)&&e.transactions.some(r=>!r.isUserEvent("input.type")&&r.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,n=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),r=this.toContextPos(t.head);(this.editContext.selectionStart!=n||this.editContext.selectionEnd!=r)&&this.editContext.updateSelection(n,r)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to<e.doc.length&&this.to-t<500||this.to-this.from>1e4*3)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let n=this.composing;return n&&n.drifted?n.editorBase+(e-n.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class X{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var t;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:n}=e;this.dispatchTransactions=e.dispatchTransactions||n&&(r=>r.forEach(s=>n(s,this)))||(r=>this.update(r)),this.dispatch=this.dispatch.bind(this),this._root=e.root||My(e.parent)||document,this.viewState=new Wh(this,e.state||se.create(e)),e.scrollTo&&e.scrollTo.is($s)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(mn).map(r=>new La(r));for(let r of this.plugins)r.update(this);this.observer=new u0(this),this.inputState=new Yb(this),this.inputState.ensureHandlers(this.plugins),this.docView=new dh(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),!((t=document.fonts)===null||t===void 0)&&t.ready&&document.fonts.ready.then(()=>{this.viewState.mustMeasureContent="refresh",this.requestMeasure()})}dispatch(...e){let t=e.length==1&&e[0]instanceof $e?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t=!1,n=!1,r,s=this.state;for(let h of e){if(h.startState!=s)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");s=h.state}if(this.destroyed){this.viewState.state=s;return}let o=this.hasFocus,a=0,l=null;e.some(h=>h.annotation(_h))?(this.inputState.notifiedFocused=o,a=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,l=Rh(s,o),l||(a=1));let O=this.observer.delayedAndroidKey,c=null;if(O?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(s.doc)||!this.state.selection.eq(s.selection))&&(c=null)):this.observer.clear(),s.facet(se.phrases)!=this.state.facet(se.phrases))return this.setState(s);r=Qs.create(this,s,e),r.flags|=a;let d=this.viewState.scrollTarget;try{this.updateState=2;for(let h of e){if(d&&(d=d.map(h.changes)),h.scrollIntoView){let{main:f}=h.state.selection,{x:p,y:m}=this.state.facet(X.cursorScrollMargin);d=new pn(f.empty?f:b.cursor(f.head,f.head>f.anchor?-1:1),"nearest","nearest",m,p)}for(let f of h.effects)f.is($s)&&(d=f.value.clip(this.state))}this.viewState.update(r,d),this.bidiCache=qs.update(this.bidiCache,r.changes),r.empty||(this.updatePlugins(r),this.inputState.update(r)),t=this.docView.update(r),this.state.facet(lr)!=this.styleModules&&this.mountStyles(),n=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(t,e.some(h=>h.isUserEvent("select.pointer")))}finally{this.updateState=0}if(r.startState.facet(zs)!=r.state.facet(zs)&&(this.viewState.mustMeasureContent=!0),(t||n||d||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),t&&this.docViewUpdate(),!r.empty)for(let h of this.state.facet(Ua))try{h(r)}catch(f){Be(this.state,f,"update listener")}(l||c)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),c&&!$h(this,c)&&O.force&&un(this.contentDOM,O.key,O.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let t=this.hasFocus;try{for(let n of this.plugins)n.destroy(this);this.viewState=new Wh(this,e),this.plugins=e.facet(mn).map(n=>new La(n)),this.pluginMap.clear();for(let n of this.plugins)n.update(this);this.docView.destroy(),this.docView=new dh(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(mn),n=e.state.facet(mn);if(t!=n){let r=[];for(let s of n){let o=t.indexOf(s);if(o<0)r.push(new La(s));else{let a=this.plugins[o];a.mustUpdate=e,r.push(a)}}for(let s of this.plugins)s.mustUpdate!=e&&s.destroy(this);this.plugins=r,this.pluginMap.clear()}else for(let r of this.plugins)r.mustUpdate=e;for(let r=0;r<this.plugins.length;r++)this.plugins[r].update(this);t!=n&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let t=e.value;if(t&&t.docViewUpdate)try{t.docViewUpdate(this)}catch(n){Be(this.state,n,"doc view update listener")}}}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,n=this.viewState.scrollParent,r=this.viewState.getScrollOffset(),{scrollAnchorPos:s,scrollAnchorHeight:o}=this.viewState;Math.abs(r-this.viewState.scrollOffset)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let a=0;;a++){if(o<0)if(Ed(n||this.win))s=-1,o=this.viewState.heightMap.height;else{let f=this.viewState.scrollAnchorAt(r);s=f.from,o=f.top}this.updateState=1;let l=this.viewState.measure();if(!l&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(a>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let O=[];l&4||([this.measureRequests,O]=[O,this.measureRequests]);let c=O.map(f=>{try{return f.read(this)}catch(p){return Be(this.state,p),Ih}}),d=Qs.create(this,this.state,[]),h=!1;d.flags|=l,t?t.flags|=l:t=d,this.updateState=2,d.empty||(this.updatePlugins(d),this.inputState.update(d),this.updateAttrs(),h=this.docView.update(d),h&&this.docViewUpdate());for(let f=0;f<O.length;f++)if(c[f]!=Ih)try{let p=O[f];p.write&&p.write(c[f],this)}catch(p){Be(this.state,p)}if(h&&this.docView.updateSelection(!0),!d.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,o=-1;continue}else{let p=((s<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(s).top)-o)/this.scaleY;if((p>1||p<-1)&&(n==this.scrollDOM||this.hasFocus||Math.max(this.inputState.lastWheelEvent,this.inputState.lastTouchTime)>Date.now()-100)){r=r+p,n?n.scrollTop+=p:this.win.scrollBy(0,p),o=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let a of this.state.facet(Ua))a(t)}get themeClasses(){return ol+" "+(this.state.facet(sl)?jh:Uh)+" "+this.state.facet(zs)}updateAttrs(){let e=Dh(this,nh,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(Ht)?"true":"false",class:"cm-content",style:`${_.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),Dh(this,Ga,t);let n=this.observer.ignore(()=>{let r=zd(this.contentDOM,this.contentAttrs,t),s=zd(this.dom,this.editorAttrs,e);return r||s});return this.editorAttrs=e,this.contentAttrs=t,n}showAnnouncements(e){let t=!0;for(let n of e)for(let r of n.effects)if(r.is(X.announce)){t&&(this.announceDOM.textContent=""),t=!1;let s=this.announceDOM.appendChild(document.createElement("div"));s.textContent=r.value}}mountStyles(){this.styleModules=this.state.facet(lr);let e=this.state.facet(X.cspNonce);Qi.mount(this.root,this.styleModules.concat(h0).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key){this.measureRequests[t]=e;return}}this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e);return(t===void 0||t&&t.plugin!=e)&&this.pluginMap.set(e,t=this.plugins.find(n=>n.plugin==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,n){return Ka(this,e,fh(this,e,t,n))}moveByGroup(e,t){return Ka(this,e,fh(this,e,t,n=>vb(this,e.head,n)))}visualLineSide(e,t){let n=this.bidiSpans(e),r=this.textDirectionAt(e.from),s=n[t?n.length-1:0];return b.cursor(s.side(t,r)+e.from,s.forward(!t,r)?1:-1)}moveToLineBoundary(e,t,n=!0){return Tb(this,e,t,n)}moveVertically(e,t,n){return Ka(this,e,kb(this,e,t,n))}domAtPos(e,t=1){return this.docView.domAtPos(e,t)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){this.readMeasured();let n=Ja(this,e,t);return n&&n.pos}posAndSideAtCoords(e,t=!0){return this.readMeasured(),Ja(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let n=this.docView.coordsAt(e,t);if(!n||n.left==n.right)return n;let r=this.state.doc.lineAt(e),s=this.bidiSpans(r),o=s[Tt.find(s,e-r.from,-1,t)];return ms(n,o.dir==fe.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(eh)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>$0)return Id(e.length);let t=this.textDirectionAt(e.from),n;for(let s of this.bidiCache)if(s.from==e.from&&s.dir==t&&(s.fresh||Gd(s.isolates,n=oh(this,e))))return s.order;n||(n=oh(this,e));let r=Hy(e.text,t,n);return this.bidiCache.push(new qs(e.from,e.to,t,n,!0,r)),r}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||_.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{Wd(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){var n,r,s,o;return $s.of(new pn(typeof e=="number"?b.cursor(e):e,(n=t.y)!==null&&n!==void 0?n:"nearest",(r=t.x)!==null&&r!==void 0?r:"nearest",(s=t.yMargin)!==null&&s!==void 0?s:5,(o=t.xMargin)!==null&&o!==void 0?o:5))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,n=this.viewState.scrollAnchorAt(e);return $s.of(new pn(b.cursor(n.from),"start","start",n.top-e,t,!0))}setTabFocusMode(e){e==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof e=="boolean"?this.inputState.tabFocusMode=e?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return xe.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return xe.define(()=>({}),{eventObservers:e})}static theme(e,t){let n=Qi.newName(),r=[zs.of(n),lr.of(al(`.${n}`,e))];return t&&t.dark&&r.push(sl.of(!0)),r}static baseTheme(e){return Dt.lowest(lr.of(al("."+ol,e,Mh)))}static findFromDOM(e){var t;let n=e.querySelector(".cm-content"),r=n&&pe.get(n)||pe.get(e);return((t=r==null?void 0:r.root)===null||t===void 0?void 0:t.view)||null}}X.styleModule=lr,X.inputHandler=Kd,X.clipboardInputFilter=ja,X.clipboardOutputFilter=Ma,X.scrollHandler=th,X.focusChangeEffect=Jd,X.perLineTextDirection=eh,X.exceptionSink=Hd,X.updateListener=Ua,X.editable=Ht,X.mouseSelectionStyle=Fd,X.dragMovesSelection=Nd,X.clickAddsSelectionRange=Bd,X.decorations=gs,X.blockWrappers=rh,X.outerDecorations=Ia,X.atomicRanges=ar,X.bidiIsolatedRanges=sh,X.cursorScrollMargin=Z.define({combine:i=>{let e=5,t=5;for(let n of i)typeof n=="number"?e=t=n:{x:e,y:t}=n;return{x:e,y:t}}}),X.scrollMargins=ah,X.darkTheme=sl,X.cspNonce=Z.define({combine:i=>i.length?i[0]:""}),X.contentAttributes=Ga,X.editorAttributes=nh,X.lineWrapping=X.contentAttributes.of({class:"cm-lineWrapping"}),X.announce=F.define();const $0=4096,Ih={};class qs{constructor(e,t,n,r,s,o){this.from=e,this.to=t,this.dir=n,this.isolates=r,this.fresh=s,this.order=o}static update(e,t){if(t.empty&&!e.some(s=>s.fresh))return e;let n=[],r=e.length?e[e.length-1].dir:fe.LTR;for(let s=Math.max(0,e.length-10);s<e.length;s++){let o=e[s];o.dir==r&&!t.touchesRange(o.from,o.to)&&n.push(new qs(t.mapPos(o.from,1),t.mapPos(o.to,-1),o.dir,o.isolates,!1,o.order))}return n}}function Dh(i,e,t){for(let n=i.state.facet(e),r=n.length-1;r>=0;r--){let s=n[r],o=typeof s=="function"?s(i):s;o&&qa(o,t)}return t}const g0=_.mac?"mac":_.windows?"win":_.linux?"linux":"key";function Q0(i,e){const t=i.split(/-(?!$)/);let n=t[t.length-1];n=="Space"&&(n=" ");let r,s,o,a;for(let l=0;l<t.length-1;++l){const O=t[l];if(/^(cmd|meta|m)$/i.test(O))a=!0;else if(/^a(lt)?$/i.test(O))r=!0;else if(/^(c|ctrl|control)$/i.test(O))s=!0;else if(/^s(hift)?$/i.test(O))o=!0;else if(/^mod$/i.test(O))e=="mac"?a=!0:s=!0;else throw new Error("Unrecognized modifier name: "+O)}return r&&(n="Alt-"+n),s&&(n="Ctrl-"+n),a&&(n="Meta-"+n),o&&(n="Shift-"+n),n}function Vs(i,e,t){return e.altKey&&(i="Alt-"+i),e.ctrlKey&&(i="Ctrl-"+i),e.metaKey&&(i="Meta-"+i),t!==!1&&e.shiftKey&&(i="Shift-"+i),i}const y0=Dt.default(X.domEventHandlers({keydown(i,e){return Fh(Nh(e.state),i,e,"editor")}})),Gi=Z.define({enables:y0}),Bh=new WeakMap;function Nh(i){let e=i.facet(Gi),t=Bh.get(e);return t||Bh.set(e,t=w0(e.reduce((n,r)=>n.concat(r),[]))),t}function b0(i,e,t){return Fh(Nh(i.state),e,i,t)}let wi=null;const S0=4e3;function w0(i,e=g0){let t=Object.create(null),n=Object.create(null),r=(o,a)=>{let l=n[o];if(l==null)n[o]=a;else if(l!=a)throw new Error("Key binding "+o+" is used both as a regular binding and as a multi-stroke prefix")},s=(o,a,l,O,c)=>{var d,h;let f=t[o]||(t[o]=Object.create(null)),p=a.split(/ (?!$)/).map(g=>Q0(g,e));for(let g=1;g<p.length;g++){let y=p.slice(0,g).join(" ");r(y,!0),f[y]||(f[y]={preventDefault:!0,stopPropagation:!1,run:[S=>{let R=wi={view:S,prefix:y,scope:o};return setTimeout(()=>{wi==R&&(wi=null)},S0),!0}]})}let m=p.join(" ");r(m,!1);let $=f[m]||(f[m]={preventDefault:!1,stopPropagation:!1,run:((h=(d=f._any)===null||d===void 0?void 0:d.run)===null||h===void 0?void 0:h.slice())||[]});l&&$.run.push(l),O&&($.preventDefault=!0),c&&($.stopPropagation=!0)};for(let o of i){let a=o.scope?o.scope.split(" "):["editor"];if(o.any)for(let O of a){let c=t[O]||(t[O]=Object.create(null));c._any||(c._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:d}=o;for(let h in c)c[h].run.push(f=>d(f,Ol))}let l=o[e]||o.key;if(l)for(let O of a)s(O,l,o.run,o.preventDefault,o.stopPropagation),o.shift&&s(O,"Shift-"+l,o.shift,o.preventDefault,o.stopPropagation)}return t}let Ol=null;function Fh(i,e,t,n){Ol=e;let r=Vy(e),s=De(r,0),o=wt(s)==r.length&&r!=" ",a="",l=!1,O=!1,c=!1;wi&&wi.view==t&&wi.scope==n&&(a=wi.prefix+" ",bh.indexOf(e.keyCode)<0&&(O=!0,wi=null));let d=new Set,h=$=>{if($){for(let g of $.run)if(!d.has(g)&&(d.add(g),g(t)))return $.stopPropagation&&(c=!0),!0;$.preventDefault&&($.stopPropagation&&(c=!0),O=!0)}return!1},f=i[n],p,m;return f&&(h(f[a+Vs(r,e,!o)])?l=!0:o&&(e.altKey||e.metaKey||e.ctrlKey)&&!(_.windows&&e.ctrlKey&&e.altKey)&&!(_.mac&&e.altKey&&!(e.ctrlKey||e.metaKey))&&(p=yi[e.keyCode])&&p!=r?(h(f[a+Vs(p,e,!0)])||e.shiftKey&&(m=Jn[e.keyCode])!=r&&m!=p&&h(f[a+Vs(m,e,!1)]))&&(l=!0):o&&e.shiftKey&&h(f[a+Vs(r,e,!0)])&&(l=!0),!l&&h(f._any)&&(l=!0)),O&&(l=!0),l&&c&&e.stopPropagation(),Ol=null,l}function Hh(i,e,t,n,r){e.lastIndex=0;for(let s=i.iterRange(t,n),o=t,a;!s.next().done;o+=s.value.length)if(!s.lineBreak)for(;a=e.exec(s.value);)r(o+a.index,a)}function P0(i,e){let t=i.visibleRanges;if(t.length==1&&t[0].from==i.viewport.from&&t[0].to==i.viewport.to)return t;let n=[];for(let{from:r,to:s}of t)r=Math.max(i.state.doc.lineAt(r).from,r-e),s=Math.min(i.state.doc.lineAt(s).to,s+e),n.length&&n[n.length-1].to>=r?n[n.length-1].to=s:n.push({from:r,to:s});return n}class x0{constructor(e){const{regexp:t,decoration:n,decorate:r,boundary:s,maxLength:o=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,r)this.addMatch=(a,l,O,c)=>r(c,O,O+a[0].length,a,l);else if(typeof n=="function")this.addMatch=(a,l,O,c)=>{let d=n(a,l,O);d&&c(O,O+a[0].length,d)};else if(n)this.addMatch=(a,l,O,c)=>c(O,O+a[0].length,n);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=s,this.maxLength=o}createDeco(e){let t=new gi,n=t.add.bind(t);for(let{from:r,to:s}of P0(e,this.maxLength))Hh(e.state.doc,this.regexp,r,s,(o,a)=>this.addMatch(a,e,o,n));return t.finish()}updateDeco(e,t){let n=1e9,r=-1;return e.docChanged&&e.changes.iterChanges((s,o,a,l)=>{l>=e.view.viewport.from&&a<=e.view.viewport.to&&(n=Math.min(a,n),r=Math.max(l,r))}),e.viewportMoved||r-n>1e3?this.createDeco(e.view):r>-1?this.updateRange(e.view,t.map(e.changes),n,r):t}updateRange(e,t,n,r){for(let s of e.visibleRanges){let o=Math.max(s.from,n),a=Math.min(s.to,r);if(a>=o){let l=e.state.doc.lineAt(o),O=l.to<a?e.state.doc.lineAt(a):l,c=Math.max(s.from,l.from),d=Math.min(s.to,O.to);if(this.boundary){for(;o>l.from;o--)if(this.boundary.test(l.text[o-1-l.from])){c=o;break}for(;a<O.to;a++)if(this.boundary.test(O.text[a-O.from])){d=a;break}}let h=[],f,p=(m,$,g)=>h.push(g.range(m,$));if(l==O)for(this.regexp.lastIndex=c-l.from;(f=this.regexp.exec(l.text))&&f.index<d-l.from;)this.addMatch(f,e,f.index+l.from,p);else Hh(e.state.doc,this.regexp,c,d,(m,$)=>this.addMatch($,e,m,p));t=t.update({filterFrom:c,filterTo:d,filter:(m,$)=>m<c||$>d,add:h})}}return t}}function T0(){return k0}const v0=H.line({class:"cm-activeLine"}),k0=xe.fromClass(class{constructor(i){this.decorations=this.getDeco(i)}update(i){(i.docChanged||i.selectionSet)&&(this.decorations=this.getDeco(i.view))}getDeco(i){let e=-1,t=[];for(let n of i.state.selection.ranges){let r=i.lineBlockAt(n.head);r.from>e&&(t.push(v0.range(r.from)),e=r.from)}return H.set(t)}},{decorations:i=>i.decorations}),Cs="-10000px";class X0{constructor(e,t,n,r){this.facet=t,this.createTooltipView=n,this.removeTooltipView=r,this.input=e.state.facet(t),this.tooltips=this.input.filter(o=>o);let s=null;this.tooltipViews=this.tooltips.map(o=>s=n(o,s))}update(e,t){var n;let r=e.state.facet(this.facet),s=r.filter(l=>l);if(r===this.input){for(let l of this.tooltipViews)l.update&&l.update(e);return!1}let o=[],a=t?[]:null;for(let l=0;l<s.length;l++){let O=s[l],c=-1;if(O){for(let d=0;d<this.tooltips.length;d++){let h=this.tooltips[d];h&&h.create==O.create&&(c=d)}if(c<0)o[l]=this.createTooltipView(O,l?o[l-1]:null),a&&(a[l]=!!O.above);else{let d=o[l]=this.tooltipViews[c];a&&(a[l]=t[c]),d.update&&d.update(e)}}}for(let l of this.tooltipViews)o.indexOf(l)<0&&(this.removeTooltipView(l),(n=l.destroy)===null||n===void 0||n.call(l));return t&&(a.forEach((l,O)=>t[O]=l),t.length=a.length),this.input=r,this.tooltips=s,this.tooltipViews=o,!0}}function _0(i){let e=i.dom.ownerDocument.documentElement;return{top:0,left:0,bottom:e.clientHeight,right:e.clientWidth}}const cl=Z.define({combine:i=>{var e,t,n;return{position:_.ios?"absolute":((e=i.find(r=>r.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((t=i.find(r=>r.parent))===null||t===void 0?void 0:t.parent)||null,tooltipSpace:((n=i.find(r=>r.tooltipSpace))===null||n===void 0?void 0:n.tooltipSpace)||_0}}}),Kh=new WeakMap,Jh=xe.fromClass(class{constructor(i){this.view=i,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=i.state.facet(cl);this.position=e.position,this.parent=e.parent,this.classes=i.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new X0(i,tf,(t,n)=>this.createTooltip(t,n),t=>{this.resizeObserver&&this.resizeObserver.unobserve(t.dom),t.dom.remove()}),this.above=this.manager.tooltips.map(t=>!!t.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(t=>{Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),i.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let i of this.manager.tooltipViews)this.intersectionObserver.observe(i.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(i){i.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(i,this.above);e&&this.observeIntersection();let t=e||i.geometryChanged,n=i.state.facet(cl);if(n.position!=this.position&&!this.madeAbsolute){this.position=n.position;for(let r of this.manager.tooltipViews)r.dom.style.position=this.position;t=!0}if(n.parent!=this.parent){this.parent&&this.container.remove(),this.parent=n.parent,this.createContainer();for(let r of this.manager.tooltipViews)this.container.appendChild(r.dom);t=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);t&&this.maybeMeasure()}createTooltip(i,e){let t=i.create(this.view),n=e?e.dom:null;if(t.dom.classList.add("cm-tooltip"),i.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let r=document.createElement("div");r.className="cm-tooltip-arrow",t.dom.appendChild(r)}return t.dom.style.position=this.position,t.dom.style.top=Cs,t.dom.style.left="0px",this.container.insertBefore(t.dom,n),t.mount&&t.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(t.dom),t}destroy(){var i,e,t;this.view.win.removeEventListener("resize",this.measureSoon);for(let n of this.manager.tooltipViews)n.dom.remove(),(i=n.destroy)===null||i===void 0||i.call(n);this.parent&&this.container.remove(),(e=this.resizeObserver)===null||e===void 0||e.disconnect(),(t=this.intersectionObserver)===null||t===void 0||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let i=1,e=1,t=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:s}=this.manager.tooltipViews[0];if(_.safari){let o=s.getBoundingClientRect();t=Math.abs(o.top+1e4)>1||Math.abs(o.left)>1}else t=!!s.offsetParent&&s.offsetParent!=this.container.ownerDocument.body}if(t||this.position=="absolute")if(this.parent){let s=this.parent.getBoundingClientRect();s.width&&s.height&&(i=s.width/this.parent.offsetWidth,e=s.height/this.parent.offsetHeight)}else({scaleX:i,scaleY:e}=this.view.viewState);let n=this.view.scrollDOM.getBoundingClientRect(),r=Da(this.view);return{visible:{left:n.left+r.left,top:n.top+r.top,right:n.right-r.right,bottom:n.bottom-r.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map((s,o)=>{let a=this.manager.tooltipViews[o];return a.getCoords?a.getCoords(s.pos):this.view.coordsAtPos(s.pos)}),size:this.manager.tooltipViews.map(({dom:s})=>s.getBoundingClientRect()),space:this.view.state.facet(cl).tooltipSpace(this.view),scaleX:i,scaleY:e,makeAbsolute:t}}writeMeasure(i){var e;if(i.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let a of this.manager.tooltipViews)a.dom.style.position="absolute"}let{visible:t,space:n,scaleX:r,scaleY:s}=i,o=[];for(let a=0;a<this.manager.tooltips.length;a++){let l=this.manager.tooltips[a],O=this.manager.tooltipViews[a],{dom:c}=O,d=i.pos[a],h=i.size[a];if(!d||l.clip!==!1&&(d.bottom<=Math.max(t.top,n.top)||d.top>=Math.min(t.bottom,n.bottom)||d.right<Math.max(t.left,n.left)-.1||d.left>Math.min(t.right,n.right)+.1)){c.style.top=Cs;continue}let f=l.arrow?O.dom.querySelector(".cm-tooltip-arrow"):null,p=f?7:0,m=h.right-h.left,$=(e=Kh.get(O))!==null&&e!==void 0?e:h.bottom-h.top,g=O.offset||Z0,y=this.view.textDirection==fe.LTR,S=h.width>n.right-n.left?y?n.left:n.right-h.width:y?Math.max(n.left,Math.min(d.left-(f?14:0)+g.x,n.right-m)):Math.min(Math.max(n.left,d.left-m+(f?14:0)-g.x),n.right-m),R=this.above[a];!l.strictSide&&(R?d.top-$-p-g.y<n.top:d.bottom+$+p+g.y>n.bottom)&&R==n.bottom-d.bottom>d.top-n.top&&(R=this.above[a]=!R);let P=(R?d.top-n.top:n.bottom-d.bottom)-p;if(P<$&&O.resize!==!1){if(P<this.view.defaultLineHeight){c.style.top=Cs;continue}Kh.set(O,$),c.style.height=($=P)/s+"px"}else c.style.height&&(c.style.height="");let v=R?d.top-$-p-g.y:d.bottom+p+g.y,k=S+m;if(O.overlap!==!0)for(let w of o)w.left<k&&w.right>S&&w.top<v+$&&w.bottom>v&&(v=R?w.top-$-2-p:w.bottom+p+2);if(this.position=="absolute"?(c.style.top=(v-i.parent.top)/s+"px",ef(c,(S-i.parent.left)/r)):(c.style.top=v/s+"px",ef(c,S/r)),f){let w=d.left+(y?g.x:-g.x)-(S+14-7);f.style.left=w/r+"px"}O.overlap!==!0&&o.push({left:S,top:v,right:k,bottom:v+$}),c.classList.toggle("cm-tooltip-above",R),c.classList.toggle("cm-tooltip-below",!R),O.positioned&&O.positioned(i.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let i of this.manager.tooltipViews)i.dom.style.top=Cs}},{eventObservers:{scroll(){this.maybeMeasure()}}});function ef(i,e){let t=parseInt(i.style.left,10);(isNaN(t)||Math.abs(e-t)>1)&&(i.style.left=e+"px")}const R0=X.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),Z0={x:0,y:0},tf=Z.define({enables:[Jh,R0]});function nf(i,e){let t=i.plugin(Jh);if(!t)return null;let n=t.manager.tooltips.indexOf(e);return n<0?null:t.manager.tooltipViews[n]}const rf=Z.define({combine(i){let e,t;for(let n of i)e=e||n.topContainer,t=t||n.bottomContainer;return{topContainer:e,bottomContainer:t}}});function sf(i,e){let t=i.plugin(of),n=t?t.specs.indexOf(e):-1;return n>-1?t.panels[n]:null}const of=xe.fromClass(class{constructor(i){this.input=i.state.facet(Ws),this.specs=this.input.filter(t=>t),this.panels=this.specs.map(t=>t(i));let e=i.state.facet(rf);this.top=new Ys(i,!0,e.topContainer),this.bottom=new Ys(i,!1,e.bottomContainer),this.top.sync(this.panels.filter(t=>t.top)),this.bottom.sync(this.panels.filter(t=>!t.top));for(let t of this.panels)t.dom.classList.add("cm-panel"),t.mount&&t.mount()}update(i){let e=i.state.facet(rf);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new Ys(i.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new Ys(i.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let t=i.state.facet(Ws);if(t!=this.input){let n=t.filter(l=>l),r=[],s=[],o=[],a=[];for(let l of n){let O=this.specs.indexOf(l),c;O<0?(c=l(i.view),a.push(c)):(c=this.panels[O],c.update&&c.update(i)),r.push(c),(c.top?s:o).push(c)}this.specs=n,this.panels=r,this.top.sync(s),this.bottom.sync(o);for(let l of a)l.dom.classList.add("cm-panel"),l.mount&&l.mount()}else for(let n of this.panels)n.update&&n.update(i)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:i=>X.scrollMargins.of(e=>{let t=e.plugin(i);return t&&{top:t.top.scrollMargin(),bottom:t.bottom.scrollMargin()}})});class Ys{constructor(e,t,n){this.view=e,this.top=t,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=af(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=af(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function af(i){let e=i.nextSibling;return i.remove(),e}const Ws=Z.define({enables:of});function z0(i,e){let t,n=new Promise(o=>t=o),r=o=>q0(o,e,t);i.state.field(dl,!1)?i.dispatch({effects:lf.of(r)}):i.dispatch({effects:F.appendConfig.of(dl.init(()=>[r]))});let s=Of.of(r);return{close:s,result:n.then(o=>((i.win.queueMicrotask||(l=>i.win.setTimeout(l,10)))(()=>{i.state.field(dl).indexOf(r)>-1&&i.dispatch({effects:s})}),o))}}const dl=Ce.define({create(){return[]},update(i,e){for(let t of e.effects)t.is(lf)?i=[t.value].concat(i):t.is(Of)&&(i=i.filter(n=>n!=t.value));return i},provide:i=>Ws.computeN([i],e=>e.field(i))}),lf=F.define(),Of=F.define();function q0(i,e,t){let n=e.content?e.content(i,()=>o(null)):null;if(!n){if(n=Pe("form"),e.input){let a=Pe("input",e.input);/^(text|password|number|email|tel|url)$/.test(a.type)&&a.classList.add("cm-textfield"),a.name||(a.name="input"),n.appendChild(Pe("label",(e.label||"")+": ",a))}else n.appendChild(document.createTextNode(e.label||""));n.appendChild(document.createTextNode(" ")),n.appendChild(Pe("button",{class:"cm-button",type:"submit"},e.submitLabel||"OK"))}let r=n.nodeName=="FORM"?[n]:n.querySelectorAll("form");for(let a=0;a<r.length;a++){let l=r[a];l.addEventListener("keydown",O=>{O.keyCode==27?(O.preventDefault(),o(null)):O.keyCode==13&&(O.preventDefault(),o(l))}),l.addEventListener("submit",O=>{O.preventDefault(),o(l)})}let s=Pe("div",n,Pe("button",{onclick:()=>o(null),"aria-label":i.state.phrase("close"),class:"cm-dialog-close",type:"button"},["×"]));e.class&&(s.className=e.class),s.classList.add("cm-dialog");function o(a){s.contains(s.ownerDocument.activeElement)&&i.focus(),t(a)}return{dom:s,top:e.top,mount:()=>{if(e.focus){let a;typeof e.focus=="string"?a=n.querySelector(e.focus):a=n.querySelector("input")||n.querySelector("button"),a&&"select"in a?a.select():a&&"focus"in a&&a.focus()}}}}class Jt extends $i{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}Jt.prototype.elementClass="",Jt.prototype.toDOM=void 0,Jt.prototype.mapMode=_e.TrackBefore,Jt.prototype.startSide=Jt.prototype.endSide=-1,Jt.prototype.point=!0;const As=Z.define(),V0=Z.define(),C0={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>ee.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{},side:"before"},dr=Z.define();function Y0(i){return[df(),dr.of({...C0,...i})]}const cf=Z.define({combine:i=>i.some(e=>e)});function df(i){return[W0]}const W0=xe.fromClass(class{constructor(i){this.view=i,this.domAfter=null,this.prevViewport=i.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters cm-gutters-before",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=i.state.facet(dr).map(e=>new ff(i,e)),this.fixed=!i.state.facet(cf);for(let e of this.gutters)e.config.side=="after"?this.getDOMAfter().appendChild(e.dom):this.dom.appendChild(e.dom);this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),i.scrollDOM.insertBefore(this.dom,i.contentDOM)}getDOMAfter(){return this.domAfter||(this.domAfter=document.createElement("div"),this.domAfter.className="cm-gutters cm-gutters-after",this.domAfter.setAttribute("aria-hidden","true"),this.domAfter.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.domAfter.style.position=this.fixed?"sticky":"",this.view.scrollDOM.appendChild(this.domAfter)),this.domAfter}update(i){if(this.updateGutters(i)){let e=this.prevViewport,t=i.view.viewport,n=Math.min(e.to,t.to)-Math.max(e.from,t.from);this.syncGutters(n<(t.to-t.from)*.8)}if(i.geometryChanged){let e=this.view.contentHeight/this.view.scaleY+"px";this.dom.style.minHeight=e,this.domAfter&&(this.domAfter.style.minHeight=e)}this.view.state.facet(cf)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":"",this.domAfter&&(this.domAfter.style.position=this.fixed?"sticky":"")),this.prevViewport=i.view.viewport}syncGutters(i){let e=this.dom.nextSibling;i&&(this.dom.remove(),this.domAfter&&this.domAfter.remove());let t=ee.iter(this.view.state.facet(As),this.view.viewport.from),n=[],r=this.gutters.map(s=>new A0(s,this.view.viewport,-this.view.documentPadding.top));for(let s of this.view.viewportLineBlocks)if(n.length&&(n=[]),Array.isArray(s.type)){let o=!0;for(let a of s.type)if(a.type==je.Text&&o){hl(t,n,a.from);for(let l of r)l.line(this.view,a,n);o=!1}else if(a.widget)for(let l of r)l.widget(this.view,a)}else if(s.type==je.Text){hl(t,n,s.from);for(let o of r)o.line(this.view,s,n)}else if(s.widget)for(let o of r)o.widget(this.view,s);for(let s of r)s.finish();i&&(this.view.scrollDOM.insertBefore(this.dom,e),this.domAfter&&this.view.scrollDOM.appendChild(this.domAfter))}updateGutters(i){let e=i.startState.facet(dr),t=i.state.facet(dr),n=i.docChanged||i.heightChanged||i.viewportChanged||!ee.eq(i.startState.facet(As),i.state.facet(As),i.view.viewport.from,i.view.viewport.to);if(e==t)for(let r of this.gutters)r.update(i)&&(n=!0);else{n=!0;let r=[];for(let s of t){let o=e.indexOf(s);o<0?r.push(new ff(this.view,s)):(this.gutters[o].update(i),r.push(this.gutters[o]))}for(let s of this.gutters)s.dom.remove(),r.indexOf(s)<0&&s.destroy();for(let s of r)s.config.side=="after"?this.getDOMAfter().appendChild(s.dom):this.dom.appendChild(s.dom);this.gutters=r}return n}destroy(){for(let i of this.gutters)i.destroy();this.dom.remove(),this.domAfter&&this.domAfter.remove()}},{provide:i=>X.scrollMargins.of(e=>{let t=e.plugin(i);if(!t||t.gutters.length==0||!t.fixed)return null;let n=t.dom.offsetWidth*e.scaleX,r=t.domAfter?t.domAfter.offsetWidth*e.scaleX:0;return e.textDirection==fe.LTR?{left:n,right:r}:{right:n,left:r}})});function hf(i){return Array.isArray(i)?i:[i]}function hl(i,e,t){for(;i.value&&i.from<=t;)i.from==t&&e.push(i.value),i.next()}class A0{constructor(e,t,n){this.gutter=e,this.height=n,this.i=0,this.cursor=ee.iter(e.markers,t.from)}addElement(e,t,n){let{gutter:r}=this,s=(t.top-this.height)/e.scaleY,o=t.height/e.scaleY;if(this.i==r.elements.length){let a=new uf(e,o,s,n);r.elements.push(a),r.dom.appendChild(a.dom)}else r.elements[this.i].update(e,o,s,n);this.height=t.bottom,this.i++}line(e,t,n){let r=[];hl(this.cursor,r,t.from),n.length&&(r=r.concat(n));let s=this.gutter.config.lineMarker(e,t,r);s&&r.unshift(s);let o=this.gutter;r.length==0&&!o.config.renderEmptyElements||this.addElement(e,t,r)}widget(e,t){let n=this.gutter.config.widgetMarker(e,t.widget,t),r=n?[n]:null;for(let s of e.state.facet(V0)){let o=s(e,t.widget,t);o&&(r||(r=[])).push(o)}r&&this.addElement(e,t,r)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class ff{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in t.domEventHandlers)this.dom.addEventListener(n,r=>{let s=r.target,o;if(s!=this.dom&&this.dom.contains(s)){for(;s.parentNode!=this.dom;)s=s.parentNode;let l=s.getBoundingClientRect();o=(l.top+l.bottom)/2}else o=r.clientY;let a=e.lineBlockAtHeight(o-e.documentTop);t.domEventHandlers[n](e,a,r)&&r.preventDefault()});this.markers=hf(t.markers(e)),t.initialSpacer&&(this.spacer=new uf(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=hf(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let r=this.config.updateSpacer(this.spacer.markers[0],e);r!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[r])}let n=e.view.viewport;return!ee.eq(this.markers,t,n.from,n.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class uf{constructor(e,t,n,r){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,n,r)}update(e,t,n,r){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),E0(this.markers,r)||this.setMarkers(e,r)}setMarkers(e,t){let n="cm-gutterElement",r=this.dom.firstChild;for(let s=0,o=0;;){let a=o,l=s<t.length?t[s++]:null,O=!1;if(l){let c=l.elementClass;c&&(n+=" "+c);for(let d=o;d<this.markers.length;d++)if(this.markers[d].compare(l)){a=d,O=!0;break}}else a=this.markers.length;for(;o<a;){let c=this.markers[o++];if(c.toDOM){c.destroy(r);let d=r.nextSibling;r.remove(),r=d}}if(!l)break;l.toDOM&&(O?r=r.nextSibling:this.dom.insertBefore(l.toDOM(e),r)),O&&o++}this.dom.className=n,this.markers=t}destroy(){this.setMarkers(null,[])}}function E0(i,e){if(i.length!=e.length)return!1;for(let t=0;t<i.length;t++)if(!i[t].compare(e[t]))return!1;return!0}const U0=Z.define(),j0=Z.define(),bn=Z.define({combine(i){return hn(i,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let n=Object.assign({},e);for(let r in t){let s=n[r],o=t[r];n[r]=s?(a,l,O)=>s(a,l,O)||o(a,l,O):o}return n}})}});class fl extends Jt{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function ul(i,e){return i.state.facet(bn).formatNumber(e,i.state)}const M0=dr.compute([bn],i=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(U0)},lineMarker(e,t,n){return n.some(r=>r.toDOM)?null:new fl(ul(e,e.state.doc.lineAt(t.from).number))},widgetMarker:(e,t,n)=>{for(let r of e.state.facet(j0)){let s=r(e,t,n);if(s)return s}return null},lineMarkerChange:e=>e.startState.facet(bn)!=e.state.facet(bn),initialSpacer(e){return new fl(ul(e,pf(e.state.doc.lines)))},updateSpacer(e,t){let n=ul(t.view,pf(t.view.state.doc.lines));return n==e.number?e:new fl(n)},domEventHandlers:i.facet(bn).domEventHandlers,side:"before"}));function L0(i={}){return[bn.of(i),df(),M0]}function pf(i){let e=9;for(;e<i;)e=e*10+9;return e}const G0=new class extends Jt{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},I0=As.compute(["selection"],i=>{let e=[],t=-1;for(let n of i.selection.ranges){let r=i.doc.lineAt(n.head).from;r>t&&(t=r,e.push(G0.range(r)))}return ee.of(e)});function D0(){return I0}const hr=F.define(),Es=Ce.define({create:()=>null,update(i,e){for(const t of e.effects)if(t.is(hr))return t.value;return i&&(e.docChanged||e.selection)?null:i}});class B0 extends bi{constructor(e){super(),this.text=e}toDOM(){const e=document.createElement("span");return e.className="cm-ghost-completion",e.textContent=this.text,e}eq(e){return e.text===this.text}ignoreEvent(){return!0}}function mf(i){const e=i.field(Es);if(!e||!e.text)return H.none;const{from:t}=i.selection.main;if(t!==e.from)return H.none;const n=H.widget({widget:new B0(e.text),side:1});return H.set([n.range(e.from)])}const N0=xe.fromClass(class{constructor(i){Ko(this,"decorations");this.decorations=mf(i.state)}update(i){this.decorations=mf(i.state)}},{decorations:i=>i.decorations});function F0(i){const e=i.state.field(Es);if(!e||!e.text)return!1;const t=e.from+e.text.length;return i.dispatch({changes:{from:e.from,insert:e.text},selection:{anchor:t},effects:hr.of(null),userEvent:"input.complete"}),!0}function H0(i){return i.state.field(Es)?(i.dispatch({effects:hr.of(null)}),!0):!1}const K0=Dt.highest(Gi.of([{key:"Tab",run:F0},{key:"Escape",run:H0}])),J0=250,eS=40,tS=20,iS=2;function nS(i){return xe.fromClass(class{constructor(e){Ko(this,"state",{timer:null,abort:null,nextRequestId:0});this.view=e}update(e){i.enabled()&&(e.docChanged||e.selectionSet)&&(this.cancel(),this.schedule())}schedule(){this.state.timer!=null&&window.clearTimeout(this.state.timer),this.state.timer=window.setTimeout(()=>this.fire(),J0)}cancel(){this.state.timer!=null&&(window.clearTimeout(this.state.timer),this.state.timer=null),this.state.abort&&(this.state.abort.abort(),this.state.abort=null)}async fire(){if(this.state.timer=null,!i.enabled())return;const e=this.view,t=e.state,n=t.selection.main;if(!n.empty)return;const r=n.from;if(r>0){const f=t.doc.sliceString(r-1,r);if(/\w/.test(f)!==!1){const p=t.doc.sliceString(r,r+1);if(/\w/.test(p))return}}const s=t.doc,o=s.lineAt(r),a=s.line(Math.max(1,o.number-eS)).from,l=s.line(Math.min(s.lines,o.number+tS)).to,O=s.sliceString(a,r),c=s.sliceString(r,l);if(!O.trim()&&!c.trim())return;const d=++this.state.nextRequestId;this.state.abort=new AbortController,e.dispatch({effects:hr.of(null)});let h="";try{await sS({prefix:O,suffix:c,language:i.language(),path:i.path(),planIntent:i.planIntent()},this.state.abort.signal,f=>{if(d!==this.state.nextRequestId)return;h+=f;const p=rS(h);p.length<iS||e.dispatch({effects:hr.of({from:r,text:p,requestId:d})})})}catch(f){if((f==null?void 0:f.name)==="AbortError")return;console.warn("[completion]",f)}finally{this.state.abort=null}}destroy(){this.cancel()}})}function rS(i){const e=i.split(`
542
+ `);let t=!1;const n=[];for(const r of e){const s=r.trim().length===0;if(t&&s)break;n.push(r),s||(t=!0)}return n.join(`
543
+ `).replace(/\s+$/g,"")}async function sS(i,e,t){var c;const n=`<|fim_prefix|>${i.prefix}<|fim_suffix|>${i.suffix}<|fim_middle|>`,r=["You are a code completion engine.","You receive FIM tokens (<|fim_prefix|>…<|fim_suffix|>…<|fim_middle|>).","Output ONLY the missing middle text that goes at the cursor.","No explanation, no markdown fences, no restating the prefix or suffix.",`Language: ${i.language||"unknown"}.`];i.planIntent&&(r.push(`Current plan step: ${i.planIntent.slice(0,200)}.`),r.push("Match the plan step's intent when relevant."));const s={model:"qwen2.5-coder:14b",messages:[{role:"system",content:r.join(" ")},{role:"user",content:n}],stream:!0,options:{num_predict:200,temperature:.15,stop:["<|fim_prefix|>","<|fim_suffix|>","<|fim_middle|>","<|endoftext|>"]}},o=await fetch("/ai/api/chat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s),signal:e});if(!o.ok||!o.body)throw new Error(`fim ${o.status}`);const a=o.body.getReader(),l=new TextDecoder;let O="";try{for(;;){const{done:d,value:h}=await a.read();if(d)break;O+=l.decode(h,{stream:!0});let f=O.indexOf(`
544
+ `);for(;f>=0;){const p=O.slice(0,f).trim();if(O=O.slice(f+1),p)try{const m=JSON.parse(p),$=((c=m==null?void 0:m.message)==null?void 0:c.content)??(m==null?void 0:m.response)??"";if($&&t($),m!=null&&m.done)return}catch{}f=O.indexOf(`
545
+ `)}}}finally{a.releaseLock()}}const oS=X.baseTheme({".cm-ghost-completion":{color:"#6c7086",opacity:"0.75",fontStyle:"italic",whiteSpace:"pre-wrap",pointerEvents:"none"}});function aS(i){return[Es,N0,nS(i),K0,oS]}const ei="/__dev/api";async function lS(i,e,t={}){const n=await fetch(`${ei}/execute`,{method:"POST",headers:{"Content-Type":"application/json"},signal:t.signal,body:JSON.stringify({plan_file:i})});if(!n.ok||!n.body)throw new Error(`execute ${n.status}: ${await dS(n)}`);await cS(n.body,e)}async function OS(){try{const i=await fetch(`${ei}/thoughts`);if(!i.ok)return[];const e=await i.json();return Array.isArray(e)?e.filter(t=>!t.dismissed):[]}catch{return[]}}async function $f(i){try{let e=await fetch(`${ei}/thoughts/${encodeURIComponent(i)}`,{method:"DELETE"});return(e.status===404||e.status===405)&&(e=await fetch(`${ei}/thoughts/${encodeURIComponent(i)}/dismiss`,{method:"POST"})),e.ok}catch{return!1}}async function cS(i,e){const t=i.getReader(),n=new TextDecoder;let r="",s="";try{for(;;){const{done:o,value:a}=await t.read();if(o)break;r+=n.decode(a,{stream:!0});let l=r.indexOf(`
546
+ `);for(;l>=0;){const O=r.slice(0,l).replace(/\r$/,"");if(r=r.slice(l+1),O!==""){if(O.startsWith("event:"))s=O.slice(6).trim();else if(O.startsWith("data:")){const c=O.slice(5).trim();try{const d=c?JSON.parse(c):{};e({event:s||"message",agent:d.agent,text:d.text,content:d.content,files_changed:d.files_changed,raw:d})}catch{}s=""}}l=r.indexOf(`
547
+ `)}}}finally{t.releaseLock()}}async function dS(i){try{return(await i.text()).slice(0,200)}catch{return""}}async function hS(i={}){const e=await fetch(`${ei}/supervise/create`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:i.title||"",plan:i.plan||""})}),t=await e.json().catch(()=>({}));if(!e.ok||t!=null&&t.error)throw new Error((t==null?void 0:t.error)||`create ${e.status}`);return t}async function fS(i){const e=await fetch(`${ei}/supervise/diff?id=${encodeURIComponent(i)}`),t=await e.json().catch(()=>({}));if(!e.ok||t!=null&&t.error)throw new Error((t==null?void 0:t.error)||`diff ${e.status}`);return t}async function uS(i,e=[]){const t=await fetch(`${ei}/supervise/commit`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:i,accept:e})}),n=await t.json().catch(()=>({}));if(!t.ok||n!=null&&n.error)throw new Error((n==null?void 0:n.error)||`commit ${t.status}`);return n}async function pS(i){const e=await fetch(`${ei}/supervise/cancel`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:i})}),t=await e.json().catch(()=>({}));if(!e.ok||t!=null&&t.error)throw new Error((t==null?void 0:t.error)||`cancel ${e.status}`)}async function mS(){try{const i=await fetch(`${ei}/supervise/sessions`);if(!i.ok)return[];const e=await i.json();return Array.isArray(e)?e:[]}catch{return[]}}const gf=1024;let $S=0;class rt{constructor(e,t){this.from=e,this.to=t}}class E{constructor(e={}){this.id=$S++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")}),this.combine=e.combine||null}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=Qe.match(e)),t=>{let n=e(t);return n===void 0?null:[this,n]}}}E.closedBy=new E({deserialize:i=>i.split(" ")}),E.openedBy=new E({deserialize:i=>i.split(" ")}),E.group=new E({deserialize:i=>i.split(" ")}),E.isolate=new E({deserialize:i=>{if(i&&i!="rtl"&&i!="ltr"&&i!="auto")throw new RangeError("Invalid value for isolate: "+i);return i||"auto"}}),E.contextHash=new E({perNode:!0}),E.lookAhead=new E({perNode:!0}),E.mounted=new E({perNode:!0});class Sn{constructor(e,t,n,r=!1){this.tree=e,this.overlay=t,this.parser=n,this.bracketed=r}static get(e){return e&&e.props&&e.props[E.mounted.id]}}const gS=Object.create(null);class Qe{constructor(e,t,n,r=0){this.name=e,this.props=t,this.id=n,this.flags=r}static define(e){let t=e.props&&e.props.length?Object.create(null):gS,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),r=new Qe(e.name||"",t,e.id,n);if(e.props){for(let s of e.props)if(Array.isArray(s)||(s=s(r)),s){if(s[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[s[0].id]=s[1]}}return r}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let t=this.prop(E.group);return t?t.indexOf(e)>-1:!1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let r of n.split(" "))t[r]=e[n];return n=>{for(let r=n.prop(E.group),s=-1;s<(r?r.length:0);s++){let o=t[s<0?n.name:r[s]];if(o)return o}}}}Qe.none=new Qe("",Object.create(null),0,8);class wn{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let n of this.types){let r=null;for(let s of e){let o=s(n);if(o){r||(r=Object.assign({},n.props));let a=o[1],l=o[0];l.combine&&l.id in r&&(a=l.combine(r[l.id],a)),r[l.id]=a}}t.push(r?new Qe(n.name,r,n.id,n.flags):n)}return new wn(t)}}const Us=new WeakMap,Qf=new WeakMap;var oe;(function(i){i[i.ExcludeBuffers=1]="ExcludeBuffers",i[i.IncludeAnonymous=2]="IncludeAnonymous",i[i.IgnoreMounts=4]="IgnoreMounts",i[i.IgnoreOverlays=8]="IgnoreOverlays",i[i.EnterBracketed=16]="EnterBracketed"})(oe||(oe={}));class K{constructor(e,t,n,r,s){if(this.type=e,this.children=t,this.positions=n,this.length=r,this.props=null,s&&s.length){this.props=Object.create(null);for(let[o,a]of s)this.props[typeof o=="number"?o:o.id]=a}}toString(){let e=Sn.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let n of this.children){let r=n.toString();r&&(t&&(t+=","),t+=r)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new js(this.topNode,e)}cursorAt(e,t=0,n=0){let r=Us.get(this)||this.topNode,s=new js(r);return s.moveTo(e,t),Us.set(this,s._tree),s}get topNode(){return new Ze(this,0,0,null)}resolve(e,t=0){let n=fr(Us.get(this)||this.topNode,e,t,!1);return Us.set(this,n),n}resolveInner(e,t=0){let n=fr(Qf.get(this)||this.topNode,e,t,!0);return Qf.set(this,n),n}resolveStack(e,t=0){return bS(this,e,t)}iterate(e){let{enter:t,leave:n,from:r=0,to:s=this.length}=e,o=e.mode||0,a=(o&oe.IncludeAnonymous)>0;for(let l=this.cursor(o|oe.IncludeAnonymous);;){let O=!1;if(l.from<=s&&l.to>=r&&(!a&&l.type.isAnonymous||t(l)!==!1)){if(l.firstChild())continue;O=!0}for(;O&&n&&(a||!l.type.isAnonymous)&&n(l),!l.nextSibling();){if(!l.parent())return;O=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:gl(Qe.none,this.children,this.positions,0,this.children.length,0,this.length,(t,n,r)=>new K(this.type,t,n,r,this.propValues),e.makeTree||((t,n,r)=>new K(Qe.none,t,n,r)))}static build(e){return SS(e)}}K.empty=new K(Qe.none,[],[],0);class pl{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new pl(this.buffer,this.index)}}class Pi{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return Qe.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],n=this.buffer[e+3],r=this.set.types[t],s=r.name;if(/\W/.test(s)&&!r.isError&&(s=JSON.stringify(s)),e+=4,n==e)return s;let o=[];for(;e<n;)o.push(this.childString(e)),e=this.buffer[e+3];return s+"("+o.join(",")+")"}findChild(e,t,n,r,s){let{buffer:o}=this,a=-1;for(let l=e;l!=t&&!(yf(s,r,o[l+1],o[l+2])&&(a=l,n>0));l=o[l+3]);return a}slice(e,t,n){let r=this.buffer,s=new Uint16Array(t-e),o=0;for(let a=e,l=0;a<t;){s[l++]=r[a++],s[l++]=r[a++]-n;let O=s[l++]=r[a++]-n;s[l++]=r[a++]-e,o=Math.max(o,O)}return new Pi(s,o,this.set)}}function yf(i,e,t,n){switch(i){case-2:return t<e;case-1:return n>=e&&t<e;case 0:return t<e&&n>e;case 1:return t<=e&&n>e;case 2:return n>e;case 4:return!0}}function fr(i,e,t,n){for(var r;i.from==i.to||(t<1?i.from>=e:i.from>e)||(t>-1?i.to<=e:i.to<e);){let o=!n&&i instanceof Ze&&i.index<0?null:i.parent;if(!o)return i;i=o}let s=n?0:oe.IgnoreOverlays;if(n)for(let o=i,a=o.parent;a;o=a,a=o.parent)o instanceof Ze&&o.index<0&&((r=a.enter(e,t,s))===null||r===void 0?void 0:r.from)!=o.from&&(i=a);for(;;){let o=i.enter(e,t,s);if(!o)return i;i=o}}class bf{cursor(e=0){return new js(this,e)}getChild(e,t=null,n=null){let r=Sf(this,e,t,n);return r.length?r[0]:null}getChildren(e,t=null,n=null){return Sf(this,e,t,n)}resolve(e,t=0){return fr(this,e,t,!1)}resolveInner(e,t=0){return fr(this,e,t,!0)}matchContext(e){return ml(this.parent,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),n=this;for(;t;){let r=t.lastChild;if(!r||r.to!=t.to)break;r.type.isError&&r.from==r.to?(n=t,t=r.prevSibling):t=r}return n}get node(){return this}get next(){return this.parent}}class Ze extends bf{constructor(e,t,n,r){super(),this._tree=e,this.from=t,this.index=n,this._parent=r}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,n,r,s=0){for(let o=this;;){for(let{children:a,positions:l}=o._tree,O=t>0?a.length:-1;e!=O;e+=t){let c=a[e],d=l[e]+o.from,h;if(!(!(s&oe.EnterBracketed&&c instanceof K&&(h=Sn.get(c))&&!h.overlay&&h.bracketed&&n>=d&&n<=d+c.length)&&!yf(r,n,d,d+c.length))){if(c instanceof Pi){if(s&oe.ExcludeBuffers)continue;let f=c.findChild(0,c.buffer.length,t,n-d,r);if(f>-1)return new kt(new QS(o,c,e,d),null,f)}else if(s&oe.IncludeAnonymous||!c.type.isAnonymous||$l(c)){let f;if(!(s&oe.IgnoreMounts)&&(f=Sn.get(c))&&!f.overlay)return new Ze(f.tree,d,e,o);let p=new Ze(c,d,e,o);return s&oe.IncludeAnonymous||!p.type.isAnonymous?p:p.nextChild(t<0?c.children.length-1:0,t,n,r,s)}}}if(s&oe.IncludeAnonymous||!o.type.isAnonymous||(o.index>=0?e=o.index+t:e=t<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}prop(e){return this._tree.prop(e)}enter(e,t,n=0){let r;if(!(n&oe.IgnoreOverlays)&&(r=Sn.get(this._tree))&&r.overlay){let s=e-this.from,o=n&oe.EnterBracketed&&r.bracketed;for(let{from:a,to:l}of r.overlay)if((t>0||o?a<=s:a<s)&&(t<0||o?l>=s:l>s))return new Ze(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function Sf(i,e,t,n){let r=i.cursor(),s=[];if(!r.firstChild())return s;if(t!=null){for(let o=!1;!o;)if(o=r.type.is(t),!r.nextSibling())return s}for(;;){if(n!=null&&r.type.is(n))return s;if(r.type.is(e)&&s.push(r.node),!r.nextSibling())return n==null?s:[]}}function ml(i,e,t=e.length-1){for(let n=i;t>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(e[t]&&e[t]!=n.name)return!1;t--}}return!0}class QS{constructor(e,t,n,r){this.parent=e,this.buffer=t,this.index=n,this.start=r}}class kt extends bf{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){super(),this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:r}=this.context,s=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.context.start,n);return s<0?null:new kt(this.context,this,s)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}prop(e){return this.type.prop(e)}enter(e,t,n=0){if(n&oe.ExcludeBuffers)return null;let{buffer:r}=this.context,s=r.findChild(this.index+4,r.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return s<0?null:new kt(this.context,this,s)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new kt(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new kt(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,r=this.index+4,s=n.buffer[this.index+3];if(s>r){let o=n.buffer[this.index+1];e.push(n.slice(r,s,o)),t.push(0)}return new K(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function wf(i){if(!i.length)return null;let e=0,t=i[0];for(let s=1;s<i.length;s++){let o=i[s];(o.from>t.from||o.to<t.to)&&(t=o,e=s)}let n=t instanceof Ze&&t.index<0?null:t.parent,r=i.slice();return n?r[e]=n:r.splice(e,1),new yS(r,t)}class yS{constructor(e,t){this.heads=e,this.node=t}get next(){return wf(this.heads)}}function bS(i,e,t){let n=i.resolveInner(e,t),r=null;for(let s=n instanceof Ze?n:n.context.parent;s;s=s.parent)if(s.index<0){let o=s.parent;(r||(r=[n])).push(o.resolve(e,t)),s=o}else{let o=Sn.get(s.tree);if(o&&o.overlay&&o.overlay[0].from<=e&&o.overlay[o.overlay.length-1].to>=e){let a=new Ze(o.tree,o.overlay[0].from+s.from,-1,s);(r||(r=[n])).push(fr(a,e,t,!1))}}return r?wf(r):n}class js{get name(){return this.type.name}constructor(e,t=0){if(this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,this.mode=t&~oe.EnterBracketed,e instanceof Ze)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let n=e._parent;n;n=n._parent)this.stack.unshift(n.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,t){this.index=e;let{start:n,buffer:r}=this.buffer;return this.type=t||r.set.types[r.buffer[e]],this.from=n+r.buffer[e+1],this.to=n+r.buffer[e+2],!0}yield(e){return e?e instanceof Ze?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:r}=this.buffer,s=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.buffer.start,n);return s<0?!1:(this.stack.push(this.index),this.yieldBuf(s))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=this.mode){return this.buffer?n&oe.ExcludeBuffers?!1:this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&oe.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&oe.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let r=n<0?0:this.stack[n]+4;if(this.index!=r)return this.yieldBuf(t.findChild(r,this.index,-1,0,4))}else{let r=t.buffer[this.index+3];if(r<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(r)}return n<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:r}=this;if(r){if(e>0){if(this.index<r.buffer.buffer.length)return!1}else for(let s=0;s<this.index;s++)if(r.buffer.buffer[s+3]<this.index)return!1;({index:t,parent:n}=r)}else({index:t,_parent:n}=this._tree);for(;n;{index:t,_parent:n}=n)if(t>-1)for(let s=t+e,o=e<0?-1:n._tree.children.length;s!=o;s+=e){let a=n._tree.children[s];if(this.mode&oe.IncludeAnonymous||a instanceof Pi||!a.type.isAnonymous||$l(a))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,n=0;if(e&&e.context==this.buffer)e:for(let r=this.index,s=this.stack.length;s>=0;){for(let o=e;o;o=o._parent)if(o.index==r){if(r==this.index)return o;t=o,n=s+1;break e}r=this.stack[--s]}for(let r=n;r<this.stack.length;r++)t=new kt(this.buffer,t,this.stack[r]);return this.bufferNode=new kt(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let n=0;;){let r=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){n++;continue}this.type.isAnonymous||(r=!0)}for(;;){if(r&&t&&t(this),r=this.type.isAnonymous,!n)return;if(this.nextSibling())break;this.parent(),n--,r=!0}}}matchContext(e){if(!this.buffer)return ml(this.node.parent,e);let{buffer:t}=this.buffer,{types:n}=t.set;for(let r=e.length-1,s=this.stack.length-1;r>=0;s--){if(s<0)return ml(this._tree,e,r);let o=n[t.buffer[this.stack[s]]];if(!o.isAnonymous){if(e[r]&&e[r]!=o.name)return!1;r--}}return!0}}function $l(i){return i.children.some(e=>e instanceof Pi||!e.type.isAnonymous||$l(e))}function SS(i){var e;let{buffer:t,nodeSet:n,maxBufferLength:r=gf,reused:s=[],minRepeatType:o=n.types.length}=i,a=Array.isArray(t)?new pl(t,t.length):t,l=n.types,O=0,c=0;function d(P,v,k,w,N,q){let{id:L,start:V,end:te,size:re}=a,G=c,Se=O;if(re<0)if(a.next(),re==-1){let bt=s[L];k.push(bt),w.push(V-P);return}else if(re==-3){O=L;return}else if(re==-4){c=L;return}else throw new RangeError(`Unrecognized record size: ${re}`);let Ae=l[L],At,Et,Hr=V-P;if(te-V<=r&&(Et=$(a.pos-v,N))){let bt=new Uint16Array(Et.size-Et.skip),Ee=a.pos-Et.size,Ue=bt.length;for(;a.pos>Ee;)Ue=g(Et.start,bt,Ue);At=new Pi(bt,te-Et.start,n),Hr=Et.start-P}else{let bt=a.pos-re;a.next();let Ee=[],Ue=[],Ut=L>=o?L:-1,ui=0,On=te;for(;a.pos>bt;)Ut>=0&&a.id==Ut&&a.size>=0?(a.end<=On-r&&(p(Ee,Ue,V,ui,a.end,On,Ut,G,Se),ui=Ee.length,On=a.end),a.next()):q>2500?h(V,bt,Ee,Ue):d(V,bt,Ee,Ue,Ut,q+1);if(Ut>=0&&ui>0&&ui<Ee.length&&p(Ee,Ue,V,ui,V,On,Ut,G,Se),Ee.reverse(),Ue.reverse(),Ut>-1&&ui>0){let W=f(Ae,Se);At=gl(Ae,Ee,Ue,0,Ee.length,0,te-V,W,W)}else At=m(Ae,Ee,Ue,te-V,G-te,Se)}k.push(At),w.push(Hr)}function h(P,v,k,w){let N=[],q=0,L=-1;for(;a.pos>v;){let{id:V,start:te,end:re,size:G}=a;if(G>4)a.next();else{if(L>-1&&te<L)break;L<0&&(L=re-r),N.push(V,te,re),q++,a.next()}}if(q){let V=new Uint16Array(q*4),te=N[N.length-2];for(let re=N.length-3,G=0;re>=0;re-=3)V[G++]=N[re],V[G++]=N[re+1]-te,V[G++]=N[re+2]-te,V[G++]=G;k.push(new Pi(V,N[2]-te,n)),w.push(te-P)}}function f(P,v){return(k,w,N)=>{let q=0,L=k.length-1,V,te;if(L>=0&&(V=k[L])instanceof K){if(!L&&V.type==P&&V.length==N)return V;(te=V.prop(E.lookAhead))&&(q=w[L]+V.length+te)}return m(P,k,w,N,q,v)}}function p(P,v,k,w,N,q,L,V,te){let re=[],G=[];for(;P.length>w;)re.push(P.pop()),G.push(v.pop()+k-N);P.push(m(n.types[L],re,G,q-N,V-q,te)),v.push(N-k)}function m(P,v,k,w,N,q,L){if(q){let V=[E.contextHash,q];L=L?[V].concat(L):[V]}if(N>25){let V=[E.lookAhead,N];L=L?[V].concat(L):[V]}return new K(P,v,k,w,L)}function $(P,v){let k=a.fork(),w=0,N=0,q=0,L=k.end-r,V={size:0,start:0,skip:0};e:for(let te=k.pos-P;k.pos>te;){let re=k.size;if(k.id==v&&re>=0){V.size=w,V.start=N,V.skip=q,q+=4,w+=4,k.next();continue}let G=k.pos-re;if(re<0||G<te||k.start<L)break;let Se=k.id>=o?4:0,Ae=k.start;for(k.next();k.pos>G;){if(k.size<0)if(k.size==-3||k.size==-4)Se+=4;else break e;else k.id>=o&&(Se+=4);k.next()}N=Ae,w+=re,q+=Se}return(v<0||w==P)&&(V.size=w,V.start=N,V.skip=q),V.size>4?V:void 0}function g(P,v,k){let{id:w,start:N,end:q,size:L}=a;if(a.next(),L>=0&&w<o){let V=k;if(L>4){let te=a.pos-(L-4);for(;a.pos>te;)k=g(P,v,k)}v[--k]=V,v[--k]=q-P,v[--k]=N-P,v[--k]=w}else L==-3?O=w:L==-4&&(c=w);return k}let y=[],S=[];for(;a.pos>0;)d(i.start||0,i.bufferStart||0,y,S,-1,0);let R=(e=i.length)!==null&&e!==void 0?e:y.length?S[0]+y[0].length:0;return new K(l[i.topID],y.reverse(),S.reverse(),R)}const Pf=new WeakMap;function Ms(i,e){if(!i.isAnonymous||e instanceof Pi||e.type!=i)return 1;let t=Pf.get(e);if(t==null){t=1;for(let n of e.children){if(n.type!=i||!(n instanceof K)){t=1;break}t+=Ms(i,n)}Pf.set(e,t)}return t}function gl(i,e,t,n,r,s,o,a,l){let O=0;for(let p=n;p<r;p++)O+=Ms(i,e[p]);let c=Math.ceil(O*1.5/8),d=[],h=[];function f(p,m,$,g,y){for(let S=$;S<g;){let R=S,P=m[S],v=Ms(i,p[S]);for(S++;S<g;S++){let k=Ms(i,p[S]);if(v+k>=c)break;v+=k}if(S==R+1){if(v>c){let k=p[R];f(k.children,k.positions,0,k.children.length,m[R]+y);continue}d.push(p[R])}else{let k=m[S-1]+p[S-1].length-P;d.push(gl(i,p,m,R,S,P,k,null,l))}h.push(P+y-s)}}return f(e,t,n,r,0),(a||l)(d,h,o)}class Ql{constructor(){this.map=new WeakMap}setBuffer(e,t,n){let r=this.map.get(e);r||this.map.set(e,r=new Map),r.set(t,n)}getBuffer(e,t){let n=this.map.get(e);return n&&n.get(t)}set(e,t){e instanceof kt?this.setBuffer(e.context.buffer,e.index,t):e instanceof Ze&&this.map.set(e.tree,t)}get(e){return e instanceof kt?this.getBuffer(e.context.buffer,e.index):e instanceof Ze?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class ti{constructor(e,t,n,r,s=!1,o=!1){this.from=e,this.to=t,this.tree=n,this.offset=r,this.open=(s?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,t=[],n=!1){let r=[new ti(0,e.length,e,0,!1,n)];for(let s of t)s.to>e.length&&r.push(s);return r}static applyChanges(e,t,n=128){if(!t.length)return e;let r=[],s=1,o=e.length?e[0]:null;for(let a=0,l=0,O=0;;a++){let c=a<t.length?t[a]:null,d=c?c.fromA:1e9;if(d-l>=n)for(;o&&o.from<d;){let h=o;if(l>=h.from||d<=h.to||O){let f=Math.max(h.from,l)-O,p=Math.min(h.to,d)-O;h=f>=p?null:new ti(f,p,h.tree,h.offset+O,a>0,!!c)}if(h&&r.push(h),o.to>d)break;o=s<e.length?e[s++]:null}if(!c)break;l=c.toA,O=c.toA-c.toB}return r}}class Ls{startParse(e,t,n){return typeof e=="string"&&(e=new wS(e)),n=n?n.length?n.map(r=>new rt(r.from,r.to)):[new rt(0,0)]:[new rt(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let r=this.startParse(e,t,n);for(;;){let s=r.advance();if(s)return s}}}class wS{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}function yl(i){return(e,t,n,r)=>new xS(e,i,t,n,r)}class xf{constructor(e,t,n,r,s,o){this.parser=e,this.parse=t,this.overlay=n,this.bracketed=r,this.target=s,this.from=o}}function Tf(i){if(!i.length||i.some(e=>e.from>=e.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(i))}class PS{constructor(e,t,n,r,s,o,a,l){this.parser=e,this.predicate=t,this.mounts=n,this.index=r,this.start=s,this.bracketed=o,this.target=a,this.prev=l,this.depth=0,this.ranges=[]}}const bl=new E({perNode:!0});class xS{constructor(e,t,n,r,s){this.nest=t,this.input=n,this.fragments=r,this.ranges=s,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let n=this.baseParse.advance();if(!n)return null;if(this.baseParse=null,this.baseTree=n,this.startInner(),this.stoppedAt!=null)for(let r of this.inner)r.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let n=this.baseTree;return this.stoppedAt!=null&&(n=new K(n.type,n.children,n.positions,n.length,n.propValues.concat([[bl,this.stoppedAt]]))),n}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let n=Object.assign(Object.create(null),e.target.props);n[E.mounted.id]=new Sn(t,e.overlay,e.parser,e.bracketed),e.target.props=n}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].from<e&&(e=Math.min(e,this.inner[t].parse.parsedPos));return e}stopAt(e){if(this.stoppedAt=e,this.baseParse)this.baseParse.stopAt(e);else for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].parse.stopAt(e)}startInner(){let e=new kS(this.fragments),t=null,n=null,r=new js(new Ze(this.baseTree,this.ranges[0].from,0,null),oe.IncludeAnonymous|oe.IgnoreMounts);e:for(let s,o;;){let a=!0,l;if(this.stoppedAt!=null&&r.from>=this.stoppedAt)a=!1;else if(e.hasNode(r)){if(t){let O=t.mounts.find(c=>c.frag.from<=r.from&&c.frag.to>=r.to&&c.mount.overlay);if(O)for(let c of O.mount.overlay){let d=c.from+O.pos,h=c.to+O.pos;d>=r.from&&h<=r.to&&!t.ranges.some(f=>f.from<h&&f.to>d)&&t.ranges.push({from:d,to:h})}}a=!1}else if(n&&(o=TS(n.ranges,r.from,r.to)))a=o!=2;else if(!r.type.isAnonymous&&(s=this.nest(r,this.input))&&(r.from<r.to||!s.overlay)){r.tree||(vS(r),t&&t.depth++,n&&n.depth++);let O=e.findMounts(r.from,s.parser);if(typeof s.overlay=="function")t=new PS(s.parser,s.overlay,O,this.inner.length,r.from,!!s.bracketed,r.tree,t);else{let c=Xf(this.ranges,s.overlay||(r.from<r.to?[new rt(r.from,r.to)]:[]));c.length&&Tf(c),(c.length||!s.overlay)&&this.inner.push(new xf(s.parser,c.length?s.parser.startParse(this.input,_f(O,c),c):s.parser.startParse(""),s.overlay?s.overlay.map(d=>new rt(d.from-r.from,d.to-r.from)):null,!!s.bracketed,r.tree,c.length?c[0].from:r.from)),s.overlay?c.length&&(n={ranges:c,depth:0,prev:n}):a=!1}}else if(t&&(l=t.predicate(r))&&(l===!0&&(l=new rt(r.from,r.to)),l.from<l.to)){let O=t.ranges.length-1;O>=0&&t.ranges[O].to==l.from?t.ranges[O]={from:t.ranges[O].from,to:l.to}:t.ranges.push(l)}if(a&&r.firstChild())t&&t.depth++,n&&n.depth++;else for(;!r.nextSibling();){if(!r.parent())break e;if(t&&!--t.depth){let O=Xf(this.ranges,t.ranges);O.length&&(Tf(O),this.inner.splice(t.index,0,new xf(t.parser,t.parser.startParse(this.input,_f(t.mounts,O),O),t.ranges.map(c=>new rt(c.from-t.start,c.to-t.start)),t.bracketed,t.target,O[0].from))),t=t.prev}n&&!--n.depth&&(n=n.prev)}}}}function TS(i,e,t){for(let n of i){if(n.from>=t)break;if(n.to>e)return n.from<=e&&n.to>=t?2:1}return 0}function vf(i,e,t,n,r,s){if(e<t){let o=i.buffer[e+1];n.push(i.slice(e,t,o)),r.push(o-s)}}function vS(i){let{node:e}=i,t=[],n=e.context.buffer;do t.push(i.index),i.parent();while(!i.tree);let r=i.tree,s=r.children.indexOf(n),o=r.children[s],a=o.buffer,l=[s];function O(c,d,h,f,p,m){let $=t[m],g=[],y=[];vf(o,c,$,g,y,f);let S=a[$+1],R=a[$+2];l.push(g.length);let P=m?O($+4,a[$+3],o.set.types[a[$]],S,R-S,m-1):e.toTree();return g.push(P),y.push(S-f),vf(o,a[$+3],d,g,y,f),new K(h,g,y,p)}r.children[s]=O(0,a.length,Qe.none,0,o.length,t.length-1);for(let c of l){let d=i.tree.children[c],h=i.tree.positions[c];i.yield(new Ze(d,h+i.from,c,i._tree))}}class kf{constructor(e,t){this.offset=t,this.done=!1,this.cursor=e.cursor(oe.IncludeAnonymous|oe.IgnoreMounts)}moveTo(e){let{cursor:t}=this,n=e-this.offset;for(;!this.done&&t.from<n;)if(!(t.to>=e&&t.enter(n,1,oe.IgnoreOverlays|oe.ExcludeBuffers)))if(t.to<=e)t.next(!1)||(this.done=!0);else break}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let t=this.cursor.tree;;){if(t==e.tree)return!0;if(t.children.length&&t.positions[0]==0&&t.children[0]instanceof K)t=t.children[0];else break}return!1}}let kS=class{constructor(e){var t;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let n=this.curFrag=e[0];this.curTo=(t=n.tree.prop(bl))!==null&&t!==void 0?t:n.to,this.inner=new kf(n.tree,-n.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let t=this.curFrag=this.fragments[this.fragI];this.curTo=(e=t.tree.prop(bl))!==null&&e!==void 0?e:t.to,this.inner=new kf(t.tree,-t.offset)}}findMounts(e,t){var n;let r=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let s=this.inner.cursor.node;s;s=s.parent){let o=(n=s.tree)===null||n===void 0?void 0:n.prop(E.mounted);if(o&&o.parser==t)for(let a=this.fragI;a<this.fragments.length;a++){let l=this.fragments[a];if(l.from>=s.to)break;l.tree==this.curFrag.tree&&r.push({frag:l,pos:s.from-l.offset,mount:o})}}}return r}};function Xf(i,e){let t=null,n=e;for(let r=1,s=0;r<i.length;r++){let o=i[r-1].to,a=i[r].from;for(;s<n.length;s++){let l=n[s];if(l.from>=a)break;l.to<=o||(t||(n=t=e.slice()),l.from<o?(t[s]=new rt(l.from,o),l.to>a&&t.splice(s+1,0,new rt(a,l.to))):l.to>a?t[s--]=new rt(a,l.to):t.splice(s--,1))}}return n}function XS(i,e,t,n){let r=0,s=0,o=!1,a=!1,l=-1e9,O=[];for(;;){let c=r==i.length?1e9:o?i[r].to:i[r].from,d=s==e.length?1e9:a?e[s].to:e[s].from;if(o!=a){let h=Math.max(l,t),f=Math.min(c,d,n);h<f&&O.push(new rt(h,f))}if(l=Math.min(c,d),l==1e9)break;c==l&&(o?(o=!1,r++):o=!0),d==l&&(a?(a=!1,s++):a=!0)}return O}function _f(i,e){let t=[];for(let{pos:n,mount:r,frag:s}of i){let o=n+(r.overlay?r.overlay[0].from:0),a=o+r.tree.length,l=Math.max(s.from,o),O=Math.min(s.to,a);if(r.overlay){let c=r.overlay.map(h=>new rt(h.from+n,h.to+n)),d=XS(e,c,l,O);for(let h=0,f=l;;h++){let p=h==d.length,m=p?O:d[h].from;if(m>f&&t.push(new ti(f,m,r.tree,-o,s.from>=f||s.openStart,s.to<=m||s.openEnd)),p)break;f=d[h].to}}else t.push(new ti(l,O,r.tree,-o,s.from>=o||s.openStart,s.to<=a||s.openEnd))}return t}let _S=0,Xt=class Gc{constructor(e,t,n,r){this.name=e,this.set=t,this.base=n,this.modified=r,this.id=_S++}toString(){let{name:e}=this;for(let t of this.modified)t.name&&(e=`${t.name}(${e})`);return e}static define(e,t){let n=typeof e=="string"?e:"?";if(e instanceof Gc&&(t=e),t!=null&&t.base)throw new Error("Can not derive from a modified tag");let r=new Gc(n,[],null,[]);if(r.set.push(r),t)for(let s of t.set)r.set.push(s);return r}static defineModifier(e){let t=new Gs(e);return n=>n.modified.indexOf(t)>-1?n:Gs.get(n.base||n,n.modified.concat(t).sort((r,s)=>r.id-s.id))}},RS=0;class Gs{constructor(e){this.name=e,this.instances=[],this.id=RS++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find(a=>a.base==e&&ZS(t,a.modified));if(n)return n;let r=[],s=new Xt(e.name,r,e,t);for(let a of t)a.instances.push(s);let o=zS(t);for(let a of e.set)if(!a.modified.length)for(let l of o)r.push(Gs.get(a,l));return s}}function ZS(i,e){return i.length==e.length&&i.every((t,n)=>t==e[n])}function zS(i){let e=[[]];for(let t=0;t<i.length;t++)for(let n=0,r=e.length;n<r;n++)e.push(e[n].concat(i[t]));return e.sort((t,n)=>n.length-t.length)}function ft(i){let e=Object.create(null);for(let t in i){let n=i[t];Array.isArray(n)||(n=[n]);for(let r of t.split(" "))if(r){let s=[],o=2,a=r;for(let d=0;;){if(a=="..."&&d>0&&d+3==r.length){o=1;break}let h=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!h)throw new RangeError("Invalid path: "+r);if(s.push(h[0]=="*"?"":h[0][0]=='"'?JSON.parse(h[0]):h[0]),d+=h[0].length,d==r.length)break;let f=r[d++];if(d==r.length&&f=="!"){o=0;break}if(f!="/")throw new RangeError("Invalid path: "+r);a=r.slice(d)}let l=s.length-1,O=s[l];if(!O)throw new RangeError("Invalid path: "+r);let c=new ur(n,o,l>0?s.slice(0,l):null);e[O]=c.sort(e[O])}}return Rf.add(e)}const Rf=new E({combine(i,e){let t,n,r;for(;i||e;){if(!i||e&&i.depth>=e.depth?(r=e,e=e.next):(r=i,i=i.next),t&&t.mode==r.mode&&!r.context&&!t.context)continue;let s=new ur(r.tags,r.mode,r.context);t?t.next=s:n=s,t=s}return n}});let ur=class{constructor(e,t,n,r){this.tags=e,this.mode=t,this.context=n,this.next=r}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}};ur.empty=new ur([],2,null);function Zf(i,e){let t=Object.create(null);for(let s of i)if(!Array.isArray(s.tag))t[s.tag.id]=s.class;else for(let o of s.tag)t[o.id]=s.class;let{scope:n,all:r=null}=e||{};return{style:s=>{let o=r;for(let a of s)for(let l of a.set){let O=t[l.id];if(O){o=o?o+" "+O:O;break}}return o},scope:n}}function qS(i,e){let t=null;for(let n of i){let r=n.style(e);r&&(t=t?t+" "+r:r)}return t}function VS(i,e,t,n=0,r=i.length){let s=new CS(n,Array.isArray(e)?e:[e],t);s.highlightRange(i.cursor(),n,r,"",s.highlighters),s.flush(r)}class CS{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,r,s){let{type:o,from:a,to:l}=e;if(a>=n||l<=t)return;o.isTop&&(s=this.highlighters.filter(f=>!f.scope||f.scope(o)));let O=r,c=YS(e)||ur.empty,d=qS(s,c.tags);if(d&&(O&&(O+=" "),O+=d,c.mode==1&&(r+=(r?" ":"")+d)),this.startSpan(Math.max(t,a),O),c.opaque)return;let h=e.tree&&e.tree.prop(E.mounted);if(h&&h.overlay){let f=e.node.enter(h.overlay[0].from+a,1),p=this.highlighters.filter($=>!$.scope||$.scope(h.tree.type)),m=e.firstChild();for(let $=0,g=a;;$++){let y=$<h.overlay.length?h.overlay[$]:null,S=y?y.from+a:l,R=Math.max(t,g),P=Math.min(n,S);if(R<P&&m)for(;e.from<P&&(this.highlightRange(e,R,P,r,s),this.startSpan(Math.min(P,e.to),O),!(e.to>=S||!e.nextSibling())););if(!y||S>n)break;g=y.to+a,g>t&&(this.highlightRange(f.cursor(),Math.max(t,y.from+a),Math.min(n,g),"",p),this.startSpan(Math.min(n,g),O))}m&&e.parent()}else if(e.firstChild()){h&&(r="");do if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,r,s),this.startSpan(Math.min(n,e.to),O)}while(e.nextSibling());e.parent()}}}function YS(i){let e=i.type.prop(Rf);for(;e&&e.context&&!i.matchContext(e.context);)e=e.next;return e||null}const T=Xt.define,Is=T(),xi=T(),zf=T(xi),qf=T(xi),Ti=T(),Ds=T(Ti),Sl=T(Ti),_t=T(),Ii=T(_t),Rt=T(),Zt=T(),wl=T(),pr=T(wl),Bs=T(),u={comment:Is,lineComment:T(Is),blockComment:T(Is),docComment:T(Is),name:xi,variableName:T(xi),typeName:zf,tagName:T(zf),propertyName:qf,attributeName:T(qf),className:T(xi),labelName:T(xi),namespace:T(xi),macroName:T(xi),literal:Ti,string:Ds,docString:T(Ds),character:T(Ds),attributeValue:T(Ds),number:Sl,integer:T(Sl),float:T(Sl),bool:T(Ti),regexp:T(Ti),escape:T(Ti),color:T(Ti),url:T(Ti),keyword:Rt,self:T(Rt),null:T(Rt),atom:T(Rt),unit:T(Rt),modifier:T(Rt),operatorKeyword:T(Rt),controlKeyword:T(Rt),definitionKeyword:T(Rt),moduleKeyword:T(Rt),operator:Zt,derefOperator:T(Zt),arithmeticOperator:T(Zt),logicOperator:T(Zt),bitwiseOperator:T(Zt),compareOperator:T(Zt),updateOperator:T(Zt),definitionOperator:T(Zt),typeOperator:T(Zt),controlOperator:T(Zt),punctuation:wl,separator:T(wl),bracket:pr,angleBracket:T(pr),squareBracket:T(pr),paren:T(pr),brace:T(pr),content:_t,heading:Ii,heading1:T(Ii),heading2:T(Ii),heading3:T(Ii),heading4:T(Ii),heading5:T(Ii),heading6:T(Ii),contentSeparator:T(_t),list:T(_t),quote:T(_t),emphasis:T(_t),strong:T(_t),link:T(_t),monospace:T(_t),strikethrough:T(_t),inserted:T(),deleted:T(),changed:T(),invalid:T(),meta:Bs,documentMeta:T(Bs),annotation:T(Bs),processingInstruction:T(Bs),definition:Xt.defineModifier("definition"),constant:Xt.defineModifier("constant"),function:Xt.defineModifier("function"),standard:Xt.defineModifier("standard"),local:Xt.defineModifier("local"),special:Xt.defineModifier("special")};for(let i in u){let e=u[i];e instanceof Xt&&(e.name=i)}Zf([{tag:u.link,class:"tok-link"},{tag:u.heading,class:"tok-heading"},{tag:u.emphasis,class:"tok-emphasis"},{tag:u.strong,class:"tok-strong"},{tag:u.keyword,class:"tok-keyword"},{tag:u.atom,class:"tok-atom"},{tag:u.bool,class:"tok-bool"},{tag:u.url,class:"tok-url"},{tag:u.labelName,class:"tok-labelName"},{tag:u.inserted,class:"tok-inserted"},{tag:u.deleted,class:"tok-deleted"},{tag:u.literal,class:"tok-literal"},{tag:u.string,class:"tok-string"},{tag:u.number,class:"tok-number"},{tag:[u.regexp,u.escape,u.special(u.string)],class:"tok-string2"},{tag:u.variableName,class:"tok-variableName"},{tag:u.local(u.variableName),class:"tok-variableName tok-local"},{tag:u.definition(u.variableName),class:"tok-variableName tok-definition"},{tag:u.special(u.variableName),class:"tok-variableName2"},{tag:u.definition(u.propertyName),class:"tok-propertyName tok-definition"},{tag:u.typeName,class:"tok-typeName"},{tag:u.namespace,class:"tok-namespace"},{tag:u.className,class:"tok-className"},{tag:u.macroName,class:"tok-macroName"},{tag:u.propertyName,class:"tok-propertyName"},{tag:u.operator,class:"tok-operator"},{tag:u.comment,class:"tok-comment"},{tag:u.meta,class:"tok-meta"},{tag:u.invalid,class:"tok-invalid"},{tag:u.punctuation,class:"tok-punctuation"}]);var Pl;const vi=new E;function Ns(i){return Z.define({combine:i?e=>e.concat(i):void 0})}const xl=new E;class Fe{constructor(e,t,n=[],r=""){this.data=e,this.name=r,se.prototype.hasOwnProperty("tree")||Object.defineProperty(se.prototype,"tree",{get(){return Oe(this)}}),this.parser=t,this.extension=[ki.of(this),se.languageData.of((s,o,a)=>{let l=Vf(s,o,a),O=l.type.prop(vi);if(!O)return[];let c=s.facet(O),d=l.type.prop(xl);if(d){let h=l.resolve(o-l.from,a);for(let f of d)if(f.test(h,s)){let p=s.facet(f.facet);return f.type=="replace"?p:p.concat(c)}}return c})].concat(n)}isActiveAt(e,t,n=-1){return Vf(e,t,n).type.prop(vi)==this.data}findRegions(e){let t=e.facet(ki);if((t==null?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],r=(s,o)=>{if(s.prop(vi)==this.data){n.push({from:o,to:o+s.length});return}let a=s.prop(E.mounted);if(a){if(a.tree.prop(vi)==this.data){if(a.overlay)for(let l of a.overlay)n.push({from:l.from+o,to:l.to+o});else n.push({from:o,to:o+s.length});return}else if(a.overlay){let l=n.length;if(r(a.tree,a.overlay[0].from+o),n.length>l)return}}for(let l=0;l<s.children.length;l++){let O=s.children[l];O instanceof K&&r(O,s.positions[l]+o)}};return r(Oe(e),0),n}get allowsNesting(){return!0}}Fe.setState=F.define();function Vf(i,e,t){let n=i.facet(ki),r=Oe(i).topNode;if(!n||n.allowsNesting)for(let s=r;s;s=s.enter(e,t,oe.ExcludeBuffers|oe.EnterBracketed))s.type.isTop&&(r=s);return r}class ut extends Fe{constructor(e,t,n){super(e,t,[],n),this.parser=t}static define(e){let t=Ns(e.languageData);return new ut(t,e.parser.configure({props:[vi.add(n=>n.isTop?t:void 0)]}),e.name)}configure(e,t){return new ut(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Oe(i){let e=i.field(Fe.state,!1);return e?e.tree:K.empty}class WS{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e<n||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let mr=null;class Di{constructor(e,t,n=[],r,s,o,a,l){this.parser=e,this.state=t,this.fragments=n,this.tree=r,this.treeLen=s,this.viewport=o,this.skipped=a,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new Di(e,t,[],K.empty,0,n,[],null)}startParse(){return this.parser.startParse(new WS(this.state.doc),this.fragments)}work(e,t){return t!=null&&t>=this.state.doc.length&&(t=void 0),this.tree!=K.empty&&this.isDone(t??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var n;if(typeof e=="number"){let r=Date.now()+e;e=()=>Date.now()>r}for(this.parse||(this.parse=this.startParse()),t!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let r=this.parse.advance();if(r)if(this.fragments=this.withoutTempSkipped(ti.addTree(r,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(n=this.parse.stoppedAt)!==null&&n!==void 0?n:this.state.doc.length,this.tree=r,this.parse=null,this.treeLen<(t??this.state.doc.length))this.parse=this.startParse();else return!0;if(e())return!1}})}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(ti.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=mr;mr=this;try{return e()}finally{mr=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=Cf(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:r,treeLen:s,viewport:o,skipped:a}=this;if(this.takeTree(),!e.empty){let l=[];if(e.iterChangedRanges((O,c,d,h)=>l.push({fromA:O,toA:c,fromB:d,toB:h})),n=ti.applyChanges(n,l),r=K.empty,s=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length){a=[];for(let O of this.skipped){let c=e.mapPos(O.from,1),d=e.mapPos(O.to,-1);c<d&&a.push({from:c,to:d})}}}return new Di(this.parser,t,n,r,s,o,a,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let n=0;n<this.skipped.length;n++){let{from:r,to:s}=this.skipped[n];r<e.to&&s>e.from&&(this.fragments=Cf(this.fragments,r,s),this.skipped.splice(n--,1))}return this.skipped.length>=t?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends Ls{createParse(t,n,r){let s=r[0].from,o=r[r.length-1].to;return{parsedPos:s,advance(){let l=mr;if(l){for(let O of r)l.tempSkipped.push(O);e&&(l.scheduleOn=l.scheduleOn?Promise.all([l.scheduleOn,e]):e)}return this.parsedPos=o,new K(Qe.none,[],[],o-s)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&t[0].from==0&&t[0].to>=e}static get(){return mr}}function Cf(i,e,t){return ti.applyChanges(i,[{fromA:e,toA:t,fromB:e,toB:t}])}class Pn{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new Pn(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=Di.create(e.facet(ki).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new Pn(n)}}Fe.state=Ce.define({create:Pn.init,update(i,e){for(let t of e.effects)if(t.is(Fe.setState))return t.value;return e.startState.facet(ki)!=e.state.facet(ki)?Pn.init(e.state):i.apply(e)}});let Yf=i=>{let e=setTimeout(()=>i(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(Yf=i=>{let e=-1,t=setTimeout(()=>{e=requestIdleCallback(i,{timeout:400})},100);return()=>e<0?clearTimeout(t):cancelIdleCallback(e)});const Tl=typeof navigator<"u"&&(!((Pl=navigator.scheduling)===null||Pl===void 0)&&Pl.isInputPending)?()=>navigator.scheduling.isInputPending():null,AS=xe.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(Fe.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(Fe.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=Yf(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:r}}=this.view,s=n.field(Fe.state);if(s.tree==s.context.tree&&s.context.isDone(r+1e5))return;let o=Date.now()+Math.min(this.chunkBudget,100,e&&!Tl?Math.max(25,e.timeRemaining()-5):1e9),a=s.context.treeLen<r&&n.doc.length>r+1e3,l=s.context.work(()=>Tl&&Tl()||Date.now()>o,r+(a?0:1e5));this.chunkBudget-=Date.now()-t,(l||this.chunkBudget<=0)&&(s.context.takeTree(),this.view.dispatch({effects:Fe.setState.of(new Pn(s.context))})),this.chunkBudget>0&&!(l&&!a)&&this.scheduleWork(),this.checkAsyncSchedule(s.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>Be(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),ki=Z.define({combine(i){return i.length?i[0]:null},enables:i=>[Fe.state,AS,X.contentAttributes.compute([i],e=>{let t=e.facet(i);return t&&t.name?{"data-language":t.name}:{}})]});class zt{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}class Fs{constructor(e,t,n,r,s,o=void 0){this.name=e,this.alias=t,this.extensions=n,this.filename=r,this.loadFunc=s,this.support=o,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(e=>this.support=e,e=>{throw this.loading=null,e}))}static of(e){let{load:t,support:n}=e;if(!t){if(!n)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");t=()=>Promise.resolve(n)}return new Fs(e.name,(e.alias||[]).concat(e.name).map(r=>r.toLowerCase()),e.extensions||[],e.filename,t,n)}static matchFilename(e,t){for(let r of e)if(r.filename&&r.filename.test(t))return r;let n=/\.([^.]+)$/.exec(t);if(n){for(let r of e)if(r.extensions.indexOf(n[1])>-1)return r}return null}static matchLanguageName(e,t,n=!0){t=t.toLowerCase();for(let r of e)if(r.alias.some(s=>s==t))return r;if(n)for(let r of e)for(let s of r.alias){let o=t.indexOf(s);if(o>-1&&(s.length>2||!/\w/.test(t[o-1])&&!/\w/.test(t[o+s.length])))return r}return null}}const ES=Z.define(),xn=Z.define({combine:i=>{if(!i.length)return" ";let e=i[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(i[0]));return e}});function Bi(i){let e=i.facet(xn);return e.charCodeAt(0)==9?i.tabSize*e.length:e.length}function $r(i,e){let t="",n=i.tabSize,r=i.facet(xn)[0];if(r==" "){for(;e>=n;)t+=" ",e-=n;r=" "}for(let s=0;s<e;s++)t+=r;return t}function vl(i,e){i instanceof se&&(i=new Hs(i));for(let n of i.state.facet(ES)){let r=n(i,e);if(r!==void 0)return r}let t=Oe(i.state);return t.length>=e?US(i,t,e):null}class Hs{constructor(e,t={}){this.state=e,this.options=t,this.unit=Bi(e)}lineAt(e,t=1){let n=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:s}=this.options;return r!=null&&r>=n.from&&r<=n.to?s&&r==e?{text:"",from:e}:(t<0?r<e:r<=e)?{text:n.text.slice(r-n.from),from:r}:{text:n.text.slice(0,r-n.from),from:n.from}:n}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:n,from:r}=this.lineAt(e,t);return n.slice(e-r,Math.min(n.length,e+100-r))}column(e,t=1){let{text:n,from:r}=this.lineAt(e,t),s=this.countColumn(n,e-r),o=this.options.overrideIndentation?this.options.overrideIndentation(r):-1;return o>-1&&(s+=o-this.countColumn(n,n.search(/\S|$/))),s}countColumn(e,t=e.length){return Nt(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:r}=this.lineAt(e,t),s=this.options.overrideIndentation;if(s){let o=s(r);if(o>-1)return o}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const pt=new E;function US(i,e,t){let n=e.resolveStack(t),r=e.resolveInner(t,-1).resolve(t,0).enterUnfinishedNodesBefore(t);if(r!=n.node){let s=[];for(let o=r;o&&!(o.from<n.node.from||o.to>n.node.to||o.from==n.node.from&&o.type==n.node.type);o=o.parent)s.push(o);for(let o=s.length-1;o>=0;o--)n={node:s[o],next:n}}return Wf(n,i,t)}function Wf(i,e,t){for(let n=i;n;n=n.next){let r=MS(n.node);if(r)return r(kl.create(e,t,n))}return 0}function jS(i){return i.pos==i.options.simulateBreak&&i.options.simulateDoubleBreak}function MS(i){let e=i.type.prop(pt);if(e)return e;let t=i.firstChild,n;if(t&&(n=t.type.prop(E.closedBy))){let r=i.lastChild,s=r&&n.indexOf(r.name)>-1;return o=>Af(o,!0,1,void 0,s&&!jS(o)?r.from:void 0)}return i.parent==null?LS:null}function LS(){return 0}class kl extends Hs{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.context=n}get node(){return this.context.node}static create(e,t,n){return new kl(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let n=e.resolve(t.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(GS(n,e))break;t=this.state.doc.lineAt(n.from)}return this.lineIndent(t.from)}continue(){return Wf(this.context.next,this.base,this.pos)}}function GS(i,e){for(let t=e;t;t=t.parent)if(i==t)return!0;return!1}function IS(i){let e=i.node,t=e.childAfter(e.from),n=e.lastChild;if(!t)return null;let r=i.options.simulateBreak,s=i.state.doc.lineAt(t.from),o=r==null||r<=s.from?s.to:Math.min(s.to,r);for(let a=t.to;;){let l=e.childAfter(a);if(!l||l==n)return null;if(!l.type.isSkipped){if(l.from>=o)return null;let O=/^ */.exec(s.text.slice(t.to-s.from))[0].length;return{from:t.from,to:t.to+O}}a=l.to}}function Ni({closing:i,align:e=!0,units:t=1}){return n=>Af(n,e,t,i)}function Af(i,e,t,n,r){let s=i.textAfter,o=s.match(/^\s*/)[0].length,a=n&&s.slice(o,o+n.length)==n||r==i.pos+o,l=e?IS(i):null;return l?a?i.column(l.from):i.column(l.to):i.baseIndent+(a?0:i.unit*t)}const DS=i=>i.baseIndent;function qt({except:i,units:e=1}={}){return t=>{let n=i&&i.test(t.textAfter);return t.baseIndent+(n?0:e*t.unit)}}const BS=200;function NS(){return se.transactionFilter.of(i=>{if(!i.docChanged||!i.isUserEvent("input.type")&&!i.isUserEvent("input.complete"))return i;let e=i.startState.languageDataAt("indentOnInput",i.startState.selection.main.head);if(!e.length)return i;let t=i.newDoc,{head:n}=i.newSelection.main,r=t.lineAt(n);if(n>r.from+BS)return i;let s=t.sliceString(r.from,n);if(!e.some(O=>O.test(s)))return i;let{state:o}=i,a=-1,l=[];for(let{head:O}of o.selection.ranges){let c=o.doc.lineAt(O);if(c.from==a)continue;a=c.from;let d=vl(o,c.from);if(d==null)continue;let h=/^\s*/.exec(c.text)[0],f=$r(o,d);h!=f&&l.push({from:c.from,to:c.from+h.length,insert:f})}return l.length?[i,{changes:l,sequential:!0}]:i})}const Ef=Z.define(),mt=new E;function Tn(i){let e=i.firstChild,t=i.lastChild;return e&&e.to<t.from?{from:e.to,to:t.type.isError?i.to:t.from}:null}function FS(i,e,t){let n=Oe(i);if(n.length<t)return null;let r=n.resolveStack(t,1),s=null;for(let o=r;o;o=o.next){let a=o.node;if(a.to<=t||a.from>t)continue;if(s&&a.from<e)break;let l=a.type.prop(mt);if(l&&(a.to<n.length-50||n.length==i.doc.length||!HS(a))){let O=l(a,i);O&&O.from<=t&&O.from>=e&&O.to>t&&(s=O)}}return s}function HS(i){let e=i.lastChild;return e&&e.to==i.to&&e.type.isError}function Ks(i,e,t){for(let n of i.facet(Ef)){let r=n(i,e,t);if(r)return r}return FS(i,e,t)}function Uf(i,e){let t=e.mapPos(i.from,1),n=e.mapPos(i.to,-1);return t>=n?void 0:{from:t,to:n}}const Js=F.define({map:Uf}),gr=F.define({map:Uf});function jf(i){let e=[];for(let{head:t}of i.state.selection.ranges)e.some(n=>n.from<=t&&n.to>=t)||e.push(i.lineBlockAt(t));return e}const Fi=Ce.define({create(){return H.none},update(i,e){e.isUserEvent("delete")&&e.changes.iterChangedRanges((t,n)=>i=Mf(i,t,n)),i=i.map(e.changes);for(let t of e.effects)if(t.is(Js)&&!KS(i,t.value.from,t.value.to)){let{preparePlaceholder:n}=e.state.facet(If),r=n?H.replace({widget:new nw(n(e.state,t.value))}):Nf;i=i.update({add:[r.range(t.value.from,t.value.to)]})}else t.is(gr)&&(i=i.update({filter:(n,r)=>t.value.from!=n||t.value.to!=r,filterFrom:t.value.from,filterTo:t.value.to}));return e.selection&&(i=Mf(i,e.selection.main.head)),i},provide:i=>X.decorations.from(i),toJSON(i,e){let t=[];return i.between(0,e.doc.length,(n,r)=>{t.push(n,r)}),t},fromJSON(i){if(!Array.isArray(i)||i.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let t=0;t<i.length;){let n=i[t++],r=i[t++];if(typeof n!="number"||typeof r!="number")throw new RangeError("Invalid JSON for fold state");e.push(Nf.range(n,r))}return H.set(e,!0)}});function Mf(i,e,t=e){let n=!1;return i.between(e,t,(r,s)=>{r<t&&s>e&&(n=!0)}),n?i.update({filterFrom:e,filterTo:t,filter:(r,s)=>r>=t||s<=e}):i}function eo(i,e,t){var n;let r=null;return(n=i.field(Fi,!1))===null||n===void 0||n.between(e,t,(s,o)=>{(!r||r.from>s)&&(r={from:s,to:o})}),r}function KS(i,e,t){let n=!1;return i.between(e,e,(r,s)=>{r==e&&s==t&&(n=!0)}),n}function Lf(i,e){return i.field(Fi,!1)?e:e.concat(F.appendConfig.of(Df()))}const JS=i=>{for(let e of jf(i)){let t=Ks(i.state,e.from,e.to);if(t)return i.dispatch({effects:Lf(i.state,[Js.of(t),Gf(i,t)])}),!0}return!1},ew=i=>{if(!i.state.field(Fi,!1))return!1;let e=[];for(let t of jf(i)){let n=eo(i.state,t.from,t.to);n&&e.push(gr.of(n),Gf(i,n,!1))}return e.length&&i.dispatch({effects:e}),e.length>0};function Gf(i,e,t=!0){let n=i.state.doc.lineAt(e.from).number,r=i.state.doc.lineAt(e.to).number;return X.announce.of(`${i.state.phrase(t?"Folded lines":"Unfolded lines")} ${n} ${i.state.phrase("to")} ${r}.`)}const tw=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:JS},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:ew},{key:"Ctrl-Alt-[",run:i=>{let{state:e}=i,t=[];for(let n=0;n<e.doc.length;){let r=i.lineBlockAt(n),s=Ks(e,r.from,r.to);s&&t.push(Js.of(s)),n=(s?i.lineBlockAt(s.to):r).to+1}return t.length&&i.dispatch({effects:Lf(i.state,t)}),!!t.length}},{key:"Ctrl-Alt-]",run:i=>{let e=i.state.field(Fi,!1);if(!e||!e.size)return!1;let t=[];return e.between(0,i.state.doc.length,(n,r)=>{t.push(gr.of({from:n,to:r}))}),i.dispatch({effects:t}),!0}}],iw={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},If=Z.define({combine(i){return hn(i,iw)}});function Df(i){return[Fi,ow]}function Bf(i,e){let{state:t}=i,n=t.facet(If),r=o=>{let a=i.lineBlockAt(i.posAtDOM(o.target)),l=eo(i.state,a.from,a.to);l&&i.dispatch({effects:gr.of(l)}),o.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(i,r,e);let s=document.createElement("span");return s.textContent=n.placeholderText,s.setAttribute("aria-label",t.phrase("folded code")),s.title=t.phrase("unfold"),s.className="cm-foldPlaceholder",s.onclick=r,s}const Nf=H.replace({widget:new class extends bi{toDOM(i){return Bf(i,null)}}});class nw extends bi{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return Bf(e,this.value)}}const rw={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class Xl extends Jt{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function sw(i={}){let e={...rw,...i},t=new Xl(e,!0),n=new Xl(e,!1),r=xe.fromClass(class{constructor(o){this.from=o.viewport.from,this.markers=this.buildMarkers(o)}update(o){(o.docChanged||o.viewportChanged||o.startState.facet(ki)!=o.state.facet(ki)||o.startState.field(Fi,!1)!=o.state.field(Fi,!1)||Oe(o.startState)!=Oe(o.state)||e.foldingChanged(o))&&(this.markers=this.buildMarkers(o.view))}buildMarkers(o){let a=new gi;for(let l of o.viewportLineBlocks){let O=eo(o.state,l.from,l.to)?n:Ks(o.state,l.from,l.to)?t:null;O&&a.add(l.from,l.from,O)}return a.finish()}}),{domEventHandlers:s}=e;return[r,Y0({class:"cm-foldGutter",markers(o){var a;return((a=o.plugin(r))===null||a===void 0?void 0:a.markers)||ee.empty},initialSpacer(){return new Xl(e,!1)},domEventHandlers:{...s,click:(o,a,l)=>{if(s.click&&s.click(o,a,l))return!0;let O=eo(o.state,a.from,a.to);if(O)return o.dispatch({effects:gr.of(O)}),!0;let c=Ks(o.state,a.from,a.to);return c?(o.dispatch({effects:Js.of(c)}),!0):!1}}}),Df()]}const ow=X.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class to{constructor(e,t){this.specs=e;let n;function r(a){let l=Qi.newName();return(n||(n=Object.create(null)))["."+l]=a,l}const s=typeof t.all=="string"?t.all:t.all?r(t.all):void 0,o=t.scope;this.scope=o instanceof Fe?a=>a.prop(vi)==o.data:o?a=>a==o:void 0,this.style=Zf(e.map(a=>({tag:a.tag,class:a.class||r(Object.assign({},a,{tag:null}))})),{all:s}).style,this.module=n?new Qi(n):null,this.themeType=t.themeType}static define(e,t){return new to(e,t||{})}}const _l=Z.define(),aw=Z.define({combine(i){return i.length?[i[0]]:null}});function Rl(i){let e=i.facet(_l);return e.length?e:i.facet(aw)}function lw(i,e){let t=[cw],n;return i instanceof to&&(i.module&&t.push(X.styleModule.of(i.module)),n=i.themeType),n?t.push(_l.computeN([X.darkTheme],r=>r.facet(X.darkTheme)==(n=="dark")?[i]:[])):t.push(_l.of(i)),t}class Ow{constructor(e){this.markCache=Object.create(null),this.tree=Oe(e.state),this.decorations=this.buildDeco(e,Rl(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=Oe(e.state),n=Rl(e.state),r=n!=Rl(e.startState),{viewport:s}=e.view,o=e.changes.mapPos(this.decoratedTo,1);t.length<s.to&&!r&&t.type==this.tree.type&&o>=s.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=o):(t!=this.tree||e.viewportChanged||r)&&(this.tree=t,this.decorations=this.buildDeco(e.view,n),this.decoratedTo=s.to)}buildDeco(e,t){if(!t||!this.tree.length)return H.none;let n=new gi;for(let{from:r,to:s}of e.visibleRanges)VS(this.tree,t,(o,a,l)=>{n.add(o,a,this.markCache[l]||(this.markCache[l]=H.mark({class:l})))},r,s);return n.finish()}}const cw=Dt.high(xe.fromClass(Ow,{decorations:i=>i.decorations})),dw=X.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),Ff=1e4,Hf="()[]{}",Kf=Z.define({combine(i){return hn(i,{afterCursor:!0,brackets:Hf,maxScanDistance:Ff,renderMatch:uw})}}),hw=H.mark({class:"cm-matchingBracket"}),fw=H.mark({class:"cm-nonmatchingBracket"});function uw(i){let e=[],t=i.matched?hw:fw;return e.push(t.range(i.start.from,i.start.to)),i.end&&e.push(t.range(i.end.from,i.end.to)),e}function Jf(i){let e=[],t=i.facet(Kf);for(let n of i.selection.ranges){if(!n.empty)continue;let r=Vt(i,n.head,-1,t)||n.head>0&&Vt(i,n.head-1,1,t)||t.afterCursor&&(Vt(i,n.head,1,t)||n.head<i.doc.length&&Vt(i,n.head+1,-1,t));r&&(e=e.concat(t.renderMatch(r,i)))}return H.set(e,!0)}const pw=[xe.fromClass(class{constructor(i){this.paused=!1,this.decorations=Jf(i.state)}update(i){(i.docChanged||i.selectionSet||this.paused)&&(i.view.composing?(this.decorations=this.decorations.map(i.changes),this.paused=!0):(this.decorations=Jf(i.state),this.paused=!1))}},{decorations:i=>i.decorations}),dw];function mw(i={}){return[Kf.of(i),pw]}const eu=new E;function Zl(i,e,t){let n=i.prop(e<0?E.openedBy:E.closedBy);if(n)return n;if(i.name.length==1){let r=t.indexOf(i.name);if(r>-1&&r%2==(e<0?1:0))return[t[r+e]]}return null}function zl(i){let e=i.type.prop(eu);return e?e(i.node):i}function Vt(i,e,t,n={}){let r=n.maxScanDistance||Ff,s=n.brackets||Hf,o=Oe(i),a=o.resolveInner(e,t);for(let l=a;l;l=l.parent){let O=Zl(l.type,t,s);if(O&&l.from<l.to){let c=zl(l);if(c&&(t>0?e>=c.from&&e<c.to:e>c.from&&e<=c.to))return $w(i,e,t,l,c,O,s)}}return gw(i,e,t,o,a.type,r,s)}function $w(i,e,t,n,r,s,o){let a=n.parent,l={from:r.from,to:r.to},O=0,c=a==null?void 0:a.cursor();if(c&&(t<0?c.childBefore(n.from):c.childAfter(n.to)))do if(t<0?c.to<=n.from:c.from>=n.to){if(O==0&&s.indexOf(c.type.name)>-1&&c.from<c.to){let d=zl(c);return{start:l,end:d?{from:d.from,to:d.to}:void 0,matched:!0}}else if(Zl(c.type,t,o))O++;else if(Zl(c.type,-t,o)){if(O==0){let d=zl(c);return{start:l,end:d&&d.from<d.to?{from:d.from,to:d.to}:void 0,matched:!1}}O--}}while(t<0?c.prevSibling():c.nextSibling());return{start:l,matched:!1}}function gw(i,e,t,n,r,s,o){if(t<0?!e:e==i.doc.length)return null;let a=t<0?i.sliceDoc(e-1,e):i.sliceDoc(e,e+1),l=o.indexOf(a);if(l<0||l%2==0!=t>0)return null;let O={from:t<0?e-1:e,to:t>0?e+1:e},c=i.doc.iterRange(e,t>0?i.doc.length:0),d=0;for(let h=0;!c.next().done&&h<=s;){let f=c.value;t<0&&(h+=f.length);let p=e+h*t;for(let m=t>0?0:f.length-1,$=t>0?f.length:-1;m!=$;m+=t){let g=o.indexOf(f[m]);if(!(g<0||n.resolveInner(p+m,1).type!=r))if(g%2==0==t>0)d++;else{if(d==1)return{start:O,end:{from:p+m,to:p+m+1},matched:g>>1==l>>1};d--}}t>0&&(h+=f.length)}return c.done?{start:O,matched:!1}:null}function tu(i,e,t,n=0,r=0){e==null&&(e=i.search(/[^\s\u00a0]/),e==-1&&(e=i.length));let s=r;for(let o=n;o<e;o++)i.charCodeAt(o)==9?s+=t-s%t:s++;return s}class iu{constructor(e,t,n,r){this.string=e,this.tabSize=t,this.indentUnit=n,this.overrideIndent=r,this.pos=0,this.start=0,this.lastColumnPos=0,this.lastColumnValue=0}eol(){return this.pos>=this.string.length}sol(){return this.pos==0}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)}eat(e){let t=this.string.charAt(this.pos),n;if(typeof e=="string"?n=t==e:n=t&&(e instanceof RegExp?e.test(t):e(t)),n)return++this.pos,t}eatWhile(e){let t=this.pos;for(;this.eat(e););return this.pos>t}eatSpace(){let e=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e}skipToEnd(){this.pos=this.string.length}skipTo(e){let t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0}backUp(e){this.pos-=e}column(){return this.lastColumnPos<this.start&&(this.lastColumnValue=tu(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue}indentation(){var e;return(e=this.overrideIndent)!==null&&e!==void 0?e:tu(this.string,null,this.tabSize)}match(e,t,n){if(typeof e=="string"){let r=o=>n?o.toLowerCase():o,s=this.string.substr(this.pos,e.length);return r(s)==r(e)?(t!==!1&&(this.pos+=e.length),!0):null}else{let r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&t!==!1&&(this.pos+=r[0].length),r)}}current(){return this.string.slice(this.start,this.pos)}}function Qw(i){return{name:i.name||"",token:i.token,blankLine:i.blankLine||(()=>{}),startState:i.startState||(()=>!0),copyState:i.copyState||yw,indent:i.indent||(()=>null),languageData:i.languageData||{},tokenTable:i.tokenTable||Vl,mergeTokens:i.mergeTokens!==!1}}function yw(i){if(typeof i!="object")return i;let e={};for(let t in i){let n=i[t];e[t]=n instanceof Array?n.slice():n}return e}const nu=new WeakMap;class vn extends Fe{constructor(e){let t=Ns(e.languageData),n=Qw(e),r,s=new class extends Ls{createParse(o,a,l){return new Sw(r,o,a,l)}};super(t,s,[],e.name),this.topNode=xw(t,this),r=this,this.streamParser=n,this.stateAfter=new E({perNode:!0}),this.tokenTable=e.tokenTable?new Ou(n.tokenTable):Pw}static define(e){return new vn(e)}getIndent(e){let t,{overrideIndentation:n}=e.options;n&&(t=nu.get(e.state),t!=null&&t<e.pos-1e4&&(t=void 0));let r=ql(this,e.node.tree,e.node.from,e.node.from,t??e.pos),s,o;if(r?(o=r.state,s=r.pos+1):(o=this.streamParser.startState(e.unit),s=e.node.from),e.pos-s>1e4)return null;for(;s<e.pos;){let l=e.state.doc.lineAt(s),O=Math.min(e.pos,l.to);if(l.length){let c=n?n(l.from):-1,d=new iu(l.text,e.state.tabSize,e.unit,c<0?void 0:c);for(;d.pos<O-l.from;)su(this.streamParser.token,d,o)}else this.streamParser.blankLine(o,e.unit);if(O==e.pos)break;s=l.to+1}let a=e.lineAt(e.pos);return n&&t==null&&nu.set(e.state,a.from),this.streamParser.indent(o,/^\s*(.*)/.exec(a.text)[1],e)}get allowsNesting(){return!1}}function ql(i,e,t,n,r){let s=t>=n&&t+e.length<=r&&e.prop(i.stateAfter);if(s)return{state:i.streamParser.copyState(s),pos:t+e.length};for(let o=e.children.length-1;o>=0;o--){let a=e.children[o],l=t+e.positions[o],O=a instanceof K&&l<r&&ql(i,a,l,n,r);if(O)return O}return null}function ru(i,e,t,n,r){if(r&&t<=0&&n>=e.length)return e;!r&&t==0&&e.type==i.topNode&&(r=!0);for(let s=e.children.length-1;s>=0;s--){let o=e.positions[s],a=e.children[s],l;if(o<n&&a instanceof K){if(!(l=ru(i,a,t-o,n-o,r)))break;return r?new K(e.type,e.children.slice(0,s).concat(l),e.positions.slice(0,s+1),o+l.length):l}}return null}function bw(i,e,t,n,r){for(let s of e){let o=s.from+(s.openStart?25:0),a=s.to-(s.openEnd?25:0),l=o<=t&&a>t&&ql(i,s.tree,0-s.offset,t,a),O;if(l&&l.pos<=n&&(O=ru(i,s.tree,t+s.offset,l.pos+s.offset,!1)))return{state:l.state,tree:O}}return{state:i.streamParser.startState(r?Bi(r):4),tree:K.empty}}let Sw=class{constructor(e,t,n,r){this.lang=e,this.input=t,this.fragments=n,this.ranges=r,this.stoppedAt=null,this.chunks=[],this.chunkPos=[],this.chunk=[],this.chunkReused=void 0,this.rangeIndex=0,this.to=r[r.length-1].to;let s=Di.get(),o=r[0].from,{state:a,tree:l}=bw(e,n,o,this.to,s==null?void 0:s.state);this.state=a,this.parsedPos=this.chunkStart=o+l.length;for(let O=0;O<l.children.length;O++)this.chunks.push(l.children[O]),this.chunkPos.push(l.positions[O]);s&&this.parsedPos<s.viewport.from-1e5&&r.some(O=>O.from<=s.viewport.from&&O.to>=s.viewport.from)&&(this.state=this.lang.streamParser.startState(Bi(s.state)),s.skipUntilInView(this.parsedPos,s.viewport.from),this.parsedPos=s.viewport.from),this.moveRangeIndex()}advance(){let e=Di.get(),t=this.stoppedAt==null?this.to:Math.min(this.to,this.stoppedAt),n=Math.min(t,this.chunkStart+512);for(e&&(n=Math.min(n,e.viewport.to));this.parsedPos<n;)this.parseLine(e);return this.chunkStart<this.parsedPos&&this.finishChunk(),this.parsedPos>=t?this.finish():e&&this.parsedPos>=e.viewport.to?(e.skipUntilInView(this.parsedPos,t),this.finish()):null}stopAt(e){this.stoppedAt=e}lineAfter(e){let t=this.input.chunk(e);if(this.input.lineChunks)t==`
548
+ `&&(t="");else{let n=t.indexOf(`
549
+ `);n>-1&&(t=t.slice(0,n))}return e+t.length<=this.to?t:t.slice(0,this.to-e)}nextLine(){let e=this.parsedPos,t=this.lineAfter(e),n=e+t.length;for(let r=this.rangeIndex;;){let s=this.ranges[r].to;if(s>=n||(t=t.slice(0,s-(n-t.length)),r++,r==this.ranges.length))break;let o=this.ranges[r].from,a=this.lineAfter(o);t+=a,n=o+a.length}return{line:t,end:n}}skipGapsTo(e,t,n){for(;;){let r=this.ranges[this.rangeIndex].to,s=e+t;if(n>0?r>s:r>=s)break;let o=this.ranges[++this.rangeIndex].from;t+=o-r}return t}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to<this.parsedPos;)this.rangeIndex++}emitToken(e,t,n,r){let s=4;if(this.ranges.length>1){r=this.skipGapsTo(t,r,1),t+=r;let a=this.chunk.length;r=this.skipGapsTo(n,r,-1),n+=r,s+=this.chunk.length-a}let o=this.chunk.length-4;return this.lang.streamParser.mergeTokens&&s==4&&o>=0&&this.chunk[o]==e&&this.chunk[o+2]==t?this.chunk[o+2]=n:this.chunk.push(e,t,n,s),r}parseLine(e){let{line:t,end:n}=this.nextLine(),r=0,{streamParser:s}=this.lang,o=new iu(t,e?e.state.tabSize:4,e?Bi(e.state):2);if(o.eol())s.blankLine(this.state,o.indentUnit);else for(;!o.eol();){let a=su(s.token,o,this.state);if(a&&(r=this.emitToken(this.lang.tokenTable.resolve(a),this.parsedPos+o.start,this.parsedPos+o.pos,r)),o.start>1e4)break}this.parsedPos=n,this.moveRangeIndex(),this.parsedPos<this.to&&this.parsedPos++}finishChunk(){let e=K.build({buffer:this.chunk,start:this.chunkStart,length:this.parsedPos-this.chunkStart,nodeSet:ww,topID:0,maxBufferLength:512,reused:this.chunkReused});e=new K(e.type,e.children,e.positions,e.length,[[this.lang.stateAfter,this.lang.streamParser.copyState(this.state)]]),this.chunks.push(e),this.chunkPos.push(this.chunkStart-this.ranges[0].from),this.chunk=[],this.chunkReused=void 0,this.chunkStart=this.parsedPos}finish(){return new K(this.lang.topNode,this.chunks,this.chunkPos,this.parsedPos-this.ranges[0].from).balance()}};function su(i,e,t){e.start=e.pos;for(let n=0;n<10;n++){let r=i(e,t);if(e.pos>e.start)return r}throw new Error("Stream parser failed to advance stream.")}const Vl=Object.create(null),Qr=[Qe.none],ww=new wn(Qr),ou=[],au=Object.create(null),lu=Object.create(null);for(let[i,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])lu[i]=cu(Vl,e);class Ou{constructor(e){this.extra=e,this.table=Object.assign(Object.create(null),lu)}resolve(e){return e?this.table[e]||(this.table[e]=cu(this.extra,e)):0}}const Pw=new Ou(Vl);function Cl(i,e){ou.indexOf(i)>-1||(ou.push(i),console.warn(e))}function cu(i,e){let t=[];for(let a of e.split(" ")){let l=[];for(let O of a.split(".")){let c=i[O]||u[O];c?typeof c=="function"?l.length?l=l.map(c):Cl(O,`Modifier ${O} used at start of tag`):l.length?Cl(O,`Tag ${O} used as modifier`):l=Array.isArray(c)?c:[c]:Cl(O,`Unknown highlighting tag ${O}`)}for(let O of l)t.push(O)}if(!t.length)return 0;let n=e.replace(/ /g,"_"),r=n+" "+t.map(a=>a.id),s=au[r];if(s)return s.id;let o=au[r]=Qe.define({id:Qr.length,name:n,props:[ft({[n]:t})]});return Qr.push(o),o.id}function xw(i,e){let t=Qe.define({id:Qr.length,name:"Document",props:[vi.add(()=>i),pt.add(()=>n=>e.getIndent(n))],top:!0});return Qr.push(t),t}fe.RTL,fe.LTR;const Tw=i=>{let{state:e}=i,t=e.doc.lineAt(e.selection.main.from),n=Wl(i.state,t.from);return n.line?vw(i):n.block?Xw(i):!1};function Yl(i,e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=i(e,t);return r?(n(t.update(r)),!0):!1}}const vw=Yl(Zw,0),kw=Yl(du,0),Xw=Yl((i,e)=>du(i,e,Rw(e)),0);function Wl(i,e){let t=i.languageDataAt("commentTokens",e,1);return t.length?t[0]:{}}const yr=50;function _w(i,{open:e,close:t},n,r){let s=i.sliceDoc(n-yr,n),o=i.sliceDoc(r,r+yr),a=/\s*$/.exec(s)[0].length,l=/^\s*/.exec(o)[0].length,O=s.length-a;if(s.slice(O-e.length,O)==e&&o.slice(l,l+t.length)==t)return{open:{pos:n-a,margin:a&&1},close:{pos:r+l,margin:l&&1}};let c,d;r-n<=2*yr?c=d=i.sliceDoc(n,r):(c=i.sliceDoc(n,n+yr),d=i.sliceDoc(r-yr,r));let h=/^\s*/.exec(c)[0].length,f=/\s*$/.exec(d)[0].length,p=d.length-f-t.length;return c.slice(h,h+e.length)==e&&d.slice(p,p+t.length)==t?{open:{pos:n+h+e.length,margin:/\s/.test(c.charAt(h+e.length))?1:0},close:{pos:r-f-t.length,margin:/\s/.test(d.charAt(p-1))?1:0}}:null}function Rw(i){let e=[];for(let t of i.selection.ranges){let n=i.doc.lineAt(t.from),r=t.to<=n.to?n:i.doc.lineAt(t.to);r.from>n.from&&r.from==t.to&&(r=t.to==n.to+1?n:i.doc.lineAt(t.to-1));let s=e.length-1;s>=0&&e[s].to>n.from?e[s].to=r.to:e.push({from:n.from+/^\s*/.exec(n.text)[0].length,to:r.to})}return e}function du(i,e,t=e.selection.ranges){let n=t.map(s=>Wl(e,s.from).block);if(!n.every(s=>s))return null;let r=t.map((s,o)=>_w(e,n[o],s.from,s.to));if(i!=2&&!r.every(s=>s))return{changes:e.changes(t.map((s,o)=>r[o]?[]:[{from:s.from,insert:n[o].open+" "},{from:s.to,insert:" "+n[o].close}]))};if(i!=1&&r.some(s=>s)){let s=[];for(let o=0,a;o<r.length;o++)if(a=r[o]){let l=n[o],{open:O,close:c}=a;s.push({from:O.pos-l.open.length,to:O.pos+O.margin},{from:c.pos-c.margin,to:c.pos+l.close.length})}return{changes:s}}return null}function Zw(i,e,t=e.selection.ranges){let n=[],r=-1;e:for(let{from:s,to:o}of t){let a=n.length,l=1e9,O;for(let c=s;c<=o;){let d=e.doc.lineAt(c);if(O==null&&(O=Wl(e,d.from).line,!O))continue e;if(d.from>r&&(s==o||o>d.from)){r=d.from;let h=/^\s*/.exec(d.text)[0].length,f=h==d.length,p=d.text.slice(h,h+O.length)==O?h:-1;h<d.text.length&&h<l&&(l=h),n.push({line:d,comment:p,token:O,indent:h,empty:f,single:!1})}c=d.to+1}if(l<1e9)for(let c=a;c<n.length;c++)n[c].indent<n[c].line.text.length&&(n[c].indent=l);n.length==a+1&&(n[a].single=!0)}if(i!=2&&n.some(s=>s.comment<0&&(!s.empty||s.single))){let s=[];for(let{line:a,token:l,indent:O,empty:c,single:d}of n)(d||!c)&&s.push({from:a.from+O,insert:l+" "});let o=e.changes(s);return{changes:o,selection:e.selection.map(o,1)}}else if(i!=1&&n.some(s=>s.comment>=0)){let s=[];for(let{line:o,comment:a,token:l}of n)if(a>=0){let O=o.from+a,c=O+l.length;o.text[c-o.from]==" "&&c++,s.push({from:O,to:c})}return{changes:s}}return null}const Al=Bt.define(),zw=Bt.define(),qw=Z.define(),hu=Z.define({combine(i){return hn(i,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,r)=>e(n,r)||t(n,r)})}}),fu=Ce.define({create(){return Ct.empty},update(i,e){let t=e.state.facet(hu),n=e.annotation(Al);if(n){let l=Ge.fromTransaction(e,n.selection),O=n.side,c=O==0?i.undone:i.done;return l?c=no(c,c.length,t.minDepth,l):c=mu(c,e.startState.selection),new Ct(O==0?n.rest:c,O==0?c:n.rest)}let r=e.annotation(zw);if((r=="full"||r=="before")&&(i=i.isolate()),e.annotation($e.addToHistory)===!1)return e.changes.empty?i:i.addMapping(e.changes.desc);let s=Ge.fromTransaction(e),o=e.annotation($e.time),a=e.annotation($e.userEvent);return s?i=i.addChanges(s,o,a,t,e):e.selection&&(i=i.addSelection(e.startState.selection,o,a,t.newGroupDelay)),(r=="full"||r=="after")&&(i=i.isolate()),i},toJSON(i){return{done:i.done.map(e=>e.toJSON()),undone:i.undone.map(e=>e.toJSON())}},fromJSON(i){return new Ct(i.done.map(Ge.fromJSON),i.undone.map(Ge.fromJSON))}});function Vw(i={}){return[fu,hu.of(i),X.domEventHandlers({beforeinput(e,t){let n=e.inputType=="historyUndo"?uu:e.inputType=="historyRedo"?El:null;return n?(e.preventDefault(),n(t)):!1}})]}function io(i,e){return function({state:t,dispatch:n}){if(!e&&t.readOnly)return!1;let r=t.field(fu,!1);if(!r)return!1;let s=r.pop(i,t,e);return s?(n(s),!0):!1}}const uu=io(0,!1),El=io(1,!1),Cw=io(0,!0),Yw=io(1,!0);class Ge{constructor(e,t,n,r,s){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=r,this.selectionsAfter=s}setSelAfter(e){return new Ge(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(t=this.mapped)===null||t===void 0?void 0:t.toJSON(),startSelection:(n=this.startSelection)===null||n===void 0?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(r=>r.toJSON())}}static fromJSON(e){return new Ge(e.changes&&ye.fromJSON(e.changes),[],e.mapped&&Pt.fromJSON(e.mapped),e.startSelection&&b.fromJSON(e.startSelection),e.selectionsAfter.map(b.fromJSON))}static fromTransaction(e,t){let n=st;for(let r of e.startState.facet(qw)){let s=r(e);s.length&&(n=n.concat(s))}return!n.length&&e.changes.empty?null:new Ge(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,st)}static selection(e){return new Ge(void 0,st,void 0,void 0,e)}}function no(i,e,t,n){let r=e+1>t+20?e-t-1:0,s=i.slice(r,e);return s.push(n),s}function Ww(i,e){let t=[],n=!1;return i.iterChangedRanges((r,s)=>t.push(r,s)),e.iterChangedRanges((r,s,o,a)=>{for(let l=0;l<t.length;){let O=t[l++],c=t[l++];a>=O&&o<=c&&(n=!0)}}),n}function Aw(i,e){return i.ranges.length==e.ranges.length&&i.ranges.filter((t,n)=>t.empty!=e.ranges[n].empty).length===0}function pu(i,e){return i.length?e.length?i.concat(e):i:e}const st=[],Ew=200;function mu(i,e){if(i.length){let t=i[i.length-1],n=t.selectionsAfter.slice(Math.max(0,t.selectionsAfter.length-Ew));return n.length&&n[n.length-1].eq(e)?i:(n.push(e),no(i,i.length-1,1e9,t.setSelAfter(n)))}else return[Ge.selection([e])]}function Uw(i){let e=i[i.length-1],t=i.slice();return t[i.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),t}function Ul(i,e){if(!i.length)return i;let t=i.length,n=st;for(;t;){let r=jw(i[t-1],e,n);if(r.changes&&!r.changes.empty||r.effects.length){let s=i.slice(0,t);return s[t-1]=r,s}else e=r.mapped,t--,n=r.selectionsAfter}return n.length?[Ge.selection(n)]:st}function jw(i,e,t){let n=pu(i.selectionsAfter.length?i.selectionsAfter.map(a=>a.map(e)):st,t);if(!i.changes)return Ge.selection(n);let r=i.changes.map(e),s=e.mapDesc(i.changes,!0),o=i.mapped?i.mapped.composeDesc(s):s;return new Ge(r,F.mapEffects(i.effects,e),o,i.startSelection.map(s),n)}const Mw=/^(input\.type|delete)($|\.)/;class Ct{constructor(e,t,n=0,r=void 0){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new Ct(this.done,this.undone):this}addChanges(e,t,n,r,s){let o=this.done,a=o[o.length-1];return a&&a.changes&&!a.changes.empty&&e.changes&&(!n||Mw.test(n))&&(!a.selectionsAfter.length&&t-this.prevTime<r.newGroupDelay&&r.joinToEvent(s,Ww(a.changes,e.changes))||n=="input.type.compose")?o=no(o,o.length-1,r.minDepth,new Ge(e.changes.compose(a.changes),pu(F.mapEffects(e.effects,a.changes),a.effects),a.mapped,a.startSelection,st)):o=no(o,o.length,r.minDepth,e),new Ct(o,st,t,n)}addSelection(e,t,n,r){let s=this.done.length?this.done[this.done.length-1].selectionsAfter:st;return s.length>0&&t-this.prevTime<r&&n==this.prevUserEvent&&n&&/^select($|\.)/.test(n)&&Aw(s[s.length-1],e)?this:new Ct(mu(this.done,e),this.undone,t,n)}addMapping(e){return new Ct(Ul(this.done,e),Ul(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let r=e==0?this.done:this.undone;if(r.length==0)return null;let s=r[r.length-1],o=s.selectionsAfter[0]||(s.startSelection?s.startSelection.map(s.changes.invertedDesc,1):t.selection);if(n&&s.selectionsAfter.length)return t.update({selection:s.selectionsAfter[s.selectionsAfter.length-1],annotations:Al.of({side:e,rest:Uw(r),selection:o}),userEvent:e==0?"select.undo":"select.redo",scrollIntoView:!0});if(s.changes){let a=r.length==1?st:r.slice(0,r.length-1);return s.mapped&&(a=Ul(a,s.mapped)),t.update({changes:s.changes,selection:s.startSelection,effects:s.effects,annotations:Al.of({side:e,rest:a,selection:o}),filter:!1,userEvent:e==0?"undo":"redo",scrollIntoView:!0})}else return null}}Ct.empty=new Ct(st,st);const Lw=[{key:"Mod-z",run:uu,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:El,preventDefault:!0},{linux:"Ctrl-Shift-z",run:El,preventDefault:!0},{key:"Mod-u",run:Cw,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:Yw,preventDefault:!0}];function kn(i,e){return b.create(i.ranges.map(e),i.mainIndex)}function $t(i,e){return i.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function gt({state:i,dispatch:e},t){let n=kn(i.selection,t);return n.eq(i.selection,!0)?!1:(e($t(i,n)),!0)}function ro(i,e){return b.cursor(e?i.to:i.from)}function $u(i,e){return gt(i,t=>t.empty?i.moveByChar(t,e):ro(t,e))}function ze(i){return i.textDirectionAt(i.state.selection.main.head)==fe.LTR}const gu=i=>$u(i,!ze(i)),Qu=i=>$u(i,ze(i));function yu(i,e){return gt(i,t=>t.empty?i.moveByGroup(t,e):ro(t,e))}const Gw=i=>yu(i,!ze(i)),Iw=i=>yu(i,ze(i));function Dw(i,e,t){if(e.type.prop(t))return!0;let n=e.to-e.from;return n&&(n>2||/[^\s,.;:]/.test(i.sliceDoc(e.from,e.to)))||e.firstChild}function so(i,e,t){let n=Oe(i).resolveInner(e.head),r=t?E.closedBy:E.openedBy;for(let l=e.head;;){let O=t?n.childAfter(l):n.childBefore(l);if(!O)break;Dw(i,O,r)?n=O:l=t?O.to:O.from}let s=n.type.prop(r),o,a;return s&&(o=t?Vt(i,n.from,1):Vt(i,n.to,-1))&&o.matched?a=t?o.end.to:o.end.from:a=t?n.to:n.from,b.cursor(a,t?-1:1)}const Bw=i=>gt(i,e=>so(i.state,e,!ze(i))),Nw=i=>gt(i,e=>so(i.state,e,ze(i)));function bu(i,e){return gt(i,t=>{if(!t.empty)return ro(t,e);let n=i.moveVertically(t,e);return n.head!=t.head?n:i.moveToLineBoundary(t,e)})}const Su=i=>bu(i,!1),wu=i=>bu(i,!0);function Pu(i){let e=i.scrollDOM.clientHeight<i.scrollDOM.scrollHeight-2,t=0,n=0,r;if(e){for(let s of i.state.facet(X.scrollMargins)){let o=s(i);o!=null&&o.top&&(t=Math.max(o==null?void 0:o.top,t)),o!=null&&o.bottom&&(n=Math.max(o==null?void 0:o.bottom,n))}r=i.scrollDOM.clientHeight-t-n}else r=(i.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:t,marginBottom:n,selfScroll:e,height:Math.max(i.defaultLineHeight,r-5)}}function xu(i,e){let t=Pu(i),{state:n}=i,r=kn(n.selection,o=>o.empty?i.moveVertically(o,e,t.height):ro(o,e));if(r.eq(n.selection))return!1;let s;if(t.selfScroll){let o=i.coordsAtPos(n.selection.main.head),a=i.scrollDOM.getBoundingClientRect(),l=a.top+t.marginTop,O=a.bottom-t.marginBottom;o&&o.top>l&&o.bottom<O&&(s=X.scrollIntoView(r.main.head,{y:"start",yMargin:o.top-l}))}return i.dispatch($t(n,r),{effects:s}),!0}const Tu=i=>xu(i,!1),jl=i=>xu(i,!0);function Xi(i,e,t){let n=i.lineBlockAt(e.head),r=i.moveToLineBoundary(e,t);if(r.head==e.head&&r.head!=(t?n.to:n.from)&&(r=i.moveToLineBoundary(e,t,!1)),!t&&r.head==n.from&&n.length){let s=/^\s*/.exec(i.state.sliceDoc(n.from,Math.min(n.from+100,n.to)))[0].length;s&&e.head!=n.from+s&&(r=b.cursor(n.from+s))}return r}const Fw=i=>gt(i,e=>Xi(i,e,!0)),Hw=i=>gt(i,e=>Xi(i,e,!1)),Kw=i=>gt(i,e=>Xi(i,e,!ze(i))),Jw=i=>gt(i,e=>Xi(i,e,ze(i))),e1=i=>gt(i,e=>b.cursor(i.lineBlockAt(e.head).from,1)),t1=i=>gt(i,e=>b.cursor(i.lineBlockAt(e.head).to,-1));function i1(i,e,t){let n=!1,r=kn(i.selection,s=>{let o=Vt(i,s.head,-1)||Vt(i,s.head,1)||s.head>0&&Vt(i,s.head-1,1)||s.head<i.doc.length&&Vt(i,s.head+1,-1);if(!o||!o.end)return s;n=!0;let a=o.start.from==s.head?o.end.to:o.end.from;return b.cursor(a)});return n?(e($t(i,r)),!0):!1}const n1=({state:i,dispatch:e})=>i1(i,e);function ot(i,e){let t=kn(i.state.selection,n=>{let r=e(n);return b.range(n.anchor,r.head,r.goalColumn,r.bidiLevel||void 0,r.assoc)});return t.eq(i.state.selection)?!1:(i.dispatch($t(i.state,t)),!0)}function vu(i,e){return ot(i,t=>i.moveByChar(t,e))}const ku=i=>vu(i,!ze(i)),Xu=i=>vu(i,ze(i));function _u(i,e){return ot(i,t=>i.moveByGroup(t,e))}const r1=i=>_u(i,!ze(i)),s1=i=>_u(i,ze(i)),o1=i=>ot(i,e=>so(i.state,e,!ze(i))),a1=i=>ot(i,e=>so(i.state,e,ze(i)));function Ru(i,e){return ot(i,t=>i.moveVertically(t,e))}const Zu=i=>Ru(i,!1),zu=i=>Ru(i,!0);function qu(i,e){return ot(i,t=>i.moveVertically(t,e,Pu(i).height))}const Vu=i=>qu(i,!1),Cu=i=>qu(i,!0),l1=i=>ot(i,e=>Xi(i,e,!0)),O1=i=>ot(i,e=>Xi(i,e,!1)),c1=i=>ot(i,e=>Xi(i,e,!ze(i))),d1=i=>ot(i,e=>Xi(i,e,ze(i))),h1=i=>ot(i,e=>b.cursor(i.lineBlockAt(e.head).from)),f1=i=>ot(i,e=>b.cursor(i.lineBlockAt(e.head).to)),Yu=({state:i,dispatch:e})=>(e($t(i,{anchor:0})),!0),Wu=({state:i,dispatch:e})=>(e($t(i,{anchor:i.doc.length})),!0),Au=({state:i,dispatch:e})=>(e($t(i,{anchor:i.selection.main.anchor,head:0})),!0),Eu=({state:i,dispatch:e})=>(e($t(i,{anchor:i.selection.main.anchor,head:i.doc.length})),!0),u1=({state:i,dispatch:e})=>(e(i.update({selection:{anchor:0,head:i.doc.length},userEvent:"select"})),!0),p1=({state:i,dispatch:e})=>{let t=ao(i).map(({from:n,to:r})=>b.range(n,Math.min(r+1,i.doc.length)));return e(i.update({selection:b.create(t),userEvent:"select"})),!0},m1=({state:i,dispatch:e})=>{let t=kn(i.selection,n=>{let r=Oe(i),s=r.resolveStack(n.from,1);if(n.empty){let o=r.resolveStack(n.from,-1);o.node.from>=s.node.from&&o.node.to<=s.node.to&&(s=o)}for(let o=s;o;o=o.next){let{node:a}=o;if((a.from<n.from&&a.to>=n.to||a.to>n.to&&a.from<=n.from)&&o.next)return b.range(a.to,a.from)}return n});return t.eq(i.selection)?!1:(e($t(i,t)),!0)};function Uu(i,e){let{state:t}=i,n=t.selection,r=t.selection.ranges.slice();for(let s of t.selection.ranges){let o=t.doc.lineAt(s.head);if(e?o.to<i.state.doc.length:o.from>0)for(let a=s;;){let l=i.moveVertically(a,e);if(l.head<o.from||l.head>o.to){r.some(O=>O.head==l.head)||r.push(l);break}else{if(l.head==a.head)break;a=l}}}return r.length==n.ranges.length?!1:(i.dispatch($t(t,b.create(r,r.length-1))),!0)}const $1=i=>Uu(i,!1),g1=i=>Uu(i,!0),Q1=({state:i,dispatch:e})=>{let t=i.selection,n=null;return t.ranges.length>1?n=b.create([t.main]):t.main.empty||(n=b.create([b.cursor(t.main.head)])),n?(e($t(i,n)),!0):!1};function br(i,e){if(i.state.readOnly)return!1;let t="delete.selection",{state:n}=i,r=n.changeByRange(s=>{let{from:o,to:a}=s;if(o==a){let l=e(s);l<o?(t="delete.backward",l=oo(i,l,!1)):l>o&&(t="delete.forward",l=oo(i,l,!0)),o=Math.min(o,l),a=Math.max(a,l)}else o=oo(i,o,!1),a=oo(i,a,!0);return o==a?{range:s}:{changes:{from:o,to:a},range:b.cursor(o,o<s.head?-1:1)}});return r.changes.empty?!1:(i.dispatch(n.update(r,{scrollIntoView:!0,userEvent:t,effects:t=="delete.selection"?X.announce.of(n.phrase("Selection deleted")):void 0})),!0)}function oo(i,e,t){if(i instanceof X)for(let n of i.state.facet(X.atomicRanges).map(r=>r(i)))n.between(e,e,(r,s)=>{r<e&&s>e&&(e=t?s:r)});return e}const ju=(i,e,t)=>br(i,n=>{let r=n.from,{state:s}=i,o=s.doc.lineAt(r),a,l;if(t&&!e&&r>o.from&&r<o.from+200&&!/[^ \t]/.test(a=o.text.slice(0,r-o.from))){if(a[a.length-1]==" ")return r-1;let O=Nt(a,s.tabSize),c=O%Bi(s)||Bi(s);for(let d=0;d<c&&a[a.length-1-d]==" ";d++)r--;l=r}else l=we(o.text,r-o.from,e,e)+o.from,l==r&&o.number!=(e?s.doc.lines:1)?l+=e?1:-1:!e&&/[\ufe00-\ufe0f]/.test(o.text.slice(l-o.from,r-o.from))&&(l=we(o.text,l-o.from,!1,!1)+o.from);return l}),Ml=i=>ju(i,!1,!0),Mu=i=>ju(i,!0,!1),Lu=(i,e)=>br(i,t=>{let n=t.head,{state:r}=i,s=r.doc.lineAt(n),o=r.charCategorizer(n);for(let a=null;;){if(n==(e?s.to:s.from)){n==t.head&&s.number!=(e?r.doc.lines:1)&&(n+=e?1:-1);break}let l=we(s.text,n-s.from,e)+s.from,O=s.text.slice(Math.min(n,l)-s.from,Math.max(n,l)-s.from),c=o(O);if(a!=null&&c!=a)break;(O!=" "||n!=t.head)&&(a=c),n=l}return n}),Gu=i=>Lu(i,!1),y1=i=>Lu(i,!0),b1=i=>br(i,e=>{let t=i.lineBlockAt(e.head).to;return e.head<t?t:Math.min(i.state.doc.length,e.head+1)}),S1=i=>br(i,e=>{let t=i.moveToLineBoundary(e,!1).head;return e.head>t?t:Math.max(0,e.head-1)}),w1=i=>br(i,e=>{let t=i.moveToLineBoundary(e,!0).head;return e.head<t?t:Math.min(i.state.doc.length,e.head+1)}),P1=({state:i,dispatch:e})=>{if(i.readOnly)return!1;let t=i.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:ie.of(["",""])},range:b.cursor(n.from)}));return e(i.update(t,{scrollIntoView:!0,userEvent:"input"})),!0},x1=({state:i,dispatch:e})=>{if(i.readOnly)return!1;let t=i.changeByRange(n=>{if(!n.empty||n.from==0||n.from==i.doc.length)return{range:n};let r=n.from,s=i.doc.lineAt(r),o=r==s.from?r-1:we(s.text,r-s.from,!1)+s.from,a=r==s.to?r+1:we(s.text,r-s.from,!0)+s.from;return{changes:{from:o,to:a,insert:i.doc.slice(r,a).append(i.doc.slice(o,r))},range:b.cursor(a)}});return t.changes.empty?!1:(e(i.update(t,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function ao(i){let e=[],t=-1;for(let n of i.selection.ranges){let r=i.doc.lineAt(n.from),s=i.doc.lineAt(n.to);if(!n.empty&&n.to==s.from&&(s=i.doc.lineAt(n.to-1)),t>=r.number){let o=e[e.length-1];o.to=s.to,o.ranges.push(n)}else e.push({from:r.from,to:s.to,ranges:[n]});t=s.number+1}return e}function Iu(i,e,t){if(i.readOnly)return!1;let n=[],r=[];for(let s of ao(i)){if(t?s.to==i.doc.length:s.from==0)continue;let o=i.doc.lineAt(t?s.to+1:s.from-1),a=o.length+1;if(t){n.push({from:s.to,to:o.to},{from:s.from,insert:o.text+i.lineBreak});for(let l of s.ranges)r.push(b.range(Math.min(i.doc.length,l.anchor+a),Math.min(i.doc.length,l.head+a)))}else{n.push({from:o.from,to:s.from},{from:s.to,insert:i.lineBreak+o.text});for(let l of s.ranges)r.push(b.range(l.anchor-a,l.head-a))}}return n.length?(e(i.update({changes:n,scrollIntoView:!0,selection:b.create(r,i.selection.mainIndex),userEvent:"move.line"})),!0):!1}const T1=({state:i,dispatch:e})=>Iu(i,e,!1),v1=({state:i,dispatch:e})=>Iu(i,e,!0);function Du(i,e,t){if(i.readOnly)return!1;let n=[];for(let s of ao(i))t?n.push({from:s.from,insert:i.doc.slice(s.from,s.to)+i.lineBreak}):n.push({from:s.to,insert:i.lineBreak+i.doc.slice(s.from,s.to)});let r=i.changes(n);return e(i.update({changes:r,selection:i.selection.map(r,t?1:-1),scrollIntoView:!0,userEvent:"input.copyline"})),!0}const k1=({state:i,dispatch:e})=>Du(i,e,!1),X1=({state:i,dispatch:e})=>Du(i,e,!0),_1=i=>{if(i.state.readOnly)return!1;let{state:e}=i,t=e.changes(ao(e).map(({from:r,to:s})=>(r>0?r--:s<e.doc.length&&s++,{from:r,to:s}))),n=kn(e.selection,r=>{let s;if(i.lineWrapping){let o=i.lineBlockAt(r.head),a=i.coordsAtPos(r.head,r.assoc||1);a&&(s=o.bottom+i.documentTop-a.bottom+i.defaultLineHeight/2)}return i.moveVertically(r,!0,s)}).map(t);return i.dispatch({changes:t,selection:n,scrollIntoView:!0,userEvent:"delete.line"}),!0};function R1(i,e){if(/\(\)|\[\]|\{\}/.test(i.sliceDoc(e-1,e+1)))return{from:e,to:e};let t=Oe(i).resolveInner(e),n=t.childBefore(e),r=t.childAfter(e),s;return n&&r&&n.to<=e&&r.from>=e&&(s=n.type.prop(E.closedBy))&&s.indexOf(r.name)>-1&&i.doc.lineAt(n.to).from==i.doc.lineAt(r.from).from&&!/\S/.test(i.sliceDoc(n.to,r.from))?{from:n.to,to:r.from}:null}const Ll=Bu(!1),Z1=Bu(!0);function Bu(i){return({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(r=>{let{from:s,to:o}=r,a=e.doc.lineAt(s),l=!i&&s==o&&R1(e,s);i&&(s=o=(o<=a.to?a:e.doc.lineAt(o)).to);let O=new Hs(e,{simulateBreak:s,simulateDoubleBreak:!!l}),c=vl(O,s);for(c==null&&(c=Nt(/^\s*/.exec(e.doc.lineAt(s).text)[0],e.tabSize));o<a.to&&/\s/.test(a.text[o-a.from]);)o++;l?{from:s,to:o}=l:s>a.from&&s<a.from+100&&!/\S/.test(a.text.slice(0,s))&&(s=a.from);let d=["",$r(e,c)];return l&&d.push($r(e,O.lineIndent(a.from,-1))),{changes:{from:s,to:o,insert:ie.of(d)},range:b.cursor(s+1+d[1].length)}});return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}}function Gl(i,e){let t=-1;return i.changeByRange(n=>{let r=[];for(let o=n.from;o<=n.to;){let a=i.doc.lineAt(o);a.number>t&&(n.empty||n.to>a.from)&&(e(a,r,n),t=a.number),o=a.to+1}let s=i.changes(r);return{changes:r,range:b.range(s.mapPos(n.anchor,1),s.mapPos(n.head,1))}})}const z1=({state:i,dispatch:e})=>{if(i.readOnly)return!1;let t=Object.create(null),n=new Hs(i,{overrideIndentation:s=>{let o=t[s];return o??-1}}),r=Gl(i,(s,o,a)=>{let l=vl(n,s.from);if(l==null)return;/\S/.test(s.text)||(l=0);let O=/^\s*/.exec(s.text)[0],c=$r(i,l);(O!=c||a.from<s.from+O.length)&&(t[s.from]=l,o.push({from:s.from,to:s.from+O.length,insert:c}))});return r.changes.empty||e(i.update(r,{userEvent:"indent"})),!0},Nu=({state:i,dispatch:e})=>i.readOnly?!1:(e(i.update(Gl(i,(t,n)=>{n.push({from:t.from,insert:i.facet(xn)})}),{userEvent:"input.indent"})),!0),Fu=({state:i,dispatch:e})=>i.readOnly?!1:(e(i.update(Gl(i,(t,n)=>{let r=/^\s*/.exec(t.text)[0];if(!r)return;let s=Nt(r,i.tabSize),o=0,a=$r(i,Math.max(0,s-Bi(i)));for(;o<r.length&&o<a.length&&r.charCodeAt(o)==a.charCodeAt(o);)o++;n.push({from:t.from+o,to:t.from+r.length,insert:a.slice(o)})}),{userEvent:"delete.dedent"})),!0),q1=i=>(i.setTabFocusMode(),!0),V1=[{key:"Ctrl-b",run:gu,shift:ku,preventDefault:!0},{key:"Ctrl-f",run:Qu,shift:Xu},{key:"Ctrl-p",run:Su,shift:Zu},{key:"Ctrl-n",run:wu,shift:zu},{key:"Ctrl-a",run:e1,shift:h1},{key:"Ctrl-e",run:t1,shift:f1},{key:"Ctrl-d",run:Mu},{key:"Ctrl-h",run:Ml},{key:"Ctrl-k",run:b1},{key:"Ctrl-Alt-h",run:Gu},{key:"Ctrl-o",run:P1},{key:"Ctrl-t",run:x1},{key:"Ctrl-v",run:jl}],C1=[{key:"ArrowLeft",run:gu,shift:ku,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:Gw,shift:r1,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:Kw,shift:c1,preventDefault:!0},{key:"ArrowRight",run:Qu,shift:Xu,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:Iw,shift:s1,preventDefault:!0},{mac:"Cmd-ArrowRight",run:Jw,shift:d1,preventDefault:!0},{key:"ArrowUp",run:Su,shift:Zu,preventDefault:!0},{mac:"Cmd-ArrowUp",run:Yu,shift:Au},{mac:"Ctrl-ArrowUp",run:Tu,shift:Vu},{key:"ArrowDown",run:wu,shift:zu,preventDefault:!0},{mac:"Cmd-ArrowDown",run:Wu,shift:Eu},{mac:"Ctrl-ArrowDown",run:jl,shift:Cu},{key:"PageUp",run:Tu,shift:Vu},{key:"PageDown",run:jl,shift:Cu},{key:"Home",run:Hw,shift:O1,preventDefault:!0},{key:"Mod-Home",run:Yu,shift:Au},{key:"End",run:Fw,shift:l1,preventDefault:!0},{key:"Mod-End",run:Wu,shift:Eu},{key:"Enter",run:Ll,shift:Ll},{key:"Mod-a",run:u1},{key:"Backspace",run:Ml,shift:Ml,preventDefault:!0},{key:"Delete",run:Mu,preventDefault:!0},{key:"Mod-Backspace",mac:"Alt-Backspace",run:Gu,preventDefault:!0},{key:"Mod-Delete",mac:"Alt-Delete",run:y1,preventDefault:!0},{mac:"Mod-Backspace",run:S1,preventDefault:!0},{mac:"Mod-Delete",run:w1,preventDefault:!0}].concat(V1.map(i=>({mac:i.key,run:i.run,shift:i.shift}))),Y1=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:Bw,shift:o1},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:Nw,shift:a1},{key:"Alt-ArrowUp",run:T1},{key:"Shift-Alt-ArrowUp",run:k1},{key:"Alt-ArrowDown",run:v1},{key:"Shift-Alt-ArrowDown",run:X1},{key:"Mod-Alt-ArrowUp",run:$1},{key:"Mod-Alt-ArrowDown",run:g1},{key:"Escape",run:Q1},{key:"Mod-Enter",run:Z1},{key:"Alt-l",mac:"Ctrl-l",run:p1},{key:"Mod-i",run:m1,preventDefault:!0},{key:"Mod-[",run:Fu},{key:"Mod-]",run:Nu},{key:"Mod-Alt-\\",run:z1},{key:"Shift-Mod-k",run:_1},{key:"Shift-Mod-\\",run:n1},{key:"Mod-/",run:Tw},{key:"Alt-A",run:kw},{key:"Ctrl-m",mac:"Shift-Alt-m",run:q1}].concat(C1),W1={key:"Tab",run:Nu,shift:Fu};class Il{constructor(e,t,n,r){this.state=e,this.pos=t,this.explicit=n,this.view=r,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let t=Oe(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),r=t.text.slice(n-t.from,this.pos-t.from),s=r.search(Ju(e,!1));return s<0?null:{from:n+s,to:this.pos,text:r.slice(s)}}get aborted(){return this.abortListeners==null}addEventListener(e,t,n){e=="abort"&&this.abortListeners&&(this.abortListeners.push(t),n&&n.onDocChange&&(this.abortOnDocChange=!0))}}function Hu(i){let e=Object.keys(i).join(""),t=/\w/.test(e);return t&&(e=e.replace(/\w/g,"")),`[${t?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function A1(i){let e=Object.create(null),t=Object.create(null);for(let{label:r}of i){e[r[0]]=!0;for(let s=1;s<r.length;s++)t[r[s]]=!0}let n=Hu(e)+Hu(t)+"*$";return[new RegExp("^"+n),new RegExp(n)]}function lo(i){let e=i.map(r=>typeof r=="string"?{label:r}:r),[t,n]=e.every(r=>/^\w+$/.test(r.label))?[/\w*$/,/\w+$/]:A1(e);return r=>{let s=r.matchBefore(n);return s||r.explicit?{from:s?s.from:r.pos,options:e,validFor:t}:null}}function Dl(i,e){return t=>{for(let n=Oe(t.state).resolveInner(t.pos,-1);n;n=n.parent){if(i.indexOf(n.name)>-1)return null;if(n.type.isTop)break}return e(t)}}class Ku{constructor(e,t,n,r){this.completion=e,this.source=t,this.match=n,this.score=r}}function Hi(i){return i.selection.main.from}function Ju(i,e){var t;let{source:n}=i,r=e&&n[0]!="^",s=n[n.length-1]!="$";return!r&&!s?i:new RegExp(`${r?"^":""}(?:${n})${s?"$":""}`,(t=i.flags)!==null&&t!==void 0?t:i.ignoreCase?"i":"")}const Bl=Bt.define();function E1(i,e,t,n){let{main:r}=i.selection,s=t-r.from,o=n-r.from;return{...i.changeByRange(a=>{if(a!=r&&t!=n&&i.sliceDoc(a.from+s,a.from+o)!=i.sliceDoc(t,n))return{range:a};let l=i.toText(e);return{changes:{from:a.from+s,to:n==r.from?a.to:a.from+o,insert:l},range:b.cursor(a.from+s+l.length)}}),scrollIntoView:!0,userEvent:"input.complete"}}const ep=new WeakMap;function U1(i){if(!Array.isArray(i))return i;let e=ep.get(i);return e||ep.set(i,e=lo(i)),e}const Oo=F.define(),Sr=F.define();class j1{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t<e.length;){let n=De(e,t),r=wt(n);this.chars.push(n);let s=e.slice(t,t+r),o=s.toUpperCase();this.folded.push(De(o==s?s.toLowerCase():o,0)),t+=r}this.astral=e.length!=this.chars.length}ret(e,t){return this.score=e,this.matched=t,this}match(e){if(this.pattern.length==0)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:t,folded:n,any:r,precise:s,byWord:o}=this;if(t.length==1){let y=De(e,0),S=wt(y),R=S==e.length?0:-100;if(y!=t[0])if(y==n[0])R+=-200;else return null;return this.ret(R,[0,S])}let a=e.indexOf(this.pattern);if(a==0)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let l=t.length,O=0;if(a<0){for(let y=0,S=Math.min(e.length,200);y<S&&O<l;){let R=De(e,y);(R==t[O]||R==n[O])&&(r[O++]=y),y+=wt(R)}if(O<l)return null}let c=0,d=0,h=!1,f=0,p=-1,m=-1,$=/[a-z]/.test(e),g=!0;for(let y=0,S=Math.min(e.length,200),R=0;y<S&&d<l;){let P=De(e,y);a<0&&(c<l&&P==t[c]&&(s[c++]=y),f<l&&(P==t[f]||P==n[f]?(f==0&&(p=y),m=y+1,f++):f=0));let v,k=P<255?P>=48&&P<=57||P>=97&&P<=122?2:P>=65&&P<=90?1:0:(v=Oa(P))!=v.toLowerCase()?1:v!=v.toUpperCase()?2:0;(!y||k==1&&$||R==0&&k!=0)&&(t[d]==P||n[d]==P&&(h=!0)?o[d++]=y:o.length&&(g=!1)),R=k,y+=wt(P)}return d==l&&o[0]==0&&g?this.result(-100+(h?-200:0),o,e):f==l&&p==0?this.ret(-200-e.length+(m==e.length?0:-100),[0,m]):a>-1?this.ret(-700-e.length,[a,a+this.pattern.length]):f==l?this.ret(-900-e.length,[p,m]):d==l?this.result(-100+(h?-200:0)+-700+(g?0:-1100),o,e):t.length==2?null:this.result((r[0]?-700:0)+-200+-1100,r,e)}result(e,t,n){let r=[],s=0;for(let o of t){let a=o+(this.astral?wt(De(n,o)):1);s&&r[s-1]==o?r[s-1]=a:(r[s++]=o,r[s++]=a)}return this.ret(e-n.length,r)}}class M1{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let t=e.slice(0,this.pattern.length),n=t==this.pattern?0:t.toLowerCase()==this.folded?-200:null;return n==null?null:(this.matched=[0,t.length],this.score=n+(e.length==this.pattern.length?0:-100),this)}}const Te=Z.define({combine(i){return hn(i,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:L1,filterStrict:!1,compareCompletions:(e,t)=>(e.sortText||e.label).localeCompare(t.sortText||t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>tp(e(n),t(n)),optionClass:(e,t)=>n=>tp(e(n),t(n)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})}});function tp(i,e){return i?e?i+" "+e:i:e}function L1(i,e,t,n,r,s){let o=i.textDirection==fe.RTL,a=o,l=!1,O="top",c,d,h=e.left-r.left,f=r.right-e.right,p=n.right-n.left,m=n.bottom-n.top;if(a&&h<Math.min(p,f)?a=!1:!a&&f<Math.min(p,h)&&(a=!0),p<=(a?h:f))c=Math.max(r.top,Math.min(t.top,r.bottom-m))-e.top,d=Math.min(400,a?h:f);else{l=!0,d=Math.min(400,(o?e.right:r.right-e.left)-30);let y=r.bottom-e.bottom;y>=m||y>e.top?c=t.bottom-e.top:(O="bottom",c=e.bottom-t.top)}let $=(e.bottom-e.top)/s.offsetHeight,g=(e.right-e.left)/s.offsetWidth;return{style:`${O}: ${c/$}px; max-width: ${d/g}px`,class:"cm-completionInfo-"+(l?o?"left-narrow":"right-narrow":a?"left":"right")}}const Nl=F.define();function G1(i){let e=i.addToOptions.slice();return i.icons&&e.push({render(t){let n=document.createElement("div");return n.classList.add("cm-completionIcon"),t.type&&n.classList.add(...t.type.split(/\s+/g).map(r=>"cm-completionIcon-"+r)),n.setAttribute("aria-hidden","true"),n},position:20}),e.push({render(t,n,r,s){let o=document.createElement("span");o.className="cm-completionLabel";let a=t.displayLabel||t.label,l=0;for(let O=0;O<s.length;){let c=s[O++],d=s[O++];c>l&&o.appendChild(document.createTextNode(a.slice(l,c)));let h=o.appendChild(document.createElement("span"));h.appendChild(document.createTextNode(a.slice(c,d))),h.className="cm-completionMatchedText",l=d}return l<a.length&&o.appendChild(document.createTextNode(a.slice(l))),o},position:50},{render(t){if(!t.detail)return null;let n=document.createElement("span");return n.className="cm-completionDetail",n.textContent=t.detail,n},position:80}),e.sort((t,n)=>t.position-n.position).map(t=>t.render)}function Fl(i,e,t){if(i<=t)return{from:0,to:i};if(e<0&&(e=0),e<=i>>1){let r=Math.floor(e/t);return{from:r*t,to:(r+1)*t}}let n=Math.floor((i-e)/t);return{from:i-(n+1)*t,to:i-n*t}}class I1{constructor(e,t,n){this.view=e,this.stateField=t,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:l=>this.placeInfo(l),key:this},this.space=null,this.currentClass="";let r=e.state.field(t),{options:s,selected:o}=r.open,a=e.state.facet(Te);this.optionContent=G1(a),this.optionClass=a.optionClass,this.tooltipClass=a.tooltipClass,this.range=Fl(s.length,o,a.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",l=>{let{options:O}=e.state.field(t).open;for(let c=l.target,d;c&&c!=this.dom;c=c.parentNode)if(c.nodeName=="LI"&&(d=/-(\d+)$/.exec(c.id))&&+d[1]<O.length){this.applyCompletion(e,O[+d[1]]),l.preventDefault();return}if(l.target==this.list){let c=this.list.classList.contains("cm-completionListIncompleteTop")&&l.clientY<this.list.firstChild.getBoundingClientRect().top?this.range.from-1:this.list.classList.contains("cm-completionListIncompleteBottom")&&l.clientY>this.list.lastChild.getBoundingClientRect().bottom?this.range.to:null;c!=null&&(e.dispatch({effects:Nl.of(c)}),l.preventDefault())}}),this.dom.addEventListener("focusout",l=>{let O=e.state.field(this.stateField,!1);O&&O.tooltip&&e.state.facet(Te).closeOnBlur&&l.relatedTarget!=e.contentDOM&&e.dispatch({effects:Sr.of(null)})}),this.showOptions(s,r.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var t;let n=e.state.field(this.stateField),r=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),n!=r){let{options:s,selected:o,disabled:a}=n.open;(!r.open||r.open.options!=s)&&(this.range=Fl(s.length,o,e.state.facet(Te).maxRenderedOptions),this.showOptions(s,n.id)),this.updateSel(),a!=((t=r.open)===null||t===void 0?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!a)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let n of this.currentClass.split(" "))n&&this.dom.classList.remove(n);for(let n of t.split(" "))n&&this.dom.classList.add(n);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;(t.selected>-1&&t.selected<this.range.from||t.selected>=this.range.to)&&(this.range=Fl(t.options.length,t.selected,this.view.state.facet(Te).maxRenderedOptions),this.showOptions(t.options,e.id));let n=this.updateSelectedOption(t.selected);if(n){this.destroyInfo();let{completion:r}=t.options[t.selected],{info:s}=r;if(!s)return;let o=typeof s=="string"?document.createTextNode(s):s(r);if(!o)return;"then"in o?o.then(a=>{a&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(a,r)}).catch(a=>Be(this.view.state,a,"completion info")):(this.addInfoPane(o,r),n.setAttribute("aria-describedby",this.info.id))}}addInfoPane(e,t){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",n.id="cm-completionInfo-"+Math.floor(Math.random()*65535).toString(16),e.nodeType!=null)n.appendChild(e),this.infoDestroy=null;else{let{dom:r,destroy:s}=e;n.appendChild(r),this.infoDestroy=s||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let n=this.list.firstChild,r=this.range.from;n;n=n.nextSibling,r++)n.nodeName!="LI"||!n.id?r--:r==e?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),t=n):n.hasAttribute("aria-selected")&&(n.removeAttribute("aria-selected"),n.removeAttribute("aria-describedby"));return t&&B1(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),r=e.getBoundingClientRect(),s=this.space;if(!s){let o=this.dom.ownerDocument.documentElement;s={left:0,top:0,right:o.clientWidth,bottom:o.clientHeight}}return r.top>Math.min(s.bottom,t.bottom)-10||r.bottom<Math.max(s.top,t.top)+10?null:this.view.state.facet(Te).positionInfo(this.view,t,r,n,s,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,t,n){const r=document.createElement("ul");r.id=t,r.setAttribute("role","listbox"),r.setAttribute("aria-expanded","true"),r.setAttribute("aria-label",this.view.state.phrase("Completions")),r.addEventListener("mousedown",o=>{o.target==r&&o.preventDefault()});let s=null;for(let o=n.from;o<n.to;o++){let{completion:a,match:l}=e[o],{section:O}=a;if(O){let h=typeof O=="string"?O:O.name;if(h!=s&&(o>n.from||n.from==0))if(s=h,typeof O!="string"&&O.header)r.appendChild(O.header(O));else{let f=r.appendChild(document.createElement("completion-section"));f.textContent=h}}const c=r.appendChild(document.createElement("li"));c.id=t+"-"+o,c.setAttribute("role","option");let d=this.optionClass(a);d&&(c.className=d);for(let h of this.optionContent){let f=h(a,this.view.state,this.view,l);f&&c.appendChild(f)}}return n.from&&r.classList.add("cm-completionListIncompleteTop"),n.to<e.length&&r.classList.add("cm-completionListIncompleteBottom"),r}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function D1(i,e){return t=>new I1(t,i,e)}function B1(i,e){let t=i.getBoundingClientRect(),n=e.getBoundingClientRect(),r=t.height/i.offsetHeight;n.top<t.top?i.scrollTop-=(t.top-n.top)/r:n.bottom>t.bottom&&(i.scrollTop+=(n.bottom-t.bottom)/r)}function ip(i){return(i.boost||0)*100+(i.apply?10:0)+(i.info?5:0)+(i.type?1:0)}function N1(i,e){let t=[],n=null,r=null,s=c=>{t.push(c);let{section:d}=c.completion;if(d){n||(n=[]);let h=typeof d=="string"?d:d.name;n.some(f=>f.name==h)||n.push(typeof d=="string"?{name:h}:d)}},o=e.facet(Te);for(let c of i)if(c.hasResult()){let d=c.result.getMatch;if(c.result.filter===!1)for(let h of c.result.options)s(new Ku(h,c.source,d?d(h):[],1e9-t.length));else{let h=e.sliceDoc(c.from,c.to),f,p=o.filterStrict?new M1(h):new j1(h);for(let m of c.result.options)if(f=p.match(m.label)){let $=m.displayLabel?d?d(m,f.matched):[]:f.matched,g=f.score+(m.boost||0);if(s(new Ku(m,c.source,$,g)),typeof m.section=="object"&&m.section.rank==="dynamic"){let{name:y}=m.section;r||(r=Object.create(null)),r[y]=Math.max(g,r[y]||-1e9)}}}}if(n){let c=Object.create(null),d=0,h=(f,p)=>(f.rank==="dynamic"&&p.rank==="dynamic"?r[p.name]-r[f.name]:0)||(typeof f.rank=="number"?f.rank:1e9)-(typeof p.rank=="number"?p.rank:1e9)||(f.name<p.name?-1:1);for(let f of n.sort(h))d-=1e5,c[f.name]=d;for(let f of t){let{section:p}=f.completion;p&&(f.score+=c[typeof p=="string"?p:p.name])}}let a=[],l=null,O=o.compareCompletions;for(let c of t.sort((d,h)=>h.score-d.score||O(d.completion,h.completion))){let d=c.completion;!l||l.label!=d.label||l.detail!=d.detail||l.type!=null&&d.type!=null&&l.type!=d.type||l.apply!=d.apply||l.boost!=d.boost?a.push(c):ip(c.completion)>ip(l)&&(a[a.length-1]=c),l=c.completion}return a}class Xn{constructor(e,t,n,r,s,o){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=r,this.selected=s,this.disabled=o}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new Xn(this.options,np(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,n,r,s,o){if(r&&!o&&e.some(O=>O.isPending))return r.setDisabled();let a=N1(e,t);if(!a.length)return r&&e.some(O=>O.isPending)?r.setDisabled():null;let l=t.facet(Te).selectOnOpen?0:-1;if(r&&r.selected!=l&&r.selected!=-1){let O=r.options[r.selected].completion;for(let c=0;c<a.length;c++)if(a[c].completion==O){l=c;break}}return new Xn(a,np(n,l),{pos:e.reduce((O,c)=>c.hasResult()?Math.min(O,c.from):O,1e8),create:tP,above:s.aboveCursor},r?r.timestamp:Date.now(),l,!1)}map(e){return new Xn(this.options,this.attrs,{...this.tooltip,pos:e.mapPos(this.tooltip.pos)},this.timestamp,this.selected,this.disabled)}setDisabled(){return new Xn(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}}class co{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new co(J1,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:t}=e,n=t.facet(Te),s=(n.override||t.languageDataAt("autocomplete",Hi(t)).map(U1)).map(l=>(this.active.find(c=>c.source==l)||new at(l,this.active.some(c=>c.state!=0)?1:0)).update(e,n));s.length==this.active.length&&s.every((l,O)=>l==this.active[O])&&(s=this.active);let o=this.open,a=e.effects.some(l=>l.is(Hl));o&&e.docChanged&&(o=o.map(e.changes)),e.selection||s.some(l=>l.hasResult()&&e.changes.touchesRange(l.from,l.to))||!F1(s,this.active)||a?o=Xn.build(s,t,this.id,o,n,a):o&&o.disabled&&!s.some(l=>l.isPending)&&(o=null),!o&&s.every(l=>!l.isPending)&&s.some(l=>l.hasResult())&&(s=s.map(l=>l.hasResult()?new at(l.source,0):l));for(let l of e.effects)l.is(Nl)&&(o=o&&o.setSelected(l.value,this.id));return s==this.active&&o==this.open?this:new co(s,this.id,o)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?H1:K1}}function F1(i,e){if(i==e)return!0;for(let t=0,n=0;;){for(;t<i.length&&!i[t].hasResult();)t++;for(;n<e.length&&!e[n].hasResult();)n++;let r=t==i.length,s=n==e.length;if(r||s)return r==s;if(i[t++].result!=e[n++].result)return!1}}const H1={"aria-autocomplete":"list"},K1={};function np(i,e){let t={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":i};return e>-1&&(t["aria-activedescendant"]=i+"-"+e),t}const J1=[];function rp(i,e){if(i.isUserEvent("input.complete")){let n=i.annotation(Bl);if(n&&e.activateOnCompletion(n))return 12}let t=i.isUserEvent("input.type");return t&&e.activateOnTyping?5:t?1:i.isUserEvent("delete.backward")?2:i.selection?8:i.docChanged?16:0}class at{constructor(e,t,n=!1){this.source=e,this.state=t,this.explicit=n}hasResult(){return!1}get isPending(){return this.state==1}update(e,t){let n=rp(e,t),r=this;(n&8||n&16&&this.touches(e))&&(r=new at(r.source,0)),n&4&&r.state==0&&(r=new at(this.source,1)),r=r.updateFor(e,n);for(let s of e.effects)if(s.is(Oo))r=new at(r.source,1,s.value);else if(s.is(Sr))r=new at(r.source,0);else if(s.is(Hl))for(let o of s.value)o.source==r.source&&(r=o);return r}updateFor(e,t){return this.map(e.changes)}map(e){return this}touches(e){return e.changes.touchesRange(Hi(e.state))}}class _n extends at{constructor(e,t,n,r,s,o){super(e,3,t),this.limit=n,this.result=r,this.from=s,this.to=o}hasResult(){return!0}updateFor(e,t){var n;if(!(t&3))return this.map(e.changes);let r=this.result;r.map&&!e.changes.empty&&(r=r.map(r,e.changes));let s=e.changes.mapPos(this.from),o=e.changes.mapPos(this.to,1),a=Hi(e.state);if(a>o||!r||t&2&&(Hi(e.startState)==this.from||a<this.limit))return new at(this.source,t&4?1:0);let l=e.changes.mapPos(this.limit);return eP(r.validFor,e.state,s,o)?new _n(this.source,this.explicit,l,r,s,o):r.update&&(r=r.update(r,s,o,new Il(e.state,a,!1)))?new _n(this.source,this.explicit,l,r,r.from,(n=r.to)!==null&&n!==void 0?n:Hi(e.state)):new at(this.source,1,this.explicit)}map(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new _n(this.source,this.explicit,e.mapPos(this.limit),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new at(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}}function eP(i,e,t,n){if(!i)return!1;let r=e.sliceDoc(t,n);return typeof i=="function"?i(r,t,n,e):Ju(i,!0).test(r)}const Hl=F.define({map(i,e){return i.map(t=>t.map(e))}}),Ie=Ce.define({create(){return co.start()},update(i,e){return i.update(e)},provide:i=>[tf.from(i,e=>e.tooltip),X.contentAttributes.from(i,e=>e.attrs)]});function Kl(i,e){const t=e.completion.apply||e.completion.label;let n=i.state.field(Ie).active.find(r=>r.source==e.source);return n instanceof _n?(typeof t=="string"?i.dispatch({...E1(i.state,t,n.from,n.to),annotations:Bl.of(e.completion)}):t(i,e.completion,n.from,n.to),!0):!1}const tP=D1(Ie,Kl);function ho(i,e="option"){return t=>{let n=t.state.field(Ie,!1);if(!n||!n.open||n.open.disabled||Date.now()-n.open.timestamp<t.state.facet(Te).interactionDelay)return!1;let r=1,s;e=="page"&&(s=nf(t,n.open.tooltip))&&(r=Math.max(2,Math.floor(s.dom.offsetHeight/s.dom.querySelector("li").offsetHeight)-1));let{length:o}=n.open.options,a=n.open.selected>-1?n.open.selected+r*(i?1:-1):i?0:o-1;return a<0?a=e=="page"?0:o-1:a>=o&&(a=e=="page"?o-1:0),t.dispatch({effects:Nl.of(a)}),!0}}const iP=i=>{let e=i.state.field(Ie,!1);return i.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestamp<i.state.facet(Te).interactionDelay?!1:Kl(i,e.open.options[e.open.selected])},Jl=i=>i.state.field(Ie,!1)?(i.dispatch({effects:Oo.of(!0)}),!0):!1,nP=i=>{let e=i.state.field(Ie,!1);return!e||!e.active.some(t=>t.state!=0)?!1:(i.dispatch({effects:Sr.of(null)}),!0)};class rP{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const sP=50,oP=1e3,aP=xe.fromClass(class{constructor(i){this.view=i,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let e of i.state.field(Ie).active)e.isPending&&this.startQuery(e)}update(i){let e=i.state.field(Ie),t=i.state.facet(Te);if(!i.selectionSet&&!i.docChanged&&i.startState.field(Ie)==e)return;let n=i.transactions.some(s=>{let o=rp(s,t);return o&8||(s.selection||s.docChanged)&&!(o&3)});for(let s=0;s<this.running.length;s++){let o=this.running[s];if(n||o.context.abortOnDocChange&&i.docChanged||o.updates.length+i.transactions.length>sP&&Date.now()-o.time>oP){for(let a of o.context.abortListeners)try{a()}catch(l){Be(this.view.state,l)}o.context.abortListeners=null,this.running.splice(s--,1)}else o.updates.push(...i.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),i.transactions.some(s=>s.effects.some(o=>o.is(Oo)))&&(this.pendingStart=!0);let r=this.pendingStart?50:t.activateOnTypingDelay;if(this.debounceUpdate=e.active.some(s=>s.isPending&&!this.running.some(o=>o.active.source==s.source))?setTimeout(()=>this.startUpdate(),r):-1,this.composing!=0)for(let s of i.transactions)s.isUserEvent("input.type")?this.composing=2:this.composing==2&&s.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:i}=this.view,e=i.field(Ie);for(let t of e.active)t.isPending&&!this.running.some(n=>n.active.source==t.source)&&this.startQuery(t);this.running.length&&e.open&&e.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Te).updateSyncTime))}startQuery(i){let{state:e}=this.view,t=Hi(e),n=new Il(e,t,i.explicit,this.view),r=new rP(i,n);this.running.push(r),Promise.resolve(i.source(n)).then(s=>{r.context.aborted||(r.done=s||null,this.scheduleAccept())},s=>{this.view.dispatch({effects:Sr.of(null)}),Be(this.view.state,s)})}scheduleAccept(){this.running.every(i=>i.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Te).updateSyncTime))}accept(){var i;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],t=this.view.state.facet(Te),n=this.view.state.field(Ie);for(let r=0;r<this.running.length;r++){let s=this.running[r];if(s.done===void 0)continue;if(this.running.splice(r--,1),s.done){let a=Hi(s.updates.length?s.updates[0].startState:this.view.state),l=Math.min(a,s.done.from+(s.active.explicit?0:1)),O=new _n(s.active.source,s.active.explicit,l,s.done,s.done.from,(i=s.done.to)!==null&&i!==void 0?i:a);for(let c of s.updates)O=O.update(c,t);if(O.hasResult()){e.push(O);continue}}let o=n.active.find(a=>a.source==s.active.source);if(o&&o.isPending)if(s.done==null){let a=new at(s.active.source,0);for(let l of s.updates)a=a.update(l,t);a.isPending||e.push(a)}else this.startQuery(o)}(e.length||n.open&&n.open.disabled)&&this.view.dispatch({effects:Hl.of(e)})}},{eventHandlers:{blur(i){let e=this.view.state.field(Ie,!1);if(e&&e.tooltip&&this.view.state.facet(Te).closeOnBlur){let t=e.open&&nf(this.view,e.open.tooltip);(!t||!t.dom.contains(i.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:Sr.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:Oo.of(!1)}),20),this.composing=0}}}),lP=typeof navigator=="object"&&/Win/.test(navigator.platform),OP=Dt.highest(X.domEventHandlers({keydown(i,e){let t=e.state.field(Ie,!1);if(!t||!t.open||t.open.disabled||t.open.selected<0||i.key.length>1||i.ctrlKey&&!(lP&&i.altKey)||i.metaKey)return!1;let n=t.open.options[t.open.selected],r=t.active.find(o=>o.source==n.source),s=n.completion.commitCharacters||r.result.commitCharacters;return s&&s.indexOf(i.key)>-1&&Kl(e,n),!1}})),sp=X.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class cP{constructor(e,t,n,r){this.field=e,this.line=t,this.from=n,this.to=r}}class eO{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(e){let t=e.mapPos(this.from,-1,_e.TrackDel),n=e.mapPos(this.to,1,_e.TrackDel);return t==null||n==null?null:new eO(this.field,t,n)}}class tO{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let n=[],r=[t],s=e.doc.lineAt(t),o=/^\s*/.exec(s.text)[0];for(let l of this.lines){if(n.length){let O=o,c=/^\t*/.exec(l)[0].length;for(let d=0;d<c;d++)O+=e.facet(xn);r.push(t+O.length-c),l=O+l.slice(c)}n.push(l),t+=l.length+1}let a=this.fieldPositions.map(l=>new eO(l.field,r[l.line]+l.from,r[l.line]+l.to));return{text:n,ranges:a}}static parse(e){let t=[],n=[],r=[],s;for(let o of e.split(/\r\n?|\n/)){for(;s=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/.exec(o);){let a=s[1]?+s[1]:null,l=s[2]||s[3]||"",O=-1,c=l.replace(/\\[{}]/g,d=>d[1]);for(let d=0;d<t.length;d++)(a!=null?t[d].seq==a:c&&t[d].name==c)&&(O=d);if(O<0){let d=0;for(;d<t.length&&(a==null||t[d].seq!=null&&t[d].seq<a);)d++;t.splice(d,0,{seq:a,name:c}),O=d;for(let h of r)h.field>=O&&h.field++}for(let d of r)if(d.line==n.length&&d.from>s.index){let h=s[2]?3+(s[1]||"").length:2;d.from-=h,d.to-=h}r.push(new cP(O,n.length,s.index,s.index+c.length)),o=o.slice(0,s.index)+l+o.slice(s.index+s[0].length)}o=o.replace(/\\([{}])/g,(a,l,O)=>{for(let c of r)c.line==n.length&&c.from>O&&(c.from--,c.to--);return l}),n.push(o)}return new tO(n,r)}}let dP=H.widget({widget:new class extends bi{toDOM(){let i=document.createElement("span");return i.className="cm-snippetFieldPosition",i}ignoreEvent(){return!1}}}),hP=H.mark({class:"cm-snippetField"});class Rn{constructor(e,t){this.ranges=e,this.active=t,this.deco=H.set(e.map(n=>(n.from==n.to?dP:hP).range(n.from,n.to)),!0)}map(e){let t=[];for(let n of this.ranges){let r=n.map(e);if(!r)return null;t.push(r)}return new Rn(t,this.active)}selectionInsideField(e){return e.ranges.every(t=>this.ranges.some(n=>n.field==this.active&&n.from<=t.from&&n.to>=t.to))}}const wr=F.define({map(i,e){return i&&i.map(e)}}),fP=F.define(),Pr=Ce.define({create(){return null},update(i,e){for(let t of e.effects){if(t.is(wr))return t.value;if(t.is(fP)&&i)return new Rn(i.ranges,t.value)}return i&&e.docChanged&&(i=i.map(e.changes)),i&&e.selection&&!i.selectionInsideField(e.selection)&&(i=null),i},provide:i=>X.decorations.from(i,e=>e?e.deco:H.none)});function iO(i,e){return b.create(i.filter(t=>t.field==e).map(t=>b.range(t.from,t.to)))}function uP(i){let e=tO.parse(i);return(t,n,r,s)=>{let{text:o,ranges:a}=e.instantiate(t.state,r),{main:l}=t.state.selection,O={changes:{from:r,to:s==l.from?l.to:s,insert:ie.of(o)},scrollIntoView:!0,annotations:n?[Bl.of(n),$e.userEvent.of("input.complete")]:void 0};if(a.length&&(O.selection=iO(a,0)),a.some(c=>c.field>0)){let c=new Rn(a,0),d=O.effects=[wr.of(c)];t.state.field(Pr,!1)===void 0&&d.push(F.appendConfig.of([Pr,mP,$P,sp]))}t.dispatch(t.state.update(O))}}function op(i){return({state:e,dispatch:t})=>{let n=e.field(Pr,!1);if(!n||i<0&&n.active==0)return!1;let r=n.active+i,s=i>0&&!n.ranges.some(o=>o.field==r+i);return t(e.update({selection:iO(n.ranges,r),effects:wr.of(s?null:new Rn(n.ranges,r)),scrollIntoView:!0})),!0}}const pP=[{key:"Tab",run:op(1),shift:op(-1)},{key:"Escape",run:({state:i,dispatch:e})=>i.field(Pr,!1)?(e(i.update({effects:wr.of(null)})),!0):!1}],ap=Z.define({combine(i){return i.length?i[0]:pP}}),mP=Dt.highest(Gi.compute([ap],i=>i.facet(ap)));function ue(i,e){return{...e,apply:uP(i)}}const $P=X.domEventHandlers({mousedown(i,e){let t=e.state.field(Pr,!1),n;if(!t||(n=e.posAtCoords({x:i.clientX,y:i.clientY}))==null)return!1;let r=t.ranges.find(s=>s.from<=n&&s.to>=n);return!r||r.field==t.active?!1:(e.dispatch({selection:iO(t.ranges,r.field),effects:wr.of(t.ranges.some(s=>s.field>r.field)?new Rn(t.ranges,r.field):null),scrollIntoView:!0}),!0)}}),xr={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Ki=F.define({map(i,e){let t=e.mapPos(i,-1,_e.TrackAfter);return t??void 0}}),nO=new class extends $i{};nO.startSide=1,nO.endSide=-1;const lp=Ce.define({create(){return ee.empty},update(i,e){if(i=i.map(e.changes),e.selection){let t=e.state.doc.lineAt(e.selection.main.head);i=i.update({filter:n=>n>=t.from&&n<=t.to})}for(let t of e.effects)t.is(Ki)&&(i=i.update({add:[nO.range(t.value,t.value+1)]}));return i}});function gP(){return[yP,lp]}const rO="()[]{}<>«»»«[]{}";function Op(i){for(let e=0;e<rO.length;e+=2)if(rO.charCodeAt(e)==i)return rO.charAt(e+1);return Oa(i<128?i:i+1)}function cp(i,e){return i.languageDataAt("closeBrackets",e)[0]||xr}const QP=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),yP=X.inputHandler.of((i,e,t,n)=>{if((QP?i.composing:i.compositionStarted)||i.state.readOnly)return!1;let r=i.state.selection.main;if(n.length>2||n.length==2&&wt(De(n,0))==1||e!=r.from||t!=r.to)return!1;let s=SP(i.state,n);return s?(i.dispatch(s),!0):!1}),bP=[{key:"Backspace",run:({state:i,dispatch:e})=>{if(i.readOnly)return!1;let n=cp(i,i.selection.main.head).brackets||xr.brackets,r=null,s=i.changeByRange(o=>{if(o.empty){let a=wP(i.doc,o.head);for(let l of n)if(l==a&&fo(i.doc,o.head)==Op(De(l,0)))return{changes:{from:o.head-l.length,to:o.head+l.length},range:b.cursor(o.head-l.length)}}return{range:r=o}});return r||e(i.update(s,{scrollIntoView:!0,userEvent:"delete.backward"})),!r}}];function SP(i,e){let t=cp(i,i.selection.main.head),n=t.brackets||xr.brackets;for(let r of n){let s=Op(De(r,0));if(e==r)return s==r?TP(i,r,n.indexOf(r+r+r)>-1,t):PP(i,r,s,t.before||xr.before);if(e==s&&dp(i,i.selection.main.from))return xP(i,r,s)}return null}function dp(i,e){let t=!1;return i.field(lp).between(0,i.doc.length,n=>{n==e&&(t=!0)}),t}function fo(i,e){let t=i.sliceString(e,e+2);return t.slice(0,wt(De(t,0)))}function wP(i,e){let t=i.sliceString(e-2,e);return wt(De(t,0))==t.length?t:t.slice(1)}function PP(i,e,t,n){let r=null,s=i.changeByRange(o=>{if(!o.empty)return{changes:[{insert:e,from:o.from},{insert:t,from:o.to}],effects:Ki.of(o.to+e.length),range:b.range(o.anchor+e.length,o.head+e.length)};let a=fo(i.doc,o.head);return!a||/\s/.test(a)||n.indexOf(a)>-1?{changes:{insert:e+t,from:o.head},effects:Ki.of(o.head+e.length),range:b.cursor(o.head+e.length)}:{range:r=o}});return r?null:i.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function xP(i,e,t){let n=null,r=i.changeByRange(s=>s.empty&&fo(i.doc,s.head)==t?{changes:{from:s.head,to:s.head+t.length,insert:t},range:b.cursor(s.head+t.length)}:n={range:s});return n?null:i.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function TP(i,e,t,n){let r=n.stringPrefixes||xr.stringPrefixes,s=null,o=i.changeByRange(a=>{if(!a.empty)return{changes:[{insert:e,from:a.from},{insert:e,from:a.to}],effects:Ki.of(a.to+e.length),range:b.range(a.anchor+e.length,a.head+e.length)};let l=a.head,O=fo(i.doc,l),c;if(O==e){if(hp(i,l))return{changes:{insert:e+e,from:l},effects:Ki.of(l+e.length),range:b.cursor(l+e.length)};if(dp(i,l)){let h=t&&i.sliceDoc(l,l+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:l,to:l+h.length,insert:h},range:b.cursor(l+h.length)}}}else{if(t&&i.sliceDoc(l-2*e.length,l)==e+e&&(c=fp(i,l-2*e.length,r))>-1&&hp(i,c))return{changes:{insert:e+e+e+e,from:l},effects:Ki.of(l+e.length),range:b.cursor(l+e.length)};if(i.charCategorizer(l)(O)!=ge.Word&&fp(i,l,r)>-1&&!vP(i,l,e,r))return{changes:{insert:e+e,from:l},effects:Ki.of(l+e.length),range:b.cursor(l+e.length)}}return{range:s=a}});return s?null:i.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function hp(i,e){let t=Oe(i).resolveInner(e+1);return t.parent&&t.from==e}function vP(i,e,t,n){let r=Oe(i).resolveInner(e,-1),s=n.reduce((o,a)=>Math.max(o,a.length),0);for(let o=0;o<5;o++){let a=i.sliceDoc(r.from,Math.min(r.to,r.from+t.length+s)),l=a.indexOf(t);if(!l||l>-1&&n.indexOf(a.slice(0,l))>-1){let c=r.firstChild;for(;c&&c.from==r.from&&c.to-c.from>t.length+l;){if(i.sliceDoc(c.to-t.length,c.to)==t)return!1;c=c.firstChild}return!0}let O=r.to==e&&r.parent;if(!O)break;r=O}return!1}function fp(i,e,t){let n=i.charCategorizer(e);if(n(i.sliceDoc(e-1,e))!=ge.Word)return e;for(let r of t){let s=e-r.length;if(i.sliceDoc(s,e)==r&&n(i.sliceDoc(s-1,s))!=ge.Word)return s}return-1}function kP(i={}){return[OP,Ie,Te.of(i),aP,XP,sp]}const up=[{key:"Ctrl-Space",run:Jl},{mac:"Alt-`",run:Jl},{mac:"Alt-i",run:Jl},{key:"Escape",run:nP},{key:"ArrowDown",run:ho(!0)},{key:"ArrowUp",run:ho(!1)},{key:"PageDown",run:ho(!0,"page")},{key:"PageUp",run:ho(!1,"page")},{key:"Enter",run:iP}],XP=Dt.highest(Gi.computeN([Te],i=>i.facet(Te).defaultKeymap?[up]:[]));class uo{constructor(e,t,n,r,s,o,a,l,O,c=0,d){this.p=e,this.stack=t,this.state=n,this.reducePos=r,this.pos=s,this.score=o,this.buffer=a,this.bufferBase=l,this.curContext=O,this.lookAhead=c,this.parent=d}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,n=0){let r=e.parser.context;return new uo(e,[],t,n,n,0,[],0,r?new pp(r,r.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let n=e>>19,r=e&65535,{parser:s}=this.p,o=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),a=s.dynamicPrecedence(r);if(a&&(this.score+=a),n==0){r<s.minRepeatTerm&&this.reducePos<this.pos&&(this.reducePos=this.pos),this.pushState(s.getGoto(this.state,r,!0),this.reducePos),r<s.minRepeatTerm&&this.storeNode(r,this.reducePos,this.reducePos,o?8:4,!0),this.reduceContext(r,this.reducePos);return}let l=this.stack.length-(n-1)*3-(e&262144?6:0),O=l?this.stack[l-2]:this.p.ranges[0].from;r<s.minRepeatTerm&&O==this.reducePos&&this.reducePos<this.pos&&(this.reducePos=this.pos);let c=this.reducePos-O;c>=2e3&&!(!((t=this.p.parser.nodeSet.types[r])===null||t===void 0)&&t.isAnonymous)&&(O==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSize<c&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=O,this.p.lastBigReductionSize=c));let d=l?this.stack[l-1]:0,h=this.bufferBase+this.buffer.length-d;if(r<s.minRepeatTerm||e&131072){let f=s.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(r,O,f,h+4,!0)}if(e&262144)this.state=this.stack[l];else{let f=this.stack[l-3];this.state=s.getGoto(f,r,!0)}for(;this.stack.length>l;)this.stack.pop();this.reduceContext(r,O)}storeNode(e,t,n,r=4,s=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let o=this,a=this.buffer.length;if(a==0&&o.parent&&(a=o.bufferBase-o.parent.bufferBase,o=o.parent),a>0&&o.buffer[a-4]==0&&o.buffer[a-1]>-1){if(t==n)return;if(o.buffer[a-2]>=t){o.buffer[a-2]=n;return}}}if(!s||this.pos==n)this.buffer.push(e,t,n,r);else{let o=this.buffer.length;if(o>0&&(this.buffer[o-4]!=0||this.buffer[o-1]<0)){let a=!1;for(let l=o;l>0&&this.buffer[l-2]>n;l-=4)if(this.buffer[l-1]>=0){a=!0;break}if(a)for(;o>0&&this.buffer[o-2]>n;)this.buffer[o]=this.buffer[o-4],this.buffer[o+1]=this.buffer[o-3],this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],o-=4,r>4&&(r-=4)}this.buffer[o]=e,this.buffer[o+1]=t,this.buffer[o+2]=n,this.buffer[o+3]=r}}shift(e,t,n,r){if(e&131072)this.pushState(e&65535,this.pos);else if((e&262144)==0){let s=e,{parser:o}=this.p;this.pos=r;let a=o.stateFlag(s,1);!a&&(r>n||t<=o.maxNode)&&(this.reducePos=r),this.pushState(s,a?n:Math.min(n,this.reducePos)),this.shiftContext(t,n),t<=o.maxNode&&this.buffer.push(t,n,r,4)}else this.pos=r,this.shiftContext(t,n),t<=this.p.parser.maxNode&&this.buffer.push(t,n,r,4)}apply(e,t,n,r){e&65536?this.reduce(e):this.shift(e,t,n,r)}useNode(e,t){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let r=this.pos;this.reducePos=this.pos=r+e.length,this.pushState(t,r),this.buffer.push(n,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let n=e.buffer.slice(t),r=e.bufferBase+t;for(;e&&r==e.bufferBase;)e=e.parent;return new uo(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,r,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new _P(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(n==0)return!1;if((n&65536)==0)return!0;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let r=[];for(let s=0,o;s<t.length;s+=2)(o=t[s+1])!=this.state&&this.p.parser.hasAction(o,e)&&r.push(t[s],o);if(this.stack.length<120)for(let s=0;r.length<8&&s<t.length;s+=2){let o=t[s+1];r.some((a,l)=>l&1&&a==o)||r.push(t[s],o)}t=r}let n=[];for(let r=0;r<t.length&&n.length<4;r+=2){let s=t[r+1];if(s==this.state)continue;let o=this.split();o.pushState(s,this.pos),o.storeNode(0,o.pos,o.pos,4,!0),o.shiftContext(t[r],this.pos),o.reducePos=this.pos,o.score-=200,n.push(o)}return n}forceReduce(){let{parser:e}=this.p,t=e.stateSlot(this.state,5);if((t&65536)==0)return!1;if(!e.validAction(this.state,t)){let n=t>>19,r=t&65535,s=this.stack.length-n*3;if(s<0||e.getGoto(this.stack[s],r,!1)<0){let o=this.findForcedReduction();if(o==null)return!1;t=o}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],n=(r,s)=>{if(!t.includes(r))return t.push(r),e.allActions(r,o=>{if(!(o&393216))if(o&65536){let a=(o>>19)-s;if(a>1){let l=o&65535,O=this.stack.length-a*3;if(O>=0&&e.getGoto(this.stack[O],l,!1)>=0)return a<<19|65536|l}}else{let a=n(o,s+1);if(a!=null)return a}})};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new pp(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){return e<=this.lookAhead?!1:(this.emitLookAhead(),this.lookAhead=e,!0)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class pp{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class _P{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e&65535,n=e>>19;n==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(n-1)*3;let r=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=r}}class po{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new po(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new po(this.stack,this.pos,this.index)}}function Tr(i,e=Uint16Array){if(typeof i!="string")return i;let t=null;for(let n=0,r=0;n<i.length;){let s=0;for(;;){let o=i.charCodeAt(n++),a=!1;if(o==126){s=65535;break}o>=92&&o--,o>=34&&o--;let l=o-32;if(l>=46&&(l-=46,a=!0),s+=l,a)break;s*=46}t?t[r++]=s:t=new e(s)}return t}class mo{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const mp=new mo;class RP{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=mp,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,r=this.rangeIndex,s=this.pos+e;for(;s<n.from;){if(!r)return null;let o=this.ranges[--r];s-=n.from-o.to,n=o}for(;t<0?s>n.to:s>=n.to;){if(r==this.ranges.length-1)return null;let o=this.ranges[++r];s+=o.from-n.to,n=o}return s}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,n,r;if(t>=0&&t<this.chunk.length)n=this.pos+e,r=this.chunk.charCodeAt(t);else{let s=this.resolveOffset(e,1);if(s==null)return-1;if(n=s,n>=this.chunk2Pos&&n<this.chunk2Pos+this.chunk2.length)r=this.chunk2.charCodeAt(n-this.chunk2Pos);else{let o=this.rangeIndex,a=this.range;for(;a.to<=n;)a=this.ranges[++o];this.chunk2=this.input.chunk(this.chunk2Pos=n),n+this.chunk2.length>a.to&&(this.chunk2=this.chunk2.slice(0,a.to-n)),r=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),r}acceptToken(e,t=0){let n=t?this.resolveOffset(t,-1):this.pos;if(n==null||n<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=n}acceptTokenTo(e,t){this.token.value=e,this.token.end=t}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=mp,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n="";for(let r of this.ranges){if(r.from>=t)break;r.to>e&&(n+=this.input.read(Math.max(r.from,e),Math.min(r.to,t)))}return n}}class Zn{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:n}=t.p;$p(this.data,e,t,this.id,n.data,n.tokenPrecTable)}}Zn.prototype.contextual=Zn.prototype.fallback=Zn.prototype.extend=!1;class $o{constructor(e,t,n){this.precTable=t,this.elseToken=n,this.data=typeof e=="string"?Tr(e):e}token(e,t){let n=e.pos,r=0;for(;;){let s=e.next<0,o=e.resolveOffset(1,1);if($p(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(s||r++,o==null)break;e.reset(o,e.token)}r&&(e.reset(n,e.token),e.acceptToken(this.elseToken,r))}}$o.prototype.contextual=Zn.prototype.fallback=Zn.prototype.extend=!1;class he{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function $p(i,e,t,n,r,s){let o=0,a=1<<n,{dialect:l}=t.p.parser;e:for(;(a&i[o])!=0;){let O=i[o+1];for(let f=o+3;f<O;f+=2)if((i[f+1]&a)>0){let p=i[f];if(l.allows(p)&&(e.token.value==-1||e.token.value==p||ZP(p,e.token.value,r,s))){e.acceptToken(p);break}}let c=e.next,d=0,h=i[o+2];if(e.next<0&&h>d&&i[O+h*3-3]==65535){o=i[O+h*3-1];continue e}for(;d<h;){let f=d+h>>1,p=O+f+(f<<1),m=i[p],$=i[p+1]||65536;if(c<m)h=f;else if(c>=$)d=f+1;else{o=i[p+2],e.advance();continue e}}break}}function gp(i,e,t){for(let n=e,r;(r=i[n])!=65535;n++)if(r==t)return n-e;return-1}function ZP(i,e,t,n){let r=gp(t,n,e);return r<0||gp(t,n,i)<r}const He=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG);let sO=null;function Qp(i,e,t){let n=i.cursor(oe.IncludeAnonymous);for(n.moveTo(e);;)if(!(t<0?n.childBefore(e):n.childAfter(e)))for(;;){if((t<0?n.to<e:n.from>e)&&!n.type.isError)return t<0?Math.max(0,Math.min(n.to-1,e-25)):Math.min(i.length,Math.max(n.from+1,e+25));if(t<0?n.prevSibling():n.nextSibling())break;if(!n.parent())return t<0?0:i.length}}let zP=class{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?Qp(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?Qp(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let t=this.trees.length-1;if(t<0)return this.nextFragment(),null;let n=this.trees[t],r=this.index[t];if(r==n.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let s=n.children[r],o=this.start[t]+n.positions[r];if(o>e)return this.nextStart=o,null;if(s instanceof K){if(o==e){if(o<this.safeFrom)return null;let a=o+s.length;if(a<=this.safeTo){let l=s.prop(E.lookAhead);if(!l||a+l<this.fragment.to)return s}}this.index[t]++,o+s.length>=Math.max(this.safeFrom,e)&&(this.trees.push(s),this.start.push(o),this.index.push(0))}else this.index[t]++,this.nextStart=o+s.length}}};class qP{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(n=>new mo)}getActions(e){let t=0,n=null,{parser:r}=e.p,{tokenizers:s}=r,o=r.stateSlot(e.state,3),a=e.curContext?e.curContext.hash:0,l=0;for(let O=0;O<s.length;O++){if((1<<O&o)==0)continue;let c=s[O],d=this.tokens[O];if(!(n&&!c.fallback)&&((c.contextual||d.start!=e.pos||d.mask!=o||d.context!=a)&&(this.updateCachedToken(d,c,e),d.mask=o,d.context=a),d.lookAhead>d.end+25&&(l=Math.max(d.lookAhead,l)),d.value!=0)){let h=t;if(d.extended>-1&&(t=this.addActions(e,d.extended,d.end,t)),t=this.addActions(e,d.value,d.end,t),!c.extend&&(n=d,t>h))break}}for(;this.actions.length>t;)this.actions.pop();return l&&e.setLookAhead(l),!n&&e.pos==this.stream.end&&(n=new mo,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new mo,{pos:n,p:r}=e;return t.start=n,t.end=Math.min(n+1,r.stream.end),t.value=n==r.stream.end?r.parser.eofTerm:0,t}updateCachedToken(e,t,n){let r=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(r,e),n),e.value>-1){let{parser:s}=n.p;for(let o=0;o<s.specialized.length;o++)if(s.specialized[o]==e.value){let a=s.specializers[o](this.stream.read(e.start,e.end),n);if(a>=0&&n.p.parser.dialect.allows(a>>1)){(a&1)==0?e.value=a>>1:e.extended=a>>1;break}}}else e.value=0,e.end=this.stream.clipPos(r+1)}putAction(e,t,n,r){for(let s=0;s<r;s+=3)if(this.actions[s]==e)return r;return this.actions[r++]=e,this.actions[r++]=t,this.actions[r++]=n,r}addActions(e,t,n,r){let{state:s}=e,{parser:o}=e.p,{data:a}=o;for(let l=0;l<2;l++)for(let O=o.stateSlot(s,l?2:1);;O+=3){if(a[O]==65535)if(a[O+1]==1)O=ii(a,O+2);else{r==0&&a[O+1]==2&&(r=this.putAction(ii(a,O+2),t,n,r));break}a[O]==t&&(r=this.putAction(ii(a,O+1),t,n,r))}return r}}class VP{constructor(e,t,n,r){this.parser=e,this.input=t,this.ranges=r,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new RP(t,r),this.tokens=new qP(e,this.stream),this.topTerm=e.top[1];let{from:s}=r[0];this.stacks=[uo.start(this,e.top[0],s)],this.fragments=n.length&&this.stream.end-s>e.bufferLength*4?new zP(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,t=this.minStackPos,n=this.stacks=[],r,s;if(this.bigReductionCount>300&&e.length==1){let[o]=e;for(;o.forceReduce()&&o.stack.length&&o.stack[o.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;o<e.length;o++){let a=e[o];for(;;){if(this.tokens.mainToken=null,a.pos>t)n.push(a);else{if(this.advanceStack(a,n,e))continue;{r||(r=[],s=[]),r.push(a);let l=this.tokens.getMainToken(a);s.push(l.value,l.end)}}break}}if(!n.length){let o=r&&YP(r);if(o)return He&&console.log("Finish with "+this.stackID(o)),this.stackToTree(o);if(this.parser.strict)throw He&&r&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+t);this.recovering||(this.recovering=5)}if(this.recovering&&r){let o=this.stoppedAt!=null&&r[0].pos>this.stoppedAt?r[0]:this.runRecovery(r,s,n);if(o)return He&&console.log("Force-finish "+this.stackID(o)),this.stackToTree(o.forceAll())}if(this.recovering){let o=this.recovering==1?1:this.recovering*3;if(n.length>o)for(n.sort((a,l)=>l.score-a.score);n.length>o;)n.pop();n.some(a=>a.reducePos>t)&&this.recovering--}else if(n.length>1){e:for(let o=0;o<n.length-1;o++){let a=n[o];for(let l=o+1;l<n.length;l++){let O=n[l];if(a.sameState(O)||a.buffer.length>500&&O.buffer.length>500)if((a.score-O.score||a.buffer.length-O.buffer.length)>0)n.splice(l--,1);else{n.splice(o--,1);continue e}}}n.length>12&&(n.sort((o,a)=>a.score-o.score),n.splice(12,n.length-12))}this.minStackPos=n[0].pos;for(let o=1;o<n.length;o++)n[o].pos<this.minStackPos&&(this.minStackPos=n[o].pos);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,t,n){let r=e.pos,{parser:s}=this,o=He?this.stackID(e)+" -> ":"";if(this.stoppedAt!=null&&r>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let O=e.curContext&&e.curContext.tracker.strict,c=O?e.curContext.hash:0;for(let d=this.fragments.nodeAt(r);d;){let h=this.parser.nodeSet.types[d.type.id]==d.type?s.getGoto(e.state,d.type.id):-1;if(h>-1&&d.length&&(!O||(d.prop(E.contextHash)||0)==c))return e.useNode(d,h),He&&console.log(o+this.stackID(e)+` (via reuse of ${s.getName(d.type.id)})`),!0;if(!(d instanceof K)||d.children.length==0||d.positions[0]>0)break;let f=d.children[0];if(f instanceof K&&d.positions[0]==0)d=f;else break}}let a=s.stateSlot(e.state,4);if(a>0)return e.reduce(a),He&&console.log(o+this.stackID(e)+` (via always-reduce ${s.getName(a&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let l=this.tokens.getActions(e);for(let O=0;O<l.length;){let c=l[O++],d=l[O++],h=l[O++],f=O==l.length||!n,p=f?e:e.split(),m=this.tokens.mainToken;if(p.apply(c,d,m?m.start:p.pos,h),He&&console.log(o+this.stackID(p)+` (via ${(c&65536)==0?"shift":`reduce of ${s.getName(c&65535)}`} for ${s.getName(d)} @ ${r}${p==e?"":", split"})`),f)return!0;p.pos>r?t.push(p):n.push(p)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return yp(e,t),!0}}runRecovery(e,t,n){let r=null,s=!1;for(let o=0;o<e.length;o++){let a=e[o],l=t[o<<1],O=t[(o<<1)+1],c=He?this.stackID(a)+" -> ":"";if(a.deadEnd&&(s||(s=!0,a.restart(),He&&console.log(c+this.stackID(a)+" (restarted)"),this.advanceFully(a,n))))continue;let d=a.split(),h=c;for(let f=0;f<10&&d.forceReduce()&&(He&&console.log(h+this.stackID(d)+" (via force-reduce)"),!this.advanceFully(d,n));f++)He&&(h=this.stackID(d)+" -> ");for(let f of a.recoverByInsert(l))He&&console.log(c+this.stackID(f)+" (via recover-insert)"),this.advanceFully(f,n);this.stream.end>a.pos?(O==a.pos&&(O++,l=0),a.recoverByDelete(l,O),He&&console.log(c+this.stackID(a)+` (via recover-delete ${this.parser.getName(l)})`),yp(a,n)):(!r||r.score<d.score)&&(r=d)}return r}stackToTree(e){return e.close(),K.build({buffer:po.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=(sO||(sO=new WeakMap)).get(e);return t||sO.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}}function yp(i,e){for(let t=0;t<e.length;t++){let n=e[t];if(n.pos==i.pos&&n.sameState(i)){e[t].score<i.score&&(e[t]=i);return}}e.push(i)}class CP{constructor(e,t,n){this.source=e,this.flags=t,this.disabled=n}allows(e){return!this.disabled||this.disabled[e]==0}}const oO=i=>i;class go{constructor(e){this.start=e.start,this.shift=e.shift||oO,this.reduce=e.reduce||oO,this.reuse=e.reuse||oO,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class Qt extends Ls{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let a=0;a<e.repeatNodeCount;a++)t.push("");let n=Object.keys(e.topRules).map(a=>e.topRules[a][1]),r=[];for(let a=0;a<t.length;a++)r.push([]);function s(a,l,O){r[a].push([l,l.deserialize(String(O))])}if(e.nodeProps)for(let a of e.nodeProps){let l=a[0];typeof l=="string"&&(l=E[l]);for(let O=1;O<a.length;){let c=a[O++];if(c>=0)s(c,l,a[O++]);else{let d=a[O+-c];for(let h=-c;h>0;h--)s(a[O++],l,d);O++}}}this.nodeSet=new wn(t.map((a,l)=>Qe.define({name:l>=this.minRepeatTerm?void 0:a,id:l,props:r[l],top:n.indexOf(l)>-1,error:l==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(l)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=gf;let o=Tr(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let a=0;a<this.specializerSpecs.length;a++)this.specialized[a]=this.specializerSpecs[a].term;this.specializers=this.specializerSpecs.map(bp),this.states=Tr(e.states,Uint32Array),this.data=Tr(e.stateData),this.goto=Tr(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(a=>typeof a=="number"?new Zn(o,a):a),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let r=new VP(this,e,t,n);for(let s of this.wrappers)r=s(r,e,t,n);return r}getGoto(e,t,n=!1){let r=this.goto;if(t>=r[0])return-1;for(let s=r[t+1];;){let o=r[s++],a=o&1,l=r[s++];if(a&&n)return l;for(let O=s+(o>>1);s<O;s++)if(r[s]==e)return l;if(a)return-1}}hasAction(e,t){let n=this.data;for(let r=0;r<2;r++)for(let s=this.stateSlot(e,r?2:1),o;;s+=3){if((o=n[s])==65535)if(n[s+1]==1)o=n[s=ii(n,s+2)];else{if(n[s+1]==2)return ii(n,s+2);break}if(o==t||o==0)return ii(n,s+1)}return 0}stateSlot(e,t){return this.states[e*6+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){return!!this.allActions(e,n=>n==t?!0:null)}allActions(e,t){let n=this.stateSlot(e,4),r=n?t(n):void 0;for(let s=this.stateSlot(e,1);r==null;s+=3){if(this.data[s]==65535)if(this.data[s+1]==1)s=ii(this.data,s+2);else break;r=t(ii(this.data,s+1))}return r}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(this.data[n]==65535)if(this.data[n+1]==1)n=ii(this.data,n+2);else break;if((this.data[n+2]&1)==0){let r=this.data[n+1];t.some((s,o)=>o&1&&s==r)||t.push(this.data[n],r)}}return t}configure(e){let t=Object.assign(Object.create(Qt.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let n=this.topRules[e.top];if(!n)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=n}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(n=>{let r=e.tokenizers.find(s=>s.from==n);return r?r.to:n})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((n,r)=>{let s=e.specializers.find(a=>a.from==n.external);if(!s)return n;let o=Object.assign(Object.assign({},n),{external:s.to});return t.specializers[r]=bp(o),o})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),e.bufferLength!=null&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return t==null?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map(()=>!1);if(e)for(let s of e.split(" ")){let o=t.indexOf(s);o>=0&&(n[o]=!0)}let r=null;for(let s=0;s<t.length;s++)if(!n[s])for(let o=this.dialects[t[s]],a;(a=this.data[o++])!=65535;)(r||(r=new Uint8Array(this.maxTerm+1)))[a]=1;return new CP(e,n,r)}static deserialize(e){return new Qt(e)}}function ii(i,e){return i[e]|i[e+1]<<16}function YP(i){let e=null;for(let t of i){let n=t.p.stoppedAt;(t.pos==t.p.stream.end||n!=null&&t.pos>n)&&t.p.parser.stateFlag(t.state,2)&&(!e||e.score<t.score)&&(e=t)}return e}function bp(i){if(i.external){let e=i.extend?1:0;return(t,n)=>i.external(t,n)<<1|e}return i.get}const WP=316,AP=317,Sp=1,EP=2,UP=3,jP=4,MP=318,LP=320,GP=321,IP=5,DP=6,BP=0,aO=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],wp=125,NP=59,lO=47,FP=42,HP=43,KP=45,JP=60,ex=44,tx=63,ix=46,nx=91,rx=new go({start:!1,shift(i,e){return e==IP||e==DP||e==LP?i:e==GP},strict:!1}),sx=new he((i,e)=>{let{next:t}=i;(t==wp||t==-1||e.context)&&i.acceptToken(MP)},{contextual:!0,fallback:!0}),ox=new he((i,e)=>{let{next:t}=i,n;aO.indexOf(t)>-1||t==lO&&((n=i.peek(1))==lO||n==FP)||t!=wp&&t!=NP&&t!=-1&&!e.context&&i.acceptToken(WP)},{contextual:!0}),ax=new he((i,e)=>{i.next==nx&&!e.context&&i.acceptToken(AP)},{contextual:!0}),lx=new he((i,e)=>{let{next:t}=i;if(t==HP||t==KP){if(i.advance(),t==i.next){i.advance();let n=!e.context&&e.canShift(Sp);i.acceptToken(n?Sp:EP)}}else t==tx&&i.peek(1)==ix&&(i.advance(),i.advance(),(i.next<48||i.next>57)&&i.acceptToken(UP))},{contextual:!0});function OO(i,e){return i>=65&&i<=90||i>=97&&i<=122||i==95||i>=192||!e&&i>=48&&i<=57}const Ox=new he((i,e)=>{if(i.next!=JP||!e.dialectEnabled(BP)||(i.advance(),i.next==lO))return;let t=0;for(;aO.indexOf(i.next)>-1;)i.advance(),t++;if(OO(i.next,!0)){for(i.advance(),t++;OO(i.next,!1);)i.advance(),t++;for(;aO.indexOf(i.next)>-1;)i.advance(),t++;if(i.next==ex)return;for(let n=0;;n++){if(n==7){if(!OO(i.next,!0))return;break}if(i.next!="extends".charCodeAt(n))break;i.advance(),t++}}i.acceptToken(jP,-t)}),cx=ft({"get set async static":u.modifier,"for while do if else switch try catch finally return throw break continue default case defer":u.controlKeyword,"in of await yield void typeof delete instanceof as satisfies":u.operatorKeyword,"let var const using function class extends":u.definitionKeyword,"import export from":u.moduleKeyword,"with debugger new":u.keyword,TemplateString:u.special(u.string),super:u.atom,BooleanLiteral:u.bool,this:u.self,null:u.null,Star:u.modifier,VariableName:u.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":u.function(u.variableName),VariableDefinition:u.definition(u.variableName),Label:u.labelName,PropertyName:u.propertyName,PrivatePropertyName:u.special(u.propertyName),"CallExpression/MemberExpression/PropertyName":u.function(u.propertyName),"FunctionDeclaration/VariableDefinition":u.function(u.definition(u.variableName)),"ClassDeclaration/VariableDefinition":u.definition(u.className),"NewExpression/VariableName":u.className,PropertyDefinition:u.definition(u.propertyName),PrivatePropertyDefinition:u.definition(u.special(u.propertyName)),UpdateOp:u.updateOperator,"LineComment Hashbang":u.lineComment,BlockComment:u.blockComment,Number:u.number,String:u.string,Escape:u.escape,ArithOp:u.arithmeticOperator,LogicOp:u.logicOperator,BitOp:u.bitwiseOperator,CompareOp:u.compareOperator,RegExp:u.regexp,Equals:u.definitionOperator,Arrow:u.function(u.punctuation),": Spread":u.punctuation,"( )":u.paren,"[ ]":u.squareBracket,"{ }":u.brace,"InterpolationStart InterpolationEnd":u.special(u.brace),".":u.derefOperator,", ;":u.separator,"@":u.meta,TypeName:u.typeName,TypeDefinition:u.definition(u.typeName),"type enum interface implements namespace module declare":u.definitionKeyword,"abstract global Privacy readonly override":u.modifier,"is keyof unique infer asserts":u.operatorKeyword,JSXAttributeValue:u.attributeValue,JSXText:u.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":u.angleBracket,"JSXIdentifier JSXNameSpacedName":u.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":u.attributeName,"JSXBuiltin/JSXIdentifier":u.standard(u.tagName)}),dx={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,in:52,out:55,const:56,extends:60,this:64,true:72,false:72,null:84,void:88,typeof:92,super:108,new:142,delete:154,yield:163,await:167,class:172,public:235,private:235,protected:235,readonly:237,instanceof:256,satisfies:259,import:292,keyof:349,unique:353,infer:359,asserts:395,is:397,abstract:417,implements:419,type:421,let:424,var:426,using:429,interface:435,enum:439,namespace:445,module:447,declare:451,global:455,defer:471,for:476,of:485,while:488,with:492,do:496,if:500,else:502,switch:506,case:512,try:518,catch:522,finally:526,return:530,throw:534,break:538,continue:542,debugger:546},hx={__proto__:null,async:129,get:131,set:133,declare:195,public:197,private:197,protected:197,static:199,abstract:201,override:203,readonly:209,accessor:211,new:401},fx={__proto__:null,"<":193},ux=Qt.deserialize({version:14,states:"$F|Q%TQlOOO%[QlOOO'_QpOOP(lO`OOO*zQ!0MxO'#CiO+RO#tO'#CjO+aO&jO'#CjO+oO#@ItO'#DaO.QQlO'#DgO.bQlO'#DrO%[QlO'#DzO0fQlO'#ESOOQ!0Lf'#E['#E[O1PQ`O'#EXOOQO'#Ep'#EpOOQO'#Il'#IlO1XQ`O'#GsO1dQ`O'#EoO1iQ`O'#EoO3hQ!0MxO'#JrO6[Q!0MxO'#JsO6uQ`O'#F]O6zQ,UO'#FtOOQ!0Lf'#Ff'#FfO7VO7dO'#FfO9XQMhO'#F|O9`Q`O'#F{OOQ!0Lf'#Js'#JsOOQ!0Lb'#Jr'#JrO9eQ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^,OR+s&PT&p!W&sT&q!W&sT2^,x2_",nodeNames:"⚠ ArithOp ArithOp ?. JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList in out const TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast < ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate asserts is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration defer ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:380,context:rx,nodeProps:[["isolate",-8,5,6,14,37,39,51,53,55,""],["group",-26,9,17,19,68,207,211,215,216,218,221,224,234,237,243,245,247,249,252,258,264,266,268,270,272,274,275,"Statement",-34,13,14,32,35,36,42,51,54,55,57,62,70,72,76,80,82,84,85,110,111,120,121,136,139,141,142,143,144,145,147,148,167,169,171,"Expression",-23,31,33,37,41,43,45,173,175,177,178,180,181,182,184,185,186,188,189,190,201,203,205,206,"Type",-3,88,103,109,"ClassItem"],["openedBy",23,"<",38,"InterpolationStart",56,"[",60,"{",73,"(",160,"JSXStartCloseTag"],["closedBy",-2,24,168,">",40,"InterpolationEnd",50,"]",61,"}",74,")",165,"JSXEndTag"]],propSources:[cx],skippedNodes:[0,5,6,278],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$<r#p#q$=h#q#r$>x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$I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#S#T%Z#T#oEr#o#p*g#p$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr07[$D|k$i&j(Wp(Z!b'}0/l$]#t(T,2j(e$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[ox,ax,lx,Ox,2,3,4,5,6,7,8,9,10,11,12,13,14,sx,new $o("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOx~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!U~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(c~~",141,340),new $o("j~RQYZXz{^~^O(Q~~aP!P!Qd~iO(R~~",25,323)],topRules:{Script:[0,7],SingleExpression:[1,276],SingleClassItem:[2,277]},dialects:{jsx:0,ts:15175},dynamicPrecedences:{80:1,82:1,94:1,169:1,199:1},specialized:[{term:327,get:i=>dx[i]||-1},{term:343,get:i=>hx[i]||-1},{term:95,get:i=>fx[i]||-1}],tokenPrec:15201}),Pp=[ue("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),ue("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),ue("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),ue("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),ue("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),ue(`try {
550
+ \${}
551
+ } catch (\${error}) {
552
+ \${}
553
+ }`,{label:"try",detail:"/ catch block",type:"keyword"}),ue("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),ue(`if (\${}) {
554
+ \${}
555
+ } else {
556
+ \${}
557
+ }`,{label:"if",detail:"/ else block",type:"keyword"}),ue(`class \${name} {
558
+ constructor(\${params}) {
559
+ \${}
560
+ }
561
+ }`,{label:"class",detail:"definition",type:"keyword"}),ue('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),ue('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],px=Pp.concat([ue("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),ue("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),ue("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),xp=new Ql,Tp=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function vr(i){return(e,t)=>{let n=e.node.getChild("VariableDefinition");return n&&t(n,i),!0}}const mx=["FunctionDeclaration"],$x={FunctionDeclaration:vr("function"),ClassDeclaration:vr("class"),ClassExpression:()=>!0,EnumDeclaration:vr("constant"),TypeAliasDeclaration:vr("type"),NamespaceDeclaration:vr("namespace"),VariableDefinition(i,e){i.matchContext(mx)||e(i,"variable")},TypeDefinition(i,e){e(i,"type")},__proto__:null};function vp(i,e){let t=xp.get(e);if(t)return t;let n=[],r=!0;function s(o,a){let l=i.sliceString(o.from,o.to);n.push({label:l,type:a})}return e.cursor(oe.IncludeAnonymous).iterate(o=>{if(r)r=!1;else if(o.name){let a=$x[o.name];if(a&&a(o,s)||Tp.has(o.name))return!1}else if(o.to-o.from>8192){for(let a of vp(i,o.node))n.push(a);return!1}}),xp.set(e,n),n}const kp=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,Xp=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function gx(i){let e=Oe(i.state).resolveInner(i.pos,-1);if(Xp.indexOf(e.name)>-1)return null;let t=e.name=="VariableName"||e.to-e.from<20&&kp.test(i.state.sliceDoc(e.from,e.to));if(!t&&!i.explicit)return null;let n=[];for(let r=e;r;r=r.parent)Tp.has(r.name)&&(n=n.concat(vp(i.state.doc,r)));return{options:n,from:t?e.from:i.pos,validFor:kp}}const Yt=ut.define({name:"javascript",parser:ux.configure({props:[pt.add({IfStatement:qt({except:/^\s*({|else\b)/}),TryStatement:qt({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:DS,SwitchBody:i=>{let e=i.textAfter,t=/^\s*\}/.test(e),n=/^\s*(case|default)\b/.test(e);return i.baseIndent+(t?0:n?1:2)*i.unit},Block:Ni({closing:"}"}),ArrowFunction:i=>i.baseIndent+i.unit,"TemplateString BlockComment":()=>null,"Statement Property":qt({except:/^\s*{/}),JSXElement(i){let e=/^\s*<\//.test(i.textAfter);return i.lineIndent(i.node.from)+(e?0:i.unit)},JSXEscape(i){let e=/\s*\}/.test(i.textAfter);return i.lineIndent(i.node.from)+(e?0:i.unit)},"JSXOpenTag JSXSelfClosingTag"(i){return i.column(i.node.from)+i.unit}}),mt.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":Tn,BlockComment(i){return{from:i.from+2,to:i.to-2}},JSXElement(i){let e=i.firstChild;if(!e||e.name=="JSXSelfClosingTag")return null;let t=i.lastChild;return{from:e.to,to:t.type.isError?i.to:t.from}},"JSXSelfClosingTag JSXOpenTag"(i){var e;let t=(e=i.firstChild)===null||e===void 0?void 0:e.nextSibling,n=i.lastChild;return!t||t.type.isError?null:{from:t.to,to:n.type.isError?i.to:n.from}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),_p={test:i=>/^JSX/.test(i.name),facet:Ns({commentTokens:{block:{open:"{/*",close:"*/}"}}})},Rp=Yt.configure({dialect:"ts"},"typescript"),Zp=Yt.configure({dialect:"jsx",props:[xl.add(i=>i.isTop?[_p]:void 0)]}),zp=Yt.configure({dialect:"jsx ts",props:[xl.add(i=>i.isTop?[_p]:void 0)]},"typescript");let qp=i=>({label:i,type:"keyword"});const Vp="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(qp),Qx=Vp.concat(["declare","implements","private","protected","public"].map(qp));function Cp(i={}){let e=i.jsx?i.typescript?zp:Zp:i.typescript?Rp:Yt,t=i.typescript?px.concat(Qx):Pp.concat(Vp);return new zt(e,[Yt.data.of({autocomplete:Dl(Xp,lo(t))}),Yt.data.of({autocomplete:gx}),i.jsx?Sx:[]])}function yx(i){for(;;){if(i.name=="JSXOpenTag"||i.name=="JSXSelfClosingTag"||i.name=="JSXFragmentTag")return i;if(i.name=="JSXEscape"||!i.parent)return null;i=i.parent}}function Yp(i,e,t=i.length){for(let n=e==null?void 0:e.firstChild;n;n=n.nextSibling)if(n.name=="JSXIdentifier"||n.name=="JSXBuiltin"||n.name=="JSXNamespacedName"||n.name=="JSXMemberExpression")return i.sliceString(n.from,Math.min(n.to,t));return""}const bx=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),Sx=X.inputHandler.of((i,e,t,n,r)=>{if((bx?i.composing:i.compositionStarted)||i.state.readOnly||e!=t||n!=">"&&n!="/"||!Yt.isActiveAt(i.state,e,-1))return!1;let s=r(),{state:o}=s,a=o.changeByRange(l=>{var O;let{head:c}=l,d=Oe(o).resolveInner(c-1,-1),h;if(d.name=="JSXStartTag"&&(d=d.parent),!(o.doc.sliceString(c-1,c)!=n||d.name=="JSXAttributeValue"&&d.to>c)){if(n==">"&&d.name=="JSXFragmentTag")return{range:l,changes:{from:c,insert:"</>"}};if(n=="/"&&d.name=="JSXStartCloseTag"){let f=d.parent,p=f.parent;if(p&&f.from==c-2&&((h=Yp(o.doc,p.firstChild,c))||((O=p.firstChild)===null||O===void 0?void 0:O.name)=="JSXFragmentTag")){let m=`${h}>`;return{range:b.cursor(c+m.length,-1),changes:{from:c,insert:m}}}}else if(n==">"){let f=yx(d);if(f&&f.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(o.doc.sliceString(c,c+2))&&(h=Yp(o.doc,f,c)))return{range:l,changes:{from:c,insert:`</${h}>`}}}}return{range:l}});return a.changes.empty?!1:(i.dispatch([s,o.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),wx=1,Wp=194,Ap=195,Px=196,Ep=197,xx=198,Tx=199,vx=200,kx=2,Up=3,jp=201,Xx=24,_x=25,Rx=49,Zx=50,zx=55,qx=56,Vx=57,Cx=59,Yx=60,Wx=61,Ax=62,Ex=63,Ux=65,jx=238,Mx=71,Lx=241,Gx=242,Ix=243,Dx=244,Bx=245,Nx=246,Fx=247,Hx=248,Mp=72,Kx=249,Jx=250,eT=251,tT=252,iT=253,nT=254,rT=255,sT=256,oT=73,aT=77,lT=263,OT=112,cT=130,dT=151,hT=152,fT=155,Ji=10,kr=13,cO=32,Qo=9,dO=35,uT=40,pT=46,hO=123,Lp=125,Gp=39,Ip=34,Dp=92,mT=111,$T=120,gT=78,QT=117,yT=85,bT=new Set([_x,Rx,Zx,lT,Ux,cT,qx,Vx,jx,Ax,Ex,Mp,oT,aT,Yx,Wx,dT,hT,fT,OT]);function fO(i){return i==Ji||i==kr}function uO(i){return i>=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102}const ST=new he((i,e)=>{let t;if(i.next<0)i.acceptToken(Tx);else if(e.context.flags&yo)fO(i.next)&&i.acceptToken(xx,1);else if(((t=i.peek(-1))<0||fO(t))&&e.canShift(Ep)){let n=0;for(;i.next==cO||i.next==Qo;)i.advance(),n++;(i.next==Ji||i.next==kr||i.next==dO)&&i.acceptToken(Ep,-n)}else fO(i.next)&&i.acceptToken(Px,1)},{contextual:!0}),wT=new he((i,e)=>{let t=e.context;if(t.flags)return;let n=i.peek(-1);if(n==Ji||n==kr){let r=0,s=0;for(;;){if(i.next==cO)r++;else if(i.next==Qo)r+=8-r%8;else break;i.advance(),s++}r!=t.indent&&i.next!=Ji&&i.next!=kr&&i.next!=dO&&(r<t.indent?i.acceptToken(Ap,-s):i.acceptToken(Wp))}}),yo=1,Bp=2,ni=4,ri=8,si=16,oi=32;function bo(i,e,t){this.parent=i,this.indent=e,this.flags=t,this.hash=(i?i.hash+i.hash<<8:0)+e+(e<<4)+t+(t<<6)}const PT=new bo(null,0,0);function xT(i){let e=0;for(let t=0;t<i.length;t++)e+=i.charCodeAt(t)==Qo?8-e%8:1;return e}const Np=new Map([[Lx,0],[Gx,ni],[Ix,ri],[Dx,ri|ni],[Bx,si],[Nx,si|ni],[Fx,si|ri],[Hx,si|ri|ni],[Kx,oi],[Jx,oi|ni],[eT,oi|ri],[tT,oi|ri|ni],[iT,oi|si],[nT,oi|si|ni],[rT,oi|si|ri],[sT,oi|si|ri|ni]].map(([i,e])=>[i,e|Bp])),TT=new go({start:PT,reduce(i,e,t,n){return i.flags&yo&&bT.has(e)||(e==Mx||e==Mp)&&i.flags&Bp?i.parent:i},shift(i,e,t,n){return e==Wp?new bo(i,xT(n.read(n.pos,t.pos)),0):e==Ap?i.parent:e==Xx||e==zx||e==Cx||e==Up?new bo(i,0,yo):Np.has(e)?new bo(i,0,Np.get(e)|i.flags&yo):i},hash(i){return i.hash}}),vT=new he(i=>{for(let e=0;e<5;e++){if(i.next!="print".charCodeAt(e))return;i.advance()}if(!/\w/.test(String.fromCharCode(i.next)))for(let e=0;;e++){let t=i.peek(e);if(!(t==cO||t==Qo)){t!=uT&&t!=pT&&t!=Ji&&t!=kr&&t!=dO&&i.acceptToken(wx);return}}}),kT=new he((i,e)=>{let{flags:t}=e.context,n=t&ni?Ip:Gp,r=(t&ri)>0,s=!(t&si),o=(t&oi)>0,a=i.pos;for(;!(i.next<0);)if(o&&i.next==hO)if(i.peek(1)==hO)i.advance(2);else{if(i.pos==a){i.acceptToken(Up,1);return}break}else if(s&&i.next==Dp){if(i.pos==a){i.advance();let l=i.next;l>=0&&(i.advance(),XT(i,l)),i.acceptToken(kx);return}break}else if(i.next==Dp&&!s&&i.peek(1)>-1)i.advance(2);else if(i.next==n&&(!r||i.peek(1)==n&&i.peek(2)==n)){if(i.pos==a){i.acceptToken(jp,r?3:1);return}break}else if(i.next==Ji){if(r)i.advance();else if(i.pos==a){i.acceptToken(jp);return}break}else i.advance();i.pos>a&&i.acceptToken(vx)});function XT(i,e){if(e==mT)for(let t=0;t<2&&i.next>=48&&i.next<=55;t++)i.advance();else if(e==$T)for(let t=0;t<2&&uO(i.next);t++)i.advance();else if(e==QT)for(let t=0;t<4&&uO(i.next);t++)i.advance();else if(e==yT)for(let t=0;t<8&&uO(i.next);t++)i.advance();else if(e==gT&&i.next==hO){for(i.advance();i.next>=0&&i.next!=Lp&&i.next!=Gp&&i.next!=Ip&&i.next!=Ji;)i.advance();i.next==Lp&&i.advance()}}const _T=ft({'async "*" "**" FormatConversion FormatSpec':u.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":u.controlKeyword,"in not and or is del":u.operatorKeyword,"from def class global nonlocal lambda":u.definitionKeyword,import:u.moduleKeyword,"with as print":u.keyword,Boolean:u.bool,None:u.null,VariableName:u.variableName,"CallExpression/VariableName":u.function(u.variableName),"FunctionDefinition/VariableName":u.function(u.definition(u.variableName)),"ClassDefinition/VariableName":u.definition(u.className),PropertyName:u.propertyName,"CallExpression/MemberExpression/PropertyName":u.function(u.propertyName),Comment:u.lineComment,Number:u.number,String:u.string,FormatString:u.special(u.string),Escape:u.escape,UpdateOp:u.updateOperator,"ArithOp!":u.arithmeticOperator,BitOp:u.bitwiseOperator,CompareOp:u.compareOperator,AssignOp:u.definitionOperator,Ellipsis:u.punctuation,At:u.meta,"( )":u.paren,"[ ]":u.squareBracket,"{ }":u.brace,".":u.derefOperator,", ;":u.separator}),RT={__proto__:null,await:44,or:54,and:56,in:60,not:62,is:64,if:70,else:72,lambda:76,yield:94,from:96,async:102,for:104,None:162,True:164,False:164,del:178,pass:182,break:186,continue:190,return:194,raise:202,import:206,as:208,global:212,nonlocal:214,assert:218,type:223,elif:236,while:240,try:246,except:248,finally:250,with:254,def:258,class:268,match:279,case:285},ZT=Qt.deserialize({version:14,states:"##jO`QeOOP$}OSOOO&WQtO'#HUOOQS'#Co'#CoOOQS'#Cp'#CpO'vQdO'#CnO*UQtO'#HTOOQS'#HU'#HUOOQS'#DU'#DUOOQS'#HT'#HTO*rQdO'#D_O+VQdO'#DfO+gQdO'#DjO+zOWO'#DuO,VOWO'#DvO.[QtO'#GuOOQS'#Gu'#GuO'vQdO'#GtO0ZQtO'#GtOOQS'#Eb'#EbO0rQdO'#EcOOQS'#Gs'#GsO0|QdO'#GrOOQV'#Gr'#GrO1XQdO'#FYOOQS'#G^'#G^O1^QdO'#FXOOQV'#IS'#ISOOQV'#Gq'#GqOOQV'#Fq'#FqQ`QeOOO'vQdO'#CqO1lQdO'#C}O1sQdO'#DRO2RQdO'#HYO2cQtO'#EVO'vQdO'#EWOOQS'#EY'#EYOOQS'#E['#E[OOQS'#E^'#E^O2wQdO'#E`O3_QdO'#EdO3rQdO'#EfO3zQtO'#EfO1XQdO'#EiO0rQdO'#ElO1XQdO'#EnO0rQdO'#EtO0rQdO'#EwO4VQdO'#EyO4^QdO'#FOO4iQdO'#EzO0rQdO'#FOO1XQdO'#FQO1XQdO'#FVO4nQdO'#F[P4uOdO'#GpPOOO)CBd)CBdOOQS'#Ce'#CeOOQS'#Cf'#CfOOQS'#Cg'#CgOOQS'#Ch'#ChOOQS'#Ci'#CiOOQS'#Cj'#C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o*x+w,v0gR%T!kT#]^#_Q%x#[R,{+YQ(m%xS+_(n(oQ,}+`Q-x,{S.n-y-zR/^.oT+Z(k+]Q$`}Q&g$QQ)o'PR+{)pQ$XzQ)W&qR+i)XQ$XzQ&o$WQ)W&qR+i)XQ#khW$Vz$W&q)XQ$[{Q&r$ZZ)R&l)S+f+g-RR$^|R)c&wXlOn)t,PQ$f!RR'Q$gQ$m!UR'R$hR*X'_Q*V'_V-g,`-h.TQ.d-lQ/P.^R/Q._U.]-l.^._Q/U.aQ/b.tQ/g.zU/i.|/j/yQ/n/RQ/|/oQ0O/tU0Q/u0S0[Q0]0UQ0a0ZR0b0^R/T.`R/d.t",nodeNames:"⚠ print Escape { Comment Script AssignStatement * BinaryExpression BitOp BitOp BitOp BitOp ArithOp ArithOp @ ArithOp ** UnaryExpression ArithOp BitOp AwaitExpression await ) ( ParenthesizedExpression BinaryExpression or and CompareOp in not is UnaryExpression ConditionalExpression if else LambdaExpression lambda ParamList VariableName AssignOp , : NamedExpression AssignOp YieldExpression yield from TupleExpression ComprehensionExpression async for LambdaExpression ] [ ArrayExpression ArrayComprehensionExpression } { DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression CallExpression ArgList AssignOp MemberExpression . PropertyName Number String FormatString FormatReplacement FormatSelfDoc FormatConversion FormatSpec FormatReplacement FormatSelfDoc ContinuedString Ellipsis None Boolean TypeDef AssignOp UpdateStatement UpdateOp ExpressionStatement DeleteStatement del PassStatement pass BreakStatement break ContinueStatement continue ReturnStatement return YieldStatement PrintStatement RaiseStatement raise ImportStatement import as ScopeStatement global nonlocal AssertStatement assert TypeDefinition type TypeParamList TypeParam StatementGroup ; IfStatement Body elif WhileStatement while ForStatement TryStatement try except finally WithStatement with FunctionDefinition def ParamList AssignOp TypeDef ClassDefinition class DecoratedStatement Decorator At MatchStatement match MatchBody MatchClause case CapturePattern LiteralPattern ArithOp ArithOp AsPattern OrPattern LogicOp AttributePattern SequencePattern MappingPattern StarPattern ClassPattern PatternArgList KeywordPattern KeywordPattern Guard",maxTerm:277,context:TT,nodeProps:[["isolate",-5,4,71,72,73,77,""],["group",-15,6,85,87,88,90,92,94,96,98,99,100,102,105,108,110,"Statement Statement",-22,8,18,21,25,40,49,50,56,57,60,61,62,63,64,67,70,71,72,79,80,81,82,"Expression",-10,114,116,119,121,122,126,128,133,135,138,"Statement",-9,143,144,147,148,150,151,152,153,154,"Pattern"],["openedBy",23,"(",54,"[",58,"{"],["closedBy",24,")",55,"]",59,"}"]],propSources:[_T],skippedNodes:[0,4],repeatNodeCount:34,tokenData:"!2|~R!`OX%TXY%oY[%T[]%o]p%Tpq%oqr'ars)Yst*xtu%Tuv,dvw-hwx.Uxy/tyz0[z{0r{|2S|}2p}!O3W!O!P4_!P!Q:Z!Q!R;k!R![>_![!]Do!]!^Es!^!_FZ!_!`Gk!`!aHX!a!b%T!b!cIf!c!dJU!d!eK^!e!hJU!h!i!#f!i!tJU!t!u!,|!u!wJU!w!x!.t!x!}JU!}#O!0S#O#P&o#P#Q!0j#Q#R!1Q#R#SJU#S#T%T#T#UJU#U#VK^#V#YJU#Y#Z!#f#Z#fJU#f#g!,|#g#iJU#i#j!.t#j#oJU#o#p!1n#p#q!1s#q#r!2a#r#s!2f#s$g%T$g;'SJU;'S;=`KW<%lOJU`%YT&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T`%lP;=`<%l%To%v]&n`%c_OX%TXY%oY[%T[]%o]p%Tpq%oq#O%T#O#P&o#P#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To&tX&n`OY%TYZ%oZ]%T]^%o^#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc'f[&n`O!_%T!_!`([!`#T%T#T#U(r#U#f%T#f#g(r#g#h(r#h#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc(cTmR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc(yT!mR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk)aV&n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ause"]);function So(i){return(e,t,n)=>{if(n)return!1;let r=e.node.getChild("VariableName");return r&&t(r,i),!0}}const zT={FunctionDefinition:So("function"),ClassDefinition:So("class"),ForStatement(i,e,t){if(t){for(let n=i.node.firstChild;n;n=n.nextSibling)if(n.name=="VariableName")e(n,"variable");else if(n.name=="in")break}},ImportStatement(i,e){var t,n;let{node:r}=i,s=((t=r.firstChild)===null||t===void 0?void 0:t.name)=="from";for(let o=r.getChild("import");o;o=o.nextSibling)o.name=="VariableName"&&((n=o.nextSibling)===null||n===void 0?void 0:n.name)!="as"&&e(o,s?"variable":"namespace")},AssignStatement(i,e){for(let t=i.node.firstChild;t;t=t.nextSibling)if(t.name=="VariableName")e(t,"variable");else if(t.name==":"||t.name=="AssignOp")break},ParamList(i,e){for(let t=null,n=i.node.firstChild;n;n=n.nextSibling)n.name=="VariableName"&&(!t||!/\*|AssignOp/.test(t.name))&&e(n,"variable"),t=n},CapturePattern:So("variable"),AsPattern:So("variable"),__proto__:null};function Kp(i,e){let t=Fp.get(e);if(t)return t;let n=[],r=!0;function s(o,a){let l=i.sliceString(o.from,o.to);n.push({label:l,type:a})}return e.cursor(oe.IncludeAnonymous).iterate(o=>{if(o.name){let a=zT[o.name];if(a&&a(o,s,r)||!r&&Hp.has(o.name))return!1;r=!1}else if(o.to-o.from>8192){for(let a of Kp(i,o.node))n.push(a);return!1}}),Fp.set(e,n),n}const Jp=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,em=["String","FormatString","Comment","PropertyName"];function qT(i){let e=Oe(i.state).resolveInner(i.pos,-1);if(em.indexOf(e.name)>-1)return null;let t=e.name=="VariableName"||e.to-e.from<20&&Jp.test(i.state.sliceDoc(e.from,e.to));if(!t&&!i.explicit)return null;let n=[];for(let r=e;r;r=r.parent)Hp.has(r.name)&&(n=n.concat(Kp(i.state.doc,r)));return{options:n,from:t?e.from:i.pos,validFor:Jp}}const VT=["__annotations__","__builtins__","__debug__","__doc__","__import__","__name__","__loader__","__package__","__spec__","False","None","True"].map(i=>({label:i,type:"constant"})).concat(["ArithmeticError","AssertionError","AttributeError","BaseException","BlockingIOError","BrokenPipeError","BufferError","BytesWarning","ChildProcessError","ConnectionAbortedError","ConnectionError","ConnectionRefusedError","ConnectionResetError","DeprecationWarning","EOFError","Ellipsis","EncodingWarning","EnvironmentError","Exception","FileExistsError","FileNotFoundError","FloatingPointError","FutureWarning","GeneratorExit","IOError","ImportError","ImportWarning","IndentationError","IndexError","InterruptedError","IsADirectoryError","KeyError","KeyboardInterrupt","LookupError","MemoryError","ModuleNotFoundError","NameError","NotADirectoryError","NotImplemented","NotImplementedError","OSError","OverflowError","PendingDeprecationWarning","PermissionError","ProcessLookupError","RecursionError","ReferenceError","ResourceWarning","RuntimeError","RuntimeWarning","StopAsyncIteration","StopIteration","SyntaxError","SyntaxWarning","SystemError","SystemExit","TabError","TimeoutError","TypeError","UnboundLocalError","UnicodeDecodeError","UnicodeEncodeError","UnicodeError","UnicodeTranslateError","UnicodeWarning","UserWarning","ValueError","Warning","ZeroDivisionError"].map(i=>({label:i,type:"type"}))).concat(["bool","bytearray","bytes","classmethod","complex","float","frozenset","int","list","map","memoryview","object","range","set","staticmethod","str","super","tuple","type"].map(i=>({label:i,type:"class"}))).concat(["abs","aiter","all","anext","any","ascii","bin","breakpoint","callable","chr","compile","delattr","dict","dir","divmod","enumerate","eval","exec","exit","filter","format","getattr","globals","hasattr","hash","help","hex","id","input","isinstance","issubclass","iter","len","license","locals","max","min","next","oct","open","ord","pow","print","property","quit","repr","reversed","round","setattr","slice","sorted","sum","vars","zip"].map(i=>({label:i,type:"function"}))),CT=[ue("def ${name}(${params}):\n ${}",{label:"def",detail:"function",type:"keyword"}),ue("for ${name} in ${collection}:\n ${}",{label:"for",detail:"loop",type:"keyword"}),ue("while ${}:\n ${}",{label:"while",detail:"loop",type:"keyword"}),ue("try:\n ${}\nexcept ${error}:\n ${}",{label:"try",detail:"/ except block",type:"keyword"}),ue(`if \${}:
562
+
563
+ `,{label:"if",detail:"block",type:"keyword"}),ue("if ${}:\n ${}\nelse:\n ${}",{label:"if",detail:"/ else block",type:"keyword"}),ue("class ${name}:\n def __init__(self, ${params}):\n ${}",{label:"class",detail:"definition",type:"keyword"}),ue("import ${module}",{label:"import",detail:"statement",type:"keyword"}),ue("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],YT=Dl(em,lo(VT.concat(CT)));function pO(i){let{node:e,pos:t}=i,n=i.lineIndent(t,-1),r=null;for(;;){let s=e.childBefore(t);if(s)if(s.name=="Comment")t=s.from;else if(s.name=="Body"||s.name=="MatchBody")i.baseIndentFor(s)+i.unit<=n&&(r=s),e=s;else if(s.name=="MatchClause")e=s;else if(s.type.is("Statement"))e=s;else break;else break}return r}function mO(i,e){let t=i.baseIndentFor(e),n=i.lineAt(i.pos,-1),r=n.from+n.text.length;return/^\s*($|#)/.test(n.text)&&i.node.to<r+100&&!/\S/.test(i.state.sliceDoc(r,i.node.to))&&i.lineIndent(i.pos,-1)<=t||/^\s*(else:|elif |except |finally:|case\s+[^=:]+:)/.test(i.textAfter)&&i.lineIndent(i.pos,-1)>t?null:t+i.unit}const $O=ut.define({name:"python",parser:ZT.configure({props:[pt.add({Body:i=>{var e;let t=/^\s*(#|$)/.test(i.textAfter)&&pO(i)||i.node;return(e=mO(i,t))!==null&&e!==void 0?e:i.continue()},MatchBody:i=>{var e;let t=pO(i);return(e=mO(i,t||i.node))!==null&&e!==void 0?e:i.continue()},IfStatement:i=>/^\s*(else:|elif )/.test(i.textAfter)?i.baseIndent:i.continue(),"ForStatement WhileStatement":i=>/^\s*else:/.test(i.textAfter)?i.baseIndent:i.continue(),TryStatement:i=>/^\s*(except[ :]|finally:|else:)/.test(i.textAfter)?i.baseIndent:i.continue(),MatchStatement:i=>/^\s*case /.test(i.textAfter)?i.baseIndent+i.unit:i.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":Ni({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":Ni({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":Ni({closing:"]"}),MemberExpression:i=>i.baseIndent+i.unit,"String FormatString":()=>null,Script:i=>{var e;let t=pO(i);return(e=t&&mO(i,t))!==null&&e!==void 0?e:i.continue()}}),mt.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":Tn,Body:(i,e)=>({from:i.from+1,to:i.to-(i.to==e.doc.length?0:1)}),"String FormatString":(i,e)=>({from:e.doc.lineAt(i.from).to,to:i.to})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:|case\s+[^:]*:?)$/}});function WT(){return new zt($O,[$O.data.of({autocomplete:qT}),$O.data.of({autocomplete:YT})])}const AT=1,ET=2,UT=275,jT=3,MT=276,tm=277,LT=278,GT=4,IT=5,DT=6,BT=7,im=8,NT=9,FT=10,HT=11,KT=12,JT=13,ev=14,tv=15,iv=16,nv=17,rv=18,sv=19,ov=20,av=21,lv=22,Ov=23,cv=24,dv=25,hv=26,fv=27,uv=28,pv=29,mv=30,$v=31,gv=32,Qv=33,yv=34,bv=35,Sv=36,wv=37,Pv=38,xv=39,Tv=40,vv=41,kv=42,Xv=43,_v=44,Rv=45,Zv=46,zv=47,qv=48,Vv=49,Cv=50,Yv=51,Wv=52,Av=53,Ev=54,Uv=55,jv=56,Mv=57,Lv=58,Gv=59,Iv=60,Dv=61,Bv=62,gO=63,Nv={abstract:GT,and:IT,array:DT,as:BT,true:im,false:im,break:NT,case:FT,catch:HT,clone:KT,const:JT,continue:ev,declare:iv,default:tv,do:nv,echo:rv,else:sv,elseif:ov,enddeclare:av,endfor:lv,endforeach:Ov,endif:cv,endswitch:dv,endwhile:hv,enum:fv,extends:uv,final:pv,finally:mv,fn:$v,for:gv,foreach:Qv,from:yv,function:bv,global:Sv,goto:wv,if:Pv,implements:xv,include:Tv,include_once:vv,instanceof:kv,insteadof:Xv,interface:_v,list:Rv,match:Zv,namespace:zv,new:qv,null:Vv,or:Cv,print:Yv,readonly:Wv,require:Av,require_once:Ev,return:Uv,switch:jv,throw:Mv,trait:Lv,try:Gv,unset:Iv,use:Dv,var:Bv,public:gO,private:gO,protected:gO,while:64,xor:65,yield:66,__proto__:null};function nm(i){let e=Nv[i.toLowerCase()];return e??-1}function rm(i){return i==9||i==10||i==13||i==32}function sm(i){return i>=97&&i<=122||i>=65&&i<=90}function Xr(i){return i==95||i>=128||sm(i)}function QO(i){return i>=48&&i<=55||i>=97&&i<=102||i>=65&&i<=70}const Fv={int:!0,integer:!0,bool:!0,boolean:!0,float:!0,double:!0,real:!0,string:!0,array:!0,object:!0,unset:!0,__proto__:null},Hv=new he(i=>{if(i.next==40){i.advance();let e=0;for(;rm(i.peek(e));)e++;let t="",n;for(;sm(n=i.peek(e));)t+=String.fromCharCode(n),e++;for(;rm(i.peek(e));)e++;i.peek(e)==41&&Fv[t.toLowerCase()]&&i.acceptToken(AT)}else if(i.next==60&&i.peek(1)==60&&i.peek(2)==60){for(let n=0;n<3;n++)i.advance();for(;i.next==32||i.next==9;)i.advance();let e=i.next==39;if(e&&i.advance(),!Xr(i.next))return;let t=String.fromCharCode(i.next);for(;i.advance(),!(!Xr(i.next)&&!(i.next>=48&&i.next<=55));)t+=String.fromCharCode(i.next);if(e){if(i.next!=39)return;i.advance()}if(i.next!=10&&i.next!=13)return;for(;;){let n=i.next==10||i.next==13;if(i.advance(),i.next<0)return;if(n){for(;i.next==32||i.next==9;)i.advance();let r=!0;for(let s=0;s<t.length;s++){if(i.next!=t.charCodeAt(s)){r=!1;break}i.advance()}if(r)return i.acceptToken(ET)}}}}),Kv=new he(i=>{i.next<0&&i.acceptToken(LT)}),Jv=new he((i,e)=>{i.next==63&&e.canShift(tm)&&i.peek(1)==62&&i.acceptToken(tm)});function ek(i){let e=i.peek(1);if(e==110||e==114||e==116||e==118||e==101||e==102||e==92||e==36||e==34||e==123)return 2;if(e>=48&&e<=55){let t=2,n;for(;t<5&&(n=i.peek(t))>=48&&n<=55;)t++;return t}if(e==120&&QO(i.peek(2)))return QO(i.peek(3))?4:3;if(e==117&&i.peek(2)==123)for(let t=3;;t++){let n=i.peek(t);if(n==125)return t==2?0:t+1;if(!QO(n))break}return 0}const tk=new he((i,e)=>{let t=!1;for(;!(i.next==34||i.next<0||i.next==36&&(Xr(i.peek(1))||i.peek(1)==123)||i.next==123&&i.peek(1)==36);t=!0){if(i.next==92){let n=ek(i);if(n){if(t)break;return i.acceptToken(jT,n)}}else if(!t&&(i.next==91||i.next==45&&i.peek(1)==62&&Xr(i.peek(2))||i.next==63&&i.peek(1)==45&&i.peek(2)==62&&Xr(i.peek(3)))&&e.canShift(MT))break;i.advance()}t&&i.acceptToken(UT)}),ik=ft({"Visibility abstract final static":u.modifier,"for foreach while do if else elseif switch try catch finally return throw break continue default case":u.controlKeyword,"endif endfor endforeach endswitch endwhile declare enddeclare goto match":u.controlKeyword,"and or xor yield unset clone instanceof insteadof":u.operatorKeyword,"function fn class trait implements extends const enum global interface use var":u.definitionKeyword,"include include_once require require_once namespace":u.moduleKeyword,"new from echo print array list as":u.keyword,null:u.null,Boolean:u.bool,VariableName:u.variableName,"NamespaceName/...":u.namespace,"NamedType/...":u.typeName,Name:u.name,"CallExpression/Name":u.function(u.variableName),"LabelStatement/Name":u.labelName,"MemberExpression/Name":u.propertyName,"MemberExpression/VariableName":u.special(u.propertyName),"ScopedExpression/ClassMemberName/Name":u.propertyName,"ScopedExpression/ClassMemberName/VariableName":u.special(u.propertyName),"CallExpression/MemberExpression/Name":u.function(u.propertyName),"CallExpression/ScopedExpression/ClassMemberName/Name":u.function(u.propertyName),"MethodDeclaration/Name":u.function(u.definition(u.variableName)),"FunctionDefinition/Name":u.function(u.definition(u.variableName)),"ClassDeclaration/Name":u.definition(u.className),UpdateOp:u.updateOperator,ArithOp:u.arithmeticOperator,"LogicOp IntersectionType/&":u.logicOperator,BitOp:u.bitwiseOperator,CompareOp:u.compareOperator,ControlOp:u.controlOperator,AssignOp:u.definitionOperator,"$ ConcatOp":u.operator,LineComment:u.lineComment,BlockComment:u.blockComment,Integer:u.integer,Float:u.float,String:u.string,ShellExpression:u.special(u.string),"=> ->":u.punctuation,"( )":u.paren,"#[ [ ]":u.squareBracket,"${ { }":u.brace,"-> ?->":u.derefOperator,", ; :: : \\":u.separator,"PhpOpen PhpClose":u.processingInstruction}),nk={__proto__:null,static:325,STATIC:325,class:351,CLASS:351},rk=Qt.deserialize({version:14,states:"%#[Q`OWOOQhQaOOP%oO`OOOOO#t'#Hh'#HhO%tO#|O'#DuOOO#u'#Dx'#DxQ&SOWO'#DxO&XO$VOOOOQ#u'#Dy'#DyO&lQaO'#D}O'[QdO'#EQO+QQdO'#IqO+_QdO'#ERO-RQaO'#EXO/bQ`O'#EUO/gQ`O'#E_O2UQaO'#E_O2]Q`O'#EgO2bQ`O'#EqO-RQaO'#EqO2mQpO'#FOO2rQ`O'#FOOOQS'#Iq'#IqO2wQ`O'#ExOOQS'#Ih'#IhO5SQdO'#IeO9UQeO'#F]O-RQaO'#FlO-RQaO'#FmO-RQaO'#FnO-RQaO'#FoO-RQaO'#FoO-RQaO'#FrOOQO'#Ir'#IrO9cQ`O'#FxOOQO'#Ht'#HtO9kQ`O'#HXO:VQ`O'#FsO:bQ`O'#HfO:mQ`O'#GPO:uQaO'#GQO-RQaO'#G`O-RQaO'#GcO;bOrO'#GfOOQS'#JP'#JPOOQS'#JO'#JOOOQS'#Ie'#IeO/bQ`O'#GmO/bQ`O'#GoO/bQ`O'#GtOhQaO'#GvO;iQ`O'#GwO;nQ`O'#GzO:]Q`O'#G}O;sQeO'#HOO;sQeO'#HPO;sQeO'#HQO;}Q`O'#HRO<SQ`O'#HTO<XQaO'#HUO>hQ`O'#HVO:]Q`O'#HWO>mQ`O'#HWO;}Q`O'#HXO:]Q`O'#HZO:]Q`O'#H[O:]Q`O'#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;}<P<Q<R<S<T<U<V<W<X<Y<Z<[<]<^<_<`<a<b<c<d<e<f<g<h<i<j<k<l<m<n<o<p<q<r<s<t<u<v<w<x<y<z<{<|=O=P=Q=R=S=T=U=a=b>V>W>[>]>^>c>h>i>l>n>o>p>q>v?^?_T$x{$|Q(q%QQ(v%TQ(y%VR2b1WQ%c!]Q(u%SQ,d(tQ/W,cQ/Y,eQ1Q/XR2_1RQ%q!fR)m%rR/p-O",nodeNames:"⚠ ( HeredocString EscapeSequence abstract LogicOp array as Boolean break case catch clone const continue default declare do echo else elseif enddeclare endfor endforeach endif endswitch endwhile enum extends final finally fn for foreach from function global goto if implements include include_once LogicOp insteadof interface list match namespace new null LogicOp print readonly require require_once return switch throw trait try unset use var Visibility while LogicOp yield LineComment BlockComment TextInterpolation PhpClose Text PhpOpen Template TextInterpolation EmptyStatement ; } { Block : LabelStatement Name ExpressionStatement ConditionalExpression LogicOp MatchExpression ) ( ParenthesizedExpression MatchBlock MatchArm , => AssignmentExpression ArrayExpression ValueList & VariadicUnpacking ... Pair [ ] ListExpression ValueList Pair Pair SubscriptExpression MemberExpression -> ?-> Name VariableName DynamicVariable $ ${ CallExpression ArgList NamedArgument SpreadArgument CastExpression UnionType LogicOp IntersectionType OptionalType NamedType QualifiedName \\ NamespaceName Name NamespaceName Name ScopedExpression :: ClassMemberName DynamicMemberName AssignOp UpdateExpression UpdateOp YieldExpression BinaryExpression LogicOp LogicOp LogicOp BitOp BitOp BitOp CompareOp CompareOp BitOp ArithOp ConcatOp ArithOp ArithOp IncludeExpression RequireExpression CloneExpression UnaryExpression ControlOp LogicOp PrintIntrinsic FunctionExpression static ParamList Parameter #[ Attributes Attribute VariadicParameter PropertyParameter PropertyHooks PropertyHook UseList ArrowFunction NewExpression class BaseClause ClassInterfaceClause DeclarationList ConstDeclaration VariableDeclarator PropertyDeclaration VariableDeclarator MethodDeclaration UseDeclaration UseList UseInsteadOfClause UseAsClause UpdateExpression ArithOp ShellExpression ThrowExpression Integer Float String MemberExpression SubscriptExpression UnaryExpression ArithOp Interpolation String IfStatement ColonBlock SwitchStatement Block CaseStatement DefaultStatement ColonBlock WhileStatement EmptyStatement DoStatement ForStatement ForSpec SequenceExpression ForeachStatement ForSpec Pair GotoStatement ContinueStatement BreakStatement ReturnStatement TryStatement CatchDeclarator DeclareStatement EchoStatement UnsetStatement ConstDeclaration FunctionDefinition ClassDeclaration InterfaceDeclaration TraitDeclaration EnumDeclaration EnumBody EnumCase NamespaceDefinition NamespaceUseDeclaration UseGroup UseClause UseClause GlobalDeclaration FunctionStaticDeclaration Program",maxTerm:318,nodeProps:[["group",-36,2,8,49,82,84,86,89,94,95,103,107,108,112,113,116,120,126,132,137,139,140,154,155,156,157,160,161,173,174,188,190,191,192,193,194,200,"Expression",-28,75,79,81,83,201,203,208,210,211,214,217,218,219,220,221,223,224,225,226,227,228,229,230,231,234,235,239,240,"Statement",-4,121,123,124,125,"Type"],["isolate",-4,67,68,71,200,""],["openedBy",70,"phpOpen",77,"{",87,"(",102,"#["],["closedBy",72,"phpClose",78,"}",88,")",165,"]"]],propSources:[ik],skippedNodes:[0],repeatNodeCount:32,tokenData:"!GQ_R!]OX$zXY&^YZ'sZ]$z]^&^^p$zpq&^qr)Rrs+Pst+otu2buv5evw6rwx8Vxy>]yz>yz{?g{|@}|}Bb}!OCO!O!PDh!P!QKT!Q!R!!o!R![!$q![!]!,P!]!^!-a!^!_!-}!_!`!1S!`!a!2d!a!b!3t!b!c!7^!c!d!7z!d!e!9Y!e!}!7z!}#O!;b#O#P!<O#P#Q!<l#Q#R!=Y#R#S!7z#S#T!=y#T#U!7z#U#V!9Y#V#o!7z#o#p!Cs#p#q!Da#q#r!Ev#r#s!Fd#s$f$z$f$g&^$g&j!7z&j$I_$z$I_$I`&^$I`$KW$z$KW$KX&^$KX;'S$z;'S;=`&W<%l?HT$z?HT?HU&^?HUO$zP%PV'TPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zP%kO'TPP%nW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)=>nm(i)<<1,external:nm},{term:284,get:i=>nk[i]||-1}],tokenPrec:29889}),sk=55,ok=1,ak=56,lk=2,Ok=57,ck=3,om=4,dk=5,yO=6,am=7,lm=8,Om=9,cm=10,hk=11,fk=12,uk=13,bO=58,pk=14,mk=15,dm=59,hm=21,$k=23,fm=24,gk=25,SO=27,um=28,Qk=29,yk=32,bk=35,Sk=37,wk=38,Pk=0,xk=1,Tk={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},vk={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},pm={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function kk(i){return i==45||i==46||i==58||i>=65&&i<=90||i==95||i>=97&&i<=122||i>=161}let mm=null,$m=null,gm=0;function wO(i,e){let t=i.pos+e;if(gm==t&&$m==i)return mm;let n=i.peek(e),r="";for(;kk(n);)r+=String.fromCharCode(n),n=i.peek(++e);return $m=i,gm=t,mm=r?r.toLowerCase():n==Xk||n==_k?void 0:null}const Qm=60,wo=62,PO=47,Xk=63,_k=33,Rk=45;function ym(i,e){this.name=i,this.parent=e}const Zk=[yO,cm,am,lm,Om],zk=new go({start:null,shift(i,e,t,n){return Zk.indexOf(e)>-1?new ym(wO(n,1)||"",i):i},reduce(i,e){return e==hm&&i?i.parent:i},reuse(i,e,t,n){let r=e.type.id;return r==yO||r==Sk?new ym(wO(n,1)||"",i):i},strict:!1}),qk=new he((i,e)=>{if(i.next!=Qm){i.next<0&&e.context&&i.acceptToken(bO);return}i.advance();let t=i.next==PO;t&&i.advance();let n=wO(i,0);if(n===void 0)return;if(!n)return i.acceptToken(t?mk:pk);let r=e.context?e.context.name:null;if(t){if(n==r)return i.acceptToken(hk);if(r&&vk[r])return i.acceptToken(bO,-2);if(e.dialectEnabled(Pk))return i.acceptToken(fk);for(let s=e.context;s;s=s.parent)if(s.name==n)return;i.acceptToken(uk)}else{if(n=="script")return i.acceptToken(am);if(n=="style")return i.acceptToken(lm);if(n=="textarea")return i.acceptToken(Om);if(Tk.hasOwnProperty(n))return i.acceptToken(cm);r&&pm[r]&&pm[r][n]?i.acceptToken(bO,-1):i.acceptToken(yO)}},{contextual:!0}),Vk=new he(i=>{for(let e=0,t=0;;t++){if(i.next<0){t&&i.acceptToken(dm);break}if(i.next==Rk)e++;else if(i.next==wo&&e>=2){t>=3&&i.acceptToken(dm,-2);break}else e=0;i.advance()}});function Ck(i){for(;i;i=i.parent)if(i.name=="svg"||i.name=="math")return!0;return!1}const Yk=new he((i,e)=>{if(i.next==PO&&i.peek(1)==wo){let t=e.dialectEnabled(xk)||Ck(e.context);i.acceptToken(t?dk:om,2)}else i.next==wo&&i.acceptToken(om,1)});function xO(i,e,t){let n=2+i.length;return new he(r=>{for(let s=0,o=0,a=0;;a++){if(r.next<0){a&&r.acceptToken(e);break}if(s==0&&r.next==Qm||s==1&&r.next==PO||s>=2&&s<n&&r.next==i.charCodeAt(s-2))s++,o++;else if(s==n&&r.next==wo){a>o?r.acceptToken(e,-o):r.acceptToken(t,-(o-2));break}else if((r.next==10||r.next==13)&&a){r.acceptToken(e,1);break}else s=o=0;r.advance()}})}const Wk=xO("script",sk,ok),Ak=xO("style",ak,lk),Ek=xO("textarea",Ok,ck),Uk=ft({"Text RawText IncompleteTag IncompleteCloseTag":u.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":u.angleBracket,TagName:u.tagName,"MismatchedCloseTag/TagName":[u.tagName,u.invalid],AttributeName:u.attributeName,"AttributeValue UnquotedAttributeValue":u.attributeValue,Is:u.definitionOperator,"EntityReference CharacterReference":u.character,Comment:u.blockComment,ProcessingInst:u.processingInstruction,DoctypeDecl:u.documentMeta}),jk=Qt.deserialize({version:14,states:",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'#CqO$kO!rO'#CqOOO`'#Cq'#CqO$rO$fO'#DUO$zQ#tO'#DWO%PQ#tO'#DXOOO`'#Dl'#DlOOO`'#DZ'#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa'#D_'#D_O&_OaO'#CyO&jOaO,59]OOOb'#D`'#D`O&rObO'#C|O&}ObO,59]OOOd'#Da'#DaO'VOdO'#DPO'bOdO,59]OOO`'#Db'#DbO'jO!rO,59]O'qQ#tO'#DSOOO`,59],59]OOOp'#Dc'#DcO'vO$fO,59pOOO`,59p,59pO(OQ#|O,59rO(TQ#|O,59sOOO`-E7X-E7XO(YQ&rO'#CtOOQW'#D['#D[O(hQ&rO1G.xOOOa1G.x1G.xOOO`1G/Z1G/ZO(sQ&rO1G/ROOOb1G/R1G/RO)OQ&rO1G/UOOOd1G/U1G/UO)ZQ&rO1G/XOOO`1G/X1G/XO)fQ&rO1G/ZOOOa-E7]-E7]O)qQ#tO'#CzOOO`1G.w1G.wOOOb-E7^-E7^O)vQ#tO'#C}OOOd-E7_-E7_O){Q#tO'#DQOOO`-E7`-E7`O*QQ#|O,59nOOOp-E7a-E7aOOO`1G/[1G/[OOO`1G/^1G/^OOO`1G/_1G/_O*VQ,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abcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:68,context:zk,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,22,31,34,37,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,30,33,36,38,"OpenTag"],["group",-10,14,15,18,19,20,21,40,41,42,43,"Entity",17,"Entity TextContent",-3,29,32,35,"TextContent Entity"],["isolate",-11,22,30,31,33,34,36,37,38,39,42,43,"ltr",-3,27,28,40,""]],propSources:[Uk],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;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xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[Wk,Ak,Ek,Yk,qk,Vk,0,1,2,3,4,5],topRules:{Document:[0,16]},dialects:{noMatch:0,selfClosing:515},tokenPrec:517});function bm(i,e){let t=Object.create(null);for(let n of i.getChildren(fm)){let r=n.getChild(gk),s=n.getChild(SO)||n.getChild(um);r&&(t[e.read(r.from,r.to)]=s?s.type.id==SO?e.read(s.from+1,s.to-1):e.read(s.from,s.to):"")}return t}function Sm(i,e){let t=i.getChild($k);return t?e.read(t.from,t.to):" "}function TO(i,e,t){let n;for(let r of t)if(!r.attrs||r.attrs(n||(n=bm(i.node.parent.firstChild,e))))return{parser:r.parser,bracketed:!0};return null}function wm(i=[],e=[]){let t=[],n=[],r=[],s=[];for(let a of i)(a.tag=="script"?t:a.tag=="style"?n:a.tag=="textarea"?r:s).push(a);let o=e.length?Object.create(null):null;for(let a of e)(o[a.name]||(o[a.name]=[])).push(a);return yl((a,l)=>{let O=a.type.id;if(O==Qk)return TO(a,l,t);if(O==yk)return TO(a,l,n);if(O==bk)return TO(a,l,r);if(O==hm&&s.length){let c=a.node,d=c.firstChild,h=d&&Sm(d,l),f;if(h){for(let p of s)if(p.tag==h&&(!p.attrs||p.attrs(f||(f=bm(d,l))))){let m=c.lastChild,$=m.type.id==wk?m.from:c.to;if($>d.to)return{parser:p.parser,overlay:[{from:d.to,to:$}]}}}}if(o&&O==fm){let c=a.node,d;if(d=c.firstChild){let h=o[l.read(d.from,d.to)];if(h)for(let f of h){if(f.tagName&&f.tagName!=Sm(c.parent,l))continue;let p=c.lastChild;if(p.type.id==SO){let m=p.from+1,$=p.lastChild,g=p.to-($&&$.isError?0:1);if(g>m)return{parser:f.parser,overlay:[{from:m,to:g}],bracketed:!0}}else if(p.type.id==um)return{parser:f.parser,overlay:[{from:p.from,to:p.to}]}}}}return null})}const Mk=135,Pm=1,Lk=136,Gk=137,xm=2,Ik=138,Dk=3,Bk=4,Tm=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],Nk=58,Fk=40,vm=95,Hk=91,Po=45,Kk=46,Jk=35,eX=37,tX=38,iX=92,nX=10,rX=42;function _r(i){return i>=65&&i<=90||i>=97&&i<=122||i>=161}function vO(i){return i>=48&&i<=57}function km(i){return vO(i)||i>=97&&i<=102||i>=65&&i<=70}const Xm=(i,e,t)=>(n,r)=>{for(let s=!1,o=0,a=0;;a++){let{next:l}=n;if(_r(l)||l==Po||l==vm||s&&vO(l))!s&&(l!=Po||a>0)&&(s=!0),o===a&&l==Po&&o++,n.advance();else if(l==iX&&n.peek(1)!=nX){if(n.advance(),km(n.next)){do n.advance();while(km(n.next));n.next==32&&n.advance()}else n.next>-1&&n.advance();s=!0}else{s&&n.acceptToken(o==2&&r.canShift(xm)?e:l==Fk?t:i);break}}},sX=new he(Xm(Lk,xm,Gk),{contextual:!0}),oX=new he(Xm(Ik,Dk,Bk),{contextual:!0}),aX=new he(i=>{if(Tm.includes(i.peek(-1))){let{next:e}=i;(_r(e)||e==vm||e==Jk||e==Kk||e==rX||e==Hk||e==Nk&&_r(i.peek(1))||e==Po||e==tX)&&i.acceptToken(Mk)}}),lX=new he(i=>{if(!Tm.includes(i.peek(-1))){let{next:e}=i;if(e==eX&&(i.advance(),i.acceptToken(Pm)),_r(e)){do i.advance();while(_r(i.next)||vO(i.next));i.acceptToken(Pm)}}}),OX=ft({"AtKeyword import charset namespace keyframes media supports font-feature-values":u.definitionKeyword,"from to selector scope MatchFlag":u.keyword,NamespaceName:u.namespace,KeyframeName:u.labelName,KeyframeRangeName:u.operatorKeyword,TagName:u.tagName,ClassName:u.className,PseudoClassName:u.constant(u.className),IdName:u.labelName,"FeatureName PropertyName":u.propertyName,AttributeName:u.attributeName,NumberLiteral:u.number,KeywordQuery:u.keyword,UnaryQueryOp:u.operatorKeyword,"CallTag ValueName FontName":u.atom,VariableName:u.variableName,Callee:u.operatorKeyword,Unit:u.unit,"UniversalSelector NestingSelector":u.definitionOperator,"MatchOp CompareOp":u.compareOperator,"ChildOp SiblingOp, LogicOp":u.logicOperator,BinOp:u.arithmeticOperator,Important:u.modifier,Comment:u.blockComment,ColorLiteral:u.color,"ParenthesizedContent StringLiteral":u.string,":":u.punctuation,"PseudoOp #":u.derefOperator,"; , |":u.separator,"( )":u.paren,"[ ]":u.squareBracket,"{ }":u.brace}),cX={__proto__:null,lang:44,"nth-child":44,"nth-last-child":44,"nth-of-type":44,"nth-last-of-type":44,dir:44,"host-context":44,if:90,url:132,"url-prefix":132,domain:132,regexp:132},dX={__proto__:null,or:104,and:104,not:112,only:112,layer:186},hX={__proto__:null,selector:118,layer:182},fX={__proto__:null,"@import":178,"@media":190,"@charset":194,"@namespace":198,"@keyframes":204,"@supports":216,"@scope":220,"@font-feature-values":226},uX={__proto__:null,to:223},pX=Qt.deserialize({version:14,states:"IpQYQdOOO#}QdOOP$UO`OOO%OQaO'#CfOOQP'#Ce'#CeO%VQdO'#CgO%[Q`O'#CgO%aQaO'#FdO&XQdO'#CkO&xQaO'#CcO'SQdO'#CnO'_QdO'#DtO'dQdO'#DvO'oQdO'#D}O'oQdO'#EQOOQP'#Fd'#FdO)OQhO'#EsOOQS'#Fc'#FcOOQS'#Ev'#EvQYQdOOO)VQdO'#EWO*cQhO'#E^O)VQdO'#E`O*jQdO'#EbO*uQdO'#EeO)zQhO'#EkO*}QdO'#EmO+YQdO'#EpO+_QaO'#CfO+fQ`O'#ETO+kQ`O'#FnO+vQdO'#FnQOQ`OOP,QO&jO'#CaPOOO)CAR)CAROOQP'#Ci'#CiOOQP,59R,59RO%VQdO,59ROOQP'#Cm'#CmOOQP,59V,59VO&XQdO,59VO,]QdO,59YO'_QdO,5:`O'dQdO,5:bO'oQdO,5:iO'oQdO,5:kO'oQdO,5:lO'oQdO'#E}O,hQ`O,58}O,pQdO'#ESOOQS,58},58}OOQP'#Cq'#CqOOQO'#Dr'#DrOOQP,59Y,59YO,wQ`O,59Y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R'V&bQ&^%WR'T&^Q!QXR#l!QQ&W$yR'O&WQ#[nS%O#[%PR%P#]Q'`&nR'n'`Q$k!xR%x$kQ&P$pR&z&PQ&x&OR'g&xQ#WkR$w#WQ$O!dR%d$O_bOPco!R#Z$}^XOPco!R#Z$}Q!`]Q!a^Q#h|Q#i}Q#j!OQ#k!PQ$s#RQ%W#oR'S&]R%[#pQ!qdQ!zf[$V!m!n!o$Y$[$^Q$y#Yd%Y#p%Z%_&a&f&k'U'^'k'sQ%^#uQ%n$aS&U$y&WQ&[%UQ&}&VR'b&p]$X!m!n!o$Y$[$^Q!d`U!xe!q$eQ#QiQ#x!cS#{!d$OQ$Q!eQ%b#|Q%c#}Q%g$RS%r$g%tQ%w$jR'Z&iQ#z!cQ&h%`R'j'YR%i$RR%X#oQpPR#n!RQ!yeQ$d!qR%q$e",nodeNames:"⚠ Unit VariableName VariableName QueryCallee Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NamespacedTagSelector NamespaceName TagName NestingSelector ClassSelector . ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue AtKeyword # ; ] [ BracketedValue } { BracedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee IfExpression if ArgList IfBranch KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp ComparisonQuery CompareOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector ParenthesizedSelector CallQuery ArgList , PseudoQuery CallLiteral CallTag ParenthesizedContent PseudoClassName ArgList IdSelector IdName AttributeSelector AttributeName NamespacedAttribute NamespaceName AttributeName MatchOp MatchFlag ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp Block Declaration PropertyName Important ImportStatement import Layer layer LayerName layer MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports ScopeStatement scope to FontFeatureStatement font-feature-values FontName AtRule Styles",max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=null;function XO(){if(!kO&&typeof document=="object"&&document.body){let{style:i}=document.body,e=[],t=new Set;for(let n in i)n!="cssText"&&n!="cssFloat"&&typeof i[n]=="string"&&(/[A-Z]/.test(n)&&(n=n.replace(/[A-Z]/g,r=>"-"+r.toLowerCase())),t.has(n)||(e.push(n),t.add(n)));kO=e.sort().map(n=>({type:"property",label:n,apply:n+": "}))}return kO||[]}const _m=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(i=>({type:"class",label:i})),Rm=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(i=>({type:"keyword",label:i})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(i=>({type:"constant",label:i}))),mX=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(i=>({type:"type",label:i})),$X=["@charset","@color-profile","@container","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@position-try","@property","@scope","@starting-style","@supports","@view-transition"].map(i=>({type:"keyword",label:i})),ai=/^(\w[\w-]*|-\w[\w-]*|)$/,gX=/^-(-[\w-]*)?$/;function QX(i,e){var t;if((i.name=="("||i.type.isError)&&(i=i.parent||i),i.name!="ArgList")return!1;let n=(t=i.parent)===null||t===void 0?void 0:t.firstChild;return(n==null?void 0:n.name)!="Callee"?!1:e.sliceString(n.from,n.to)=="var"}const Zm=new Ql,yX=["Declaration"];function bX(i){for(let e=i;;){if(e.type.isTop)return e;if(!(e=e.parent))return i}}function zm(i,e,t){if(e.to-e.from>4096){let n=Zm.get(e);if(n)return n;let r=[],s=new Set,o=e.cursor(oe.IncludeAnonymous);if(o.firstChild())do for(let a of zm(i,o.node,t))s.has(a.label)||(s.add(a.label),r.push(a));while(o.nextSibling());return Zm.set(e,r),r}else{let n=[],r=new Set;return e.cursor().iterate(s=>{var o;if(t(s)&&s.matchContext(yX)&&((o=s.node.nextSibling)===null||o===void 0?void 0:o.name)==":"){let a=i.sliceString(s.from,s.to);r.has(a)||(r.add(a),n.push({label:a,type:"variable"}))}}),n}}const SX=(i=>e=>{let{state:t,pos:n}=e,r=Oe(t).resolveInner(n,-1),s=r.type.isError&&r.from==r.to-1&&t.doc.sliceString(r.from,r.to)=="-";if(r.name=="PropertyName"||(s||r.name=="TagName")&&/^(Block|Styles)$/.test(r.resolve(r.to).name))return{from:r.from,options:XO(),validFor:ai};if(r.name=="ValueName")return{from:r.from,options:Rm,validFor:ai};if(r.name=="PseudoClassName")return{from:r.from,options:_m,validFor:ai};if(i(r)||(e.explicit||s)&&QX(r,t.doc))return{from:i(r)||s?r.from:n,options:zm(t.doc,bX(r),i),validFor:gX};if(r.name=="TagName"){for(let{parent:l}=r;l;l=l.parent)if(l.name=="Block")return{from:r.from,options:XO(),validFor:ai};return{from:r.from,options:mX,validFor:ai}}if(r.name=="AtKeyword")return{from:r.from,options:$X,validFor:ai};if(!e.explicit)return null;let o=r.resolve(n),a=o.childBefore(n);return a&&a.name==":"&&o.name=="PseudoClassSelector"?{from:n,options:_m,validFor:ai}:a&&a.name==":"&&o.name=="Declaration"||o.name=="ArgList"?{from:n,options:Rm,validFor:ai}:o.name=="Block"||o.name=="Styles"?{from:n,options:XO(),validFor:ai}:null})(i=>i.name=="VariableName"),xo=ut.define({name:"css",parser:pX.configure({props:[pt.add({Declaration:qt()}),mt.add({"Block KeyframeList":Tn})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function qm(){return new zt(xo,xo.data.of({autocomplete:SX}))}const Rr=["_blank","_self","_top","_parent"],_O=["ascii","utf-8","utf-16","latin1","latin1"],RO=["get","post","put","delete"],ZO=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Ke=["true","false"],C={},wX={a:{attrs:{href:null,ping:null,type:null,media:null,target:Rr,hreflang:null}},abbr:C,address:C,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:C,aside:C,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:C,base:{attrs:{href:null,target:Rr}},bdi:C,bdo:C,blockquote:{attrs:{cite:null}},body:C,br:C,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:ZO,formmethod:RO,formnovalidate:["novalidate"],formtarget:Rr,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:C,center:C,cite:C,code:C,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:C,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:C,div:C,dl:C,dt:C,em:C,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:C,figure:C,footer:C,form:{attrs:{action:null,name:null,"accept-charset":_O,autocomplete:["on","off"],enctype:ZO,method:RO,novalidate:["novalidate"],target:Rr}},h1:C,h2:C,h3:C,h4:C,h5:C,h6:C,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:C,hgroup:C,hr:C,html:{attrs:{manifest:null}},i:C,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:ZO,formmethod:RO,formnovalidate:["novalidate"],formtarget:Rr,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:C,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:C,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:C,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:_O,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:C,noscript:C,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:C,param:{attrs:{name:null,value:null}},pre:C,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:C,rt:C,ruby:C,samp:C,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:_O}},section:C,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:C,source:{attrs:{src:null,type:null,media:null}},span:C,strong:C,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:C,summary:C,sup:C,table:C,tbody:C,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:C,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:C,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:C,time:{attrs:{datetime:null}},title:C,tr:C,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:C,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:C},Vm={accesskey:null,class:null,contenteditable:Ke,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:Ke,autocorrect:Ke,autocapitalize:Ke,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":Ke,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Ke,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Ke,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Ke,"aria-hidden":Ke,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Ke,"aria-multiselectable":Ke,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Ke,"aria-relevant":null,"aria-required":Ke,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},Cm="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(i=>"on"+i);for(let i of Cm)Vm[i]=null;class Zr{constructor(e,t){this.tags={...wX,...e},this.globalAttrs={...Vm,...t},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}Zr.default=new Zr;function zn(i,e,t=i.length){if(!e)return"";let n=e.firstChild,r=n&&n.getChild("TagName");return r?i.sliceString(r.from,Math.min(r.to,t)):""}function qn(i,e=!1){for(;i;i=i.parent)if(i.name=="Element")if(e)e=!1;else return i;return null}function Ym(i,e,t){let n=t.tags[zn(i,qn(e))];return(n==null?void 0:n.children)||t.allTags}function zO(i,e){let t=[];for(let n=qn(e);n&&!n.type.isTop;n=qn(n.parent)){let r=zn(i,n);if(r&&n.lastChild.name=="CloseTag")break;r&&t.indexOf(r)<0&&(e.name=="EndTag"||e.from>=n.firstChild.to)&&t.push(r)}return t}const Wm=/^[:\-\.\w\u00b7-\uffff]*$/;function Am(i,e,t,n,r){let s=/\s*>/.test(i.sliceDoc(r,r+5))?"":">",o=qn(t,t.name=="StartTag"||t.name=="TagName");return{from:n,to:r,options:Ym(i.doc,o,e).map(a=>({label:a,type:"type"})).concat(zO(i.doc,t).map((a,l)=>({label:"/"+a,apply:"/"+a+s,type:"type",boost:99-l}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function Em(i,e,t,n){let r=/\s*>/.test(i.sliceDoc(n,n+5))?"":">";return{from:t,to:n,options:zO(i.doc,e).map((s,o)=>({label:s,apply:s+r,type:"type",boost:99-o})),validFor:Wm}}function PX(i,e,t,n){let r=[],s=0;for(let o of Ym(i.doc,t,e))r.push({label:"<"+o,type:"type"});for(let o of zO(i.doc,t))r.push({label:"</"+o+">",type:"type",boost:99-s++});return{from:n,to:n,options:r,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function xX(i,e,t,n,r){let s=qn(t),o=s?e.tags[zn(i.doc,s)]:null,a=o&&o.attrs?Object.keys(o.attrs):[],l=o&&o.globalAttrs===!1?a:a.length?a.concat(e.globalAttrNames):e.globalAttrNames;return{from:n,to:r,options:l.map(O=>({label:O,type:"property"})),validFor:Wm}}function TX(i,e,t,n,r){var s;let o=(s=t.parent)===null||s===void 0?void 0:s.getChild("AttributeName"),a=[],l;if(o){let O=i.sliceDoc(o.from,o.to),c=e.globalAttrs[O];if(!c){let d=qn(t),h=d?e.tags[zn(i.doc,d)]:null;c=(h==null?void 0:h.attrs)&&h.attrs[O]}if(c){let d=i.sliceDoc(n,r).toLowerCase(),h='"',f='"';/^['"]/.test(d)?(l=d[0]=='"'?/^[^"]*$/:/^[^']*$/,h="",f=i.sliceDoc(r,r+1)==d[0]?"":d[0],d=d.slice(1),n++):l=/^[^\s<>='"]*$/;for(let p of c)a.push({label:p,apply:h+p+f,type:"constant"})}}return{from:n,to:r,options:a,validFor:l}}function Um(i,e){let{state:t,pos:n}=e,r=Oe(t).resolveInner(n,-1),s=r.resolve(n);for(let o=n,a;s==r&&(a=r.childBefore(o));){let l=a.lastChild;if(!l||!l.type.isError||l.from<l.to)break;s=r=a,o=l.from}return r.name=="TagName"?r.parent&&/CloseTag$/.test(r.parent.name)?Em(t,r,r.from,n):Am(t,i,r,r.from,n):r.name=="StartTag"||r.name=="IncompleteTag"?Am(t,i,r,n,n):r.name=="StartCloseTag"||r.name=="IncompleteCloseTag"?Em(t,r,n,n):r.name=="OpenTag"||r.name=="SelfClosingTag"||r.name=="AttributeName"?xX(t,i,r,r.name=="AttributeName"?r.from:n,n):r.name=="Is"||r.name=="AttributeValue"||r.name=="UnquotedAttributeValue"?TX(t,i,r,r.name=="Is"?n:r.from,n):e.explicit&&(s.name=="Element"||s.name=="Text"||s.name=="Document")?PX(t,i,r,n):null}function vX(i){return Um(Zr.default,i)}function kX(i){let{extraTags:e,extraGlobalAttributes:t}=i,n=t||e?new Zr(e,t):Zr.default;return r=>Um(n,r)}const XX=Yt.parser.configure({top:"SingleExpression"}),jm=[{tag:"script",attrs:i=>i.type=="text/typescript"||i.lang=="ts",parser:Rp.parser},{tag:"script",attrs:i=>i.type=="text/babel"||i.type=="text/jsx",parser:Zp.parser},{tag:"script",attrs:i=>i.type=="text/typescript-jsx",parser:zp.parser},{tag:"script",attrs(i){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(i.type)},parser:XX},{tag:"script",attrs(i){return!i.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(i.type)},parser:Yt.parser},{tag:"style",attrs(i){return(!i.lang||i.lang=="css")&&(!i.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(i.type))},parser:xo.parser}],Mm=[{name:"style",parser:xo.parser.configure({top:"Styles"})}].concat(Cm.map(i=>({name:i,parser:Yt.parser}))),Lm=ut.define({name:"html",parser:jk.configure({props:[pt.add({Element(i){let e=/^(\s*)(<\/)?/.exec(i.textAfter);return i.node.to<=i.pos+e[0].length?i.continue():i.lineIndent(i.node.from)+(e[2]?0:i.unit)},"OpenTag CloseTag SelfClosingTag"(i){return i.column(i.node.from)+i.unit},Document(i){if(i.pos+/\s*/.exec(i.textAfter)[0].length<i.node.to)return i.continue();let e=null,t;for(let n=i.node;;){let r=n.lastChild;if(!r||r.name!="Element"||r.to!=n.to)break;e=n=r}return e&&!((t=e.lastChild)&&(t.name=="CloseTag"||t.name=="SelfClosingTag"))?i.lineIndent(e.from)+i.unit:null}}),mt.add({Element(i){let e=i.firstChild,t=i.lastChild;return!e||e.name!="OpenTag"?null:{from:e.to,to:t.name=="CloseTag"?t.from:i.to}}}),eu.add({"OpenTag CloseTag":i=>i.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}}),To=Lm.configure({wrap:wm(jm,Mm)});function vo(i={}){let e="",t;i.matchClosingTags===!1&&(e="noMatch"),i.selfClosingTags===!0&&(e=(e?e+" ":"")+"selfClosing"),(i.nestedLanguages&&i.nestedLanguages.length||i.nestedAttributes&&i.nestedAttributes.length)&&(t=wm((i.nestedLanguages||[]).concat(jm),(i.nestedAttributes||[]).concat(Mm)));let n=t?Lm.configure({wrap:t,dialect:e}):e?To.configure({dialect:e}):To;return new zt(n,[To.data.of({autocomplete:kX(i)}),i.autoCloseTags!==!1?_X:[],Cp().support,qm().support])}const Gm=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),_X=X.inputHandler.of((i,e,t,n,r)=>{if(i.composing||i.state.readOnly||e!=t||n!=">"&&n!="/"||!To.isActiveAt(i.state,e,-1))return!1;let s=r(),{state:o}=s,a=o.changeByRange(l=>{var O,c,d;let h=o.doc.sliceString(l.from-1,l.to)==n,{head:f}=l,p=Oe(o).resolveInner(f,-1),m;if(h&&n==">"&&p.name=="EndTag"){let $=p.parent;if(((c=(O=$.parent)===null||O===void 0?void 0:O.lastChild)===null||c===void 0?void 0:c.name)!="CloseTag"&&(m=zn(o.doc,$.parent,f))&&!Gm.has(m)){let g=f+(o.doc.sliceString(f,f+1)===">"?1:0),y=`</${m}>`;return{range:l,changes:{from:f,to:g,insert:y}}}}else if(h&&n=="/"&&p.name=="IncompleteCloseTag"){let $=p.parent;if(p.from==f-2&&((d=$.lastChild)===null||d===void 0?void 0:d.name)!="CloseTag"&&(m=zn(o.doc,$,f))&&!Gm.has(m)){let g=f+(o.doc.sliceString(f,f+1)===">"?1:0),y=`${m}>`;return{range:b.cursor(f+y.length,-1),changes:{from:f,to:g,insert:y}}}}return{range:l}});return a.changes.empty?!1:(i.dispatch([s,o.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),RX=ut.define({name:"php",parser:rk.configure({props:[pt.add({IfStatement:qt({except:/^\s*({|else\b|elseif\b|endif\b)/}),TryStatement:qt({except:/^\s*({|catch\b|finally\b)/}),SwitchBody:i=>{let e=i.textAfter,t=/^\s*\}/.test(e),n=/^\s*(case|default)\b/.test(e);return i.baseIndent+(t?0:n?1:2)*i.unit},ColonBlock:i=>i.baseIndent+i.unit,"Block EnumBody DeclarationList":Ni({closing:"}"}),ArrowFunction:i=>i.baseIndent+i.unit,"String BlockComment":()=>null,Statement:qt({except:/^({|end(for|foreach|switch|while)\b)/})}),mt.add({"Block EnumBody DeclarationList SwitchBody ArrayExpression ValueList":Tn,ColonBlock(i){return{from:i.from+1,to:i.to}},BlockComment(i){return{from:i.from+2,to:i.to-2}}})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"},line:"//"},indentOnInput:/^\s*(?:case |default:|end(?:if|for(?:each)?|switch|while)|else(?:if)?|\{|\})$/,wordChars:"$",closeBrackets:{stringPrefixes:["b","B"]}}});function ZX(i={}){let e=[],t;if(i.baseLanguage!==null)if(i.baseLanguage)t=i.baseLanguage;else{let n=vo({matchClosingTags:!1});e.push(n.support),t=n.language}return new zt(RX.configure({wrap:t&&yl(n=>n.type.isTop?{parser:t.parser,overlay:r=>r.name=="Text"}:null),top:i.plain?"Program":"Template"}),e)}const zX=ft({String:u.string,Number:u.number,"True False":u.bool,PropertyName:u.propertyName,Null:u.null,", :":u.separator,"[ ]":u.squareBracket,"{ }":u.brace}),qX=Qt.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",stateData:"#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",goto:"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",14,"["],["closedBy",8,"}",15,"]"]],propSources:[zX],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),VX=ut.define({name:"json",parser:qX.configure({props:[pt.add({Object:qt({except:/^\s*\}/}),Array:qt({except:/^\s*\]/})}),mt.add({"Object Array":Tn})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function CX(){return new zt(VX)}const Vn=63,Im=64,YX=1,WX=2,Dm=3,AX=4,Bm=5,EX=6,UX=7,Nm=65,jX=66,MX=8,LX=9,GX=10,IX=11,DX=12,Fm=13,BX=19,NX=20,FX=29,HX=33,KX=34,JX=47,e5=0,qO=1,VO=2,zr=3,CO=4;let en=class{constructor(e,t,n){this.parent=e,this.depth=t,this.type=n,this.hash=(e?e.hash+e.hash<<8:0)+t+(t<<4)+n}};en.top=new en(null,-1,e5);function qr(i,e){for(let t=0,n=e-i.pos-1;;n--,t++){let r=i.peek(n);if(li(r)||r==-1)return t}}function YO(i){return i==32||i==9}function li(i){return i==10||i==13}function Hm(i){return YO(i)||li(i)}function tn(i){return i<0||Hm(i)}const t5=new go({start:en.top,reduce(i,e){return i.type==zr&&(e==NX||e==KX)?i.parent:i},shift(i,e,t,n){if(e==Dm)return new en(i,qr(n,n.pos),qO);if(e==Nm||e==Bm)return new en(i,qr(n,n.pos),VO);if(e==Vn)return i.parent;if(e==BX||e==HX)return new en(i,0,zr);if(e==Fm&&i.type==CO)return i.parent;if(e==JX){let r=/[1-9]/.exec(n.read(n.pos,t.pos));if(r)return new en(i,i.depth+ +r[0],CO)}return i},hash(i){return i.hash}});function Cn(i,e,t=0){return i.peek(t)==e&&i.peek(t+1)==e&&i.peek(t+2)==e&&tn(i.peek(t+3))}const i5=new he((i,e)=>{if(i.next==-1&&e.canShift(Im))return i.acceptToken(Im);let t=i.peek(-1);if((li(t)||t<0)&&e.context.type!=zr){if(Cn(i,45))if(e.canShift(Vn))i.acceptToken(Vn);else return i.acceptToken(YX,3);if(Cn(i,46))if(e.canShift(Vn))i.acceptToken(Vn);else return i.acceptToken(WX,3);let n=0;for(;i.next==32;)n++,i.advance();(n<e.context.depth||n==e.context.depth&&e.context.type==qO&&(i.next!=45||!tn(i.peek(1))))&&i.next!=-1&&!li(i.next)&&i.next!=35&&i.acceptToken(Vn,-n)}},{contextual:!0}),n5=new he((i,e)=>{if(e.context.type==zr){i.next==63&&(i.advance(),tn(i.next)&&i.acceptToken(UX));return}if(i.next==45)i.advance(),tn(i.next)&&i.acceptToken(e.context.type==qO&&e.context.depth==qr(i,i.pos-1)?AX:Dm);else if(i.next==63)i.advance(),tn(i.next)&&i.acceptToken(e.context.type==VO&&e.context.depth==qr(i,i.pos-1)?EX:Bm);else{let t=i.pos;for(;;)if(YO(i.next)){if(i.pos==t)return;i.advance()}else if(i.next==33)e$(i);else if(i.next==38)WO(i);else if(i.next==42){WO(i);break}else if(i.next==39||i.next==34){if(AO(i,!0))break;return}else if(i.next==91||i.next==123){if(!s5(i))return;break}else{t$(i,!0,!1,0);break}for(;YO(i.next);)i.advance();if(i.next==58){if(i.pos==t&&e.canShift(FX))return;let n=i.peek(1);tn(n)&&i.acceptTokenTo(e.context.type==VO&&e.context.depth==qr(i,t)?jX:Nm,t)}}},{contextual:!0});function r5(i){return i>32&&i<127&&i!=34&&i!=37&&i!=44&&i!=60&&i!=62&&i!=92&&i!=94&&i!=96&&i!=123&&i!=124&&i!=125}function Km(i){return i>=48&&i<=57||i>=97&&i<=102||i>=65&&i<=70}function Jm(i,e){return i.next==37?(i.advance(),Km(i.next)&&i.advance(),Km(i.next)&&i.advance(),!0):r5(i.next)||e&&i.next==44?(i.advance(),!0):!1}function e$(i){if(i.advance(),i.next==60){for(i.advance();;)if(!Jm(i,!0)){i.next==62&&i.advance();break}}else for(;Jm(i,!1););}function WO(i){for(i.advance();!tn(i.next)&&ko(i.next)!="f";)i.advance()}function AO(i,e){let t=i.next,n=!1,r=i.pos;for(i.advance();;){let s=i.next;if(s<0)break;if(i.advance(),s==t)if(s==39)if(i.next==39)i.advance();else break;else break;else if(s==92&&t==34)i.next>=0&&i.advance();else if(li(s)){if(e)return!1;n=!0}else if(e&&i.pos>=r+1024)return!1}return!n}function s5(i){for(let e=[],t=i.pos+1024;;)if(i.next==91||i.next==123)e.push(i.next),i.advance();else if(i.next==39||i.next==34){if(!AO(i,!0))return!1}else if(i.next==93||i.next==125){if(e[e.length-1]!=i.next-2)return!1;if(e.pop(),i.advance(),!e.length)return!0}else{if(i.next<0||i.pos>t||li(i.next))return!1;i.advance()}}const o5="iiisiiissisfissssssssssssisssiiissssssssssssssssssssssssssfsfssissssssssssssssssssssssssssfif";function ko(i){return i<33?"u":i>125?"s":o5[i-33]}function EO(i,e){let t=ko(i);return t!="u"&&!(e&&t=="f")}function t$(i,e,t,n){if(ko(i.next)=="s"||(i.next==63||i.next==58||i.next==45)&&EO(i.peek(1),t))i.advance();else return!1;let r=i.pos;for(;;){let s=i.next,o=0,a=n+1;for(;Hm(s);){if(li(s)){if(e)return!1;a=0}else a++;s=i.peek(++o)}if(!(s>=0&&(s==58?EO(i.peek(o+1),t):s==35?i.peek(o-1)!=32:EO(s,t)))||!t&&a<=n||a==0&&!t&&(Cn(i,45,o)||Cn(i,46,o)))break;if(e&&ko(s)=="f")return!1;for(let O=o;O>=0;O--)i.advance();if(e&&i.pos>r+1024)return!1}return!0}const a5=new he((i,e)=>{if(i.next==33)e$(i),i.acceptToken(DX);else if(i.next==38||i.next==42){let t=i.next==38?GX:IX;WO(i),i.acceptToken(t)}else i.next==39||i.next==34?(AO(i,!1),i.acceptToken(LX)):t$(i,!1,e.context.type==zr,e.context.depth)&&i.acceptToken(MX)}),l5=new he((i,e)=>{let t=e.context.type==CO?e.context.depth:-1,n=i.pos;e:for(;;){let r=0,s=i.next;for(;s==32;)s=i.peek(++r);if(!r&&(Cn(i,45,r)||Cn(i,46,r))||!li(s)&&(t<0&&(t=Math.max(e.context.depth+1,r)),r<t))break;for(;;){if(i.next<0)break e;let o=li(i.next);if(i.advance(),o)continue e;n=i.pos}}i.acceptTokenTo(Fm,n)}),O5=ft({DirectiveName:u.keyword,DirectiveContent:u.attributeValue,"DirectiveEnd DocEnd":u.meta,QuotedLiteral:u.string,BlockLiteralHeader:u.special(u.string),BlockLiteralContent:u.content,Literal:u.content,"Key/Literal Key/QuotedLiteral":u.definition(u.propertyName),"Anchor Alias":u.labelName,Tag:u.typeName,Comment:u.lineComment,": , -":u.separator,"?":u.punctuation,"[ ]":u.squareBracket,"{ }":u.brace}),c5=Qt.deserialize({version:14,states:"5lQ!ZQgOOO#PQfO'#CpO#uQfO'#DOOOQR'#Dv'#DvO$qQgO'#DRO%gQdO'#DUO%nQgO'#DUO&ROaO'#D[OOQR'#Du'#DuO&{QgO'#D^O'rQgO'#D`OOQR'#Dt'#DtO(iOqO'#DbOOQP'#Dj'#DjO(zQaO'#CmO)YQgO'#CmOOQP'#Cm'#CmQ)jQaOOQ)uQgOOQ]QgOOO*PQdO'#CrO*nQdO'#CtOOQO'#Dw'#DwO+]Q`O'#CxO+hQdO'#CwO+rQ`O'#CwOOQO'#Cv'#CvO+wQdO'#CvOOQO'#Cq'#CqO,UQ`O,59[O,^QfO,59[OOQR,59[,59[OOQO'#Cx'#CxO,eQ`O'#DPO,pQdO'#DPOOQO'#Dx'#DxO,zQdO'#DxO-XQ`O,59jO-aQfO,59jOOQR,59j,59jOOQR'#DS'#DSO-hQcO,59mO-sQgO'#DVO.TQ`O'#DVO.YQcO,59pOOQR'#DX'#DXO#|QfO'#DWO.hQcO'#DWOOQR,59v,59vO.yOWO,59vO/OOaO,59vO/WOaO,59vO/cQgO'#D_OOQR,59x,59xO0VQgO'#DaOOQR,59z,59zOOQP,59|,59|O0yOaO,59|O1ROaO,59|O1aOqO,59|OOQP-E7h-E7hO1oQgO,59XOOQP,59X,59XO2PQaO'#DeO2_QgO'#DeO2oQgO'#DkOOQP'#Dk'#DkQ)jQaOOO3PQdO'#CsOOQO,59^,59^O3kQdO'#CuOOQO,59`,59`OOQO,59c,59cO4VQdO,59cO4aQdO'#CzO4kQ`O'#CzOOQO,59b,59bOOQU,5:Q,5:QOOQR1G.v1G.vO4pQ`O1G.vOOQU-E7d-E7dO4xQdO,59kOOQO,59k,59kO5SQdO'#DQO5^Q`O'#DQOOQO,5:d,5:dOOQU,5:R,5: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iteral Anchor Alias Tag BlockLiteralContent Comment Stream BOM Document ] [ FlowSequence Item Tagged Anchored Anchored Tagged FlowMapping Pair Key : Pair , } { FlowMapping Pair Pair BlockSequence Item Item BlockMapping Pair Pair Key Pair Pair BlockLiteral BlockLiteralHeader Tagged Anchored Anchored Tagged Directive DirectiveName DirectiveContent Document",maxTerm:74,context:t5,nodeProps:[["isolate",-3,8,9,14,""],["openedBy",18,"[",32,"{"],["closedBy",19,"]",33,"}"]],propSources:[O5],skippedNodes:[0],repeatNodeCount:6,tokenData:"-Y~RnOX#PXY$QYZ$]Z]#P]^$]^p#Ppq$Qqs#Pst$btu#Puv$yv|#P|}&e}![#P![!]'O!]!`#P!`!a'i!a!}#P!}#O*g#O#P#P#P#Q+Q#Q#o#P#o#p+k#p#q'i#q#r,U#r;'S#P;'S;=`#z<%l?HT#P?HT?HU,o?HUO#PQ#UU!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PQ#kTOY#PZs#Pt;'S#P;'S;=`#z<%lO#PQ#}P;=`<%l#P~$VQ!f~XY$Qpq$Q~$bO!g~~$gS^~OY$bZ;'S$b;'S;=`$s<%lO$b~$vP;=`<%l$bR%OX!WQOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR%rX!WQ!VPOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR&bP;=`<%l%kR&lUoP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'VUmP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'p[!PP!WQOY#PZp#Ppq#hq{#P{|(f|}#P}!O(f!O!R#P!R![)p![;'S#P;'S;=`#z<%lO#PR(mW!PP!WQOY#PZp#Ppq#hq!R#P!R![)V![;'S#P;'S;=`#z<%lO#PR)^U!PP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR)wY!PP!WQOY#PZp#Ppq#hq{#P{|)V|}#P}!O)V!O;'S#P;'S;=`#z<%lO#PR*nUcP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+XUbP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+rUqP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,]UpP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,vU`P!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#P",tokenizers:[i5,n5,a5,l5,0,1],topRules:{Stream:[0,15]},tokenPrec:0}),d5=ut.define({name:"yaml",parser:c5.configure({props:[pt.add({Stream:i=>{for(let e=i.node.resolve(i.pos,-1);e&&e.to>=i.pos;e=e.parent){if(e.name=="BlockLiteralContent"&&e.from<e.to)return i.baseIndentFor(e);if(e.name=="BlockLiteral")return i.baseIndentFor(e)+i.unit;if(e.name=="BlockSequence"||e.name=="BlockMapping")return i.column(e.firstChild.from,1);if(e.name=="QuotedLiteral")return null;if(e.name=="Literal"){let t=i.column(e.from,1);if(t==i.lineIndent(e.from,1))return t;if(e.to>i.pos)return null}}return null},FlowMapping:Ni({closing:"}"}),FlowSequence:Ni({closing:"]"})}),mt.add({"FlowMapping FlowSequence":Tn,"Item Pair BlockLiteral":(i,e)=>({from:e.doc.lineAt(i.from).to,to:i.to})})]}),languageData:{commentTokens:{line:"#"},indentOnInput:/^\s*[\]\}]$/}});function h5(){return new zt(d5)}const f5=36,i$=1,u5=2,Yn=3,UO=4,p5=5,m5=6,$5=7,g5=8,Q5=9,y5=10,b5=11,S5=12,w5=13,P5=14,x5=15,T5=16,v5=17,n$=18,k5=19,r$=20,s$=21,o$=22,X5=23,_5=24;function jO(i){return i>=65&&i<=90||i>=97&&i<=122||i>=48&&i<=57}function R5(i){return i>=48&&i<=57||i>=97&&i<=102||i>=65&&i<=70}function nn(i,e,t){for(let n=!1;;){if(i.next<0)return;if(i.next==e&&!n){i.advance();return}n=t&&!n&&i.next==92,i.advance()}}function Z5(i,e){e:for(;;){if(i.next<0)return;if(i.next==36){i.advance();for(let t=0;t<e.length;t++){if(i.next!=e.charCodeAt(t))continue e;i.advance()}if(i.next==36){i.advance();return}}else i.advance()}}function z5(i,e){let t="[{<(".indexOf(String.fromCharCode(e)),n=t<0?e:"]}>)".charCodeAt(t);for(;;){if(i.next<0)return;if(i.next==n&&i.peek(1)==39){i.advance(2);return}i.advance()}}function MO(i,e){for(;!(i.next!=95&&!jO(i.next));)e!=null&&(e+=String.fromCharCode(i.next)),i.advance();return e}function q5(i){if(i.next==39||i.next==34||i.next==96){let e=i.next;i.advance(),nn(i,e,!1)}else MO(i)}function a$(i,e){for(;i.next==48||i.next==49;)i.advance();e&&i.next==e&&i.advance()}function l$(i,e){for(;;){if(i.next==46){if(e)break;e=!0}else if(i.next<48||i.next>57)break;i.advance()}if(i.next==69||i.next==101)for(i.advance(),(i.next==43||i.next==45)&&i.advance();i.next>=48&&i.next<=57;)i.advance()}function O$(i){for(;!(i.next<0||i.next==10);)i.advance()}function rn(i,e){for(let t=0;t<e.length;t++)if(e.charCodeAt(t)==i)return!0;return!1}const LO=` \r
564
+ `;function c$(i,e,t){let n=Object.create(null);n.true=n.false=p5,n.null=n.unknown=m5;for(let r of i.split(" "))r&&(n[r]=r$);for(let r of e.split(" "))r&&(n[r]=s$);for(let r of(t||"").split(" "))r&&(n[r]=_5);return n}const GO={backslashEscapes:!1,hashComments:!1,spaceAfterDashes:!1,slashComments:!1,doubleQuotedStrings:!1,doubleDollarQuotedStrings:!1,unquotedBitLiterals:!1,treatBitsAsBytes:!1,charSetCasts:!1,plsqlQuotingMechanism:!1,operatorChars:"*+-%<>!=&|~^/",specialVar:"?",identifierQuotes:'"',caseInsensitiveIdentifiers:!1,words:c$("absolute action add after all allocate alter and any are as asc assertion at authorization before begin between both breadth by call cascade cascaded case cast catalog check close collate collation column commit condition connect connection constraint constraints constructor continue corresponding count create cross cube current current_date current_default_transform_group current_transform_group_for_type current_path current_role current_time current_timestamp current_user cursor cycle data day deallocate declare default deferrable deferred delete depth deref desc describe descriptor deterministic diagnostics disconnect distinct do domain drop dynamic each else elseif end end-exec equals escape except exception exec execute exists exit external fetch first for foreign found from free full function general get global go goto grant group grouping handle having hold hour identity if immediate in indicator initially inner inout input insert intersect into is isolation join key language last lateral leading leave left level like limit local localtime localtimestamp locator loop map match method minute modifies module month names natural nesting new next no none not of old on only open option or order ordinality out outer output overlaps pad parameter partial path prepare preserve primary prior privileges procedure public read reads recursive redo ref references referencing relative release repeat resignal restrict result return returns revoke right role rollback rollup routine row rows savepoint schema scroll search second section select session session_user set sets signal similar size some space specific specifictype sql sqlexception sqlstate sqlwarning start state static system_user table temporary then timezone_hour timezone_minute to trailing transaction translation treat trigger under undo union unique unnest until update usage user using value values view when whenever where while with without work write year zone ","array binary bit boolean char character clob date decimal double float int integer interval large national nchar nclob numeric object precision real smallint time timestamp varchar varying ")};function V5(i,e,t,n){let r={};for(let s in GO)r[s]=(i.hasOwnProperty(s)?i:GO)[s];return e&&(r.words=c$(e,t||"",n)),r}function d$(i){return new he(e=>{var t;let{next:n}=e;if(e.advance(),rn(n,LO)){for(;rn(e.next,LO);)e.advance();e.acceptToken(f5)}else if(n==36&&i.doubleDollarQuotedStrings){let r=MO(e,"");e.next==36&&(e.advance(),Z5(e,r),e.acceptToken(Yn))}else if(n==39||n==34&&i.doubleQuotedStrings)nn(e,n,i.backslashEscapes),e.acceptToken(Yn);else if(n==35&&i.hashComments||n==47&&e.next==47&&i.slashComments)O$(e),e.acceptToken(i$);else if(n==45&&e.next==45&&(!i.spaceAfterDashes||e.peek(1)==32))O$(e),e.acceptToken(i$);else if(n==47&&e.next==42){e.advance();for(let r=1;;){let s=e.next;if(e.next<0)break;if(e.advance(),s==42&&e.next==47){if(r--,e.advance(),!r)break}else s==47&&e.next==42&&(r++,e.advance())}e.acceptToken(u5)}else if((n==101||n==69)&&e.next==39)e.advance(),nn(e,39,!0),e.acceptToken(Yn);else if((n==110||n==78)&&e.next==39&&i.charSetCasts)e.advance(),nn(e,39,i.backslashEscapes),e.acceptToken(Yn);else if(n==95&&i.charSetCasts)for(let r=0;;r++){if(e.next==39&&r>1){e.advance(),nn(e,39,i.backslashEscapes),e.acceptToken(Yn);break}if(!jO(e.next))break;e.advance()}else if(i.plsqlQuotingMechanism&&(n==113||n==81)&&e.next==39&&e.peek(1)>0&&!rn(e.peek(1),LO)){let r=e.peek(1);e.advance(2),z5(e,r),e.acceptToken(Yn)}else if(rn(n,i.identifierQuotes)){const r=n==91?93:n;nn(e,r,!1),e.acceptToken(k5)}else if(n==40)e.acceptToken($5);else if(n==41)e.acceptToken(g5);else if(n==123)e.acceptToken(Q5);else if(n==125)e.acceptToken(y5);else if(n==91)e.acceptToken(b5);else if(n==93)e.acceptToken(S5);else if(n==59)e.acceptToken(w5);else if(i.unquotedBitLiterals&&n==48&&e.next==98)e.advance(),a$(e),e.acceptToken(o$);else if((n==98||n==66)&&(e.next==39||e.next==34)){const r=e.next;e.advance(),i.treatBitsAsBytes?(nn(e,r,i.backslashEscapes),e.acceptToken(X5)):(a$(e,r),e.acceptToken(o$))}else if(n==48&&(e.next==120||e.next==88)||(n==120||n==88)&&e.next==39){let r=e.next==39;for(e.advance();R5(e.next);)e.advance();r&&e.next==39&&e.advance(),e.acceptToken(UO)}else if(n==46&&e.next>=48&&e.next<=57)l$(e,!0),e.acceptToken(UO);else if(n==46)e.acceptToken(P5);else if(n>=48&&n<=57)l$(e,!1),e.acceptToken(UO);else if(rn(n,i.operatorChars)){for(;rn(e.next,i.operatorChars);)e.advance();e.acceptToken(x5)}else if(rn(n,i.specialVar))e.next==n&&e.advance(),q5(e),e.acceptToken(v5);else if(n==58||n==44)e.acceptToken(T5);else if(jO(n)){let r=MO(e,String.fromCharCode(n));e.acceptToken(e.next==46||e.peek(-r.length-1)==46?n$:(t=i.words[r.toLowerCase()])!==null&&t!==void 0?t:n$)}})}const h$=d$(GO),C5=Qt.deserialize({version:14,states:"%vQ]QQOOO#wQRO'#DSO$OQQO'#CwO%eQQO'#CxO%lQQO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; . Operator Punctuation SpecialVar Identifier QuotedIdentifier Keyword Type Bits Bytes Builtin Script Statement CompositeIdentifier Parens Braces Brackets Statement",maxTerm:38,nodeProps:[["isolate",-4,1,2,3,19,""]],skippedNodes:[0,1,2],repeatNodeCount:3,tokenData:"RORO",tokenizers:[0,h$],topRules:{Script:[0,25]},tokenPrec:0});function IO(i){let e=i.cursor().moveTo(i.from,-1);for(;/Comment/.test(e.name);)e.moveTo(e.from,-1);return e.node}function Vr(i,e){let t=i.sliceString(e.from,e.to),n=/^([`'"\[])(.*)([`'"\]])$/.exec(t);return n?n[2]:t}function Xo(i){return i&&(i.name=="Identifier"||i.name=="QuotedIdentifier")}function Y5(i,e){if(e.name=="CompositeIdentifier"){let t=[];for(let n=e.firstChild;n;n=n.nextSibling)Xo(n)&&t.push(Vr(i,n));return t}return[Vr(i,e)]}function f$(i,e){for(let t=[];;){if(!e||e.name!=".")return t;let n=IO(e);if(!Xo(n))return t;t.unshift(Vr(i,n)),e=IO(n)}}function W5(i,e){let t=Oe(i).resolveInner(e,-1),n=E5(i.doc,t);return t.name=="Identifier"||t.name=="QuotedIdentifier"||t.name=="Keyword"?{from:t.from,quoted:t.name=="QuotedIdentifier"?i.doc.sliceString(t.from,t.from+1):null,parents:f$(i.doc,IO(t)),aliases:n}:t.name=="."?{from:e,quoted:null,parents:f$(i.doc,t),aliases:n}:{from:e,quoted:null,parents:[],empty:!0,aliases:n}}const A5=new Set("where group having order union intersect except all distinct limit offset fetch for".split(" "));function E5(i,e){let t;for(let r=e;!t;r=r.parent){if(!r)return null;r.name=="Statement"&&(t=r)}let n=null;for(let r=t.firstChild,s=!1,o=null;r;r=r.nextSibling){let a=r.name=="Keyword"?i.sliceString(r.from,r.to).toLowerCase():null,l=null;if(!s)s=a=="from";else if(a=="as"&&o&&Xo(r.nextSibling))l=Vr(i,r.nextSibling);else{if(a&&A5.has(a))break;o&&Xo(r)&&(l=Vr(i,r))}l&&(n||(n=Object.create(null)),n[l]=Y5(i,o)),o=/Identifier$/.test(r.name)?r:null}return n}function U5(i,e,t){return t.map(n=>({...n,label:n.label[0]==i?n.label:i+n.label+e,apply:void 0}))}const j5=/^\w*$/,M5=/^[`'"\[]?\w*[`'"\]]?$/;function u$(i){return i.self&&typeof i.self.label=="string"}class DO{constructor(e,t){this.idQuote=e,this.idCaseInsensitive=t,this.list=[],this.children=void 0}child(e){let t=this.children||(this.children=Object.create(null)),n=t[e];return n||(e&&!this.list.some(r=>r.label==e)&&this.list.push(p$(e,"type",this.idQuote,this.idCaseInsensitive)),t[e]=new DO(this.idQuote,this.idCaseInsensitive))}maybeChild(e){return this.children?this.children[e]:null}addCompletion(e){let t=this.list.findIndex(n=>n.label==e.label);t>-1?this.list[t]=e:this.list.push(e)}addCompletions(e){for(let t of e)this.addCompletion(typeof t=="string"?p$(t,"property",this.idQuote,this.idCaseInsensitive):t)}addNamespace(e){Array.isArray(e)?this.addCompletions(e):u$(e)?this.addNamespace(e.children):this.addNamespaceObject(e)}addNamespaceObject(e){for(let t of Object.keys(e)){let n=e[t],r=null,s=t.replace(/\\?\./g,a=>a=="."?"\0":a).split("\0"),o=this;u$(n)&&(r=n.self,n=n.children);for(let a=0;a<s.length;a++)r&&a==s.length-1&&o.addCompletion(r),o=o.child(s[a].replace(/\\\./g,"."));o.addNamespace(n)}}}function p$(i,e,t,n){return new RegExp("^[a-z_][a-z_\\d]*$",n?"i":"").test(i)?{label:i,type:e}:{label:i,type:e,apply:t+i+m$(t)}}function m$(i){return i==="["?"]":i}function L5(i,e,t,n,r,s){var o;let a=((o=s==null?void 0:s.spec.identifierQuotes)===null||o===void 0?void 0:o[0])||'"',l=new DO(a,!!(s!=null&&s.spec.caseInsensitiveIdentifiers)),O=r?l.child(r):null;return l.addNamespace(i),e&&(O||l).addCompletions(e),t&&l.addCompletions(t),O&&l.addCompletions(O.list),n&&l.addCompletions((O||l).child(n).list),c=>{let{parents:d,from:h,quoted:f,empty:p,aliases:m}=W5(c.state,c.pos);if(p&&!c.explicit)return null;m&&d.length==1&&(d=m[d[0]]||d);let $=l;for(let y of d){for(;!$.children||!$.children[y];)if($==l&&O)$=O;else if($==O&&n)$=$.child(n);else return null;let S=$.maybeChild(y);if(!S)return null;$=S}let g=$.list;if($==l&&m&&(g=g.concat(Object.keys(m).map(y=>({label:y,type:"constant"})))),f){let y=f[0],S=m$(y),R=c.state.sliceDoc(c.pos,c.pos+1)==S;return{from:h,to:R?c.pos+1:void 0,options:U5(y,S,g),validFor:M5}}else return{from:h,options:g,validFor:j5}}}function G5(i){return i==s$?"type":i==r$?"keyword":"variable"}function I5(i,e,t){let n=Object.keys(i).map(r=>t(e?r.toUpperCase():r,G5(i[r])));return Dl(["QuotedIdentifier","String","LineComment","BlockComment","."],lo(n))}let D5=C5.configure({props:[pt.add({Statement:qt()}),mt.add({Statement(i,e){return{from:Math.min(i.from+100,e.doc.lineAt(i.from).to),to:i.to}},BlockComment(i){return{from:i.from+2,to:i.to-2}}}),ft({Keyword:u.keyword,Type:u.typeName,Builtin:u.standard(u.name),Bits:u.number,Bytes:u.string,Bool:u.bool,Null:u.null,Number:u.number,String:u.string,Identifier:u.name,QuotedIdentifier:u.special(u.string),SpecialVar:u.special(u.name),LineComment:u.lineComment,BlockComment:u.blockComment,Operator:u.operator,"Semi Punctuation":u.punctuation,"( )":u.paren,"{ }":u.brace,"[ ]":u.squareBracket})]});class _o{constructor(e,t,n){this.dialect=e,this.language=t,this.spec=n}get extension(){return this.language.extension}configureLanguage(e,t){return new _o(this.dialect,this.language.configure(e,t),this.spec)}static define(e){let t=V5(e,e.keywords,e.types,e.builtin),n=ut.define({name:"sql",parser:D5.configure({tokenizers:[{from:h$,to:d$(t)}]}),languageData:{commentTokens:{line:"--",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}});return new _o(t,n,e)}}function B5(i,e){return{label:i,type:e,boost:-1}}function N5(i,e=!1,t){return I5(i.dialect.words,e,t||B5)}function F5(i){return i.schema?L5(i.schema,i.tables,i.schemas,i.defaultTable,i.defaultSchema,i.dialect||BO):()=>null}function H5(i){return i.schema?(i.dialect||BO).language.data.of({autocomplete:F5(i)}):[]}function K5(i={}){let e=i.dialect||BO;return new zt(e.language,[H5(i),e.language.data.of({autocomplete:N5(e,i.upperCaseKeywords,i.keywordCompletion)})])}const BO=_o.define({});class Ro{static create(e,t,n,r,s){let o=r+(r<<8)+e+(t<<4)|0;return new Ro(e,t,n,o,s,[],[])}constructor(e,t,n,r,s,o,a){this.type=e,this.value=t,this.from=n,this.hash=r,this.end=s,this.children=o,this.positions=a,this.hashProp=[[E.contextHash,r]]}addChild(e,t){e.prop(E.contextHash)!=this.hash&&(e=new K(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(t)}toTree(e,t=this.end){let n=this.children.length-1;return n>=0&&(t=Math.max(t,this.positions[n]+this.children[n].length+this.from)),new K(e.types[this.type],this.children,this.positions,t-this.from).balance({makeTree:(r,s,o)=>new K(Qe.none,r,s,o,this.hashProp)})}}var x;(function(i){i[i.Document=1]="Document",i[i.CodeBlock=2]="CodeBlock",i[i.FencedCode=3]="FencedCode",i[i.Blockquote=4]="Blockquote",i[i.HorizontalRule=5]="HorizontalRule",i[i.BulletList=6]="BulletList",i[i.OrderedList=7]="OrderedList",i[i.ListItem=8]="ListItem",i[i.ATXHeading1=9]="ATXHeading1",i[i.ATXHeading2=10]="ATXHeading2",i[i.ATXHeading3=11]="ATXHeading3",i[i.ATXHeading4=12]="ATXHeading4",i[i.ATXHeading5=13]="ATXHeading5",i[i.ATXHeading6=14]="ATXHeading6",i[i.SetextHeading1=15]="SetextHeading1",i[i.SetextHeading2=16]="SetextHeading2",i[i.HTMLBlock=17]="HTMLBlock",i[i.LinkReference=18]="LinkReference",i[i.Paragraph=19]="Paragraph",i[i.CommentBlock=20]="CommentBlock",i[i.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",i[i.Escape=22]="Escape",i[i.Entity=23]="Entity",i[i.HardBreak=24]="HardBreak",i[i.Emphasis=25]="Emphasis",i[i.StrongEmphasis=26]="StrongEmphasis",i[i.Link=27]="Link",i[i.Image=28]="Image",i[i.InlineCode=29]="InlineCode",i[i.HTMLTag=30]="HTMLTag",i[i.Comment=31]="Comment",i[i.ProcessingInstruction=32]="ProcessingInstruction",i[i.Autolink=33]="Autolink",i[i.HeaderMark=34]="HeaderMark",i[i.QuoteMark=35]="QuoteMark",i[i.ListMark=36]="ListMark",i[i.LinkMark=37]="LinkMark",i[i.EmphasisMark=38]="EmphasisMark",i[i.CodeMark=39]="CodeMark",i[i.CodeText=40]="CodeText",i[i.CodeInfo=41]="CodeInfo",i[i.LinkTitle=42]="LinkTitle",i[i.LinkLabel=43]="LinkLabel",i[i.URL=44]="URL"})(x||(x={}));class J5{constructor(e,t){this.start=e,this.content=t,this.marks=[],this.parsers=[]}}class e_{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return Cr(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,t=0,n=0){for(let r=t;r<e;r++)n+=this.text.charCodeAt(r)==9?4-n%4:1;return n}findColumn(e){let t=0;for(let n=0;t<this.text.length&&n<e;t++)n+=this.text.charCodeAt(t)==9?4-n%4:1;return t}scrub(){if(!this.baseIndent)return this.text;let e="";for(let t=0;t<this.basePos;t++)e+=" ";return e+this.text.slice(this.basePos)}}function $$(i,e,t){if(t.pos==t.text.length||i!=e.block&&t.indent>=e.stack[t.depth+1].value+t.baseIndent)return!0;if(t.indent>=t.baseIndent+4)return!1;let n=(i.type==x.OrderedList?HO:FO)(t,e,!1);return n>0&&(i.type!=x.BulletList||NO(t,e,!1)<0)&&t.text.charCodeAt(t.pos+n-1)==i.value}const g$={[x.Blockquote](i,e,t){return t.next!=62?!1:(t.markers.push(ne(x.QuoteMark,e.lineStart+t.pos,e.lineStart+t.pos+1)),t.moveBase(t.pos+(lt(t.text.charCodeAt(t.pos+1))?2:1)),i.end=e.lineStart+t.text.length,!0)},[x.ListItem](i,e,t){return t.indent<t.baseIndent+i.value&&t.next>-1?!1:(t.moveBaseColumn(t.baseIndent+i.value),!0)},[x.OrderedList]:$$,[x.BulletList]:$$,[x.Document](){return!0}};function lt(i){return i==32||i==9||i==10||i==13}function Cr(i,e=0){for(;e<i.length&&lt(i.charCodeAt(e));)e++;return e}function Q$(i,e,t){for(;e>t&&lt(i.charCodeAt(e-1));)e--;return e}function y$(i){if(i.next!=96&&i.next!=126)return-1;let e=i.pos+1;for(;e<i.text.length&&i.text.charCodeAt(e)==i.next;)e++;if(e<i.pos+3)return-1;if(i.next==96){for(let t=e;t<i.text.length;t++)if(i.text.charCodeAt(t)==96)return-1}return e}function b$(i){return i.next!=62?-1:i.text.charCodeAt(i.pos+1)==32?2:1}function NO(i,e,t){if(i.next!=42&&i.next!=45&&i.next!=95)return-1;let n=1;for(let r=i.pos+1;r<i.text.length;r++){let s=i.text.charCodeAt(r);if(s==i.next)n++;else if(!lt(s))return-1}return t&&i.next==45&&P$(i)>-1&&i.depth==e.stack.length&&e.parser.leafBlockParsers.indexOf(X$.SetextHeading)>-1||n<3?-1:1}function S$(i,e){for(let t=i.stack.length-1;t>=0;t--)if(i.stack[t].type==e)return!0;return!1}function FO(i,e,t){return(i.next==45||i.next==43||i.next==42)&&(i.pos==i.text.length-1||lt(i.text.charCodeAt(i.pos+1)))&&(!t||S$(e,x.BulletList)||i.skipSpace(i.pos+2)<i.text.length)?1:-1}function HO(i,e,t){let n=i.pos,r=i.next;for(;r>=48&&r<=57;){n++;if(n==i.text.length)return-1;r=i.text.charCodeAt(n)}return n==i.pos||n>i.pos+9||r!=46&&r!=41||n<i.text.length-1&&!lt(i.text.charCodeAt(n+1))||t&&!S$(e,x.OrderedList)&&(i.skipSpace(n+1)==i.text.length||n>i.pos+1||i.next!=49)?-1:n+1-i.pos}function w$(i){if(i.next!=35)return-1;let e=i.pos+1;for(;e<i.text.length&&i.text.charCodeAt(e)==35;)e++;if(e<i.text.length&&i.text.charCodeAt(e)!=32)return-1;let t=e-i.pos;return t>6?-1:t}function P$(i){if(i.next!=45&&i.next!=61||i.indent>=i.baseIndent+4)return-1;let e=i.pos+1;for(;e<i.text.length&&i.text.charCodeAt(e)==i.next;)e++;let t=e;for(;e<i.text.length&&lt(i.text.charCodeAt(e));)e++;return e==i.text.length?t:-1}const KO=/^[ \t]*$/,x$=/-->/,T$=/\?>/,JO=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*<!--/,x$],[/^\s*<\?/,T$],[/^\s*<![A-Z]/,/>/],[/^\s*<!\[CDATA\[/,/\]\]>/],[/^\s*<\/?(?: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|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i,KO],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,KO]];function v$(i,e,t){if(i.next!=60)return-1;let n=i.text.slice(i.pos);for(let r=0,s=JO.length-(t?1:0);r<s;r++)if(JO[r][0].test(n))return r;return-1}function k$(i,e){let t=i.countIndent(e,i.pos,i.indent),n=i.countIndent(i.skipSpace(e),e,t);return n>=t+5?t+1:n}function _i(i,e,t){let n=i.length-1;n>=0&&i[n].to==e&&i[n].type==x.CodeText?i[n].to=t:i.push(ne(x.CodeText,e,t))}const Zo={LinkReference:void 0,IndentedCode(i,e){let t=e.baseIndent+4;if(e.indent<t)return!1;let n=e.findColumn(t),r=i.lineStart+n,s=i.lineStart+e.text.length,o=[],a=[];for(_i(o,r,s);i.nextLine()&&e.depth>=i.stack.length;)if(e.pos==e.text.length){_i(a,i.lineStart-1,i.lineStart);for(let l of e.markers)a.push(l)}else{if(e.indent<t)break;{if(a.length){for(let O of a)O.type==x.CodeText?_i(o,O.from,O.to):o.push(O);a=[]}_i(o,i.lineStart-1,i.lineStart);for(let O of e.markers)o.push(O);s=i.lineStart+e.text.length;let l=i.lineStart+e.findColumn(e.baseIndent+4);l<s&&_i(o,l,s)}}return a.length&&(a=a.filter(l=>l.type!=x.CodeText),a.length&&(e.markers=a.concat(e.markers))),i.addNode(i.buffer.writeElements(o,-r).finish(x.CodeBlock,s-r),r),!0},FencedCode(i,e){let t=y$(e);if(t<0)return!1;let n=i.lineStart+e.pos,r=e.next,s=t-e.pos,o=e.skipSpace(t),a=Q$(e.text,e.text.length,o),l=[ne(x.CodeMark,n,n+s)];o<a&&l.push(ne(x.CodeInfo,i.lineStart+o,i.lineStart+a));for(let O=!0,c=!0,d=!1;i.nextLine()&&e.depth>=i.stack.length;O=!1){let h=e.pos;if(e.indent-e.baseIndent<4)for(;h<e.text.length&&e.text.charCodeAt(h)==r;)h++;if(h-e.pos>=s&&e.skipSpace(h)==e.text.length){for(let f of e.markers)l.push(f);c&&d&&_i(l,i.lineStart-1,i.lineStart),l.push(ne(x.CodeMark,i.lineStart+e.pos,i.lineStart+h)),i.nextLine();break}else{d=!0,O||(_i(l,i.lineStart-1,i.lineStart),c=!1);for(let m of e.markers)l.push(m);let f=i.lineStart+e.basePos,p=i.lineStart+e.text.length;f<p&&(_i(l,f,p),c=!1)}}return i.addNode(i.buffer.writeElements(l,-n).finish(x.FencedCode,i.prevLineEnd()-n),n),!0},Blockquote(i,e){let t=b$(e);return t<0?!1:(i.startContext(x.Blockquote,e.pos),i.addNode(x.QuoteMark,i.lineStart+e.pos,i.lineStart+e.pos+1),e.moveBase(e.pos+t),null)},HorizontalRule(i,e){if(NO(e,i,!1)<0)return!1;let t=i.lineStart+e.pos;return i.nextLine(),i.addNode(x.HorizontalRule,t),!0},BulletList(i,e){let t=FO(e,i,!1);if(t<0)return!1;i.block.type!=x.BulletList&&i.startContext(x.BulletList,e.basePos,e.next);let n=k$(e,e.pos+1);return i.startContext(x.ListItem,e.basePos,n-e.baseIndent),i.addNode(x.ListMark,i.lineStart+e.pos,i.lineStart+e.pos+t),e.moveBaseColumn(n),null},OrderedList(i,e){let t=HO(e,i,!1);if(t<0)return!1;i.block.type!=x.OrderedList&&i.startContext(x.OrderedList,e.basePos,e.text.charCodeAt(e.pos+t-1));let n=k$(e,e.pos+t);return i.startContext(x.ListItem,e.basePos,n-e.baseIndent),i.addNode(x.ListMark,i.lineStart+e.pos,i.lineStart+e.pos+t),e.moveBaseColumn(n),null},ATXHeading(i,e){let t=w$(e);if(t<0)return!1;let n=e.pos,r=i.lineStart+n,s=Q$(e.text,e.text.length,n),o=s;for(;o>n&&e.text.charCodeAt(o-1)==e.next;)o--;(o==s||o==n||!lt(e.text.charCodeAt(o-1)))&&(o=e.text.length);let a=i.buffer.write(x.HeaderMark,0,t).writeElements(i.parser.parseInline(e.text.slice(n+t+1,o),r+t+1),-r);o<e.text.length&&a.write(x.HeaderMark,o-n,s-n);let l=a.finish(x.ATXHeading1-1+t,e.text.length-n);return i.nextLine(),i.addNode(l,r),!0},HTMLBlock(i,e){let t=v$(e,i,!1);if(t<0)return!1;let n=i.lineStart+e.pos,r=JO[t][1],s=[],o=r!=KO;for(;!r.test(e.text)&&i.nextLine();){if(e.depth<i.stack.length){o=!1;break}for(let O of e.markers)s.push(O)}o&&i.nextLine();let a=r==x$?x.CommentBlock:r==T$?x.ProcessingInstructionBlock:x.HTMLBlock,l=i.prevLineEnd();return i.addNode(i.buffer.writeElements(s,-n).finish(a,l-n),n),!0},SetextHeading:void 0};class t_{constructor(e){this.stage=0,this.elts=[],this.pos=0,this.start=e.start,this.advance(e.content)}nextLine(e,t,n){if(this.stage==-1)return!1;let r=n.content+`
565
+ `+t.scrub(),s=this.advance(r);return s>-1&&s<r.length?this.complete(e,n,s):!1}finish(e,t){return(this.stage==2||this.stage==3)&&Cr(t.content,this.pos)==t.content.length?this.complete(e,t,t.content.length):!1}complete(e,t,n){return e.addLeafElement(t,ne(x.LinkReference,this.start,this.start+n,this.elts)),!0}nextStage(e){return e?(this.pos=e.to-this.start,this.elts.push(e),this.stage++,!0):(e===!1&&(this.stage=-1),!1)}advance(e){for(;;){if(this.stage==-1)return-1;if(this.stage==0){if(!this.nextStage(A$(e,this.pos,this.start,!0)))return-1;if(e.charCodeAt(this.pos)!=58)return this.stage=-1;this.elts.push(ne(x.LinkMark,this.pos+this.start,this.pos+this.start+1)),this.pos++}else if(this.stage==1){if(!this.nextStage(Y$(e,Cr(e,this.pos),this.start)))return-1}else if(this.stage==2){let t=Cr(e,this.pos),n=0;if(t>this.pos){let r=W$(e,t,this.start);if(r){let s=ec(e,r.to-this.start);s>0&&(this.nextStage(r),n=s)}}return n||(n=ec(e,this.pos)),n>0&&n<e.length?n:-1}else return ec(e,this.pos)}}}function ec(i,e){for(;e<i.length;e++){let t=i.charCodeAt(e);if(t==10)break;if(!lt(t))return-1}return e}class i_{nextLine(e,t,n){let r=t.depth<e.stack.length?-1:P$(t),s=t.next;if(r<0)return!1;let o=ne(x.HeaderMark,e.lineStart+t.pos,e.lineStart+r);return e.nextLine(),e.addLeafElement(n,ne(s==61?x.SetextHeading1:x.SetextHeading2,n.start,e.prevLineEnd(),[...e.parser.parseInline(n.content,n.start),o])),!0}finish(){return!1}}const X$={LinkReference(i,e){return e.content.charCodeAt(0)==91?new t_(e):null},SetextHeading(){return new i_}},n_=[(i,e)=>w$(e)>=0,(i,e)=>y$(e)>=0,(i,e)=>b$(e)>=0,(i,e)=>FO(e,i,!0)>=0,(i,e)=>HO(e,i,!0)>=0,(i,e)=>NO(e,i,!0)>=0,(i,e)=>v$(e,i,!0)>=0],r_={text:"",end:0};class s_{constructor(e,t,n,r){this.parser=e,this.input=t,this.ranges=r,this.line=new e_,this.atEnd=!1,this.reusePlaceholders=new Map,this.stoppedAt=null,this.rangeI=0,this.to=r[r.length-1].to,this.lineStart=this.absoluteLineStart=this.absoluteLineEnd=r[0].from,this.block=Ro.create(x.Document,0,this.lineStart,0,0),this.stack=[this.block],this.fragments=n.length?new l_(n,t):null,this.readLine()}get parsedPos(){return this.absoluteLineStart}advance(){if(this.stoppedAt!=null&&this.absoluteLineStart>this.stoppedAt)return this.finish();let{line:e}=this;for(;;){for(let n=0;;){let r=e.depth<this.stack.length?this.stack[this.stack.length-1]:null;for(;n<e.markers.length&&(!r||e.markers[n].from<r.end);){let s=e.markers[n++];this.addNode(s.type,s.from,s.to)}if(!r)break;this.finishContext()}if(e.pos<e.text.length)break;if(!this.nextLine())return this.finish()}if(this.fragments&&this.reuseFragment(e.basePos))return null;e:for(;;){for(let n of this.parser.blockParsers)if(n){let r=n(this,e);if(r!=!1){if(r==!0)return null;e.forward();continue e}}break}let t=new J5(this.lineStart+e.pos,e.text.slice(e.pos));for(let n of this.parser.leafBlockParsers)if(n){let r=n(this,t);r&&t.parsers.push(r)}e:for(;this.nextLine()&&e.pos!=e.text.length;){if(e.indent<e.baseIndent+4){for(let n of this.parser.endLeafBlock)if(n(this,e,t))break e}for(let n of t.parsers)if(n.nextLine(this,e,t))return null;t.content+=`
566
+ `+e.scrub();for(let n of e.markers)t.marks.push(n)}return this.finishLeaf(t),null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}reuseFragment(e){if(!this.fragments.moveTo(this.absoluteLineStart+e,this.absoluteLineStart)||!this.fragments.matches(this.block.hash))return!1;let t=this.fragments.takeNodes(this);return t?(this.absoluteLineStart+=t,this.lineStart=E$(this.absoluteLineStart,this.ranges),this.moveRangeI(),this.absoluteLineStart<this.to?(this.lineStart++,this.absoluteLineStart++,this.readLine()):(this.atEnd=!0,this.readLine()),!0):!1}get depth(){return this.stack.length}parentType(e=this.depth-1){return this.parser.nodeSet.types[this.stack[e].type]}nextLine(){return this.lineStart+=this.line.text.length,this.absoluteLineEnd>=this.to?(this.absoluteLineStart=this.absoluteLineEnd,this.atEnd=!0,this.readLine(),!1):(this.lineStart++,this.absoluteLineStart=this.absoluteLineEnd+1,this.moveRangeI(),this.readLine(),!0)}peekLine(){return this.scanLine(this.absoluteLineEnd+1).text}moveRangeI(){for(;this.rangeI<this.ranges.length-1&&this.absoluteLineStart>=this.ranges[this.rangeI].to;)this.rangeI++,this.absoluteLineStart=Math.max(this.absoluteLineStart,this.ranges[this.rangeI].from)}scanLine(e){let t=r_;if(t.end=e,e>=this.to)t.text="";else if(t.text=this.lineChunkAt(e),t.end+=t.text.length,this.ranges.length>1){let n=this.absoluteLineStart,r=this.rangeI;for(;this.ranges[r].to<t.end;){r++;let s=this.ranges[r].from,o=this.lineChunkAt(s);t.end=s+o.length,t.text=t.text.slice(0,this.ranges[r-1].to-n)+o,n=t.end-t.text.length}}return t}readLine(){let{line:e}=this,{text:t,end:n}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=n,e.reset(t);e.depth<this.stack.length;e.depth++){let r=this.stack[e.depth],s=this.parser.skipContextMarkup[r.type];if(!s)throw new Error("Unhandled block context "+x[r.type]);let o=this.line.markers.length;if(!s(r,this,e)){this.line.markers.length>o&&(r.end=this.line.markers[this.line.markers.length-1].to),e.forward();break}e.forward()}}lineChunkAt(e){let t=this.input.chunk(e),n;if(this.input.lineChunks)n=t==`
567
+ `?"":t;else{let r=t.indexOf(`
568
+ `);n=r<0?t:t.slice(0,r)}return e+n.length>this.to?n.slice(0,this.to-e):n}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(e,t,n=0){this.block=Ro.create(e,n,this.lineStart+t,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(e,t,n=0){this.startContext(this.parser.getNodeType(e),t,n)}addNode(e,t,n){typeof e=="number"&&(e=new K(this.parser.nodeSet.types[e],Wn,Wn,(n??this.prevLineEnd())-t)),this.block.addChild(e,t-this.block.from)}addElement(e){this.block.addChild(e.toTree(this.parser.nodeSet),e.from-this.block.from)}addLeafElement(e,t){this.addNode(this.buffer.writeElements(rc(t.children,e.marks),-t.from).finish(t.type,t.to-t.from),t.from)}finishContext(){let e=this.stack.pop(),t=this.stack[this.stack.length-1];t.addChild(e.toTree(this.parser.nodeSet),e.from-t.from),this.block=t}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(e){return this.ranges.length>1?_$(this.ranges,0,e.topNode,this.ranges[0].from,this.reusePlaceholders):e}finishLeaf(e){for(let n of e.parsers)if(n.finish(this,e))return;let t=rc(this.parser.parseInline(e.content,e.start),e.marks);this.addNode(this.buffer.writeElements(t,-e.start).finish(x.Paragraph,e.content.length),e.start)}elt(e,t,n,r){return typeof e=="string"?ne(this.parser.getNodeType(e),t,n,r):new z$(e,t)}get buffer(){return new Z$(this.parser.nodeSet)}}function _$(i,e,t,n,r){let s=i[e].to,o=[],a=[],l=t.from+n;function O(c,d){for(;d?c>=s:c>s;){let h=i[e+1].from-s;n+=h,c+=h,e++,s=i[e].to}}for(let c=t.firstChild;c;c=c.nextSibling){O(c.from+n,!0);let d=c.from+n,h,f=r.get(c.tree);f?h=f:c.to+n>s?(h=_$(i,e,c,n,r),O(c.to+n,!1)):h=c.toTree(),o.push(h),a.push(d-l)}return O(t.to+n,!1),new K(t.type,o,a,t.to+n-l,t.tree?t.tree.propValues:void 0)}class zo extends Ls{constructor(e,t,n,r,s,o,a,l,O){super(),this.nodeSet=e,this.blockParsers=t,this.leafBlockParsers=n,this.blockNames=r,this.endLeafBlock=s,this.skipContextMarkup=o,this.inlineParsers=a,this.inlineNames=l,this.wrappers=O,this.nodeTypes=Object.create(null);for(let c of e.types)this.nodeTypes[c.name]=c.id}createParse(e,t,n){let r=new s_(this,e,t,n);for(let s of this.wrappers)r=s(r,e,t,n);return r}configure(e){let t=tc(e);if(!t)return this;let{nodeSet:n,skipContextMarkup:r}=this,s=this.blockParsers.slice(),o=this.leafBlockParsers.slice(),a=this.blockNames.slice(),l=this.inlineParsers.slice(),O=this.inlineNames.slice(),c=this.endLeafBlock.slice(),d=this.wrappers;if(Yr(t.defineNodes)){r=Object.assign({},r);let h=n.types.slice(),f;for(let p of t.defineNodes){let{name:m,block:$,composite:g,style:y}=typeof p=="string"?{name:p}:p;if(h.some(P=>P.name==m))continue;g&&(r[h.length]=(P,v,k)=>g(v,k,P.value));let S=h.length,R=g?["Block","BlockContext"]:$?S>=x.ATXHeading1&&S<=x.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;h.push(Qe.define({id:S,name:m,props:R&&[[E.group,R]]})),y&&(f||(f={}),Array.isArray(y)||y instanceof Xt?f[m]=y:Object.assign(f,y))}n=new wn(h),f&&(n=n.extend(ft(f)))}if(Yr(t.props)&&(n=n.extend(...t.props)),Yr(t.remove))for(let h of t.remove){let f=this.blockNames.indexOf(h),p=this.inlineNames.indexOf(h);f>-1&&(s[f]=o[f]=void 0),p>-1&&(l[p]=void 0)}if(Yr(t.parseBlock))for(let h of t.parseBlock){let f=a.indexOf(h.name);if(f>-1)s[f]=h.parse,o[f]=h.leaf;else{let p=h.before?qo(a,h.before):h.after?qo(a,h.after)+1:a.length-1;s.splice(p,0,h.parse),o.splice(p,0,h.leaf),a.splice(p,0,h.name)}h.endLeaf&&c.push(h.endLeaf)}if(Yr(t.parseInline))for(let h of t.parseInline){let f=O.indexOf(h.name);if(f>-1)l[f]=h.parse;else{let p=h.before?qo(O,h.before):h.after?qo(O,h.after)+1:O.length-1;l.splice(p,0,h.parse),O.splice(p,0,h.name)}}return t.wrap&&(d=d.concat(t.wrap)),new zo(n,s,o,a,c,r,l,O,d)}getNodeType(e){let t=this.nodeTypes[e];if(t==null)throw new RangeError(`Unknown node type '${e}'`);return t}parseInline(e,t){let n=new nc(this,e,t);e:for(let r=t;r<n.end;){let s=n.char(r);for(let o of this.inlineParsers)if(o){let a=o(n,s,r);if(a>=0){r=a;continue e}}r++}return n.resolveMarkers(0)}}function Yr(i){return i!=null&&i.length>0}function tc(i){if(!Array.isArray(i))return i;if(i.length==0)return null;let e=tc(i[0]);if(i.length==1)return e;let t=tc(i.slice(1));if(!t||!e)return e||t;let n=(o,a)=>(o||Wn).concat(a||Wn),r=e.wrap,s=t.wrap;return{props:n(e.props,t.props),defineNodes:n(e.defineNodes,t.defineNodes),parseBlock:n(e.parseBlock,t.parseBlock),parseInline:n(e.parseInline,t.parseInline),remove:n(e.remove,t.remove),wrap:r?s?(o,a,l,O)=>r(s(o,a,l,O),a,l,O):r:s}}function qo(i,e){let t=i.indexOf(e);if(t<0)throw new RangeError(`Position specified relative to unknown parser ${e}`);return t}let R$=[Qe.none];for(let i=1,e;e=x[i];i++)R$[i]=Qe.define({id:i,name:e,props:i>=x.Escape?[]:[[E.group,i in g$?["Block","BlockContext"]:["Block","LeafBlock"]]],top:e=="Document"});const Wn=[];class Z${constructor(e){this.nodeSet=e,this.content=[],this.nodes=[]}write(e,t,n,r=0){return this.content.push(e,t,n,4+r*4),this}writeElements(e,t=0){for(let n of e)n.writeTo(this,t);return this}finish(e,t){return K.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:e,length:t})}}class Wr{constructor(e,t,n,r=Wn){this.type=e,this.from=t,this.to=n,this.children=r}writeTo(e,t){let n=e.content.length;e.writeElements(this.children,t),e.content.push(this.type,this.from+t,this.to+t,e.content.length+4-n)}toTree(e){return new Z$(e).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}}class z${constructor(e,t){this.tree=e,this.from=t}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return Wn}writeTo(e,t){e.nodes.push(this.tree),e.content.push(e.nodes.length-1,this.from+t,this.to+t,-1)}toTree(){return this.tree}}function ne(i,e,t,n){return new Wr(i,e,t,n)}const q$={resolve:"Emphasis",mark:"EmphasisMark"},V$={resolve:"Emphasis",mark:"EmphasisMark"},sn={},Vo={};class Je{constructor(e,t,n,r){this.type=e,this.from=t,this.to=n,this.side=r}}const C$="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";let Ar=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{Ar=new RegExp("[\\p{S}|\\p{P}]","u")}catch{}const ic={Escape(i,e,t){if(e!=92||t==i.end-1)return-1;let n=i.char(t+1);for(let r=0;r<C$.length;r++)if(C$.charCodeAt(r)==n)return i.append(ne(x.Escape,t,t+2));return-1},Entity(i,e,t){if(e!=38)return-1;let n=/^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(i.slice(t+1,t+31));return n?i.append(ne(x.Entity,t,t+1+n[0].length)):-1},InlineCode(i,e,t){if(e!=96||t&&i.char(t-1)==96)return-1;let n=t+1;for(;n<i.end&&i.char(n)==96;)n++;let r=n-t,s=0;for(;n<i.end;n++)if(i.char(n)==96){if(s++,s==r&&i.char(n+1)!=96)return i.append(ne(x.InlineCode,t,n+1,[ne(x.CodeMark,t,t+r),ne(x.CodeMark,n+1-r,n+1)]))}else s=0;return-1},HTMLTag(i,e,t){if(e!=60||t==i.end-1)return-1;let n=i.slice(t+1,i.end),r=/^(?:[a-z][-\w+.]+:[^\s>]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(n);if(r)return i.append(ne(x.Autolink,t,t+1+r[0].length,[ne(x.LinkMark,t,t+1),ne(x.URL,t+1,t+r[0].length),ne(x.LinkMark,t+r[0].length,t+1+r[0].length)]));let s=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(n);if(s)return i.append(ne(x.Comment,t,t+1+s[0].length));let o=/^\?[^]*?\?>/.exec(n);if(o)return i.append(ne(x.ProcessingInstruction,t,t+1+o[0].length));let a=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(n);return a?i.append(ne(x.HTMLTag,t,t+1+a[0].length)):-1},Emphasis(i,e,t){if(e!=95&&e!=42)return-1;let n=t+1;for(;i.char(n)==e;)n++;let r=i.slice(t-1,t),s=i.slice(n,n+1),o=Ar.test(r),a=Ar.test(s),l=/\s|^$/.test(r),O=/\s|^$/.test(s),c=!O&&(!a||l||o),d=!l&&(!o||O||a),h=c&&(e==42||!d||o),f=d&&(e==42||!c||a);return i.append(new Je(e==95?q$:V$,t,n,(h?1:0)|(f?2:0)))},HardBreak(i,e,t){if(e==92&&i.char(t+1)==10)return i.append(ne(x.HardBreak,t,t+2));if(e==32){let n=t+1;for(;i.char(n)==32;)n++;if(i.char(n)==10&&n>=t+2)return i.append(ne(x.HardBreak,t,n+1))}return-1},Link(i,e,t){return e==91?i.append(new Je(sn,t,t+1,1)):-1},Image(i,e,t){return e==33&&i.char(t+1)==91?i.append(new Je(Vo,t,t+2,1)):-1},LinkEnd(i,e,t){if(e!=93)return-1;for(let n=i.parts.length-1;n>=0;n--){let r=i.parts[n];if(r instanceof Je&&(r.type==sn||r.type==Vo)){if(!r.side||i.skipSpace(r.to)==t&&!/[(\[]/.test(i.slice(t+1,t+2)))return i.parts[n]=null,-1;let s=i.takeContent(n),o=i.parts[n]=o_(i,s,r.type==sn?x.Link:x.Image,r.from,t+1);if(r.type==sn)for(let a=0;a<n;a++){let l=i.parts[a];l instanceof Je&&l.type==sn&&(l.side=0)}return o.to}}return-1}};function o_(i,e,t,n,r){let{text:s}=i,o=i.char(r),a=r;if(e.unshift(ne(x.LinkMark,n,n+(t==x.Image?2:1))),e.push(ne(x.LinkMark,r-1,r)),o==40){let l=i.skipSpace(r+1),O=Y$(s,l-i.offset,i.offset),c;O&&(l=i.skipSpace(O.to),l!=O.to&&(c=W$(s,l-i.offset,i.offset),c&&(l=i.skipSpace(c.to)))),i.char(l)==41&&(e.push(ne(x.LinkMark,r,r+1)),a=l+1,O&&e.push(O),c&&e.push(c),e.push(ne(x.LinkMark,l,a)))}else if(o==91){let l=A$(s,r-i.offset,i.offset,!1);l&&(e.push(l),a=l.to)}return ne(t,n,a,e)}function Y$(i,e,t){if(i.charCodeAt(e)==60){for(let r=e+1;r<i.length;r++){let s=i.charCodeAt(r);if(s==62)return ne(x.URL,e+t,r+1+t);if(s==60||s==10)return!1}return null}else{let r=0,s=e;for(let o=!1;s<i.length;s++){let a=i.charCodeAt(s);if(lt(a))break;if(o)o=!1;else if(a==40)r++;else if(a==41){if(!r)break;r--}else a==92&&(o=!0)}return s>e?ne(x.URL,e+t,s+t):s==i.length?null:!1}}function W$(i,e,t){let n=i.charCodeAt(e);if(n!=39&&n!=34&&n!=40)return!1;let r=n==40?41:n;for(let s=e+1,o=!1;s<i.length;s++){let a=i.charCodeAt(s);if(o)o=!1;else{if(a==r)return ne(x.LinkTitle,e+t,s+1+t);a==92&&(o=!0)}}return null}function A$(i,e,t,n){for(let r=!1,s=e+1,o=Math.min(i.length,s+999);s<o;s++){let a=i.charCodeAt(s);if(r)r=!1;else{if(a==93)return n?!1:ne(x.LinkLabel,e+t,s+1+t);if(n&&!lt(a)&&(n=!1),a==91)return!1;a==92&&(r=!0)}}return null}class nc{constructor(e,t,n){this.parser=e,this.text=t,this.offset=n,this.parts=[]}char(e){return e>=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,t){return this.text.slice(e-this.offset,t-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,t,n,r,s){return this.append(new Je(e,t,n,(r?1:0)|(s?2:0)))}get hasOpenLink(){for(let e=this.parts.length-1;e>=0;e--){let t=this.parts[e];if(t instanceof Je&&(t.type==sn||t.type==Vo))return!0}return!1}addElement(e){return this.append(e)}resolveMarkers(e){for(let n=e;n<this.parts.length;n++){let r=this.parts[n];if(!(r instanceof Je&&r.type.resolve&&r.side&2))continue;let s=r.type==q$||r.type==V$,o=r.to-r.from,a,l=n-1;for(;l>=e;l--){let m=this.parts[l];if(m instanceof Je&&m.side&1&&m.type==r.type&&!(s&&(r.side&1||m.side&2)&&(m.to-m.from+o)%3==0&&((m.to-m.from)%3||o%3))){a=m;break}}if(!a)continue;let O=r.type.resolve,c=[],d=a.from,h=r.to;if(s){let m=Math.min(2,a.to-a.from,o);d=a.to-m,h=r.from+m,O=m==1?"Emphasis":"StrongEmphasis"}a.type.mark&&c.push(this.elt(a.type.mark,d,a.to));for(let m=l+1;m<n;m++)this.parts[m]instanceof Wr&&c.push(this.parts[m]),this.parts[m]=null;r.type.mark&&c.push(this.elt(r.type.mark,r.from,h));let f=this.elt(O,d,h,c);this.parts[l]=s&&a.from!=d?new Je(a.type,a.from,d,a.side):null,(this.parts[n]=s&&r.to!=h?new Je(r.type,h,r.to,r.side):null)?this.parts.splice(n,0,f):this.parts[n]=f}let t=[];for(let n=e;n<this.parts.length;n++){let r=this.parts[n];r instanceof Wr&&t.push(r)}return t}findOpeningDelimiter(e){for(let t=this.parts.length-1;t>=0;t--){let n=this.parts[t];if(n instanceof Je&&n.type==e&&n.side&1)return t}return null}takeContent(e){let t=this.resolveMarkers(e);return this.parts.length=e,t}getDelimiterAt(e){let t=this.parts[e];return t instanceof Je?t:null}skipSpace(e){return Cr(this.text,e-this.offset)+this.offset}elt(e,t,n,r){return typeof e=="string"?ne(this.parser.getNodeType(e),t,n,r):new z$(e,t)}}nc.linkStart=sn,nc.imageStart=Vo;function rc(i,e){if(!e.length)return i;if(!i.length)return e;let t=i.slice(),n=0;for(let r of e){for(;n<t.length&&t[n].to<r.to;)n++;if(n<t.length&&t[n].from<r.from){let s=t[n];s instanceof Wr&&(t[n]=new Wr(s.type,s.from,s.to,rc(s.children,[r])))}else t.splice(n++,0,r)}return t}const a_=[x.CodeBlock,x.ListItem,x.OrderedList,x.BulletList];class l_{constructor(e,t){this.fragments=e,this.input=t,this.i=0,this.fragment=null,this.fragmentEnd=-1,this.cursor=null,e.length&&(this.fragment=e[this.i++])}nextFragment(){this.fragment=this.i<this.fragments.length?this.fragments[this.i++]:null,this.cursor=null,this.fragmentEnd=-1}moveTo(e,t){for(;this.fragment&&this.fragment.to<=e;)this.nextFragment();if(!this.fragment||this.fragment.from>(e?e-1:0))return!1;if(this.fragmentEnd<0){let s=this.fragment.to;for(;s>0&&this.input.read(s-1,s)!=`
569
+ `;)s--;this.fragmentEnd=s?s-1:0}let n=this.cursor;n||(n=this.cursor=this.fragment.tree.cursor(),n.firstChild());let r=e+this.fragment.offset;for(;n.to<=r;)if(!n.parent())return!1;for(;;){if(n.from>=r)return this.fragment.from<=t;if(!n.childAfter(r))return!1}}matches(e){let t=this.cursor.tree;return t&&t.prop(E.contextHash)==e}takeNodes(e){let t=this.cursor,n=this.fragment.offset,r=this.fragmentEnd-(this.fragment.openEnd?1:0),s=e.absoluteLineStart,o=s,a=e.block.children.length,l=o,O=a;for(;;){if(t.to-n>r){if(t.type.isAnonymous&&t.firstChild())continue;break}let c=E$(t.from-n,e.ranges);if(t.to-n<=e.ranges[e.rangeI].to)e.addNode(t.tree,c);else{let d=new K(e.parser.nodeSet.types[x.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(d,t.tree),e.addNode(d,c)}if(t.type.is("Block")&&(a_.indexOf(t.type.id)<0?(o=t.to-n,a=e.block.children.length):(o=l,a=O),l=t.to-n,O=e.block.children.length),!t.nextSibling())break}for(;e.block.children.length>a;)e.block.children.pop(),e.block.positions.pop();return o-s}}function E$(i,e){let t=i;for(let n=1;n<e.length;n++){let r=e[n-1].to,s=e[n].from;r<i&&(t-=s-r)}return t}const O_=ft({"Blockquote/...":u.quote,HorizontalRule:u.contentSeparator,"ATXHeading1/... SetextHeading1/...":u.heading1,"ATXHeading2/... SetextHeading2/...":u.heading2,"ATXHeading3/...":u.heading3,"ATXHeading4/...":u.heading4,"ATXHeading5/...":u.heading5,"ATXHeading6/...":u.heading6,"Comment CommentBlock":u.comment,Escape:u.escape,Entity:u.character,"Emphasis/...":u.emphasis,"StrongEmphasis/...":u.strong,"Link/... Image/...":u.link,"OrderedList/... BulletList/...":u.list,"BlockQuote/...":u.quote,"InlineCode CodeText":u.monospace,"URL Autolink":u.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":u.processingInstruction,"CodeInfo LinkLabel":u.labelName,LinkTitle:u.string,Paragraph:u.content}),c_=new zo(new wn(R$).extend(O_),Object.keys(Zo).map(i=>Zo[i]),Object.keys(Zo).map(i=>X$[i]),Object.keys(Zo),n_,g$,Object.keys(ic).map(i=>ic[i]),Object.keys(ic),[]);function d_(i,e,t){let n=[];for(let r=i.firstChild,s=e;;r=r.nextSibling){let o=r?r.from:t;if(o>s&&n.push({from:s,to:o}),!r)break;s=r.to}return n}function h_(i){let{codeParser:e,htmlParser:t}=i;return{wrap:yl((r,s)=>{let o=r.type.id;if(e&&(o==x.CodeBlock||o==x.FencedCode)){let a="";if(o==x.FencedCode){let O=r.node.getChild(x.CodeInfo);O&&(a=s.read(O.from,O.to))}let l=e(a);if(l)return{parser:l,overlay:O=>O.type.id==x.CodeText,bracketed:o==x.FencedCode}}else if(t&&(o==x.HTMLBlock||o==x.HTMLTag||o==x.CommentBlock))return{parser:t,overlay:d_(r.node,r.from,r.to)};return null})}}const f_={resolve:"Strikethrough",mark:"StrikethroughMark"},u_={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":u.strikethrough}},{name:"StrikethroughMark",style:u.processingInstruction}],parseInline:[{name:"Strikethrough",parse(i,e,t){if(e!=126||i.char(t+1)!=126||i.char(t+2)==126)return-1;let n=i.slice(t-1,t),r=i.slice(t+2,t+3),s=/\s|^$/.test(n),o=/\s|^$/.test(r),a=Ar.test(n),l=Ar.test(r);return i.addDelimiter(f_,t,t+2,!o&&(!l||s||a),!s&&(!a||o||l))},after:"Emphasis"}]};function Er(i,e,t=0,n,r=0){let s=0,o=!0,a=-1,l=-1,O=!1,c=()=>{n.push(i.elt("TableCell",r+a,r+l,i.parser.parseInline(e.slice(a,l),r+a)))};for(let d=t;d<e.length;d++){let h=e.charCodeAt(d);h==124&&!O?((!o||a>-1)&&s++,o=!1,n&&(a>-1&&c(),n.push(i.elt("TableDelimiter",d+r,d+r+1))),a=l=-1):(O||h!=32&&h!=9)&&(a<0&&(a=d),l=d+1),O=!O&&h==92}return a>-1&&(s++,n&&c()),s}function U$(i,e){for(let t=e;t<i.length;t++){let n=i.charCodeAt(t);if(n==124)return!0;n==92&&t++}return!1}const j$=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;class M${constructor(){this.rows=null}nextLine(e,t,n){if(this.rows==null){this.rows=!1;let r;if((t.next==45||t.next==58||t.next==124)&&j$.test(r=t.text.slice(t.pos))){let s=[];Er(e,n.content,0,s,n.start)==Er(e,r,t.pos)&&(this.rows=[e.elt("TableHeader",n.start,n.start+n.content.length,s),e.elt("TableDelimiter",e.lineStart+t.pos,e.lineStart+t.text.length)])}}else if(this.rows){let r=[];Er(e,t.text,t.pos,r,e.lineStart),this.rows.push(e.elt("TableRow",e.lineStart+t.pos,e.lineStart+t.text.length,r))}return!1}finish(e,t){return this.rows?(e.addLeafElement(t,e.elt("Table",t.start,t.start+t.content.length,this.rows)),!0):!1}}const p_={defineNodes:[{name:"Table",block:!0},{name:"TableHeader",style:{"TableHeader/...":u.heading}},"TableRow",{name:"TableCell",style:u.content},{name:"TableDelimiter",style:u.processingInstruction}],parseBlock:[{name:"Table",leaf(i,e){return U$(e.content,0)?new M$:null},endLeaf(i,e,t){if(t.parsers.some(r=>r instanceof M$)||!U$(e.text,e.basePos))return!1;let n=i.peekLine();return j$.test(n)&&Er(i,e.text,e.basePos)==Er(i,n,e.basePos)},before:"SetextHeading"}]};class m_{nextLine(){return!1}finish(e,t){return e.addLeafElement(t,e.elt("Task",t.start,t.start+t.content.length,[e.elt("TaskMarker",t.start,t.start+3),...e.parser.parseInline(t.content.slice(3),t.start+3)])),!0}}const $_={defineNodes:[{name:"Task",block:!0,style:u.list},{name:"TaskMarker",style:u.atom}],parseBlock:[{name:"TaskList",leaf(i,e){return/^\[[ xX]\][ \t]/.test(e.content)&&i.parentType().name=="ListItem"?new m_:null},after:"SetextHeading"}]},L$=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,G$=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,g_=/[\w-]+\.[\w-]+($|\/)/,I$=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,D$=/\/[a-zA-Z\d@.]+/gy;function B$(i,e,t,n){let r=0;for(let s=e;s<t;s++)i[s]==n&&r++;return r}function Q_(i,e){G$.lastIndex=e;let t=G$.exec(i);if(!t||g_.exec(t[0])[0].indexOf("_")>-1)return-1;let n=e+t[0].length;for(;;){let r=i[n-1],s;if(/[?!.,:*_~]/.test(r)||r==")"&&B$(i,e,n,")")>B$(i,e,n,"("))n--;else if(r==";"&&(s=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(i.slice(e,n))))n=e+s.index;else break}return n}function N$(i,e){I$.lastIndex=e;let t=I$.exec(i);if(!t)return-1;let n=t[0][t[0].length-1];return n=="_"||n=="-"?-1:e+t[0].length-(n=="."?1:0)}const y_=[p_,$_,u_,{parseInline:[{name:"Autolink",parse(i,e,t){let n=t-i.offset;if(n&&/\w/.test(i.text[n-1]))return-1;L$.lastIndex=n;let r=L$.exec(i.text),s=-1;if(!r)return-1;if(r[1]||r[2]){if(s=Q_(i.text,n+r[0].length),s>-1&&i.hasOpenLink){let o=/([^\[\]]|\[[^\]]*\])*/.exec(i.text.slice(n,s));s=n+o[0].length}}else r[3]?s=N$(i.text,n):(s=N$(i.text,n+r[0].length),s>-1&&r[0]=="xmpp:"&&(D$.lastIndex=s,r=D$.exec(i.text),r&&(s=r.index+r[0].length)));return s<0?-1:(i.addElement(i.elt("URL",t,s+i.offset)),s+i.offset)}}]}];function F$(i,e,t){return(n,r,s)=>{if(r!=i||n.char(s+1)==i)return-1;let o=[n.elt(t,s,s+1)];for(let a=s+1;a<n.end;a++){let l=n.char(a);if(l==i)return n.addElement(n.elt(e,s,a+1,o.concat(n.elt(t,a,a+1))));if(l==92&&o.push(n.elt("Escape",a,a+++2)),lt(l))break}return-1}}const b_={defineNodes:[{name:"Superscript",style:u.special(u.content)},{name:"SuperscriptMark",style:u.processingInstruction}],parseInline:[{name:"Superscript",parse:F$(94,"Superscript","SuperscriptMark")}]},S_={defineNodes:[{name:"Subscript",style:u.special(u.content)},{name:"SubscriptMark",style:u.processingInstruction}],parseInline:[{name:"Subscript",parse:F$(126,"Subscript","SubscriptMark")}]},w_={defineNodes:[{name:"Emoji",style:u.character}],parseInline:[{name:"Emoji",parse(i,e,t){let n;return e!=58||!(n=/^[a-zA-Z_0-9]+:/.exec(i.slice(t+1,i.end)))?-1:i.addElement(i.elt("Emoji",t,t+1+n[0].length))}}]},H$=Ns({commentTokens:{block:{open:"<!--",close:"-->"}}}),K$=new E,J$=c_.configure({props:[mt.add(i=>!i.is("Block")||i.is("Document")||sc(i)!=null||P_(i)?void 0:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})),K$.add(sc),pt.add({Document:()=>null}),vi.add({Document:H$})]});function sc(i){let e=/^(?:ATX|Setext)Heading(\d)$/.exec(i.name);return e?+e[1]:void 0}function P_(i){return i.name=="OrderedList"||i.name=="BulletList"}function x_(i,e){let t=i;for(;;){let n=t.nextSibling,r;if(!n||(r=sc(n.type))!=null&&r<=e)break;t=n}return t.to}const T_=Ef.of((i,e,t)=>{for(let n=Oe(i).resolveInner(t,-1);n&&!(n.from<e);n=n.parent){let r=n.type.prop(K$);if(r==null)continue;let s=x_(n,r);if(s>t)return{from:t,to:s}}return null});function oc(i){return new Fe(H$,i,[],"markdown")}const v_=oc(J$),Co=oc(J$.configure([y_,S_,b_,w_,{props:[mt.add({Table:(i,e)=>({from:e.doc.lineAt(i.from).to,to:i.to})})]}]));function k_(i,e){return t=>{if(t&&i){let n=null;if(t=/\S*/.exec(t)[0],typeof i=="function"?n=i(t):n=Fs.matchLanguageName(i,t,!0),n instanceof Fs)return n.support?n.support.language.parser:Di.getSkippingParser(n.load());if(n)return n.parser}return e?e.parser:null}}class ac{constructor(e,t,n,r,s,o,a){this.node=e,this.from=t,this.to=n,this.spaceBefore=r,this.spaceAfter=s,this.type=o,this.item=a}blank(e,t=!0){let n=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(e!=null){for(;n.length<e;)n+=" ";return n}else{for(let r=this.to-this.from-n.length-this.spaceAfter.length;r>0;r--)n+=" ";return n+(t?this.spaceAfter:"")}}marker(e,t){let n=this.node.name=="OrderedList"?String(+tg(this.item,e)[2]+t):"";return this.spaceBefore+n+this.type+this.spaceAfter}}function eg(i,e){let t=[],n=[];for(let r=i;r;r=r.parent){if(r.name=="FencedCode")return n;(r.name=="ListItem"||r.name=="Blockquote")&&t.push(r)}for(let r=t.length-1;r>=0;r--){let s=t[r],o,a=e.lineAt(s.from),l=s.from-a.from;if(s.name=="Blockquote"&&(o=/^ *>( ?)/.exec(a.text.slice(l))))n.push(new ac(s,l,l+o[0].length,"",o[1],">",null));else if(s.name=="ListItem"&&s.parent.name=="OrderedList"&&(o=/^( *)\d+([.)])( *)/.exec(a.text.slice(l)))){let O=o[3],c=o[0].length;O.length>=4&&(O=O.slice(0,O.length-4),c-=4),n.push(new ac(s.parent,l,l+c,o[1],O,o[2],s))}else if(s.name=="ListItem"&&s.parent.name=="BulletList"&&(o=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(a.text.slice(l)))){let O=o[4],c=o[0].length;O.length>4&&(O=O.slice(0,O.length-4),c-=4);let d=o[2];o[3]&&(d+=o[3].replace(/[xX]/," ")),n.push(new ac(s.parent,l,l+c,o[1],O,d,s))}}return n}function tg(i,e){return/^(\s*)(\d+)(?=[.)])/.exec(e.sliceString(i.from,i.from+10))}function lc(i,e,t,n=0){for(let r=-1,s=i;;){if(s.name=="ListItem"){let a=tg(s,e),l=+a[2];if(r>=0){if(l!=r+1)return;t.push({from:s.from+a[1].length,to:s.from+a[0].length,insert:String(r+2+n)})}r=l}let o=s.nextSibling;if(!o)break;s=o}}function Oc(i,e){let t=/^[ \t]*/.exec(i)[0].length;if(!t||e.facet(xn)!=" ")return i;let n=Nt(i,4,t),r="";for(let s=n;s>0;)s>=4?(r+=" ",s-=4):(r+=" ",s--);return r+i.slice(t)}const X_=((i={})=>({state:e,dispatch:t})=>{let n=Oe(e),{doc:r}=e,s=null,o=e.changeByRange(a=>{if(!a.empty||!Co.isActiveAt(e,a.from,-1)&&!Co.isActiveAt(e,a.from,1))return s={range:a};let l=a.from,O=r.lineAt(l),c=eg(n.resolveInner(l,-1),r);for(;c.length&&c[c.length-1].from>l-O.from;)c.pop();if(!c.length)return s={range:a};let d=c[c.length-1];if(d.to-d.spaceAfter.length>l-O.from)return s={range:a};let h=l>=d.to-d.spaceAfter.length&&!/\S/.test(O.text.slice(d.to));if(d.item&&h){let g=d.node.firstChild,y=d.node.getChild("ListItem","ListItem");if(g.to>=l||y&&y.to<l||O.from>0&&!/[^\s>]/.test(r.lineAt(O.from-1).text)||i.nonTightLists===!1){let S=c.length>1?c[c.length-2]:null,R,P="";S&&S.item?(R=O.from+S.from,P=S.marker(r,1)):R=O.from+(S?S.to:0);let v=[{from:R,to:l,insert:P}];return d.node.name=="OrderedList"&&lc(d.item,r,v,-2),S&&S.node.name=="OrderedList"&&lc(S.item,r,v),{range:b.cursor(R+P.length),changes:v}}else{let S=ng(c,e,O);return{range:b.cursor(l+S.length+1),changes:{from:O.from,insert:S+e.lineBreak}}}}if(d.node.name=="Blockquote"&&h&&O.from){let g=r.lineAt(O.from-1),y=/>\s*$/.exec(g.text);if(y&&y.index==d.from){let S=e.changes([{from:g.from+y.index,to:g.to},{from:O.from+d.from,to:O.to}]);return{range:a.map(S),changes:S}}}let f=[];d.node.name=="OrderedList"&&lc(d.item,r,f);let p=d.item&&d.item.from<O.from,m="";if(!p||/^[\s\d.)\-+*>]*/.exec(O.text)[0].length>=d.to)for(let g=0,y=c.length-1;g<=y;g++)m+=g==y&&!p?c[g].marker(r,1):c[g].blank(g<y?Nt(O.text,4,c[g+1].from)-m.length:null);let $=l;for(;$>O.from&&/\s/.test(O.text.charAt($-O.from-1));)$--;return m=Oc(m,e),__(d.node,e.doc)&&(m=ng(c,e,O)+e.lineBreak+m),f.push({from:$,to:l,insert:e.lineBreak+m}),{range:b.cursor($+m.length+1),changes:f}});return s?!1:(t(e.update(o,{scrollIntoView:!0,userEvent:"input"})),!0)})();function ig(i){return i.name=="QuoteMark"||i.name=="ListMark"}function __(i,e){if(i.name!="OrderedList"&&i.name!="BulletList")return!1;let t=i.firstChild,n=i.getChild("ListItem","ListItem");if(!n)return!1;let r=e.lineAt(t.to),s=e.lineAt(n.from),o=/^[\s>]*$/.test(r.text);return r.number+(o?0:1)<s.number}function ng(i,e,t){let n="";for(let r=0,s=i.length-2;r<=s;r++)n+=i[r].blank(r<s?Nt(t.text,4,i[r+1].from)-n.length:null,r<s);return Oc(n,e)}function R_(i,e){let t=i.resolveInner(e,-1),n=e;ig(t)&&(n=t.from,t=t.parent);for(let r;r=t.childBefore(n);)if(ig(r))n=r.from;else if(r.name=="OrderedList"||r.name=="BulletList")t=r.lastChild,n=t.to;else break;return t}const Z_=[{key:"Enter",run:X_},{key:"Backspace",run:({state:i,dispatch:e})=>{let t=Oe(i),n=null,r=i.changeByRange(s=>{let o=s.from,{doc:a}=i;if(s.empty&&Co.isActiveAt(i,s.from)){let l=a.lineAt(o),O=eg(R_(t,o),a);if(O.length){let c=O[O.length-1],d=c.to-c.spaceAfter.length+(c.spaceAfter?1:0);if(o-l.from>d&&!/\S/.test(l.text.slice(d,o-l.from)))return{range:b.cursor(l.from+d),changes:{from:l.from+d,to:o}};if(o-l.from==d&&(!c.item||l.from<=c.item.from||!/\S/.test(l.text.slice(0,c.to)))){let h=l.from+c.from;if(c.item&&c.node.from<c.item.from&&/\S/.test(l.text.slice(c.from,c.to))){let f=c.blank(Nt(l.text,4,c.to)-Nt(l.text,4,c.from));return h==l.from&&(f=Oc(f,i)),{range:b.cursor(h+f.length),changes:{from:h,to:l.from+c.to,insert:f}}}if(h<o)return{range:b.cursor(h),changes:{from:h,to:o}}}}}return n={range:s}});return n?!1:(e(i.update(r,{scrollIntoView:!0,userEvent:"delete"})),!0)}}],rg=vo({matchClosingTags:!1});function z_(i={}){let{codeLanguages:e,defaultCodeLanguage:t,addKeymap:n=!0,base:{parser:r}=v_,completeHTMLTags:s=!0,pasteURLAsLink:o=!0,htmlTagLanguage:a=rg}=i;if(!(r instanceof zo))throw new RangeError("Base parser provided to `markdown` should be a Markdown parser");let l=i.extensions?[i.extensions]:[],O=[a.support,T_],c;o&&O.push(Y_),t instanceof zt?(O.push(t.support),c=t.language):t&&(c=t);let d=e||c?k_(e,c):void 0;l.push(h_({codeParser:d,htmlParser:a.language.parser})),n&&O.push(Dt.high(Gi.of(Z_)));let h=oc(r.configure(l));return s&&O.push(h.data.of({autocomplete:q_})),new zt(h,O)}function q_(i){let{state:e,pos:t}=i,n=/<[:\-\.\w\u00b7-\uffff]*$/.exec(e.sliceDoc(t-25,t));if(!n)return null;let r=Oe(e).resolveInner(t,-1);for(;r&&!r.type.isTop;){if(r.name=="CodeBlock"||r.name=="FencedCode"||r.name=="ProcessingInstructionBlock"||r.name=="CommentBlock"||r.name=="Link"||r.name=="Image")return null;r=r.parent}return{from:t-n[0].length,to:t,options:V_(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}let cc=null;function V_(){if(cc)return cc;let i=vX(new Il(se.create({extensions:rg}),0,!0));return cc=i?i.options:[]}const C_=/code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i,Y_=X.domEventHandlers({paste:(i,e)=>{var t;let{main:n}=e.state.selection;if(n.empty)return!1;let r=(t=i.clipboardData)===null||t===void 0?void 0:t.getData("text/plain");if(!r||!/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(r)||(/^www\./.test(r)&&(r="https://"+r),!Co.isActiveAt(e.state,n.from,1)))return!1;let s=Oe(e.state),o=!1;return s.iterate({from:n.from,to:n.to,enter:a=>{(a.from>n.from||C_.test(a.name))&&(o=!0)},leave:a=>{a.to<n.to&&(o=!0)}}),o?!1:(e.dispatch({changes:[{from:n.from,insert:"["},{from:n.to,insert:`](${r})`}],userEvent:"input.paste",scrollIntoView:!0}),!0)}}),W_="#e5c07b",sg="#e06c75",A_="#56b6c2",E_="#ffffff",Yo="#abb2bf",dc="#7d8799",U_="#61afef",j_="#98c379",og="#d19a66",M_="#c678dd",L_="#21252b",ag="#2c313a",lg="#282c34",hc="#353a42",G_="#3E4451",Og="#528bff",I_=X.theme({"&":{color:Yo,backgroundColor:lg},".cm-content":{caretColor:Og},".cm-cursor, .cm-dropCursor":{borderLeftColor:Og},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:G_},".cm-panels":{backgroundColor:L_,color:Yo},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:lg,color:dc,border:"none"},".cm-activeLineGutter":{backgroundColor:ag},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:hc},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:hc,borderBottomColor:hc},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:ag,color:Yo}}},{dark:!0}),D_=to.define([{tag:u.keyword,color:M_},{tag:[u.name,u.deleted,u.character,u.propertyName,u.macroName],color:sg},{tag:[u.function(u.variableName),u.labelName],color:U_},{tag:[u.color,u.constant(u.name),u.standard(u.name)],color:og},{tag:[u.definition(u.name),u.separator],color:Yo},{tag:[u.typeName,u.className,u.number,u.changed,u.annotation,u.modifier,u.self,u.namespace],color:W_},{tag:[u.operator,u.operatorKeyword,u.url,u.escape,u.regexp,u.link,u.special(u.string)],color:A_},{tag:[u.meta,u.comment],color:dc},{tag:u.strong,fontWeight:"bold"},{tag:u.emphasis,fontStyle:"italic"},{tag:u.strikethrough,textDecoration:"line-through"},{tag:u.link,color:dc,textDecoration:"underline"},{tag:u.heading,fontWeight:"bold",color:sg},{tag:[u.atom,u.bool,u.special(u.variableName)],color:og},{tag:[u.processingInstruction,u.string,u.inserted],color:j_},{tag:u.invalid,color:E_}]),B_=[I_,lw(D_)],cg=typeof String.prototype.normalize=="function"?i=>i.normalize("NFKD"):i=>i;class Ur{constructor(e,t,n=0,r=e.length,s,o){this.test=o,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,r),this.bufferStart=n,this.normalize=s?a=>s(cg(a)):cg,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return De(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=Oa(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=wt(e);let r=this.normalize(t);if(r.length)for(let s=0,o=n;;s++){let a=r.charCodeAt(s),l=this.match(a,o,this.bufferPos+this.bufferStart);if(s==r.length-1){if(l)return this.value=l,this;break}o==n&&s<t.length&&t.charCodeAt(s)==a&&o++}}}match(e,t,n){let r=null;for(let s=0;s<this.matches.length;s+=2){let o=this.matches[s],a=!1;this.query.charCodeAt(o)==e&&(o==this.query.length-1?r={from:this.matches[s+1],to:n}:(this.matches[s]++,a=!0)),a||(this.matches.splice(s,2),s-=2)}return this.query.charCodeAt(0)==e&&(this.query.length==1?r={from:t,to:n}:this.matches.push(1,t)),r&&this.test&&!this.test(r.from,r.to,this.buffer,this.bufferStart)&&(r=null),r}}typeof Symbol<"u"&&(Ur.prototype[Symbol.iterator]=function(){return this});const dg={from:-1,to:-1,match:/.*/.exec("")},fc="gm"+(/x/.unicode==null?"":"u");class hg{constructor(e,t,n,r=0,s=e.length){if(this.text=e,this.to=s,this.curLine="",this.done=!1,this.value=dg,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new fg(e,t,n,r,s);this.re=new RegExp(t,fc+(n!=null&&n.ignoreCase?"i":"")),this.test=n==null?void 0:n.test,this.iter=e.iter();let o=e.lineAt(r);this.curLineStart=o.from,this.matchPos=Wo(e,r),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,r=n+t[0].length;if(this.matchPos=Wo(this.text,r+(n==r?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(n<r||n>this.value.to)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,match:t},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}}const uc=new WeakMap;class An{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(e,t,n){let r=uc.get(e);if(!r||r.from>=n||r.to<=t){let a=new An(t,e.sliceString(t,n));return uc.set(e,a),a}if(r.from==t&&r.to==n)return r;let{text:s,from:o}=r;return o>t&&(s=e.sliceString(t,o)+s,o=t),r.to<n&&(s+=e.sliceString(r.to,n)),uc.set(e,new An(o,s)),new An(t,s.slice(t-o,n-o))}}class fg{constructor(e,t,n,r,s){this.text=e,this.to=s,this.done=!1,this.value=dg,this.matchPos=Wo(e,r),this.re=new RegExp(t,fc+(n!=null&&n.ignoreCase?"i":"")),this.test=n==null?void 0:n.test,this.flat=An.get(e,r,this.chunkEnd(r+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let n=this.flat.from+t.index,r=n+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,match:t},this.matchPos=Wo(this.text,r+(n==r?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=An.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(hg.prototype[Symbol.iterator]=fg.prototype[Symbol.iterator]=function(){return this});function N_(i){try{return new RegExp(i,fc),!0}catch{return!1}}function Wo(i,e){if(e>=i.length)return e;let t=i.lineAt(e),n;for(;e<t.to&&(n=t.text.charCodeAt(e-t.from))>=56320&&n<57344;)e++;return e}const F_=i=>{let{state:e}=i,t=String(e.doc.lineAt(i.state.selection.main.head).number),{close:n,result:r}=z0(i,{label:e.phrase("Go to line"),input:{type:"text",name:"line",value:t},focus:!0,submitLabel:e.phrase("go")});return r.then(s=>{let o=s&&/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(s.elements.line.value);if(!o){i.dispatch({effects:n});return}let a=e.doc.lineAt(e.selection.main.head),[,l,O,c,d]=o,h=c?+c.slice(1):0,f=O?+O:a.number;if(O&&d){let $=f/100;l&&($=$*(l=="-"?-1:1)+a.number/e.doc.lines),f=Math.round(e.doc.lines*$)}else O&&l&&(f=f*(l=="-"?-1:1)+a.number);let p=e.doc.line(Math.max(1,Math.min(e.doc.lines,f))),m=b.cursor(p.from+Math.max(0,Math.min(h,p.length)));i.dispatch({effects:[n,X.scrollIntoView(m.from,{y:"center"})],selection:m})}),!0},H_=({state:i,dispatch:e})=>{let{selection:t}=i,n=b.create(t.ranges.map(r=>i.wordAt(r.head)||b.cursor(r.head)),t.mainIndex);return n.eq(t)?!1:(e(i.update({selection:n})),!0)};function K_(i,e){let{main:t,ranges:n}=i.selection,r=i.wordAt(t.head),s=r&&r.from==t.from&&r.to==t.to;for(let o=!1,a=new Ur(i.doc,e,n[n.length-1].to);;)if(a.next(),a.done){if(o)return null;a=new Ur(i.doc,e,0,Math.max(0,n[n.length-1].from-1)),o=!0}else{if(o&&n.some(l=>l.from==a.value.from))continue;if(s){let l=i.wordAt(a.value.from);if(!l||l.from!=a.value.from||l.to!=a.value.to)continue}return a.value}}const J_=({state:i,dispatch:e})=>{let{ranges:t}=i.selection;if(t.some(s=>s.from===s.to))return H_({state:i,dispatch:e});let n=i.sliceDoc(t[0].from,t[0].to);if(i.selection.ranges.some(s=>i.sliceDoc(s.from,s.to)!=n))return!1;let r=K_(i,n);return r?(e(i.update({selection:i.selection.addRange(b.range(r.from,r.to),!1),effects:X.scrollIntoView(r.to)})),!0):!1},on=Z.define({combine(i){return hn(i,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new uR(e),scrollToMatch:e=>X.scrollIntoView(e)})}});function eR(i){return i?[on.of(i),yc]:yc}class ug{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||N_(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord,this.test=e.test}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(t,n)=>n=="n"?`
570
+ `:n=="r"?"\r":n=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord&&this.test==e.test}create(){return this.regexp?new oR(this):new nR(this)}getCursor(e,t=0,n){let r=e.doc?e:se.create({doc:e});return n==null&&(n=r.doc.length),this.regexp?Un(this,r,t,n):En(this,r,t,n)}}class pg{constructor(e){this.spec=e}}function tR(i,e,t){return(n,r,s,o)=>{if(t&&!t(n,r,s,o))return!1;let a=n>=o&&r<=o+s.length?s.slice(n-o,r-o):e.doc.sliceString(n,r);return i(a,e,n,r)}}function En(i,e,t,n){let r;return i.wholeWord&&(r=iR(e.doc,e.charCategorizer(e.selection.main.head))),i.test&&(r=tR(i.test,e,r)),new Ur(e.doc,i.unquoted,t,n,i.caseSensitive?void 0:s=>s.toLowerCase(),r)}function iR(i,e){return(t,n,r,s)=>((s>t||s+r.length<n)&&(s=Math.max(0,t-2),r=i.sliceString(s,Math.min(i.length,n+2))),(e(Ao(r,t-s))!=ge.Word||e(Eo(r,t-s))!=ge.Word)&&(e(Eo(r,n-s))!=ge.Word||e(Ao(r,n-s))!=ge.Word))}class nR extends pg{constructor(e){super(e)}nextMatch(e,t,n){let r=En(this.spec,e,n,e.doc.length).nextOverlapping();if(r.done){let s=Math.min(e.doc.length,t+this.spec.unquoted.length);r=En(this.spec,e,0,s).nextOverlapping()}return r.done||r.value.from==t&&r.value.to==n?null:r.value}prevMatchInRange(e,t,n){for(let r=n;;){let s=Math.max(t,r-1e4-this.spec.unquoted.length),o=En(this.spec,e,s,r),a=null;for(;!o.nextOverlapping().done;)a=o.value;if(a)return a;if(s==t)return null;r-=1e4}}prevMatch(e,t,n){let r=this.prevMatchInRange(e,0,t);return r||(r=this.prevMatchInRange(e,Math.max(0,n-this.spec.unquoted.length),e.doc.length)),r&&(r.from!=t||r.to!=n)?r:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let n=En(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let s=En(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!s.next().done;)r(s.value.from,s.value.to)}}function rR(i,e,t){return(n,r,s)=>(!t||t(n,r,s))&&i(s[0],e,n,r)}function Un(i,e,t,n){let r;return i.wholeWord&&(r=sR(e.charCategorizer(e.selection.main.head))),i.test&&(r=rR(i.test,e,r)),new hg(e.doc,i.search,{ignoreCase:!i.caseSensitive,test:r},t,n)}function Ao(i,e){return i.slice(we(i,e,!1),e)}function Eo(i,e){return i.slice(e,we(i,e))}function sR(i){return(e,t,n)=>!n[0].length||(i(Ao(n.input,n.index))!=ge.Word||i(Eo(n.input,n.index))!=ge.Word)&&(i(Eo(n.input,n.index+n[0].length))!=ge.Word||i(Ao(n.input,n.index+n[0].length))!=ge.Word)}class oR extends pg{nextMatch(e,t,n){let r=Un(this.spec,e,n,e.doc.length).next();return r.done&&(r=Un(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,n){for(let r=1;;r++){let s=Math.max(t,n-r*1e4),o=Un(this.spec,e,s,n),a=null;for(;!o.next().done;)a=o.value;if(a&&(s==t||a.from>s+10))return a;if(s==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,n)=>{if(n=="&")return e.match[0];if(n=="$")return"$";for(let r=n.length;r>0;r--){let s=+n.slice(0,r);if(s>0&&s<e.match.length)return e.match[s]+n.slice(r)}return t})}matchAll(e,t){let n=Un(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let s=Un(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!s.next().done;)r(s.value.from,s.value.to)}}const jr=F.define(),pc=F.define(),Ri=Ce.define({create(i){return new mc(gc(i).create(),null)},update(i,e){for(let t of e.effects)t.is(jr)?i=new mc(t.value.create(),i.panel):t.is(pc)&&(i=new mc(i.query,t.value?$c:null));return i},provide:i=>Ws.from(i,e=>e.panel)});class mc{constructor(e,t){this.query=e,this.panel=t}}const aR=H.mark({class:"cm-searchMatch"}),lR=H.mark({class:"cm-searchMatch cm-searchMatch-selected"}),OR=xe.fromClass(class{constructor(i){this.view=i,this.decorations=this.highlight(i.state.field(Ri))}update(i){let e=i.state.field(Ri);(e!=i.startState.field(Ri)||i.docChanged||i.selectionSet||i.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:i,panel:e}){if(!e||!i.spec.valid)return H.none;let{view:t}=this,n=new gi;for(let r=0,s=t.visibleRanges,o=s.length;r<o;r++){let{from:a,to:l}=s[r];for(;r<o-1&&l>s[r+1].from-500;)l=s[++r].to;i.highlight(t.state,a,l,(O,c)=>{let d=t.state.selection.ranges.some(h=>h.from==O&&h.to==c);n.add(O,c,d?lR:aR)})}return n.finish()}},{decorations:i=>i.decorations});function Mr(i){return e=>{let t=e.state.field(Ri,!1);return t&&t.query.spec.valid?i(e,t):Qg(e)}}const Uo=Mr((i,{query:e})=>{let{to:t}=i.state.selection.main,n=e.nextMatch(i.state,t,t);if(!n)return!1;let r=b.single(n.from,n.to),s=i.state.facet(on);return i.dispatch({selection:r,effects:[Qc(i,n),s.scrollToMatch(r.main,i)],userEvent:"select.search"}),gg(i),!0}),jo=Mr((i,{query:e})=>{let{state:t}=i,{from:n}=t.selection.main,r=e.prevMatch(t,n,n);if(!r)return!1;let s=b.single(r.from,r.to),o=i.state.facet(on);return i.dispatch({selection:s,effects:[Qc(i,r),o.scrollToMatch(s.main,i)],userEvent:"select.search"}),gg(i),!0}),cR=Mr((i,{query:e})=>{let t=e.matchAll(i.state,1e3);return!t||!t.length?!1:(i.dispatch({selection:b.create(t.map(n=>b.range(n.from,n.to))),userEvent:"select.search.matches"}),!0)}),dR=({state:i,dispatch:e})=>{let t=i.selection;if(t.ranges.length>1||t.main.empty)return!1;let{from:n,to:r}=t.main,s=[],o=0;for(let a=new Ur(i.doc,i.sliceDoc(n,r));!a.next().done;){if(s.length>1e3)return!1;a.value.from==n&&(o=s.length),s.push(b.range(a.value.from,a.value.to))}return e(i.update({selection:b.create(s,o),userEvent:"select.search.matches"})),!0},mg=Mr((i,{query:e})=>{let{state:t}=i,{from:n,to:r}=t.selection.main;if(t.readOnly)return!1;let s=e.nextMatch(t,n,n);if(!s)return!1;let o=s,a=[],l,O,c=[];o.from==n&&o.to==r&&(O=t.toText(e.getReplacement(o)),a.push({from:o.from,to:o.to,insert:O}),o=e.nextMatch(t,o.from,o.to),c.push(X.announce.of(t.phrase("replaced match on line $",t.doc.lineAt(n).number)+".")));let d=i.state.changes(a);return o&&(l=b.single(o.from,o.to).map(d),c.push(Qc(i,o)),c.push(t.facet(on).scrollToMatch(l.main,i))),i.dispatch({changes:d,selection:l,effects:c,userEvent:"input.replace"}),!0}),hR=Mr((i,{query:e})=>{if(i.state.readOnly)return!1;let t=e.matchAll(i.state,1e9).map(r=>{let{from:s,to:o}=r;return{from:s,to:o,insert:e.getReplacement(r)}});if(!t.length)return!1;let n=i.state.phrase("replaced $ matches",t.length)+".";return i.dispatch({changes:t,effects:X.announce.of(n),userEvent:"input.replace.all"}),!0});function $c(i){return i.state.facet(on).createPanel(i)}function gc(i,e){var t,n,r,s,o;let a=i.selection.main,l=a.empty||a.to>a.from+100?"":i.sliceDoc(a.from,a.to);if(e&&!l)return e;let O=i.facet(on);return new ug({search:((t=e==null?void 0:e.literal)!==null&&t!==void 0?t:O.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:(n=e==null?void 0:e.caseSensitive)!==null&&n!==void 0?n:O.caseSensitive,literal:(r=e==null?void 0:e.literal)!==null&&r!==void 0?r:O.literal,regexp:(s=e==null?void 0:e.regexp)!==null&&s!==void 0?s:O.regexp,wholeWord:(o=e==null?void 0:e.wholeWord)!==null&&o!==void 0?o:O.wholeWord})}function $g(i){let e=sf(i,$c);return e&&e.dom.querySelector("[main-field]")}function gg(i){let e=$g(i);e&&e==i.root.activeElement&&e.select()}const Qg=i=>{let e=i.state.field(Ri,!1);if(e&&e.panel){let t=$g(i);if(t&&t!=i.root.activeElement){let n=gc(i.state,e.query.spec);n.valid&&i.dispatch({effects:jr.of(n)}),t.focus(),t.select()}}else i.dispatch({effects:[pc.of(!0),e?jr.of(gc(i.state,e.query.spec)):F.appendConfig.of(yc)]});return!0},yg=i=>{let e=i.state.field(Ri,!1);if(!e||!e.panel)return!1;let t=sf(i,$c);return t&&t.dom.contains(i.root.activeElement)&&i.focus(),i.dispatch({effects:pc.of(!1)}),!0},fR=[{key:"Mod-f",run:Qg,scope:"editor search-panel"},{key:"F3",run:Uo,shift:jo,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:Uo,shift:jo,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:yg,scope:"editor search-panel"},{key:"Mod-Shift-l",run:dR},{key:"Mod-Alt-g",run:F_},{key:"Mod-d",run:J_,preventDefault:!0}];class uR{constructor(e){this.view=e;let t=this.query=e.state.field(Ri).query.spec;this.commit=this.commit.bind(this),this.searchField=Pe("input",{value:t.search,placeholder:et(e,"Find"),"aria-label":et(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Pe("input",{value:t.replace,placeholder:et(e,"Replace"),"aria-label":et(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Pe("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=Pe("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=Pe("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit});function n(r,s,o){return Pe("button",{class:"cm-button",name:r,onclick:s,type:"button"},o)}this.dom=Pe("div",{onkeydown:r=>this.keydown(r),class:"cm-search"},[this.searchField,n("next",()=>Uo(e),[et(e,"next")]),n("prev",()=>jo(e),[et(e,"previous")]),n("select",()=>cR(e),[et(e,"all")]),Pe("label",null,[this.caseField,et(e,"match case")]),Pe("label",null,[this.reField,et(e,"regexp")]),Pe("label",null,[this.wordField,et(e,"by word")]),...e.state.readOnly?[]:[Pe("br"),this.replaceField,n("replace",()=>mg(e),[et(e,"replace")]),n("replaceAll",()=>hR(e),[et(e,"replace all")])],Pe("button",{name:"close",onclick:()=>yg(e),"aria-label":et(e,"close"),type:"button"},["×"])])}commit(){let e=new ug({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:jr.of(e)}))}keydown(e){b0(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?jo:Uo)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),mg(this.view))}update(e){for(let t of e.transactions)for(let n of t.effects)n.is(jr)&&!n.value.eq(this.query)&&this.setQuery(n.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(on).top}}function et(i,e){return i.state.phrase(e)}const Mo=30,Lo=/[\s\.,:;?!]/;function Qc(i,{from:e,to:t}){let n=i.state.doc.lineAt(e),r=i.state.doc.lineAt(t).to,s=Math.max(n.from,e-Mo),o=Math.min(r,t+Mo),a=i.state.sliceDoc(s,o);if(s!=n.from){for(let l=0;l<Mo;l++)if(!Lo.test(a[l+1])&&Lo.test(a[l])){a=a.slice(l);break}}if(o!=r){for(let l=a.length-1;l>a.length-Mo;l--)if(!Lo.test(a[l-1])&&Lo.test(a[l])){a=a.slice(0,l);break}}return X.announce.of(`${i.state.phrase("current match")}. ${a} ${i.state.phrase("on line")} ${n.number}.`)}const pR=X.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),yc=[Ri,Dt.low(OR),pR];function mR(i){bg(i,"start");var e={},t=i.languageData||{},n=!1;for(var r in i)if(r!=t&&i.hasOwnProperty(r))for(var s=e[r]=[],o=i[r],a=0;a<o.length;a++){var l=o[a];s.push(new QR(l,i)),(l.indent||l.dedent)&&(n=!0)}return{name:t.name,startState:function(){return{state:"start",pending:null,indent:n?[]:null}},copyState:function(O){var c={state:O.state,pending:O.pending,indent:O.indent&&O.indent.slice(0)};return O.stack&&(c.stack=O.stack.slice(0)),c},token:yR(e),indent:bR(e,t),mergeTokens:t.mergeTokens,languageData:t}}function bg(i,e){if(!i.hasOwnProperty(e))throw new Error("Undefined state "+e+" in simple mode")}function $R(i,e){if(!i)return/(?:)/;var t="";return i instanceof RegExp?(i.ignoreCase&&(t="i"),i.unicode&&(t+="u"),i=i.source):i=String(i),new RegExp("^(?:"+i+")",t)}function gR(i){if(!i)return null;if(i.apply)return i;if(typeof i=="string")return i.replace(/\./g," ");for(var e=[],t=0;t<i.length;t++)e.push(i[t]&&i[t].replace(/\./g," "));return e}function QR(i,e){(i.next||i.push)&&bg(e,i.next||i.push),this.regex=$R(i.regex),this.token=gR(i.token),this.data=i}function yR(i){return function(e,t){if(t.pending){var n=t.pending.shift();return t.pending.length==0&&(t.pending=null),e.pos+=n.text.length,n.token}for(var r=i[t.state],s=0;s<r.length;s++){var o=r[s],a=(!o.data.sol||e.sol())&&e.match(o.regex);if(a){o.data.next?t.state=o.data.next:o.data.push?((t.stack||(t.stack=[])).push(t.state),t.state=o.data.push):o.data.pop&&t.stack&&t.stack.length&&(t.state=t.stack.pop()),o.data.indent&&t.indent.push(e.indentation()+e.indentUnit),o.data.dedent&&t.indent.pop();var l=o.token;if(l&&l.apply&&(l=l(a)),a.length>2&&o.token&&typeof o.token!="string"){t.pending=[];for(var O=2;O<a.length;O++)a[O]&&t.pending.push({text:a[O],token:o.token[O-1]});return e.backUp(a[0].length-(a[1]?a[1].length:0)),l[0]}else return l&&l.join?l[0]:l}}return e.next(),null}}function bR(i,e){return function(t,n){if(t.indent==null||e.dontIndentStates&&e.dontIndentStates.indexOf(t.state)>-1)return null;var r=t.indent.length-1,s=i[t.state];e:for(;;){for(var o=0;o<s.length;o++){var a=s[o];if(a.data.dedent&&a.data.dedentIfLineStart!==!1){var l=a.regex.exec(n);if(l&&l[0]){r--,(a.next||a.push)&&(s=i[a.next||a.push]),n=n.slice(l[0].length);continue e}}}break}return r<0?0:t.indent[r]}}var Sg="from",SR=new RegExp("^(\\s*)\\b("+Sg+")\\b","i"),wg=["run","cmd","entrypoint","shell"],wR=new RegExp("^(\\s*)("+wg.join("|")+")(\\s+\\[)","i"),Pg="expose",PR=new RegExp("^(\\s*)("+Pg+")(\\s+)","i"),xR=["arg","from","maintainer","label","env","add","copy","volume","user","workdir","onbuild","stopsignal","healthcheck","shell"],TR=[Sg,Pg].concat(wg).concat(xR),xg="("+TR.join("|")+")",vR=new RegExp("^(\\s*)"+xg+"(\\s*)(#.*)?$","i"),kR=new RegExp("^(\\s*)"+xg+"(\\s+)","i");const XR=mR({start:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:SR,token:[null,"keyword"],sol:!0,next:"from"},{regex:vR,token:[null,"keyword",null,"error"],sol:!0},{regex:wR,token:[null,"keyword",null],sol:!0,next:"array"},{regex:PR,token:[null,"keyword",null],sol:!0,next:"expose"},{regex:kR,token:[null,"keyword",null],sol:!0,next:"arguments"},{regex:/./,token:null}],from:[{regex:/\s*$/,token:null,next:"start"},{regex:/(\s*)(#.*)$/,token:[null,"error"],next:"start"},{regex:/(\s*\S+\s+)(as)/i,token:[null,"keyword"],next:"start"},{token:null,next:"start"}],single:[{regex:/(?:[^\\']|\\.)/,token:"string"},{regex:/'/,token:"string",pop:!0}],double:[{regex:/(?:[^\\"]|\\.)/,token:"string"},{regex:/"/,token:"string",pop:!0}],array:[{regex:/\]/,token:null,next:"start"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"}],expose:[{regex:/\d+$/,token:"number",next:"start"},{regex:/[^\d]+$/,token:null,next:"start"},{regex:/\d+/,token:"number"},{regex:/[^\d]+/,token:null},{token:null,next:"start"}],arguments:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:/"(?:[^\\"]|\\.)*"?$/,token:"string",next:"start"},{regex:/"/,token:"string",push:"double"},{regex:/'(?:[^\\']|\\.)*'?$/,token:"string",next:"start"},{regex:/'/,token:"string",push:"single"},{regex:/[^#"']+[\\`]$/,token:null},{regex:/[^#"']+$/,token:null,next:"start"},{regex:/[^#"']+/,token:null},{token:null,next:"start"}],languageData:{commentTokens:{line:"#"}}});var bc={};function Sc(i,e){for(var t=0;t<e.length;t++)bc[e[t]]=i}var Tg=["true","false"],vg=["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],kg=["ab","awk","bash","beep","cat","cc","cd","chown","chmod","chroot","clear","cp","curl","cut","diff","echo","find","gawk","gcc","get","git","grep","hg","kill","killall","ln","ls","make","mkdir","openssl","mv","nc","nl","node","npm","ping","ps","restart","rm","rmdir","sed","service","sh","shopt","shred","source","sort","sleep","ssh","start","stop","su","sudo","svn","tee","telnet","top","touch","vi","vim","wall","wc","wget","who","write","yes","zsh"];Sc("atom",Tg),Sc("keyword",vg),Sc("builtin",kg);function _R(i,e){if(i.eatSpace())return null;var t=i.sol(),n=i.next();if(n==="\\")return i.next(),null;if(n==="'"||n==='"'||n==="`")return e.tokens.unshift(Go(n,n==="`"?"quote":"string")),jn(i,e);if(n==="#")return t&&i.eat("!")?(i.skipToEnd(),"meta"):(i.skipToEnd(),"comment");if(n==="$")return e.tokens.unshift(Xg),jn(i,e);if(n==="+"||n==="=")return"operator";if(n==="-")return i.eat("-"),i.eatWhile(/\w/),"attribute";if(n=="<"){if(i.match("<<"))return"operator";var r=i.match(/^<-?\s*(?:['"]([^'"]*)['"]|([^'"\s]*))/);if(r)return e.tokens.unshift(ZR(r[1]||r[2])),"string.special"}if(/\d/.test(n)&&(i.eatWhile(/\d/),i.eol()||!/\w/.test(i.peek())))return"number";i.eatWhile(/[\w-]/);var s=i.current();return i.peek()==="="&&/\w+/.test(s)?"def":bc.hasOwnProperty(s)?bc[s]:null}function Go(i,e){var t=i=="("?")":i=="{"?"}":i;return function(n,r){for(var s,o=!1;(s=n.next())!=null;){if(s===t&&!o){r.tokens.shift();break}else if(s==="$"&&!o&&i!=="'"&&n.peek()!=t){o=!0,n.backUp(1),r.tokens.unshift(Xg);break}else{if(!o&&i!==t&&s===i)return r.tokens.unshift(Go(i,e)),jn(n,r);if(!o&&/['"]/.test(s)&&!/['"]/.test(i)){r.tokens.unshift(RR(s,"string")),n.backUp(1);break}}o=!o&&s==="\\"}return e}}function RR(i,e){return function(t,n){return n.tokens[0]=Go(i,e),t.next(),jn(t,n)}}var Xg=function(i,e){e.tokens.length>1&&i.eat("$");var t=i.next();return/['"({]/.test(t)?(e.tokens[0]=Go(t,t=="("?"quote":t=="{"?"def":"string"),jn(i,e)):(/\d/.test(t)||i.eatWhile(/\w/),e.tokens.shift(),"def")};function ZR(i){return function(e,t){return e.sol()&&e.string==i&&t.tokens.shift(),e.skipToEnd(),"string.special"}}function jn(i,e){return(e.tokens[0]||_R)(i,e)}const zR={name:"shell",startState:function(){return{tokens:[]}},token:function(i,e){return jn(i,e)},languageData:{autocomplete:Tg.concat(vg,kg),closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"#"}}},qR={name:"toml",startState:function(){return{inString:!1,stringType:"",lhs:!0,inArray:0}},token:function(i,e){let t;if(!e.inString&&(t=i.match(/^('''|"""|'|")/))&&(e.stringType=t[0],e.inString=!0),i.sol()&&!e.inString&&e.inArray===0&&(e.lhs=!0),e.inString){for(;e.inString;)if(i.match(e.stringType))e.inString=!1;else if(i.peek()==="\\")i.next(),i.next();else{if(i.eol())break;i.match(/^.[^\\\"\']*/)}return e.lhs?"property":"string"}else{if(e.inArray&&i.peek()==="]")return i.next(),e.inArray--,"bracket";if(e.lhs&&i.peek()==="["&&i.skipTo("]"))return i.next(),i.peek()==="]"&&i.next(),"atom";if(i.peek()==="#")return i.skipToEnd(),"comment";if(i.eatSpace())return null;if(e.lhs&&i.eatWhile(function(n){return n!="="&&n!=" "}))return"property";if(e.lhs&&i.peek()==="=")return i.next(),e.lhs=!1,null;if(!e.lhs&&i.match(/^\d\d\d\d[\d\-\:\.T]*Z/))return"atom";if(!e.lhs&&(i.match("true")||i.match("false")))return"atom";if(!e.lhs&&i.peek()==="[")return e.inArray++,i.next(),"bracket";if(!e.lhs&&i.match(/^\-?\d+(?:\.\d+)?/))return"number";i.eatSpace()||i.next()}return null},languageData:{commentTokens:{line:"#"}}},VR={name:"properties",token:function(i,e){var t=i.sol()||e.afterSection,n=i.eol();if(e.afterSection=!1,t&&(e.nextMultiline?(e.inMultiline=!0,e.nextMultiline=!1):e.position="def"),n&&!e.nextMultiline&&(e.inMultiline=!1,e.position="def"),t)for(;i.eatSpace(););var r=i.next();return t&&(r==="#"||r==="!"||r===";")?(e.position="comment",i.skipToEnd(),"comment"):t&&r==="["?(e.afterSection=!0,i.skipTo("]"),i.eat("]"),"header"):r==="="||r===":"?(e.position="quote",null):(r==="\\"&&e.position==="quote"&&i.eol()&&(e.nextMultiline=!0),e.position)},startState:function(){return{position:"def",nextMultiline:!1,inMultiline:!1,afterSection:!1}}};let J=[],D=null,Lr=null,Oi=new Set([".","src","src/routes","src/orm","src/templates"]),Mn=new Map;const CR=/\{%[-+]?[\s\S]*?[-+]?%\}|\{\{[-+]?[\s\S]*?[-+]?\}\}|\{#[\s\S]*?#\}/g;function _g(i){return i.startsWith("{%")?"tw-tag":i.startsWith("{{")?"tw-expr":i.startsWith("{#")?"tw-comment":"tw-tag"}const Rg=new x0({regexp:CR,decoration:i=>H.mark({class:_g(i[0]),attributes:{"data-twig":_g(i[0])}})});function YR(){return[xe.fromClass(class{constructor(i){Ko(this,"decorations");this.decorations=Rg.createDeco(i)}update(i){(i.docChanged||i.viewportChanged)&&(this.decorations=Rg.updateDeco(i,this.decorations))}},{decorations:i=>i.decorations}),X.baseTheme({".tw-tag":{color:"#cba6f7",fontWeight:"600"},".tw-expr":{color:"#f9e2af"},".tw-comment":{color:"#6c7086",fontStyle:"italic"}})]}function WR(i){switch(i){case"python":return WT();case"php":return ZX();case"javascript":case"typescript":return Cp({typescript:i==="typescript",jsx:!0});case"html":return vo();case"css":return qm();case"json":return CX();case"yaml":return h5();case"sql":return K5();case"markdown":return z_();case"dockerfile":return vn.define(XR);case"shell":return vn.define(zR);case"toml":return vn.define(qR);case"env":return vn.define(VR);case"twig":case"jinja":case"jinja2":case"frond":return[vo(),YR()];default:return[]}}function AR(i){i.innerHTML=`
571
+ <div class="editor-layout">
572
+ <div class="editor-sidebar" id="editor-sidebar">
573
+ <div class="editor-sidebar-header">
574
+ <div style="display:flex;align-items:center;gap:6px">
575
+ <div class="editor-menu-wrapper" style="position:relative">
576
+ <button class="btn btn-sm" id="editor-menu-btn" onclick="window.__editorToggleMenu()" title="Menu" style="font-size:0.75rem;padding:2px 6px;line-height:1">☰</button>
577
+ <div id="editor-menu-dropdown" class="editor-menu-dropdown" style="display:none">
578
+ <div class="editor-menu-item" onclick="window.__switchTab('routes')">🔀 Routes</div>
579
+ <div class="editor-menu-item" onclick="window.__switchTab('database')">🗄️ Database</div>
580
+ <div class="editor-menu-item" onclick="window.__switchTab('graphql')">◇ GraphQL</div>
581
+ <div class="editor-menu-item" onclick="window.__switchTab('queue')">📋 Queue</div>
582
+ <div class="editor-menu-item" onclick="window.__switchTab('errors')">⚠️ Errors</div>
583
+ <div class="editor-menu-item" onclick="window.__switchTab('metrics')">📊 Metrics</div>
584
+ <div class="editor-menu-item" onclick="window.__switchTab('system')">⚙️ System</div>
585
+ </div>
405
586
  </div>
587
+ <span class="text-sm" style="font-weight:600">Files</span>
588
+ </div>
589
+ <div style="display:flex;gap:4px;align-items:center">
590
+ <span id="editor-branch" class="text-sm text-muted"></span>
591
+ <button class="btn btn-sm" onclick="window.__editorPopOut()" title="Pop out to new window" style="font-size:0.65rem;padding:2px 6px">&#x29C9;</button>
406
592
  </div>
407
593
  </div>
408
- <div id="chat-attachments" style="display:none;margin-bottom:0.375rem;font-size:0.75rem"></div>
409
- <div id="chat-status-bar" style="display:none;padding:6px 12px;background:var(--surface);border:1px solid var(--info);border-radius:0.375rem;margin-bottom:0.5rem;font-size:0.75rem;color:var(--info);align-items:center;gap:8px;flex-shrink:0">
410
- <span style="display:inline-block;width:12px;height:12px;border:2px solid var(--info);border-top-color:transparent;border-radius:50%;animation:t4spin 0.8s linear infinite"></span>
411
- <span id="chat-status-text">Thinking...</span>
594
+ <div id="editor-file-tree" class="editor-file-tree"></div>
595
+ <div class="editor-scaffold-bar">
596
+ <div class="scaffold-label">Scaffold</div>
597
+ <div class="scaffold-buttons">
598
+ <button class="scaffold-btn" onclick="window.__scaffold('route')" title="Generate route file">+ Route</button>
599
+ <button class="scaffold-btn" onclick="window.__scaffold('model')" title="Generate ORM model">+ Model</button>
600
+ <button class="scaffold-btn" onclick="window.__scaffold('migration')" title="Generate migration">+ Migration</button>
601
+ <button class="scaffold-btn" onclick="window.__scaffold('middleware')" title="Generate middleware">+ Middleware</button>
602
+ </div>
603
+ <div class="scaffold-sep"></div>
604
+ <div class="scaffold-buttons">
605
+ <button class="scaffold-btn scaffold-run" onclick="window.__scaffoldRun('migrate')" title="Run pending migrations">▶ Migrate</button>
606
+ <button class="scaffold-btn scaffold-run" onclick="window.__scaffoldRun('test')" title="Run tests">▶ Test</button>
607
+ <button class="scaffold-btn scaffold-run" onclick="window.__scaffoldRun('seed')" title="Seed database">▶ Seed</button>
608
+ </div>
609
+ <div id="scaffold-output" class="scaffold-output" style="display:none"></div>
610
+ </div>
611
+ </div>
612
+ <div class="editor-splitter" id="editor-splitter-left" title="Drag to resize"></div>
613
+ <div class="editor-main">
614
+ <div class="editor-tabs" id="editor-tabs"></div>
615
+ <div class="editor-content" id="editor-content">
616
+ <div class="editor-welcome">
617
+ <h3>Code With Me</h3>
618
+ <p class="text-muted">Select a file from the sidebar to start editing.</p>
619
+ <p class="text-muted text-sm">Ctrl+S saves. Ctrl+Click navigates to definition.</p>
620
+ </div>
412
621
  </div>
413
- <style>@keyframes t4spin{to{transform:rotate(360deg)}}</style>
414
- <div id="chat-messages" style="flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:0.5rem;padding:0.25rem 0">
415
- <div class="chat-msg chat-bot">Hi! I'm Tina4. Ask me to build routes, templates, models — or ask questions about your project.</div>
622
+ <div class="editor-statusbar" id="editor-statusbar">
623
+ <span class="text-sm text-muted">Ready</span>
416
624
  </div>
417
625
  </div>
418
- <div id="chat-summary" style="width:200px;flex-shrink:0;background:var(--surface);border:1px solid var(--border);border-radius:0.5rem;padding:0.75rem;font-size:0.75rem;overflow-y:auto"></div>
419
- </div>
626
+ <div class="editor-splitter" id="editor-splitter-right" title="Drag to resize"></div>
627
+ <div class="editor-right-panel" id="editor-right-panel">
628
+ <!-- Session workspace (supervisor-owned) -->
629
+ <div id="editor-ai-panel" class="right-panel-view">
420
630
 
421
- <!-- Thoughts Panel (slides in from right) -->
422
- <div id="chat-thoughts-panel" style="display:none;position:absolute;top:0;right:0;bottom:0;width:300px;background:var(--surface);border-left:1px solid var(--border);z-index:50;overflow-y:auto;padding:0.75rem">
423
- <div style="display:flex;justify-content:space-between;align-items:center;margin-bottom:0.75rem">
424
- <h3 style="font-size:0.85rem;margin:0">Thoughts</h3>
425
- <button class="btn btn-sm" id="chat-thoughts-close" style="width:24px;height:24px;padding:0;font-size:14px;line-height:1">&times;</button>
426
- </div>
427
- <div id="thoughts-list"></div>
428
- </div>
631
+ <!-- Status strip: session title + meta, collapse toggle -->
632
+ <div class="session-strip">
633
+ <div class="session-strip-row session-title-row">
634
+ <span class="session-title-wrap">
635
+ <span class="session-title" id="session-title">No active session</span>
636
+ <span class="session-meta" id="session-meta"></span>
637
+ </span>
638
+ <button class="btn btn-sm session-collapse-btn" id="editor-ai-toggle" onclick="window.__editorToggleAI()" title="Collapse panel">&#x25B6;</button>
639
+ </div>
640
+ <div class="session-strip-row session-plan-row">
641
+ <span id="editor-plan-indicator" class="session-plan-indicator"></span>
642
+ </div>
643
+ <!-- Live reachability for the 5 backing services. Clicking a
644
+ dot would tell you which port / model it maps to — later
645
+ slice turns these into interactive tooltips. For now the
646
+ title attribute is enough. -->
647
+ <div class="session-strip-row session-health-row">
648
+ <span class="session-health-label">services</span>
649
+ <span class="model-dot" data-model="chat" title="/ai — Qwen2.5-Coder-14B @ 45K YaRN (:11437)"></span>
650
+ <span class="model-dot" data-model="vision" title="/vision — Qwen2.5-VL-7B (:11434)"></span>
651
+ <span class="model-dot" data-model="embed" title="/embed — nomic-embed-text (:11435)"></span>
652
+ <span class="model-dot" data-model="image" title="/image — SDXL Turbo (:11436)"></span>
653
+ <span class="model-dot" data-model="rag" title="/rag — tina4-rag (:11438)"></span>
654
+ <span class="session-mode-toggle" id="session-mode-toggle" role="tablist" aria-label="Chat mode">
655
+ <button type="button" class="mode-btn active" data-mode="supervisor" onclick="window.__editorSetMode('supervisor')" title="Supervisor delegates to agents and stages edits for review">supervisor</button>
656
+ <button type="button" class="mode-btn" data-mode="qa" onclick="window.__editorSetMode('qa')" title="Read-only Q&amp;A — no writes to disk">Q&amp;A</button>
657
+ </span>
658
+ <button type="button" class="completion-toggle" id="completion-toggle" onclick="window.__editorToggleCompletion()" title="Inline completion (Tab to accept, Esc to dismiss)">&#9889;</button>
659
+ </div>
660
+ </div>
661
+
662
+ <!-- Tabs -->
663
+ <div class="session-tabs" role="tablist" aria-label="Session views">
664
+ <button type="button" class="session-tab active" data-tab="activity" onclick="window.__editorTabSwitch('activity')">Activity</button>
665
+ <button type="button" class="session-tab" data-tab="plan" onclick="window.__editorTabSwitch('plan')">Plan<span class="tab-badge" id="tab-badge-plan"></span></button>
666
+ <button type="button" class="session-tab" data-tab="thoughts" onclick="window.__editorTabSwitch('thoughts')">Thoughts<span class="tab-badge" id="tab-badge-thoughts"></span></button>
667
+ <button type="button" class="session-tab" data-tab="diff" onclick="window.__editorTabSwitch('diff')">Diff</button>
668
+ <button type="button" class="session-tab" data-tab="checks" onclick="window.__editorTabSwitch('checks')">Checks</button>
669
+ </div>
670
+
671
+ <!-- Tab bodies. One visible at a time; the rest get the hidden
672
+ attribute so scroll position is preserved between switches. -->
673
+ <div class="session-tab-body">
674
+
675
+ <!-- Activity: agent turns, tool results, chat bubbles. The
676
+ #editor-ai-messages id is preserved so addAIMessage() et
677
+ al. keep appending here without code changes. The
678
+ session-summary strip at the top surfaces cumulative
679
+ session state (files / commits / warnings) when a
680
+ supervisor session is live. -->
681
+ <div class="session-tab-panel" data-panel="activity" id="panel-activity">
682
+ <div class="session-summary-strip" id="session-summary-strip" hidden>
683
+ <span class="summary-chip" id="summary-chip-session"></span>
684
+ <span class="summary-spacer"></span>
685
+ <button type="button" class="summary-toggle" onclick="window.__editorTabSwitch('diff')">view diff</button>
686
+ </div>
687
+ <div id="editor-ai-messages" class="editor-ai-messages">
688
+ <div class="ai-msg ai-bot">How can I help with this file?</div>
689
+ <!-- Session + plan entry points live in the mode picker + plan tab.
690
+ We used to render "Start session" and "Plan" buttons here, but
691
+ they duplicated controls that already exist elsewhere and made
692
+ the chat feel mode-heavy on first load. Supervisor mode now
693
+ starts a session implicitly on the first send, and if the
694
+ project has no .git directory but git is on PATH, the backend
695
+ auto-runs git init before creating the worktree. -->
696
+ </div>
697
+ </div>
698
+
699
+ <!-- Plan: current plan indicator + steps (populated later).
700
+ Empty state nudges toward creating a plan since working
701
+ from a plan is non-negotiable for supervisor mode. -->
702
+ <div class="session-tab-panel" data-panel="plan" id="panel-plan" hidden>
703
+ <div class="panel-empty" id="plan-empty-state">
704
+ <div class="panel-empty-title">No active plan</div>
705
+ <div class="panel-empty-body">Working from a plan is required in supervisor mode. A plan gives the agents a concrete goal to ground against and makes each commit point at a real step.</div>
706
+ <div class="panel-empty-actions">
707
+ <button class="btn btn-sm btn-primary" onclick="window.__editorOpenPlanSwitcher()">Create plan</button>
708
+ <button class="btn btn-sm" onclick="window.__editorOpenPlanSwitcher()">Browse plans</button>
709
+ </div>
710
+ </div>
711
+ <div class="panel-content" id="plan-content-area" hidden></div>
712
+ </div>
713
+
714
+ <!-- Thoughts: supervisor's "by the way…" observations.
715
+ Preserving the #editor-thoughts-banner id lets
716
+ loadThoughtsBanner() keep working unchanged. The
717
+ header row offers bulk actions when the engine
718
+ floods with false positives — one click to clear
719
+ every currently-visible thought. -->
720
+ <div class="session-tab-panel" data-panel="thoughts" id="panel-thoughts" hidden>
721
+ <div class="thoughts-toolbar" id="thoughts-toolbar" hidden>
722
+ <span class="thoughts-toolbar-count" id="thoughts-toolbar-count">0 observations</span>
723
+ <span class="thoughts-toolbar-spacer"></span>
724
+ <button class="btn btn-sm thoughts-toolbar-clear" onclick="window.__editorThoughtsClearAll()" title="Dismiss every visible observation. Remembered across reloads so they don't resurface.">Clear all</button>
725
+ </div>
726
+ <div id="editor-thoughts-banner" class="editor-thoughts-banner" style="display:none"></div>
727
+ <div class="panel-empty" id="thoughts-empty-state">
728
+ <div class="panel-empty-title">No thoughts yet</div>
729
+ <div class="panel-empty-body">The supervisor surfaces observations and risks here as work progresses. If an observation isn't true, dismiss it — the panel won't show it again.</div>
730
+ </div>
731
+ </div>
429
732
 
430
- <!-- Settings Modal -->
431
- <div id="chat-modal-overlay" style="display:none;position:fixed;inset:0;background:rgba(0,0,0,0.5);z-index:100;align-items:center;justify-content:center">
432
- <div style="background:var(--surface);border:1px solid var(--border);border-radius:0.75rem;padding:1.25rem;width:750px;max-width:90vw;box-shadow:0 8px 32px rgba(0,0,0,0.3)">
433
- <div style="display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem">
434
- <h3 style="font-size:0.95rem;margin:0">AI Settings</h3>
435
- <button class="btn btn-sm" id="chat-modal-close" style="width:28px;height:28px;padding:0;font-size:16px;line-height:1">&times;</button>
733
+ <!-- Diff: populated once the supervisor session has commits
734
+ on its working branch. Empty-state shows when there's
735
+ no session or the session is empty; otherwise the
736
+ live diff + RAG warnings render here. -->
737
+ <div class="session-tab-panel" data-panel="diff" id="panel-diff" hidden>
738
+ <div class="panel-empty" id="diff-empty-state">
739
+ <div class="panel-empty-title">No proposal to review</div>
740
+ <div class="panel-empty-body">When the supervisor hands work back, staged diffs show here for per-file accept/reject.</div>
741
+ </div>
742
+ <div class="panel-content" id="diff-content-area" hidden>
743
+ <div class="diff-summary" id="diff-summary"></div>
744
+ <div class="diff-files" id="diff-files"></div>
745
+ <div class="diff-warnings" id="diff-warnings"></div>
746
+ <div class="diff-commits" id="diff-commits"></div>
747
+ </div>
748
+ </div>
749
+
750
+ <!-- Checks: syntax / tests / review results per step. -->
751
+ <div class="session-tab-panel" data-panel="checks" id="panel-checks" hidden>
752
+ <div class="panel-empty">
753
+ <div class="panel-empty-title">No checks run</div>
754
+ <div class="panel-empty-body">Syntax, tests, and review verdicts populate per plan step as agents commit work.</div>
755
+ </div>
756
+ </div>
757
+
758
+ </div>
759
+
760
+ <!-- Agent activity strip: single line summary of the current
761
+ turn (who's active, what they're doing). Hidden when idle. -->
762
+ <div class="session-activity-strip" id="session-activity-strip" hidden>
763
+ <span class="activity-dot"></span>
764
+ <span class="activity-text" id="session-activity-text">idle</span>
765
+ </div>
766
+
767
+ <!-- Input + action bar. Revise / Apply / Cancel are disabled
768
+ until a session has a proposal staged (later slice wires
769
+ them against /supervise endpoints). -->
770
+ <div class="editor-ai-input-area">
771
+ <textarea id="editor-ai-input" class="input session-input" placeholder="Describe the change (supervisor will propose a plan if none is active)..." rows="2"></textarea>
772
+ <div class="session-action-row">
773
+ <button class="btn btn-sm btn-primary session-btn-send" onclick="window.__editorAISend()" id="btn-session-send">Send</button>
774
+ <button class="btn btn-sm" onclick="window.__editorAIExplain()" title="Explain selected code">Explain</button>
775
+ <!-- Image button removed — say "generate image of <prompt>"
776
+ in the chat instead. aiSend() detects the intent and
777
+ routes to the image model. One less button, same
778
+ capability. -->
779
+ <span class="action-spacer"></span>
780
+ <button class="btn btn-sm" id="btn-session-revise" onclick="window.__editorSessionRevise()" disabled title="Ask the supervisor to revise the current proposal">Revise</button>
781
+ <button class="btn btn-sm btn-primary" id="btn-session-apply" onclick="window.__editorSessionApply()" disabled title="Apply the supervisor's proposal to the working tree">Apply</button>
782
+ <button class="btn btn-sm" id="btn-session-cancel" onclick="window.__editorSessionCancel()" disabled title="Cancel the active session">✕</button>
783
+ </div>
784
+ </div>
436
785
  </div>
437
- <div style="display:grid;grid-template-columns:1fr 1fr 1fr;gap:0.75rem;margin-bottom:0.75rem">
438
- ${["thinking","vision","imageGen"].map(g=>`
439
- <fieldset style="border:1px solid var(--border);border-radius:0.375rem;padding:0.5rem 0.75rem;margin:0">
440
- <legend class="text-sm" style="font-weight:600;padding:0 4px">${g==="imageGen"?"Image Generation":g.charAt(0).toUpperCase()+g.slice(1)}</legend>
441
- <div style="margin-bottom:0.375rem"><label class="text-sm text-muted" style="display:block;margin-bottom:2px">Provider</label><select id="set-${g}-provider" class="input" style="width:100%"><option value="tina4">Tina4 Cloud</option><option value="custom">Custom / Local</option><option value="anthropic">Anthropic (Claude)</option><option value="openai">OpenAI</option></select></div>
442
- <div id="set-${g}-url-row" style="margin-bottom:0.375rem"><label class="text-sm text-muted" style="display:block;margin-bottom:2px">URL</label><input type="text" id="set-${g}-url" class="input" style="width:100%" /></div>
443
- <div id="set-${g}-key-row" style="margin-bottom:0.375rem"><label class="text-sm text-muted" style="display:block;margin-bottom:2px">API Key</label><input type="password" id="set-${g}-key" class="input" placeholder="sk-..." style="width:100%" /></div>
444
- <button class="btn btn-sm btn-primary" id="set-${g}-connect" style="width:100%;margin-bottom:0.375rem">Connect</button>
445
- <div id="set-${g}-result" class="text-sm" style="min-height:1.2em;margin-bottom:0.375rem"></div>
446
- <div style="margin-bottom:0.375rem"><label class="text-sm text-muted" style="display:block;margin-bottom:2px">Model</label><select id="set-${g}-model" class="input" style="width:100%" disabled><option value="">-- connect first --</option></select></div>
447
- </fieldset>`).join("")}
786
+ <!-- Dependency search (shown for package files) -->
787
+ <div id="editor-deps-panel" class="right-panel-view" style="display:none">
788
+ <div class="editor-ai-header">
789
+ <span id="deps-panel-title" style="font-weight:600;font-size:0.8rem">Dependencies</span>
790
+ <button class="btn btn-sm" onclick="window.__editorToggleAI()" style="font-size:0.6rem;padding:2px 6px" title="Toggle panel">&#x25B6;</button>
791
+ </div>
792
+ <div style="padding:0.5rem;border-bottom:1px solid var(--border)">
793
+ <div style="display:flex;gap:4px">
794
+ <input type="text" id="deps-search-input" class="input" placeholder="Search packages..." style="flex:1;font-size:0.8rem;padding:4px 8px">
795
+ <button class="btn btn-sm btn-primary" onclick="window.__depsSearch()" style="font-size:0.7rem">🔍</button>
796
+ </div>
797
+ </div>
798
+ <div id="deps-search-results" class="deps-results" style="flex:1;overflow-y:auto;padding:0.25rem"></div>
799
+ <div style="border-top:1px solid var(--border);padding:0.375rem 0.5rem">
800
+ <div class="scaffold-label">Installed</div>
801
+ </div>
802
+ <div id="deps-installed" class="deps-installed" style="overflow-y:auto;max-height:40%;padding:0.25rem"></div>
448
803
  </div>
449
- <button class="btn btn-primary" id="chat-modal-save" style="width:100%">Save Settings</button>
450
804
  </div>
451
805
  </div>
452
- `,(n=document.getElementById("chat-send-btn"))==null||n.addEventListener("click",Z),(i=document.getElementById("chat-thoughts-btn"))==null||i.addEventListener("click",Oe),(o=document.getElementById("chat-thoughts-close"))==null||o.addEventListener("click",Oe),(s=document.getElementById("chat-settings-btn"))==null||s.addEventListener("click",on),(l=document.getElementById("chat-modal-close"))==null||l.addEventListener("click",Ae),(a=document.getElementById("chat-modal-save"))==null||a.addEventListener("click",sn),(c=document.getElementById("chat-modal-overlay"))==null||c.addEventListener("click",g=>{g.target===g.currentTarget&&Ae()}),(d=document.getElementById("chat-file-btn"))==null||d.addEventListener("click",()=>{var g;(g=document.getElementById("chat-file-input"))==null||g.click()}),(b=document.getElementById("chat-file-input"))==null||b.addEventListener("change",vn),(_=document.getElementById("chat-mic-btn"))==null||_.addEventListener("click",wn);const t=document.getElementById("chat-input");t==null||t.addEventListener("keydown",g=>{g.key==="Enter"&&!g.shiftKey&&(g.preventDefault(),Z())}),Y(),en(),loadServerHistory()}function Ce(e,t){document.getElementById(`set-${e}-provider`).value=t.provider;const n=document.getElementById(`set-${e}-model`);t.model&&(n.innerHTML=`<option value="${t.model}">${t.model}</option>`,n.value=t.model,n.disabled=!1),document.getElementById(`set-${e}-url`).value=t.url,document.getElementById(`set-${e}-key`).value=t.apiKey,ze(e,t.provider)}function Be(e){var t,n,i,o;return{provider:((t=document.getElementById(`set-${e}-provider`))==null?void 0:t.value)||"custom",model:((n=document.getElementById(`set-${e}-model`))==null?void 0:n.value)||"",url:((i=document.getElementById(`set-${e}-url`))==null?void 0:i.value)||"",apiKey:((o=document.getElementById(`set-${e}-key`))==null?void 0:o.value)||""}}function ze(e,t){const n=document.getElementById(`set-${e}-key-row`),i=document.getElementById(`set-${e}-url-row`);t==="tina4"?(n&&(n.style.display="none"),i&&(i.style.display="none")):(n&&(n.style.display="block"),i&&(i.style.display="block"))}function He(e){const t=document.getElementById(`set-${e}-provider`);t==null||t.addEventListener("change",()=>{let n;t.value==="tina4"&&W[e]?n=W[e]:n=ue[t.value]||ue.tina4;const i=document.getElementById(`set-${e}-model`);i.innerHTML=n.model?`<option value="${n.model}">${n.model}</option>`:'<option value="">-- connect first --</option>',i.value=n.model,document.getElementById(`set-${e}-url`).value=n.url,ze(e,t.value)}),ze(e,(t==null?void 0:t.value)||"custom")}async function Re(e){var l,a,c;const t=((l=document.getElementById(`set-${e}-provider`))==null?void 0:l.value)||"custom";let n=((a=document.getElementById(`set-${e}-url`))==null?void 0:a.value)||"";const i=((c=document.getElementById(`set-${e}-key`))==null?void 0:c.value)||"",o=document.getElementById(`set-${e}-model`),s=document.getElementById(`set-${e}-result`);t==="tina4"&&W[e]&&(n=W[e].url),s&&(s.textContent="Connecting...",s.style.color="var(--muted)");try{let d=[];const b=n.replace(/\/(v1|api)\/.*$/,"").replace(/\/+$/,"");if(t==="tina4"){try{d=((await(await fetch(`${b}/api/tags`)).json()).models||[]).map(S=>S.name||S.model)}catch{}if(!d.length)try{d=((await(await fetch(`${b}/v1/models`)).json()).data||[]).map(S=>S.id)}catch{}}else if(t==="custom"){try{d=((await(await fetch(`${b}/api/tags`)).json()).models||[]).map(S=>S.name||S.model)}catch{}if(!d.length)try{d=((await(await fetch(`${b}/v1/models`)).json()).data||[]).map(S=>S.id)}catch{}}else if(t==="anthropic")d=["claude-sonnet-4-20250514","claude-opus-4-20250514","claude-haiku-4-20250514","claude-3-5-sonnet-20241022"];else if(t==="openai"){const g=n.replace(/\/v1\/.*$/,"");d=((await(await fetch(`${g}/v1/models`,{headers:i?{Authorization:`Bearer ${i}`}:{}})).json()).data||[]).map(w=>w.id).filter(w=>w.startsWith("gpt"))}if(d.length===0){s&&(s.innerHTML='<span style="color:var(--warn)">No models found</span>');return}const _=o.value;o.innerHTML=d.map(g=>`<option value="${g}">${g}</option>`).join(""),d.includes(_)&&(o.value=_),o.disabled=!1,s&&(s.innerHTML=`<span style="color:var(--success)">&#10003; ${d.length} models available</span>`)}catch{s&&(s.innerHTML='<span style="color:var(--danger)">&#10007; Connection failed</span>')}}function on(){var t,n,i;const e=document.getElementById("chat-modal-overlay");e&&(e.style.display="flex",Ce("thinking",I.thinking),Ce("vision",I.vision),Ce("imageGen",I.imageGen),He("thinking"),He("vision"),He("imageGen"),(t=document.getElementById("set-thinking-connect"))==null||t.addEventListener("click",()=>Re("thinking")),(n=document.getElementById("set-vision-connect"))==null||n.addEventListener("click",()=>Re("vision")),(i=document.getElementById("set-imageGen-connect"))==null||i.addEventListener("click",()=>Re("imageGen")))}function Ae(){const e=document.getElementById("chat-modal-overlay");e&&(e.style.display="none")}function sn(){Xt({thinking:Be("thinking"),vision:Be("vision"),imageGen:Be("imageGen")}),Ae()}function Y(){const e=document.getElementById("chat-summary");if(!e)return;const t=ee.length?ee.map(o=>`<div style="margin-bottom:4px;font-size:0.65rem;line-height:1.3">
453
- <span style="color:var(--muted)">${r(o.time)}</span>
454
- <span style="color:var(--info);font-size:0.6rem">${r(o.agent)}</span>
455
- <div>${r(o.text)}</div>
456
- </div>`).join(""):'<div class="text-muted" style="font-size:0.65rem">No activity yet</div>',n=A==="Idle"?"var(--muted)":A==="Thinking..."?"var(--info)":"var(--success)",i=o=>o.model?'<span style="color:var(--success)">&#9679;</span>':'<span style="color:var(--muted)">&#9675;</span>';e.innerHTML=`
457
- <div style="margin-bottom:0.5rem;font-size:0.7rem">
458
- <span style="color:${n}">&#9679;</span> ${r(A)}
459
- </div>
460
- <div style="font-size:0.65rem;line-height:1.8">
461
- ${i(I.thinking)} T: ${r(I.thinking.model||"—")}<br>
462
- ${i(I.vision)} V: ${r(I.vision.model||"")}<br>
463
- ${i(I.imageGen)} I: ${r(I.imageGen.model||"—")}
464
- </div>
465
- ${ge.length?`
466
- <div style="margin-bottom:0.75rem">
467
- <div class="text-muted" style="font-size:0.65rem;text-transform:uppercase;letter-spacing:0.5px;margin-bottom:4px">Files Changed</div>
468
- ${ge.map(o=>`<div class="text-mono" style="font-size:0.65rem;color:var(--success);margin-bottom:2px">${r(o)}</div>`).join("")}
806
+ `,BR(),EZ(),qe(".").then(()=>UR()),It("plan_current",{}).then(t=>{Nr(t.ok&&t.result||null)}),Io(),Vg(),Kg(Hg());const e=localStorage.getItem(Fg)||"activity";Jg(e),fZ(),Cc(),mZ().catch(()=>{}),ER()}function ER(){var n;const i=yt.filter(r=>r.role!=="system");if(i.length===0)return;const e=document.getElementById("editor-ai-messages");if(!e)return;const t=e.querySelector(".ai-msg.ai-bot");t&&((n=t.textContent)!=null&&n.trim().startsWith("How can I help"))&&t.remove();for(const r of i)if(r.role==="user")tt(Q(String(r.content)),"user");else if(r.role==="assistant"){const s=document.createElement("div");s.className="ai-msg ai-bot",s.innerHTML=sQ(String(r.content)),e.appendChild(s)}e.scrollTop=e.scrollHeight}const Zg="tina4.editor.state";function wc(){try{const i={openPaths:J.map(e=>e.path),activeFile:D,activeDir:Lr,expandedDirs:Array.from(Oi)};localStorage.setItem(Zg,JSON.stringify(i))}catch{}}async function UR(){let i;try{i=JSON.parse(localStorage.getItem(Zg)||"{}")}catch{return}for(const e of i.expandedDirs||[])Oi.add(e),Mn.has(e)||await qe(e);i.activeDir&&(Lr=i.activeDir);for(const e of i.openPaths||[])try{await Zi(e)}catch{}i.activeFile&&J.some(e=>e.path===i.activeFile)&&Ir(i.activeFile),Ln()}async function qe(i){try{const e=await A(`/files?path=${encodeURIComponent(i)}`);if(e.branch){const t=document.getElementById("editor-branch");t&&(t.textContent=`⎇ ${e.branch}`)}Mn.set(i,e.entries||[]),Ln()}catch(e){console.error("Failed to load file tree:",e)}}function Ln(){const i=document.getElementById("editor-file-tree");i&&(i.innerHTML=Cg(".",0))}async function zg(){const i=Array.from(new Set([".",...Array.from(Mn.keys()),...Array.from(Oi)]));Mn.clear(),await Promise.all(i.map(e=>qe(e).catch(()=>{}))),Ln()}async function qg(i){const e=J.find(t=>t.path===i);if(e&&!e.dirty)try{const t=await A(`/file?path=${encodeURIComponent(i)}`),n=(t==null?void 0:t.content)??"";if(n===e.content)return;e.view&&e.view.dispatch({changes:{from:0,to:e.view.state.doc.length,insert:n}}),e.content=n,e.dirty=!1,ci()}catch{}}let Pc=0,Gr=null;function Vg(){const e=`${location.protocol==="https:"?"wss":"ws"}://${location.host}/__dev_reload`;try{Gr=new WebSocket(e),Gr.addEventListener("message",t=>{try{const n=typeof t.data=="string"?JSON.parse(t.data):null;n&&(n.type==="reload"||n.type==="change")&&Tc()}catch{Tc()}}),Gr.addEventListener("close",()=>{Gr=null,setTimeout(()=>Vg(),5e3)})}catch{Gr=null}setInterval(async()=>{try{const t=await fetch("/__dev/api/mtime");if(!t.ok)return;const n=await t.json(),r=typeof n.mtime=="number"?n.mtime:0;r>Pc&&(Pc>0&&Tc(),Pc=r)}catch{}},3e3)}let xc=null;function Tc(){xc===null&&(xc=window.setTimeout(async()=>{xc=null,await zg(),await Promise.all(J.map(i=>qg(i.path)))},300))}function Cg(i,e){const t=Mn.get(i);if(!t)return"";Oi.has(i);let n="";const r=[...t].sort((s,o)=>s.is_dir!==o.is_dir?s.is_dir?-1:1:s.name.localeCompare(o.name));for(const s of r){const o=`git-${s.git_status||"clean"}`,a=e*16,l=Q(s.path);if(s.is_dir){const O=Oi.has(s.path),d=s.has_children!==!1?O?"":"":" ",h=Yg(s.git_status),f=Lr===s.path;n+=`<div class="tree-item tree-dir ${o} ${f?"active":""}" style="padding-left:${a}px"
807
+ onclick="window.__editorToggleDir('${l}')"
808
+ oncontextmenu="event.preventDefault();window.__editorCtxMenu(event,'${l}',true)">
809
+ <span class="tree-arrow">${d}</span>
810
+ <span class="tree-icon">📁</span>
811
+ <span class="tree-name">${Q(s.name)}</span>
812
+ ${h}
813
+ </div>`,O&&(n+=Cg(s.path,e+1))}else{const O=jR(s.name),c=D===s.path,d=Yg(s.git_status);n+=`<div class="tree-item tree-file ${o} ${c?"active":""}" style="padding-left:${a+16}px"
814
+ onclick="window.__editorOpenFile('${l}')"
815
+ oncontextmenu="event.preventDefault();window.__editorCtxMenu(event,'${l}',false)">
816
+ <span class="tree-icon">${O}</span>
817
+ <span class="tree-name">${Q(s.name)}</span>
818
+ ${d}
819
+ </div>`}}return n}function jR(i){var n;const e=((n=i.split(".").pop())==null?void 0:n.toLowerCase())||"";return{py:"🐍",php:"🐘",rb:"💎",ts:"📘",js:"📒",json:"📋",html:"🌐",twig:"🌐",css:"🎨",scss:"🎨",md:"📝",sql:"🗄️",env:"⚙️",yml:"⚙️",yaml:"⚙️",toml:"⚙️",txt:"📄",csv:"📊",log:"📄",rs:"🦀",go:"🔵",svg:"🖼️",png:"🖼️",jpg:"🖼️",jpeg:"🖼️",gif:"🖼️",webp:"🖼️",ico:"🖼️",bmp:"🖼️"}[e]||"📄"}function Yg(i){const t={untracked:"U",modified:"M",added:"A",deleted:"D"}[i];return t?`<span class="tree-git-dot" title="${i}">${t}</span>`:""}async function MR(i){if(Lr=i,Oi.has(i))Oi.delete(i);else if(Oi.add(i),!Mn.has(i)){await qe(i);return}Ln(),wc()}const LR=["png","jpg","jpeg","gif","webp","ico","bmp","svg"];async function Zi(i){var r;if(J.find(s=>s.path===i)){Ir(i);return}const t=((r=i.split(".").pop())==null?void 0:r.toLowerCase())||"",n=LR.includes(t);try{if(n&&t!=="svg"){const a={path:i,content:"",language:"image",dirty:!1};J.push(a),Ir(i);return}const s=await A(`/file?path=${encodeURIComponent(i)}`),o={path:s.path,content:s.content,language:s.language==="html"&&t==="svg"?"svg":s.language,dirty:!1};J.push(o),Ir(i)}catch(s){console.error("Failed to open file:",s)}}const vc={"pyproject.toml":{registry:"pypi",manager:"uv/pip",label:"PyPI"},"requirements.txt":{registry:"pypi",manager:"pip",label:"PyPI"},"composer.json":{registry:"packagist",manager:"composer",label:"Packagist"},Gemfile:{registry:"rubygems",manager:"bundler",label:"RubyGems"},"package.json":{registry:"npm",manager:"npm",label:"npm"},"Cargo.toml":{registry:"crates",manager:"cargo",label:"crates.io"}};function Ir(i){D=i,Lr=null,ci(),kc(),Ln(),di(),wc(),GR()}function GR(){const i=document.getElementById("editor-ai-panel"),e=document.getElementById("editor-deps-panel");if(!i||!e)return;const t=(D==null?void 0:D.split("/").pop())||"",n=vc[t];if(n){i.style.display="none",e.style.display="flex";const r=document.getElementById("deps-panel-title");r&&(r.textContent=`📦 ${n.label}`),Wg(n)}else i.style.display="flex",e.style.display="none"}function Wg(i){const e=document.getElementById("deps-installed");if(!e)return;const t=J.find(r=>r.path===D);if(!t){e.innerHTML="";return}const n=[];if(i.registry==="pypi"&&t.path.endsWith(".toml")){const r=t.content.match(/dependencies\s*=\s*\[([\s\S]*?)\]/);if(r){const s=r[1].match(/"([^"]+)"/g);s==null||s.forEach(o=>{const a=o.replace(/"/g,""),l=a.split(/[><=~!]+/);n.push({name:l[0].trim(),version:a.slice(l[0].length).trim()||"*"})})}}else if(i.registry==="pypi"&&t.path.endsWith(".txt"))t.content.split(`
820
+ `).forEach(r=>{const s=r.trim();if(!s||s.startsWith("#"))return;const o=s.split(/[><=~!]+/);n.push({name:o[0].trim(),version:s.slice(o[0].length).trim()||"*"})});else if(i.registry==="npm")try{const r=JSON.parse(t.content);for(const[s,o]of Object.entries(r.dependencies||{}))n.push({name:s,version:o});for(const[s,o]of Object.entries(r.devDependencies||{}))n.push({name:s,version:`${o} (dev)`})}catch{}else if(i.registry==="packagist")try{const r=JSON.parse(t.content);for(const[s,o]of Object.entries(r.require||{}))n.push({name:s,version:o});for(const[s,o]of Object.entries(r["require-dev"]||{}))n.push({name:s,version:`${o} (dev)`})}catch{}else if(i.registry==="rubygems")t.content.split(`
821
+ `).forEach(r=>{const s=r.match(/gem\s+["']([^"']+)["'](?:\s*,\s*["']([^"']+)["'])?/);s&&n.push({name:s[1],version:s[2]||"*"})});else if(i.registry==="crates"){const r=t.content.match(/\[dependencies\]([\s\S]*?)(?:\[|$)/);r&&r[1].split(`
822
+ `).forEach(s=>{const o=s.match(/^(\w[\w-]*)\s*=\s*"([^"]+)"/);o&&n.push({name:o[1],version:o[2]})})}e.innerHTML=n.length?n.map(r=>`<div class="deps-installed-item">
823
+ <span>${Q(r.name)}</span>
824
+ <span class="deps-ver">${Q(r.version)}</span>
825
+ </div>`).join(""):'<div class="text-sm text-muted" style="padding:8px;text-align:center">No dependencies found</div>'}function ci(){const i=document.getElementById("editor-tabs");i&&(i.innerHTML=J.map(e=>{const t=e.path.split("/").pop()||e.path,n=e.path===D,r=e.dirty?'<span style="color:var(--warn);margin-left:2px">●</span>':"";return`<div class="editor-tab ${n?"active":""}"
826
+ onclick="window.__editorSwitchFile('${Q(e.path)}')"
827
+ oncontextmenu="event.preventDefault();window.__editorTabCtxMenu(event,'${Q(e.path)}')">
828
+ <span>${Q(t)}${r}</span>
829
+ <span class="editor-tab-close" onclick="event.stopPropagation();window.__editorCloseFile('${Q(e.path)}')">&times;</span>
830
+ </div>`}).join(""))}function kc(){var s;const i=document.getElementById("editor-content");if(!i)return;const e=J.find(o=>o.path===D);if(!e){i.innerHTML=`<div class="editor-welcome">
831
+ <h3>Code With Me</h3>
832
+ <p class="text-muted">Select a file from the sidebar to start editing.</p>
833
+ </div>`;return}i.innerHTML="";const t=((s=e.path.split(".").pop())==null?void 0:s.toLowerCase())||"";["png","jpg","jpeg","gif","webp","ico","bmp"].includes(t)?i.innerHTML=`<div class="editor-image-preview">
834
+ <div class="image-preview-toolbar">
835
+ <span class="text-sm text-muted">${Q(e.path)}</span>
836
+ <span class="text-sm text-muted">${e.content.length>0?Math.round(e.content.length/1024)+" KB":""}</span>
469
837
  </div>
470
- `:""}
471
- <div>
472
- <div class="text-muted" style="font-size:0.65rem;text-transform:uppercase;letter-spacing:0.5px;margin-bottom:4px">Activity</div>
473
- ${t}
474
- </div>
475
- `}let be=0;function B(e,t){var s,l;const n=document.getElementById("chat-messages");if(!n)return;const i=`msg-${++be}`,o=document.createElement("div");if(o.className=`chat-msg chat-${t}`,o.id=i,o.innerHTML=`
476
- <div class="chat-msg-content">${e}</div>
477
- <div class="chat-msg-actions" style="display:flex;gap:4px;margin-top:4px;opacity:0.4">
478
- <button class="btn btn-sm" style="font-size:0.6rem;padding:1px 6px" onclick="window.__copyMsg('${i}')" title="Copy">Copy</button>
479
- <button class="btn btn-sm" style="font-size:0.6rem;padding:1px 6px" onclick="window.__replyMsg('${i}')" title="Reply">Reply</button>
480
- <button class="btn btn-sm btn-primary" style="font-size:0.6rem;padding:1px 6px;display:none" onclick="window.__submitAnswers('${i}')" title="Submit answers" data-submit-btn>Submit Answers</button>
481
- </div>
482
- `,o.addEventListener("mouseenter",()=>{const a=o.querySelector(".chat-msg-actions");a&&(a.style.opacity="1")}),o.addEventListener("mouseleave",()=>{const a=o.querySelector(".chat-msg-actions");a&&(a.style.opacity="0.4")}),o.querySelector(".chat-answer-input")){const a=o.querySelector("[data-submit-btn]");a&&(a.style.display="inline-block")}if(t==="bot"){const c=(((s=o.querySelector(".chat-msg-content"))==null?void 0:s.textContent)||"").trim().endsWith("?"),d=o.querySelector(".chat-answer-input");if(c&&!d){const b=document.createElement("div");b.style.cssText="display:flex;gap:4px;margin-top:6px;flex-wrap:wrap",b.className="chat-quick-replies",b.innerHTML=`
483
- <button class="btn btn-sm" style="font-size:0.65rem;padding:2px 8px" onclick="window.__quickReply('Yes')">Yes</button>
484
- <button class="btn btn-sm" style="font-size:0.65rem;padding:2px 8px" onclick="window.__quickReply('No')">No</button>
485
- <button class="btn btn-sm" style="font-size:0.65rem;padding:2px 8px" onclick="window.__quickReply('You decide')">You decide</button>
486
- <button class="btn btn-sm" style="font-size:0.65rem;padding:2px 8px" onclick="window.__quickReply('Skip')">Skip</button>
487
- <button class="btn btn-sm" style="font-size:0.65rem;padding:2px 8px" onclick="window.__quickReply('Just build it')">Just build it</button>
488
- `,(l=o.querySelector(".chat-msg-content"))==null||l.appendChild(b)}}n.prepend(o),Zt()}function rn(e){const t=document.getElementById(e);if(!t)return;const n=t.querySelectorAll(".chat-answer-input"),i=[];if(n.forEach(l=>{const a=l.dataset.q||"?",c=l.value.trim();c&&(i.push(`${a}. ${c}`),l.disabled=!0,l.style.opacity="0.6")}),!i.length)return;const o=document.getElementById("chat-input");o&&(o.value=i.join(`
489
- `),Z());const s=t.querySelector("[data-submit-btn]");s&&(s.style.display="none")}function an(e,t){const n=e.parentElement;if(!n)return;const i=n.querySelector(".chat-answer-input");i&&(i.value=t,i.disabled=!0,i.style.opacity="0.5"),n.querySelectorAll("button").forEach(s=>s.remove());const o=document.createElement("span");o.style.cssText="font-size:0.65rem;padding:2px 8px;border-radius:3px;background:var(--info);color:white",o.textContent=t,n.appendChild(o)}window.__quickAnswer=an,window.__submitAnswers=rn;function ln(e){const t=document.querySelector(`#${e} .chat-msg-content`);t&&navigator.clipboard.writeText(t.textContent||"").then(()=>{const n=document.querySelector(`#${e} .chat-msg-actions button`);if(n){const i=n.textContent;n.textContent="Copied!",setTimeout(()=>{n.textContent=i},1e3)}})}function dn(e){const t=document.querySelector(`#${e} .chat-msg-content`);if(!t)return;const n=(t.textContent||"").substring(0,100),i=document.getElementById("chat-input");i&&(i.value=`> ${n}${n.length>=100?"...":""}
490
-
491
- `,i.focus(),i.setSelectionRange(i.value.length,i.value.length))}function cn(e){var i,o;const t=e.closest(".chat-checklist-item");if(!t||(i=t.nextElementSibling)!=null&&i.classList.contains("chat-comment-box"))return;const n=document.createElement("div");n.className="chat-comment-box",n.style.cssText="padding-left:1.8rem;margin:0.15rem 0;display:flex;gap:4px",n.innerHTML=`
492
- <input type="text" class="input" placeholder="Your comment..." style="flex:1;font-size:0.7rem;padding:2px 6px;height:24px">
493
- <button class="btn btn-sm" style="font-size:0.6rem;padding:1px 6px;height:24px" onclick="window.__submitComment(this)">Add</button>
494
- `,t.after(n),(o=n.querySelector("input"))==null||o.focus()}function mn(e){var s;const t=e.closest(".chat-comment-box");if(!t)return;const n=t.querySelector("input"),i=(s=n==null?void 0:n.value)==null?void 0:s.trim();if(!i)return;const o=document.createElement("div");o.style.cssText="padding-left:1.8rem;margin:0.1rem 0;font-size:0.7rem;color:var(--info);font-style:italic",o.textContent=`↳ ${i}`,t.replaceWith(o)}function et(){const e=[],t=[],n=[];return document.querySelectorAll(".chat-checklist-item").forEach(i=>{var a,c;const o=i.querySelector("input[type=checkbox]"),s=((a=i.querySelector("label"))==null?void 0:a.textContent)||"";o!=null&&o.checked?e.push(s):t.push(s);const l=i.nextElementSibling;if(l&&!l.classList.contains("chat-checklist-item")&&!l.classList.contains("chat-comment-box")){const d=((c=l.textContent)==null?void 0:c.replace("↳ ",""))||"";d&&n.push(`${s}: ${d}`)}}),{accepted:e,rejected:t,comments:n}}let ye=!1;function Oe(){const e=document.getElementById("chat-thoughts-panel");e&&(ye=!ye,e.style.display=ye?"block":"none",ye&&tt())}async function tt(){const e=document.getElementById("thoughts-list");if(e)try{const i=(await(await fetch("/__dev/api/thoughts")).json()||[]).filter(s=>!s.dismissed),o=document.getElementById("thoughts-dot");if(o&&(o.style.display=i.length?"inline":"none"),!i.length){e.innerHTML='<div class="text-muted text-sm" style="text-align:center;padding:2rem 0">All clear. No observations.</div>';return}e.innerHTML=i.map(s=>`
495
- <div style="background:var(--bg);border:1px solid var(--border);border-radius:0.375rem;padding:0.5rem;margin-bottom:0.5rem;font-size:0.75rem">
496
- <div style="line-height:1.4">${r(s.message)}</div>
497
- <div style="display:flex;gap:4px;margin-top:0.375rem">
498
- ${(s.actions||[]).map(l=>l.action==="dismiss"?`<button class="btn btn-sm" style="font-size:0.6rem" onclick="window.__dismissThought('${r(s.id)}')">Dismiss</button>`:`<button class="btn btn-sm btn-primary" style="font-size:0.6rem" onclick="window.__actOnThought('${r(s.id)}','${r(l.action)}')">${r(l.label)}</button>`).join("")}
838
+ <div class="image-preview-container">
839
+ <img id="editor-img-preview" src="/__dev/api/file/raw?path=${encodeURIComponent(e.path)}" alt="${Q(e.path)}" />
840
+ </div>
841
+ </div>`:t==="svg"?(i.innerHTML=`<div style="flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden;position:relative">
842
+ <div id="editor-cm-pane" style="flex:1;overflow:auto"></div>
843
+ <div id="editor-svg-preview" class="editor-svg-float">
844
+ <div class="svg-preview-header">
845
+ <span class="text-sm" style="font-weight:600">Preview</span>
846
+ <button class="btn btn-sm" onclick="document.getElementById('editor-svg-preview').classList.toggle('collapsed')" style="font-size:0.6rem;padding:1px 4px">_</button>
499
847
  </div>
848
+ <div class="svg-preview-content" id="svg-preview-content"></div>
849
+ </div>
850
+ </div>`,Xc(e,document.getElementById("editor-cm-pane")),Ag(e.content)):e.language==="markdown"?(i.innerHTML=`<div style="display:flex;flex:1;min-height:0;overflow:hidden">
851
+ <div id="editor-cm-pane" style="flex:1;overflow:auto;min-width:0"></div>
852
+ <div style="width:1px;background:var(--border)"></div>
853
+ <div id="editor-md-preview" class="editor-md-preview" style="flex:1;overflow:auto;padding:1rem"></div>
854
+ </div>`,Xc(e,document.getElementById("editor-cm-pane")),Eg(e.content)):(i.innerHTML='<div id="editor-cm-pane" style="flex:1;overflow:auto"></div>',Xc(e,document.getElementById("editor-cm-pane")))}function Ag(i){const e=document.getElementById("svg-preview-content");if(!e)return;const t=i.replace(/<script[\s\S]*?<\/script>/gi,"");e.innerHTML=t}function Xc(i,e){i.view&&(i.view.destroy(),i.view=void 0);const t=Gi.of([{key:"Mod-s",run:()=>(_c(),!0)}]),n=X.updateListener.of(a=>{if(a.docChanged){const l=a.state.doc.toString();i.content=l,i.dirty||(i.dirty=!0,ci()),i.language==="markdown"&&Eg(l),i.path.endsWith(".svg")&&Ag(l)}}),r=WR(i.language),s=i.language==="python"?" ":" ",o=se.create({doc:i.content,extensions:[L0(),sw(),T0(),D0(),B_,Vw(),xn.of(s),NS(),mw(),gP(),kP(),aS({language:()=>i.language,path:()=>i.path,planIntent:()=>Br,enabled:()=>Dr}),t,Gi.of([{key:"Enter",run:Ll},...bP,...Y1,...Lw,...tw,...up,W1,...fR]),eR(),n,...Array.isArray(r)?r:[r],X.theme({"&":{height:"100%",fontSize:"13px"},".cm-scroller":{overflow:"auto",fontFamily:"'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace"},".cm-content":{minHeight:"100%"}})]});i.view=new X({state:o,parent:e})}function Eg(i){const e=document.getElementById("editor-md-preview");if(!e)return;const t=[],r=i.replace(/```(\w*)\n([\s\S]*?)```/g,(d,h,f)=>{const p=t.length;return t.push(`<pre style="background:#11111b;padding:0.75rem;border-radius:0.375rem;overflow-x:auto;border:1px solid var(--border);margin:0.5rem 0"><code style="font-size:0.8rem;line-height:1.5">${Q(f)}</code></pre>`),`\0CB${p}\0`}).split(`
855
+ `),s=[];let o=!1,a=[],l=!1;function O(){if(a.length===0)return;let d="",h="";if((l&&a.length>0?0:-1)===0&&a.length>1){d=`<thead><tr>${a[0].map(m=>`<th style="padding:6px 10px;border:1px solid var(--border);background:rgba(255,255,255,0.05);font-weight:600;text-align:left">${Q(m)}</th>`).join("")}</tr></thead>`;const p=a.length>2?2:a.length;h=a.slice(p).map(m=>`<tr>${m.map($=>`<td style="padding:6px 10px;border:1px solid var(--border)">${Wt($)}</td>`).join("")}</tr>`).join("")}else h=a.map(p=>`<tr>${p.map(m=>`<td style="padding:6px 10px;border:1px solid var(--border)">${Wt(m)}</td>`).join("")}</tr>`).join("");s.push(`<table style="border-collapse:collapse;width:100%;margin:0.5rem 0;font-size:0.85rem">${d}<tbody>${h}</tbody></table>`),a=[],l=!1,o=!1}for(const d of r){const h=d.trim();if(h.startsWith("\0CB")){o&&O(),s.push(h);continue}if(h.startsWith("|")&&h.endsWith("|")){const p=h.slice(1,-1).split("|").map(m=>m.trim());if(p.every(m=>/^[-:]+$/.test(m))){l=!0,a.push(p),o=!0;continue}a.push(p),o=!0;continue}if(o&&O(),h.startsWith("#### ")){s.push(`<h4 style="margin:1.2rem 0 0.4rem;font-size:0.95rem;color:var(--info)">${Wt(h.slice(5))}</h4>`);continue}if(h.startsWith("### ")){s.push(`<h3 style="margin:1.2rem 0 0.4rem;font-size:1.05rem;color:var(--info)">${Wt(h.slice(4))}</h3>`);continue}if(h.startsWith("## ")){s.push(`<h2 style="margin:1.4rem 0 0.5rem;font-size:1.2rem;border-bottom:1px solid var(--border);padding-bottom:0.3rem">${Wt(h.slice(3))}</h2>`);continue}if(h.startsWith("# ")){s.push(`<h1 style="margin:1.5rem 0 0.5rem;font-size:1.5rem;border-bottom:1px solid var(--border);padding-bottom:0.3rem">${Wt(h.slice(2))}</h1>`);continue}if(/^(-{3,}|\*{3,}|_{3,})$/.test(h)){s.push('<hr style="border:none;border-top:1px solid var(--border);margin:1rem 0">');continue}if(h.startsWith("> ")){s.push(`<blockquote style="border-left:3px solid var(--info);padding-left:0.75rem;margin:0.3rem 0;color:var(--muted);font-style:italic">${Wt(h.slice(2))}</blockquote>`);continue}if(/^[-*+] /.test(h)){s.push(`<div style="padding-left:1.5rem;margin:0.2rem 0">• ${Wt(h.slice(2))}</div>`);continue}const f=h.match(/^(\d+)[.)]\s+(.+)/);if(f){s.push(`<div style="padding-left:1.5rem;margin:0.2rem 0">${f[1]}. ${Wt(f[2])}</div>`);continue}if(h===""){s.push('<div style="height:0.5rem"></div>');continue}s.push(`<div style="margin:0.15rem 0">${Wt(h)}</div>`)}o&&O();let c=s.join(`
856
+ `);t.forEach((d,h)=>{c=c.replace(`\0CB${h}\0`,d)}),e.innerHTML=`<div class="md-preview-content" style="line-height:1.6;color:var(--text);font-size:0.9rem">${c}</div>`}function Wt(i){let e=Q(i);return e=e.replace(/!\[([^\]]*)\]\(([^)]+)\)/g,'<img src="$2" alt="$1" style="max-width:100%;border-radius:0.25rem">'),e=e.replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2" target="_blank" style="color:var(--info);text-decoration:underline">$1</a>'),e=e.replace(/\*\*(.+?)\*\*/g,"<strong>$1</strong>"),e=e.replace(/\*(.+?)\*/g,"<em>$1</em>"),e=e.replace(/`([^`]+)`/g,'<code style="background:#11111b;padding:0.1rem 0.35rem;border-radius:0.2rem;font-size:0.85em;border:1px solid var(--border)">$1</code>'),e}async function _c(){const i=J.find(e=>e.path===D);if(!(!i||!i.dirty)){di("Saving...");try{await A("/file/save","POST",{path:i.path,content:i.content}),i.dirty=!1,ci(),di(`Saved ${i.path.split("/").pop()}`),setTimeout(()=>di(),2e3)}catch(e){di(`Save failed: ${e.message}`,!0)}}}function an(i){const e=J.find(t=>t.path===i);e!=null&&e.dirty&&!confirm(`${i} has unsaved changes. Close anyway?`)||(e!=null&&e.view&&e.view.destroy(),J=J.filter(t=>t.path!==i),D===i&&(D=J.length>0?J[J.length-1].path:null),ci(),kc(),Ln(),wc())}function di(i,e){const t=document.getElementById("editor-statusbar");if(!t)return;const n=J.find(l=>l.path===D),r=n?n.language:"",s=n!=null&&n.view?`Ln ${n.view.state.doc.lineAt(n.view.state.selection.main.head).number}`:"",o=i||"Ready",a=e?"var(--danger)":"var(--muted)";t.innerHTML=`
857
+ <span class="text-sm" style="color:${a}">${Q(o)}</span>
858
+ <div style="display:flex;gap:1rem;align-items:center">
859
+ <span class="text-sm text-muted">${Q(s)}</span>
860
+ <span class="text-sm text-muted">${Q(r)}</span>
861
+ <span class="text-sm text-muted">UTF-8</span>
862
+ </div>
863
+ `}function IR(){const i=`${window.location.origin}/__dev`;window.open(i,"_blank","noopener,noreferrer")||alert("Couldn't open a new dev-admin window. Your browser's popup blocker may be active — allow popups for this site, or open /__dev manually in a new tab.")}function DR(){return`
864
+ * { box-sizing: border-box; margin: 0; padding: 0; }
865
+ body { background: #1e1e2e; color: #cdd6f4; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
866
+
867
+ .editor-layout { display: flex; position: absolute; inset: 0; overflow: hidden; }
868
+
869
+ .editor-sidebar { width: 240px; flex-shrink: 0; background: var(--bg, #181825); border-right: 1px solid var(--border, #313244); display: flex; flex-direction: column; overflow: hidden; }
870
+ .editor-sidebar-header { padding: 0.5rem 0.75rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border, #313244); flex-shrink: 0; }
871
+ .editor-file-tree { flex: 1; overflow-y: auto; padding: 0.25rem 0; font-size: 0.8rem; }
872
+
873
+ .tree-item { padding: 3px 8px; cursor: pointer; display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; user-select: none; }
874
+ .tree-item:hover { background: rgba(255,255,255,0.05); }
875
+ .tree-item.active { background: var(--info, #89b4fa); color: #1e1e2e; }
876
+ .tree-arrow { width: 12px; text-align: center; font-size: 0.7rem; flex-shrink: 0; }
877
+ .tree-icon { font-size: 0.75rem; flex-shrink: 0; }
878
+ .tree-name { overflow: hidden; text-overflow: ellipsis; }
879
+
880
+ /* Git status colours */
881
+ .git-untracked .tree-name { color: #a6e3a1; }
882
+ .git-untracked .tree-git-dot { color: #a6e3a1; }
883
+ .git-modified .tree-name { color: #89b4fa; }
884
+ .git-modified .tree-git-dot { color: #89b4fa; }
885
+ .git-added .tree-name { color: #a6e3a1; font-weight: 600; }
886
+ .git-added .tree-git-dot { color: #a6e3a1; }
887
+ .git-deleted .tree-name { color: #f38ba8; text-decoration: line-through; }
888
+ .git-deleted .tree-git-dot { color: #f38ba8; }
889
+ .git-clean .tree-git-dot { display: none; }
890
+ .tree-git-dot { font-size: 0.6rem; flex-shrink: 0; margin-left: auto; }
891
+ .tree-item.active .tree-name { color: #1e1e2e; }
892
+ .tree-item.active .tree-git-dot { color: #1e1e2e; }
893
+
894
+ /* Folders get a subtler highlight than the currently-open file:
895
+ a translucent tint of the same accent, and the text keeps its
896
+ original colour. Files still get the solid bright background
897
+ because the open file is the primary focus. These rules come
898
+ after .tree-item.active so they win by source order for tree-dir. */
899
+ .tree-dir.active { background: rgba(137, 180, 250, 0.18); color: inherit; }
900
+ .tree-dir.active .tree-name { color: inherit; }
901
+ .tree-dir.active .tree-git-dot { color: inherit; }
902
+
903
+ .editor-main { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
904
+
905
+ .editor-tabs { display: flex; background: var(--bg, #181825); border-bottom: 1px solid var(--border, #313244); overflow-x: auto; flex-shrink: 0; min-height: 32px; }
906
+ .editor-tab { padding: 6px 12px; font-size: 0.75rem; cursor: pointer; display: flex; align-items: center; gap: 6px; border-right: 1px solid var(--border, #313244); white-space: nowrap; user-select: none; flex-shrink: 0; }
907
+ .editor-tab:hover { background: rgba(255,255,255,0.05); }
908
+ .editor-tab.active { background: var(--surface, #1e1e2e); border-bottom: 2px solid var(--info, #89b4fa); }
909
+ .editor-tab-close { font-size: 14px; opacity: 0.4; line-height: 1; }
910
+ .editor-tab-close:hover { opacity: 1; color: var(--danger, #f38ba8); }
911
+
912
+ .editor-content { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
913
+ .editor-welcome { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; opacity: 0.5; }
914
+
915
+ .editor-statusbar { display: flex; justify-content: space-between; padding: 4px 12px; background: var(--bg, #181825); border-top: 1px solid var(--border, #313244); font-size: 0.7rem; flex-shrink: 0; }
916
+
917
+ .editor-md-preview { background: var(--surface, #1e1e2e); }
918
+ .md-preview-content img { max-width: 100%; }
919
+ .md-preview-content table { border-collapse: collapse; }
920
+
921
+ /* Image preview */
922
+ .editor-image-preview { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
923
+ .image-preview-toolbar { display: flex; justify-content: space-between; padding: 6px 12px; border-bottom: 1px solid var(--border, #313244); flex-shrink: 0; }
924
+ .image-preview-container { flex: 1; display: flex; align-items: center; justify-content: center; overflow: auto; padding: 1rem; background: repeating-conic-gradient(rgba(255,255,255,0.03) 0% 25%, transparent 0% 50%) 50% / 20px 20px; }
925
+ .image-preview-container img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
926
+
927
+ /* SVG floating preview */
928
+ .editor-svg-float { position: absolute; top: 8px; right: 8px; width: 240px; background: var(--surface, #313244); border: 1px solid var(--border, #45475a); border-radius: 0.5rem; box-shadow: 0 4px 16px rgba(0,0,0,0.4); z-index: 10; overflow: hidden; }
929
+ .editor-svg-float.collapsed .svg-preview-content { display: none; }
930
+ .svg-preview-header { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px; border-bottom: 1px solid var(--border, #313244); }
931
+ .svg-preview-content { padding: 8px; background: repeating-conic-gradient(rgba(255,255,255,0.03) 0% 25%, transparent 0% 50%) 50% / 16px 16px; max-height: 200px; overflow: auto; display: flex; align-items: center; justify-content: center; }
932
+ .svg-preview-content svg { max-width: 100%; max-height: 180px; }
933
+
934
+ /* Scaffold toolbar */
935
+ .editor-scaffold-bar { border-top: 1px solid var(--border, #313244); padding: 0.5rem; flex-shrink: 0; }
936
+ .scaffold-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted, #6c7086); margin-bottom: 4px; }
937
+ .scaffold-buttons { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 4px; }
938
+ .scaffold-btn { font-size: 0.65rem; padding: 3px 6px; background: var(--surface, #313244); border: 1px solid var(--border, #45475a); border-radius: 3px; color: var(--text, #cdd6f4); cursor: pointer; white-space: nowrap; }
939
+ .scaffold-btn:hover { background: rgba(255,255,255,0.08); }
940
+ .scaffold-btn.scaffold-run { color: var(--success, #a6e3a1); border-color: var(--success, #a6e3a1); }
941
+ .scaffold-btn.scaffold-run:hover { background: rgba(166,227,161,0.1); }
942
+ .scaffold-sep { height: 1px; background: var(--border, #313244); margin: 4px 0; }
943
+ .scaffold-output { font-size: 0.7rem; max-height: 120px; overflow-y: auto; background: #11111b; border-radius: 3px; padding: 6px; margin-top: 4px; font-family: monospace; white-space: pre-wrap; }
944
+
945
+ /* Context menu */
946
+ .editor-ctx-menu { background: var(--surface, #313244); border: 1px solid var(--border, #45475a); border-radius: 0.375rem; padding: 4px 0; min-width: 180px; box-shadow: 0 4px 16px rgba(0,0,0,0.5); }
947
+ .ctx-item { padding: 6px 12px; cursor: pointer; font-size: 0.8rem; display: flex; justify-content: space-between; align-items: center; }
948
+ .ctx-item:hover { background: rgba(255,255,255,0.08); }
949
+ .ctx-item.ctx-danger:hover { background: rgba(243,139,168,0.15); color: #f38ba8; }
950
+ .ctx-shortcut { font-size: 0.65rem; color: var(--muted, #6c7086); margin-left: 1rem; }
951
+ .ctx-sep { height: 1px; background: var(--border, #313244); margin: 4px 0; }
952
+
953
+ /* Menu dropdown */
954
+ .editor-menu-dropdown { position: absolute; top: 100%; left: 0; background: var(--surface, #313244); border: 1px solid var(--border, #313244); border-radius: 0.375rem; padding: 4px 0; min-width: 160px; z-index: 100; box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
955
+ .editor-menu-item { padding: 6px 12px; cursor: pointer; font-size: 0.8rem; white-space: nowrap; }
956
+ .editor-menu-item:hover { background: rgba(255,255,255,0.08); }
957
+
958
+ /* Right panel (AI / Dependencies) */
959
+ .editor-right-panel { width: 280px; flex-shrink: 0; background: var(--bg, #181825); border-left: 1px solid var(--border, #313244); display: flex; flex-direction: column; overflow: hidden; }
960
+ .editor-right-panel.collapsed { width: 0; min-width: 0; border-left: none; }
961
+
962
+ /* Column splitters — thin draggable dividers between the sidebar,
963
+ the editor, and the right panel. 4px wide so they stay out of
964
+ the way; hover and active states widen the visible rule for
965
+ feedback without reflowing the layout. */
966
+ .editor-splitter { flex: 0 0 4px; cursor: col-resize; background: transparent; position: relative; z-index: 5; user-select: none; }
967
+ .editor-splitter:hover { background: var(--info, #89b4fa); opacity: 0.5; }
968
+ .editor-splitter.dragging { background: var(--info, #89b4fa); opacity: 0.9; }
969
+ .editor-right-panel.collapsed + * /* noop — scope-safe CSS */ { }
970
+
971
+ /* Tab context menu (right-click on a tab for close-left/right/all). */
972
+ .tab-ctx-menu { position: fixed; z-index: 10000; min-width: 180px; background: var(--bg, #181825); border: 1px solid var(--border, #313244); border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,0.4); padding: 4px; font-size: 0.8rem; }
973
+ .tab-ctx-item { padding: 6px 10px; cursor: pointer; border-radius: 4px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
974
+ .tab-ctx-item:hover { background: rgba(255,255,255,0.08); }
975
+ .tab-ctx-item.disabled { opacity: 0.35; cursor: not-allowed; }
976
+ .tab-ctx-item.disabled:hover { background: transparent; }
977
+ .tab-ctx-sep { height: 1px; background: var(--border, #313244); margin: 4px 0; }
978
+ .tab-ctx-shortcut { color: var(--muted, #64748b); font-size: 0.7rem; }
979
+ .right-panel-view { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }
980
+
981
+ /* Dependency panel */
982
+ .deps-results { font-size: 0.8rem; }
983
+ .deps-item { padding: 6px 8px; border-bottom: 1px solid var(--border, #313244); cursor: default; }
984
+ .deps-item:hover { background: rgba(255,255,255,0.03); }
985
+ .deps-item-name { font-weight: 600; color: var(--info, #89b4fa); font-size: 0.8rem; }
986
+ .deps-item-desc { font-size: 0.7rem; color: var(--muted, #6c7086); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
987
+ .deps-item-meta { font-size: 0.65rem; color: var(--muted, #6c7086); margin-top: 3px; display: flex; justify-content: space-between; align-items: center; }
988
+ .deps-installed-item { padding: 4px 8px; font-size: 0.75rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.03); }
989
+ .deps-installed-item:hover { background: rgba(255,255,255,0.03); }
990
+ .deps-ver { color: var(--muted, #6c7086); font-size: 0.65rem; }
991
+ .editor-ai-header { padding: 0.5rem 0.75rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border, #313244); flex-shrink: 0; }
992
+ .editor-ai-messages { flex: 1; overflow-y: auto; padding: 0.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
993
+
994
+ /* ── Session panel restructure ─────────────────────────────
995
+ The right-panel is now organised around a session (one
996
+ supervisor-owned unit of work) rather than a chat log.
997
+ Zones, top to bottom:
998
+ 1. status strip — title, plan, health, mode
999
+ 2. tab bar — Activity / Plan / Thoughts / Diff / Checks
1000
+ 3. tab body — one panel visible, rest hidden
1001
+ 4. activity strip — collapsed current-turn indicator
1002
+ 5. action bar — input + Send/Revise/Apply/Cancel
1003
+ The Activity tab hosts the existing #editor-ai-messages
1004
+ container so legacy chat rendering keeps working untouched
1005
+ while the rest of the panel rebuilds around it. */
1006
+
1007
+ .session-strip { flex-shrink: 0; border-bottom: 1px solid var(--border, #313244); padding: 0.4rem 0.5rem 0.3rem; display: flex; flex-direction: column; gap: 0.25rem; }
1008
+ .session-strip-row { display: flex; align-items: center; gap: 0.4rem; min-width: 0; }
1009
+ .session-title-row { justify-content: space-between; }
1010
+ .session-title-wrap { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.15; }
1011
+ .session-title { font-size: 0.78rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
1012
+ .session-meta { font-size: 0.65rem; opacity: 0.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
1013
+ .session-meta:empty { display: none; }
1014
+ .session-collapse-btn { font-size: 0.6rem; padding: 2px 6px; flex-shrink: 0; }
1015
+ .session-plan-row { font-size: 0.68rem; opacity: 0.85; min-height: 0; }
1016
+ .session-plan-row:empty, .session-plan-indicator:empty { display: none; }
1017
+ .session-plan-indicator { min-width: 0; overflow: hidden; display: inline-flex; align-items: center; gap: 0.4rem; flex: 1; }
1018
+
1019
+ /* Health row — tiny dots per service. Grey = unknown, green = up,
1020
+ red = down. Flex-end so the mode toggle tucks to the right. */
1021
+ .session-health-row { gap: 0.3rem; }
1022
+ .session-health-label { font-size: 0.6rem; opacity: 0.45; text-transform: uppercase; letter-spacing: 0.04em; margin-right: 0.15rem; }
1023
+ .model-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted, #64748b); display: inline-block; flex-shrink: 0; transition: background 0.2s; position: relative; }
1024
+ .model-dot.up { background: var(--success, #a6e3a1); }
1025
+ .model-dot.down { background: var(--danger, #f38ba8); }
1026
+ .model-dot:hover { outline: 1px solid rgba(255,255,255,0.2); outline-offset: 2px; }
1027
+
1028
+ /* Mode toggle — segmented pair. Only one active at a time; the
1029
+ inactive is subdued so the eye lands on the current mode. */
1030
+ .session-mode-toggle { margin-left: auto; display: inline-flex; border: 1px solid var(--border, #313244); border-radius: 4px; overflow: hidden; flex-shrink: 0; }
1031
+ .session-mode-toggle .mode-btn { background: transparent; border: none; color: var(--muted, #9399b2); font-size: 0.62rem; padding: 2px 7px; cursor: pointer; letter-spacing: 0.01em; }
1032
+ .session-mode-toggle .mode-btn:hover { background: rgba(255,255,255,0.04); color: var(--text, #cdd6f4); }
1033
+ .session-mode-toggle .mode-btn.active { background: var(--info, #89b4fa); color: #1e1e2e; font-weight: 600; }
1034
+
1035
+ /* Completion toggle — small ⚡ button next to the mode toggle.
1036
+ Three visual states: on-plan (primary color), off-plan (dimmed
1037
+ with an off-plan dot), disabled (strike-through). Click to
1038
+ flip enabled/disabled; hover tooltip carries the full status. */
1039
+ .completion-toggle { background: transparent; border: 1px solid var(--border, #313244); color: var(--warning, #f9e2af); font-size: 0.62rem; padding: 2px 6px; border-radius: 4px; cursor: pointer; line-height: 1; flex-shrink: 0; }
1040
+ .completion-toggle:hover { background: rgba(249,226,175,0.08); }
1041
+ .completion-toggle.on-plan { color: var(--info, #89b4fa); border-color: rgba(137,180,250,0.35); background: rgba(137,180,250,0.08); }
1042
+ .completion-toggle.off-plan { color: var(--muted, #9399b2); border-color: var(--border, #313244); }
1043
+ .completion-toggle.disabled { color: var(--muted, #9399b2); opacity: 0.5; text-decoration: line-through; }
1044
+
1045
+ /* Tab bar — flat, underline on active. Kept terse; each tab is
1046
+ a single word so they all fit at 280px panel width. */
1047
+ .session-tabs { display: flex; flex-shrink: 0; border-bottom: 1px solid var(--border, #313244); background: transparent; }
1048
+ .session-tab { flex: 1; background: transparent; border: none; color: var(--muted, #9399b2); padding: 6px 4px; font-size: 0.7rem; cursor: pointer; border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s; position: relative; white-space: nowrap; }
1049
+ .session-tab:hover { color: var(--text, #cdd6f4); }
1050
+ .session-tab.active { color: var(--text, #cdd6f4); border-bottom-color: var(--info, #89b4fa); }
1051
+ .tab-badge { display: inline-block; min-width: 14px; padding: 0 4px; margin-left: 4px; background: var(--surface, #313244); color: var(--text, #cdd6f4); border-radius: 7px; font-size: 0.6rem; line-height: 14px; vertical-align: baseline; }
1052
+ .tab-badge:empty { display: none; }
1053
+ .session-tab.has-alert .tab-badge { background: var(--warning, #f9e2af); color: #1e1e2e; }
1054
+
1055
+ /* Tab bodies — flex column, one visible at a time. Each panel
1056
+ owns its own scroll so switching tabs doesn't reset position. */
1057
+ .session-tab-body { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; }
1058
+ .session-tab-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; }
1059
+ .session-tab-panel[hidden] { display: none; }
1060
+
1061
+ /* Panel empty-state pattern — consistent shape across Plan /
1062
+ Thoughts / Diff / Checks. Vertically centered, terse body,
1063
+ optional action buttons. */
1064
+ .panel-empty { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 1rem 0.75rem; text-align: center; gap: 0.4rem; color: var(--muted, #9399b2); }
1065
+ .panel-empty-title { font-size: 0.78rem; font-weight: 600; color: var(--text, #cdd6f4); }
1066
+ .panel-empty-body { font-size: 0.7rem; line-height: 1.4; max-width: 240px; }
1067
+ .panel-empty-actions { display: flex; gap: 0.35rem; margin-top: 0.4rem; }
1068
+ .panel-empty-actions .btn { font-size: 0.68rem; padding: 3px 10px; }
1069
+ .panel-content { flex: 1; overflow-y: auto; padding: 0.5rem; }
1070
+
1071
+ /* Activity strip above the input — shows who's currently working
1072
+ on this turn. Hidden when idle to avoid visual noise. */
1073
+ .session-activity-strip { flex-shrink: 0; display: flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.6rem; font-size: 0.66rem; border-top: 1px solid var(--border, #313244); background: rgba(137,180,250,0.06); color: var(--muted, #9399b2); }
1074
+ .session-activity-strip .activity-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--info, #89b4fa); animation: session-pulse 1.1s ease-in-out infinite; flex-shrink: 0; }
1075
+ .session-activity-strip .activity-text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
1076
+ @keyframes session-pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
1077
+
1078
+ /* Action row under the input — Send on the left (primary),
1079
+ secondary action on the right (Revise/Apply/Cancel appear
1080
+ only once a session has a proposal staged). */
1081
+ .session-action-row { display: flex; gap: 4px; margin-top: 4px; align-items: center; }
1082
+ .session-action-row .btn { font-size: 0.68rem; padding: 3px 9px; }
1083
+ .session-action-row .session-btn-send { flex: 0 0 auto; min-width: 58px; }
1084
+ .session-action-row .action-spacer { flex: 1; }
1085
+ .session-action-row .btn:disabled { opacity: 0.3; cursor: not-allowed; }
1086
+ .session-input { width: 100%; box-sizing: border-box; display: block; resize: vertical; font-size: 0.8rem; min-height: 36px; }
1087
+
1088
+ /* Tweaks to the existing chat styles now that they live inside a
1089
+ tab panel — the Activity panel has its own padding so the list
1090
+ container can sit flush. */
1091
+ .session-tab-panel[data-panel="activity"] .editor-ai-messages { padding: 0.5rem; }
1092
+
1093
+ /* Decision chips — inline quick-action buttons the supervisor
1094
+ can emit alongside a question ("commit now or keep going?").
1095
+ One click beats typing the answer. Chips share a row, wrap
1096
+ to a new line when they overflow. */
1097
+ .activity-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.3rem 0 0.2rem; align-items: center; }
1098
+ .activity-chips-prompt { font-size: 0.72rem; line-height: 1.4; color: var(--text, #cdd6f4); flex-basis: 100%; margin-bottom: 0.2rem; }
1099
+ .activity-chip { background: rgba(137,180,250,0.1); border: 1px solid rgba(137,180,250,0.35); color: var(--text, #cdd6f4); padding: 3px 10px; border-radius: 12px; font-size: 0.68rem; cursor: pointer; transition: background 0.15s, border-color 0.15s, opacity 0.15s; line-height: 1.3; }
1100
+ .activity-chip:hover { background: rgba(137,180,250,0.22); border-color: var(--info, #89b4fa); }
1101
+ .activity-chip.primary { background: var(--info, #89b4fa); color: #1e1e2e; border-color: transparent; font-weight: 600; }
1102
+ .activity-chip.primary:hover { background: #b4befe; }
1103
+ .activity-chip.subdued { opacity: 0.65; }
1104
+ .activity-chip.subdued:hover { opacity: 1; }
1105
+ .activity-chip.spent { opacity: 0.35; pointer-events: none; text-decoration: line-through; }
1106
+
1107
+ /* Outcome line — the "✓ src/x.py — added Y" summary that
1108
+ replaces code-block dumps in the Activity stream. Clicking
1109
+ jumps to the Diff tab for that commit (later slice). */
1110
+ .activity-outcome { display: flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.5rem; font-size: 0.72rem; border-left: 2px solid var(--success, #a6e3a1); background: rgba(166,227,161,0.06); border-radius: 0 3px 3px 0; cursor: pointer; }
1111
+ .activity-outcome:hover { background: rgba(166,227,161,0.12); }
1112
+ .activity-outcome .outcome-icon { color: var(--success, #a6e3a1); flex-shrink: 0; }
1113
+ .activity-outcome .outcome-path { font-family: "SF Mono", Menlo, monospace; font-size: 0.68rem; color: var(--info, #89b4fa); }
1114
+ .activity-outcome .outcome-note { color: var(--muted, #9399b2); font-size: 0.68rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
1115
+ .activity-outcome.failed { border-left-color: var(--danger, #f38ba8); background: rgba(243,139,168,0.08); }
1116
+ .activity-outcome.failed .outcome-icon { color: var(--danger, #f38ba8); }
1117
+
1118
+ /* Session summary strip at the top of Activity — "3 files · 5 commits"
1119
+ collapsed view of cumulative session state. */
1120
+ .session-summary-strip { display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.5rem; font-size: 0.66rem; border-bottom: 1px solid var(--border, #313244); background: rgba(255,255,255,0.02); color: var(--muted, #9399b2); flex-shrink: 0; }
1121
+ .session-summary-strip:empty, .session-summary-strip[hidden] { display: none; }
1122
+ .session-summary-strip .summary-chip { display: inline-flex; align-items: center; gap: 0.2rem; }
1123
+ .session-summary-strip .summary-chip strong { color: var(--text, #cdd6f4); font-weight: 600; }
1124
+ .session-summary-strip .summary-spacer { flex: 1; }
1125
+ .session-summary-strip .summary-toggle { background: transparent; border: none; color: var(--info, #89b4fa); cursor: pointer; font-size: 0.65rem; padding: 0; }
1126
+ .session-summary-strip .summary-toggle:hover { text-decoration: underline; }
1127
+
1128
+ /* Thoughts tab toolbar — small header with count + "Clear all".
1129
+ Shown only when there's something to clear. The clear button
1130
+ carries warning color so it reads as a power-action, not a
1131
+ casual secondary action. */
1132
+ .thoughts-toolbar { display: flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.5rem; font-size: 0.66rem; border-bottom: 1px solid var(--border, #313244); color: var(--muted, #9399b2); flex-shrink: 0; }
1133
+ .thoughts-toolbar[hidden] { display: none; }
1134
+ .thoughts-toolbar-count { color: var(--text, #cdd6f4); font-weight: 500; }
1135
+ .thoughts-toolbar-spacer { flex: 1; }
1136
+ .thoughts-toolbar-clear { font-size: 0.65rem; padding: 2px 8px; color: var(--warning, #f9e2af); border-color: rgba(249,226,175,0.35); }
1137
+ .thoughts-toolbar-clear:hover { background: rgba(249,226,175,0.1); }
1138
+
1139
+ /* ── Diff tab content ─────────────────────────────────────── */
1140
+ .diff-summary { font-size: 0.7rem; padding: 0.3rem 0.5rem; border-bottom: 1px solid var(--border, #313244); color: var(--muted, #9399b2); }
1141
+ .diff-summary strong { color: var(--text, #cdd6f4); font-weight: 600; }
1142
+ .diff-summary .diff-sha { font-family: "SF Mono", Menlo, monospace; opacity: 0.55; }
1143
+
1144
+ /* File list — one row per changed file, clickable to jump into
1145
+ the editor, status dot + additions/deletions on the right. */
1146
+ .diff-files { padding: 0.3rem 0; }
1147
+ .diff-file-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.5rem; cursor: pointer; border-left: 2px solid transparent; font-size: 0.72rem; }
1148
+ .diff-file-row:hover { background: rgba(255,255,255,0.03); border-left-color: var(--info, #89b4fa); }
1149
+ .diff-file-status { width: 16px; text-align: center; font-family: "SF Mono", Menlo, monospace; font-size: 0.65rem; font-weight: 700; flex-shrink: 0; }
1150
+ .diff-file-status.s-A { color: var(--success, #a6e3a1); }
1151
+ .diff-file-status.s-M { color: var(--info, #89b4fa); }
1152
+ .diff-file-status.s-D { color: var(--danger, #f38ba8); }
1153
+ .diff-file-status.s-R { color: var(--warning, #f9e2af); }
1154
+ .diff-file-path { flex: 1; font-family: "SF Mono", Menlo, monospace; font-size: 0.68rem; color: var(--text, #cdd6f4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
1155
+ .diff-file-stats { flex-shrink: 0; font-family: "SF Mono", Menlo, monospace; font-size: 0.65rem; display: flex; gap: 0.3rem; }
1156
+ .diff-file-stats .add { color: var(--success, #a6e3a1); }
1157
+ .diff-file-stats .del { color: var(--danger, #f38ba8); }
1158
+ .diff-file-warn { color: var(--warning, #f9e2af); font-size: 0.7rem; flex-shrink: 0; }
1159
+
1160
+ /* Warnings block — RAG-backed convention/risk/info flags, grouped
1161
+ by path, with reference link when available. Rendered below the
1162
+ file list so the user scans "what changed" first and "what might
1163
+ be wrong" second. */
1164
+ .diff-warnings { margin-top: 0.3rem; padding: 0.3rem 0.5rem; }
1165
+ .diff-warnings:empty { display: none; }
1166
+ .diff-warnings-header { font-size: 0.66rem; font-weight: 600; color: var(--warning, #f9e2af); margin-bottom: 0.3rem; display: flex; align-items: center; gap: 0.3rem; }
1167
+ .diff-warning-item { border-left: 2px solid var(--warning, #f9e2af); padding: 0.35rem 0.5rem; margin-bottom: 0.3rem; background: rgba(249,226,175,0.04); border-radius: 0 3px 3px 0; font-size: 0.72rem; line-height: 1.4; }
1168
+ .diff-warning-item.risk { border-left-color: var(--danger, #f38ba8); background: rgba(243,139,168,0.05); }
1169
+ .diff-warning-item.info { border-left-color: var(--info, #89b4fa); background: rgba(137,180,250,0.04); }
1170
+ .diff-warning-path { font-family: "SF Mono", Menlo, monospace; font-size: 0.65rem; color: var(--muted, #9399b2); margin-bottom: 0.2rem; }
1171
+ .diff-warning-kind { text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.6rem; font-weight: 700; margin-right: 0.3rem; color: var(--warning, #f9e2af); }
1172
+ .diff-warning-item.risk .diff-warning-kind { color: var(--danger, #f38ba8); }
1173
+ .diff-warning-item.info .diff-warning-kind { color: var(--info, #89b4fa); }
1174
+ .diff-warning-msg { color: var(--text, #cdd6f4); }
1175
+ .diff-warning-ref { font-size: 0.65rem; color: var(--muted, #9399b2); margin-top: 0.25rem; font-style: italic; }
1176
+ .diff-warning-ref a { color: var(--info, #89b4fa); text-decoration: none; }
1177
+ .diff-warning-ref a:hover { text-decoration: underline; }
1178
+
1179
+ /* Commit log at the bottom — terse. Each row: short sha + subject
1180
+ + trailer summary. Clicking could open the git commit view in a
1181
+ later slice; for now it's informational. */
1182
+ .diff-commits { padding: 0.3rem 0.5rem; border-top: 1px solid var(--border, #313244); margin-top: 0.3rem; }
1183
+ .diff-commits:empty { border-top: none; margin-top: 0; }
1184
+ .diff-commits-header { font-size: 0.66rem; font-weight: 600; color: var(--muted, #9399b2); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.3rem; }
1185
+ .diff-commit-row { display: flex; gap: 0.4rem; padding: 0.2rem 0; font-size: 0.68rem; align-items: baseline; }
1186
+ .diff-commit-sha { font-family: "SF Mono", Menlo, monospace; font-size: 0.62rem; color: var(--muted, #9399b2); flex-shrink: 0; width: 50px; }
1187
+ .diff-commit-subject { flex: 1; color: var(--text, #cdd6f4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1188
+ .diff-commit-agent { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--info, #89b4fa); flex-shrink: 0; }
1189
+
1190
+ /* AI code-block toolbar — every fenced block in an AI reply gets one */
1191
+ .ai-codeblock { margin: 0.5rem 0; border: 1px solid var(--border, #313244); border-radius: 6px; overflow: hidden; background: #11111b; }
1192
+ .ai-codeblock-bar { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px; background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--border, #313244); font-size: 0.7rem; }
1193
+ .ai-codeblock-lang { color: var(--muted, #9399b2); font-family: "SF Mono", Menlo, monospace; transition: color 0.2s; }
1194
+ .ai-codeblock-actions { display: flex; gap: 4px; }
1195
+ .ai-codeblock-btn { background: transparent; border: 1px solid var(--border, #313244); color: var(--text, #cdd6f4); padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; cursor: pointer; transition: background 0.15s; }
1196
+ .ai-codeblock-btn:hover:not(:disabled) { background: rgba(255,255,255,0.08); }
1197
+ .ai-codeblock-btn.ai-codeblock-apply { background: var(--info, #89b4fa); color: #1e1e2e; border-color: transparent; font-weight: 600; }
1198
+ .ai-codeblock-btn.ai-codeblock-apply:hover:not(:disabled) { background: #b4befe; }
1199
+ .ai-codeblock-btn:disabled { opacity: 0.35; cursor: not-allowed; }
1200
+ .ai-codeblock pre { margin: 0; padding: 8px 10px; overflow-x: auto; font-size: 0.75rem; line-height: 1.45; background: transparent; }
1201
+ .ai-codeblock code { background: transparent; padding: 0; }
1202
+
1203
+ /* Collapsed auto-apply acknowledgement — inline, understated. Just
1204
+ the path + tiny "view" link. No panel border. */
1205
+ .ai-codeblock-collapsed { border: none; background: transparent; margin: 0.15rem 0; display: block; font-size: 0.72rem; }
1206
+ .ai-codeblock-collapsed .ai-codeblock-bar { border: none; background: transparent; padding: 0; gap: 0.4rem; justify-content: flex-start; }
1207
+ .ai-codeblock-collapsed .ai-codeblock-lang { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--muted,#9399b2); }
1208
+ .ai-codeblock-collapsed .ai-codeblock-lang code { color: var(--text,#cdd6f4); opacity: 0.85; }
1209
+ .ai-codeblock-collapsed .ai-codeblock-btn { border: none; padding: 0; font-size: 0.7rem; color: var(--info,#89b4fa); text-decoration: underline; background: transparent; }
1210
+ .ai-codeblock-collapsed .ai-codeblock-btn:hover { background: transparent; opacity: 0.8; }
1211
+ .ai-codeblock-collapsed pre { border-top: 1px solid var(--border,#313244); margin-top: 0.35rem; background: #11111b; border-radius: 4px; }
1212
+ .editor-ai-input-area { padding: 0.5rem; border-top: 1px solid var(--border, #313244); flex-shrink: 0; }
1213
+ /* Thoughts banner — the Rust supervisor's proactive observations.
1214
+ One chip per thought; click body to ask the AI about it, × to dismiss. */
1215
+ .editor-thoughts-banner { border-top: 1px solid var(--border,#313244); padding: 0.4rem 0.5rem; max-height: 140px; overflow-y: auto; display: flex; flex-direction: column; gap: 0.3rem; flex-shrink: 0; }
1216
+ .editor-thought-chip { font-size: 0.7rem; background: rgba(249,226,175,0.08); border-left: 2px solid var(--warning,#f9e2af); padding: 0.35rem 0.5rem; border-radius: 3px; display: flex; gap: 0.4rem; align-items: flex-start; }
1217
+ .editor-thought-chip-body { flex: 1; cursor: pointer; line-height: 1.35; }
1218
+ .editor-thought-chip-body:hover { text-decoration: underline; text-decoration-style: dotted; }
1219
+ .editor-thought-chip-close { background: transparent; border: none; color: var(--muted,#9399b2); cursor: pointer; font-size: 0.85rem; padding: 0 0.25rem; line-height: 1; }
1220
+ .editor-thought-chip-close:hover { color: var(--text,#cdd6f4); }
1221
+
1222
+ .ai-msg { padding: 0.5rem 0.75rem; border-radius: 0.375rem; font-size: 0.8rem; line-height: 1.5; word-wrap: break-word; }
1223
+ .ai-msg.ai-user { background: var(--info, #89b4fa); color: #1e1e2e; align-self: flex-end; max-width: 90%; }
1224
+ .ai-msg.ai-bot { background: var(--surface, #313244); color: var(--text, #cdd6f4); max-width: 95%; }
1225
+ .ai-msg pre { background: rgba(0,0,0,0.3); padding: 0.5rem; border-radius: 0.25rem; margin: 0.375rem 0; overflow-x: auto; font-size: 0.75rem; }
1226
+ .ai-msg code { font-size: 0.75rem; }
1227
+
1228
+ .ai-diff { margin: 0.375rem 0; padding: 0.5rem; background: rgba(0,0,0,0.3); border-radius: 0.25rem; font-family: monospace; font-size: 0.7rem; }
1229
+ .ai-diff-add { color: #a6e3a1; }
1230
+ .ai-diff-del { color: #f38ba8; text-decoration: line-through; }
1231
+
1232
+ .ai-actions { display: flex; gap: 4px; margin-top: 0.375rem; }
1233
+ .ai-actions .btn { font-size: 0.65rem; padding: 2px 8px; }
1234
+ `}function BR(){if(document.getElementById("tina4-editor-styles"))return;const i=document.createElement("style");i.id="tina4-editor-styles",i.textContent=DR(),document.head.appendChild(i)}let Rc=!1;function NR(){Rc=!Rc;const i=document.getElementById("editor-right-panel");i&&i.classList.toggle("collapsed",Rc)}function tt(i,e){const t=document.getElementById("editor-ai-messages");if(!t)return;const n=document.createElement("div");n.className=`ai-msg ai-${e}`,n.innerHTML=i,t.appendChild(n),t.scrollTop=t.scrollHeight}function Zc(){const i=J.find(t=>t.path===D);if(!(i!=null&&i.view))return"";const e=i.view.state.selection.main;return i.view.state.sliceDoc(e.from,e.to)}let Dr=localStorage.getItem("tina4.editor.completion.enabled")!=="false",Br=null;const Ug="tina4.editor.chatHistory.v1",FR=200;function HR(){try{const i=localStorage.getItem(Ug);if(!i)return[];const e=JSON.parse(i);return Array.isArray(e)?e:[]}catch{return[]}}function jg(){try{const i=yt.filter(e=>e.role!=="system").slice(-FR);localStorage.setItem(Ug,JSON.stringify(i))}catch{}}const yt=HR();let Gn=null;async function KR(){var c,d;const i=await It("plan_current",{}),e=i.ok&&i.result||null;if(Nr(e),!e||!e.current)return null;const t=e.title||e.current,n=e.goal?`Goal: ${e.goal}`:"",r=`${((c=e.progress)==null?void 0:c.done)??0}/${((d=e.progress)==null?void 0:d.total)??0}`,s=(e.steps||[]).map(h=>` ${h.done?"[x]":"[ ]"} ${h.index}. ${h.text}`).join(`
1235
+ `),o=e.next_step?`
1236
+ NEXT STEP: #${e.next_step.index} — ${e.next_step.text}`:`
1237
+ All steps complete. Consider plan_archive or ask the user what's next.`,a=e.execution||{},l=[];(a.migrations||[]).length&&l.push(` migrations: ${a.migrations.join(", ")}`),(a.created||[]).length&&l.push(` created: ${a.created.join(", ")}`),(a.patched||[]).length&&l.push(` patched: ${a.patched.join(", ")}`);const O=l.length?["","ALREADY TOUCHED BY THIS PLAN (do not recreate — edit with file_patch instead):",...l]:[];return["CURRENT PLAN — you are executing this. Cross off steps as you finish them.",`File: plan/${e.current} · Title: ${t} · Progress: ${r}`,n,"","Steps:",s||" (no steps defined)",o,...O,"","When a step is done, CALL plan_complete_step(index) in the SAME turn — don't batch ticks for the end. If the user's request falls outside this plan, either add a step (plan_add_step) or ask whether to switch plans. Check the 'already touched' list before creating new files — edit existing ones."].filter(Boolean).join(`
1238
+ `)}function Nr(i){var a,l;const e=document.getElementById("editor-plan-indicator");if(i&&i.current){const O=Array.isArray(i.steps)?i.steps.find(c=>c&&!c.done):null;Br=(O==null?void 0:O.text)||i.title||i.current||null}else Br=null;if(Cc(),!e)return;if(!i||!i.current){e.innerHTML='<span style="opacity:0.55;font-size:0.7rem;cursor:pointer" onclick="window.__editorPlanSwitcher()" title="No active plan — click to create one">📋 no plan</span>';return}const t=((a=i.progress)==null?void 0:a.done)??0,n=((l=i.progress)==null?void 0:l.total)??0,r=n-t,s=n>0?Math.round(t/n*100):0,o=r<=0;e.innerHTML=`
1239
+ <span style="font-size:0.7rem;display:inline-flex;align-items:center;gap:0.3rem">
1240
+ <span style="cursor:pointer;display:inline-flex;align-items:center;gap:0.25rem" onclick="window.__editorPlanSwitcher()" title="Click to switch plans">
1241
+ <span>📋</span>
1242
+ <span style="font-weight:600;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap">${Q(i.title||i.current)}</span>
1243
+ <span style="opacity:0.6">${t}/${n}${s?` · ${s}%`:""}</span>
1244
+ </span>
1245
+ <button class="btn btn-sm" onclick="window.__editorPlanRun('${Q(i.current)}')" ${o?"disabled":""} title="Hand this plan to the Rust supervisor and let it execute remaining steps" style="font-size:0.65rem;padding:1px 6px;line-height:1;${o?"opacity:0.35;cursor:not-allowed":""}">▶</button>
1246
+ </span>`}let hi=null;async function JR(i){hi==null||hi.abort(),hi=new AbortController;const e=document.getElementById("editor-ai-messages");if(!e)return;const t=document.createElement("div");t.className="ai-msg ai-bot",t.style.cssText="padding:0.4rem 0.6rem;font-size:0.72rem;border-left:2px solid var(--info,#89b4fa);background:rgba(137,180,250,0.08)",t.innerHTML=`▶ <strong>Executing plan</strong> <code>plan/${Q(i)}</code> via Rust supervisor… <button class="btn btn-sm" onclick="window.__editorPlanStop()" style="font-size:0.6rem;padding:1px 6px;margin-left:0.5rem">Stop</button>`,e.appendChild(t);const n=document.createElement("div");n.className="ai-msg ai-bot",n.style.cssText="padding:0.35rem 0.6rem;font-size:0.7rem;opacity:0.8;font-family:var(--font-mono,monospace)",n.textContent="starting…",e.appendChild(n);const r=[];try{await lS(`plan/${i}`,o=>{var a;if(o.event==="status")n.textContent=`[${o.agent||"…"}] ${o.text||""}`;else if(o.event==="message"){const l=document.createElement("div");l.className="ai-msg ai-bot",l.style.cssText="padding:0.45rem 0.6rem;font-size:0.75rem";const O=(o.content||"").replace(/\*\*(.+?)\*\*/g,"<strong>$1</strong>").replace(/\n/g,"<br>");l.innerHTML=O,e.appendChild(l),(a=o.files_changed)!=null&&a.length&&r.push(...o.files_changed)}else o.event==="error"&&(n.textContent=`✗ ${o.text||"agent error"}`,n.style.color="var(--danger,#f38ba8)");e.scrollTop=e.scrollHeight},{signal:hi.signal}),n.textContent=r.length?`✓ done — ${r.length} file${r.length===1?"":"s"} touched`:"✓ done",n.style.color="var(--success,#a6e3a1)",await qe(".");const s=await It("plan_current",{});Nr(s.ok&&s.result||null)}catch(s){(s==null?void 0:s.name)==="AbortError"?n.textContent="⏹ stopped by user":(n.textContent=`✗ ${(s==null?void 0:s.message)||s}`,n.style.color="var(--danger,#f38ba8)")}finally{hi=null}}function eZ(){hi==null||hi.abort()}const Mg="tina4.editor.dismissedThoughts";function zc(){try{const i=localStorage.getItem(Mg);if(!i)return new Set;const e=JSON.parse(i);return new Set(Array.isArray(e)?e:[])}catch{return new Set}}function Lg(i){const e=Array.from(i).slice(-200);try{localStorage.setItem(Mg,JSON.stringify(e))}catch{}}const tZ=new Set(["hey","hi","hello","there","team","folks","everyone","i","we","you","they","our","us","my","your","their","noticed","notice","saw","see","spotted","found","thought","that","this","these","those","it","its","the","a","an","and","or","but","for","of","to","in","on","at","with","as","by","from","have","has","had","having","is","are","was","were","be","been","being","do","does","did","does","done","can","could","should","would","will","may","might","must","so","just","even","still","also","too","not","no","yes","project","projects","file","files","new","old","make","makes","made","making","know","knows","knew","known","tricky","bit","exactly","some","any","all","each","every","what","which","why","how","when","where","who","if","then","else","than","because","set","up","down","over","under","out","into","onto","developer","developers","dev","devs","user","users","environment","env"]);function Gg(i){const e=(i||"").toLowerCase().replace(/[^a-z0-9._/-]+/g," ").split(/\s+/).map(s=>s.replace(/^[._\-/]+|[._\-/]+$/g,"")).filter(s=>s.length>1),t=e.filter(s=>s.includes(".")||s.includes("/"));if(t.length)return Array.from(new Set(t)).sort().slice(0,6).join("|");const n=e.filter(s=>s.length>2&&!tZ.has(s));return Array.from(new Set(n)).sort().slice(0,4).join("|")}async function Io(){const i=document.getElementById("editor-thoughts-banner"),e=document.getElementById("thoughts-empty-state"),t=document.getElementById("thoughts-toolbar"),n=document.getElementById("thoughts-toolbar-count");if(!i)return;let r=[];try{r=await OS()}catch{r=[]}const s=zc(),o=new Set,a=[];for(const l of r){const O=Gg(l.message);s.has(O)||o.has(O)||(o.add(O),a.push(l))}if(dZ("thoughts",a.length||null,a.length>0),!a.length){i.style.display="none",i.innerHTML="",e&&(e.style.display=""),t&&t.setAttribute("hidden","");return}e&&(e.style.display="none"),t&&(t.removeAttribute("hidden"),n&&(n.textContent=`${a.length} observation${a.length===1?"":"s"}`)),i.style.display="flex",i.innerHTML=a.slice(0,20).map(l=>{const O=(l.message||"").slice(0,180);return`
1247
+ <div class="editor-thought-chip" data-id="${Q(l.id)}" data-hash="${Q(Gg(l.message))}">
1248
+ <span style="opacity:0.7">💡</span>
1249
+ <div class="editor-thought-chip-body" onclick="window.__editorThoughtAct('${Q(l.id)}')">${Q(O)}${l.message.length>180?"…":""}</div>
1250
+ <button class="editor-thought-chip-close" title="Dismiss (remembered across reloads)" onclick="window.__editorThoughtDismiss('${Q(l.id)}')">×</button>
500
1251
  </div>
501
- `).join("")}catch{e.innerHTML='<div class="text-muted text-sm" style="text-align:center;padding:1rem">Agent not connected</div>'}}async function nt(e){await fetch("/__dev/api/thoughts/dismiss",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e})}).catch(()=>{}),tt()}function un(e,t){nt(e),Oe()}setInterval(async()=>{try{const n=(await(await fetch("/__dev/api/thoughts")).json()||[]).filter(o=>!o.dismissed),i=document.getElementById("thoughts-dot");i&&(i.style.display=n.length?"inline":"none")}catch{}},6e4),window.__dismissThought=nt,window.__actOnThought=un,window.__commentOnItem=cn,window.__submitComment=mn,window.__getChecklist=et;function pn(e){document.querySelectorAll(".chat-quick-replies").forEach(n=>n.remove());const t=document.getElementById("chat-input");t&&(t.value=e,Z())}window.__quickReply=pn,window.__copyMsg=ln,window.__replyMsg=dn,window.__clearChat=tn;const ee=[];function fe(e){const t=document.getElementById("chat-status-bar"),n=document.getElementById("chat-status-text");t&&(t.style.display="flex"),n&&(n.textContent=e)}function ot(){const e=document.getElementById("chat-status-bar");e&&(e.style.display="none")}function he(e,t){const n=new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"});ee.unshift({time:n,text:e,agent:t}),ee.length>50&&(ee.length=50),Y()}async function Z(){var i;const e=document.getElementById("chat-input"),t=(i=e==null?void 0:e.value)==null?void 0:i.trim();if(!t)return;if(e.value="",B(r(t),"user"),D.length){const o=D.map(s=>s.name).join(", ");B(`<span class="text-sm text-muted">Attached: ${r(o)}</span>`,"user")}A="Thinking...",fe("Analyzing request..."),he("Analyzing request...","supervisor");const n={message:t,settings:{thinking:I.thinking,vision:I.vision,imageGen:I.imageGen}};D.length&&(n.files=D.map(o=>({name:o.name,data:o.data})));try{const o=await fetch("/__dev/api/chat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!o.ok||!o.body){const c=o.status===0?"Agent not running. Start: tina4 agent":`Error: ${o.status}`;B(`<span style="color:var(--danger)">${c}</span>`,"bot"),A="Error",Y();return}const s=o.body.getReader(),l=new TextDecoder;let a="";for(;;){const{done:c,value:d}=await s.read();if(c)break;a+=l.decode(d,{stream:!0});const b=a.split(`
502
- `);a=b.pop()||"";let _="";for(const g of b)if(g.startsWith("event: "))_=g.slice(7).trim();else if(g.startsWith("data: ")){const E=g.slice(6);try{const S=JSON.parse(E);Pe(_,S)}catch{}}}D.length=0,je()}catch{B('<span style="color:var(--danger)">Connection failed</span>',"bot"),A="Error",Y()}}function Pe(e,t){switch(e){case"status":A=t.text||"Working...",fe(`${t.agent||"supervisor"}: ${t.text||"Working..."}`),he(t.text||"",t.agent||"supervisor");break;case"message":{const n=t.content||"",i=t.agent||"supervisor";let o=it(n);i!=="supervisor"&&(o=`<span class="badge" style="font-size:0.6rem;margin-right:4px">${r(i)}</span>`+o),t.files_changed&&t.files_changed.length>0&&(o+='<div style="margin-top:0.5rem;padding:0.5rem;background:var(--bg);border-radius:0.375rem;border:1px solid var(--border)">',o+='<div class="text-sm" style="color:var(--success);font-weight:600;margin-bottom:0.25rem">Files changed:</div>',t.files_changed.forEach(s=>{o+=`<div class="text-sm text-mono">${r(s)}</div>`,ge.includes(s)||ge.push(s)}),o+="</div>"),B(o,"bot");break}case"plan":{let n="";t.content&&(n+=it(t.content)),t.approve&&(n+=`
503
- <div style="padding:0.5rem;background:var(--surface);border:1px solid var(--info);border-radius:0.375rem;margin-top:0.75rem">
504
- <div class="text-sm text-muted" style="margin-bottom:0.5rem">Uncheck items you don't want. Click + to add comments.</div>
505
- <div class="flex gap-sm" style="flex-wrap:wrap">
506
- <button class="btn btn-sm btn-primary" onclick="window.__approvePlan('${r(t.file||"")}')">Approve & Build</button>
507
- <button class="btn btn-sm" onclick="window.__submitFeedback()">Give Feedback</button>
508
- <button class="btn btn-sm" onclick="window.__keepPlan('${r(t.file||"")}')">Later</button>
509
- <button class="btn btn-sm" onclick="this.closest('.chat-msg').remove()">Dismiss</button>
1252
+ `}).join("")}async function iZ(i){var r;const e=document.querySelector(`.editor-thought-chip[data-id="${CSS.escape(i)}"] .editor-thought-chip-body`),t=((r=e==null?void 0:e.textContent)==null?void 0:r.trim())||"",n=document.getElementById("editor-ai-input");n&&t&&(n.value=t,await zi()),await Ig(i)}async function nZ(){const i=Array.from(document.querySelectorAll(".editor-thought-chip"));if(!i.length)return;const e=zc(),t=[];for(const n of i){const r=n.dataset.hash,s=n.dataset.id;r&&e.add(r),s&&t.push(s)}Lg(e);for(const n of t)$f(n).catch(()=>{});await Io()}async function Ig(i){const e=document.querySelector(`.editor-thought-chip[data-id="${CSS.escape(i)}"]`),t=e==null?void 0:e.dataset.hash;if(t){const n=zc();n.add(t),Lg(n)}try{await $f(i)}catch{}await Io()}async function Dg(){var n;(n=document.getElementById("editor-plan-modal"))==null||n.remove();const i=await It("plan_list",{}),e=i.ok&&i.result||[],t=document.createElement("div");t.id="editor-plan-modal",t.style.cssText="position:fixed;inset:0;background:rgba(0,0,0,0.6);display:flex;align-items:center;justify-content:center;z-index:9999",t.innerHTML=`
1253
+ <div style="background:var(--bg-elev,#1e1e2e);border:1px solid var(--border,#313244);border-radius:8px;padding:1.25rem;width:min(480px,92vw);max-height:80vh;overflow:auto;color:var(--text,#cdd6f4)">
1254
+ <div style="display:flex;justify-content:space-between;align-items:center;margin-bottom:0.75rem">
1255
+ <h3 style="margin:0;font-size:1rem">📋 Plans</h3>
1256
+ <button class="btn btn-sm" onclick="document.getElementById('editor-plan-modal').remove()" style="font-size:0.75rem">✕</button>
1257
+ </div>
1258
+ <p style="font-size:0.7rem;opacity:0.6;margin:0 0 0.75rem">Stored as markdown in <code>plan/</code>. The AI sees the active plan every turn.</p>
1259
+ <div style="display:flex;flex-direction:column;gap:0.25rem;margin-bottom:1rem">
1260
+ ${e.length===0?'<div style="font-size:0.8rem;opacity:0.6;padding:0.5rem">No plans yet. Create one below.</div>':""}
1261
+ ${e.map(r=>`
1262
+ <div style="display:flex;justify-content:space-between;align-items:center;padding:0.4rem 0.6rem;border:1px solid var(--border,#313244);border-radius:4px;${r.is_current?"background:rgba(137,180,250,0.12);border-color:var(--info,#89b4fa)":""}">
1263
+ <div style="flex:1;min-width:0">
1264
+ <div style="font-size:0.8rem;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap">${r.is_current?"▸ ":""}${Q(r.title||r.name)}</div>
1265
+ <div style="font-size:0.65rem;opacity:0.6">${r.steps_done}/${r.steps_total} steps · ${Q(r.name)}</div>
1266
+ </div>
1267
+ <div style="display:flex;gap:0.25rem">
1268
+ ${r.is_current?"":`<button class="btn btn-sm" onclick="window.__editorPlanSwitch('${Q(r.name)}')" style="font-size:0.65rem">Activate</button>`}
1269
+ <button class="btn btn-sm" onclick="window.__editorPlanOpen('${Q(r.name)}')" style="font-size:0.65rem" title="Open in editor">Open</button>
510
1270
  </div>
511
1271
  </div>
512
- `),t.agent&&t.agent!=="supervisor"&&(n=`<span class="badge" style="font-size:0.6rem;margin-right:4px">${r(t.agent)}</span>`+n),B(n,"bot");break}case"error":ot(),B(`<span style="color:var(--danger)">${r(t.message||"Unknown error")}</span>`,"bot"),A="Error",Y();break;case"plan_failed":{const n=t.completed||0,i=t.total||0,o=t.failed_step||0,s=`
513
- <div style="padding:0.5rem;background:var(--surface);border:1px solid var(--warn);border-radius:0.375rem;margin-top:0.25rem">
514
- <div class="text-sm" style="margin-bottom:0.5rem">${n} of ${i} steps completed. Failed at step ${o}.</div>
515
- <div class="flex gap-sm">
516
- <button class="btn btn-sm btn-primary" onclick="window.__resumePlan('${r(t.file||"")}')">Resume</button>
517
- <button class="btn btn-sm" onclick="this.closest('.chat-msg').remove()">Dismiss</button>
518
- </div>
1272
+ `).join("")}
1273
+ </div>
1274
+ <hr style="border:none;border-top:1px solid var(--border,#313244);margin:0.75rem 0">
1275
+ <div style="display:flex;flex-direction:column;gap:0.4rem">
1276
+ <input id="plan-new-title" class="input" placeholder="New plan title (e.g. 'Implement contact form')" style="font-size:0.8rem">
1277
+ <textarea id="plan-new-goal" class="input" placeholder="Goal (optional, one line)" rows="2" style="font-size:0.8rem;resize:vertical"></textarea>
1278
+ <div style="display:flex;gap:0.25rem;justify-content:flex-end">
1279
+ <button class="btn btn-sm btn-primary" onclick="window.__editorPlanCreate()" style="font-size:0.75rem">Create & activate</button>
519
1280
  </div>
520
- `;B(s,"bot");break}case"done":A="Done",ot(),he("Done","supervisor"),setTimeout(()=>{A="Idle",Y()},3e3);break}}async function gn(e){B(`<span style="color:var(--success)">Plan approved — let's build it!</span>`,"user"),A="Executing plan...",he("Plan approved — building...","supervisor"),fe("Building...");const t={plan_file:e,settings:{thinking:I.thinking,vision:I.vision,imageGen:I.imageGen}};try{const n=await fetch("/__dev/api/execute",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!n.ok||!n.body)return;const i=n.body.getReader(),o=new TextDecoder;let s="";for(;;){const{done:l,value:a}=await i.read();if(l)break;s+=o.decode(a,{stream:!0});const c=s.split(`
521
- `);s=c.pop()||"";let d="";for(const b of c)if(b.startsWith("event: "))d=b.slice(7).trim();else if(b.startsWith("data: "))try{Pe(d,JSON.parse(b.slice(6)))}catch{}}}catch{B('<span style="color:var(--danger)">Plan execution failed</span>',"bot")}}function bn(e){B(`<span style="color:var(--muted)">Plan saved for later: ${r(e)}</span>`,"bot")}function yn(){const{accepted:e,rejected:t,comments:n}=et();let i=`Here's my feedback on the proposal:
522
-
523
- `;e.length&&(i+=`**Keep these:**
524
- `+e.map(s=>`- ${s}`).join(`
525
- `)+`
526
-
527
- `),t.length&&(i+=`**Remove these:**
528
- `+t.map(s=>`- ${s}`).join(`
529
- `)+`
530
-
531
- `),n.length&&(i+=`**Comments:**
532
- `+n.map(s=>`- ${s}`).join(`
533
- `)+`
534
-
535
- `),!t.length&&!n.length&&(i+="Everything looks good. "),i+="Please revise the plan based on this feedback.";const o=document.getElementById("chat-input");o&&(o.value=i,Z())}async function fn(e){B('<span style="color:var(--info)">Resuming plan...</span>',"user"),A="Resuming...",fe("Resuming...");const t={plan_file:e,resume:!0,settings:{thinking:I.thinking,vision:I.vision,imageGen:I.imageGen}};try{const n=await fetch("/__dev/api/execute",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!n.ok||!n.body)return;const i=n.body.getReader(),o=new TextDecoder;let s="";for(;;){const{done:l,value:a}=await i.read();if(l)break;s+=o.decode(a,{stream:!0});const c=s.split(`
536
- `);s=c.pop()||"";let d="";for(const b of c)if(b.startsWith("event: "))d=b.slice(7).trim();else if(b.startsWith("data: "))try{Pe(d,JSON.parse(b.slice(6)))}catch{}}}catch{B('<span style="color:var(--danger)">Resume failed</span>',"bot")}}window.__resumePlan=fn,window.__submitFeedback=yn,window.__approvePlan=gn,window.__keepPlan=bn;async function hn(){try{const e=await T("/chat/undo","POST");B(`<span style="color:var(--warn)">${r(e.message||"Undo complete")}</span>`,"bot")}catch{B('<span style="color:var(--warn)">Nothing to undo</span>',"bot")}}const D=[];function vn(){const e=document.getElementById("chat-file-input");e!=null&&e.files&&(document.getElementById("chat-attachments"),Array.from(e.files).forEach(t=>{const n=new FileReader;n.onload=()=>{D.push({name:t.name,data:n.result}),je()},n.readAsDataURL(t)}),e.value="")}function je(){const e=document.getElementById("chat-attachments");if(e){if(!D.length){e.style.display="none";return}e.style.display="flex",e.style.cssText+="gap:0.375rem;flex-wrap:wrap;margin-bottom:0.375rem;font-size:0.75rem",e.innerHTML=D.map((t,n)=>`<span style="background:var(--surface);border:1px solid var(--border);border-radius:4px;padding:2px 8px;display:inline-flex;align-items:center;gap:4px">
537
- ${r(t.name)} <span style="cursor:pointer;color:var(--danger)" onclick="window.__removeFile(${n})">&times;</span>
538
- </span>`).join("")}}function xn(e){D.splice(e,1),je()}let te=!1,P=null;function wn(){const e=document.getElementById("chat-mic-btn"),t=window.SpeechRecognition||window.webkitSpeechRecognition;if(!t){B('<span style="color:var(--warn)">Speech recognition not supported in this browser</span>',"bot");return}if(te&&P){P.stop(),te=!1,e&&(e.textContent="Mic",e.style.background="");return}P=new t,P.continuous=!1,P.interimResults=!1,P.lang="en-US",P.onresult=n=>{const i=n.results[0][0].transcript,o=document.getElementById("chat-input");o&&(o.value=(o.value?o.value+" ":"")+i)},P.onend=()=>{te=!1,e&&(e.textContent="Mic",e.style.background="")},P.onerror=()=>{te=!1,e&&(e.textContent="Mic",e.style.background="")},P.start(),te=!0,e&&(e.textContent="Stop",e.style.background="var(--danger)")}window.__removeFile=xn;function it(e){let t=e.replace(/\\n/g,`
539
- `);const n=[];t=t.replace(/```(\w*)\n([\s\S]*?)```/g,(l,a,c)=>{const d=n.length;return n.push(`<pre style="background:var(--bg);padding:0.75rem;border-radius:0.375rem;overflow-x:auto;margin:0.5rem 0;font-size:0.75rem;border:1px solid var(--border)"><code>${r(c)}</code></pre>`),`\0CODE${d}\0`});const i=t.split(`
540
- `),o=[];for(const l of i){const a=l.trim();if(a.startsWith("\0CODE")){o.push(a);continue}if(a.startsWith("### ")){o.push(`<div style="font-weight:700;font-size:0.8rem;margin:0.75rem 0 0.25rem;color:var(--info)">${r(a.slice(4))}</div>`);continue}if(a.startsWith("## ")){o.push(`<div style="font-weight:700;font-size:0.9rem;margin:0.75rem 0 0.25rem">${r(a.slice(3))}</div>`);continue}if(a.startsWith("# ")){o.push(`<div style="font-weight:700;font-size:1rem;margin:0.75rem 0 0.25rem">${r(a.slice(2))}</div>`);continue}if(a==="---"||a==="***"){o.push('<hr style="border:none;border-top:1px solid var(--border);margin:0.5rem 0">');continue}const c=a.match(/^(\d+)[.)]\s+(.+)/);if(c){if(c[2].trim().endsWith("?")){const b=`q-${be}-${c[1]}`;o.push(`<div style="margin:0.3rem 0;padding-left:0.5rem">
541
- <div style="margin-bottom:4px"><span style="color:var(--info);font-weight:600;margin-right:0.4rem">${c[1]}.</span>${ne(c[2])}</div>
542
- <div style="display:flex;gap:4px;align-items:center;flex-wrap:wrap">
543
- <input type="text" class="input chat-answer-input" id="${b}" data-q="${c[1]}" placeholder="Your answer..." style="font-size:0.75rem;padding:4px 8px;flex:1;max-width:350px">
544
- <button class="btn btn-sm" style="font-size:0.6rem;padding:2px 6px" onclick="window.__quickAnswer(this,'Yes')">Yes</button>
545
- <button class="btn btn-sm" style="font-size:0.6rem;padding:2px 6px" onclick="window.__quickAnswer(this,'No')">No</button>
546
- <button class="btn btn-sm" style="font-size:0.6rem;padding:2px 6px" onclick="window.__quickAnswer(this,'Later')">Later</button>
547
- <button class="btn btn-sm" style="font-size:0.6rem;padding:2px 6px" onclick="window.__quickAnswer(this,'Skip')">Skip</button>
1281
+ </div>
1282
+ </div>`,document.body.appendChild(t),t.addEventListener("click",r=>{r.target===t&&t.remove()})}async function rZ(i){var t;await It("plan_switch_to",{name:i}),(t=document.getElementById("editor-plan-modal"))==null||t.remove();const e=await It("plan_current",{});Nr(e.ok&&e.result||null),di(`Active plan: ${i}`)}async function sZ(i){var e;(e=document.getElementById("editor-plan-modal"))==null||e.remove(),await Zi(`plan/${i}`)}async function oZ(){var a,l,O;const i=document.getElementById("plan-new-title"),e=document.getElementById("plan-new-goal"),t=((a=i==null?void 0:i.value)==null?void 0:a.trim())||"",n=((l=e==null?void 0:e.value)==null?void 0:l.trim())||"";if(!t){i&&(i.style.borderColor="var(--danger,#f38ba8)",i.placeholder="Title is required",i.focus());return}const r=await It("plan_create",{title:t,goal:n,steps:[],make_current:!0}),s=r.result;if(!r.ok||!(s!=null&&s.ok)){const c=(s==null?void 0:s.error)||r.error||"Plan creation failed";alert(c);return}(O=document.getElementById("editor-plan-modal"))==null||O.remove();const o=await It("plan_current",{});Nr(o.ok&&o.result||null),await qe("."),di(`Plan created: ${t}`)}let Do=null,Bg=0;const aZ=1e4;async function qc(){return Do&&Date.now()-Bg<aZ||(Do=await ny(),Bg=Date.now()),Do}const Vc=20;async function zi(){var p;const i=document.getElementById("editor-ai-input"),e=(p=i==null?void 0:i.value)==null?void 0:p.trim();if(!e)return;i.value="",Gn==null||Gn.abort(),Gn=new AbortController;const t=/(?:image|images|picture|pictures|pic|pics|p[ci]ct?u?re|drawing|illustration|render|rendering|sketch|photo|photograph|graphic|art|artwork)/i;let n=null;const r=e.match(new RegExp("^\\s*(?:generate|create|render|draw|make|sketch|show|give\\s+me|gimme)\\s+(?:an?\\s+|some\\s+)?"+t.source+"(?:\\s+(?:of|for|showing|with))?\\s*[:,-]?\\s+(.+)$","i"));if(r)n=r[1].trim();else{const m=e.match(/^\s*(?:draw|sketch)\s+(?:an?\s+|some\s+)?(.+)$/i);if(m&&(n=m[1].trim()),!n){const $=e.match(new RegExp("^\\s*(?:a\\s+)?"+t.source+"\\s+(?:of|for|showing|with|depicting)\\s*(?:an?\\s+|some\\s+)?(.+)$","i"));$&&(n=$[1].trim())}}if(n&&n.length>0){i&&(i.value=n),await rQ();return}if(tt(Q(e),"user"),Hg()==="supervisor"&&!be){const m=e.split(`
1283
+ `)[0].slice(0,120).trim()||"supervisor session";try{if(!await Ec(m,"")){tt("Couldn't start a supervisor session — check the Rust agent is running (framework_port + 2000) and try again, or switch to Q&amp;A mode for a read-only chat.","bot");return}}catch($){tt(`Couldn't start a supervisor session: ${Q(String(($==null?void 0:$.message)||$))}. Switch to Q&amp;A mode for a read-only chat.`,"bot");return}}const s=J.find(m=>m.path===D),o=Zc();for(;yt.length&&yt[0].role==="system";)yt.shift();const a=await qc(),l=await KR();let c=["You are a coding assistant embedded in the Tina4 editor.","Rules:","- Be direct and concise. No pleasantries, no 'how can I help' filler.","- NEVER repeat the file's contents back to the user — they can see it.","- NEVER describe what a file 'contains' — jump straight to the answer.","- NEVER end with 'is there anything else…' or similar prompts.","- When suggesting code changes, output ONLY the new/changed code in a fenced block, with a comment on line 1 showing the target path, e.g. `// src/routes/home.ts`.","- For multi-step changes, number them. One fenced block per step.","- If the user asks for an explanation, give it in ≤3 short paragraphs.","- Answers must be about the CURRENT active file shown below. If the user asks about a different file, say so.","- Prefer calling tools (database_query, file_read, route_list, etc.) to *verify* facts before answering. Do NOT guess table names, file contents, or routes when a tool call can confirm them.","- INVESTIGATE, DON'T INTERROGATE. You have file_read, index_search, index_file, docs_search, route_list, orm_describe, file_list, database_tables, and 25+ more tools. Before asking the user 'what's in app.py?' or 'where is X?' — just call the tool. Asking for information you can fetch yourself in one tool call wastes the user's time and makes you look lazy."," • User says 'add an sqlite database'? Call index_file('app.py') or file_read('app.py'), see what's there, then file_patch/file_write the Database(...) line in. Don't ask for confirmation."," • User refers to a filename without a path ('app.py', 'home.py', 'users.twig')? Try the obvious locations first (./app.py, src/routes/home.py, src/templates/users.twig) via index_search or file_read. Only ask if you genuinely can't find it."," • User says 'add it under data' or similar ambiguous phrasing? Interpret reasonably based on context — 'under data' for an sqlite DB means the .db file lives in ./data/, not that you edit something in a data/ directory. Make the sensible call and proceed; if wrong, the user will correct you in the next turn.","- DEFAULT TO THE ACTIVE FILE. The currently-open file in the editor is shown to you every turn (look for 'Active file:' in this prompt). When the user gives an edit instruction without naming a file — 'remove the placeholders', 'add a docstring', 'rename this function', 'make it public', 'add noauth' — they mean the active file. Operate on it. Do NOT ask 'which file?' when there's one right in front of you. Only ask when no file is active OR when the instruction mentions a different filename explicitly."," • Example: active file is src/routes/ping.py, user says 'remove noauth' → file_patch ping.py to strip every @noauth() decorator. Don't ask; there's only one possible target."," • Example: active file is .env, user says 'add a comment at the top' → file_patch .env. Don't ask.","- EDITING FILES — critical rules:"," • NEVER claim to have changed a file unless you actually emitted a ```tool_call``` for `file_write` or `file_patch` in the SAME turn and got back a `tool_result`. Saying 'Added X' or 'Updated Y' without a real tool call is a lie. If you didn't call a tool, you didn't change anything — say what you'd change and ask the user to confirm instead."," • For small/targeted changes to an EXISTING file: use `file_patch` with a minimal unique `old_string` and the replacement `new_string`. Never reach for file_write when file_patch can do the job."," • Only use `file_write` when (a) creating a brand-new file, or (b) rewriting a file wholesale. In both cases the `content` argument MUST be the COMPLETE file contents — every line, top to bottom. Emitting a fragment deletes the rest of the file."," • Before file_write on an existing file, call `file_read` first and include every line in your replacement. Never guess what was there."," • If the change is a single snippet (one function, one block, one fragment), that is a file_patch, not a file_write.","- Response shape for an edit request:"," 1. Emit the tool_call block(s) (file_patch or file_write)."," 2. Wait for the tool_result."," 3. THEN respond with ONE short sentence acknowledging what you did. Example: user asks 'add css to file' → after a successful file_patch → you reply 'Added CSS to src/templates/index.html.' That's it. Do NOT repeat the changed code — the editor already shows it."," If the tool_result shows an error, explain what went wrong and retry. Never pretend the edit succeeded.","- ANNOUNCING IS NOT DOING. If you write 'Implementing step 2: POST /api/contact route.' and don't emit a tool_call block, you've done NOTHING. The user will see a warning chip. Either emit the tool_call in the same turn, or don't announce — every sentence describing work must be backed by a matching tool_call you already emitted above it. 'I will add X' is forbidden phrasing; your ONLY options are (a) emit a tool_call and follow with 'Added X.' or (b) ask a clarifying question. Never promise future work.","- BATCH tool calls when a request implies multiple edits (e.g. 'remove all placeholders', 'rename variable everywhere', 'add X to every field'). Emit every ```tool_call``` block in a SINGLE response — they run in parallel. Doing one patch per turn is slow and fills the chat with noise. Only fall back to sequential calls when a later edit genuinely depends on an earlier result.",'- Worked example. User: "add placeholders to the form" on a 3-input HTML file. CORRECT response (all three patches in ONE turn):'," ```tool_call",' {"name":"file_patch","arguments":{"path":"src/templates/index.html","old_string":"id=\\"name\\" name=\\"name\\" required","new_string":"id=\\"name\\" name=\\"name\\" required placeholder=\\"Full name\\""}}'," ```"," ```tool_call",' {"name":"file_patch","arguments":{"path":"src/templates/index.html","old_string":"id=\\"last_name\\" name=\\"last_name\\" required","new_string":"id=\\"last_name\\" name=\\"last_name\\" required placeholder=\\"Last name\\""}}'," ```"," ```tool_call",' {"name":"file_patch","arguments":{"path":"src/templates/index.html","old_string":"id=\\"email\\" name=\\"email\\" required","new_string":"id=\\"email\\" name=\\"email\\" required placeholder=\\"you@example.com\\""}}'," ```"," WRONG: emitting just one tool_call and saying 'Added a placeholder to the name field'. That's one out of three — the user asked for all of them."].join(`
1284
+ `);const d=dy(cy());c+=`
1285
+
1286
+ `+d,c+=`
1287
+
1288
+ `+ly;try{const m=await ey(e,s==null?void 0:s.path,3);m.length&&(c+=`
1289
+
1290
+ RELEVANT FRAMEWORK DOCS (retrieved for this turn):
1291
+ `+m.map(($,g)=>`[${g+1}] (${$.source}) ${$.text}`).join(`
1292
+
1293
+ `))}catch{}a.length&&(c+=`
1294
+
1295
+ `+ry(a)),l&&(c+=`
1296
+
1297
+ `+l),s?c+=`
1298
+
1299
+ ---
1300
+ Active file: ${s.path} (${s.language})
1301
+ \`\`\`${s.language}
1302
+ ${s.content}
1303
+ \`\`\``:c+=`
1304
+
1305
+ ---
1306
+ (No file is currently open in the editor.)`,o&&(c+=`
1307
+
1308
+ User's current selection:
1309
+ \`\`\`${(s==null?void 0:s.language)||""}
1310
+ ${o}
1311
+ \`\`\``),yt.unshift({role:"system",content:c}),yt.push({role:"user",content:e}),jg();const h=document.getElementById("editor-ai-messages");if(!h)return;const f=document.createElement("div");f.className="ai-msg ai-bot",f.innerHTML='<span style="opacity:0.6">Thinking…</span>',h.appendChild(f),h.scrollTop=h.scrollHeight;try{let m=f,$=0,g=!1;for(;$<Vc;){const y=await KQ(yt,{signal:Gn.signal,onToken:(q,L)=>{m.textContent=L,h.scrollTop=h.scrollHeight}});yt.push({role:"assistant",content:y}),jg();const S=sQ(y);S.trim()?m.innerHTML=S:m.remove(),_Z(m),Jc(y,new Set((await qc()).map(q=>q.name))).length>0&&(g=!0),TZ(m,y,g);const P=Jc(y,new Set((await qc()).map(q=>q.name)));if(!P.length)break;const v=document.createElement("div");v.className="ai-msg ai-bot",v.style.cssText="padding:0.35rem 0.6rem;font-size:0.72rem;display:flex;flex-direction:column;gap:0.15rem",h.appendChild(v),h.scrollTop=h.scrollHeight;const k=[],w=[],N=new Map;for(const q of P){const V=await vZ(q.name,q.arguments)??await It(q.name,q.arguments),te=V.ok?typeof V.result=="string"?V.result:JSON.stringify(V.result,null,2):`ERROR: ${V.error||"tool call failed"}`,re=te.length>4e3?te.slice(0,4e3)+`
1312
+ …(truncated)`:te,G=V.ok?kZ(q.name,q.arguments,V.result):"";G&&await XZ(G);let Se,Ae;V.ok?G?(Ae=`ok:${q.name}:${G}`,Se=`<div style="color:var(--success,#a6e3a1)">✓ <code>${Q(q.name)}</code> → <code>${Q(G)}</code></div>`):(Ae=`read:${q.name}:${Math.random()}`,Se=`<details><summary style="cursor:pointer;list-style:none;opacity:0.85">🔧 <code>${Q(q.name)}</code></summary><pre style="margin:0.2rem 0 0;white-space:pre-wrap;font-size:0.7rem;max-height:200px;overflow:auto">${Q(re)}</pre></details>`):(Ae=`err:${q.name}:${V.error}`,Se=`<div style="color:var(--danger,#f38ba8)">✗ <code>${Q(q.name)}</code> — ${Q((V.error||"").slice(0,120))}</div>`);const At=N.get(Ae);At?At.count+=1:(N.set(Ae,{count:1,html:Se}),w.push(Ae)),k.push(`\`\`\`tool_result name=${q.name}
1313
+ ${re}
1314
+ \`\`\``)}v.innerHTML=w.map(q=>{const{count:L,html:V}=N.get(q);return L>1?V.replace(/<\/(div|summary)>/,` <span style="opacity:0.55">×${L}</span></$1>`):V}).join(""),yt.push({role:"user",content:k.join(`
1315
+
1316
+ `)}),m=document.createElement("div"),m.className="ai-msg ai-bot",m.innerHTML='<span style="opacity:0.6">Thinking…</span>',h.appendChild(m),h.scrollTop=h.scrollHeight,$++}if($>=Vc){const y=document.createElement("div");y.className="ai-msg ai-bot",y.innerHTML=`<span style="color:var(--warning,#f9e2af);opacity:0.8">⚠ Reached ${Vc} tool-call rounds — stopping. Ask again to continue.</span>`,h.appendChild(y)}}catch(m){(m==null?void 0:m.name)==="AbortError"?f.innerHTML='<span style="opacity:0.5">cancelled</span>':(f.innerHTML=`<span style="color:var(--danger)">Connection failed: ${Q(String((m==null?void 0:m.message)||m))}</span>`,yt.pop())}finally{Gn=null}}function lZ(){const i=Zc(),e=document.getElementById("editor-ai-input");i&&e?(e.value=`Explain this code:
1317
+ \`\`\`
1318
+ ${i}
1319
+ \`\`\``,zi()):e&&(e.value="Explain what this file does",zi())}function OZ(){const i=Zc(),e=document.getElementById("editor-ai-input");i&&e?(e.value=`Suggest improvements for this code:
1320
+ \`\`\`
1321
+ ${i}
1322
+ \`\`\``,zi()):e&&(e.value="Suggest improvements for this file",zi())}const Ng="tina4.editor.session.mode",Fg="tina4.editor.session.tab";function Hg(){return localStorage.getItem(Ng)==="qa"?"qa":"supervisor"}function cZ(i){localStorage.setItem(Ng,i),Kg(i)}function Kg(i){const e=document.getElementById("session-mode-toggle");if(!e)return;e.querySelectorAll(".mode-btn").forEach(n=>{n.classList.toggle("active",n.dataset.mode===i)});const t=document.getElementById("editor-ai-input");t&&(t.placeholder=i==="qa"?"Ask a question…":"Describe the change…")}function Jg(i){localStorage.setItem(Fg,i),document.querySelectorAll(".session-tab").forEach(e=>{const t=e.dataset.tab===i;e.classList.toggle("active",t),t&&e.classList.remove("has-alert")}),document.querySelectorAll(".session-tab-panel").forEach(e=>{e.hidden=e.dataset.panel!==i}),i==="thoughts"&&Io(),i==="diff"&&be&&No()}function dZ(i,e,t=!1){const n=document.getElementById(`tab-badge-${i}`),r=document.querySelector(`.session-tab[data-tab="${i}"]`);if(n){if(!e){n.textContent="",r==null||r.classList.remove("has-alert");return}n.textContent=String(e),r==null||r.classList.toggle("has-alert",t)}}function hZ(){Dr=!Dr;try{localStorage.setItem("tina4.editor.completion.enabled",Dr?"true":"false")}catch{}Cc()}function Cc(){const i=document.getElementById("completion-toggle");if(i){if(i.classList.remove("disabled","on-plan","off-plan"),!Dr){i.classList.add("disabled"),i.setAttribute("title","Completion off — click to enable");return}Br?(i.classList.add("on-plan"),i.setAttribute("title",`Completion on-plan: ${Br.slice(0,80)}`)):(i.classList.add("off-plan"),i.setAttribute("title","Completion on (off-plan — no intent boost)"))}}let eQ=null;async function tQ(){const i=[{key:"chat",url:Gt.chat.endpoint},{key:"vision",url:Gt.vision.endpoint},{key:"embed",url:Gt.embed.endpoint},{key:"image",url:Gt.image.endpoint},{key:"rag",url:Gt.rag.endpoint}];await Promise.all(i.map(async({key:e,url:t})=>{const n=await ty(t),r=document.querySelector(`.model-dot[data-model="${e}"]`);r&&(r.classList.toggle("up",n),r.classList.toggle("down",!n))}))}function fZ(){eQ||(tQ(),eQ=window.setInterval(tQ,3e4))}function iQ(i,e){const t=document.getElementById("session-title"),n=document.getElementById("session-meta");t&&i!==null&&(t.textContent=i),n&&(n.textContent=e||"")}function uZ(i,e){const t=document.getElementById("editor-ai-messages");if(!t)return null;const n=document.createElement("div");n.className="ai-msg ai-bot",n.style.cssText="padding:0.4rem 0.6rem;background:transparent;border-left:2px solid var(--info,#89b4fa)";const r=document.createElement("div");r.className="activity-chips";const s=document.createElement("div");s.className="activity-chips-prompt",s.textContent=i,r.appendChild(s);for(const o of e){const a=document.createElement("button");a.type="button",a.className=`activity-chip ${o.variant||"default"}`,a.textContent=o.label,a.addEventListener("click",()=>{if(r.querySelectorAll(".activity-chip").forEach(O=>O.classList.add("spent")),o.onClick){o.onClick();return}const l=document.getElementById("editor-ai-input");l&&(l.value=o.replyAs||o.label,zi())}),r.appendChild(a)}return n.appendChild(r),t.appendChild(n),t.scrollTop=t.scrollHeight,n}let be=null,B=null;const Bo="tina4.editor.session.id";function Yc(i){be=i,i?localStorage.setItem(Bo,i.id):localStorage.removeItem(Bo),Wc(),Ac()}function Wc(){if(!be){iQ("No active session","");return}const i=(B==null?void 0:B.files.length)??0,e=(B==null?void 0:B.commits.length)??0,t=(B==null?void 0:B.warnings.length)??0,n=be.title||`session ${be.id.slice(0,8)}`,r=[];e&&r.push(`${e} commit${e===1?"":"s"}`),i&&r.push(`${i} file${i===1?"":"s"}`),t&&r.push(`⚠ ${t}`),iQ(n,r.join(" · "))}function Ac(){const i=document.getElementById("btn-session-revise"),e=document.getElementById("btn-session-apply"),t=document.getElementById("btn-session-cancel"),n=!!be,r=((B==null?void 0:B.files.length)??0)>0;i&&(i.disabled=!n),e&&(e.disabled=!r),t&&(t.disabled=!n)}function pZ(){const i=document.getElementById("diff-empty-state"),e=document.getElementById("diff-content-area");if(!i||!e)return;if(!be||!B||B.files.length===0){i.style.display="",e.setAttribute("hidden","");return}i.style.display="none",e.removeAttribute("hidden");const t=document.getElementById("diff-summary");if(t){const o=B.files.length,a=B.commits.length;t.innerHTML=`
1323
+ <strong>${o}</strong> file${o===1?"":"s"} across
1324
+ <strong>${a}</strong> commit${a===1?"":"s"} on
1325
+ <span class="diff-sha">${Q(B.branch)}</span>
1326
+ · forked from <span class="diff-sha">${Q(B.base_sha.slice(0,7))}</span>
1327
+ `}const n=document.getElementById("diff-files");if(n){const o=new Map;for(const a of B.warnings)o.set(a.path,(o.get(a.path)??0)+1);n.innerHTML=B.files.map(a=>{const l=(a.status[0]||"M").toUpperCase(),O=o.get(a.path)??0;return`
1328
+ <div class="diff-file-row" data-path="${Q(a.path)}" onclick="window.__editorOpenFile('${Q(a.path)}')">
1329
+ <span class="diff-file-status s-${Q(l)}">${Q(l)}</span>
1330
+ <span class="diff-file-path">${Q(a.path)}</span>
1331
+ ${O>0?`<span class="diff-file-warn" title="${O} warning${O===1?"":"s"}">⚠</span>`:""}
1332
+ <span class="diff-file-stats">
1333
+ <span class="add">+${a.additions}</span><span class="del">−${a.deletions}</span>
1334
+ </span>
1335
+ </div>
1336
+ `}).join("")}const r=document.getElementById("diff-warnings");if(r)if(B.warnings.length===0)r.innerHTML="";else{const o=B.warnings.map(l=>{const O=l.reference?`<div class="diff-warning-ref">↳ ${Q(l.reference)}</div>`:"",c=l.line?` <span style="opacity:0.6">(line ${l.line})</span>`:"";return`
1337
+ <div class="diff-warning-item ${Q(l.kind)}">
1338
+ <div class="diff-warning-path">${Q(l.path)}${c}</div>
1339
+ <div class="diff-warning-msg"><span class="diff-warning-kind">${Q(l.kind)}</span>${Q(l.message)}</div>
1340
+ ${O}
548
1341
  </div>
549
- </div>`)}else o.push(`<div style="margin:0.15rem 0;padding-left:1.5rem"><span style="color:var(--info);font-weight:600;margin-right:0.4rem">${c[1]}.</span>${ne(c[2])}</div>`);continue}if(a.startsWith("- ")){const d=`chk-${be}-${o.length}`,b=a.slice(2);o.push(`<div style="margin:0.15rem 0;padding-left:0.5rem;display:flex;align-items:flex-start;gap:6px" class="chat-checklist-item">
550
- <input type="checkbox" id="${d}" checked style="margin-top:3px;cursor:pointer;accent-color:var(--success)">
551
- <label for="${d}" style="flex:1;cursor:pointer">${ne(b)}</label>
552
- <button class="btn btn-sm" style="font-size:0.55rem;padding:1px 4px;opacity:0.5;flex-shrink:0" onclick="window.__commentOnItem(this)" title="Add comment">+</button>
553
- </div>`);continue}if(a.startsWith("> ")){o.push(`<div style="border-left:3px solid var(--info);padding-left:0.75rem;margin:0.3rem 0;color:var(--muted);font-style:italic">${ne(a.slice(2))}</div>`);continue}if(a===""){o.push('<div style="height:0.4rem"></div>');continue}o.push(`<div style="margin:0.1rem 0">${ne(a)}</div>`)}let s=o.join("");return n.forEach((l,a)=>{s=s.replace(`\0CODE${a}\0`,l)}),s}function ne(e){return r(e).replace(/\*\*(.+?)\*\*/g,"<strong>$1</strong>").replace(/\*(.+?)\*/g,"<em>$1</em>").replace(/`([^`]+)`/g,'<code style="background:var(--bg);padding:0.1rem 0.3rem;border-radius:0.2rem;font-size:0.8em;border:1px solid var(--border)">$1</code>')}function _n(e){const t=document.getElementById("chat-input");t&&(t.value=e,t.focus(),t.scrollTop=t.scrollHeight)}window.__sendChat=Z,window.__undoChat=hn,window.__prefillChat=_n;const st=document.createElement("style");st.textContent=_t,document.head.appendChild(st);const ve=xt();wt(ve);const Ne=[{id:"routes",label:"Routes",render:kt},{id:"database",label:"Database",render:$t},{id:"graphql",label:"GraphQL",render:Gt},{id:"queue",label:"Queue",render:Ut},{id:"errors",label:"Errors",render:zt},{id:"metrics",label:"Metrics",render:Nt},{id:"system",label:"System",render:Ot}],rt={id:"chat",label:"Code With Me",render:nn};let xe=localStorage.getItem("tina4_cwm_unlocked")==="true",we=xe?[rt,...Ne]:[...Ne],oe=xe?"chat":"routes";function kn(){const e=document.getElementById("app");if(!e)return;e.innerHTML=`
1342
+ `}).join(""),a=`<div class="diff-warnings-header">⚠ ${B.warnings.length} concern${B.warnings.length===1?"":"s"} from RAG verification</div>`;r.innerHTML=a+o}const s=document.getElementById("diff-commits");if(s)if(B.commits.length===0)s.innerHTML="";else{const o=B.commits.map(a=>{var O;const l=((O=a.trailer)==null?void 0:O.agent)||"";return`
1343
+ <div class="diff-commit-row">
1344
+ <span class="diff-commit-sha">${Q(a.sha.slice(0,7))}</span>
1345
+ <span class="diff-commit-subject">${Q(a.subject)}</span>
1346
+ ${l?`<span class="diff-commit-agent">${Q(l)}</span>`:""}
1347
+ </div>
1348
+ `}).join("");s.innerHTML=`<div class="diff-commits-header">commits</div>${o}`}}async function No(){if(!be){B=null,Wc(),Ac();return}try{B=await fS(be.id)}catch(i){if(B=null,String(i).includes("not found")){Yc(null);return}}Wc(),Ac(),nQ(),pZ()}async function mZ(){const i=localStorage.getItem(Bo);if(i){try{const t=(await mS()).find(n=>n.id===i);if(t){be=t,await No();return}}catch{}localStorage.removeItem(Bo)}}function $Z(){if(!be)return;const i=document.getElementById("editor-ai-input");i&&(i.placeholder=`Revise session ${be.id.slice(0,8)} — what should change?`,i.focus()),uZ(`Revising session ${be.id.slice(0,8)}. Tell me what to change, or pick:`,[{label:"Make it smaller",variant:"default",replyAs:"Narrow the scope — keep only the essential change"},{label:"Add tests",variant:"default",replyAs:"Add tests for the code you wrote"},{label:"Different approach",variant:"subdued",replyAs:"Try a different approach — tell me what you'd do differently"}])}async function gZ(){if(!be)return;const i=be.id;if(!((B==null?void 0:B.files.length)??0)){tt('<span style="opacity:0.6">Nothing to apply — session has no changes.</span>',"bot");return}tt(`<span style="opacity:0.75">Applying session <code>${Q(i.slice(0,8))}</code>…</span>`,"bot");try{const t=await uS(i,[]),n=t.applied.length,r=t.warnings.length?`<div style="opacity:0.7;margin-top:0.2rem">${Q(t.warnings.join(" · "))}</div>`:"";tt(`<span style="color:var(--success,#a6e3a1)">✓ Applied ${n} file${n===1?"":"s"}</span> · <code style="opacity:0.7">${Q(t.sha.slice(0,7))}</code>${r}`,"bot"),await zg();for(const s of t.applied)await qg(s);await No()}catch(t){tt(`<span style="color:var(--danger,#f38ba8)">✗ Apply failed: ${Q(String((t==null?void 0:t.message)||t))}</span>`,"bot")}}async function QZ(){if(!be)return;const i=be.id,e=(B==null?void 0:B.files.length)??0;if(!(e>0&&!window.confirm(`Cancel session and discard ${e} changed file${e===1?"":"s"}? This is not undoable.`)))try{await pS(i),tt(`<span style="opacity:0.65">Session ${Q(i.slice(0,8))} cancelled.</span>`,"bot"),Yc(null),B=null}catch(t){tt(`<span style="color:var(--danger,#f38ba8)">Cancel failed: ${Q(String((t==null?void 0:t.message)||t))}</span>`,"bot")}}async function yZ(){const i=window.prompt("What are you working on? (used as the commit subject when you Apply)","")||"";if(i.trim().length===0)return;await Ec(i.trim(),"");const e=document.getElementById("activity-session-bootstrap");e&&(e.style.display="none"),nQ()}function nQ(){const i=document.getElementById("session-summary-strip"),e=document.getElementById("summary-chip-session");if(!i||!e)return;if(!be||!B||B.files.length===0){i.setAttribute("hidden","");return}const t=B.files.length,n=B.commits.length,r=B.warnings.length,s=[`<strong>${t}</strong> file${t===1?"":"s"}`,`<strong>${n}</strong> commit${n===1?"":"s"}`];r>0&&s.push(`<strong style="color:var(--warning,#f9e2af)">⚠ ${r}</strong>`),e.innerHTML=s.join(" · "),i.removeAttribute("hidden")}async function Ec(i,e=""){try{const t=await hS({title:i,plan:e});return Yc(t),await No(),tt(`<span style="color:var(--info,#89b4fa)">▶ Session started</span> · <code>${Q(t.id.slice(0,8))}</code> on branch <code>${Q(t.branch)}</code>`,"bot"),t}catch(t){return tt(`<span style="color:var(--danger,#f38ba8)">Couldn't start session: ${Q(String((t==null?void 0:t.message)||t))}</span>`,"bot"),null}}async function rQ(){var r,s;const i=document.getElementById("editor-ai-input"),e=((r=i==null?void 0:i.value)==null?void 0:r.trim())||(window.prompt("Image prompt:")||"").trim();if(!e)return;i&&(i.value="");const t=document.getElementById("editor-ai-messages");if(!t)return;tt(`🎨 <em>${Q(e)}</em>`,"user");const n=document.createElement("div");n.className="ai-msg ai-bot",n.innerHTML='<span style="opacity:0.6">Generating image…</span>',t.appendChild(n),t.scrollTop=t.scrollHeight;try{const o=await JQ(e);(s=o.images)!=null&&s.length?n.innerHTML=o.images.map(a=>`<img src="${a}" style="max-width:100%;border-radius:4px;margin-bottom:4px" alt="${Q(e)}">`).join(""):n.innerHTML=`<span style="color:var(--danger)">No image returned${o.error?": "+Q(o.error):""}</span>`}catch(o){n.innerHTML=`<span style="color:var(--danger)">Image failed: ${Q(String((o==null?void 0:o.message)||o))}</span>`}}let bZ=0;const Fr=new Map;function SZ(i){const e=i.split(`
1349
+ `,1)[0]||"",t=e.match(/^\s*(?:\/\/|#|<!--)\s*([\w./\-]+\.\w+)\s*(?:-->)?\s*$/);return t&&t[1].includes("/")?{path:t[1],rest:i.slice(e.length+1)}:{path:null,rest:i}}function wZ(i){const e=l=>Q(l).replace(/`([^`]+)`/g,'<code style="background:rgba(0,0,0,0.3);padding:0.1rem 0.3rem;border-radius:0.2rem">$1</code>').replace(/\*\*(.+?)\*\*/g,"<strong>$1</strong>").replace(/(^|[^*])\*([^*\n]+)\*/g,"$1<em>$2</em>"),t=i.split(`
1350
+ `),n=[];let r=null,s=!1;const o=()=>{s&&(n.push("</ul>"),s=!1)},a=()=>{o(),r&&(n.push(`</${r}>`),r=null)};for(const l of t){const O=l.replace(/\s+$/,"");if(!O.trim()){a();continue}const c=O.match(/^(#{1,6})\s+(.*)$/);if(c){a(),n.push(`<h${c[1].length} style="margin:0.4rem 0 0.2rem;font-size:${1.05-c[1].length*.05}rem">${e(c[2])}</h${c[1].length}>`);continue}const d=O.match(/^(?:\s{2,}|\t)[-*]\s+(.*)$/);if(d&&r){s||(n.push('<ul style="margin:0.1rem 0 0.1rem 1.2rem">'),s=!0),n.push(`<li>${e(d[1])}</li>`);continue}const h=O.match(/^\s*\d+\.\s+(.*)$/);if(h){r!=="ol"?(a(),n.push('<ol style="margin:0.2rem 0 0.2rem 1.2rem">'),r="ol"):o(),n.push(`<li>${e(h[1])}</li>`);continue}const f=O.match(/^\s*[-*]\s+(.*)$/);if(f){r!=="ul"?(a(),n.push('<ul style="margin:0.2rem 0 0.2rem 1.2rem">'),r="ul"):o(),n.push(`<li>${e(f[1])}</li>`);continue}a(),n.push(`<p style="margin:0.2rem 0">${e(O)}</p>`)}return a(),n.join("")}function sQ(i){let e=i.replace(/\\n/g,`
1351
+ `);return e=e.replace(/```tool_call\s*\n[\s\S]*?(?:```|$)/g,""),e=e.replace(/```tool_result[^\n]*\n[\s\S]*?```/g,""),e=e.replace(/\n{2,}/g,`
1352
+ `).trim(),e.replace(/\s+/g,"").length||(e=""),e=e.replace(/```(\w*)\n?([\s\S]*?)```/g,(t,n,r)=>{const{path:s,rest:o}=SZ(r),a=`aiblk_${++bZ}`;Fr.set(a,{code:o,path:s,lang:n||""});const l=/^(markdown|md)$/i.test(n||""),O=l?wZ(o):o.split(`
1353
+ `).map(f=>f.startsWith("+")?`<span class="ai-diff-add">${Q(f)}</span>`:f.startsWith("-")?`<span class="ai-diff-del">${Q(f)}</span>`:Q(f)).join(`
1354
+ `),c=s?Q(s):"active file",d=!s&&!D;return s?`<div class="ai-codeblock ai-codeblock-collapsed" data-block-id="${a}" data-auto-apply="1">
1355
+ <div class="ai-codeblock-bar">
1356
+ <span class="ai-codeblock-lang" title="${Q(c)}">
1357
+ <span class="ai-codeblock-status" data-status>⏳</span>
1358
+ <code>${Q(s)}</code>
1359
+ </span>
1360
+ <span class="ai-codeblock-actions">
1361
+ <button class="ai-codeblock-btn" onclick="window.__aiBlockToggle('${a}')" title="Show / hide code">view</button>
1362
+ </span>
1363
+ </div>
1364
+ <pre style="display:none"${l?' class="ai-codeblock-md"':""}>${l?O:`<code>${O}</code>`}</pre>
1365
+ </div>`:`<div class="ai-codeblock" data-block-id="${a}">
1366
+ <div class="ai-codeblock-bar">
1367
+ <span class="ai-codeblock-lang" title="${Q(c)}">${Q(n||"code")}${s?` · ${Q(s)}`:""}</span>
1368
+ <span class="ai-codeblock-actions">
1369
+ <button class="ai-codeblock-btn" onclick="window.__aiBlockCopy('${a}')" title="Copy to clipboard">Copy</button>
1370
+ <button class="ai-codeblock-btn" onclick="window.__aiBlockInsert('${a}')" title="Insert at cursor in the open editor" ${D?"":"disabled"}>Insert</button>
1371
+ <button class="ai-codeblock-btn ai-codeblock-apply" onclick="window.__aiBlockApply('${a}')" title="Overwrite ${c}" ${d?"disabled":""}>Apply</button>
1372
+ <button class="ai-codeblock-btn" onclick="window.__aiBlockSaveAs('${a}')" title="Save to a new path">Save as…</button>
1373
+ </span>
1374
+ </div>
1375
+ <pre${l?' class="ai-codeblock-md"':""}>${l?O:`<code>${O}</code>`}</pre>
1376
+ </div>`}),e=e.replace(/`([^`]+)`/g,'<code style="background:rgba(0,0,0,0.3);padding:0.1rem 0.3rem;border-radius:0.2rem">$1</code>'),e=e.replace(/\*\*(.+?)\*\*/g,"<strong>$1</strong>"),e=e.replace(/\n/g,"<br>"),e=e.replace(/(<div class="ai-codeblock"[\s\S]*?<\/div>)(<br>)+/g,"$1"),e=e.replace(/(<br>)+(<div class="ai-codeblock")/g,"$2"),e}async function PZ(i){const e=Fr.get(i);if(e)try{await navigator.clipboard.writeText(e.code),fi(i,"Copied")}catch{fi(i,"Copy failed",!0)}}function xZ(i){const e=Fr.get(i);if(!e)return;const t=J.find(n=>n.path===D);if(!(t!=null&&t.view)){fi(i,"Open a file first",!0);return}t.view.dispatch(t.view.state.replaceSelection(e.code)),t.dirty=!0,ci(),fi(i,"Inserted")}function TZ(i,e,t){if(t)return;const n=/\b(added|updated|changed|modified|created|removed|deleted|fixed|inserted|wrote|patched|generated|saved|implemented|built|replaced)\b/i,r=/\b(implementing|adding|updating|changing|creating|removing|fixing|writing|patching|saving|building|will\s+(add|create|update|implement|write|patch|build)|going\s+to\s+(add|create|update|implement|write|patch|build))\b/i,s=/\b([\w./\-]+\.\w{1,6}|step\s+\d+|the\s+plan|the\s+(migration|route|model|template|middleware|table|endpoint|form))\b/i;if(!((n.test(e)||r.test(e))&&s.test(e)))return;const a=document.createElement("div");a.style.cssText="font-size:0.7rem;margin-top:0.35rem;padding:4px 8px;border-left:2px solid var(--warning,#f9e2af);background:rgba(249,226,175,0.08);color:var(--warning,#f9e2af);border-radius:2px",a.textContent="⚠ The assistant described work it was about to do but didn't call a tool in this turn — nothing changed on disk. Nudge it to actually use file_patch / file_write / migration_create.",i.appendChild(a)}async function vZ(i,e){if(i!=="file_write")return null;const t=(e==null?void 0:e.path)||"",n=(e==null?void 0:e.content)??"";if(!t)return null;let r=0;try{const o=await A(`/file?path=${encodeURIComponent(t)}`);r=((o==null?void 0:o.content)||"").length}catch{return null}if(r===0)return null;const s=n.length;if(s<r*.4){const o=Math.round(100-s/r*100);return{ok:!1,error:`REFUSED: file_write on ${t} would shrink it by ${o}% (${r} → ${s} bytes). This looks like a fragment, not a full file. Either:
1377
+ 1. Use file_patch with a minimal old_string/new_string for targeted edits, OR
1378
+ 2. Call file_read first, then file_write with the COMPLETE updated file contents.`}}return null}function kZ(i,e,t){const n=(e==null?void 0:e.path)??(e==null?void 0:e.filename);let r;if(t&&typeof t=="object"){const a=t;r=a.written??a.patched??a.uploaded??a.created}const s=(r||n||"").toString();return new Set(["file_write","file_patch","asset_upload","migration_create","migration_run","database_execute","seed_table"]).has(i)?s:""}async function XZ(i){try{await qe(".")}catch{}if(!i)return;const e=J.find(t=>t.path===i);if(e)try{const t=await A(`/file?path=${encodeURIComponent(i)}`),n=(t==null?void 0:t.content)??"";e.view&&e.view.dispatch({changes:{from:0,to:e.view.state.doc.length,insert:n}}),e.content=n,e.dirty=!1,ci(),di(`Reloaded ${i} after tool call`)}catch{}}function _Z(i){const e=i.querySelectorAll('.ai-codeblock[data-auto-apply="1"]');e.length&&(async()=>{for(const t of Array.from(e)){const n=t.getAttribute("data-block-id");if(n){t.removeAttribute("data-auto-apply");try{await oQ(n)}catch{}}}})()}function RZ(i){const e=document.querySelector(`.ai-codeblock[data-block-id="${i}"]`);if(!e)return;const t=e.querySelector("pre");t&&(t.style.display=t.style.display==="none"?"":"none")}function Uc(i,e,t){const n=document.querySelector(`.ai-codeblock[data-block-id="${i}"] [data-status]`);n&&(n.textContent=e,t&&(n.style.color=t))}async function oQ(i){const e=Fr.get(i);if(!e)return;const t=e.path||D;if(!t){Uc(i,"✗","var(--danger,#f38ba8)"),fi(i,"No target file",!0);return}try{await A("/file/save","POST",{path:t,content:e.code}),Uc(i,"✓","var(--success,#a6e3a1)"),fi(i,"Applied");const n=J.find(r=>r.path===t);n!=null&&n.view?(n.view.dispatch({changes:{from:0,to:n.view.state.doc.length,insert:e.code}}),n.content=e.code,n.dirty=!1,ci(),di(`Applied AI suggestion to ${t}`)):await Zi(t),await qe(".")}catch(n){Uc(i,"✗","var(--danger,#f38ba8)"),fi(i,`Apply failed: ${(n==null?void 0:n.message)||n}`,!0)}}async function ZZ(i){const e=Fr.get(i);if(!e)return;const t=e.path||"src/new-file",n=prompt("Save to path (relative to project root):",t);if(n)try{await A("/file/save","POST",{path:n,content:e.code}),fi(i,`Saved → ${n}`),await qe("."),await Zi(n)}catch(r){fi(i,`Save failed: ${(r==null?void 0:r.message)||r}`,!0)}}function fi(i,e,t=!1){const n=document.querySelector(`.ai-codeblock[data-block-id="${i}"] .ai-codeblock-lang`);if(!n)return;const r=n.textContent;n.textContent=e,n.style.color=t?"var(--danger, #f38ba8)":"var(--success, #a6e3a1)",setTimeout(()=>{n.textContent=r,n.style.color=""},1500)}let Fo=null;function zZ(i,e,t){ln();const n=document.createElement("div");n.className="editor-ctx-menu",n.style.cssText=`position:fixed;left:${i.clientX}px;top:${i.clientY}px;z-index:200`,t?n.innerHTML=`
1379
+ <div class="ctx-item" onclick="window.__editorNewFile('${Q(e)}')">📄 New File <span class="ctx-shortcut">Ctrl+N</span></div>
1380
+ <div class="ctx-item" onclick="window.__editorNewFolder('${Q(e)}')">📁 New Folder <span class="ctx-shortcut">Ctrl+Shift+N</span></div>
1381
+ <div class="ctx-sep"></div>
1382
+ <div class="ctx-item" onclick="window.__editorRename('${Q(e)}',true)">✏️ Rename</div>
1383
+ <div class="ctx-item ctx-danger" onclick="window.__editorDelete('${Q(e)}',true)">🗑️ Delete <span class="ctx-shortcut">Del</span></div>
1384
+ `:n.innerHTML=`
1385
+ <div class="ctx-item" onclick="window.__editorOpenFile('${Q(e)}')">📄 Open</div>
1386
+ <div class="ctx-sep"></div>
1387
+ <div class="ctx-item" onclick="window.__editorRename('${Q(e)}',false)">✏️ Rename <span class="ctx-shortcut">F2</span></div>
1388
+ <div class="ctx-item" onclick="window.__editorDuplicate('${Q(e)}')">📋 Duplicate</div>
1389
+ <div class="ctx-sep"></div>
1390
+ <div class="ctx-item ctx-danger" onclick="window.__editorDelete('${Q(e)}',false)">🗑️ Delete <span class="ctx-shortcut">Del</span></div>
1391
+ `,document.body.appendChild(n),Fo=n,setTimeout(()=>{document.addEventListener("click",ln,{once:!0})},0)}function ln(){Fo&&(Fo.remove(),Fo=null)}async function aQ(i){ln();const e=prompt("New file name:");if(!e)return;const t=i==="."?e:`${i}/${e}`;try{await A("/file/save","POST",{path:t,content:""}),await qe(i),Zi(t)}catch(n){alert("Failed: "+n.message)}}async function lQ(i){ln();const e=prompt("New folder name:");if(!e)return;const t=i==="."?e:`${i}/${e}`;try{await A("/file/save","POST",{path:`${t}/.gitkeep`,content:""}),Oi.add(t),await qe(i)}catch(n){alert("Failed: "+n.message)}}async function OQ(i,e){ln();const t=i.split("/"),n=t.pop()||"",r=t.join("/")||".",s=prompt("Rename to:",n);if(!s||s===n)return;const o=r==="."?s:`${r}/${s}`;try{await A("/file/rename","POST",{from:i,to:o});const a=J.findIndex(l=>l.path===i);a>=0&&(J[a].path=o,D===i&&(D=o),ci()),await qe(r)}catch(a){alert("Rename failed: "+a.message)}}async function cQ(i,e){if(ln(),!!confirm(`Delete ${e?"folder":"file"} "${i}"?`))try{await A("/file/delete","POST",{path:i,is_dir:e}),J.findIndex(s=>s.path===i)>=0&&an(i);const r=i.split("/").slice(0,-1).join("/")||".";await qe(r)}catch(n){alert("Delete failed: "+n.message)}}async function qZ(i){ln();const e=i.split("/"),t=e.pop()||"",n=t.includes(".")?"."+t.split(".").pop():"",s=`${n?t.slice(0,-n.length):t}-copy${n}`,o=e.join("/")||".",a=o==="."?s:`${o}/${s}`;try{const l=await A(`/file?path=${encodeURIComponent(i)}`);await A("/file/save","POST",{path:a,content:l.content}),await qe(o),Zi(a)}catch(l){alert("Duplicate failed: "+l.message)}}function VZ(){const i=document.getElementById("editor-menu-dropdown");if(!i)return;const e=i.style.display==="none";i.style.display=e?"block":"none",e&&setTimeout(()=>{const t=n=>{var r;(r=n.target)!=null&&r.closest(".editor-menu-wrapper")||(i.style.display="none"),document.removeEventListener("click",t)};document.addEventListener("click",t)},0)}async function dQ(){var s;const i=document.getElementById("deps-search-input"),e=(s=i==null?void 0:i.value)==null?void 0:s.trim();if(!e)return;const t=document.getElementById("deps-search-results");t&&(t.innerHTML='<div class="text-sm text-muted" style="padding:8px;text-align:center">Searching...</div>');const n=(D==null?void 0:D.split("/").pop())||"",r=vc[n];if(r)try{const o=new AbortController,a=setTimeout(()=>o.abort(),1e4),l=await fetch(`/__dev/api/deps/search?q=${encodeURIComponent(e)}&registry=${r.registry}`,{signal:o.signal});clearTimeout(a);const c=(await l.json()).packages||[];if(!t)return;if(c.length===0){t.innerHTML='<div class="text-sm text-muted" style="padding:8px;text-align:center">No packages found</div>';return}t.innerHTML=c.map(d=>`<div class="deps-item">
1392
+ <div class="deps-item-name">${Q(d.name)}</div>
1393
+ <div class="deps-item-desc">${Q(d.description||"")}</div>
1394
+ <div class="deps-item-meta">
1395
+ <span>${Q(d.version||"")}</span>
1396
+ <button class="btn btn-sm" style="font-size:0.6rem;padding:2px 8px;color:var(--success);border-color:var(--success)" onclick="window.__depsInstall('${Q(d.name)}','${Q(d.version||"")}')">+ Install</button>
1397
+ </div>
1398
+ </div>`).join("")}catch(o){t&&(t.innerHTML=`<div class="text-sm" style="padding:8px;color:var(--danger)">${Q(o.message||"Search failed")}</div>`)}}async function CZ(i,e){const t=(D==null?void 0:D.split("/").pop())||"",n=vc[t];if(!n)return;const r=document.getElementById("deps-search-results");r&&(r.innerHTML=`<div class="text-sm text-muted" style="padding:8px;text-align:center">Installing ${Q(i)}...</div>`);try{const s=await A("/deps/install","POST",{name:i,version:e,registry:n.registry,file:D});if(r&&(r.innerHTML=`<div class="text-sm" style="padding:8px;color:var(--success)">✔ ${Q(s.message||`Installed ${i}`)}</div>`),D){const o=await A(`/file?path=${encodeURIComponent(D)}`),a=J.find(l=>l.path===D);a&&o.content&&(a.content=o.content,a.dirty=!1,kc(),Wg(n))}}catch(s){r&&(r.innerHTML=`<div class="text-sm" style="padding:8px;color:var(--danger)">✗ ${Q(s.message||"Install failed")}</div>`)}}window.__depsSearch=dQ,window.__depsInstall=CZ;async function YZ(i){const e=prompt(`Name for the new ${i}:`);if(!e)return;const t=document.getElementById("scaffold-output");t&&(t.style.display="block",t.textContent=`Generating ${i} "${e}"...`);try{const n=await A("/scaffold","POST",{type:i,name:e});t&&(t.innerHTML=`<span style="color:var(--success)">✔</span> ${Q(n.message||`Created ${i}: ${e}`)}`,n.path&&(t.innerHTML+=`
1399
+ <span style="color:var(--info);cursor:pointer;text-decoration:underline" onclick="window.__editorOpenFile('${Q(n.path)}')">${Q(n.path)}</span>`)),qe("."),n.path&&setTimeout(()=>Zi(n.path),500)}catch(n){t&&(t.innerHTML=`<span style="color:var(--danger)">✗</span> ${Q(n.message||"Failed")}`)}}async function WZ(i){const e=document.getElementById("scaffold-output");e&&(e.style.display="block",e.textContent=`Running ${i}...`);try{const t=await A("/scaffold/run","POST",{command:i});if(e){const n=t.success!==!1;e.innerHTML=`<span style="color:var(--${n?"success":"danger"})">${n?"✔":"✗"}</span> ${Q(t.output||t.message||i+" complete")}`}(i==="migrate"||i==="seed")&&qe(".")}catch(t){e&&(e.innerHTML=`<span style="color:var(--danger)">✗</span> ${Q(t.message||"Failed")}`)}}window.__scaffold=YZ,window.__scaffoldRun=WZ;const jc="tina4.editor.sidebar-width",Mc="tina4.editor.right-panel-width";function AZ(){const i=localStorage.getItem(jc),e=localStorage.getItem(Mc),t=document.getElementById("editor-sidebar"),n=document.getElementById("editor-right-panel");t&&i&&(t.style.width=i+"px"),n&&e&&(n.style.width=e+"px")}function EZ(){const i=document.querySelector(".editor-layout"),e=document.getElementById("editor-sidebar"),t=document.getElementById("editor-right-panel"),n=document.getElementById("editor-splitter-left"),r=document.getElementById("editor-splitter-right");!i||!e||!t||!n||!r||(AZ(),hQ(n,s=>{const o=parseFloat(getComputedStyle(e).width);return a=>{const l=Math.max(160,Math.min(600,o+a));return e.style.width=l+"px",l}},s=>localStorage.setItem(jc,String(Math.round(s)))),hQ(r,()=>{const s=parseFloat(getComputedStyle(t).width);return o=>{const a=Math.max(200,Math.min(800,s-o));return t.style.width=a+"px",a}},s=>localStorage.setItem(Mc,String(Math.round(s)))))}function hQ(i,e,t){i.addEventListener("mousedown",n=>{n.preventDefault(),i.classList.add("dragging"),document.body.style.userSelect="none",document.body.style.cursor="col-resize";const r=n.clientX,s=e(r);let o=0;const a=O=>{o=s(O.clientX-r)},l=()=>{document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",l),i.classList.remove("dragging"),document.body.style.userSelect="",document.body.style.cursor="",o&&t(o)};document.addEventListener("mousemove",a),document.addEventListener("mouseup",l)}),i.addEventListener("dblclick",()=>{const n=document.getElementById("editor-sidebar"),r=document.getElementById("editor-right-panel");i.id==="editor-splitter-left"&&n&&(n.style.width="",localStorage.removeItem(jc)),i.id==="editor-splitter-right"&&r&&(r.style.width="",localStorage.removeItem(Mc))})}function UZ(i,e){document.querySelectorAll(".tab-ctx-menu").forEach(h=>h.remove());const t=J.findIndex(h=>h.path===e),n=t>0,r=t>=0&&t<J.length-1,s=J.length>1,o=(h,f,p)=>`<div class="tab-ctx-item ${p?"":"disabled"}"${p?` data-action="${f}"`:""}>
1400
+ <span>${h}</span>
1401
+ </div>`,a=document.createElement("div");a.className="tab-ctx-menu",a.innerHTML=o("Close","close",!0)+o("Close Others","close-others",s)+'<div class="tab-ctx-sep"></div>'+o("Close to the Left","close-left",n)+o("Close to the Right","close-right",r)+'<div class="tab-ctx-sep"></div>'+o("Close All","close-all",J.length>0),a.addEventListener("click",h=>{const f=h.target.closest("[data-action]");if(!f)return;switch(f.dataset.action){case"close":an(e);break;case"close-others":fQ(e);break;case"close-left":uQ(e);break;case"close-right":pQ(e);break;case"close-all":mQ();break}a.remove()}),document.body.appendChild(a);const l=Math.min(i.clientX,window.innerWidth-190),O=Math.min(i.clientY,window.innerHeight-a.offsetHeight-10);a.style.left=l+"px",a.style.top=O+"px";const c=h=>{h&&a.contains(h.target)||(a.remove(),document.removeEventListener("mousedown",c,!0),document.removeEventListener("keydown",d,!0),document.removeEventListener("scroll",c,!0))},d=h=>{h.key==="Escape"&&c()};setTimeout(()=>{document.addEventListener("mousedown",c,!0),document.addEventListener("keydown",d,!0),document.addEventListener("scroll",c,!0)},0)}function jZ(){document.querySelectorAll(".tab-ctx-menu").forEach(i=>i.remove())}function fQ(i){J.filter(t=>t.path!==i).map(t=>t.path).forEach(t=>an(t))}function uQ(i){const e=J.findIndex(n=>n.path===i);if(e<1)return;J.slice(0,e).map(n=>n.path).forEach(n=>an(n))}function pQ(i){const e=J.findIndex(n=>n.path===i);if(e<0||e>=J.length-1)return;J.slice(e+1).map(n=>n.path).forEach(n=>an(n))}function mQ(){J.map(e=>e.path).forEach(e=>an(e))}window.__editorToggleMenu=VZ,window.__editorCtxMenu=zZ,window.__editorNewFile=aQ,window.__editorNewFolder=lQ,window.__editorRename=OQ,window.__editorDelete=cQ,window.__editorDuplicate=qZ,window.__editorToggleDir=MR,window.__editorOpenFile=Zi,window.__editorSwitchFile=Ir,window.__editorCloseFile=an,window.__editorCloseAll=mQ,window.__editorCloseLeft=uQ,window.__editorCloseRight=pQ,window.__editorCloseOthers=fQ,window.__editorTabCtxMenu=UZ,window.__editorTabCtxClose=jZ,window.__editorPopOut=IR,window.__editorSave=_c,window.__editorToggleAI=NR,window.__editorAISend=zi,window.__editorAIExplain=lZ,window.__editorAIRefactor=OZ,window.__editorAIImage=rQ,window.__editorTabSwitch=Jg,window.__editorSetMode=cZ,window.__editorSessionRevise=$Z,window.__editorSessionApply=gZ,window.__editorSessionCancel=QZ,window.__editorSessionStart=Ec,window.__editorSessionStartFromActivity=yZ,window.__editorOpenPlanSwitcher=Dg,window.__editorPlanSwitcher=Dg,window.__editorToggleCompletion=hZ,window.__editorPlanSwitch=rZ,window.__editorPlanOpen=sZ,window.__editorPlanCreate=oZ,window.__editorPlanRun=JR,window.__editorPlanStop=eZ,window.__editorThoughtAct=iZ,window.__editorThoughtDismiss=Ig,window.__editorThoughtsClearAll=nZ,window.__aiBlockCopy=PZ,window.__aiBlockInsert=xZ,window.__aiBlockApply=oQ,window.__aiBlockSaveAs=ZZ,window.__aiBlockToggle=RZ,document.addEventListener("keydown",i=>{(i.ctrlKey||i.metaKey)&&i.key==="s"&&D&&(i.preventDefault(),_c())}),document.addEventListener("keydown",i=>{const e=i.target;(e==null?void 0:e.id)==="editor-ai-input"&&i.key==="Enter"&&!i.shiftKey&&(i.preventDefault(),zi()),(e==null?void 0:e.id)==="deps-search-input"&&i.key==="Enter"&&(i.preventDefault(),dQ())}),document.addEventListener("keydown",i=>{var t,n,r;if(!(!D&&!document.querySelector(".editor-layout")||((t=i.target)==null?void 0:t.tagName)==="INPUT"||((n=i.target)==null?void 0:n.tagName)==="TEXTAREA")){if((i.ctrlKey||i.metaKey)&&i.key==="n"&&!i.shiftKey){i.preventDefault();const s=D&&D.split("/").slice(0,-1).join("/")||".";aQ(s)}if((i.ctrlKey||i.metaKey)&&i.key==="N"&&i.shiftKey){i.preventDefault();const s=D&&D.split("/").slice(0,-1).join("/")||".";lQ(s)}i.key==="F2"&&D&&(i.preventDefault(),OQ(D)),i.key==="Delete"&&D&&!((r=i.target)!=null&&r.closest(".cm-editor"))&&(i.preventDefault(),cQ(D,!1))}});const $Q=document.createElement("style");$Q.textContent=wQ,document.head.appendChild($Q);const Ho=bQ();SQ(Ho);let gQ=[{id:"editor",label:"Code With Me",render:AR},...[{id:"routes",label:"Routes",render:PQ},{id:"database",label:"Database",render:xQ},{id:"graphql",label:"GraphQL",render:GQ},{id:"queue",label:"Queue",render:NQ},{id:"errors",label:"Errors",render:VQ},{id:"metrics",label:"Metrics",render:jQ},{id:"system",label:"System",render:AQ}]],Lc="editor";function MZ(){const i=document.getElementById("app");if(!i)return;i.innerHTML=`
554
1402
  <div class="dev-admin">
555
1403
  <div class="dev-header">
556
1404
  <h1><span>Tina4</span> Dev Admin</h1>
557
1405
  <div style="display:flex;align-items:center;gap:0.75rem">
558
- <span class="text-sm text-muted" id="version-label" style="cursor:default;user-select:none">${ve.name} &bull; loading&hellip;</span>
1406
+ <span class="text-sm text-muted" id="version-label" style="cursor:default;user-select:none">${Ho.name} &bull; loading&hellip;</span>
559
1407
  <button class="btn btn-sm" onclick="window.__closeDevAdmin()" title="Close Dev Admin" style="font-size:14px;width:28px;height:28px;padding:0;line-height:1">&times;</button>
560
1408
  </div>
561
1409
  </div>
562
1410
  <div class="dev-tabs" id="tab-bar"></div>
563
1411
  <div class="dev-content" id="tab-content"></div>
564
1412
  </div>
565
- `;const t=document.getElementById("tab-bar");t.innerHTML=we.map(n=>`<button class="dev-tab ${n.id===oe?"active":""}" data-tab="${n.id}" onclick="window.__switchTab('${n.id}')">${n.label}</button>`).join(""),Fe(oe)}function Fe(e){oe=e,document.querySelectorAll(".dev-tab").forEach(o=>{o.classList.toggle("active",o.dataset.tab===e)});const t=document.getElementById("tab-content");if(!t)return;const n=document.createElement("div");n.className="dev-panel active",t.innerHTML="",t.appendChild(n);const i=we.find(o=>o.id===e);i&&i.render(n)}function $n(){if(window.parent!==window)try{const e=window.parent.document.getElementById("tina4-dev-panel");e&&e.remove()}catch{document.body.style.display="none"}}window.__closeDevAdmin=$n,window.__switchTab=Fe,kn(),T("/system").then(e=>{const t=document.getElementById("version-label"),n=e.version||(typeof e.framework=="object"?e.framework.version:null)||(typeof e.framework=="string"?e.framework:null);t&&n&&(t.innerHTML=`${ve.name} &bull; v${r(n)}`)}).catch(()=>{const e=document.getElementById("version-label");e&&(e.innerHTML=`${ve.name}`)});let De=0,Ge=null;(at=document.getElementById("version-label"))==null||at.addEventListener("click",()=>{if(!xe&&(De++,Ge&&clearTimeout(Ge),Ge=setTimeout(()=>{De=0},2e3),De>=5)){xe=!0,localStorage.setItem("tina4_cwm_unlocked","true"),we=[rt,...Ne],oe="chat";const e=document.getElementById("tab-bar");e&&(e.innerHTML=we.map(t=>`<button class="dev-tab ${t.id===oe?"active":""}" data-tab="${t.id}" onclick="window.__switchTab('${t.id}')">${t.label}</button>`).join("")),Fe("chat")}})})();
1413
+ `;const e=document.getElementById("tab-bar");e.innerHTML=gQ.map(t=>`<button class="dev-tab ${t.id===Lc?"active":""}" data-tab="${t.id}" onclick="window.__switchTab('${t.id}')">${t.label}</button>`).join(""),QQ(Lc)}function QQ(i){Lc=i;const e=document.querySelector(".dev-header"),t=document.getElementById("tab-bar"),n=document.querySelector(".dev-admin"),r=i==="editor";e&&(e.style.display=r?"none":""),t&&(t.style.display=r?"none":""),n&&n.classList.toggle("fullscreen-editor",r),document.querySelectorAll(".dev-tab").forEach(l=>{l.classList.toggle("active",l.dataset.tab===i)});const s=document.getElementById("tab-content");if(!s)return;const o=document.createElement("div");o.className="dev-panel active",s.innerHTML="",s.appendChild(o);const a=gQ.find(l=>l.id===i);a&&a.render(o)}function LZ(){if(window.parent!==window)try{const i=window.parent.document.getElementById("tina4-dev-panel");i&&i.remove()}catch{document.body.style.display="none"}}window.__closeDevAdmin=LZ,window.__switchTab=QQ,MZ(),A("/system").then(i=>{const e=document.getElementById("version-label"),t=i.version||(typeof i.framework=="object"?i.framework.version:null)||(typeof i.framework=="string"?i.framework:null);e&&t&&(e.innerHTML=`${Ho.name} &bull; v${Q(t)}`)}).catch(()=>{const i=document.getElementById("version-label");i&&(i.innerHTML=`${Ho.name}`)})})();