biso24-editor 1.3.0 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/CKEditor4/CHANGES.md +2182 -2182
  2. package/CKEditor4/LICENSE.md +1436 -1436
  3. package/CKEditor4/README.md +39 -39
  4. package/CKEditor4/SECURITY.md +10 -10
  5. package/CKEditor4/adapters/jquery.js +158 -158
  6. package/CKEditor4/bender-runner.config.json +16 -16
  7. package/CKEditor4/build-config.js +100 -100
  8. package/CKEditor4/ckeditor.js +30065 -30065
  9. package/CKEditor4/config.js +39 -39
  10. package/CKEditor4/contents.css +161 -161
  11. package/CKEditor4/lang/vi.js +475 -475
  12. package/CKEditor4/plugins/a11yhelp/dialogs/a11yhelp.js +143 -143
  13. package/CKEditor4/plugins/a11yhelp/dialogs/lang/vi.js +122 -122
  14. package/CKEditor4/plugins/custompaste/plugin.js +57 -57
  15. package/CKEditor4/plugins/dialog/dialogDefinition.js +4 -4
  16. package/CKEditor4/plugins/dialog/styles/dialog.css +18 -18
  17. package/CKEditor4/plugins/font/lang/vi.js +14 -14
  18. package/CKEditor4/plugins/font/plugin.js +535 -535
  19. package/CKEditor4/plugins/image2/dialogs/image2.js +558 -558
  20. package/CKEditor4/plugins/image2/lang/vi.js +21 -21
  21. package/CKEditor4/plugins/image2/plugin.js +1716 -1708
  22. package/CKEditor4/plugins/justify/plugin.js +266 -266
  23. package/CKEditor4/plugins/justify_group/plugin.js +64 -64
  24. package/CKEditor4/plugins/lineheight/LICENSE +22 -22
  25. package/CKEditor4/plugins/lineheight/README.md +2 -2
  26. package/CKEditor4/plugins/lineheight/lang/vi.js +3 -3
  27. package/CKEditor4/plugins/lineheight/plugin.js +99 -99
  28. package/CKEditor4/plugins/lineheight/readme.txt +30 -30
  29. package/CKEditor4/plugins/link/dialogs/anchor.js +82 -82
  30. package/CKEditor4/plugins/link/dialogs/link.js +777 -777
  31. package/CKEditor4/plugins/menubutton/plugin.js +99 -99
  32. package/CKEditor4/plugins/pastefromword/filter/default.js +849 -849
  33. package/CKEditor4/plugins/pastetools/filter/common.js +445 -445
  34. package/CKEditor4/plugins/pastetools/filter/image.js +163 -163
  35. package/CKEditor4/plugins/pdffile/plugin.js +36 -36
  36. package/CKEditor4/plugins/placeholder_button/plugin.js +31 -31
  37. package/CKEditor4/plugins/sourcedialog/dialogs/sourcedialog.js +88 -88
  38. package/CKEditor4/plugins/sourcedialog/lang/vi.js +9 -9
  39. package/CKEditor4/plugins/sourcedialog/plugin.js +30 -30
  40. package/CKEditor4/plugins/wordfile/plugin.js +161 -161
  41. package/CKEditor4/skins/moono-lisa/dialog.css +685 -685
  42. package/CKEditor4/skins/moono-lisa/dialog_ie.css +721 -721
  43. package/CKEditor4/skins/moono-lisa/dialog_ie8.css +746 -746
  44. package/CKEditor4/skins/moono-lisa/dialog_iequirks.css +724 -724
  45. package/CKEditor4/skins/moono-lisa/editor.css +1551 -1551
  46. package/CKEditor4/skins/moono-lisa/editor_gecko.css +1556 -1556
  47. package/CKEditor4/skins/moono-lisa/editor_ie.css +1588 -1588
  48. package/CKEditor4/skins/moono-lisa/editor_ie8.css +1639 -1639
  49. package/CKEditor4/skins/moono-lisa/editor_iequirks.css +1632 -1632
  50. package/CKEditor4/skins/moono-lisa/readme.md +46 -46
  51. package/CKEditor4/styles.js +136 -136
  52. package/CKEditor4/vendor/promise.js +385 -385
  53. package/package.json +1 -1
