@famibee/skynovel 2.0.2 → 2.0.4

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 (121) hide show
  1. package/dist/Button.js +36 -34
  2. package/dist/Button.js.map +1 -1
  3. package/dist/CallStack.js +11 -6
  4. package/dist/CallStack.js.map +1 -1
  5. package/dist/CmnInterface.js +13 -11
  6. package/dist/CmnInterface.js.map +1 -1
  7. package/dist/CmnLib.js +58 -56
  8. package/dist/CmnLib.js.map +1 -1
  9. package/dist/Config.js +9 -7
  10. package/dist/Config.js.map +1 -1
  11. package/dist/ConfigBase.js +52 -49
  12. package/dist/ConfigBase.js.map +1 -1
  13. package/dist/DebugMng.js +9 -6
  14. package/dist/DebugMng.js.map +1 -1
  15. package/dist/EventListenerCtn.js +6 -4
  16. package/dist/EventListenerCtn.js.map +1 -1
  17. package/dist/EventMng.js +522 -417
  18. package/dist/EventMng.js.map +1 -1
  19. package/dist/Grammar.js +22 -20
  20. package/dist/Grammar.js.map +1 -1
  21. package/dist/GrpLayer.js +58 -57
  22. package/dist/GrpLayer.js.map +1 -1
  23. package/dist/Layer.js +66 -64
  24. package/dist/Layer.js.map +1 -1
  25. package/dist/LayerMng.js +461 -441
  26. package/dist/LayerMng.js.map +1 -1
  27. package/dist/Main.js +69 -67
  28. package/dist/Main.js.map +1 -1
  29. package/dist/PropParser.js +23 -19
  30. package/dist/PropParser.js.map +1 -1
  31. package/dist/Reading.js +422 -418
  32. package/dist/Reading.js.map +1 -1
  33. package/dist/RubySpliter.js +4 -2
  34. package/dist/RubySpliter.js.map +1 -1
  35. package/dist/ScriptIterator.js +374 -370
  36. package/dist/ScriptIterator.js.map +1 -1
  37. package/dist/SndBuf.js +643 -622
  38. package/dist/SndBuf.js.map +1 -1
  39. package/dist/SoundMng.js +59 -60
  40. package/dist/SoundMng.js.map +1 -1
  41. package/dist/SpritesMng.js +135 -129
  42. package/dist/SpritesMng.js.map +1 -1
  43. package/dist/SysBase.js +1019 -955
  44. package/dist/SysBase.js.map +1 -1
  45. package/dist/TxtLayer.js +558 -551
  46. package/dist/TxtLayer.js.map +1 -1
  47. package/dist/Variable.js +47 -45
  48. package/dist/Variable.js.map +1 -1
  49. package/dist/chunk.js +11 -9
  50. package/dist/gamepad.js +396 -660
  51. package/dist/gamepad.js.map +1 -1
  52. package/dist/pixi.js +3044 -3648
  53. package/dist/pixi.js.map +1 -1
  54. package/dist/platform.js +6 -4
  55. package/dist/platform.js.map +1 -1
  56. package/dist/rolldown-runtime.js +20 -0
  57. package/dist/web.js +106 -590
  58. package/dist/web.js.map +1 -1
  59. package/dist_app/Button.js +36 -34
  60. package/dist_app/Button.js.map +1 -1
  61. package/dist_app/CallStack.js +11 -6
  62. package/dist_app/CallStack.js.map +1 -1
  63. package/dist_app/CmnInterface.js +13 -11
  64. package/dist_app/CmnInterface.js.map +1 -1
  65. package/dist_app/CmnLib.js +58 -56
  66. package/dist_app/CmnLib.js.map +1 -1
  67. package/dist_app/Config.js +9 -7
  68. package/dist_app/Config.js.map +1 -1
  69. package/dist_app/ConfigBase.js +52 -49
  70. package/dist_app/ConfigBase.js.map +1 -1
  71. package/dist_app/DebugMng.js +9 -6
  72. package/dist_app/DebugMng.js.map +1 -1
  73. package/dist_app/EventListenerCtn.js +6 -4
  74. package/dist_app/EventListenerCtn.js.map +1 -1
  75. package/dist_app/EventMng.js +522 -417
  76. package/dist_app/EventMng.js.map +1 -1
  77. package/dist_app/Grammar.js +22 -20
  78. package/dist_app/Grammar.js.map +1 -1
  79. package/dist_app/GrpLayer.js +58 -57
  80. package/dist_app/GrpLayer.js.map +1 -1
  81. package/dist_app/Layer.js +66 -64
  82. package/dist_app/Layer.js.map +1 -1
  83. package/dist_app/LayerMng.js +461 -441
  84. package/dist_app/LayerMng.js.map +1 -1
  85. package/dist_app/Main.js +69 -67
  86. package/dist_app/Main.js.map +1 -1
  87. package/dist_app/PropParser.js +23 -19
  88. package/dist_app/PropParser.js.map +1 -1
  89. package/dist_app/Reading.js +422 -418
  90. package/dist_app/Reading.js.map +1 -1
  91. package/dist_app/RubySpliter.js +4 -2
  92. package/dist_app/RubySpliter.js.map +1 -1
  93. package/dist_app/ScriptIterator.js +374 -370
  94. package/dist_app/ScriptIterator.js.map +1 -1
  95. package/dist_app/SndBuf.js +643 -622
  96. package/dist_app/SndBuf.js.map +1 -1
  97. package/dist_app/SoundMng.js +59 -60
  98. package/dist_app/SoundMng.js.map +1 -1
  99. package/dist_app/SpritesMng.js +135 -129
  100. package/dist_app/SpritesMng.js.map +1 -1
  101. package/dist_app/SysBase.js +1019 -955
  102. package/dist_app/SysBase.js.map +1 -1
  103. package/dist_app/TxtLayer.js +558 -551
  104. package/dist_app/TxtLayer.js.map +1 -1
  105. package/dist_app/Variable.js +47 -45
  106. package/dist_app/Variable.js.map +1 -1
  107. package/dist_app/app.js +62 -63
  108. package/dist_app/app.js.map +1 -1
  109. package/dist_app/appMain.js +1 -21
  110. package/dist_app/appMain.js.map +1 -1
  111. package/dist_app/chunk.js +11 -9
  112. package/dist_app/gamepad.js +396 -660
  113. package/dist_app/gamepad.js.map +1 -1
  114. package/dist_app/pixi.js +2028 -1990
  115. package/dist_app/pixi.js.map +1 -1
  116. package/dist_app/platform.js +6 -4
  117. package/dist_app/platform.js.map +1 -1
  118. package/dist_app/preload.js +1 -1
  119. package/dist_app/preload.js.map +1 -1
  120. package/dist_app/rolldown-runtime.js +20 -0
  121. package/package.json +20 -47
