symcrys 0.8.0 → 0.9.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 (105) hide show
  1. package/README.md +11 -2
  2. package/dist/cell.d.ts +5 -2
  3. package/dist/cell.d.ts.map +1 -1
  4. package/dist/cell.js +7 -7
  5. package/dist/cell.js.map +1 -1
  6. package/dist/crystalClasses.d.ts +13 -8
  7. package/dist/crystalClasses.d.ts.map +1 -1
  8. package/dist/crystalClasses.js +13 -8
  9. package/dist/crystalClasses.js.map +1 -1
  10. package/dist/indices.d.ts +3 -1
  11. package/dist/indices.d.ts.map +1 -1
  12. package/dist/indices.js +6 -2
  13. package/dist/indices.js.map +1 -1
  14. package/dist/linalg.d.ts +7 -1
  15. package/dist/linalg.d.ts.map +1 -1
  16. package/dist/linalg.js +20 -3
  17. package/dist/linalg.js.map +1 -1
  18. package/dist/operations.d.ts +6 -0
  19. package/dist/operations.d.ts.map +1 -1
  20. package/dist/operations.js +19 -0
  21. package/dist/operations.js.map +1 -1
  22. package/dist/plane.d.ts +225 -0
  23. package/dist/plane.d.ts.map +1 -0
  24. package/dist/plane.js +219 -0
  25. package/dist/plane.js.map +1 -0
  26. package/dist/pointGroups/identify.d.ts +4 -2
  27. package/dist/pointGroups/identify.d.ts.map +1 -1
  28. package/dist/pointGroups/identify.js +5 -18
  29. package/dist/pointGroups/identify.js.map +1 -1
  30. package/dist/pointGroups/orbits.d.ts +1 -1
  31. package/dist/pointGroups/orbits.d.ts.map +1 -1
  32. package/dist/pointGroups/orbits.js +3 -3
  33. package/dist/pointGroups/orbits.js.map +1 -1
  34. package/dist/pointGroups/properties.d.ts +6 -2
  35. package/dist/pointGroups/properties.d.ts.map +1 -1
  36. package/dist/pointGroups/properties.js +6 -2
  37. package/dist/pointGroups/properties.js.map +1 -1
  38. package/dist/siteSymmetry.d.ts +5 -3
  39. package/dist/siteSymmetry.d.ts.map +1 -1
  40. package/dist/siteSymmetry.js +6 -2
  41. package/dist/siteSymmetry.js.map +1 -1
  42. package/dist/spaceGroups/affine.d.ts +81 -0
  43. package/dist/spaceGroups/affine.d.ts.map +1 -0
  44. package/dist/spaceGroups/affine.js +245 -0
  45. package/dist/spaceGroups/affine.js.map +1 -0
  46. package/dist/spaceGroups/cell.d.ts +58 -0
  47. package/dist/spaceGroups/cell.d.ts.map +1 -0
  48. package/dist/spaceGroups/cell.js +297 -0
  49. package/dist/spaceGroups/cell.js.map +1 -0
  50. package/dist/spaceGroups/describe.d.ts +44 -0
  51. package/dist/spaceGroups/describe.d.ts.map +1 -0
  52. package/dist/spaceGroups/describe.js +92 -0
  53. package/dist/spaceGroups/describe.js.map +1 -0
  54. package/dist/spaceGroups/planeGroupData.d.ts +44 -0
  55. package/dist/spaceGroups/planeGroupData.d.ts.map +1 -0
  56. package/dist/spaceGroups/planeGroupData.js +371 -0
  57. package/dist/spaceGroups/planeGroupData.js.map +1 -0
  58. package/dist/spaceGroups/planeGroups.d.ts +28 -0
  59. package/dist/spaceGroups/planeGroups.d.ts.map +1 -0
  60. package/dist/spaceGroups/planeGroups.js +61 -0
  61. package/dist/spaceGroups/planeGroups.js.map +1 -0
  62. package/dist/spaceGroups/planePointGroups.d.ts +31 -0
  63. package/dist/spaceGroups/planePointGroups.d.ts.map +1 -0
  64. package/dist/spaceGroups/planePointGroups.js +77 -0
  65. package/dist/spaceGroups/planePointGroups.js.map +1 -0
  66. package/dist/spaceGroups/positions.d.ts +65 -0
  67. package/dist/spaceGroups/positions.d.ts.map +1 -0
  68. package/dist/spaceGroups/positions.js +183 -0
  69. package/dist/spaceGroups/positions.js.map +1 -0
  70. package/dist/spaceGroups/rational.d.ts +43 -0
  71. package/dist/spaceGroups/rational.d.ts.map +1 -0
  72. package/dist/spaceGroups/rational.js +95 -0
  73. package/dist/spaceGroups/rational.js.map +1 -0
  74. package/dist/tensors/tensorForm.d.ts +3 -1
  75. package/dist/tensors/tensorForm.d.ts.map +1 -1
  76. package/dist/tensors/tensorForm.js +3 -1
  77. package/dist/tensors/tensorForm.js.map +1 -1
  78. package/dist/tensors/tensorProperties.d.ts +4 -2
  79. package/dist/tensors/tensorProperties.d.ts.map +1 -1
  80. package/dist/tensors/tensorProperties.js +4 -2
  81. package/dist/tensors/tensorProperties.js.map +1 -1
  82. package/dist/version.d.ts +1 -1
  83. package/dist/version.js +1 -1
  84. package/package.json +7 -2
  85. package/src/cell.ts +9 -8
  86. package/src/crystalClasses.ts +13 -8
  87. package/src/indices.ts +5 -2
  88. package/src/linalg.ts +21 -2
  89. package/src/operations.ts +20 -0
  90. package/src/plane.ts +455 -0
  91. package/src/pointGroups/identify.ts +5 -19
  92. package/src/pointGroups/orbits.ts +3 -3
  93. package/src/pointGroups/properties.ts +6 -2
  94. package/src/siteSymmetry.ts +6 -3
  95. package/src/spaceGroups/affine.ts +315 -0
  96. package/src/spaceGroups/cell.ts +371 -0
  97. package/src/spaceGroups/describe.ts +133 -0
  98. package/src/spaceGroups/planeGroupData.ts +407 -0
  99. package/src/spaceGroups/planeGroups.ts +75 -0
  100. package/src/spaceGroups/planePointGroups.ts +90 -0
  101. package/src/spaceGroups/positions.ts +237 -0
  102. package/src/spaceGroups/rational.ts +115 -0
  103. package/src/tensors/tensorForm.ts +3 -1
  104. package/src/tensors/tensorProperties.ts +4 -2
  105. package/src/version.ts +1 -1
