@deadair/sdk 0.42.0 → 0.44.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.
- package/dist/catalog/catalog.client.d.ts +16 -1
- package/dist/catalog/catalog.client.d.ts.map +1 -1
- package/dist/catalog/types/catalog.types.d.ts +61 -23
- package/dist/catalog/types/catalog.types.d.ts.map +1 -1
- package/dist/director/director.client.d.ts +36 -0
- package/dist/director/director.client.d.ts.map +1 -1
- package/dist/director/types/director.types.d.ts +10 -6
- package/dist/director/types/director.types.d.ts.map +1 -1
- package/dist/director/types/index.d.ts +1 -0
- package/dist/director/types/index.d.ts.map +1 -1
- package/dist/director/types/rules.types.d.ts +97 -0
- package/dist/director/types/rules.types.d.ts.map +1 -0
- package/dist/index.js +256 -78
- package/dist/index.js.map +1 -1
- package/dist/playout/playout.client.d.ts +6 -1
- package/dist/playout/playout.client.d.ts.map +1 -1
- package/dist/playout/types/playout.types.d.ts +19 -12
- package/dist/playout/types/playout.types.d.ts.map +1 -1
- package/dist/schedule/types/schedule.types.d.ts +9 -5
- package/dist/schedule/types/schedule.types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SdkFetch } from '../sdk-options.js';
|
|
2
|
-
import type { PlayoutChartInput, PlayoutPlaylistInput, PlayoutStationPlaylistInput, PlayoutStatus } from './types/playout.types.js';
|
|
2
|
+
import type { PlayoutAlbumInput, PlayoutChartInput, PlayoutPlaylistInput, PlayoutStationPlaylistInput, PlayoutStatus } from './types/playout.types.js';
|
|
3
3
|
export declare class PlayoutClient {
|
|
4
4
|
private fetch;
|
|
5
5
|
constructor(fetch: SdkFetch);
|
|
@@ -18,6 +18,11 @@ export declare class PlayoutClient {
|
|
|
18
18
|
* @description Loads a playlist the station owns into the running order and starts handing it to the player. The same replacement a plugin playlist makes, from records the library already holds
|
|
19
19
|
*/
|
|
20
20
|
playAStationPlaylist(body: PlayoutStationPlaylistInput): Promise<PlayoutStatus>;
|
|
21
|
+
/**
|
|
22
|
+
* @name Play an album
|
|
23
|
+
* @description Plays an album the library holds, whole and in the order it was made: by disc, then by track. A feature, so no breaks and no blends between its records, and what is on air finishes rather than being cut off. It stops at the end of the album, or when the schedule's next block starts
|
|
24
|
+
*/
|
|
25
|
+
playAnAlbum(body: PlayoutAlbumInput): Promise<PlayoutStatus>;
|
|
21
26
|
/**
|
|
22
27
|
* @name Play a chart
|
|
23
28
|
* @description Builds the running order from a published chart and starts handing it to the player. The same replacement a playlist makes, from a document somebody else ranked
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playout.client.d.ts","sourceRoot":"","sources":["../../src/playout/playout.client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"playout.client.d.ts","sourceRoot":"","sources":["../../src/playout/playout.client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,OAAO,KAAK,EACR,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,EACpB,2BAA2B,EAC3B,aAAa,EAChB,MAAM,0BAA0B,CAAC;AAElC,qBAAa,aAAa;IACV,OAAO,CAAC,KAAK;gBAAL,KAAK,EAAE,QAAQ;IAEnC;;;OAGG;IACG,gBAAgB,IAAI,OAAO,CAAC,aAAa,CAAC;IAKhD;;;OAGG;IACG,aAAa,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,aAAa,CAAC;IASvE;;;OAGG;IACG,oBAAoB,CAAC,IAAI,EAAE,2BAA2B,GAAG,OAAO,CAAC,aAAa,CAAC;IASrF;;;OAGG;IACG,WAAW,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,aAAa,CAAC;IASlE;;;OAGG;IACG,UAAU,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,aAAa,CAAC;IASjE;;;OAGG;IACG,kBAAkB,IAAI,OAAO,CAAC,aAAa,CAAC;IAKlD;;;OAGG;IACG,YAAY,IAAI,OAAO,CAAC,aAAa,CAAC;IAK5C;;;OAGG;IACG,WAAW,IAAI,OAAO,CAAC,aAAa,CAAC;CAI9C"}
|
|
@@ -21,9 +21,16 @@ export interface PlayoutStationPlaylistInput {
|
|
|
21
21
|
/** Whether somebody phones in during this broadcast, exactly as `PutOnAirInput.callins`. Absent is no calls: there is no station-wide default behind it */
|
|
22
22
|
callins?: boolean;
|
|
23
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* An album the library holds, to play whole
|
|
26
|
+
* generated from [PlayoutAlbumInput](../../../../../apps/api/data/contracts/playout/playout.types.ck#L20)
|
|
27
|
+
*/
|
|
28
|
+
export interface PlayoutAlbumInput {
|
|
29
|
+
albumId: string;
|
|
30
|
+
}
|
|
24
31
|
/**
|
|
25
32
|
* The published chart to build the running order from
|
|
26
|
-
* generated from [PlayoutChartInput](../../../../../apps/api/data/contracts/playout/playout.types.ck#
|
|
33
|
+
* generated from [PlayoutChartInput](../../../../../apps/api/data/contracts/playout/playout.types.ck#L24)
|
|
27
34
|
*/
|
|
28
35
|
export interface PlayoutChartInput {
|
|
29
36
|
/** As `pluginId:chartId`, which is how `GET /charts` lists them */
|
|
@@ -35,7 +42,7 @@ export interface PlayoutChartInput {
|
|
|
35
42
|
}
|
|
36
43
|
/**
|
|
37
44
|
* One item in the running order, as the console sees it
|
|
38
|
-
* generated from [PlayoutItem](../../../../../apps/api/data/contracts/playout/playout.types.ck#
|
|
45
|
+
* generated from [PlayoutItem](../../../../../apps/api/data/contracts/playout/playout.types.ck#L30)
|
|
39
46
|
*/
|
|
40
47
|
export interface PlayoutItem {
|
|
41
48
|
/** deadair's own id for this item, not the provider's: a playlist may hold the same track twice */
|
|
@@ -61,7 +68,7 @@ export interface PlayoutItem {
|
|
|
61
68
|
* re-rendered — so a reseeded secret leaves a process holding credentials that match nothing,
|
|
62
69
|
* and the symptom names something else entirely (every listener refused, or no mount at all).
|
|
63
70
|
* The app cannot restart a sibling container and should not be able to, so it reports.
|
|
64
|
-
* generated from [StreamConfigWarning](../../../../../apps/api/data/contracts/playout/playout.types.ck#
|
|
71
|
+
* generated from [StreamConfigWarning](../../../../../apps/api/data/contracts/playout/playout.types.ck#L54)
|
|
65
72
|
*/
|
|
66
73
|
export interface StreamConfigWarning {
|
|
67
74
|
/** Which one is behind */
|
|
@@ -74,19 +81,19 @@ export interface StreamConfigWarning {
|
|
|
74
81
|
/**
|
|
75
82
|
* Which gate is keeping the station quiet, or `airing` when none of them is. Ordered by cause: a
|
|
76
83
|
* stalled transport loop makes every reading under it stale, so it is ruled out first
|
|
77
|
-
* generated from [SilenceCause](../../../../../apps/api/data/contracts/playout/playout.types.ck#
|
|
84
|
+
* generated from [SilenceCause](../../../../../apps/api/data/contracts/playout/playout.types.ck#L62)
|
|
78
85
|
*/
|
|
79
86
|
export type SilenceCause = 'airing' | 'transportStalled' | 'controlDenied' | 'streamUnreachable' | 'configNotAdopted' | 'stoodDown' | 'noProgramme' | 'noAudience' | 'warmingUp' | 'waitingOnAudio' | 'notDriving' | 'starved';
|
|
80
87
|
/**
|
|
81
88
|
* How one gate is doing. `waiting` is its own state rather than a mild fault, because a station
|
|
82
89
|
* idling for want of a listener and a station that cannot reach its stream are both silent and only
|
|
83
90
|
* one of them is something to go and fix
|
|
84
|
-
* generated from [SilenceState](../../../../../apps/api/data/contracts/playout/playout.types.ck#
|
|
91
|
+
* generated from [SilenceState](../../../../../apps/api/data/contracts/playout/playout.types.ck#L80)
|
|
85
92
|
*/
|
|
86
93
|
export type SilenceState = 'ok' | 'waiting' | 'fault';
|
|
87
94
|
/**
|
|
88
95
|
* One mount the station is publishing right now
|
|
89
|
-
* generated from [PlayoutMount](../../../../../apps/api/data/contracts/playout/playout.types.ck#
|
|
96
|
+
* generated from [PlayoutMount](../../../../../apps/api/data/contracts/playout/playout.types.ck#L97)
|
|
90
97
|
*/
|
|
91
98
|
export interface PlayoutMount {
|
|
92
99
|
format: 'mp3' | 'opus' | 'aac' | 'flac';
|
|
@@ -97,7 +104,7 @@ export interface PlayoutMount {
|
|
|
97
104
|
}
|
|
98
105
|
/**
|
|
99
106
|
* Which rundown item Liquidsoap has just started playing
|
|
100
|
-
* generated from [PlayoutAiredQuery](../../../../../apps/api/data/contracts/playout/playout.types.ck#
|
|
107
|
+
* generated from [PlayoutAiredQuery](../../../../../apps/api/data/contracts/playout/playout.types.ck#L117)
|
|
101
108
|
*/
|
|
102
109
|
export interface PlayoutAiredQuery {
|
|
103
110
|
/** The id the app put on the pushed uri's `annotate:` metadata */
|
|
@@ -105,7 +112,7 @@ export interface PlayoutAiredQuery {
|
|
|
105
112
|
}
|
|
106
113
|
/**
|
|
107
114
|
* Which way the running order went, and how long it had been that way
|
|
108
|
-
* generated from [PlayoutStarveQuery](../../../../../apps/api/data/contracts/playout/playout.types.ck#
|
|
115
|
+
* generated from [PlayoutStarveQuery](../../../../../apps/api/data/contracts/playout/playout.types.ck#L121)
|
|
109
116
|
*/
|
|
110
117
|
export interface PlayoutStarveQuery {
|
|
111
118
|
/** `starved`: the queue stopped producing while deadair was driving, so the mount fell through to the local bed. `recovered`: it is producing again */
|
|
@@ -115,7 +122,7 @@ export interface PlayoutStarveQuery {
|
|
|
115
122
|
}
|
|
116
123
|
/**
|
|
117
124
|
* What the PLAYER says is airing, which is not the same as what was last handed to it
|
|
118
|
-
* generated from [PlayoutNowPlaying](../../../../../apps/api/data/contracts/playout/playout.types.ck#
|
|
125
|
+
* generated from [PlayoutNowPlaying](../../../../../apps/api/data/contracts/playout/playout.types.ck#L43)
|
|
119
126
|
*/
|
|
120
127
|
export interface PlayoutNowPlaying {
|
|
121
128
|
item: PlayoutItem;
|
|
@@ -126,7 +133,7 @@ export interface PlayoutNowPlaying {
|
|
|
126
133
|
}
|
|
127
134
|
/**
|
|
128
135
|
* One gate's answer about itself
|
|
129
|
-
* generated from [SilenceCheck](../../../../../apps/api/data/contracts/playout/playout.types.ck#
|
|
136
|
+
* generated from [SilenceCheck](../../../../../apps/api/data/contracts/playout/playout.types.ck#L82)
|
|
130
137
|
*/
|
|
131
138
|
export interface SilenceCheck {
|
|
132
139
|
/** Never `airing`, which is the absence of a blocking gate rather than a gate */
|
|
@@ -139,7 +146,7 @@ export interface SilenceCheck {
|
|
|
139
146
|
}
|
|
140
147
|
/**
|
|
141
148
|
* Why the station cannot be heard, as one answer
|
|
142
|
-
* generated from [StationSilence](../../../../../apps/api/data/contracts/playout/playout.types.ck#
|
|
149
|
+
* generated from [StationSilence](../../../../../apps/api/data/contracts/playout/playout.types.ck#L89)
|
|
143
150
|
*/
|
|
144
151
|
export interface StationSilence {
|
|
145
152
|
/** Whether the station believes its programme is reaching the mount. NOT whether anybody is hearing it: a station can be audible with no listeners in `always` mode, and can have listeners while airing the local bed */
|
|
@@ -152,7 +159,7 @@ export interface StationSilence {
|
|
|
152
159
|
}
|
|
153
160
|
/**
|
|
154
161
|
* The station's transport, as one reading
|
|
155
|
-
* generated from [PlayoutStatus](../../../../../apps/api/data/contracts/playout/playout.types.ck#
|
|
162
|
+
* generated from [PlayoutStatus](../../../../../apps/api/data/contracts/playout/playout.types.ck#L103)
|
|
156
163
|
*/
|
|
157
164
|
export interface PlayoutStatus {
|
|
158
165
|
/** Whether Liquidsoap's control API is answering at all. False means nothing can air, whatever the running order holds */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playout.types.d.ts","sourceRoot":"","sources":["../../../src/playout/types/playout.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,0PAA0P;IAC1P,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,2JAA2J;IAC3J,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,2BAA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,2LAA2L;IAC3L,iBAAiB,EAAE,mBAAmB,EAAE,CAAC;IACzC,gQAAgQ;IAChQ,OAAO,EAAE,cAAc,CAAC;CAC3B"}
|
|
@@ -29,6 +29,8 @@ export interface ScheduleSlot {
|
|
|
29
29
|
eraFrom?: number;
|
|
30
30
|
/** The latest release year, on the same terms. Set with `eraFrom` for a decade; either may stand alone */
|
|
31
31
|
eraTo?: number;
|
|
32
|
+
/** The mood this stretch of the day leans into. Records a model has judged to be in it are a little more likely to be picked; nothing is ever kept off the air for it. Absent is no lean */
|
|
33
|
+
mood?: 'love' | 'happiness' | 'comfort' | 'sadness' | 'loneliness' | 'anger' | 'fear';
|
|
32
34
|
/** Whether somebody phones in during this stretch of the day. Absent is no calls, exactly as it is when an operator puts a broadcast on air by hand; a `setlist` or a `feature` takes no calls whatever this says */
|
|
33
35
|
callins?: boolean;
|
|
34
36
|
/** Whether records that sound like this slot's playlist are mixed in among its records, one every `rotation.mixInEvery` records. Absent leaves the station's own setting standing, exactly as it does when an operator airs a playlist by hand; a slot with no playlist, or a `setlist` or a `feature`, never mixes whatever this says */
|
|
@@ -62,6 +64,8 @@ export interface ScheduleSlotInput {
|
|
|
62
64
|
eraFrom?: number;
|
|
63
65
|
/** The latest release year, on the same terms. Set with `eraFrom` for a decade; either may stand alone */
|
|
64
66
|
eraTo?: number;
|
|
67
|
+
/** The mood this stretch of the day leans into. Records a model has judged to be in it are a little more likely to be picked; nothing is ever kept off the air for it. Absent is no lean */
|
|
68
|
+
mood?: 'love' | 'happiness' | 'comfort' | 'sadness' | 'loneliness' | 'anger' | 'fear';
|
|
65
69
|
/** Whether somebody phones in during this stretch of the day. Absent is no calls, exactly as it is when an operator puts a broadcast on air by hand; a `setlist` or a `feature` takes no calls whatever this says */
|
|
66
70
|
callins?: boolean;
|
|
67
71
|
/** Whether records that sound like this slot's playlist are mixed in among its records, one every `rotation.mixInEvery` records. Absent leaves the station's own setting standing, exactly as it does when an operator airs a playlist by hand; a slot with no playlist, or a `setlist` or a `feature`, never mixes whatever this says */
|
|
@@ -71,7 +75,7 @@ export interface ScheduleSlotInput {
|
|
|
71
75
|
}
|
|
72
76
|
/**
|
|
73
77
|
* A window of the station's day to draw
|
|
74
|
-
* generated from [ScheduleTimetableQuery](../../../../../apps/api/data/contracts/schedule/schedule.types.ck#
|
|
78
|
+
* generated from [ScheduleTimetableQuery](../../../../../apps/api/data/contracts/schedule/schedule.types.ck#L35)
|
|
75
79
|
*/
|
|
76
80
|
export interface ScheduleTimetableQuery {
|
|
77
81
|
/** The first day to draw, as `YYYY-MM-DD` on the station's own calendar. Absent means the station's today, which is the only way a caller that does not know the station's timezone can anchor */
|
|
@@ -81,7 +85,7 @@ export interface ScheduleTimetableQuery {
|
|
|
81
85
|
}
|
|
82
86
|
/**
|
|
83
87
|
* One block: this slot, on this day, between these two times
|
|
84
|
-
* generated from [ScheduleOccurrence](../../../../../apps/api/data/contracts/schedule/schedule.types.ck#
|
|
88
|
+
* generated from [ScheduleOccurrence](../../../../../apps/api/data/contracts/schedule/schedule.types.ck#L48)
|
|
85
89
|
*/
|
|
86
90
|
export interface ScheduleOccurrence {
|
|
87
91
|
slotId: string;
|
|
@@ -92,7 +96,7 @@ export interface ScheduleOccurrence {
|
|
|
92
96
|
end: string;
|
|
93
97
|
}
|
|
94
98
|
/**
|
|
95
|
-
* generated from [ScheduleSlotList](../../../../../apps/api/data/contracts/schedule/schedule.types.ck#
|
|
99
|
+
* generated from [ScheduleSlotList](../../../../../apps/api/data/contracts/schedule/schedule.types.ck#L30)
|
|
96
100
|
*/
|
|
97
101
|
export interface ScheduleSlotList {
|
|
98
102
|
slots: ScheduleSlot[];
|
|
@@ -102,7 +106,7 @@ export interface ScheduleSlotListInput {
|
|
|
102
106
|
}
|
|
103
107
|
/**
|
|
104
108
|
* The station's day as blocks, ready to draw
|
|
105
|
-
* generated from [ScheduleTimetable](../../../../../apps/api/data/contracts/schedule/schedule.types.ck#
|
|
109
|
+
* generated from [ScheduleTimetable](../../../../../apps/api/data/contracts/schedule/schedule.types.ck#L41)
|
|
106
110
|
*/
|
|
107
111
|
export interface ScheduleTimetable {
|
|
108
112
|
/** The range actually drawn, echoed so a caller steps forward and back by adding days to a string rather than by knowing the station's timezone */
|
|
@@ -112,7 +116,7 @@ export interface ScheduleTimetable {
|
|
|
112
116
|
}
|
|
113
117
|
/**
|
|
114
118
|
* Which slot the clock says should be on right now, and what follows it
|
|
115
|
-
* generated from [ScheduleNow](../../../../../apps/api/data/contracts/schedule/schedule.types.ck#
|
|
119
|
+
* generated from [ScheduleNow](../../../../../apps/api/data/contracts/schedule/schedule.types.ck#L56)
|
|
116
120
|
*/
|
|
117
121
|
export interface ScheduleNow {
|
|
118
122
|
/** What time it is on the station's own clock, in the same zone-naive `YYYY-MM-DD HH:mm:ss` shape as a block's ends. It is here so a caller can say how much of the block is left without knowing the station's timezone: subtracting two readings taken in one frame is arithmetic, deriving one is not */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedule.types.d.ts","sourceRoot":"","sources":["../../../src/schedule/types/schedule.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,YAAY;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,oFAAoF;IACpF,KAAK,EAAE,MAAM,CAAC;IACd,sEAAsE;IACtE,eAAe,EAAE,MAAM,CAAC;IACxB,2KAA2K;IAC3K,aAAa,EAAE,MAAM,CAAC;IACtB,yEAAyE;IACzE,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,qGAAqG;IACrG,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,6PAA6P;IAC7P,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,6HAA6H;IAC7H,gBAAgB,CAAC,EAAE,WAAW,GAAG,QAAQ,GAAG,WAAW,CAAC;IACxD,8OAA8O;IAC9O,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,uFAAuF;IACv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AS,GAAG,SAAS,CAAC;IACzC,KAAK,EAAE,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC;CACvC;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACnC,kMAAkM;IAClM,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oDAAoD;IACpD,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,+LAA+L;IAC/L,KAAK,EAAE,MAAM,CAAC;IACd,4GAA4G;IAC5G,GAAG,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B,KAAK,EAAE,YAAY,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,qBAAqB;IAClC,KAAK,EAAE,iBAAiB,EAAE,CAAC;CAC9B;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAC9B,mJAAmJ;IACnJ,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,kBAAkB,EAAE,CAAC;CACrC;AAED;;;GAGG;AACH,MAAM,WAAW,WAAW;IACxB,4SAA4S;IAC5S,GAAG,EAAE,MAAM,CAAC;IACZ,sTAAsT;IACtT,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kFAAkF;IAClF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kKAAkK;IAClK,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,uQAAuQ;IACvQ,QAAQ,EAAE,kBAAkB,EAAE,CAAC;CAClC"}
|
|
1
|
+
{"version":3,"file":"schedule.types.d.ts","sourceRoot":"","sources":["../../../src/schedule/types/schedule.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,YAAY;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,oFAAoF;IACpF,KAAK,EAAE,MAAM,CAAC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