@arcgis/coding-components 4.33.0-next.132 → 4.33.0-next.134
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/dist/cdn/{PQYCJBWY.js → 37YRERGM.js} +2 -2
- package/dist/cdn/{JKEPUIZJ.js → 47GDFWMT.js} +1 -1
- package/dist/cdn/{DP5TWR5A.js → 4T3NXBNC.js} +2 -2
- package/dist/cdn/{VSJ2XOKQ.js → 6UXHZ6XJ.js} +2 -2
- package/dist/cdn/{VZSPPQQB.js → 7LNIF37Q.js} +2 -2
- package/dist/cdn/{3JK626VN.js → C35WJE5P.js} +3 -3
- package/dist/cdn/{7YCDDGKL.js → CT6PL4OI.js} +2 -2
- package/dist/cdn/{VZSFDTUR.js → DTNNZRIH.js} +2 -2
- package/dist/cdn/{PXFQK7ML.js → F3GBGKXI.js} +2 -2
- package/dist/cdn/{LWHEOP5O.js → FZAB7TTS.js} +1 -1
- package/dist/cdn/{3DMW2VRQ.js → G6UMB6OC.js} +2 -2
- package/dist/cdn/{OIA2VNWR.js → GFUTZGJS.js} +2 -2
- package/dist/cdn/{YPSAVL5M.js → IMCLHRID.js} +2 -2
- package/dist/cdn/{323DVFSI.js → J4DS7CTC.js} +2 -2
- package/dist/cdn/{JN2MM7R2.js → JCUODHOW.js} +2 -2
- package/dist/cdn/{VR76CMCQ.js → JEHC7SGQ.js} +2 -2
- package/dist/cdn/{3LCMZ7XL.js → LEL45XZA.js} +2 -2
- package/dist/cdn/{WTYTADZU.js → LWY7QYJW.js} +2 -2
- package/dist/cdn/{D5VMGLBW.js → LYQ4EBKJ.js} +2 -2
- package/dist/cdn/{JYCWFIAZ.js → M6HAZ5A6.js} +2 -2
- package/dist/cdn/{XWZTZCR3.js → MPUNLBWT.js} +3 -3
- package/dist/cdn/{SV54Q2U2.js → OALEVDKO.js} +2 -2
- package/dist/cdn/{OHHHZSFS.js → OZRPZKSD.js} +2 -2
- package/dist/cdn/{JIGD6NMA.js → PHPDFGJV.js} +1 -1
- package/dist/cdn/{NASZVKT2.js → PJKPLCEW.js} +2 -2
- package/dist/cdn/{OIBUNNSE.js → Q3YPKD3P.js} +2 -2
- package/dist/cdn/{6QKR4JHE.js → RIRQWCBO.js} +2 -2
- package/dist/cdn/{TZPDPXOT.js → RXQHFLOO.js} +2 -2
- package/dist/cdn/{KMY4GA6P.js → T2JUBQNB.js} +2 -2
- package/dist/cdn/{OF7DXBMR.js → TJRXJSNL.js} +2 -2
- package/dist/cdn/{NCZXYIQO.js → TW3BHCM4.js} +2 -2
- package/dist/cdn/{RB6PWUIN.js → V7EVNXXD.js} +2 -2
- package/dist/cdn/{3VAQ7AAA.js → VIMYCFDD.js} +2 -2
- package/dist/cdn/{4ZMLQWVW.js → VTMTLUNM.js} +2 -2
- package/dist/cdn/{BE24BY4K.js → WJEK7R27.js} +2 -2
- package/dist/cdn/{WDDKHYRV.js → WLWW7HWO.js} +1 -1
- package/dist/cdn/{F22SSINY.js → YFBTXHWG.js} +2 -2
- package/dist/cdn/{DIN3EX7U.js → ZDBNNSUW.js} +2 -2
- package/dist/cdn/{WGYOHZ5J.js → ZW3KI37B.js} +2 -2
- package/dist/cdn/assets/code-editor/sql-expr.worker.js +269 -269
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/arcade-defaults.js +1 -1
- package/dist/chunks/arcade-executor.js +1 -1
- package/dist/chunks/arcade-mode.js +1 -1
- package/dist/chunks/arcade-service-accessors.js +1 -1
- package/dist/chunks/fields.js +1 -1
- package/dist/chunks/language-defaults-base.js +1 -1
- package/dist/chunks/markdown.js +1 -1
- package/dist/chunks/monaco-importer.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/setup-monaco.js +1 -1
- package/dist/chunks/sql-expr-contribution.js +1 -1
- package/dist/chunks/sql-expr-defaults.js +1 -1
- package/dist/chunks/sql-expr-mode.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-arcade-coding-assistant/customElement.js +1 -1
- package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
- package/dist/components/arcgis-arcade-results/customElement.js +1 -1
- package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
- package/dist/components/arcgis-code-editor/customElement.js +1 -1
- package/dist/components/arcgis-editor-variables/customElement.js +1 -1
- package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
- package/dist/docs/api.json +2 -2
- package/dist/docs/docs.json +2 -2
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/package.json +6 -6
|
@@ -24,7 +24,7 @@ class Vc {
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
const $c = new Vc();
|
|
27
|
-
function
|
|
27
|
+
function pn(t) {
|
|
28
28
|
Wc(t) || $c.onUnexpectedError(t);
|
|
29
29
|
}
|
|
30
30
|
function li(t) {
|
|
@@ -136,17 +136,17 @@ var Jn;
|
|
|
136
136
|
yield y(A, N++);
|
|
137
137
|
}
|
|
138
138
|
t.map = d;
|
|
139
|
-
function*
|
|
139
|
+
function* p(v, y) {
|
|
140
140
|
let N = 0;
|
|
141
141
|
for (const A of v)
|
|
142
142
|
yield* y(A, N++);
|
|
143
143
|
}
|
|
144
|
-
t.flatMap =
|
|
145
|
-
function*
|
|
144
|
+
t.flatMap = p;
|
|
145
|
+
function* b(...v) {
|
|
146
146
|
for (const y of v)
|
|
147
147
|
yield* y;
|
|
148
148
|
}
|
|
149
|
-
t.concat =
|
|
149
|
+
t.concat = b;
|
|
150
150
|
function x(v, y, N) {
|
|
151
151
|
let A = N;
|
|
152
152
|
for (const R of v)
|
|
@@ -465,21 +465,21 @@ var Kn;
|
|
|
465
465
|
return t.debounce(k, (C, F) => C ? (C.push(F), C) : [F], S, void 0, !0, void 0, M);
|
|
466
466
|
}
|
|
467
467
|
t.accumulate = d;
|
|
468
|
-
function
|
|
468
|
+
function p(k, S = (C, F) => C === F, M) {
|
|
469
469
|
let C = !0, F;
|
|
470
470
|
return a(k, ($) => {
|
|
471
471
|
const Z = C || !S($, F);
|
|
472
472
|
return C = !1, F = $, Z;
|
|
473
473
|
}, M);
|
|
474
474
|
}
|
|
475
|
-
t.latch =
|
|
476
|
-
function
|
|
475
|
+
t.latch = p;
|
|
476
|
+
function b(k, S, M) {
|
|
477
477
|
return [
|
|
478
478
|
t.filter(k, S, M),
|
|
479
479
|
t.filter(k, (C) => !S(C), M)
|
|
480
480
|
];
|
|
481
481
|
}
|
|
482
|
-
t.split =
|
|
482
|
+
t.split = b;
|
|
483
483
|
function x(k, S = !1, M = [], C) {
|
|
484
484
|
let F = M.slice(), $ = k((me) => {
|
|
485
485
|
F ? F.push(me) : ce.fire(me);
|
|
@@ -722,7 +722,7 @@ class Cr {
|
|
|
722
722
|
const Jc = 2;
|
|
723
723
|
class Ie {
|
|
724
724
|
constructor(e) {
|
|
725
|
-
this._size = 0, this._options = e, this._leakageMon = this._options?.leakWarningThreshold ? new zs(e?.onListenerError ??
|
|
725
|
+
this._size = 0, this._options = e, this._leakageMon = this._options?.leakWarningThreshold ? new zs(e?.onListenerError ?? pn, this._options?.leakWarningThreshold ?? jc) : void 0, this._perfMon = this._options?._profName ? new er(this._options._profName) : void 0, this._deliveryQueue = this._options?.deliveryQueue;
|
|
726
726
|
}
|
|
727
727
|
dispose() {
|
|
728
728
|
this._disposed || (this._disposed = !0, this._deliveryQueue?.current === this && this._deliveryQueue.reset(), this._listeners && (this._listeners = void 0, this._size = 0), this._options?.onDidRemoveLastListener?.(), this._leakageMon?.dispose());
|
|
@@ -737,7 +737,7 @@ class Ie {
|
|
|
737
737
|
const o = `[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;
|
|
738
738
|
console.warn(o);
|
|
739
739
|
const l = this._leakageMon.getMostFrequentStack() ?? ["UNKNOWN stack", -1], c = new Yc(`${o}. HINT: Stack shows most frequent listener (${l[1]}-times)`, l[0]);
|
|
740
|
-
return (this._options?.onListenerError ||
|
|
740
|
+
return (this._options?.onListenerError || pn)(c), Qn.None;
|
|
741
741
|
}
|
|
742
742
|
if (this._disposed)
|
|
743
743
|
return Qn.None;
|
|
@@ -773,7 +773,7 @@ class Ie {
|
|
|
773
773
|
_deliver(e, n) {
|
|
774
774
|
if (!e)
|
|
775
775
|
return;
|
|
776
|
-
const r = this._options?.onListenerError ||
|
|
776
|
+
const r = this._options?.onListenerError || pn;
|
|
777
777
|
if (!r) {
|
|
778
778
|
e.value(n);
|
|
779
779
|
return;
|
|
@@ -949,7 +949,7 @@ function g1(t) {
|
|
|
949
949
|
}
|
|
950
950
|
return -1;
|
|
951
951
|
}
|
|
952
|
-
function
|
|
952
|
+
function p1(t, e = t.length - 1) {
|
|
953
953
|
for (let n = e; n >= 0; n--) {
|
|
954
954
|
const r = t.charCodeAt(n);
|
|
955
955
|
if (r !== 32 && r !== 9)
|
|
@@ -969,7 +969,7 @@ function Kr(t) {
|
|
|
969
969
|
function Hl(t, e) {
|
|
970
970
|
return (t - 55296 << 10) + (e - 56320) + 65536;
|
|
971
971
|
}
|
|
972
|
-
function
|
|
972
|
+
function b1(t, e, n) {
|
|
973
973
|
const r = t.charCodeAt(n);
|
|
974
974
|
if (tr(r) && n + 1 < e) {
|
|
975
975
|
const s = t.charCodeAt(n + 1);
|
|
@@ -996,16 +996,16 @@ class dt {
|
|
|
996
996
|
}
|
|
997
997
|
function r(h, f) {
|
|
998
998
|
const m = new Map(h);
|
|
999
|
-
for (const [d,
|
|
1000
|
-
m.set(d,
|
|
999
|
+
for (const [d, p] of f)
|
|
1000
|
+
m.set(d, p);
|
|
1001
1001
|
return m;
|
|
1002
1002
|
}
|
|
1003
1003
|
function s(h, f) {
|
|
1004
1004
|
if (!h)
|
|
1005
1005
|
return f;
|
|
1006
1006
|
const m = /* @__PURE__ */ new Map();
|
|
1007
|
-
for (const [d,
|
|
1008
|
-
f.has(d) && m.set(d,
|
|
1007
|
+
for (const [d, p] of h)
|
|
1008
|
+
f.has(d) && m.set(d, p);
|
|
1009
1009
|
return m;
|
|
1010
1010
|
}
|
|
1011
1011
|
const i = this.ambiguousCharacterData.value;
|
|
@@ -1109,7 +1109,7 @@ if (typeof Ir < "u" && typeof Ir.process < "u") {
|
|
|
1109
1109
|
return "/";
|
|
1110
1110
|
}
|
|
1111
1111
|
};
|
|
1112
|
-
const nr = qt.cwd, x1 = qt.env, v1 = qt.platform, _1 = 65, N1 = 97, S1 = 90, L1 = 122,
|
|
1112
|
+
const nr = qt.cwd, x1 = qt.env, v1 = qt.platform, _1 = 65, N1 = 97, S1 = 90, L1 = 122, pt = 46, fe = 47, Se = 92, nt = 58, E1 = 63;
|
|
1113
1113
|
class zl extends Error {
|
|
1114
1114
|
constructor(e, n, r) {
|
|
1115
1115
|
let s;
|
|
@@ -1149,7 +1149,7 @@ function rr(t, e, n, r) {
|
|
|
1149
1149
|
}
|
|
1150
1150
|
if (r(l)) {
|
|
1151
1151
|
if (!(a === c - 1 || o === 1)) if (o === 2) {
|
|
1152
|
-
if (s.length < 2 || i !== 2 || s.charCodeAt(s.length - 1) !==
|
|
1152
|
+
if (s.length < 2 || i !== 2 || s.charCodeAt(s.length - 1) !== pt || s.charCodeAt(s.length - 2) !== pt) {
|
|
1153
1153
|
if (s.length > 2) {
|
|
1154
1154
|
const h = s.lastIndexOf(n);
|
|
1155
1155
|
h === -1 ? (s = "", i = 0) : (s = s.slice(0, h), i = s.length - 1 - s.lastIndexOf(n)), a = c, o = 0;
|
|
@@ -1163,7 +1163,7 @@ function rr(t, e, n, r) {
|
|
|
1163
1163
|
} else
|
|
1164
1164
|
s.length > 0 ? s += `${n}${t.slice(a + 1, c)}` : s = t.slice(a + 1, c), i = c - a - 1;
|
|
1165
1165
|
a = c, o = 0;
|
|
1166
|
-
} else l ===
|
|
1166
|
+
} else l === pt && o !== -1 ? ++o : o = -1;
|
|
1167
1167
|
}
|
|
1168
1168
|
return s;
|
|
1169
1169
|
}
|
|
@@ -1312,10 +1312,10 @@ const xe = {
|
|
|
1312
1312
|
const c = l - o, h = a < c ? a : c;
|
|
1313
1313
|
let f = -1, m = 0;
|
|
1314
1314
|
for (; m < h; m++) {
|
|
1315
|
-
const
|
|
1316
|
-
if (
|
|
1315
|
+
const p = t.charCodeAt(s + m);
|
|
1316
|
+
if (p !== e.charCodeAt(o + m))
|
|
1317
1317
|
break;
|
|
1318
|
-
|
|
1318
|
+
p === Se && (f = m);
|
|
1319
1319
|
}
|
|
1320
1320
|
if (m !== h) {
|
|
1321
1321
|
if (f === -1)
|
|
@@ -1343,7 +1343,7 @@ const xe = {
|
|
|
1343
1343
|
if (e.charCodeAt(0) === Se) {
|
|
1344
1344
|
if (e.charCodeAt(1) === Se) {
|
|
1345
1345
|
const n = e.charCodeAt(2);
|
|
1346
|
-
if (n !== E1 && n !==
|
|
1346
|
+
if (n !== E1 && n !== pt)
|
|
1347
1347
|
return `\\\\?\\UNC\\${e.slice(2)}`;
|
|
1348
1348
|
}
|
|
1349
1349
|
} else if (rt(e.charCodeAt(0)) && e.charCodeAt(1) === nt && e.charCodeAt(2) === Se)
|
|
@@ -1434,7 +1434,7 @@ const xe = {
|
|
|
1434
1434
|
}
|
|
1435
1435
|
continue;
|
|
1436
1436
|
}
|
|
1437
|
-
s === -1 && (i = !1, s = o + 1), l ===
|
|
1437
|
+
s === -1 && (i = !1, s = o + 1), l === pt ? n === -1 ? n = o : a !== 1 && (a = 1) : n !== -1 && (a = -1);
|
|
1438
1438
|
}
|
|
1439
1439
|
return n === -1 || s === -1 || // We saw a non-dot character immediately before the dot
|
|
1440
1440
|
a === 0 || // The (right-most) trimmed path component is exactly '..'
|
|
@@ -1484,7 +1484,7 @@ const xe = {
|
|
|
1484
1484
|
}
|
|
1485
1485
|
continue;
|
|
1486
1486
|
}
|
|
1487
|
-
o === -1 && (l = !1, o = c + 1), s ===
|
|
1487
|
+
o === -1 && (l = !1, o = c + 1), s === pt ? i === -1 ? i = c : h !== 1 && (h = 1) : i !== -1 && (h = -1);
|
|
1488
1488
|
}
|
|
1489
1489
|
return o !== -1 && (i === -1 || // We saw a non-dot character immediately before the dot
|
|
1490
1490
|
h === 0 || // The (right-most) trimmed path component is exactly '..'
|
|
@@ -1613,7 +1613,7 @@ const xe = {
|
|
|
1613
1613
|
}
|
|
1614
1614
|
continue;
|
|
1615
1615
|
}
|
|
1616
|
-
r === -1 && (s = !1, r = a + 1), o ===
|
|
1616
|
+
r === -1 && (s = !1, r = a + 1), o === pt ? e === -1 ? e = a : i !== 1 && (i = 1) : e !== -1 && (i = -1);
|
|
1617
1617
|
}
|
|
1618
1618
|
return e === -1 || r === -1 || // We saw a non-dot character immediately before the dot
|
|
1619
1619
|
i === 0 || // The (right-most) trimmed path component is exactly '..'
|
|
@@ -1638,7 +1638,7 @@ const xe = {
|
|
|
1638
1638
|
}
|
|
1639
1639
|
continue;
|
|
1640
1640
|
}
|
|
1641
|
-
a === -1 && (o = !1, a = l + 1), h ===
|
|
1641
|
+
a === -1 && (o = !1, a = l + 1), h === pt ? s === -1 ? s = l : c !== 1 && (c = 1) : s !== -1 && (c = -1);
|
|
1642
1642
|
}
|
|
1643
1643
|
if (a !== -1) {
|
|
1644
1644
|
const h = i === 0 && n ? 1 : i;
|
|
@@ -1950,7 +1950,7 @@ class $1 {
|
|
|
1950
1950
|
try {
|
|
1951
1951
|
return this._delegate(e);
|
|
1952
1952
|
} catch (o) {
|
|
1953
|
-
return
|
|
1953
|
+
return pn(o), e;
|
|
1954
1954
|
}
|
|
1955
1955
|
const n = e.authority;
|
|
1956
1956
|
let r = this._hosts[n];
|
|
@@ -2259,20 +2259,20 @@ class at {
|
|
|
2259
2259
|
return this.modifiedStart + this.modifiedLength;
|
|
2260
2260
|
}
|
|
2261
2261
|
}
|
|
2262
|
-
function
|
|
2262
|
+
function pi(t, e) {
|
|
2263
2263
|
return (e << 5) - e + t | 0;
|
|
2264
2264
|
}
|
|
2265
2265
|
function J1(t, e) {
|
|
2266
|
-
e =
|
|
2266
|
+
e = pi(149417, e);
|
|
2267
2267
|
for (let n = 0, r = t.length; n < r; n++)
|
|
2268
|
-
e =
|
|
2268
|
+
e = pi(t.charCodeAt(n), e);
|
|
2269
2269
|
return e;
|
|
2270
2270
|
}
|
|
2271
2271
|
function Dr(t, e, n = 32) {
|
|
2272
2272
|
const r = n - e, s = ~((1 << r) - 1);
|
|
2273
2273
|
return (t << e | (s & t) >>> r) >>> 0;
|
|
2274
2274
|
}
|
|
2275
|
-
function
|
|
2275
|
+
function bi(t, e = 0, n = t.byteLength, r = 0) {
|
|
2276
2276
|
for (let s = 0; s < n; s++)
|
|
2277
2277
|
t[e + s] = r;
|
|
2278
2278
|
}
|
|
@@ -2331,7 +2331,7 @@ class Kl {
|
|
|
2331
2331
|
)), this._totalLen += this._buffLen, this._wrapUp()), ln(this._h0) + ln(this._h1) + ln(this._h2) + ln(this._h3) + ln(this._h4);
|
|
2332
2332
|
}
|
|
2333
2333
|
_wrapUp() {
|
|
2334
|
-
this._buff[this._buffLen++] = 128,
|
|
2334
|
+
this._buff[this._buffLen++] = 128, bi(this._buff, this._buffLen), this._buffLen > 56 && (this._step(), bi(this._buff));
|
|
2335
2335
|
const e = 8 * this._totalLen;
|
|
2336
2336
|
this._buffDV.setUint32(56, Math.floor(e / 4294967296), !1), this._buffDV.setUint32(60, e % 4294967296, !1), this._step();
|
|
2337
2337
|
}
|
|
@@ -2526,11 +2526,11 @@ class ft {
|
|
|
2526
2526
|
new at(e, n - e + 1, r, s - r + 1)
|
|
2527
2527
|
];
|
|
2528
2528
|
}
|
|
2529
|
-
WALKTRACE(e, n, r, s, i, a, o, l, c, h, f, m, d,
|
|
2529
|
+
WALKTRACE(e, n, r, s, i, a, o, l, c, h, f, m, d, p, b, x, _, E) {
|
|
2530
2530
|
let L = null, v = null, y = new yi(), N = n, A = r, R = d[0] - x[0] - s, W = -1073741824, K = this.m_forwardHistory.length - 1;
|
|
2531
2531
|
do {
|
|
2532
2532
|
const q = R + e;
|
|
2533
|
-
q === N || q < A && c[q - 1] < c[q + 1] ? (f = c[q + 1],
|
|
2533
|
+
q === N || q < A && c[q - 1] < c[q + 1] ? (f = c[q + 1], p = f - R - s, f < W && y.MarkNextChange(), W = f, y.AddModifiedElement(f + 1, p), R = q + 1 - e) : (f = c[q - 1] + 1, p = f - R - s, f < W && y.MarkNextChange(), W = f - 1, y.AddOriginalElement(f, p + 1), R = q - 1 - e), K >= 0 && (c = this.m_forwardHistory[K], e = c[0], N = 1, A = c.length - 1);
|
|
2534
2534
|
} while (--K >= -1);
|
|
2535
2535
|
if (L = y.getReverseChanges(), E[0]) {
|
|
2536
2536
|
let q = d[0] + 1, P = x[0] + 1;
|
|
@@ -2539,13 +2539,13 @@ class ft {
|
|
|
2539
2539
|
q = Math.max(q, k.getOriginalEnd()), P = Math.max(P, k.getModifiedEnd());
|
|
2540
2540
|
}
|
|
2541
2541
|
v = [
|
|
2542
|
-
new at(q, m - q + 1, P,
|
|
2542
|
+
new at(q, m - q + 1, P, b - P + 1)
|
|
2543
2543
|
];
|
|
2544
2544
|
} else {
|
|
2545
2545
|
y = new yi(), N = a, A = o, R = d[0] - x[0] - l, W = 1073741824, K = _ ? this.m_reverseHistory.length - 1 : this.m_reverseHistory.length - 2;
|
|
2546
2546
|
do {
|
|
2547
2547
|
const q = R + i;
|
|
2548
|
-
q === N || q < A && h[q - 1] >= h[q + 1] ? (f = h[q + 1] - 1,
|
|
2548
|
+
q === N || q < A && h[q - 1] >= h[q + 1] ? (f = h[q + 1] - 1, p = f - R - l, f > W && y.MarkNextChange(), W = f + 1, y.AddOriginalElement(f + 1, p + 1), R = q + 1 - i) : (f = h[q - 1], p = f - R - l, f > W && y.MarkNextChange(), W = f, y.AddModifiedElement(f + 1, p + 1), R = q - 1 - i), K >= 0 && (h = this.m_reverseHistory[K], i = h[0], N = 1, A = h.length - 1);
|
|
2549
2549
|
} while (--K >= -1);
|
|
2550
2550
|
v = y.getChanges();
|
|
2551
2551
|
}
|
|
@@ -2570,11 +2570,11 @@ class ft {
|
|
|
2570
2570
|
ComputeRecursionPoint(e, n, r, s, i, a, o) {
|
|
2571
2571
|
let l = 0, c = 0, h = 0, f = 0, m = 0, d = 0;
|
|
2572
2572
|
e--, r--, i[0] = 0, a[0] = 0, this.m_forwardHistory = [], this.m_reverseHistory = [];
|
|
2573
|
-
const
|
|
2573
|
+
const p = n - e + (s - r), b = p + 1, x = new Int32Array(b), _ = new Int32Array(b), E = s - r, L = n - e, v = e - r, y = n - s, A = (L - E) % 2 === 0;
|
|
2574
2574
|
x[E] = e, _[L] = n, o[0] = !1;
|
|
2575
|
-
for (let R = 1; R <=
|
|
2575
|
+
for (let R = 1; R <= p / 2 + 1; R++) {
|
|
2576
2576
|
let W = 0, K = 0;
|
|
2577
|
-
h = this.ClipDiagonalBound(E - R, R, E,
|
|
2577
|
+
h = this.ClipDiagonalBound(E - R, R, E, b), f = this.ClipDiagonalBound(E + R, R, E, b);
|
|
2578
2578
|
for (let P = h; P <= f; P += 2) {
|
|
2579
2579
|
P === h || P < f && x[P - 1] < x[P + 1] ? l = x[P + 1] : l = x[P - 1] + 1, c = l - (P - E) - v;
|
|
2580
2580
|
const k = l;
|
|
@@ -2588,7 +2588,7 @@ class ft {
|
|
|
2588
2588
|
return o[0] = !0, i[0] = W, a[0] = K, q > 0 && R <= 1448 ? this.WALKTRACE(E, h, f, v, L, m, d, y, x, _, l, n, i, c, s, a, A, o) : (e++, r++, [
|
|
2589
2589
|
new at(e, n - e + 1, r, s - r + 1)
|
|
2590
2590
|
]);
|
|
2591
|
-
m = this.ClipDiagonalBound(L - R, R, L,
|
|
2591
|
+
m = this.ClipDiagonalBound(L - R, R, L, b), d = this.ClipDiagonalBound(L + R, R, L, b);
|
|
2592
2592
|
for (let P = m; P <= d; P += 2) {
|
|
2593
2593
|
P === m || P < d && _[P - 1] >= _[P + 1] ? l = _[P + 1] - 1 : l = _[P - 1], c = l - (P - L) - y;
|
|
2594
2594
|
const k = l;
|
|
@@ -2640,8 +2640,8 @@ class ft {
|
|
|
2640
2640
|
const m = r.originalStart - f, d = r.modifiedStart - f;
|
|
2641
2641
|
if (m < s || d < i || a && !this.OriginalElementsAreEqual(m, m + r.originalLength) || o && !this.ModifiedElementsAreEqual(d, d + r.modifiedLength))
|
|
2642
2642
|
break;
|
|
2643
|
-
const
|
|
2644
|
-
|
|
2643
|
+
const b = (m === s && d === i ? 5 : 0) + this._boundaryScore(m, r.originalLength, d, r.modifiedLength);
|
|
2644
|
+
b > c && (c = b, l = f);
|
|
2645
2645
|
}
|
|
2646
2646
|
r.originalStart -= l, r.modifiedStart -= l;
|
|
2647
2647
|
const h = [null];
|
|
@@ -2656,8 +2656,8 @@ class ft {
|
|
|
2656
2656
|
if (a < 5 && c < 20 && m < 20) {
|
|
2657
2657
|
const d = this._findBetterContiguousSequence(o, c, h, m, a);
|
|
2658
2658
|
if (d) {
|
|
2659
|
-
const [
|
|
2660
|
-
(
|
|
2659
|
+
const [p, b] = d;
|
|
2660
|
+
(p !== s.originalStart + s.originalLength || b !== s.modifiedStart + s.modifiedLength) && (s.originalLength = p - s.originalStart, s.modifiedLength = b - s.modifiedStart, i.originalStart = p + a, i.modifiedStart = b + a, i.originalLength = l - i.originalStart, i.modifiedLength = f - i.modifiedStart);
|
|
2661
2661
|
}
|
|
2662
2662
|
}
|
|
2663
2663
|
}
|
|
@@ -3369,7 +3369,7 @@ class ir {
|
|
|
3369
3369
|
const r = nf(), s = [];
|
|
3370
3370
|
for (let i = 1, a = e.getLineCount(); i <= a; i++) {
|
|
3371
3371
|
const o = e.getLineContent(i), l = o.length;
|
|
3372
|
-
let c = 0, h = 0, f = 0, m = 1, d = !1,
|
|
3372
|
+
let c = 0, h = 0, f = 0, m = 1, d = !1, p = !1, b = !1, x = !1;
|
|
3373
3373
|
for (; c < l; ) {
|
|
3374
3374
|
let _ = !1;
|
|
3375
3375
|
const E = o.charCodeAt(c);
|
|
@@ -3383,10 +3383,10 @@ class ir {
|
|
|
3383
3383
|
L = d ? 0 : 1;
|
|
3384
3384
|
break;
|
|
3385
3385
|
case 91:
|
|
3386
|
-
|
|
3386
|
+
b = !0, p = !0, L = 0;
|
|
3387
3387
|
break;
|
|
3388
3388
|
case 93:
|
|
3389
|
-
|
|
3389
|
+
b = !1, L = p ? 0 : 1;
|
|
3390
3390
|
break;
|
|
3391
3391
|
case 123:
|
|
3392
3392
|
x = !0, L = 0;
|
|
@@ -3408,7 +3408,7 @@ class ir {
|
|
|
3408
3408
|
L = f === 124 ? 1 : 0;
|
|
3409
3409
|
break;
|
|
3410
3410
|
case 32:
|
|
3411
|
-
L =
|
|
3411
|
+
L = b ? 0 : 1;
|
|
3412
3412
|
break;
|
|
3413
3413
|
default:
|
|
3414
3414
|
L = r.get(E);
|
|
@@ -3416,10 +3416,10 @@ class ir {
|
|
|
3416
3416
|
L === 1 && (s.push(ir._createLink(r, o, i, h, c)), _ = !0);
|
|
3417
3417
|
} else if (m === 12) {
|
|
3418
3418
|
let L;
|
|
3419
|
-
E === 91 ? (
|
|
3419
|
+
E === 91 ? (p = !0, L = 0) : L = r.get(E), L === 1 ? _ = !0 : m = 13;
|
|
3420
3420
|
} else
|
|
3421
3421
|
m = n.nextState(m, E), m === 0 && (_ = !0);
|
|
3422
|
-
_ && (m = 1, d = !1,
|
|
3422
|
+
_ && (m = 1, d = !1, p = !1, x = !1, h = c + 1, f = E), c++;
|
|
3423
3423
|
}
|
|
3424
3424
|
m === 13 && s.push(ir._createLink(r, o, i, h, l));
|
|
3425
3425
|
}
|
|
@@ -5020,14 +5020,14 @@ var ga;
|
|
|
5020
5020
|
(function(t) {
|
|
5021
5021
|
t.Off = "off", t.OnCode = "onCode", t.On = "on";
|
|
5022
5022
|
})(ga || (ga = {}));
|
|
5023
|
-
var
|
|
5023
|
+
var pa;
|
|
5024
5024
|
(function(t) {
|
|
5025
5025
|
t[t.Invoke = 1] = "Invoke", t[t.TriggerCharacter = 2] = "TriggerCharacter", t[t.ContentChange = 3] = "ContentChange";
|
|
5026
|
-
})(
|
|
5027
|
-
var
|
|
5026
|
+
})(pa || (pa = {}));
|
|
5027
|
+
var ba;
|
|
5028
5028
|
(function(t) {
|
|
5029
5029
|
t[t.File = 0] = "File", t[t.Module = 1] = "Module", t[t.Namespace = 2] = "Namespace", t[t.Package = 3] = "Package", t[t.Class = 4] = "Class", t[t.Method = 5] = "Method", t[t.Property = 6] = "Property", t[t.Field = 7] = "Field", t[t.Constructor = 8] = "Constructor", t[t.Enum = 9] = "Enum", t[t.Interface = 10] = "Interface", t[t.Function = 11] = "Function", t[t.Variable = 12] = "Variable", t[t.Constant = 13] = "Constant", t[t.String = 14] = "String", t[t.Number = 15] = "Number", t[t.Boolean = 16] = "Boolean", t[t.Array = 17] = "Array", t[t.Object = 18] = "Object", t[t.Key = 19] = "Key", t[t.Null = 20] = "Null", t[t.EnumMember = 21] = "EnumMember", t[t.Struct = 22] = "Struct", t[t.Event = 23] = "Event", t[t.Operator = 24] = "Operator", t[t.TypeParameter = 25] = "TypeParameter";
|
|
5030
|
-
})(
|
|
5030
|
+
})(ba || (ba = {}));
|
|
5031
5031
|
var wa;
|
|
5032
5032
|
(function(t) {
|
|
5033
5033
|
t[t.Deprecated = 1] = "Deprecated";
|
|
@@ -5065,7 +5065,7 @@ class gf {
|
|
|
5065
5065
|
return uf(e, n);
|
|
5066
5066
|
}
|
|
5067
5067
|
}
|
|
5068
|
-
function
|
|
5068
|
+
function pf() {
|
|
5069
5069
|
return {
|
|
5070
5070
|
editor: void 0,
|
|
5071
5071
|
// undefined override expected here
|
|
@@ -5097,7 +5097,7 @@ class or {
|
|
|
5097
5097
|
}
|
|
5098
5098
|
}
|
|
5099
5099
|
var Na;
|
|
5100
|
-
class
|
|
5100
|
+
class bf {
|
|
5101
5101
|
constructor() {
|
|
5102
5102
|
this[Na] = "LinkedMap", this._map = /* @__PURE__ */ new Map(), this._head = void 0, this._tail = void 0, this._size = 0, this._state = 0;
|
|
5103
5103
|
}
|
|
@@ -5322,7 +5322,7 @@ class pf {
|
|
|
5322
5322
|
this.set(n, r);
|
|
5323
5323
|
}
|
|
5324
5324
|
}
|
|
5325
|
-
class wf extends
|
|
5325
|
+
class wf extends bf {
|
|
5326
5326
|
constructor(e, n = 1) {
|
|
5327
5327
|
super(), this._limit = e, this._ratio = Math.min(Math.max(0, n), 1);
|
|
5328
5328
|
}
|
|
@@ -5465,7 +5465,7 @@ class Ef {
|
|
|
5465
5465
|
const s = r.index, i = r[0].length;
|
|
5466
5466
|
if (s === this._prevMatchStartIndex && i === this._prevMatchLength) {
|
|
5467
5467
|
if (i === 0) {
|
|
5468
|
-
|
|
5468
|
+
b1(e, n, this._searchRegex.lastIndex) > 65535 ? this._searchRegex.lastIndex += 2 : this._searchRegex.lastIndex += 1;
|
|
5469
5469
|
continue;
|
|
5470
5470
|
}
|
|
5471
5471
|
return null;
|
|
@@ -5482,7 +5482,7 @@ function Tf(t, e = "Unreachable") {
|
|
|
5482
5482
|
function lr(t) {
|
|
5483
5483
|
if (!t()) {
|
|
5484
5484
|
debugger;
|
|
5485
|
-
t(),
|
|
5485
|
+
t(), pn(new Ce("Assertion Failed"));
|
|
5486
5486
|
}
|
|
5487
5487
|
}
|
|
5488
5488
|
function nu(t, e) {
|
|
@@ -5562,7 +5562,7 @@ class Rf {
|
|
|
5562
5562
|
let l;
|
|
5563
5563
|
o === "allNonBasicAscii" ? l = new RegExp("[^\\t\\n\\r\\x20-\\x7E]", "g") : l = new RegExp(`${Mf(Array.from(o))}`, "g");
|
|
5564
5564
|
const c = new Ef(null, l), h = [];
|
|
5565
|
-
let f = !1, m, d = 0,
|
|
5565
|
+
let f = !1, m, d = 0, p = 0, b = 0;
|
|
5566
5566
|
e: for (let x = s, _ = i; x <= _; x++) {
|
|
5567
5567
|
const E = e.getLineContent(x), L = E.length;
|
|
5568
5568
|
c.reset(0);
|
|
@@ -5582,7 +5582,7 @@ class Rf {
|
|
|
5582
5582
|
A && A.endColumn <= v + 1 && (A = null);
|
|
5583
5583
|
const R = a.shouldHighlightNonBasicASCII(N, A ? A.word : null);
|
|
5584
5584
|
if (R !== 0) {
|
|
5585
|
-
if (R === 3 ? d++ : R === 2 ?
|
|
5585
|
+
if (R === 3 ? d++ : R === 2 ? p++ : R === 1 ? b++ : Tf(), h.length >= 1e3) {
|
|
5586
5586
|
f = !0;
|
|
5587
5587
|
break e;
|
|
5588
5588
|
}
|
|
@@ -5595,8 +5595,8 @@ class Rf {
|
|
|
5595
5595
|
ranges: h,
|
|
5596
5596
|
hasMore: f,
|
|
5597
5597
|
ambiguousCharacterCount: d,
|
|
5598
|
-
invisibleCharacterCount:
|
|
5599
|
-
nonBasicAsciiCharacterCount:
|
|
5598
|
+
invisibleCharacterCount: p,
|
|
5599
|
+
nonBasicAsciiCharacterCount: b
|
|
5600
5600
|
};
|
|
5601
5601
|
}
|
|
5602
5602
|
static computeUnicodeHighlightReason(e, n) {
|
|
@@ -6300,22 +6300,22 @@ function Vf(t) {
|
|
|
6300
6300
|
}
|
|
6301
6301
|
return e;
|
|
6302
6302
|
}
|
|
6303
|
-
class
|
|
6303
|
+
class bn {
|
|
6304
6304
|
constructor(e, n, r, s, i) {
|
|
6305
6305
|
this.originalStartLineNumber = e, this.originalEndLineNumber = n, this.modifiedStartLineNumber = r, this.modifiedEndLineNumber = s, this.charChanges = i;
|
|
6306
6306
|
}
|
|
6307
6307
|
static createFromDiffResult(e, n, r, s, i, a, o) {
|
|
6308
6308
|
let l, c, h, f, m;
|
|
6309
6309
|
if (n.originalLength === 0 ? (l = r.getStartLineNumber(n.originalStart) - 1, c = 0) : (l = r.getStartLineNumber(n.originalStart), c = r.getEndLineNumber(n.originalStart + n.originalLength - 1)), n.modifiedLength === 0 ? (h = s.getStartLineNumber(n.modifiedStart) - 1, f = 0) : (h = s.getStartLineNumber(n.modifiedStart), f = s.getEndLineNumber(n.modifiedStart + n.modifiedLength - 1)), a && n.originalLength > 0 && n.originalLength < 20 && n.modifiedLength > 0 && n.modifiedLength < 20 && i()) {
|
|
6310
|
-
const d = r.createCharSequence(e, n.originalStart, n.originalStart + n.originalLength - 1),
|
|
6311
|
-
if (d.getElements().length > 0 &&
|
|
6312
|
-
let
|
|
6313
|
-
o && (
|
|
6314
|
-
for (let x = 0, _ =
|
|
6315
|
-
m.push(Ht.createFromDiffChange(
|
|
6310
|
+
const d = r.createCharSequence(e, n.originalStart, n.originalStart + n.originalLength - 1), p = s.createCharSequence(e, n.modifiedStart, n.modifiedStart + n.modifiedLength - 1);
|
|
6311
|
+
if (d.getElements().length > 0 && p.getElements().length > 0) {
|
|
6312
|
+
let b = au(d, p, i, !0).changes;
|
|
6313
|
+
o && (b = Vf(b)), m = [];
|
|
6314
|
+
for (let x = 0, _ = b.length; x < _; x++)
|
|
6315
|
+
m.push(Ht.createFromDiffChange(b[x], d, p));
|
|
6316
6316
|
}
|
|
6317
6317
|
}
|
|
6318
|
-
return new
|
|
6318
|
+
return new bn(l, c, h, f, m);
|
|
6319
6319
|
}
|
|
6320
6320
|
}
|
|
6321
6321
|
class $f {
|
|
@@ -6352,7 +6352,7 @@ class $f {
|
|
|
6352
6352
|
if (this.shouldIgnoreTrimWhitespace) {
|
|
6353
6353
|
const o = [];
|
|
6354
6354
|
for (let l = 0, c = n.length; l < c; l++)
|
|
6355
|
-
o.push(
|
|
6355
|
+
o.push(bn.createFromDiffResult(this.shouldIgnoreTrimWhitespace, n[l], this.original, this.modified, this.continueCharDiff, this.shouldComputeCharChanges, this.shouldPostProcessCharChanges));
|
|
6356
6356
|
return {
|
|
6357
6357
|
quitEarly: r,
|
|
6358
6358
|
changes: o
|
|
@@ -6366,30 +6366,30 @@ class $f {
|
|
|
6366
6366
|
const m = this.originalLines[i], d = this.modifiedLines[a];
|
|
6367
6367
|
if (m !== d) {
|
|
6368
6368
|
{
|
|
6369
|
-
let
|
|
6370
|
-
for (;
|
|
6371
|
-
const x = m.charCodeAt(
|
|
6369
|
+
let p = cs(m, 1), b = cs(d, 1);
|
|
6370
|
+
for (; p > 1 && b > 1; ) {
|
|
6371
|
+
const x = m.charCodeAt(p - 2), _ = d.charCodeAt(b - 2);
|
|
6372
6372
|
if (x !== _)
|
|
6373
6373
|
break;
|
|
6374
|
-
|
|
6374
|
+
p--, b--;
|
|
6375
6375
|
}
|
|
6376
|
-
(
|
|
6376
|
+
(p > 1 || b > 1) && this._pushTrimWhitespaceCharChange(s, i + 1, 1, p, a + 1, 1, b);
|
|
6377
6377
|
}
|
|
6378
6378
|
{
|
|
6379
|
-
let
|
|
6379
|
+
let p = fs(m, 1), b = fs(d, 1);
|
|
6380
6380
|
const x = m.length + 1, _ = d.length + 1;
|
|
6381
|
-
for (;
|
|
6382
|
-
const E = m.charCodeAt(
|
|
6381
|
+
for (; p < x && b < _; ) {
|
|
6382
|
+
const E = m.charCodeAt(p - 1), L = m.charCodeAt(b - 1);
|
|
6383
6383
|
if (E !== L)
|
|
6384
6384
|
break;
|
|
6385
|
-
|
|
6385
|
+
p++, b++;
|
|
6386
6386
|
}
|
|
6387
|
-
(
|
|
6387
|
+
(p < x || b < _) && this._pushTrimWhitespaceCharChange(s, i + 1, p, x, a + 1, b, _);
|
|
6388
6388
|
}
|
|
6389
6389
|
}
|
|
6390
6390
|
i++, a++;
|
|
6391
6391
|
}
|
|
6392
|
-
c && (s.push(
|
|
6392
|
+
c && (s.push(bn.createFromDiffResult(this.shouldIgnoreTrimWhitespace, c, this.original, this.modified, this.continueCharDiff, this.shouldComputeCharChanges, this.shouldPostProcessCharChanges)), i += c.originalLength, a += c.modifiedLength);
|
|
6393
6393
|
}
|
|
6394
6394
|
return {
|
|
6395
6395
|
quitEarly: r,
|
|
@@ -6400,7 +6400,7 @@ class $f {
|
|
|
6400
6400
|
if (this._mergeTrimWhitespaceCharChange(e, n, r, s, i, a, o))
|
|
6401
6401
|
return;
|
|
6402
6402
|
let l;
|
|
6403
|
-
this.shouldComputeCharChanges && (l = [new Ht(n, r, n, s, i, a, i, o)]), e.push(new
|
|
6403
|
+
this.shouldComputeCharChanges && (l = [new Ht(n, r, n, s, i, a, i, o)]), e.push(new bn(n, n, i, i, l));
|
|
6404
6404
|
}
|
|
6405
6405
|
_mergeTrimWhitespaceCharChange(e, n, r, s, i, a, o) {
|
|
6406
6406
|
const l = e.length;
|
|
@@ -6415,7 +6415,7 @@ function cs(t, e) {
|
|
|
6415
6415
|
return n === -1 ? e : n + 1;
|
|
6416
6416
|
}
|
|
6417
6417
|
function fs(t, e) {
|
|
6418
|
-
const n =
|
|
6418
|
+
const n = p1(t);
|
|
6419
6419
|
return n === -1 ? e : n + 2;
|
|
6420
6420
|
}
|
|
6421
6421
|
function Ma(t) {
|
|
@@ -6661,24 +6661,24 @@ class Zf {
|
|
|
6661
6661
|
if (e.length === 0 || n.length === 0)
|
|
6662
6662
|
return et.trivial(e, n);
|
|
6663
6663
|
const i = new Pr(e.length, n.length), a = new Pr(e.length, n.length), o = new Pr(e.length, n.length);
|
|
6664
|
-
for (let
|
|
6665
|
-
for (let
|
|
6664
|
+
for (let p = 0; p < e.length; p++)
|
|
6665
|
+
for (let b = 0; b < n.length; b++) {
|
|
6666
6666
|
if (!r.isValid())
|
|
6667
6667
|
return et.trivialTimedOut(e, n);
|
|
6668
|
-
const x =
|
|
6668
|
+
const x = p === 0 ? 0 : i.get(p - 1, b), _ = b === 0 ? 0 : i.get(p, b - 1);
|
|
6669
6669
|
let E;
|
|
6670
|
-
e.getElement(
|
|
6670
|
+
e.getElement(p) === n.getElement(b) ? (p === 0 || b === 0 ? E = 0 : E = i.get(p - 1, b - 1), p > 0 && b > 0 && a.get(p - 1, b - 1) === 3 && (E += o.get(p - 1, b - 1)), E += s ? s(p, b) : 1) : E = -1;
|
|
6671
6671
|
const L = Math.max(x, _, E);
|
|
6672
6672
|
if (L === E) {
|
|
6673
|
-
const v =
|
|
6674
|
-
o.set(
|
|
6675
|
-
} else L === x ? (o.set(
|
|
6676
|
-
i.set(
|
|
6673
|
+
const v = p > 0 && b > 0 ? o.get(p - 1, b - 1) : 0;
|
|
6674
|
+
o.set(p, b, v + 1), a.set(p, b, 3);
|
|
6675
|
+
} else L === x ? (o.set(p, b, 0), a.set(p, b, 1)) : L === _ && (o.set(p, b, 0), a.set(p, b, 2));
|
|
6676
|
+
i.set(p, b, L);
|
|
6677
6677
|
}
|
|
6678
6678
|
const l = [];
|
|
6679
6679
|
let c = e.length, h = n.length;
|
|
6680
|
-
function f(
|
|
6681
|
-
(
|
|
6680
|
+
function f(p, b) {
|
|
6681
|
+
(p + 1 !== c || b + 1 !== h) && l.push(new ee(new B(p + 1, c), new B(b + 1, h))), c = p, h = b;
|
|
6682
6682
|
}
|
|
6683
6683
|
let m = e.length - 1, d = n.length - 1;
|
|
6684
6684
|
for (; m >= 0 && d >= 0; )
|
|
@@ -6691,10 +6691,10 @@ class ou {
|
|
|
6691
6691
|
if (e.length === 0 || n.length === 0)
|
|
6692
6692
|
return et.trivial(e, n);
|
|
6693
6693
|
const s = e, i = n;
|
|
6694
|
-
function a(
|
|
6695
|
-
for (;
|
|
6696
|
-
|
|
6697
|
-
return
|
|
6694
|
+
function a(b, x) {
|
|
6695
|
+
for (; b < s.length && x < i.length && s.getElement(b) === i.getElement(x); )
|
|
6696
|
+
b++, x++;
|
|
6697
|
+
return b;
|
|
6698
6698
|
}
|
|
6699
6699
|
let o = 0;
|
|
6700
6700
|
const l = new Yf();
|
|
@@ -6705,9 +6705,9 @@ class ou {
|
|
|
6705
6705
|
e: for (; ; ) {
|
|
6706
6706
|
if (o++, !r.isValid())
|
|
6707
6707
|
return et.trivialTimedOut(s, i);
|
|
6708
|
-
const
|
|
6709
|
-
for (h =
|
|
6710
|
-
const _ = h === x ? -1 : l.get(h + 1), E = h ===
|
|
6708
|
+
const b = -Math.min(o, i.length + o % 2), x = Math.min(o, s.length + o % 2);
|
|
6709
|
+
for (h = b; h <= x; h += 2) {
|
|
6710
|
+
const _ = h === x ? -1 : l.get(h + 1), E = h === b ? -1 : l.get(h - 1) + 1, L = Math.min(Math.max(_, E), s.length), v = L - h;
|
|
6711
6711
|
if (L > s.length || v > i.length)
|
|
6712
6712
|
continue;
|
|
6713
6713
|
const y = a(L, v);
|
|
@@ -6719,12 +6719,12 @@ class ou {
|
|
|
6719
6719
|
}
|
|
6720
6720
|
let f = c.get(h);
|
|
6721
6721
|
const m = [];
|
|
6722
|
-
let d = s.length,
|
|
6722
|
+
let d = s.length, p = i.length;
|
|
6723
6723
|
for (; ; ) {
|
|
6724
|
-
const
|
|
6725
|
-
if ((
|
|
6724
|
+
const b = f ? f.x + f.length : 0, x = f ? f.y + f.length : 0;
|
|
6725
|
+
if ((b !== d || x !== p) && m.push(new ee(new B(b, d), new B(x, p))), !f)
|
|
6726
6726
|
break;
|
|
6727
|
-
d = f.x,
|
|
6727
|
+
d = f.x, p = f.y, f = f.prev;
|
|
6728
6728
|
}
|
|
6729
6729
|
return m.reverse(), new et(m, !1);
|
|
6730
6730
|
}
|
|
@@ -6897,16 +6897,16 @@ function th(t, e, n, r, s, i) {
|
|
|
6897
6897
|
const a = [], o = new xf();
|
|
6898
6898
|
for (const m of t)
|
|
6899
6899
|
for (let d = m.original.startLineNumber; d < m.original.endLineNumberExclusive - 2; d++) {
|
|
6900
|
-
const
|
|
6901
|
-
o.add(
|
|
6900
|
+
const p = `${e[d - 1]}:${e[d + 1 - 1]}:${e[d + 2 - 1]}`;
|
|
6901
|
+
o.add(p, { range: new U(d, d + 3) });
|
|
6902
6902
|
}
|
|
6903
6903
|
const l = [];
|
|
6904
6904
|
t.sort(zn((m) => m.modified.startLineNumber, Gn));
|
|
6905
6905
|
for (const m of t) {
|
|
6906
6906
|
let d = [];
|
|
6907
|
-
for (let
|
|
6908
|
-
const
|
|
6909
|
-
o.forEach(
|
|
6907
|
+
for (let p = m.modified.startLineNumber; p < m.modified.endLineNumberExclusive - 2; p++) {
|
|
6908
|
+
const b = `${n[p - 1]}:${n[p + 1 - 1]}:${n[p + 2 - 1]}`, x = new U(p, p + 3), _ = [];
|
|
6909
|
+
o.forEach(b, ({ range: E }) => {
|
|
6910
6910
|
for (const v of d)
|
|
6911
6911
|
if (v.originalLineRange.endLineNumberExclusive + 1 === E.endLineNumberExclusive && v.modifiedLineRange.endLineNumberExclusive + 1 === x.endLineNumberExclusive) {
|
|
6912
6912
|
v.originalLineRange = new U(v.originalLineRange.startLineNumber, E.endLineNumberExclusive), v.modifiedLineRange = new U(v.modifiedLineRange.startLineNumber, x.endLineNumberExclusive), _.push(v);
|
|
@@ -6925,7 +6925,7 @@ function th(t, e, n, r, s, i) {
|
|
|
6925
6925
|
l.sort(Gf(zn((m) => m.modifiedLineRange.length, Gn)));
|
|
6926
6926
|
const c = new Ye(), h = new Ye();
|
|
6927
6927
|
for (const m of l) {
|
|
6928
|
-
const d = m.modifiedLineRange.startLineNumber - m.originalLineRange.startLineNumber,
|
|
6928
|
+
const d = m.modifiedLineRange.startLineNumber - m.originalLineRange.startLineNumber, p = c.subtractFrom(m.modifiedLineRange), b = h.subtractFrom(m.originalLineRange).getWithDelta(d), x = p.getIntersection(b);
|
|
6929
6929
|
for (const _ of x.ranges) {
|
|
6930
6930
|
if (_.length < 3)
|
|
6931
6931
|
continue;
|
|
@@ -6936,7 +6936,7 @@ function th(t, e, n, r, s, i) {
|
|
|
6936
6936
|
a.sort(zn((m) => m.original.startLineNumber, Gn));
|
|
6937
6937
|
const f = new Sr(t);
|
|
6938
6938
|
for (let m = 0; m < a.length; m++) {
|
|
6939
|
-
const d = a[m],
|
|
6939
|
+
const d = a[m], p = f.findLastMonotonous((N) => N.original.startLineNumber <= d.original.startLineNumber), b = Yt(t, (N) => N.modified.startLineNumber <= d.modified.startLineNumber), x = Math.max(d.original.startLineNumber - p.original.startLineNumber, d.modified.startLineNumber - b.modified.startLineNumber), _ = f.findLastMonotonous((N) => N.original.startLineNumber < d.original.endLineNumberExclusive), E = Yt(t, (N) => N.modified.startLineNumber < d.modified.endLineNumberExclusive), L = Math.max(_.original.endLineNumberExclusive - d.original.endLineNumberExclusive, E.modified.endLineNumberExclusive - d.modified.endLineNumberExclusive);
|
|
6940
6940
|
let v;
|
|
6941
6941
|
for (v = 0; v < x; v++) {
|
|
6942
6942
|
const N = d.original.startLineNumber - v - 1, A = d.modified.startLineNumber - v - 1;
|
|
@@ -7062,8 +7062,8 @@ function Va(t, e, n, r, s) {
|
|
|
7062
7062
|
return t;
|
|
7063
7063
|
let l = 0, c = -1;
|
|
7064
7064
|
for (let h = -a; h <= o; h++) {
|
|
7065
|
-
const f = t.seq2Range.start + h, m = t.seq2Range.endExclusive + h, d = t.seq1Range.start + h,
|
|
7066
|
-
|
|
7065
|
+
const f = t.seq2Range.start + h, m = t.seq2Range.endExclusive + h, d = t.seq1Range.start + h, p = e.getBoundaryScore(d) + n.getBoundaryScore(f) + n.getBoundaryScore(m);
|
|
7066
|
+
p > c && (c = p, l = h);
|
|
7067
7067
|
}
|
|
7068
7068
|
return t.delta(l);
|
|
7069
7069
|
}
|
|
@@ -7090,18 +7090,18 @@ function ah(t, e, n) {
|
|
|
7090
7090
|
return;
|
|
7091
7091
|
let m = new ee(h, f);
|
|
7092
7092
|
const d = m.intersect(c);
|
|
7093
|
-
let
|
|
7093
|
+
let p = d.seq1Range.length, b = d.seq2Range.length;
|
|
7094
7094
|
for (; r.length > 0; ) {
|
|
7095
7095
|
const x = r[0];
|
|
7096
7096
|
if (!(x.seq1Range.intersects(m.seq1Range) || x.seq2Range.intersects(m.seq2Range)))
|
|
7097
7097
|
break;
|
|
7098
7098
|
const E = t.findWordContaining(x.seq1Range.start), L = e.findWordContaining(x.seq2Range.start), v = new ee(E, L), y = v.intersect(x);
|
|
7099
|
-
if (
|
|
7099
|
+
if (p += y.seq1Range.length, b += y.seq2Range.length, m = m.join(v), m.seq1Range.endExclusive >= x.seq1Range.endExclusive)
|
|
7100
7100
|
r.shift();
|
|
7101
7101
|
else
|
|
7102
7102
|
break;
|
|
7103
7103
|
}
|
|
7104
|
-
|
|
7104
|
+
p + b < (m.seq1Range.length + m.seq2Range.length) * 2 / 3 && s.push(m), i = m.getEndExclusives();
|
|
7105
7105
|
}
|
|
7106
7106
|
for (; r.length > 0; ) {
|
|
7107
7107
|
const l = r.shift();
|
|
@@ -7130,8 +7130,8 @@ function lh(t, e, n) {
|
|
|
7130
7130
|
];
|
|
7131
7131
|
for (let o = 1; o < r.length; o++) {
|
|
7132
7132
|
let h = function(m, d) {
|
|
7133
|
-
const
|
|
7134
|
-
return t.getText(
|
|
7133
|
+
const p = new B(c.seq1Range.endExclusive, l.seq1Range.start);
|
|
7134
|
+
return t.getText(p).replace(/\s/g, "").length <= 4 && (m.seq1Range.length + m.seq2Range.length > 5 || d.seq1Range.length + d.seq2Range.length > 5);
|
|
7135
7135
|
};
|
|
7136
7136
|
const l = r[o], c = a[a.length - 1];
|
|
7137
7137
|
h(c, l) ? (i = !0, a[a.length - 1] = a[a.length - 1].join(l)) : a.push(l);
|
|
@@ -7151,14 +7151,14 @@ function uh(t, e, n) {
|
|
|
7151
7151
|
r[0]
|
|
7152
7152
|
];
|
|
7153
7153
|
for (let l = 1; l < r.length; l++) {
|
|
7154
|
-
let f = function(d,
|
|
7155
|
-
const
|
|
7156
|
-
if (t.countLinesIn(
|
|
7154
|
+
let f = function(d, p) {
|
|
7155
|
+
const b = new B(h.seq1Range.endExclusive, c.seq1Range.start);
|
|
7156
|
+
if (t.countLinesIn(b) > 5 || b.length > 500)
|
|
7157
7157
|
return !1;
|
|
7158
|
-
const _ = t.getText(
|
|
7158
|
+
const _ = t.getText(b).trim();
|
|
7159
7159
|
if (_.length > 20 || _.split(/\r\n|\r|\n/).length > 1)
|
|
7160
7160
|
return !1;
|
|
7161
|
-
const E = t.countLinesIn(d.seq1Range), L = d.seq1Range.length, v = e.countLinesIn(d.seq2Range), y = d.seq2Range.length, N = t.countLinesIn(
|
|
7161
|
+
const E = t.countLinesIn(d.seq1Range), L = d.seq1Range.length, v = e.countLinesIn(d.seq2Range), y = d.seq2Range.length, N = t.countLinesIn(p.seq1Range), A = p.seq1Range.length, R = e.countLinesIn(p.seq2Range), W = p.seq2Range.length, K = 2 * 40 + 50;
|
|
7162
7162
|
function q(P) {
|
|
7163
7163
|
return Math.min(P, K);
|
|
7164
7164
|
}
|
|
@@ -7177,9 +7177,9 @@ function uh(t, e, n) {
|
|
|
7177
7177
|
}
|
|
7178
7178
|
const m = t.extendToFullLines(l.seq1Range), d = t.getText(new B(m.start, l.seq1Range.start));
|
|
7179
7179
|
f(d) && (h = h.deltaStart(-d.length));
|
|
7180
|
-
const
|
|
7181
|
-
f(
|
|
7182
|
-
const
|
|
7180
|
+
const p = t.getText(new B(l.seq1Range.endExclusive, m.endExclusive));
|
|
7181
|
+
f(p) && (h = h.deltaEnd(p.length));
|
|
7182
|
+
const b = ee.fromOffsetPairs(o ? o.getEndExclusives() : qe.zero, c ? c.getStarts() : qe.max), x = h.intersect(b);
|
|
7183
7183
|
a.length > 0 && x.getStarts().equals(a[a.length - 1].getEndExclusives()) ? a[a.length - 1] = a[a.length - 1].join(x) : a.push(x);
|
|
7184
7184
|
}), a;
|
|
7185
7185
|
}
|
|
@@ -7230,17 +7230,17 @@ class ch {
|
|
|
7230
7230
|
return N === void 0 && (N = a.size, a.set(y, N)), N;
|
|
7231
7231
|
}
|
|
7232
7232
|
const l = e.map((y) => o(y.trim())), c = n.map((y) => o(y.trim())), h = new $a(l, e), f = new $a(c, n), m = h.length + f.length < 1700 ? this.dynamicProgrammingDiffing.compute(h, f, s, (y, N) => e[y] === n[N] ? n[N].length === 0 ? 0.1 : 1 + Math.log(1 + n[N].length) : 0.99) : this.myersDiffingAlgorithm.compute(h, f, s);
|
|
7233
|
-
let d = m.diffs,
|
|
7233
|
+
let d = m.diffs, p = m.hitTimeout;
|
|
7234
7234
|
d = Pa(h, f, d), d = lh(h, f, d);
|
|
7235
|
-
const
|
|
7235
|
+
const b = [], x = (y) => {
|
|
7236
7236
|
if (i)
|
|
7237
7237
|
for (let N = 0; N < y; N++) {
|
|
7238
7238
|
const A = _ + N, R = E + N;
|
|
7239
7239
|
if (e[A] !== n[R]) {
|
|
7240
7240
|
const W = this.refineDiff(e, n, new ee(new B(A, A + 1), new B(R, R + 1)), s, i);
|
|
7241
7241
|
for (const K of W.mappings)
|
|
7242
|
-
|
|
7243
|
-
W.hitTimeout && (
|
|
7242
|
+
b.push(K);
|
|
7243
|
+
W.hitTimeout && (p = !0);
|
|
7244
7244
|
}
|
|
7245
7245
|
}
|
|
7246
7246
|
};
|
|
@@ -7250,12 +7250,12 @@ class ch {
|
|
|
7250
7250
|
const N = y.seq1Range.start - _;
|
|
7251
7251
|
x(N), _ = y.seq1Range.endExclusive, E = y.seq2Range.endExclusive;
|
|
7252
7252
|
const A = this.refineDiff(e, n, y, s, i);
|
|
7253
|
-
A.hitTimeout && (
|
|
7253
|
+
A.hitTimeout && (p = !0);
|
|
7254
7254
|
for (const R of A.mappings)
|
|
7255
|
-
|
|
7255
|
+
b.push(R);
|
|
7256
7256
|
}
|
|
7257
7257
|
x(e.length - _);
|
|
7258
|
-
const L = Ba(
|
|
7258
|
+
const L = Ba(b, e, n);
|
|
7259
7259
|
let v = [];
|
|
7260
7260
|
return r.computeMoves && (v = this.computeMoves(L, e, n, l, c, s, i)), lr(() => {
|
|
7261
7261
|
function y(A, R) {
|
|
@@ -7277,7 +7277,7 @@ class ch {
|
|
|
7277
7277
|
return !1;
|
|
7278
7278
|
}
|
|
7279
7279
|
return !0;
|
|
7280
|
-
}), new Hn(L, v,
|
|
7280
|
+
}), new Hn(L, v, p);
|
|
7281
7281
|
}
|
|
7282
7282
|
computeMoves(e, n, r, s, i, a, o) {
|
|
7283
7283
|
return Qf(e, n, r, s, i, a).map((h) => {
|
|
@@ -7316,13 +7316,13 @@ const qa = {
|
|
|
7316
7316
|
getLegacy: () => new Pf(),
|
|
7317
7317
|
getDefault: () => new ch()
|
|
7318
7318
|
};
|
|
7319
|
-
function
|
|
7319
|
+
function bt(t, e) {
|
|
7320
7320
|
const n = Math.pow(10, e);
|
|
7321
7321
|
return Math.round(t * n) / n;
|
|
7322
7322
|
}
|
|
7323
7323
|
class ue {
|
|
7324
7324
|
constructor(e, n, r, s = 1) {
|
|
7325
|
-
this._rgbaBrand = void 0, this.r = Math.min(255, Math.max(0, e)) | 0, this.g = Math.min(255, Math.max(0, n)) | 0, this.b = Math.min(255, Math.max(0, r)) | 0, this.a =
|
|
7325
|
+
this._rgbaBrand = void 0, this.r = Math.min(255, Math.max(0, e)) | 0, this.g = Math.min(255, Math.max(0, n)) | 0, this.b = Math.min(255, Math.max(0, r)) | 0, this.a = bt(Math.max(Math.min(1, s), 0), 3);
|
|
7326
7326
|
}
|
|
7327
7327
|
static equals(e, n) {
|
|
7328
7328
|
return e.r === n.r && e.g === n.g && e.b === n.b && e.a === n.a;
|
|
@@ -7330,7 +7330,7 @@ class ue {
|
|
|
7330
7330
|
}
|
|
7331
7331
|
class Fe {
|
|
7332
7332
|
constructor(e, n, r, s) {
|
|
7333
|
-
this._hslaBrand = void 0, this.h = Math.max(Math.min(360, e), 0) | 0, this.s =
|
|
7333
|
+
this._hslaBrand = void 0, this.h = Math.max(Math.min(360, e), 0) | 0, this.s = bt(Math.max(Math.min(1, n), 0), 3), this.l = bt(Math.max(Math.min(1, r), 0), 3), this.a = bt(Math.max(Math.min(1, s), 0), 3);
|
|
7334
7334
|
}
|
|
7335
7335
|
static equals(e, n) {
|
|
7336
7336
|
return e.h === n.h && e.s === n.s && e.l === n.l && e.a === n.a;
|
|
@@ -7384,7 +7384,7 @@ class Fe {
|
|
|
7384
7384
|
}
|
|
7385
7385
|
class Wt {
|
|
7386
7386
|
constructor(e, n, r, s) {
|
|
7387
|
-
this._hsvaBrand = void 0, this.h = Math.max(Math.min(360, e), 0) | 0, this.s =
|
|
7387
|
+
this._hsvaBrand = void 0, this.h = Math.max(Math.min(360, e), 0) | 0, this.s = bt(Math.max(Math.min(1, n), 0), 3), this.v = bt(Math.max(Math.min(1, r), 0), 3), this.a = bt(Math.max(Math.min(1, s), 0), 3);
|
|
7388
7388
|
}
|
|
7389
7389
|
static equals(e, n) {
|
|
7390
7390
|
return e.h === n.h && e.s === n.s && e.v === n.v && e.a === n.a;
|
|
@@ -7436,7 +7436,7 @@ let cr = class oe {
|
|
|
7436
7436
|
*/
|
|
7437
7437
|
getRelativeLuminance() {
|
|
7438
7438
|
const e = oe._relativeLuminanceForComponent(this.rgba.r), n = oe._relativeLuminanceForComponent(this.rgba.g), r = oe._relativeLuminanceForComponent(this.rgba.b), s = 0.2126 * e + 0.7152 * n + 0.0722 * r;
|
|
7439
|
-
return
|
|
7439
|
+
return bt(s, 4);
|
|
7440
7440
|
}
|
|
7441
7441
|
static _relativeLuminanceForComponent(e) {
|
|
7442
7442
|
const n = e / 255;
|
|
@@ -7544,15 +7544,15 @@ let cr = class oe {
|
|
|
7544
7544
|
}
|
|
7545
7545
|
n.formatHSLA = a;
|
|
7546
7546
|
function o(d) {
|
|
7547
|
-
const
|
|
7548
|
-
return
|
|
7547
|
+
const p = d.toString(16);
|
|
7548
|
+
return p.length !== 2 ? "0" + p : p;
|
|
7549
7549
|
}
|
|
7550
7550
|
function l(d) {
|
|
7551
7551
|
return `#${o(d.rgba.r)}${o(d.rgba.g)}${o(d.rgba.b)}`;
|
|
7552
7552
|
}
|
|
7553
7553
|
n.formatHex = l;
|
|
7554
|
-
function c(d,
|
|
7555
|
-
return
|
|
7554
|
+
function c(d, p = !1) {
|
|
7555
|
+
return p && d.rgba.a === 1 ? t.Format.CSS.formatHex(d) : `#${o(d.rgba.r)}${o(d.rgba.g)}${o(d.rgba.b)}${o(Math.round(d.rgba.a * 255))}`;
|
|
7556
7556
|
}
|
|
7557
7557
|
n.formatHexA = c;
|
|
7558
7558
|
function h(d) {
|
|
@@ -7560,24 +7560,24 @@ let cr = class oe {
|
|
|
7560
7560
|
}
|
|
7561
7561
|
n.format = h;
|
|
7562
7562
|
function f(d) {
|
|
7563
|
-
const
|
|
7564
|
-
if (
|
|
7563
|
+
const p = d.length;
|
|
7564
|
+
if (p === 0 || d.charCodeAt(0) !== 35)
|
|
7565
7565
|
return null;
|
|
7566
|
-
if (
|
|
7567
|
-
const
|
|
7568
|
-
return new t(new ue(
|
|
7566
|
+
if (p === 7) {
|
|
7567
|
+
const b = 16 * m(d.charCodeAt(1)) + m(d.charCodeAt(2)), x = 16 * m(d.charCodeAt(3)) + m(d.charCodeAt(4)), _ = 16 * m(d.charCodeAt(5)) + m(d.charCodeAt(6));
|
|
7568
|
+
return new t(new ue(b, x, _, 1));
|
|
7569
7569
|
}
|
|
7570
|
-
if (
|
|
7571
|
-
const
|
|
7572
|
-
return new t(new ue(
|
|
7570
|
+
if (p === 9) {
|
|
7571
|
+
const b = 16 * m(d.charCodeAt(1)) + m(d.charCodeAt(2)), x = 16 * m(d.charCodeAt(3)) + m(d.charCodeAt(4)), _ = 16 * m(d.charCodeAt(5)) + m(d.charCodeAt(6)), E = 16 * m(d.charCodeAt(7)) + m(d.charCodeAt(8));
|
|
7572
|
+
return new t(new ue(b, x, _, E / 255));
|
|
7573
7573
|
}
|
|
7574
|
-
if (
|
|
7575
|
-
const
|
|
7576
|
-
return new t(new ue(16 *
|
|
7574
|
+
if (p === 4) {
|
|
7575
|
+
const b = m(d.charCodeAt(1)), x = m(d.charCodeAt(2)), _ = m(d.charCodeAt(3));
|
|
7576
|
+
return new t(new ue(16 * b + b, 16 * x + x, 16 * _ + _));
|
|
7577
7577
|
}
|
|
7578
|
-
if (
|
|
7579
|
-
const
|
|
7580
|
-
return new t(new ue(16 *
|
|
7578
|
+
if (p === 5) {
|
|
7579
|
+
const b = m(d.charCodeAt(1)), x = m(d.charCodeAt(2)), _ = m(d.charCodeAt(3)), E = m(d.charCodeAt(4));
|
|
7580
|
+
return new t(new ue(16 * b + b, 16 * x + x, 16 * _ + _, (16 * E + E) / 255));
|
|
7581
7581
|
}
|
|
7582
7582
|
return null;
|
|
7583
7583
|
}
|
|
@@ -7721,8 +7721,8 @@ function mh(t) {
|
|
|
7721
7721
|
function gh(t) {
|
|
7722
7722
|
return !t || typeof t.getValue != "function" || typeof t.positionAt != "function" ? [] : mh(t);
|
|
7723
7723
|
}
|
|
7724
|
-
const Ga = new RegExp("\\bMARK:\\s*(.*)$", "d"),
|
|
7725
|
-
function
|
|
7724
|
+
const Ga = new RegExp("\\bMARK:\\s*(.*)$", "d"), ph = /^-+|-+$/g;
|
|
7725
|
+
function bh(t, e) {
|
|
7726
7726
|
let n = [];
|
|
7727
7727
|
if (e.findRegionSectionHeaders && e.foldingRules?.markers) {
|
|
7728
7728
|
const r = wh(t, e);
|
|
@@ -7778,7 +7778,7 @@ function xh(t, e, n) {
|
|
|
7778
7778
|
function uu(t) {
|
|
7779
7779
|
t = t.trim();
|
|
7780
7780
|
const e = t.startsWith("-");
|
|
7781
|
-
return t = t.replace(
|
|
7781
|
+
return t = t.replace(ph, ""), { text: t, hasSeparatorLine: e };
|
|
7782
7782
|
}
|
|
7783
7783
|
var ja;
|
|
7784
7784
|
(function(t) {
|
|
@@ -8205,7 +8205,7 @@ class Eh {
|
|
|
8205
8205
|
}
|
|
8206
8206
|
async $findSectionHeaders(e, n) {
|
|
8207
8207
|
const r = this._getModel(e);
|
|
8208
|
-
return r ?
|
|
8208
|
+
return r ? bh(r, n) : [];
|
|
8209
8209
|
}
|
|
8210
8210
|
// ---- BEGIN diff --------------------------------------------------------------------------
|
|
8211
8211
|
async $computeDiff(e, n, r, s) {
|
|
@@ -8280,10 +8280,10 @@ class Eh {
|
|
|
8280
8280
|
continue;
|
|
8281
8281
|
}
|
|
8282
8282
|
const m = Q1(f, c, r), d = s.offsetAt(H.lift(l).getStartPosition());
|
|
8283
|
-
for (const
|
|
8284
|
-
const
|
|
8285
|
-
text: c.substr(
|
|
8286
|
-
range: { startLineNumber:
|
|
8283
|
+
for (const p of m) {
|
|
8284
|
+
const b = s.positionAt(d + p.originalStart), x = s.positionAt(d + p.originalStart + p.originalLength), _ = {
|
|
8285
|
+
text: c.substr(p.modifiedStart, p.modifiedLength),
|
|
8286
|
+
range: { startLineNumber: b.lineNumber, startColumn: b.column, endLineNumber: x.lineNumber, endColumn: x.column }
|
|
8287
8287
|
};
|
|
8288
8288
|
s.getValueInRange(_.range) !== _.text && i.push(_);
|
|
8289
8289
|
}
|
|
@@ -8388,7 +8388,7 @@ class Zn extends Eh {
|
|
|
8388
8388
|
}
|
|
8389
8389
|
}
|
|
8390
8390
|
}
|
|
8391
|
-
typeof importScripts == "function" && (globalThis.monaco =
|
|
8391
|
+
typeof importScripts == "function" && (globalThis.monaco = pf());
|
|
8392
8392
|
let ms = !1;
|
|
8393
8393
|
function cu(t) {
|
|
8394
8394
|
if (ms)
|
|
@@ -8492,7 +8492,7 @@ let Za = class gs {
|
|
|
8492
8492
|
return n != null && typeof n.text == "string" && n.range === void 0 && n.rangeLength === void 0;
|
|
8493
8493
|
}
|
|
8494
8494
|
};
|
|
8495
|
-
var
|
|
8495
|
+
var ps;
|
|
8496
8496
|
(function(t) {
|
|
8497
8497
|
function e(s, i, a, o) {
|
|
8498
8498
|
return new Za(s, i, a, o);
|
|
@@ -8505,7 +8505,7 @@ var bs;
|
|
|
8505
8505
|
}
|
|
8506
8506
|
t.update = n;
|
|
8507
8507
|
function r(s, i) {
|
|
8508
|
-
const a = s.getText(), o =
|
|
8508
|
+
const a = s.getText(), o = bs(i.map(Th), (h, f) => {
|
|
8509
8509
|
const m = h.range.start.line - f.range.start.line;
|
|
8510
8510
|
return m === 0 ? h.range.start.character - f.range.start.character : m;
|
|
8511
8511
|
});
|
|
@@ -8520,12 +8520,12 @@ var bs;
|
|
|
8520
8520
|
return c.push(a.substr(l)), c.join("");
|
|
8521
8521
|
}
|
|
8522
8522
|
t.applyEdits = r;
|
|
8523
|
-
})(
|
|
8524
|
-
function
|
|
8523
|
+
})(ps || (ps = {}));
|
|
8524
|
+
function bs(t, e) {
|
|
8525
8525
|
if (t.length <= 1)
|
|
8526
8526
|
return t;
|
|
8527
8527
|
const n = t.length / 2 | 0, r = t.slice(0, n), s = t.slice(n);
|
|
8528
|
-
|
|
8528
|
+
bs(r, e), bs(s, e);
|
|
8529
8529
|
let i = 0, a = 0, o = 0;
|
|
8530
8530
|
for (; i < r.length && a < s.length; )
|
|
8531
8531
|
e(r[i], s[a]) <= 0 ? t[o++] = r[i++] : t[o++] = s[a++];
|
|
@@ -9007,7 +9007,7 @@ var go;
|
|
|
9007
9007
|
}
|
|
9008
9008
|
t.create = e;
|
|
9009
9009
|
})(go || (go = {}));
|
|
9010
|
-
var
|
|
9010
|
+
var pr;
|
|
9011
9011
|
(function(t) {
|
|
9012
9012
|
function e(r) {
|
|
9013
9013
|
return r.replace(/[\\`*_{}[\]()#+\-.!]/g, "\\$&");
|
|
@@ -9018,22 +9018,22 @@ var br;
|
|
|
9018
9018
|
return g.string(s) || g.objectLiteral(s) && g.string(s.language) && g.string(s.value);
|
|
9019
9019
|
}
|
|
9020
9020
|
t.is = n;
|
|
9021
|
-
})(
|
|
9022
|
-
var
|
|
9021
|
+
})(pr || (pr = {}));
|
|
9022
|
+
var po;
|
|
9023
9023
|
(function(t) {
|
|
9024
9024
|
function e(n) {
|
|
9025
9025
|
let r = n;
|
|
9026
|
-
return !!r && g.objectLiteral(r) && (Nn.is(r.contents) ||
|
|
9026
|
+
return !!r && g.objectLiteral(r) && (Nn.is(r.contents) || pr.is(r.contents) || g.typedArray(r.contents, pr.is)) && (n.range === void 0 || ae.is(n.range));
|
|
9027
9027
|
}
|
|
9028
9028
|
t.is = e;
|
|
9029
|
-
})(
|
|
9030
|
-
var
|
|
9029
|
+
})(po || (po = {}));
|
|
9030
|
+
var bo;
|
|
9031
9031
|
(function(t) {
|
|
9032
9032
|
function e(n, r) {
|
|
9033
9033
|
return r ? { label: n, documentation: r } : { label: n };
|
|
9034
9034
|
}
|
|
9035
9035
|
t.create = e;
|
|
9036
|
-
})(
|
|
9036
|
+
})(bo || (bo = {}));
|
|
9037
9037
|
var wo;
|
|
9038
9038
|
(function(t) {
|
|
9039
9039
|
function e(n, r, ...s) {
|
|
@@ -9104,10 +9104,10 @@ var Eo;
|
|
|
9104
9104
|
(function(t) {
|
|
9105
9105
|
t.Empty = "", t.QuickFix = "quickfix", t.Refactor = "refactor", t.RefactorExtract = "refactor.extract", t.RefactorInline = "refactor.inline", t.RefactorRewrite = "refactor.rewrite", t.Source = "source", t.SourceOrganizeImports = "source.organizeImports", t.SourceFixAll = "source.fixAll";
|
|
9106
9106
|
})(Eo || (Eo = {}));
|
|
9107
|
-
var
|
|
9107
|
+
var br;
|
|
9108
9108
|
(function(t) {
|
|
9109
9109
|
t.Invoked = 1, t.Automatic = 2;
|
|
9110
|
-
})(
|
|
9110
|
+
})(br || (br = {}));
|
|
9111
9111
|
var To;
|
|
9112
9112
|
(function(t) {
|
|
9113
9113
|
function e(r, s, i) {
|
|
@@ -9117,7 +9117,7 @@ var To;
|
|
|
9117
9117
|
t.create = e;
|
|
9118
9118
|
function n(r) {
|
|
9119
9119
|
let s = r;
|
|
9120
|
-
return g.defined(s) && g.typedArray(s.diagnostics, dr.is) && (s.only === void 0 || g.typedArray(s.only, g.string)) && (s.triggerKind === void 0 || s.triggerKind ===
|
|
9120
|
+
return g.defined(s) && g.typedArray(s.diagnostics, dr.is) && (s.only === void 0 || g.typedArray(s.only, g.string)) && (s.triggerKind === void 0 || s.triggerKind === br.Invoked || s.triggerKind === br.Automatic);
|
|
9121
9121
|
}
|
|
9122
9122
|
t.is = n;
|
|
9123
9123
|
})(To || (To = {}));
|
|
@@ -9454,8 +9454,8 @@ var g;
|
|
|
9454
9454
|
return e.call(d) === "[object Number]";
|
|
9455
9455
|
}
|
|
9456
9456
|
t.number = a;
|
|
9457
|
-
function o(d,
|
|
9458
|
-
return e.call(d) === "[object Number]" &&
|
|
9457
|
+
function o(d, p, b) {
|
|
9458
|
+
return e.call(d) === "[object Number]" && p <= d && d <= b;
|
|
9459
9459
|
}
|
|
9460
9460
|
t.numberRange = o;
|
|
9461
9461
|
function l(d) {
|
|
@@ -9474,8 +9474,8 @@ var g;
|
|
|
9474
9474
|
return d !== null && typeof d == "object";
|
|
9475
9475
|
}
|
|
9476
9476
|
t.objectLiteral = f;
|
|
9477
|
-
function m(d,
|
|
9478
|
-
return Array.isArray(d) && d.every(
|
|
9477
|
+
function m(d, p) {
|
|
9478
|
+
return Array.isArray(d) && d.every(p);
|
|
9479
9479
|
}
|
|
9480
9480
|
t.typedArray = m;
|
|
9481
9481
|
})(g || (g = {}));
|
|
@@ -9588,8 +9588,8 @@ class Fh {
|
|
|
9588
9588
|
return n;
|
|
9589
9589
|
}
|
|
9590
9590
|
}
|
|
9591
|
-
var
|
|
9592
|
-
const
|
|
9591
|
+
var pe = /* @__PURE__ */ ((t) => (t.ARGS = "args", t.CLAUSES = "clauses", t.ELSE = "else", t.END = "end", t.EXPR = "expr", t.LEFT = "left", t.OPERAND = "operand", t.QUALIFIER = "qualifier", t.RIGHT = "right", t.START = "start", t.VALUE = "value", t))(pe || {}), Q = /* @__PURE__ */ ((t) => (t.CASE_EXPRESSION = "case-expression", t.EXPRESSION_LIST = "expression-list", t.FUNCTION = "function", t.INTERVAL = "interval", t.INTERVAL_QUALIFIER = "interval-qualifier", t.WHEN_CLAUSE = "when-clause", t.UNARY_EXPRESSION = "unary-expression", t.BINARY_EXPRESSION = "binary-expression", t))(Q || {});
|
|
9592
|
+
const be = {
|
|
9593
9593
|
"case-expression": [
|
|
9594
9594
|
"clauses",
|
|
9595
9595
|
"operand",
|
|
@@ -9994,7 +9994,7 @@ const zh = (t) => {
|
|
|
9994
9994
|
"real"
|
|
9995
9995
|
], a = /* @__PURE__ */ new Set([r, s]);
|
|
9996
9996
|
return !!(a.size === 2 && a.has("interval") && i.some((o) => a.has(o)));
|
|
9997
|
-
},
|
|
9997
|
+
}, pu = (t) => {
|
|
9998
9998
|
switch (t.toLowerCase()) {
|
|
9999
9999
|
case "integer":
|
|
10000
10000
|
case "double":
|
|
@@ -10079,14 +10079,14 @@ const zh = (t) => {
|
|
|
10079
10079
|
}, yt = (t, e, n, r) => {
|
|
10080
10080
|
const s = Tt(t, r);
|
|
10081
10081
|
let i = s.toUpperCase() === e;
|
|
10082
|
-
if (e === "NUMBER" && (i =
|
|
10082
|
+
if (e === "NUMBER" && (i = pu(s)), !i) {
|
|
10083
10083
|
const a = Le(_e.TypeNotAssignable, {
|
|
10084
10084
|
providedType: je(s),
|
|
10085
10085
|
expectedType: je(e.toLowerCase())
|
|
10086
10086
|
});
|
|
10087
10087
|
ge(a, t.location, n, !0);
|
|
10088
10088
|
}
|
|
10089
|
-
},
|
|
10089
|
+
}, bu = (t) => t.variables ? t.variables.find(
|
|
10090
10090
|
(n) => n.name === "$layer" && n.type === "dictionary"
|
|
10091
10091
|
)?.properties ?? [] : [];
|
|
10092
10092
|
let Vr;
|
|
@@ -10275,7 +10275,7 @@ function vu(t, e, n) {
|
|
|
10275
10275
|
}) : r[s] = a.slice())) : a && typeof a == "object" ? r[s] = vu(i, a, n) : r.hasOwnProperty(s) && !e.hasOwnProperty(s) || (r[s] = a), r);
|
|
10276
10276
|
}, t || {}) : t;
|
|
10277
10277
|
}
|
|
10278
|
-
const ld = "
|
|
10278
|
+
const ld = "20250519", ut = { apiKey: void 0, apiKeys: { scopes: [] }, applicationName: "", applicationUrl: globalThis.location?.href, assetsPath: "", fontsUrl: "https://static.arcgis.com/fonts", geometryServiceUrl: "https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer", geoRSSServiceUrl: "https://utility.arcgis.com/sharing/rss", kmlServiceUrl: "https://utility.arcgis.com/sharing/kml", userPrivilegesApplied: !0, portalUrl: "https://www.arcgis.com", respectPrefersReducedMotion: !0, routeServiceUrl: "https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World", workers: { loaderConfig: { has: {}, paths: {}, map: {}, packages: [] } }, request: { crossOriginNoCorsDomains: null, httpsDomains: ["arcgis.com", "arcgisonline.com", "esrikr.com", "premiumservices.blackbridge.com", "esripremium.accuweather.com", "gbm.digitalglobe.com", "firstlook.digitalglobe.com", "msi.digitalglobe.com"], interceptors: [], internalInterceptors: [], maxUrlLength: 2e3, priority: "high", proxyRules: [], proxyUrl: null, timeout: 62e3, trustedServers: [], useIdentity: !0 }, log: { interceptors: [], level: null } };
|
|
10279
10279
|
if (globalThis.esriConfig && (od(ut, globalThis.esriConfig, !0), delete ut.has), !ut.assetsPath) {
|
|
10280
10280
|
{
|
|
10281
10281
|
const t = "4.33.0";
|
|
@@ -10438,12 +10438,12 @@ function gd(t, e, n) {
|
|
|
10438
10438
|
}
|
|
10439
10439
|
class At extends Error {
|
|
10440
10440
|
}
|
|
10441
|
-
class
|
|
10441
|
+
class pd extends At {
|
|
10442
10442
|
constructor(e) {
|
|
10443
10443
|
super(`Invalid DateTime: ${e.toMessage()}`);
|
|
10444
10444
|
}
|
|
10445
10445
|
}
|
|
10446
|
-
class
|
|
10446
|
+
class bd extends At {
|
|
10447
10447
|
constructor(e) {
|
|
10448
10448
|
super(`Invalid Interval: ${e.toMessage()}`);
|
|
10449
10449
|
}
|
|
@@ -10874,8 +10874,8 @@ class Ge extends tn {
|
|
|
10874
10874
|
millisecond: 0
|
|
10875
10875
|
});
|
|
10876
10876
|
let d = +n;
|
|
10877
|
-
const
|
|
10878
|
-
return d -=
|
|
10877
|
+
const p = d % 1e3;
|
|
10878
|
+
return d -= p >= 0 ? p : 1e3 + p, (m - d) / (60 * 1e3);
|
|
10879
10879
|
}
|
|
10880
10880
|
/**
|
|
10881
10881
|
* Return whether this Zone is equal to another zone
|
|
@@ -11746,11 +11746,11 @@ function Tr(t) {
|
|
|
11746
11746
|
);
|
|
11747
11747
|
return t.year < 100 && t.year >= 0 && (e = new Date(e), e.setUTCFullYear(t.year, t.month - 1, t.day)), +e;
|
|
11748
11748
|
}
|
|
11749
|
-
function
|
|
11749
|
+
function pl(t, e, n) {
|
|
11750
11750
|
return -ti(ei(t, 1, e), n) + e - 1;
|
|
11751
11751
|
}
|
|
11752
11752
|
function Sn(t, e = 4, n = 1) {
|
|
11753
|
-
const r =
|
|
11753
|
+
const r = pl(t, e, n), s = pl(t + 1, e, n);
|
|
11754
11754
|
return (zt(t) - r + s) / 7;
|
|
11755
11755
|
}
|
|
11756
11756
|
function Bs(t) {
|
|
@@ -11923,7 +11923,7 @@ function i0(t, e, n = "always", r = !1) {
|
|
|
11923
11923
|
const a = Object.is(e, -0) || e < 0, o = Math.abs(e), l = o === 1, c = s[t], h = r ? l ? c[1] : c[2] || c[1] : l ? s[t][0] : t;
|
|
11924
11924
|
return a ? `${o} ${h} ago` : `in ${o} ${h}`;
|
|
11925
11925
|
}
|
|
11926
|
-
function
|
|
11926
|
+
function bl(t, e) {
|
|
11927
11927
|
let n = "";
|
|
11928
11928
|
for (const r of t)
|
|
11929
11929
|
r.literal ? n += r.val : n += e(r.val);
|
|
@@ -11995,12 +11995,12 @@ class ye {
|
|
|
11995
11995
|
return n > 0 && (r.padTo = n), this.loc.numberFormatter(r).format(e);
|
|
11996
11996
|
}
|
|
11997
11997
|
formatDateTimeFromString(e, n) {
|
|
11998
|
-
const r = this.loc.listingMode() === "en", s = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", i = (d,
|
|
11999
|
-
|
|
11998
|
+
const r = this.loc.listingMode() === "en", s = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", i = (d, p) => this.loc.extract(e, d, p), a = (d) => e.isOffsetFixed && e.offset === 0 && d.allowZ ? "Z" : e.isValid ? e.zone.formatOffset(e.ts, d.format) : "", o = () => r ? t0(e) : i({ hour: "numeric", hourCycle: "h12" }, "dayperiod"), l = (d, p) => r ? r0(e, d) : i(p ? { month: d } : { month: d, day: "numeric" }, "month"), c = (d, p) => r ? n0(e, d) : i(
|
|
11999
|
+
p ? { weekday: d } : { weekday: d, month: "long", day: "numeric" },
|
|
12000
12000
|
"weekday"
|
|
12001
12001
|
), h = (d) => {
|
|
12002
|
-
const
|
|
12003
|
-
return
|
|
12002
|
+
const p = ye.macroTokenToFormatOpts(d);
|
|
12003
|
+
return p ? this.formatWithSystemDefault(e, p) : d;
|
|
12004
12004
|
}, f = (d) => r ? s0(e, d) : i({ era: d }, "era"), m = (d) => {
|
|
12005
12005
|
switch (d) {
|
|
12006
12006
|
// ms
|
|
@@ -12144,7 +12144,7 @@ class ye {
|
|
|
12144
12144
|
return h(d);
|
|
12145
12145
|
}
|
|
12146
12146
|
};
|
|
12147
|
-
return
|
|
12147
|
+
return bl(ye.parseFormat(n), m);
|
|
12148
12148
|
}
|
|
12149
12149
|
formatDurationFromString(e, n) {
|
|
12150
12150
|
const r = (l) => {
|
|
@@ -12175,7 +12175,7 @@ class ye {
|
|
|
12175
12175
|
(l, { literal: c, val: h }) => c ? l : l.concat(h),
|
|
12176
12176
|
[]
|
|
12177
12177
|
), o = e.shiftTo(...a.map(r).filter((l) => l));
|
|
12178
|
-
return
|
|
12178
|
+
return bl(i, s(o));
|
|
12179
12179
|
}
|
|
12180
12180
|
}
|
|
12181
12181
|
const cc = /[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;
|
|
@@ -12241,9 +12241,9 @@ function kn(t, e) {
|
|
|
12241
12241
|
const n = t[e] ? Ge.create(t[e]) : null;
|
|
12242
12242
|
return [{}, n, e + 1];
|
|
12243
12243
|
}
|
|
12244
|
-
const
|
|
12244
|
+
const p0 = RegExp(`^T?${si.source}$`), b0 = /^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;
|
|
12245
12245
|
function w0(t) {
|
|
12246
|
-
const [e, n, r, s, i, a, o, l, c] = t, h = e[0] === "-", f = l && l[0] === "-", m = (d,
|
|
12246
|
+
const [e, n, r, s, i, a, o, l, c] = t, h = e[0] === "-", f = l && l[0] === "-", m = (d, p = !1) => d !== void 0 && (p || d && h) ? -d : d;
|
|
12247
12247
|
return [
|
|
12248
12248
|
{
|
|
12249
12249
|
years: m(xt(n)),
|
|
@@ -12350,11 +12350,11 @@ function O0(t) {
|
|
|
12350
12350
|
);
|
|
12351
12351
|
}
|
|
12352
12352
|
function P0(t) {
|
|
12353
|
-
return sn(t, [
|
|
12353
|
+
return sn(t, [b0, w0]);
|
|
12354
12354
|
}
|
|
12355
12355
|
const U0 = rn(an);
|
|
12356
12356
|
function V0(t) {
|
|
12357
|
-
return sn(t, [
|
|
12357
|
+
return sn(t, [p0, U0]);
|
|
12358
12358
|
}
|
|
12359
12359
|
const $0 = nn(d0, m0), W0 = nn(mc), B0 = rn(
|
|
12360
12360
|
an,
|
|
@@ -12368,7 +12368,7 @@ function q0(t) {
|
|
|
12368
12368
|
[W0, B0]
|
|
12369
12369
|
);
|
|
12370
12370
|
}
|
|
12371
|
-
const yl = "Invalid Duration",
|
|
12371
|
+
const yl = "Invalid Duration", pc = {
|
|
12372
12372
|
weeks: {
|
|
12373
12373
|
days: 7,
|
|
12374
12374
|
hours: 7 * 24,
|
|
@@ -12413,7 +12413,7 @@ const yl = "Invalid Duration", bc = {
|
|
|
12413
12413
|
seconds: 30 * 24 * 60 * 60,
|
|
12414
12414
|
milliseconds: 30 * 24 * 60 * 60 * 1e3
|
|
12415
12415
|
},
|
|
12416
|
-
...
|
|
12416
|
+
...pc
|
|
12417
12417
|
}, Me = 146097 / 400, Ot = 146097 / 4800, z0 = {
|
|
12418
12418
|
years: {
|
|
12419
12419
|
quarters: 4,
|
|
@@ -12442,7 +12442,7 @@ const yl = "Invalid Duration", bc = {
|
|
|
12442
12442
|
seconds: Ot * 24 * 60 * 60,
|
|
12443
12443
|
milliseconds: Ot * 24 * 60 * 60 * 1e3
|
|
12444
12444
|
},
|
|
12445
|
-
...
|
|
12445
|
+
...pc
|
|
12446
12446
|
}, Lt = [
|
|
12447
12447
|
"years",
|
|
12448
12448
|
"quarters",
|
|
@@ -12463,14 +12463,14 @@ function it(t, e, n = !1) {
|
|
|
12463
12463
|
};
|
|
12464
12464
|
return new z(r);
|
|
12465
12465
|
}
|
|
12466
|
-
function
|
|
12466
|
+
function bc(t, e) {
|
|
12467
12467
|
let n = e.milliseconds ?? 0;
|
|
12468
12468
|
for (const r of G0.slice(1))
|
|
12469
12469
|
e[r] && (n += e[r] * t[r].milliseconds);
|
|
12470
12470
|
return n;
|
|
12471
12471
|
}
|
|
12472
12472
|
function xl(t, e) {
|
|
12473
|
-
const n =
|
|
12473
|
+
const n = bc(t, e) < 0 ? -1 : 1;
|
|
12474
12474
|
Lt.reduceRight((r, s) => {
|
|
12475
12475
|
if (O(e[s]))
|
|
12476
12476
|
return r;
|
|
@@ -12799,7 +12799,7 @@ class z {
|
|
|
12799
12799
|
* @return {number}
|
|
12800
12800
|
*/
|
|
12801
12801
|
toMillis() {
|
|
12802
|
-
return this.isValid ?
|
|
12802
|
+
return this.isValid ? bc(this.matrix, this.values) : NaN;
|
|
12803
12803
|
}
|
|
12804
12804
|
/**
|
|
12805
12805
|
* Returns an milliseconds value of this Duration. Alias of {@link toMillis}
|
|
@@ -13100,7 +13100,7 @@ class te {
|
|
|
13100
13100
|
throw new we("need to specify a reason the Interval is invalid");
|
|
13101
13101
|
const r = e instanceof He ? e : new He(e, n);
|
|
13102
13102
|
if (re.throwOnInvalid)
|
|
13103
|
-
throw new
|
|
13103
|
+
throw new bd(r);
|
|
13104
13104
|
return new te({ invalid: r });
|
|
13105
13105
|
}
|
|
13106
13106
|
/**
|
|
@@ -13771,7 +13771,7 @@ function em(t) {
|
|
|
13771
13771
|
return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
|
|
13772
13772
|
}
|
|
13773
13773
|
function tm(t, e) {
|
|
13774
|
-
const n = Ue(e), r = Ue(e, "{2}"), s = Ue(e, "{3}"), i = Ue(e, "{4}"), a = Ue(e, "{6}"), o = Ue(e, "{1,2}"), l = Ue(e, "{1,3}"), c = Ue(e, "{1,6}"), h = Ue(e, "{1,9}"), f = Ue(e, "{2,4}"), m = Ue(e, "{4,6}"), d = (x) => ({ regex: RegExp(em(x.val)), deser: ([_]) => _, literal: !0 }),
|
|
13774
|
+
const n = Ue(e), r = Ue(e, "{2}"), s = Ue(e, "{3}"), i = Ue(e, "{4}"), a = Ue(e, "{6}"), o = Ue(e, "{1,2}"), l = Ue(e, "{1,3}"), c = Ue(e, "{1,6}"), h = Ue(e, "{1,9}"), f = Ue(e, "{2,4}"), m = Ue(e, "{4,6}"), d = (x) => ({ regex: RegExp(em(x.val)), deser: ([_]) => _, literal: !0 }), b = ((x) => {
|
|
13775
13775
|
if (t.literal)
|
|
13776
13776
|
return d(x);
|
|
13777
13777
|
switch (x.val) {
|
|
@@ -13894,7 +13894,7 @@ function tm(t, e) {
|
|
|
13894
13894
|
})(t) || {
|
|
13895
13895
|
invalidReason: X0
|
|
13896
13896
|
};
|
|
13897
|
-
return
|
|
13897
|
+
return b.token = t, b;
|
|
13898
13898
|
}
|
|
13899
13899
|
const nm = {
|
|
13900
13900
|
year: {
|
|
@@ -14247,7 +14247,7 @@ function El(t) {
|
|
|
14247
14247
|
return gm(t);
|
|
14248
14248
|
}
|
|
14249
14249
|
}
|
|
14250
|
-
function
|
|
14250
|
+
function pm(t) {
|
|
14251
14251
|
if (gn === void 0 && (gn = re.now()), t.type !== "iana")
|
|
14252
14252
|
return t.offset(gn);
|
|
14253
14253
|
const e = t.name;
|
|
@@ -14268,7 +14268,7 @@ function Tl(t, e) {
|
|
|
14268
14268
|
const a = Xu(t) || Qu(t);
|
|
14269
14269
|
if (a)
|
|
14270
14270
|
return D.invalid(a);
|
|
14271
|
-
const o =
|
|
14271
|
+
const o = pm(n);
|
|
14272
14272
|
[s, i] = Yn(t, o, n);
|
|
14273
14273
|
}
|
|
14274
14274
|
return new D({ ts: s, zone: n, loc: r, o: i });
|
|
@@ -14471,25 +14471,25 @@ class D {
|
|
|
14471
14471
|
const r = ht(n.zone, re.defaultZone);
|
|
14472
14472
|
if (!r.isValid)
|
|
14473
14473
|
return D.invalid(mn(r));
|
|
14474
|
-
const s = j.fromObject(n), i = vr(e, El), { minDaysInFirstWeek: a, startOfWeek: o } = ml(i, s), l = re.now(), c = O(n.specificOffset) ? r.offset(l) : n.specificOffset, h = !O(i.ordinal), f = !O(i.year), m = !O(i.month) || !O(i.day), d = f || m,
|
|
14475
|
-
if ((d || h) &&
|
|
14474
|
+
const s = j.fromObject(n), i = vr(e, El), { minDaysInFirstWeek: a, startOfWeek: o } = ml(i, s), l = re.now(), c = O(n.specificOffset) ? r.offset(l) : n.specificOffset, h = !O(i.ordinal), f = !O(i.year), m = !O(i.month) || !O(i.day), d = f || m, p = i.weekYear || i.weekNumber;
|
|
14475
|
+
if ((d || h) && p)
|
|
14476
14476
|
throw new Bt(
|
|
14477
14477
|
"Can't mix weekYear/weekNumber units with year/month/day or ordinals"
|
|
14478
14478
|
);
|
|
14479
14479
|
if (m && h)
|
|
14480
14480
|
throw new Bt("Can't mix ordinal dates with month/day");
|
|
14481
|
-
const
|
|
14481
|
+
const b = p || i.weekday && !d;
|
|
14482
14482
|
let x, _, E = Vn(l, c);
|
|
14483
|
-
|
|
14483
|
+
b ? (x = dm, _ = fm, E = yr(E, a, o)) : h ? (x = mm, _ = hm, E = qr(E)) : (x = Ec, _ = Lc);
|
|
14484
14484
|
let L = !1;
|
|
14485
14485
|
for (const K of x) {
|
|
14486
14486
|
const q = i[K];
|
|
14487
14487
|
O(q) ? L ? i[K] = _[K] : i[K] = E[K] : L = !0;
|
|
14488
14488
|
}
|
|
14489
|
-
const v =
|
|
14489
|
+
const v = b ? Bd(i, a, o) : h ? qd(i) : Xu(i), y = v || Qu(i);
|
|
14490
14490
|
if (y)
|
|
14491
14491
|
return D.invalid(y);
|
|
14492
|
-
const N =
|
|
14492
|
+
const N = b ? hl(i, a, o) : h ? dl(i) : i, [A, R] = Yn(N, c, r), W = new D({
|
|
14493
14493
|
ts: A,
|
|
14494
14494
|
zone: r,
|
|
14495
14495
|
o: R,
|
|
@@ -14626,7 +14626,7 @@ class D {
|
|
|
14626
14626
|
throw new we("need to specify a reason the DateTime is invalid");
|
|
14627
14627
|
const r = e instanceof He ? e : new He(e, n);
|
|
14628
14628
|
if (re.throwOnInvalid)
|
|
14629
|
-
throw new
|
|
14629
|
+
throw new pd(r);
|
|
14630
14630
|
return new D({ invalid: r });
|
|
14631
14631
|
}
|
|
14632
14632
|
/**
|
|
@@ -15862,11 +15862,11 @@ class oi {
|
|
|
15862
15862
|
this.instance = new Ge("Etc/UTC");
|
|
15863
15863
|
}
|
|
15864
15864
|
}
|
|
15865
|
-
function
|
|
15865
|
+
function bm(t) {
|
|
15866
15866
|
return t instanceof tn ? t === oi.instance : t?.toString().toLowerCase() === "unknown";
|
|
15867
15867
|
}
|
|
15868
|
-
function
|
|
15869
|
-
return
|
|
15868
|
+
function pg(t) {
|
|
15869
|
+
return bm(t) ? oi.instance : t;
|
|
15870
15870
|
}
|
|
15871
15871
|
function wm(t) {
|
|
15872
15872
|
return t && typeof t == "object" && "toJSON" in t && typeof t.toJSON == "function";
|
|
@@ -15880,7 +15880,7 @@ function Tc(t, e) {
|
|
|
15880
15880
|
const n = /* @__PURE__ */ new Set();
|
|
15881
15881
|
return Cl(n, t), Cl(n, e), n;
|
|
15882
15882
|
}
|
|
15883
|
-
function
|
|
15883
|
+
function bg(t) {
|
|
15884
15884
|
return typeof t == "number";
|
|
15885
15885
|
}
|
|
15886
15886
|
function Ac(t) {
|
|
@@ -16133,21 +16133,21 @@ function Qm(t, e) {
|
|
|
16133
16133
|
return -1;
|
|
16134
16134
|
switch (e.type) {
|
|
16135
16135
|
case Q.CASE_EXPRESSION:
|
|
16136
|
-
return
|
|
16136
|
+
return pe.ELSE;
|
|
16137
16137
|
case Q.WHEN_CLAUSE:
|
|
16138
|
-
return t === e.operand ?
|
|
16138
|
+
return t === e.operand ? pe.OPERAND : t === e.value ? pe.VALUE : -1;
|
|
16139
16139
|
case Q.UNARY_EXPRESSION:
|
|
16140
|
-
return
|
|
16140
|
+
return pe.EXPR;
|
|
16141
16141
|
case Q.BINARY_EXPRESSION:
|
|
16142
|
-
return t === e.left ?
|
|
16142
|
+
return t === e.left ? pe.LEFT : t === e.right ? pe.RIGHT : -1;
|
|
16143
16143
|
case Q.FUNCTION:
|
|
16144
16144
|
return e.args.value.findIndex((n) => n === t);
|
|
16145
16145
|
case Q.INTERVAL:
|
|
16146
|
-
return t === e.value ?
|
|
16146
|
+
return t === e.value ? pe.VALUE : t === e.qualifier ? pe.QUALIFIER : -1;
|
|
16147
16147
|
case Q.INTERVAL_QUALIFIER:
|
|
16148
|
-
return t === e.start ?
|
|
16148
|
+
return t === e.start ? pe.START : t === e.end ? pe.END : -1;
|
|
16149
16149
|
case Q.EXPRESSION_LIST:
|
|
16150
|
-
return
|
|
16150
|
+
return pe.VALUE;
|
|
16151
16151
|
default:
|
|
16152
16152
|
return -1;
|
|
16153
16153
|
}
|
|
@@ -16194,7 +16194,7 @@ const tg = ["+", "-", "*", "/", "||"], ng = [
|
|
|
16194
16194
|
class rg {
|
|
16195
16195
|
// #endregion
|
|
16196
16196
|
constructor(e, n) {
|
|
16197
|
-
this.callStack = [], this._fields = [], this.markers = [], this._sdkFunctions = e.flatMap((r) => r.items), this._fields = n.profile ?
|
|
16197
|
+
this.callStack = [], this._fields = [], this.markers = [], this._sdkFunctions = e.flatMap((r) => r.items), this._fields = n.profile ? bu(n.profile) : [];
|
|
16198
16198
|
}
|
|
16199
16199
|
// #region Public Methods
|
|
16200
16200
|
/**
|
|
@@ -16294,7 +16294,7 @@ class rg {
|
|
|
16294
16294
|
ge(o, i.location, this.markers, !0);
|
|
16295
16295
|
return;
|
|
16296
16296
|
}
|
|
16297
|
-
|
|
16297
|
+
pu(a) && (a = "number"), r.has(a) || r.add(a);
|
|
16298
16298
|
}
|
|
16299
16299
|
}), r.size > 1) {
|
|
16300
16300
|
const i = Array.from(r), a = Le(_e.IncompatibleListDataType, {
|
|
@@ -16489,14 +16489,14 @@ class rg {
|
|
|
16489
16489
|
switch (e.type) {
|
|
16490
16490
|
case Q.CASE_EXPRESSION:
|
|
16491
16491
|
{
|
|
16492
|
-
const n =
|
|
16492
|
+
const n = be[e.type];
|
|
16493
16493
|
e.format === "simple" ? n.forEach((r) => {
|
|
16494
16494
|
const s = e[r];
|
|
16495
16495
|
s && (Array.isArray(s) ? s.forEach((i) => {
|
|
16496
16496
|
this.traverse(i);
|
|
16497
16497
|
}) : this.traverse(s));
|
|
16498
16498
|
}) : e.format === "searched" && n.forEach((r) => {
|
|
16499
|
-
if (r ===
|
|
16499
|
+
if (r === pe.OPERAND)
|
|
16500
16500
|
return;
|
|
16501
16501
|
const s = e[r];
|
|
16502
16502
|
s && (Array.isArray(s) ? s.forEach((i) => {
|
|
@@ -16506,13 +16506,13 @@ class rg {
|
|
|
16506
16506
|
}
|
|
16507
16507
|
break;
|
|
16508
16508
|
case Q.WHEN_CLAUSE:
|
|
16509
|
-
|
|
16509
|
+
be[e.type].forEach((r) => {
|
|
16510
16510
|
const s = e[r];
|
|
16511
16511
|
this.traverse(s);
|
|
16512
16512
|
});
|
|
16513
16513
|
break;
|
|
16514
16514
|
case Q.EXPRESSION_LIST:
|
|
16515
|
-
|
|
16515
|
+
be[e.type].forEach((r) => {
|
|
16516
16516
|
const s = e[r];
|
|
16517
16517
|
Array.isArray(s) ? s.forEach((i) => {
|
|
16518
16518
|
this.traverse(i);
|
|
@@ -16520,31 +16520,31 @@ class rg {
|
|
|
16520
16520
|
});
|
|
16521
16521
|
break;
|
|
16522
16522
|
case Q.UNARY_EXPRESSION:
|
|
16523
|
-
|
|
16523
|
+
be[e.type].forEach((r) => {
|
|
16524
16524
|
const s = e[r];
|
|
16525
16525
|
Array.isArray(s) && this.traverse(s);
|
|
16526
16526
|
});
|
|
16527
16527
|
break;
|
|
16528
16528
|
case Q.BINARY_EXPRESSION:
|
|
16529
|
-
|
|
16529
|
+
be[e.type].forEach((r) => {
|
|
16530
16530
|
const s = e[r];
|
|
16531
16531
|
this.traverse(s);
|
|
16532
16532
|
});
|
|
16533
16533
|
break;
|
|
16534
16534
|
case Q.FUNCTION:
|
|
16535
|
-
|
|
16535
|
+
be[e.type].forEach((r) => {
|
|
16536
16536
|
const s = e[r];
|
|
16537
16537
|
this.traverse(s);
|
|
16538
16538
|
});
|
|
16539
16539
|
break;
|
|
16540
16540
|
case Q.INTERVAL:
|
|
16541
|
-
|
|
16541
|
+
be[e.type].forEach((r) => {
|
|
16542
16542
|
const s = e[r];
|
|
16543
16543
|
this.traverse(s);
|
|
16544
16544
|
});
|
|
16545
16545
|
break;
|
|
16546
16546
|
case Q.INTERVAL_QUALIFIER:
|
|
16547
|
-
|
|
16547
|
+
be[e.type].forEach((r) => {
|
|
16548
16548
|
const s = e[r];
|
|
16549
16549
|
this.traverse(s);
|
|
16550
16550
|
});
|
|
@@ -16651,10 +16651,10 @@ class ig {
|
|
|
16651
16651
|
this._getCompletionsFromFunction(i, a, e);
|
|
16652
16652
|
break;
|
|
16653
16653
|
case "interval":
|
|
16654
|
-
if (a ===
|
|
16654
|
+
if (a === pe.QUALIFIER) {
|
|
16655
16655
|
this._suggestDatePeriods(e);
|
|
16656
16656
|
break;
|
|
16657
|
-
} else if (a ===
|
|
16657
|
+
} else if (a === pe.VALUE)
|
|
16658
16658
|
break;
|
|
16659
16659
|
break;
|
|
16660
16660
|
case "binary-expression":
|
|
@@ -16927,14 +16927,14 @@ class ig {
|
|
|
16927
16927
|
switch (e.type) {
|
|
16928
16928
|
case Q.CASE_EXPRESSION:
|
|
16929
16929
|
{
|
|
16930
|
-
const r =
|
|
16930
|
+
const r = be[e.type];
|
|
16931
16931
|
e.format === "simple" ? r.forEach((s) => {
|
|
16932
16932
|
const i = e[s];
|
|
16933
16933
|
i && (Array.isArray(i) ? i.forEach((a) => {
|
|
16934
16934
|
this.traverse(a, n);
|
|
16935
16935
|
}) : this.traverse(i, n));
|
|
16936
16936
|
}) : e.format === "searched" && r.forEach((s) => {
|
|
16937
|
-
if (s ===
|
|
16937
|
+
if (s === pe.OPERAND)
|
|
16938
16938
|
return;
|
|
16939
16939
|
const i = e[s];
|
|
16940
16940
|
i && (Array.isArray(i) ? i.forEach((a) => {
|
|
@@ -16944,44 +16944,44 @@ class ig {
|
|
|
16944
16944
|
}
|
|
16945
16945
|
break;
|
|
16946
16946
|
case Q.WHEN_CLAUSE:
|
|
16947
|
-
|
|
16947
|
+
be[e.type].forEach((s) => {
|
|
16948
16948
|
const i = e[s];
|
|
16949
16949
|
this.traverse(i, n);
|
|
16950
16950
|
});
|
|
16951
16951
|
break;
|
|
16952
16952
|
case Q.EXPRESSION_LIST:
|
|
16953
|
-
|
|
16953
|
+
be[e.type].forEach((s) => {
|
|
16954
16954
|
e[s].forEach((a) => {
|
|
16955
16955
|
this.traverse(a, n);
|
|
16956
16956
|
});
|
|
16957
16957
|
});
|
|
16958
16958
|
break;
|
|
16959
16959
|
case Q.UNARY_EXPRESSION:
|
|
16960
|
-
|
|
16960
|
+
be[e.type].forEach((s) => {
|
|
16961
16961
|
const i = e[s];
|
|
16962
16962
|
Array.isArray(i) && this.traverse(i, n);
|
|
16963
16963
|
});
|
|
16964
16964
|
break;
|
|
16965
16965
|
case Q.BINARY_EXPRESSION:
|
|
16966
|
-
|
|
16966
|
+
be[e.type].forEach((s) => {
|
|
16967
16967
|
const i = e[s];
|
|
16968
16968
|
this.traverse(i, n);
|
|
16969
16969
|
});
|
|
16970
16970
|
break;
|
|
16971
16971
|
case Q.FUNCTION:
|
|
16972
|
-
|
|
16972
|
+
be[e.type].forEach((s) => {
|
|
16973
16973
|
const i = e[s];
|
|
16974
16974
|
this.traverse(i, n);
|
|
16975
16975
|
});
|
|
16976
16976
|
break;
|
|
16977
16977
|
case Q.INTERVAL:
|
|
16978
|
-
|
|
16978
|
+
be[e.type].forEach((s) => {
|
|
16979
16979
|
const i = e[s];
|
|
16980
16980
|
this.traverse(i, n);
|
|
16981
16981
|
});
|
|
16982
16982
|
break;
|
|
16983
16983
|
case Q.INTERVAL_QUALIFIER:
|
|
16984
|
-
|
|
16984
|
+
be[e.type].forEach((s) => {
|
|
16985
16985
|
const i = e[s];
|
|
16986
16986
|
this.traverse(i, n);
|
|
16987
16987
|
});
|
|
@@ -17023,7 +17023,7 @@ class ag {
|
|
|
17023
17023
|
const i = this._getTextDocument(e);
|
|
17024
17024
|
if (!i)
|
|
17025
17025
|
return await Promise.resolve({ suggestions: [] });
|
|
17026
|
-
const a = i.getText(), o = await this.getApiDatabase(s), l = s.profile ?
|
|
17026
|
+
const a = i.getText(), o = await this.getApiDatabase(s), l = s.profile ? bu(s.profile) : [], h = await new ig(o, l).getCompletions({ range: n, modelContent: a, position: r });
|
|
17027
17027
|
return await Promise.resolve({ suggestions: h });
|
|
17028
17028
|
}
|
|
17029
17029
|
// async doFormat(modelId: string /*context: ApiContext*/): Promise<TextEdit[]> {
|
|
@@ -17044,7 +17044,7 @@ class ag {
|
|
|
17044
17044
|
const n = this._ctx.getMirrorModels();
|
|
17045
17045
|
for (const r of n)
|
|
17046
17046
|
if (r.uri.toString() === e)
|
|
17047
|
-
return
|
|
17047
|
+
return ps.create(e, this._languageId, r.version, r.getValue());
|
|
17048
17048
|
return null;
|
|
17049
17049
|
}
|
|
17050
17050
|
}
|
|
@@ -17056,16 +17056,16 @@ export {
|
|
|
17056
17056
|
Kt as a,
|
|
17057
17057
|
hg as b,
|
|
17058
17058
|
dg as c,
|
|
17059
|
-
|
|
17059
|
+
pg as d,
|
|
17060
17060
|
md as e,
|
|
17061
17061
|
Ac as f,
|
|
17062
|
-
|
|
17062
|
+
bm as g,
|
|
17063
17063
|
w as h,
|
|
17064
17064
|
_u as i,
|
|
17065
17065
|
fg as j,
|
|
17066
17066
|
mg as k,
|
|
17067
17067
|
wg as l,
|
|
17068
|
-
|
|
17068
|
+
bg as n,
|
|
17069
17069
|
oi as o,
|
|
17070
17070
|
ut as r,
|
|
17071
17071
|
Nu as s,
|