@@ -0,0 +1,225 @@
1
+ /**
2
+ * The plane API of symcrys (`symcrys/plane`): the 17 plane groups and the 10 plane point groups, in
3
+ * the lattice basis, as ITA (6th ed., 2016) prints them in Chapter 2.2 and Table 3.2.1.1.
4
+ * Everything exported here is covered by SemVer (see CLAUDE.md), like the exports of `index.ts`.
5
+ *
6
+ * Inside, the operations are exact (integer matrices, rational translations); here they are plain
7
+ * numbers: a translation of 1/3 is the nearest double. Keys are the symbols ITA prints: `'p2mg'`,
8
+ * `'c2mm'` for the plane groups, `'2mm'`, `'3m'` for the plane point groups; the two sets do not
9
+ * overlap. Functions that take a point take its coordinates in the lattice basis and an optional
10
+ * `tolerance` (docs/conventions.md, "Plane groups").
11
+ */
12
+ import { type PlaneSystem } from './spaceGroups/planeGroupData.js';
13
+ import { type PlanePointGroupKey } from './spaceGroups/planePointGroups.js';
14
+ export { VERSION } from './version.js';
15
+ export type { PlaneSystem } from './spaceGroups/planeGroupData.js';
16
+ /** The short symbol of a plane group, e.g. `'p2mg'`. */
17
+ export type PlaneGroupKey = 'p1' | 'p2' | 'pm' | 'pg' | 'cm' | 'p2mm' | 'p2mg' | 'p2gg' | 'c2mm' | 'p4' | 'p4mm' | 'p4gm' | 'p3' | 'p3m1' | 'p31m' | 'p6' | 'p6mm';
18
+ /** The key of a plane point group, e.g. `'2mm'`. */
19
+ export type PointGroupKey = PlanePointGroupKey;
20
+ /** The short symbols of the 17 plane groups, in ITA's order (plane group n at index n − 1). */
21
+ export declare const PLANE_GROUP_KEYS: readonly PlaneGroupKey[];
22
+ /** The keys of the 10 plane point groups, in the order of ITA Table 3.2.1.1. */
23
+ export declare const POINT_GROUP_KEYS: readonly PointGroupKey[];
24
+ /** Options that choose the setting of a plane point group. */
25
+ export interface SettingOptions {
26
+ /** 1-based setting: for the point group `3m` 1 is `3m1` (default) and 2 is `31m`; the other point groups have one, and a plane group takes only 1. */
27
+ readonly setting?: number;
28
+ }
29
+ /** Options of the functions that take a point. */
30
+ export interface PointOptions {
31
+ /**
32
+ * Two points count as the same, modulo the lattice, if each coordinate (lattice basis) differs
33
+ * by less than this from an integer. Default 10⁻⁶; must be below 1/2.
34
+ */
35
+ readonly tolerance?: number;
36
+ }
37
+ /** An operation (W, w) in the lattice basis: x ↦ W·x + w. */
38
+ export interface PlaneOperation {
39
+ /** The linear part W, a 2 × 2 matrix with integer entries, rows first. */
40
+ readonly matrix: readonly (readonly number[])[];
41
+ /** The translation part w; for a plane group in [0, 1), for a point group zero. */
42
+ readonly translation: readonly number[];
43
+ }
44
+ /** A plane group. */
45
+ export interface PlaneGroup {
46
+ /** The short symbol, e.g. `'p2mg'`. */
47
+ readonly key: PlaneGroupKey;
48
+ /** The number of the plane group, 1 to 17. */
49
+ readonly number: number;
50
+ /** The full symbol as ITA prints it, e.g. `'p2mg'` or `'p1m1'`. */
51
+ readonly fullSymbol: string;
52
+ /** The plane point group. */
53
+ readonly pointGroup: PointGroupKey;
54
+ /** The setting of the point group: 2 for `p31m`, otherwise 1. */
55
+ readonly pointGroupSetting: number;
56
+ /** The crystal system. */
57
+ readonly crystalSystem: PlaneSystem;
58
+ /** The centring translations besides (0, 0): `[[0.5, 0.5]]` for `cm` and `c2mm`, otherwise none. */
59
+ readonly centring: readonly (readonly number[])[];
60
+ /** The block "Origin" as ITA prints it, e.g. `'at 2mm'`. */
61
+ readonly origin: string;
62
+ /** The order of the group modulo the lattice: the number of `operations`. */
63
+ readonly order: number;
64
+ }
65
+ /** A plane point group. */
66
+ export interface PointGroup {
67
+ /** The key, e.g. `'2mm'`. */
68
+ readonly key: PointGroupKey;
69
+ /** The crystal system. */
70
+ readonly crystalSystem: PlaneSystem;
71
+ /** The order of the group. */
72
+ readonly order: number;
73
+ }
74
+ /** A setting of a plane point group. */
75
+ export interface Setting {
76
+ /** 1-based. */
77
+ readonly index: number;
78
+ /** Its symbol: `'3m1'` or `'31m'` for `3m`, otherwise the key. */
79
+ readonly symbol: string;
80
+ /** True for the default setting (setting 1). */
81
+ readonly default: boolean;
82
+ }
83
+ /** What an operation is, geometrically, as ITA describes it under "Symmetry operations". */
84
+ export interface OperationDescription {
85
+ /** `'identity'`, `'translation'`, `'rotation'`, `'mirror'` (a reflection in a line) or `'glide'` (a glide reflection). */
86
+ readonly kind: 'identity' | 'translation' | 'rotation' | 'mirror' | 'glide';
87
+ /** The order of the linear part: 1 for the identity and a translation, 2 for a mirror or glide. */
88
+ readonly order: number;
89
+ /** For a rotation of order 3 or more: `'+'` if it turns a towards b, `'-'` otherwise. */
90
+ readonly sense?: '+' | '-';
91
+ /** For a translation: the translation vector. */
92
+ readonly translation?: readonly number[];
93
+ /**
94
+ * For a rotation: its centre. For a mirror or glide: a point of its line, on y = 0 unless the line
95
+ * is parallel to it, then on x = 0. Not reduced modulo the lattice.
96
+ */
97
+ readonly location?: readonly number[];
98
+ /** For a mirror or glide: the direction of its line, the shortest integer vector, first non-zero component positive. */
99
+ readonly direction?: readonly number[];
100
+ /** For a glide: the glide vector (w + W·w)/2, not reduced modulo the lattice. */
101
+ readonly glide?: readonly number[];
102
+ }
103
+ /** A Wyckoff position of a plane group, as ITA prints it. */
104
+ export interface WyckoffPosition {
105
+ /** The Wyckoff letter. */
106
+ readonly letter: string;
107
+ /** The multiplicity: the number of points in the conventional cell. */
108
+ readonly multiplicity: number;
109
+ /** The oriented site-symmetry symbol, e.g. `'.m.'`, `'2mm'` (without the spaces of the print). */
110
+ readonly siteSymmetry: string;
111
+ /** The printed coordinates of the (0,0)+ set, e.g. `['x,0', '-x,0']`; a leading `-` is an overbar. */
112
+ readonly coordinates: readonly string[];
113
+ }
114
+ /** The site symmetry of a point under a plane group. */
115
+ export interface SiteSymmetry {
116
+ /** Indices into `operations` of those that map the point onto itself modulo the lattice, ascending: a subgroup. */
117
+ readonly operations: readonly number[];
118
+ /** The point set onto the fixed space of its site symmetry, in [0, 1), which removes rounding errors within the tolerance. */
119
+ readonly point: readonly number[];
120
+ /** The number of points in the conventional cell equivalent to it. */
121
+ readonly multiplicity: number;
122
+ /** True if no operation other than the identity maps the point onto itself (general position). */
123
+ readonly general: boolean;
124
+ }
125
+ /** The asymmetric unit of a plane group, a convex polygon in the lattice basis. */
126
+ export interface AsymmetricUnit {
127
+ /** Its vertices, counter-clockwise (a towards b), starting at the lowest (smallest y, then x). */
128
+ readonly vertices: readonly (readonly number[])[];
129
+ /** Per edge, the inequality [a, b, c] for a·x + b·y ≤ c (integers, no common factor); entry i holds the edge from vertex i to vertex i + 1. */
130
+ readonly inequalities: readonly (readonly number[])[];
131
+ }
132
+ /** A rotation centre in the cell. */
133
+ export interface RotationCentre {
134
+ /** The highest order of a rotation about it. */
135
+ readonly order: number;
136
+ /** Its position in [0, 1]². */
137
+ readonly point: readonly number[];
138
+ }
139
+ /** A mirror or glide line: the part of it in the cell. */
140
+ export interface SymmetryLine {
141
+ /** `'mirror'` or `'glide'`. */
142
+ readonly kind: 'mirror' | 'glide';
143
+ /** The direction of the line, the shortest integer vector, first non-zero component positive. */
144
+ readonly direction: readonly number[];
145
+ /** For a glide line its glide vector s·direction, 0 < s < 1; for a mirror line (0, 0). */
146
+ readonly glide: readonly number[];
147
+ /** The two ends of the segment of the line in the cell [0, 1]², in the order of `direction`. */
148
+ readonly segment: readonly (readonly number[])[];
149
+ }
150
+ /** The symmetry elements of a plane group in its conventional cell [0, 1]², boundary included. */
151
+ export interface SymmetryElements {
152
+ /** The rotation centres, by descending order, then by y and x. */
153
+ readonly rotations: readonly RotationCentre[];
154
+ /** The mirror and glide lines that cross the cell, by direction, then by the start of the segment (y, then x). */
155
+ readonly lines: readonly SymmetryLine[];
156
+ }
157
+ /** The plane group with this key (short symbol). Throws a RangeError for an unknown key. */
158
+ export declare function planeGroup(key: PlaneGroupKey): PlaneGroup;
159
+ /** The plane point group with this key. Throws a RangeError for an unknown key. */
160
+ export declare function pointGroup(key: PointGroupKey): PointGroup;
161
+ /**
162
+ * The settings of a plane point group: two for `3m` (`3m1`, the default, and `31m`), one for the
163
+ * others. Throws a RangeError for an unknown key.
164
+ */
165
+ export declare function settings(key: PointGroupKey): readonly Setting[];
166
+ /** The symbol of a plane point group in a setting: `'3m1'` or `'31m'` for `3m`, otherwise the key. */
167
+ export declare function symbol(key: PointGroupKey, options?: SettingOptions): string;
168
+ /**
169
+ * The operations of a plane group or a plane point group, in ITA's order, identity first. A plane
170
+ * group: one per coset of the integer translations, translations in [0, 1), the general position
171
+ * as numbered, then for a centred group the same sequence with the centring added (the
172
+ * "(1/2,1/2)+ set"). A point group: the linear parts of its symmorphic plane group (pm for m,
173
+ * p3m1 and p31m for the settings of 3m), translation zero. Throws a RangeError for an unknown key
174
+ * or setting.
175
+ */
176
+ export declare function operations(key: PlaneGroupKey | PointGroupKey, options?: SettingOptions): readonly PlaneOperation[];
177
+ /**
178
+ * ITA's selected generators, in printed order, without the identity and the integer translations:
179
+ * for a centred plane group the centring translation first. A point group: the linear parts of the
180
+ * generators of its symmorphic plane group. Throws a RangeError for an unknown key or setting.
181
+ */
182
+ export declare function generators(key: PlaneGroupKey | PointGroupKey, options?: SettingOptions): readonly PlaneOperation[];
183
+ /**
184
+ * Each operation of `operations` (same key and setting) described geometrically, index for index:
185
+ * what it is, its order and sense, where its symmetry element lies, its glide part. Throws a
186
+ * RangeError for an unknown key or setting.
187
+ */
188
+ export declare function describeOperations(key: PlaneGroupKey | PointGroupKey, options?: SettingOptions): readonly OperationDescription[];
189
+ /**
190
+ * The Wyckoff positions of a plane group as ITA prints them, general position first. Throws a
191
+ * RangeError for an unknown key and for a plane point group, whose positions are not in symcrys
192
+ * yet.
193
+ */
194
+ export declare function wyckoffPositions(key: PlaneGroupKey): readonly WyckoffPosition[];
195
+ /**
196
+ * The site symmetry of a point (lattice basis) under a plane group: the operations that map it
197
+ * onto itself modulo the lattice within the tolerance, closed into a group, and the point set onto
198
+ * their fixed space. Throws a RangeError for an unknown key, a point that is not two finite
199
+ * numbers, or a tolerance outside (0, 1/2).
200
+ */
201
+ export declare function siteSymmetry(key: PlaneGroupKey, point: readonly number[], options?: PointOptions): SiteSymmetry;
202
+ /**
203
+ * The Wyckoff position of a point (lattice basis) under a plane group, as `wyckoffPositions` gives
204
+ * it: the printed position of the point's multiplicity whose coordinates, with the centring, reach
205
+ * the point set onto its site symmetry. Throws a RangeError as `siteSymmetry`.
206
+ */
207
+ export declare function wyckoffPositionOf(key: PlaneGroupKey, point: readonly number[], options?: PointOptions): WyckoffPosition;
208
+ /**
209
+ * The orbit of a point (lattice basis) under a plane group: its distinct images in the
210
+ * conventional cell, each in [0, 1), in the order of the operations that first give them; images
211
+ * that coincide within the tolerance are merged. Throws a RangeError as `siteSymmetry`.
212
+ */
213
+ export declare function orbit(key: PlaneGroupKey, point: readonly number[], options?: PointOptions): readonly (readonly number[])[];
214
+ /**
215
+ * The asymmetric unit of a plane group as ITA prints it: a convex polygon given by its vertices and,
216
+ * per edge, the printed inequality that holds it. Throws a RangeError for an unknown key.
217
+ */
218
+ export declare function asymmetricUnit(key: PlaneGroupKey): AsymmetricUnit;
219
+ /**
220
+ * The symmetry elements of a plane group in its conventional cell [0, 1]², boundary included:
221
+ * every rotation centre with the highest order of a rotation about it, and every mirror and glide
222
+ * line that crosses the cell, with the segment inside it. Throws a RangeError for an unknown key.
223
+ */
224
+ export declare function symmetryElements(key: PlaneGroupKey): SymmetryElements;
225
+ //# sourceMappingURL=plane.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plane.d.ts","sourceRoot":"","sources":["../src/plane.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAOnE,OAAO,EASL,KAAK,kBAAkB,EACxB,MAAM,mCAAmC,CAAC;AAI3C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,YAAY,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAEnE,wDAAwD;AACxD,MAAM,MAAM,aAAa,GACrB,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,GACN,IAAI,GACJ,MAAM,GACN,MAAM,GACN,IAAI,GACJ,MAAM,GACN,MAAM,GACN,IAAI,GACJ,MAAM,CAAC;AAEX,oDAAoD;AACpD,MAAM,MAAM,aAAa,GAAG,kBAAkB,CAAC;AAE/C,+FAA+F;AAC/F,eAAO,MAAM,gBAAgB,EAAE,SAAS,aAAa,EAAsD,CAAC;AAE5G,gFAAgF;AAChF,eAAO,MAAM,gBAAgB,EAAE,SAAS,aAAa,EAA+C,CAAC;AAErG,8DAA8D;AAC9D,MAAM,WAAW,cAAc;IAC7B,s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AG,EAAE,aAAa,GAAG,cAAc,CAMjE;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,aAAa,GAAG,gBAAgB,CAiBrE"}
package/dist/plane.js ADDED
@@ -0,0 +1,219 @@
1
+ /**
2
+ * The plane API of symcrys (`symcrys/plane`): the 17 plane groups and the 10 plane point groups, in
3
+ * the lattice basis, as ITA (6th ed., 2016) prints them in Chapter 2.2 and Table 3.2.1.1.
4
+ * Everything exported here is covered by SemVer (see CLAUDE.md), like the exports of `index.ts`.
5
+ *
6
+ * Inside, the operations are exact (integer matrices, rational translations); here they are plain
7
+ * numbers: a translation of 1/3 is the nearest double. Keys are the symbols ITA prints: `'p2mg'`,
8
+ * `'c2mm'` for the plane groups, `'2mm'`, `'3m'` for the plane point groups; the two sets do not
9
+ * overlap. Functions that take a point take its coordinates in the lattice basis and an optional
10
+ * `tolerance` (docs/conventions.md, "Plane groups").
11
+ */
12
+ import { describePlaneOperation } from './spaceGroups/describe.js';
13
+ import { planeAsymmetricUnit, planeCellElements } from './spaceGroups/cell.js';
14
+ import { toPlain } from './spaceGroups/affine.js';
15
+ import {} from './spaceGroups/planeGroupData.js';
16
+ import { PLANE_GROUP_KEYS as GROUP_KEYS, planeGroupEntry, planeGroupGenerators, planeGroupOperations, } from './spaceGroups/planeGroups.js';
17
+ import { PLANE_POINT_GROUP_KEYS, isPlanePointGroupKey, planePointGroupGenerators, planePointGroupOf, planePointGroupOperations, planePointGroupSettingCount, planePointGroupSymbol, planePointGroupSystem, } from './spaceGroups/planePointGroups.js';
18
+ import { planeOrbit, planeSiteSymmetry, planeWyckoffPositionOf } from './spaceGroups/positions.js';
19
+ import { parseRational, toNumber } from './spaceGroups/rational.js';
20
+ export { VERSION } from './version.js';
21
+ /** The short symbols of the 17 plane groups, in ITA's order (plane group n at index n − 1). */
22
+ export const PLANE_GROUP_KEYS = Object.freeze([...GROUP_KEYS]);
23
+ /** The keys of the 10 plane point groups, in the order of ITA Table 3.2.1.1. */
24
+ export const POINT_GROUP_KEYS = Object.freeze([...PLANE_POINT_GROUP_KEYS]);
25
+ // ---------------------------------------------------------------------------------------------
26
+ const numbers = (v) => v.map(toNumber);
27
+ function isPlaneGroupKey(key) {
28
+ return typeof key === 'string' && GROUP_KEYS.includes(key);
29
+ }
30
+ function unknownKey(key, what = 'plane group or plane point group') {
31
+ throw new RangeError(`Unknown ${what}: ${JSON.stringify(key)}`);
32
+ }
33
+ /** The plane group of a key; throws for a point group or an unknown key. */
34
+ function groupKey(key, what) {
35
+ if (isPlaneGroupKey(key))
36
+ return key;
37
+ if (isPlanePointGroupKey(key)) {
38
+ throw new RangeError(`${what} takes the key of a plane group, not of the point group ${key}`);
39
+ }
40
+ return unknownKey(key, 'plane group');
41
+ }
42
+ /** The key of a plane point group; throws for a plane group or an unknown key. */
43
+ function pointKey(key, what) {
44
+ if (isPlanePointGroupKey(key))
45
+ return key;
46
+ if (isPlaneGroupKey(key)) {
47
+ throw new RangeError(`${what} takes the key of a plane point group; ${key} is a plane group (planeGroup)`);
48
+ }
49
+ return unknownKey(key, 'plane point group');
50
+ }
51
+ function settingOf(options) {
52
+ return options?.setting;
53
+ }
54
+ /** The exact operations for a key: a plane group (setting 1 only) or a point group in a setting. */
55
+ function exact(key, options, generatorsOnly) {
56
+ const setting = settingOf(options);
57
+ if (isPlaneGroupKey(key)) {
58
+ if (setting !== undefined && setting !== 1) {
59
+ throw new RangeError(`The plane group ${key} has no setting ${String(setting)}`);
60
+ }
61
+ return generatorsOnly ? planeGroupGenerators(key) : planeGroupOperations(key);
62
+ }
63
+ if (isPlanePointGroupKey(key)) {
64
+ return generatorsOnly ? planePointGroupGenerators(key, setting) : planePointGroupOperations(key, setting);
65
+ }
66
+ return unknownKey(key);
67
+ }
68
+ const plain = (op) => {
69
+ const { matrix, translation } = toPlain(op);
70
+ return Object.freeze({
71
+ matrix: Object.freeze(matrix.map((row) => Object.freeze([...row]))),
72
+ translation: Object.freeze([...translation]),
73
+ });
74
+ };
75
+ /** The plane group with this key (short symbol). Throws a RangeError for an unknown key. */
76
+ export function planeGroup(key) {
77
+ const entry = planeGroupEntry(groupKey(key, 'planeGroup'));
78
+ const point = planePointGroupOf(entry.symbol);
79
+ return Object.freeze({
80
+ key: entry.symbol,
81
+ number: entry.number,
82
+ fullSymbol: entry.fullSymbol,
83
+ pointGroup: point.key,
84
+ pointGroupSetting: point.setting,
85
+ crystalSystem: entry.system,
86
+ centring: Object.freeze(entry.centring.map((t) => Object.freeze(t.split(',').map((c) => toNumber(parseRational(c)))))),
87
+ origin: entry.origin,
88
+ order: planeGroupOperations(entry.symbol).length,
89
+ });
90
+ }
91
+ /** The plane point group with this key. Throws a RangeError for an unknown key. */
92
+ export function pointGroup(key) {
93
+ const k = pointKey(key, 'pointGroup');
94
+ return Object.freeze({ key: k, crystalSystem: planePointGroupSystem(k), order: planePointGroupOperations(k).length });
95
+ }
96
+ /**
97
+ * The settings of a plane point group: two for `3m` (`3m1`, the default, and `31m`), one for the
98
+ * others. Throws a RangeError for an unknown key.
99
+ */
100
+ export function settings(key) {
101
+ const k = pointKey(key, 'settings');
102
+ return Object.freeze(Array.from({ length: planePointGroupSettingCount(k) }, (_, i) => Object.freeze({ index: i + 1, symbol: planePointGroupSymbol(k, i + 1), default: i === 0 })));
103
+ }
104
+ /** The symbol of a plane point group in a setting: `'3m1'` or `'31m'` for `3m`, otherwise the key. */
105
+ export function symbol(key, options) {
106
+ return planePointGroupSymbol(pointKey(key, 'symbol'), settingOf(options));
107
+ }
108
+ /**
109
+ * The operations of a plane group or a plane point group, in ITA's order, identity first. A plane
110
+ * group: one per coset of the integer translations, translations in [0, 1), the general position
111
+ * as numbered, then for a centred group the same sequence with the centring added (the
112
+ * "(1/2,1/2)+ set"). A point group: the linear parts of its symmorphic plane group (pm for m,
113
+ * p3m1 and p31m for the settings of 3m), translation zero. Throws a RangeError for an unknown key
114
+ * or setting.
115
+ */
116
+ export function operations(key, options) {
117
+ return Object.freeze(exact(key, options, false).map(plain));
118
+ }
119
+ /**
120
+ * ITA's selected generators, in printed order, without the identity and the integer translations:
121
+ * for a centred plane group the centring translation first. A point group: the linear parts of the
122
+ * generators of its symmorphic plane group. Throws a RangeError for an unknown key or setting.
123
+ */
124
+ export function generators(key, options) {
125
+ return Object.freeze(exact(key, options, true).map(plain));
126
+ }
127
+ /**
128
+ * Each operation of `operations` (same key and setting) described geometrically, index for index:
129
+ * what it is, its order and sense, where its symmetry element lies, its glide part. Throws a
130
+ * RangeError for an unknown key or setting.
131
+ */
132
+ export function describeOperations(key, options) {
133
+ return Object.freeze(exact(key, options, false).map((op) => {
134
+ const d = describePlaneOperation(op);
135
+ return Object.freeze({
136
+ kind: d.kind,
137
+ order: d.order,
138
+ ...(d.sense ? { sense: d.sense } : {}),
139
+ ...(d.translation ? { translation: Object.freeze(numbers(d.translation)) } : {}),
140
+ ...(d.location ? { location: Object.freeze(numbers(d.location)) } : {}),
141
+ ...(d.direction ? { direction: Object.freeze([...d.direction]) } : {}),
142
+ ...(d.glide ? { glide: Object.freeze(numbers(d.glide)) } : {}),
143
+ });
144
+ }));
145
+ }
146
+ /**
147
+ * The Wyckoff positions of a plane group as ITA prints them, general position first. Throws a
148
+ * RangeError for an unknown key and for a plane point group, whose positions are not in symcrys
149
+ * yet.
150
+ */
151
+ export function wyckoffPositions(key) {
152
+ const entry = planeGroupEntry(groupKey(key, 'wyckoffPositions'));
153
+ return Object.freeze(entry.wyckoff.map(([multiplicity, letter, siteSymmetry, coordinates]) => Object.freeze({ letter, multiplicity, siteSymmetry, coordinates: Object.freeze([...coordinates]) })));
154
+ }
155
+ /**
156
+ * The site symmetry of a point (lattice basis) under a plane group: the operations that map it
157
+ * onto itself modulo the lattice within the tolerance, closed into a group, and the point set onto
158
+ * their fixed space. Throws a RangeError for an unknown key, a point that is not two finite
159
+ * numbers, or a tolerance outside (0, 1/2).
160
+ */
161
+ export function siteSymmetry(key, point, options) {
162
+ const site = planeSiteSymmetry(groupKey(key, 'siteSymmetry'), point, options);
163
+ return Object.freeze({
164
+ operations: Object.freeze([...site.operations]),
165
+ point: Object.freeze([...site.point]),
166
+ multiplicity: site.multiplicity,
167
+ general: site.operations.length === 1,
168
+ });
169
+ }
170
+ /**
171
+ * The Wyckoff position of a point (lattice basis) under a plane group, as `wyckoffPositions` gives
172
+ * it: the printed position of the point's multiplicity whose coordinates, with the centring, reach
173
+ * the point set onto its site symmetry. Throws a RangeError as `siteSymmetry`.
174
+ */
175
+ export function wyckoffPositionOf(key, point, options) {
176
+ const k = groupKey(key, 'wyckoffPositionOf');
177
+ const { letter } = planeWyckoffPositionOf(k, point, options);
178
+ const found = wyckoffPositions(k).find((w) => w.letter === letter);
179
+ if (!found)
180
+ throw new Error(`No Wyckoff position ${letter} in ${k}`);
181
+ return found;
182
+ }
183
+ /**
184
+ * The orbit of a point (lattice basis) under a plane group: its distinct images in the
185
+ * conventional cell, each in [0, 1), in the order of the operations that first give them; images
186
+ * that coincide within the tolerance are merged. Throws a RangeError as `siteSymmetry`.
187
+ */
188
+ export function orbit(key, point, options) {
189
+ return Object.freeze(planeOrbit(groupKey(key, 'orbit'), point, options).map((p) => Object.freeze(p)));
190
+ }
191
+ /**
192
+ * The asymmetric unit of a plane group as ITA prints it: a convex polygon given by its vertices and,
193
+ * per edge, the printed inequality that holds it. Throws a RangeError for an unknown key.
194
+ */
195
+ export function asymmetricUnit(key) {
196
+ const unit = planeAsymmetricUnit(groupKey(key, 'asymmetricUnit'));
197
+ return Object.freeze({
198
+ vertices: Object.freeze(unit.vertices.map((v) => Object.freeze(numbers(v)))),
199
+ inequalities: Object.freeze(unit.inequalities.map((q) => Object.freeze([...q]))),
200
+ });
201
+ }
202
+ /**
203
+ * The symmetry elements of a plane group in its conventional cell [0, 1]², boundary included:
204
+ * every rotation centre with the highest order of a rotation about it, and every mirror and glide
205
+ * line that crosses the cell, with the segment inside it. Throws a RangeError for an unknown key.
206
+ */
207
+ export function symmetryElements(key) {
208
+ const e = planeCellElements(groupKey(key, 'symmetryElements'));
209
+ return Object.freeze({
210
+ rotations: Object.freeze(e.rotations.map((r) => Object.freeze({ order: r.order, point: Object.freeze(numbers(r.point)) }))),
211
+ lines: Object.freeze(e.lines.map((l) => Object.freeze({
212
+ kind: l.kind,
213
+ direction: Object.freeze([...l.direction]),
214
+ glide: Object.freeze(numbers(l.glide)),
215
+ segment: Object.freeze(l.segment.map((p) => Object.freeze(numbers(p)))),
216
+ }))),
217
+ });
218
+ }
219
+ //# sourceMappingURL=plane.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plane.js","sourceRoot":"","sources":["../src/plane.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAuB,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAoB,MAAM,iCAAiC,CAAC;AACnE,OAAO,EACL,gBAAgB,IAAI,UAAU,EAC9B,eAAe,EACf,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,yBAAyB,EACzB,iBAAiB,EACjB,yBAAyB,EACzB,2BAA2B,EAC3B,qBAAqB,EACrB,qBAAqB,GAEtB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACnG,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAiB,MAAM,2BAA2B,CAAC;AAEnF,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AA0BvC,+FAA+F;AAC/F,MAAM,CAAC,MAAM,gBAAgB,GAA6B,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,UAAU,CAAoB,CAAC,CAAC;AAE5G,gFAAgF;AAChF,MAAM,CAAC,MA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CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAClG;QACD,KAAK,EAAE,MAAM,CAAC,MAAM,CAClB,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAChB,MAAM,CAAC,MAAM,CAAC;YACZ,IAAI,EAAE,CAAC,CAAC,IAAI;YACZ,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC;YAC1C,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;YACtC,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;SACxE,CAAC,CACH,CACF;KACF,CAAC,CAAC;AACL,CAAC"}
@@ -58,7 +58,8 @@ export interface CartesianOperationDescription {
58
58
  * Time reversal counts: a list with time reversal gives a magnetic point group. Returns undefined
59
59
  * if the operations generate no point group (an operation of order 5, a group larger than 96).
60
60
  * Throws a RangeError for a matrix that is not orthogonal (within `tolerance`, at least
61
- * `EPSILON`). The classes `1` and `-1` have one setting and no orientation, so they always have
61
+ * `EPSILON`) and for an operation that does not say whether it is combined with time reversal.
62
+ * The classes `1` and `-1` have one setting and no orientation, so they always have
62
63
  * setting 1.
