(self.webpackChunkRemoteClient = self.webpackChunkRemoteClient || []).push([
  [2176, 6458, 8642],
  {
    69586: (e, a, r) => {
      'use strict';
      r.d(a, { c: () => l });
      var t = r(32101),
        n = r(49900);
      function l(e) {
        return {
          origin: 'portal-item',
          url: (0, t.mN)(e.itemUrl),
          portal: e.portal || n.Z.getDefault(),
          portalItem: e,
          readResourcePaths: [],
        };
      }
    },
    92176: (e, a, r) => {
      'use strict';
      r.r(a), r.d(a, { populateOperationalLayers: () => u });
      var t = r(15324),
        n = (r(76506), r(50406)),
        l = r(67902),
        i = r(56420),
        s = r(60111),
        y = r(36458),
        o = r(68714);
      async function c(e, a, r, t) {
        if (!e.layerType || 'ArcGISFeatureLayer' !== e.layerType) return !1;
        if (e.url) return !1;
        if (e.featureCollectionType && e.featureCollectionType === r) return !0;
        if (e.itemId) {
          const r = new i.default({ id: e.itemId, portal: a });
          return await r.load(), 'Feature Collection' === r.type && (0, s.h)(r, t);
        }
        return !1;
      }
      async function u(e, a, r) {
        if (!a) return;
        const t = [];
        for (const e of a) {
          const a = I(e, r);
          'GroupLayer' === e.layerType ? t.push(w(a, e, r)) : t.push(a);
        }
        const l = await (0, n.as)(t);
        for (const a of l) !a.value || (r.filter && !r.filter(a.value)) || e.add(a.value);
      }
      r(91055),
        r(76996),
        r(21972),
        r(23639),
        r(92143),
        r(31450),
        r(71552),
        r(40642),
        r(34250),
        r(91306),
        r(86656),
        r(22723),
        r(17533),
        r(81172),
        r(27794),
        r(6906),
        r(60991),
        r(73173),
        r(82058),
        r(88762),
        r(32101),
        r(74673),
        r(26341),
        r(22739),
        r(20543),
        r(97714),
        r(21801),
        r(73796),
        r(60947),
        r(2906),
        r(91597),
        r(86787),
        r(35132),
        r(89623),
        r(49900),
        r(66284),
        r(33921),
        r(57251),
        r(3482),
        r(67477),
        r(78533),
        r(74653),
        r(91091),
        r(58943),
        r(74742),
        r(28239),
        r(8642),
        r(69586),
        r(41864);
      const d = {
          ArcGISFeatureLayer: 'FeatureLayer',
          ArcGISImageServiceLayer: 'ImageryLayer',
          ArcGISMapServiceLayer: 'MapImageLayer',
          PointCloudLayer: 'PointCloudLayer',
          ArcGISSceneServiceLayer: 'SceneLayer',
          IntegratedMeshLayer: 'IntegratedMeshLayer',
          BuildingSceneLayer: 'BuildingSceneLayer',
          ArcGISTiledElevationServiceLayer: 'ElevationLayer',
          ArcGISTiledImageServiceLayer: 'ImageryTileLayer',
          ArcGISTiledMapServiceLayer: 'TileLayer',
          GroupLayer: 'GroupLayer',
          WebTiledLayer: 'WebTileLayer',
          CSV: 'CSVLayer',
          VectorTileLayer: 'VectorTileLayer',
          WMS: 'WMSLayer',
          DefaultTileLayer: 'TileLayer',
          KML: 'KMLLayer',
          RasterDataLayer: 'UnsupportedLayer',
        },
        L = {
          ArcGISTiledElevationServiceLayer: 'ElevationLayer',
          DefaultTileLayer: 'ElevationLayer',
          RasterDataElevationLayer: 'UnsupportedLayer',
        },
        p = {
          ArcGISTiledMapServiceLayer: 'TileLayer',
          ArcGISTiledImageServiceLayer: 'ImageryTileLayer',
          OpenStreetMap: 'OpenStreetMapLayer',
          WebTiledLayer: 'WebTileLayer',
          VectorTileLayer: 'VectorTileLayer',
          ArcGISImageServiceLayer: 'UnsupportedLayer',
          WMS: 'UnsupportedLayer',
          ArcGISMapServiceLayer: 'UnsupportedLayer',
          DefaultTileLayer: 'TileLayer',
        },
        f = {
          ArcGISFeatureLayer: 'FeatureLayer',
          ArcGISImageServiceLayer: 'ImageryLayer',
          ArcGISImageServiceVectorLayer: 'ImageryLayer',
          ArcGISMapServiceLayer: 'MapImageLayer',
          ArcGISStreamLayer: 'StreamLayer',
          ArcGISTiledImageServiceLayer: 'ImageryTileLayer',
          ArcGISTiledMapServiceLayer: 'TileLayer',
          BingMapsAerial: 'BingMapsLayer',
          BingMapsRoad: 'BingMapsLayer',
          BingMapsHybrid: 'BingMapsLayer',
          CSV: 'CSVLayer',
          DefaultTileLayer: 'TileLayer',
          GeoRSS: 'GeoRSSLayer',
          GroupLayer: 'GroupLayer',
          KML: 'KMLLayer',
          OGCFeatureLayer: 'OGCFeatureLayer',
          SubtypeGroupLayer: 'UnsupportedLayer',
          VectorTileLayer: 'VectorTileLayer',
          WFS: 'WFSLayer',
          WMS: 'WMSLayer',
          WebTiledLayer: 'WebTileLayer',
        },
        m = { ArcGISFeatureLayer: 'FeatureLayer' },
        S = {
          ArcGISImageServiceLayer: 'ImageryLayer',
          ArcGISImageServiceVectorLayer: 'ImageryLayer',
          ArcGISMapServiceLayer: 'MapImageLayer',
          ArcGISTiledImageServiceLayer: 'ImageryTileLayer',
          ArcGISTiledMapServiceLayer: 'TileLayer',
          OpenStreetMap: 'OpenStreetMapLayer',
          VectorTileLayer: 'VectorTileLayer',
          WebTiledLayer: 'WebTileLayer',
          BingMapsAerial: 'BingMapsLayer',
          BingMapsRoad: 'BingMapsLayer',
          BingMapsHybrid: 'BingMapsLayer',
          WMS: 'WMSLayer',
          DefaultTileLayer: 'TileLayer',
        };
      async function I(e, a) {
        return (async function (e, a, r) {
          const t = new e();
          return (
            t.read(a, r.context),
            'group' === t.type &&
              g(a) &&
              (await (async function (e, a, r) {
                const t = l.l.FeatureLayer,
                  n = await t(),
                  i = a.featureCollection,
                  s = i.showLegend,
                  y = i.layers.map((e) => {
                    const a = new n();
                    return a.read(e, r), null != s && a.read({ showLegend: s }, r), a;
                  });
                e.layers.addMany(y);
              })(t, a, r.context)),
            await (0, o.l)(t, r.context),
            t
          );
        })(
          await (async function (e, a) {
            const r = a.context,
              t = (function (e) {
                let a;
                switch (e.origin) {
                  case 'web-scene':
                    switch (e.layerContainerType) {
                      case 'basemap':
                        a = p;
                        break;
                      case 'ground':
                        a = L;
                        break;
                      default:
                        a = d;
                    }
                    break;
                  default:
                    switch (e.layerContainerType) {
                      case 'basemap':
                        a = S;
                        break;
                      case 'tables':
                        a = m;
                        break;
                      default:
                        a = f;
                    }
                }
                return a;
              })(r);
            let n = e.layerType || e.type;
            !n && a && a.defaultLayerType && (n = a.defaultLayerType);
            const s = t[n];
            let o = s ? l.l[s] : l.l.UnknownLayer;
            const u = r && r.portal;
            if (h(e)) {
              if (e.itemId) {
                const a = new i.default({ id: e.itemId, portal: u });
                await a.load();
                const r = (await (0, y.selectLayerClassPath)(a)).className || 'UnknownLayer';
                o = l.l[r];
              }
            } else
              'ArcGISFeatureLayer' === n
                ? (await (function (e, a) {
                    return c(e, a, 'notes', 'Map Notes');
                  })(e, u))
                  ? (o = l.l.MapNotesLayer)
                  : (await (function (e, a) {
                      return c(e, a, 'route', 'Route Layer');
                    })(e, u))
                  ? (o = l.l.RouteLayer)
                  : g(e) && (o = l.l.GroupLayer)
                : e.wmtsInfo && e.wmtsInfo.url && e.wmtsInfo.layerIdentifier
                ? (o = l.l.WMTSLayer)
                : 'WFS' === n && '2.0.0' !== e.wfsInfo.version && (o = l.l.UnsupportedLayer);
            return o();
          })(e, a),
          e,
          a,
        );
      }
      function g(e) {
        if ('ArcGISFeatureLayer' !== e.layerType || h(e)) return !1;
        const a = e.featureCollection;
        return !!(a && a.layers && a.layers.length > 1);
      }
      function h(e) {
        return 'Feature Collection' === e.type;
      }
      async function w(e, a, r) {
        const n = new t.Z(),
          l = u(n, Array.isArray(a.layers) ? a.layers : [], r),
          i = await e;
        if ((await l, 'group' === i.type)) return i.layers.addMany(n), i;
      }
    },
    8642: (e, a, r) => {
      'use strict';
      r.r(a), r.d(a, { a: () => p, g: () => f, l: () => m, p: () => L, r: () => o });
      var t = r(60991),
        n = r(67902),
        l = r(49900),
        i = r(69586),
        s = r(68714),
        y = r(82058);
      async function o(e) {
        const { data: a } = await (0, y.default)(e, { responseType: 'json', query: { f: 'json' } });
        return a;
      }
      function c(e, a, r) {
        let t = r.layers || [];
        const n = r.tables || [];
        'Feature Collection' === e.portalItem.type &&
          (t.forEach((e) => {
            var a;
            'Table' === (null == e || null == (a = e.layerDefinition) ? void 0 : a.type) &&
              n.push(e);
          }),
          (t = t.filter((e) => {
            var a;
            return 'Table' !== (null == e || null == (a = e.layerDefinition) ? void 0 : a.type);
          }))),
          t.reverse().forEach((t) => {
            const n = u(e, a, r, t);
            e.add(n);
          }),
          n.reverse().forEach((t) => {
            const n = u(e, a, r, t);
            e.tables.add(n);
          });
      }
      function u(e, a, r, t) {
        const n = new a({
          portalItem: e.portalItem.clone(),
          layerId: t.id,
          sublayerTitleMode: 'service-name',
        });
        if ('Feature Collection' === e.portalItem.type) {
          const a = { origin: 'portal-item', portal: e.portalItem.portal || l.Z.getDefault() };
          n.read(t, a);
          const i = r.showLegend;
          null != i && n.read({ showLegend: i }, a);
        }
        return n;
      }
      function d(e, a) {
        if (!1 === e.supportsData) return Promise.resolve(void 0);
        const r = e.instance;
        return r.portalItem
          .fetchData('json', a)
          .catch(() => null)
          .then(async (e) => {
            if (
              (function (e) {
                return 'stream' !== e.type && 'layerId' in e;
              })(r)
            ) {
              let a,
                t = !0;
              return (
                e &&
                  f(e) > 0 &&
                  (null == r.layerId && (r.layerId = p(e)),
                  (a = (function (e, a) {
                    const r = e.layers;
                    if (r) for (let e = 0; e < r.length; e++) if (r[e].id === a) return r[e];
                    const t = e.tables;
                    if (t) for (let e = 0; e < t.length; e++) if (t[e].id === a) return t[e];
                    return null;
                  })(e, r.layerId)),
                  a &&
                    (1 === f(e) && (t = !1),
                    null != e.showLegend && (a.showLegend = e.showLegend))),
                t &&
                  'service-name' !== r.sublayerTitleMode &&
                  (r.sublayerTitleMode = 'item-title-and-service-name'),
                a
              );
            }
            return e;
          });
      }
      async function L(e, a) {
        var r, t;
        if (
          null == (null == (r = e) ? void 0 : r.layers) ||
          null == (null == (t = e) ? void 0 : t.tables)
        ) {
          const r = await o(a);
          ((e = e || {}).layers = e.layers || (null == r ? void 0 : r.layers)),
            (e.tables = e.tables || (null == r ? void 0 : r.tables));
        }
        return e;
      }
      function p(e) {
        const a = e.layers;
        if (a && a.length) return a[0].id;
        const r = e.tables;
        return r && r.length ? r[0].id : null;
      }
      function f(e) {
        var a, r, t, n;
        return (
          (null != (a = null == e || null == (r = e.layers) ? void 0 : r.length) ? a : 0) +
          (null != (t = null == e || null == (n = e.tables) ? void 0 : n.length) ? t : 0)
        );
      }
      var m = Object.freeze({
        __proto__: null,
        load: async function (e, a) {
          const r = e.instance.portalItem;
          return r && r.id
            ? (await r.load(a),
              (function (e) {
                const a = e.instance.portalItem;
                if (-1 === e.supportedTypes.indexOf(a.type))
                  throw new t.Z(
                    'portal:invalid-layer-item-type',
                    "Invalid layer item type '${type}', expected '${expectedType}'",
                    { type: a.type, expectedType: e.supportedTypes.join(', ') },
                  );
              })(e),
              (async function (e, a) {
                const r = e.instance,
                  l = r.portalItem,
                  { url: y, title: u } = l,
                  p = (0, i.c)(l);
                if ('group' === r.type)
                  return (
                    r.read({ title: u }, p),
                    (function (e, a) {
                      let r;
                      const l = e.portalItem.type;
                      switch (l) {
                        case 'Feature Service':
                          r = n.l.FeatureLayer;
                          break;
                        case 'Stream Service':
                          r = n.l.StreamLayer;
                          break;
                        case 'Scene Service':
                          r = n.l.SceneLayer;
                          break;
                        case 'Feature Collection':
                          r = n.l.FeatureLayer;
                          break;
                        default:
                          throw new t.Z(
                            'portal:unsupported-item-type-as-group',
                            `The item type '${l}' is not supported as a 'IGroupLayer'`,
                          );
                      }
                      let i;
                      return r()
                        .then((e) => ((i = e), d(a)))
                        .then(async (a) =>
                          'Feature Service' === l
                            ? ((a = await L(a, e.portalItem.url)), c(e, i, a))
                            : f(a) > 0
                            ? c(e, i, a)
                            : (function (e, a) {
                                return e.portalItem.url
                                  ? o(e.portalItem.url).then((r) => {
                                      var t, n;
                                      function l(e) {
                                        return { id: e.id, name: e.name };
                                      }
                                      r &&
                                        c(e, a, {
                                          layers: null == (t = r.layers) ? void 0 : t.map(l),
                                          tables: null == (n = r.tables) ? void 0 : n.map(l),
                                        });
                                    })
                                  : Promise.resolve();
                              })(e, i),
                        );
                    })(r, e)
                  );
                y && r.read({ url: y }, p);
                const m = await d(e, a);
                return (
                  m && r.read(m, p),
                  (r.resourceReferences = { portalItem: l, paths: p.readResourcePaths }),
                  r.read({ title: u }, p),
                  (0, s.l)(r, p)
                );
              })(e, a))
            : Promise.resolve();
        },
        preprocessFSItemData: L,
        getFirstLayerOrTableId: p,
        getNumLayersAndTables: f,
      });
    },
    67902: (e, a, r) => {
      'use strict';
      r.d(a, { l: () => t });
      const t = {
        BingMapsLayer: async () =>
          (await Promise.all([r.e(4851), r.e(7963)]).then(r.bind(r, 37963))).default,
        BuildingSceneLayer: async () =>
          (
            await Promise.all([
              r.e(4851),
              r.e(135),
              r.e(6748),
              r.e(5959),
              r.e(208),
              r.e(1292),
              r.e(3770),
              r.e(8824),
              r.e(9506),
              r.e(8989),
              r.e(2486),
              r.e(3439),
            ]).then(r.bind(r, 3439))
          ).default,
        CSVLayer: async () =>
          (
            await Promise.all([
              r.e(4851),
              r.e(135),
              r.e(6748),
              r.e(5959),
              r.e(208),
              r.e(1292),
              r.e(3770),
              r.e(8824),
              r.e(9506),
              r.e(4004),
            ]).then(r.bind(r, 44004))
          ).default,
        ElevationLayer: async () =>
          (await Promise.all([r.e(2060), r.e(2204)]).then(r.bind(r, 72204))).default,
        FeatureLayer: async () =>
          (
            await Promise.all([
              r.e(4851),
              r.e(135),
              r.e(6748),
              r.e(5959),
              r.e(208),
              r.e(1292),
              r.e(3770),
              r.e(8824),
              r.e(9506),
              r.e(6202),
            ]).then(r.bind(r, 9506))
          ).default,
        GroupLayer: async () => (await r.e(1128).then(r.bind(r, 1128))).default,
        GeoRSSLayer: async () =>
          (await Promise.all([r.e(4851), r.e(135), r.e(2197)]).then(r.bind(r, 92197))).default,
        ImageryLayer: async () =>
          (
            await Promise.all([
              r.e(4851),
              r.e(135),
              r.e(6748),
              r.e(5959),
              r.e(1292),
              r.e(5528),
              r.e(558),
              r.e(6694),
              r.e(5530),
            ]).then(r.bind(r, 95530))
          ).default,
        ImageryTileLayer: async () =>
          (
            await Promise.all([
              r.e(4851),
              r.e(135),
              r.e(6748),
              r.e(5959),
              r.e(2334),
              r.e(2060),
              r.e(558),
              r.e(6694),
              r.e(8166),
            ]).then(r.bind(r, 68166))
          ).default,
        IntegratedMeshLayer: async () =>
          (await Promise.all([r.e(2334), r.e(8989), r.e(1244)]).then(r.bind(r, 21244))).default,
        KMLLayer: async () =>
          (
            await Promise.all([
              r.e(4851),
              r.e(135),
              r.e(6748),
              r.e(5959),
              r.e(208),
              r.e(1903),
            ]).then(r.bind(r, 21903))
          ).default,
        MapImageLayer: async () =>
          (
            await Promise.all([
              r.e(4851),
              r.e(135),
              r.e(6748),
              r.e(5959),
              r.e(208),
              r.e(1292),
              r.e(3770),
              r.e(9615),
              r.e(2883),
              r.e(9450),
            ]).then(r.bind(r, 62883))
          ).default,
        MapNotesLayer: async () =>
          (
            await Promise.all([
              r.e(4851),
              r.e(135),
              r.e(6748),
              r.e(5959),
              r.e(208),
              r.e(1292),
              r.e(3770),
              r.e(2334),
              r.e(8824),
              r.e(9506),
              r.e(1135),
            ]).then(r.bind(r, 41135))
          ).default,
        OGCFeatureLayer: async () =>
          (
            await Promise.all([
              r.e(4851),
              r.e(135),
              r.e(6748),
              r.e(5959),
              r.e(208),
              r.e(1292),
              r.e(3770),
              r.e(4951),
              r.e(3958),
            ]).then(r.bind(r, 63958))
          ).default,
        OpenStreetMapLayer: async () =>
          (await Promise.all([r.e(4851), r.e(3799), r.e(6043)]).then(r.bind(r, 16043))).default,
        PointCloudLayer: async () =>
          (await Promise.all([r.e(6748), r.e(8989), r.e(9151), r.e(5032)]).then(r.bind(r, 25032)))
            .default,
        RouteLayer: async () =>
          (
            await Promise.all([
              r.e(4851),
              r.e(135),
              r.e(6748),
              r.e(5959),
              r.e(208),
              r.e(1292),
              r.e(3770),
              r.e(8824),
              r.e(9506),
              r.e(4841),
            ]).then(r.bind(r, 24841))
          ).default,
        SceneLayer: async () =>
          (
            await Promise.all([
              r.e(4851),
              r.e(135),
              r.e(6748),
              r.e(5959),
              r.e(208),
              r.e(1292),
              r.e(3770),
              r.e(8824),
              r.e(9506),
              r.e(8989),
              r.e(2486),
              r.e(3741),
            ]).then(r.bind(r, 3741))
          ).default,
        StreamLayer: async () =>
          (
            await Promise.all([
              r.e(4851),
              r.e(135),
              r.e(6748),
              r.e(5959),
              r.e(208),
              r.e(1292),
              r.e(3770),
              r.e(8824),
              r.e(8324),
            ]).then(r.bind(r, 58324))
          ).default,
        TileLayer: async () =>
          (
            await Promise.all([
              r.e(4851),
              r.e(135),
              r.e(6748),
              r.e(5959),
              r.e(208),
              r.e(1292),
              r.e(3770),
              r.e(2060),
              r.e(9615),
              r.e(611),
            ]).then(r.bind(r, 90611))
          ).default,
        UnknownLayer: async () => (await r.e(3117).then(r.bind(r, 63117))).default,
        UnsupportedLayer: async () => (await r.e(8243).then(r.bind(r, 88243))).default,
        VectorTileLayer: async () =>
          (await Promise.all([r.e(2060), r.e(6611), r.e(8326)]).then(r.bind(r, 78326))).default,
        WebTileLayer: async () =>
          (
            await Promise.all([r.e(4851), r.e(3799)])
              .then(r.bind(r, 3799))
              .then(function (e) {
                return e.a;
              })
          ).default,
        WFSLayer: async () =>
          (
            await Promise.all([
              r.e(4851),
              r.e(135),
              r.e(6748),
              r.e(5959),
              r.e(208),
              r.e(1292),
              r.e(3770),
              r.e(2334),
              r.e(8824),
              r.e(4344),
              r.e(4797),
            ]).then(r.bind(r, 44797))
          ).default,
        WMSLayer: async () =>
          (await Promise.all([r.e(4851), r.e(135), r.e(6748), r.e(403)]).then(r.bind(r, 40403)))
            .default,
        WMTSLayer: async () =>
          (await Promise.all([r.e(4851), r.e(3799), r.e(2790)]).then(r.bind(r, 82790))).default,
      };
    },
    60111: (e, a, r) => {
      'use strict';
      function t(e, a) {
        return !!e.typeKeywords && e.typeKeywords.indexOf(a) > -1;
      }
      r.d(a, { h: () => t });
    },
    36458: (e, a, r) => {
      'use strict';
      r.r(a), r.d(a, { fromItem: () => y, selectLayerClassPath: () => o });
      var t = r(60991),
        n = r(67902),
        l = r(56420),
        i = r(8642),
        s = r(60111);
      function y(e) {
        return (
          !e.portalItem ||
            e.portalItem instanceof l.default ||
            (e = { ...e, portalItem: new l.default(e.portalItem) }),
          ((a = e.portalItem), a.load().then(o).then(c)).then((a) => {
            const r = { portalItem: e.portalItem, ...a.properties },
              t = a.constructor;
            return Promise.resolve(new t(r));
          })
        );
        var a;
      }
      function o(e) {
        switch (e.type) {
          case 'Map Service':
            return ((a = e), (0, i.r)(a.url).then((e) => e.tileInfo)).then((e) =>
              e ? { className: 'TileLayer' } : { className: 'MapImageLayer' },
            );
          case 'Feature Service':
            return (function (e) {
              return u(e).then((e) => {
                if ('object' == typeof e) {
                  const a = {};
                  return (
                    null != e.id && (a.layerId = e.id), { className: 'FeatureLayer', properties: a }
                  );
                }
                return { className: 'GroupLayer' };
              });
            })(e);
          case 'Feature Collection':
            return (async function (e) {
              if ((await e.load(), (0, s.h)(e, 'Map Notes'))) return { className: 'MapNotesLayer' };
              if ((0, s.h)(e, 'Route Layer')) return { className: 'RouteLayer' };
              const a = await e.fetchData();
              return 1 === (0, i.g)(a)
                ? { className: 'FeatureLayer' }
                : { className: 'GroupLayer' };
            })(e);
          case 'Scene Service':
            return (function (e) {
              return u(e).then((a) => {
                if ('object' == typeof a) {
                  const r = {};
                  let t;
                  if (
                    (null != a.id
                      ? ((r.layerId = a.id), (t = `${e.url}/layers/${a.id}`))
                      : (t = e.url),
                    Array.isArray(e.typeKeywords) && e.typeKeywords.length > 0)
                  ) {
                    const a = {
                      IntegratedMesh: 'IntegratedMeshLayer',
                      '3DObject': 'SceneLayer',
                      Point: 'SceneLayer',
                      PointCloud: 'PointCloudLayer',
                      Building: 'BuildingSceneLayer',
                    };
                    for (const r of Object.keys(a))
                      if (-1 !== e.typeKeywords.indexOf(r)) return { className: a[r] };
                  }
                  return (0, i.r)(t).then((e) => {
                    let a = 'SceneLayer';
                    const t = {
                      Point: 'SceneLayer',
                      '3DObject': 'SceneLayer',
                      IntegratedMesh: 'IntegratedMeshLayer',
                      PointCloud: 'PointCloudLayer',
                      Building: 'BuildingSceneLayer',
                    };
                    return (
                      e && e.layerType && t[e.layerType] && (a = t[e.layerType]),
                      { className: a, properties: r }
                    );
                  });
                }
                return { className: 'GroupLayer' };
              });
            })(e);
          case 'Image Service':
            return (async function (e) {
              var a, r, t;
              await e.load();
              const n =
                null != (a = null == (r = e.typeKeywords) ? void 0 : r.map((e) => e.toLowerCase()))
                  ? a
                  : [];
              if (n.indexOf('elevation 3d layer') > -1) return { className: 'ElevationLayer' };
              if (n.indexOf('tiled imagery') > -1) return { className: 'ImageryTileLayer' };
              const l = await e.fetchData(),
                s = null == l ? void 0 : l.layerType;
              return 'ArcGISTiledImageServiceLayer' === s
                ? { className: 'ImageryTileLayer' }
                : 'ArcGISImageServiceLayer' === s
                ? { className: 'ImageryLayer' }
                : 'map' ===
                  (null == (t = (await (0, i.r)(e.url)).cacheType) ? void 0 : t.toLowerCase())
                ? { className: 'ImageryTileLayer' }
                : { className: 'ImageryLayer' };
            })(e);
          case 'Stream Service':
            return { className: 'StreamLayer' };
          case 'Vector Tile Service':
            return { className: 'VectorTileLayer' };
          case 'KML':
            return { className: 'KMLLayer' };
          case 'WFS':
            return { className: 'WFSLayer' };
          case 'WMTS':
            return { className: 'WMTSLayer' };
          case 'WMS':
            return { className: 'WMSLayer' };
          case 'Feed':
            return { className: 'StreamLayer' };
          default:
            return Promise.reject(
              new t.Z('portal:unknown-item-type', "Unknown item type '${type}'", { type: e.type }),
            );
        }
        var a;
      }
      function c(e) {
        return (0, n.l[e.className])().then((a) => ({ constructor: a, properties: e.properties }));
      }
      function u(e) {
        return !e.url || e.url.match(/\/\d+$/)
          ? Promise.resolve({})
          : e
              .load()
              .then(() => e.fetchData())
              .then(async (a) =>
                'Feature Service' === e.type
                  ? d((a = await (0, i.p)(a, e.url)))
                  : (0, i.g)(a) > 0
                  ? d(a)
                  : (0, i.r)(e.url).then(d),
              );
      }
      function d(e) {
        return 1 === (0, i.g)(e) && { id: (0, i.a)(e) };
      }
      r(76506),
        r(92143),
        r(31450),
        r(71552),
        r(40642),
        r(81172),
        r(73173),
        r(82058),
        r(88762),
        r(32101),
        r(50406),
        r(74673),
        r(21972),
        r(23639),
        r(34250),
        r(91306),
        r(86656),
        r(22723),
        r(91055),
        r(17533),
        r(27794),
        r(6906),
        r(26341),
        r(22739),
        r(20543),
        r(97714),
        r(21801),
        r(73796),
        r(60947),
        r(2906),
        r(91597),
        r(86787),
        r(35132),
        r(89623),
        r(49900),
        r(66284),
        r(33921),
        r(57251),
        r(3482),
        r(67477),
        r(78533),
        r(74653),
        r(91091),
        r(58943),
        r(74742),
        r(28239),
        r(69586),
        r(68714),
        r(41864);
    },
    68714: (e, a, r) => {
      'use strict';
      r.d(a, { l: () => i });
      var t = r(41864),
        n = r(50406),
        l = r(17533);
      async function i(e, a, r) {
        const i = e && e.getAtOrigin && e.getAtOrigin('renderer', a.origin);
        if (i && 'unique-value' === i.type && i.styleOrigin) {
          const s = await (0, t.r)(i.populateFromStyle());
          if (((0, n.k_)(r), !1 === s.ok)) {
            const r = s.error;
            a &&
              a.messages &&
              a.messages.push(
                new l.W(
                  'renderer:style-reference',
                  `Failed to create unique value renderer from style reference: ${r.message}`,
                  { error: r, context: a },
                ),
              ),
              e.clear('renderer', a.origin);
          }
        }
      }
    },
  },
]);
