@dimina-kit/devtools 0.4.0-dev.20260718143821 → 0.4.0-dev.20260728063215

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 (68) hide show
  1. package/dist/main/app/app.js +67 -1
  2. package/dist/main/app/lifecycle.js +9 -0
  3. package/dist/main/index.bundle.js +928 -162
  4. package/dist/main/ipc/bridge-router.d.ts +36 -0
  5. package/dist/main/ipc/bridge-router.js +56 -0
  6. package/dist/main/ipc/index.d.ts +1 -0
  7. package/dist/main/ipc/index.js +1 -0
  8. package/dist/main/ipc/internal-devtools.d.ts +15 -0
  9. package/dist/main/ipc/internal-devtools.js +9 -0
  10. package/dist/main/services/compile-standby.js +4 -0
  11. package/dist/main/services/console-forward/cdp-inject.d.ts +18 -0
  12. package/dist/main/services/console-forward/cdp-inject.js +30 -0
  13. package/dist/main/services/console-forward/global-console-mirror.d.ts +33 -0
  14. package/dist/main/services/console-forward/global-console-mirror.js +71 -0
  15. package/dist/main/services/console-forward/global-diagnostics-mirror.d.ts +33 -0
  16. package/dist/main/services/console-forward/global-diagnostics-mirror.js +73 -0
  17. package/dist/main/services/console-forward/index.d.ts +15 -1
  18. package/dist/main/services/console-forward/index.js +42 -2
  19. package/dist/main/services/console-forward/internal-log.d.ts +11 -0
  20. package/dist/main/services/console-forward/internal-log.js +23 -0
  21. package/dist/main/services/console-forward/open-gated-relay.d.ts +67 -0
  22. package/dist/main/services/console-forward/open-gated-relay.js +55 -0
  23. package/dist/main/services/diagnostics/index.d.ts +10 -0
  24. package/dist/main/services/elements-forward/index.js +14 -96
  25. package/dist/main/services/network-forward/frontend-dispatch.d.ts +64 -0
  26. package/dist/main/services/network-forward/frontend-dispatch.js +113 -8
  27. package/dist/main/services/network-forward/global-body-gate.d.ts +46 -0
  28. package/dist/main/services/network-forward/global-body-gate.js +93 -0
  29. package/dist/main/services/network-forward/global-mirror-test-fixtures.d.ts +48 -0
  30. package/dist/main/services/network-forward/global-mirror-test-fixtures.js +96 -0
  31. package/dist/main/services/network-forward/index.d.ts +31 -0
  32. package/dist/main/services/network-forward/index.js +256 -8
  33. package/dist/main/services/network-forward/user-facing.d.ts +21 -0
  34. package/dist/main/services/network-forward/user-facing.js +50 -0
  35. package/dist/main/services/views/console-filter.d.ts +145 -0
  36. package/dist/main/services/views/console-filter.js +233 -0
  37. package/dist/main/services/views/frontend-bootstrap-gate.d.ts +59 -0
  38. package/dist/main/services/views/frontend-bootstrap-gate.js +117 -0
  39. package/dist/main/services/views/native-simulator-devtools-host.js +138 -30
  40. package/dist/main/services/views/view-manager-devtools-host-test-fixtures.d.ts +76 -0
  41. package/dist/main/services/views/view-manager-devtools-host-test-fixtures.js +182 -0
  42. package/dist/main/services/workbench-context.d.ts +10 -0
  43. package/dist/main/utils/theme.d.ts +10 -6
  44. package/dist/main/utils/theme.js +10 -6
  45. package/dist/main/windows/internal-devtools-window/index.d.ts +66 -0
  46. package/dist/main/windows/internal-devtools-window/index.js +160 -0
  47. package/dist/native-host/render/render.js +89 -73
  48. package/dist/native-host/service/service.js +2 -2
  49. package/dist/preload/windows/host-toolbar-runtime.cjs.map +1 -1
  50. package/dist/preload/windows/simulator.cjs.map +1 -1
  51. package/dist/renderer/assets/index-M5NDq_vi.js +49 -0
  52. package/dist/renderer/assets/{input-c2OcrrZy.js → input-dsgeTmVX.js} +2 -2
  53. package/dist/renderer/assets/ipc-transport-BgFdT9bT.js +9 -0
  54. package/dist/renderer/assets/{popover-kv2qspWz.js → popover-Disfu1cx.js} +2 -2
  55. package/dist/renderer/assets/{select-DKqzMtTh.js → select-DAw1hzkl.js} +2 -2
  56. package/dist/renderer/assets/{settings-dJNKTGr8.js → settings-M_8GFW2M.js} +2 -2
  57. package/dist/renderer/assets/settings-api-DFR5eDl_.js +2 -0
  58. package/dist/renderer/assets/{workbenchSettings-DQ_VP5-W.js → workbenchSettings-CxdXeoOu.js} +2 -2
  59. package/dist/renderer/entries/main/index.html +5 -5
  60. package/dist/renderer/entries/popover/index.html +4 -4
  61. package/dist/renderer/entries/settings/index.html +4 -4
  62. package/dist/renderer/entries/workbench-settings/index.html +3 -3
  63. package/dist/shared/ipc-channels.d.ts +3 -0
  64. package/dist/shared/ipc-channels.js +6 -0
  65. package/package.json +8 -8
  66. package/dist/renderer/assets/index-DfDIvgvK.js +0 -49
  67. package/dist/renderer/assets/ipc-transport-CuDJ07aE.js +0 -9
  68. package/dist/renderer/assets/settings-api-qpXKDRXt.js +0 -2
