{"version":3,"sources":["node_modules/@arcgis/core/layers/mixins/ArcGISMapService.js","node_modules/@arcgis/core/layers/support/Sublayer.js","node_modules/@arcgis/core/layers/mixins/SublayersOwner.js"],"sourcesContent":["/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as e } from \"../../chunks/tslib.es6.js\";\nimport r from \"../../request.js\";\nimport { getOrCreateMapValue as t } from \"../../core/MapUtils.js\";\nimport { throwIfAborted as s } from \"../../core/promiseUtils.js\";\nimport { join as o } from \"../../core/urlUtils.js\";\nimport { Version as i } from \"../../core/Version.js\";\nimport { property as a } from \"../../core/accessorSupport/decorators/property.js\";\nimport \"../../core/has.js\";\nimport \"../../core/Logger.js\";\nimport \"../../core/RandomLCG.js\";\nimport { reader as p } from \"../../core/accessorSupport/decorators/reader.js\";\nimport { subclass as l } from \"../../core/accessorSupport/decorators/subclass.js\";\nimport { OriginId as n } from \"../../core/accessorSupport/PropertyOrigin.js\";\nimport c from \"../../geometry/Extent.js\";\nimport u from \"../../geometry/SpatialReference.js\";\nimport { parse as y } from \"../support/arcgisLayerUrl.js\";\nimport { id as m, popupEnabled as d } from \"../support/commonProperties.js\";\nimport { isHostedLayer as h } from \"../../portal/support/portalItemUtils.js\";\nconst f = f => {\n let b = class extends f {\n constructor() {\n super(...arguments), this.capabilities = void 0, this.copyright = null, this.fullExtent = null, this.legendEnabled = !0, this.spatialReference = null, this.version = void 0, this._allLayersAndTablesMap = null;\n }\n readCapabilities(e, r) {\n const t = r.capabilities && r.capabilities.split(\",\").map(e => e.toLowerCase().trim());\n if (!t) return {\n operations: {\n supportsExportMap: !1,\n supportsExportTiles: !1,\n supportsIdentify: !1,\n supportsQuery: !1,\n supportsTileMap: !1\n },\n exportMap: null,\n exportTiles: null\n };\n const s = this.type,\n o = \"tile\" !== s && !!r.supportsDynamicLayers,\n a = t.includes(\"query\"),\n p = t.includes(\"map\"),\n l = !!r.exportTilesAllowed,\n n = t.includes(\"tilemap\"),\n c = t.includes(\"data\"),\n u = \"tile\" !== s && (!r.tileInfo || o),\n y = \"tile\" !== s && (!r.tileInfo || o),\n m = \"tile\" !== s,\n d = r.cimVersion ? i.parse(r.cimVersion) : null,\n h = d?.greaterEqual(1, 4) ?? !1,\n f = d?.greaterEqual(2, 0) ?? !1;\n return {\n operations: {\n supportsExportMap: p,\n supportsExportTiles: l,\n supportsIdentify: a,\n supportsQuery: c,\n supportsTileMap: n\n },\n exportMap: p ? {\n supportsArcadeExpressionForLabeling: h,\n supportsSublayersChanges: m,\n supportsDynamicLayers: o,\n supportsSublayerVisibility: u,\n supportsSublayerDefinitionExpression: y,\n supportsCIMSymbols: f\n } : null,\n exportTiles: l ? {\n maxExportTilesCount: +r.maxExportTilesCount\n } : null\n };\n }\n readVersion(e, r) {\n let t = r.currentVersion;\n return t || (t = r.hasOwnProperty(\"capabilities\") || r.hasOwnProperty(\"tables\") ? 10 : r.hasOwnProperty(\"supportedImageFormatTypes\") ? 9.31 : 9.3), t;\n }\n async fetchRelatedService(e) {\n const r = this.portalItem;\n if (!r || !h(r)) return null;\n this._relatedFeatureServicePromise || (this._relatedFeatureServicePromise = r.fetchRelatedItems({\n relationshipType: \"Service2Service\",\n direction: \"reverse\"\n }, e).then(e => e.find(e => \"Feature Service\" === e.type) ?? null, () => null));\n const t = await this._relatedFeatureServicePromise;\n return s(e), t ? {\n itemId: t.id,\n url: t.url\n } : null;\n }\n async fetchSublayerInfo(e, t) {\n const {\n source: s\n } = e;\n if (this?.portalItem && \"tile\" === this.type && \"map-layer\" === s?.type && h(this.portalItem) && e.originIdOf(\"url\") < n.SERVICE) {\n const r = await this.fetchRelatedService(t);\n r && (e.url = o(r.url, s.mapLayerId.toString()), e.layerItemId = r.itemId);\n }\n const {\n url: i\n } = e;\n let a;\n if (\"data-layer\" === s.type) {\n a = (await r(i, {\n responseType: \"json\",\n query: {\n f: \"json\",\n ...this.customParameters,\n token: this.apiKey\n },\n ...t\n })).data;\n } else if (i && e.originIdOf(\"url\") > n.SERVICE) try {\n const e = await this._fetchAllLayersAndTablesFromService(i),\n r = y(i)?.sublayer ?? s.mapLayerId;\n a = e.get(r);\n } catch {} else {\n let r = e.id;\n \"map-layer\" === s?.type && (r = s.mapLayerId);\n try {\n a = (await this.fetchAllLayersAndTables(t)).get(r);\n } catch {}\n }\n return a;\n }\n async fetchAllLayersAndTables(e) {\n return this._fetchAllLayersAndTablesFromService(this.parsedUrl?.path, e);\n }\n async _fetchAllLayersAndTablesFromService(e, i) {\n await this.load(i), this._allLayersAndTablesMap ||= new Map();\n const a = y(e),\n p = t(this._allLayersAndTablesMap, a?.url.path, () => r(o(a?.url.path, \"/layers\"), {\n responseType: \"json\",\n query: {\n f: \"json\",\n ...this.customParameters,\n token: this.apiKey\n }\n }).then(e => {\n const r = new Map(),\n {\n layers: t,\n tables: s\n } = e.data,\n o = [...(t ?? []), ...(s ?? [])];\n for (const i of o) r.set(i.id, i);\n return {\n result: r\n };\n }, e => ({\n error: e\n }))),\n l = await p;\n if (s(i), \"result\" in l) return l.result;\n throw l.error;\n }\n };\n return e([a({\n readOnly: !0\n })], b.prototype, \"capabilities\", void 0), e([p(\"service\", \"capabilities\", [\"capabilities\", \"exportTilesAllowed\", \"maxExportTilesCount\", \"supportsDynamicLayers\", \"tileInfo\"])], b.prototype, \"readCapabilities\", null), e([a({\n json: {\n read: {\n source: \"copyrightText\"\n }\n }\n })], b.prototype, \"copyright\", void 0), e([a({\n type: c\n })], b.prototype, \"fullExtent\", void 0), e([a(m)], b.prototype, \"id\", void 0), e([a({\n type: Boolean,\n json: {\n origins: {\n service: {\n read: {\n enabled: !1\n }\n }\n },\n read: {\n source: \"showLegend\"\n },\n write: {\n target: \"showLegend\"\n }\n }\n })], b.prototype, \"legendEnabled\", void 0), e([a(d)], b.prototype, \"popupEnabled\", void 0), e([a({\n type: u\n })], b.prototype, \"spatialReference\", void 0), e([a({\n readOnly: !0\n })], b.prototype, \"version\", void 0), e([p(\"service\", \"version\", [\"currentVersion\", \"capabilities\", \"tables\", \"supportedImageFormatTypes\"])], b.prototype, \"readVersion\", null), b = e([l(\"esri.layers.mixins.ArcGISMapService\")], b), b;\n};\nexport { f as ArcGISMapService };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as e } from \"../../chunks/tslib.es6.js\";\nimport \"../../geometry.js\";\nimport r from \"../../PopupTemplate.js\";\nimport \"../../renderers/ClassBreaksRenderer.js\";\nimport \"../../renderers/DictionaryRenderer.js\";\nimport \"../../renderers/DotDensityRenderer.js\";\nimport \"../../renderers/HeatmapRenderer.js\";\nimport \"../../renderers/PieChartRenderer.js\";\nimport \"../../renderers/Renderer.js\";\nimport \"../../renderers/SimpleRenderer.js\";\nimport \"../../renderers/UniqueValueRenderer.js\";\nimport \"../../renderers/support/jsonUtils.js\";\nimport { rendererTypes as t, webSceneRendererTypes as i } from \"../../renderers/support/types.js\";\nimport o from \"../../request.js\";\nimport { isSymbol3D as s } from \"../../symbols.js\";\nimport a from \"../../core/Collection.js\";\nimport l from \"../../core/Error.js\";\nimport has from \"../../core/has.js\";\nimport { IdentifiableMixin as n } from \"../../core/Identifiable.js\";\nimport { clone as p } from \"../../core/lang.js\";\nimport u from \"../../core/Loadable.js\";\nimport y from \"../../core/Logger.js\";\nimport { MultiOriginJSONMixin as d } from \"../../core/MultiOriginJSONSupport.js\";\nimport { sqlAnd as c } from \"../../core/sql.js\";\nimport { objectToQuery as f } from \"../../core/urlUtils.js\";\nimport { property as h } from \"../../core/accessorSupport/decorators/property.js\";\nimport { cast as m } from \"../../core/accessorSupport/decorators/cast.js\";\nimport { reader as b } from \"../../core/accessorSupport/decorators/reader.js\";\nimport { subclass as g } from \"../../core/accessorSupport/decorators/subclass.js\";\nimport { writer as S } from \"../../core/accessorSupport/decorators/writer.js\";\nimport { ensureInteger as I, ensureType as w, Integer as v, ensureClass as j } from \"../../core/accessorSupport/ensureType.js\";\nimport { OriginId as F, nameToId as L } from \"../../core/accessorSupport/PropertyOrigin.js\";\nimport { getProperties as D } from \"../../core/accessorSupport/utils.js\";\nimport x from \"../graphics/sources/support/QueryTask.js\";\nimport { getFeatureType as E } from \"./featureLayerUtils.js\";\nimport P from \"./FeatureType.js\";\nimport O from \"./Field.js\";\nimport q from \"./FieldsIndex.js\";\nimport { fixRendererFields as T } from \"./fieldUtils.js\";\nimport R from \"./LabelClass.js\";\nimport { validateLabelingInfo as _ } from \"./labelingInfo.js\";\nimport A from \"./LayerFloorInfo.js\";\nimport C from \"./Relationship.js\";\nimport { getFeatureLayerCapabilities as V } from \"./serviceCapabilitiesUtils.js\";\nimport { DataLayerSource as k } from \"./source/DataLayerSource.js\";\nimport { MapLayerSource as M } from \"./source/MapLayerSource.js\";\nimport { parseUrl as N } from \"../../rest/utils.js\";\nimport U from \"../../rest/support/AttachmentQuery.js\";\nimport Q from \"../../rest/support/Query.js\";\nimport { createPopupTemplate as B } from \"../../support/popupUtils.js\";\nimport J from \"../../geometry/Extent.js\";\nimport $ from \"../../geometry/SpatialReference.js\";\nimport { featureGeometryTypeKebabDictionary as K } from \"../../geometry/support/typeUtils.js\";\nvar G;\nfunction H(e) {\n return \"esriSMS\" === e?.type;\n}\nfunction z(e, r, t) {\n const i = this.originIdOf(r) >= L(t.origin);\n return {\n ignoreOrigin: !0,\n allowNull: i,\n enabled: !!t && \"map-image\" === t.layer?.type && (t.writeSublayerStructure || i)\n };\n}\nfunction W(e, r, t) {\n return {\n enabled: !!t && \"tile\" === t.layer?.type && (t.origin && this.originIdOf(r) >= L(t.origin) || this._isOverridden(r))\n };\n}\nfunction X(e, r, t) {\n return {\n ignoreOrigin: !0,\n enabled: t && t.writeSublayerStructure || !1\n };\n}\nfunction Y(e, r, t) {\n return {\n ignoreOrigin: !0,\n enabled: !!t && (t.writeSublayerStructure || this.originIdOf(r) >= L(t.origin))\n };\n}\nlet Z = 0;\nconst ee = new Set([\"layer\", \"parent\", \"loaded\", \"loadStatus\", \"loadError\", \"loadWarnings\"]);\nlet re = G = class extends d(n(u)) {\n constructor(e) {\n super(e), this.capabilities = void 0, this.maxScaleRange = {\n minScale: 0,\n maxScale: 0\n }, this.fields = null, this.fullExtent = null, this.geometryType = null, this.globalIdField = null, this.isTable = !1, this.legendEnabled = !0, this.objectIdField = null, this.parent = null, this.popupEnabled = !0, this.popupTemplate = null, this.relationships = null, this.sourceJSON = null, this.spatialReference = null, this.title = null, this.typeIdField = null, this.type = \"sublayer\", this.types = null, this._lastParsedUrl = null;\n }\n async load(e) {\n return this.addResolvingPromise((async () => {\n const {\n layer: r,\n url: t\n } = this;\n if (!r && !t) throw new l(\"sublayer:missing-layer\", \"Sublayer can't be loaded without being part of a layer\", {\n sublayer: this\n });\n const i = r ? await r.fetchSublayerInfo(this, e) : (await o(t, {\n responseType: \"json\",\n query: {\n f: \"json\"\n },\n ...e\n })).data;\n i && (this.sourceJSON = i, this.read({\n layerDefinition: i\n }, {\n origin: \"service\",\n layer: r,\n url: N(t)\n }));\n })()), this;\n }\n readCapabilities(e, r) {\n r = r.layerDefinition || r;\n const {\n operations: {\n supportsQuery: t,\n supportsQueryAttachments: i\n },\n query: {\n supportsFormatPBF: o,\n supportsOrderBy: s,\n supportsPagination: a\n },\n data: {\n supportsAttachment: l\n },\n queryRelated: n\n } = V(r, this.url);\n return {\n exportMap: {\n supportsModification: !!r.canModifyLayer\n },\n operations: {\n supportsQuery: t,\n supportsQueryAttachments: i\n },\n data: {\n supportsAttachment: l\n },\n query: {\n supportsFormatPBF: o,\n supportsOrderBy: s,\n supportsPagination: a\n },\n queryRelated: n\n };\n }\n get defaultPopupTemplate() {\n return this.createPopupTemplate();\n }\n set definitionExpression(e) {\n this._setAndNotifyLayer(\"definitionExpression\", e);\n }\n get effectiveScaleRange() {\n const {\n minScale: e,\n maxScale: r\n } = this;\n return {\n minScale: e,\n maxScale: r\n };\n }\n readMaxScaleRange(e, r) {\n return {\n minScale: (r = r.layerDefinition || r).minScale ?? 0,\n maxScale: r.maxScale ?? 0\n };\n }\n get fieldsIndex() {\n return new q(this.fields || []);\n }\n set floorInfo(e) {\n this._setAndNotifyLayer(\"floorInfo\", e);\n }\n readGlobalIdFieldFromService(e, r) {\n if ((r = r.layerDefinition || r).globalIdField) return r.globalIdField;\n if (r.fields) for (const t of r.fields) if (\"esriFieldTypeGlobalID\" === t.type) return t.name;\n }\n get id() {\n const e = this._get(\"id\");\n return e ?? Z++;\n }\n set id(e) {\n this._get(\"id\") !== e && (!1 !== this.layer?.capabilities?.exportMap?.supportsDynamicLayers ? this._set(\"id\", e) : this._logLockedError(\"id\", \"capability not available 'layer.capabilities.exportMap.supportsDynamicLayers'\"));\n }\n readIsTable(e, r) {\n return \"Table\" === r.type;\n }\n set labelingInfo(e) {\n this._setAndNotifyLayer(\"labelingInfo\", e);\n }\n writeLabelingInfo(e, r, t, i) {\n e && e.length && (r.layerDefinition = {\n drawingInfo: {\n labelingInfo: e.map(e => e.write({}, i))\n }\n });\n }\n set labelsVisible(e) {\n this._setAndNotifyLayer(\"labelsVisible\", e);\n }\n set layer(e) {\n this._set(\"layer\", e), this.sublayers?.forEach(r => r.layer = e);\n }\n set listMode(e) {\n this._set(\"listMode\", e);\n }\n set minScale(e) {\n this._setAndNotifyLayer(\"minScale\", e);\n }\n readMinScale(e, r) {\n return r.minScale || r.layerDefinition?.minScale || 0;\n }\n set maxScale(e) {\n this._setAndNotifyLayer(\"maxScale\", e);\n }\n readMaxScale(e, r) {\n return r.maxScale || r.layerDefinition?.maxScale || 0;\n }\n readObjectIdFieldFromService(e, r) {\n if ((r = r.layerDefinition || r).objectIdField) return r.objectIdField;\n const t = r.fields?.find(e => \"esriFieldTypeOID\" === e.type);\n return t?.name;\n }\n set opacity(e) {\n this._setAndNotifyLayer(\"opacity\", e);\n }\n readOpacity(e, r) {\n const {\n layerDefinition: t\n } = r;\n return 1 - .01 * (t?.transparency ?? t?.drawingInfo?.transparency ?? 0);\n }\n writeOpacity(e, r, t, i) {\n r.layerDefinition = {\n drawingInfo: {\n transparency: 100 - 100 * e\n }\n };\n }\n writeParent(e, r) {\n this.parent && this.parent !== this.layer ? r.parentLayerId = I(this.parent.id) : r.parentLayerId = -1;\n }\n get queryTask() {\n if (!this.layer) return null;\n const {\n capabilities: e,\n fieldsIndex: r,\n layer: t,\n url: i\n } = this,\n {\n spatialReference: o\n } = t,\n s = \"gdbVersion\" in t ? t.gdbVersion : void 0,\n a = has(\"featurelayer-pbf\") && e?.query.supportsFormatPBF;\n return new x({\n fieldsIndex: r,\n gdbVersion: s,\n pbfSupported: a,\n queryAttachmentsSupported: e?.operations?.supportsQueryAttachments ?? !1,\n sourceSpatialReference: o,\n url: i\n });\n }\n set renderer(e) {\n if (T(e, this.fieldsIndex), e) for (const r of e.getSymbols()) if (s(r)) {\n y.getLogger(this).warn(\"Sublayer renderer should use 2D symbols\");\n break;\n }\n this._setAndNotifyLayer(\"renderer\", e);\n }\n get source() {\n return this._get(\"source\") || new M({\n mapLayerId: this.id\n });\n }\n set source(e) {\n this._setAndNotifyLayer(\"source\", e);\n }\n set sublayers(e) {\n this._handleSublayersChange(e, this._get(\"sublayers\")), this._set(\"sublayers\", e);\n }\n castSublayers(e) {\n return w(a.ofType(G), e);\n }\n writeSublayers(e, r, t) {\n this.sublayers?.length && (r[t] = this.sublayers.map(e => e.id).toArray().reverse());\n }\n readTitle(e, r) {\n return r.layerDefinition?.name ?? r.name;\n }\n readTypeIdField(e, r) {\n let t = (r = r.layerDefinition || r).typeIdField;\n if (t && r.fields) {\n t = t.toLowerCase();\n const e = r.fields.find(e => e.name.toLowerCase() === t);\n e && (t = e.name);\n }\n return t;\n }\n get url() {\n const e = this.layer?.parsedUrl ?? this._lastParsedUrl,\n r = this.source;\n if (!e) return null;\n if (this._lastParsedUrl = e, \"map-layer\" === r?.type) return `${e.path}/${r.mapLayerId}`;\n const t = {\n layer: JSON.stringify({\n source: this.source\n })\n };\n return `${e.path}/dynamicLayer?${f(t)}`;\n }\n set url(e) {\n this._overrideIfSome(\"url\", e);\n }\n set visible(e) {\n this._setAndNotifyLayer(\"visible\", e);\n }\n writeVisible(e, r, t, i) {\n r[t] = this.getAtOrigin(\"defaultVisibility\", \"service\") || e;\n }\n clone() {\n const {\n store: e\n } = D(this),\n r = new G();\n return D(r).store = e.clone(ee), this.commitProperty(\"url\"), r._lastParsedUrl = this._lastParsedUrl, r;\n }\n createPopupTemplate(e) {\n return B(this, e);\n }\n createQuery() {\n return new Q({\n returnGeometry: !0,\n where: this.definitionExpression || \"1=1\"\n });\n }\n async createFeatureLayer() {\n if (this.hasOwnProperty(\"sublayers\")) return null;\n const e = (await import(\"../FeatureLayer.js\")).default,\n {\n layer: r,\n url: t\n } = this;\n let i;\n if (t && this.originIdOf(\"url\") > F.SERVICE) i = new e({\n url: t\n });else {\n if (!r?.parsedUrl) throw new l(\"createFeatureLayer:missing-information\", \"Cannot create a FeatureLayer without a url or a parent layer\");\n {\n const t = r.parsedUrl;\n i = new e({\n url: t.path\n }), t && this.source && (\"map-layer\" === this.source.type ? i.layerId = this.source.mapLayerId : i.dynamicDataSource = this.source);\n }\n }\n return null != r?.refreshInterval && (i.refreshInterval = r.refreshInterval), this.definitionExpression && (i.definitionExpression = this.definitionExpression), this.floorInfo && (i.floorInfo = p(this.floorInfo)), this.originIdOf(\"labelingInfo\") > F.SERVICE && (i.labelingInfo = p(this.labelingInfo)), this.originIdOf(\"labelsVisible\") > F.DEFAULTS && (i.labelsVisible = this.labelsVisible), this.originIdOf(\"legendEnabled\") > F.DEFAULTS && (i.legendEnabled = this.legendEnabled), this.originIdOf(\"visible\") > F.DEFAULTS && (i.visible = this.visible), this.originIdOf(\"minScale\") > F.DEFAULTS && (i.minScale = this.minScale), this.originIdOf(\"maxScale\") > F.DEFAULTS && (i.maxScale = this.maxScale), this.originIdOf(\"opacity\") > F.DEFAULTS && (i.opacity = this.opacity), this.originIdOf(\"popupTemplate\") > F.DEFAULTS && (i.popupTemplate = p(this.popupTemplate)), this.originIdOf(\"renderer\") > F.SERVICE && (i.renderer = p(this.renderer)), \"data-layer\" === this.source?.type && (i.dynamicDataSource = this.source.clone()), this.originIdOf(\"title\") > F.DEFAULTS && (i.title = this.title), \"map-image\" === r?.type && r.originIdOf(\"customParameters\") > F.DEFAULTS && (i.customParameters = r.customParameters), \"tile\" === r?.type && r.originIdOf(\"customParameters\") > F.DEFAULTS && (i.customParameters = r.customParameters), i;\n }\n getField(e) {\n return this.fieldsIndex.get(e);\n }\n getFeatureType(e) {\n return E(this.types, this.typeIdField, e);\n }\n getFieldDomain(e, r) {\n const t = r?.feature,\n i = this.getFeatureType(t);\n if (i) {\n const r = i.domains && i.domains[e];\n if (r && \"inherited\" !== r.type) return r;\n }\n return this._getLayerDomain(e);\n }\n async queryAttachments(e, r) {\n await this.load(), e = U.from(e);\n const t = this.capabilities;\n if (!t?.data?.supportsAttachment) throw new l(\"queryAttachments:not-supported\", \"this layer doesn't support attachments\");\n const {\n attachmentTypes: i,\n objectIds: o,\n globalIds: s,\n num: a,\n size: n,\n start: p,\n where: u\n } = e;\n if (!t?.operations?.supportsQueryAttachments) {\n if (i?.length > 0 || s?.length > 0 || n?.length > 0 || a || p || u) throw new l(\"queryAttachments:option-not-supported\", \"when 'capabilities.operations.supportsQueryAttachments' is false, only objectIds is supported\", e);\n }\n if (!(o?.length || s?.length || u)) throw new l(\"queryAttachments:invalid-query\", \"'objectIds', 'globalIds', or 'where' are required to perform attachment query\", e);\n return this.queryTask.executeAttachmentQuery(e, r);\n }\n async queryFeatureCount(e = this.createQuery(), r) {\n if (await this.load(), !this.capabilities.operations.supportsQuery) throw new l(\"queryFeatureCount:not-supported\", \"this layer doesn't support queries.\");\n if (!this.url) throw new l(\"queryFeatureCount:not-supported\", \"this layer has no url.\");\n const t = this.layer?.apiKey;\n return await this.queryTask.executeForCount(e, {\n ...r,\n query: {\n ...this.layer?.customParameters,\n token: t\n }\n });\n }\n async queryFeatures(e = this.createQuery(), r) {\n if (await this.load(), !this.capabilities.operations.supportsQuery) throw new l(\"queryFeatures:not-supported\", \"this layer doesn't support queries.\");\n if (!this.url) throw new l(\"queryFeatures:not-supported\", \"this layer has no url.\");\n const t = await this.queryTask.execute(e, {\n ...r,\n query: {\n ...this.layer?.customParameters,\n token: this.layer?.apiKey\n }\n });\n if (t?.features) for (const i of t.features) i.sourceLayer = this;\n return t;\n }\n async queryObjectIds(e = this.createQuery(), r) {\n if (await this.load(), !this.capabilities.operations.supportsQuery) throw new l(\"queryObjectIds:not-supported\", \"this layer doesn't support queries.\");\n if (!this.url) throw new l(\"queryObjectIds:not-supported\", \"this layer has no url.\");\n const t = this.layer?.apiKey;\n return await this.queryTask.executeForIds(e, {\n ...r,\n query: {\n ...this.layer?.customParameters,\n token: t\n }\n });\n }\n async queryRelatedFeatures(e, r) {\n if (await this.load(), !this.capabilities.operations.supportsQuery) throw new l(\"queryRelatedFeatures:not-supported\", \"this layer doesn't support queries.\");\n if (!this.url) throw new l(\"queryRelatedFeatures:not-supported\", \"this layer has no url.\");\n const t = this.layer?.apiKey;\n return await this.queryTask.executeRelationshipQuery(e, {\n ...r,\n query: {\n ...this.layer?.customParameters,\n token: t\n }\n });\n }\n async queryRelatedFeaturesCount(e, r) {\n if (await this.load(), !this.capabilities.operations.supportsQuery) throw new l(\"queryRelatedFeaturesCount:not-supported\", \"this layer doesn't support queries.\");\n if (!this.capabilities.queryRelated.supportsCount) throw new l(\"queryRelatedFeaturesCount:not-supported\", \"this layer doesn't support query related counts.\");\n if (!this.url) throw new l(\"queryRelatedFeaturesCount:not-supported\", \"this layer has no url.\");\n const t = this.layer?.apiKey;\n return await this.queryTask.executeRelationshipQueryForCount(e, {\n ...r,\n query: {\n ...this.layer?.customParameters,\n token: t\n }\n });\n }\n toExportImageJSON(e) {\n const r = {\n id: this.id,\n source: this.source?.toJSON() || {\n mapLayerId: this.id,\n type: \"mapLayer\"\n }\n },\n t = c(e, this.definitionExpression);\n null != t && (r.definitionExpression = t);\n const i = [\"renderer\", \"labelingInfo\", \"opacity\", \"labelsVisible\"].reduce((e, r) => (e[r] = this.originIdOf(r), e), {}),\n o = Object.keys(i).some(e => i[e] > F.SERVICE);\n if (o) {\n const e = r.drawingInfo = {};\n if (i.renderer > F.SERVICE && (e.renderer = this.renderer ? this.renderer.toJSON() : null), i.labelsVisible > F.SERVICE && (e.showLabels = this.labelsVisible), this.labelsVisible && i.labelingInfo > F.SERVICE) if (this.labelingInfo) {\n !this.loaded && this.labelingInfo?.some(e => !e.labelPlacement) && y.getLogger(this).warnOnce(`A Sublayer (title: ${this.title}, id: ${this.id}) has an undefined 'labelPlacement' and so labels cannot be displayed. Either define a valid 'labelPlacement' or call Sublayer.load() to use a default value based on geometry type.`, {\n sublayer: this\n });\n let r = this.labelingInfo;\n null != this.geometryType && (r = _(this.labelingInfo, K.toJSON(this.geometryType))), e.showLabels = !0, e.labelingInfo = r.filter(e => e.labelPlacement).map(e => e.toJSON({\n origin: \"service\",\n layer: this.layer\n }));\n } else e.showLabels = !1;\n i.opacity > F.SERVICE && (e.transparency = 100 - 100 * this.opacity), this._assignDefaultSymbolColors(e.renderer);\n }\n return r;\n }\n _assignDefaultSymbolColors(e) {\n this._forEachSimpleMarkerSymbols(e, e => {\n e.color || \"esriSMSX\" !== e.style && \"esriSMSCross\" !== e.style || (e.outline?.color ? e.color = e.outline.color : e.color = [0, 0, 0, 0]);\n });\n }\n _forEachSimpleMarkerSymbols(e, r) {\n if (e) {\n const t = (\"uniqueValueInfos\" in e ? e.uniqueValueInfos : \"classBreakInfos\" in e ? e.classBreakInfos : null) ?? [];\n for (const e of t) H(e.symbol) && r(e.symbol);\n \"symbol\" in e && H(e.symbol) && r(e.symbol), \"defaultSymbol\" in e && H(e.defaultSymbol) && r(e.defaultSymbol);\n }\n }\n _setAndNotifyLayer(e, r) {\n const t = this.layer,\n i = this._get(e);\n let o, s;\n switch (e) {\n case \"definitionExpression\":\n case \"floorInfo\":\n o = \"supportsSublayerDefinitionExpression\";\n break;\n case \"minScale\":\n case \"maxScale\":\n case \"visible\":\n o = \"supportsSublayerVisibility\";\n break;\n case \"labelingInfo\":\n case \"labelsVisible\":\n case \"opacity\":\n case \"renderer\":\n case \"source\":\n o = \"supportsDynamicLayers\", s = \"supportsModification\";\n }\n const a = D(this).getDefaultOrigin();\n if (\"service\" !== a) {\n if (o && !1 === this.layer?.capabilities?.exportMap?.[o]) return void this._logLockedError(e, `capability not available 'layer.capabilities.exportMap.${o}'`);\n if (s && !1 === this.capabilities?.exportMap[s]) return void this._logLockedError(e, `capability not available 'capabilities.exportMap.${s}'`);\n }\n \"source\" !== e || \"not-loaded\" === this.loadStatus ? (this._set(e, r), \"service\" !== a && i !== r && t && t.emit && t.emit(\"sublayer-update\", {\n propertyName: e,\n target: this\n })) : this._logLockedError(e, \"'source' can't be changed after calling sublayer.load()\");\n }\n _handleSublayersChange(e, r) {\n r && (r.forEach(e => {\n e.parent = null, e.layer = null;\n }), this.removeAllHandles()), e && (e.forEach(e => {\n e.parent = this, e.layer = this.layer;\n }), this.addHandles([e.on(\"after-add\", ({\n item: e\n }) => {\n e.parent = this, e.layer = this.layer;\n }), e.on(\"after-remove\", ({\n item: e\n }) => {\n e.parent = null, e.layer = null;\n }), e.on(\"before-changes\", e => {\n (this.layer?.capabilities?.exportMap?.supportsSublayersChanges ?? 1) || (y.getLogger(this).error(new l(\"sublayer:sublayers-non-modifiable\", \"Sublayer can't be added, moved, or removed from the layer's sublayers\", {\n sublayer: this,\n layer: this.layer\n })), e.preventDefault());\n })]));\n }\n _logLockedError(e, r) {\n const {\n layer: t,\n declaredClass: i\n } = this;\n y.getLogger(i).error(new l(\"sublayer:locked\", `Property '${String(e)}' can't be changed on Sublayer from the layer '${t?.id}'`, {\n reason: r,\n sublayer: this,\n layer: t\n }));\n }\n _getLayerDomain(e) {\n return this.fieldsIndex.get(e)?.domain ?? null;\n }\n};\nre.test = {\n isMapImageLayerOverridePolicy: e => e === X || e === z,\n isTileImageLayerOverridePolicy: e => e === W\n}, e([h({\n readOnly: !0\n})], re.prototype, \"capabilities\", void 0), e([b(\"service\", \"capabilities\", [\"layerDefinition.canModifyLayer\", \"layerDefinition.capabilities\"])], re.prototype, \"readCapabilities\", null), e([h()], re.prototype, \"defaultPopupTemplate\", null), e([h({\n type: String,\n value: null,\n json: {\n name: \"layerDefinition.definitionExpression\",\n write: {\n allowNull: !0,\n overridePolicy: z\n }\n }\n})], re.prototype, \"definitionExpression\", null), e([h({\n readOnly: !0\n})], re.prototype, \"effectiveScaleRange\", null), e([b(\"service\", \"maxScaleRange\", [\"minScale\", \"maxScale\"])], re.prototype, \"readMaxScaleRange\", null), e([h({\n type: [O],\n json: {\n origins: {\n service: {\n read: {\n source: \"layerDefinition.fields\"\n }\n }\n }\n }\n})], re.prototype, \"fields\", void 0), e([h({\n readOnly: !0\n})], re.prototype, \"fieldsIndex\", null), e([h({\n type: A,\n value: null,\n json: {\n name: \"layerDefinition.floorInfo\",\n read: {\n source: \"layerDefinition.floorInfo\"\n },\n write: {\n target: \"layerDefinition.floorInfo\",\n overridePolicy: z\n },\n origins: {\n \"web-scene\": {\n read: !1,\n write: !1\n }\n }\n }\n})], re.prototype, \"floorInfo\", null), e([h({\n type: J,\n json: {\n read: {\n source: \"layerDefinition.extent\"\n }\n }\n})], re.prototype, \"fullExtent\", void 0), e([h({\n type: K.apiValues,\n json: {\n origins: {\n service: {\n name: \"layerDefinition.geometryType\",\n read: {\n reader: K.read\n }\n }\n }\n }\n})], re.prototype, \"geometryType\", void 0), e([h({\n type: String\n})], re.prototype, \"globalIdField\", void 0), e([b(\"service\", \"globalIdField\", [\"layerDefinition.globalIdField\", \"layerDefinition.fields\"])], re.prototype, \"readGlobalIdFieldFromService\", null), e([h({\n type: v,\n json: {\n write: {\n ignoreOrigin: !0\n }\n }\n})], re.prototype, \"id\", null), e([h({\n readOnly: !0\n})], re.prototype, \"isTable\", void 0), e([b(\"service\", \"isTable\", [\"type\"])], re.prototype, \"readIsTable\", null), e([h({\n value: null,\n type: [R],\n json: {\n read: {\n source: \"layerDefinition.drawingInfo.labelingInfo\"\n },\n write: {\n target: \"layerDefinition.drawingInfo.labelingInfo\",\n overridePolicy: X\n }\n }\n})], re.prototype, \"labelingInfo\", null), e([S(\"labelingInfo\")], re.prototype, \"writeLabelingInfo\", null), e([h({\n type: Boolean,\n value: !0,\n json: {\n read: {\n source: \"layerDefinition.drawingInfo.showLabels\"\n },\n write: {\n target: \"layerDefinition.drawingInfo.showLabels\",\n overridePolicy: X\n }\n }\n})], re.prototype, \"labelsVisible\", null), e([h({\n value: null\n})], re.prototype, \"layer\", null), e([h({\n type: String,\n json: {\n write: {\n overridePolicy: W\n }\n }\n})], re.prototype, \"layerItemId\", void 0), e([h({\n type: Boolean,\n value: !0,\n json: {\n origins: {\n service: {\n read: {\n enabled: !1\n }\n }\n },\n read: {\n source: \"showLegend\"\n },\n write: {\n target: \"showLegend\",\n overridePolicy: Y\n }\n }\n})], re.prototype, \"legendEnabled\", void 0), e([h({\n type: [\"show\", \"hide\", \"hide-children\"],\n value: \"show\",\n json: {\n read: !1,\n write: !1,\n origins: {\n \"web-scene\": {\n read: !0,\n write: !0\n }\n }\n }\n})], re.prototype, \"listMode\", null), e([h({\n type: Number,\n value: 0,\n json: {\n write: {\n overridePolicy: X\n }\n }\n})], re.prototype, \"minScale\", null), e([b(\"minScale\", [\"minScale\", \"layerDefinition.minScale\"])], re.prototype, \"readMinScale\", null), e([h({\n type: Number,\n value: 0,\n json: {\n write: {\n overridePolicy: X\n }\n }\n})], re.prototype, \"maxScale\", null), e([b(\"maxScale\", [\"maxScale\", \"layerDefinition.maxScale\"])], re.prototype, \"readMaxScale\", null), e([h()], re.prototype, \"objectIdField\", void 0), e([b(\"service\", \"objectIdField\", [\"layerDefinition.objectIdField\", \"layerDefinition.fields\"])], re.prototype, \"readObjectIdFieldFromService\", null), e([h({\n type: Number,\n value: 1,\n json: {\n write: {\n target: \"layerDefinition.drawingInfo.transparency\",\n overridePolicy: X\n }\n }\n})], re.prototype, \"opacity\", null), e([b(\"opacity\", [\"layerDefinition.drawingInfo.transparency\", \"layerDefinition.transparency\"])], re.prototype, \"readOpacity\", null), e([S(\"opacity\")], re.prototype, \"writeOpacity\", null), e([h({\n json: {\n type: v,\n write: {\n target: \"parentLayerId\",\n writerEnsuresNonNull: !0,\n overridePolicy: X\n }\n }\n})], re.prototype, \"parent\", void 0), e([S(\"parent\")], re.prototype, \"writeParent\", null), e([h({\n type: Boolean,\n value: !0,\n json: {\n read: {\n source: \"disablePopup\",\n reader: (e, r) => !r.disablePopup\n },\n write: {\n target: \"disablePopup\",\n overridePolicy: Y,\n writer(e, r, t) {\n r[t] = !e;\n }\n }\n }\n})], re.prototype, \"popupEnabled\", void 0), e([h({\n type: r,\n json: {\n read: {\n source: \"popupInfo\"\n },\n write: {\n target: \"popupInfo\",\n overridePolicy: Y\n }\n }\n})], re.prototype, \"popupTemplate\", void 0), e([h({\n readOnly: !0\n})], re.prototype, \"queryTask\", null), e([h({\n type: [C],\n readOnly: !0,\n json: {\n origins: {\n service: {\n read: {\n source: \"layerDefinition.relationships\"\n }\n }\n }\n }\n})], re.prototype, \"relationships\", void 0), e([h({\n types: t,\n value: null,\n json: {\n name: \"layerDefinition.drawingInfo.renderer\",\n write: {\n overridePolicy: X\n },\n origins: {\n \"web-scene\": {\n types: i,\n name: \"layerDefinition.drawingInfo.renderer\",\n write: {\n overridePolicy: X\n }\n }\n }\n }\n})], re.prototype, \"renderer\", null), e([h({\n types: {\n key: \"type\",\n base: null,\n typeMap: {\n \"data-layer\": k,\n \"map-layer\": M\n }\n },\n cast(e) {\n if (e) {\n if (\"mapLayerId\" in e) return j(M, e);\n if (\"dataSource\" in e) return j(k, e);\n }\n return e;\n },\n json: {\n name: \"layerDefinition.source\",\n write: {\n overridePolicy: X\n }\n }\n})], re.prototype, \"source\", null), e([h()], re.prototype, \"sourceJSON\", void 0), e([h({\n type: $,\n json: {\n origins: {\n service: {\n read: {\n source: \"layerDefinition.extent.spatialReference\"\n }\n }\n }\n }\n})], re.prototype, \"spatialReference\", void 0), e([h({\n value: null,\n json: {\n type: [v],\n write: {\n target: \"subLayerIds\",\n allowNull: !0,\n overridePolicy: X\n }\n }\n})], re.prototype, \"sublayers\", null), e([m(\"sublayers\")], re.prototype, \"castSublayers\", null), e([S(\"sublayers\")], re.prototype, \"writeSublayers\", null), e([h({\n type: String,\n json: {\n name: \"name\",\n write: {\n overridePolicy: Y\n }\n }\n})], re.prototype, \"title\", void 0), e([b(\"service\", \"title\", [\"name\", \"layerDefinition.name\"])], re.prototype, \"readTitle\", null), e([h({\n type: String\n})], re.prototype, \"typeIdField\", void 0), e([h({\n json: {\n read: !1\n },\n readOnly: !0,\n value: \"sublayer\"\n})], re.prototype, \"type\", void 0), e([b(\"typeIdField\", [\"layerDefinition.typeIdField\"])], re.prototype, \"readTypeIdField\", null), e([h({\n type: [P],\n json: {\n origins: {\n service: {\n read: {\n source: \"layerDefinition.types\"\n }\n }\n }\n }\n})], re.prototype, \"types\", void 0), e([h({\n type: String,\n json: {\n name: \"layerUrl\",\n write: {\n overridePolicy: W\n }\n }\n})], re.prototype, \"url\", null), e([h({\n type: Boolean,\n value: !0,\n json: {\n read: {\n source: \"defaultVisibility\"\n },\n write: {\n target: \"defaultVisibility\",\n overridePolicy: X\n }\n }\n})], re.prototype, \"visible\", null), e([S(\"visible\")], re.prototype, \"writeVisible\", null), re = G = e([g(\"esri.layers.support.Sublayer\")], re);\nconst te = re;\nexport { te as default };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as e } from \"../../chunks/tslib.es6.js\";\nimport r from \"../../core/Collection.js\";\nimport s from \"../../core/CollectionFlattener.js\";\nimport t from \"../../core/Error.js\";\nimport o from \"../../core/Logger.js\";\nimport { watch as a, sync as l } from \"../../core/reactiveUtils.js\";\nimport { property as i } from \"../../core/accessorSupport/decorators/property.js\";\nimport \"../../core/has.js\";\nimport \"../../core/RandomLCG.js\";\nimport { getProperties as n } from \"../../core/accessorSupport/utils.js\";\nimport { subclass as u } from \"../../core/accessorSupport/decorators/subclass.js\";\nimport { OriginId as y, nameToId as c, idToName as b } from \"../../core/accessorSupport/PropertyOrigin.js\";\nimport d from \"../support/Sublayer.js\";\nimport { isSublayerOverhaul as p } from \"../support/sublayerUtils.js\";\nfunction h(e, r) {\n const s = [],\n t = {};\n return e ? (e.forEach(e => {\n const o = new d();\n if (o.read(e, r), t[o.id] = o, null != e.parentLayerId && -1 !== e.parentLayerId) {\n const r = t[e.parentLayerId];\n r.sublayers || (r.sublayers = []), r.sublayers.unshift(o);\n } else s.unshift(o);\n }), s) : s;\n}\nconst f = r.ofType(d);\nfunction S(e, r) {\n e && e.forEach(e => {\n r(e), e.sublayers && e.sublayers.length && S(e.sublayers, r);\n });\n}\nconst m = m => {\n let E = class extends m {\n constructor(...e) {\n super(...e), this.allSublayers = new s({\n getCollections: () => [this.sublayers],\n getChildrenFunction: e => e.sublayers\n }), this.sublayersSourceJSON = {\n [y.SERVICE]: {},\n [y.PORTAL_ITEM]: {},\n [y.WEB_SCENE]: {},\n [y.WEB_MAP]: {}\n }, this.subtables = null, this.addHandles([a(() => this.sublayers, (e, r) => this._handleSublayersChange(e, r), l), a(() => this.subtables, (e, r) => this._handleSublayersChange(e, r), l)]);\n }\n destroy() {\n this.allSublayers.destroy();\n }\n readSublayers(e, r) {\n if (!r || !e) return;\n const {\n sublayersSourceJSON: s\n } = this,\n t = c(r.origin);\n if (t < y.SERVICE) return;\n if (s[t] = {\n context: r,\n visibleLayers: e.visibleLayers || s[t].visibleLayers,\n layers: e.layers || s[t].layers\n }, t > y.SERVICE) return;\n this._set(\"serviceSublayers\", this.createSublayersForOrigin(\"service\").sublayers);\n const {\n sublayers: o,\n origin: a\n } = this.createSublayersForOrigin(\"web-document\"),\n l = n(this);\n l.setDefaultOrigin(a), this._set(\"sublayers\", new f(o)), l.setDefaultOrigin(\"user\");\n }\n findSublayerById(e) {\n return this.allSublayers.find(r => r.id === e);\n }\n createServiceSublayers() {\n return this.createSublayersForOrigin(\"service\").sublayers;\n }\n createSublayersForOrigin(e) {\n const r = c(\"web-document\" === e ? \"web-map\" : e);\n let s = y.SERVICE,\n t = this.sublayersSourceJSON[y.SERVICE].layers,\n o = this.sublayersSourceJSON[y.SERVICE].context,\n a = null;\n const l = [y.PORTAL_ITEM, y.WEB_SCENE, y.WEB_MAP].filter(e => e <= r);\n for (const y of l) {\n const e = this.sublayersSourceJSON[y];\n p(e.layers) && (s = y, t = e.layers, o = e.context, e.visibleLayers && (a = {\n visibleLayers: e.visibleLayers,\n context: e.context\n }));\n }\n const i = [y.PORTAL_ITEM, y.WEB_SCENE, y.WEB_MAP].filter(e => e > s && e <= r);\n let n = null;\n for (const y of i) {\n const {\n layers: e,\n visibleLayers: r,\n context: s\n } = this.sublayersSourceJSON[y];\n e && (n = {\n layers: e,\n context: s\n }), r && (a = {\n visibleLayers: r,\n context: s\n });\n }\n const u = h(t, o),\n d = new Map(),\n m = new Set();\n if (n) for (const y of n.layers) d.set(y.id, y);\n if (a?.visibleLayers) for (const y of a.visibleLayers) m.add(y);\n return S(u, e => {\n n && e.read(d.get(e.id), n.context), a && e.read({\n defaultVisibility: m.has(e.id)\n }, a.context);\n }), {\n origin: b(s),\n sublayers: new f({\n items: u\n })\n };\n }\n read(e, r) {\n super.read(e, r), this.readSublayers(e, r);\n }\n _handleSublayersChange(e, r) {\n r && (r.forEach(e => {\n e.parent = null, e.layer = null;\n }), this.removeHandles(\"sublayers-owner\")), e && (e.forEach(e => {\n e.parent = this, e.layer = this;\n }), this.addHandles([e.on(\"after-add\", ({\n item: e\n }) => {\n e.parent = this, e.layer = this;\n }), e.on(\"after-remove\", ({\n item: e\n }) => {\n e.parent = null, e.layer = null;\n })], \"sublayers-owner\"), \"tile\" === this.type && this.addHandles(e.on(\"before-changes\", e => {\n o.getLogger(\"esri.layers.TileLayer\").error(new t(\"tilelayer:sublayers-non-modifiable\", \"ISublayer can't be added, moved, or removed from the layer's sublayers\", {\n layer: this\n })), e.preventDefault();\n }), \"sublayers-owner\"));\n }\n };\n return e([i({\n readOnly: !0\n })], E.prototype, \"allSublayers\", void 0), e([i({\n readOnly: !0,\n type: r.ofType(d)\n })], E.prototype, \"serviceSublayers\", void 0), e([i({\n value: null,\n type: f,\n json: {\n read: !1,\n write: {\n allowNull: !0,\n ignoreOrigin: !0\n }\n }\n })], E.prototype, \"sublayers\", void 0), e([i({\n readOnly: !0\n })], E.prototype, \"sublayersSourceJSON\", void 0), e([i({\n type: f,\n json: {\n read: {\n source: \"tables\"\n }\n }\n })], E.prototype, \"subtables\", void 0), E = e([u(\"esri.layers.mixins.SublayersOwner\")], E), E;\n};\nexport { m as SublayersOwner, S as forEachSublayer };"],"mappings":"m0DAsBA,IAAMA,GAAIA,GAAK,CACb,IAAIC,EAAI,cAAcD,CAAE,CACtB,aAAc,CACZ,MAAM,GAAG,SAAS,EAAG,KAAK,aAAe,OAAQ,KAAK,UAAY,KAAM,KAAK,WAAa,KAAM,KAAK,cAAgB,GAAI,KAAK,iBAAmB,KAAM,KAAK,QAAU,OAAQ,KAAK,uBAAyB,IAC9M,CACA,iBAAiBE,EAAGC,EAAG,CACrB,IAAMC,EAAID,EAAE,cAAgBA,EAAE,aAAa,MAAM,GAAG,EAAE,IAAID,IAAKA,GAAE,YAAY,EAAE,KAAK,CAAC,EACrF,GAAI,CAACE,EAAG,MAAO,CACb,WAAY,CACV,kBAAmB,GACnB,oBAAqB,GACrB,iBAAkB,GAClB,cAAe,GACf,gBAAiB,EACnB,EACA,UAAW,KACX,YAAa,IACf,EACA,IAAMC,EAAI,KAAK,KACbC,EAAeD,IAAX,QAAgB,CAAC,CAACF,EAAE,sBACxBI,EAAIH,EAAE,SAAS,OAAO,EACtBI,EAAIJ,EAAE,SAAS,KAAK,EACpBK,EAAI,CAAC,CAACN,EAAE,mBACRO,EAAIN,EAAE,SAAS,SAAS,EACxBO,EAAIP,EAAE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","l","n","c","u","y","m","d","h","__async","V","i","U","__spreadValues","__spreadProps","w","g","G","H","z","n","W","X","Y","Z","ee","re","S","s","m","__async","U","__spreadValues","f","o","a","l","i","e","has","j","p","x","c","w","V","v","t","b","r","u","__spreadProps","y","C","q","K","h","g","te","h","s","t","e","o","te","r","f","V","S","m","E","n","d","C","a","l","y","i","u"],"x_google_ignoreList":[0,1,2]}