(self.webpackChunkRemoteClient = self.webpackChunkRemoteClient || []).push([
  [9214],
  {
    11385: (e, t, r) => {
      'use strict';
      r.d(t, { P: () => o });
      var s = r(76506),
        n = r(91055);
      const i = (0, s.h)('esri-text-decoder') ? new TextDecoder('utf-8') : null,
        a = (0, s.h)('safari') || (0, s.h)('ios') ? 6 : (0, s.h)('ff') ? 12 : 32;
      class o {
        constructor(e, t, r = 0, s = e ? e.byteLength : 0) {
          (this._tag = 0), (this._dataType = 99), this.init(e, t, r, s);
        }
        init(e, t, r, s) {
          (this._data = e), (this._dataView = t), (this._pos = r), (this._end = s);
        }
        clone() {
          return new o(this._data, this._dataView, this._pos, this._end);
        }
        pos() {
          return this._pos;
        }
        move(e) {
          this._pos = e;
        }
        nextTag(e) {
          for (;;) {
            if (this._pos === this._end) return !1;
            const t = this._decodeVarint();
            if (((this._tag = t >> 3), (this._dataType = 7 & t), !e || e === this._tag)) break;
            this.skip();
          }
          return !0;
        }
        next() {
          if (this._pos === this._end) return !1;
          const e = this._decodeVarint();
          return (this._tag = e >> 3), (this._dataType = 7 & e), !0;
        }
        empty() {
          return this._pos >= this._end;
        }
        tag() {
          return this._tag;
        }
        getInt32() {
          return this._decodeVarint();
        }
        getInt64() {
          return this._decodeVarint();
        }
        getUInt32() {
          let e = 4294967295;
          return (
            (e = (127 & this._data[this._pos]) >>> 0),
            this._data[this._pos++] < 128
              ? e
              : ((e = (e | ((127 & this._data[this._pos]) << 7)) >>> 0),
                this._data[this._pos++] < 128
                  ? e
                  : ((e = (e | ((127 & this._data[this._pos]) << 14)) >>> 0),
                    this._data[this._pos++] < 128
                      ? e
                      : ((e = (e | ((127 & this._data[this._pos]) << 21)) >>> 0),
                        this._data[this._pos++] < 128
                          ? e
                          : ((e = (e | ((15 & this._data[this._pos]) << 28)) >>> 0),
                            this._data[this._pos++] < 128 ? e : void 0))))
          );
        }
        getUInt64() {
          return this._decodeVarint();
        }
        getSInt32() {
          const e = this.getUInt32();
          return ((e >>> 1) ^ -(1 & e)) | 0;
        }
        getSInt64() {
          return this._decodeSVarint();
        }
        getBool() {
          const e = 0 !== this._data[this._pos];
          return this._skip(1), e;
        }
        getEnum() {
          return this._decodeVarint();
        }
        getFixed64() {
          const e = this._dataView,
            t = this._pos,
            r = e.getUint32(t, !0) + 4294967296 * e.getUint32(t + 4, !0);
          return this._skip(8), r;
        }
        getSFixed64() {
          const e = this._dataView,
            t = this._pos,
            r = e.getUint32(t, !0) + 4294967296 * e.getInt32(t + 4, !0);
          return this._skip(8), r;
        }
        getDouble() {
          const e = this._dataView.getFloat64(this._pos, !0);
          return this._skip(8), e;
        }
        getFixed32() {
          const e = this._dataView.getUint32(this._pos, !0);
          return this._skip(4), e;
        }
        getSFixed32() {
          const e = this._dataView.getInt32(this._pos, !0);
          return this._skip(4), e;
        }
        getFloat() {
          const e = this._dataView.getFloat32(this._pos, !0);
          return this._skip(4), e;
        }
        getString() {
          const e = this._getLength(),
            t = this._pos,
            r = this._toString(this._data, t, t + e);
          return this._skip(e), r;
        }
        getBytes() {
          const e = this._getLength(),
            t = this._pos,
            r = this._toBytes(this._data, t, t + e);
          return this._skip(e), r;
        }
        getLength() {
          return this._getLengthUnsafe();
        }
        processMessageWithArgs(e, t, r, s) {
          const n = this.getMessage(),
            i = e(n, t, r, s);
          return n.release(), i;
        }
        processMessage(e) {
          const t = this.getMessage(),
            r = e(t);
          return t.release(), r;
        }
        getMessage() {
          const e = this._getLength(),
            t = o.pool.acquire();
          return t.init(this._data, this._dataView, this._pos, this._pos + e), this._skip(e), t;
        }
        release() {
          o.pool.release(this);
        }
        dataType() {
          return this._dataType;
        }
        skip() {
          switch (this._dataType) {
            case 0:
              this._decodeVarint();
              break;
            case 1:
              this._skip(8);
              break;
            case 2:
              this._skip(this._getLength());
              break;
            case 5:
              this._skip(4);
              break;
            default:
              throw new Error('Invalid data type!');
          }
        }
        skipLen(e) {
          this._skip(e);
        }
        _skip(e) {
          if (this._pos + e > this._end) throw new Error('Attempt to skip past the end of buffer!');
          this._pos += e;
        }
        _decodeVarint() {
          const e = this._data;
          let t,
            r = this._pos,
            s = 0;
          if (this._end - r >= 10)
            do {
              if (((t = e[r++]), (s |= 127 & t), 0 == (128 & t))) break;
              if (((t = e[r++]), (s |= (127 & t) << 7), 0 == (128 & t))) break;
              if (((t = e[r++]), (s |= (127 & t) << 14), 0 == (128 & t))) break;
              if (((t = e[r++]), (s |= (127 & t) << 21), 0 == (128 & t))) break;
              if (((t = e[r++]), (s += 268435456 * (127 & t)), 0 == (128 & t))) break;
              if (((t = e[r++]), (s += 34359738368 * (127 & t)), 0 == (128 & t))) break;
              if (((t = e[r++]), (s += 4398046511104 * (127 & t)), 0 == (128 & t))) break;
              if (((t = e[r++]), (s += 562949953421312 * (127 & t)), 0 == (128 & t))) break;
              if (((t = e[r++]), (s += 72057594037927940 * (127 & t)), 0 == (128 & t))) break;
              if (((t = e[r++]), (s += 0x8000000000000000 * (127 & t)), 0 == (128 & t))) break;
              throw new Error('Varint too long!');
            } while (0);
          else {
            let n = 1;
            for (; r !== this._end && ((t = e[r]), 0 != (128 & t)); )
              ++r, (s += (127 & t) * n), (n *= 128);
            if (r === this._end) throw new Error('Varint overrun!');
            ++r, (s += t * n);
          }
          return (this._pos = r), s;
        }
        _decodeSVarint() {
          const e = this._decodeVarint();
          return e % 2 ? -(e + 1) / 2 : e / 2;
        }
        _getLength() {
          if (2 !== this._dataType) throw new Error('Not a delimited data type!');
          return this._decodeVarint();
        }
        _getLengthUnsafe() {
          return this.getUInt32();
        }
        _toString(e, t, r) {
          if ((r = Math.min(this._end, r)) - t > a && i) {
            const s = e.subarray(t, r);
            return i.decode(s);
          }
          let s = '',
            n = '';
          for (let i = t; i < r; ++i) {
            const t = e[i];
            128 & t
              ? (n += '%' + t.toString(16))
              : ((s += decodeURIComponent(n) + String.fromCharCode(t)), (n = ''));
          }
          return n.length && (s += decodeURIComponent(n)), s;
        }
        _toBytes(e, t, r) {
          return (r = Math.min(this._end, r)), new Uint8Array(e.buffer, t, r - t);
        }
      }
      o.pool = new n.O(o, null, (e) => {
        (e._data = null), (e._dataView = null);
      });
    },
    76733: (e, t, r) => {
      'use strict';
      r.d(t, { O: () => d, a: () => q, b: () => f, p: () => P });
      var s = r(60991),
        n = r(76506),
        i = r(11385),
        a = r(85674),
        o = r(53785),
        u = r(60947),
        c = r(9006);
      const l = [
        'esriGeometryPoint',
        'esriGeometryMultipoint',
        'esriGeometryPolyline',
        'esriGeometryPolygon',
      ];
      class d {
        constructor(e) {
          (this.options = e),
            (this.geometryTypes = l),
            (this._coordinatePtr = 0),
            (this._vertexDimension = 0);
        }
        createFeatureResult() {
          return new c.O();
        }
        prepareFeatures(e) {
          (this._vertexDimension = 2),
            e.hasZ && this._vertexDimension++,
            e.hasM && this._vertexDimension++;
        }
        finishFeatureResult(e) {
          if (
            !e ||
            !e.features ||
            !e.hasZ ||
            !this.options.sourceSpatialReference ||
            !e.spatialReference ||
            (0, u.e)(e.spatialReference, this.options.sourceSpatialReference) ||
            e.spatialReference.vcsWkid
          )
            return;
          const t = (0, o.d)(this.options.sourceSpatialReference) / (0, o.d)(e.spatialReference);
          if (1 !== t)
            for (const r of e.features) {
              if (!r.geometry || !r.geometry.coords) continue;
              const e = r.geometry.coords;
              for (let r = 2; r < e.length; r += 3) e[r] *= t;
            }
        }
        addFeature(e, t) {
          e.features.push(t);
        }
        createFeature() {
          return new a.O();
        }
        createSpatialReference() {
          return { wkid: 0 };
        }
        createGeometry() {
          return new a.a();
        }
        addField(e, t) {
          e.fields.push(t);
        }
        allocateCoordinates(e) {
          (e.coords.length = e.lengths.reduce((e, t) => e + t, 0) * this._vertexDimension),
            (this._coordinatePtr = 0);
        }
        addCoordinate(e, t) {
          e.coords[this._coordinatePtr++] = t;
        }
        addCoordinatePoint(e, t) {
          e.coords.push(t);
        }
        addLength(e, t) {
          e.lengths.push(t);
        }
        addQueryGeometry(e, t) {
          (e.queryGeometry = t.queryGeometry), (e.queryGeometryType = t.queryGeometryType);
        }
        createPointGeometry() {
          return new a.a();
        }
      }
      const p = [
          'esriFieldTypeSmallInteger',
          'esriFieldTypeInteger',
          'esriFieldTypeSingle',
          'esriFieldTypeDouble',
          'esriFieldTypeString',
          'esriFieldTypeDate',
          'esriFieldTypeOID',
          'esriFieldTypeGeometry',
          'esriFieldTypeBlob',
          'esriFieldTypeRaster',
          'esriFieldTypeGUID',
          'esriFieldTypeGlobalID',
          'esriFieldTypeXML',
        ],
        h = [
          'sqlTypeBigInt',
          'sqlTypeBinary',
          'sqlTypeBit',
          'sqlTypeChar',
          'sqlTypeDate',
          'sqlTypeDecimal',
          'sqlTypeDouble',
          'sqlTypeFloat',
          'sqlTypeGeometry',
          'sqlTypeGUID',
          'sqlTypeInteger',
          'sqlTypeLongNVarchar',
          'sqlTypeLongVarbinary',
          'sqlTypeLongVarchar',
          'sqlTypeNChar',
          'sqlTypeNVarchar',
          'sqlTypeOther',
          'sqlTypeReal',
          'sqlTypeSmallInt',
          'sqlTypeSqlXml',
          'sqlTypeTime',
          'sqlTypeTimestamp',
          'sqlTypeTimestamp2',
          'sqlTypeTinyInt',
          'sqlTypeVarbinary',
          'sqlTypeVarchar',
        ],
        g = ['upperLeft', 'lowerLeft'];
      function f(e) {
        return e >= p.length ? null : p[e];
      }
      function y(e) {
        return e >= g.length ? null : g[e];
      }
      function _(e, t) {
        return t >= e.geometryTypes.length ? null : e.geometryTypes[t];
      }
      function m(e, t, r) {
        const s = t.createPointGeometry(r);
        for (; e.next(); )
          switch (e.tag()) {
            case 3: {
              const r = e.getUInt32(),
                n = e.pos() + r;
              let i = 0;
              for (; e.pos() < n; ) t.addCoordinatePoint(s, e.getSInt64(), i++);
              break;
            }
            case 1:
            case 2:
            default:
              e.skip();
          }
        return s;
      }
      function k(e, t, r) {
        const s = t.createGeometry(r),
          n = 2 + (r.hasZ ? 1 : 0) + (r.hasM ? 1 : 0);
        for (; e.next(); )
          switch (e.tag()) {
            case 2: {
              const r = e.getUInt32(),
                n = e.pos() + r;
              let i = 0;
              for (; e.pos() < n; ) t.addLength(s, e.getUInt32(), i++);
              break;
            }
            case 3: {
              const r = e.getUInt32(),
                i = e.pos() + r;
              let a = 0;
              for (t.allocateCoordinates(s); e.pos() < i; )
                t.addCoordinate(s, e.getSInt64(), a), a++, a === n && (a = 0);
              break;
            }
            case 1:
            default:
              e.skip();
          }
        return s;
      }
      function b(e) {
        const t = new a.a();
        let r = 'esriGeometryPoint';
        for (; e.next(); )
          switch (e.tag()) {
            case 2: {
              const r = e.getUInt32(),
                s = e.pos() + r;
              for (; e.pos() < s; ) t.lengths.push(e.getUInt32());
              break;
            }
            case 3: {
              const r = e.getUInt32(),
                s = e.pos() + r;
              for (; e.pos() < s; ) t.coords.push(e.getSInt64());
              break;
            }
            case 1:
              r = l[e.getEnum()];
              break;
            default:
              e.skip();
          }
        return { queryGeometry: t, queryGeometryType: r };
      }
      function S(e) {
        for (; e.next(); )
          switch (e.tag()) {
            case 1:
              return e.getString();
            case 2:
              return e.getFloat();
            case 3:
              return e.getDouble();
            case 4:
              return e.getSInt32();
            case 5:
              return e.getUInt32();
            case 6:
              return e.getInt64();
            case 7:
              return e.getUInt64();
            case 8:
              return e.getSInt64();
            case 9:
              return e.getBool();
            default:
              return e.skip(), null;
          }
        return null;
      }
      function w(e) {
        const t = { type: f(0) };
        for (; e.next(); )
          switch (e.tag()) {
            case 1:
              t.name = e.getString();
              break;
            case 2:
              t.type = f(e.getEnum());
              break;
            case 3:
              t.alias = e.getString();
              break;
            case 4:
              t.sqlType = (r = e.getEnum()) >= h.length ? null : h[r];
              break;
            case 5:
              e.skip();
              break;
            case 6:
              t.defaultValue = e.getString();
              break;
            default:
              e.skip();
          }
        var r;
        return t;
      }
      function T(e) {
        const t = {};
        for (; e.next(); )
          switch (e.tag()) {
            case 1:
              t.name = e.getString();
              break;
            case 2:
              t.isSystemMaintained = e.getBool();
              break;
            default:
              e.skip();
          }
        return t;
      }
      function F(e, t, r, s) {
        const n = t.createFeature(r);
        let i = 0;
        for (; e.next(); )
          switch (e.tag()) {
            case 1: {
              const t = s[i++].name;
              n.attributes[t] = e.processMessage(S);
              break;
            }
            case 2:
              n.geometry = e.processMessageWithArgs(k, t, r);
              break;
            case 4:
              n.centroid = e.processMessageWithArgs(m, t, r);
              break;
            default:
              e.skip();
          }
        return n;
      }
      function x(e) {
        const t = [1, 1, 1, 1];
        for (; e.next(); )
          switch (e.tag()) {
            case 1:
              t[0] = e.getDouble();
              break;
            case 2:
              t[1] = e.getDouble();
              break;
            case 4:
              t[2] = e.getDouble();
              break;
            case 3:
              t[3] = e.getDouble();
              break;
            default:
              e.skip();
          }
        return t;
      }
      function I(e) {
        const t = [0, 0, 0, 0];
        for (; e.next(); )
          switch (e.tag()) {
            case 1:
              t[0] = e.getDouble();
              break;
            case 2:
              t[1] = e.getDouble();
              break;
            case 4:
              t[2] = e.getDouble();
              break;
            case 3:
              t[3] = e.getDouble();
              break;
            default:
              e.skip();
          }
        return t;
      }
      function q(e) {
        const t = { originPosition: y(0) };
        for (; e.next(); )
          switch (e.tag()) {
            case 1:
              t.originPosition = y(e.getEnum());
              break;
            case 2:
              t.scale = e.processMessage(x);
              break;
            case 3:
              t.translate = e.processMessage(I);
              break;
            default:
              e.skip();
          }
        return t;
      }
      function R(e) {
        const t = {};
        for (; e.next(); )
          switch (e.tag()) {
            case 1:
              t.shapeAreaFieldName = e.getString();
              break;
            case 2:
              t.shapeLengthFieldName = e.getString();
              break;
            case 3:
              t.units = e.getString();
              break;
            default:
              e.skip();
          }
        return t;
      }
      function V(e, t) {
        const r = t.createSpatialReference();
        for (; e.next(); )
          switch (e.tag()) {
            case 1:
              r.wkid = e.getUInt32();
              break;
            case 5:
              r.wkt = e.getString();
              break;
            case 2:
              r.latestWkid = e.getUInt32();
              break;
            case 3:
              r.vcsWkid = e.getUInt32();
              break;
            case 4:
              r.latestVcsWkid = e.getUInt32();
              break;
            default:
              e.skip();
          }
        return r;
      }
      function E(e, t) {
        const r = t.createFeatureResult();
        r.geometryType = _(t, 0);
        let s = !1;
        for (; e.next(); )
          switch (e.tag()) {
            case 1:
              r.objectIdFieldName = e.getString();
              break;
            case 3:
              r.globalIdFieldName = e.getString();
              break;
            case 4:
              r.geohashFieldName = e.getString();
              break;
            case 5:
              r.geometryProperties = e.processMessage(R);
              break;
            case 7:
              r.geometryType = _(t, e.getEnum());
              break;
            case 8:
              r.spatialReference = e.processMessageWithArgs(V, t);
              break;
            case 10:
              r.hasZ = e.getBool();
              break;
            case 11:
              r.hasM = e.getBool();
              break;
            case 12:
              r.transform = e.processMessage(q);
              break;
            case 9: {
              const t = e.getBool();
              r.exceededTransferLimit = t;
              break;
            }
            case 13:
              t.addField(r, e.processMessage(w));
              break;
            case 15:
              s || (t.prepareFeatures(r), (s = !0)),
                t.addFeature(r, e.processMessageWithArgs(F, t, r, r.fields));
              break;
            case 2:
              r.uniqueIdField = e.processMessage(T);
              break;
            case 6:
            default:
              e.skip();
          }
        return t.finishFeatureResult(r), r;
      }
      function G(e, t) {
        const r = {};
        let s = null;
        for (; e.next(); )
          switch (e.tag()) {
            case 4:
              s = e.processMessageWithArgs(b);
              break;
            case 1:
              r.featureResult = e.processMessageWithArgs(E, t);
              break;
            case 2:
            case 3:
            default:
              e.skip();
          }
        return (0, n.i)(s) && r.featureResult && t.addQueryGeometry(r, s), r;
      }
      function P(e, t) {
        const r = (function (e, t) {
            try {
              const r = 2,
                s = new i.P(new Uint8Array(e), new DataView(e)),
                n = {};
              for (; s.next(); )
                switch (s.tag()) {
                  case r:
                    n.queryResult = s.processMessageWithArgs(G, t);
                    break;
                  default:
                    s.skip();
                }
              return n;
            } catch (e) {
              throw new s.Z('query:parsing-pbf', 'Error while parsing FeatureSet PBF payload', {
                error: e,
              });
            }
          })(e, t),
          n = r.queryResult.featureResult,
          a = r.queryResult.queryGeometry,
          o = r.queryResult.queryGeometryType;
        if (n && n.features && n.features.length && n.objectIdFieldName) {
          const e = n.objectIdFieldName;
          for (const t of n.features) t.attributes && (t.objectId = t.attributes[e]);
        }
        return n && ((n.queryGeometry = a), (n.queryGeometryType = o)), n;
      }
    },
    49214: (e, t, r) => {
      'use strict';
      r.r(t),
        r.d(t, {
          a: () => _,
          b: () => f,
          c: () => p,
          d: () => h,
          e: () => y,
          f: () => g,
          m: () => l,
          q: () => k,
          r: () => m,
        });
      var s = r(82058),
        n = r(76506),
        i = r(32101),
        a = r(32422),
        o = r(95533),
        u = r(76733),
        c = r(55823);
      function l(e) {
        const t = {};
        for (const r in e) {
          if ('declaredClass' === r) continue;
          const s = e[r];
          if (null != s && 'function' != typeof s)
            if (Array.isArray(s)) {
              t[r] = [];
              for (let e = 0; e < s.length; e++) t[r][e] = l(s[e]);
            } else 'object' == typeof s ? s.toJSON && (t[r] = JSON.stringify(s)) : (t[r] = s);
        }
        return t;
      }
      function d(e, t) {
        const r = e.geometry,
          s = e.toJSON(),
          i = s;
        if (
          ((0, n.i)(r) &&
            ((i.geometry = JSON.stringify(r)),
            (i.geometryType = (0, a.Ji)(r)),
            (i.inSR = r.spatialReference.wkid || JSON.stringify(r.spatialReference))),
          s.groupByFieldsForStatistics &&
            (i.groupByFieldsForStatistics = s.groupByFieldsForStatistics.join(',')),
          s.objectIds && (i.objectIds = s.objectIds.join(',')),
          s.orderByFields && (i.orderByFields = s.orderByFields.join(',')),
          !s.outFields ||
          (!s.returnDistinctValues &&
            ((null != t && t.returnCountOnly) ||
              (null != t && t.returnExtentOnly) ||
              (null != t && t.returnIdsOnly)))
            ? delete i.outFields
            : -1 !== s.outFields.indexOf('*')
            ? (i.outFields = '*')
            : (i.outFields = s.outFields.join(',')),
          s.outSR
            ? (i.outSR = s.outSR.wkid || JSON.stringify(s.outSR))
            : r && (s.returnGeometry || s.returnCentroid) && (i.outSR = i.inSR),
          s.returnGeometry && delete s.returnGeometry,
          s.outStatistics && (i.outStatistics = JSON.stringify(s.outStatistics)),
          s.pixelSize && (i.pixelSize = JSON.stringify(s.pixelSize)),
          s.quantizationParameters &&
            (i.quantizationParameters = JSON.stringify(s.quantizationParameters)),
          s.parameterValues && (i.parameterValues = JSON.stringify(s.parameterValues)),
          s.rangeValues && (i.rangeValues = JSON.stringify(s.rangeValues)),
          s.dynamicDataSource &&
            ((i.layer = JSON.stringify({ source: s.dynamicDataSource })),
            delete s.dynamicDataSource),
          s.timeExtent)
        ) {
          const e = s.timeExtent,
            { start: t, end: r } = e;
          (null == t && null == r) ||
            (i.time = t === r ? t : `${null == t ? 'null' : t},${null == r ? 'null' : r}`),
            delete s.timeExtent;
        }
        return i;
      }
      async function p(e, t, r, s) {
        const i =
          (0, n.i)(t.timeExtent) && t.timeExtent.isEmpty
            ? { data: { features: [] } }
            : await m(e, t, 'json', s);
        return (0, c.a)(t, r, i.data), i;
      }
      async function h(e, t, r, s) {
        if ((0, n.i)(t.timeExtent) && t.timeExtent.isEmpty)
          return Promise.resolve({ data: r.createFeatureResult() });
        const i = await g(e, t, s),
          a = i;
        return (a.data = (0, u.p)(i.data, r)), a;
      }
      function g(e, t, r) {
        return m(e, t, 'pbf', r);
      }
      function f(e, t, r) {
        return (0, n.i)(t.timeExtent) && t.timeExtent.isEmpty
          ? Promise.resolve({ data: { objectIds: [] } })
          : m(e, t, 'json', r, { returnIdsOnly: !0 });
      }
      function y(e, t, r) {
        return (0, n.i)(t.timeExtent) && t.timeExtent.isEmpty
          ? Promise.resolve({ data: { count: 0 } })
          : m(e, t, 'json', r, { returnIdsOnly: !0, returnCountOnly: !0 });
      }
      function _(e, t, r) {
        return (0, n.i)(t.timeExtent) && t.timeExtent.isEmpty
          ? Promise.resolve({ data: { count: 0, extent: null } })
          : m(e, t, 'json', r, { returnExtentOnly: !0, returnCountOnly: !0 }).then((e) => {
              const t = e.data;
              if (t.hasOwnProperty('extent')) return e;
              if (t.features) throw new Error('Layer does not support extent calculation.');
              if (t.hasOwnProperty('count'))
                throw new Error('Layer does not support extent calculation.');
              return e;
            });
      }
      function m(e, t, r, a = {}, u = {}) {
        const c = 'string' == typeof e ? (0, i.mN)(e) : e,
          p = t.geometry ? [t.geometry] : [];
        return (
          (a.responseType = 'pbf' === r ? 'array-buffer' : 'json'),
          (0, o.aX)(p, null, a).then((e) => {
            const o = e && e[0];
            (0, n.i)(o) && ((t = t.clone()).geometry = o);
            const p = l({ ...c.query, f: r, ...u, ...d(t, u) });
            return (0, s.default)((0, i.v_)(c.path, 'query'), {
              ...a,
              query: { ...p, ...a.query },
            });
          })
        );
      }
      var k = Object.freeze({
        __proto__: null,
        queryToQueryStringParameters: d,
        executeQuery: p,
        executeQueryPBF: h,
        executeQueryPBFBuffer: g,
        executeQueryForIds: f,
        executeQueryForCount: y,
        executeQueryForExtent: _,
        runQuery: m,
      });
    },
    55823: (e, t, r) => {
      'use strict';
      r.d(t, { a: () => n });
      var s = r(92847);
      function n(e, t, r) {
        if (!r || !r.features || !r.hasZ) return;
        const n = (0, s.g)(r.geometryType, t, e.outSpatialReference);
        if (n) for (const e of r.features) n(e.geometry);
      }
    },
    92847: (e, t, r) => {
      'use strict';
      r.d(t, { g: () => a, u: () => u });
      var s = r(76506),
        n = r(53785),
        i = r(60947);
      function a(e, t, r) {
        if ((0, s.b)(t) || (0, s.b)(r) || r.vcsWkid || (0, i.e)(t, r)) return null;
        const a = (0, n.d)(t) / (0, n.d)(r);
        if (1 === a) return null;
        switch (e) {
          case 'point':
          case 'esriGeometryPoint':
            return (e) => {
              return (r = a), void ((t = e) && null != t.z && (t.z *= r));
              var t, r;
            };
          case 'polyline':
          case 'esriGeometryPolyline':
            return (e) =>
              (function (e, t) {
                if (e) for (const r of e.paths) for (const e of r) e.length > 2 && (e[2] *= t);
              })(e, a);
          case 'polygon':
          case 'esriGeometryPolygon':
            return (e) =>
              (function (e, t) {
                if (e) for (const r of e.rings) for (const e of r) e.length > 2 && (e[2] *= t);
              })(e, a);
          case 'multipoint':
          case 'esriGeometryMultipoint':
            return (e) =>
              (function (e, t) {
                if (e) for (const r of e.points) r.length > 2 && (r[2] *= t);
              })(e, a);
          default:
            return null;
        }
      }
      function o(e, t, r) {
        if (null == e.hasM || e.hasZ)
          for (const e of t) for (const t of e) t.length > 2 && (t[2] *= r);
      }
      function u(e, t, r) {
        if ((!e && !t) || !r) return;
        const s = (0, n.d)(r);
        c(e, r, s), c(t, r, s);
      }
      function c(e, t, r) {
        if (e) for (const s of e) l(s.geometry, t, r);
      }
      function l(e, t, r) {
        if (!e || !e.spatialReference || (0, i.e)(e.spatialReference, t)) return;
        const s = (0, n.d)(e.spatialReference) / r;
        if (1 !== s)
          if ('x' in e) null != e.z && (e.z *= s);
          else if ('rings' in e) o(e, e.rings, s);
          else if ('paths' in e) o(e, e.paths, s);
          else if ('points' in e && (null == e.hasM || e.hasZ))
            for (const t of e.points) t.length > 2 && (t[2] *= s);
      }
    },
  },
]);