63
64
  */
64
65
  export declare function pointGroupOf(operations: readonly Operation[], options?: PointGroupOfOptions): IdentifiedPointGroup | undefined;
@@ -69,7 +70,8 @@ export declare function pointGroupOf(operations: readonly Operation[], options?:
69
70
  * by lattice directions, since the list need not belong to a setting; for a point group given by its
70
71
  * key, `describeOperations` names them. Throws a RangeError for a matrix that is not orthogonal or
71
72
  * not a crystallographic operation (a rotation part by an angle other than 360°/n, n = 1, 2, 3, 4,
72
- * 6), both within `tolerance` (default `EPSILON`, as for `pointGroupOf`).
73
+ * 6), both within `tolerance` (default `EPSILON`, as for `pointGroupOf`), and for an operation that
74
+ * does not say whether it is combined with time reversal.
73
75
  */
74
76
  export declare function describeOperationsOf(operations: readonly Operation[], options?: PointGroupOfOptions): readonly CartesianOperationDescription[];
75
77
  //# sourceMappingURL=identify.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"identify.d.ts","sourceRoot":"","sources":["../../src/pointGroups/identify.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAmC,KAAK,IAAI,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,EAAsC,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAEtF,OAAO,EAA6B,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9E,OAAO,EAIL,KAAK,qBAAqB,EAC3B,MAAM,kBAAkB,CAAC;AAE1B,4DAA4D;AAC5D,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,oHAAoH;AACpH,MAAM,WAAW,oBAAoB;IACnC,0DAA0D;IAC1D,QAAQ,CAAC,GAAG,EAAE,qBAAqB,CAAC;IACpC;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,0FAA0F;AAC1F,MAAM,WAAW,aAAa;IAC5B,oFAAoF;IACpF,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC;CAC1B;AAED,kFAAkF;AAClF,MAAM,WAAW,6BAA6B;IAC5C,oDAAoD;IACpD,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,qGAAqG;IACrG,QAAQ,CAAC,IAAI,CAAC,EAAE,aAAa,CAAC;IAC9B;;;O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CAAC;IAC7B;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,qGAAqG;IACrG,QAAQ,CAAC,IAAI,CAAC,EAAE,aAAa,CAAC;IAC9B;;;OAGG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,GAAG,GAAG,GAAG,CAAC;IAC3B,iFAAiF;IACjF,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC;CAChC;AAiGD;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAC1B,UAAU,EAAE,SAAS,SAAS,EAAE,EAChC,OAAO,CAAC,EAAE,mBAAmB,GAC5B,oBAAoB,GAAG,SAAS,CAelC;AAkCD;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,SAAS,SAAS,EAAE,EAChC,OAAO,CAAC,EAAE,mBAAmB,GAC5B,SAAS,6BAA6B,EAAE,CAI1C"}
