@ozdao/prometheus-framework 0.2.87 → 0.2.88

Sign up to get free protection for your applications and to get access to all the features.
Files changed (199) hide show
  1. package/dist/auth.server.js +0 -16
  2. package/dist/auth.server.mjs +0 -16
  3. package/dist/community.server.js +0 -24
  4. package/dist/community.server.mjs +0 -24
  5. package/dist/events.server.js +0 -16
  6. package/dist/events.server.mjs +0 -16
  7. package/dist/files.server.js +0 -8
  8. package/dist/files.server.mjs +0 -8
  9. package/dist/gallery.server.js +0 -8
  10. package/dist/gallery.server.mjs +0 -8
  11. package/dist/main-Bw0PvTs-.mjs +13616 -0
  12. package/dist/main-D8gNZLSa.js +92 -0
  13. package/dist/main.css +1 -1
  14. package/dist/node_modules/@adraffy/ens-normalize/dist/index.cjs +1 -1
  15. package/dist/node_modules/@adraffy/ens-normalize/dist/index.js +180 -180
  16. package/dist/node_modules/@googlemaps/js-api-loader/dist/index.cjs +1 -1
  17. package/dist/node_modules/@googlemaps/js-api-loader/dist/index.js +5 -5
  18. package/dist/node_modules/@noble/hashes/esm/_u64.cjs +1 -1
  19. package/dist/node_modules/@noble/hashes/esm/_u64.js +16 -61
  20. package/dist/node_modules/ethereum-cryptography/esm/pbkdf2.cjs +1 -1
  21. package/dist/node_modules/ethereum-cryptography/esm/pbkdf2.js +9 -10
  22. package/dist/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.cjs +1 -1
  23. package/dist/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js +1 -1
  24. package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.cjs +3 -3
  25. package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.js +9 -9
  26. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.cjs +1 -1
  27. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.js +33 -33
  28. package/dist/node_modules/web3-eth-abi/lib/esm/utils.cjs +1 -1
  29. package/dist/node_modules/web3-eth-abi/lib/esm/utils.js +24 -24
  30. package/dist/node_modules/web3-eth-accounts/lib/esm/common/utils.cjs +1 -1
  31. package/dist/node_modules/web3-eth-accounts/lib/esm/common/utils.js +30 -30
  32. package/dist/node_modules/web3-validator/lib/esm/validation/string.cjs +1 -1
  33. package/dist/node_modules/web3-validator/lib/esm/validation/string.js +9 -9
  34. package/dist/organizations.server.js +0 -32
  35. package/dist/organizations.server.mjs +0 -32
  36. package/dist/products.server.js +0 -20
  37. package/dist/products.server.mjs +0 -20
  38. package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs +1 -1
  39. package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +3046 -2899
  40. package/dist/prometheus-framework/node_modules/axios/lib/axios.cjs +1 -1
  41. package/dist/prometheus-framework/node_modules/axios/lib/axios.js +1 -2
  42. package/dist/prometheus-framework/node_modules/axios/lib/cancel/CancelToken.cjs +1 -1
  43. package/dist/prometheus-framework/node_modules/axios/lib/cancel/CancelToken.js +1 -2
  44. package/dist/prometheus-framework/node_modules/axios/lib/core/Axios.cjs +1 -1
  45. package/dist/prometheus-framework/node_modules/axios/lib/core/Axios.js +18 -19
  46. package/dist/prometheus-framework/node_modules/axios/lib/core/AxiosHeaders.cjs +2 -2
  47. package/dist/prometheus-framework/node_modules/axios/lib/core/AxiosHeaders.js +66 -67
  48. package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.cjs +1 -1
  49. package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.js +38 -39
  50. package/dist/prometheus-framework/node_modules/axios/lib/helpers/HttpStatusCode.cjs +1 -1
  51. package/dist/prometheus-framework/node_modules/axios/lib/helpers/HttpStatusCode.js +1 -2
  52. package/dist/prometheus-framework/node_modules/date-fns/eachDayOfInterval.cjs +1 -1
  53. package/dist/prometheus-framework/node_modules/date-fns/eachDayOfInterval.js +13 -16
  54. package/dist/prometheus-framework/node_modules/date-fns/eachQuarterOfInterval.cjs +1 -1
  55. package/dist/prometheus-framework/node_modules/date-fns/eachQuarterOfInterval.js +13 -16
  56. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/ParseError.cjs +1 -1
  57. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/ParseError.js +45 -51
  58. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/PhoneNumber.cjs +1 -1
  59. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/PhoneNumber.js +56 -56
  60. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/format.cjs +2 -2
  61. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/format.js +14 -14
  62. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.cjs +1 -1
  63. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js +8 -16
  64. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.cjs +1 -1
  65. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +4 -6
  66. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.cjs +1 -1
  67. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +5 -9
  68. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.cjs +2 -2
  69. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js +4 -4
  70. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getNumberType.cjs +2 -2
  71. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +35 -35
  72. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/metadata.cjs +1 -1
  73. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/metadata.js +13 -13
  74. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.cjs +2 -2
  75. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +9 -16
  76. package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.cjs +1 -1
  77. package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.js +1 -1
  78. package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
  79. package/dist/prometheus-framework/src/components/Block/Block.vue.js +1 -1
  80. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +1 -73
  82. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  83. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +73 -1
  84. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/components/Select/Select.vue.js +1 -103
  86. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  87. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +103 -1
  88. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
  89. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +45 -1
  90. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
  91. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -45
  92. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +29 -29
  94. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +31 -31
  96. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +2 -2
  98. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  99. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +15 -14
  100. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  101. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
  102. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  103. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  104. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  105. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
  106. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -5
  107. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +0 -66
  108. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +5 -1
  109. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +66 -0
  110. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  111. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  112. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  113. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  114. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  115. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  116. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  117. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +10 -10
  118. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  119. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +15 -15
  120. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +2 -2
  121. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +6 -5
  122. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +3 -3
  124. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  126. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
  128. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  130. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  131. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  132. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +1 -13
  134. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +13 -1
  136. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +20 -20
  138. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
  140. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +19 -19
  142. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  143. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
  144. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +1 -1
  146. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
  147. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  148. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  149. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +2 -2
  150. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
  152. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +4 -4
  154. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +11 -11
  156. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  158. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  159. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  160. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  161. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +20 -20
  162. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  163. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  164. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  165. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  166. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  167. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  168. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  169. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
  170. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  171. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +3 -3
  172. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  173. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
  174. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  175. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
  176. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  177. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +1 -1
  178. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  179. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  180. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  181. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  182. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  183. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +3 -3
  184. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.cjs +1 -1
  185. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.js +1 -1
  186. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  187. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +3 -3
  188. package/dist/prometheus-framework.cjs.js +1 -1
  189. package/dist/prometheus-framework.es.js +1 -1
  190. package/dist/reports.server.js +0 -8
  191. package/dist/reports.server.mjs +0 -8
  192. package/dist/style.css +1 -1
  193. package/dist/users.server.js +0 -8
  194. package/dist/users.server.mjs +0 -8
  195. package/dist/wallet.server.js +0 -4
  196. package/dist/wallet.server.mjs +0 -4
  197. package/dist/web-CciQvENI.js +1 -0
  198. package/dist/web-nVxTNRH4.mjs +54 -0
  199. package/package.json +1 -1
