@luciq/react-native 18.0.0 → 18.2.0-13120-SNAPSHOT
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/CHANGELOG.md +30 -0
- package/README.md +0 -2
- package/RNLuciq.podspec +2 -1
- package/android/build.gradle +1 -2
- package/android/native.gradle +2 -1
- package/android/src/main/java/ai/luciq/reactlibrary/ArgsRegistry.java +1 -0
- package/android/src/main/java/ai/luciq/reactlibrary/RNLuciqBugReportingModule.java +23 -1
- package/bin/config/migration-config.json +5 -5
- package/bin/index.js +3 -8
- package/cli/config/migration-config.json +5 -5
- package/cli/upload/migrate.ts +2 -8
- package/dangerfile.ts +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/models/ProactiveReportingConfigs.d.ts +10 -0
- package/dist/models/ProactiveReportingConfigs.js +22 -0
- package/dist/modules/BugReporting.d.ts +6 -0
- package/dist/modules/BugReporting.js +7 -0
- package/dist/native/NativeBugReporting.d.ts +1 -0
- package/dist/native/NativeConstants.d.ts +1 -0
- package/dist/native/NativeCrashReporting.d.ts +8 -0
- package/dist/utils/Enums.d.ts +2 -1
- package/dist/utils/Enums.js +1 -0
- package/dist/utils/LuciqConstants.d.ts +2 -0
- package/dist/utils/LuciqConstants.js +2 -0
- package/dist/utils/LuciqUtils.js +17 -0
- package/dist/utils/XhrNetworkInterceptor.js +9 -4
- package/ios/RNLuciq/ArgsRegistry.m +2 -1
- package/ios/RNLuciq/LuciqAPMBridge.h +0 -2
- package/ios/RNLuciq/LuciqBugReportingBridge.h +2 -0
- package/ios/RNLuciq/LuciqBugReportingBridge.m +8 -0
- package/ios/native.rb +1 -1
- package/package.json +1 -2
- package/plugin/build/index.js +482 -367
- package/src/index.ts +6 -0
- package/src/models/ProactiveReportingConfigs.ts +37 -0
- package/src/modules/BugReporting.ts +13 -1
- package/src/native/NativeBugReporting.ts +6 -0
- package/src/native/NativeConstants.ts +1 -0
- package/src/native/NativeCrashReporting.ts +8 -0
- package/src/utils/Enums.ts +1 -0
- package/src/utils/LuciqConstants.ts +4 -0
- package/src/utils/LuciqUtils.ts +18 -1
- package/src/utils/XhrNetworkInterceptor.ts +9 -5
- package/upload/index.js +3 -8
package/plugin/build/index.js
CHANGED
|
@@ -4015,15 +4015,26 @@ function requireSax$1 () {
|
|
|
4015
4015
|
hasRequiredSax$1 = 1;
|
|
4016
4016
|
(function (exports) {
|
|
4017
4017
|
(function (sax) {
|
|
4018
|
-
sax.parser = function (strict, opt) {
|
|
4018
|
+
sax.parser = function (strict, opt) {
|
|
4019
|
+
return new SAXParser(strict, opt)
|
|
4020
|
+
};
|
|
4019
4021
|
sax.SAXParser = SAXParser;
|
|
4020
4022
|
sax.SAXStream = SAXStream;
|
|
4021
4023
|
sax.createStream = createStream;
|
|
4022
4024
|
sax.MAX_BUFFER_LENGTH = 64 * 1024;
|
|
4023
4025
|
var buffers = [
|
|
4024
|
-
'comment',
|
|
4025
|
-
'
|
|
4026
|
-
'
|
|
4026
|
+
'comment',
|
|
4027
|
+
'sgmlDecl',
|
|
4028
|
+
'textNode',
|
|
4029
|
+
'tagName',
|
|
4030
|
+
'doctype',
|
|
4031
|
+
'procInstName',
|
|
4032
|
+
'procInstBody',
|
|
4033
|
+
'entity',
|
|
4034
|
+
'attribName',
|
|
4035
|
+
'attribValue',
|
|
4036
|
+
'cdata',
|
|
4037
|
+
'script',
|
|
4027
4038
|
];
|
|
4028
4039
|
sax.EVENTS = [
|
|
4029
4040
|
'text',
|
|
@@ -4043,9 +4054,9 @@ function requireSax$1 () {
|
|
|
4043
4054
|
'ready',
|
|
4044
4055
|
'script',
|
|
4045
4056
|
'opennamespace',
|
|
4046
|
-
'closenamespace'
|
|
4057
|
+
'closenamespace',
|
|
4047
4058
|
];
|
|
4048
|
-
function SAXParser
|
|
4059
|
+
function SAXParser(strict, opt) {
|
|
4049
4060
|
if (!(this instanceof SAXParser)) {
|
|
4050
4061
|
return new SAXParser(strict, opt)
|
|
4051
4062
|
}
|
|
@@ -4063,7 +4074,10 @@ function requireSax$1 () {
|
|
|
4063
4074
|
parser.noscript = !!(strict || parser.opt.noscript);
|
|
4064
4075
|
parser.state = S.BEGIN;
|
|
4065
4076
|
parser.strictEntities = parser.opt.strictEntities;
|
|
4066
|
-
parser.ENTITIES =
|
|
4077
|
+
parser.ENTITIES =
|
|
4078
|
+
parser.strictEntities ?
|
|
4079
|
+
Object.create(sax.XML_ENTITIES)
|
|
4080
|
+
: Object.create(sax.ENTITIES);
|
|
4067
4081
|
parser.attribList = [];
|
|
4068
4082
|
if (parser.opt.xmlns) {
|
|
4069
4083
|
parser.ns = Object.create(rootNS);
|
|
@@ -4079,7 +4093,7 @@ function requireSax$1 () {
|
|
|
4079
4093
|
}
|
|
4080
4094
|
if (!Object.create) {
|
|
4081
4095
|
Object.create = function (o) {
|
|
4082
|
-
function F
|
|
4096
|
+
function F() {}
|
|
4083
4097
|
F.prototype = o;
|
|
4084
4098
|
var newf = new F();
|
|
4085
4099
|
return newf
|
|
@@ -4092,7 +4106,7 @@ function requireSax$1 () {
|
|
|
4092
4106
|
return a
|
|
4093
4107
|
};
|
|
4094
4108
|
}
|
|
4095
|
-
function checkBufferLength
|
|
4109
|
+
function checkBufferLength(parser) {
|
|
4096
4110
|
var maxAllowed = Math.max(sax.MAX_BUFFER_LENGTH, 10);
|
|
4097
4111
|
var maxActual = 0;
|
|
4098
4112
|
for (var i = 0, l = buffers.length; i < l; i++) {
|
|
@@ -4119,12 +4133,12 @@ function requireSax$1 () {
|
|
|
4119
4133
|
var m = sax.MAX_BUFFER_LENGTH - maxActual;
|
|
4120
4134
|
parser.bufferCheckPosition = m + parser.position;
|
|
4121
4135
|
}
|
|
4122
|
-
function clearBuffers
|
|
4136
|
+
function clearBuffers(parser) {
|
|
4123
4137
|
for (var i = 0, l = buffers.length; i < l; i++) {
|
|
4124
4138
|
parser[buffers[i]] = '';
|
|
4125
4139
|
}
|
|
4126
4140
|
}
|
|
4127
|
-
function flushBuffers
|
|
4141
|
+
function flushBuffers(parser) {
|
|
4128
4142
|
closeText(parser);
|
|
4129
4143
|
if (parser.cdata !== '') {
|
|
4130
4144
|
emitNode(parser, 'oncdata', parser.cdata);
|
|
@@ -4136,11 +4150,20 @@ function requireSax$1 () {
|
|
|
4136
4150
|
}
|
|
4137
4151
|
}
|
|
4138
4152
|
SAXParser.prototype = {
|
|
4139
|
-
end: function () {
|
|
4153
|
+
end: function () {
|
|
4154
|
+
end(this);
|
|
4155
|
+
},
|
|
4140
4156
|
write: write,
|
|
4141
|
-
resume: function () {
|
|
4142
|
-
|
|
4143
|
-
|
|
4157
|
+
resume: function () {
|
|
4158
|
+
this.error = null;
|
|
4159
|
+
return this
|
|
4160
|
+
},
|
|
4161
|
+
close: function () {
|
|
4162
|
+
return this.write(null)
|
|
4163
|
+
},
|
|
4164
|
+
flush: function () {
|
|
4165
|
+
flushBuffers(this);
|
|
4166
|
+
},
|
|
4144
4167
|
};
|
|
4145
4168
|
var Stream;
|
|
4146
4169
|
try {
|
|
@@ -4152,10 +4175,10 @@ function requireSax$1 () {
|
|
|
4152
4175
|
var streamWraps = sax.EVENTS.filter(function (ev) {
|
|
4153
4176
|
return ev !== 'error' && ev !== 'end'
|
|
4154
4177
|
});
|
|
4155
|
-
function createStream
|
|
4178
|
+
function createStream(strict, opt) {
|
|
4156
4179
|
return new SAXStream(strict, opt)
|
|
4157
4180
|
}
|
|
4158
|
-
function SAXStream
|
|
4181
|
+
function SAXStream(strict, opt) {
|
|
4159
4182
|
if (!(this instanceof SAXStream)) {
|
|
4160
4183
|
return new SAXStream(strict, opt)
|
|
4161
4184
|
}
|
|
@@ -4186,19 +4209,21 @@ function requireSax$1 () {
|
|
|
4186
4209
|
me.on(ev, h);
|
|
4187
4210
|
},
|
|
4188
4211
|
enumerable: true,
|
|
4189
|
-
configurable: false
|
|
4212
|
+
configurable: false,
|
|
4190
4213
|
});
|
|
4191
4214
|
});
|
|
4192
4215
|
}
|
|
4193
4216
|
SAXStream.prototype = Object.create(Stream.prototype, {
|
|
4194
4217
|
constructor: {
|
|
4195
|
-
value: SAXStream
|
|
4196
|
-
}
|
|
4218
|
+
value: SAXStream,
|
|
4219
|
+
},
|
|
4197
4220
|
});
|
|
4198
4221
|
SAXStream.prototype.write = function (data) {
|
|
4199
|
-
if (
|
|
4222
|
+
if (
|
|
4223
|
+
typeof Buffer === 'function' &&
|
|
4200
4224
|
typeof Buffer.isBuffer === 'function' &&
|
|
4201
|
-
Buffer.isBuffer(data)
|
|
4225
|
+
Buffer.isBuffer(data)
|
|
4226
|
+
) {
|
|
4202
4227
|
if (!this._decoder) {
|
|
4203
4228
|
var SD = require$$1.StringDecoder;
|
|
4204
4229
|
this._decoder = new SD('utf8');
|
|
@@ -4220,7 +4245,10 @@ function requireSax$1 () {
|
|
|
4220
4245
|
var me = this;
|
|
4221
4246
|
if (!me._parser['on' + ev] && streamWraps.indexOf(ev) !== -1) {
|
|
4222
4247
|
me._parser['on' + ev] = function () {
|
|
4223
|
-
var args =
|
|
4248
|
+
var args =
|
|
4249
|
+
arguments.length === 1 ?
|
|
4250
|
+
[arguments[0]]
|
|
4251
|
+
: Array.apply(null, arguments);
|
|
4224
4252
|
args.splice(0, 0, ev);
|
|
4225
4253
|
me.emit.apply(me, args);
|
|
4226
4254
|
};
|
|
@@ -4232,23 +4260,27 @@ function requireSax$1 () {
|
|
|
4232
4260
|
var XML_NAMESPACE = 'http://www.w3.org/XML/1998/namespace';
|
|
4233
4261
|
var XMLNS_NAMESPACE = 'http://www.w3.org/2000/xmlns/';
|
|
4234
4262
|
var rootNS = { xml: XML_NAMESPACE, xmlns: XMLNS_NAMESPACE };
|
|
4235
|
-
var nameStart =
|
|
4236
|
-
|
|
4237
|
-
var
|
|
4238
|
-
|
|
4239
|
-
|
|
4263
|
+
var nameStart =
|
|
4264
|
+
/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;
|
|
4265
|
+
var nameBody =
|
|
4266
|
+
/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;
|
|
4267
|
+
var entityStart =
|
|
4268
|
+
/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;
|
|
4269
|
+
var entityBody =
|
|
4270
|
+
/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;
|
|
4271
|
+
function isWhitespace(c) {
|
|
4240
4272
|
return c === ' ' || c === '\n' || c === '\r' || c === '\t'
|
|
4241
4273
|
}
|
|
4242
|
-
function isQuote
|
|
4243
|
-
return c === '"' || c === '
|
|
4274
|
+
function isQuote(c) {
|
|
4275
|
+
return c === '"' || c === "'"
|
|
4244
4276
|
}
|
|
4245
|
-
function isAttribEnd
|
|
4277
|
+
function isAttribEnd(c) {
|
|
4246
4278
|
return c === '>' || isWhitespace(c)
|
|
4247
4279
|
}
|
|
4248
|
-
function isMatch
|
|
4280
|
+
function isMatch(regex, c) {
|
|
4249
4281
|
return regex.test(c)
|
|
4250
4282
|
}
|
|
4251
|
-
function notMatch
|
|
4283
|
+
function notMatch(regex, c) {
|
|
4252
4284
|
return !isMatch(regex, c)
|
|
4253
4285
|
}
|
|
4254
4286
|
var S = 0;
|
|
@@ -4288,269 +4320,269 @@ function requireSax$1 () {
|
|
|
4288
4320
|
CLOSE_TAG: S++,
|
|
4289
4321
|
CLOSE_TAG_SAW_WHITE: S++,
|
|
4290
4322
|
SCRIPT: S++,
|
|
4291
|
-
SCRIPT_ENDING: S
|
|
4323
|
+
SCRIPT_ENDING: S++,
|
|
4292
4324
|
};
|
|
4293
4325
|
sax.XML_ENTITIES = {
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4326
|
+
amp: '&',
|
|
4327
|
+
gt: '>',
|
|
4328
|
+
lt: '<',
|
|
4329
|
+
quot: '"',
|
|
4330
|
+
apos: "'",
|
|
4299
4331
|
};
|
|
4300
4332
|
sax.ENTITIES = {
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4333
|
+
amp: '&',
|
|
4334
|
+
gt: '>',
|
|
4335
|
+
lt: '<',
|
|
4336
|
+
quot: '"',
|
|
4337
|
+
apos: "'",
|
|
4338
|
+
AElig: 198,
|
|
4339
|
+
Aacute: 193,
|
|
4340
|
+
Acirc: 194,
|
|
4341
|
+
Agrave: 192,
|
|
4342
|
+
Aring: 197,
|
|
4343
|
+
Atilde: 195,
|
|
4344
|
+
Auml: 196,
|
|
4345
|
+
Ccedil: 199,
|
|
4346
|
+
ETH: 208,
|
|
4347
|
+
Eacute: 201,
|
|
4348
|
+
Ecirc: 202,
|
|
4349
|
+
Egrave: 200,
|
|
4350
|
+
Euml: 203,
|
|
4351
|
+
Iacute: 205,
|
|
4352
|
+
Icirc: 206,
|
|
4353
|
+
Igrave: 204,
|
|
4354
|
+
Iuml: 207,
|
|
4355
|
+
Ntilde: 209,
|
|
4356
|
+
Oacute: 211,
|
|
4357
|
+
Ocirc: 212,
|
|
4358
|
+
Ograve: 210,
|
|
4359
|
+
Oslash: 216,
|
|
4360
|
+
Otilde: 213,
|
|
4361
|
+
Ouml: 214,
|
|
4362
|
+
THORN: 222,
|
|
4363
|
+
Uacute: 218,
|
|
4364
|
+
Ucirc: 219,
|
|
4365
|
+
Ugrave: 217,
|
|
4366
|
+
Uuml: 220,
|
|
4367
|
+
Yacute: 221,
|
|
4368
|
+
aacute: 225,
|
|
4369
|
+
acirc: 226,
|
|
4370
|
+
aelig: 230,
|
|
4371
|
+
agrave: 224,
|
|
4372
|
+
aring: 229,
|
|
4373
|
+
atilde: 227,
|
|
4374
|
+
auml: 228,
|
|
4375
|
+
ccedil: 231,
|
|
4376
|
+
eacute: 233,
|
|
4377
|
+
ecirc: 234,
|
|
4378
|
+
egrave: 232,
|
|
4379
|
+
eth: 240,
|
|
4380
|
+
euml: 235,
|
|
4381
|
+
iacute: 237,
|
|
4382
|
+
icirc: 238,
|
|
4383
|
+
igrave: 236,
|
|
4384
|
+
iuml: 239,
|
|
4385
|
+
ntilde: 241,
|
|
4386
|
+
oacute: 243,
|
|
4387
|
+
ocirc: 244,
|
|
4388
|
+
ograve: 242,
|
|
4389
|
+
oslash: 248,
|
|
4390
|
+
otilde: 245,
|
|
4391
|
+
ouml: 246,
|
|
4392
|
+
szlig: 223,
|
|
4393
|
+
thorn: 254,
|
|
4394
|
+
uacute: 250,
|
|
4395
|
+
ucirc: 251,
|
|
4396
|
+
ugrave: 249,
|
|
4397
|
+
uuml: 252,
|
|
4398
|
+
yacute: 253,
|
|
4399
|
+
yuml: 255,
|
|
4400
|
+
copy: 169,
|
|
4401
|
+
reg: 174,
|
|
4402
|
+
nbsp: 160,
|
|
4403
|
+
iexcl: 161,
|
|
4404
|
+
cent: 162,
|
|
4405
|
+
pound: 163,
|
|
4406
|
+
curren: 164,
|
|
4407
|
+
yen: 165,
|
|
4408
|
+
brvbar: 166,
|
|
4409
|
+
sect: 167,
|
|
4410
|
+
uml: 168,
|
|
4411
|
+
ordf: 170,
|
|
4412
|
+
laquo: 171,
|
|
4413
|
+
not: 172,
|
|
4414
|
+
shy: 173,
|
|
4415
|
+
macr: 175,
|
|
4416
|
+
deg: 176,
|
|
4417
|
+
plusmn: 177,
|
|
4418
|
+
sup1: 185,
|
|
4419
|
+
sup2: 178,
|
|
4420
|
+
sup3: 179,
|
|
4421
|
+
acute: 180,
|
|
4422
|
+
micro: 181,
|
|
4423
|
+
para: 182,
|
|
4424
|
+
middot: 183,
|
|
4425
|
+
cedil: 184,
|
|
4426
|
+
ordm: 186,
|
|
4427
|
+
raquo: 187,
|
|
4428
|
+
frac14: 188,
|
|
4429
|
+
frac12: 189,
|
|
4430
|
+
frac34: 190,
|
|
4431
|
+
iquest: 191,
|
|
4432
|
+
times: 215,
|
|
4433
|
+
divide: 247,
|
|
4434
|
+
OElig: 338,
|
|
4435
|
+
oelig: 339,
|
|
4436
|
+
Scaron: 352,
|
|
4437
|
+
scaron: 353,
|
|
4438
|
+
Yuml: 376,
|
|
4439
|
+
fnof: 402,
|
|
4440
|
+
circ: 710,
|
|
4441
|
+
tilde: 732,
|
|
4442
|
+
Alpha: 913,
|
|
4443
|
+
Beta: 914,
|
|
4444
|
+
Gamma: 915,
|
|
4445
|
+
Delta: 916,
|
|
4446
|
+
Epsilon: 917,
|
|
4447
|
+
Zeta: 918,
|
|
4448
|
+
Eta: 919,
|
|
4449
|
+
Theta: 920,
|
|
4450
|
+
Iota: 921,
|
|
4451
|
+
Kappa: 922,
|
|
4452
|
+
Lambda: 923,
|
|
4453
|
+
Mu: 924,
|
|
4454
|
+
Nu: 925,
|
|
4455
|
+
Xi: 926,
|
|
4456
|
+
Omicron: 927,
|
|
4457
|
+
Pi: 928,
|
|
4458
|
+
Rho: 929,
|
|
4459
|
+
Sigma: 931,
|
|
4460
|
+
Tau: 932,
|
|
4461
|
+
Upsilon: 933,
|
|
4462
|
+
Phi: 934,
|
|
4463
|
+
Chi: 935,
|
|
4464
|
+
Psi: 936,
|
|
4465
|
+
Omega: 937,
|
|
4466
|
+
alpha: 945,
|
|
4467
|
+
beta: 946,
|
|
4468
|
+
gamma: 947,
|
|
4469
|
+
delta: 948,
|
|
4470
|
+
epsilon: 949,
|
|
4471
|
+
zeta: 950,
|
|
4472
|
+
eta: 951,
|
|
4473
|
+
theta: 952,
|
|
4474
|
+
iota: 953,
|
|
4475
|
+
kappa: 954,
|
|
4476
|
+
lambda: 955,
|
|
4477
|
+
mu: 956,
|
|
4478
|
+
nu: 957,
|
|
4479
|
+
xi: 958,
|
|
4480
|
+
omicron: 959,
|
|
4481
|
+
pi: 960,
|
|
4482
|
+
rho: 961,
|
|
4483
|
+
sigmaf: 962,
|
|
4484
|
+
sigma: 963,
|
|
4485
|
+
tau: 964,
|
|
4486
|
+
upsilon: 965,
|
|
4487
|
+
phi: 966,
|
|
4488
|
+
chi: 967,
|
|
4489
|
+
psi: 968,
|
|
4490
|
+
omega: 969,
|
|
4491
|
+
thetasym: 977,
|
|
4492
|
+
upsih: 978,
|
|
4493
|
+
piv: 982,
|
|
4494
|
+
ensp: 8194,
|
|
4495
|
+
emsp: 8195,
|
|
4496
|
+
thinsp: 8201,
|
|
4497
|
+
zwnj: 8204,
|
|
4498
|
+
zwj: 8205,
|
|
4499
|
+
lrm: 8206,
|
|
4500
|
+
rlm: 8207,
|
|
4501
|
+
ndash: 8211,
|
|
4502
|
+
mdash: 8212,
|
|
4503
|
+
lsquo: 8216,
|
|
4504
|
+
rsquo: 8217,
|
|
4505
|
+
sbquo: 8218,
|
|
4506
|
+
ldquo: 8220,
|
|
4507
|
+
rdquo: 8221,
|
|
4508
|
+
bdquo: 8222,
|
|
4509
|
+
dagger: 8224,
|
|
4510
|
+
Dagger: 8225,
|
|
4511
|
+
bull: 8226,
|
|
4512
|
+
hellip: 8230,
|
|
4513
|
+
permil: 8240,
|
|
4514
|
+
prime: 8242,
|
|
4515
|
+
Prime: 8243,
|
|
4516
|
+
lsaquo: 8249,
|
|
4517
|
+
rsaquo: 8250,
|
|
4518
|
+
oline: 8254,
|
|
4519
|
+
frasl: 8260,
|
|
4520
|
+
euro: 8364,
|
|
4521
|
+
image: 8465,
|
|
4522
|
+
weierp: 8472,
|
|
4523
|
+
real: 8476,
|
|
4524
|
+
trade: 8482,
|
|
4525
|
+
alefsym: 8501,
|
|
4526
|
+
larr: 8592,
|
|
4527
|
+
uarr: 8593,
|
|
4528
|
+
rarr: 8594,
|
|
4529
|
+
darr: 8595,
|
|
4530
|
+
harr: 8596,
|
|
4531
|
+
crarr: 8629,
|
|
4532
|
+
lArr: 8656,
|
|
4533
|
+
uArr: 8657,
|
|
4534
|
+
rArr: 8658,
|
|
4535
|
+
dArr: 8659,
|
|
4536
|
+
hArr: 8660,
|
|
4537
|
+
forall: 8704,
|
|
4538
|
+
part: 8706,
|
|
4539
|
+
exist: 8707,
|
|
4540
|
+
empty: 8709,
|
|
4541
|
+
nabla: 8711,
|
|
4542
|
+
isin: 8712,
|
|
4543
|
+
notin: 8713,
|
|
4544
|
+
ni: 8715,
|
|
4545
|
+
prod: 8719,
|
|
4546
|
+
sum: 8721,
|
|
4547
|
+
minus: 8722,
|
|
4548
|
+
lowast: 8727,
|
|
4549
|
+
radic: 8730,
|
|
4550
|
+
prop: 8733,
|
|
4551
|
+
infin: 8734,
|
|
4552
|
+
ang: 8736,
|
|
4553
|
+
and: 8743,
|
|
4554
|
+
or: 8744,
|
|
4555
|
+
cap: 8745,
|
|
4556
|
+
cup: 8746,
|
|
4557
|
+
int: 8747,
|
|
4558
|
+
there4: 8756,
|
|
4559
|
+
sim: 8764,
|
|
4560
|
+
cong: 8773,
|
|
4561
|
+
asymp: 8776,
|
|
4562
|
+
ne: 8800,
|
|
4563
|
+
equiv: 8801,
|
|
4564
|
+
le: 8804,
|
|
4565
|
+
ge: 8805,
|
|
4566
|
+
sub: 8834,
|
|
4567
|
+
sup: 8835,
|
|
4568
|
+
nsub: 8836,
|
|
4569
|
+
sube: 8838,
|
|
4570
|
+
supe: 8839,
|
|
4571
|
+
oplus: 8853,
|
|
4572
|
+
otimes: 8855,
|
|
4573
|
+
perp: 8869,
|
|
4574
|
+
sdot: 8901,
|
|
4575
|
+
lceil: 8968,
|
|
4576
|
+
rceil: 8969,
|
|
4577
|
+
lfloor: 8970,
|
|
4578
|
+
rfloor: 8971,
|
|
4579
|
+
lang: 9001,
|
|
4580
|
+
rang: 9002,
|
|
4581
|
+
loz: 9674,
|
|
4582
|
+
spades: 9824,
|
|
4583
|
+
clubs: 9827,
|
|
4584
|
+
hearts: 9829,
|
|
4585
|
+
diams: 9830,
|
|
4554
4586
|
};
|
|
4555
4587
|
Object.keys(sax.ENTITIES).forEach(function (key) {
|
|
4556
4588
|
var e = sax.ENTITIES[key];
|
|
@@ -4561,40 +4593,47 @@ function requireSax$1 () {
|
|
|
4561
4593
|
sax.STATE[sax.STATE[s]] = s;
|
|
4562
4594
|
}
|
|
4563
4595
|
S = sax.STATE;
|
|
4564
|
-
function emit
|
|
4596
|
+
function emit(parser, event, data) {
|
|
4565
4597
|
parser[event] && parser[event](data);
|
|
4566
4598
|
}
|
|
4567
|
-
function emitNode
|
|
4599
|
+
function emitNode(parser, nodeType, data) {
|
|
4568
4600
|
if (parser.textNode) closeText(parser);
|
|
4569
4601
|
emit(parser, nodeType, data);
|
|
4570
4602
|
}
|
|
4571
|
-
function closeText
|
|
4603
|
+
function closeText(parser) {
|
|
4572
4604
|
parser.textNode = textopts(parser.opt, parser.textNode);
|
|
4573
4605
|
if (parser.textNode) emit(parser, 'ontext', parser.textNode);
|
|
4574
4606
|
parser.textNode = '';
|
|
4575
4607
|
}
|
|
4576
|
-
function textopts
|
|
4608
|
+
function textopts(opt, text) {
|
|
4577
4609
|
if (opt.trim) text = text.trim();
|
|
4578
4610
|
if (opt.normalize) text = text.replace(/\s+/g, ' ');
|
|
4579
4611
|
return text
|
|
4580
4612
|
}
|
|
4581
|
-
function error
|
|
4613
|
+
function error(parser, er) {
|
|
4582
4614
|
closeText(parser);
|
|
4583
4615
|
if (parser.trackPosition) {
|
|
4584
|
-
er +=
|
|
4585
|
-
'\
|
|
4586
|
-
|
|
4616
|
+
er +=
|
|
4617
|
+
'\nLine: ' +
|
|
4618
|
+
parser.line +
|
|
4619
|
+
'\nColumn: ' +
|
|
4620
|
+
parser.column +
|
|
4621
|
+
'\nChar: ' +
|
|
4622
|
+
parser.c;
|
|
4587
4623
|
}
|
|
4588
4624
|
er = new Error(er);
|
|
4589
4625
|
parser.error = er;
|
|
4590
4626
|
emit(parser, 'onerror', er);
|
|
4591
4627
|
return parser
|
|
4592
4628
|
}
|
|
4593
|
-
function end
|
|
4594
|
-
if (parser.sawRoot && !parser.closedRoot)
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4629
|
+
function end(parser) {
|
|
4630
|
+
if (parser.sawRoot && !parser.closedRoot)
|
|
4631
|
+
strictFail(parser, 'Unclosed root tag');
|
|
4632
|
+
if (
|
|
4633
|
+
parser.state !== S.BEGIN &&
|
|
4634
|
+
parser.state !== S.BEGIN_WHITESPACE &&
|
|
4635
|
+
parser.state !== S.TEXT
|
|
4636
|
+
) {
|
|
4598
4637
|
error(parser, 'Unexpected end');
|
|
4599
4638
|
}
|
|
4600
4639
|
closeText(parser);
|
|
@@ -4604,7 +4643,7 @@ function requireSax$1 () {
|
|
|
4604
4643
|
SAXParser.call(parser, parser.strict, parser.opt);
|
|
4605
4644
|
return parser
|
|
4606
4645
|
}
|
|
4607
|
-
function strictFail
|
|
4646
|
+
function strictFail(parser, message) {
|
|
4608
4647
|
if (typeof parser !== 'object' || !(parser instanceof SAXParser)) {
|
|
4609
4648
|
throw new Error('bad call to strictFail')
|
|
4610
4649
|
}
|
|
@@ -4612,19 +4651,19 @@ function requireSax$1 () {
|
|
|
4612
4651
|
error(parser, message);
|
|
4613
4652
|
}
|
|
4614
4653
|
}
|
|
4615
|
-
function newTag
|
|
4654
|
+
function newTag(parser) {
|
|
4616
4655
|
if (!parser.strict) parser.tagName = parser.tagName[parser.looseCase]();
|
|
4617
4656
|
var parent = parser.tags[parser.tags.length - 1] || parser;
|
|
4618
|
-
var tag = parser.tag = { name: parser.tagName, attributes: {} };
|
|
4657
|
+
var tag = (parser.tag = { name: parser.tagName, attributes: {} });
|
|
4619
4658
|
if (parser.opt.xmlns) {
|
|
4620
4659
|
tag.ns = parent.ns;
|
|
4621
4660
|
}
|
|
4622
4661
|
parser.attribList.length = 0;
|
|
4623
4662
|
emitNode(parser, 'onopentagstart', tag);
|
|
4624
4663
|
}
|
|
4625
|
-
function qname
|
|
4664
|
+
function qname(name, attribute) {
|
|
4626
4665
|
var i = name.indexOf(':');
|
|
4627
|
-
var qualName = i < 0 ? [
|
|
4666
|
+
var qualName = i < 0 ? ['', name] : name.split(':');
|
|
4628
4667
|
var prefix = qualName[0];
|
|
4629
4668
|
var local = qualName[1];
|
|
4630
4669
|
if (attribute && name === 'xmlns') {
|
|
@@ -4633,12 +4672,14 @@ function requireSax$1 () {
|
|
|
4633
4672
|
}
|
|
4634
4673
|
return { prefix: prefix, local: local }
|
|
4635
4674
|
}
|
|
4636
|
-
function attrib
|
|
4675
|
+
function attrib(parser) {
|
|
4637
4676
|
if (!parser.strict) {
|
|
4638
4677
|
parser.attribName = parser.attribName[parser.looseCase]();
|
|
4639
4678
|
}
|
|
4640
|
-
if (
|
|
4641
|
-
parser.
|
|
4679
|
+
if (
|
|
4680
|
+
parser.attribList.indexOf(parser.attribName) !== -1 ||
|
|
4681
|
+
parser.tag.attributes.hasOwnProperty(parser.attribName)
|
|
4682
|
+
) {
|
|
4642
4683
|
parser.attribName = parser.attribValue = '';
|
|
4643
4684
|
return
|
|
4644
4685
|
}
|
|
@@ -4648,13 +4689,26 @@ function requireSax$1 () {
|
|
|
4648
4689
|
var local = qn.local;
|
|
4649
4690
|
if (prefix === 'xmlns') {
|
|
4650
4691
|
if (local === 'xml' && parser.attribValue !== XML_NAMESPACE) {
|
|
4651
|
-
strictFail(
|
|
4652
|
-
|
|
4653
|
-
'
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4692
|
+
strictFail(
|
|
4693
|
+
parser,
|
|
4694
|
+
'xml: prefix must be bound to ' +
|
|
4695
|
+
XML_NAMESPACE +
|
|
4696
|
+
'\n' +
|
|
4697
|
+
'Actual: ' +
|
|
4698
|
+
parser.attribValue
|
|
4699
|
+
);
|
|
4700
|
+
} else if (
|
|
4701
|
+
local === 'xmlns' &&
|
|
4702
|
+
parser.attribValue !== XMLNS_NAMESPACE
|
|
4703
|
+
) {
|
|
4704
|
+
strictFail(
|
|
4705
|
+
parser,
|
|
4706
|
+
'xmlns: prefix must be bound to ' +
|
|
4707
|
+
XMLNS_NAMESPACE +
|
|
4708
|
+
'\n' +
|
|
4709
|
+
'Actual: ' +
|
|
4710
|
+
parser.attribValue
|
|
4711
|
+
);
|
|
4658
4712
|
} else {
|
|
4659
4713
|
var tag = parser.tag;
|
|
4660
4714
|
var parent = parser.tags[parser.tags.length - 1] || parser;
|
|
@@ -4669,12 +4723,12 @@ function requireSax$1 () {
|
|
|
4669
4723
|
parser.tag.attributes[parser.attribName] = parser.attribValue;
|
|
4670
4724
|
emitNode(parser, 'onattribute', {
|
|
4671
4725
|
name: parser.attribName,
|
|
4672
|
-
value: parser.attribValue
|
|
4726
|
+
value: parser.attribValue,
|
|
4673
4727
|
});
|
|
4674
4728
|
}
|
|
4675
4729
|
parser.attribName = parser.attribValue = '';
|
|
4676
4730
|
}
|
|
4677
|
-
function openTag
|
|
4731
|
+
function openTag(parser, selfClosing) {
|
|
4678
4732
|
if (parser.opt.xmlns) {
|
|
4679
4733
|
var tag = parser.tag;
|
|
4680
4734
|
var qn = qname(parser.tagName);
|
|
@@ -4682,8 +4736,10 @@ function requireSax$1 () {
|
|
|
4682
4736
|
tag.local = qn.local;
|
|
4683
4737
|
tag.uri = tag.ns[qn.prefix] || '';
|
|
4684
4738
|
if (tag.prefix && !tag.uri) {
|
|
4685
|
-
strictFail(
|
|
4686
|
-
|
|
4739
|
+
strictFail(
|
|
4740
|
+
parser,
|
|
4741
|
+
'Unbound namespace prefix: ' + JSON.stringify(parser.tagName)
|
|
4742
|
+
);
|
|
4687
4743
|
tag.uri = qn.prefix;
|
|
4688
4744
|
}
|
|
4689
4745
|
var parent = parser.tags[parser.tags.length - 1] || parser;
|
|
@@ -4691,7 +4747,7 @@ function requireSax$1 () {
|
|
|
4691
4747
|
Object.keys(tag.ns).forEach(function (p) {
|
|
4692
4748
|
emitNode(parser, 'onopennamespace', {
|
|
4693
4749
|
prefix: p,
|
|
4694
|
-
uri: tag.ns[p]
|
|
4750
|
+
uri: tag.ns[p],
|
|
4695
4751
|
});
|
|
4696
4752
|
});
|
|
4697
4753
|
}
|
|
@@ -4702,17 +4758,19 @@ function requireSax$1 () {
|
|
|
4702
4758
|
var qualName = qname(name, true);
|
|
4703
4759
|
var prefix = qualName.prefix;
|
|
4704
4760
|
var local = qualName.local;
|
|
4705
|
-
var uri = prefix === '' ? '' :
|
|
4761
|
+
var uri = prefix === '' ? '' : tag.ns[prefix] || '';
|
|
4706
4762
|
var a = {
|
|
4707
4763
|
name: name,
|
|
4708
4764
|
value: value,
|
|
4709
4765
|
prefix: prefix,
|
|
4710
4766
|
local: local,
|
|
4711
|
-
uri: uri
|
|
4767
|
+
uri: uri,
|
|
4712
4768
|
};
|
|
4713
4769
|
if (prefix && prefix !== 'xmlns' && !uri) {
|
|
4714
|
-
strictFail(
|
|
4715
|
-
|
|
4770
|
+
strictFail(
|
|
4771
|
+
parser,
|
|
4772
|
+
'Unbound namespace prefix: ' + JSON.stringify(prefix)
|
|
4773
|
+
);
|
|
4716
4774
|
a.uri = prefix;
|
|
4717
4775
|
}
|
|
4718
4776
|
parser.tag.attributes[name] = a;
|
|
@@ -4736,7 +4794,7 @@ function requireSax$1 () {
|
|
|
4736
4794
|
parser.attribName = parser.attribValue = '';
|
|
4737
4795
|
parser.attribList.length = 0;
|
|
4738
4796
|
}
|
|
4739
|
-
function closeTag
|
|
4797
|
+
function closeTag(parser) {
|
|
4740
4798
|
if (!parser.tagName) {
|
|
4741
4799
|
strictFail(parser, 'Weird empty close tag.');
|
|
4742
4800
|
parser.textNode += '</>';
|
|
@@ -4776,7 +4834,7 @@ function requireSax$1 () {
|
|
|
4776
4834
|
parser.tagName = tagName;
|
|
4777
4835
|
var s = parser.tags.length;
|
|
4778
4836
|
while (s-- > t) {
|
|
4779
|
-
var tag = parser.tag = parser.tags.pop();
|
|
4837
|
+
var tag = (parser.tag = parser.tags.pop());
|
|
4780
4838
|
parser.tagName = parser.tag.name;
|
|
4781
4839
|
emitNode(parser, 'onclosetag', parser.tagName);
|
|
4782
4840
|
var x = {};
|
|
@@ -4796,7 +4854,7 @@ function requireSax$1 () {
|
|
|
4796
4854
|
parser.attribList.length = 0;
|
|
4797
4855
|
parser.state = S.TEXT;
|
|
4798
4856
|
}
|
|
4799
|
-
function parseEntity
|
|
4857
|
+
function parseEntity(parser) {
|
|
4800
4858
|
var entity = parser.entity;
|
|
4801
4859
|
var entityLC = entity.toLowerCase();
|
|
4802
4860
|
var num;
|
|
@@ -4820,13 +4878,18 @@ function requireSax$1 () {
|
|
|
4820
4878
|
}
|
|
4821
4879
|
}
|
|
4822
4880
|
entity = entity.replace(/^0+/, '');
|
|
4823
|
-
if (
|
|
4881
|
+
if (
|
|
4882
|
+
isNaN(num) ||
|
|
4883
|
+
numStr.toLowerCase() !== entity ||
|
|
4884
|
+
num < 0 ||
|
|
4885
|
+
num > 0x10ffff
|
|
4886
|
+
) {
|
|
4824
4887
|
strictFail(parser, 'Invalid character entity');
|
|
4825
4888
|
return '&' + parser.entity + ';'
|
|
4826
4889
|
}
|
|
4827
4890
|
return String.fromCodePoint(num)
|
|
4828
4891
|
}
|
|
4829
|
-
function beginWhiteSpace
|
|
4892
|
+
function beginWhiteSpace(parser, c) {
|
|
4830
4893
|
if (c === '<') {
|
|
4831
4894
|
parser.state = S.OPEN_WAKA;
|
|
4832
4895
|
parser.startTagPosition = parser.position;
|
|
@@ -4836,21 +4899,23 @@ function requireSax$1 () {
|
|
|
4836
4899
|
parser.state = S.TEXT;
|
|
4837
4900
|
}
|
|
4838
4901
|
}
|
|
4839
|
-
function charAt
|
|
4902
|
+
function charAt(chunk, i) {
|
|
4840
4903
|
var result = '';
|
|
4841
4904
|
if (i < chunk.length) {
|
|
4842
4905
|
result = chunk.charAt(i);
|
|
4843
4906
|
}
|
|
4844
4907
|
return result
|
|
4845
4908
|
}
|
|
4846
|
-
function write
|
|
4909
|
+
function write(chunk) {
|
|
4847
4910
|
var parser = this;
|
|
4848
4911
|
if (this.error) {
|
|
4849
4912
|
throw this.error
|
|
4850
4913
|
}
|
|
4851
4914
|
if (parser.closed) {
|
|
4852
|
-
return error(
|
|
4853
|
-
|
|
4915
|
+
return error(
|
|
4916
|
+
parser,
|
|
4917
|
+
'Cannot write after close. Assign an onready handler.'
|
|
4918
|
+
)
|
|
4854
4919
|
}
|
|
4855
4920
|
if (chunk === null) {
|
|
4856
4921
|
return end(parser)
|
|
@@ -4903,11 +4968,17 @@ function requireSax$1 () {
|
|
|
4903
4968
|
}
|
|
4904
4969
|
parser.textNode += chunk.substring(starti, i - 1);
|
|
4905
4970
|
}
|
|
4906
|
-
if (
|
|
4971
|
+
if (
|
|
4972
|
+
c === '<' &&
|
|
4973
|
+
!(parser.sawRoot && parser.closedRoot && !parser.strict)
|
|
4974
|
+
) {
|
|
4907
4975
|
parser.state = S.OPEN_WAKA;
|
|
4908
4976
|
parser.startTagPosition = parser.position;
|
|
4909
4977
|
} else {
|
|
4910
|
-
if (
|
|
4978
|
+
if (
|
|
4979
|
+
!isWhitespace(c) &&
|
|
4980
|
+
(!parser.sawRoot || parser.closedRoot)
|
|
4981
|
+
) {
|
|
4911
4982
|
strictFail(parser, 'Text data outside of root node.');
|
|
4912
4983
|
}
|
|
4913
4984
|
if (c === '&') {
|
|
@@ -4960,9 +5031,13 @@ function requireSax$1 () {
|
|
|
4960
5031
|
parser.state = S.COMMENT;
|
|
4961
5032
|
parser.comment = '';
|
|
4962
5033
|
parser.sgmlDecl = '';
|
|
4963
|
-
continue
|
|
5034
|
+
continue
|
|
4964
5035
|
}
|
|
4965
|
-
if (
|
|
5036
|
+
if (
|
|
5037
|
+
parser.doctype &&
|
|
5038
|
+
parser.doctype !== true &&
|
|
5039
|
+
parser.sgmlDecl
|
|
5040
|
+
) {
|
|
4966
5041
|
parser.state = S.DOCTYPE_DTD;
|
|
4967
5042
|
parser.doctype += '<!' + parser.sgmlDecl + c;
|
|
4968
5043
|
parser.sgmlDecl = '';
|
|
@@ -4974,8 +5049,10 @@ function requireSax$1 () {
|
|
|
4974
5049
|
} else if ((parser.sgmlDecl + c).toUpperCase() === DOCTYPE) {
|
|
4975
5050
|
parser.state = S.DOCTYPE;
|
|
4976
5051
|
if (parser.doctype || parser.sawRoot) {
|
|
4977
|
-
strictFail(
|
|
4978
|
-
|
|
5052
|
+
strictFail(
|
|
5053
|
+
parser,
|
|
5054
|
+
'Inappropriately located doctype declaration'
|
|
5055
|
+
);
|
|
4979
5056
|
}
|
|
4980
5057
|
parser.doctype = '';
|
|
4981
5058
|
parser.sgmlDecl = '';
|
|
@@ -5073,10 +5150,22 @@ function requireSax$1 () {
|
|
|
5073
5150
|
}
|
|
5074
5151
|
continue
|
|
5075
5152
|
case S.CDATA:
|
|
5153
|
+
var starti = i - 1;
|
|
5154
|
+
while (c && c !== ']') {
|
|
5155
|
+
c = charAt(chunk, i++);
|
|
5156
|
+
if (c && parser.trackPosition) {
|
|
5157
|
+
parser.position++;
|
|
5158
|
+
if (c === '\n') {
|
|
5159
|
+
parser.line++;
|
|
5160
|
+
parser.column = 0;
|
|
5161
|
+
} else {
|
|
5162
|
+
parser.column++;
|
|
5163
|
+
}
|
|
5164
|
+
}
|
|
5165
|
+
}
|
|
5166
|
+
parser.cdata += chunk.substring(starti, i - 1);
|
|
5076
5167
|
if (c === ']') {
|
|
5077
5168
|
parser.state = S.CDATA_ENDING;
|
|
5078
|
-
} else {
|
|
5079
|
-
parser.cdata += c;
|
|
5080
5169
|
}
|
|
5081
5170
|
continue
|
|
5082
5171
|
case S.CDATA_ENDING:
|
|
@@ -5124,7 +5213,7 @@ function requireSax$1 () {
|
|
|
5124
5213
|
if (c === '>') {
|
|
5125
5214
|
emitNode(parser, 'onprocessinginstruction', {
|
|
5126
5215
|
name: parser.procInstName,
|
|
5127
|
-
body: parser.procInstBody
|
|
5216
|
+
body: parser.procInstBody,
|
|
5128
5217
|
});
|
|
5129
5218
|
parser.procInstName = parser.procInstBody = '';
|
|
5130
5219
|
parser.state = S.TEXT;
|
|
@@ -5155,7 +5244,10 @@ function requireSax$1 () {
|
|
|
5155
5244
|
openTag(parser, true);
|
|
5156
5245
|
closeTag(parser);
|
|
5157
5246
|
} else {
|
|
5158
|
-
strictFail(
|
|
5247
|
+
strictFail(
|
|
5248
|
+
parser,
|
|
5249
|
+
'Forward-slash in opening tag not followed by >'
|
|
5250
|
+
);
|
|
5159
5251
|
parser.state = S.ATTRIB;
|
|
5160
5252
|
}
|
|
5161
5253
|
continue
|
|
@@ -5201,7 +5293,7 @@ function requireSax$1 () {
|
|
|
5201
5293
|
parser.attribValue = '';
|
|
5202
5294
|
emitNode(parser, 'onattribute', {
|
|
5203
5295
|
name: parser.attribName,
|
|
5204
|
-
value: ''
|
|
5296
|
+
value: '',
|
|
5205
5297
|
});
|
|
5206
5298
|
parser.attribName = '';
|
|
5207
5299
|
if (c === '>') {
|
|
@@ -5334,7 +5426,10 @@ function requireSax$1 () {
|
|
|
5334
5426
|
}
|
|
5335
5427
|
if (c === ';') {
|
|
5336
5428
|
var parsedEntity = parseEntity(parser);
|
|
5337
|
-
if (
|
|
5429
|
+
if (
|
|
5430
|
+
parser.opt.unparsedEntities &&
|
|
5431
|
+
!Object.values(sax.XML_ENTITIES).includes(parsedEntity)
|
|
5432
|
+
) {
|
|
5338
5433
|
parser.entity = '';
|
|
5339
5434
|
parser.state = returnState;
|
|
5340
5435
|
parser.write(parsedEntity);
|
|
@@ -5343,7 +5438,9 @@ function requireSax$1 () {
|
|
|
5343
5438
|
parser.entity = '';
|
|
5344
5439
|
parser.state = returnState;
|
|
5345
5440
|
}
|
|
5346
|
-
} else if (
|
|
5441
|
+
} else if (
|
|
5442
|
+
isMatch(parser.entity.length ? entityBody : entityStart, c)
|
|
5443
|
+
) {
|
|
5347
5444
|
parser.entity += c;
|
|
5348
5445
|
} else {
|
|
5349
5446
|
strictFail(parser, 'Invalid character in entity name');
|
|
@@ -5364,7 +5461,7 @@ function requireSax$1 () {
|
|
|
5364
5461
|
}
|
|
5365
5462
|
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */
|
|
5366
5463
|
if (!String.fromCodePoint) {
|
|
5367
|
-
|
|
5464
|
+
(function () {
|
|
5368
5465
|
var stringFromCharCode = String.fromCharCode;
|
|
5369
5466
|
var floor = Math.floor;
|
|
5370
5467
|
var fromCodePoint = function () {
|
|
@@ -5383,17 +5480,17 @@ function requireSax$1 () {
|
|
|
5383
5480
|
if (
|
|
5384
5481
|
!isFinite(codePoint) ||
|
|
5385
5482
|
codePoint < 0 ||
|
|
5386
|
-
codePoint >
|
|
5483
|
+
codePoint > 0x10ffff ||
|
|
5387
5484
|
floor(codePoint) !== codePoint
|
|
5388
5485
|
) {
|
|
5389
5486
|
throw RangeError('Invalid code point: ' + codePoint)
|
|
5390
5487
|
}
|
|
5391
|
-
if (codePoint <=
|
|
5488
|
+
if (codePoint <= 0xffff) {
|
|
5392
5489
|
codeUnits.push(codePoint);
|
|
5393
5490
|
} else {
|
|
5394
5491
|
codePoint -= 0x10000;
|
|
5395
|
-
highSurrogate = (codePoint >> 10) +
|
|
5396
|
-
lowSurrogate = (codePoint % 0x400) +
|
|
5492
|
+
highSurrogate = (codePoint >> 10) + 0xd800;
|
|
5493
|
+
lowSurrogate = (codePoint % 0x400) + 0xdc00;
|
|
5397
5494
|
codeUnits.push(highSurrogate, lowSurrogate);
|
|
5398
5495
|
}
|
|
5399
5496
|
if (index + 1 === length || codeUnits.length > MAX_SIZE) {
|
|
@@ -5407,12 +5504,12 @@ function requireSax$1 () {
|
|
|
5407
5504
|
Object.defineProperty(String, 'fromCodePoint', {
|
|
5408
5505
|
value: fromCodePoint,
|
|
5409
5506
|
configurable: true,
|
|
5410
|
-
writable: true
|
|
5507
|
+
writable: true,
|
|
5411
5508
|
});
|
|
5412
5509
|
} else {
|
|
5413
5510
|
String.fromCodePoint = fromCodePoint;
|
|
5414
5511
|
}
|
|
5415
|
-
}()
|
|
5512
|
+
})();
|
|
5416
5513
|
}
|
|
5417
5514
|
})(exports);
|
|
5418
5515
|
} (sax$1));
|
|
@@ -16247,6 +16344,9 @@ function requireIdentifiers () {
|
|
|
16247
16344
|
hasRequiredIdentifiers = 1;
|
|
16248
16345
|
const numeric = /^[0-9]+$/;
|
|
16249
16346
|
const compareIdentifiers = (a, b) => {
|
|
16347
|
+
if (typeof a === 'number' && typeof b === 'number') {
|
|
16348
|
+
return a === b ? 0 : a < b ? -1 : 1
|
|
16349
|
+
}
|
|
16250
16350
|
const anum = numeric.test(a);
|
|
16251
16351
|
const bnum = numeric.test(b);
|
|
16252
16352
|
if (anum && bnum) {
|
|
@@ -16359,11 +16459,25 @@ function requireSemver$1 () {
|
|
|
16359
16459
|
if (!(other instanceof SemVer)) {
|
|
16360
16460
|
other = new SemVer(other, this.options);
|
|
16361
16461
|
}
|
|
16362
|
-
|
|
16363
|
-
|
|
16364
|
-
|
|
16365
|
-
|
|
16366
|
-
|
|
16462
|
+
if (this.major < other.major) {
|
|
16463
|
+
return -1
|
|
16464
|
+
}
|
|
16465
|
+
if (this.major > other.major) {
|
|
16466
|
+
return 1
|
|
16467
|
+
}
|
|
16468
|
+
if (this.minor < other.minor) {
|
|
16469
|
+
return -1
|
|
16470
|
+
}
|
|
16471
|
+
if (this.minor > other.minor) {
|
|
16472
|
+
return 1
|
|
16473
|
+
}
|
|
16474
|
+
if (this.patch < other.patch) {
|
|
16475
|
+
return -1
|
|
16476
|
+
}
|
|
16477
|
+
if (this.patch > other.patch) {
|
|
16478
|
+
return 1
|
|
16479
|
+
}
|
|
16480
|
+
return 0
|
|
16367
16481
|
}
|
|
16368
16482
|
comparePre (other) {
|
|
16369
16483
|
if (!(other instanceof SemVer)) {
|
|
@@ -17169,6 +17283,7 @@ function requireRange () {
|
|
|
17169
17283
|
return result
|
|
17170
17284
|
};
|
|
17171
17285
|
const parseComparator = (comp, options) => {
|
|
17286
|
+
comp = comp.replace(re[t.BUILD], '');
|
|
17172
17287
|
debug('comp', comp, options);
|
|
17173
17288
|
comp = replaceCarets(comp, options);
|
|
17174
17289
|
debug('caret', comp);
|
|
@@ -33337,13 +33452,13 @@ function requireIdentifier () {
|
|
|
33337
33452
|
identifier.isIdentifierChar = isIdentifierChar;
|
|
33338
33453
|
identifier.isIdentifierName = isIdentifierName;
|
|
33339
33454
|
identifier.isIdentifierStart = isIdentifierStart;
|
|
33340
|
-
let nonASCIIidentifierStartChars = "\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\u0560-\u0588\u05d0-\u05ea\u05ef-\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\u0860-\u086a\u0870-\u0887\u0889-\
|
|
33341
|
-
let nonASCIIidentifierChars = "\xb7\u0300-\u036f\u0387\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u07fd\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u0897-\u089f\u08ca-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u09fe\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0afa-\u0aff\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b55-\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c00-\u0c04\u0c3c\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0cf3\u0d00-\u0d03\u0d3b\u0d3c\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d81-\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0ebc\u0ec8-\u0ece\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u180f-\u1819\u18a9\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19d0-\u19da\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1ab0-\u1abd\u1abf-\
|
|
33455
|
+
let nonASCIIidentifierStartChars = "\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\u0560-\u0588\u05d0-\u05ea\u05ef-\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\u0860-\u086a\u0870-\u0887\u0889-\u088f\u08a0-\u08c9\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\u09fc\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\u0c5c\u0c5d\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cdc-\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d04-\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\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\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\u16ee-\u16f8\u1700-\u1711\u171f-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4c\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c8a\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1cfa\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\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\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\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31bf\u31f0-\u31ff\u3400-\u4dbf\u4e00-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7dc\ua7f1-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua8fe\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-\uab69\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";
|
|
33456
|
+
let nonASCIIidentifierChars = "\xb7\u0300-\u036f\u0387\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u07fd\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u0897-\u089f\u08ca-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u09fe\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0afa-\u0aff\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b55-\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c00-\u0c04\u0c3c\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0cf3\u0d00-\u0d03\u0d3b\u0d3c\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d81-\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0ebc\u0ec8-\u0ece\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u180f-\u1819\u18a9\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19d0-\u19da\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1ab0-\u1abd\u1abf-\u1add\u1ae0-\u1aeb\u1b00-\u1b04\u1b34-\u1b44\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1bb0-\u1bb9\u1be6-\u1bf3\u1c24-\u1c37\u1c40-\u1c49\u1c50-\u1c59\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf4\u1cf7-\u1cf9\u1dc0-\u1dff\u200c\u200d\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\u30fb\ua620-\ua629\ua66f\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua82c\ua880\ua881\ua8b4-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f1\ua8ff-\ua909\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9d0-\ua9d9\ua9e5\ua9f0-\ua9f9\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa50-\uaa59\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\uabf0-\uabf9\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f\uff65";
|
|
33342
33457
|
const nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");
|
|
33343
33458
|
const nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
|
|
33344
33459
|
nonASCIIidentifierStartChars = nonASCIIidentifierChars = null;
|
|
33345
|
-
const astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25,
|
|
33346
|
-
const astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1,
|
|
33460
|
+
const astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 7, 25, 39, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 5, 57, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 24, 43, 261, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 33, 24, 3, 24, 45, 74, 6, 0, 67, 12, 65, 1, 2, 0, 15, 4, 10, 7381, 42, 31, 98, 114, 8702, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 208, 30, 2, 2, 2, 1, 2, 6, 3, 4, 10, 1, 225, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4381, 3, 5773, 3, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 8489];
|
|
33461
|
+
const astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 78, 5, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 199, 7, 137, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 55, 9, 266, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 233, 0, 3, 0, 8, 1, 6, 0, 475, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
|
|
33347
33462
|
function isInAstralSet(code, set) {
|
|
33348
33463
|
let pos = 0x10000;
|
|
33349
33464
|
for (let i = 0, length = set.length; i < length; i += 2) {
|