@@ -4,25 +4,10 @@
4
4
  * group of a list of operations"). Shared by both entry points.
5
5
  */
6
6
  import { det, multiply, trace } from '../linalg.js';
7
- import { checkOrthogonal, checkTimeReversal } from '../operations.js';
7
+ import { checkOrthogonalWithin, checkTimeReversal } from '../operations.js';
8
8
  import { EPSILON } from '../tolerances.js';
9
9
  import { axialVector, rotationAxis } from './elements.js';
10
10
  import { MAGNETIC_POINT_GROUP_KEYS, operations as groupOperations, settings, } from './pointGroups.js';
11
- /** Throws unless mᵀm = 1 within the tolerance (a matrix with rounding errors passes with a larger one). */
12
- function checkOrthogonalWithin(m, what, tolerance) {
13
- if (tolerance <= EPSILON) {
14
- checkOrthogonal(m, what);
15
- return;
16
- }
17
- for (let i = 0; i < 3; i++) {
18
- for (let j = 0; j < 3; j++) {
19
- const d = m[0][i] * m[0][j] + m[1][i] * m[1][j] + m[2][i] * m[2][j];
20
- if (!(Math.abs(d - (i === j ? 1 : 0)) < tolerance)) {
21
- throw new RangeError(`${what} is not an orthogonal (Cartesian) matrix: ${JSON.stringify(m)}`);
22
- }
23
- }
24
- }
25
- }
26
11
  /** No point group has more than 96 operations (m-3m1'). */
