@sphereon/idk-lib-data-store-credential-design-impl 0.25.0-SNAPSHOT-build-8529934

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,1789 @@
1
+ import {
2
+ LazyThreadSafetyMode_PUBLICATION_getInstance3qslfm3vqg6y3 as LazyThreadSafetyMode_PUBLICATION_getInstance,
3
+ lazy1261dae0bgscp as lazy,
4
+ VOID3gxj6tk5isa35 as VOID,
5
+ initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
6
+ Unit_instancev9v8hjid95df as Unit_instance,
7
+ THROW_CCE2g6jy02ryeudk as THROW_CCE,
8
+ protoOf180f3jzyo7rfj as protoOf,
9
+ initMetadataForObject1cxne3s9w65el as initMetadataForObject,
10
+ getStringHashCode26igk1bx568vk as getStringHashCode,
11
+ createThis2j2avj17cvnv2 as createThis,
12
+ initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
13
+ Enum3alwj03lh1n41 as Enum,
14
+ toString30pk9tzaqopn as toString,
15
+ hashCodeq5arwsb9dgti as hashCode,
16
+ getBigIntHashCode294hi5bdhtj6e as getBigIntHashCode,
17
+ equals2au1ep9vhcato as equals,
18
+ initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
19
+ defineProp3ur6h3slcvq4x as defineProp,
20
+ equals2v6cggk171b6e as equals_0,
21
+ THROW_IAE23kobfj9wdoxr as THROW_IAE,
22
+ enumEntries20mr21zbe3az4 as enumEntries,
23
+ emptyMapr06gerzljqtm as emptyMap,
24
+ toString1pkumu07cwy4m as toString_0,
25
+ setOf45ia9pnfhe90 as setOf,
26
+ isInterface3d6p8outrmvmk as isInterface,
27
+ IllegalArgumentException2asla15b5jaob as IllegalArgumentException,
28
+ LinkedHashMap1zhqxkxv3xnkl as LinkedHashMap,
29
+ toLongOrNullutqivezb0wx1 as toLongOrNull,
30
+ } from '../kotlin-kotlin-stdlib.mjs';
31
+ import {
32
+ PluginGeneratedSerialDescriptorqdzeg5asqhfg as PluginGeneratedSerialDescriptor,
33
+ StringSerializer_getInstance11v9md0a7d9yk as StringSerializer_getInstance,
34
+ UnknownFieldExceptiona60e3a6v1xqo as UnknownFieldException,
35
+ get_nullable197rfua9r7fsz as get_nullable,
36
+ typeParametersSerializers2likxjr48tr7y as typeParametersSerializers,
37
+ GeneratedSerializer1f7t7hssdd2ws as GeneratedSerializer,
38
+ throwMissingFieldException2cmke0v3ynf14 as throwMissingFieldException,
39
+ createAnnotatedEnumSerializer20ay4pme9p2h9 as createAnnotatedEnumSerializer,
40
+ SerializerFactory1qv9hivitncuv as SerializerFactory,
41
+ SerializableWithd2dap36updxd as SerializableWith,
42
+ LongSerializer_getInstance2fim4572ialei as LongSerializer_getInstance,
43
+ buildClassSerialDescriptors2a6xdp6mrtw as buildClassSerialDescriptor,
44
+ KSerializerzf77vz1967fq as KSerializer,
45
+ } from '../kotlinx-serialization-kotlinx-serialization-core.mjs';
46
+ import {
47
+ JsonObjectSerializer_getInstance3ny2swi7cl9nx as JsonObjectSerializer_getInstance,
48
+ JsonEncoder1qlse6simkfi1 as JsonEncoder,
49
+ JsonObjectBuilder2nl6rv6vdayuk as JsonObjectBuilder,
50
+ JsonPrimitiveolttw629wj53 as JsonPrimitive,
51
+ JsonPrimitive2fp8648nd60dn as JsonPrimitive_0,
52
+ JsonDecoder1rijst5ne6qla as JsonDecoder,
53
+ get_jsonObject2u4z2ch1uuca9 as get_jsonObject,
54
+ get_jsonPrimitivez17tyd5rw1ql as get_jsonPrimitive,
55
+ } from '../kotlinx-serialization-kotlinx-serialization-json.mjs';
56
+ import { ServiceCommand2ipvutipel438 as ServiceCommand } from './idk-lib-core-api-public.mjs';
57
+ //region block: imports
58
+ var imul = Math.imul;
59
+ //endregion
60
+ //region block: pre-declaration
61
+ class Companion {
62
+ constructor() {
63
+ Companion_instance = this;
64
+ var tmp = this;
65
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
66
+ // Inline function 'kotlin.arrayOf' call
67
+ // Inline function 'kotlin.js.unsafeCast' call
68
+ // Inline function 'kotlin.js.asDynamic' call
69
+ tmp.p5k_1 = [null, null, null, lazy(tmp_0, JarmConfig$Companion$$childSerializers$_anonymous__rzy4x6)];
70
+ this.q5k_1 = 'A256GCM';
71
+ }
72
+ r5k(algorithm) {
73
+ return new JarmConfig(algorithm, VOID, VOID, JarmMode_SIGNED_getInstance());
74
+ }
75
+ s5k(algorithm, $super) {
76
+ algorithm = algorithm === VOID ? 'ES256' : algorithm;
77
+ return $super === VOID ? this.r5k(algorithm) : $super.r5k.call(this, algorithm);
78
+ }
79
+ }
80
+ class $serializer {
81
+ constructor() {
82
+ $serializer_instance = this;
83
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.sphereon.oauth2.common.jarm.JarmConfig', this, 4);
84
+ tmp0_serialDesc.j17('signingAlgorithm', true);
85
+ tmp0_serialDesc.j17('encryptionAlgorithm', true);
86
+ tmp0_serialDesc.j17('contentEncryptionAlgorithm', true);
87
+ tmp0_serialDesc.j17('mode', true);
88
+ this.t5k_1 = tmp0_serialDesc;
89
+ }
90
+ u5k(encoder, value) {
91
+ var tmp0_desc = this.t5k_1;
92
+ var tmp1_output = encoder.pz(tmp0_desc);
93
+ var tmp2_cached = Companion_getInstance().p5k_1;
94
+ if (tmp1_output.m11(tmp0_desc, 0) ? true : !(value.v5k_1 == null)) {
95
+ tmp1_output.i11(tmp0_desc, 0, StringSerializer_getInstance(), value.v5k_1);
96
+ }
97
+ if (tmp1_output.m11(tmp0_desc, 1) ? true : !(value.w5k_1 == null)) {
98
+ tmp1_output.i11(tmp0_desc, 1, StringSerializer_getInstance(), value.w5k_1);
99
+ }
100
+ if (tmp1_output.m11(tmp0_desc, 2) ? true : !(value.x5k_1 == null)) {
101
+ tmp1_output.i11(tmp0_desc, 2, StringSerializer_getInstance(), value.x5k_1);
102
+ }
103
+ if (tmp1_output.m11(tmp0_desc, 3) ? true : !value.y5k_1.equals(JarmMode_SIGNED_getInstance())) {
104
+ tmp1_output.h11(tmp0_desc, 3, tmp2_cached[3].i4(), value.y5k_1);
105
+ }
106
+ tmp1_output.qz(tmp0_desc);
107
+ }
108
+ nv(encoder, value) {
109
+ return this.u5k(encoder, value instanceof JarmConfig ? value : THROW_CCE());
110
+ }
111
+ ov(decoder) {
112
+ var tmp0_desc = this.t5k_1;
113
+ var tmp1_flag = true;
114
+ var tmp2_index = 0;
115
+ var tmp3_bitMask0 = 0;
116
+ var tmp4_local0 = null;
117
+ var tmp5_local1 = null;
118
+ var tmp6_local2 = null;
119
+ var tmp7_local3 = null;
120
+ var tmp8_input = decoder.pz(tmp0_desc);
121
+ var tmp9_cached = Companion_getInstance().p5k_1;
122
+ if (tmp8_input.f10()) {
123
+ tmp4_local0 = tmp8_input.d10(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
124
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
125
+ tmp5_local1 = tmp8_input.d10(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
126
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
127
+ tmp6_local2 = tmp8_input.d10(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
128
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
129
+ tmp7_local3 = tmp8_input.b10(tmp0_desc, 3, tmp9_cached[3].i4(), tmp7_local3);
130
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
131
+ } else
132
+ while (tmp1_flag) {
133
+ tmp2_index = tmp8_input.g10(tmp0_desc);
134
+ switch (tmp2_index) {
135
+ case -1:
136
+ tmp1_flag = false;
137
+ break;
138
+ case 0:
139
+ tmp4_local0 = tmp8_input.d10(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
140
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
141
+ break;
142
+ case 1:
143
+ tmp5_local1 = tmp8_input.d10(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
144
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
145
+ break;
146
+ case 2:
147
+ tmp6_local2 = tmp8_input.d10(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
148
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
149
+ break;
150
+ case 3:
151
+ tmp7_local3 = tmp8_input.b10(tmp0_desc, 3, tmp9_cached[3].i4(), tmp7_local3);
152
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
153
+ break;
154
+ default:
155
+ throw UnknownFieldException.xw(tmp2_index);
156
+ }
157
+ }
158
+ tmp8_input.qz(tmp0_desc);
159
+ return JarmConfig.z5k(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
160
+ }
161
+ av() {
162
+ return this.t5k_1;
163
+ }
164
+ y17() {
165
+ var tmp0_cached = Companion_getInstance().p5k_1;
166
+ // Inline function 'kotlin.arrayOf' call
167
+ // Inline function 'kotlin.js.unsafeCast' call
168
+ // Inline function 'kotlin.js.asDynamic' call
169
+ return [get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), tmp0_cached[3].i4()];
170
+ }
171
+ }
172
+ class JarmConfig {
173
+ constructor(signingAlgorithm, encryptionAlgorithm, contentEncryptionAlgorithm, mode) {
174
+ Companion_getInstance();
175
+ signingAlgorithm = signingAlgorithm === VOID ? null : signingAlgorithm;
176
+ encryptionAlgorithm = encryptionAlgorithm === VOID ? null : encryptionAlgorithm;
177
+ contentEncryptionAlgorithm = contentEncryptionAlgorithm === VOID ? null : contentEncryptionAlgorithm;
178
+ mode = mode === VOID ? JarmMode_SIGNED_getInstance() : mode;
179
+ this.v5k_1 = signingAlgorithm;
180
+ this.w5k_1 = encryptionAlgorithm;
181
+ this.x5k_1 = contentEncryptionAlgorithm;
182
+ this.y5k_1 = mode;
183
+ }
184
+ toString() {
185
+ return 'JarmConfig(signingAlgorithm=' + this.v5k_1 + ', encryptionAlgorithm=' + this.w5k_1 + ', contentEncryptionAlgorithm=' + this.x5k_1 + ', mode=' + this.y5k_1.toString() + ')';
186
+ }
187
+ hashCode() {
188
+ var result = this.v5k_1 == null ? 0 : getStringHashCode(this.v5k_1);
189
+ result = imul(result, 31) + (this.w5k_1 == null ? 0 : getStringHashCode(this.w5k_1)) | 0;
190
+ result = imul(result, 31) + (this.x5k_1 == null ? 0 : getStringHashCode(this.x5k_1)) | 0;
191
+ result = imul(result, 31) + this.y5k_1.hashCode() | 0;
192
+ return result;
193
+ }
194
+ equals(other) {
195
+ if (this === other)
196
+ return true;
197
+ if (!(other instanceof JarmConfig))
198
+ return false;
199
+ if (!(this.v5k_1 == other.v5k_1))
200
+ return false;
201
+ if (!(this.w5k_1 == other.w5k_1))
202
+ return false;
203
+ if (!(this.x5k_1 == other.x5k_1))
204
+ return false;
205
+ if (!this.y5k_1.equals(other.y5k_1))
206
+ return false;
207
+ return true;
208
+ }
209
+ static z5k(seen0, signingAlgorithm, encryptionAlgorithm, contentEncryptionAlgorithm, mode, serializationConstructorMarker) {
210
+ Companion_getInstance();
211
+ if (!(0 === (0 & seen0))) {
212
+ throwMissingFieldException(seen0, 0, $serializer_getInstance().t5k_1);
213
+ }
214
+ var $this = createThis(this);
215
+ if (0 === (seen0 & 1))
216
+ $this.v5k_1 = null;
217
+ else
218
+ $this.v5k_1 = signingAlgorithm;
219
+ if (0 === (seen0 & 2))
220
+ $this.w5k_1 = null;
221
+ else
222
+ $this.w5k_1 = encryptionAlgorithm;
223
+ if (0 === (seen0 & 4))
224
+ $this.x5k_1 = null;
225
+ else
226
+ $this.x5k_1 = contentEncryptionAlgorithm;
227
+ if (0 === (seen0 & 8))
228
+ $this.y5k_1 = JarmMode_SIGNED_getInstance();
229
+ else
230
+ $this.y5k_1 = mode;
231
+ return $this;
232
+ }
233
+ }
234
+ class Companion_0 {
235
+ constructor() {
236
+ Companion_instance_0 = this;
237
+ var tmp = this;
238
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
239
+ tmp.o5k_1 = lazy(tmp_0, JarmMode$Companion$_anonymous__6lmqca);
240
+ }
241
+ z1k() {
242
+ return _get_$cachedSerializer__te6jhj(this);
243
+ }
244
+ k18(typeParamsSerializers) {
245
+ return this.z1k();
246
+ }
247
+ }
248
+ class JarmMode extends Enum {}
249
+ class Companion_1 {}
250
+ class $serializer_0 {
251
+ constructor() {
252
+ $serializer_instance_0 = this;
253
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.sphereon.oauth2.common.jarm.CreateJarmResponseArgs', this, 6);
254
+ tmp0_serialDesc.j17('responseParameters', false);
255
+ tmp0_serialDesc.j17('state', true);
256
+ tmp0_serialDesc.j17('issuer', false);
257
+ tmp0_serialDesc.j17('audience', false);
258
+ tmp0_serialDesc.j17('jarmConfig', true);
259
+ tmp0_serialDesc.j17('expirationSeconds', true);
260
+ this.a5l_1 = tmp0_serialDesc;
261
+ }
262
+ b5l(encoder, value) {
263
+ var tmp0_desc = this.a5l_1;
264
+ var tmp1_output = encoder.pz(tmp0_desc);
265
+ tmp1_output.h11(tmp0_desc, 0, JsonObjectSerializer_getInstance(), value.responseParameters);
266
+ if (tmp1_output.m11(tmp0_desc, 1) ? true : !(value.state == null)) {
267
+ tmp1_output.i11(tmp0_desc, 1, StringSerializer_getInstance(), value.state);
268
+ }
269
+ tmp1_output.f11(tmp0_desc, 2, value.issuer);
270
+ tmp1_output.f11(tmp0_desc, 3, value.audience);
271
+ if (tmp1_output.m11(tmp0_desc, 4) ? true : !value.jarmConfig.equals(Companion_getInstance().s5k())) {
272
+ tmp1_output.h11(tmp0_desc, 4, $serializer_getInstance(), value.jarmConfig);
273
+ }
274
+ if (tmp1_output.m11(tmp0_desc, 5) ? true : !(value.expirationSeconds === 300n)) {
275
+ tmp1_output.b11(tmp0_desc, 5, value.expirationSeconds);
276
+ }
277
+ tmp1_output.qz(tmp0_desc);
278
+ }
279
+ nv(encoder, value) {
280
+ return this.b5l(encoder, value instanceof CreateJarmResponseArgs ? value : THROW_CCE());
281
+ }
282
+ ov(decoder) {
283
+ var tmp0_desc = this.a5l_1;
284
+ var tmp1_flag = true;
285
+ var tmp2_index = 0;
286
+ var tmp3_bitMask0 = 0;
287
+ var tmp4_local0 = null;
288
+ var tmp5_local1 = null;
289
+ var tmp6_local2 = null;
290
+ var tmp7_local3 = null;
291
+ var tmp8_local4 = null;
292
+ var tmp9_local5 = 0n;
293
+ var tmp12_input = decoder.pz(tmp0_desc);
294
+ if (tmp12_input.f10()) {
295
+ tmp4_local0 = tmp12_input.b10(tmp0_desc, 0, JsonObjectSerializer_getInstance(), tmp4_local0);
296
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
297
+ tmp5_local1 = tmp12_input.d10(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
298
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
299
+ tmp6_local2 = tmp12_input.zz(tmp0_desc, 2);
300
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
301
+ tmp7_local3 = tmp12_input.zz(tmp0_desc, 3);
302
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
303
+ tmp8_local4 = tmp12_input.b10(tmp0_desc, 4, $serializer_getInstance(), tmp8_local4);
304
+ tmp3_bitMask0 = tmp3_bitMask0 | 16;
305
+ tmp9_local5 = tmp12_input.vz(tmp0_desc, 5);
306
+ tmp3_bitMask0 = tmp3_bitMask0 | 32;
307
+ } else
308
+ while (tmp1_flag) {
309
+ tmp2_index = tmp12_input.g10(tmp0_desc);
310
+ switch (tmp2_index) {
311
+ case -1:
312
+ tmp1_flag = false;
313
+ break;
314
+ case 0:
315
+ tmp4_local0 = tmp12_input.b10(tmp0_desc, 0, JsonObjectSerializer_getInstance(), tmp4_local0);
316
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
317
+ break;
318
+ case 1:
319
+ tmp5_local1 = tmp12_input.d10(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
320
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
321
+ break;
322
+ case 2:
323
+ tmp6_local2 = tmp12_input.zz(tmp0_desc, 2);
324
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
325
+ break;
326
+ case 3:
327
+ tmp7_local3 = tmp12_input.zz(tmp0_desc, 3);
328
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
329
+ break;
330
+ case 4:
331
+ tmp8_local4 = tmp12_input.b10(tmp0_desc, 4, $serializer_getInstance(), tmp8_local4);
332
+ tmp3_bitMask0 = tmp3_bitMask0 | 16;
333
+ break;
334
+ case 5:
335
+ tmp9_local5 = tmp12_input.vz(tmp0_desc, 5);
336
+ tmp3_bitMask0 = tmp3_bitMask0 | 32;
337
+ break;
338
+ default:
339
+ throw UnknownFieldException.xw(tmp2_index);
340
+ }
341
+ }
342
+ tmp12_input.qz(tmp0_desc);
343
+ return CreateJarmResponseArgs.c5l(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
344
+ }
345
+ av() {
346
+ return this.a5l_1;
347
+ }
348
+ y17() {
349
+ // Inline function 'kotlin.arrayOf' call
350
+ // Inline function 'kotlin.js.unsafeCast' call
351
+ // Inline function 'kotlin.js.asDynamic' call
352
+ return [JsonObjectSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), StringSerializer_getInstance(), StringSerializer_getInstance(), $serializer_getInstance(), LongSerializer_getInstance()];
353
+ }
354
+ }
355
+ class CreateJarmResponseArgs {
356
+ constructor(responseParameters, state, issuer, audience, signingKey, encryptionRecipient, jarmConfig, expirationSeconds) {
357
+ state = state === VOID ? null : state;
358
+ signingKey = signingKey === VOID ? null : signingKey;
359
+ encryptionRecipient = encryptionRecipient === VOID ? null : encryptionRecipient;
360
+ jarmConfig = jarmConfig === VOID ? Companion_getInstance().s5k() : jarmConfig;
361
+ expirationSeconds = expirationSeconds === VOID ? 300n : expirationSeconds;
362
+ this.responseParameters = responseParameters;
363
+ this.state = state;
364
+ this.issuer = issuer;
365
+ this.audience = audience;
366
+ this.signingKey = signingKey;
367
+ this.encryptionRecipient = encryptionRecipient;
368
+ this.jarmConfig = jarmConfig;
369
+ this.expirationSeconds = expirationSeconds;
370
+ }
371
+ d5l() {
372
+ return this.responseParameters;
373
+ }
374
+ f2v() {
375
+ return this.state;
376
+ }
377
+ n5c() {
378
+ return this.issuer;
379
+ }
380
+ t5j() {
381
+ return this.audience;
382
+ }
383
+ e5l() {
384
+ return this.signingKey;
385
+ }
386
+ f5l() {
387
+ return this.encryptionRecipient;
388
+ }
389
+ g5l() {
390
+ return this.jarmConfig;
391
+ }
392
+ h5l() {
393
+ return this.expirationSeconds;
394
+ }
395
+ nk() {
396
+ return this.responseParameters;
397
+ }
398
+ ok() {
399
+ return this.state;
400
+ }
401
+ tr() {
402
+ return this.issuer;
403
+ }
404
+ e2p() {
405
+ return this.audience;
406
+ }
407
+ f2p() {
408
+ return this.signingKey;
409
+ }
410
+ g2p() {
411
+ return this.encryptionRecipient;
412
+ }
413
+ h2p() {
414
+ return this.jarmConfig;
415
+ }
416
+ t2t() {
417
+ return this.expirationSeconds;
418
+ }
419
+ i5l(responseParameters, state, issuer, audience, signingKey, encryptionRecipient, jarmConfig, expirationSeconds) {
420
+ return new CreateJarmResponseArgs(responseParameters, state, issuer, audience, signingKey, encryptionRecipient, jarmConfig, expirationSeconds);
421
+ }
422
+ copy(responseParameters, state, issuer, audience, signingKey, encryptionRecipient, jarmConfig, expirationSeconds, $super) {
423
+ responseParameters = responseParameters === VOID ? this.responseParameters : responseParameters;
424
+ state = state === VOID ? this.state : state;
425
+ issuer = issuer === VOID ? this.issuer : issuer;
426
+ audience = audience === VOID ? this.audience : audience;
427
+ signingKey = signingKey === VOID ? this.signingKey : signingKey;
428
+ encryptionRecipient = encryptionRecipient === VOID ? this.encryptionRecipient : encryptionRecipient;
429
+ jarmConfig = jarmConfig === VOID ? this.jarmConfig : jarmConfig;
430
+ expirationSeconds = expirationSeconds === VOID ? this.expirationSeconds : expirationSeconds;
431
+ return $super === VOID ? this.i5l(responseParameters, state, issuer, audience, signingKey, encryptionRecipient, jarmConfig, expirationSeconds) : $super.i5l.call(this, responseParameters, state, issuer, audience, signingKey, encryptionRecipient, jarmConfig, expirationSeconds);
432
+ }
433
+ toString() {
434
+ return 'CreateJarmResponseArgs(responseParameters=' + this.responseParameters.toString() + ', state=' + this.state + ', issuer=' + this.issuer + ', audience=' + this.audience + ', signingKey=' + toString(this.signingKey) + ', encryptionRecipient=' + toString(this.encryptionRecipient) + ', jarmConfig=' + this.jarmConfig.toString() + ', expirationSeconds=' + this.expirationSeconds.toString() + ')';
435
+ }
436
+ hashCode() {
437
+ var result = this.responseParameters.hashCode();
438
+ result = imul(result, 31) + (this.state == null ? 0 : getStringHashCode(this.state)) | 0;
439
+ result = imul(result, 31) + getStringHashCode(this.issuer) | 0;
440
+ result = imul(result, 31) + getStringHashCode(this.audience) | 0;
441
+ result = imul(result, 31) + (this.signingKey == null ? 0 : hashCode(this.signingKey)) | 0;
442
+ result = imul(result, 31) + (this.encryptionRecipient == null ? 0 : hashCode(this.encryptionRecipient)) | 0;
443
+ result = imul(result, 31) + this.jarmConfig.hashCode() | 0;
444
+ result = imul(result, 31) + getBigIntHashCode(this.expirationSeconds) | 0;
445
+ return result;
446
+ }
447
+ equals(other) {
448
+ if (this === other)
449
+ return true;
450
+ if (!(other instanceof CreateJarmResponseArgs))
451
+ return false;
452
+ if (!this.responseParameters.equals(other.responseParameters))
453
+ return false;
454
+ if (!(this.state == other.state))
455
+ return false;
456
+ if (!(this.issuer === other.issuer))
457
+ return false;
458
+ if (!(this.audience === other.audience))
459
+ return false;
460
+ if (!equals(this.signingKey, other.signingKey))
461
+ return false;
462
+ if (!equals(this.encryptionRecipient, other.encryptionRecipient))
463
+ return false;
464
+ if (!this.jarmConfig.equals(other.jarmConfig))
465
+ return false;
466
+ if (!(this.expirationSeconds === other.expirationSeconds))
467
+ return false;
468
+ return true;
469
+ }
470
+ static c5l(seen0, responseParameters, state, issuer, audience, jarmConfig, expirationSeconds, serializationConstructorMarker) {
471
+ if (!(13 === (13 & seen0))) {
472
+ throwMissingFieldException(seen0, 13, $serializer_getInstance_0().a5l_1);
473
+ }
474
+ var $this = createThis(this);
475
+ $this.responseParameters = responseParameters;
476
+ if (0 === (seen0 & 2))
477
+ $this.state = null;
478
+ else
479
+ $this.state = state;
480
+ $this.issuer = issuer;
481
+ $this.audience = audience;
482
+ $this.signingKey = null;
483
+ $this.encryptionRecipient = null;
484
+ if (0 === (seen0 & 16))
485
+ $this.jarmConfig = Companion_getInstance().s5k();
486
+ else
487
+ $this.jarmConfig = jarmConfig;
488
+ if (0 === (seen0 & 32))
489
+ $this.expirationSeconds = 300n;
490
+ else
491
+ $this.expirationSeconds = expirationSeconds;
492
+ return $this;
493
+ }
494
+ }
495
+ class Companion_2 {
496
+ constructor() {
497
+ Companion_instance_2 = this;
498
+ var tmp = this;
499
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
500
+ // Inline function 'kotlin.arrayOf' call
501
+ // Inline function 'kotlin.js.unsafeCast' call
502
+ // Inline function 'kotlin.js.asDynamic' call
503
+ tmp.j5l_1 = [null, lazy(tmp_0, CreateJarmResponseResult$Companion$$childSerializers$_anonymous__y1hiiq)];
504
+ }
505
+ }
506
+ class $serializer_1 {
507
+ constructor() {
508
+ $serializer_instance_1 = this;
509
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.sphereon.oauth2.common.jarm.CreateJarmResponseResult', this, 2);
510
+ tmp0_serialDesc.j17('jarmJwt', false);
511
+ tmp0_serialDesc.j17('mode', false);
512
+ this.k5l_1 = tmp0_serialDesc;
513
+ }
514
+ l5l(encoder, value) {
515
+ var tmp0_desc = this.k5l_1;
516
+ var tmp1_output = encoder.pz(tmp0_desc);
517
+ var tmp2_cached = Companion_getInstance_2().j5l_1;
518
+ tmp1_output.f11(tmp0_desc, 0, value.jarmJwt);
519
+ tmp1_output.h11(tmp0_desc, 1, tmp2_cached[1].i4(), value.mode);
520
+ tmp1_output.qz(tmp0_desc);
521
+ }
522
+ nv(encoder, value) {
523
+ return this.l5l(encoder, value instanceof CreateJarmResponseResult ? value : THROW_CCE());
524
+ }
525
+ ov(decoder) {
526
+ var tmp0_desc = this.k5l_1;
527
+ var tmp1_flag = true;
528
+ var tmp2_index = 0;
529
+ var tmp3_bitMask0 = 0;
530
+ var tmp4_local0 = null;
531
+ var tmp5_local1 = null;
532
+ var tmp6_input = decoder.pz(tmp0_desc);
533
+ var tmp7_cached = Companion_getInstance_2().j5l_1;
534
+ if (tmp6_input.f10()) {
535
+ tmp4_local0 = tmp6_input.zz(tmp0_desc, 0);
536
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
537
+ tmp5_local1 = tmp6_input.b10(tmp0_desc, 1, tmp7_cached[1].i4(), tmp5_local1);
538
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
539
+ } else
540
+ while (tmp1_flag) {
541
+ tmp2_index = tmp6_input.g10(tmp0_desc);
542
+ switch (tmp2_index) {
543
+ case -1:
544
+ tmp1_flag = false;
545
+ break;
546
+ case 0:
547
+ tmp4_local0 = tmp6_input.zz(tmp0_desc, 0);
548
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
549
+ break;
550
+ case 1:
551
+ tmp5_local1 = tmp6_input.b10(tmp0_desc, 1, tmp7_cached[1].i4(), tmp5_local1);
552
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
553
+ break;
554
+ default:
555
+ throw UnknownFieldException.xw(tmp2_index);
556
+ }
557
+ }
558
+ tmp6_input.qz(tmp0_desc);
559
+ return CreateJarmResponseResult.m5l(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
560
+ }
561
+ av() {
562
+ return this.k5l_1;
563
+ }
564
+ y17() {
565
+ var tmp0_cached = Companion_getInstance_2().j5l_1;
566
+ // Inline function 'kotlin.arrayOf' call
567
+ // Inline function 'kotlin.js.unsafeCast' call
568
+ // Inline function 'kotlin.js.asDynamic' call
569
+ return [StringSerializer_getInstance(), tmp0_cached[1].i4()];
570
+ }
571
+ }
572
+ class CreateJarmResponseResult {
573
+ constructor(jarmJwt, mode) {
574
+ Companion_getInstance_2();
575
+ this.jarmJwt = jarmJwt;
576
+ this.mode = mode;
577
+ }
578
+ n5l() {
579
+ return this.jarmJwt;
580
+ }
581
+ o5c() {
582
+ return this.mode;
583
+ }
584
+ nk() {
585
+ return this.jarmJwt;
586
+ }
587
+ ok() {
588
+ return this.mode;
589
+ }
590
+ o5l(jarmJwt, mode) {
591
+ return new CreateJarmResponseResult(jarmJwt, mode);
592
+ }
593
+ copy(jarmJwt, mode, $super) {
594
+ jarmJwt = jarmJwt === VOID ? this.jarmJwt : jarmJwt;
595
+ mode = mode === VOID ? this.mode : mode;
596
+ return $super === VOID ? this.o5l(jarmJwt, mode) : $super.o5l.call(this, jarmJwt, mode);
597
+ }
598
+ toString() {
599
+ return 'CreateJarmResponseResult(jarmJwt=' + this.jarmJwt + ', mode=' + this.mode.toString() + ')';
600
+ }
601
+ hashCode() {
602
+ var result = getStringHashCode(this.jarmJwt);
603
+ result = imul(result, 31) + this.mode.hashCode() | 0;
604
+ return result;
605
+ }
606
+ equals(other) {
607
+ if (this === other)
608
+ return true;
609
+ if (!(other instanceof CreateJarmResponseResult))
610
+ return false;
611
+ if (!(this.jarmJwt === other.jarmJwt))
612
+ return false;
613
+ if (!this.mode.equals(other.mode))
614
+ return false;
615
+ return true;
616
+ }
617
+ static m5l(seen0, jarmJwt, mode, serializationConstructorMarker) {
618
+ Companion_getInstance_2();
619
+ if (!(3 === (3 & seen0))) {
620
+ throwMissingFieldException(seen0, 3, $serializer_getInstance_1().k5l_1);
621
+ }
622
+ var $this = createThis(this);
623
+ $this.jarmJwt = jarmJwt;
624
+ $this.mode = mode;
625
+ return $this;
626
+ }
627
+ }
628
+ class Companion_3 {
629
+ constructor() {
630
+ this.COMMAND_ID = 'oauth2.jarm.create';
631
+ }
632
+ n5a() {
633
+ return this.COMMAND_ID;
634
+ }
635
+ }
636
+ class CreateJarmResponseCommand {}
637
+ function get_commandId() {
638
+ return 'oauth2.jarm.create';
639
+ }
640
+ class Companion_4 {}
641
+ class $serializer_2 {
642
+ constructor() {
643
+ $serializer_instance_2 = this;
644
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.sphereon.oauth2.common.jarm.VerifyJarmResponseArgs', this, 3);
645
+ tmp0_serialDesc.j17('jarmJwt', false);
646
+ tmp0_serialDesc.j17('expectedAudience', true);
647
+ tmp0_serialDesc.j17('expectedState', true);
648
+ this.p5l_1 = tmp0_serialDesc;
649
+ }
650
+ q5l(encoder, value) {
651
+ var tmp0_desc = this.p5l_1;
652
+ var tmp1_output = encoder.pz(tmp0_desc);
653
+ tmp1_output.f11(tmp0_desc, 0, value.jarmJwt);
654
+ if (tmp1_output.m11(tmp0_desc, 1) ? true : !(value.expectedAudience == null)) {
655
+ tmp1_output.i11(tmp0_desc, 1, StringSerializer_getInstance(), value.expectedAudience);
656
+ }
657
+ if (tmp1_output.m11(tmp0_desc, 2) ? true : !(value.expectedState == null)) {
658
+ tmp1_output.i11(tmp0_desc, 2, StringSerializer_getInstance(), value.expectedState);
659
+ }
660
+ tmp1_output.qz(tmp0_desc);
661
+ }
662
+ nv(encoder, value) {
663
+ return this.q5l(encoder, value instanceof VerifyJarmResponseArgs ? value : THROW_CCE());
664
+ }
665
+ ov(decoder) {
666
+ var tmp0_desc = this.p5l_1;
667
+ var tmp1_flag = true;
668
+ var tmp2_index = 0;
669
+ var tmp3_bitMask0 = 0;
670
+ var tmp4_local0 = null;
671
+ var tmp5_local1 = null;
672
+ var tmp6_local2 = null;
673
+ var tmp9_input = decoder.pz(tmp0_desc);
674
+ if (tmp9_input.f10()) {
675
+ tmp4_local0 = tmp9_input.zz(tmp0_desc, 0);
676
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
677
+ tmp5_local1 = tmp9_input.d10(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
678
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
679
+ tmp6_local2 = tmp9_input.d10(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
680
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
681
+ } else
682
+ while (tmp1_flag) {
683
+ tmp2_index = tmp9_input.g10(tmp0_desc);
684
+ switch (tmp2_index) {
685
+ case -1:
686
+ tmp1_flag = false;
687
+ break;
688
+ case 0:
689
+ tmp4_local0 = tmp9_input.zz(tmp0_desc, 0);
690
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
691
+ break;
692
+ case 1:
693
+ tmp5_local1 = tmp9_input.d10(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
694
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
695
+ break;
696
+ case 2:
697
+ tmp6_local2 = tmp9_input.d10(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
698
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
699
+ break;
700
+ default:
701
+ throw UnknownFieldException.xw(tmp2_index);
702
+ }
703
+ }
704
+ tmp9_input.qz(tmp0_desc);
705
+ return VerifyJarmResponseArgs.r5l(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
706
+ }
707
+ av() {
708
+ return this.p5l_1;
709
+ }
710
+ y17() {
711
+ // Inline function 'kotlin.arrayOf' call
712
+ // Inline function 'kotlin.js.unsafeCast' call
713
+ // Inline function 'kotlin.js.asDynamic' call
714
+ return [StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())];
715
+ }
716
+ }
717
+ class VerifyJarmResponseArgs {
718
+ constructor(jarmJwt, expectedAudience, expectedState, decryptionKey, signerIdentifier) {
719
+ expectedAudience = expectedAudience === VOID ? null : expectedAudience;
720
+ expectedState = expectedState === VOID ? null : expectedState;
721
+ decryptionKey = decryptionKey === VOID ? null : decryptionKey;
722
+ signerIdentifier = signerIdentifier === VOID ? null : signerIdentifier;
723
+ this.jarmJwt = jarmJwt;
724
+ this.expectedAudience = expectedAudience;
725
+ this.expectedState = expectedState;
726
+ this.decryptionKey = decryptionKey;
727
+ this.signerIdentifier = signerIdentifier;
728
+ }
729
+ n5l() {
730
+ return this.jarmJwt;
731
+ }
732
+ s5l() {
733
+ return this.expectedAudience;
734
+ }
735
+ t5l() {
736
+ return this.expectedState;
737
+ }
738
+ u5l() {
739
+ return this.decryptionKey;
740
+ }
741
+ v5l() {
742
+ return this.signerIdentifier;
743
+ }
744
+ nk() {
745
+ return this.jarmJwt;
746
+ }
747
+ ok() {
748
+ return this.expectedAudience;
749
+ }
750
+ tr() {
751
+ return this.expectedState;
752
+ }
753
+ e2p() {
754
+ return this.decryptionKey;
755
+ }
756
+ f2p() {
757
+ return this.signerIdentifier;
758
+ }
759
+ w5l(jarmJwt, expectedAudience, expectedState, decryptionKey, signerIdentifier) {
760
+ return new VerifyJarmResponseArgs(jarmJwt, expectedAudience, expectedState, decryptionKey, signerIdentifier);
761
+ }
762
+ copy(jarmJwt, expectedAudience, expectedState, decryptionKey, signerIdentifier, $super) {
763
+ jarmJwt = jarmJwt === VOID ? this.jarmJwt : jarmJwt;
764
+ expectedAudience = expectedAudience === VOID ? this.expectedAudience : expectedAudience;
765
+ expectedState = expectedState === VOID ? this.expectedState : expectedState;
766
+ decryptionKey = decryptionKey === VOID ? this.decryptionKey : decryptionKey;
767
+ signerIdentifier = signerIdentifier === VOID ? this.signerIdentifier : signerIdentifier;
768
+ return $super === VOID ? this.w5l(jarmJwt, expectedAudience, expectedState, decryptionKey, signerIdentifier) : $super.w5l.call(this, jarmJwt, expectedAudience, expectedState, decryptionKey, signerIdentifier);
769
+ }
770
+ toString() {
771
+ return 'VerifyJarmResponseArgs(jarmJwt=' + this.jarmJwt + ', expectedAudience=' + this.expectedAudience + ', expectedState=' + this.expectedState + ', decryptionKey=' + toString(this.decryptionKey) + ', signerIdentifier=' + toString(this.signerIdentifier) + ')';
772
+ }
773
+ hashCode() {
774
+ var result = getStringHashCode(this.jarmJwt);
775
+ result = imul(result, 31) + (this.expectedAudience == null ? 0 : getStringHashCode(this.expectedAudience)) | 0;
776
+ result = imul(result, 31) + (this.expectedState == null ? 0 : getStringHashCode(this.expectedState)) | 0;
777
+ result = imul(result, 31) + (this.decryptionKey == null ? 0 : hashCode(this.decryptionKey)) | 0;
778
+ result = imul(result, 31) + (this.signerIdentifier == null ? 0 : hashCode(this.signerIdentifier)) | 0;
779
+ return result;
780
+ }
781
+ equals(other) {
782
+ if (this === other)
783
+ return true;
784
+ if (!(other instanceof VerifyJarmResponseArgs))
785
+ return false;
786
+ if (!(this.jarmJwt === other.jarmJwt))
787
+ return false;
788
+ if (!(this.expectedAudience == other.expectedAudience))
789
+ return false;
790
+ if (!(this.expectedState == other.expectedState))
791
+ return false;
792
+ if (!equals(this.decryptionKey, other.decryptionKey))
793
+ return false;
794
+ if (!equals(this.signerIdentifier, other.signerIdentifier))
795
+ return false;
796
+ return true;
797
+ }
798
+ static r5l(seen0, jarmJwt, expectedAudience, expectedState, serializationConstructorMarker) {
799
+ if (!(1 === (1 & seen0))) {
800
+ throwMissingFieldException(seen0, 1, $serializer_getInstance_2().p5l_1);
801
+ }
802
+ var $this = createThis(this);
803
+ $this.jarmJwt = jarmJwt;
804
+ if (0 === (seen0 & 2))
805
+ $this.expectedAudience = null;
806
+ else
807
+ $this.expectedAudience = expectedAudience;
808
+ if (0 === (seen0 & 4))
809
+ $this.expectedState = null;
810
+ else
811
+ $this.expectedState = expectedState;
812
+ $this.decryptionKey = null;
813
+ $this.signerIdentifier = null;
814
+ return $this;
815
+ }
816
+ }
817
+ class Companion_5 {
818
+ constructor() {
819
+ this.COMMAND_ID = 'oauth2.jarm.verify';
820
+ }
821
+ n5a() {
822
+ return this.COMMAND_ID;
823
+ }
824
+ }
825
+ class VerifyJarmResponseCommand {}
826
+ function get_commandId_0() {
827
+ return 'oauth2.jarm.verify';
828
+ }
829
+ class Companion_6 {
830
+ fromValue(value) {
831
+ // Inline function 'kotlin.collections.find' call
832
+ var tmp0 = get_entries();
833
+ var tmp$ret$1;
834
+ $l$block: {
835
+ // Inline function 'kotlin.collections.firstOrNull' call
836
+ var _iterator__ex2g4s = tmp0.j1();
837
+ while (_iterator__ex2g4s.k1()) {
838
+ var element = _iterator__ex2g4s.l1();
839
+ if (equals_0(element.value, value, true)) {
840
+ tmp$ret$1 = element;
841
+ break $l$block;
842
+ }
843
+ }
844
+ tmp$ret$1 = null;
845
+ }
846
+ return tmp$ret$1;
847
+ }
848
+ }
849
+ class AuthenticationScheme extends Enum {
850
+ constructor(name, ordinal, value) {
851
+ super(name, ordinal);
852
+ this.value = value;
853
+ }
854
+ i4() {
855
+ return this.value;
856
+ }
857
+ get name() {
858
+ return this.b1();
859
+ }
860
+ get ordinal() {
861
+ return this.a5();
862
+ }
863
+ }
864
+ class Companion_7 {}
865
+ class AuthorizationRequest {
866
+ constructor(clientId, redirectUri, responseType, scope, state, codeChallenge, codeChallengeMethod, nonce, responseMode, requestUri, request, resource, issuerState, dpopJkt, prompt, loginHint, maxAge, uiLocales, idTokenHint, acrValues, display, additionalParameters) {
867
+ redirectUri = redirectUri === VOID ? null : redirectUri;
868
+ responseType = responseType === VOID ? 'code' : responseType;
869
+ scope = scope === VOID ? null : scope;
870
+ state = state === VOID ? null : state;
871
+ codeChallenge = codeChallenge === VOID ? null : codeChallenge;
872
+ codeChallengeMethod = codeChallengeMethod === VOID ? null : codeChallengeMethod;
873
+ nonce = nonce === VOID ? null : nonce;
874
+ responseMode = responseMode === VOID ? null : responseMode;
875
+ requestUri = requestUri === VOID ? null : requestUri;
876
+ request = request === VOID ? null : request;
877
+ resource = resource === VOID ? null : resource;
878
+ issuerState = issuerState === VOID ? null : issuerState;
879
+ dpopJkt = dpopJkt === VOID ? null : dpopJkt;
880
+ prompt = prompt === VOID ? null : prompt;
881
+ loginHint = loginHint === VOID ? null : loginHint;
882
+ maxAge = maxAge === VOID ? null : maxAge;
883
+ uiLocales = uiLocales === VOID ? null : uiLocales;
884
+ idTokenHint = idTokenHint === VOID ? null : idTokenHint;
885
+ acrValues = acrValues === VOID ? null : acrValues;
886
+ display = display === VOID ? null : display;
887
+ additionalParameters = additionalParameters === VOID ? emptyMap() : additionalParameters;
888
+ this.clientId = clientId;
889
+ this.redirectUri = redirectUri;
890
+ this.responseType = responseType;
891
+ this.scope = scope;
892
+ this.state = state;
893
+ this.codeChallenge = codeChallenge;
894
+ this.codeChallengeMethod = codeChallengeMethod;
895
+ this.nonce = nonce;
896
+ this.responseMode = responseMode;
897
+ this.requestUri = requestUri;
898
+ this.request = request;
899
+ this.resource = resource;
900
+ this.issuerState = issuerState;
901
+ this.dpopJkt = dpopJkt;
902
+ this.prompt = prompt;
903
+ this.loginHint = loginHint;
904
+ this.maxAge = maxAge;
905
+ this.uiLocales = uiLocales;
906
+ this.idTokenHint = idTokenHint;
907
+ this.acrValues = acrValues;
908
+ this.display = display;
909
+ this.additionalParameters = additionalParameters;
910
+ }
911
+ z5l() {
912
+ return this.clientId;
913
+ }
914
+ a5m() {
915
+ return this.redirectUri;
916
+ }
917
+ b5m() {
918
+ return this.responseType;
919
+ }
920
+ c5m() {
921
+ return this.scope;
922
+ }
923
+ f2v() {
924
+ return this.state;
925
+ }
926
+ d5m() {
927
+ return this.codeChallenge;
928
+ }
929
+ e5m() {
930
+ return this.codeChallengeMethod;
931
+ }
932
+ u5j() {
933
+ return this.nonce;
934
+ }
935
+ f5m() {
936
+ return this.responseMode;
937
+ }
938
+ g5m() {
939
+ return this.requestUri;
940
+ }
941
+ l57() {
942
+ return this.request;
943
+ }
944
+ h5m() {
945
+ return this.resource;
946
+ }
947
+ i5m() {
948
+ return this.issuerState;
949
+ }
950
+ j5m() {
951
+ return this.dpopJkt;
952
+ }
953
+ k5m() {
954
+ return this.prompt;
955
+ }
956
+ l5m() {
957
+ return this.loginHint;
958
+ }
959
+ m5m() {
960
+ return this.maxAge;
961
+ }
962
+ n5m() {
963
+ return this.uiLocales;
964
+ }
965
+ o5m() {
966
+ return this.idTokenHint;
967
+ }
968
+ p5m() {
969
+ return this.acrValues;
970
+ }
971
+ q5m() {
972
+ return this.display;
973
+ }
974
+ r5m() {
975
+ return this.additionalParameters;
976
+ }
977
+ nk() {
978
+ return this.clientId;
979
+ }
980
+ ok() {
981
+ return this.redirectUri;
982
+ }
983
+ tr() {
984
+ return this.responseType;
985
+ }
986
+ e2p() {
987
+ return this.scope;
988
+ }
989
+ f2p() {
990
+ return this.state;
991
+ }
992
+ g2p() {
993
+ return this.codeChallenge;
994
+ }
995
+ h2p() {
996
+ return this.codeChallengeMethod;
997
+ }
998
+ t2t() {
999
+ return this.nonce;
1000
+ }
1001
+ t2u() {
1002
+ return this.responseMode;
1003
+ }
1004
+ g43() {
1005
+ return this.requestUri;
1006
+ }
1007
+ h43() {
1008
+ return this.request;
1009
+ }
1010
+ y48() {
1011
+ return this.resource;
1012
+ }
1013
+ z48() {
1014
+ return this.issuerState;
1015
+ }
1016
+ a49() {
1017
+ return this.dpopJkt;
1018
+ }
1019
+ b49() {
1020
+ return this.prompt;
1021
+ }
1022
+ c49() {
1023
+ return this.loginHint;
1024
+ }
1025
+ d49() {
1026
+ return this.maxAge;
1027
+ }
1028
+ e49() {
1029
+ return this.uiLocales;
1030
+ }
1031
+ f49() {
1032
+ return this.idTokenHint;
1033
+ }
1034
+ b4c() {
1035
+ return this.acrValues;
1036
+ }
1037
+ k4l() {
1038
+ return this.display;
1039
+ }
1040
+ l4l() {
1041
+ return this.additionalParameters;
1042
+ }
1043
+ s5m(clientId, redirectUri, responseType, scope, state, codeChallenge, codeChallengeMethod, nonce, responseMode, requestUri, request, resource, issuerState, dpopJkt, prompt, loginHint, maxAge, uiLocales, idTokenHint, acrValues, display, additionalParameters) {
1044
+ return new AuthorizationRequest(clientId, redirectUri, responseType, scope, state, codeChallenge, codeChallengeMethod, nonce, responseMode, requestUri, request, resource, issuerState, dpopJkt, prompt, loginHint, maxAge, uiLocales, idTokenHint, acrValues, display, additionalParameters);
1045
+ }
1046
+ copy(clientId, redirectUri, responseType, scope, state, codeChallenge, codeChallengeMethod, nonce, responseMode, requestUri, request, resource, issuerState, dpopJkt, prompt, loginHint, maxAge, uiLocales, idTokenHint, acrValues, display, additionalParameters, $super) {
1047
+ clientId = clientId === VOID ? this.clientId : clientId;
1048
+ redirectUri = redirectUri === VOID ? this.redirectUri : redirectUri;
1049
+ responseType = responseType === VOID ? this.responseType : responseType;
1050
+ scope = scope === VOID ? this.scope : scope;
1051
+ state = state === VOID ? this.state : state;
1052
+ codeChallenge = codeChallenge === VOID ? this.codeChallenge : codeChallenge;
1053
+ codeChallengeMethod = codeChallengeMethod === VOID ? this.codeChallengeMethod : codeChallengeMethod;
1054
+ nonce = nonce === VOID ? this.nonce : nonce;
1055
+ responseMode = responseMode === VOID ? this.responseMode : responseMode;
1056
+ requestUri = requestUri === VOID ? this.requestUri : requestUri;
1057
+ request = request === VOID ? this.request : request;
1058
+ resource = resource === VOID ? this.resource : resource;
1059
+ issuerState = issuerState === VOID ? this.issuerState : issuerState;
1060
+ dpopJkt = dpopJkt === VOID ? this.dpopJkt : dpopJkt;
1061
+ prompt = prompt === VOID ? this.prompt : prompt;
1062
+ loginHint = loginHint === VOID ? this.loginHint : loginHint;
1063
+ maxAge = maxAge === VOID ? this.maxAge : maxAge;
1064
+ uiLocales = uiLocales === VOID ? this.uiLocales : uiLocales;
1065
+ idTokenHint = idTokenHint === VOID ? this.idTokenHint : idTokenHint;
1066
+ acrValues = acrValues === VOID ? this.acrValues : acrValues;
1067
+ display = display === VOID ? this.display : display;
1068
+ additionalParameters = additionalParameters === VOID ? this.additionalParameters : additionalParameters;
1069
+ return $super === VOID ? this.s5m(clientId, redirectUri, responseType, scope, state, codeChallenge, codeChallengeMethod, nonce, responseMode, requestUri, request, resource, issuerState, dpopJkt, prompt, loginHint, maxAge, uiLocales, idTokenHint, acrValues, display, additionalParameters) : $super.s5m.call(this, clientId, redirectUri, responseType, scope, state, codeChallenge, codeChallengeMethod, nonce, responseMode, requestUri, request, resource, issuerState, dpopJkt, prompt, loginHint, maxAge, uiLocales, idTokenHint, acrValues, display, additionalParameters);
1070
+ }
1071
+ toString() {
1072
+ return 'AuthorizationRequest(clientId=' + this.clientId + ', redirectUri=' + this.redirectUri + ', responseType=' + this.responseType + ', scope=' + this.scope + ', state=' + this.state + ', codeChallenge=' + this.codeChallenge + ', codeChallengeMethod=' + this.codeChallengeMethod + ', nonce=' + this.nonce + ', responseMode=' + this.responseMode + ', requestUri=' + this.requestUri + ', request=' + this.request + ', resource=' + this.resource + ', issuerState=' + this.issuerState + ', dpopJkt=' + this.dpopJkt + ', prompt=' + this.prompt + ', loginHint=' + this.loginHint + ', maxAge=' + toString(this.maxAge) + ', uiLocales=' + this.uiLocales + ', idTokenHint=' + this.idTokenHint + ', acrValues=' + this.acrValues + ', display=' + this.display + ', additionalParameters=' + toString_0(this.additionalParameters) + ')';
1073
+ }
1074
+ hashCode() {
1075
+ var result = getStringHashCode(this.clientId);
1076
+ result = imul(result, 31) + (this.redirectUri == null ? 0 : getStringHashCode(this.redirectUri)) | 0;
1077
+ result = imul(result, 31) + getStringHashCode(this.responseType) | 0;
1078
+ result = imul(result, 31) + (this.scope == null ? 0 : getStringHashCode(this.scope)) | 0;
1079
+ result = imul(result, 31) + (this.state == null ? 0 : getStringHashCode(this.state)) | 0;
1080
+ result = imul(result, 31) + (this.codeChallenge == null ? 0 : getStringHashCode(this.codeChallenge)) | 0;
1081
+ result = imul(result, 31) + (this.codeChallengeMethod == null ? 0 : getStringHashCode(this.codeChallengeMethod)) | 0;
1082
+ result = imul(result, 31) + (this.nonce == null ? 0 : getStringHashCode(this.nonce)) | 0;
1083
+ result = imul(result, 31) + (this.responseMode == null ? 0 : getStringHashCode(this.responseMode)) | 0;
1084
+ result = imul(result, 31) + (this.requestUri == null ? 0 : getStringHashCode(this.requestUri)) | 0;
1085
+ result = imul(result, 31) + (this.request == null ? 0 : getStringHashCode(this.request)) | 0;
1086
+ result = imul(result, 31) + (this.resource == null ? 0 : getStringHashCode(this.resource)) | 0;
1087
+ result = imul(result, 31) + (this.issuerState == null ? 0 : getStringHashCode(this.issuerState)) | 0;
1088
+ result = imul(result, 31) + (this.dpopJkt == null ? 0 : getStringHashCode(this.dpopJkt)) | 0;
1089
+ result = imul(result, 31) + (this.prompt == null ? 0 : getStringHashCode(this.prompt)) | 0;
1090
+ result = imul(result, 31) + (this.loginHint == null ? 0 : getStringHashCode(this.loginHint)) | 0;
1091
+ result = imul(result, 31) + (this.maxAge == null ? 0 : getBigIntHashCode(this.maxAge)) | 0;
1092
+ result = imul(result, 31) + (this.uiLocales == null ? 0 : getStringHashCode(this.uiLocales)) | 0;
1093
+ result = imul(result, 31) + (this.idTokenHint == null ? 0 : getStringHashCode(this.idTokenHint)) | 0;
1094
+ result = imul(result, 31) + (this.acrValues == null ? 0 : getStringHashCode(this.acrValues)) | 0;
1095
+ result = imul(result, 31) + (this.display == null ? 0 : getStringHashCode(this.display)) | 0;
1096
+ result = imul(result, 31) + hashCode(this.additionalParameters) | 0;
1097
+ return result;
1098
+ }
1099
+ equals(other) {
1100
+ if (this === other)
1101
+ return true;
1102
+ if (!(other instanceof AuthorizationRequest))
1103
+ return false;
1104
+ if (!(this.clientId === other.clientId))
1105
+ return false;
1106
+ if (!(this.redirectUri == other.redirectUri))
1107
+ return false;
1108
+ if (!(this.responseType === other.responseType))
1109
+ return false;
1110
+ if (!(this.scope == other.scope))
1111
+ return false;
1112
+ if (!(this.state == other.state))
1113
+ return false;
1114
+ if (!(this.codeChallenge == other.codeChallenge))
1115
+ return false;
1116
+ if (!(this.codeChallengeMethod == other.codeChallengeMethod))
1117
+ return false;
1118
+ if (!(this.nonce == other.nonce))
1119
+ return false;
1120
+ if (!(this.responseMode == other.responseMode))
1121
+ return false;
1122
+ if (!(this.requestUri == other.requestUri))
1123
+ return false;
1124
+ if (!(this.request == other.request))
1125
+ return false;
1126
+ if (!(this.resource == other.resource))
1127
+ return false;
1128
+ if (!(this.issuerState == other.issuerState))
1129
+ return false;
1130
+ if (!(this.dpopJkt == other.dpopJkt))
1131
+ return false;
1132
+ if (!(this.prompt == other.prompt))
1133
+ return false;
1134
+ if (!(this.loginHint == other.loginHint))
1135
+ return false;
1136
+ if (!(this.maxAge == other.maxAge))
1137
+ return false;
1138
+ if (!(this.uiLocales == other.uiLocales))
1139
+ return false;
1140
+ if (!(this.idTokenHint == other.idTokenHint))
1141
+ return false;
1142
+ if (!(this.acrValues == other.acrValues))
1143
+ return false;
1144
+ if (!(this.display == other.display))
1145
+ return false;
1146
+ if (!equals(this.additionalParameters, other.additionalParameters))
1147
+ return false;
1148
+ return true;
1149
+ }
1150
+ }
1151
+ class AuthorizationRequestSerializer {
1152
+ constructor() {
1153
+ AuthorizationRequestSerializer_instance = this;
1154
+ this.t5m_1 = buildClassSerialDescriptor('AuthorizationRequest', []);
1155
+ this.u5m_1 = setOf(['client_id', 'redirect_uri', 'response_type', 'scope', 'state', 'code_challenge', 'code_challenge_method', 'nonce', 'response_mode', 'request_uri', 'request', 'resource', 'issuer_state', 'dpop_jkt', 'prompt', 'login_hint', 'max_age', 'ui_locales', 'id_token_hint', 'acr_values', 'display']);
1156
+ }
1157
+ av() {
1158
+ return this.t5m_1;
1159
+ }
1160
+ v5m(encoder, value) {
1161
+ // Inline function 'kotlin.require' call
1162
+ if (!isInterface(encoder, JsonEncoder)) {
1163
+ var message = 'AuthorizationRequestSerializer only works with JSON format';
1164
+ throw IllegalArgumentException.y1(toString_0(message));
1165
+ }
1166
+ // Inline function 'kotlinx.serialization.json.buildJsonObject' call
1167
+ var builder = new JsonObjectBuilder();
1168
+ builder.l1l('client_id', JsonPrimitive(value.clientId));
1169
+ var tmp0_safe_receiver = value.redirectUri;
1170
+ if (tmp0_safe_receiver == null)
1171
+ null;
1172
+ else {
1173
+ // Inline function 'kotlin.let' call
1174
+ builder.l1l('redirect_uri', JsonPrimitive(tmp0_safe_receiver));
1175
+ }
1176
+ builder.l1l('response_type', JsonPrimitive(value.responseType));
1177
+ var tmp1_safe_receiver = value.scope;
1178
+ if (tmp1_safe_receiver == null)
1179
+ null;
1180
+ else {
1181
+ // Inline function 'kotlin.let' call
1182
+ builder.l1l('scope', JsonPrimitive(tmp1_safe_receiver));
1183
+ }
1184
+ var tmp2_safe_receiver = value.state;
1185
+ if (tmp2_safe_receiver == null)
1186
+ null;
1187
+ else {
1188
+ // Inline function 'kotlin.let' call
1189
+ builder.l1l('state', JsonPrimitive(tmp2_safe_receiver));
1190
+ }
1191
+ var tmp3_safe_receiver = value.codeChallenge;
1192
+ if (tmp3_safe_receiver == null)
1193
+ null;
1194
+ else {
1195
+ // Inline function 'kotlin.let' call
1196
+ builder.l1l('code_challenge', JsonPrimitive(tmp3_safe_receiver));
1197
+ }
1198
+ var tmp4_safe_receiver = value.codeChallengeMethod;
1199
+ if (tmp4_safe_receiver == null)
1200
+ null;
1201
+ else {
1202
+ // Inline function 'kotlin.let' call
1203
+ builder.l1l('code_challenge_method', JsonPrimitive(tmp4_safe_receiver));
1204
+ }
1205
+ var tmp5_safe_receiver = value.nonce;
1206
+ if (tmp5_safe_receiver == null)
1207
+ null;
1208
+ else {
1209
+ // Inline function 'kotlin.let' call
1210
+ builder.l1l('nonce', JsonPrimitive(tmp5_safe_receiver));
1211
+ }
1212
+ var tmp6_safe_receiver = value.responseMode;
1213
+ if (tmp6_safe_receiver == null)
1214
+ null;
1215
+ else {
1216
+ // Inline function 'kotlin.let' call
1217
+ builder.l1l('response_mode', JsonPrimitive(tmp6_safe_receiver));
1218
+ }
1219
+ var tmp7_safe_receiver = value.requestUri;
1220
+ if (tmp7_safe_receiver == null)
1221
+ null;
1222
+ else {
1223
+ // Inline function 'kotlin.let' call
1224
+ builder.l1l('request_uri', JsonPrimitive(tmp7_safe_receiver));
1225
+ }
1226
+ var tmp8_safe_receiver = value.request;
1227
+ if (tmp8_safe_receiver == null)
1228
+ null;
1229
+ else {
1230
+ // Inline function 'kotlin.let' call
1231
+ builder.l1l('request', JsonPrimitive(tmp8_safe_receiver));
1232
+ }
1233
+ var tmp9_safe_receiver = value.resource;
1234
+ if (tmp9_safe_receiver == null)
1235
+ null;
1236
+ else {
1237
+ // Inline function 'kotlin.let' call
1238
+ builder.l1l('resource', JsonPrimitive(tmp9_safe_receiver));
1239
+ }
1240
+ var tmp10_safe_receiver = value.issuerState;
1241
+ if (tmp10_safe_receiver == null)
1242
+ null;
1243
+ else {
1244
+ // Inline function 'kotlin.let' call
1245
+ builder.l1l('issuer_state', JsonPrimitive(tmp10_safe_receiver));
1246
+ }
1247
+ var tmp11_safe_receiver = value.dpopJkt;
1248
+ if (tmp11_safe_receiver == null)
1249
+ null;
1250
+ else {
1251
+ // Inline function 'kotlin.let' call
1252
+ builder.l1l('dpop_jkt', JsonPrimitive(tmp11_safe_receiver));
1253
+ }
1254
+ var tmp12_safe_receiver = value.prompt;
1255
+ if (tmp12_safe_receiver == null)
1256
+ null;
1257
+ else {
1258
+ // Inline function 'kotlin.let' call
1259
+ builder.l1l('prompt', JsonPrimitive(tmp12_safe_receiver));
1260
+ }
1261
+ var tmp13_safe_receiver = value.loginHint;
1262
+ if (tmp13_safe_receiver == null)
1263
+ null;
1264
+ else {
1265
+ // Inline function 'kotlin.let' call
1266
+ builder.l1l('login_hint', JsonPrimitive(tmp13_safe_receiver));
1267
+ }
1268
+ var tmp14_safe_receiver = value.maxAge;
1269
+ if (tmp14_safe_receiver == null)
1270
+ null;
1271
+ else {
1272
+ // Inline function 'kotlin.let' call
1273
+ builder.l1l('max_age', JsonPrimitive_0(tmp14_safe_receiver));
1274
+ }
1275
+ var tmp15_safe_receiver = value.uiLocales;
1276
+ if (tmp15_safe_receiver == null)
1277
+ null;
1278
+ else {
1279
+ // Inline function 'kotlin.let' call
1280
+ builder.l1l('ui_locales', JsonPrimitive(tmp15_safe_receiver));
1281
+ }
1282
+ var tmp16_safe_receiver = value.idTokenHint;
1283
+ if (tmp16_safe_receiver == null)
1284
+ null;
1285
+ else {
1286
+ // Inline function 'kotlin.let' call
1287
+ builder.l1l('id_token_hint', JsonPrimitive(tmp16_safe_receiver));
1288
+ }
1289
+ var tmp17_safe_receiver = value.acrValues;
1290
+ if (tmp17_safe_receiver == null)
1291
+ null;
1292
+ else {
1293
+ // Inline function 'kotlin.let' call
1294
+ builder.l1l('acr_values', JsonPrimitive(tmp17_safe_receiver));
1295
+ }
1296
+ var tmp18_safe_receiver = value.display;
1297
+ if (tmp18_safe_receiver == null)
1298
+ null;
1299
+ else {
1300
+ // Inline function 'kotlin.let' call
1301
+ builder.l1l('display', JsonPrimitive(tmp18_safe_receiver));
1302
+ }
1303
+ // Inline function 'kotlin.collections.forEach' call
1304
+ // Inline function 'kotlin.collections.iterator' call
1305
+ var _iterator__ex2g4s = value.additionalParameters.x2().j1();
1306
+ while (_iterator__ex2g4s.k1()) {
1307
+ var element = _iterator__ex2g4s.l1();
1308
+ // Inline function 'kotlin.collections.component1' call
1309
+ var key = element.h4();
1310
+ // Inline function 'kotlin.collections.component2' call
1311
+ var jsonValue = element.i4();
1312
+ builder.l1l(key, jsonValue);
1313
+ }
1314
+ var jsonObject = builder.a1k();
1315
+ encoder.m1m(jsonObject);
1316
+ }
1317
+ nv(encoder, value) {
1318
+ return this.v5m(encoder, value instanceof AuthorizationRequest ? value : THROW_CCE());
1319
+ }
1320
+ ov(decoder) {
1321
+ // Inline function 'kotlin.require' call
1322
+ if (!isInterface(decoder, JsonDecoder)) {
1323
+ var message = 'AuthorizationRequestSerializer only works with JSON format';
1324
+ throw IllegalArgumentException.y1(toString_0(message));
1325
+ }
1326
+ var jsonObject = get_jsonObject(decoder.t1k());
1327
+ // Inline function 'kotlin.collections.filterKeys' call
1328
+ var result = LinkedHashMap.v5();
1329
+ // Inline function 'kotlin.collections.iterator' call
1330
+ var _iterator__ex2g4s = jsonObject.x2().j1();
1331
+ while (_iterator__ex2g4s.k1()) {
1332
+ var entry = _iterator__ex2g4s.l1();
1333
+ var it = entry.h4();
1334
+ if (!AuthorizationRequestSerializer_getInstance().u5m_1.f3(it)) {
1335
+ result.r4(entry.h4(), entry.i4());
1336
+ }
1337
+ }
1338
+ var additionalParameters = result;
1339
+ var tmp0_safe_receiver = jsonObject.uh('client_id');
1340
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : get_jsonPrimitive(tmp0_safe_receiver);
1341
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.y1k();
1342
+ var tmp;
1343
+ if (tmp2_elvis_lhs == null) {
1344
+ throw IllegalArgumentException.y1('client_id is required');
1345
+ } else {
1346
+ tmp = tmp2_elvis_lhs;
1347
+ }
1348
+ var tmp_0 = tmp;
1349
+ var tmp3_safe_receiver = jsonObject.uh('redirect_uri');
1350
+ var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : get_jsonPrimitive(tmp3_safe_receiver);
1351
+ var tmp_1 = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.y1k();
1352
+ var tmp5_safe_receiver = jsonObject.uh('response_type');
1353
+ var tmp6_safe_receiver = tmp5_safe_receiver == null ? null : get_jsonPrimitive(tmp5_safe_receiver);
1354
+ var tmp7_elvis_lhs = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.y1k();
1355
+ var tmp_2 = tmp7_elvis_lhs == null ? 'code' : tmp7_elvis_lhs;
1356
+ var tmp8_safe_receiver = jsonObject.uh('scope');
1357
+ var tmp9_safe_receiver = tmp8_safe_receiver == null ? null : get_jsonPrimitive(tmp8_safe_receiver);
1358
+ var tmp_3 = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.y1k();
1359
+ var tmp10_safe_receiver = jsonObject.uh('state');
1360
+ var tmp11_safe_receiver = tmp10_safe_receiver == null ? null : get_jsonPrimitive(tmp10_safe_receiver);
1361
+ var tmp_4 = tmp11_safe_receiver == null ? null : tmp11_safe_receiver.y1k();
1362
+ var tmp12_safe_receiver = jsonObject.uh('code_challenge');
1363
+ var tmp13_safe_receiver = tmp12_safe_receiver == null ? null : get_jsonPrimitive(tmp12_safe_receiver);
1364
+ var tmp_5 = tmp13_safe_receiver == null ? null : tmp13_safe_receiver.y1k();
1365
+ var tmp14_safe_receiver = jsonObject.uh('code_challenge_method');
1366
+ var tmp15_safe_receiver = tmp14_safe_receiver == null ? null : get_jsonPrimitive(tmp14_safe_receiver);
1367
+ var tmp_6 = tmp15_safe_receiver == null ? null : tmp15_safe_receiver.y1k();
1368
+ var tmp16_safe_receiver = jsonObject.uh('nonce');
1369
+ var tmp17_safe_receiver = tmp16_safe_receiver == null ? null : get_jsonPrimitive(tmp16_safe_receiver);
1370
+ var tmp_7 = tmp17_safe_receiver == null ? null : tmp17_safe_receiver.y1k();
1371
+ var tmp18_safe_receiver = jsonObject.uh('response_mode');
1372
+ var tmp19_safe_receiver = tmp18_safe_receiver == null ? null : get_jsonPrimitive(tmp18_safe_receiver);
1373
+ var tmp_8 = tmp19_safe_receiver == null ? null : tmp19_safe_receiver.y1k();
1374
+ var tmp20_safe_receiver = jsonObject.uh('request_uri');
1375
+ var tmp21_safe_receiver = tmp20_safe_receiver == null ? null : get_jsonPrimitive(tmp20_safe_receiver);
1376
+ var tmp_9 = tmp21_safe_receiver == null ? null : tmp21_safe_receiver.y1k();
1377
+ var tmp22_safe_receiver = jsonObject.uh('request');
1378
+ var tmp23_safe_receiver = tmp22_safe_receiver == null ? null : get_jsonPrimitive(tmp22_safe_receiver);
1379
+ var tmp_10 = tmp23_safe_receiver == null ? null : tmp23_safe_receiver.y1k();
1380
+ var tmp24_safe_receiver = jsonObject.uh('resource');
1381
+ var tmp25_safe_receiver = tmp24_safe_receiver == null ? null : get_jsonPrimitive(tmp24_safe_receiver);
1382
+ var tmp_11 = tmp25_safe_receiver == null ? null : tmp25_safe_receiver.y1k();
1383
+ var tmp26_safe_receiver = jsonObject.uh('issuer_state');
1384
+ var tmp27_safe_receiver = tmp26_safe_receiver == null ? null : get_jsonPrimitive(tmp26_safe_receiver);
1385
+ var tmp_12 = tmp27_safe_receiver == null ? null : tmp27_safe_receiver.y1k();
1386
+ var tmp28_safe_receiver = jsonObject.uh('dpop_jkt');
1387
+ var tmp29_safe_receiver = tmp28_safe_receiver == null ? null : get_jsonPrimitive(tmp28_safe_receiver);
1388
+ var tmp_13 = tmp29_safe_receiver == null ? null : tmp29_safe_receiver.y1k();
1389
+ var tmp30_safe_receiver = jsonObject.uh('prompt');
1390
+ var tmp31_safe_receiver = tmp30_safe_receiver == null ? null : get_jsonPrimitive(tmp30_safe_receiver);
1391
+ var tmp_14 = tmp31_safe_receiver == null ? null : tmp31_safe_receiver.y1k();
1392
+ var tmp32_safe_receiver = jsonObject.uh('login_hint');
1393
+ var tmp33_safe_receiver = tmp32_safe_receiver == null ? null : get_jsonPrimitive(tmp32_safe_receiver);
1394
+ var tmp_15 = tmp33_safe_receiver == null ? null : tmp33_safe_receiver.y1k();
1395
+ var tmp34_safe_receiver = jsonObject.uh('max_age');
1396
+ var tmp35_safe_receiver = tmp34_safe_receiver == null ? null : get_jsonPrimitive(tmp34_safe_receiver);
1397
+ var tmp36_safe_receiver = tmp35_safe_receiver == null ? null : tmp35_safe_receiver.y1k();
1398
+ var tmp_16 = tmp36_safe_receiver == null ? null : toLongOrNull(tmp36_safe_receiver);
1399
+ var tmp37_safe_receiver = jsonObject.uh('ui_locales');
1400
+ var tmp38_safe_receiver = tmp37_safe_receiver == null ? null : get_jsonPrimitive(tmp37_safe_receiver);
1401
+ var tmp_17 = tmp38_safe_receiver == null ? null : tmp38_safe_receiver.y1k();
1402
+ var tmp39_safe_receiver = jsonObject.uh('id_token_hint');
1403
+ var tmp40_safe_receiver = tmp39_safe_receiver == null ? null : get_jsonPrimitive(tmp39_safe_receiver);
1404
+ var tmp_18 = tmp40_safe_receiver == null ? null : tmp40_safe_receiver.y1k();
1405
+ var tmp41_safe_receiver = jsonObject.uh('acr_values');
1406
+ var tmp42_safe_receiver = tmp41_safe_receiver == null ? null : get_jsonPrimitive(tmp41_safe_receiver);
1407
+ var tmp_19 = tmp42_safe_receiver == null ? null : tmp42_safe_receiver.y1k();
1408
+ var tmp43_safe_receiver = jsonObject.uh('display');
1409
+ var tmp44_safe_receiver = tmp43_safe_receiver == null ? null : get_jsonPrimitive(tmp43_safe_receiver);
1410
+ return new AuthorizationRequest(tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, tmp_5, tmp_6, tmp_7, tmp_8, tmp_9, tmp_10, tmp_11, tmp_12, tmp_13, tmp_14, tmp_15, tmp_16, tmp_17, tmp_18, tmp_19, tmp44_safe_receiver == null ? null : tmp44_safe_receiver.y1k(), additionalParameters);
1411
+ }
1412
+ }
1413
+ class Companion_8 {}
1414
+ class AuthorizationResponse {
1415
+ constructor(code, state, additionalParameters) {
1416
+ state = state === VOID ? null : state;
1417
+ additionalParameters = additionalParameters === VOID ? emptyMap() : additionalParameters;
1418
+ this.code = code;
1419
+ this.state = state;
1420
+ this.additionalParameters = additionalParameters;
1421
+ }
1422
+ b2m() {
1423
+ return this.code;
1424
+ }
1425
+ f2v() {
1426
+ return this.state;
1427
+ }
1428
+ r5m() {
1429
+ return this.additionalParameters;
1430
+ }
1431
+ nk() {
1432
+ return this.code;
1433
+ }
1434
+ ok() {
1435
+ return this.state;
1436
+ }
1437
+ tr() {
1438
+ return this.additionalParameters;
1439
+ }
1440
+ w5m(code, state, additionalParameters) {
1441
+ return new AuthorizationResponse(code, state, additionalParameters);
1442
+ }
1443
+ copy(code, state, additionalParameters, $super) {
1444
+ code = code === VOID ? this.code : code;
1445
+ state = state === VOID ? this.state : state;
1446
+ additionalParameters = additionalParameters === VOID ? this.additionalParameters : additionalParameters;
1447
+ return $super === VOID ? this.w5m(code, state, additionalParameters) : $super.w5m.call(this, code, state, additionalParameters);
1448
+ }
1449
+ toString() {
1450
+ return 'AuthorizationResponse(code=' + this.code + ', state=' + this.state + ', additionalParameters=' + toString_0(this.additionalParameters) + ')';
1451
+ }
1452
+ hashCode() {
1453
+ var result = getStringHashCode(this.code);
1454
+ result = imul(result, 31) + (this.state == null ? 0 : getStringHashCode(this.state)) | 0;
1455
+ result = imul(result, 31) + hashCode(this.additionalParameters) | 0;
1456
+ return result;
1457
+ }
1458
+ equals(other) {
1459
+ if (this === other)
1460
+ return true;
1461
+ if (!(other instanceof AuthorizationResponse))
1462
+ return false;
1463
+ if (!(this.code === other.code))
1464
+ return false;
1465
+ if (!(this.state == other.state))
1466
+ return false;
1467
+ if (!equals(this.additionalParameters, other.additionalParameters))
1468
+ return false;
1469
+ return true;
1470
+ }
1471
+ }
1472
+ class AuthorizationResponseSerializer {
1473
+ constructor() {
1474
+ AuthorizationResponseSerializer_instance = this;
1475
+ this.x5m_1 = buildClassSerialDescriptor('AuthorizationResponse', []);
1476
+ this.y5m_1 = setOf(['code', 'state']);
1477
+ }
1478
+ av() {
1479
+ return this.x5m_1;
1480
+ }
1481
+ z5m(encoder, value) {
1482
+ // Inline function 'kotlin.require' call
1483
+ // Inline function 'kotlin.require' call
1484
+ if (!isInterface(encoder, JsonEncoder)) {
1485
+ var message = 'Failed requirement.';
1486
+ throw IllegalArgumentException.y1(toString_0(message));
1487
+ }
1488
+ // Inline function 'kotlinx.serialization.json.buildJsonObject' call
1489
+ var builder = new JsonObjectBuilder();
1490
+ builder.l1l('code', JsonPrimitive(value.code));
1491
+ var tmp0_safe_receiver = value.state;
1492
+ if (tmp0_safe_receiver == null)
1493
+ null;
1494
+ else {
1495
+ // Inline function 'kotlin.let' call
1496
+ builder.l1l('state', JsonPrimitive(tmp0_safe_receiver));
1497
+ }
1498
+ // Inline function 'kotlin.collections.forEach' call
1499
+ // Inline function 'kotlin.collections.iterator' call
1500
+ var _iterator__ex2g4s = value.additionalParameters.x2().j1();
1501
+ while (_iterator__ex2g4s.k1()) {
1502
+ var element = _iterator__ex2g4s.l1();
1503
+ // Inline function 'kotlin.collections.component1' call
1504
+ var key = element.h4();
1505
+ // Inline function 'kotlin.collections.component2' call
1506
+ var jsonValue = element.i4();
1507
+ builder.l1l(key, jsonValue);
1508
+ }
1509
+ var jsonObject = builder.a1k();
1510
+ encoder.m1m(jsonObject);
1511
+ }
1512
+ nv(encoder, value) {
1513
+ return this.z5m(encoder, value instanceof AuthorizationResponse ? value : THROW_CCE());
1514
+ }
1515
+ ov(decoder) {
1516
+ // Inline function 'kotlin.require' call
1517
+ // Inline function 'kotlin.require' call
1518
+ if (!isInterface(decoder, JsonDecoder)) {
1519
+ var message = 'Failed requirement.';
1520
+ throw IllegalArgumentException.y1(toString_0(message));
1521
+ }
1522
+ var jsonObject = get_jsonObject(decoder.t1k());
1523
+ // Inline function 'kotlin.collections.filterKeys' call
1524
+ var result = LinkedHashMap.v5();
1525
+ // Inline function 'kotlin.collections.iterator' call
1526
+ var _iterator__ex2g4s = jsonObject.x2().j1();
1527
+ while (_iterator__ex2g4s.k1()) {
1528
+ var entry = _iterator__ex2g4s.l1();
1529
+ var it = entry.h4();
1530
+ if (!AuthorizationResponseSerializer_getInstance().y5m_1.f3(it)) {
1531
+ result.r4(entry.h4(), entry.i4());
1532
+ }
1533
+ }
1534
+ var additionalParameters = result;
1535
+ var tmp0_safe_receiver = jsonObject.uh('code');
1536
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : get_jsonPrimitive(tmp0_safe_receiver);
1537
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.y1k();
1538
+ var tmp;
1539
+ if (tmp2_elvis_lhs == null) {
1540
+ throw IllegalArgumentException.y1('code is required');
1541
+ } else {
1542
+ tmp = tmp2_elvis_lhs;
1543
+ }
1544
+ var tmp_0 = tmp;
1545
+ var tmp3_safe_receiver = jsonObject.uh('state');
1546
+ var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : get_jsonPrimitive(tmp3_safe_receiver);
1547
+ return new AuthorizationResponse(tmp_0, tmp4_safe_receiver == null ? null : tmp4_safe_receiver.y1k(), additionalParameters);
1548
+ }
1549
+ }
1550
+ class IdTokenService {}
1551
+ function *validateIdToken$suspendBridge(args, $completion) {
1552
+ }
1553
+ //endregion
1554
+ function JarmConfig$Companion$$childSerializers$_anonymous__rzy4x6() {
1555
+ return Companion_getInstance_0().z1k();
1556
+ }
1557
+ var Companion_instance;
1558
+ function Companion_getInstance() {
1559
+ if (Companion_instance === VOID)
1560
+ new Companion();
1561
+ return Companion_instance;
1562
+ }
1563
+ var $serializer_instance;
1564
+ function $serializer_getInstance() {
1565
+ if ($serializer_instance === VOID)
1566
+ new $serializer();
1567
+ return $serializer_instance;
1568
+ }
1569
+ function _get_$cachedSerializer__te6jhj($this) {
1570
+ return $this.o5k_1.i4();
1571
+ }
1572
+ function JarmMode$Companion$_anonymous__6lmqca() {
1573
+ var tmp = values();
1574
+ // Inline function 'kotlin.arrayOf' call
1575
+ // Inline function 'kotlin.js.unsafeCast' call
1576
+ // Inline function 'kotlin.js.asDynamic' call
1577
+ var tmp_0 = ['signed', 'encrypted', 'signed_encrypted'];
1578
+ // Inline function 'kotlin.arrayOf' call
1579
+ // Inline function 'kotlin.js.unsafeCast' call
1580
+ // Inline function 'kotlin.js.asDynamic' call
1581
+ var tmp$ret$3 = [null, null, null];
1582
+ return createAnnotatedEnumSerializer('com.sphereon.oauth2.common.jarm.JarmMode', tmp, tmp_0, tmp$ret$3, null);
1583
+ }
1584
+ var JarmMode_SIGNED_instance;
1585
+ var JarmMode_ENCRYPTED_instance;
1586
+ var JarmMode_SIGNED_ENCRYPTED_instance;
1587
+ function values() {
1588
+ return [JarmMode_SIGNED_getInstance(), JarmMode_ENCRYPTED_getInstance(), JarmMode_SIGNED_ENCRYPTED_getInstance()];
1589
+ }
1590
+ var Companion_instance_0;
1591
+ function Companion_getInstance_0() {
1592
+ JarmMode_initEntries();
1593
+ if (Companion_instance_0 === VOID)
1594
+ new Companion_0();
1595
+ return Companion_instance_0;
1596
+ }
1597
+ var JarmMode_entriesInitialized;
1598
+ function JarmMode_initEntries() {
1599
+ if (JarmMode_entriesInitialized)
1600
+ return Unit_instance;
1601
+ JarmMode_entriesInitialized = true;
1602
+ JarmMode_SIGNED_instance = new JarmMode('SIGNED', 0);
1603
+ JarmMode_ENCRYPTED_instance = new JarmMode('ENCRYPTED', 1);
1604
+ JarmMode_SIGNED_ENCRYPTED_instance = new JarmMode('SIGNED_ENCRYPTED', 2);
1605
+ Companion_getInstance_0();
1606
+ }
1607
+ function JarmMode_SIGNED_getInstance() {
1608
+ JarmMode_initEntries();
1609
+ return JarmMode_SIGNED_instance;
1610
+ }
1611
+ function JarmMode_ENCRYPTED_getInstance() {
1612
+ JarmMode_initEntries();
1613
+ return JarmMode_ENCRYPTED_instance;
1614
+ }
1615
+ function JarmMode_SIGNED_ENCRYPTED_getInstance() {
1616
+ JarmMode_initEntries();
1617
+ return JarmMode_SIGNED_ENCRYPTED_instance;
1618
+ }
1619
+ var Companion_instance_1;
1620
+ function Companion_getInstance_1() {
1621
+ return Companion_instance_1;
1622
+ }
1623
+ var $serializer_instance_0;
1624
+ function $serializer_getInstance_0() {
1625
+ if ($serializer_instance_0 === VOID)
1626
+ new $serializer_0();
1627
+ return $serializer_instance_0;
1628
+ }
1629
+ function CreateJarmResponseResult$Companion$$childSerializers$_anonymous__y1hiiq() {
1630
+ return Companion_getInstance_0().z1k();
1631
+ }
1632
+ var Companion_instance_2;
1633
+ function Companion_getInstance_2() {
1634
+ if (Companion_instance_2 === VOID)
1635
+ new Companion_2();
1636
+ return Companion_instance_2;
1637
+ }
1638
+ var $serializer_instance_1;
1639
+ function $serializer_getInstance_1() {
1640
+ if ($serializer_instance_1 === VOID)
1641
+ new $serializer_1();
1642
+ return $serializer_instance_1;
1643
+ }
1644
+ var Companion_instance_3;
1645
+ function Companion_getInstance_3() {
1646
+ return Companion_instance_3;
1647
+ }
1648
+ var Companion_instance_4;
1649
+ function Companion_getInstance_4() {
1650
+ return Companion_instance_4;
1651
+ }
1652
+ var $serializer_instance_2;
1653
+ function $serializer_getInstance_2() {
1654
+ if ($serializer_instance_2 === VOID)
1655
+ new $serializer_2();
1656
+ return $serializer_instance_2;
1657
+ }
1658
+ var Companion_instance_5;
1659
+ function Companion_getInstance_5() {
1660
+ return Companion_instance_5;
1661
+ }
1662
+ var AuthenticationScheme_BEARER_instance;
1663
+ var AuthenticationScheme_DPOP_instance;
1664
+ var Companion_instance_6;
1665
+ function Companion_getInstance_6() {
1666
+ return Companion_instance_6;
1667
+ }
1668
+ function values_0() {
1669
+ return [AuthenticationScheme_BEARER_getInstance(), AuthenticationScheme_DPOP_getInstance()];
1670
+ }
1671
+ function valueOf(value) {
1672
+ switch (value) {
1673
+ case 'BEARER':
1674
+ return AuthenticationScheme_BEARER_getInstance();
1675
+ case 'DPOP':
1676
+ return AuthenticationScheme_DPOP_getInstance();
1677
+ default:
1678
+ AuthenticationScheme_initEntries();
1679
+ THROW_IAE('No enum constant com.sphereon.oauth2.common.model.AuthenticationScheme.' + value);
1680
+ break;
1681
+ }
1682
+ }
1683
+ function get_entries() {
1684
+ if ($ENTRIES == null)
1685
+ $ENTRIES = enumEntries(values_0());
1686
+ return $ENTRIES;
1687
+ }
1688
+ var AuthenticationScheme_entriesInitialized;
1689
+ function AuthenticationScheme_initEntries() {
1690
+ if (AuthenticationScheme_entriesInitialized)
1691
+ return Unit_instance;
1692
+ AuthenticationScheme_entriesInitialized = true;
1693
+ AuthenticationScheme_BEARER_instance = new AuthenticationScheme('BEARER', 0, 'Bearer');
1694
+ AuthenticationScheme_DPOP_instance = new AuthenticationScheme('DPOP', 1, 'DPoP');
1695
+ }
1696
+ var $ENTRIES;
1697
+ function AuthenticationScheme_BEARER_getInstance() {
1698
+ AuthenticationScheme_initEntries();
1699
+ return AuthenticationScheme_BEARER_instance;
1700
+ }
1701
+ function AuthenticationScheme_DPOP_getInstance() {
1702
+ AuthenticationScheme_initEntries();
1703
+ return AuthenticationScheme_DPOP_instance;
1704
+ }
1705
+ var Companion_instance_7;
1706
+ function Companion_getInstance_7() {
1707
+ return Companion_instance_7;
1708
+ }
1709
+ var AuthorizationRequestSerializer_instance;
1710
+ function AuthorizationRequestSerializer_getInstance() {
1711
+ if (AuthorizationRequestSerializer_instance === VOID)
1712
+ new AuthorizationRequestSerializer();
1713
+ return AuthorizationRequestSerializer_instance;
1714
+ }
1715
+ var Companion_instance_8;
1716
+ function Companion_getInstance_8() {
1717
+ return Companion_instance_8;
1718
+ }
1719
+ var AuthorizationResponseSerializer_instance;
1720
+ function AuthorizationResponseSerializer_getInstance() {
1721
+ if (AuthorizationResponseSerializer_instance === VOID)
1722
+ new AuthorizationResponseSerializer();
1723
+ return AuthorizationResponseSerializer_instance;
1724
+ }
1725
+ //region block: post-declaration
1726
+ initMetadataForCompanion(Companion);
1727
+ protoOf($serializer).z17 = typeParametersSerializers;
1728
+ initMetadataForObject($serializer, '$serializer', VOID, VOID, [GeneratedSerializer]);
1729
+ initMetadataForClass(JarmConfig, 'JarmConfig', JarmConfig, VOID, VOID, VOID, VOID, {0: $serializer_getInstance});
1730
+ initMetadataForCompanion(Companion_0, VOID, [SerializerFactory]);
1731
+ initMetadataForClass(JarmMode, 'JarmMode', VOID, VOID, VOID, VOID, VOID, {0: Companion_getInstance_0});
1732
+ initMetadataForCompanion(Companion_1);
1733
+ protoOf($serializer_0).z17 = typeParametersSerializers;
1734
+ initMetadataForObject($serializer_0, '$serializer', VOID, VOID, [GeneratedSerializer]);
1735
+ initMetadataForClass(CreateJarmResponseArgs, 'CreateJarmResponseArgs', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_0});
1736
+ initMetadataForCompanion(Companion_2);
1737
+ protoOf($serializer_1).z17 = typeParametersSerializers;
1738
+ initMetadataForObject($serializer_1, '$serializer', VOID, VOID, [GeneratedSerializer]);
1739
+ initMetadataForClass(CreateJarmResponseResult, 'CreateJarmResponseResult', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_1});
1740
+ initMetadataForCompanion(Companion_3);
1741
+ initMetadataForInterface(CreateJarmResponseCommand, 'CreateJarmResponseCommand', VOID, VOID, [ServiceCommand], [1, 2]);
1742
+ initMetadataForCompanion(Companion_4);
1743
+ protoOf($serializer_2).z17 = typeParametersSerializers;
1744
+ initMetadataForObject($serializer_2, '$serializer', VOID, VOID, [GeneratedSerializer]);
1745
+ initMetadataForClass(VerifyJarmResponseArgs, 'VerifyJarmResponseArgs', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_2});
1746
+ initMetadataForCompanion(Companion_5);
1747
+ initMetadataForInterface(VerifyJarmResponseCommand, 'VerifyJarmResponseCommand', VOID, VOID, [ServiceCommand], [1, 2]);
1748
+ initMetadataForCompanion(Companion_6);
1749
+ initMetadataForClass(AuthenticationScheme, 'AuthenticationScheme');
1750
+ initMetadataForCompanion(Companion_7);
1751
+ initMetadataForClass(AuthorizationRequest, 'AuthorizationRequest', VOID, VOID, VOID, VOID, VOID, {0: AuthorizationRequestSerializer_getInstance});
1752
+ initMetadataForObject(AuthorizationRequestSerializer, 'AuthorizationRequestSerializer', VOID, VOID, [KSerializer]);
1753
+ initMetadataForCompanion(Companion_8);
1754
+ initMetadataForClass(AuthorizationResponse, 'AuthorizationResponse', VOID, VOID, VOID, VOID, VOID, {0: AuthorizationResponseSerializer_getInstance});
1755
+ initMetadataForObject(AuthorizationResponseSerializer, 'AuthorizationResponseSerializer', VOID, VOID, [KSerializer]);
1756
+ initMetadataForInterface(IdTokenService, 'IdTokenService', VOID, VOID, VOID, [1, 2]);
1757
+ //endregion
1758
+ //region block: init
1759
+ Companion_instance_1 = new Companion_1();
1760
+ Companion_instance_3 = new Companion_3();
1761
+ Companion_instance_4 = new Companion_4();
1762
+ Companion_instance_5 = new Companion_5();
1763
+ Companion_instance_6 = new Companion_6();
1764
+ Companion_instance_7 = new Companion_7();
1765
+ Companion_instance_8 = new Companion_8();
1766
+ //endregion
1767
+ //region block: exports
1768
+ var CreateJarmResponseCommand_0 = {};
1769
+ defineProp(CreateJarmResponseCommand_0, 'Companion', Companion_getInstance_3, VOID, true);
1770
+ var VerifyJarmResponseCommand_0 = {};
1771
+ defineProp(VerifyJarmResponseCommand_0, 'Companion', Companion_getInstance_5, VOID, true);
1772
+ AuthenticationScheme.values = values_0;
1773
+ AuthenticationScheme.valueOf = valueOf;
1774
+ defineProp(AuthenticationScheme, 'BEARER', AuthenticationScheme_BEARER_getInstance, VOID, true);
1775
+ defineProp(AuthenticationScheme, 'DPOP', AuthenticationScheme_DPOP_getInstance, VOID, true);
1776
+ defineProp(AuthenticationScheme, 'Companion', Companion_getInstance_6, VOID, true);
1777
+ export {
1778
+ CreateJarmResponseArgs as CreateJarmResponseArgs,
1779
+ CreateJarmResponseResult as CreateJarmResponseResult,
1780
+ CreateJarmResponseCommand_0 as CreateJarmResponseCommand,
1781
+ VerifyJarmResponseArgs as VerifyJarmResponseArgs,
1782
+ VerifyJarmResponseCommand_0 as VerifyJarmResponseCommand,
1783
+ AuthenticationScheme as AuthenticationScheme,
1784
+ AuthorizationRequest as AuthorizationRequest,
1785
+ AuthorizationResponse as AuthorizationResponse,
1786
+ };
1787
+ //endregion
1788
+
1789
+ //# sourceMappingURL=idk-lib-oauth2-common-public.mjs.map