@marimo-team/islands 0.25.2-dev33 → 0.25.2-dev35

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.
Files changed (138) hide show
  1. package/dist/{ErrorBoundary-2xvh1Fxx.js → ErrorBoundary-ChAoG2uk.js} +1 -1
  2. package/dist/{any-language-editor-dqxlUDlT.js → any-language-editor-DJ2MRREE.js} +2 -2
  3. package/dist/{apl-BYaaig9_.js → apl-GEW9-ZP1.js} +1 -1
  4. package/dist/{asciiarmor-GKQFJXQG.js → asciiarmor-BWNxzkG7.js} +1 -1
  5. package/dist/{asn1-BsSb7HP5.js → asn1-Bcn2QutK.js} +1 -1
  6. package/dist/{asterisk-B3I8SNb5.js → asterisk-lE36-hJK.js} +1 -1
  7. package/dist/{brainfuck-DXjk3bQe.js → brainfuck-BQCYDheZ.js} +1 -1
  8. package/dist/{cells-BUbzm9iX.js → cells-DxsypDZK.js} +265 -265
  9. package/dist/{chat-ui-DJpsSmlB.js → chat-ui-Co3Bmh7f.js} +32 -32
  10. package/dist/{clike-E2lFbGVj.js → clike-CxK9W55Z.js} +1 -1
  11. package/dist/{clojure-Dn_K4RlK.js → clojure-Dzcvwpxk.js} +1 -1
  12. package/dist/{cmake-DpN2Top5.js → cmake-DYr-71zp.js} +1 -1
  13. package/dist/{cobol-Chf22-GM.js → cobol-DC3g37Kq.js} +1 -1
  14. package/dist/{code-visibility-D3qJ9egx.js → code-visibility-C7R_-ZiT.js} +2 -2
  15. package/dist/{coffeescript-BVe1OiD9.js → coffeescript-C-eFwH5N.js} +1 -1
  16. package/dist/{common-Bu7LgWTG.js → common-CiW9HRfO.js} +5 -5
  17. package/dist/{commonlisp-DxoBG7fU.js → commonlisp-CyaNXrJR.js} +1 -1
  18. package/dist/{crystal-DCM3yc4r.js → crystal-ih5ax5tQ.js} +1 -1
  19. package/dist/{css-DkZ9mMyI.js → css-CN_wP7_R.js} +1 -1
  20. package/dist/{cypher-Drw_8U5I.js → cypher-CqGRcmZo.js} +1 -1
  21. package/dist/{d-CsVGcKMF.js → d-Cj0sOW2z.js} +1 -1
  22. package/dist/{data-grid-overlay-editor-DNJ47Cbc.js → data-grid-overlay-editor-BSk6h0Se.js} +1 -1
  23. package/dist/{diff-CBikYCUF.js → diff-B_hUkiat.js} +1 -1
  24. package/dist/{dist-Df0wKI0F.js → dist-BK4Oj99o.js} +1 -1
  25. package/dist/{dist-BVGtK7Ht.js → dist-BLfKmR-l.js} +1 -1
  26. package/dist/{dist-B8D7McG3.js → dist-BMQf5zIS.js} +46 -46
  27. package/dist/{dist-C2KzV-vf.js → dist-BorMD-uX.js} +2 -2
  28. package/dist/{dist-Cs2FijYk.js → dist-BuaRHxOc.js} +2 -2
  29. package/dist/{dist-DPcEtqmG.js → dist-Bvs24R_E.js} +47 -47
  30. package/dist/{dist-lA1Cttkb.js → dist-C8fAKSH1.js} +41 -41
  31. package/dist/{dist-DszxuxS1.js → dist-CLdpGQVr.js} +2 -2
  32. package/dist/{dist-CO1AwwG_.js → dist-CN8zI-XC.js} +209 -209
  33. package/dist/{dist-D1PpnuZB.js → dist-CN_BeG2I.js} +1 -1
  34. package/dist/{dist-CPGxfVGX.js → dist-CSJ0MDRw.js} +1 -1
  35. package/dist/{dist-Cm3iAFMD.js → dist-CSbh1PNP.js} +3 -3
  36. package/dist/{dist-9x1ZRe-e.js → dist-Cg7gzw-a.js} +2 -2
  37. package/dist/{dist-B1vYLK28.js → dist-CkTTIdBe.js} +345 -345
  38. package/dist/{dist-BRxfaJgs.js → dist-CrSP_H1M.js} +296 -296
  39. package/dist/{dist-C2wDlYdD.js → dist-D-wwqlzJ.js} +2 -2
  40. package/dist/{dist-BtKIs9N-.js → dist-D6d86eNJ.js} +1 -1
  41. package/dist/{dist-DHOTQar0.js → dist-DBtSl3sf.js} +1 -1
  42. package/dist/{dist-KzZ7WELx.js → dist-DiDibOYr.js} +120 -120
  43. package/dist/{dist-Kxgjxakw.js → dist-DoE4XJBC.js} +1277 -1222
  44. package/dist/{dist-BHCHt1NI.js → dist-F8Ep36rk.js} +1 -1
  45. package/dist/{dist-C8xMLVYi.js → dist-OR1OnN-y.js} +44 -44
  46. package/dist/{dist-1HDa70oE.js → dist-PXYI_yuP.js} +3 -3
  47. package/dist/{dist-CMh_W4y4.js → dist-diIx5qJW.js} +2 -2
  48. package/dist/{dockerfile-DJnSntVB.js → dockerfile-D0VKN500.js} +2 -2
  49. package/dist/{dtd-BHa4v0Bn.js → dtd-B8FGSWWe.js} +1 -1
  50. package/dist/{dylan-BypL2Zz8.js → dylan-DbIBYIrw.js} +1 -1
  51. package/dist/{ebnf-5guncNu-.js → ebnf-D-YbYLdk.js} +1 -1
  52. package/dist/{ecl-iRcVIKYZ.js → ecl-DBmkdWAd.js} +1 -1
  53. package/dist/{eiffel-BEqF9aU4.js → eiffel-CcWSDDzK.js} +1 -1
  54. package/dist/{elm-DYcfNE9c.js → elm-MC-b8a6C.js} +1 -1
  55. package/dist/{erlang-BtAuIoF0.js → erlang-AdO1-xtV.js} +1 -1
  56. package/dist/{error-entries-B9WBDeky.js → error-entries-xDl6bkdA.js} +1 -1
  57. package/dist/{esm-BElI3qKH.js → esm-D2gTsXEV.js} +579 -579
  58. package/dist/{esm-h8f7-1CJ.js → esm-DAVrGVKP.js} +378 -372
  59. package/dist/{factor-3nzOwLuN.js → factor-Ys-13HOP.js} +2 -2
  60. package/dist/{fcl-C90TGnJJ.js → fcl-DnwditDr.js} +1 -1
  61. package/dist/{feedback-button-CB0n7_Z_.js → feedback-button-FrFcb6OR.js} +4 -4
  62. package/dist/{forth-DEaRrLUi.js → forth-DiMuIXFe.js} +1 -1
  63. package/dist/{fortran-Bv6JRUjY.js → fortran-hkrF2eM4.js} +1 -1
  64. package/dist/{gas-JNerWj3-.js → gas-DlhqN9k8.js} +1 -1
  65. package/dist/{gherkin-CSrl-H70.js → gherkin-0SlhEZ3t.js} +1 -1
  66. package/dist/{glide-data-editor-CpB2Gr6x.js → glide-data-editor-CuoQJ61m.js} +3 -3
  67. package/dist/{globals-BlE_HgkQ.js → globals-k8-_3_Ks.js} +1 -1
  68. package/dist/{groovy-X7euO_vE.js → groovy-YhcTMyvX.js} +1 -1
  69. package/dist/{haskell-C48Z70Az.js → haskell-CodLxrtT.js} +1 -1
  70. package/dist/{haxe-CAUWMmwR.js → haxe-CiRWNFkH.js} +1 -1
  71. package/dist/{html-to-image-Btymxku9.js → html-to-image-Da6rA8p1.js} +3 -3
  72. package/dist/{http-BrSBnhDH.js → http-Bh6HhdNR.js} +1 -1
  73. package/dist/{idl-BXuPleZv.js → idl-DZgBq75I.js} +1 -1
  74. package/dist/{javascript-B4EPWJf_.js → javascript-BfNytHiM.js} +1 -1
  75. package/dist/{julia-ke9Kh8b7.js → julia--tLIAG7q.js} +1 -1
  76. package/dist/{livescript-Ce4uqGAC.js → livescript-CVPfYnY_.js} +1 -1
  77. package/dist/{lua-D6fti_Jk.js → lua-4Fa-T-qq.js} +1 -1
  78. package/dist/main.js +17 -17
  79. package/dist/{mathematica-DcEpZ3Vj.js → mathematica-CtYAy6GG.js} +1 -1
  80. package/dist/{mbox-DFBbOu0X.js → mbox-D0w9Ah1C.js} +1 -1
  81. package/dist/{mirc-CqeibO3N.js → mirc-De9aSAZM.js} +1 -1
  82. package/dist/{mllike-D54QZYTP.js → mllike-BbugeaY_.js} +1 -1
  83. package/dist/{modelica-DuML2-8V.js → modelica-BjJwWw1F.js} +1 -1
  84. package/dist/{mscgen-CJmKwp3b.js → mscgen-DwiRH5ma.js} +1 -1
  85. package/dist/{mumps-DaVgFtkd.js → mumps--plbDM9o.js} +1 -1
  86. package/dist/{nginx-BXN1rqI0.js → nginx-C4Df7REc.js} +1 -1
  87. package/dist/{nsis-CMfRqf0V.js → nsis-fiiOqLc3.js} +7 -7
  88. package/dist/{ntriples-BiOGlMDR.js → ntriples-jV77I4k8.js} +1 -1
  89. package/dist/{number-overlay-editor-BU7cNcgZ.js → number-overlay-editor-E35zNlPn.js} +1 -1
  90. package/dist/{octave-CgVnzxKk.js → octave-Cztd01tF.js} +1 -1
  91. package/dist/{oz-B2mky97X.js → oz-Bl8o3BDl.js} +1 -1
  92. package/dist/{pascal-BoZhBf6s.js → pascal-BO5JqysR.js} +1 -1
  93. package/dist/{perl-DjzMqXtt.js → perl-Drlh9s6m.js} +1 -1
  94. package/dist/{pig-B2mB-01d.js → pig-BWGR8wZw.js} +1 -1
  95. package/dist/{powershell-D0zT88Aj.js → powershell-DT99xlz_.js} +1 -1
  96. package/dist/{process-output-CTQmCUD0.js → process-output-_4TxDper.js} +2 -2
  97. package/dist/{properties-3_5qCgOj.js → properties-Q-rkxld0.js} +1 -1
  98. package/dist/{protobuf-Dgoxfi1H.js → protobuf-DKyWZbs7.js} +1 -1
  99. package/dist/{pug-CNRdd8oG.js → pug-42ZJUbEC.js} +2 -2
  100. package/dist/{puppet-DzILxZfz.js → puppet-B4UozHhh.js} +1 -1
  101. package/dist/{python-AfVdMn_l.js → python-DREjAV__.js} +1 -1
  102. package/dist/{q-C6p-CGWh.js → q-Bi63IpBO.js} +1 -1
  103. package/dist/{r-CzKF1D2X.js → r-DSwXWKMR.js} +1 -1
  104. package/dist/{reveal-component-BA2iHr4c.js → reveal-component-CgKwVd08.js} +3 -3
  105. package/dist/{rpm-Bx7FkjTO.js → rpm-DPb1DeKM.js} +1 -1
  106. package/dist/{ruby-BMzgq2bf.js → ruby-U7fZA4DP.js} +2 -2
  107. package/dist/{sas-ClGVnK3F.js → sas-CLk1JpTn.js} +1 -1
  108. package/dist/{scheme-C0MXqXep.js → scheme-CT-2k2Tl.js} +1 -1
  109. package/dist/{shell-CiQZv6oG.js → shell-BLO7fcsk.js} +1 -1
  110. package/dist/{sieve-BiIMePvV.js → sieve-nG3C7WNH.js} +1 -1
  111. package/dist/{simple-mode-8ETW2RS6.js → simple-mode-C683Q7or.js} +1 -1
  112. package/dist/{smalltalk-9-llftyG.js → smalltalk-BROcZybA.js} +1 -1
  113. package/dist/{solr-CxCKEuwq.js → solr-mVltHNc5.js} +1 -1
  114. package/dist/{sparql-BRmy7pzx.js → sparql-Cv1Ksr4v.js} +1 -1
  115. package/dist/{spreadsheet-UCNUIGsn.js → spreadsheet-BwTnp5K_.js} +1 -1
  116. package/dist/{sql-D0hSGZ-H.js → sql-CjLt0122.js} +1 -1
  117. package/dist/{stex-UeT_Aofp.js → stex-Btf3omL8.js} +1 -1
  118. package/dist/{stylus-Fi4waA2H.js → stylus-Dt4VvLXL.js} +1 -1
  119. package/dist/{swift-NqPyaBye.js → swift-DHsn_CVI.js} +1 -1
  120. package/dist/{tcl-B4f0xfmM.js → tcl-CV0OLBOl.js} +1 -1
  121. package/dist/{textile-CnNbnPTe.js → textile-D320oKVM.js} +1 -1
  122. package/dist/{tiddlywiki-CSGSOg38.js → tiddlywiki-BVVNvfy4.js} +1 -1
  123. package/dist/{tiki-9F02WBA6.js → tiki-BF2aDPlB.js} +1 -1
  124. package/dist/{toml-AesZ6RBt.js → toml-CaUN7UHo.js} +1 -1
  125. package/dist/{troff-DlfvveK1.js → troff-DQUFcClZ.js} +1 -1
  126. package/dist/{ttcn--YVSkGs_.js → ttcn-CQL1duJS.js} +1 -1
  127. package/dist/{ttcn-cfg-Bb1Knl_J.js → ttcn-cfg-BMmEFJPu.js} +1 -1
  128. package/dist/{turtle-DC24v1bz.js → turtle-C3esgsRr.js} +1 -1
  129. package/dist/{vb-Dpc8vhvF.js → vb-RK1eDXRl.js} +1 -1
  130. package/dist/{vbscript-B-Y1XnZe.js → vbscript-BCOeM0de.js} +1 -1
  131. package/dist/{velocity-DHMu9kc-.js → velocity-CZKOFbOI.js} +1 -1
  132. package/dist/{verilog-DhiEaoUl.js → verilog-DqQTzVn8.js} +1 -1
  133. package/dist/{vhdl-D4X23YKO.js → vhdl-vQr2bfmi.js} +1 -1
  134. package/dist/{webidl-SyzNxWpJ.js → webidl-DzX7N40e.js} +1 -1
  135. package/dist/{xquery-BC2R4Hk6.js → xquery-Cw_Q_hGR.js} +1 -1
  136. package/dist/{yacas-DLNXPMmH.js → yacas-DiC4jJBE.js} +1 -1
  137. package/dist/{z80-CDXWHOO6.js → z80-CUOQDEJO.js} +1 -1
  138. package/package.json +6 -6
