@gui-chat-plugin/mindmap 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,549 @@
1
+ //#region node_modules/dompurify/dist/purify.es.mjs
2
+ var { entries: e, setPrototypeOf: t, isFrozen: n, getPrototypeOf: r, getOwnPropertyDescriptor: i } = Object, { freeze: a, seal: o, create: s } = Object, { apply: c, construct: l } = typeof Reflect < "u" && Reflect;
3
+ a ||= function(e) {
4
+ return e;
5
+ }, o ||= function(e) {
6
+ return e;
7
+ }, c ||= function(e, t) {
8
+ var n = [...arguments].slice(2);
9
+ return e.apply(t, n);
10
+ }, l ||= function(e) {
11
+ return new e(...[...arguments].slice(1));
12
+ };
13
+ var u = v(Array.prototype.forEach), d = v(Array.prototype.lastIndexOf), ee = v(Array.prototype.pop), f = v(Array.prototype.push), te = v(Array.prototype.splice), p = v(String.prototype.toLowerCase), ne = v(String.prototype.toString), re = v(String.prototype.match), m = v(String.prototype.replace), ie = v(String.prototype.indexOf), ae = v(String.prototype.trim), h = v(Object.prototype.hasOwnProperty), g = v(RegExp.prototype.test), _ = oe(TypeError);
14
+ function v(e) {
15
+ return function(t) {
16
+ t instanceof RegExp && (t.lastIndex = 0);
17
+ var n = [...arguments].slice(1);
18
+ return c(e, t, n);
19
+ };
20
+ }
21
+ function oe(e) {
22
+ return function() {
23
+ return l(e, [...arguments]);
24
+ };
25
+ }
26
+ function y(e, r) {
27
+ let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : p;
28
+ t && t(e, null);
29
+ let a = r.length;
30
+ for (; a--;) {
31
+ let t = r[a];
32
+ if (typeof t == "string") {
33
+ let e = i(t);
34
+ e !== t && (n(r) || (r[a] = e), t = e);
35
+ }
36
+ e[t] = !0;
37
+ }
38
+ return e;
39
+ }
40
+ function b(e) {
41
+ for (let t = 0; t < e.length; t++) h(e, t) || (e[t] = null);
42
+ return e;
43
+ }
44
+ function x(t) {
45
+ let n = s(null);
46
+ for (let [r, i] of e(t)) h(t, r) && (Array.isArray(i) ? n[r] = b(i) : i && typeof i == "object" && i.constructor === Object ? n[r] = x(i) : n[r] = i);
47
+ return n;
48
+ }
49
+ function S(e, t) {
50
+ for (; e !== null;) {
51
+ let n = i(e, t);
52
+ if (n) {
53
+ if (n.get) return v(n.get);
54
+ if (typeof n.value == "function") return v(n.value);
55
+ }
56
+ e = r(e);
57
+ }
58
+ function n() {
59
+ return null;
60
+ }
61
+ return n;
62
+ }
63
+ var se = a(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")), ce = a(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), le = a([
64
+ "feBlend",
65
+ "feColorMatrix",
66
+ "feComponentTransfer",
67
+ "feComposite",
68
+ "feConvolveMatrix",
69
+ "feDiffuseLighting",
70
+ "feDisplacementMap",
71
+ "feDistantLight",
72
+ "feDropShadow",
73
+ "feFlood",
74
+ "feFuncA",
75
+ "feFuncB",
76
+ "feFuncG",
77
+ "feFuncR",
78
+ "feGaussianBlur",
79
+ "feImage",
80
+ "feMerge",
81
+ "feMergeNode",
82
+ "feMorphology",
83
+ "feOffset",
84
+ "fePointLight",
85
+ "feSpecularLighting",
86
+ "feSpotLight",
87
+ "feTile",
88
+ "feTurbulence"
89
+ ]), ue = a([
90
+ "animate",
91
+ "color-profile",
92
+ "cursor",
93
+ "discard",
94
+ "font-face",
95
+ "font-face-format",
96
+ "font-face-name",
97
+ "font-face-src",
98
+ "font-face-uri",
99
+ "foreignobject",
100
+ "hatch",
101
+ "hatchpath",
102
+ "mesh",
103
+ "meshgradient",
104
+ "meshpatch",
105
+ "meshrow",
106
+ "missing-glyph",
107
+ "script",
108
+ "set",
109
+ "solidcolor",
110
+ "unknown",
111
+ "use"
112
+ ]), de = a(/* @__PURE__ */ "math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")), fe = a([
113
+ "maction",
114
+ "maligngroup",
115
+ "malignmark",
116
+ "mlongdiv",
117
+ "mscarries",
118
+ "mscarry",
119
+ "msgroup",
120
+ "mstack",
121
+ "msline",
122
+ "msrow",
123
+ "semantics",
124
+ "annotation",
125
+ "annotation-xml",
126
+ "mprescripts",
127
+ "none"
128
+ ]), pe = a(["#text"]), me = a(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns.slot".split(".")), he = a(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), ge = a(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnsalign.columnlines.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lspace.lquote.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), _e = a([
129
+ "xlink:href",
130
+ "xml:id",
131
+ "xlink:title",
132
+ "xml:space",
133
+ "xmlns:xlink"
134
+ ]), ve = o(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ye = o(/<%[\w\W]*|[\w\W]*%>/gm), be = o(/\$\{[\w\W]*/gm), C = o(/^data-[\-\w.\u00B7-\uFFFF]+$/), w = o(/^aria-[\-\w]+$/), xe = o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Se = o(/^(?:\w+script|data):/i), Ce = o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), we = o(/^html$/i), Te = o(/^[a-z][.\w]*(-[.\w]+)+$/i), Ee = /* @__PURE__ */ Object.freeze({
135
+ __proto__: null,
136
+ ARIA_ATTR: w,
137
+ ATTR_WHITESPACE: Ce,
138
+ CUSTOM_ELEMENT: Te,
139
+ DATA_ATTR: C,
140
+ DOCTYPE_NAME: we,
141
+ ERB_EXPR: ye,
142
+ IS_ALLOWED_URI: xe,
143
+ IS_SCRIPT_OR_DATA: Se,
144
+ MUSTACHE_EXPR: ve,
145
+ TMPLIT_EXPR: be
146
+ }), T = {
147
+ element: 1,
148
+ attribute: 2,
149
+ text: 3,
150
+ cdataSection: 4,
151
+ entityReference: 5,
152
+ entityNode: 6,
153
+ progressingInstruction: 7,
154
+ comment: 8,
155
+ document: 9,
156
+ documentType: 10,
157
+ documentFragment: 11,
158
+ notation: 12
159
+ }, De = function() {
160
+ return typeof window > "u" ? null : window;
161
+ }, Oe = function(e, t) {
162
+ if (typeof e != "object" || typeof e.createPolicy != "function") return null;
163
+ let n = null, r = "data-tt-policy-suffix";
164
+ t && t.hasAttribute(r) && (n = t.getAttribute(r));
165
+ let i = "dompurify" + (n ? "#" + n : "");
166
+ try {
167
+ return e.createPolicy(i, {
168
+ createHTML(e) {
169
+ return e;
170
+ },
171
+ createScriptURL(e) {
172
+ return e;
173
+ }
174
+ });
175
+ } catch {
176
+ return console.warn("TrustedTypes policy " + i + " could not be created."), null;
177
+ }
178
+ }, ke = function() {
179
+ return {
180
+ afterSanitizeAttributes: [],
181
+ afterSanitizeElements: [],
182
+ afterSanitizeShadowDOM: [],
183
+ beforeSanitizeAttributes: [],
184
+ beforeSanitizeElements: [],
185
+ beforeSanitizeShadowDOM: [],
186
+ uponSanitizeAttribute: [],
187
+ uponSanitizeElement: [],
188
+ uponSanitizeShadowNode: []
189
+ };
190
+ };
191
+ function Ae() {
192
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : De(), n = (e) => Ae(e);
193
+ if (n.version = "3.3.3", n.removed = [], !t || !t.document || t.document.nodeType !== T.document || !t.Element) return n.isSupported = !1, n;
194
+ let { document: r } = t, i = r, o = i.currentScript, { DocumentFragment: c, HTMLTemplateElement: l, Node: v, Element: oe, NodeFilter: b, NamedNodeMap: ve = t.NamedNodeMap || t.MozNamedAttrMap, HTMLFormElement: ye, DOMParser: be, trustedTypes: C } = t, w = oe.prototype, Se = S(w, "cloneNode"), Ce = S(w, "remove"), Te = S(w, "nextSibling"), je = S(w, "childNodes"), E = S(w, "parentNode");
195
+ if (typeof l == "function") {
196
+ let e = r.createElement("template");
197
+ e.content && e.content.ownerDocument && (r = e.content.ownerDocument);
198
+ }
199
+ let D, O = "", { implementation: Me, createNodeIterator: Ne, createDocumentFragment: Pe, getElementsByTagName: Fe } = r, { importNode: Ie } = i, k = ke();
200
+ n.isSupported = typeof e == "function" && typeof E == "function" && Me && Me.createHTMLDocument !== void 0;
201
+ let { MUSTACHE_EXPR: Le, ERB_EXPR: Re, TMPLIT_EXPR: ze, DATA_ATTR: Be, ARIA_ATTR: Ve, IS_SCRIPT_OR_DATA: He, ATTR_WHITESPACE: Ue, CUSTOM_ELEMENT: We } = Ee, { IS_ALLOWED_URI: Ge } = Ee, A = null, Ke = y({}, [
202
+ ...se,
203
+ ...ce,
204
+ ...le,
205
+ ...de,
206
+ ...pe
207
+ ]), j = null, qe = y({}, [
208
+ ...me,
209
+ ...he,
210
+ ...ge,
211
+ ..._e
212
+ ]), M = Object.seal(s(null, {
213
+ tagNameCheck: {
214
+ writable: !0,
215
+ configurable: !1,
216
+ enumerable: !0,
217
+ value: null
218
+ },
219
+ attributeNameCheck: {
220
+ writable: !0,
221
+ configurable: !1,
222
+ enumerable: !0,
223
+ value: null
224
+ },
225
+ allowCustomizedBuiltInElements: {
226
+ writable: !0,
227
+ configurable: !1,
228
+ enumerable: !0,
229
+ value: !1
230
+ }
231
+ })), N = null, Je = null, P = Object.seal(s(null, {
232
+ tagCheck: {
233
+ writable: !0,
234
+ configurable: !1,
235
+ enumerable: !0,
236
+ value: null
237
+ },
238
+ attributeCheck: {
239
+ writable: !0,
240
+ configurable: !1,
241
+ enumerable: !0,
242
+ value: null
243
+ }
244
+ })), Ye = !0, Xe = !0, Ze = !1, Qe = !0, F = !1, I = !0, L = !1, $e = !1, et = !1, R = !1, z = !1, B = !1, tt = !0, nt = !1, rt = !0, V = !1, H = {}, U = null, it = y({}, [
245
+ "annotation-xml",
246
+ "audio",
247
+ "colgroup",
248
+ "desc",
249
+ "foreignobject",
250
+ "head",
251
+ "iframe",
252
+ "math",
253
+ "mi",
254
+ "mn",
255
+ "mo",
256
+ "ms",
257
+ "mtext",
258
+ "noembed",
259
+ "noframes",
260
+ "noscript",
261
+ "plaintext",
262
+ "script",
263
+ "style",
264
+ "svg",
265
+ "template",
266
+ "thead",
267
+ "title",
268
+ "video",
269
+ "xmp"
270
+ ]), at = null, ot = y({}, [
271
+ "audio",
272
+ "video",
273
+ "img",
274
+ "source",
275
+ "image",
276
+ "track"
277
+ ]), st = null, ct = y({}, [
278
+ "alt",
279
+ "class",
280
+ "for",
281
+ "id",
282
+ "label",
283
+ "name",
284
+ "pattern",
285
+ "placeholder",
286
+ "role",
287
+ "summary",
288
+ "title",
289
+ "value",
290
+ "style",
291
+ "xmlns"
292
+ ]), W = "http://www.w3.org/1998/Math/MathML", G = "http://www.w3.org/2000/svg", K = "http://www.w3.org/1999/xhtml", q = K, lt = !1, ut = null, dt = y({}, [
293
+ W,
294
+ G,
295
+ K
296
+ ], ne), ft = y({}, [
297
+ "mi",
298
+ "mo",
299
+ "mn",
300
+ "ms",
301
+ "mtext"
302
+ ]), pt = y({}, ["annotation-xml"]), mt = y({}, [
303
+ "title",
304
+ "style",
305
+ "font",
306
+ "a",
307
+ "script"
308
+ ]), J = null, ht = ["application/xhtml+xml", "text/html"], Y = null, X = null, gt = r.createElement("form"), _t = function(e) {
309
+ return e instanceof RegExp || e instanceof Function;
310
+ }, vt = function() {
311
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
312
+ if (!(X && X === e)) {
313
+ if ((!e || typeof e != "object") && (e = {}), e = x(e), J = ht.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, Y = J === "application/xhtml+xml" ? ne : p, A = h(e, "ALLOWED_TAGS") ? y({}, e.ALLOWED_TAGS, Y) : Ke, j = h(e, "ALLOWED_ATTR") ? y({}, e.ALLOWED_ATTR, Y) : qe, ut = h(e, "ALLOWED_NAMESPACES") ? y({}, e.ALLOWED_NAMESPACES, ne) : dt, st = h(e, "ADD_URI_SAFE_ATTR") ? y(x(ct), e.ADD_URI_SAFE_ATTR, Y) : ct, at = h(e, "ADD_DATA_URI_TAGS") ? y(x(ot), e.ADD_DATA_URI_TAGS, Y) : ot, U = h(e, "FORBID_CONTENTS") ? y({}, e.FORBID_CONTENTS, Y) : it, N = h(e, "FORBID_TAGS") ? y({}, e.FORBID_TAGS, Y) : x({}), Je = h(e, "FORBID_ATTR") ? y({}, e.FORBID_ATTR, Y) : x({}), H = h(e, "USE_PROFILES") ? e.USE_PROFILES : !1, Ye = e.ALLOW_ARIA_ATTR !== !1, Xe = e.ALLOW_DATA_ATTR !== !1, Ze = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Qe = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, F = e.SAFE_FOR_TEMPLATES || !1, I = e.SAFE_FOR_XML !== !1, L = e.WHOLE_DOCUMENT || !1, R = e.RETURN_DOM || !1, z = e.RETURN_DOM_FRAGMENT || !1, B = e.RETURN_TRUSTED_TYPE || !1, et = e.FORCE_BODY || !1, tt = e.SANITIZE_DOM !== !1, nt = e.SANITIZE_NAMED_PROPS || !1, rt = e.KEEP_CONTENT !== !1, V = e.IN_PLACE || !1, Ge = e.ALLOWED_URI_REGEXP || xe, q = e.NAMESPACE || K, ft = e.MATHML_TEXT_INTEGRATION_POINTS || ft, pt = e.HTML_INTEGRATION_POINTS || pt, M = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && _t(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (M.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && _t(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (M.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (M.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), F && (Xe = !1), z && (R = !0), H && (A = y({}, pe), j = s(null), H.html === !0 && (y(A, se), y(j, me)), H.svg === !0 && (y(A, ce), y(j, he), y(j, _e)), H.svgFilters === !0 && (y(A, le), y(j, he), y(j, _e)), H.mathMl === !0 && (y(A, de), y(j, ge), y(j, _e))), h(e, "ADD_TAGS") || (P.tagCheck = null), h(e, "ADD_ATTR") || (P.attributeCheck = null), e.ADD_TAGS && (typeof e.ADD_TAGS == "function" ? P.tagCheck = e.ADD_TAGS : (A === Ke && (A = x(A)), y(A, e.ADD_TAGS, Y))), e.ADD_ATTR && (typeof e.ADD_ATTR == "function" ? P.attributeCheck = e.ADD_ATTR : (j === qe && (j = x(j)), y(j, e.ADD_ATTR, Y))), e.ADD_URI_SAFE_ATTR && y(st, e.ADD_URI_SAFE_ATTR, Y), e.FORBID_CONTENTS && (U === it && (U = x(U)), y(U, e.FORBID_CONTENTS, Y)), e.ADD_FORBID_CONTENTS && (U === it && (U = x(U)), y(U, e.ADD_FORBID_CONTENTS, Y)), rt && (A["#text"] = !0), L && y(A, [
314
+ "html",
315
+ "head",
316
+ "body"
317
+ ]), A.table && (y(A, ["tbody"]), delete N.tbody), e.TRUSTED_TYPES_POLICY) {
318
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw _("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
319
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw _("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
320
+ D = e.TRUSTED_TYPES_POLICY, O = D.createHTML("");
321
+ } else D === void 0 && (D = Oe(C, o)), D !== null && typeof O == "string" && (O = D.createHTML(""));
322
+ a && a(e), X = e;
323
+ }
324
+ }, yt = y({}, [
325
+ ...ce,
326
+ ...le,
327
+ ...ue
328
+ ]), bt = y({}, [...de, ...fe]), xt = function(e) {
329
+ let t = E(e);
330
+ (!t || !t.tagName) && (t = {
331
+ namespaceURI: q,
332
+ tagName: "template"
333
+ });
334
+ let n = p(e.tagName), r = p(t.tagName);
335
+ return ut[e.namespaceURI] ? e.namespaceURI === G ? t.namespaceURI === K ? n === "svg" : t.namespaceURI === W ? n === "svg" && (r === "annotation-xml" || ft[r]) : !!yt[n] : e.namespaceURI === W ? t.namespaceURI === K ? n === "math" : t.namespaceURI === G ? n === "math" && pt[r] : !!bt[n] : e.namespaceURI === K ? t.namespaceURI === G && !pt[r] || t.namespaceURI === W && !ft[r] ? !1 : !bt[n] && (mt[n] || !yt[n]) : !!(J === "application/xhtml+xml" && ut[e.namespaceURI]) : !1;
336
+ }, Z = function(e) {
337
+ f(n.removed, { element: e });
338
+ try {
339
+ E(e).removeChild(e);
340
+ } catch {
341
+ Ce(e);
342
+ }
343
+ }, Q = function(e, t) {
344
+ try {
345
+ f(n.removed, {
346
+ attribute: t.getAttributeNode(e),
347
+ from: t
348
+ });
349
+ } catch {
350
+ f(n.removed, {
351
+ attribute: null,
352
+ from: t
353
+ });
354
+ }
355
+ if (t.removeAttribute(e), e === "is") if (R || z) try {
356
+ Z(t);
357
+ } catch {}
358
+ else try {
359
+ t.setAttribute(e, "");
360
+ } catch {}
361
+ }, St = function(e) {
362
+ let t = null, n = null;
363
+ if (et) e = "<remove></remove>" + e;
364
+ else {
365
+ let t = re(e, /^[\r\n\t ]+/);
366
+ n = t && t[0];
367
+ }
368
+ J === "application/xhtml+xml" && q === K && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
369
+ let i = D ? D.createHTML(e) : e;
370
+ if (q === K) try {
371
+ t = new be().parseFromString(i, J);
372
+ } catch {}
373
+ if (!t || !t.documentElement) {
374
+ t = Me.createDocument(q, "template", null);
375
+ try {
376
+ t.documentElement.innerHTML = lt ? O : i;
377
+ } catch {}
378
+ }
379
+ let a = t.body || t.documentElement;
380
+ return e && n && a.insertBefore(r.createTextNode(n), a.childNodes[0] || null), q === K ? Fe.call(t, L ? "html" : "body")[0] : L ? t.documentElement : a;
381
+ }, Ct = function(e) {
382
+ return Ne.call(e.ownerDocument || e, e, b.SHOW_ELEMENT | b.SHOW_COMMENT | b.SHOW_TEXT | b.SHOW_PROCESSING_INSTRUCTION | b.SHOW_CDATA_SECTION, null);
383
+ }, wt = function(e) {
384
+ return e instanceof ye && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof ve) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
385
+ }, Tt = function(e) {
386
+ return typeof v == "function" && e instanceof v;
387
+ };
388
+ function $(e, t, r) {
389
+ u(e, (e) => {
390
+ e.call(n, t, r, X);
391
+ });
392
+ }
393
+ let Et = function(e) {
394
+ let t = null;
395
+ if ($(k.beforeSanitizeElements, e, null), wt(e)) return Z(e), !0;
396
+ let r = Y(e.nodeName);
397
+ if ($(k.uponSanitizeElement, e, {
398
+ tagName: r,
399
+ allowedTags: A
400
+ }), I && e.hasChildNodes() && !Tt(e.firstElementChild) && g(/<[/\w!]/g, e.innerHTML) && g(/<[/\w!]/g, e.textContent) || e.nodeType === T.progressingInstruction || I && e.nodeType === T.comment && g(/<[/\w]/g, e.data)) return Z(e), !0;
401
+ if (!(P.tagCheck instanceof Function && P.tagCheck(r)) && (!A[r] || N[r])) {
402
+ if (!N[r] && Ot(r) && (M.tagNameCheck instanceof RegExp && g(M.tagNameCheck, r) || M.tagNameCheck instanceof Function && M.tagNameCheck(r))) return !1;
403
+ if (rt && !U[r]) {
404
+ let t = E(e) || e.parentNode, n = je(e) || e.childNodes;
405
+ if (n && t) {
406
+ let r = n.length;
407
+ for (let i = r - 1; i >= 0; --i) {
408
+ let r = Se(n[i], !0);
409
+ r.__removalCount = (e.__removalCount || 0) + 1, t.insertBefore(r, Te(e));
410
+ }
411
+ }
412
+ }
413
+ return Z(e), !0;
414
+ }
415
+ return e instanceof oe && !xt(e) || (r === "noscript" || r === "noembed" || r === "noframes") && g(/<\/no(script|embed|frames)/i, e.innerHTML) ? (Z(e), !0) : (F && e.nodeType === T.text && (t = e.textContent, u([
416
+ Le,
417
+ Re,
418
+ ze
419
+ ], (e) => {
420
+ t = m(t, e, " ");
421
+ }), e.textContent !== t && (f(n.removed, { element: e.cloneNode() }), e.textContent = t)), $(k.afterSanitizeElements, e, null), !1);
422
+ }, Dt = function(e, t, n) {
423
+ if (Je[t] || tt && (t === "id" || t === "name") && (n in r || n in gt)) return !1;
424
+ if (!(Xe && !Je[t] && g(Be, t)) && !(Ye && g(Ve, t)) && !(P.attributeCheck instanceof Function && P.attributeCheck(t, e))) {
425
+ if (!j[t] || Je[t]) {
426
+ if (!(Ot(e) && (M.tagNameCheck instanceof RegExp && g(M.tagNameCheck, e) || M.tagNameCheck instanceof Function && M.tagNameCheck(e)) && (M.attributeNameCheck instanceof RegExp && g(M.attributeNameCheck, t) || M.attributeNameCheck instanceof Function && M.attributeNameCheck(t, e)) || t === "is" && M.allowCustomizedBuiltInElements && (M.tagNameCheck instanceof RegExp && g(M.tagNameCheck, n) || M.tagNameCheck instanceof Function && M.tagNameCheck(n)))) return !1;
427
+ } else if (!st[t] && !g(Ge, m(n, Ue, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && ie(n, "data:") === 0 && at[e]) && !(Ze && !g(He, m(n, Ue, ""))) && n) return !1;
428
+ }
429
+ return !0;
430
+ }, Ot = function(e) {
431
+ return e !== "annotation-xml" && re(e, We);
432
+ }, kt = function(e) {
433
+ $(k.beforeSanitizeAttributes, e, null);
434
+ let { attributes: t } = e;
435
+ if (!t || wt(e)) return;
436
+ let r = {
437
+ attrName: "",
438
+ attrValue: "",
439
+ keepAttr: !0,
440
+ allowedAttributes: j,
441
+ forceKeepAttr: void 0
442
+ }, i = t.length;
443
+ for (; i--;) {
444
+ let { name: a, namespaceURI: o, value: s } = t[i], c = Y(a), l = s, d = a === "value" ? l : ae(l);
445
+ if (r.attrName = c, r.attrValue = d, r.keepAttr = !0, r.forceKeepAttr = void 0, $(k.uponSanitizeAttribute, e, r), d = r.attrValue, nt && (c === "id" || c === "name") && (Q(a, e), d = "user-content-" + d), I && g(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
446
+ Q(a, e);
447
+ continue;
448
+ }
449
+ if (c === "attributename" && re(d, "href")) {
450
+ Q(a, e);
451
+ continue;
452
+ }
453
+ if (r.forceKeepAttr) continue;
454
+ if (!r.keepAttr) {
455
+ Q(a, e);
456
+ continue;
457
+ }
458
+ if (!Qe && g(/\/>/i, d)) {
459
+ Q(a, e);
460
+ continue;
461
+ }
462
+ F && u([
463
+ Le,
464
+ Re,
465
+ ze
466
+ ], (e) => {
467
+ d = m(d, e, " ");
468
+ });
469
+ let f = Y(e.nodeName);
470
+ if (!Dt(f, c, d)) {
471
+ Q(a, e);
472
+ continue;
473
+ }
474
+ if (D && typeof C == "object" && typeof C.getAttributeType == "function" && !o) switch (C.getAttributeType(f, c)) {
475
+ case "TrustedHTML":
476
+ d = D.createHTML(d);
477
+ break;
478
+ case "TrustedScriptURL":
479
+ d = D.createScriptURL(d);
480
+ break;
481
+ }
482
+ if (d !== l) try {
483
+ o ? e.setAttributeNS(o, a, d) : e.setAttribute(a, d), wt(e) ? Z(e) : ee(n.removed);
484
+ } catch {
485
+ Q(a, e);
486
+ }
487
+ }
488
+ $(k.afterSanitizeAttributes, e, null);
489
+ }, At = function e(t) {
490
+ let n = null, r = Ct(t);
491
+ for ($(k.beforeSanitizeShadowDOM, t, null); n = r.nextNode();) $(k.uponSanitizeShadowNode, n, null), Et(n), kt(n), n.content instanceof c && e(n.content);
492
+ $(k.afterSanitizeShadowDOM, t, null);
493
+ };
494
+ return n.sanitize = function(e) {
495
+ let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = null, a = null, o = null, s = null;
496
+ if (lt = !e, lt && (e = "<!-->"), typeof e != "string" && !Tt(e)) if (typeof e.toString == "function") {
497
+ if (e = e.toString(), typeof e != "string") throw _("dirty is not a string, aborting");
498
+ } else throw _("toString is not a function");
499
+ if (!n.isSupported) return e;
500
+ if ($e || vt(t), n.removed = [], typeof e == "string" && (V = !1), V) {
501
+ if (e.nodeName) {
502
+ let t = Y(e.nodeName);
503
+ if (!A[t] || N[t]) throw _("root node is forbidden and cannot be sanitized in-place");
504
+ }
505
+ } else if (e instanceof v) r = St("<!---->"), a = r.ownerDocument.importNode(e, !0), a.nodeType === T.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? r = a : r.appendChild(a);
506
+ else {
507
+ if (!R && !F && !L && e.indexOf("<") === -1) return D && B ? D.createHTML(e) : e;
508
+ if (r = St(e), !r) return R ? null : B ? O : "";
509
+ }
510
+ r && et && Z(r.firstChild);
511
+ let l = Ct(V ? e : r);
512
+ for (; o = l.nextNode();) Et(o), kt(o), o.content instanceof c && At(o.content);
513
+ if (V) return e;
514
+ if (R) {
515
+ if (z) for (s = Pe.call(r.ownerDocument); r.firstChild;) s.appendChild(r.firstChild);
516
+ else s = r;
517
+ return (j.shadowroot || j.shadowrootmode) && (s = Ie.call(i, s, !0)), s;
518
+ }
519
+ let d = L ? r.outerHTML : r.innerHTML;
520
+ return L && A["!doctype"] && r.ownerDocument && r.ownerDocument.doctype && r.ownerDocument.doctype.name && g(we, r.ownerDocument.doctype.name) && (d = "<!DOCTYPE " + r.ownerDocument.doctype.name + ">\n" + d), F && u([
521
+ Le,
522
+ Re,
523
+ ze
524
+ ], (e) => {
525
+ d = m(d, e, " ");
526
+ }), D && B ? D.createHTML(d) : d;
527
+ }, n.setConfig = function() {
528
+ vt(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), $e = !0;
529
+ }, n.clearConfig = function() {
530
+ X = null, $e = !1;
531
+ }, n.isValidAttribute = function(e, t, n) {
532
+ return X || vt({}), Dt(Y(e), Y(t), n);
533
+ }, n.addHook = function(e, t) {
534
+ typeof t == "function" && f(k[e], t);
535
+ }, n.removeHook = function(e, t) {
536
+ if (t !== void 0) {
537
+ let n = d(k[e], t);
538
+ return n === -1 ? void 0 : te(k[e], n, 1)[0];
539
+ }
540
+ return ee(k[e]);
541
+ }, n.removeHooks = function(e) {
542
+ k[e] = [];
543
+ }, n.removeAllHooks = function() {
544
+ k = ke();
545
+ }, n;
546
+ }
547
+ var je = Ae();
548
+ //#endregion
549
+ export { je as default };
package/dist/react.cjs CHANGED
@@ -1,22 +1,6 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */const p=require("./core.cjs"),k=require("react");var T={exports:{}},E={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var D;function oe(){if(D)return E;D=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function u(x,f,d){var t=null;if(d!==void 0&&(t=""+d),f.key!==void 0&&(t=""+f.key),"key"in f){d={};for(var i in f)i!=="key"&&(d[i]=f[i])}else d=f;return f=d.ref,{$$typeof:n,type:x,key:t,ref:f!==void 0?f:null,props:d}}return E.Fragment=a,E.jsx=u,E.jsxs=u,E}var v={};/**
10
- * @license React
11
- * react-jsx-runtime.development.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var F;function ie(){return F||(F=1,process.env.NODE_ENV!=="production"&&(function(){function n(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ne?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case g:return"Fragment";case X:return"Profiler";case G:return"StrictMode";case K:return"Suspense";case ee:return"SuspenseList";case te:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case B:return"Portal";case Z:return e.displayName||"Context";case H:return(e._context.displayName||"Context")+".Consumer";case Q:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case re:return r=e.displayName||null,r!==null?r:n(e.type)||"Memo";case R:r=e._payload,e=e._init;try{return n(e(r))}catch{}}return null}function a(e){return""+e}function u(e){try{a(e);var r=!1}catch{r=!0}if(r){r=console;var s=r.error,l=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return s.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",l),a(e)}}function x(e){if(e===g)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===R)return"<...>";try{var r=n(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function f(){var e=O.A;return e===null?null:e.getOwner()}function d(){return Error("react-stack-top-frame")}function t(e){if(C.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function i(e,r){function s(){M||(M=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}s.isReactWarning=!0,Object.defineProperty(e,"key",{get:s,configurable:!0})}function m(){var e=n(this.type);return I[e]||(I[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function J(e,r,s,l,b,y){var c=s.ref;return e={$$typeof:S,type:e,key:r,props:s,_owner:l},(c!==void 0?c:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:m}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:b}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:y}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function N(e,r,s,l,b,y){var c=r.children;if(c!==void 0)if(l)if(ae(c)){for(l=0;l<c.length;l++)A(c[l]);Object.freeze&&Object.freeze(c)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else A(c);if(C.call(r,"key")){c=n(e);var _=Object.keys(r).filter(function(se){return se!=="key"});l=0<_.length?"{key: someKey, "+_.join(": ..., ")+": ...}":"{key: someKey}",W[c+l]||(_=0<_.length?"{"+_.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`./chunk-350yNsax.cjs`),t=require(`./samples-DgxVsBmo.cjs`);;/* empty css */let n=require(`react`);var r=e.t((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),i=e.t((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===O?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case y:return`Profiler`;case v:return`StrictMode`;case C:return`Suspense`;case w:return`SuspenseList`;case D:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case g:return`Portal`;case x:return e.displayName||`Context`;case b:return(e._context.displayName||`Context`)+`.Consumer`;case S:var n=e.render;return e=e.displayName,e||=(e=n.displayName||n.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case T:return n=e.displayName||null,n===null?t(e.type)||`Memo`:n;case E:n=e._payload,e=e._init;try{return t(e(n))}catch{}}return null}function n(e){return``+e}function r(e){try{n(e);var t=!1}catch{t=!0}if(t){t=console;var r=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return r.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),n(e)}}function i(e){if(e===_)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===E)return`<...>`;try{var n=t(e);return n?`<`+n+`>`:`<...>`}catch{return`<...>`}}function a(){var e=k.A;return e===null?null:e.getOwner()}function o(){return Error(`react-stack-top-frame`)}function s(e){if(A.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function c(e,t){function n(){N||(N=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,`key`,{get:n,configurable:!0})}function l(){var e=t(this.type);return P[e]||(P[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function u(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:h,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,`ref`,{enumerable:!1,value:null}):Object.defineProperty(e,`ref`,{enumerable:!1,get:l}),e._store={},Object.defineProperty(e._store,`validated`,{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,`_debugInfo`,{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,`_debugStack`,{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,`_debugTask`,{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function d(e,n,i,o,l,d){var p=n.children;if(p!==void 0)if(o)if(j(p)){for(o=0;o<p.length;o++)f(p[o]);Object.freeze&&Object.freeze(p)}else console.error(`React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.`);else f(p);if(A.call(n,`key`)){p=t(e);var m=Object.keys(n).filter(function(e){return e!==`key`});o=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,L[p+o]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
18
2
  let props = %s;
19
3
  <%s {...props} />
20
4
  React keys must be passed directly to JSX without using spread:
21
5
  let props = %s;
22
- <%s key={someKey} {...props} />`,l,c,_,c),W[c+l]=!0)}if(c=null,s!==void 0&&(u(s),c=""+s),t(r)&&(u(r.key),c=""+r.key),"key"in r){s={};for(var w in r)w!=="key"&&(s[w]=r[w])}else s=r;return c&&i(s,typeof e=="function"?e.displayName||e.name||"Unknown":e),J(e,c,s,f(),b,y)}function A(e){P(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===R&&(e._payload.status==="fulfilled"?P(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function P(e){return typeof e=="object"&&e!==null&&e.$$typeof===S}var h=k,S=Symbol.for("react.transitional.element"),B=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),H=Symbol.for("react.consumer"),Z=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),re=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),ne=Symbol.for("react.client.reference"),O=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,C=Object.prototype.hasOwnProperty,ae=Array.isArray,j=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(e){return e()}};var M,I={},$=h.react_stack_bottom_frame.bind(h,d)(),Y=j(x(d)),W={};v.Fragment=g,v.jsx=function(e,r,s){var l=1e4>O.recentlyCreatedOwnerStacks++;return N(e,r,s,!1,l?Error("react-stack-top-frame"):$,l?j(x(e)):Y)},v.jsxs=function(e,r,s){var l=1e4>O.recentlyCreatedOwnerStacks++;return N(e,r,s,!0,l?Error("react-stack-top-frame"):$,l?j(x(e)):Y)}})()),v}var L;function le(){return L||(L=1,process.env.NODE_ENV==="production"?T.exports=oe():T.exports=ie()),T.exports}var o=le();const ce=800,ue=600;function V(n){return Math.max(80,n.length*8+40)}function fe(n,a){return n.length<=a?n:n.slice(0,a-3)+"..."}function z({selectedResult:n,sendTextMessage:a}){const[u,x]=k.useState(null);k.useEffect(()=>{(n==null?void 0:n.toolName)===p.TOOL_NAME&&n.data&&x(n.data)},[n]);const f=t=>u==null?void 0:u.nodes.find(i=>i.id===t),d=t=>{a&&a(`I want to expand the "${t.text}" branch. Add related sub-ideas.`)};return u?o.jsx("div",{className:"size-full bg-gray-50 overflow-hidden",children:o.jsxs("div",{className:"size-full relative",children:[o.jsx("div",{className:"absolute top-4 left-4 z-10",children:o.jsx("h2",{className:"text-xl font-bold text-gray-800 bg-white/80 px-3 py-1 rounded-lg shadow",children:u.title})}),o.jsxs("svg",{className:"size-full",viewBox:`0 0 ${ce} ${ue}`,preserveAspectRatio:"xMidYMid meet",children:[o.jsx("g",{className:"connections",children:u.connections.map(t=>{const i=f(t.from),m=f(t.to);return o.jsxs("g",{children:[o.jsx("line",{x1:(i==null?void 0:i.x)||0,y1:(i==null?void 0:i.y)||0,x2:(m==null?void 0:m.x)||0,y2:(m==null?void 0:m.y)||0,stroke:"#94A3B8",strokeWidth:"2",className:"transition-all duration-300"}),t.label&&o.jsx("text",{x:(((i==null?void 0:i.x)||0)+((m==null?void 0:m.x)||0))/2,y:(((i==null?void 0:i.y)||0)+((m==null?void 0:m.y)||0))/2-5,textAnchor:"middle",className:"text-xs fill-gray-500",children:t.label})]},`${t.from}-${t.to}`)})}),o.jsx("g",{className:"nodes",children:u.nodes.map(t=>o.jsxs("g",{transform:`translate(${t.x}, ${t.y})`,className:"cursor-pointer transition-transform duration-200 hover:scale-110",onClick:()=>d(t),children:[o.jsx("rect",{x:-V(t.text)/2,y:-20,width:V(t.text),height:40,rx:20,fill:t.color||"#4F46E5",className:"drop-shadow-md"}),o.jsx("text",{textAnchor:"middle",dominantBaseline:"middle",fill:"white",className:"text-sm font-medium select-none pointer-events-none",children:fe(t.text,20)})]},t.id))})]}),o.jsx("div",{className:"absolute bottom-4 left-4 right-4 text-center",children:o.jsx("p",{className:"text-sm text-gray-500 bg-white/80 px-3 py-2 rounded-lg inline-block",children:"Click a node to expand it with new ideas"})})]})}):o.jsx("div",{className:"size-full flex items-center justify-center",children:o.jsx("p",{className:"text-gray-400",children:"No mind map data"})})}function q({result:n}){var d;const a=n.data,u=(a==null?void 0:a.nodes)&&a.nodes.length>0,x=(a==null?void 0:a.title)||"Mind Map",f=((d=a==null?void 0:a.nodes)==null?void 0:d.length)||0;return o.jsxs("div",{className:"p-3 bg-indigo-50 rounded-lg text-center",children:[o.jsx("div",{className:"text-2xl mb-1",children:"🧠"}),o.jsx("div",{className:"text-indigo-700 font-medium text-sm truncate",children:x}),u?o.jsxs("div",{className:"text-xs text-gray-500 mt-1",children:[f," ideas"]}):o.jsx("div",{className:"text-xs text-amber-600 mt-1",children:n.message||"No data"})]})}const U={...p.pluginCore,ViewComponent:z,PreviewComponent:q,samples:p.samples},de={plugin:U};exports.SYSTEM_PROMPT=p.SYSTEM_PROMPT;exports.TOOL_DEFINITION=p.TOOL_DEFINITION;exports.TOOL_NAME=p.TOOL_NAME;exports.executeMindMap=p.executeMindMap;exports.pluginCore=p.pluginCore;exports.samples=p.samples;exports.Preview=q;exports.View=z;exports.default=de;exports.plugin=U;
6
+ <%s key={someKey} {...props} />`,o,p,m,p),L[p+o]=!0)}if(p=null,i!==void 0&&(r(i),p=``+i),s(n)&&(r(n.key),p=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return p&&c(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),u(e,p,i,a(),l,d)}function f(e){p(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===E&&(e._payload.status===`fulfilled`?p(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function p(e){return typeof e==`object`&&!!e&&e.$$typeof===h}var m=require(`react`),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),w=Symbol.for(`react.suspense_list`),T=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),D=Symbol.for(`react.activity`),O=Symbol.for(`react.client.reference`),k=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=Object.prototype.hasOwnProperty,j=Array.isArray,M=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(e){return e()}};var N,P={},F=m.react_stack_bottom_frame.bind(m,o)(),I=M(i(o)),L={};e.Fragment=_,e.jsx=function(e,t,n){var r=1e4>k.recentlyCreatedOwnerStacks++;return d(e,t,n,!1,r?Error(`react-stack-top-frame`):F,r?M(i(e)):I)},e.jsxs=function(e,t,n){var r=1e4>k.recentlyCreatedOwnerStacks++;return d(e,t,n,!0,r?Error(`react-stack-top-frame`):F,r?M(i(e)):I)}})()})),a=e.t(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=r():t.exports=i()}))(),o=800,s=600;function c(e){return Math.max(80,e.length*8+40)}function l(e,t){return e.length<=t?e:e.slice(0,t-3)+`...`}function u({selectedResult:e,sendTextMessage:t}){let[r,i]=(0,n.useState)(null);(0,n.useEffect)(()=>{e?.toolName===`createMindMap`&&e.data&&i(e.data)},[e]);let u=e=>r?.nodes.find(t=>t.id===e),d=e=>{t&&t(`I want to expand the "${e.text}" branch. Add related sub-ideas.`)};return r?(0,a.jsx)(`div`,{className:`size-full bg-gray-50 overflow-hidden`,children:(0,a.jsxs)(`div`,{className:`size-full relative`,children:[(0,a.jsx)(`div`,{className:`absolute top-4 left-4 z-10`,children:(0,a.jsx)(`h2`,{className:`text-xl font-bold text-gray-800 bg-white/80 px-3 py-1 rounded-lg shadow`,children:r.title})}),(0,a.jsxs)(`svg`,{className:`size-full`,viewBox:`0 0 ${o} ${s}`,preserveAspectRatio:`xMidYMid meet`,children:[(0,a.jsx)(`g`,{className:`connections`,children:r.connections.map(e=>{let t=u(e.from),n=u(e.to);return(0,a.jsxs)(`g`,{children:[(0,a.jsx)(`line`,{x1:t?.x||0,y1:t?.y||0,x2:n?.x||0,y2:n?.y||0,stroke:`#94A3B8`,strokeWidth:`2`,className:`transition-all duration-300`}),e.label&&(0,a.jsx)(`text`,{x:((t?.x||0)+(n?.x||0))/2,y:((t?.y||0)+(n?.y||0))/2-5,textAnchor:`middle`,className:`text-xs fill-gray-500`,children:e.label})]},`${e.from}-${e.to}`)})}),(0,a.jsx)(`g`,{className:`nodes`,children:r.nodes.map(e=>(0,a.jsxs)(`g`,{transform:`translate(${e.x}, ${e.y})`,className:`cursor-pointer transition-transform duration-200 hover:scale-110`,onClick:()=>d(e),children:[(0,a.jsx)(`rect`,{x:-c(e.text)/2,y:-20,width:c(e.text),height:40,rx:20,fill:e.color||`#4F46E5`,className:`drop-shadow-md`}),(0,a.jsx)(`text`,{textAnchor:`middle`,dominantBaseline:`middle`,fill:`white`,className:`text-sm font-medium select-none pointer-events-none`,children:l(e.text,20)})]},e.id))})]}),(0,a.jsx)(`div`,{className:`absolute bottom-4 left-4 right-4 text-center`,children:(0,a.jsx)(`p`,{className:`text-sm text-gray-500 bg-white/80 px-3 py-2 rounded-lg inline-block`,children:`Click a node to expand it with new ideas`})})]})}):(0,a.jsx)(`div`,{className:`size-full flex items-center justify-center`,children:(0,a.jsx)(`p`,{className:`text-gray-400`,children:`No mind map data`})})}function d({result:e}){let t=e.data,n=t?.nodes&&t.nodes.length>0,r=t?.title||`Mind Map`,i=t?.nodes?.length||0;return(0,a.jsxs)(`div`,{className:`p-3 bg-indigo-50 rounded-lg text-center`,children:[(0,a.jsx)(`div`,{className:`text-2xl mb-1`,children:`🧠`}),(0,a.jsx)(`div`,{className:`text-indigo-700 font-medium text-sm truncate`,children:r}),n?(0,a.jsxs)(`div`,{className:`text-xs text-gray-500 mt-1`,children:[i,` ideas`]}):(0,a.jsx)(`div`,{className:`text-xs text-amber-600 mt-1`,children:e.message||`No data`})]})}var f={...t.r,ViewComponent:u,PreviewComponent:d,samples:t.t},p={plugin:f};exports.Preview=d,exports.SYSTEM_PROMPT=t.i,exports.TOOL_DEFINITION=t.a,exports.TOOL_NAME=t.o,exports.View=u,exports.default=p,exports.executeMindMap=t.n,exports.plugin=f,exports.pluginCore=t.r,exports.samples=t.t;