@@ -0,0 +1,160 @@
1
+ import { BrowserWindow, View, WebContentsView } from 'electron';
2
+ export function createInternalDevtoolsWindow(target, opts) {
3
+ let win = null;
4
+ // The host WebContentsView, kept so open()/close paths can push the host
5
+ // transition themselves (see notifyHostChanged's dedup comment).
6
+ let hostView = null;
7
+ const hostChangedHandlers = new Set();
8
+ // The host wc subscribers currently see (non-null only while the window is
9
+ // visible) — the single value the late-subscriber catch-up replays.
10
+ let currentHost = null;
11
+ // A throwing handler must never stop the fan-out — console-forward's own
12
+ // `sink(entry)` broadcast (console-forward/index.ts) uses the same
13
+ // isolation for exactly this reason.
14
+ //
15
+ // Dedups on the TRANSITION, not the event count: this controller pushes
16
+ // the transition explicitly at every point it performs one (open(), the
17
+ // intercepted close, dispose/'closed'), AND the native 'show'/'hide'
18
+ // handlers below may report the same transition again. The explicit push
19
+ // is the authority — on real macOS the native events were observed
20
+ // (instrumented-bundle trace against the live app) to fire for NEITHER
21
+ // `show()`/`showInactive()` NOR `hide()`, which left every subscriber
22
+ // permanently believing the window never opened; the events are kept only
23
+ // as belt-and-suspenders for external show/hide paths.
24
+ function notifyHostChanged(hostWc) {
25
+ if (hostWc === currentHost)
26
+ return;
27
+ currentHost = hostWc;
28
+ for (const handler of [...hostChangedHandlers]) {
29
+ try {
30
+ handler(hostWc);
31
+ }
32
+ catch (err) {
33
+ console.warn('[internal-devtools-window] onHostChanged handler threw, other handlers still ran:', err instanceof Error ? err.message : String(err));
34
+ }
35
+ }
36
+ }
37
+ function resizeHostView(hostWindow, view) {
38
+ try {
39
+ const [width, height] = hostWindow.getContentSize();
40
+ view.setBounds({ x: 0, y: 0, width, height });
41
+ }
42
+ catch { /* window mid-construction / torn down — next resize event re-fires */ }
43
+ }
44
+ // Builds the window + host + DevTools attachment exactly once. A second
45
+ // call (win already alive) is a no-op — see module doc for why this
46
+ // attachment is never rebuilt.
47
+ function buildOnce() {
48
+ if (win)
49
+ return;
50
+ const hostWindow = new BrowserWindow({
51
+ width: 1000,
52
+ height: 700,
53
+ title: '全局调试',
54
+ show: false,
55
+ });
56
+ win = hostWindow;
57
+ // The window's default `contentView` is a bare WebContentsView tied to
58
+ // its own (never-loaded) webContents, not a container that accepts
59
+ // children — mirror main-window/create.ts's pattern: wrap it in a fresh
60
+ // `View` so the host can be added as a child.
61
+ const view = new WebContentsView();
62
+ hostView = view;
63
+ const container = new View();
64
+ container.addChildView(view);
65
+ hostWindow.contentView = container;
66
+ resizeHostView(hostWindow, view);
67
+ hostWindow.on('resize', () => resizeHostView(hostWindow, view));
68
+ // Intercept the user-initiated close (title-bar button, Cmd+W) and hide
69
+ // instead of destroy — see module doc for why destroying and rebuilding
70
+ // this attachment cannot be made reliable. `dispose()` bypasses this via
71
+ // `win.destroy()`, which Electron guarantees does NOT emit 'close'.
72
+ // EXCEPT during a real app quit: preventDefault() on 'close' while the
73
+ // app is quitting CANCELS the quit itself (Electron closes every window
74
+ // as part of quit and aborts if any refuses), stranding the process with
75
+ // a hidden window — let the native close proceed instead.
76
+ hostWindow.on('close', (event) => {
77
+ if (opts?.isAppQuitting?.())
78
+ return;
79
+ event.preventDefault();
80
+ hostWindow.hide();
81
+ // Push the transition ourselves — the native 'hide' event is not
82
+ // reliable (see notifyHostChanged's dedup comment).
83
+ notifyHostChanged(null);
84
+ });
85
+ // Any real destruction (quit-time close above, or dispose()'s destroy())
86
+ // must both release the controller's handle and tell subscribers the
87
+ // host is gone.
88
+ hostWindow.on('closed', () => {
89
+ if (win !== hostWindow)
90
+ return;
91
+ win = null;
92
+ notifyHostChanged(null);
93
+ });
94
+ hostWindow.on('hide', () => notifyHostChanged(null));
95
+ hostWindow.on('show', () => notifyHostChanged(view.webContents));
96
+ if (!target.webContents.isDestroyed()) {
97
+ target.webContents.setDevToolsWebContents(view.webContents);
98
+ target.webContents.openDevTools({ mode: 'detach', activate: false });
99
+ }
100
+ }
101
+ return {
102
+ open() {
103
+ buildOnce();
104
+ // Mirrors main-window/create.ts's exact test-mode rule: `showInactive()`
105
+ // makes the window visible without activating it (and thus never gives
106
+ // it OS-level focus), so e2e runs opening this window never steal
107
+ // foreground focus from whatever the developer running the suite has
108
+ // open. Production always wants a real show()+focus() — this is the
109
+ // one button click that's supposed to bring the debug window forward.
110
+ if (process.env.NODE_ENV === 'test') {
111
+ win.showInactive();
112
+ }
113
+ else {
114
+ win.show();
115
+ win.focus();
116
+ }
117
+ // Push the transition ourselves — the native 'show' event is not
118
+ // reliable (see notifyHostChanged's dedup comment); relying on it left
119
+ // the mirrors permanently unsubscribed on real macOS.
120
+ if (hostView)
121
+ notifyHostChanged(hostView.webContents);
122
+ },
123
+ dispose() {
124
+ if (!win)
125
+ return;
126
+ const hostWindow = win;
127
+ // destroy() emits 'closed', whose handler above nulls `win` and
128
+ // notifies subscribers — the fallback below only covers a window that
129
+ // was somehow already destroyed without that handler having run.
130
+ if (!hostWindow.isDestroyed())
131
+ hostWindow.destroy();
132
+ if (win === hostWindow) {
133
+ win = null;
134
+ notifyHostChanged(null);
135
+ }
136
+ },
137
+ onHostChanged(handler) {
138
+ hostChangedHandlers.add(handler);
139
+ // Late-subscriber catch-up (see the interface doc): replayed a
140
+ // microtask later, never synchronously, and re-validated at fire time —
141
+ // an unsubscribe or a hide landing before the microtask must win.
142
+ if (currentHost) {
143
+ queueMicrotask(() => {
144
+ if (!hostChangedHandlers.has(handler))
145
+ return;
146
+ if (!currentHost)
147
+ return;
148
+ try {
149
+ handler(currentHost);
150
+ }
151
+ catch (err) {
152
+ console.warn('[internal-devtools-window] onHostChanged catch-up handler threw:', err instanceof Error ? err.message : String(err));
153
+ }
154
+ });
155
+ }
156
+ return () => { hostChangedHandlers.delete(handler); };
157
+ },
158
+ };
159
+ }
160
+ //# sourceMappingURL=index.js.map
@@ -506,10 +506,16 @@ var Se = new class e {
506
506
  });