@@ -1,5 +1,5 @@
1
- import { $ as e, A as t, Bt as n, Ct as r, D as i, E as a, Et as o, Ft as s, Gt as c, I as l, Lt as u, N as d, Pt as f, Q as p, Rt as m, Tt as ee, Ut as te, W as h, Wt as g, Z as _, gt as ne, j as re, jt as v, kt as y, nt as ie, o as ae, pt as oe, rt as se, st as ce, tt as le, wt as ue, xt as de, zt as fe } from "./dist-Kxgjxakw.js";
2
- //#region ../node_modules/.pnpm/@codemirror+commands@6.11.0/node_modules/@codemirror/commands/dist/index.js
1
+ import { $ as e, A as t, At as n, Bt as r, D as i, Dt as a, E as o, Et as s, Ft as c, Gt as l, I as u, It as d, Kt as f, Mt as p, N as m, Q as ee, Rt as h, St as te, Tt as ne, Vt as g, W as _, Wt as re, Z as v, _t as ie, ct as ae, j as oe, mt as se, nt as ce, o as le, rt as ue, tt as de, wt as y, zt as fe } from "./dist-DoE4XJBC.js";
2
+ //#region ../node_modules/.pnpm/@codemirror+commands@6.11.1/node_modules/@codemirror/commands/dist/index.js
3
3
  var pe = (e) => {
4
4
  let { state: t } = e, n = t.doc.lineAt(t.selection.main.from), r = x(e.state, n.from);
5
5
  return r.line ? me(e) : r.block ? ge(e) : !1;
@@ -132,8 +132,8 @@ function be(e, t, n = t.selection.ranges) {
132
132
  }
133
133
  return null;
134
134
  }
