@verbb/formie-browser 1.0.14 → 1.0.16

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 (156) hide show
  1. package/CHANGELOG.md +66 -0
  2. package/dist/chunks/{address-country-Dn71jroa.js → address-country-DLJF-OkC.js} +5 -9
  3. package/dist/chunks/{address-finder-O49uDRoR.js → address-finder-QK1m1eyv.js} +2 -2
  4. package/dist/chunks/{address-state-ByYatUur.js → address-state-CHKit8AW.js} +113 -112
  5. package/dist/chunks/{api-DYYsVIub.js → api-BPtH5RBA.js} +162 -130
  6. package/dist/chunks/{api-D6kJ7kXZ.js → api-BR2Gqy37.js} +313 -303
  7. package/dist/chunks/{api-ghNr2uxX.js → api-CmuOZ0i3.js} +1 -1
  8. package/dist/chunks/{async-nPFRNQ06.js → async-2GdXNFCE.js} +18 -1
  9. package/dist/chunks/{bpoint-D0RKFM4F.js → bpoint-GvYfyPjD.js} +1 -1
  10. package/dist/chunks/{calculations-YEoVCG2q.js → calculations-DeEmdUDq.js} +5 -7
  11. package/dist/chunks/{captcha-eu-DERJbXnH.js → captcha-eu-eU_M6snp.js} +2 -2
  12. package/dist/chunks/{checkbox-radio-gsm8QPJg.js → checkbox-radio-CSXo6svm.js} +4 -12
  13. package/dist/chunks/{combobox-CWNdx4Fk.js → combobox-CJh2DoSO.js} +323 -363
  14. package/dist/chunks/{conditions-DqNHLTbN.js → conditions-Dz3068K0.js} +140 -153
  15. package/dist/chunks/{country-from-ip-DDj_mFki.js → country-from-ip-BqQ-BqLH.js} +1 -1
  16. package/dist/chunks/{custom-google-maps-C4l2S3GO.js → custom-google-maps-rNm5VFbb.js} +2 -6
  17. package/dist/chunks/{custom-link-CLazgKYH.js → custom-link-CLqFCssQ.js} +1 -1
  18. package/dist/chunks/{custom-maps-DqcAlD0v.js → custom-maps-DgjYQDLj.js} +4 -8
  19. package/dist/chunks/{date-picker-RUnevF7l.js → date-picker-BVJxJVYT.js} +42 -58
  20. package/dist/chunks/{debug-BV0DvdHx.js → debug-rhzqP1j2.js} +2 -14
  21. package/dist/chunks/{dist-ZLeW0zZ3.js → dist-CJReDlDK.js} +13 -8
  22. package/dist/chunks/{eway-or6dtjoT.js → eway-BZuTBAUW.js} +3 -3
  23. package/dist/chunks/{field-references.resolver-Ca8MguFv.js → field-references.resolver-uSHf5-NP.js} +1 -1
  24. package/dist/chunks/{file-upload-Bm-TXyNB.js → file-upload-vEUr_EuP.js} +131 -113
  25. package/dist/chunks/{friendly-captcha-v1-GFqCt1Mh.js → friendly-captcha-v1-C_cF1WD2.js} +2 -2
  26. package/dist/chunks/{friendly-captcha-v2-WoW246JG.js → friendly-captcha-v2-BenESH-n.js} +2 -2
  27. package/dist/chunks/{friendly-challenge-DPG9MJb1.js → friendly-challenge-BgPBEMXx.js} +21 -35
  28. package/dist/chunks/{go-cardless-DzJ-0FKg.js → go-cardless-DWZeB0Bq.js} +2 -6
  29. package/dist/chunks/{google-address-C1P1nTDM.js → google-address-DQR6rsbh.js} +15 -10
  30. package/dist/chunks/{hcaptcha-D0T8aIHz.js → hcaptcha-COilLmRT.js} +2 -2
  31. package/dist/chunks/{hidden-BZhXnNPe.js → hidden-Bc2TpcgF.js} +1 -1
  32. package/dist/chunks/{http-C2QdHuWO.js → http-Dj_skqaa.js} +1 -1
  33. package/dist/chunks/{leaflet-src-DE6rv6M-.js → leaflet-src-Cg-LUOD8.js} +74 -122
  34. package/dist/chunks/{loqate-DD1S7PY9.js → loqate-ZZClcacr.js} +2 -2
  35. package/dist/chunks/{mollie-DG8Ju83x.js → mollie-8OMXIYa8.js} +2 -6
  36. package/dist/chunks/{moneris-C8m3Fvqu.js → moneris-qYHJ9EFy.js} +1 -1
  37. package/dist/chunks/opayo-DlWPEnla.js +159 -0
  38. package/dist/chunks/{paddle-BIYR9Um3.js → paddle-CArfWih0.js} +2 -2
  39. package/dist/chunks/{password-validation-C8_uO_c_.js → password-validation-HGOU9kf3.js} +2 -2
  40. package/dist/chunks/{paypal-B_yxIo2d.js → paypal-BcaMCMGY.js} +2 -2
  41. package/dist/chunks/{payway-CeOzS0sL.js → payway-vxC7_bfR.js} +4 -12
  42. package/dist/chunks/{phone-country-bAqje17P.js → phone-country-Bx9EG50h.js} +124 -141
  43. package/dist/chunks/{place-kit-BE5gi3vo.js → place-kit-BKk8xDXf.js} +10 -10
  44. package/dist/chunks/{placekit-autocomplete.esm-CZZERYur.js → placekit-autocomplete.esm-D2A_0iVU.js} +2 -5
  45. package/dist/chunks/{recaptcha-enterprise-CruXddZq.js → recaptcha-enterprise-Cx6HUpMa.js} +6 -12
  46. package/dist/chunks/recaptcha-shared-CcMI-r8t.js +33 -0
  47. package/dist/chunks/{recaptcha-v2-checkbox-CCnJYCnG.js → recaptcha-v2-checkbox-DQ9BJzcv.js} +2 -2
  48. package/dist/chunks/{recaptcha-v2-invisible-BuVqRRYn.js → recaptcha-v2-invisible-BP0T8Pan.js} +2 -2
  49. package/dist/chunks/recaptcha-v3-DKMGQ27K.js +38 -0
  50. package/dist/chunks/{repeater-DwE27jI1.js → repeater-BR0RUvTs.js} +50 -40
  51. package/dist/chunks/{rich-text-uV4o_pGk.js → rich-text-H2A6cm1t.js} +33 -11
  52. package/dist/chunks/{rolldown-runtime-DtPi1Y-2.js → rolldown-runtime-VHNaYcLd.js} +1 -1
  53. package/dist/chunks/{scripts-CbQ7agX3.js → scripts-DrccjrFv.js} +1 -1
  54. package/dist/chunks/{sdk-lkwSvlpM.js → sdk-_cmrRYgp.js} +4 -16
  55. package/dist/chunks/{shared-OKhSay59.js → shared-CJ1LIEh3.js} +1 -3
  56. package/dist/chunks/{signature-7cldFbqj.js → signature-CfKA_poI.js} +9 -41
  57. package/dist/chunks/skip-CEW89ExY.js +7 -0
  58. package/dist/chunks/{snaptcha-C04kNGYQ.js → snaptcha-P3EoSQud.js} +1 -1
  59. package/dist/chunks/{square-DEzxv9D9.js → square-Dyz0p_GU.js} +2 -2
  60. package/dist/chunks/{stripe-CVPQGDz3.js → stripe-Bfd_jp_k.js} +4 -7
  61. package/dist/chunks/{summary-BF_8mrXI.js → summary-B3CAebLV.js} +45 -37
  62. package/dist/chunks/{survey-likert-fk1hUPff.js → survey-likert-CEtUceag.js} +1 -1
  63. package/dist/chunks/{survey-rank-BsLGl2LX.js → survey-rank-Dtt97y6s.js} +3 -7
  64. package/dist/chunks/{survey-rating-DVS6e6fM.js → survey-rating-mlDMI0uq.js} +9 -23
  65. package/dist/chunks/{table-DnIBdeKF.js → table-0k6Md0IO.js} +2 -2
  66. package/dist/chunks/{text-limit-LGMPhFuC.js → text-limit-CTVML6s7.js} +10 -10
  67. package/dist/chunks/{turnstile-n9DNyPxi.js → turnstile-Sp4ubowK.js} +2 -2
  68. package/dist/chunks/{upload-manager-BbiUosZq.js → upload-manager-Ccg3d_4I.js} +258 -260
  69. package/dist/index.d.ts +1 -0
  70. package/dist/index.d.ts.map +1 -1
  71. package/dist/index.js +743 -734
  72. package/dist/js/core/create-formie-client.d.ts.map +1 -1
  73. package/dist/js/core/dom-events.d.ts +5 -0
  74. package/dist/js/core/dom-events.d.ts.map +1 -1
  75. package/dist/js/core/page-client-event.d.ts.map +1 -1
  76. package/dist/js/core/submit-result-state.d.ts.map +1 -1
  77. package/dist/js/core/submit-result-ui.d.ts +3 -1
  78. package/dist/js/core/submit-result-ui.d.ts.map +1 -1
  79. package/dist/js/core/validation-focus.d.ts.map +1 -1
  80. package/dist/js/modules/address/google-address.d.ts +10 -0
  81. package/dist/js/modules/address/google-address.d.ts.map +1 -1
  82. package/dist/js/modules/address/place-kit.d.ts.map +1 -1
  83. package/dist/js/modules/captchas/factories.d.ts.map +1 -1
  84. package/dist/js/modules/captchas/host.d.ts +4 -1
  85. package/dist/js/modules/captchas/host.d.ts.map +1 -1
  86. package/dist/js/modules/captchas/recaptcha-shared.d.ts +1 -1
  87. package/dist/js/modules/captchas/recaptcha-shared.d.ts.map +1 -1
  88. package/dist/js/modules/captchas/recaptcha-v3.d.ts.map +1 -1
  89. package/dist/js/modules/fields/address-state.d.ts.map +1 -1
  90. package/dist/js/modules/fields/combobox.d.ts +2 -0
  91. package/dist/js/modules/fields/combobox.d.ts.map +1 -1
  92. package/dist/js/modules/fields/conditions/effects.d.ts.map +1 -1
  93. package/dist/js/modules/fields/conditions.d.ts.map +1 -1
  94. package/dist/js/modules/fields/date-picker.d.ts.map +1 -1
  95. package/dist/js/modules/fields/file-upload.d.ts.map +1 -1
  96. package/dist/js/modules/fields/phone-country.d.ts.map +1 -1
  97. package/dist/js/modules/fields/repeater.d.ts.map +1 -1
  98. package/dist/js/modules/fields/rich-text.d.ts.map +1 -1
  99. package/dist/js/modules/fields/summary.d.ts.map +1 -1
  100. package/dist/js/modules/fields/text-limit.d.ts.map +1 -1
  101. package/dist/js/modules/fields/upload-manager.d.ts.map +1 -1
  102. package/dist/js/modules/payments/factories.d.ts.map +1 -1
  103. package/dist/js/modules/payments/opayo.d.ts.map +1 -1
  104. package/dist/js/submit/pipeline.d.ts +2 -0
  105. package/dist/js/submit/pipeline.d.ts.map +1 -1
  106. package/dist/js/utils/async.d.ts +1 -0
  107. package/dist/js/utils/async.d.ts.map +1 -1
  108. package/dist/js/utils/form-started-at.d.ts +1 -0
  109. package/dist/js/utils/form-started-at.d.ts.map +1 -1
  110. package/dist/js/utils/unload-warning.d.ts +4 -0
  111. package/dist/js/utils/unload-warning.d.ts.map +1 -1
  112. package/dist/js/validation/rules/required.d.ts.map +1 -1
  113. package/dist/js/validation/submit-readiness.d.ts.map +1 -1
  114. package/dist/js/validation/validator.d.ts +1 -0
  115. package/dist/js/validation/validator.d.ts.map +1 -1
  116. package/package.json +3 -3
  117. package/src/index.ts +1 -0
  118. package/src/js/core/create-formie-client.ts +37 -28
  119. package/src/js/core/dom-events.ts +30 -1
  120. package/src/js/core/page-client-event.ts +5 -7
  121. package/src/js/core/submit-result-state.ts +30 -2
  122. package/src/js/core/submit-result-ui.ts +25 -3
  123. package/src/js/core/validation-focus.ts +17 -3
  124. package/src/js/modules/address/google-address.ts +95 -37
  125. package/src/js/modules/address/place-kit.ts +13 -7
  126. package/src/js/modules/captchas/factories.ts +241 -101
  127. package/src/js/modules/captchas/host.ts +16 -0
  128. package/src/js/modules/captchas/recaptcha-enterprise.ts +1 -1
  129. package/src/js/modules/captchas/recaptcha-shared.ts +23 -5
  130. package/src/js/modules/captchas/recaptcha-v3.ts +23 -14
  131. package/src/js/modules/fields/address-country.ts +5 -5
  132. package/src/js/modules/fields/address-state.ts +80 -27
  133. package/src/js/modules/fields/combobox.ts +22 -1
  134. package/src/js/modules/fields/conditions/effects.ts +4 -5
  135. package/src/js/modules/fields/conditions.ts +9 -0
  136. package/src/js/modules/fields/date-picker.ts +6 -3
  137. package/src/js/modules/fields/file-upload.ts +55 -18
  138. package/src/js/modules/fields/phone-country.ts +25 -2
  139. package/src/js/modules/fields/repeater.ts +55 -4
  140. package/src/js/modules/fields/rich-text.ts +33 -0
  141. package/src/js/modules/fields/summary.ts +63 -10
  142. package/src/js/modules/fields/text-limit.ts +11 -0
  143. package/src/js/modules/fields/upload-manager.ts +54 -18
  144. package/src/js/modules/payments/factories.ts +87 -54
  145. package/src/js/modules/payments/opayo.ts +7 -0
  146. package/src/js/submit/pipeline.ts +16 -9
  147. package/src/js/utils/async.ts +34 -0
  148. package/src/js/utils/form-started-at.ts +19 -4
  149. package/src/js/utils/unload-warning.ts +63 -7
  150. package/src/js/validation/rules/required.ts +18 -0
  151. package/src/js/validation/submit-readiness.ts +2 -0
  152. package/src/js/validation/validator.ts +29 -6
  153. package/src/vendor.d.ts +2 -0
  154. package/dist/chunks/opayo-B3EvrVxw.js +0 -188
  155. package/dist/chunks/recaptcha-shared-AQRMDMme.js +0 -27
  156. package/dist/chunks/recaptcha-v3-CloqhO2A.js +0 -28
@@ -1,30 +1,28 @@
1
- import { t as e } from "./debug-BV0DvdHx.js";
1
+ import { t as e } from "./debug-rhzqP1j2.js";
2
2
  import { n as t } from "./theme-classes-DAQuEqdP.js";
3
- import { t as n } from "./styles-BfoIZwJp.js";
4
- import { i as r, n as i } from "./shared-OKhSay59.js";
3
+ import { t as n } from "./skip-CEW89ExY.js";
4
+ import { i as r } from "./i18n-BY1ds1BL.js";
5
+ import { t as i } from "./styles-BfoIZwJp.js";
6
+ import { i as a, n as o } from "./shared-CJ1LIEh3.js";
5
7
  //#region ../../node_modules/tom-select/dist/esm/contrib/microevent.js
