@genesislcap/foundation-utils 9.0.1-alpha-b5c5eb7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (208) hide show
  1. package/README.md +17 -0
  2. package/dist/1.0.0.remoteEntry.js +1 -0
  3. package/dist/191.191.c269f7289e58bf7b411d.js +2 -0
  4. package/dist/191.39a2e9203510a7519708c5b4aea7f704.js.map +1 -0
  5. package/dist/415.3cb7f8f1ac5100455b500b2031b3bad5.js.map +1 -0
  6. package/dist/415.415.4b5fb555089ec8cfcefc.js +3 -0
  7. package/dist/415.415.4b5fb555089ec8cfcefc.js.LICENSE.txt +4 -0
  8. package/dist/623.623.110a7cfaa949a6ed5af4.js +3 -0
  9. package/dist/623.623.110a7cfaa949a6ed5af4.js.LICENSE.txt +4 -0
  10. package/dist/623.634cdd52899e585371b85bd188223dd8.js.map +1 -0
  11. package/dist/755.755.0b7ce5e5697d1349a296.js +2 -0
  12. package/dist/755.b048a5e9f9f10fcc6eca65bc430df2d8.js.map +1 -0
  13. package/dist/771.771.1d3a6b8f94d8af130611.js +2 -0
  14. package/dist/771.77671405d7e88345d37fcb4dc866d245.js.map +1 -0
  15. package/dist/969.969.4469fc6efc6386f330d3.js +2 -0
  16. package/dist/969.96dbe89007eb6d111249898cf1e26a6f.js.map +1 -0
  17. package/dist/dashboard.json +1 -0
  18. package/dist/dts/data/inMemoryDatabase.d.ts +58 -0
  19. package/dist/dts/data/inMemoryDatabase.d.ts.map +1 -0
  20. package/dist/dts/data/index.d.ts +2 -0
  21. package/dist/dts/data/index.d.ts.map +1 -0
  22. package/dist/dts/decorators/index.d.ts +2 -0
  23. package/dist/dts/decorators/index.d.ts.map +1 -0
  24. package/dist/dts/decorators/renderOnChange.d.ts +5 -0
  25. package/dist/dts/decorators/renderOnChange.d.ts.map +1 -0
  26. package/dist/dts/designSystem/designSystem.d.ts +8 -0
  27. package/dist/dts/designSystem/designSystem.d.ts.map +1 -0
  28. package/dist/dts/designSystem/index.d.ts +2 -0
  29. package/dist/dts/designSystem/index.d.ts.map +1 -0
  30. package/dist/dts/directives/index.d.ts +2 -0
  31. package/dist/dts/directives/index.d.ts.map +1 -0
  32. package/dist/dts/directives/sync/index.d.ts +2 -0
  33. package/dist/dts/directives/sync/index.d.ts.map +1 -0
  34. package/dist/dts/directives/sync/sync.d.ts +6 -0
  35. package/dist/dts/directives/sync/sync.d.ts.map +1 -0
  36. package/dist/dts/env/index.d.ts +2 -0
  37. package/dist/dts/env/index.d.ts.map +1 -0
  38. package/dist/dts/formatters/datetime.d.ts +4 -0
  39. package/dist/dts/formatters/datetime.d.ts.map +1 -0
  40. package/dist/dts/formatters/index.d.ts +2 -0
  41. package/dist/dts/formatters/index.d.ts.map +1 -0
  42. package/dist/dts/index.d.ts +16 -0
  43. package/dist/dts/index.d.ts.map +1 -0
  44. package/dist/dts/index.federated.d.ts +1 -0
  45. package/dist/dts/index.federated.d.ts.map +1 -0
  46. package/dist/dts/logger/index.d.ts +2 -0
  47. package/dist/dts/logger/index.d.ts.map +1 -0
  48. package/dist/dts/logger/logger.d.ts +9 -0
  49. package/dist/dts/logger/logger.d.ts.map +1 -0
  50. package/dist/dts/mappers/dto/index.d.ts +3 -0
  51. package/dist/dts/mappers/dto/index.d.ts.map +1 -0
  52. package/dist/dts/mappers/dto/serverRow.d.ts +31 -0
  53. package/dist/dts/mappers/dto/serverRow.d.ts.map +1 -0
  54. package/dist/dts/mappers/dto/types.d.ts +6 -0
  55. package/dist/dts/mappers/dto/types.d.ts.map +1 -0
  56. package/dist/dts/mappers/index.d.ts +2 -0
  57. package/dist/dts/mappers/index.d.ts.map +1 -0
  58. package/dist/dts/mixins/index.d.ts +3 -0
  59. package/dist/dts/mixins/index.d.ts.map +1 -0
  60. package/dist/dts/mixins/lifecycle/index.d.ts +2 -0
  61. package/dist/dts/mixins/lifecycle/index.d.ts.map +1 -0
  62. package/dist/dts/mixins/lifecycle/lifecycle.d.ts +329 -0
  63. package/dist/dts/mixins/lifecycle/lifecycle.d.ts.map +1 -0
  64. package/dist/dts/mixins/pendingState/index.d.ts +2 -0
  65. package/dist/dts/mixins/pendingState/index.d.ts.map +1 -0
  66. package/dist/dts/mixins/pendingState/pendingState.d.ts +345 -0
  67. package/dist/dts/mixins/pendingState/pendingState.d.ts.map +1 -0
  68. package/dist/dts/observer/index.d.ts +2 -0
  69. package/dist/dts/observer/index.d.ts.map +1 -0
  70. package/dist/dts/observer/observer.d.ts +9 -0
  71. package/dist/dts/observer/observer.d.ts.map +1 -0
  72. package/dist/dts/resource/index.d.ts +2 -0
  73. package/dist/dts/resource/index.d.ts.map +1 -0
  74. package/dist/dts/resource/types.d.ts +6 -0
  75. package/dist/dts/resource/types.d.ts.map +1 -0
  76. package/dist/dts/serializers/index.d.ts +2 -0
  77. package/dist/dts/serializers/index.d.ts.map +1 -0
  78. package/dist/dts/serializers/json/index.d.ts +2 -0
  79. package/dist/dts/serializers/json/index.d.ts.map +1 -0
  80. package/dist/dts/serializers/json/json.d.ts +8 -0
  81. package/dist/dts/serializers/json/json.d.ts.map +1 -0
  82. package/dist/dts/styles/color.d.ts +2 -0
  83. package/dist/dts/styles/color.d.ts.map +1 -0
  84. package/dist/dts/styles/dom.d.ts +3 -0
  85. package/dist/dts/styles/dom.d.ts.map +1 -0
  86. package/dist/dts/styles/index.d.ts +5 -0
  87. package/dist/dts/styles/index.d.ts.map +1 -0
  88. package/dist/dts/styles/slotted-styles.d.ts +6 -0
  89. package/dist/dts/styles/slotted-styles.d.ts.map +1 -0
  90. package/dist/dts/styles/typography.d.ts +15 -0
  91. package/dist/dts/styles/typography.d.ts.map +1 -0
  92. package/dist/dts/utils/index.d.ts +2 -0
  93. package/dist/dts/utils/index.d.ts.map +1 -0
  94. package/dist/dts/utils/logger.d.ts +2 -0
  95. package/dist/dts/utils/logger.d.ts.map +1 -0
  96. package/dist/dts/uuid/index.d.ts +2 -0
  97. package/dist/dts/uuid/index.d.ts.map +1 -0
  98. package/dist/dts/uuid/uuid.d.ts +8 -0
  99. package/dist/dts/uuid/uuid.d.ts.map +1 -0
  100. package/dist/dts/window/index.d.ts +2 -0
  101. package/dist/dts/window/index.d.ts.map +1 -0
  102. package/dist/dts/window/window.d.ts +6 -0
  103. package/dist/dts/window/window.d.ts.map +1 -0
  104. package/dist/esm/data/inMemoryDatabase.js +110 -0
  105. package/dist/esm/data/inMemoryDatabase.js.map +1 -0
  106. package/dist/esm/data/index.js +2 -0
  107. package/dist/esm/data/index.js.map +1 -0
  108. package/dist/esm/decorators/index.js +2 -0
  109. package/dist/esm/decorators/index.js.map +1 -0
  110. package/dist/esm/decorators/renderOnChange.js +4 -0
  111. package/dist/esm/decorators/renderOnChange.js.map +1 -0
  112. package/dist/esm/designSystem/designSystem.js +10 -0
  113. package/dist/esm/designSystem/designSystem.js.map +1 -0
  114. package/dist/esm/designSystem/index.js +2 -0
  115. package/dist/esm/designSystem/index.js.map +1 -0
  116. package/dist/esm/directives/index.js +2 -0
  117. package/dist/esm/directives/index.js.map +1 -0
  118. package/dist/esm/directives/sync/index.js +2 -0
  119. package/dist/esm/directives/sync/index.js.map +1 -0
  120. package/dist/esm/directives/sync/sync.js +86 -0
  121. package/dist/esm/directives/sync/sync.js.map +1 -0
  122. package/dist/esm/env/index.js +2 -0
  123. package/dist/esm/env/index.js.map +1 -0
  124. package/dist/esm/formatters/datetime.js +19 -0
  125. package/dist/esm/formatters/datetime.js.map +1 -0
  126. package/dist/esm/formatters/index.js +2 -0
  127. package/dist/esm/formatters/index.js.map +1 -0
  128. package/dist/esm/index.federated.js +2 -0
  129. package/dist/esm/index.federated.js.map +1 -0
  130. package/dist/esm/index.js +16 -0
  131. package/dist/esm/index.js.map +1 -0
  132. package/dist/esm/logger/index.js +2 -0
  133. package/dist/esm/logger/index.js.map +1 -0
  134. package/dist/esm/logger/logger.js +12 -0
  135. package/dist/esm/logger/logger.js.map +1 -0
  136. package/dist/esm/mappers/dto/index.js +3 -0
  137. package/dist/esm/mappers/dto/index.js.map +1 -0
  138. package/dist/esm/mappers/dto/serverRow.js +25 -0
  139. package/dist/esm/mappers/dto/serverRow.js.map +1 -0
  140. package/dist/esm/mappers/dto/types.js +2 -0
  141. package/dist/esm/mappers/dto/types.js.map +1 -0
  142. package/dist/esm/mappers/index.js +2 -0
  143. package/dist/esm/mappers/index.js.map +1 -0
  144. package/dist/esm/mixins/index.js +3 -0
  145. package/dist/esm/mixins/index.js.map +1 -0
  146. package/dist/esm/mixins/lifecycle/index.js +2 -0
  147. package/dist/esm/mixins/lifecycle/index.js.map +1 -0
  148. package/dist/esm/mixins/lifecycle/lifecycle.js +50 -0
  149. package/dist/esm/mixins/lifecycle/lifecycle.js.map +1 -0
  150. package/dist/esm/mixins/pendingState/index.js +2 -0
  151. package/dist/esm/mixins/pendingState/index.js.map +1 -0
  152. package/dist/esm/mixins/pendingState/pendingState.js +60 -0
  153. package/dist/esm/mixins/pendingState/pendingState.js.map +1 -0
  154. package/dist/esm/observer/index.js +2 -0
  155. package/dist/esm/observer/index.js.map +1 -0
  156. package/dist/esm/observer/observer.js +13 -0
  157. package/dist/esm/observer/observer.js.map +1 -0
  158. package/dist/esm/resource/index.js +2 -0
  159. package/dist/esm/resource/index.js.map +1 -0
  160. package/dist/esm/resource/types.js +5 -0
  161. package/dist/esm/resource/types.js.map +1 -0
  162. package/dist/esm/serializers/index.js +2 -0
  163. package/dist/esm/serializers/index.js.map +1 -0
  164. package/dist/esm/serializers/json/index.js +2 -0
  165. package/dist/esm/serializers/json/index.js.map +1 -0
  166. package/dist/esm/serializers/json/json.js +17 -0
  167. package/dist/esm/serializers/json/json.js.map +1 -0
  168. package/dist/esm/styles/color.js +5 -0
  169. package/dist/esm/styles/color.js.map +1 -0
  170. package/dist/esm/styles/dom.js +34 -0
  171. package/dist/esm/styles/dom.js.map +1 -0
  172. package/dist/esm/styles/index.js +5 -0
  173. package/dist/esm/styles/index.js.map +1 -0
  174. package/dist/esm/styles/slotted-styles.js +20 -0
  175. package/dist/esm/styles/slotted-styles.js.map +1 -0
  176. package/dist/esm/styles/typography.js +24 -0
  177. package/dist/esm/styles/typography.js.map +1 -0
  178. package/dist/esm/utils/index.js +2 -0
  179. package/dist/esm/utils/index.js.map +1 -0
  180. package/dist/esm/utils/logger.js +3 -0
  181. package/dist/esm/utils/logger.js.map +1 -0
  182. package/dist/esm/uuid/index.js +2 -0
  183. package/dist/esm/uuid/index.js.map +1 -0
  184. package/dist/esm/uuid/uuid.js +21 -0
  185. package/dist/esm/uuid/uuid.js.map +1 -0
  186. package/dist/esm/window/index.js +2 -0
  187. package/dist/esm/window/index.js.map +1 -0
  188. package/dist/esm/window/window.js +32 -0
  189. package/dist/esm/window/window.js.map +1 -0
  190. package/dist/favicon.ico +0 -0
  191. package/dist/foundation-utils.iife.min.js +16 -0
  192. package/dist/foundation-utils.js +7761 -0
  193. package/dist/foundation-utils.min.js +15 -0
  194. package/dist/foundationUtils.8e6a99a45fc60d4385efaab4edaffbd3.js.map +1 -0
  195. package/dist/index.ejs +23 -0
  196. package/dist/index.html +16 -0
  197. package/dist/info.ejs +13 -0
  198. package/dist/main.de5ec80023c2d4566929.js +2 -0
  199. package/dist/main.ec5161040143d5cd365675931c2e06c7.js.map +1 -0
  200. package/dist/npm.consola.713.aa55449b0ad5bbaff3d7.js +2 -0
  201. package/dist/npm.consola.d5540a4a6823a1a5324fd042a1cde286.js.map +1 -0
  202. package/dist/npm.microsoft.127.cb5f92dbc8ab4bb7086c.js +6404 -0
  203. package/dist/npm.microsoft.127.cb5f92dbc8ab4bb7086c.js.LICENSE.txt +14 -0
  204. package/dist/npm.microsoft.518a1c468bec250141dc5f62332217e8.js.map +1 -0
  205. package/dist/remoteEntry.js +2 -0
  206. package/dist/serve.json +3 -0
  207. package/license.txt +46 -0
  208. package/package.json +96 -0
