@itwin/core-i18n 5.0.0-dev.56 → 5.0.0-dev.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/ITwinLocalization.d.ts +0 -9
- package/lib/cjs/ITwinLocalization.d.ts.map +1 -1
- package/lib/cjs/ITwinLocalization.js +6 -22
- package/lib/cjs/ITwinLocalization.js.map +1 -1
- package/lib/cjs/test/webpack/bundled-tests.instrumented.js +652 -820
- package/lib/cjs/test/webpack/bundled-tests.instrumented.js.map +1 -1
- package/lib/cjs/test/webpack/bundled-tests.js +160 -166
- package/lib/cjs/test/webpack/bundled-tests.js.map +1 -1
- package/lib/esm/ITwinLocalization.d.ts +0 -9
- package/lib/esm/ITwinLocalization.d.ts.map +1 -1
- package/lib/esm/ITwinLocalization.js +6 -22
- package/lib/esm/ITwinLocalization.js.map +1 -1
- package/package.json +6 -6
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
*/
|
|
20
20
|
function cov_ogldeftyv() {
|
|
21
21
|
var path = "C:\\agent\\_work\\1\\s\\core\\i18n\\lib\\cjs\\ITwinLocalization.js";
|
|
22
|
-
var hash = "
|
|
22
|
+
var hash = "dc42415b822dd4de30f4e9da695d0e05d9c36eef";
|
|
23
23
|
var global = new Function("return this")();
|
|
24
24
|
var gcv = "__coverage__";
|
|
25
25
|
var coverageData = {
|
|
@@ -117,751 +117,691 @@ function cov_ogldeftyv() {
|
|
|
117
117
|
},
|
|
118
118
|
"9": {
|
|
119
119
|
start: {
|
|
120
|
-
line:
|
|
121
|
-
column:
|
|
120
|
+
line: 28,
|
|
121
|
+
column: 18
|
|
122
122
|
},
|
|
123
123
|
end: {
|
|
124
|
-
line:
|
|
125
|
-
column:
|
|
124
|
+
line: 28,
|
|
125
|
+
column: 27
|
|
126
126
|
}
|
|
127
127
|
},
|
|
128
128
|
"10": {
|
|
129
129
|
start: {
|
|
130
|
-
line:
|
|
130
|
+
line: 30,
|
|
131
131
|
column: 8
|
|
132
132
|
},
|
|
133
133
|
end: {
|
|
134
|
-
line:
|
|
134
|
+
line: 30,
|
|
135
135
|
column: 58
|
|
136
136
|
}
|
|
137
137
|
},
|
|
138
138
|
"11": {
|
|
139
139
|
start: {
|
|
140
|
-
line:
|
|
140
|
+
line: 31,
|
|
141
141
|
column: 8
|
|
142
142
|
},
|
|
143
143
|
end: {
|
|
144
|
-
line:
|
|
144
|
+
line: 35,
|
|
145
145
|
column: 10
|
|
146
146
|
}
|
|
147
147
|
},
|
|
148
148
|
"12": {
|
|
149
149
|
start: {
|
|
150
|
-
line:
|
|
150
|
+
line: 36,
|
|
151
151
|
column: 8
|
|
152
152
|
},
|
|
153
153
|
end: {
|
|
154
|
-
line:
|
|
154
|
+
line: 41,
|
|
155
155
|
column: 10
|
|
156
156
|
}
|
|
157
157
|
},
|
|
158
158
|
"13": {
|
|
159
159
|
start: {
|
|
160
|
-
line:
|
|
160
|
+
line: 42,
|
|
161
161
|
column: 8
|
|
162
162
|
},
|
|
163
163
|
end: {
|
|
164
|
-
line:
|
|
164
|
+
line: 49,
|
|
165
165
|
column: 10
|
|
166
166
|
}
|
|
167
167
|
},
|
|
168
168
|
"14": {
|
|
169
169
|
start: {
|
|
170
|
-
line:
|
|
170
|
+
line: 50,
|
|
171
171
|
column: 8
|
|
172
172
|
},
|
|
173
173
|
end: {
|
|
174
|
-
line:
|
|
174
|
+
line: 53,
|
|
175
175
|
column: 36
|
|
176
176
|
}
|
|
177
177
|
},
|
|
178
178
|
"15": {
|
|
179
179
|
start: {
|
|
180
|
-
line:
|
|
180
|
+
line: 57,
|
|
181
181
|
column: 31
|
|
182
182
|
},
|
|
183
183
|
end: {
|
|
184
|
-
line:
|
|
184
|
+
line: 57,
|
|
185
185
|
column: 66
|
|
186
186
|
}
|
|
187
187
|
},
|
|
188
188
|
"16": {
|
|
189
189
|
start: {
|
|
190
|
-
line:
|
|
190
|
+
line: 58,
|
|
191
191
|
column: 35
|
|
192
192
|
},
|
|
193
193
|
end: {
|
|
194
|
-
line:
|
|
194
|
+
line: 58,
|
|
195
195
|
column: 78
|
|
196
196
|
}
|
|
197
197
|
},
|
|
198
198
|
"17": {
|
|
199
199
|
start: {
|
|
200
|
-
line:
|
|
200
|
+
line: 59,
|
|
201
201
|
column: 33
|
|
202
202
|
},
|
|
203
203
|
end: {
|
|
204
|
-
line:
|
|
204
|
+
line: 59,
|
|
205
205
|
column: 77
|
|
206
206
|
}
|
|
207
207
|
},
|
|
208
208
|
"18": {
|
|
209
209
|
start: {
|
|
210
|
-
line:
|
|
210
|
+
line: 60,
|
|
211
211
|
column: 8
|
|
212
212
|
},
|
|
213
213
|
end: {
|
|
214
|
-
line:
|
|
214
|
+
line: 61,
|
|
215
215
|
column: 53
|
|
216
216
|
}
|
|
217
217
|
},
|
|
218
218
|
"19": {
|
|
219
219
|
start: {
|
|
220
|
-
line:
|
|
220
|
+
line: 61,
|
|
221
221
|
column: 12
|
|
222
222
|
},
|
|
223
223
|
end: {
|
|
224
|
-
line:
|
|
224
|
+
line: 61,
|
|
225
225
|
column: 53
|
|
226
226
|
}
|
|
227
227
|
},
|
|
228
228
|
"20": {
|
|
229
229
|
start: {
|
|
230
|
-
line:
|
|
230
|
+
line: 62,
|
|
231
231
|
column: 28
|
|
232
232
|
},
|
|
233
233
|
end: {
|
|
234
|
-
line:
|
|
234
|
+
line: 66,
|
|
235
235
|
column: 9
|
|
236
236
|
}
|
|
237
237
|
},
|
|
238
238
|
"21": {
|
|
239
239
|
start: {
|
|
240
|
-
line:
|
|
240
|
+
line: 68,
|
|
241
241
|
column: 8
|
|
242
242
|
},
|
|
243
243
|
end: {
|
|
244
|
-
line:
|
|
244
|
+
line: 69,
|
|
245
245
|
column: 37
|
|
246
246
|
}
|
|
247
247
|
},
|
|
248
248
|
"22": {
|
|
249
249
|
start: {
|
|
250
|
-
line:
|
|
250
|
+
line: 69,
|
|
251
251
|
column: 12
|
|
252
252
|
},
|
|
253
253
|
end: {
|
|
254
|
-
line:
|
|
254
|
+
line: 69,
|
|
255
255
|
column: 37
|
|
256
256
|
}
|
|
257
257
|
},
|
|
258
258
|
"23": {
|
|
259
259
|
start: {
|
|
260
|
-
line:
|
|
260
|
+
line: 70,
|
|
261
261
|
column: 28
|
|
262
262
|
},
|
|
263
263
|
end: {
|
|
264
|
-
line:
|
|
264
|
+
line: 70,
|
|
265
265
|
column: 58
|
|
266
266
|
}
|
|
267
267
|
},
|
|
268
268
|
"24": {
|
|
269
269
|
start: {
|
|
270
|
-
line:
|
|
270
|
+
line: 71,
|
|
271
271
|
column: 8
|
|
272
272
|
},
|
|
273
273
|
end: {
|
|
274
|
-
line:
|
|
274
|
+
line: 72,
|
|
275
275
|
column: 50
|
|
276
276
|
}
|
|
277
277
|
},
|
|
278
278
|
"25": {
|
|
279
279
|
start: {
|
|
280
|
-
line:
|
|
280
|
+
line: 72,
|
|
281
281
|
column: 12
|
|
282
282
|
},
|
|
283
283
|
end: {
|
|
284
|
-
line:
|
|
284
|
+
line: 72,
|
|
285
285
|
column: 50
|
|
286
286
|
}
|
|
287
287
|
},
|
|
288
288
|
"26": {
|
|
289
289
|
start: {
|
|
290
|
-
line:
|
|
290
|
+
line: 73,
|
|
291
291
|
column: 8
|
|
292
292
|
},
|
|
293
293
|
end: {
|
|
294
|
-
line:
|
|
294
|
+
line: 73,
|
|
295
295
|
column: 27
|
|
296
296
|
}
|
|
297
297
|
},
|
|
298
298
|
"27": {
|
|
299
299
|
start: {
|
|
300
|
-
line:
|
|
300
|
+
line: 92,
|
|
301
301
|
column: 8
|
|
302
302
|
},
|
|
303
303
|
end: {
|
|
304
|
-
line:
|
|
304
|
+
line: 92,
|
|
305
305
|
column: 91
|
|
306
306
|
}
|
|
307
307
|
},
|
|
308
308
|
"28": {
|
|
309
309
|
start: {
|
|
310
|
-
line:
|
|
310
|
+
line: 92,
|
|
311
311
|
column: 61
|
|
312
312
|
},
|
|
313
313
|
end: {
|
|
314
|
-
line:
|
|
314
|
+
line: 92,
|
|
315
315
|
column: 89
|
|
316
316
|
}
|
|
317
317
|
},
|
|
318
318
|
"29": {
|
|
319
319
|
start: {
|
|
320
|
-
line:
|
|
320
|
+
line: 108,
|
|
321
321
|
column: 8
|
|
322
322
|
},
|
|
323
323
|
end: {
|
|
324
|
-
line:
|
|
324
|
+
line: 110,
|
|
325
325
|
column: 9
|
|
326
326
|
}
|
|
327
327
|
},
|
|
328
328
|
"30": {
|
|
329
329
|
start: {
|
|
330
|
-
line:
|
|
330
|
+
line: 109,
|
|
331
331
|
column: 12
|
|
332
332
|
},
|
|
333
333
|
end: {
|
|
334
|
-
line:
|
|
334
|
+
line: 109,
|
|
335
335
|
column: 116
|
|
336
336
|
}
|
|
337
337
|
},
|
|
338
338
|
"31": {
|
|
339
339
|
start: {
|
|
340
|
-
line:
|
|
340
|
+
line: 111,
|
|
341
341
|
column: 22
|
|
342
342
|
},
|
|
343
343
|
end: {
|
|
344
|
-
line:
|
|
344
|
+
line: 111,
|
|
345
345
|
column: 50
|
|
346
346
|
}
|
|
347
347
|
},
|
|
348
348
|
"32": {
|
|
349
349
|
start: {
|
|
350
|
-
line:
|
|
350
|
+
line: 112,
|
|
351
351
|
column: 8
|
|
352
352
|
},
|
|
353
353
|
end: {
|
|
354
|
-
line:
|
|
354
|
+
line: 114,
|
|
355
355
|
column: 9
|
|
356
356
|
}
|
|
357
357
|
},
|
|
358
358
|
"33": {
|
|
359
359
|
start: {
|
|
360
|
-
line:
|
|
360
|
+
line: 113,
|
|
361
361
|
column: 12
|
|
362
362
|
},
|
|
363
363
|
end: {
|
|
364
|
-
line:
|
|
364
|
+
line: 113,
|
|
365
365
|
column: 67
|
|
366
366
|
}
|
|
367
367
|
},
|
|
368
368
|
"34": {
|
|
369
369
|
start: {
|
|
370
|
-
line:
|
|
370
|
+
line: 115,
|
|
371
371
|
column: 8
|
|
372
372
|
},
|
|
373
373
|
end: {
|
|
374
|
-
line:
|
|
374
|
+
line: 115,
|
|
375
375
|
column: 21
|
|
376
376
|
}
|
|
377
377
|
},
|
|
378
378
|
"35": {
|
|
379
379
|
start: {
|
|
380
|
-
line:
|
|
381
|
-
column: 22
|
|
382
|
-
},
|
|
383
|
-
end: {
|
|
384
|
-
line: 122,
|
|
385
|
-
column: 24
|
|
386
|
-
}
|
|
387
|
-
},
|
|
388
|
-
"36": {
|
|
389
|
-
start: {
|
|
390
|
-
line: 123,
|
|
380
|
+
line: 125,
|
|
391
381
|
column: 8
|
|
392
382
|
},
|
|
393
383
|
end: {
|
|
394
|
-
line: 130,
|
|
395
|
-
column: 9
|
|
396
|
-
}
|
|
397
|
-
},
|
|
398
|
-
"37": {
|
|
399
|
-
start: {
|
|
400
|
-
line: 124,
|
|
401
|
-
column: 12
|
|
402
|
-
},
|
|
403
|
-
end: {
|
|
404
|
-
line: 124,
|
|
405
|
-
column: 44
|
|
406
|
-
}
|
|
407
|
-
},
|
|
408
|
-
"38": {
|
|
409
|
-
start: {
|
|
410
384
|
line: 127,
|
|
411
|
-
column: 12
|
|
412
|
-
},
|
|
413
|
-
end: {
|
|
414
|
-
line: 129,
|
|
415
|
-
column: 15
|
|
416
|
-
}
|
|
417
|
-
},
|
|
418
|
-
"39": {
|
|
419
|
-
start: {
|
|
420
|
-
line: 128,
|
|
421
|
-
column: 16
|
|
422
|
-
},
|
|
423
|
-
end: {
|
|
424
|
-
line: 128,
|
|
425
|
-
column: 48
|
|
426
|
-
}
|
|
427
|
-
},
|
|
428
|
-
"40": {
|
|
429
|
-
start: {
|
|
430
|
-
line: 131,
|
|
431
|
-
column: 8
|
|
432
|
-
},
|
|
433
|
-
end: {
|
|
434
|
-
line: 131,
|
|
435
|
-
column: 57
|
|
436
|
-
}
|
|
437
|
-
},
|
|
438
|
-
"41": {
|
|
439
|
-
start: {
|
|
440
|
-
line: 141,
|
|
441
|
-
column: 8
|
|
442
|
-
},
|
|
443
|
-
end: {
|
|
444
|
-
line: 143,
|
|
445
385
|
column: 9
|
|
446
386
|
}
|
|
447
387
|
},
|
|
448
|
-
"
|
|
388
|
+
"36": {
|
|
449
389
|
start: {
|
|
450
|
-
line:
|
|
390
|
+
line: 126,
|
|
451
391
|
column: 12
|
|
452
392
|
},
|
|
453
393
|
end: {
|
|
454
|
-
line:
|
|
394
|
+
line: 126,
|
|
455
395
|
column: 116
|
|
456
396
|
}
|
|
457
397
|
},
|
|
458
|
-
"
|
|
398
|
+
"37": {
|
|
459
399
|
start: {
|
|
460
|
-
line:
|
|
400
|
+
line: 128,
|
|
461
401
|
column: 8
|
|
462
402
|
},
|
|
463
403
|
end: {
|
|
464
|
-
line:
|
|
404
|
+
line: 131,
|
|
465
405
|
column: 10
|
|
466
406
|
}
|
|
467
407
|
},
|
|
468
|
-
"
|
|
408
|
+
"38": {
|
|
469
409
|
start: {
|
|
470
|
-
line:
|
|
410
|
+
line: 132,
|
|
471
411
|
column: 19
|
|
472
412
|
},
|
|
473
413
|
end: {
|
|
474
|
-
line:
|
|
414
|
+
line: 132,
|
|
475
415
|
column: 58
|
|
476
416
|
}
|
|
477
417
|
},
|
|
478
|
-
"
|
|
418
|
+
"39": {
|
|
479
419
|
start: {
|
|
480
|
-
line:
|
|
420
|
+
line: 133,
|
|
481
421
|
column: 20
|
|
482
422
|
},
|
|
483
423
|
end: {
|
|
484
|
-
line:
|
|
424
|
+
line: 133,
|
|
485
425
|
column: 36
|
|
486
426
|
}
|
|
487
427
|
},
|
|
488
|
-
"
|
|
428
|
+
"40": {
|
|
489
429
|
start: {
|
|
490
|
-
line:
|
|
430
|
+
line: 134,
|
|
491
431
|
column: 8
|
|
492
432
|
},
|
|
493
433
|
end: {
|
|
494
|
-
line:
|
|
434
|
+
line: 135,
|
|
495
435
|
column: 60
|
|
496
436
|
}
|
|
497
437
|
},
|
|
498
|
-
"
|
|
438
|
+
"41": {
|
|
499
439
|
start: {
|
|
500
|
-
line:
|
|
440
|
+
line: 135,
|
|
501
441
|
column: 12
|
|
502
442
|
},
|
|
503
443
|
end: {
|
|
504
|
-
line:
|
|
444
|
+
line: 135,
|
|
505
445
|
column: 60
|
|
506
446
|
}
|
|
507
447
|
},
|
|
508
|
-
"
|
|
448
|
+
"42": {
|
|
509
449
|
start: {
|
|
510
|
-
line:
|
|
450
|
+
line: 136,
|
|
511
451
|
column: 8
|
|
512
452
|
},
|
|
513
453
|
end: {
|
|
514
|
-
line:
|
|
454
|
+
line: 136,
|
|
515
455
|
column: 19
|
|
516
456
|
}
|
|
517
457
|
},
|
|
518
|
-
"
|
|
458
|
+
"43": {
|
|
519
459
|
start: {
|
|
520
|
-
line:
|
|
460
|
+
line: 143,
|
|
521
461
|
column: 8
|
|
522
462
|
},
|
|
523
463
|
end: {
|
|
524
|
-
line:
|
|
464
|
+
line: 143,
|
|
525
465
|
column: 42
|
|
526
466
|
}
|
|
527
467
|
},
|
|
528
|
-
"
|
|
468
|
+
"44": {
|
|
529
469
|
start: {
|
|
530
|
-
line:
|
|
470
|
+
line: 147,
|
|
531
471
|
column: 8
|
|
532
472
|
},
|
|
533
473
|
end: {
|
|
534
|
-
line:
|
|
474
|
+
line: 147,
|
|
535
475
|
column: 38
|
|
536
476
|
}
|
|
537
477
|
},
|
|
538
|
-
"
|
|
478
|
+
"45": {
|
|
539
479
|
start: {
|
|
540
|
-
line:
|
|
480
|
+
line: 151,
|
|
541
481
|
column: 8
|
|
542
482
|
},
|
|
543
483
|
end: {
|
|
544
|
-
line:
|
|
484
|
+
line: 151,
|
|
545
485
|
column: 53
|
|
546
486
|
}
|
|
547
487
|
},
|
|
548
|
-
"
|
|
488
|
+
"46": {
|
|
549
489
|
start: {
|
|
550
|
-
line:
|
|
490
|
+
line: 162,
|
|
551
491
|
column: 25
|
|
552
492
|
},
|
|
553
493
|
end: {
|
|
554
|
-
line:
|
|
494
|
+
line: 162,
|
|
555
495
|
column: 51
|
|
556
496
|
}
|
|
557
497
|
},
|
|
558
|
-
"
|
|
498
|
+
"47": {
|
|
559
499
|
start: {
|
|
560
|
-
line:
|
|
500
|
+
line: 163,
|
|
561
501
|
column: 8
|
|
562
502
|
},
|
|
563
503
|
end: {
|
|
564
|
-
line:
|
|
504
|
+
line: 164,
|
|
565
505
|
column: 28
|
|
566
506
|
}
|
|
567
507
|
},
|
|
568
|
-
"
|
|
508
|
+
"48": {
|
|
569
509
|
start: {
|
|
570
|
-
line:
|
|
510
|
+
line: 164,
|
|
571
511
|
column: 12
|
|
572
512
|
},
|
|
573
513
|
end: {
|
|
574
|
-
line:
|
|
514
|
+
line: 164,
|
|
575
515
|
column: 28
|
|
576
516
|
}
|
|
577
517
|
},
|
|
578
|
-
"
|
|
518
|
+
"49": {
|
|
579
519
|
start: {
|
|
580
|
-
line:
|
|
520
|
+
line: 165,
|
|
581
521
|
column: 31
|
|
582
522
|
},
|
|
583
523
|
end: {
|
|
584
|
-
line:
|
|
524
|
+
line: 190,
|
|
585
525
|
column: 10
|
|
586
526
|
}
|
|
587
527
|
},
|
|
588
|
-
"
|
|
528
|
+
"50": {
|
|
589
529
|
start: {
|
|
590
|
-
line:
|
|
530
|
+
line: 167,
|
|
591
531
|
column: 12
|
|
592
532
|
},
|
|
593
533
|
end: {
|
|
594
|
-
line:
|
|
534
|
+
line: 189,
|
|
595
535
|
column: 15
|
|
596
536
|
}
|
|
597
537
|
},
|
|
598
|
-
"
|
|
538
|
+
"51": {
|
|
599
539
|
start: {
|
|
600
|
-
line:
|
|
540
|
+
line: 168,
|
|
601
541
|
column: 16
|
|
602
542
|
},
|
|
603
543
|
end: {
|
|
604
|
-
line:
|
|
544
|
+
line: 169,
|
|
605
545
|
column: 37
|
|
606
546
|
}
|
|
607
547
|
},
|
|
608
|
-
"
|
|
548
|
+
"52": {
|
|
609
549
|
start: {
|
|
610
|
-
line:
|
|
550
|
+
line: 169,
|
|
611
551
|
column: 20
|
|
612
552
|
},
|
|
613
553
|
end: {
|
|
614
|
-
line:
|
|
554
|
+
line: 169,
|
|
615
555
|
column: 37
|
|
616
556
|
}
|
|
617
557
|
},
|
|
618
|
-
"
|
|
558
|
+
"53": {
|
|
619
559
|
start: {
|
|
620
|
-
line:
|
|
560
|
+
line: 175,
|
|
621
561
|
column: 30
|
|
622
562
|
},
|
|
623
563
|
end: {
|
|
624
|
-
line:
|
|
564
|
+
line: 175,
|
|
625
565
|
column: 91
|
|
626
566
|
}
|
|
627
567
|
},
|
|
628
|
-
"
|
|
568
|
+
"54": {
|
|
629
569
|
start: {
|
|
630
|
-
line:
|
|
570
|
+
line: 175,
|
|
631
571
|
column: 73
|
|
632
572
|
},
|
|
633
573
|
end: {
|
|
634
|
-
line:
|
|
574
|
+
line: 175,
|
|
635
575
|
column: 90
|
|
636
576
|
}
|
|
637
577
|
},
|
|
638
|
-
"
|
|
578
|
+
"55": {
|
|
639
579
|
start: {
|
|
640
|
-
line:
|
|
580
|
+
line: 176,
|
|
641
581
|
column: 16
|
|
642
582
|
},
|
|
643
583
|
end: {
|
|
644
|
-
line:
|
|
584
|
+
line: 184,
|
|
645
585
|
column: 17
|
|
646
586
|
}
|
|
647
587
|
},
|
|
648
|
-
"
|
|
588
|
+
"56": {
|
|
649
589
|
start: {
|
|
650
|
-
line:
|
|
590
|
+
line: 177,
|
|
651
591
|
column: 20
|
|
652
592
|
},
|
|
653
593
|
end: {
|
|
654
|
-
line:
|
|
594
|
+
line: 180,
|
|
655
595
|
column: 21
|
|
656
596
|
}
|
|
657
597
|
},
|
|
658
|
-
"
|
|
598
|
+
"57": {
|
|
659
599
|
start: {
|
|
660
|
-
line:
|
|
600
|
+
line: 178,
|
|
661
601
|
column: 24
|
|
662
602
|
},
|
|
663
603
|
end: {
|
|
664
|
-
line:
|
|
604
|
+
line: 179,
|
|
665
605
|
column: 102
|
|
666
606
|
}
|
|
667
607
|
},
|
|
668
|
-
"
|
|
608
|
+
"58": {
|
|
669
609
|
start: {
|
|
670
|
-
line:
|
|
610
|
+
line: 179,
|
|
671
611
|
column: 28
|
|
672
612
|
},
|
|
673
613
|
end: {
|
|
674
|
-
line:
|
|
614
|
+
line: 179,
|
|
675
615
|
column: 102
|
|
676
616
|
}
|
|
677
617
|
},
|
|
678
|
-
"
|
|
618
|
+
"59": {
|
|
679
619
|
start: {
|
|
680
|
-
line:
|
|
620
|
+
line: 179,
|
|
681
621
|
column: 69
|
|
682
622
|
},
|
|
683
623
|
end: {
|
|
684
|
-
line:
|
|
624
|
+
line: 179,
|
|
685
625
|
column: 100
|
|
686
626
|
}
|
|
687
627
|
},
|
|
688
|
-
"
|
|
628
|
+
"60": {
|
|
689
629
|
start: {
|
|
690
|
-
line:
|
|
630
|
+
line: 183,
|
|
691
631
|
column: 20
|
|
692
632
|
},
|
|
693
633
|
end: {
|
|
694
|
-
line:
|
|
634
|
+
line: 183,
|
|
695
635
|
column: 33
|
|
696
636
|
}
|
|
697
637
|
},
|
|
698
|
-
"
|
|
638
|
+
"61": {
|
|
699
639
|
start: {
|
|
700
|
-
line:
|
|
640
|
+
line: 186,
|
|
701
641
|
column: 16
|
|
702
642
|
},
|
|
703
643
|
end: {
|
|
704
|
-
line:
|
|
644
|
+
line: 187,
|
|
705
645
|
column: 113
|
|
706
646
|
}
|
|
707
647
|
},
|
|
708
|
-
"
|
|
648
|
+
"62": {
|
|
709
649
|
start: {
|
|
710
|
-
line:
|
|
650
|
+
line: 187,
|
|
711
651
|
column: 20
|
|
712
652
|
},
|
|
713
653
|
end: {
|
|
714
|
-
line:
|
|
654
|
+
line: 187,
|
|
715
655
|
column: 113
|
|
716
656
|
}
|
|
717
657
|
},
|
|
718
|
-
"
|
|
658
|
+
"63": {
|
|
719
659
|
start: {
|
|
720
|
-
line:
|
|
660
|
+
line: 188,
|
|
721
661
|
column: 16
|
|
722
662
|
},
|
|
723
663
|
end: {
|
|
724
|
-
line:
|
|
664
|
+
line: 188,
|
|
725
665
|
column: 26
|
|
726
666
|
}
|
|
727
667
|
},
|
|
728
|
-
"
|
|
668
|
+
"64": {
|
|
729
669
|
start: {
|
|
730
|
-
line:
|
|
670
|
+
line: 191,
|
|
731
671
|
column: 8
|
|
732
672
|
},
|
|
733
673
|
end: {
|
|
734
|
-
line:
|
|
674
|
+
line: 191,
|
|
735
675
|
column: 51
|
|
736
676
|
}
|
|
737
677
|
},
|
|
738
|
-
"
|
|
678
|
+
"65": {
|
|
739
679
|
start: {
|
|
740
|
-
line:
|
|
680
|
+
line: 192,
|
|
741
681
|
column: 8
|
|
742
682
|
},
|
|
743
683
|
end: {
|
|
744
|
-
line:
|
|
684
|
+
line: 192,
|
|
745
685
|
column: 30
|
|
746
686
|
}
|
|
747
687
|
},
|
|
748
|
-
"
|
|
688
|
+
"66": {
|
|
749
689
|
start: {
|
|
750
|
-
line:
|
|
690
|
+
line: 196,
|
|
751
691
|
column: 8
|
|
752
692
|
},
|
|
753
693
|
end: {
|
|
754
|
-
line:
|
|
694
|
+
line: 196,
|
|
755
695
|
column: 38
|
|
756
696
|
}
|
|
757
697
|
},
|
|
758
|
-
"
|
|
698
|
+
"67": {
|
|
759
699
|
start: {
|
|
760
|
-
line:
|
|
700
|
+
line: 199,
|
|
761
701
|
column: 0
|
|
762
702
|
},
|
|
763
703
|
end: {
|
|
764
|
-
line:
|
|
704
|
+
line: 199,
|
|
765
705
|
column: 46
|
|
766
706
|
}
|
|
767
707
|
},
|
|
768
|
-
"
|
|
708
|
+
"68": {
|
|
769
709
|
start: {
|
|
770
|
-
line:
|
|
771
|
-
column:
|
|
710
|
+
line: 201,
|
|
711
|
+
column: 18
|
|
772
712
|
},
|
|
773
713
|
end: {
|
|
774
|
-
line:
|
|
775
|
-
column:
|
|
714
|
+
line: 201,
|
|
715
|
+
column: 26
|
|
776
716
|
}
|
|
777
717
|
},
|
|
778
|
-
"
|
|
718
|
+
"69": {
|
|
779
719
|
start: {
|
|
780
|
-
line:
|
|
720
|
+
line: 202,
|
|
781
721
|
column: 16
|
|
782
722
|
},
|
|
783
723
|
end: {
|
|
784
|
-
line:
|
|
724
|
+
line: 202,
|
|
785
725
|
column: 83
|
|
786
726
|
}
|
|
787
727
|
},
|
|
788
|
-
"
|
|
728
|
+
"70": {
|
|
789
729
|
start: {
|
|
790
|
-
line:
|
|
730
|
+
line: 203,
|
|
791
731
|
column: 17
|
|
792
732
|
},
|
|
793
733
|
end: {
|
|
794
|
-
line:
|
|
734
|
+
line: 203,
|
|
795
735
|
column: 87
|
|
796
736
|
}
|
|
797
737
|
},
|
|
798
|
-
"
|
|
738
|
+
"71": {
|
|
799
739
|
start: {
|
|
800
|
-
line:
|
|
740
|
+
line: 204,
|
|
801
741
|
column: 18
|
|
802
742
|
},
|
|
803
743
|
end: {
|
|
804
|
-
line:
|
|
744
|
+
line: 204,
|
|
805
745
|
column: 86
|
|
806
746
|
}
|
|
807
747
|
},
|
|
808
|
-
"
|
|
748
|
+
"72": {
|
|
809
749
|
start: {
|
|
810
|
-
line:
|
|
750
|
+
line: 206,
|
|
811
751
|
column: 22
|
|
812
752
|
},
|
|
813
753
|
end: {
|
|
814
|
-
line:
|
|
754
|
+
line: 206,
|
|
815
755
|
column: 29
|
|
816
756
|
}
|
|
817
757
|
},
|
|
818
|
-
"
|
|
758
|
+
"73": {
|
|
819
759
|
start: {
|
|
820
|
-
line:
|
|
760
|
+
line: 207,
|
|
821
761
|
column: 8
|
|
822
762
|
},
|
|
823
763
|
end: {
|
|
824
|
-
line:
|
|
764
|
+
line: 210,
|
|
825
765
|
column: 9
|
|
826
766
|
}
|
|
827
767
|
},
|
|
828
|
-
"
|
|
768
|
+
"74": {
|
|
829
769
|
start: {
|
|
830
|
-
line:
|
|
770
|
+
line: 207,
|
|
831
771
|
column: 21
|
|
832
772
|
},
|
|
833
773
|
end: {
|
|
834
|
-
line:
|
|
774
|
+
line: 207,
|
|
835
775
|
column: 22
|
|
836
776
|
}
|
|
837
777
|
},
|
|
838
|
-
"
|
|
778
|
+
"75": {
|
|
839
779
|
start: {
|
|
840
|
-
line:
|
|
780
|
+
line: 208,
|
|
841
781
|
column: 12
|
|
842
782
|
},
|
|
843
783
|
end: {
|
|
844
|
-
line:
|
|
784
|
+
line: 209,
|
|
845
785
|
column: 44
|
|
846
786
|
}
|
|
847
787
|
},
|
|
848
|
-
"
|
|
788
|
+
"76": {
|
|
849
789
|
start: {
|
|
850
|
-
line:
|
|
790
|
+
line: 209,
|
|
851
791
|
column: 16
|
|
852
792
|
},
|
|
853
793
|
end: {
|
|
854
|
-
line:
|
|
794
|
+
line: 209,
|
|
855
795
|
column: 44
|
|
856
796
|
}
|
|
857
797
|
},
|
|
858
|
-
"
|
|
798
|
+
"77": {
|
|
859
799
|
start: {
|
|
860
|
-
line:
|
|
800
|
+
line: 211,
|
|
861
801
|
column: 8
|
|
862
802
|
},
|
|
863
803
|
end: {
|
|
864
|
-
line:
|
|
804
|
+
line: 211,
|
|
865
805
|
column: 23
|
|
866
806
|
}
|
|
867
807
|
}
|
|
@@ -895,505 +835,457 @@ function cov_ogldeftyv() {
|
|
|
895
835
|
name: "(anonymous_1)",
|
|
896
836
|
decl: {
|
|
897
837
|
start: {
|
|
898
|
-
line:
|
|
838
|
+
line: 29,
|
|
899
839
|
column: 4
|
|
900
840
|
},
|
|
901
841
|
end: {
|
|
902
|
-
line:
|
|
842
|
+
line: 29,
|
|
903
843
|
column: 5
|
|
904
844
|
}
|
|
905
845
|
},
|
|
906
846
|
loc: {
|
|
907
847
|
start: {
|
|
908
|
-
line:
|
|
848
|
+
line: 29,
|
|
909
849
|
column: 25
|
|
910
850
|
},
|
|
911
851
|
end: {
|
|
912
|
-
line:
|
|
852
|
+
line: 54,
|
|
913
853
|
column: 5
|
|
914
854
|
}
|
|
915
855
|
},
|
|
916
|
-
line:
|
|
856
|
+
line: 29
|
|
917
857
|
},
|
|
918
858
|
"2": {
|
|
919
859
|
name: "(anonymous_2)",
|
|
920
860
|
decl: {
|
|
921
861
|
start: {
|
|
922
|
-
line:
|
|
862
|
+
line: 55,
|
|
923
863
|
column: 4
|
|
924
864
|
},
|
|
925
865
|
end: {
|
|
926
|
-
line:
|
|
866
|
+
line: 55,
|
|
927
867
|
column: 5
|
|
928
868
|
}
|
|
929
869
|
},
|
|
930
870
|
loc: {
|
|
931
871
|
start: {
|
|
932
|
-
line:
|
|
872
|
+
line: 55,
|
|
933
873
|
column: 33
|
|
934
874
|
},
|
|
935
875
|
end: {
|
|
936
|
-
line:
|
|
876
|
+
line: 74,
|
|
937
877
|
column: 5
|
|
938
878
|
}
|
|
939
879
|
},
|
|
940
|
-
line:
|
|
880
|
+
line: 55
|
|
941
881
|
},
|
|
942
882
|
"3": {
|
|
943
883
|
name: "(anonymous_3)",
|
|
944
884
|
decl: {
|
|
945
885
|
start: {
|
|
946
|
-
line:
|
|
886
|
+
line: 91,
|
|
947
887
|
column: 4
|
|
948
888
|
},
|
|
949
889
|
end: {
|
|
950
|
-
line:
|
|
890
|
+
line: 91,
|
|
951
891
|
column: 5
|
|
952
892
|
}
|
|
953
893
|
},
|
|
954
894
|
loc: {
|
|
955
895
|
start: {
|
|
956
|
-
line:
|
|
896
|
+
line: 91,
|
|
957
897
|
column: 27
|
|
958
898
|
},
|
|
959
899
|
end: {
|
|
960
|
-
line:
|
|
900
|
+
line: 93,
|
|
961
901
|
column: 5
|
|
962
902
|
}
|
|
963
903
|
},
|
|
964
|
-
line:
|
|
904
|
+
line: 91
|
|
965
905
|
},
|
|
966
906
|
"4": {
|
|
967
907
|
name: "(anonymous_4)",
|
|
968
908
|
decl: {
|
|
969
909
|
start: {
|
|
970
|
-
line:
|
|
910
|
+
line: 92,
|
|
971
911
|
column: 44
|
|
972
912
|
},
|
|
973
913
|
end: {
|
|
974
|
-
line:
|
|
914
|
+
line: 92,
|
|
975
915
|
column: 45
|
|
976
916
|
}
|
|
977
917
|
},
|
|
978
918
|
loc: {
|
|
979
919
|
start: {
|
|
980
|
-
line:
|
|
920
|
+
line: 92,
|
|
981
921
|
column: 61
|
|
982
922
|
},
|
|
983
923
|
end: {
|
|
984
|
-
line:
|
|
924
|
+
line: 92,
|
|
985
925
|
column: 89
|
|
986
926
|
}
|
|
987
927
|
},
|
|
988
|
-
line:
|
|
928
|
+
line: 92
|
|
989
929
|
},
|
|
990
930
|
"5": {
|
|
991
931
|
name: "(anonymous_5)",
|
|
992
932
|
decl: {
|
|
993
933
|
start: {
|
|
994
|
-
line:
|
|
934
|
+
line: 107,
|
|
995
935
|
column: 4
|
|
996
936
|
},
|
|
997
937
|
end: {
|
|
998
|
-
line:
|
|
938
|
+
line: 107,
|
|
999
939
|
column: 5
|
|
1000
940
|
}
|
|
1001
941
|
},
|
|
1002
942
|
loc: {
|
|
1003
943
|
start: {
|
|
1004
|
-
line:
|
|
944
|
+
line: 107,
|
|
1005
945
|
column: 37
|
|
1006
946
|
},
|
|
1007
947
|
end: {
|
|
1008
|
-
line:
|
|
948
|
+
line: 116,
|
|
1009
949
|
column: 5
|
|
1010
950
|
}
|
|
1011
951
|
},
|
|
1012
|
-
line:
|
|
952
|
+
line: 107
|
|
1013
953
|
},
|
|
1014
954
|
"6": {
|
|
1015
955
|
name: "(anonymous_6)",
|
|
1016
956
|
decl: {
|
|
1017
957
|
start: {
|
|
1018
|
-
line:
|
|
958
|
+
line: 124,
|
|
1019
959
|
column: 4
|
|
1020
960
|
},
|
|
1021
961
|
end: {
|
|
1022
|
-
line:
|
|
962
|
+
line: 124,
|
|
1023
963
|
column: 5
|
|
1024
964
|
}
|
|
1025
965
|
},
|
|
1026
966
|
loc: {
|
|
1027
967
|
start: {
|
|
1028
|
-
line:
|
|
1029
|
-
column:
|
|
968
|
+
line: 124,
|
|
969
|
+
column: 46
|
|
1030
970
|
},
|
|
1031
971
|
end: {
|
|
1032
|
-
line:
|
|
972
|
+
line: 137,
|
|
1033
973
|
column: 5
|
|
1034
974
|
}
|
|
1035
975
|
},
|
|
1036
|
-
line:
|
|
976
|
+
line: 124
|
|
1037
977
|
},
|
|
1038
978
|
"7": {
|
|
1039
979
|
name: "(anonymous_7)",
|
|
1040
980
|
decl: {
|
|
1041
981
|
start: {
|
|
1042
|
-
line:
|
|
1043
|
-
column: 30
|
|
1044
|
-
},
|
|
1045
|
-
end: {
|
|
1046
|
-
line: 127,
|
|
1047
|
-
column: 31
|
|
1048
|
-
}
|
|
1049
|
-
},
|
|
1050
|
-
loc: {
|
|
1051
|
-
start: {
|
|
1052
|
-
line: 127,
|
|
1053
|
-
column: 42
|
|
1054
|
-
},
|
|
1055
|
-
end: {
|
|
1056
|
-
line: 129,
|
|
1057
|
-
column: 13
|
|
1058
|
-
}
|
|
1059
|
-
},
|
|
1060
|
-
line: 127
|
|
1061
|
-
},
|
|
1062
|
-
"8": {
|
|
1063
|
-
name: "(anonymous_8)",
|
|
1064
|
-
decl: {
|
|
1065
|
-
start: {
|
|
1066
|
-
line: 140,
|
|
982
|
+
line: 142,
|
|
1067
983
|
column: 4
|
|
1068
984
|
},
|
|
1069
985
|
end: {
|
|
1070
|
-
line:
|
|
986
|
+
line: 142,
|
|
1071
987
|
column: 5
|
|
1072
988
|
}
|
|
1073
989
|
},
|
|
1074
990
|
loc: {
|
|
1075
991
|
start: {
|
|
1076
|
-
line:
|
|
1077
|
-
column: 46
|
|
1078
|
-
},
|
|
1079
|
-
end: {
|
|
1080
|
-
line: 153,
|
|
1081
|
-
column: 5
|
|
1082
|
-
}
|
|
1083
|
-
},
|
|
1084
|
-
line: 140
|
|
1085
|
-
},
|
|
1086
|
-
"9": {
|
|
1087
|
-
name: "(anonymous_9)",
|
|
1088
|
-
decl: {
|
|
1089
|
-
start: {
|
|
1090
|
-
line: 158,
|
|
1091
|
-
column: 4
|
|
1092
|
-
},
|
|
1093
|
-
end: {
|
|
1094
|
-
line: 158,
|
|
1095
|
-
column: 5
|
|
1096
|
-
}
|
|
1097
|
-
},
|
|
1098
|
-
loc: {
|
|
1099
|
-
start: {
|
|
1100
|
-
line: 158,
|
|
992
|
+
line: 142,
|
|
1101
993
|
column: 30
|
|
1102
994
|
},
|
|
1103
995
|
end: {
|
|
1104
|
-
line:
|
|
996
|
+
line: 144,
|
|
1105
997
|
column: 5
|
|
1106
998
|
}
|
|
1107
999
|
},
|
|
1108
|
-
line:
|
|
1000
|
+
line: 142
|
|
1109
1001
|
},
|
|
1110
|
-
"
|
|
1111
|
-
name: "(
|
|
1002
|
+
"8": {
|
|
1003
|
+
name: "(anonymous_8)",
|
|
1112
1004
|
decl: {
|
|
1113
1005
|
start: {
|
|
1114
|
-
line:
|
|
1006
|
+
line: 146,
|
|
1115
1007
|
column: 4
|
|
1116
1008
|
},
|
|
1117
1009
|
end: {
|
|
1118
|
-
line:
|
|
1010
|
+
line: 146,
|
|
1119
1011
|
column: 5
|
|
1120
1012
|
}
|
|
1121
1013
|
},
|
|
1122
1014
|
loc: {
|
|
1123
1015
|
start: {
|
|
1124
|
-
line:
|
|
1016
|
+
line: 146,
|
|
1125
1017
|
column: 22
|
|
1126
1018
|
},
|
|
1127
1019
|
end: {
|
|
1128
|
-
line:
|
|
1020
|
+
line: 148,
|
|
1129
1021
|
column: 5
|
|
1130
1022
|
}
|
|
1131
1023
|
},
|
|
1132
|
-
line:
|
|
1024
|
+
line: 146
|
|
1133
1025
|
},
|
|
1134
|
-
"
|
|
1135
|
-
name: "(
|
|
1026
|
+
"9": {
|
|
1027
|
+
name: "(anonymous_9)",
|
|
1136
1028
|
decl: {
|
|
1137
1029
|
start: {
|
|
1138
|
-
line:
|
|
1030
|
+
line: 150,
|
|
1139
1031
|
column: 4
|
|
1140
1032
|
},
|
|
1141
1033
|
end: {
|
|
1142
|
-
line:
|
|
1034
|
+
line: 150,
|
|
1143
1035
|
column: 5
|
|
1144
1036
|
}
|
|
1145
1037
|
},
|
|
1146
1038
|
loc: {
|
|
1147
1039
|
start: {
|
|
1148
|
-
line:
|
|
1040
|
+
line: 150,
|
|
1149
1041
|
column: 35
|
|
1150
1042
|
},
|
|
1151
1043
|
end: {
|
|
1152
|
-
line:
|
|
1044
|
+
line: 152,
|
|
1153
1045
|
column: 5
|
|
1154
1046
|
}
|
|
1155
1047
|
},
|
|
1156
|
-
line:
|
|
1048
|
+
line: 150
|
|
1157
1049
|
},
|
|
1158
|
-
"
|
|
1159
|
-
name: "(
|
|
1050
|
+
"10": {
|
|
1051
|
+
name: "(anonymous_10)",
|
|
1160
1052
|
decl: {
|
|
1161
1053
|
start: {
|
|
1162
|
-
line:
|
|
1054
|
+
line: 161,
|
|
1163
1055
|
column: 4
|
|
1164
1056
|
},
|
|
1165
1057
|
end: {
|
|
1166
|
-
line:
|
|
1058
|
+
line: 161,
|
|
1167
1059
|
column: 5
|
|
1168
1060
|
}
|
|
1169
1061
|
},
|
|
1170
1062
|
loc: {
|
|
1171
1063
|
start: {
|
|
1172
|
-
line:
|
|
1064
|
+
line: 161,
|
|
1173
1065
|
column: 34
|
|
1174
1066
|
},
|
|
1175
1067
|
end: {
|
|
1176
|
-
line:
|
|
1068
|
+
line: 193,
|
|
1177
1069
|
column: 5
|
|
1178
1070
|
}
|
|
1179
1071
|
},
|
|
1180
|
-
line:
|
|
1072
|
+
line: 161
|
|
1181
1073
|
},
|
|
1182
|
-
"
|
|
1183
|
-
name: "(
|
|
1074
|
+
"11": {
|
|
1075
|
+
name: "(anonymous_11)",
|
|
1184
1076
|
decl: {
|
|
1185
1077
|
start: {
|
|
1186
|
-
line:
|
|
1078
|
+
line: 165,
|
|
1187
1079
|
column: 43
|
|
1188
1080
|
},
|
|
1189
1081
|
end: {
|
|
1190
|
-
line:
|
|
1082
|
+
line: 165,
|
|
1191
1083
|
column: 44
|
|
1192
1084
|
}
|
|
1193
1085
|
},
|
|
1194
1086
|
loc: {
|
|
1195
1087
|
start: {
|
|
1196
|
-
line:
|
|
1088
|
+
line: 165,
|
|
1197
1089
|
column: 56
|
|
1198
1090
|
},
|
|
1199
1091
|
end: {
|
|
1200
|
-
line:
|
|
1092
|
+
line: 190,
|
|
1201
1093
|
column: 9
|
|
1202
1094
|
}
|
|
1203
1095
|
},
|
|
1204
|
-
line:
|
|
1096
|
+
line: 165
|
|
1205
1097
|
},
|
|
1206
|
-
"
|
|
1207
|
-
name: "(
|
|
1098
|
+
"12": {
|
|
1099
|
+
name: "(anonymous_12)",
|
|
1208
1100
|
decl: {
|
|
1209
1101
|
start: {
|
|
1210
|
-
line:
|
|
1102
|
+
line: 167,
|
|
1211
1103
|
column: 46
|
|
1212
1104
|
},
|
|
1213
1105
|
end: {
|
|
1214
|
-
line:
|
|
1106
|
+
line: 167,
|
|
1215
1107
|
column: 47
|
|
1216
1108
|
}
|
|
1217
1109
|
},
|
|
1218
1110
|
loc: {
|
|
1219
1111
|
start: {
|
|
1220
|
-
line:
|
|
1112
|
+
line: 167,
|
|
1221
1113
|
column: 55
|
|
1222
1114
|
},
|
|
1223
1115
|
end: {
|
|
1224
|
-
line:
|
|
1116
|
+
line: 189,
|
|
1225
1117
|
column: 13
|
|
1226
1118
|
}
|
|
1227
1119
|
},
|
|
1228
|
-
line:
|
|
1120
|
+
line: 167
|
|
1229
1121
|
},
|
|
1230
|
-
"
|
|
1231
|
-
name: "(
|
|
1122
|
+
"13": {
|
|
1123
|
+
name: "(anonymous_13)",
|
|
1232
1124
|
decl: {
|
|
1233
1125
|
start: {
|
|
1234
|
-
line:
|
|
1126
|
+
line: 175,
|
|
1235
1127
|
column: 57
|
|
1236
1128
|
},
|
|
1237
1129
|
end: {
|
|
1238
|
-
line:
|
|
1130
|
+
line: 175,
|
|
1239
1131
|
column: 58
|
|
1240
1132
|
}
|
|
1241
1133
|
},
|
|
1242
1134
|
loc: {
|
|
1243
1135
|
start: {
|
|
1244
|
-
line:
|
|
1136
|
+
line: 175,
|
|
1245
1137
|
column: 73
|
|
1246
1138
|
},
|
|
1247
1139
|
end: {
|
|
1248
|
-
line:
|
|
1140
|
+
line: 175,
|
|
1249
1141
|
column: 90
|
|
1250
1142
|
}
|
|
1251
1143
|
},
|
|
1252
|
-
line:
|
|
1144
|
+
line: 175
|
|
1253
1145
|
},
|
|
1254
|
-
"
|
|
1255
|
-
name: "(
|
|
1146
|
+
"14": {
|
|
1147
|
+
name: "(anonymous_14)",
|
|
1256
1148
|
decl: {
|
|
1257
1149
|
start: {
|
|
1258
|
-
line:
|
|
1150
|
+
line: 179,
|
|
1259
1151
|
column: 53
|
|
1260
1152
|
},
|
|
1261
1153
|
end: {
|
|
1262
|
-
line:
|
|
1154
|
+
line: 179,
|
|
1263
1155
|
column: 54
|
|
1264
1156
|
}
|
|
1265
1157
|
},
|
|
1266
1158
|
loc: {
|
|
1267
1159
|
start: {
|
|
1268
|
-
line:
|
|
1160
|
+
line: 179,
|
|
1269
1161
|
column: 69
|
|
1270
1162
|
},
|
|
1271
1163
|
end: {
|
|
1272
|
-
line:
|
|
1164
|
+
line: 179,
|
|
1273
1165
|
column: 100
|
|
1274
1166
|
}
|
|
1275
1167
|
},
|
|
1276
|
-
line:
|
|
1168
|
+
line: 179
|
|
1277
1169
|
},
|
|
1278
|
-
"
|
|
1279
|
-
name: "(
|
|
1170
|
+
"15": {
|
|
1171
|
+
name: "(anonymous_15)",
|
|
1280
1172
|
decl: {
|
|
1281
1173
|
start: {
|
|
1282
|
-
line:
|
|
1174
|
+
line: 195,
|
|
1283
1175
|
column: 4
|
|
1284
1176
|
},
|
|
1285
1177
|
end: {
|
|
1286
|
-
line:
|
|
1178
|
+
line: 195,
|
|
1287
1179
|
column: 5
|
|
1288
1180
|
}
|
|
1289
1181
|
},
|
|
1290
1182
|
loc: {
|
|
1291
1183
|
start: {
|
|
1292
|
-
line:
|
|
1184
|
+
line: 195,
|
|
1293
1185
|
column: 30
|
|
1294
1186
|
},
|
|
1295
1187
|
end: {
|
|
1296
|
-
line:
|
|
1188
|
+
line: 197,
|
|
1297
1189
|
column: 5
|
|
1298
1190
|
}
|
|
1299
1191
|
},
|
|
1300
|
-
line:
|
|
1192
|
+
line: 195
|
|
1301
1193
|
},
|
|
1302
|
-
"
|
|
1303
|
-
name: "(
|
|
1194
|
+
"16": {
|
|
1195
|
+
name: "(anonymous_16)",
|
|
1304
1196
|
decl: {
|
|
1305
1197
|
start: {
|
|
1306
|
-
line:
|
|
1198
|
+
line: 202,
|
|
1307
1199
|
column: 4
|
|
1308
1200
|
},
|
|
1309
1201
|
end: {
|
|
1310
|
-
line:
|
|
1202
|
+
line: 202,
|
|
1311
1203
|
column: 5
|
|
1312
1204
|
}
|
|
1313
1205
|
},
|
|
1314
1206
|
loc: {
|
|
1315
1207
|
start: {
|
|
1316
|
-
line:
|
|
1208
|
+
line: 202,
|
|
1317
1209
|
column: 14
|
|
1318
1210
|
},
|
|
1319
1211
|
end: {
|
|
1320
|
-
line:
|
|
1212
|
+
line: 202,
|
|
1321
1213
|
column: 85
|
|
1322
1214
|
}
|
|
1323
1215
|
},
|
|
1324
|
-
line:
|
|
1216
|
+
line: 202
|
|
1325
1217
|
},
|
|
1326
|
-
"
|
|
1327
|
-
name: "(
|
|
1218
|
+
"17": {
|
|
1219
|
+
name: "(anonymous_17)",
|
|
1328
1220
|
decl: {
|
|
1329
1221
|
start: {
|
|
1330
|
-
line:
|
|
1222
|
+
line: 203,
|
|
1331
1223
|
column: 4
|
|
1332
1224
|
},
|
|
1333
1225
|
end: {
|
|
1334
|
-
line:
|
|
1226
|
+
line: 203,
|
|
1335
1227
|
column: 5
|
|
1336
1228
|
}
|
|
1337
1229
|
},
|
|
1338
1230
|
loc: {
|
|
1339
1231
|
start: {
|
|
1340
|
-
line:
|
|
1232
|
+
line: 203,
|
|
1341
1233
|
column: 15
|
|
1342
1234
|
},
|
|
1343
1235
|
end: {
|
|
1344
|
-
line:
|
|
1236
|
+
line: 203,
|
|
1345
1237
|
column: 89
|
|
1346
1238
|
}
|
|
1347
1239
|
},
|
|
1348
|
-
line:
|
|
1240
|
+
line: 203
|
|
1349
1241
|
},
|
|
1350
|
-
"
|
|
1351
|
-
name: "(
|
|
1242
|
+
"18": {
|
|
1243
|
+
name: "(anonymous_18)",
|
|
1352
1244
|
decl: {
|
|
1353
1245
|
start: {
|
|
1354
|
-
line:
|
|
1246
|
+
line: 204,
|
|
1355
1247
|
column: 4
|
|
1356
1248
|
},
|
|
1357
1249
|
end: {
|
|
1358
|
-
line:
|
|
1250
|
+
line: 204,
|
|
1359
1251
|
column: 5
|
|
1360
1252
|
}
|
|
1361
1253
|
},
|
|
1362
1254
|
loc: {
|
|
1363
1255
|
start: {
|
|
1364
|
-
line:
|
|
1256
|
+
line: 204,
|
|
1365
1257
|
column: 16
|
|
1366
1258
|
},
|
|
1367
1259
|
end: {
|
|
1368
|
-
line:
|
|
1260
|
+
line: 204,
|
|
1369
1261
|
column: 88
|
|
1370
1262
|
}
|
|
1371
1263
|
},
|
|
1372
|
-
line:
|
|
1264
|
+
line: 204
|
|
1373
1265
|
},
|
|
1374
|
-
"
|
|
1375
|
-
name: "(
|
|
1266
|
+
"19": {
|
|
1267
|
+
name: "(anonymous_19)",
|
|
1376
1268
|
decl: {
|
|
1377
1269
|
start: {
|
|
1378
|
-
line:
|
|
1270
|
+
line: 205,
|
|
1379
1271
|
column: 4
|
|
1380
1272
|
},
|
|
1381
1273
|
end: {
|
|
1382
|
-
line:
|
|
1274
|
+
line: 205,
|
|
1383
1275
|
column: 5
|
|
1384
1276
|
}
|
|
1385
1277
|
},
|
|
1386
1278
|
loc: {
|
|
1387
1279
|
start: {
|
|
1388
|
-
line:
|
|
1280
|
+
line: 205,
|
|
1389
1281
|
column: 27
|
|
1390
1282
|
},
|
|
1391
1283
|
end: {
|
|
1392
|
-
line:
|
|
1284
|
+
line: 212,
|
|
1393
1285
|
column: 5
|
|
1394
1286
|
}
|
|
1395
1287
|
},
|
|
1396
|
-
line:
|
|
1288
|
+
line: 205
|
|
1397
1289
|
}
|
|
1398
1290
|
},
|
|
1399
1291
|
branchMap: {
|
|
@@ -1508,187 +1400,187 @@ function cov_ogldeftyv() {
|
|
|
1508
1400
|
"3": {
|
|
1509
1401
|
loc: {
|
|
1510
1402
|
start: {
|
|
1511
|
-
line:
|
|
1403
|
+
line: 32,
|
|
1512
1404
|
column: 22
|
|
1513
1405
|
},
|
|
1514
1406
|
end: {
|
|
1515
|
-
line:
|
|
1407
|
+
line: 32,
|
|
1516
1408
|
column: 75
|
|
1517
1409
|
}
|
|
1518
1410
|
},
|
|
1519
1411
|
type: "binary-expr",
|
|
1520
1412
|
locations: [{
|
|
1521
1413
|
start: {
|
|
1522
|
-
line:
|
|
1414
|
+
line: 32,
|
|
1523
1415
|
column: 22
|
|
1524
1416
|
},
|
|
1525
1417
|
end: {
|
|
1526
|
-
line:
|
|
1418
|
+
line: 32,
|
|
1527
1419
|
column: 42
|
|
1528
1420
|
}
|
|
1529
1421
|
}, {
|
|
1530
1422
|
start: {
|
|
1531
|
-
line:
|
|
1423
|
+
line: 32,
|
|
1532
1424
|
column: 46
|
|
1533
1425
|
},
|
|
1534
1426
|
end: {
|
|
1535
|
-
line:
|
|
1427
|
+
line: 32,
|
|
1536
1428
|
column: 75
|
|
1537
1429
|
}
|
|
1538
1430
|
}],
|
|
1539
|
-
line:
|
|
1431
|
+
line: 32
|
|
1540
1432
|
},
|
|
1541
1433
|
"4": {
|
|
1542
1434
|
loc: {
|
|
1543
1435
|
start: {
|
|
1544
|
-
line:
|
|
1436
|
+
line: 51,
|
|
1545
1437
|
column: 17
|
|
1546
1438
|
},
|
|
1547
1439
|
end: {
|
|
1548
|
-
line:
|
|
1440
|
+
line: 51,
|
|
1549
1441
|
column: 86
|
|
1550
1442
|
}
|
|
1551
1443
|
},
|
|
1552
1444
|
type: "binary-expr",
|
|
1553
1445
|
locations: [{
|
|
1554
1446
|
start: {
|
|
1555
|
-
line:
|
|
1447
|
+
line: 51,
|
|
1556
1448
|
column: 17
|
|
1557
1449
|
},
|
|
1558
1450
|
end: {
|
|
1559
|
-
line:
|
|
1451
|
+
line: 51,
|
|
1560
1452
|
column: 40
|
|
1561
1453
|
}
|
|
1562
1454
|
}, {
|
|
1563
1455
|
start: {
|
|
1564
|
-
line:
|
|
1456
|
+
line: 51,
|
|
1565
1457
|
column: 44
|
|
1566
1458
|
},
|
|
1567
1459
|
end: {
|
|
1568
|
-
line:
|
|
1460
|
+
line: 51,
|
|
1569
1461
|
column: 86
|
|
1570
1462
|
}
|
|
1571
1463
|
}],
|
|
1572
|
-
line:
|
|
1464
|
+
line: 51
|
|
1573
1465
|
},
|
|
1574
1466
|
"5": {
|
|
1575
1467
|
loc: {
|
|
1576
1468
|
start: {
|
|
1577
|
-
line:
|
|
1469
|
+
line: 52,
|
|
1578
1470
|
column: 17
|
|
1579
1471
|
},
|
|
1580
1472
|
end: {
|
|
1581
|
-
line:
|
|
1473
|
+
line: 52,
|
|
1582
1474
|
column: 73
|
|
1583
1475
|
}
|
|
1584
1476
|
},
|
|
1585
1477
|
type: "binary-expr",
|
|
1586
1478
|
locations: [{
|
|
1587
1479
|
start: {
|
|
1588
|
-
line:
|
|
1480
|
+
line: 52,
|
|
1589
1481
|
column: 17
|
|
1590
1482
|
},
|
|
1591
1483
|
end: {
|
|
1592
|
-
line:
|
|
1484
|
+
line: 52,
|
|
1593
1485
|
column: 39
|
|
1594
1486
|
}
|
|
1595
1487
|
}, {
|
|
1596
1488
|
start: {
|
|
1597
|
-
line:
|
|
1489
|
+
line: 52,
|
|
1598
1490
|
column: 43
|
|
1599
1491
|
},
|
|
1600
1492
|
end: {
|
|
1601
|
-
line:
|
|
1493
|
+
line: 52,
|
|
1602
1494
|
column: 73
|
|
1603
1495
|
}
|
|
1604
1496
|
}],
|
|
1605
|
-
line:
|
|
1497
|
+
line: 52
|
|
1606
1498
|
},
|
|
1607
1499
|
"6": {
|
|
1608
1500
|
loc: {
|
|
1609
1501
|
start: {
|
|
1610
|
-
line:
|
|
1502
|
+
line: 57,
|
|
1611
1503
|
column: 32
|
|
1612
1504
|
},
|
|
1613
1505
|
end: {
|
|
1614
|
-
line:
|
|
1506
|
+
line: 57,
|
|
1615
1507
|
column: 58
|
|
1616
1508
|
}
|
|
1617
1509
|
},
|
|
1618
1510
|
type: "binary-expr",
|
|
1619
1511
|
locations: [{
|
|
1620
1512
|
start: {
|
|
1621
|
-
line:
|
|
1513
|
+
line: 57,
|
|
1622
1514
|
column: 32
|
|
1623
1515
|
},
|
|
1624
1516
|
end: {
|
|
1625
|
-
line:
|
|
1517
|
+
line: 57,
|
|
1626
1518
|
column: 52
|
|
1627
1519
|
}
|
|
1628
1520
|
}, {
|
|
1629
1521
|
start: {
|
|
1630
|
-
line:
|
|
1522
|
+
line: 57,
|
|
1631
1523
|
column: 56
|
|
1632
1524
|
},
|
|
1633
1525
|
end: {
|
|
1634
|
-
line:
|
|
1526
|
+
line: 57,
|
|
1635
1527
|
column: 58
|
|
1636
1528
|
}
|
|
1637
1529
|
}],
|
|
1638
|
-
line:
|
|
1530
|
+
line: 57
|
|
1639
1531
|
},
|
|
1640
1532
|
"7": {
|
|
1641
1533
|
loc: {
|
|
1642
1534
|
start: {
|
|
1643
|
-
line:
|
|
1535
|
+
line: 59,
|
|
1644
1536
|
column: 33
|
|
1645
1537
|
},
|
|
1646
1538
|
end: {
|
|
1647
|
-
line:
|
|
1539
|
+
line: 59,
|
|
1648
1540
|
column: 77
|
|
1649
1541
|
}
|
|
1650
1542
|
},
|
|
1651
1543
|
type: "binary-expr",
|
|
1652
1544
|
locations: [{
|
|
1653
1545
|
start: {
|
|
1654
|
-
line:
|
|
1546
|
+
line: 59,
|
|
1655
1547
|
column: 33
|
|
1656
1548
|
},
|
|
1657
1549
|
end: {
|
|
1658
|
-
line:
|
|
1550
|
+
line: 59,
|
|
1659
1551
|
column: 60
|
|
1660
1552
|
}
|
|
1661
1553
|
}, {
|
|
1662
1554
|
start: {
|
|
1663
|
-
line:
|
|
1555
|
+
line: 59,
|
|
1664
1556
|
column: 64
|
|
1665
1557
|
},
|
|
1666
1558
|
end: {
|
|
1667
|
-
line:
|
|
1559
|
+
line: 59,
|
|
1668
1560
|
column: 77
|
|
1669
1561
|
}
|
|
1670
1562
|
}],
|
|
1671
|
-
line:
|
|
1563
|
+
line: 59
|
|
1672
1564
|
},
|
|
1673
1565
|
"8": {
|
|
1674
1566
|
loc: {
|
|
1675
1567
|
start: {
|
|
1676
|
-
line:
|
|
1568
|
+
line: 60,
|
|
1677
1569
|
column: 8
|
|
1678
1570
|
},
|
|
1679
1571
|
end: {
|
|
1680
|
-
line:
|
|
1572
|
+
line: 61,
|
|
1681
1573
|
column: 53
|
|
1682
1574
|
}
|
|
1683
1575
|
},
|
|
1684
1576
|
type: "if",
|
|
1685
1577
|
locations: [{
|
|
1686
1578
|
start: {
|
|
1687
|
-
line:
|
|
1579
|
+
line: 60,
|
|
1688
1580
|
column: 8
|
|
1689
1581
|
},
|
|
1690
1582
|
end: {
|
|
1691
|
-
line:
|
|
1583
|
+
line: 61,
|
|
1692
1584
|
column: 53
|
|
1693
1585
|
}
|
|
1694
1586
|
}, {
|
|
@@ -1701,27 +1593,27 @@ function cov_ogldeftyv() {
|
|
|
1701
1593
|
column: undefined
|
|
1702
1594
|
}
|
|
1703
1595
|
}],
|
|
1704
|
-
line:
|
|
1596
|
+
line: 60
|
|
1705
1597
|
},
|
|
1706
1598
|
"9": {
|
|
1707
1599
|
loc: {
|
|
1708
1600
|
start: {
|
|
1709
|
-
line:
|
|
1601
|
+
line: 68,
|
|
1710
1602
|
column: 8
|
|
1711
1603
|
},
|
|
1712
1604
|
end: {
|
|
1713
|
-
line:
|
|
1605
|
+
line: 69,
|
|
1714
1606
|
column: 37
|
|
1715
1607
|
}
|
|
1716
1608
|
},
|
|
1717
1609
|
type: "if",
|
|
1718
1610
|
locations: [{
|
|
1719
1611
|
start: {
|
|
1720
|
-
line:
|
|
1612
|
+
line: 68,
|
|
1721
1613
|
column: 8
|
|
1722
1614
|
},
|
|
1723
1615
|
end: {
|
|
1724
|
-
line:
|
|
1616
|
+
line: 69,
|
|
1725
1617
|
column: 37
|
|
1726
1618
|
}
|
|
1727
1619
|
}, {
|
|
@@ -1734,27 +1626,27 @@ function cov_ogldeftyv() {
|
|
|
1734
1626
|
column: undefined
|
|
1735
1627
|
}
|
|
1736
1628
|
}],
|
|
1737
|
-
line:
|
|
1629
|
+
line: 68
|
|
1738
1630
|
},
|
|
1739
1631
|
"10": {
|
|
1740
1632
|
loc: {
|
|
1741
1633
|
start: {
|
|
1742
|
-
line:
|
|
1634
|
+
line: 108,
|
|
1743
1635
|
column: 8
|
|
1744
1636
|
},
|
|
1745
1637
|
end: {
|
|
1746
|
-
line:
|
|
1638
|
+
line: 110,
|
|
1747
1639
|
column: 9
|
|
1748
1640
|
}
|
|
1749
1641
|
},
|
|
1750
1642
|
type: "if",
|
|
1751
1643
|
locations: [{
|
|
1752
1644
|
start: {
|
|
1753
|
-
line:
|
|
1645
|
+
line: 108,
|
|
1754
1646
|
column: 8
|
|
1755
1647
|
},
|
|
1756
1648
|
end: {
|
|
1757
|
-
line:
|
|
1649
|
+
line: 110,
|
|
1758
1650
|
column: 9
|
|
1759
1651
|
}
|
|
1760
1652
|
}, {
|
|
@@ -1767,60 +1659,60 @@ function cov_ogldeftyv() {
|
|
|
1767
1659
|
column: undefined
|
|
1768
1660
|
}
|
|
1769
1661
|
}],
|
|
1770
|
-
line:
|
|
1662
|
+
line: 108
|
|
1771
1663
|
},
|
|
1772
1664
|
"11": {
|
|
1773
1665
|
loc: {
|
|
1774
1666
|
start: {
|
|
1775
|
-
line:
|
|
1667
|
+
line: 108,
|
|
1776
1668
|
column: 12
|
|
1777
1669
|
},
|
|
1778
1670
|
end: {
|
|
1779
|
-
line:
|
|
1671
|
+
line: 108,
|
|
1780
1672
|
column: 60
|
|
1781
1673
|
}
|
|
1782
1674
|
},
|
|
1783
1675
|
type: "binary-expr",
|
|
1784
1676
|
locations: [{
|
|
1785
1677
|
start: {
|
|
1786
|
-
line:
|
|
1678
|
+
line: 108,
|
|
1787
1679
|
column: 12
|
|
1788
1680
|
},
|
|
1789
1681
|
end: {
|
|
1790
|
-
line:
|
|
1682
|
+
line: 108,
|
|
1791
1683
|
column: 34
|
|
1792
1684
|
}
|
|
1793
1685
|
}, {
|
|
1794
1686
|
start: {
|
|
1795
|
-
line:
|
|
1687
|
+
line: 108,
|
|
1796
1688
|
column: 38
|
|
1797
1689
|
},
|
|
1798
1690
|
end: {
|
|
1799
|
-
line:
|
|
1691
|
+
line: 108,
|
|
1800
1692
|
column: 60
|
|
1801
1693
|
}
|
|
1802
1694
|
}],
|
|
1803
|
-
line:
|
|
1695
|
+
line: 108
|
|
1804
1696
|
},
|
|
1805
1697
|
"12": {
|
|
1806
1698
|
loc: {
|
|
1807
1699
|
start: {
|
|
1808
|
-
line:
|
|
1700
|
+
line: 112,
|
|
1809
1701
|
column: 8
|
|
1810
1702
|
},
|
|
1811
1703
|
end: {
|
|
1812
|
-
line:
|
|
1704
|
+
line: 114,
|
|
1813
1705
|
column: 9
|
|
1814
1706
|
}
|
|
1815
1707
|
},
|
|
1816
1708
|
type: "if",
|
|
1817
1709
|
locations: [{
|
|
1818
1710
|
start: {
|
|
1819
|
-
line:
|
|
1711
|
+
line: 112,
|
|
1820
1712
|
column: 8
|
|
1821
1713
|
},
|
|
1822
1714
|
end: {
|
|
1823
|
-
line:
|
|
1715
|
+
line: 114,
|
|
1824
1716
|
column: 9
|
|
1825
1717
|
}
|
|
1826
1718
|
}, {
|
|
@@ -1833,60 +1725,27 @@ function cov_ogldeftyv() {
|
|
|
1833
1725
|
column: undefined
|
|
1834
1726
|
}
|
|
1835
1727
|
}],
|
|
1836
|
-
line:
|
|
1728
|
+
line: 112
|
|
1837
1729
|
},
|
|
1838
1730
|
"13": {
|
|
1839
1731
|
loc: {
|
|
1840
1732
|
start: {
|
|
1841
|
-
line:
|
|
1842
|
-
column: 8
|
|
1843
|
-
},
|
|
1844
|
-
end: {
|
|
1845
|
-
line: 130,
|
|
1846
|
-
column: 9
|
|
1847
|
-
}
|
|
1848
|
-
},
|
|
1849
|
-
type: "if",
|
|
1850
|
-
locations: [{
|
|
1851
|
-
start: {
|
|
1852
|
-
line: 123,
|
|
1853
|
-
column: 8
|
|
1854
|
-
},
|
|
1855
|
-
end: {
|
|
1856
|
-
line: 130,
|
|
1857
|
-
column: 9
|
|
1858
|
-
}
|
|
1859
|
-
}, {
|
|
1860
|
-
start: {
|
|
1861
|
-
line: 126,
|
|
1862
|
-
column: 13
|
|
1863
|
-
},
|
|
1864
|
-
end: {
|
|
1865
|
-
line: 130,
|
|
1866
|
-
column: 9
|
|
1867
|
-
}
|
|
1868
|
-
}],
|
|
1869
|
-
line: 123
|
|
1870
|
-
},
|
|
1871
|
-
"14": {
|
|
1872
|
-
loc: {
|
|
1873
|
-
start: {
|
|
1874
|
-
line: 141,
|
|
1733
|
+
line: 125,
|
|
1875
1734
|
column: 8
|
|
1876
1735
|
},
|
|
1877
1736
|
end: {
|
|
1878
|
-
line:
|
|
1737
|
+
line: 127,
|
|
1879
1738
|
column: 9
|
|
1880
1739
|
}
|
|
1881
1740
|
},
|
|
1882
1741
|
type: "if",
|
|
1883
1742
|
locations: [{
|
|
1884
1743
|
start: {
|
|
1885
|
-
line:
|
|
1744
|
+
line: 125,
|
|
1886
1745
|
column: 8
|
|
1887
1746
|
},
|
|
1888
1747
|
end: {
|
|
1889
|
-
line:
|
|
1748
|
+
line: 127,
|
|
1890
1749
|
column: 9
|
|
1891
1750
|
}
|
|
1892
1751
|
}, {
|
|
@@ -1899,60 +1758,60 @@ function cov_ogldeftyv() {
|
|
|
1899
1758
|
column: undefined
|
|
1900
1759
|
}
|
|
1901
1760
|
}],
|
|
1902
|
-
line:
|
|
1761
|
+
line: 125
|
|
1903
1762
|
},
|
|
1904
|
-
"
|
|
1763
|
+
"14": {
|
|
1905
1764
|
loc: {
|
|
1906
1765
|
start: {
|
|
1907
|
-
line:
|
|
1766
|
+
line: 125,
|
|
1908
1767
|
column: 12
|
|
1909
1768
|
},
|
|
1910
1769
|
end: {
|
|
1911
|
-
line:
|
|
1770
|
+
line: 125,
|
|
1912
1771
|
column: 60
|
|
1913
1772
|
}
|
|
1914
1773
|
},
|
|
1915
1774
|
type: "binary-expr",
|
|
1916
1775
|
locations: [{
|
|
1917
1776
|
start: {
|
|
1918
|
-
line:
|
|
1777
|
+
line: 125,
|
|
1919
1778
|
column: 12
|
|
1920
1779
|
},
|
|
1921
1780
|
end: {
|
|
1922
|
-
line:
|
|
1781
|
+
line: 125,
|
|
1923
1782
|
column: 34
|
|
1924
1783
|
}
|
|
1925
1784
|
}, {
|
|
1926
1785
|
start: {
|
|
1927
|
-
line:
|
|
1786
|
+
line: 125,
|
|
1928
1787
|
column: 38
|
|
1929
1788
|
},
|
|
1930
1789
|
end: {
|
|
1931
|
-
line:
|
|
1790
|
+
line: 125,
|
|
1932
1791
|
column: 60
|
|
1933
1792
|
}
|
|
1934
1793
|
}],
|
|
1935
|
-
line:
|
|
1794
|
+
line: 125
|
|
1936
1795
|
},
|
|
1937
|
-
"
|
|
1796
|
+
"15": {
|
|
1938
1797
|
loc: {
|
|
1939
1798
|
start: {
|
|
1940
|
-
line:
|
|
1799
|
+
line: 134,
|
|
1941
1800
|
column: 8
|
|
1942
1801
|
},
|
|
1943
1802
|
end: {
|
|
1944
|
-
line:
|
|
1803
|
+
line: 135,
|
|
1945
1804
|
column: 60
|
|
1946
1805
|
}
|
|
1947
1806
|
},
|
|
1948
1807
|
type: "if",
|
|
1949
1808
|
locations: [{
|
|
1950
1809
|
start: {
|
|
1951
|
-
line:
|
|
1810
|
+
line: 134,
|
|
1952
1811
|
column: 8
|
|
1953
1812
|
},
|
|
1954
1813
|
end: {
|
|
1955
|
-
line:
|
|
1814
|
+
line: 135,
|
|
1956
1815
|
column: 60
|
|
1957
1816
|
}
|
|
1958
1817
|
}, {
|
|
@@ -1965,27 +1824,27 @@ function cov_ogldeftyv() {
|
|
|
1965
1824
|
column: undefined
|
|
1966
1825
|
}
|
|
1967
1826
|
}],
|
|
1968
|
-
line:
|
|
1827
|
+
line: 134
|
|
1969
1828
|
},
|
|
1970
|
-
"
|
|
1829
|
+
"16": {
|
|
1971
1830
|
loc: {
|
|
1972
1831
|
start: {
|
|
1973
|
-
line:
|
|
1832
|
+
line: 163,
|
|
1974
1833
|
column: 8
|
|
1975
1834
|
},
|
|
1976
1835
|
end: {
|
|
1977
|
-
line:
|
|
1836
|
+
line: 164,
|
|
1978
1837
|
column: 28
|
|
1979
1838
|
}
|
|
1980
1839
|
},
|
|
1981
1840
|
type: "if",
|
|
1982
1841
|
locations: [{
|
|
1983
1842
|
start: {
|
|
1984
|
-
line:
|
|
1843
|
+
line: 163,
|
|
1985
1844
|
column: 8
|
|
1986
1845
|
},
|
|
1987
1846
|
end: {
|
|
1988
|
-
line:
|
|
1847
|
+
line: 164,
|
|
1989
1848
|
column: 28
|
|
1990
1849
|
}
|
|
1991
1850
|
}, {
|
|
@@ -1998,27 +1857,27 @@ function cov_ogldeftyv() {
|
|
|
1998
1857
|
column: undefined
|
|
1999
1858
|
}
|
|
2000
1859
|
}],
|
|
2001
|
-
line:
|
|
1860
|
+
line: 163
|
|
2002
1861
|
},
|
|
2003
|
-
"
|
|
1862
|
+
"17": {
|
|
2004
1863
|
loc: {
|
|
2005
1864
|
start: {
|
|
2006
|
-
line:
|
|
1865
|
+
line: 168,
|
|
2007
1866
|
column: 16
|
|
2008
1867
|
},
|
|
2009
1868
|
end: {
|
|
2010
|
-
line:
|
|
1869
|
+
line: 169,
|
|
2011
1870
|
column: 37
|
|
2012
1871
|
}
|
|
2013
1872
|
},
|
|
2014
1873
|
type: "if",
|
|
2015
1874
|
locations: [{
|
|
2016
1875
|
start: {
|
|
2017
|
-
line:
|
|
1876
|
+
line: 168,
|
|
2018
1877
|
column: 16
|
|
2019
1878
|
},
|
|
2020
1879
|
end: {
|
|
2021
|
-
line:
|
|
1880
|
+
line: 169,
|
|
2022
1881
|
column: 37
|
|
2023
1882
|
}
|
|
2024
1883
|
}, {
|
|
@@ -2031,27 +1890,27 @@ function cov_ogldeftyv() {
|
|
|
2031
1890
|
column: undefined
|
|
2032
1891
|
}
|
|
2033
1892
|
}],
|
|
2034
|
-
line:
|
|
1893
|
+
line: 168
|
|
2035
1894
|
},
|
|
2036
|
-
"
|
|
1895
|
+
"18": {
|
|
2037
1896
|
loc: {
|
|
2038
1897
|
start: {
|
|
2039
|
-
line:
|
|
1898
|
+
line: 178,
|
|
2040
1899
|
column: 24
|
|
2041
1900
|
},
|
|
2042
1901
|
end: {
|
|
2043
|
-
line:
|
|
1902
|
+
line: 179,
|
|
2044
1903
|
column: 102
|
|
2045
1904
|
}
|
|
2046
1905
|
},
|
|
2047
1906
|
type: "if",
|
|
2048
1907
|
locations: [{
|
|
2049
1908
|
start: {
|
|
2050
|
-
line:
|
|
1909
|
+
line: 178,
|
|
2051
1910
|
column: 24
|
|
2052
1911
|
},
|
|
2053
1912
|
end: {
|
|
2054
|
-
line:
|
|
1913
|
+
line: 179,
|
|
2055
1914
|
column: 102
|
|
2056
1915
|
}
|
|
2057
1916
|
}, {
|
|
@@ -2064,27 +1923,27 @@ function cov_ogldeftyv() {
|
|
|
2064
1923
|
column: undefined
|
|
2065
1924
|
}
|
|
2066
1925
|
}],
|
|
2067
|
-
line:
|
|
1926
|
+
line: 178
|
|
2068
1927
|
},
|
|
2069
|
-
"
|
|
1928
|
+
"19": {
|
|
2070
1929
|
loc: {
|
|
2071
1930
|
start: {
|
|
2072
|
-
line:
|
|
1931
|
+
line: 186,
|
|
2073
1932
|
column: 16
|
|
2074
1933
|
},
|
|
2075
1934
|
end: {
|
|
2076
|
-
line:
|
|
1935
|
+
line: 187,
|
|
2077
1936
|
column: 113
|
|
2078
1937
|
}
|
|
2079
1938
|
},
|
|
2080
1939
|
type: "if",
|
|
2081
1940
|
locations: [{
|
|
2082
1941
|
start: {
|
|
2083
|
-
line:
|
|
1942
|
+
line: 186,
|
|
2084
1943
|
column: 16
|
|
2085
1944
|
},
|
|
2086
1945
|
end: {
|
|
2087
|
-
line:
|
|
1946
|
+
line: 187,
|
|
2088
1947
|
column: 113
|
|
2089
1948
|
}
|
|
2090
1949
|
}, {
|
|
@@ -2097,27 +1956,27 @@ function cov_ogldeftyv() {
|
|
|
2097
1956
|
column: undefined
|
|
2098
1957
|
}
|
|
2099
1958
|
}],
|
|
2100
|
-
line:
|
|
1959
|
+
line: 186
|
|
2101
1960
|
},
|
|
2102
|
-
"
|
|
1961
|
+
"20": {
|
|
2103
1962
|
loc: {
|
|
2104
1963
|
start: {
|
|
2105
|
-
line:
|
|
1964
|
+
line: 208,
|
|
2106
1965
|
column: 12
|
|
2107
1966
|
},
|
|
2108
1967
|
end: {
|
|
2109
|
-
line:
|
|
1968
|
+
line: 209,
|
|
2110
1969
|
column: 44
|
|
2111
1970
|
}
|
|
2112
1971
|
},
|
|
2113
1972
|
type: "if",
|
|
2114
1973
|
locations: [{
|
|
2115
1974
|
start: {
|
|
2116
|
-
line:
|
|
1975
|
+
line: 208,
|
|
2117
1976
|
column: 12
|
|
2118
1977
|
},
|
|
2119
1978
|
end: {
|
|
2120
|
-
line:
|
|
1979
|
+
line: 209,
|
|
2121
1980
|
column: 44
|
|
2122
1981
|
}
|
|
2123
1982
|
}, {
|
|
@@ -2130,7 +1989,7 @@ function cov_ogldeftyv() {
|
|
|
2130
1989
|
column: undefined
|
|
2131
1990
|
}
|
|
2132
1991
|
}],
|
|
2133
|
-
line:
|
|
1992
|
+
line: 208
|
|
2134
1993
|
}
|
|
2135
1994
|
},
|
|
2136
1995
|
s: {
|
|
@@ -2211,13 +2070,7 @@ function cov_ogldeftyv() {
|
|
|
2211
2070
|
"74": 0,
|
|
2212
2071
|
"75": 0,
|
|
2213
2072
|
"76": 0,
|
|
2214
|
-
"77": 0
|
|
2215
|
-
"78": 0,
|
|
2216
|
-
"79": 0,
|
|
2217
|
-
"80": 0,
|
|
2218
|
-
"81": 0,
|
|
2219
|
-
"82": 0,
|
|
2220
|
-
"83": 0
|
|
2073
|
+
"77": 0
|
|
2221
2074
|
},
|
|
2222
2075
|
f: {
|
|
2223
2076
|
"0": 0,
|
|
@@ -2239,9 +2092,7 @@ function cov_ogldeftyv() {
|
|
|
2239
2092
|
"16": 0,
|
|
2240
2093
|
"17": 0,
|
|
2241
2094
|
"18": 0,
|
|
2242
|
-
"19": 0
|
|
2243
|
-
"20": 0,
|
|
2244
|
-
"21": 0
|
|
2095
|
+
"19": 0
|
|
2245
2096
|
},
|
|
2246
2097
|
b: {
|
|
2247
2098
|
"0": [0, 0, 0],
|
|
@@ -2264,19 +2115,18 @@ function cov_ogldeftyv() {
|
|
|
2264
2115
|
"17": [0, 0],
|
|
2265
2116
|
"18": [0, 0],
|
|
2266
2117
|
"19": [0, 0],
|
|
2267
|
-
"20": [0, 0]
|
|
2268
|
-
"21": [0, 0]
|
|
2118
|
+
"20": [0, 0]
|
|
2269
2119
|
},
|
|
2270
2120
|
inputSourceMap: {
|
|
2271
2121
|
version: 3,
|
|
2272
2122
|
file: "ITwinLocalization.js",
|
|
2273
2123
|
sources: ["C:\\agent\\_work\\1\\s\\core\\i18n\\src\\ITwinLocalization.ts"],
|
|
2274
2124
|
names: [],
|
|
2275
|
-
mappings: ";AAAA;;;+FAG+F;AAC/F;;GAEG;;;;;;AAEH,sDAA2E;AAC3E,wGAAmG;AACnG,gFAA+D;AAC/D,sDAA6C;AAG7C,MAAM,mBAAmB,GAAW,CAAC,CAAC,CAAC,8GAA8G;AAcrJ;;;GAGG;AACH,MAAa,iBAAiB;
|
|
2276
|
-
sourcesContent: ["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Localization\n */\n\nimport i18next, { i18n, InitOptions, Module, TOptionsBase } from \"i18next\";\nimport i18nextBrowserLanguageDetector, { DetectorOptions } from \"i18next-browser-languagedetector\";\nimport Backend, { BackendOptions } from \"i18next-http-backend\";\nimport { Logger } from \"@itwin/core-bentley\";\nimport type { Localization } from \"@itwin/core-common\";\n\nconst DEFAULT_MAX_RETRIES: number = 1; // a low number prevents wasted time and potential timeouts when requesting localization files throws an error\n\n/** Options for ITwinLocalization\n * @public\n */\nexport interface LocalizationOptions {\n urlTemplate?: string;\n backendPlugin?: Module;\n detectorPlugin?: Module;\n initOptions?: InitOptions;\n backendHttpOptions?: BackendOptions;\n detectorOptions?: DetectorOptions;\n}\n\n/** Supplies localizations for iTwin.js\n * @note this class uses the [i18next](https://www.i18next.com/) package.\n * @public\n */\nexport class ITwinLocalization implements Localization {\n public i18next: i18n;\n private readonly _initOptions: InitOptions;\n private readonly _backendOptions: BackendOptions;\n private readonly _detectionOptions: DetectorOptions;\n private readonly _namespaces = new Map<string, Promise<void>>();\n\n public constructor(options?: LocalizationOptions) {\n this.i18next = i18next.createInstance();\n\n this._backendOptions = {\n loadPath: options?.urlTemplate ?? \"locales/{{lng}}/{{ns}}.json\",\n crossDomain: true,\n ...options?.backendHttpOptions,\n };\n\n this._detectionOptions = {\n order: [\"querystring\", \"navigator\", \"htmlTag\"],\n lookupQuerystring: \"lng\",\n caches: [],\n ...options?.detectorOptions,\n };\n\n this._initOptions = {\n interpolation: { escapeValue: true },\n fallbackLng: \"en\",\n maxRetries: DEFAULT_MAX_RETRIES,\n backend: this._backendOptions,\n detection: this._detectionOptions,\n ...options?.initOptions,\n };\n\n this.i18next\n .use(options?.detectorPlugin ?? i18nextBrowserLanguageDetector)\n .use(options?.backendPlugin ?? Backend)\n .use(TranslationLogger);\n }\n\n public async initialize(namespaces: string[]): Promise<void> {\n\n // Also consider namespaces passed into constructor\n const initNamespaces: string[] = [this._initOptions.ns || []].flat();\n const combinedNamespaces: Set<string> = new Set([...namespaces, ...initNamespaces]); // without duplicates\n\n const defaultNamespace: string | false | readonly string[] = this._initOptions.defaultNS ?? namespaces[0];\n if (defaultNamespace)\n combinedNamespaces.add(defaultNamespace as string); // Make sure default namespace is in namespaces list\n\n const initOptions: InitOptions = {\n ...this._initOptions,\n defaultNS: defaultNamespace,\n ns: [...combinedNamespaces],\n };\n\n // if in a development environment, set debugging\n if (process.env.NODE_ENV === \"development\")\n initOptions.debug = true;\n\n const initPromise = this.i18next.init(initOptions) as unknown as Promise<void>;\n\n for (const ns of namespaces)\n this._namespaces.set(ns, initPromise);\n\n return initPromise;\n }\n\n /** Replace all instances of `%{key}` within a string with the translations of those keys.\n * For example:\n * ``` ts\n * \"MyKeys\": {\n * \"Key1\": \"First value\",\n * \"Key2\": \"Second value\"\n * }\n * ```\n *\n * ``` ts\n * i18.translateKeys(\"string with %{MyKeys.Key1} followed by %{MyKeys.Key2}!\"\") // returns \"string with First Value followed by Second Value!\"\n * ```\n * @param line The input line, potentially containing %{keys}.\n * @returns The line with all %{keys} translated\n * @public\n */\n public getLocalizedKeys(line: string): string {\n return line.replace(/\\%\\{(.+?)\\}/g, (_match, tag) => this.getLocalizedString(tag));\n }\n\n /** Return the translated value of a key.\n * @param key - the key that matches a property in the JSON localization file.\n * @note The key includes the namespace, which identifies the particular localization file that contains the property,\n * followed by a colon, followed by the property in the JSON file.\n * For example:\n * ``` ts\n * const dataString: string = IModelApp.localization.getLocalizedString(\"iModelJs:BackgroundMap.BingDataAttribution\");\n * ```\n * assigns to dataString the string with property BackgroundMap.BingDataAttribution from the iModelJs.json localization file.\n * @returns The string corresponding to the first key that resolves.\n * @throws Error if no keys resolve to a string.\n * @public\n */\n public getLocalizedString(key: string | string[], options?: TOptionsBase): string {\n if (options?.returnDetails || options?.returnObjects) {\n throw new Error(\"Translation key must map to a string, but the given options will result in an object\");\n }\n\n const value = this.i18next.t(key, options);\n\n if (typeof value !== \"string\") {\n throw new Error(\"Translation key(s) string not found\");\n }\n\n return value;\n }\n\n /** Similar to `getLocalizedString` but the default namespace is a separate parameter and the key does not need\n * to include a namespace. If a key includes a namespace, that namespace will be used for interpolating that key.\n * @param namespace - the namespace that identifies the particular localization file that contains the property.\n * @param key - the key that matches a property in the JSON localization file.\n * @returns The string corresponding to the first key that resolves.\n * @throws Error if no keys resolve to a string.\n * @internal\n */\n public getLocalizedStringWithNamespace(namespace: string, key: string | string[], options?: TOptionsBase): string {\n let fullKey: string | string[] = \"\";\n\n if (typeof key === \"string\") {\n fullKey = `${namespace}:${key}`;\n } else {\n fullKey = key.map((subKey: string) => {\n return `${namespace}:${subKey}`;\n });\n }\n\n return this.getLocalizedString(fullKey, options);\n }\n\n /** Gets the English translation.\n * @param namespace - the namespace that identifies the particular localization file that contains the property.\n * @param key - the key that matches a property in the JSON localization file.\n * @returns The string corresponding to the first key that resolves.\n * @throws Error if no keys resolve to a string.\n * @internal\n */\n public getEnglishString(namespace: string, key: string | string[], options?: TOptionsBase): string {\n if (options?.returnDetails || options?.returnObjects) {\n throw new Error(\"Translation key must map to a string, but the given options will result in an object\");\n }\n\n options = {\n ...options,\n ns: namespace, // ensure namespace argument is used\n };\n\n const en = this.i18next.getFixedT(\"en\", namespace);\n const str = en(key, options);\n if (typeof str !== \"string\")\n throw new Error(\"Translation key(s) not found\");\n\n return str;\n }\n\n /** Get the promise for an already registered Namespace.\n * @param name - the name of the namespace\n * @public\n */\n public getNamespacePromise(name: string): Promise<void> | undefined {\n return this._namespaces.get(name);\n }\n\n /** @internal */\n public getLanguageList(): readonly string[] {\n return this.i18next.languages;\n }\n\n /** override the language detected in the browser */\n public async changeLanguage(language: string) {\n return this.i18next.changeLanguage(language) as unknown as Promise<void>;\n }\n\n /** Register a new Namespace and return it. If the namespace is already registered, it will be returned.\n * @param name - the name of the namespace, which is the base name of the JSON file that contains the localization properties.\n * @note - The registerNamespace method starts fetching the appropriate version of the JSON localization file from the server,\n * based on the current locale. To make sure that fetch is complete before performing translations from this namespace, await\n * fulfillment of the readPromise Promise property of the returned LocalizationNamespace.\n * @see [Localization in iTwin.js]($docs/learning/frontend/Localization.md)\n * @public\n */\n public async registerNamespace(name: string): Promise<void> {\n const existing = this._namespaces.get(name);\n if (existing !== undefined)\n return existing;\n\n const theReadPromise = new Promise<void>((resolve) => {\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.i18next.loadNamespaces(name, (err) => {\n if (!err)\n return resolve();\n\n // Here we got a non-null err object.\n // This method is called when the system has attempted to load the resources for the namespaces for each possible locale.\n // For example 'fr-ca' might be the most specific locale, in which case 'fr' and 'en' are fallback locales.\n // Using Backend from i18next-http-backend, err will be an array of strings of each namespace it tried to read and its locale.\n // There might be errs for some other namespaces as well as this one. We resolve the promise unless there's an error for each possible locale.\n let locales = this.getLanguageList().map((thisLocale: any) => `/${thisLocale}/`);\n\n try {\n for (const thisError of err) {\n if (typeof thisError === \"string\")\n locales = locales.filter((thisLocale) => !thisError.includes(thisLocale));\n }\n } catch {\n locales = [];\n }\n // if we removed every locale from the array, it wasn't loaded.\n if (locales.length === 0)\n Logger.logError(\"i18n\", `No resources for namespace ${name} could be loaded`);\n\n resolve();\n });\n });\n this._namespaces.set(name, theReadPromise);\n return theReadPromise;\n }\n\n /** @internal */\n public unregisterNamespace(name: string): void {\n this._namespaces.delete(name);\n }\n}\n\nclass TranslationLogger {\n public static readonly type = \"logger\";\n public log(args: string[]) { Logger.logInfo(\"i18n\", this.createLogMessage(args)); }\n public warn(args: string[]) { Logger.logWarning(\"i18n\", this.createLogMessage(args)); }\n public error(args: string[]) { Logger.logError(\"i18n\", this.createLogMessage(args)); }\n private createLogMessage(args: string[]) {\n let message = args[0];\n for (let i = 1; i < args.length; ++i) {\n if (typeof args[i] === \"string\")\n message += `\\n ${args[i]}`;\n }\n return message;\n }\n}\n"]
|
|
2125
|
+
mappings: "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",
|
|
2126
|
+
sourcesContent: ["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Localization\n */\n\nimport i18next, { i18n, InitOptions, Module, TOptionsBase } from \"i18next\";\nimport i18nextBrowserLanguageDetector, { DetectorOptions } from \"i18next-browser-languagedetector\";\nimport Backend, { BackendOptions } from \"i18next-http-backend\";\nimport { Logger } from \"@itwin/core-bentley\";\nimport type { Localization } from \"@itwin/core-common\";\n\nconst DEFAULT_MAX_RETRIES: number = 1; // a low number prevents wasted time and potential timeouts when requesting localization files throws an error\n\n/** Options for ITwinLocalization\n * @public\n */\nexport interface LocalizationOptions {\n urlTemplate?: string;\n backendPlugin?: Module;\n detectorPlugin?: Module;\n initOptions?: InitOptions;\n backendHttpOptions?: BackendOptions;\n detectorOptions?: DetectorOptions;\n}\n\n/** Supplies localizations for iTwin.js\n * @note this class uses the [i18next](https://www.i18next.com/) package.\n * @public\n */\nexport class ITwinLocalization implements Localization {\n public i18next: i18n;\n private readonly _initOptions: InitOptions;\n private readonly _backendOptions: BackendOptions;\n private readonly _detectionOptions: DetectorOptions;\n private readonly _namespaces = new Map<string, Promise<void>>();\n\n public constructor(options?: LocalizationOptions) {\n this.i18next = i18next.createInstance();\n\n this._backendOptions = {\n loadPath: options?.urlTemplate ?? \"locales/{{lng}}/{{ns}}.json\",\n crossDomain: true,\n ...options?.backendHttpOptions,\n };\n\n this._detectionOptions = {\n order: [\"querystring\", \"navigator\", \"htmlTag\"],\n lookupQuerystring: \"lng\",\n caches: [],\n ...options?.detectorOptions,\n };\n\n this._initOptions = {\n interpolation: { escapeValue: true },\n fallbackLng: \"en\",\n maxRetries: DEFAULT_MAX_RETRIES,\n backend: this._backendOptions,\n detection: this._detectionOptions,\n ...options?.initOptions,\n };\n\n this.i18next\n .use(options?.detectorPlugin ?? i18nextBrowserLanguageDetector)\n .use(options?.backendPlugin ?? Backend)\n .use(TranslationLogger);\n }\n\n public async initialize(namespaces: string[]): Promise<void> {\n\n // Also consider namespaces passed into constructor\n const initNamespaces: string[] = [this._initOptions.ns || []].flat();\n const combinedNamespaces: Set<string> = new Set([...namespaces, ...initNamespaces]); // without duplicates\n\n const defaultNamespace: string | false | readonly string[] = this._initOptions.defaultNS ?? namespaces[0];\n if (defaultNamespace)\n combinedNamespaces.add(defaultNamespace as string); // Make sure default namespace is in namespaces list\n\n const initOptions: InitOptions = {\n ...this._initOptions,\n defaultNS: defaultNamespace,\n ns: [...combinedNamespaces],\n };\n\n // if in a development environment, set debugging\n if (process.env.NODE_ENV === \"development\")\n initOptions.debug = true;\n\n const initPromise = this.i18next.init(initOptions) as unknown as Promise<void>;\n\n for (const ns of namespaces)\n this._namespaces.set(ns, initPromise);\n\n return initPromise;\n }\n\n /** Replace all instances of `%{key}` within a string with the translations of those keys.\n * For example:\n * ``` ts\n * \"MyKeys\": {\n * \"Key1\": \"First value\",\n * \"Key2\": \"Second value\"\n * }\n * ```\n *\n * ``` ts\n * i18.translateKeys(\"string with %{MyKeys.Key1} followed by %{MyKeys.Key2}!\"\") // returns \"string with First Value followed by Second Value!\"\n * ```\n * @param line The input line, potentially containing %{keys}.\n * @returns The line with all %{keys} translated\n * @public\n */\n public getLocalizedKeys(line: string): string {\n return line.replace(/\\%\\{(.+?)\\}/g, (_match, tag) => this.getLocalizedString(tag));\n }\n\n /** Return the translated value of a key.\n * @param key - the key that matches a property in the JSON localization file.\n * @note The key includes the namespace, which identifies the particular localization file that contains the property,\n * followed by a colon, followed by the property in the JSON file.\n * For example:\n * ``` ts\n * const dataString: string = IModelApp.localization.getLocalizedString(\"iModelJs:BackgroundMap.BingDataAttribution\");\n * ```\n * assigns to dataString the string with property BackgroundMap.BingDataAttribution from the iModelJs.json localization file.\n * @returns The string corresponding to the first key that resolves.\n * @throws Error if no keys resolve to a string.\n * @public\n */\n public getLocalizedString(key: string | string[], options?: TOptionsBase): string {\n if (options?.returnDetails || options?.returnObjects) {\n throw new Error(\"Translation key must map to a string, but the given options will result in an object\");\n }\n\n const value = this.i18next.t(key, options);\n\n if (typeof value !== \"string\") {\n throw new Error(\"Translation key(s) string not found\");\n }\n\n return value;\n }\n\n /** Gets the English translation.\n * @param namespace - the namespace that identifies the particular localization file that contains the property.\n * @param key - the key that matches a property in the JSON localization file.\n * @returns The string corresponding to the first key that resolves.\n * @throws Error if no keys resolve to a string.\n * @internal\n */\n public getEnglishString(namespace: string, key: string | string[], options?: TOptionsBase): string {\n if (options?.returnDetails || options?.returnObjects) {\n throw new Error(\"Translation key must map to a string, but the given options will result in an object\");\n }\n\n options = {\n ...options,\n ns: namespace, // ensure namespace argument is used\n };\n\n const en = this.i18next.getFixedT(\"en\", namespace);\n const str = en(key, options);\n if (typeof str !== \"string\")\n throw new Error(\"Translation key(s) not found\");\n\n return str;\n }\n\n /** Get the promise for an already registered Namespace.\n * @param name - the name of the namespace\n * @public\n */\n public getNamespacePromise(name: string): Promise<void> | undefined {\n return this._namespaces.get(name);\n }\n\n /** @internal */\n public getLanguageList(): readonly string[] {\n return this.i18next.languages;\n }\n\n /** override the language detected in the browser */\n public async changeLanguage(language: string) {\n return this.i18next.changeLanguage(language) as unknown as Promise<void>;\n }\n\n /** Register a new Namespace and return it. If the namespace is already registered, it will be returned.\n * @param name - the name of the namespace, which is the base name of the JSON file that contains the localization properties.\n * @note - The registerNamespace method starts fetching the appropriate version of the JSON localization file from the server,\n * based on the current locale. To make sure that fetch is complete before performing translations from this namespace, await\n * fulfillment of the readPromise Promise property of the returned LocalizationNamespace.\n * @see [Localization in iTwin.js]($docs/learning/frontend/Localization.md)\n * @public\n */\n public async registerNamespace(name: string): Promise<void> {\n const existing = this._namespaces.get(name);\n if (existing !== undefined)\n return existing;\n\n const theReadPromise = new Promise<void>((resolve) => {\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.i18next.loadNamespaces(name, (err) => {\n if (!err)\n return resolve();\n\n // Here we got a non-null err object.\n // This method is called when the system has attempted to load the resources for the namespaces for each possible locale.\n // For example 'fr-ca' might be the most specific locale, in which case 'fr' and 'en' are fallback locales.\n // Using Backend from i18next-http-backend, err will be an array of strings of each namespace it tried to read and its locale.\n // There might be errs for some other namespaces as well as this one. We resolve the promise unless there's an error for each possible locale.\n let locales = this.getLanguageList().map((thisLocale: any) => `/${thisLocale}/`);\n\n try {\n for (const thisError of err) {\n if (typeof thisError === \"string\")\n locales = locales.filter((thisLocale) => !thisError.includes(thisLocale));\n }\n } catch {\n locales = [];\n }\n // if we removed every locale from the array, it wasn't loaded.\n if (locales.length === 0)\n Logger.logError(\"i18n\", `No resources for namespace ${name} could be loaded`);\n\n resolve();\n });\n });\n this._namespaces.set(name, theReadPromise);\n return theReadPromise;\n }\n\n /** @internal */\n public unregisterNamespace(name: string): void {\n this._namespaces.delete(name);\n }\n}\n\nclass TranslationLogger {\n public static readonly type = \"logger\";\n public log(args: string[]) { Logger.logInfo(\"i18n\", this.createLogMessage(args)); }\n public warn(args: string[]) { Logger.logWarning(\"i18n\", this.createLogMessage(args)); }\n public error(args: string[]) { Logger.logError(\"i18n\", this.createLogMessage(args)); }\n private createLogMessage(args: string[]) {\n let message = args[0];\n for (let i = 1; i < args.length; ++i) {\n if (typeof args[i] === \"string\")\n message += `\\n ${args[i]}`;\n }\n return message;\n }\n}\n"]
|
|
2277
2127
|
},
|
|
2278
2128
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
2279
|
-
hash: "
|
|
2129
|
+
hash: "dc42415b822dd4de30f4e9da695d0e05d9c36eef"
|
|
2280
2130
|
};
|
|
2281
2131
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
2282
2132
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -2315,10 +2165,13 @@ const DEFAULT_MAX_RETRIES = (cov_ogldeftyv().s[8]++, 1); // a low number prevent
|
|
|
2315
2165
|
* @public
|
|
2316
2166
|
*/
|
|
2317
2167
|
class ITwinLocalization {
|
|
2168
|
+
i18next;
|
|
2169
|
+
_initOptions;
|
|
2170
|
+
_backendOptions;
|
|
2171
|
+
_detectionOptions;
|
|
2172
|
+
_namespaces = (cov_ogldeftyv().s[9]++, new Map());
|
|
2318
2173
|
constructor(options) {
|
|
2319
2174
|
cov_ogldeftyv().f[1]++;
|
|
2320
|
-
cov_ogldeftyv().s[9]++;
|
|
2321
|
-
this._namespaces = new Map();
|
|
2322
2175
|
cov_ogldeftyv().s[10]++;
|
|
2323
2176
|
this.i18next = i18next_1.default.createInstance();
|
|
2324
2177
|
cov_ogldeftyv().s[11]++;
|
|
@@ -2441,34 +2294,6 @@ class ITwinLocalization {
|
|
|
2441
2294
|
cov_ogldeftyv().s[34]++;
|
|
2442
2295
|
return value;
|
|
2443
2296
|
}
|
|
2444
|
-
/** Similar to `getLocalizedString` but the default namespace is a separate parameter and the key does not need
|
|
2445
|
-
* to include a namespace. If a key includes a namespace, that namespace will be used for interpolating that key.
|
|
2446
|
-
* @param namespace - the namespace that identifies the particular localization file that contains the property.
|
|
2447
|
-
* @param key - the key that matches a property in the JSON localization file.
|
|
2448
|
-
* @returns The string corresponding to the first key that resolves.
|
|
2449
|
-
* @throws Error if no keys resolve to a string.
|
|
2450
|
-
* @internal
|
|
2451
|
-
*/
|
|
2452
|
-
getLocalizedStringWithNamespace(namespace, key, options) {
|
|
2453
|
-
cov_ogldeftyv().f[6]++;
|
|
2454
|
-
let fullKey = (cov_ogldeftyv().s[35]++, "");
|
|
2455
|
-
cov_ogldeftyv().s[36]++;
|
|
2456
|
-
if (typeof key === "string") {
|
|
2457
|
-
cov_ogldeftyv().b[13][0]++;
|
|
2458
|
-
cov_ogldeftyv().s[37]++;
|
|
2459
|
-
fullKey = `${namespace}:${key}`;
|
|
2460
|
-
} else {
|
|
2461
|
-
cov_ogldeftyv().b[13][1]++;
|
|
2462
|
-
cov_ogldeftyv().s[38]++;
|
|
2463
|
-
fullKey = key.map(subKey => {
|
|
2464
|
-
cov_ogldeftyv().f[7]++;
|
|
2465
|
-
cov_ogldeftyv().s[39]++;
|
|
2466
|
-
return `${namespace}:${subKey}`;
|
|
2467
|
-
});
|
|
2468
|
-
}
|
|
2469
|
-
cov_ogldeftyv().s[40]++;
|
|
2470
|
-
return this.getLocalizedString(fullKey, options);
|
|
2471
|
-
}
|
|
2472
2297
|
/** Gets the English translation.
|
|
2473
2298
|
* @param namespace - the namespace that identifies the particular localization file that contains the property.
|
|
2474
2299
|
* @param key - the key that matches a property in the JSON localization file.
|
|
@@ -2477,31 +2302,31 @@ class ITwinLocalization {
|
|
|
2477
2302
|
* @internal
|
|
2478
2303
|
*/
|
|
2479
2304
|
getEnglishString(namespace, key, options) {
|
|
2480
|
-
cov_ogldeftyv().f[
|
|
2481
|
-
cov_ogldeftyv().s[
|
|
2482
|
-
if ((cov_ogldeftyv().b[
|
|
2483
|
-
cov_ogldeftyv().b[
|
|
2484
|
-
cov_ogldeftyv().s[
|
|
2305
|
+
cov_ogldeftyv().f[6]++;
|
|
2306
|
+
cov_ogldeftyv().s[35]++;
|
|
2307
|
+
if ((cov_ogldeftyv().b[14][0]++, options?.returnDetails) || (cov_ogldeftyv().b[14][1]++, options?.returnObjects)) {
|
|
2308
|
+
cov_ogldeftyv().b[13][0]++;
|
|
2309
|
+
cov_ogldeftyv().s[36]++;
|
|
2485
2310
|
throw new Error("Translation key must map to a string, but the given options will result in an object");
|
|
2486
2311
|
} else {
|
|
2487
|
-
cov_ogldeftyv().b[
|
|
2312
|
+
cov_ogldeftyv().b[13][1]++;
|
|
2488
2313
|
}
|
|
2489
|
-
cov_ogldeftyv().s[
|
|
2314
|
+
cov_ogldeftyv().s[37]++;
|
|
2490
2315
|
options = {
|
|
2491
2316
|
...options,
|
|
2492
2317
|
ns: namespace // ensure namespace argument is used
|
|
2493
2318
|
};
|
|
2494
|
-
const en = (cov_ogldeftyv().s[
|
|
2495
|
-
const str = (cov_ogldeftyv().s[
|
|
2496
|
-
cov_ogldeftyv().s[
|
|
2319
|
+
const en = (cov_ogldeftyv().s[38]++, this.i18next.getFixedT("en", namespace));
|
|
2320
|
+
const str = (cov_ogldeftyv().s[39]++, en(key, options));
|
|
2321
|
+
cov_ogldeftyv().s[40]++;
|
|
2497
2322
|
if (typeof str !== "string") {
|
|
2498
|
-
cov_ogldeftyv().b[
|
|
2499
|
-
cov_ogldeftyv().s[
|
|
2323
|
+
cov_ogldeftyv().b[15][0]++;
|
|
2324
|
+
cov_ogldeftyv().s[41]++;
|
|
2500
2325
|
throw new Error("Translation key(s) not found");
|
|
2501
2326
|
} else {
|
|
2502
|
-
cov_ogldeftyv().b[
|
|
2327
|
+
cov_ogldeftyv().b[15][1]++;
|
|
2503
2328
|
}
|
|
2504
|
-
cov_ogldeftyv().s[
|
|
2329
|
+
cov_ogldeftyv().s[42]++;
|
|
2505
2330
|
return str;
|
|
2506
2331
|
}
|
|
2507
2332
|
/** Get the promise for an already registered Namespace.
|
|
@@ -2509,20 +2334,20 @@ class ITwinLocalization {
|
|
|
2509
2334
|
* @public
|
|
2510
2335
|
*/
|
|
2511
2336
|
getNamespacePromise(name) {
|
|
2512
|
-
cov_ogldeftyv().f[
|
|
2513
|
-
cov_ogldeftyv().s[
|
|
2337
|
+
cov_ogldeftyv().f[7]++;
|
|
2338
|
+
cov_ogldeftyv().s[43]++;
|
|
2514
2339
|
return this._namespaces.get(name);
|
|
2515
2340
|
}
|
|
2516
2341
|
/** @internal */
|
|
2517
2342
|
getLanguageList() {
|
|
2518
|
-
cov_ogldeftyv().f[
|
|
2519
|
-
cov_ogldeftyv().s[
|
|
2343
|
+
cov_ogldeftyv().f[8]++;
|
|
2344
|
+
cov_ogldeftyv().s[44]++;
|
|
2520
2345
|
return this.i18next.languages;
|
|
2521
2346
|
}
|
|
2522
2347
|
/** override the language detected in the browser */
|
|
2523
2348
|
async changeLanguage(language) {
|
|
2524
|
-
cov_ogldeftyv().f[
|
|
2525
|
-
cov_ogldeftyv().s[
|
|
2349
|
+
cov_ogldeftyv().f[9]++;
|
|
2350
|
+
cov_ogldeftyv().s[45]++;
|
|
2526
2351
|
return this.i18next.changeLanguage(language);
|
|
2527
2352
|
}
|
|
2528
2353
|
/** Register a new Namespace and return it. If the namespace is already registered, it will be returned.
|
|
@@ -2534,123 +2359,120 @@ class ITwinLocalization {
|
|
|
2534
2359
|
* @public
|
|
2535
2360
|
*/
|
|
2536
2361
|
async registerNamespace(name) {
|
|
2537
|
-
cov_ogldeftyv().f[
|
|
2538
|
-
const existing = (cov_ogldeftyv().s[
|
|
2539
|
-
cov_ogldeftyv().s[
|
|
2362
|
+
cov_ogldeftyv().f[10]++;
|
|
2363
|
+
const existing = (cov_ogldeftyv().s[46]++, this._namespaces.get(name));
|
|
2364
|
+
cov_ogldeftyv().s[47]++;
|
|
2540
2365
|
if (existing !== undefined) {
|
|
2541
|
-
cov_ogldeftyv().b[
|
|
2542
|
-
cov_ogldeftyv().s[
|
|
2366
|
+
cov_ogldeftyv().b[16][0]++;
|
|
2367
|
+
cov_ogldeftyv().s[48]++;
|
|
2543
2368
|
return existing;
|
|
2544
2369
|
} else {
|
|
2545
|
-
cov_ogldeftyv().b[
|
|
2370
|
+
cov_ogldeftyv().b[16][1]++;
|
|
2546
2371
|
}
|
|
2547
|
-
const theReadPromise = (cov_ogldeftyv().s[
|
|
2548
|
-
cov_ogldeftyv().f[
|
|
2549
|
-
cov_ogldeftyv().s[
|
|
2372
|
+
const theReadPromise = (cov_ogldeftyv().s[49]++, new Promise(resolve => {
|
|
2373
|
+
cov_ogldeftyv().f[11]++;
|
|
2374
|
+
cov_ogldeftyv().s[50]++;
|
|
2550
2375
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
2551
2376
|
this.i18next.loadNamespaces(name, err => {
|
|
2552
|
-
cov_ogldeftyv().f[
|
|
2553
|
-
cov_ogldeftyv().s[
|
|
2377
|
+
cov_ogldeftyv().f[12]++;
|
|
2378
|
+
cov_ogldeftyv().s[51]++;
|
|
2554
2379
|
if (!err) {
|
|
2555
|
-
cov_ogldeftyv().b[
|
|
2556
|
-
cov_ogldeftyv().s[
|
|
2380
|
+
cov_ogldeftyv().b[17][0]++;
|
|
2381
|
+
cov_ogldeftyv().s[52]++;
|
|
2557
2382
|
return resolve();
|
|
2558
2383
|
} else {
|
|
2559
|
-
cov_ogldeftyv().b[
|
|
2384
|
+
cov_ogldeftyv().b[17][1]++;
|
|
2560
2385
|
}
|
|
2561
2386
|
// Here we got a non-null err object.
|
|
2562
2387
|
// This method is called when the system has attempted to load the resources for the namespaces for each possible locale.
|
|
2563
2388
|
// For example 'fr-ca' might be the most specific locale, in which case 'fr' and 'en' are fallback locales.
|
|
2564
2389
|
// Using Backend from i18next-http-backend, err will be an array of strings of each namespace it tried to read and its locale.
|
|
2565
2390
|
// There might be errs for some other namespaces as well as this one. We resolve the promise unless there's an error for each possible locale.
|
|
2566
|
-
let locales = (cov_ogldeftyv().s[
|
|
2567
|
-
cov_ogldeftyv().f[
|
|
2568
|
-
cov_ogldeftyv().s[
|
|
2391
|
+
let locales = (cov_ogldeftyv().s[53]++, this.getLanguageList().map(thisLocale => {
|
|
2392
|
+
cov_ogldeftyv().f[13]++;
|
|
2393
|
+
cov_ogldeftyv().s[54]++;
|
|
2569
2394
|
return `/${thisLocale}/`;
|
|
2570
2395
|
}));
|
|
2571
|
-
cov_ogldeftyv().s[
|
|
2396
|
+
cov_ogldeftyv().s[55]++;
|
|
2572
2397
|
try {
|
|
2573
|
-
cov_ogldeftyv().s[
|
|
2398
|
+
cov_ogldeftyv().s[56]++;
|
|
2574
2399
|
for (const thisError of err) {
|
|
2575
|
-
cov_ogldeftyv().s[
|
|
2400
|
+
cov_ogldeftyv().s[57]++;
|
|
2576
2401
|
if (typeof thisError === "string") {
|
|
2577
|
-
cov_ogldeftyv().b[
|
|
2578
|
-
cov_ogldeftyv().s[
|
|
2402
|
+
cov_ogldeftyv().b[18][0]++;
|
|
2403
|
+
cov_ogldeftyv().s[58]++;
|
|
2579
2404
|
locales = locales.filter(thisLocale => {
|
|
2580
|
-
cov_ogldeftyv().f[
|
|
2581
|
-
cov_ogldeftyv().s[
|
|
2405
|
+
cov_ogldeftyv().f[14]++;
|
|
2406
|
+
cov_ogldeftyv().s[59]++;
|
|
2582
2407
|
return !thisError.includes(thisLocale);
|
|
2583
2408
|
});
|
|
2584
2409
|
} else {
|
|
2585
|
-
cov_ogldeftyv().b[
|
|
2410
|
+
cov_ogldeftyv().b[18][1]++;
|
|
2586
2411
|
}
|
|
2587
2412
|
}
|
|
2588
2413
|
} catch {
|
|
2589
|
-
cov_ogldeftyv().s[
|
|
2414
|
+
cov_ogldeftyv().s[60]++;
|
|
2590
2415
|
locales = [];
|
|
2591
2416
|
}
|
|
2592
2417
|
// if we removed every locale from the array, it wasn't loaded.
|
|
2593
|
-
cov_ogldeftyv().s[
|
|
2418
|
+
cov_ogldeftyv().s[61]++;
|
|
2594
2419
|
if (locales.length === 0) {
|
|
2595
|
-
cov_ogldeftyv().b[
|
|
2596
|
-
cov_ogldeftyv().s[
|
|
2420
|
+
cov_ogldeftyv().b[19][0]++;
|
|
2421
|
+
cov_ogldeftyv().s[62]++;
|
|
2597
2422
|
core_bentley_1.Logger.logError("i18n", `No resources for namespace ${name} could be loaded`);
|
|
2598
2423
|
} else {
|
|
2599
|
-
cov_ogldeftyv().b[
|
|
2424
|
+
cov_ogldeftyv().b[19][1]++;
|
|
2600
2425
|
}
|
|
2601
|
-
cov_ogldeftyv().s[
|
|
2426
|
+
cov_ogldeftyv().s[63]++;
|
|
2602
2427
|
resolve();
|
|
2603
2428
|
});
|
|
2604
2429
|
}));
|
|
2605
|
-
cov_ogldeftyv().s[
|
|
2430
|
+
cov_ogldeftyv().s[64]++;
|
|
2606
2431
|
this._namespaces.set(name, theReadPromise);
|
|
2607
|
-
cov_ogldeftyv().s[
|
|
2432
|
+
cov_ogldeftyv().s[65]++;
|
|
2608
2433
|
return theReadPromise;
|
|
2609
2434
|
}
|
|
2610
2435
|
/** @internal */
|
|
2611
2436
|
unregisterNamespace(name) {
|
|
2612
|
-
cov_ogldeftyv().f[
|
|
2613
|
-
cov_ogldeftyv().s[
|
|
2437
|
+
cov_ogldeftyv().f[15]++;
|
|
2438
|
+
cov_ogldeftyv().s[66]++;
|
|
2614
2439
|
this._namespaces.delete(name);
|
|
2615
2440
|
}
|
|
2616
2441
|
}
|
|
2617
|
-
cov_ogldeftyv().s[
|
|
2442
|
+
cov_ogldeftyv().s[67]++;
|
|
2618
2443
|
exports.ITwinLocalization = ITwinLocalization;
|
|
2619
2444
|
class TranslationLogger {
|
|
2620
|
-
static
|
|
2621
|
-
cov_ogldeftyv().s[74]++;
|
|
2622
|
-
this.type = "logger";
|
|
2623
|
-
}
|
|
2445
|
+
static type = (cov_ogldeftyv().s[68]++, "logger");
|
|
2624
2446
|
log(args) {
|
|
2625
|
-
cov_ogldeftyv().f[
|
|
2626
|
-
cov_ogldeftyv().s[
|
|
2447
|
+
cov_ogldeftyv().f[16]++;
|
|
2448
|
+
cov_ogldeftyv().s[69]++;
|
|
2627
2449
|
core_bentley_1.Logger.logInfo("i18n", this.createLogMessage(args));
|
|
2628
2450
|
}
|
|
2629
2451
|
warn(args) {
|
|
2630
|
-
cov_ogldeftyv().f[
|
|
2631
|
-
cov_ogldeftyv().s[
|
|
2452
|
+
cov_ogldeftyv().f[17]++;
|
|
2453
|
+
cov_ogldeftyv().s[70]++;
|
|
2632
2454
|
core_bentley_1.Logger.logWarning("i18n", this.createLogMessage(args));
|
|
2633
2455
|
}
|
|
2634
2456
|
error(args) {
|
|
2635
|
-
cov_ogldeftyv().f[
|
|
2636
|
-
cov_ogldeftyv().s[
|
|
2457
|
+
cov_ogldeftyv().f[18]++;
|
|
2458
|
+
cov_ogldeftyv().s[71]++;
|
|
2637
2459
|
core_bentley_1.Logger.logError("i18n", this.createLogMessage(args));
|
|
2638
2460
|
}
|
|
2639
2461
|
createLogMessage(args) {
|
|
2640
|
-
cov_ogldeftyv().f[
|
|
2641
|
-
let message = (cov_ogldeftyv().s[
|
|
2642
|
-
cov_ogldeftyv().s[
|
|
2643
|
-
for (let i = (cov_ogldeftyv().s[
|
|
2644
|
-
cov_ogldeftyv().s[
|
|
2462
|
+
cov_ogldeftyv().f[19]++;
|
|
2463
|
+
let message = (cov_ogldeftyv().s[72]++, args[0]);
|
|
2464
|
+
cov_ogldeftyv().s[73]++;
|
|
2465
|
+
for (let i = (cov_ogldeftyv().s[74]++, 1); i < args.length; ++i) {
|
|
2466
|
+
cov_ogldeftyv().s[75]++;
|
|
2645
2467
|
if (typeof args[i] === "string") {
|
|
2646
|
-
cov_ogldeftyv().b[
|
|
2647
|
-
cov_ogldeftyv().s[
|
|
2468
|
+
cov_ogldeftyv().b[20][0]++;
|
|
2469
|
+
cov_ogldeftyv().s[76]++;
|
|
2648
2470
|
message += `\n ${args[i]}`;
|
|
2649
2471
|
} else {
|
|
2650
|
-
cov_ogldeftyv().b[
|
|
2472
|
+
cov_ogldeftyv().b[20][1]++;
|
|
2651
2473
|
}
|
|
2652
2474
|
}
|
|
2653
|
-
cov_ogldeftyv().s[
|
|
2475
|
+
cov_ogldeftyv().s[77]++;
|
|
2654
2476
|
return message;
|
|
2655
2477
|
}
|
|
2656
2478
|
}
|
|
@@ -18171,10 +17993,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18171
17993
|
* @public
|
|
18172
17994
|
*/
|
|
18173
17995
|
class BeEvent {
|
|
18174
|
-
|
|
18175
|
-
|
|
18176
|
-
this._insideRaiseEvent = false;
|
|
18177
|
-
}
|
|
17996
|
+
_listeners = [];
|
|
17997
|
+
_insideRaiseEvent = false;
|
|
18178
17998
|
/** The number of listeners currently subscribed to the event. */
|
|
18179
17999
|
get numberOfListeners() { return this._listeners.length; }
|
|
18180
18000
|
/**
|
|
@@ -18283,9 +18103,7 @@ class BeUiEvent extends BeEvent {
|
|
|
18283
18103
|
* @public
|
|
18284
18104
|
*/
|
|
18285
18105
|
class BeEventList {
|
|
18286
|
-
|
|
18287
|
-
this._events = {};
|
|
18288
|
-
}
|
|
18106
|
+
_events = {};
|
|
18289
18107
|
/**
|
|
18290
18108
|
* Gets the event associated with the specified name, creating the event if it does not already exist.
|
|
18291
18109
|
* @param name The name of the event.
|
|
@@ -18831,6 +18649,8 @@ function isObject(obj) {
|
|
|
18831
18649
|
* @public
|
|
18832
18650
|
*/
|
|
18833
18651
|
class BentleyError extends Error {
|
|
18652
|
+
errorNumber;
|
|
18653
|
+
_metaData;
|
|
18834
18654
|
/**
|
|
18835
18655
|
* @param errorNumber The a number that identifies of the problem.
|
|
18836
18656
|
* @param message message that describes the problem (should not be localized).
|
|
@@ -19258,6 +19078,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19258
19078
|
* @public
|
|
19259
19079
|
*/
|
|
19260
19080
|
class ByteStream {
|
|
19081
|
+
_view;
|
|
19082
|
+
_byteOffset;
|
|
19083
|
+
_curPos = 0;
|
|
19261
19084
|
/** Construct a new ByteStream with the read position set to the beginning.
|
|
19262
19085
|
* @param buffer The underlying buffer from which data is to be extracted.
|
|
19263
19086
|
* @param subView If defined, specifies the subset of the underlying buffer's data to use.
|
|
@@ -19272,7 +19095,6 @@ class ByteStream {
|
|
|
19272
19095
|
* For both of the above reasons, this constructor is private, and [[fromUint8Array]] or [[fromArrayBuffer]] should be used to create a ByteStream.
|
|
19273
19096
|
*/
|
|
19274
19097
|
constructor(buffer, subView) {
|
|
19275
|
-
this._curPos = 0;
|
|
19276
19098
|
if (undefined !== subView) {
|
|
19277
19099
|
this._view = new DataView(buffer, subView.byteOffset, subView.byteLength);
|
|
19278
19100
|
this._byteOffset = subView.byteOffset;
|
|
@@ -19650,7 +19472,9 @@ var CompressedId64Set;
|
|
|
19650
19472
|
CompressedId64Set.compressIds = compressIds;
|
|
19651
19473
|
/** This exists strictly for the purposes of compressed sets of 64-bit Ids, to avoid the overhead of BigInt for handling 64-bit integers. */
|
|
19652
19474
|
class Uint64 {
|
|
19653
|
-
|
|
19475
|
+
lower;
|
|
19476
|
+
upper;
|
|
19477
|
+
static _base = 0x100000000;
|
|
19654
19478
|
static assertUint32(num) {
|
|
19655
19479
|
(0,_Assert__WEBPACK_IMPORTED_MODULE_0__.assert)(num >= 0);
|
|
19656
19480
|
(0,_Assert__WEBPACK_IMPORTED_MODULE_0__.assert)(num < Uint64._base);
|
|
@@ -19855,10 +19679,11 @@ class OrderedId64Array extends _SortedArray__WEBPACK_IMPORTED_MODULE_3__.SortedA
|
|
|
19855
19679
|
* @public
|
|
19856
19680
|
*/
|
|
19857
19681
|
class MutableCompressedId64Set {
|
|
19682
|
+
_ids;
|
|
19683
|
+
_inserted = new OrderedId64Array();
|
|
19684
|
+
_deleted = new OrderedId64Array();
|
|
19858
19685
|
/** Construct a new set, optionally initialized to contain the Ids represented by `ids`. */
|
|
19859
19686
|
constructor(ids) {
|
|
19860
|
-
this._inserted = new OrderedId64Array();
|
|
19861
|
-
this._deleted = new OrderedId64Array();
|
|
19862
19687
|
this._ids = ids ?? "";
|
|
19863
19688
|
}
|
|
19864
19689
|
/** Obtain the compact string representation of the contents of this set. If any insertions or removals are pending, they will be applied and the string recomputed. */
|
|
@@ -19978,8 +19803,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19978
19803
|
*/
|
|
19979
19804
|
|
|
19980
19805
|
class DictionaryIterator {
|
|
19806
|
+
_keys;
|
|
19807
|
+
_values;
|
|
19808
|
+
_curIndex = -1;
|
|
19981
19809
|
constructor(keys, values) {
|
|
19982
|
-
this._curIndex = -1;
|
|
19983
19810
|
this._keys = keys;
|
|
19984
19811
|
this._values = values;
|
|
19985
19812
|
}
|
|
@@ -20014,6 +19841,11 @@ class DictionaryIterator {
|
|
|
20014
19841
|
* @public
|
|
20015
19842
|
*/
|
|
20016
19843
|
class Dictionary {
|
|
19844
|
+
_keys = [];
|
|
19845
|
+
_compareKeys;
|
|
19846
|
+
_cloneKey;
|
|
19847
|
+
_values = [];
|
|
19848
|
+
_cloneValue;
|
|
20017
19849
|
/**
|
|
20018
19850
|
* Construct a new Dictionary<K, V>.
|
|
20019
19851
|
* @param compareKeys The function used to compare keys within the dictionary.
|
|
@@ -20021,8 +19853,6 @@ class Dictionary {
|
|
|
20021
19853
|
* @param cloneValue The function invoked to clone a value for insertion into the dictionary. The default implementation simply returns its input.
|
|
20022
19854
|
*/
|
|
20023
19855
|
constructor(compareKeys, cloneKey = _SortedArray__WEBPACK_IMPORTED_MODULE_0__.shallowClone, cloneValue = _SortedArray__WEBPACK_IMPORTED_MODULE_0__.shallowClone) {
|
|
20024
|
-
this._keys = [];
|
|
20025
|
-
this._values = [];
|
|
20026
19856
|
this._compareKeys = compareKeys;
|
|
20027
19857
|
this._cloneKey = cloneKey;
|
|
20028
19858
|
this._cloneValue = cloneValue;
|
|
@@ -20260,6 +20090,7 @@ function using(resources, func) {
|
|
|
20260
20090
|
}
|
|
20261
20091
|
}
|
|
20262
20092
|
class FuncDisposable {
|
|
20093
|
+
_disposeFunc;
|
|
20263
20094
|
constructor(disposeFunc) { this._disposeFunc = disposeFunc; }
|
|
20264
20095
|
dispose() { this._disposeFunc(); }
|
|
20265
20096
|
}
|
|
@@ -20267,6 +20098,7 @@ class FuncDisposable {
|
|
|
20267
20098
|
* @public
|
|
20268
20099
|
*/
|
|
20269
20100
|
class DisposableList {
|
|
20101
|
+
_disposables;
|
|
20270
20102
|
/** Creates a disposable list. */
|
|
20271
20103
|
constructor(disposables = []) {
|
|
20272
20104
|
this._disposables = [];
|
|
@@ -20732,11 +20564,11 @@ var Id64;
|
|
|
20732
20564
|
* @public
|
|
20733
20565
|
*/
|
|
20734
20566
|
class Uint32Set {
|
|
20567
|
+
_map = new Map();
|
|
20735
20568
|
/** Construct a new Uint32Set.
|
|
20736
20569
|
* @param ids If supplied, all of the specified Ids will be added to the new set.
|
|
20737
20570
|
*/
|
|
20738
20571
|
constructor(ids) {
|
|
20739
|
-
this._map = new Map();
|
|
20740
20572
|
if (undefined !== ids)
|
|
20741
20573
|
this.addIds(ids);
|
|
20742
20574
|
}
|
|
@@ -20850,9 +20682,7 @@ var Id64;
|
|
|
20850
20682
|
* @public
|
|
20851
20683
|
*/
|
|
20852
20684
|
class Uint32Map {
|
|
20853
|
-
|
|
20854
|
-
this._map = new Map();
|
|
20855
|
-
}
|
|
20685
|
+
_map = new Map();
|
|
20856
20686
|
/** Remove all entries from the map. */
|
|
20857
20687
|
clear() { this._map.clear(); }
|
|
20858
20688
|
/** Find an entry in the map by Id. */
|
|
@@ -20903,6 +20733,9 @@ function validateLocalId(num) {
|
|
|
20903
20733
|
* @public
|
|
20904
20734
|
*/
|
|
20905
20735
|
class TransientIdSequence {
|
|
20736
|
+
/** The starting local Id provided to the constructor. The sequence begins at `initialLocalId + 1`. */
|
|
20737
|
+
initialLocalId;
|
|
20738
|
+
_localId;
|
|
20906
20739
|
/** Constructor.
|
|
20907
20740
|
* @param initialLocalId The starting local Id. The local Id of the first [[Id64String]] generated by [[getNext]] will be `initialLocalId + 1`.
|
|
20908
20741
|
*/
|
|
@@ -21065,6 +20898,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21065
20898
|
* @public
|
|
21066
20899
|
*/
|
|
21067
20900
|
class IndexedValue {
|
|
20901
|
+
value;
|
|
20902
|
+
index;
|
|
21068
20903
|
constructor(value, index) {
|
|
21069
20904
|
this.value = value;
|
|
21070
20905
|
this.index = index;
|
|
@@ -21077,6 +20912,10 @@ class IndexedValue {
|
|
|
21077
20912
|
* @public
|
|
21078
20913
|
*/
|
|
21079
20914
|
class IndexMap {
|
|
20915
|
+
_array = [];
|
|
20916
|
+
_compareValues;
|
|
20917
|
+
_clone;
|
|
20918
|
+
_maximumSize;
|
|
21080
20919
|
/**
|
|
21081
20920
|
* Construct a new IndexMap<T>.
|
|
21082
20921
|
* @param compare The function used to compare elements within the map.
|
|
@@ -21084,7 +20923,6 @@ class IndexMap {
|
|
|
21084
20923
|
* @param clone The function invoked to clone a new element for insertion into the array. The default implementation simply returns its input.
|
|
21085
20924
|
*/
|
|
21086
20925
|
constructor(compare, maximumSize = Number.MAX_SAFE_INTEGER, clone = _SortedArray__WEBPACK_IMPORTED_MODULE_0__.shallowClone) {
|
|
21087
|
-
this._array = [];
|
|
21088
20926
|
this._compareValues = compare;
|
|
21089
20927
|
this._clone = clone;
|
|
21090
20928
|
this._maximumSize = maximumSize;
|
|
@@ -21358,12 +21196,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21358
21196
|
* @public
|
|
21359
21197
|
*/
|
|
21360
21198
|
class Entry {
|
|
21199
|
+
key;
|
|
21200
|
+
value;
|
|
21201
|
+
newer;
|
|
21202
|
+
older;
|
|
21361
21203
|
constructor(key, value) {
|
|
21362
21204
|
this.key = key;
|
|
21363
21205
|
this.value = value;
|
|
21364
21206
|
}
|
|
21365
21207
|
}
|
|
21366
21208
|
class EntryIterator {
|
|
21209
|
+
_entry;
|
|
21367
21210
|
constructor(oldestEntry) {
|
|
21368
21211
|
this._entry = oldestEntry;
|
|
21369
21212
|
}
|
|
@@ -21377,6 +21220,7 @@ class EntryIterator {
|
|
|
21377
21220
|
}
|
|
21378
21221
|
}
|
|
21379
21222
|
class KeyIterator {
|
|
21223
|
+
_entry;
|
|
21380
21224
|
constructor(oldestEntry) {
|
|
21381
21225
|
this._entry = oldestEntry;
|
|
21382
21226
|
}
|
|
@@ -21389,6 +21233,7 @@ class KeyIterator {
|
|
|
21389
21233
|
}
|
|
21390
21234
|
}
|
|
21391
21235
|
class ValueIterator {
|
|
21236
|
+
_entry;
|
|
21392
21237
|
constructor(oldestEntry) {
|
|
21393
21238
|
this._entry = oldestEntry;
|
|
21394
21239
|
}
|
|
@@ -21421,6 +21266,15 @@ class ValueIterator {
|
|
|
21421
21266
|
* @public
|
|
21422
21267
|
*/
|
|
21423
21268
|
class LRUCache {
|
|
21269
|
+
_container;
|
|
21270
|
+
/** Current number of items */
|
|
21271
|
+
size;
|
|
21272
|
+
/** Maximum number of items this cache can hold */
|
|
21273
|
+
limit;
|
|
21274
|
+
/** Least recently-used entry. Invalidated when cache is modified. */
|
|
21275
|
+
oldest;
|
|
21276
|
+
/** Most recently-used entry. Invalidated when cache is modified. */
|
|
21277
|
+
newest;
|
|
21424
21278
|
/**
|
|
21425
21279
|
* Construct a new LRUCache to hold up to `limit` entries.
|
|
21426
21280
|
*/
|
|
@@ -21718,7 +21572,12 @@ var LogLevel;
|
|
|
21718
21572
|
* @public
|
|
21719
21573
|
*/
|
|
21720
21574
|
class Logger {
|
|
21721
|
-
static
|
|
21575
|
+
static _logError;
|
|
21576
|
+
static _logWarning;
|
|
21577
|
+
static _logInfo;
|
|
21578
|
+
static _logTrace;
|
|
21579
|
+
static _onLogLevelChanged;
|
|
21580
|
+
static _staticMetaData = new Map();
|
|
21722
21581
|
/** An event raised whenever [[setLevel]] or [[setLevelDefault]] is called. */
|
|
21723
21582
|
static get onLogLevelChanged() {
|
|
21724
21583
|
// We have to lazily initialize because it's static and BeEvent imports UnexpectedErrors which imports Logger which wants to instantiate BeEvent.
|
|
@@ -21727,7 +21586,7 @@ class Logger {
|
|
|
21727
21586
|
}
|
|
21728
21587
|
return Logger._onLogLevelChanged;
|
|
21729
21588
|
}
|
|
21730
|
-
static
|
|
21589
|
+
static _categoryFilter = {};
|
|
21731
21590
|
/** Maps category names to the least severe level at which messages in that category should be displayed,
|
|
21732
21591
|
* or `undefined` if a minimum has not been defined.
|
|
21733
21592
|
* @see [[setLevel]] to change the minimum logging level for a category.
|
|
@@ -21736,6 +21595,7 @@ class Logger {
|
|
|
21736
21595
|
// NOTE: this property is accessed by native code.
|
|
21737
21596
|
return this._categoryFilter;
|
|
21738
21597
|
}
|
|
21598
|
+
static _minLevel;
|
|
21739
21599
|
/** The least severe level at which messages should be displayed by default.
|
|
21740
21600
|
* @see [[setLevelDefault]] to change this default.
|
|
21741
21601
|
* @see [[setLevel]] to override this default for specific categories.
|
|
@@ -21745,7 +21605,7 @@ class Logger {
|
|
|
21745
21605
|
return this._minLevel;
|
|
21746
21606
|
}
|
|
21747
21607
|
/** Should the call stack be included when an exception is logged? */
|
|
21748
|
-
static
|
|
21608
|
+
static logExceptionCallstacks = false;
|
|
21749
21609
|
/** Contains metadata that should be included with every logged message.
|
|
21750
21610
|
* @beta
|
|
21751
21611
|
*/
|
|
@@ -21941,7 +21801,10 @@ class Logger {
|
|
|
21941
21801
|
* @public
|
|
21942
21802
|
*/
|
|
21943
21803
|
class PerfLogger {
|
|
21944
|
-
static
|
|
21804
|
+
static _severity = LogLevel.Info;
|
|
21805
|
+
_operation;
|
|
21806
|
+
_metaData;
|
|
21807
|
+
_startTimeStamp;
|
|
21945
21808
|
constructor(operation, metaData) {
|
|
21946
21809
|
this._operation = operation;
|
|
21947
21810
|
this._metaData = metaData;
|
|
@@ -21999,18 +21862,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21999
21862
|
* @public
|
|
22000
21863
|
*/
|
|
22001
21864
|
class ObservableSet extends Set {
|
|
21865
|
+
/** Emitted after `item` is added to this set. */
|
|
21866
|
+
onAdded = new _BeEvent__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
|
|
21867
|
+
/** Emitted after `item` is deleted from this set. */
|
|
21868
|
+
onDeleted = new _BeEvent__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
|
|
21869
|
+
/** Emitted after this set's contents are cleared. */
|
|
21870
|
+
onCleared = new _BeEvent__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
|
|
22002
21871
|
/** Construct a new ObservableSet.
|
|
22003
21872
|
* @param elements Optional elements with which to populate the new set.
|
|
22004
21873
|
*/
|
|
22005
21874
|
constructor(elements) {
|
|
22006
21875
|
// NB: Set constructor will invoke add(). Do not override until initialized.
|
|
22007
21876
|
super(elements);
|
|
22008
|
-
/** Emitted after `item` is added to this set. */
|
|
22009
|
-
this.onAdded = new _BeEvent__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
|
|
22010
|
-
/** Emitted after `item` is deleted from this set. */
|
|
22011
|
-
this.onDeleted = new _BeEvent__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
|
|
22012
|
-
/** Emitted after this set's contents are cleared. */
|
|
22013
|
-
this.onCleared = new _BeEvent__WEBPACK_IMPORTED_MODULE_0__.BeEvent();
|
|
22014
21877
|
this.add = (item) => {
|
|
22015
21878
|
const prevSize = this.size;
|
|
22016
21879
|
const ret = super.add(item);
|
|
@@ -22073,6 +21936,11 @@ class AbandonedError extends Error {
|
|
|
22073
21936
|
* Promises involved that are chained together. That makes this class less efficient than just using a Promise directly.
|
|
22074
21937
|
*/
|
|
22075
21938
|
class PromiseWithAbandon {
|
|
21939
|
+
_run;
|
|
21940
|
+
_args;
|
|
21941
|
+
/** Method to abandon the Promise created by [[init]] while it is outstanding. The promise will be rejected. */
|
|
21942
|
+
abandon;
|
|
21943
|
+
_resolve;
|
|
22076
21944
|
/** Create a PromiseWithAbandon. After this call you must call [[init]] to create the underlying Promise.
|
|
22077
21945
|
* @param _run The method that creates the underlying Promise.
|
|
22078
21946
|
* @param _args An array of args to be passed to run when [[start]] is called.
|
|
@@ -22110,6 +21978,10 @@ class PromiseWithAbandon {
|
|
|
22110
21978
|
* @beta
|
|
22111
21979
|
*/
|
|
22112
21980
|
class OneAtATimeAction {
|
|
21981
|
+
_active;
|
|
21982
|
+
_pending;
|
|
21983
|
+
_run;
|
|
21984
|
+
msg;
|
|
22113
21985
|
/** Ctor for OneAtATimePromise.
|
|
22114
21986
|
* @param run The method that performs an action that creates the Promise.
|
|
22115
21987
|
*/
|
|
@@ -22423,6 +22295,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22423
22295
|
* @public
|
|
22424
22296
|
*/
|
|
22425
22297
|
class ReadonlyOrderedSet {
|
|
22298
|
+
_array;
|
|
22426
22299
|
/** Construct a new ReadonlyOrderedSet<T>.
|
|
22427
22300
|
* @param compare The function used to compare elements within the set, determining their ordering.
|
|
22428
22301
|
* @param clone The function invoked to clone a new element for insertion into the set. The default implementation simply returns its input.
|
|
@@ -22498,6 +22371,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22498
22371
|
* @public
|
|
22499
22372
|
*/
|
|
22500
22373
|
class PriorityQueue {
|
|
22374
|
+
_array = [];
|
|
22375
|
+
_compare;
|
|
22376
|
+
_clone;
|
|
22501
22377
|
/**
|
|
22502
22378
|
* Constructor
|
|
22503
22379
|
* @param compare The function used to compare values in the queue. If `compare(x, y)` returns a negative value, then x is placed before y in the queue.
|
|
@@ -22505,7 +22381,6 @@ class PriorityQueue {
|
|
|
22505
22381
|
* @note If the criterion which control the result of the `compare` function changes, then [[PriorityQueue.sort]] should be used to reorder the queue according to the new criterion.
|
|
22506
22382
|
*/
|
|
22507
22383
|
constructor(compare, clone = _SortedArray__WEBPACK_IMPORTED_MODULE_0__.shallowClone) {
|
|
22508
|
-
this._array = [];
|
|
22509
22384
|
this._compare = compare;
|
|
22510
22385
|
this._clone = clone;
|
|
22511
22386
|
}
|
|
@@ -22803,6 +22678,10 @@ var DuplicatePolicy;
|
|
|
22803
22678
|
* @public
|
|
22804
22679
|
*/
|
|
22805
22680
|
class ReadonlySortedArray {
|
|
22681
|
+
_array = [];
|
|
22682
|
+
_compare;
|
|
22683
|
+
_clone;
|
|
22684
|
+
_duplicatePolicy;
|
|
22806
22685
|
/**
|
|
22807
22686
|
* Construct a new ReadonlySortedArray<T>.
|
|
22808
22687
|
* @param compare The function used to compare elements within the array.
|
|
@@ -22810,7 +22689,6 @@ class ReadonlySortedArray {
|
|
|
22810
22689
|
* @param clone The function invoked to clone a new element for insertion into the array. The default implementation simply returns its input.
|
|
22811
22690
|
*/
|
|
22812
22691
|
constructor(compare, duplicatePolicy = false, clone = shallowClone) {
|
|
22813
|
-
this._array = [];
|
|
22814
22692
|
this._compare = compare;
|
|
22815
22693
|
this._clone = clone;
|
|
22816
22694
|
if (typeof duplicatePolicy === "boolean")
|
|
@@ -23061,7 +22939,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
23061
22939
|
* @alpha
|
|
23062
22940
|
*/
|
|
23063
22941
|
class StatusCategory {
|
|
23064
|
-
static
|
|
22942
|
+
static handlers = new Set();
|
|
23065
22943
|
static for(error) {
|
|
23066
22944
|
for (const handler of this.handlers) {
|
|
23067
22945
|
const category = handler(error);
|
|
@@ -23080,173 +22958,110 @@ class StatusCategory {
|
|
|
23080
22958
|
* @alpha
|
|
23081
22959
|
*/
|
|
23082
22960
|
class SuccessCategory extends StatusCategory {
|
|
23083
|
-
|
|
23084
|
-
super(...arguments);
|
|
23085
|
-
this.error = false;
|
|
23086
|
-
}
|
|
22961
|
+
error = false;
|
|
23087
22962
|
}
|
|
23088
22963
|
/**
|
|
23089
22964
|
* An error status.
|
|
23090
22965
|
* @alpha
|
|
23091
22966
|
*/
|
|
23092
22967
|
class ErrorCategory extends StatusCategory {
|
|
23093
|
-
|
|
23094
|
-
super(...arguments);
|
|
23095
|
-
this.error = true;
|
|
23096
|
-
}
|
|
22968
|
+
error = true;
|
|
23097
22969
|
}
|
|
23098
22970
|
var HTTP;
|
|
23099
22971
|
(function (HTTP) {
|
|
23100
22972
|
class OK extends SuccessCategory {
|
|
23101
|
-
|
|
23102
|
-
|
|
23103
|
-
this.name = "OK";
|
|
23104
|
-
this.code = 200;
|
|
23105
|
-
}
|
|
22973
|
+
name = "OK";
|
|
22974
|
+
code = 200;
|
|
23106
22975
|
}
|
|
23107
22976
|
HTTP.OK = OK;
|
|
23108
22977
|
class Accepted extends SuccessCategory {
|
|
23109
|
-
|
|
23110
|
-
|
|
23111
|
-
this.name = "Accepted";
|
|
23112
|
-
this.code = 202;
|
|
23113
|
-
}
|
|
22978
|
+
name = "Accepted";
|
|
22979
|
+
code = 202;
|
|
23114
22980
|
}
|
|
23115
22981
|
HTTP.Accepted = Accepted;
|
|
23116
22982
|
class NoContent extends SuccessCategory {
|
|
23117
|
-
|
|
23118
|
-
|
|
23119
|
-
this.name = "NoContent";
|
|
23120
|
-
this.code = 204;
|
|
23121
|
-
}
|
|
22983
|
+
name = "NoContent";
|
|
22984
|
+
code = 204;
|
|
23122
22985
|
}
|
|
23123
22986
|
HTTP.NoContent = NoContent;
|
|
23124
22987
|
class BadRequest extends ErrorCategory {
|
|
23125
|
-
|
|
23126
|
-
|
|
23127
|
-
this.name = "BadRequest";
|
|
23128
|
-
this.code = 400;
|
|
23129
|
-
}
|
|
22988
|
+
name = "BadRequest";
|
|
22989
|
+
code = 400;
|
|
23130
22990
|
}
|
|
23131
22991
|
HTTP.BadRequest = BadRequest;
|
|
23132
22992
|
class Unauthorized extends ErrorCategory {
|
|
23133
|
-
|
|
23134
|
-
|
|
23135
|
-
this.name = "Unauthorized";
|
|
23136
|
-
this.code = 401;
|
|
23137
|
-
}
|
|
22993
|
+
name = "Unauthorized";
|
|
22994
|
+
code = 401;
|
|
23138
22995
|
}
|
|
23139
22996
|
HTTP.Unauthorized = Unauthorized;
|
|
23140
22997
|
class Forbidden extends ErrorCategory {
|
|
23141
|
-
|
|
23142
|
-
|
|
23143
|
-
this.name = "Forbidden";
|
|
23144
|
-
this.code = 403;
|
|
23145
|
-
}
|
|
22998
|
+
name = "Forbidden";
|
|
22999
|
+
code = 403;
|
|
23146
23000
|
}
|
|
23147
23001
|
HTTP.Forbidden = Forbidden;
|
|
23148
23002
|
class NotFound extends ErrorCategory {
|
|
23149
|
-
|
|
23150
|
-
|
|
23151
|
-
this.name = "NotFound";
|
|
23152
|
-
this.code = 404;
|
|
23153
|
-
}
|
|
23003
|
+
name = "NotFound";
|
|
23004
|
+
code = 404;
|
|
23154
23005
|
}
|
|
23155
23006
|
HTTP.NotFound = NotFound;
|
|
23156
23007
|
class RequestTimeout extends ErrorCategory {
|
|
23157
|
-
|
|
23158
|
-
|
|
23159
|
-
this.name = "RequestTimeout";
|
|
23160
|
-
this.code = 408;
|
|
23161
|
-
}
|
|
23008
|
+
name = "RequestTimeout";
|
|
23009
|
+
code = 408;
|
|
23162
23010
|
}
|
|
23163
23011
|
HTTP.RequestTimeout = RequestTimeout;
|
|
23164
23012
|
class Conflict extends ErrorCategory {
|
|
23165
|
-
|
|
23166
|
-
|
|
23167
|
-
this.name = "Conflict";
|
|
23168
|
-
this.code = 409;
|
|
23169
|
-
}
|
|
23013
|
+
name = "Conflict";
|
|
23014
|
+
code = 409;
|
|
23170
23015
|
}
|
|
23171
23016
|
HTTP.Conflict = Conflict;
|
|
23172
23017
|
class Gone extends ErrorCategory {
|
|
23173
|
-
|
|
23174
|
-
|
|
23175
|
-
this.name = "Gone";
|
|
23176
|
-
this.code = 410;
|
|
23177
|
-
}
|
|
23018
|
+
name = "Gone";
|
|
23019
|
+
code = 410;
|
|
23178
23020
|
}
|
|
23179
23021
|
HTTP.Gone = Gone;
|
|
23180
23022
|
class PreconditionFailed extends ErrorCategory {
|
|
23181
|
-
|
|
23182
|
-
|
|
23183
|
-
this.name = "PreconditionFailed";
|
|
23184
|
-
this.code = 412;
|
|
23185
|
-
}
|
|
23023
|
+
name = "PreconditionFailed";
|
|
23024
|
+
code = 412;
|
|
23186
23025
|
}
|
|
23187
23026
|
HTTP.PreconditionFailed = PreconditionFailed;
|
|
23188
23027
|
class ExpectationFailed extends ErrorCategory {
|
|
23189
|
-
|
|
23190
|
-
|
|
23191
|
-
this.name = "ExpectationFailed";
|
|
23192
|
-
this.code = 417;
|
|
23193
|
-
}
|
|
23028
|
+
name = "ExpectationFailed";
|
|
23029
|
+
code = 417;
|
|
23194
23030
|
}
|
|
23195
23031
|
HTTP.ExpectationFailed = ExpectationFailed;
|
|
23196
23032
|
class MisdirectedRequest extends ErrorCategory {
|
|
23197
|
-
|
|
23198
|
-
|
|
23199
|
-
this.name = "MisdirectedRequest";
|
|
23200
|
-
this.code = 421;
|
|
23201
|
-
}
|
|
23033
|
+
name = "MisdirectedRequest";
|
|
23034
|
+
code = 421;
|
|
23202
23035
|
}
|
|
23203
23036
|
HTTP.MisdirectedRequest = MisdirectedRequest;
|
|
23204
23037
|
class UnprocessableEntity extends ErrorCategory {
|
|
23205
|
-
|
|
23206
|
-
|
|
23207
|
-
this.name = "UnprocessableEntity";
|
|
23208
|
-
this.code = 422;
|
|
23209
|
-
}
|
|
23038
|
+
name = "UnprocessableEntity";
|
|
23039
|
+
code = 422;
|
|
23210
23040
|
}
|
|
23211
23041
|
HTTP.UnprocessableEntity = UnprocessableEntity;
|
|
23212
23042
|
class UpgradeRequired extends ErrorCategory {
|
|
23213
|
-
|
|
23214
|
-
|
|
23215
|
-
this.name = "UpgradeRequired";
|
|
23216
|
-
this.code = 426;
|
|
23217
|
-
}
|
|
23043
|
+
name = "UpgradeRequired";
|
|
23044
|
+
code = 426;
|
|
23218
23045
|
}
|
|
23219
23046
|
HTTP.UpgradeRequired = UpgradeRequired;
|
|
23220
23047
|
class PreconditionRequired extends ErrorCategory {
|
|
23221
|
-
|
|
23222
|
-
|
|
23223
|
-
this.name = "PreconditionRequired";
|
|
23224
|
-
this.code = 428;
|
|
23225
|
-
}
|
|
23048
|
+
name = "PreconditionRequired";
|
|
23049
|
+
code = 428;
|
|
23226
23050
|
}
|
|
23227
23051
|
HTTP.PreconditionRequired = PreconditionRequired;
|
|
23228
23052
|
class TooManyRequests extends ErrorCategory {
|
|
23229
|
-
|
|
23230
|
-
|
|
23231
|
-
this.name = "TooManyRequests";
|
|
23232
|
-
this.code = 429;
|
|
23233
|
-
}
|
|
23053
|
+
name = "TooManyRequests";
|
|
23054
|
+
code = 429;
|
|
23234
23055
|
}
|
|
23235
23056
|
HTTP.TooManyRequests = TooManyRequests;
|
|
23236
23057
|
class InternalServerError extends ErrorCategory {
|
|
23237
|
-
|
|
23238
|
-
|
|
23239
|
-
this.name = "InternalServerError";
|
|
23240
|
-
this.code = 500;
|
|
23241
|
-
}
|
|
23058
|
+
name = "InternalServerError";
|
|
23059
|
+
code = 500;
|
|
23242
23060
|
}
|
|
23243
23061
|
HTTP.InternalServerError = InternalServerError;
|
|
23244
23062
|
class NotImplemented extends ErrorCategory {
|
|
23245
|
-
|
|
23246
|
-
|
|
23247
|
-
this.name = "NotImplemented";
|
|
23248
|
-
this.code = 501;
|
|
23249
|
-
}
|
|
23063
|
+
name = "NotImplemented";
|
|
23064
|
+
code = 501;
|
|
23250
23065
|
}
|
|
23251
23066
|
HTTP.NotImplemented = NotImplemented;
|
|
23252
23067
|
})(HTTP || (HTTP = {}));
|
|
@@ -23581,6 +23396,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
23581
23396
|
* @public
|
|
23582
23397
|
*/
|
|
23583
23398
|
class BeDuration {
|
|
23399
|
+
_milliseconds;
|
|
23584
23400
|
constructor(milliseconds = 0) { this._milliseconds = milliseconds; }
|
|
23585
23401
|
/** The duration in milliseconds */
|
|
23586
23402
|
get milliseconds() { return this._milliseconds; }
|
|
@@ -23647,6 +23463,7 @@ class BeDuration {
|
|
|
23647
23463
|
* @public
|
|
23648
23464
|
*/
|
|
23649
23465
|
class BeTimePoint {
|
|
23466
|
+
_milliseconds;
|
|
23650
23467
|
/** the time in milliseconds, of this BeTimePoint (relative to January 1, 1970 00:00:00 UTC.) */
|
|
23651
23468
|
get milliseconds() { return this._milliseconds; }
|
|
23652
23469
|
constructor(milliseconds) { this._milliseconds = milliseconds; }
|
|
@@ -23685,6 +23502,9 @@ class BeTimePoint {
|
|
|
23685
23502
|
* @public
|
|
23686
23503
|
*/
|
|
23687
23504
|
class StopWatch {
|
|
23505
|
+
description;
|
|
23506
|
+
_start;
|
|
23507
|
+
_stop;
|
|
23688
23508
|
/** Get the elapsed time since start() on a running timer. */
|
|
23689
23509
|
get current() { return BeDuration.fromMilliseconds(BeTimePoint.now().milliseconds - (!!this._start ? this._start.milliseconds : 0)); }
|
|
23690
23510
|
/** Get the elapsed time, in seconds, since start() on a running timer. */
|
|
@@ -23807,6 +23627,8 @@ function flattenObject(obj) {
|
|
|
23807
23627
|
* @deprecated in 4.4 - OpenTelemetry Tracing helpers will become internal in a future release. Apps should use `@opentelemetry/api` directly.
|
|
23808
23628
|
*/
|
|
23809
23629
|
class Tracing {
|
|
23630
|
+
static _tracer;
|
|
23631
|
+
static _openTelemetry;
|
|
23810
23632
|
/**
|
|
23811
23633
|
* If OpenTelemetry tracing is enabled, creates a new span and runs the provided function in it.
|
|
23812
23634
|
* If OpenTelemetry tracing is _not_ enabled, runs the provided function.
|
|
@@ -23936,10 +23758,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
23936
23758
|
* @public
|
|
23937
23759
|
*/
|
|
23938
23760
|
class TupleKeyedMap {
|
|
23761
|
+
_map = new Map();
|
|
23939
23762
|
// argument types match those of Map
|
|
23940
23763
|
constructor(entries) {
|
|
23941
|
-
this._map = new Map();
|
|
23942
|
-
this._size = 0;
|
|
23943
23764
|
if (entries)
|
|
23944
23765
|
for (const [k, v] of entries) {
|
|
23945
23766
|
this.set(k, v);
|
|
@@ -23999,6 +23820,7 @@ class TupleKeyedMap {
|
|
|
23999
23820
|
}
|
|
24000
23821
|
yield* impl(this._map, []);
|
|
24001
23822
|
}
|
|
23823
|
+
_size = 0;
|
|
24002
23824
|
get size() {
|
|
24003
23825
|
return this._size;
|
|
24004
23826
|
}
|
|
@@ -24049,6 +23871,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
24049
23871
|
* @public
|
|
24050
23872
|
*/
|
|
24051
23873
|
class TypedArrayBuilder {
|
|
23874
|
+
/** The constructor for the specific type of array being populated. */
|
|
23875
|
+
_constructor;
|
|
23876
|
+
/** The underlying typed array, to be reallocated and copied when its capacity is exceeded. */
|
|
23877
|
+
_data;
|
|
23878
|
+
/** The number of elements added to the array so far. */
|
|
23879
|
+
_length;
|
|
23880
|
+
/** Multiplier applied to required capacity by [[ensureCapacity]]. */
|
|
23881
|
+
growthFactor;
|
|
24052
23882
|
/** Constructs a new builder from the specified options, with a [[length]] of zero. */
|
|
24053
23883
|
constructor(constructor, options) {
|
|
24054
23884
|
this._constructor = constructor;
|
|
@@ -24257,15 +24087,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
24257
24087
|
*/
|
|
24258
24088
|
class UnexpectedErrors {
|
|
24259
24089
|
/** handler for re-throwing exceptions directly */
|
|
24260
|
-
static
|
|
24090
|
+
static reThrowImmediate = (e) => { throw e; };
|
|
24261
24091
|
/** handler for re-throwing exceptions from an asynchronous interval (so the current call stack is not aborted) */
|
|
24262
|
-
static
|
|
24092
|
+
static reThrowDeferred = (e) => setTimeout(() => { throw e; }, 0);
|
|
24263
24093
|
/** handler for logging exception to console */
|
|
24264
|
-
static
|
|
24094
|
+
static consoleLog = (e) => console.error(e); // eslint-disable-line no-console
|
|
24265
24095
|
/** handler for logging exception with [[Logger]] */
|
|
24266
|
-
static
|
|
24267
|
-
static
|
|
24268
|
-
static
|
|
24096
|
+
static errorLog = (e) => _Logger__WEBPACK_IMPORTED_MODULE_0__.Logger.logException("unhandled", e);
|
|
24097
|
+
static _telemetry = [];
|
|
24098
|
+
static _handler = this.errorLog; // default to error logging
|
|
24269
24099
|
constructor() { } // this is a singleton
|
|
24270
24100
|
/** Add a "telemetry tracker" for unexpected errors. Useful for tracking/reporting errors without changing handler.
|
|
24271
24101
|
* @returns a method to remove the tracker
|
|
@@ -24387,11 +24217,13 @@ const defaultYieldManagerOptions = {
|
|
|
24387
24217
|
* @public
|
|
24388
24218
|
*/
|
|
24389
24219
|
class YieldManager {
|
|
24220
|
+
/** Options controlling the yield behavior. */
|
|
24221
|
+
options;
|
|
24222
|
+
_counter = 0;
|
|
24390
24223
|
/** Constructor.
|
|
24391
24224
|
* @param options Options customizing the yield behavior. Omitted properties are assigned their default values.
|
|
24392
24225
|
*/
|
|
24393
24226
|
constructor(options = {}) {
|
|
24394
|
-
this._counter = 0;
|
|
24395
24227
|
this.options = { ...defaultYieldManagerOptions, ...options };
|
|
24396
24228
|
}
|
|
24397
24229
|
/** Increment the iteration counter, yielding control and resetting the counter if [[options.iterationsBeforeYield]] is exceeded. */
|