135
- var C = /*@__PURE__*/ ue.define(), xe = /*@__PURE__*/ ue.define(), Se = /*@__PURE__*/ v.define(), Ce = /*@__PURE__*/ v.define({ combine(e) {
136
- return te(e, {
135
+ var C = /*@__PURE__*/ ne.define(), xe = /*@__PURE__*/ ne.define(), Se = /*@__PURE__*/ p.define(), Ce = /*@__PURE__*/ p.define({ combine(e) {
136
+ return re(e, {
137
137
  minDepth: 100,
138
138
  newGroupDelay: 500,
139
139
  joinToEvent: (e, t) => t
@@ -142,20 +142,20 @@ var C = /*@__PURE__*/ ue.define(), xe = /*@__PURE__*/ ue.define(), Se = /*@__PUR
142
142
  newGroupDelay: Math.min,
143
143
  joinToEvent: (e, t) => (n, r) => e(n, r) || t(n, r)
144
144
  });
145
- } }), w = /*@__PURE__*/ m.define({
145
+ } }), w = /*@__PURE__*/ fe.define({
146
146
  create() {
147
147
  return j.empty;
148
148
  },
149
149
  update(e, t) {
150
- let r = t.state.facet(Ce), i = t.annotation(C);
151
- if (i) {
152
- let n = D.fromTransaction(t, i.selection), a = i.side, o = a == 0 ? e.undone : e.done;
153
- return o = n ? O(o, o.length, r.minDepth, n) : Ne(o, t.startState.selection), new j(a == 0 ? i.rest : o, a == 0 ? o : i.rest);
150
+ let n = t.state.facet(Ce), r = t.annotation(C);
151
+ if (r) {
152
+ let i = D.fromTransaction(t, r.selection), a = r.side, o = a == 0 ? e.undone : e.done;
153
+ return o = i ? O(o, o.length, n.minDepth, i) : Ne(o, t.startState.selection), new j(a == 0 ? r.rest : o, a == 0 ? o : r.rest);
154
154
  }
155
- let a = t.annotation(xe);
156
- if ((a == "full" || a == "before") && (e = e.isolate()), t.annotation(n.addToHistory) === !1) return t.changes.empty ? e : e.addMapping(t.changes.desc);
157
- let o = D.fromTransaction(t), s = t.annotation(n.time), c = t.annotation(n.userEvent);
158
- return o ? e = e.addChanges(o, s, c, r, t) : t.selection && (e = e.addSelection(t.startState.selection, s, c, r.newGroupDelay)), (a == "full" || a == "after") && (e = e.isolate()), e;
155
+ let i = t.annotation(xe);
156
+ if ((i == "full" || i == "before") && (e = e.isolate()), t.annotation(g.addToHistory) === !1) return t.changes.empty ? e : e.addMapping(t.changes.desc);
157
+ let a = D.fromTransaction(t), o = t.annotation(g.time), s = t.annotation(g.userEvent);
158
+ return a ? e = e.addChanges(a, o, s, n, t) : t.selection && (e = e.addSelection(t.startState.selection, o, s, n.newGroupDelay)), (i == "full" || i == "after") && (e = e.isolate()), e;
159
159
  },
160
160
  toJSON(e) {
161
161
  return {
@@ -203,7 +203,7 @@ var Ee = /*@__PURE__*/ T(0, !1), E = /*@__PURE__*/ T(1, !1), De = /*@__PURE__*/
203
203
  };
204
204
  }
205
205
  static fromJSON(t) {
206
- return new e(t.changes && o.fromJSON(t.changes), [], t.mapped && ee.fromJSON(t.mapped), t.startSelection && y.fromJSON(t.startSelection), t.selectionsAfter.map(y.fromJSON));
206
+ return new e(t.changes && a.fromJSON(t.changes), [], t.mapped && s.fromJSON(t.mapped), t.startSelection && n.fromJSON(t.startSelection), t.selectionsAfter.map(n.fromJSON));
207
207
  }
208
208
  static fromTransaction(t, n) {
209
209
  let r = k;
@@ -265,7 +265,7 @@ function Fe(e, t, n) {
265
265
  let r = je(e.selectionsAfter.length ? e.selectionsAfter.map((e) => e.map(t)) : k, n);
266
266
  if (!e.changes) return D.selection(r);
267
267
  let i = e.changes.map(t), a = t.mapDesc(e.changes, !0), o = e.mapped ? e.mapped.composeDesc(a) : a;
268
- return new D(i, u.mapEffects(e.effects, t), o, e.startSelection.map(a), r);
268
+ return new D(i, h.mapEffects(e.effects, t), o, e.startSelection.map(a), r);
269
269
  }
270
270
  var Ie = /^(input\.type|delete)($|\.)/, j = class e {
271
271
  constructor(e, t, n = 0, r = void 0) {
@@ -276,7 +276,7 @@ var Ie = /^(input\.type|delete)($|\.)/, j = class e {
276
276
  }
277
277
  addChanges(t, n, r, i, a) {
278
278
  let o = this.done, s = o[o.length - 1];
279
- return o = s && s.changes && !s.changes.empty && t.changes && (!r || Ie.test(r)) && (!s.selectionsAfter.length && n - this.prevTime < i.newGroupDelay && i.joinToEvent(a, ke(s.changes, t.changes)) || r == "input.type.compose") ? O(o, o.length - 1, i.minDepth, new D(t.changes.compose(s.changes), je(u.mapEffects(t.effects, s.changes), s.effects), s.mapped, s.startSelection, k)) : O(o, o.length, i.minDepth, t), new e(o, k, n, r);
279
+ return o = s && s.changes && !s.changes.empty && t.changes && (!r || Ie.test(r)) && (!s.selectionsAfter.length && n - this.prevTime < i.newGroupDelay && i.joinToEvent(a, ke(s.changes, t.changes)) || r == "input.type.compose") ? O(o, o.length - 1, i.minDepth, new D(t.changes.compose(s.changes), je(h.mapEffects(t.effects, s.changes), s.effects), s.mapped, s.startSelection, k)) : O(o, o.length, i.minDepth, t), new e(o, k, n, r);
280
280
  }
281
281
  addSelection(t, n, r, i) {
282
282
  let a = this.done.length ? this.done[this.done.length - 1].selectionsAfter : k;
@@ -349,7 +349,7 @@ var Le = [
349
349
  }
350
350
  ];
351
351
  function M(e, t) {
352
- return y.create(e.ranges.map(t), e.mainIndex);
352
+ return n.create(e.ranges.map(t), e.mainIndex);
353
353
  }
354
354
  function N(e, t) {
355
355
  return e.update({
@@ -363,13 +363,13 @@ function P({ state: e, dispatch: t }, n) {
363
363
  return !r.eq(e.selection, !0) && (t(N(e, r)), !0);
364
364
  }
365
365
  function F(e, t) {
366
- return y.cursor(t ? e.to : e.from);
366
+ return n.cursor(t ? e.to : e.from);
367
367
  }
368
368
  function Re(e, t) {
369
369
  return P(e, (n) => n.empty ? e.moveByChar(n, t) : F(n, t));
370
370
  }
371
371
  function I(e) {
372
- return e.textDirectionAt(e.state.selection.main.head) == p.LTR;
372
+ return e.textDirectionAt(e.state.selection.main.head) == ee.LTR;
373
373
  }
374
374
  var ze = (e) => Re(e, !I(e)), Be = (e) => Re(e, I(e));
375
375
  function Ve(e, t) {
@@ -382,15 +382,15 @@ function We(e, t, n) {
382
382
  let r = t.to - t.from;
383
383
  return r && (r > 2 || /[^\s,.;:]/.test(e.sliceDoc(t.from, t.to))) || t.firstChild;
384
384
  }
385
- function L(e, t, n) {
386
- let r = l(e).resolveInner(t.head), i = n ? h.closedBy : h.openedBy;
387
- for (let a = t.head;;) {
388
- let t = n ? r.childAfter(a) : r.childBefore(a);
385
+ function L(e, t, r) {
386
+ let i = u(e).resolveInner(t.head), a = r ? _.closedBy : _.openedBy;
387
+ for (let n = t.head;;) {
388
+ let t = r ? i.childAfter(n) : i.childBefore(n);
389
389
  if (!t) break;
390
- We(e, t, i) ? r = t : a = n ? t.to : t.from;
390
+ We(e, t, a) ? i = t : n = r ? t.to : t.from;
391
391
  }
392
- let a = r.type.prop(i), o, s;
393
- return s = a && (o = n ? d(e, r.from, 1) : d(e, r.to, -1)) && o.matched ? n ? o.end.to : o.end.from : n ? r.to : r.from, y.cursor(s, n ? -1 : 1);
392
+ let o = i.type.prop(a), s, c;
393
+ return c = o && (s = r ? m(e, i.from, 1) : m(e, i.to, -1)) && s.matched ? r ? s.end.to : s.end.from : r ? i.to : i.from, n.cursor(c, r ? -1 : 1);
394
394
  }
395
395
  var Ge = (e) => P(e, (t) => L(e.state, t, !I(e))), Ke = (e) => P(e, (t) => L(e.state, t, I(e)));
396
396
  function qe(e, t) {
@@ -431,33 +431,33 @@ function Ze(t, n) {
431
431
  return t.dispatch(N(i, a), { effects: o }), !0;
432
432
  }
433
433
  var Qe = (e) => Ze(e, !1), R = (e) => Ze(e, !0);
434
- function z(e, t, n) {
435
- let r = e.lineBlockAt(t.head), i = e.moveToLineBoundary(t, n);
436
- if (i.head == t.head && i.head != (n ? r.to : r.from) && (i = e.moveToLineBoundary(t, n, !1)), !n && i.head == r.from && r.length) {
437
- let n = /^\s*/.exec(e.state.sliceDoc(r.from, Math.min(r.from + 100, r.to)))[0].length;
438
- n && t.head != r.from + n && (i = y.cursor(r.from + n));
434
+ function z(e, t, r) {
435
+ let i = e.lineBlockAt(t.head), a = e.moveToLineBoundary(t, r);
436
+ if (a.head == t.head && a.head != (r ? i.to : i.from) && (a = e.moveToLineBoundary(t, r, !1)), !r && a.head == i.from && i.length) {
437
+ let r = /^\s*/.exec(e.state.sliceDoc(i.from, Math.min(i.from + 100, i.to)))[0].length;
438
+ r && t.head != i.from + r && (a = n.cursor(i.from + r));
439
439
  }
440
- return i;
440
+ return a;
441
441
  }
442
- var $e = (e) => P(e, (t) => z(e, t, !0)), et = (e) => P(e, (t) => z(e, t, !1)), tt = (e) => P(e, (t) => z(e, t, !I(e))), nt = (e) => P(e, (t) => z(e, t, I(e))), rt = (e) => P(e, (t) => y.cursor(e.lineBlockAt(t.head).from, 1)), it = (e) => P(e, (t) => y.cursor(e.lineBlockAt(t.head).to, -1));
443
- function at(e, t, n) {
444
- let r = !1, i = M(e.selection, (t) => {
445
- let i = d(e, t.head, -1) || d(e, t.head, 1) || t.head > 0 && d(e, t.head - 1, 1) || t.head < e.doc.length && d(e, t.head + 1, -1);
446
- if (!i || !i.end) return t;
447
- r = !0;
448
- let a = i.start.from == t.head ? i.end.to : i.end.from;
449
- return n ? y.range(t.anchor, a) : y.cursor(a);
442
+ var $e = (e) => P(e, (t) => z(e, t, !0)), et = (e) => P(e, (t) => z(e, t, !1)), tt = (e) => P(e, (t) => z(e, t, !I(e))), nt = (e) => P(e, (t) => z(e, t, I(e))), rt = (e) => P(e, (t) => e.moveToLineBoundary(t, !1, !1)), it = (e) => P(e, (t) => e.moveToLineBoundary(t, !0, !1));
443
+ function at(e, t, r) {
444
+ let i = !1, a = M(e.selection, (t) => {
445
+ let a = m(e, t.head, -1) || m(e, t.head, 1) || t.head > 0 && m(e, t.head - 1, 1) || t.head < e.doc.length && m(e, t.head + 1, -1);
446
+ if (!a || !a.end) return t;
447
+ i = !0;
448
+ let o = a.start.from == t.head ? a.end.to : a.end.from;
449
+ return r ? n.range(t.anchor, o) : n.cursor(o);
450
450
  });
451
- return r ? (t(N(e, i)), !0) : !1;
451
+ return i ? (t(N(e, a)), !0) : !1;
452
452
  }
453
453
  var ot = ({ state: e, dispatch: t }) => at(e, t, !1);
454
- function B(e, t, n) {
455
- let r = M(e.state.selection, (e) => {
456
- e.undirectional && e.head >= e.anchor != t && (e = y.range(e.head, e.anchor));
457
- let r = n(e);
458
- return y.range(e.anchor, r.head, r.goalColumn, r.bidiLevel || void 0, r.assoc);
454
+ function B(e, t, r) {
455
+ let i = M(e.state.selection, (e) => {
456
+ e.undirectional && e.head >= e.anchor != t && (e = n.range(e.head, e.anchor));
457
+ let i = r(e);
458
+ return n.range(e.anchor, i.head, i.goalColumn, i.bidiLevel || void 0, i.assoc);
459
459
  });
460
- return !r.eq(e.state.selection) && (e.dispatch(N(e.state, r)), !0);
460
+ return !i.eq(e.state.selection) && (e.dispatch(N(e.state, i)), !0);
461
461
  }
462
462
  function st(e, t) {
463
463
  return B(e, t, (n) => e.moveByChar(n, t));
@@ -486,7 +486,7 @@ var yt = (e) => vt(e, !1), bt = (e) => vt(e, !0), xt = (e) => B(e, !0, (t) => z(
486
486
  }, wt = (e) => {
487
487
  let t = I(e);
488
488
  return B(e, t, (n) => z(e, n, t));
489
- }, Tt = (e) => B(e, !1, (t) => y.cursor(e.lineBlockAt(t.head).from)), Et = (e) => B(e, !0, (t) => y.cursor(e.lineBlockAt(t.head).to)), Dt = ({ state: e, dispatch: t }) => (t(N(e, { anchor: 0 })), !0), Ot = ({ state: e, dispatch: t }) => (t(N(e, { anchor: e.doc.length })), !0), kt = ({ state: e, dispatch: t }) => (t(N(e, {
489
+ }, Tt = (e) => B(e, !1, (t) => n.cursor(e.lineBlockAt(t.head).from)), Et = (e) => B(e, !0, (t) => n.cursor(e.lineBlockAt(t.head).to)), Dt = ({ state: e, dispatch: t }) => (t(N(e, { anchor: 0 })), !0), Ot = ({ state: e, dispatch: t }) => (t(N(e, { anchor: e.doc.length })), !0), kt = ({ state: e, dispatch: t }) => (t(N(e, {
490
490
  anchor: e.selection.main.anchor,
491
491
  head: 0
492
492
  })), !0), At = ({ state: e, dispatch: t }) => (t(N(e, {
@@ -499,66 +499,66 @@ var yt = (e) => vt(e, !1), bt = (e) => vt(e, !0), xt = (e) => B(e, !0, (t) => z(
499
499
  },
500
500
  userEvent: "select"
501
501
  })), !0), Mt = ({ state: e, dispatch: t }) => {
502
- let n = W(e).map(({ from: t, to: n }) => y.undirectionalRange(t, Math.min(n + 1, e.doc.length)));
502
+ let r = W(e).map(({ from: t, to: r }) => n.undirectionalRange(t, Math.min(r + 1, e.doc.length)));
503
503
  return t(e.update({
504
- selection: y.create(n),
504
+ selection: n.create(r),
505
505
  userEvent: "select"
506
506
  })), !0;
507
507
  }, Nt = ({ state: e, dispatch: t }) => {
508
- let n = M(e.selection, (t) => {
509
- let n = l(e), r = n.resolveStack(t.from, 1);
508
+ let r = M(e.selection, (t) => {
509
+ let r = u(e), i = r.resolveStack(t.from, 1);
510
510
  if (t.empty) {
511
- let e = n.resolveStack(t.from, -1);
512
- e.node.from >= r.node.from && e.node.to <= r.node.to && (r = e);
511
+ let e = r.resolveStack(t.from, -1);
512
+ e.node.from >= i.node.from && e.node.to <= i.node.to && (i = e);
513
513
  }
514
- for (let e = r; e; e = e.next) {
515
- let { node: n } = e;
516
- if ((n.from < t.from && n.to >= t.to || n.to > t.to && n.from <= t.from) && e.next) return y.undirectionalRange(n.from, n.to);
514
+ for (let e = i; e; e = e.next) {
515
+ let { node: r } = e;
516
+ if ((r.from < t.from && r.to >= t.to || r.to > t.to && r.from <= t.from) && e.next) return n.undirectionalRange(r.from, r.to);
517
517
  }
518
518
  return t;
519
519
  });
520
- return !n.eq(e.selection) && (t(N(e, n)), !0);
520
+ return !r.eq(e.selection) && (t(N(e, r)), !0);
521
521
  };
522
522
  function Pt(e, t) {
523
- let { state: n } = e, r = n.selection, i = n.selection.ranges.slice();
524
- for (let r of n.selection.ranges) {
525
- let a = n.doc.lineAt(r.head);
526
- if (t ? a.to < e.state.doc.length : a.from > 0) for (let n = r;;) {
527
- let r = e.moveVertically(n, t);
528
- if (r.head < a.from || r.head > a.to) {
529
- i.some((e) => e.head == r.head) || i.push(r);
523
+ let { state: r } = e, i = r.selection, a = r.selection.ranges.slice();
524
+ for (let n of r.selection.ranges) {
525
+ let i = r.doc.lineAt(n.head);
526
+ if (t ? i.to < e.state.doc.length : i.from > 0) for (let r = n;;) {
527
+ let n = e.moveVertically(r, t);
528
+ if (n.head < i.from || n.head > i.to) {
529
+ a.some((e) => e.head == n.head) || a.push(n);
530
530
  break;
531
531
  }
532
- if (r.head == n.head) break;
533
- n = r;
532
+ if (n.head == r.head) break;
533
+ r = n;
534
534
  }
535
535
  }
536
- return i.length != r.ranges.length && (e.dispatch(N(n, y.create(i, i.length - 1))), !0);
536
+ return a.length != i.ranges.length && (e.dispatch(N(r, n.create(a, a.length - 1))), !0);
537
537
  }
538
538
  var Ft = (e) => Pt(e, !1), It = (e) => Pt(e, !0), Lt = ({ state: e, dispatch: t }) => {
539
- let n = e.selection, r = null;
540
- return n.ranges.length > 1 ? r = y.create([n.main]) : n.main.empty || (r = y.create([y.cursor(n.main.head)])), r ? (t(N(e, r)), !0) : !1;
539
+ let r = e.selection, i = null;
540
+ return r.ranges.length > 1 ? i = n.create([r.main]) : r.main.empty || (i = n.create([n.cursor(r.main.head)])), i ? (t(N(e, i)), !0) : !1;
541
541
  };
542
- function V(t, n) {
542
+ function V(t, r) {
543
543
  if (t.state.readOnly) return !1;
544
- let r = "delete.selection", { state: i } = t, a = i.changeByRange((e) => {
545
- let { from: i, to: a } = e;
546
- if (i == a) {
547
- let o = n(e);
548
- o < i ? (r = "delete.backward", o = H(t, o, !1)) : o > i && (r = "delete.forward", o = H(t, o, !0)), i = Math.min(i, o), a = Math.max(a, o);
549
- } else i = H(t, i, !1), a = H(t, a, !0);
550
- return i == a ? { range: e } : {
544
+ let i = "delete.selection", { state: a } = t, o = a.changeByRange((e) => {
545
+ let { from: a, to: o } = e;
546
+ if (a == o) {
547
+ let n = r(e);
548
+ n < a ? (i = "delete.backward", n = H(t, n, !1)) : n > a && (i = "delete.forward", n = H(t, n, !0)), a = Math.min(a, n), o = Math.max(o, n);
549
+ } else a = H(t, a, !1), o = H(t, o, !0);
550
+ return a == o ? { range: e } : {
551
551
  changes: {
552
- from: i,
553
- to: a
552
+ from: a,
553
+ to: o
554
554
  },
555
- range: y.cursor(i, i < e.head ? -1 : 1)
555
+ range: n.cursor(a, a < e.head ? -1 : 1)
556
556
  };
557
557
  });
558
- return !a.changes.empty && (t.dispatch(i.update(a, {
558
+ return !o.changes.empty && (t.dispatch(a.update(o, {
559
559
  scrollIntoView: !0,
560
- userEvent: r,
561
- effects: r == "delete.selection" ? e.announce.of(i.phrase("Selection deleted")) : void 0
560
+ userEvent: i,
561
+ effects: i == "delete.selection" ? e.announce.of(a.phrase("Selection deleted")) : void 0
562
562
  })), !0);
563
563
  }
564
564
  function H(t, n, r) {
@@ -568,13 +568,13 @@ function H(t, n, r) {
568
568
  return n;
569
569
  }
570
570
  var Rt = (e, t, n) => V(e, (r) => {
571
- let i = r.from, { state: o } = e, s = o.doc.lineAt(i), l, u;
572
- if (n && !t && i > s.from && i < s.from + 200 && !/[^ \t]/.test(l = s.text.slice(0, i - s.from))) {
573
- if (l[l.length - 1] == " ") return i - 1;
574
- let e = g(l, o.tabSize) % a(o) || a(o);
575
- for (let t = 0; t < e && l[l.length - 1 - t] == " "; t++) i--;
571
+ let i = r.from, { state: a } = e, s = a.doc.lineAt(i), c, u;
572
+ if (n && !t && i > s.from && i < s.from + 200 && !/[^ \t]/.test(c = s.text.slice(0, i - s.from))) {
573
+ if (c[c.length - 1] == " ") return i - 1;
574
+ let e = l(c, a.tabSize) % o(a) || o(a);
575
+ for (let t = 0; t < e && c[c.length - 1 - t] == " "; t++) i--;
576
576
  u = i;
577
- } else u = c(s.text, i - s.from, t, t) + s.from, u == i && s.number != (t ? o.doc.lines : 1) ? u += t ? 1 : -1 : !t && /[\ufe00-\ufe0f]/.test(s.text.slice(u - s.from, i - s.from)) && (u = c(s.text, u - s.from, !1, !1) + s.from);
577
+ } else u = f(s.text, i - s.from, t, t) + s.from, u == i && s.number != (t ? a.doc.lines : 1) ? u += t ? 1 : -1 : !t && /[\ufe00-\ufe0f]/.test(s.text.slice(u - s.from, i - s.from)) && (u = f(s.text, u - s.from, !1, !1) + s.from);
578
578
  return u;
579
579
  }), U = (e) => Rt(e, !1, !0), zt = (e) => Rt(e, !0, !1), Bt = (e, t) => V(e, (n) => {
580
580
  let r = n.head, { state: i } = e, a = i.doc.lineAt(r), o = i.charCategorizer(r);
@@ -583,9 +583,9 @@ var Rt = (e, t, n) => V(e, (r) => {
583
583
  r == n.head && a.number != (t ? i.doc.lines : 1) && (r += t ? 1 : -1);
584
584
  break;
585
585
  }
586
- let s = c(a.text, r - a.from, t) + a.from, l = a.text.slice(Math.min(r, s) - a.from, Math.max(r, s) - a.from), u = o(l);
587
- if (e != null && u != e) break;
588
- (l != " " || r != n.head) && (e = u), r = s;
586
+ let s = f(a.text, r - a.from, t) + a.from, c = a.text.slice(Math.min(r, s) - a.from, Math.max(r, s) - a.from), l = o(c);
587
+ if (e != null && l != e) break;
588
+ (c != " " || r != n.head) && (e = l), r = s;
589
589
  }
590
590
  return r;
591
591
  }), Vt = (e) => Bt(e, !1), Ht = (e) => Bt(e, !0), Ut = (e) => V(e, (t) => {
@@ -599,33 +599,33 @@ var Rt = (e, t, n) => V(e, (r) => {
599
599
  return t.head < n ? n : Math.min(e.state.doc.length, t.head + 1);
600
600
  }), Kt = ({ state: e, dispatch: t }) => {
601
601
  if (e.readOnly) return !1;
602
- let n = e.changeByRange((e) => ({
602
+ let i = e.changeByRange((e) => ({
603
603
  changes: {
604
604
  from: e.from,
605
605
  to: e.to,
606
- insert: fe.of(["", ""])
606
+ insert: r.of(["", ""])
607
607
  },
608
- range: y.cursor(e.from)
608
+ range: n.cursor(e.from)
609
609
  }));
610
- return t(e.update(n, {
610
+ return t(e.update(i, {
611
611
  scrollIntoView: !0,
612
612
  userEvent: "input"
613
613
  })), !0;
614
614
  }, qt = ({ state: e, dispatch: t }) => {
615
615
  if (e.readOnly) return !1;
616
- let n = e.changeByRange((t) => {
616
+ let r = e.changeByRange((t) => {
617
617
  if (!t.empty || t.from == 0 || t.from == e.doc.length) return { range: t };
618
- let n = t.from, r = e.doc.lineAt(n), i = n == r.from ? n - 1 : c(r.text, n - r.from, !1) + r.from, a = n == r.to ? n + 1 : c(r.text, n - r.from, !0) + r.from;
618
+ let r = t.from, i = e.doc.lineAt(r), a = r == i.from ? r - 1 : f(i.text, r - i.from, !1) + i.from, o = r == i.to ? r + 1 : f(i.text, r - i.from, !0) + i.from;
619
619
  return {
620
620
  changes: {
621
- from: i,
622
- to: a,
623
- insert: e.doc.slice(n, a).append(e.doc.slice(i, n))
621
+ from: a,
622
+ to: o,
623
+ insert: e.doc.slice(r, o).append(e.doc.slice(a, r))
624
624
  },
625
- range: y.cursor(a)
625
+ range: n.cursor(o)
626
626
  };
627
627
  });
628
- return !n.changes.empty && (t(e.update(n, {
628
+ return !r.changes.empty && (t(e.update(r, {
629
629
  scrollIntoView: !0,
630
630
  userEvent: "move.character"
631
631
  })), !0);
@@ -646,36 +646,36 @@ function W(e) {
646
646
  }
647
647
  return t;
648
648
  }
649
- function Jt(e, t, n) {
649
+ function Jt(e, t, r) {
650
650
  if (e.readOnly) return !1;
651
- let r = [], i = [];
651
+ let i = [], a = [];
652
652
  for (let t of W(e)) {
653
- if (n ? t.to == e.doc.length : t.from == 0) continue;
654
- let a = e.doc.lineAt(n ? t.to + 1 : t.from - 1), o = a.length + 1;
655
- if (n) {
656
- r.push({
653
+ if (r ? t.to == e.doc.length : t.from == 0) continue;
654
+ let o = e.doc.lineAt(r ? t.to + 1 : t.from - 1), s = o.length + 1;
655
+ if (r) {
656
+ i.push({
657
657
  from: t.to,
658
- to: a.to
658
+ to: o.to
659
659
  }, {
660
660
  from: t.from,
661
- insert: a.text + e.lineBreak
661
+ insert: o.text + e.lineBreak
662
662
  });
663
- for (let n of t.ranges) i.push(y.range(Math.min(e.doc.length, n.anchor + o), Math.min(e.doc.length, n.head + o)));
663
+ for (let r of t.ranges) a.push(n.range(Math.min(e.doc.length, r.anchor + s), Math.min(e.doc.length, r.head + s)));
664
664
  } else {
665
- r.push({
666
- from: a.from,
665
+ i.push({
666
+ from: o.from,
667
667
  to: t.from
668
668
  }, {
669
669
  from: t.to,
670
- insert: e.lineBreak + a.text
670
+ insert: e.lineBreak + o.text
671
671
  });
672
- for (let e of t.ranges) i.push(y.range(e.anchor - o, e.head - o));
672
+ for (let e of t.ranges) a.push(n.range(e.anchor - s, e.head - s));
673
673
  }
674
674
  }
675
- return r.length ? (t(e.update({
676
- changes: r,
675
+ return i.length ? (t(e.update({
676
+ changes: i,
677
677
  scrollIntoView: !0,
678
- selection: y.create(i, e.selection.mainIndex),
678
+ selection: n.create(a, e.selection.mainIndex),
679
679
  userEvent: "move.line"
680
680
  })), !0) : !1;
681
681
  }
@@ -723,59 +723,59 @@ function tn(e, t) {
723
723
  from: t,
724
724
  to: t
725
725
  };
726
- let n = l(e).resolveInner(t), r = n.childBefore(t), i = n.childAfter(t), a;
727
- return r && i && r.to <= t && i.from >= t && (a = r.type.prop(h.closedBy)) && a.indexOf(i.name) > -1 && e.doc.lineAt(r.to).from == e.doc.lineAt(i.from).from && !/\S/.test(e.sliceDoc(r.to, i.from)) ? {
726
+ let n = u(e).resolveInner(t), r = n.childBefore(t), i = n.childAfter(t), a;
727
+ return r && i && r.to <= t && i.from >= t && (a = r.type.prop(_.closedBy)) && a.indexOf(i.name) > -1 && e.doc.lineAt(r.to).from == e.doc.lineAt(i.from).from && !/\S/.test(e.sliceDoc(r.to, i.from)) ? {
728
728
  from: r.to,
729
729
  to: i.from
730
730
  } : null;
731
731
  }
732
732
  var nn = /*@__PURE__*/ an(!1), rn = /*@__PURE__*/ an(!0);
733
733
  function an(e) {
734
- return ({ state: n, dispatch: r }) => {
735
- if (n.readOnly) return !1;
736
- let a = n.changeByRange((r) => {
737
- let { from: a, to: o } = r, s = n.doc.lineAt(a), c = !e && a == o && tn(n, a);
738
- e && (a = o = (o <= s.to ? s : n.doc.lineAt(o)).to);
739
- let l = new ae(n, {
740
- simulateBreak: a,
741
- simulateDoubleBreak: !!c
742
- }), u = i(l, a);
743
- for (u ??= g(/^\s*/.exec(n.doc.lineAt(a).text)[0], n.tabSize); o < s.to && /\s/.test(s.text[o - s.from]);) o++;
744
- c ? {from: a, to: o} = c : a > s.from && a < s.from + 100 && !/\S/.test(s.text.slice(0, a)) && (a = s.from);
745
- let d = ["", t(n, u)];
746
- return c && d.push(t(n, l.lineIndent(s.from, -1))), {
734
+ return ({ state: a, dispatch: o }) => {
735
+ if (a.readOnly) return !1;
736
+ let s = a.changeByRange((o) => {
737
+ let { from: s, to: c } = o, u = a.doc.lineAt(s), d = !e && s == c && tn(a, s);
738
+ e && (s = c = (c <= u.to ? u : a.doc.lineAt(c)).to);
739
+ let f = new le(a, {
740
+ simulateBreak: s,
741
+ simulateDoubleBreak: !!d
742
+ }), p = i(f, s);
743
+ for (p ??= l(/^\s*/.exec(a.doc.lineAt(s).text)[0], a.tabSize); c < u.to && /\s/.test(u.text[c - u.from]);) c++;
744
+ d ? {from: s, to: c} = d : s > u.from && s < u.from + 100 && !/\S/.test(u.text.slice(0, s)) && (s = u.from);
745
+ let m = ["", t(a, p)];
746
+ return d && m.push(t(a, f.lineIndent(u.from, -1))), {
747
747
  changes: {
748
- from: a,
749
- to: o,
750
- insert: fe.of(d)
748
+ from: s,
749
+ to: c,
750
+ insert: r.of(m)
751
751
  },
752
- range: y.cursor(a + 1 + d[1].length)
752
+ range: n.cursor(s + 1 + m[1].length)
753
753
  };
754
754
  });
755
- return r(n.update(a, {
755
+ return o(a.update(s, {
756
756
  scrollIntoView: !0,
757
757
  userEvent: "input"
758
758
  })), !0;
759
759
  };
760
760
  }
761
761
  function G(e, t) {
762
- let n = -1;
763
- return e.changeByRange((r) => {
764
- let i = [];
765
- for (let a = r.from; a <= r.to;) {
766
- let o = e.doc.lineAt(a);
767
- o.number > n && (r.empty || r.to > o.from) && (t(o, i, r), n = o.number), a = o.to + 1;
762
+ let r = -1;
763
+ return e.changeByRange((i) => {
764
+ let a = [];
765
+ for (let n = i.from; n <= i.to;) {
766
+ let o = e.doc.lineAt(n);
767
+ o.number > r && (i.empty || i.to > o.from) && (t(o, a, i), r = o.number), n = o.to + 1;
768
768
  }
769
- let a = e.changes(i);
769
+ let o = e.changes(a);
770
770
  return {
771
- changes: i,
772
- range: y.range(a.mapPos(r.anchor, 1), a.mapPos(r.head, 1))
771
+ changes: a,
772
+ range: n.range(o.mapPos(i.anchor, 1), o.mapPos(i.head, 1))
773
773
  };
774
774
  });
775
775
  }
776
776
  var on = ({ state: e, dispatch: n }) => {
777
777
  if (e.readOnly) return !1;
778
- let r = Object.create(null), a = new ae(e, { overrideIndentation: (e) => r[e] ?? -1 }), o = G(e, (n, o, s) => {
778
+ let r = Object.create(null), a = new le(e, { overrideIndentation: (e) => r[e] ?? -1 }), o = G(e, (n, o, s) => {
779
779
  let c = i(a, n.from);
780
780
  if (c == null) return;
781
781
  /\S/.test(n.text) || (c = 0);
@@ -790,12 +790,12 @@ var on = ({ state: e, dispatch: n }) => {
790
790
  }, K = ({ state: e, dispatch: t }) => !e.readOnly && (t(e.update(G(e, (t, n) => {
791
791
  n.push({
792
792
  from: t.from,
793
- insert: e.facet(re)
793
+ insert: e.facet(oe)
794
794
  });
795
795
  }), { userEvent: "input.indent" })), !0), sn = ({ state: e, dispatch: n }) => !e.readOnly && (n(e.update(G(e, (n, r) => {
796
796
  let i = /^\s*/.exec(n.text)[0];
797
797
  if (!i) return;
798
- let o = g(i, e.tabSize), s = 0, c = t(e, Math.max(0, o - a(e)));
798
+ let a = l(i, e.tabSize), s = 0, c = t(e, Math.max(0, a - o(e)));
799
799
  for (; s < i.length && s < c.length && i.charCodeAt(s) == c.charCodeAt(s);) s++;
800
800
  r.push({
801
801
  from: n.from + s,
@@ -1121,19 +1121,19 @@ var on = ({ state: e, dispatch: n }) => {
1121
1121
  static init(t, n, r) {
1122
1122
  let i = r.facet(Q).markerFilter;
1123
1123
  i && (t = i(t, r));
1124
- let a = t.slice().sort((e, t) => e.from - t.from || e.to - t.to), o = new s(), c = [], l = 0, u = r.doc.iter(), d = 0, f = r.doc.length;
1124
+ let a = t.slice().sort((e, t) => e.from - t.from || e.to - t.to), o = new d(), s = [], c = 0, l = r.doc.iter(), u = 0, f = r.doc.length;
1125
1125
  for (let e = 0;;) {
1126
1126
  let t = e == a.length ? null : a[e];
1127
- if (!t && !c.length) break;
1127
+ if (!t && !s.length) break;
1128
1128
  let n, r;
1129
- if (c.length) n = l, r = c.reduce((e, t) => Math.min(e, t.to), t && t.from > n ? t.from : 1e8);
1129
+ if (s.length) n = c, r = s.reduce((e, t) => Math.min(e, t.to), t && t.from > n ? t.from : 1e8);
1130
1130
  else {
1131
1131
  if (n = t.from, n > f) break;
1132
- r = t.to, c.push(t), e++;
1132
+ r = t.to, s.push(t), e++;
1133
1133
  }
1134
1134
  for (; e < a.length;) {
1135
1135
  let t = a[e];
1136
- if (t.from == n && (t.to > t.from || t.to == n)) c.push(t), e++, r = Math.min(t.to, r);
1136
+ if (t.from == n && (t.to > t.from || t.to == n)) s.push(t), e++, r = Math.min(t.to, r);
1137
1137
  else {
1138
1138
  r = Math.min(t.from, r);
1139
1139
  break;
@@ -1141,33 +1141,33 @@ var on = ({ state: e, dispatch: n }) => {
1141
1141
  }
1142
1142
  r = Math.min(r, f);
1143
1143
  let i = !1;
1144
- if (c.some((e) => e.from == n && (e.to == r || r == f)) && (i = n == r, !i && r - n < 10)) {
1145
- let e = n - (d + u.value.length);
1146
- e > 0 && (u.next(e), d = n);
1144
+ if (s.some((e) => e.from == n && (e.to == r || r == f)) && (i = n == r, !i && r - n < 10)) {
1145
+ let e = n - (u + l.value.length);
1146
+ e > 0 && (l.next(e), u = n);
1147
1147
  for (let e = n;;) {
1148
1148
  if (e >= r) {
1149
1149
  i = !0;
1150
1150
  break;
1151
1151
  }
1152
- if (!u.lineBreak && d + u.value.length > e) break;
1153
- e = d + u.value.length, d += u.value.length, u.next();
1152
+ if (!l.lineBreak && u + l.value.length > e) break;
1153
+ e = u + l.value.length, u += l.value.length, l.next();
1154
1154
  }
1155
1155
  }
1156
- let s = Ln(c);
1157
- if (i) o.add(n, n, _.widget({
1158
- widget: new jn(s),
1159
- diagnostics: c.slice()
1156
+ let d = Ln(s);
1157
+ if (i) o.add(n, n, v.widget({
1158
+ widget: new jn(d),
1159
+ diagnostics: s.slice()
1160
1160
  }));
1161
1161
  else {
1162
- let e = c.reduce((e, t) => t.markClass ? e + " " + t.markClass : e, "");
1163
- o.add(n, r, _.mark({
1164
- class: "cm-lintRange cm-lintRange-" + s + e,
1165
- diagnostics: c.slice(),
1166
- inclusiveEnd: c.some((e) => e.to > r)
1162
+ let e = s.reduce((e, t) => t.markClass ? e + " " + t.markClass : e, "");
1163
+ o.add(n, r, v.mark({
1164
+ class: "cm-lintRange cm-lintRange-" + d + e,
1165
+ diagnostics: s.slice(),
1166
+ inclusiveEnd: s.some((e) => e.to > r)
1167
1167
  }));
1168
1168
  }
1169
- if (l = r, l == f) break;
1170
- for (let e = 0; e < c.length; e++) c[e].to <= l && c.splice(e--, 1);
1169
+ if (c = r, c == f) break;
1170
+ for (let e = 0; e < s.length; e++) s[e].to <= c && s.splice(e--, 1);
1171
1171
  }
1172
1172
  let p = o.finish();
1173
1173
  return new e(p, n, J(p));
@@ -1190,14 +1190,14 @@ function hn(e, t) {
1190
1190
  return !!(e.effects.some((e) => e.is(Y)) || e.changes.touchesRange(a.from, Math.max(a.to, r)));
1191
1191
  }
1192
1192
  function gn(e, t) {
1193
- return e.field(Z, !1) ? t : t.concat(u.appendConfig.of(zn));
1193
+ return e.field(Z, !1) ? t : t.concat(h.appendConfig.of(zn));
1194
1194
  }
1195
1195
  function _n(e, t) {
1196
1196
  return { effects: gn(e, [Y.of(t)]) };
1197
1197
  }
1198
- var Y = /*@__PURE__*/ u.define(), X = /*@__PURE__*/ u.define(), vn = /*@__PURE__*/ u.define(), Z = /*@__PURE__*/ m.define({
1198
+ var Y = /*@__PURE__*/ h.define(), X = /*@__PURE__*/ h.define(), vn = /*@__PURE__*/ h.define(), Z = /*@__PURE__*/ fe.define({
1199
1199
  create() {
1200
- return new q(_.none, null, null);
1200
+ return new q(v.none, null, null);
1201
1201
  },
1202
1202
  update(e, t) {
1203
1203
  if (t.docChanged && e.diagnostics.size) {
@@ -1214,8 +1214,8 @@ var Y = /*@__PURE__*/ u.define(), X = /*@__PURE__*/ u.define(), vn = /*@__PURE__
1214
1214
  } else n.is(X) ? e = new q(e.diagnostics, n.value ? Nn.open : null, e.selected) : n.is(vn) && (e = new q(e.diagnostics, e.panel, n.value));
1215
1215
  return e;
1216
1216
  },
1217
- provide: (t) => [de.from(t, (e) => e.panel), e.decorations.from(t, (e) => e.diagnostics)]
1218
- }), yn = /*@__PURE__*/ _.mark({ class: "cm-lintRange cm-lintRange-active" });
1217
+ provide: (t) => [te.from(t, (e) => e.panel), e.decorations.from(t, (e) => e.diagnostics)]
1218
+ }), yn = /*@__PURE__*/ v.mark({ class: "cm-lintRange cm-lintRange-active" });
1219
1219
  function bn(e, t, n) {
1220
1220
  let { diagnostics: r } = e.state.field(Z), i, a = -1, o = -1;
1221
1221
  r.between(t - +(n < 0), t + +(n > 0), (e, r, { spec: s }) => {
@@ -1232,12 +1232,12 @@ function bn(e, t, n) {
1232
1232
  } : null;
1233
1233
  }
1234
1234
  function xn(e, t) {
1235
- return r("ul", { class: "cm-tooltip-lint" }, t.map((t) => An(e, t, !1)));
1235
+ return y("ul", { class: "cm-tooltip-lint" }, t.map((t) => An(e, t, !1)));
1236
1236
  }
1237
1237
  var Sn = (e) => {
1238
1238
  let t = e.state.field(Z, !1);
1239
1239
  (!t || !t.panel) && e.dispatch({ effects: gn(e.state, [X.of(!0)]) });
1240
- let n = ce(e, Nn.open);
1240
+ let n = ae(e, Nn.open);
1241
1241
  return n && n.dom.querySelector(".cm-panel-lint ul").focus(), !0;
1242
1242
  }, Cn = (e) => {
1243
1243
  let t = e.state.field(Z, !1);
@@ -1258,12 +1258,12 @@ var Sn = (e) => {
1258
1258
  head: r.to
1259
1259
  },
1260
1260
  scrollIntoView: !0
1261
- }), se(e, r.from, 1, {
1261
+ }), ue(e, r.from, 1, {
1262
1262
  tooltip: Rn,
1263
1263
  until: (e) => e.docChanged || e.newSelection.main.head < r.from || e.newSelection.main.head > r.to
1264
1264
  }), !0);
1265
1265
  }
1266
- }], Tn = /*@__PURE__*/ le.fromClass(class {
1266
+ }], Tn = /*@__PURE__*/ de.fromClass(class {
1267
1267
  constructor(e) {
1268
1268
  this.view = e, this.timeout = -1, this.set = !0;
1269
1269
  let { delay: t } = e.state.facet(Q);
@@ -1279,7 +1279,7 @@ var Sn = (e) => {
1279
1279
  t.length && En(t.map((e) => Promise.resolve(e(this.view))), (t) => {
1280
1280
  this.view.state.doc == e.doc && this.view.dispatch(_n(this.view.state, t.reduce((e, t) => e.concat(t))));
1281
1281
  }, (e) => {
1282
- ne(this.view.state, e);
1282
+ ie(this.view.state, e);
1283
1283
  });
1284
1284
  }
1285
1285
  }
@@ -1300,10 +1300,10 @@ function En(e, t, n) {
1300
1300
  r.push(n), clearTimeout(i), r.length == e.length ? t(r) : i = setTimeout(() => t(r), 200);
1301
1301
  }, n);
1302
1302
  }
1303
- var Q = /*@__PURE__*/ v.define({ combine(e) {
1303
+ var Q = /*@__PURE__*/ p.define({ combine(e) {
1304
1304
  return {
1305
1305
  sources: e.map((e) => e.source).filter((e) => e != null),
1306
- ...te(e.map((e) => e.config), {
1306
+ ...re(e.map((e) => e.config), {
1307
1307
  delay: 750,
1308
1308
  markerFilter: null,
1309
1309
  tooltipFilter: null,
@@ -1347,28 +1347,28 @@ function kn(e) {
1347
1347
  return t;
1348
1348
  }
1349
1349
  function An(e, t, n) {
1350
- let i = n ? kn(t.actions) : [];
1351
- return r("li", { class: "cm-diagnostic cm-diagnostic-" + t.severity }, r("span", { class: "cm-diagnosticText" }, t.renderMessage ? t.renderMessage(e) : t.message), t.actions?.map((n, a) => {
1352
- let o = !1, s = (r) => {
1353
- if (r.preventDefault(), o) return;
1354
- o = !0;
1350
+ let r = n ? kn(t.actions) : [];
1351
+ return y("li", { class: "cm-diagnostic cm-diagnostic-" + t.severity }, y("span", { class: "cm-diagnosticText" }, t.renderMessage ? t.renderMessage(e) : t.message), t.actions?.map((n, i) => {
1352
+ let a = !1, o = (r) => {
1353
+ if (r.preventDefault(), a) return;
1354
+ a = !0;
1355
1355
  let i = J(e.state.field(Z).diagnostics, t);
1356
1356
  i && n.apply(e, i.from, i.to);
1357
- }, { name: c } = n, l = i[a] ? c.indexOf(i[a]) : -1, u = l < 0 ? c : [
1358
- c.slice(0, l),
1359
- r("u", c.slice(l, l + 1)),
1360
- c.slice(l + 1)
1361
- ], d = n.markClass ? " " + n.markClass : "";
1362
- return r("button", {
1357
+ }, { name: s } = n, c = r[i] ? s.indexOf(r[i]) : -1, l = c < 0 ? s : [
1358
+ s.slice(0, c),
1359
+ y("u", s.slice(c, c + 1)),
1360
+ s.slice(c + 1)
1361
+ ], u = n.markClass ? " " + n.markClass : "";
1362
+ return y("button", {
1363
1363
  type: "button",
1364
- class: "cm-diagnosticAction" + d,
1365
- onclick: s,
1366
- onmousedown: s,
1367
- "aria-label": ` Action: ${c}${l < 0 ? "" : ` (access key "${i[a]})"`}.`
1368
- }, u);
1369
- }), t.source && r("div", { class: "cm-diagnosticSource" }, t.source));
1364
+ class: "cm-diagnosticAction" + u,
1365
+ onclick: o,
1366
+ onmousedown: o,
1367
+ "aria-label": ` Action: ${s}${c < 0 ? "" : ` (access key "${r[i]})"`}.`
1368
+ }, l);
1369
+ }), t.source && y("div", { class: "cm-diagnosticSource" }, t.source));
1370
1370
  }
1371
- var jn = class extends ie {
1371
+ var jn = class extends ce {
1372
1372
  constructor(e) {
1373
1373
  super(), this.sev = e;
1374
1374
  }
@@ -1376,7 +1376,7 @@ var jn = class extends ie {
1376
1376
  return e.sev == this.sev;
1377
1377
  }
1378
1378
  toDOM() {
1379
- return r("span", { class: "cm-lintPoint cm-lintPoint-" + this.sev });
1379
+ return y("span", { class: "cm-lintPoint cm-lintPoint-" + this.sev });
1380
1380
  }
1381
1381
  }, Mn = class {
1382
1382
  constructor(e, t) {
@@ -1405,13 +1405,13 @@ var jn = class extends ie {
1405
1405
  }, n = (e) => {
1406
1406
  for (let t = 0; t < this.items.length; t++) this.items[t].dom.contains(e.target) && this.moveSelection(t);
1407
1407
  };
1408
- this.list = r("ul", {
1408
+ this.list = y("ul", {
1409
1409
  tabIndex: 0,
1410
1410
  role: "listbox",
1411
1411
  "aria-label": this.view.state.phrase("Diagnostics"),
1412
1412
  onkeydown: t,
1413
1413
  onclick: n
1414
- }), this.dom = r("div", { class: "cm-panel-lint" }, this.list, r("button", {
1414
+ }), this.dom = y("div", { class: "cm-panel-lint" }, this.list, y("button", {
1415
1415
  type: "button",
1416
1416
  name: "close",
1417
1417
  "aria-label": this.view.state.phrase("close"),
@@ -1587,11 +1587,11 @@ function Ln(e) {
1587
1587
  }
1588
1588
  return t;
1589
1589
  }
1590
- var Rn = /*@__PURE__*/ oe(bn, { hideOn: hn }), zn = [
1590
+ var Rn = /*@__PURE__*/ se(bn, { hideOn: hn }), zn = [
1591
1591
  Z,
1592
1592
  /*@__PURE__*/ e.decorations.compute([Z], (e) => {
1593
1593
  let { selected: t, panel: n } = e.field(Z);
1594
- return !t || !n || t.from == t.to ? _.none : _.set([yn.range(t.from, t.to)]);
1594
+ return !t || !n || t.from == t.to ? v.none : v.set([yn.range(t.from, t.to)]);
1595
1595
  }),
1596
1596
  Rn,
1597
1597
  Fn
@@ -1600,7 +1600,7 @@ function Bn(e, t) {
1600
1600
  let n = e.field(Z, !1);
1601
1601
  if (n && n.diagnostics.size) {
1602
1602
  let e = [], r = [], i = -1;
1603
- for (let a = f.iter([n.diagnostics]);; a.next()) {
1603
+ for (let a = c.iter([n.diagnostics]);; a.next()) {
1604
1604
  for (let n = 0; n < e.length; n++) (!a.value || a.value.spec.diagnostics.indexOf(e[n]) < 0) && (t(e[n], r[n], i), e.splice(n, 1), r.splice(n--, 1));
1605
1605
  if (!a.value) break;
1606
1606
  for (let t of a.value.spec.diagnostics) e.indexOf(t) < 0 && (e.push(t), r.push(a.from));