@npm_leadtech/legal-lib-components 0.19.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/build/index.js +1 -1
  2. package/package.json +1 -1
  3. package/coverage/clover.xml +0 -162
  4. package/coverage/coverage-final.json +0 -847
  5. package/coverage/lcov-report/base.css +0 -224
  6. package/coverage/lcov-report/block-navigation.js +0 -75
  7. package/coverage/lcov-report/components/atoms/AddButton/AddButton.js.html +0 -230
  8. package/coverage/lcov-report/components/atoms/AddButton/index.html +0 -117
  9. package/coverage/lcov-report/components/atoms/Button/Button.js.html +0 -551
  10. package/coverage/lcov-report/components/atoms/Button/index.html +0 -117
  11. package/coverage/lcov-report/components/atoms/CardPane/CardPane.js.html +0 -164
  12. package/coverage/lcov-report/components/atoms/CardPane/index.html +0 -117
  13. package/coverage/lcov-report/components/atoms/Checkbox/Checkbox.js.html +0 -212
  14. package/coverage/lcov-report/components/atoms/Checkbox/index.html +0 -117
  15. package/coverage/lcov-report/components/atoms/Disclaimer/Disclaimer.js.html +0 -254
  16. package/coverage/lcov-report/components/atoms/Disclaimer/index.html +0 -117
  17. package/coverage/lcov-report/components/atoms/DocumentStatus/DocumentStatus.js.html +0 -209
  18. package/coverage/lcov-report/components/atoms/DocumentStatus/index.html +0 -117
  19. package/coverage/lcov-report/components/atoms/IconImage/IconImage.js.html +0 -137
  20. package/coverage/lcov-report/components/atoms/IconImage/index.html +0 -111
  21. package/coverage/lcov-report/components/atoms/LogoText/LogoText.js.html +0 -170
  22. package/coverage/lcov-report/components/atoms/LogoText/index.html +0 -117
  23. package/coverage/lcov-report/components/atoms/Message/Message.js.html +0 -134
  24. package/coverage/lcov-report/components/atoms/Message/index.html +0 -117
  25. package/coverage/lcov-report/components/atoms/RemoveButton/RemoveButton.js.html +0 -230
  26. package/coverage/lcov-report/components/atoms/RemoveButton/index.html +0 -117
  27. package/coverage/lcov-report/components/atoms/SearchSelect/SearchSelect.js.html +0 -383
  28. package/coverage/lcov-report/components/atoms/SearchSelect/index.html +0 -117
  29. package/coverage/lcov-report/components/atoms/Toggle/Toggle.js.html +0 -164
  30. package/coverage/lcov-report/components/atoms/Toggle/index.html +0 -117
  31. package/coverage/lcov-report/favicon.png +0 -0
  32. package/coverage/lcov-report/index.html +0 -282
  33. package/coverage/lcov-report/prettify.css +0 -1
  34. package/coverage/lcov-report/prettify.js +0 -896
  35. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  36. package/coverage/lcov-report/sorter.js +0 -189
  37. package/coverage/lcov-report/utils/envVariables.js.html +0 -89
  38. package/coverage/lcov-report/utils/index.html +0 -117
  39. package/coverage/lcov.info +0 -323
