@egen-civitas/sdk 0.0.0-stage → 0.4.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.
@@ -0,0 +1,394 @@
1
+ function _array_like_to_array(arr, len) {
2
+ if (len == null || len > arr.length) len = arr.length;
3
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
4
+ return arr2;
5
+ }
6
+ function _array_without_holes(arr) {
7
+ if (Array.isArray(arr)) return _array_like_to_array(arr);
8
+ }
9
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
10
+ try {
11
+ var info = gen[key](arg);
12
+ var value = info.value;
13
+ } catch (error) {
14
+ reject(error);
15
+ return;
16
+ }
17
+ if (info.done) {
18
+ resolve(value);
19
+ } else {
20
+ Promise.resolve(value).then(_next, _throw);
21
+ }
22
+ }
23
+ function _async_to_generator(fn) {
24
+ return function() {
25
+ var self = this, args = arguments;
26
+ return new Promise(function(resolve, reject) {
27
+ var gen = fn.apply(self, args);
28
+ function _next(value) {
29
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
30
+ }
31
+ function _throw(err) {
32
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
33
+ }
34
+ _next(undefined);
35
+ });
36
+ };
37
+ }
38
+ function _define_property(obj, key, value) {
39
+ if (key in obj) {
40
+ Object.defineProperty(obj, key, {
41
+ value: value,
42
+ enumerable: true,
43
+ configurable: true,
44
+ writable: true
45
+ });
46
+ } else {
47
+ obj[key] = value;
48
+ }
49
+ return obj;
50
+ }
51
+ function _instanceof(left, right) {
52
+ "@swc/helpers - instanceof";
53
+ if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
54
+ return !!right[Symbol.hasInstance](left);
55
+ } else {
56
+ return left instanceof right;
57
+ }
58
+ }
59
+ function _iterable_to_array(iter) {
60
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
61
+ }
62
+ function _non_iterable_spread() {
63
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
64
+ }
65
+ function _object_spread(target) {
66
+ for(var i = 1; i < arguments.length; i++){
67
+ var source = arguments[i] != null ? arguments[i] : {};
68
+ var ownKeys = Object.keys(source);
69
+ if (typeof Object.getOwnPropertySymbols === "function") {
70
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
71
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
72
+ }));
73
+ }
74
+ ownKeys.forEach(function(key) {
75
+ _define_property(target, key, source[key]);
76
+ });
77
+ }
78
+ return target;
79
+ }
80
+ function ownKeys(object, enumerableOnly) {
81
+ var keys = Object.keys(object);
82
+ if (Object.getOwnPropertySymbols) {
83
+ var symbols = Object.getOwnPropertySymbols(object);
84
+ if (enumerableOnly) {
85
+ symbols = symbols.filter(function(sym) {
86
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
87
+ });
88
+ }
89
+ keys.push.apply(keys, symbols);
90
+ }
91
+ return keys;
92
+ }
93
+ function _object_spread_props(target, source) {
94
+ source = source != null ? source : {};
95
+ if (Object.getOwnPropertyDescriptors) {
96
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
97
+ } else {
98
+ ownKeys(Object(source)).forEach(function(key) {
99
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
100
+ });
101
+ }
102
+ return target;
103
+ }
104
+ function _to_consumable_array(arr) {
105
+ return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
106
+ }
107
+ function _unsupported_iterable_to_array(o, minLen) {
108
+ if (!o) return;
109
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
110
+ var n = Object.prototype.toString.call(o).slice(8, -1);
111
+ if (n === "Object" && o.constructor) n = o.constructor.name;
112
+ if (n === "Map" || n === "Set") return Array.from(n);
113
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
114
+ }
115
+ function _ts_generator(thisArg, body) {
116
+ var f, y, t, _ = {
117
+ label: 0,
118
+ sent: function() {
119
+ if (t[0] & 1) throw t[1];
120
+ return t[1];
121
+ },
122
+ trys: [],
123
+ ops: []
124
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
125
+ return d(g, "next", {
126
+ value: verb(0)
127
+ }), d(g, "throw", {
128
+ value: verb(1)
129
+ }), d(g, "return", {
130
+ value: verb(2)
131
+ }), typeof Symbol === "function" && d(g, Symbol.iterator, {
132
+ value: function() {
133
+ return this;
134
+ }
135
+ }), g;
136
+ function verb(n) {
137
+ return function(v) {
138
+ return step([
139
+ n,
140
+ v
141
+ ]);
142
+ };
143
+ }
144
+ function step(op) {
145
+ if (f) throw new TypeError("Generator is already executing.");
146
+ while(g && (g = 0, op[0] && (_ = 0)), _)try {
147
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
148
+ if (y = 0, t) op = [
149
+ op[0] & 2,
150
+ t.value
151
+ ];
152
+ switch(op[0]){
153
+ case 0:
154
+ case 1:
155
+ t = op;
156
+ break;
157
+ case 4:
158
+ _.label++;
159
+ return {
160
+ value: op[1],
161
+ done: false
162
+ };
163
+ case 5:
164
+ _.label++;
165
+ y = op[1];
166
+ op = [
167
+ 0
168
+ ];
169
+ continue;
170
+ case 7:
171
+ op = _.ops.pop();
172
+ _.trys.pop();
173
+ continue;
174
+ default:
175
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
176
+ _ = 0;
177
+ continue;
178
+ }
179
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
180
+ _.label = op[1];
181
+ break;
182
+ }
183
+ if (op[0] === 6 && _.label < t[1]) {
184
+ _.label = t[1];
185
+ t = op;
186
+ break;
187
+ }
188
+ if (t && _.label < t[2]) {
189
+ _.label = t[2];
190
+ _.ops.push(op);
191
+ break;
192
+ }
193
+ if (t[2]) _.ops.pop();
194
+ _.trys.pop();
195
+ continue;
196
+ }
197
+ op = body.call(thisArg, _);
198
+ } catch (e) {
199
+ op = [
200
+ 6,
201
+ e
202
+ ];
203
+ y = 0;
204
+ } finally{
205
+ f = t = 0;
206
+ }
207
+ if (op[0] & 5) throw op[1];
208
+ return {
209
+ value: op[0] ? op[1] : void 0,
210
+ done: true
211
+ };
212
+ }
213
+ }
214
+ import { EgenClient, connectToEgen } from '@egen-civitas/esm-embed-client';
215
+ import { EmbedError, CAPABILITIES, CAPABILITY_IDS } from '@egen-civitas/esm-embed-protocol';
216
+ import { EgenApp } from './app.js';
217
+ import { STANDALONE_CAPABILITIES, createStandaloneRuntime } from './standalone.js';
218
+ var inIframe = function inIframe(w) {
219
+ if (w !== undefined) return true; // fenêtre injectée (tests) : on suppose un hôte
220
+ try {
221
+ return typeof window !== 'undefined' && window.parent !== window;
222
+ } catch (unused) {
223
+ return true; // accès à window.parent refusé : on est bien dans un cadre d'une autre origine
224
+ }
225
+ };
226
+ function localClient(options) {
227
+ var _options_capabilities, _options_required;
228
+ var requested = ((_options_capabilities = options.capabilities) !== null && _options_capabilities !== void 0 ? _options_capabilities : CAPABILITY_IDS.filter(function(id) {
229
+ return CAPABILITIES[id].defaultGrant;
230
+ })).map(function(c) {
231
+ return typeof c === 'string' ? c : c.id;
232
+ });
233
+ var ids = new Set(_to_consumable_array(requested).concat(_to_consumable_array((_options_required = options.required) !== null && _options_required !== void 0 ? _options_required : [])));
234
+ var granted = _to_consumable_array(ids).filter(function(id) {
235
+ return STANDALONE_CAPABILITIES.includes(id);
236
+ }).map(function(id) {
237
+ return {
238
+ id: id,
239
+ version: CAPABILITIES[id].version,
240
+ config: id === 'notifications' ? {
241
+ exclusive: false
242
+ } : {}
243
+ };
244
+ });
245
+ var denied = _to_consumable_array(ids).filter(function(id) {
246
+ return !STANDALONE_CAPABILITIES.includes(id);
247
+ }).map(function(id) {
248
+ return {
249
+ id: id,
250
+ reason: 'UNAVAILABLE'
251
+ };
252
+ });
253
+ return new EgenClient({
254
+ connected: false,
255
+ moduleName: options.moduleName,
256
+ granted: granted,
257
+ denied: denied,
258
+ rpc: createStandaloneRuntime(options.standalone)
259
+ });
260
+ }
261
+ function enforceRequired(app, required) {
262
+ var missing = (required !== null && required !== void 0 ? required : []).filter(function(id) {
263
+ return !app.has(id);
264
+ });
265
+ if (missing.length) {
266
+ app.close();
267
+ throw new EmbedError('DENIED', "Capacit\xe9s requises non accord\xe9es (".concat(app.mode, ") : ").concat(missing.join(', ')));
268
+ }
269
+ return app;
270
+ }
271
+ /**
272
+ * Point d'entrée unique du SDK. Retourne toujours une `EgenApp` utilisable, sauf si `required` n'est pas satisfait
273
+ * ou si `mode: 'embedded'` est exigé sans Shell (erreurs typées `EgenError`).
274
+ */ export function connect(options) {
275
+ return _async_to_generator(function() {
276
+ var emit, app, e;
277
+ return _ts_generator(this, function(_state) {
278
+ switch(_state.label){
279
+ case 0:
280
+ emit = function emit(e) {
281
+ try {
282
+ var _options_onDiagnostic;
283
+ options === null || options === void 0 ? void 0 : (_options_onDiagnostic = options.onDiagnostic) === null || _options_onDiagnostic === void 0 ? void 0 : _options_onDiagnostic.call(options, e);
284
+ } catch (unused) {
285
+ /* un observateur ne casse jamais la connexion */ }
286
+ };
287
+ emit({
288
+ type: 'state',
289
+ state: 'connecting'
290
+ });
291
+ _state.label = 1;
292
+ case 1:
293
+ _state.trys.push([
294
+ 1,
295
+ 3,
296
+ ,
297
+ 4
298
+ ]);
299
+ return [
300
+ 4,
301
+ connectInner(options)
302
+ ];
303
+ case 2:
304
+ app = _state.sent();
305
+ emit({
306
+ type: 'state',
307
+ state: app.state
308
+ });
309
+ app.client.lifecycle.onStateChange(function(state) {
310
+ return emit({
311
+ type: 'state',
312
+ state: state
313
+ });
314
+ });
315
+ app.client.lifecycle.onError(function(error) {
316
+ return emit({
317
+ type: 'error',
318
+ error: error
319
+ });
320
+ });
321
+ return [
322
+ 2,
323
+ app
324
+ ];
325
+ case 3:
326
+ e = _state.sent();
327
+ emit({
328
+ type: 'state',
329
+ state: 'failed'
330
+ });
331
+ if (_instanceof(e, EmbedError)) emit({
332
+ type: 'error',
333
+ error: e
334
+ });
335
+ throw e;
336
+ case 4:
337
+ return [
338
+ 2
339
+ ];
340
+ }
341
+ });
342
+ })();
343
+ }
344
+ function connectInner(options) {
345
+ return _async_to_generator(function() {
346
+ var _options_mode, mode, standalone, origins, client;
347
+ return _ts_generator(this, function(_state) {
348
+ switch(_state.label){
349
+ case 0:
350
+ if (!options || typeof options.moduleName !== 'string' || !options.moduleName) throw new EmbedError('INVALID_ARGS', 'connect : moduleName est obligatoire');
351
+ mode = (_options_mode = options.mode) !== null && _options_mode !== void 0 ? _options_mode : 'auto';
352
+ standalone = function standalone(note) {
353
+ return enforceRequired(new EgenApp(localClient(options), 'standalone', note), options.required);
354
+ };
355
+ if (mode === 'standalone') return [
356
+ 2,
357
+ standalone('Mode autonome demandé explicitement.')
358
+ ];
359
+ origins = options.hostOrigins;
360
+ if (!origins || origins.length === 0) {
361
+ if (mode === 'embedded') throw new EmbedError('INVALID_ARGS', 'connect : hostOrigins est obligatoire en mode embedded');
362
+ return [
363
+ 2,
364
+ standalone('Aucune origine de Shell fournie (hostOrigins) : mode autonome.')
365
+ ];
366
+ }
367
+ if (!inIframe(options.window)) {
368
+ if (mode === 'embedded') throw new EmbedError('UNSUPPORTED_IN_MODE', "connect : mode embedded exigé mais la page n'est pas dans une iframe du Shell");
369
+ return [
370
+ 2,
371
+ standalone("Page ouverte hors d'une iframe : mode autonome.")
372
+ ];
373
+ }
374
+ return [
375
+ 4,
376
+ connectToEgen(_object_spread_props(_object_spread({}, options), {
377
+ hostOrigins: origins
378
+ }))
379
+ ];
380
+ case 1:
381
+ client = _state.sent();
382
+ if (client.connected) return [
383
+ 2,
384
+ enforceRequired(new EgenApp(client, 'embedded'), options.required)
385
+ ];
386
+ if (mode === 'embedded') throw new EmbedError('TIMEOUT', "Aucune r\xe9ponse du Shell pour \xab ".concat(options.moduleName, " \xbb (voir les pistes de diagnostic dans la console)"));
387
+ return [
388
+ 2,
389
+ standalone("Le Shell n'a pas répondu à la poignée de main : mode autonome.")
390
+ ];
391
+ }
392
+ });
393
+ })();
394
+ }
@@ -0,0 +1,11 @@
1
+ import { EmbedError, type ErrorCode } from '@egen-civitas/esm-embed-protocol';
2
+ /**
3
+ * Erreur typée du SDK. C'est la MÊME classe que celle du protocole : toute erreur levée par le client
4
+ * embarqué est donc reconnue par `instanceof EgenError` / `isEgenError`.
5
+ * Codes : DENIED, UNKNOWN_CAPABILITY, UNKNOWN_METHOD, INVALID_ARGS, TIMEOUT, RATE_LIMITED, TOO_LARGE, CLOSED, INTERNAL,
6
+ * NOT_FOUND, CANCELLED, QUOTA_EXCEEDED, UNSUPPORTED_IN_MODE.
7
+ */
8
+ export { EmbedError as EgenError };
9
+ export type EgenErrorCode = ErrorCode;
10
+ export declare function isEgenError(e: unknown, code?: EgenErrorCode): e is EmbedError;
11
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAE9E;;;;;GAKG;AACH,OAAO,EAAE,UAAU,IAAI,SAAS,EAAE,CAAC;AACnC,MAAM,MAAM,aAAa,GAAG,SAAS,CAAC;AAEtC,wBAAgB,WAAW,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,aAAa,GAAG,CAAC,IAAI,UAAU,CAE7E"}
package/dist/errors.js ADDED
@@ -0,0 +1,18 @@
1
+ function _instanceof(left, right) {
2
+ "@swc/helpers - instanceof";
3
+ if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
4
+ return !!right[Symbol.hasInstance](left);
5
+ } else {
6
+ return left instanceof right;
7
+ }
8
+ }
9
+ import { EmbedError } from '@egen-civitas/esm-embed-protocol';
10
+ /**
11
+ * Erreur typée du SDK. C'est la MÊME classe que celle du protocole : toute erreur levée par le client
12
+ * embarqué est donc reconnue par `instanceof EgenError` / `isEgenError`.
13
+ * Codes : DENIED, UNKNOWN_CAPABILITY, UNKNOWN_METHOD, INVALID_ARGS, TIMEOUT, RATE_LIMITED, TOO_LARGE, CLOSED, INTERNAL,
14
+ * NOT_FOUND, CANCELLED, QUOTA_EXCEEDED, UNSUPPORTED_IN_MODE.
15
+ */ export { EmbedError as EgenError };
16
+ export function isEgenError(e, code) {
17
+ return _instanceof(e, EmbedError) && (code === undefined || e.code === code);
18
+ }
@@ -0,0 +1,8 @@
1
+ export { connect, type ConnectOptions, type DiagnosticEvent } from './connect.js';
2
+ export { EgenApp, type Diagnosis, type EgenMode } from './app.js';
3
+ export { EgenError, isEgenError, type EgenErrorCode } from './errors.js';
4
+ export { createStandaloneRuntime, STANDALONE_CAPABILITIES, type StandaloneOptions } from './standalone.js';
5
+ export { SDK_VERSION } from './version.js';
6
+ export { connectToEgen, EgenClient } from '@egen-civitas/esm-embed-client';
7
+ export type { LifecycleState, CapabilityId, CapabilityDenied, CapabilityGranted } from '@egen-civitas/esm-embed-protocol';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAClF,OAAO,EAAE,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAC3G,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC3E,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,7 @@
1
+ export { connect } from './connect.js';
2
+ export { EgenApp } from './app.js';
3
+ export { EgenError, isEgenError } from './errors.js';
4
+ export { createStandaloneRuntime, STANDALONE_CAPABILITIES } from './standalone.js';
5
+ export { SDK_VERSION } from './version.js';
6
+ // Compatibilité : les apps existantes gardent `connectToEgen` / `EgenClient` (dépréciation : voir roadmap §4).
7
+ export { connectToEgen, EgenClient } from '@egen-civitas/esm-embed-client';
@@ -0,0 +1,41 @@
1
+ import { type CapabilityId } from '@egen-civitas/esm-embed-protocol';
2
+ import type { RpcLike } from '@egen-civitas/esm-embed-client';
3
+ type Json = Record<string, unknown>;
4
+ /** Comportement de l'app HORS Shell (mode `standalone`) : la même application fonctionne sans EGEN (cahier §1). */
5
+ export interface StandaloneOptions {
6
+ tenantId?: string | null;
7
+ locale?: string;
8
+ /** Configuration publique servie par `config.get()`. */
9
+ config?: Json;
10
+ /** Drapeaux de fonctionnalité locaux. */
11
+ flags?: Record<string, boolean>;
12
+ /** Remplace `window.confirm` pour `dialogs.confirm`. */
13
+ confirm?: (d: {
14
+ title: string;
15
+ message: string;
16
+ danger?: boolean;
17
+ }) => boolean | Promise<boolean>;
18
+ /** Reçoit `telemetry.log` / `telemetry.metric` (défaut : ignorés). */
19
+ onTelemetry?: (kind: 'log' | 'metric', data: unknown[]) => void;
20
+ /** Injectables pour les tests / hors navigateur. */
21
+ window?: Pick<Window, 'history' | 'document'> & {
22
+ navigator?: {
23
+ language?: string;
24
+ };
25
+ location?: Pick<Location, 'pathname' | 'search' | 'hash'>;
26
+ open?: Window['open'];
27
+ };
28
+ /** Table des routes locale (`navigation.exists`, `NOT_FOUND`). Absente : `exists` indisponible. */
29
+ routeExists?: (path: string) => boolean | Promise<boolean>;
30
+ /** Intents `objet-action` → chemin local (`null` : inconnu). Absent : `intent` indisponible. */
31
+ intents?: (slug: string, params: Record<string, unknown>) => string | null | Promise<string | null>;
32
+ }
33
+ /**
34
+ * Runtime local qui sert les capacités du catalogue sans Shell. Il respecte la validation d'arguments du protocole
35
+ * (mêmes `INVALID_ARGS` qu'avec un hôte) ; ce qui n'a pas de sens hors Shell est refusé avec `UNSUPPORTED_IN_MODE`.
36
+ */
37
+ export declare function createStandaloneRuntime(opts?: StandaloneOptions): RpcLike;
38
+ /** Capacités servies localement en mode autonome. */
39
+ export declare const STANDALONE_CAPABILITIES: readonly CapabilityId[];
40
+ export {};
41
+ //# sourceMappingURL=standalone.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"standalone.d.ts","sourceRoot":"","sources":["../src/standalone.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+C,KAAK,YAAY,EAAwB,MAAM,kCAAkC,CAAC;AACxI,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAE9D,KAAK,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEpC,mHAAmH;AACnH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wDAAwD;IACxD,MAAM,CAAC,EAAE,IAAI,CAAC;IACd,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,wDAAwD;IACxD,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,OAAO,CAAA;KAAE,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAClG,sEAAsE;IACtE,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,GAAG,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;IAChE,oDAAoD;IACpD,MAAM,CAAC,EAAE,IAAI,CAAC,MAAM,EAAE,SAAS,GAAG,UAAU,CAAC,GAAG;QAAE,SAAS,CAAC,EAAE;YAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;QAAC,QAAQ,CAAC,EAAE,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAC,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,CAAA;KAAE,CAAC;IACxK,mGAAmG;IACnG,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3D,gGAAgG;IAChG,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CACrG;AAID;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,GAAE,iBAAsB,GAAG,OAAO,CAyG7E;AAED,qDAAqD;AACrD,eAAO,MAAM,uBAAuB,EAAE,SAAS,YAAY,EAAwI,CAAC"}