@emuanalytics/flow-rdf-core 1.1.13 → 1.1.14

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 (137) hide show
  1. package/dist/bundle/flow-rdf-core.umd.js +4 -4
  2. package/dist/bundle/flow-rdf-core.umd.js.map +1 -1
  3. package/dist/cjs/lib/context/flow-context.d.ts.map +1 -1
  4. package/dist/cjs/lib/context/flow-context.js +14 -1
  5. package/dist/cjs/lib/context/flow-context.js.map +1 -1
  6. package/dist/cjs/lib/map/flow-map.js +1 -1
  7. package/dist/cjs/lib/map/flow-map.js.map +1 -1
  8. package/dist/cjs/lib/map/plugins/annotations/annotation-layers.d.ts.map +1 -1
  9. package/dist/cjs/lib/map/plugins/annotations/annotation-layers.js +20 -30
  10. package/dist/cjs/lib/map/plugins/annotations/annotation-layers.js.map +1 -1
  11. package/dist/cjs/lib/map-style/map-data-source.d.ts.map +1 -1
  12. package/dist/cjs/lib/map-style/map-data-source.js +11 -33
  13. package/dist/cjs/lib/map-style/map-data-source.js.map +1 -1
  14. package/dist/cjs/lib/map-style/map-layer.d.ts +1 -2
  15. package/dist/cjs/lib/map-style/map-layer.d.ts.map +1 -1
  16. package/dist/cjs/lib/map-style/map-layer.js +3 -3
  17. package/dist/cjs/lib/map-style/map-layer.js.map +1 -1
  18. package/dist/cjs/lib/state-store/index.d.ts +3 -3
  19. package/dist/cjs/lib/state-store/index.d.ts.map +1 -1
  20. package/dist/cjs/lib/state-store/index.js +5 -2
  21. package/dist/cjs/lib/state-store/index.js.map +1 -1
  22. package/dist/cjs/lib/state-store/state-store.d.ts +4 -13
  23. package/dist/cjs/lib/state-store/state-store.d.ts.map +1 -1
  24. package/dist/cjs/lib/state-store/state-store.js +8 -128
  25. package/dist/cjs/lib/state-store/state-store.js.map +1 -1
  26. package/dist/cjs/lib/utils/assert.d.ts +0 -1
  27. package/dist/cjs/lib/utils/assert.d.ts.map +1 -1
  28. package/dist/cjs/lib/utils/assert.js +1 -5
  29. package/dist/cjs/lib/utils/assert.js.map +1 -1
  30. package/dist/esm/lib/context/flow-context.d.ts.map +1 -1
  31. package/dist/esm/lib/context/flow-context.js +14 -1
  32. package/dist/esm/lib/context/flow-context.js.map +1 -1
  33. package/dist/esm/lib/map/flow-map.js +1 -1
  34. package/dist/esm/lib/map/flow-map.js.map +1 -1
  35. package/dist/esm/lib/map/plugins/annotations/annotation-layers.d.ts.map +1 -1
  36. package/dist/esm/lib/map/plugins/annotations/annotation-layers.js +76 -86
  37. package/dist/esm/lib/map/plugins/annotations/annotation-layers.js.map +1 -1
  38. package/dist/esm/lib/map-style/map-data-source.d.ts.map +1 -1
  39. package/dist/esm/lib/map-style/map-data-source.js +11 -10
  40. package/dist/esm/lib/map-style/map-data-source.js.map +1 -1
  41. package/dist/esm/lib/map-style/map-layer.d.ts +1 -2
  42. package/dist/esm/lib/map-style/map-layer.d.ts.map +1 -1
  43. package/dist/esm/lib/map-style/map-layer.js +3 -3
  44. package/dist/esm/lib/map-style/map-layer.js.map +1 -1
  45. package/dist/esm/lib/state-store/index.d.ts +3 -3
  46. package/dist/esm/lib/state-store/index.d.ts.map +1 -1
  47. package/dist/esm/lib/state-store/index.js +1 -1
  48. package/dist/esm/lib/state-store/index.js.map +1 -1
  49. package/dist/esm/lib/state-store/state-store.d.ts +4 -13
  50. package/dist/esm/lib/state-store/state-store.d.ts.map +1 -1
  51. package/dist/esm/lib/state-store/state-store.js +8 -80
  52. package/dist/esm/lib/state-store/state-store.js.map +1 -1
  53. package/dist/esm/lib/utils/assert.d.ts +0 -1
  54. package/dist/esm/lib/utils/assert.d.ts.map +1 -1
  55. package/dist/esm/lib/utils/assert.js +0 -3
  56. package/dist/esm/lib/utils/assert.js.map +1 -1
  57. package/dist/esm5/lib/context/flow-context.d.ts.map +1 -1
  58. package/dist/esm5/lib/context/flow-context.js +14 -1
  59. package/dist/esm5/lib/context/flow-context.js.map +1 -1
  60. package/dist/esm5/lib/map/flow-map.js +1 -1
  61. package/dist/esm5/lib/map/flow-map.js.map +1 -1
  62. package/dist/esm5/lib/map/plugins/annotations/annotation-layers.d.ts.map +1 -1
  63. package/dist/esm5/lib/map/plugins/annotations/annotation-layers.js +20 -30
  64. package/dist/esm5/lib/map/plugins/annotations/annotation-layers.js.map +1 -1
  65. package/dist/esm5/lib/map-style/map-data-source.d.ts.map +1 -1
  66. package/dist/esm5/lib/map-style/map-data-source.js +11 -10
  67. package/dist/esm5/lib/map-style/map-data-source.js.map +1 -1
  68. package/dist/esm5/lib/map-style/map-layer.d.ts +1 -2
  69. package/dist/esm5/lib/map-style/map-layer.d.ts.map +1 -1
  70. package/dist/esm5/lib/map-style/map-layer.js +3 -3
  71. package/dist/esm5/lib/map-style/map-layer.js.map +1 -1
  72. package/dist/esm5/lib/state-store/index.d.ts +3 -3
  73. package/dist/esm5/lib/state-store/index.d.ts.map +1 -1
  74. package/dist/esm5/lib/state-store/index.js +1 -1
  75. package/dist/esm5/lib/state-store/index.js.map +1 -1
  76. package/dist/esm5/lib/state-store/state-store.d.ts +4 -13
  77. package/dist/esm5/lib/state-store/state-store.d.ts.map +1 -1
  78. package/dist/esm5/lib/state-store/state-store.js +8 -105
  79. package/dist/esm5/lib/state-store/state-store.js.map +1 -1
  80. package/dist/esm5/lib/utils/assert.d.ts +0 -1
  81. package/dist/esm5/lib/utils/assert.d.ts.map +1 -1
  82. package/dist/esm5/lib/utils/assert.js +0 -3
  83. package/dist/esm5/lib/utils/assert.js.map +1 -1
  84. package/dist/types/lib/context/flow-context.d.ts.map +1 -1
  85. package/dist/types/lib/map/plugins/annotations/annotation-layers.d.ts.map +1 -1
  86. package/dist/types/lib/map-style/map-data-source.d.ts.map +1 -1
  87. package/dist/types/lib/map-style/map-layer.d.ts +1 -2
  88. package/dist/types/lib/map-style/map-layer.d.ts.map +1 -1
  89. package/dist/types/lib/state-store/index.d.ts +3 -3
  90. package/dist/types/lib/state-store/index.d.ts.map +1 -1
  91. package/dist/types/lib/state-store/state-store.d.ts +4 -13
  92. package/dist/types/lib/state-store/state-store.d.ts.map +1 -1
  93. package/dist/types/lib/utils/assert.d.ts +0 -1
  94. package/dist/types/lib/utils/assert.d.ts.map +1 -1
  95. package/package.json +1 -1
  96. package/dist/cjs/lib/state-store/decorators.d.ts +0 -26
  97. package/dist/cjs/lib/state-store/decorators.d.ts.map +0 -1
  98. package/dist/cjs/lib/state-store/decorators.js +0 -107
  99. package/dist/cjs/lib/state-store/decorators.js.map +0 -1
  100. package/dist/cjs/lib/state-store/serializer.d.ts +0 -17
  101. package/dist/cjs/lib/state-store/serializer.d.ts.map +0 -1
  102. package/dist/cjs/lib/state-store/serializer.js +0 -63
  103. package/dist/cjs/lib/state-store/serializer.js.map +0 -1
  104. package/dist/cjs/lib/utils/decorators.d.ts +0 -16
  105. package/dist/cjs/lib/utils/decorators.d.ts.map +0 -1
  106. package/dist/cjs/lib/utils/decorators.js +0 -64
  107. package/dist/cjs/lib/utils/decorators.js.map +0 -1
  108. package/dist/esm/lib/state-store/decorators.d.ts +0 -26
  109. package/dist/esm/lib/state-store/decorators.d.ts.map +0 -1
  110. package/dist/esm/lib/state-store/decorators.js +0 -81
  111. package/dist/esm/lib/state-store/decorators.js.map +0 -1
  112. package/dist/esm/lib/state-store/serializer.d.ts +0 -17
  113. package/dist/esm/lib/state-store/serializer.d.ts.map +0 -1
  114. package/dist/esm/lib/state-store/serializer.js +0 -30
  115. package/dist/esm/lib/state-store/serializer.js.map +0 -1
  116. package/dist/esm/lib/utils/decorators.d.ts +0 -16
  117. package/dist/esm/lib/utils/decorators.d.ts.map +0 -1
  118. package/dist/esm/lib/utils/decorators.js +0 -45
  119. package/dist/esm/lib/utils/decorators.js.map +0 -1
  120. package/dist/esm5/lib/state-store/decorators.d.ts +0 -26
  121. package/dist/esm5/lib/state-store/decorators.d.ts.map +0 -1
  122. package/dist/esm5/lib/state-store/decorators.js +0 -81
  123. package/dist/esm5/lib/state-store/decorators.js.map +0 -1
  124. package/dist/esm5/lib/state-store/serializer.d.ts +0 -17
  125. package/dist/esm5/lib/state-store/serializer.d.ts.map +0 -1
  126. package/dist/esm5/lib/state-store/serializer.js +0 -46
  127. package/dist/esm5/lib/state-store/serializer.js.map +0 -1
  128. package/dist/esm5/lib/utils/decorators.d.ts +0 -16
  129. package/dist/esm5/lib/utils/decorators.d.ts.map +0 -1
  130. package/dist/esm5/lib/utils/decorators.js +0 -46
  131. package/dist/esm5/lib/utils/decorators.js.map +0 -1
  132. package/dist/types/lib/state-store/decorators.d.ts +0 -26
  133. package/dist/types/lib/state-store/decorators.d.ts.map +0 -1
  134. package/dist/types/lib/state-store/serializer.d.ts +0 -17
  135. package/dist/types/lib/state-store/serializer.d.ts.map +0 -1
  136. package/dist/types/lib/utils/decorators.d.ts +0 -28
  137. package/dist/types/lib/utils/decorators.d.ts.map +0 -1
