@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.
- package/dist/{ErrorBoundary-2xvh1Fxx.js → ErrorBoundary-ChAoG2uk.js} +1 -1
- package/dist/{any-language-editor-dqxlUDlT.js → any-language-editor-DJ2MRREE.js} +2 -2
- package/dist/{apl-BYaaig9_.js → apl-GEW9-ZP1.js} +1 -1
- package/dist/{asciiarmor-GKQFJXQG.js → asciiarmor-BWNxzkG7.js} +1 -1
- package/dist/{asn1-BsSb7HP5.js → asn1-Bcn2QutK.js} +1 -1
- package/dist/{asterisk-B3I8SNb5.js → asterisk-lE36-hJK.js} +1 -1
- package/dist/{brainfuck-DXjk3bQe.js → brainfuck-BQCYDheZ.js} +1 -1
- package/dist/{cells-BUbzm9iX.js → cells-DxsypDZK.js} +265 -265
- package/dist/{chat-ui-DJpsSmlB.js → chat-ui-Co3Bmh7f.js} +32 -32
- package/dist/{clike-E2lFbGVj.js → clike-CxK9W55Z.js} +1 -1
- package/dist/{clojure-Dn_K4RlK.js → clojure-Dzcvwpxk.js} +1 -1
- package/dist/{cmake-DpN2Top5.js → cmake-DYr-71zp.js} +1 -1
- package/dist/{cobol-Chf22-GM.js → cobol-DC3g37Kq.js} +1 -1
- package/dist/{code-visibility-D3qJ9egx.js → code-visibility-C7R_-ZiT.js} +2 -2
- package/dist/{coffeescript-BVe1OiD9.js → coffeescript-C-eFwH5N.js} +1 -1
- package/dist/{common-Bu7LgWTG.js → common-CiW9HRfO.js} +5 -5
- package/dist/{commonlisp-DxoBG7fU.js → commonlisp-CyaNXrJR.js} +1 -1
- package/dist/{crystal-DCM3yc4r.js → crystal-ih5ax5tQ.js} +1 -1
- package/dist/{css-DkZ9mMyI.js → css-CN_wP7_R.js} +1 -1
- package/dist/{cypher-Drw_8U5I.js → cypher-CqGRcmZo.js} +1 -1
- package/dist/{d-CsVGcKMF.js → d-Cj0sOW2z.js} +1 -1
- package/dist/{data-grid-overlay-editor-DNJ47Cbc.js → data-grid-overlay-editor-BSk6h0Se.js} +1 -1
- package/dist/{diff-CBikYCUF.js → diff-B_hUkiat.js} +1 -1
- package/dist/{dist-Df0wKI0F.js → dist-BK4Oj99o.js} +1 -1
- package/dist/{dist-BVGtK7Ht.js → dist-BLfKmR-l.js} +1 -1
- package/dist/{dist-B8D7McG3.js → dist-BMQf5zIS.js} +46 -46
- package/dist/{dist-C2KzV-vf.js → dist-BorMD-uX.js} +2 -2
- package/dist/{dist-Cs2FijYk.js → dist-BuaRHxOc.js} +2 -2
- package/dist/{dist-DPcEtqmG.js → dist-Bvs24R_E.js} +47 -47
- package/dist/{dist-lA1Cttkb.js → dist-C8fAKSH1.js} +41 -41
- package/dist/{dist-DszxuxS1.js → dist-CLdpGQVr.js} +2 -2
- package/dist/{dist-CO1AwwG_.js → dist-CN8zI-XC.js} +209 -209
- package/dist/{dist-D1PpnuZB.js → dist-CN_BeG2I.js} +1 -1
- package/dist/{dist-CPGxfVGX.js → dist-CSJ0MDRw.js} +1 -1
- package/dist/{dist-Cm3iAFMD.js → dist-CSbh1PNP.js} +3 -3
- package/dist/{dist-9x1ZRe-e.js → dist-Cg7gzw-a.js} +2 -2
- package/dist/{dist-B1vYLK28.js → dist-CkTTIdBe.js} +345 -345
- package/dist/{dist-BRxfaJgs.js → dist-CrSP_H1M.js} +296 -296
- package/dist/{dist-C2wDlYdD.js → dist-D-wwqlzJ.js} +2 -2
- package/dist/{dist-BtKIs9N-.js → dist-D6d86eNJ.js} +1 -1
- package/dist/{dist-DHOTQar0.js → dist-DBtSl3sf.js} +1 -1
- package/dist/{dist-KzZ7WELx.js → dist-DiDibOYr.js} +120 -120
- package/dist/{dist-Kxgjxakw.js → dist-DoE4XJBC.js} +1277 -1222
- package/dist/{dist-BHCHt1NI.js → dist-F8Ep36rk.js} +1 -1
- package/dist/{dist-C8xMLVYi.js → dist-OR1OnN-y.js} +44 -44
- package/dist/{dist-1HDa70oE.js → dist-PXYI_yuP.js} +3 -3
- package/dist/{dist-CMh_W4y4.js → dist-diIx5qJW.js} +2 -2
- package/dist/{dockerfile-DJnSntVB.js → dockerfile-D0VKN500.js} +2 -2
- package/dist/{dtd-BHa4v0Bn.js → dtd-B8FGSWWe.js} +1 -1
- package/dist/{dylan-BypL2Zz8.js → dylan-DbIBYIrw.js} +1 -1
- package/dist/{ebnf-5guncNu-.js → ebnf-D-YbYLdk.js} +1 -1
- package/dist/{ecl-iRcVIKYZ.js → ecl-DBmkdWAd.js} +1 -1
- package/dist/{eiffel-BEqF9aU4.js → eiffel-CcWSDDzK.js} +1 -1
- package/dist/{elm-DYcfNE9c.js → elm-MC-b8a6C.js} +1 -1
- package/dist/{erlang-BtAuIoF0.js → erlang-AdO1-xtV.js} +1 -1
- package/dist/{error-entries-B9WBDeky.js → error-entries-xDl6bkdA.js} +1 -1
- package/dist/{esm-BElI3qKH.js → esm-D2gTsXEV.js} +579 -579
- package/dist/{esm-h8f7-1CJ.js → esm-DAVrGVKP.js} +378 -372
- package/dist/{factor-3nzOwLuN.js → factor-Ys-13HOP.js} +2 -2
- package/dist/{fcl-C90TGnJJ.js → fcl-DnwditDr.js} +1 -1
- package/dist/{feedback-button-CB0n7_Z_.js → feedback-button-FrFcb6OR.js} +4 -4
- package/dist/{forth-DEaRrLUi.js → forth-DiMuIXFe.js} +1 -1
- package/dist/{fortran-Bv6JRUjY.js → fortran-hkrF2eM4.js} +1 -1
- package/dist/{gas-JNerWj3-.js → gas-DlhqN9k8.js} +1 -1
- package/dist/{gherkin-CSrl-H70.js → gherkin-0SlhEZ3t.js} +1 -1
- package/dist/{glide-data-editor-CpB2Gr6x.js → glide-data-editor-CuoQJ61m.js} +3 -3
- package/dist/{globals-BlE_HgkQ.js → globals-k8-_3_Ks.js} +1 -1
- package/dist/{groovy-X7euO_vE.js → groovy-YhcTMyvX.js} +1 -1
- package/dist/{haskell-C48Z70Az.js → haskell-CodLxrtT.js} +1 -1
- package/dist/{haxe-CAUWMmwR.js → haxe-CiRWNFkH.js} +1 -1
- package/dist/{html-to-image-Btymxku9.js → html-to-image-Da6rA8p1.js} +3 -3
- package/dist/{http-BrSBnhDH.js → http-Bh6HhdNR.js} +1 -1
- package/dist/{idl-BXuPleZv.js → idl-DZgBq75I.js} +1 -1
- package/dist/{javascript-B4EPWJf_.js → javascript-BfNytHiM.js} +1 -1
- package/dist/{julia-ke9Kh8b7.js → julia--tLIAG7q.js} +1 -1
- package/dist/{livescript-Ce4uqGAC.js → livescript-CVPfYnY_.js} +1 -1
- package/dist/{lua-D6fti_Jk.js → lua-4Fa-T-qq.js} +1 -1
- package/dist/main.js +17 -17
- package/dist/{mathematica-DcEpZ3Vj.js → mathematica-CtYAy6GG.js} +1 -1
- package/dist/{mbox-DFBbOu0X.js → mbox-D0w9Ah1C.js} +1 -1
- package/dist/{mirc-CqeibO3N.js → mirc-De9aSAZM.js} +1 -1
- package/dist/{mllike-D54QZYTP.js → mllike-BbugeaY_.js} +1 -1
- package/dist/{modelica-DuML2-8V.js → modelica-BjJwWw1F.js} +1 -1
- package/dist/{mscgen-CJmKwp3b.js → mscgen-DwiRH5ma.js} +1 -1
- package/dist/{mumps-DaVgFtkd.js → mumps--plbDM9o.js} +1 -1
- package/dist/{nginx-BXN1rqI0.js → nginx-C4Df7REc.js} +1 -1
- package/dist/{nsis-CMfRqf0V.js → nsis-fiiOqLc3.js} +7 -7
- package/dist/{ntriples-BiOGlMDR.js → ntriples-jV77I4k8.js} +1 -1
- package/dist/{number-overlay-editor-BU7cNcgZ.js → number-overlay-editor-E35zNlPn.js} +1 -1
- package/dist/{octave-CgVnzxKk.js → octave-Cztd01tF.js} +1 -1
- package/dist/{oz-B2mky97X.js → oz-Bl8o3BDl.js} +1 -1
- package/dist/{pascal-BoZhBf6s.js → pascal-BO5JqysR.js} +1 -1
- package/dist/{perl-DjzMqXtt.js → perl-Drlh9s6m.js} +1 -1
- package/dist/{pig-B2mB-01d.js → pig-BWGR8wZw.js} +1 -1
- package/dist/{powershell-D0zT88Aj.js → powershell-DT99xlz_.js} +1 -1
- package/dist/{process-output-CTQmCUD0.js → process-output-_4TxDper.js} +2 -2
- package/dist/{properties-3_5qCgOj.js → properties-Q-rkxld0.js} +1 -1
- package/dist/{protobuf-Dgoxfi1H.js → protobuf-DKyWZbs7.js} +1 -1
- package/dist/{pug-CNRdd8oG.js → pug-42ZJUbEC.js} +2 -2
- package/dist/{puppet-DzILxZfz.js → puppet-B4UozHhh.js} +1 -1
- package/dist/{python-AfVdMn_l.js → python-DREjAV__.js} +1 -1
- package/dist/{q-C6p-CGWh.js → q-Bi63IpBO.js} +1 -1
- package/dist/{r-CzKF1D2X.js → r-DSwXWKMR.js} +1 -1
- package/dist/{reveal-component-BA2iHr4c.js → reveal-component-CgKwVd08.js} +3 -3
- package/dist/{rpm-Bx7FkjTO.js → rpm-DPb1DeKM.js} +1 -1
- package/dist/{ruby-BMzgq2bf.js → ruby-U7fZA4DP.js} +2 -2
- package/dist/{sas-ClGVnK3F.js → sas-CLk1JpTn.js} +1 -1
- package/dist/{scheme-C0MXqXep.js → scheme-CT-2k2Tl.js} +1 -1
- package/dist/{shell-CiQZv6oG.js → shell-BLO7fcsk.js} +1 -1
- package/dist/{sieve-BiIMePvV.js → sieve-nG3C7WNH.js} +1 -1
- package/dist/{simple-mode-8ETW2RS6.js → simple-mode-C683Q7or.js} +1 -1
- package/dist/{smalltalk-9-llftyG.js → smalltalk-BROcZybA.js} +1 -1
- package/dist/{solr-CxCKEuwq.js → solr-mVltHNc5.js} +1 -1
- package/dist/{sparql-BRmy7pzx.js → sparql-Cv1Ksr4v.js} +1 -1
- package/dist/{spreadsheet-UCNUIGsn.js → spreadsheet-BwTnp5K_.js} +1 -1
- package/dist/{sql-D0hSGZ-H.js → sql-CjLt0122.js} +1 -1
- package/dist/{stex-UeT_Aofp.js → stex-Btf3omL8.js} +1 -1
- package/dist/{stylus-Fi4waA2H.js → stylus-Dt4VvLXL.js} +1 -1
- package/dist/{swift-NqPyaBye.js → swift-DHsn_CVI.js} +1 -1
- package/dist/{tcl-B4f0xfmM.js → tcl-CV0OLBOl.js} +1 -1
- package/dist/{textile-CnNbnPTe.js → textile-D320oKVM.js} +1 -1
- package/dist/{tiddlywiki-CSGSOg38.js → tiddlywiki-BVVNvfy4.js} +1 -1
- package/dist/{tiki-9F02WBA6.js → tiki-BF2aDPlB.js} +1 -1
- package/dist/{toml-AesZ6RBt.js → toml-CaUN7UHo.js} +1 -1
- package/dist/{troff-DlfvveK1.js → troff-DQUFcClZ.js} +1 -1
- package/dist/{ttcn--YVSkGs_.js → ttcn-CQL1duJS.js} +1 -1
- package/dist/{ttcn-cfg-Bb1Knl_J.js → ttcn-cfg-BMmEFJPu.js} +1 -1
- package/dist/{turtle-DC24v1bz.js → turtle-C3esgsRr.js} +1 -1
- package/dist/{vb-Dpc8vhvF.js → vb-RK1eDXRl.js} +1 -1
- package/dist/{vbscript-B-Y1XnZe.js → vbscript-BCOeM0de.js} +1 -1
- package/dist/{velocity-DHMu9kc-.js → velocity-CZKOFbOI.js} +1 -1
- package/dist/{verilog-DhiEaoUl.js → verilog-DqQTzVn8.js} +1 -1
- package/dist/{vhdl-D4X23YKO.js → vhdl-vQr2bfmi.js} +1 -1
- package/dist/{webidl-SyzNxWpJ.js → webidl-DzX7N40e.js} +1 -1
- package/dist/{xquery-BC2R4Hk6.js → xquery-Cw_Q_hGR.js} +1 -1
- package/dist/{yacas-DLNXPMmH.js → yacas-DiC4jJBE.js} +1 -1
- package/dist/{z80-CDXWHOO6.js → z80-CUOQDEJO.js} +1 -1
- package/package.json +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
-
import { $ as t,
|
|
3
|
-
import { n as h } from "./dist-
|
|
2
|
+
import { $ as t, At as n, H as r, I as i, O as a, V as o, X as s, i as c, n as l, r as u, s as d, u as f, v as p, w as m } from "./dist-DoE4XJBC.js";
|
|
3
|
+
import { n as h } from "./dist-BMQf5zIS.js";
|
|
4
4
|
//#region ../node_modules/.pnpm/@codemirror+lang-jinja@6.0.0/node_modules/@codemirror/lang-jinja/dist/index.js
|
|
5
5
|
var g = /* @__PURE__ */ e({
|
|
6
6
|
closePercentBrace: () => z,
|
|
@@ -213,7 +213,7 @@ var E = /*@__PURE__*/ T("endraw", S, x), D = {
|
|
|
213
213
|
3,
|
|
214
214
|
4,
|
|
215
215
|
5,
|
|
216
|
-
/*@__PURE__*/ new
|
|
216
|
+
/*@__PURE__*/ new c("b~RPstU~XP#q#r[~aO$Q~~", 17, 173)
|
|
217
217
|
],
|
|
218
218
|
topRules: { Template: [0, 5] },
|
|
219
219
|
specialized: [{
|
|
@@ -233,35 +233,35 @@ function A(e, t) {
|
|
|
233
233
|
}
|
|
234
234
|
var j = /*@__PURE__*/ A("abs attr batch capitalize center default dictsort escape filesizeformat first float forceescape format groupby indent int items join last length list lower map max min pprint random reject rejectattr replace reverse round safe select selectattr slice sort string striptags sum title tojson trim truncate unique upper urlencode urlize wordcount wordwrap xmlattr", "function"), M = /*@__PURE__*/ A("boolean callable defined divisibleby eq escaped even filter float ge gt in integer iterable le lower lt mapping ne none number odd sameas sequence string test undefined upper range lipsum dict joiner namespace", "function"), N = /*@__PURE__*/ A("loop super self true false varargs kwargs caller name arguments catch_kwargs catch_varargs caller", "keyword"), P = /*@__PURE__*/ M.concat(N), F = /*@__PURE__*/ A("raw endraw filter endfilter trans pluralize endtrans with endwith autoescape endautoescape if elif else endif for endfor call endcall block endblock set endset macro endmacro import include break continue debug do extends", "keyword");
|
|
235
235
|
function I(e) {
|
|
236
|
-
let { state: t, pos: n } = e,
|
|
237
|
-
if (
|
|
236
|
+
let { state: t, pos: n } = e, r = i(t).resolveInner(n, -1).enterUnfinishedNodesBefore(n), a = r.childBefore(n)?.name || r.name;
|
|
237
|
+
if (r.name == "FilterName") return {
|
|
238
238
|
type: "filter",
|
|
239
|
-
node:
|
|
239
|
+
node: r
|
|
240
240
|
};
|
|
241
241
|
if (e.explicit && (a == "FilterOp" || a == "filter")) return { type: "filter" };
|
|
242
|
-
if (
|
|
242
|
+
if (r.name == "TagName") return {
|
|
243
243
|
type: "tag",
|
|
244
|
-
node:
|
|
244
|
+
node: r
|
|
245
245
|
};
|
|
246
246
|
if (e.explicit && a == "{%") return { type: "tag" };
|
|
247
|
-
if (
|
|
247
|
+
if (r.name == "PropertyName" && r.parent.name == "MemberExpression") return {
|
|
248
248
|
type: "prop",
|
|
249
|
-
node:
|
|
250
|
-
target:
|
|
249
|
+
node: r,
|
|
250
|
+
target: r.parent
|
|
251
251
|
};
|
|
252
|
-
if (
|
|
252
|
+
if (r.name == "." && r.parent.name == "MemberExpression") return {
|
|
253
253
|
type: "prop",
|
|
254
|
-
target:
|
|
254
|
+
target: r.parent
|
|
255
255
|
};
|
|
256
|
-
if (
|
|
256
|
+
if (r.name == "MemberExpression" && a == ".") return {
|
|
257
257
|
type: "prop",
|
|
258
|
-
target:
|
|
258
|
+
target: r
|
|
259
259
|
};
|
|
260
|
-
if (
|
|
260
|
+
if (r.name == "VariableName") return {
|
|
261
261
|
type: "expr",
|
|
262
|
-
from:
|
|
262
|
+
from: r.from
|
|
263
263
|
};
|
|
264
|
-
if (
|
|
264
|
+
if (r.name == "Comment" || r.name == "StringLiteral" || r.name == "NumberLiteral") return null;
|
|
265
265
|
let o = e.matchBefore(/[\w\u00c0-\uffff]+$/);
|
|
266
266
|
return o ? {
|
|
267
267
|
type: "expr",
|
|
@@ -297,13 +297,13 @@ function R(e = {}) {
|
|
|
297
297
|
} : null;
|
|
298
298
|
};
|
|
299
299
|
}
|
|
300
|
-
var z = /*@__PURE__*/ t.inputHandler.of((e, t,
|
|
300
|
+
var z = /*@__PURE__*/ t.inputHandler.of((e, t, r, i) => i != "%" || t != r || e.state.doc.sliceString(t - 1, r + 1) != "{}" ? !1 : (e.dispatch(e.state.changeByRange((e) => ({
|
|
301
301
|
changes: {
|
|
302
302
|
from: e.from,
|
|
303
303
|
to: e.to,
|
|
304
304
|
insert: "%%"
|
|
305
305
|
},
|
|
306
|
-
range:
|
|
306
|
+
range: n.cursor(e.from + 1)
|
|
307
307
|
})), {
|
|
308
308
|
scrollIntoView: !0,
|
|
309
309
|
userEvent: "input.type"
|
|
@@ -317,33 +317,33 @@ function B(e) {
|
|
|
317
317
|
var V = /*@__PURE__*/ d.define({
|
|
318
318
|
name: "jinja",
|
|
319
319
|
parser: /*@__PURE__*/ k.configure({ props: [
|
|
320
|
-
/*@__PURE__*/
|
|
321
|
-
"TagName raw endraw filter endfilter as trans pluralize endtrans with endwith autoescape endautoescape":
|
|
322
|
-
"required scoped recursive with without context ignore missing":
|
|
323
|
-
self:
|
|
324
|
-
"loop super": /*@__PURE__*/
|
|
325
|
-
"if elif else endif for endfor call endcall":
|
|
326
|
-
"block endblock set endset macro endmacro import from include":
|
|
327
|
-
"Comment/...":
|
|
328
|
-
VariableName:
|
|
329
|
-
Definition: /*@__PURE__*/
|
|
330
|
-
PropertyName:
|
|
331
|
-
FilterName: /*@__PURE__*/
|
|
332
|
-
ArithOp:
|
|
333
|
-
AssignOp:
|
|
334
|
-
"not and or":
|
|
335
|
-
CompareOp:
|
|
336
|
-
"in is":
|
|
337
|
-
"FilterOp ConcatOp":
|
|
338
|
-
StringLiteral:
|
|
339
|
-
NumberLiteral:
|
|
340
|
-
BooleanLiteral:
|
|
341
|
-
"{% %} {# #} {{ }} { }":
|
|
342
|
-
"( )":
|
|
343
|
-
".":
|
|
344
|
-
": , .":
|
|
320
|
+
/*@__PURE__*/ o({
|
|
321
|
+
"TagName raw endraw filter endfilter as trans pluralize endtrans with endwith autoescape endautoescape": r.keyword,
|
|
322
|
+
"required scoped recursive with without context ignore missing": r.modifier,
|
|
323
|
+
self: r.self,
|
|
324
|
+
"loop super": /*@__PURE__*/ r.standard(r.variableName),
|
|
325
|
+
"if elif else endif for endfor call endcall": r.controlKeyword,
|
|
326
|
+
"block endblock set endset macro endmacro import from include": r.definitionKeyword,
|
|
327
|
+
"Comment/...": r.blockComment,
|
|
328
|
+
VariableName: r.variableName,
|
|
329
|
+
Definition: /*@__PURE__*/ r.definition(r.variableName),
|
|
330
|
+
PropertyName: r.propertyName,
|
|
331
|
+
FilterName: /*@__PURE__*/ r.special(r.variableName),
|
|
332
|
+
ArithOp: r.arithmeticOperator,
|
|
333
|
+
AssignOp: r.definitionOperator,
|
|
334
|
+
"not and or": r.logicOperator,
|
|
335
|
+
CompareOp: r.compareOperator,
|
|
336
|
+
"in is": r.operatorKeyword,
|
|
337
|
+
"FilterOp ConcatOp": r.operator,
|
|
338
|
+
StringLiteral: r.string,
|
|
339
|
+
NumberLiteral: r.number,
|
|
340
|
+
BooleanLiteral: r.bool,
|
|
341
|
+
"{% %} {# #} {{ }} { }": r.brace,
|
|
342
|
+
"( )": r.paren,
|
|
343
|
+
".": r.derefOperator,
|
|
344
|
+
": , .": r.punctuation
|
|
345
345
|
}),
|
|
346
|
-
/*@__PURE__*/
|
|
346
|
+
/*@__PURE__*/ a.add({
|
|
347
347
|
Tag: /*@__PURE__*/ p({ closing: "%}" }),
|
|
348
348
|
"IfStatement ForStatement": /*@__PURE__*/ B(/^\s*(\{%-?\s*)?(endif|endfor|else|elif)\b/),
|
|
349
349
|
Statement: /*@__PURE__*/ B(/^\s*(\{%-?\s*)?end\w/)
|
|
@@ -359,7 +359,7 @@ var V = /*@__PURE__*/ d.define({
|
|
|
359
359
|
languageData: { indentOnInput: /^\s*{%-?\s*(?:end|elif|else)$/ }
|
|
360
360
|
}), H = /*@__PURE__*/ h();
|
|
361
361
|
function U(e) {
|
|
362
|
-
return V.configure({ wrap:
|
|
362
|
+
return V.configure({ wrap: s((t) => t.type.isTop ? {
|
|
363
363
|
parser: e.parser,
|
|
364
364
|
overlay: (e) => e.name == "Text" || e.name == "RawText"
|
|
365
365
|
} : null) }, "jinja");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
-
import { $ as t,
|
|
2
|
+
import { $ as t, At as n, H as r, I as i, O as a, V as o, m as s, n as c, r as l, s as u, t as d, u as f, w as p } from "./dist-DoE4XJBC.js";
|
|
3
3
|
//#region ../node_modules/.pnpm/@lezer+xml@1.0.6/node_modules/@lezer/xml/dist/index.js
|
|
4
4
|
var m = 1, h = 2, g = 3, _ = 4, v = 5, y = 36, b = 37, x = 38, S = 11, C = 13;
|
|
5
5
|
function w(e) {
|
|
@@ -59,19 +59,19 @@ function N(e, t) {
|
|
|
59
59
|
r && n.acceptToken(e);
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
|
-
var P = N(y, "-->"), F = N(b, "?>"), I = N(x, "]]>"), L =
|
|
63
|
-
Text:
|
|
64
|
-
"StartTag StartCloseTag EndTag SelfCloseEndTag":
|
|
65
|
-
TagName:
|
|
66
|
-
"MismatchedCloseTag/TagName": [
|
|
67
|
-
AttributeName:
|
|
68
|
-
AttributeValue:
|
|
69
|
-
Is:
|
|
70
|
-
"EntityReference CharacterReference":
|
|
71
|
-
Comment:
|
|
72
|
-
ProcessingInst:
|
|
73
|
-
DoctypeDecl:
|
|
74
|
-
Cdata:
|
|
62
|
+
var P = N(y, "-->"), F = N(b, "?>"), I = N(x, "]]>"), L = o({
|
|
63
|
+
Text: r.content,
|
|
64
|
+
"StartTag StartCloseTag EndTag SelfCloseEndTag": r.angleBracket,
|
|
65
|
+
TagName: r.tagName,
|
|
66
|
+
"MismatchedCloseTag/TagName": [r.tagName, r.invalid],
|
|
67
|
+
AttributeName: r.attributeName,
|
|
68
|
+
AttributeValue: r.attributeValue,
|
|
69
|
+
Is: r.definitionOperator,
|
|
70
|
+
"EntityReference CharacterReference": r.character,
|
|
71
|
+
Comment: r.blockComment,
|
|
72
|
+
ProcessingInst: r.processingInstruction,
|
|
73
|
+
DoctypeDecl: r.documentMeta,
|
|
74
|
+
Cdata: r.special(r.string)
|
|
75
75
|
}), R = l.deserialize({
|
|
76
76
|
version: 14,
|
|
77
77
|
states: ",lOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DT'#DTOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C|'#C|O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C}'#C}O$dOrO,59^OOOP,59^,59^OOOS'#DO'#DOO$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOOP1G.l1G.lOOOO-E6v-E6vO%UO!bO1G.oO%UO!bO1G.oO%dOpO'#CkO%lO!bO'#CyO%zO!bO1G.oOOOP1G.o1G.oOOOP1G.w1G.wOOOP-E6z-E6zOOOP1G.m1G.mO&VOpO,59ZO&_OpO,59ZOOOQ-E6{-E6{OOOP1G.x1G.xOOOS-E6|-E6|OOOP1G.y1G.yO&gOpO1G.zO&gOpO1G.zOOOP1G.z1G.zO&oO!bO7+$ZO&}O!bO7+$ZOOOP7+$Z7+$ZOOOP7+$c7+$cO'YOpO,59VO'bOpO,59VO'mO!bO,59eOOOO-E6w-E6wO'{OpO1G.uO'{OpO1G.uOOOP1G.u1G.uO(TOpO7+$fOOOP7+$f7+$fO(]O!bO<<GuOOOP<<Gu<<GuOOOP<<G}<<G}O'bOpO1G.qO'bOpO1G.qO(hO#tO'#CnO(vO&jO'#CnOOOO1G.q1G.qO)UOpO7+$aOOOP7+$a7+$aOOOP<<HQ<<HQOOOPAN=aAN=aOOOPAN=iAN=iO'bOpO7+$]OOOO7+$]7+$]OOOO'#Cz'#CzO)^O#tO,59YOOOO,59Y,59YOOOO'#C{'#C{O)lO&jO,59YOOOP<<G{<<G{OOOO<<Gw<<GwOOOO-E6x-E6xOOOO1G.t1G.tOOOO-E6y-E6y",
|
|
@@ -149,11 +149,11 @@ function U(e) {
|
|
|
149
149
|
return null;
|
|
150
150
|
}
|
|
151
151
|
function W(e, t) {
|
|
152
|
-
let n =
|
|
153
|
-
for (let e = n; !
|
|
154
|
-
if (
|
|
155
|
-
let e =
|
|
156
|
-
if (n.name == "TagName") return
|
|
152
|
+
let n = i(e).resolveInner(t, -1), r = null;
|
|
153
|
+
for (let e = n; !r && e.parent; e = e.parent) (e.name == "OpenTag" || e.name == "CloseTag" || e.name == "SelfClosingTag" || e.name == "MismatchedCloseTag") && (r = e);
|
|
154
|
+
if (r && (r.to > t || r.lastChild.type.isError)) {
|
|
155
|
+
let e = r.parent;
|
|
156
|
+
if (n.name == "TagName") return r.name == "CloseTag" || r.name == "MismatchedCloseTag" ? {
|
|
157
157
|
type: "closeTag",
|
|
158
158
|
from: n.from,
|
|
159
159
|
context: e
|
|
@@ -165,30 +165,30 @@ function W(e, t) {
|
|
|
165
165
|
if (n.name == "AttributeName") return {
|
|
166
166
|
type: "attrName",
|
|
167
167
|
from: n.from,
|
|
168
|
-
context:
|
|
168
|
+
context: r
|
|
169
169
|
};
|
|
170
170
|
if (n.name == "AttributeValue") return {
|
|
171
171
|
type: "attrValue",
|
|
172
172
|
from: n.from,
|
|
173
|
-
context:
|
|
173
|
+
context: r
|
|
174
174
|
};
|
|
175
|
-
let
|
|
176
|
-
return
|
|
175
|
+
let i = n == r || n.name == "Attribute" ? n.childBefore(t) : n;
|
|
176
|
+
return i?.name == "StartTag" ? {
|
|
177
177
|
type: "openTag",
|
|
178
178
|
from: t,
|
|
179
179
|
context: U(e)
|
|
180
|
-
} :
|
|
180
|
+
} : i?.name == "StartCloseTag" && i.to <= t ? {
|
|
181
181
|
type: "closeTag",
|
|
182
182
|
from: t,
|
|
183
183
|
context: e
|
|
184
|
-
} :
|
|
184
|
+
} : i?.name == "Is" ? {
|
|
185
185
|
type: "attrValue",
|
|
186
186
|
from: t,
|
|
187
|
-
context:
|
|
188
|
-
} :
|
|
187
|
+
context: r
|
|
188
|
+
} : i ? {
|
|
189
189
|
type: "attrName",
|
|
190
190
|
from: t,
|
|
191
|
-
context:
|
|
191
|
+
context: r
|
|
192
192
|
} : null;
|
|
193
193
|
}
|
|
194
194
|
if (n.name == "StartCloseTag") return {
|
|
@@ -309,7 +309,7 @@ function Y(e, t) {
|
|
|
309
309
|
var X = /*@__PURE__*/ u.define({
|
|
310
310
|
name: "xml",
|
|
311
311
|
parser: /*@__PURE__*/ R.configure({ props: [
|
|
312
|
-
/*@__PURE__*/
|
|
312
|
+
/*@__PURE__*/ a.add({
|
|
313
313
|
Element(e) {
|
|
314
314
|
let t = /^\s*<\//.test(e.textAfter);
|
|
315
315
|
return e.lineIndent(e.node.from) + (t ? 0 : e.unit);
|
|
@@ -344,12 +344,12 @@ function Q(e, t, n = e.length) {
|
|
|
344
344
|
let r = t.firstChild, i = r && r.getChild("TagName");
|
|
345
345
|
return i ? e.sliceString(i.from, Math.min(i.to, n)) : "";
|
|
346
346
|
}
|
|
347
|
-
var $ = /*@__PURE__*/ t.inputHandler.of((e, t,
|
|
348
|
-
if (e.composing || e.state.readOnly || t !=
|
|
349
|
-
let s =
|
|
350
|
-
let { head: t } = e,
|
|
351
|
-
if (
|
|
352
|
-
let n =
|
|
347
|
+
var $ = /*@__PURE__*/ t.inputHandler.of((e, t, r, a, o) => {
|
|
348
|
+
if (e.composing || e.state.readOnly || t != r || a != ">" && a != "/" || !X.isActiveAt(e.state, t, -1)) return !1;
|
|
349
|
+
let s = o(), { state: c } = s, l = c.changeByRange((e) => {
|
|
350
|
+
let { head: t } = e, r = c.doc.sliceString(t - 1, t) == a, o = i(c).resolveInner(t, -1), s;
|
|
351
|
+
if (r && a == ">" && o.name == "EndTag") {
|
|
352
|
+
let n = o.parent;
|
|
353
353
|
if (n.parent?.lastChild?.name != "CloseTag" && (s = Q(c.doc, n.parent, t))) return {
|
|
354
354
|
range: e,
|
|
355
355
|
changes: {
|
|
@@ -358,16 +358,16 @@ var $ = /*@__PURE__*/ t.inputHandler.of((e, t, n, i, a) => {
|
|
|
358
358
|
insert: `</${s}>`
|
|
359
359
|
}
|
|
360
360
|
};
|
|
361
|
-
} else if (
|
|
362
|
-
let e =
|
|
363
|
-
if (
|
|
364
|
-
let e = t + +(c.doc.sliceString(t, t + 1) === ">"),
|
|
361
|
+
} else if (r && a == "/" && o.name == "StartCloseTag") {
|
|
362
|
+
let e = o.parent;
|
|
363
|
+
if (o.from == t - 2 && e.lastChild?.name != "CloseTag" && (s = Q(c.doc, e, t))) {
|
|
364
|
+
let e = t + +(c.doc.sliceString(t, t + 1) === ">"), r = `${s}>`;
|
|
365
365
|
return {
|
|
366
|
-
range:
|
|
366
|
+
range: n.cursor(t + r.length, -1),
|
|
367
367
|
changes: {
|
|
368
368
|
from: t,
|
|
369
369
|
to: e,
|
|
370
|
-
insert:
|
|
370
|
+
insert: r
|
|
371
371
|
}
|
|
372
372
|
};
|
|
373
373
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
-
import { H as t, O as n, S as r, V as i, h as a, n as o, r as s, s as ee, t as te, u as c, w as l } from "./dist-
|
|
3
|
-
import { r as u } from "./dist-
|
|
2
|
+
import { H as t, O as n, S as r, V as i, h as a, n as o, r as s, s as ee, t as te, u as c, w as l } from "./dist-DoE4XJBC.js";
|
|
3
|
+
import { r as u } from "./dist-CN_BeG2I.js";
|
|
4
4
|
//#region ../node_modules/.pnpm/@lezer+sass@1.1.0/node_modules/@lezer/sass/dist/index.js
|
|
5
5
|
var d = 168, f = 169, ne = 170, re = 1, p = 2, m = 3, h = 171, g = 172, _ = 4, v = 173, y = 5, b = 174, x = 175, S = 176, C = 177, w = 6, T = 7, E = 8, D = 9, O = 0, k = [
|
|
6
6
|
9,
|