507
507
  }
508
508
  createModule(e) {
509
- let { path: t, usingComponents: n } = e;
509
+ let { path: t, usingComponents: n, componentPlaceholder: r = {} } = e;
510
510
  if (!this.staticModules[t]) {
511
511
  this.staticModules[t] = new we(e);
512
- for (let e of Object.values(n)) window.modRequire(e);
512
+ for (let [e, t] of Object.entries(n)) try {
513
+ window.modRequire(t);
514
+ } catch (t) {
515
+ let i = r[e], a = i && n[i];
516
+ if (!a) throw t;
517
+ window.modRequire(a);
518
+ }
513
519
  }
514
520
  }
515
521
  setInitialData(e) {
@@ -5923,10 +5929,10 @@ var Fd = [
5923
5929
  g();
5924
5930
  return;
5925
5931
  }
5926
- let e = Math.max(Number(t.lazyLoadMargin) || 0, 0);
5932
+ let e = Math.max(Number(t.lazyLoadMargin) || 0, 0), n = e * window.innerHeight, r = e * window.innerWidth;
5927
5933
  l = new IntersectionObserver((e) => {
5928
5934
  e.some((e) => e.isIntersecting || e.intersectionRatio > 0) && g();
5929
- }, { rootMargin: `${e * 100}vh ${e * 100}vw` }), l.observe(s.value);
5935
+ }, { rootMargin: `${n}px ${r}px` }), l.observe(s.value);
5930
5936
  }