6
- function a(e, t) {
8
+ function s(e, t) {
7
9
  e.split(/\s+/).forEach((e) => {
8
10
  t(e);
9
11
  });
10
12
  }
11
- var o = class {
13
+ var c = class {
12
14
  constructor() {
13
15
  this._events = {};
14
16
  }
15
17
  on(e, t) {
16
- a(e, (e) => {
18
+ s(e, (e) => {
17
19
  let n = this._events[e] || [];
18
20
  n.push(t), this._events[e] = n;
19
21
  });
20
22
  }
21
23
  off(e, t) {
22
24
  var n = arguments.length;
23
- if (n === 0) {
24
- this._events = {};
25
- return;
26
- }
27
- a(e, (e) => {
25
+ n === 0 ? this._events = {} : s(e, (e) => {
28
26
  if (n === 1) {
29
27
  delete this._events[e];
30
28
  return;
@@ -35,7 +33,7 @@ var o = class {
35
33
  }
36
34
  trigger(e, ...t) {
37
35
  var n = this;
38
- a(e, (e) => {
36
+ s(e, (e) => {
39
37
  let r = n._events[e];
40
38
  r !== void 0 && r.forEach((e) => {
41
39
  e.apply(n, t);
@@ -45,7 +43,7 @@ var o = class {
45
43
  };
46
44
  //#endregion
47
45
  //#region ../../node_modules/tom-select/dist/esm/contrib/microplugin.js
48
- function s(e) {
46
+ function l(e) {
49
47
  return e.plugins = {}, class extends e {
50
48
  constructor() {
51
49
  super(...arguments), this.plugins = {
@@ -87,26 +85,22 @@ function s(e) {
87
85
  }
88
86
  //#endregion
89
87
  //#region ../../node_modules/@orchidjs/unicode-variants/dist/esm/regex.js
90
- var c = (e) => (e = e.filter(Boolean), e.length < 2 ? e[0] || "" : p(e) == 1 ? "[" + e.join("") + "]" : "(?:" + e.join("|") + ")"), l = (e) => {
91
- if (!d(e)) return e.join("");
88
+ var u = (e) => (e = e.filter(Boolean), e.length < 2 ? e[0] || "" : h(e) == 1 ? "[" + e.join("") + "]" : "(?:" + e.join("|") + ")"), d = (e) => {
89
+ if (!p(e)) return e.join("");
92
90
  let t = "", n = 0, r = () => {
93
91
  n > 1 && (t += "{" + n + "}");
94
92
  };
95
93
  return e.forEach((i, a) => {
96
- if (i === e[a - 1]) {
97
- n++;
98
- return;
99
- }
100
- r(), t += i, n = 1;
94
+ i === e[a - 1] ? n++ : (r(), t += i, n = 1);
101
95
  }), r(), t;
102
- }, u = (e) => c(Array.from(e)), d = (e) => new Set(e).size !== e.length, f = (e) => (e + "").replace(/([\$\(\)\*\+\.\?\[\]\^\{\|\}\\])/gu, "\\$1"), p = (e) => e.reduce((e, t) => Math.max(e, m(t)), 0), m = (e) => Array.from(e).length, h = (e) => {
96
+ }, f = (e) => u(Array.from(e)), p = (e) => new Set(e).size !== e.length, m = (e) => (e + "").replace(/([\$\(\)\*\+\.\?\[\]\^\{\|\}\\])/gu, "\\$1"), h = (e) => e.reduce((e, t) => Math.max(e, g(t)), 0), g = (e) => Array.from(e).length, _ = (e) => {
103
97
  if (e.length === 1) return [[e]];
104
98
  let t = [];
105
- return h(e.substring(1)).forEach(function(n) {
99
+ return _(e.substring(1)).forEach(function(n) {
106
100
  let r = n.slice(0);
107
101
  r[0] = e.charAt(0) + r[0], t.push(r), r = n.slice(0), r.unshift(e.charAt(0)), t.push(r);
108
102
  }), t;
109
- }, g = [[0, 65535]], _, v, y = 3, b = {}, x = {
103
+ }, v = [[0, 65535]], y, b, x = 3, S = {}, ee = {
110
104
  "/": "⁄∕",
111
105
  0: "߀",
112
106
  a: "ⱥɐɑ",
@@ -149,53 +143,53 @@ var c = (e) => (e = e.filter(Boolean), e.length < 2 ? e[0] || "" : p(e) == 1 ? "
149
143
  z: "ƶȥɀⱬꝣ",
150
144
  hv: "ƕ"
151
145
  };
152
- for (let e in x) {
153
- let t = x[e] || "";
146
+ for (let e in ee) {
147
+ let t = ee[e] || "";
154
148
  for (let n = 0; n < t.length; n++) {
155
149
  let r = t.substring(n, n + 1);
156
- b[r] = e;
150
+ S[r] = e;
157
151
  }
158
152
  }
159
- var S = RegExp(Object.keys(b).join("|") + "|[̀-ͯ·ʾʼ]", "gu"), ee = (e) => {
160
- _ === void 0 && (_ = ae(e || g));
161
- }, te = (e, t = "NFKD") => e.normalize(t), C = (e) => Array.from(e).reduce((e, t) => e + ne(t), ""), ne = (e) => (e = te(e).toLowerCase().replace(S, (e) => b[e] || ""), te(e, "NFC"));
162
- function* re(e) {
153
+ var te = RegExp(Object.keys(S).join("|") + "|[̀-ͯ·ʾʼ]", "gu"), ne = (e) => {
154
+ y === void 0 && (y = se(e || v));
155
+ }, re = (e, t = "NFKD") => e.normalize(t), C = (e) => Array.from(e).reduce((e, t) => e + ie(t), ""), ie = (e) => (e = re(e).toLowerCase().replace(te, (e) => S[e] || ""), re(e, "NFC"));
156
+ function* ae(e) {
163
157
  for (let [t, n] of e) for (let e = t; e <= n; e++) {
164
158
  let t = String.fromCharCode(e), n = C(t);
165
- n != t.toLowerCase() && (n.length > y || n.length != 0 && (yield {
159
+ n != t.toLowerCase() && (n.length > x || n.length != 0 && (yield {
166
160
  folded: n,
167
161
  composed: t,
168
162
  code_point: e
169
163
  }));
170
164
  }
171
165
  }
172
- var ie = (e) => {
166
+ var oe = (e) => {
173
167
  let t = {}, n = (e, n) => {
174
- let r = t[e] || /* @__PURE__ */ new Set(), i = RegExp("^" + u(r) + "$", "iu");
175
- n.match(i) || (r.add(f(n)), t[e] = r);
168
+ let r = t[e] || /* @__PURE__ */ new Set(), i = RegExp("^" + f(r) + "$", "iu");
169
+ n.match(i) || (r.add(m(n)), t[e] = r);
176
170
  };
177
- for (let t of re(e)) n(t.folded, t.folded), n(t.folded, t.composed);
171
+ for (let t of ae(e)) n(t.folded, t.folded), n(t.folded, t.composed);
178
172
  return t;
179
- }, ae = (e) => {
180
- let t = ie(e), n = {}, r = [];
173
+ }, se = (e) => {
174
+ let t = oe(e), n = {}, r = [];
181
175
  for (let e in t) {
182
176
  let i = t[e];
183
- i && (n[e] = u(i)), e.length > 1 && r.push(f(e));
177
+ i && (n[e] = f(i)), e.length > 1 && r.push(m(e));
184
178
  }
185
179
  r.sort((e, t) => t.length - e.length);
186
- let i = c(r);
187
- return v = RegExp("^" + i, "u"), n;
188
- }, oe = (e, t = 1) => {
180
+ let i = u(r);
181
+ return b = RegExp("^" + i, "u"), n;
182
+ }, ce = (e, t = 1) => {
189
183
  let n = 0;
190
- return e = e.map((e) => (_[e] && (n += e.length), _[e] || e)), n >= t ? l(e) : "";
191
- }, se = (e, t = 1) => (t = Math.max(t, e.length - 1), c(h(e).map((e) => oe(e, t)))), w = (e, t = !0) => {
184
+ return e = e.map((e) => (y[e] && (n += e.length), y[e] || e)), n >= t ? d(e) : "";
185
+ }, le = (e, t = 1) => (t = Math.max(t, e.length - 1), u(_(e).map((e) => ce(e, t)))), w = (e, t = !0) => {
192
186
  let n = +(e.length > 1);
193
- return c(e.map((e) => {
187
+ return u(e.map((e) => {
194
188
  let r = [], i = t ? e.length() : e.length() - 1;
195
- for (let t = 0; t < i; t++) r.push(se(e.substrs[t] || "", n));
196
- return l(r);
189
+ for (let t = 0; t < i; t++) r.push(le(e.substrs[t] || "", n));
190
+ return d(r);
197
191
  }));
198
- }, ce = (e, t) => {
192
+ }, ue = (e, t) => {
199
193
  for (let n of t) {
200
194
  if (n.start != e.start || n.end != e.end || n.substrs.join("") !== e.substrs.join("")) continue;
201
195
  let t = e.parts;
@@ -208,7 +202,7 @@ var ie = (e) => {
208
202
  }).length > 0)) return !0;
209
203
  }
210
204
  return !1;
211
- }, le = class e {
205
+ }, de = class e {
212
206
  parts;
213
207
  substrs;
214
208
  start;
@@ -236,11 +230,11 @@ var ie = (e) => {
236
230
  substr: o
237
231
  }), r;
238
232
  }
239
- }, ue = (e) => {
240
- ee(), e = C(e);
241
- let t = "", n = [new le()];
233
+ }, fe = (e) => {
234
+ ne(), e = C(e);
235
+ let t = "", n = [new de()];
242
236
  for (let r = 0; r < e.length; r++) {
243
- let i = e.substring(r).match(v), a = e.substring(r, r + 1), o = i ? i[0] : null, s = [], c = /* @__PURE__ */ new Set();
237
+ let i = e.substring(r).match(b), a = e.substring(r, r + 1), o = i ? i[0] : null, s = [], c = /* @__PURE__ */ new Set();
244
238
  for (let e of n) {
245
239
  let t = e.last();
246
240
  if (!t || t.length == 1 || t.end <= r) {
@@ -270,19 +264,17 @@ var ie = (e) => {
270
264
  }
271
265
  if (s.length > 0) {
272
266
  s = s.sort((e, t) => e.length() - t.length());
273
- for (let e of s) ce(e, n) || n.push(e);
274
- continue;
275
- }
276
- if (r > 0 && c.size == 1 && !c.has("3")) {
267
+ for (let e of s) ue(e, n) || n.push(e);
268
+ } else if (r > 0 && c.size == 1 && !c.has("3")) {
277
269
  t += w(n, !1);
278
- let e = new le(), r = n[0];
270
+ let e = new de(), r = n[0];
279
271
  r && e.add(r.last()), n = [e];
280
272
  }
281
273
  }
282
274
  return t += w(n, !0), t;
283
- }, de = (e, t) => {
275
+ }, pe = (e, t) => {
284
276
  if (e) return e[t];
285
- }, fe = (e, t) => {
277
+ }, me = (e, t) => {
286
278
  if (e) {
287
279
  for (var n, r = t.split("."); (n = r.shift()) && (e = e[n]););
288
280
  return e;
@@ -297,7 +289,7 @@ var ie = (e) => {
297
289
  }, D = (e, t) => {
298
290
  if (Array.isArray(e)) e.forEach(t);
299
291
  else for (var n in e) e.hasOwnProperty(n) && t(e[n], n);
300
- }, pe = (e, t) => typeof e == "number" && typeof t == "number" ? e > t ? 1 : e < t ? -1 : 0 : (e = C(e + "").toLowerCase(), t = C(t + "").toLowerCase(), e > t ? 1 : t > e ? -1 : 0), me = class {
292
+ }, he = (e, t) => typeof e == "number" && typeof t == "number" ? e > t ? 1 : e < t ? -1 : 0 : (e = C(e + "").toLowerCase(), t = C(t + "").toLowerCase(), e > t ? 1 : t > e ? -1 : 0), ge = class {
301
293
  items;
302
294
  settings;
303
295
  constructor(e, t) {
@@ -307,9 +299,9 @@ var ie = (e) => {
307
299
  if (!e || !e.length) return [];
308
300
  let r = [], i = e.split(/\s+/);
309
301
  var a;
310
- return n && (a = RegExp("^(" + Object.keys(n).map(f).join("|") + "):(.*)$")), i.forEach((e) => {
302
+ return n && (a = RegExp("^(" + Object.keys(n).map(m).join("|") + "):(.*)$")), i.forEach((e) => {
311
303
  let n, i = null, o = null;
312
- a && (n = e.match(a)) && (i = n[1], e = n[2]), e.length > 0 && (o = this.settings.diacritics ? ue(e) || null : f(e), o && t && (o = "\\b" + o)), r.push({
304
+ a && (n = e.match(a)) && (i = n[1], e = n[2]), e.length > 0 && (o = this.settings.diacritics ? fe(e) || null : m(e), o && t && (o = "\\b" + o)), r.push({
313
305
  string: e,
314
306
  regex: o ? new RegExp(o, "iu") : null,
315
307
  field: i
@@ -385,7 +377,7 @@ var ie = (e) => {
385
377
  } else n = n.filter((e) => e.field !== "$score");
386
378
  return n.length ? function(e, t) {
387
379
  var r, i;
388
- for (let a of n) if (i = a.field, r = (a.direction === "desc" ? -1 : 1) * pe(o(i, e), o(i, t)), r) return r;
380
+ for (let a of n) if (i = a.field, r = (a.direction === "desc" ? -1 : 1) * he(o(i, e), o(i, t)), r) return r;
389
381
  return 0;
390
382
  } : null;
391
383
  }
@@ -409,7 +401,7 @@ var ie = (e) => {
409
401
  total: 0,
410
402
  items: [],
411
403
  weights: n,
412
- getAttrFn: r.nesting ? fe : de
404
+ getAttrFn: r.nesting ? me : pe
413
405
  };
414
406
  }
415
407
  search(e, t) {
@@ -430,7 +422,7 @@ var ie = (e) => {
430
422
  let o = n._getSortFunction(i);
431
423
  return o && i.items.sort(o), i.total = i.items.length, typeof t.limit == "number" && (i.items = i.items.slice(0, t.limit)), i;
432
424
  }
433
- }, O = (e) => e == null ? null : k(e), k = (e) => typeof e == "boolean" ? e ? "1" : "0" : e + "", A = (e) => (e + "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;"), he = (e, t) => t > 0 ? window.setTimeout(e, t) : (e.call(null), null), ge = (e, t) => {
425
+ }, O = (e) => e == null ? null : k(e), k = (e) => typeof e == "boolean" ? e ? "1" : "0" : e + "", A = (e) => (e + "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;"), _e = (e, t) => t > 0 ? window.setTimeout(e, t) : (e.call(null), null), ve = (e, t) => {
434
426
  var n;
435
427
  return function(r, i) {
436
428
  var a = this;
@@ -438,7 +430,7 @@ var ie = (e) => {
438
430
  n = null, a.loadedSearches[r] = !0, e.call(a, r, i);
439
431
  }, t);
440
432
  };
441
- }, _e = (e, t, n) => {
433
+ }, ye = (e, t, n) => {
442
434
  var r, i = e.trigger, a = {};
443
435
  e.trigger = function() {
444
436
  var n = arguments[0];
@@ -446,7 +438,7 @@ var ie = (e) => {
446
438
  else return i.apply(e, arguments);
447
439
  }, n.apply(e, []), e.trigger = i;
448
440
  for (r of t) r in a && i.apply(e, a[r]);
449
- }, ve = (e) => ({
441
+ }, be = (e) => ({
450
442
  start: e.selectionStart || 0,
451
443
  length: (e.selectionEnd || 0) - (e.selectionStart || 0)
452
444
  }), j = (e, t = !1) => {
@@ -461,52 +453,52 @@ var ie = (e) => {
461
453
  }, R = (e) => {
462
454
  if (e.jquery) return e[0];
463
455
  if (e instanceof HTMLElement) return e;
464
- if (ye(e)) {
456
+ if (xe(e)) {
465
457
  var t = document.createElement("template");
466
458
  return t.innerHTML = e.trim(), t.content.firstChild;
467
459
  }
468
460
  return document.querySelector(e);
469
- }, ye = (e) => typeof e == "string" && e.indexOf("<") > -1, be = (e) => e.replace(/['"\\]/g, "\\$&"), z = (e, t) => {
461
+ }, xe = (e) => typeof e == "string" && e.indexOf("<") > -1, Se = (e) => e.replace(/['"\\]/g, "\\$&"), z = (e, t) => {
470
462
  var n = document.createEvent("HTMLEvents");
471
463
  n.initEvent(t, !0, !1), e.dispatchEvent(n);
472
464
  }, B = (e, t) => {
473
465
  Object.assign(e.style, t);
474
466
  }, V = (e, ...t) => {
475
- var n = U(t);
476
- e = W(e), e.map((e) => {
467
+ var n = Ce(t);
468
+ e = we(e), e.map((e) => {
477
469
  n.map((t) => {
478
470
  e.classList.add(t);
479
471
  });
480
472
  });
481
473
  }, H = (e, ...t) => {
482
- var n = U(t);
483
- e = W(e), e.map((e) => {
474
+ var n = Ce(t);
475
+ e = we(e), e.map((e) => {
484
476
  n.map((t) => {
485
477
  e.classList.remove(t);
486
478
  });
487
479
  });
488
- }, U = (e) => {
480
+ }, Ce = (e) => {
489
481
  var t = [];
490
482
  return L(e, (e) => {
491
483
  typeof e == "string" && (e = e.trim().split(/[\t\n\f\r\s]/)), Array.isArray(e) && (t = t.concat(e));
492
484
  }), t.filter(Boolean);
493
- }, W = (e) => (Array.isArray(e) || (e = [e]), e), G = (e, t, n) => {
485
+ }, we = (e) => (Array.isArray(e) || (e = [e]), e), U = (e, t, n) => {
494
486
  if (!n || n.contains(e)) for (; e && e.matches;) {
495
487
  if (e.matches(t)) return e;
496
488
  e = e.parentNode;
497
489
  }
498
- }, xe = (e, t = 0) => t > 0 ? e[e.length - 1] : e[0], Se = (e) => Object.keys(e).length === 0, Ce = (e, t) => {
490
+ }, Te = (e, t = 0) => t > 0 ? e[e.length - 1] : e[0], Ee = (e) => Object.keys(e).length === 0, De = (e, t) => {
499
491
  if (!e) return -1;
500
492
  t ||= e.nodeName;
501
493
  for (var n = 0; e = e.previousElementSibling;) e.matches(t) && n++;
502
494
  return n;
503
- }, K = (e, t) => {
495
+ }, W = (e, t) => {
504
496
  L(t, (t, n) => {
505
497
  t == null ? e.removeAttribute(n) : e.setAttribute(n, "" + t);
506
498
  });
507
- }, q = (e, t) => {
499
+ }, G = (e, t) => {
508
500
  e.parentNode && e.parentNode.replaceChild(t, e);
509
- }, we = (e, t) => {
501
+ }, Oe = (e, t) => {
510
502
  if (t === null) return;
511
503
  if (typeof t == "string") {
512
504
  if (!t.length) return;
@@ -520,7 +512,7 @@ var ie = (e) => {
520
512
  var i = e.splitText(n.index);
521
513
  i.splitText(n[0].length);
522
514
  var a = i.cloneNode(!0);
523
- return r.appendChild(a), q(i, r), 1;
515
+ return r.appendChild(a), G(i, r), 1;
524
516
  }
525
517
  return 0;
526
518
  }, r = (e) => {
@@ -529,13 +521,13 @@ var ie = (e) => {
529
521
  });
530
522
  }, i = (e) => e.nodeType === 3 ? n(e) : (r(e), 0);
531
523
  i(e);
532
- }, Te = (e) => {
524
+ }, ke = (e) => {
533
525
  var t = e.querySelectorAll("span.highlight");
534
526
  Array.prototype.forEach.call(t, function(e) {
535
527
  var t = e.parentNode;
536
528
  t.replaceChild(e.firstChild, e), t.normalize();
537
529
  });
538
- }, J = !(typeof navigator > "u") && /Mac/.test(navigator.userAgent) ? "metaKey" : "ctrlKey", Ee = {
530
+ }, K = typeof navigator < "u" && /Mac/.test(navigator.userAgent) ? "metaKey" : "ctrlKey", Ae = {
539
531
  options: [],
540
532
  optgroups: [],
541
533
  plugins: [],
@@ -591,8 +583,8 @@ var ie = (e) => {
591
583
  };
592
584
  //#endregion
593
585
  //#region ../../node_modules/tom-select/dist/esm/getSettings.js
594
- function De(e, t) {
595
- var n = Object.assign({}, Ee, t), r = n.dataAttr, i = n.labelField, a = n.valueField, o = n.disabledField, s = n.optgroupField, c = n.optgroupLabelField, l = n.optgroupValueField, u = e.tagName.toLowerCase(), d = e.getAttribute("placeholder") || e.getAttribute("data-placeholder");
586
+ function je(e, t) {
587
+ var n = Object.assign({}, Ae, t), r = n.dataAttr, i = n.labelField, a = n.valueField, o = n.disabledField, s = n.optgroupField, c = n.optgroupLabelField, l = n.optgroupValueField, u = e.tagName.toLowerCase(), d = e.getAttribute("placeholder") || e.getAttribute("data-placeholder");
596
588
  if (!d && !n.allowEmptyOption) {
597
589
  let t = e.querySelector("option[value=\"\"]");
598
590
  t && (d = t.textContent);
@@ -647,80 +639,72 @@ function De(e, t) {
647
639
  t[i] = e, t[a] = e, f.options.push(t);
648
640
  }), f.items = t;
649
641
  }
650
- })(), Object.assign({}, Ee, f, t);
642
+ })(), Object.assign({}, Ae, f, t);
651
643
  }
652
644
  //#endregion
653
645
  //#region ../../node_modules/tom-select/dist/esm/tom-select.js
654
- var Oe = 0, Y = class extends s(o) {
646
+ var Me = 0, q = class extends l(c) {
655
647
  constructor(e, t) {
656
- super(), this.order = 0, this.isOpen = !1, this.isDisabled = !1, this.isReadOnly = !1, this.isInvalid = !1, this.isValid = !0, this.isLocked = !1, this.isFocused = !1, this.isInputHidden = !1, this.isSetup = !1, this.isDropdownContentStale = !0, this.ignoreFocus = !1, this.ignoreHover = !1, this.hasOptions = !1, this.lastValue = "", this.caretPos = 0, this.loading = 0, this.loadedSearches = {}, this.activeOption = null, this.activeItems = [], this.optgroups = {}, this.options = {}, this.userOptions = {}, this.items = [], this.refreshTimeout = null, Oe++;
648
+ super(), this.order = 0, this.isOpen = !1, this.isDisabled = !1, this.isReadOnly = !1, this.isInvalid = !1, this.isValid = !0, this.isLocked = !1, this.isFocused = !1, this.isInputHidden = !1, this.isSetup = !1, this.isDropdownContentStale = !0, this.ignoreFocus = !1, this.ignoreHover = !1, this.hasOptions = !1, this.lastValue = "", this.caretPos = 0, this.loading = 0, this.loadedSearches = {}, this.activeOption = null, this.activeItems = [], this.optgroups = {}, this.options = {}, this.userOptions = {}, this.items = [], this.refreshTimeout = null, Me++;
657
649
  var n, r = R(e);
658
650
  if (r.tomselect) throw Error("Tom Select already initialized on this element");
659
651
  r.tomselect = this, n = (window.getComputedStyle && window.getComputedStyle(r, null)).getPropertyValue("direction");
660
- let i = De(r, t);
661
- this.settings = i, this.input = r, this.tabIndex = r.tabIndex || 0, this.is_select_tag = r.tagName.toLowerCase() === "select", this.rtl = /rtl/i.test(n), this.inputId = P(r, "tomselect-" + Oe), this.isRequired = r.required, this.sifter = new me(this.options, { diacritics: i.diacritics }), i.mode = i.mode || (i.maxItems === 1 ? "single" : "multi"), typeof i.hideSelected != "boolean" && (i.hideSelected = i.mode === "multi"), typeof i.hidePlaceholder != "boolean" && (i.hidePlaceholder = i.mode !== "multi");
652
+ let i = je(r, t);
653
+ this.settings = i, this.input = r, this.tabIndex = r.tabIndex || 0, this.is_select_tag = r.tagName.toLowerCase() === "select", this.rtl = /rtl/i.test(n), this.inputId = P(r, "tomselect-" + Me), this.isRequired = r.required, this.sifter = new ge(this.options, { diacritics: i.diacritics }), i.mode = i.mode || (i.maxItems === 1 ? "single" : "multi"), typeof i.hideSelected != "boolean" && (i.hideSelected = i.mode === "multi"), typeof i.hidePlaceholder != "boolean" && (i.hidePlaceholder = i.mode !== "multi");
662
654
  var a = i.createFilter;
663
655
  typeof a != "function" && (typeof a == "string" && (a = new RegExp(a)), i.createFilter = a instanceof RegExp ? (e) => a.test(e) : (e) => this.settings.duplicates || !this.options[e]), this.initializePlugins(i.plugins), this.setupCallbacks(), this.setupTemplates();
664
656
  let o = R("<div>"), s = R("<div>"), c = this._render("dropdown"), l = R("<div role=\"listbox\" tabindex=\"-1\">"), u = this.input.getAttribute("class") || "", d = i.mode;
665
657
  var f;
666
- V(o, i.wrapperClass, u, d), V(s, i.controlClass), I(o, s), V(c, i.dropdownClass, d), i.copyClassesToDropdown && V(c, u), V(l, i.dropdownContentClass), I(c, l), R(i.dropdownParent || o).appendChild(c), ye(i.controlInput) ? (f = R(i.controlInput), L([
658
+ V(o, i.wrapperClass, u, d), V(s, i.controlClass), I(o, s), V(c, i.dropdownClass, d), i.copyClassesToDropdown && V(c, u), V(l, i.dropdownContentClass), I(c, l), R(i.dropdownParent || o).appendChild(c), xe(i.controlInput) ? (f = R(i.controlInput), L([
667
659
  "autocorrect",
668
660
  "autocapitalize",
669
661
  "autocomplete",
670
662
  "spellcheck",
671
663
  "aria-label"
672
664
  ], (e) => {
673
- r.getAttribute(e) && K(f, { [e]: r.getAttribute(e) });
665
+ r.getAttribute(e) && W(f, { [e]: r.getAttribute(e) });
674
666
  }), f.tabIndex = -1, s.appendChild(f), this.focus_node = f) : i.controlInput ? (f = R(i.controlInput), this.focus_node = f) : (f = R("<input/>"), this.focus_node = s), this.wrapper = o, this.dropdown = c, this.dropdown_content = l, this.control = s, this.control_input = f, this.setup();
675
667
  }
676
668
  setup() {
677
669
  let e = this, t = e.settings, n = e.control_input, r = e.dropdown, i = e.dropdown_content, a = e.wrapper, o = e.control, s = e.input, c = e.focus_node, l = { passive: !0 }, u = e.inputId + "-ts-dropdown";
678
- K(i, { id: u }), K(c, {
670
+ W(i, { id: u }), W(c, {
679
671
  role: "combobox",
680
672
  "aria-haspopup": "listbox",
681
673
  "aria-expanded": "false",
682
674
  "aria-controls": u
683
675
  });
684
- let d = P(c, e.inputId + "-ts-control"), p = "label[for='" + be(e.inputId) + "']", m = document.querySelector(p), h = e.focus.bind(e);
685
- if (m) {
686
- M(m, "click", h), K(m, { for: d });
687
- let t = P(m, e.inputId + "-ts-label");
688
- K(c, { "aria-labelledby": t }), K(i, { "aria-labelledby": t });
676
+ let d = P(c, e.inputId + "-ts-control"), f = "label[for='" + Se(e.inputId) + "']", p = document.querySelector(f), h = e.focus.bind(e);
677
+ if (p) {
678
+ M(p, "click", h), W(p, { for: d });
679
+ let t = P(p, e.inputId + "-ts-label");
680
+ W(c, { "aria-labelledby": t }), W(i, { "aria-labelledby": t });
689
681
  }
690
682
  if (a.style.width = s.style.width, a.style.minWidth = s.style.minWidth, a.style.maxWidth = s.style.maxWidth, e.plugins.names.length) {
691
683
  let t = "plugin-" + e.plugins.names.join(" plugin-");
692
684
  V([a, r], t);
693
685
  }
694
- (t.maxItems === null || t.maxItems > 1) && e.is_select_tag && K(s, { multiple: "multiple" }), t.placeholder && K(n, { placeholder: t.placeholder }), !t.splitOn && t.delimiter && (t.splitOn = RegExp("\\s*" + f(t.delimiter) + "+\\s*")), t.load && t.loadThrottle && (t.load = ge(t.load, t.loadThrottle)), M(r, "mousemove", () => {
686
+ (t.maxItems === null || t.maxItems > 1) && e.is_select_tag && W(s, { multiple: "multiple" }), t.placeholder && W(n, { placeholder: t.placeholder }), !t.splitOn && t.delimiter && (t.splitOn = RegExp("\\s*" + m(t.delimiter) + "+\\s*")), t.load && t.loadThrottle && (t.load = ve(t.load, t.loadThrottle)), M(r, "mousemove", () => {
695
687
  e.ignoreHover = !1;
696
688
  }), M(r, "mouseenter", (t) => {
697
- var n = G(t.target, "[data-selectable]", r);
689
+ var n = U(t.target, "[data-selectable]", r);
698
690
  n && e.onOptionHover(t, n);
699
691
  }, { capture: !0 }), M(r, "click", (t) => {
700
- let n = G(t.target, "[data-selectable]");
692
+ let n = U(t.target, "[data-selectable]");
701
693
  n && (e.onOptionSelect(t, n), j(t, !0));
702
694
  }), M(o, "click", (t) => {
703
- var r = G(t.target, "[data-ts-item]", o);
704
- if (r && e.onItemSelect(t, r)) {
705
- j(t, !0);
706
- return;
707
- }
708
- n.value == "" && (e.onClick(), j(t, !0));
695
+ var r = U(t.target, "[data-ts-item]", o);
696
+ r && e.onItemSelect(t, r) ? j(t, !0) : n.value == "" && (e.onClick(), j(t, !0));
709
697
  }), M(c, "keydown", (t) => e.onKeyDown(t)), M(n, "keypress", (t) => e.onKeyPress(t)), M(n, "input", (t) => e.onInput(t)), M(c, "blur", (t) => e.onBlur(t)), M(c, "focus", (t) => e.onFocus(t)), M(n, "paste", (t) => e.onPaste(t));
710
698
  let g = (t) => {
711
699
  let i = t.composedPath()[0];
712
- if (!a.contains(i) && !r.contains(i)) {
713
- e.isFocused && e.blur(), e.inputState();
714
- return;
715
- }
716
- i == n && e.isOpen ? t.stopPropagation() : j(t, !0);
700
+ !a.contains(i) && !r.contains(i) ? (e.isFocused && e.blur(), e.inputState()) : i == n && e.isOpen ? t.stopPropagation() : j(t, !0);
717
701
  }, _ = () => {
718
702
  e.isOpen && e.positionDropdown();
719
703
  }, v = () => {
720
704
  e.isValid && (e.isValid = !1, e.isInvalid = !0, e.refreshState());
721
705
  };
722
706
  M(s, "invalid", v), M(document, "mousedown", g), M(window, "scroll", _, l), M(window, "resize", _, l), this._destroy = () => {
723
- s.removeEventListener("invalid", v), document.removeEventListener("mousedown", g), window.removeEventListener("scroll", _), window.removeEventListener("resize", _), m && m.removeEventListener("click", h);
707
+ s.removeEventListener("invalid", v), document.removeEventListener("mousedown", g), window.removeEventListener("scroll", _), window.removeEventListener("resize", _), p && p.removeEventListener("click", h);
724
708
  }, this.revertSettings = {
725
709
  innerHTML: s.innerHTML,
726
710
  tabIndex: s.tabIndex
@@ -772,7 +756,7 @@ var Oe = 0, Y = class extends s(o) {
772
756
  for (e in n) t = this.settings[n[e]], t && this.on(e, t);
773
757
  }
774
758
  sync(e = !0) {
775
- let t = this, n = e ? De(t.input, {
759
+ let t = this, n = e ? je(t.input, {
776
760
  delimiter: t.settings.delimiter,
777
761
  allowEmptyOption: t.settings.allowEmptyOption
778
762
  }) : t.settings;
@@ -780,11 +764,7 @@ var Oe = 0, Y = class extends s(o) {
780
764
  }
781
765
  onClick() {
782
766
  var e = this;
783
- if (e.activeItems.length > 0) {
784
- e.clearActiveItems(), e.focus();
785
- return;
786
- }
787
- e.isFocused && e.isOpen ? e.blur() : e.focus();
767
+ e.activeItems.length > 0 ? (e.clearActiveItems(), e.focus()) : e.isFocused && e.isOpen ? e.blur() : e.focus();
788
768
  }
789
769
  onMouseDown() {}
790
770
  onChange() {
@@ -792,11 +772,7 @@ var Oe = 0, Y = class extends s(o) {
792
772
  }
793
773
  onPaste(e) {
794
774
  var t = this;
795
- if (t.isInputHidden || t.isLocked) {
796
- j(e);
797
- return;
798
- }
799
- t.settings.splitOn && setTimeout(() => {
775
+ t.isInputHidden || t.isLocked ? j(e) : t.settings.splitOn && setTimeout(() => {
800
776
  var e = t.inputValue();
801
777
  e.match(t.settings.splitOn) && L(e.trim().split(t.settings.splitOn), (e) => {
802
778
  O(e) && (this.options[e] ? t.addItem(e) : t.createItem(e));
@@ -805,78 +781,67 @@ var Oe = 0, Y = class extends s(o) {
805
781
  }
806
782
  onKeyPress(e) {
807
783
  var t = this;
808
- if (t.isLocked) {
809
- j(e);
810
- return;
811
- }
812
- var n = String.fromCharCode(e.keyCode || e.which);
813
- if (t.settings.create && t.settings.mode === "multi" && n === t.settings.delimiter) {
814
- t.createItem(), j(e);
815
- return;
784
+ if (t.isLocked) j(e);
785
+ else {
786
+ var n = String.fromCharCode(e.keyCode || e.which);
787
+ t.settings.create && t.settings.mode === "multi" && n === t.settings.delimiter && (t.createItem(), j(e));
816
788
  }
817
789
  }
818
790
  onKeyDown(e) {
819
791
  var t = this;
820
- if (t.ignoreHover = !0, t.isLocked) {
821
- e.keyCode !== 9 && j(e);
822
- return;
823
- }
824
- switch (e.keyCode) {
825
- case 65:
826
- if (N(J, e) && t.control_input.value == "") {
827
- j(e), t.selectAll();
792
+ if (t.ignoreHover = !0, t.isLocked) e.keyCode !== 9 && j(e);
793
+ else {
794
+ switch (e.keyCode) {
795
+ case 65:
796
+ if (N(K, e) && t.control_input.value == "") {
797
+ j(e), t.selectAll();
798
+ return;
799
+ }
800
+ break;
801
+ case 27:
802
+ t.isOpen && (j(e, !0), t.close()), t.clearActiveItems();
828
803
  return;
829
- }
830
- break;
831
- case 27:
832
- t.isOpen && (j(e, !0), t.close()), t.clearActiveItems();
833
- return;
834
- case 40:
835
- if (!t.isOpen && t.hasOptions) t.open();
836
- else if (t.activeOption) {
837
- let e = t.getAdjacent(t.activeOption, 1);
838
- e && t.setActiveOption(e);
839
- }
840
- j(e);
841
- return;
842
- case 38:
843
- if (t.activeOption) {
844
- let e = t.getAdjacent(t.activeOption, -1);
845
- e && t.setActiveOption(e);
846
- }
847
- j(e);
848
- return;
849
- case 13:
850
- t.canSelect(t.activeOption) ? (t.onOptionSelect(e, t.activeOption), j(e)) : (t.settings.create && t.createItem() || document.activeElement == t.control_input && t.isOpen) && j(e);
851
- return;
852
- case 37:
853
- t.advanceSelection(-1, e);
854
- return;
855
- case 39:
856
- t.advanceSelection(1, e);
857
- return;
858
- case 9:
859
- t.settings.selectOnTab && (t.canSelect(t.activeOption) ? (t.onOptionSelect(e, t.activeOption), j(e)) : t.settings.create && t.createItem() && j(e));
860
- return;
861
- case 8:
862
- case 46:
863
- t.deleteSelection(e);
864
- return;
804
+ case 40:
805
+ if (!t.isOpen && t.hasOptions) t.open();
806
+ else if (t.activeOption) {
807
+ let e = t.getAdjacent(t.activeOption, 1);
808
+ e && t.setActiveOption(e);
809
+ }
810
+ j(e);
811
+ return;
812
+ case 38:
813
+ if (t.activeOption) {
814
+ let e = t.getAdjacent(t.activeOption, -1);
815
+ e && t.setActiveOption(e);
816
+ }
817
+ j(e);
818
+ return;
819
+ case 13:
820
+ t.canSelect(t.activeOption) ? (t.onOptionSelect(e, t.activeOption), j(e)) : (t.settings.create && t.createItem() || document.activeElement == t.control_input && t.isOpen) && j(e);
821
+ return;
822
+ case 37:
823
+ t.advanceSelection(-1, e);
824
+ return;
825
+ case 39:
826
+ t.advanceSelection(1, e);
827
+ return;
828
+ case 9:
829
+ t.settings.selectOnTab && (t.canSelect(t.activeOption) ? (t.onOptionSelect(e, t.activeOption), j(e)) : t.settings.create && t.createItem() && j(e));
830
+ return;
831
+ case 8:
832
+ case 46:
833
+ t.deleteSelection(e);
834
+ return;
835
+ }
836
+ t.isInputHidden && !N(K, e) && j(e);
865
837
  }
866
- t.isInputHidden && !N(J, e) && j(e);
867
838
  }
868
839
  onInput(e) {
869
840
  if (this.isLocked) return;
870
841
  let t = this.inputValue();
871
- if (this.lastValue !== t) {
872
- if (this.lastValue = t, t == "") {
873
- this._onInput();
874
- return;
875
- }
876
- this.refreshTimeout && window.clearTimeout(this.refreshTimeout), this.refreshTimeout = he(() => {
877
- this.refreshTimeout = null, this._onInput();
878
- }, this.settings.refreshThrottle);
879
- }
842
+ this.lastValue !== t && (this.lastValue = t, t == "" ? this._onInput() : (this.refreshTimeout && window.clearTimeout(this.refreshTimeout), this.refreshTimeout = _e(() => {
843
+ this.refreshTimeout = null, this._onInput();
844
+ }, this.settings.refreshThrottle)));
880
845
  }
881
846
  _onInput() {
882
847
  let e = this.lastValue;
@@ -887,11 +852,7 @@ var Oe = 0, Y = class extends s(o) {
887
852
  }
888
853
  onFocus(e) {
889
854
  var t = this, n = t.isFocused;
890
- if (t.isDisabled || t.isReadOnly) {
891
- t.blur(), j(e);
892
- return;
893
- }
894
- t.ignoreFocus || (t.isFocused = !0, t.settings.preload === "focus" && t.preload(), n || t.trigger("focus"), t.activeItems.length || (t.inputState(), t.refreshOptions(!!t.settings.openOnFocus)), t.refreshState());
855
+ t.isDisabled || t.isReadOnly ? (t.blur(), j(e)) : t.ignoreFocus || (t.isFocused = !0, t.settings.preload === "focus" && t.preload(), n || t.trigger("focus"), t.activeItems.length || (t.inputState(), t.refreshOptions(!!t.settings.openOnFocus)), t.refreshState());
895
856
  }
896
857
  onBlur(e) {
897
858
  if (document.hasFocus() !== !1) {
@@ -945,7 +906,7 @@ var Oe = 0, Y = class extends s(o) {
945
906
  }
946
907
  setValue(e, t) {
947
908
  var n = t ? [] : ["change"];
948
- _e(this, n, () => {
909
+ ye(this, n, () => {
949
910
  this.clear(t), this.addItems(e, t);
950
911
  });
951
912
  }
@@ -955,15 +916,14 @@ var Oe = 0, Y = class extends s(o) {
955
916
  setActiveItem(e, t) {
956
917
  var n = this, r, i, a, o, s, c;
957
918
  if (n.settings.mode !== "single") {
958
- if (!e) {
959
- n.clearActiveItems(), n.isFocused && n.inputState();
960
- return;
919
+ if (!e) n.clearActiveItems(), n.isFocused && n.inputState();
920
+ else {
921
+ if (r = t && t.type.toLowerCase(), r === "click" && N("shiftKey", t) && n.activeItems.length) {
922
+ for (c = n.getLastActive(), a = Array.prototype.indexOf.call(n.control.children, c), o = Array.prototype.indexOf.call(n.control.children, e), a > o && (s = a, a = o, o = s), i = a; i <= o; i++) e = n.control.children[i], n.activeItems.indexOf(e) === -1 && n.setActiveItemClass(e);
923
+ j(t);
924
+ } else r === "click" && N(K, t) || r === "keydown" && N("shiftKey", t) ? e.classList.contains("active") ? n.removeActiveItem(e) : n.setActiveItemClass(e) : (n.clearActiveItems(), n.setActiveItemClass(e));
925
+ n.inputState(), n.isFocused || n.focus();
961
926
  }
962
- if (r = t && t.type.toLowerCase(), r === "click" && N("shiftKey", t) && n.activeItems.length) {
963
- for (c = n.getLastActive(), a = Array.prototype.indexOf.call(n.control.children, c), o = Array.prototype.indexOf.call(n.control.children, e), a > o && (s = a, a = o, o = s), i = a; i <= o; i++) e = n.control.children[i], n.activeItems.indexOf(e) === -1 && n.setActiveItemClass(e);
964
- j(t);
965
- } else r === "click" && N(J, t) || r === "keydown" && N("shiftKey", t) ? e.classList.contains("active") ? n.removeActiveItem(e) : n.setActiveItemClass(e) : (n.clearActiveItems(), n.setActiveItemClass(e));
966
- n.inputState(), n.isFocused || n.focus();
967
927
  }
968
928
  }
969
929
  setActiveItemClass(e) {
@@ -978,7 +938,7 @@ var Oe = 0, Y = class extends s(o) {
978
938
  H(this.activeItems, "active"), this.activeItems = [];
979
939
  }
980
940
  setActiveOption(e, t = !0) {
981
- e !== this.activeOption && (this.clearActiveOption(), e && (this.activeOption = e, K(this.focus_node, { "aria-activedescendant": e.getAttribute("id") }), K(e, { "aria-selected": "true" }), V(e, "active"), t && this.scrollToOption(e)));
941
+ e !== this.activeOption && (this.clearActiveOption(), e && (this.activeOption = e, W(this.focus_node, { "aria-activedescendant": e.getAttribute("id") }), W(e, { "aria-selected": "true" }), V(e, "active"), t && this.scrollToOption(e)));
982
942
  }
983
943
  scrollToOption(e, t) {
984
944
  if (!e) return;
@@ -990,7 +950,7 @@ var Oe = 0, Y = class extends s(o) {
990
950
  t && (n.style.scrollBehavior = t), n.scrollTop = e, n.style.scrollBehavior = "";
991
951
  }
992
952
  clearActiveOption() {
993
- this.activeOption && (H(this.activeOption, "active"), K(this.activeOption, { "aria-selected": null })), this.activeOption = null, K(this.focus_node, { "aria-activedescendant": null });
953
+ this.activeOption && (H(this.activeOption, "active"), W(this.activeOption, { "aria-selected": null })), this.activeOption = null, W(this.focus_node, { "aria-activedescendant": null });
994
954
  }
995
955
  selectAll() {
996
956
  let e = this;
@@ -1002,7 +962,7 @@ var Oe = 0, Y = class extends s(o) {
1002
962
  }
1003
963
  inputState() {
1004
964
  var e = this;
1005
- e.control.contains(e.control_input) && (K(e.control_input, { placeholder: e.settings.placeholder }), e.activeItems.length > 0 || !e.isFocused && e.settings.hidePlaceholder && e.items.length > 0 ? (e.setTextboxValue(), e.isInputHidden = !0) : (e.settings.hidePlaceholder && e.items.length > 0 && K(e.control_input, { placeholder: "" }), e.isInputHidden = !1), e.wrapper.classList.toggle("input-hidden", e.isInputHidden));
965
+ e.control.contains(e.control_input) && (W(e.control_input, { placeholder: e.settings.placeholder }), e.activeItems.length > 0 || !e.isFocused && e.settings.hidePlaceholder && e.items.length > 0 ? (e.setTextboxValue(), e.isInputHidden = !0) : (e.settings.hidePlaceholder && e.items.length > 0 && W(e.control_input, { placeholder: "" }), e.isInputHidden = !1), e.wrapper.classList.toggle("input-hidden", e.isInputHidden));
1006
966
  }
1007
967
  inputValue() {
1008
968
  return this.control_input.value.trim();
@@ -1074,7 +1034,7 @@ var Oe = 0, Y = class extends s(o) {
1074
1034
  }
1075
1035
  t = p.optgroups[a], t === void 0 ? a = "" : e = t.$order;
1076
1036
  let [r, c] = b(a, e);
1077
- n > 0 && (u = u.cloneNode(!0), K(u, {
1037
+ n > 0 && (u = u.cloneNode(!0), W(u, {
1078
1038
  id: s.$id + "-clone-" + n,
1079
1039
  "aria-selected": null
1080
1040
  }), u.classList.add("ts-cloned"), H(u, "active"), p.activeOption && p.activeOption.dataset.value == i && l && l.dataset.group === a.toString() && (_ = u)), c.appendChild(u), a != "" && (d[a] = r);
@@ -1093,8 +1053,8 @@ var Oe = 0, Y = class extends s(o) {
1093
1053
  });
1094
1054
  I(s, n);
1095
1055
  } else I(s, t);
1096
- }), y.innerHTML = "", I(y, s), p.isDropdownContentStale = !1, p.settings.highlight && (Te(y), g.query.length && g.tokens.length && L(g.tokens, (e) => {
1097
- we(y, e.regex);
1056
+ }), y.innerHTML = "", I(y, s), p.isDropdownContentStale = !1, p.settings.highlight && (ke(y), g.query.length && g.tokens.length && L(g.tokens, (e) => {
1057
+ Oe(y, e.regex);
1098
1058
  }));
1099
1059
  var S = (e) => {
1100
1060
  let t = p.render(e, { input: m });
@@ -1153,11 +1113,11 @@ var Oe = 0, Y = class extends s(o) {
1153
1113
  if (t.$order = t.$order || s.$order, delete n.options[a], n.uncacheValue(o), n.options[o] = t, c) {
1154
1114
  if (n.dropdown_content.contains(c)) {
1155
1115
  let e = n._render("option", t);
1156
- q(c, e), n.activeOption === c && n.setActiveOption(e);
1116
+ G(c, e), n.activeOption === c && n.setActiveOption(e);
1157
1117
  }
1158
1118
  c.remove();
1159
1119
  }
1160
- l && (i = n.items.indexOf(a), i !== -1 && n.items.splice(i, 1, o), r = n._render("item", t), l.classList.contains("active") && V(r, "active"), q(l, r)), n.isDropdownContentStale = !0;
1120
+ l && (i = n.items.indexOf(a), i !== -1 && n.items.splice(i, 1, o), r = n._render("item", t), l.classList.contains("active") && V(r, "active"), G(l, r)), n.isDropdownContentStale = !0;
1161
1121
  }
1162
1122
  removeOption(e, t) {
1163
1123
  let n = this;
@@ -1206,7 +1166,7 @@ var Oe = 0, Y = class extends s(o) {
1206
1166
  }
1207
1167
  addItem(e, t) {
1208
1168
  var n = t ? [] : ["change", "dropdown_close"];
1209
- _e(this, n, () => {
1169
+ ye(this, n, () => {
1210
1170
  var n, r;
1211
1171
  let i = this, a = i.settings.mode, o = O(e);
1212
1172
  if (!(o && i.items.indexOf(o) !== -1 && (a === "single" && i.close(), a === "single" || !i.settings.duplicates)) && o !== null && i.options.hasOwnProperty(o) && (a === "single" && i.clear(t), !(a === "multi" && i.isFull()))) {
@@ -1226,7 +1186,7 @@ var Oe = 0, Y = class extends s(o) {
1226
1186
  if (e = n.getItem(e), !e) return;
1227
1187
  var r, i;
1228
1188
  let a = e.dataset.value;
1229
- r = Ce(e), e.remove(), e.classList.contains("active") && (i = n.activeItems.indexOf(e), n.activeItems.splice(i, 1), H(e, "active")), n.items.splice(r, 1), n.isDropdownContentStale = !0, !n.settings.persist && n.userOptions.hasOwnProperty(a) && n.removeOption(a, t), r < n.caretPos && n.setCaret(n.caretPos - 1), n.updateOriginalInput({ silent: t }), n.refreshState(), n.positionDropdown(), n.trigger("item_remove", a, e);
1189
+ r = De(e), e.remove(), e.classList.contains("active") && (i = n.activeItems.indexOf(e), n.activeItems.splice(i, 1), H(e, "active")), n.items.splice(r, 1), n.isDropdownContentStale = !0, !n.settings.persist && n.userOptions.hasOwnProperty(a) && n.removeOption(a, t), r < n.caretPos && n.setCaret(n.caretPos - 1), n.updateOriginalInput({ silent: t }), n.refreshState(), n.positionDropdown(), n.trigger("item_remove", a, e);
1230
1190
  }
1231
1191
  createItem(e = null, t = () => {}) {
1232
1192
  arguments.length === 3 && (t = arguments[2]), typeof t != "function" && (t = () => {});
@@ -1254,7 +1214,7 @@ var Oe = 0, Y = class extends s(o) {
1254
1214
  let t = e.isFull(), n = e.isLocked;
1255
1215
  e.wrapper.classList.toggle("rtl", e.rtl);
1256
1216
  let r = e.wrapper.classList;
1257
- r.toggle("focus", e.isFocused), r.toggle("disabled", e.isDisabled), r.toggle("readonly", e.isReadOnly), r.toggle("required", e.isRequired), r.toggle("invalid", !e.isValid), r.toggle("locked", n), r.toggle("full", t), r.toggle("input-active", e.isFocused && !e.isInputHidden), r.toggle("dropdown-active", e.isOpen), r.toggle("has-options", Se(e.options)), r.toggle("has-items", e.items.length > 0);
1217
+ r.toggle("focus", e.isFocused), r.toggle("disabled", e.isDisabled), r.toggle("readonly", e.isReadOnly), r.toggle("required", e.isRequired), r.toggle("invalid", !e.isValid), r.toggle("locked", n), r.toggle("full", t), r.toggle("input-active", e.isFocused && !e.isInputHidden), r.toggle("dropdown-active", e.isOpen), r.toggle("has-options", Ee(e.options)), r.toggle("has-items", e.items.length > 0);
1258
1218
  }
1259
1219
  refreshValidityState() {
1260
1220
  var e = this;
@@ -1282,7 +1242,7 @@ var Oe = 0, Y = class extends s(o) {
1282
1242
  }
1283
1243
  open() {
1284
1244
  var e = this;
1285
- e.isLocked || e.isOpen || e.settings.mode === "multi" && e.isFull() || (e.isOpen = !0, K(e.focus_node, { "aria-expanded": "true" }), e.refreshState(), B(e.dropdown, {
1245
+ e.isLocked || e.isOpen || e.settings.mode === "multi" && e.isFull() || (e.isOpen = !0, W(e.focus_node, { "aria-expanded": "true" }), e.refreshState(), B(e.dropdown, {
1286
1246
  visibility: "hidden",
1287
1247
  display: "block"
1288
1248
  }), e.positionDropdown(), B(e.dropdown, {
@@ -1292,7 +1252,7 @@ var Oe = 0, Y = class extends s(o) {
1292
1252
  }
1293
1253
  close(e = !0) {
1294
1254
  var t = this, n = t.isOpen;
1295
- e && (t.setTextboxValue(), t.settings.mode === "single" && t.items.length && t.inputState()), t.isOpen = !1, K(t.focus_node, { "aria-expanded": "false" }), B(t.dropdown, { display: "none" }), t.settings.hideSelected && t.clearActiveOption(), t.refreshState(), n && t.trigger("dropdown_close", t.dropdown);
1255
+ e && (t.setTextboxValue(), t.settings.mode === "single" && t.items.length && t.inputState()), t.isOpen = !1, W(t.focus_node, { "aria-expanded": "false" }), B(t.dropdown, { display: "none" }), t.settings.hideSelected && t.clearActiveOption(), t.refreshState(), n && t.trigger("dropdown_close", t.dropdown);
1296
1256
  }
1297
1257
  positionDropdown() {
1298
1258
  if (this.settings.dropdownParent === "body") {
@@ -1316,9 +1276,9 @@ var Oe = 0, Y = class extends s(o) {
1316
1276
  }
1317
1277
  deleteSelection(e) {
1318
1278
  var t, n, r, i, a = this;
1319
- t = e && e.keyCode === 8 ? -1 : 1, n = ve(a.control_input);
1279
+ t = e && e.keyCode === 8 ? -1 : 1, n = be(a.control_input);
1320
1280
  let o = [];
1321
- if (a.activeItems.length) i = xe(a.activeItems, t), r = Ce(i), t > 0 && r++, L(a.activeItems, (e) => o.push(e));
1281
+ if (a.activeItems.length) i = Te(a.activeItems, t), r = De(i), t > 0 && r++, L(a.activeItems, (e) => o.push(e));
1322
1282
  else if ((a.isFocused || a.settings.mode === "single") && a.items.length) {
1323
1283
  let e = a.controlChildren(), r;
1324
1284
  t < 0 && n.start === 0 && n.length === 0 ? r = e[a.caretPos - 1] : t > 0 && n.start === a.inputValue().length && (r = e[a.caretPos]), r !== void 0 && o.push(r);
@@ -1333,14 +1293,14 @@ var Oe = 0, Y = class extends s(o) {
1333
1293
  }
1334
1294
  advanceSelection(e, t) {
1335
1295
  var n, r, i = this;
1336
- i.rtl && (e *= -1), !i.inputValue().length && (N(J, t) || N("shiftKey", t) ? (n = i.getLastActive(e), r = n ? n.classList.contains("active") ? i.getAdjacent(n, e, "item") : n : e > 0 ? i.control_input.nextElementSibling : i.control_input.previousElementSibling, r && (r.classList.contains("active") && i.removeActiveItem(n), i.setActiveItemClass(r))) : i.moveCaret(e));
1296
+ i.rtl && (e *= -1), !i.inputValue().length && (N(K, t) || N("shiftKey", t) ? (n = i.getLastActive(e), r = n ? n.classList.contains("active") ? i.getAdjacent(n, e, "item") : n : e > 0 ? i.control_input.nextElementSibling : i.control_input.previousElementSibling, r && (r.classList.contains("active") && i.removeActiveItem(n), i.setActiveItemClass(r))) : i.moveCaret(e));
1337
1297
  }
1338
1298
  moveCaret(e) {}
1339
1299
  getLastActive(e) {
1340
1300
  let t = this.control.querySelector(".last-active");
1341
1301
  if (t) return t;
1342
1302
  var n = this.control.querySelectorAll(".active");
1343
- if (n) return xe(n, e);
1303
+ if (n) return Te(n, e);
1344
1304
  }
1345
1305
  setCaret(e) {
1346
1306
  this.caretPos = this.items.length;
@@ -1377,9 +1337,9 @@ var Oe = 0, Y = class extends s(o) {
1377
1337
  var n, r;
1378
1338
  let i = this;
1379
1339
  if (typeof this.settings.render[e] != "function" || (r = i.settings.render[e].call(this, t, A), !r)) return null;
1380
- if (r = R(r), e === "option" || e === "option_create" ? t[i.settings.disabledField] ? K(r, { "aria-disabled": "true" }) : K(r, { "data-selectable": "" }) : e === "optgroup" && (n = t.group[i.settings.optgroupValueField], K(r, { "data-group": n }), t.group[i.settings.disabledField] && K(r, { "data-disabled": "" })), e === "option" || e === "item") {
1340
+ if (r = R(r), e === "option" || e === "option_create" ? t[i.settings.disabledField] ? W(r, { "aria-disabled": "true" }) : W(r, { "data-selectable": "" }) : e === "optgroup" && (n = t.group[i.settings.optgroupValueField], W(r, { "data-group": n }), t.group[i.settings.disabledField] && W(r, { "data-disabled": "" })), e === "option" || e === "item") {
1381
1341
  let n = k(t[i.settings.valueField]);
1382
- K(r, { "data-value": n }), e === "item" ? (V(r, i.settings.itemClass), K(r, { "data-ts-item": "" })) : (V(r, i.settings.optionClass), K(r, {
1342
+ W(r, { "data-value": n }), e === "item" ? (V(r, i.settings.itemClass), W(r, { "data-ts-item": "" })) : (V(r, i.settings.optionClass), W(r, {
1383
1343
  role: "option",
1384
1344
  id: t.$id
1385
1345
  }), t.$div = r, i.options[n] = t);
@@ -1410,28 +1370,28 @@ var Oe = 0, Y = class extends s(o) {
1410
1370
  return e === "after" && (t = i.apply(r, arguments)), a = n.apply(r, arguments), e === "instead" ? a : (e === "before" && (t = i.apply(r, arguments)), t);
1411
1371
  };
1412
1372
  }
1413
- }, ke = (e, t, n, r) => {
1373
+ }, Ne = (e, t, n, r) => {
1414
1374
  e.addEventListener(t, n, r);
1415
1375
  };
1416
- function Ae() {
1417
- ke(this.input, "change", () => {
1376
+ function Pe() {
1377
+ Ne(this.input, "change", () => {
1418
1378
  this.sync();
1419
1379
  });
1420
1380
  }
1421
1381
  //#endregion
1422
1382
  //#region ../../node_modules/tom-select/dist/esm/plugins/checkbox_options/plugin.js
1423
- var je = (e) => e == null ? null : Me(e), Me = (e) => typeof e == "boolean" ? e ? "1" : "0" : e + "", Ne = (e, t = !1) => {
1383
+ var Fe = (e) => e == null ? null : Ie(e), Ie = (e) => typeof e == "boolean" ? e ? "1" : "0" : e + "", Le = (e, t = !1) => {
1424
1384
  e && (e.preventDefault(), t && e.stopPropagation());
1425
- }, Pe = (e) => {
1385
+ }, Re = (e) => {
1426
1386
  if (e.jquery) return e[0];
1427
1387
  if (e instanceof HTMLElement) return e;
1428
- if (Fe(e)) {
1388
+ if (ze(e)) {
1429
1389
  var t = document.createElement("template");
1430
1390
  return t.innerHTML = e.trim(), t.content.firstChild;
1431
1391
  }
1432
1392
  return document.querySelector(e);
1433
- }, Fe = (e) => typeof e == "string" && e.indexOf("<") > -1;
1434
- function Ie(e) {
1393
+ }, ze = (e) => typeof e == "string" && e.indexOf("<") > -1;
1394
+ function Be(e) {
1435
1395
  var t = this, n = t.onOptionSelect;
1436
1396
  t.settings.hideSelected = !1;
1437
1397
  let r = Object.assign({
@@ -1450,11 +1410,11 @@ function Ie(e) {
1450
1410
  t.hook("after", "setupTemplates", () => {
1451
1411
  var e = t.settings.render.option;
1452
1412
  t.settings.render.option = (n, a) => {
1453
- var o = Pe(e.call(t, n, a)), s = document.createElement("input");
1413
+ var o = Re(e.call(t, n, a)), s = document.createElement("input");
1454
1414
  r.className && s.classList.add(r.className), s.addEventListener("click", function(e) {
1455
- Ne(e);
1415
+ Le(e);
1456
1416
  }), s.type = "checkbox";
1457
- let c = je(n[t.settings.valueField]);
1417
+ let c = Fe(n[t.settings.valueField]);
1458
1418
  return i(s, !!(c && t.items.indexOf(c) > -1)), o.prepend(s), o;
1459
1419
  };
1460
1420
  }), t.on("item_remove", (e) => {
@@ -1464,25 +1424,21 @@ function Ie(e) {
1464
1424
  var n = t.getOption(e);
1465
1425
  n && a(n);
1466
1426
  }), t.hook("instead", "onOptionSelect", (e, r) => {
1467
- if (r.classList.contains("selected")) {
1468
- r.classList.remove("selected"), t.removeItem(r.dataset.value), t.refreshOptions(), Ne(e, !0);
1469
- return;
1470
- }
1471
- n.call(t, e, r), a(r);
1427
+ r.classList.contains("selected") ? (r.classList.remove("selected"), t.removeItem(r.dataset.value), t.refreshOptions(), Le(e, !0)) : (n.call(t, e, r), a(r));
1472
1428
  });
1473
1429
  }
1474
1430
  //#endregion
1475
1431
  //#region ../../node_modules/tom-select/dist/esm/plugins/clear_button/plugin.js
1476
- var Le = (e) => {
1432
+ var Ve = (e) => {
1477
1433
  if (e.jquery) return e[0];
1478
1434
  if (e instanceof HTMLElement) return e;
1479
- if (Re(e)) {
1435
+ if (He(e)) {
1480
1436
  var t = document.createElement("template");
1481
1437
  return t.innerHTML = e.trim(), t.content.firstChild;
1482
1438
  }
1483
1439
  return document.querySelector(e);
1484
- }, Re = (e) => typeof e == "string" && e.indexOf("<") > -1;
1485
- function ze(e) {
1440
+ }, He = (e) => typeof e == "string" && e.indexOf("<") > -1;
1441
+ function Ue(e) {
1486
1442
  let t = this, n = Object.assign({
1487
1443
  className: "clear-button",
1488
1444
  title: "Clear All",
@@ -1491,7 +1447,7 @@ function ze(e) {
1491
1447
  html: (e) => `<div class="${e.className}" title="${e.title}" role="${e.role}" tabindex="${e.tabindex}">&times;</div>`
1492
1448
  }, e);
1493
1449
  t.on("initialize", () => {
1494
- var e = Le(n.html(n));
1450
+ var e = Ve(n.html(n));
1495
1451
  e.addEventListener("click", (e) => {
1496
1452
  t.isLocked || (t.clear(), t.settings.mode === "single" && t.settings.allowEmptyOption && t.addItem(""), t.refreshOptions(!1), e.preventDefault(), e.stopPropagation());
1497
1453
  }), t.control.appendChild(e);
@@ -1499,38 +1455,38 @@ function ze(e) {
1499
1455
  }
1500
1456
  //#endregion
1501
1457
  //#region ../../node_modules/tom-select/dist/esm/plugins/drag_drop/plugin.js
1502
- var Be = (e, t = !1) => {
1458
+ var We = (e, t = !1) => {
1503
1459
  e && (e.preventDefault(), t && e.stopPropagation());
1504
- }, X = (e, t, n, r) => {
1460
+ }, J = (e, t, n, r) => {
1505
1461
  e.addEventListener(t, n, r);
1506
- }, Ve = (e, t) => {
1462
+ }, Ge = (e, t) => {
1507
1463
  if (Array.isArray(e)) e.forEach(t);
1508
1464
  else for (var n in e) e.hasOwnProperty(n) && t(e[n], n);
1509
- }, He = (e) => {
1465
+ }, Ke = (e) => {
1510
1466
  if (e.jquery) return e[0];
1511
1467
  if (e instanceof HTMLElement) return e;
1512
- if (Ue(e)) {
1468
+ if (qe(e)) {
1513
1469
  var t = document.createElement("template");
1514
1470
  return t.innerHTML = e.trim(), t.content.firstChild;
1515
1471
  }
1516
1472
  return document.querySelector(e);
1517
- }, Ue = (e) => typeof e == "string" && e.indexOf("<") > -1, We = (e, t) => {
1518
- Ve(t, (t, n) => {
1473
+ }, qe = (e) => typeof e == "string" && e.indexOf("<") > -1, Je = (e, t) => {
1474
+ Ge(t, (t, n) => {
1519
1475
  t == null ? e.removeAttribute(n) : e.setAttribute(n, "" + t);
1520
1476
  });
1521
- }, Ge = (e, t) => {
1477
+ }, Ye = (e, t) => {
1522
1478
  var n;
1523
1479
  (n = e.parentNode) == null || n.insertBefore(t, e.nextSibling);
1524
- }, Ke = (e, t) => {
1480
+ }, Xe = (e, t) => {
1525
1481
  var n;
1526
1482
  (n = e.parentNode) == null || n.insertBefore(t, e);
1527
- }, qe = (e, t) => {
1483
+ }, Ze = (e, t) => {
1528
1484
  do
1529
1485
  if (t = t?.previousElementSibling, e == t) return !0;
1530
1486
  while (t && t.previousElementSibling);
1531
1487
  return !1;
1532
1488
  };
1533
- function Je() {
1489
+ function Qe() {
1534
1490
  var e = this;
1535
1491
  if (e.settings.mode !== "multi") return;
1536
1492
  var t = e.lock, n = e.unlock;
@@ -1538,10 +1494,10 @@ function Je() {
1538
1494
  e.hook("after", "setupTemplates", () => {
1539
1495
  var t = e.settings.render.item;
1540
1496
  e.settings.render.item = (n, a) => {
1541
- let o = He(t.call(e, n, a));
1542
- We(o, { draggable: "true" });
1497
+ let o = Ke(t.call(e, n, a));
1498
+ Je(o, { draggable: "true" });
1543
1499
  let s = (e) => {
1544
- r || Be(e), e.stopPropagation();
1500
+ r || We(e), e.stopPropagation();
1545
1501
  }, c = (e) => {
1546
1502
  i = o, setTimeout(() => {
1547
1503
  o.classList.add("ts-dragging");
@@ -1551,9 +1507,9 @@ function Je() {
1551
1507
  }, u = () => {
1552
1508
  o.classList.remove("ts-drag-over");
1553
1509
  }, d = (e, t) => {
1554
- t !== void 0 && (qe(t, o) ? Ge(e, t) : Ke(e, t));
1510
+ t !== void 0 && (Ze(t, o) ? Ye(e, t) : Xe(e, t));
1555
1511
  };
1556
- return X(o, "mousedown", s), X(o, "dragstart", c), X(o, "dragenter", l), X(o, "dragover", l), X(o, "dragleave", u), X(o, "dragend", () => {
1512
+ return J(o, "mousedown", s), J(o, "dragstart", c), J(o, "dragenter", l), J(o, "dragover", l), J(o, "dragleave", u), J(o, "dragend", () => {
1557
1513
  var t;
1558
1514
  document.querySelectorAll(".ts-drag-over").forEach((e) => e.classList.remove("ts-drag-over")), (t = i) == null || t.classList.remove("ts-dragging"), i = void 0;
1559
1515
  var n = [];
@@ -1569,18 +1525,18 @@ function Je() {
1569
1525
  }
1570
1526
  //#endregion
1571
1527
  //#region ../../node_modules/tom-select/dist/esm/plugins/dropdown_header/plugin.js
1572
- var Ye = (e, t = !1) => {
1528
+ var $e = (e, t = !1) => {
1573
1529
  e && (e.preventDefault(), t && e.stopPropagation());
1574
- }, Xe = (e) => {
1530
+ }, et = (e) => {
1575
1531
  if (e.jquery) return e[0];
1576
1532
  if (e instanceof HTMLElement) return e;
1577
- if (Ze(e)) {
1533
+ if (tt(e)) {
1578
1534
  var t = document.createElement("template");
1579
1535
  return t.innerHTML = e.trim(), t.content.firstChild;
1580
1536
  }
1581
1537
  return document.querySelector(e);
1582
- }, Ze = (e) => typeof e == "string" && e.indexOf("<") > -1;
1583
- function Qe(e) {
1538
+ }, tt = (e) => typeof e == "string" && e.indexOf("<") > -1;
1539
+ function nt(e) {
1584
1540
  let t = this, n = Object.assign({
1585
1541
  title: "Untitled",
1586
1542
  headerClass: "dropdown-header",
@@ -1590,36 +1546,36 @@ function Qe(e) {
1590
1546
  html: (e) => "<div class=\"" + e.headerClass + "\"><div class=\"" + e.titleRowClass + "\"><span class=\"" + e.labelClass + "\">" + e.title + "</span><a class=\"" + e.closeClass + "\">&times;</a></div></div>"
1591
1547
  }, e);
1592
1548
  t.on("initialize", () => {
1593
- var e = Xe(n.html(n)), r = e.querySelector("." + n.closeClass);
1549
+ var e = et(n.html(n)), r = e.querySelector("." + n.closeClass);
1594
1550
  r && r.addEventListener("click", (e) => {
1595
- Ye(e, !0), t.close();
1551
+ $e(e, !0), t.close();
1596
1552
  }), t.dropdown.insertBefore(e, t.dropdown.firstChild);
1597
1553
  });
1598
1554
  }
1599
1555
  //#endregion
1600
1556
  //#region ../../node_modules/tom-select/dist/esm/plugins/caret_position/plugin.js
1601
- var $e = (e, t) => {
1557
+ var rt = (e, t) => {
1602
1558
  if (Array.isArray(e)) e.forEach(t);
1603
1559
  else for (var n in e) e.hasOwnProperty(n) && t(e[n], n);
1604
- }, et = (e, ...t) => {
1605
- var n = tt(t);
1606
- e = nt(e), e.map((e) => {
1560
+ }, it = (e, ...t) => {
1561
+ var n = at(t);
1562
+ e = ot(e), e.map((e) => {
1607
1563
  n.map((t) => {
1608
1564
  e.classList.remove(t);
1609
1565
  });
1610
1566
  });
1611
- }, tt = (e) => {
1567
+ }, at = (e) => {
1612
1568
  var t = [];
1613
- return $e(e, (e) => {
1569
+ return rt(e, (e) => {
1614
1570
  typeof e == "string" && (e = e.trim().split(/[\t\n\f\r\s]/)), Array.isArray(e) && (t = t.concat(e));
1615
1571
  }), t.filter(Boolean);
1616
- }, nt = (e) => (Array.isArray(e) || (e = [e]), e), rt = (e, t) => {
1572
+ }, ot = (e) => (Array.isArray(e) || (e = [e]), e), st = (e, t) => {
1617
1573
  if (!e) return -1;
1618
1574
  t ||= e.nodeName;
1619
1575
  for (var n = 0; e = e.previousElementSibling;) e.matches(t) && n++;
1620
1576
  return n;
1621
1577
  };
1622
- function it() {
1578
+ function ct() {
1623
1579
  var e = this;
1624
1580
  e.hook("instead", "setCaret", (t) => {
1625
1581
  e.settings.mode === "single" || !e.control.contains(e.control_input) ? t = e.items.length : (t = Math.max(0, Math.min(e.items.length, t)), t != e.caretPos && !e.isPending && e.controlChildren().forEach((n, r) => {
@@ -1629,58 +1585,58 @@ function it() {
1629
1585
  if (!e.isFocused) return;
1630
1586
  let n = e.getLastActive(t);
1631
1587
  if (n) {
1632
- let r = rt(n);
1633
- e.setCaret(t > 0 ? r + 1 : r), e.setActiveItem(), et(n, "last-active");
1588
+ let r = st(n);
1589
+ e.setCaret(t > 0 ? r + 1 : r), e.setActiveItem(), it(n, "last-active");
1634
1590
  } else e.setCaret(e.caretPos + t);
1635
1591
  });
1636
1592
  }
1637
1593
  //#endregion
1638
1594
  //#region ../../node_modules/tom-select/dist/esm/plugins/dropdown_input/plugin.js
1639
- var at = 27, ot = 9, st = (e, t = !1) => {
1595
+ var lt = 27, ut = 9, dt = (e, t = !1) => {
1640
1596
  e && (e.preventDefault(), t && e.stopPropagation());
1641
- }, ct = (e, t, n, r) => {
1597
+ }, ft = (e, t, n, r) => {
1642
1598
  e.addEventListener(t, n, r);
1643
- }, lt = (e, t) => {
1599
+ }, pt = (e, t) => {
1644
1600
  if (Array.isArray(e)) e.forEach(t);
1645
1601
  else for (var n in e) e.hasOwnProperty(n) && t(e[n], n);
1646
- }, ut = (e) => {
1602
+ }, mt = (e) => {
1647
1603
  if (e.jquery) return e[0];
1648
1604
  if (e instanceof HTMLElement) return e;
1649
- if (dt(e)) {
1605
+ if (ht(e)) {
1650
1606
  var t = document.createElement("template");
1651
1607
  return t.innerHTML = e.trim(), t.content.firstChild;
1652
1608
  }
1653
1609
  return document.querySelector(e);
1654
- }, dt = (e) => typeof e == "string" && e.indexOf("<") > -1, ft = (e, ...t) => {
1655
- var n = pt(t);
1656
- e = mt(e), e.map((e) => {
1610
+ }, ht = (e) => typeof e == "string" && e.indexOf("<") > -1, gt = (e, ...t) => {
1611
+ var n = _t(t);
1612
+ e = vt(e), e.map((e) => {
1657
1613
  n.map((t) => {
1658
1614
  e.classList.add(t);
1659
1615
  });
1660
1616
  });
1661
- }, pt = (e) => {
1617
+ }, _t = (e) => {
1662
1618
  var t = [];
1663
- return lt(e, (e) => {
1619
+ return pt(e, (e) => {
1664
1620
  typeof e == "string" && (e = e.trim().split(/[\t\n\f\r\s]/)), Array.isArray(e) && (t = t.concat(e));
1665
1621
  }), t.filter(Boolean);
1666
- }, mt = (e) => (Array.isArray(e) || (e = [e]), e);
1667
- function ht() {
1622
+ }, vt = (e) => (Array.isArray(e) || (e = [e]), e);
1623
+ function yt() {
1668
1624
  let e = this;
1669
1625
  e.settings.shouldOpen = !0, e.hook("before", "setup", () => {
1670
- e.focus_node = e.control, ft(e.control_input, "dropdown-input");
1671
- let t = ut("<div class=\"dropdown-input-wrap\">");
1626
+ e.focus_node = e.control, gt(e.control_input, "dropdown-input");
1627
+ let t = mt("<div class=\"dropdown-input-wrap\">");
1672
1628
  t.append(e.control_input), e.dropdown.insertBefore(t, e.dropdown.firstChild);
1673
- let n = ut("<input class=\"items-placeholder\" tabindex=\"-1\" />");
1629
+ let n = mt("<input class=\"items-placeholder\" tabindex=\"-1\" />");
1674
1630
  n.placeholder = e.settings.placeholder || "", e.control.append(n);
1675
1631
  let r = e.input?.getAttribute("aria-label");
1676
1632
  r && n.setAttribute("aria-label", r);
1677
1633
  }), e.on("initialize", () => {
1678
1634
  e.control_input.addEventListener("keydown", (t) => {
1679
1635
  switch (t.keyCode) {
1680
- case at:
1681
- e.isOpen && (st(t, !0), e.close()), e.clearActiveItems();
1636
+ case lt:
1637
+ e.isOpen && (dt(t, !0), e.close()), e.clearActiveItems();
1682
1638
  return;
1683
- case ot: e.focus_node.tabIndex = -1;
1639
+ case ut: e.focus_node.tabIndex = -1;
1684
1640
  }
1685
1641
  return e.onKeyDown.call(e, t);
1686
1642
  }), e.on("blur", () => {
@@ -1691,17 +1647,17 @@ function ht() {
1691
1647
  let t = e.onBlur;
1692
1648
  e.hook("instead", "onBlur", (n) => {
1693
1649
  if (!(n && n.relatedTarget == e.control_input)) return t.call(e);
1694
- }), ct(e.control_input, "blur", () => e.onBlur()), e.hook("before", "close", () => {
1650
+ }), ft(e.control_input, "blur", () => e.onBlur()), e.hook("before", "close", () => {
1695
1651
  e.isOpen && e.focus_node.focus({ preventScroll: !0 });
1696
1652
  });
1697
1653
  });
1698
1654
  }
1699
1655
  //#endregion
1700
1656
  //#region ../../node_modules/tom-select/dist/esm/plugins/input_autogrow/plugin.js
1701
- var Z = (e, t, n, r) => {
1657
+ var Y = (e, t, n, r) => {
1702
1658
  e.addEventListener(t, n, r);
1703
1659
  };
1704
- function gt() {
1660
+ function bt() {
1705
1661
  var e = this;
1706
1662
  e.on("initialize", () => {
1707
1663
  var t = document.createElement("span"), n = e.control_input;
@@ -1716,57 +1672,57 @@ function gt() {
1716
1672
  var r = () => {
1717
1673
  t.textContent = n.value, n.style.width = t.clientWidth + "px";
1718
1674
  };
1719
- r(), e.on("update item_add item_remove", r), Z(n, "input", r), Z(n, "keyup", r), Z(n, "blur", r), Z(n, "update", r);
1675
+ r(), e.on("update item_add item_remove", r), Y(n, "input", r), Y(n, "keyup", r), Y(n, "blur", r), Y(n, "update", r);
1720
1676
  });
1721
1677
  }
1722
1678
  //#endregion
1723
1679
  //#region ../../node_modules/tom-select/dist/esm/plugins/no_backspace_delete/plugin.js
1724
- function _t() {
1680
+ function xt() {
1725
1681
  var e = this, t = e.deleteSelection;
1726
1682
  this.hook("instead", "deleteSelection", (n) => e.activeItems.length ? t.call(e, n) : !1);
1727
1683
  }
1728
1684
  //#endregion
1729
1685
  //#region ../../node_modules/tom-select/dist/esm/plugins/no_active_items/plugin.js
1730
- function vt() {
1686
+ function St() {
1731
1687
  this.hook("instead", "setActiveItem", () => {}), this.hook("instead", "selectAll", () => {});
1732
1688
  }
1733
1689
  //#endregion
1734
1690
  //#region ../../node_modules/tom-select/dist/esm/plugins/optgroup_columns/plugin.js
1735
- var yt = 37, bt = 39, xt = (e, t, n) => {
1691
+ var Ct = 37, wt = 39, Tt = (e, t, n) => {
1736
1692
  for (; e && e.matches;) {
1737
1693
  if (e.matches(t)) return e;
1738
1694
  e = e.parentNode;
1739
1695
  }
1740
- }, St = (e, t) => {
1696
+ }, Et = (e, t) => {
1741
1697
  if (!e) return -1;
1742
1698
  t ||= e.nodeName;
1743
1699
  for (var n = 0; e = e.previousElementSibling;) e.matches(t) && n++;
1744
1700
  return n;
1745
1701
  };
1746
- function Ct() {
1702
+ function Dt() {
1747
1703
  var e = this, t = e.onKeyDown;
1748
1704
  e.hook("instead", "onKeyDown", (n) => {
1749
1705
  var r, i, a, o;
1750
- if (!e.isOpen || n.keyCode !== yt && n.keyCode !== bt) return t.call(e, n);
1751
- e.ignoreHover = !0, o = xt(e.activeOption, "[data-group]"), r = St(e.activeOption, "[data-selectable]"), o && (o = n.keyCode === yt ? o.previousSibling : o.nextSibling, o && (a = o.querySelectorAll("[data-selectable]"), i = a[Math.min(a.length - 1, r)], i && e.setActiveOption(i)));
1706
+ if (!e.isOpen || n.keyCode !== Ct && n.keyCode !== wt) return t.call(e, n);
1707
+ e.ignoreHover = !0, o = Tt(e.activeOption, "[data-group]"), r = Et(e.activeOption, "[data-selectable]"), o && (o = n.keyCode === Ct ? o.previousSibling : o.nextSibling, o && (a = o.querySelectorAll("[data-selectable]"), i = a[Math.min(a.length - 1, r)], i && e.setActiveOption(i)));
1752
1708
  });
1753
1709
  }
1754
1710
  //#endregion
1755
1711
  //#region ../../node_modules/tom-select/dist/esm/plugins/remove_button/plugin.js
1756
- var wt = (e, t = !1) => {
1712
+ var Ot = (e, t = !1) => {
1757
1713
  e && (e.preventDefault(), t && e.stopPropagation());
1758
- }, Tt = (e, t, n, r) => {
1714
+ }, X = (e, t, n, r) => {
1759
1715
  e.addEventListener(t, n, r);
1760
- }, Et = (e) => {
1716
+ }, kt = (e) => {
1761
1717
  if (e.jquery) return e[0];
1762
1718
  if (e instanceof HTMLElement) return e;
1763
- if (Dt(e)) {
1719
+ if (At(e)) {
1764
1720
  var t = document.createElement("template");
1765
1721
  return t.innerHTML = e.trim(), t.content.firstChild;
1766
1722
  }
1767
1723
  return document.querySelector(e);
1768
- }, Dt = (e) => typeof e == "string" && e.indexOf("<") > -1;
1769
- function Ot(e) {
1724
+ }, At = (e) => typeof e == "string" && e.indexOf("<") > -1;
1725
+ function jt(e) {
1770
1726
  let t = this, n = Object.assign({
1771
1727
  label: "×",
1772
1728
  title: "Remove",
@@ -1781,18 +1737,18 @@ function Ot(e) {
1781
1737
  t.hook("after", "setupTemplates", () => {
1782
1738
  var e = t.settings.render.item;
1783
1739
  t.settings.render.item = (r, i) => {
1784
- var a = Et(e.call(t, r, i)), o = Et(n.html(n));
1785
- return a.appendChild(o), Tt(o, "mousedown", (e) => {
1786
- wt(e, !0);
1787
- }), Tt(o, "click", (e) => {
1788
- t.isLocked || (wt(e, !0), !t.isLocked && t.shouldDelete([a], e) && (t.removeItem(a), t.refreshOptions(!1), t.inputState()));
1740
+ var a = kt(e.call(t, r, i)), o = kt(n.html(n));
1741
+ return a.appendChild(o), X(o, "mousedown", (e) => {
1742
+ Ot(e, !0);
1743
+ }), X(o, "click", (e) => {
1744
+ t.isLocked || (Ot(e, !0), !t.isLocked && t.shouldDelete([a], e) && (t.removeItem(a), t.refreshOptions(!1), t.inputState()));
1789
1745
  }), a;
1790
1746
  };
1791
1747
  });
1792
1748
  }
1793
1749
  //#endregion
1794
1750
  //#region ../../node_modules/tom-select/dist/esm/plugins/restore_on_backspace/plugin.js
1795
- function kt(e) {
1751
+ function Mt(e) {
1796
1752
  let t = this, n = Object.assign({ text: (e) => e[t.settings.labelField] }, e);
1797
1753
  t.on("item_remove", function(e) {
1798
1754
  if (t.isFocused && t.control_input.value.trim() === "") {
@@ -1803,23 +1759,23 @@ function kt(e) {
1803
1759
  }
1804
1760
  //#endregion
1805
1761
  //#region ../../node_modules/tom-select/dist/esm/plugins/virtual_scroll/plugin.js
1806
- var At = (e, t) => {
1762
+ var Nt = (e, t) => {
1807
1763
  if (Array.isArray(e)) e.forEach(t);
1808
1764
  else for (var n in e) e.hasOwnProperty(n) && t(e[n], n);
1809
- }, jt = (e, ...t) => {
1810
- var n = Mt(t);
1811
- e = Nt(e), e.map((e) => {
1765
+ }, Pt = (e, ...t) => {
1766
+ var n = Ft(t);
1767
+ e = It(e), e.map((e) => {
1812
1768
  n.map((t) => {
1813
1769
  e.classList.add(t);
1814
1770
  });
1815
1771
  });
1816
- }, Mt = (e) => {
1772
+ }, Ft = (e) => {
1817
1773
  var t = [];
1818
- return At(e, (e) => {
1774
+ return Nt(e, (e) => {
1819
1775
  typeof e == "string" && (e = e.trim().split(/[\t\n\f\r\s]/)), Array.isArray(e) && (t = t.concat(e));
1820
1776
  }), t.filter(Boolean);
1821
- }, Nt = (e) => (Array.isArray(e) || (e = [e]), e);
1822
- function Pt() {
1777
+ }, It = (e) => (Array.isArray(e) || (e = [e]), e);
1778
+ function Lt() {
1823
1779
  let e = this, t = e.canLoad, n = e.clearActiveOption, r = e.loadCallback;
1824
1780
  var i = {}, a, o = !1, s, c = [], l = !1, u, d = [], f = [];
1825
1781
  if (e.settings.shouldLoadMore || (e.settings.shouldLoadMore = () => {
@@ -1858,7 +1814,7 @@ function Pt() {
1858
1814
  }), e.hook("after", "refreshOptions", () => {
1859
1815
  let t = e.lastValue;
1860
1816
  var n;
1861
- p(t) ? (n = e.render("loading_more", { query: t }), n && (n.setAttribute("data-selectable", ""), s = n)) : t in i && !a.querySelector(".no-results") && (n = e.render("no_more_results", { query: t })), n && (jt(n, e.settings.optionClass), a.append(n));
1817
+ p(t) ? (n = e.render("loading_more", { query: t }), n && (n.setAttribute("data-selectable", ""), s = n)) : t in i && !a.querySelector(".no-results") && (n = e.render("no_more_results", { query: t })), n && (Pt(n, e.settings.optionClass), a.append(n));
1862
1818
  });
1863
1819
  let h = () => {
1864
1820
  l && (e.addOptions(d), e.clearOptions(m), u && (i[""] = u));
@@ -1874,42 +1830,46 @@ function Pt() {
1874
1830
  });
1875
1831
  });
1876
1832
  }
1877
- Y.define("change_listener", Ae), Y.define("checkbox_options", Ie), Y.define("clear_button", ze), Y.define("drag_drop", Je), Y.define("dropdown_header", Qe), Y.define("caret_position", it), Y.define("dropdown_input", ht), Y.define("input_autogrow", gt), Y.define("no_backspace_delete", _t), Y.define("no_active_items", vt), Y.define("optgroup_columns", Ct), Y.define("remove_button", Ot), Y.define("restore_on_backspace", kt), Y.define("virtual_scroll", Pt);
1878
- var Ft = Y, It = ".formie-field .ts-wrapper.formie-combobox{width:100%;min-height:0;box-shadow:none;background:0 0;border:0;padding:0;display:block;position:relative}.formie-field select[data-formie-combobox-input].tomselected,.formie-field select[data-formie-combobox-input].ts-hidden-accessible{display:none!important}.formie-field .ts-wrapper.formie-combobox .ts-control{box-sizing:border-box;z-index:1;border:var(--formie-border-width) solid var(--formie-color-border-control);border-radius:var(--formie-radius-sm);background-color:var(--formie-color-surface);width:100%;min-height:var(--formie-control-height);padding:calc(var(--formie-control-padding-y) - 1px) var(--formie-control-padding-x);box-shadow:none;font-size:var(--formie-control-font-size);line-height:var(--formie-line-height-tight);color:var(--formie-color-text);align-items:center;gap:var(--formie-space-1);background-image:none;flex-wrap:wrap;transition:border-color .15s,box-shadow .15s,background-color .15s;display:flex;position:relative;overflow:hidden}.formie-field .ts-wrapper.formie-combobox.single .ts-control{--ts-pr-min:var(--formie-control-padding-x);--ts-pr-caret:calc(var(--formie-select-indicator-size) + var(--formie-space-1));background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M7 7l3-3 3 3m0 6l-3 3-3-3' stroke='%239CA3AF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\");background-position:right var(--formie-space-2) center;background-repeat:no-repeat;background-size:var(--formie-select-indicator-size) var(--formie-select-indicator-size);padding-right:calc(var(--formie-control-padding-x) + var(--formie-select-indicator-size) + var(--formie-space-2))!important}.formie-field .ts-wrapper.formie-combobox.single .ts-control:after{display:none}.formie-field .ts-wrapper.formie-combobox.multi .ts-control{padding:calc(var(--formie-control-padding-y) - 2px) var(--formie-control-padding-x) calc(var(--formie-control-padding-y) - 4px);--ts-pr-min:var(--formie-control-padding-x)}.formie-field .ts-wrapper.formie-combobox.multi.has-items .ts-control{padding-left:var(--formie-control-padding-x)}.formie-field .ts-wrapper.formie-combobox .ts-control>input{min-width:7rem;max-width:100%;color:var(--formie-color-text);font:inherit;font-size:var(--formie-control-font-size);line-height:inherit;flex:auto;min-height:0!important;max-height:none!important;box-shadow:none!important;background:0 0!important;border:0!important;margin:0!important;padding:0!important}.formie-field .ts-wrapper.formie-combobox .ts-control>input:focus{outline:none!important}.formie-field .ts-wrapper.formie-combobox.has-items .ts-control>input{margin:0 var(--formie-space-1)!important}.formie-field .ts-wrapper.formie-combobox.input-hidden .ts-control>input{opacity:0;position:absolute;left:-10000px}.formie-field .ts-wrapper.formie-combobox.single .ts-control,.formie-field .ts-wrapper.formie-combobox.single .ts-control>input{cursor:pointer}.formie-field .ts-wrapper.formie-combobox.single.input-active .ts-control,.formie-field .ts-wrapper.formie-combobox.single.input-active .ts-control>input{cursor:text}.formie-field .ts-wrapper.formie-combobox .ts-control .items-placeholder{color:var(--formie-color-text-muted);font:inherit;font-size:var(--formie-control-font-size)}.formie-field .ts-wrapper.formie-combobox .ts-control>input::placeholder{color:var(--formie-color-text-muted)}.formie-field .ts-wrapper.formie-combobox.focus .ts-control,.formie-field .ts-wrapper.formie-combobox .ts-control:focus-within,.formie-field .ts-wrapper.formie-combobox.dropdown-active .ts-control{border-color:var(--formie-color-focus-ring);box-shadow:var(--formie-shadow-focus);border-radius:var(--formie-radius-sm);outline:0}.formie-field-has-error .ts-wrapper.formie-combobox .ts-control{border-color:var(--formie-color-danger)}.formie-field-has-error .ts-wrapper.formie-combobox.focus .ts-control,.formie-field-has-error .ts-wrapper.formie-combobox .ts-control:focus-within,.formie-field-has-error .ts-wrapper.formie-combobox.dropdown-active .ts-control{border-color:var(--formie-color-danger);box-shadow:var(--formie-shadow-danger-focus)}.formie-field .ts-wrapper.formie-combobox.multi .ts-control>.item,.formie-field .ts-wrapper.formie-combobox.multi .ts-control [data-value]{align-items:center;gap:var(--formie-space-1);margin:0 var(--formie-space-1) var(--formie-space-1) 0;padding:0 var(--formie-space-2);background:var(--formie-color-surface-muted,#0f172a0f);border:var(--formie-border-width) solid var(--formie-color-border);border-radius:var(--formie-radius-sm);box-shadow:none;color:var(--formie-color-text);text-shadow:none;line-height:calc(var(--formie-control-height) - var(--formie-space-3));background-image:none;display:inline-flex}.formie-field .ts-wrapper.formie-combobox.multi .ts-control>.item.active,.formie-field .ts-wrapper.formie-combobox.multi .ts-control [data-value].active{background:var(--formie-color-surface-muted,#0f172a0f);color:var(--formie-color-text)}.formie-field .ts-wrapper.formie-combobox.plugin-remove_button .item{align-items:center;gap:var(--formie-space-1);display:inline-flex}.formie-field .ts-wrapper.formie-combobox.plugin-remove_button:not(.rtl) .item{padding-right:var(--formie-space-2)!important}.formie-field .ts-wrapper.formie-combobox.plugin-remove_button .item .remove{box-shadow:none;color:var(--formie-color-text-muted);cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;margin:0;padding:0;font-size:1.125em;line-height:1;text-decoration:none;display:inline-flex}.formie-field .ts-wrapper.formie-combobox.plugin-remove_button .item .remove:hover,.formie-field .ts-wrapper.formie-combobox.plugin-remove_button .item .remove:focus{color:var(--formie-color-text);background:0 0;text-decoration:none}.formie-field .ts-wrapper.formie-combobox .ts-dropdown{width:100%;z-index:var(--formie-z-popover,30);border:var(--formie-border-width) solid var(--formie-color-border);border-radius:var(--formie-radius-sm);background:var(--formie-color-surface);box-shadow:var(--formie-shadow-popover,0 8px 24px #0f172a1f);margin-top:var(--formie-space-1);box-sizing:border-box;position:absolute;top:100%;left:0}.formie-field .ts-wrapper.formie-combobox .ts-dropdown-content{scroll-behavior:smooth;max-height:200px;overflow:hidden auto}.formie-field .ts-wrapper.formie-combobox .ts-dropdown .option,.formie-field .ts-wrapper.formie-combobox .ts-dropdown .optgroup-header,.formie-field .ts-wrapper.formie-combobox .ts-dropdown .no-results{color:var(--formie-color-text);padding:var(--formie-space-2) var(--formie-control-padding-x)}.formie-field .ts-wrapper.formie-combobox .ts-dropdown [data-selectable]{cursor:pointer}.formie-field .ts-wrapper.formie-combobox .ts-dropdown .option.active,.formie-field .ts-wrapper.formie-combobox .ts-dropdown .option:hover,.formie-field .ts-wrapper.formie-combobox .ts-dropdown .active{background:var(--formie-color-surface-muted,#0f172a0d);color:var(--formie-color-text)}.formie-field .ts-wrapper.formie-combobox .ts-dropdown .highlight{background:#3b82f62e;border-radius:2px}.formie-field .ts-wrapper.formie-combobox.disabled .ts-control{opacity:.6;background-color:var(--formie-color-surface-muted,#0f172a0a);cursor:not-allowed}", Lt = "select[data-formie-combobox-input]", Q = "combobox", $ = e("fields", "combobox");
1879
- n(Q, [It]);
1880
- var Rt = ["formie-select", "formie-dropdown-input"];
1881
- function zt(e) {
1833
+ q.define("change_listener", Pe), q.define("checkbox_options", Be), q.define("clear_button", Ue), q.define("drag_drop", Qe), q.define("dropdown_header", nt), q.define("caret_position", ct), q.define("dropdown_input", yt), q.define("input_autogrow", bt), q.define("no_backspace_delete", xt), q.define("no_active_items", St), q.define("optgroup_columns", Dt), q.define("remove_button", jt), q.define("restore_on_backspace", Mt), q.define("virtual_scroll", Lt);
1834
+ var Rt = q, zt = ".formie-field .ts-wrapper.formie-combobox{width:100%;min-height:0;box-shadow:none;background:0 0;border:0;padding:0;display:block;position:relative}.formie-field select[data-formie-combobox-input].tomselected,.formie-field select[data-formie-combobox-input].ts-hidden-accessible{display:none!important}.formie-field .ts-wrapper.formie-combobox .ts-control{box-sizing:border-box;z-index:1;border:var(--formie-border-width) solid var(--formie-color-border-control);border-radius:var(--formie-radius-sm);background-color:var(--formie-color-surface);width:100%;min-height:var(--formie-control-height);padding:calc(var(--formie-control-padding-y) - 1px) var(--formie-control-padding-x);box-shadow:none;font-size:var(--formie-control-font-size);line-height:var(--formie-line-height-tight);color:var(--formie-color-text);align-items:center;gap:var(--formie-space-1);background-image:none;flex-wrap:wrap;transition:border-color .15s,box-shadow .15s,background-color .15s;display:flex;position:relative;overflow:hidden}.formie-field .ts-wrapper.formie-combobox.single .ts-control{--ts-pr-min:var(--formie-control-padding-x);--ts-pr-caret:calc(var(--formie-select-indicator-size) + var(--formie-space-1));background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M7 7l3-3 3 3m0 6l-3 3-3-3' stroke='%239CA3AF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\");background-position:right var(--formie-space-2) center;background-repeat:no-repeat;background-size:var(--formie-select-indicator-size) var(--formie-select-indicator-size);padding-right:calc(var(--formie-control-padding-x) + var(--formie-select-indicator-size) + var(--formie-space-2))!important}.formie-field .ts-wrapper.formie-combobox.single .ts-control:after{display:none}.formie-field .ts-wrapper.formie-combobox.multi .ts-control{padding:calc(var(--formie-control-padding-y) - 2px) var(--formie-control-padding-x) calc(var(--formie-control-padding-y) - 4px);--ts-pr-min:var(--formie-control-padding-x)}.formie-field .ts-wrapper.formie-combobox.multi.has-items .ts-control{padding-left:var(--formie-control-padding-x)}.formie-field .ts-wrapper.formie-combobox .ts-control>input{min-width:7rem;max-width:100%;color:var(--formie-color-text);font:inherit;font-size:var(--formie-control-font-size);line-height:inherit;flex:auto;min-height:0!important;max-height:none!important;box-shadow:none!important;background:0 0!important;border:0!important;margin:0!important;padding:0!important}.formie-field .ts-wrapper.formie-combobox .ts-control>input:focus{outline:none!important}.formie-field .ts-wrapper.formie-combobox.has-items .ts-control>input{margin:0 var(--formie-space-1)!important}.formie-field .ts-wrapper.formie-combobox.input-hidden .ts-control>input{opacity:0;position:absolute;left:-10000px}.formie-field .ts-wrapper.formie-combobox.single .ts-control,.formie-field .ts-wrapper.formie-combobox.single .ts-control>input{cursor:pointer}.formie-field .ts-wrapper.formie-combobox.single.input-active .ts-control,.formie-field .ts-wrapper.formie-combobox.single.input-active .ts-control>input{cursor:text}.formie-field .ts-wrapper.formie-combobox .ts-control .items-placeholder{color:var(--formie-color-text-muted);font:inherit;font-size:var(--formie-control-font-size)}.formie-field .ts-wrapper.formie-combobox .ts-control>input::placeholder{color:var(--formie-color-text-muted)}.formie-field .ts-wrapper.formie-combobox.focus .ts-control,.formie-field .ts-wrapper.formie-combobox .ts-control:focus-within,.formie-field .ts-wrapper.formie-combobox.dropdown-active .ts-control{border-color:var(--formie-color-focus-ring);box-shadow:var(--formie-shadow-focus);border-radius:var(--formie-radius-sm);outline:0}.formie-field-has-error .ts-wrapper.formie-combobox .ts-control{border-color:var(--formie-color-danger)}.formie-field-has-error .ts-wrapper.formie-combobox.focus .ts-control,.formie-field-has-error .ts-wrapper.formie-combobox .ts-control:focus-within,.formie-field-has-error .ts-wrapper.formie-combobox.dropdown-active .ts-control{border-color:var(--formie-color-danger);box-shadow:var(--formie-shadow-danger-focus)}.formie-field .ts-wrapper.formie-combobox.multi .ts-control>.item,.formie-field .ts-wrapper.formie-combobox.multi .ts-control [data-value]{align-items:center;gap:var(--formie-space-1);margin:0 var(--formie-space-1) var(--formie-space-1) 0;padding:0 var(--formie-space-2);background:var(--formie-color-surface-muted,#0f172a0f);border:var(--formie-border-width) solid var(--formie-color-border);border-radius:var(--formie-radius-sm);box-shadow:none;color:var(--formie-color-text);text-shadow:none;line-height:calc(var(--formie-control-height) - var(--formie-space-3));background-image:none;display:inline-flex}.formie-field .ts-wrapper.formie-combobox.multi .ts-control>.item.active,.formie-field .ts-wrapper.formie-combobox.multi .ts-control [data-value].active{background:var(--formie-color-surface-muted,#0f172a0f);color:var(--formie-color-text)}.formie-field .ts-wrapper.formie-combobox.plugin-remove_button .item{align-items:center;gap:var(--formie-space-1);display:inline-flex}.formie-field .ts-wrapper.formie-combobox.plugin-remove_button:not(.rtl) .item{padding-right:var(--formie-space-2)!important}.formie-field .ts-wrapper.formie-combobox.plugin-remove_button .item .remove{box-shadow:none;color:var(--formie-color-text-muted);cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;margin:0;padding:0;font-size:1.125em;line-height:1;text-decoration:none;display:inline-flex}.formie-field .ts-wrapper.formie-combobox.plugin-remove_button .item .remove:hover,.formie-field .ts-wrapper.formie-combobox.plugin-remove_button .item .remove:focus{color:var(--formie-color-text);background:0 0;text-decoration:none}.formie-field .ts-wrapper.formie-combobox .ts-dropdown{width:100%;z-index:var(--formie-z-popover,30);border:var(--formie-border-width) solid var(--formie-color-border);border-radius:var(--formie-radius-sm);background:var(--formie-color-surface);box-shadow:var(--formie-shadow-popover,0 8px 24px #0f172a1f);margin-top:var(--formie-space-1);box-sizing:border-box;position:absolute;top:100%;left:0}.formie-field .ts-wrapper.formie-combobox .ts-dropdown-content{scroll-behavior:smooth;max-height:200px;overflow:hidden auto}.formie-field .ts-wrapper.formie-combobox .ts-dropdown .option,.formie-field .ts-wrapper.formie-combobox .ts-dropdown .optgroup-header,.formie-field .ts-wrapper.formie-combobox .ts-dropdown .no-results{color:var(--formie-color-text);padding:var(--formie-space-2) var(--formie-control-padding-x)}.formie-field .ts-wrapper.formie-combobox .ts-dropdown [data-selectable]{cursor:pointer}.formie-field .ts-wrapper.formie-combobox .ts-dropdown .option.active,.formie-field .ts-wrapper.formie-combobox .ts-dropdown .option:hover,.formie-field .ts-wrapper.formie-combobox .ts-dropdown .active{background:var(--formie-color-surface-muted,#0f172a0d);color:var(--formie-color-text)}.formie-field .ts-wrapper.formie-combobox .ts-dropdown .highlight{background:#3b82f62e;border-radius:2px}.formie-field .ts-wrapper.formie-combobox.disabled .ts-control{opacity:.6;background-color:var(--formie-color-surface-muted,#0f172a0a);cursor:not-allowed}", Bt = "select[data-formie-combobox-input]", Z = "combobox", Q = e("fields", "combobox");
1835
+ i(Z, [zt]);
1836
+ var Vt = ["formie-select", "formie-dropdown-input"];
1837
+ function Ht(e) {
1882
1838
  let n = [];
1883
- return [...Rt, ...t(e, "fieldControlError")].forEach((t) => {
1839
+ return [...Vt, ...t(e, "fieldControlError")].forEach((t) => {
1884
1840
  e.classList.contains(t) && (e.classList.remove(t), n.push(t));
1885
1841
  }), n;
1886
1842
  }
1887
- function Bt(e, t) {
1843
+ function Ut(e, t) {
1888
1844
  t.forEach((t) => {
1889
1845
  e.classList.add(t);
1890
1846
  });
1891
1847
  }
1892
- function Vt(e, n) {
1893
- [...Rt, ...t(n, "fieldControlError")].forEach((t) => {
1848
+ function Wt(e, n) {
1849
+ [...Vt, ...t(n, "fieldControlError")].forEach((t) => {
1894
1850
  e.classList.remove(t);
1895
1851
  });
1896
1852
  }
1897
- function Ht(e, t) {
1853
+ function Gt(e, t) {
1898
1854
  return t?.trim() || e.querySelector("option[value=\"\"]")?.textContent?.trim() || null;
1899
1855
  }
1900
- function Ut(e) {
1856
+ function Kt(e) {
1901
1857
  e.options[""] && e.removeOption("", !0);
1902
1858
  }
1903
- function Wt(e, t = {}) {
1859
+ function $(e, t = {}) {
1904
1860
  e._formieTomSelect?.destroy();
1905
- let n = Array.from(e.selectedOptions, (e) => e.value).filter(Boolean), r = e.form, a = t.multiple === !0, o = zt(e), s = Ht(e, t.placeholder), c = {
1861
+ let i = Array.from(e.selectedOptions, (e) => e.value).filter(Boolean), a = e.form, s = t.multiple === !0, c = Ht(e), l = Gt(e, t.placeholder), u = {
1906
1862
  create: !1,
1907
- maxItems: a ? null : 1,
1908
- plugins: a ? ["remove_button"] : [],
1909
- hideSelected: a ? !0 : null,
1910
- clearAfterSelect: a,
1911
- closeAfterSelect: !a,
1912
- allowEmptyOption: !a,
1863
+ maxOptions: t.maxOptions === void 0 ? 100 : t.maxOptions,
1864
+ maxItems: s ? null : 1,
1865
+ plugins: s ? ["remove_button"] : t.allowClear ? { remove_button: { html: () => {
1866
+ let e = document.createElement("button");
1867
+ return e.type = "button", e.className = "remove", e.title = r("Clear selection"), e.setAttribute("aria-label", e.title), e.textContent = "×", e;
1868
+ } } } : [],
1869
+ hideSelected: s ? !0 : null,
1870
+ clearAfterSelect: s,
1871
+ closeAfterSelect: !s,
1872
+ allowEmptyOption: !s,
1913
1873
  openOnFocus: !0,
1914
1874
  diacritics: !0,
1915
1875
  copyClassesToDropdown: !1,
@@ -1918,29 +1878,29 @@ function Wt(e, t = {}) {
1918
1878
  e.dispatchEvent(new Event("input", { bubbles: !0 })), e.dispatchEvent(new Event("change", { bubbles: !0 }));
1919
1879
  }
1920
1880
  };
1921
- s && (c.placeholder = s), i(e, Q, "before-init", {
1881
+ l && (u.placeholder = l), o(e, Z, "before-init", {
1922
1882
  select: e,
1923
- options: c
1883
+ options: u
1924
1884
  });
1925
- let l = new Ft(e, c);
1926
- Ut(l), Vt(l.wrapper, e), l.dropdown && Vt(l.dropdown, e), e.style.display = "none", e._formieTomSelect = l;
1927
- let u = (e) => {
1885
+ let d = new Rt(e, u);
1886
+ d.control_input.setAttribute(n, ""), Kt(d), Wt(d.wrapper, e), d.dropdown && Wt(d.dropdown, e), e.style.display = "none", e._formieTomSelect = d;
1887
+ let f = (e) => {
1928
1888
  queueMicrotask(() => {
1929
- e.defaultPrevented || l.setValue(n);
1889
+ e.defaultPrevented || d.setValue(i);
1930
1890
  });
1931
1891
  };
1932
- return r?.addEventListener("reset", u), $.log("Initialized.", {
1892
+ return a?.addEventListener("reset", f), Q.log("Initialized.", {
1933
1893
  inputName: e.name,
1934
- multiple: a
1935
- }), i(e, Q, "after-init", {
1936
- combobox: l,
1937
- options: c
1894
+ multiple: s
1895
+ }), o(e, Z, "after-init", {
1896
+ combobox: d,
1897
+ options: u
1938
1898
  }), () => {
1939
- r?.removeEventListener("reset", u), l.destroy(), e.style.removeProperty("display"), Bt(e, o), delete e._formieTomSelect, $.log("Destroyed.", { inputName: e.name });
1899
+ a?.removeEventListener("reset", f), d.destroy(), e.style.removeProperty("display"), Ut(e, c), delete e._formieTomSelect, Q.log("Destroyed.", { inputName: e.name });
1940
1900
  };
1941
1901
  }
1942
- var Gt = {
1943
- moduleId: `formie:${Q}`,
1902
+ var qt = {
1903
+ moduleId: `formie:${Z}`,
1944
1904
  version: 2,
1945
1905
  surfaces: [
1946
1906
  "server-rendered",
@@ -1948,18 +1908,18 @@ var Gt = {
1948
1908
  "cp-edit"
1949
1909
  ],
1950
1910
  kind: "field",
1951
- match: (e) => !!e.target.querySelector(Lt),
1911
+ match: (e) => !!e.target.querySelector(Bt),
1952
1912
  setup: async (e) => {
1953
- let t = e.options || {}, n = r(e), i = n.map((e) => {
1954
- let n = e.querySelector(Lt);
1955
- return n instanceof HTMLSelectElement ? Wt(n, t) : ($.warn("Field missing combobox select; skipping."), () => {});
1913
+ let t = e.options || {}, n = a(e), r = n.map((e) => {
1914
+ let n = e.querySelector(Bt);
1915
+ return n instanceof HTMLSelectElement ? $(n, t) : (Q.warn("Field missing combobox select; skipping."), () => {});
1956
1916
  });
1957
- return $.log("Module setup.", { fieldCount: n.length }), await e.emit("formie:module:combobox:init", { count: i.length }), { destroy: () => {
1958
- i.forEach((e) => {
1917
+ return Q.log("Module setup.", { fieldCount: n.length }), await e.emit("formie:module:combobox:init", { count: r.length }), { destroy: () => {
1918
+ r.forEach((e) => {
1959
1919
  e();
1960
- }), $.log("Module destroy.", { fieldCount: n.length }), e.emit("formie:module:combobox:destroy", {});
1920
+ }), Q.log("Module destroy.", { fieldCount: n.length }), e.emit("formie:module:combobox:destroy", {});
1961
1921
  } };
1962
1922
  }
1963
1923
  };
1964
1924
  //#endregion
1965
- export { Gt as comboboxModule, Wt as initFormieCombobox };
1925
+ export { qt as comboboxModule, $ as initFormieCombobox };