@@ -1,385 +1,385 @@
1
- (function (v, w) {
2
- 'object' === typeof exports && 'undefined' !== typeof module
3
- ? (module.exports = w())
4
- : 'function' === typeof define && define.amd
5
- ? define(w)
6
- : (v.ES6Promise = w());
7
- })(this, function () {
8
- function v(a) {
9
- return 'function' === typeof a;
10
- }
11
- function w() {
12
- return function () {
13
- return process.nextTick(n);
14
- };
15
- }
16
- function R() {
17
- return 'undefined' !== typeof B
18
- ? function () {
19
- B(n);
20
- }
21
- : C();
22
- }
23
- function S() {
24
- var a = 0,
25
- b = new J(n),
26
- c = document.createTextNode('');
27
- b.observe(c, { characterData: !0 });
28
- return function () {
29
- c.data = a = ++a % 2;
30
- };
31
- }
32
- function T() {
33
- var a = new MessageChannel();
34
- a.port1.onmessage = n;
35
- return function () {
36
- return a.port2.postMessage(0);
37
- };
38
- }
39
- function C() {
40
- var a = setTimeout;
41
- return function () {
42
- return a(n, 1);
43
- };
44
- }
45
- function n() {
46
- for (var a = 0; a < k; a += 2) (0, q[a])(q[a + 1]), (q[a] = void 0), (q[a + 1] = void 0);
47
- k = 0;
48
- }
49
- function U() {
50
- try {
51
- var a = Function('return this')().require('vertx');
52
- B = a.runOnLoop || a.runOnContext;
53
- return R();
54
- } catch (b) {
55
- return C();
56
- }
57
- }
58
- function D(a, b) {
59
- var c = this,
60
- d = new this.constructor(r);
61
- void 0 === d[z] && K(d);
62
- var e = c._state;
63
- if (e) {
64
- var f = arguments[e - 1];
65
- l(function () {
66
- return L(e, d, f, c._result);
67
- });
68
- } else E(c, d, a, b);
69
- return d;
70
- }
71
- function F(a) {
72
- if (a && 'object' === typeof a && a.constructor === this) return a;
73
- var b = new this(r);
74
- x(b, a);
75
- return b;
76
- }
77
- function r() {}
78
- function M(a) {
79
- try {
80
- return a.then;
81
- } catch (b) {
82
- return (p.error = b), p;
83
- }
84
- }
85
- function V(a, b, c, d) {
86
- try {
87
- a.call(b, c, d);
88
- } catch (e) {
89
- return e;
90
- }
91
- }
92
- function W(a, b, c) {
93
- l(function (a) {
94
- var e = !1,
95
- f = V(
96
- c,
97
- b,
98
- function (c) {
99
- e || ((e = !0), b !== c ? x(a, c) : m(a, c));
100
- },
101
- function (b) {
102
- e || ((e = !0), g(a, b));
103
- },
104
- 'Settle: ' + (a._label || ' unknown promise'),
105
- );
106
- !e && f && ((e = !0), g(a, f));
107
- }, a);
108
- }
109
- function X(a, b) {
110
- b._state === y
111
- ? m(a, b._result)
112
- : b._state === t
113
- ? g(a, b._result)
114
- : E(
115
- b,
116
- void 0,
117
- function (b) {
118
- return x(a, b);
119
- },
120
- function (b) {
121
- return g(a, b);
122
- },
123
- );
124
- }
125
- function N(a, b, c) {
126
- b.constructor === a.constructor && c === D && b.constructor.resolve === F
127
- ? X(a, b)
128
- : c === p
129
- ? (g(a, p.error), (p.error = null))
130
- : void 0 === c
131
- ? m(a, b)
132
- : v(c)
133
- ? W(a, b, c)
134
- : m(a, b);
135
- }
136
- function x(a, b) {
137
- if (a === b) g(a, new TypeError('You cannot resolve a promise with itself'));
138
- else {
139
- var c = typeof b;
140
- null === b || ('object' !== c && 'function' !== c) ? m(a, b) : N(a, b, M(b));
141
- }
142
- }
143
- function Y(a) {
144
- a._onerror && a._onerror(a._result);
145
- G(a);
146
- }
147
- function m(a, b) {
148
- a._state === u && ((a._result = b), (a._state = y), 0 !== a._subscribers.length && l(G, a));
149
- }
150
- function g(a, b) {
151
- a._state === u && ((a._state = t), (a._result = b), l(Y, a));
152
- }
153
- function E(a, b, c, d) {
154
- var e = a._subscribers,
155
- f = e.length;
156
- a._onerror = null;
157
- e[f] = b;
158
- e[f + y] = c;
159
- e[f + t] = d;
160
- 0 === f && a._state && l(G, a);
161
- }
162
- function G(a) {
163
- var b = a._subscribers,
164
- c = a._state;
165
- if (0 !== b.length) {
166
- for (var d = void 0, e = void 0, f = a._result, g = 0; g < b.length; g += 3)
167
- (d = b[g]), (e = b[g + c]), d ? L(c, d, e, f) : e(f);
168
- a._subscribers.length = 0;
169
- }
170
- }
171
- function L(a, b, c, d) {
172
- var e = v(c),
173
- f = void 0,
174
- h = void 0,
175
- k = void 0,
176
- l = void 0;
177
- if (e) {
178
- try {
179
- f = c(d);
180
- } catch (n) {
181
- (p.error = n), (f = p);
182
- }
183
- f === p ? ((l = !0), (h = f.error), (f.error = null)) : (k = !0);
184
- if (b === f) {
185
- g(b, new TypeError('A promises callback cannot return that same promise.'));
186
- return;
187
- }
188
- } else (f = d), (k = !0);
189
- b._state === u && (e && k ? x(b, f) : l ? g(b, h) : a === y ? m(b, f) : a === t && g(b, f));
190
- }
191
- function Z(a, b) {
192
- try {
193
- b(
194
- function (b) {
195
- x(a, b);
196
- },
197
- function (b) {
198
- g(a, b);
199
- },
200
- );
201
- } catch (c) {
202
- g(a, c);
203
- }
204
- }
205
- function K(a) {
206
- a[z] = O++;
207
- a._state = void 0;
208
- a._result = void 0;
209
- a._subscribers = [];
210
- }
211
- var H = void 0,
212
- P = (H = Array.isArray
213
- ? Array.isArray
214
- : function (a) {
215
- return '[object Array]' === Object.prototype.toString.call(a);
216
- }),
217
- k = 0,
218
- B = void 0,
219
- I = void 0,
220
- l = function (a, b) {
221
- q[k] = a;
222
- q[k + 1] = b;
223
- k += 2;
224
- 2 === k && (I ? I(n) : Q());
225
- },
226
- A = (H = 'undefined' !== typeof window ? window : void 0) || {},
227
- J = A.MutationObserver || A.WebKitMutationObserver,
228
- A =
229
- 'undefined' === typeof self && 'undefined' !== typeof process && '[object process]' === {}.toString.call(process),
230
- aa =
231
- 'undefined' !== typeof Uint8ClampedArray &&
232
- 'undefined' !== typeof importScripts &&
233
- 'undefined' !== typeof MessageChannel,
234
- q = Array(1e3),
235
- Q = void 0,
236
- Q = A ? w() : J ? S() : aa ? T() : void 0 === H && 'function' === typeof require ? U() : C(),
237
- z = Math.random().toString(36).substring(2),
238
- u = void 0,
239
- y = 1,
240
- t = 2,
241
- p = { error: null },
242
- O = 0,
243
- ba = (function () {
244
- function a(a, c) {
245
- this._instanceConstructor = a;
246
- this.promise = new a(r);
247
- this.promise[z] || K(this.promise);
248
- P(c)
249
- ? ((this._remaining = this.length = c.length),
250
- (this._result = Array(this.length)),
251
- 0 === this.length
252
- ? m(this.promise, this._result)
253
- : ((this.length = this.length || 0),
254
- this._enumerate(c),
255
- 0 === this._remaining && m(this.promise, this._result)))
256
- : g(this.promise, Error('Array Methods must be provided an Array'));
257
- }
258
- a.prototype._enumerate = function (a) {
259
- for (var c = 0; this._state === u && c < a.length; c++) this._eachEntry(a[c], c);
260
- };
261
- a.prototype._eachEntry = function (a, c) {
262
- var d = this._instanceConstructor,
263
- e = d.resolve;
264
- e === F
265
- ? ((e = M(a)),
266
- e === D && a._state !== u
267
- ? this._settledAt(a._state, c, a._result)
268
- : 'function' !== typeof e
269
- ? (this._remaining--, (this._result[c] = a))
270
- : d === h
271
- ? ((d = new d(r)), N(d, a, e), this._willSettleAt(d, c))
272
- : this._willSettleAt(
273
- new d(function (c) {
274
- return c(a);
275
- }),
276
- c,
277
- ))
278
- : this._willSettleAt(e(a), c);
279
- };
280
- a.prototype._settledAt = function (a, c, d) {
281
- var e = this.promise;
282
- e._state === u && (this._remaining--, a === t ? g(e, d) : (this._result[c] = d));
283
- 0 === this._remaining && m(e, this._result);
284
- };
285
- a.prototype._willSettleAt = function (a, c) {
286
- var d = this;
287
- E(
288
- a,
289
- void 0,
290
- function (a) {
291
- return d._settledAt(y, c, a);
292
- },
293
- function (a) {
294
- return d._settledAt(t, c, a);
295
- },
296
- );
297
- };
298
- return a;
299
- })(),
300
- h = (function () {
301
- function a(b) {
302
- this[z] = O++;
303
- this._result = this._state = void 0;
304
- this._subscribers = [];
305
- if (r !== b) {
306
- if ('function' !== typeof b)
307
- throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');
308
- if (this instanceof a) Z(this, b);
309
- else
310
- throw new TypeError(
311
- "Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.",
312
- );
313
- }
314
- }
315
- a.prototype['catch'] = function (a) {
316
- return this.then(null, a);
317
- };
318
- a.prototype['finally'] = function (a) {
319
- var c = this.constructor;
320
- return v(a)
321
- ? this.then(
322
- function (d) {
323
- return c.resolve(a()).then(function () {
324
- return d;
325
- });
326
- },
327
- function (d) {
328
- return c.resolve(a()).then(function () {
329
- throw d;
330
- });
331
- },
332
- )
333
- : this.then(a, a);
334
- };
335
- return a;
336
- })();
337
- h.prototype.then = D;
338
- h.all = function (a) {
339
- return new ba(this, a).promise;
340
- };
341
- h.race = function (a) {
342
- var b = this;
343
- return P(a)
344
- ? new b(function (c, d) {
345
- for (var e = a.length, f = 0; f < e; f++) b.resolve(a[f]).then(c, d);
346
- })
347
- : new b(function (a, b) {
348
- return b(new TypeError('You must pass an array to race.'));
349
- });
350
- };
351
- h.resolve = F;
352
- h.reject = function (a) {
353
- var b = new this(r);
354
- g(b, a);
355
- return b;
356
- };
357
- h._setScheduler = function (a) {
358
- I = a;
359
- };
360
- h._setAsap = function (a) {
361
- l = a;
362
- };
363
- h._asap = l;
364
- h.polyfill = function () {
365
- var a = void 0;
366
- if ('undefined' !== typeof global) a = global;
367
- else if ('undefined' !== typeof self) a = self;
368
- else
369
- try {
370
- a = Function('return this')();
371
- } catch (b) {
372
- throw Error('polyfill failed because global object is unavailable in this environment');
373
- }
374
- var c = a.Promise;
375
- if (c) {
376
- var d = null;
377
- try {
378
- d = Object.prototype.toString.call(c.resolve());
379
- } catch (e) {}
380
- if ('[object Promise]' === d && !c.cast) return;
381
- }
382
- a.Promise = h;
383
- };
384
- return (h.Promise = h);
385
- });
1
+ (function (v, w) {
2
+ 'object' === typeof exports && 'undefined' !== typeof module
3
+ ? (module.exports = w())
4
+ : 'function' === typeof define && define.amd
5
+ ? define(w)
6
+ : (v.ES6Promise = w());
7
+ })(this, function () {
8
+ function v(a) {
9
+ return 'function' === typeof a;
10
+ }
11
+ function w() {
12
+ return function () {
13
+ return process.nextTick(n);
14
+ };
15
+ }
16
+ function R() {
17
+ return 'undefined' !== typeof B
18
+ ? function () {
19
+ B(n);
20
+ }
21
+ : C();
22
+ }
23
+ function S() {
24
+ var a = 0,
25
+ b = new J(n),
26
+ c = document.createTextNode('');
27
+ b.observe(c, { characterData: !0 });
28
+ return function () {
29
+ c.data = a = ++a % 2;
30
+ };
31
+ }
32
+ function T() {
33
+ var a = new MessageChannel();
34
+ a.port1.onmessage = n;
35
+ return function () {
36
+ return a.port2.postMessage(0);
37
+ };
38
+ }
39
+ function C() {
40
+ var a = setTimeout;
41
+ return function () {
42
+ return a(n, 1);
43
+ };
44
+ }
45
+ function n() {
46
+ for (var a = 0; a < k; a += 2) (0, q[a])(q[a + 1]), (q[a] = void 0), (q[a + 1] = void 0);
47
+ k = 0;
48
+ }
49
+ function U() {
50
+ try {
51
+ var a = Function('return this')().require('vertx');
52
+ B = a.runOnLoop || a.runOnContext;
53
+ return R();
54
+ } catch (b) {
55
+ return C();
56
+ }
57
+ }
58
+ function D(a, b) {
59
+ var c = this,
60
+ d = new this.constructor(r);
61
+ void 0 === d[z] && K(d);
62
+ var e = c._state;
63
+ if (e) {
64
+ var f = arguments[e - 1];
65
+ l(function () {
66
+ return L(e, d, f, c._result);
67
+ });
68
+ } else E(c, d, a, b);
69
+ return d;
70
+ }
71
+ function F(a) {
72
+ if (a && 'object' === typeof a && a.constructor === this) return a;
73
+ var b = new this(r);
74
+ x(b, a);
75
+ return b;
76
+ }
77
+ function r() {}
78
+ function M(a) {
79
+ try {
80
+ return a.then;
81
+ } catch (b) {
82
+ return (p.error = b), p;
83
+ }
84
+ }
85
+ function V(a, b, c, d) {
86
+ try {
87
+ a.call(b, c, d);
88
+ } catch (e) {
89
+ return e;
90
+ }
91
+ }
92
+ function W(a, b, c) {
93
+ l(function (a) {
94
+ var e = !1,
95
+ f = V(
96
+ c,
97
+ b,
98
+ function (c) {
99
+ e || ((e = !0), b !== c ? x(a, c) : m(a, c));
100
+ },
101
+ function (b) {
102
+ e || ((e = !0), g(a, b));
103
+ },
104
+ 'Settle: ' + (a._label || ' unknown promise'),
105
+ );
106
+ !e && f && ((e = !0), g(a, f));
107
+ }, a);
108
+ }
109
+ function X(a, b) {
110
+ b._state === y
111
+ ? m(a, b._result)
112
+ : b._state === t
113
+ ? g(a, b._result)
114
+ : E(
115
+ b,
116
+ void 0,
117
+ function (b) {
118
+ return x(a, b);
119
+ },
120
+ function (b) {
121
+ return g(a, b);
122
+ },
123
+ );
124
+ }
125
+ function N(a, b, c) {
126
+ b.constructor === a.constructor && c === D && b.constructor.resolve === F
127
+ ? X(a, b)
128
+ : c === p
129
+ ? (g(a, p.error), (p.error = null))
130
+ : void 0 === c
131
+ ? m(a, b)
132
+ : v(c)
133
+ ? W(a, b, c)
134
+ : m(a, b);
135
+ }
136
+ function x(a, b) {
137
+ if (a === b) g(a, new TypeError('You cannot resolve a promise with itself'));
138
+ else {
139
+ var c = typeof b;
140
+ null === b || ('object' !== c && 'function' !== c) ? m(a, b) : N(a, b, M(b));
141
+ }
142
+ }
143
+ function Y(a) {
144
+ a._onerror && a._onerror(a._result);
145
+ G(a);
146
+ }
147
+ function m(a, b) {
148
+ a._state === u && ((a._result = b), (a._state = y), 0 !== a._subscribers.length && l(G, a));
149
+ }
150
+ function g(a, b) {
151
+ a._state === u && ((a._state = t), (a._result = b), l(Y, a));
152
+ }
153
+ function E(a, b, c, d) {
154
+ var e = a._subscribers,
155
+ f = e.length;
156
+ a._onerror = null;
157
+ e[f] = b;
158
+ e[f + y] = c;
159
+ e[f + t] = d;
160
+ 0 === f && a._state && l(G, a);
161
+ }
162
+ function G(a) {
163
+ var b = a._subscribers,
164
+ c = a._state;
165
+ if (0 !== b.length) {
166
+ for (var d = void 0, e = void 0, f = a._result, g = 0; g < b.length; g += 3)
167
+ (d = b[g]), (e = b[g + c]), d ? L(c, d, e, f) : e(f);
168
+ a._subscribers.length = 0;
169
+ }
170
+ }
171
+ function L(a, b, c, d) {
172
+ var e = v(c),
173
+ f = void 0,
174
+ h = void 0,
175
+ k = void 0,
176
+ l = void 0;
177
+ if (e) {
178
+ try {
179
+ f = c(d);
180
+ } catch (n) {
181
+ (p.error = n), (f = p);
182
+ }
183
+ f === p ? ((l = !0), (h = f.error), (f.error = null)) : (k = !0);
184
+ if (b === f) {
185
+ g(b, new TypeError('A promises callback cannot return that same promise.'));
186
+ return;
187
+ }
188
+ } else (f = d), (k = !0);
189
+ b._state === u && (e && k ? x(b, f) : l ? g(b, h) : a === y ? m(b, f) : a === t && g(b, f));
190
+ }
191
+ function Z(a, b) {
192
+ try {
193
+ b(
194
+ function (b) {
195
+ x(a, b);
196
+ },
197
+ function (b) {
198
+ g(a, b);
199
+ },
200
+ );
201
+ } catch (c) {
202
+ g(a, c);
203
+ }
204
+ }
205
+ function K(a) {
206
+ a[z] = O++;
207
+ a._state = void 0;
208
+ a._result = void 0;
209
+ a._subscribers = [];
210
+ }
211
+ var H = void 0,
212
+ P = (H = Array.isArray
213
+ ? Array.isArray
214
+ : function (a) {
215
+ return '[object Array]' === Object.prototype.toString.call(a);
216
+ }),
217
+ k = 0,
218
+ B = void 0,
219
+ I = void 0,
220
+ l = function (a, b) {
221
+ q[k] = a;
222
+ q[k + 1] = b;
223
+ k += 2;
224
+ 2 === k && (I ? I(n) : Q());
225
+ },
226
+ A = (H = 'undefined' !== typeof window ? window : void 0) || {},
227
+ J = A.MutationObserver || A.WebKitMutationObserver,
228
+ A =
229
+ 'undefined' === typeof self && 'undefined' !== typeof process && '[object process]' === {}.toString.call(process),
230
+ aa =
231
+ 'undefined' !== typeof Uint8ClampedArray &&
232
+ 'undefined' !== typeof importScripts &&
233
+ 'undefined' !== typeof MessageChannel,
234
+ q = Array(1e3),
235
+ Q = void 0,
236
+ Q = A ? w() : J ? S() : aa ? T() : void 0 === H && 'function' === typeof require ? U() : C(),
237
+ z = Math.random().toString(36).substring(2),
238
+ u = void 0,
239
+ y = 1,
240
+ t = 2,
241
+ p = { error: null },
242
+ O = 0,
243
+ ba = (function () {
244
+ function a(a, c) {
245
+ this._instanceConstructor = a;
246
+ this.promise = new a(r);
247
+ this.promise[z] || K(this.promise);
248
+ P(c)
249
+ ? ((this._remaining = this.length = c.length),
250
+ (this._result = Array(this.length)),
251
+ 0 === this.length
252
+ ? m(this.promise, this._result)
253
+ : ((this.length = this.length || 0),
254
+ this._enumerate(c),
255
+ 0 === this._remaining && m(this.promise, this._result)))
256
+ : g(this.promise, Error('Array Methods must be provided an Array'));
257
+ }
258
+ a.prototype._enumerate = function (a) {
259
+ for (var c = 0; this._state === u && c < a.length; c++) this._eachEntry(a[c], c);
260
+ };
261
+ a.prototype._eachEntry = function (a, c) {
262
+ var d = this._instanceConstructor,
263
+ e = d.resolve;
264
+ e === F
265
+ ? ((e = M(a)),
266
+ e === D && a._state !== u
267
+ ? this._settledAt(a._state, c, a._result)
268
+ : 'function' !== typeof e
269
+ ? (this._remaining--, (this._result[c] = a))
270
+ : d === h
271
+ ? ((d = new d(r)), N(d, a, e), this._willSettleAt(d, c))
272
+ : this._willSettleAt(
273
+ new d(function (c) {
274
+ return c(a);
275
+ }),
276
+ c,
277
+ ))
278
+ : this._willSettleAt(e(a), c);
279
+ };
280
+ a.prototype._settledAt = function (a, c, d) {
281
+ var e = this.promise;
282
+ e._state === u && (this._remaining--, a === t ? g(e, d) : (this._result[c] = d));
283
+ 0 === this._remaining && m(e, this._result);
284
+ };
285
+ a.prototype._willSettleAt = function (a, c) {
286
+ var d = this;
287
+ E(
288
+ a,
289
+ void 0,
290
+ function (a) {
291
+ return d._settledAt(y, c, a);
292
+ },
293
+ function (a) {
294
+ return d._settledAt(t, c, a);
295
+ },
296
+ );
297
+ };
298
+ return a;
299
+ })(),
300
+ h = (function () {
301
+ function a(b) {
302
+ this[z] = O++;
303
+ this._result = this._state = void 0;
304
+ this._subscribers = [];
305
+ if (r !== b) {
306
+ if ('function' !== typeof b)
307
+ throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');
308
+ if (this instanceof a) Z(this, b);
309
+ else
310
+ throw new TypeError(
311
+ "Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.",
312
+ );
313
+ }
314
+ }
315
+ a.prototype['catch'] = function (a) {
316
+ return this.then(null, a);
317
+ };
318
+ a.prototype['finally'] = function (a) {
319
+ var c = this.constructor;
320
+ return v(a)
321
+ ? this.then(
322
+ function (d) {
323
+ return c.resolve(a()).then(function () {
324
+ return d;
325
+ });
326
+ },
327
+ function (d) {
328
+ return c.resolve(a()).then(function () {
329
+ throw d;
330
+ });
331
+ },
332
+ )
333
+ : this.then(a, a);
334
+ };
335
+ return a;
336
+ })();
337
+ h.prototype.then = D;
338
+ h.all = function (a) {
339
+ return new ba(this, a).promise;
340
+ };
341
+ h.race = function (a) {
342
+ var b = this;
343
+ return P(a)
344
+ ? new b(function (c, d) {
345
+ for (var e = a.length, f = 0; f < e; f++) b.resolve(a[f]).then(c, d);
346
+ })
347
+ : new b(function (a, b) {
348
+ return b(new TypeError('You must pass an array to race.'));
349
+ });
350
+ };
351
+ h.resolve = F;
352
+ h.reject = function (a) {
353
+ var b = new this(r);
354
+ g(b, a);
355
+ return b;
356
+ };
357
+ h._setScheduler = function (a) {
358
+ I = a;
359
+ };
360
+ h._setAsap = function (a) {
361
+ l = a;
362
+ };
363
+ h._asap = l;
364
+ h.polyfill = function () {
365
+ var a = void 0;
366
+ if ('undefined' !== typeof global) a = global;
367
+ else if ('undefined' !== typeof self) a = self;
368
+ else
369
+ try {
370
+ a = Function('return this')();
371
+ } catch (b) {
372
+ throw Error('polyfill failed because global object is unavailable in this environment');
373
+ }
374
+ var c = a.Promise;
375
+ if (c) {
376
+ var d = null;
377
+ try {
378
+ d = Object.prototype.toString.call(c.resolve());
379
+ } catch (e) {}
380
+ if ('[object Promise]' === d && !c.cast) return;
381
+ }
382
+ a.Promise = h;
383
+ };
384
+ return (h.Promise = h);
385
+ });