@@ -1,896 +0,0 @@
1
- /* eslint-disable */
2
- window.PR_SHOULD_USE_CONTINUATION = true;
3
- (function () {
4
- var h = ['break,continue,do,else,for,if,return,while'];
5
- var u = [
6
- h,
7
- 'auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile',
8
- ];
9
- var p = [u, 'catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof'];
10
- var l = [
11
- p,
12
- 'alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where',
13
- ];
14
- var x = [
15
- p,
16
- 'abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient',
17
- ];
18
- var R = [
19
- x,
20
- 'as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var',
21
- ];
22
- var r =
23
- 'all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes';
24
- var w = [p, 'debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN'];
25
- var s =
26
- 'caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END';
27
- var I = [
28
- h,
29
- 'and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None',
30
- ];
31
- var f = [
32
- h,
33
- 'alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END',
34
- ];
35
- var H = [h, 'case,done,elif,esac,eval,fi,function,in,local,set,then,until'];
36
- var A = [l, R, w, s + I, f, H];
37
- var e =
38
- /^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/;
39
- var C = 'str';
40
- var z = 'kwd';
41
- var j = 'com';
42
- var O = 'typ';
43
- var G = 'lit';
44
- var L = 'pun';
45
- var F = 'pln';
46
- var m = 'tag';
47
- var E = 'dec';
48
- var J = 'src';
49
- var P = 'atn';
50
- var n = 'atv';
51
- var N = 'nocode';
52
- var M =
53
- '(?:^^\\.?|[+-]|\\!|\\!=|\\!==|\\#|\\%|\\%=|&|&&|&&=|&=|\\(|\\*|\\*=|\\+=|\\,|\\-=|\\->|\\/|\\/=|:|::|\\;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|\\?|\\@|\\[|\\^|\\^=|\\^\\^|\\^\\^=|\\{|\\||\\|=|\\|\\||\\|\\|=|\\~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*';
54
- function k(Z) {
55
- var ad = 0;
56
- var S = false;
57
- var ac = false;
58
- for (var V = 0, U = Z.length; V < U; ++V) {
59
- var ae = Z[V];
60
- if (ae.ignoreCase) {
61
- ac = true;
62
- } else {
63
- if (/[a-z]/i.test(ae.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi, ''))) {
64
- S = true;
65
- ac = false;
66
- break;
67
- }
68
- }
69
- }
70
- var Y = { b: 8, t: 9, n: 10, v: 11, f: 12, r: 13 };
71
- function ab(ah) {
72
- var ag = ah.charCodeAt(0);
73
- if (ag !== 92) {
74
- return ag;
75
- }
76
- var af = ah.charAt(1);
77
- ag = Y[af];
78
- if (ag) {
79
- return ag;
80
- } else {
81
- if ('0' <= af && af <= '7') {
82
- return parseInt(ah.substring(1), 8);
83
- } else {
84
- if (af === 'u' || af === 'x') {
85
- return parseInt(ah.substring(2), 16);
86
- } else {
87
- return ah.charCodeAt(1);
88
- }
89
- }
90
- }
91
- }
92
- function T(af) {
93
- if (af < 32) {
94
- return (af < 16 ? '\\x0' : '\\x') + af.toString(16);
95
- }
96
- var ag = String.fromCharCode(af);
97
- if (ag === '\\' || ag === '-' || ag === '[' || ag === ']') {
98
- ag = '\\' + ag;
99
- }
100
- return ag;
101
- }
102
- function X(am) {
103
- var aq = am
104
- .substring(1, am.length - 1)
105
- .match(
106
- new RegExp(
107
- '\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]',
108
- 'g'
109
- )
110
- );
111
- var ak = [];
112
- var af = [];
113
- var ao = aq[0] === '^';
114
- for (var ar = ao ? 1 : 0, aj = aq.length; ar < aj; ++ar) {
115
- var ah = aq[ar];
116
- if (/\\[bdsw]/i.test(ah)) {
117
- ak.push(ah);
118
- } else {
119
- var ag = ab(ah);
120
- var al;
121
- if (ar + 2 < aj && '-' === aq[ar + 1]) {
122
- al = ab(aq[ar + 2]);
123
- ar += 2;
124
- } else {
125
- al = ag;
126
- }
127
- af.push([ag, al]);
128
- if (!(al < 65 || ag > 122)) {
129
- if (!(al < 65 || ag > 90)) {
130
- af.push([Math.max(65, ag) | 32, Math.min(al, 90) | 32]);
131
- }
132
- if (!(al < 97 || ag > 122)) {
133
- af.push([Math.max(97, ag) & ~32, Math.min(al, 122) & ~32]);
134
- }
135
- }
136
- }
137
- }
138
- af.sort(function (av, au) {
139
- return av[0] - au[0] || au[1] - av[1];
140
- });
141
- var ai = [];
142
- var ap = [NaN, NaN];
143
- for (var ar = 0; ar < af.length; ++ar) {
144
- var at = af[ar];
145
- if (at[0] <= ap[1] + 1) {
146
- ap[1] = Math.max(ap[1], at[1]);
147
- } else {
148
- ai.push((ap = at));
149
- }
150
- }
151
- var an = ['['];
152
- if (ao) {
153
- an.push('^');
154
- }
155
- an.push.apply(an, ak);
156
- for (var ar = 0; ar < ai.length; ++ar) {
157
- var at = ai[ar];
158
- an.push(T(at[0]));
159
- if (at[1] > at[0]) {
160
- if (at[1] + 1 > at[0]) {
161
- an.push('-');
162
- }
163
- an.push(T(at[1]));
164
- }
165
- }
166
- an.push(']');
167
- return an.join('');
168
- }
169
- function W(al) {
170
- var aj = al.source.match(
171
- new RegExp(
172
- '(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)',
173
- 'g'
174
- )
175
- );
176
- var ah = aj.length;
177
- var an = [];
178
- for (var ak = 0, am = 0; ak < ah; ++ak) {
179
- var ag = aj[ak];
180
- if (ag === '(') {
181
- ++am;
182
- } else {
183
- if ('\\' === ag.charAt(0)) {
184
- var af = +ag.substring(1);
185
- if (af && af <= am) {
186
- an[af] = -1;
187
- }
188
- }
189
- }
190
- }
191
- for (var ak = 1; ak < an.length; ++ak) {
192
- if (-1 === an[ak]) {
193
- an[ak] = ++ad;
194
- }
195
- }
196
- for (var ak = 0, am = 0; ak < ah; ++ak) {
197
- var ag = aj[ak];
198
- if (ag === '(') {
199
- ++am;
200
- if (an[am] === undefined) {
201
- aj[ak] = '(?:';
202
- }
203
- } else {
204
- if ('\\' === ag.charAt(0)) {
205
- var af = +ag.substring(1);
206
- if (af && af <= am) {
207
- aj[ak] = '\\' + an[am];
208
- }
209
- }
210
- }
211
- }
212
- for (var ak = 0, am = 0; ak < ah; ++ak) {
213
- if ('^' === aj[ak] && '^' !== aj[ak + 1]) {
214
- aj[ak] = '';
215
- }
216
- }
217
- if (al.ignoreCase && S) {
218
- for (var ak = 0; ak < ah; ++ak) {
219
- var ag = aj[ak];
220
- var ai = ag.charAt(0);
221
- if (ag.length >= 2 && ai === '[') {
222
- aj[ak] = X(ag);
223
- } else {
224
- if (ai !== '\\') {
225
- aj[ak] = ag.replace(/[a-zA-Z]/g, function (ao) {
226
- var ap = ao.charCodeAt(0);
227
- return '[' + String.fromCharCode(ap & ~32, ap | 32) + ']';
228
- });
229
- }
230
- }
231
- }
232
- }
233
- return aj.join('');
234
- }
235
- var aa = [];
236
- for (var V = 0, U = Z.length; V < U; ++V) {
237
- var ae = Z[V];
238
- if (ae.global || ae.multiline) {
239
- throw new Error('' + ae);
240
- }
241
- aa.push('(?:' + W(ae) + ')');
242
- }
243
- return new RegExp(aa.join('|'), ac ? 'gi' : 'g');
244
- }
245
- function a(V) {
246
- var U = /(?:^|\s)nocode(?:\s|$)/;
247
- var X = [];
248
- var T = 0;
249
- var Z = [];
250
- var W = 0;
251
- var S;
252
- if (V.currentStyle) {
253
- S = V.currentStyle.whiteSpace;
254
- } else {
255
- if (window.getComputedStyle) {
256
- S = document.defaultView.getComputedStyle(V, null).getPropertyValue('white-space');
257
- }
258
- }
259
- var Y = S && 'pre' === S.substring(0, 3);
260
- function aa(ab) {
261
- switch (ab.nodeType) {
262
- case 1:
263
- if (U.test(ab.className)) {
264
- return;
265
- }
266
- for (var ae = ab.firstChild; ae; ae = ae.nextSibling) {
267
- aa(ae);
268
- }
269
- var ad = ab.nodeName;
270
- if ('BR' === ad || 'LI' === ad) {
271
- X[W] = '\n';
272
- Z[W << 1] = T++;
273
- Z[(W++ << 1) | 1] = ab;
274
- }
275
- break;
276
- case 3:
277
- case 4:
278
- var ac = ab.nodeValue;
279
- if (ac.length) {
280
- if (!Y) {
281
- ac = ac.replace(/[ \t\r\n]+/g, ' ');
282
- } else {
283
- ac = ac.replace(/\r\n?/g, '\n');
284
- }
285
- X[W] = ac;
286
- Z[W << 1] = T;
287
- T += ac.length;
288
- Z[(W++ << 1) | 1] = ab;
289
- }
290
- break;
291
- }
292
- }
293
- aa(V);
294
- return { sourceCode: X.join('').replace(/\n$/, ''), spans: Z };
295
- }
296
- function B(S, U, W, T) {
297
- if (!U) {
298
- return;
299
- }
300
- var V = { sourceCode: U, basePos: S };
301
- W(V);
302
- T.push.apply(T, V.decorations);
303
- }
304
- var v = /\S/;
305
- function o(S) {
306
- var V = undefined;
307
- for (var U = S.firstChild; U; U = U.nextSibling) {
308
- var T = U.nodeType;
309
- V = T === 1 ? (V ? S : U) : T === 3 ? (v.test(U.nodeValue) ? S : V) : V;
310
- }
311
- return V === S ? undefined : V;
312
- }
313
- function g(U, T) {
314
- var S = {};
315
- var V;
316
- (function () {
317
- var ad = U.concat(T);
318
- var ah = [];
319
- var ag = {};
320
- for (var ab = 0, Z = ad.length; ab < Z; ++ab) {
321
- var Y = ad[ab];
322
- var ac = Y[3];
323
- if (ac) {
324
- for (var ae = ac.length; --ae >= 0; ) {
325
- S[ac.charAt(ae)] = Y;
326
- }
327
- }
328
- var af = Y[1];
329
- var aa = '' + af;
330
- if (!ag.hasOwnProperty(aa)) {
331
- ah.push(af);
332
- ag[aa] = null;
333
- }
334
- }
335
- ah.push(/[\0-\uffff]/);
336
- V = k(ah);
337
- })();
338
- var X = T.length;
339
- var W = function (ah) {
340
- var Z = ah.sourceCode,
341
- Y = ah.basePos;
342
- var ad = [Y, F];
343
- var af = 0;
344
- var an = Z.match(V) || [];
345
- var aj = {};
346
- for (var ae = 0, aq = an.length; ae < aq; ++ae) {
347
- var ag = an[ae];
348
- var ap = aj[ag];
349
- var ai = void 0;
350
- var am;
351
- if (typeof ap === 'string') {
352
- am = false;
353
- } else {
354
- var aa = S[ag.charAt(0)];
355
- if (aa) {
356
- ai = ag.match(aa[1]);
357
- ap = aa[0];
358
- } else {
359
- for (var ao = 0; ao < X; ++ao) {
360
- aa = T[ao];
361
- ai = ag.match(aa[1]);
362
- if (ai) {
363
- ap = aa[0];
364
- break;
365
- }
366
- }
367
- if (!ai) {
368
- ap = F;
369
- }
370
- }
371
- am = ap.length >= 5 && 'lang-' === ap.substring(0, 5);
372
- if (am && !(ai && typeof ai[1] === 'string')) {
373
- am = false;
374
- ap = J;
375
- }
376
- if (!am) {
377
- aj[ag] = ap;
378
- }
379
- }
380
- var ab = af;
381
- af += ag.length;
382
- if (!am) {
383
- ad.push(Y + ab, ap);
384
- } else {
385
- var al = ai[1];
386
- var ak = ag.indexOf(al);
387
- var ac = ak + al.length;
388
- if (ai[2]) {
389
- ac = ag.length - ai[2].length;
390
- ak = ac - al.length;
391
- }
392
- var ar = ap.substring(5);
393
- B(Y + ab, ag.substring(0, ak), W, ad);
394
- B(Y + ab + ak, al, q(ar, al), ad);
395
- B(Y + ab + ac, ag.substring(ac), W, ad);
396
- }
397
- }
398
- ah.decorations = ad;
399
- };
400
- return W;
401
- }
402
- function i(T) {
403
- var W = [],
404
- S = [];
405
- if (T.tripleQuotedStrings) {
406
- W.push([
407
- C,
408
- /^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,
409
- null,
410
- '\'"',
411
- ]);
412
- } else {
413
- if (T.multiLineStrings) {
414
- W.push([
415
- C,
416
- /^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,
417
- null,
418
- '\'"`',
419
- ]);
420
- } else {
421
- W.push([C, /^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/, null, '"\'']);
422
- }
423
- }
424
- if (T.verbatimStrings) {
425
- S.push([C, /^@\"(?:[^\"]|\"\")*(?:\"|$)/, null]);
426
- }
427
- var Y = T.hashComments;
428
- if (Y) {
429
- if (T.cStyleComments) {
430
- if (Y > 1) {
431
- W.push([j, /^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/, null, '#']);
432
- } else {
433
- W.push([
434
- j,
435
- /^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\r\n]*)/,
436
- null,
437
- '#',
438
- ]);
439
- }
440
- S.push([C, /^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/, null]);
441
- } else {
442
- W.push([j, /^#[^\r\n]*/, null, '#']);
443
- }
444
- }
445
- if (T.cStyleComments) {
446
- S.push([j, /^\/\/[^\r\n]*/, null]);
447
- S.push([j, /^\/\*[\s\S]*?(?:\*\/|$)/, null]);
448
- }
449
- if (T.regexLiterals) {
450
- var X = '/(?=[^/*])(?:[^/\\x5B\\x5C]|\\x5C[\\s\\S]|\\x5B(?:[^\\x5C\\x5D]|\\x5C[\\s\\S])*(?:\\x5D|$))+/';
451
- S.push(['lang-regex', new RegExp('^' + M + '(' + X + ')')]);
452
- }
453
- var V = T.types;
454
- if (V) {
455
- S.push([O, V]);
456
- }
457
- var U = ('' + T.keywords).replace(/^ | $/g, '');
458
- if (U.length) {
459
- S.push([z, new RegExp('^(?:' + U.replace(/[\s,]+/g, '|') + ')\\b'), null]);
460
- }
461
- W.push([F, /^\s+/, null, ' \r\n\t\xA0']);
462
- S.push(
463
- [G, /^@[a-z_$][a-z_$@0-9]*/i, null],
464
- [O, /^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/, null],
465
- [F, /^[a-z_$][a-z_$@0-9]*/i, null],
466
- [
467
- G,
468
- new RegExp('^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*', 'i'),
469
- null,
470
- '0123456789',
471
- ],
472
- [F, /^\\[\s\S]?/, null],
473
- [L, /^.[^\s\w\.$@\'\"\`\/\#\\]*/, null]
474
- );
475
- return g(W, S);
476
- }
477
- var K = i({ keywords: A, hashComments: true, cStyleComments: true, multiLineStrings: true, regexLiterals: true });
478
- function Q(V, ag) {
479
- var U = /(?:^|\s)nocode(?:\s|$)/;
480
- var ab = /\r\n?|\n/;
481
- var ac = V.ownerDocument;
482
- var S;
483
- if (V.currentStyle) {
484
- S = V.currentStyle.whiteSpace;
485
- } else {
486
- if (window.getComputedStyle) {
487
- S = ac.defaultView.getComputedStyle(V, null).getPropertyValue('white-space');
488
- }
489
- }
490
- var Z = S && 'pre' === S.substring(0, 3);
491
- var af = ac.createElement('LI');
492
- while (V.firstChild) {
493
- af.appendChild(V.firstChild);
494
- }
495
- var W = [af];
496
- function ae(al) {
497
- switch (al.nodeType) {
498
- case 1:
499
- if (U.test(al.className)) {
500
- break;
501
- }
502
- if ('BR' === al.nodeName) {
503
- ad(al);
504
- if (al.parentNode) {
505
- al.parentNode.removeChild(al);
506
- }
507
- } else {
508
- for (var an = al.firstChild; an; an = an.nextSibling) {
509
- ae(an);
510
- }
511
- }
512
- break;
513
- case 3:
514
- case 4:
515
- if (Z) {
516
- var am = al.nodeValue;
517
- var aj = am.match(ab);
518
- if (aj) {
519
- var ai = am.substring(0, aj.index);
520
- al.nodeValue = ai;
521
- var ah = am.substring(aj.index + aj[0].length);
522
- if (ah) {
523
- var ak = al.parentNode;
524
- ak.insertBefore(ac.createTextNode(ah), al.nextSibling);
525
- }
526
- ad(al);
527
- if (!ai) {
528
- al.parentNode.removeChild(al);
529
- }
530
- }
531
- }
532
- break;
533
- }
534
- }
535
- function ad(ak) {
536
- while (!ak.nextSibling) {
537
- ak = ak.parentNode;
538
- if (!ak) {
539
- return;
540
- }
541
- }
542
- function ai(al, ar) {
543
- var aq = ar ? al.cloneNode(false) : al;
544
- var ao = al.parentNode;
545
- if (ao) {
546
- var ap = ai(ao, 1);
547
- var an = al.nextSibling;
548
- ap.appendChild(aq);
549
- for (var am = an; am; am = an) {
550
- an = am.nextSibling;
551
- ap.appendChild(am);
552
- }
553
- }
554
- return aq;
555
- }
556
- var ah = ai(ak.nextSibling, 0);
557
- for (var aj; (aj = ah.parentNode) && aj.nodeType === 1; ) {
558
- ah = aj;
559
- }
560
- W.push(ah);
561
- }
562
- for (var Y = 0; Y < W.length; ++Y) {
563
- ae(W[Y]);
564
- }
565
- if (ag === (ag | 0)) {
566
- W[0].setAttribute('value', ag);
567
- }
568
- var aa = ac.createElement('OL');
569
- aa.className = 'linenums';
570
- var X = Math.max(0, (ag - 1) | 0) || 0;
571
- for (var Y = 0, T = W.length; Y < T; ++Y) {
572
- af = W[Y];
573
- af.className = 'L' + ((Y + X) % 10);
574
- if (!af.firstChild) {
575
- af.appendChild(ac.createTextNode('\xA0'));
576
- }
577
- aa.appendChild(af);
578
- }
579
- V.appendChild(aa);
580
- }
581
- function D(ac) {
582
- var aj = /\bMSIE\b/.test(navigator.userAgent);
583
- var am = /\n/g;
584
- var al = ac.sourceCode;
585
- var an = al.length;
586
- var V = 0;
587
- var aa = ac.spans;
588
- var T = aa.length;
589
- var ah = 0;
590
- var X = ac.decorations;
591
- var Y = X.length;
592
- var Z = 0;
593
- X[Y] = an;
594
- var ar, aq;
595
- for (aq = ar = 0; aq < Y; ) {
596
- if (X[aq] !== X[aq + 2]) {
597
- X[ar++] = X[aq++];
598
- X[ar++] = X[aq++];
599
- } else {
600
- aq += 2;
601
- }
602
- }
603
- Y = ar;
604
- for (aq = ar = 0; aq < Y; ) {
605
- var at = X[aq];
606
- var ab = X[aq + 1];
607
- var W = aq + 2;
608
- while (W + 2 <= Y && X[W + 1] === ab) {
609
- W += 2;
610
- }
611
- X[ar++] = at;
612
- X[ar++] = ab;
613
- aq = W;
614
- }
615
- Y = X.length = ar;
616
- var ae = null;
617
- while (ah < T) {
618
- var af = aa[ah];
619
- var S = aa[ah + 2] || an;
620
- var ag = X[Z];
621
- var ap = X[Z + 2] || an;
622
- var W = Math.min(S, ap);
623
- var ak = aa[ah + 1];
624
- var U;
625
- if (ak.nodeType !== 1 && (U = al.substring(V, W))) {
626
- if (aj) {
627
- U = U.replace(am, '\r');
628
- }
629
- ak.nodeValue = U;
630
- var ai = ak.ownerDocument;
631
- var ao = ai.createElement('SPAN');
632
- ao.className = X[Z + 1];
633
- var ad = ak.parentNode;
634
- ad.replaceChild(ao, ak);
635
- ao.appendChild(ak);
636
- if (V < S) {
637
- aa[ah + 1] = ak = ai.createTextNode(al.substring(W, S));
638
- ad.insertBefore(ak, ao.nextSibling);
639
- }
640
- }
641
- V = W;
642
- if (V >= S) {
643
- ah += 2;
644
- }
645
- if (V >= ap) {
646
- Z += 2;
647
- }
648
- }
649
- }
650
- var t = {};
651
- function c(U, V) {
652
- for (var S = V.length; --S >= 0; ) {
653
- var T = V[S];
654
- if (!t.hasOwnProperty(T)) {
655
- t[T] = U;
656
- } else {
657
- if (window.console) {
658
- console.warn('cannot override language handler %s', T);
659
- }
660
- }
661
- }
662
- }
663
- function q(T, S) {
664
- if (!(T && t.hasOwnProperty(T))) {
665
- T = /^\s*</.test(S) ? 'default-markup' : 'default-code';
666
- }
667
- return t[T];
668
- }
669
- c(K, ['default-code']);
670
- c(
671
- g(
672
- [],
673
- [
674
- [F, /^[^<?]+/],
675
- [E, /^<!\w[^>]*(?:>|$)/],
676
- [j, /^<\!--[\s\S]*?(?:-\->|$)/],
677
- ['lang-', /^<\?([\s\S]+?)(?:\?>|$)/],
678
- ['lang-', /^<%([\s\S]+?)(?:%>|$)/],
679
- [L, /^(?:<[%?]|[%?]>)/],
680
- ['lang-', /^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],
681
- ['lang-js', /^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],
682
- ['lang-css', /^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],
683
- ['lang-in.tag', /^(<\/?[a-z][^<>]*>)/i],
684
- ]
685
- ),
686
- ['default-markup', 'htm', 'html', 'mxml', 'xhtml', 'xml', 'xsl']
687
- );
688
- c(
689
- g(
690
- [
691
- [F, /^[\s]+/, null, ' \t\r\n'],
692
- [n, /^(?:\"[^\"]*\"?|\'[^\']*\'?)/, null, '"\''],
693
- ],
694
- [
695
- [m, /^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],
696
- [P, /^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],
697
- ['lang-uq.val', /^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],
698
- [L, /^[=<>\/]+/],
699
- ['lang-js', /^on\w+\s*=\s*\"([^\"]+)\"/i],
700
- ['lang-js', /^on\w+\s*=\s*\'([^\']+)\'/i],
701
- ['lang-js', /^on\w+\s*=\s*([^\"\'>\s]+)/i],
702
- ['lang-css', /^style\s*=\s*\"([^\"]+)\"/i],
703
- ['lang-css', /^style\s*=\s*\'([^\']+)\'/i],
704
- ['lang-css', /^style\s*=\s*([^\"\'>\s]+)/i],
705
- ]
706
- ),
707
- ['in.tag']
708
- );
709
- c(g([], [[n, /^[\s\S]+/]]), ['uq.val']);
710
- c(i({ keywords: l, hashComments: true, cStyleComments: true, types: e }), ['c', 'cc', 'cpp', 'cxx', 'cyc', 'm']);
711
- c(i({ keywords: 'null,true,false' }), ['json']);
712
- c(i({ keywords: R, hashComments: true, cStyleComments: true, verbatimStrings: true, types: e }), ['cs']);
713
- c(i({ keywords: x, cStyleComments: true }), ['java']);
714
- c(i({ keywords: H, hashComments: true, multiLineStrings: true }), ['bsh', 'csh', 'sh']);
715
- c(i({ keywords: I, hashComments: true, multiLineStrings: true, tripleQuotedStrings: true }), ['cv', 'py']);
716
- c(i({ keywords: s, hashComments: true, multiLineStrings: true, regexLiterals: true }), ['perl', 'pl', 'pm']);
717
- c(i({ keywords: f, hashComments: true, multiLineStrings: true, regexLiterals: true }), ['rb']);
718
- c(i({ keywords: w, cStyleComments: true, regexLiterals: true }), ['js']);
719
- c(
720
- i({
721
- keywords: r,
722
- hashComments: 3,
723
- cStyleComments: true,
724
- multilineStrings: true,
725
- tripleQuotedStrings: true,
726
- regexLiterals: true,
727
- }),
728
- ['coffee']
729
- );
730
- c(g([], [[C, /^[\s\S]+/]]), ['regex']);
731
- function d(V) {
732
- var U = V.langExtension;
733
- try {
734
- var S = a(V.sourceNode);
735
- var T = S.sourceCode;
736
- V.sourceCode = T;
737
- V.spans = S.spans;
738
- V.basePos = 0;
739
- q(U, T)(V);
740
- D(V);
741
- } catch (W) {
742
- if ('console' in window) {
743
- console.log(W && W.stack ? W.stack : W);
744
- }
745
- }
746
- }
747
- function y(W, V, U) {
748
- var S = document.createElement('PRE');
749
- S.innerHTML = W;
750
- if (U) {
751
- Q(S, U);
752
- }
753
- var T = { langExtension: V, numberLines: U, sourceNode: S };
754
- d(T);
755
- return S.innerHTML;
756
- }
757
- function b(ad) {
758
- function Y(af) {
759
- return document.getElementsByTagName(af);
760
- }
761
- var ac = [Y('pre'), Y('code'), Y('xmp')];
762
- var T = [];
763
- for (var aa = 0; aa < ac.length; ++aa) {
764
- for (var Z = 0, V = ac[aa].length; Z < V; ++Z) {
765
- T.push(ac[aa][Z]);
766
- }
767
- }
768
- ac = null;
769
- var W = Date;
770
- if (!W.now) {
771
- W = {
772
- now: function () {
773
- return +new Date();
774
- },
775
- };
776
- }
777
- var X = 0;
778
- var S;
779
- var ab = /\blang(?:uage)?-([\w.]+)(?!\S)/;
780
- var ae = /\bprettyprint\b/;
781
- function U() {
782
- var ag = window.PR_SHOULD_USE_CONTINUATION ? W.now() + 250 : Infinity;
783
- for (; X < T.length && W.now() < ag; X++) {
784
- var aj = T[X];
785
- var ai = aj.className;
786
- if (ai.indexOf('prettyprint') >= 0) {
787
- var ah = ai.match(ab);
788
- var am;
789
- if (!ah && (am = o(aj)) && 'CODE' === am.tagName) {
790
- ah = am.className.match(ab);
791
- }
792
- if (ah) {
793
- ah = ah[1];
794
- }
795
- var al = false;
796
- for (var ak = aj.parentNode; ak; ak = ak.parentNode) {
797
- if (
798
- (ak.tagName === 'pre' || ak.tagName === 'code' || ak.tagName === 'xmp') &&
799
- ak.className &&
800
- ak.className.indexOf('prettyprint') >= 0
801
- ) {
802
- al = true;
803
- break;
804
- }
805
- }
806
- if (!al) {
807
- var af = aj.className.match(/\blinenums\b(?::(\d+))?/);
808
- af = af ? (af[1] && af[1].length ? +af[1] : true) : false;
809
- if (af) {
810
- Q(aj, af);
811
- }
812
- S = { langExtension: ah, sourceNode: aj, numberLines: af };
813
- d(S);
814
- }
815
- }
816
- }
817
- if (X < T.length) {
818
- setTimeout(U, 250);
819
- } else {
820
- if (ad) {
821
- ad();
822
- }
823
- }
824
- }
825
- U();
826
- }
827
- window.prettyPrintOne = y;
828
- window.prettyPrint = b;
829
- window.PR = {
830
- createSimpleLexer: g,
831
- registerLangHandler: c,
832
- sourceDecorator: i,
833
- PR_ATTRIB_NAME: P,
834
- PR_ATTRIB_VALUE: n,
835
- PR_COMMENT: j,
836
- PR_DECLARATION: E,
837
- PR_KEYWORD: z,
838
- PR_LITERAL: G,
839
- PR_NOCODE: N,
840
- PR_PLAIN: F,
841
- PR_PUNCTUATION: L,
842
- PR_SOURCE: J,
843
- PR_STRING: C,
844
- PR_TAG: m,
845
- PR_TYPE: O,
846
- };
847
- })();
848
- PR.registerLangHandler(
849
- PR.createSimpleLexer(
850
- [],
851
- [
852
- [PR.PR_DECLARATION, /^<!\w[^>]*(?:>|$)/],
853
- [PR.PR_COMMENT, /^<\!--[\s\S]*?(?:-\->|$)/],
854
- [PR.PR_PUNCTUATION, /^(?:<[%?]|[%?]>)/],
855
- ['lang-', /^<\?([\s\S]+?)(?:\?>|$)/],
856
- ['lang-', /^<%([\s\S]+?)(?:%>|$)/],
857
- ['lang-', /^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],
858
- [
859
- 'lang-handlebars',
860
- /^<script\b[^>]*type\s*=\s*['"]?text\/x-handlebars-template['"]?\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i,
861
- ],
862
- ['lang-js', /^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],
863
- ['lang-css', /^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],
864
- ['lang-in.tag', /^(<\/?[a-z][^<>]*>)/i],
865
- [PR.PR_DECLARATION, /^{{[#^>/]?\s*[\w.][^}]*}}/],
866
- [PR.PR_DECLARATION, /^{{&?\s*[\w.][^}]*}}/],
867
- [PR.PR_DECLARATION, /^{{{>?\s*[\w.][^}]*}}}/],
868
- [PR.PR_COMMENT, /^{{![^}]*}}/],
869
- ]
870
- ),
871
- ['handlebars', 'hbs']
872
- );
873
- PR.registerLangHandler(
874
- PR.createSimpleLexer(
875
- [[PR.PR_PLAIN, /^[ \t\r\n\f]+/, null, ' \t\r\n\f']],
876
- [
877
- [PR.PR_STRING, /^\"(?:[^\n\r\f\\\"]|\\(?:\r\n?|\n|\f)|\\[\s\S])*\"/, null],
878
- [PR.PR_STRING, /^\'(?:[^\n\r\f\\\']|\\(?:\r\n?|\n|\f)|\\[\s\S])*\'/, null],
879
- ['lang-css-str', /^url\(([^\)\"\']*)\)/i],
880
- [PR.PR_KEYWORD, /^(?:url|rgb|\!important|@import|@page|@media|@charset|inherit)(?=[^\-\w]|$)/i, null],
881
- ['lang-css-kw', /^(-?(?:[_a-z]|(?:\\[0-9a-f]+ ?))(?:[_a-z0-9\-]|\\(?:\\[0-9a-f]+ ?))*)\s*:/i],
882
- [PR.PR_COMMENT, /^\/\*[^*]*\*+(?:[^\/*][^*]*\*+)*\//],
883
- [PR.PR_COMMENT, /^(?:<!--|-->)/],
884
- [PR.PR_LITERAL, /^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],
885
- [PR.PR_LITERAL, /^#(?:[0-9a-f]{3}){1,2}/i],
886
- [PR.PR_PLAIN, /^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i],
887
- [PR.PR_PUNCTUATION, /^[^\s\w\'\"]+/],
888
- ]
889
- ),
890
- ['css']
891
- );
892
- PR.registerLangHandler(
893
- PR.createSimpleLexer([], [[PR.PR_KEYWORD, /^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i]]),
894
- ['css-kw']
895
- );
896
- PR.registerLangHandler(PR.createSimpleLexer([], [[PR.PR_STRING, /^[^\)\"\']+/]]), ['css-str']);