@@ -5,11 +5,11 @@ function UA(A) {
5
5
  function t() {
6
6
  return A[e++] << 8 | A[e++];
7
7
  }
8
- let l = t(), n = 1, r = [0, 1];
9
- for (let D = 1; D < l; D++)
10
- r.push(n += t());
11
- let o = t(), w = e;
12
- e += o;
8
+ let n = t(), l = 1, o = [0, 1];
9
+ for (let D = 1; D < n; D++)
10
+ o.push(l += t());
11
+ let r = t(), w = e;
12
+ e += r;
13
13
  let B = 0, Q = 0;
14
14
  function C() {
15
15
  return B == 0 && (Q = Q << 8 | A[e++], B = 8), Q >> --B & 1;
@@ -20,22 +20,22 @@ function UA(A) {
20
20
  E = E << 1 | C();
21
21
  let M = [], R = 0, S = c;
22
22
  for (; ; ) {
23
- let D = Math.floor(((E - R + 1) * n - 1) / S), p = 0, b = l;
23
+ let D = Math.floor(((E - R + 1) * l - 1) / S), p = 0, b = n;
24
24
  for (; b - p > 1; ) {
25
25
  let T = p + b >>> 1;
26
- D < r[T] ? b = T : p = T;
26
+ D < o[T] ? b = T : p = T;
27
27
  }
28
28
  if (p == 0)
29
29
  break;
30
30
  M.push(p);
31
- let u = R + Math.floor(S * r[p] / n), h = R + Math.floor(S * r[p + 1] / n) - 1;
31
+ let u = R + Math.floor(S * o[p] / l), h = R + Math.floor(S * o[p + 1] / l) - 1;
32
32
  for (; !((u ^ h) & i); )
33
33
  E = E << 1 & f | C(), u = u << 1 & f, h = h << 1 & f | 1;
34
34
  for (; u & ~h & g; )
35
35
  E = E & i | E << 1 & f >>> 1 | C(), u = u << 1 ^ i, h = (h ^ i) << 1 | i | 1;
36
36
  R = u, S = 1 + h - u;
37
37
  }
38
- let P = l - 4;
38
+ let P = n - 4;
39
39
  return M.map((D) => {
40
40
  switch (D - P) {
41
41
  case 3:
@@ -53,36 +53,36 @@ function NA(A) {
53
53
  let e = 0;
54
54
  return () => A[e++];
55
55
  }
56
- function oA(A) {
56
+ function rA(A) {
57
57
  return NA(UA(kA(A)));
58
58
  }
59
59
  function kA(A) {
60
60
  let e = [];
61
- [..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((n, r) => e[n.charCodeAt(0)] = r);
62
- let t = A.length, l = new Uint8Array(6 * t >> 3);
63
- for (let n = 0, r = 0, o = 0, w = 0; n < t; n++)
64
- w = w << 6 | e[A.charCodeAt(n)], o += 6, o >= 8 && (l[r++] = w >> (o -= 8));
65
- return l;
61
+ [..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((l, o) => e[l.charCodeAt(0)] = o);
62
+ let t = A.length, n = new Uint8Array(6 * t >> 3);
63
+ for (let l = 0, o = 0, r = 0, w = 0; l < t; l++)
64
+ w = w << 6 | e[A.charCodeAt(l)], r += 6, r >= 8 && (n[o++] = w >> (r -= 8));
65
+ return n;
66
66
  }
67
67
  function FA(A) {
68
68
  return A & 1 ? ~A >> 1 : A >> 1;
69
69
  }
70
70
  function JA(A, e) {
71
71
  let t = Array(A);
72
- for (let l = 0, n = 0; l < A; l++)
73
- t[l] = n += FA(e());
72
+ for (let n = 0, l = 0; n < A; n++)
73
+ t[n] = l += FA(e());
74
74
  return t;
75
75
  }
76
76
  function H(A, e = 0) {
77
77
  let t = [];
78
78
  for (; ; ) {
79
- let l = A(), n = A();
80
- if (!n)
79
+ let n = A(), l = A();
80
+ if (!l)
81
81
  break;
82
- e += l;
83
- for (let r = 0; r < n; r++)
84
- t.push(e + r);
85
- e += n + 1;
82
+ e += n;
83
+ for (let o = 0; o < l; o++)
84
+ t.push(e + o);
85
+ e += l + 1;
86
86
  }
87
87
  return t;
88
88
  }
@@ -120,42 +120,42 @@ function O(A) {
120
120
  return e;
121
121
  }
122
122
  function sA(A, e, t) {
123
- let l = Array(A).fill().map(() => []);
124
- for (let n = 0; n < e; n++)
125
- JA(A, t).forEach((r, o) => l[o].push(r));
126
- return l;
123
+ let n = Array(A).fill().map(() => []);
124
+ for (let l = 0; l < e; l++)
125
+ JA(A, t).forEach((o, r) => n[r].push(o));
126
+ return n;
127
127
  }
128
128
  function HA(A, e) {
129
- let t = 1 + e(), l = e(), n = O(e);
130
- return sA(n.length, 1 + A, e).flatMap((o, w) => {
131
- let [B, ...Q] = o;
132
- return Array(n[w]).fill().map((C, s) => {
133
- let c = s * l;
129
+ let t = 1 + e(), n = e(), l = O(e);
130
+ return sA(l.length, 1 + A, e).flatMap((r, w) => {
131
+ let [B, ...Q] = r;
132
+ return Array(l[w]).fill().map((C, s) => {
133
+ let c = s * n;
134
134
  return [B + s * t, Q.map((i) => i + c)];
135
135
  });
136
136
  });
137
137
  }
138
138
  function OA(A, e) {
139
139
  let t = 1 + e();
140
- return sA(t, 1 + A, e).map((n) => [n[0], n.slice(1)]);
140
+ return sA(t, 1 + A, e).map((l) => [l[0], l.slice(1)]);
141
141
  }
142
142
  function GA(A) {
143
143
  let e = [], t = H(A);
144
- return n(l([]), []), e;
145
- function l(r) {
146
- let o = A(), w = O(() => {
144
+ return l(n([]), []), e;
145
+ function n(o) {
146
+ let r = A(), w = O(() => {
147
147
  let B = H(A).map((Q) => t[Q]);
148
148
  if (B.length)
149
- return l(B);
149
+ return n(B);
150
150
  });
151
- return { S: o, B: w, Q: r };
151
+ return { S: r, B: w, Q: o };
152
152
  }
153
- function n({ S: r, B: o }, w, B) {
154
- if (!(r & 4 && B === w[w.length - 1])) {
155
- r & 2 && (B = w[w.length - 1]), r & 1 && e.push(w);
156
- for (let Q of o)
153
+ function l({ S: o, B: r }, w, B) {
154
+ if (!(o & 4 && B === w[w.length - 1])) {
155
+ o & 2 && (B = w[w.length - 1]), o & 1 && e.push(w);
156
+ for (let Q of r)
157
157
  for (let C of Q.Q)
158
- n(Q, [...w, C], B);
158
+ l(Q, [...w, C], B);
159
159
  }
160
160
  }
161
161
  }
@@ -167,9 +167,9 @@ function cA(A) {
167
167
  }
168
168
  function SA(A) {
169
169
  let e = [];
170
- for (let t = 0, l = A.length; t < l; ) {
171
- let n = A.codePointAt(t);
172
- t += n < 65536 ? 1 : 2, e.push(n);
170
+ for (let t = 0, n = A.length; t < n; ) {
171
+ let l = A.codePointAt(t);
172
+ t += l < 65536 ? 1 : 2, e.push(l);
173
173
  }
174
174
  return e;
175
175
  }
@@ -177,16 +177,16 @@ function N(A) {
177
177
  let t = A.length;
178
178
  if (t < 4096)
179
179
  return String.fromCodePoint(...A);
180
- let l = [];
181
- for (let n = 0; n < t; )
182
- l.push(String.fromCodePoint(...A.slice(n, n += 4096)));
183
- return l.join("");
180
+ let n = [];
181
+ for (let l = 0; l < t; )
182
+ n.push(String.fromCodePoint(...A.slice(l, l += 4096)));
183
+ return n.join("");
184
184
  }
185
185
  function PA(A, e) {
186
- let t = A.length, l = t - e.length;
187
- for (let n = 0; l == 0 && n < t; n++)
188
- l = A[n] - e[n];
189
- return l;
186
+ let t = A.length, n = t - e.length;
187
+ for (let l = 0; n == 0 && l < t; l++)
188
+ n = A[l] - e[l];
189
+ return n;
190
190
  }
191
191
  var VA = "AEUDTAHBCFQATQDRADAAcgAgADQAFAAsABQAHwAOACQADQARAAoAFwAHABIACAAPAAUACwAFAAwABAAQAAMABwAEAAoABQAIAAIACgABAAQAFAALAAIACwABAAIAAQAHAAMAAwAEAAsADAAMAAwACgANAA0AAwAKAAkABAAdAAYAZwDSAdsDJgC0CkMB8xhZAqfoC190UGcThgBurwf7PT09Pb09AjgJum8OjDllxHYUKXAPxzq6tABAxgK8ysUvWAgMPT09PT09PSs6LT2HcgWXWwF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nofg/k7lpFpt4SqZc5HGg1HCOrHvOdC8bP6FGDbE/VV0mX4IakzbdS/op+Kt3G24/8QbBV7y86sGSQ/vZzU8FXs7u6jIvwchsEP2BpIhW3G8uWNwa3HmjfH/ZjhhCWvluAcF+nMf14ClKg5hGgtPLJ98ueNAkc5Hs2WZlk2QHvfreCK1CCGO6nMZVSb99VM/ajr8WHTte9JSmkXq/i/U943HEbdzW6Re/S88dKgg8pGOLlAeNiqrcLkUR3/aClFpMXcOUP3rmETcWSfMXZE3TUOi8i+fqRnTYLflVx/Vb/6GJ7eIRZUA6k3RYR3iFSK9c4iDdNwJuZL2FKz/IK5VimcNWEqdXjSoxSgmF0UPlDoUlNrPcM7ftmA8Y9gKiqKEHuWN+AZRIwtVSxye2Kf8rM3lhJ5XcBXU9n4v0Oy1RU2M+4qM8AQPVwse8ErNSob5oFPWxuqZnVzo1qB/IBxkM3EVUKFUUlO3e51259GgNcJbCmlvrdjtoTW7rChm1wyCKzpCTwozUUEOIcWLneRLgMXh+SjGSFkAllzbGS5HK7LlfCMRNRDSvbQPjcXaenNYxCvu2Qyznz6StuxVj66SgI0T8B6/sfHAJYZaZ78thjOSIFumNWLQbeZixDCCC+v0YBtkxiBB3jefHqZ/dFHU+crbj6OvS1x/JDD7vlm7zOVPwpUC01nhxZuY/63E7g";
192
192
  const G = 44032, L = 4352, K = 4449, x = 4519, BA = 19, iA = 21, k = 28, z = iA * k, LA = BA * z, KA = G + LA, xA = L + BA, zA = K + iA, YA = x + k;
@@ -198,12 +198,12 @@ function QA(A) {
198
198
  }
199
199
  let X, nA, v, V;
200
200
  function ZA() {
201
- let A = oA(VA);
202
- X = new Map(wA(A).flatMap((e, t) => e.map((l) => [l, t + 1 << 24]))), nA = new Set(H(A)), v = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map();
201
+ let A = rA(VA);
202
+ X = new Map(wA(A).flatMap((e, t) => e.map((n) => [n, t + 1 << 24]))), nA = new Set(H(A)), v = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map();
203
203
  for (let [e, t] of CA(A)) {
204
204
  if (!nA.has(e) && t.length == 2) {
205
- let [l, n] = t, r = V.get(l);
206
- r || (r = /* @__PURE__ */ new Map(), V.set(l, r)), r.set(n, e);
205
+ let [n, l] = t, o = V.get(n);
206
+ o || (o = /* @__PURE__ */ new Map(), V.set(n, o)), o.set(l, e);
207
207
  }
208
208
  v.set(e, t.reverse());
209
209
  }
@@ -223,59 +223,59 @@ function bA(A, e) {
223
223
  }
224
224
  function EA(A) {
225
225
  X || ZA();
226
- let e = [], t = [], l = !1;
227
- function n(r) {
228
- let o = X.get(r);
229
- o && (l = !0, r |= o), e.push(r);
226
+ let e = [], t = [], n = !1;
227
+ function l(o) {
228
+ let r = X.get(o);
229
+ r && (n = !0, o |= r), e.push(o);
230
230
  }
231
- for (let r of A)
231
+ for (let o of A)
232
232
  for (; ; ) {
233
- if (r < 128)
234
- e.push(r);
235
- else if (fA(r)) {
236
- let o = r - G, w = o / z | 0, B = o % z / k | 0, Q = o % k;
237
- n(L + w), n(K + B), Q > 0 && n(x + Q);
233
+ if (o < 128)
234
+ e.push(o);
235
+ else if (fA(o)) {
236
+ let r = o - G, w = r / z | 0, B = r % z / k | 0, Q = r % k;
237
+ l(L + w), l(K + B), Q > 0 && l(x + Q);
238
238
  } else {
239
- let o = v.get(r);
240
- o ? t.push(...o) : n(r);
239
+ let r = v.get(o);
240
+ r ? t.push(...r) : l(o);
241
241
  }
242
242
  if (!t.length)
243
243
  break;
244
- r = t.pop();
244
+ o = t.pop();
245
245
  }
246
- if (l && e.length > 1) {
247
- let r = F(e[0]);
248
- for (let o = 1; o < e.length; o++) {
249
- let w = F(e[o]);
250
- if (w == 0 || r <= w) {
251
- r = w;
246
+ if (n && e.length > 1) {
247
+ let o = F(e[0]);
248
+ for (let r = 1; r < e.length; r++) {
249
+ let w = F(e[r]);
250
+ if (w == 0 || o <= w) {
251
+ o = w;
252
252
  continue;
253
253
  }
254
- let B = o - 1;
254
+ let B = r - 1;
255
255
  for (; ; ) {
256
256
  let Q = e[B + 1];
257
- if (e[B + 1] = e[B], e[B] = Q, !B || (r = F(e[--B]), r <= w))
257
+ if (e[B + 1] = e[B], e[B] = Q, !B || (o = F(e[--B]), o <= w))
258
258
  break;
259
259
  }
260
- r = F(e[o]);
260
+ o = F(e[r]);
261
261
  }
262
262
  }
263
263
  return e;
264
264
  }
265
265
  function TA(A) {
266
- let e = [], t = [], l = -1, n = 0;
267
- for (let r of A) {
268
- let o = F(r), w = QA(r);
269
- if (l == -1)
270
- o == 0 ? l = w : e.push(w);
271
- else if (n > 0 && n >= o)
272
- o == 0 ? (e.push(l, ...t), t.length = 0, l = w) : t.push(w), n = o;
266
+ let e = [], t = [], n = -1, l = 0;
267
+ for (let o of A) {
268
+ let r = F(o), w = QA(o);
269
+ if (n == -1)
270
+ r == 0 ? n = w : e.push(w);
271
+ else if (l > 0 && l >= r)
272
+ r == 0 ? (e.push(n, ...t), t.length = 0, n = w) : t.push(w), l = r;
273
273
  else {
274
- let B = bA(l, w);
275
- B >= 0 ? l = B : n == 0 && o == 0 ? (e.push(l), l = w) : (t.push(w), n = o);
274
+ let B = bA(n, w);
275
+ B >= 0 ? n = B : l == 0 && r == 0 ? (e.push(n), n = w) : (t.push(w), l = r);
276
276
  }
277
277
  }
278
- return l >= 0 && e.push(l, ...t), e;
278
+ return n >= 0 && e.push(n, ...t), e;
279
279
  }
280
280
  function gA(A) {
281
281
  return EA(A).map(QA);
@@ -293,24 +293,24 @@ class XA extends Array {
293
293
  }
294
294
  // free tagging system
295
295
  }
296
- let W, pA, I, q, hA, U, j, d, a, rA, y;
296
+ let W, pA, I, q, hA, U, j, d, a, oA, y;
297
297
  function _() {
298
298
  if (W)
299
299
  return;
300
- let A = oA(dA);
301
- const e = () => H(A), t = () => new Set(e()), l = (C, s) => s.forEach((c) => C.add(c));
300
+ let A = rA(dA);
301
+ const e = () => H(A), t = () => new Set(e()), n = (C, s) => s.forEach((c) => C.add(c));
302
302
  W = new Map(CA(A)), pA = t(), I = e(), q = new Set(e().map((C) => I[C])), I = new Set(I), hA = t(), t();
303
- let n = wA(A), r = A();
304
- const o = () => {
303
+ let l = wA(A), o = A();
304
+ const r = () => {
305
305
  let C = /* @__PURE__ */ new Set();
306
- return e().forEach((s) => l(C, n[s])), l(C, e()), C;
306
+ return e().forEach((s) => n(C, l[s])), n(C, e()), C;
307
307
  };
308
308
  U = O((C) => {
309
309
  let s = O(A).map((c) => c + 96);
310
310
  if (s.length) {
311
- let c = C >= r;
311
+ let c = C >= o;
312
312
  s[0] -= 32, s = N(s), c && (s = `Restricted[${s}]`);
313
- let i = o(), g = o(), f = !A();
313
+ let i = r(), g = r(), f = !A();
314
314
  return { N: s, P: i, Q: g, M: f, R: c };
315
315
  }
316
316
  }), j = t(), d = /* @__PURE__ */ new Map();
@@ -323,7 +323,7 @@ function _() {
323
323
  let c = [];
324
324
  for (let g of C) {
325
325
  let f = U.filter((M) => m(M, g)), E = c.find(({ G: M }) => f.some((R) => M.has(R)));
326
- E || (E = { G: /* @__PURE__ */ new Set(), V: [] }, c.push(E)), E.V.push(g), l(E.G, f);
326
+ E || (E = { G: /* @__PURE__ */ new Set(), V: [] }, c.push(E)), E.V.push(g), n(E.G, f);
327
327
  }
328
328
  let i = c.flatMap((g) => Y(g.G));
329
329
  for (let { G: g, V: f } of c) {
@@ -343,8 +343,8 @@ function _() {
343
343
  }
344
344
  for (let C of a)
345
345
  !d.has(C) && !B.has(C) && d.set(C, uA);
346
- l(a, gA(a)), rA = GA(A).map((C) => XA.from(C)).sort(PA), y = /* @__PURE__ */ new Map();
347
- for (let C of rA) {
346
+ n(a, gA(a)), oA = GA(A).map((C) => XA.from(C)).sort(PA), y = /* @__PURE__ */ new Map();
347
+ for (let C of oA) {
348
348
  let s = [y];
349
349
  for (let c of C) {
350
350
  let i = s.map((g) => {
@@ -376,28 +376,28 @@ function qA(A) {
376
376
  let e = A[0], t = eA.get(e);
377
377
  if (t)
378
378
  throw J(`leading ${t}`);
379
- let l = A.length, n = -1;
380
- for (let r = 1; r < l; r++) {
381
- e = A[r];
382
- let o = eA.get(e);
383
- if (o) {
384
- if (n == r)
385
- throw J(`${t} + ${o}`);
386
- n = r + 1, t = o;
379
+ let n = A.length, l = -1;
380
+ for (let o = 1; o < n; o++) {
381
+ e = A[o];
382
+ let r = eA.get(e);
383
+ if (r) {
384
+ if (l == o)
385
+ throw J(`${t} + ${r}`);
386
+ l = o + 1, t = r;
387
387
  }
388
388
  }
389
- if (n == l)
389
+ if (l == n)
390
390
  throw J(`trailing ${t}`);
391
391
  }
392
392
  function Z(A, e = 1 / 0, t = cA) {
393
- let l = [];
394
- yA(A[0]) && l.push("◌"), A.length > e && (e >>= 1, A = [...A.slice(0, e), 8230, ...A.slice(-e)]);
395
- let n = 0, r = A.length;
396
- for (let o = 0; o < r; o++) {
397
- let w = A[o];
398
- aA(w) && (l.push(N(A.slice(n, o))), l.push(t(w)), n = o + 1);
393
+ let n = [];
394
+ yA(A[0]) && n.push("◌"), A.length > e && (e >>= 1, A = [...A.slice(0, e), 8230, ...A.slice(-e)]);
395
+ let l = 0, o = A.length;
396
+ for (let r = 0; r < o; r++) {
397
+ let w = A[r];
398
+ aA(w) && (n.push(N(A.slice(l, r))), n.push(t(w)), l = r + 1);
399
399
  }
400
- return l.push(N(A.slice(n, r))), l.join("");
400
+ return n.push(N(A.slice(l, o))), n.join("");
401
401
  }
402
402
  function yA(A) {
403
403
  return _(), I.has(A);
@@ -405,27 +405,27 @@ function yA(A) {
405
405
  function aA(A) {
406
406
  return _(), hA.has(A);
407
407
  }
408
- function oe(A) {
408
+ function re(A) {
409
409
  return ee(_A(A, jA, le));
410
410
  }
411
411
  function _A(A, e, t) {
412
412
  if (!A)
413
413
  return [];
414
414
  _();
415
- let l = 0;
416
- return A.split(MA).map((n) => {
417
- let r = SA(n), o = {
418
- input: r,
419
- offset: l
415
+ let n = 0;
416
+ return A.split(MA).map((l) => {
417
+ let o = SA(l), r = {
418
+ input: o,
419
+ offset: n
420
420
  // codepoint, not substring!
421
421
  };
422
- l += r.length + 1;
422
+ n += o.length + 1;
423
423
  try {
424
- let w = o.tokens = ne(r, e, t), B = w.length, Q;
424
+ let w = r.tokens = ne(o, e, t), B = w.length, Q;
425
425
  if (!B)
426
426
  throw new Error("empty label");
427
- let C = o.output = w.flat();
428
- if (WA(C), !(o.emoji = B > 1 || w[0].is_emoji) && C.every((c) => c < 128))
427
+ let C = r.output = w.flat();
428
+ if (WA(C), !(r.emoji = B > 1 || w[0].is_emoji) && C.every((c) => c < 128))
429
429
  vA(C), Q = "ASCII";
430
430
  else {
431
431
  let c = w.flatMap((i) => i.is_emoji ? [] : i);
@@ -444,58 +444,58 @@ function _A(A, e, t) {
444
444
  te(g, c), $A(g, i), Q = g.N;
445
445
  }
446
446
  }
447
- o.type = Q;
447
+ r.type = Q;
448
448
  } catch (w) {
449
- o.error = w;
449
+ r.error = w;
450
450
  }
451
- return o;
451
+ return r;
452
452
  });
453
453
  }
454
454
  function $A(A, e) {
455
- let t, l = [];
456
- for (let n of e) {
457
- let r = d.get(n);
458
- if (r === uA)
455
+ let t, n = [];
456
+ for (let l of e) {
457
+ let o = d.get(l);
458
+ if (o === uA)
459
459
  return;
460
- if (r) {
461
- let o = r.M.get(n);
462
- if (t = t ? t.filter((w) => o.has(w)) : Y(o), !t.length)
460
+ if (o) {
461
+ let r = o.M.get(l);
462
+ if (t = t ? t.filter((w) => r.has(w)) : Y(r), !t.length)
463
463
  return;
464
464
  } else
465
- l.push(n);
465
+ n.push(l);
466
466
  }
467
467
  if (t) {
468
- for (let n of t)
469
- if (l.every((r) => m(n, r)))
470
- throw new Error(`whole-script confusable: ${A.N}/${n.N}`);
468
+ for (let l of t)
469
+ if (n.every((o) => m(l, o)))
470
+ throw new Error(`whole-script confusable: ${A.N}/${l.N}`);
471
471
  }
472
472
  }
473
473
  function Ae(A) {
474
474
  let e = U;
475
475
  for (let t of A) {
476
- let l = e.filter((n) => m(n, t));
477
- if (!l.length)
478
- throw U.some((n) => m(n, t)) ? RA(e[0], t) : IA(t);
479
- if (e = l, l.length == 1)
476
+ let n = e.filter((l) => m(l, t));
477
+ if (!n.length)
478
+ throw U.some((l) => m(l, t)) ? RA(e[0], t) : IA(t);
479
+ if (e = n, n.length == 1)
480
480
  break;
481
481
  }
482
482
  return e;
483
483
  }
484
484
  function ee(A) {
485
- return A.map(({ input: e, error: t, output: l }) => {
485
+ return A.map(({ input: e, error: t, output: n }) => {
486
486
  if (t) {
487
- let n = t.message;
488
- throw new Error(A.length == 1 ? n : `Invalid label ${AA(Z(e, 63))}: ${n}`);
487
+ let l = t.message;
488
+ throw new Error(A.length == 1 ? l : `Invalid label ${AA(Z(e, 63))}: ${l}`);
489
489
  }
490
- return N(l);
490
+ return N(n);
491
491
  }).join(MA);
492
492
  }
493
493
  function IA(A) {
494
494
  return new Error(`disallowed character: ${$(A)}`);
495
495
  }
496
496
  function RA(A, e) {
497
- let t = $(e), l = U.find((n) => n.P.has(e));
498
- return l && (t = `${l.N} ${t}`), new Error(`illegal mixture: ${A.N} + ${t}`);
497
+ let t = $(e), n = U.find((l) => l.P.has(e));
498
+ return n && (t = `${n.N} ${t}`), new Error(`illegal mixture: ${A.N} + ${t}`);
499
499
  }
500
500
  function J(A) {
501
501
  return new Error(`illegal placement: ${A}`);
@@ -506,53 +506,53 @@ function te(A, e) {
506
506
  throw RA(A, t);
507
507
  if (A.M) {
508
508
  let t = gA(e);
509
- for (let l = 1, n = t.length; l < n; l++)
510
- if (q.has(t[l])) {
511
- let r = l + 1;
512
- for (let o; r < n && q.has(o = t[r]); r++)
513
- for (let w = l; w < r; w++)
514
- if (t[w] == o)
515
- throw new Error(`duplicate non-spacing marks: ${$(o)}`);
516
- if (r - l > tA)
517
- throw new Error(`excessive non-spacing marks: ${AA(Z(t.slice(l - 1, r)))} (${r - l}/${tA})`);
518
- l = r;
509
+ for (let n = 1, l = t.length; n < l; n++)
510
+ if (q.has(t[n])) {
511
+ let o = n + 1;
512
+ for (let r; o < l && q.has(r = t[o]); o++)
513
+ for (let w = n; w < o; w++)
514
+ if (t[w] == r)
515
+ throw new Error(`duplicate non-spacing marks: ${$(r)}`);
516
+ if (o - n > tA)
517
+ throw new Error(`excessive non-spacing marks: ${AA(Z(t.slice(n - 1, o)))} (${o - n}/${tA})`);
518
+ n = o;
519
519
  }
520
520
  }
521
521
  }
522
522
  function ne(A, e, t) {
523
- let l = [], n = [];
523
+ let n = [], l = [];
524
524
  for (A = A.slice().reverse(); A.length; ) {
525
- let r = re(A);
526
- if (r)
527
- n.length && (l.push(e(n)), n = []), l.push(t(r));
525
+ let o = oe(A);
526
+ if (o)
527
+ l.length && (n.push(e(l)), l = []), n.push(t(o));
528
528
  else {
529
- let o = A.pop();
530
- if (a.has(o))
531
- n.push(o);
529
+ let r = A.pop();
530
+ if (a.has(r))
531
+ l.push(r);
532
532
  else {
533
- let w = W.get(o);
533
+ let w = W.get(r);
534
534
  if (w)
535
- n.push(...w);
536
- else if (!pA.has(o))
537
- throw IA(o);
535
+ l.push(...w);
536
+ else if (!pA.has(r))
537
+ throw IA(r);
538
538
  }
539
539
  }
540
540
  }
541
- return n.length && l.push(e(n)), l;
541
+ return l.length && n.push(e(l)), n;
542
542
  }
543
543
  function le(A) {
544
544
  return A.filter((e) => e != DA);
545
545
  }
546
- function re(A, e) {
547
- let t = y, l, n = A.length;
548
- for (; n && (t = t.get(A[--n]), !!t); ) {
549
- let { V: r } = t;
550
- r && (l = r, e && e.push(...A.slice(n).reverse()), A.length = n);
546
+ function oe(A, e) {
547
+ let t = y, n, l = A.length;
548
+ for (; l && (t = t.get(A[--l]), !!t); ) {
549
+ let { V: o } = t;
550
+ o && (n = o, A.length = l);
551
551
  }
552
- return l;
552
+ return n;
553
553
  }
554
554
  export {
555
- oe as ens_normalize,
555
+ re as ens_normalize,
556
556
  yA as is_combining_mark,
557
557
  jA as nfc,
558
558
  gA as nfd,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function k(s,e,t,r){function o(i){return i instanceof t?i:new t(function(n){n(i)})}return new(t||(t=Promise))(function(i,n){function l(a){try{c(r.next(a))}catch(h){n(h)}}function u(a){try{c(r.throw(a))}catch(h){n(h)}}function c(a){a.done?i(a.value):o(a.value).then(l,u)}c((r=r.apply(s,e||[])).next())})}function L(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var P=function s(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,o,i;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(o=r;o--!==0;)if(!s(e[o],t[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[o]))return!1;for(o=r;o--!==0;){var n=i[o];if(!s(e[n],t[n]))return!1}return!0}return e!==e&&t!==t},_=L(P);const I="__googleMapsScriptId";exports.LoaderStatus=void 0;(function(s){s[s.INITIALIZED=0]="INITIALIZED",s[s.LOADING=1]="LOADING",s[s.SUCCESS=2]="SUCCESS",s[s.FAILURE=3]="FAILURE"})(exports.LoaderStatus||(exports.LoaderStatus={}));class d{constructor({apiKey:e,authReferrerPolicy:t,channel:r,client:o,id:i=I,language:n,libraries:l=[],mapIds:u,nonce:c,region:a,retries:h=3,url:g="https://maps.googleapis.com/maps/api/js",version:p}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=e,this.authReferrerPolicy=t,this.channel=r,this.client=o,this.id=i||I,this.language=n,this.libraries=l,this.mapIds=u,this.nonce=c,this.region=a,this.retries=h,this.url=g,this.version=p,d.instance){if(!_(this.options,d.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(d.instance.options)}`);return d.instance}d.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?exports.LoaderStatus.FAILURE:this.done?exports.LoaderStatus.SUCCESS:this.loading?exports.LoaderStatus.LOADING:exports.LoaderStatus.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let e=this.url;return e+="?callback=__googleMapsCallback&loading=async",this.apiKey&&(e+=`&key=${this.apiKey}`),this.channel&&(e+=`&channel=${this.channel}`),this.client&&(e+=`&client=${this.client}`),this.libraries.length>0&&(e+=`&libraries=${this.libraries.join(",")}`),this.language&&(e+=`&language=${this.language}`),this.region&&(e+=`&region=${this.region}`),this.version&&(e+=`&v=${this.version}`),this.mapIds&&(e+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(e+=`&auth_referrer_policy=${this.authReferrerPolicy}`),e}deleteScript(){const e=document.getElementById(this.id);e&&e.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((e,t)=>{this.loadCallback(r=>{r?t(r.error):e(window.google)})})}importLibrary(e){return this.execute(),google.maps.importLibrary(e)}loadCallback(e){this.callbacks.push(e),this.execute()}setScript(){var e,t;if(document.getElementById(this.id)){this.callback();return}const r={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(r).forEach(i=>!r[i]&&delete r[i]),!((t=(e=window==null?void 0:window.google)===null||e===void 0?void 0:e.maps)===null||t===void 0)&&t.importLibrary||(i=>{let n,l,u,c="The Google Maps JavaScript API",a="google",h="importLibrary",g="__ib__",p=document,f=window;f=f[a]||(f[a]={});const m=f.maps||(f.maps={}),E=new Set,y=new URLSearchParams,S=()=>n||(n=new Promise((v,b)=>k(this,void 0,void 0,function*(){var w;yield l=p.createElement("script"),l.id=this.id,y.set("libraries",[...E]+"");for(u in i)y.set(u.replace(/[A-Z]/g,O=>"_"+O[0].toLowerCase()),i[u]);y.set("callback",a+".maps."+g),l.src=this.url+"?"+y,m[g]=v,l.onerror=()=>n=b(Error(c+" could not load.")),l.nonce=this.nonce||((w=p.querySelector("script[nonce]"))===null||w===void 0?void 0:w.nonce)||"",p.head.append(l)})));m[h]?console.warn(c+" only loads once. Ignoring:",i):m[h]=(v,...b)=>E.add(v)&&S().then(()=>m[h](v,...b))})(r);const o=this.libraries.map(i=>this.importLibrary(i));o.length||o.push(this.importLibrary("core")),Promise.all(o).then(()=>this.callback(),i=>{const n=new ErrorEvent("error",{error:i});this.loadErrorCallback(n)})}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(e){if(this.errors.push(e),this.errors.length<=this.retries){const t=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${t} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},t)}else this.onerrorEvent=e,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(e=>{e(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),this.callback();return}this.loading||(this.loading=!0,this.setScript())}}}exports.DEFAULT_ID=I;exports.Loader=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function k(s,e,t,r){function o(i){return i instanceof t?i:new t(function(n){n(i)})}return new(t||(t=Promise))(function(i,n){function l(a){try{c(r.next(a))}catch(h){n(h)}}function u(a){try{c(r.throw(a))}catch(h){n(h)}}function c(a){a.done?i(a.value):o(a.value).then(l,u)}c((r=r.apply(s,[])).next())})}function L(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var _=function s(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,o,i;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(o=r;o--!==0;)if(!s(e[o],t[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[o]))return!1;for(o=r;o--!==0;){var n=i[o];if(!s(e[n],t[n]))return!1}return!0}return e!==e&&t!==t},P=L(_);const I="__googleMapsScriptId";exports.LoaderStatus=void 0;(function(s){s[s.INITIALIZED=0]="INITIALIZED",s[s.LOADING=1]="LOADING",s[s.SUCCESS=2]="SUCCESS",s[s.FAILURE=3]="FAILURE"})(exports.LoaderStatus||(exports.LoaderStatus={}));class d{constructor({apiKey:e,authReferrerPolicy:t,channel:r,client:o,id:i=I,language:n,libraries:l=[],mapIds:u,nonce:c,region:a,retries:h=3,url:g="https://maps.googleapis.com/maps/api/js",version:p}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=e,this.authReferrerPolicy=t,this.channel=r,this.client=o,this.id=i||I,this.language=n,this.libraries=l,this.mapIds=u,this.nonce=c,this.region=a,this.retries=h,this.url=g,this.version=p,d.instance){if(!P(this.options,d.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(d.instance.options)}`);return d.instance}d.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?exports.LoaderStatus.FAILURE:this.done?exports.LoaderStatus.SUCCESS:this.loading?exports.LoaderStatus.LOADING:exports.LoaderStatus.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let e=this.url;return e+="?callback=__googleMapsCallback&loading=async",this.apiKey&&(e+=`&key=${this.apiKey}`),this.channel&&(e+=`&channel=${this.channel}`),this.client&&(e+=`&client=${this.client}`),this.libraries.length>0&&(e+=`&libraries=${this.libraries.join(",")}`),this.language&&(e+=`&language=${this.language}`),this.region&&(e+=`&region=${this.region}`),this.version&&(e+=`&v=${this.version}`),this.mapIds&&(e+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(e+=`&auth_referrer_policy=${this.authReferrerPolicy}`),e}deleteScript(){const e=document.getElementById(this.id);e&&e.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((e,t)=>{this.loadCallback(r=>{r?t(r.error):e(window.google)})})}importLibrary(e){return this.execute(),google.maps.importLibrary(e)}loadCallback(e){this.callbacks.push(e),this.execute()}setScript(){var e,t;if(document.getElementById(this.id)){this.callback();return}const r={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(r).forEach(i=>!r[i]&&delete r[i]),!((t=(e=window==null?void 0:window.google)===null||e===void 0?void 0:e.maps)===null||t===void 0)&&t.importLibrary||(i=>{let n,l,u,c="The Google Maps JavaScript API",a="google",h="importLibrary",g="__ib__",p=document,f=window;f=f[a]||(f[a]={});const m=f.maps||(f.maps={}),E=new Set,y=new URLSearchParams,S=()=>n||(n=new Promise((v,b)=>k(this,void 0,void 0,function*(){var w;yield l=p.createElement("script"),l.id=this.id,y.set("libraries",[...E]+"");for(u in i)y.set(u.replace(/[A-Z]/g,O=>"_"+O[0].toLowerCase()),i[u]);y.set("callback",a+".maps."+g),l.src=this.url+"?"+y,m[g]=v,l.onerror=()=>n=b(Error(c+" could not load.")),l.nonce=this.nonce||((w=p.querySelector("script[nonce]"))===null||w===void 0?void 0:w.nonce)||"",p.head.append(l)})));m[h]?console.warn(c+" only loads once. Ignoring:",i):m[h]=(v,...b)=>E.add(v)&&S().then(()=>m[h](v,...b))})(r);const o=this.libraries.map(i=>this.importLibrary(i));o.length||o.push(this.importLibrary("core")),Promise.all(o).then(()=>this.callback(),i=>{const n=new ErrorEvent("error",{error:i});this.loadErrorCallback(n)})}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(e){if(this.errors.push(e),this.errors.length<=this.retries){const t=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${t} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},t)}else this.onerrorEvent=e,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(e=>{e(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),this.callback();return}this.loading||(this.loading=!0,this.setScript())}}}exports.DEFAULT_ID=I;exports.Loader=d;