27
12
  const MAX_ORDER = 96;
28
13
  function toleranceOf(options) {
@@ -122,7 +107,8 @@ function keyOfSignature(s) {
122
107
  * Time reversal counts: a list with time reversal gives a magnetic point group. Returns undefined
123
108
  * if the operations generate no point group (an operation of order 5, a group larger than 96).
124
109
  * Throws a RangeError for a matrix that is not orthogonal (within `tolerance`, at least
125
- * `EPSILON`). The classes `1` and `-1` have one setting and no orientation, so they always have
110
+ * `EPSILON`) and for an operation that does not say whether it is combined with time reversal.
111
+ * The classes `1` and `-1` have one setting and no orientation, so they always have
126
112
  * setting 1.
127
113
  */
128
114
  export function pointGroupOf(operations, options) {
@@ -183,7 +169,8 @@ function describe(op, i, tolerance) {
183
169
  * by lattice directions, since the list need not belong to a setting; for a point group given by its
184
170
  * key, `describeOperations` names them. Throws a RangeError for a matrix that is not orthogonal or
185
171
  * not a crystallographic operation (a rotation part by an angle other than 360°/n, n = 1, 2, 3, 4,
186
- * 6), both within `tolerance` (default `EPSILON`, as for `pointGroupOf`).
172
+ * 6), both within `tolerance` (default `EPSILON`, as for `pointGroupOf`), and for an operation that
173
+ * does not say whether it is combined with time reversal.
187
174
  */
188
175
  export function describeOperationsOf(operations, options) {
189
176
  const tolerance = toleranceOf(options);
@@ -1 +1 @@
1
- {"version":3,"file":"identify.js","sourceRoot":"","sources":["../../src/pointGroups/identify.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAwB,MAAM,cAAc,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAkB,MAAM,kBAAkB,CAAC;AACtF,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,YAAY,EAAsB,MAAM,eAAe,CAAC;AAC9E,OAAO,EACL,yBAAyB,EACzB,UAAU,IAAI,eAAe,EAC7B,QAAQ,GAET,MAAM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AAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;IACxD,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC,CAAC;AAClF,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,oBAAoB,CAClC,UAAgC,EAChC,OAA6B;IAE7B,MAAM,SAAS,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;IACvC,iBAAiB,CAAC,UAAU,CAAC,CAAC;IAC9B,OAAO,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;AAC9E,CAAC"}
@@ -77,7 +77,7 @@ export interface OrbitPole {
77
77
  * `siteSymmetry`), in the order in which the operations reach them, each with the indices of the
78
78
  * operations that map the direction there. The list is taken as it is, not closed into a group.
79
79
  * Time reversal is ignored. Throws a RangeError for a zero vector and for a matrix that is not
80
- * orthogonal (Cartesian; not one of `latticeOperations`).
80
+ * orthogonal (Cartesian, not one of `latticeOperations`; within `tolerance`, at least `EPSILON`).
81
81
  */
82
82
  export declare function orbitOf(operations: readonly {
83
83
  readonly matrix: Mat3;
@@ -1 +1 @@
1
- {"version":3,"file":"orbits.d.ts","sourceRoot":"","sources":["../../src/pointGroups/orbits.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAA4B,KAAK,IAAI,EAAE,KAAK,IAAI,EAAE,MAAM,cAAc,CAAC;AAC9E,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAEnE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC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