5931
5937
  H(() => [t.lazyLoad, t.lazyLoadMargin], ([e], [t]) => {
5932
5938
  e ? !t && c.value ? p = !0 : _() : g();
@@ -11575,10 +11581,10 @@ var t_ = new class {
11575
11581
  n.add(e);
11576
11582
  let r = Te.getModuleByPath(e);
11577
11583
  if (!r?.moduleInfo) return;
11578
- let { id: i, tplComponents: a = {}, usingComponents: o = {} } = r.moduleInfo, s = this.createComponent(e, t, o);
11584
+ let { id: i, tplComponents: a = {}, usingComponents: o = {}, componentPlaceholder: s = {} } = r.moduleInfo, c = this.createComponent(e, t, o, /* @__PURE__ */ new Map(), s);
11579
11585
  for (let [e, t] of Object.entries(a)) this.app.component(`dd-${e}`, this.createTplComponent({
11580
11586
  id: i,
11581
- components: s,
11587
+ components: c,
11582
11588
  render: t
11583
11589
  }));
11584
11590
  for (let e of Object.values(o)) this.registerTplComponentsByPath(e, t, n);
@@ -11600,19 +11606,19 @@ var t_ = new class {
11600
11606
  };
11601
11607
  }
11602
11608
  makeOptions(e) {
11603
- let { path: t, bridgeId: n, pageId: r } = e, i = Te.getModuleByPath(t), { id: a, appStyleScopeId: o, sharedStyleScopeIds: s = [], usingComponents: c, tplComponents: l, customTabBar: u } = i.moduleInfo, d = i.moduleInfo.render, f = u?.componentName, p = typeof f == "string" && Object.prototype.hasOwnProperty.call(c || {}, f);
11609
+ let { path: t, bridgeId: n, pageId: r } = e, i = Te.getModuleByPath(t), { id: a, appStyleScopeId: o, sharedStyleScopeIds: s = [], usingComponents: c, componentPlaceholder: l = {}, tplComponents: u, customTabBar: d } = i.moduleInfo, f = i.moduleInfo.render, p = d?.componentName, m = typeof p == "string" && Object.prototype.hasOwnProperty.call(c || {}, p);
11604
11610
  this.pageId = r;
11605
- let m = this, h = "dd-page", g = `data-v-${a}`, _ = [
11611
+ let h = this, g = "dd-page", _ = `data-v-${a}`, v = [
11606
11612
  o ? `data-v-${o}` : null,
11607
- g,
11613
+ _,
11608
11614
  ...s.map((e) => `data-v-${e}`)
11609
- ].filter(Boolean), v = this.createComponent(t, n, c);
11615
+ ].filter(Boolean), y = this.createComponent(t, n, c, /* @__PURE__ */ new Map(), l);
11610
11616
  return {
11611
11617
  id: a,
11612
- tplComponents: l,
11618
+ tplComponents: u,
11613
11619
  app: {
11614
11620
  render: () => {
11615
- let e = Oa(h);
11621
+ let e = Oa(g);
11616
11622
  return Bc(Ts, { onResolve: () => {
11617
11623
  Se.invoke({
11618
11624
  type: "domReady",
@@ -11621,18 +11627,18 @@ var t_ = new class {
11621
11627
  });
11622
11628
  } }, { default: () => Bc(e) });
11623
11629
  },
11624
- components: { [h]: {
11630
+ components: { [g]: {
11625
11631
  name: t,
11626
- __scopeId: g,
11632
+ __scopeId: _,
11627
11633
  async setup(e, { expose: r }) {
11628
11634
  r();
11629
11635
  let i = hc();
11630
- Mi("bridgeId", n), Mi("path", t), Mi(t, { id: m.pageId }), Mi("info", {
11631
- id: m.pageId,
11632
- sId: g
11636
+ Mi("bridgeId", n), Mi("path", t), Mi(t, { id: h.pageId }), Mi("info", {
11637
+ id: h.pageId,
11638
+ sId: _
11633
11639
  });
11634
11640
  let a = i.proxy;
11635
- a.__page__ = !0, m.setModuleInstance(m.pageId, a);
11641
+ a.__page__ = !0, h.setModuleInstance(h.pageId, a);
11636
11642
  let o = () => {}, s = !1, c = () => {
11637
11643
  s ||= (window.requestAnimationFrame(() => {
11638
11644
  Se.send({
@@ -11640,20 +11646,20 @@ var t_ = new class {
11640
11646
  target: "service",
11641
11647
  body: {
11642
11648
  bridgeId: n,
11643
- moduleId: m.pageId,
11649
+ moduleId: h.pageId,
11644
11650
  scrollTop: window.scrollY
11645
11651
  }
11646
11652
  }), s = !1;
11647
11653
  }), !0);
11648
11654
  };
11649
11655
  _a(() => {
11650
- o = Bg(zg(i.subTree), _, g), window.addEventListener("scroll", c, { passive: !0 }), Vr(() => {
11656
+ o = Bg(zg(i.subTree), v, _), window.addEventListener("scroll", c, { passive: !0 }), Vr(() => {
11651
11657
  Se.send({
11652
11658
  type: "pageReady",
11653
11659
  target: "service",
11654
11660
  body: {
11655
11661
  bridgeId: n,
11656
- moduleId: m.pageId
11662
+ moduleId: h.pageId
11657
11663
  }
11658
11664
  });
11659
11665
  });
@@ -11661,14 +11667,14 @@ var t_ = new class {
11661
11667
  o(), window.removeEventListener("scroll", c);
11662
11668
  });
11663
11669
  let { data: l, templateData: u } = Og();
11664
- m.setupData.set(m.pageId, l);
11665
- let d = await Se.wait(m.pageId);
11666
- return m.applyInitialData(m.pageId, l, d), u;
11670
+ h.setupData.set(h.pageId, l);
11671
+ let d = await Se.wait(h.pageId);
11672
+ return h.applyInitialData(h.pageId, l, d), u;
11667
11673
  },
11668
- components: v,
11669
- render: p ? function(...e) {
11670
- return Bc(Ls, null, [d.apply(this, e), Bc(Oa(`dd-${f}`))]);
11671
- } : d
11674
+ components: y,
11675
+ render: m ? function(...e) {
11676
+ return Bc(Ls, null, [f.apply(this, e), Bc(Oa(`dd-${p}`))]);
11677
+ } : f
11672
11678
  } }
11673
11679
  }
11674
11680
  };
@@ -11759,58 +11765,68 @@ var t_ = new class {
11759
11765
  }
11760
11766
  return n;
11761
11767
  }
11762
- createComponent(e, t, r, i = /* @__PURE__ */ new Map()) {
11768
+ createComponent(e, t, r, i = /* @__PURE__ */ new Map(), a = {}) {
11763
11769
  if (!r || Object.keys(r).length === 0) return;
11764
- let a = {}, o = this;
11765
- for (let [s, c] of Object.entries(r)) {
11766
- let r = `${e}\0${c}`, l = i.get(r);
11767
- if (l) {
11768
- a[`dd-${s}`] = l;
11770
+ let o = {}, s = this;
11771
+ for (let [c, l] of Object.entries(r)) {
11772
+ let u = l, d = `${e}\0${u}`, f = i.get(d);
11773
+ if (f) {
11774
+ o[`dd-${c}`] = f;
11769
11775
  continue;
11770
11776
  }
11771
- let u = Te.getModuleByPath(c);
11772
- if (!u?.moduleInfo) continue;
11773
- let { id: d, usingComponents: f, customTabBar: p } = u.moduleInfo, m = `data-v-${d}`, h = kg(u.moduleInfo.styleIsolation), g = {
11774
- name: c,
11775
- __scopeId: m,
11777
+ let p = Te.getModuleByPath(u);
11778
+ if (!p?.moduleInfo) {
11779
+ let t = a[c], n = t && r[t];
11780
+ if (n) {
11781
+ if (u = n, d = `${e}\0${u}`, f = i.get(d), f) {
11782
+ o[`dd-${c}`] = f;
11783
+ continue;
11784
+ }
11785
+ p = Te.getModuleByPath(u);
11786
+ }
11787
+ }
11788
+ if (!p?.moduleInfo) continue;
11789
+ let { id: m, usingComponents: h, componentPlaceholder: g = {}, customTabBar: _ } = p.moduleInfo, v = `data-v-${m}`, b = kg(p.moduleInfo.styleIsolation), S = {
11790
+ name: u,
11791
+ __scopeId: v,
11776
11792
  components: void 0,
11777
11793
  props: {
11778
- ...u.props,
11794
+ ...p.props,
11779
11795
  [Dg]: { type: null }
11780
11796
  },
11781
11797
  async setup(r, { attrs: i, expose: a }) {
11782
- let s = V("info"), l = V("path"), f = hc();
11798
+ let o = V("info"), c = V("path"), l = hc();
11783
11799
  a({
11784
11800
  props: r,
11785
- sId: f.vnode.scopeId || s.sId
11801
+ sId: l.vnode.scopeId || o.sId
11786
11802
  });
11787
- let g = o.getParentModuleId(f) || s.id, _ = V(e, null), v = _?.id || g, b = _ ? e : l, S = `${d}_${y()}`;
11803
+ let d = s.getParentModuleId(l) || o.id, f = V(e, null), h = f?.id || d, g = f ? e : c, S = `${m}_${y()}`;
11788
11804
  Mi("info", {
11789
11805
  id: S,
11790
- sId: m
11791
- }), Mi("path", c), Mi(c, {
11806
+ sId: v
11807
+ }), Mi("path", u), Mi(u, {
11792
11808
  id: S,
11793
- pagePath: b,
11794
- pageId: v
11809
+ pagePath: g,
11810
+ pageId: h
11795
11811
  });
11796
- let C = f.proxy;
11797
- o.setModuleInstance(S, C);
11798
- let ee = () => _e(u.propertySchemas, Wg(u.propertySchemas, Ug(u.propertySchemas, ju(r), f.vnode), f.vnode), {
11799
- isAbsent: (e) => !Vg(f.vnode.props, e) && !(e === "style" && Vg(f.vnode.props, Dg)),
11812
+ let C = l.proxy;
11813
+ s.setModuleInstance(S, C);
11814
+ let ee = () => _e(p.propertySchemas, Wg(p.propertySchemas, Ug(p.propertySchemas, ju(r), l.vnode), l.vnode), {
11815
+ isAbsent: (e) => !Vg(l.vnode.props, e) && !(e === "style" && Vg(l.vnode.props, Dg)),
11800
11816
  warn: (e) => console.warn("[system]", "[render]", e)
11801
11817
  }), w = [];
11802
- for (let [e, t] of Object.entries(u.props ?? {})) t.cls && w.push(e);
11818
+ for (let [e, t] of Object.entries(p.props ?? {})) t.cls && w.push(e);
11803
11819
  Mi("externalClasses", w);
11804
- let te = Ng(i), ne = ee(), T = Object.keys(u.propertySchemas || {}).filter((e) => Vg(f.vnode.props, e) || e === "style" && Vg(f.vnode.props, Dg)), re = Se.waitAndSend(S, {
11820
+ let te = Ng(i), ne = ee(), T = Object.keys(p.propertySchemas || {}).filter((e) => Vg(l.vnode.props, e) || e === "style" && Vg(l.vnode.props, Dg)), re = Se.waitAndSend(S, {
11805
11821
  type: "mC",
11806
11822
  target: "service",
11807
11823
  body: {
11808
11824
  bridgeId: t,
11809
11825
  moduleId: S,
11810
- path: c,
11811
- isCustomTabBar: p === !0,
11812
- pageId: v,
11813
- parentId: g,
11826
+ path: u,
11827
+ isCustomTabBar: _ === !0,
11828
+ pageId: h,
11829
+ parentId: d,
11814
11830
  eventAttr: te,
11815
11831
  targetInfo: {
11816
11832
  dataset: x(i, ju),
@@ -11824,22 +11840,22 @@ var t_ = new class {
11824
11840
  }), ie = !1, E, D = () => {
11825
11841
  ie || (ie = !0, E?.());
11826
11842
  };
11827
- o._pendingSetups.set(S, new Promise((e) => E = e)), _a(() => {
11828
- let e = zg(f.subTree);
11829
- o.registerModuleRoots(S, e);
11830
- for (let t of e) t.setAttribute(wg, ""), t.setAttribute(Tg, h), Mg(t, d);
11843
+ s._pendingSetups.set(S, new Promise((e) => E = e)), _a(() => {
11844
+ let e = zg(l.subTree);
11845
+ s.registerModuleRoots(S, e);
11846
+ for (let t of e) t.setAttribute(wg, ""), t.setAttribute(Tg, b), Mg(t, m);
11831
11847
  Vr(() => {
11832
- let n = o.getRenderParentModuleId(e, S);
11848
+ let n = s.getRenderParentModuleId(e, S);
11833
11849
  Se.send({
11834
11850
  type: "mA",
11835
11851
  target: "service",
11836
11852
  body: {
11837
11853
  bridgeId: t,
11838
11854
  moduleId: S,
11839
- parentId: n || g
11855
+ parentId: n || d
11840
11856
  }
11841
11857
  });
11842
- let r = C.$el?._propBindings, i = o.collectCustomEventPath(C.$el, S);
11858
+ let r = C.$el?._propBindings, i = s.collectCustomEventPath(C.$el, S);
11843
11859
  Se.send({
11844
11860
  type: "mR",
11845
11861
  target: "service",
@@ -11856,7 +11872,7 @@ var t_ = new class {
11856
11872
  info: {
11857
11873
  attrs: i,
11858
11874
  bridgeId: t,
11859
- moduleId: v
11875
+ moduleId: h
11860
11876
  }
11861
11877
  });
11862
11878
  });
@@ -11864,18 +11880,18 @@ var t_ = new class {
11864
11880
  let ae;
11865
11881
  xa(() => {
11866
11882
  ae?.();
11867
- let e = zg(f.subTree);
11868
- o.unregisterModuleRoots(S, e), Se.send({
11883
+ let e = zg(l.subTree);
11884
+ s.unregisterModuleRoots(S, e), Se.send({
11869
11885
  type: "mU",
11870
11886
  target: "service",
11871
11887
  body: {
11872
11888
  bridgeId: t,
11873
11889
  moduleId: S
11874
11890
  }
11875
- }), o.deleteModuleInstance(S), o.setupData.delete(S), o.initializedModules.delete(S), o.preInitUpdates.delete(S), o._pendingSetups.delete(S), D();
11891
+ }), s.deleteModuleInstance(S), s.setupData.delete(S), s.initializedModules.delete(S), s.preInitUpdates.delete(S), s._pendingSetups.delete(S), D();
11876
11892
  });
11877
11893
  let { data: oe, templateData: se } = Og();
11878
- o.setupData.set(S, oe), u.builtinBehaviors?.has("wx://form-field") && (ae = V("registerFormControl", void 0)?.({
11894
+ s.setupData.set(S, oe), p.builtinBehaviors?.has("wx://form-field") && (ae = V("registerFormControl", void 0)?.({
11879
11895
  getName: () => Object.prototype.hasOwnProperty.call(oe, "name") ? oe.name : r.name,
11880
11896
  getValue: () => Object.prototype.hasOwnProperty.call(oe, "value") ? oe.value : r.value
11881
11897
  }));
@@ -11899,15 +11915,15 @@ var t_ = new class {
11899
11915
  });
11900
11916
  }, { immediate: !0 });
11901
11917
  let le = await re;
11902
- return o._pendingSetups.delete(S), D(), o.applyInitialData(S, oe, le), se;
11918
+ return s._pendingSetups.delete(S), D(), s.applyInitialData(S, oe, le), se;
11903
11919
  },
11904
11920
  render(...e) {
11905
- return jg(u.moduleInfo.render.apply(this, e), h, d);
11921
+ return jg(p.moduleInfo.render.apply(this, e), b, m);
11906
11922
  }
11907
11923
  };
11908
- i.set(r, g), g.components = this.createComponent(c, t, f, i), a[`dd-${s}`] = g;
11924
+ i.set(d, S), S.components = this.createComponent(u, t, h, i, g), o[`dd-${c}`] = S;
11909
11925
  }
11910
- return a;
11926
+ return o;
11911
11927
  }
11912
11928
  updateModule(e) {
11913
11929
  let { moduleId: t, data: n, changes: r = [] } = e, i = this.setupData.get(t);