@@ -1,16 +0,0 @@
1
- export declare const storedAnnotationsSymbol: unique symbol;
2
- export declare type Annotated = {
3
- [storedAnnotationsSymbol]: any;
4
- };
5
- export declare type Annotation = {
6
- annotationType: string;
7
- };
8
- export declare type AnnotationsMap<T extends object, A extends Annotation> = {
9
- [P in keyof T]?: A;
10
- };
11
- export declare function createDecoratorAnnotation<A extends Annotation>(annotation: A): PropertyDecorator & A;
12
- export declare function storeAnnotation(prototype: any, key: PropertyKey, annotation: Annotation): void;
13
- export declare function collectStoredAnnotations<A extends Annotation, T extends object>(target: T, annotationType: string): AnnotationsMap<T, A>;
14
- export declare function addHiddenProp(object: any, propName: PropertyKey, value: any): void;
15
- export declare function hasProp(target: any, prop: PropertyKey): boolean;
16
- //# sourceMappingURL=decorators.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../../../../src/lib/utils/decorators.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,uBAAuB,eAAiC,CAAC;AAEtE,oBAAY,SAAS,GAAG;IAAE,CAAC,uBAAuB,CAAC,EAAE,GAAG,CAAA;CAAE,CAAC;AAE3D,oBAAY,UAAU,GAAG;IACvB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,oBAAY,cAAc,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,UAAU,IAAI;KAClE,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;CACnB,CAAC;AAOF,wBAAgB,yBAAyB,CAAC,CAAC,SAAS,UAAU,EAAE,UAAU,EAAE,CAAC,GAAG,iBAAiB,GAAG,CAAC,CAKpG;AAMD,wBAAgB,eAAe,CAAC,SAAS,EAAE,GAAG,EAAE,GAAG,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,QAcvF;AAmBD,wBAAgB,wBAAwB,CAAC,CAAC,SAAS,UAAU,EAAE,CAAC,SAAS,MAAM,EAC7E,MAAM,EAAE,CAAC,EACT,cAAc,EAAE,MAAM,GACrB,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,CAEtB;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,QAO3E;AAED,wBAAgB,OAAO,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAE/D"}
@@ -1,45 +0,0 @@
1
- import { die } from './assert';
2
- export const storedAnnotationsSymbol = Symbol('flow-rdf-annotations');
3
- export function createDecoratorAnnotation(annotation) {
4
- function decorator(target, property) {
5
- storeAnnotation(target, property, annotation);
6
- }
7
- return Object.assign(decorator, annotation);
8
- }
9
- export function storeAnnotation(prototype, key, annotation) {
10
- var _a;
11
- var _b, _c;
12
- if (!hasProp(prototype, storedAnnotationsSymbol)) {
13
- addHiddenProp(prototype, storedAnnotationsSymbol, Object.assign({}, prototype[storedAnnotationsSymbol]));
14
- }
15
- (_a = (_b = prototype[storedAnnotationsSymbol])[_c = annotation.annotationType]) !== null && _a !== void 0 ? _a : (_b[_c] = {});
16
- assertNotDecorated(prototype, annotation, key);
17
- prototype[storedAnnotationsSymbol][annotation.annotationType][key] = annotation;
18
- }
19
- function assertNotDecorated(prototype, annotation, key) {
20
- if (hasProp(prototype[storedAnnotationsSymbol][annotation.annotationType], key)) {
21
- const fieldName = `${prototype.constructor.name}.prototype.${key.toString()}`;
22
- const currentAnnotationType = prototype[storedAnnotationsSymbol][key].annotationType_;
23
- const requestedAnnotationType = annotation.annotationType;
24
- die(`Cannot apply '@${requestedAnnotationType}' to '${fieldName}':` +
25
- `\nThe field is already decorated with '@${currentAnnotationType}'.` +
26
- `\nRe-decorating fields is not allowed.` +
27
- `\nUse '@override' decorator for methods overridden by subclass.`);
28
- }
29
- }
30
- export function collectStoredAnnotations(target, annotationType) {
31
- var _a, _b;
32
- return (_b = (_a = target[storedAnnotationsSymbol]) === null || _a === void 0 ? void 0 : _a[annotationType]) !== null && _b !== void 0 ? _b : {};
33
- }
34
- export function addHiddenProp(object, propName, value) {
35
- Object.defineProperty(object, propName, {
36
- enumerable: false,
37
- writable: true,
38
- configurable: true,
39
- value
40
- });
41
- }
42
- export function hasProp(target, prop) {
43
- return Object.hasOwnProperty.call(target, prop);
44
- }
45
- //# sourceMappingURL=decorators.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../../../src/lib/utils/decorators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAE/B,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC,sBAAsB,CAAC,CAAC;AAiBtE,MAAM,UAAU,yBAAyB,CAAuB,UAAa;IAC3E,SAAS,SAAS,CAAC,MAAW,EAAE,QAAqB;QACjD,eAAe,CAAC,MAAM,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;IAChD,CAAC;IACD,OAAO,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;AAChD,CAAC;AAMD,MAAM,UAAU,eAAe,CAAC,SAAc,EAAE,GAAgB,EAAE,UAAsB;;;IACt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UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE,IAAI;QACd,YAAY,EAAE,IAAI;QAClB,KAAK;KACN,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,MAAW,EAAE,IAAiB;IACpD,OAAO,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AAClD,CAAC"}
@@ -1,26 +0,0 @@
1
- import { Annotation } from '../utils/decorators';
2
- export declare const SYNC_ANNOTATION_TYPE = "state-sync-annotation";
3
- export declare const REACTIVE_ANNOTATION_TYPE = "state-reactive-annotation";
4
- export interface SyncAnnotation<T = any> extends Annotation {
5
- serialize(val: T): string;
6
- deserialize(val: string, target?: T): T;
7
- }
8
- export declare const serialize: {
9
- string: PropertyDecorator & SyncAnnotation<string>;
10
- number: PropertyDecorator & SyncAnnotation<number>;
11
- stringArray: PropertyDecorator & SyncAnnotation<string[]>;
12
- numberArray: PropertyDecorator & SyncAnnotation<number[]>;
13
- state: PropertyDecorator & SyncAnnotation<any>;
14
- };
15
- export interface ReactiveAnnotation extends Annotation {
16
- mobxAnnotation: any;
17
- }
18
- export declare const observable: PropertyDecorator & ReactiveAnnotation & {
19
- ref: PropertyDecorator & ReactiveAnnotation;
20
- struct: PropertyDecorator & ReactiveAnnotation;
21
- shallow: PropertyDecorator & ReactiveAnnotation;
22
- };
23
- export declare const computed: PropertyDecorator & ReactiveAnnotation & {
24
- struct: PropertyDecorator & ReactiveAnnotation;
25
- };
26
- //# sourceMappingURL=decorators.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../../../../src/lib/state-store/decorators.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAA6B,MAAM,qBAAqB,CAAC;AAE5E,eAAO,MAAM,oBAAoB,0BAA0B,CAAC;AAC5D,eAAO,MAAM,wBAAwB,8BAA8B,CAAC;AAEpE,MAAM,WAAW,cAAc,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,UAAU;IACzD,SAAS,CAAC,GAAG,EAAE,CAAC,GAAG,MAAM,CAAC;IAC1B,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;CACzC;AAgED,eAAO,MAAM,SAAS;;;;;;CAMrB,CAAC;AAKF,MAAM,WAAW,kBAAmB,SAAQ,UAAU;IACpD,cAAc,EAAE,GAAG,CAAC;CACrB;AASD,eAAO,MAAM,UAAU;;;;CAIrB,CAAA;AAEF,eAAO,MAAM,QAAQ;;CAEnB,CAAC"}
@@ -1,81 +0,0 @@
1
- import * as mobx from 'mobx';
2
- import { assert } from '../utils/assert';
3
- import { createDecoratorAnnotation } from '../utils/decorators';
4
- export var SYNC_ANNOTATION_TYPE = 'state-sync-annotation';
5
- export var REACTIVE_ANNOTATION_TYPE = 'state-reactive-annotation';
6
- var serializeString = {
7
- annotationType: SYNC_ANNOTATION_TYPE,
8
- serialize: function (val) {
9
- return val.toString();
10
- },
11
- deserialize: function (val) {
12
- return val.toString();
13
- }
14
- };
15
- var serializeNumber = {
16
- annotationType: SYNC_ANNOTATION_TYPE,
17
- serialize: function (val) {
18
- return val.toString();
19
- },
20
- deserialize: function (val) {
21
- return +val;
22
- }
23
- };
24
- var serializeStringArray = {
25
- annotationType: SYNC_ANNOTATION_TYPE,
26
- serialize: function (val) {
27
- return val.join(',');
28
- },
29
- deserialize: function (val) {
30
- return val.split(',');
31
- }
32
- };
33
- var serializeNumberArray = {
34
- annotationType: SYNC_ANNOTATION_TYPE,
35
- serialize: function (val) {
36
- return val.join(',');
37
- },
38
- deserialize: function (val) {
39
- return val.split(',').map(function (n) { return +n; });
40
- }
41
- };
42
- var serializeState = {
43
- annotationType: SYNC_ANNOTATION_TYPE,
44
- serialize: function (val) {
45
- var props = val.serialize();
46
- var entries = Object.entries(props).map(function (entry) { return "".concat(entry[0], "=").concat(entry[1]); });
47
- return entries.join(',');
48
- },
49
- deserialize: function (val, target) {
50
- var entries = val.split(',').reduce(function (accum, entry) {
51
- var parts = entry.split('=');
52
- assert(parts.length === 2);
53
- accum[parts[0]] = parts[1];
54
- return accum;
55
- }, {});
56
- target.deserialize(entries);
57
- return target;
58
- }
59
- };
60
- export var serialize = {
61
- string: createDecoratorAnnotation(serializeString),
62
- number: createDecoratorAnnotation(serializeNumber),
63
- stringArray: createDecoratorAnnotation(serializeStringArray),
64
- numberArray: createDecoratorAnnotation(serializeNumberArray),
65
- state: createDecoratorAnnotation(serializeState)
66
- };
67
- function createReactiveAnnotation(mobxAnnotation) {
68
- return createDecoratorAnnotation({
69
- annotationType: REACTIVE_ANNOTATION_TYPE,
70
- mobxAnnotation: mobxAnnotation
71
- });
72
- }
73
- export var observable = Object.assign(createReactiveAnnotation(mobx.observable), {
74
- ref: createReactiveAnnotation(mobx.observable.ref),
75
- struct: createReactiveAnnotation(mobx.observable.ref),
76
- shallow: createReactiveAnnotation(mobx.observable.shallow),
77
- });
78
- export var computed = Object.assign(createReactiveAnnotation(mobx.computed), {
79
- struct: createReactiveAnnotation(mobx.computed.struct)
80
- });
81
- //# sourceMappingURL=decorators.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../../../src/lib/state-store/decorators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAc,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAE5E,MAAM,CAAC,IAAM,oBAAoB,GAAG,uBAAuB,CAAC;AAC5D,MAAM,CAAC,IAAM,wBAAwB,GAAG,2BAA2B,CAAC;AAOpE,IAAM,eAAe,GAA2B;IAC9C,cAAc,EAAE,oBAAoB;IACpC,SAAS,EAAT,UAAU,GAAW;QACnB,OAAO,GAAG,CAAC,QAAQ,EAAE,CAAC;IACxB,CAAC;IACD,WAAW,EAAX,UAAY,GAAW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,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;CAC3D,CAAC,CAAA;AAEF,MAAM,CAAC,IAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,wBAAwB,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;IAC7E,MAAM,EAAE,wBAAwB,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC;CACvD,CAAC,CAAC"}
@@ -1,17 +0,0 @@
1
- interface SerializerTarget {
2
- serialize(): Record<string, string>;
3
- deserialize(values: Partial<Record<string, string>>): void;
4
- }
5
- export declare abstract class Serializer<T extends SerializerTarget> {
6
- target: T;
7
- constructor(target: T);
8
- abstract serialize(vals: Record<string, string>): void;
9
- abstract deserialize(): Record<string, string>;
10
- }
11
- export declare class UrlSerializer<T extends SerializerTarget> extends Serializer<T> {
12
- constructor(target: T);
13
- serialize(vals: Record<string, string>): void;
14
- deserialize(): Record<string, string>;
15
- }
16
- export {};
17
- //# sourceMappingURL=serializer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"serializer.d.ts","sourceRoot":"","sources":["../../../../src/lib/state-store/serializer.ts"],"names":[],"mappings":"AAAA,UAAU,gBAAgB;IACxB,SAAS,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC;CAC5D;AAED,8BAAsB,UAAU,CAAC,CAAC,SAAS,gBAAgB;IACzD,MAAM,EAAE,CAAC,CAAC;gBAEE,MAAM,EAAE,CAAC;IAIrB,QAAQ,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI;IACtD,QAAQ,CAAC,WAAW,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAC/C;AAED,qBAAa,aAAa,CAAC,CAAC,SAAS,gBAAgB,CAAE,SAAQ,UAAU,CAAC,CAAC,CAAC;gBAC9D,MAAM,EAAE,CAAC;IAIrB,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI;IAQ7C,WAAW,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAMtC"}
@@ -1,46 +0,0 @@
1
- import { __extends } from "tslib";
2
- var Serializer = (function () {
3
- function Serializer(target) {
4
- Object.defineProperty(this, "target", {
5
- enumerable: true,
6
- configurable: true,
7
- writable: true,
8
- value: void 0
9
- });
10
- this.target = target;
11
- }
12
- return Serializer;
13
- }());
14
- export { Serializer };
15
- var UrlSerializer = (function (_super) {
16
- __extends(UrlSerializer, _super);
17
- function UrlSerializer(target) {
18
- return _super.call(this, target) || this;
19
- }
20
- Object.defineProperty(UrlSerializer.prototype, "serialize", {
21
- enumerable: false,
22
- configurable: true,
23
- writable: true,
24
- value: function (vals) {
25
- var searchParams = new URLSearchParams(window.location.search);
26
- Object.keys(vals).forEach(function (key) { return searchParams.set(key, vals[key]); });
27
- var queryString = searchParams.toString();
28
- var newUrl = queryString.length ? "".concat(location.pathname, "?").concat(queryString) : location.pathname;
29
- window.history.replaceState(vals, '', newUrl);
30
- }
31
- });
32
- Object.defineProperty(UrlSerializer.prototype, "deserialize", {
33
- enumerable: false,
34
- configurable: true,
35
- writable: true,
36
- value: function () {
37
- var searchParams = new URLSearchParams(window.location.search);
38
- var values = {};
39
- searchParams.forEach(function (val, key) { return (values[key] = val); });
40
- return values;
41
- }
42
- });
43
- return UrlSerializer;
44
- }(Serializer));
45
- export { UrlSerializer };
46
- //# sourceMappingURL=serializer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"serializer.js","sourceRoot":"","sources":["../../../../src/lib/state-store/serializer.ts"],"names":[],"mappings":";AAKA;IAGE,oBAAY,MAAS;QAFrB;;;;;WAAU;QAGR,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAIH,iBAAC;AAAD,CAAC,AATD,IASC;;AAED;IAA+D,iCAAa;IAC1E,uBAAY,MAAS;eACnB,kBAAM,MAAM,CAAC;IACf,CAAC;;;;;eAED,UAAU,IAA4B;YACpC,IAAM,YAAY,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;YACjE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,UAAC,GAAG,IAAK,OAAA,YAAY,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAE,CAAC,EAAjC,CAAiC,CAAC,CAAC;YACtE,IAAM,WAAW,GAAG,YAAY,CAAC,QAAQ,EAAE,CAAC;YAC5C,IAAM,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,UAAG,QAAQ,CAAC,QAAQ,cAAI,WAAW,CAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC;YAC9F,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;QAChD,CAAC;;;;;;eAED;YACE,IAAM,YAAY,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;YACjE,IAAM,MAAM,GAA2B,EAAE,CAAC;YAC1C,YAAY,CAAC,OAAO,CAAC,UAAC,GAAW,EAAE,GAAW,IAAK,OAAA,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,EAAnB,CAAmB,CAAC,CAAC;YACxE,OAAO,MAAM,CAAC;QAChB,CAAC;;IACH,oBAAC;AAAD,CAAC,AAnBD,CAA+D,UAAU,GAmBxE"}
@@ -1,16 +0,0 @@
1
- export declare const storedAnnotationsSymbol: unique symbol;
2
- export declare type Annotated = {
3
- [storedAnnotationsSymbol]: any;
4
- };
5
- export declare type Annotation = {
6
- annotationType: string;
7
- };
8
- export declare type AnnotationsMap<T extends object, A extends Annotation> = {
9
- [P in keyof T]?: A;
10
- };
11
- export declare function createDecoratorAnnotation<A extends Annotation>(annotation: A): PropertyDecorator & A;
12
- export declare function storeAnnotation(prototype: any, key: PropertyKey, annotation: Annotation): void;
13
- export declare function collectStoredAnnotations<A extends Annotation, T extends object>(target: T, annotationType: string): AnnotationsMap<T, A>;
14
- export declare function addHiddenProp(object: any, propName: PropertyKey, value: any): void;
15
- export declare function hasProp(target: any, prop: PropertyKey): boolean;
16
- //# sourceMappingURL=decorators.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../../../../src/lib/utils/decorators.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,uBAAuB,eAAiC,CAAC;AAEtE,oBAAY,SAAS,GAAG;IAAE,CAAC,uBAAuB,CAAC,EAAE,GAAG,CAAA;CAAE,CAAC;AAE3D,oBAAY,UAAU,GAAG;IACvB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,oBAAY,cAAc,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,UAAU,IAAI;KAClE,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;CACnB,CAAC;AAOF,wBAAgB,yBAAyB,CAAC,CAAC,SAAS,UAAU,EAAE,UAAU,EAAE,CAAC,GAAG,iBAAiB,GAAG,CAAC,CAKpG;AAMD,wBAAgB,eAAe,CAAC,SAAS,EAAE,GAAG,EAAE,GAAG,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,QAcvF;AAmBD,wBAAgB,wBAAwB,CAAC,CAAC,SAAS,UAAU,EAAE,CAAC,SAAS,MAAM,EAC7E,MAAM,EAAE,CAAC,EACT,cAAc,EAAE,MAAM,GACrB,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,CAEtB;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,QAO3E;AAED,wBAAgB,OAAO,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAE/D"}
@@ -1,46 +0,0 @@
1
- import { __assign } from "tslib";
2
- import { die } from './assert';
3
- export var storedAnnotationsSymbol = Symbol('flow-rdf-annotations');
4
- export function createDecoratorAnnotation(annotation) {
5
- function decorator(target, property) {
6
- storeAnnotation(target, property, annotation);
7
- }
8
- return Object.assign(decorator, annotation);
9
- }
10
- export function storeAnnotation(prototype, key, annotation) {
11
- var _a;
12
- var _b, _c;
13
- if (!hasProp(prototype, storedAnnotationsSymbol)) {
14
- addHiddenProp(prototype, storedAnnotationsSymbol, __assign({}, prototype[storedAnnotationsSymbol]));
15
- }
16
- (_a = (_b = prototype[storedAnnotationsSymbol])[_c = annotation.annotationType]) !== null && _a !== void 0 ? _a : (_b[_c] = {});
17
- assertNotDecorated(prototype, annotation, key);
18
- prototype[storedAnnotationsSymbol][annotation.annotationType][key] = annotation;
19
- }
20
- function assertNotDecorated(prototype, annotation, key) {
21
- if (hasProp(prototype[storedAnnotationsSymbol][annotation.annotationType], key)) {
22
- var fieldName = "".concat(prototype.constructor.name, ".prototype.").concat(key.toString());
23
- var currentAnnotationType = prototype[storedAnnotationsSymbol][key].annotationType_;
24
- var requestedAnnotationType = annotation.annotationType;
25
- die("Cannot apply '@".concat(requestedAnnotationType, "' to '").concat(fieldName, "':") +
26
- "\nThe field is already decorated with '@".concat(currentAnnotationType, "'.") +
27
- "\nRe-decorating fields is not allowed." +
28
- "\nUse '@override' decorator for methods overridden by subclass.");
29
- }
30
- }
31
- export function collectStoredAnnotations(target, annotationType) {
32
- var _a, _b;
33
- return (_b = (_a = target[storedAnnotationsSymbol]) === null || _a === void 0 ? void 0 : _a[annotationType]) !== null && _b !== void 0 ? _b : {};
34
- }
35
- export function addHiddenProp(object, propName, value) {
36
- Object.defineProperty(object, propName, {
37
- enumerable: false,
38
- writable: true,
39
- configurable: true,
40
- value: value
41
- });
42
- }
43
- export function hasProp(target, prop) {
44
- return Object.hasOwnProperty.call(target, prop);
45
- }
46
- //# sourceMappingURL=decorators.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../../../src/lib/utils/decorators.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAE/B,MAAM,CAAC,IAAM,uBAAuB,GAAG,MAAM,CAAC,sBAAsB,CAAC,CAAC;AAiBtE,MAAM,UAAU,yBAAyB,CAAuB,UAAa;IAC3E,SAAS,SAAS,CAAC,MAAW,EAAE,QAAqB;QACjD,eAAe,CAAC,MAAM,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;IAChD,CAAC;IACD,OAAO,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;AAChD,CAAC;AAMD,MAAM,UAAU,eAAe,CAAC,SAAc,EAAE,GAAgB,EAAE,UAAsB;;;IACtF,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,uBAAuB,CAAC,EAAE;QAChD,aAAa,CAAC,SAAS,EAAE,uBAAuB,eAE3C,SAAS,CAAC,uBAAuB,CAAC,EACrC,CAAC;KACJ;IAED,YAAA,SAAS,CAAC,uBAAuB,CAAC,OAAC,UAAU,CAAC,cAAc,8CAAM,EAAE,EAAC;IAGrE,kBAAkB,CAAC,SAAS,EAAE,UAAU,EAAE,GAAG,CAAC,CAAC;IAE/C,SAAS,CAAC,uBAAuB,CAAC,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC,GAAG,CAAC,GAAG,UAAU,CAAC;AAClF,CAAC;AAED,SAAS,kBAAkB,CAAC,SAAc,EAAE,UAAsB,EAAE,GAAgB;IAClF,IAAI,OAAO,CAAC,SAAS,CAAC,uBAAuB,CAAC,CAAC,UAAU,CAAC,cAAc,CAAC,EAAE,GAAG,CAAC,EAAE;QAC/E,IAAM,SAAS,GAAG,UAAG,SAAS,CAAC,WAAW,CAAC,IAAI,wBAAc,GAAG,CAAC,QAAQ,EAAE,CAAE,CAAC;QAC9E,IAAM,qBAAqB,GAAG,SAAS,CAAC,uBAAuB,CAAC,CAAC,GAAG,CAAC,CAAC,eAAe,CAAC;QACtF,IAAM,uBAAuB,GAAG,UAAU,CAAC,cAAc,CAAC;QAC1D,GAAG,CACD,yBAAkB,uBAAuB,mBAAS,SAAS,OAAI;YAC7D,kDAA2C,qBAAqB,OAAI;YACpE,wCAAwC;YACxC,iEAAiE,CACpE,CAAC;KACH;AACH,CAAC;AAKD,MAAM,UAAU,wBAAwB,CACtC,MAAS,EACT,cAAsB;;IAEtB,OAAO,MAAA,MAAC,MAAc,CAAC,uBAAuB,CAAC,0CAAG,cAAc,CAAC,mCAAI,EAAE,CAAC;AAC1E,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,MAAW,EAAE,QAAqB,EAAE,KAAU;IAC1E,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,EAAE;QACtC,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE,IAAI;QACd,YAAY,EAAE,IAAI;QAClB,KAAK,OAAA;KACN,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,MAAW,EAAE,IAAiB;IACpD,OAAO,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AAClD,CAAC"}
@@ -1,26 +0,0 @@
1
- import { Annotation } from '../utils/decorators';
2
- export declare const SYNC_ANNOTATION_TYPE = "state-sync-annotation";
3
- export declare const REACTIVE_ANNOTATION_TYPE = "state-reactive-annotation";
4
- export interface SyncAnnotation<T = any> extends Annotation {
5
- serialize(val: T): string;
6
- deserialize(val: string, target?: T): T;
7
- }
8
- export declare const serialize: {
9
- string: PropertyDecorator & SyncAnnotation<string>;
10
- number: PropertyDecorator & SyncAnnotation<number>;
11
- stringArray: PropertyDecorator & SyncAnnotation<string[]>;
12
- numberArray: PropertyDecorator & SyncAnnotation<number[]>;
13
- state: PropertyDecorator & SyncAnnotation<any>;
14
- };
15
- export interface ReactiveAnnotation extends Annotation {
16
- mobxAnnotation: any;
17
- }
18
- export declare const observable: PropertyDecorator & ReactiveAnnotation & {
19
- ref: PropertyDecorator & ReactiveAnnotation;
20
- struct: PropertyDecorator & ReactiveAnnotation;
21
- shallow: PropertyDecorator & ReactiveAnnotation;
22
- };
23
- export declare const computed: PropertyDecorator & ReactiveAnnotation & {
24
- struct: PropertyDecorator & ReactiveAnnotation;
25
- };
26
- //# sourceMappingURL=decorators.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../../../../src/lib/state-store/decorators.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAA6B,MAAM,qBAAqB,CAAC;AAE5E,eAAO,MAAM,oBAAoB,0BAA0B,CAAC;AAC5D,eAAO,MAAM,wBAAwB,8BAA8B,CAAC;AAEpE,MAAM,WAAW,cAAc,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,UAAU;IACzD,SAAS,CAAC,GAAG,EAAE,CAAC,GAAG,MAAM,CAAC;IAC1B,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;CACzC;AAgED,eAAO,MAAM,SAAS;;;;;;CAMrB,CAAC;AAKF,MAAM,WAAW,kBAAmB,SAAQ,UAAU;IACpD,cAAc,EAAE,GAAG,CAAC;CACrB;AASD,eAAO,MAAM,UAAU;;;;CAIrB,CAAA;AAEF,eAAO,MAAM,QAAQ;;CAEnB,CAAC"}
@@ -1,17 +0,0 @@
1
- interface SerializerTarget {
2
- serialize(): Record<string, string>;
3
- deserialize(values: Partial<Record<string, string>>): void;
4
- }
5
- export declare abstract class Serializer<T extends SerializerTarget> {
6
- target: T;
7
- constructor(target: T);
8
- abstract serialize(vals: Record<string, string>): void;
9
- abstract deserialize(): Record<string, string>;
10
- }
11
- export declare class UrlSerializer<T extends SerializerTarget> extends Serializer<T> {
12
- constructor(target: T);
13
- serialize(vals: Record<string, string>): void;
14
- deserialize(): Record<string, string>;
15
- }
16
- export {};
17
- //# sourceMappingURL=serializer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"serializer.d.ts","sourceRoot":"","sources":["../../../../src/lib/state-store/serializer.ts"],"names":[],"mappings":"AAAA,UAAU,gBAAgB;IACxB,SAAS,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC;CAC5D;AAED,8BAAsB,UAAU,CAAC,CAAC,SAAS,gBAAgB;IACzD,MAAM,EAAE,CAAC,CAAC;gBAEE,MAAM,EAAE,CAAC;IAIrB,QAAQ,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI;IACtD,QAAQ,CAAC,WAAW,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAC/C;AAED,qBAAa,aAAa,CAAC,CAAC,SAAS,gBAAgB,CAAE,SAAQ,UAAU,CAAC,CAAC,CAAC;gBAC9D,MAAM,EAAE,CAAC;IAIrB,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI;IAQ7C,WAAW,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAMtC"}
@@ -1,28 +0,0 @@
1
- export declare const storedAnnotationsSymbol: unique symbol;
2
- export declare type Annotated = {
3
- [storedAnnotationsSymbol]: any;
4
- };
5
- export declare type Annotation = {
6
- annotationType: string;
7
- };
8
- export declare type AnnotationsMap<T extends object, A extends Annotation> = {
9
- [P in keyof T]?: A;
10
- };
11
- /**
12
- * Creates a function that acts as
13
- * - decorator
14
- * - annotation object
15
- */
16
- export declare function createDecoratorAnnotation<A extends Annotation>(annotation: A): PropertyDecorator & A;
17
- /**
18
- * Stores annotation to prototype,
19
- * so it can be inspected later by `makeObservable` called from constructor
20
- */
21
- export declare function storeAnnotation(prototype: any, key: PropertyKey, annotation: Annotation): void;
22
- /**
23
- * Collects annotations from prototypes and stores them on target (instance)
24
- */
25
- export declare function collectStoredAnnotations<A extends Annotation, T extends object>(target: T, annotationType: string): AnnotationsMap<T, A>;
26
- export declare function addHiddenProp(object: any, propName: PropertyKey, value: any): void;
27
- export declare function hasProp(target: any, prop: PropertyKey): boolean;
28
- //# sourceMappingURL=decorators.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../../../../src/lib/utils/decorators.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,uBAAuB,eAAiC,CAAC;AAEtE,oBAAY,SAAS,GAAG;IAAE,CAAC,uBAAuB,CAAC,EAAE,GAAG,CAAA;CAAE,CAAC;AAE3D,oBAAY,UAAU,GAAG;IACvB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,oBAAY,cAAc,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,UAAU,IAAI;KAClE,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,CAAC,SAAS,UAAU,EAAE,UAAU,EAAE,CAAC,GAAG,iBAAiB,GAAG,CAAC,CAKpG;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,GAAG,EAAE,GAAG,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,QAcvF;AAgBD;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,CAAC,SAAS,UAAU,EAAE,CAAC,SAAS,MAAM,EAC7E,MAAM,EAAE,CAAC,EACT,cAAc,EAAE,MAAM,GACrB,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,CAEtB;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,QAO3E;AAED,wBAAgB,OAAO,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAE/D"}