@subiz/widget-v4 4.0.83 → 4.0.85
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/compiled_src/chatbox/Typing.js +1 -1
- package/compiled_src/chatbox/Widget.js +9 -1
- package/compiled_src/popup/popup.js +7 -0
- package/dist/132.js +152 -36
- package/dist/178.js +174 -341
- package/dist/181a9b734bb.132.js +1 -0
- package/dist/181a9b734bb.178.js +1 -0
- package/dist/{17f00e48d38.213.js → 181a9b734bb.213.js} +1 -1
- package/dist/{17f00e48d38.335.js → 181a9b734bb.335.js} +1 -1
- package/dist/181a9b734bb.362.js +1 -0
- package/dist/181a9b734bb.441.js +1 -0
- package/dist/{17f00e48d38.605.js → 181a9b734bb.605.js} +0 -0
- package/dist/181a9b734bb.678.js +1 -0
- package/dist/181a9b734bb.782.js +1 -0
- package/dist/181a9b734bb.app.js +1 -0
- package/dist/{17f00e48d38.index.html → 181a9b734bb.index.html} +7 -3
- package/dist/{17f00e48d38.library.html → 181a9b734bb.library.html} +7 -3
- package/dist/181a9b734bb.library.js +1 -0
- package/dist/{17f00e48d38.preview.html → 181a9b734bb.preview.html} +1 -1
- package/dist/181a9b734bb.preview.js +1 -0
- package/dist/181a9b734bb.screenshoot.js +1 -0
- package/dist/213.js +10 -0
- package/dist/335.js +2 -2
- package/dist/362.js +21 -71
- package/dist/441.js +138 -56
- package/dist/678.js +20 -70
- package/dist/782.js +21 -118
- package/dist/HASH +1 -1
- package/dist/screenshoot.html +1 -1
- package/dist/screenshoot.js +185 -131
- package/package.json +14 -14
- package/src/chatbox/Typing.js +10 -11
- package/src/chatbox/Widget.js +7 -2
- package/src/popup/popup.js +23 -11
- package/dist/0b82fa7e5c3b07b40a44.png +0 -1
- package/dist/0f4af006e38ee8b93633.png +0 -1
- package/dist/17f00e48d38.132.js +0 -1
- package/dist/17f00e48d38.178.js +0 -1
- package/dist/17f00e48d38.362.js +0 -1
- package/dist/17f00e48d38.441.js +0 -1
- package/dist/17f00e48d38.678.js +0 -1
- package/dist/17f00e48d38.782.js +0 -1
- package/dist/17f00e48d38.app.js +0 -1
- package/dist/17f00e48d38.library.js +0 -1
- package/dist/17f00e48d38.preview.js +0 -1
- package/dist/17f00e48d38.screenshoot.js +0 -1
- package/dist/1ea1c6cd21d25176810c.png +0 -1
- package/dist/292d42404e1b03398f61.png +0 -1
- package/dist/312d376370831b7bea83.png +0 -1
- package/dist/313d1bfc1cf776d1aefe.png +0 -1
- package/dist/4aa58bb7a66bb44975aa.png +0 -1
- package/dist/56ce063bc6c81adb7322.png +0 -1
- package/dist/6a411166ef5cc79e0714.png +0 -1
- package/dist/6faf403782fefacc1649.png +0 -1
- package/dist/79dca33c68fab79c067f.png +0 -1
- package/dist/82da1578fa84f9debaeb.png +0 -1
- package/dist/8b8e0f0824743974b282.png +0 -1
- package/dist/8d551390d81e39130a3c.png +0 -1
- package/dist/9fc61b9479877ebdb6c7.png +0 -1
- package/dist/a165d31dcb3dc90f1057.png +0 -1
- package/dist/a98d4a5698812c4426b3.png +0 -1
- package/dist/c41606bf9d1b604e46d5.png +0 -1
- package/dist/ce1f7450ce6c1aacd330.png +0 -1
- package/dist/cf8c01e88f4770a6e3e5.png +0 -1
- package/dist/dfbcfeab1d5622a737e2.png +0 -1
- package/dist/e4893ed8c2f7b8329919.png +0 -1
- package/dist/ec2ab4eb4ef73d186186.png +0 -1
package/dist/441.js
CHANGED
|
@@ -96,6 +96,9 @@ function escape(html, encode) {
|
|
|
96
96
|
|
|
97
97
|
const unescapeTest = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;
|
|
98
98
|
|
|
99
|
+
/**
|
|
100
|
+
* @param {string} html
|
|
101
|
+
*/
|
|
99
102
|
function unescape(html) {
|
|
100
103
|
// explicitly match decimal, hex, and named HTML entities
|
|
101
104
|
return html.replace(unescapeTest, (_, n) => {
|
|
@@ -111,8 +114,13 @@ function unescape(html) {
|
|
|
111
114
|
}
|
|
112
115
|
|
|
113
116
|
const caret = /(^|[^\[])\^/g;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* @param {string | RegExp} regex
|
|
120
|
+
* @param {string} opt
|
|
121
|
+
*/
|
|
114
122
|
function edit(regex, opt) {
|
|
115
|
-
regex = regex
|
|
123
|
+
regex = typeof regex === 'string' ? regex : regex.source;
|
|
116
124
|
opt = opt || '';
|
|
117
125
|
const obj = {
|
|
118
126
|
replace: (name, val) => {
|
|
@@ -130,6 +138,12 @@ function edit(regex, opt) {
|
|
|
130
138
|
|
|
131
139
|
const nonWordAndColonTest = /[^\w:]/g;
|
|
132
140
|
const originIndependentUrl = /^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* @param {boolean} sanitize
|
|
144
|
+
* @param {string} base
|
|
145
|
+
* @param {string} href
|
|
146
|
+
*/
|
|
133
147
|
function cleanUrl(sanitize, base, href) {
|
|
134
148
|
if (sanitize) {
|
|
135
149
|
let prot;
|
|
@@ -160,6 +174,10 @@ const justDomain = /^[^:]+:\/*[^/]*$/;
|
|
|
160
174
|
const protocol = /^([^:]+:)[\s\S]*$/;
|
|
161
175
|
const domain = /^([^:]+:\/*[^/]*)[\s\S]*$/;
|
|
162
176
|
|
|
177
|
+
/**
|
|
178
|
+
* @param {string} base
|
|
179
|
+
* @param {string} href
|
|
180
|
+
*/
|
|
163
181
|
function resolveUrl(base, href) {
|
|
164
182
|
if (!baseUrls[' ' + base]) {
|
|
165
183
|
// we can ignore everything in base after the last slash of its path component,
|
|
@@ -244,9 +262,14 @@ function splitCells(tableRow, count) {
|
|
|
244
262
|
return cells;
|
|
245
263
|
}
|
|
246
264
|
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
265
|
+
/**
|
|
266
|
+
* Remove trailing 'c's. Equivalent to str.replace(/c*$/, '').
|
|
267
|
+
* /c*$/ is vulnerable to REDOS.
|
|
268
|
+
*
|
|
269
|
+
* @param {string} str
|
|
270
|
+
* @param {string} c
|
|
271
|
+
* @param {boolean} invert Remove suffix of non-c chars instead. Default falsey.
|
|
272
|
+
*/
|
|
250
273
|
function rtrim(str, c, invert) {
|
|
251
274
|
const l = str.length;
|
|
252
275
|
if (l === 0) {
|
|
@@ -268,7 +291,7 @@ function rtrim(str, c, invert) {
|
|
|
268
291
|
}
|
|
269
292
|
}
|
|
270
293
|
|
|
271
|
-
return str.
|
|
294
|
+
return str.slice(0, l - suffLen);
|
|
272
295
|
}
|
|
273
296
|
|
|
274
297
|
function findClosingBracket(str, b) {
|
|
@@ -300,6 +323,10 @@ function checkSanitizeDeprecation(opt) {
|
|
|
300
323
|
}
|
|
301
324
|
|
|
302
325
|
// copied from https://stackoverflow.com/a/5450113/806777
|
|
326
|
+
/**
|
|
327
|
+
* @param {string} pattern
|
|
328
|
+
* @param {number} count
|
|
329
|
+
*/
|
|
303
330
|
function repeatString(pattern, count) {
|
|
304
331
|
if (count < 1) {
|
|
305
332
|
return '';
|
|
@@ -332,15 +359,14 @@ function outputLink(cap, link, raw, lexer) {
|
|
|
332
359
|
};
|
|
333
360
|
lexer.state.inLink = false;
|
|
334
361
|
return token;
|
|
335
|
-
} else {
|
|
336
|
-
return {
|
|
337
|
-
type: 'image',
|
|
338
|
-
raw,
|
|
339
|
-
href,
|
|
340
|
-
title,
|
|
341
|
-
text: escape(text)
|
|
342
|
-
};
|
|
343
362
|
}
|
|
363
|
+
return {
|
|
364
|
+
type: 'image',
|
|
365
|
+
raw,
|
|
366
|
+
href,
|
|
367
|
+
title,
|
|
368
|
+
text: escape(text)
|
|
369
|
+
};
|
|
344
370
|
}
|
|
345
371
|
|
|
346
372
|
function indentCodeCompensation(raw, text) {
|
|
@@ -439,7 +465,7 @@ class Tokenizer {
|
|
|
439
465
|
type: 'heading',
|
|
440
466
|
raw: cap[0],
|
|
441
467
|
depth: cap[1].length,
|
|
442
|
-
text
|
|
468
|
+
text,
|
|
443
469
|
tokens: []
|
|
444
470
|
};
|
|
445
471
|
this.lexer.inline(token.text, token.tokens);
|
|
@@ -460,7 +486,7 @@ class Tokenizer {
|
|
|
460
486
|
blockquote(src) {
|
|
461
487
|
const cap = this.rules.block.blockquote.exec(src);
|
|
462
488
|
if (cap) {
|
|
463
|
-
const text = cap[0].replace(/^ *> ?/gm, '');
|
|
489
|
+
const text = cap[0].replace(/^ *>[ \t]?/gm, '');
|
|
464
490
|
|
|
465
491
|
return {
|
|
466
492
|
type: 'blockquote',
|
|
@@ -496,7 +522,7 @@ class Tokenizer {
|
|
|
496
522
|
}
|
|
497
523
|
|
|
498
524
|
// Get next list item
|
|
499
|
-
const itemRegex = new RegExp(`^( {0,3}${bull})((?: [^\\n]*)?(?:\\n|$))`);
|
|
525
|
+
const itemRegex = new RegExp(`^( {0,3}${bull})((?:[\t ][^\\n]*)?(?:\\n|$))`);
|
|
500
526
|
|
|
501
527
|
// Check if current bullet point can start a new List Item
|
|
502
528
|
while (src) {
|
|
@@ -534,7 +560,8 @@ class Tokenizer {
|
|
|
534
560
|
}
|
|
535
561
|
|
|
536
562
|
if (!endEarly) {
|
|
537
|
-
const nextBulletRegex = new RegExp(`^ {0,${Math.min(3, indent - 1)}}(?:[*+-]|\\d{1,9}[.)])`);
|
|
563
|
+
const nextBulletRegex = new RegExp(`^ {0,${Math.min(3, indent - 1)}}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))`);
|
|
564
|
+
const hrRegex = new RegExp(`^ {0,${Math.min(3, indent - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`);
|
|
538
565
|
|
|
539
566
|
// Check if following lines should be included in List Item
|
|
540
567
|
while (src) {
|
|
@@ -551,6 +578,11 @@ class Tokenizer {
|
|
|
551
578
|
break;
|
|
552
579
|
}
|
|
553
580
|
|
|
581
|
+
// Horizontal rule found
|
|
582
|
+
if (hrRegex.test(src)) {
|
|
583
|
+
break;
|
|
584
|
+
}
|
|
585
|
+
|
|
554
586
|
if (line.search(/[^ ]/) >= indent || !line.trim()) { // Dedent if possible
|
|
555
587
|
itemContents += '\n' + line.slice(indent);
|
|
556
588
|
} else if (!blankLine) { // Until blank line, item doesn't need indentation
|
|
@@ -588,7 +620,7 @@ class Tokenizer {
|
|
|
588
620
|
|
|
589
621
|
list.items.push({
|
|
590
622
|
type: 'list_item',
|
|
591
|
-
raw
|
|
623
|
+
raw,
|
|
592
624
|
task: !!istask,
|
|
593
625
|
checked: ischecked,
|
|
594
626
|
loose: false,
|
|
@@ -709,7 +741,7 @@ class Tokenizer {
|
|
|
709
741
|
l = item.header.length;
|
|
710
742
|
for (j = 0; j < l; j++) {
|
|
711
743
|
item.header[j].tokens = [];
|
|
712
|
-
this.lexer.
|
|
744
|
+
this.lexer.inline(item.header[j].text, item.header[j].tokens);
|
|
713
745
|
}
|
|
714
746
|
|
|
715
747
|
// cell child tokens
|
|
@@ -718,7 +750,7 @@ class Tokenizer {
|
|
|
718
750
|
row = item.rows[j];
|
|
719
751
|
for (k = 0; k < row.length; k++) {
|
|
720
752
|
row[k].tokens = [];
|
|
721
|
-
this.lexer.
|
|
753
|
+
this.lexer.inline(row[k].text, row[k].tokens);
|
|
722
754
|
}
|
|
723
755
|
}
|
|
724
756
|
|
|
@@ -1083,10 +1115,10 @@ const block = {
|
|
|
1083
1115
|
newline: /^(?: *(?:\n|$))+/,
|
|
1084
1116
|
code: /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,
|
|
1085
1117
|
fences: /^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,
|
|
1086
|
-
hr: /^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,
|
|
1118
|
+
hr: /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,
|
|
1087
1119
|
heading: /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,
|
|
1088
1120
|
blockquote: /^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,
|
|
1089
|
-
list: /^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,
|
|
1121
|
+
list: /^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,
|
|
1090
1122
|
html: '^ {0,3}(?:' // optional indentation
|
|
1091
1123
|
+ '<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)' // (1)
|
|
1092
1124
|
+ '|comment[^\\n]*(\\n+|$)' // (2)
|
|
@@ -1240,9 +1272,9 @@ const inline = {
|
|
|
1240
1272
|
emStrong: {
|
|
1241
1273
|
lDelim: /^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,
|
|
1242
1274
|
// (1) and (2) can only be a Right Delimiter. (3) and (4) can only be Left. (5) and (6) can be either Left or Right.
|
|
1243
|
-
//
|
|
1244
|
-
rDelimAst: /^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,
|
|
1245
|
-
rDelimUnd: /^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/ // ^- Not allowed for _
|
|
1275
|
+
// () Skip orphan inside strong () Consume to delim (1) #*** (2) a***#, a*** (3) #***a, ***a (4) ***# (5) #***# (6) a***a
|
|
1276
|
+
rDelimAst: /^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,
|
|
1277
|
+
rDelimUnd: /^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/ // ^- Not allowed for _
|
|
1246
1278
|
},
|
|
1247
1279
|
code: /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,
|
|
1248
1280
|
br: /^( {2,}|\\)\n(?!\s*$)/,
|
|
@@ -1375,6 +1407,7 @@ inline.breaks = merge({}, inline.gfm, {
|
|
|
1375
1407
|
|
|
1376
1408
|
/**
|
|
1377
1409
|
* smartypants text replacement
|
|
1410
|
+
* @param {string} text
|
|
1378
1411
|
*/
|
|
1379
1412
|
function smartypants(text) {
|
|
1380
1413
|
return text
|
|
@@ -1396,6 +1429,7 @@ function smartypants(text) {
|
|
|
1396
1429
|
|
|
1397
1430
|
/**
|
|
1398
1431
|
* mangle email addresses
|
|
1432
|
+
* @param {string} text
|
|
1399
1433
|
*/
|
|
1400
1434
|
function mangle(text) {
|
|
1401
1435
|
let out = '',
|
|
@@ -1483,8 +1517,7 @@ class Lexer {
|
|
|
1483
1517
|
*/
|
|
1484
1518
|
lex(src) {
|
|
1485
1519
|
src = src
|
|
1486
|
-
.replace(/\r\n|\r/g, '\n')
|
|
1487
|
-
.replace(/\t/g, ' ');
|
|
1520
|
+
.replace(/\r\n|\r/g, '\n');
|
|
1488
1521
|
|
|
1489
1522
|
this.blockTokens(src, this.tokens);
|
|
1490
1523
|
|
|
@@ -1501,8 +1534,13 @@ class Lexer {
|
|
|
1501
1534
|
*/
|
|
1502
1535
|
blockTokens(src, tokens = []) {
|
|
1503
1536
|
if (this.options.pedantic) {
|
|
1504
|
-
src = src.replace(/^ +$/gm, '');
|
|
1537
|
+
src = src.replace(/\t/g, ' ').replace(/^ +$/gm, '');
|
|
1538
|
+
} else {
|
|
1539
|
+
src = src.replace(/^( *)(\t+)/gm, (_, leading, tabs) => {
|
|
1540
|
+
return leading + ' '.repeat(tabs.length);
|
|
1541
|
+
});
|
|
1505
1542
|
}
|
|
1543
|
+
|
|
1506
1544
|
let token, lastToken, cutSrc, lastParagraphClipped;
|
|
1507
1545
|
|
|
1508
1546
|
while (src) {
|
|
@@ -1898,29 +1936,31 @@ class Renderer {
|
|
|
1898
1936
|
+ '</code></pre>\n';
|
|
1899
1937
|
}
|
|
1900
1938
|
|
|
1939
|
+
/**
|
|
1940
|
+
* @param {string} quote
|
|
1941
|
+
*/
|
|
1901
1942
|
blockquote(quote) {
|
|
1902
|
-
return
|
|
1943
|
+
return `<blockquote>\n${quote}</blockquote>\n`;
|
|
1903
1944
|
}
|
|
1904
1945
|
|
|
1905
1946
|
html(html) {
|
|
1906
1947
|
return html;
|
|
1907
1948
|
}
|
|
1908
1949
|
|
|
1950
|
+
/**
|
|
1951
|
+
* @param {string} text
|
|
1952
|
+
* @param {string} level
|
|
1953
|
+
* @param {string} raw
|
|
1954
|
+
* @param {any} slugger
|
|
1955
|
+
*/
|
|
1909
1956
|
heading(text, level, raw, slugger) {
|
|
1910
1957
|
if (this.options.headerIds) {
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
+ ' id="'
|
|
1914
|
-
+ this.options.headerPrefix
|
|
1915
|
-
+ slugger.slug(raw)
|
|
1916
|
-
+ '">'
|
|
1917
|
-
+ text
|
|
1918
|
-
+ '</h'
|
|
1919
|
-
+ level
|
|
1920
|
-
+ '>\n';
|
|
1958
|
+
const id = this.options.headerPrefix + slugger.slug(raw);
|
|
1959
|
+
return `<h${level} id="${id}">${text}</h${level}>\n`;
|
|
1921
1960
|
}
|
|
1961
|
+
|
|
1922
1962
|
// ignore IDs
|
|
1923
|
-
return
|
|
1963
|
+
return `<h${level}>${text}</h${level}>\n`;
|
|
1924
1964
|
}
|
|
1925
1965
|
|
|
1926
1966
|
hr() {
|
|
@@ -1933,8 +1973,11 @@ class Renderer {
|
|
|
1933
1973
|
return '<' + type + startatt + '>\n' + body + '</' + type + '>\n';
|
|
1934
1974
|
}
|
|
1935
1975
|
|
|
1976
|
+
/**
|
|
1977
|
+
* @param {string} text
|
|
1978
|
+
*/
|
|
1936
1979
|
listitem(text) {
|
|
1937
|
-
return
|
|
1980
|
+
return `<li>${text}</li>\n`;
|
|
1938
1981
|
}
|
|
1939
1982
|
|
|
1940
1983
|
checkbox(checked) {
|
|
@@ -1945,12 +1988,19 @@ class Renderer {
|
|
|
1945
1988
|
+ '> ';
|
|
1946
1989
|
}
|
|
1947
1990
|
|
|
1991
|
+
/**
|
|
1992
|
+
* @param {string} text
|
|
1993
|
+
*/
|
|
1948
1994
|
paragraph(text) {
|
|
1949
|
-
return
|
|
1995
|
+
return `<p>${text}</p>\n`;
|
|
1950
1996
|
}
|
|
1951
1997
|
|
|
1998
|
+
/**
|
|
1999
|
+
* @param {string} header
|
|
2000
|
+
* @param {string} body
|
|
2001
|
+
*/
|
|
1952
2002
|
table(header, body) {
|
|
1953
|
-
if (body) body =
|
|
2003
|
+
if (body) body = `<tbody>${body}</tbody>`;
|
|
1954
2004
|
|
|
1955
2005
|
return '<table>\n'
|
|
1956
2006
|
+ '<thead>\n'
|
|
@@ -1960,39 +2010,59 @@ class Renderer {
|
|
|
1960
2010
|
+ '</table>\n';
|
|
1961
2011
|
}
|
|
1962
2012
|
|
|
2013
|
+
/**
|
|
2014
|
+
* @param {string} content
|
|
2015
|
+
*/
|
|
1963
2016
|
tablerow(content) {
|
|
1964
|
-
return
|
|
2017
|
+
return `<tr>\n${content}</tr>\n`;
|
|
1965
2018
|
}
|
|
1966
2019
|
|
|
1967
2020
|
tablecell(content, flags) {
|
|
1968
2021
|
const type = flags.header ? 'th' : 'td';
|
|
1969
2022
|
const tag = flags.align
|
|
1970
|
-
?
|
|
1971
|
-
:
|
|
1972
|
-
return tag + content +
|
|
2023
|
+
? `<${type} align="${flags.align}">`
|
|
2024
|
+
: `<${type}>`;
|
|
2025
|
+
return tag + content + `</${type}>\n`;
|
|
1973
2026
|
}
|
|
1974
2027
|
|
|
1975
|
-
|
|
2028
|
+
/**
|
|
2029
|
+
* span level renderer
|
|
2030
|
+
* @param {string} text
|
|
2031
|
+
*/
|
|
1976
2032
|
strong(text) {
|
|
1977
|
-
return
|
|
2033
|
+
return `<strong>${text}</strong>`;
|
|
1978
2034
|
}
|
|
1979
2035
|
|
|
2036
|
+
/**
|
|
2037
|
+
* @param {string} text
|
|
2038
|
+
*/
|
|
1980
2039
|
em(text) {
|
|
1981
|
-
return
|
|
2040
|
+
return `<em>${text}</em>`;
|
|
1982
2041
|
}
|
|
1983
2042
|
|
|
2043
|
+
/**
|
|
2044
|
+
* @param {string} text
|
|
2045
|
+
*/
|
|
1984
2046
|
codespan(text) {
|
|
1985
|
-
return
|
|
2047
|
+
return `<code>${text}</code>`;
|
|
1986
2048
|
}
|
|
1987
2049
|
|
|
1988
2050
|
br() {
|
|
1989
2051
|
return this.options.xhtml ? '<br/>' : '<br>';
|
|
1990
2052
|
}
|
|
1991
2053
|
|
|
2054
|
+
/**
|
|
2055
|
+
* @param {string} text
|
|
2056
|
+
*/
|
|
1992
2057
|
del(text) {
|
|
1993
|
-
return
|
|
2058
|
+
return `<del>${text}</del>`;
|
|
1994
2059
|
}
|
|
1995
2060
|
|
|
2061
|
+
/**
|
|
2062
|
+
* @param {string} href
|
|
2063
|
+
* @param {string} title
|
|
2064
|
+
* @param {string} text
|
|
2065
|
+
*/
|
|
1996
2066
|
link(href, title, text) {
|
|
1997
2067
|
href = cleanUrl(this.options.sanitize, this.options.baseUrl, href);
|
|
1998
2068
|
if (href === null) {
|
|
@@ -2006,15 +2076,20 @@ class Renderer {
|
|
|
2006
2076
|
return out;
|
|
2007
2077
|
}
|
|
2008
2078
|
|
|
2079
|
+
/**
|
|
2080
|
+
* @param {string} href
|
|
2081
|
+
* @param {string} title
|
|
2082
|
+
* @param {string} text
|
|
2083
|
+
*/
|
|
2009
2084
|
image(href, title, text) {
|
|
2010
2085
|
href = cleanUrl(this.options.sanitize, this.options.baseUrl, href);
|
|
2011
2086
|
if (href === null) {
|
|
2012
2087
|
return text;
|
|
2013
2088
|
}
|
|
2014
2089
|
|
|
2015
|
-
let out =
|
|
2090
|
+
let out = `<img src="${href}" alt="${text}"`;
|
|
2016
2091
|
if (title) {
|
|
2017
|
-
out +=
|
|
2092
|
+
out += ` title="${title}"`;
|
|
2018
2093
|
}
|
|
2019
2094
|
out += this.options.xhtml ? '/>' : '>';
|
|
2020
2095
|
return out;
|
|
@@ -2076,6 +2151,9 @@ class Slugger {
|
|
|
2076
2151
|
this.seen = {};
|
|
2077
2152
|
}
|
|
2078
2153
|
|
|
2154
|
+
/**
|
|
2155
|
+
* @param {string} value
|
|
2156
|
+
*/
|
|
2079
2157
|
serialize(value) {
|
|
2080
2158
|
return value
|
|
2081
2159
|
.toLowerCase()
|
|
@@ -2089,6 +2167,8 @@ class Slugger {
|
|
|
2089
2167
|
|
|
2090
2168
|
/**
|
|
2091
2169
|
* Finds the next safe (unique) slug to use
|
|
2170
|
+
* @param {string} originalSlug
|
|
2171
|
+
* @param {boolean} isDryRun
|
|
2092
2172
|
*/
|
|
2093
2173
|
getNextSafeSlug(originalSlug, isDryRun) {
|
|
2094
2174
|
let slug = originalSlug;
|
|
@@ -2109,8 +2189,9 @@ class Slugger {
|
|
|
2109
2189
|
|
|
2110
2190
|
/**
|
|
2111
2191
|
* Convert string to unique id
|
|
2112
|
-
* @param {object} options
|
|
2113
|
-
* @param {boolean} options.dryrun Generates the next unique slug without
|
|
2192
|
+
* @param {object} [options]
|
|
2193
|
+
* @param {boolean} [options.dryrun] Generates the next unique slug without
|
|
2194
|
+
* updating the internal accumulator.
|
|
2114
2195
|
*/
|
|
2115
2196
|
slug(value, options = {}) {
|
|
2116
2197
|
const slug = this.serialize(value);
|
|
@@ -2671,6 +2752,7 @@ marked.walkTokens = function(tokens, callback) {
|
|
|
2671
2752
|
|
|
2672
2753
|
/**
|
|
2673
2754
|
* Parse Inline
|
|
2755
|
+
* @param {string} src
|
|
2674
2756
|
*/
|
|
2675
2757
|
marked.parseInline = function(src, opt) {
|
|
2676
2758
|
// throw error in case of non string input
|
package/dist/678.js
CHANGED
|
@@ -19,14 +19,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19
19
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20
20
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
21
21
|
/* harmony export */ });
|
|
22
|
-
/* harmony import */ var
|
|
23
|
-
/* harmony import */ var
|
|
24
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3645);
|
|
25
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
22
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3645);
|
|
23
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
26
24
|
// Imports
|
|
27
25
|
|
|
28
|
-
|
|
29
|
-
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
26
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
30
27
|
// Module
|
|
31
28
|
___CSS_LOADER_EXPORT___.push([module.id, "/*\n#sbz92 * {\n\tall: unset !important;\n}\n\n#sbz92 {\n\tz-index: @z-index + 100 !important;\n\t#makeImportant() !important;\n}\n\n// prevent #subiz inheriting client site styles\ndiv#sbz92 {\n\tall: initial;\n}\n\n// prevent #subiz inheriting client site !important styles\nbody div#sbz92 {\n\tall: initial !important;\n}\n\nbody div#sbz92 .overlay {\n\tposition: fixed !important;\n\tuser-select: none !important;\n}\n*/\n#sbz92 {\n z-index: 2000000100 !important;\n /* Handle on hover */\n}\n#sbz92 *,\n#sbz92 *::before,\n#sbz92 *::after {\n box-sizing: border-box;\n}\n#sbz92 [tabindex='-1']:focus:not(:focus-visible) {\n outline: 0;\n}\n#sbz92 b,\n#sbz92 strong {\n font-weight: 500;\n}\n#sbz92 a {\n color: #020202;\n text-decoration: none;\n background-color: transparent;\n}\n#sbz92 a:hover {\n cursor: pointer;\n color: #000000;\n text-decoration: underline;\n}\n#sbz92 a:not([href]) {\n color: inherit;\n text-decoration: none;\n}\n#sbz92 a:not([href]):hover {\n color: inherit;\n text-decoration: none;\n}\n#sbz92 img {\n vertical-align: middle;\n border-style: none;\n}\n#sbz92 svg {\n overflow: hidden;\n vertical-align: middle;\n}\n#sbz92 label {\n display: inline-block;\n}\n#sbz92 button {\n border-radius: 0;\n}\n#sbz92 button:focus {\n outline: 1px dotted;\n outline: 5px auto -webkit-focus-ring-color;\n}\n#sbz92 input,\n#sbz92 button,\n#sbz92 select,\n#sbz92 optgroup,\n#sbz92 textarea {\n margin: 0;\n}\n#sbz92 button,\n#sbz92 input {\n overflow: visible;\n}\n#sbz92 button,\n#sbz92 select {\n text-transform: none;\n}\n#sbz92 select {\n word-wrap: normal;\n}\n#sbz92 button,\n#sbz92 [type=\"button\"],\n#sbz92 [type=\"reset\"],\n#sbz92 [type=\"submit\"] {\n -webkit-appearance: button;\n}\n#sbz92 button:not(:disabled),\n#sbz92 [type='button']:not(:disabled),\n#sbz92 [type='reset']:not(:disabled),\n#sbz92 [type='submit']:not(:disabled) {\n cursor: pointer;\n}\n#sbz92 button::-moz-focus-inner,\n#sbz92 [type='button']::-moz-focus-inner,\n#sbz92 [type='reset']::-moz-focus-inner,\n#sbz92 [type='submit']::-moz-focus-inner {\n padding: 0;\n border-style: none;\n}\n#sbz92 input[type='radio'],\n#sbz92 input[type='checkbox'] {\n box-sizing: border-box;\n padding: 0;\n}\n#sbz92 input[type='date'],\n#sbz92 input[type='time'],\n#sbz92 input[type='datetime-local'],\n#sbz92 input[type='month'] {\n -webkit-appearance: listbox;\n}\n#sbz92 textarea {\n overflow: auto;\n resize: vertical;\n}\n#sbz92 [type='number']::-webkit-inner-spin-button,\n#sbz92 [type='number']::-webkit-outer-spin-button {\n height: auto;\n}\n#sbz92 [hidden] {\n display: none;\n}\n#sbz92 ::-webkit-input-placeholder {\n /* Edge */\n color: #777;\n}\n#sbz92 :-ms-input-placeholder {\n /* Internet Explorer 10-11 */\n color: #777;\n}\n#sbz92 ::placeholder {\n color: #777;\n}\n#sbz92 div {\n display: block;\n text-rendering: geometricPrecision;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n#sbz92 ::-webkit-scrollbar {\n width: 7px;\n height: 7px;\n}\n#sbz92 ::-webkit-scrollbar-track {\n border-radius: 10px;\n}\n#sbz92 ::-webkit-scrollbar-thumb {\n border-radius: 10px;\n background: #d6d6d6;\n}\n#sbz92 ::-webkit-scrollbar-thumb:hover {\n background: #aaa;\n}\n#sbz92 .overlay {\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n background: #000c;\n z-index: 20000000000100;\n overflow: auto;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n#sbz92 .overlay.overlay__hidden {\n display: none;\n}\n#sbz92 .map_modal {\n max-with: 80%;\n max-height: 80%;\n width: 400px;\n height: 400px;\n background: white;\n}\n#sbz92 .map_body {\n width: 100%;\n height: 100%;\n display: flex;\n}\n#sbz92 .map_location {\n border-bottom: 1px solid lightgray;\n padding: 20px;\n font-size: 16px;\n font-family: 'roboto';\n}\n#sbz92 .map_title {\n font-size: 18px;\n font-weight: 500;\n padding: 10px;\n text-align: center;\n border-bottom: 1px solid lightgray;\n font-family: 'roboto';\n}\n#sbz92 .map_locations {\n border-right: 1px solid lightgray;\n width: 200px;\n height: 100%;\n}\n#sbz92 .sm.contact_button {\n width: 40px;\n height: 40px;\n}\n#sbz92 .lg.contact_button {\n width: 60px;\n height: 60px;\n}\n#sbz92 .contact_button {\n width: 50px;\n height: 50px;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background: pink;\n}\n", ""]);
|
|
32
29
|
// Exports
|
|
@@ -44,55 +41,37 @@ ___CSS_LOADER_EXPORT___.push([module.id, "/*\n#sbz92 * {\n\tall: unset !importan
|
|
|
44
41
|
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
45
42
|
Author Tobias Koppers @sokra
|
|
46
43
|
*/
|
|
44
|
+
// css base code, injected by the css-loader
|
|
45
|
+
// eslint-disable-next-line func-names
|
|
47
46
|
module.exports = function (cssWithMappingToString) {
|
|
48
47
|
var list = []; // return the list of modules as css string
|
|
49
48
|
|
|
50
49
|
list.toString = function toString() {
|
|
51
50
|
return this.map(function (item) {
|
|
52
|
-
var content =
|
|
53
|
-
var needLayer = typeof item[5] !== "undefined";
|
|
54
|
-
|
|
55
|
-
if (item[4]) {
|
|
56
|
-
content += "@supports (".concat(item[4], ") {");
|
|
57
|
-
}
|
|
51
|
+
var content = cssWithMappingToString(item);
|
|
58
52
|
|
|
59
53
|
if (item[2]) {
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
if (needLayer) {
|
|
64
|
-
content += "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {");
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
content += cssWithMappingToString(item);
|
|
68
|
-
|
|
69
|
-
if (needLayer) {
|
|
70
|
-
content += "}";
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
if (item[2]) {
|
|
74
|
-
content += "}";
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
if (item[4]) {
|
|
78
|
-
content += "}";
|
|
54
|
+
return "@media ".concat(item[2], " {").concat(content, "}");
|
|
79
55
|
}
|
|
80
56
|
|
|
81
57
|
return content;
|
|
82
58
|
}).join("");
|
|
83
59
|
}; // import a list of modules into the list
|
|
60
|
+
// eslint-disable-next-line func-names
|
|
84
61
|
|
|
85
62
|
|
|
86
|
-
list.i = function
|
|
63
|
+
list.i = function (modules, mediaQuery, dedupe) {
|
|
87
64
|
if (typeof modules === "string") {
|
|
88
|
-
|
|
65
|
+
// eslint-disable-next-line no-param-reassign
|
|
66
|
+
modules = [[null, modules, ""]];
|
|
89
67
|
}
|
|
90
68
|
|
|
91
69
|
var alreadyImportedModules = {};
|
|
92
70
|
|
|
93
71
|
if (dedupe) {
|
|
94
|
-
for (var
|
|
95
|
-
|
|
72
|
+
for (var i = 0; i < this.length; i++) {
|
|
73
|
+
// eslint-disable-next-line prefer-destructuring
|
|
74
|
+
var id = this[i][0];
|
|
96
75
|
|
|
97
76
|
if (id != null) {
|
|
98
77
|
alreadyImportedModules[id] = true;
|
|
@@ -100,37 +79,19 @@ module.exports = function (cssWithMappingToString) {
|
|
|
100
79
|
}
|
|
101
80
|
}
|
|
102
81
|
|
|
103
|
-
for (var
|
|
104
|
-
var item = [].concat(modules[
|
|
82
|
+
for (var _i = 0; _i < modules.length; _i++) {
|
|
83
|
+
var item = [].concat(modules[_i]);
|
|
105
84
|
|
|
106
85
|
if (dedupe && alreadyImportedModules[item[0]]) {
|
|
86
|
+
// eslint-disable-next-line no-continue
|
|
107
87
|
continue;
|
|
108
88
|
}
|
|
109
89
|
|
|
110
|
-
if (
|
|
111
|
-
if (typeof item[5] === "undefined") {
|
|
112
|
-
item[5] = layer;
|
|
113
|
-
} else {
|
|
114
|
-
item[1] = "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {").concat(item[1], "}");
|
|
115
|
-
item[5] = layer;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
if (media) {
|
|
90
|
+
if (mediaQuery) {
|
|
120
91
|
if (!item[2]) {
|
|
121
|
-
item[2] =
|
|
92
|
+
item[2] = mediaQuery;
|
|
122
93
|
} else {
|
|
123
|
-
item[
|
|
124
|
-
item[2] = media;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
if (supports) {
|
|
129
|
-
if (!item[4]) {
|
|
130
|
-
item[4] = "".concat(supports);
|
|
131
|
-
} else {
|
|
132
|
-
item[1] = "@supports (".concat(item[4], ") {").concat(item[1], "}");
|
|
133
|
-
item[4] = supports;
|
|
94
|
+
item[2] = "".concat(mediaQuery, " and ").concat(item[2]);
|
|
134
95
|
}
|
|
135
96
|
}
|
|
136
97
|
|
|
@@ -141,17 +102,6 @@ module.exports = function (cssWithMappingToString) {
|
|
|
141
102
|
return list;
|
|
142
103
|
};
|
|
143
104
|
|
|
144
|
-
/***/ }),
|
|
145
|
-
|
|
146
|
-
/***/ 8081:
|
|
147
|
-
/***/ ((module) => {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
module.exports = function (i) {
|
|
152
|
-
return i[1];
|
|
153
|
-
};
|
|
154
|
-
|
|
155
105
|
/***/ })
|
|
156
106
|
|
|
157
107
|
}]);
|