@sap/cds 8.7.2 → 8.8.0
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 +33 -0
- package/_i18n/i18n.properties +3 -0
- package/_i18n/i18n_cs.properties +6 -6
- package/_i18n/i18n_de.properties +3 -0
- package/_i18n/i18n_en.properties +3 -0
- package/_i18n/i18n_es.properties +3 -0
- package/_i18n/i18n_fr.properties +3 -0
- package/_i18n/i18n_it.properties +3 -0
- package/_i18n/i18n_ja.properties +3 -0
- package/_i18n/i18n_pl.properties +7 -4
- package/_i18n/i18n_pt.properties +3 -0
- package/_i18n/i18n_ru.properties +3 -0
- package/app/index.js +2 -30
- package/lib/env/cds-env.js +1 -1
- package/lib/env/cds-requires.js +16 -9
- package/lib/env/schemas/cds-package.js +1 -1
- package/lib/env/schemas/cds-rc.js +17 -4
- package/lib/index.js +1 -1
- package/lib/ql/SELECT.js +6 -1
- package/lib/req/request.js +5 -2
- package/lib/req/validate.js +3 -1
- package/lib/srv/bindings.js +31 -20
- package/lib/srv/cds-connect.js +1 -1
- package/lib/srv/middlewares/auth/mocked-users.js +1 -0
- package/lib/srv/protocols/okra.js +5 -7
- package/lib/srv/srv-dispatch.js +0 -5
- package/lib/test/cds-test.js +34 -6
- package/libx/_runtime/cds-services/adapter/odata-v4/ODataRequest.js +1 -0
- package/libx/_runtime/common/generic/auth/service.js +2 -2
- package/libx/_runtime/common/generic/input.js +1 -1
- package/libx/_runtime/common/utils/binary.js +1 -35
- package/libx/_runtime/common/utils/rewriteAsterisks.js +5 -8
- package/libx/_runtime/fiori/lean-draft.js +2 -4
- package/libx/common/utils/path.js +1 -5
- package/libx/common/utils/streaming.js +76 -0
- package/libx/odata/middleware/create.js +1 -1
- package/libx/odata/middleware/delete.js +1 -1
- package/libx/odata/middleware/operation.js +48 -4
- package/libx/odata/middleware/read.js +1 -1
- package/libx/odata/middleware/stream.js +29 -101
- package/libx/odata/middleware/update.js +1 -1
- package/libx/odata/parse/afterburner.js +20 -1
- package/libx/odata/parse/grammar.peggy +108 -26
- package/libx/odata/parse/parser.js +1 -1
- package/libx/rest/RestAdapter.js +2 -16
- package/libx/rest/middleware/operation.js +38 -18
- package/libx/rest/middleware/parse.js +5 -25
- package/libx/rest/post-processing.js +33 -0
- package/libx/rest/pre-processing.js +38 -0
- package/package.json +1 -1
- package/libx/common/utils/index.js +0 -5
|
@@ -203,9 +203,71 @@
|
|
|
203
203
|
) {
|
|
204
204
|
cqn.from = { SELECT: { ...cqn } }
|
|
205
205
|
}
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
206
|
+
|
|
207
|
+
const _toplevels = cqn => {
|
|
208
|
+
cqn.recurse = {
|
|
209
|
+
ref: ['parent'],
|
|
210
|
+
|
|
211
|
+
}
|
|
212
|
+
if (apply.topLevels.levels) {
|
|
213
|
+
cqn.recurse.where = [{ ref: ['DistanceFromRoot'] }, '<=', { val: apply.topLevels.levels }]
|
|
214
|
+
}
|
|
215
|
+
if (apply.topLevels.expandLevels) {
|
|
216
|
+
if (!cqn.recurse.where) cqn.recurse.where = []
|
|
217
|
+
for (const expandLevel of apply.topLevels.expandLevels) {
|
|
218
|
+
if (cqn.recurse.where.length !== 0) cqn.recurse.where.push('or')
|
|
219
|
+
cqn.recurse.where.push({ ref: [apply.topLevels.nodeProperty] }, '=', { val: expandLevel.nodeID }, 'and', { ref: ['Distance'] }, 'between', { val: 0 }, 'and', { val: expandLevel.levels } )
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
const _descendants = cqn => {
|
|
224
|
+
return _ancestors(cqn, apply.descendants, 1)
|
|
225
|
+
}
|
|
226
|
+
const _ancestors = (cqn, info = apply.ancestors, direction = -1) => {
|
|
227
|
+
if (info.nodes) {
|
|
228
|
+
for (const node of info.nodes) {
|
|
229
|
+
if (node.filter) cqn.where = node.filter // should we accept $filter?
|
|
230
|
+
else if (node.search) cqn.search = node.search
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
const startVal = { val: info.keepStart ? 0 : direction * 1 }
|
|
234
|
+
const endVal = info.distance && { val: direction * info.distance }
|
|
235
|
+
const where = endVal ?
|
|
236
|
+
startVal.val === endVal.val ?
|
|
237
|
+
[{ ref: ['Distance'] }, '=', startVal ] :
|
|
238
|
+
[{ ref: ['Distance'] }, 'between', startVal, 'and', endVal] :
|
|
239
|
+
[{ ref: ['Distance'] }, direction < 0 ? '<=' : '>=', startVal ]
|
|
240
|
+
cqn.recurse = {
|
|
241
|
+
ref: ['parent'],
|
|
242
|
+
where
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
if (apply.ancestors && apply.topLevels) {
|
|
247
|
+
const inner = {
|
|
248
|
+
SELECT: {
|
|
249
|
+
from: cqn.from,
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
_ancestors(inner.SELECT)
|
|
253
|
+
cqn.from = inner
|
|
254
|
+
_toplevels(cqn)
|
|
255
|
+
} else if (apply.ancestors && apply.descendants) {
|
|
256
|
+
const inner = {
|
|
257
|
+
SELECT: {
|
|
258
|
+
from: cqn.from
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
_ancestors(inner.SELECT)
|
|
262
|
+
cqn.from = inner
|
|
263
|
+
_descendants(cqn)
|
|
264
|
+
} else if (apply.topLevels) {
|
|
265
|
+
_toplevels(cqn)
|
|
266
|
+
} else if (apply.ancestors) {
|
|
267
|
+
_ancestors(apply)
|
|
268
|
+
} else if (apply.descendants) {
|
|
269
|
+
_descendants(cqn)
|
|
270
|
+
}
|
|
209
271
|
if (apply.where) cqn.where = apply.where
|
|
210
272
|
if (apply.search) cqn.search = apply.search
|
|
211
273
|
if (apply.groupBy) {
|
|
@@ -262,17 +324,41 @@
|
|
|
262
324
|
return elements
|
|
263
325
|
}
|
|
264
326
|
|
|
327
|
+
const _custom = (k, v) => {
|
|
328
|
+
// normalize value
|
|
329
|
+
if (v === 'null') v = null
|
|
330
|
+
else if (v === 'true') v = true
|
|
331
|
+
else if (v === 'false') v = false
|
|
332
|
+
// set value in structure
|
|
333
|
+
// REVISIT: SELECT.from._params is a temporary hack
|
|
334
|
+
const params = SELECT.from._params ??= {}
|
|
335
|
+
let t = params
|
|
336
|
+
let x = k.match(/^(\w+)\[(.*)\]$/)
|
|
337
|
+
while (x) {
|
|
338
|
+
if (!(x[1] in t)) t[x[1]] = x[2] === '' ? [] : {}
|
|
339
|
+
t = t[x[1]]
|
|
340
|
+
k = x[2]
|
|
341
|
+
x = k.match(/^(\w+)\[(.*)\]$/)
|
|
342
|
+
}
|
|
343
|
+
if (Array.isArray(t)) t.push(v)
|
|
344
|
+
else t[k] = v
|
|
345
|
+
}
|
|
346
|
+
|
|
265
347
|
const _replaceAliasedInWhere = (where, alias, value, isFromWhere = false) => {
|
|
348
|
+
let isAliased = false
|
|
266
349
|
where?.forEach(element => {
|
|
267
350
|
if (element.val === alias) {
|
|
268
351
|
// TODO check if we want to store replaced aliases/values for req.data in actions/functions in CQN
|
|
269
352
|
element.val = 'list' in value ? value.list.map(ele => ele.val) : value.val
|
|
353
|
+
isAliased = true
|
|
270
354
|
} else if (element.list === alias) {
|
|
271
355
|
element.list = value.list
|
|
356
|
+
isAliased = true
|
|
272
357
|
} else if (element.func) {
|
|
273
358
|
element.args.forEach((arg, i) => {
|
|
274
359
|
if (arg.val === alias) {
|
|
275
360
|
arg.val = value.val
|
|
361
|
+
isAliased = true
|
|
276
362
|
} else if (arg.func) {
|
|
277
363
|
_replaceAliasedInWhere(arg.args, alias, value, isFromWhere)
|
|
278
364
|
}
|
|
@@ -281,14 +367,17 @@
|
|
|
281
367
|
_replaceAliased(element.SELECT, alias, value, isFromWhere)
|
|
282
368
|
}
|
|
283
369
|
});
|
|
370
|
+
return isAliased
|
|
284
371
|
}
|
|
285
372
|
const _replaceAliased = (select, alias, value, isFromWhere = false) => {
|
|
373
|
+
let isAliased = false
|
|
286
374
|
const {where, from} = select
|
|
287
|
-
_replaceAliasedInWhere(where, alias, value);
|
|
375
|
+
isAliased =_replaceAliasedInWhere(where, alias, value);
|
|
288
376
|
|
|
289
377
|
from?.ref?.forEach(element => {
|
|
290
|
-
_replaceAliasedInWhere(element.where, alias, value, true);
|
|
378
|
+
isAliased = _replaceAliasedInWhere(element.where, alias, value, true);
|
|
291
379
|
})
|
|
380
|
+
return isAliased
|
|
292
381
|
}
|
|
293
382
|
}
|
|
294
383
|
|
|
@@ -404,7 +493,7 @@
|
|
|
404
493
|
temporal /
|
|
405
494
|
format /
|
|
406
495
|
custom /
|
|
407
|
-
|
|
496
|
+
aliasedParamEqualsValOrPrefixParam /
|
|
408
497
|
deltaToken
|
|
409
498
|
// @OData spec for $expand:
|
|
410
499
|
// "Allowed system query options are $filter, $select, $orderby, $skip, $top, $count, $search, $expand and
|
|
@@ -646,29 +735,21 @@
|
|
|
646
735
|
|
|
647
736
|
aliasedParamVal = val / jsonObject / jsonArray / "[" list:innerListParam "]" { return { list } }
|
|
648
737
|
|
|
649
|
-
custom = k:$([a-zA-Z0-9-_.~!\[\]]+) "="? v:$([^&]*)? {
|
|
650
|
-
|
|
651
|
-
if (v === 'null') v = null
|
|
652
|
-
else if (v === 'true') v = true
|
|
653
|
-
else if (v === 'false') v = false
|
|
654
|
-
// set value in structure
|
|
655
|
-
// REVISIT: SELECT.from._params is a temporary hack
|
|
656
|
-
const params = SELECT.from._params ??= {}
|
|
657
|
-
let t = params
|
|
658
|
-
let x = k.match(/^(\w+)\[(.*)\]$/)
|
|
659
|
-
while (x) {
|
|
660
|
-
if (!(x[1] in t)) t[x[1]] = x[2] === '' ? [] : {}
|
|
661
|
-
t = t[x[1]]
|
|
662
|
-
k = x[2]
|
|
663
|
-
x = k.match(/^(\w+)\[(.*)\]$/)
|
|
664
|
-
}
|
|
665
|
-
if (Array.isArray(t)) t.push(v)
|
|
666
|
-
else t[k] = v
|
|
738
|
+
custom = k:$([[a-zA-Z0-9-_.~!\[\]]+) "="? v:$([^&]*)? {
|
|
739
|
+
_custom(k, v)
|
|
667
740
|
}
|
|
668
741
|
|
|
669
742
|
aliasedParam "an aliased parameter (@param)" = "@" i:identifier { return "@" + i }
|
|
670
|
-
|
|
671
|
-
_replaceAliased(SELECT, alias, value);
|
|
743
|
+
aliasedParamEqualsValOrPrefixParam = alias:aliasedParam "=" !aliasedParam value:aliasedParamVal {
|
|
744
|
+
const isAliased = _replaceAliased(SELECT, alias, value);
|
|
745
|
+
if (!isAliased) { // custom parameters with "@" prefix (not aliased)
|
|
746
|
+
if (value.val) {
|
|
747
|
+
value = value.val
|
|
748
|
+
} else if (value.list && Array.isArray(value.list)) {
|
|
749
|
+
value = value.list.map(obj => obj.val)
|
|
750
|
+
}
|
|
751
|
+
_custom(alias, value)
|
|
752
|
+
}
|
|
672
753
|
}
|
|
673
754
|
|
|
674
755
|
format = "$format=" f:$([^&]*) {
|
|
@@ -947,6 +1028,7 @@
|
|
|
947
1028
|
hierarchy: h,
|
|
948
1029
|
id: e,
|
|
949
1030
|
nodes: t,
|
|
1031
|
+
distance: d,
|
|
950
1032
|
keepStart: k?.keepStart || false
|
|
951
1033
|
}
|
|
952
1034
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function peg$subclass(u,t){function r(){this.constructor=u}r.prototype=t.prototype,u.prototype=new r}function peg$SyntaxError(u,t,r,e){var n=Error.call(this,u);return Object.setPrototypeOf&&Object.setPrototypeOf(n,peg$SyntaxError.prototype),n.expected=t,n.found=r,n.location=e,n.name="SyntaxError",n}function peg$padEnd(u,t,r){return r=r||" ",u.length>t?u:(t-=u.length,u+(r+=r.repeat(t)).slice(0,t))}function peg$parse(u,t){var r,e={},n=(t=void 0!==t?t:{}).grammarSource,s={ODataRelativeURI:Ti},o=Ti,i="/",a="?",c="&",f="$count",l="$ref",A="$value",h="=",p="$skiptoken=",d="$search=",C="$select=",v="$expand=",F="$filter=",g="$orderby=",b="$top=",B="$skip=",m="$count=",E="$apply=",y="$at",D="$from",$="$toInclusive",x="$to",w="*",L="/$count",S=";",T='"',j="\\\\",_='\\"',k=":",O="any",Z="all",z="asc",N="desc",I="$deltatoken=",R="'",P=",",q="[",H="]",Q="@",U="$format=",M="eq",G="ne",J="lt",K="gt",V="le",W="ge",X="in",Y="null",uu="{",tu="}",ru="contains",eu="endswith",nu="startswith",su="matchespattern",ou="not",iu="and",au="or",cu="aggregate",fu="groupby",lu="filter",Au="search",hu="concat",pu="compute",du="top",Cu="skip",vu="orderby",Fu="com.sap.vocabularies.Hierarchy.v1.TopLevels",gu="ancestors",bu="descendants",Bu="topcount",mu="bottomcount",Eu="topsum",yu="bottomsum",Du="toppercent",$u="bottompercent",xu="with",wu="from",Lu="as",Su="rollup",Tu="$all",ju="identity",_u="HierarchyNodes",ku="$root/",Ou="HierarchyQualifier",Zu="NodeProperty",zu="Levels",Nu="ExpandLevels",Iu='"NodeID"',Ru='"Levels"',Pu="filter(",qu=")",Hu="search(",Qu="keep start",Uu="true",Mu="false",Gu="''",Ju="-",Ku="T",Vu=".",Wu="Z",Xu="e",Yu="binary'",ut="==",tt="(",rt=/^[^&]/,et=/^[ ]/,nt=/^[^"&]/,st=/^[^"]/,ot=/^[^;)]/,it=/^[a-zA-Z0-9\-_.~![\]]/,at=/^[^}]/,ct=/^[^\]]/,ft=/^[a-zA-Z]/,lt=/^[^)]/,At=/^[^']/,ht=/^[0-9]/,pt=/^[+\-]/,dt=/^[_a-zA-Z]/,Ct=/^[_a-zA-Z0-9"."A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\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-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\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]/,vt=/^[0-9a-fA-F]/,Ft=/^[^\/?]/,gt=/^[a-zA-Z0-9\-"."_~!$'()*+,;=:@"\/""?"]/,bt=/^[a-zA-Z0-9\-_]/,Bt=/^[ \t\n]/,mt=yi("/",!1),Et=yi("?",!1),yt=yi("&",!1),Dt=yi("$count",!1),$t=yi("$ref",!1),xt=yi("$value",!1),wt=yi("=",!1),Lt=yi("$skiptoken=",!1),St=yi("$search=",!1),Tt=yi("$select=",!1),jt=yi("$expand=",!1),_t=yi("$filter=",!1),kt=yi("$orderby=",!1),Ot=yi("$top=",!1),Zt=yi("$skip=",!1),zt=yi("$count=",!1),Nt=yi("$apply=",!1),It=Di(["&"],!0,!1),Rt=yi("$at",!1),Pt=yi("$from",!1),qt=yi("$toInclusive",!1),Ht=yi("$to",!1),Qt=yi("*",!1),Ut=yi("/$count",!1),Mt=yi(";",!1),Gt=Di([" "],!1,!1),Jt=Di(['"',"&"],!0,!1),Kt=yi('"',!1),Vt=yi("\\\\",!1),Wt=yi('\\"',!1),Xt=Di(['"'],!0,!1),Yt=Di([";",")"],!0,!1),ur=yi(":",!1),tr=yi("any",!1),rr=yi("all",!1),er=yi("asc",!1),nr=yi("desc",!1),sr=yi("$deltatoken=",!1),or=$i("value with double-quoted string"),ir=yi("'",!1),ar=yi(",",!1),cr=yi("[",!1),fr=yi("]",!1),lr=Di([["a","z"],["A","Z"],["0","9"],"-","_",".","~","!","[","]"],!1,!1),Ar=$i("an aliased parameter (@param)"),hr=yi("@",!1),pr=yi("$format=",!1),dr=yi("eq",!1),Cr=yi("ne",!1),vr=yi("lt",!1),Fr=yi("gt",!1),gr=yi("le",!1),br=yi("ge",!1),Br=yi("in",!1),mr=(yi("add",!1),yi("sub",!1),yi("mul",!1),yi("div",!1),yi("mod",!1),$i("navigation with $count")),Er=$i("a reference"),yr=$i("null"),Dr=yi("null",!1),$r=$i("a json object"),xr=yi("{",!1),wr=Di(["}"],!0,!1),Lr=yi("}",!1),Sr=$i("a json array"),Tr=Di(["]"],!0,!1),jr=$i("a list"),_r=$i("a function name"),kr=Di([["a","z"],["A","Z"]],!1,!1),Or=yi("contains",!0),Zr=yi("endswith",!0),zr=yi("startswith",!0),Nr=yi("matchespattern",!0),Ir=yi("NOT",!0),Rr=yi("AND",!0),Pr=yi("OR",!0),qr=yi("aggregate",!1),Hr=yi("groupby",!1),Qr=yi("filter",!1),Ur=yi("search",!1),Mr=yi("concat",!1),Gr=yi("compute",!1),Jr=yi("top",!1),Kr=yi("skip",!1),Vr=yi("orderby",!1),Wr=yi("com.sap.vocabularies.Hierarchy.v1.TopLevels",!1),Xr=yi("ancestors",!1),Yr=yi("descendants",!1),ue=yi("topcount",!0),te=yi("bottomcount",!0),re=yi("topsum",!0),ee=yi("bottomsum",!0),ne=yi("toppercent",!0),se=yi("bottompercent",!0),oe=yi("with",!1),ie=yi("from",!1),ae=yi("as",!1),ce=yi("rollup",!1),fe=yi("$all",!1),le=Di([")"],!0,!1),Ae=yi("identity",!1),he=yi("HierarchyNodes",!1),pe=yi("$root/",!1),de=yi("HierarchyQualifier",!1),Ce=yi("NodeProperty",!1),ve=yi("Levels",!1),Fe=yi("ExpandLevels",!1),ge=yi('"NodeID"',!1),be=yi('"Levels"',!1),Be=yi("filter(",!1),me=yi(")",!1),Ee=yi("search(",!1),ye=yi("keep start",!1),De=$i("a boolean"),$e=yi("true",!1),xe=yi("false",!1),we=$i("a single quoted string"),Le=yi("''",!1),Se=Di(["'"],!0,!1),Te=$i("a doubled quoted string"),je=($i("a string"),Di([" ","\t","\n","(",")",'"',"&",";"],!0,!1),$i("a time")),_e=Di([["0","9"]],!1,!1),ke=$i("a date"),Oe=yi("-",!1),Ze=yi("T",!1),ze=yi(".",!1),Ne=yi("Z",!1),Ie=Di(["+","-"],!1,!1),Re=$i("a number"),Pe=yi("e",!1),qe=$i("an integer"),He=$i("an identifier"),Qe=Di(["_",["a","z"],["A","Z"]],!1,!1),Ue=Di(["_",["a","z"],["A","Z"],["0","9"],'"',".",'"',["A","Z"],["a","z"],"ª","µ","º",["À","Ö"],["Ø","ö"],["ø","ˁ"],["ˆ","ˑ"],["ˠ","ˤ"],"ˬ","ˮ",["Ͱ","ʹ"],"Ͷ","ͷ",["ͺ","ͽ"],"Ά",["Έ","Ί"],"Ό",["Ύ","Ρ"],["Σ","ϵ"],["Ϸ","ҁ"],["Ҋ","ԧ"],["Ա","Ֆ"],"ՙ",["ա","և"],["א","ת"],["װ","ײ"],["ؠ","ي"],"ٮ","ٯ",["ٱ","ۓ"],"ە","ۥ","ۦ","ۮ","ۯ",["ۺ","ۼ"],"ۿ","ܐ",["ܒ","ܯ"],["ݍ","ޥ"],"ޱ",["ߊ","ߪ"],"ߴ","ߵ","ߺ",["ࠀ","ࠕ"],"ࠚ","ࠤ","ࠨ",["ࡀ","ࡘ"],"ࢠ",["ࢢ","ࢬ"],["ऄ","ह"],"ऽ","ॐ",["क़","ॡ"],["ॱ","ॷ"],["ॹ","ॿ"],["অ","ঌ"],"এ","ঐ",["ও","ন"],["প","র"],"ল",["শ","হ"],"ঽ","ৎ","ড়","ঢ়",["য়","ৡ"],"ৰ","ৱ",["ਅ","ਊ"],"ਏ","ਐ",["ਓ","ਨ"],["ਪ","ਰ"],"ਲ","ਲ਼","ਵ","ਸ਼","ਸ","ਹ",["ਖ਼","ੜ"],"ਫ਼",["ੲ","ੴ"],["અ","ઍ"],["એ","ઑ"],["ઓ","ન"],["પ","ર"],"લ","ળ",["વ","હ"],"ઽ","ૐ","ૠ","ૡ",["ଅ","ଌ"],"ଏ","ଐ",["ଓ","ନ"],["ପ","ର"],"ଲ","ଳ",["ଵ","ହ"],"ଽ","ଡ଼","ଢ଼",["ୟ","ୡ"],"ୱ","ஃ",["அ","ஊ"],["எ","ஐ"],["ஒ","க"],"ங","ச","ஜ","ஞ","ட","ண","த",["ந","ப"],["ம","ஹ"],"ௐ",["అ","ఌ"],["ఎ","ఐ"],["ఒ","న"],["ప","ళ"],["వ","హ"],"ఽ","ౘ","ౙ","ౠ","ౡ",["ಅ","ಌ"],["ಎ","ಐ"],["ಒ","ನ"],["ಪ","ಳ"],["ವ","ಹ"],"ಽ","ೞ","ೠ","ೡ","ೱ","ೲ",["അ","ഌ"],["എ","ഐ"],["ഒ","ഺ"],"ഽ","ൎ","ൠ","ൡ",["ൺ","ൿ"],["අ","ඖ"],["ක","න"],["ඳ","ර"],"ල",["ව","ෆ"],["ก","ะ"],"า","ำ",["เ","ๆ"],"ກ","ຂ","ຄ","ງ","ຈ","ຊ","ຍ",["ດ","ທ"],["ນ","ຟ"],["ມ","ຣ"],"ລ","ວ","ສ","ຫ",["ອ","ະ"],"າ","ຳ","ຽ",["ເ","ໄ"],"ໆ",["ໜ","ໟ"],"ༀ",["ཀ","ཇ"],["ཉ","ཬ"],["ྈ","ྌ"],["က","ဪ"],"ဿ",["ၐ","ၕ"],["ၚ","ၝ"],"ၡ","ၥ","ၦ",["ၮ","ၰ"],["ၵ","ႁ"],"ႎ",["Ⴀ","Ⴥ"],"Ⴧ","Ⴭ",["ა","ჺ"],["ჼ","ቈ"],["ቊ","ቍ"],["ቐ","ቖ"],"ቘ",["ቚ","ቝ"],["በ","ኈ"],["ኊ","ኍ"],["ነ","ኰ"],["ኲ","ኵ"],["ኸ","ኾ"],"ዀ",["ዂ","ዅ"],["ወ","ዖ"],["ዘ","ጐ"],["ጒ","ጕ"],["ጘ","ፚ"],["ᎀ","ᎏ"],["Ꭰ","Ᏼ"],["ᐁ","ᙬ"],["ᙯ","ᙿ"],["ᚁ","ᚚ"],["ᚠ","ᛪ"],["ᜀ","ᜌ"],["ᜎ","ᜑ"],["ᜠ","ᜱ"],["ᝀ","ᝑ"],["ᝠ","ᝬ"],["ᝮ","ᝰ"],["ក","ឳ"],"ៗ","ៜ",["ᠠ","ᡷ"],["ᢀ","ᢨ"],"ᢪ",["ᢰ","ᣵ"],["ᤀ","ᤜ"],["ᥐ","ᥭ"],["ᥰ","ᥴ"],["ᦀ","ᦫ"],["ᧁ","ᧇ"],["ᨀ","ᨖ"],["ᨠ","ᩔ"],"ᪧ",["ᬅ","ᬳ"],["ᭅ","ᭋ"],["ᮃ","ᮠ"],"ᮮ","ᮯ",["ᮺ","ᯥ"],["ᰀ","ᰣ"],["ᱍ","ᱏ"],["ᱚ","ᱽ"],["ᳩ","ᳬ"],["ᳮ","ᳱ"],"ᳵ","ᳶ",["ᴀ","ᶿ"],["Ḁ","ἕ"],["Ἐ","Ἕ"],["ἠ","ὅ"],["Ὀ","Ὅ"],["ὐ","ὗ"],"Ὑ","Ὓ","Ὕ",["Ὗ","ώ"],["ᾀ","ᾴ"],["ᾶ","ᾼ"],"ι",["ῂ","ῄ"],["ῆ","ῌ"],["ῐ","ΐ"],["ῖ","Ί"],["ῠ","Ῥ"],["ῲ","ῴ"],["ῶ","ῼ"],"ⁱ","ⁿ",["ₐ","ₜ"],"ℂ","ℇ",["ℊ","ℓ"],"ℕ",["ℙ","ℝ"],"ℤ","Ω","ℨ",["K","ℭ"],["ℯ","ℹ"],["ℼ","ℿ"],["ⅅ","ⅉ"],"ⅎ","Ↄ","ↄ",["Ⰰ","Ⱞ"],["ⰰ","ⱞ"],["Ⱡ","ⳤ"],["Ⳬ","ⳮ"],"Ⳳ","ⳳ",["ⴀ","ⴥ"],"ⴧ","ⴭ",["ⴰ","ⵧ"],"ⵯ",["ⶀ","ⶖ"],["ⶠ","ⶦ"],["ⶨ","ⶮ"],["ⶰ","ⶶ"],["ⶸ","ⶾ"],["ⷀ","ⷆ"],["ⷈ","ⷎ"],["ⷐ","ⷖ"],["ⷘ","ⷞ"],"ⸯ","々","〆",["〱","〵"],"〻","〼",["ぁ","ゖ"],["ゝ","ゟ"],["ァ","ヺ"],["ー","ヿ"],["ㄅ","ㄭ"],["ㄱ","ㆎ"],["ㆠ","ㆺ"],["ㇰ","ㇿ"],["㐀","䶵"],["一","鿌"],["ꀀ","ꒌ"],["ꓐ","ꓽ"],["ꔀ","ꘌ"],["ꘐ","ꘟ"],"ꘪ","ꘫ",["Ꙁ","ꙮ"],["ꙿ","ꚗ"],["ꚠ","ꛥ"],["ꜗ","ꜟ"],["Ꜣ","ꞈ"],["Ꞌ","ꞎ"],["Ꞑ","ꞓ"],["Ꞡ","Ɦ"],["ꟸ","ꠁ"],["ꠃ","ꠅ"],["ꠇ","ꠊ"],["ꠌ","ꠢ"],["ꡀ","ꡳ"],["ꢂ","ꢳ"],["ꣲ","ꣷ"],"ꣻ",["ꤊ","ꤥ"],["ꤰ","ꥆ"],["ꥠ","ꥼ"],["ꦄ","ꦲ"],"ꧏ",["ꨀ","ꨨ"],["ꩀ","ꩂ"],["ꩄ","ꩋ"],["ꩠ","ꩶ"],"ꩺ",["ꪀ","ꪯ"],"ꪱ","ꪵ","ꪶ",["ꪹ","ꪽ"],"ꫀ","ꫂ",["ꫛ","ꫝ"],["ꫠ","ꫪ"],["ꫲ","ꫴ"],["ꬁ","ꬆ"],["ꬉ","ꬎ"],["ꬑ","ꬖ"],["ꬠ","ꬦ"],["ꬨ","ꬮ"],["ꯀ","ꯢ"],["가","힣"],["ힰ","ퟆ"],["ퟋ","ퟻ"],["豈","舘"],["並","龎"],["ff","st"],["ﬓ","ﬗ"],"יִ",["ײַ","ﬨ"],["שׁ","זּ"],["טּ","לּ"],"מּ","נּ","סּ","ףּ","פּ",["צּ","ﮱ"],["ﯓ","ﴽ"],["ﵐ","ﶏ"],["ﶒ","ﷇ"],["ﷰ","ﷻ"],["ﹰ","ﹴ"],["ﹶ","ﻼ"],["A","Z"],["a","z"],["ヲ","ᄒ"],["ᅡ","ᅦ"],["ᅧ","ᅬ"],["ᅭ","ᅲ"],["ᅳ","ᅵ"]],!1,!1),Me=$i("a guid"),Ge=$i("a hex value"),Je=Di([["0","9"],["a","f"],["A","F"]],!1,!1),Ke=Di(["/","?"],!0,!1),Ve=Di([["a","z"],["A","Z"],["0","9"],"-",'"',".",'"',"_","~","!","$","'","(",")","*","+",",",";","=",":","@",'"',"/",'"','"',"?",'"'],!1,!1),We=$i("a binary"),Xe=yi("binary'",!1),Ye=Di([["a","z"],["A","Z"],["0","9"],"-","_"],!1,!1),un=yi("==",!1),tn=yi("(",!1),rn=$i("an optional whitespace"),en=Di([" ","\t","\n"],!1,!1),nn=$i("a whitespace"),sn=function(u){Qa=u},on=function(){if(Ua)return Qa.columns=[{args:[{val:1}],as:"$count",func:"count"}],delete Qa.expand,delete Qa.limit,delete Qa.orderBy,Qa.apply?Ya(Qa,Qa.apply):{SELECT:Qa};let u;if(Qa.expand){Qa.columns||(Qa.columns=["*"],u=!0);for(const u of Qa.expand){const t=Qa.columns.findIndex(Ka(u));t>-1&&Qa.columns.splice(t,1),Qa.columns.push(u)}delete Qa.expand}return Qa.count&&Qa.apply&&(Qa.__countAggregated=!0),Qa.apply?Ya(Qa,Qa.apply,u):{SELECT:Qa}},an=function(){Ua=!0},cn=function(u){return!za.includes(u)&&{from:{ref:[u]}}},fn=function(u){return[u]},ln=function(u,t){return t},An=function(u,t){if(t=t&&t[1],!u&&!t)return{from:{ref:[""]}};if(!u&&t&&t.from)return t.from.ref.unshift(""),t;const[r,e]=u,n=[];if(e?e.length>2?n.push({id:r,where:e[1].map((u=>u.val&&u.val.match&&u.val.match(/^"(.*)"$/)?{val:u.val.match(/^"(.*)"$/)[1]}:u))}):n.push({id:r,where:[]}):qa?n.push(`${"object"==typeof r&&"val"in r?r.val:r}`):"object"==typeof r&&"string"==typeof r.val&&r.val.match(/^[1-9]\d*$|^0$/)?n.push({val:Ma(r.val)}):n.push(r),t&&t.from){const u=t.from.ref;Object.prototype.hasOwnProperty.call(u[0],"val")&&(n[n.length-1]={id:n[n.length-1],where:[u.shift()]}),n.push(...u)}const s={from:{ref:n}};return t&&t.columns&&(s.columns=t.columns),s},hn=function(u){return[u]},pn=function(u,t,r){const e=[u,"=",t];return r&&e.push("and",...r[1]),e},dn=function(u,t){return t},Cn=function(u,t,r){return r},vn=function(u,t,r){const e=[t?{id:u,where:t}:u];return r.length&&e.push(...r.map((u=>u.from.ref[0]))),{from:{ref:e}}},Fn=function(u){u&&(Qa.search=u)},gn=function(u){u&&u.apply&&(Qa.apply=u.apply)},bn=function(u){Qa.where=u},Bn=function(u,t){nc(t)},mn=function(u){nc(u,!0)},En=function(u){(Qa.limit||(Qa.limit={})).rows={val:u}},yn=function(u){ec(u)},Dn=function(u){u&&(Qa.search=u)},$n=function(){return cds.env.features.skip_apply_parsing},xn=function(){return null},wn=function(u){return u},Ln=function(){return null},Sn=function(u){return Qa.columns=Array.isArray(Qa.columns)?Qa.columns:[],Qa.columns.find(Ka(u))||Qa.columns.push(u),u},Tn=function(){const u=new Error('"/$count" is not supported for expand operation');throw u.statusCode=501,u},jn=function(u){return u},_n=function(u){if(u.find((u=>u&&void 0!==u.apply))){const u=new Error('"$apply" is not supported for expand operation');throw u.statusCode=501,u}if(Qa.columns){for(const u of Qa.columns)Qa.expand.find(Ka(u))||Qa.expand.push(u);delete Qa.columns}else Array.isArray(Qa.expand)&&-1===Qa.expand.indexOf("*")&&Qa.expand.unshift("*")},kn=function(){Ha.push(Qa),Qa=Qa.expand[Qa.expand.length-1],Qa.expand=[]},On=function(){Qa.expand.length||Qa.expand.push("*"),Qa=Ha.pop()},Zn=function(u){const t="*"===u?{}:u;return t.expand=["*"],Array.isArray(Qa.expand)||(Qa.expand=[]),Qa.expand.find(Ka(t))||Qa.expand.push(t),t},zn=function(u){return u},Nn=function(u){Ga(u,{SELECT:Qa})},In=function(u){return u},Rn=function(u){return u},Pn=function(u){return[{val:u}]},qn=function(u){return[{val:u}]},Hn=function(u){return u},Qn=function(u){return u?[u]:[]},Un=function(u,t){u.push({xpr:t})},Mn=function(u,t){u.push(...t)},Gn=function(u,t){"not"===u[u.length-1]&&"not"===t[0]?u.push({xpr:t}):u.push(...t)},Jn=function(u,t){u.push(t)},Kn=function(u,t){u.push({val:t})},Vn=function(u,t){u.push(...t)},Wn=function(u,t,r){u.push(t,...r)},Xn=function(u){return u},Yn=function(u){return[u]},us=function(u,t){u.push(t)},ts=function(u,t){let r=u.pop();if(!t)return["exists",{ref:[...u,{id:r}]}];let e=[];for(let u=0,n=0;u<t.length;++u){let s=t[u];s.ref&&0===s.ref.length&&"="===t[u+1]?e[n++]={func:"contains",args:[{ref:[r]},t[u+=2]]}:e[n++]=s}return e.length<t.length?u.length?(r=u.pop(),["exists",{ref:[...u,{id:r,where:e}]}]):e:["exists",{ref:[...u,{id:r,where:t}]}]},rs=function(u,t){let r=u.pop();return["not","exists",{ref:[...u,{id:r,where:["not",{xpr:[...t]}]}]}]},es=function(u,t){return t},ns=function(u){return u?[u]:[]},ss=function(u,t){u.push({xpr:t})},os=function(u,t){u.push(...t)},is=function(u,t){u.push(t)},as=function(u,t){u.push(...t)},cs=function(u,t){u.push(...t)},fs=function(u,t,r){u.push(t,...r)},ls=function(u){return u},As=function(u,t){return sc(u,t)},hs=function(u){return u},ps=function(u){return u},ds=function(){const u=new Error('"$orderby" does not support lambda');throw u.statusCode=501,u},Cs=function(u,t){return t},vs=function(u,t){return Ra(u,t&&{sort:t})},Fs=function(u){u&&(Qa.count=!0)},gs=function(u,t){return t},bs=function(u,t){if(void 0!==u){t=Array.isArray(t)?t:[t];for(let r of t)for(const t in r)if("limit"===t&&r.limit&&u.limit&&u.limit.offset&&r.limit.rows)u.limit.rows=r.limit.rows;else if(u[t]||"groupBy"===t&&(u.where||u.search)||"aggregate"===t&&"groupBy"in u&&!("groupBy"in r)){let e=u;u={apply:e},"limit"===t&&r[t].offset&&e.limit&&e.limit.offset&&e.limit.offset.val&&(r[t].offset+=e.limit.offset.val),e=u,e[t]=r[t]}else u[t]=r[t];return{apply:u}}},Bs=function(u){return u},ms=function(u){return{val:u}},Es=function(u){return u},ys=function(u,t){return t},Ds=function(u,t){return[u,...t]},$s=function(u){return{list:u}},xs=function(u,t){"null"===t?t=null:"true"===t?t=!0:"false"===t&&(t=!1);let r=Qa.from._params??={},e=u.match(/^(\w+)\[(.*)\]$/);for(;e;)e[1]in r||(r[e[1]]=""===e[2]?[]:{}),r=r[e[1]],e=(u=e[2]).match(/^(\w+)\[(.*)\]$/);Array.isArray(r)?r.push(t):r[u]=t},ws=function(u){return"@"+u},Ls=function(u,t){ic(Qa,u,t)},Ss=function(u){if("json"!==u.toLowerCase()){const u=new Error('Only query parameter "json" is allowed in "$format".');throw u.statusCode=501,u}},Ts=function(u,t,r){return[u,Na[t]||t,r]},js=function(u){return{list:u}},_s=function(u,t){return[u,"in",t]},ks=function(u,t){return t},Os=function(u,t){return t?{id:u,where:t}:u},Zs=function(u,t){return{func:"count",as:"$count",args:[{ref:u}]}},zs=function(u,t){return t},Ns=function(u,t){return"null"===u?{val:null}:{ref:[u,...t]}},Is=function(u){return{val:u}},Rs=function(u){return{val:u}},Ps=function(u){return{val:u}},qs=function(u){return{val:u}},Hs=function(u){return"number"==typeof u?{val:u}:{val:u,literal:"number"}},Qs=function(u){return{val:u}},Us=function(u){return{val:u}},Ms=function(u){return{val:u}},Gs=function(){return{val:null}},Js=function(u){return{val:u}},Ks=function(u){return{val:u}},Vs=function(u){return{list:u.replace(/"/g,"").split(",").map((u=>({val:u})))}},Ws=function(u,t){return t},Xs=function(u,t){return[u,...t]},Ys=function(u){return{list:u}},uo=function(u,t){if(Pa&&!(u.toLowerCase()in Pa.functions))throw Object.assign(new Error(`Function "${u}" is not supported`),{statusCode:501});return{func:u.toLowerCase(),args:t}},to=function(u,t){return t},ro=function(u,t){return[u,...t]},eo=function(u){return u.length?u[0]:u},no=function(u,t,r){return{func:u.toLowerCase(),args:[t,r]}},so=function(){return"not"},oo=function(){return"and"},io=function(){return"or"},ao=function(u){return u},co=function(u){return u},fo=function(u){return u},lo=function(u){return u},Ao=function(u){return u},ho=function(u){return u},po=function(u){return u},Co=function(u){return u},vo=function(u){return u},Fo=function(u){return u},go=function(u){return{ancestors:u}},bo=function(u){return{descendants:u}},Bo=function(u,t){if(u=u.toLowerCase(),!Ia[u])throw Object.assign(new Error(`Transformation "${u}" in $apply is not yet supported.`),{statusCode:501});return{aggregate:[{func:u,args:t}]}},mo=function(u){return u},Eo=function(u,t){return t},yo=function(u,t){return{aggregate:[u,...t]}},Do=function(u){return{func:"count",args:[{val:1}],as:u}},$o=function(u){return u},xo=function(u,t,r){return{func:t,args:[u],as:r??u.ref[0]}},wo=function(u){return u.toLowerCase()},Lo=function(u){return u},So=function(u,t){return t},To=function(u,t){return{groupBy:[u,...t]}},jo=function(u,t,r){return r},_o=function(u,t,r){let e={};return e=r?{groupBy:[u,...t],...r.apply}:{groupBy:[u,...t]},e},ko=function(u){return u},Oo=function(u){const t=new Error("Rollup in groupby is not supported yet.");throw t.statusCode=501,t},Zo=function(u){return u},zo=function(u){return{where:u}},No=function(u){if(u=u.trim())return{search:[{val:u}]}},Io=function(u,t){return t},Ro=function(u,t){return{concat:[u,...t]}},Po=function(u,t){return[u,t]},qo=function(){return{identity:!0}},Ho=function(u){return{limit:{rows:{val:u}}}},Qo=function(u){return{limit:{offset:{val:u}}}},Uo=function(u,t){return t},Mo=function(u,t){return{orderBy:[u,...t]}},Go=function(u,t){return t},Jo=function(u,t){return t.forEach((t=>Object.assign(u,t))),{topLevels:u}},Ko=function(u){return{hierarchyNodes:u}},Vo=function(u){return{hierarchyQualifier:u}},Wo=function(u){return{nodeProperty:u}},Xo=function(u){return{levels:u}},Yo=function(u,t){return t},ui=function(u,t){return{expandLevels:[u,...t]}},ti=function(u,t){return Object.assign(u,t)},ri=function(u){return{nodeID:u}},ei=function(u){return{levels:u}},ni=function(u,t,r,e,n,s){return{path:u,hierarchy:t,id:r,nodes:e,keepStart:s?.keepStart||!1}},si=function(u,t){return t},oi=function(u,t){return[u,...t]},ii=function(u){return{filter:u}},ai=function(u){return{search:u}},ci=function(){return{keepStart:!0}},fi=function(u){return"true"===u},li=function(u){return u.replace(/''/g,"'")},Ai=function(u){return u.replace(/\\\\/g,"\\").replace(/\\"/g,'"')},hi=function(u){if(u.split("-")[0].length>4)throw Object.assign(new Error(`The type Edm.DateTimeOffset is not compatible with "${u}"`),{statusCode:400});return u},pi=function(u){return Ma(u)},di=function(u){return parseInt(u)},Ci=function(u){return u},vi=function(u){return{val:u}},Fi=function(u){return cds.env.features.base64_binaries?Ja(u):Buffer.from(u,"base64")},gi=0|t.peg$currPos,bi=[{line:1,column:1}],Bi=gi,mi=t.peg$maxFailExpected||[],Ei=0|t.peg$silentFails;if(t.startRule){if(!(t.startRule in s))throw new Error("Can't start parsing from rule \""+t.startRule+'".');o=s[t.startRule]}function yi(u,t){return{type:"literal",text:u,ignoreCase:t}}function Di(u,t,r){return{type:"class",parts:u,inverted:t,ignoreCase:r}}function $i(u){return{type:"other",description:u}}function xi(t){var r,e=bi[t];if(e)return e;if(t>=bi.length)r=bi.length-1;else for(r=t;!bi[--r];);for(e={line:(e=bi[r]).line,column:e.column};r<t;)10===u.charCodeAt(r)?(e.line++,e.column=1):e.column++,r++;return bi[t]=e,e}function wi(u,t,r){var e=xi(u),s=xi(t),o={source:n,start:{offset:u,line:e.line,column:e.column},end:{offset:t,line:s.line,column:s.column}};return r&&n&&"function"==typeof n.offset&&(o.start=n.offset(o.start),o.end=n.offset(o.end)),o}function Li(u){gi<Bi||(gi>Bi&&(Bi=gi,mi=[]),mi.push(u))}function Si(u,t,r){return new peg$SyntaxError(peg$SyntaxError.buildMessage(u,t),u,t,r)}function Ti(){var t,r,n,s,o,f,l,A,h,p,d,C,v,F,g,b,B;if(t=gi,47===u.charCodeAt(gi)?(r=i,gi++):(r=e,0===Ei&&Li(mt)),r===e&&(r=null),n=gi,(s=ji())!==e&&(s=sn(s)),(n=s)!==e){if(s=gi,o=Oa(),63===u.charCodeAt(gi)?(f=a,gi++):(f=e,0===Ei&&Li(Et)),f!==e){if(l=Oa(),A=gi,38===u.charCodeAt(gi)?(h=c,gi++):(h=e,0===Ei&&Li(yt)),h===e&&(h=null),p=Oa(),(d=Oi())!==e){if(C=[],v=gi,F=Oa(),g=[],38===u.charCodeAt(gi)?(b=c,gi++):(b=e,0===Ei&&Li(yt)),b!==e)for(;b!==e;)g.push(b),38===u.charCodeAt(gi)?(b=c,gi++):(b=e,0===Ei&&Li(yt));else g=e;for(g!==e?(b=Oa(),(B=Oi())!==e?v=F=[F,g,b,B]:(gi=v,v=e)):(gi=v,v=e);v!==e;){if(C.push(v),v=gi,F=Oa(),g=[],38===u.charCodeAt(gi)?(b=c,gi++):(b=e,0===Ei&&Li(yt)),b!==e)for(;b!==e;)g.push(b),38===u.charCodeAt(gi)?(b=c,gi++):(b=e,0===Ei&&Li(yt));else g=e;g!==e?(b=Oa(),(B=Oi())!==e?v=F=[F,g,b,B]:(gi=v,v=e)):(gi=v,v=e)}A=h=[h,p,d,C]}else gi=A,A=e;A===e&&(A=null),s=o=[o,f,l,A]}else gi=s,s=e;s===e&&(s=null),o=Oa(),t=on()}else gi=t,t=e;return t}function ji(){var t,r,n,s,o,a,c;return t=gi,u.substr(gi,6)===f?(r=f,gi+=6):(r=e,0===Ei&&Li(Dt)),r!==e&&(r=an()),(t=r)===e&&(t=gi,r=gi,u.substr(gi,4)===l?(n=l,gi+=4):(n=e,0===Ei&&Li($t)),n===e&&(u.substr(gi,6)===A?(n=A,gi+=6):(n=e,0===Ei&&Li(xt))),(r=n!==e?u.substring(r,gi):n)!==e&&(r=cn(r)),(t=r)===e&&(t=gi,r=gi,(n=wa())!==e?(s=gi,(o=_a())!==e&&(a=ka())!==e?s=o=[o,a]:(gi=s,s=e),s===e&&(s=gi,(o=_a())!==e&&(a=_i())!==e&&(c=ka())!==e?s=o=[o,a,c]:(gi=s,s=e)),s===e&&(s=null),o=gi,Ei++,a=Ta(),Ei--,a===e?o=void 0:(gi=o,o=e),o!==e?r=n=[n,s,o]:(gi=r,r=e)):(gi=r,r=e),r===e&&(r=gi,(n=Ta())!==e&&(n=fn(n)),r=n),r===e&&(r=null),n=gi,s=gi,47===u.charCodeAt(gi)?(o=i,gi++):(o=e,0===Ei&&Li(mt)),o!==e&&(o=ln(r,o)),(s=o)!==e?((o=ji())===e&&(o=null),n=s=[s,o]):(gi=n,n=e),n===e&&(n=null),t=An(r,n))),t}function _i(){var t,r,n,s,o,i,a;return t=gi,(r=ea())!==e&&(r=hn(r)),(t=r)===e&&(t=gi,(r=ra())!==e?(Oa(),61===u.charCodeAt(gi)?(n=h,gi++):(n=e,0===Ei&&Li(wt)),n!==e?(Oa(),(s=ea())!==e?(o=gi,(i=ja())!==e&&(a=_i())!==e?o=i=[i,a]:(gi=o,o=e),o===e&&(o=null),t=pn(r,s,o)):(gi=t,t=e)):(gi=t,t=e)):(gi=t,t=e)),t}function ki(){var t,r,n,s,o,a,c;if(t=gi,(r=wa())!==e){for(n=gi,(s=_a())!==e&&(o=ka())!==e?n=s=[s,o]:(gi=n,n=e),n===e&&(n=gi,(s=_a())!==e&&(o=_i())!==e&&(a=ka())!==e?n=dn(r,o):(gi=n,n=e)),n===e&&(n=null),s=[],o=gi,47===u.charCodeAt(gi)?(a=i,gi++):(a=e,0===Ei&&Li(mt)),a!==e&&(c=ki())!==e?o=Cn(r,n,c):(gi=o,o=e);o!==e;)s.push(o),o=gi,47===u.charCodeAt(gi)?(a=i,gi++):(a=e,0===Ei&&Li(mt)),a!==e&&(c=ki())!==e?o=Cn(r,n,c):(gi=o,o=e);t=vn(r,n,s)}else gi=t,t=e;return t}function Oi(){var t,r,n,s;return t=gi,u.substr(gi,11)===p?(r=p,gi+=11):(r=e,0===Ei&&Li(Lt)),r!==e?(n=Oa(),s=function(){var t,r;t=gi,r=function(){var t,r,n;t=gi,r=[],n=u.charAt(gi),gt.test(n)?gi++:(n=e,0===Ei&&Li(Ve));if(n!==e)for(;n!==e;)r.push(n),n=u.charAt(gi),gt.test(n)?gi++:(n=e,0===Ei&&Li(Ve));else r=e;t=r!==e?u.substring(t,gi):r;return t}(),r===e&&(r=null);return r=Nn(r),t=r,t}(),t=r=[r,n,s]):(gi=t,t=e),t===e&&(t=gi,u.substr(gi,8)===d?(r=d,gi+=8):(r=e,0===Ei&&Li(St)),r!==e?(n=Oa(),s=function(){var t,r;t=gi,r=function(){var t,r,n,s,o,i,a,c,f,l,A,h;t=gi,r=gi,n=[],s=gi,o=gi,i=[],a=u.charAt(gi),et.test(a)?gi++:(a=e,0===Ei&&Li(Gt));for(;a!==e;)i.push(a),a=u.charAt(gi),et.test(a)?gi++:(a=e,0===Ei&&Li(Gt));o=u.substring(o,gi),i=[],a=u.charAt(gi),nt.test(a)?gi++:(a=e,0===Ei&&Li(Jt));if(a!==e)for(;a!==e;)i.push(a),a=u.charAt(gi),nt.test(a)?gi++:(a=e,0===Ei&&Li(Jt));else i=e;if(i===e){if(i=[],a=gi,34===u.charCodeAt(gi)?(c=T,gi++):(c=e,0===Ei&&Li(Kt)),c!==e){if(f=[],u.substr(gi,2)===j?(l=j,gi+=2):(l=e,0===Ei&&Li(Vt)),l===e&&(u.substr(gi,2)===_?(l=_,gi+=2):(l=e,0===Ei&&Li(Wt)),l===e&&(l=u.charAt(gi),st.test(l)?gi++:(l=e,0===Ei&&Li(Xt)))),l!==e)for(;l!==e;)f.push(l),u.substr(gi,2)===j?(l=j,gi+=2):(l=e,0===Ei&&Li(Vt)),l===e&&(u.substr(gi,2)===_?(l=_,gi+=2):(l=e,0===Ei&&Li(Wt)),l===e&&(l=u.charAt(gi),st.test(l)?gi++:(l=e,0===Ei&&Li(Xt))));else f=e;if(f!==e)if(34===u.charCodeAt(gi)?(l=T,gi++):(l=e,0===Ei&&Li(Kt)),l!==e){for(A=[],h=u.charAt(gi),et.test(h)?gi++:(h=e,0===Ei&&Li(Gt));h!==e;)A.push(h),h=u.charAt(gi),et.test(h)?gi++:(h=e,0===Ei&&Li(Gt));a=c=[c,f,l,A]}else gi=a,a=e;else gi=a,a=e}else gi=a,a=e;if(a!==e)for(;a!==e;)if(i.push(a),a=gi,34===u.charCodeAt(gi)?(c=T,gi++):(c=e,0===Ei&&Li(Kt)),c!==e){if(f=[],u.substr(gi,2)===j?(l=j,gi+=2):(l=e,0===Ei&&Li(Vt)),l===e&&(u.substr(gi,2)===_?(l=_,gi+=2):(l=e,0===Ei&&Li(Wt)),l===e&&(l=u.charAt(gi),st.test(l)?gi++:(l=e,0===Ei&&Li(Xt)))),l!==e)for(;l!==e;)f.push(l),u.substr(gi,2)===j?(l=j,gi+=2):(l=e,0===Ei&&Li(Vt)),l===e&&(u.substr(gi,2)===_?(l=_,gi+=2):(l=e,0===Ei&&Li(Wt)),l===e&&(l=u.charAt(gi),st.test(l)?gi++:(l=e,0===Ei&&Li(Xt))));else f=e;if(f!==e)if(34===u.charCodeAt(gi)?(l=T,gi++):(l=e,0===Ei&&Li(Kt)),l!==e){for(A=[],h=u.charAt(gi),et.test(h)?gi++:(h=e,0===Ei&&Li(Gt));h!==e;)A.push(h),h=u.charAt(gi),et.test(h)?gi++:(h=e,0===Ei&&Li(Gt));a=c=[c,f,l,A]}else gi=a,a=e;else gi=a,a=e}else gi=a,a=e;else i=e}i!==e?s=o=[o,i]:(gi=s,s=e);if(s!==e)for(;s!==e;){for(n.push(s),s=gi,o=gi,i=[],a=u.charAt(gi),et.test(a)?gi++:(a=e,0===Ei&&Li(Gt));a!==e;)i.push(a),a=u.charAt(gi),et.test(a)?gi++:(a=e,0===Ei&&Li(Gt));if(o=u.substring(o,gi),i=[],a=u.charAt(gi),nt.test(a)?gi++:(a=e,0===Ei&&Li(Jt)),a!==e)for(;a!==e;)i.push(a),a=u.charAt(gi),nt.test(a)?gi++:(a=e,0===Ei&&Li(Jt));else i=e;if(i===e){if(i=[],a=gi,34===u.charCodeAt(gi)?(c=T,gi++):(c=e,0===Ei&&Li(Kt)),c!==e){if(f=[],u.substr(gi,2)===j?(l=j,gi+=2):(l=e,0===Ei&&Li(Vt)),l===e&&(u.substr(gi,2)===_?(l=_,gi+=2):(l=e,0===Ei&&Li(Wt)),l===e&&(l=u.charAt(gi),st.test(l)?gi++:(l=e,0===Ei&&Li(Xt)))),l!==e)for(;l!==e;)f.push(l),u.substr(gi,2)===j?(l=j,gi+=2):(l=e,0===Ei&&Li(Vt)),l===e&&(u.substr(gi,2)===_?(l=_,gi+=2):(l=e,0===Ei&&Li(Wt)),l===e&&(l=u.charAt(gi),st.test(l)?gi++:(l=e,0===Ei&&Li(Xt))));else f=e;if(f!==e)if(34===u.charCodeAt(gi)?(l=T,gi++):(l=e,0===Ei&&Li(Kt)),l!==e){for(A=[],h=u.charAt(gi),et.test(h)?gi++:(h=e,0===Ei&&Li(Gt));h!==e;)A.push(h),h=u.charAt(gi),et.test(h)?gi++:(h=e,0===Ei&&Li(Gt));a=c=[c,f,l,A]}else gi=a,a=e;else gi=a,a=e}else gi=a,a=e;if(a!==e)for(;a!==e;)if(i.push(a),a=gi,34===u.charCodeAt(gi)?(c=T,gi++):(c=e,0===Ei&&Li(Kt)),c!==e){if(f=[],u.substr(gi,2)===j?(l=j,gi+=2):(l=e,0===Ei&&Li(Vt)),l===e&&(u.substr(gi,2)===_?(l=_,gi+=2):(l=e,0===Ei&&Li(Wt)),l===e&&(l=u.charAt(gi),st.test(l)?gi++:(l=e,0===Ei&&Li(Xt)))),l!==e)for(;l!==e;)f.push(l),u.substr(gi,2)===j?(l=j,gi+=2):(l=e,0===Ei&&Li(Vt)),l===e&&(u.substr(gi,2)===_?(l=_,gi+=2):(l=e,0===Ei&&Li(Wt)),l===e&&(l=u.charAt(gi),st.test(l)?gi++:(l=e,0===Ei&&Li(Xt))));else f=e;if(f!==e)if(34===u.charCodeAt(gi)?(l=T,gi++):(l=e,0===Ei&&Li(Kt)),l!==e){for(A=[],h=u.charAt(gi),et.test(h)?gi++:(h=e,0===Ei&&Li(Gt));h!==e;)A.push(h),h=u.charAt(gi),et.test(h)?gi++:(h=e,0===Ei&&Li(Gt));a=c=[c,f,l,A]}else gi=a,a=e;else gi=a,a=e}else gi=a,a=e;else i=e}i!==e?s=o=[o,i]:(gi=s,s=e)}else n=e;r=n!==e?u.substring(r,gi):n;r!==e&&(r=Pn(r));return t=r,t}(),r!==e&&(r=Rn(r));t=r,t===e&&(t=Oa());return t}(),s!==e?t=Fn(s):(gi=t,t=e)):(gi=t,t=e),t===e&&(t=gi,(r=Zi())!==e&&(r=gn(r)),(t=r)===e&&(t=function(){var t,r,n,s;t=gi,u.substr(gi,3)===y?(r=y,gi+=3):(r=e,0===Ei&&Li(Rt));r===e&&(u.substr(gi,5)===D?(r=D,gi+=5):(r=e,0===Ei&&Li(Pt)),r===e&&(u.substr(gi,12)===$?(r=$,gi+=12):(r=e,0===Ei&&Li(qt)),r===e&&(u.substr(gi,3)===x?(r=x,gi+=3):(r=e,0===Ei&&Li(Ht)))));r!==e?(61===u.charCodeAt(gi)?(n=h,gi++):(n=e,0===Ei&&Li(wt)),n!==e&&(s=$a())!==e?t=r=[r,n,s]:(gi=t,t=e)):(gi=t,t=e);return t}(),t===e&&(t=function(){var t,r,n,s,o;t=gi,u.substr(gi,8)===U?(r=U,gi+=8):(r=e,0===Ei&&Li(pr));if(r!==e){for(n=gi,s=[],o=u.charAt(gi),rt.test(o)?gi++:(o=e,0===Ei&&Li(It));o!==e;)s.push(o),o=u.charAt(gi),rt.test(o)?gi++:(o=e,0===Ei&&Li(It));n=u.substring(n,gi),t=Ss(n)}else gi=t,t=e;return t}(),t===e&&(t=function(){var t,r,n,s,o,i;t=gi,r=gi,n=[],s=u.charAt(gi),it.test(s)?gi++:(s=e,0===Ei&&Li(lr));if(s!==e)for(;s!==e;)n.push(s),s=u.charAt(gi),it.test(s)?gi++:(s=e,0===Ei&&Li(lr));else n=e;r=n!==e?u.substring(r,gi):n;if(r!==e){for(61===u.charCodeAt(gi)?(n=h,gi++):(n=e,0===Ei&&Li(wt)),n===e&&(n=null),s=gi,o=[],i=u.charAt(gi),rt.test(i)?gi++:(i=e,0===Ei&&Li(It));i!==e;)o.push(i),i=u.charAt(gi),rt.test(i)?gi++:(i=e,0===Ei&&Li(It));s=u.substring(s,gi),t=xs(r,s)}else gi=t,t=e;return t}(),t===e&&(t=function(){var t,r,n,s,o;t=gi,r=Wi(),r!==e?(61===u.charCodeAt(gi)?(n=h,gi++):(n=e,0===Ei&&Li(wt)),n!==e?(s=gi,Ei++,o=Wi(),Ei--,o===e?s=void 0:(gi=s,s=e),s!==e?(o=function(){var t,r,n,s;t=ea(),t===e&&(t=na())===e&&(t=sa())===e&&(t=gi,91===u.charCodeAt(gi)?(r=q,gi++):(r=e,0===Ei&&Li(cr)),r!==e?(n=function(){var t,r,n,s,o,i;if(t=gi,r=Vi(),r!==e){for(n=[],s=gi,44===u.charCodeAt(gi)?(o=P,gi++):(o=e,0===Ei&&Li(ar)),o!==e&&(i=Vi())!==e?s=ys(r,i):(gi=s,s=e);s!==e;)n.push(s),s=gi,44===u.charCodeAt(gi)?(o=P,gi++):(o=e,0===Ei&&Li(ar)),o!==e&&(i=Vi())!==e?s=ys(r,i):(gi=s,s=e);t=Ds(r,n)}else gi=t,t=e;return t}(),n!==e?(93===u.charCodeAt(gi)?(s=H,gi++):(s=e,0===Ei&&Li(fr)),s!==e?t=$s(n):(gi=t,t=e)):(gi=t,t=e)):(gi=t,t=e));return t}(),o!==e?t=Ls(r,o):(gi=t,t=e)):(gi=t,t=e)):(gi=t,t=e)):(gi=t,t=e);return t}(),t===e&&(t=function(){var t,r,n,s;t=gi,u.substr(gi,12)===I?(r=I,gi+=12):(r=e,0===Ei&&Li(sr));if(r!==e){for(Oa(),n=[],s=u.charAt(gi),rt.test(s)?gi++:(s=e,0===Ei&&Li(It));s!==e;)n.push(s),s=u.charAt(gi),rt.test(s)?gi++:(s=e,0===Ei&&Li(It));t=Bs(n)}else gi=t,t=e;return t}()))))))),t}function Zi(){var t,r,n,s,o,i,a,c;if(t=gi,u.substr(gi,8)===C?(r=C,gi+=8):(r=e,0===Ei&&Li(Tt)),r!==e)if(n=Oa(),(s=zi())!==e){for(o=[],i=gi,(a=ja())!==e&&(c=zi())!==e?i=a=[a,c]:(gi=i,i=e);i!==e;)o.push(i),i=gi,(a=ja())!==e&&(c=zi())!==e?i=a=[a,c]:(gi=i,i=e);t=r=[r,n,s,o]}else gi=t,t=e;else gi=t,t=e;if(t===e){if(t=gi,u.substr(gi,8)===v?(r=v,gi+=8):(r=e,0===Ei&&Li(jt)),r!==e)if(n=Oa(),(s=Ii())!==e){for(o=[],i=gi,(a=ja())!==e&&(c=Ii())!==e?i=a=[a,c]:(gi=i,i=e);i!==e;)o.push(i),i=gi,(a=ja())!==e&&(c=Ii())!==e?i=a=[a,c]:(gi=i,i=e);i=function(){var t,r;t=gi,u.substr(gi,7)===L?(r=L,gi+=7):(r=e,0===Ei&&Li(Ut));r!==e&&(r=Tn());return t=r,t}(),i===e&&(i=null),t=r=[r,n,s,o,i]}else gi=t,t=e;else gi=t,t=e;if(t===e&&(t=gi,u.substr(gi,8)===F?(r=F,gi+=8):(r=e,0===Ei&&Li(_t)),r!==e?(n=Oa(),(s=Hi())!==e?t=bn(s):(gi=t,t=e)):(gi=t,t=e),t===e)){if(t=gi,u.substr(gi,9)===g?(r=g,gi+=9):(r=e,0===Ei&&Li(kt)),r!==e)if(n=Oa(),(s=Ji())!==e){for(o=[],i=gi,(a=ja())!==e&&(c=Ji())!==e?i=Bn(s,c):(gi=i,i=e);i!==e;)o.push(i),i=gi,(a=ja())!==e&&(c=Ji())!==e?i=Bn(s,c):(gi=i,i=e);t=mn(s)}else gi=t,t=e;else gi=t,t=e;if(t===e&&(t=gi,u.substr(gi,5)===b?(r=b,gi+=5):(r=e,0===Ei&&Li(Ot)),r!==e?(n=Oa(),(s=Ri())!==e?t=En(s):(gi=t,t=e)):(gi=t,t=e),t===e&&(t=gi,u.substr(gi,6)===B?(r=B,gi+=6):(r=e,0===Ei&&Li(Zt)),r!==e?(n=Oa(),(s=Pi())!==e?t=yn(s):(gi=t,t=e)):(gi=t,t=e),t===e&&(t=gi,u.substr(gi,8)===d?(r=d,gi+=8):(r=e,0===Ei&&Li(St)),r!==e?(n=Oa(),(s=qi())!==e?t=Dn(s):(gi=t,t=e)):(gi=t,t=e),t===e&&(t=gi,u.substr(gi,7)===m?(r=m,gi+=7):(r=e,0===Ei&&Li(zt)),r!==e?(n=Oa(),s=function(){var u,t;u=gi,t=Ea(),t!==e&&(t=Fs(t));return u=t,u}(),s!==e?t=r=[r,n,s]:(gi=t,t=e)):(gi=t,t=e),t===e))))){if(t=gi,u.substr(gi,7)===E?(r=E,gi+=7):(r=e,0===Ei&&Li(Nt)),r!==e)if((n=(n=$n())?void 0:e)!==e){for(s=Oa(),o=[],i=u.charAt(gi),rt.test(i)?gi++:(i=e,0===Ei&&Li(It));i!==e;)o.push(i),i=u.charAt(gi),rt.test(i)?gi++:(i=e,0===Ei&&Li(It));t=xn()}else gi=t,t=e;else gi=t,t=e;t===e&&(t=gi,u.substr(gi,7)===E?(r=E,gi+=7):(r=e,0===Ei&&Li(Nt)),r!==e?(n=Oa(),(s=Ki())!==e?t=wn(s):(gi=t,t=e)):(gi=t,t=e),t===e&&(t=gi,u.substr(gi,8)===v?(r=v,gi+=8):(r=e,0===Ei&&Li(jt)),r!==e&&(r=Ln()),t=r))}}}return t}function zi(){var t,r;return t=gi,42===u.charCodeAt(gi)?(r=w,gi++):(r=e,0===Ei&&Li(Qt)),r===e&&(r=ra()),r!==e&&(r=Sn(r)),t=r}function Ni(){var t,r,n,s,o;return t=gi,r=gi,(n=_a())!==e&&(n=kn()),(r=n)!==e?(n=function(){var t,r,n,s,o;for(t=gi,r=[],n=gi,(s=Zi())!==e?(Oa(),59===u.charCodeAt(gi)?(o=S,gi++):(o=e,0===Ei&&Li(Mt)),o===e&&(o=null),n=jn(s)):(gi=n,n=e);n!==e;)r.push(n),n=gi,(s=Zi())!==e?(Oa(),59===u.charCodeAt(gi)?(o=S,gi++):(o=e,0===Ei&&Li(Mt)),o===e&&(o=null),n=jn(s)):(gi=n,n=e);return _n(r)}(),s=gi,(o=ka())!==e&&(o=On()),(s=o)!==e?t=r=[r,n,s]:(gi=t,t=e)):(gi=t,t=e),t}function Ii(){var t,r,n;return t=gi,r=gi,42===u.charCodeAt(gi)?(n=w,gi++):(n=e,0===Ei&&Li(Qt)),n===e&&(n=ra()),n!==e&&(n=Zn(n)),(r=n)!==e?((n=Ni())===e&&(n=null),t=r=[r,n]):(gi=t,t=e),t}function Ri(){var u,t;return u=gi,(t=xa())!==e&&(t=zn(t)),u=t}function Pi(){var u,t;return u=gi,(t=xa())!==e&&(t=In(t)),u=t}function qi(){var t,r,n,s;if(t=gi,r=gi,n=[],s=u.charAt(gi),ot.test(s)?gi++:(s=e,0===Ei&&Li(Yt)),s!==e)for(;s!==e;)n.push(s),s=u.charAt(gi),ot.test(s)?gi++:(s=e,0===Ei&&Li(Yt));else n=e;return(r=n!==e?u.substring(r,gi):n)!==e&&(r=qn(r)),(t=r)===e&&(t=Oa()),t}function Hi(){var u,t;return u=gi,(t=Qi())!==e&&(t=Hn(t)),u=t}function Qi(){var t,r,n,s,o,i,a;if(t=gi,r=gi,(n=ia())===e&&(n=null),r=n=Qn(n),n=gi,(s=_a())!==e&&(o=Qi())!==e&&(i=ka())!==e?n=Un(r,o):(gi=n,n=e),n===e&&(n=gi,(s=Xi())!==e&&(s=Mn(r,s)),(n=s)===e&&(n=gi,(s=Ui())!==e&&(s=Gn(r,s)),(n=s)===e&&(n=gi,s=function(){var t,r,n,s;t=gi,r=u.substr(gi,8),r.toLowerCase()===ru?gi+=8:(r=e,0===Ei&&Li(Or));r===e&&((r=u.substr(gi,8)).toLowerCase()===eu?gi+=8:(r=e,0===Ei&&Li(Zr)),r===e&&((r=u.substr(gi,10)).toLowerCase()===nu?gi+=10:(r=e,0===Ei&&Li(zr)),r===e&&((r=u.substr(gi,14)).toLowerCase()===su?gi+=14:(r=e,0===Ei&&Li(Nr)))));r!==e&&_a()!==e&&(n=ta())!==e&&ja()!==e&&(s=ta())!==e&&ka()!==e?t=no(r,n,s):(gi=t,t=e);return t}(),s!==e&&(s=Jn(r,s)),(n=s)===e&&(n=gi,(s=Ea())!==e&&(s=Kn(r,s)),(n=s)===e&&(n=gi,(s=ua())!==e&&(s=Vn(r,s)),n=s))))),n!==e){for(s=[],o=gi,(i=aa())===e&&(i=ca()),i!==e&&(a=Qi())!==e?o=Wn(r,i,a):(gi=o,o=e);o!==e;)s.push(o),o=gi,(i=aa())===e&&(i=ca()),i!==e&&(a=Qi())!==e?o=Wn(r,i,a):(gi=o,o=e);t=Xn(r)}else gi=t,t=e;return t}function Ui(){var t,r,n,s,o,a,c;if(t=gi,r=gi,(n=wa())!==e&&(n=Yn(n)),(r=n)!==e)if(47===u.charCodeAt(gi)?(n=i,gi++):(n=e,0===Ei&&Li(mt)),n!==e){for(s=[],o=gi,(a=wa())!==e?(47===u.charCodeAt(gi)?(c=i,gi++):(c=e,0===Ei&&Li(mt)),c!==e?o=us(r,a):(gi=o,o=e)):(gi=o,o=e);o!==e;)s.push(o),o=gi,(a=wa())!==e?(47===u.charCodeAt(gi)?(c=i,gi++):(c=e,0===Ei&&Li(mt)),c!==e?o=us(r,a):(gi=o,o=e)):(gi=o,o=e);o=gi,a=function(){var t,r,n;t=gi,u.substr(gi,3)===O?(r=O,gi+=3):(r=e,0===Ei&&Li(tr));r!==e&&_a()!==e?((n=Gi())===e&&(n=null),ka()!==e?t=hs(n):(gi=t,t=e)):(gi=t,t=e);return t}(),a!==e&&(a=ts(r,a)),(o=a)===e&&(o=gi,a=function(){var t,r,n;t=gi,u.substr(gi,3)===Z?(r=Z,gi+=3):(r=e,0===Ei&&Li(rr));r!==e&&_a()!==e&&(n=Gi())!==e&&ka()!==e?t=ps(n):(gi=t,t=e);return t}(),a!==e&&(a=rs(r,a)),o=a),o!==e?t=es(r,o):(gi=t,t=e)}else gi=t,t=e;else gi=t,t=e;return t}function Mi(){var u,t,r,n,s,o,i;if(u=gi,t=gi,(r=ia())===e&&(r=null),t=r=ns(r),r=gi,(n=_a())!==e&&(s=Mi())!==e&&(o=ka())!==e?r=ss(t,s):(gi=r,r=e),r===e&&(r=gi,(n=Xi())!==e&&(n=os(t,n)),(r=n)===e&&(r=gi,(n=oa())!==e&&(n=is(t,n)),(r=n)===e&&(r=gi,(n=Ui())!==e&&(n=as(t,n)),(r=n)===e&&(r=gi,(n=ua())!==e&&(n=cs(t,n)),r=n)))),r!==e){for(n=[],s=gi,(o=aa())===e&&(o=ca()),o!==e&&(i=Mi())!==e?s=fs(t,o,i):(gi=s,s=e);s!==e;)n.push(s),s=gi,(o=aa())===e&&(o=ca()),o!==e&&(i=Mi())!==e?s=fs(t,o,i):(gi=s,s=e);u=ls(t)}else gi=u,u=e;return u}function Gi(){var t,r,n,s;return t=gi,(r=wa())!==e?(58===u.charCodeAt(gi)?(n=k,gi++):(n=e,0===Ei&&Li(ur)),n!==e&&(s=Mi())!==e?t=As(r,s):(gi=t,t=e)):(gi=t,t=e),t}function Ji(){var t,r,n,s,o;return t=gi,r=gi,(n=Ui())!==e&&(n=ds()),(r=n)===e&&(r=oa())===e&&(r=ra()),r!==e?(n=gi,Za()!==e?(s=gi,u.substr(gi,3)===z?(o=z,gi+=3):(o=e,0===Ei&&Li(er)),o===e&&(u.substr(gi,4)===N?(o=N,gi+=4):(o=e,0===Ei&&Li(nr))),(s=o!==e?u.substring(s,gi):o)!==e?n=Cs(r,s):(gi=n,n=e)):(gi=n,n=e),n===e&&(n=null),t=vs(r,n)):(gi=t,t=e),t}function Ki(){var t,r,n,s,o,a;if(t=gi,(r=fa())!==e){for(n=[],s=gi,47===u.charCodeAt(gi)?(o=i,gi++):(o=e,0===Ei&&Li(mt)),o!==e&&(a=fa())!==e?s=gs(r,a):(gi=s,s=e);s!==e;)n.push(s),s=gi,47===u.charCodeAt(gi)?(o=i,gi++):(o=e,0===Ei&&Li(mt)),o!==e&&(a=fa())!==e?s=gs(r,a):(gi=s,s=e);t=bs(r,n)}else gi=t,t=e;return t}function Vi(){var t,r,n;return Ei++,t=gi,(r=Da())!==e&&(r=ms(r)),(t=r)===e&&(t=gi,r=gi,Ei++,39===u.charCodeAt(gi)?(n=R,gi++):(n=e,0===Ei&&Li(ir)),Ei--,n===e?r=void 0:(gi=r,r=e),r!==e&&(n=ea())!==e?t=Es(n):(gi=t,t=e)),Ei--,t===e&&(r=e,0===Ei&&Li(or)),t}function Wi(){var t,r,n;return Ei++,t=gi,64===u.charCodeAt(gi)?(r=Q,gi++):(r=e,0===Ei&&Li(hr)),r!==e&&(n=wa())!==e?t=ws(n):(gi=t,t=e),Ei--,t===e&&(r=e,0===Ei&&Li(Ar)),t}function Xi(){var t,r,n,s,o;return t=gi,(r=ta())!==e&&Za()!==e?(n=gi,u.substr(gi,2)===M?(s=M,gi+=2):(s=e,0===Ei&&Li(dr)),s===e&&(u.substr(gi,2)===G?(s=G,gi+=2):(s=e,0===Ei&&Li(Cr)),s===e&&(u.substr(gi,2)===J?(s=J,gi+=2):(s=e,0===Ei&&Li(vr)),s===e&&(u.substr(gi,2)===K?(s=K,gi+=2):(s=e,0===Ei&&Li(Fr)),s===e&&(u.substr(gi,2)===V?(s=V,gi+=2):(s=e,0===Ei&&Li(gr)),s===e&&(u.substr(gi,2)===W?(s=W,gi+=2):(s=e,0===Ei&&Li(br))))))),(n=s!==e?u.substring(n,gi):s)!==e&&(s=Za())!==e&&(o=ta())!==e?t=Ts(r,n,o):(gi=t,t=e)):(gi=t,t=e),t}function Yi(){var t,r;return t=gi,(r=Wi())!==e&&(r=js(r)),(t=r)===e&&(t=function(){var t,r,n;Ei++,t=gi,r=_a(),r!==e?(n=function(){var t,r,n,s,o,i;if(t=gi,r=ea(),r!==e){for(n=[],s=gi,44===u.charCodeAt(gi)?(o=P,gi++):(o=e,0===Ei&&Li(ar)),o!==e&&(i=ea())!==e?s=Ws(r,i):(gi=s,s=e);s!==e;)n.push(s),s=gi,44===u.charCodeAt(gi)?(o=P,gi++):(o=e,0===Ei&&Li(ar)),o!==e&&(i=ea())!==e?s=Ws(r,i):(gi=s,s=e);t=Xs(r,n)}else gi=t,t=e;return t}(),n!==e&&ka()!==e?t=Ys(n):(gi=t,t=e)):(gi=t,t=e);Ei--,t===e&&(r=e,0===Ei&&Li(jr));return t}()),t}function ua(){var t,r,n,s;return t=gi,(r=ta())!==e&&Za()!==e?(u.substr(gi,2)===X?(n=X,gi+=2):(n=e,0===Ei&&Li(Br)),n!==e&&Za()!==e&&(s=Yi())!==e?t=_s(r,s):(gi=t,t=e)):(gi=t,t=e),t}function ta(){var t;return(t=function(){var t,r,n,s,o,a,c;Ei++,t=gi,r=[],n=gi,(s=wa())!==e?(o=gi,(a=_a())!==e&&(c=_i())!==e&&ka()!==e?o=ks(s,c):(gi=o,o=e),o===e&&(o=null),47===u.charCodeAt(gi)?(a=i,gi++):(a=e,0===Ei&&Li(mt)),a!==e?n=Os(s,o):(gi=n,n=e)):(gi=n,n=e);if(n!==e)for(;n!==e;)r.push(n),n=gi,(s=wa())!==e?(o=gi,(a=_a())!==e&&(c=_i())!==e&&ka()!==e?o=ks(s,c):(gi=o,o=e),o===e&&(o=null),47===u.charCodeAt(gi)?(a=i,gi++):(a=e,0===Ei&&Li(mt)),a!==e?n=Os(s,o):(gi=n,n=e)):(gi=n,n=e);else r=e;r!==e?(u.substr(gi,6)===f?(n=f,gi+=6):(n=e,0===Ei&&Li(Dt)),n!==e?t=Zs(r,n):(gi=t,t=e)):(gi=t,t=e);Ei--,t===e&&(r=e,0===Ei&&Li(mr));return t}())===e&&(t=oa())===e&&(t=ea())===e&&(t=ra())===e&&(t=na())===e&&(t=sa())===e&&(t=function(){var t,r,n,s,o;Ei++,t=gi,91===u.charCodeAt(gi)?(r=q,gi++):(r=e,0===Ei&&Li(cr));if(r!==e){for(n=gi,s=[],o=u.charAt(gi),ct.test(o)?gi++:(o=e,0===Ei&&Li(Tr));o!==e;)s.push(o),o=u.charAt(gi),ct.test(o)?gi++:(o=e,0===Ei&&Li(Tr));n=u.substring(n,gi),93===u.charCodeAt(gi)?(s=H,gi++):(s=e,0===Ei&&Li(fr)),s!==e?t=Vs(n):(gi=t,t=e)}else gi=t,t=e;Ei--,t===e&&(r=e,0===Ei&&Li(jr));return t}()),t}function ra(){var t,r,n,s,o,a;if(Ei++,t=gi,(r=wa())!==e){for(n=[],s=gi,47===u.charCodeAt(gi)?(o=i,gi++):(o=e,0===Ei&&Li(mt)),o!==e&&(a=wa())!==e?s=zs(r,a):(gi=s,s=e);s!==e;)n.push(s),s=gi,47===u.charCodeAt(gi)?(o=i,gi++):(o=e,0===Ei&&Li(mt)),o!==e&&(a=wa())!==e?s=zs(r,a):(gi=s,s=e);t=Ns(r,n)}else gi=t,t=e;return Ei--,t===e&&(r=e,0===Ei&&Li(Er)),t}function ea(){var t,r;return t=gi,(r=Ea())!==e&&(r=Is(r)),(t=r)===e&&(t=gi,(r=$a())!==e&&(r=Rs(r)),(t=r)===e&&(t=gi,r=function(){var t,r,n,s,o,i,a,c,f,l;Ei++,t=gi,r=gi,n=u.charAt(gi),ht.test(n)?gi++:(n=e,0===Ei&&Li(_e));n!==e?(s=u.charAt(gi),ht.test(s)?gi++:(s=e,0===Ei&&Li(_e)),s!==e?(58===u.charCodeAt(gi)?(o=k,gi++):(o=e,0===Ei&&Li(ur)),o!==e?(i=u.charAt(gi),ht.test(i)?gi++:(i=e,0===Ei&&Li(_e)),i!==e?(a=u.charAt(gi),ht.test(a)?gi++:(a=e,0===Ei&&Li(_e)),a!==e?(58===u.charCodeAt(gi)?(c=k,gi++):(c=e,0===Ei&&Li(ur)),c!==e?(f=u.charAt(gi),ht.test(f)?gi++:(f=e,0===Ei&&Li(_e)),f!==e?(l=u.charAt(gi),ht.test(l)?gi++:(l=e,0===Ei&&Li(_e)),l!==e?r=n=[n,s,o,i,a,c,f,l]:(gi=r,r=e)):(gi=r,r=e)):(gi=r,r=e)):(gi=r,r=e)):(gi=r,r=e)):(gi=r,r=e)):(gi=r,r=e)):(gi=r,r=e);t=r!==e?u.substring(t,gi):r;Ei--,t===e&&(r=e,0===Ei&&Li(je));return t}(),r!==e&&(r=Ps(r)),(t=r)===e&&(t=gi,(r=La())!==e&&(r=qs(r)),(t=r)===e&&(t=gi,r=function(){var t,r,n,s,o,i,a,c,f,l,A;Ei++,t=gi,r=gi,Ei++,n=function(){var t,r,n;t=gi,r=[],n=u.charAt(gi),ht.test(n)?gi++:(n=e,0===Ei&&Li(_e));if(n!==e)for(;n!==e;)r.push(n),n=u.charAt(gi),ht.test(n)?gi++:(n=e,0===Ei&&Li(_e));else r=e;r!==e?(45===u.charCodeAt(gi)?(n=Ju,gi++):(n=e,0===Ei&&Li(Oe)),n!==e?t=r=[r,n]:(gi=t,t=e)):(gi=t,t=e);return t}(),Ei--,n===e?r=void 0:(gi=r,r=e);if(r!==e){if(n=gi,s=gi,o=u.charAt(gi),pt.test(o)?gi++:(o=e,0===Ei&&Li(Ie)),o===e&&(o=null),i=[],a=u.charAt(gi),ht.test(a)?gi++:(a=e,0===Ei&&Li(_e)),a!==e)for(;a!==e;)i.push(a),a=u.charAt(gi),ht.test(a)?gi++:(a=e,0===Ei&&Li(_e));else i=e;if(i!==e){if(a=gi,46===u.charCodeAt(gi)?(c=Vu,gi++):(c=e,0===Ei&&Li(ze)),c!==e){if(f=[],l=u.charAt(gi),ht.test(l)?gi++:(l=e,0===Ei&&Li(_e)),l!==e)for(;l!==e;)f.push(l),l=u.charAt(gi),ht.test(l)?gi++:(l=e,0===Ei&&Li(_e));else f=e;f!==e?a=c=[c,f]:(gi=a,a=e)}else gi=a,a=e;if(a===e&&(a=null),c=gi,101===u.charCodeAt(gi)?(f=Xu,gi++):(f=e,0===Ei&&Li(Pe)),f!==e){if(l=[],A=u.charAt(gi),ht.test(A)?gi++:(A=e,0===Ei&&Li(_e)),A!==e)for(;A!==e;)l.push(A),A=u.charAt(gi),ht.test(A)?gi++:(A=e,0===Ei&&Li(_e));else l=e;l!==e?c=f=[f,l]:(gi=c,c=e)}else gi=c,c=e;c===e&&(c=null),s=o=[o,i,a,c]}else gi=s,s=e;(n=s!==e?u.substring(n,gi):s)!==e?t=pi(n):(gi=t,t=e)}else gi=t,t=e;Ei--,t===e&&(r=e,0===Ei&&Li(Re));return t}(),r!==e&&(r=Hs(r)),(t=r)===e&&(t=gi,(r=ya())!==e&&(r=Qs(r)),(t=r)===e&&(t=gi,r=function(){var t,r,n,s,o,i;Ei++,t=gi,u.substr(gi,7)===Yu?(r=Yu,gi+=7):(r=e,0===Ei&&Li(Xe));if(r!==e){if(n=gi,s=gi,o=[],i=u.charAt(gi),bt.test(i)?gi++:(i=e,0===Ei&&Li(Ye)),i!==e)for(;i!==e;)o.push(i),i=u.charAt(gi),bt.test(i)?gi++:(i=e,0===Ei&&Li(Ye));else o=e;o!==e?(u.substr(gi,2)===ut?(i=ut,gi+=2):(i=e,0===Ei&&Li(un)),i===e&&(61===u.charCodeAt(gi)?(i=h,gi++):(i=e,0===Ei&&Li(wt))),i===e&&(i=null),s=o=[o,i]):(gi=s,s=e),(n=s!==e?u.substring(n,gi):s)!==e?(39===u.charCodeAt(gi)?(s=R,gi++):(s=e,0===Ei&&Li(ir)),s!==e?t=Fi(n):(gi=t,t=e)):(gi=t,t=e)}else gi=t,t=e;Ei--,t===e&&(r=e,0===Ei&&Li(We));return t}(),r!==e&&(r=Us(r)),(t=r)===e&&(t=gi,(r=Wi())!==e&&(r=Ms(r)),(t=r)===e&&(t=function(){var t,r;Ei++,t=gi,u.substr(gi,4)===Y?(r=Y,gi+=4):(r=e,0===Ei&&Li(Dr));r!==e&&(r=Gs());t=r,Ei--,t===e&&(r=e,0===Ei&&Li(yr));return t}())))))))),t}function na(){var t,r,n,s,o,i;if(Ei++,t=gi,r=gi,n=gi,123===u.charCodeAt(gi)?(s=uu,gi++):(s=e,0===Ei&&Li(xr)),s!==e){for(o=[],(i=na())===e&&(i=u.charAt(gi),at.test(i)?gi++:(i=e,0===Ei&&Li(wr)));i!==e;)o.push(i),(i=na())===e&&(i=u.charAt(gi),at.test(i)?gi++:(i=e,0===Ei&&Li(wr)));125===u.charCodeAt(gi)?(i=tu,gi++):(i=e,0===Ei&&Li(Lr)),i!==e?n=s=[s,o,i]:(gi=n,n=e)}else gi=n,n=e;return(r=n!==e?u.substring(r,gi):n)!==e&&(r=Js(r)),Ei--,(t=r)===e&&(r=e,0===Ei&&Li($r)),t}function sa(){var t,r,n,s,o,i,a,c;if(Ei++,t=gi,r=gi,n=gi,91===u.charCodeAt(gi)?(s=q,gi++):(s=e,0===Ei&&Li(cr)),s!==e?(o=Oa(),93===u.charCodeAt(gi)?(i=H,gi++):(i=e,0===Ei&&Li(fr)),i!==e?n=s=[s,o,i]:(gi=n,n=e)):(gi=n,n=e),n===e)if(n=gi,91===u.charCodeAt(gi)?(s=q,gi++):(s=e,0===Ei&&Li(cr)),s!==e)if(o=Oa(),123===u.charCodeAt(gi)?(i=uu,gi++):(i=e,0===Ei&&Li(xr)),i!==e){for(a=[],(c=sa())===e&&(c=u.charAt(gi),ct.test(c)?gi++:(c=e,0===Ei&&Li(Tr)));c!==e;)a.push(c),(c=sa())===e&&(c=u.charAt(gi),ct.test(c)?gi++:(c=e,0===Ei&&Li(Tr)));93===u.charCodeAt(gi)?(c=H,gi++):(c=e,0===Ei&&Li(fr)),c!==e?n=s=[s,o,i,a,c]:(gi=n,n=e)}else gi=n,n=e;else gi=n,n=e;return(r=n!==e?u.substring(r,gi):n)!==e&&(r=Ks(r)),Ei--,(t=r)===e&&(r=e,0===Ei&&Li(Sr)),t}function oa(){var t,r,n;return t=gi,r=function(){var t,r,n;if(Ei++,t=gi,r=[],n=u.charAt(gi),ft.test(n)?gi++:(n=e,0===Ei&&Li(kr)),n!==e)for(;n!==e;)r.push(n),n=u.charAt(gi),ft.test(n)?gi++:(n=e,0===Ei&&Li(kr));else r=e;return t=r!==e?u.substring(t,gi):r,Ei--,t===e&&(r=e,0===Ei&&Li(_r)),t}(),r!==e&&_a()!==e?(n=function(){var u,t,r,n,s,o,i;if(u=gi,t=[],r=gi,n=ta(),n!==e){for(s=[],o=gi,ja()!==e&&(i=ta())!==e?o=to(n,i):(gi=o,o=e);o!==e;)s.push(o),o=gi,ja()!==e&&(i=ta())!==e?o=to(n,i):(gi=o,o=e);r=ro(n,s)}else gi=r,r=e;for(;r!==e;)if(t.push(r),r=gi,(n=ta())!==e){for(s=[],o=gi,ja()!==e&&(i=ta())!==e?o=to(n,i):(gi=o,o=e);o!==e;)s.push(o),o=gi,ja()!==e&&(i=ta())!==e?o=to(n,i):(gi=o,o=e);r=ro(n,s)}else gi=r,r=e;return t=eo(t),u=t,u}(),ka()!==e?t=uo(r,n):(gi=t,t=e)):(gi=t,t=e),t}function ia(){var t,r;return t=gi,Oa(),(r=u.substr(gi,3)).toLowerCase()===ou?gi+=3:(r=e,0===Ei&&Li(Ir)),r!==e&&Za()!==e?t=so():(gi=t,t=e),t}function aa(){var t,r;return t=gi,Za()!==e?((r=u.substr(gi,3)).toLowerCase()===iu?gi+=3:(r=e,0===Ei&&Li(Rr)),r!==e&&Za()!==e?t=oo():(gi=t,t=e)):(gi=t,t=e),t}function ca(){var t,r;return t=gi,Za()!==e?((r=u.substr(gi,2)).toLowerCase()===au?gi+=2:(r=e,0===Ei&&Li(Pr)),r!==e&&Za()!==e?t=io():(gi=t,t=e)):(gi=t,t=e),t}function fa(){var t,r,n;return t=gi,u.substr(gi,9)===cu?(r=cu,gi+=9):(r=e,0===Ei&&Li(qr)),r!==e?(n=function(){var u,t,r,n,s,o;if(u=gi,t=_a(),t!==e)if(Oa(),(r=la())!==e){for(n=[],s=gi,Oa(),ja()!==e?(Oa(),(o=la())!==e?s=Eo(r,o):(gi=s,s=e)):(gi=s,s=e);s!==e;)n.push(s),s=gi,Oa(),ja()!==e?(Oa(),(o=la())!==e?s=Eo(r,o):(gi=s,s=e)):(gi=s,s=e);s=Oa(),ka()!==e?u=yo(r,n):(gi=u,u=e)}else gi=u,u=e;else gi=u,u=e;return u}(),n!==e?t=ao(n):(gi=t,t=e)):(gi=t,t=e),t===e&&(t=gi,u.substr(gi,7)===fu?(r=fu,gi+=7):(r=e,0===Ei&&Li(Hr)),r!==e?(n=function(){var u,t,r,n,s,o,i,a;if(u=gi,t=_a(),t!==e)if(_a()!==e)if((r=Ca())!==e){for(n=[],s=gi,(o=ja())!==e&&(i=Ca())!==e?s=So(r,i):(gi=s,s=e);s!==e;)n.push(s),s=gi,(o=ja())!==e&&(i=Ca())!==e?s=So(r,i):(gi=s,s=e);s=gi,(o=ka())!==e&&(o=To(r,n)),(s=o)!==e?(o=gi,(i=ja())!==e&&(a=Ki())!==e?o=jo(r,n,a):(gi=o,o=e),o===e&&(o=null),(i=ka())!==e?u=_o(r,n,o):(gi=u,u=e)):(gi=u,u=e)}else gi=u,u=e;else gi=u,u=e;else gi=u,u=e;return u}(),n!==e?t=co(n):(gi=t,t=e)):(gi=t,t=e),t===e&&(t=gi,u.substr(gi,6)===lu?(r=lu,gi+=6):(r=e,0===Ei&&Li(Qr)),r!==e?(n=function(){var u,t,r,n;u=gi,t=_a(),t!==e?(Oa(),r=gi,(n=Hi())!==e&&(n=Zo(n)),(r=n)!==e?(n=Oa(),ka()!==e?u=zo(r):(gi=u,u=e)):(gi=u,u=e)):(gi=u,u=e);return u}(),n!==e?t=fo(n):(gi=t,t=e)):(gi=t,t=e),t===e&&(t=gi,u.substr(gi,6)===Au?(r=Au,gi+=6):(r=e,0===Ei&&Li(Ur)),r!==e?(n=function(){var t,r,n,s,o;if(t=gi,r=_a(),r!==e){for(n=gi,s=[],o=u.charAt(gi),lt.test(o)?gi++:(o=e,0===Ei&&Li(le));o!==e;)s.push(o),o=u.charAt(gi),lt.test(o)?gi++:(o=e,0===Ei&&Li(le));n=u.substring(n,gi),(s=ka())!==e?t=No(n):(gi=t,t=e)}else gi=t,t=e;return t}(),n!==e?t=lo(n):(gi=t,t=e)):(gi=t,t=e),t===e&&(t=gi,u.substr(gi,6)===hu?(r=hu,gi+=6):(r=e,0===Ei&&Li(Mr)),r!==e?(n=function(){var u,t,r,n,s,o;if(u=gi,t=_a(),t!==e)if(Oa(),(r=Ki())!==e){if(n=[],s=gi,Oa(),ja()!==e?(Oa(),(o=Ki())!==e?s=Io(r,o):(gi=s,s=e)):(gi=s,s=e),s!==e)for(;s!==e;)n.push(s),s=gi,Oa(),ja()!==e?(Oa(),(o=Ki())!==e?s=Io(r,o):(gi=s,s=e)):(gi=s,s=e);else n=e;n!==e?(s=Oa(),ka()!==e?u=Ro(r,n):(gi=u,u=e)):(gi=u,u=e)}else gi=u,u=e;else gi=u,u=e;return u}(),n!==e?t=Ao(n):(gi=t,t=e)):(gi=t,t=e),t===e&&(t=gi,u.substr(gi,7)===pu?(r=pu,gi+=7):(r=e,0===Ei&&Li(Gr)),r!==e?(n=function(){var u,t,r,n,s,o,i,a,c,f;if(u=gi,t=_a(),t!==e)if(r=Oa(),(n=va())!==e){for(s=[],o=gi,i=Oa(),(a=ja())!==e?(c=Oa(),(f=va())!==e?o=i=[i,a,c,f]:(gi=o,o=e)):(gi=o,o=e);o!==e;)s.push(o),o=gi,i=Oa(),(a=ja())!==e?(c=Oa(),(f=va())!==e?o=i=[i,a,c,f]:(gi=o,o=e)):(gi=o,o=e);o=Oa(),(i=ka())!==e?u=t=[t,r,n,s,o,i]:(gi=u,u=e)}else gi=u,u=e;else gi=u,u=e;return u}(),n!==e?t=ho(n):(gi=t,t=e)):(gi=t,t=e),t===e&&(t=gi,u.substr(gi,3)===du?(r=du,gi+=3):(r=e,0===Ei&&Li(Jr)),r!==e?(n=function(){var u,t,r;u=gi,t=_a(),t!==e?(Oa(),(r=Ri())!==e?(Oa(),ka()!==e?u=Ho(r):(gi=u,u=e)):(gi=u,u=e)):(gi=u,u=e);return u}(),n!==e?t=po(n):(gi=t,t=e)):(gi=t,t=e),t===e&&(t=gi,u.substr(gi,4)===Cu?(r=Cu,gi+=4):(r=e,0===Ei&&Li(Kr)),r!==e?(n=function(){var u,t,r;u=gi,t=_a(),t!==e?(Oa(),(r=Pi())!==e?(Oa(),ka()!==e?u=Qo(r):(gi=u,u=e)):(gi=u,u=e)):(gi=u,u=e);return u}(),n!==e?t=Co(n):(gi=t,t=e)):(gi=t,t=e),t===e&&(t=gi,u.substr(gi,7)===vu?(r=vu,gi+=7):(r=e,0===Ei&&Li(Vr)),r!==e?(n=function(){var u,t,r,n,s,o;if(u=gi,t=_a(),t!==e)if(Oa(),(r=Ji())!==e){for(n=[],s=gi,ja()!==e&&(o=Ji())!==e?s=Uo(r,o):(gi=s,s=e);s!==e;)n.push(s),s=gi,ja()!==e&&(o=Ji())!==e?s=Uo(r,o):(gi=s,s=e);s=Oa(),ka()!==e?u=Mo(r,n):(gi=u,u=e)}else gi=u,u=e;else gi=u,u=e;return u}(),n!==e?t=vo(n):(gi=t,t=e)):(gi=t,t=e),t===e&&(t=gi,u.substr(gi,43)===Fu?(r=Fu,gi+=43):(r=e,0===Ei&&Li(Wr)),r!==e?(n=function(){var u,t,r,n,s,o;if(u=gi,t=_a(),t!==e)if(Oa(),(r=Fa())!==e){for(n=[],s=gi,Oa(),ja()!==e?(Oa(),(o=Fa())!==e?s=Go(r,o):(gi=s,s=e)):(gi=s,s=e);s!==e;)n.push(s),s=gi,Oa(),ja()!==e?(Oa(),(o=Fa())!==e?s=Go(r,o):(gi=s,s=e)):(gi=s,s=e);s=Oa(),ka()!==e?u=Jo(r,n):(gi=u,u=e)}else gi=u,u=e;else gi=u,u=e;return u}(),n!==e?t=Fo(n):(gi=t,t=e)):(gi=t,t=e),t===e&&(t=gi,u.substr(gi,9)===gu?(r=gu,gi+=9):(r=e,0===Ei&&Li(Xr)),r!==e&&(n=Ba())!==e?t=go(n):(gi=t,t=e),t===e&&(t=gi,u.substr(gi,11)===bu?(r=bu,gi+=11):(r=e,0===Ei&&Li(Yr)),r!==e&&(n=Ba())!==e?t=bo(n):(gi=t,t=e),t===e&&(t=gi,(r=u.substr(gi,8)).toLowerCase()===Bu?gi+=8:(r=e,0===Ei&&Li(ue)),r===e&&((r=u.substr(gi,11)).toLowerCase()===mu?gi+=11:(r=e,0===Ei&&Li(te)),r===e&&((r=u.substr(gi,6)).toLowerCase()===Eu?gi+=6:(r=e,0===Ei&&Li(re)),r===e&&((r=u.substr(gi,9)).toLowerCase()===yu?gi+=9:(r=e,0===Ei&&Li(ee)),r===e&&((r=u.substr(gi,10)).toLowerCase()===Du?gi+=10:(r=e,0===Ei&&Li(ne)),r===e&&((r=u.substr(gi,13)).toLowerCase()===$u?gi+=13:(r=e,0===Ei&&Li(se))))))),r!==e?(n=function(){var u,t,r,n;u=gi,t=_a(),t!==e?(Oa(),(r=ta())!==e?(Oa(),ja()!==e?(Oa(),(n=ta())!==e?(Oa(),ka()!==e?u=Po(r,n):(gi=u,u=e)):(gi=u,u=e)):(gi=u,u=e)):(gi=u,u=e)):(gi=u,u=e);return u}(),n!==e?t=Bo(r,n):(gi=t,t=e)):(gi=t,t=e),t===e&&(t=gi,r=function(){var t,r;t=gi,u.substr(gi,8)===ju?(r=ju,gi+=8):(r=e,0===Ei&&Li(Ae));r!==e&&(r=qo());return t=r,t}(),r!==e&&(r=mo(r)),t=r))))))))))))),t}function la(){var t,r,n,s;return t=gi,r=gi,u.substr(gi,6)===f?(n=f,gi+=6):(n=e,0===Ei&&Li(Dt)),n!==e&&(s=da())!==e?r=Do(s):(gi=r,r=e),r===e&&(r=Aa()),r!==e&&(r=$o(r)),t=r}function Aa(){var u,t,r,n,s;return u=gi,(t=ra())!==e?((r=ha())===e&&(r=null),(n=pa())===e&&(n=null),(s=da())===e&&(s=null),u=xo(t,r,s)):(gi=u,u=e),u===e&&(u=gi,(t=wa())!==e&&(r=_a())!==e&&(n=Aa())!==e&&(s=ka())!==e?u=t=[t,r,n,s]:(gi=u,u=e)),u}function ha(){var t,r,n,s,o;if(t=gi,Za()!==e)if(u.substr(gi,4)===xu?(r=xu,gi+=4):(r=e,0===Ei&&Li(oe)),r!==e)if(Za()!==e){if(n=gi,s=[],o=u.charAt(gi),ft.test(o)?gi++:(o=e,0===Ei&&Li(kr)),o!==e)for(;o!==e;)s.push(o),o=u.charAt(gi),ft.test(o)?gi++:(o=e,0===Ei&&Li(kr));else s=e;(n=s!==e?u.substring(n,gi):s)!==e?t=wo(n):(gi=t,t=e)}else gi=t,t=e;else gi=t,t=e;else gi=t,t=e;return t}function pa(){var t,r,n,s,o,i,a;return t=gi,(r=Za())!==e?(u.substr(gi,4)===wu?(n=wu,gi+=4):(n=e,0===Ei&&Li(ie)),n!==e&&(s=Za())!==e&&(o=ra())!==e&&(i=ha())!==e?((a=pa())===e&&(a=null),t=r=[r,n,s,o,i,a]):(gi=t,t=e)):(gi=t,t=e),t}function da(){var t,r,n;return t=gi,Za()!==e?(u.substr(gi,2)===Lu?(r=Lu,gi+=2):(r=e,0===Ei&&Li(ae)),r!==e&&Za()!==e&&(n=wa())!==e?t=Lo(n):(gi=t,t=e)):(gi=t,t=e),t}function Ca(){var t,r;return t=gi,r=function(){var t,r,n,s,o,i,a,c,f,l,A;t=gi,r=gi,u.substr(gi,6)===Su?(n=Su,gi+=6):(n=e,0===Ei&&Li(ce));if(n!==e)if((s=_a())!==e)if(o=Oa(),u.substr(gi,4)===Tu?(i=Tu,gi+=4):(i=e,0===Ei&&Li(fe)),i===e&&(i=ra()),i!==e){if(a=[],c=gi,f=Oa(),(l=ja())!==e&&(A=ra())!==e?c=f=[f,l,A]:(gi=c,c=e),c!==e)for(;c!==e;)a.push(c),c=gi,f=Oa(),(l=ja())!==e&&(A=ra())!==e?c=f=[f,l,A]:(gi=c,c=e);else a=e;a!==e?(c=Oa(),(f=ka())!==e?r=n=[n,s,o,i,a,c,f]:(gi=r,r=e)):(gi=r,r=e)}else gi=r,r=e;else gi=r,r=e;else gi=r,r=e;r!==e&&(r=Oo(r));return t=r,t}(),r===e&&(r=ra()),r!==e&&(r=ko(r)),t=r}function va(){var u,t,r;return u=gi,(t=Qi())!==e&&(r=da())!==e?u=t=[t,r]:(gi=u,u=e),u}function Fa(){var t;return(t=function(){var t,r,n,s,o;t=gi,Oa(),u.substr(gi,14)===_u?(r=_u,gi+=14):(r=e,0===Ei&&Li(he));r!==e?(Oa(),61===u.charCodeAt(gi)?(n=h,gi++):(n=e,0===Ei&&Li(wt)),n!==e?(Oa(),u.substr(gi,6)===ku?(s=ku,gi+=6):(s=e,0===Ei&&Li(pe)),s!==e&&(o=ki())!==e?(Oa(),t=Ko(o)):(gi=t,t=e)):(gi=t,t=e)):(gi=t,t=e);return t}())===e&&(t=function(){var t,r,n,s;t=gi,Oa(),u.substr(gi,18)===Ou?(r=Ou,gi+=18):(r=e,0===Ei&&Li(de));r!==e?(Oa(),61===u.charCodeAt(gi)?(n=h,gi++):(n=e,0===Ei&&Li(wt)),n!==e?(Oa(),(s=ya())!==e?(Oa(),t=Vo(s)):(gi=t,t=e)):(gi=t,t=e)):(gi=t,t=e);return t}())===e&&(t=function(){var t,r,n,s;t=gi,Oa(),u.substr(gi,12)===Zu?(r=Zu,gi+=12):(r=e,0===Ei&&Li(Ce));r!==e?(Oa(),61===u.charCodeAt(gi)?(n=h,gi++):(n=e,0===Ei&&Li(wt)),n!==e?(Oa(),(s=ya())!==e?(Oa(),t=Wo(s)):(gi=t,t=e)):(gi=t,t=e)):(gi=t,t=e);return t}())===e&&(t=function(){var t,r,n,s;t=gi,Oa(),u.substr(gi,6)===zu?(r=zu,gi+=6):(r=e,0===Ei&&Li(ve));r!==e?(Oa(),61===u.charCodeAt(gi)?(n=h,gi++):(n=e,0===Ei&&Li(wt)),n!==e?(Oa(),(s=xa())!==e?(Oa(),t=Xo(s)):(gi=t,t=e)):(gi=t,t=e)):(gi=t,t=e);return t}())===e&&(t=function(){var t,r,n,s,o,i,a,c;t=gi,Oa(),u.substr(gi,12)===Nu?(r=Nu,gi+=12):(r=e,0===Ei&&Li(Fe));if(r!==e)if(Oa(),61===u.charCodeAt(gi)?(n=h,gi++):(n=e,0===Ei&&Li(wt)),n!==e)if(Oa(),91===u.charCodeAt(gi)?(s=q,gi++):(s=e,0===Ei&&Li(cr)),s!==e)if(Oa(),(o=ga())!==e){for(i=[],a=gi,Oa(),ja()!==e?(Oa(),(c=ga())!==e?a=Yo(o,c):(gi=a,a=e)):(gi=a,a=e);a!==e;)i.push(a),a=gi,Oa(),ja()!==e?(Oa(),(c=ga())!==e?a=Yo(o,c):(gi=a,a=e)):(gi=a,a=e);93===u.charCodeAt(gi)?(a=H,gi++):(a=e,0===Ei&&Li(fr)),a!==e?t=ui(o,i):(gi=t,t=e)}else gi=t,t=e;else gi=t,t=e;else gi=t,t=e;else gi=t,t=e;return t}()),t}function ga(){var t,r,n,s,o,i;return t=gi,Oa(),123===u.charCodeAt(gi)?(r=uu,gi++):(r=e,0===Ei&&Li(xr)),r!==e?(Oa(),(n=ba())!==e?(Oa(),44===u.charCodeAt(gi)?(s=P,gi++):(s=e,0===Ei&&Li(ar)),s!==e?(Oa(),(o=ba())!==e?(Oa(),125===u.charCodeAt(gi)?(i=tu,gi++):(i=e,0===Ei&&Li(Lr)),i!==e?t=ti(n,o):(gi=t,t=e)):(gi=t,t=e)):(gi=t,t=e)):(gi=t,t=e)):(gi=t,t=e),t}function ba(){var t,r,n,s;return t=gi,u.substr(gi,8)===Iu?(r=Iu,gi+=8):(r=e,0===Ei&&Li(ge)),r!==e?(Oa(),58===u.charCodeAt(gi)?(n=k,gi++):(n=e,0===Ei&&Li(ur)),n!==e?(Oa(),(s=Da())!==e?t=ri(s):(gi=t,t=e)):(gi=t,t=e)):(gi=t,t=e),t===e&&(t=gi,u.substr(gi,8)===Ru?(r=Ru,gi+=8):(r=e,0===Ei&&Li(be)),r!==e?(Oa(),58===u.charCodeAt(gi)?(n=k,gi++):(n=e,0===Ei&&Li(ur)),n!==e?(Oa(),(s=xa())!==e?t=ei(s):(gi=t,t=e)):(gi=t,t=e)):(gi=t,t=e)),t}function Ba(){var t,r,n,s,o,a,c,f;return t=gi,_a()!==e?(Oa(),u.substr(gi,6)===ku?(r=ku,gi+=6):(r=e,0===Ei&&Li(pe)),r!==e&&(n=ki())!==e?(Oa(),ja()!==e?(Oa(),(s=wa())!==e?(Oa(),ja()!==e?(Oa(),(o=wa())!==e?(Oa(),ja()===e&&null,a=function(){var t,r,n,s,o,a;if(t=gi,r=ma(),r!==e){for(n=[],s=gi,Oa(),47===u.charCodeAt(gi)?(o=i,gi++):(o=e,0===Ei&&Li(mt)),o!==e?(Oa(),(a=ma())!==e?s=si(r,a):(gi=s,s=e)):(gi=s,s=e);s!==e;)n.push(s),s=gi,Oa(),47===u.charCodeAt(gi)?(o=i,gi++):(o=e,0===Ei&&Li(mt)),o!==e?(Oa(),(a=ma())!==e?s=si(r,a):(gi=s,s=e)):(gi=s,s=e);t=oi(r,n)}else gi=t,t=e;return t}(),a===e&&(a=null),Oa(),ja()===e&&null,(c=xa())===e&&(c=null),Oa(),ja()===e&&null,f=function(){var t,r;t=gi,u.substr(gi,10)===Qu?(r=Qu,gi+=10):(r=e,0===Ei&&Li(ye));r!==e&&(r=ci());return t=r,t}(),f===e&&(f=null),ka()!==e?t=ni(n,s,o,a,c,f):(gi=t,t=e)):(gi=t,t=e)):(gi=t,t=e)):(gi=t,t=e)):(gi=t,t=e)):(gi=t,t=e)):(gi=t,t=e),t}function ma(){var t;return(t=function(){var t,r,n,s;t=gi,u.substr(gi,7)===Hu?(r=Hu,gi+=7):(r=e,0===Ei&&Li(Ee));r!==e&&(n=qi())!==e?(41===u.charCodeAt(gi)?(s=qu,gi++):(s=e,0===Ei&&Li(me)),s!==e?t=ai(n):(gi=t,t=e)):(gi=t,t=e);return t}())===e&&(t=function(){var t,r,n,s;t=gi,u.substr(gi,7)===Pu?(r=Pu,gi+=7):(r=e,0===Ei&&Li(Be));r!==e&&(n=Hi())!==e?(41===u.charCodeAt(gi)?(s=qu,gi++):(s=e,0===Ei&&Li(me)),s!==e?t=ii(n):(gi=t,t=e)):(gi=t,t=e);return t}()),t}function Ea(){var t,r;return Ei++,t=gi,u.substr(gi,4)===Uu?(r=Uu,gi+=4):(r=e,0===Ei&&Li($e)),r===e&&(u.substr(gi,5)===Mu?(r=Mu,gi+=5):(r=e,0===Ei&&Li(xe))),r!==e&&(r=fi(r)),Ei--,(t=r)===e&&(r=e,0===Ei&&Li(De)),t}function ya(){var t,r,n,s,o;if(Ei++,t=gi,39===u.charCodeAt(gi)?(r=R,gi++):(r=e,0===Ei&&Li(ir)),r!==e){for(n=gi,s=[],u.substr(gi,2)===Gu?(o=Gu,gi+=2):(o=e,0===Ei&&Li(Le)),o===e&&(o=u.charAt(gi),At.test(o)?gi++:(o=e,0===Ei&&Li(Se)));o!==e;)s.push(o),u.substr(gi,2)===Gu?(o=Gu,gi+=2):(o=e,0===Ei&&Li(Le)),o===e&&(o=u.charAt(gi),At.test(o)?gi++:(o=e,0===Ei&&Li(Se)));n=u.substring(n,gi),39===u.charCodeAt(gi)?(s=R,gi++):(s=e,0===Ei&&Li(ir)),s!==e?t=li(n):(gi=t,t=e)}else gi=t,t=e;return Ei--,t===e&&(r=e,0===Ei&&Li(we)),t}function Da(){var t,r,n,s,o;if(Ei++,t=gi,34===u.charCodeAt(gi)?(r=T,gi++):(r=e,0===Ei&&Li(Kt)),r!==e){for(n=gi,s=[],u.substr(gi,2)===_?(o=_,gi+=2):(o=e,0===Ei&&Li(Wt)),o===e&&(u.substr(gi,2)===j?(o=j,gi+=2):(o=e,0===Ei&&Li(Vt)),o===e&&(o=u.charAt(gi),st.test(o)?gi++:(o=e,0===Ei&&Li(Xt))));o!==e;)s.push(o),u.substr(gi,2)===_?(o=_,gi+=2):(o=e,0===Ei&&Li(Wt)),o===e&&(u.substr(gi,2)===j?(o=j,gi+=2):(o=e,0===Ei&&Li(Vt)),o===e&&(o=u.charAt(gi),st.test(o)?gi++:(o=e,0===Ei&&Li(Xt))));n=u.substring(n,gi),34===u.charCodeAt(gi)?(s=T,gi++):(s=e,0===Ei&&Li(Kt)),s!==e?t=Ai(n):(gi=t,t=e)}else gi=t,t=e;return Ei--,t===e&&(r=e,0===Ei&&Li(Te)),t}function $a(){var t,r,n,s,o,i,a,c,f,l,A,h,p,d,C,v,F,g,b,B,m,E,y,D,$;if(Ei++,t=gi,r=gi,n=gi,s=[],o=u.charAt(gi),ht.test(o)?gi++:(o=e,0===Ei&&Li(_e)),o!==e)for(;o!==e;)s.push(o),o=u.charAt(gi),ht.test(o)?gi++:(o=e,0===Ei&&Li(_e));else s=e;if(s!==e)if(45===u.charCodeAt(gi)?(o=Ju,gi++):(o=e,0===Ei&&Li(Oe)),o!==e)if(i=u.charAt(gi),ht.test(i)?gi++:(i=e,0===Ei&&Li(_e)),i!==e)if(a=u.charAt(gi),ht.test(a)?gi++:(a=e,0===Ei&&Li(_e)),a!==e)if(45===u.charCodeAt(gi)?(c=Ju,gi++):(c=e,0===Ei&&Li(Oe)),c!==e)if(f=u.charAt(gi),ht.test(f)?gi++:(f=e,0===Ei&&Li(_e)),f!==e)if(l=u.charAt(gi),ht.test(l)?gi++:(l=e,0===Ei&&Li(_e)),l!==e){if(A=gi,84===u.charCodeAt(gi)?(h=Ku,gi++):(h=e,0===Ei&&Li(Ze)),h!==e)if(p=u.charAt(gi),ht.test(p)?gi++:(p=e,0===Ei&&Li(_e)),p!==e)if(d=u.charAt(gi),ht.test(d)?gi++:(d=e,0===Ei&&Li(_e)),d!==e)if(58===u.charCodeAt(gi)?(C=k,gi++):(C=e,0===Ei&&Li(ur)),C!==e)if(v=u.charAt(gi),ht.test(v)?gi++:(v=e,0===Ei&&Li(_e)),v!==e)if(F=u.charAt(gi),ht.test(F)?gi++:(F=e,0===Ei&&Li(_e)),F!==e){if(g=gi,58===u.charCodeAt(gi)?(b=k,gi++):(b=e,0===Ei&&Li(ur)),b!==e)if(B=u.charAt(gi),ht.test(B)?gi++:(B=e,0===Ei&&Li(_e)),B!==e)if(m=u.charAt(gi),ht.test(m)?gi++:(m=e,0===Ei&&Li(_e)),m!==e){if(E=gi,46===u.charCodeAt(gi)?(y=Vu,gi++):(y=e,0===Ei&&Li(ze)),y!==e){if(D=[],$=u.charAt(gi),ht.test($)?gi++:($=e,0===Ei&&Li(_e)),$!==e)for(;$!==e;)D.push($),$=u.charAt(gi),ht.test($)?gi++:($=e,0===Ei&&Li(_e));else D=e;D!==e?E=y=[y,D]:(gi=E,E=e)}else gi=E,E=e;E===e&&(E=null),g=b=[b,B,m,E]}else gi=g,g=e;else gi=g,g=e;else gi=g,g=e;g===e&&(g=null),90===u.charCodeAt(gi)?(b=Wu,gi++):(b=e,0===Ei&&Li(Ne)),b===e&&(b=gi,B=u.charAt(gi),pt.test(B)?gi++:(B=e,0===Ei&&Li(Ie)),B!==e?(m=u.charAt(gi),ht.test(m)?gi++:(m=e,0===Ei&&Li(_e)),m!==e?(E=u.charAt(gi),ht.test(E)?gi++:(E=e,0===Ei&&Li(_e)),E!==e?(58===u.charCodeAt(gi)?(y=k,gi++):(y=e,0===Ei&&Li(ur)),y!==e?(D=u.charAt(gi),ht.test(D)?gi++:(D=e,0===Ei&&Li(_e)),D!==e?($=u.charAt(gi),ht.test($)?gi++:($=e,0===Ei&&Li(_e)),$!==e?b=B=[B,m,E,y,D,$]:(gi=b,b=e)):(gi=b,b=e)):(gi=b,b=e)):(gi=b,b=e)):(gi=b,b=e)):(gi=b,b=e)),b===e&&(b=null),A=h=[h,p,d,C,v,F,g,b]}else gi=A,A=e;else gi=A,A=e;else gi=A,A=e;else gi=A,A=e;else gi=A,A=e;else gi=A,A=e;A===e&&(A=null),n=s=[s,o,i,a,c,f,l,A]}else gi=n,n=e;else gi=n,n=e;else gi=n,n=e;else gi=n,n=e;else gi=n,n=e;else gi=n,n=e;else gi=n,n=e;return(r=n!==e?u.substring(r,gi):n)!==e&&(r=hi(r)),Ei--,(t=r)===e&&(r=e,0===Ei&&Li(ke)),t}function xa(){var t,r,n,s,o,i;if(Ei++,t=gi,r=gi,n=gi,s=u.charAt(gi),pt.test(s)?gi++:(s=e,0===Ei&&Li(Ie)),s===e&&(s=null),o=[],i=u.charAt(gi),ht.test(i)?gi++:(i=e,0===Ei&&Li(_e)),i!==e)for(;i!==e;)o.push(i),i=u.charAt(gi),ht.test(i)?gi++:(i=e,0===Ei&&Li(_e));else o=e;return o!==e?n=s=[s,o]:(gi=n,n=e),(r=n!==e?u.substring(r,gi):n)!==e&&(r=di(r)),Ei--,(t=r)===e&&(r=e,0===Ei&&Li(qe)),t}function wa(){var t,r,n,s,o,i,a,c;if(Ei++,t=gi,r=gi,Ei++,n=Ea(),Ei--,n===e?r=void 0:(gi=r,r=e),r!==e)if(n=gi,Ei++,s=La(),Ei--,s===e?n=void 0:(gi=n,n=e),n!==e){if(s=gi,o=gi,i=u.charAt(gi),dt.test(i)?gi++:(i=e,0===Ei&&Li(Qe)),i!==e){for(a=[],c=u.charAt(gi),Ct.test(c)?gi++:(c=e,0===Ei&&Li(Ue));c!==e;)a.push(c),c=u.charAt(gi),Ct.test(c)?gi++:(c=e,0===Ei&&Li(Ue));o=i=[i,a]}else gi=o,o=e;(s=o!==e?u.substring(s,gi):o)!==e?t=Ci(s):(gi=t,t=e)}else gi=t,t=e;else gi=t,t=e;return Ei--,t===e&&(r=e,0===Ei&&Li(He)),t}function La(){var t,r,n,s,o,i,a,c,f,l,A,h,p,d;return Ei++,t=gi,r=gi,(n=Sa())!==e&&(s=Sa())!==e?(45===u.charCodeAt(gi)?(o=Ju,gi++):(o=e,0===Ei&&Li(Oe)),o===e&&(o=null),(i=Sa())!==e?(45===u.charCodeAt(gi)?(a=Ju,gi++):(a=e,0===Ei&&Li(Oe)),a===e&&(a=null),(c=Sa())!==e?(45===u.charCodeAt(gi)?(f=Ju,gi++):(f=e,0===Ei&&Li(Oe)),f===e&&(f=null),(l=Sa())!==e?(45===u.charCodeAt(gi)?(A=Ju,gi++):(A=e,0===Ei&&Li(Oe)),A===e&&(A=null),(h=Sa())!==e&&(p=Sa())!==e&&(d=Sa())!==e?r=n=[n,s,o,i,a,c,f,l,A,h,p,d]:(gi=r,r=e)):(gi=r,r=e)):(gi=r,r=e)):(gi=r,r=e)):(gi=r,r=e),t=r!==e?u.substring(t,gi):r,Ei--,t===e&&(r=e,0===Ei&&Li(Me)),t}function Sa(){var t,r,n,s,o,i;return Ei++,t=gi,r=gi,n=u.charAt(gi),vt.test(n)?gi++:(n=e,0===Ei&&Li(Je)),n!==e?(s=u.charAt(gi),vt.test(s)?gi++:(s=e,0===Ei&&Li(Je)),s!==e?(o=u.charAt(gi),vt.test(o)?gi++:(o=e,0===Ei&&Li(Je)),o!==e?(i=u.charAt(gi),vt.test(i)?gi++:(i=e,0===Ei&&Li(Je)),i!==e?r=n=[n,s,o,i]:(gi=r,r=e)):(gi=r,r=e)):(gi=r,r=e)):(gi=r,r=e),t=r!==e?u.substring(t,gi):r,Ei--,t===e&&(r=e,0===Ei&&Li(Ge)),t}function Ta(){var t,r,n,s;if(t=gi,r=gi,n=[],s=u.charAt(gi),Ft.test(s)?gi++:(s=e,0===Ei&&Li(Ke)),s!==e)for(;s!==e;)n.push(s),s=u.charAt(gi),Ft.test(s)?gi++:(s=e,0===Ei&&Li(Ke));else n=e;return(r=n!==e?u.substring(r,gi):n)!==e&&(r=vi(r)),t=r}function ja(){var t,r,n;return t=gi,r=Oa(),44===u.charCodeAt(gi)?(n=P,gi++):(n=e,0===Ei&&Li(ar)),n!==e?t=r=[r,n,Oa()]:(gi=t,t=e),t}function _a(){var t,r,n;return t=gi,r=Oa(),40===u.charCodeAt(gi)?(n=tt,gi++):(n=e,0===Ei&&Li(tn)),n!==e?t=r=[r,n,Oa()]:(gi=t,t=e),t}function ka(){var t,r,n;return t=gi,r=Oa(),41===u.charCodeAt(gi)?(n=qu,gi++):(n=e,0===Ei&&Li(me)),n!==e?t=r=[r,n]:(gi=t,t=e),t}function Oa(){var t,r,n;for(Ei++,t=gi,r=[],n=u.charAt(gi),Bt.test(n)?gi++:(n=e,0===Ei&&Li(en));n!==e;)r.push(n),n=u.charAt(gi),Bt.test(n)?gi++:(n=e,0===Ei&&Li(en));return t=u.substring(t,gi),Ei--,r=e,0===Ei&&Li(rn),t}function Za(){var t,r,n;if(Ei++,t=gi,r=[],n=u.charAt(gi),Bt.test(n)?gi++:(n=e,0===Ei&&Li(en)),n!==e)for(;n!==e;)r.push(n),n=u.charAt(gi),Bt.test(n)?gi++:(n=e,0===Ei&&Li(en));else r=e;return t=r!==e?u.substring(t,gi):r,Ei--,t===e&&(r=e,0===Ei&&Li(nn)),t}const za=["$value"],Na={eq:"=",ne:"!=",lt:"<",gt:">",le:"<=",ge:">="},Ia={topcount:!0,bottomcount:!0,topsum:!1,bottomsum:!1,toppercent:!1,bottompercent:!1},Ra=Object.assign,{strict:Pa,minimal:qa}=t,Ha=[];let Qa,Ua;const Ma=t.safeNumber||function(u){if("string"!=typeof u)return u;const t=parseFloat(u);if(!isNaN(t)&&String(t)===u)return t;const r=parseInt(u);return isNaN(r)||String(r)!==u.replace(/^-?\d+\.0+$/,u.split(".")[0])?u:r},Ga=t.skipToken,Ja=t.standardBase64||function(u){return Buffer.from(u,"base64").toString("base64")},Ka=u=>t=>u===t||u.as&&t.as&&u.as===t.as||t.as&&u.ref&&t.as===u.ref[u.ref.length-1]||u.ref&&t.ref&&u.ref.join("")===t.ref.join(""),Va=u=>t=>{if(Array.isArray(t))return t.map(Va(u));const r=t.ref&&u.find((u=>"func"in u&&u.as&&u.as===t.ref[0]));return r||t},Wa=u=>t=>Array.isArray(t)?t.map(Wa(u)):t.ref&&!u.find(Ka(t))?{val:null}:t,Xa=(u,t)=>{if(1===t.ref.length)u.find(Ka(t))||u.push(t);else{const r=t.ref.shift(),e=u.find((u=>u.ref&&u.ref[0]===r));if(e)Xa(e.expand,t);else{const e={ref:[r],expand:[]};Xa(e.expand,t),u.push(e)}}},Ya=(u,t,r=!1)=>{let e=rc({from:u.from},t,r);if(Array.isArray(e))for(let t=0;t<e.length;t++)e[t]=uc(e[t],u,r);else e=uc(e,u,r);return e},uc=(u,t,r)=>{if(!t)return u;t.apply&&delete t.apply;let e={};t.columns&&"$count"===t.columns[0].as||u.SELECT.where&&t.where||u.SELECT.limit&&t.limit||u.SELECT.orderBy&&t.orderBy||u.SELECT.search&&t.search?e.from=u:e=u.SELECT;for(const u in t)"columns"===u?(t.columns=t.columns.map((u=>e.columns&&e.columns.find((t=>u.ref&&u.ref[0]===t.as||t.ref&&u.ref&&u.ref[0]===t.ref[0]&&!u.expand))||u)),e.columns&&e.groupBy&&t.columns.push(...e.columns.filter((u=>r&&e.groupBy.find((t=>u.ref&&u.ref[0]===t.ref[0]))&&!t.columns.some((t=>t.ref&&t.ref[0]===u.as||t.ref&&u.ref&&t.ref[0]===u.ref[0]||t.as&&t.as===u.as))))||[]),e.columns=t.columns):"from"!==u&&(e[u]=t[u]);const n=[...e.columns&&e.columns.filter((u=>e.groupBy&&e.groupBy.find((t=>u.ref&&u.ref[0]===t.ref[0]))))||[],...e.columns&&e.columns.filter((u=>u&&"object"==typeof u&&"func"in u))||[]];return tc(e,n,r),{SELECT:e}},tc=(u,t,r)=>{t.length&&(u.columns=u.columns&&!r?u.columns.reduce(((u,r)=>{const e=t.find(Ka(r));return e&&u.push(e),u}),[]):t,u.where&&u.groupBy&&(u.having=u.where.map(Va(u.columns)).map(Wa(u.groupBy)),delete u.where),u.columns=u.columns.reduce(((u,r)=>(r.ref&&r.ref.length>1&&t.find(Ka(r))?Xa(u,{ref:[...r.ref]}):u.push(r),u)),[]))},rc=(u,t,r)=>{if(!t)return;if(u.apply&&delete u.apply,t.identity&&u.from.SELECT&&(u=u.from.SELECT),(t.apply||t.where&&u.where||t.search&&u.search||t.limit&&u.limit||t.orderBy&&u.orderBy)&&(u.from={SELECT:{...u}}),t.topLevels&&(u.__topLevels=t.topLevels),t.ancestors&&(u.__ancestors=t.ancestors),t.descendants&&(u.__descendants=t.descendants),t.where&&(u.where=t.where),t.search&&(u.search=t.search),t.groupBy){u.groupBy=[];for(const r of t.groupBy)u.groupBy.find(Ka(r))||u.groupBy.push(r)}t.limit&&(u.limit=t.limit),t.orderBy&&(u.orderBy=t.orderBy);const e=[...u.groupBy||[],...t.aggregate||[]];if(tc(u,e,r),t.apply&&u.from&&rc(u.from.SELECT,t.apply),t.concat&&Array.isArray(t.concat)){const r=[];for(let e of t.concat){e.from=1===Object.keys(u).length?u.from:{SELECT:u};const t=rc(e,e.apply);Array.isArray(t)?r.push(...t):r.push(t)}u=r}return Array.isArray(u)?u:{SELECT:u}},ec=u=>{Qa.limit&&Qa.limit.offset&&Qa.limit.offset.val&&(u+=Qa.limit.offset.val),(Qa.limit||(Qa.limit={})).offset={val:u}},nc=(u,t=!1)=>{Qa.orderBy=Qa.orderBy?t?[u,...Qa.orderBy]:[...Qa.orderBy,u]:[u]},sc=(u,t)=>{for(const r of t)r.ref&&r.ref[0]===u&&r.ref.shift(),r.func&&sc(u,r.args),r.xpr&&sc(u,r.xpr);return t},oc=(u,t,r,e=!1)=>{u?.forEach((u=>{u.val===t?u.val="list"in r?r.list.map((u=>u.val)):r.val:u.list===t?u.list=r.list:u.func?u.args.forEach(((u,n)=>{u.val===t?u.val=r.val:u.func&&oc(u.args,t,r,e)})):u.SELECT&&ic(u.SELECT,t,r,e)}))},ic=(u,t,r,e=!1)=>{const{where:n,from:s}=u;oc(n,t,r),s?.ref?.forEach((u=>{oc(u.where,t,r,!0)}))};if(r=o(),t.peg$library)return{peg$result:r,peg$currPos:gi,peg$FAILED:e,peg$maxFailExpected:mi,peg$maxFailPos:Bi};if(r!==e&&gi===u.length)return r;throw r!==e&&gi<u.length&&Li({type:"end"}),Si(mi,Bi<u.length?u.charAt(Bi):null,Bi<u.length?wi(Bi,Bi+1):wi(Bi,Bi))}peg$subclass(peg$SyntaxError,Error),peg$SyntaxError.prototype.format=function(u){var t="Error: "+this.message;if(this.location){var r,e=null;for(r=0;r<u.length;r++)if(u[r].source===this.location.source){e=u[r].text.split(/\r\n|\n|\r/g);break}var n=this.location.start,s=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(n):n,o=this.location.source+":"+s.line+":"+s.column;if(e){var i=this.location.end,a=peg$padEnd("",s.line.toString().length," "),c=e[n.line-1],f=(n.line===i.line?i.column:c.length+1)-n.column||1;t+="\n --\x3e "+o+"\n"+a+" |\n"+s.line+" | "+c+"\n"+a+" | "+peg$padEnd("",n.column-1," ")+peg$padEnd("",f,"^")}else t+="\n at "+o}return t},peg$SyntaxError.buildMessage=function(u,t){var r={literal:function(u){return'"'+n(u.text)+'"'},class:function(u){var t=u.parts.map((function(u){return Array.isArray(u)?s(u[0])+"-"+s(u[1]):s(u)}));return"["+(u.inverted?"^":"")+t.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(u){return u.description}};function e(u){return u.charCodeAt(0).toString(16).toUpperCase()}function n(u){return u.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(u){return"\\x0"+e(u)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(u){return"\\x"+e(u)}))}function s(u){return u.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(u){return"\\x0"+e(u)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(u){return"\\x"+e(u)}))}function o(u){return r[u.type](u)}return"Expected "+function(u){var t,r,e=u.map(o);if(e.sort(),e.length>0){for(t=1,r=1;t<e.length;t++)e[t-1]!==e[t]&&(e[r]=e[t],r++);e.length=r}switch(e.length){case 1:return e[0];case 2:return e[0]+" or "+e[1];default:return e.slice(0,-1).join(", ")+", or "+e[e.length-1]}}(u)+" but "+function(u){return u?'"'+n(u)+'"':"end of input"}(t)+" found."},module.exports={StartRules:["ODataRelativeURI"],SyntaxError:peg$SyntaxError,parse:peg$parse};
|
|
1
|
+
"use strict";function peg$subclass(t,r){function u(){this.constructor=t}u.prototype=r.prototype,t.prototype=new u}function peg$SyntaxError(t,r,u,e){var n=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(n,peg$SyntaxError.prototype),n.expected=r,n.found=u,n.location=e,n.name="SyntaxError",n}function peg$padEnd(t,r,u){return u=u||" ",t.length>r?t:(r-=t.length,t+(u+=u.repeat(r)).slice(0,r))}function peg$parse(t,r){var u,e={},n=(r=void 0!==r?r:{}).grammarSource,s={ODataRelativeURI:Ta},o=Ta,a="/",i="?",c="&",f="$count",l="$ref",A="$value",h="=",p="$skiptoken=",d="$search=",C="$select=",v="$expand=",F="$filter=",g="$orderby=",b="$top=",m="$skip=",E="$count=",B="$apply=",y="$at",D="$from",w="$toInclusive",$="$to",x="*",L="/$count",S=";",T='"',j="\\\\",k='\\"',O=":",Z="any",_="all",z="asc",N="desc",I="$deltatoken=",R="'",P=",",q="[",H="]",Q="@",U="$format=",M="eq",G="ne",J="lt",K="gt",V="le",W="ge",X="in",Y="null",tt="{",rt="}",ut="contains",et="endswith",nt="startswith",st="matchespattern",ot="not",at="and",it="or",ct="aggregate",ft="groupby",lt="filter",At="search",ht="concat",pt="compute",dt="top",Ct="skip",vt="orderby",Ft="com.sap.vocabularies.Hierarchy.v1.TopLevels",gt="ancestors",bt="descendants",mt="topcount",Et="bottomcount",Bt="topsum",yt="bottomsum",Dt="toppercent",wt="bottompercent",$t="with",xt="from",Lt="as",St="rollup",Tt="$all",jt="identity",kt="HierarchyNodes",Ot="$root/",Zt="HierarchyQualifier",_t="NodeProperty",zt="Levels",Nt="ExpandLevels",It='"NodeID"',Rt='"Levels"',Pt="filter(",qt=")",Ht="search(",Qt="keep start",Ut="true",Mt="false",Gt="''",Jt="-",Kt="T",Vt=".",Wt="Z",Xt="e",Yt="binary'",tr="==",rr="(",ur=/^[^&]/,er=/^[ ]/,nr=/^[^"&]/,sr=/^[^"]/,or=/^[^;)]/,ar=/^[[a-zA-Z0-9\-_.~![\]]/,ir=/^[^}]/,cr=/^[^\]]/,fr=/^[a-zA-Z]/,lr=/^[^)]/,Ar=/^[^']/,hr=/^[0-9]/,pr=/^[+\-]/,dr=/^[_a-zA-Z]/,Cr=/^[_a-zA-Z0-9"."A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\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-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\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]/,vr=/^[0-9a-fA-F]/,Fr=/^[^\/?]/,gr=/^[a-zA-Z0-9\-"."_~!$'()*+,;=:@"\/""?"]/,br=/^[a-zA-Z0-9\-_]/,mr=/^[ \t\n]/,Er=ya("/",!1),Br=ya("?",!1),yr=ya("&",!1),Dr=ya("$count",!1),wr=ya("$ref",!1),$r=ya("$value",!1),xr=ya("=",!1),Lr=ya("$skiptoken=",!1),Sr=ya("$search=",!1),Tr=ya("$select=",!1),jr=ya("$expand=",!1),kr=ya("$filter=",!1),Or=ya("$orderby=",!1),Zr=ya("$top=",!1),_r=ya("$skip=",!1),zr=ya("$count=",!1),Nr=ya("$apply=",!1),Ir=Da(["&"],!0,!1),Rr=ya("$at",!1),Pr=ya("$from",!1),qr=ya("$toInclusive",!1),Hr=ya("$to",!1),Qr=ya("*",!1),Ur=ya("/$count",!1),Mr=ya(";",!1),Gr=Da([" "],!1,!1),Jr=Da(['"',"&"],!0,!1),Kr=ya('"',!1),Vr=ya("\\\\",!1),Wr=ya('\\"',!1),Xr=Da(['"'],!0,!1),Yr=Da([";",")"],!0,!1),tu=ya(":",!1),ru=ya("any",!1),uu=ya("all",!1),eu=ya("asc",!1),nu=ya("desc",!1),su=ya("$deltatoken=",!1),ou=wa("value with double-quoted string"),au=ya("'",!1),iu=ya(",",!1),cu=ya("[",!1),fu=ya("]",!1),lu=Da(["[",["a","z"],["A","Z"],["0","9"],"-","_",".","~","!","[","]"],!1,!1),Au=wa("an aliased parameter (@param)"),hu=ya("@",!1),pu=ya("$format=",!1),du=ya("eq",!1),Cu=ya("ne",!1),vu=ya("lt",!1),Fu=ya("gt",!1),gu=ya("le",!1),bu=ya("ge",!1),mu=ya("in",!1),Eu=(ya("add",!1),ya("sub",!1),ya("mul",!1),ya("div",!1),ya("mod",!1),wa("navigation with $count")),Bu=wa("a reference"),yu=wa("null"),Du=ya("null",!1),wu=wa("a json object"),$u=ya("{",!1),xu=Da(["}"],!0,!1),Lu=ya("}",!1),Su=wa("a json array"),Tu=Da(["]"],!0,!1),ju=wa("a list"),ku=wa("a function name"),Ou=Da([["a","z"],["A","Z"]],!1,!1),Zu=ya("contains",!0),_u=ya("endswith",!0),zu=ya("startswith",!0),Nu=ya("matchespattern",!0),Iu=ya("NOT",!0),Ru=ya("AND",!0),Pu=ya("OR",!0),qu=ya("aggregate",!1),Hu=ya("groupby",!1),Qu=ya("filter",!1),Uu=ya("search",!1),Mu=ya("concat",!1),Gu=ya("compute",!1),Ju=ya("top",!1),Ku=ya("skip",!1),Vu=ya("orderby",!1),Wu=ya("com.sap.vocabularies.Hierarchy.v1.TopLevels",!1),Xu=ya("ancestors",!1),Yu=ya("descendants",!1),te=ya("topcount",!0),re=ya("bottomcount",!0),ue=ya("topsum",!0),ee=ya("bottomsum",!0),ne=ya("toppercent",!0),se=ya("bottompercent",!0),oe=ya("with",!1),ae=ya("from",!1),ie=ya("as",!1),ce=ya("rollup",!1),fe=ya("$all",!1),le=Da([")"],!0,!1),Ae=ya("identity",!1),he=ya("HierarchyNodes",!1),pe=ya("$root/",!1),de=ya("HierarchyQualifier",!1),Ce=ya("NodeProperty",!1),ve=ya("Levels",!1),Fe=ya("ExpandLevels",!1),ge=ya('"NodeID"',!1),be=ya('"Levels"',!1),me=ya("filter(",!1),Ee=ya(")",!1),Be=ya("search(",!1),ye=ya("keep start",!1),De=wa("a boolean"),we=ya("true",!1),$e=ya("false",!1),xe=wa("a single quoted string"),Le=ya("''",!1),Se=Da(["'"],!0,!1),Te=wa("a doubled quoted string"),je=(wa("a string"),Da([" ","\t","\n","(",")",'"',"&",";"],!0,!1),wa("a time")),ke=Da([["0","9"]],!1,!1),Oe=wa("a date"),Ze=ya("-",!1),_e=ya("T",!1),ze=ya(".",!1),Ne=ya("Z",!1),Ie=Da(["+","-"],!1,!1),Re=wa("a number"),Pe=ya("e",!1),qe=wa("an integer"),He=wa("an identifier"),Qe=Da(["_",["a","z"],["A","Z"]],!1,!1),Ue=Da(["_",["a","z"],["A","Z"],["0","9"],'"',".",'"',["A","Z"],["a","z"],"ª","µ","º",["À","Ö"],["Ø","ö"],["ø","ˁ"],["ˆ","ˑ"],["ˠ","ˤ"],"ˬ","ˮ",["Ͱ","ʹ"],"Ͷ","ͷ",["ͺ","ͽ"],"Ά",["Έ","Ί"],"Ό",["Ύ","Ρ"],["Σ","ϵ"],["Ϸ","ҁ"],["Ҋ","ԧ"],["Ա","Ֆ"],"ՙ",["ա","և"],["א","ת"],["װ","ײ"],["ؠ","ي"],"ٮ","ٯ",["ٱ","ۓ"],"ە","ۥ","ۦ","ۮ","ۯ",["ۺ","ۼ"],"ۿ","ܐ",["ܒ","ܯ"],["ݍ","ޥ"],"ޱ",["ߊ","ߪ"],"ߴ","ߵ","ߺ",["ࠀ","ࠕ"],"ࠚ","ࠤ","ࠨ",["ࡀ","ࡘ"],"ࢠ",["ࢢ","ࢬ"],["ऄ","ह"],"ऽ","ॐ",["क़","ॡ"],["ॱ","ॷ"],["ॹ","ॿ"],["অ","ঌ"],"এ","ঐ",["ও","ন"],["প","র"],"ল",["শ","হ"],"ঽ","ৎ","ড়","ঢ়",["য়","ৡ"],"ৰ","ৱ",["ਅ","ਊ"],"ਏ","ਐ",["ਓ","ਨ"],["ਪ","ਰ"],"ਲ","ਲ਼","ਵ","ਸ਼","ਸ","ਹ",["ਖ਼","ੜ"],"ਫ਼",["ੲ","ੴ"],["અ","ઍ"],["એ","ઑ"],["ઓ","ન"],["પ","ર"],"લ","ળ",["વ","હ"],"ઽ","ૐ","ૠ","ૡ",["ଅ","ଌ"],"ଏ","ଐ",["ଓ","ନ"],["ପ","ର"],"ଲ","ଳ",["ଵ","ହ"],"ଽ","ଡ଼","ଢ଼",["ୟ","ୡ"],"ୱ","ஃ",["அ","ஊ"],["எ","ஐ"],["ஒ","க"],"ங","ச","ஜ","ஞ","ட","ண","த",["ந","ப"],["ம","ஹ"],"ௐ",["అ","ఌ"],["ఎ","ఐ"],["ఒ","న"],["ప","ళ"],["వ","హ"],"ఽ","ౘ","ౙ","ౠ","ౡ",["ಅ","ಌ"],["ಎ","ಐ"],["ಒ","ನ"],["ಪ","ಳ"],["ವ","ಹ"],"ಽ","ೞ","ೠ","ೡ","ೱ","ೲ",["അ","ഌ"],["എ","ഐ"],["ഒ","ഺ"],"ഽ","ൎ","ൠ","ൡ",["ൺ","ൿ"],["අ","ඖ"],["ක","න"],["ඳ","ර"],"ල",["ව","ෆ"],["ก","ะ"],"า","ำ",["เ","ๆ"],"ກ","ຂ","ຄ","ງ","ຈ","ຊ","ຍ",["ດ","ທ"],["ນ","ຟ"],["ມ","ຣ"],"ລ","ວ","ສ","ຫ",["ອ","ະ"],"າ","ຳ","ຽ",["ເ","ໄ"],"ໆ",["ໜ","ໟ"],"ༀ",["ཀ","ཇ"],["ཉ","ཬ"],["ྈ","ྌ"],["က","ဪ"],"ဿ",["ၐ","ၕ"],["ၚ","ၝ"],"ၡ","ၥ","ၦ",["ၮ","ၰ"],["ၵ","ႁ"],"ႎ",["Ⴀ","Ⴥ"],"Ⴧ","Ⴭ",["ა","ჺ"],["ჼ","ቈ"],["ቊ","ቍ"],["ቐ","ቖ"],"ቘ",["ቚ","ቝ"],["በ","ኈ"],["ኊ","ኍ"],["ነ","ኰ"],["ኲ","ኵ"],["ኸ","ኾ"],"ዀ",["ዂ","ዅ"],["ወ","ዖ"],["ዘ","ጐ"],["ጒ","ጕ"],["ጘ","ፚ"],["ᎀ","ᎏ"],["Ꭰ","Ᏼ"],["ᐁ","ᙬ"],["ᙯ","ᙿ"],["ᚁ","ᚚ"],["ᚠ","ᛪ"],["ᜀ","ᜌ"],["ᜎ","ᜑ"],["ᜠ","ᜱ"],["ᝀ","ᝑ"],["ᝠ","ᝬ"],["ᝮ","ᝰ"],["ក","ឳ"],"ៗ","ៜ",["ᠠ","ᡷ"],["ᢀ","ᢨ"],"ᢪ",["ᢰ","ᣵ"],["ᤀ","ᤜ"],["ᥐ","ᥭ"],["ᥰ","ᥴ"],["ᦀ","ᦫ"],["ᧁ","ᧇ"],["ᨀ","ᨖ"],["ᨠ","ᩔ"],"ᪧ",["ᬅ","ᬳ"],["ᭅ","ᭋ"],["ᮃ","ᮠ"],"ᮮ","ᮯ",["ᮺ","ᯥ"],["ᰀ","ᰣ"],["ᱍ","ᱏ"],["ᱚ","ᱽ"],["ᳩ","ᳬ"],["ᳮ","ᳱ"],"ᳵ","ᳶ",["ᴀ","ᶿ"],["Ḁ","ἕ"],["Ἐ","Ἕ"],["ἠ","ὅ"],["Ὀ","Ὅ"],["ὐ","ὗ"],"Ὑ","Ὓ","Ὕ",["Ὗ","ώ"],["ᾀ","ᾴ"],["ᾶ","ᾼ"],"ι",["ῂ","ῄ"],["ῆ","ῌ"],["ῐ","ΐ"],["ῖ","Ί"],["ῠ","Ῥ"],["ῲ","ῴ"],["ῶ","ῼ"],"ⁱ","ⁿ",["ₐ","ₜ"],"ℂ","ℇ",["ℊ","ℓ"],"ℕ",["ℙ","ℝ"],"ℤ","Ω","ℨ",["K","ℭ"],["ℯ","ℹ"],["ℼ","ℿ"],["ⅅ","ⅉ"],"ⅎ","Ↄ","ↄ",["Ⰰ","Ⱞ"],["ⰰ","ⱞ"],["Ⱡ","ⳤ"],["Ⳬ","ⳮ"],"Ⳳ","ⳳ",["ⴀ","ⴥ"],"ⴧ","ⴭ",["ⴰ","ⵧ"],"ⵯ",["ⶀ","ⶖ"],["ⶠ","ⶦ"],["ⶨ","ⶮ"],["ⶰ","ⶶ"],["ⶸ","ⶾ"],["ⷀ","ⷆ"],["ⷈ","ⷎ"],["ⷐ","ⷖ"],["ⷘ","ⷞ"],"ⸯ","々","〆",["〱","〵"],"〻","〼",["ぁ","ゖ"],["ゝ","ゟ"],["ァ","ヺ"],["ー","ヿ"],["ㄅ","ㄭ"],["ㄱ","ㆎ"],["ㆠ","ㆺ"],["ㇰ","ㇿ"],["㐀","䶵"],["一","鿌"],["ꀀ","ꒌ"],["ꓐ","ꓽ"],["ꔀ","ꘌ"],["ꘐ","ꘟ"],"ꘪ","ꘫ",["Ꙁ","ꙮ"],["ꙿ","ꚗ"],["ꚠ","ꛥ"],["ꜗ","ꜟ"],["Ꜣ","ꞈ"],["Ꞌ","ꞎ"],["Ꞑ","ꞓ"],["Ꞡ","Ɦ"],["ꟸ","ꠁ"],["ꠃ","ꠅ"],["ꠇ","ꠊ"],["ꠌ","ꠢ"],["ꡀ","ꡳ"],["ꢂ","ꢳ"],["ꣲ","ꣷ"],"ꣻ",["ꤊ","ꤥ"],["ꤰ","ꥆ"],["ꥠ","ꥼ"],["ꦄ","ꦲ"],"ꧏ",["ꨀ","ꨨ"],["ꩀ","ꩂ"],["ꩄ","ꩋ"],["ꩠ","ꩶ"],"ꩺ",["ꪀ","ꪯ"],"ꪱ","ꪵ","ꪶ",["ꪹ","ꪽ"],"ꫀ","ꫂ",["ꫛ","ꫝ"],["ꫠ","ꫪ"],["ꫲ","ꫴ"],["ꬁ","ꬆ"],["ꬉ","ꬎ"],["ꬑ","ꬖ"],["ꬠ","ꬦ"],["ꬨ","ꬮ"],["ꯀ","ꯢ"],["가","힣"],["ힰ","ퟆ"],["ퟋ","ퟻ"],["豈","舘"],["並","龎"],["ff","st"],["ﬓ","ﬗ"],"יִ",["ײַ","ﬨ"],["שׁ","זּ"],["טּ","לּ"],"מּ","נּ","סּ","ףּ","פּ",["צּ","ﮱ"],["ﯓ","ﴽ"],["ﵐ","ﶏ"],["ﶒ","ﷇ"],["ﷰ","ﷻ"],["ﹰ","ﹴ"],["ﹶ","ﻼ"],["A","Z"],["a","z"],["ヲ","ᄒ"],["ᅡ","ᅦ"],["ᅧ","ᅬ"],["ᅭ","ᅲ"],["ᅳ","ᅵ"]],!1,!1),Me=wa("a guid"),Ge=wa("a hex value"),Je=Da([["0","9"],["a","f"],["A","F"]],!1,!1),Ke=Da(["/","?"],!0,!1),Ve=Da([["a","z"],["A","Z"],["0","9"],"-",'"',".",'"',"_","~","!","$","'","(",")","*","+",",",";","=",":","@",'"',"/",'"','"',"?",'"'],!1,!1),We=wa("a binary"),Xe=ya("binary'",!1),Ye=Da([["a","z"],["A","Z"],["0","9"],"-","_"],!1,!1),tn=ya("==",!1),rn=ya("(",!1),un=wa("an optional whitespace"),en=Da([" ","\t","\n"],!1,!1),nn=wa("a whitespace"),sn=function(t){Qi=t},on=function(){if(Ui)return Qi.columns=[{args:[{val:1}],as:"$count",func:"count"}],delete Qi.expand,delete Qi.limit,delete Qi.orderBy,Qi.apply?Yi(Qi,Qi.apply):{SELECT:Qi};let t;if(Qi.expand){Qi.columns||(Qi.columns=["*"],t=!0);for(const t of Qi.expand){const r=Qi.columns.findIndex(Ki(t));r>-1&&Qi.columns.splice(r,1),Qi.columns.push(t)}delete Qi.expand}return Qi.count&&Qi.apply&&(Qi.__countAggregated=!0),Qi.apply?Yi(Qi,Qi.apply,t):{SELECT:Qi}},an=function(){Ui=!0},cn=function(t){return!zi.includes(t)&&{from:{ref:[t]}}},fn=function(t){return[t]},ln=function(t,r){return r},An=function(t,r){if(r=r&&r[1],!t&&!r)return{from:{ref:[""]}};if(!t&&r&&r.from)return r.from.ref.unshift(""),r;const[u,e]=t,n=[];if(e?e.length>2?n.push({id:u,where:e[1].map((t=>t.val&&t.val.match&&t.val.match(/^"(.*)"$/)?{val:t.val.match(/^"(.*)"$/)[1]}:t))}):n.push({id:u,where:[]}):qi?n.push(`${"object"==typeof u&&"val"in u?u.val:u}`):"object"==typeof u&&"string"==typeof u.val&&u.val.match(/^[1-9]\d*$|^0$/)?n.push({val:Mi(u.val)}):n.push(u),r&&r.from){const t=r.from.ref;Object.prototype.hasOwnProperty.call(t[0],"val")&&(n[n.length-1]={id:n[n.length-1],where:[t.shift()]}),n.push(...t)}const s={from:{ref:n}};return r&&r.columns&&(s.columns=r.columns),s},hn=function(t){return[t]},pn=function(t,r,u){const e=[t,"=",r];return u&&e.push("and",...u[1]),e},dn=function(t,r){return r},Cn=function(t,r,u){return u},vn=function(t,r,u){const e=[r?{id:t,where:r}:t];return u.length&&e.push(...u.map((t=>t.from.ref[0]))),{from:{ref:e}}},Fn=function(t){t&&(Qi.search=t)},gn=function(t){t&&t.apply&&(Qi.apply=t.apply)},bn=function(t){Qi.where=t},mn=function(t,r){nc(r)},En=function(t){nc(t,!0)},Bn=function(t){(Qi.limit||(Qi.limit={})).rows={val:t}},yn=function(t){ec(t)},Dn=function(t){t&&(Qi.search=t)},wn=function(){return cds.env.features.skip_apply_parsing},$n=function(){return null},xn=function(t){return t},Ln=function(){return null},Sn=function(t){return Qi.columns=Array.isArray(Qi.columns)?Qi.columns:[],Qi.columns.find(Ki(t))||Qi.columns.push(t),t},Tn=function(){const t=new Error('"/$count" is not supported for expand operation');throw t.statusCode=501,t},jn=function(t){return t},kn=function(t){if(t.find((t=>t&&void 0!==t.apply))){const t=new Error('"$apply" is not supported for expand operation');throw t.statusCode=501,t}if(Qi.columns){for(const t of Qi.columns)Qi.expand.find(Ki(t))||Qi.expand.push(t);delete Qi.columns}else Array.isArray(Qi.expand)&&-1===Qi.expand.indexOf("*")&&Qi.expand.unshift("*")},On=function(){Hi.push(Qi),Qi=Qi.expand[Qi.expand.length-1],Qi.expand=[]},Zn=function(){Qi.expand.length||Qi.expand.push("*"),Qi=Hi.pop()},_n=function(t){const r="*"===t?{}:t;return r.expand=["*"],Array.isArray(Qi.expand)||(Qi.expand=[]),Qi.expand.find(Ki(r))||Qi.expand.push(r),r},zn=function(t){return t},Nn=function(t){Gi(t,{SELECT:Qi})},In=function(t){return t},Rn=function(t){return t},Pn=function(t){return[{val:t}]},qn=function(t){return[{val:t}]},Hn=function(t){return t},Qn=function(t){return t?[t]:[]},Un=function(t,r){t.push({xpr:r})},Mn=function(t,r){t.push(...r)},Gn=function(t,r){"not"===t[t.length-1]&&"not"===r[0]?t.push({xpr:r}):t.push(...r)},Jn=function(t,r){t.push(r)},Kn=function(t,r){t.push({val:r})},Vn=function(t,r){t.push(...r)},Wn=function(t,r,u){t.push(r,...u)},Xn=function(t){return t},Yn=function(t){return[t]},ts=function(t,r){t.push(r)},rs=function(t,r){let u=t.pop();if(!r)return["exists",{ref:[...t,{id:u}]}];let e=[];for(let t=0,n=0;t<r.length;++t){let s=r[t];s.ref&&0===s.ref.length&&"="===r[t+1]?e[n++]={func:"contains",args:[{ref:[u]},r[t+=2]]}:e[n++]=s}return e.length<r.length?t.length?(u=t.pop(),["exists",{ref:[...t,{id:u,where:e}]}]):e:["exists",{ref:[...t,{id:u,where:r}]}]},us=function(t,r){let u=t.pop();return["not","exists",{ref:[...t,{id:u,where:["not",{xpr:[...r]}]}]}]},es=function(t,r){return r},ns=function(t){return t?[t]:[]},ss=function(t,r){t.push({xpr:r})},os=function(t,r){t.push(...r)},as=function(t,r){t.push(r)},is=function(t,r){t.push(...r)},cs=function(t,r){t.push(...r)},fs=function(t,r,u){t.push(r,...u)},ls=function(t){return t},As=function(t,r){return sc(t,r)},hs=function(t){return t},ps=function(t){return t},ds=function(){const t=new Error('"$orderby" does not support lambda');throw t.statusCode=501,t},Cs=function(t,r){return r},vs=function(t,r){return Ri(t,r&&{sort:r})},Fs=function(t){t&&(Qi.count=!0)},gs=function(t,r){return r},bs=function(t,r){if(void 0!==t){r=Array.isArray(r)?r:[r];for(let u of r)for(const r in u)if("limit"===r&&u.limit&&t.limit&&t.limit.offset&&u.limit.rows)t.limit.rows=u.limit.rows;else if(t[r]||"groupBy"===r&&(t.where||t.search)||"aggregate"===r&&"groupBy"in t&&!("groupBy"in u)){let e=t;t={apply:e},"limit"===r&&u[r].offset&&e.limit&&e.limit.offset&&e.limit.offset.val&&(u[r].offset+=e.limit.offset.val),e=t,e[r]=u[r]}else t[r]=u[r];return{apply:t}}},ms=function(t){return t},Es=function(t){return{val:t}},Bs=function(t){return t},ys=function(t,r){return r},Ds=function(t,r){return[t,...r]},ws=function(t){return{list:t}},$s=function(t,r){oc(t,r)},xs=function(t){return"@"+t},Ls=function(t,r){ic(Qi,t,r)||(r.val?r=r.val:r.list&&Array.isArray(r.list)&&(r=r.list.map((t=>t.val))),oc(t,r))},Ss=function(t){if("json"!==t.toLowerCase()){const t=new Error('Only query parameter "json" is allowed in "$format".');throw t.statusCode=501,t}},Ts=function(t,r,u){return[t,Ni[r]||r,u]},js=function(t){return{list:t}},ks=function(t,r){return[t,"in",r]},Os=function(t,r){return r},Zs=function(t,r){return r?{id:t,where:r}:t},_s=function(t,r){return{func:"count",as:"$count",args:[{ref:t}]}},zs=function(t,r){return r},Ns=function(t,r){return"null"===t?{val:null}:{ref:[t,...r]}},Is=function(t){return{val:t}},Rs=function(t){return{val:t}},Ps=function(t){return{val:t}},qs=function(t){return{val:t}},Hs=function(t){return"number"==typeof t?{val:t}:{val:t,literal:"number"}},Qs=function(t){return{val:t}},Us=function(t){return{val:t}},Ms=function(t){return{val:t}},Gs=function(){return{val:null}},Js=function(t){return{val:t}},Ks=function(t){return{val:t}},Vs=function(t){return{list:t.replace(/"/g,"").split(",").map((t=>({val:t})))}},Ws=function(t,r){return r},Xs=function(t,r){return[t,...r]},Ys=function(t){return{list:t}},to=function(t,r){if(Pi&&!(t.toLowerCase()in Pi.functions))throw Object.assign(new Error(`Function "${t}" is not supported`),{statusCode:501});return{func:t.toLowerCase(),args:r}},ro=function(t,r){return r},uo=function(t,r){return[t,...r]},eo=function(t){return t.length?t[0]:t},no=function(t,r,u){return{func:t.toLowerCase(),args:[r,u]}},so=function(){return"not"},oo=function(){return"and"},ao=function(){return"or"},io=function(t){return t},co=function(t){return t},fo=function(t){return t},lo=function(t){return t},Ao=function(t){return t},ho=function(t){return t},po=function(t){return t},Co=function(t){return t},vo=function(t){return t},Fo=function(t){return t},go=function(t){return{ancestors:t}},bo=function(t){return{descendants:t}},mo=function(t,r){if(t=t.toLowerCase(),!Ii[t])throw Object.assign(new Error(`Transformation "${t}" in $apply is not yet supported.`),{statusCode:501});return{aggregate:[{func:t,args:r}]}},Eo=function(t){return t},Bo=function(t,r){return r},yo=function(t,r){return{aggregate:[t,...r]}},Do=function(t){return{func:"count",args:[{val:1}],as:t}},wo=function(t){return t},$o=function(t,r,u){return{func:r,args:[t],as:u??t.ref[0]}},xo=function(t){return t.toLowerCase()},Lo=function(t){return t},So=function(t,r){return r},To=function(t,r){return{groupBy:[t,...r]}},jo=function(t,r,u){return u},ko=function(t,r,u){let e={};return e=u?{groupBy:[t,...r],...u.apply}:{groupBy:[t,...r]},e},Oo=function(t){return t},Zo=function(t){const r=new Error("Rollup in groupby is not supported yet.");throw r.statusCode=501,r},_o=function(t){return t},zo=function(t){return{where:t}},No=function(t){if(t=t.trim())return{search:[{val:t}]}},Io=function(t,r){return r},Ro=function(t,r){return{concat:[t,...r]}},Po=function(t,r){return[t,r]},qo=function(){return{identity:!0}},Ho=function(t){return{limit:{rows:{val:t}}}},Qo=function(t){return{limit:{offset:{val:t}}}},Uo=function(t,r){return r},Mo=function(t,r){return{orderBy:[t,...r]}},Go=function(t,r){return r},Jo=function(t,r){return r.forEach((r=>Object.assign(t,r))),{topLevels:t}},Ko=function(t){return{hierarchyNodes:t}},Vo=function(t){return{hierarchyQualifier:t}},Wo=function(t){return{nodeProperty:t}},Xo=function(t){return{levels:t}},Yo=function(t,r){return r},ta=function(t,r){return{expandLevels:[t,...r]}},ra=function(t,r){return Object.assign(t,r)},ua=function(t){return{nodeID:t}},ea=function(t){return{levels:t}},na=function(t,r,u,e,n,s){return{path:t,hierarchy:r,id:u,nodes:e,distance:n,keepStart:s?.keepStart||!1}},sa=function(t,r){return r},oa=function(t,r){return[t,...r]},aa=function(t){return{filter:t}},ia=function(t){return{search:t}},ca=function(){return{keepStart:!0}},fa=function(t){return"true"===t},la=function(t){return t.replace(/''/g,"'")},Aa=function(t){return t.replace(/\\\\/g,"\\").replace(/\\"/g,'"')},ha=function(t){if(t.split("-")[0].length>4)throw Object.assign(new Error(`The type Edm.DateTimeOffset is not compatible with "${t}"`),{statusCode:400});return t},pa=function(t){return Mi(t)},da=function(t){return parseInt(t)},Ca=function(t){return t},va=function(t){return{val:t}},Fa=function(t){return cds.env.features.base64_binaries?Ji(t):Buffer.from(t,"base64")},ga=0|r.peg$currPos,ba=[{line:1,column:1}],ma=ga,Ea=r.peg$maxFailExpected||[],Ba=0|r.peg$silentFails;if(r.startRule){if(!(r.startRule in s))throw new Error("Can't start parsing from rule \""+r.startRule+'".');o=s[r.startRule]}function ya(t,r){return{type:"literal",text:t,ignoreCase:r}}function Da(t,r,u){return{type:"class",parts:t,inverted:r,ignoreCase:u}}function wa(t){return{type:"other",description:t}}function $a(r){var u,e=ba[r];if(e)return e;if(r>=ba.length)u=ba.length-1;else for(u=r;!ba[--u];);for(e={line:(e=ba[u]).line,column:e.column};u<r;)10===t.charCodeAt(u)?(e.line++,e.column=1):e.column++,u++;return ba[r]=e,e}function xa(t,r,u){var e=$a(t),s=$a(r),o={source:n,start:{offset:t,line:e.line,column:e.column},end:{offset:r,line:s.line,column:s.column}};return u&&n&&"function"==typeof n.offset&&(o.start=n.offset(o.start),o.end=n.offset(o.end)),o}function La(t){ga<ma||(ga>ma&&(ma=ga,Ea=[]),Ea.push(t))}function Sa(t,r,u){return new peg$SyntaxError(peg$SyntaxError.buildMessage(t,r),t,r,u)}function Ta(){var r,u,n,s,o,f,l,A,h,p,d,C,v,F,g,b,m;if(r=ga,47===t.charCodeAt(ga)?(u=a,ga++):(u=e,0===Ba&&La(Er)),u===e&&(u=null),n=ga,(s=ja())!==e&&(s=sn(s)),(n=s)!==e){if(s=ga,o=Zi(),63===t.charCodeAt(ga)?(f=i,ga++):(f=e,0===Ba&&La(Br)),f!==e){if(l=Zi(),A=ga,38===t.charCodeAt(ga)?(h=c,ga++):(h=e,0===Ba&&La(yr)),h===e&&(h=null),p=Zi(),(d=Za())!==e){if(C=[],v=ga,F=Zi(),g=[],38===t.charCodeAt(ga)?(b=c,ga++):(b=e,0===Ba&&La(yr)),b!==e)for(;b!==e;)g.push(b),38===t.charCodeAt(ga)?(b=c,ga++):(b=e,0===Ba&&La(yr));else g=e;for(g!==e?(b=Zi(),(m=Za())!==e?v=F=[F,g,b,m]:(ga=v,v=e)):(ga=v,v=e);v!==e;){if(C.push(v),v=ga,F=Zi(),g=[],38===t.charCodeAt(ga)?(b=c,ga++):(b=e,0===Ba&&La(yr)),b!==e)for(;b!==e;)g.push(b),38===t.charCodeAt(ga)?(b=c,ga++):(b=e,0===Ba&&La(yr));else g=e;g!==e?(b=Zi(),(m=Za())!==e?v=F=[F,g,b,m]:(ga=v,v=e)):(ga=v,v=e)}A=h=[h,p,d,C]}else ga=A,A=e;A===e&&(A=null),s=o=[o,f,l,A]}else ga=s,s=e;s===e&&(s=null),o=Zi(),r=on()}else ga=r,r=e;return r}function ja(){var r,u,n,s,o,i,c;return r=ga,t.substr(ga,6)===f?(u=f,ga+=6):(u=e,0===Ba&&La(Dr)),u!==e&&(u=an()),(r=u)===e&&(r=ga,u=ga,t.substr(ga,4)===l?(n=l,ga+=4):(n=e,0===Ba&&La(wr)),n===e&&(t.substr(ga,6)===A?(n=A,ga+=6):(n=e,0===Ba&&La($r))),(u=n!==e?t.substring(u,ga):n)!==e&&(u=cn(u)),(r=u)===e&&(r=ga,u=ga,(n=xi())!==e?(s=ga,(o=ki())!==e&&(i=Oi())!==e?s=o=[o,i]:(ga=s,s=e),s===e&&(s=ga,(o=ki())!==e&&(i=ka())!==e&&(c=Oi())!==e?s=o=[o,i,c]:(ga=s,s=e)),s===e&&(s=null),o=ga,Ba++,i=Ti(),Ba--,i===e?o=void 0:(ga=o,o=e),o!==e?u=n=[n,s,o]:(ga=u,u=e)):(ga=u,u=e),u===e&&(u=ga,(n=Ti())!==e&&(n=fn(n)),u=n),u===e&&(u=null),n=ga,s=ga,47===t.charCodeAt(ga)?(o=a,ga++):(o=e,0===Ba&&La(Er)),o!==e&&(o=ln(u,o)),(s=o)!==e?((o=ja())===e&&(o=null),n=s=[s,o]):(ga=n,n=e),n===e&&(n=null),r=An(u,n))),r}function ka(){var r,u,n,s,o,a,i;return r=ga,(u=ei())!==e&&(u=hn(u)),(r=u)===e&&(r=ga,(u=ui())!==e?(Zi(),61===t.charCodeAt(ga)?(n=h,ga++):(n=e,0===Ba&&La(xr)),n!==e?(Zi(),(s=ei())!==e?(o=ga,(a=ji())!==e&&(i=ka())!==e?o=a=[a,i]:(ga=o,o=e),o===e&&(o=null),r=pn(u,s,o)):(ga=r,r=e)):(ga=r,r=e)):(ga=r,r=e)),r}function Oa(){var r,u,n,s,o,i,c;if(r=ga,(u=xi())!==e){for(n=ga,(s=ki())!==e&&(o=Oi())!==e?n=s=[s,o]:(ga=n,n=e),n===e&&(n=ga,(s=ki())!==e&&(o=ka())!==e&&(i=Oi())!==e?n=dn(u,o):(ga=n,n=e)),n===e&&(n=null),s=[],o=ga,47===t.charCodeAt(ga)?(i=a,ga++):(i=e,0===Ba&&La(Er)),i!==e&&(c=Oa())!==e?o=Cn(u,n,c):(ga=o,o=e);o!==e;)s.push(o),o=ga,47===t.charCodeAt(ga)?(i=a,ga++):(i=e,0===Ba&&La(Er)),i!==e&&(c=Oa())!==e?o=Cn(u,n,c):(ga=o,o=e);r=vn(u,n,s)}else ga=r,r=e;return r}function Za(){var r,u,n,s;return r=ga,t.substr(ga,11)===p?(u=p,ga+=11):(u=e,0===Ba&&La(Lr)),u!==e?(n=Zi(),s=function(){var r,u;r=ga,u=function(){var r,u,n;r=ga,u=[],n=t.charAt(ga),gr.test(n)?ga++:(n=e,0===Ba&&La(Ve));if(n!==e)for(;n!==e;)u.push(n),n=t.charAt(ga),gr.test(n)?ga++:(n=e,0===Ba&&La(Ve));else u=e;r=u!==e?t.substring(r,ga):u;return r}(),u===e&&(u=null);return u=Nn(u),r=u,r}(),r=u=[u,n,s]):(ga=r,r=e),r===e&&(r=ga,t.substr(ga,8)===d?(u=d,ga+=8):(u=e,0===Ba&&La(Sr)),u!==e?(n=Zi(),s=function(){var r,u;r=ga,u=function(){var r,u,n,s,o,a,i,c,f,l,A,h;r=ga,u=ga,n=[],s=ga,o=ga,a=[],i=t.charAt(ga),er.test(i)?ga++:(i=e,0===Ba&&La(Gr));for(;i!==e;)a.push(i),i=t.charAt(ga),er.test(i)?ga++:(i=e,0===Ba&&La(Gr));o=t.substring(o,ga),a=[],i=t.charAt(ga),nr.test(i)?ga++:(i=e,0===Ba&&La(Jr));if(i!==e)for(;i!==e;)a.push(i),i=t.charAt(ga),nr.test(i)?ga++:(i=e,0===Ba&&La(Jr));else a=e;if(a===e){if(a=[],i=ga,34===t.charCodeAt(ga)?(c=T,ga++):(c=e,0===Ba&&La(Kr)),c!==e){if(f=[],t.substr(ga,2)===j?(l=j,ga+=2):(l=e,0===Ba&&La(Vr)),l===e&&(t.substr(ga,2)===k?(l=k,ga+=2):(l=e,0===Ba&&La(Wr)),l===e&&(l=t.charAt(ga),sr.test(l)?ga++:(l=e,0===Ba&&La(Xr)))),l!==e)for(;l!==e;)f.push(l),t.substr(ga,2)===j?(l=j,ga+=2):(l=e,0===Ba&&La(Vr)),l===e&&(t.substr(ga,2)===k?(l=k,ga+=2):(l=e,0===Ba&&La(Wr)),l===e&&(l=t.charAt(ga),sr.test(l)?ga++:(l=e,0===Ba&&La(Xr))));else f=e;if(f!==e)if(34===t.charCodeAt(ga)?(l=T,ga++):(l=e,0===Ba&&La(Kr)),l!==e){for(A=[],h=t.charAt(ga),er.test(h)?ga++:(h=e,0===Ba&&La(Gr));h!==e;)A.push(h),h=t.charAt(ga),er.test(h)?ga++:(h=e,0===Ba&&La(Gr));i=c=[c,f,l,A]}else ga=i,i=e;else ga=i,i=e}else ga=i,i=e;if(i!==e)for(;i!==e;)if(a.push(i),i=ga,34===t.charCodeAt(ga)?(c=T,ga++):(c=e,0===Ba&&La(Kr)),c!==e){if(f=[],t.substr(ga,2)===j?(l=j,ga+=2):(l=e,0===Ba&&La(Vr)),l===e&&(t.substr(ga,2)===k?(l=k,ga+=2):(l=e,0===Ba&&La(Wr)),l===e&&(l=t.charAt(ga),sr.test(l)?ga++:(l=e,0===Ba&&La(Xr)))),l!==e)for(;l!==e;)f.push(l),t.substr(ga,2)===j?(l=j,ga+=2):(l=e,0===Ba&&La(Vr)),l===e&&(t.substr(ga,2)===k?(l=k,ga+=2):(l=e,0===Ba&&La(Wr)),l===e&&(l=t.charAt(ga),sr.test(l)?ga++:(l=e,0===Ba&&La(Xr))));else f=e;if(f!==e)if(34===t.charCodeAt(ga)?(l=T,ga++):(l=e,0===Ba&&La(Kr)),l!==e){for(A=[],h=t.charAt(ga),er.test(h)?ga++:(h=e,0===Ba&&La(Gr));h!==e;)A.push(h),h=t.charAt(ga),er.test(h)?ga++:(h=e,0===Ba&&La(Gr));i=c=[c,f,l,A]}else ga=i,i=e;else ga=i,i=e}else ga=i,i=e;else a=e}a!==e?s=o=[o,a]:(ga=s,s=e);if(s!==e)for(;s!==e;){for(n.push(s),s=ga,o=ga,a=[],i=t.charAt(ga),er.test(i)?ga++:(i=e,0===Ba&&La(Gr));i!==e;)a.push(i),i=t.charAt(ga),er.test(i)?ga++:(i=e,0===Ba&&La(Gr));if(o=t.substring(o,ga),a=[],i=t.charAt(ga),nr.test(i)?ga++:(i=e,0===Ba&&La(Jr)),i!==e)for(;i!==e;)a.push(i),i=t.charAt(ga),nr.test(i)?ga++:(i=e,0===Ba&&La(Jr));else a=e;if(a===e){if(a=[],i=ga,34===t.charCodeAt(ga)?(c=T,ga++):(c=e,0===Ba&&La(Kr)),c!==e){if(f=[],t.substr(ga,2)===j?(l=j,ga+=2):(l=e,0===Ba&&La(Vr)),l===e&&(t.substr(ga,2)===k?(l=k,ga+=2):(l=e,0===Ba&&La(Wr)),l===e&&(l=t.charAt(ga),sr.test(l)?ga++:(l=e,0===Ba&&La(Xr)))),l!==e)for(;l!==e;)f.push(l),t.substr(ga,2)===j?(l=j,ga+=2):(l=e,0===Ba&&La(Vr)),l===e&&(t.substr(ga,2)===k?(l=k,ga+=2):(l=e,0===Ba&&La(Wr)),l===e&&(l=t.charAt(ga),sr.test(l)?ga++:(l=e,0===Ba&&La(Xr))));else f=e;if(f!==e)if(34===t.charCodeAt(ga)?(l=T,ga++):(l=e,0===Ba&&La(Kr)),l!==e){for(A=[],h=t.charAt(ga),er.test(h)?ga++:(h=e,0===Ba&&La(Gr));h!==e;)A.push(h),h=t.charAt(ga),er.test(h)?ga++:(h=e,0===Ba&&La(Gr));i=c=[c,f,l,A]}else ga=i,i=e;else ga=i,i=e}else ga=i,i=e;if(i!==e)for(;i!==e;)if(a.push(i),i=ga,34===t.charCodeAt(ga)?(c=T,ga++):(c=e,0===Ba&&La(Kr)),c!==e){if(f=[],t.substr(ga,2)===j?(l=j,ga+=2):(l=e,0===Ba&&La(Vr)),l===e&&(t.substr(ga,2)===k?(l=k,ga+=2):(l=e,0===Ba&&La(Wr)),l===e&&(l=t.charAt(ga),sr.test(l)?ga++:(l=e,0===Ba&&La(Xr)))),l!==e)for(;l!==e;)f.push(l),t.substr(ga,2)===j?(l=j,ga+=2):(l=e,0===Ba&&La(Vr)),l===e&&(t.substr(ga,2)===k?(l=k,ga+=2):(l=e,0===Ba&&La(Wr)),l===e&&(l=t.charAt(ga),sr.test(l)?ga++:(l=e,0===Ba&&La(Xr))));else f=e;if(f!==e)if(34===t.charCodeAt(ga)?(l=T,ga++):(l=e,0===Ba&&La(Kr)),l!==e){for(A=[],h=t.charAt(ga),er.test(h)?ga++:(h=e,0===Ba&&La(Gr));h!==e;)A.push(h),h=t.charAt(ga),er.test(h)?ga++:(h=e,0===Ba&&La(Gr));i=c=[c,f,l,A]}else ga=i,i=e;else ga=i,i=e}else ga=i,i=e;else a=e}a!==e?s=o=[o,a]:(ga=s,s=e)}else n=e;u=n!==e?t.substring(u,ga):n;u!==e&&(u=Pn(u));return r=u,r}(),u!==e&&(u=Rn(u));r=u,r===e&&(r=Zi());return r}(),s!==e?r=Fn(s):(ga=r,r=e)):(ga=r,r=e),r===e&&(r=ga,(u=_a())!==e&&(u=gn(u)),(r=u)===e&&(r=function(){var r,u,n,s;r=ga,t.substr(ga,3)===y?(u=y,ga+=3):(u=e,0===Ba&&La(Rr));u===e&&(t.substr(ga,5)===D?(u=D,ga+=5):(u=e,0===Ba&&La(Pr)),u===e&&(t.substr(ga,12)===w?(u=w,ga+=12):(u=e,0===Ba&&La(qr)),u===e&&(t.substr(ga,3)===$?(u=$,ga+=3):(u=e,0===Ba&&La(Hr)))));u!==e?(61===t.charCodeAt(ga)?(n=h,ga++):(n=e,0===Ba&&La(xr)),n!==e&&(s=wi())!==e?r=u=[u,n,s]:(ga=r,r=e)):(ga=r,r=e);return r}(),r===e&&(r=function(){var r,u,n,s,o;r=ga,t.substr(ga,8)===U?(u=U,ga+=8):(u=e,0===Ba&&La(pu));if(u!==e){for(n=ga,s=[],o=t.charAt(ga),ur.test(o)?ga++:(o=e,0===Ba&&La(Ir));o!==e;)s.push(o),o=t.charAt(ga),ur.test(o)?ga++:(o=e,0===Ba&&La(Ir));n=t.substring(n,ga),r=Ss(n)}else ga=r,r=e;return r}(),r===e&&(r=function(){var r,u,n,s,o,a;r=ga,u=ga,n=[],s=t.charAt(ga),ar.test(s)?ga++:(s=e,0===Ba&&La(lu));if(s!==e)for(;s!==e;)n.push(s),s=t.charAt(ga),ar.test(s)?ga++:(s=e,0===Ba&&La(lu));else n=e;u=n!==e?t.substring(u,ga):n;if(u!==e){for(61===t.charCodeAt(ga)?(n=h,ga++):(n=e,0===Ba&&La(xr)),n===e&&(n=null),s=ga,o=[],a=t.charAt(ga),ur.test(a)?ga++:(a=e,0===Ba&&La(Ir));a!==e;)o.push(a),a=t.charAt(ga),ur.test(a)?ga++:(a=e,0===Ba&&La(Ir));s=t.substring(s,ga),r=$s(u,s)}else ga=r,r=e;return r}(),r===e&&(r=function(){var r,u,n,s,o;r=ga,u=Wa(),u!==e?(61===t.charCodeAt(ga)?(n=h,ga++):(n=e,0===Ba&&La(xr)),n!==e?(s=ga,Ba++,o=Wa(),Ba--,o===e?s=void 0:(ga=s,s=e),s!==e?(o=function(){var r,u,n,s;r=ei(),r===e&&(r=ni())===e&&(r=si())===e&&(r=ga,91===t.charCodeAt(ga)?(u=q,ga++):(u=e,0===Ba&&La(cu)),u!==e?(n=function(){var r,u,n,s,o,a;if(r=ga,u=Va(),u!==e){for(n=[],s=ga,44===t.charCodeAt(ga)?(o=P,ga++):(o=e,0===Ba&&La(iu)),o!==e&&(a=Va())!==e?s=ys(u,a):(ga=s,s=e);s!==e;)n.push(s),s=ga,44===t.charCodeAt(ga)?(o=P,ga++):(o=e,0===Ba&&La(iu)),o!==e&&(a=Va())!==e?s=ys(u,a):(ga=s,s=e);r=Ds(u,n)}else ga=r,r=e;return r}(),n!==e?(93===t.charCodeAt(ga)?(s=H,ga++):(s=e,0===Ba&&La(fu)),s!==e?r=ws(n):(ga=r,r=e)):(ga=r,r=e)):(ga=r,r=e));return r}(),o!==e?r=Ls(u,o):(ga=r,r=e)):(ga=r,r=e)):(ga=r,r=e)):(ga=r,r=e);return r}(),r===e&&(r=function(){var r,u,n,s;r=ga,t.substr(ga,12)===I?(u=I,ga+=12):(u=e,0===Ba&&La(su));if(u!==e){for(Zi(),n=[],s=t.charAt(ga),ur.test(s)?ga++:(s=e,0===Ba&&La(Ir));s!==e;)n.push(s),s=t.charAt(ga),ur.test(s)?ga++:(s=e,0===Ba&&La(Ir));r=ms(n)}else ga=r,r=e;return r}()))))))),r}function _a(){var r,u,n,s,o,a,i,c;if(r=ga,t.substr(ga,8)===C?(u=C,ga+=8):(u=e,0===Ba&&La(Tr)),u!==e)if(n=Zi(),(s=za())!==e){for(o=[],a=ga,(i=ji())!==e&&(c=za())!==e?a=i=[i,c]:(ga=a,a=e);a!==e;)o.push(a),a=ga,(i=ji())!==e&&(c=za())!==e?a=i=[i,c]:(ga=a,a=e);r=u=[u,n,s,o]}else ga=r,r=e;else ga=r,r=e;if(r===e){if(r=ga,t.substr(ga,8)===v?(u=v,ga+=8):(u=e,0===Ba&&La(jr)),u!==e)if(n=Zi(),(s=Ia())!==e){for(o=[],a=ga,(i=ji())!==e&&(c=Ia())!==e?a=i=[i,c]:(ga=a,a=e);a!==e;)o.push(a),a=ga,(i=ji())!==e&&(c=Ia())!==e?a=i=[i,c]:(ga=a,a=e);a=function(){var r,u;r=ga,t.substr(ga,7)===L?(u=L,ga+=7):(u=e,0===Ba&&La(Ur));u!==e&&(u=Tn());return r=u,r}(),a===e&&(a=null),r=u=[u,n,s,o,a]}else ga=r,r=e;else ga=r,r=e;if(r===e&&(r=ga,t.substr(ga,8)===F?(u=F,ga+=8):(u=e,0===Ba&&La(kr)),u!==e?(n=Zi(),(s=Ha())!==e?r=bn(s):(ga=r,r=e)):(ga=r,r=e),r===e)){if(r=ga,t.substr(ga,9)===g?(u=g,ga+=9):(u=e,0===Ba&&La(Or)),u!==e)if(n=Zi(),(s=Ja())!==e){for(o=[],a=ga,(i=ji())!==e&&(c=Ja())!==e?a=mn(s,c):(ga=a,a=e);a!==e;)o.push(a),a=ga,(i=ji())!==e&&(c=Ja())!==e?a=mn(s,c):(ga=a,a=e);r=En(s)}else ga=r,r=e;else ga=r,r=e;if(r===e&&(r=ga,t.substr(ga,5)===b?(u=b,ga+=5):(u=e,0===Ba&&La(Zr)),u!==e?(n=Zi(),(s=Ra())!==e?r=Bn(s):(ga=r,r=e)):(ga=r,r=e),r===e&&(r=ga,t.substr(ga,6)===m?(u=m,ga+=6):(u=e,0===Ba&&La(_r)),u!==e?(n=Zi(),(s=Pa())!==e?r=yn(s):(ga=r,r=e)):(ga=r,r=e),r===e&&(r=ga,t.substr(ga,8)===d?(u=d,ga+=8):(u=e,0===Ba&&La(Sr)),u!==e?(n=Zi(),(s=qa())!==e?r=Dn(s):(ga=r,r=e)):(ga=r,r=e),r===e&&(r=ga,t.substr(ga,7)===E?(u=E,ga+=7):(u=e,0===Ba&&La(zr)),u!==e?(n=Zi(),s=function(){var t,r;t=ga,r=Bi(),r!==e&&(r=Fs(r));return t=r,t}(),s!==e?r=u=[u,n,s]:(ga=r,r=e)):(ga=r,r=e),r===e))))){if(r=ga,t.substr(ga,7)===B?(u=B,ga+=7):(u=e,0===Ba&&La(Nr)),u!==e)if((n=(n=wn())?void 0:e)!==e){for(s=Zi(),o=[],a=t.charAt(ga),ur.test(a)?ga++:(a=e,0===Ba&&La(Ir));a!==e;)o.push(a),a=t.charAt(ga),ur.test(a)?ga++:(a=e,0===Ba&&La(Ir));r=$n()}else ga=r,r=e;else ga=r,r=e;r===e&&(r=ga,t.substr(ga,7)===B?(u=B,ga+=7):(u=e,0===Ba&&La(Nr)),u!==e?(n=Zi(),(s=Ka())!==e?r=xn(s):(ga=r,r=e)):(ga=r,r=e),r===e&&(r=ga,t.substr(ga,8)===v?(u=v,ga+=8):(u=e,0===Ba&&La(jr)),u!==e&&(u=Ln()),r=u))}}}return r}function za(){var r,u;return r=ga,42===t.charCodeAt(ga)?(u=x,ga++):(u=e,0===Ba&&La(Qr)),u===e&&(u=ui()),u!==e&&(u=Sn(u)),r=u}function Na(){var r,u,n,s,o;return r=ga,u=ga,(n=ki())!==e&&(n=On()),(u=n)!==e?(n=function(){var r,u,n,s,o;for(r=ga,u=[],n=ga,(s=_a())!==e?(Zi(),59===t.charCodeAt(ga)?(o=S,ga++):(o=e,0===Ba&&La(Mr)),o===e&&(o=null),n=jn(s)):(ga=n,n=e);n!==e;)u.push(n),n=ga,(s=_a())!==e?(Zi(),59===t.charCodeAt(ga)?(o=S,ga++):(o=e,0===Ba&&La(Mr)),o===e&&(o=null),n=jn(s)):(ga=n,n=e);return kn(u)}(),s=ga,(o=Oi())!==e&&(o=Zn()),(s=o)!==e?r=u=[u,n,s]:(ga=r,r=e)):(ga=r,r=e),r}function Ia(){var r,u,n;return r=ga,u=ga,42===t.charCodeAt(ga)?(n=x,ga++):(n=e,0===Ba&&La(Qr)),n===e&&(n=ui()),n!==e&&(n=_n(n)),(u=n)!==e?((n=Na())===e&&(n=null),r=u=[u,n]):(ga=r,r=e),r}function Ra(){var t,r;return t=ga,(r=$i())!==e&&(r=zn(r)),t=r}function Pa(){var t,r;return t=ga,(r=$i())!==e&&(r=In(r)),t=r}function qa(){var r,u,n,s;if(r=ga,u=ga,n=[],s=t.charAt(ga),or.test(s)?ga++:(s=e,0===Ba&&La(Yr)),s!==e)for(;s!==e;)n.push(s),s=t.charAt(ga),or.test(s)?ga++:(s=e,0===Ba&&La(Yr));else n=e;return(u=n!==e?t.substring(u,ga):n)!==e&&(u=qn(u)),(r=u)===e&&(r=Zi()),r}function Ha(){var t,r;return t=ga,(r=Qa())!==e&&(r=Hn(r)),t=r}function Qa(){var r,u,n,s,o,a,i;if(r=ga,u=ga,(n=ai())===e&&(n=null),u=n=Qn(n),n=ga,(s=ki())!==e&&(o=Qa())!==e&&(a=Oi())!==e?n=Un(u,o):(ga=n,n=e),n===e&&(n=ga,(s=Xa())!==e&&(s=Mn(u,s)),(n=s)===e&&(n=ga,(s=Ua())!==e&&(s=Gn(u,s)),(n=s)===e&&(n=ga,s=function(){var r,u,n,s;r=ga,u=t.substr(ga,8),u.toLowerCase()===ut?ga+=8:(u=e,0===Ba&&La(Zu));u===e&&((u=t.substr(ga,8)).toLowerCase()===et?ga+=8:(u=e,0===Ba&&La(_u)),u===e&&((u=t.substr(ga,10)).toLowerCase()===nt?ga+=10:(u=e,0===Ba&&La(zu)),u===e&&((u=t.substr(ga,14)).toLowerCase()===st?ga+=14:(u=e,0===Ba&&La(Nu)))));u!==e&&ki()!==e&&(n=ri())!==e&&ji()!==e&&(s=ri())!==e&&Oi()!==e?r=no(u,n,s):(ga=r,r=e);return r}(),s!==e&&(s=Jn(u,s)),(n=s)===e&&(n=ga,(s=Bi())!==e&&(s=Kn(u,s)),(n=s)===e&&(n=ga,(s=ti())!==e&&(s=Vn(u,s)),n=s))))),n!==e){for(s=[],o=ga,(a=ii())===e&&(a=ci()),a!==e&&(i=Qa())!==e?o=Wn(u,a,i):(ga=o,o=e);o!==e;)s.push(o),o=ga,(a=ii())===e&&(a=ci()),a!==e&&(i=Qa())!==e?o=Wn(u,a,i):(ga=o,o=e);r=Xn(u)}else ga=r,r=e;return r}function Ua(){var r,u,n,s,o,i,c;if(r=ga,u=ga,(n=xi())!==e&&(n=Yn(n)),(u=n)!==e)if(47===t.charCodeAt(ga)?(n=a,ga++):(n=e,0===Ba&&La(Er)),n!==e){for(s=[],o=ga,(i=xi())!==e?(47===t.charCodeAt(ga)?(c=a,ga++):(c=e,0===Ba&&La(Er)),c!==e?o=ts(u,i):(ga=o,o=e)):(ga=o,o=e);o!==e;)s.push(o),o=ga,(i=xi())!==e?(47===t.charCodeAt(ga)?(c=a,ga++):(c=e,0===Ba&&La(Er)),c!==e?o=ts(u,i):(ga=o,o=e)):(ga=o,o=e);o=ga,i=function(){var r,u,n;r=ga,t.substr(ga,3)===Z?(u=Z,ga+=3):(u=e,0===Ba&&La(ru));u!==e&&ki()!==e?((n=Ga())===e&&(n=null),Oi()!==e?r=hs(n):(ga=r,r=e)):(ga=r,r=e);return r}(),i!==e&&(i=rs(u,i)),(o=i)===e&&(o=ga,i=function(){var r,u,n;r=ga,t.substr(ga,3)===_?(u=_,ga+=3):(u=e,0===Ba&&La(uu));u!==e&&ki()!==e&&(n=Ga())!==e&&Oi()!==e?r=ps(n):(ga=r,r=e);return r}(),i!==e&&(i=us(u,i)),o=i),o!==e?r=es(u,o):(ga=r,r=e)}else ga=r,r=e;else ga=r,r=e;return r}function Ma(){var t,r,u,n,s,o,a;if(t=ga,r=ga,(u=ai())===e&&(u=null),r=u=ns(u),u=ga,(n=ki())!==e&&(s=Ma())!==e&&(o=Oi())!==e?u=ss(r,s):(ga=u,u=e),u===e&&(u=ga,(n=Xa())!==e&&(n=os(r,n)),(u=n)===e&&(u=ga,(n=oi())!==e&&(n=as(r,n)),(u=n)===e&&(u=ga,(n=Ua())!==e&&(n=is(r,n)),(u=n)===e&&(u=ga,(n=ti())!==e&&(n=cs(r,n)),u=n)))),u!==e){for(n=[],s=ga,(o=ii())===e&&(o=ci()),o!==e&&(a=Ma())!==e?s=fs(r,o,a):(ga=s,s=e);s!==e;)n.push(s),s=ga,(o=ii())===e&&(o=ci()),o!==e&&(a=Ma())!==e?s=fs(r,o,a):(ga=s,s=e);t=ls(r)}else ga=t,t=e;return t}function Ga(){var r,u,n,s;return r=ga,(u=xi())!==e?(58===t.charCodeAt(ga)?(n=O,ga++):(n=e,0===Ba&&La(tu)),n!==e&&(s=Ma())!==e?r=As(u,s):(ga=r,r=e)):(ga=r,r=e),r}function Ja(){var r,u,n,s,o;return r=ga,u=ga,(n=Ua())!==e&&(n=ds()),(u=n)===e&&(u=oi())===e&&(u=ui()),u!==e?(n=ga,_i()!==e?(s=ga,t.substr(ga,3)===z?(o=z,ga+=3):(o=e,0===Ba&&La(eu)),o===e&&(t.substr(ga,4)===N?(o=N,ga+=4):(o=e,0===Ba&&La(nu))),(s=o!==e?t.substring(s,ga):o)!==e?n=Cs(u,s):(ga=n,n=e)):(ga=n,n=e),n===e&&(n=null),r=vs(u,n)):(ga=r,r=e),r}function Ka(){var r,u,n,s,o,i;if(r=ga,(u=fi())!==e){for(n=[],s=ga,47===t.charCodeAt(ga)?(o=a,ga++):(o=e,0===Ba&&La(Er)),o!==e&&(i=fi())!==e?s=gs(u,i):(ga=s,s=e);s!==e;)n.push(s),s=ga,47===t.charCodeAt(ga)?(o=a,ga++):(o=e,0===Ba&&La(Er)),o!==e&&(i=fi())!==e?s=gs(u,i):(ga=s,s=e);r=bs(u,n)}else ga=r,r=e;return r}function Va(){var r,u,n;return Ba++,r=ga,(u=Di())!==e&&(u=Es(u)),(r=u)===e&&(r=ga,u=ga,Ba++,39===t.charCodeAt(ga)?(n=R,ga++):(n=e,0===Ba&&La(au)),Ba--,n===e?u=void 0:(ga=u,u=e),u!==e&&(n=ei())!==e?r=Bs(n):(ga=r,r=e)),Ba--,r===e&&(u=e,0===Ba&&La(ou)),r}function Wa(){var r,u,n;return Ba++,r=ga,64===t.charCodeAt(ga)?(u=Q,ga++):(u=e,0===Ba&&La(hu)),u!==e&&(n=xi())!==e?r=xs(n):(ga=r,r=e),Ba--,r===e&&(u=e,0===Ba&&La(Au)),r}function Xa(){var r,u,n,s,o;return r=ga,(u=ri())!==e&&_i()!==e?(n=ga,t.substr(ga,2)===M?(s=M,ga+=2):(s=e,0===Ba&&La(du)),s===e&&(t.substr(ga,2)===G?(s=G,ga+=2):(s=e,0===Ba&&La(Cu)),s===e&&(t.substr(ga,2)===J?(s=J,ga+=2):(s=e,0===Ba&&La(vu)),s===e&&(t.substr(ga,2)===K?(s=K,ga+=2):(s=e,0===Ba&&La(Fu)),s===e&&(t.substr(ga,2)===V?(s=V,ga+=2):(s=e,0===Ba&&La(gu)),s===e&&(t.substr(ga,2)===W?(s=W,ga+=2):(s=e,0===Ba&&La(bu))))))),(n=s!==e?t.substring(n,ga):s)!==e&&(s=_i())!==e&&(o=ri())!==e?r=Ts(u,n,o):(ga=r,r=e)):(ga=r,r=e),r}function Ya(){var r,u;return r=ga,(u=Wa())!==e&&(u=js(u)),(r=u)===e&&(r=function(){var r,u,n;Ba++,r=ga,u=ki(),u!==e?(n=function(){var r,u,n,s,o,a;if(r=ga,u=ei(),u!==e){for(n=[],s=ga,44===t.charCodeAt(ga)?(o=P,ga++):(o=e,0===Ba&&La(iu)),o!==e&&(a=ei())!==e?s=Ws(u,a):(ga=s,s=e);s!==e;)n.push(s),s=ga,44===t.charCodeAt(ga)?(o=P,ga++):(o=e,0===Ba&&La(iu)),o!==e&&(a=ei())!==e?s=Ws(u,a):(ga=s,s=e);r=Xs(u,n)}else ga=r,r=e;return r}(),n!==e&&Oi()!==e?r=Ys(n):(ga=r,r=e)):(ga=r,r=e);Ba--,r===e&&(u=e,0===Ba&&La(ju));return r}()),r}function ti(){var r,u,n,s;return r=ga,(u=ri())!==e&&_i()!==e?(t.substr(ga,2)===X?(n=X,ga+=2):(n=e,0===Ba&&La(mu)),n!==e&&_i()!==e&&(s=Ya())!==e?r=ks(u,s):(ga=r,r=e)):(ga=r,r=e),r}function ri(){var r;return(r=function(){var r,u,n,s,o,i,c;Ba++,r=ga,u=[],n=ga,(s=xi())!==e?(o=ga,(i=ki())!==e&&(c=ka())!==e&&Oi()!==e?o=Os(s,c):(ga=o,o=e),o===e&&(o=null),47===t.charCodeAt(ga)?(i=a,ga++):(i=e,0===Ba&&La(Er)),i!==e?n=Zs(s,o):(ga=n,n=e)):(ga=n,n=e);if(n!==e)for(;n!==e;)u.push(n),n=ga,(s=xi())!==e?(o=ga,(i=ki())!==e&&(c=ka())!==e&&Oi()!==e?o=Os(s,c):(ga=o,o=e),o===e&&(o=null),47===t.charCodeAt(ga)?(i=a,ga++):(i=e,0===Ba&&La(Er)),i!==e?n=Zs(s,o):(ga=n,n=e)):(ga=n,n=e);else u=e;u!==e?(t.substr(ga,6)===f?(n=f,ga+=6):(n=e,0===Ba&&La(Dr)),n!==e?r=_s(u,n):(ga=r,r=e)):(ga=r,r=e);Ba--,r===e&&(u=e,0===Ba&&La(Eu));return r}())===e&&(r=oi())===e&&(r=ei())===e&&(r=ui())===e&&(r=ni())===e&&(r=si())===e&&(r=function(){var r,u,n,s,o;Ba++,r=ga,91===t.charCodeAt(ga)?(u=q,ga++):(u=e,0===Ba&&La(cu));if(u!==e){for(n=ga,s=[],o=t.charAt(ga),cr.test(o)?ga++:(o=e,0===Ba&&La(Tu));o!==e;)s.push(o),o=t.charAt(ga),cr.test(o)?ga++:(o=e,0===Ba&&La(Tu));n=t.substring(n,ga),93===t.charCodeAt(ga)?(s=H,ga++):(s=e,0===Ba&&La(fu)),s!==e?r=Vs(n):(ga=r,r=e)}else ga=r,r=e;Ba--,r===e&&(u=e,0===Ba&&La(ju));return r}()),r}function ui(){var r,u,n,s,o,i;if(Ba++,r=ga,(u=xi())!==e){for(n=[],s=ga,47===t.charCodeAt(ga)?(o=a,ga++):(o=e,0===Ba&&La(Er)),o!==e&&(i=xi())!==e?s=zs(u,i):(ga=s,s=e);s!==e;)n.push(s),s=ga,47===t.charCodeAt(ga)?(o=a,ga++):(o=e,0===Ba&&La(Er)),o!==e&&(i=xi())!==e?s=zs(u,i):(ga=s,s=e);r=Ns(u,n)}else ga=r,r=e;return Ba--,r===e&&(u=e,0===Ba&&La(Bu)),r}function ei(){var r,u;return r=ga,(u=Bi())!==e&&(u=Is(u)),(r=u)===e&&(r=ga,(u=wi())!==e&&(u=Rs(u)),(r=u)===e&&(r=ga,u=function(){var r,u,n,s,o,a,i,c,f,l;Ba++,r=ga,u=ga,n=t.charAt(ga),hr.test(n)?ga++:(n=e,0===Ba&&La(ke));n!==e?(s=t.charAt(ga),hr.test(s)?ga++:(s=e,0===Ba&&La(ke)),s!==e?(58===t.charCodeAt(ga)?(o=O,ga++):(o=e,0===Ba&&La(tu)),o!==e?(a=t.charAt(ga),hr.test(a)?ga++:(a=e,0===Ba&&La(ke)),a!==e?(i=t.charAt(ga),hr.test(i)?ga++:(i=e,0===Ba&&La(ke)),i!==e?(58===t.charCodeAt(ga)?(c=O,ga++):(c=e,0===Ba&&La(tu)),c!==e?(f=t.charAt(ga),hr.test(f)?ga++:(f=e,0===Ba&&La(ke)),f!==e?(l=t.charAt(ga),hr.test(l)?ga++:(l=e,0===Ba&&La(ke)),l!==e?u=n=[n,s,o,a,i,c,f,l]:(ga=u,u=e)):(ga=u,u=e)):(ga=u,u=e)):(ga=u,u=e)):(ga=u,u=e)):(ga=u,u=e)):(ga=u,u=e)):(ga=u,u=e);r=u!==e?t.substring(r,ga):u;Ba--,r===e&&(u=e,0===Ba&&La(je));return r}(),u!==e&&(u=Ps(u)),(r=u)===e&&(r=ga,(u=Li())!==e&&(u=qs(u)),(r=u)===e&&(r=ga,u=function(){var r,u,n,s,o,a,i,c,f,l,A;Ba++,r=ga,u=ga,Ba++,n=function(){var r,u,n;r=ga,u=[],n=t.charAt(ga),hr.test(n)?ga++:(n=e,0===Ba&&La(ke));if(n!==e)for(;n!==e;)u.push(n),n=t.charAt(ga),hr.test(n)?ga++:(n=e,0===Ba&&La(ke));else u=e;u!==e?(45===t.charCodeAt(ga)?(n=Jt,ga++):(n=e,0===Ba&&La(Ze)),n!==e?r=u=[u,n]:(ga=r,r=e)):(ga=r,r=e);return r}(),Ba--,n===e?u=void 0:(ga=u,u=e);if(u!==e){if(n=ga,s=ga,o=t.charAt(ga),pr.test(o)?ga++:(o=e,0===Ba&&La(Ie)),o===e&&(o=null),a=[],i=t.charAt(ga),hr.test(i)?ga++:(i=e,0===Ba&&La(ke)),i!==e)for(;i!==e;)a.push(i),i=t.charAt(ga),hr.test(i)?ga++:(i=e,0===Ba&&La(ke));else a=e;if(a!==e){if(i=ga,46===t.charCodeAt(ga)?(c=Vt,ga++):(c=e,0===Ba&&La(ze)),c!==e){if(f=[],l=t.charAt(ga),hr.test(l)?ga++:(l=e,0===Ba&&La(ke)),l!==e)for(;l!==e;)f.push(l),l=t.charAt(ga),hr.test(l)?ga++:(l=e,0===Ba&&La(ke));else f=e;f!==e?i=c=[c,f]:(ga=i,i=e)}else ga=i,i=e;if(i===e&&(i=null),c=ga,101===t.charCodeAt(ga)?(f=Xt,ga++):(f=e,0===Ba&&La(Pe)),f!==e){if(l=[],A=t.charAt(ga),hr.test(A)?ga++:(A=e,0===Ba&&La(ke)),A!==e)for(;A!==e;)l.push(A),A=t.charAt(ga),hr.test(A)?ga++:(A=e,0===Ba&&La(ke));else l=e;l!==e?c=f=[f,l]:(ga=c,c=e)}else ga=c,c=e;c===e&&(c=null),s=o=[o,a,i,c]}else ga=s,s=e;(n=s!==e?t.substring(n,ga):s)!==e?r=pa(n):(ga=r,r=e)}else ga=r,r=e;Ba--,r===e&&(u=e,0===Ba&&La(Re));return r}(),u!==e&&(u=Hs(u)),(r=u)===e&&(r=ga,(u=yi())!==e&&(u=Qs(u)),(r=u)===e&&(r=ga,u=function(){var r,u,n,s,o,a;Ba++,r=ga,t.substr(ga,7)===Yt?(u=Yt,ga+=7):(u=e,0===Ba&&La(Xe));if(u!==e){if(n=ga,s=ga,o=[],a=t.charAt(ga),br.test(a)?ga++:(a=e,0===Ba&&La(Ye)),a!==e)for(;a!==e;)o.push(a),a=t.charAt(ga),br.test(a)?ga++:(a=e,0===Ba&&La(Ye));else o=e;o!==e?(t.substr(ga,2)===tr?(a=tr,ga+=2):(a=e,0===Ba&&La(tn)),a===e&&(61===t.charCodeAt(ga)?(a=h,ga++):(a=e,0===Ba&&La(xr))),a===e&&(a=null),s=o=[o,a]):(ga=s,s=e),(n=s!==e?t.substring(n,ga):s)!==e?(39===t.charCodeAt(ga)?(s=R,ga++):(s=e,0===Ba&&La(au)),s!==e?r=Fa(n):(ga=r,r=e)):(ga=r,r=e)}else ga=r,r=e;Ba--,r===e&&(u=e,0===Ba&&La(We));return r}(),u!==e&&(u=Us(u)),(r=u)===e&&(r=ga,(u=Wa())!==e&&(u=Ms(u)),(r=u)===e&&(r=function(){var r,u;Ba++,r=ga,t.substr(ga,4)===Y?(u=Y,ga+=4):(u=e,0===Ba&&La(Du));u!==e&&(u=Gs());r=u,Ba--,r===e&&(u=e,0===Ba&&La(yu));return r}())))))))),r}function ni(){var r,u,n,s,o,a;if(Ba++,r=ga,u=ga,n=ga,123===t.charCodeAt(ga)?(s=tt,ga++):(s=e,0===Ba&&La($u)),s!==e){for(o=[],(a=ni())===e&&(a=t.charAt(ga),ir.test(a)?ga++:(a=e,0===Ba&&La(xu)));a!==e;)o.push(a),(a=ni())===e&&(a=t.charAt(ga),ir.test(a)?ga++:(a=e,0===Ba&&La(xu)));125===t.charCodeAt(ga)?(a=rt,ga++):(a=e,0===Ba&&La(Lu)),a!==e?n=s=[s,o,a]:(ga=n,n=e)}else ga=n,n=e;return(u=n!==e?t.substring(u,ga):n)!==e&&(u=Js(u)),Ba--,(r=u)===e&&(u=e,0===Ba&&La(wu)),r}function si(){var r,u,n,s,o,a,i,c;if(Ba++,r=ga,u=ga,n=ga,91===t.charCodeAt(ga)?(s=q,ga++):(s=e,0===Ba&&La(cu)),s!==e?(o=Zi(),93===t.charCodeAt(ga)?(a=H,ga++):(a=e,0===Ba&&La(fu)),a!==e?n=s=[s,o,a]:(ga=n,n=e)):(ga=n,n=e),n===e)if(n=ga,91===t.charCodeAt(ga)?(s=q,ga++):(s=e,0===Ba&&La(cu)),s!==e)if(o=Zi(),123===t.charCodeAt(ga)?(a=tt,ga++):(a=e,0===Ba&&La($u)),a!==e){for(i=[],(c=si())===e&&(c=t.charAt(ga),cr.test(c)?ga++:(c=e,0===Ba&&La(Tu)));c!==e;)i.push(c),(c=si())===e&&(c=t.charAt(ga),cr.test(c)?ga++:(c=e,0===Ba&&La(Tu)));93===t.charCodeAt(ga)?(c=H,ga++):(c=e,0===Ba&&La(fu)),c!==e?n=s=[s,o,a,i,c]:(ga=n,n=e)}else ga=n,n=e;else ga=n,n=e;return(u=n!==e?t.substring(u,ga):n)!==e&&(u=Ks(u)),Ba--,(r=u)===e&&(u=e,0===Ba&&La(Su)),r}function oi(){var r,u,n;return r=ga,u=function(){var r,u,n;if(Ba++,r=ga,u=[],n=t.charAt(ga),fr.test(n)?ga++:(n=e,0===Ba&&La(Ou)),n!==e)for(;n!==e;)u.push(n),n=t.charAt(ga),fr.test(n)?ga++:(n=e,0===Ba&&La(Ou));else u=e;return r=u!==e?t.substring(r,ga):u,Ba--,r===e&&(u=e,0===Ba&&La(ku)),r}(),u!==e&&ki()!==e?(n=function(){var t,r,u,n,s,o,a;if(t=ga,r=[],u=ga,n=ri(),n!==e){for(s=[],o=ga,ji()!==e&&(a=ri())!==e?o=ro(n,a):(ga=o,o=e);o!==e;)s.push(o),o=ga,ji()!==e&&(a=ri())!==e?o=ro(n,a):(ga=o,o=e);u=uo(n,s)}else ga=u,u=e;for(;u!==e;)if(r.push(u),u=ga,(n=ri())!==e){for(s=[],o=ga,ji()!==e&&(a=ri())!==e?o=ro(n,a):(ga=o,o=e);o!==e;)s.push(o),o=ga,ji()!==e&&(a=ri())!==e?o=ro(n,a):(ga=o,o=e);u=uo(n,s)}else ga=u,u=e;return r=eo(r),t=r,t}(),Oi()!==e?r=to(u,n):(ga=r,r=e)):(ga=r,r=e),r}function ai(){var r,u;return r=ga,Zi(),(u=t.substr(ga,3)).toLowerCase()===ot?ga+=3:(u=e,0===Ba&&La(Iu)),u!==e&&_i()!==e?r=so():(ga=r,r=e),r}function ii(){var r,u;return r=ga,_i()!==e?((u=t.substr(ga,3)).toLowerCase()===at?ga+=3:(u=e,0===Ba&&La(Ru)),u!==e&&_i()!==e?r=oo():(ga=r,r=e)):(ga=r,r=e),r}function ci(){var r,u;return r=ga,_i()!==e?((u=t.substr(ga,2)).toLowerCase()===it?ga+=2:(u=e,0===Ba&&La(Pu)),u!==e&&_i()!==e?r=ao():(ga=r,r=e)):(ga=r,r=e),r}function fi(){var r,u,n;return r=ga,t.substr(ga,9)===ct?(u=ct,ga+=9):(u=e,0===Ba&&La(qu)),u!==e?(n=function(){var t,r,u,n,s,o;if(t=ga,r=ki(),r!==e)if(Zi(),(u=li())!==e){for(n=[],s=ga,Zi(),ji()!==e?(Zi(),(o=li())!==e?s=Bo(u,o):(ga=s,s=e)):(ga=s,s=e);s!==e;)n.push(s),s=ga,Zi(),ji()!==e?(Zi(),(o=li())!==e?s=Bo(u,o):(ga=s,s=e)):(ga=s,s=e);s=Zi(),Oi()!==e?t=yo(u,n):(ga=t,t=e)}else ga=t,t=e;else ga=t,t=e;return t}(),n!==e?r=io(n):(ga=r,r=e)):(ga=r,r=e),r===e&&(r=ga,t.substr(ga,7)===ft?(u=ft,ga+=7):(u=e,0===Ba&&La(Hu)),u!==e?(n=function(){var t,r,u,n,s,o,a,i;if(t=ga,r=ki(),r!==e)if(ki()!==e)if((u=Ci())!==e){for(n=[],s=ga,(o=ji())!==e&&(a=Ci())!==e?s=So(u,a):(ga=s,s=e);s!==e;)n.push(s),s=ga,(o=ji())!==e&&(a=Ci())!==e?s=So(u,a):(ga=s,s=e);s=ga,(o=Oi())!==e&&(o=To(u,n)),(s=o)!==e?(o=ga,(a=ji())!==e&&(i=Ka())!==e?o=jo(u,n,i):(ga=o,o=e),o===e&&(o=null),(a=Oi())!==e?t=ko(u,n,o):(ga=t,t=e)):(ga=t,t=e)}else ga=t,t=e;else ga=t,t=e;else ga=t,t=e;return t}(),n!==e?r=co(n):(ga=r,r=e)):(ga=r,r=e),r===e&&(r=ga,t.substr(ga,6)===lt?(u=lt,ga+=6):(u=e,0===Ba&&La(Qu)),u!==e?(n=function(){var t,r,u,n;t=ga,r=ki(),r!==e?(Zi(),u=ga,(n=Ha())!==e&&(n=_o(n)),(u=n)!==e?(n=Zi(),Oi()!==e?t=zo(u):(ga=t,t=e)):(ga=t,t=e)):(ga=t,t=e);return t}(),n!==e?r=fo(n):(ga=r,r=e)):(ga=r,r=e),r===e&&(r=ga,t.substr(ga,6)===At?(u=At,ga+=6):(u=e,0===Ba&&La(Uu)),u!==e?(n=function(){var r,u,n,s,o;if(r=ga,u=ki(),u!==e){for(n=ga,s=[],o=t.charAt(ga),lr.test(o)?ga++:(o=e,0===Ba&&La(le));o!==e;)s.push(o),o=t.charAt(ga),lr.test(o)?ga++:(o=e,0===Ba&&La(le));n=t.substring(n,ga),(s=Oi())!==e?r=No(n):(ga=r,r=e)}else ga=r,r=e;return r}(),n!==e?r=lo(n):(ga=r,r=e)):(ga=r,r=e),r===e&&(r=ga,t.substr(ga,6)===ht?(u=ht,ga+=6):(u=e,0===Ba&&La(Mu)),u!==e?(n=function(){var t,r,u,n,s,o;if(t=ga,r=ki(),r!==e)if(Zi(),(u=Ka())!==e){if(n=[],s=ga,Zi(),ji()!==e?(Zi(),(o=Ka())!==e?s=Io(u,o):(ga=s,s=e)):(ga=s,s=e),s!==e)for(;s!==e;)n.push(s),s=ga,Zi(),ji()!==e?(Zi(),(o=Ka())!==e?s=Io(u,o):(ga=s,s=e)):(ga=s,s=e);else n=e;n!==e?(s=Zi(),Oi()!==e?t=Ro(u,n):(ga=t,t=e)):(ga=t,t=e)}else ga=t,t=e;else ga=t,t=e;return t}(),n!==e?r=Ao(n):(ga=r,r=e)):(ga=r,r=e),r===e&&(r=ga,t.substr(ga,7)===pt?(u=pt,ga+=7):(u=e,0===Ba&&La(Gu)),u!==e?(n=function(){var t,r,u,n,s,o,a,i,c,f;if(t=ga,r=ki(),r!==e)if(u=Zi(),(n=vi())!==e){for(s=[],o=ga,a=Zi(),(i=ji())!==e?(c=Zi(),(f=vi())!==e?o=a=[a,i,c,f]:(ga=o,o=e)):(ga=o,o=e);o!==e;)s.push(o),o=ga,a=Zi(),(i=ji())!==e?(c=Zi(),(f=vi())!==e?o=a=[a,i,c,f]:(ga=o,o=e)):(ga=o,o=e);o=Zi(),(a=Oi())!==e?t=r=[r,u,n,s,o,a]:(ga=t,t=e)}else ga=t,t=e;else ga=t,t=e;return t}(),n!==e?r=ho(n):(ga=r,r=e)):(ga=r,r=e),r===e&&(r=ga,t.substr(ga,3)===dt?(u=dt,ga+=3):(u=e,0===Ba&&La(Ju)),u!==e?(n=function(){var t,r,u;t=ga,r=ki(),r!==e?(Zi(),(u=Ra())!==e?(Zi(),Oi()!==e?t=Ho(u):(ga=t,t=e)):(ga=t,t=e)):(ga=t,t=e);return t}(),n!==e?r=po(n):(ga=r,r=e)):(ga=r,r=e),r===e&&(r=ga,t.substr(ga,4)===Ct?(u=Ct,ga+=4):(u=e,0===Ba&&La(Ku)),u!==e?(n=function(){var t,r,u;t=ga,r=ki(),r!==e?(Zi(),(u=Pa())!==e?(Zi(),Oi()!==e?t=Qo(u):(ga=t,t=e)):(ga=t,t=e)):(ga=t,t=e);return t}(),n!==e?r=Co(n):(ga=r,r=e)):(ga=r,r=e),r===e&&(r=ga,t.substr(ga,7)===vt?(u=vt,ga+=7):(u=e,0===Ba&&La(Vu)),u!==e?(n=function(){var t,r,u,n,s,o;if(t=ga,r=ki(),r!==e)if(Zi(),(u=Ja())!==e){for(n=[],s=ga,ji()!==e&&(o=Ja())!==e?s=Uo(u,o):(ga=s,s=e);s!==e;)n.push(s),s=ga,ji()!==e&&(o=Ja())!==e?s=Uo(u,o):(ga=s,s=e);s=Zi(),Oi()!==e?t=Mo(u,n):(ga=t,t=e)}else ga=t,t=e;else ga=t,t=e;return t}(),n!==e?r=vo(n):(ga=r,r=e)):(ga=r,r=e),r===e&&(r=ga,t.substr(ga,43)===Ft?(u=Ft,ga+=43):(u=e,0===Ba&&La(Wu)),u!==e?(n=function(){var t,r,u,n,s,o;if(t=ga,r=ki(),r!==e)if(Zi(),(u=Fi())!==e){for(n=[],s=ga,Zi(),ji()!==e?(Zi(),(o=Fi())!==e?s=Go(u,o):(ga=s,s=e)):(ga=s,s=e);s!==e;)n.push(s),s=ga,Zi(),ji()!==e?(Zi(),(o=Fi())!==e?s=Go(u,o):(ga=s,s=e)):(ga=s,s=e);s=Zi(),Oi()!==e?t=Jo(u,n):(ga=t,t=e)}else ga=t,t=e;else ga=t,t=e;return t}(),n!==e?r=Fo(n):(ga=r,r=e)):(ga=r,r=e),r===e&&(r=ga,t.substr(ga,9)===gt?(u=gt,ga+=9):(u=e,0===Ba&&La(Xu)),u!==e&&(n=mi())!==e?r=go(n):(ga=r,r=e),r===e&&(r=ga,t.substr(ga,11)===bt?(u=bt,ga+=11):(u=e,0===Ba&&La(Yu)),u!==e&&(n=mi())!==e?r=bo(n):(ga=r,r=e),r===e&&(r=ga,(u=t.substr(ga,8)).toLowerCase()===mt?ga+=8:(u=e,0===Ba&&La(te)),u===e&&((u=t.substr(ga,11)).toLowerCase()===Et?ga+=11:(u=e,0===Ba&&La(re)),u===e&&((u=t.substr(ga,6)).toLowerCase()===Bt?ga+=6:(u=e,0===Ba&&La(ue)),u===e&&((u=t.substr(ga,9)).toLowerCase()===yt?ga+=9:(u=e,0===Ba&&La(ee)),u===e&&((u=t.substr(ga,10)).toLowerCase()===Dt?ga+=10:(u=e,0===Ba&&La(ne)),u===e&&((u=t.substr(ga,13)).toLowerCase()===wt?ga+=13:(u=e,0===Ba&&La(se))))))),u!==e?(n=function(){var t,r,u,n;t=ga,r=ki(),r!==e?(Zi(),(u=ri())!==e?(Zi(),ji()!==e?(Zi(),(n=ri())!==e?(Zi(),Oi()!==e?t=Po(u,n):(ga=t,t=e)):(ga=t,t=e)):(ga=t,t=e)):(ga=t,t=e)):(ga=t,t=e);return t}(),n!==e?r=mo(u,n):(ga=r,r=e)):(ga=r,r=e),r===e&&(r=ga,u=function(){var r,u;r=ga,t.substr(ga,8)===jt?(u=jt,ga+=8):(u=e,0===Ba&&La(Ae));u!==e&&(u=qo());return r=u,r}(),u!==e&&(u=Eo(u)),r=u))))))))))))),r}function li(){var r,u,n,s;return r=ga,u=ga,t.substr(ga,6)===f?(n=f,ga+=6):(n=e,0===Ba&&La(Dr)),n!==e&&(s=di())!==e?u=Do(s):(ga=u,u=e),u===e&&(u=Ai()),u!==e&&(u=wo(u)),r=u}function Ai(){var t,r,u,n,s;return t=ga,(r=ui())!==e?((u=hi())===e&&(u=null),(n=pi())===e&&(n=null),(s=di())===e&&(s=null),t=$o(r,u,s)):(ga=t,t=e),t===e&&(t=ga,(r=xi())!==e&&(u=ki())!==e&&(n=Ai())!==e&&(s=Oi())!==e?t=r=[r,u,n,s]:(ga=t,t=e)),t}function hi(){var r,u,n,s,o;if(r=ga,_i()!==e)if(t.substr(ga,4)===$t?(u=$t,ga+=4):(u=e,0===Ba&&La(oe)),u!==e)if(_i()!==e){if(n=ga,s=[],o=t.charAt(ga),fr.test(o)?ga++:(o=e,0===Ba&&La(Ou)),o!==e)for(;o!==e;)s.push(o),o=t.charAt(ga),fr.test(o)?ga++:(o=e,0===Ba&&La(Ou));else s=e;(n=s!==e?t.substring(n,ga):s)!==e?r=xo(n):(ga=r,r=e)}else ga=r,r=e;else ga=r,r=e;else ga=r,r=e;return r}function pi(){var r,u,n,s,o,a,i;return r=ga,(u=_i())!==e?(t.substr(ga,4)===xt?(n=xt,ga+=4):(n=e,0===Ba&&La(ae)),n!==e&&(s=_i())!==e&&(o=ui())!==e&&(a=hi())!==e?((i=pi())===e&&(i=null),r=u=[u,n,s,o,a,i]):(ga=r,r=e)):(ga=r,r=e),r}function di(){var r,u,n;return r=ga,_i()!==e?(t.substr(ga,2)===Lt?(u=Lt,ga+=2):(u=e,0===Ba&&La(ie)),u!==e&&_i()!==e&&(n=xi())!==e?r=Lo(n):(ga=r,r=e)):(ga=r,r=e),r}function Ci(){var r,u;return r=ga,u=function(){var r,u,n,s,o,a,i,c,f,l,A;r=ga,u=ga,t.substr(ga,6)===St?(n=St,ga+=6):(n=e,0===Ba&&La(ce));if(n!==e)if((s=ki())!==e)if(o=Zi(),t.substr(ga,4)===Tt?(a=Tt,ga+=4):(a=e,0===Ba&&La(fe)),a===e&&(a=ui()),a!==e){if(i=[],c=ga,f=Zi(),(l=ji())!==e&&(A=ui())!==e?c=f=[f,l,A]:(ga=c,c=e),c!==e)for(;c!==e;)i.push(c),c=ga,f=Zi(),(l=ji())!==e&&(A=ui())!==e?c=f=[f,l,A]:(ga=c,c=e);else i=e;i!==e?(c=Zi(),(f=Oi())!==e?u=n=[n,s,o,a,i,c,f]:(ga=u,u=e)):(ga=u,u=e)}else ga=u,u=e;else ga=u,u=e;else ga=u,u=e;u!==e&&(u=Zo(u));return r=u,r}(),u===e&&(u=ui()),u!==e&&(u=Oo(u)),r=u}function vi(){var t,r,u;return t=ga,(r=Qa())!==e&&(u=di())!==e?t=r=[r,u]:(ga=t,t=e),t}function Fi(){var r;return(r=function(){var r,u,n,s,o;r=ga,Zi(),t.substr(ga,14)===kt?(u=kt,ga+=14):(u=e,0===Ba&&La(he));u!==e?(Zi(),61===t.charCodeAt(ga)?(n=h,ga++):(n=e,0===Ba&&La(xr)),n!==e?(Zi(),t.substr(ga,6)===Ot?(s=Ot,ga+=6):(s=e,0===Ba&&La(pe)),s!==e&&(o=Oa())!==e?(Zi(),r=Ko(o)):(ga=r,r=e)):(ga=r,r=e)):(ga=r,r=e);return r}())===e&&(r=function(){var r,u,n,s;r=ga,Zi(),t.substr(ga,18)===Zt?(u=Zt,ga+=18):(u=e,0===Ba&&La(de));u!==e?(Zi(),61===t.charCodeAt(ga)?(n=h,ga++):(n=e,0===Ba&&La(xr)),n!==e?(Zi(),(s=yi())!==e?(Zi(),r=Vo(s)):(ga=r,r=e)):(ga=r,r=e)):(ga=r,r=e);return r}())===e&&(r=function(){var r,u,n,s;r=ga,Zi(),t.substr(ga,12)===_t?(u=_t,ga+=12):(u=e,0===Ba&&La(Ce));u!==e?(Zi(),61===t.charCodeAt(ga)?(n=h,ga++):(n=e,0===Ba&&La(xr)),n!==e?(Zi(),(s=yi())!==e?(Zi(),r=Wo(s)):(ga=r,r=e)):(ga=r,r=e)):(ga=r,r=e);return r}())===e&&(r=function(){var r,u,n,s;r=ga,Zi(),t.substr(ga,6)===zt?(u=zt,ga+=6):(u=e,0===Ba&&La(ve));u!==e?(Zi(),61===t.charCodeAt(ga)?(n=h,ga++):(n=e,0===Ba&&La(xr)),n!==e?(Zi(),(s=$i())!==e?(Zi(),r=Xo(s)):(ga=r,r=e)):(ga=r,r=e)):(ga=r,r=e);return r}())===e&&(r=function(){var r,u,n,s,o,a,i,c;r=ga,Zi(),t.substr(ga,12)===Nt?(u=Nt,ga+=12):(u=e,0===Ba&&La(Fe));if(u!==e)if(Zi(),61===t.charCodeAt(ga)?(n=h,ga++):(n=e,0===Ba&&La(xr)),n!==e)if(Zi(),91===t.charCodeAt(ga)?(s=q,ga++):(s=e,0===Ba&&La(cu)),s!==e)if(Zi(),(o=gi())!==e){for(a=[],i=ga,Zi(),ji()!==e?(Zi(),(c=gi())!==e?i=Yo(o,c):(ga=i,i=e)):(ga=i,i=e);i!==e;)a.push(i),i=ga,Zi(),ji()!==e?(Zi(),(c=gi())!==e?i=Yo(o,c):(ga=i,i=e)):(ga=i,i=e);93===t.charCodeAt(ga)?(i=H,ga++):(i=e,0===Ba&&La(fu)),i!==e?r=ta(o,a):(ga=r,r=e)}else ga=r,r=e;else ga=r,r=e;else ga=r,r=e;else ga=r,r=e;return r}()),r}function gi(){var r,u,n,s,o,a;return r=ga,Zi(),123===t.charCodeAt(ga)?(u=tt,ga++):(u=e,0===Ba&&La($u)),u!==e?(Zi(),(n=bi())!==e?(Zi(),44===t.charCodeAt(ga)?(s=P,ga++):(s=e,0===Ba&&La(iu)),s!==e?(Zi(),(o=bi())!==e?(Zi(),125===t.charCodeAt(ga)?(a=rt,ga++):(a=e,0===Ba&&La(Lu)),a!==e?r=ra(n,o):(ga=r,r=e)):(ga=r,r=e)):(ga=r,r=e)):(ga=r,r=e)):(ga=r,r=e),r}function bi(){var r,u,n,s;return r=ga,t.substr(ga,8)===It?(u=It,ga+=8):(u=e,0===Ba&&La(ge)),u!==e?(Zi(),58===t.charCodeAt(ga)?(n=O,ga++):(n=e,0===Ba&&La(tu)),n!==e?(Zi(),(s=Di())!==e?r=ua(s):(ga=r,r=e)):(ga=r,r=e)):(ga=r,r=e),r===e&&(r=ga,t.substr(ga,8)===Rt?(u=Rt,ga+=8):(u=e,0===Ba&&La(be)),u!==e?(Zi(),58===t.charCodeAt(ga)?(n=O,ga++):(n=e,0===Ba&&La(tu)),n!==e?(Zi(),(s=$i())!==e?r=ea(s):(ga=r,r=e)):(ga=r,r=e)):(ga=r,r=e)),r}function mi(){var r,u,n,s,o,i,c,f;return r=ga,ki()!==e?(Zi(),t.substr(ga,6)===Ot?(u=Ot,ga+=6):(u=e,0===Ba&&La(pe)),u!==e&&(n=Oa())!==e?(Zi(),ji()!==e?(Zi(),(s=xi())!==e?(Zi(),ji()!==e?(Zi(),(o=xi())!==e?(Zi(),ji()===e&&null,i=function(){var r,u,n,s,o,i;if(r=ga,u=Ei(),u!==e){for(n=[],s=ga,Zi(),47===t.charCodeAt(ga)?(o=a,ga++):(o=e,0===Ba&&La(Er)),o!==e?(Zi(),(i=Ei())!==e?s=sa(u,i):(ga=s,s=e)):(ga=s,s=e);s!==e;)n.push(s),s=ga,Zi(),47===t.charCodeAt(ga)?(o=a,ga++):(o=e,0===Ba&&La(Er)),o!==e?(Zi(),(i=Ei())!==e?s=sa(u,i):(ga=s,s=e)):(ga=s,s=e);r=oa(u,n)}else ga=r,r=e;return r}(),i===e&&(i=null),Zi(),ji()===e&&null,(c=$i())===e&&(c=null),Zi(),ji()===e&&null,f=function(){var r,u;r=ga,t.substr(ga,10)===Qt?(u=Qt,ga+=10):(u=e,0===Ba&&La(ye));u!==e&&(u=ca());return r=u,r}(),f===e&&(f=null),Oi()!==e?r=na(n,s,o,i,c,f):(ga=r,r=e)):(ga=r,r=e)):(ga=r,r=e)):(ga=r,r=e)):(ga=r,r=e)):(ga=r,r=e)):(ga=r,r=e),r}function Ei(){var r;return(r=function(){var r,u,n,s;r=ga,t.substr(ga,7)===Ht?(u=Ht,ga+=7):(u=e,0===Ba&&La(Be));u!==e&&(n=qa())!==e?(41===t.charCodeAt(ga)?(s=qt,ga++):(s=e,0===Ba&&La(Ee)),s!==e?r=ia(n):(ga=r,r=e)):(ga=r,r=e);return r}())===e&&(r=function(){var r,u,n,s;r=ga,t.substr(ga,7)===Pt?(u=Pt,ga+=7):(u=e,0===Ba&&La(me));u!==e&&(n=Ha())!==e?(41===t.charCodeAt(ga)?(s=qt,ga++):(s=e,0===Ba&&La(Ee)),s!==e?r=aa(n):(ga=r,r=e)):(ga=r,r=e);return r}()),r}function Bi(){var r,u;return Ba++,r=ga,t.substr(ga,4)===Ut?(u=Ut,ga+=4):(u=e,0===Ba&&La(we)),u===e&&(t.substr(ga,5)===Mt?(u=Mt,ga+=5):(u=e,0===Ba&&La($e))),u!==e&&(u=fa(u)),Ba--,(r=u)===e&&(u=e,0===Ba&&La(De)),r}function yi(){var r,u,n,s,o;if(Ba++,r=ga,39===t.charCodeAt(ga)?(u=R,ga++):(u=e,0===Ba&&La(au)),u!==e){for(n=ga,s=[],t.substr(ga,2)===Gt?(o=Gt,ga+=2):(o=e,0===Ba&&La(Le)),o===e&&(o=t.charAt(ga),Ar.test(o)?ga++:(o=e,0===Ba&&La(Se)));o!==e;)s.push(o),t.substr(ga,2)===Gt?(o=Gt,ga+=2):(o=e,0===Ba&&La(Le)),o===e&&(o=t.charAt(ga),Ar.test(o)?ga++:(o=e,0===Ba&&La(Se)));n=t.substring(n,ga),39===t.charCodeAt(ga)?(s=R,ga++):(s=e,0===Ba&&La(au)),s!==e?r=la(n):(ga=r,r=e)}else ga=r,r=e;return Ba--,r===e&&(u=e,0===Ba&&La(xe)),r}function Di(){var r,u,n,s,o;if(Ba++,r=ga,34===t.charCodeAt(ga)?(u=T,ga++):(u=e,0===Ba&&La(Kr)),u!==e){for(n=ga,s=[],t.substr(ga,2)===k?(o=k,ga+=2):(o=e,0===Ba&&La(Wr)),o===e&&(t.substr(ga,2)===j?(o=j,ga+=2):(o=e,0===Ba&&La(Vr)),o===e&&(o=t.charAt(ga),sr.test(o)?ga++:(o=e,0===Ba&&La(Xr))));o!==e;)s.push(o),t.substr(ga,2)===k?(o=k,ga+=2):(o=e,0===Ba&&La(Wr)),o===e&&(t.substr(ga,2)===j?(o=j,ga+=2):(o=e,0===Ba&&La(Vr)),o===e&&(o=t.charAt(ga),sr.test(o)?ga++:(o=e,0===Ba&&La(Xr))));n=t.substring(n,ga),34===t.charCodeAt(ga)?(s=T,ga++):(s=e,0===Ba&&La(Kr)),s!==e?r=Aa(n):(ga=r,r=e)}else ga=r,r=e;return Ba--,r===e&&(u=e,0===Ba&&La(Te)),r}function wi(){var r,u,n,s,o,a,i,c,f,l,A,h,p,d,C,v,F,g,b,m,E,B,y,D,w;if(Ba++,r=ga,u=ga,n=ga,s=[],o=t.charAt(ga),hr.test(o)?ga++:(o=e,0===Ba&&La(ke)),o!==e)for(;o!==e;)s.push(o),o=t.charAt(ga),hr.test(o)?ga++:(o=e,0===Ba&&La(ke));else s=e;if(s!==e)if(45===t.charCodeAt(ga)?(o=Jt,ga++):(o=e,0===Ba&&La(Ze)),o!==e)if(a=t.charAt(ga),hr.test(a)?ga++:(a=e,0===Ba&&La(ke)),a!==e)if(i=t.charAt(ga),hr.test(i)?ga++:(i=e,0===Ba&&La(ke)),i!==e)if(45===t.charCodeAt(ga)?(c=Jt,ga++):(c=e,0===Ba&&La(Ze)),c!==e)if(f=t.charAt(ga),hr.test(f)?ga++:(f=e,0===Ba&&La(ke)),f!==e)if(l=t.charAt(ga),hr.test(l)?ga++:(l=e,0===Ba&&La(ke)),l!==e){if(A=ga,84===t.charCodeAt(ga)?(h=Kt,ga++):(h=e,0===Ba&&La(_e)),h!==e)if(p=t.charAt(ga),hr.test(p)?ga++:(p=e,0===Ba&&La(ke)),p!==e)if(d=t.charAt(ga),hr.test(d)?ga++:(d=e,0===Ba&&La(ke)),d!==e)if(58===t.charCodeAt(ga)?(C=O,ga++):(C=e,0===Ba&&La(tu)),C!==e)if(v=t.charAt(ga),hr.test(v)?ga++:(v=e,0===Ba&&La(ke)),v!==e)if(F=t.charAt(ga),hr.test(F)?ga++:(F=e,0===Ba&&La(ke)),F!==e){if(g=ga,58===t.charCodeAt(ga)?(b=O,ga++):(b=e,0===Ba&&La(tu)),b!==e)if(m=t.charAt(ga),hr.test(m)?ga++:(m=e,0===Ba&&La(ke)),m!==e)if(E=t.charAt(ga),hr.test(E)?ga++:(E=e,0===Ba&&La(ke)),E!==e){if(B=ga,46===t.charCodeAt(ga)?(y=Vt,ga++):(y=e,0===Ba&&La(ze)),y!==e){if(D=[],w=t.charAt(ga),hr.test(w)?ga++:(w=e,0===Ba&&La(ke)),w!==e)for(;w!==e;)D.push(w),w=t.charAt(ga),hr.test(w)?ga++:(w=e,0===Ba&&La(ke));else D=e;D!==e?B=y=[y,D]:(ga=B,B=e)}else ga=B,B=e;B===e&&(B=null),g=b=[b,m,E,B]}else ga=g,g=e;else ga=g,g=e;else ga=g,g=e;g===e&&(g=null),90===t.charCodeAt(ga)?(b=Wt,ga++):(b=e,0===Ba&&La(Ne)),b===e&&(b=ga,m=t.charAt(ga),pr.test(m)?ga++:(m=e,0===Ba&&La(Ie)),m!==e?(E=t.charAt(ga),hr.test(E)?ga++:(E=e,0===Ba&&La(ke)),E!==e?(B=t.charAt(ga),hr.test(B)?ga++:(B=e,0===Ba&&La(ke)),B!==e?(58===t.charCodeAt(ga)?(y=O,ga++):(y=e,0===Ba&&La(tu)),y!==e?(D=t.charAt(ga),hr.test(D)?ga++:(D=e,0===Ba&&La(ke)),D!==e?(w=t.charAt(ga),hr.test(w)?ga++:(w=e,0===Ba&&La(ke)),w!==e?b=m=[m,E,B,y,D,w]:(ga=b,b=e)):(ga=b,b=e)):(ga=b,b=e)):(ga=b,b=e)):(ga=b,b=e)):(ga=b,b=e)),b===e&&(b=null),A=h=[h,p,d,C,v,F,g,b]}else ga=A,A=e;else ga=A,A=e;else ga=A,A=e;else ga=A,A=e;else ga=A,A=e;else ga=A,A=e;A===e&&(A=null),n=s=[s,o,a,i,c,f,l,A]}else ga=n,n=e;else ga=n,n=e;else ga=n,n=e;else ga=n,n=e;else ga=n,n=e;else ga=n,n=e;else ga=n,n=e;return(u=n!==e?t.substring(u,ga):n)!==e&&(u=ha(u)),Ba--,(r=u)===e&&(u=e,0===Ba&&La(Oe)),r}function $i(){var r,u,n,s,o,a;if(Ba++,r=ga,u=ga,n=ga,s=t.charAt(ga),pr.test(s)?ga++:(s=e,0===Ba&&La(Ie)),s===e&&(s=null),o=[],a=t.charAt(ga),hr.test(a)?ga++:(a=e,0===Ba&&La(ke)),a!==e)for(;a!==e;)o.push(a),a=t.charAt(ga),hr.test(a)?ga++:(a=e,0===Ba&&La(ke));else o=e;return o!==e?n=s=[s,o]:(ga=n,n=e),(u=n!==e?t.substring(u,ga):n)!==e&&(u=da(u)),Ba--,(r=u)===e&&(u=e,0===Ba&&La(qe)),r}function xi(){var r,u,n,s,o,a,i,c;if(Ba++,r=ga,u=ga,Ba++,n=Bi(),Ba--,n===e?u=void 0:(ga=u,u=e),u!==e)if(n=ga,Ba++,s=Li(),Ba--,s===e?n=void 0:(ga=n,n=e),n!==e){if(s=ga,o=ga,a=t.charAt(ga),dr.test(a)?ga++:(a=e,0===Ba&&La(Qe)),a!==e){for(i=[],c=t.charAt(ga),Cr.test(c)?ga++:(c=e,0===Ba&&La(Ue));c!==e;)i.push(c),c=t.charAt(ga),Cr.test(c)?ga++:(c=e,0===Ba&&La(Ue));o=a=[a,i]}else ga=o,o=e;(s=o!==e?t.substring(s,ga):o)!==e?r=Ca(s):(ga=r,r=e)}else ga=r,r=e;else ga=r,r=e;return Ba--,r===e&&(u=e,0===Ba&&La(He)),r}function Li(){var r,u,n,s,o,a,i,c,f,l,A,h,p,d;return Ba++,r=ga,u=ga,(n=Si())!==e&&(s=Si())!==e?(45===t.charCodeAt(ga)?(o=Jt,ga++):(o=e,0===Ba&&La(Ze)),o===e&&(o=null),(a=Si())!==e?(45===t.charCodeAt(ga)?(i=Jt,ga++):(i=e,0===Ba&&La(Ze)),i===e&&(i=null),(c=Si())!==e?(45===t.charCodeAt(ga)?(f=Jt,ga++):(f=e,0===Ba&&La(Ze)),f===e&&(f=null),(l=Si())!==e?(45===t.charCodeAt(ga)?(A=Jt,ga++):(A=e,0===Ba&&La(Ze)),A===e&&(A=null),(h=Si())!==e&&(p=Si())!==e&&(d=Si())!==e?u=n=[n,s,o,a,i,c,f,l,A,h,p,d]:(ga=u,u=e)):(ga=u,u=e)):(ga=u,u=e)):(ga=u,u=e)):(ga=u,u=e),r=u!==e?t.substring(r,ga):u,Ba--,r===e&&(u=e,0===Ba&&La(Me)),r}function Si(){var r,u,n,s,o,a;return Ba++,r=ga,u=ga,n=t.charAt(ga),vr.test(n)?ga++:(n=e,0===Ba&&La(Je)),n!==e?(s=t.charAt(ga),vr.test(s)?ga++:(s=e,0===Ba&&La(Je)),s!==e?(o=t.charAt(ga),vr.test(o)?ga++:(o=e,0===Ba&&La(Je)),o!==e?(a=t.charAt(ga),vr.test(a)?ga++:(a=e,0===Ba&&La(Je)),a!==e?u=n=[n,s,o,a]:(ga=u,u=e)):(ga=u,u=e)):(ga=u,u=e)):(ga=u,u=e),r=u!==e?t.substring(r,ga):u,Ba--,r===e&&(u=e,0===Ba&&La(Ge)),r}function Ti(){var r,u,n,s;if(r=ga,u=ga,n=[],s=t.charAt(ga),Fr.test(s)?ga++:(s=e,0===Ba&&La(Ke)),s!==e)for(;s!==e;)n.push(s),s=t.charAt(ga),Fr.test(s)?ga++:(s=e,0===Ba&&La(Ke));else n=e;return(u=n!==e?t.substring(u,ga):n)!==e&&(u=va(u)),r=u}function ji(){var r,u,n;return r=ga,u=Zi(),44===t.charCodeAt(ga)?(n=P,ga++):(n=e,0===Ba&&La(iu)),n!==e?r=u=[u,n,Zi()]:(ga=r,r=e),r}function ki(){var r,u,n;return r=ga,u=Zi(),40===t.charCodeAt(ga)?(n=rr,ga++):(n=e,0===Ba&&La(rn)),n!==e?r=u=[u,n,Zi()]:(ga=r,r=e),r}function Oi(){var r,u,n;return r=ga,u=Zi(),41===t.charCodeAt(ga)?(n=qt,ga++):(n=e,0===Ba&&La(Ee)),n!==e?r=u=[u,n]:(ga=r,r=e),r}function Zi(){var r,u,n;for(Ba++,r=ga,u=[],n=t.charAt(ga),mr.test(n)?ga++:(n=e,0===Ba&&La(en));n!==e;)u.push(n),n=t.charAt(ga),mr.test(n)?ga++:(n=e,0===Ba&&La(en));return r=t.substring(r,ga),Ba--,u=e,0===Ba&&La(un),r}function _i(){var r,u,n;if(Ba++,r=ga,u=[],n=t.charAt(ga),mr.test(n)?ga++:(n=e,0===Ba&&La(en)),n!==e)for(;n!==e;)u.push(n),n=t.charAt(ga),mr.test(n)?ga++:(n=e,0===Ba&&La(en));else u=e;return r=u!==e?t.substring(r,ga):u,Ba--,r===e&&(u=e,0===Ba&&La(nn)),r}const zi=["$value"],Ni={eq:"=",ne:"!=",lt:"<",gt:">",le:"<=",ge:">="},Ii={topcount:!0,bottomcount:!0,topsum:!1,bottomsum:!1,toppercent:!1,bottompercent:!1},Ri=Object.assign,{strict:Pi,minimal:qi}=r,Hi=[];let Qi,Ui;const Mi=r.safeNumber||function(t){if("string"!=typeof t)return t;const r=parseFloat(t);if(!isNaN(r)&&String(r)===t)return r;const u=parseInt(t);return isNaN(u)||String(u)!==t.replace(/^-?\d+\.0+$/,t.split(".")[0])?t:u},Gi=r.skipToken,Ji=r.standardBase64||function(t){return Buffer.from(t,"base64").toString("base64")},Ki=t=>r=>t===r||t.as&&r.as&&t.as===r.as||r.as&&t.ref&&r.as===t.ref[t.ref.length-1]||t.ref&&r.ref&&t.ref.join("")===r.ref.join(""),Vi=t=>r=>{if(Array.isArray(r))return r.map(Vi(t));const u=r.ref&&t.find((t=>"func"in t&&t.as&&t.as===r.ref[0]));return u||r},Wi=t=>r=>Array.isArray(r)?r.map(Wi(t)):r.ref&&!t.find(Ki(r))?{val:null}:r,Xi=(t,r)=>{if(1===r.ref.length)t.find(Ki(r))||t.push(r);else{const u=r.ref.shift(),e=t.find((t=>t.ref&&t.ref[0]===u));if(e)Xi(e.expand,r);else{const e={ref:[u],expand:[]};Xi(e.expand,r),t.push(e)}}},Yi=(t,r,u=!1)=>{let e=uc({from:t.from},r,u);if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=tc(e[r],t,u);else e=tc(e,t,u);return e},tc=(t,r,u)=>{if(!r)return t;r.apply&&delete r.apply;let e={};r.columns&&"$count"===r.columns[0].as||t.SELECT.where&&r.where||t.SELECT.limit&&r.limit||t.SELECT.orderBy&&r.orderBy||t.SELECT.search&&r.search?e.from=t:e=t.SELECT;for(const t in r)"columns"===t?(r.columns=r.columns.map((t=>e.columns&&e.columns.find((r=>t.ref&&t.ref[0]===r.as||r.ref&&t.ref&&t.ref[0]===r.ref[0]&&!t.expand))||t)),e.columns&&e.groupBy&&r.columns.push(...e.columns.filter((t=>u&&e.groupBy.find((r=>t.ref&&t.ref[0]===r.ref[0]))&&!r.columns.some((r=>r.ref&&r.ref[0]===t.as||r.ref&&t.ref&&r.ref[0]===t.ref[0]||r.as&&r.as===t.as))))||[]),e.columns=r.columns):"from"!==t&&(e[t]=r[t]);const n=[...e.columns&&e.columns.filter((t=>e.groupBy&&e.groupBy.find((r=>t.ref&&t.ref[0]===r.ref[0]))))||[],...e.columns&&e.columns.filter((t=>t&&"object"==typeof t&&"func"in t))||[]];return rc(e,n,u),{SELECT:e}},rc=(t,r,u)=>{r.length&&(t.columns=t.columns&&!u?t.columns.reduce(((t,u)=>{const e=r.find(Ki(u));return e&&t.push(e),t}),[]):r,t.where&&t.groupBy&&(t.having=t.where.map(Vi(t.columns)).map(Wi(t.groupBy)),delete t.where),t.columns=t.columns.reduce(((t,u)=>(u.ref&&u.ref.length>1&&r.find(Ki(u))?Xi(t,{ref:[...u.ref]}):t.push(u),t)),[]))},uc=(t,r,u)=>{if(!r)return;t.apply&&delete t.apply,r.identity&&t.from.SELECT&&(t=t.from.SELECT),(r.apply||r.where&&t.where||r.search&&t.search||r.limit&&t.limit||r.orderBy&&t.orderBy)&&(t.from={SELECT:{...t}});const e=t=>{if(t.recurse={ref:["parent"]},r.topLevels.levels&&(t.recurse.where=[{ref:["DistanceFromRoot"]},"<=",{val:r.topLevels.levels}]),r.topLevels.expandLevels){t.recurse.where||(t.recurse.where=[]);for(const u of r.topLevels.expandLevels)0!==t.recurse.where.length&&t.recurse.where.push("or"),t.recurse.where.push({ref:[r.topLevels.nodeProperty]},"=",{val:u.nodeID},"and",{ref:["Distance"]},"between",{val:0},"and",{val:u.levels})}},n=t=>s(t,r.descendants,1),s=(t,u=r.ancestors,e=-1)=>{if(u.nodes)for(const r of u.nodes)r.filter?t.where=r.filter:r.search&&(t.search=r.search);const n={val:u.keepStart?0:1*e},s=u.distance&&{val:e*u.distance},o=s?n.val===s.val?[{ref:["Distance"]},"=",n]:[{ref:["Distance"]},"between",n,"and",s]:[{ref:["Distance"]},e<0?"<=":">=",n];t.recurse={ref:["parent"],where:o}};if(r.ancestors&&r.topLevels){const r={SELECT:{from:t.from}};s(r.SELECT),t.from=r,e(t)}else if(r.ancestors&&r.descendants){const r={SELECT:{from:t.from}};s(r.SELECT),t.from=r,n(t)}else r.topLevels?e(t):r.ancestors?s(r):r.descendants&&n(t);if(r.where&&(t.where=r.where),r.search&&(t.search=r.search),r.groupBy){t.groupBy=[];for(const u of r.groupBy)t.groupBy.find(Ki(u))||t.groupBy.push(u)}r.limit&&(t.limit=r.limit),r.orderBy&&(t.orderBy=r.orderBy);const o=[...t.groupBy||[],...r.aggregate||[]];if(rc(t,o,u),r.apply&&t.from&&uc(t.from.SELECT,r.apply),r.concat&&Array.isArray(r.concat)){const u=[];for(let e of r.concat){e.from=1===Object.keys(t).length?t.from:{SELECT:t};const r=uc(e,e.apply);Array.isArray(r)?u.push(...r):u.push(r)}t=u}return Array.isArray(t)?t:{SELECT:t}},ec=t=>{Qi.limit&&Qi.limit.offset&&Qi.limit.offset.val&&(t+=Qi.limit.offset.val),(Qi.limit||(Qi.limit={})).offset={val:t}},nc=(t,r=!1)=>{Qi.orderBy=Qi.orderBy?r?[t,...Qi.orderBy]:[...Qi.orderBy,t]:[t]},sc=(t,r)=>{for(const u of r)u.ref&&u.ref[0]===t&&u.ref.shift(),u.func&&sc(t,u.args),u.xpr&&sc(t,u.xpr);return r},oc=(t,r)=>{"null"===r?r=null:"true"===r?r=!0:"false"===r&&(r=!1);let u=Qi.from._params??={},e=t.match(/^(\w+)\[(.*)\]$/);for(;e;)e[1]in u||(u[e[1]]=""===e[2]?[]:{}),u=u[e[1]],e=(t=e[2]).match(/^(\w+)\[(.*)\]$/);Array.isArray(u)?u.push(r):u[t]=r},ac=(t,r,u,e=!1)=>{let n=!1;return t?.forEach((t=>{t.val===r?(t.val="list"in u?u.list.map((t=>t.val)):u.val,n=!0):t.list===r?(t.list=u.list,n=!0):t.func?t.args.forEach(((t,s)=>{t.val===r?(t.val=u.val,n=!0):t.func&&ac(t.args,r,u,e)})):t.SELECT&&ic(t.SELECT,r,u,e)})),n},ic=(t,r,u,e=!1)=>{let n=!1;const{where:s,from:o}=t;return n=ac(s,r,u),o?.ref?.forEach((t=>{n=ac(t.where,r,u,!0)})),n};if(u=o(),r.peg$library)return{peg$result:u,peg$currPos:ga,peg$FAILED:e,peg$maxFailExpected:Ea,peg$maxFailPos:ma};if(u!==e&&ga===t.length)return u;throw u!==e&&ga<t.length&&La({type:"end"}),Sa(Ea,ma<t.length?t.charAt(ma):null,ma<t.length?xa(ma,ma+1):xa(ma,ma))}peg$subclass(peg$SyntaxError,Error),peg$SyntaxError.prototype.format=function(t){var r="Error: "+this.message;if(this.location){var u,e=null;for(u=0;u<t.length;u++)if(t[u].source===this.location.source){e=t[u].text.split(/\r\n|\n|\r/g);break}var n=this.location.start,s=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(n):n,o=this.location.source+":"+s.line+":"+s.column;if(e){var a=this.location.end,i=peg$padEnd("",s.line.toString().length," "),c=e[n.line-1],f=(n.line===a.line?a.column:c.length+1)-n.column||1;r+="\n --\x3e "+o+"\n"+i+" |\n"+s.line+" | "+c+"\n"+i+" | "+peg$padEnd("",n.column-1," ")+peg$padEnd("",f,"^")}else r+="\n at "+o}return r},peg$SyntaxError.buildMessage=function(t,r){var u={literal:function(t){return'"'+n(t.text)+'"'},class:function(t){var r=t.parts.map((function(t){return Array.isArray(t)?s(t[0])+"-"+s(t[1]):s(t)}));return"["+(t.inverted?"^":"")+r.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(t){return t.description}};function e(t){return t.charCodeAt(0).toString(16).toUpperCase()}function n(t){return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+e(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+e(t)}))}function s(t){return t.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+e(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+e(t)}))}function o(t){return u[t.type](t)}return"Expected "+function(t){var r,u,e=t.map(o);if(e.sort(),e.length>0){for(r=1,u=1;r<e.length;r++)e[r-1]!==e[r]&&(e[u]=e[r],u++);e.length=u}switch(e.length){case 1:return e[0];case 2:return e[0]+" or "+e[1];default:return e.slice(0,-1).join(", ")+", or "+e[e.length-1]}}(t)+" but "+function(t){return t?'"'+n(t)+'"':"end of input"}(r)+" found."},module.exports={StartRules:["ODataRelativeURI"],SyntaxError:peg$SyntaxError,parse:peg$parse};
|