1 | /*
|
---|
2 | * text-segmentation 1.0.3 <https://github.com/niklasvh/text-segmentation>
|
---|
3 | * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
|
---|
4 | * Released under MIT License
|
---|
5 | */
|
---|
6 | (function (global, factory) {
|
---|
7 | typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
---|
8 | typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
---|
9 | (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['text-segmentation'] = {}));
|
---|
10 | }(this, (function (exports) { 'use strict';
|
---|
11 |
|
---|
12 | var base64 = 'AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAA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MAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKB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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=';
|
---|
13 |
|
---|
14 | /*
|
---|
15 | * utrie 1.0.2 <https://github.com/niklasvh/utrie>
|
---|
16 | * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
|
---|
17 | * Released under MIT License
|
---|
18 | */
|
---|
19 | var chars$1 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
|
---|
20 | // Use a lookup table to find the index.
|
---|
21 | var lookup$1 = typeof Uint8Array === 'undefined' ? [] : new Uint8Array(256);
|
---|
22 | for (var i$1 = 0; i$1 < chars$1.length; i$1++) {
|
---|
23 | lookup$1[chars$1.charCodeAt(i$1)] = i$1;
|
---|
24 | }
|
---|
25 | var decode = function (base64) {
|
---|
26 | var bufferLength = base64.length * 0.75, len = base64.length, i, p = 0, encoded1, encoded2, encoded3, encoded4;
|
---|
27 | if (base64[base64.length - 1] === '=') {
|
---|
28 | bufferLength--;
|
---|
29 | if (base64[base64.length - 2] === '=') {
|
---|
30 | bufferLength--;
|
---|
31 | }
|
---|
32 | }
|
---|
33 | var buffer = typeof ArrayBuffer !== 'undefined' &&
|
---|
34 | typeof Uint8Array !== 'undefined' &&
|
---|
35 | typeof Uint8Array.prototype.slice !== 'undefined'
|
---|
36 | ? new ArrayBuffer(bufferLength)
|
---|
37 | : new Array(bufferLength);
|
---|
38 | var bytes = Array.isArray(buffer) ? buffer : new Uint8Array(buffer);
|
---|
39 | for (i = 0; i < len; i += 4) {
|
---|
40 | encoded1 = lookup$1[base64.charCodeAt(i)];
|
---|
41 | encoded2 = lookup$1[base64.charCodeAt(i + 1)];
|
---|
42 | encoded3 = lookup$1[base64.charCodeAt(i + 2)];
|
---|
43 | encoded4 = lookup$1[base64.charCodeAt(i + 3)];
|
---|
44 | bytes[p++] = (encoded1 << 2) | (encoded2 >> 4);
|
---|
45 | bytes[p++] = ((encoded2 & 15) << 4) | (encoded3 >> 2);
|
---|
46 | bytes[p++] = ((encoded3 & 3) << 6) | (encoded4 & 63);
|
---|
47 | }
|
---|
48 | return buffer;
|
---|
49 | };
|
---|
50 | var polyUint16Array = function (buffer) {
|
---|
51 | var length = buffer.length;
|
---|
52 | var bytes = [];
|
---|
53 | for (var i = 0; i < length; i += 2) {
|
---|
54 | bytes.push((buffer[i + 1] << 8) | buffer[i]);
|
---|
55 | }
|
---|
56 | return bytes;
|
---|
57 | };
|
---|
58 | var polyUint32Array = function (buffer) {
|
---|
59 | var length = buffer.length;
|
---|
60 | var bytes = [];
|
---|
61 | for (var i = 0; i < length; i += 4) {
|
---|
62 | bytes.push((buffer[i + 3] << 24) | (buffer[i + 2] << 16) | (buffer[i + 1] << 8) | buffer[i]);
|
---|
63 | }
|
---|
64 | return bytes;
|
---|
65 | };
|
---|
66 |
|
---|
67 | /** Shift size for getting the index-2 table offset. */
|
---|
68 | var UTRIE2_SHIFT_2 = 5;
|
---|
69 | /** Shift size for getting the index-1 table offset. */
|
---|
70 | var UTRIE2_SHIFT_1 = 6 + 5;
|
---|
71 | /**
|
---|
72 | * Shift size for shifting left the index array values.
|
---|
73 | * Increases possible data size with 16-bit index values at the cost
|
---|
74 | * of compactability.
|
---|
75 | * This requires data blocks to be aligned by UTRIE2_DATA_GRANULARITY.
|
---|
76 | */
|
---|
77 | var UTRIE2_INDEX_SHIFT = 2;
|
---|
78 | /**
|
---|
79 | * Difference between the two shift sizes,
|
---|
80 | * for getting an index-1 offset from an index-2 offset. 6=11-5
|
---|
81 | */
|
---|
82 | var UTRIE2_SHIFT_1_2 = UTRIE2_SHIFT_1 - UTRIE2_SHIFT_2;
|
---|
83 | /**
|
---|
84 | * The part of the index-2 table for U+D800..U+DBFF stores values for
|
---|
85 | * lead surrogate code _units_ not code _points_.
|
---|
86 | * Values for lead surrogate code _points_ are indexed with this portion of the table.
|
---|
87 | * Length=32=0x20=0x400>>UTRIE2_SHIFT_2. (There are 1024=0x400 lead surrogates.)
|
---|
88 | */
|
---|
89 | var UTRIE2_LSCP_INDEX_2_OFFSET = 0x10000 >> UTRIE2_SHIFT_2;
|
---|
90 | /** Number of entries in a data block. 32=0x20 */
|
---|
91 | var UTRIE2_DATA_BLOCK_LENGTH = 1 << UTRIE2_SHIFT_2;
|
---|
92 | /** Mask for getting the lower bits for the in-data-block offset. */
|
---|
93 | var UTRIE2_DATA_MASK = UTRIE2_DATA_BLOCK_LENGTH - 1;
|
---|
94 | var UTRIE2_LSCP_INDEX_2_LENGTH = 0x400 >> UTRIE2_SHIFT_2;
|
---|
95 | /** Count the lengths of both BMP pieces. 2080=0x820 */
|
---|
96 | var UTRIE2_INDEX_2_BMP_LENGTH = UTRIE2_LSCP_INDEX_2_OFFSET + UTRIE2_LSCP_INDEX_2_LENGTH;
|
---|
97 | /**
|
---|
98 | * The 2-byte UTF-8 version of the index-2 table follows at offset 2080=0x820.
|
---|
99 | * Length 32=0x20 for lead bytes C0..DF, regardless of UTRIE2_SHIFT_2.
|
---|
100 | */
|
---|
101 | var UTRIE2_UTF8_2B_INDEX_2_OFFSET = UTRIE2_INDEX_2_BMP_LENGTH;
|
---|
102 | var UTRIE2_UTF8_2B_INDEX_2_LENGTH = 0x800 >> 6; /* U+0800 is the first code point after 2-byte UTF-8 */
|
---|
103 | /**
|
---|
104 | * The index-1 table, only used for supplementary code points, at offset 2112=0x840.
|
---|
105 | * Variable length, for code points up to highStart, where the last single-value range starts.
|
---|
106 | * Maximum length 512=0x200=0x100000>>UTRIE2_SHIFT_1.
|
---|
107 | * (For 0x100000 supplementary code points U+10000..U+10ffff.)
|
---|
108 | *
|
---|
109 | * The part of the index-2 table for supplementary code points starts
|
---|
110 | * after this index-1 table.
|
---|
111 | *
|
---|
112 | * Both the index-1 table and the following part of the index-2 table
|
---|
113 | * are omitted completely if there is only BMP data.
|
---|
114 | */
|
---|
115 | var UTRIE2_INDEX_1_OFFSET = UTRIE2_UTF8_2B_INDEX_2_OFFSET + UTRIE2_UTF8_2B_INDEX_2_LENGTH;
|
---|
116 | /**
|
---|
117 | * Number of index-1 entries for the BMP. 32=0x20
|
---|
118 | * This part of the index-1 table is omitted from the serialized form.
|
---|
119 | */
|
---|
120 | var UTRIE2_OMITTED_BMP_INDEX_1_LENGTH = 0x10000 >> UTRIE2_SHIFT_1;
|
---|
121 | /** Number of entries in an index-2 block. 64=0x40 */
|
---|
122 | var UTRIE2_INDEX_2_BLOCK_LENGTH = 1 << UTRIE2_SHIFT_1_2;
|
---|
123 | /** Mask for getting the lower bits for the in-index-2-block offset. */
|
---|
124 | var UTRIE2_INDEX_2_MASK = UTRIE2_INDEX_2_BLOCK_LENGTH - 1;
|
---|
125 | var slice16 = function (view, start, end) {
|
---|
126 | if (view.slice) {
|
---|
127 | return view.slice(start, end);
|
---|
128 | }
|
---|
129 | return new Uint16Array(Array.prototype.slice.call(view, start, end));
|
---|
130 | };
|
---|
131 | var slice32 = function (view, start, end) {
|
---|
132 | if (view.slice) {
|
---|
133 | return view.slice(start, end);
|
---|
134 | }
|
---|
135 | return new Uint32Array(Array.prototype.slice.call(view, start, end));
|
---|
136 | };
|
---|
137 | var createTrieFromBase64 = function (base64, _byteLength) {
|
---|
138 | var buffer = decode(base64);
|
---|
139 | var view32 = Array.isArray(buffer) ? polyUint32Array(buffer) : new Uint32Array(buffer);
|
---|
140 | var view16 = Array.isArray(buffer) ? polyUint16Array(buffer) : new Uint16Array(buffer);
|
---|
141 | var headerLength = 24;
|
---|
142 | var index = slice16(view16, headerLength / 2, view32[4] / 2);
|
---|
143 | var data = view32[5] === 2
|
---|
144 | ? slice16(view16, (headerLength + view32[4]) / 2)
|
---|
145 | : slice32(view32, Math.ceil((headerLength + view32[4]) / 4));
|
---|
146 | return new Trie(view32[0], view32[1], view32[2], view32[3], index, data);
|
---|
147 | };
|
---|
148 | var Trie = /** @class */ (function () {
|
---|
149 | function Trie(initialValue, errorValue, highStart, highValueIndex, index, data) {
|
---|
150 | this.initialValue = initialValue;
|
---|
151 | this.errorValue = errorValue;
|
---|
152 | this.highStart = highStart;
|
---|
153 | this.highValueIndex = highValueIndex;
|
---|
154 | this.index = index;
|
---|
155 | this.data = data;
|
---|
156 | }
|
---|
157 | /**
|
---|
158 | * Get the value for a code point as stored in the Trie.
|
---|
159 | *
|
---|
160 | * @param codePoint the code point
|
---|
161 | * @return the value
|
---|
162 | */
|
---|
163 | Trie.prototype.get = function (codePoint) {
|
---|
164 | var ix;
|
---|
165 | if (codePoint >= 0) {
|
---|
166 | if (codePoint < 0x0d800 || (codePoint > 0x0dbff && codePoint <= 0x0ffff)) {
|
---|
167 | // Ordinary BMP code point, excluding leading surrogates.
|
---|
168 | // BMP uses a single level lookup. BMP index starts at offset 0 in the Trie2 index.
|
---|
169 | // 16 bit data is stored in the index array itself.
|
---|
170 | ix = this.index[codePoint >> UTRIE2_SHIFT_2];
|
---|
171 | ix = (ix << UTRIE2_INDEX_SHIFT) + (codePoint & UTRIE2_DATA_MASK);
|
---|
172 | return this.data[ix];
|
---|
173 | }
|
---|
174 | if (codePoint <= 0xffff) {
|
---|
175 | // Lead Surrogate Code Point. A Separate index section is stored for
|
---|
176 | // lead surrogate code units and code points.
|
---|
177 | // The main index has the code unit data.
|
---|
178 | // For this function, we need the code point data.
|
---|
179 | // Note: this expression could be refactored for slightly improved efficiency, but
|
---|
180 | // surrogate code points will be so rare in practice that it's not worth it.
|
---|
181 | ix = this.index[UTRIE2_LSCP_INDEX_2_OFFSET + ((codePoint - 0xd800) >> UTRIE2_SHIFT_2)];
|
---|
182 | ix = (ix << UTRIE2_INDEX_SHIFT) + (codePoint & UTRIE2_DATA_MASK);
|
---|
183 | return this.data[ix];
|
---|
184 | }
|
---|
185 | if (codePoint < this.highStart) {
|
---|
186 | // Supplemental code point, use two-level lookup.
|
---|
187 | ix = UTRIE2_INDEX_1_OFFSET - UTRIE2_OMITTED_BMP_INDEX_1_LENGTH + (codePoint >> UTRIE2_SHIFT_1);
|
---|
188 | ix = this.index[ix];
|
---|
189 | ix += (codePoint >> UTRIE2_SHIFT_2) & UTRIE2_INDEX_2_MASK;
|
---|
190 | ix = this.index[ix];
|
---|
191 | ix = (ix << UTRIE2_INDEX_SHIFT) + (codePoint & UTRIE2_DATA_MASK);
|
---|
192 | return this.data[ix];
|
---|
193 | }
|
---|
194 | if (codePoint <= 0x10ffff) {
|
---|
195 | return this.data[this.highValueIndex];
|
---|
196 | }
|
---|
197 | }
|
---|
198 | // Fall through. The code point is outside of the legal range of 0..0x10ffff.
|
---|
199 | return this.errorValue;
|
---|
200 | };
|
---|
201 | return Trie;
|
---|
202 | }());
|
---|
203 |
|
---|
204 | /*
|
---|
205 | * base64-arraybuffer 1.0.2 <https://github.com/niklasvh/base64-arraybuffer>
|
---|
206 | * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
|
---|
207 | * Released under MIT License
|
---|
208 | */
|
---|
209 | var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
|
---|
210 | // Use a lookup table to find the index.
|
---|
211 | var lookup = typeof Uint8Array === 'undefined' ? [] : new Uint8Array(256);
|
---|
212 | for (var i = 0; i < chars.length; i++) {
|
---|
213 | lookup[chars.charCodeAt(i)] = i;
|
---|
214 | }
|
---|
215 |
|
---|
216 | var Prepend = 1;
|
---|
217 | var CR = 2;
|
---|
218 | var LF = 3;
|
---|
219 | var Control = 4;
|
---|
220 | var Extend = 5;
|
---|
221 | var SpacingMark = 7;
|
---|
222 | var L = 8;
|
---|
223 | var V = 9;
|
---|
224 | var T = 10;
|
---|
225 | var LV = 11;
|
---|
226 | var LVT = 12;
|
---|
227 | var ZWJ = 13;
|
---|
228 | var Extended_Pictographic = 14;
|
---|
229 | var RI = 15;
|
---|
230 | var toCodePoints = function (str) {
|
---|
231 | var codePoints = [];
|
---|
232 | var i = 0;
|
---|
233 | var length = str.length;
|
---|
234 | while (i < length) {
|
---|
235 | var value = str.charCodeAt(i++);
|
---|
236 | if (value >= 0xd800 && value <= 0xdbff && i < length) {
|
---|
237 | var extra = str.charCodeAt(i++);
|
---|
238 | if ((extra & 0xfc00) === 0xdc00) {
|
---|
239 | codePoints.push(((value & 0x3ff) << 10) + (extra & 0x3ff) + 0x10000);
|
---|
240 | }
|
---|
241 | else {
|
---|
242 | codePoints.push(value);
|
---|
243 | i--;
|
---|
244 | }
|
---|
245 | }
|
---|
246 | else {
|
---|
247 | codePoints.push(value);
|
---|
248 | }
|
---|
249 | }
|
---|
250 | return codePoints;
|
---|
251 | };
|
---|
252 | var fromCodePoint = function () {
|
---|
253 | var codePoints = [];
|
---|
254 | for (var _i = 0; _i < arguments.length; _i++) {
|
---|
255 | codePoints[_i] = arguments[_i];
|
---|
256 | }
|
---|
257 | if (String.fromCodePoint) {
|
---|
258 | return String.fromCodePoint.apply(String, codePoints);
|
---|
259 | }
|
---|
260 | var length = codePoints.length;
|
---|
261 | if (!length) {
|
---|
262 | return '';
|
---|
263 | }
|
---|
264 | var codeUnits = [];
|
---|
265 | var index = -1;
|
---|
266 | var result = '';
|
---|
267 | while (++index < length) {
|
---|
268 | var codePoint = codePoints[index];
|
---|
269 | if (codePoint <= 0xffff) {
|
---|
270 | codeUnits.push(codePoint);
|
---|
271 | }
|
---|
272 | else {
|
---|
273 | codePoint -= 0x10000;
|
---|
274 | codeUnits.push((codePoint >> 10) + 0xd800, (codePoint % 0x400) + 0xdc00);
|
---|
275 | }
|
---|
276 | if (index + 1 === length || codeUnits.length > 0x4000) {
|
---|
277 | result += String.fromCharCode.apply(String, codeUnits);
|
---|
278 | codeUnits.length = 0;
|
---|
279 | }
|
---|
280 | }
|
---|
281 | return result;
|
---|
282 | };
|
---|
283 | var UnicodeTrie = createTrieFromBase64(base64);
|
---|
284 | var BREAK_NOT_ALLOWED = '×';
|
---|
285 | var BREAK_ALLOWED = '÷';
|
---|
286 | var codePointToClass = function (codePoint) { return UnicodeTrie.get(codePoint); };
|
---|
287 | var _graphemeBreakAtIndex = function (_codePoints, classTypes, index) {
|
---|
288 | var prevIndex = index - 2;
|
---|
289 | var prev = classTypes[prevIndex];
|
---|
290 | var current = classTypes[index - 1];
|
---|
291 | var next = classTypes[index];
|
---|
292 | // GB3 Do not break between a CR and LF
|
---|
293 | if (current === CR && next === LF) {
|
---|
294 | return BREAK_NOT_ALLOWED;
|
---|
295 | }
|
---|
296 | // GB4 Otherwise, break before and after controls.
|
---|
297 | if (current === CR || current === LF || current === Control) {
|
---|
298 | return BREAK_ALLOWED;
|
---|
299 | }
|
---|
300 | // GB5
|
---|
301 | if (next === CR || next === LF || next === Control) {
|
---|
302 | return BREAK_ALLOWED;
|
---|
303 | }
|
---|
304 | // Do not break Hangul syllable sequences.
|
---|
305 | // GB6
|
---|
306 | if (current === L && [L, V, LV, LVT].indexOf(next) !== -1) {
|
---|
307 | return BREAK_NOT_ALLOWED;
|
---|
308 | }
|
---|
309 | // GB7
|
---|
310 | if ((current === LV || current === V) && (next === V || next === T)) {
|
---|
311 | return BREAK_NOT_ALLOWED;
|
---|
312 | }
|
---|
313 | // GB8
|
---|
314 | if ((current === LVT || current === T) && next === T) {
|
---|
315 | return BREAK_NOT_ALLOWED;
|
---|
316 | }
|
---|
317 | // GB9 Do not break before extending characters or ZWJ.
|
---|
318 | if (next === ZWJ || next === Extend) {
|
---|
319 | return BREAK_NOT_ALLOWED;
|
---|
320 | }
|
---|
321 | // Do not break before SpacingMarks, or after Prepend characters.
|
---|
322 | // GB9a
|
---|
323 | if (next === SpacingMark) {
|
---|
324 | return BREAK_NOT_ALLOWED;
|
---|
325 | }
|
---|
326 | // GB9a
|
---|
327 | if (current === Prepend) {
|
---|
328 | return BREAK_NOT_ALLOWED;
|
---|
329 | }
|
---|
330 | // GB11 Do not break within emoji modifier sequences or emoji zwj sequences.
|
---|
331 | if (current === ZWJ && next === Extended_Pictographic) {
|
---|
332 | while (prev === Extend) {
|
---|
333 | prev = classTypes[--prevIndex];
|
---|
334 | }
|
---|
335 | if (prev === Extended_Pictographic) {
|
---|
336 | return BREAK_NOT_ALLOWED;
|
---|
337 | }
|
---|
338 | }
|
---|
339 | // GB12 Do not break within emoji flag sequences.
|
---|
340 | // That is, do not break between regional indicator (RI) symbols
|
---|
341 | // if there is an odd number of RI characters before the break point.
|
---|
342 | if (current === RI && next === RI) {
|
---|
343 | var countRI = 0;
|
---|
344 | while (prev === RI) {
|
---|
345 | countRI++;
|
---|
346 | prev = classTypes[--prevIndex];
|
---|
347 | }
|
---|
348 | if (countRI % 2 === 0) {
|
---|
349 | return BREAK_NOT_ALLOWED;
|
---|
350 | }
|
---|
351 | }
|
---|
352 | return BREAK_ALLOWED;
|
---|
353 | };
|
---|
354 | var GraphemeBreaker = function (str) {
|
---|
355 | var codePoints = toCodePoints(str);
|
---|
356 | var length = codePoints.length;
|
---|
357 | var index = 0;
|
---|
358 | var lastEnd = 0;
|
---|
359 | var classTypes = codePoints.map(codePointToClass);
|
---|
360 | return {
|
---|
361 | next: function () {
|
---|
362 | if (index >= length) {
|
---|
363 | return { done: true, value: null };
|
---|
364 | }
|
---|
365 | var graphemeBreak = BREAK_NOT_ALLOWED;
|
---|
366 | while (index < length &&
|
---|
367 | (graphemeBreak = _graphemeBreakAtIndex(codePoints, classTypes, ++index)) === BREAK_NOT_ALLOWED) { }
|
---|
368 | if (graphemeBreak !== BREAK_NOT_ALLOWED || index === length) {
|
---|
369 | var value = fromCodePoint.apply(null, codePoints.slice(lastEnd, index));
|
---|
370 | lastEnd = index;
|
---|
371 | return { value: value, done: false };
|
---|
372 | }
|
---|
373 | return { done: true, value: null };
|
---|
374 | },
|
---|
375 | };
|
---|
376 | };
|
---|
377 | var splitGraphemes = function (str) {
|
---|
378 | var breaker = GraphemeBreaker(str);
|
---|
379 | var graphemes = [];
|
---|
380 | var bk;
|
---|
381 | while (!(bk = breaker.next()).done) {
|
---|
382 | if (bk.value) {
|
---|
383 | graphemes.push(bk.value.slice());
|
---|
384 | }
|
---|
385 | }
|
---|
386 | return graphemes;
|
---|
387 | };
|
---|
388 |
|
---|
389 | exports.GraphemeBreaker = GraphemeBreaker;
|
---|
390 | exports.fromCodePoint = fromCodePoint;
|
---|
391 | exports.splitGraphemes = splitGraphemes;
|
---|
392 | exports.toCodePoints = toCodePoints;
|
---|
393 |
|
---|
394 | Object.defineProperty(exports, '__esModule', { value: true });
|
---|
395 |
|
---|
396 | })));
|
---|
397 | //# sourceMappingURL=text-segmentation.umd.js.map
|
---|