@@ -0,0 +1,20 @@
1
+ import { __decorate } from "tslib";
2
+ import { customElement, FASTElement, observable } from '@microsoft/fast-element';
3
+ let SlottedStyles = class SlottedStyles extends FASTElement {
4
+ stylesChanged(prev, next) {
5
+ if (prev) {
6
+ this.parentElement.$fastController.removeStyles(prev);
7
+ }
8
+ this.parentElement.$fastController.addStyles(next);
9
+ }
10
+ };
11
+ __decorate([
12
+ observable
13
+ ], SlottedStyles.prototype, "styles", void 0);
14
+ SlottedStyles = __decorate([
15
+ customElement({
16
+ name: 'slotted-styles',
17
+ })
18
+ ], SlottedStyles);
19
+ export { SlottedStyles };
20
+ //# sourceMappingURL=slotted-styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slotted-styles.js","sourceRoot":"","sources":["../../../src/styles/slotted-styles.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAiB,WAAW,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAKzF,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,WAAW;IAG5C,aAAa,CAAC,IAAmB,EAAE,IAAmB;QACpD,IAAI,IAAI,EAAE;YACP,IAAI,CAAC,aAAwC,CAAC,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;SACnF;QAEA,IAAI,CAAC,aAAwC,CAAC,eAAe,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACjF,CAAC;CACF,CAAA;AATa;IAAX,UAAU;6CAAuB;AADvB,aAAa;IAHzB,aAAa,CAAC;QACb,IAAI,EAAE,gBAAgB;KACvB,CAAC;GACW,aAAa,CAUzB;SAVY,aAAa"}
@@ -0,0 +1,24 @@
1
+ import { insertDocumentCSSRule } from './dom';
2
+ export const loadFontFaces = (fontFaceRules, styleElementId) => {
3
+ insertDocumentCSSRule(fontFaceRules, styleElementId);
4
+ };
5
+ export var FontStyle;
6
+ (function (FontStyle) {
7
+ FontStyle["Italic"] = "italic";
8
+ FontStyle["Normal"] = "normal";
9
+ })(FontStyle || (FontStyle = {}));
10
+ export var FontWeight;
11
+ (function (FontWeight) {
12
+ FontWeight[FontWeight["Thin"] = 100] = "Thin";
13
+ FontWeight[FontWeight["Light"] = 300] = "Light";
14
+ FontWeight[FontWeight["Regular"] = 400] = "Regular";
15
+ FontWeight[FontWeight["Medium"] = 500] = "Medium";
16
+ FontWeight[FontWeight["Bold"] = 700] = "Bold";
17
+ FontWeight[FontWeight["Black"] = 900] = "Black";
18
+ })(FontWeight || (FontWeight = {}));
19
+ export const getFontMixin = (family, style = FontStyle.Normal, weight = FontWeight.Regular) => `
20
+ font-family: ${family};
21
+ font-style: ${style};
22
+ font-weight: ${weight};
23
+ `;
24
+ //# sourceMappingURL=typography.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typography.js","sourceRoot":"","sources":["../../../src/styles/typography.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAE9C,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,aAAa,EAAE,cAAc,EAAE,EAAE;IAC7D,qBAAqB,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC;AACvD,CAAC,CAAC;AAEF,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;AACnB,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAED,MAAM,CAAN,IAAY,UAOX;AAPD,WAAY,UAAU;IACpB,6CAAU,CAAA;IACV,+CAAW,CAAA;IACX,mDAAa,CAAA;IACb,iDAAY,CAAA;IACZ,6CAAU,CAAA;IACV,+CAAW,CAAA;AACb,CAAC,EAPW,UAAU,KAAV,UAAU,QAOrB;AAED,MAAM,CAAC,MAAM,YAAY,GAAG,CAC1B,MAAc,EACd,QAAmB,SAAS,CAAC,MAAM,EACnC,SAAqB,UAAU,CAAC,OAAO,EACvC,EAAE,CAAC;iBACY,MAAM;gBACP,KAAK;iBACJ,MAAM;CACtB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './logger';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { createLogger } from '../logger';
2
+ export const logger = createLogger('foundation-utils');
3
+ //# sourceMappingURL=logger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.js","sourceRoot":"","sources":["../../../src/utils/logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,MAAM,CAAC,MAAM,MAAM,GAAG,YAAY,CAAC,kBAAkB,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './uuid';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/uuid/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { __awaiter } from "tslib";
2
+ import { v4 as uuidv4 } from 'uuid';
3
+ import { DI } from '@microsoft/fast-foundation';
4
+ import { logger } from '../utils';
5
+ class UUIDService {
6
+ constructor() { }
7
+ createId(withLogging = false) {
8
+ const id = uuidv4();
9
+ withLogging && logger.debug(`UUID.createID ${id}`);
10
+ return id;
11
+ }
12
+ createRemoteId(withLogging = false) {
13
+ return __awaiter(this, void 0, void 0, function* () {
14
+ const id = uuidv4();
15
+ withLogging && logger.debug(`UUID.createRemoteID ${id}`);
16
+ return id;
17
+ });
18
+ }
19
+ }
20
+ export const UUID = DI.createInterface((x) => x.singleton(UUIDService));
21
+ //# sourceMappingURL=uuid.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uuid.js","sourceRoot":"","sources":["../../../src/uuid/uuid.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,EAAE,EAAE,MAAM,4BAA4B,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAclC,MAAM,WAAW;IAYf,gBAAe,CAAC;IAET,QAAQ,CAAC,WAAW,GAAG,KAAK;QAIjC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;QACpB,WAAW,IAAI,MAAM,CAAC,KAAK,CAAC,iBAAiB,EAAE,EAAE,CAAC,CAAC;QACnD,OAAO,EAAE,CAAC;IACZ,CAAC;IAEY,cAAc,CAAC,WAAW,GAAG,KAAK;;YAK7C,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;YACpB,WAAW,IAAI,MAAM,CAAC,KAAK,CAAC,uBAAuB,EAAE,EAAE,CAAC,CAAC;YACzD,OAAO,EAAE,CAAC;QACZ,CAAC;KAAA;CACF;AAED,MAAM,CAAC,MAAM,IAAI,GAAG,EAAE,CAAC,eAAe,CAAO,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './window';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/window/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -0,0 +1,32 @@
1
+ export const inIFrame = () => {
2
+ try {
3
+ return window.self !== window.top;
4
+ }
5
+ catch (e) {
6
+ return true;
7
+ }
8
+ };
9
+ export const inSymphonyDesktop = () => {
10
+ const userAgent = navigator === null || navigator === void 0 ? void 0 : navigator.userAgent;
11
+ return (userAgent === null || userAgent === void 0 ? void 0 : userAgent.includes('Symphony')) && (userAgent === null || userAgent === void 0 ? void 0 : userAgent.includes('Electron'));
12
+ };
13
+ export const POPUP_DEFAULT_WIDTH = 483;
14
+ export const POPUP_DEFAULT_HEIGHT = 600;
15
+ export const openPopup = (urlNavigate, target, popUpWidth = POPUP_DEFAULT_WIDTH, popUpHeight = POPUP_DEFAULT_HEIGHT) => {
16
+ const left = window.innerWidth / 2 - popUpWidth / 2 + window.screenX;
17
+ const top = window.innerHeight / 2 - popUpHeight / 2 + window.screenY;
18
+ const popupWindow = window.open(urlNavigate, target, 'width=' +
19
+ popUpWidth +
20
+ ', height=' +
21
+ popUpHeight +
22
+ ', top=' +
23
+ top +
24
+ ', left=' +
25
+ left +
26
+ ', scrollbars=yes');
27
+ if (popupWindow.focus) {
28
+ popupWindow.focus();
29
+ }
30
+ return popupWindow;
31
+ };
32
+ //# sourceMappingURL=window.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"window.js","sourceRoot":"","sources":["../../../src/window/window.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,EAAE;IAC3B,IAAI;QACF,OAAO,MAAM,CAAC,IAAI,KAAK,MAAM,CAAC,GAAG,CAAC;KACnC;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,IAAI,CAAC;KACb;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,EAAE;IACpC,MAAM,SAAS,GAAG,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,SAAS,CAAC;IACvC,OAAO,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,QAAQ,CAAC,UAAU,CAAC,MAAI,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,QAAQ,CAAC,UAAU,CAAC,CAAA,CAAC;AAC5E,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CAAC;AACvC,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CAAC;AAExC,MAAM,CAAC,MAAM,SAAS,GAAG,CACvB,WAAmB,EACnB,MAAc,EACd,aAAqB,mBAAmB,EACxC,cAAsB,oBAAoB,EAC1C,EAAE;IACF,MAAM,IAAI,GAAG,MAAM,CAAC,UAAU,GAAG,CAAC,GAAG,UAAU,GAAG,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC;IACrE,MAAM,GAAG,GAAG,MAAM,CAAC,WAAW,GAAG,CAAC,GAAG,WAAW,GAAG,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC;IAEtE,MAAM,WAAW,GAAG,MAAM,CAAC,IAAI,CAC7B,WAAW,EACX,MAAM,EACN,QAAQ;QACN,UAAU;QACV,WAAW;QACX,WAAW;QACX,QAAQ;QACR,GAAG;QACH,SAAS;QACT,IAAI;QACJ,kBAAkB,CACrB,CAAC;IACF,IAAI,WAAW,CAAC,KAAK,EAAE;QACrB,WAAW,CAAC,KAAK,EAAE,CAAC;KACrB;IAED,OAAO,WAAW,CAAC;AACrB,CAAC,CAAC"}
Binary file
@@ -0,0 +1,16 @@
1
+ !function(t){"use strict";function e(t,e,r,s){var n,i=arguments.length,o=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,s);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(i<3?n(o):i>3?n(e,r,o):n(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o}function r(t,e,r,s){return new(r||(r=Promise))((function(n,i){function o(t){try{l(s.next(t))}catch(t){i(t)}}function a(t){try{l(s.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}l((s=s.apply(t,e||[])).next())}))}function s(t,e,r,s){if("a"===r&&!s)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?s:"a"===r?s.call(t):s?s.value:e.get(t)}const n=()=>{let t=[];return{subscribe:e=>(t.push(e),()=>t=t.filter((t=>t!==e))),publish(e){t.forEach((t=>t(e)))}}},i={};i[i.Fatal=0]="Fatal",i[i.Error=0]="Error",i[i.Warn=1]="Warn",i[i.Log=2]="Log",i[i.Info=3]="Info",i[i.Success=3]="Success",i[i.Debug=4]="Debug",i[i.Trace=5]="Trace",i[i.Silent=-1/0]="Silent",i[i.Verbose=1/0]="Verbose";var o={silent:{level:-1},fatal:{level:i.Fatal},error:{level:i.Error},warn:{level:i.Warn},log:{level:i.Log},info:{level:i.Info},success:{level:i.Success},debug:{level:i.Debug},trace:{level:i.Trace},verbose:{level:i.Trace},ready:{level:i.Info},start:{level:i.Info}};function a(t){return e=t,"[object Object]"===Object.prototype.toString.call(e)&&(!(!t.message&&!t.args)&&!t.stack);var e}let l=!1;const u=[];class c{constructor(t={}){this._reporters=t.reporters||[],this._types=t.types||o,this.level=void 0!==t.level?t.level:3,this._defaults=t.defaults||{},this._async=void 0!==t.async?t.async:void 0,this._stdout=t.stdout,this._stderr=t.stderr,this._mockFn=t.mockFn,this._throttle=t.throttle||1e3,this._throttleMin=t.throttleMin||5;for(const t in this._types){const e={type:t,...this._types[t],...this._defaults};this[t]=this._wrapLogFn(e),this[t].raw=this._wrapLogFn(e,!0)}this._mockFn&&this.mockTypes(),this._lastLogSerialized=void 0,this._lastLog=void 0,this._lastLogTime=void 0,this._lastLogCount=0,this._throttleTimeout=void 0}get stdout(){return this._stdout||console._stdout}get stderr(){return this._stderr||console._stderr}create(t){return new c(Object.assign({reporters:this._reporters,level:this.level,types:this._types,defaults:this._defaults,stdout:this._stdout,stderr:this._stderr,mockFn:this._mockFn},t))}withDefaults(t){return this.create({defaults:Object.assign({},this._defaults,t)})}withTag(t){return this.withDefaults({tag:this._defaults.tag?this._defaults.tag+":"+t:t})}addReporter(t){return this._reporters.push(t),this}removeReporter(t){if(t){const e=this._reporters.indexOf(t);if(e>=0)return this._reporters.splice(e,1)}else this._reporters.splice(0);return this}setReporters(t){return this._reporters=Array.isArray(t)?t:[t],this}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}wrapConsole(){for(const t in this._types)console["__"+t]||(console["__"+t]=console[t]),console[t]=this[t].raw}restoreConsole(){for(const t in this._types)console["__"+t]&&(console[t]=console["__"+t],delete console["__"+t])}wrapStd(){this._wrapStream(this.stdout,"log"),this._wrapStream(this.stderr,"log")}_wrapStream(t,e){t&&(t.__write||(t.__write=t.write),t.write=t=>{this[e].raw(String(t).trim())})}restoreStd(){this._restoreStream(this.stdout),this._restoreStream(this.stderr)}_restoreStream(t){t&&t.__write&&(t.write=t.__write,delete t.__write)}pauseLogs(){l=!0}resumeLogs(){l=!1;const t=u.splice(0);for(const e of t)e[0]._logFn(e[1],e[2])}mockTypes(t){if(this._mockFn=t||this._mockFn,"function"==typeof this._mockFn)for(const t in this._types)this[t]=this._mockFn(t,this._types[t])||this[t],this[t].raw=this[t]}_wrapLogFn(t,e){return(...r)=>{if(!l)return this._logFn(t,r,e);u.push([this,t,r,e])}}_logFn(t,e,r){if(t.level>this.level)return!!this._async&&Promise.resolve(!1);const s=Object.assign({date:new Date,args:[]},t);!r&&1===e.length&&a(e[0])?Object.assign(s,e[0]):s.args=Array.from(e),s.message&&(s.args.unshift(s.message),delete s.message),s.additional&&(Array.isArray(s.additional)||(s.additional=s.additional.split("\n")),s.args.push("\n"+s.additional.join("\n")),delete s.additional),s.type="string"==typeof s.type?s.type.toLowerCase():"",s.tag="string"==typeof s.tag?s.tag.toLowerCase():"";const n=(t=!1)=>{const e=this._lastLogCount-this._throttleMin;if(this._lastLog&&e>0){const t=[...this._lastLog.args];e>1&&t.push(`(repeated ${e} times)`),this._log({...this._lastLog,args:t}),this._lastLogCount=1}if(t){if(this._lastLog=s,this._async)return this._logAsync(s);this._log(s)}};clearTimeout(this._throttleTimeout);const i=this._lastLogTime?s.date-this._lastLogTime:0;if(this._lastLogTime=s.date,i<this._throttle)try{const t=JSON.stringify([s.type,s.tag,s.args]),e=this._lastLogSerialized===t;if(this._lastLogSerialized=t,e&&(this._lastLogCount++,this._lastLogCount>this._throttleMin))return void(this._throttleTimeout=setTimeout(n,this._throttle))}catch(t){}n(!0)}_log(t){for(const e of this._reporters)e.log(t,{async:!1,stdout:this.stdout,stderr:this.stderr})}_logAsync(t){return Promise.all(this._reporters.map((e=>e.log(t,{async:!0,stdout:this.stdout,stderr:this.stderr}))))}}c.prototype.add=c.prototype.addReporter,c.prototype.remove=c.prototype.removeReporter,c.prototype.clear=c.prototype.removeReporter,c.prototype.withScope=c.prototype.withTag,c.prototype.mock=c.prototype.mockTypes,c.prototype.pause=c.prototype.pauseLogs,c.prototype.resume=c.prototype.resumeLogs;class h{constructor(t){this.options=Object.assign({},t),this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}log(t){const e=t.level<1?console.__error||console.error:1===t.level&&console.warn?console.__warn||console.warn:console.__log||console.log,r="log"!==t.type?t.type:"",s=t.tag?t.tag:"",n=`\n background: ${this.typeColorMap[t.type]||this.levelColorMap[t.level]||this.defaultColor};\n border-radius: 0.5em;\n color: white;\n font-weight: bold;\n padding: 2px 0.5em;\n `,i=`%c${[s,r].filter(Boolean).join(":")}`;"string"==typeof t.args[0]?e(`${i}%c ${t.args[0]}`,n,"",...t.args.slice(1)):e(i,n,...t.args)}}var d="undefined"!=typeof window&&window.consola||function(){const t=new c({reporters:[new h]});return t.Consola=c,t.LogLevel=i,t.BrowserReporter=h,t}(),f=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self,{exports:{}});f.exports=function(){function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var r=0;r<e.length;r++){var s=e[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}function r(t,r,s){return r&&e(t.prototype,r),s&&e(t,s),t}function s(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function o(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||a(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){if(t){if("string"==typeof t)return l(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(t,e):void 0}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,s=new Array(e);r<e;r++)s[r]=t[r];return s}function u(t){if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=a(t))){var e=0,r=function(){};return{s:r,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,n,i=!0,o=!1;return{s:function(){s=t[Symbol.iterator]()},n:function(){var t=s.next();return i=t.done,t},e:function(t){o=!0,n=t},f:function(){try{i||null==s.return||s.return()}finally{if(o)throw n}}}}var c={};c[c.Fatal=0]="Fatal",c[c.Error=0]="Error",c[c.Warn=1]="Warn",c[c.Log=2]="Log",c[c.Info=3]="Info",c[c.Success=3]="Success",c[c.Debug=4]="Debug",c[c.Trace=5]="Trace",c[c.Silent=-1/0]="Silent",c[c.Verbose=1/0]="Verbose";var h={silent:{level:-1},fatal:{level:c.Fatal},error:{level:c.Error},warn:{level:c.Warn},log:{level:c.Log},info:{level:c.Info},success:{level:c.Success},debug:{level:c.Debug},trace:{level:c.Trace},verbose:{level:c.Trace},ready:{level:c.Info},start:{level:c.Info}};function d(t){return e=t,!("[object Object]"!==Object.prototype.toString.call(e)||!t.message&&!t.args||t.stack);var e}var f=!1,g=[],p=function(){function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var s in t(this,e),this._reporters=r.reporters||[],this._types=r.types||h,this.level=void 0!==r.level?r.level:3,this._defaults=r.defaults||{},this._async=void 0!==r.async?r.async:void 0,this._stdout=r.stdout,this._stderr=r.stderr,this._mockFn=r.mockFn,this._throttle=r.throttle||1e3,this._throttleMin=r.throttleMin||5,this._types){var n=i(i({type:s},this._types[s]),this._defaults);this[s]=this._wrapLogFn(n),this[s].raw=this._wrapLogFn(n,!0)}this._mockFn&&this.mockTypes(),this._lastLogSerialized=void 0,this._lastLog=void 0,this._lastLogTime=void 0,this._lastLogCount=0,this._throttleTimeout=void 0}return r(e,[{key:"create",value:function(t){return new e(Object.assign({reporters:this._reporters,level:this.level,types:this._types,defaults:this._defaults,stdout:this._stdout,stderr:this._stderr,mockFn:this._mockFn},t))}},{key:"withDefaults",value:function(t){return this.create({defaults:Object.assign({},this._defaults,t)})}},{key:"withTag",value:function(t){return this.withDefaults({tag:this._defaults.tag?this._defaults.tag+":"+t:t})}},{key:"addReporter",value:function(t){return this._reporters.push(t),this}},{key:"removeReporter",value:function(t){if(t){var e=this._reporters.indexOf(t);if(e>=0)return this._reporters.splice(e,1)}else this._reporters.splice(0);return this}},{key:"setReporters",value:function(t){return this._reporters=Array.isArray(t)?t:[t],this}},{key:"wrapAll",value:function(){this.wrapConsole(),this.wrapStd()}},{key:"restoreAll",value:function(){this.restoreConsole(),this.restoreStd()}},{key:"wrapConsole",value:function(){for(var t in this._types)console["__"+t]||(console["__"+t]=console[t]),console[t]=this[t].raw}},{key:"restoreConsole",value:function(){for(var t in this._types)console["__"+t]&&(console[t]=console["__"+t],delete console["__"+t])}},{key:"wrapStd",value:function(){this._wrapStream(this.stdout,"log"),this._wrapStream(this.stderr,"log")}},{key:"_wrapStream",value:function(t,e){var r=this;t&&(t.__write||(t.__write=t.write),t.write=function(t){r[e].raw(String(t).trim())})}},{key:"restoreStd",value:function(){this._restoreStream(this.stdout),this._restoreStream(this.stderr)}},{key:"_restoreStream",value:function(t){t&&t.__write&&(t.write=t.__write,delete t.__write)}},{key:"pauseLogs",value:function(){f=!0}},{key:"resumeLogs",value:function(){f=!1;var t,e=u(g.splice(0));try{for(e.s();!(t=e.n()).done;){var r=t.value;r[0]._logFn(r[1],r[2])}}catch(t){e.e(t)}finally{e.f()}}},{key:"mockTypes",value:function(t){if(this._mockFn=t||this._mockFn,"function"==typeof this._mockFn)for(var e in this._types)this[e]=this._mockFn(e,this._types[e])||this[e],this[e].raw=this[e]}},{key:"_wrapLogFn",value:function(t,e){var r=this;return function(){for(var s=arguments.length,n=new Array(s),i=0;i<s;i++)n[i]=arguments[i];if(!f)return r._logFn(t,n,e);g.push([r,t,n,e])}}},{key:"_logFn",value:function(t,e,r){var s=this;if(t.level>this.level)return!!this._async&&Promise.resolve(!1);var n=Object.assign({date:new Date,args:[]},t);!r&&1===e.length&&d(e[0])?Object.assign(n,e[0]):n.args=Array.from(e),n.message&&(n.args.unshift(n.message),delete n.message),n.additional&&(Array.isArray(n.additional)||(n.additional=n.additional.split("\n")),n.args.push("\n"+n.additional.join("\n")),delete n.additional),n.type="string"==typeof n.type?n.type.toLowerCase():"",n.tag="string"==typeof n.tag?n.tag.toLowerCase():"";var a=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=s._lastLogCount-s._throttleMin;if(s._lastLog&&e>0){var r=o(s._lastLog.args);e>1&&r.push("(repeated ".concat(e," times)")),s._log(i(i({},s._lastLog),{},{args:r})),s._lastLogCount=1}if(t){if(s._lastLog=n,s._async)return s._logAsync(n);s._log(n)}};clearTimeout(this._throttleTimeout);var l=this._lastLogTime?n.date-this._lastLogTime:0;if(this._lastLogTime=n.date,l<this._throttle)try{var u=JSON.stringify([n.type,n.tag,n.args]),c=this._lastLogSerialized===u;if(this._lastLogSerialized=u,c&&(this._lastLogCount++,this._lastLogCount>this._throttleMin))return void(this._throttleTimeout=setTimeout(a,this._throttle))}catch(t){}a(!0)}},{key:"_log",value:function(t){var e,r=u(this._reporters);try{for(r.s();!(e=r.n()).done;)e.value.log(t,{async:!1,stdout:this.stdout,stderr:this.stderr})}catch(t){r.e(t)}finally{r.f()}}},{key:"_logAsync",value:function(t){var e=this;return Promise.all(this._reporters.map((function(r){return r.log(t,{async:!0,stdout:e.stdout,stderr:e.stderr})})))}},{key:"stdout",get:function(){return this._stdout||console._stdout}},{key:"stderr",get:function(){return this._stderr||console._stderr}}]),e}();p.prototype.add=p.prototype.addReporter,p.prototype.remove=p.prototype.removeReporter,p.prototype.clear=p.prototype.removeReporter,p.prototype.withScope=p.prototype.withTag,p.prototype.mock=p.prototype.mockTypes,p.prototype.pause=p.prototype.pauseLogs,p.prototype.resume=p.prototype.resumeLogs;var v,y=function(){function e(r){t(this,e),this.options=Object.assign({},r),this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}return r(e,[{key:"log",value:function(t){var e=t.level<1?console.__error||console.error:1===t.level&&console.warn?console.__warn||console.warn:console.__log||console.log,r="log"!==t.type?t.type:"",s=t.tag?t.tag:"",n=this.typeColorMap[t.type]||this.levelColorMap[t.level]||this.defaultColor,i="\n background: ".concat(n,";\n border-radius: 0.5em;\n color: white;\n font-weight: bold;\n padding: 2px 0.5em;\n "),a="%c".concat([s,r].filter(Boolean).join(":"));"string"==typeof t.args[0]?e.apply(void 0,["".concat(a,"%c ").concat(t.args[0]),i,""].concat(o(t.args.slice(1)))):e.apply(void 0,[a,i].concat(o(t.args)))}}]),e}();return"undefined"!=typeof window&&window.consola||((v=new p({reporters:[new y]})).Consola=p,v.LogLevel=c,v.BrowserReporter=y,v)}();const g={level:4};function p(t,e=g){return d.create(e).withTag(t)}const v=p("foundation-utils");const y=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof global)return global;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;try{return new Function("return this")()}catch(t){return{}}}();void 0===y.trustedTypes&&(y.trustedTypes={createPolicy:(t,e)=>e});const m={configurable:!1,enumerable:!1,writable:!1};void 0===y.FAST&&Reflect.defineProperty(y,"FAST",Object.assign({value:Object.create(null)},m));const b=y.FAST;if(void 0===b.getById){const t=Object.create(null);Reflect.defineProperty(b,"getById",Object.assign({value(e,r){let s=t[e];return void 0===s&&(s=r?t[e]=r():null),s}},m))}const w=Object.freeze([]);function C(){const t=new WeakMap;return function(e){let r=t.get(e);if(void 0===r){let s=Reflect.getPrototypeOf(e);for(;void 0===r&&null!==s;)r=t.get(s),s=Reflect.getPrototypeOf(s);r=void 0===r?[]:r.slice(0),t.set(e,r)}return r}}const S=y.FAST.getById(1,(()=>{const t=[],e=[];function r(){if(e.length)throw e.shift()}function s(t){try{t.call()}catch(t){e.push(t),setTimeout(r,0)}}function n(){let e=0;for(;e<t.length;)if(s(t[e]),e++,e>1024){for(let r=0,s=t.length-e;r<s;r++)t[r]=t[r+e];t.length-=e,e=0}t.length=0}return Object.freeze({enqueue:function(e){t.length<1&&y.requestAnimationFrame(n),t.push(e)},process:n})})),_=y.trustedTypes.createPolicy("fast-html",{createHTML:t=>t});let D=_;const F=`fast-${Math.random().toString(36).substring(2,8)}`,O=`${F}{`,V=`}${F}`,k=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(t){if(D!==_)throw new Error("The HTML policy can only be set once.");D=t},createHTML:t=>D.createHTML(t),isMarker:t=>t&&8===t.nodeType&&t.data.startsWith(F),extractDirectiveIndexFromMarker:t=>parseInt(t.data.replace(`${F}:`,"")),createInterpolationPlaceholder:t=>`${O}${t}${V}`,createCustomAttributePlaceholder(t,e){return`${t}="${this.createInterpolationPlaceholder(e)}"`},createBlockPlaceholder:t=>`\x3c!--${F}:${t}--\x3e`,queueUpdate:S.enqueue,processUpdates:S.process,nextUpdate:()=>new Promise(S.enqueue),setAttribute(t,e,r){null==r?t.removeAttribute(e):t.setAttribute(e,r)},setBooleanAttribute(t,e,r){r?t.setAttribute(e,""):t.removeAttribute(e)},removeChildNodes(t){for(let e=t.firstChild;null!==e;e=t.firstChild)t.removeChild(e)},createTemplateWalker:t=>document.createTreeWalker(t,133,null,!1)});class T{constructor(t,e){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=t,this.sub1=e}has(t){return void 0===this.spillover?this.sub1===t||this.sub2===t:-1!==this.spillover.indexOf(t)}subscribe(t){const e=this.spillover;if(void 0===e){if(this.has(t))return;if(void 0===this.sub1)return void(this.sub1=t);if(void 0===this.sub2)return void(this.sub2=t);this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else{-1===e.indexOf(t)&&e.push(t)}}unsubscribe(t){const e=this.spillover;if(void 0===e)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{const r=e.indexOf(t);-1!==r&&e.splice(r,1)}}notify(t){const e=this.spillover,r=this.source;if(void 0===e){const e=this.sub1,s=this.sub2;void 0!==e&&e.handleChange(r,t),void 0!==s&&s.handleChange(r,t)}else for(let s=0,n=e.length;s<n;++s)e[s].handleChange(r,t)}}class R{constructor(t){this.subscribers={},this.sourceSubscribers=null,this.source=t}notify(t){var e;const r=this.subscribers[t];void 0!==r&&r.notify(t),null===(e=this.sourceSubscribers)||void 0===e||e.notify(t)}subscribe(t,e){var r;if(e){let r=this.subscribers[e];void 0===r&&(this.subscribers[e]=r=new T(this.source)),r.subscribe(t)}else this.sourceSubscribers=null!==(r=this.sourceSubscribers)&&void 0!==r?r:new T(this.source),this.sourceSubscribers.subscribe(t)}unsubscribe(t,e){var r;if(e){const r=this.subscribers[e];void 0!==r&&r.unsubscribe(t)}else null===(r=this.sourceSubscribers)||void 0===r||r.unsubscribe(t)}}const N=b.getById(2,(()=>{const t=/(:|&&|\|\||if)/,e=new WeakMap,r=k.queueUpdate;let s,n=t=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function i(t){let r=t.$fastController||e.get(t);return void 0===r&&(Array.isArray(t)?r=n(t):e.set(t,r=new R(t))),r}const o=C();class a{constructor(t){this.name=t,this.field=`_${t}`,this.callback=`${t}Changed`}getValue(t){return void 0!==s&&s.watch(t,this.name),t[this.field]}setValue(t,e){const r=this.field,s=t[r];if(s!==e){t[r]=e;const n=t[this.callback];"function"==typeof n&&n.call(t,s,e),i(t).notify(this.name)}}}class l extends T{constructor(t,e,r=!1){super(t,e),this.binding=t,this.isVolatileBinding=r,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(t,e){this.needsRefresh&&null!==this.last&&this.disconnect();const r=s;s=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const n=this.binding(t,e);return s=r,n}disconnect(){if(null!==this.last){let t=this.first;for(;void 0!==t;)t.notifier.unsubscribe(this,t.propertyName),t=t.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(t,e){const r=this.last,n=i(t),o=null===r?this.first:{};if(o.propertySource=t,o.propertyName=e,o.notifier=n,n.subscribe(this,e),null!==r){if(!this.needsRefresh){let e;s=void 0,e=r.propertySource[r.propertyName],s=this,t===e&&(this.needsRefresh=!0)}r.next=o}this.last=o}handleChange(){this.needsQueue&&(this.needsQueue=!1,r(this))}call(){null!==this.last&&(this.needsQueue=!0,this.notify(this))}records(){let t=this.first;return{next:()=>{const e=t;return void 0===e?{value:void 0,done:!0}:(t=t.next,{value:e,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(t){n=t},getNotifier:i,track(t,e){void 0!==s&&s.watch(t,e)},trackVolatile(){void 0!==s&&(s.needsRefresh=!0)},notify(t,e){i(t).notify(e)},defineProperty(t,e){"string"==typeof e&&(e=new a(e)),o(t).push(e),Reflect.defineProperty(t,e.name,{enumerable:!0,get:function(){return e.getValue(this)},set:function(t){e.setValue(this,t)}})},getAccessors:o,binding(t,e,r=this.isVolatileBinding(t)){return new l(t,e,r)},isVolatileBinding:e=>t.test(e.toString())})}));function A(t,e){N.defineProperty(t,e)}const P=b.getById(3,(()=>{let t=null;return{get:()=>t,set(e){t=e}}}));class L{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return P.get()}get isEven(){return this.index%2==0}get isOdd(){return this.index%2!=0}get isFirst(){return 0===this.index}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(t){P.set(t)}}N.defineProperty(L.prototype,"index"),N.defineProperty(L.prototype,"length");const x=Object.seal(new L);class M{constructor(){this.targetIndex=0}}class E extends M{constructor(){super(...arguments),this.createPlaceholder=k.createInterpolationPlaceholder}}function j(t,e){this.source=t,this.context=e,null===this.bindingObserver&&(this.bindingObserver=N.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(t,e))}function I(t,e){this.source=t,this.context=e,this.target.addEventListener(this.targetName,this)}function $(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function B(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const t=this.target.$fastView;void 0!==t&&t.isComposed&&(t.unbind(),t.needsBindOnly=!0)}function z(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function U(t){k.setAttribute(this.target,this.targetName,t)}function W(t){k.setBooleanAttribute(this.target,this.targetName,t)}function H(t){if(null==t&&(t=""),t.create){this.target.textContent="";let e=this.target.$fastView;void 0===e?e=t.create():this.target.$fastTemplate!==t&&(e.isComposed&&(e.remove(),e.unbind()),e=t.create()),e.isComposed?e.needsBindOnly&&(e.needsBindOnly=!1,e.bind(this.source,this.context)):(e.isComposed=!0,e.bind(this.source,this.context),e.insertBefore(this.target),this.target.$fastView=e,this.target.$fastTemplate=t)}else{const e=this.target.$fastView;void 0!==e&&e.isComposed&&(e.isComposed=!1,e.remove(),e.needsBindOnly?e.needsBindOnly=!1:e.unbind()),this.target.textContent=t}}function q(t){this.target[this.targetName]=t}function G(t){const e=this.classVersions||Object.create(null),r=this.target;let s=this.version||0;if(null!=t&&t.length){const n=t.split(/\s+/);for(let t=0,i=n.length;t<i;++t){const i=n[t];""!==i&&(e[i]=s,r.classList.add(i))}}if(this.classVersions=e,this.version=s+1,0!==s){s-=1;for(const t in e)e[t]===s&&r.classList.remove(t)}}class X extends E{constructor(t){super(),this.binding=t,this.bind=j,this.unbind=$,this.updateTarget=U,this.isBindingVolatile=N.isVolatileBinding(this.binding)}get targetName(){return this.originalTargetName}set targetName(t){if(this.originalTargetName=t,void 0!==t)switch(t[0]){case":":if(this.cleanedTargetName=t.substr(1),this.updateTarget=q,"innerHTML"===this.cleanedTargetName){const t=this.binding;this.binding=(e,r)=>k.createHTML(t(e,r))}break;case"?":this.cleanedTargetName=t.substr(1),this.updateTarget=W;break;case"@":this.cleanedTargetName=t.substr(1),this.bind=I,this.unbind=z;break;default:this.cleanedTargetName=t,"class"===t&&(this.updateTarget=G)}}targetAtContent(){this.updateTarget=H,this.unbind=B}createBehavior(t){return new J(t,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class J{constructor(t,e,r,s,n,i,o){this.source=null,this.context=null,this.bindingObserver=null,this.target=t,this.binding=e,this.isBindingVolatile=r,this.bind=s,this.unbind=n,this.updateTarget=i,this.targetName=o}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(t){L.setEvent(t);const e=this.binding(this.source,this.context);L.setEvent(null),!0!==e&&t.preventDefault()}}class Q{constructor(){this.targets=new WeakSet}addStylesTo(t){this.targets.add(t)}removeStylesFrom(t){this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=null===this.behaviors?t:this.behaviors.concat(t),this}}function Y(t){return t.map((t=>t instanceof Q?Y(t.styles):[t])).reduce(((t,e)=>t.concat(e)),[])}function Z(t){return t.map((t=>t instanceof Q?t.behaviors:null)).reduce(((t,e)=>null===e?t:(null===t&&(t=[]),t.concat(e))),null)}Q.create=(()=>{if(k.supportsAdoptedStyleSheets){const t=new Map;return e=>new K(e,t)}return t=>new et(t)})();class K extends Q{constructor(t,e){super(),this.styles=t,this.styleSheetCache=e,this._styleSheets=void 0,this.behaviors=Z(t)}get styleSheets(){if(void 0===this._styleSheets){const t=this.styles,e=this.styleSheetCache;this._styleSheets=Y(t).map((t=>{if(t instanceof CSSStyleSheet)return t;let r=e.get(t);return void 0===r&&(r=new CSSStyleSheet,r.replaceSync(t),e.set(t,r)),r}))}return this._styleSheets}addStylesTo(t){t.adoptedStyleSheets=[...t.adoptedStyleSheets,...this.styleSheets],super.addStylesTo(t)}removeStylesFrom(t){const e=this.styleSheets;t.adoptedStyleSheets=t.adoptedStyleSheets.filter((t=>-1===e.indexOf(t))),super.removeStylesFrom(t)}}let tt=0;class et extends Q{constructor(t){super(),this.styles=t,this.behaviors=null,this.behaviors=Z(t),this.styleSheets=Y(t),this.styleClass="fast-style-class-"+ ++tt}addStylesTo(t){const e=this.styleSheets,r=this.styleClass;t=this.normalizeTarget(t);for(let s=0;s<e.length;s++){const n=document.createElement("style");n.innerHTML=e[s],n.className=r,t.append(n)}super.addStylesTo(t)}removeStylesFrom(t){const e=(t=this.normalizeTarget(t)).querySelectorAll(`.${this.styleClass}`);for(let r=0,s=e.length;r<s;++r)t.removeChild(e[r]);super.removeStylesFrom(t)}isAttachedTo(t){return super.isAttachedTo(this.normalizeTarget(t))}normalizeTarget(t){return t===document?document.body:t}}const rt=Object.freeze({locate:C()}),st={toView:t=>t?"true":"false",fromView:t=>null!=t&&"false"!==t&&!1!==t&&0!==t};class nt{constructor(t,e,r=e.toLowerCase(),s="reflect",n){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=r,this.mode=s,this.converter=n,this.fieldName=`_${e}`,this.callbackName=`${e}Changed`,this.hasCallback=this.callbackName in t.prototype,"boolean"===s&&void 0===n&&(this.converter=st)}setValue(t,e){const r=t[this.fieldName],s=this.converter;void 0!==s&&(e=s.fromView(e)),r!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](r,e),t.$fastController.notify(this.name))}getValue(t){return N.track(t,this.name),t[this.fieldName]}onAttributeChangedCallback(t,e){this.guards.has(t)||(this.guards.add(t),this.setValue(t,e),this.guards.delete(t))}tryReflectToAttribute(t){const e=this.mode,r=this.guards;r.has(t)||"fromView"===e||k.queueUpdate((()=>{r.add(t);const s=t[this.fieldName];switch(e){case"reflect":const e=this.converter;k.setAttribute(t,this.attribute,void 0!==e?e.toView(s):s);break;case"boolean":k.setBooleanAttribute(t,this.attribute,s)}r.delete(t)}))}static collect(t,...e){const r=[];e.push(rt.locate(t));for(let s=0,n=e.length;s<n;++s){const n=e[s];if(void 0!==n)for(let e=0,s=n.length;e<s;++e){const s=n[e];"string"==typeof s?r.push(new nt(t,s)):r.push(new nt(t,s.property,s.attribute,s.mode,s.converter))}}return r}}const it={mode:"open"},ot={},at=b.getById(4,(()=>{const t=new Map;return Object.freeze({register:e=>!t.has(e.type)&&(t.set(e.type,e),!0),getByType:e=>t.get(e)})}));class lt{constructor(t,e=t.definition){"string"==typeof e&&(e={name:e}),this.type=t,this.name=e.name,this.template=e.template;const r=nt.collect(t,e.attributes),s=new Array(r.length),n={},i={};for(let t=0,e=r.length;t<e;++t){const e=r[t];s[t]=e.attribute,n[e.name]=e,i[e.attribute]=e}this.attributes=r,this.observedAttributes=s,this.propertyLookup=n,this.attributeLookup=i,this.shadowOptions=void 0===e.shadowOptions?it:null===e.shadowOptions?void 0:Object.assign(Object.assign({},it),e.shadowOptions),this.elementOptions=void 0===e.elementOptions?ot:Object.assign(Object.assign({},ot),e.elementOptions),this.styles=void 0===e.styles?void 0:Array.isArray(e.styles)?Q.create(e.styles):e.styles instanceof Q?e.styles:Q.create([e.styles])}get isDefined(){return!!at.getByType(this.type)}define(t=customElements){const e=this.type;if(at.register(this)){const t=this.attributes,r=e.prototype;for(let e=0,s=t.length;e<s;++e)N.defineProperty(r,t[e]);Reflect.defineProperty(e,"observedAttributes",{value:this.observedAttributes,enumerable:!0})}return t.get(this.name)||t.define(this.name,e,this.elementOptions),this}}lt.forType=at.getByType;const ut=new WeakMap,ct={bubbles:!0,composed:!0,cancelable:!0};function ht(t){return t.shadowRoot||ut.get(t)||null}class dt extends R{constructor(t,e){super(t),this.boundObservables=null,this.behaviors=null,this.needsInitialization=!0,this._template=null,this._styles=null,this._isConnected=!1,this.$fastController=this,this.view=null,this.element=t,this.definition=e;const r=e.shadowOptions;if(void 0!==r){const e=t.attachShadow(r);"closed"===r.mode&&ut.set(t,e)}const s=N.getAccessors(t);if(s.length>0){const e=this.boundObservables=Object.create(null);for(let r=0,n=s.length;r<n;++r){const n=s[r].name,i=t[n];void 0!==i&&(delete t[n],e[n]=i)}}}get isConnected(){return N.track(this,"isConnected"),this._isConnected}setIsConnected(t){this._isConnected=t,N.notify(this,"isConnected")}get template(){return this._template}set template(t){this._template!==t&&(this._template=t,this.needsInitialization||this.renderTemplate(t))}get styles(){return this._styles}set styles(t){this._styles!==t&&(null!==this._styles&&this.removeStyles(this._styles),this._styles=t,this.needsInitialization||null===t||this.addStyles(t))}addStyles(t){const e=ht(this.element)||this.element.getRootNode();if(t instanceof HTMLStyleElement)e.append(t);else if(!t.isAttachedTo(e)){const r=t.behaviors;t.addStylesTo(e),null!==r&&this.addBehaviors(r)}}removeStyles(t){const e=ht(this.element)||this.element.getRootNode();if(t instanceof HTMLStyleElement)e.removeChild(t);else if(t.isAttachedTo(e)){const r=t.behaviors;t.removeStylesFrom(e),null!==r&&this.removeBehaviors(r)}}addBehaviors(t){const e=this.behaviors||(this.behaviors=new Map),r=t.length,s=[];for(let n=0;n<r;++n){const r=t[n];e.has(r)?e.set(r,e.get(r)+1):(e.set(r,1),s.push(r))}if(this._isConnected){const t=this.element;for(let e=0;e<s.length;++e)s[e].bind(t,x)}}removeBehaviors(t,e=!1){const r=this.behaviors;if(null===r)return;const s=t.length,n=[];for(let i=0;i<s;++i){const s=t[i];if(r.has(s)){const t=r.get(s)-1;0===t||e?r.delete(s)&&n.push(s):r.set(s,t)}}if(this._isConnected){const t=this.element;for(let e=0;e<n.length;++e)n[e].unbind(t)}}onConnectedCallback(){if(this._isConnected)return;const t=this.element;this.needsInitialization?this.finishInitialization():null!==this.view&&this.view.bind(t,x);const e=this.behaviors;if(null!==e)for(const[r]of e)r.bind(t,x);this.setIsConnected(!0)}onDisconnectedCallback(){if(!this._isConnected)return;this.setIsConnected(!1);const t=this.view;null!==t&&t.unbind();const e=this.behaviors;if(null!==e){const t=this.element;for(const[r]of e)r.unbind(t)}}onAttributeChangedCallback(t,e,r){const s=this.definition.attributeLookup[t];void 0!==s&&s.onAttributeChangedCallback(this.element,r)}emit(t,e,r){return!!this._isConnected&&this.element.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:e},ct),r)))}finishInitialization(){const t=this.element,e=this.boundObservables;if(null!==e){const r=Object.keys(e);for(let s=0,n=r.length;s<n;++s){const n=r[s];t[n]=e[n]}this.boundObservables=null}const r=this.definition;null===this._template&&(this.element.resolveTemplate?this._template=this.element.resolveTemplate():r.template&&(this._template=r.template||null)),null!==this._template&&this.renderTemplate(this._template),null===this._styles&&(this.element.resolveStyles?this._styles=this.element.resolveStyles():r.styles&&(this._styles=r.styles||null)),null!==this._styles&&this.addStyles(this._styles),this.needsInitialization=!1}renderTemplate(t){const e=this.element,r=ht(e)||e;null!==this.view?(this.view.dispose(),this.view=null):this.needsInitialization||k.removeChildNodes(r),t&&(this.view=t.render(e,r,e))}static forCustomElement(t){const e=t.$fastController;if(void 0!==e)return e;const r=lt.forType(t.constructor);if(void 0===r)throw new Error("Missing FASTElement definition.");return t.$fastController=new dt(t,r)}}function ft(t){return class extends t{constructor(){super(),dt.forCustomElement(this)}$emit(t,e,r){return this.$fastController.emit(t,e,r)}connectedCallback(){this.$fastController.onConnectedCallback()}disconnectedCallback(){this.$fastController.onDisconnectedCallback()}attributeChangedCallback(t,e,r){this.$fastController.onAttributeChangedCallback(t,e,r)}}}const gt=Object.assign(ft(HTMLElement),{from:t=>ft(t),define:(t,e)=>new lt(t,e).define().type});class pt{createCSS(){return""}createBehavior(){}}const vt=new Map([["FAST-TEXT-AREA","input"],["FAST-TEXT-FIELD","input"],["FOUNDATION-TEXT-AREA","input"],["FOUNDATION-TEXT-FIELD","input"],["INPUT","input"],["ZERO-TEXT-FIELD","input"]]);function yt(t){this.keyAttr||(this.target[this.targetName]=t)}function mt(t,e){this.keyAttr&&(this.updateTarget=yt),this.originalBind.call(this,t,e),this.target.addEventListener(this.changeEvent,this.changeHandler)}function bt(){this.originalUnbind.call(this),this.target.removeEventListener(this.changeEvent,this.changeHandler)}class wt extends X{constructor(t,e,r,s){super(t),this.keyAttr=s,this.conversionType=e,this.eventName=r}createBehavior(t){const e=super.createBehavior(t);return e.originalBind=e.bind,e.originalUnbind=e.unbind,e.keyAttr=this.keyAttr,e.bind=mt,e.unbind=bt,e.changeEvent=function(t,e){var r;const s=t.tagName;return"default"===e?null!==(r=vt.get(s))&&void 0!==r?r:"change":e}(t,this.eventName),e.changeHandler=()=>{const t="boolean"===this.conversionType?e.target.checked:e.target.value;if(this.keyAttr){const r=e.bindingObserver.last,s=e.target[this.keyAttr];r.propertySource[r.propertyName][s]=this.convert(t)}else{const r=e.bindingObserver.last;r.propertySource[r.propertyName]=this.convert(t)}},e}convert(t){if(null==t)return t;switch(this.conversionType){case"time":const e=new Date(t).getTime();return isNaN(e)?void 0:e;case"number":return t.length?Number(t):void 0;case"string":return String(t);case"boolean":return Boolean(t);default:return t}}}const Ct=10;function St(t){return!t||isNaN(t)?null:new Date(t).toISOString().slice(0,Ct)}const _t=19;function Dt(t){return!t||isNaN(t)?null:new Date(t).toISOString().slice(0,_t).replace("T"," ")}
2
+ /*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
15
+ ***************************************************************************** */
16
+ function Ft(t,e,r,s){var n,i=arguments.length,o=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,s);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(i<3?n(o):i>3?n(e,r,o):n(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o}const Ot=new Map;"metadata"in Reflect||(Reflect.metadata=function(t,e){return function(r){Reflect.defineMetadata(t,e,r)}},Reflect.defineMetadata=function(t,e,r){let s=Ot.get(r);void 0===s&&Ot.set(r,s=new Map),s.set(t,e)},Reflect.getOwnMetadata=function(t,e){const r=Ot.get(e);if(void 0!==r)return r.get(t)});class Vt{constructor(t,e){this.container=t,this.key=e}instance(t){return this.registerResolver(0,t)}singleton(t){return this.registerResolver(1,t)}transient(t){return this.registerResolver(2,t)}callback(t){return this.registerResolver(3,t)}cachedCallback(t){return this.registerResolver(3,Jt(t))}aliasTo(t){return this.registerResolver(5,t)}registerResolver(t,e){const{container:r,key:s}=this;return this.container=this.key=void 0,r.registerResolver(s,new Et(s,t,e))}}function kt(t){const e=t.slice(),r=Object.keys(t),s=r.length;let n;for(let i=0;i<s;++i)n=r[i],se(n)||(e[n]=t[n]);return e}const Tt=Object.freeze({none(t){throw Error(`${t.toString()} not registered, did you forget to add @singleton()?`)},singleton:t=>new Et(t,1,t),transient:t=>new Et(t,2,t)}),Rt=Object.freeze({default:Object.freeze({parentLocator:()=>null,responsibleForOwnerRequests:!1,defaultResolver:Tt.singleton})}),Nt=new Map;function At(t){return e=>Reflect.getOwnMetadata(t,e)}let Pt=null;const Lt=Object.freeze({createContainer:t=>new Gt(null,Object.assign({},Rt.default,t)),findResponsibleContainer(t){const e=t.$$container$$;return e&&e.responsibleForOwnerRequests?e:Lt.findParentContainer(t)},findParentContainer(t){const e=new CustomEvent(Ht,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return t.dispatchEvent(e),e.detail.container||Lt.getOrCreateDOMContainer()},getOrCreateDOMContainer:(t,e)=>t?t.$$container$$||new Gt(t,Object.assign({},Rt.default,e,{parentLocator:Lt.findParentContainer})):Pt||(Pt=new Gt(null,Object.assign({},Rt.default,e,{parentLocator:()=>null}))),getDesignParamtypes:At("design:paramtypes"),getAnnotationParamtypes:At("di:paramtypes"),getOrCreateAnnotationParamTypes(t){let e=this.getAnnotationParamtypes(t);return void 0===e&&Reflect.defineMetadata("di:paramtypes",e=[],t),e},getDependencies(t){let e=Nt.get(t);if(void 0===e){const r=t.inject;if(void 0===r){const r=Lt.getDesignParamtypes(t),s=Lt.getAnnotationParamtypes(t);if(void 0===r)if(void 0===s){const r=Object.getPrototypeOf(t);e="function"==typeof r&&r!==Function.prototype?kt(Lt.getDependencies(r)):[]}else e=kt(s);else if(void 0===s)e=kt(r);else{e=kt(r);let t,n=s.length;for(let r=0;r<n;++r)t=s[r],void 0!==t&&(e[r]=t);const i=Object.keys(s);let o;n=i.length;for(let t=0;t<n;++t)o=i[t],se(o)||(e[o]=s[o])}}else e=kt(r);Nt.set(t,e)}return e},defineProperty(t,e,r,s=!1){const n=`$di_${e}`;Reflect.defineProperty(t,e,{get:function(){let t=this[n];if(void 0===t){const i=this instanceof HTMLElement?Lt.findResponsibleContainer(this):Lt.getOrCreateDOMContainer();if(t=i.get(r),this[n]=t,s&&this instanceof gt){const s=this.$fastController,i=()=>{Lt.findResponsibleContainer(this).get(r)!==this[n]&&(this[n]=t,s.notify(e))};s.subscribe({handleChange:i},"isConnected")}}return t}})},createInterface(t,e){const r="function"==typeof t?t:e,s="string"==typeof t?t:t&&"friendlyName"in t&&t.friendlyName||Kt,n="string"!=typeof t&&(t&&"respectConnection"in t&&t.respectConnection||!1),i=function(t,e,r){if(null==t||void 0!==new.target)throw new Error(`No registration for interface: '${i.friendlyName}'`);if(e)Lt.defineProperty(t,e,i,n);else{Lt.getOrCreateAnnotationParamTypes(t)[r]=i}};return i.$isInterface=!0,i.friendlyName=null==s?"(anonymous)":s,null!=r&&(i.register=function(t,e){return r(new Vt(t,null!=e?e:i))}),i.toString=function(){return`InterfaceSymbol<${i.friendlyName}>`},i},inject:(...t)=>function(e,r,s){if("number"==typeof s){const r=Lt.getOrCreateAnnotationParamTypes(e),n=t[0];void 0!==n&&(r[s]=n)}else if(r)Lt.defineProperty(e,r,t[0]);else{const r=s?Lt.getOrCreateAnnotationParamTypes(s.value):Lt.getOrCreateAnnotationParamTypes(e);let n;for(let e=0;e<t.length;++e)n=t[e],void 0!==n&&(r[e]=n)}},transient:t=>(t.register=function(e){return Qt.transient(t,t).register(e)},t.registerInRequestor=!1,t),singleton:(t,e=Mt)=>(t.register=function(e){return Qt.singleton(t,t).register(e)},t.registerInRequestor=e.scoped,t)}),xt=Lt.createInterface("Container");Lt.inject;const Mt={scoped:!1};class Et{constructor(t,e,r){this.key=t,this.strategy=e,this.state=r,this.resolving=!1}get $isResolver(){return!0}register(t){return t.registerResolver(this.key,this)}resolve(t,e){switch(this.strategy){case 0:return this.state;case 1:if(this.resolving)throw new Error(`Cyclic dependency found: ${this.state.name}`);return this.resolving=!0,this.state=t.getFactory(this.state).construct(e),this.strategy=0,this.resolving=!1,this.state;case 2:{const r=t.getFactory(this.state);if(null===r)throw new Error(`Resolver for ${String(this.key)} returned a null factory`);return r.construct(e)}case 3:return this.state(t,e,this);case 4:return this.state[0].resolve(t,e);case 5:return e.get(this.state);default:throw new Error(`Invalid resolver strategy specified: ${this.strategy}.`)}}getFactory(t){var e,r,s;switch(this.strategy){case 1:case 2:return t.getFactory(this.state);case 5:return null!==(s=null===(r=null===(e=t.getResolver(this.state))||void 0===e?void 0:e.getFactory)||void 0===r?void 0:r.call(e,t))&&void 0!==s?s:null;default:return null}}}function jt(t){return this.get(t)}function It(t,e){return e(t)}class $t{constructor(t,e){this.Type=t,this.dependencies=e,this.transformers=null}construct(t,e){let r;return r=void 0===e?new this.Type(...this.dependencies.map(jt,t)):new this.Type(...this.dependencies.map(jt,t),...e),null==this.transformers?r:this.transformers.reduce(It,r)}registerTransformer(t){(this.transformers||(this.transformers=[])).push(t)}}const Bt={$isResolver:!0,resolve:(t,e)=>e};function zt(t){return"function"==typeof t.register}function Ut(t){return function(t){return zt(t)&&"boolean"==typeof t.registerInRequestor}(t)&&t.registerInRequestor}const Wt=new Set(["Array","ArrayBuffer","Boolean","DataView","Date","Error","EvalError","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Number","Object","Promise","RangeError","ReferenceError","RegExp","Set","SharedArrayBuffer","String","SyntaxError","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","URIError","WeakMap","WeakSet"]),Ht="__DI_LOCATE_PARENT__",qt=new Map;class Gt{constructor(t,e){this.owner=t,this.config=e,this._parent=void 0,this.registerDepth=0,this.context=null,null!==t&&(t.$$container$$=this),this.resolvers=new Map,this.resolvers.set(xt,Bt),t instanceof Node&&t.addEventListener(Ht,(t=>{t.composedPath()[0]!==this.owner&&(t.detail.container=this,t.stopImmediatePropagation())}))}get parent(){return void 0===this._parent&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return null===this.parent?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(t,...e){return this.context=t,this.register(...e),this.context=null,this}register(...t){if(100==++this.registerDepth)throw new Error("Unable to autoregister dependency");let e,r,s,n,i;const o=this.context;for(let a=0,l=t.length;a<l;++a)if(e=t[a],te(e))if(zt(e))e.register(this,o);else if(void 0!==e.prototype)Qt.singleton(e,e).register(this);else for(r=Object.keys(e),n=0,i=r.length;n<i;++n)s=e[r[n]],te(s)&&(zt(s)?s.register(this,o):this.register(s));return--this.registerDepth,this}registerResolver(t,e){Yt(t);const r=this.resolvers,s=r.get(t);return null==s?r.set(t,e):s instanceof Et&&4===s.strategy?s.state.push(e):r.set(t,new Et(t,4,[s,e])),e}registerTransformer(t,e){const r=this.getResolver(t);if(null==r)return!1;if(r.getFactory){const t=r.getFactory(this);return null!=t&&(t.registerTransformer(e),!0)}return!1}getResolver(t,e=!0){if(Yt(t),void 0!==t.resolve)return t;let r,s=this;for(;null!=s;){if(r=s.resolvers.get(t),null!=r)return r;if(null==s.parent){const r=Ut(t)?this:s;return e?this.jitRegister(t,r):null}s=s.parent}return null}has(t,e=!1){return!!this.resolvers.has(t)||!(!e||null==this.parent)&&this.parent.has(t,!0)}get(t){if(Yt(t),t.$isResolver)return t.resolve(this,this);let e,r=this;for(;null!=r;){if(e=r.resolvers.get(t),null!=e)return e.resolve(r,this);if(null==r.parent){const s=Ut(t)?this:r;return e=this.jitRegister(t,s),e.resolve(r,this)}r=r.parent}throw new Error(`Unable to resolve key: ${t}`)}getAll(t,e=!1){Yt(t);const r=this;let s,n=r;if(e){let e=w;for(;null!=n;)s=n.resolvers.get(t),null!=s&&(e=e.concat(Zt(s,n,r))),n=n.parent;return e}for(;null!=n;){if(s=n.resolvers.get(t),null!=s)return Zt(s,n,r);if(n=n.parent,null==n)return w}return w}getFactory(t){let e=qt.get(t);if(void 0===e){if(ee(t))throw new Error(`${t.name} is a native function and therefore cannot be safely constructed by DI. If this is intentional, please use a callback or cachedCallback resolver.`);qt.set(t,e=new $t(t,Lt.getDependencies(t)))}return e}registerFactory(t,e){qt.set(t,e)}createChild(t){return new Gt(null,Object.assign({},this.config,t,{parentLocator:()=>this}))}jitRegister(t,e){if("function"!=typeof t)throw new Error(`Attempted to jitRegister something that is not a constructor: '${t}'. Did you forget to register this dependency?`);if(Wt.has(t.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${t.name}. Did you forget to add @inject(Key)`);if(zt(t)){const r=t.register(e);if(!(r instanceof Object)||null==r.resolve){const r=e.resolvers.get(t);if(null!=r)return r;throw new Error("A valid resolver was not returned from the static register method")}return r}if(t.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${t.friendlyName}`);{const r=this.config.defaultResolver(t,e);return e.resolvers.set(t,r),r}}}const Xt=new WeakMap;function Jt(t){return function(e,r,s){if(Xt.has(s))return Xt.get(s);const n=t(e,r,s);return Xt.set(s,n),n}}const Qt=Object.freeze({instance:(t,e)=>new Et(t,0,e),singleton:(t,e)=>new Et(t,1,e),transient:(t,e)=>new Et(t,2,e),callback:(t,e)=>new Et(t,3,e),cachedCallback:(t,e)=>new Et(t,3,Jt(e)),aliasTo:(t,e)=>new Et(e,5,t)});function Yt(t){if(null==t)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function Zt(t,e,r){if(t instanceof Et&&4===t.strategy){const s=t.state;let n=s.length;const i=new Array(n);for(;n--;)i[n]=s[n].resolve(e,r);return i}return[t.resolve(e,r)]}const Kt="(anonymous)";function te(t){return"object"==typeof t&&null!==t||"function"==typeof t}const ee=function(){const t=new WeakMap;let e=!1,r="",s=0;return function(n){return e=t.get(n),void 0===e&&(r=n.toString(),s=r.length,e=s>=29&&s<=100&&125===r.charCodeAt(s-1)&&r.charCodeAt(s-2)<=32&&93===r.charCodeAt(s-3)&&101===r.charCodeAt(s-4)&&100===r.charCodeAt(s-5)&&111===r.charCodeAt(s-6)&&99===r.charCodeAt(s-7)&&32===r.charCodeAt(s-8)&&101===r.charCodeAt(s-9)&&118===r.charCodeAt(s-10)&&105===r.charCodeAt(s-11)&&116===r.charCodeAt(s-12)&&97===r.charCodeAt(s-13)&&110===r.charCodeAt(s-14)&&88===r.charCodeAt(s-15),t.set(n,e)),e}}(),re={};function se(t){switch(typeof t){case"number":return t>=0&&(0|t)===t;case"string":{const e=re[t];if(void 0!==e)return e;const r=t.length;if(0===r)return re[t]=!1;let s=0;for(let e=0;e<r;++e)if(s=t.charCodeAt(e),0===e&&48===s&&r>1||s<48||s>57)return re[t]=!1;return re[t]=!0}default:return!1}}var ne;function ie(t){const e=t.parentElement;if(e)return e;{const e=t.getRootNode();if(e.host instanceof HTMLElement)return e.host}return null}!function(t){t.ltr="ltr",t.rtl="rtl"}(ne||(ne={}));const oe=document.createElement("div");class ae{setProperty(t,e){k.queueUpdate((()=>this.target.setProperty(t,e)))}removeProperty(t){k.queueUpdate((()=>this.target.removeProperty(t)))}}class le extends ae{constructor(){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}}class ue extends ae{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:t}=this.style;if(t){const e=t.insertRule(":root{}",t.cssRules.length);this.target=t.cssRules[e].style}}}class ce{constructor(t){this.store=new Map,this.target=null;const e=t.$fastController;this.style=document.createElement("style"),e.addStyles(this.style),N.getNotifier(e).subscribe(this,"isConnected"),this.handleChange(e,"isConnected")}targetChanged(){if(null!==this.target)for(const[t,e]of this.store.entries())this.target.setProperty(t,e)}setProperty(t,e){this.store.set(t,e),k.queueUpdate((()=>{null!==this.target&&this.target.setProperty(t,e)}))}removeProperty(t){this.store.delete(t),k.queueUpdate((()=>{null!==this.target&&this.target.removeProperty(t)}))}handleChange(t,e){const{sheet:r}=this.style;if(r){const t=r.insertRule(":host{}",r.cssRules.length);this.target=r.cssRules[t].style}else this.target=null}}Ft([A],ce.prototype,"target",void 0);class he{constructor(t){this.target=t.style}setProperty(t,e){k.queueUpdate((()=>this.target.setProperty(t,e)))}removeProperty(t){k.queueUpdate((()=>this.target.removeProperty(t)))}}class de{setProperty(t,e){de.properties[t]=e;for(const r of de.roots.values())pe.getOrCreate(de.normalizeRoot(r)).setProperty(t,e)}removeProperty(t){delete de.properties[t];for(const e of de.roots.values())pe.getOrCreate(de.normalizeRoot(e)).removeProperty(t)}static registerRoot(t){const{roots:e}=de;if(!e.has(t)){e.add(t);const r=pe.getOrCreate(this.normalizeRoot(t));for(const t in de.properties)r.setProperty(t,de.properties[t])}}static unregisterRoot(t){const{roots:e}=de;if(e.has(t)){e.delete(t);const r=pe.getOrCreate(de.normalizeRoot(t));for(const t in de.properties)r.removeProperty(t)}}static normalizeRoot(t){return t===oe?document:t}}de.roots=new Set,de.properties={};const fe=new WeakMap,ge=k.supportsAdoptedStyleSheets?class extends ae{constructor(t){super();const e=new CSSStyleSheet;this.target=e.cssRules[e.insertRule(":host{}")].style,t.$fastController.addStyles(Q.create([e]))}}:ce,pe=Object.freeze({getOrCreate(t){if(fe.has(t))return fe.get(t);let e;return t===oe?e=new de:t instanceof Document?e=k.supportsAdoptedStyleSheets?new le:new ue:e=t instanceof gt?new ge(t):new he(t),fe.set(t,e),e}});class ve extends pt{constructor(t){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=t.name,null!==t.cssCustomPropertyName&&(this.cssCustomProperty=`--${t.cssCustomPropertyName}`,this.cssVar=`var(${this.cssCustomProperty})`),this.id=ve.uniqueId(),ve.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(t){return new ve({name:"string"==typeof t?t:t.name,cssCustomPropertyName:"string"==typeof t?t:void 0===t.cssCustomPropertyName?t.name:t.cssCustomPropertyName})}static isCSSDesignToken(t){return"string"==typeof t.cssCustomProperty}static isDerivedDesignTokenValue(t){return"function"==typeof t}static getTokenById(t){return ve.tokensById.get(t)}getOrCreateSubscriberSet(t=this){return this.subscribers.get(t)||this.subscribers.set(t,new Set)&&this.subscribers.get(t)}createCSS(){return this.cssVar||""}getValueFor(t){const e=Ce.getOrCreate(t).get(this);if(void 0!==e)return e;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${t} or an ancestor of ${t}.`)}setValueFor(t,e){return this._appliedTo.add(t),e instanceof ve&&(e=this.alias(e)),Ce.getOrCreate(t).set(this,e),this}deleteValueFor(t){return this._appliedTo.delete(t),Ce.existsFor(t)&&Ce.getOrCreate(t).delete(this),this}withDefault(t){return this.setValueFor(oe,t),this}subscribe(t,e){const r=this.getOrCreateSubscriberSet(e);e&&!Ce.existsFor(e)&&Ce.getOrCreate(e),r.has(t)||r.add(t)}unsubscribe(t,e){const r=this.subscribers.get(e||this);r&&r.has(t)&&r.delete(t)}notify(t){const e=Object.freeze({token:this,target:t});this.subscribers.has(this)&&this.subscribers.get(this).forEach((t=>t.handleChange(e))),this.subscribers.has(t)&&this.subscribers.get(t).forEach((t=>t.handleChange(e)))}alias(t){return e=>t.getValueFor(e)}}ve.uniqueId=(()=>{let t=0;return()=>(t++,t.toString(16))})(),ve.tokensById=new Map;class ye{constructor(t,e,r){this.source=t,this.token=e,this.node=r,this.dependencies=new Set,this.observer=N.binding(t,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,x))}}class me{constructor(){this.values=new Map}set(t,e){this.values.get(t)!==e&&(this.values.set(t,e),N.getNotifier(this).notify(t.id))}get(t){return N.track(this,t.id),this.values.get(t)}delete(t){this.values.delete(t)}all(){return this.values.entries()}}const be=new WeakMap,we=new WeakMap;class Ce{constructor(t){this.target=t,this.store=new me,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(t,e)=>{const r=ve.getTokenById(e);if(r&&(r.notify(this.target),ve.isCSSDesignToken(r))){const e=this.parent,s=this.isReflecting(r);if(e){const n=e.get(r),i=t.get(r);n===i||s?n===i&&s&&this.stopReflectToCSS(r):this.reflectToCSS(r)}else s||this.reflectToCSS(r)}}},be.set(t,this),N.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),t instanceof gt?t.$fastController.addBehaviors([this]):t.isConnected&&this.bind()}static getOrCreate(t){return be.get(t)||new Ce(t)}static existsFor(t){return be.has(t)}static findParent(t){if(oe!==t.target){let e=ie(t.target);for(;null!==e;){if(be.has(e))return be.get(e);e=ie(e)}return Ce.getOrCreate(oe)}return null}static findClosestAssignedNode(t,e){let r=e;do{if(r.has(t))return r;r=r.parent?r.parent:r.target!==oe?Ce.getOrCreate(oe):null}while(null!==r);return null}get parent(){return we.get(this)||null}has(t){return this.assignedValues.has(t)}get(t){const e=this.store.get(t);if(void 0!==e)return e;const r=this.getRaw(t);return void 0!==r?(this.hydrate(t,r),this.get(t)):void 0}getRaw(t){var e;return this.assignedValues.has(t)?this.assignedValues.get(t):null===(e=Ce.findClosestAssignedNode(t,this))||void 0===e?void 0:e.getRaw(t)}set(t,e){ve.isDerivedDesignTokenValue(this.assignedValues.get(t))&&this.tearDownBindingObserver(t),this.assignedValues.set(t,e),ve.isDerivedDesignTokenValue(e)?this.setupBindingObserver(t,e):this.store.set(t,e)}delete(t){this.assignedValues.delete(t),this.tearDownBindingObserver(t);const e=this.getRaw(t);e?this.hydrate(t,e):this.store.delete(t)}bind(){const t=Ce.findParent(this);t&&t.appendChild(this);for(const t of this.assignedValues.keys())t.notify(this.target)}unbind(){if(this.parent){we.get(this).removeChild(this)}}appendChild(t){t.parent&&we.get(t).removeChild(t);const e=this.children.filter((e=>t.contains(e)));we.set(t,this),this.children.push(t),e.forEach((e=>t.appendChild(e))),N.getNotifier(this.store).subscribe(t);for(const[e,r]of this.store.all())t.hydrate(e,this.bindingObservers.has(e)?this.getRaw(e):r)}removeChild(t){const e=this.children.indexOf(t);return-1!==e&&this.children.splice(e,1),N.getNotifier(this.store).unsubscribe(t),t.parent===this&&we.delete(t)}contains(t){return function(t,e){let r=e;for(;null!==r;){if(r===t)return!0;r=ie(r)}return!1}(this.target,t.target)}reflectToCSS(t){this.isReflecting(t)||(this.reflecting.add(t),Ce.cssCustomPropertyReflector.startReflection(t,this.target))}stopReflectToCSS(t){this.isReflecting(t)&&(this.reflecting.delete(t),Ce.cssCustomPropertyReflector.stopReflection(t,this.target))}isReflecting(t){return this.reflecting.has(t)}handleChange(t,e){const r=ve.getTokenById(e);r&&this.hydrate(r,this.getRaw(r))}hydrate(t,e){if(!this.has(t)){const r=this.bindingObservers.get(t);ve.isDerivedDesignTokenValue(e)?r?r.source!==e&&(this.tearDownBindingObserver(t),this.setupBindingObserver(t,e)):this.setupBindingObserver(t,e):(r&&this.tearDownBindingObserver(t),this.store.set(t,e))}}setupBindingObserver(t,e){const r=new ye(e,t,this);return this.bindingObservers.set(t,r),r}tearDownBindingObserver(t){return!!this.bindingObservers.has(t)&&(this.bindingObservers.get(t).disconnect(),this.bindingObservers.delete(t),!0)}}Ce.cssCustomPropertyReflector=new class{startReflection(t,e){t.subscribe(this,e),this.handleChange({token:t,target:e})}stopReflection(t,e){t.unsubscribe(this,e),this.remove(t,e)}handleChange(t){const{token:e,target:r}=t;this.add(e,r)}add(t,e){pe.getOrCreate(e).setProperty(t.cssCustomProperty,this.resolveCSSValue(Ce.getOrCreate(e).get(t)))}remove(t,e){pe.getOrCreate(e).removeProperty(t.cssCustomProperty)}resolveCSSValue(t){return t&&"function"==typeof t.createCSS?t.createCSS():t}},Ft([A],Ce.prototype,"children",void 0);const Se=Object.freeze({create:function(t){return ve.from(t)},notifyConnection:t=>!(!t.isConnected||!Ce.existsFor(t))&&(Ce.getOrCreate(t).bind(),!0),notifyDisconnection:t=>!(t.isConnected||!Ce.existsFor(t))&&(Ce.getOrCreate(t).unbind(),!0),registerRoot(t=oe){de.registerRoot(t)},unregisterRoot(t=oe){de.unregisterRoot(t)}});class _e{constructor(){this.fromDTO=t=>{var e,r,s;return{serverRowMetadata:{operation:null===(r=null===(e=null==t?void 0:t.DETAILS)||void 0===e?void 0:e.OPERATION)||void 0===r?void 0:r.toLowerCase(),rowRef:null===(s=null==t?void 0:t.DETAILS)||void 0===s?void 0:s.ROW_REF}}},this.toDTO=t=>{var e,r,s;return{DETAILS:{OPERATION:null===(r=null===(e=null==t?void 0:t.serverRowMetadata)||void 0===e?void 0:e.operation)||void 0===r?void 0:r.toUpperCase(),ROW_REF:null===(s=null==t?void 0:t.serverRowMetadata)||void 0===s?void 0:s.rowRef}}}}}const De=Lt.createInterface((t=>t.singleton(_e)));var Fe;t.PendingStateEvents=void 0,(Fe=t.PendingStateEvents||(t.PendingStateEvents={})).state="pending-state",Fe.error="pending-state-error";class Oe{constructor(){this.serialize=t=>JSON.stringify(t)}deserialize(t){return t&&t.ok?t.text().then((t=>JSON.parse(t))):(t&&t.data&&(t=t.data),JSON.parse(t))}}const Ve=Lt.createInterface((t=>t.singleton(Oe)));function ke(t,e,r){return isNaN(t)||t<=e?e:t>=r?r:t}function Te(t,e,r){return isNaN(t)||t<=e?0:t>=r?1:t/(r-e)}function Re(t,e,r){return isNaN(t)?e:e+t*(r-e)}function Ne(t){return t*(Math.PI/180)}function Ae(t,e,r){return isNaN(t)||t<=0?e:t>=1?r:e+t*(r-e)}function Pe(t,e,r){if(t<=0)return e%360;if(t>=1)return r%360;const s=(e-r+360)%360;return s<=(r-e+360)%360?(e-s*t+360)%360:(e+s*t+360)%360}function Le(t,e){const r=Math.pow(10,e);return Math.round(t*r)/r}class xe{constructor(t,e,r){this.h=t,this.s=e,this.l=r}static fromObject(t){return!t||isNaN(t.h)||isNaN(t.s)||isNaN(t.l)?null:new xe(t.h,t.s,t.l)}equalValue(t){return this.h===t.h&&this.s===t.s&&this.l===t.l}roundToPrecision(t){return new xe(Le(this.h,t),Le(this.s,t),Le(this.l,t))}toObject(){return{h:this.h,s:this.s,l:this.l}}}class Me{constructor(t,e,r){this.h=t,this.s=e,this.v=r}static fromObject(t){return!t||isNaN(t.h)||isNaN(t.s)||isNaN(t.v)?null:new Me(t.h,t.s,t.v)}equalValue(t){return this.h===t.h&&this.s===t.s&&this.v===t.v}roundToPrecision(t){return new Me(Le(this.h,t),Le(this.s,t),Le(this.v,t))}toObject(){return{h:this.h,s:this.s,v:this.v}}}class Ee{constructor(t,e,r){this.l=t,this.a=e,this.b=r}static fromObject(t){return!t||isNaN(t.l)||isNaN(t.a)||isNaN(t.b)?null:new Ee(t.l,t.a,t.b)}equalValue(t){return this.l===t.l&&this.a===t.a&&this.b===t.b}roundToPrecision(t){return new Ee(Le(this.l,t),Le(this.a,t),Le(this.b,t))}toObject(){return{l:this.l,a:this.a,b:this.b}}}Ee.epsilon=216/24389,Ee.kappa=24389/27;class je{constructor(t,e,r){this.l=t,this.c=e,this.h=r}static fromObject(t){return!t||isNaN(t.l)||isNaN(t.c)||isNaN(t.h)?null:new je(t.l,t.c,t.h)}equalValue(t){return this.l===t.l&&this.c===t.c&&this.h===t.h}roundToPrecision(t){return new je(Le(this.l,t),Le(this.c,t),Le(this.h,t))}toObject(){return{l:this.l,c:this.c,h:this.h}}}class Ie{constructor(t,e,r,s){this.r=t,this.g=e,this.b=r,this.a="number"!=typeof s||isNaN(s)?1:s}static fromObject(t){return!t||isNaN(t.r)||isNaN(t.g)||isNaN(t.b)?null:new Ie(t.r,t.g,t.b,t.a)}equalValue(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}toStringHexRGB(){return"#"+[this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringHexRGBA(){return this.toStringHexRGB()+this.formatHexValue(this.a)}toStringHexARGB(){return"#"+[this.a,this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringWebRGB(){return`rgb(${Math.round(Re(this.r,0,255))},${Math.round(Re(this.g,0,255))},${Math.round(Re(this.b,0,255))})`}toStringWebRGBA(){return`rgba(${Math.round(Re(this.r,0,255))},${Math.round(Re(this.g,0,255))},${Math.round(Re(this.b,0,255))},${ke(this.a,0,1)})`}roundToPrecision(t){return new Ie(Le(this.r,t),Le(this.g,t),Le(this.b,t),Le(this.a,t))}clamp(){return new Ie(ke(this.r,0,1),ke(this.g,0,1),ke(this.b,0,1),ke(this.a,0,1))}toObject(){return{r:this.r,g:this.g,b:this.b,a:this.a}}formatHexValue(t){return function(t){const e=Math.round(ke(t,0,255)).toString(16);return 1===e.length?"0"+e:e}(Re(t,0,255))}}class $e{constructor(t,e,r){this.x=t,this.y=e,this.z=r}static fromObject(t){return!t||isNaN(t.x)||isNaN(t.y)||isNaN(t.z)?null:new $e(t.x,t.y,t.z)}equalValue(t){return this.x===t.x&&this.y===t.y&&this.z===t.z}roundToPrecision(t){return new $e(Le(this.x,t),Le(this.y,t),Le(this.z,t))}toObject(){return{x:this.x,y:this.y,z:this.z}}}function Be(t){return.2126*t.r+.7152*t.g+.0722*t.b}function ze(t){function e(t){return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return Be(new Ie(e(t.r),e(t.g),e(t.b),1))}$e.whitePoint=new $e(.95047,1,1.08883);const Ue=(t,e)=>(t+.05)/(e+.05);function We(t,e){const r=ze(t),s=ze(e);return r>s?Ue(r,s):Ue(s,r)}function He(t){const e=Math.max(t.r,t.g,t.b),r=Math.min(t.r,t.g,t.b),s=e-r;let n=0;0!==s&&(n=e===t.r?(t.g-t.b)/s%6*60:e===t.g?60*((t.b-t.r)/s+2):60*((t.r-t.g)/s+4)),n<0&&(n+=360);const i=(e+r)/2;let o=0;return 0!==s&&(o=s/(1-Math.abs(2*i-1))),new xe(n,o,i)}function qe(t,e=1){const r=(1-Math.abs(2*t.l-1))*t.s,s=r*(1-Math.abs(t.h/60%2-1)),n=t.l-r/2;let i=0,o=0,a=0;return t.h<60?(i=r,o=s,a=0):t.h<120?(i=s,o=r,a=0):t.h<180?(i=0,o=r,a=s):t.h<240?(i=0,o=s,a=r):t.h<300?(i=s,o=0,a=r):t.h<360&&(i=r,o=0,a=s),new Ie(i+n,o+n,a+n,e)}function Ge(t){const e=Math.max(t.r,t.g,t.b),r=e-Math.min(t.r,t.g,t.b);let s=0;0!==r&&(s=e===t.r?(t.g-t.b)/r%6*60:e===t.g?60*((t.b-t.r)/r+2):60*((t.r-t.g)/r+4)),s<0&&(s+=360);let n=0;return 0!==e&&(n=r/e),new Me(s,n,e)}function Xe(t){let e=0;(Math.abs(t.b)>.001||Math.abs(t.a)>.001)&&(e=function(t){return t*(180/Math.PI)}(Math.atan2(t.b,t.a))),e<0&&(e+=360);const r=Math.sqrt(t.a*t.a+t.b*t.b);return new je(t.l,r,e)}function Je(t){function e(t){return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}const r=e(t.r),s=e(t.g),n=e(t.b);return new $e(.4124564*r+.3575761*s+.1804375*n,.2126729*r+.7151522*s+.072175*n,.0193339*r+.119192*s+.9503041*n)}function Qe(t,e=1){function r(t){return t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055}const s=r(3.2404542*t.x-1.5371385*t.y-.4985314*t.z),n=r(-.969266*t.x+1.8760108*t.y+.041556*t.z),i=r(.0556434*t.x-.2040259*t.y+1.0572252*t.z);return new Ie(s,n,i,e)}function Ye(t){return function(t){function e(t){return t>Ee.epsilon?Math.pow(t,1/3):(Ee.kappa*t+16)/116}const r=e(t.x/$e.whitePoint.x),s=e(t.y/$e.whitePoint.y),n=e(t.z/$e.whitePoint.z);return new Ee(116*s-16,500*(r-s),200*(s-n))}(Je(t))}function Ze(t,e=1){return Qe(function(t){const e=(t.l+16)/116,r=e+t.a/500,s=e-t.b/200,n=Math.pow(r,3),i=Math.pow(e,3),o=Math.pow(s,3);let a=0;a=n>Ee.epsilon?n:(116*r-16)/Ee.kappa;let l=0;l=t.l>Ee.epsilon*Ee.kappa?i:t.l/Ee.kappa;let u=0;return u=o>Ee.epsilon?o:(116*s-16)/Ee.kappa,a=$e.whitePoint.x*a,l=$e.whitePoint.y*l,u=$e.whitePoint.z*u,new $e(a,l,u)}(t),e)}function Ke(t){return Xe(Ye(t))}function tr(t,e=1){return Ze(function(t){let e=0,r=0;return 0!==t.h&&(e=Math.cos(Ne(t.h))*t.c,r=Math.sin(Ne(t.h))*t.c),new Ee(t.l,e,r)}(t),e)}function er(t,e,r=18){const s=Ke(t);let n=s.c+e*r;return n<0&&(n=0),tr(new je(s.l,n,s.h))}function rr(t,e){return t*e}function sr(t,e){return new Ie(rr(t.r,e.r),rr(t.g,e.g),rr(t.b,e.b),1)}function nr(t,e){return ke(t<.5?2*e*t:1-2*(1-e)*(1-t),0,1)}function ir(t,e){return new Ie(nr(t.r,e.r),nr(t.g,e.g),nr(t.b,e.b),1)}var or,ar;function lr(t,e,r,s){if(isNaN(t)||t<=0)return r;if(t>=1)return s;switch(e){case ar.HSL:return qe(function(t,e,r){return isNaN(t)||t<=0?e:t>=1?r:new xe(Pe(t,e.h,r.h),Ae(t,e.s,r.s),Ae(t,e.l,r.l))}(t,He(r),He(s)));case ar.HSV:return function(t,e=1){const r=t.s*t.v,s=r*(1-Math.abs(t.h/60%2-1)),n=t.v-r;let i=0,o=0,a=0;return t.h<60?(i=r,o=s,a=0):t.h<120?(i=s,o=r,a=0):t.h<180?(i=0,o=r,a=s):t.h<240?(i=0,o=s,a=r):t.h<300?(i=s,o=0,a=r):t.h<360&&(i=r,o=0,a=s),new Ie(i+n,o+n,a+n,e)}(function(t,e,r){return isNaN(t)||t<=0?e:t>=1?r:new Me(Pe(t,e.h,r.h),Ae(t,e.s,r.s),Ae(t,e.v,r.v))}(t,Ge(r),Ge(s)));case ar.XYZ:return Qe(function(t,e,r){return isNaN(t)||t<=0?e:t>=1?r:new $e(Ae(t,e.x,r.x),Ae(t,e.y,r.y),Ae(t,e.z,r.z))}(t,Je(r),Je(s)));case ar.LAB:return Ze(function(t,e,r){return isNaN(t)||t<=0?e:t>=1?r:new Ee(Ae(t,e.l,r.l),Ae(t,e.a,r.a),Ae(t,e.b,r.b))}(t,Ye(r),Ye(s)));case ar.LCH:return tr(function(t,e,r){return isNaN(t)||t<=0?e:t>=1?r:new je(Ae(t,e.l,r.l),Ae(t,e.c,r.c),Pe(t,e.h,r.h))}(t,Ke(r),Ke(s)));default:return function(t,e,r){return isNaN(t)||t<=0?e:t>=1?r:new Ie(Ae(t,e.r,r.r),Ae(t,e.g,r.g),Ae(t,e.b,r.b),Ae(t,e.a,r.a))}(t,r,s)}}!function(t){t[t.Burn=0]="Burn",t[t.Color=1]="Color",t[t.Darken=2]="Darken",t[t.Dodge=3]="Dodge",t[t.Lighten=4]="Lighten",t[t.Multiply=5]="Multiply",t[t.Overlay=6]="Overlay",t[t.Screen=7]="Screen"}(or||(or={})),function(t){t[t.RGB=0]="RGB",t[t.HSL=1]="HSL",t[t.HSV=2]="HSV",t[t.XYZ=3]="XYZ",t[t.LAB=4]="LAB",t[t.LCH=5]="LCH"}(ar||(ar={}));class ur{constructor(t){if(null==t||0===t.length)throw new Error("The stops argument must be non-empty");this.stops=this.sortColorScaleStops(t)}static createBalancedColorScale(t){if(null==t||0===t.length)throw new Error("The colors argument must be non-empty");const e=new Array(t.length);for(let r=0;r<t.length;r++)0===r?e[r]={color:t[r],position:0}:r===t.length-1?e[r]={color:t[r],position:1}:e[r]={color:t[r],position:r*(1/(t.length-1))};return new ur(e)}getColor(t,e=ar.RGB){if(1===this.stops.length)return this.stops[0].color;if(t<=0)return this.stops[0].color;if(t>=1)return this.stops[this.stops.length-1].color;let r=0;for(let e=0;e<this.stops.length;e++)this.stops[e].position<=t&&(r=e);let s=r+1;s>=this.stops.length&&(s=this.stops.length-1);return lr((t-this.stops[r].position)*(1/(this.stops[s].position-this.stops[r].position)),e,this.stops[r].color,this.stops[s].color)}trim(t,e,r=ar.RGB){if(t<0||e>1||e<t)throw new Error("Invalid bounds");if(t===e)return new ur([{color:this.getColor(t,r),position:0}]);const s=[];for(let r=0;r<this.stops.length;r++)this.stops[r].position>=t&&this.stops[r].position<=e&&s.push(this.stops[r]);if(0===s.length)return new ur([{color:this.getColor(t),position:t},{color:this.getColor(e),position:e}]);s[0].position!==t&&s.unshift({color:this.getColor(t),position:t}),s[s.length-1].position!==e&&s.push({color:this.getColor(e),position:e});const n=e-t,i=new Array(s.length);for(let e=0;e<s.length;e++)i[e]={color:s[e].color,position:(s[e].position-t)/n};return new ur(i)}findNextColor(t,e,r=!1,s=ar.RGB,n=.005,i=32){isNaN(t)||t<=0?t=0:t>=1&&(t=1);const o=this.getColor(t,s),a=r?0:1;if(We(o,this.getColor(a,s))<=e)return a;let l=r?0:t,u=r?t:0,c=a,h=0;for(;h<=i;){c=Math.abs(u-l)/2+l;const t=We(o,this.getColor(c,s));if(Math.abs(t-e)<=n)return c;t>e?r?l=c:u=c:r?u=c:l=c,h++}return c}clone(){const t=new Array(this.stops.length);for(let e=0;e<t.length;e++)t[e]={color:this.stops[e].color,position:this.stops[e].position};return new ur(t)}sortColorScaleStops(t){return t.sort(((t,e)=>{const r=t.position,s=e.position;return r<s?-1:r>s?1:0}))}}const cr=/^#((?:[0-9a-f]{6}|[0-9a-f]{3}))$/i;function hr(t){const e=cr.exec(t);if(null===e)return null;let r=e[1];if(3===r.length){const t=r.charAt(0),e=r.charAt(1),s=r.charAt(2);r=t.concat(t,e,e,s,s)}const s=parseInt(r,16);return isNaN(s)?null:new Ie(Te((16711680&s)>>>16,0,255),Te((65280&s)>>>8,0,255),Te(255&s,0,255),1)}class dr{constructor(t){this.config=Object.assign({},dr.defaultPaletteConfig,t),this.palette=[],this.updatePaletteColors()}updatePaletteGenerationValues(t){let e=!1;for(const r in t)this.config[r]&&(this.config[r].equalValue?this.config[r].equalValue(t[r])||(this.config[r]=t[r],e=!0):t[r]!==this.config[r]&&(this.config[r]=t[r],e=!0));return e&&this.updatePaletteColors(),e}updatePaletteColors(){const t=this.generatePaletteColorScale();for(let e=0;e<this.config.steps;e++)this.palette[e]=t.getColor(e/(this.config.steps-1),this.config.interpolationMode)}generatePaletteColorScale(){const t=He(this.config.baseColor),e=new ur([{position:0,color:this.config.scaleColorLight},{position:.5,color:this.config.baseColor},{position:1,color:this.config.scaleColorDark}]).trim(this.config.clipLight,1-this.config.clipDark);let r=e.getColor(0),s=e.getColor(1);if(t.s>=this.config.saturationAdjustmentCutoff&&(r=er(r,this.config.saturationLight),s=er(s,this.config.saturationDark)),0!==this.config.multiplyLight){const t=sr(this.config.baseColor,r);r=lr(this.config.multiplyLight,this.config.interpolationMode,r,t)}if(0!==this.config.multiplyDark){const t=sr(this.config.baseColor,s);s=lr(this.config.multiplyDark,this.config.interpolationMode,s,t)}if(0!==this.config.overlayLight){const t=ir(this.config.baseColor,r);r=lr(this.config.overlayLight,this.config.interpolationMode,r,t)}if(0!==this.config.overlayDark){const t=ir(this.config.baseColor,s);s=lr(this.config.overlayDark,this.config.interpolationMode,s,t)}return this.config.baseScalePosition?this.config.baseScalePosition<=0?new ur([{position:0,color:this.config.baseColor},{position:1,color:s.clamp()}]):this.config.baseScalePosition>=1?new ur([{position:0,color:r.clamp()},{position:1,color:this.config.baseColor}]):new ur([{position:0,color:r.clamp()},{position:this.config.baseScalePosition,color:this.config.baseColor},{position:1,color:s.clamp()}]):new ur([{position:0,color:r.clamp()},{position:.5,color:this.config.baseColor},{position:1,color:s.clamp()}])}}dr.defaultPaletteConfig={baseColor:hr("#808080"),steps:11,interpolationMode:ar.RGB,scaleColorLight:new Ie(1,1,1,1),scaleColorDark:new Ie(0,0,0,1),clipLight:.185,clipDark:.16,saturationAdjustmentCutoff:.05,saturationLight:.35,saturationDark:1.25,overlayLight:0,overlayDark:.25,multiplyLight:0,multiplyDark:0,baseScalePosition:.5},dr.greyscalePaletteConfig={baseColor:hr("#808080"),steps:11,interpolationMode:ar.RGB,scaleColorLight:new Ie(1,1,1,1),scaleColorDark:new Ie(0,0,0,1),clipLight:0,clipDark:0,saturationAdjustmentCutoff:0,saturationLight:0,saturationDark:0,overlayLight:0,overlayDark:0,multiplyLight:0,multiplyDark:0,baseScalePosition:.5},dr.defaultPaletteConfig.scaleColorLight,dr.defaultPaletteConfig.scaleColorDark;class fr{constructor(t){this.palette=[],this.config=Object.assign({},fr.defaultPaletteConfig,t),this.regenPalettes()}regenPalettes(){let t=this.config.steps;(isNaN(t)||t<3)&&(t=3);const e=.14,r=new Ie(e,e,e,1),s=new dr(Object.assign(Object.assign({},dr.greyscalePaletteConfig),{baseColor:r,baseScalePosition:86/94,steps:t})).palette,n=(Be(this.config.baseColor)+He(this.config.baseColor).l)/2,i=this.matchRelativeLuminanceIndex(n,s)/(t-1),o=this.matchRelativeLuminanceIndex(e,s)/(t-1),a=He(this.config.baseColor),l=qe(xe.fromObject({h:a.h,s:a.s,l:e})),u=qe(xe.fromObject({h:a.h,s:a.s,l:.06})),c=new Array(5);c[0]={position:0,color:new Ie(1,1,1,1)},c[1]={position:i,color:this.config.baseColor},c[2]={position:o,color:l},c[3]={position:.99,color:u},c[4]={position:1,color:new Ie(0,0,0,1)};const h=new ur(c);this.palette=new Array(t);for(let e=0;e<t;e++){const r=h.getColor(e/(t-1),ar.RGB);this.palette[e]=r}}matchRelativeLuminanceIndex(t,e){let r=Number.MAX_VALUE,s=0,n=0;const i=e.length;for(;n<i;n++){const i=Math.abs(Be(e[n])-t);i<r&&(r=i,s=n)}return s}}function gr(t,e){const r=t.relativeLuminance>e.relativeLuminance?t:e,s=t.relativeLuminance>e.relativeLuminance?e:t;return(r.relativeLuminance+.05)/(s.relativeLuminance+.05)}fr.defaultPaletteConfig={baseColor:hr("#808080"),steps:94};const pr=Object.freeze({create:(t,e,r)=>new vr(t,e,r),from:t=>new vr(t.r,t.g,t.b)});class vr extends Ie{constructor(t,e,r){super(t,e,r,1),this.toColorString=this.toStringHexRGB,this.contrast=gr.bind(null,this),this.createCSS=this.toColorString,this.relativeLuminance=ze(this)}static fromObject(t){return new vr(t.r,t.g,t.b)}}function yr(t,e,r=0,s=t.length-1){if(s===r)return t[r];const n=Math.floor((s-r)/2)+r;return e(t[n])?yr(t,e,r,n):yr(t,e,n+1,s)}const mr=(-.1+Math.sqrt(.21))/2;function br(t){return function(t){return t.relativeLuminance<=mr}(t)?-1:1}const wr=Object.freeze({create:function(t,e,r){return"number"==typeof t?wr.from(pr.create(t,e,r)):wr.from(t)},from:function(t){return function(t){const e={r:0,g:0,b:0,toColorString:()=>"",contrast:()=>0,relativeLuminance:0};for(const r in e)if(typeof e[r]!=typeof t[r])return!1;return!0}(t)?Cr.from(t):Cr.from(pr.create(t.r,t.g,t.b))}});class Cr{constructor(t,e){this.closestIndexCache=new Map,this.source=t,this.swatches=e,this.reversedSwatches=Object.freeze([...this.swatches].reverse()),this.lastIndex=this.swatches.length-1}colorContrast(t,e,r,s){void 0===r&&(r=this.closestIndexOf(t));let n=this.swatches;const i=this.lastIndex;let o=r;void 0===s&&(s=br(t));return-1===s&&(n=this.reversedSwatches,o=i-o),yr(n,(r=>gr(t,r)>=e),o,i)}get(t){return this.swatches[t]||this.swatches[ke(t,0,this.lastIndex)]}closestIndexOf(t){if(this.closestIndexCache.has(t.relativeLuminance))return this.closestIndexCache.get(t.relativeLuminance);let e=this.swatches.indexOf(t);if(-1!==e)return this.closestIndexCache.set(t.relativeLuminance,e),e;const r=this.swatches.reduce(((e,r)=>Math.abs(r.relativeLuminance-t.relativeLuminance)<Math.abs(e.relativeLuminance-t.relativeLuminance)?r:e));return e=this.swatches.indexOf(r),this.closestIndexCache.set(t.relativeLuminance,e),e}static from(t){return new Cr(t,Object.freeze(new fr({baseColor:Ie.fromObject(t)}).palette.map((t=>{const e=hr(t.toStringHexRGB());return pr.create(e.r,e.g,e.b)}))))}}const Sr=pr.create(1,1,1),_r=pr.create(0,0,0),Dr=pr.from(hr("#808080")),Fr=pr.from(hr("#DA1A5F"));function Or(t){return pr.create(t,t,t)}const Vr=1,kr=.23;function Tr(t,e,r,s,n,i){return Math.max(t.closestIndexOf(Or(e))+r,s,n,i)}const{create:Rr}=Se;function Nr(t){return Se.create({name:t,cssCustomPropertyName:null})}Rr("body-font").withDefault('aktiv-grotesk, "Segoe UI", Arial, Helvetica, sans-serif');const Ar=Rr("base-height-multiplier").withDefault(10);Rr("base-horizontal-spacing-multiplier").withDefault(3);const Pr=Rr("base-layer-luminance").withDefault(kr);Rr("control-corner-radius").withDefault(4);const Lr=Rr("density").withDefault(0),xr=Rr("design-unit").withDefault(4);Rr("direction").withDefault(ne.ltr),Rr("disabled-opacity").withDefault(.3),Rr("stroke-width").withDefault(1),Rr("focus-stroke-width").withDefault(2),Rr("type-ramp-base-font-size").withDefault("14px"),Rr("type-ramp-base-line-height").withDefault("20px"),Rr("type-ramp-minus-1-font-size").withDefault("12px"),Rr("type-ramp-minus-1-line-height").withDefault("16px"),Rr("type-ramp-minus-2-font-size").withDefault("10px"),Rr("type-ramp-minus-2-line-height").withDefault("16px"),Rr("type-ramp-plus-1-font-size").withDefault("16px"),Rr("type-ramp-plus-1-line-height").withDefault("24px"),Rr("type-ramp-plus-2-font-size").withDefault("20px"),Rr("type-ramp-plus-2-line-height").withDefault("28px"),Rr("type-ramp-plus-3-font-size").withDefault("28px"),Rr("type-ramp-plus-3-line-height").withDefault("36px"),Rr("type-ramp-plus-4-font-size").withDefault("34px"),Rr("type-ramp-plus-4-line-height").withDefault("44px"),Rr("type-ramp-plus-5-font-size").withDefault("46px"),Rr("type-ramp-plus-5-line-height").withDefault("56px"),Rr("type-ramp-plus-6-font-size").withDefault("60px"),Rr("type-ramp-plus-6-line-height").withDefault("72px"),Nr("accent-fill-rest-delta").withDefault(0);const Mr=Nr("accent-fill-hover-delta").withDefault(4),Er=Nr("accent-fill-active-delta").withDefault(-5),jr=Nr("accent-fill-focus-delta").withDefault(0),Ir=Nr("accent-foreground-rest-delta").withDefault(0),$r=Nr("accent-foreground-hover-delta").withDefault(6),Br=Nr("accent-foreground-active-delta").withDefault(-4),zr=Nr("accent-foreground-focus-delta").withDefault(0),Ur=Nr("neutral-fill-rest-delta").withDefault(7),Wr=Nr("neutral-fill-hover-delta").withDefault(10),Hr=Nr("neutral-fill-active-delta").withDefault(5),qr=Nr("neutral-fill-focus-delta").withDefault(0),Gr=Nr("neutral-fill-input-rest-delta").withDefault(0),Xr=Nr("neutral-fill-input-hover-delta").withDefault(0),Jr=Nr("neutral-fill-input-active-delta").withDefault(0),Qr=Nr("neutral-fill-input-focus-delta").withDefault(0),Yr=Nr("neutral-fill-stealth-rest-delta").withDefault(0),Zr=Nr("neutral-fill-stealth-hover-delta").withDefault(5),Kr=Nr("neutral-fill-stealth-active-delta").withDefault(3),ts=Nr("neutral-fill-stealth-focus-delta").withDefault(0),es=Nr("neutral-fill-strong-rest-delta").withDefault(0),rs=Nr("neutral-fill-strong-hover-delta").withDefault(8),ss=Nr("neutral-fill-strong-active-delta").withDefault(-5),ns=Nr("neutral-fill-strong-focus-delta").withDefault(0),is=Nr("neutral-fill-layer-rest-delta").withDefault(3),os=Nr("neutral-stroke-rest-delta").withDefault(25),as=Nr("neutral-stroke-hover-delta").withDefault(40),ls=Nr("neutral-stroke-active-delta").withDefault(16),us=Nr("neutral-stroke-focus-delta").withDefault(25),cs=Nr("neutral-stroke-divider-rest-delta").withDefault(8),hs=Rr("neutral-color").withDefault(Dr),ds=Nr("neutral-palette").withDefault((t=>wr.from(hs.getValueFor(t)))),fs=Rr("accent-color").withDefault(Fr),gs=Nr("accent-palette").withDefault((t=>wr.from(fs.getValueFor(t)))),ps=Nr("neutral-layer-card-container-recipe").withDefault({evaluate:t=>{return e=ds.getValueFor(t),r=Pr.getValueFor(t),s=is.getValueFor(t),e.get(e.closestIndexOf(Or(r))+s);var e,r,s}});Rr("neutral-layer-card-container").withDefault((t=>ps.getValueFor(t).evaluate(t)));const vs=Nr("neutral-layer-floating-recipe").withDefault({evaluate:t=>function(t,e,r){const s=t.closestIndexOf(Or(e))-r;return t.get(s-r)}(ds.getValueFor(t),Pr.getValueFor(t),is.getValueFor(t))});Rr("neutral-layer-floating").withDefault((t=>vs.getValueFor(t).evaluate(t)));const ys=Nr("neutral-layer-1-recipe").withDefault({evaluate:t=>function(t,e){return t.get(t.closestIndexOf(Or(e)))}(ds.getValueFor(t),Pr.getValueFor(t))}),ms=Rr("neutral-layer-1").withDefault((t=>ys.getValueFor(t).evaluate(t))),bs=Nr("neutral-layer-2-recipe").withDefault({evaluate:t=>{return e=ds.getValueFor(t),r=Pr.getValueFor(t),s=is.getValueFor(t),n=Ur.getValueFor(t),i=Wr.getValueFor(t),o=Hr.getValueFor(t),e.get(Tr(e,r,s,n,i,o));var e,r,s,n,i,o}});Rr("neutral-layer-2").withDefault((t=>bs.getValueFor(t).evaluate(t)));const ws=Nr("neutral-layer-3-recipe").withDefault({evaluate:t=>{return e=ds.getValueFor(t),r=Pr.getValueFor(t),s=is.getValueFor(t),n=Ur.getValueFor(t),i=Wr.getValueFor(t),o=Hr.getValueFor(t),e.get(Tr(e,r,s,n,i,o)+s);var e,r,s,n,i,o}});Rr("neutral-layer-3").withDefault((t=>ws.getValueFor(t).evaluate(t)));const Cs=Nr("neutral-layer-4-recipe").withDefault({evaluate:t=>{return e=ds.getValueFor(t),r=Pr.getValueFor(t),s=is.getValueFor(t),n=Ur.getValueFor(t),i=Wr.getValueFor(t),o=Hr.getValueFor(t),e.get(Tr(e,r,s,n,i,o)+2*s);var e,r,s,n,i,o}});Rr("neutral-layer-4").withDefault((t=>Cs.getValueFor(t).evaluate(t)));const Ss=Rr("fill-color").withDefault((t=>ms.getValueFor(t)));var _s;!function(t){t[t.normal=4.5]="normal",t[t.large=7]="large"}(_s||(_s={}));const Ds=Rr({name:"accent-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,r,s,n,i,o,a,l){const u=t.source,c=e.closestIndexOf(r)>=Math.max(o,a,l)?-1:1,h=t.closestIndexOf(u),d=h+-1*c*s,f=d+c*n,g=d+c*i;return{rest:t.get(d),hover:t.get(h),active:t.get(f),focus:t.get(g)}}(gs.getValueFor(t),ds.getValueFor(t),e||Ss.getValueFor(t),Mr.getValueFor(t),Er.getValueFor(t),jr.getValueFor(t),Ur.getValueFor(t),Wr.getValueFor(t),Hr.getValueFor(t))}),Fs=Rr("accent-fill-rest").withDefault((t=>Ds.getValueFor(t).evaluate(t).rest)),Os=Rr("accent-fill-hover").withDefault((t=>Ds.getValueFor(t).evaluate(t).hover)),Vs=Rr("accent-fill-active").withDefault((t=>Ds.getValueFor(t).evaluate(t).active)),ks=Rr("accent-fill-focus").withDefault((t=>Ds.getValueFor(t).evaluate(t).focus)),Ts=t=>(e,r)=>function(t,e){return t.contrast(Sr)>=e?Sr:_r}(r||Fs.getValueFor(e),t),Rs=Nr("foreground-on-accent-recipe").withDefault({evaluate:(t,e)=>Ts(_s.normal)(t,e)});Rr("foreground-on-accent-rest").withDefault((t=>Rs.getValueFor(t).evaluate(t,Fs.getValueFor(t)))),Rr("foreground-on-accent-hover").withDefault((t=>Rs.getValueFor(t).evaluate(t,Os.getValueFor(t)))),Rr("foreground-on-accent-active").withDefault((t=>Rs.getValueFor(t).evaluate(t,Vs.getValueFor(t)))),Rr("foreground-on-accent-focus").withDefault((t=>Rs.getValueFor(t).evaluate(t,ks.getValueFor(t))));const Ns=Nr("foreground-on-accent-large-recipe").withDefault({evaluate:(t,e)=>Ts(_s.large)(t,e)});Rr("foreground-on-accent-rest-large").withDefault((t=>Ns.getValueFor(t).evaluate(t,Fs.getValueFor(t)))),Rr("foreground-on-accent-hover-large").withDefault((t=>Ns.getValueFor(t).evaluate(t,Os.getValueFor(t)))),Rr("foreground-on-accent-active-large").withDefault((t=>Ns.getValueFor(t).evaluate(t,Vs.getValueFor(t)))),Rr("foreground-on-accent-focus-large").withDefault((t=>Ns.getValueFor(t).evaluate(t,ks.getValueFor(t))));const As=t=>(e,r)=>function(t,e,r,s,n,i,o){const a=t.source,l=t.closestIndexOf(a),u=br(e),c=l+(1===u?Math.min(s,n):Math.max(u*s,u*n)),h=t.colorContrast(e,r,c,u),d=t.closestIndexOf(h),f=d+u*Math.abs(s-n);let g,p;return(1===u?s<n:u*s>u*n)?(g=d,p=f):(g=f,p=d),{rest:t.get(g),hover:t.get(p),active:t.get(g+u*i),focus:t.get(g+u*o)}}(gs.getValueFor(e),r||Ss.getValueFor(e),t,Ir.getValueFor(e),$r.getValueFor(e),Br.getValueFor(e),zr.getValueFor(e)),Ps=Rr({name:"accent-foreground-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>As(_s.normal)(t,e)});Rr("accent-foreground-rest").withDefault((t=>Ps.getValueFor(t).evaluate(t).rest)),Rr("accent-foreground-hover").withDefault((t=>Ps.getValueFor(t).evaluate(t).hover)),Rr("accent-foreground-active").withDefault((t=>Ps.getValueFor(t).evaluate(t).active)),Rr("accent-foreground-focus").withDefault((t=>Ps.getValueFor(t).evaluate(t).focus));const Ls=Rr({name:"neutral-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,r,s,n,i){const o=t.closestIndexOf(e),a=o>=Math.max(r,s,n,i)?-1:1;return{rest:t.get(o+a*r),hover:t.get(o+a*s),active:t.get(o+a*n),focus:t.get(o+a*i)}}(ds.getValueFor(t),e||Ss.getValueFor(t),Ur.getValueFor(t),Wr.getValueFor(t),Hr.getValueFor(t),qr.getValueFor(t))});Rr("neutral-fill-rest").withDefault((t=>Ls.getValueFor(t).evaluate(t).rest)),Rr("neutral-fill-hover").withDefault((t=>Ls.getValueFor(t).evaluate(t).hover)),Rr("neutral-fill-active").withDefault((t=>Ls.getValueFor(t).evaluate(t).active)),Rr("neutral-fill-focus").withDefault((t=>Ls.getValueFor(t).evaluate(t).focus));const xs=Rr({name:"neutral-fill-input-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,r,s,n,i){const o=br(e),a=t.closestIndexOf(e);return{rest:t.get(a-o*r),hover:t.get(a-o*s),active:t.get(a-o*n),focus:t.get(a-o*i)}}(ds.getValueFor(t),e||Ss.getValueFor(t),Gr.getValueFor(t),Xr.getValueFor(t),Jr.getValueFor(t),Qr.getValueFor(t))});Rr("neutral-fill-input-rest").withDefault((t=>xs.getValueFor(t).evaluate(t).rest)),Rr("neutral-fill-input-hover").withDefault((t=>xs.getValueFor(t).evaluate(t).hover)),Rr("neutral-fill-input-active").withDefault((t=>xs.getValueFor(t).evaluate(t).active)),Rr("neutral-fill-input-focus").withDefault((t=>xs.getValueFor(t).evaluate(t).focus));const Ms=Rr({name:"neutral-fill-stealth-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,r,s,n,i,o,a,l,u){const c=Math.max(r,s,n,i,o,a,l,u),h=t.closestIndexOf(e),d=h>=c?-1:1;return{rest:t.get(h+d*r),hover:t.get(h+d*s),active:t.get(h+d*n),focus:t.get(h+d*i)}}(ds.getValueFor(t),e||Ss.getValueFor(t),Yr.getValueFor(t),Zr.getValueFor(t),Kr.getValueFor(t),ts.getValueFor(t),Ur.getValueFor(t),Wr.getValueFor(t),Hr.getValueFor(t),qr.getValueFor(t))});Rr("neutral-fill-stealth-rest").withDefault((t=>Ms.getValueFor(t).evaluate(t).rest)),Rr("neutral-fill-stealth-hover").withDefault((t=>Ms.getValueFor(t).evaluate(t).hover)),Rr("neutral-fill-stealth-active").withDefault((t=>Ms.getValueFor(t).evaluate(t).active)),Rr("neutral-fill-stealth-focus").withDefault((t=>Ms.getValueFor(t).evaluate(t).focus));const Es=Rr({name:"neutral-fill-strong-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,r,s,n,i){const o=br(e),a=t.closestIndexOf(t.colorContrast(e,4.5)),l=a+o*Math.abs(r-s);let u,c;return(1===o?r<s:o*r>o*s)?(u=a,c=l):(u=l,c=a),{rest:t.get(u),hover:t.get(c),active:t.get(u+o*n),focus:t.get(u+o*i)}}(ds.getValueFor(t),e||Ss.getValueFor(t),es.getValueFor(t),rs.getValueFor(t),ss.getValueFor(t),ns.getValueFor(t))});Rr("neutral-fill-strong-rest").withDefault((t=>Es.getValueFor(t).evaluate(t).rest)),Rr("neutral-fill-strong-hover").withDefault((t=>Es.getValueFor(t).evaluate(t).hover)),Rr("neutral-fill-strong-active").withDefault((t=>Es.getValueFor(t).evaluate(t).active)),Rr("neutral-fill-strong-focus").withDefault((t=>Es.getValueFor(t).evaluate(t).focus));const js=Nr("neutral-fill-layer-recipe").withDefault({evaluate:(t,e)=>function(t,e,r){const s=t.closestIndexOf(e);return t.get(s-(s<r?-1*r:r))}(ds.getValueFor(t),e||Ss.getValueFor(t),is.getValueFor(t))});Rr("neutral-fill-layer-rest").withDefault((t=>js.getValueFor(t).evaluate(t)));const Is=Nr("focus-stroke-outer-recipe").withDefault({evaluate:t=>{return e=ds.getValueFor(t),r=Ss.getValueFor(t),e.colorContrast(r,3.5);var e,r}}),$s=Rr("focus-stroke-outer").withDefault((t=>Is.getValueFor(t).evaluate(t))),Bs=Nr("focus-stroke-inner-recipe").withDefault({evaluate:t=>{return e=gs.getValueFor(t),r=Ss.getValueFor(t),s=$s.getValueFor(t),e.colorContrast(s,3.5,e.closestIndexOf(e.source),-1*br(r));var e,r,s}});Rr("focus-stroke-inner").withDefault((t=>Bs.getValueFor(t).evaluate(t)));const zs=Nr("neutral-foreground-hint-recipe").withDefault({evaluate:t=>{return e=ds.getValueFor(t),r=Ss.getValueFor(t),e.colorContrast(r,4.5);var e,r}});Rr("neutral-foreground-hint").withDefault((t=>zs.getValueFor(t).evaluate(t)));const Us=Nr("neutral-foreground-recipe").withDefault({evaluate:t=>{return e=ds.getValueFor(t),r=Ss.getValueFor(t),e.colorContrast(r,14);var e,r}});Rr("neutral-foreground-rest").withDefault((t=>Us.getValueFor(t).evaluate(t)));const Ws=Rr({name:"neutral-stroke-recipe",cssCustomPropertyName:null}).withDefault({evaluate:t=>function(t,e,r,s,n,i){const o=t.closestIndexOf(e),a=br(e),l=o+a*r,u=l+a*(s-r),c=l+a*(n-r),h=l+a*(i-r);return{rest:t.get(l),hover:t.get(u),active:t.get(c),focus:t.get(h)}}(ds.getValueFor(t),Ss.getValueFor(t),os.getValueFor(t),as.getValueFor(t),ls.getValueFor(t),us.getValueFor(t))});Rr("neutral-stroke-rest").withDefault((t=>Ws.getValueFor(t).evaluate(t).rest)),Rr("neutral-stroke-hover").withDefault((t=>Ws.getValueFor(t).evaluate(t).hover)),Rr("neutral-stroke-active").withDefault((t=>Ws.getValueFor(t).evaluate(t).active)),Rr("neutral-stroke-focus").withDefault((t=>Ws.getValueFor(t).evaluate(t).focus));const Hs=Nr("neutral-stroke-divider-recipe").withDefault({evaluate:(t,e)=>function(t,e,r){return t.get(t.closestIndexOf(e)+br(e)*r)}(ds.getValueFor(t),e||Ss.getValueFor(t),cs.getValueFor(t))});Rr("neutral-stroke-divider-rest").withDefault((t=>Hs.getValueFor(t).evaluate(t))),Se.create({name:"height-number",cssCustomPropertyName:null}).withDefault((t=>(Ar.getValueFor(t)+Lr.getValueFor(t))*xr.getValueFor(t)));const{create:qs}=Se,Gs=qs("active-color-scheme").withDefault((t=>Pr.getValueFor(t)===Vr?"light":"dark")),Xs=(t,e)=>{var r;let s=document.getElementById(e);if(s)return void v.debug(`\n An element with the id of '${e}' already exists and likely has the css rules applied.\n `);const n=null!==(r=document.head)&&void 0!==r?r:document.getElementsByTagName("head")[0];s=document.createElement("style"),s.id=e,n.appendChild(s);const i=s.sheet.insertRule(t);return()=>{s&&(s.sheet.deleteRule(i),n.removeChild(s))}};var Js;t.SlottedStyles=class extends gt{stylesChanged(t,e){t&&this.parentElement.$fastController.removeStyles(t),this.parentElement.$fastController.addStyles(e)}},e([A],t.SlottedStyles.prototype,"styles",void 0),t.SlottedStyles=e([(Js={name:"slotted-styles"},function(t){new lt(t,Js).define()})],t.SlottedStyles);var Qs,Ys;t.FontStyle=void 0,(Qs=t.FontStyle||(t.FontStyle={})).Italic="italic",Qs.Normal="normal",t.FontWeight=void 0,(Ys=t.FontWeight||(t.FontWeight={}))[Ys.Thin=100]="Thin",Ys[Ys.Light=300]="Light",Ys[Ys.Regular=400]="Regular",Ys[Ys.Medium=500]="Medium",Ys[Ys.Bold=700]="Bold",Ys[Ys.Black=900]="Black";var Zs,Ks=new Uint8Array(16);function tn(){if(!Zs&&!(Zs="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Zs(Ks)}var en=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var rn=[],sn=0;sn<256;++sn)rn.push((sn+256).toString(16).substr(1));function nn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(rn[t[e+0]]+rn[t[e+1]]+rn[t[e+2]]+rn[t[e+3]]+"-"+rn[t[e+4]]+rn[t[e+5]]+"-"+rn[t[e+6]]+rn[t[e+7]]+"-"+rn[t[e+8]]+rn[t[e+9]]+"-"+rn[t[e+10]]+rn[t[e+11]]+rn[t[e+12]]+rn[t[e+13]]+rn[t[e+14]]+rn[t[e+15]]).toLowerCase();if(!function(t){return"string"==typeof t&&en.test(t)}(r))throw TypeError("Stringified UUID is invalid");return r}function on(t,e,r){var s=(t=t||{}).random||(t.rng||tn)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,e){r=r||0;for(var n=0;n<16;++n)e[r+n]=s[n];return e}return nn(s)}class an{constructor(){}createId(t=!1){const e=on();return t&&v.debug(`UUID.createID ${e}`),e}createRemoteId(t=!1){return r(this,void 0,void 0,(function*(){const e=on();return t&&v.debug(`UUID.createRemoteID ${e}`),e}))}}const ln=Lt.createInterface((t=>t.singleton(an)));t.DefaultServerRowDTOMapper=_e,t.InMemoryDatabase=class{constructor(t){this.uuid=t,this.isWorking=!1,this.records={},this.beforeUpdateListeners=n(),this.afterUpdateListeners=n()}create(t){return r(this,void 0,void 0,(function*(){const e=yield this.uuid.createRemoteId();return this.update(e,t)}))}read(t){return r(this,void 0,void 0,(function*(){let e;try{this.isWorking=!0,e=this.records[t],v.debug(`Database.read ${JSON.stringify(e)}`)}catch(t){throw v.error("Database.read error",t),t}finally{this.isWorking=!1}return{value:e}}))}update(t,e){return r(this,void 0,void 0,(function*(){const r=Object.assign(Object.assign({},e),{id:t}),s=r;try{this.isWorking=!0,this.beforeUpdateListeners.publish({value:this.records[t],newValue:r}),this.records[t]=s,this.afterUpdateListeners.publish({value:r}),v.debug(`Database.create success ${JSON.stringify(s)}`)}catch(t){throw v.error("Database.create error",t),t}finally{this.isWorking=!1}return{value:r}}))}delete(t){return r(this,void 0,void 0,(function*(){let e=!0;try{this.isWorking=!0,e=delete this.records[t],v.debug(`Database.delete ${t}`)}catch(t){throw v.error("Database.delete error",t),t}finally{this.isWorking=!1}return{id:t,success:e}}))}visit(t){return r(this,void 0,void 0,(function*(){try{this.isWorking=!0,Object.values(this.records).forEach(t),v.debug("Database.visit complete")}catch(t){throw v.error("Database.visit error",t),t}finally{this.isWorking=!1}}))}onBeforeUpdate(t){return this.beforeUpdateListeners.subscribe(t)}onAfterUpdate(t){return this.afterUpdateListeners.subscribe(t)}},t.JSONSerializer=Ve,t.LifecycleMixin=t=>{var e,r,n,i;return i=class extends t{constructor(...t){super(t),e.add(this),r.set(this,null)}cloneNode(t){const e=this.deepClone();return t&&Array.from(this.childNodes).forEach((t=>{e.appendChild(t.cloneNode(!0))})),e}deepClone(){const t=document.createElement(this.tagName.toLowerCase());return this.getAttributeNames().forEach((e=>t.setAttribute(e,this.getAttribute(e)))),t}get shouldRunDisconnect(){return null===s(this,r,"f")||!s(this,r,"f").dragging}get shouldRunConnect(){return this.shouldRunDisconnect}connectedCallback(){super.connectedCallback(),null===s(this,r,"f")&&function(t,e,r,s,n){if("m"===s)throw new TypeError("Private method is not writable");if("a"===s&&!n)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===s?n.call(t,r):n?n.value=r:e.set(t,r)}(this,r,s(this,e,"m",n).call(this,this),"f")}},r=new WeakMap,e=new WeakSet,n=function t(r){if(r.getRootNode()instanceof Document||r.getRootNode()instanceof DocumentFragment)return null;const n=r.getRootNode().host;return"FoundationLayout"===n.constructor.name?n:s(this,e,"m",t).call(this,n)},i},t.LogLevel=f.exports.LogLevel,t.POPUP_DEFAULT_HEIGHT=600,t.POPUP_DEFAULT_WIDTH=483,t.PendingState=s=>{class n extends s{constructor(){super(...arguments),this.pendingCount=0,this.resolvedCount=0,this.hasPendingChildren=!1}get progress(){return this.resolvedCount/this.pendingCount}connectedCallback(){super.connectedCallback(),v.debug("PendingState mixin is now connected to the DOM"),this.addEventListener(t.PendingStateEvents.state,this.onPendingState)}disconnectedCallback(){super.disconnectedCallback(),v.debug("PendingState mixin is now disconnected from the DOM"),this.removeEventListener(t.PendingStateEvents.state,this.onPendingState)}onPendingState({detail:e}){return r(this,void 0,void 0,(function*(){const{promise:r}=e;if(r){this.hasPendingChildren=!0,this.pendingCount+=1;try{yield r}catch(e){this.$emit(t.PendingStateEvents.error,{message:`Error in pending-state promise: ${e}`,error:e})}finally{this.resolvedCount+=1,this.pendingCount===this.resolvedCount&&(this.hasPendingChildren=!1)}}}))}}return e([A],n.prototype,"hasPendingChildren",void 0),n},t.ResourceType={local:"local",remote:"remote"},t.ServerRowDTOMapper=De,t.UUID=ln,t.activeColorScheme=Gs,t.assureDesignSystem=function(t){if(!t)throw new Error("Undefined design system module");if("function"!=typeof t.provideDesignSystem)throw new Error("Required `provideDesignSystem` function missing from design system module");return t},t.createLogger=p,t.createObserver=n,t.defaultEventMap=vt,t.defaultLoggerOptions=g,t.formatDateTimeTimestamp=Dt,t.formatDateTimestamp=St,t.formatTimestamp=function(t,e){return e?Dt(t):St(t)},t.getFontMixin=(e,r=t.FontStyle.Normal,s=t.FontWeight.Regular)=>`\n font-family: ${e};\n font-style: ${r};\n font-weight: ${s};\n`,t.inIFrame=()=>{try{return window.self!==window.top}catch(t){return!0}},t.inSymphonyDesktop=()=>{const t=null===navigator||void 0===navigator?void 0:navigator.userAgent;return(null==t?void 0:t.includes("Symphony"))&&(null==t?void 0:t.includes("Electron"))},t.insertDocumentCSSRule=Xs,t.insertDocumentLink=t=>{const e=document.head.querySelectorAll("link");for(const r in e)if(e[r].href===t)return;const r=document.createElement("link");r.rel="stylesheet",r.href=t,document.head.appendChild(r)},t.isDev=()=>!process.env.NODE_ENV||"development"===process.env.NODE_ENV,t.loadFontFaces=(t,e)=>{Xs(t,e)},t.openPopup=(t,e,r=483,s=600)=>{const n=window.innerWidth/2-r/2+window.screenX,i=window.innerHeight/2-s/2+window.screenY,o=window.open(t,e,"width="+r+", height="+s+", top="+i+", left="+n+", scrollbars=yes");return o.focus&&o.focus(),o},t.renderOnChange=function(t,e){t[e+"Changed"]=t.render},t.sync=function(t,e="string",r="default",s){return new wt(t,e,r,s)},Object.defineProperty(t,"__esModule",{value:!0})}({});