@tiptap/extension-typography 2.11.7 → 3.0.0-beta.1
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/LICENSE.md +21 -0
- package/README.md +5 -1
- package/dist/index.cjs +264 -219
- package/dist/index.cjs.map +1 -1
- package/dist/{typography.d.ts → index.d.cts} +28 -25
- package/dist/index.d.ts +144 -4
- package/dist/index.js +217 -194
- package/dist/index.js.map +1 -1
- package/package.json +10 -8
- package/src/typography.ts +153 -131
- package/dist/index.d.ts.map +0 -1
- package/dist/index.umd.js +0 -227
- package/dist/index.umd.js.map +0 -1
- package/dist/typography.d.ts.map +0 -1
package/dist/index.umd.js
DELETED
|
@@ -1,227 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@tiptap/core')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', '@tiptap/core'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@tiptap/extension-typography"] = {}, global.core));
|
|
5
|
-
})(this, (function (exports, core) { 'use strict';
|
|
6
|
-
|
|
7
|
-
const emDash = (override) => core.textInputRule({
|
|
8
|
-
find: /--$/,
|
|
9
|
-
replace: override !== null && override !== void 0 ? override : '—',
|
|
10
|
-
});
|
|
11
|
-
const ellipsis = (override) => core.textInputRule({
|
|
12
|
-
find: /\.\.\.$/,
|
|
13
|
-
replace: override !== null && override !== void 0 ? override : '…',
|
|
14
|
-
});
|
|
15
|
-
const openDoubleQuote = (override) => core.textInputRule({
|
|
16
|
-
find: /(?:^|[\s{[(<'"\u2018\u201C])(")$/,
|
|
17
|
-
replace: override !== null && override !== void 0 ? override : '“',
|
|
18
|
-
});
|
|
19
|
-
const closeDoubleQuote = (override) => core.textInputRule({
|
|
20
|
-
find: /"$/,
|
|
21
|
-
replace: override !== null && override !== void 0 ? override : '”',
|
|
22
|
-
});
|
|
23
|
-
const openSingleQuote = (override) => core.textInputRule({
|
|
24
|
-
find: /(?:^|[\s{[(<'"\u2018\u201C])(')$/,
|
|
25
|
-
replace: override !== null && override !== void 0 ? override : '‘',
|
|
26
|
-
});
|
|
27
|
-
const closeSingleQuote = (override) => core.textInputRule({
|
|
28
|
-
find: /'$/,
|
|
29
|
-
replace: override !== null && override !== void 0 ? override : '’',
|
|
30
|
-
});
|
|
31
|
-
const leftArrow = (override) => core.textInputRule({
|
|
32
|
-
find: /<-$/,
|
|
33
|
-
replace: override !== null && override !== void 0 ? override : '←',
|
|
34
|
-
});
|
|
35
|
-
const rightArrow = (override) => core.textInputRule({
|
|
36
|
-
find: /->$/,
|
|
37
|
-
replace: override !== null && override !== void 0 ? override : '→',
|
|
38
|
-
});
|
|
39
|
-
const copyright = (override) => core.textInputRule({
|
|
40
|
-
find: /\(c\)$/,
|
|
41
|
-
replace: override !== null && override !== void 0 ? override : '©',
|
|
42
|
-
});
|
|
43
|
-
const trademark = (override) => core.textInputRule({
|
|
44
|
-
find: /\(tm\)$/,
|
|
45
|
-
replace: override !== null && override !== void 0 ? override : '™',
|
|
46
|
-
});
|
|
47
|
-
const servicemark = (override) => core.textInputRule({
|
|
48
|
-
find: /\(sm\)$/,
|
|
49
|
-
replace: override !== null && override !== void 0 ? override : '℠',
|
|
50
|
-
});
|
|
51
|
-
const registeredTrademark = (override) => core.textInputRule({
|
|
52
|
-
find: /\(r\)$/,
|
|
53
|
-
replace: override !== null && override !== void 0 ? override : '®',
|
|
54
|
-
});
|
|
55
|
-
const oneHalf = (override) => core.textInputRule({
|
|
56
|
-
find: /(?:^|\s)(1\/2)\s$/,
|
|
57
|
-
replace: override !== null && override !== void 0 ? override : '½',
|
|
58
|
-
});
|
|
59
|
-
const plusMinus = (override) => core.textInputRule({
|
|
60
|
-
find: /\+\/-$/,
|
|
61
|
-
replace: override !== null && override !== void 0 ? override : '±',
|
|
62
|
-
});
|
|
63
|
-
const notEqual = (override) => core.textInputRule({
|
|
64
|
-
find: /!=$/,
|
|
65
|
-
replace: override !== null && override !== void 0 ? override : '≠',
|
|
66
|
-
});
|
|
67
|
-
const laquo = (override) => core.textInputRule({
|
|
68
|
-
find: /<<$/,
|
|
69
|
-
replace: override !== null && override !== void 0 ? override : '«',
|
|
70
|
-
});
|
|
71
|
-
const raquo = (override) => core.textInputRule({
|
|
72
|
-
find: />>$/,
|
|
73
|
-
replace: override !== null && override !== void 0 ? override : '»',
|
|
74
|
-
});
|
|
75
|
-
const multiplication = (override) => core.textInputRule({
|
|
76
|
-
find: /\d+\s?([*x])\s?\d+$/,
|
|
77
|
-
replace: override !== null && override !== void 0 ? override : '×',
|
|
78
|
-
});
|
|
79
|
-
const superscriptTwo = (override) => core.textInputRule({
|
|
80
|
-
find: /\^2$/,
|
|
81
|
-
replace: override !== null && override !== void 0 ? override : '²',
|
|
82
|
-
});
|
|
83
|
-
const superscriptThree = (override) => core.textInputRule({
|
|
84
|
-
find: /\^3$/,
|
|
85
|
-
replace: override !== null && override !== void 0 ? override : '³',
|
|
86
|
-
});
|
|
87
|
-
const oneQuarter = (override) => core.textInputRule({
|
|
88
|
-
find: /(?:^|\s)(1\/4)\s$/,
|
|
89
|
-
replace: override !== null && override !== void 0 ? override : '¼',
|
|
90
|
-
});
|
|
91
|
-
const threeQuarters = (override) => core.textInputRule({
|
|
92
|
-
find: /(?:^|\s)(3\/4)\s$/,
|
|
93
|
-
replace: override !== null && override !== void 0 ? override : '¾',
|
|
94
|
-
});
|
|
95
|
-
/**
|
|
96
|
-
* This extension allows you to add typography replacements for specific characters.
|
|
97
|
-
* @see https://www.tiptap.dev/api/extensions/typography
|
|
98
|
-
*/
|
|
99
|
-
const Typography = core.Extension.create({
|
|
100
|
-
name: 'typography',
|
|
101
|
-
addOptions() {
|
|
102
|
-
return {
|
|
103
|
-
closeDoubleQuote: '”',
|
|
104
|
-
closeSingleQuote: '’',
|
|
105
|
-
copyright: '©',
|
|
106
|
-
ellipsis: '…',
|
|
107
|
-
emDash: '—',
|
|
108
|
-
laquo: '«',
|
|
109
|
-
leftArrow: '←',
|
|
110
|
-
multiplication: '×',
|
|
111
|
-
notEqual: '≠',
|
|
112
|
-
oneHalf: '½',
|
|
113
|
-
oneQuarter: '¼',
|
|
114
|
-
openDoubleQuote: '“',
|
|
115
|
-
openSingleQuote: '‘',
|
|
116
|
-
plusMinus: '±',
|
|
117
|
-
raquo: '»',
|
|
118
|
-
registeredTrademark: '®',
|
|
119
|
-
rightArrow: '→',
|
|
120
|
-
servicemark: '℠',
|
|
121
|
-
superscriptThree: '³',
|
|
122
|
-
superscriptTwo: '²',
|
|
123
|
-
threeQuarters: '¾',
|
|
124
|
-
trademark: '™',
|
|
125
|
-
};
|
|
126
|
-
},
|
|
127
|
-
addInputRules() {
|
|
128
|
-
const rules = [];
|
|
129
|
-
if (this.options.emDash !== false) {
|
|
130
|
-
rules.push(emDash(this.options.emDash));
|
|
131
|
-
}
|
|
132
|
-
if (this.options.ellipsis !== false) {
|
|
133
|
-
rules.push(ellipsis(this.options.ellipsis));
|
|
134
|
-
}
|
|
135
|
-
if (this.options.openDoubleQuote !== false) {
|
|
136
|
-
rules.push(openDoubleQuote(this.options.openDoubleQuote));
|
|
137
|
-
}
|
|
138
|
-
if (this.options.closeDoubleQuote !== false) {
|
|
139
|
-
rules.push(closeDoubleQuote(this.options.closeDoubleQuote));
|
|
140
|
-
}
|
|
141
|
-
if (this.options.openSingleQuote !== false) {
|
|
142
|
-
rules.push(openSingleQuote(this.options.openSingleQuote));
|
|
143
|
-
}
|
|
144
|
-
if (this.options.closeSingleQuote !== false) {
|
|
145
|
-
rules.push(closeSingleQuote(this.options.closeSingleQuote));
|
|
146
|
-
}
|
|
147
|
-
if (this.options.leftArrow !== false) {
|
|
148
|
-
rules.push(leftArrow(this.options.leftArrow));
|
|
149
|
-
}
|
|
150
|
-
if (this.options.rightArrow !== false) {
|
|
151
|
-
rules.push(rightArrow(this.options.rightArrow));
|
|
152
|
-
}
|
|
153
|
-
if (this.options.copyright !== false) {
|
|
154
|
-
rules.push(copyright(this.options.copyright));
|
|
155
|
-
}
|
|
156
|
-
if (this.options.trademark !== false) {
|
|
157
|
-
rules.push(trademark(this.options.trademark));
|
|
158
|
-
}
|
|
159
|
-
if (this.options.servicemark !== false) {
|
|
160
|
-
rules.push(servicemark(this.options.servicemark));
|
|
161
|
-
}
|
|
162
|
-
if (this.options.registeredTrademark !== false) {
|
|
163
|
-
rules.push(registeredTrademark(this.options.registeredTrademark));
|
|
164
|
-
}
|
|
165
|
-
if (this.options.oneHalf !== false) {
|
|
166
|
-
rules.push(oneHalf(this.options.oneHalf));
|
|
167
|
-
}
|
|
168
|
-
if (this.options.plusMinus !== false) {
|
|
169
|
-
rules.push(plusMinus(this.options.plusMinus));
|
|
170
|
-
}
|
|
171
|
-
if (this.options.notEqual !== false) {
|
|
172
|
-
rules.push(notEqual(this.options.notEqual));
|
|
173
|
-
}
|
|
174
|
-
if (this.options.laquo !== false) {
|
|
175
|
-
rules.push(laquo(this.options.laquo));
|
|
176
|
-
}
|
|
177
|
-
if (this.options.raquo !== false) {
|
|
178
|
-
rules.push(raquo(this.options.raquo));
|
|
179
|
-
}
|
|
180
|
-
if (this.options.multiplication !== false) {
|
|
181
|
-
rules.push(multiplication(this.options.multiplication));
|
|
182
|
-
}
|
|
183
|
-
if (this.options.superscriptTwo !== false) {
|
|
184
|
-
rules.push(superscriptTwo(this.options.superscriptTwo));
|
|
185
|
-
}
|
|
186
|
-
if (this.options.superscriptThree !== false) {
|
|
187
|
-
rules.push(superscriptThree(this.options.superscriptThree));
|
|
188
|
-
}
|
|
189
|
-
if (this.options.oneQuarter !== false) {
|
|
190
|
-
rules.push(oneQuarter(this.options.oneQuarter));
|
|
191
|
-
}
|
|
192
|
-
if (this.options.threeQuarters !== false) {
|
|
193
|
-
rules.push(threeQuarters(this.options.threeQuarters));
|
|
194
|
-
}
|
|
195
|
-
return rules;
|
|
196
|
-
},
|
|
197
|
-
});
|
|
198
|
-
|
|
199
|
-
exports.Typography = Typography;
|
|
200
|
-
exports.closeDoubleQuote = closeDoubleQuote;
|
|
201
|
-
exports.closeSingleQuote = closeSingleQuote;
|
|
202
|
-
exports.copyright = copyright;
|
|
203
|
-
exports.default = Typography;
|
|
204
|
-
exports.ellipsis = ellipsis;
|
|
205
|
-
exports.emDash = emDash;
|
|
206
|
-
exports.laquo = laquo;
|
|
207
|
-
exports.leftArrow = leftArrow;
|
|
208
|
-
exports.multiplication = multiplication;
|
|
209
|
-
exports.notEqual = notEqual;
|
|
210
|
-
exports.oneHalf = oneHalf;
|
|
211
|
-
exports.oneQuarter = oneQuarter;
|
|
212
|
-
exports.openDoubleQuote = openDoubleQuote;
|
|
213
|
-
exports.openSingleQuote = openSingleQuote;
|
|
214
|
-
exports.plusMinus = plusMinus;
|
|
215
|
-
exports.raquo = raquo;
|
|
216
|
-
exports.registeredTrademark = registeredTrademark;
|
|
217
|
-
exports.rightArrow = rightArrow;
|
|
218
|
-
exports.servicemark = servicemark;
|
|
219
|
-
exports.superscriptThree = superscriptThree;
|
|
220
|
-
exports.superscriptTwo = superscriptTwo;
|
|
221
|
-
exports.threeQuarters = threeQuarters;
|
|
222
|
-
exports.trademark = trademark;
|
|
223
|
-
|
|
224
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
225
|
-
|
|
226
|
-
}));
|
|
227
|
-
//# sourceMappingURL=index.umd.js.map
|
package/dist/index.umd.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.umd.js","sources":["../src/typography.ts"],"sourcesContent":["import { Extension, textInputRule } from '@tiptap/core'\n\nexport interface TypographyOptions {\n /**\n * The em dash character.\n * @default '—'\n */\n emDash: false | string,\n\n /**\n * The ellipsis character.\n * @default '…'\n */\n ellipsis: false | string,\n\n /**\n * The open double quote character.\n * @default '“'\n */\n openDoubleQuote: false | string,\n\n /**\n * The close double quote character.\n * @default '”'\n */\n closeDoubleQuote: false | string,\n\n /**\n * The open single quote character.\n * @default '‘'\n */\n openSingleQuote: false | string,\n\n /**\n * The close single quote character.\n * @default '’'\n */\n closeSingleQuote: false | string,\n\n /**\n * The left arrow character.\n * @default '←'\n */\n leftArrow: false | string,\n\n /**\n * The right arrow character.\n * @default '→'\n */\n rightArrow: false | string,\n\n /**\n * The copyright character.\n * @default '©'\n */\n copyright: false | string,\n\n /**\n * The trademark character.\n * @default '™'\n */\n trademark: false | string,\n\n /**\n * The servicemark character.\n * @default '℠'\n */\n servicemark: false | string,\n\n /**\n * The registered trademark character.\n * @default '®'\n */\n registeredTrademark: false | string,\n\n /**\n * The one half character.\n * @default '½'\n */\n oneHalf: false | string,\n\n /**\n * The plus minus character.\n * @default '±'\n */\n plusMinus: false | string,\n\n /**\n * The not equal character.\n * @default '≠'\n */\n notEqual: false | string,\n\n /**\n * The laquo character.\n * @default '«'\n */\n laquo: false | string,\n\n /**\n * The raquo character.\n * @default '»'\n */\n raquo: false | string,\n\n /**\n * The multiplication character.\n * @default '×'\n */\n multiplication: false | string,\n\n /**\n * The superscript two character.\n * @default '²'\n */\n superscriptTwo: false | string,\n\n /**\n * The superscript three character.\n * @default '³'\n */\n superscriptThree: false | string,\n\n /**\n * The one quarter character.\n * @default '¼'\n */\n oneQuarter: false | string,\n\n /**\n * The three quarters character.\n * @default '¾'\n */\n threeQuarters: false | string,\n}\n\nexport const emDash = (override?: string) => textInputRule({\n find: /--$/,\n replace: override ?? '—',\n})\n\nexport const ellipsis = (override?: string) => textInputRule({\n find: /\\.\\.\\.$/,\n replace: override ?? '…',\n})\n\nexport const openDoubleQuote = (override?: string) => textInputRule({\n find: /(?:^|[\\s{[(<'\"\\u2018\\u201C])(\")$/,\n replace: override ?? '“',\n})\n\nexport const closeDoubleQuote = (override?: string) => textInputRule({\n find: /\"$/,\n replace: override ?? '”',\n})\n\nexport const openSingleQuote = (override?: string) => textInputRule({\n find: /(?:^|[\\s{[(<'\"\\u2018\\u201C])(')$/,\n replace: override ?? '‘',\n})\n\nexport const closeSingleQuote = (override?: string) => textInputRule({\n find: /'$/,\n replace: override ?? '’',\n})\n\nexport const leftArrow = (override?: string) => textInputRule({\n find: /<-$/,\n replace: override ?? '←',\n})\n\nexport const rightArrow = (override?: string) => textInputRule({\n find: /->$/,\n replace: override ?? '→',\n})\n\nexport const copyright = (override?: string) => textInputRule({\n find: /\\(c\\)$/,\n replace: override ?? '©',\n})\n\nexport const trademark = (override?: string) => textInputRule({\n find: /\\(tm\\)$/,\n replace: override ?? '™',\n})\n\nexport const servicemark = (override?: string) => textInputRule({\n find: /\\(sm\\)$/,\n replace: override ?? '℠',\n})\n\nexport const registeredTrademark = (override?: string) => textInputRule({\n find: /\\(r\\)$/,\n replace: override ?? '®',\n})\n\nexport const oneHalf = (override?: string) => textInputRule({\n find: /(?:^|\\s)(1\\/2)\\s$/,\n replace: override ?? '½',\n})\n\nexport const plusMinus = (override?: string) => textInputRule({\n find: /\\+\\/-$/,\n replace: override ?? '±',\n})\n\nexport const notEqual = (override?: string) => textInputRule({\n find: /!=$/,\n replace: override ?? '≠',\n})\n\nexport const laquo = (override?: string) => textInputRule({\n find: /<<$/,\n replace: override ?? '«',\n})\n\nexport const raquo = (override?: string) => textInputRule({\n find: />>$/,\n replace: override ?? '»',\n})\n\nexport const multiplication = (override?: string) => textInputRule({\n find: /\\d+\\s?([*x])\\s?\\d+$/,\n replace: override ?? '×',\n})\n\nexport const superscriptTwo = (override?: string) => textInputRule({\n find: /\\^2$/,\n replace: override ?? '²',\n})\n\nexport const superscriptThree = (override?: string) => textInputRule({\n find: /\\^3$/,\n replace: override ?? '³',\n})\n\nexport const oneQuarter = (override?: string) => textInputRule({\n find: /(?:^|\\s)(1\\/4)\\s$/,\n replace: override ?? '¼',\n})\n\nexport const threeQuarters = (override?: string) => textInputRule({\n find: /(?:^|\\s)(3\\/4)\\s$/,\n replace: override ?? '¾',\n})\n\n/**\n * This extension allows you to add typography replacements for specific characters.\n * @see https://www.tiptap.dev/api/extensions/typography\n */\nexport const Typography = Extension.create<TypographyOptions>({\n name: 'typography',\n\n addOptions() {\n return {\n closeDoubleQuote: '”',\n closeSingleQuote: '’',\n copyright: '©',\n ellipsis: '…',\n emDash: '—',\n laquo: '«',\n leftArrow: '←',\n multiplication: '×',\n notEqual: '≠',\n oneHalf: '½',\n oneQuarter: '¼',\n openDoubleQuote: '“',\n openSingleQuote: '‘',\n plusMinus: '±',\n raquo: '»',\n registeredTrademark: '®',\n rightArrow: '→',\n servicemark: '℠',\n superscriptThree: '³',\n superscriptTwo: '²',\n threeQuarters: '¾',\n trademark: '™',\n }\n },\n\n addInputRules() {\n const rules = []\n\n if (this.options.emDash !== false) {\n rules.push(emDash(this.options.emDash))\n }\n\n if (this.options.ellipsis !== false) {\n rules.push(ellipsis(this.options.ellipsis))\n }\n\n if (this.options.openDoubleQuote !== false) {\n rules.push(openDoubleQuote(this.options.openDoubleQuote))\n }\n\n if (this.options.closeDoubleQuote !== false) {\n rules.push(closeDoubleQuote(this.options.closeDoubleQuote))\n }\n\n if (this.options.openSingleQuote !== false) {\n rules.push(openSingleQuote(this.options.openSingleQuote))\n }\n\n if (this.options.closeSingleQuote !== false) {\n rules.push(closeSingleQuote(this.options.closeSingleQuote))\n }\n\n if (this.options.leftArrow !== false) {\n rules.push(leftArrow(this.options.leftArrow))\n }\n\n if (this.options.rightArrow !== false) {\n rules.push(rightArrow(this.options.rightArrow))\n }\n\n if (this.options.copyright !== false) {\n rules.push(copyright(this.options.copyright))\n }\n\n if (this.options.trademark !== false) {\n rules.push(trademark(this.options.trademark))\n }\n\n if (this.options.servicemark !== false) {\n rules.push(servicemark(this.options.servicemark))\n }\n\n if (this.options.registeredTrademark !== false) {\n rules.push(registeredTrademark(this.options.registeredTrademark))\n }\n\n if (this.options.oneHalf !== false) {\n rules.push(oneHalf(this.options.oneHalf))\n }\n\n if (this.options.plusMinus !== false) {\n rules.push(plusMinus(this.options.plusMinus))\n }\n\n if (this.options.notEqual !== false) {\n rules.push(notEqual(this.options.notEqual))\n }\n\n if (this.options.laquo !== false) {\n rules.push(laquo(this.options.laquo))\n }\n\n if (this.options.raquo !== false) {\n rules.push(raquo(this.options.raquo))\n }\n\n if (this.options.multiplication !== false) {\n rules.push(multiplication(this.options.multiplication))\n }\n\n if (this.options.superscriptTwo !== false) {\n rules.push(superscriptTwo(this.options.superscriptTwo))\n }\n\n if (this.options.superscriptThree !== false) {\n rules.push(superscriptThree(this.options.superscriptThree))\n }\n\n if (this.options.oneQuarter !== false) {\n rules.push(oneQuarter(this.options.oneQuarter))\n }\n\n if (this.options.threeQuarters !== false) {\n rules.push(threeQuarters(this.options.threeQuarters))\n }\n\n return rules\n },\n})\n"],"names":["textInputRule","Extension"],"mappings":";;;;;;AAwIa,QAAA,MAAM,GAAG,CAAC,QAAiB,KAAKA,kBAAa,CAAC;EACzD,IAAA,IAAI,EAAE,KAAK;EACX,IAAA,OAAO,EAAE,QAAQ,KAAA,IAAA,IAAR,QAAQ,KAAR,KAAA,CAAA,GAAA,QAAQ,GAAI,GAAG;EACzB,CAAA;AAEY,QAAA,QAAQ,GAAG,CAAC,QAAiB,KAAKA,kBAAa,CAAC;EAC3D,IAAA,IAAI,EAAE,SAAS;EACf,IAAA,OAAO,EAAE,QAAQ,KAAA,IAAA,IAAR,QAAQ,KAAR,KAAA,CAAA,GAAA,QAAQ,GAAI,GAAG;EACzB,CAAA;AAEY,QAAA,eAAe,GAAG,CAAC,QAAiB,KAAKA,kBAAa,CAAC;EAClE,IAAA,IAAI,EAAE,kCAAkC;EACxC,IAAA,OAAO,EAAE,QAAQ,KAAA,IAAA,IAAR,QAAQ,KAAR,KAAA,CAAA,GAAA,QAAQ,GAAI,GAAG;EACzB,CAAA;AAEY,QAAA,gBAAgB,GAAG,CAAC,QAAiB,KAAKA,kBAAa,CAAC;EACnE,IAAA,IAAI,EAAE,IAAI;EACV,IAAA,OAAO,EAAE,QAAQ,KAAA,IAAA,IAAR,QAAQ,KAAR,KAAA,CAAA,GAAA,QAAQ,GAAI,GAAG;EACzB,CAAA;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