@arcgis/coding-components 4.30.0-next.29 → 4.30.0-next.30
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/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
- package/dist/arcgis-coding-components/index.esm.js +2 -2
- package/dist/arcgis-coding-components/{p-2262edb5.js → p-05407167.js} +2 -2
- package/dist/arcgis-coding-components/p-0e4fd488.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-eff2d3a4.js → p-1b04872b.js} +3 -3
- package/dist/arcgis-coding-components/{p-77ed71a8.js → p-305e6a27.js} +3 -3
- package/dist/arcgis-coding-components/{p-24adbb7c.js → p-38778060.js} +3 -3
- package/dist/arcgis-coding-components/{p-9a00ddea.js → p-3e84bed2.js} +2 -2
- package/dist/arcgis-coding-components/{p-23baf361.js → p-50cbdef2.js} +2 -2
- package/dist/arcgis-coding-components/p-51032f3c.js +68 -0
- package/dist/arcgis-coding-components/{p-9f9cd0b9.js → p-61a3a32b.js} +2 -2
- package/dist/arcgis-coding-components/{p-6df29b26.js → p-7f41598e.js} +2 -2
- package/dist/arcgis-coding-components/{p-9a6e0c8c.js → p-a09a2021.js} +1 -1
- package/dist/arcgis-coding-components/{p-622b32b2.js → p-f2b266c1.js} +1 -1
- package/dist/cjs/{arcade-defaults-5269f6ab.js → arcade-defaults-18a60f03.js} +663 -337
- package/dist/cjs/{arcade-mode-85df9043.js → arcade-mode-c53bfc0e.js} +45 -51
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +366 -261
- package/dist/cjs/arcgis-coding-components.cjs.js +2 -2
- package/dist/cjs/{css-894bed01.js → css-56924b29.js} +1 -1
- package/dist/cjs/{cssMode-0fd626db.js → cssMode-ea630257.js} +3 -3
- package/dist/cjs/{html-64719fae.js → html-3d953aa2.js} +3 -3
- package/dist/cjs/{htmlMode-ad637d19.js → htmlMode-f3da6666.js} +3 -3
- package/dist/cjs/{index-994ea295.js → index-084a0845.js} +1 -1
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{javascript-72aed55a.js → javascript-470dd761.js} +4 -4
- package/dist/cjs/{jsonMode-b98b4ca9.js → jsonMode-f2bad76f.js} +3 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{tsMode-7b613436.js → tsMode-4dbfa911.js} +3 -3
- package/dist/cjs/{typescript-585a7543.js → typescript-8fb2fceb.js} +3 -3
- package/dist/components/arcade-api.js +6 -6
- package/dist/components/arcade-contribution.js +9 -10
- package/dist/components/arcade-defaults.js +58 -58
- package/dist/components/arcade-mode.js +44 -50
- package/dist/components/arcade-results.js +27 -27
- package/dist/components/arcade-suggestions.js +4 -4
- package/dist/components/arcade-variables.js +5 -5
- package/dist/components/arcgis-arcade-api.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +24 -24
- package/dist/components/arcgis-arcade-results.js +1 -1
- package/dist/components/arcgis-arcade-suggestions.js +1 -1
- package/dist/components/arcgis-arcade-variables.js +1 -1
- package/dist/components/arcgis-assets.d.ts +1 -1
- package/dist/components/arcgis-assets.js +1 -1
- package/dist/components/arcgis-code-editor.js +1 -1
- package/dist/components/{chunk-MRROWYKQ.js → chunk-FQ4KFKVY.js} +305 -199
- package/dist/components/code-editor.js +13 -13
- package/dist/components/fields.js +2 -62
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +387 -3
- package/dist/components/markdown.js +3 -3
- package/dist/components/utilities.js +3 -3
- package/dist/esm/{arcade-defaults-87a86d11.js → arcade-defaults-3f0e1c43.js} +650 -326
- package/dist/esm/{arcade-mode-45fc67da.js → arcade-mode-5aef1763.js} +45 -51
- package/dist/esm/arcgis-arcade-api_6.entry.js +419 -314
- package/dist/esm/arcgis-coding-components.js +3 -3
- package/dist/esm/{css-08f38d73.js → css-4c710cf8.js} +1 -1
- package/dist/esm/{cssMode-ab8f5063.js → cssMode-54cea919.js} +3 -3
- package/dist/esm/{html-af497230.js → html-3908d2da.js} +3 -3
- package/dist/esm/{htmlMode-da083262.js → htmlMode-2fa6e6a4.js} +3 -3
- package/dist/esm/{index-18371544.js → index-06d390be.js} +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/{javascript-5e6afc56.js → javascript-1d86322d.js} +4 -4
- package/dist/esm/{jsonMode-71281d55.js → jsonMode-27eb619c.js} +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{tsMode-98a33527.js → tsMode-9a8f9af2.js} +3 -3
- package/dist/esm/{typescript-1dcc1a21.js → typescript-7a26367c.js} +3 -3
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/types/utils/arcade-monaco/arcade-language-features.d.ts +1 -1
- package/package.json +9 -9
- package/dist/arcgis-coding-components/p-0dc0bb8a.js +0 -6
- package/dist/arcgis-coding-components/p-1cdc731d.js +0 -6
- package/dist/arcgis-coding-components/p-62e5bb1a.js +0 -6
- package/dist/arcgis-coding-components/p-9dc57c40.entry.js +0 -6
- package/dist/arcgis-coding-components/p-e2200653.js +0 -68
- package/dist/cjs/Accessor-U5QUEX2T-e8f5e012.js +0 -1249
- package/dist/cjs/chunk-CQC6TXVI-eb50b11c.js +0 -1286
- package/dist/cjs/decorators-5KFQ5FDO-45eeb3a7.js +0 -120
- package/dist/components/Accessor-U5QUEX2T.js +0 -1247
- package/dist/components/chunk-CQC6TXVI.js +0 -1257
- package/dist/components/decorators-5KFQ5FDO.js +0 -109
- package/dist/esm/Accessor-U5QUEX2T-0dfda39e.js +0 -1247
- package/dist/esm/chunk-CQC6TXVI-f8d27710.js +0 -1257
- package/dist/esm/decorators-5KFQ5FDO-7ae08fab.js +0 -109
- /package/dist/types/data/{actions-runner-2 → actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/arcade-editor/arcade-editor.stories.d.ts +0 -0
- /package/dist/types/data/{actions-runner-2 → actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/code-editor/code-editor.stories.d.ts +0 -0
- /package/dist/types/data/{actions-runner-2 → actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/reference/stories/arcade-editor.stories.d.ts +0 -0
|
@@ -1,1257 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.29
|
|
5
|
-
*/
|
|
6
|
-
// ../../../node_modules/@arcgis/core/core/has.js
|
|
7
|
-
var e$3;
|
|
8
|
-
function has(a3) {
|
|
9
|
-
return "function" == typeof e$3[a3] ? e$3[a3] = e$3[a3](globalThis) : e$3[a3];
|
|
10
|
-
}
|
|
11
|
-
e$3 = globalThis.dojoConfig?.has || globalThis.esriConfig?.has ? { ...globalThis.dojoConfig?.has, ...globalThis.esriConfig?.has } : {}, has.add = (a3, d, o4, r3) => ((r3 || void 0 === e$3[a3]) && (e$3[a3] = d), o4 && has(a3)), has.cache = e$3, has.add("big-integer-warning-enabled", true), has.add("esri-deprecation-warnings", true), has.add("esri-tests-disable-screenshots", false), has.add("esri-tests-use-full-window", false), has.add("esri-tests-post-to-influx", true), (() => {
|
|
12
|
-
has.add("host-webworker", void 0 !== globalThis.WorkerGlobalScope && self instanceof globalThis.WorkerGlobalScope);
|
|
13
|
-
const e5 = "undefined" != typeof window && "undefined" != typeof location && "undefined" != typeof document && window.location === location && window.document === document;
|
|
14
|
-
if (has.add("host-browser", e5), has.add("host-node", "object" == typeof globalThis.process && globalThis.process.versions?.node && globalThis.process.versions.v8), has.add("dom", e5), has("host-browser")) {
|
|
15
|
-
const e6 = navigator, a3 = e6.userAgent, d = e6.appVersion, o4 = parseFloat(d);
|
|
16
|
-
if (has.add("wp", parseFloat(a3.split("Windows Phone")[1]) || void 0), has.add("msapp", parseFloat(a3.split("MSAppHost/")[1]) || void 0), has.add("khtml", d.includes("Konqueror") ? o4 : void 0), has.add("edge", parseFloat(a3.split("Edge/")[1]) || void 0), has.add("opr", parseFloat(a3.split("OPR/")[1]) || void 0), has.add("webkit", !has("wp") && !has("edge") && parseFloat(a3.split("WebKit/")[1]) || void 0), has.add("chrome", !has("edge") && !has("opr") && parseFloat(a3.split("Chrome/")[1]) || void 0), has.add("android", !has("wp") && parseFloat(a3.split("Android ")[1]) || void 0), has.add("safari", !d.includes("Safari") || has("wp") || has("chrome") || has("android") || has("edge") || has("opr") ? void 0 : parseFloat(d.split("Version/")[1])), has.add("mac", d.includes("Macintosh")), !has("wp") && /(iPhone|iPod|iPad)/.test(a3)) {
|
|
17
|
-
const e7 = RegExp.$1.replace(/P/, "p"), d2 = /OS ([\d_]+)/.test(a3) ? RegExp.$1 : "1", o5 = parseFloat(d2.replace(/_/, ".").replaceAll("_", ""));
|
|
18
|
-
has.add(e7, o5), has.add("ios", o5);
|
|
19
|
-
}
|
|
20
|
-
has("webkit") || (!a3.includes("Gecko") || has("wp") || has("khtml") || has("edge") || has.add("mozilla", o4), has("mozilla") && has.add("ff", parseFloat(a3.split("Firefox/")[1] || a3.split("Minefield/")[1]) || void 0));
|
|
21
|
-
}
|
|
22
|
-
})(), (() => {
|
|
23
|
-
if (globalThis.navigator) {
|
|
24
|
-
const e5 = navigator.userAgent, a3 = /Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e5), d = /iPhone/i.test(e5);
|
|
25
|
-
a3 && has.add("esri-mobile", a3), d && has.add("esri-iPhone", d), has.add("esri-geolocation", !!navigator.geolocation);
|
|
26
|
-
}
|
|
27
|
-
has.add("esri-wasm", "WebAssembly" in globalThis), has.add("esri-performance-mode-frames-between-render", 20), has.add("esri-force-performance-mode", false), has.add("esri-shared-array-buffer", () => {
|
|
28
|
-
const e5 = "SharedArrayBuffer" in globalThis, a3 = false === globalThis.crossOriginIsolated;
|
|
29
|
-
return e5 && !a3;
|
|
30
|
-
}), has.add("wasm-simd", () => {
|
|
31
|
-
const e5 = [0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 96, 0, 1, 123, 3, 2, 1, 0, 10, 10, 1, 8, 0, 65, 0, 253, 15, 253, 98, 11];
|
|
32
|
-
return WebAssembly.validate(new Uint8Array(e5));
|
|
33
|
-
}), has.add("esri-atomics", "Atomics" in globalThis), has.add("esri-workers", "Worker" in globalThis), has.add("web-feat:cache", "caches" in globalThis), has.add("esri-workers-arraybuffer-transfer", !has("safari") || Number(has("safari")) >= 12), has.add("workers-pool-size", 8), has.add("featurelayer-simplify-thresholds", [0.5, 0.5, 0.5, 0.5]), has.add("featurelayer-simplify-payload-size-factors", [1, 1, 4]), has.add("featurelayer-fast-triangulation-enabled", true), has.add("featurelayer-animation-enabled", true), has.add("featurelayer-snapshot-enabled", true), has.add("featurelayer-snapshot-point-min-threshold", 8e4), has.add("featurelayer-snapshot-point-max-threshold", 4e5), has.add("featurelayer-snapshot-point-coverage", 0.1), has.add("featurelayer-query-max-depth", 4), has.add("featurelayer-query-pausing-enabled", false), has.add("hittest-2d-mobile-tolerance", 3), has.add("hittest-2d-desktop-tolerance", 1), has.add("hittest-2d-small-symbol-tolerance", 3), has.add("hittest-2d-small-symbol-tolerance-threshold", 3), has.add("featurelayer-advanced-symbols", false), has.add("featurelayer-pbf", true), has.add("featurelayer-pbf-statistics", false), has.add("feature-layers-workers", true), has.add("feature-polyline-generalization-factor", 1), has.add("mapview-transitions-duration", 200), has.add("mapview-srswitch-adjust-rotation-scale-threshold", 24e6), has.add("mapserver-pbf-version-support", 10.81), has.add("mapservice-popup-identify-max-tolerance", 20), has("host-webworker") || has("host-browser") && (has.add("esri-csp-restrictions", () => {
|
|
34
|
-
try {
|
|
35
|
-
new Function();
|
|
36
|
-
} catch {
|
|
37
|
-
return true;
|
|
38
|
-
}
|
|
39
|
-
return false;
|
|
40
|
-
}), has.add("esri-image-decode", () => {
|
|
41
|
-
if ("decode" in new Image()) {
|
|
42
|
-
const e5 = new Image();
|
|
43
|
-
return e5.src = 'data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>', void e5.decode().then(() => {
|
|
44
|
-
has.add("esri-image-decode", true, true, true);
|
|
45
|
-
}).catch(() => {
|
|
46
|
-
has.add("esri-image-decode", false, true, true);
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
return false;
|
|
50
|
-
}), has.add("esri-url-encodes-apostrophe", () => {
|
|
51
|
-
const e5 = window.document.createElement("a");
|
|
52
|
-
return e5.href = "?'", e5.href.includes("?%27");
|
|
53
|
-
}));
|
|
54
|
-
})();
|
|
55
|
-
var v$2 = class {
|
|
56
|
-
constructor() {
|
|
57
|
-
this.last = 0;
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
var b$2 = new v$2();
|
|
61
|
-
function S$1(n2, t5, e5, r3) {
|
|
62
|
-
r3 = r3 || b$2;
|
|
63
|
-
const o4 = Math.max(0, r3.last - 10);
|
|
64
|
-
for (let u4 = o4; u4 < e5; ++u4)
|
|
65
|
-
if (n2[u4] === t5)
|
|
66
|
-
return r3.last = u4, u4;
|
|
67
|
-
const l2 = Math.min(o4, e5);
|
|
68
|
-
for (let u4 = 0; u4 < l2; ++u4)
|
|
69
|
-
if (n2[u4] === t5)
|
|
70
|
-
return r3.last = u4, u4;
|
|
71
|
-
return -1;
|
|
72
|
-
}
|
|
73
|
-
var I$1 = /* @__PURE__ */ new Set();
|
|
74
|
-
function j$3(n2, t5, e5 = n2.length, r3 = t5.length, o4, l2) {
|
|
75
|
-
if (0 === r3 || 0 === e5)
|
|
76
|
-
return e5;
|
|
77
|
-
I$1.clear();
|
|
78
|
-
for (let f4 = 0; f4 < r3; ++f4)
|
|
79
|
-
I$1.add(t5[f4]);
|
|
80
|
-
o4 = o4 || b$2;
|
|
81
|
-
const u4 = Math.max(0, o4.last - 10);
|
|
82
|
-
for (let f4 = u4; f4 < e5; ++f4)
|
|
83
|
-
if (I$1.has(n2[f4]) && (l2?.push(n2[f4]), I$1.delete(n2[f4]), n2[f4] = n2[e5 - 1], --e5, --f4, 0 === I$1.size || 0 === e5))
|
|
84
|
-
return I$1.clear(), e5;
|
|
85
|
-
for (let f4 = 0; f4 < u4; ++f4)
|
|
86
|
-
if (I$1.has(n2[f4]) && (l2?.push(n2[f4]), I$1.delete(n2[f4]), n2[f4] = n2[e5 - 1], --e5, --f4, 0 === I$1.size || 0 === e5))
|
|
87
|
-
return I$1.clear(), e5;
|
|
88
|
-
return I$1.clear(), e5;
|
|
89
|
-
}
|
|
90
|
-
function O$1(n2, t5) {
|
|
91
|
-
const e5 = n2.indexOf(t5);
|
|
92
|
-
return -1 !== e5 ? (n2.splice(e5, 1), t5) : null;
|
|
93
|
-
}
|
|
94
|
-
function o3$1(n2) {
|
|
95
|
-
return "Int8Array" === n2?.constructor?.name;
|
|
96
|
-
}
|
|
97
|
-
function u3$1(n2) {
|
|
98
|
-
return "Uint8Array" === n2?.constructor?.name;
|
|
99
|
-
}
|
|
100
|
-
function e4$1(n2) {
|
|
101
|
-
return "Uint8ClampedArray" === n2?.constructor?.name;
|
|
102
|
-
}
|
|
103
|
-
function c3$1(n2) {
|
|
104
|
-
return "Int16Array" === n2?.constructor?.name;
|
|
105
|
-
}
|
|
106
|
-
function i3$1(n2) {
|
|
107
|
-
return "Uint16Array" === n2?.constructor?.name;
|
|
108
|
-
}
|
|
109
|
-
function a2$2(n2) {
|
|
110
|
-
return "Int32Array" === n2?.constructor?.name;
|
|
111
|
-
}
|
|
112
|
-
function f3$1(n2) {
|
|
113
|
-
return "Uint32Array" === n2?.constructor?.name;
|
|
114
|
-
}
|
|
115
|
-
function s2$2(n2) {
|
|
116
|
-
return "Float32Array" === n2?.constructor?.name;
|
|
117
|
-
}
|
|
118
|
-
function m2$2(n2) {
|
|
119
|
-
return "Float64Array" === n2?.constructor?.name;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
function a2$1(t) {
|
|
123
|
-
if (!t || "object" != typeof t || "function" == typeof t)
|
|
124
|
-
return t;
|
|
125
|
-
const n = O(t);
|
|
126
|
-
if (null != n)
|
|
127
|
-
return n;
|
|
128
|
-
if (y$3(t))
|
|
129
|
-
return t.clone();
|
|
130
|
-
if (m2$1(t))
|
|
131
|
-
return t.map(a2$1);
|
|
132
|
-
if (b$1(t))
|
|
133
|
-
return t.clone();
|
|
134
|
-
const e2 = {};
|
|
135
|
-
for (const r of Object.getOwnPropertyNames(t))
|
|
136
|
-
e2[r] = a2$1(t[r]);
|
|
137
|
-
return e2;
|
|
138
|
-
}
|
|
139
|
-
function y$3(t) {
|
|
140
|
-
return "function" == typeof t.clone;
|
|
141
|
-
}
|
|
142
|
-
function m2$1(t) {
|
|
143
|
-
return "function" == typeof t.map && "function" == typeof t.forEach;
|
|
144
|
-
}
|
|
145
|
-
function b$1(t) {
|
|
146
|
-
return "function" == typeof t.notifyChange && "function" == typeof t.watch;
|
|
147
|
-
}
|
|
148
|
-
function O(t) {
|
|
149
|
-
if (o3$1(t) || u3$1(t) || e4$1(t) || c3$1(t) || i3$1(t) || a2$2(t) || f3$1(t) || s2$2(t) || m2$2(t))
|
|
150
|
-
return t.slice();
|
|
151
|
-
if (t instanceof Date)
|
|
152
|
-
return new Date(t.getTime());
|
|
153
|
-
if (t instanceof ArrayBuffer) {
|
|
154
|
-
return t.slice(0, t.byteLength);
|
|
155
|
-
}
|
|
156
|
-
if (t instanceof Map) {
|
|
157
|
-
const n = /* @__PURE__ */ new Map();
|
|
158
|
-
for (const [e2, r] of t)
|
|
159
|
-
n.set(e2, a2$1(r));
|
|
160
|
-
return n;
|
|
161
|
-
}
|
|
162
|
-
if (t instanceof Set) {
|
|
163
|
-
const n = /* @__PURE__ */ new Set();
|
|
164
|
-
for (const e2 of t)
|
|
165
|
-
n.add(a2$1(e2));
|
|
166
|
-
return n;
|
|
167
|
-
}
|
|
168
|
-
return null;
|
|
169
|
-
}
|
|
170
|
-
function j$2(t, n) {
|
|
171
|
-
return t === n || "number" == typeof t && isNaN(t) && "number" == typeof n && isNaN(n) || "function" == typeof t?.getTime && "function" == typeof n?.getTime && t.getTime() === n.getTime() || false;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
// ../../../node_modules/@arcgis/core/core/object.js
|
|
175
|
-
function n$1(r2, n2, t2 = false) {
|
|
176
|
-
return i$3(r2, n2, t2);
|
|
177
|
-
}
|
|
178
|
-
function t$1(r2, n2) {
|
|
179
|
-
if (null != n2)
|
|
180
|
-
return n2[r2] || e$2(r2.split("."), false, n2);
|
|
181
|
-
}
|
|
182
|
-
function o$1(r2, n2, t2) {
|
|
183
|
-
const o2 = r2.split("."), i2 = o2.pop(), u = e$2(o2, true, t2);
|
|
184
|
-
u && i2 && (u[i2] = n2);
|
|
185
|
-
}
|
|
186
|
-
function e$2(r2, n2, t2) {
|
|
187
|
-
let o2 = t2;
|
|
188
|
-
for (const e3 of r2) {
|
|
189
|
-
if (null == o2)
|
|
190
|
-
return;
|
|
191
|
-
if (!(e3 in o2)) {
|
|
192
|
-
if (!n2)
|
|
193
|
-
return;
|
|
194
|
-
o2[e3] = {};
|
|
195
|
-
}
|
|
196
|
-
o2 = o2[e3];
|
|
197
|
-
}
|
|
198
|
-
return o2;
|
|
199
|
-
}
|
|
200
|
-
function i$3(n2, t2, o2) {
|
|
201
|
-
return t2 ? Object.keys(t2).reduce((n3, e3) => {
|
|
202
|
-
let u = n3[e3], c2 = t2[e3];
|
|
203
|
-
return u === c2 ? n3 : void 0 === u ? (n3[e3] = a2$1(c2), n3) : (Array.isArray(c2) || Array.isArray(n3) ? (u = u ? Array.isArray(u) ? n3[e3] = u.concat() : n3[e3] = [u] : n3[e3] = [], c2 && (Array.isArray(c2) || (c2 = [c2]), o2 ? c2.forEach((r2) => {
|
|
204
|
-
u.includes(r2) || u.push(r2);
|
|
205
|
-
}) : n3[e3] = c2.concat())) : c2 && "object" == typeof c2 ? n3[e3] = i$3(u, c2, o2) : n3.hasOwnProperty(e3) && !t2.hasOwnProperty(e3) || (n3[e3] = c2), n3);
|
|
206
|
-
}, n2 || {}) : n2;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
// ../../../node_modules/@arcgis/core/support/revision.js
|
|
210
|
-
var e2$2 = "20240408";
|
|
211
|
-
|
|
212
|
-
// ../../../node_modules/@arcgis/core/config.js
|
|
213
|
-
var r$3 = { apiKey: void 0, 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: true, portalUrl: "https://www.arcgis.com", 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: [], maxUrlLength: 2e3, priority: "high", proxyRules: [], proxyUrl: null, timeout: 6e4, trustedServers: [], useIdentity: true }, log: { interceptors: [], level: null } };
|
|
214
|
-
if (globalThis.esriConfig && (n$1(r$3, globalThis.esriConfig, true), delete r$3.has), !r$3.assetsPath) {
|
|
215
|
-
{
|
|
216
|
-
const e3 = "4.30.0";
|
|
217
|
-
r$3.assetsPath = `https://cdn.jsdelivr.net/npm/@arcgis/core@${e3}-next.${e2$2}/assets`;
|
|
218
|
-
}
|
|
219
|
-
r$3.defaultAssetsPath = r$3.assetsPath;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
function u$3(t2) {
|
|
223
|
-
let e2 = 0;
|
|
224
|
-
for (let n3 = 0; n3 < t2.length; n3++)
|
|
225
|
-
e2 = (e2 << 5) - e2 + t2.charCodeAt(n3), e2 |= 0;
|
|
226
|
-
return e2;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
// ../../../node_modules/@arcgis/core/core/Logger.js
|
|
230
|
-
var r3 = { info: 0, warn: 1, error: 2, none: 3 };
|
|
231
|
-
var n2$2 = class _n {
|
|
232
|
-
constructor(e2) {
|
|
233
|
-
this.level = null, this._module = "", this._parent = null, this.writer = null, this._loggedMessages = { error: /* @__PURE__ */ new Map(), warn: /* @__PURE__ */ new Map(), info: /* @__PURE__ */ new Map() }, null != e2.level && (this.level = e2.level), null != e2.writer && (this.writer = e2.writer), this._module = e2.module, _n._loggers.set(this.module, this);
|
|
234
|
-
const t2 = this.module.lastIndexOf(".");
|
|
235
|
-
-1 !== t2 && (this._parent = _n.getLogger(this.module.slice(0, t2)));
|
|
236
|
-
}
|
|
237
|
-
get module() {
|
|
238
|
-
return this._module;
|
|
239
|
-
}
|
|
240
|
-
get parent() {
|
|
241
|
-
return this._parent;
|
|
242
|
-
}
|
|
243
|
-
error(...e2) {
|
|
244
|
-
this._log("error", "always", ...e2);
|
|
245
|
-
}
|
|
246
|
-
warn(...e2) {
|
|
247
|
-
this._log("warn", "always", ...e2);
|
|
248
|
-
}
|
|
249
|
-
info(...e2) {
|
|
250
|
-
this._log("info", "always", ...e2);
|
|
251
|
-
}
|
|
252
|
-
errorOnce(...e2) {
|
|
253
|
-
this._log("error", "once", ...e2);
|
|
254
|
-
}
|
|
255
|
-
warnOnce(...e2) {
|
|
256
|
-
this._log("warn", "once", ...e2);
|
|
257
|
-
}
|
|
258
|
-
infoOnce(...e2) {
|
|
259
|
-
this._log("info", "once", ...e2);
|
|
260
|
-
}
|
|
261
|
-
errorOncePerTick(...e2) {
|
|
262
|
-
this._log("error", "oncePerTick", ...e2);
|
|
263
|
-
}
|
|
264
|
-
warnOncePerTick(...e2) {
|
|
265
|
-
this._log("warn", "oncePerTick", ...e2);
|
|
266
|
-
}
|
|
267
|
-
infoOncePerTick(...e2) {
|
|
268
|
-
this._log("info", "oncePerTick", ...e2);
|
|
269
|
-
}
|
|
270
|
-
get test() {
|
|
271
|
-
const e2 = this;
|
|
272
|
-
return { loggedMessages: e2._loggedMessages, clearLoggedWarnings: () => e2._loggedMessages.warn.clear() };
|
|
273
|
-
}
|
|
274
|
-
static get test() {
|
|
275
|
-
return { resetLoggers(e2 = /* @__PURE__ */ new Map()) {
|
|
276
|
-
const t2 = _n._loggers;
|
|
277
|
-
return _n._loggers = e2, t2;
|
|
278
|
-
}, set throttlingDisabled(e2) {
|
|
279
|
-
_n._throttlingDisabled = e2;
|
|
280
|
-
} };
|
|
281
|
-
}
|
|
282
|
-
static getLogger(e2) {
|
|
283
|
-
return e2 = "string" != typeof e2 ? e2.declaredClass : e2, _n._loggers.get(e2) || new _n({ module: e2 });
|
|
284
|
-
}
|
|
285
|
-
_log(t2, r4, ...o3) {
|
|
286
|
-
if (!this._matchLevel(t2))
|
|
287
|
-
return;
|
|
288
|
-
if ("always" !== r4 && !_n._throttlingDisabled) {
|
|
289
|
-
const e2 = s$2(o3), i2 = this._loggedMessages[t2].get(e2);
|
|
290
|
-
if ("once" === r4 && null != i2 || "oncePerTick" === r4 && i2 && i2 >= _n._tickCounter)
|
|
291
|
-
return;
|
|
292
|
-
this._loggedMessages[t2].set(e2, _n._tickCounter), _n._scheduleTickCounterIncrement();
|
|
293
|
-
}
|
|
294
|
-
for (const n3 of r$3.log.interceptors)
|
|
295
|
-
if (n3(t2, this.module, ...o3))
|
|
296
|
-
return;
|
|
297
|
-
this._inheritedWriter()(t2, this.module, ...o3);
|
|
298
|
-
}
|
|
299
|
-
_parentWithMember(e2, t2) {
|
|
300
|
-
let r4 = this;
|
|
301
|
-
for (; null != r4; ) {
|
|
302
|
-
const t3 = r4[e2];
|
|
303
|
-
if (null != t3)
|
|
304
|
-
return t3;
|
|
305
|
-
r4 = r4.parent;
|
|
306
|
-
}
|
|
307
|
-
return t2;
|
|
308
|
-
}
|
|
309
|
-
_inheritedWriter() {
|
|
310
|
-
return this._parentWithMember("writer", o2$2);
|
|
311
|
-
}
|
|
312
|
-
_matchLevel(t2) {
|
|
313
|
-
const n3 = r$3.log.level || "warn";
|
|
314
|
-
return r3[this._parentWithMember("level", n3)] <= r3[t2];
|
|
315
|
-
}
|
|
316
|
-
static _scheduleTickCounterIncrement() {
|
|
317
|
-
_n._tickCounterScheduled || (_n._tickCounterScheduled = true, Promise.resolve().then(() => {
|
|
318
|
-
_n._tickCounter++, _n._tickCounterScheduled = false;
|
|
319
|
-
}));
|
|
320
|
-
}
|
|
321
|
-
};
|
|
322
|
-
function o2$2(e2, t2, ...r4) {
|
|
323
|
-
console[e2](`[${t2}]`, ...r4);
|
|
324
|
-
}
|
|
325
|
-
function s$2(...e2) {
|
|
326
|
-
const r4 = (e3, t2) => "object" != typeof t2 || Array.isArray(t2) ? t2 : "[Object]";
|
|
327
|
-
return u$3(JSON.stringify(e2, r4));
|
|
328
|
-
}
|
|
329
|
-
n2$2._loggers = /* @__PURE__ */ new Map(), n2$2._tickCounter = 0, n2$2._tickCounterScheduled = false, n2$2._throttlingDisabled = false;
|
|
330
|
-
|
|
331
|
-
function r$2(n3, t3, r3) {
|
|
332
|
-
const e = n3.get(t3);
|
|
333
|
-
if (void 0 !== e)
|
|
334
|
-
return e;
|
|
335
|
-
const o3 = r3();
|
|
336
|
-
return n3.set(t3, o3), o3;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
// ../../../node_modules/@arcgis/core/core/accessorSupport/ensureType.js
|
|
340
|
-
var r2$1 = () => n2$2.getLogger("esri.core.accessorSupport.ensureTypes");
|
|
341
|
-
function t2$1(e) {
|
|
342
|
-
return null == e ? e : new Date(e);
|
|
343
|
-
}
|
|
344
|
-
function o2$1(e) {
|
|
345
|
-
return null == e ? e : !!e;
|
|
346
|
-
}
|
|
347
|
-
function u$2(e) {
|
|
348
|
-
return null == e ? e : e.toString();
|
|
349
|
-
}
|
|
350
|
-
function a(e) {
|
|
351
|
-
return null == e ? e : (e = parseFloat(e), isNaN(e) ? 0 : e);
|
|
352
|
-
}
|
|
353
|
-
function s$1(e) {
|
|
354
|
-
return null == e ? e : Math.round(parseFloat(e));
|
|
355
|
-
}
|
|
356
|
-
function i$2(e) {
|
|
357
|
-
return e?.constructor && void 0 !== e.constructor.__accessorMetadata__;
|
|
358
|
-
}
|
|
359
|
-
function c$1(e, n3) {
|
|
360
|
-
return null != n3 && e && !(n3 instanceof e);
|
|
361
|
-
}
|
|
362
|
-
function l$1(e) {
|
|
363
|
-
return e && "isCollection" in e;
|
|
364
|
-
}
|
|
365
|
-
function f$1(e) {
|
|
366
|
-
return e?.Type ? "function" == typeof e.Type ? e.Type : e.Type.base : null;
|
|
367
|
-
}
|
|
368
|
-
function p$1(e, n3) {
|
|
369
|
-
if (!n3?.constructor || !l$1(n3.constructor))
|
|
370
|
-
return y$2(e, n3) ? n3 : new e(n3);
|
|
371
|
-
const r3 = f$1(e.prototype.itemType), t3 = f$1(n3.constructor.prototype.itemType);
|
|
372
|
-
return r3 ? t3 ? r3 === t3 ? n3 : r3.prototype.isPrototypeOf(t3.prototype) ? new e(n3) : (y$2(e, n3), n3) : new e(n3) : n3;
|
|
373
|
-
}
|
|
374
|
-
function y$2(e, n3) {
|
|
375
|
-
return !!i$2(n3) && (r2$1().error("Accessor#set", "Assigning an instance of '" + (n3.declaredClass || "unknown") + "' which is not a subclass of '" + g$1(e) + "'"), true);
|
|
376
|
-
}
|
|
377
|
-
function v$1(e, n3) {
|
|
378
|
-
return null == n3 ? n3 : l$1(e) ? p$1(e, n3) : c$1(e, n3) ? y$2(e, n3) ? n3 : new e(n3) : n3;
|
|
379
|
-
}
|
|
380
|
-
function g$1(e) {
|
|
381
|
-
return e?.prototype?.declaredClass || "unknown";
|
|
382
|
-
}
|
|
383
|
-
var h$1 = /* @__PURE__ */ new WeakMap();
|
|
384
|
-
function m$1(e) {
|
|
385
|
-
switch (e) {
|
|
386
|
-
case Number:
|
|
387
|
-
return a;
|
|
388
|
-
case T:
|
|
389
|
-
return s$1;
|
|
390
|
-
case Boolean:
|
|
391
|
-
return o2$1;
|
|
392
|
-
case String:
|
|
393
|
-
return u$2;
|
|
394
|
-
case Date:
|
|
395
|
-
return t2$1;
|
|
396
|
-
default:
|
|
397
|
-
return r$2(h$1, e, () => v$1.bind(null, e));
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
function d$1(e, n3) {
|
|
401
|
-
const r3 = m$1(e);
|
|
402
|
-
return 1 === arguments.length ? r3 : r3(n3);
|
|
403
|
-
}
|
|
404
|
-
function b(e, n3, r3) {
|
|
405
|
-
return 1 === arguments.length ? b.bind(null, e) : n3 ? Array.isArray(n3) ? n3.map((n4) => e(n4, r3)) : [e(n3, r3)] : n3;
|
|
406
|
-
}
|
|
407
|
-
function w(e, n3) {
|
|
408
|
-
return 1 === arguments.length ? b((n4) => d$1(e, n4)) : b((n4) => d$1(e, n4), n3);
|
|
409
|
-
}
|
|
410
|
-
function A$1(e, n3, r3) {
|
|
411
|
-
return 0 !== n3 && Array.isArray(r3) ? r3.map((r4) => A$1(e, n3 - 1, r4)) : e(r3);
|
|
412
|
-
}
|
|
413
|
-
function $(e, n3, r3) {
|
|
414
|
-
if (2 === arguments.length)
|
|
415
|
-
return (r4) => $(e, n3, r4);
|
|
416
|
-
if (!r3)
|
|
417
|
-
return r3;
|
|
418
|
-
r3 = A$1(e, n3, r3);
|
|
419
|
-
let t3 = n3, o3 = r3;
|
|
420
|
-
for (; t3 > 0 && Array.isArray(o3); )
|
|
421
|
-
t3--, o3 = o3[0];
|
|
422
|
-
if (void 0 !== o3)
|
|
423
|
-
for (let u2 = 0; u2 < t3; u2++)
|
|
424
|
-
r3 = [r3];
|
|
425
|
-
return r3;
|
|
426
|
-
}
|
|
427
|
-
function j$1(e, n3, r3) {
|
|
428
|
-
return 2 === arguments.length ? $((n4) => d$1(e, n4), n3) : $((n4) => d$1(e, n4), n3, r3);
|
|
429
|
-
}
|
|
430
|
-
function k(e) {
|
|
431
|
-
return !!Array.isArray(e) && !e.some((n3) => {
|
|
432
|
-
const r3 = typeof n3;
|
|
433
|
-
return !("string" === r3 || "number" === r3 || "function" === r3 && e.length > 1);
|
|
434
|
-
});
|
|
435
|
-
}
|
|
436
|
-
function M(e, n3) {
|
|
437
|
-
if (2 === arguments.length)
|
|
438
|
-
return M(e).call(null, n3);
|
|
439
|
-
const t3 = /* @__PURE__ */ new Set(), o3 = e.filter((e2) => "function" != typeof e2), u2 = e.filter((e2) => "function" == typeof e2);
|
|
440
|
-
for (const r3 of e)
|
|
441
|
-
"string" != typeof r3 && "number" != typeof r3 || t3.add(r3);
|
|
442
|
-
let a2 = null, s2 = null;
|
|
443
|
-
return (e2, n4) => {
|
|
444
|
-
if (null == e2)
|
|
445
|
-
return e2;
|
|
446
|
-
const i2 = typeof e2, l2 = "string" === i2 || "number" === i2;
|
|
447
|
-
return l2 && (t3.has(e2) || u2.some((e3) => "string" === i2 && e3 === String || "number" === i2 && e3 === Number)) || "object" === i2 && u2.some((n5) => !c$1(e2, n5)) ? e2 : (l2 && o3.length ? (a2 || (a2 = o3.map((e3) => "string" == typeof e3 ? `'${e3}'` : `${e3}`).join(", ")), r2$1().error("Accessor#set", `'${e2}' is not a valid value for this property, only the following values are valid: ${a2}`)) : "object" == typeof e2 && u2.length ? (s2 || (s2 = u2.map((e3) => g$1(e3)).join(", ")), r2$1().error("Accessor#set", `'${e2}' is not a valid value for this property, value must be one of ${s2}`)) : r2$1().error("Accessor#set", `'${e2}' is not a valid value for this property`), n4 && (n4.valid = false), null);
|
|
448
|
-
};
|
|
449
|
-
}
|
|
450
|
-
function S(e, n3) {
|
|
451
|
-
if (2 === arguments.length)
|
|
452
|
-
return S(e).call(null, n3);
|
|
453
|
-
const t3 = {}, o3 = [], u2 = [];
|
|
454
|
-
for (const r3 in e.typeMap) {
|
|
455
|
-
const n4 = e.typeMap[r3];
|
|
456
|
-
t3[r3] = d$1(n4), o3.push(g$1(n4)), u2.push(r3);
|
|
457
|
-
}
|
|
458
|
-
const a2 = () => `'${o3.join("', '")}'`, s2 = () => `'${u2.join("', '")}'`, l2 = "string" == typeof e.key ? (n4) => n4[e.key] : e.key;
|
|
459
|
-
return (n4) => {
|
|
460
|
-
if (e.base && !c$1(e.base, n4))
|
|
461
|
-
return n4;
|
|
462
|
-
if (null == n4)
|
|
463
|
-
return n4;
|
|
464
|
-
const o4 = l2(n4) || e.defaultKeyValue, u3 = t3[o4];
|
|
465
|
-
if (!u3)
|
|
466
|
-
return r2$1().error("Accessor#set", `Invalid property value, value needs to be one of ${a2()}, or a plain object that can autocast (having .type = ${s2()})`), null;
|
|
467
|
-
if (!c$1(e.typeMap[o4], n4))
|
|
468
|
-
return n4;
|
|
469
|
-
if ("string" == typeof e.key && !i$2(n4)) {
|
|
470
|
-
const r3 = {};
|
|
471
|
-
for (const t4 in n4)
|
|
472
|
-
t4 !== e.key && (r3[t4] = n4[t4]);
|
|
473
|
-
return u3(r3);
|
|
474
|
-
}
|
|
475
|
-
return u3(n4);
|
|
476
|
-
};
|
|
477
|
-
}
|
|
478
|
-
var T = class {
|
|
479
|
-
};
|
|
480
|
-
function _(e) {
|
|
481
|
-
if (!e || !("type" in e))
|
|
482
|
-
return false;
|
|
483
|
-
switch (e.type) {
|
|
484
|
-
case "native":
|
|
485
|
-
case "array":
|
|
486
|
-
case "one-of":
|
|
487
|
-
return true;
|
|
488
|
-
}
|
|
489
|
-
return false;
|
|
490
|
-
}
|
|
491
|
-
function B(e) {
|
|
492
|
-
switch (e.type) {
|
|
493
|
-
case "native":
|
|
494
|
-
return d$1(e.value);
|
|
495
|
-
case "array":
|
|
496
|
-
return b(B(e.value));
|
|
497
|
-
case "one-of":
|
|
498
|
-
return C(e);
|
|
499
|
-
default:
|
|
500
|
-
return null;
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
function C(e) {
|
|
504
|
-
let n3 = null;
|
|
505
|
-
return (t3, o3) => F(t3, e) ? t3 : (null == n3 && (n3 = D(e)), r2$1().error("Accessor#set", `Invalid property value, value needs to be of type ${n3}`), o3 && (o3.valid = false), null);
|
|
506
|
-
}
|
|
507
|
-
function D(e) {
|
|
508
|
-
switch (e.type) {
|
|
509
|
-
case "native":
|
|
510
|
-
switch (e.value) {
|
|
511
|
-
case Number:
|
|
512
|
-
return "number";
|
|
513
|
-
case String:
|
|
514
|
-
return "string";
|
|
515
|
-
case Boolean:
|
|
516
|
-
return "boolean";
|
|
517
|
-
case T:
|
|
518
|
-
return "integer";
|
|
519
|
-
case Date:
|
|
520
|
-
return "date";
|
|
521
|
-
default:
|
|
522
|
-
return g$1(e.value);
|
|
523
|
-
}
|
|
524
|
-
case "array":
|
|
525
|
-
return `array of ${D(e.value)}`;
|
|
526
|
-
case "one-of": {
|
|
527
|
-
const n3 = e.values.map((e2) => D(e2));
|
|
528
|
-
return `one of ${n3.slice(0, -1)} or ${n3[n3.length - 1]}`;
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
return "unknown";
|
|
532
|
-
}
|
|
533
|
-
function F(e, n3) {
|
|
534
|
-
if (null == e)
|
|
535
|
-
return true;
|
|
536
|
-
switch (n3.type) {
|
|
537
|
-
case "native":
|
|
538
|
-
switch (n3.value) {
|
|
539
|
-
case Number:
|
|
540
|
-
case T:
|
|
541
|
-
return "number" == typeof e;
|
|
542
|
-
case Boolean:
|
|
543
|
-
return "boolean" == typeof e;
|
|
544
|
-
case String:
|
|
545
|
-
return "string" == typeof e;
|
|
546
|
-
}
|
|
547
|
-
return e instanceof n3.value;
|
|
548
|
-
case "array":
|
|
549
|
-
return !!Array.isArray(e) && !e.some((e2) => !F(e2, n3.value));
|
|
550
|
-
case "one-of":
|
|
551
|
-
return n3.values.some((n4) => F(e, n4));
|
|
552
|
-
}
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
// ../../../node_modules/@arcgis/core/core/handleUtils.js
|
|
556
|
-
var n = { remove: () => {
|
|
557
|
-
} };
|
|
558
|
-
function e$1(e2) {
|
|
559
|
-
return e2 ? { remove() {
|
|
560
|
-
e2 && (e2(), e2 = void 0);
|
|
561
|
-
} } : n;
|
|
562
|
-
}
|
|
563
|
-
function r$1(n2) {
|
|
564
|
-
n2.forEach((n3) => n3?.remove());
|
|
565
|
-
}
|
|
566
|
-
function o(n2) {
|
|
567
|
-
return e$1(() => r$1(n2));
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
// ../../../node_modules/@arcgis/core/core/Message.js
|
|
571
|
-
function s(s3, e2) {
|
|
572
|
-
return s3.replaceAll(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g, (s4, r) => {
|
|
573
|
-
if ("" === r)
|
|
574
|
-
return "$";
|
|
575
|
-
const i = t$1(r, e2);
|
|
576
|
-
return (i ?? "").toString();
|
|
577
|
-
});
|
|
578
|
-
}
|
|
579
|
-
var e = class {
|
|
580
|
-
constructor(t2, e2, r = void 0) {
|
|
581
|
-
this.name = t2, this.details = r, this.message = (e2 && s(e2, r)) ?? "";
|
|
582
|
-
}
|
|
583
|
-
toString() {
|
|
584
|
-
return "[" + this.name + "]: " + this.message;
|
|
585
|
-
}
|
|
586
|
-
};
|
|
587
|
-
|
|
588
|
-
// ../../../node_modules/@arcgis/core/core/Error.js
|
|
589
|
-
var s2$1 = class _s extends e {
|
|
590
|
-
constructor(e2, t2, r) {
|
|
591
|
-
super(e2, t2, r);
|
|
592
|
-
}
|
|
593
|
-
toJSON() {
|
|
594
|
-
if (null != this.details)
|
|
595
|
-
try {
|
|
596
|
-
return { name: this.name, message: this.message, details: JSON.parse(JSON.stringify(this.details, (t2, r) => {
|
|
597
|
-
if (r && "object" == typeof r && "function" == typeof r.toJSON)
|
|
598
|
-
return r;
|
|
599
|
-
try {
|
|
600
|
-
return a2$1(r);
|
|
601
|
-
} catch (s3) {
|
|
602
|
-
return "[object]";
|
|
603
|
-
}
|
|
604
|
-
})) };
|
|
605
|
-
} catch (r) {
|
|
606
|
-
throw n2$2.getLogger("esri.core.Error").error(r), r;
|
|
607
|
-
}
|
|
608
|
-
return { name: this.name, message: this.message, details: this.details };
|
|
609
|
-
}
|
|
610
|
-
static fromJSON(e2) {
|
|
611
|
-
return new _s(e2.name, e2.message, e2.details);
|
|
612
|
-
}
|
|
613
|
-
};
|
|
614
|
-
s2$1.prototype.type = "error";
|
|
615
|
-
|
|
616
|
-
// ../../../node_modules/@arcgis/core/core/accessorSupport/beforeDestroy.js
|
|
617
|
-
var o3 = Symbol("Accessor-beforeDestroy");
|
|
618
|
-
|
|
619
|
-
// ../../../node_modules/@arcgis/core/core/accessorSupport/utils.js
|
|
620
|
-
function t(r3) {
|
|
621
|
-
return r3.__accessor__ ?? null;
|
|
622
|
-
}
|
|
623
|
-
function e2$1(r3, n6) {
|
|
624
|
-
return null != r3?.metadata?.[n6];
|
|
625
|
-
}
|
|
626
|
-
function u$1(r3, n6, t2) {
|
|
627
|
-
if (t2) {
|
|
628
|
-
return o4(r3, n6, { policy: t2, path: "" });
|
|
629
|
-
}
|
|
630
|
-
return o4(r3, n6, null);
|
|
631
|
-
}
|
|
632
|
-
function o4(r3, t2, e5) {
|
|
633
|
-
return t2 ? Object.keys(t2).reduce((r4, i5) => {
|
|
634
|
-
const u6 = i5;
|
|
635
|
-
let a8 = null, l7 = "merge";
|
|
636
|
-
if (e5 && (a8 = e5.path ? `${e5.path}.${i5}` : i5, l7 = e5.policy(a8)), "replace" === l7)
|
|
637
|
-
return r4[u6] = t2[u6], r4;
|
|
638
|
-
if ("replace-arrays" === l7 && Array.isArray(r4[u6]))
|
|
639
|
-
return r4[u6] = t2[u6], r4;
|
|
640
|
-
if (void 0 === r4[u6])
|
|
641
|
-
return r4[u6] = a2$1(t2[u6]), r4;
|
|
642
|
-
let s8 = r4[u6], c8 = t2[u6];
|
|
643
|
-
if (s8 === c8)
|
|
644
|
-
return r4;
|
|
645
|
-
if (Array.isArray(c8) || Array.isArray(r4))
|
|
646
|
-
s8 = s8 ? Array.isArray(s8) ? r4[u6] = s8.concat() : r4[u6] = [s8] : r4[u6] = [], c8 && (Array.isArray(c8) || (c8 = [c8]), c8.forEach((r5) => {
|
|
647
|
-
s8.includes(r5) || s8.push(r5);
|
|
648
|
-
}));
|
|
649
|
-
else if (c8 && "object" == typeof c8)
|
|
650
|
-
if (e5) {
|
|
651
|
-
const n6 = e5.path;
|
|
652
|
-
e5.path = a8, r4[u6] = o4(s8, c8, e5), e5.path = n6;
|
|
653
|
-
} else
|
|
654
|
-
r4[u6] = o4(s8, c8, null);
|
|
655
|
-
else
|
|
656
|
-
r4.hasOwnProperty(i5) && !t2.hasOwnProperty(i5) || (r4[u6] = c8);
|
|
657
|
-
return r4;
|
|
658
|
-
}, r3 || {}) : r3;
|
|
659
|
-
}
|
|
660
|
-
function l(r3) {
|
|
661
|
-
return Array.isArray(r3) ? r3 : r3.split(".");
|
|
662
|
-
}
|
|
663
|
-
function s2(r3) {
|
|
664
|
-
return r3.includes(",") ? r3.split(",").map((r4) => r4.trim()) : [r3.trim()];
|
|
665
|
-
}
|
|
666
|
-
function c(r3) {
|
|
667
|
-
if (Array.isArray(r3)) {
|
|
668
|
-
const n6 = [];
|
|
669
|
-
for (const t2 of r3)
|
|
670
|
-
n6.push(...s2(t2));
|
|
671
|
-
return n6;
|
|
672
|
-
}
|
|
673
|
-
return s2(r3);
|
|
674
|
-
}
|
|
675
|
-
function p(n6, t2, e5, i5) {
|
|
676
|
-
const u6 = c(t2);
|
|
677
|
-
if (1 !== u6.length) {
|
|
678
|
-
const t3 = u6.map((r3) => i5(n6, r3, e5));
|
|
679
|
-
return o(t3);
|
|
680
|
-
}
|
|
681
|
-
return i5(n6, u6[0], e5);
|
|
682
|
-
}
|
|
683
|
-
|
|
684
|
-
// ../../../node_modules/@arcgis/core/core/accessorSupport/interfaces.js
|
|
685
|
-
var I;
|
|
686
|
-
!function(I2) {
|
|
687
|
-
I2[I2.INITIALIZING = 0] = "INITIALIZING", I2[I2.CONSTRUCTING = 1] = "CONSTRUCTING", I2[I2.CONSTRUCTED = 2] = "CONSTRUCTED", I2[I2.DESTROYED = 3] = "DESTROYED";
|
|
688
|
-
}(I || (I = {}));
|
|
689
|
-
|
|
690
|
-
// ../../../node_modules/@arcgis/core/core/accessorSupport/metadata.js
|
|
691
|
-
function r(e5) {
|
|
692
|
-
let r3 = e5.constructor.__accessorMetadata__;
|
|
693
|
-
const o10 = Object.prototype.hasOwnProperty.call(e5.constructor, "__accessorMetadata__");
|
|
694
|
-
if (r3) {
|
|
695
|
-
if (!o10) {
|
|
696
|
-
r3 = Object.create(r3);
|
|
697
|
-
for (const e6 in r3)
|
|
698
|
-
r3[e6] = a2$1(r3[e6]);
|
|
699
|
-
Object.defineProperty(e5.constructor, "__accessorMetadata__", { value: r3, enumerable: false, configurable: true, writable: true });
|
|
700
|
-
}
|
|
701
|
-
} else
|
|
702
|
-
r3 = {}, Object.defineProperty(e5.constructor, "__accessorMetadata__", { value: r3, enumerable: false, configurable: true, writable: true });
|
|
703
|
-
return e5.constructor.__accessorMetadata__;
|
|
704
|
-
}
|
|
705
|
-
function o5(t2, e5) {
|
|
706
|
-
const o10 = r(t2);
|
|
707
|
-
let c8 = o10[e5];
|
|
708
|
-
return c8 || (c8 = o10[e5] = {}), c8;
|
|
709
|
-
}
|
|
710
|
-
function c2(t2, r3) {
|
|
711
|
-
return u$1(t2, r3, n2$1);
|
|
712
|
-
}
|
|
713
|
-
var a2 = /^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/;
|
|
714
|
-
function n2$1(t2) {
|
|
715
|
-
return a2.test(t2) ? "replace" : "merge";
|
|
716
|
-
}
|
|
717
|
-
|
|
718
|
-
// ../../../node_modules/@arcgis/core/core/accessorSupport/tracking/Flags.js
|
|
719
|
-
var i$1;
|
|
720
|
-
!function(i5) {
|
|
721
|
-
i5[i5.Dirty = 1] = "Dirty", i5[i5.Overridden = 2] = "Overridden", i5[i5.Computing = 4] = "Computing", i5[i5.NonNullable = 8] = "NonNullable", i5[i5.HasDefaultValue = 16] = "HasDefaultValue", i5[i5.DepTrackingInitialized = 32] = "DepTrackingInitialized", i5[i5.AutoTracked = 64] = "AutoTracked", i5[i5.ExplicitlyTracking = 128] = "ExplicitlyTracking";
|
|
722
|
-
}(i$1 || (i$1 = {}));
|
|
723
|
-
|
|
724
|
-
// ../../../node_modules/@arcgis/core/core/accessorSupport/tracking.js
|
|
725
|
-
var o6 = { onObservableAccessed: () => {
|
|
726
|
-
}, onTrackingEnd: () => {
|
|
727
|
-
} };
|
|
728
|
-
var c3 = [];
|
|
729
|
-
var i2 = o6;
|
|
730
|
-
function s3$1(t2) {
|
|
731
|
-
i2.onObservableAccessed(t2);
|
|
732
|
-
}
|
|
733
|
-
var l2 = false;
|
|
734
|
-
var a3 = false;
|
|
735
|
-
function f(t2, n6, r3) {
|
|
736
|
-
if (l2)
|
|
737
|
-
return u2(t2, n6, r3);
|
|
738
|
-
p2(t2);
|
|
739
|
-
const e5 = n6.call(r3);
|
|
740
|
-
return d(), e5;
|
|
741
|
-
}
|
|
742
|
-
function g(t2, n6) {
|
|
743
|
-
return f(o6, t2, n6);
|
|
744
|
-
}
|
|
745
|
-
function u2(n6, r3, e5) {
|
|
746
|
-
const o10 = l2;
|
|
747
|
-
l2 = true, p2(n6);
|
|
748
|
-
let c8 = null;
|
|
749
|
-
try {
|
|
750
|
-
c8 = r3.call(e5);
|
|
751
|
-
} catch (i5) {
|
|
752
|
-
a3 && n2$2.getLogger("esri.core.accessorSupport.tracking").error(i5);
|
|
753
|
-
}
|
|
754
|
-
return d(), l2 = o10, c8;
|
|
755
|
-
}
|
|
756
|
-
function p2(t2) {
|
|
757
|
-
i2 = t2, c3.push(t2);
|
|
758
|
-
}
|
|
759
|
-
function d() {
|
|
760
|
-
const t2 = c3.length;
|
|
761
|
-
if (t2 > 1) {
|
|
762
|
-
const n6 = c3.pop();
|
|
763
|
-
i2 = c3[t2 - 2], n6.onTrackingEnd();
|
|
764
|
-
} else if (1 === t2) {
|
|
765
|
-
const t3 = c3.pop();
|
|
766
|
-
i2 = o6, t3.onTrackingEnd();
|
|
767
|
-
} else
|
|
768
|
-
i2 = o6;
|
|
769
|
-
}
|
|
770
|
-
function m(t2, n6) {
|
|
771
|
-
if (n6.flags & i$1.DepTrackingInitialized)
|
|
772
|
-
return;
|
|
773
|
-
const r3 = a3;
|
|
774
|
-
a3 = false, n6.flags & i$1.AutoTracked ? u2(n6, n6.metadata.get, t2) : k2(t2, n6), a3 = r3;
|
|
775
|
-
}
|
|
776
|
-
var y$1 = [];
|
|
777
|
-
function k2(t2, r3) {
|
|
778
|
-
r3.flags & i$1.ExplicitlyTracking || (r3.flags |= i$1.ExplicitlyTracking, u2(r3, () => {
|
|
779
|
-
const e5 = r3.metadata.dependsOn || y$1;
|
|
780
|
-
for (const r4 of e5)
|
|
781
|
-
if ("string" != typeof r4 || r4.includes(".")) {
|
|
782
|
-
const e6 = l(r4);
|
|
783
|
-
for (let n6 = 0, r5 = t2; n6 < e6.length && null != r5 && "object" == typeof r5; ++n6)
|
|
784
|
-
r5 = A(r5, e6[n6], n6 !== e6.length - 1);
|
|
785
|
-
} else
|
|
786
|
-
A(t2, r4, false);
|
|
787
|
-
}), r3.flags &= ~i$1.ExplicitlyTracking);
|
|
788
|
-
}
|
|
789
|
-
function A(t2, n6, e5) {
|
|
790
|
-
const o10 = "?" === n6[n6.length - 1] ? n6.slice(0, -1) : n6;
|
|
791
|
-
if (null != t2.getItemAt || Array.isArray(t2)) {
|
|
792
|
-
const n7 = parseInt(o10, 10);
|
|
793
|
-
if (!isNaN(n7))
|
|
794
|
-
return Array.isArray(t2) ? t2[n7] : t2.at(n7);
|
|
795
|
-
}
|
|
796
|
-
const c8 = t(t2);
|
|
797
|
-
if (c8) {
|
|
798
|
-
const n7 = c8.propertiesByName.get(o10);
|
|
799
|
-
n7 && (s3$1(n7), m(t2, n7));
|
|
800
|
-
}
|
|
801
|
-
return e5 ? t2[o10] : void 0;
|
|
802
|
-
}
|
|
803
|
-
|
|
804
|
-
// ../../../node_modules/@arcgis/core/core/Warning.js
|
|
805
|
-
var s4 = class extends e {
|
|
806
|
-
constructor(e5, s8, t2) {
|
|
807
|
-
super(e5, s8, t2);
|
|
808
|
-
}
|
|
809
|
-
};
|
|
810
|
-
s4.prototype.type = "warning";
|
|
811
|
-
|
|
812
|
-
// ../../../node_modules/@arcgis/core/core/accessorSupport/extensions/serializableProperty/type.js
|
|
813
|
-
function e3$1(e5) {
|
|
814
|
-
return !!e5 && e5.prototype?.declaredClass && 0 === e5.prototype.declaredClass.indexOf("esri.core.Collection");
|
|
815
|
-
}
|
|
816
|
-
|
|
817
|
-
// ../../../node_modules/@arcgis/core/core/accessorSupport/extensions/serializableProperty/reader.js
|
|
818
|
-
var i3 = () => n2$2.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader");
|
|
819
|
-
function p3(t2, r3, n6) {
|
|
820
|
-
t2 && (!n6 && !r3.read || r3.read?.reader || false === r3.read?.enabled || l3(t2) && o$1("read.reader", u3(t2), r3));
|
|
821
|
-
}
|
|
822
|
-
function u3(t2) {
|
|
823
|
-
const e5 = t2.ndimArray ?? 0;
|
|
824
|
-
if (e5 > 1)
|
|
825
|
-
return c4(t2);
|
|
826
|
-
if (1 === e5)
|
|
827
|
-
return a4(t2);
|
|
828
|
-
if ("type" in t2 && d2$1(t2.type)) {
|
|
829
|
-
const e6 = t2.type.prototype?.itemType?.Type, r3 = a4("function" == typeof e6 ? { type: e6 } : { types: e6 });
|
|
830
|
-
return (e7, n6, o10) => {
|
|
831
|
-
const i5 = r3(e7, n6, o10);
|
|
832
|
-
return i5 ? new t2.type(i5) : i5;
|
|
833
|
-
};
|
|
834
|
-
}
|
|
835
|
-
return s5(t2);
|
|
836
|
-
}
|
|
837
|
-
function s5(t2) {
|
|
838
|
-
return "type" in t2 ? y2(t2.type) : g2(t2.types);
|
|
839
|
-
}
|
|
840
|
-
function y2(t2) {
|
|
841
|
-
return t2.prototype.read ? (e5, r3, n6) => {
|
|
842
|
-
if (null == e5)
|
|
843
|
-
return e5;
|
|
844
|
-
const o10 = typeof e5;
|
|
845
|
-
if ("object" !== o10)
|
|
846
|
-
return void i3().error(`Expected JSON value of type 'object' to deserialize type '${t2.prototype.declaredClass}', but got '${o10}'`);
|
|
847
|
-
const p7 = new t2();
|
|
848
|
-
return p7.read(e5, n6), p7;
|
|
849
|
-
} : t2.fromJSON;
|
|
850
|
-
}
|
|
851
|
-
function f2(t2, e5, r3, n6) {
|
|
852
|
-
return 0 !== n6 && Array.isArray(e5) ? e5.map((e6) => f2(t2, e6, r3, n6 - 1)) : t2(e5, void 0, r3);
|
|
853
|
-
}
|
|
854
|
-
function c4(t2) {
|
|
855
|
-
const e5 = s5(t2), r3 = f2.bind(null, e5), n6 = t2.ndimArray ?? 0;
|
|
856
|
-
return (t3, e6, o10) => {
|
|
857
|
-
if (null == t3)
|
|
858
|
-
return t3;
|
|
859
|
-
t3 = r3(t3, o10, n6);
|
|
860
|
-
let i5 = n6, p7 = t3;
|
|
861
|
-
for (; i5 > 0 && Array.isArray(p7); )
|
|
862
|
-
i5--, p7 = p7[0];
|
|
863
|
-
if (void 0 !== p7)
|
|
864
|
-
for (let r4 = 0; r4 < i5; r4++)
|
|
865
|
-
t3 = [t3];
|
|
866
|
-
return t3;
|
|
867
|
-
};
|
|
868
|
-
}
|
|
869
|
-
function a4(t2) {
|
|
870
|
-
const e5 = s5(t2);
|
|
871
|
-
return (t3, r3, n6) => {
|
|
872
|
-
if (null == t3)
|
|
873
|
-
return t3;
|
|
874
|
-
if (Array.isArray(t3)) {
|
|
875
|
-
const r4 = [];
|
|
876
|
-
for (const o11 of t3) {
|
|
877
|
-
const t4 = e5(o11, void 0, n6);
|
|
878
|
-
void 0 !== t4 && r4.push(t4);
|
|
879
|
-
}
|
|
880
|
-
return r4;
|
|
881
|
-
}
|
|
882
|
-
const o10 = e5(t3, void 0, n6);
|
|
883
|
-
return void 0 !== o10 ? [o10] : void 0;
|
|
884
|
-
};
|
|
885
|
-
}
|
|
886
|
-
function d2$1(t2) {
|
|
887
|
-
if (!e3$1(t2))
|
|
888
|
-
return false;
|
|
889
|
-
const e5 = t2.prototype.itemType;
|
|
890
|
-
return !(!e5 || !e5.Type) && ("function" == typeof e5.Type ? m2(e5.Type) : j(e5.Type));
|
|
891
|
-
}
|
|
892
|
-
function l3(t2) {
|
|
893
|
-
return "types" in t2 ? j(t2.types) : m2(t2.type);
|
|
894
|
-
}
|
|
895
|
-
function m2(t2) {
|
|
896
|
-
return !Array.isArray(t2) && (!!t2 && t2.prototype && ("read" in t2.prototype || "fromJSON" in t2 || d2$1(t2)));
|
|
897
|
-
}
|
|
898
|
-
function j(t2) {
|
|
899
|
-
for (const e5 in t2.typeMap) {
|
|
900
|
-
if (!m2(t2.typeMap[e5]))
|
|
901
|
-
return false;
|
|
902
|
-
}
|
|
903
|
-
return true;
|
|
904
|
-
}
|
|
905
|
-
function g2(t2) {
|
|
906
|
-
let e5 = null;
|
|
907
|
-
const n6 = t2.errorContext ?? "type", o10 = t2.validate;
|
|
908
|
-
return (p7, u6, s8) => {
|
|
909
|
-
if (null == p7)
|
|
910
|
-
return p7;
|
|
911
|
-
const y5 = typeof p7;
|
|
912
|
-
if ("object" !== y5)
|
|
913
|
-
return void i3().error(`Expected JSON value of type 'object' to deserialize, but got '${y5}'`);
|
|
914
|
-
e5 || (e5 = v(t2));
|
|
915
|
-
const f6 = t2.key;
|
|
916
|
-
if ("string" != typeof f6)
|
|
917
|
-
return;
|
|
918
|
-
const c8 = p7[f6], a8 = c8 ? e5[c8] : t2.defaultKeyValue ? t2.typeMap[t2.defaultKeyValue] : void 0;
|
|
919
|
-
if (!a8) {
|
|
920
|
-
const t3 = `Type '${c8 || "unknown"}' is not supported`;
|
|
921
|
-
return s8?.messages && p7 && s8.messages.push(new s4(`${n6}:unsupported`, t3, { definition: p7, context: s8 })), void i3().error(t3);
|
|
922
|
-
}
|
|
923
|
-
const d3 = new a8();
|
|
924
|
-
return d3.read(p7, s8), o10 ? o10(d3) : d3;
|
|
925
|
-
};
|
|
926
|
-
}
|
|
927
|
-
function v(t2) {
|
|
928
|
-
const e5 = {};
|
|
929
|
-
for (const r3 in t2.typeMap) {
|
|
930
|
-
const o10 = t2.typeMap[r3], i5 = r(o10.prototype);
|
|
931
|
-
if ("function" == typeof t2.key)
|
|
932
|
-
continue;
|
|
933
|
-
const p7 = i5[t2.key];
|
|
934
|
-
if (!p7)
|
|
935
|
-
continue;
|
|
936
|
-
if (p7.json?.type && Array.isArray(p7.json.type) && 1 === p7.json.type.length && "string" == typeof p7.json.type[0]) {
|
|
937
|
-
e5[p7.json.type[0]] = o10;
|
|
938
|
-
continue;
|
|
939
|
-
}
|
|
940
|
-
const u6 = p7.json?.write;
|
|
941
|
-
if (!u6?.writer) {
|
|
942
|
-
e5[r3] = o10;
|
|
943
|
-
continue;
|
|
944
|
-
}
|
|
945
|
-
const s8 = u6.target, y5 = "string" == typeof s8 ? s8 : t2.key, f6 = {};
|
|
946
|
-
u6.writer(r3, f6, y5), f6[y5] && (e5[f6[y5]] = o10);
|
|
947
|
-
}
|
|
948
|
-
return e5;
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
// ../../../node_modules/@arcgis/core/core/accessorSupport/extensions/serializableProperty/originAliases.js
|
|
952
|
-
function n3(n6) {
|
|
953
|
-
if (n6.json && n6.json.origins) {
|
|
954
|
-
const o10 = n6.json.origins, e5 = { "web-document": ["web-scene", "web-map"] };
|
|
955
|
-
for (const n7 in e5)
|
|
956
|
-
if (o10[n7]) {
|
|
957
|
-
const s8 = o10[n7];
|
|
958
|
-
e5[n7].forEach((n8) => {
|
|
959
|
-
o10[n8] = s8;
|
|
960
|
-
}), delete o10[n7];
|
|
961
|
-
}
|
|
962
|
-
}
|
|
963
|
-
}
|
|
964
|
-
|
|
965
|
-
// ../../../node_modules/@arcgis/core/core/accessorSupport/extensions/serializableProperty/shorthands.js
|
|
966
|
-
function e4(e5) {
|
|
967
|
-
if (e5.json || (e5.json = {}), o7(e5.json), n4(e5.json), r2(e5.json), e5.json.origins)
|
|
968
|
-
for (const t2 in e5.json.origins)
|
|
969
|
-
o7(e5.json.origins[t2]), n4(e5.json.origins[t2]), r2(e5.json.origins[t2]);
|
|
970
|
-
return true;
|
|
971
|
-
}
|
|
972
|
-
function r2(e5) {
|
|
973
|
-
e5.name && (e5.read && "object" == typeof e5.read ? void 0 === e5.read.source && (e5.read.source = e5.name) : e5.read = { source: e5.name }, e5.write && "object" == typeof e5.write ? void 0 === e5.write.target && (e5.write.target = e5.name) : e5.write = { target: e5.name });
|
|
974
|
-
}
|
|
975
|
-
function o7(e5) {
|
|
976
|
-
"boolean" == typeof e5.read ? e5.read = { enabled: e5.read } : "function" == typeof e5.read ? e5.read = { enabled: true, reader: e5.read } : e5.read && "object" == typeof e5.read && void 0 === e5.read.enabled && (e5.read.enabled = true);
|
|
977
|
-
}
|
|
978
|
-
function n4(e5) {
|
|
979
|
-
"boolean" == typeof e5.write ? e5.write = { enabled: e5.write } : "function" == typeof e5.write ? e5.write = { enabled: true, writer: e5.write } : e5.write && "object" == typeof e5.write && void 0 === e5.write.enabled && (e5.write.enabled = true);
|
|
980
|
-
}
|
|
981
|
-
|
|
982
|
-
// ../../../node_modules/@arcgis/core/core/accessorSupport/extensions/serializableProperty/writer.js
|
|
983
|
-
function i4(r3, e5) {
|
|
984
|
-
if (!e5.write || e5.write.writer || false === e5.write.enabled && !e5.write.overridePolicy)
|
|
985
|
-
return;
|
|
986
|
-
const t2 = r3?.ndimArray ?? 0;
|
|
987
|
-
r3 && (1 === t2 || "type" in r3 && e3$1(r3.type)) ? e5.write.writer = a5 : t2 > 1 ? e5.write.writer = l4(t2) : e5.types ? Array.isArray(e5.types) ? e5.write.writer = f3(e5.types[0]) : e5.write.writer = o8(e5.types) : e5.write.writer = s6;
|
|
988
|
-
}
|
|
989
|
-
function o8(r3) {
|
|
990
|
-
return (e5, t2, n6, i5) => e5 ? u4(e5, r3, i5) ? s6(e5, t2, n6, i5) : void 0 : s6(e5, t2, n6, i5);
|
|
991
|
-
}
|
|
992
|
-
function u4(t2, n6, i5) {
|
|
993
|
-
for (const r3 in n6.typeMap)
|
|
994
|
-
if (t2 instanceof n6.typeMap[r3])
|
|
995
|
-
return true;
|
|
996
|
-
if (i5?.messages) {
|
|
997
|
-
const o10 = n6.errorContext ?? "type", u6 = `Values of type '${("function" != typeof n6.key ? t2[n6.key] : t2.declaredClass) ?? "Unknown"}' cannot be written`;
|
|
998
|
-
i5 && i5.messages && t2 && i5.messages.push(new s2$1(`${o10}:unsupported`, u6, { definition: t2, context: i5 })), n2$2.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(u6);
|
|
999
|
-
}
|
|
1000
|
-
return false;
|
|
1001
|
-
}
|
|
1002
|
-
function f3(r3) {
|
|
1003
|
-
return (e5, t2, n6, i5) => {
|
|
1004
|
-
if (!e5 || !Array.isArray(e5))
|
|
1005
|
-
return s6(e5, t2, n6, i5);
|
|
1006
|
-
return s6(e5.filter((e6) => u4(e6, r3, i5)), t2, n6, i5);
|
|
1007
|
-
};
|
|
1008
|
-
}
|
|
1009
|
-
function s6(r3, e5, n6, i5) {
|
|
1010
|
-
o$1(n6, p4(r3, i5), e5);
|
|
1011
|
-
}
|
|
1012
|
-
function p4(r3, e5) {
|
|
1013
|
-
return r3 && "function" == typeof r3.write ? r3.write({}, e5) : r3 && "function" == typeof r3.toJSON ? r3.toJSON() : "number" == typeof r3 ? y3(r3) : r3;
|
|
1014
|
-
}
|
|
1015
|
-
function y3(r3) {
|
|
1016
|
-
return r3 === -1 / 0 ? -Number.MAX_VALUE : r3 === 1 / 0 ? Number.MAX_VALUE : isNaN(r3) ? null : r3;
|
|
1017
|
-
}
|
|
1018
|
-
function a5(r3, e5, n6, i5) {
|
|
1019
|
-
let o10;
|
|
1020
|
-
null === r3 ? o10 = null : r3 && "function" == typeof r3.map ? (o10 = r3.map((r4) => p4(r4, i5)), "function" == typeof o10.toArray && (o10 = o10.toArray())) : o10 = [p4(r3, i5)], o$1(n6, o10, e5);
|
|
1021
|
-
}
|
|
1022
|
-
function c5(r3, e5, t2) {
|
|
1023
|
-
return 0 !== t2 && Array.isArray(r3) ? r3.map((r4) => c5(r4, e5, t2 - 1)) : p4(r3, e5);
|
|
1024
|
-
}
|
|
1025
|
-
function l4(r3) {
|
|
1026
|
-
return (e5, n6, i5, o10) => {
|
|
1027
|
-
let u6;
|
|
1028
|
-
if (null === e5)
|
|
1029
|
-
u6 = null;
|
|
1030
|
-
else {
|
|
1031
|
-
u6 = c5(e5, o10, r3);
|
|
1032
|
-
let t2 = r3, n7 = u6;
|
|
1033
|
-
for (; t2 > 0 && Array.isArray(n7); )
|
|
1034
|
-
t2--, n7 = n7[0];
|
|
1035
|
-
if (void 0 !== n7)
|
|
1036
|
-
for (let r4 = 0; r4 < t2; r4++)
|
|
1037
|
-
u6 = [u6];
|
|
1038
|
-
}
|
|
1039
|
-
o$1(i5, u6, n6);
|
|
1040
|
-
};
|
|
1041
|
-
}
|
|
1042
|
-
function p5(r3) {
|
|
1043
|
-
const i5 = f4(r3);
|
|
1044
|
-
if (r3.json.origins)
|
|
1045
|
-
for (const e5 in r3.json.origins) {
|
|
1046
|
-
const o10 = r3.json.origins[e5], s8 = o10.types ? u5(o10) : i5;
|
|
1047
|
-
p3(s8, o10, false), o10.types && !o10.write && r3.json.write?.enabled && (o10.write = { ...r3.json.write }), i4(s8, o10);
|
|
1048
|
-
}
|
|
1049
|
-
p3(i5, r3.json, true), i4(i5, r3.json);
|
|
1050
|
-
}
|
|
1051
|
-
function f4(r3) {
|
|
1052
|
-
return r3.json.types ? j2$1(r3.json) : r3.type ? c6(r3) : j2$1(r3);
|
|
1053
|
-
}
|
|
1054
|
-
function u5(r3) {
|
|
1055
|
-
return r3.type ? c6(r3) : j2$1(r3);
|
|
1056
|
-
}
|
|
1057
|
-
function c6(i5) {
|
|
1058
|
-
if (!i5.type)
|
|
1059
|
-
return;
|
|
1060
|
-
let n6 = 0, e5 = i5.type;
|
|
1061
|
-
for (; Array.isArray(e5) && !k(e5); )
|
|
1062
|
-
e5 = e5[0], n6++;
|
|
1063
|
-
return { type: e5, ndimArray: n6 };
|
|
1064
|
-
}
|
|
1065
|
-
function j2$1(r3) {
|
|
1066
|
-
if (!r3.types)
|
|
1067
|
-
return;
|
|
1068
|
-
let i5 = 0, n6 = r3.types;
|
|
1069
|
-
for (; Array.isArray(n6); )
|
|
1070
|
-
n6 = n6[0], i5++;
|
|
1071
|
-
return { types: n6, ndimArray: i5 };
|
|
1072
|
-
}
|
|
1073
|
-
function l5(r3) {
|
|
1074
|
-
e4(r3) && (n3(r3), p5(r3));
|
|
1075
|
-
}
|
|
1076
|
-
|
|
1077
|
-
// ../../../node_modules/@arcgis/core/core/accessorSupport/decorators/subclass.js
|
|
1078
|
-
var n5 = /* @__PURE__ */ new Set();
|
|
1079
|
-
var c7 = /* @__PURE__ */ new Set();
|
|
1080
|
-
function a7(e5) {
|
|
1081
|
-
return (r3) => {
|
|
1082
|
-
e5 ?? (e5 = "esri.core.Accessor"), r3.prototype.declaredClass = e5, p6(r3);
|
|
1083
|
-
const s8 = [], i5 = [];
|
|
1084
|
-
let a8 = r3.prototype;
|
|
1085
|
-
for (; a8; )
|
|
1086
|
-
a8.hasOwnProperty("initialize") && !n5.has(a8.initialize) && (n5.add(a8.initialize), s8.push(a8.initialize)), a8.hasOwnProperty("destroy") && !c7.has(a8.destroy) && (c7.add(a8.destroy), i5.push(a8.destroy)), a8 = Object.getPrototypeOf(a8);
|
|
1087
|
-
n5.clear(), c7.clear();
|
|
1088
|
-
const l7 = class extends r3 {
|
|
1089
|
-
constructor(...e6) {
|
|
1090
|
-
if (super(...e6), this.constructor === l7 && "function" == typeof this.postscript) {
|
|
1091
|
-
if (s8.length && Object.defineProperty(this, "initialize", { enumerable: false, configurable: true, value() {
|
|
1092
|
-
for (let e7 = s8.length - 1; e7 >= 0; e7--)
|
|
1093
|
-
s8[e7].call(this);
|
|
1094
|
-
} }), i5.length) {
|
|
1095
|
-
let e7 = false;
|
|
1096
|
-
const r4 = this[o3];
|
|
1097
|
-
Object.defineProperty(this, "destroy", { enumerable: false, configurable: true, value() {
|
|
1098
|
-
if (!e7) {
|
|
1099
|
-
e7 = true, r4.call(this);
|
|
1100
|
-
for (let e8 = 0; e8 < i5.length; e8++)
|
|
1101
|
-
i5[e8].call(this);
|
|
1102
|
-
}
|
|
1103
|
-
} });
|
|
1104
|
-
}
|
|
1105
|
-
Object.defineProperty(this, Symbol.dispose, { enumerable: false, configurable: true, value() {
|
|
1106
|
-
this.destroy();
|
|
1107
|
-
} }), this.postscript(...e6);
|
|
1108
|
-
}
|
|
1109
|
-
}
|
|
1110
|
-
};
|
|
1111
|
-
l7.__accessorMetadata__ = r(r3.prototype), l7.prototype.declaredClass = e5;
|
|
1112
|
-
const f6 = (e5 || "AccessorSubclass").split(".").slice(-1)[0];
|
|
1113
|
-
return Object.defineProperty(l7, "name", { value: f6, configurable: true }), l7;
|
|
1114
|
-
};
|
|
1115
|
-
}
|
|
1116
|
-
function l6(e5, t2) {
|
|
1117
|
-
return null == t2.get ? function() {
|
|
1118
|
-
const t3 = this.__accessor__, r3 = t3.propertiesByName.get(e5);
|
|
1119
|
-
if (void 0 === r3)
|
|
1120
|
-
return;
|
|
1121
|
-
s3$1(r3);
|
|
1122
|
-
const o10 = t3.store;
|
|
1123
|
-
return o10.has(e5) ? o10.get(e5) : r3.metadata.value;
|
|
1124
|
-
} : function() {
|
|
1125
|
-
const t3 = this.__accessor__, r3 = t3.propertiesByName.get(e5);
|
|
1126
|
-
if (void 0 !== r3)
|
|
1127
|
-
return r3.getComputed(t3);
|
|
1128
|
-
};
|
|
1129
|
-
}
|
|
1130
|
-
function p6(e5) {
|
|
1131
|
-
const t2 = e5.prototype, s8 = r(t2), n6 = {};
|
|
1132
|
-
for (const o10 of Object.getOwnPropertyNames(s8)) {
|
|
1133
|
-
const e6 = s8[o10];
|
|
1134
|
-
l5(e6), n6[o10] = { enumerable: true, configurable: true, get: l6(o10, e6), set(t3) {
|
|
1135
|
-
const s9 = this.__accessor__;
|
|
1136
|
-
if (void 0 !== s9) {
|
|
1137
|
-
if (!Object.isFrozen(this))
|
|
1138
|
-
return s9.initialized && e6.readOnly ? f5("read-only", o10) : s9.lifecycle === I.CONSTRUCTED && e6.constructOnly ? f5("construct-only", o10) : void s9.set(o10, t3);
|
|
1139
|
-
} else
|
|
1140
|
-
Object.defineProperty(this, o10, { enumerable: true, configurable: true, writable: true, value: t3 });
|
|
1141
|
-
} };
|
|
1142
|
-
}
|
|
1143
|
-
Object.defineProperties(e5.prototype, n6);
|
|
1144
|
-
}
|
|
1145
|
-
var f5 = (t2, r3) => {
|
|
1146
|
-
n2$2.getLogger("esri.core.Accessor").error(`cannot assign to ${t2} property '${r3}'`);
|
|
1147
|
-
};
|
|
1148
|
-
|
|
1149
|
-
// ../../../node_modules/@arcgis/core/core/accessorSupport/get.js
|
|
1150
|
-
function e2(t3, e4) {
|
|
1151
|
-
const i2 = "?" === t3[t3.length - 1] ? t3.slice(0, -1) : t3;
|
|
1152
|
-
if (null != e4.getItemAt || Array.isArray(e4)) {
|
|
1153
|
-
const t4 = parseInt(i2, 10);
|
|
1154
|
-
if (!isNaN(t4))
|
|
1155
|
-
return Array.isArray(e4) ? e4[t4] : e4.at(t4);
|
|
1156
|
-
}
|
|
1157
|
-
const u2 = t(e4);
|
|
1158
|
-
return e2$1(u2, i2) ? u2.get(i2) : e4[i2];
|
|
1159
|
-
}
|
|
1160
|
-
function i(t3, n3, r) {
|
|
1161
|
-
if (null == t3)
|
|
1162
|
-
return t3;
|
|
1163
|
-
const u2 = e2(n3[r], t3);
|
|
1164
|
-
return !u2 && r < n3.length - 1 ? void 0 : r === n3.length - 1 ? u2 : i(u2, n3, r + 1);
|
|
1165
|
-
}
|
|
1166
|
-
function u(n3, r, u2 = 0) {
|
|
1167
|
-
return "string" != typeof r || r.includes(".") ? i(n3, l(r), u2) : e2(r, n3);
|
|
1168
|
-
}
|
|
1169
|
-
function o2(t3, n3) {
|
|
1170
|
-
return u(t3, n3);
|
|
1171
|
-
}
|
|
1172
|
-
|
|
1173
|
-
// ../../../node_modules/@arcgis/core/core/accessorSupport/set.js
|
|
1174
|
-
function t2(o3, e4, s4) {
|
|
1175
|
-
if (o3 && e4)
|
|
1176
|
-
if ("object" == typeof e4)
|
|
1177
|
-
for (const r of Object.getOwnPropertyNames(e4))
|
|
1178
|
-
t2(o3, r, e4[r]);
|
|
1179
|
-
else {
|
|
1180
|
-
if (e4.includes(".")) {
|
|
1181
|
-
const n3 = e4.split("."), i3 = n3.splice(-1, 1)[0];
|
|
1182
|
-
return void t2(o2(o3, n3), i3, s4);
|
|
1183
|
-
}
|
|
1184
|
-
const i2 = o3.__accessor__;
|
|
1185
|
-
null != i2 && n2(e4, i2), o3[e4] = s4;
|
|
1186
|
-
}
|
|
1187
|
-
}
|
|
1188
|
-
function n2(r, t3) {
|
|
1189
|
-
if (has("esri-unknown-property-errors") && !e3(r, t3))
|
|
1190
|
-
throw new s2$1("set:unknown-property", s3(r, t3));
|
|
1191
|
-
}
|
|
1192
|
-
function e3(o3, r) {
|
|
1193
|
-
return null != r.metadata[o3];
|
|
1194
|
-
}
|
|
1195
|
-
function s3(o3, r) {
|
|
1196
|
-
return "setting unknown property '" + o3 + "' on instance of " + r.host.declaredClass;
|
|
1197
|
-
}
|
|
1198
|
-
|
|
1199
|
-
// ../../../node_modules/@arcgis/core/core/accessorSupport/decorators/property.js
|
|
1200
|
-
function y(n3 = {}) {
|
|
1201
|
-
return (o3, s4) => {
|
|
1202
|
-
if (o3 === Function.prototype)
|
|
1203
|
-
throw new Error(`Inappropriate use of @property() on a static field: ${o3.name}.${s4}. Accessor does not support static properties.`);
|
|
1204
|
-
const i2 = Object.getOwnPropertyDescriptor(o3, s4), a = o5(o3, s4);
|
|
1205
|
-
i2 && (i2.get || i2.set ? (a.get = i2.get || a.get, a.set = i2.set || a.set) : "value" in i2 && ("value" in n3 && n2$2.getLogger("esri.core.accessorSupport.decorators.property").warn(`@property() will redefine the value of "${s4}" on "${o3.constructor.name}" already defined in the metadata`, n3), a.value = n3.value = i2.value)), null != n3.readOnly && (a.readOnly = n3.readOnly);
|
|
1206
|
-
const p = n3.aliasOf;
|
|
1207
|
-
if (p) {
|
|
1208
|
-
const t3 = "string" == typeof p ? p : p.source, e4 = "string" == typeof p ? null : true === p.overridable;
|
|
1209
|
-
let r;
|
|
1210
|
-
a.dependsOn = [t3], a.get = function() {
|
|
1211
|
-
let e5 = o2(this, t3);
|
|
1212
|
-
if ("function" == typeof e5) {
|
|
1213
|
-
r || (r = t3.split(".").slice(0, -1).join("."));
|
|
1214
|
-
const n4 = o2(this, r);
|
|
1215
|
-
n4 && (e5 = e5.bind(n4));
|
|
1216
|
-
}
|
|
1217
|
-
return e5;
|
|
1218
|
-
}, a.readOnly || (a.set = e4 ? function(t4) {
|
|
1219
|
-
this._override(s4, t4);
|
|
1220
|
-
} : function(e5) {
|
|
1221
|
-
t2(this, t3, e5);
|
|
1222
|
-
});
|
|
1223
|
-
}
|
|
1224
|
-
const u2 = n3.type, c2$1 = n3.types;
|
|
1225
|
-
a.cast || (u2 ? a.cast = h(u2) : c2$1 && (Array.isArray(c2$1) ? a.cast = b(S(c2$1[0])) : a.cast = S(c2$1))), c2(a, n3), n3.range && (a.cast = j2(a.cast, n3.range));
|
|
1226
|
-
};
|
|
1227
|
-
}
|
|
1228
|
-
function d2(t3, e4, r) {
|
|
1229
|
-
const n3 = o5(t3, r);
|
|
1230
|
-
n3.json || (n3.json = {});
|
|
1231
|
-
let o3 = n3.json;
|
|
1232
|
-
return void 0 !== e4 && (o3.origins || (o3.origins = {}), o3.origins[e4] || (o3.origins[e4] = {}), o3 = o3.origins[e4]), o3;
|
|
1233
|
-
}
|
|
1234
|
-
function h(t3) {
|
|
1235
|
-
let e4 = 0, r = t3;
|
|
1236
|
-
if (_(t3))
|
|
1237
|
-
return B(t3);
|
|
1238
|
-
for (; Array.isArray(r) && 1 === r.length && "string" != typeof r[0] && "number" != typeof r[0]; )
|
|
1239
|
-
r = r[0], e4++;
|
|
1240
|
-
const f = r;
|
|
1241
|
-
if (k(f))
|
|
1242
|
-
return 0 === e4 ? M(f) : $(M(f), e4);
|
|
1243
|
-
if (1 === e4)
|
|
1244
|
-
return w(f);
|
|
1245
|
-
if (e4 > 1)
|
|
1246
|
-
return j$1(f, e4);
|
|
1247
|
-
const l2 = t3;
|
|
1248
|
-
return l2.from ? l2.from : d$1(l2);
|
|
1249
|
-
}
|
|
1250
|
-
function j2(t3, e4) {
|
|
1251
|
-
return (r) => {
|
|
1252
|
-
let n3 = +t3(r);
|
|
1253
|
-
return null != e4.step && (n3 = Math.round(n3 / e4.step) * e4.step), null != e4.min && (n3 = Math.max(e4.min, n3)), null != e4.max && (n3 = Math.min(e4.max, n3)), n3;
|
|
1254
|
-
};
|
|
1255
|
-
}
|
|
1256
|
-
|
|
1257
|
-
export { p6 as A, I, O$1 as O, S$1 as S, a7 as a, o2 as b, j$2 as c, a2$1 as d, e$1 as e, f, g, has as h, i$1 as i, j$3 as j, k2 as k, o$1 as l, m, n2$2 as n, o3 as o, p, d2 as q, r, s3$1 as s, t2 as t, u, v$2 as v, o5 as w, d$1 as x, y, j2 as z };
|