@cfx-dev/ui-components 5.0.29 → 5.0.31
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/dist/main.d.ts +2 -2
- package/dist/main.js +268 -265
- package/dist/utils/contexts/MediaQueryContext/MediaQueryContext.d.ts +2 -0
- package/dist/utils/contexts/MediaQueryContext/MediaQueryContext.js +5 -3
- package/dist/utils/contexts/MediaQueryContext/MediaQueryContextProvider.js +17 -15
- package/dist/utils/contexts/MediaQueryContext/index.d.ts +1 -1
- package/dist/utils/contexts/MediaQueryContext/index.js +7 -6
- package/dist/utils/links.d.ts +13 -2
- package/dist/utils/links.js +596 -560
- package/package.json +1 -1
package/dist/utils/links.js
CHANGED
|
@@ -1,221 +1,221 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as ee, Fragment as Ee } from "react/jsx-runtime";
|
|
2
2
|
import { b as z, _ as C } from "../tslib.es6-CtHwNPxX.js";
|
|
3
|
-
import
|
|
4
|
-
import { splitByIndices as
|
|
5
|
-
var
|
|
6
|
-
function
|
|
3
|
+
import ke from "react";
|
|
4
|
+
import { splitByIndices as he } from "./string.js";
|
|
5
|
+
var Me = "3.16.2";
|
|
6
|
+
function Te(u, e) {
|
|
7
7
|
for (var t in e)
|
|
8
|
-
e.hasOwnProperty(t) &&
|
|
9
|
-
return
|
|
8
|
+
e.hasOwnProperty(t) && u[t] === void 0 && (u[t] = e[t]);
|
|
9
|
+
return u;
|
|
10
10
|
}
|
|
11
|
-
function
|
|
12
|
-
var
|
|
13
|
-
return
|
|
11
|
+
function Re(u, e, t) {
|
|
12
|
+
var n;
|
|
13
|
+
return u.length > e && (t == null ? (t = "…", n = 3) : n = t.length, u = u.substring(0, e - n) + t), u;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function ue(u, e) {
|
|
16
16
|
if (Array.prototype.indexOf)
|
|
17
|
-
return
|
|
18
|
-
for (var t = 0,
|
|
19
|
-
if (
|
|
17
|
+
return u.indexOf(e);
|
|
18
|
+
for (var t = 0, n = u.length; t < n; t++)
|
|
19
|
+
if (u[t] === e)
|
|
20
20
|
return t;
|
|
21
21
|
return -1;
|
|
22
22
|
}
|
|
23
|
-
function S(
|
|
24
|
-
for (var t =
|
|
25
|
-
e(
|
|
23
|
+
function S(u, e) {
|
|
24
|
+
for (var t = u.length - 1; t >= 0; t--)
|
|
25
|
+
e(u[t]) === !0 && u.splice(t, 1);
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function Pe(u, e) {
|
|
28
28
|
if (!e.global)
|
|
29
29
|
throw new Error("`splitRegex` must have the 'g' flag set");
|
|
30
|
-
for (var t = [],
|
|
31
|
-
t.push(
|
|
32
|
-
return t.push(
|
|
30
|
+
for (var t = [], n = 0, i; i = e.exec(u); )
|
|
31
|
+
t.push(u.substring(n, i.index)), t.push(i[0]), n = i.index + i[0].length;
|
|
32
|
+
return t.push(u.substring(n)), t;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
throw new Error("Unhandled case for value: '".concat(
|
|
34
|
+
function te(u) {
|
|
35
|
+
throw new Error("Unhandled case for value: '".concat(u, "'"));
|
|
36
36
|
}
|
|
37
|
-
var
|
|
37
|
+
var X = (
|
|
38
38
|
/** @class */
|
|
39
39
|
function() {
|
|
40
|
-
function
|
|
40
|
+
function u(e) {
|
|
41
41
|
e === void 0 && (e = {}), this.tagName = "", this.attrs = {}, this.innerHTML = "", this.whitespaceRegex = /\s+/, this.tagName = e.tagName || "", this.attrs = e.attrs || {}, this.innerHTML = e.innerHtml || e.innerHTML || "";
|
|
42
42
|
}
|
|
43
|
-
return
|
|
43
|
+
return u.prototype.setTagName = function(e) {
|
|
44
44
|
return this.tagName = e, this;
|
|
45
|
-
},
|
|
45
|
+
}, u.prototype.getTagName = function() {
|
|
46
46
|
return this.tagName || "";
|
|
47
|
-
},
|
|
48
|
-
var
|
|
49
|
-
return
|
|
50
|
-
},
|
|
47
|
+
}, u.prototype.setAttr = function(e, t) {
|
|
48
|
+
var n = this.getAttrs();
|
|
49
|
+
return n[e] = t, this;
|
|
50
|
+
}, u.prototype.getAttr = function(e) {
|
|
51
51
|
return this.getAttrs()[e];
|
|
52
|
-
},
|
|
52
|
+
}, u.prototype.setAttrs = function(e) {
|
|
53
53
|
return Object.assign(this.getAttrs(), e), this;
|
|
54
|
-
},
|
|
54
|
+
}, u.prototype.getAttrs = function() {
|
|
55
55
|
return this.attrs || (this.attrs = {});
|
|
56
|
-
},
|
|
56
|
+
}, u.prototype.setClass = function(e) {
|
|
57
57
|
return this.setAttr("class", e);
|
|
58
|
-
},
|
|
59
|
-
for (var t = this.getClass(),
|
|
60
|
-
|
|
61
|
-
return this.getAttrs().class =
|
|
62
|
-
},
|
|
63
|
-
for (var t = this.getClass(),
|
|
64
|
-
var g =
|
|
65
|
-
g !== -1 &&
|
|
58
|
+
}, u.prototype.addClass = function(e) {
|
|
59
|
+
for (var t = this.getClass(), n = this.whitespaceRegex, i = t ? t.split(n) : [], o = e.split(n), s; s = o.shift(); )
|
|
60
|
+
ue(i, s) === -1 && i.push(s);
|
|
61
|
+
return this.getAttrs().class = i.join(" "), this;
|
|
62
|
+
}, u.prototype.removeClass = function(e) {
|
|
63
|
+
for (var t = this.getClass(), n = this.whitespaceRegex, i = t ? t.split(n) : [], o = e.split(n), s; i.length && (s = o.shift()); ) {
|
|
64
|
+
var g = ue(i, s);
|
|
65
|
+
g !== -1 && i.splice(g, 1);
|
|
66
66
|
}
|
|
67
|
-
return this.getAttrs().class =
|
|
68
|
-
},
|
|
67
|
+
return this.getAttrs().class = i.join(" "), this;
|
|
68
|
+
}, u.prototype.getClass = function() {
|
|
69
69
|
return this.getAttrs().class || "";
|
|
70
|
-
},
|
|
70
|
+
}, u.prototype.hasClass = function(e) {
|
|
71
71
|
return (" " + this.getClass() + " ").indexOf(" " + e + " ") !== -1;
|
|
72
|
-
},
|
|
72
|
+
}, u.prototype.setInnerHTML = function(e) {
|
|
73
73
|
return this.innerHTML = e, this;
|
|
74
|
-
},
|
|
74
|
+
}, u.prototype.setInnerHtml = function(e) {
|
|
75
75
|
return this.setInnerHTML(e);
|
|
76
|
-
},
|
|
76
|
+
}, u.prototype.getInnerHTML = function() {
|
|
77
77
|
return this.innerHTML || "";
|
|
78
|
-
},
|
|
78
|
+
}, u.prototype.getInnerHtml = function() {
|
|
79
79
|
return this.getInnerHTML();
|
|
80
|
-
},
|
|
80
|
+
}, u.prototype.toAnchorString = function() {
|
|
81
81
|
var e = this.getTagName(), t = this.buildAttrsStr();
|
|
82
82
|
return t = t ? " " + t : "", ["<", e, t, ">", this.getInnerHtml(), "</", e, ">"].join("");
|
|
83
|
-
},
|
|
83
|
+
}, u.prototype.buildAttrsStr = function() {
|
|
84
84
|
if (!this.attrs)
|
|
85
85
|
return "";
|
|
86
86
|
var e = this.getAttrs(), t = [];
|
|
87
|
-
for (var
|
|
88
|
-
e.hasOwnProperty(
|
|
87
|
+
for (var n in e)
|
|
88
|
+
e.hasOwnProperty(n) && t.push(n + '="' + e[n] + '"');
|
|
89
89
|
return t.join(" ");
|
|
90
|
-
},
|
|
90
|
+
}, u;
|
|
91
91
|
}()
|
|
92
92
|
);
|
|
93
|
-
function
|
|
94
|
-
var
|
|
95
|
-
t == null ? (t = "…",
|
|
96
|
-
var
|
|
93
|
+
function Ne(u, e, t) {
|
|
94
|
+
var n, i;
|
|
95
|
+
t == null ? (t = "…", i = 3, n = 8) : (i = t.length, n = t.length);
|
|
96
|
+
var o = function(A) {
|
|
97
97
|
var v = {}, b = A, m = b.match(/^([a-z]+):\/\//i);
|
|
98
98
|
return m && (v.scheme = m[1], b = b.substr(m[0].length)), m = b.match(/^(.*?)(?=(\?|#|\/|$))/i), m && (v.host = m[1], b = b.substr(m[0].length)), m = b.match(/^\/(.*?)(?=(\?|#|$))/i), m && (v.path = m[1], b = b.substr(m[0].length)), m = b.match(/^\?(.*?)(?=(#|$))/i), m && (v.query = m[1], b = b.substr(m[0].length)), m = b.match(/^#(.*?)$/i), m && (v.fragment = m[1]), v;
|
|
99
|
-
},
|
|
99
|
+
}, s = function(A) {
|
|
100
100
|
var v = "";
|
|
101
101
|
return A.scheme && A.host && (v += A.scheme + "://"), A.host && (v += A.host), A.path && (v += "/" + A.path), A.query && (v += "?" + A.query), A.fragment && (v += "#" + A.fragment), v;
|
|
102
102
|
}, g = function(A, v) {
|
|
103
|
-
var b = v / 2, m = Math.ceil(b), D = -1 * Math.floor(b),
|
|
104
|
-
return D < 0 && (
|
|
103
|
+
var b = v / 2, m = Math.ceil(b), D = -1 * Math.floor(b), F = "";
|
|
104
|
+
return D < 0 && (F = A.substr(D)), A.substr(0, m) + t + F;
|
|
105
105
|
};
|
|
106
|
-
if (
|
|
107
|
-
return
|
|
108
|
-
var
|
|
109
|
-
if (
|
|
110
|
-
var
|
|
111
|
-
|
|
106
|
+
if (u.length <= e)
|
|
107
|
+
return u;
|
|
108
|
+
var c = e - i, h = o(u);
|
|
109
|
+
if (h.query) {
|
|
110
|
+
var l = h.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);
|
|
111
|
+
l && (h.query = h.query.substr(0, l[1].length), u = s(h));
|
|
112
112
|
}
|
|
113
|
-
if (
|
|
114
|
-
return
|
|
115
|
-
var
|
|
116
|
-
if (
|
|
117
|
-
return
|
|
113
|
+
if (u.length <= e || (h.host && (h.host = h.host.replace(/^www\./, ""), u = s(h)), u.length <= e))
|
|
114
|
+
return u;
|
|
115
|
+
var f = "";
|
|
116
|
+
if (h.host && (f += h.host), f.length >= c)
|
|
117
|
+
return h.host.length == e ? (h.host.substr(0, e - i) + t).substr(0, c + n) : g(f, c).substr(0, c + n);
|
|
118
118
|
var a = "";
|
|
119
|
-
if (
|
|
120
|
-
if ((
|
|
121
|
-
if ((
|
|
122
|
-
return (
|
|
123
|
-
var
|
|
124
|
-
return (
|
|
119
|
+
if (h.path && (a += "/" + h.path), h.query && (a += "?" + h.query), a)
|
|
120
|
+
if ((f + a).length >= c) {
|
|
121
|
+
if ((f + a).length == e)
|
|
122
|
+
return (f + a).substr(0, e);
|
|
123
|
+
var d = c - f.length;
|
|
124
|
+
return (f + g(a, d)).substr(0, c + n);
|
|
125
125
|
} else
|
|
126
|
-
|
|
127
|
-
if (
|
|
128
|
-
var B = "#" +
|
|
129
|
-
if ((
|
|
130
|
-
if ((
|
|
131
|
-
return (
|
|
132
|
-
var k =
|
|
133
|
-
return (
|
|
126
|
+
f += a;
|
|
127
|
+
if (h.fragment) {
|
|
128
|
+
var B = "#" + h.fragment;
|
|
129
|
+
if ((f + B).length >= c) {
|
|
130
|
+
if ((f + B).length == e)
|
|
131
|
+
return (f + B).substr(0, e);
|
|
132
|
+
var k = c - f.length;
|
|
133
|
+
return (f + g(B, k)).substr(0, c + n);
|
|
134
134
|
} else
|
|
135
|
-
|
|
135
|
+
f += B;
|
|
136
136
|
}
|
|
137
|
-
if (
|
|
138
|
-
var x =
|
|
139
|
-
if ((
|
|
140
|
-
return (x +
|
|
137
|
+
if (h.scheme && h.host) {
|
|
138
|
+
var x = h.scheme + "://";
|
|
139
|
+
if ((f + x).length < c)
|
|
140
|
+
return (x + f).substr(0, e);
|
|
141
141
|
}
|
|
142
|
-
if (
|
|
143
|
-
return
|
|
144
|
-
var
|
|
145
|
-
return
|
|
142
|
+
if (f.length <= e)
|
|
143
|
+
return f;
|
|
144
|
+
var y = "";
|
|
145
|
+
return c > 0 && (y = f.substr(-1 * Math.floor(c / 2))), (f.substr(0, Math.ceil(c / 2)) + t + y).substr(0, c + n);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
148
|
-
if (
|
|
149
|
-
return
|
|
150
|
-
var
|
|
151
|
-
t == null ? (t = "…",
|
|
152
|
-
var
|
|
153
|
-
return
|
|
147
|
+
function ze(u, e, t) {
|
|
148
|
+
if (u.length <= e)
|
|
149
|
+
return u;
|
|
150
|
+
var n, i;
|
|
151
|
+
t == null ? (t = "…", n = 8, i = 3) : (n = t.length, i = t.length);
|
|
152
|
+
var o = e - i, s = "";
|
|
153
|
+
return o > 0 && (s = u.substr(-1 * Math.floor(o / 2))), (u.substr(0, Math.ceil(o / 2)) + t + s).substr(0, o + n);
|
|
154
154
|
}
|
|
155
|
-
function
|
|
156
|
-
return
|
|
155
|
+
function Se(u, e, t) {
|
|
156
|
+
return Re(u, e, t);
|
|
157
157
|
}
|
|
158
|
-
var
|
|
158
|
+
var ne = (
|
|
159
159
|
/** @class */
|
|
160
160
|
function() {
|
|
161
|
-
function
|
|
161
|
+
function u(e) {
|
|
162
162
|
e === void 0 && (e = {}), this.newWindow = !1, this.truncate = {}, this.className = "", this.newWindow = e.newWindow || !1, this.truncate = e.truncate || {}, this.className = e.className || "";
|
|
163
163
|
}
|
|
164
|
-
return
|
|
165
|
-
return new
|
|
164
|
+
return u.prototype.build = function(e) {
|
|
165
|
+
return new X({
|
|
166
166
|
tagName: "a",
|
|
167
167
|
attrs: this.createAttrs(e),
|
|
168
168
|
innerHtml: this.processAnchorText(e.getAnchorText())
|
|
169
169
|
});
|
|
170
|
-
},
|
|
170
|
+
}, u.prototype.createAttrs = function(e) {
|
|
171
171
|
var t = {
|
|
172
172
|
href: e.getAnchorHref()
|
|
173
173
|
// we'll always have the `href` attribute
|
|
174
|
-
},
|
|
175
|
-
return
|
|
176
|
-
},
|
|
174
|
+
}, n = this.createCssClass(e);
|
|
175
|
+
return n && (t.class = n), this.newWindow && (t.target = "_blank", t.rel = "noopener noreferrer"), this.truncate && this.truncate.length && this.truncate.length < e.getAnchorText().length && (t.title = e.getAnchorHref()), t;
|
|
176
|
+
}, u.prototype.createCssClass = function(e) {
|
|
177
177
|
var t = this.className;
|
|
178
178
|
if (t) {
|
|
179
|
-
for (var
|
|
180
|
-
|
|
181
|
-
return
|
|
179
|
+
for (var n = [t], i = e.getCssClassSuffixes(), o = 0, s = i.length; o < s; o++)
|
|
180
|
+
n.push(t + "-" + i[o]);
|
|
181
|
+
return n.join(" ");
|
|
182
182
|
} else
|
|
183
183
|
return "";
|
|
184
|
-
},
|
|
184
|
+
}, u.prototype.processAnchorText = function(e) {
|
|
185
185
|
return e = this.doTruncate(e), e;
|
|
186
|
-
},
|
|
186
|
+
}, u.prototype.doTruncate = function(e) {
|
|
187
187
|
var t = this.truncate;
|
|
188
188
|
if (!t || !t.length)
|
|
189
189
|
return e;
|
|
190
|
-
var
|
|
191
|
-
return
|
|
192
|
-
},
|
|
190
|
+
var n = t.length, i = t.location;
|
|
191
|
+
return i === "smart" ? Ne(e, n) : i === "middle" ? ze(e, n) : Se(e, n);
|
|
192
|
+
}, u;
|
|
193
193
|
}()
|
|
194
|
-
),
|
|
194
|
+
), j = (
|
|
195
195
|
/** @class */
|
|
196
196
|
function() {
|
|
197
|
-
function
|
|
197
|
+
function u(e) {
|
|
198
198
|
this.__jsduckDummyDocProp = null, this.matchedText = "", this.offset = 0, this.tagBuilder = e.tagBuilder, this.matchedText = e.matchedText, this.offset = e.offset;
|
|
199
199
|
}
|
|
200
|
-
return
|
|
200
|
+
return u.prototype.getMatchedText = function() {
|
|
201
201
|
return this.matchedText;
|
|
202
|
-
},
|
|
202
|
+
}, u.prototype.setOffset = function(e) {
|
|
203
203
|
this.offset = e;
|
|
204
|
-
},
|
|
204
|
+
}, u.prototype.getOffset = function() {
|
|
205
205
|
return this.offset;
|
|
206
|
-
},
|
|
206
|
+
}, u.prototype.getCssClassSuffixes = function() {
|
|
207
207
|
return [this.getType()];
|
|
208
|
-
},
|
|
208
|
+
}, u.prototype.buildTag = function() {
|
|
209
209
|
return this.tagBuilder.build(this);
|
|
210
|
-
},
|
|
210
|
+
}, u;
|
|
211
211
|
}()
|
|
212
|
-
),
|
|
212
|
+
), fe = (
|
|
213
213
|
/** @class */
|
|
214
|
-
function(
|
|
215
|
-
z(e,
|
|
214
|
+
function(u) {
|
|
215
|
+
z(e, u);
|
|
216
216
|
function e(t) {
|
|
217
|
-
var
|
|
218
|
-
return
|
|
217
|
+
var n = u.call(this, t) || this;
|
|
218
|
+
return n.email = "", n.email = t.email, n;
|
|
219
219
|
}
|
|
220
220
|
return e.prototype.getType = function() {
|
|
221
221
|
return "email";
|
|
@@ -226,14 +226,14 @@ var te = (
|
|
|
226
226
|
}, e.prototype.getAnchorText = function() {
|
|
227
227
|
return this.email;
|
|
228
228
|
}, e;
|
|
229
|
-
}(
|
|
230
|
-
),
|
|
229
|
+
}(j)
|
|
230
|
+
), ge = (
|
|
231
231
|
/** @class */
|
|
232
|
-
function(
|
|
233
|
-
z(e,
|
|
232
|
+
function(u) {
|
|
233
|
+
z(e, u);
|
|
234
234
|
function e(t) {
|
|
235
|
-
var
|
|
236
|
-
return
|
|
235
|
+
var n = u.call(this, t) || this;
|
|
236
|
+
return n.serviceName = "", n.hashtag = "", n.serviceName = t.serviceName, n.hashtag = t.hashtag, n;
|
|
237
237
|
}
|
|
238
238
|
return e.prototype.getType = function() {
|
|
239
239
|
return "hashtag";
|
|
@@ -242,30 +242,30 @@ var te = (
|
|
|
242
242
|
}, e.prototype.getHashtag = function() {
|
|
243
243
|
return this.hashtag;
|
|
244
244
|
}, e.prototype.getAnchorHref = function() {
|
|
245
|
-
var t = this.serviceName,
|
|
245
|
+
var t = this.serviceName, n = this.hashtag;
|
|
246
246
|
switch (t) {
|
|
247
247
|
case "twitter":
|
|
248
|
-
return "https://twitter.com/hashtag/" +
|
|
248
|
+
return "https://twitter.com/hashtag/" + n;
|
|
249
249
|
case "facebook":
|
|
250
|
-
return "https://www.facebook.com/hashtag/" +
|
|
250
|
+
return "https://www.facebook.com/hashtag/" + n;
|
|
251
251
|
case "instagram":
|
|
252
|
-
return "https://instagram.com/explore/tags/" +
|
|
252
|
+
return "https://instagram.com/explore/tags/" + n;
|
|
253
253
|
case "tiktok":
|
|
254
|
-
return "https://www.tiktok.com/tag/" +
|
|
254
|
+
return "https://www.tiktok.com/tag/" + n;
|
|
255
255
|
default:
|
|
256
256
|
throw new Error("Unknown service name to point hashtag to: " + t);
|
|
257
257
|
}
|
|
258
258
|
}, e.prototype.getAnchorText = function() {
|
|
259
259
|
return "#" + this.hashtag;
|
|
260
260
|
}, e;
|
|
261
|
-
}(
|
|
262
|
-
),
|
|
261
|
+
}(j)
|
|
262
|
+
), de = (
|
|
263
263
|
/** @class */
|
|
264
|
-
function(
|
|
265
|
-
z(e,
|
|
264
|
+
function(u) {
|
|
265
|
+
z(e, u);
|
|
266
266
|
function e(t) {
|
|
267
|
-
var
|
|
268
|
-
return
|
|
267
|
+
var n = u.call(this, t) || this;
|
|
268
|
+
return n.serviceName = "twitter", n.mention = "", n.mention = t.mention, n.serviceName = t.serviceName, n;
|
|
269
269
|
}
|
|
270
270
|
return e.prototype.getType = function() {
|
|
271
271
|
return "mention";
|
|
@@ -289,17 +289,17 @@ var te = (
|
|
|
289
289
|
}, e.prototype.getAnchorText = function() {
|
|
290
290
|
return "@" + this.mention;
|
|
291
291
|
}, e.prototype.getCssClassSuffixes = function() {
|
|
292
|
-
var t =
|
|
293
|
-
return
|
|
292
|
+
var t = u.prototype.getCssClassSuffixes.call(this), n = this.getServiceName();
|
|
293
|
+
return n && t.push(n), t;
|
|
294
294
|
}, e;
|
|
295
|
-
}(
|
|
296
|
-
),
|
|
295
|
+
}(j)
|
|
296
|
+
), pe = (
|
|
297
297
|
/** @class */
|
|
298
|
-
function(
|
|
299
|
-
z(e,
|
|
298
|
+
function(u) {
|
|
299
|
+
z(e, u);
|
|
300
300
|
function e(t) {
|
|
301
|
-
var
|
|
302
|
-
return
|
|
301
|
+
var n = u.call(this, t) || this;
|
|
302
|
+
return n.number = "", n.plusSign = !1, n.number = t.number, n.plusSign = t.plusSign, n;
|
|
303
303
|
}
|
|
304
304
|
return e.prototype.getType = function() {
|
|
305
305
|
return "phone";
|
|
@@ -312,17 +312,17 @@ var te = (
|
|
|
312
312
|
}, e.prototype.getAnchorText = function() {
|
|
313
313
|
return this.matchedText;
|
|
314
314
|
}, e;
|
|
315
|
-
}(
|
|
316
|
-
),
|
|
315
|
+
}(j)
|
|
316
|
+
), me = (
|
|
317
317
|
/** @class */
|
|
318
|
-
function(
|
|
319
|
-
z(e,
|
|
318
|
+
function(u) {
|
|
319
|
+
z(e, u);
|
|
320
320
|
function e(t) {
|
|
321
|
-
var
|
|
322
|
-
return
|
|
321
|
+
var n = u.call(this, t) || this;
|
|
322
|
+
return n.url = "", n.urlMatchType = "scheme", n.protocolUrlMatch = !1, n.protocolRelativeMatch = !1, n.stripPrefix = {
|
|
323
323
|
scheme: !0,
|
|
324
324
|
www: !0
|
|
325
|
-
},
|
|
325
|
+
}, n.stripTrailingSlash = !0, n.decodePercentEncoding = !0, n.schemePrefixRegex = /^(https?:\/\/)?/i, n.wwwPrefixRegex = /^(https?:\/\/)?(www\.)?/i, n.protocolRelativeRegex = /^\/\//, n.protocolPrepended = !1, n.urlMatchType = t.urlMatchType, n.url = t.url, n.protocolUrlMatch = t.protocolUrlMatch, n.protocolRelativeMatch = t.protocolRelativeMatch, n.stripPrefix = t.stripPrefix, n.stripTrailingSlash = t.stripTrailingSlash, n.decodePercentEncoding = t.decodePercentEncoding, n;
|
|
326
326
|
}
|
|
327
327
|
return e.prototype.getType = function() {
|
|
328
328
|
return "url";
|
|
@@ -346,124 +346,124 @@ var te = (
|
|
|
346
346
|
}, e.prototype.removeTrailingSlash = function(t) {
|
|
347
347
|
return t.charAt(t.length - 1) === "/" && (t = t.slice(0, -1)), t;
|
|
348
348
|
}, e.prototype.removePercentEncoding = function(t) {
|
|
349
|
-
var
|
|
349
|
+
var n = t.replace(/%22/gi, """).replace(/%26/gi, "&").replace(/%27/gi, "'").replace(/%3C/gi, "<").replace(/%3E/gi, ">");
|
|
350
350
|
try {
|
|
351
|
-
return decodeURIComponent(
|
|
351
|
+
return decodeURIComponent(n);
|
|
352
352
|
} catch {
|
|
353
|
-
return
|
|
353
|
+
return n;
|
|
354
354
|
}
|
|
355
355
|
}, e;
|
|
356
|
-
}(
|
|
356
|
+
}(j)
|
|
357
357
|
), H = (
|
|
358
358
|
/** @class */
|
|
359
359
|
/* @__PURE__ */ function() {
|
|
360
|
-
function
|
|
360
|
+
function u(e) {
|
|
361
361
|
this.__jsduckDummyDocProp = null, this.tagBuilder = e.tagBuilder;
|
|
362
362
|
}
|
|
363
|
-
return
|
|
363
|
+
return u;
|
|
364
364
|
}()
|
|
365
|
-
),
|
|
366
|
-
return "(?=(" +
|
|
367
|
-
},
|
|
368
|
-
return "(?:" +
|
|
369
|
-
}, O = U, Ae = /(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|northwesternmutual|travelersinsurance|vermögensberatung|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbah1a3hjkrd|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|vermögensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--mgbcpq6gpa1a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbaakc7dvf|xn--mgbc0a9azcg|xn--nqv7fs00ema|americanfamily|bananarepublic|cancerresearch|cookingchannel|kerrylogistics|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq480n2rg|xn--jlq61u9w7b|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|travelchannel|wolterskluwer|xn--cckwcxetd|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|xn--4dbrk0ce|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbgu82a|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|foodnetwork|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--3bst00m|xn--3ds443g|xn--3hcrj9c|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|சிங்கப்பூர்|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nextdirect|properties|protection|prudential|realestate|republican|restaurant|schaeffler|tatamotors|technology|university|vlaanderen|volkswagen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--q7ce6a|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|alfaromeo|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|frontdoor|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|institute|insurance|kuokgroup|lancaster|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|passagens|pramerica|richardli|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--ngbrx|xn--nqv7f|xn--p1acf|xn--qxa6a|xn--tckwe|xn--vhquv|yodobashi|موريتانيا|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|builders|business|capetown|catering|catholic|cipriani|cityeats|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|etisalat|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|guardian|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|maserati|mckinsey|memorial|merckmsd|mortgage|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|showtime|softbank|software|stcgroup|supplies|training|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|السعودية|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|avianca|banamex|bauhaus|bentley|bestbuy|booking|brother|bugatti|capital|caravan|careers|channel|charity|chintai|citadel|clubmed|college|cologne|comcast|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|grocery|guitars|hamburg|hangout|hitachi|holiday|hosting|hoteles|hotmail|hyundai|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lanxess|lasalle|latrobe|leclerc|limited|lincoln|markets|monster|netbank|netflix|network|neustar|okinawa|oldnavy|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|singles|staples|storage|support|surgery|systems|temasek|theater|theatre|tickets|tiffany|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|xfinity|yamaxun|youtube|zuerich|католик|اتصالات|البحرين|الجزائر|العليان|پاکستان|كاثوليك|இந்தியா|abarth|abbott|abbvie|africa|agency|airbus|airtel|alipay|alsace|alstom|amazon|anquan|aramco|author|bayern|beauty|berlin|bharti|bostik|boston|broker|camera|career|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hotels|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kinder|kindle|kosher|lancia|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|monash|mormon|moscow|museum|mutual|nagoya|natura|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|pictet|quebec|racing|realty|reisen|repair|report|review|rocher|rogers|ryukyu|safety|sakura|sanofi|school|schule|search|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|vuelos|walter|webcam|xihuan|yachts|yandex|zappos|москва|онлайн|ابوظبي|ارامكو|الاردن|المغرب|امارات|فلسطين|مليسيا|भारतम्|இலங்கை|ファッション|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|bosch|build|canon|cards|chase|cheap|cisco|citic|click|cloud|coach|codes|crown|cymru|dabur|dance|deals|delta|drive|dubai|earth|edeka|email|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|irish|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|linde|lipsy|loans|locus|lotte|lotto|macys|mango|media|miami|money|movie|music|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|rugby|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|sport|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|ישראל|ایران|بازار|بھارت|سودان|سورية|همراه|भारोत|संगठन|বাংলা|భారత్|ഭാരതം|嘉里大酒店|aarp|able|adac|aero|akdn|ally|amex|arab|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|dvag|erni|fage|fail|fans|farm|fast|fiat|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|hgtv|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kids|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|loft|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|read|reit|rent|rest|rich|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scot|seat|seek|sexy|shaw|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|дети|сайт|بارت|بيتك|ڀارت|تونس|شبكة|عراق|عمان|موقع|भारत|ভারত|ভাৰত|ਭਾਰਤ|ભારત|ଭାରତ|ಭಾರತ|ලංකා|アマゾン|グーグル|クラウド|ポイント|组织机构|電訊盈科|香格里拉|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|cbs|ceo|cfa|cfd|com|cpa|crs|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gay|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|ibm|ice|icu|ifm|inc|ing|ink|int|ist|itv|jcb|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|llp|lol|lpl|ltd|man|map|mba|med|men|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|sca|scb|ses|sew|sex|sfr|ski|sky|soy|spa|srl|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|бел|ком|қаз|мкд|мон|орг|рус|срб|укр|հայ|קום|عرب|قطر|كوم|مصر|कॉम|नेट|คอม|ไทย|ລາວ|ストア|セール|みんな|中文网|亚马逊|天主教|我爱你|新加坡|淡马锡|诺基亚|飞利浦|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|ελ|ευ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|广东|微博|慈善|手机|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)/, _e = new RegExp("[".concat(w, "!#$%&'*+/=?^_`{|}~-]")), Ve = new RegExp("^".concat(Ae.source, "$")), ne = (
|
|
365
|
+
), G = /[A-Za-z]/, qe = /[\d]/, je = /[\D]/, q = /\s/, J = /['"]/, He = /[\x00-\x1F\x7F]/, Ae = /A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC/.source, Oe = /\u2700-\u27bf\udde6-\uddff\ud800-\udbff\udc00-\udfff\ufe0e\ufe0f\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0\ud83c\udffb-\udfff\u200d\u3299\u3297\u303d\u3030\u24c2\ud83c\udd70-\udd71\udd7e-\udd7f\udd8e\udd91-\udd9a\udde6-\uddff\ude01-\ude02\ude1a\ude2f\ude32-\ude3a\ude50-\ude51\u203c\u2049\u25aa-\u25ab\u25b6\u25c0\u25fb-\u25fe\u00a9\u00ae\u2122\u2139\udc04\u2600-\u26FF\u2b05\u2b06\u2b07\u2b1b\u2b1c\u2b50\u2b55\u231a\u231b\u2328\u23cf\u23e9-\u23f3\u23f8-\u23fa\udccf\u2935\u2934\u2190-\u21ff/.source, Ue = /\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D4-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F/.source, be = Ae + Oe + Ue, W = /0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19/.source, Ie = be + W, w = be + W, O = new RegExp("[".concat(w, "]")), We = "(?:[" + W + "]{1,3}\\.){3}[" + W + "]{1,3}", _e = "[" + w + "](?:[" + w + "\\-_]{0,61}[" + w + "])?", ie = function(u) {
|
|
366
|
+
return "(?=(" + _e + "))\\" + u;
|
|
367
|
+
}, K = function(u) {
|
|
368
|
+
return "(?:" + ie(u) + "(?:\\." + ie(u + 1) + "){0,126}|" + We + ")";
|
|
369
|
+
}, U = O, xe = /(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|northwesternmutual|travelersinsurance|vermögensberatung|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbah1a3hjkrd|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|vermögensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--mgbcpq6gpa1a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbaakc7dvf|xn--mgbc0a9azcg|xn--nqv7fs00ema|americanfamily|bananarepublic|cancerresearch|cookingchannel|kerrylogistics|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq480n2rg|xn--jlq61u9w7b|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|travelchannel|wolterskluwer|xn--cckwcxetd|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|xn--4dbrk0ce|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbgu82a|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|foodnetwork|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--3bst00m|xn--3ds443g|xn--3hcrj9c|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|சிங்கப்பூர்|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nextdirect|properties|protection|prudential|realestate|republican|restaurant|schaeffler|tatamotors|technology|university|vlaanderen|volkswagen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--q7ce6a|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|alfaromeo|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|frontdoor|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|institute|insurance|kuokgroup|lancaster|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|passagens|pramerica|richardli|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--ngbrx|xn--nqv7f|xn--p1acf|xn--qxa6a|xn--tckwe|xn--vhquv|yodobashi|موريتانيا|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|builders|business|capetown|catering|catholic|cipriani|cityeats|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|etisalat|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|guardian|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|maserati|mckinsey|memorial|merckmsd|mortgage|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|showtime|softbank|software|stcgroup|supplies|training|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|السعودية|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|avianca|banamex|bauhaus|bentley|bestbuy|booking|brother|bugatti|capital|caravan|careers|channel|charity|chintai|citadel|clubmed|college|cologne|comcast|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|grocery|guitars|hamburg|hangout|hitachi|holiday|hosting|hoteles|hotmail|hyundai|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lanxess|lasalle|latrobe|leclerc|limited|lincoln|markets|monster|netbank|netflix|network|neustar|okinawa|oldnavy|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|singles|staples|storage|support|surgery|systems|temasek|theater|theatre|tickets|tiffany|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|xfinity|yamaxun|youtube|zuerich|католик|اتصالات|البحرين|الجزائر|العليان|پاکستان|كاثوليك|இந்தியா|abarth|abbott|abbvie|africa|agency|airbus|airtel|alipay|alsace|alstom|amazon|anquan|aramco|author|bayern|beauty|berlin|bharti|bostik|boston|broker|camera|career|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hotels|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kinder|kindle|kosher|lancia|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|monash|mormon|moscow|museum|mutual|nagoya|natura|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|pictet|quebec|racing|realty|reisen|repair|report|review|rocher|rogers|ryukyu|safety|sakura|sanofi|school|schule|search|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|vuelos|walter|webcam|xihuan|yachts|yandex|zappos|москва|онлайн|ابوظبي|ارامكو|الاردن|المغرب|امارات|فلسطين|مليسيا|भारतम्|இலங்கை|ファッション|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|bosch|build|canon|cards|chase|cheap|cisco|citic|click|cloud|coach|codes|crown|cymru|dabur|dance|deals|delta|drive|dubai|earth|edeka|email|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|irish|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|linde|lipsy|loans|locus|lotte|lotto|macys|mango|media|miami|money|movie|music|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|rugby|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|sport|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|ישראל|ایران|بازار|بھارت|سودان|سورية|همراه|भारोत|संगठन|বাংলা|భారత్|ഭാരതം|嘉里大酒店|aarp|able|adac|aero|akdn|ally|amex|arab|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|dvag|erni|fage|fail|fans|farm|fast|fiat|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|hgtv|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kids|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|loft|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|read|reit|rent|rest|rich|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scot|seat|seek|sexy|shaw|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|дети|сайт|بارت|بيتك|ڀارت|تونس|شبكة|عراق|عمان|موقع|भारत|ভারত|ভাৰত|ਭਾਰਤ|ભારત|ଭାରତ|ಭಾರತ|ලංකා|アマゾン|グーグル|クラウド|ポイント|组织机构|電訊盈科|香格里拉|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|cbs|ceo|cfa|cfd|com|cpa|crs|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gay|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|ibm|ice|icu|ifm|inc|ing|ink|int|ist|itv|jcb|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|llp|lol|lpl|ltd|man|map|mba|med|men|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|sca|scb|ses|sew|sex|sfr|ski|sky|soy|spa|srl|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|бел|ком|қаз|мкд|мон|орг|рус|срб|укр|հայ|קום|عرب|قطر|كوم|مصر|कॉम|नेट|คอม|ไทย|ລາວ|ストア|セール|みんな|中文网|亚马逊|天主教|我爱你|新加坡|淡马锡|诺基亚|飞利浦|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|ελ|ευ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|广东|微博|慈善|手机|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)/, Le = new RegExp("[".concat(w, "!#$%&'*+/=?^_`{|}~-]")), Ve = new RegExp("^".concat(xe.source, "$")), re = (
|
|
370
370
|
/** @class */
|
|
371
|
-
function(
|
|
372
|
-
z(e,
|
|
371
|
+
function(u) {
|
|
372
|
+
z(e, u);
|
|
373
373
|
function e() {
|
|
374
|
-
var t =
|
|
375
|
-
return t.localPartCharRegex =
|
|
374
|
+
var t = u !== null && u.apply(this, arguments) || this;
|
|
375
|
+
return t.localPartCharRegex = Le, t.strictTldRegex = Ve, t;
|
|
376
376
|
}
|
|
377
377
|
return e.prototype.parseMatches = function(t) {
|
|
378
|
-
for (var
|
|
378
|
+
for (var n = this.tagBuilder, i = this.localPartCharRegex, o = this.strictTldRegex, s = [], g = t.length, c = new I(), h = {
|
|
379
379
|
m: "a",
|
|
380
380
|
a: "i",
|
|
381
381
|
i: "l",
|
|
382
382
|
l: "t",
|
|
383
383
|
t: "o",
|
|
384
384
|
o: ":"
|
|
385
|
-
},
|
|
386
|
-
var
|
|
387
|
-
switch (
|
|
385
|
+
}, l = 0, f = 0, a = c; l < g; ) {
|
|
386
|
+
var d = t.charAt(l);
|
|
387
|
+
switch (f) {
|
|
388
388
|
case 0:
|
|
389
|
-
B(
|
|
389
|
+
B(d);
|
|
390
390
|
break;
|
|
391
391
|
case 1:
|
|
392
|
-
k(t.charAt(
|
|
392
|
+
k(t.charAt(l - 1), d);
|
|
393
393
|
break;
|
|
394
394
|
case 2:
|
|
395
|
-
x(
|
|
395
|
+
x(d);
|
|
396
396
|
break;
|
|
397
397
|
case 3:
|
|
398
|
-
|
|
398
|
+
y(d);
|
|
399
399
|
break;
|
|
400
400
|
case 4:
|
|
401
|
-
A(
|
|
401
|
+
A(d);
|
|
402
402
|
break;
|
|
403
403
|
case 5:
|
|
404
|
-
v(
|
|
404
|
+
v(d);
|
|
405
405
|
break;
|
|
406
406
|
case 6:
|
|
407
|
-
b(
|
|
407
|
+
b(d);
|
|
408
408
|
break;
|
|
409
409
|
case 7:
|
|
410
|
-
m(
|
|
410
|
+
m(d);
|
|
411
411
|
break;
|
|
412
412
|
default:
|
|
413
|
-
|
|
413
|
+
te(f);
|
|
414
414
|
}
|
|
415
|
-
|
|
415
|
+
l++;
|
|
416
416
|
}
|
|
417
|
-
return M(),
|
|
418
|
-
function B(
|
|
419
|
-
|
|
417
|
+
return M(), s;
|
|
418
|
+
function B(p) {
|
|
419
|
+
p === "m" ? D(
|
|
420
420
|
1
|
|
421
421
|
/* Mailto */
|
|
422
|
-
) :
|
|
422
|
+
) : i.test(p) && D();
|
|
423
423
|
}
|
|
424
|
-
function k(
|
|
425
|
-
|
|
424
|
+
function k(p, T) {
|
|
425
|
+
p === ":" ? i.test(T) ? (f = 2, a = new I(C(C({}, a), { hasMailtoPrefix: !0 }))) : F() : h[p] === T || (i.test(T) ? f = 2 : T === "." ? f = 3 : T === "@" ? f = 4 : F());
|
|
426
426
|
}
|
|
427
|
-
function x(
|
|
428
|
-
|
|
427
|
+
function x(p) {
|
|
428
|
+
p === "." ? f = 3 : p === "@" ? f = 4 : i.test(p) || F();
|
|
429
429
|
}
|
|
430
|
-
function
|
|
431
|
-
|
|
430
|
+
function y(p) {
|
|
431
|
+
p === "." || p === "@" ? F() : i.test(p) ? f = 2 : F();
|
|
432
432
|
}
|
|
433
|
-
function A(
|
|
434
|
-
|
|
433
|
+
function A(p) {
|
|
434
|
+
U.test(p) ? f = 5 : F();
|
|
435
435
|
}
|
|
436
|
-
function v(
|
|
437
|
-
|
|
436
|
+
function v(p) {
|
|
437
|
+
p === "." ? f = 7 : p === "-" ? f = 6 : U.test(p) || M();
|
|
438
438
|
}
|
|
439
|
-
function b(
|
|
440
|
-
|
|
439
|
+
function b(p) {
|
|
440
|
+
p === "-" || p === "." ? M() : U.test(p) ? f = 5 : M();
|
|
441
441
|
}
|
|
442
|
-
function m(
|
|
443
|
-
|
|
442
|
+
function m(p) {
|
|
443
|
+
p === "." || p === "-" ? M() : U.test(p) ? (f = 5, a = new I(C(C({}, a), { hasDomainDot: !0 }))) : M();
|
|
444
444
|
}
|
|
445
|
-
function D(
|
|
446
|
-
|
|
445
|
+
function D(p) {
|
|
446
|
+
p === void 0 && (p = 2), f = p, a = new I({ idx: l });
|
|
447
447
|
}
|
|
448
|
-
function
|
|
449
|
-
|
|
448
|
+
function F() {
|
|
449
|
+
f = 0, a = c;
|
|
450
450
|
}
|
|
451
451
|
function M() {
|
|
452
452
|
if (a.hasDomainDot) {
|
|
453
|
-
var
|
|
454
|
-
/[-.]$/.test(
|
|
455
|
-
var T = a.hasMailtoPrefix ?
|
|
456
|
-
|
|
457
|
-
tagBuilder:
|
|
458
|
-
matchedText:
|
|
453
|
+
var p = t.slice(a.idx, l);
|
|
454
|
+
/[-.]$/.test(p) && (p = p.slice(0, -1));
|
|
455
|
+
var T = a.hasMailtoPrefix ? p.slice(7) : p;
|
|
456
|
+
L(T) && s.push(new fe({
|
|
457
|
+
tagBuilder: n,
|
|
458
|
+
matchedText: p,
|
|
459
459
|
offset: a.idx,
|
|
460
460
|
email: T
|
|
461
461
|
}));
|
|
462
462
|
}
|
|
463
|
-
|
|
464
|
-
function
|
|
465
|
-
var
|
|
466
|
-
return
|
|
463
|
+
F();
|
|
464
|
+
function L(V) {
|
|
465
|
+
var $ = V.split(".").pop() || "", Z = $.toLowerCase(), Q = o.test(Z);
|
|
466
|
+
return Q;
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
469
|
}, e;
|
|
@@ -471,237 +471,237 @@ var te = (
|
|
|
471
471
|
), I = (
|
|
472
472
|
/** @class */
|
|
473
473
|
/* @__PURE__ */ function() {
|
|
474
|
-
function
|
|
474
|
+
function u(e) {
|
|
475
475
|
e === void 0 && (e = {}), this.idx = e.idx !== void 0 ? e.idx : -1, this.hasMailtoPrefix = !!e.hasMailtoPrefix, this.hasDomainDot = !!e.hasDomainDot;
|
|
476
476
|
}
|
|
477
|
-
return
|
|
477
|
+
return u;
|
|
478
478
|
}()
|
|
479
|
-
),
|
|
479
|
+
), $e = (
|
|
480
480
|
/** @class */
|
|
481
481
|
function() {
|
|
482
|
-
function
|
|
482
|
+
function u() {
|
|
483
483
|
}
|
|
484
|
-
return
|
|
484
|
+
return u.isValid = function(e, t) {
|
|
485
485
|
return !(t && !this.isValidUriScheme(t) || this.urlMatchDoesNotHaveProtocolOrDot(e, t) || // At least one period ('.') must exist in the URL match for us to consider it an actual URL, *unless* it was a full protocol match (like 'http://localhost')
|
|
486
486
|
this.urlMatchDoesNotHaveAtLeastOneWordChar(e, t) && // At least one letter character must exist in the domain name after a protocol match. Ex: skip over something like "git:1.0"
|
|
487
487
|
!this.isValidIpAddress(e) || // Except if it's an IP address
|
|
488
488
|
this.containsMultipleDots(e));
|
|
489
|
-
},
|
|
490
|
-
var t = new RegExp(this.hasFullProtocolRegex.source + this.ipRegex.source),
|
|
491
|
-
return
|
|
492
|
-
},
|
|
489
|
+
}, u.isValidIpAddress = function(e) {
|
|
490
|
+
var t = new RegExp(this.hasFullProtocolRegex.source + this.ipRegex.source), n = e.match(t);
|
|
491
|
+
return n !== null;
|
|
492
|
+
}, u.containsMultipleDots = function(e) {
|
|
493
493
|
var t = e;
|
|
494
494
|
return this.hasFullProtocolRegex.test(e) && (t = e.split("://")[1]), t.split("/")[0].indexOf("..") > -1;
|
|
495
|
-
},
|
|
496
|
-
var t = e.match(this.uriSchemeRegex),
|
|
497
|
-
return
|
|
498
|
-
},
|
|
495
|
+
}, u.isValidUriScheme = function(e) {
|
|
496
|
+
var t = e.match(this.uriSchemeRegex), n = t && t[0].toLowerCase();
|
|
497
|
+
return n !== "javascript:" && n !== "vbscript:";
|
|
498
|
+
}, u.urlMatchDoesNotHaveProtocolOrDot = function(e, t) {
|
|
499
499
|
return !!e && (!t || !this.hasFullProtocolRegex.test(t)) && e.indexOf(".") === -1;
|
|
500
|
-
},
|
|
500
|
+
}, u.urlMatchDoesNotHaveAtLeastOneWordChar = function(e, t) {
|
|
501
501
|
return e && t ? !this.hasFullProtocolRegex.test(t) && !this.hasWordCharAfterProtocolRegex.test(e) : !1;
|
|
502
|
-
},
|
|
502
|
+
}, u.hasFullProtocolRegex = /^[A-Za-z][-.+A-Za-z0-9]*:\/\//, u.uriSchemeRegex = /^[A-Za-z][-.+A-Za-z0-9]*:/, u.hasWordCharAfterProtocolRegex = new RegExp(":[^\\s]*?[" + Ae + "]"), u.ipRegex = /[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?(:[0-9]*)?\/?$/, u;
|
|
503
503
|
}()
|
|
504
|
-
),
|
|
505
|
-
var
|
|
504
|
+
), Ze = function() {
|
|
505
|
+
var u = /(?:[A-Za-z][-.+A-Za-z0-9]{0,63}:(?![A-Za-z][-.+A-Za-z0-9]{0,63}:\/\/)(?!\d+\/?)(?:\/\/)?)/, e = /(?:www\.)/, t = new RegExp("[/?#](?:[" + w + "\\-+&@#/%=~_()|'$*\\[\\]{}?!:,.;^✓]*[" + w + "\\-+&@#/%=~_()|'$*\\[\\]{}✓])?");
|
|
506
506
|
return new RegExp([
|
|
507
507
|
"(?:",
|
|
508
508
|
"(",
|
|
509
|
-
|
|
510
|
-
|
|
509
|
+
u.source,
|
|
510
|
+
K(2),
|
|
511
511
|
")",
|
|
512
512
|
"|",
|
|
513
513
|
"(",
|
|
514
514
|
"(//)?",
|
|
515
515
|
e.source,
|
|
516
|
-
|
|
516
|
+
K(6),
|
|
517
517
|
")",
|
|
518
518
|
"|",
|
|
519
519
|
"(",
|
|
520
520
|
"(//)?",
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
"(?![-" +
|
|
521
|
+
K(10) + "\\.",
|
|
522
|
+
xe.source,
|
|
523
|
+
"(?![-" + Ie + "])",
|
|
524
524
|
")",
|
|
525
525
|
")",
|
|
526
526
|
"(?::[0-9]+)?",
|
|
527
527
|
"(?:" + t.source + ")?"
|
|
528
528
|
// match for path, query string, and/or hash anchor - optional
|
|
529
529
|
].join(""), "gi");
|
|
530
|
-
}(),
|
|
530
|
+
}(), Qe = new RegExp("[" + w + "]"), ae = (
|
|
531
531
|
/** @class */
|
|
532
|
-
function(
|
|
533
|
-
z(e,
|
|
532
|
+
function(u) {
|
|
533
|
+
z(e, u);
|
|
534
534
|
function e(t) {
|
|
535
|
-
var
|
|
536
|
-
return
|
|
535
|
+
var n = u.call(this, t) || this;
|
|
536
|
+
return n.stripPrefix = {
|
|
537
537
|
scheme: !0,
|
|
538
538
|
www: !0
|
|
539
|
-
},
|
|
539
|
+
}, n.stripTrailingSlash = !0, n.decodePercentEncoding = !0, n.matcherRegex = Ze, n.wordCharRegExp = Qe, n.stripPrefix = t.stripPrefix, n.stripTrailingSlash = t.stripTrailingSlash, n.decodePercentEncoding = t.decodePercentEncoding, n;
|
|
540
540
|
}
|
|
541
541
|
return e.prototype.parseMatches = function(t) {
|
|
542
|
-
for (var
|
|
543
|
-
var a =
|
|
544
|
-
if (
|
|
542
|
+
for (var n = this.matcherRegex, i = this.stripPrefix, o = this.stripTrailingSlash, s = this.decodePercentEncoding, g = this.tagBuilder, c = [], h, l = function() {
|
|
543
|
+
var a = h[0], d = h[1], B = h[4], k = h[5], x = h[9], y = h.index, A = k || x, v = t.charAt(y - 1);
|
|
544
|
+
if (!$e.isValid(a, d) || y > 0 && v === "@" || y > 0 && A && f.wordCharRegExp.test(v))
|
|
545
545
|
return "continue";
|
|
546
|
-
if (/\?$/.test(a) && (a = a.substr(0, a.length - 1)),
|
|
546
|
+
if (/\?$/.test(a) && (a = a.substr(0, a.length - 1)), f.matchHasUnbalancedClosingParen(a))
|
|
547
547
|
a = a.substr(0, a.length - 1);
|
|
548
548
|
else {
|
|
549
|
-
var b =
|
|
549
|
+
var b = f.matchHasInvalidCharAfterTld(a, d);
|
|
550
550
|
b > -1 && (a = a.substr(0, b));
|
|
551
551
|
}
|
|
552
|
-
var m = ["http://", "https://"].find(function(
|
|
553
|
-
return !!
|
|
552
|
+
var m = ["http://", "https://"].find(function(p) {
|
|
553
|
+
return !!d && d.indexOf(p) !== -1;
|
|
554
554
|
});
|
|
555
555
|
if (m) {
|
|
556
556
|
var D = a.indexOf(m);
|
|
557
|
-
a = a.substr(D),
|
|
557
|
+
a = a.substr(D), d = d.substr(D), y = y + D;
|
|
558
558
|
}
|
|
559
|
-
var
|
|
560
|
-
|
|
559
|
+
var F = d ? "scheme" : B ? "www" : "tld", M = !!d;
|
|
560
|
+
c.push(new me({
|
|
561
561
|
tagBuilder: g,
|
|
562
562
|
matchedText: a,
|
|
563
|
-
offset:
|
|
564
|
-
urlMatchType:
|
|
563
|
+
offset: y,
|
|
564
|
+
urlMatchType: F,
|
|
565
565
|
url: a,
|
|
566
566
|
protocolUrlMatch: M,
|
|
567
567
|
protocolRelativeMatch: !!A,
|
|
568
|
-
stripPrefix:
|
|
569
|
-
stripTrailingSlash:
|
|
570
|
-
decodePercentEncoding:
|
|
568
|
+
stripPrefix: i,
|
|
569
|
+
stripTrailingSlash: o,
|
|
570
|
+
decodePercentEncoding: s
|
|
571
571
|
}));
|
|
572
|
-
},
|
|
573
|
-
|
|
574
|
-
return
|
|
572
|
+
}, f = this; (h = n.exec(t)) !== null; )
|
|
573
|
+
l();
|
|
574
|
+
return c;
|
|
575
575
|
}, e.prototype.matchHasUnbalancedClosingParen = function(t) {
|
|
576
|
-
var
|
|
577
|
-
if (
|
|
578
|
-
|
|
579
|
-
else if (
|
|
580
|
-
|
|
581
|
-
else if (
|
|
582
|
-
|
|
576
|
+
var n = t.charAt(t.length - 1), i;
|
|
577
|
+
if (n === ")")
|
|
578
|
+
i = "(";
|
|
579
|
+
else if (n === "]")
|
|
580
|
+
i = "[";
|
|
581
|
+
else if (n === "}")
|
|
582
|
+
i = "{";
|
|
583
583
|
else
|
|
584
584
|
return !1;
|
|
585
|
-
for (var
|
|
586
|
-
var
|
|
587
|
-
|
|
585
|
+
for (var o = 0, s = 0, g = t.length - 1; s < g; s++) {
|
|
586
|
+
var c = t.charAt(s);
|
|
587
|
+
c === i ? o++ : c === n && (o = Math.max(o - 1, 0));
|
|
588
588
|
}
|
|
589
|
-
return
|
|
590
|
-
}, e.prototype.matchHasInvalidCharAfterTld = function(t,
|
|
589
|
+
return o === 0;
|
|
590
|
+
}, e.prototype.matchHasInvalidCharAfterTld = function(t, n) {
|
|
591
591
|
if (!t)
|
|
592
592
|
return -1;
|
|
593
|
-
var
|
|
594
|
-
|
|
595
|
-
var
|
|
596
|
-
return
|
|
593
|
+
var i = 0;
|
|
594
|
+
n && (i = t.indexOf(":"), t = t.slice(i));
|
|
595
|
+
var o = new RegExp("^((.?//)?[-." + w + "]*[-" + w + "]\\.[-" + w + "]+)"), s = o.exec(t);
|
|
596
|
+
return s === null ? -1 : (i += s[1].length, t = t.slice(s[1].length), /^[^-.A-Za-z0-9:\/?#]/.test(t) ? i : -1);
|
|
597
597
|
}, e;
|
|
598
598
|
}(H)
|
|
599
|
-
),
|
|
599
|
+
), se = new RegExp("[_".concat(w, "]")), oe = (
|
|
600
600
|
/** @class */
|
|
601
|
-
function(
|
|
602
|
-
z(e,
|
|
601
|
+
function(u) {
|
|
602
|
+
z(e, u);
|
|
603
603
|
function e(t) {
|
|
604
|
-
var
|
|
605
|
-
return
|
|
604
|
+
var n = u.call(this, t) || this;
|
|
605
|
+
return n.serviceName = "twitter", n.serviceName = t.serviceName, n;
|
|
606
606
|
}
|
|
607
607
|
return e.prototype.parseMatches = function(t) {
|
|
608
|
-
for (var
|
|
609
|
-
var
|
|
610
|
-
switch (
|
|
608
|
+
for (var n = this.tagBuilder, i = this.serviceName, o = [], s = t.length, g = 0, c = -1, h = 0; g < s; ) {
|
|
609
|
+
var l = t.charAt(g);
|
|
610
|
+
switch (h) {
|
|
611
611
|
case 0:
|
|
612
|
-
|
|
612
|
+
f(l);
|
|
613
613
|
break;
|
|
614
614
|
case 1:
|
|
615
|
-
a(
|
|
615
|
+
a(l);
|
|
616
616
|
break;
|
|
617
617
|
case 2:
|
|
618
|
-
|
|
618
|
+
d(l);
|
|
619
619
|
break;
|
|
620
620
|
case 3:
|
|
621
|
-
B(
|
|
621
|
+
B(l);
|
|
622
622
|
break;
|
|
623
623
|
default:
|
|
624
|
-
|
|
624
|
+
te(h);
|
|
625
625
|
}
|
|
626
626
|
g++;
|
|
627
627
|
}
|
|
628
|
-
return k(),
|
|
629
|
-
function
|
|
630
|
-
x === "#" ? (
|
|
628
|
+
return k(), o;
|
|
629
|
+
function f(x) {
|
|
630
|
+
x === "#" ? (h = 2, c = g) : O.test(x) && (h = 1);
|
|
631
631
|
}
|
|
632
632
|
function a(x) {
|
|
633
|
-
|
|
633
|
+
O.test(x) || (h = 0);
|
|
634
634
|
}
|
|
635
|
-
function
|
|
636
|
-
|
|
635
|
+
function d(x) {
|
|
636
|
+
se.test(x) ? h = 3 : O.test(x) ? h = 1 : h = 0;
|
|
637
637
|
}
|
|
638
638
|
function B(x) {
|
|
639
|
-
|
|
639
|
+
se.test(x) || (k(), c = -1, O.test(x) ? h = 1 : h = 0);
|
|
640
640
|
}
|
|
641
641
|
function k() {
|
|
642
|
-
if (
|
|
643
|
-
var x = t.slice(
|
|
644
|
-
tagBuilder:
|
|
642
|
+
if (c > -1 && g - c <= 140) {
|
|
643
|
+
var x = t.slice(c, g), y = new ge({
|
|
644
|
+
tagBuilder: n,
|
|
645
645
|
matchedText: x,
|
|
646
|
-
offset:
|
|
647
|
-
serviceName:
|
|
646
|
+
offset: c,
|
|
647
|
+
serviceName: i,
|
|
648
648
|
hashtag: x.slice(1)
|
|
649
649
|
});
|
|
650
|
-
|
|
650
|
+
o.push(y);
|
|
651
651
|
}
|
|
652
652
|
}
|
|
653
653
|
}, e;
|
|
654
654
|
}(H)
|
|
655
|
-
),
|
|
655
|
+
), Ye = ["twitter", "facebook", "instagram", "tiktok"], Ge = /(?:(?:(?:(\+)?\d{1,3}[-\040.]?)?\(?\d{3}\)?[-\040.]?\d{3}[-\040.]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-\040.]?(?:\d[-\040.]?){6,12}\d+))([,;]+[0-9]+#?)*/, Je = /(0([1-9]{1}-?[1-9]\d{3}|[1-9]{2}-?\d{3}|[1-9]{2}\d{1}-?\d{2}|[1-9]{2}\d{2}-?\d{1})-?\d{4}|0[789]0-?\d{4}-?\d{4}|050-?\d{4}-?\d{4})/, Ke = new RegExp("".concat(Ge.source, "|").concat(Je.source), "g"), le = (
|
|
656
656
|
/** @class */
|
|
657
|
-
function(
|
|
658
|
-
z(e,
|
|
657
|
+
function(u) {
|
|
658
|
+
z(e, u);
|
|
659
659
|
function e() {
|
|
660
|
-
var t =
|
|
661
|
-
return t.matcherRegex =
|
|
660
|
+
var t = u !== null && u.apply(this, arguments) || this;
|
|
661
|
+
return t.matcherRegex = Ke, t;
|
|
662
662
|
}
|
|
663
663
|
return e.prototype.parseMatches = function(t) {
|
|
664
|
-
for (var
|
|
665
|
-
var g =
|
|
666
|
-
this.testMatch(
|
|
667
|
-
tagBuilder:
|
|
664
|
+
for (var n = this.matcherRegex, i = this.tagBuilder, o = [], s; (s = n.exec(t)) !== null; ) {
|
|
665
|
+
var g = s[0], c = g.replace(/[^0-9,;#]/g, ""), h = !!(s[1] || s[2]), l = s.index == 0 ? "" : t.substr(s.index - 1, 1), f = t.substr(s.index + g.length, 1), a = !l.match(/\d/) && !f.match(/\d/);
|
|
666
|
+
this.testMatch(s[3]) && this.testMatch(g) && a && o.push(new pe({
|
|
667
|
+
tagBuilder: i,
|
|
668
668
|
matchedText: g,
|
|
669
|
-
offset:
|
|
670
|
-
number:
|
|
671
|
-
plusSign:
|
|
669
|
+
offset: s.index,
|
|
670
|
+
number: c,
|
|
671
|
+
plusSign: h
|
|
672
672
|
}));
|
|
673
673
|
}
|
|
674
|
-
return
|
|
674
|
+
return o;
|
|
675
675
|
}, e.prototype.testMatch = function(t) {
|
|
676
676
|
return je.test(t);
|
|
677
677
|
}, e;
|
|
678
678
|
}(H)
|
|
679
|
-
),
|
|
679
|
+
), Xe = new RegExp("@[_".concat(w, "]{1,50}(?![_").concat(w, "])"), "g"), et = new RegExp("@[_.".concat(w, "]{1,30}(?![_").concat(w, "])"), "g"), tt = new RegExp("@[-_.".concat(w, "]{1,50}(?![-_").concat(w, "])"), "g"), ut = new RegExp("@[_.".concat(w, "]{1,23}[_").concat(w, "](?![_").concat(w, "])"), "g"), nt = new RegExp("[^" + w + "]"), ce = (
|
|
680
680
|
/** @class */
|
|
681
|
-
function(
|
|
682
|
-
z(e,
|
|
681
|
+
function(u) {
|
|
682
|
+
z(e, u);
|
|
683
683
|
function e(t) {
|
|
684
|
-
var
|
|
685
|
-
return
|
|
686
|
-
twitter:
|
|
687
|
-
instagram:
|
|
688
|
-
soundcloud:
|
|
689
|
-
tiktok:
|
|
690
|
-
},
|
|
684
|
+
var n = u.call(this, t) || this;
|
|
685
|
+
return n.serviceName = "twitter", n.matcherRegexes = {
|
|
686
|
+
twitter: Xe,
|
|
687
|
+
instagram: et,
|
|
688
|
+
soundcloud: tt,
|
|
689
|
+
tiktok: ut
|
|
690
|
+
}, n.nonWordCharRegex = nt, n.serviceName = t.serviceName, n;
|
|
691
691
|
}
|
|
692
692
|
return e.prototype.parseMatches = function(t) {
|
|
693
|
-
var
|
|
694
|
-
if (!
|
|
693
|
+
var n = this.serviceName, i = this.matcherRegexes[this.serviceName], o = this.nonWordCharRegex, s = this.tagBuilder, g = [], c;
|
|
694
|
+
if (!i)
|
|
695
695
|
return g;
|
|
696
|
-
for (; (
|
|
697
|
-
var
|
|
698
|
-
if (
|
|
699
|
-
var
|
|
700
|
-
g.push(new
|
|
701
|
-
tagBuilder:
|
|
702
|
-
matchedText:
|
|
703
|
-
offset:
|
|
704
|
-
serviceName:
|
|
696
|
+
for (; (c = i.exec(t)) !== null; ) {
|
|
697
|
+
var h = c.index, l = t.charAt(h - 1);
|
|
698
|
+
if (h === 0 || o.test(l)) {
|
|
699
|
+
var f = c[0].replace(/\.+$/g, ""), a = f.slice(1);
|
|
700
|
+
g.push(new de({
|
|
701
|
+
tagBuilder: s,
|
|
702
|
+
matchedText: f,
|
|
703
|
+
offset: h,
|
|
704
|
+
serviceName: n,
|
|
705
705
|
mention: a
|
|
706
706
|
}));
|
|
707
707
|
}
|
|
@@ -710,177 +710,177 @@ var te = (
|
|
|
710
710
|
}, e;
|
|
711
711
|
}(H)
|
|
712
712
|
);
|
|
713
|
-
function
|
|
714
|
-
for (var t = e.onOpenTag,
|
|
715
|
-
var
|
|
716
|
-
switch (
|
|
713
|
+
function it(u, e) {
|
|
714
|
+
for (var t = e.onOpenTag, n = e.onCloseTag, i = e.onText, o = e.onComment, s = e.onDoctype, g = new N(), c = 0, h = u.length, l = 0, f = 0, a = g; c < h; ) {
|
|
715
|
+
var d = u.charAt(c);
|
|
716
|
+
switch (l) {
|
|
717
717
|
case 0:
|
|
718
|
-
B(
|
|
718
|
+
B(d);
|
|
719
719
|
break;
|
|
720
720
|
case 1:
|
|
721
|
-
k(
|
|
721
|
+
k(d);
|
|
722
722
|
break;
|
|
723
723
|
case 2:
|
|
724
|
-
|
|
724
|
+
y(d);
|
|
725
725
|
break;
|
|
726
726
|
case 3:
|
|
727
|
-
x(
|
|
727
|
+
x(d);
|
|
728
728
|
break;
|
|
729
729
|
case 4:
|
|
730
|
-
A(
|
|
730
|
+
A(d);
|
|
731
731
|
break;
|
|
732
732
|
case 5:
|
|
733
|
-
v(
|
|
733
|
+
v(d);
|
|
734
734
|
break;
|
|
735
735
|
case 6:
|
|
736
|
-
b(
|
|
736
|
+
b(d);
|
|
737
737
|
break;
|
|
738
738
|
case 7:
|
|
739
|
-
m(
|
|
739
|
+
m(d);
|
|
740
740
|
break;
|
|
741
741
|
case 8:
|
|
742
|
-
D(
|
|
742
|
+
D(d);
|
|
743
743
|
break;
|
|
744
744
|
case 9:
|
|
745
|
-
|
|
745
|
+
F(d);
|
|
746
746
|
break;
|
|
747
747
|
case 10:
|
|
748
|
-
M(
|
|
748
|
+
M(d);
|
|
749
749
|
break;
|
|
750
750
|
case 11:
|
|
751
|
-
d
|
|
751
|
+
p(d);
|
|
752
752
|
break;
|
|
753
753
|
case 12:
|
|
754
|
-
T(
|
|
754
|
+
T(d);
|
|
755
755
|
break;
|
|
756
756
|
case 13:
|
|
757
|
-
|
|
757
|
+
L();
|
|
758
758
|
break;
|
|
759
759
|
case 14:
|
|
760
|
-
V(
|
|
760
|
+
V(d);
|
|
761
761
|
break;
|
|
762
762
|
case 15:
|
|
763
|
-
|
|
763
|
+
$(d);
|
|
764
764
|
break;
|
|
765
765
|
case 16:
|
|
766
|
-
|
|
766
|
+
Z(d);
|
|
767
767
|
break;
|
|
768
768
|
case 17:
|
|
769
|
-
|
|
769
|
+
Q(d);
|
|
770
770
|
break;
|
|
771
771
|
case 18:
|
|
772
|
-
|
|
772
|
+
Ce(d);
|
|
773
773
|
break;
|
|
774
774
|
case 19:
|
|
775
|
-
|
|
775
|
+
ye(d);
|
|
776
776
|
break;
|
|
777
777
|
case 20:
|
|
778
|
-
|
|
778
|
+
Fe(d);
|
|
779
779
|
break;
|
|
780
780
|
default:
|
|
781
|
-
|
|
781
|
+
te(l);
|
|
782
782
|
}
|
|
783
|
-
|
|
783
|
+
c++;
|
|
784
784
|
}
|
|
785
|
-
|
|
786
|
-
function B(
|
|
787
|
-
|
|
785
|
+
f < c && Be();
|
|
786
|
+
function B(r) {
|
|
787
|
+
r === "<" && R();
|
|
788
788
|
}
|
|
789
|
-
function k(
|
|
790
|
-
|
|
789
|
+
function k(r) {
|
|
790
|
+
r === "!" ? l = 13 : r === "/" ? (l = 2, a = new N(C(C({}, a), { isClosing: !0 }))) : r === "<" ? R() : G.test(r) ? (l = 3, a = new N(C(C({}, a), { isOpening: !0 }))) : (l = 0, a = g);
|
|
791
791
|
}
|
|
792
|
-
function x(
|
|
793
|
-
|
|
792
|
+
function x(r) {
|
|
793
|
+
q.test(r) ? (a = new N(C(C({}, a), { name: Y() })), l = 4) : r === "<" ? R() : r === "/" ? (a = new N(C(C({}, a), { name: Y() })), l = 12) : r === ">" ? (a = new N(C(C({}, a), { name: Y() })), P()) : !G.test(r) && !qe.test(r) && r !== ":" && E();
|
|
794
794
|
}
|
|
795
|
-
function
|
|
796
|
-
|
|
795
|
+
function y(r) {
|
|
796
|
+
r === ">" ? E() : G.test(r) ? l = 3 : E();
|
|
797
797
|
}
|
|
798
|
-
function A(
|
|
799
|
-
|
|
798
|
+
function A(r) {
|
|
799
|
+
q.test(r) || (r === "/" ? l = 12 : r === ">" ? P() : r === "<" ? R() : r === "=" || J.test(r) || He.test(r) ? E() : l = 5);
|
|
800
800
|
}
|
|
801
|
-
function v(
|
|
802
|
-
|
|
801
|
+
function v(r) {
|
|
802
|
+
q.test(r) ? l = 6 : r === "/" ? l = 12 : r === "=" ? l = 7 : r === ">" ? P() : r === "<" ? R() : J.test(r) && E();
|
|
803
803
|
}
|
|
804
|
-
function b(
|
|
805
|
-
|
|
804
|
+
function b(r) {
|
|
805
|
+
q.test(r) || (r === "/" ? l = 12 : r === "=" ? l = 7 : r === ">" ? P() : r === "<" ? R() : J.test(r) ? E() : l = 5);
|
|
806
806
|
}
|
|
807
|
-
function m(
|
|
808
|
-
|
|
807
|
+
function m(r) {
|
|
808
|
+
q.test(r) || (r === '"' ? l = 8 : r === "'" ? l = 9 : /[>=`]/.test(r) ? E() : r === "<" ? R() : l = 10);
|
|
809
809
|
}
|
|
810
|
-
function D(
|
|
811
|
-
|
|
810
|
+
function D(r) {
|
|
811
|
+
r === '"' && (l = 11);
|
|
812
812
|
}
|
|
813
|
-
function
|
|
814
|
-
|
|
813
|
+
function F(r) {
|
|
814
|
+
r === "'" && (l = 11);
|
|
815
815
|
}
|
|
816
|
-
function M(
|
|
817
|
-
|
|
816
|
+
function M(r) {
|
|
817
|
+
q.test(r) ? l = 4 : r === ">" ? P() : r === "<" && R();
|
|
818
818
|
}
|
|
819
|
-
function
|
|
820
|
-
|
|
819
|
+
function p(r) {
|
|
820
|
+
q.test(r) ? l = 4 : r === "/" ? l = 12 : r === ">" ? P() : r === "<" ? R() : (l = 4, De());
|
|
821
821
|
}
|
|
822
|
-
function T(
|
|
823
|
-
|
|
822
|
+
function T(r) {
|
|
823
|
+
r === ">" ? (a = new N(C(C({}, a), { isClosing: !0 })), P()) : l = 4;
|
|
824
824
|
}
|
|
825
|
-
function
|
|
826
|
-
|
|
825
|
+
function L(r) {
|
|
826
|
+
u.substr(c, 2) === "--" ? (c += 2, a = new N(C(C({}, a), { type: "comment" })), l = 14) : u.substr(c, 7).toUpperCase() === "DOCTYPE" ? (c += 7, a = new N(C(C({}, a), { type: "doctype" })), l = 20) : E();
|
|
827
827
|
}
|
|
828
|
-
function V(
|
|
829
|
-
|
|
828
|
+
function V(r) {
|
|
829
|
+
r === "-" ? l = 15 : r === ">" ? E() : l = 16;
|
|
830
830
|
}
|
|
831
|
-
function
|
|
832
|
-
|
|
831
|
+
function $(r) {
|
|
832
|
+
r === "-" ? l = 18 : r === ">" ? E() : l = 16;
|
|
833
833
|
}
|
|
834
|
-
function
|
|
835
|
-
|
|
834
|
+
function Z(r) {
|
|
835
|
+
r === "-" && (l = 17);
|
|
836
836
|
}
|
|
837
|
-
function
|
|
838
|
-
|
|
837
|
+
function Q(r) {
|
|
838
|
+
r === "-" ? l = 18 : l = 16;
|
|
839
839
|
}
|
|
840
|
-
function
|
|
841
|
-
|
|
840
|
+
function Ce(r) {
|
|
841
|
+
r === ">" ? P() : r === "!" ? l = 19 : r === "-" || (l = 16);
|
|
842
842
|
}
|
|
843
|
-
function
|
|
844
|
-
|
|
843
|
+
function ye(r) {
|
|
844
|
+
r === "-" ? l = 17 : r === ">" ? P() : l = 16;
|
|
845
845
|
}
|
|
846
|
-
function
|
|
847
|
-
|
|
846
|
+
function Fe(r) {
|
|
847
|
+
r === ">" ? P() : r === "<" && R();
|
|
848
848
|
}
|
|
849
849
|
function E() {
|
|
850
|
-
|
|
850
|
+
l = 0, a = g;
|
|
851
851
|
}
|
|
852
852
|
function R() {
|
|
853
|
-
|
|
853
|
+
l = 1, a = new N({ idx: c });
|
|
854
854
|
}
|
|
855
855
|
function P() {
|
|
856
|
-
var
|
|
857
|
-
|
|
856
|
+
var r = u.slice(f, a.idx);
|
|
857
|
+
r && i(r, f), a.type === "comment" ? o(a.idx) : a.type === "doctype" ? s(a.idx) : (a.isOpening && t(a.name, a.idx), a.isClosing && n(a.name, a.idx)), E(), f = c + 1;
|
|
858
858
|
}
|
|
859
|
-
function
|
|
860
|
-
var
|
|
861
|
-
r
|
|
859
|
+
function Be() {
|
|
860
|
+
var r = u.slice(f, c);
|
|
861
|
+
i(r, f), f = c + 1;
|
|
862
862
|
}
|
|
863
|
-
function
|
|
864
|
-
var
|
|
865
|
-
return
|
|
863
|
+
function Y() {
|
|
864
|
+
var r = a.idx + (a.isClosing ? 2 : 1);
|
|
865
|
+
return u.slice(r, c).toLowerCase();
|
|
866
866
|
}
|
|
867
|
-
function
|
|
868
|
-
|
|
867
|
+
function De() {
|
|
868
|
+
c--;
|
|
869
869
|
}
|
|
870
870
|
}
|
|
871
871
|
var N = (
|
|
872
872
|
/** @class */
|
|
873
873
|
/* @__PURE__ */ function() {
|
|
874
|
-
function
|
|
874
|
+
function u(e) {
|
|
875
875
|
e === void 0 && (e = {}), this.idx = e.idx !== void 0 ? e.idx : -1, this.type = e.type || "tag", this.name = e.name || "", this.isOpening = !!e.isOpening, this.isClosing = !!e.isClosing;
|
|
876
876
|
}
|
|
877
|
-
return
|
|
877
|
+
return u;
|
|
878
878
|
}()
|
|
879
|
-
),
|
|
879
|
+
), rt = (
|
|
880
880
|
/** @class */
|
|
881
881
|
function() {
|
|
882
|
-
function
|
|
883
|
-
e === void 0 && (e = {}), this.version =
|
|
882
|
+
function u(e) {
|
|
883
|
+
e === void 0 && (e = {}), this.version = u.version, this.urls = {}, this.email = !0, this.phone = !0, this.hashtag = !1, this.mention = !1, this.newWindow = !0, this.stripPrefix = {
|
|
884
884
|
scheme: !0,
|
|
885
885
|
www: !0
|
|
886
886
|
}, this.stripTrailingSlash = !0, this.decodePercentEncoding = !0, this.truncate = {
|
|
@@ -890,73 +890,73 @@ var N = (
|
|
|
890
890
|
var t = this.mention;
|
|
891
891
|
if (t !== !1 && ["twitter", "instagram", "soundcloud", "tiktok"].indexOf(t) === -1)
|
|
892
892
|
throw new Error("invalid `mention` cfg '".concat(t, "' - see docs"));
|
|
893
|
-
var
|
|
894
|
-
if (
|
|
895
|
-
throw new Error("invalid `hashtag` cfg '".concat(
|
|
893
|
+
var n = this.hashtag;
|
|
894
|
+
if (n !== !1 && Ye.indexOf(n) === -1)
|
|
895
|
+
throw new Error("invalid `hashtag` cfg '".concat(n, "' - see docs"));
|
|
896
896
|
this.truncate = this.normalizeTruncateCfg(e.truncate), this.className = e.className || this.className, this.replaceFn = e.replaceFn || this.replaceFn, this.context = e.context || this;
|
|
897
897
|
}
|
|
898
|
-
return
|
|
899
|
-
var
|
|
900
|
-
return
|
|
901
|
-
},
|
|
902
|
-
var
|
|
903
|
-
return
|
|
904
|
-
},
|
|
898
|
+
return u.link = function(e, t) {
|
|
899
|
+
var n = new u(t);
|
|
900
|
+
return n.link(e);
|
|
901
|
+
}, u.parse = function(e, t) {
|
|
902
|
+
var n = new u(t);
|
|
903
|
+
return n.parse(e);
|
|
904
|
+
}, u.prototype.normalizeUrlsCfg = function(e) {
|
|
905
905
|
return e == null && (e = !0), typeof e == "boolean" ? { schemeMatches: e, wwwMatches: e, tldMatches: e } : {
|
|
906
906
|
schemeMatches: typeof e.schemeMatches == "boolean" ? e.schemeMatches : !0,
|
|
907
907
|
wwwMatches: typeof e.wwwMatches == "boolean" ? e.wwwMatches : !0,
|
|
908
908
|
tldMatches: typeof e.tldMatches == "boolean" ? e.tldMatches : !0
|
|
909
909
|
};
|
|
910
|
-
},
|
|
910
|
+
}, u.prototype.normalizeStripPrefixCfg = function(e) {
|
|
911
911
|
return e == null && (e = !0), typeof e == "boolean" ? { scheme: e, www: e } : {
|
|
912
912
|
scheme: typeof e.scheme == "boolean" ? e.scheme : !0,
|
|
913
913
|
www: typeof e.www == "boolean" ? e.www : !0
|
|
914
914
|
};
|
|
915
|
-
},
|
|
916
|
-
return typeof e == "number" ? { length: e, location: "end" } :
|
|
915
|
+
}, u.prototype.normalizeTruncateCfg = function(e) {
|
|
916
|
+
return typeof e == "number" ? { length: e, location: "end" } : Te(e || {}, {
|
|
917
917
|
length: Number.POSITIVE_INFINITY,
|
|
918
918
|
location: "end"
|
|
919
919
|
});
|
|
920
|
-
},
|
|
921
|
-
var t = this,
|
|
922
|
-
return
|
|
923
|
-
onOpenTag: function(
|
|
924
|
-
|
|
920
|
+
}, u.prototype.parse = function(e) {
|
|
921
|
+
var t = this, n = ["a", "style", "script"], i = 0, o = [];
|
|
922
|
+
return it(e, {
|
|
923
|
+
onOpenTag: function(s) {
|
|
924
|
+
n.indexOf(s) >= 0 && i++;
|
|
925
925
|
},
|
|
926
|
-
onText: function(
|
|
927
|
-
if (
|
|
928
|
-
var
|
|
929
|
-
|
|
926
|
+
onText: function(s, g) {
|
|
927
|
+
if (i === 0) {
|
|
928
|
+
var c = /( | |<|<|>|>|"|"|')/gi, h = Pe(s, c), l = g;
|
|
929
|
+
h.forEach(function(f, a) {
|
|
930
930
|
if (a % 2 === 0) {
|
|
931
|
-
var
|
|
932
|
-
|
|
931
|
+
var d = t.parseText(f, l);
|
|
932
|
+
o.push.apply(o, d);
|
|
933
933
|
}
|
|
934
|
-
|
|
934
|
+
l += f.length;
|
|
935
935
|
});
|
|
936
936
|
}
|
|
937
937
|
},
|
|
938
|
-
onCloseTag: function(
|
|
939
|
-
|
|
938
|
+
onCloseTag: function(s) {
|
|
939
|
+
n.indexOf(s) >= 0 && (i = Math.max(i - 1, 0));
|
|
940
940
|
},
|
|
941
|
-
onComment: function(
|
|
941
|
+
onComment: function(s) {
|
|
942
942
|
},
|
|
943
|
-
onDoctype: function(
|
|
943
|
+
onDoctype: function(s) {
|
|
944
944
|
}
|
|
945
945
|
// no need to process doctype nodes
|
|
946
|
-
}),
|
|
947
|
-
},
|
|
948
|
-
e.sort(function(
|
|
949
|
-
return
|
|
946
|
+
}), o = this.compactMatches(o), o = this.removeUnwantedMatches(o), o;
|
|
947
|
+
}, u.prototype.compactMatches = function(e) {
|
|
948
|
+
e.sort(function(c, h) {
|
|
949
|
+
return c.getOffset() - h.getOffset();
|
|
950
950
|
});
|
|
951
951
|
for (var t = 0; t < e.length - 1; ) {
|
|
952
|
-
var
|
|
952
|
+
var n = e[t], i = n.getOffset(), o = n.getMatchedText().length, s = i + o;
|
|
953
953
|
if (t + 1 < e.length) {
|
|
954
|
-
if (e[t + 1].getOffset() ===
|
|
955
|
-
var g = e[t + 1].getMatchedText().length >
|
|
954
|
+
if (e[t + 1].getOffset() === i) {
|
|
955
|
+
var g = e[t + 1].getMatchedText().length > o ? t : t + 1;
|
|
956
956
|
e.splice(g, 1);
|
|
957
957
|
continue;
|
|
958
958
|
}
|
|
959
|
-
if (e[t + 1].getOffset() <
|
|
959
|
+
if (e[t + 1].getOffset() < s) {
|
|
960
960
|
e.splice(t + 1, 1);
|
|
961
961
|
continue;
|
|
962
962
|
}
|
|
@@ -964,7 +964,7 @@ var N = (
|
|
|
964
964
|
t++;
|
|
965
965
|
}
|
|
966
966
|
return e;
|
|
967
|
-
},
|
|
967
|
+
}, u.prototype.removeUnwantedMatches = function(e) {
|
|
968
968
|
return this.hashtag || S(e, function(t) {
|
|
969
969
|
return t.getType() === "hashtag";
|
|
970
970
|
}), this.email || S(e, function(t) {
|
|
@@ -980,48 +980,48 @@ var N = (
|
|
|
980
980
|
}), this.urls.tldMatches || S(e, function(t) {
|
|
981
981
|
return t.getType() === "url" && t.getUrlMatchType() === "tld";
|
|
982
982
|
}), e;
|
|
983
|
-
},
|
|
983
|
+
}, u.prototype.parseText = function(e, t) {
|
|
984
984
|
t === void 0 && (t = 0), t = t || 0;
|
|
985
|
-
for (var
|
|
986
|
-
for (var g =
|
|
987
|
-
g[
|
|
988
|
-
|
|
985
|
+
for (var n = this.getMatchers(), i = [], o = 0, s = n.length; o < s; o++) {
|
|
986
|
+
for (var g = n[o].parseMatches(e), c = 0, h = g.length; c < h; c++)
|
|
987
|
+
g[c].setOffset(t + g[c].getOffset());
|
|
988
|
+
i.push.apply(i, g);
|
|
989
989
|
}
|
|
990
|
-
return
|
|
991
|
-
},
|
|
990
|
+
return i;
|
|
991
|
+
}, u.prototype.link = function(e) {
|
|
992
992
|
if (!e)
|
|
993
993
|
return "";
|
|
994
994
|
this.sanitizeHtml && (e = e.replace(/</g, "<").replace(/>/g, ">"));
|
|
995
|
-
for (var t = this.parse(e),
|
|
996
|
-
var g = t[
|
|
997
|
-
|
|
995
|
+
for (var t = this.parse(e), n = [], i = 0, o = 0, s = t.length; o < s; o++) {
|
|
996
|
+
var g = t[o];
|
|
997
|
+
n.push(e.substring(i, g.getOffset())), n.push(this.createMatchReturnVal(g)), i = g.getOffset() + g.getMatchedText().length;
|
|
998
998
|
}
|
|
999
|
-
return
|
|
1000
|
-
},
|
|
999
|
+
return n.push(e.substring(i)), n.join("");
|
|
1000
|
+
}, u.prototype.createMatchReturnVal = function(e) {
|
|
1001
1001
|
var t;
|
|
1002
1002
|
if (this.replaceFn && (t = this.replaceFn.call(this.context, e)), typeof t == "string")
|
|
1003
1003
|
return t;
|
|
1004
1004
|
if (t === !1)
|
|
1005
1005
|
return e.getMatchedText();
|
|
1006
|
-
if (t instanceof
|
|
1006
|
+
if (t instanceof X)
|
|
1007
1007
|
return t.toAnchorString();
|
|
1008
|
-
var
|
|
1009
|
-
return
|
|
1010
|
-
},
|
|
1008
|
+
var n = e.buildTag();
|
|
1009
|
+
return n.toAnchorString();
|
|
1010
|
+
}, u.prototype.getMatchers = function() {
|
|
1011
1011
|
if (this.matchers)
|
|
1012
1012
|
return this.matchers;
|
|
1013
1013
|
var e = this.getTagBuilder(), t = [
|
|
1014
|
-
new
|
|
1014
|
+
new oe({
|
|
1015
1015
|
tagBuilder: e,
|
|
1016
1016
|
serviceName: this.hashtag
|
|
1017
1017
|
}),
|
|
1018
|
-
new
|
|
1019
|
-
new
|
|
1020
|
-
new
|
|
1018
|
+
new re({ tagBuilder: e }),
|
|
1019
|
+
new le({ tagBuilder: e }),
|
|
1020
|
+
new ce({
|
|
1021
1021
|
tagBuilder: e,
|
|
1022
1022
|
serviceName: this.mention
|
|
1023
1023
|
}),
|
|
1024
|
-
new
|
|
1024
|
+
new ae({
|
|
1025
1025
|
tagBuilder: e,
|
|
1026
1026
|
stripPrefix: this.stripPrefix,
|
|
1027
1027
|
stripTrailingSlash: this.stripTrailingSlash,
|
|
@@ -1029,36 +1029,36 @@ var N = (
|
|
|
1029
1029
|
})
|
|
1030
1030
|
];
|
|
1031
1031
|
return this.matchers = t;
|
|
1032
|
-
},
|
|
1032
|
+
}, u.prototype.getTagBuilder = function() {
|
|
1033
1033
|
var e = this.tagBuilder;
|
|
1034
|
-
return e || (e = this.tagBuilder = new
|
|
1034
|
+
return e || (e = this.tagBuilder = new ne({
|
|
1035
1035
|
newWindow: this.newWindow,
|
|
1036
1036
|
truncate: this.truncate,
|
|
1037
1037
|
className: this.className
|
|
1038
1038
|
})), e;
|
|
1039
|
-
},
|
|
1040
|
-
Email:
|
|
1041
|
-
Hashtag:
|
|
1039
|
+
}, u.version = Me, u.AnchorTagBuilder = ne, u.HtmlTag = X, u.matcher = {
|
|
1040
|
+
Email: re,
|
|
1041
|
+
Hashtag: oe,
|
|
1042
1042
|
Matcher: H,
|
|
1043
|
-
Mention:
|
|
1044
|
-
Phone:
|
|
1045
|
-
Url:
|
|
1046
|
-
},
|
|
1047
|
-
Email:
|
|
1048
|
-
Hashtag:
|
|
1049
|
-
Match:
|
|
1050
|
-
Mention:
|
|
1051
|
-
Phone:
|
|
1052
|
-
Url:
|
|
1053
|
-
},
|
|
1043
|
+
Mention: ce,
|
|
1044
|
+
Phone: le,
|
|
1045
|
+
Url: ae
|
|
1046
|
+
}, u.match = {
|
|
1047
|
+
Email: fe,
|
|
1048
|
+
Hashtag: ge,
|
|
1049
|
+
Match: j,
|
|
1050
|
+
Mention: de,
|
|
1051
|
+
Phone: pe,
|
|
1052
|
+
Url: me
|
|
1053
|
+
}, u;
|
|
1054
1054
|
}()
|
|
1055
1055
|
);
|
|
1056
|
-
function
|
|
1057
|
-
return !!(
|
|
1056
|
+
function At(u) {
|
|
1057
|
+
return !!(u.startsWith("http") || u.startsWith("file://"));
|
|
1058
1058
|
}
|
|
1059
|
-
const
|
|
1060
|
-
function
|
|
1061
|
-
return
|
|
1059
|
+
const at = new rt();
|
|
1060
|
+
function ve(u) {
|
|
1061
|
+
return at.parse(u).map((t) => ({
|
|
1062
1062
|
indices: [
|
|
1063
1063
|
t.getOffset(),
|
|
1064
1064
|
t.getOffset() + t.getMatchedText().length
|
|
@@ -1066,65 +1066,101 @@ function at(n) {
|
|
|
1066
1066
|
url: t.getAnchorHref()
|
|
1067
1067
|
}));
|
|
1068
1068
|
}
|
|
1069
|
-
function*
|
|
1070
|
-
const e =
|
|
1071
|
-
e.forEach((
|
|
1072
|
-
|
|
1069
|
+
function* st(u) {
|
|
1070
|
+
const e = ve(u), t = [], n = {};
|
|
1071
|
+
e.forEach((i) => {
|
|
1072
|
+
const [o, s] = i.indices, g = u.lastIndexOf("[", o), c = u.lastIndexOf("](", o), h = u.indexOf(")", o);
|
|
1073
|
+
g !== -1 && c !== -1 && h !== -1 && g < o && c < o && h >= s ? (t.push(g, h + 1), n[g] = {
|
|
1074
|
+
text: u.substring(g + 1, c),
|
|
1075
|
+
url: i.url
|
|
1076
|
+
}) : (t.push(o, s), n[o] = {
|
|
1077
|
+
text: u.substring(o, s)
|
|
1078
|
+
});
|
|
1073
1079
|
});
|
|
1074
|
-
for (const [
|
|
1075
|
-
const
|
|
1076
|
-
|
|
1077
|
-
key:
|
|
1078
|
-
text:
|
|
1079
|
-
url:
|
|
1080
|
-
|
|
1080
|
+
for (const [i, o] of he(u, t)) {
|
|
1081
|
+
const s = n[i];
|
|
1082
|
+
s ? yield {
|
|
1083
|
+
key: i + s.text + s.url,
|
|
1084
|
+
text: s.text,
|
|
1085
|
+
url: s.url || "",
|
|
1086
|
+
index: i
|
|
1087
|
+
} : yield o;
|
|
1081
1088
|
}
|
|
1082
1089
|
}
|
|
1083
|
-
function
|
|
1084
|
-
|
|
1090
|
+
function* ot(u) {
|
|
1091
|
+
const e = ve(u), t = [], n = {};
|
|
1092
|
+
e.forEach((i) => {
|
|
1093
|
+
t.push(...i.indices), n[i.indices[0]] = i.url;
|
|
1094
|
+
});
|
|
1095
|
+
for (const [i, o] of he(u, t)) {
|
|
1096
|
+
const s = n[i];
|
|
1097
|
+
s ? yield {
|
|
1098
|
+
key: i + o + s,
|
|
1099
|
+
text: o,
|
|
1100
|
+
url: s,
|
|
1101
|
+
index: i
|
|
1102
|
+
} : yield o;
|
|
1103
|
+
}
|
|
1085
1104
|
}
|
|
1086
|
-
function
|
|
1087
|
-
return
|
|
1105
|
+
function _(u, e, t) {
|
|
1106
|
+
return /* @__PURE__ */ ee("a", { href: t, children: e }, u);
|
|
1088
1107
|
}
|
|
1089
|
-
function
|
|
1090
|
-
|
|
1091
|
-
for (const u of be(n)) {
|
|
1092
|
-
if (typeof u == "string") {
|
|
1093
|
-
t.push(u);
|
|
1094
|
-
continue;
|
|
1095
|
-
}
|
|
1096
|
-
t.push(e(u.key, u.text, u.url));
|
|
1097
|
-
}
|
|
1098
|
-
return t;
|
|
1108
|
+
function lt(u, e, t) {
|
|
1109
|
+
return `<a href="${t}">${e}</a>`;
|
|
1099
1110
|
}
|
|
1100
|
-
function
|
|
1101
|
-
const
|
|
1102
|
-
for (const
|
|
1103
|
-
if (typeof
|
|
1104
|
-
|
|
1111
|
+
function we(u, e, t) {
|
|
1112
|
+
const n = [], i = e || lt, o = t || ot;
|
|
1113
|
+
for (const s of o(u)) {
|
|
1114
|
+
if (typeof s == "string") {
|
|
1115
|
+
n.push(s);
|
|
1105
1116
|
continue;
|
|
1106
1117
|
}
|
|
1107
|
-
|
|
1118
|
+
n.push(i(s.key, s.text, s.url));
|
|
1108
1119
|
}
|
|
1109
|
-
return
|
|
1120
|
+
return n;
|
|
1121
|
+
}
|
|
1122
|
+
function ct(u, e = _) {
|
|
1123
|
+
return we(u, e);
|
|
1110
1124
|
}
|
|
1111
|
-
function
|
|
1125
|
+
function ht(u, e = _) {
|
|
1126
|
+
return we(u, e, st);
|
|
1127
|
+
}
|
|
1128
|
+
function ft(u) {
|
|
1112
1129
|
const {
|
|
1113
1130
|
text: e,
|
|
1114
|
-
replacer: t =
|
|
1115
|
-
|
|
1131
|
+
replacer: t = _,
|
|
1132
|
+
linkifyFn: n = ct
|
|
1133
|
+
} = u, i = ke.useMemo(() => n(e, t), [e, t, n]);
|
|
1116
1134
|
return (
|
|
1117
1135
|
// eslint-disable-next-line react/jsx-no-useless-fragment
|
|
1118
|
-
/* @__PURE__ */
|
|
1136
|
+
/* @__PURE__ */ ee(Ee, { children: i })
|
|
1137
|
+
);
|
|
1138
|
+
}
|
|
1139
|
+
function bt(u) {
|
|
1140
|
+
const {
|
|
1141
|
+
text: e,
|
|
1142
|
+
replacer: t = _,
|
|
1143
|
+
linkifyFn: n = ht
|
|
1144
|
+
} = u;
|
|
1145
|
+
return /* @__PURE__ */ ee(
|
|
1146
|
+
ft,
|
|
1147
|
+
{
|
|
1148
|
+
text: e,
|
|
1149
|
+
replacer: t,
|
|
1150
|
+
linkifyFn: n
|
|
1151
|
+
}
|
|
1119
1152
|
);
|
|
1120
1153
|
}
|
|
1121
1154
|
export {
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1155
|
+
ft as Linkify,
|
|
1156
|
+
bt as LinkifyWithMD,
|
|
1157
|
+
lt as defaultLinkReplacer,
|
|
1158
|
+
_ as defaultLinkReplacerx,
|
|
1159
|
+
At as isExternalUrl,
|
|
1160
|
+
we as linkify,
|
|
1161
|
+
ht as linkifyWithMD,
|
|
1162
|
+
ct as linkifyx,
|
|
1163
|
+
ot as matchLinkNodes,
|
|
1164
|
+
ve as matchLinks,
|
|
1165
|
+
st as matchMDLinkNodes
|
|
1130
1166
|
};
|