| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254 | import "./chunk-UMUHMVL4.js";import {  t as t2} from "./chunk-XJHQZ4NT.js";import "./chunk-CFVLY6NB.js";import {  pt,  rt} from "./chunk-JKFWEHNK.js";import "./chunk-EDHROVWI.js";import "./chunk-3IRT3YKJ.js";import {  o} from "./chunk-SAJAEMIJ.js";import "./chunk-OJ2HHY2O.js";import {  a} from "./chunk-ECY35CJI.js";import {  y} from "./chunk-JGBXYDGB.js";import "./chunk-QEWF7QPH.js";import {  u} from "./chunk-2H5MD622.js";import "./chunk-3RSFVUKZ.js";import {  n} from "./chunk-O6VYMEIX.js";import "./chunk-5N7JLUJJ.js";import "./chunk-RYY6632W.js";import "./chunk-DW42UVIT.js";import "./chunk-YAEIHDJH.js";import "./chunk-TJNOJH33.js";import "./chunk-OSHI574D.js";import "./chunk-75U5LM2V.js";import "./chunk-RMDDCMKS.js";import "./chunk-VCH45Q2I.js";import "./chunk-HZRKBTHJ.js";import "./chunk-6T6G6LCQ.js";import "./chunk-YEJL5NEF.js";import {  k2 as k} from "./chunk-PQFTYGF5.js";import {  e4 as e} from "./chunk-2Z2TG5CU.js";import "./chunk-6KZ2LTDA.js";import "./chunk-U2XHEJM7.js";import "./chunk-SQOPWYIT.js";import "./chunk-V6P2MAQQ.js";import "./chunk-E5O6P5I2.js";import "./chunk-SPWQ3AWG.js";import "./chunk-2TIUKVZN.js";import {  t} from "./chunk-YXWMMD76.js";import "./chunk-S5KM4IGW.js";// node_modules/@arcgis/core/layers/graphics/dehydratedFeatures.jsvar j = class {  constructor(e3, t5, s3) {    this.uid = e3, this.geometry = t5, this.attributes = s3, this.visible = true, this.objectId = null, this.centroid = null;  }};var N = class {  constructor() {    this.exceededTransferLimit = false, this.features = [], this.fields = [], this.hasM = false, this.hasZ = false, this.geometryType = null, this.objectIdFieldName = null, this.globalIdFieldName = null, this.geometryProperties = null, this.geohashFieldName = null, this.spatialReference = null, this.transform = null;  }};var P = a();var U = u();// node_modules/@arcgis/core/rest/query/operations/pbfDehydratedFeatureSet.jsfunction u2(t5, e3) {  return e3;}function p(t5, e3, r2, s3) {  switch (r2) {    case 0:      return m2(t5, e3 + s3, 0);    case 1:      return "lowerLeft" === t5.originPosition ? m2(t5, e3 + s3, 1) : y2(t5, e3 + s3, 1);  }}function c(t5, e3, r2, s3) {  return 2 === r2 ? m2(t5, e3, 2) : p(t5, e3, r2, s3);}function d(t5, e3, r2, s3) {  return 2 === r2 ? m2(t5, e3, 3) : p(t5, e3, r2, s3);}function f2(t5, e3, r2, s3) {  return 3 === r2 ? m2(t5, e3, 3) : c(t5, e3, r2, s3);}function m2({ translate: t5, scale: e3 }, r2, s3) {  return t5[s3] + r2 * e3[s3];}function y2({ translate: t5, scale: e3 }, r2, s3) {  return t5[s3] - r2 * e3[s3];}var _ = class {  constructor(t5) {    this._options = t5, this.geometryTypes = ["point", "multipoint", "polyline", "polygon"], this._previousCoordinate = [0, 0], this._transform = null, this._applyTransform = u2, this._lengths = [], this._currentLengthIndex = 0, this._toAddInCurrentPath = 0, this._vertexDimension = 0, this._coordinateBuffer = null, this._coordinateBufferPtr = 0, this._attributesConstructor = class {    };  }  createFeatureResult() {    return new N();  }  finishFeatureResult(t5) {    if (this._options.applyTransform && (t5.transform = null), this._attributesConstructor = class {    }, this._coordinateBuffer = null, this._lengths.length = 0, !t5.hasZ)      return;    const r2 = o(t5.geometryType, this._options.sourceSpatialReference, t5.spatialReference);    if (!t(r2))      for (const e3 of t5.features)        r2(e3.geometry);  }  createSpatialReference() {    return new k();  }  addField(t5, e3) {    t5.fields.push(y.fromJSON(e3));    const r2 = t5.fields.map((t6) => t6.name);    this._attributesConstructor = function() {      for (const t6 of r2)        this[t6] = null;    };  }  addFeature(t5, e3) {    const r2 = this._options.maxStringAttributeLength ? this._options.maxStringAttributeLength : 0;    if (r2 > 0)      for (const s3 in e3.attributes) {        const t6 = e3.attributes[s3];        "string" == typeof t6 && t6.length > r2 && (e3.attributes[s3] = "");      }    t5.features.push(e3);  }  addQueryGeometry(t5, e3) {    const { queryGeometry: r2, queryGeometryType: s3 } = e3, o2 = pt(r2.clone(), r2, false, false, this._transform), i2 = rt(o2, s3, false, false);    let n2 = null;    switch (s3) {      case "esriGeometryPoint":        n2 = "point";        break;      case "esriGeometryPolygon":        n2 = "polygon";        break;      case "esriGeometryPolyline":        n2 = "polyline";        break;      case "esriGeometryMultipoint":        n2 = "multipoint";    }    i2.type = n2, t5.queryGeometryType = s3, t5.queryGeometry = i2;  }  prepareFeatures(e3) {    switch (this._transform = e3.transform, this._options.applyTransform && e3.transform && (this._applyTransform = this._deriveApplyTransform(e3)), this._vertexDimension = 2, e3.hasZ && this._vertexDimension++, e3.hasM && this._vertexDimension++, e3.geometryType) {      case "point":        this.addCoordinate = (t5, e4, r2) => this.addCoordinatePoint(t5, e4, r2), this.createGeometry = (t5) => this.createPointGeometry(t5);        break;      case "polygon":        this.addCoordinate = (t5, e4, r2) => this._addCoordinatePolygon(t5, e4, r2), this.createGeometry = (t5) => this._createPolygonGeometry(t5);        break;      case "polyline":        this.addCoordinate = (t5, e4, r2) => this._addCoordinatePolyline(t5, e4, r2), this.createGeometry = (t5) => this._createPolylineGeometry(t5);        break;      case "multipoint":        this.addCoordinate = (t5, e4, r2) => this._addCoordinateMultipoint(t5, e4, r2), this.createGeometry = (t5) => this._createMultipointGeometry(t5);        break;      case "mesh":      case "extent":        break;      default:        n(e3.geometryType);    }  }  createFeature() {    return this._lengths.length = 0, this._currentLengthIndex = 0, this._previousCoordinate[0] = 0, this._previousCoordinate[1] = 0, new j(e(), null, new this._attributesConstructor());  }  allocateCoordinates() {    const t5 = this._lengths.reduce((t6, e3) => t6 + e3, 0);    this._coordinateBuffer = new Float64Array(t5 * this._vertexDimension), this._coordinateBufferPtr = 0;  }  addLength(t5, e3, r2) {    0 === this._lengths.length && (this._toAddInCurrentPath = e3), this._lengths.push(e3);  }  createPointGeometry(t5) {    const e3 = { type: "point", x: 0, y: 0, spatialReference: t5.spatialReference, hasZ: !!t5.hasZ, hasM: !!t5.hasM };    return e3.hasZ && (e3.z = 0), e3.hasM && (e3.m = 0), e3;  }  addCoordinatePoint(t5, e3, r2) {    switch (e3 = this._applyTransform(this._transform, e3, r2, 0), r2) {      case 0:        t5.x = e3;        break;      case 1:        t5.y = e3;        break;      case 2:        t5.hasZ ? t5.z = e3 : t5.m = e3;        break;      case 3:        t5.m = e3;    }  }  _transformPathLikeValue(t5, e3) {    let r2 = 0;    return e3 <= 1 && (r2 = this._previousCoordinate[e3], this._previousCoordinate[e3] += t5), this._applyTransform(this._transform, t5, e3, r2);  }  _addCoordinatePolyline(t5, e3, r2) {    this._dehydratedAddPointsCoordinate(t5.paths, e3, r2);  }  _addCoordinatePolygon(t5, e3, r2) {    this._dehydratedAddPointsCoordinate(t5.rings, e3, r2);  }  _addCoordinateMultipoint(t5, e3, r2) {    0 === r2 && t5.points.push([]);    const s3 = this._transformPathLikeValue(e3, r2);    t5.points[t5.points.length - 1].push(s3);  }  _createPolygonGeometry(t5) {    return { type: "polygon", rings: [[]], spatialReference: t5.spatialReference, hasZ: !!t5.hasZ, hasM: !!t5.hasM };  }  _createPolylineGeometry(t5) {    return { type: "polyline", paths: [[]], spatialReference: t5.spatialReference, hasZ: !!t5.hasZ, hasM: !!t5.hasM };  }  _createMultipointGeometry(t5) {    return { type: "multipoint", points: [], spatialReference: t5.spatialReference, hasZ: !!t5.hasZ, hasM: !!t5.hasM };  }  _dehydratedAddPointsCoordinate(t5, e3, r2) {    0 === r2 && 0 == this._toAddInCurrentPath-- && (t5.push([]), this._toAddInCurrentPath = this._lengths[++this._currentLengthIndex] - 1, this._previousCoordinate[0] = 0, this._previousCoordinate[1] = 0);    const s3 = this._transformPathLikeValue(e3, r2), o2 = t5[t5.length - 1];    0 === r2 && o2.push(new Float64Array(this._coordinateBuffer.buffer, this._coordinateBufferPtr * Float64Array.BYTES_PER_ELEMENT, this._vertexDimension)), this._coordinateBuffer[this._coordinateBufferPtr++] = s3;  }  _deriveApplyTransform(t5) {    const { hasZ: e3, hasM: r2 } = t5;    return e3 && r2 ? f2 : e3 ? c : r2 ? d : p;  }};// node_modules/@arcgis/core/views/3d/support/PBFDecoderWorker.jsvar t4 = class {  _parseFeatureQuery(t5) {    const s3 = t2(t5.buffer, new _(t5.options)), o2 = { ...s3, spatialReference: s3.spatialReference.toJSON(), fields: s3.fields ? s3.fields.map((e3) => e3.toJSON()) : void 0 };    return Promise.resolve(o2);  }};function s2() {  return new t4();}export {  s2 as default};//# sourceMappingURL=PBFDecoderWorker-IGUUFCFU.js.map
 |