package/dist/EventMng.js CHANGED
@@ -1,50 +1,46 @@
1
- import { r as __toDynamicImportESM } from "./chunk.js";
2
- import { i as EVNM_KEY, m as mesErrJSON, n as EVNM_BUTTON, o as addStyle, r as EVNM_CLICK, s as argChk_Boolean, t as CmnLib } from "./CmnLib.js";
3
- import "./CmnInterface.js";
4
- import { _ as clearTextureCache, m as Container } from "./pixi.js";
5
- import { t as EventListenerCtn } from "./EventListenerCtn.js";
6
- import { n as SEARCH_PATH_ARG_EXT } from "./ConfigBase.js";
7
- import { t as SysBase } from "./SysBase.js";
8
- import "./Layer.js";
9
- import "./DebugMng.js";
10
- import { n as ReadingState, t as Reading } from "./Reading.js";
11
- import "./SpritesMng.js";
12
- import { Button } from "./Button.js";
13
- import { TxtLayer } from "./TxtLayer.js";
14
- var FocusMng = class {
1
+ import { i as e, m as t, n, o as r, r as i, s as a, t as o } from "./CmnLib.js";
2
+ import { _ as s, m as c } from "./pixi.js";
3
+ import { t as l } from "./EventListenerCtn.js";
4
+ import { n as u } from "./ConfigBase.js";
5
+ import { t as d } from "./SysBase.js";
6
+ import { n as f, t as p } from "./Reading.js";
7
+ import { Button as m } from "./Button.js";
8
+ import { TxtLayer as h } from "./TxtLayer.js";
9
+ //#region src/sn/FocusMng.ts
10
+ var g = class {
15
11
  #e = [];
16
12
  #t = -1;
17
- #n = new EventListenerCtn();
13
+ #n = new l();
18
14
  constructor(e, t) {
19
15
  this.#a = t.isApp ? () => e.focus() : () => globalThis.focus();
20
16
  }
21
17
  destroy() {
22
18
  this.#e = [], this.#t = -1, this.#n.clear();
23
19
  }
24
- add(e, n, r) {
25
- if (this.#e.findIndex((t) => t.btn === e) >= 0) return;
26
- if (e instanceof Container) {
27
- e.on("pointerdown", () => {
28
- for (let t = this.#e.length - 1; t >= 0; --t) if (this.#e[t].btn === e) {
29
- this.#t = t;
20
+ add(t, n, r) {
21
+ if (this.#e.findIndex((e) => e.btn === t) >= 0) return;
22
+ if (t instanceof c) {
23
+ t.on("pointerdown", () => {
24
+ for (let e = this.#e.length - 1; e >= 0; --e) if (this.#e[e].btn === t) {
25
+ this.#t = e;
30
26
  return;
31
27
  }
32
28
  this.#t = -1;
33
29
  }), this.#e.push({
34
- btn: e,
30
+ btn: t,
35
31
  on: n,
36
32
  off: r
37
33
  });
38
34
  return;
39
35
  }
40
- this.#n.add(e, "focus", () => {
41
- for (let t = this.#e.length - 1; t >= 0; --t) if (this.#e[t].btn === e) {
42
- this.#t = t;
36
+ this.#n.add(t, "focus", () => {
37
+ for (let e = this.#e.length - 1; e >= 0; --e) if (this.#e[e].btn === t) {
38
+ this.#t = e;
43
39
  return;
44
40
  }
45
41
  this.#t = -1;
46
42
  });
47
- let i = (e) => {}, a = e.localName === "button" || e.localName === "a" ? (e) => !e.isTrusted && e.key === "Enter" : (e) => e.key === "Enter", o = e;
43
+ let i = (e) => {}, a = t.localName === "button" || t.localName === "a" ? (e) => !e.isTrusted && e.key === "Enter" : (e) => e.key === "Enter", o = t;
48
44
  switch (o.type ?? "") {
49
45
  case "checkbox":
50
46
  i = () => {
@@ -52,7 +48,7 @@ var FocusMng = class {
52
48
  };
53
49
  break;
54
50
  case "":
55
- e.querySelectorAll("input[type]").length > 0 && (i = (t) => this.#r(e, t.key), a = () => !1);
51
+ t.querySelectorAll("input[type]").length > 0 && (i = (e) => this.#r(t, e.key), a = () => !1);
56
52
  break;
57
53
  case "range":
58
54
  i = (e) => {
@@ -68,16 +64,16 @@ var FocusMng = class {
68
64
  };
69
65
  break;
70
66
  }
71
- this.#n.add(e, EVNM_KEY, (t) => {
72
- if (!(t.key !== "ArrowUp" && t.key !== "ArrowDown" && t.key !== "Enter")) {
73
- if (t.stopImmediatePropagation(), a(t)) {
74
- e.dispatchEvent(new MouseEvent("click"));
67
+ this.#n.add(t, e, (e) => {
68
+ if (!(e.key !== "ArrowUp" && e.key !== "ArrowDown" && e.key !== "Enter")) {
69
+ if (e.stopImmediatePropagation(), a(e)) {
70
+ t.dispatchEvent(new MouseEvent("click"));
75
71
  return;
76
72
  }
77
- i(t);
73
+ i(e);
78
74
  }
79
- }, { passive: !0 }), e.hasAttribute("tabindex") || (e.tabIndex = 0), this.#e.push({
80
- btn: e,
75
+ }, { passive: !0 }), t.hasAttribute("tabindex") || (t.tabIndex = 0), this.#e.push({
76
+ btn: t,
81
77
  on: n,
82
78
  off: r
83
79
  });
@@ -126,7 +122,7 @@ var FocusMng = class {
126
122
  this.#t = -1;
127
123
  }
128
124
  }
129
- #i = CmnLib.debugLog ? (e) => console.log(`👾 <FocusMng idx:${String(e)} btn:%o`, this.#e[e].btn) : () => {};
125
+ #i = o.debugLog ? (e) => console.log(`👾 <FocusMng idx:${String(e)} btn:%o`, this.#e[e].btn) : () => {};
130
126
  getFocus() {
131
127
  if (this.#t < 0) return null;
132
128
  this.#o(), this.#t >= this.#e.length && (this.#t = 0);
@@ -140,23 +136,23 @@ var FocusMng = class {
140
136
  #o() {
141
137
  for (let e = this.#e.length - 1; e >= 0; --e) {
142
138
  let t = this.#e[e];
143
- !(t.btn instanceof Container) || t.btn.parent ? t.off() : this.#e.splice(e, 1);
139
+ !(t.btn instanceof c) || t.btn.parent ? t.off() : this.#e.splice(e, 1);
144
140
  }
145
141
  }
146
- }, bottom = "bottom", right = "right", left = "left", auto = "auto", basePlacements = [
142
+ }, _ = "bottom", v = "right", y = "left", b = "auto", x = [
147
143
  "top",
148
- bottom,
149
- right,
150
- left
151
- ], start = "start", clippingParents = "clippingParents", viewport = "viewport", popper = "popper", reference = "reference", variationPlacements = /* @__PURE__ */ basePlacements.reduce(function(e, t) {
152
- return e.concat([t + "-" + start, t + "-end"]);
153
- }, []), placements = /* @__PURE__ */ [].concat(basePlacements, [auto]).reduce(function(e, t) {
144
+ _,
145
+ v,
146
+ y
147
+ ], S = "start", C = "clippingParents", w = "viewport", T = "popper", E = "reference", D = /*#__PURE__*/ x.reduce(function(e, t) {
148
+ return e.concat([t + "-" + S, t + "-end"]);
149
+ }, []), O = /*#__PURE__*/ [].concat(x, [b]).reduce(function(e, t) {
154
150
  return e.concat([
155
151
  t,
156
- t + "-" + start,
152
+ t + "-" + S,
157
153
  t + "-end"
158
154
  ]);
159
- }, []), modifierPhases = [
155
+ }, []), k = [
160
156
  "beforeRead",
161
157
  "read",
162
158
  "afterRead",
@@ -167,10 +163,14 @@ var FocusMng = class {
167
163
  "write",
168
164
  "afterWrite"
169
165
  ];
170
- function getNodeName(e) {
166
+ //#endregion
167
+ //#region node_modules/@popperjs/core/lib/dom-utils/getNodeName.js
168
+ function A(e) {
171
169
  return e ? (e.nodeName || "").toLowerCase() : null;
172
170
  }
173
- function getWindow(e) {
171
+ //#endregion
172
+ //#region node_modules/@popperjs/core/lib/dom-utils/getWindow.js
173
+ function j(e) {
174
174
  if (e == null) return window;
175
175
  if (e.toString() !== "[object Window]") {
176
176
  var t = e.ownerDocument;
@@ -178,26 +178,30 @@ function getWindow(e) {
178
178
  }
179
179
  return e;
180
180
  }
181
- function isElement(e) {
182
- return e instanceof getWindow(e).Element || e instanceof Element;
181
+ //#endregion
182
+ //#region node_modules/@popperjs/core/lib/dom-utils/instanceOf.js
183
+ function M(e) {
184
+ return e instanceof j(e).Element || e instanceof Element;
183
185
  }
184
- function isHTMLElement(e) {
185
- return e instanceof getWindow(e).HTMLElement || e instanceof HTMLElement;
186
+ function N(e) {
187
+ return e instanceof j(e).HTMLElement || e instanceof HTMLElement;
186
188
  }
187
- function isShadowRoot(e) {
188
- return typeof ShadowRoot > "u" ? !1 : e instanceof getWindow(e).ShadowRoot || e instanceof ShadowRoot;
189
+ function P(e) {
190
+ return typeof ShadowRoot > "u" ? !1 : e instanceof j(e).ShadowRoot || e instanceof ShadowRoot;
189
191
  }
190
- function applyStyles(e) {
192
+ //#endregion
193
+ //#region node_modules/@popperjs/core/lib/modifiers/applyStyles.js
194
+ function F(e) {
191
195
  var t = e.state;
192
196
  Object.keys(t.elements).forEach(function(e) {
193
197
  var n = t.styles[e] || {}, r = t.attributes[e] || {}, i = t.elements[e];
194
- !isHTMLElement(i) || !getNodeName(i) || (Object.assign(i.style, n), Object.keys(r).forEach(function(e) {
198
+ !N(i) || !A(i) || (Object.assign(i.style, n), Object.keys(r).forEach(function(e) {
195
199
  var t = r[e];
196
200
  t === !1 ? i.removeAttribute(e) : i.setAttribute(e, t === !0 ? "" : t);
197
201
  }));
198
202
  });
199
203
  }
200
- function effect$2(e) {
204
+ function I(e) {
201
205
  var t = e.state, n = {
202
206
  popper: {
203
207
  position: t.options.strategy,
@@ -213,38 +217,48 @@ function effect$2(e) {
213
217
  var r = t.elements[e], i = t.attributes[e] || {}, a = Object.keys(t.styles.hasOwnProperty(e) ? t.styles[e] : n[e]).reduce(function(e, t) {
214
218
  return e[t] = "", e;
215
219
  }, {});
216
- !isHTMLElement(r) || !getNodeName(r) || (Object.assign(r.style, a), Object.keys(i).forEach(function(e) {
220
+ !N(r) || !A(r) || (Object.assign(r.style, a), Object.keys(i).forEach(function(e) {
217
221
  r.removeAttribute(e);
218
222
  }));
219
223
  });
220
224
  };
221
225
  }
222
- var applyStyles_default = {
226
+ var ee = {
223
227
  name: "applyStyles",
224
228
  enabled: !0,
225
229
  phase: "write",
226
- fn: applyStyles,
227
- effect: effect$2,
230
+ fn: F,
231
+ effect: I,
228
232
  requires: ["computeStyles"]
229
233
  };
230
- function getBasePlacement(e) {
234
+ //#endregion
235
+ //#region node_modules/@popperjs/core/lib/utils/getBasePlacement.js
236
+ function L(e) {
231
237
  return e.split("-")[0];
232
238
  }
233
- var max = Math.max, min = Math.min, round = Math.round;
234
- function getUAString() {
239
+ //#endregion
240
+ //#region node_modules/@popperjs/core/lib/utils/math.js
241
+ var R = Math.max, te = Math.min, z = Math.round;
242
+ //#endregion
243
+ //#region node_modules/@popperjs/core/lib/utils/userAgent.js
244
+ function B() {
235
245
  var e = navigator.userAgentData;
236
246
  return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(e) {
237
247
  return e.brand + "/" + e.version;
238
248
  }).join(" ") : navigator.userAgent;
239
249
  }
240
- function isLayoutViewport() {
241
- return !/^((?!chrome|android).)*safari/i.test(getUAString());
250
+ //#endregion
251
+ //#region node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js
252
+ function ne() {
253
+ return !/^((?!chrome|android).)*safari/i.test(B());
242
254
  }
243
- function getBoundingClientRect(e, t, n) {
255
+ //#endregion
256
+ //#region node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js
257
+ function V(e, t, n) {
244
258
  t === void 0 && (t = !1), n === void 0 && (n = !1);
245
259
  var r = e.getBoundingClientRect(), i = 1, a = 1;
246
- t && isHTMLElement(e) && (i = e.offsetWidth > 0 && round(r.width) / e.offsetWidth || 1, a = e.offsetHeight > 0 && round(r.height) / e.offsetHeight || 1);
247
- var o = (isElement(e) ? getWindow(e) : window).visualViewport, s = !isLayoutViewport() && n, c = (r.left + (s && o ? o.offsetLeft : 0)) / i, l = (r.top + (s && o ? o.offsetTop : 0)) / a, u = r.width / i, d = r.height / a;
260
+ t && N(e) && (i = e.offsetWidth > 0 && z(r.width) / e.offsetWidth || 1, a = e.offsetHeight > 0 && z(r.height) / e.offsetHeight || 1);
261
+ var o = (M(e) ? j(e) : window).visualViewport, s = !ne() && n, c = (r.left + (s && o ? o.offsetLeft : 0)) / i, l = (r.top + (s && o ? o.offsetTop : 0)) / a, u = r.width / i, d = r.height / a;
248
262
  return {
249
263
  width: u,
250
264
  height: d,
@@ -256,8 +270,10 @@ function getBoundingClientRect(e, t, n) {
256
270
  y: l
257
271
  };
258
272
  }
259
- function getLayoutRect(e) {
260
- var t = getBoundingClientRect(e), n = e.offsetWidth, r = e.offsetHeight;
273
+ //#endregion
274
+ //#region node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js
275
+ function re(e) {
276
+ var t = V(e), n = e.offsetWidth, r = e.offsetHeight;
261
277
  return Math.abs(t.width - n) <= 1 && (n = t.width), Math.abs(t.height - r) <= 1 && (r = t.height), {
262
278
  x: e.offsetLeft,
263
279
  y: e.offsetTop,
@@ -265,10 +281,12 @@ function getLayoutRect(e) {
265
281
  height: r
266
282
  };
267
283
  }
268
- function contains(e, t) {
284
+ //#endregion
285
+ //#region node_modules/@popperjs/core/lib/dom-utils/contains.js
286
+ function ie(e, t) {
269
287
  var n = t.getRootNode && t.getRootNode();
270
288
  if (e.contains(t)) return !0;
271
- if (n && isShadowRoot(n)) {
289
+ if (n && P(n)) {
272
290
  var r = t;
273
291
  do {
274
292
  if (r && e.isSameNode(r)) return !0;
@@ -277,51 +295,67 @@ function contains(e, t) {
277
295
  }
278
296
  return !1;
279
297
  }
280
- function getComputedStyle$1(e) {
281
- return getWindow(e).getComputedStyle(e);
298
+ //#endregion
299
+ //#region node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js
300
+ function H(e) {
301
+ return j(e).getComputedStyle(e);
282
302
  }
283
- function isTableElement(e) {
303
+ //#endregion
304
+ //#region node_modules/@popperjs/core/lib/dom-utils/isTableElement.js
305
+ function ae(e) {
284
306
  return [
285
307
  "table",
286
308
  "td",
287
309
  "th"
288
- ].indexOf(getNodeName(e)) >= 0;
289
- }
290
- function getDocumentElement(e) {
291
- return ((isElement(e) ? e.ownerDocument : e.document) || window.document).documentElement;
292
- }
293
- function getParentNode(e) {
294
- return getNodeName(e) === "html" ? e : e.assignedSlot || e.parentNode || (isShadowRoot(e) ? e.host : null) || getDocumentElement(e);
295
- }
296
- function getTrueOffsetParent(e) {
297
- return !isHTMLElement(e) || getComputedStyle$1(e).position === "fixed" ? null : e.offsetParent;
298
- }
299
- function getContainingBlock(e) {
300
- var t = /firefox/i.test(getUAString());
301
- if (/Trident/i.test(getUAString()) && isHTMLElement(e) && getComputedStyle$1(e).position === "fixed") return null;
302
- var n = getParentNode(e);
303
- for (isShadowRoot(n) && (n = n.host); isHTMLElement(n) && ["html", "body"].indexOf(getNodeName(n)) < 0;) {
304
- var r = getComputedStyle$1(n);
310
+ ].indexOf(A(e)) >= 0;
311
+ }
312
+ //#endregion
313
+ //#region node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js
314
+ function U(e) {
315
+ return ((M(e) ? e.ownerDocument : e.document) || window.document).documentElement;
316
+ }
317
+ //#endregion
318
+ //#region node_modules/@popperjs/core/lib/dom-utils/getParentNode.js
319
+ function W(e) {
320
+ return A(e) === "html" ? e : e.assignedSlot || e.parentNode || (P(e) ? e.host : null) || U(e);
321
+ }
322
+ //#endregion
323
+ //#region node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js
324
+ function oe(e) {
325
+ return !N(e) || H(e).position === "fixed" ? null : e.offsetParent;
326
+ }
327
+ function se(e) {
328
+ var t = /firefox/i.test(B());
329
+ if (/Trident/i.test(B()) && N(e) && H(e).position === "fixed") return null;
330
+ var n = W(e);
331
+ for (P(n) && (n = n.host); N(n) && ["html", "body"].indexOf(A(n)) < 0;) {
332
+ var r = H(n);
305
333
  if (r.transform !== "none" || r.perspective !== "none" || r.contain === "paint" || ["transform", "perspective"].indexOf(r.willChange) !== -1 || t && r.willChange === "filter" || t && r.filter && r.filter !== "none") return n;
306
334
  n = n.parentNode;
307
335
  }
308
336
  return null;
309
337
  }
310
- function getOffsetParent(e) {
311
- for (var t = getWindow(e), n = getTrueOffsetParent(e); n && isTableElement(n) && getComputedStyle$1(n).position === "static";) n = getTrueOffsetParent(n);
312
- return n && (getNodeName(n) === "html" || getNodeName(n) === "body" && getComputedStyle$1(n).position === "static") ? t : n || getContainingBlock(e) || t;
338
+ function G(e) {
339
+ for (var t = j(e), n = oe(e); n && ae(n) && H(n).position === "static";) n = oe(n);
340
+ return n && (A(n) === "html" || A(n) === "body" && H(n).position === "static") ? t : n || se(e) || t;
313
341
  }
314
- function getMainAxisFromPlacement(e) {
342
+ //#endregion
343
+ //#region node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js
344
+ function ce(e) {
315
345
  return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
316
346
  }
317
- function within(e, t, n) {
318
- return max(e, min(t, n));
347
+ //#endregion
348
+ //#region node_modules/@popperjs/core/lib/utils/within.js
349
+ function K(e, t, n) {
350
+ return R(e, te(t, n));
319
351
  }
320
- function withinMaxClamp(e, t, n) {
321
- var r = within(e, t, n);
352
+ function le(e, t, n) {
353
+ var r = K(e, t, n);
322
354
  return r > n ? n : r;
323
355
  }
324
- function getFreshSideObject() {
356
+ //#endregion
357
+ //#region node_modules/@popperjs/core/lib/utils/getFreshSideObject.js
358
+ function ue() {
325
359
  return {
326
360
  top: 0,
327
361
  right: 0,
@@ -329,54 +363,64 @@ function getFreshSideObject() {
329
363
  left: 0
330
364
  };
331
365
  }
332
- function mergePaddingObject(e) {
333
- return Object.assign({}, getFreshSideObject(), e);
366
+ //#endregion
367
+ //#region node_modules/@popperjs/core/lib/utils/mergePaddingObject.js
368
+ function q(e) {
369
+ return Object.assign({}, ue(), e);
334
370
  }
335
- function expandToHashMap(e, t) {
371
+ //#endregion
372
+ //#region node_modules/@popperjs/core/lib/utils/expandToHashMap.js
373
+ function de(e, t) {
336
374
  return t.reduce(function(t, n) {
337
375
  return t[n] = e, t;
338
376
  }, {});
339
377
  }
340
- var toPaddingObject = function(e, t) {
341
- return e = typeof e == "function" ? e(Object.assign({}, t.rects, { placement: t.placement })) : e, mergePaddingObject(typeof e == "number" ? expandToHashMap(e, basePlacements) : e);
378
+ //#endregion
379
+ //#region node_modules/@popperjs/core/lib/modifiers/arrow.js
380
+ var fe = function(e, t) {
381
+ return e = typeof e == "function" ? e(Object.assign({}, t.rects, { placement: t.placement })) : e, q(typeof e == "number" ? de(e, x) : e);
342
382
  };
343
- function arrow(e) {
344
- var t, n = e.state, r = e.name, i = e.options, a = n.elements.arrow, o = n.modifiersData.popperOffsets, s = getBasePlacement(n.placement), c = getMainAxisFromPlacement(s), l = ["left", "right"].indexOf(s) >= 0 ? "height" : "width";
383
+ function pe(e) {
384
+ var t, n = e.state, r = e.name, i = e.options, a = n.elements.arrow, o = n.modifiersData.popperOffsets, s = L(n.placement), c = ce(s), l = ["left", "right"].indexOf(s) >= 0 ? "height" : "width";
345
385
  if (!(!a || !o)) {
346
- var u = toPaddingObject(i.padding, n), d = getLayoutRect(a), f = c === "y" ? "top" : left, p = c === "y" ? bottom : right, m = n.rects.reference[l] + n.rects.reference[c] - o[c] - n.rects.popper[l], h = o[c] - n.rects.reference[c], g = getOffsetParent(a), _ = g ? c === "y" ? g.clientHeight || 0 : g.clientWidth || 0 : 0, x = m / 2 - h / 2, S = u[f], C = _ - d[l] - u[p], w = _ / 2 - d[l] / 2 + x, T = within(S, w, C), E = c;
386
+ var u = fe(i.padding, n), d = re(a), f = c === "y" ? "top" : y, p = c === "y" ? _ : v, m = n.rects.reference[l] + n.rects.reference[c] - o[c] - n.rects.popper[l], h = o[c] - n.rects.reference[c], g = G(a), b = g ? c === "y" ? g.clientHeight || 0 : g.clientWidth || 0 : 0, x = m / 2 - h / 2, S = u[f], C = b - d[l] - u[p], w = b / 2 - d[l] / 2 + x, T = K(S, w, C), E = c;
347
387
  n.modifiersData[r] = (t = {}, t[E] = T, t.centerOffset = T - w, t);
348
388
  }
349
389
  }
350
- function effect$1(e) {
390
+ function me(e) {
351
391
  var t = e.state, n = e.options.element, r = n === void 0 ? "[data-popper-arrow]" : n;
352
- r != null && (typeof r == "string" && (r = t.elements.popper.querySelector(r), !r) || contains(t.elements.popper, r) && (t.elements.arrow = r));
392
+ r != null && (typeof r == "string" && (r = t.elements.popper.querySelector(r), !r) || ie(t.elements.popper, r) && (t.elements.arrow = r));
353
393
  }
354
- var arrow_default = {
394
+ var he = {
355
395
  name: "arrow",
356
396
  enabled: !0,
357
397
  phase: "main",
358
- fn: arrow,
359
- effect: effect$1,
398
+ fn: pe,
399
+ effect: me,
360
400
  requires: ["popperOffsets"],
361
401
  requiresIfExists: ["preventOverflow"]
362
402
  };
363
- function getVariation(e) {
403
+ //#endregion
404
+ //#region node_modules/@popperjs/core/lib/utils/getVariation.js
405
+ function J(e) {
364
406
  return e.split("-")[1];
365
407
  }
366
- var unsetSides = {
408
+ //#endregion
409
+ //#region node_modules/@popperjs/core/lib/modifiers/computeStyles.js
410
+ var ge = {
367
411
  top: "auto",
368
412
  right: "auto",
369
413
  bottom: "auto",
370
414
  left: "auto"
371
415
  };
372
- function roundOffsetsByDPR(e, t) {
416
+ function _e(e, t) {
373
417
  var n = e.x, r = e.y, i = t.devicePixelRatio || 1;
374
418
  return {
375
- x: round(n * i) / i || 0,
376
- y: round(r * i) / i || 0
419
+ x: z(n * i) / i || 0,
420
+ y: z(r * i) / i || 0
377
421
  };
378
422
  }
379
- function mapToStyles(e) {
423
+ function Y(e) {
380
424
  var t, n = e.popper, r = e.popperRect, i = e.placement, a = e.variation, o = e.offsets, s = e.position, c = e.gpuAcceleration, l = e.adaptive, u = e.roundOffsets, d = e.isFixed, f = o.x, p = f === void 0 ? 0 : f, m = o.y, h = m === void 0 ? 0 : m, g = typeof u == "function" ? u({
381
425
  x: p,
382
426
  y: h
@@ -385,148 +429,166 @@ function mapToStyles(e) {
385
429
  y: h
386
430
  };
387
431
  p = g.x, h = g.y;
388
- var _ = o.hasOwnProperty("x"), x = o.hasOwnProperty("y"), S = left, C = "top", w = window;
432
+ var b = o.hasOwnProperty("x"), x = o.hasOwnProperty("y"), S = y, C = "top", w = window;
389
433
  if (l) {
390
- var T = getOffsetParent(n), E = "clientHeight", D = "clientWidth";
391
- if (T === getWindow(n) && (T = getDocumentElement(n), getComputedStyle$1(T).position !== "static" && s === "absolute" && (E = "scrollHeight", D = "scrollWidth")), T = T, i === "top" || (i === "left" || i === "right") && a === "end") {
392
- C = bottom;
434
+ var T = G(n), E = "clientHeight", D = "clientWidth";
435
+ if (T === j(n) && (T = U(n), H(T).position !== "static" && s === "absolute" && (E = "scrollHeight", D = "scrollWidth")), T = T, i === "top" || (i === "left" || i === "right") && a === "end") {
436
+ C = _;
393
437
  var O = d && T === w && w.visualViewport ? w.visualViewport.height : T[E];
394
438
  h -= O - r.height, h *= c ? 1 : -1;
395
439
  }
396
440
  if (i === "left" || (i === "top" || i === "bottom") && a === "end") {
397
- S = right;
441
+ S = v;
398
442
  var k = d && T === w && w.visualViewport ? w.visualViewport.width : T[D];
399
443
  p -= k - r.width, p *= c ? 1 : -1;
400
444
  }
401
445
  }
402
- var A = Object.assign({ position: s }, l && unsetSides), j = u === !0 ? roundOffsetsByDPR({
446
+ var A = Object.assign({ position: s }, l && ge), M = u === !0 ? _e({
403
447
  x: p,
404
448
  y: h
405
- }, getWindow(n)) : {
449
+ }, j(n)) : {
406
450
  x: p,
407
451
  y: h
408
452
  };
409
- if (p = j.x, h = j.y, c) {
453
+ if (p = M.x, h = M.y, c) {
410
454
  var N;
411
- return Object.assign({}, A, (N = {}, N[C] = x ? "0" : "", N[S] = _ ? "0" : "", N.transform = (w.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + h + "px)" : "translate3d(" + p + "px, " + h + "px, 0)", N));
455
+ return Object.assign({}, A, (N = {}, N[C] = x ? "0" : "", N[S] = b ? "0" : "", N.transform = (w.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + h + "px)" : "translate3d(" + p + "px, " + h + "px, 0)", N));
412
456
  }
413
- return Object.assign({}, A, (t = {}, t[C] = x ? h + "px" : "", t[S] = _ ? p + "px" : "", t.transform = "", t));
457
+ return Object.assign({}, A, (t = {}, t[C] = x ? h + "px" : "", t[S] = b ? p + "px" : "", t.transform = "", t));
414
458
  }
415
- function computeStyles(e) {
416
- var t = e.state, n = e.options, r = n.gpuAcceleration, i = r === void 0 ? !0 : r, a = n.adaptive, o = a === void 0 ? !0 : a, s = n.roundOffsets, c = s === void 0 ? !0 : s, l = {
417
- placement: getBasePlacement(t.placement),
418
- variation: getVariation(t.placement),
459
+ function ve(e) {
460
+ var t = e.state, n = e.options, r = n.gpuAcceleration, i = r === void 0 || r, a = n.adaptive, o = a === void 0 || a, s = n.roundOffsets, c = s === void 0 || s, l = {
461
+ placement: L(t.placement),
462
+ variation: J(t.placement),
419
463
  popper: t.elements.popper,
420
464
  popperRect: t.rects.popper,
421
465
  gpuAcceleration: i,
422
466
  isFixed: t.options.strategy === "fixed"
423
467
  };
424
- t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, mapToStyles(Object.assign({}, l, {
468
+ t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Y(Object.assign({}, l, {
425
469
  offsets: t.modifiersData.popperOffsets,
426
470
  position: t.options.strategy,
427
471
  adaptive: o,
428
472
  roundOffsets: c
429
- })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, mapToStyles(Object.assign({}, l, {
473
+ })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Y(Object.assign({}, l, {
430
474
  offsets: t.modifiersData.arrow,
431
475
  position: "absolute",
432
476
  adaptive: !1,
433
477
  roundOffsets: c
434
478
  })))), t.attributes.popper = Object.assign({}, t.attributes.popper, { "data-popper-placement": t.placement });
435
479
  }
436
- var computeStyles_default = {
480
+ var ye = {
437
481
  name: "computeStyles",
438
482
  enabled: !0,
439
483
  phase: "beforeWrite",
440
- fn: computeStyles,
484
+ fn: ve,
441
485
  data: {}
442
- }, passive = { passive: !0 };
443
- function effect(e) {
444
- var t = e.state, n = e.instance, r = e.options, i = r.scroll, a = i === void 0 ? !0 : i, o = r.resize, s = o === void 0 ? !0 : o, c = getWindow(t.elements.popper), l = [].concat(t.scrollParents.reference, t.scrollParents.popper);
486
+ }, X = { passive: !0 };
487
+ function be(e) {
488
+ var t = e.state, n = e.instance, r = e.options, i = r.scroll, a = i === void 0 || i, o = r.resize, s = o === void 0 || o, c = j(t.elements.popper), l = [].concat(t.scrollParents.reference, t.scrollParents.popper);
445
489
  return a && l.forEach(function(e) {
446
- e.addEventListener("scroll", n.update, passive);
447
- }), s && c.addEventListener("resize", n.update, passive), function() {
490
+ e.addEventListener("scroll", n.update, X);
491
+ }), s && c.addEventListener("resize", n.update, X), function() {
448
492
  a && l.forEach(function(e) {
449
- e.removeEventListener("scroll", n.update, passive);
450
- }), s && c.removeEventListener("resize", n.update, passive);
493
+ e.removeEventListener("scroll", n.update, X);
494
+ }), s && c.removeEventListener("resize", n.update, X);
451
495
  };
452
496
  }
453
- var eventListeners_default = {
497
+ var xe = {
454
498
  name: "eventListeners",
455
499
  enabled: !0,
456
500
  phase: "write",
457
501
  fn: function() {},
458
- effect,
502
+ effect: be,
459
503
  data: {}
460
- }, hash$1 = {
504
+ }, Se = {
461
505
  left: "right",
462
506
  right: "left",
463
507
  bottom: "top",
464
508
  top: "bottom"
465
509
  };
466
- function getOppositePlacement(e) {
510
+ function Z(e) {
467
511
  return e.replace(/left|right|bottom|top/g, function(e) {
468
- return hash$1[e];
512
+ return Se[e];
469
513
  });
470
514
  }
471
- var hash = {
515
+ //#endregion
516
+ //#region node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js
517
+ var Ce = {
472
518
  start: "end",
473
519
  end: "start"
474
520
  };
475
- function getOppositeVariationPlacement(e) {
521
+ function we(e) {
476
522
  return e.replace(/start|end/g, function(e) {
477
- return hash[e];
523
+ return Ce[e];
478
524
  });
479
525
  }
480
- function getWindowScroll(e) {
481
- var t = getWindow(e);
526
+ //#endregion
527
+ //#region node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js
528
+ function Te(e) {
529
+ var t = j(e);
482
530
  return {
483
531
  scrollLeft: t.pageXOffset,
484
532
  scrollTop: t.pageYOffset
485
533
  };
486
534
  }
487
- function getWindowScrollBarX(e) {
488
- return getBoundingClientRect(getDocumentElement(e)).left + getWindowScroll(e).scrollLeft;
535
+ //#endregion
536
+ //#region node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js
537
+ function Ee(e) {
538
+ return V(U(e)).left + Te(e).scrollLeft;
489
539
  }
490
- function getViewportRect(e, t) {
491
- var n = getWindow(e), r = getDocumentElement(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
540
+ //#endregion
541
+ //#region node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js
542
+ function De(e, t) {
543
+ var n = j(e), r = U(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
492
544
  if (i) {
493
545
  a = i.width, o = i.height;
494
- var l = isLayoutViewport();
546
+ var l = ne();
495
547
  (l || !l && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
496
548
  }
497
549
  return {
498
550
  width: a,
499
551
  height: o,
500
- x: s + getWindowScrollBarX(e),
552
+ x: s + Ee(e),
501
553
  y: c
502
554
  };
503
555
  }
504
- function getDocumentRect(e) {
505
- var t = getDocumentElement(e), n = getWindowScroll(e), r = e.ownerDocument?.body, i = max(t.scrollWidth, t.clientWidth, r ? r.scrollWidth : 0, r ? r.clientWidth : 0), a = max(t.scrollHeight, t.clientHeight, r ? r.scrollHeight : 0, r ? r.clientHeight : 0), o = -n.scrollLeft + getWindowScrollBarX(e), s = -n.scrollTop;
506
- return getComputedStyle$1(r || t).direction === "rtl" && (o += max(t.clientWidth, r ? r.clientWidth : 0) - i), {
556
+ //#endregion
557
+ //#region node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js
558
+ function Oe(e) {
559
+ var t = U(e), n = Te(e), r = e.ownerDocument?.body, i = R(t.scrollWidth, t.clientWidth, r ? r.scrollWidth : 0, r ? r.clientWidth : 0), a = R(t.scrollHeight, t.clientHeight, r ? r.scrollHeight : 0, r ? r.clientHeight : 0), o = -n.scrollLeft + Ee(e), s = -n.scrollTop;
560
+ return H(r || t).direction === "rtl" && (o += R(t.clientWidth, r ? r.clientWidth : 0) - i), {
507
561
  width: i,
508
562
  height: a,
509
563
  x: o,
510
564
  y: s
511
565
  };
512
566
  }
513
- function isScrollParent(e) {
514
- var t = getComputedStyle$1(e), n = t.overflow, r = t.overflowX, i = t.overflowY;
567
+ //#endregion
568
+ //#region node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js
569
+ function ke(e) {
570
+ var t = H(e), n = t.overflow, r = t.overflowX, i = t.overflowY;
515
571
  return /auto|scroll|overlay|hidden/.test(n + i + r);
516
572
  }
517
- function getScrollParent(e) {
573
+ //#endregion
574
+ //#region node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js
575
+ function Ae(e) {
518
576
  return [
519
577
  "html",
520
578
  "body",
521
579
  "#document"
522
- ].indexOf(getNodeName(e)) >= 0 ? e.ownerDocument.body : isHTMLElement(e) && isScrollParent(e) ? e : getScrollParent(getParentNode(e));
580
+ ].indexOf(A(e)) >= 0 ? e.ownerDocument.body : N(e) && ke(e) ? e : Ae(W(e));
523
581
  }
524
- function listScrollParents(e, t) {
582
+ //#endregion
583
+ //#region node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js
584
+ function je(e, t) {
525
585
  t === void 0 && (t = []);
526
- var n = getScrollParent(e), r = n === e.ownerDocument?.body, i = getWindow(n), a = r ? [i].concat(i.visualViewport || [], isScrollParent(n) ? n : []) : n, o = t.concat(a);
527
- return r ? o : o.concat(listScrollParents(getParentNode(a)));
586
+ var n = Ae(e), r = n === e.ownerDocument?.body, i = j(n), a = r ? [i].concat(i.visualViewport || [], ke(n) ? n : []) : n, o = t.concat(a);
587
+ return r ? o : o.concat(je(W(a)));
528
588
  }
529
- function rectToClientRect(e) {
589
+ //#endregion
590
+ //#region node_modules/@popperjs/core/lib/utils/rectToClientRect.js
591
+ function Me(e) {
530
592
  return Object.assign({}, e, {
531
593
  left: e.x,
532
594
  top: e.y,
@@ -534,28 +596,32 @@ function rectToClientRect(e) {
534
596
  bottom: e.y + e.height
535
597
  });
536
598
  }
537
- function getInnerBoundingClientRect(e, t) {
538
- var n = getBoundingClientRect(e, !1, t === "fixed");
599
+ //#endregion
600
+ //#region node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js
601
+ function Ne(e, t) {
602
+ var n = V(e, !1, t === "fixed");
539
603
  return n.top += e.clientTop, n.left += e.clientLeft, n.bottom = n.top + e.clientHeight, n.right = n.left + e.clientWidth, n.width = e.clientWidth, n.height = e.clientHeight, n.x = n.left, n.y = n.top, n;
540
604
  }
541
- function getClientRectFromMixedType(e, t, n) {
542
- return t === "viewport" ? rectToClientRect(getViewportRect(e, n)) : isElement(t) ? getInnerBoundingClientRect(t, n) : rectToClientRect(getDocumentRect(getDocumentElement(e)));
605
+ function Pe(e, t, n) {
606
+ return t === "viewport" ? Me(De(e, n)) : M(t) ? Ne(t, n) : Me(Oe(U(e)));
543
607
  }
544
- function getClippingParents(e) {
545
- var t = listScrollParents(getParentNode(e)), n = ["absolute", "fixed"].indexOf(getComputedStyle$1(e).position) >= 0 && isHTMLElement(e) ? getOffsetParent(e) : e;
546
- return isElement(n) ? t.filter(function(e) {
547
- return isElement(e) && contains(e, n) && getNodeName(e) !== "body";
608
+ function Fe(e) {
609
+ var t = je(W(e)), n = ["absolute", "fixed"].indexOf(H(e).position) >= 0 && N(e) ? G(e) : e;
610
+ return M(n) ? t.filter(function(e) {
611
+ return M(e) && ie(e, n) && A(e) !== "body";
548
612
  }) : [];
549
613
  }
550
- function getClippingRect(e, t, n, r) {
551
- var i = t === "clippingParents" ? getClippingParents(e) : [].concat(t), a = [].concat(i, [n]), o = a[0], s = a.reduce(function(t, n) {
552
- var i = getClientRectFromMixedType(e, n, r);
553
- return t.top = max(i.top, t.top), t.right = min(i.right, t.right), t.bottom = min(i.bottom, t.bottom), t.left = max(i.left, t.left), t;
554
- }, getClientRectFromMixedType(e, o, r));
614
+ function Ie(e, t, n, r) {
615
+ var i = t === "clippingParents" ? Fe(e) : [].concat(t), a = [].concat(i, [n]), o = a[0], s = a.reduce(function(t, n) {
616
+ var i = Pe(e, n, r);
617
+ return t.top = R(i.top, t.top), t.right = te(i.right, t.right), t.bottom = te(i.bottom, t.bottom), t.left = R(i.left, t.left), t;
618
+ }, Pe(e, o, r));
555
619
  return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
556
620
  }
557
- function computeOffsets(e) {
558
- var t = e.reference, n = e.element, r = e.placement, i = r ? getBasePlacement(r) : null, a = r ? getVariation(r) : null, o = t.x + t.width / 2 - n.width / 2, s = t.y + t.height / 2 - n.height / 2, c;
621
+ //#endregion
622
+ //#region node_modules/@popperjs/core/lib/utils/computeOffsets.js
623
+ function Le(e) {
624
+ var t = e.reference, n = e.element, r = e.placement, i = r ? L(r) : null, a = r ? J(r) : null, o = t.x + t.width / 2 - n.width / 2, s = t.y + t.height / 2 - n.height / 2, c;
559
625
  switch (i) {
560
626
  case "top":
561
627
  c = {
@@ -563,19 +629,19 @@ function computeOffsets(e) {
563
629
  y: t.y - n.height
564
630
  };
565
631
  break;
566
- case bottom:
632
+ case _:
567
633
  c = {
568
634
  x: o,
569
635
  y: t.y + t.height
570
636
  };
571
637
  break;
572
- case right:
638
+ case v:
573
639
  c = {
574
640
  x: t.x + t.width,
575
641
  y: s
576
642
  };
577
643
  break;
578
- case left:
644
+ case y:
579
645
  c = {
580
646
  x: t.x - n.width,
581
647
  y: s
@@ -586,11 +652,11 @@ function computeOffsets(e) {
586
652
  y: t.y
587
653
  };
588
654
  }
589
- var l = i ? getMainAxisFromPlacement(i) : null;
655
+ var l = i ? ce(i) : null;
590
656
  if (l != null) {
591
657
  var u = l === "y" ? "height" : "width";
592
658
  switch (a) {
593
- case start:
659
+ case S:
594
660
  c[l] = c[l] - (t[u] / 2 - n[u] / 2);
595
661
  break;
596
662
  case "end":
@@ -601,21 +667,23 @@ function computeOffsets(e) {
601
667
  }
602
668
  return c;
603
669
  }
604
- function detectOverflow(e, t) {
670
+ //#endregion
671
+ //#region node_modules/@popperjs/core/lib/utils/detectOverflow.js
672
+ function Q(e, t) {
605
673
  t === void 0 && (t = {});
606
- var n = t, r = n.placement, i = r === void 0 ? e.placement : r, a = n.strategy, o = a === void 0 ? e.strategy : a, s = n.boundary, c = s === void 0 ? clippingParents : s, l = n.rootBoundary, u = l === void 0 ? viewport : l, d = n.elementContext, f = d === void 0 ? popper : d, p = n.altBoundary, m = p === void 0 ? !1 : p, h = n.padding, g = h === void 0 ? 0 : h, _ = mergePaddingObject(typeof g == "number" ? expandToHashMap(g, basePlacements) : g), v = f === "popper" ? reference : popper, y = e.rects.popper, b = e.elements[m ? v : f], x = getClippingRect(isElement(b) ? b : b.contextElement || getDocumentElement(e.elements.popper), c, u, o), C = getBoundingClientRect(e.elements.reference), O = computeOffsets({
607
- reference: C,
674
+ var n = t, r = n.placement, i = r === void 0 ? e.placement : r, a = n.strategy, o = a === void 0 ? e.strategy : a, s = n.boundary, c = s === void 0 ? C : s, l = n.rootBoundary, u = l === void 0 ? w : l, d = n.elementContext, f = d === void 0 ? T : d, p = n.altBoundary, m = p !== void 0 && p, h = n.padding, g = h === void 0 ? 0 : h, _ = q(typeof g == "number" ? de(g, x) : g), v = f === "popper" ? E : T, y = e.rects.popper, b = e.elements[m ? v : f], S = Ie(M(b) ? b : b.contextElement || U(e.elements.popper), c, u, o), D = V(e.elements.reference), O = Le({
675
+ reference: D,
608
676
  element: y,
609
677
  strategy: "absolute",
610
678
  placement: i
611
- }), k = rectToClientRect(Object.assign({}, y, O)), A = f === "popper" ? k : C, j = {
612
- top: x.top - A.top + _.top,
613
- bottom: A.bottom - x.bottom + _.bottom,
614
- left: x.left - A.left + _.left,
615
- right: A.right - x.right + _.right
616
- }, M = e.modifiersData.offset;
617
- if (f === "popper" && M) {
618
- var P = M[i];
679
+ }), k = Me(Object.assign({}, y, O)), A = f === "popper" ? k : D, j = {
680
+ top: S.top - A.top + _.top,
681
+ bottom: A.bottom - S.bottom + _.bottom,
682
+ left: S.left - A.left + _.left,
683
+ right: A.right - S.right + _.right
684
+ }, N = e.modifiersData.offset;
685
+ if (f === "popper" && N) {
686
+ var P = N[i];
619
687
  Object.keys(j).forEach(function(e) {
620
688
  var t = ["right", "bottom"].indexOf(e) >= 0 ? 1 : -1, n = ["top", "bottom"].indexOf(e) >= 0 ? "y" : "x";
621
689
  j[e] += P[n] * t;
@@ -623,40 +691,44 @@ function detectOverflow(e, t) {
623
691
  }
624
692
  return j;
625
693
  }
626
- function computeAutoPlacement(e, t) {
694
+ //#endregion
695
+ //#region node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js
696
+ function Re(e, t) {
627
697
  t === void 0 && (t = {});
628
- var n = t, r = n.placement, i = n.boundary, a = n.rootBoundary, o = n.padding, s = n.flipVariations, c = n.allowedAutoPlacements, l = c === void 0 ? placements : c, u = getVariation(r), d = u ? s ? variationPlacements : variationPlacements.filter(function(e) {
629
- return getVariation(e) === u;
630
- }) : basePlacements, f = d.filter(function(e) {
698
+ var n = t, r = n.placement, i = n.boundary, a = n.rootBoundary, o = n.padding, s = n.flipVariations, c = n.allowedAutoPlacements, l = c === void 0 ? O : c, u = J(r), d = u ? s ? D : D.filter(function(e) {
699
+ return J(e) === u;
700
+ }) : x, f = d.filter(function(e) {
631
701
  return l.indexOf(e) >= 0;
632
702
  });
633
703
  f.length === 0 && (f = d);
634
704
  var p = f.reduce(function(t, n) {
635
- return t[n] = detectOverflow(e, {
705
+ return t[n] = Q(e, {
636
706
  placement: n,
637
707
  boundary: i,
638
708
  rootBoundary: a,
639
709
  padding: o
640
- })[getBasePlacement(n)], t;
710
+ })[L(n)], t;
641
711
  }, {});
642
712
  return Object.keys(p).sort(function(e, t) {
643
713
  return p[e] - p[t];
644
714
  });
645
715
  }
646
- function getExpandedFallbackPlacements(e) {
647
- if (getBasePlacement(e) === "auto") return [];
648
- var t = getOppositePlacement(e);
716
+ //#endregion
717
+ //#region node_modules/@popperjs/core/lib/modifiers/flip.js
718
+ function ze(e) {
719
+ if (L(e) === "auto") return [];
720
+ var t = Z(e);
649
721
  return [
650
- getOppositeVariationPlacement(e),
722
+ we(e),
651
723
  t,
652
- getOppositeVariationPlacement(t)
724
+ we(t)
653
725
  ];
654
726
  }
655
- function flip(e) {
727
+ function Be(e) {
656
728
  var t = e.state, n = e.options, r = e.name;
657
729
  if (!t.modifiersData[r]._skip) {
658
- for (var i = n.mainAxis, a = i === void 0 ? !0 : i, o = n.altAxis, s = o === void 0 ? !0 : o, c = n.fallbackPlacements, l = n.padding, u = n.boundary, d = n.rootBoundary, f = n.altBoundary, p = n.flipVariations, m = p === void 0 ? !0 : p, h = n.allowedAutoPlacements, g = t.options.placement, _ = getBasePlacement(g) === g, x = c || (_ || !m ? [getOppositePlacement(g)] : getExpandedFallbackPlacements(g)), S = [g].concat(x).reduce(function(e, n) {
659
- return e.concat(getBasePlacement(n) === "auto" ? computeAutoPlacement(t, {
730
+ for (var i = n.mainAxis, a = i === void 0 || i, o = n.altAxis, s = o === void 0 || o, c = n.fallbackPlacements, l = n.padding, u = n.boundary, d = n.rootBoundary, f = n.altBoundary, p = n.flipVariations, m = p === void 0 || p, h = n.allowedAutoPlacements, g = t.options.placement, b = L(g) === g, x = c || (b || !m ? [Z(g)] : ze(g)), C = [g].concat(x).reduce(function(e, n) {
731
+ return e.concat(L(n) === "auto" ? Re(t, {
660
732
  placement: n,
661
733
  boundary: u,
662
734
  rootBoundary: d,
@@ -664,17 +736,17 @@ function flip(e) {
664
736
  flipVariations: m,
665
737
  allowedAutoPlacements: h
666
738
  }) : n);
667
- }, []), w = t.rects.reference, T = t.rects.popper, E = /* @__PURE__ */ new Map(), D = !0, O = S[0], k = 0; k < S.length; k++) {
668
- var A = S[k], j = getBasePlacement(A), M = getVariation(A) === start, N = ["top", bottom].indexOf(j) >= 0, P = N ? "width" : "height", F = detectOverflow(t, {
739
+ }, []), w = t.rects.reference, T = t.rects.popper, E = /* @__PURE__ */ new Map(), D = !0, O = C[0], k = 0; k < C.length; k++) {
740
+ var A = C[k], j = L(A), M = J(A) === S, N = ["top", _].indexOf(j) >= 0, P = N ? "width" : "height", F = Q(t, {
669
741
  placement: A,
670
742
  boundary: u,
671
743
  rootBoundary: d,
672
744
  altBoundary: f,
673
745
  padding: l
674
- }), I = N ? M ? right : left : M ? bottom : "top";
675
- w[P] > T[P] && (I = getOppositePlacement(I));
676
- var L = getOppositePlacement(I), R = [];
677
- if (a && R.push(F[j] <= 0), s && R.push(F[I] <= 0, F[L] <= 0), R.every(function(e) {
746
+ }), I = N ? M ? v : y : M ? _ : "top";
747
+ w[P] > T[P] && (I = Z(I));
748
+ var ee = Z(I), R = [];
749
+ if (a && R.push(F[j] <= 0), s && R.push(F[I] <= 0, F[ee] <= 0), R.every(function(e) {
678
750
  return e;
679
751
  })) {
680
752
  O = A, D = !1;
@@ -682,27 +754,29 @@ function flip(e) {
682
754
  }
683
755
  E.set(A, R);
684
756
  }
685
- if (D) for (var rt = m ? 3 : 1, it = function(e) {
686
- var t = S.find(function(t) {
757
+ if (D) for (var te = m ? 3 : 1, z = function(e) {
758
+ var t = C.find(function(t) {
687
759
  var n = E.get(t);
688
760
  if (n) return n.slice(0, e).every(function(e) {
689
761
  return e;
690
762
  });
691
763
  });
692
764
  if (t) return O = t, "break";
693
- }, z = rt; z > 0 && it(z) !== "break"; z--);
765
+ }, B = te; B > 0 && z(B) !== "break"; B--);
694
766
  t.placement !== O && (t.modifiersData[r]._skip = !0, t.placement = O, t.reset = !0);
695
767
  }
696
768
  }
697
- var flip_default = {
769
+ var Ve = {
698
770
  name: "flip",
699
771
  enabled: !0,
700
772
  phase: "main",
701
- fn: flip,
773
+ fn: Be,
702
774
  requiresIfExists: ["offset"],
703
775
  data: { _skip: !1 }
704
776
  };
705
- function getSideOffsets(e, t, n) {
777
+ //#endregion
778
+ //#region node_modules/@popperjs/core/lib/modifiers/hide.js
779
+ function He(e, t, n) {
706
780
  return n === void 0 && (n = {
707
781
  x: 0,
708
782
  y: 0
@@ -713,18 +787,18 @@ function getSideOffsets(e, t, n) {
713
787
  left: e.left - t.width - n.x
714
788
  };
715
789
  }
716
- function isAnySideFullyClipped(e) {
790
+ function Ue(e) {
717
791
  return [
718
792
  "top",
719
- right,
720
- bottom,
721
- left
793
+ v,
794
+ _,
795
+ y
722
796
  ].some(function(t) {
723
797
  return e[t] >= 0;
724
798
  });
725
799
  }
726
- function hide(e) {
727
- var t = e.state, n = e.name, r = t.rects.reference, i = t.rects.popper, a = t.modifiersData.preventOverflow, o = detectOverflow(t, { elementContext: "reference" }), s = detectOverflow(t, { altBoundary: !0 }), c = getSideOffsets(o, r), l = getSideOffsets(s, i, a), u = isAnySideFullyClipped(c), d = isAnySideFullyClipped(l);
800
+ function We(e) {
801
+ var t = e.state, n = e.name, r = t.rects.reference, i = t.rects.popper, a = t.modifiersData.preventOverflow, o = Q(t, { elementContext: "reference" }), s = Q(t, { altBoundary: !0 }), c = He(o, r), l = He(s, i, a), u = Ue(c), d = Ue(l);
728
802
  t.modifiersData[n] = {
729
803
  referenceClippingOffsets: c,
730
804
  popperEscapeOffsets: l,
@@ -735,15 +809,17 @@ function hide(e) {
735
809
  "data-popper-escaped": d
736
810
  });
737
811
  }
738
- var hide_default = {
812
+ var Ge = {
739
813
  name: "hide",
740
814
  enabled: !0,
741
815
  phase: "main",
742
816
  requiresIfExists: ["preventOverflow"],
743
- fn: hide
817
+ fn: We
744
818
  };
745
- function distanceAndSkiddingToXY(e, t, n) {
746
- var r = getBasePlacement(e), i = ["left", "top"].indexOf(r) >= 0 ? -1 : 1, a = typeof n == "function" ? n(Object.assign({}, t, { placement: e })) : n, o = a[0], s = a[1];
819
+ //#endregion
820
+ //#region node_modules/@popperjs/core/lib/modifiers/offset.js
821
+ function Ke(e, t, n) {
822
+ var r = L(e), i = ["left", "top"].indexOf(r) >= 0 ? -1 : 1, a = typeof n == "function" ? n(Object.assign({}, t, { placement: e })) : n, o = a[0], s = a[1];
747
823
  return o ||= 0, s = (s || 0) * i, ["left", "right"].indexOf(r) >= 0 ? {
748
824
  x: s,
749
825
  y: o
@@ -752,45 +828,51 @@ function distanceAndSkiddingToXY(e, t, n) {
752
828
  y: s
753
829
  };
754
830
  }
755
- function offset(e) {
756
- var t = e.state, n = e.options, r = e.name, i = n.offset, a = i === void 0 ? [0, 0] : i, o = placements.reduce(function(e, n) {
757
- return e[n] = distanceAndSkiddingToXY(n, t.rects, a), e;
831
+ function qe(e) {
832
+ var t = e.state, n = e.options, r = e.name, i = n.offset, a = i === void 0 ? [0, 0] : i, o = O.reduce(function(e, n) {
833
+ return e[n] = Ke(n, t.rects, a), e;
758
834
  }, {}), s = o[t.placement], c = s.x, l = s.y;
759
835
  t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += c, t.modifiersData.popperOffsets.y += l), t.modifiersData[r] = o;
760
836
  }
761
- var offset_default = {
837
+ var Je = {
762
838
  name: "offset",
763
839
  enabled: !0,
764
840
  phase: "main",
765
841
  requires: ["popperOffsets"],
766
- fn: offset
842
+ fn: qe
767
843
  };
768
- function popperOffsets(e) {
844
+ //#endregion
845
+ //#region node_modules/@popperjs/core/lib/modifiers/popperOffsets.js
846
+ function Ye(e) {
769
847
  var t = e.state, n = e.name;
770
- t.modifiersData[n] = computeOffsets({
848
+ t.modifiersData[n] = Le({
771
849
  reference: t.rects.reference,
772
850
  element: t.rects.popper,
773
851
  strategy: "absolute",
774
852
  placement: t.placement
775
853
  });
776
854
  }
777
- var popperOffsets_default = {
855
+ var Xe = {
778
856
  name: "popperOffsets",
779
857
  enabled: !0,
780
858
  phase: "read",
781
- fn: popperOffsets,
859
+ fn: Ye,
782
860
  data: {}
783
861
  };
784
- function getAltAxis(e) {
862
+ //#endregion
863
+ //#region node_modules/@popperjs/core/lib/utils/getAltAxis.js
864
+ function Ze(e) {
785
865
  return e === "x" ? "y" : "x";
786
866
  }
787
- function preventOverflow(e) {
788
- var t = e.state, n = e.options, r = e.name, i = n.mainAxis, a = i === void 0 ? !0 : i, o = n.altAxis, s = o === void 0 ? !1 : o, c = n.boundary, l = n.rootBoundary, u = n.altBoundary, d = n.padding, f = n.tether, p = f === void 0 ? !0 : f, m = n.tetherOffset, h = m === void 0 ? 0 : m, g = detectOverflow(t, {
867
+ //#endregion
868
+ //#region node_modules/@popperjs/core/lib/modifiers/preventOverflow.js
869
+ function Qe(e) {
870
+ var t = e.state, n = e.options, r = e.name, i = n.mainAxis, a = i === void 0 || i, o = n.altAxis, s = o !== void 0 && o, c = n.boundary, l = n.rootBoundary, u = n.altBoundary, d = n.padding, f = n.tether, p = f === void 0 || f, m = n.tetherOffset, h = m === void 0 ? 0 : m, g = Q(t, {
789
871
  boundary: c,
790
872
  rootBoundary: l,
791
873
  padding: d,
792
874
  altBoundary: u
793
- }), _ = getBasePlacement(t.placement), x = getVariation(t.placement), S = !x, C = getMainAxisFromPlacement(_), w = getAltAxis(C), T = t.modifiersData.popperOffsets, E = t.rects.reference, D = t.rects.popper, O = typeof h == "function" ? h(Object.assign({}, t.rects, { placement: t.placement })) : h, k = typeof O == "number" ? {
875
+ }), b = L(t.placement), x = J(t.placement), S = !x, C = ce(b), w = Ze(C), T = t.modifiersData.popperOffsets, E = t.rects.reference, D = t.rects.popper, O = typeof h == "function" ? h(Object.assign({}, t.rects, { placement: t.placement })) : h, k = typeof O == "number" ? {
794
876
  mainAxis: O,
795
877
  altAxis: O
796
878
  } : Object.assign({
@@ -802,56 +884,64 @@ function preventOverflow(e) {
802
884
  };
803
885
  if (T) {
804
886
  if (a) {
805
- var M = C === "y" ? "top" : left, N = C === "y" ? bottom : right, P = C === "y" ? "height" : "width", F = T[C], I = F + g[M], L = F - g[N], R = p ? -D[P] / 2 : 0, z = x === "start" ? E[P] : D[P], at = x === "start" ? -D[P] : -E[P], B = t.elements.arrow, ot = p && B ? getLayoutRect(B) : {
887
+ var M = C === "y" ? "top" : y, N = C === "y" ? _ : v, P = C === "y" ? "height" : "width", F = T[C], I = F + g[M], ee = F - g[N], z = p ? -D[P] / 2 : 0, B = x === "start" ? E[P] : D[P], ne = x === "start" ? -D[P] : -E[P], V = t.elements.arrow, ie = p && V ? re(V) : {
806
888
  width: 0,
807
889
  height: 0
808
- }, V = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : getFreshSideObject(), H = V[M], U = V[N], W = within(0, E[P], ot[P]), st = S ? E[P] / 2 - R - W - H - k.mainAxis : z - W - H - k.mainAxis, ct = S ? -E[P] / 2 + R + W + U + k.mainAxis : at + W + U + k.mainAxis, G = t.elements.arrow && getOffsetParent(t.elements.arrow), lt = G ? C === "y" ? G.clientTop || 0 : G.clientLeft || 0 : 0, K = A?.[C] ?? 0, ut = F + st - K - lt, dt = F + ct - K, q = within(p ? min(I, ut) : I, F, p ? max(L, dt) : L);
809
- T[C] = q, j[C] = q - F;
890
+ }, H = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : ue(), ae = H[M], U = H[N], W = K(0, E[P], ie[P]), oe = S ? E[P] / 2 - z - W - ae - k.mainAxis : B - W - ae - k.mainAxis, se = S ? -E[P] / 2 + z + W + U + k.mainAxis : ne + W + U + k.mainAxis, q = t.elements.arrow && G(t.elements.arrow), de = q ? C === "y" ? q.clientTop || 0 : q.clientLeft || 0 : 0, fe = A?.[C] ?? 0, pe = F + oe - fe - de, me = F + se - fe, he = K(p ? te(I, pe) : I, F, p ? R(ee, me) : ee);
891
+ T[C] = he, j[C] = he - F;
810
892
  }
811
893
  if (s) {
812
- var ft = C === "x" ? "top" : left, pt = C === "x" ? bottom : right, J = T[w], Y = w === "y" ? "height" : "width", X = J + g[ft], Z = J - g[pt], Q = ["top", left].indexOf(_) !== -1, $ = A?.[w] ?? 0, mt = Q ? X : J - E[Y] - D[Y] - $ + k.altAxis, ht = Q ? J + E[Y] + D[Y] - $ - k.altAxis : Z, gt = p && Q ? withinMaxClamp(mt, J, ht) : within(p ? mt : X, J, p ? ht : Z);
813
- T[w] = gt, j[w] = gt - J;
894
+ var ge = C === "x" ? "top" : y, _e = C === "x" ? _ : v, Y = T[w], ve = w === "y" ? "height" : "width", ye = Y + g[ge], X = Y - g[_e], be = ["top", y].indexOf(b) !== -1, xe = A?.[w] ?? 0, Se = be ? ye : Y - E[ve] - D[ve] - xe + k.altAxis, Z = be ? Y + E[ve] + D[ve] - xe - k.altAxis : X, Ce = p && be ? le(Se, Y, Z) : K(p ? Se : ye, Y, p ? Z : X);
895
+ T[w] = Ce, j[w] = Ce - Y;
814
896
  }
815
897
  t.modifiersData[r] = j;
816
898
  }
817
899
  }
818
- var preventOverflow_default = {
900
+ var $e = {
819
901
  name: "preventOverflow",
820
902
  enabled: !0,
821
903
  phase: "main",
822
- fn: preventOverflow,
904
+ fn: Qe,
823
905
  requiresIfExists: ["offset"]
824
906
  };
825
- function getHTMLElementScroll(e) {
907
+ //#endregion
908
+ //#region node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js
909
+ function et(e) {
826
910
  return {
827
911
  scrollLeft: e.scrollLeft,
828
912
  scrollTop: e.scrollTop
829
913
  };
830
914
  }
831
- function getNodeScroll(e) {
832
- return e === getWindow(e) || !isHTMLElement(e) ? getWindowScroll(e) : getHTMLElementScroll(e);
915
+ //#endregion
916
+ //#region node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js
917
+ function tt(e) {
918
+ return e === j(e) || !N(e) ? Te(e) : et(e);
833
919
  }
834
- function isElementScaled(e) {
835
- var t = e.getBoundingClientRect(), n = round(t.width) / e.offsetWidth || 1, r = round(t.height) / e.offsetHeight || 1;
920
+ //#endregion
921
+ //#region node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js
922
+ function nt(e) {
923
+ var t = e.getBoundingClientRect(), n = z(t.width) / e.offsetWidth || 1, r = z(t.height) / e.offsetHeight || 1;
836
924
  return n !== 1 || r !== 1;
837
925
  }
838
- function getCompositeRect(e, t, n) {
926
+ function rt(e, t, n) {
839
927
  n === void 0 && (n = !1);
840
- var r = isHTMLElement(t), i = isHTMLElement(t) && isElementScaled(t), a = getDocumentElement(t), o = getBoundingClientRect(e, i, n), s = {
928
+ var r = N(t), i = N(t) && nt(t), a = U(t), o = V(e, i, n), s = {
841
929
  scrollLeft: 0,
842
930
  scrollTop: 0
843
931
  }, c = {
844
932
  x: 0,
845
933
  y: 0
846
934
  };
847
- return (r || !r && !n) && ((getNodeName(t) !== "body" || isScrollParent(a)) && (s = getNodeScroll(t)), isHTMLElement(t) ? (c = getBoundingClientRect(t, !0), c.x += t.clientLeft, c.y += t.clientTop) : a && (c.x = getWindowScrollBarX(a))), {
935
+ return (r || !r && !n) && ((A(t) !== "body" || ke(a)) && (s = tt(t)), N(t) ? (c = V(t, !0), c.x += t.clientLeft, c.y += t.clientTop) : a && (c.x = Ee(a))), {
848
936
  x: o.left + s.scrollLeft - c.x,
849
937
  y: o.top + s.scrollTop - c.y,
850
938
  width: o.width,
851
939
  height: o.height
852
940
  };
853
941
  }
854
- function order(e) {
942
+ //#endregion
943
+ //#region node_modules/@popperjs/core/lib/utils/orderModifiers.js
944
+ function it(e) {
855
945
  var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = [];
856
946
  e.forEach(function(e) {
857
947
  t.set(e.name, e);
@@ -868,15 +958,17 @@ function order(e) {
868
958
  n.has(e.name) || i(e);
869
959
  }), r;
870
960
  }
871
- function orderModifiers(e) {
872
- var t = order(e);
873
- return modifierPhases.reduce(function(e, n) {
961
+ function at(e) {
962
+ var t = it(e);
963
+ return k.reduce(function(e, n) {
874
964
  return e.concat(t.filter(function(e) {
875
965
  return e.phase === n;
876
966
  }));
877
967
  }, []);
878
968
  }
879
- function debounce(e) {
969
+ //#endregion
970
+ //#region node_modules/@popperjs/core/lib/utils/debounce.js
971
+ function ot(e) {
880
972
  var t;
881
973
  return function() {
882
974
  return t ||= new Promise(function(n) {
@@ -886,7 +978,9 @@ function debounce(e) {
886
978
  }), t;
887
979
  };
888
980
  }
889
- function mergeByName(e) {
981
+ //#endregion
982
+ //#region node_modules/@popperjs/core/lib/utils/mergeByName.js
983
+ function st(e) {
890
984
  var t = e.reduce(function(e, t) {
891
985
  var n = e[t.name];
892
986
  return e[t.name] = n ? Object.assign({}, n, t, {
@@ -898,25 +992,27 @@ function mergeByName(e) {
898
992
  return t[e];
899
993
  });
900
994
  }
901
- var DEFAULT_OPTIONS = {
995
+ //#endregion
996
+ //#region node_modules/@popperjs/core/lib/createPopper.js
997
+ var ct = {
902
998
  placement: "bottom",
903
999
  modifiers: [],
904
1000
  strategy: "absolute"
905
1001
  };
906
- function areValidElements() {
1002
+ function lt() {
907
1003
  return ![...arguments].some(function(e) {
908
1004
  return !(e && typeof e.getBoundingClientRect == "function");
909
1005
  });
910
1006
  }
911
- function popperGenerator(e) {
1007
+ function ut(e) {
912
1008
  e === void 0 && (e = {});
913
- var t = e, n = t.defaultModifiers, r = n === void 0 ? [] : n, i = t.defaultOptions, a = i === void 0 ? DEFAULT_OPTIONS : i;
1009
+ var t = e, n = t.defaultModifiers, r = n === void 0 ? [] : n, i = t.defaultOptions, a = i === void 0 ? ct : i;
914
1010
  return function(e, t, n) {
915
1011
  n === void 0 && (n = a);
916
1012
  var i = {
917
1013
  placement: "bottom",
918
1014
  orderedModifiers: [],
919
- options: Object.assign({}, DEFAULT_OPTIONS, a),
1015
+ options: Object.assign({}, ct, a),
920
1016
  modifiersData: {},
921
1017
  elements: {
922
1018
  reference: e,
@@ -929,10 +1025,10 @@ function popperGenerator(e) {
929
1025
  setOptions: function(n) {
930
1026
  var o = typeof n == "function" ? n(i.options) : n;
931
1027
  u(), i.options = Object.assign({}, a, i.options, o), i.scrollParents = {
932
- reference: isElement(e) ? listScrollParents(e) : e.contextElement ? listScrollParents(e.contextElement) : [],
933
- popper: listScrollParents(t)
1028
+ reference: M(e) ? je(e) : e.contextElement ? je(e.contextElement) : [],
1029
+ popper: je(t)
934
1030
  };
935
- var s = orderModifiers(mergeByName([].concat(r, i.options.modifiers)));
1031
+ var s = at(st([].concat(r, i.options.modifiers)));
936
1032
  return i.orderedModifiers = s.filter(function(e) {
937
1033
  return e.enabled;
938
1034
  }), l(), c.update();
@@ -940,10 +1036,10 @@ function popperGenerator(e) {
940
1036
  forceUpdate: function() {
941
1037
  if (!s) {
942
1038
  var e = i.elements, t = e.reference, n = e.popper;
943
- if (areValidElements(t, n)) {
1039
+ if (lt(t, n)) {
944
1040
  i.rects = {
945
- reference: getCompositeRect(t, getOffsetParent(n), i.options.strategy === "fixed"),
946
- popper: getLayoutRect(n)
1041
+ reference: rt(t, G(n), i.options.strategy === "fixed"),
1042
+ popper: re(n)
947
1043
  }, i.reset = !1, i.placement = i.options.placement, i.orderedModifiers.forEach(function(e) {
948
1044
  return i.modifiersData[e.name] = Object.assign({}, e.data);
949
1045
  });
@@ -963,7 +1059,7 @@ function popperGenerator(e) {
963
1059
  }
964
1060
  }
965
1061
  },
966
- update: debounce(function() {
1062
+ update: ot(function() {
967
1063
  return new Promise(function(e) {
968
1064
  c.forceUpdate(), e(i);
969
1065
  });
@@ -972,7 +1068,7 @@ function popperGenerator(e) {
972
1068
  u(), s = !0;
973
1069
  }
974
1070
  };
975
- if (!areValidElements(e, t)) return c;
1071
+ if (!lt(e, t)) return c;
976
1072
  c.setOptions(n).then(function(e) {
977
1073
  !s && n.onFirstUpdate && n.onFirstUpdate(e);
978
1074
  });
@@ -998,17 +1094,17 @@ function popperGenerator(e) {
998
1094
  return c;
999
1095
  };
1000
1096
  }
1001
- var createPopper = /* @__PURE__ */ popperGenerator({ defaultModifiers: [
1002
- eventListeners_default,
1003
- popperOffsets_default,
1004
- computeStyles_default,
1005
- applyStyles_default,
1006
- offset_default,
1007
- flip_default,
1008
- preventOverflow_default,
1009
- arrow_default,
1010
- hide_default
1011
- ] }), TinyGesture = class e {
1097
+ var dt = /*#__PURE__*/ ut({ defaultModifiers: [
1098
+ xe,
1099
+ Xe,
1100
+ ye,
1101
+ ee,
1102
+ Je,
1103
+ Ve,
1104
+ $e,
1105
+ he,
1106
+ Ge
1107
+ ] }), ft = class e {
1012
1108
  constructor(t, n) {
1013
1109
  this.element = t, this.touch1 = null, this.touch2 = null, this.touchStartX = null, this.touchStartY = null, this.touchEndX = null, this.touchEndY = null, this.touchMove1 = null, this.touchMove2 = null, this.touchMoveX = null, this.touchMoveY = null, this.velocityX = null, this.velocityY = null, this.longPressTimer = null, this.doubleTapTimer = null, this.doubleTapWaiting = !1, this.thresholdX = 0, this.thresholdY = 0, this.disregardVelocityThresholdX = 0, this.disregardVelocityThresholdY = 0, this.swipingHorizontal = !1, this.swipingVertical = !1, this.swipingDirection = null, this.swipedHorizontal = !1, this.swipedVertical = !1, this.originalDistance = null, this.newDistance = null, this.scale = null, this.originalAngle = null, this.newAngle = null, this.rotation = null, this.handlers = {
1014
1110
  panstart: [],
@@ -1025,7 +1121,7 @@ var createPopper = /* @__PURE__ */ popperGenerator({ defaultModifiers: [
1025
1121
  pinchend: [],
1026
1122
  rotate: [],
1027
1123
  rotateend: []
1028
- }, this._onTouchStart = this.onTouchStart.bind(this), this._onTouchMove = this.onTouchMove.bind(this), this._onTouchEnd = this.onTouchEnd.bind(this), this.opts = Object.assign({}, e.defaults, n), this.element.addEventListener("touchstart", this._onTouchStart, passiveIfSupported), this.element.addEventListener("touchmove", this._onTouchMove, passiveIfSupported), this.element.addEventListener("touchend", this._onTouchEnd, passiveIfSupported), this.opts.mouseSupport && !("ontouchstart" in window) && (this.element.addEventListener("mousedown", this._onTouchStart, passiveIfSupported), document.addEventListener("mousemove", this._onTouchMove, passiveIfSupported), document.addEventListener("mouseup", this._onTouchEnd, passiveIfSupported));
1124
+ }, this._onTouchStart = this.onTouchStart.bind(this), this._onTouchMove = this.onTouchMove.bind(this), this._onTouchEnd = this.onTouchEnd.bind(this), this.opts = Object.assign({}, e.defaults, n), this.element.addEventListener("touchstart", this._onTouchStart, $), this.element.addEventListener("touchmove", this._onTouchMove, $), this.element.addEventListener("touchend", this._onTouchEnd, $), this.opts.mouseSupport && !("ontouchstart" in window) && (this.element.addEventListener("mousedown", this._onTouchStart, $), document.addEventListener("mousemove", this._onTouchMove, $), document.addEventListener("mouseup", this._onTouchEnd, $));
1029
1125
  }
1030
1126
  destroy() {
1031
1127
  this.element.removeEventListener("touchstart", this._onTouchStart), this.element.removeEventListener("touchmove", this._onTouchMove), this.element.removeEventListener("touchend", this._onTouchEnd), this.element.removeEventListener("mousedown", this._onTouchStart), document.removeEventListener("mousemove", this._onTouchMove), document.removeEventListener("mouseup", this._onTouchEnd), clearTimeout(this.longPressTimer ?? void 0), clearTimeout(this.doubleTapTimer ?? void 0);
@@ -1076,13 +1172,13 @@ var createPopper = /* @__PURE__ */ popperGenerator({ defaultModifiers: [
1076
1172
  if (e.type === "mouseup" || t) {
1077
1173
  this.touchEndX = e.type === "mouseup" ? e.screenX : t?.screenX ?? 0, this.touchEndY = e.type === "mouseup" ? e.screenY : t?.screenY ?? 0, this.fire("panend", e), clearTimeout(this.longPressTimer ?? void 0);
1078
1174
  let n = this.touchEndX - (this.touchStartX ?? 0), r = Math.abs(n), i = this.touchEndY - (this.touchStartY ?? 0), a = Math.abs(i), o = Math.sqrt(n ** 2 + i ** 2), s = Math.abs(o), c = a / r;
1079
- r > this.thresholdX || a > this.thresholdY || this.opts.diagonalSwipes && (s > this.thresholdX || s > this.thresholdY) ? (this.swipedHorizontal = r > this.thresholdX || this.opts.diagonalSwipes && s > this.thresholdX, this.swipedVertical = a > this.thresholdY || this.opts.diagonalSwipes && s > this.thresholdY, (!this.opts.diagonalSwipes || c < Math.tan((45 - this.opts.diagonalLimit) * Math.PI / 180) || c > Math.tan((45 + this.opts.diagonalLimit) * Math.PI / 180)) && (r >= a && (this.swipedVertical = !1), a > r && (this.swipedHorizontal = !1)), this.swipedHorizontal && (n < 0 ? ((this.velocityX ?? 0) < -this.opts.velocityThreshold || o < -this.disregardVelocityThresholdX) && this.fire("swipeleft", e) : ((this.velocityX ?? 0) > this.opts.velocityThreshold || o > this.disregardVelocityThresholdX) && this.fire("swiperight", e)), this.swipedVertical && (i < 0 ? ((this.velocityY ?? 0) < -this.opts.velocityThreshold || o < -this.disregardVelocityThresholdY) && this.fire("swipeup", e) : ((this.velocityY ?? 0) > this.opts.velocityThreshold || o > this.disregardVelocityThresholdY) && this.fire("swipedown", e))) : r < this.opts.pressThreshold && a < this.opts.pressThreshold && (this.doubleTapWaiting ? (this.doubleTapWaiting = !1, clearTimeout(this.doubleTapTimer ?? void 0), this.fire("doubletap", e)) : (this.doubleTapWaiting = !0, this.doubleTapTimer = setTimeout(() => this.doubleTapWaiting = !1, this.opts.doubleTapTime), this.fire("tap", e)));
1175
+ r > this.thresholdX || a > this.thresholdY || this.opts.diagonalSwipes && (s > this.thresholdX || s > this.thresholdY) ? (this.swipedHorizontal = r > this.thresholdX || this.opts.diagonalSwipes && s > this.thresholdX, this.swipedVertical = a > this.thresholdY || this.opts.diagonalSwipes && s > this.thresholdY, (!this.opts.diagonalSwipes || c < Math.tan((45 - this.opts.diagonalLimit) * Math.PI / 180) || c > Math.tan((45 + this.opts.diagonalLimit) * Math.PI / 180)) && (r >= a && (this.swipedVertical = !1), a > r && (this.swipedHorizontal = !1)), this.swipedHorizontal && (n < 0 ? ((this.velocityX ?? 0) < -this.opts.velocityThreshold || o > this.disregardVelocityThresholdX) && this.fire("swipeleft", e) : ((this.velocityX ?? 0) > this.opts.velocityThreshold || o > this.disregardVelocityThresholdX) && this.fire("swiperight", e)), this.swipedVertical && (i < 0 ? ((this.velocityY ?? 0) < -this.opts.velocityThreshold || o > this.disregardVelocityThresholdY) && this.fire("swipeup", e) : ((this.velocityY ?? 0) > this.opts.velocityThreshold || o > this.disregardVelocityThresholdY) && this.fire("swipedown", e))) : r < this.opts.pressThreshold && a < this.opts.pressThreshold && (this.doubleTapWaiting ? (this.doubleTapWaiting = !1, clearTimeout(this.doubleTapTimer ?? void 0), this.fire("doubletap", e)) : (this.doubleTapWaiting = !0, this.doubleTapTimer = setTimeout(() => this.doubleTapWaiting = !1, this.opts.doubleTapTime), this.fire("tap", e)));
1080
1176
  }
1081
1177
  !this.touch1 && !this.touch2 && (this.fire("pinchend", e), this.fire("rotateend", e), this.originalDistance = null, this.newDistance = null, this.scale = null, this.originalAngle = null, this.newAngle = null, this.rotation = null);
1082
1178
  }
1083
1179
  }
1084
1180
  };
1085
- TinyGesture.defaults = {
1181
+ ft.defaults = {
1086
1182
  threshold: (e, t) => Math.max(25, Math.floor(.15 * (e === "x" ? window.innerWidth || document.body.clientWidth : window.innerHeight || document.body.clientHeight))),
1087
1183
  velocityThreshold: 10,
1088
1184
  disregardVelocityThreshold: (e, t) => Math.floor(.5 * (e === "x" ? t.element.clientWidth : t.element.clientHeight)),
@@ -1093,57 +1189,65 @@ TinyGesture.defaults = {
1093
1189
  doubleTapTime: 300,
1094
1190
  mouseSupport: !0
1095
1191
  };
1096
- var TinyGesture_default = TinyGesture, passiveIfSupported = !1;
1192
+ var $ = !1;
1097
1193
  try {
1098
1194
  window.addEventListener("test", null, Object.defineProperty({}, "passive", { get: function() {
1099
- passiveIfSupported = { passive: !0 };
1195
+ $ = { passive: !0 };
1100
1196
  } }));
1101
1197
  } catch {}
1102
- var eDownKeys = /* @__PURE__ */ function(e) {
1103
- return e[e.NO_PUSH = 0] = "NO_PUSH", e[e.ONE_PUSH = 1] = "ONE_PUSH", e[e.PUSH_REPEATING = 2] = "PUSH_REPEATING", e;
1104
- }(eDownKeys || {}), EventMng = class {
1105
- #e = new EventListenerCtn();
1198
+ //#endregion
1199
+ //#region src/sn/EventMng.ts
1200
+ var pt = class {
1201
+ cfg;
1202
+ hTag;
1203
+ appPixi;
1204
+ main;
1205
+ layMng;
1206
+ val;
1207
+ scrItr;
1208
+ sys;
1209
+ #e = new l();
1106
1210
  #t;
1107
1211
  #n;
1108
- #r = new Map([[0, ""], [1, "middle"]]);
1109
- constructor(n, r, a, o, u, d, f, h, v) {
1110
- if (this.cfg = n, this.hTag = r, this.appPixi = a, this.main = o, this.layMng = u, this.val = d, this.scrItr = h, this.sys = v, r.clear_event = (e) => ReadingState.clear_event(e), r.event = (e) => this.#_(e), r.set_cancel_skip = () => !1, r.set_focus = (e) => this.#y(e), this.#t = new FocusMng(a.view, v), f.setEvtMng(this), h.setOtherObj(this, u), TxtLayer.setEvtMng(this, v, h), u.setEvtMng(this), Reading.setFcs(this.#t), v.setFire((e, t) => Reading.fire(e, t)), CmnLib.isDbg) {
1212
+ #r = /* @__PURE__ */ new Map([[0, ""], [1, "middle"]]);
1213
+ constructor(t, n, i, a, l, u, d, m, _) {
1214
+ if (this.cfg = t, this.hTag = n, this.appPixi = i, this.main = a, this.layMng = l, this.val = u, this.scrItr = m, this.sys = _, n.clear_event = (e) => f.clear_event(e), n.event = (e) => this.#_(e), n.set_cancel_skip = () => !1, n.set_focus = (e) => this.#y(e), this.#t = new g(i.view, _), d.setEvtMng(this), m.setOtherObj(this, l), h.setEvtMng(this, _, m), l.setEvtMng(this), p.setFcs(this.#t), _.setFire((e, t) => p.fire(e, t)), o.isDbg) {
1111
1215
  let e = { pause: () => {
1112
- if (!Reading.isWait) return;
1216
+ if (!p.isWait) return;
1113
1217
  let e = {};
1114
- h.recodeDesign(e), v.callHook("_enterDesign", e), v.send2Dbg("_enterDesign", e);
1218
+ m.recodeDesign(e), _.callHook("_enterDesign", e), _.send2Dbg("_enterDesign", e);
1115
1219
  } };
1116
- e.attach = e.stopOnEntry = e.stopOnStep = e.stopOnStepIn = e.stopOnStepOut = e.stopOnBackstep = e.pause, v.addHook((t) => e[t]?.());
1220
+ e.attach = e.stopOnEntry = e.stopOnStep = e.stopOnStepIn = e.stopOnStepOut = e.stopOnBackstep = e.pause, _.addHook((t) => e[t]?.());
1117
1221
  }
1118
- addStyle("\n.sn_hint {\n background-color: #3c3225;\n color: white;\n padding: 4px 8px;\n border-radius: 4px;\n font-size: 1.2em;\n z-index: 10000;\n pointer-events: none;\n user-select: none;\n}\n\n.sn_hint_ar,\n.sn_hint_ar::before {\n position: absolute;\n width: 8px;\n height: 8px;\n background: inherit;\n}\n.sn_hint_ar {\n visibility: hidden;\n}\n.sn_hint_ar::before {\n visibility: visible;\n content: '';\n transform: rotate(45deg);\n}\n\n.sn_hint[data-popper-placement^='top'] > .sn_hint_ar {bottom: -4px;}\n.sn_hint[data-popper-placement^='bottom'] > .sn_hint_ar {top: -4px;}\n.sn_hint[data-popper-placement^='left'] > .sn_hint_ar {right: -4px;}\n.sn_hint[data-popper-placement^='right'] > .sn_hint_ar {left: -4px;}\n"), o.cvs.parentElement?.insertAdjacentHTML("beforeend", "\n<div class=\"sn_hint\" role=\"tooltip\">\n <span>Dummy</span>\n <div class=\"sn_hint_ar\" data-popper-arrow></div>\n</div>"), this.#f = document.querySelector(".sn_hint"), this.#p = this.#f.querySelector("span"), this.#m = createPopper(this.#d, this.#f), this.#f.hidden = !0, a.stage.interactive = !0, this.#e.add(document.body, EVNM_KEY, (e) => this.#a(e)), this.#e.add(document.body, "keyup", () => ReadingState.resetFired()), this.#e.add(o.cvs, "contextmenu", (e) => {
1222
+ r("\n.sn_hint {\n background-color: #3c3225;\n color: white;\n padding: 4px 8px;\n border-radius: 4px;\n font-size: 1.2em;\n z-index: 10000;\n pointer-events: none;\n user-select: none;\n}\n\n.sn_hint_ar,\n.sn_hint_ar::before {\n position: absolute;\n width: 8px;\n height: 8px;\n background: inherit;\n}\n.sn_hint_ar {\n visibility: hidden;\n}\n.sn_hint_ar::before {\n visibility: visible;\n content: '';\n transform: rotate(45deg);\n}\n\n.sn_hint[data-popper-placement^='top'] > .sn_hint_ar {bottom: -4px;}\n.sn_hint[data-popper-placement^='bottom'] > .sn_hint_ar {top: -4px;}\n.sn_hint[data-popper-placement^='left'] > .sn_hint_ar {right: -4px;}\n.sn_hint[data-popper-placement^='right'] > .sn_hint_ar {left: -4px;}\n"), a.cvs.parentElement?.insertAdjacentHTML("beforeend", "\n<div class=\"sn_hint\" role=\"tooltip\">\n <span>Dummy</span>\n <div class=\"sn_hint_ar\" data-popper-arrow></div>\n</div>"), this.#f = document.querySelector(".sn_hint"), this.#p = this.#f.querySelector("span"), this.#m = dt(this.#d, this.#f), this.#f.hidden = !0, i.stage.interactive = !0, this.#e.add(document.body, e, (e) => this.#a(e)), this.#e.add(document.body, "keyup", () => f.resetFired()), this.#e.add(a.cvs, "contextmenu", (e) => {
1119
1223
  let t = this.#o(e) + "rightclick";
1120
- Reading.fire(t, e, !0), e.preventDefault();
1224
+ p.fire(t, e, !0), e.preventDefault();
1121
1225
  });
1122
- let { width: y, height: b } = n.oCfg.window, x = Math.floor(y > b ? b / 3 : y / 3);
1123
- this.#n = new TinyGesture_default(o.cvs, {
1226
+ let { width: v, height: y } = t.oCfg.window, b = Math.floor(v > y ? y / 3 : v / 3);
1227
+ this.#n = new ft(a.cvs, {
1124
1228
  velocityThreshold: 0,
1125
- disregardVelocityThreshold: (e) => Math.floor(x * (e === "x" ? 1 : .5))
1229
+ disregardVelocityThreshold: (e) => Math.floor(b * (e === "x" ? 1 : .5))
1126
1230
  });
1127
- let S = !1;
1231
+ let x = !1;
1128
1232
  this.#n.on("tap", (e) => {
1129
- if (S) return;
1233
+ if (x) return;
1130
1234
  if (e instanceof TouchEvent) {
1131
- Reading.fire("click", e, !0), ReadingState.resetFired();
1235
+ p.fire("click", e, !0), f.resetFired();
1132
1236
  return;
1133
1237
  }
1134
1238
  if (e.button > 1) return;
1135
1239
  let t = this.#o(e) + `${this.#r.get(e.button) ?? ""}click`;
1136
- Reading.fire(t, e, !0), ReadingState.resetFired();
1137
- }), this.#e.add(window, "pointerout", () => ReadingState.resetFired()), this.#n.on("longpress", (e) => {
1138
- if (S = !0, e instanceof TouchEvent) {
1139
- Reading.fire("longpress", e, !0);
1240
+ p.fire(t, e, !0), f.resetFired();
1241
+ }), this.#e.add(window, "pointerout", () => f.resetFired()), this.#n.on("longpress", (e) => {
1242
+ if (x = !0, e instanceof TouchEvent) {
1243
+ p.fire("longpress", e, !0);
1140
1244
  return;
1141
1245
  }
1142
1246
  let t = this.#o(e) + `${this.#r.get(e.button) ?? ""}longpress`;
1143
- Reading.fire(t, e, !0);
1247
+ p.fire(t, e, !0);
1144
1248
  }), this.#n.on("panend", () => {
1145
- S && queueMicrotask(() => {
1146
- S = !1;
1249
+ x && queueMicrotask(() => {
1250
+ x = !1;
1147
1251
  });
1148
1252
  }), [
1149
1253
  "swiperight",
@@ -1153,32 +1257,32 @@ var eDownKeys = /* @__PURE__ */ function(e) {
1153
1257
  ].forEach((e) => {
1154
1258
  this.#n.on(e, (t) => {
1155
1259
  if (t instanceof TouchEvent) {
1156
- Reading.fire(e, t, !0);
1260
+ p.fire(e, t, !0);
1157
1261
  return;
1158
1262
  }
1159
1263
  let n = this.#o(t) + e;
1160
- Reading.fire(n, t, !0);
1264
+ p.fire(n, t, !0);
1161
1265
  });
1162
1266
  });
1163
- let C = () => d.setVal_Nochk("tmp", "const.sn.navigator.language", navigator.language);
1267
+ let S = () => u.setVal_Nochk("tmp", "const.sn.navigator.language", navigator.language);
1164
1268
  this.#e.add(globalThis, "languagechange", (e) => {
1165
- C(), Reading.fire("sn:chgNavLang", e), clearTextureCache();
1166
- }), C();
1167
- let w = (e) => {
1168
- CmnLib.isDarkMode = e.matches, d.setVal_Nochk("tmp", "const.sn.isDarkMode", CmnLib.isDarkMode);
1169
- }, T = globalThis.matchMedia("(prefers-color-scheme: dark)");
1170
- w(T), this.#e.add(T, "change", (e) => {
1171
- w(e), Reading.fire("sn:chgDarkMode", e);
1269
+ S(), p.fire("sn:chgNavLang", e), s();
1270
+ }), S();
1271
+ let C = (e) => {
1272
+ o.isDarkMode = e.matches, u.setVal_Nochk("tmp", "const.sn.isDarkMode", o.isDarkMode);
1273
+ }, w = globalThis.matchMedia("(prefers-color-scheme: dark)");
1274
+ C(w), this.#e.add(w, "change", (e) => {
1275
+ C(e), p.fire("sn:chgDarkMode", e);
1172
1276
  });
1173
- let E = (e, t) => {};
1174
- "WheelEvent" in globalThis && (this.#e.add(o.cvs, "wheel", (e) => this.#s(e), { passive: !0 }), this.#i = (e) => this.#e.add(e, "wheel", (e) => this.#s(e), { passive: !0 }), E = (e, t) => e.add(o.cvs, "wheel", (e) => {
1277
+ let T = (e, t) => {};
1278
+ "WheelEvent" in globalThis && (this.#e.add(a.cvs, "wheel", (e) => this.#s(e), { passive: !0 }), this.#i = (e) => this.#e.add(e, "wheel", (e) => this.#s(e), { passive: !0 }), T = (e, t) => e.add(a.cvs, "wheel", (e) => {
1175
1279
  e.deltaY <= 0 || (e.stopPropagation(), t());
1176
- })), Reading.init(n, r, o, d, h, u, this, f, E), import("./gamepad.js").then(__toDynamicImportESM()).then(({ GamepadListener: e }) => {
1177
- let n = new e({
1280
+ })), p.init(t, n, a, u, m, l, this, d, T), import("./gamepad.js").then(({ GamepadListener: t }) => {
1281
+ let n = new t({
1178
1282
  analog: !1,
1179
1283
  deadZone: .3
1180
1284
  });
1181
- CmnLib.debugLog && (n.on("gamepad:connected", ({ detail: e }) => console.log(`👺<'gamepad:connected' index:${String(e.index)} id:${e.gamepad.id}`)), n.on("gamepad:disconnected", ({ detail: e }) => console.log(`👺<'gamepad:disconnected' index:${String(e.index)} id:${e.gamepad.id}`)));
1285
+ o.debugLog && (n.on("gamepad:connected", ({ detail: e }) => console.log(`👺<'gamepad:connected' index:${String(e.index)} id:${e.gamepad.id}`)), n.on("gamepad:disconnected", ({ detail: e }) => console.log(`👺<'gamepad:disconnected' index:${String(e.index)} id:${e.gamepad.id}`)));
1182
1286
  let r = [
1183
1287
  "",
1184
1288
  "ArrowUp",
@@ -1190,46 +1294,46 @@ var eDownKeys = /* @__PURE__ */ function(e) {
1190
1294
  "ArrowDown",
1191
1295
  ""
1192
1296
  ], i = [0, 0];
1193
- n.on("gamepad:axis", ({ detail: e }) => {
1297
+ n.on("gamepad:axis", ({ detail: t }) => {
1194
1298
  if (!document.hasFocus()) return;
1195
- i[e.axis] = e.value;
1196
- let [n = 0, a = 0] = i, o = r[(a + 1) * 3 + (n + 1)];
1197
- if (!o) return;
1198
- let s = this.#t.getFocus();
1199
- (!s || s instanceof Container ? globalThis : s).dispatchEvent(new KeyboardEvent(EVNM_KEY, {
1200
- key: o,
1299
+ i[t.axis] = t.value;
1300
+ let [n = 0, a = 0] = i, o = (a + 1) * 3 + (n + 1), s = r[o];
1301
+ if (!s) return;
1302
+ let l = this.#t.getFocus();
1303
+ (!l || l instanceof c ? globalThis : l).dispatchEvent(new KeyboardEvent(e, {
1304
+ key: s,
1201
1305
  bubbles: !0
1202
- })), !(!s || s instanceof Container) && (Reading.cancelAutoSkip(), s.getAttribute("type") === "range" && s.dispatchEvent(new InputEvent("input", { bubbles: !0 })));
1203
- }), n.on("gamepad:button", (e) => {
1204
- if (document.hasFocus()) if (e.detail.button % 2 == 0) {
1205
- Reading.cancelAutoSkip();
1206
- let e = this.#t.getFocus();
1207
- (!e || e instanceof Container ? document.body : e).dispatchEvent(new KeyboardEvent(EVNM_KEY, {
1306
+ })), !(!l || l instanceof c) && (p.cancelAutoSkip(), l.getAttribute("type") === "range" && l.dispatchEvent(new InputEvent("input", { bubbles: !0 })));
1307
+ }), n.on("gamepad:button", (t) => {
1308
+ if (document.hasFocus()) if (t.detail.button % 2 == 0) {
1309
+ p.cancelAutoSkip();
1310
+ let t = this.#t.getFocus();
1311
+ (!t || t instanceof c ? document.body : t).dispatchEvent(new KeyboardEvent(e, {
1208
1312
  key: "Enter",
1209
1313
  bubbles: !0
1210
1314
  }));
1211
- } else Reading.fire("middleclick", e, !0);
1315
+ } else p.fire("middleclick", t, !0);
1212
1316
  }), n.start();
1213
1317
  }), this.#e.add(document, "keyup", (e) => {
1214
- e.isComposing || e.key in this.#b && (this.#b[e.key] = eDownKeys.NO_PUSH);
1215
- }), d.defTmp("const.sn.key.alternate", () => this.#b.Alt > eDownKeys.NO_PUSH), d.defTmp("const.sn.key.command", () => this.#b.Meta > eDownKeys.NO_PUSH), d.defTmp("const.sn.key.control", () => this.#b.Control > eDownKeys.NO_PUSH), d.defTmp("const.sn.key.end", () => this.#b.End > eDownKeys.NO_PUSH), d.defTmp("const.sn.key.escape", () => this.#b.Escape > eDownKeys.NO_PUSH), d.defTmp("const.sn.key.back", () => this.#b.GoBack > eDownKeys.NO_PUSH);
1318
+ e.isComposing || e.key in this.#b && (this.#b[e.key] = 0);
1319
+ }), u.defTmp("const.sn.key.alternate", () => this.#b.Alt > 0), u.defTmp("const.sn.key.command", () => this.#b.Meta > 0), u.defTmp("const.sn.key.control", () => this.#b.Control > 0), u.defTmp("const.sn.key.end", () => this.#b.End > 0), u.defTmp("const.sn.key.escape", () => this.#b.Escape > 0), u.defTmp("const.sn.key.back", () => this.#b.GoBack > 0);
1216
1320
  }
1217
- resvFlameEvent(e) {
1218
- this.#e.add(e, EVNM_KEY, (e) => this.#a(e)), this.#e.add(e, "contextmenu", (e) => {
1219
- Reading.fire(this.#o(e) + "rightclick", e, !0), e.preventDefault();
1220
- }), this.#i(e), this.#e.add(e, EVNM_CLICK, (e) => {
1321
+ resvFlameEvent(t) {
1322
+ this.#e.add(t, e, (e) => this.#a(e)), this.#e.add(t, "contextmenu", (e) => {
1323
+ p.fire(this.#o(e) + "rightclick", e, !0), e.preventDefault();
1324
+ }), this.#i(t), this.#e.add(t, i, (e) => {
1221
1325
  if (e instanceof TouchEvent) {
1222
- Reading.fire("click", e, !0);
1326
+ p.fire("click", e, !0);
1223
1327
  return;
1224
1328
  }
1225
1329
  if (e.button > 1) return;
1226
1330
  let t = this.#o(e) + `${this.#r.get(e.button) ?? ""}click`;
1227
- Reading.fire(t, e, !0);
1228
- }), this.#e.add(e, "pointerup", () => ReadingState.resetFired()), this.#e.add(e, "pointerout", () => ReadingState.resetFired());
1331
+ p.fire(t, e, !0);
1332
+ }), this.#e.add(t, "pointerup", () => f.resetFired()), this.#e.add(t, "pointerout", () => f.resetFired());
1229
1333
  }
1230
1334
  #i = (e) => {};
1231
1335
  #a(e) {
1232
- e.isComposing || (e.key in this.#b && (this.#b[e.key] = e.repeat ? eDownKeys.PUSH_REPEATING : eDownKeys.ONE_PUSH), e.preventDefault(), Reading.fire(SysBase.modKey(e) + e.key, e, !0));
1336
+ e.isComposing || (e.key in this.#b && (this.#b[e.key] = e.repeat ? 2 : 1), e.preventDefault(), p.fire(d.modKey(e) + e.key, e, !0));
1233
1337
  }
1234
1338
  #o(e) {
1235
1339
  return (e.altKey ? "alt+" : "") + (e.ctrlKey ? "ctrl+" : "") + (e.metaKey ? "meta+" : "") + (e.shiftKey ? "shift+" : "");
@@ -1241,7 +1345,7 @@ var eDownKeys = /* @__PURE__ */ function(e) {
1241
1345
  }
1242
1346
  this.#c = !0, this.#u();
1243
1347
  let t = this.#o(e) + (e.deltaY > 0 ? "downwheel" : "upwheel");
1244
- Reading.fire(t, e, !0);
1348
+ p.fire(t, e, !0);
1245
1349
  }
1246
1350
  #c = !1;
1247
1351
  #l = !1;
@@ -1256,37 +1360,37 @@ var eDownKeys = /* @__PURE__ */ function(e) {
1256
1360
  }
1257
1361
  destroy() {
1258
1362
  for (let e of Array.from(document.getElementsByClassName("sn_hint"))) e.parentElement?.removeChild(e);
1259
- this.#n.destroy(), Reading.destroy(), this.#t.destroy(), this.#e.clear();
1363
+ this.#n.destroy(), p.destroy(), this.#t.destroy(), this.#e.clear();
1260
1364
  }
1261
1365
  unButton(e) {
1262
1366
  this.#t.remove(e);
1263
1367
  }
1264
- button(e, t, n, i, a) {
1368
+ button(e, t, r, i, s) {
1265
1369
  !e.fn && !e.label && !e.url && this.main.errScript("fnまたはlabelまたはurlは必須です"), e.fn ??= this.scrItr.scriptFn, t.interactive = !0, t.cursor = "pointer";
1266
- let c = e.key?.toLowerCase() ?? " ", l = argChk_Boolean(e, "global", !1);
1267
- ReadingState.setEvt2Fnc(l, c, () => this.main.resumeByJumpOrCall(e)), t.on(EVNM_BUTTON, (e) => {
1268
- e.preventDefault?.(), Reading.fire(c, e, !0);
1370
+ let c = e.key?.toLowerCase() ?? " ", l = a(e, "global", !1);
1371
+ f.setEvt2Fnc(l, c, () => this.main.resumeByJumpOrCall(e)), t.on(n, (e) => {
1372
+ e.preventDefault?.(), p.fire(c, e, !0);
1269
1373
  });
1270
- let u = e.hint ? () => this.#g(e, t) : () => {}, f = () => {
1271
- n(), this.#f.hidden = !0;
1272
- }, g = () => (u(), i());
1374
+ let d = e.hint ? () => this.#g(e, t) : () => {}, h = () => {
1375
+ r(), this.#f.hidden = !0;
1376
+ }, g = () => (d(), i());
1273
1377
  if (t.on("pointerover", g), t.on("pointerout", () => {
1274
- this.#t.isFocus(t) ? g() : f();
1378
+ this.#t.isFocus(t) ? g() : h();
1275
1379
  }), t.on("pointerdown", () => {
1276
1380
  this.#f.hidden = !0;
1277
1381
  let e = this.#t.getFocus();
1278
- a(), e instanceof Button && e.normal();
1279
- }), t.on("pointerup", CmnLib.isMobile ? f : () => {
1280
- this.#t.isFocus(t) ? g() : f();
1281
- }), this.#t.add(t, g, f), e.clickse && (e.clicksebuf ??= "SYS", this.cfg.searchPath(e.clickse, SEARCH_PATH_ARG_EXT.SOUND), t.on("pointerdown", () => this.hTag.playse({
1382
+ s(), e instanceof m && e.normal();
1383
+ }), t.on("pointerup", o.isMobile ? h : () => {
1384
+ this.#t.isFocus(t) ? g() : h();
1385
+ }), this.#t.add(t, g, h), e.clickse && (e.clicksebuf ??= "SYS", this.cfg.searchPath(e.clickse, u.SOUND), t.on("pointerdown", () => this.hTag.playse({
1282
1386
  fn: e.clickse,
1283
1387
  ...e.clicksebuf ? { buf: e.clicksebuf } : {},
1284
1388
  join: !1
1285
- }))), e.enterse && (e.entersebuf ??= "SYS", this.cfg.searchPath(e.enterse, SEARCH_PATH_ARG_EXT.SOUND), t.on("pointerover", () => this.hTag.playse({
1389
+ }))), e.enterse && (e.entersebuf ??= "SYS", this.cfg.searchPath(e.enterse, u.SOUND), t.on("pointerover", () => this.hTag.playse({
1286
1390
  fn: e.enterse,
1287
1391
  ...e.entersebuf ? { buf: e.entersebuf } : {},
1288
1392
  join: !1
1289
- }))), e.leavese && (e.leavesebuf ??= "SYS", this.cfg.searchPath(e.leavese, SEARCH_PATH_ARG_EXT.SOUND), t.on("pointerout", () => this.hTag.playse({
1393
+ }))), e.leavese && (e.leavesebuf ??= "SYS", this.cfg.searchPath(e.leavese, u.SOUND), t.on("pointerout", () => this.hTag.playse({
1290
1394
  fn: e.leavese,
1291
1395
  ...e.leavesebuf ? { buf: e.leavesebuf } : {},
1292
1396
  join: !1
@@ -1297,7 +1401,7 @@ var eDownKeys = /* @__PURE__ */ function(e) {
1297
1401
  call: !0,
1298
1402
  key: n
1299
1403
  };
1300
- ReadingState.setEvt2Fnc(l, n, () => this.main.resumeByJumpOrCall(r)), t.on("pointerover", (e) => Reading.fire(n, e));
1404
+ f.setEvt2Fnc(l, n, () => this.main.resumeByJumpOrCall(r)), t.on("pointerover", (e) => p.fire(n, e));
1301
1405
  }
1302
1406
  if (e.onleave) {
1303
1407
  let n = c + e.onleave.toLowerCase(), r = {
@@ -1306,7 +1410,7 @@ var eDownKeys = /* @__PURE__ */ function(e) {
1306
1410
  call: !0,
1307
1411
  key: n
1308
1412
  };
1309
- ReadingState.setEvt2Fnc(l, n, () => this.main.resumeByJumpOrCall(r)), t.on("pointerout", (e) => Reading.fire(n, e));
1413
+ f.setEvt2Fnc(l, n, () => this.main.resumeByJumpOrCall(r)), t.on("pointerout", (e) => p.fire(n, e));
1310
1414
  }
1311
1415
  }
1312
1416
  #d = { getBoundingClientRect: (e = 0, t = 0) => DOMRect.fromRect({
@@ -1325,10 +1429,10 @@ var eDownKeys = /* @__PURE__ */ function(e) {
1325
1429
  options: { fallbackPlacements: ["top", "bottom"] }
1326
1430
  }]
1327
1431
  };
1328
- #g(e, t) {
1329
- let r = t instanceof Button ? t.getBtnBounds() : t.getBounds();
1432
+ #g(e, n) {
1433
+ let r = n instanceof m ? n.getBtnBounds() : n.getBounds();
1330
1434
  if (e[":タグ名"] !== "link") {
1331
- let e = t.parent.parent;
1435
+ let e = n.parent.parent;
1332
1436
  r.x += e.x, r.y += e.y;
1333
1437
  }
1334
1438
  if (!e.hint) {
@@ -1345,7 +1449,7 @@ var eDownKeys = /* @__PURE__ */ function(e) {
1345
1449
  ...JSON.parse(e.hint_opt)
1346
1450
  } : this.#h).then(async () => {
1347
1451
  await this.#m.update(), this.#f.hidden = !1;
1348
- }).catch((t) => console.error(mesErrJSON(e, "hint_opt", `dispHint 引数 hint_opt エラー ${t instanceof SyntaxError ? t.message : ""}`)));
1452
+ }).catch((n) => console.error(t(e, "hint_opt", `dispHint 引数 hint_opt エラー ${n instanceof SyntaxError ? n.message : ""}`)));
1349
1453
  }
1350
1454
  hideHint() {
1351
1455
  this.#f.hidden = !0;
@@ -1353,22 +1457,22 @@ var eDownKeys = /* @__PURE__ */ function(e) {
1353
1457
  cvsResize() {
1354
1458
  this.hideHint();
1355
1459
  }
1356
- #_(e) {
1357
- let n = e.key;
1460
+ #_(t) {
1461
+ let n = t.key;
1358
1462
  if (!n) throw "keyは必須です";
1359
- let r = n.toLowerCase(), i = argChk_Boolean(e, "call", !1), a = argChk_Boolean(e, "global", !1), { fn: s, label: c, url: l } = e;
1360
- if (argChk_Boolean(e, "del", !1)) {
1463
+ let r = n.toLowerCase(), i = a(t, "call", !1), o = a(t, "global", !1), { fn: s, label: c, url: l } = t;
1464
+ if (a(t, "del", !1)) {
1361
1465
  if (s || c || i || l) throw "fn/label/callとdelは同時指定できません";
1362
- return ReadingState.clear_eventer(n, a, r), !1;
1466
+ return f.clear_eventer(n, o, r), !1;
1363
1467
  }
1364
1468
  if (!s && !c && !l) throw "fn,label,url いずれかは必須です";
1365
- if (e.fn ??= this.scrItr.scriptFn, n.startsWith("dom=")) {
1366
- let r = ReadingState.getHtmlElmList(n);
1469
+ if (t.fn ??= this.scrItr.scriptFn, n.startsWith("dom=")) {
1470
+ let r = f.getHtmlElmList(n);
1367
1471
  if (r.el.length === 0) {
1368
- if (argChk_Boolean(e, "need_err", !0)) throw `HTML内にセレクタ(${r.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
1472
+ if (a(t, "need_err", !0)) throw `HTML内にセレクタ(${r.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
1369
1473
  return !1;
1370
1474
  }
1371
- let i = ["click", EVNM_KEY];
1475
+ let i = ["click", e];
1372
1476
  switch (r.el[0].type ?? "") {
1373
1477
  case "checkbox":
1374
1478
  i = ["input"];
@@ -1381,20 +1485,20 @@ var eDownKeys = /* @__PURE__ */ function(e) {
1381
1485
  i = ["input", "change"];
1382
1486
  break;
1383
1487
  }
1384
- let a = i.length;
1385
- for (let e = 0; e < a; ++e) {
1488
+ let o = i.length;
1489
+ for (let e = 0; e < o; ++e) {
1386
1490
  let t = i[e];
1387
1491
  r.el.forEach((i) => {
1388
1492
  this.#e.add(i, t, (e) => {
1389
- if (!Reading.isWait || this.layMng.getFrmDisabled(r.id) || t === "keydown" && e.key !== "Enter") return;
1493
+ if (!p.isWait || this.layMng.getFrmDisabled(r.id) || t === "keydown" && e.key !== "Enter") return;
1390
1494
  let a = i.dataset;
1391
1495
  for (let [e, t] of Object.entries(a)) this.val.setVal_Nochk("tmp", `sn.event.domdata.${e}`, t);
1392
- Reading.fire(n, e);
1496
+ p.fire(n, e);
1393
1497
  }), e === 0 && this.#t.add(i, () => this.#v(i) ? (i.focus(), !0) : !1, () => {});
1394
1498
  });
1395
1499
  }
1396
1500
  }
1397
- return ReadingState.setEvt2Fnc(a, r, () => this.main.resumeByJumpOrCall(e)), !1;
1501
+ return f.setEvt2Fnc(o, r, () => this.main.resumeByJumpOrCall(t)), !1;
1398
1502
  }
1399
1503
  #v(e) {
1400
1504
  if (!e || e.offsetParent === null) return !1;
@@ -1408,13 +1512,13 @@ var eDownKeys = /* @__PURE__ */ function(e) {
1408
1512
  #y(e) {
1409
1513
  let { add: t, del: n, to: r } = e;
1410
1514
  if (t?.startsWith("dom=")) {
1411
- let n = ReadingState.getHtmlElmList(t);
1412
- if (n.el.length === 0 && argChk_Boolean(e, "need_err", !0)) throw `HTML内にセレクタ(${n.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
1515
+ let n = f.getHtmlElmList(t);
1516
+ if (n.el.length === 0 && a(e, "need_err", !0)) throw `HTML内にセレクタ(${n.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
1413
1517
  return n.el.forEach((e) => this.#t.add(e, () => this.#v(e) ? (e.focus(), !0) : !1, () => {})), !1;
1414
1518
  }
1415
1519
  if (n?.startsWith("dom=")) {
1416
- let t = ReadingState.getHtmlElmList(n);
1417
- if (t.el.length === 0 && argChk_Boolean(e, "need_err", !0)) throw `HTML内にセレクタ(${t.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
1520
+ let t = f.getHtmlElmList(n);
1521
+ if (t.el.length === 0 && a(e, "need_err", !0)) throw `HTML内にセレクタ(${t.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
1418
1522
  return t.el.forEach((e) => this.#t.remove(e)), !1;
1419
1523
  }
1420
1524
  if (!r) throw "[set_focus] add か to は必須です";
@@ -1432,20 +1536,21 @@ var eDownKeys = /* @__PURE__ */ function(e) {
1432
1536
  return !1;
1433
1537
  }
1434
1538
  get isSkipping() {
1435
- return Reading.isSkipping ? !0 : Object.keys(this.#b).some((e) => this.#b[e] === eDownKeys.PUSH_REPEATING);
1539
+ return p.isSkipping ? !0 : Object.keys(this.#b).some((e) => this.#b[e] === 2);
1436
1540
  }
1437
1541
  #b = {
1438
- Alt: eDownKeys.NO_PUSH,
1439
- Meta: eDownKeys.NO_PUSH,
1440
- Control: eDownKeys.NO_PUSH,
1441
- ArrowDown: eDownKeys.NO_PUSH,
1442
- End: eDownKeys.NO_PUSH,
1443
- Enter: eDownKeys.NO_PUSH,
1444
- Escape: eDownKeys.NO_PUSH,
1445
- " ": eDownKeys.NO_PUSH,
1446
- GoBack: eDownKeys.NO_PUSH
1542
+ Alt: 0,
1543
+ Meta: 0,
1544
+ Control: 0,
1545
+ ArrowDown: 0,
1546
+ End: 0,
1547
+ Enter: 0,
1548
+ Escape: 0,
1549
+ " ": 0,
1550
+ GoBack: 0
1447
1551
  };
1448
1552
  };
1449
- export { EventMng };
1553
+ //#endregion
1554
+ export { pt as EventMng };
1450
1555
 
1451
1556
  //# sourceMappingURL=EventMng.js.map