chunk-WM52QDLS.js 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847
  1. import {
  2. D,
  3. E,
  4. F,
  5. G as G2,
  6. I,
  7. L,
  8. M as M2,
  9. M2 as M3,
  10. O as O2,
  11. P,
  12. T,
  13. U as U2,
  14. h as h2,
  15. i as i4,
  16. j as j4,
  17. v as v3,
  18. x as x3,
  19. y as y5,
  20. z
  21. } from "./chunk-MEZ7BUMM.js";
  22. import {
  23. c
  24. } from "./chunk-AOQ55JXI.js";
  25. import {
  26. n as n6,
  27. p as p5
  28. } from "./chunk-X42TFXOU.js";
  29. import {
  30. s as s6
  31. } from "./chunk-DN6W4TJU.js";
  32. import {
  33. u
  34. } from "./chunk-OUUXJOLT.js";
  35. import {
  36. i as i2
  37. } from "./chunk-PLQUCCQV.js";
  38. import {
  39. v as v5
  40. } from "./chunk-JZAS4TIG.js";
  41. import {
  42. x as x2
  43. } from "./chunk-NLLFSKB2.js";
  44. import {
  45. a as a2
  46. } from "./chunk-LC3GBQ56.js";
  47. import {
  48. t as t6
  49. } from "./chunk-5GYJGY4C.js";
  50. import {
  51. r as r3
  52. } from "./chunk-OXF7W4BJ.js";
  53. import {
  54. e as e2
  55. } from "./chunk-2RHPWGZL.js";
  56. import {
  57. a as a3
  58. } from "./chunk-XEQ4FTFC.js";
  59. import {
  60. v as v2
  61. } from "./chunk-JM5OVQAD.js";
  62. import {
  63. t as t5
  64. } from "./chunk-TU7WVKU4.js";
  65. import {
  66. i as i3
  67. } from "./chunk-WWXZOC2Y.js";
  68. import {
  69. p as p4
  70. } from "./chunk-ZOKNWEG3.js";
  71. import {
  72. n as n7
  73. } from "./chunk-NQA5XJGK.js";
  74. import {
  75. p as p6
  76. } from "./chunk-EKYSPJO6.js";
  77. import {
  78. i as i5,
  79. j2 as j5
  80. } from "./chunk-JAUFBT5U.js";
  81. import {
  82. o as o4
  83. } from "./chunk-W6U6FKJ3.js";
  84. import {
  85. p as p7
  86. } from "./chunk-7C2KDOAI.js";
  87. import {
  88. n as n5,
  89. o as o3,
  90. p as p2,
  91. p2 as p3
  92. } from "./chunk-RHFU6KWO.js";
  93. import {
  94. C
  95. } from "./chunk-3FNKD2EB.js";
  96. import {
  97. g
  98. } from "./chunk-7C23ILQ4.js";
  99. import {
  100. k as k2
  101. } from "./chunk-P6VVVEX6.js";
  102. import {
  103. M,
  104. j2 as j3
  105. } from "./chunk-3Z755LKF.js";
  106. import {
  107. K,
  108. x
  109. } from "./chunk-WD4J43GZ.js";
  110. import {
  111. i
  112. } from "./chunk-JOYXMSKE.js";
  113. import {
  114. h,
  115. m as m4,
  116. y as y4
  117. } from "./chunk-SZFMKPVM.js";
  118. import {
  119. a
  120. } from "./chunk-YZVAB3DF.js";
  121. import {
  122. v as v4
  123. } from "./chunk-JUWKPBLS.js";
  124. import {
  125. c as c3
  126. } from "./chunk-WLSB4F4I.js";
  127. import {
  128. D as D2,
  129. c as c2,
  130. j as j6,
  131. l,
  132. m as m5,
  133. p as p8,
  134. u as u2
  135. } from "./chunk-GLSWDDR3.js";
  136. import {
  137. O
  138. } from "./chunk-MIQGEDET.js";
  139. import {
  140. F as F2,
  141. x as x4
  142. } from "./chunk-CRGY2SDS.js";
  143. import {
  144. p
  145. } from "./chunk-GN35O2ZO.js";
  146. import {
  147. n as n3
  148. } from "./chunk-XTVKPAWY.js";
  149. import {
  150. t as t4
  151. } from "./chunk-PLWDAYK7.js";
  152. import {
  153. n as n4
  154. } from "./chunk-P3XKUGLS.js";
  155. import {
  156. b as b2
  157. } from "./chunk-DXVOOCG4.js";
  158. import {
  159. t as t3
  160. } from "./chunk-75U5LM2V.js";
  161. import {
  162. v2 as v
  163. } from "./chunk-VCH45Q2I.js";
  164. import {
  165. j,
  166. n as n2
  167. } from "./chunk-LBW34VZ2.js";
  168. import {
  169. m as m3
  170. } from "./chunk-YFSLJIO4.js";
  171. import {
  172. m as m2
  173. } from "./chunk-55RWC67C.js";
  174. import {
  175. U
  176. } from "./chunk-DVUG3KID.js";
  177. import {
  178. G,
  179. j as j2
  180. } from "./chunk-VEGAOVMY.js";
  181. import {
  182. o as o2,
  183. w2
  184. } from "./chunk-6T6G6LCQ.js";
  185. import {
  186. s as s5
  187. } from "./chunk-YEJL5NEF.js";
  188. import {
  189. k2 as k,
  190. r as r2
  191. } from "./chunk-PQFTYGF5.js";
  192. import {
  193. e,
  194. m,
  195. n5 as n,
  196. s5 as s4,
  197. t2,
  198. y3
  199. } from "./chunk-2Z2TG5CU.js";
  200. import {
  201. b
  202. } from "./chunk-SQOPWYIT.js";
  203. import {
  204. w,
  205. y as y2
  206. } from "./chunk-V6P2MAQQ.js";
  207. import {
  208. s2,
  209. s3
  210. } from "./chunk-E5O6P5I2.js";
  211. import {
  212. has,
  213. o,
  214. y
  215. } from "./chunk-SPWQ3AWG.js";
  216. import {
  217. r,
  218. s,
  219. t
  220. } from "./chunk-YXWMMD76.js";
  221. // node_modules/@arcgis/core/layers/graphics/sources/MemorySource.js
  222. var b3 = 0;
  223. var T2 = "esri.layers.graphics.sources.MemorySource";
  224. var F3 = s2.getLogger(T2);
  225. var G3 = class extends m3.LoadableMixin(m2(a(j))) {
  226. constructor(e4) {
  227. super(e4), this._idToClientGraphic = null, this.type = "memory";
  228. }
  229. load(e4) {
  230. const t7 = r(e4) ? e4.signal : null;
  231. return this.addResolvingPromise(this._startWorker(t7)), Promise.resolve(this);
  232. }
  233. destroy() {
  234. var _a;
  235. (_a = this._connection) == null ? void 0 : _a.close(), this._connection = null;
  236. }
  237. get _workerGeometryType() {
  238. var _a;
  239. const e4 = (_a = this.layer) == null ? void 0 : _a.geometryType;
  240. return e4 ? this._geometryTypeRequiresClientGraphicMapping(e4) ? "polygon" : e4 : null;
  241. }
  242. applyEdits(e4) {
  243. return this.load().then(() => this._applyEdits(e4));
  244. }
  245. openPorts() {
  246. return this.load().then(() => this._connection.openPorts());
  247. }
  248. async queryFeatures(e4, t7 = {}) {
  249. await this.load(t7);
  250. const r4 = await this._connection.invoke("queryFeatures", e4 ? e4.toJSON() : null, t7);
  251. r3(e4, this.layer.spatialReference, r4);
  252. const s7 = x2.fromJSON(r4);
  253. if (!this._requiresClientGraphicMapping())
  254. return s7;
  255. const o6 = this.layer.objectIdField;
  256. for (const i7 of s7.features) {
  257. const e5 = i7.attributes[o6], t8 = this._idToClientGraphic.get(e5);
  258. t8 && (i7.geometry = t8.geometry);
  259. }
  260. return s7.geometryType = this.layer.geometryType, s7;
  261. }
  262. async queryFeaturesJSON(e4, t7 = {}) {
  263. if (this._requiresClientGraphicMapping())
  264. throw new s3("query-features-json:unsupported", "Cannot query in JSON format for client only geometry types (mesh and extent)");
  265. await this.load(t7);
  266. const r4 = await this._connection.invoke("queryFeatures", e4 ? e4.toJSON() : null, t7);
  267. return r3(e4, this.layer.spatialReference, r4), r4;
  268. }
  269. queryFeatureCount(e4, t7 = {}) {
  270. return this.load(t7).then(() => this._connection.invoke("queryFeatureCount", e4 ? e4.toJSON() : null, t7));
  271. }
  272. queryObjectIds(e4, t7 = {}) {
  273. return this.load(t7).then(() => this._connection.invoke("queryObjectIds", e4 ? e4.toJSON() : null, t7));
  274. }
  275. queryExtent(e4, t7 = {}) {
  276. return this.load(t7).then(() => this._connection.invoke("queryExtent", e4 ? e4.toJSON() : null, t7)).then((e5) => ({ count: e5.count, extent: w2.fromJSON(e5.extent) }));
  277. }
  278. querySnapping(e4, t7 = {}) {
  279. return this.load(t7).then(() => this._connection.invoke("querySnapping", e4, t7));
  280. }
  281. async _applyEdits(e4) {
  282. if (!this._connection)
  283. throw new s3("feature-layer-source:edit-failure", "Memory source not loaded");
  284. const t7 = this.layer.objectIdField;
  285. let r4 = null;
  286. const o6 = [], i7 = [];
  287. await Promise.all([this._prepareClientMapping(e4.addFeatures, null), this._prepareClientMapping(e4.updateFeatures, null)]);
  288. const n8 = (e5) => "objectId" in e5 && null != e5.objectId ? e5.objectId : "attributes" in e5 && null != e5.attributes[t7] ? e5.attributes[t7] : null;
  289. if (e4.addFeatures && (r4 = this._prepareAddFeatures(e4.addFeatures)), e4.deleteFeatures)
  290. for (const s7 of e4.deleteFeatures) {
  291. const e5 = n8(s7);
  292. null != e5 && o6.push(e5);
  293. }
  294. const a4 = e4.updateFeatures && this._idToClientGraphic ? /* @__PURE__ */ new Map() : null;
  295. if (e4.updateFeatures) {
  296. for (const s7 of e4.updateFeatures)
  297. if (i7.push(this._serializeFeature(s7)), a4) {
  298. const e5 = n8(s7);
  299. null != e5 && a4.set(e5, s7);
  300. }
  301. }
  302. i2(r4 ? r4.features : null, i7, this.layer.spatialReference);
  303. const { fullExtent: l2, featureEditResults: u4 } = await this._connection.invoke("applyEdits", { adds: r4 ? r4.features : [], updates: i7, deletes: o6 });
  304. return this.fullExtent = l2, r4 && r4.finish(u4.uidToObjectId), this._updateClientGraphicIds(a4, u4), this._createEditsResult(u4);
  305. }
  306. async _prepareClientMapping(e4, t7) {
  307. if ("mesh" !== this._layerOrSourceGeometryType || t(e4))
  308. return;
  309. const r4 = [];
  310. for (const { geometry: s7 } of e4)
  311. !r(s7) || "mesh" !== s7.type || s7.hasExtent || s7.loaded || r4.push(s7.load({ signal: t7 }));
  312. r4.length && await Promise.all(r4);
  313. }
  314. _updateClientGraphicIds(e4, t7) {
  315. if (this._idToClientGraphic) {
  316. if (e4)
  317. for (const r4 of t7.updateResults) {
  318. if (!r4.success)
  319. continue;
  320. const t8 = e4.get(r4.objectId);
  321. null != t8 && this._addIdToClientGraphic(t8);
  322. }
  323. for (const e5 of t7.deleteResults)
  324. e5.success && this._idToClientGraphic.delete(e5.objectId);
  325. }
  326. }
  327. _createEditsResult(e4) {
  328. return { addFeatureResults: e4.addResults ? e4.addResults.map(this._createFeatureEditResult, this) : [], updateFeatureResults: e4.updateResults ? e4.updateResults.map(this._createFeatureEditResult, this) : [], deleteFeatureResults: e4.deleteResults ? e4.deleteResults.map(this._createFeatureEditResult, this) : [], addAttachmentResults: [], updateAttachmentResults: [], deleteAttachmentResults: [] };
  329. }
  330. _createFeatureEditResult(e4) {
  331. const t7 = true === e4.success ? null : e4.error || { code: void 0, description: void 0 };
  332. return { objectId: e4.objectId, globalId: e4.globalId, error: t7 ? new s3("feature-layer-source:edit-failure", t7.description, { code: t7.code }) : null };
  333. }
  334. _prepareAddFeatures(e4) {
  335. const t7 = /* @__PURE__ */ new Map(), r4 = new Array(e4.length);
  336. let s7 = null;
  337. for (let i7 = 0; i7 < e4.length; i7++) {
  338. const o7 = e4[i7], n8 = this._serializeFeature(o7);
  339. !s7 && r(o7.geometry) && (s7 = o7.geometry.type), r4[i7] = n8, t7.set(`${n8.uid}`, o7);
  340. }
  341. const o6 = this;
  342. return { features: r4, inferredGeometryType: s7, finish(e5) {
  343. const r5 = o6.sourceJSON.objectIdField;
  344. for (const s8 in e5) {
  345. const i7 = e5[s8], n8 = t7.get(s8);
  346. n8 && (n8.attributes || (n8.attributes = {}), -1 === i7 ? delete n8.attributes[r5] : n8.attributes[r5] = i7, o6._addIdToClientGraphic(n8));
  347. }
  348. } };
  349. }
  350. _addIdToClientGraphic(e4) {
  351. if (!this._idToClientGraphic)
  352. return;
  353. const t7 = this.sourceJSON.objectIdField, r4 = e4.attributes && e4.attributes[t7];
  354. null != r4 && this._idToClientGraphic.set(r4, e4);
  355. }
  356. get _layerOrSourceGeometryType() {
  357. var _a, _b, _c;
  358. return (_c = (_a = this.layer) == null ? void 0 : _a.geometryType) != null ? _c : (_b = this.sourceJSON) == null ? void 0 : _b.geometryType;
  359. }
  360. _requiresClientGraphicMapping() {
  361. return this._geometryTypeRequiresClientGraphicMapping(this._layerOrSourceGeometryType);
  362. }
  363. _geometryRequiresClientGraphicMapping(e4) {
  364. return this._geometryTypeRequiresClientGraphicMapping(e4.type);
  365. }
  366. _geometryTypeRequiresClientGraphicMapping(e4) {
  367. return "mesh" === e4 || "multipatch" === e4 || "extent" === e4;
  368. }
  369. _serializeFeature(e4) {
  370. const { attributes: t7 } = e4, r4 = this._geometryForSerialization(e4), s7 = (b3++).toString();
  371. return r4 ? { uid: s7, geometry: r4.toJSON(), attributes: t7 } : { uid: s7, attributes: t7 };
  372. }
  373. _geometryForSerialization(e4) {
  374. const { geometry: t7 } = e4;
  375. if (t(t7))
  376. return null;
  377. if (this._geometryRequiresClientGraphicMapping(t7)) {
  378. return t7.extent ? v.fromExtent(t7.extent) : null;
  379. }
  380. return t7;
  381. }
  382. async _startWorker(e4) {
  383. this._connection = await u("MemorySourceWorker", { strategy: has("feature-layers-workers") ? "dedicated" : "local", signal: e4 });
  384. const { fields: t7, spatialReference: r4, objectIdField: s7, hasM: o6, hasZ: i7, timeInfo: n8 } = this.layer, a4 = "defaults" === this.layer.originOf("spatialReference");
  385. await this._prepareClientMapping(this.items, e4);
  386. const l2 = this._prepareAddFeatures(this.items);
  387. this.handles.add(this.on("before-changes", (e5) => {
  388. F3.error("Source modifications will not propagate after layer has been loaded. Please use .applyEdits() instead"), e5.preventDefault();
  389. }));
  390. const u4 = { features: l2.features, fields: t7 && t7.map((e5) => e5.toJSON()), geometryType: t3.toJSON(this._workerGeometryType), hasM: "mesh" !== this._layerOrSourceGeometryType && o6, hasZ: "mesh" === this._layerOrSourceGeometryType || i7, objectIdField: s7, spatialReference: a4 ? null : r4 && r4.toJSON(), timeInfo: n8 ? n8.toJSON() : null }, c4 = await this._connection.invoke("load", u4, { signal: e4 });
  391. for (const p10 of c4.warnings)
  392. F3.warn(p10.message, { layer: this.layer, warning: p10 });
  393. c4.featureErrors.length && F3.warn(`Encountered ${c4.featureErrors.length} validation errors while loading features`, c4.featureErrors);
  394. const d = c4.layerDefinition;
  395. this._geometryTypeRequiresClientGraphicMapping(l2.inferredGeometryType) && (d.geometryType = t3.toJSON(l2.inferredGeometryType)), this.sourceJSON = d, this._requiresClientGraphicMapping() && (this._idToClientGraphic = /* @__PURE__ */ new Map()), l2.finish(c4.assignedObjectIds);
  396. }
  397. };
  398. e([n2({ Type: g, ensureType: b(g) })], G3.prototype, "itemType", void 0), e([y3()], G3.prototype, "type", void 0), e([y3({ constructOnly: true })], G3.prototype, "layer", void 0), e([y3({ readOnly: true })], G3.prototype, "_workerGeometryType", null), e([y3()], G3.prototype, "sourceJSON", void 0), G3 = e([n(T2)], G3);
  399. // node_modules/@arcgis/core/layers/support/PublishingInfo.js
  400. var e3 = class extends m {
  401. constructor() {
  402. super(...arguments), this.updating = false, this.status = "unknown";
  403. }
  404. };
  405. e([y3()], e3.prototype, "updating", void 0), e([y3()], e3.prototype, "status", void 0), e3 = e([n("esri.layers.support.PublishingInfo")], e3);
  406. var p9 = e3;
  407. // node_modules/@arcgis/core/layers/mixins/PublishableLayer.js
  408. var o5 = "esri.layers.mixins.PublishableLayer";
  409. var i6 = Symbol(o5);
  410. var u3 = (i7) => {
  411. let n8 = class extends i7 {
  412. get publishingInfo() {
  413. if (this.destroyed)
  414. return null;
  415. const t7 = this._get("publishingInfo");
  416. if (t7)
  417. return t7;
  418. const s7 = new p9();
  419. return this._checkPublishingStatus(s7), s7;
  420. }
  421. _checkPublishingStatus(t7) {
  422. const s7 = 250, e4 = 125;
  423. let r4 = 0;
  424. const o6 = async (s8) => {
  425. let n9;
  426. t7.updating = true;
  427. try {
  428. n9 = await this.fetchPublishingStatus();
  429. } catch (u4) {
  430. n9 = "unavailable";
  431. }
  432. "published" !== n9 && "unavailable" !== n9 || ("publishing" === t7.status && this.refresh(), i8.remove()), t7.status = n9, t7.updating = false, i8.removed || (r4 = setTimeout(o6, s8, s8 + e4));
  433. }, i8 = { removed: false, remove() {
  434. this.removed = true, clearTimeout(r4);
  435. } };
  436. this.when().catch(() => i8.remove()), o6(s7), this.own(i8);
  437. }
  438. };
  439. return e([y3({ readOnly: true, clonable: false })], n8.prototype, "publishingInfo", null), n8 = e([n(o5)], n8), n8;
  440. };
  441. // node_modules/@arcgis/core/layers/FeatureLayer.js
  442. var Ve = "FeatureLayer";
  443. var Qe = "esri.layers.FeatureLayer";
  444. var Ne = s2.getLogger(Qe);
  445. function Ge(e4, r4) {
  446. return new s3("layer:unsupported", `Layer (${e4.title}, ${e4.id}) of type '${e4.declaredClass}' ${r4}`, { layer: e4 });
  447. }
  448. function Je(e4) {
  449. return e4 && e4 instanceof j;
  450. }
  451. var $e = s6();
  452. function We(e4, r4, t7) {
  453. const i7 = !!(t7 == null ? void 0 : t7.writeLayerSchema);
  454. return { enabled: i7, ignoreOrigin: i7 };
  455. }
  456. var Be = class extends M3(n6(p5(u3(a2(n3(c(a3(t4(p(p4(c3(v4(O(o4(i3(i(b2))))))))))))))))) {
  457. constructor(...e4) {
  458. super(...e4), this._handles = new t2(), this.charts = null, this.copyright = null, this.displayField = null, this.dynamicDataSource = null, this.fields = null, this.fieldsIndex = null, this.formTemplate = null, this.fullExtent = null, this.geometryType = null, this.hasM = void 0, this.hasZ = void 0, this.infoFor3D = null, this.isTable = false, this.labelsVisible = true, this.labelingInfo = null, this.legendEnabled = true, this.objectIdField = null, this.outFields = null, this.path = null, this.popupEnabled = true, this.popupTemplate = null, this.screenSizePerspectiveEnabled = true, this.spatialReference = k.WGS84, this.subtypeCode = null, this.templates = null, this.timeInfo = null, this.title = null, this.sublayerTitleMode = "item-title", this.type = "feature", this.typeIdField = null, this.types = null, this.visible = true;
  459. }
  460. destroy() {
  461. var _a;
  462. (_a = this.source) == null ? void 0 : _a.destroy(), this._handles = s(this._handles);
  463. }
  464. normalizeCtorArgs(e4, r4) {
  465. return "string" == typeof e4 ? { url: e4, ...r4 } : e4;
  466. }
  467. load(e4) {
  468. var _a;
  469. const r4 = r(e4) ? e4.signal : null;
  470. if (((_a = this.portalItem) == null ? void 0 : _a.loaded) && this.source)
  471. return this.addResolvingPromise(this.createGraphicsSource(r4).then((e5) => this.initLayerProperties(e5))), Promise.resolve(this);
  472. const t7 = this.loadFromPortal({ supportedTypes: ["Feature Service", "Feature Collection"] }, e4).catch(w).then(async () => {
  473. if (this.url && null == this.layerId && /FeatureServer|MapServer\/*$/i.test(this.url)) {
  474. const e5 = await this._fetchFirstLayerId(r4);
  475. null != e5 && (this.layerId = e5);
  476. }
  477. if (!this.url && !this._hasMemorySource())
  478. throw new s3("feature-layer:missing-url-or-source", "Feature layer must be created with either a url or a source");
  479. return this.initLayerProperties(await this.createGraphicsSource(r4));
  480. }).then(() => this.finishLoadEditablePortalLayer(e4));
  481. return this.addResolvingPromise(t7), Promise.resolve(this);
  482. }
  483. readCapabilities(e4, r4) {
  484. return r4 = r4.layerDefinition || r4, h2(e4, r4, this.url);
  485. }
  486. get createQueryVersion() {
  487. var _a;
  488. return this.commitProperty("definitionExpression"), this.commitProperty("dynamicDataSource"), this.commitProperty("timeExtent"), this.commitProperty("timeOffset"), this.commitProperty("geometryType"), this.commitProperty("gdbVersion"), this.commitProperty("historicMoment"), this.commitProperty("returnZ"), this.commitProperty("capabilities"), this.commitProperty("returnM"), ((_a = this._get("createQueryVersion")) != null ? _a : 0) + 1;
  489. }
  490. get editingEnabled() {
  491. var _a;
  492. return !(this.loaded && !((_a = this.capabilities) == null ? void 0 : _a.operations.supportsEditing)) && (this._isOverridden("editingEnabled") ? this._get("editingEnabled") : this._hasMemorySource() || this.userHasEditingPrivileges);
  493. }
  494. set editingEnabled(e4) {
  495. this._overrideIfSome("editingEnabled", e4);
  496. }
  497. readEditingEnabled(e4, r4) {
  498. return this._readEditingEnabled(r4, false);
  499. }
  500. readEditingEnabledFromWebMap(e4, r4, t7) {
  501. return this._readEditingEnabled(r4, true, t7);
  502. }
  503. writeEditingEnabled(e4, r4) {
  504. this._writeEditingEnabled(e4, r4, false);
  505. }
  506. writeEditingEnabledToWebMap(e4, r4, t7, i7) {
  507. this._writeEditingEnabled(e4, r4, true, i7);
  508. }
  509. readIsTable(e4, r4) {
  510. var _a;
  511. return "Table" === (r4 = (_a = r4 == null ? void 0 : r4.layerDefinition) != null ? _a : r4).type || !r4.geometryType;
  512. }
  513. writeIsTable(e4, r4, t7, i7) {
  514. (i7 == null ? void 0 : i7.writeLayerSchema) && o(t7, e4 ? "Table" : "Feature Layer", r4);
  515. }
  516. readGlobalIdField(e4, r4) {
  517. return z(r4.layerDefinition || r4);
  518. }
  519. readObjectIdField(e4, r4) {
  520. return U2(r4.layerDefinition || r4);
  521. }
  522. get parsedUrl() {
  523. const e4 = j2(this.url);
  524. return null != e4 && (null != this.dynamicDataSource ? e4.path = G(e4.path, "dynamicLayer") : null != this.layerId && (e4.path = G(e4.path, this.layerId.toString()))), e4;
  525. }
  526. get defaultPopupTemplate() {
  527. return this.createPopupTemplate();
  528. }
  529. set renderer(e4) {
  530. F2(e4, this.fieldsIndex), this._set("renderer", e4);
  531. }
  532. readRenderer(e4, r4, s7) {
  533. var _a, _b;
  534. const a4 = (_a = (r4 = r4.layerDefinition || r4).drawingInfo) == null ? void 0 : _a.renderer;
  535. if (a4) {
  536. const e5 = (_b = o3(a4, r4, s7)) != null ? _b : void 0;
  537. return e5 || Ne.error("Failed to create renderer", { rendererDefinition: r4.drawingInfo.renderer, layer: this, context: s7 }), e5;
  538. }
  539. if (r4.defaultSymbol)
  540. return r4.types && r4.types.length ? new C({ defaultSymbol: ze(r4.defaultSymbol, r4, s7), field: r4.typeIdField, uniqueValueInfos: r4.types.map((e5) => ({ id: e5.id, symbol: ze(e5.symbol, e5, s7) })) }) : new p2({ symbol: ze(r4.defaultSymbol, r4, s7) });
  541. }
  542. set source(e4) {
  543. const r4 = this._get("source");
  544. r4 !== e4 && (Je(r4) && this._resetMemorySource(r4), Je(e4) && this._initMemorySource(e4), this._set("source", e4));
  545. }
  546. castSource(e4) {
  547. return e4 ? Array.isArray(e4) || e4 instanceof j ? new G3({ layer: this, items: e4 }) : e4 : null;
  548. }
  549. readSource(e4, r4) {
  550. var _a;
  551. const t7 = x2.fromJSON(r4.featureSet);
  552. return new G3({ layer: this, items: (_a = t7 == null ? void 0 : t7.features) != null ? _a : [] });
  553. }
  554. readTemplates(e4, r4) {
  555. const t7 = r4.editFieldsInfo, i7 = t7 && t7.creatorField, o6 = t7 && t7.editorField;
  556. return e4 = e4 && e4.map((e5) => p6.fromJSON(e5)), this._fixTemplates(e4, i7), this._fixTemplates(e4, o6), e4;
  557. }
  558. readTitle(e4, r4) {
  559. var _a, _b;
  560. const t7 = (_b = (_a = r4.layerDefinition) == null ? void 0 : _a.name) != null ? _b : r4.name, i7 = r4.title || r4.layerDefinition && r4.layerDefinition.title;
  561. if (t7) {
  562. const e5 = this.portalItem && this.portalItem.title;
  563. if ("item-title" === this.sublayerTitleMode)
  564. return this.url ? y4(this.url, t7) : t7;
  565. let r5 = t7;
  566. if (!r5 && this.url) {
  567. const e6 = m4(this.url);
  568. r(e6) && (r5 = e6.title);
  569. }
  570. if (!r5)
  571. return;
  572. return "item-title-and-service-name" === this.sublayerTitleMode && e5 && e5 !== r5 && (r5 = e5 + " - " + r5), h(r5);
  573. }
  574. if ("item-title" === this.sublayerTitleMode && i7)
  575. return i7;
  576. }
  577. readTitleFromWebMap(e4, r4) {
  578. return r4.title || r4.layerDefinition && r4.layerDefinition.name;
  579. }
  580. readTypeIdField(e4, r4) {
  581. let t7 = (r4 = r4.layerDefinition || r4).typeIdField;
  582. if (t7 && r4.fields) {
  583. t7 = t7.toLowerCase();
  584. const e5 = r4.fields.find((e6) => e6.name.toLowerCase() === t7);
  585. e5 && (t7 = e5.name);
  586. }
  587. return t7;
  588. }
  589. readTypes(e4, r4) {
  590. e4 = (r4 = r4.layerDefinition || r4).types;
  591. const t7 = r4.editFieldsInfo, i7 = t7 && t7.creatorField, o6 = t7 && t7.editorField;
  592. return e4 && e4.map((e5) => (e5 = n7.fromJSON(e5), this._fixTemplates(e5.templates, i7), this._fixTemplates(e5.templates, o6), e5));
  593. }
  594. readVisible(e4, r4) {
  595. return r4.layerDefinition && null != r4.layerDefinition.defaultVisibility ? !!r4.layerDefinition.defaultVisibility : null != r4.visibility ? !!r4.visibility : void 0;
  596. }
  597. async addAttachment(e4, r4) {
  598. return F(this, e4, r4, Ve);
  599. }
  600. async updateAttachment(e4, r4, t7) {
  601. return x3(this, e4, r4, t7, Ve);
  602. }
  603. async applyEdits(e4, r4) {
  604. return P(this, e4, r4);
  605. }
  606. on(e4, r4) {
  607. return super.on(e4, r4);
  608. }
  609. createPopupTemplate(e4) {
  610. return p7(this, e4);
  611. }
  612. async createGraphicsSource(e4) {
  613. if (this._hasMemorySource() && this.source)
  614. return this.source.load({ signal: e4 });
  615. const { default: r4 } = await y2(import("./FeatureLayerSource-7N3BYJYZ.js"), e4);
  616. return new r4({ layer: this }).load({ signal: e4 });
  617. }
  618. createQuery() {
  619. const e4 = L(this);
  620. e4.dynamicDataSource = this.dynamicDataSource;
  621. const r4 = r(this.subtypeCode) ? `${this.subtypeField} = ${this.subtypeCode}` : null, t7 = t5(this.definitionExpression, r4);
  622. return e4.where = t7 || "1=1", e4;
  623. }
  624. async deleteAttachments(e4, r4) {
  625. return O2(this, e4, r4, Ve);
  626. }
  627. async fetchRecomputedExtents(e4) {
  628. return v3(this, e4, Ve);
  629. }
  630. getFeatureType(e4) {
  631. const { typeIdField: r4, types: t7 } = this;
  632. if (!r4 || !e4)
  633. return null;
  634. const i7 = e4.attributes ? e4.attributes[r4] : void 0;
  635. if (null == i7)
  636. return null;
  637. let o6 = null;
  638. return t7 == null ? void 0 : t7.some((e5) => {
  639. const { id: r5 } = e5;
  640. return null != r5 && (r5.toString() === i7.toString() && (o6 = e5), !!o6);
  641. }), o6;
  642. }
  643. getFieldDomain(e4, r4) {
  644. const t7 = r4 && r4.feature, i7 = this.getFeatureType(t7);
  645. if (i7) {
  646. const r5 = i7.domains && i7.domains[e4];
  647. if (r5 && "inherited" !== r5.type)
  648. return r5;
  649. }
  650. return this._getLayerDomain(e4);
  651. }
  652. getField(e4) {
  653. return this.fieldsIndex.get(e4);
  654. }
  655. async queryAttachments(e4, r4) {
  656. return E(this, e4, r4, Ve);
  657. }
  658. async queryFeatures(e4, r4) {
  659. var _a;
  660. const t7 = await this.load(), i7 = await t7.source.queryFeatures((_a = x.from(e4)) != null ? _a : t7.createQuery(), r4);
  661. if (i7 == null ? void 0 : i7.features)
  662. for (const o6 of i7.features)
  663. o6.layer = o6.sourceLayer = t7;
  664. return i7;
  665. }
  666. async queryObjectIds(e4, r4) {
  667. return I(this, e4, r4, Ve);
  668. }
  669. async queryFeatureCount(e4, r4) {
  670. return T(this, e4, r4, Ve);
  671. }
  672. async queryExtent(e4, r4) {
  673. return j4(this, e4, r4, Ve);
  674. }
  675. async queryRelatedFeatures(e4, r4) {
  676. return M2(this, e4, r4, Ve);
  677. }
  678. async queryRelatedFeaturesCount(e4, r4) {
  679. return D(this, e4, r4, Ve);
  680. }
  681. async queryTopFeatures(e4, r4) {
  682. var _a;
  683. const { source: t7, capabilities: i7 } = await this.load();
  684. if (!t7.queryTopFeatures || !((_a = i7 == null ? void 0 : i7.query) == null ? void 0 : _a.supportsTopFeaturesQuery))
  685. throw new s3(Ve, "Layer source does not support queryTopFeatures capability");
  686. const o6 = await t7.queryTopFeatures(v5.from(e4), r4);
  687. if (o6 == null ? void 0 : o6.features)
  688. for (const s7 of o6.features)
  689. s7.layer = s7.sourceLayer = this;
  690. return o6;
  691. }
  692. async queryTopObjectIds(e4, r4) {
  693. const { source: t7, capabilities: i7 } = await this.load();
  694. if (!t7.queryTopObjectIds || !(i7 == null ? void 0 : i7.query.supportsTopFeaturesQuery))
  695. throw new s3(Ve, "Layer source does not support queryTopObjectIds capability");
  696. return t7.queryTopObjectIds(v5.from(e4), r4);
  697. }
  698. async queryTopFeaturesExtent(e4, r4) {
  699. var _a;
  700. const { source: t7, capabilities: i7 } = await this.load();
  701. if (!t7.queryTopExtents || !((_a = i7 == null ? void 0 : i7.query) == null ? void 0 : _a.supportsTopFeaturesQuery))
  702. throw new s3(Ve, "Layer source does not support queryTopExtents capability");
  703. return t7.queryTopExtents(v5.from(e4), r4);
  704. }
  705. async queryTopFeatureCount(e4, r4) {
  706. var _a;
  707. const { source: t7, capabilities: i7 } = await this.load();
  708. if (!t7.queryTopCount || !((_a = i7 == null ? void 0 : i7.query) == null ? void 0 : _a.supportsTopFeaturesQuery))
  709. throw new s3(Ve, "Layer source does not support queryFeatureCount capability");
  710. return t7.queryTopCount(v5.from(e4), r4);
  711. }
  712. read(e4, r4) {
  713. const t7 = e4.featureCollection;
  714. if (t7) {
  715. const e5 = t7.layers;
  716. e5 && 1 === e5.length && (super.read(e5[0], r4), null != t7.showLegend && super.read({ showLegend: t7.showLegend }, r4));
  717. }
  718. super.read(e4, r4), r4 && "service" === r4.origin && this.revert(["objectIdField", "fields", "timeInfo", "spatialReference"], "service");
  719. }
  720. write(e4, r4) {
  721. var _a, _b;
  722. r4 = { ...r4, origin: (_a = r4 == null ? void 0 : r4.origin) != null ? _a : void 0, writeLayerSchema: (_b = r4 == null ? void 0 : r4.writeLayerSchema) != null ? _b : this._hasMemorySource() };
  723. const { origin: t7, layerContainerType: i7, messages: o6 } = r4;
  724. if (this.dynamicDataSource)
  725. return o6 == null ? void 0 : o6.push(Ge(this, "using a dynamic data source cannot be written to web scenes, web maps and feature service items")), null;
  726. if (this.isTable) {
  727. if ("web-scene" === t7 || "web-map" === t7 && "tables" !== i7)
  728. return o6 == null ? void 0 : o6.push(Ge(this, "using a table source cannot be written to web scenes and web maps")), null;
  729. if (this._hasMemorySource())
  730. return o6 == null ? void 0 : o6.push(Ge(this, "using an in-memory table source cannot be written to web scenes and web maps")), null;
  731. } else if (this.loaded && "web-map" === t7 && "tables" === i7)
  732. return o6 == null ? void 0 : o6.push(Ge(this, "using a non-table source cannot be written to tables in web maps")), null;
  733. return super.write(e4, r4);
  734. }
  735. clone() {
  736. if (this._hasMemorySource())
  737. throw new s3(Ve, `FeatureLayer (title: ${this.title}, id: ${this.id}) created using in-memory source cannot be cloned`);
  738. return super.clone();
  739. }
  740. serviceSupportsSpatialReference(e4) {
  741. var _a;
  742. return !!this.loaded && ("memory" === ((_a = this.source) == null ? void 0 : _a.type) || e2(this, e4));
  743. }
  744. async save(e4) {
  745. return (await import("./featureLayerUtils-4XVGLMTG.js")).save(this, e4);
  746. }
  747. async saveAs(e4, r4) {
  748. return (await import("./featureLayerUtils-4XVGLMTG.js")).saveAs(this, e4, r4);
  749. }
  750. _readEditingEnabled(e4, r4, t7) {
  751. var _a;
  752. let i7 = (_a = e4.layerDefinition) == null ? void 0 : _a.capabilities;
  753. return i7 ? this._hasEditingCapability(i7) : (i7 = e4.capabilities, r4 && "web-map" === (t7 == null ? void 0 : t7.origin) && !this._hasMemorySource() && i7 ? this._hasEditingCapability(i7) : void 0);
  754. }
  755. _hasEditingCapability(e4) {
  756. return e4.toLowerCase().split(",").map((e5) => e5.trim()).includes("editing");
  757. }
  758. _writeEditingEnabled(e4, r4, t7, i7) {
  759. var _a, _b;
  760. if (!e4) {
  761. const e5 = ((_b = (_a = this.capabilities) == null ? void 0 : _a.operations) == null ? void 0 : _b.supportsSync) ? "Query,Sync" : "Query";
  762. o("layerDefinition.capabilities", e5, r4), t7 && !(i7 == null ? void 0 : i7.writeLayerSchema) && (r4.capabilities = e5);
  763. }
  764. }
  765. _getLayerDomain(e4) {
  766. const r4 = this.fieldsIndex.get(e4);
  767. return r4 ? r4.domain : null;
  768. }
  769. _fetchFirstLayerId(e4) {
  770. return U(this.url, { query: { f: "json", ...this.customParameters, token: this.apiKey }, responseType: "json", signal: e4 }).then((e5) => {
  771. const r4 = e5.data;
  772. if (r4)
  773. return Array.isArray(r4.layers) && r4.layers.length > 0 ? r4.layers[0].id : Array.isArray(r4.tables) && r4.tables.length > 0 ? r4.tables[0].id : void 0;
  774. });
  775. }
  776. async initLayerProperties(e4) {
  777. return this._set("source", e4), e4.sourceJSON && (this.sourceJSON = e4.sourceJSON, this.read(e4.sourceJSON, { origin: "service", url: this.parsedUrl })), this._verifySource(), this._verifyFields(), F2(this.renderer, this.fieldsIndex), x4(this.timeInfo, this.fieldsIndex), t6(this, { origin: "service" });
  778. }
  779. async hasDataChanged() {
  780. return G2(this);
  781. }
  782. async fetchPublishingStatus() {
  783. const e4 = this.source;
  784. return (e4 == null ? void 0 : e4.fetchPublishingStatus) ? e4.fetchPublishingStatus() : "unavailable";
  785. }
  786. _verifyFields() {
  787. var _a, _b, _c;
  788. const e4 = (_b = (_a = this.parsedUrl) == null ? void 0 : _a.path) != null ? _b : "undefined";
  789. this.objectIdField || console.log("FeatureLayer: 'objectIdField' property is not defined (url: " + e4 + ")"), this.isTable || this._hasMemorySource() || -1 !== e4.search(/\/FeatureServer\//i) || ((_c = this.fields) == null ? void 0 : _c.some((e5) => "geometry" === e5.type)) || console.log("FeatureLayer: unable to find field of type 'geometry' in the layer 'fields' list. If you are using a map service layer, features will not have geometry (url: " + e4 + ")");
  790. }
  791. _fixTemplates(e4, r4) {
  792. e4 && e4.forEach((e5) => {
  793. const t7 = e5.prototype && e5.prototype.attributes;
  794. t7 && r4 && delete t7[r4];
  795. });
  796. }
  797. _verifySource() {
  798. if (this._hasMemorySource()) {
  799. if (this.url)
  800. throw new s3("feature-layer:mixed-source-and-url", "FeatureLayer cannot be created with both an in-memory source and a url");
  801. } else if (!this.url)
  802. throw new s3("feature-layer:source-or-url-required", "FeatureLayer requires either a url, a valid portal item or a source");
  803. }
  804. _initMemorySource(e4) {
  805. e4.forEach((e5) => {
  806. e5.layer = this, e5.sourceLayer = this;
  807. }), this._handles.add([e4.on("after-add", (e5) => {
  808. e5.item.layer = this, e5.item.sourceLayer = this;
  809. }), e4.on("after-remove", (e5) => {
  810. e5.item.layer = null, e5.item.sourceLayer = null;
  811. })], "fl-source");
  812. }
  813. _resetMemorySource(e4) {
  814. e4.forEach((e5) => {
  815. e5.layer = null, e5.sourceLayer = null;
  816. }), this._handles.remove("fl-source");
  817. }
  818. _hasMemorySource() {
  819. return !(this.url || !this.source);
  820. }
  821. };
  822. e([o2("service", "capabilities")], Be.prototype, "readCapabilities", null), e([y3({ json: { origins: { "portal-item": { write: true }, "web-map": { write: true } } } })], Be.prototype, "charts", void 0), e([y3({ readOnly: true })], Be.prototype, "createQueryVersion", null), e([y3({ json: { read: { source: "layerDefinition.copyrightText" } } })], Be.prototype, "copyright", void 0), e([y3({ json: { read: { source: "layerDefinition.displayField" } } })], Be.prototype, "displayField", void 0), e([y3({ types: j3, readOnly: true })], Be.prototype, "defaultSymbol", void 0), e([y3({ type: K })], Be.prototype, "dynamicDataSource", void 0), e([y3({ type: Boolean })], Be.prototype, "editingEnabled", null), e([o2(["portal-item", "web-scene"], "editingEnabled", ["layerDefinition.capabilities"])], Be.prototype, "readEditingEnabled", null), e([o2("web-map", "editingEnabled", ["capabilities", "layerDefinition.capabilities"])], Be.prototype, "readEditingEnabledFromWebMap", null), e([r2(["portal-item", "web-scene"], "editingEnabled", { "layerDefinition.capabilities": { type: String } })], Be.prototype, "writeEditingEnabled", null), e([r2("web-map", "editingEnabled", { capabilities: { type: String }, "layerDefinition.capabilities": { type: String } })], Be.prototype, "writeEditingEnabledToWebMap", null), e([y3({ ...$e.fields, json: { read: { source: "layerDefinition.fields" }, origins: { service: { name: "fields" }, "web-map": { write: { target: "layerDefinition.fields", overridePolicy: We } } } } })], Be.prototype, "fields", void 0), e([y3($e.fieldsIndex)], Be.prototype, "fieldsIndex", void 0), e([y3({ type: y5, json: { name: "formInfo", write: true, origins: { "web-scene": { read: false, write: false } } } })], Be.prototype, "formTemplate", void 0), e([y3({ json: { read: { source: "layerDefinition.extent" } } })], Be.prototype, "fullExtent", void 0), e([y3({ json: { origins: { "web-map": { write: { target: "layerDefinition.geometryType", overridePolicy: We, writer(e4, r4, t7) {
  823. const i7 = e4 ? i4.toJSON(e4) : null;
  824. i7 && o(t7, i7, r4);
  825. } } } }, read: { source: "layerDefinition.geometryType", reader: i4.read } } })], Be.prototype, "geometryType", void 0), e([y3({ json: { read: { source: "layerDefinition.hasM" } } })], Be.prototype, "hasM", void 0), e([y3({ json: { read: { source: "layerDefinition.hasZ" } } })], Be.prototype, "hasZ", void 0), e([y3(j6)], Be.prototype, "id", void 0), e([y3({ readOnly: true, json: { origins: { service: { read: true } }, read: false } })], Be.prototype, "infoFor3D", void 0), e([y3({ json: { origins: { "web-map": { write: { target: "layerDefinition.type" } } } } })], Be.prototype, "isTable", void 0), e([o2("service", "isTable", ["type", "geometryType"]), o2("isTable", ["layerDefinition.type", "layerDefinition.geometryType"])], Be.prototype, "readIsTable", null), e([r2("web-map", "isTable")], Be.prototype, "writeIsTable", null), e([y3(m5)], Be.prototype, "labelsVisible", void 0), e([y3({ type: [j5], json: { origins: { service: { read: { source: "drawingInfo.labelingInfo", reader: i5 }, write: { target: "drawingInfo.labelingInfo", enabled: false } } }, read: { source: "layerDefinition.drawingInfo.labelingInfo", reader: i5 }, write: { target: "layerDefinition.drawingInfo.labelingInfo" } } })], Be.prototype, "labelingInfo", void 0), e([y3((() => {
  826. const e4 = y(u2);
  827. return e4.json.origins["portal-item"] = { write: { target: "layerDefinition.drawingInfo.transparency", writer(e5, r4, t7) {
  828. o(t7, n4(e5), r4);
  829. } } }, e4;
  830. })())], Be.prototype, "opacity", void 0), e([y3(c2)], Be.prototype, "legendEnabled", void 0), e([y3({ type: ["show", "hide"], json: (() => {
  831. const e4 = y(D2.json);
  832. return e4.origins["portal-item"] = { read: false, write: false }, e4;
  833. })() })], Be.prototype, "listMode", void 0), e([o2("globalIdField", ["layerDefinition.globalIdField", "layerDefinition.fields"])], Be.prototype, "readGlobalIdField", null), e([y3({ json: { origins: { "web-map": { write: { target: "layerDefinition.objectIdField", overridePolicy: We } } } } })], Be.prototype, "objectIdField", void 0), e([o2("objectIdField", ["layerDefinition.objectIdField", "layerDefinition.fields"])], Be.prototype, "readObjectIdField", null), e([y3({ value: "ArcGISFeatureLayer", type: ["ArcGISFeatureLayer"] })], Be.prototype, "operationalLayerType", void 0), e([y3($e.outFields)], Be.prototype, "outFields", void 0), e([y3({ readOnly: true })], Be.prototype, "parsedUrl", null), e([y3({ type: String, json: { origins: { "web-scene": { read: true, write: true } }, read: false } })], Be.prototype, "path", void 0), e([y3(p8)], Be.prototype, "popupEnabled", void 0), e([y3({ type: k2, json: { name: "popupInfo", write: true } })], Be.prototype, "popupTemplate", void 0), e([y3({ readOnly: true })], Be.prototype, "defaultPopupTemplate", null), e([y3({ types: p3, json: { origins: { service: { write: { target: "drawingInfo.renderer", enabled: false } }, "web-scene": { types: n5, name: "layerDefinition.drawingInfo.renderer", write: { overridePolicy: (e4, r4, t7) => ({ ignoreOrigin: t7 == null ? void 0 : t7.writeLayerSchema }) } } }, write: { target: "layerDefinition.drawingInfo.renderer", overridePolicy: (e4, r4, t7) => ({ ignoreOrigin: t7 == null ? void 0 : t7.writeLayerSchema }) } } })], Be.prototype, "renderer", null), e([o2("service", "renderer", ["drawingInfo.renderer", "defaultSymbol"]), o2("renderer", ["layerDefinition.drawingInfo.renderer", "layerDefinition.defaultSymbol"])], Be.prototype, "readRenderer", null), e([y3((() => {
  834. const e4 = y(l);
  835. return e4.json.origins["portal-item"] = { read: false, write: false }, e4;
  836. })())], Be.prototype, "screenSizePerspectiveEnabled", void 0), e([y3({ clonable: false })], Be.prototype, "source", null), e([s5("source")], Be.prototype, "castSource", null), e([o2("portal-item", "source", ["featureSet"]), o2("web-map", "source", ["featureSet"])], Be.prototype, "readSource", null), e([y3({ json: { read: { source: "layerDefinition.extent.spatialReference" } } })], Be.prototype, "spatialReference", void 0), e([y3({ type: Number })], Be.prototype, "subtypeCode", void 0), e([y3({ type: [p6] })], Be.prototype, "templates", void 0), e([o2("templates", ["editFieldsInfo", "creatorField", "editorField", "templates"])], Be.prototype, "readTemplates", null), e([y3({ type: v2 })], Be.prototype, "timeInfo", void 0), e([y3()], Be.prototype, "title", void 0), e([o2("service", "title", ["name"]), o2("portal-item", "title", ["layerDefinition.title", "layerDefinition.name", "title"])], Be.prototype, "readTitle", null), e([o2("web-map", "title", ["layerDefinition.name", "title"])], Be.prototype, "readTitleFromWebMap", null), e([y3({ type: String })], Be.prototype, "sublayerTitleMode", void 0), e([y3({ json: { read: false } })], Be.prototype, "type", void 0), e([y3({ type: String })], Be.prototype, "typeIdField", void 0), e([o2("service", "typeIdField"), o2("typeIdField", ["layerDefinition.typeIdField"])], Be.prototype, "readTypeIdField", null), e([y3({ type: [n7] })], Be.prototype, "types", void 0), e([o2("service", "types", ["types"]), o2("types", ["layerDefinition.types"])], Be.prototype, "readTypes", null), e([y3({ type: Boolean, json: { origins: { "portal-item": { write: { target: "layerDefinition.defaultVisibility" } } } } })], Be.prototype, "visible", void 0), e([o2("portal-item", "visible", ["visibility", "layerDefinition.defaultVisibility"])], Be.prototype, "readVisible", null), Be = e([n(Qe)], Be);
  837. var ze = s4({ types: M });
  838. var Ze = Be;
  839. export {
  840. Ze
  841. };
  842. //# sourceMappingURL=chunk-WM52QDLS.js.map