@arcgis/core 5.2.0-next.95 → 5.2.0-next.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/WebScene.d.ts +6 -3
- package/WebScene.js +1 -1
- package/applications/WebEditor/geometryUtils.d.ts +1 -1
- package/arcade/arcadeAsyncRuntime.js +1 -1
- package/arcade/arcadeCompiler.js +1 -1
- package/arcade/arcadeRuntime.js +1 -1
- package/arcade/containerUtils.js +1 -1
- package/arcade/functions/track.js +1 -1
- package/arcgisGlobal.d.ts +2 -0
- package/assets/components/assets/icon/aiAgent16.json +1 -0
- package/assets/components/assets/icon/aiAgent24.json +1 -0
- package/assets/components/assets/icon/aiAgent32.json +1 -0
- package/assets/components/assets/icon/aiAgents16.json +1 -0
- package/assets/components/assets/icon/aiAgents24.json +1 -0
- package/assets/components/assets/icon/aiAgents32.json +1 -0
- package/assets/components/assets/icon/explodeGeometry16.json +1 -0
- package/assets/components/assets/icon/explodeGeometry24.json +1 -0
- package/assets/components/assets/icon/explodeGeometry32.json +1 -0
- package/assets/components/assets/icon/integration16.json +1 -0
- package/assets/components/assets/icon/integration24.json +1 -0
- package/assets/components/assets/icon/integration32.json +1 -0
- package/assets/components/assets/icon/spatiotemporalCatalog16.json +1 -0
- package/assets/components/assets/icon/spatiotemporalCatalog24.json +1 -0
- package/assets/components/assets/icon/spatiotemporalCatalog32.json +1 -0
- package/assets/components/assets/input-time-zone/t9n/messages.de.json +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/000f91a18c22377f8525.js +1 -0
- package/assets/esri/core/workers/chunks/{05662a663f761dd3dea5.js → 006146ad6d4a5cbf1a1f.js} +1 -1
- package/assets/esri/core/workers/chunks/{bd1a7e95a797e1ed4a7b.js → 013c17e07756fa465845.js} +1 -1
- package/assets/esri/core/workers/chunks/014eaccf2c2d357981f0.js +1 -0
- package/assets/esri/core/workers/chunks/{f253875feb11883deb84.js → 04d4cd66485b622403d0.js} +1 -1
- package/assets/esri/core/workers/chunks/05eb064f9b543890ae24.js +1 -0
- package/assets/esri/core/workers/chunks/{26737d061c7cfbbab95c.js → 0809a55a2f9be07cc5a9.js} +1 -1
- package/assets/esri/core/workers/chunks/0930738f43ce09b2ed2d.js +1 -0
- package/assets/esri/core/workers/chunks/{691434d4c6a38e63d819.js → 0a242e76bc293b0ad04b.js} +1 -1
- package/assets/esri/core/workers/chunks/0a4092578dc7578bcf76.js +1 -0
- package/assets/esri/core/workers/chunks/0e11bee9b56a7f51b012.js +1 -0
- package/assets/esri/core/workers/chunks/0e65869a5dd5a3917da7.js +1 -0
- package/assets/esri/core/workers/chunks/0ffb5a1275d07dcd9115.js +1 -0
- package/assets/esri/core/workers/chunks/{e370a3337b3c90240e73.js → 105da965fc90604eb6bf.js} +1 -1
- package/assets/esri/core/workers/chunks/1082bb0858585bd4fa21.js +2 -0
- package/assets/esri/core/workers/chunks/{5235b9c21ac4156c2375.js → 10f4c5533f50c3693318.js} +1 -1
- package/assets/esri/core/workers/chunks/1201bb22a2bfd7d7ecba.js +1 -0
- package/assets/esri/core/workers/chunks/16f55c5d642a23c2547e.js +1 -0
- package/assets/esri/core/workers/chunks/{09e01fd1c199be0c8e03.js → 16ffbe484f6cd4736f79.js} +1 -1
- package/assets/esri/core/workers/chunks/{1bf967c68d0c795d3fb4.js → 19a4907fc93ae8b817e9.js} +1 -1
- package/assets/esri/core/workers/chunks/{f74c7cbe4bd12f73ae90.js → 19d7339f20f3008c4893.js} +1 -1
- package/assets/esri/core/workers/chunks/{a8aa8cb60b30f0983e7e.js → 1a9f17781e0a3bc5106f.js} +1 -1
- package/assets/esri/core/workers/chunks/{bf7875fda48b15271a10.js → 1bef7097fe5e402539ea.js} +1 -1
- package/assets/esri/core/workers/chunks/{fa377112ef3b78f6ed18.js → 1de1cc0ed0f169a58aff.js} +1 -1
- package/assets/esri/core/workers/chunks/{0549e2badf511e27aa54.js → 1e3b07cf0e608431a277.js} +1 -1
- package/assets/esri/core/workers/chunks/{2e51764c8aa31096cb2a.js → 20feca2fdd304b3e9664.js} +1 -1
- package/assets/esri/core/workers/chunks/{4c73c2f4331351e2a50c.js → 22ff018342860249b3eb.js} +1 -1
- package/assets/esri/core/workers/chunks/248df6fda489a9de5852.js +1 -0
- package/assets/esri/core/workers/chunks/279b16727d4b515eca44.js +1 -0
- package/assets/esri/core/workers/chunks/2b10d6597af3eeec5396.js +1 -0
- package/assets/esri/core/workers/chunks/2bd4b536e329112591c4.js +1 -0
- package/assets/esri/core/workers/chunks/2c01477b69c38f691e19.js +1 -0
- package/assets/esri/core/workers/chunks/2e2349387a2b9903f13c.js +2 -0
- package/assets/esri/core/workers/chunks/{4d700cb028f6306b163e.js → 32aa1529e84b839d051d.js} +1 -1
- package/assets/esri/core/workers/chunks/33041e50ea02d99480b0.js +1 -0
- package/assets/esri/core/workers/chunks/{5d7a5aa608ed6192b016.js → 349982635e921e838030.js} +1 -1
- package/assets/esri/core/workers/chunks/35d0a7597473d46866de.js +1 -0
- package/assets/esri/core/workers/chunks/374d726fdd0a9848cea5.js +1 -0
- package/assets/esri/core/workers/chunks/379f5ca5372d834af497.js +1 -0
- package/assets/esri/core/workers/chunks/37ae52c71bf9c70fbb92.js +1 -0
- package/assets/esri/core/workers/chunks/{05393b23ab24126d4236.js → 38bc5d09ae07f486d457.js} +1 -1
- package/assets/esri/core/workers/chunks/3bafa01ca01a67d09432.js +1 -0
- package/assets/esri/core/workers/chunks/3c7901ea007c9615ba54.js +1 -0
- package/assets/esri/core/workers/chunks/4047208f9559e06d7102.js +1 -0
- package/assets/esri/core/workers/chunks/4049e9b86c8e27a7ff12.js +1 -0
- package/assets/esri/core/workers/chunks/411bbdecba340df11d95.js +2 -0
- package/assets/esri/core/workers/chunks/42b5533f94ebcdc4befe.js +1 -0
- package/assets/esri/core/workers/chunks/44ca13c874b5aa0ed5a0.js +1 -0
- package/assets/esri/core/workers/chunks/4717831effb1ac6d5f5d.js +1 -0
- package/assets/esri/core/workers/chunks/{5edf77618ca51819d7c4.js → 476535cfb06ced74d611.js} +2 -2
- package/assets/esri/core/workers/chunks/486f1277fe834c0fc4c1.js +1 -0
- package/assets/esri/core/workers/chunks/48ade66f1685a1aaffba.js +1 -0
- package/assets/esri/core/workers/chunks/4d13c1a04788e5222678.js +1 -0
- package/assets/esri/core/workers/chunks/{cc3186dcbbf5edff8b9e.js → 4d7f6c92041d52cc8732.js} +1 -1
- package/assets/esri/core/workers/chunks/{595edbc1e9bba47d5676.js → 4f89da01b67b66a92c01.js} +1 -1
- package/assets/esri/core/workers/chunks/507bbcde2b39321b50a4.js +1 -0
- package/assets/esri/core/workers/chunks/{9b8e33985310f281f084.js → 56a5b65961e722f5cae9.js} +1 -1
- package/assets/esri/core/workers/chunks/5830deda121e4c95d199.js +1 -0
- package/assets/esri/core/workers/chunks/{b102ae764c14d8b32ace.js → 58a52adc42fbe5cd12c6.js} +1 -1
- package/assets/esri/core/workers/chunks/{b0e25ccb5a1e57a82628.js → 58b93f13316196d2e97d.js} +1 -1
- package/assets/esri/core/workers/chunks/58f98bd89b644cfdafae.js +1 -0
- package/assets/esri/core/workers/chunks/5a8658e4ef5163e8ab3b.js +1 -0
- package/assets/esri/core/workers/chunks/5bb8d9d887dd4211afd2.js +1 -0
- package/assets/esri/core/workers/chunks/5d7625eb9997cd0dff09.js +1 -0
- package/assets/esri/core/workers/chunks/5e56a004b4407b8066eb.js +1 -0
- package/assets/esri/core/workers/chunks/5efc66be4576c6f67064.js +1 -0
- package/assets/esri/core/workers/chunks/60b1af54e7fc20fd9588.js +1 -0
- package/assets/esri/core/workers/chunks/6134a2c6983792787184.js +1 -0
- package/assets/esri/core/workers/chunks/6319413b89e23f671487.js +1 -0
- package/assets/esri/core/workers/chunks/{1b311ff39dede07865df.js → 633454b27c34f9ec7940.js} +1 -1
- package/assets/esri/core/workers/chunks/63c43ebf46964c283b4d.js +1 -0
- package/assets/esri/core/workers/chunks/65d3638ded62c5606ae3.js +1 -0
- package/assets/esri/core/workers/chunks/{aa0ef4493a7e9bed159f.js → 662f4b39ec44c68e0733.js} +1 -1
- package/assets/esri/core/workers/chunks/680bef5e8237cc3bdd84.js +1 -0
- package/assets/esri/core/workers/chunks/6835f959952f70972fce.js +1 -0
- package/assets/esri/core/workers/chunks/{ddf284648a73b6993737.js → 68d823697c298122ee08.js} +1 -1
- package/assets/esri/core/workers/chunks/6aaefd61505027267c9b.js +1 -0
- package/assets/esri/core/workers/chunks/6ceb17eada151230abf7.js +1 -0
- package/assets/esri/core/workers/chunks/6df29716f75696434807.js +1 -0
- package/assets/esri/core/workers/chunks/6e804bd6bb4b0ee44fa9.js +1 -0
- package/assets/esri/core/workers/chunks/{ee77999df3785468b2b6.js → 6f6e8b7e6e2c856e4ed1.js} +1 -1
- package/assets/esri/core/workers/chunks/{8ea28a4b1afe8bb2d313.js → 7091bbdc36f1f03f14b3.js} +1 -1
- package/assets/esri/core/workers/chunks/7608de0d942b4c16b2f6.js +1 -0
- package/assets/esri/core/workers/chunks/{4b6f433022a6822706cb.js → 762817d30474c15142b4.js} +1 -1
- package/assets/esri/core/workers/chunks/762e9a15b2638475a2b4.js +1 -0
- package/assets/esri/core/workers/chunks/79088d5c9c2e6a780929.js +1 -0
- package/assets/esri/core/workers/chunks/{f3d57c5b9dffd12e45b4.js → 7c3a89c12ea32a071ad4.js} +1 -1
- package/assets/esri/core/workers/chunks/7c67596c0792282afdfc.js +1 -0
- package/assets/esri/core/workers/chunks/7cef6e5f39137e74bbc3.js +1 -0
- package/assets/esri/core/workers/chunks/{87e0ceb1a64ab08e679a.js → 7fd54fa2f91cdab44ab3.js} +1 -1
- package/assets/esri/core/workers/chunks/822a5020afbca21df7f7.js +1 -0
- package/assets/esri/core/workers/chunks/8599d2f2eb0fbb4a8bf5.js +1 -0
- package/assets/esri/core/workers/chunks/862f7090ba4a56c07093.js +1 -0
- package/assets/esri/core/workers/chunks/{97c7dfd29ad4c2966cb4.js → 88252899a5291ad29710.js} +1 -1
- package/assets/esri/core/workers/chunks/8837fbcc0d484659b79c.js +1 -0
- package/assets/esri/core/workers/chunks/8dcc7749de3391710864.js +1 -0
- package/assets/esri/core/workers/chunks/900dad076347443b3ad9.js +1 -0
- package/assets/esri/core/workers/chunks/{f8f7b86bbd62106bc3d4.js → 925f83be3c1eb4b5c6af.js} +1 -1
- package/assets/esri/core/workers/chunks/{a4a22149077c7780481c.js → 9378ce457b02717304e6.js} +1 -1
- package/assets/esri/core/workers/chunks/93a7cf23f73b23fc7802.js +1 -0
- package/assets/esri/core/workers/chunks/93c1d1e7c0935242071e.js +1 -0
- package/assets/esri/core/workers/chunks/{fddcb8be714ad18ad0c8.js → 970b33947bf61fccd461.js} +1 -1
- package/assets/esri/core/workers/chunks/97aaff86e06380a68df8.js +1 -0
- package/assets/esri/core/workers/chunks/9bc7df2b8ae0ed443d13.js +1 -0
- package/assets/esri/core/workers/chunks/9cc14a41d4a90f6d626e.js +1 -0
- package/assets/esri/core/workers/chunks/9e514a58b1165e273202.js +1 -0
- package/assets/esri/core/workers/chunks/9fe1db0762ab3326eab4.js +1 -0
- package/assets/esri/core/workers/chunks/{a5bb19d2b7d7db22222b.js → a10188c4d1904965898a.js} +1 -1
- package/assets/esri/core/workers/chunks/a2288d44cba34d947613.js +1 -0
- package/assets/esri/core/workers/chunks/a26916de4c105859621e.js +1 -0
- package/assets/esri/core/workers/chunks/a322afbb48898ce35851.js +1 -0
- package/assets/esri/core/workers/chunks/a34cadd486e7fcc79063.js +1 -0
- package/assets/esri/core/workers/chunks/{cefb70d633c220cbedf9.js → a4dc1a80ed6604d71722.js} +1 -1
- package/assets/esri/core/workers/chunks/{6baae3e856d904fef9b1.js → a8f70cece5ce2b095cdd.js} +1 -1
- package/assets/esri/core/workers/chunks/ab332bd411d6c7d4190c.js +1 -0
- package/assets/esri/core/workers/chunks/{777f2fdf1f4b9f243893.js → ab3a6ce7bc2a27b92469.js} +1 -1
- package/assets/esri/core/workers/chunks/abd2f8fae6b918fbdd6d.js +1 -0
- package/assets/esri/core/workers/chunks/ad695de9f73b268af139.js +1 -0
- package/assets/esri/core/workers/chunks/{b13d2da33ec07e9d41ff.js → b0da2b089a89d643df1e.js} +1 -1
- package/assets/esri/core/workers/chunks/{65f4ca7201e7267bfc81.js → b5fcf4165ac72654742d.js} +1 -1
- package/assets/esri/core/workers/chunks/b82b523b6837ed1f28d3.js +2 -0
- package/assets/esri/core/workers/chunks/{527b87fddf33bb5d519e.js → ba77a8892cb23c7a297d.js} +1 -1
- package/assets/esri/core/workers/chunks/bb8089929ded0613d8e7.js +1 -0
- package/assets/esri/core/workers/chunks/bc7ca87d3bfe8a4aec81.js +1 -0
- package/assets/esri/core/workers/chunks/bc9b96a539f28afcb8cb.js +1 -0
- package/assets/esri/core/workers/chunks/{2d07d5a9ec67c39ef10c.js → bd4f29d2681e5596591a.js} +1 -1
- package/assets/esri/core/workers/chunks/bf9eba555aebca2c132b.js +1 -0
- package/assets/esri/core/workers/chunks/{903c7bd079888f65fef1.js → c3fbd81bb5820e48038f.js} +1 -1
- package/assets/esri/core/workers/chunks/c9df18e9ff7367a004b6.js +1 -0
- package/assets/esri/core/workers/chunks/ca8061e0a6d78d646ebf.js +1 -0
- package/assets/esri/core/workers/chunks/cc73ac8404615dc392d2.js +1 -0
- package/assets/esri/core/workers/chunks/{e823c9ccb7bc348d8824.js → ccb26860518dce6d01c0.js} +1 -1
- package/assets/esri/core/workers/chunks/cded34b161fcc790e672.js +1 -0
- package/assets/esri/core/workers/chunks/{1bf5c0a4bc5a960a3fa2.js → d1d4979e9dcabe5e4619.js} +1 -1
- package/assets/esri/core/workers/chunks/d2865c604849ce79183f.js +1 -0
- package/assets/esri/core/workers/chunks/{9b81bd62a2c72f592db1.js → d826f6d32b4c5885276a.js} +1 -1
- package/assets/esri/core/workers/chunks/d92540d3ffc4af980dd8.js +1 -0
- package/assets/esri/core/workers/chunks/dc7853795439ae77ace9.js +1 -0
- package/assets/esri/core/workers/chunks/{1f047dd747e7c1916dc7.js → dd55737fba0a8fe68101.js} +3 -3
- package/assets/esri/core/workers/chunks/dd8d19eb6b8e955c8067.js +1 -0
- package/assets/esri/core/workers/chunks/dda269a088275c823b40.js +1 -0
- package/assets/esri/core/workers/chunks/{7b70d6fdfa7a19ffffb0.js → de95dee8db92cf8f796f.js} +1 -1
- package/assets/esri/core/workers/chunks/e1c8767143f9f9d1f049.js +1 -0
- package/assets/esri/core/workers/chunks/{2cf2f2842c19be84ab4d.js → e6cb31c727f799c1297c.js} +1 -1
- package/assets/esri/core/workers/chunks/e934ef66d130c212c05b.js +1 -0
- package/assets/esri/core/workers/chunks/{7c56446184abcd14678b.js → ea77654c8964cc39b9a6.js} +1 -1
- package/assets/esri/core/workers/chunks/eb167f9f6132a6348d2e.js +1 -0
- package/assets/esri/core/workers/chunks/ed5ac1efd3cba49be756.js +1 -0
- package/assets/esri/core/workers/chunks/ef24fd6c0322e5de9fdf.js +2 -0
- package/assets/esri/core/workers/chunks/f219ba010c480bb75684.js +1 -0
- package/assets/esri/core/workers/chunks/fbf2d90240d36f8b423f.js +1 -0
- package/assets/esri/core/workers/chunks/{4ee99e654dad6f09abee.js → fc042b9936686785c39e.js} +1 -1
- package/assets/esri/core/workers/chunks/fc1658eae7b312502fab.js +1 -0
- package/assets/esri/core/workers/chunks/{af6b9fd77b1792fbb66e.js → fd4d124c5bf810d9e352.js} +1 -1
- package/assets/esri/core/workers/chunks/ffa35ecc681ec1c4739a.js +1 -0
- package/assets/esri/core/workers/chunks/ffca0b2333e760b66d3a.js +1 -0
- package/config.js +1 -1
- package/editing/sharedTemplates/executor/builders/bufferLineToPolygon.js +1 -1
- package/editing/sharedTemplates/executor/builders/bufferPointToPolygon.js +1 -1
- package/editing/sharedTemplates/executor/builders/bufferPolygonToPolygon.js +1 -1
- package/editing/sharedTemplates/executor/builders/pointAtIntersectionVerticesOfLine.js +1 -1
- package/editing/sharedTemplates/executor/builders/support/offsetUtils.js +1 -1
- package/editing/sharedTemplates/executor/support/createPresetServiceEdit.js +1 -1
- package/geometry/Polygon.js +1 -1
- package/geometry/geometryEngine.d.ts +36 -36
- package/geometry/operators/affineTransformOperator.d.ts +30 -1
- package/geometry/operators/affineTransformOperator.js +1 -1
- package/geometry/operators/alphaShapeOperator.d.ts +49 -5
- package/geometry/operators/alphaShapeOperator.js +1 -1
- package/geometry/operators/areaOperator.d.ts +28 -4
- package/geometry/operators/areaOperator.js +1 -1
- package/geometry/operators/autoCompleteOperator.d.ts +25 -2
- package/geometry/operators/autoCompleteOperator.js +1 -1
- package/geometry/operators/boundaryOperator.d.ts +40 -2
- package/geometry/operators/boundaryOperator.js +1 -1
- package/geometry/operators/bufferOperator.d.ts +51 -6
- package/geometry/operators/bufferOperator.js +1 -1
- package/geometry/operators/centroidOperator.d.ts +23 -2
- package/geometry/operators/centroidOperator.js +1 -1
- package/geometry/operators/clipOperator.d.ts +34 -2
- package/geometry/operators/clipOperator.js +1 -1
- package/geometry/operators/containsOperator.d.ts +32 -2
- package/geometry/operators/containsOperator.js +1 -1
- package/geometry/operators/convexHullOperator.d.ts +47 -4
- package/geometry/operators/convexHullOperator.js +1 -1
- package/geometry/operators/crossesOperator.d.ts +35 -2
- package/geometry/operators/crossesOperator.js +1 -1
- package/geometry/operators/cutOperator.d.ts +23 -2
- package/geometry/operators/cutOperator.js +1 -1
- package/geometry/operators/densifyOperator.d.ts +61 -6
- package/geometry/operators/densifyOperator.js +1 -1
- package/geometry/operators/differenceOperator.d.ts +34 -2
- package/geometry/operators/differenceOperator.js +1 -1
- package/geometry/operators/disjointOperator.d.ts +33 -2
- package/geometry/operators/disjointOperator.js +1 -1
- package/geometry/operators/distanceOperator.d.ts +29 -4
- package/geometry/operators/distanceOperator.js +1 -1
- package/geometry/operators/equalsOperator.d.ts +32 -2
- package/geometry/operators/equalsOperator.js +1 -1
- package/geometry/operators/extendOperator.d.ts +29 -3
- package/geometry/operators/extendOperator.js +1 -1
- package/geometry/operators/generalizeOperator.d.ts +46 -5
- package/geometry/operators/generalizeOperator.js +1 -1
- package/geometry/operators/geodesicBufferOperator.d.ts +71 -7
- package/geometry/operators/geodesicBufferOperator.js +1 -1
- package/geometry/operators/geodesicProximityOperator.d.ts +106 -14
- package/geometry/operators/geodesicProximityOperator.js +1 -1
- package/geometry/operators/geodeticAreaOperator.d.ts +51 -5
- package/geometry/operators/geodeticAreaOperator.js +1 -1
- package/geometry/operators/geodeticDensifyOperator.d.ts +65 -6
- package/geometry/operators/geodeticDensifyOperator.js +1 -1
- package/geometry/operators/geodeticDistanceOperator.d.ts +52 -5
- package/geometry/operators/geodeticDistanceOperator.js +1 -1
- package/geometry/operators/geodeticLengthOperator.d.ts +51 -5
- package/geometry/operators/geodeticLengthOperator.js +1 -1
- package/geometry/operators/geodeticUtilsOperator.d.ts +79 -9
- package/geometry/operators/geodeticUtilsOperator.js +1 -1
- package/geometry/operators/graphicBufferOperator.d.ts +47 -4
- package/geometry/operators/graphicBufferOperator.js +1 -1
- package/geometry/operators/integrateOperator.d.ts +24 -2
- package/geometry/operators/integrateOperator.js +1 -1
- package/geometry/operators/intersectionOperator.d.ts +88 -3
- package/geometry/operators/intersectionOperator.js +1 -1
- package/geometry/operators/intersectsOperator.d.ts +32 -2
- package/geometry/operators/intersectsOperator.js +1 -1
- package/geometry/operators/isNearOperator.d.ts +31 -4
- package/geometry/operators/isNearOperator.js +1 -1
- package/geometry/operators/json/bufferOperator.js +1 -1
- package/geometry/operators/json/containsOperator.js +1 -1
- package/geometry/operators/json/convexHullOperator.js +1 -1
- package/geometry/operators/json/crossesOperator.js +1 -1
- package/geometry/operators/json/disjointOperator.js +1 -1
- package/geometry/operators/json/generalizeOperator.js +1 -1
- package/geometry/operators/json/geodesicBufferOperator.js +1 -1
- package/geometry/operators/json/graphicBufferOperator.js +1 -1
- package/geometry/operators/json/intersectionOperator.js +1 -1
- package/geometry/operators/json/intersectsOperator.js +1 -1
- package/geometry/operators/json/lengthOperator.js +1 -1
- package/geometry/operators/json/offsetOperator.js +1 -1
- package/geometry/operators/json/overlapsOperator.js +1 -1
- package/geometry/operators/json/projectOperator.js +1 -1
- package/geometry/operators/json/simplifyOperator.js +1 -1
- package/geometry/operators/json/simplifyOperatorOGC.js +1 -1
- package/geometry/operators/json/touchesOperator.js +1 -1
- package/geometry/operators/json/unionOperator.js +1 -1
- package/geometry/operators/json/withinOperator.js +1 -1
- package/geometry/operators/labelPointOperator.d.ts +32 -2
- package/geometry/operators/labelPointOperator.js +1 -1
- package/geometry/operators/lengthOperator.d.ts +28 -4
- package/geometry/operators/lengthOperator.js +1 -1
- package/geometry/operators/linesToPolygonsOperator.d.ts +23 -2
- package/geometry/operators/linesToPolygonsOperator.js +1 -1
- package/geometry/operators/locateBetweenOperator.d.ts +28 -2
- package/geometry/operators/locateBetweenOperator.js +1 -1
- package/geometry/operators/minimumBoundingCircleOperator.d.ts +38 -4
- package/geometry/operators/minimumBoundingCircleOperator.js +1 -1
- package/geometry/operators/multiPartToSinglePartOperator.d.ts +33 -4
- package/geometry/operators/multiPartToSinglePartOperator.js +1 -1
- package/geometry/operators/offsetOperator.d.ts +50 -5
- package/geometry/operators/offsetOperator.js +1 -1
- package/geometry/operators/overlapsOperator.d.ts +33 -2
- package/geometry/operators/overlapsOperator.js +1 -1
- package/geometry/operators/polygonOverlayOperator.d.ts +31 -5
- package/geometry/operators/polygonOverlayOperator.js +1 -1
- package/geometry/operators/polygonSlicerOperator.d.ts +72 -10
- package/geometry/operators/polygonSlicerOperator.js +1 -1
- package/geometry/operators/projectOperator.d.ts +63 -3
- package/geometry/operators/projectOperator.js +1 -1
- package/geometry/operators/proximityOperator.d.ts +71 -9
- package/geometry/operators/proximityOperator.js +1 -1
- package/geometry/operators/relateOperator.d.ts +41 -2
- package/geometry/operators/relateOperator.js +1 -1
- package/geometry/operators/reshapeOperator.d.ts +28 -2
- package/geometry/operators/reshapeOperator.js +1 -1
- package/geometry/operators/shapePreservingProjectOperator.d.ts +64 -6
- package/geometry/operators/shapePreservingProjectOperator.js +1 -1
- package/geometry/operators/simplifyOGCOperator.d.ts +72 -6
- package/geometry/operators/simplifyOGCOperator.js +1 -1
- package/geometry/operators/simplifyOperator.d.ts +72 -4
- package/geometry/operators/simplifyOperator.js +1 -1
- package/geometry/operators/singlePartToMultiPartOperator.js +1 -1
- package/geometry/operators/support/Transformation.d.ts +17 -11
- package/geometry/operators/support/jsonConverter.js +1 -1
- package/geometry/operators/symmetricDifferenceOperator.d.ts +33 -2
- package/geometry/operators/symmetricDifferenceOperator.js +1 -1
- package/geometry/operators/touchesOperator.d.ts +32 -2
- package/geometry/operators/touchesOperator.js +1 -1
- package/geometry/operators/types.d.ts +4 -1
- package/geometry/operators/unionOperator.d.ts +33 -2
- package/geometry/operators/unionOperator.js +1 -1
- package/geometry/operators/withinOperator.d.ts +32 -2
- package/geometry/operators/withinOperator.js +1 -1
- package/geometry/projectionUtils.js +1 -1
- package/geometry/support/geometryUtils.js +1 -1
- package/geometry/support/normalizeUtils.d.ts +5 -3
- package/geometry/support/normalizeUtils.js +1 -1
- package/interfaces.d.ts +202 -202
- package/kernel.js +1 -1
- package/layers/graphics/data/QueryEngineResult.js +1 -1
- package/layers/graphics/data/queryUtils.js +1 -1
- package/layers/graphics/data/spatialQuerySupport.js +1 -1
- package/layers/graphics/sources/support/sourceUtils.js +1 -1
- package/layers/list/Item.d.ts +27 -3
- package/layers/list/Item.js +1 -1
- package/layers/list/ItemPanel.d.ts +1 -1
- package/layers/list/LayerItemCollection.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/mixins/TiledImagery.js +1 -1
- package/layers/orientedImagery/transformations/updateElevationUtils.js +1 -1
- package/layers/raster/datasets/FunctionRaster.js +1 -1
- package/layers/raster/datasets/pixelReader.js +1 -1
- package/layers/raster/functions/clipUtils.js +1 -1
- package/layers/raster/functions/rasterProjectionHelper.js +1 -1
- package/layers/support/Sublayer.js +1 -1
- package/layers/support/trackInfoUtils.js +2 -0
- package/layers/video/videoUtils.js +1 -1
- package/package.json +5 -5
- package/popup/FeatureContentCollection.d.ts +3 -3
- package/popup/FeatureContentCollection.js +1 -1
- package/portal/schemas/definitions.js +1 -1
- package/portal/schemas/webScene.js +1 -1
- package/smartMapping/support/adapters/InMemoryLayerAdapter.js +1 -1
- package/support/revision.js +1 -1
- package/support/tests/serviceMockDependencies.js +1 -1
- package/support/tests/setupServiceMocksMesh.js +1 -1
- package/symbols/cim/CIMEffects.js +1 -1
- package/symbols/cim/effects/EffectBuffer.js +1 -1
- package/symbols/cim/effects/EffectControlMeasureLine.js +1 -1
- package/symbols/cim/effects/EffectDonut.js +1 -1
- package/symbols/cim/effects/EffectEnclosingPolygon.js +1 -1
- package/symbols/cim/effects/EffectOffset.js +1 -1
- package/symbols/cim/effects/EffectTaperedPolygon.js +1 -1
- package/views/2d/analysis/AreaMeasurement/AreaMeasurementController.js +1 -1
- package/views/2d/analysis/DistanceMeasurement/DistanceMeasurementController.js +1 -1
- package/views/2d/engine/webgl/Overlay.js +1 -1
- package/views/2d/engine/webgl/VideoScreenRenderer.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/2d/layers/support/RouteLayerWaypointVisualization.js +1 -1
- package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementController.js +1 -1
- package/views/3d/layers/ElevationLayerView3D.js +1 -1
- package/views/3d/layers/ElevationLayerView3DModifications.js +1 -1
- package/views/3d/layers/graphics/Deconflictor.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/i3s/I3SMeshViewFilter.js +1 -1
- package/views/MapView.d.ts +3 -3
- package/views/SceneView.js +1 -1
- package/views/VideoView.js +1 -1
- package/views/View2D.d.ts +22 -22
- package/views/analysis/ElevationProfile/elevationProfileGeometryUtils.js +1 -1
- package/views/draw/DrawTool.js +1 -1
- package/views/draw/support/createUtils.js +1 -1
- package/views/layers/SceneLayerView.js +1 -1
- package/views/support/GeometryWorker.js +1 -1
- package/views/support/imageReprojection.js +1 -1
- package/views/video/VideoOperationalDataView.js +1 -1
- package/webscene/InitialViewProperties.d.ts +9 -1
- package/webscene/InitialViewProperties.js +1 -1
- package/webscene/Slide.d.ts +10 -1
- package/webscene/Slide.js +1 -1
- package/widgets/AreaMeasurement2D/AreaMeasurement2DTool.js +1 -1
- package/widgets/BatchAttributeForm/expressions/ExpressionsModel.js +1 -1
- package/widgets/BatchAttributeForm/expressions/expressionUtils.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/DynamicChoiceController.js +1 -1
- package/widgets/BatchAttributeForm/templates/FieldElementTemplate.js +1 -1
- package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
- package/widgets/DistanceMeasurement2D/DistanceMeasurement2DTool.js +1 -1
- package/widgets/Editor/support/mergeFeaturesUtils.js +1 -1
- package/widgets/Editor/support/splitFeatureUtils.js +1 -1
- package/widgets/ElevationProfile/support/ElevationProfileView.js +1 -1
- package/widgets/ElevationProfile/support/InputRepresentation2D.js +1 -1
- package/widgets/ElevationProfile/support/InputRepresentation3D.js +1 -1
- package/widgets/ElevationProfile/support/geometryUtils.js +1 -1
- package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/UtilityNetworkAssociationItemList.js +1 -1
- package/widgets/Features/FeaturesViewModel.js +1 -1
- package/widgets/Features.js +1 -1
- package/widgets/FloorFilter/FloorFilterViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/view/MapViewAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/components/ImageViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/components/OrientedImageryVideoViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
- package/widgets/OrientedImageryViewer/support/panConstraint.js +1 -1
- package/widgets/OrientedImageryViewer/support/superimposeUtils.js +1 -1
- package/widgets/OrientedImageryViewer/videoViewerUtils.js +1 -1
- package/widgets/Print.js +1 -1
- package/widgets/Search/SearchViewModel.js +1 -1
- package/widgets/Search/support/layerSearchUtils.js +1 -1
- package/widgets/Search/support/locatorUtils.js +1 -1
- package/widgets/UtilityNetworkTrace/support/GeometryHandler.js +1 -1
- package/widgets/support/FilterBuilder/FilterBuilderViewModel.d.ts +104 -0
- package/widgets/support/FilterBuilder/FilterBuilderViewModel.js +1 -1
- package/widgets/support/FilterBuilder.js +1 -1
- package/widgets/support/FilterCondition/FilterConditionViewModel.d.ts +145 -0
- package/widgets/support/FilterCondition/FilterConditionViewModel.js +1 -1
- package/widgets/support/FilterCondition/types.d.ts +20 -0
- package/widgets/support/ItemList.js +1 -1
- package/widgets/support/SelectionList/FeatureItem.d.ts +17 -68
- package/widgets/support/SelectionList/FeatureItem.js +1 -1
- package/widgets/support/SelectionList/GroupLayerItem.d.ts +12 -50
- package/widgets/support/SelectionList/GroupLayerItem.js +1 -1
- package/widgets/support/SelectionList/ItemBase.d.ts +14 -44
- package/widgets/support/SelectionList/ItemBase.js +1 -1
- package/widgets/support/SelectionList/LayerItem.d.ts +10 -56
- package/widgets/support/SelectionList/LayerItem.js +1 -1
- package/widgets/support/SelectionList/types.d.ts +4 -4
- package/widgets/support/Selector2D/selectorUtils.js +1 -1
- package/assets/esri/core/workers/chunks/090ea7a131f8f60203ed.js +0 -1
- package/assets/esri/core/workers/chunks/0b4a7209b99227a842ad.js +0 -1
- package/assets/esri/core/workers/chunks/0be98adfef79fc5036f0.js +0 -1
- package/assets/esri/core/workers/chunks/0d2e2d90a4e4a28e2c0c.js +0 -1
- package/assets/esri/core/workers/chunks/0d7763d39a5a8586a0ae.js +0 -1
- package/assets/esri/core/workers/chunks/0d95f72e1c07ab867d21.js +0 -1
- package/assets/esri/core/workers/chunks/0dbbac7a2378728571a7.js +0 -1
- package/assets/esri/core/workers/chunks/0df9864ecebe6a2b973f.js +0 -1
- package/assets/esri/core/workers/chunks/104d74bc36c28c519396.js +0 -1
- package/assets/esri/core/workers/chunks/1670e9867efde4d7a6d6.js +0 -1
- package/assets/esri/core/workers/chunks/1c803eef9a8fdabc61e3.js +0 -2
- package/assets/esri/core/workers/chunks/1e192ac0533a5c0b5a7a.js +0 -1
- package/assets/esri/core/workers/chunks/1fe077f57a087c0e9119.js +0 -1
- package/assets/esri/core/workers/chunks/20f7b5fe64a217cb3d3d.js +0 -1
- package/assets/esri/core/workers/chunks/212222b64039d436b9a6.js +0 -1
- package/assets/esri/core/workers/chunks/24944b625ed8dcd904f0.js +0 -1
- package/assets/esri/core/workers/chunks/2b6d261fe79fe186fb22.js +0 -1
- package/assets/esri/core/workers/chunks/2bc3e7f394386fa75447.js +0 -1
- package/assets/esri/core/workers/chunks/30af0f7c4cfa541c9efd.js +0 -1
- package/assets/esri/core/workers/chunks/30d816bdeea00f6fa1ca.js +0 -1
- package/assets/esri/core/workers/chunks/35d46c2f658a8e92d913.js +0 -1
- package/assets/esri/core/workers/chunks/36e35a8067b18f59cc05.js +0 -1
- package/assets/esri/core/workers/chunks/3869dca884d7ca6488f5.js +0 -1
- package/assets/esri/core/workers/chunks/3f5234120d3a14186c1c.js +0 -1
- package/assets/esri/core/workers/chunks/45c1c90ac6c14657f3ff.js +0 -1
- package/assets/esri/core/workers/chunks/4a40b894ec89b0a4f9bf.js +0 -1
- package/assets/esri/core/workers/chunks/5165d367328ac7badf47.js +0 -1
- package/assets/esri/core/workers/chunks/5168bd8ab6233dc9c32a.js +0 -1
- package/assets/esri/core/workers/chunks/545bec045167c433af8f.js +0 -1
- package/assets/esri/core/workers/chunks/5782c0362a1799ceef41.js +0 -1
- package/assets/esri/core/workers/chunks/59598023c0aea62a6297.js +0 -1
- package/assets/esri/core/workers/chunks/59f0a2bd40b033ce77e4.js +0 -1
- package/assets/esri/core/workers/chunks/5af16937904c06fb06f6.js +0 -1
- package/assets/esri/core/workers/chunks/5b8591486f33627f5389.js +0 -1
- package/assets/esri/core/workers/chunks/6057a79c68c33ee4a193.js +0 -1
- package/assets/esri/core/workers/chunks/607acd9f615f87e14075.js +0 -1
- package/assets/esri/core/workers/chunks/62ee6c247f783acabb74.js +0 -1
- package/assets/esri/core/workers/chunks/63127e3b22e7eac6003d.js +0 -2
- package/assets/esri/core/workers/chunks/6564f17c4700dc8d9c0e.js +0 -2
- package/assets/esri/core/workers/chunks/678585509706755c0434.js +0 -2
- package/assets/esri/core/workers/chunks/691e9cc541cfaebe1776.js +0 -1
- package/assets/esri/core/workers/chunks/6a2d890640b2cd6c5ccb.js +0 -1
- package/assets/esri/core/workers/chunks/6b84982dfaf084a61b93.js +0 -1
- package/assets/esri/core/workers/chunks/6cbc30b31f0bb39c73ca.js +0 -1
- package/assets/esri/core/workers/chunks/6f01bd01b13662eb3bd7.js +0 -1
- package/assets/esri/core/workers/chunks/74cd9df85c4560bb8e52.js +0 -1
- package/assets/esri/core/workers/chunks/75bddfe2be64379db8fd.js +0 -1
- package/assets/esri/core/workers/chunks/7cf903db44f3647c8fd4.js +0 -1
- package/assets/esri/core/workers/chunks/7ddb5800777fbecee3a8.js +0 -1
- package/assets/esri/core/workers/chunks/7eae9053065d3d38e54e.js +0 -1
- package/assets/esri/core/workers/chunks/80f38ab2b7ae61e6f301.js +0 -1
- package/assets/esri/core/workers/chunks/854f42f16fdb40000aae.js +0 -1
- package/assets/esri/core/workers/chunks/87094044458b0ea5cb0f.js +0 -2
- package/assets/esri/core/workers/chunks/88f03352a4dc6184ea1f.js +0 -1
- package/assets/esri/core/workers/chunks/909ee7d2a0eec773037a.js +0 -1
- package/assets/esri/core/workers/chunks/91ac9328afff8a51bd96.js +0 -1
- package/assets/esri/core/workers/chunks/92a6559a6999b26362d7.js +0 -1
- package/assets/esri/core/workers/chunks/94ddfe165ac25aef8229.js +0 -1
- package/assets/esri/core/workers/chunks/9509bef285929c52c244.js +0 -1
- package/assets/esri/core/workers/chunks/99966339b061eb9945b8.js +0 -1
- package/assets/esri/core/workers/chunks/99f627938dbf0152fc02.js +0 -1
- package/assets/esri/core/workers/chunks/9df38cadebf8e6fd746c.js +0 -1
- package/assets/esri/core/workers/chunks/9e2b3754a76e0dd4a94a.js +0 -1
- package/assets/esri/core/workers/chunks/a0565137027c83108953.js +0 -1
- package/assets/esri/core/workers/chunks/a0eb882a5a81d25b9153.js +0 -1
- package/assets/esri/core/workers/chunks/a785e827f0215a73103d.js +0 -1
- package/assets/esri/core/workers/chunks/abe7670db06b27c0c8c8.js +0 -1
- package/assets/esri/core/workers/chunks/b19cff0e43fab2632660.js +0 -1
- package/assets/esri/core/workers/chunks/b333de4dea14c5db0a4d.js +0 -1
- package/assets/esri/core/workers/chunks/b6af90be328ebda26b8d.js +0 -1
- package/assets/esri/core/workers/chunks/b7c0da9d255d5e48320d.js +0 -1
- package/assets/esri/core/workers/chunks/bd7d87d175ba933ab2ce.js +0 -1
- package/assets/esri/core/workers/chunks/be0417df35a7d99af675.js +0 -1
- package/assets/esri/core/workers/chunks/c30b6bbabd05e4976fba.js +0 -1
- package/assets/esri/core/workers/chunks/c35553d07ad169910742.js +0 -1
- package/assets/esri/core/workers/chunks/c5c2fed38e0ccf84f1fa.js +0 -1
- package/assets/esri/core/workers/chunks/c88bfa51d2a8a024fc24.js +0 -1
- package/assets/esri/core/workers/chunks/ca36d85a47179d95f2fc.js +0 -1
- package/assets/esri/core/workers/chunks/d0cf9ff48f051adbd455.js +0 -1
- package/assets/esri/core/workers/chunks/d1304d414b1fa725168a.js +0 -1
- package/assets/esri/core/workers/chunks/d24125a791247019e2ca.js +0 -1
- package/assets/esri/core/workers/chunks/d26be8313526ecea9c68.js +0 -1
- package/assets/esri/core/workers/chunks/d2cb3d5ef0a9285afb78.js +0 -1
- package/assets/esri/core/workers/chunks/d4b0012ae1d3b8a9ba01.js +0 -1
- package/assets/esri/core/workers/chunks/e018cbd97e6e0e4ca5c4.js +0 -1
- package/assets/esri/core/workers/chunks/e39bccc000c768120a32.js +0 -1
- package/assets/esri/core/workers/chunks/e4380706b629729f2212.js +0 -1
- package/assets/esri/core/workers/chunks/ea1877ce00da3b585a30.js +0 -1
- package/assets/esri/core/workers/chunks/ea5ee1b12b43594592a0.js +0 -1
- package/assets/esri/core/workers/chunks/ea91c57a0b31f3f65ee5.js +0 -1
- package/assets/esri/core/workers/chunks/eafc591e1a98000d54ef.js +0 -1
- package/assets/esri/core/workers/chunks/ef851a2cff76fd211c07.js +0 -1
- package/assets/esri/core/workers/chunks/f3e53be08ab9dbdf17ae.js +0 -1
- package/assets/esri/core/workers/chunks/f53010adb70463b75bb9.js +0 -1
- package/assets/esri/core/workers/chunks/f5a058a0ce006bce2a2a.js +0 -1
- package/assets/esri/core/workers/chunks/f5f5b54cab722abe88e0.js +0 -1
- package/assets/esri/core/workers/chunks/f60ed579981913d44675.js +0 -1
- package/assets/esri/core/workers/chunks/f6f56f3e011dcef90bbb.js +0 -1
- package/assets/esri/core/workers/chunks/f83c3597e9332bd991eb.js +0 -1
- package/assets/esri/core/workers/chunks/f9a4387f850d85c44ca5.js +0 -1
- package/assets/esri/core/workers/chunks/fdd0e6d9927d3c43b0d3.js +0 -1
- package/geometry/operators/importUtils.js +0 -2
- /package/assets/esri/core/workers/chunks/{1c803eef9a8fdabc61e3.js.LICENSE.txt → 1082bb0858585bd4fa21.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{87094044458b0ea5cb0f.js.LICENSE.txt → 2e2349387a2b9903f13c.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{678585509706755c0434.js.LICENSE.txt → 411bbdecba340df11d95.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{5edf77618ca51819d7c4.js.LICENSE.txt → 476535cfb06ced74d611.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{6564f17c4700dc8d9c0e.js.LICENSE.txt → b82b523b6837ed1f28d3.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{63127e3b22e7eac6003d.js.LICENSE.txt → ef24fd6c0322e5de9fdf.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6678],{6371(t,e,r){r.d(e,{y:()=>n});const i=new(r(32488).A);function n(t,e=!0){if(!i.hasBidiChar(t))return[t,!1,{...i}];let r;r="rtl"===i.checkContextual(t)?"IDNNN":"ICNNN";const n=e?"VLYSN":"VLYNN";return[i.bidiTransform(t,r,n),!0,{...i}]}},40804(t,e,r){function i(t,e=0){let r=0;for(let i=0;i<4;i++)r+=t[e+i]*n[i];return r}r(34727);const n=[1/256,1/65536,1/16777216,1/4294967296];i(new Uint8ClampedArray([255,255,255,255])),i(new Uint8ClampedArray([255,255,255,0]))},18370(t,e,r){r.d(e,{z:()=>n});class i{constructor(t){this._import=t,this.module=null,this._promise=null}getImportPromise(){return null==this._promise&&(this._promise=this._import().then(async t=>(this.module=t,t))),this._promise}}function n(t){return new i(t)}},56512(t,e,r){function i(t){let e,r,i=[],n=!1;return function(...s){return n&&e===this&&function(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r])return!1;return!0}(s,i)||(r=t.apply(this,s),e=this,i=s,n=!0),r}}r.d(e,{B:()=>i})},31411(t,e,r){r.d(e,{GS:()=>w,gh:()=>I});var i=r(49186),n=r(56512),s=r(65864),o=r(4305),a=r(50954),l=r(52006),c=r(49663),h=r(46068),u=r(15507);const f=1e-6,m=[0,0];function d(t){return{maxSegmentLength:t.maxSegmentLength??0,maxDeviation:t.maxDeviation??0,maxSegmentsPerCurve:t.maxSegmentsPerCurve??12e3,minSegmentsPerCurve:Math.max(t.minSegmentsPerCurve??1,1)}}class p{constructor(t,e){this.curveStart=t,this.curveEnd=e,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(t,e){this.tStart=0,this.arcStart=t,this.tEndStack.push(1),this.arcEndStack.push(e)}splitAt(t){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(t),this.arcEndStack.push(this.interpolate(t))}splitInHalf(){return this.splitAt((this.tStart+this.tEnd)/2)}pop(){this.tEnd=this.tEndStack.pop(),this.arcEnd=this.arcEndStack.pop()}next(){this.tStart=this.tEnd,this.arcStart=this.arcEnd}densify(t,{maxDeviation:e,maxSegmentLength:r,maxSegmentsPerCurve:i,minSegmentsPerCurve:n}){const s=r*r,o=e*e,a=1/i,l=this.interpolate(0),c=this.interpolate(1);(0,u.kb)(this.curveStart,l)>f&&t.push(l),this.initialize(l,c);const h=1/n;for(let t=n-1;t>0;t--){const e=t*h;this.pop(),this.splitAt(e)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<a||(0===s||!isFinite(s)||(0,u.kb)(this.arcStart,this.arcEnd)<s)&&(0===o||!isFinite(o)||this.getDeviation2()<o)?(t.push(this.arcEnd),this.next()):this.splitInHalf();return(0,u.kb)(this.curveEnd,c)>f&&t.push([...this.curveEnd]),t}}class y extends p{constructor(t,e){const[r,i,n]=e.b;super(t,r),this._controlPointsStack=[],this._curveControlPoints=[i,n],this._arcControlPoints=[i,n],this._controlPointsStack.push(this._arcControlPoints)}splitAt(t){const{arcStart:e,arcEnd:r,tStart:i,tEnd:n}=this,[s,o]=this._arcControlPoints,a=(t-i)/(n-i),l=(0,u.RS)([],e,s,a),c=(0,u.RS)(m,s,o,a),h=(0,u.RS)([],o,r,a),f=(0,u.RS)([],l,c,a),d=(0,u.RS)([],c,h,a),p=(0,u.RS)([],f,d,a);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([d,h]),this.tEndStack.push(t),this.arcEndStack.push(p),this._arcControlPoints[0]=l,this._arcControlPoints[1]=f,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(t){const{curveStart:e,curveEnd:r}=this,[i,n]=this._curveControlPoints;return(0,o.B4)(e,i,n,r,t)}getDeviation2(){const{arcStart:t,arcEnd:e}=this,[r,i]=this._arcControlPoints;return Math.max((0,u.yE)(r,t,e),(0,u.yE)(i,t,e))}}class g extends p{constructor(t,e){const[r]=e.a;super(t,r),this._derivedEllipse=(0,h.SW)(t,e)}pop(){super.pop(),this._tMid=(this.tStart+this.tEnd)/2,this._arcMid=this.interpolate(this._tMid)}splitInHalf(){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(this._tMid),this.arcEndStack.push(this._arcMid)}interpolate(t){return(0,h.Uk)(this._derivedEllipse,t)}getDeviation2(){return(0,u.yE)(this._arcMid,this.arcStart,this.arcEnd)}}function S(t,e,r,{cx:i,cy:n,radius:s,thetaStart:o,thetaEnd:a,isInvalid:l},{maxDeviation:c,maxSegmentLength:h,maxSegmentsPerCurve:m,minSegmentsPerCurve:d}){if(l)return t.push([...r]),t;const p=2*s,y=[i+s*Math.cos(o),n+s*Math.sin(o)],g=[i+s*Math.cos(a),n+s*Math.sin(a)];(0,u.kb)(e,y)>f&&t.push(y);const S=Math.abs(a-o),M=h>0&&h<p?2*Math.asin(h/p):S,C=c>0&&c<=s?2*Math.acos(1-c/s):S,b=Math.min(M,C),x=Math.min(m,Math.max(d,Math.ceil(Math.abs(S/b)))),_=1/x;for(let e=1;e<x;e++){const r=e*_,l=o*(1-r)+a*r;t.push([i+s*Math.cos(l),n+s*Math.sin(l)])}return t.push(g),(0,u.kb)(r,g)>f&&t.push([...r]),t}function M(t,e,r,i){return new y(e,r).densify(t,i)}function C(t,e,r,i){const n=(0,a.pM)(e,r),[s]=r.c;return S(t,e,s,n,i)}function b(t,e,r,i){const n=(0,c.io)(e,r),[s]=r.a;return S(t,e,s,n,i)}function x(t,e,r,i){const[n,s,o,a,l,c,h]=r.a;return 0===c||0===h?(t.push([...n]),t):new g(e,r).densify(t,i)}function _(t,e,r,i){return(0,l.Xq)(r)?(t.push([...r]),t):(0,l.n1)(r)?M(t,e,r,i):(0,l.aO)(r)?C(t,e,r,i):(0,l.DA)(r)?b(t,e,r,i):x(t,e,r,i)}function w(t,e={}){if(!(0,l.Ed)(t))return t;const r=d(e),i=(0,l.FD)(t),n=[];for(const t of i){const e=[];for(let i=0;i<t.length-1;i++){const n=i+1,s=[...(0,l.yP)(t[i])];0===i&&e.push(s),_(e,s,t[n],r)}n.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},paths:n,spatialReference:t.spatialReference}:{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},rings:n,spatialReference:t.spatialReference}}const k=(0,n.B)(t=>({maxDeviation:0,maxSegmentLength:100*t,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));async function I(t,e,n){const o=new Set(e);return await async function(t,e,n){let s=null;for(const o of t)if(o&&(0,l.Ed)(o)&&null==o.spatialReference.xyTolerance&&(0,l.V8)(o,e)){const t=o.spatialReference;if(!t)throw new i.A("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const e=P(t);if(n.has(e))o.spatialReference=n.get(e);else{s||(s=await Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(1550)]).then(()=>r(78125)));const a=s.fromSpatialReference(t),l=a?.getTolerance();if(null==l)throw new i.A("geometry:missing-tolerance","Geometry contains an unsupported curve type, but it cannot be densified because the tolerance of its spatial reference is unknown. Set the `xyTolerance` property of the spatial reference.");const c=o.spatialReference.clone();c.read({xyTolerance:l}),o.spatialReference=c,n.set(e,c)}}}(t,o,n),t.map(t=>{if(!t||!(0,l.Ed)(t))return t;const r=t.spatialReference.xyTolerance;if(null==r)return t;const i=k(r);return(0,s.rS)(function(t,e,r){if(!(0,l.Ed)(t))return t;const i=new Set(e),n=d(r),s=(0,l.FD)(t),o=[];let a=!1;for(const t of s){const e=[];for(let r=0;r<t.length-1;r++){const s=r+1,o=[...(0,l.yP)(t[r])];0===r&&e.push(o);const c=t[s];(0,l.Xq)(c)?e.push([...c]):(0,l.n1)(c)&&!i.has("cubic-bezier")?M(e,o,c,n):(0,l.aO)(c)&&!i.has("circular-arc")?C(e,o,c,n):(0,l.DA)(c)&&!i.has("elliptic-arc")?b(e,o,c,n):(0,l.wY)(c)&&!i.has("elliptic-arc")?x(e,o,c,n):(e.push((0,l.tk)(c)),a=!0)}o.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},spatialReference:t.spatialReference,...a?{curvePaths:o}:{paths:o}}:{hasZ:t.hasZ,hasM:t.hasM,spatialReference:t.spatialReference,...a?{curveRings:o}:{rings:o}}}(t,e,i))})}function P(t){if(null!=t.wkid)return`${t.wkid}`;if(null!=t.wkt)return t.wkt;const e="toJSON"in t&&"function"==typeof t.toJSON?t.toJSON():t;return JSON.stringify(e)}},72726(t,e,r){r.d(e,{Rj:()=>F,mx:()=>D,IT:()=>A,QF:()=>O});var i=r(57582),n=(r(44208),r(4718)),s=r(53966),o=r(34727),a=r(93687),l=r(90629),c=r(36745),h=r(19419),u=r(537),f=r(12359),m=(r(12176),r(60408)),d=r(35833);class p{applyColorSubstitution(t,e){if(!e)return t;this._rasterizationCanvas||(this._rasterizationCanvas=document.createElement("canvas"));const{width:r,height:i}=t,n=this._rasterizationCanvas,s=n.getContext("2d",{willReadFrequently:!0});t!==n&&(n.width=r,n.height=i,s.drawImage(t,0,0,r,i));const o=s.getImageData(0,0,r,i).data;if(e)for(const t of e)if(t&&t.oldColor&&4===t.oldColor.length&&t.newColor&&4===t.newColor.length){const[e,r,i,n]=t.oldColor,[s,a,l,c]=t.newColor;if(e===s&&r===a&&i===l&&n===c)continue;for(let t=0;t<o.length;t+=4)e===o[t]&&r===o[t+1]&&i===o[t+2]&&n===o[t+3]&&(o[t]=s,o[t+1]=a,o[t+2]=l,o[t+3]=c)}const a=new ImageData(o,r,i);return s.putImageData(a,0,0),n}tintImageData(t,e){if(!e||e.length<4)return t;this._rasterizationCanvas||(this._rasterizationCanvas=document.createElement("canvas"));const{width:r,height:i}=t,n=this._rasterizationCanvas,s=n.getContext("2d",{willReadFrequently:!0});t!==n&&(n.width=r,n.height=i,s.drawImage(t,0,0,r,i));const o=s.getImageData(0,0,r,i),a=new Uint8Array(o.data),l=[e[0]/255,e[1]/255,e[2]/255,e[3]/255];for(let t=0;t<a.length;t+=4)a[t]*=l[0],a[t+1]*=l[1],a[t+2]*=l[2],a[t+3]*=l[3];const c=new ImageData(new Uint8ClampedArray(a.buffer),r,i);return s.putImageData(c,0,0),n}}var y=r(26937),g=r(98939),S=r(28076);function M(t){const e=t.getFrame(0);if(e instanceof HTMLImageElement||e instanceof HTMLCanvasElement)return e;const r=document.createElement("canvas");r.width=t.width,r.height=t.height;const i=r.getContext("2d");return e instanceof ImageData?i.putImageData(e,0,0):i.drawImage(e,0,0),r}function C(t,e=0){if(0===e)return t;const r=Math.cos(e),i=Math.sin(e),[n,s]=t;return[n*r+s*-i,n*i+s*r]}var b=r(44589);class x{constructor(t=0,e=0,r=0,i=0){this.x=t,this.y=e,this.width=r,this.height=i}static fromExtent(t){return new x(t.xmin,-t.ymax,t.xmax-t.xmin,t.ymax-t.ymin)}get isEmpty(){return this.width<=0||this.height<=0}union(t){this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.width=Math.max(this.width,t.width),this.height=Math.max(this.height,t.height)}}var _=r(69754);function w(t){return`rgb(${t.slice(0,3).toString()})`}function k(t){return`rgba(${t.slice(0,3).toString()},${t[3]})`}r(5760);class I{constructor(t){t&&(this._textRasterizationCanvas=t)}rasterizeRichText(t,e){this._textRasterizationCanvas||(this._textRasterizationCanvas=document.createElement("canvas"));const r=this._textRasterizationCanvas,i=r.getContext("2d",{willReadFrequently:!0}),n=this._layoutRichTextRuns(i,t,e);this._parameters=e,this._lineHeight=Math.max(...n.map(t=>t.height),this._measureLineHeight(e));const{decoration:s,weight:o}=e.font;this._lineThroughWidthOffset=s&&"line-through"===s?.1*this._lineHeight:0;const a=null!=e.backgroundColor||null!=e.borderLine,l=a?8:0,c=Math.max(...n.map(t=>t.width),0)+2*l,h=n.reduce((t,e)=>t+e.height,0)+2*l;if(r.width=c+2*this._lineThroughWidthOffset,r.height=h,0===r.width||0===r.height)return r.width=r.height=1,{size:[0,0],image:new Uint32Array(0),sdf:!1,simplePattern:!1,anchorX:0,anchorY:0,canvas:r};this._renderedWidth=c,this._renderedHeight=h,this._renderedOutlineSize=(e.outline.size||0)*e.pixelRatio,this._renderedHaloSize=(e.halo.size||0)*e.pixelRatio,this._lineThroughWidthOffset*=e.pixelRatio;const u=(e.outline&&e.outline.color)??[0,0,0,0],f=e.color??[0,0,0,0],m=e.halo&&e.halo.color?e.halo.color:[0,0,0,0];this._fillStyle=k(f),this._outlineStyle=k(u),this._haloStyle=w(m);const d=this._renderedOutlineSize,p=this._renderedHaloSize;i.save(),i.clearRect(0,0,r.width,r.height);const y=l*e.pixelRatio,g=v("left",this._renderedWidth-2*y,p+d)+y,S=p+d+y;let M=this._lineThroughWidthOffset,C=0;if(a){i.save();const t=e.backgroundColor??[0,0,0,0],n=e.borderLine?.color??[0,0,0,0],s=2*(e.borderLine?.size??0);i.fillStyle=k(t),i.strokeStyle=k(n),i.lineWidth=s,i.fillRect(0,0,r.width,r.height),i.strokeRect(0,0,r.width,r.height),i.restore()}C+=S,M+=g,p>0&&this._renderRichTextOutline(i,n,M,C,e,this._renderedHaloSize+this._renderedOutlineSize),d>0&&this._renderRichTextOutline(i,n,M,C,e,this._renderedOutlineSize);for(const t of n){let r=M;"center"===e.horizontalAlignment?r+=(this._renderedWidth-2*y-t.width)/2:"right"===e.horizontalAlignment&&(r+=this._renderedWidth-2*y-t.width-p-d);let n=r;for(const e of t.segments)P(i,e.parameters,"left",e.characterSpacing),p>0&&(i.globalCompositeOperation="destination-out",i.fillStyle="rgb(0, 0, 0)",this._renderRichTextSegment(i,e,n,C,"fill"),i.globalCompositeOperation="source-over"),i.fillStyle=k(e.parameters.color??f),this._renderRichTextSegment(i,e,n,C,"fill"),n+=e.width;if(s&&"none"!==s){const e=this._renderedWidth;this._renderedWidth=t.width,i.textAlign="left",this._renderDecoration(i,r,C,s,o),this._renderedWidth=e}C+=t.height}i.restore();const b=this._renderedWidth+2*this._lineThroughWidthOffset,x=this._renderedHeight,_=i.getImageData(0,0,b,x),I=new Uint8Array(_.data);if(e.premultiplyColors){let t;for(let e=0;e<I.length;e+=4)t=I[e+3]/255,I[e]=I[e]*t,I[e+1]=I[e+1]*t,I[e+2]=I[e+2]*t}let z,R;switch(e.horizontalAlignment){case"left":z=-.5;break;case"right":z=.5;break;default:z=0}switch(e.verticalAlignment){case"bottom":R=-.5;break;case"top":R=.5;break;case"baseline":R=-1/6;break;default:R=0}return{size:[b,x],image:new Uint32Array(I.buffer),sdf:!1,simplePattern:!1,anchorX:z,anchorY:R,canvas:r}}rasterizeText(t,e){this._textRasterizationCanvas||(this._textRasterizationCanvas=document.createElement("canvas"));const r=this._textRasterizationCanvas,i=r.getContext("2d",{willReadFrequently:!0});P(i,e),this._parameters=e,this._textLines=t.split(/\r?\n/),this._lineHeight=this._computeLineHeight();const{decoration:n,weight:s}=e.font;this._lineThroughWidthOffset=n&&"line-through"===n?.1*this._lineHeight:0;const o=null!=e.backgroundColor||null!=e.borderLine,a=o?8:0,l=this._computeTextWidth(i,e)+2*a,c=this._lineHeight*this._textLines.length+2*a;if(r.width=l+2*this._lineThroughWidthOffset,r.height=c,0===r.width||0===r.height)return r.width=r.height=1,{size:[0,0],image:new Uint32Array(0),sdf:!1,simplePattern:!1,anchorX:0,anchorY:0,canvas:r};this._renderedLineHeight=Math.round(this._lineHeight),this._renderedOutlineSize=(e.outline.size||0)*e.pixelRatio,this._renderedHaloSize=(e.halo.size||0)*e.pixelRatio,this._renderedWidth=l,this._renderedHeight=c,this._lineThroughWidthOffset*=e.pixelRatio;const h=(e.outline&&e.outline.color)??[0,0,0,0],u=e.color??[0,0,0,0],f=e.halo&&e.halo.color?e.halo.color:[0,0,0,0];this._fillStyle=k(u),this._outlineStyle=k(h),this._haloStyle=w(f);const m=this._renderedLineHeight,d=this._renderedOutlineSize,p=this._renderedHaloSize;i.save(),i.clearRect(0,0,r.width,r.height),P(i,e);const y=a*e.pixelRatio,g=v(i.textAlign,this._renderedWidth-2*y,this._renderedHaloSize+this._renderedOutlineSize)+y,S=p+d+y,M=p>0;let C=this._lineThroughWidthOffset,b=0;if(o){i.save();const t=e.backgroundColor??[0,0,0,0],n=e.borderLine?.color??[0,0,0,0],s=2*(e.borderLine?.size??0);i.fillStyle=k(t),i.strokeStyle=k(n),i.lineWidth=s,i.fillRect(0,0,r.width,r.height),i.strokeRect(0,0,r.width,r.height),i.restore()}M&&this._renderHalo(i,g,S,C,b,e),d>0&&this._renderOutline(i,g,S,C,b,e),b+=S,C+=g;for(const t of this._textLines)M?(i.globalCompositeOperation="destination-out",i.fillStyle="rgb(0, 0, 0)",i.fillText(t,C,b),i.globalCompositeOperation="source-over",i.fillStyle=this._fillStyle,i.fillText(t,C,b)):(i.fillStyle=this._fillStyle,i.fillText(t,C,b)),n&&"none"!==n&&this._renderDecoration(i,C,b,n,s),b+=m;i.restore();const x=this._renderedWidth+2*this._lineThroughWidthOffset,_=this._renderedHeight,I=i.getImageData(0,0,x,_),z=new Uint8Array(I.data);if(e.premultiplyColors){let t;for(let e=0;e<z.length;e+=4)t=z[e+3]/255,z[e]=z[e]*t,z[e+1]=z[e+1]*t,z[e+2]=z[e+2]*t}let R,L;switch(e.horizontalAlignment){case"left":R=-.5;break;case"right":R=.5;break;default:R=0}switch(e.verticalAlignment){case"bottom":L=-.5;break;case"top":L=.5;break;case"baseline":L=-1/6;break;default:L=0}return{size:[x,_],image:new Uint32Array(z.buffer),sdf:!1,simplePattern:!1,anchorX:R,anchorY:L,canvas:r}}_renderHalo(t,e,r,i,n,s){const o=this._renderedWidth,a=this._renderedHeight;this._outlineRasterizationCanvas||(this._outlineRasterizationCanvas=document.createElement("canvas")),this._outlineRasterizationCanvas.width=o,this._outlineRasterizationCanvas.height=a;const l=this._outlineRasterizationCanvas,c=l.getContext("2d");c.clearRect(0,0,o,a),P(c,s);const{decoration:h,weight:u}=s.font;c.fillStyle=this._haloStyle,c.strokeStyle=this._haloStyle,c.lineJoin="round",this._renderOutlineNative(c,e,r,h,u,this._renderedHaloSize+this._renderedOutlineSize),t.globalAlpha=this._parameters.halo.color[3],t.drawImage(l,0,0,o,a,i,n,o,a),t.globalAlpha=1}_renderOutline(t,e,r,i,n,s){const o=this._renderedWidth,a=this._renderedHeight;this._outlineRasterizationCanvas||(this._outlineRasterizationCanvas=document.createElement("canvas")),this._outlineRasterizationCanvas.width=o,this._outlineRasterizationCanvas.height=a;const l=this._outlineRasterizationCanvas,c=l.getContext("2d");c.clearRect(0,0,o,a),P(c,s);const{decoration:h,weight:u}=s.font;c.fillStyle=this._outlineStyle,c.strokeStyle=this._outlineStyle,c.lineJoin="round",this._renderOutlineNative(c,e,r,h,u,this._renderedOutlineSize),t.globalAlpha=this._parameters.outline.color[3],t.drawImage(l,0,0,o,a,i,n,o,a),t.globalAlpha=1}_renderOutlineNative(t,e,r,i,n,s){const o=this._renderedLineHeight;for(const a of this._textLines){const l=2*s,c=5,h=.1;for(let s=0;s<c;s++){const o=(1-(c-1)*h+s*h)*l;t.lineWidth=o,t.strokeText(a,e,r),i&&"none"!==i&&this._renderDecoration(t,e,r,i,n,o)}r+=o}}computeTextSize(t,e){this._textRasterizationCanvas||(this._textRasterizationCanvas=document.createElement("canvas"));const r=this._textRasterizationCanvas,i=r.getContext("2d");P(i,e),this._parameters=e,this._textLines=t.split(/\r?\n/),this._lineHeight=this._computeLineHeight();const n=this._computeTextWidth(i,e),s=this._lineHeight*this._textLines.length;return r.width=n,r.height=s,[n*e.pixelRatio,s*e.pixelRatio]}computeRichTextSize(t,e){this._textRasterizationCanvas||(this._textRasterizationCanvas=document.createElement("canvas"));const r=this._textRasterizationCanvas.getContext("2d"),i=this._layoutRichTextRuns(r,t,e),n=Math.max(...i.map(t=>t.width),0),s=i.reduce((t,e)=>t+e.height,0);return[n*e.pixelRatio,s*e.pixelRatio]}_renderRichTextOutline(t,e,r,i,n,s){const o=this._renderedWidth,a=this._renderedHeight;this._outlineRasterizationCanvas||(this._outlineRasterizationCanvas=document.createElement("canvas")),this._outlineRasterizationCanvas.width=o,this._outlineRasterizationCanvas.height=a;const l=this._outlineRasterizationCanvas,c=l.getContext("2d");c.clearRect(0,0,o,a),c.fillStyle=s===this._renderedOutlineSize?this._outlineStyle:this._haloStyle,c.strokeStyle=c.fillStyle,c.lineJoin="round";let h=i;for(const t of e){let e=r;"center"===n.horizontalAlignment?e+=(this._renderedWidth-t.width)/2:"right"===n.horizontalAlignment&&(e+=this._renderedWidth-t.width-this._renderedHaloSize-this._renderedOutlineSize);let i=e;for(const e of t.segments){P(c,e.parameters,"left",e.characterSpacing);const t=2*s,r=5,n=.1;for(let s=0;s<r;s++){const o=1-(r-1)*n+s*n;c.lineWidth=o*t,this._renderRichTextSegment(c,e,i,h,"stroke")}i+=e.width}if(n.font.decoration&&"none"!==n.font.decoration){const r=this._renderedWidth;this._renderedWidth=t.width,c.textAlign="left",this._renderDecoration(c,e,h,n.font.decoration,n.font.weight,2*s),this._renderedWidth=r}h+=t.height}s===this._renderedOutlineSize?t.globalAlpha=this._parameters.outline.color[3]:t.globalAlpha=this._parameters.halo.color[3],t.drawImage(l,0,0,o,a,this._lineThroughWidthOffset,0,o,a),t.globalAlpha=1}_layoutRichTextRuns(t,e,r){const i=[{segments:[],width:0,height:this._measureLineHeight(r)}];for(const n of e){const e=n.text.split(/\r?\n/),s=z(r,n);for(let o=0;o<e.length;o++){const a=e[o],l=i[i.length-1];if(a.length>0){const e=this._measureRichTextSegmentWidth(t,a,s,n.characterSpacing);l.segments.push({text:a,width:e,parameters:s,characterSpacing:n.characterSpacing}),l.width+=e,l.height=Math.max(l.height,this._measureLineHeight(s))}o<e.length-1&&i.push({segments:[],width:0,height:this._measureLineHeight(r)})}}return i}_measureTextWidthWithSpacing(t,e,r,i){const n=this._parameters,s=this._textLines;this._parameters=r,this._textLines=[e],P(t,r,"left",i);const o=this._computeTextWidth(t,r);return this._parameters=n,this._textLines=s,o}_measureRichTextSegmentWidth(t,e,r,i){return this._measureTextWidthWithSpacing(t,e,r,i)}_renderRichTextSegment(t,e,r,i,n){"fill"===n?t.fillText(e.text,r,i):t.strokeText(e.text,r,i)}_measureLineHeight(t){const e=this._parameters;this._parameters=t;const r=this._computeLineHeight();return this._parameters=e,r}_computeTextWidth(t,e){let r=0;for(const e of this._textLines)r=Math.max(r,t.measureText(e).width);const i=e.font;return("italic"===i.style||"oblique"===i.style||"string"==typeof i.weight&&("bold"===i.weight||"bolder"===i.weight)||"number"==typeof i.weight&&i.weight>600)&&(r+=.3*t.measureText("w").width),r+=2*(0,l.Lz)(this._parameters.halo.size),Math.round(r)}_computeLineHeightBase(){return 1.275*this._parameters.size}_computeLineHeight(){let t=this._computeLineHeightBase();const e=this._parameters.font.decoration;return e&&"underline"===e&&(t*=1.3),Math.round(t+2*(0,l.Lz)(this._parameters.halo.size))}_renderDecoration(t,e,r,i,n,s){let o=.9*this._lineHeight;const a="bold"===n?.06:"bolder"===n?.09:.04;switch(t.textAlign){case"center":e-=this._renderedWidth/2;break;case"right":e-=this._renderedWidth}const l=t.textBaseline;if("underline"===i)switch(o=.9*this._computeLineHeightBase(),l){case"top":r+=o;break;case"middle":r+=o/2}else if("line-through"===i)switch(l){case"top":r+=o/1.5;break;case"middle":r+=o/3}const c=s?1.5*s:Math.ceil(o*a);t.save(),t.beginPath(),t.strokeStyle=t.fillStyle,t.lineWidth=c,t.moveTo(e-this._lineThroughWidthOffset,r),t.lineTo(e+this._renderedWidth+2*this._lineThroughWidthOffset,r),t.stroke(),t.restore()}}function P(t,e,r,i=0){const n=Math.max(e.size,.5),s=e.font,o=`${s.style} ${s.weight} ${(0,l.Lz)(n).toFixed(1)}px ${s.family}, sans-serif`;t.font=o,t.textBaseline="top",function(t,e){t.letterSpacing=e>0?`${e}em`:"0px"}(t,i);let a=r??"left";if(!r)switch(e.horizontalAlignment){case"left":default:a="left";break;case"right":a="right";break;case"center":a="center"}t.textAlign=a}function z(t,e){return{...t,color:e.color??t.color,font:{...t.font,family:e.font.family??t.font.family,style:e.font.style??t.font.style,weight:e.font.weight??t.font.weight},size:e.fontSize}}function v(t,e,r){return"center"===t?.5*e:"right"===t?e-r:r}var R=r(93397);r(75434),r(69221);const L=Math.PI/180,T=()=>s.A.getLogger("esri.symbols.cim.CIMSymbolDrawHelper");class A{constructor(t){this._t=t}static createIdentity(){return new A([1,0,0,0,1,0])}clone(){const t=this._t;return new A(t.slice())}transform(t){const e=this._t;return[e[0]*t[0]+e[1]*t[1]+e[2],e[3]*t[0]+e[4]*t[1]+e[5]]}static createScale(t,e){return new A([t,0,0,0,e,0])}scale(t,e){const r=this._t;return r[0]*=t,r[1]*=t,r[2]*=t,r[3]*=e,r[4]*=e,r[5]*=e,this}scaleRatio(){return Math.sqrt(this._t[0]*this._t[0]+this._t[1]*this._t[1])}static createTranslate(t,e){return new A([0,0,t,0,0,e])}translate(t,e){const r=this._t;return r[2]+=t,r[5]+=e,this}static createRotate(t){const e=Math.cos(t),r=Math.sin(t);return new A([e,-r,0,r,e,0])}rotate(t){return A.multiply(this,A.createRotate(t),this)}angle(){const t=this._t[0],e=this._t[3],r=Math.sqrt(t*t+e*e);return[t/r,e/r]}static multiply(t,e,r){const i=t._t,n=e._t,s=i[0]*n[0]+i[3]*n[1],o=i[1]*n[0]+i[4]*n[1],a=i[2]*n[0]+i[5]*n[1]+n[2],l=i[0]*n[3]+i[3]*n[4],c=i[1]*n[3]+i[4]*n[4],h=i[2]*n[3]+i[5]*n[4]+n[5],u=r._t;return u[0]=s,u[1]=o,u[2]=a,u[3]=l,u[4]=c,u[5]=h,r}invert(){const t=this._t;let e=t[0]*t[4]-t[1]*t[3];if(0===e)return new A([0,0,0,0,0,0]);e=1/e;const r=(t[1]*t[5]-t[2]*t[4])*e,i=(t[2]*t[3]-t[0]*t[5])*e,n=t[4]*e,s=-t[1]*e,o=-t[3]*e,a=t[0]*e;return new A([n,s,r,o,a,i])}}class E{constructor(t,e){this._resourceManager=t,this._transfos=[],this._sizeTransfos=[],this._textScaling=[],this._geomUnitsPerPoint=1,this._placementPool=new a.A(()=>new g.W,void 0,void 0,100),this._earlyReturn=!1,this._mapRotation=0,this._transfos.push(e||A.createIdentity()),this._sizeTransfos.push(e?e.scaleRatio():1),this._textScaling.push(1)}setTransform(t,e){this._transfos=[t||A.createIdentity()],this._sizeTransfos=[e||(t?t.scaleRatio():1)],this._textScaling=[1]}setGeomUnitsPerPoint(t){this._geomUnitsPerPoint=t}transformPt(t){return this._transfos[this._transfos.length-1].transform(t)}transformSize(t){return t*this._sizeTransfos[this._sizeTransfos.length-1]}scaleText(t){return t*this._textScaling[this._textScaling.length-1]}reverseTransformPt(t){return this._transfos[this._transfos.length-1].invert().transform(t)}reverseTransformSize(t){return t/this._sizeTransfos[this._sizeTransfos.length-1]}reverseTransformScalar(t){return t/this._transfos[this._transfos.length-1].scaleRatio()}reverseScaleText(t){return t/this._textScaling[this._textScaling.length-1]}getTransformAngle(){return this._transfos[this._transfos.length-1].angle()}geomUnitsPerPoint(){return this.isEmbedded()?1:this._geomUnitsPerPoint}prevGeomUnitsPerPoint(){return this._transfos.length>2?1:this._geomUnitsPerPoint}isEmbedded(){return this._transfos.length>1}back(){return this._transfos[this._transfos.length-1]}push(t,e=!1,r=1){const i=e?t.scaleRatio():1;A.multiply(t,this.back(),t),this._transfos.push(t),this._sizeTransfos.push(this._sizeTransfos[this._sizeTransfos.length-1]*i),this._textScaling.push(this._textScaling[this._textScaling.length-1]*r)}pop(){this._transfos.splice(-1,1),this._sizeTransfos.splice(-1,1),this._textScaling.splice(-1,1)}drawSymbol(t,e,r){if(t)switch(t.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":this.drawMultiLayerSymbol(t,e);break;case"CIMTextSymbol":this.drawTextSymbol(t,e,r)}}drawMultiLayerSymbol(t,e){if(!t||!e)return;const r=t.symbolLayers;if(!r)return;const i=t.effects;if(i&&i.length>0){const t=this.executeEffects(i,e);if(t){let e=t.next();for(;e;)this.drawSymbolLayers(r,e.asJSON()),e=t.next()}}else this.drawSymbolLayers(r,e)}executeEffects(t,e){const r=this.geomUnitsPerPoint(),i=(0,R.ll)(t);let n=new d.kT(c.z.fromJSONCIM(e));for(const s of t){const t=(0,y.A)(s);t&&(n=t.execute(n,s,{geomUnitsPerPoint:r,tileKey:null,maxInflateSize:i,scale:null,spatialReference:e.spatialReference,preventClipping:!1}))}return n}drawSymbolLayers(t,e){let r=t.length;for(;r--;){const i=t[r];if(!i||!1===i.enable)continue;const n=i.effects;if(n&&n.length>0){const t=this.executeEffects(n,e);if(t){let e=null;for(;(e=t.next())&&(this.drawSymbolLayer(i,e.asJSON()),!this._earlyReturn););}}else this.drawSymbolLayer(i,e);if(this._earlyReturn)return}}drawSymbolLayer(t,e){switch(t.type){case"CIMSolidFill":this.drawSolidFill(e,t.color,t.path);break;case"CIMHatchFill":this.drawHatchFill(e,t);break;case"CIMPictureFill":this.drawPictureFill(e,t);break;case"CIMGradientFill":this.drawGradientFill(e,t);break;case"CIMSolidStroke":this.drawSolidStroke(e,t.color,t.width,t.capStyle,t.joinStyle,t.miterLimit,t.path);break;case"CIMPictureStroke":this.drawPictureStroke(e,t);break;case"CIMGradientStroke":this.drawGradientStroke(e,t);break;case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":this.drawMarkerLayer(t,e)}}drawHatchFill(t,e){const r=function(t,e,r){let i=(0,R.$w)(t.separation,S.D.CIMHatchFill.separation)*r,n=(0,R.$w)(t.rotation);if(0===i)return null;i<0&&(i=-i);let s=0;const o=.5*i;for(;s>o;)s-=i;for(;s<-o;)s+=i;const a=(0,h.vt)();(0,u.Rg)(a,e),a[0]-=o,a[1]-=o,a[2]+=o,a[3]+=o;const l=[[a[0],a[1]],[a[0],a[3]],[a[2],a[3]],[a[2],a[1]]];for(;n>180;)n-=180;for(;n<0;)n+=180;const c=Math.cos(n*L),f=Math.sin(n*L),m=-i*f,d=i*c;let p,y,g,M;s=(0,R.$w)(t.offsetX)*r*f-(0,R.$w)(t.offsetY)*r*c,p=g=Number.MAX_VALUE,y=M=-Number.MAX_VALUE;for(const t of l){const e=t[0],r=t[1],i=c*e+f*r,n=-f*e+c*r;p=Math.min(p,i),g=Math.min(g,n),y=Math.max(y,i),M=Math.max(M,n)}g=Math.floor(g/i)*i;let C=c*p-f*g-m*s/i,b=f*p+c*g-d*s/i,x=c*y-f*g-m*s/i,_=f*y+c*g-d*s/i;const w=1+Math.round((M-g)/i),k=[];for(let t=0;t<w;t++)C+=m,b+=d,x+=m,_+=d,k.push([[C,b],[x,_]]);return{paths:k}}(e,t,this.geomUnitsPerPoint());r&&(this.pushClipPath(t),this.drawMultiLayerSymbol(e.lineSymbol,r),this.popClipPath())}drawPictureFill(t,e){}drawGradientFill(t,e){}drawPictureStroke(t,e){}drawGradientStroke(t,e){}drawMarkerLayer(t,e){const r=t.markerPlacement;if(r){const i=(0,y.c)(r);if(i){const n="CIMMarkerPlacementInsidePolygon"===r.type||"CIMMarkerPlacementPolygonCenter"===r.type&&r.clipAtBoundary;n&&this.pushClipPath(e);const s=i.execute(c.z.fromJSONCIM(e),r,this.geomUnitsPerPoint(),null);if(s){let e=null;for(;(e=s.next())&&(this.drawMarker(t,e),!this._earlyReturn););}n&&this.popClipPath()}}else{const r=this._placementPool.acquire();if((0,m.fT)(e))r.tx=e.x,r.ty=e.y,this.drawMarker(t,r);else if((0,m.Bi)(e)){const i=(0,f.l8)(e);i&&([r.tx,r.ty]=i,this.drawMarker(t,r))}else if((0,m.Rg)(e)){for(const i of e.paths)for(const e of i)if(r.tx=e[0],r.ty=e[1],this.drawMarker(t,r),this._earlyReturn)break}else for(const i of e.points)if(r.tx=i[0],r.ty=i[1],this.drawMarker(t,r),this._earlyReturn)break;this._placementPool.release(r)}}drawMarker(t,e){switch(t.type){case"CIMCharacterMarker":case"CIMPictureMarker":this.drawPictureMarker(t,e);break;case"CIMVectorMarker":this.drawVectorMarker(t,e)}}drawPictureMarker(t,e){if(!t)return;const r=this._resourceManager.getResource(t.url),i=(0,R.$w)(t.size,S.D.CIMPictureMarker.size);if(null==r||i<=0)return;const n=r.width,s=r.height;if(!n||!s)return;const o=n/s,a=(0,R.$w)(t.scaleX,1),l=A.createIdentity(),c=t.anchorPoint;if(c){let e=c.x,r=c.y;"Absolute"!==t.anchorPointUnits&&(e*=i*o*a,r*=i),l.translate(-e,-r)}let h=(0,R.$w)(t.rotation);t.rotateClockwise&&(h=-h),this._mapRotation&&(h+=this._mapRotation),h&&l.rotate(h*L);let u=(0,R.$w)(t.offsetX),f=(0,R.$w)(t.offsetY);if(u||f){if(this._mapRotation){const t=L*this._mapRotation,e=Math.cos(t),r=Math.sin(t),i=u*r+f*e;u=u*e-f*r,f=i}l.translate(u,f)}const m=this.geomUnitsPerPoint();1!==m&&l.scale(m,m);const d=e.getAngle();d&&l.rotate(d),l.translate(e.tx,e.ty),this.push(l),this.drawImage(t,i),this.pop()}drawVectorMarker(t,e){if(!t)return;const r=t.markerGraphics;if(!r)return;const i=(0,R.$w)(t.size,S.D.CIMVectorMarker.size),n=t.frame,s=n?n.ymax-n.ymin:0,o=i&&s?i/s:1,a=A.createIdentity();n&&a.translate(.5*-(n.xmax+n.xmin),.5*-(n.ymax+n.ymin));const l=t.anchorPoint;if(l){let e=l.x,r=l.y;"Absolute"!==t.anchorPointUnits?n&&(e*=n.xmax-n.xmin,r*=n.ymax-n.ymin):(e/=o,r/=o),a.translate(-e,-r)}1!==o&&a.scale(o,o);let c=(0,R.$w)(t.rotation);t.rotateClockwise&&(c=-c),this._mapRotation&&(c+=this._mapRotation),c&&a.rotate(c*L);let h=(0,R.$w)(t.offsetX),u=(0,R.$w)(t.offsetY);if(h||u){if(this._mapRotation){const t=L*this._mapRotation,e=Math.cos(t),r=Math.sin(t),i=h*r+u*e;h=h*e-u*r,u=i}a.translate(h,u)}const f=this.geomUnitsPerPoint();1!==f&&a.scale(f,f);const m=e.getAngle();m&&a.rotate(m),a.translate(e.tx,e.ty);const d=t.scaleSymbolsProportionally?1:o;this.push(a,t.scaleSymbolsProportionally,d);for(const t of r){t?.symbol&&t.geometry||T().error("Invalid marker graphic",t);let e=t.textString;if("number"==typeof e&&(e=e.toString()),this.drawSymbol(t.symbol,t.geometry,e),this._earlyReturn)break}this.pop()}drawTextSymbol(t,e,r){if(!t)return;if(!(0,m.fT)(e))return;if((0,R.$w)(t.height,S.D.CIMTextSymbol.height)<=0)return;const i=A.createIdentity();let n=(0,R.$w)(t.angle);n=-n,n&&i.rotate(n*L);const s=(0,R.$w)(t.offsetX),o=(0,R.$w)(t.offsetY);(s||o)&&i.translate(s,o);const a=this.geomUnitsPerPoint();1!==a&&i.scale(a,a),i.translate(e.x,e.y),this.push(i),this.drawText(t,r),this.pop()}}class D extends E{constructor(t,e){super(t,e),this.reset()}reset(){this._xmin=this._ymin=1/0,this._xmax=this._ymax=-1/0,this._clipCount=0}envelope(){return new x(this._xmin,this._ymin,this._xmax-this._xmin,this._ymax-this._ymin)}bounds(){return(0,h.fA)(this._xmin,this._ymin,this._xmax,this._ymax)}drawSolidFill(t){if(t&&!(this._clipCount>0))if((0,m.Bi)(t))this._processPath(t.rings,0);else if((0,m.Rg)(t))this._processPath(t.paths,0);else if((0,m.ZC)(t)){const e=H(t);e&&this._processPath(e.rings,0)}else console.error("drawSolidFill Unexpected geometry type!")}drawSolidStroke(t,e,r){if(!t||this._clipCount>0||null==r||r<=0)return;const i=Math.max(.5*this.transformSize((0,R.$w)(r,S.D.CIMSolidStroke.width)),.25);if((0,m.Bi)(t))this._processPath(t.rings,i);else if((0,m.Rg)(t))this._processPath(t.paths,i);else if((0,m.ZC)(t)){const e=H(t);e&&this._processPath(e.rings,i)}else console.error("drawSolidStroke unexpected geometry type!")}drawMarkerLayer(t,e){(0,m.Bi)(e)&&t.markerPlacement&&("CIMMarkerPlacementInsidePolygon"===t.markerPlacement.type||"CIMMarkerPlacementPolygonCenter"===t.markerPlacement.type&&t.markerPlacement.clipAtBoundary)?this._processPath(e.rings,0):super.drawMarkerLayer(t,e)}drawHatchFill(t,e){this.drawSolidFill(t)}drawPictureFill(t,e){this.drawSolidFill(t)}drawGradientFill(t,e){this.drawSolidFill(t)}drawPictureStroke(t,e){this.drawSolidStroke(t,null,e.width)}drawGradientStroke(t,e){this.drawSolidStroke(t,null,e.width)}pushClipPath(t){this.drawSolidFill(t),this._clipCount++}popClipPath(){this._clipCount--}drawImage(t,e){const{url:r}=t,i=(0,R.$w)(t.scaleX,1);let n=i*e,s=e;const o=this._resourceManager.getResource(r);if(null!=o){const t=o.height/o.width;n=i*(e?t>1?e:e/t:o.width),s=e?t>1?e*t:e:o.height}this._merge(this.transformPt([-n/2,-s/2]),0),this._merge(this.transformPt([-n/2,s/2]),0),this._merge(this.transformPt([n/2,-s/2]),0),this._merge(this.transformPt([n/2,s/2]),0)}drawText(t,e){if(!e||0===e.length)return;this._textRasterizer||(this._textRasterizer=new I);const r=W(t),i=(0,_.Z)({textString:e,font:r.font,symbol:t,supportsRichText:(0,_.q)(e)});let[n,s]=i?this._textRasterizer.computeRichTextSize(i,r):this._textRasterizer.computeTextSize(e,r);n=(0,l.PN)(n),s=(0,l.PN)(s);const o=this.transformSize(1)*this.reverseTransformScalar(1);n*=o,s*=o;const a=t.horizontalAlignment??S.D.CIMTextSymbol.horizontalalignment,c=t.verticalAlignment??S.D.CIMTextSymbol.verticalalignment;let h=0;switch(a){case"Left":h=n/2;break;case"Right":h=-n/2}let u=0;switch(c){case"Bottom":u=s/2;break;case"Top":u=-s/2;break;case"Baseline":u=s/6}this._merge(this.transformPt([-n/2+h,-s/2+u]),0),this._merge(this.transformPt([-n/2+h,s/2+u]),0),this._merge(this.transformPt([n/2+h,-s/2+u]),0),this._merge(this.transformPt([n/2+h,s/2+u]),0)}_processPath(t,e){if(t)for(const r of t){const t=r?r.length:0;if(t>1){this._merge(this.transformPt(r[0]),e);for(let i=1;i<t;i++)this._merge(this.transformPt(r[i]),e)}}}_merge(t,e){t[0]-e<this._xmin&&(this._xmin=t[0]-e),t[0]+e>this._xmax&&(this._xmax=t[0]+e),t[1]-e<this._ymin&&(this._ymin=t[1]-e),t[1]+e>this._ymax&&(this._ymax=t[1]+e)}}class F extends E{constructor(t,e,r,i){super(e,r),this._applyAdditionalRenderProps=i,this._colorSubstitutionHelper=new p,this._ctx=t}drawSolidFill(t,e){if(!t)return;if((0,m.Bi)(t))this._buildPath(t.rings,!0);else if((0,m.Rg)(t))this._buildPath(t.paths,!0);else if((0,m.ZC)(t))this._buildPath(H(t).rings,!0);else{if(!(0,m.U9)(t))return;console.log("CanvasDrawHelper.drawSolidFill - No implementation!")}const r=this._ctx;r.fillStyle="string"==typeof e?e:"rgba("+Math.round(e[0])+","+Math.round(e[1])+","+Math.round(e[2])+","+(e[3]??255)/255+")",r.fill("evenodd")}drawSolidStroke(t,e,r,i,n,s){if(!t||!e||0===r)return;if((0,m.Bi)(t))this._buildPath(t.rings,!0);else if((0,m.Rg)(t))this._buildPath(t.paths,!1);else{if(!(0,m.ZC)(t))return void console.log("CanvasDrawHelper.drawSolidStroke isn't implemented!");this._buildPath(H(t).rings,!0)}const o=this._ctx;o.strokeStyle="string"==typeof e?e:"rgba("+Math.round(e[0])+","+Math.round(e[1])+","+Math.round(e[2])+","+(e[3]??255)/255+")",o.lineWidth=Math.max(this.transformSize(r),.5),this._setCapStyle(i),this._setJoinStyle(n),o.miterLimit=s,o.stroke()}pushClipPath(t){if(this._ctx.save(),(0,m.Bi)(t))this._buildPath(t.rings,!0);else if((0,m.Rg)(t))this._buildPath(t.paths,!0);else{if(!(0,m.ZC)(t))return;this._buildPath(H(t).rings,!0)}this._ctx.clip("evenodd")}popClipPath(){this._ctx.restore()}drawImage(t,e){const{colorSubstitutions:r,url:i,tintColor:n}=t,s=(0,R.$w)(t.scaleX,1),o=this._resourceManager.getResource(i);if(null==o)return;let a=e*(o.width/o.height),l=e;e||(a=o.width,l=o.height);const c=(0,R.UE)(i)||"src"in o&&(0,R.UE)(o.src);let h="getFrame"in o?M(o):o;r&&(h=this._colorSubstitutionHelper.applyColorSubstitution(h,r)),this._applyAdditionalRenderProps&&!c&&n&&(h=this._colorSubstitutionHelper.tintImageData(h,n));const u=this.transformPt([0,0]),[f,m]=this.getTransformAngle(),d=this.transformSize(1),p=this._ctx;p.save(),p.setTransform({m11:s*d*f,m12:s*d*m,m21:-d*m,m22:d*f,m41:u[0],m42:u[1]}),p.drawImage(h,-a/2,-l/2,a,l),p.restore()}drawText(t,e){if(!e||0===e.length)return;this._textRasterizer||(this._textRasterizer=new I);const r=W(t,this.transformSize((0,l.PN)(1))),i=(0,_.Z)({textString:e,font:r.font,symbol:t,supportsRichText:(0,_.q)(e)}),n=i?this._textRasterizer.rasterizeRichText(i,r):this._textRasterizer.rasterizeText(e,r);if(!n)return;const{size:s,anchorX:o,anchorY:a,canvas:c}=n,h=s[0]*(o+.5),u=s[1]*(a-.5),f=this._ctx,m=this.transformPt([0,0]),[d,p]=this.getTransformAngle();f.save(),f.setTransform({m11:1*d,m12:1*p,m21:-1*p,m22:1*d,m41:m[0]-1*h,m42:m[1]+1*u}),f.drawImage(c,0,0),f.restore()}drawPictureFill(t,e){if(!t)return;let{colorSubstitutions:r,height:i,offsetX:n,offsetY:s,rotation:o,scaleX:a,tintColor:l,url:c}=e;const h=this._resourceManager.getResource(c);if(null==h)return;if((0,m.Bi)(t))this._buildPath(t.rings,!0);else if((0,m.Rg)(t))this._buildPath(t.paths,!0);else if((0,m.ZC)(t))this._buildPath(H(t).rings,!0);else{if(!(0,m.U9)(t))return;console.log("CanvasDrawHelper.drawPictureFill - No implementation!")}const u=this._ctx,f=(0,R.UE)(c)||"src"in h&&(0,R.UE)(h.src);let d,p="getFrame"in h?M(h):h;if(r&&(p=this._colorSubstitutionHelper.applyColorSubstitution(p,r)),this._applyAdditionalRenderProps){f||l&&(p=this._colorSubstitutionHelper.tintImageData(p,l)),d=u.createPattern(p,"repeat");const t=this.transformSize(1);o||(o=0),n?n*=t:n=0,s?s*=t:s=0,i&&(i*=t);const e=i?i/h.height:1,r=a&&i?a*i/h.width:1;if(0!==o||1!==e||1!==r||0!==n||0!==s){const t=new DOMMatrix;t.rotateSelf(0,0,-o).translateSelf(n,s).scaleSelf(r,e,1),d.setTransform(t)}}else d=u.createPattern(p,"repeat");u.save(),u.fillStyle=d,u.fill("evenodd"),u.restore()}drawPictureStroke(t,e){if(!t)return;let{colorSubstitutions:r,capStyle:i,joinStyle:s,miterLimit:o,tintColor:a,url:c,width:h}=e;const u=this._resourceManager.getResource(c);if(null==u)return;let f;if((0,m.Bi)(t))f=t.rings;else if((0,m.Rg)(t))f=t.paths;else{if(!(0,m.ZC)(t))return(0,m.U9)(t)?void console.log("CanvasDrawHelper.drawPictureStroke - No implementation!"):void 0;f=H(t).rings}h||(h=u.width);const d=(0,R.UE)(c)||"src"in u&&(0,R.UE)(u.src);let p="getFrame"in u?M(u):u;r&&(p=this._colorSubstitutionHelper.applyColorSubstitution(p,r)),this._applyAdditionalRenderProps&&(d||a&&(p=this._colorSubstitutionHelper.tintImageData(p,a)));const y=Math.max(this.transformSize((0,l.Lz)(h)),.5),g=y/p.width,S=this._ctx,C=S.createPattern(p,"repeat-y");let b,x;S.save(),this._setCapStyle(i),this._setJoinStyle(s),void 0!==o&&(S.miterLimit=o),S.lineWidth=y;for(let t of f)if(t=(0,n.o8)(t),$(t),t&&!(t.length<=1)){b=this.transformPt(t[0]);for(let e=1;e<t.length;e++){x=this.transformPt(t[e]);const r=G(b,x),i=new DOMMatrix;i.translateSelf(0,b[1]-y/2).scaleSelf(g,g,1).rotateSelf(0,0,90-r),C.setTransform(i),S.strokeStyle=C,S.beginPath(),S.moveTo(b[0],b[1]),S.lineTo(x[0],x[1]),S.stroke(),b=x}}S.restore()}drawGradientFill(t,e){if(!t)return;let r;if((0,m.Bi)(t))r=t.rings;else if((0,m.Rg)(t))r=t.paths;else{if(!(0,m.ZC)(t))return void T().error("Unable to draw gradient fill");r=H(t).rings}this._buildPath(r,!0);const{angle:i,gradientMethod:n,gradientSize:s,gradientSizeUnits:a}=e,c=S.D.CIMGradientFill,u=e.gradientType??c.gradientType,f=-(0,o.kU)(i??0),d=(0,h.Ie)();for(const t of r){const e=t?t.length:0;if(e>1)for(let r=0;r<e;r++){let e=this.transformPt(t[r]);"Linear"!==n&&"Rectangular"!==n||(e=C(e,-f)),(0,h.tK)(d,e)}}const[p,y,g,M]=d,x=this._ctx;switch(x.save(),n){case"Buffered":T().error(`Gradient method "${n}" currently unsupported.`);break;case"Linear":{const t=(y+M)/2,r="Absolute"===a?this.transformSize((0,l.Lz)(s)):(0,R.yX)(s,c.gradientSize)*(g-p),[i,n]="Discrete"===u?[g,g-r]:[p+r,p],o=C([i,t],f),h=C([n,t],f),m=x.createLinearGradient(o[0],o[1],h[0],h[1]);(0,b.AH)(m,e),x.fillStyle=m,x.fill("evenodd");break}case"Circular":{const t=(0,h.gX)(d),r=(0,h.ib)(d)/2,i="Absolute"===a?this.transformSize((0,l.Lz)(s)):(0,R.yX)(s,c.gradientSize)*r,[n,o]="Discrete"===u?[r,r-i]:[i,0],f=x.createRadialGradient(t[0],t[1],n,t[0],t[1],o);(0,b.AH)(f,e),x.fillStyle=f,x.fill("evenodd");break}case"Rectangular":{const r=(0,h.gX)(d),i=r[0],n=r[1],o=C(r,f),m=(r,i,n,s,a,l,c,h)=>{x.save(),this.pushClipPath(t);const u=C([a,l],f),m=C([c,h],f);x.beginPath(),x.moveTo(o[0],o[1]),x.lineTo(u[0],u[1]),x.lineTo(m[0],m[1]),x.lineTo(o[0],o[1]),x.clip();const d=C([r,i],f),p=C([n,s],f),y=x.createLinearGradient(d[0],d[1],p[0],p[1]);(0,b.AH)(y,e),x.fillStyle=y,x.fill("evenodd"),x.restore()};let S="Absolute"===a?this.transformSize((0,l.Lz)(s)):(0,R.yX)(s,c.gradientSize)*((0,h.VL)(d)/2),[_,w]="Discrete"===u?[g,g-S]:[i+S,i];m(_,n,w,n,g,y,g,M),[_,w]="Discrete"===u?[p,p+S]:[i-S,i],m(_,n,w,n,p,M,p,y),S="Absolute"===a?this.transformSize((0,l.Lz)(s)):(0,R.yX)(s,c.gradientSize)*((0,h.uJ)(d)/2);let[k,I]="Discrete"===u?[M,M-S]:[n+S,n];m(i,k,i,I,g,M,p,M),[k,I]="Discrete"===u?[y,y+S]:[n-S,n],m(i,k,i,I,p,y,g,y);break}}x.restore()}drawGradientStroke(t,e){const{capStyle:r,gradientMethod:i,gradientSize:s,gradientSizeUnits:o,joinStyle:a,miterLimit:c,width:h}=e;if(!t||0===h)return;let u;if((0,m.Bi)(t))u=t.rings;else if((0,m.Rg)(t))u=t.paths;else{if(!(0,m.ZC)(t))return void T().error("Unable to draw gradient stroke");u=H(t).rings}const f=e.gradientType??S.D.CIMGradientStroke.gradientType,d=Math.max(this.transformSize((0,l.Lz)(h)),.5),p=this._ctx;let y,g;p.save(),this._setCapStyle(r),this._setJoinStyle(a),void 0!==c&&(p.miterLimit=c),p.lineWidth=d;for(let t of u){if(t=(0,n.o8)(t),$(t),!t||t.length<=1)continue;let r=0;y=this.transformPt(t[0]);for(let e=1;e<t.length;e++){g=this.transformPt(t[e]);const i=g[0]-y[0],n=g[1]-y[1];r+=Math.sqrt(i*i+n*n),y=g}const a="Absolute"===o?this.transformSize((0,l.Lz)(s)):(0,R.yX)(s,S.D.CIMGradientStroke.gradientSize)*("AcrossLine"===i?d:r);let c=0;y=this.transformPt(t[0]);for(let n=1;n<t.length;n++){g=this.transformPt(t[n]);const s=g[0]-y[0],o=g[1]-y[1],l=Math.sqrt(s*s+o*o);let h,u,m,S;switch(i){case"AcrossLine":{const[t,e]=C([s/l,o/l],-Math.PI/2),r=d/2,i="Discrete"===f?r:a-r;h=(y[0]+g[0])/2+t*i,u=(y[1]+g[1])/2+e*i,m=h-t*a,S=u-e*a;break}case"AlongLine":{const t=s/l,e=o/l;"Discrete"===f?(h=y[0]-t*c,u=y[1]-e*c,m=h+t*a,S=u+e*a):(m=y[0]+t*(r-c),S=y[1]+e*(r-c),h=m-t*a,u=S-e*a);break}default:return T().error("Unrecognized gradient method:",i),void p.restore()}const M=p.createLinearGradient(h,u,m,S);(0,b.AH)(M,e),p.strokeStyle=M,p.beginPath(),p.moveTo(y[0],y[1]),p.lineTo(g[0],g[1]),p.stroke(),c+=l,y=g}}p.restore()}_buildPath(t,e){const r=this._ctx;if(r.beginPath(),t)for(const i of t){const t=i?i.length:0;if(t>1){let n=this.transformPt(i[0]);r.moveTo(n[0],n[1]);for(let e=1;e<t;e++)n=this.transformPt(i[e]),r.lineTo(n[0],n[1]);e&&r.closePath()}}}_setCapStyle(t){switch(t){case"Butt":this._ctx.lineCap="butt";break;case"Round":this._ctx.lineCap="round";break;case"Square":this._ctx.lineCap="square"}}_setJoinStyle(t){switch(t){case"Bevel":this._ctx.lineJoin="bevel";break;case"Round":this._ctx.lineJoin="round";break;case"Miter":this._ctx.lineJoin="miter"}}}function G(t,e){const r=e[0]-t[0],i=e[1]-t[1];return 180/Math.PI*Math.atan2(i,r)}const H=t=>t?{spatialReference:t.spatialReference,rings:[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]]}:null,O=(t,e,r)=>{switch(t){case"ExtraLeading":return 1+e/r;case"Multiple":return e;case"Exact":return e/r}};function W(t,e=1){const r=(0,R.DW)(t),n=(0,R._d)(t.fontStyleName),s=t.fontFamilyName??i.Vb,{weight:o,style:a}=n,l=e*(t.height||5),c=(0,R.Bu)(t.horizontalAlignment),h=(0,R.Nl)(t.verticalAlignment),u=(0,R.pM)(t),f=(0,R.pM)(t.haloSymbol),m=null!=f?e*(t.haloSize??0):0,d=(0,R._1)(t.symbol),p=e*((0,R.xo)(t.symbol)||0),y="CIMBackgroundCallout"===t.callout?.type?t.callout.backgroundSymbol:null,g=(0,R.pM)(y),S=(0,R.xo)(y),M=(0,R._1)(y);return{color:u,size:l,horizontalAlignment:c,verticalAlignment:h,font:{family:s,style:(0,R.pV)(a),weight:(0,R.Kn)(o),decoration:r},outline:{size:p||0,color:d},halo:{size:m||0,color:f,style:a},backgroundColor:g,borderLine:null!=S&&null!=M?{size:S,color:M}:null,pixelRatio:1,premultiplyColors:!0}}function $(t){let e,r,i,n,s,o=t[0],a=1;for(;a<t.length;)e=t[a][0]-o[0],r=t[a][1]-o[1],n=0!==e?r/e:Math.PI/2,void 0!==i&&Math.abs(n-i)<=1e-4?(t.splice(a-1,1),o=s):(s=o,o=t[a],a++),i=n}},15867(t,e,r){r.r(e),r.d(e,{CIMSymbolHelper:()=>L,CIMSymbolInflatedSizeHelper:()=>R,forEachSymbolLayer:()=>T,symbolToCIM:()=>P});var i=r(6371),n=r(4718),s=r(53966),o=r(87811),a=r(90629),l=r(19419),c=r(537),h=r(52006),u=r(31411),f=r(11831),m=r(35833),d=r(98939),p=r(72726),y=r(28076),g=r(93397),S=r(59868),M=r(13195),C=r(75434),b=r(69221);const x=Math.PI,_=x/2,w=Math.PI/180,k=96/72,I=()=>s.A.getLogger("esri.symbols.cim.CIMSymbolHelper");function P(t){let e;switch(t.type){case"cim":return t.data;case"web-style":return t;case"simple-marker":{const r=L.fromSimpleMarker(t);if(!r)throw new Error("InternalError: Cannot convert symbol to CIM");e=r;break}case"picture-marker":e=L.fromPictureMarker(t);break;case"simple-line":e=L.fromSimpleLineSymbol(t);break;case"simple-fill":e=L.fromSimpleFillSymbol(t);break;case"picture-fill":e=L.fromPictureFillSymbol(t);break;case"text":e=L.fromTextSymbol(t)}return{type:"CIMSymbolReference",symbol:e}}function z(t,e,r){switch(e.type){case"CIMSymbolReference":return z(t,e.symbol,r);case"CIMPointSymbol":null==r&&(r={x:0,y:0}),t.drawSymbol(e,r);break;case"CIMLineSymbol":null==r&&(r={paths:[[[0,0],[10,0]]]}),t.drawSymbol(e,r);break;case"CIMPolygonSymbol":null==r&&(r={rings:[[[0,0],[0,10],[10,10],[10,0],[0,0]]]}),t.drawSymbol(e,r);break;case"CIMTextSymbol":{const r={x:0,y:0};t.drawSymbol(e,r);break}case"CIMVectorMarker":{const r=new d.W;t.drawMarker(e,r);break}}return t.envelope()}function v(t){if(!t)return 0;switch(t.type){case"CIMMarkerPlacementAlongLineSameSize":case"CIMMarkerPlacementAlongLineRandomSize":case"CIMMarkerPlacementAtExtremities":case"CIMMarkerPlacementAtMeasuredUnits":case"CIMMarkerPlacementAtRatioPositions":case"CIMMarkerPlacementOnLine":case"CIMMarkerPlacementOnVertices":return Math.abs(t.offset??0);default:return 0}}class R{static getSymbolInflateSize(t,e,r,i,n){return t||(t=[0,0,0,0]),e?this._getInflateSize(t,e,r,i,n):t}static safeSize(t){const e=Math.max(Math.abs(t[0]),Math.abs(t[2])),r=Math.max(Math.abs(t[1]),Math.abs(t[3]));return Math.sqrt(e*e+r*r)}static getPointSymbolHaloPadding(t,e){const r=(0,g.$w)(t.haloSize);if(r<=0||!t.haloSymbol?.symbolLayers?.some(t=>!1!==t.enable))return 0;const i=this.getSymbolInflateSize([0,0,0,0],t.haloSymbol,e,0,null);return r+this.safeSize(i)}static _vectorMarkerBounds(t,e,r,i){let n=!0;const s=(0,l.vt)();if(e?.markerGraphics)for(const o of e.markerGraphics){const e=[0,0,0,0];o.geometry&&((0,c.Rg)(s,o.geometry),e[0]=0,e[1]=0,e[2]=0,e[3]=0,this.getSymbolInflateSize(e,o.symbol,r,0,i),s[0]+=e[0],s[1]+=e[1],s[2]+=e[2],s[3]+=e[3],n?(t[0]=s[0],t[1]=s[1],t[2]=s[2],t[3]=s[3],n=!1):(t[0]=Math.min(t[0],s[0]),t[1]=Math.min(t[1],s[1]),t[2]=Math.max(t[2],s[2]),t[3]=Math.max(t[3],s[3])))}return t}static _getInflateSize(t,e,r,i,n){if(function(t){return void 0!==t.symbolLayers}(e)){const s=this._getLayersInflateSize(t,e.symbolLayers,r,i,n),o=(0,g.ll)(e.effects);if(o>0&&(s[0]-=o,s[1]-=o,s[2]+=o,s[3]+=o),"CIMPointSymbol"===e.type){const t=this.getPointSymbolHaloPadding(e,r);t>0&&(s[0]-=t,s[1]-=t,s[2]+=t,s[3]+=t)}return s}return this._getTextInflatedSize(t,e,n)}static _getLayersInflateSize(t,e,r,i,n){let s=!0;if(!e)return t;for(const o of e){if(!o)continue;let e=[0,0,0,0];switch(o.type){case"CIMSolidFill":case"CIMPictureFill":case"CIMHatchFill":case"CIMGradientFill":break;case"CIMSolidStroke":case"CIMPictureStroke":case"CIMGradientStroke":{const t=o;let r=t.width;null!=r&&("Square"===t.capStyle||"Miter"===t.joinStyle?r/=1.4142135623730951:r/=2,e[0]=-r,e[1]=-r,e[2]=r,e[3]=r);break}case"CIMCharacterMarker":case"CIMVectorMarker":case"CIMPictureMarker":{const t=o;if("CIMVectorMarker"===o.type){const t=o;if(e=this._vectorMarkerBounds(e,t,r,n),t.frame){const r=(t.frame.xmin+t.frame.xmax)/2,i=(t.frame.ymin+t.frame.ymax)/2;if(e[0]-=r,e[1]-=i,e[2]-=r,e[3]-=i,null!=t.size){const r=t.size/(t.frame.ymax-t.frame.ymin);e[0]*=r,e[1]*=r,e[2]*=r,e[3]*=r}}}else if("CIMPictureMarker"===o.type){const i=o,n=r.getResource(i.url);let s=1;if(null!=n&&n.height&&(s=n.width/n.height),null!=t.size){const r=t.size/2,n=t.size*s*(i.scaleX??1)/2;e=[-n,-r,n,r]}}else if(null!=t.size){const r=t.size/2;e=[-r,-r,r,r]}if(t.anchorPoint){let r,i;"Absolute"===t.anchorPointUnits?(r=t.anchorPoint.x,i=t.anchorPoint.y):(r=t.anchorPoint.x*(e[2]-e[0]),i=t.anchorPoint.y*(e[3]-e[1]));const n=1.25*Math.sqrt(r*r+i*i);e[0]-=n,e[1]-=n,e[2]+=n,e[3]+=n}let s=(0,g.$w)(t.rotation);if(t.rotateClockwise&&(s=-s),i&&(s-=i),s){const t=w*s,r=Math.cos(t),i=Math.sin(t),n=(0,l.vt)([M.MG,M.MG,-M.MG,-M.MG]);(0,l.tK)(n,[e[0]*r-e[1]*i,e[0]*i+e[1]*r]),(0,l.tK)(n,[e[0]*r-e[3]*i,e[0]*i+e[3]*r]),(0,l.tK)(n,[e[2]*r-e[1]*i,e[2]*i+e[1]*r]),(0,l.tK)(n,[e[2]*r-e[3]*i,e[2]*i+e[3]*r]),e=n}let a=(0,g.$w)(t.offsetX),c=(0,g.$w)(t.offsetY);if(i){const t=w*i,e=Math.cos(t),r=Math.sin(t),n=a*r+c*e;a=a*e-c*r,c=n}e[0]+=a,e[1]+=c,e[2]+=a,e[3]+=c;const h=v(t.markerPlacement);h>0&&(e[0]-=h,e[1]-=h,e[2]+=h,e[3]+=h);break}}const a=(0,g.ll)(o.effects);a>0&&(e[0]-=a,e[1]-=a,e[2]+=a,e[3]+=a),s?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],s=!1):(t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[2]),t[3]=Math.max(t[3],e[3]))}return t}static _getTextInflatedSize(t,e,r){const i=(0,b.hV)(e.height??y.D.CIMTextSymbol.height);if(t[0]=-i/2,t[1]=-i/2,t[2]=i/2,t[3]=i/2,!r)return t;const n=r.get(e);if(!n)return t;if(!function(t){return"glyphs"===t.type?t.glyphs.length>0:t.runs.some(t=>t.glyphs.glyphs.length>0)}(n.glyphMosaicItems))return t;const{lineGapType:s,lineGap:o}=e,a=s?(0,p.QF)(s,o??0,i):0,l=e.horizontalAlignment??y.D.CIMTextSymbol.horizontalalignment,c=e.verticalAlignment??y.D.CIMTextSymbol.verticalalignment,h="CIMBackgroundCallout"===e.callout?.type,u=(0,C.tA)(n.glyphMosaicItems,{scale:i/24,angle:(0,g.$w)(e.angle),xOffset:(0,g.$w)(e.offsetX),yOffset:(0,g.$w)(e.offsetY),horizontalAlignment:l,verticalAlignment:c,maxLineWidth:(0,b.Lu)(e.lineWidth),lineHeight:29*Math.max(.25,Math.min(a||1,4)),decoration:e.font.decoration||"none",useCIMAngleBehavior:!0,hasBackground:h}).boundsT,f=Math.sqrt(u.width*u.width+u.height*u.height);return t[0]-=u.x+f,t[1]-=u.y-f,t[2]+=u.x+f,t[3]+=-u.y+f,t}}class L{static getEnvelope(t,e,r,i){if(!t)return null;const n=new p.mx(r,i);if(Array.isArray(t)){let r;for(const i of t)r?r.union(z(n,i,e)):r=z(n,i,e);return r}return z(n,t,e)}static getTextureInfo(t,e,r,i,n,s=0){const o=i??this.getEnvelope(t,null,e);if(!o)return[0,0,0,0,1];const a=Math.max(o.width,o.height)*k;let l=null!=n?Math.max(n/a,1):1;l*=k,o.x*=l,o.y*=l,o.width*=l,o.height*=l,o.width=Math.max(Math.ceil(o.x+o.width)-Math.floor(o.x),1)-1,o.height=Math.max(Math.ceil(o.y+o.height)-Math.floor(o.y),1)-1;let c=o.x+.5*o.width,h=o.y+.5*o.height;if(c+=o.x-Math.floor(o.x),h+=o.y-Math.floor(o.y),!i){const t=Math.ceil(s*l);o.width+=r+2*t,o.height+=r+2*t,c+=r/2,h+=r/2}return[o.width,o.height,c,h,l]}static getTextureAnchor(t,e,r,i=0){const[n,s,o,a,l]=this.getTextureInfo(t,e,2,null,r,i);return[-o/n,-a/s,s/l*k]}static rasterize(t,e,r,i,n=!0,s,o=0){const[a,l,c,h,u]=this.getTextureInfo(e,i,2,r,s,o);t.width=a,t.height=l;const f=t.getContext("2d",{willReadFrequently:!0}),m=p.IT.createScale(u,-u);m.translate(.5*a-c,.5*l+h);const y=new p.Rj(f,i,m);switch(e.type){case"CIMPointSymbol":{const t={type:"point",x:0,y:0};y.drawSymbol(e,t);break}case"CIMVectorMarker":{const t=new d.W;y.drawMarker(e,t);break}}const g=f.getImageData(0,0,t.width,t.height),S=new Uint8Array(g.data);if(n){let t;for(let e=0;e<S.length;e+=4)t=S[e+3]/255,S[e]=S[e]*t,S[e+1]=S[e+1]*t,S[e+2]=S[e+2]*t}return[S,t.width,t.height,-c/a,-h/l,u]}static fromTextSymbol(t){const{text:e}=t;return{type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",enable:!0,anchorPointUnits:"Relative",dominantSizeAxis3D:"Y",size:10,billboardMode3D:"FaceNearPlane",frame:{xmin:-5,ymin:-5,xmax:5,ymax:5},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{x:0,y:0},symbol:L.createCIMTextSymbolfromTextSymbol(t),textString:e}],scaleSymbolsProportionally:!0,respectFrame:!0}],scaleX:1,angleAlignment:"Display"}}static fromPictureFillSymbol(t){const{height:e,outline:r,width:i,xoffset:n,xscale:s,yoffset:o,yscale:a}=t,l=[],c={type:"CIMPolygonSymbol",symbolLayers:l};if(r){const t=U(r);t&&l.push(t)}let h=t.url;"esriPFS"===t.type&&t.imageData&&(h=t.imageData);const u="angle"in t?t.angle??0:0,f=(i??0)*(s||1),m=(e??0)*(a||1);return l.push({type:"CIMPictureFill",enable:!0,invertBackfaceTexture:!1,scaleX:1,textureFilter:"Picture",tintColor:null,url:h,height:m,width:f,offsetX:(0,g.$w)(n),offsetY:(0,g.$w)(o),rotation:(0,g.$w)(-u),colorSubstitutions:null}),c}static fromSimpleFillSymbol(t){const{color:e,style:r,outline:i}=t,s=[],o={type:"CIMPolygonSymbol",symbolLayers:s};if(i){const t=U(i);t&&s.push(t)}if(r&&"solid"!==r&&"none"!==r&&"esriSFSSolid"!==r&&"esriSFSNull"!==r){const t={type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",color:G(e),capStyle:"Butt",joinStyle:"Miter",width:.75}]};let i=0;const o=(0,a.PN)(N(r)?8:10);switch(r){case"vertical":case"esriSFSVertical":i=90;break;case"forward-diagonal":case"esriSFSForwardDiagonal":case"diagonal-cross":case"esriSFSDiagonalCross":i=-45;break;case"backward-diagonal":case"esriSFSBackwardDiagonal":i=45;break;case"cross":case"esriSFSCross":i=0}s.push({type:"CIMHatchFill",lineSymbol:t,offsetX:0,offsetY:0,rotation:i,separation:o}),"cross"===r||"esriSFSCross"===r?s.push({type:"CIMHatchFill",lineSymbol:(0,n.o8)(t),offsetX:0,offsetY:0,rotation:90,separation:o}):"diagonal-cross"!==r&&"esriSFSDiagonalCross"!==r||s.push({type:"CIMHatchFill",lineSymbol:(0,n.o8)(t),offsetX:0,offsetY:0,rotation:45,separation:o})}else!r||"solid"!==r&&"esriSFSSolid"!==r||s.push({type:"CIMSolidFill",enable:!0,color:G(e)});return o}static fromSimpleLineSymbol(t){const{cap:e,color:r,join:i,marker:n,miterLimit:s,style:o,width:a}=t;let l=null;"solid"!==o&&"none"!==o&&"esriSLSSolid"!==o&&"esriSLSNull"!==o&&(l=[{type:"CIMGeometricEffectDashes",dashTemplate:$(o,e),lineDashEnding:"NoConstraint",scaleDash:!0,offsetAlongLine:null}]);const c=[];if(n){let t;switch(n.placement){case"begin-end":t="Both";break;case"begin":t="JustBegin";break;case"end":t="JustEnd";break;default:t="None"}const e=L.fromSimpleMarker(n,a,r).symbolLayers[0];e.markerPlacement={type:"CIMMarkerPlacementAtExtremities",placePerPart:!1,angleToLine:!0,keepUpright:!1,offset:0,extremityPlacement:t,offsetAlongLine:0},c.push(e)}return c.push({type:"CIMSolidStroke",color:"none"!==o&&"esriSLSNull"!==o?G(r):[0,0,0,0],capStyle:A(e),joinStyle:E(i),miterLimit:s,width:a,effects:l}),{type:"CIMLineSymbol",symbolLayers:c}}static fromPictureMarker(t){const{angle:e,height:r,width:i,xoffset:n,yoffset:s}=t;let o=t.url;return"esriPMS"===t.type&&t.imageData&&(o=t.imageData),{type:"CIMPointSymbol",symbolLayers:[{type:"CIMPictureMarker",invertBackfaceTexture:!1,scaleX:1,textureFilter:"Picture",tintColor:null,url:o,size:r,width:i,offsetX:(0,g.$w)(n),offsetY:(0,g.$w)(s),rotation:(0,g.$w)(-e)}]}}static createCIMTextSymbolfromTextSymbol(t){const{angle:e,color:r,font:n,haloColor:s,haloSize:o,horizontalAlignment:a,kerning:l,lineWidth:c,text:h,verticalAlignment:u,xoffset:f,yoffset:m,backgroundColor:d,borderLineColor:p,borderLineSize:y}=t;let S,M,C,b,x,_;n&&(S=n.family,M=n.style,C=n.weight,b=n.size,x=n.decoration);let w=!1;return h&&(w=(0,i.y)(h)[1]),(d||y)&&(_={type:"CIMBackgroundCallout",margin:null,backgroundSymbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:G(d)},{type:"CIMSolidStroke",enable:!0,color:G(p),width:y??0}]},accentBarSymbol:null,gap:null,leaderLineSymbol:null,lineStyle:null}),{type:"CIMTextSymbol",angle:e,blockProgression:2,depth3D:1,extrapolateBaselines:!0,fontEffects:0,fontEncoding:1,fontFamilyName:S||"Arial",fontStyleName:H(M,C),fontType:0,haloSize:o,height:b,hinting:1,horizontalAlignment:D(a??"center"),kerning:l,letterWidth:100,ligatures:!0,lineGapType:"Multiple",lineWidth:c,offsetX:(0,g.$w)(f),offsetY:(0,g.$w)(m),strikethrough:"line-through"===x,underline:"underline"===x,symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:G(r)}]},haloSymbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:G(s)}]},shadowColor:[0,0,0,255],shadowOffsetX:1,shadowOffsetY:1,textCase:"Normal",textDirection:w?1:0,verticalAlignment:F(u??"baseline"),verticalGlyphOrientation:0,wordSpacing:100,billboardMode3D:2,callout:_}}static createPictureMarkerRasterizationParam(t){const{angle:e,height:r,width:i,xoffset:n,yoffset:s}=t,o=t.url??t.source?.url??t.source?.imageData;return o?{type:"sprite-rasterization-param",overrides:[],resource:{type:"CIMPictureMarker",enable:!0,invertBackfaceTexture:!1,scaleX:1,textureFilter:"Picture",tintColor:null,url:o,size:r,width:i,offsetX:(0,g.$w)(n),offsetY:(0,g.$w)(s),rotation:(0,g.$w)(-e)}}:null}static createPictureFillRasterizationParam(t){const{width:e,height:r,xoffset:i,yoffset:n,url:s}=t;return s?{type:"sprite-rasterization-param",overrides:[],resource:{type:"CIMPictureFill",enable:!0,scaleX:1,textureFilter:"Picture",tintColor:null,url:s,width:e,height:r,offsetX:(0,g.$w)(i),offsetY:(0,g.$w)(n),rotation:0}}:null}static fromSimpleMarker(t,e,r){const{style:i}=t,n=t.color??r;if("path"===i||"esriSMSPath"===i){const e=[];if("outline"in t&&t.outline){const r=t.outline;e.push({type:"CIMSolidStroke",enable:!0,width:r.width,color:G(r.color),path:t.path})}e.push({type:"CIMSolidFill",enable:!0,color:G(n),path:t.path});const[r,i]=B("square");return{type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",enable:!0,rotation:-(0,g.$w)(t.angle),size:(0,g.$w)(t.size||6),offsetX:(0,g.$w)(t.xoffset),offsetY:(0,g.$w)(t.yoffset),scaleSymbolsProportionally:!1,frame:r,markerGraphics:[{type:"CIMMarkerGraphic",geometry:i,symbol:{type:"CIMPolygonSymbol",symbolLayers:e}}]}]}}const s=[];let o,a,l=t.size;if("outline"in t&&t.outline&&"none"!==t.outline.style&&"esriSLSNull"!==t.outline.style){const e=t.outline,r="solid"!==e.style&&"esriSLSSolid"!==e.style;[o,a]=r?B(i,t.size):B(i);const n=e.width??S.A7.width;if(r){const e=n/t.size,r=(o.xmax-o.xmin)*e/2,i=(o.ymax-o.ymin)*e/2;o.xmin-=r,o.xmax+=r,o.ymin-=i,o.ymax+=i,l&&(l+=n)}const c="cross"!==t.style&&"x"!==t.style||"dot"===t?.outline.style||"short-dot"===t?.outline.style?"HalfGap":"FullPattern",h=r?[{type:"CIMGeometricEffectAddControlPoints"},{type:"CIMGeometricEffectDashes",dashTemplate:$(e.style,null).map(t=>e.width&&e.width>0?t*e.width:t),lineDashEnding:c,controlPointEnding:"FullPattern"}]:void 0;s.push({type:"CIMSolidStroke",capStyle:r?"Round":"Butt",enable:!0,width:n,color:G(e.color),effects:h})}else!e||"line-marker"!==t.type||"cross"!==t.style&&"x"!==t.style?[o,a]=B(i):([o,a]=B(i),s.push({type:"CIMSolidStroke",enable:!0,width:e,color:G(n)}));s.push({type:"CIMSolidFill",enable:!0,color:G(n)});const c={type:"CIMPolygonSymbol",symbolLayers:s};return{type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",enable:!0,rotation:(0,g.$w)(-t.angle),size:(0,g.$w)(l||6*e),offsetX:(0,g.$w)(t.xoffset),offsetY:(0,g.$w)(t.yoffset),scaleSymbolsProportionally:!1,frame:o,markerGraphics:[{type:"CIMMarkerGraphic",geometry:a,symbol:c}]}]}}static fromCIMHatchFill(t,e){const r=e*(t.separation??y.D.CIMHatchFill.separation),i=r/2,s=(0,n.o8)(t.lineSymbol);s.symbolLayers?.forEach(t=>{switch(t.type){case"CIMSolidStroke":null!=t.width&&(t.width*=e),t.effects?.forEach(t=>{if("CIMGeometricEffectDashes"===t.type){const r=t.dashTemplate;t.dashTemplate=r?.map(t=>t*e)}});break;case"CIMVectorMarker":{null!=t.size&&(t.size*=e);const r=t.markerPlacement;null!=r&&"placementTemplate"in r&&(r.placementTemplate=r.placementTemplate.map(t=>t*e));break}}});let o=this._getLineSymbolPeriod(s)||4;for(;o<4;)o*=2;const a=o/2;return{type:"CIMVectorMarker",enable:!0,frame:{xmin:-a,xmax:a,ymin:-i,ymax:i},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{paths:[[[-a,0],[a,0]]]},symbol:s}],size:r}}static async normalizeSymbolAndFetchResources(t,e,r=null){if(!t)return;const i=[];if("effects"in t&&t.effects)for(const e of t.effects)i.push((0,m.ai)(e));i.push(s(t));const n=t=>{if(t.effects)for(const e of t.effects)i.push((0,m.ai)(e));if("CIMVectorMarker"===t.type){for(const e of t.markerGraphics)(0,h.Ed)(e.geometry)&&(e.geometry=(0,u.GS)(e.geometry,{maxDeviation:.01}));t.markerPlacement&&i.push((0,m.g1)(t.markerPlacement))}"url"in t&&t.url&&i.push(e.fetchResource(t.url,{signal:r})),"symbol"in t&&i.push(s(t.symbol))};async function s(t){if("CIMTextSymbol"!==t.type)return;const{fontFamilyName:r,fontStyleName:i}=t;if("calcitewebcoreicons"===r?.toLowerCase())return;const{style:n,weight:s}=(0,g._d)(i),o=(0,g.DW)(t),a=new f.A({family:r,style:n,weight:s,decoration:o});try{await e.loadFont(a)}catch{I().error(`Unsupported font ${r} in CIM symbol`)}}T(t,n),"haloSymbol"in t&&T(t.haloSymbol,n),await Promise.all(i)}static _getLineSymbolPeriod(t){if(t){const e=this._getEffectsRepeat(t.effects);if(e)return e;if(t.symbolLayers)for(const e of t.symbolLayers)if(e){const t=this._getEffectsRepeat(e.effects);if(t)return t;switch(e.type){case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":{const t=this._getPlacementRepeat(e.markerPlacement);if(t)return t}}}}return 0}static _getEffectsRepeat(t){if(t)for(const e of t)if(e)switch(e.type){case"CIMGeometricEffectDashes":{const t=e.dashTemplate;if(t&&t.length){let e=0;for(const r of t)e+=r;return 1&t.length&&(e*=2),e}break}case"CIMGeometricEffectWave":return e.period;default:I().error(`unsupported geometric effect type ${e.type}`)}return 0}static _getPlacementRepeat(t){if(t)switch(t.type){case"CIMMarkerPlacementAlongLineSameSize":case"CIMMarkerPlacementAlongLineRandomSize":case"CIMMarkerPlacementAlongLineVariableSize":{const e=t.placementTemplate;if(e&&e.length){let t=0;for(const r of e)t+=+r;return 1&e.length&&(t*=2),t}break}}return 0}static fromCIMInsidePolygon(t){const e=t.markerPlacement,r={...t};r.markerPlacement=null,r.anchorPoint=null;const i=Math.abs(e.stepX),n=Math.abs(e.stepY),s=(e.randomness??100)/100;let l,c,h,u;if("Random"===e.gridType){const t=(0,a.PN)(1024),r=Math.max(Math.floor(t/i),1),f=Math.max(Math.floor(t/n),1);l=r*i/2,c=f*n/2,h=2*c;const m=new o.A(e.seed),d=s*i/1.5,p=s*n/1.5;u=[];for(let t=0;t<r;t++)for(let e=0;e<f;e++){const r=t*i-l+d*(.5-m.getFloat()),s=e*n-c+p*(.5-m.getFloat());u.push({x:r,y:s}),0===t&&u.push({x:r+2*l,y:s}),0===e&&u.push({x:r,y:s+2*c})}}else!0===e.shiftOddRows?(l=i/2,c=n,h=2*n,u=[{x:-l,y:0},{x:l,y:0},{x:0,y:c},{x:0,y:-c}]):(l=i/2,c=n/2,h=n,u=[{x:-i,y:0},{x:0,y:-n},{x:-i,y:-n},{x:0,y:0},{x:i,y:0},{x:0,y:n},{x:i,y:n},{x:-i,y:n},{x:i,y:-n}]);return{type:"CIMVectorMarker",enable:!0,frame:{xmin:-l,xmax:l,ymin:-c,ymax:c},markerGraphics:u.map(t=>({type:"CIMMarkerGraphic",geometry:t,symbol:{type:"CIMPointSymbol",symbolLayers:[r]}})),size:h}}}function T(t,e){if(t)switch(t.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":{const r=t.symbolLayers;if(!r)return;for(const t of r)if(e(t),"CIMVectorMarker"===t.type){const r=t.markerGraphics;if(!r)continue;for(const t of r)if(t){const r=t.symbol;r&&T(r,e)}}break}}}const A=t=>{if(!t)return"Butt";switch(t){case"butt":return"Butt";case"square":return"Square";case"round":return"Round"}},E=t=>{if(!t)return"Miter";switch(t){case"miter":return"Miter";case"round":return"Round";case"bevel":return"Bevel"}},D=t=>{if(null==t)return"Center";switch(t){case"left":return"Left";case"right":return"Right";case"center":return"Center";case"justify":return"Justify"}},F=t=>{if(null==t)return"Center";switch(t){case"baseline":return"Baseline";case"top":return"Top";case"middle":return"Center";case"bottom":return"Bottom"}},G=t=>{if(!t)return[0,0,0,0];const{r:e,g:r,b:i,a:n}=t;return[e,r,i,255*n]},H=(t,e)=>{const r=O(e),i=W(t);return r&&i?`${r}-${i}`:`${r}${i}`},O=t=>{if(!t)return"";switch(t.toLowerCase()){case"bold":case"bolder":return"bold"}return""},W=t=>{if(!t)return"";switch(t.toLowerCase()){case"italic":case"oblique":return"italic"}return""},$=(t,e)=>{const r=.001,i="butt"===e;switch(t){case"dash":case"esriSLSDash":return i?[4,3]:[3,4];case"dash-dot":case"esriSLSDashDot":return i?[4,3,1,3]:[3,4,r,4];case"dot":case"esriSLSDot":return i?[1,3]:[r,4];case"long-dash":case"esriSLSLongDash":return i?[8,3]:[7,4];case"long-dash-dot":case"esriSLSLongDashDot":return i?[8,3,1,3]:[7,4,r,4];case"long-dash-dot-dot":case"esriSLSDashDotDot":return i?[8,3,1,3,1,3]:[7,4,r,4,r,4];case"short-dash":case"esriSLSShortDash":return i?[4,1]:[3,2];case"short-dash-dot":case"esriSLSShortDashDot":return i?[4,1,1,1]:[3,2,r,2];case"short-dash-dot-dot":case"esriSLSShortDashDotDot":return i?[4,1,1,1,1,1]:[3,2,r,2,r,2];case"short-dot":case"esriSLSShortDot":return i?[1,1]:[r,2];case"solid":case"esriSLSSolid":case"none":return I().error("Unexpected: style does not require rasterization"),[0,0];default:return I().error(`Tried to rasterize SLS, but found an unexpected style: ${t}!`),[0,0]}},B=(t,e=100)=>{const r=e/2;let i,n;const s=t;if("circle"===s||"esriSMSCircle"===s){const t=.25;let e=Math.acos(1-t/r),s=Math.ceil(x/e/4);0===s&&(s=1),e=_/s,s*=4;const o=[];o.push([r,0]);for(let t=1;t<s;t++)o.push([r*Math.cos(t*e),-r*Math.sin(t*e)]);o.push([r,0]),i={rings:[o]},n={xmin:-r,ymin:-r,xmax:r,ymax:r}}else if("cross"===s||"esriSMSCross"===s){const t=0;i={paths:[[[t,r],[t,-r]],[[r,t],[-r,t]]]},n={xmin:-r,ymin:-r,xmax:r,ymax:r}}else if("diamond"===s||"esriSMSDiamond"===s)i={rings:[[[-r,0],[0,r],[r,0],[0,-r],[-r,0]]]},n={xmin:-r,ymin:-r,xmax:r,ymax:r};else if("square"===s||"esriSMSSquare"===s)i={rings:[[[-r,-r],[-r,r],[r,r],[r,-r],[-r,-r]]]},n={xmin:-r,ymin:-r,xmax:r,ymax:r};else if("x"===s||"esriSMSX"===s)i={paths:[[[r,r],[-r,-r]],[[r,-r],[-r,r]]]},n={xmin:-r,ymin:-r,xmax:r,ymax:r};else if("triangle"===s||"esriSMSTriangle"===s){const t=.5773502691896257*e,r=-t,s=2/3*e,o=s-e;i={rings:[[[r,o],[0,s],[t,o],[r,o]]]},n={xmin:r,ymin:o,xmax:t,ymax:s}}else"arrow"===s&&(i={rings:[[[-50,50],[50,0],[-50,-50],[-33,-20],[-33,20],[-50,50]]]},n={xmin:-r,ymin:-r,xmax:r,ymax:r});return[n,i]},N=t=>"vertical"===t||"horizontal"===t||"cross"===t||"esriSFSCross"===t||"esriSFSVertical"===t||"esriSFSHorizontal"===t;function U(t){if(!t)return null;let e=null;const{cap:r,color:i,join:n,miterLimit:s,style:o,width:a}=t;return"solid"!==o&&"none"!==o&&"esriSLSSolid"!==o&&"esriSLSNull"!==o&&(e=[{type:"CIMGeometricEffectDashes",dashTemplate:$(o,r),lineDashEnding:"NoConstraint",scaleDash:!0,offsetAlongLine:null}]),{type:"CIMSolidStroke",color:"esriSLSNull"!==o&&"none"!==o?G(i):[0,0,0,0],capStyle:A(r),joinStyle:E(n),miterLimit:s,width:a,effects:e}}r.d(e,["capTypeToEnum",0,A,"slsDashToTemplateArray",0,$])},28076(t,e,r){var i=r(13337);const n={CIMVectorMarker:{scalesymbolsproportionally:!1,respectframe:!0,anchorpointunits:"Relative",offsetx:0,offsety:0,rotateclockwise:!1,rotation:0,size:10,enable:!0,colorlocked:!1},CIMPictureMarker:{scalex:1,texturefilter:"Draft",anchorpointunits:"Relative",offsetx:0,offsety:0,rotateclockwise:!1,rotation:0,size:10,enable:!0,colorlocked:!1},CIMTextSymbol:{angle:0,anglex:0,angley:0,halosize:1,height:10,horizontalalignment:"Left",kerning:!0,letterspacing:0,letterwidth:100,ligatures:!0,linegap:0,offsetx:0,offsety:0,strikethrough:!1,textcase:"Normal",textstring:"",underline:!1,verticalalignment:"Bottom",enable:!0,colorlocked:!1},CIMSolidStroke:{capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1},CIMPictureStroke:{texturefilter:"Draft",capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1},CIMGradientStroke:{capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1,gradientMethod:"AcrossLine",gradientSize:75,gradientSizeUnits:i.h.Relative,gradientType:"Discrete",interval:5},CIMSolidFill:{enable:!0,colorlocked:!1},CIMPictureFill:{offsetx:0,offsety:0,rotation:0,scalex:1,height:10,texturefilter:"Draft",enable:!0,colorlocked:!1},CIMHatchFill:{offsetx:0,offsety:0,rotation:0,separation:4,enable:!0,colorlocked:!1},CIMGradientFill:{enable:!0,angle:90,gradientMethod:"Linear",gradientSize:75,gradientSizeUnits:i.h.Relative,gradientType:"Discrete",interval:5},CIMGeometricEffectAddControlPoints:{angletolerance:120},CIMGeometricEffectArrow:{arrowtype:"OpenEnded",width:5},CIMGeometricEffectBuffer:{size:1},CIMGeometricEffectCircularSector:{radius:25,startangle:0,endangle:45},CIMGeometricEffectCut:{begincut:1,endcut:1,middlecut:0,invert:!1},CIMGeometricEffectDashes:{customendingoffset:0,linedashending:"NoConstraint",offsetalongline:0},CIMGeometricEffectDonut:{method:"Mitered",option:"Accurate",width:2},CIMGeometricEffectJog:{angle:225,length:20,position:50},CIMGeometricEffectControlMeasureLine:{rule:"FullGeometry",width:25},CIMGeometricEffectMove:{offsetx:1,offsety:-1},CIMGeometricEffectOffset:{method:"Square",offset:1,option:"Fast"},CIMGeometricEffectRadial:{angle:0,length:5},CIMGeometricEffectRotate:{angle:15},CIMGeometricEffectScale:{xscalefactor:1.15,yscalefactor:1.15},CIMGeometricEffectWave:{amplitude:2,period:3,seed:1,waveform:"Sinus"},CIMMarkerPlacementAlongLine:{customendingoffset:0,endings:"WithHalfGap",offsetalongline:0,placeperpart:!0,angletoline:!0,offset:0},CIMMarkerPlacementAtExtremities:{extremityplacement:"Both",offsetalongline:0,angletoline:!0,offset:0},CIMMarkerPlacementAtRatioPositions:{beginposition:0,endposition:0,flipfirst:!0,angletoline:!0,offset:0},CIMMarkerPlacementInsidePolygon:{gridangle:0,gridtype:"Fixed",offsetx:0,offsety:0,randomness:100,seed:0,shiftoddrows:!1,stepx:16,stepy:16,clipping:"ClipAtBoundary"},CIMMarkerPlacementOnLine:{relativeto:"LineMiddle",startpointoffset:0,angletoline:!0,offset:0},CIMMarkerPlacementOnVertices:{placeperpart:!0,placeoncontrolpoints:!0,placeonendpoints:!0,placeonregularvertices:!0,angletoline:!0,offset:0},CIMMarkerPlacementPolygonCenter:{method:"OnPolygon",offsetx:0,offsety:0,clipatboundary:!1},CIMAnimatedSymbolProperties:{playanimation:!1,reverseanimation:!1,randomizestarttime:!1,randomizestartseed:0,starttimeoffset:0,duration:3,endingduration:3,useendingduration:!1,repeattype:"Loop",repeatdelay:0,easing:"Linear"},CIMSymbolAnimationSize:{tosize:10},CIMSymbolAnimationScale:{scalefactor:1},CIMSymbolAnimationColor:{tocolor:[255,255,255,1],colormode:"Multiply"},CIMSymbolAnimationTransparency:{totransparency:0},CIMSymbolAnimationRotation:{torotation:0,rotateclockwise:!1},CIMSymbolAnimationOffset:{offsetx:0,offsety:0},CIMSymbolAnimationMoveAlongLine:{speed:30,distancealong:100,movementtype:"Distance"}};r.d(e,["D",0,n])},44589(t,e,r){r.d(e,{AH:()=>a}),r(40804);var i=r(53966),n=(r(34727),r(35521),r(28076));const s=()=>i.A.getLogger("esri.symbols.cim.rasterizingUtils");let o;function a(t,e){const{colorRamp:r,gradientType:i}=e,s=l(r),a="CIMFixedColorRamp"===r.type;if("Continuous"===i&&!a)return c(t,s);const h=e.interval??n.D.CIMGradientFill.interval;if(a)return c(t,function(t,e){const r=[],i=(t.length-1)/(e-1);for(let n=0;n<e;n++){const s=t[Math.round(n*i)].color;r.push({offset:n/e,color:s}),r.push({offset:(n+1)/e,color:s})}return r}(s,h));const u=[];o??=document.createElement("canvas"),function(t,e,r,i,n){const s=r+2*n;t.width=s,t.height=i;const o=(n+1)/s,a=t.getContext("2d",{willReadFrequently:!0});if(e.length>0){const t=a.createLinearGradient(0,0,s,i);c(t,e,o),a.fillStyle=t}else a.fillStyle="rgba(128, 128, 128, 1)";a.fillRect(0,0,s,i)}(o,s,h,1,0);const f=o.getContext("2d").getImageData(0,0,h,1).data;for(let t=0,e=0;t<h;t++,e=4*t){const r=[f[e+0],f[e+1],f[e+2],f[e+3]];u.push({offset:t/h,color:r}),u.push({offset:(t+1)/h,color:r})}return c(t,u)}function l(t){const e=[];switch(t.type){case"CIMPolarContinuousColorRamp":case"CIMLinearContinuousColorRamp":{"CIMPolarContinuousColorRamp"===t.type&&s().warnOnce("CIMPolarContinuousColorRamp is currently unsupported. Falling back to CIMLinearContinuousColorRamp.");const r=t;e.push({offset:0,color:[r.fromColor[0],r.fromColor[1],r.fromColor[2],r.fromColor[3]/255]}),e.push({offset:1,color:[r.toColor[0],r.toColor[1],r.toColor[2],r.toColor[3]/255]});break}case"CIMFixedColorRamp":{const r=t,i=1/(r.colors.length-1);let n=0;for(const t of r.colors)e.push({offset:n,color:[t[0],t[1],t[2],t[3]/255]}),n+=i;break}case"CIMMultipartColorRamp":{const r=t,i=r.weights.reduce((t,e)=>t+e,0);let n=0;for(let t=0;t<r.colorRamps.length;t++){const s=r.colorRamps[t],o=r.weights[t],a=l(s);for(const t of a)e.push({offset:(n+t.offset*o)/i,color:t.color});n+=o}break}default:s().error(`Color ramp "${t.type}" currently unsupported.`)}return e}function c(t,e,r=0){for(const{offset:i,color:n}of e)t.addColorStop(Math.min(Math.max(i,r),1-r),`rgba(${n[0]}, ${n[1]}, ${n[2]}, ${n[3]})`)}},13337(t,e,r){r.d(e,["h",0,{Relative:0,Absolute:1}])},93397(t,e,r){r.d(e,{Bu:()=>_,DW:()=>M,FH:()=>z,FM:()=>a,Kn:()=>g,Kq:()=>W,MM:()=>u,Nl:()=>w,O2:()=>k,YC:()=>R,YF:()=>I,_1:()=>b,_d:()=>S,_h:()=>o,bs:()=>v,e6:()=>c,gQ:()=>s,jn:()=>m,lW:()=>h,ll:()=>E,mA:()=>f,oI:()=>$,pM:()=>C,pV:()=>y,pk:()=>T,rB:()=>A,xo:()=>x,yX:()=>O,zb:()=>P,zr:()=>d});var i=r(28076);function n(t){let e=t.length;for(;e--;)if(!" /-,\n".includes(t.charAt(e)))return!1;return!0}function s(t,e){const r=[];let i=0,s=-1;do{if(s=t.indexOf("[",i),s>=i){if(s>i){const e=t.slice(i,s);r.push([e,null,n(e)])}if(i=s+1,s=t.indexOf("]",i),s>=i){if(s>i){const n=e[t.slice(i,s)];n&&r.push([null,n,!1])}i=s+1}}}while(-1!==s);if(i<t.length){const e=t.slice(i);r.push([e,null,n(e)])}return r}function o(t,e,r){let i="",n=null;for(const r of e){const[e,s,o]=r;if(null!=e&&""!==e)o?n=e:(null!=n&&(i+=n,n=null),i+=e);else{const e=t.readAttribute(s);null!=e&&""!==e&&(null!==n&&(i+=n,n=null),i+=e)}}return l(i,r)}function a(t,e,r,i){let n="",s=null;for(const i of e){const[e,o,a]=i;if(null!=e&&""!==e)a?s=e:(null!=s&&(n+=s,s=null),n+=e);else{let e=o;null!=r&&(e=L(o,r));const i=t.attributes[e];null!=i&&""!==i&&(null!=s&&(n+=s,s=null),n+=i)}}return l(n,i)}function l(t,e){switch("string"!=typeof t&&(t=String(t)),e){case"LowerCase":return t.toLowerCase();case"Allcaps":return t.toUpperCase();default:return t}}function c(t){return t?[t[0],t[1],t[2],t[3]/255]:[0,0,0,0]}function h(t){return t.data?.symbol??null}function u(t){return"CIMVectorMarker"===t.type||"CIMPictureMarker"===t.type||"CIMBarChartMarker"===t.type||"CIMCharacterMarker"===t.type||"CIMPieChartMarker"===t.type||"CIMStackedBarChartMarker"===t.type}function f(t){return"CIMGradientStroke"===t.type||"CIMPictureStroke"===t.type||"CIMSolidStroke"===t.type}function m(t){return null!=t&&("CIMGradientFill"===t.type||"CIMHatchFill"===t.type||"CIMPictureFill"===t.type||"CIMSolidFill"===t.type||"CIMWaterFill"===t.type)}function d(t){return null!=t&&("CIMMarkerPlacementAlongLineRandomSize"===t.type||"CIMMarkerPlacementAlongLineSameSize"===t.type||"CIMMarkerPlacementAlongLineVariableSize"===t.type||"CIMMarkerPlacementAtExtremities"===t.type||"CIMMarkerPlacementAtMeasuredUnits"===t.type||"CIMMarkerPlacementAtRatioPositions"===t.type||"CIMMarkerPlacementOnLine"===t.type||"CIMMarkerPlacementOnVertices"===t.type)}const p=(t,e=0)=>null==t||isNaN(t)?e:t;function y(t){if(!t)return"normal";switch(t.toLowerCase()){case"italic":return"italic";case"oblique":return"oblique";default:return"normal"}}function g(t){if(!t)return"normal";switch(t.toLowerCase()){case"bold":return"bold";case"bolder":return"bolder";case"lighter":return"lighter";default:return"normal"}}function S(t){let e="normal",r="normal";if(t){const i=t.toLowerCase();i.includes("italic")?e="italic":i.includes("oblique")&&(e="oblique"),i.includes("bold")?r="bold":i.includes("light")&&(r="lighter")}return{style:e,weight:r}}function M(t){return t.underline?"underline":t.strikethrough?"line-through":"none"}function C(t){if(!t)return null;switch(t.type){case"CIMPolygonSymbol":if(t.symbolLayers)for(const e of t.symbolLayers){const t=C(e);if(null!=t)return t}break;case"CIMTextSymbol":return C(t.symbol);case"CIMSolidFill":return t.color}return null}function b(t){if(t)switch(t.type){case"CIMPolygonSymbol":case"CIMLineSymbol":{const e=t.symbolLayers;if(e)for(const t of e){const e=b(t);if(null!=e)return e}break}case"CIMTextSymbol":return b(t.symbol);case"CIMSolidStroke":return t.color}}function x(t){if(t)switch(t.type){case"CIMPolygonSymbol":case"CIMLineSymbol":if(t.symbolLayers)for(const e of t.symbolLayers){const t=x(e);if(void 0!==t)return t}break;case"CIMTextSymbol":return x(t.symbol);case"CIMSolidStroke":case"CIMGradientStroke":case"CIMPictureStroke":return t.width}}function _(t){switch(t){case"Left":default:return"left";case"Right":return"right";case"Center":return"center";case"Justify":return"justify"}}function w(t){switch(t){default:case"Bottom":return"bottom";case"Top":return"top";case"Center":return"middle";case"Baseline":return"baseline"}}function k(t){return(t?Object.keys(t):[]).map(e=>({name:e,alias:e,type:"string"==typeof t[e]?"esriFieldTypeString":"esriFieldTypeDouble"}))}function I(t){return t?t.charAt(0).toLowerCase()+t.slice(1):t}function P(t,e,r,i,n,s,o=!0){const{infos:a}=s;let l=1,c=0,h=0,u=0,f=1;for(const{absoluteAnchorPoint:t,offsetX:e,offsetY:r,rotation:i,size:n,frameHeight:s,rotateClockWise:m,scaleSymbolsProportionally:d}of a)f=t?1:l,h=G(e,r,c,f,h),u=F(e,r,c,f,u),s&&(d||o)&&(l*=n/s),c=H(i,m,c);const m=G(i,n,c,f,h),d=F(i,n,c,f,u);return{size:t*l,rotation:H(e,r,c),offsetX:m,offsetY:d}}function z(t){return t?.dashTemplate&&(t.dashTemplate=function(t){return"string"==typeof t?function(t){return t.split(" ").map(t=>Number(t))}(t):t}(t.dashTemplate)),t}function v(t){if(null==t)return"Normal";switch(t.type){case"CIMTextSymbol":return t.textCase??"Normal";case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":{const e=t.symbolLayers;if(!e)return"Normal";for(const t of e)if("CIMVectorMarker"===t.type)return v(t)}break;case"CIMVectorMarker":{const e=t.markerGraphics;if(!e)return"Normal";for(const t of e)if(t.symbol)return v(t.symbol)}}return"Normal"}function R(t){if(t)switch(t.type){case"CIMTextSymbol":return t.height;case"CIMPointSymbol":{let e=0;if(t.symbolLayers)for(const r of t.symbolLayers)if(r)switch(r.type){case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":{const t=r.size??i.D.CIMVectorMarker.size;t>e&&(e=t);break}}return e}case"CIMLineSymbol":case"CIMPolygonSymbol":{let e=0;if(t.symbolLayers)for(const r of t.symbolLayers)if(r)switch(r.type){case"CIMSolidStroke":case"CIMPictureStroke":case"CIMGradientStroke":{const t=r.width;null!=t&&t>e&&(e=t);break}case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":if(r.markerPlacement&&d(r.markerPlacement)){const t=r.size??i.D.CIMVectorMarker.size;t>e&&(e=t)}break;case"CIMPictureFill":{const t=r.height;null!=t&&t>e&&(e=t)}}return e}}}function L(t,e){if(null!==e){const r=e.get(t);return r?r.name:t}return t}function T(t){return t.map(t=>({...t,propertyName:I(t.propertyName)}))}function A(t){const e={};for(const r in t){const i=t[r];e[I(r)]=i}return e}function E(t){if(!t)return 0;let e=0;for(const r of t)e+=D(r);return e}function D(t){if(!t)return 0;if(W(t))return t.inflateSize??256;switch(t.type){case"CIMGeometricEffectArrow":return Math.abs(.5*t.width);case"CIMGeometricEffectBuffer":return Math.abs(t.size);case"CIMGeometricEffectCircularSector":return Math.abs(t.radius??25);case"CIMGeometricEffectControlMeasureLine":return 500;case"CIMGeometricEffectExtension":return Math.abs(t.length);case"CIMGeometricEffectJog":return Math.abs(.5*t.length);case"CIMGeometricEffectMove":return Math.max(Math.abs(p(t.offsetX)),Math.abs(p(t.offsetY)));case"CIMGeometricEffectOffset":case"CIMGeometricEffectOffsetTangent":return Math.abs(t.offset);case"CIMGeometricEffectRadial":return Math.abs(t.length??5);case"CIMGeometricEffectRegularPolygon":return Math.abs(t.radius);case"CIMGeometricEffectRotate":case"CIMGeometricEffectScale":default:return 0;case"CIMGeometricEffectTaperedPolygon":return.5*Math.max(Math.abs(t.fromWidth),Math.abs(t.toWidth));case"CIMGeometricEffectWave":return Math.abs(t.amplitude);case"CIMGeometricEffectDonut":return Math.abs(t.width)}}function F(t,e,r,i,n){const s=r*Math.PI/180;if(s){const r=Math.cos(s);return(Math.sin(s)*t+r*e)*i+n}return e*i+n}function G(t,e,r,i,n){const s=r*Math.PI/180;return s?(Math.cos(s)*t-Math.sin(s)*e)*i+n:t*i+n}function H(t,e,r){return e?r-t:r+t}function O(t,e){return Math.max(Math.min((t??e)/100,1),0)}function W(t){return t.type.startsWith("Private")}function $(t){return null!=t&&function(t){return"setControlPoint"in t&&"getControlPoint"in t&&"setControlPointAt"in t&&"getControlPointAt"in t}(t)?t:void 0}r.d(e,["$w",0,p,"UE",0,t=>t.includes("data:image/svg+xml")])}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1577,1948,6491],{61691(e,t,r){r.d(t,{G:()=>n});class n{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}},76061(e,t,r){r.d(t,{S:()=>s});var n=r(61691);class s extends n.G{m_aGeoms;m_iGeom=-1;constructor(e){super(),this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},87992(e,t,r){r.d(t,{JR:()=>_,ME:()=>M,MY:()=>G,NO:()=>C,Nh:()=>P,V2:()=>b,_s:()=>A,e6:()=>R,gh:()=>E,tr:()=>F,uX:()=>x});var n=r(32198),s=r(16930),i=r(19419),o=r(60408),a=r(21325),u=r(513),c=r(50954),h=r(79567),l=r(52006),m=r(49663),g=r(46068),f=r(92722);class x{constructor({type:e,spatialReference:t,vertexCount:r,vertexXY:n,vertexZ:s,vertexM:i,partCount:o,partOffsets:a,partFlags:u,segmentFlags:c,segmentIndices:h,segmentParams:l,segmentCountArc:m,segmentCountBezier:g}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=e,this.spatialReference=t,this.vertexCount=r,this.vertexXY=n,this.vertexZ=s,this.vertexM=i,this.partCount=o,this.partOffsets=a,this.partFlags=u,this.segmentFlags=c,this.segmentIndices=h,this.segmentParams=l,this.segmentCountArc=m,this.segmentCountBezier=g}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){const{segmentCount:e,segmentCountArc:t,segmentCountBezier:r}=this;return e&&e-t-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function e(e){return e?64+e.byteLength:0}return e(this.vertexXY)+e(this.vertexZ)+e(this.vertexM)+e(this.partOffsets)+e(this.partFlags)+e(this.segmentFlags)+e(this.segmentIndices)+e(this.segmentParams)}clone(){const{type:e,vertexCount:t,partCount:r,hasZ:n,hasM:s,segmentCountArc:i,segmentCountBezier:o}=this,a=b(e,t,r,n,s,this.hasCurves(),i,o);a.spatialReference=this.spatialReference;const{vertexXY:u,vertexZ:c,vertexM:h}=this;if(a.vertexXY.set(u.subarray(0,2*t),0),a.vertexZ?.set(c.subarray(0,t),0),a.vertexM?.set(h.subarray(0,t),0),this.isMultipart()){const{partOffsets:e,partFlags:t}=this;a.partFlags.set(t.subarray(0,r+1)),a.partOffsets.set(e.subarray(0,r+1))}if(this.hasCurves()){const{segmentFlags:e,segmentIndices:r,segmentParams:n,segmentParamCount:s}=this;a.segmentFlags.set(e.subarray(0,t),0),a.segmentIndices.set(r.subarray(0,t),0),a.segmentParams.set(n.subarray(0,s),0)}return a}equals(e){return this.equalsWithinTolerance(e,0)}equalsWithinTolerance(e,t){if(null==e)return!1;if(this===e)return!0;if(!(0,a.aI)(this.spatialReference,e.spatialReference))return!1;if(this.vertexCount!==e.vertexCount||this.partCount!==e.partCount)return!1;if(this.hasZ!==e.hasZ||this.hasM!==e.hasM)return!1;if(this.hasCurves()!==e.hasCurves()||this.segmentCountArc!==e.segmentCountArc||this.segmentCountBezier!==e.segmentCountBezier)return!1;const r=0===t?(e,t)=>e!==t||isNaN(e)!==isNaN(t):(e,r)=>Math.abs(e-r)>t||isNaN(e)!==isNaN(r);for(let t=0;t<this.vertexCount;++t)if(r(this.vertexXY[2*t],e.vertexXY[2*t])||r(this.vertexXY[2*t+1],e.vertexXY[2*t+1]))return!1;if(this.hasZ)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexZ[t],e.vertexZ[t]))return!1;if(this.hasM)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexM[t],e.vertexM[t]))return!1;for(let t=0;t<this.partCount;++t)if(this.partFlags[t]!==e.partFlags[t]||this.partOffsets[t]!==e.partOffsets[t])return!1;if(this.hasCurves()){for(let t=0;t<this.vertexCount;++t)if(this.segmentFlags[t]!==e.segmentFlags[t]||this.segmentIndices[t]!==e.segmentIndices[t])return!1;for(let t=0;t<this.segmentParamCount;++t)if(r(this.segmentParams[t],e.segmentParams[t]))return!1}return!0}get parts(){return this.isMultipart()?new p(this):[][Symbol.iterator]()}}class p{constructor(e){this.geometry=e,this.value=new y(e)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class y{constructor(e){this.geometry=e,this.index=-1,this._readVertex=w(e),this._segments=new v(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){const e=this.geometry.partOffsets;return e[this.index+1]-e[this.index]}}class v{constructor(e){this._part=e,this._partStart=0,this._partEnd=0,this._isPolygon="polygon"===e.geometry.type,this.value=new d(e.geometry)}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;const e=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=e&&this._isPolygon?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){const{index:e}=this._part,t=this._part.geometry.partOffsets;this._partStart=t[e],this._partEnd=t[e+1]-(this._isPolygon?1:2),this.value.indexOfStartVertex=this._partStart-1}}class d{constructor(e){this.geometry=e,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=w(e)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){const e=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===e)return this.end;const t=this.geometry.segmentParams;let r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===e){const e=t[r++],n=t[r++],s=t[r++],i=t[r++];return{b:[this.end,[e,n],[s,i]]}}const n=t[r++],s=t[r++],i=t[r++],o=t[r++],a=t[r++],u=t[r++];r++,r++;const c=t[r++],h=t[r++];if(!Boolean(4&n)&&1===i)return{c:[this.end,[c,h]]};const l=2&n?0:1,m=1&n?0:1;return{a:[this.end,[a,u],l,m,o,s,i]}}}function C(e,t){const r={stack:[],error:void 0,hasError:!1};try{return t??=(0,i.Ie)(),(0,n.mS)(r,new O(e,["vertexZ","vertexM","spatialReference"]),!1),(0,i.bx)(t,function(e){let t;const{vertexCount:r,vertexXY:s,vertexZ:o,vertexM:a}=e,u=S(e);if(e.hasCurves()){const r={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(r,new O(e,["vertexZ","vertexM"]),!1);const s=(0,i.Ie)();for(const t of e.parts){let e=t.startVertex;for(const{curve:r}of t.segments)(0,h.e)(s,e,r),e=(0,l.yP)(r)}const[o,a,c,m]=s;t={xmin:o,ymin:a,xmax:c,ymax:m,spatialReference:u}}catch(e){r.error=e,r.hasError=!0}finally{(0,n.hk)(r)}}else{let e,n,i,o;e=n=1/0,i=o=-1/0;for(let t=0;t<r;++t){const r=s[2*t],a=s[2*t+1];e=Math.min(e,r),i=Math.max(i,r),n=Math.min(n,a),o=Math.max(o,a)}t={xmin:e,ymin:n,xmax:i,ymax:o,spatialReference:u}}if(o){let e=1/0,r=-1/0;for(const t of o)e=Math.min(e,t),r=Math.max(r,t);t.zmin=e,t.zmax=r}if(a){let e=1/0,r=-1/0;for(const t of a)e=Math.min(e,t),r=Math.max(r,t);t.mmin=e,t.mmax=r}return t}(e)),t}catch(e){r.error=e,r.hasError=!0}finally{(0,n.hk)(r)}}function M(e){let t,r,n;if((0,o.fT)(e)){n="point";const{x:s,y:i,z:o,m:a}=e,u=[s,i];null!=o&&u.push(o),null!=a&&u.push(a),r=[[u]],t=1}else(0,o.U9)(e)?(n="multipoint",r=[e.points],t=e.points.length):(0,o.Rg)(e)?(n="polyline",r=e.curvePaths??e.paths,t=r.reduce((e,t)=>e+t.length,0)):(n="polygon",r=e.curveRings??e.rings,t=r.reduce((e,t)=>(0===t.length||(e+=t.length,Y(t[0],(0,l.yP)(t.at(-1)))&&--e),e),0));const s=b(n,t,n.includes("point")?0:r.length,(0,o.Pv)(e),(0,o.W0)(e),(0,l.Ed)(e)),{hasZ:i,hasM:a,vertexXY:u,vertexZ:c,vertexM:h}=s;function m(e){u[2*f]=e[0],u[2*f+1]=e[1],i&&(c[f]=e[2]),a&&(h[f]=e[g]),++f}s.spatialReference=e.spatialReference??void 0;const g=s.hasZ?3:2;let f=0;if(!s.isMultipart()){if(!i&&!a){for(const[e,t]of r[0])u[2*f]=e,u[2*f+1]=t,++f;return s}for(const e of r[0])m(e);return s}const x="polygon"===n,{partOffsets:p}=s;let y=0;if(!(0,l.Ed)(e)){for(const e of r){if(p[y++]=f,0===e.length)continue;let t=e.length;if(x&&Y(e[0],e.at(-1))&&--t,i||a)for(let r=0;r<t;++r)m(e[r]);else for(let r=0;r<t;++r){const[t,n]=e[r];u[2*f]=t,u[2*f+1]=n,++f}}return p[y]=f,s}function v(e){const t=d+e;if(t<=(s.segmentParams?.length??0))return;let r=t*X;r=20*Math.ceil(r/20);const n=s.segmentParams;s.segmentParams=new Float64Array(r),null!=n&&s.segmentParams.set(n)}let d=0;for(const e of r){if(s.partOffsets[y++]=f,0===e.length)continue;const t=e[0];let r=t;for(let t=1;t<e.length;++t){const n=e[t];m(r);const i=f-1;(0,l.wY)(n)?(v(10),++s.segmentCountArc,d=A(r,n,s,i,d),r=n.a[0]):(0,l.DA)(n)?(v(10),++s.segmentCountArc,d=I(r,n,s,i,d),r=n.a[0]):(0,l.aO)(n)?(v(10),++s.segmentCountArc,d=R(r,n,s,i,d),r=n.c[0]):(0,l.n1)(n)?(v(4),++s.segmentCountBezier,d=F(0,n,s,i,d),r=n.b[0]):r=n}x&&Y(t,r)||m(r)}return s.partOffsets[y]=f,s}function E(e){const t=w(e),{vertexCount:r,partCount:n,hasZ:s,hasM:i}=e,o=S(e);if("point"===e.type){const[t,r]=e.vertexXY,n=e.vertexZ?.[0],s=e.vertexM?.[0];return{x:t,y:r,z:n,m:s,spatialReference:o}}let a=0;if("multipoint"===e.type){const e=[];for(;a<r;)e.push(t(a++));return{points:e,spatialReference:o,hasZ:s,hasM:i}}const u="polygon"===e.type;if(!e.hasCurves()){const r=new Array;for(let s=0;s<n;++s){const n=e.partOffsets[s+1],i=new Array;for(;a<n;)i.push(t(a++));u&&i.length>0&&i.push(i[0]),r.push(i)}return u?{rings:r,hasZ:s,hasM:i,spatialReference:o}:{paths:r,hasZ:s,hasM:i,spatialReference:o}}const c=new Array;for(const{segments:t,startVertex:r}of e.parts){const e=[r];for(const{curve:r}of t)e.push(r);c.push(e)}return u?{rings:[],curveRings:c,hasZ:s,hasM:i,spatialReference:o}:{paths:[],curvePaths:c,hasZ:s,hasM:i,spatialReference:o}}function P(e,{lengths:t,coords:r,hasZ:n,hasM:s},i){const o=e.includes("point")?0:t.length,a="polygon"===e,u="point"===e?1:t.reduce((e,t)=>e+t,0)-(a?o:0);n??=!1,s??=!1;const c=b(e,u,o,n,s,!1,0,0);if(c.spatialReference=i??void 0,!c.isMultipart()){for(let e=0,t=0;e<u;++e)c.vertexXY[2*e]=r[t++],c.vertexXY[2*e+1]=r[t++],n&&(c.vertexZ[e]=r[t++]),s&&(c.vertexM[e]=r[t++]);return c}const h=2+Number(n)+Number(s);let l=0,m=0;c.partOffsets[0]=0;for(const e of t){const t=c.partOffsets[m],i=t+e-Number(a);c.partOffsets[++m]=i;for(let e=t;e<i;++e)c.vertexXY[2*e]=r[l++],c.vertexXY[2*e+1]=r[l++],n&&(c.vertexZ[e]=r[l++]),s&&(c.vertexM[e]=r[l++]);a&&(l+=h)}return c}function _({type:e,vertexCount:t,vertexXY:r,vertexZ:n,vertexM:s,partCount:i,partOffsets:o,hasZ:a,hasM:u}){const c=new f.A([],[],a,u);i=Math.max(i,1);const h="polygon"===e;let l=0;for(let e=0;e<i;++e){const i=o?.[e+1]??t,m=c.coords.length;for(let e=l;e<i;++e)c.coords.push(r[2*e],r[2*e+1]),a&&c.coords.push(n[e]),u&&c.coords.push(s[e]);if(h){const e=l;c.coords.push(r[2*e],r[2*e+1]),a&&c.coords.push(n[e]),u&&c.coords.push(s[e])}c.lengths.push((c.coords.length-m)/c.stride),l=i}return"point"===e&&(c.lengths.length=0),c}function G(e,t){return"getSpatialReference"in e&&(t=function(e){if(null==e)return;const t=e.getText()||void 0,r=e.isCustomWkid()?0:e.getOldID();if(r<=0)return{wkt:t};let n=e.getLatestID();(n<=0||n===r)&&(n=void 0);const s=e.getVCS();if(null==s)return{wkid:r,latestWkid:n,wkt:t};const i=s.isCustomWkid()?0:s.getOldID();if(i<=0)return{wkt:t};let o=e.getLatestVerticalID();return(o<=0||o===i)&&(o=void 0),{wkid:r,wkt:t,latestWkid:n,vcsWkid:i,latestVcsWkid:o}}(e.getSpatialReference()),e=e.getGeometry()),new x({...e.toFlatGeometry(),spatialReference:t})}class O{constructor(e,t){this.target=e,this.keys=t,this.oldValues=t.map(t=>e[t]);for(const r of t)e[r]=void 0}[Symbol.dispose](){this.keys.map((e,t)=>{this.target[e]=this.oldValues[t]})}}function S({spatialReference:e}){return e instanceof s.A?e.toJSON():e}function w({vertexXY:e,vertexZ:t,vertexM:r}){return t?r?n=>[e[2*n],e[2*n+1],t[n],r[n]]:r=>[e[2*r],e[2*r+1],t[r]]:r?t=>[e[2*t],e[2*t+1],r[t]]:t=>[e[2*t],e[2*t+1]]}function Y(e,t){return e.every((e,r)=>e===t[r])}function b(e,t,r,n,s,i,o,a){o??=0,a??=0;const u=new x({type:e,vertexCount:t,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:o,segmentCountBezier:a});let c=2*Float64Array.BYTES_PER_ELEMENT*t;n&&(c+=Float64Array.BYTES_PER_ELEMENT*t),s&&(c+=Float64Array.BYTES_PER_ELEMENT*t),u.isMultipart()&&(c+=(r+1)*Int32Array.BYTES_PER_ELEMENT,c+=(r+1)*Int8Array.BYTES_PER_ELEMENT),i&&(c+=t*Int8Array.BYTES_PER_ELEMENT,c+=t*Int32Array.BYTES_PER_ELEMENT,c+=u.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);const h=new ArrayBuffer(c);let l=0;return u.vertexXY=new Float64Array(h,l,2*t),l+=u.vertexXY.byteLength,n&&(u.vertexZ=new Float64Array(h,l,t),l+=u.vertexZ.byteLength),s&&(u.vertexM=new Float64Array(h,l,t),l+=u.vertexM.byteLength),i&&(u.segmentParams=new Float64Array(h,l,u.segmentParamCount),l+=u.segmentParams.byteLength,u.segmentIndices=new Int32Array(h,l,t),u.segmentIndices.fill(Z),l+=u.segmentIndices.byteLength),u.isMultipart()&&(u.partOffsets=new Int32Array(h,l,r+1),l+=u.partOffsets.byteLength,u.partFlags=new Int8Array(h,l,r+1),l+=u.partFlags.byteLength,"polygon"===u.type&&u.partFlags.subarray(0,r).fill(1)),i&&(u.segmentFlags=new Int8Array(h,l,t),u.segmentFlags.fill(1),l+=u.segmentFlags.byteLength),u}function A(e,t,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,o){r[i]=4,n[i]=o;const[a,[u,c],h,l,m,f,x]=t.a;let p=4;l||(p|=1),h||(p|=2);const y=(0,g.SW)(e,t),[v,d]=(0,g.Uk)(y,.5);return s[o++]=p,s[o++]=f,s[o++]=x,s[o++]=m,s[o++]=u,s[o++]=c,s[o++]=y.u2-y.u1,s[o++]=y.u1,s[o++]=v,s[o++]=d,o}function I(e,t,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,o){r[i]=4,n[i]=o;const a=(0,m.io)(e,t);return V(a,4,...(0,u.mq)(a,.5),s,o)}function R(e,t,{segmentFlags:r,segmentIndices:n,segmentParams:s},i,o){return r[i]=4,n[i]=o,V((0,c.pM)(e,t),0,...t.c[1],s,o)}function V(e,t,r,n,s,i){const{cx:o,cy:a,thetaStart:u,thetaEnd:c,radius:h}=e;return u>c||(t|=1),Math.abs(c-u)<=Math.PI||(t|=2),s[i++]=t,s[i++]=h,s[i++]=1,s[i++]=0,s[i++]=o,s[i++]=a,s[i++]=c-u,s[i++]=u,s[i++]=r,s[i++]=n,i}function F(e,{b:[t,[r,n],[s,i]]},{segmentFlags:o,segmentIndices:a,segmentParams:u},c,h){return o[c]=2,a[c]=h,u[h++]=r,u[h++]=n,u[h++]=s,u[h++]=i,h}const X=1.61803,Z=-1},91577(e,t,r){r.d(t,{execute:()=>f,qT:()=>p,zo:()=>x});var n=r(76061),s=r(61691),i=r(55537),o=r(95213),a=r(88885),u=r(79187);class c extends s.G{m_progressTracker;m_bMerge;m_bDone;m_inputGeometryCursor;m_index;constructor(e,t,r){super(),t||(0,i.a)(""),this.m_progressTracker=r,this.m_index=-1,this.m_bMerge=e,this.m_bDone=!1,this.m_inputGeometryCursor=t}getGeometryID(){return this.m_index}tock(){return!0}getRank(){return 1}next(){if(this.m_bMerge){if(!this.m_bDone){const e=h(this.m_inputGeometryCursor);return this.m_bDone=!0,e}return null}if(!this.m_bDone){const e=this.m_inputGeometryCursor.next();if(null!==e)return(0,i.p)(e),(0,i.c)(e),this.m_index=this.m_inputGeometryCursor.getGeometryID(),l(e);this.m_bDone=!0}return null}}function h(e,t){const r=new a.C;let n;for(;n=e.next();)(0,i.p)(n),(0,i.c)(n),r.addGeometry(n);return r.getBoundingGeometry()}function l(e,t){if((0,i.c)(e),e.isEmpty())return e.createInstance();const r=e.getGeometryType();if((0,i.h)(r)){const t=e;if(t.isDegenerate(0)){const e=new o.P;return t.queryStart(e),e}if(t.getGeometryType()===i.G.enumLine){const r=new o.P,n=new a.a({vd:e.getDescription()});return t.queryStart(r),n.startPathPoint(r),t.queryEnd(r),n.lineToPoint(r),n}{const r=new a.a({vd:e.getDescription()});return r.addSegment(t,!0),l(r)}}if(r===i.G.enumEnvelope){const t=e,r=new u.Envelope2D;if(t.queryEnvelope(r),r.xmin===r.xmax&&r.ymin===r.ymax){const e=new o.P;return t.queryCornerByVal(0,e),e}if(r.xmin===r.xmax||r.ymin===r.ymax){const r=new o.P,n=new a.a({vd:e.getDescription()});return t.queryCornerByVal(0,r),n.startPathPoint(r),t.queryCornerByVal(1,r),n.lineToPoint(r),n}{const r=new a.P({vd:e.getDescription()});return r.addEnvelope(t,!1),r}}if(r===i.G.enumGeometryCollection)return h((0,a.g)(e,-1));if(m(e)){if(r===i.G.enumMultiPoint){const t=e,r=new o.P;return t.getPointByVal(0,r),r}return e}return(0,i.g)((0,i.i)(r)),(0,a.f)(e)}function m(e,t){if((0,i.c)(e),e.isEmpty())return!0;const r=e.getGeometryType();if(r===i.G.enumPoint)return!0;if(r===i.G.enumEnvelope){const t=e;return t.getXMin()!==t.getXMax()&&t.getYMin()!==t.getYMax()}if((0,i.h)(r)){const t=e;if(t.isDegenerate(0))return!1;if(r===i.G.enumLine)return!0;const n=new a.a;return n.addSegment(t,!0),m(n)}if(r===i.G.enumMultiPoint)return 1===e.getPointCount();if(r===i.G.enumPolyline){const t=e;return!t.hasNonLinearSegments()&&1===t.getPathCount()&&2===t.getPointCount()&&!t.getXY(0).equals(t.getXY(1))}if(r===i.G.enumGeometryCollection){const t=e;return 1===t.getGeometryCount()&&m(t.getGeometry(0))}const n=e;return!(1!==n.getPathCount()||n.getPointCount()<3)&&(0,a.i)(n,0)}const g=new class{getOperatorType(){return 10102}supportsCurves(){return!0}accelerateGeometry(e,t,r){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,r){return new c(t,e,r)}execute(e,t){return l(e)}isConvex(e,t){if((0,i.c)(e),e.isEmpty())return!0;const r=e.getGeometryType();if(r===i.G.enumPoint)return!0;if(r===i.G.enumEnvelope){const t=e;return t.getXMin()!==t.getXMax()&&t.getYMin()!==t.getYMax()}if((0,i.h)(r)){const t=e;return!t.getStartXY().equals(t.getEndXY())}if(r===i.G.enumMultiPoint)return 1===e.getPointCount();if(r===i.G.enumPolyline){const t=e;return 1===t.getPathCount()&&2===t.getPointCount()&&!t.getXY(0).equals(t.getXY(1))}if(r===i.G.enumGeometryCollection){const r=e;return 1===r.getGeometryCount()&&this.isConvex(r.getGeometry(0),t)}const n=e;return!(1!==n.getPathCount()||n.getPointCount()<3)&&(0,a.i)(n,0)}constructOrientedMinimumBoundingBox(e,t,r,n,s){(0,a.e)(e,t,r,n,s)}};function f(e){return g.execute(e,null)}function x(e,t){const r=g.executeMany(new n.S(e),t,null);return Array.from(r)}function p(e){return g.isConvex(e,null)}},55666(e,t,r){r.r(t),r.d(t,{convexHullExecute:()=>a,convexHullExecuteMany:()=>c,convexHullIsConvex:()=>l,execute:()=>u,executeMany:()=>h,isConvex:()=>m});var n=r(51447),s=r(53966),i=r(91577),o=r(83299);function a(e){const t=(0,o.fromGeometry)(e);return(0,o.toGeometry)((0,i.execute)(t.getGeometry()),t.getSpatialReference())}function u(e){return(0,n.eO)(s.A.getLogger("esri.geometry.operators.json.convexHullOperator"),"execute is deprecated. Use convexHullExecute instead.",{replacement:"convexHullExecute",warnOnce:!0}),a(e)}function c(e,t={}){const{merge:r=!1}=t,[n,s]=(0,o.fromGeometries)(e);return(0,i.zo)(n,r).map(e=>(0,o.toGeometry)(e,s))}function h(e,t={}){return(0,n.eO)(s.A.getLogger("esri.geometry.operators.json.convexHullOperator"),"executeMany is deprecated. Use convexHullExecuteMany instead.",{replacement:"convexHullExecuteMany",warnOnce:!0}),c(e,t)}function l(e){return(0,i.qT)((0,o.fromGeometryToGXGeometry)(e))}function m(e){return(0,n.eO)(s.A.getLogger("esri.geometry.operators.json.convexHullOperator"),"isConvex is deprecated. Use convexHullIsConvex instead.",{replacement:"convexHullIsConvex",warnOnce:!0}),l(e)}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[765,8768],{60999(t,e,r){r.d(e,{DZ:()=>f,Ke:()=>d,Tj:()=>h,UT:()=>g,aD:()=>y,jJ:()=>u});var n=r(32198),i=r(69622),s=r(97768),a=r(17676),o=r(10107),l=r(64108);function u(t,e,r){return(0,a.Lx)(t.map((t,n)=>e.apply(r,[t,n])))}async function h(t,e,r){return(await(0,a.Lx)(t.map((t,n)=>e.apply(r,[t,n])))).map(t=>t.value)}function c(t){return{ok:!0,value:t}}function p(t){return{ok:!1,error:t}}async function d(t){if(null==t)return{ok:!1,error:new Error("no promise provided")};try{return c(await t)}catch(t){return p(t)}}async function f(t){try{return c(await t)}catch(t){return(0,a.QP)(t),p(t)}}function g(t,e){return new m(t,e)}let m=class extends i.A{get value(){return null!=(t=this._result)&&!0===t.ok?t.value:null;var t}get error(){return null!=(t=this._result)&&!1===t.ok?t.error:null;var t}get finished(){return null!=this._result}constructor(t,e){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,s.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=t(r),this.promise.then(t=>{this._result=c(t),this._cleanup()},t=>{this._result=p(t),this._cleanup()}),this._abortHandle=(0,a.u7)(e,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,s.xt)(this._abortHandle),this._abortController=null}};(0,n.Cg)([(0,o.MZ)()],m.prototype,"value",null),(0,n.Cg)([(0,o.MZ)()],m.prototype,"error",null),(0,n.Cg)([(0,o.MZ)()],m.prototype,"finished",null),(0,n.Cg)([(0,o.MZ)()],m.prototype,"promise",void 0),(0,n.Cg)([(0,o.MZ)()],m.prototype,"_result",void 0),m=(0,n.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],m);class y{constructor(){this._sequence=Promise.resolve()}async acquire(){let t;this._sequence=new Promise(e=>{t=this._sequence.then(()=>e,()=>e)});const e=await t;return{[Symbol.dispose]:e}}async run(t){const e={stack:[],error:void 0,hasError:!1};try{return(0,n.mS)(e,await this.acquire(),!1),await t()}catch(t){e.error=t,e.hasError=!0}finally{(0,n.hk)(e)}}}},35522(t,e,r){r.d(e,{$A:()=>C,Bw:()=>s,C:()=>a,Cc:()=>R,DI:()=>b,Io:()=>v,Ln:()=>y,Om:()=>_,Qr:()=>c,Re:()=>u,S8:()=>S,T9:()=>g,WQ:()=>l,Z0:()=>x,_S:()=>d,aI:()=>L,ei:()=>P,fw:()=>E,gL:()=>I,hG:()=>M,hZ:()=>o,hs:()=>m,jk:()=>f,lw:()=>h,m3:()=>w,oW:()=>O,t2:()=>k,tn:()=>p,ze:()=>A});var n=r(51850),i=r(34304);function s(t){const e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function o(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}function l(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}function u(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}function h(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}function c(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}function p(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function d(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function f(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t}function g(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t}function m(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}function y(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t}function v(t,e){const r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(r*r+n*n+i*i)}function M(t,e){const r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return r*r+n*n+i*i}function w(t){const e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}function A(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function b(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function S(t,e){const r=e[0],n=e[1],i=e[2];let s=r*r+n*n+i*i;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s),t}function _(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function C(t,e,r){const n=e[0],i=e[1],s=e[2],a=r[0],o=r[1],l=r[2];return t[0]=i*l-s*o,t[1]=s*a-n*l,t[2]=n*o-i*a,t}function R(t,e,r,n){const i=e[0],s=e[1],a=e[2];return t[0]=i+n*(r[0]-i),t[1]=s+n*(r[1]-s),t[2]=a+n*(r[2]-a),t}function x(t,e,r){const n=e[0],i=e[1],s=e[2];return t[0]=r[0]*n+r[4]*i+r[8]*s+r[12],t[1]=r[1]*n+r[5]*i+r[9]*s+r[13],t[2]=r[2]*n+r[6]*i+r[10]*s+r[14],t}function P(t,e,r){const n=e[0],i=e[1],s=e[2];return t[0]=n*r[0]+i*r[3]+s*r[6],t[1]=n*r[1]+i*r[4]+s*r[7],t[2]=n*r[2]+i*r[5]+s*r[8],t}function I(t,e,r){return E(t,e,r[0],r[1],r[2],r[3])}function E(t,e,r,n,i,s){const a=e[0],o=e[1],l=e[2],u=n*l-i*o,h=i*a-r*l,c=r*o-n*a,p=n*c-i*h,d=i*u-r*c,f=r*h-n*u,g=2*s;return t[0]=a+u*g+2*p,t[1]=o+h*g+2*d,t[2]=l+c*g+2*f,t}const U=(0,n.vt)(),Z=(0,n.vt)();function k(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function L(t,e){if(t===e)return!0;const r=t[0],n=t[1],s=t[2],a=e[0],o=e[1],l=e[2],u=(0,i.FD)();return Math.abs(r-a)<=u*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(n-o)<=u*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(s-l)<=u*Math.max(1,Math.abs(s),Math.abs(l))}function O(t,e,r){const n=r[0]-e[0],i=r[1]-e[1],s=r[2]-e[2];let a=n*n+i*i+s*s;return a>0?(a=1/Math.sqrt(a),t[0]=n*a,t[1]=i*a,t[2]=s*a,t):(t[0]=0,t[1]=0,t[2]=0,t)}const T=u,j=h,H=c,K=v,G=M,W=s,$=w;Object.freeze(Object.defineProperty({__proto__:null,abs:p,add:l,angle:function(t,e){S(U,t),S(Z,e);const r=_(U,Z);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(t,e,r,n,i,s){const a=1-s,o=a*a,l=s*s,u=o*a,h=3*s*o,c=3*l*a,p=l*s;return t[0]=e[0]*u+r[0]*h+n[0]*c+i[0]*p,t[1]=e[1]*u+r[1]*h+n[1]*c+i[1]*p,t[2]=e[2]*u+r[2]*h+n[2]*c+i[2]*p,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,r=1){return t[0]=Math.min(Math.max(t[0],e),r),t[1]=Math.min(Math.max(t[1],e),r),t[2]=Math.min(Math.max(t[2],e),r),t},copy:a,cross:C,crossAndNormalize:function(t,e,r){const n=e[0],i=e[1],s=e[2],a=r[0],o=r[1],l=r[2],u=i*l-s*o,h=s*a-n*l,c=n*o-i*a,p=Math.sqrt(u*u+h*h+c*c);return t[0]=u/p,t[1]=h/p,t[2]=c/p,t},direction:O,dist:K,distance:v,div:H,divide:c,dot:_,equals:L,exactEquals:k,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,r,n,i,s){const a=s*s,o=a*(2*s-3)+1,l=a*(s-2)+s,u=a*(s-1),h=a*(3-2*s);return t[0]=e[0]*o+r[0]*l+n[0]*u+i[0]*h,t[1]=e[1]*o+r[1]*l+n[1]*u+i[1]*h,t[2]=e[2]*o+r[2]*l+n[2]*u+i[2]*h,t},inverse:b,len:W,length:s,lerp:R,max:g,min:f,mul:j,multiply:h,negate:A,normalize:S,random:function(t,e=1){const r=i.Ov,n=2*r()*Math.PI,s=2*r()-1,a=Math.sqrt(1-s*s)*e;return t[0]=Math.cos(n)*a,t[1]=Math.sin(n)*a,t[2]=s*e,t},rotateX:function(t,e,r,n){const i=[],s=[];return i[0]=e[0]-r[0],i[1]=e[1]-r[1],i[2]=e[2]-r[2],s[0]=i[0],s[1]=i[1]*Math.cos(n)-i[2]*Math.sin(n),s[2]=i[1]*Math.sin(n)+i[2]*Math.cos(n),t[0]=s[0]+r[0],t[1]=s[1]+r[1],t[2]=s[2]+r[2],t},rotateY:function(t,e,r,n){const i=[],s=[];return i[0]=e[0]-r[0],i[1]=e[1]-r[1],i[2]=e[2]-r[2],s[0]=i[2]*Math.sin(n)+i[0]*Math.cos(n),s[1]=i[1],s[2]=i[2]*Math.cos(n)-i[0]*Math.sin(n),t[0]=s[0]+r[0],t[1]=s[1]+r[1],t[2]=s[2]+r[2],t},rotateZ:function(t,e,r,n){const i=[],s=[];return i[0]=e[0]-r[0],i[1]=e[1]-r[1],i[2]=e[2]-r[2],s[0]=i[0]*Math.cos(n)-i[1]*Math.sin(n),s[1]=i[0]*Math.sin(n)+i[1]*Math.cos(n),s[2]=i[2],t[0]=s[0]+r[0],t[1]=s[1]+r[1],t[2]=s[2]+r[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:m,scaleAndAdd:y,scaleTo:function(t,e){return m(t,t,e/W(t))},set:o,sign:d,sqrDist:G,sqrLen:$,squaredDistance:M,squaredLength:w,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:T,subtract:u,transformMat3:P,transformMat4:x,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:I,transformQuatValues:E},Symbol.toStringTag,{value:"Module"})),r.d(e,["Il",0,W,"jb",0,T,"lo",0,G,"uE",0,$])},56512(t,e,r){function n(t){let e,r,n=[],i=!1;return function(...s){return i&&e===this&&function(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r])return!1;return!0}(s,n)||(r=t.apply(this,s),e=this,n=s,i=!0),r}}r.d(e,{B:()=>n})},54239(t,e,r){r.d(e,{A:()=>y});var n,i=r(32198),s=r(4576),a=r(66552),o=r(25482),l=r(86211),u=r(67076),h=r(91429),c=r(97348),p=r(43937),d=r(36005);const f=(0,a.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),g=f.jsonValues.slice();(0,s.Xy)(g,"orthometric");const m=(0,a.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let y=n=class extends o.o{constructor(t){super(t),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(t,e,r){return f.write(t,e,r)}readHeightModel(t,e,r){return f.read(t)||(r?.messages&&r.messages.push(function(t,e){return new u.A("height-model:unsupported",`Height model of value '${t}' is not supported`,e)}(t,{context:r})),null)}readHeightUnit(t,e,r){return m.read(t)||(r?.messages&&r.messages.push(v(t,{context:r})),null)}readHeightUnitService(t,e,r){return(0,l.LA)(t)||m.read(t)||(r?.messages&&r.messages.push(v(t,{context:r})),null)}readVertCRS(t,e){return e.vertCRS||e.ellipsoid||e.geoid}clone(){return new n({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(t){return!!t&&(this===t||this.heightModel===t.heightModel&&this.heightUnit===t.heightUnit&&this.vertCRS===t.vertCRS)}static deriveUnitFromSR(t,e){const r=(0,l.k1)(e);return new n({heightModel:t.heightModel,heightUnit:r??void 0,vertCRS:t.vertCRS})}static fromSpatialReference(t){const{latestVcsWkid:e,vcsWkid:r}=t;if(!r)return null;const i=(null!=e?c.B.get(e):null)??c.B.get(r);return i?new n({heightModel:0===i.type?"gravity-related-height":"ellipsoidal",heightUnit:(0,l.LA)(i.unit.name),vertCRS:i.datum}):null}write(t,e){return e={origin:"web-scene",...e},super.write(t,e)}static fromJSON(t){if(!t)return null;const e=new n;return e.read(t,{origin:"web-scene"}),e}};function v(t,e){return new u.A("height-unit:unsupported",`Height unit of value '${t}' is not supported`,e)}(0,i.Cg)([(0,h.MZ)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g,default:"ellipsoidal",write:{isRequired:!0}}}}})],y.prototype,"heightModel",void 0),(0,i.Cg)([(0,p.K)("web-scene","heightModel")],y.prototype,"writeHeightModel",null),(0,i.Cg)([(0,d.w)(["web-scene","service"],"heightModel")],y.prototype,"readHeightModel",null),(0,i.Cg)([(0,h.MZ)({type:m.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m.jsonValues,write:{writer:m.write,isRequired:!0}}}}})],y.prototype,"heightUnit",void 0),(0,i.Cg)([(0,d.w)("web-scene","heightUnit")],y.prototype,"readHeightUnit",null),(0,i.Cg)([(0,d.w)("service","heightUnit")],y.prototype,"readHeightUnitService",null),(0,i.Cg)([(0,h.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],y.prototype,"vertCRS",void 0),(0,i.Cg)([(0,d.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],y.prototype,"readVertCRS",null),y=n=(0,i.Cg)([(0,h.$K)("esri.geometry.HeightModelInfo")],y)},48526(t,e,r){r.d(e,{A:()=>m});var n,i=r(32198),s=r(4576),a=r(4718),o=r(91429),l=r(5443),u=r(91075),h=r(86738),c=r(16930),p=r(90634),d=r(47610),f=r(56993),g=r(43937);let m=n=class extends u.A{constructor(t){super(function(t){if(!t)return;let{points:e,hasM:r,hasZ:n,spatialReference:i}=t;switch(e??=[],e?.at(0)?.length){case 4:n??=!0,r??=!0;break;case 3:n??=!0!==r,r??=!n;break;default:n??=!1,r??=!1}return i??=c.A.WGS84,{...t,hasM:r,hasZ:n,points:e,spatialReference:i}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const t=(0,p.ge)(this);return t?new l.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,a.o8)(this.points)}clone(){const{points:t,spatialReference:e,hasM:r,hasZ:i}=this;return new n({points:(0,a.o8)(t),spatialReference:e.clone(),hasM:r,hasZ:i})}equals(t){if(this===t)return!0;if(null==t)return!1;const e=this.spatialReference,r=t.spatialReference;return null!=e==(null!=r)&&!(null!=e&&null!=r&&!e.equals(r))&&(0,s.aI)(this.points,t.points,d.v6)}addPoint(t){return(0,f.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;const e=this.points[t],r={x:e[0],y:e[1],spatialReference:this.spatialReference};let n=2;return this.hasZ&&(r.z=e[2],n=3),this.hasM&&(r.m=e[n]),new h.A(r)}removePoint(t){if(!this._validateInputs(t))return null;const e=new h.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),e}setPoint(t,e){return this._validateInputs(t)?((0,f.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.points[t]=e,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"extent",null),(0,i.Cg)([(0,o.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],m.prototype,"points",void 0),(0,i.Cg)([(0,g.K)("points")],m.prototype,"writePoints",null),m=n=(0,i.Cg)([(0,o.$K)("esri.geometry.Multipoint")],m),m.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,r){r.d(e,{A:()=>f});var n,i=r(32198),s=r(4718),a=r(91429),o=r(5443),l=r(91075),u=r(86738),h=r(16930),c=r(90634),p=r(56993),d=r(43937);let f=n=class extends l.A{constructor(t){super(function(t){if(!t)return;let{paths:e,hasM:r,hasZ:n,spatialReference:i}=t;switch(e??=[],function(t){return"number"==typeof t[0]?.[0]}(e)&&(e=[e]),e[0]?.[0]?.length){case 4:n??=!0,r??=!0;break;case 3:n??=!0!==r,r??=!n;break;default:n??=!1,r??=!1}return i??=h.A.WGS84,{...t,hasM:r,hasZ:n,paths:e,spatialReference:i}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,e){e.curvePaths=(0,s.o8)(t)}get extent(){const t=(0,c.Z3)(this),{spatialReference:e}=this;return t?new o.A({...t,spatialReference:e}):null}writePaths(t,e){e.paths=(0,s.o8)(this.paths)}addPath(t){if(!t)return;const e=this.paths,r=e.length;if(function(t){return!Array.isArray(t[0])}(t)){const n=[];for(let e=0,r=t.length;e<r;e++)n[e]=t[e].toArray();e[r]=n}else e[r]=t.slice();return this.notifyChange("paths"),this}clone(){const t=new n;return t.spatialReference=this.spatialReference,t.paths=(0,s.o8)(this.paths),t.curvePaths=(0,s.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,e){if(!this._validateInputs(t,e))return null;const r=this.paths[t][e],n=this.hasZ,i=this.hasM;return n&&!i?new u.A(r[0],r[1],r[2],void 0,this.spatialReference):i&&!n?new u.A(r[0],r[1],void 0,r[2],this.spatialReference):n&&i?new u.A(r[0],r[1],r[2],r[3],this.spatialReference):new u.A(r[0],r[1],this.spatialReference)}insertPoint(t,e,r){return this._validateInputs(t,e,!0)?((0,p.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[t].splice(e,0,r),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;const e=this.paths.splice(t,1)[0],r=this.spatialReference,n=e.map(t=>new u.A(t,r));return this.notifyChange("paths"),n}removePoint(t,e){if(!this._validateInputs(t,e))return null;const r=new u.A(this.paths[t].splice(e,1)[0],this.spatialReference);return this.notifyChange("paths"),r}setPoint(t,e,r){return this._validateInputs(t,e)?((0,p.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[t][e]=r,this.notifyChange("paths"),this):this}_validateInputs(t,e,r=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=e){const n=this.paths[t];if(r&&(e<0||e>n.length))return!1;if(!r&&(e<0||e>=n.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,i.Cg)([(0,a.MZ)({readOnly:!0})],f.prototype,"cache",null),(0,i.Cg)([(0,a.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],f.prototype,"curvePaths",void 0),(0,i.Cg)([(0,d.K)("curvePaths")],f.prototype,"writeCurvePaths",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],f.prototype,"extent",null),(0,i.Cg)([(0,a.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],f.prototype,"paths",void 0),(0,i.Cg)([(0,d.K)("paths")],f.prototype,"writePaths",null),f=n=(0,i.Cg)([(0,a.$K)("esri.geometry.Polyline")],f),f.prototype.toJSON.isDefaultToJSON=!0},60408(t,e,r){function n(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function i(t){return void 0!==t.points}function s(t){return void 0!==t.x&&void 0!==t.y}function a(t){return void 0!==t.paths||void 0!==t.curvePaths}function o(t){return void 0!==t.rings||void 0!==t.curveRings}function l(t){return"object"==typeof t&&"vertexAttributes"in t}function u(t){return t?s(t)?"esriGeometryPoint":a(t)?"esriGeometryPolyline":o(t)?"esriGeometryPolygon":n(t)?"esriGeometryEnvelope":i(t)?"esriGeometryMultipoint":null:null}function h(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function c(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}r.d(e,{$B:()=>u,Bi:()=>o,Pv:()=>h,Rg:()=>a,U9:()=>i,W0:()=>c,ZC:()=>n,fT:()=>s,uW:()=>l})},52136(t,e,r){var n=r(32198),i=r(91429);r.d(e,["p",0,t=>{const e=t;let r=class extends e{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(t){null!=t?this._override("apiKey",t):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,n.Cg)([(0,i.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.APIKeyMixin")],r),r}])},18768(t,e,r){var n=r(32198),i=r(53966),s=r(91429),a=r(60694);r.d(e,["b",0,t=>{const e=t;let r=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const t=(0,a.qg)(this.url);if(t?.title)return t.title}return this._get("title")||""}set title(t){this._set("title",t)}set url(t){this._set("url",(0,a.Jf)(t,i.A.getLogger(this)))}};return(0,n.Cg)([(0,s.MZ)()],r.prototype,"title",null),(0,n.Cg)([(0,s.MZ)({type:String})],r.prototype,"url",null),r=(0,n.Cg)([(0,s.$K)("esri.layers.mixins.ArcGISService")],r),r}])},69208(t,e,r){var n=r(32198),i=r(91429);r.d(e,["d",0,t=>{const e=t;let r=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,n.Cg)([(0,i.MZ)({type:Object,json:{write:{overridePolicy:t=>({enabled:!!(t&&Object.keys(t).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.CustomParametersMixin")],r),r}])},8303(t,e,r){var n=r(32198),i=r(92602),s=r(70333),a=r(11254),o=r(60999),l=r(49186),u=r(36563),h=r(53966),c=r(97768),p=r(17676),d=r(84952),f=r(91429),g=r(77548),m=r(20655),y=r(80812),v=r(41318),M=r(10407),w=r(36005),A=r(43937);const b={credential:null,user:null};r.d(e,["A",0,t=>{const e=t;let S=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(t){t!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",t))}readPortalItem(t,e,r){if(e.itemId)return new y.default({id:e.itemId,portal:r?.portal})}writePortalItem(t,e){t?.id&&(e.itemId=t.id)}async loadFromPortal(t,e){if(this.portalItem?.id)try{const{load:n}=await r.e(1204).then(r.bind(r,41204));return(0,p.Te)(e),await n({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap,populateGroupLayer:t.populateGroupLayer},e)}catch(t){throw(0,p.zf)(t)||h.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${t}`),t}}async reloadFromPortal(t){if(!this.loaded||!this.portalItem?.id)return!1;try{const{reload:e}=await r.e(1204).then(r.bind(r,41204)),n=new AbortController,i=(0,u.rE)(n);return this.addHandles(i,"reloadFromPortal"),await e({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap,populateGroupLayer:t.populateGroupLayer},{signal:n.signal})}catch(t){throw(0,p.zf)(t)||h.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${t}`),t}finally{this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(t){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(t).catch(t=>((0,p.QP)(t),!0)))}async setUserPrivileges(t,e){if(!i.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(e);if(this.url)try{const{features:{edit:r,fullEdit:n},content:{updateItem:i}}=await this._fetchUserPrivileges(t,e);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",n),this._set("userHasUpdateItemPrivileges",i)}catch(t){(0,p.QP)(t)}}async _fetchUserPrivileges(t,e){let r=this.portalItem;if(!t||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(e);const n=!s.id?.findCredential(this.url),i=t===r.id;if(i&&r.portal.user)return this._getUserPrivileges(r,n);let a,o;if(i)a=r.portal.url;else try{a=await(0,g.wI)(this.url,e)}catch(t){(0,p.QP)(t)}if(!a||!(0,d.b8)(a,r.portal.url))return this._fetchFallbackUserPrivileges(e);try{const t=null!=e?e.signal:null;o=await(s.id?.getCredential(`${a}/sharing`,{prompt:!1,signal:t}))}catch(t){(0,p.QP)(t)}const l=!0,u=!1,h=!1;if(!o)return{features:{edit:l,fullEdit:u},content:{updateItem:h}};try{if(i?await r.reload():(r=new y.default({id:t,portal:{url:a}}),await r.load(e)),r.portal.user)return this._getUserPrivileges(r,n)}catch(t){(0,p.QP)(t)}return{features:{edit:l,fullEdit:u},content:{updateItem:h}}}_getUserPrivileges(t,e){const r=(0,M.It)(t);return e&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(t){let e=!0;try{e=await this._fetchUserHasEditingPrivileges(t)}catch(t){(0,p.QP)(t)}return{features:{edit:e,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(t){const e=this.url?s.id?.findCredential(this.url):null;if(!e)return!0;const r=b.credential===e?b.user:await this._fetchEditingUser(t);return b.credential=e,b.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(t){const e=this.portalItem?.portal?.user;if(e)return e;const r=s.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const n=`${r.owningSystemUrl}/sharing/rest`,i=m.A.getDefault();if(i&&i.loaded&&(0,d.S8)(i.restUrl)===(0,d.S8)(n))return i.user;const l=`${n}/community/self`,u=null!=t?t.signal:null,h=await(0,o.Ke)((0,a.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return h.ok?v.A.fromJSON(h.value.data):null}read(t,e){e&&(e.layer=this),super.read(t,e)}write(t,e){const r=e?.portal,n=this.portalItem?.id&&(this.portalItem.portal||m.A.getDefault());return r&&n&&!(0,d.ut)(n.restUrl,r.restUrl)?(e.messages&&e.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(t,{...e,layer:this})}};return(0,n.Cg)([(0,f.MZ)({type:y.default})],S.prototype,"portalItem",null),(0,n.Cg)([(0,w.w)("web-document","portalItem",["itemId"])],S.prototype,"readPortalItem",null),(0,n.Cg)([(0,A.K)("web-document","portalItem",{itemId:{type:String}})],S.prototype,"writePortalItem",null),(0,n.Cg)([(0,f.MZ)({clonable:!1})],S.prototype,"resourceReferences",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasEditingPrivileges",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasFullEditingPrivileges",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],S.prototype,"userHasUpdateItemPrivileges",void 0),S=(0,n.Cg)([(0,f.$K)("esri.layers.mixins.PortalLayer")],S),S}])},25036(t,e,r){var n=r(32198),i=r(91429);r.d(e,["j",0,t=>{const e=t;let r=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const t={minScale:this.minScale,maxScale:this.maxScale},e=this.parent;void 0!==e?.effectiveScaleRange&&function(t,e){t.minScale=t.minScale>0?e.minScale>0?Math.min(t.minScale,e.minScale):t.minScale:e.minScale,t.maxScale=t.maxScale>0?e.maxScale>0?Math.max(t.maxScale,e.maxScale):t.maxScale:e.maxScale}(t,e.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===t.minScale&&r.maxScale===t.maxScale?r:t}};return(0,n.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"minScale",void 0),(0,n.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"maxScale",void 0),(0,n.Cg)([(0,i.MZ)({readOnly:!0})],r.prototype,"effectiveScaleRange",null),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.ScaleRangeLayer")],r),r}])},88546(t,e,r){r.d(e,{_8:()=>m,uB:()=>y});var n=r(34727),i=r(35522),s=r(51850),a=r(73941),o=r(5443),l=r(54239),u=r(16930),h=r(9762);const c=new u.A({wkid:4326,vcsWkid:115700}),p=new o.A(-180,-90,180,90,c);function d(t,e){if(!Array.isArray(t)||t.length<e)return!1;for(const e of t)if("number"!=typeof e)return!1;return!0}const f=7645211,g={xmin:-180,ymin:-90,zmin:-450,xmax:180,ymax:90,zmax:8850};function m(t){return!(!(t.extensions?.ESRI_crs?.wkid||t.extensions?.ESRI_crs?.latestWkid||t.extensions?.ESRI_crs?.wkt)||!t.root?.extensions?.ESRI_crs?.boundingVolume?.box&&!t.root?.extensions?.ESRI_crs?.boundingVolume?.sphere)}function y(t,e=!1){let r=new u.A({wkid:4326,vcsWkid:115700}),l=t.root?.boundingVolume,c=!1,p=t?.root?.transform;if(e&&(t.extensions?.ESRI_crs?.wkid||t.extensions?.ESRI_crs?.latestWkid||t.extensions?.ESRI_crs?.wkt)&&(t.root?.extensions?.ESRI_crs?.boundingVolume?.box||t.root?.extensions?.ESRI_crs?.boundingVolume?.sphere))r=new u.A(t.extensions?.ESRI_crs),l=t.root?.extensions?.ESRI_crs?.boundingVolume,p=t.root?.transform,c=!0;else if(!l)return new o.A(-180,-90,180,90,r);if(l.box){const t=l?.box;if(t[3]>f&&t[7]>f&&t[11]>f)return new o.A({...g,spatialReference:r})}const m=(0,s.vt)();if(!c&&l.region&&d(l.region,6)){const t=l.region,e=(0,n.KJ)(t[0]),i=(0,n.KJ)(t[1]),s=t[4],a=(0,n.KJ)(t[2]),u=(0,n.KJ)(t[3]),h=t[5];return new o.A({xmin:e,ymin:i,zmin:s,xmax:a,ymax:u,zmax:h,spatialReference:r})}if(l.sphere&&d(l.sphere,4)){const t=l.sphere,e=(0,s.fA)(t[0],t[1],t[2]),n=t[3]/Math.sqrt(3),f=(0,s.vt)();(0,i.Re)(f,e,(0,s.fA)(n,n,n));const g=(0,s.vt)();if((0,i.WQ)(g,e,(0,s.fA)(n,n,n)),p&&d(p,16)){const t=p;(0,i.Z0)(m,f,t),(0,i.C)(f,m),(0,i.Z0)(m,g,t),(0,i.C)(g,m)}c||((0,h.projectBuffer)(f,a.Ro,0,f,u.A.WGS84,0),(0,h.projectBuffer)(g,a.Ro,0,g,u.A.WGS84,0));const y=(0,s.vt)(),v=(0,s.vt)();return(0,i.jk)(y,f,g),(0,i.T9)(v,f,g),new o.A({xmin:y[0],ymin:y[1],zmin:y[2],xmax:v[0],ymax:v[1],zmax:v[2],spatialReference:r})}if(l.box&&d(l.box,12)){const t=l.box,e=(0,s.fA)(t[0],t[1],t[2]),n=(0,s.fA)(t[3],t[4],t[5]),f=(0,s.fA)(t[6],t[7],t[8]),g=(0,s.fA)(t[9],t[10],t[11]),m=[];for(let t=0;t<8;++t)m.push((0,s.vt)());if((0,i.WQ)(m[0],e,n),(0,i.WQ)(m[0],m[0],f),(0,i.WQ)(m[0],m[0],g),(0,i.jb)(m[1],e,n),(0,i.WQ)(m[1],m[1],f),(0,i.WQ)(m[1],m[1],g),(0,i.WQ)(m[2],e,n),(0,i.jb)(m[2],m[2],f),(0,i.WQ)(m[2],m[2],g),(0,i.jb)(m[3],e,n),(0,i.jb)(m[3],m[3],f),(0,i.WQ)(m[3],m[3],g),(0,i.WQ)(m[4],e,n),(0,i.WQ)(m[4],m[4],f),(0,i.jb)(m[4],m[4],g),(0,i.jb)(m[5],e,n),(0,i.WQ)(m[5],m[5],f),(0,i.jb)(m[5],m[5],g),(0,i.WQ)(m[6],e,n),(0,i.jb)(m[6],m[6],f),(0,i.jb)(m[6],m[6],g),(0,i.jb)(m[7],e,n),(0,i.jb)(m[7],m[7],f),(0,i.jb)(m[7],m[7],g),p&&d(p,16)){const t=p;for(let e=0;e<8;++e)(0,i.Z0)(m[e],m[e],t)}const y=(0,s.fA)(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE),v=(0,s.fA)(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE);for(let t=0;t<8;++t)c||(0,h.projectBuffer)(m[t],a.Ro,0,m[t],u.A.WGS84,0),(0,i.jk)(v,v,m[t]),(0,i.T9)(y,y,m[t]);return new o.A({xmin:v[0],ymin:v[1],zmin:v[2],xmax:y[0],ymax:y[1],zmax:y[2],spatialReference:r})}return new o.A(-180,-90,180,90,r)}new Map([[5773,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"EGM96_Geoid"})],[3855,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"EGM2008_Geoid"})],[115700,new l.A({heightModel:"ellipsoidal",heightUnit:"meters",vertCRS:"WGS_1984"})],[115701,new l.A({heightModel:"ellipsoidal",heightUnit:"meters",vertCRS:"ETRS_1989"})],[6360,new l.A({heightModel:"gravity-related-height",heightUnit:"us-feet",vertCRS:"NAVD88_height_(ftUS)"})],[7837,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"DHHN2016_(height)"})],[5709,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"NAP"})]]),r.d(e,["Zx",0,c,"zq",0,p])},10407(t,e,r){r.d(e,{It:()=>d,LG:()=>a,OM:()=>u,Sm:()=>h,Y:()=>o,bK:()=>l,sQ:()=>c});var n=r(99917),i=r(16930),s=r(28735);function a(t,e){if(!o(t,e)){const r=t.typeKeywords;r?r.push(e):t.typeKeywords=[e]}}function o(t,e){return!!t.typeKeywords?.includes(e)}function l(t){return o(t,p.HOSTED_SERVICE)}function u(t,e){const r=t.typeKeywords;if(r){const t=r.indexOf(e);t>-1&&r.splice(t,1)}}function h(t,e,r){r?a(t,e):u(t,e)}async function c(t){const e=t.clone().normalize();let r;if(e.length>1)for(const t of e)r?t.width>r.width&&(r=t):r=t;else r=e[0];return async function(t){const e=t.spatialReference;if(e.isWGS84)return t.clone();if(e.isWebMercator)return(0,s.ci)(t);const r=i.A.WGS84;return await(0,n.initializeProjection)(e,r),(0,n.project)(t,r)}(r)}const p={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function d(t){const{portal:e,isOrgItem:r,itemControl:n}=t,i=e.user?.privileges;let s=!i||i.includes("features:user:edit"),a=!!r&&!!i?.includes("features:user:fullEdit");const o="update"===n||"admin"===n;return o?a=s=!0:a&&(s=!0),{features:{edit:s,fullEdit:a},content:{updateItem:o}}}r.d(e,["mm",0,p])},24212(t,e,r){r.d(e,{$7:()=>l,B:()=>o,M7:()=>c,XF:()=>h,tW:()=>u,w7:()=>a});var n=r(56512),i=r(86211),s=r(16271);function a(t,e){return function(t,e){return e?.mode?e.mode:function(t){return t?p:d}(t).mode}(null==t||(t.hasZ??!1),e)}function o(t,e,r){return r&&r.mode!==e?`${t} only support ${e} elevation mode`:null}function l(t,e,r){return r?.mode===e?`${t} do not support ${e} elevation mode`:null}function u(t,e){return null!=e?.featureExpressionInfo&&"0"!==e.featureExpressionInfo.expression?`${t} do not support featureExpressionInfo`:null}function h(t,e){e&&t.warn(".elevationInfo=",e)}function c(t){return(t?.offset??0)*(0,s.Ao)(t?.unit)}(0,n.B)((t,e,r)=>{if(!t)return 0;if("decimal-degrees"===e)return 0;const n="unknown"!==e&&e?e:"meters",s=(0,i.mq)(r);return s?(0,i.oU)(t,n,s):0});const p={mode:"absolute-height",offset:0},d={mode:"on-the-ground",offset:null}},78553(t,e,r){r.d(e,{D:()=>s,p:()=>i});var n=r(56507);function i(t){const e=(0,n.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function s(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[765,8768],{60999(t,e,r){r.d(e,{DZ:()=>f,Ke:()=>d,Tj:()=>h,UT:()=>g,aD:()=>y,jJ:()=>u});var n=r(32198),i=r(69622),s=r(97768),a=r(17676),o=r(10107),l=r(64108);function u(t,e,r){return(0,a.Lx)(t.map((t,n)=>e.apply(r,[t,n])))}async function h(t,e,r){return(await(0,a.Lx)(t.map((t,n)=>e.apply(r,[t,n])))).map(t=>t.value)}function c(t){return{ok:!0,value:t}}function p(t){return{ok:!1,error:t}}async function d(t){if(null==t)return{ok:!1,error:new Error("no promise provided")};try{return c(await t)}catch(t){return p(t)}}async function f(t){try{return c(await t)}catch(t){return(0,a.QP)(t),p(t)}}function g(t,e){return new m(t,e)}let m=class extends i.A{get value(){return null!=(t=this._result)&&!0===t.ok?t.value:null;var t}get error(){return null!=(t=this._result)&&!1===t.ok?t.error:null;var t}get finished(){return null!=this._result}constructor(t,e){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,s.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=t(r),this.promise.then(t=>{this._result=c(t),this._cleanup()},t=>{this._result=p(t),this._cleanup()}),this._abortHandle=(0,a.u7)(e,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,s.xt)(this._abortHandle),this._abortController=null}};(0,n.Cg)([(0,o.MZ)()],m.prototype,"value",null),(0,n.Cg)([(0,o.MZ)()],m.prototype,"error",null),(0,n.Cg)([(0,o.MZ)()],m.prototype,"finished",null),(0,n.Cg)([(0,o.MZ)()],m.prototype,"promise",void 0),(0,n.Cg)([(0,o.MZ)()],m.prototype,"_result",void 0),m=(0,n.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],m);class y{constructor(){this._sequence=Promise.resolve()}async acquire(){let t;this._sequence=new Promise(e=>{t=this._sequence.then(()=>e,()=>e)});const e=await t;return{[Symbol.dispose]:e}}async run(t){const e={stack:[],error:void 0,hasError:!1};try{return(0,n.mS)(e,await this.acquire(),!1),await t()}catch(t){e.error=t,e.hasError=!0}finally{(0,n.hk)(e)}}}},35522(t,e,r){r.d(e,{$A:()=>C,Bw:()=>s,C:()=>a,Cc:()=>R,DI:()=>S,Io:()=>v,Ln:()=>y,Om:()=>_,Qr:()=>c,Re:()=>u,S8:()=>b,T9:()=>g,WQ:()=>l,Z0:()=>x,_S:()=>d,aI:()=>L,ei:()=>P,fw:()=>E,gL:()=>I,hG:()=>M,hZ:()=>o,hs:()=>m,jk:()=>f,lw:()=>h,m3:()=>w,oW:()=>O,t2:()=>k,tn:()=>p,ze:()=>A});var n=r(51850),i=r(34304);function s(t){const e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function o(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}function l(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}function u(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}function h(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}function c(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}function p(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function d(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function f(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t}function g(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t}function m(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}function y(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t}function v(t,e){const r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(r*r+n*n+i*i)}function M(t,e){const r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return r*r+n*n+i*i}function w(t){const e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}function A(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function S(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function b(t,e){const r=e[0],n=e[1],i=e[2];let s=r*r+n*n+i*i;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s),t}function _(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function C(t,e,r){const n=e[0],i=e[1],s=e[2],a=r[0],o=r[1],l=r[2];return t[0]=i*l-s*o,t[1]=s*a-n*l,t[2]=n*o-i*a,t}function R(t,e,r,n){const i=e[0],s=e[1],a=e[2];return t[0]=i+n*(r[0]-i),t[1]=s+n*(r[1]-s),t[2]=a+n*(r[2]-a),t}function x(t,e,r){const n=e[0],i=e[1],s=e[2];return t[0]=r[0]*n+r[4]*i+r[8]*s+r[12],t[1]=r[1]*n+r[5]*i+r[9]*s+r[13],t[2]=r[2]*n+r[6]*i+r[10]*s+r[14],t}function P(t,e,r){const n=e[0],i=e[1],s=e[2];return t[0]=n*r[0]+i*r[3]+s*r[6],t[1]=n*r[1]+i*r[4]+s*r[7],t[2]=n*r[2]+i*r[5]+s*r[8],t}function I(t,e,r){return E(t,e,r[0],r[1],r[2],r[3])}function E(t,e,r,n,i,s){const a=e[0],o=e[1],l=e[2],u=n*l-i*o,h=i*a-r*l,c=r*o-n*a,p=n*c-i*h,d=i*u-r*c,f=r*h-n*u,g=2*s;return t[0]=a+u*g+2*p,t[1]=o+h*g+2*d,t[2]=l+c*g+2*f,t}const U=(0,n.vt)(),Z=(0,n.vt)();function k(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function L(t,e){if(t===e)return!0;const r=t[0],n=t[1],s=t[2],a=e[0],o=e[1],l=e[2],u=(0,i.FD)();return Math.abs(r-a)<=u*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(n-o)<=u*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(s-l)<=u*Math.max(1,Math.abs(s),Math.abs(l))}function O(t,e,r){const n=r[0]-e[0],i=r[1]-e[1],s=r[2]-e[2];let a=n*n+i*i+s*s;return a>0?(a=1/Math.sqrt(a),t[0]=n*a,t[1]=i*a,t[2]=s*a,t):(t[0]=0,t[1]=0,t[2]=0,t)}const T=u,j=h,H=c,K=v,G=M,W=s,$=w;Object.freeze(Object.defineProperty({__proto__:null,abs:p,add:l,angle:function(t,e){b(U,t),b(Z,e);const r=_(U,Z);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(t,e,r,n,i,s){const a=1-s,o=a*a,l=s*s,u=o*a,h=3*s*o,c=3*l*a,p=l*s;return t[0]=e[0]*u+r[0]*h+n[0]*c+i[0]*p,t[1]=e[1]*u+r[1]*h+n[1]*c+i[1]*p,t[2]=e[2]*u+r[2]*h+n[2]*c+i[2]*p,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,r=1){return t[0]=Math.min(Math.max(t[0],e),r),t[1]=Math.min(Math.max(t[1],e),r),t[2]=Math.min(Math.max(t[2],e),r),t},copy:a,cross:C,crossAndNormalize:function(t,e,r){const n=e[0],i=e[1],s=e[2],a=r[0],o=r[1],l=r[2],u=i*l-s*o,h=s*a-n*l,c=n*o-i*a,p=Math.sqrt(u*u+h*h+c*c);return t[0]=u/p,t[1]=h/p,t[2]=c/p,t},direction:O,dist:K,distance:v,div:H,divide:c,dot:_,equals:L,exactEquals:k,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,r,n,i,s){const a=s*s,o=a*(2*s-3)+1,l=a*(s-2)+s,u=a*(s-1),h=a*(3-2*s);return t[0]=e[0]*o+r[0]*l+n[0]*u+i[0]*h,t[1]=e[1]*o+r[1]*l+n[1]*u+i[1]*h,t[2]=e[2]*o+r[2]*l+n[2]*u+i[2]*h,t},inverse:S,len:W,length:s,lerp:R,max:g,min:f,mul:j,multiply:h,negate:A,normalize:b,random:function(t,e=1){const r=i.Ov,n=2*r()*Math.PI,s=2*r()-1,a=Math.sqrt(1-s*s)*e;return t[0]=Math.cos(n)*a,t[1]=Math.sin(n)*a,t[2]=s*e,t},rotateX:function(t,e,r,n){const i=[],s=[];return i[0]=e[0]-r[0],i[1]=e[1]-r[1],i[2]=e[2]-r[2],s[0]=i[0],s[1]=i[1]*Math.cos(n)-i[2]*Math.sin(n),s[2]=i[1]*Math.sin(n)+i[2]*Math.cos(n),t[0]=s[0]+r[0],t[1]=s[1]+r[1],t[2]=s[2]+r[2],t},rotateY:function(t,e,r,n){const i=[],s=[];return i[0]=e[0]-r[0],i[1]=e[1]-r[1],i[2]=e[2]-r[2],s[0]=i[2]*Math.sin(n)+i[0]*Math.cos(n),s[1]=i[1],s[2]=i[2]*Math.cos(n)-i[0]*Math.sin(n),t[0]=s[0]+r[0],t[1]=s[1]+r[1],t[2]=s[2]+r[2],t},rotateZ:function(t,e,r,n){const i=[],s=[];return i[0]=e[0]-r[0],i[1]=e[1]-r[1],i[2]=e[2]-r[2],s[0]=i[0]*Math.cos(n)-i[1]*Math.sin(n),s[1]=i[0]*Math.sin(n)+i[1]*Math.cos(n),s[2]=i[2],t[0]=s[0]+r[0],t[1]=s[1]+r[1],t[2]=s[2]+r[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:m,scaleAndAdd:y,scaleTo:function(t,e){return m(t,t,e/W(t))},set:o,sign:d,sqrDist:G,sqrLen:$,squaredDistance:M,squaredLength:w,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:T,subtract:u,transformMat3:P,transformMat4:x,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:I,transformQuatValues:E},Symbol.toStringTag,{value:"Module"})),r.d(e,["Il",0,W,"jb",0,T,"lo",0,G,"uE",0,$])},56512(t,e,r){function n(t){let e,r,n=[],i=!1;return function(...s){return i&&e===this&&function(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r])return!1;return!0}(s,n)||(r=t.apply(this,s),e=this,n=s,i=!0),r}}r.d(e,{B:()=>n})},54239(t,e,r){r.d(e,{A:()=>y});var n,i=r(32198),s=r(4576),a=r(66552),o=r(25482),l=r(86211),u=r(67076),h=r(91429),c=r(97348),p=r(43937),d=r(36005);const f=(0,a.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),g=f.jsonValues.slice();(0,s.Xy)(g,"orthometric");const m=(0,a.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let y=n=class extends o.o{constructor(t){super(t),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(t,e,r){return f.write(t,e,r)}readHeightModel(t,e,r){return f.read(t)||(r?.messages&&r.messages.push(function(t,e){return new u.A("height-model:unsupported",`Height model of value '${t}' is not supported`,e)}(t,{context:r})),null)}readHeightUnit(t,e,r){return m.read(t)||(r?.messages&&r.messages.push(v(t,{context:r})),null)}readHeightUnitService(t,e,r){return(0,l.LA)(t)||m.read(t)||(r?.messages&&r.messages.push(v(t,{context:r})),null)}readVertCRS(t,e){return e.vertCRS||e.ellipsoid||e.geoid}clone(){return new n({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(t){return!!t&&(this===t||this.heightModel===t.heightModel&&this.heightUnit===t.heightUnit&&this.vertCRS===t.vertCRS)}static deriveUnitFromSR(t,e){const r=(0,l.k1)(e);return new n({heightModel:t.heightModel,heightUnit:r??void 0,vertCRS:t.vertCRS})}static fromSpatialReference(t){const{latestVcsWkid:e,vcsWkid:r}=t;if(!r)return null;const i=(null!=e?c.B.get(e):null)??c.B.get(r);return i?new n({heightModel:0===i.type?"gravity-related-height":"ellipsoidal",heightUnit:(0,l.LA)(i.unit.name),vertCRS:i.datum}):null}write(t,e){return e={origin:"web-scene",...e},super.write(t,e)}static fromJSON(t){if(!t)return null;const e=new n;return e.read(t,{origin:"web-scene"}),e}};function v(t,e){return new u.A("height-unit:unsupported",`Height unit of value '${t}' is not supported`,e)}(0,i.Cg)([(0,h.MZ)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g,default:"ellipsoidal",write:{isRequired:!0}}}}})],y.prototype,"heightModel",void 0),(0,i.Cg)([(0,p.K)("web-scene","heightModel")],y.prototype,"writeHeightModel",null),(0,i.Cg)([(0,d.w)(["web-scene","service"],"heightModel")],y.prototype,"readHeightModel",null),(0,i.Cg)([(0,h.MZ)({type:m.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m.jsonValues,write:{writer:m.write,isRequired:!0}}}}})],y.prototype,"heightUnit",void 0),(0,i.Cg)([(0,d.w)("web-scene","heightUnit")],y.prototype,"readHeightUnit",null),(0,i.Cg)([(0,d.w)("service","heightUnit")],y.prototype,"readHeightUnitService",null),(0,i.Cg)([(0,h.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],y.prototype,"vertCRS",void 0),(0,i.Cg)([(0,d.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],y.prototype,"readVertCRS",null),y=n=(0,i.Cg)([(0,h.$K)("esri.geometry.HeightModelInfo")],y)},48526(t,e,r){r.d(e,{A:()=>m});var n,i=r(32198),s=r(4576),a=r(4718),o=r(91429),l=r(5443),u=r(91075),h=r(86738),c=r(16930),p=r(90634),d=r(47610),f=r(56993),g=r(43937);let m=n=class extends u.A{constructor(t){super(function(t){if(!t)return;let{points:e,hasM:r,hasZ:n,spatialReference:i}=t;switch(e??=[],e?.at(0)?.length){case 4:n??=!0,r??=!0;break;case 3:n??=!0!==r,r??=!n;break;default:n??=!1,r??=!1}return i??=c.A.WGS84,{...t,hasM:r,hasZ:n,points:e,spatialReference:i}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const t=(0,p.ge)(this);return t?new l.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,a.o8)(this.points)}clone(){const{points:t,spatialReference:e,hasM:r,hasZ:i}=this;return new n({points:(0,a.o8)(t),spatialReference:e.clone(),hasM:r,hasZ:i})}equals(t){if(this===t)return!0;if(null==t)return!1;const e=this.spatialReference,r=t.spatialReference;return null!=e==(null!=r)&&!(null!=e&&null!=r&&!e.equals(r))&&(0,s.aI)(this.points,t.points,d.v6)}addPoint(t){return(0,f.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;const e=this.points[t],r={x:e[0],y:e[1],spatialReference:this.spatialReference};let n=2;return this.hasZ&&(r.z=e[2],n=3),this.hasM&&(r.m=e[n]),new h.A(r)}removePoint(t){if(!this._validateInputs(t))return null;const e=new h.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),e}setPoint(t,e){return this._validateInputs(t)?((0,f.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.points[t]=e,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"extent",null),(0,i.Cg)([(0,o.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],m.prototype,"points",void 0),(0,i.Cg)([(0,g.K)("points")],m.prototype,"writePoints",null),m=n=(0,i.Cg)([(0,o.$K)("esri.geometry.Multipoint")],m),m.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,r){r.d(e,{A:()=>f});var n,i=r(32198),s=r(4718),a=r(91429),o=r(5443),l=r(91075),u=r(86738),h=r(16930),c=r(90634),p=r(56993),d=r(43937);let f=n=class extends l.A{constructor(t){super(function(t){if(!t)return;let{paths:e,hasM:r,hasZ:n,spatialReference:i}=t;switch(e??=[],function(t){return"number"==typeof t[0]?.[0]}(e)&&(e=[e]),e[0]?.[0]?.length){case 4:n??=!0,r??=!0;break;case 3:n??=!0!==r,r??=!n;break;default:n??=!1,r??=!1}return i??=h.A.WGS84,{...t,hasM:r,hasZ:n,paths:e,spatialReference:i}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,e){e.curvePaths=(0,s.o8)(t)}get extent(){const t=(0,c.Z3)(this),{spatialReference:e}=this;return t?new o.A({...t,spatialReference:e}):null}writePaths(t,e){e.paths=(0,s.o8)(this.paths)}addPath(t){if(!t)return;const e=this.paths,r=e.length;if(function(t){return!Array.isArray(t[0])}(t)){const n=[];for(let e=0,r=t.length;e<r;e++)n[e]=t[e].toArray();e[r]=n}else e[r]=t.slice();return this.notifyChange("paths"),this}clone(){const t=new n;return t.spatialReference=this.spatialReference,t.paths=(0,s.o8)(this.paths),t.curvePaths=(0,s.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,e){if(!this._validateInputs(t,e))return null;const r=this.paths[t][e],n=this.hasZ,i=this.hasM;return n&&!i?new u.A(r[0],r[1],r[2],void 0,this.spatialReference):i&&!n?new u.A(r[0],r[1],void 0,r[2],this.spatialReference):n&&i?new u.A(r[0],r[1],r[2],r[3],this.spatialReference):new u.A(r[0],r[1],this.spatialReference)}insertPoint(t,e,r){return this._validateInputs(t,e,!0)?((0,p.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[t].splice(e,0,r),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;const e=this.paths.splice(t,1)[0],r=this.spatialReference,n=e.map(t=>new u.A(t,r));return this.notifyChange("paths"),n}removePoint(t,e){if(!this._validateInputs(t,e))return null;const r=new u.A(this.paths[t].splice(e,1)[0],this.spatialReference);return this.notifyChange("paths"),r}setPoint(t,e,r){return this._validateInputs(t,e)?((0,p.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[t][e]=r,this.notifyChange("paths"),this):this}_validateInputs(t,e,r=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=e){const n=this.paths[t];if(r&&(e<0||e>n.length))return!1;if(!r&&(e<0||e>=n.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,i.Cg)([(0,a.MZ)({readOnly:!0})],f.prototype,"cache",null),(0,i.Cg)([(0,a.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],f.prototype,"curvePaths",void 0),(0,i.Cg)([(0,d.K)("curvePaths")],f.prototype,"writeCurvePaths",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],f.prototype,"extent",null),(0,i.Cg)([(0,a.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],f.prototype,"paths",void 0),(0,i.Cg)([(0,d.K)("paths")],f.prototype,"writePaths",null),f=n=(0,i.Cg)([(0,a.$K)("esri.geometry.Polyline")],f),f.prototype.toJSON.isDefaultToJSON=!0},60408(t,e,r){function n(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function i(t){return void 0!==t.points}function s(t){return void 0!==t.x&&void 0!==t.y}function a(t){return void 0!==t.paths||void 0!==t.curvePaths}function o(t){return void 0!==t.rings||void 0!==t.curveRings}function l(t){return"object"==typeof t&&"vertexAttributes"in t}function u(t){return t?s(t)?"esriGeometryPoint":a(t)?"esriGeometryPolyline":o(t)?"esriGeometryPolygon":n(t)?"esriGeometryEnvelope":i(t)?"esriGeometryMultipoint":null:null}function h(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function c(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}r.d(e,{$B:()=>u,Bi:()=>o,Pv:()=>h,Rg:()=>a,U9:()=>i,W0:()=>c,ZC:()=>n,fT:()=>s,uW:()=>l})},52136(t,e,r){var n=r(32198),i=r(91429);r.d(e,["p",0,t=>{const e=t;let r=class extends e{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(t){null!=t?this._override("apiKey",t):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,n.Cg)([(0,i.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.APIKeyMixin")],r),r}])},18768(t,e,r){var n=r(32198),i=r(53966),s=r(91429),a=r(60694);r.d(e,["b",0,t=>{const e=t;let r=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const t=(0,a.qg)(this.url);if(t?.title)return t.title}return this._get("title")||""}set title(t){this._set("title",t)}set url(t){this._set("url",(0,a.Jf)(t,i.A.getLogger(this)))}};return(0,n.Cg)([(0,s.MZ)()],r.prototype,"title",null),(0,n.Cg)([(0,s.MZ)({type:String})],r.prototype,"url",null),r=(0,n.Cg)([(0,s.$K)("esri.layers.mixins.ArcGISService")],r),r}])},69208(t,e,r){var n=r(32198),i=r(91429);r.d(e,["d",0,t=>{const e=t;let r=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,n.Cg)([(0,i.MZ)({type:Object,json:{write:{overridePolicy:t=>({enabled:!!(t&&Object.keys(t).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.CustomParametersMixin")],r),r}])},8303(t,e,r){var n=r(32198),i=r(92602),s=r(70333),a=r(11254),o=r(60999),l=r(49186),u=r(36563),h=r(53966),c=r(97768),p=r(17676),d=r(84952),f=r(91429),g=r(77548),m=r(20655),y=r(80812),v=r(41318),M=r(10407),w=r(36005),A=r(43937);const S={credential:null,user:null};r.d(e,["A",0,t=>{const e=t;let b=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(t){t!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",t))}readPortalItem(t,e,r){if(e.itemId)return new y.default({id:e.itemId,portal:r?.portal})}writePortalItem(t,e){t?.id&&(e.itemId=t.id)}async loadFromPortal(t,e){if(this.portalItem?.id)try{const{load:n}=await r.e(1204).then(()=>r(41204));return(0,p.Te)(e),await n({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap,populateGroupLayer:t.populateGroupLayer},e)}catch(t){throw(0,p.zf)(t)||h.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${t}`),t}}async reloadFromPortal(t){if(!this.loaded||!this.portalItem?.id)return!1;try{const{reload:e}=await r.e(1204).then(()=>r(41204)),n=new AbortController,i=(0,u.rE)(n);return this.addHandles(i,"reloadFromPortal"),await e({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap,populateGroupLayer:t.populateGroupLayer},{signal:n.signal})}catch(t){throw(0,p.zf)(t)||h.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${t}`),t}finally{this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(t){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(t).catch(t=>((0,p.QP)(t),!0)))}async setUserPrivileges(t,e){if(!i.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(e);if(this.url)try{const{features:{edit:r,fullEdit:n},content:{updateItem:i}}=await this._fetchUserPrivileges(t,e);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",n),this._set("userHasUpdateItemPrivileges",i)}catch(t){(0,p.QP)(t)}}async _fetchUserPrivileges(t,e){let r=this.portalItem;if(!t||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(e);const n=!s.id?.findCredential(this.url),i=t===r.id;if(i&&r.portal.user)return this._getUserPrivileges(r,n);let a,o;if(i)a=r.portal.url;else try{a=await(0,g.wI)(this.url,e)}catch(t){(0,p.QP)(t)}if(!a||!(0,d.b8)(a,r.portal.url))return this._fetchFallbackUserPrivileges(e);try{const t=null!=e?e.signal:null;o=await(s.id?.getCredential(`${a}/sharing`,{prompt:!1,signal:t}))}catch(t){(0,p.QP)(t)}const l=!0,u=!1,h=!1;if(!o)return{features:{edit:l,fullEdit:u},content:{updateItem:h}};try{if(i?await r.reload():(r=new y.default({id:t,portal:{url:a}}),await r.load(e)),r.portal.user)return this._getUserPrivileges(r,n)}catch(t){(0,p.QP)(t)}return{features:{edit:l,fullEdit:u},content:{updateItem:h}}}_getUserPrivileges(t,e){const r=(0,M.It)(t);return e&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(t){let e=!0;try{e=await this._fetchUserHasEditingPrivileges(t)}catch(t){(0,p.QP)(t)}return{features:{edit:e,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(t){const e=this.url?s.id?.findCredential(this.url):null;if(!e)return!0;const r=S.credential===e?S.user:await this._fetchEditingUser(t);return S.credential=e,S.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(t){const e=this.portalItem?.portal?.user;if(e)return e;const r=s.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const n=`${r.owningSystemUrl}/sharing/rest`,i=m.A.getDefault();if(i&&i.loaded&&(0,d.S8)(i.restUrl)===(0,d.S8)(n))return i.user;const l=`${n}/community/self`,u=null!=t?t.signal:null,h=await(0,o.Ke)((0,a.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return h.ok?v.A.fromJSON(h.value.data):null}read(t,e){e&&(e.layer=this),super.read(t,e)}write(t,e){const r=e?.portal,n=this.portalItem?.id&&(this.portalItem.portal||m.A.getDefault());return r&&n&&!(0,d.ut)(n.restUrl,r.restUrl)?(e.messages&&e.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(t,{...e,layer:this})}};return(0,n.Cg)([(0,f.MZ)({type:y.default})],b.prototype,"portalItem",null),(0,n.Cg)([(0,w.w)("web-document","portalItem",["itemId"])],b.prototype,"readPortalItem",null),(0,n.Cg)([(0,A.K)("web-document","portalItem",{itemId:{type:String}})],b.prototype,"writePortalItem",null),(0,n.Cg)([(0,f.MZ)({clonable:!1})],b.prototype,"resourceReferences",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],b.prototype,"userHasEditingPrivileges",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],b.prototype,"userHasFullEditingPrivileges",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],b.prototype,"userHasUpdateItemPrivileges",void 0),b=(0,n.Cg)([(0,f.$K)("esri.layers.mixins.PortalLayer")],b),b}])},25036(t,e,r){var n=r(32198),i=r(91429);r.d(e,["j",0,t=>{const e=t;let r=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const t={minScale:this.minScale,maxScale:this.maxScale},e=this.parent;void 0!==e?.effectiveScaleRange&&function(t,e){t.minScale=t.minScale>0?e.minScale>0?Math.min(t.minScale,e.minScale):t.minScale:e.minScale,t.maxScale=t.maxScale>0?e.maxScale>0?Math.max(t.maxScale,e.maxScale):t.maxScale:e.maxScale}(t,e.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===t.minScale&&r.maxScale===t.maxScale?r:t}};return(0,n.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"minScale",void 0),(0,n.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],r.prototype,"maxScale",void 0),(0,n.Cg)([(0,i.MZ)({readOnly:!0})],r.prototype,"effectiveScaleRange",null),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.ScaleRangeLayer")],r),r}])},88546(t,e,r){r.d(e,{_8:()=>m,uB:()=>y});var n=r(34727),i=r(35522),s=r(51850),a=r(73941),o=r(5443),l=r(54239),u=r(16930),h=r(9762);const c=new u.A({wkid:4326,vcsWkid:115700}),p=new o.A(-180,-90,180,90,c);function d(t,e){if(!Array.isArray(t)||t.length<e)return!1;for(const e of t)if("number"!=typeof e)return!1;return!0}const f=7645211,g={xmin:-180,ymin:-90,zmin:-450,xmax:180,ymax:90,zmax:8850};function m(t){return!(!(t.extensions?.ESRI_crs?.wkid||t.extensions?.ESRI_crs?.latestWkid||t.extensions?.ESRI_crs?.wkt)||!t.root?.extensions?.ESRI_crs?.boundingVolume?.box&&!t.root?.extensions?.ESRI_crs?.boundingVolume?.sphere)}function y(t,e=!1){let r=new u.A({wkid:4326,vcsWkid:115700}),l=t.root?.boundingVolume,c=!1,p=t?.root?.transform;if(e&&(t.extensions?.ESRI_crs?.wkid||t.extensions?.ESRI_crs?.latestWkid||t.extensions?.ESRI_crs?.wkt)&&(t.root?.extensions?.ESRI_crs?.boundingVolume?.box||t.root?.extensions?.ESRI_crs?.boundingVolume?.sphere))r=new u.A(t.extensions?.ESRI_crs),l=t.root?.extensions?.ESRI_crs?.boundingVolume,p=t.root?.transform,c=!0;else if(!l)return new o.A(-180,-90,180,90,r);if(l.box){const t=l?.box;if(t[3]>f&&t[7]>f&&t[11]>f)return new o.A({...g,spatialReference:r})}const m=(0,s.vt)();if(!c&&l.region&&d(l.region,6)){const t=l.region,e=(0,n.KJ)(t[0]),i=(0,n.KJ)(t[1]),s=t[4],a=(0,n.KJ)(t[2]),u=(0,n.KJ)(t[3]),h=t[5];return new o.A({xmin:e,ymin:i,zmin:s,xmax:a,ymax:u,zmax:h,spatialReference:r})}if(l.sphere&&d(l.sphere,4)){const t=l.sphere,e=(0,s.fA)(t[0],t[1],t[2]),n=t[3]/Math.sqrt(3),f=(0,s.vt)();(0,i.Re)(f,e,(0,s.fA)(n,n,n));const g=(0,s.vt)();if((0,i.WQ)(g,e,(0,s.fA)(n,n,n)),p&&d(p,16)){const t=p;(0,i.Z0)(m,f,t),(0,i.C)(f,m),(0,i.Z0)(m,g,t),(0,i.C)(g,m)}c||((0,h.projectBuffer)(f,a.Ro,0,f,u.A.WGS84,0),(0,h.projectBuffer)(g,a.Ro,0,g,u.A.WGS84,0));const y=(0,s.vt)(),v=(0,s.vt)();return(0,i.jk)(y,f,g),(0,i.T9)(v,f,g),new o.A({xmin:y[0],ymin:y[1],zmin:y[2],xmax:v[0],ymax:v[1],zmax:v[2],spatialReference:r})}if(l.box&&d(l.box,12)){const t=l.box,e=(0,s.fA)(t[0],t[1],t[2]),n=(0,s.fA)(t[3],t[4],t[5]),f=(0,s.fA)(t[6],t[7],t[8]),g=(0,s.fA)(t[9],t[10],t[11]),m=[];for(let t=0;t<8;++t)m.push((0,s.vt)());if((0,i.WQ)(m[0],e,n),(0,i.WQ)(m[0],m[0],f),(0,i.WQ)(m[0],m[0],g),(0,i.jb)(m[1],e,n),(0,i.WQ)(m[1],m[1],f),(0,i.WQ)(m[1],m[1],g),(0,i.WQ)(m[2],e,n),(0,i.jb)(m[2],m[2],f),(0,i.WQ)(m[2],m[2],g),(0,i.jb)(m[3],e,n),(0,i.jb)(m[3],m[3],f),(0,i.WQ)(m[3],m[3],g),(0,i.WQ)(m[4],e,n),(0,i.WQ)(m[4],m[4],f),(0,i.jb)(m[4],m[4],g),(0,i.jb)(m[5],e,n),(0,i.WQ)(m[5],m[5],f),(0,i.jb)(m[5],m[5],g),(0,i.WQ)(m[6],e,n),(0,i.jb)(m[6],m[6],f),(0,i.jb)(m[6],m[6],g),(0,i.jb)(m[7],e,n),(0,i.jb)(m[7],m[7],f),(0,i.jb)(m[7],m[7],g),p&&d(p,16)){const t=p;for(let e=0;e<8;++e)(0,i.Z0)(m[e],m[e],t)}const y=(0,s.fA)(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE),v=(0,s.fA)(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE);for(let t=0;t<8;++t)c||(0,h.projectBuffer)(m[t],a.Ro,0,m[t],u.A.WGS84,0),(0,i.jk)(v,v,m[t]),(0,i.T9)(y,y,m[t]);return new o.A({xmin:v[0],ymin:v[1],zmin:v[2],xmax:y[0],ymax:y[1],zmax:y[2],spatialReference:r})}return new o.A(-180,-90,180,90,r)}new Map([[5773,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"EGM96_Geoid"})],[3855,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"EGM2008_Geoid"})],[115700,new l.A({heightModel:"ellipsoidal",heightUnit:"meters",vertCRS:"WGS_1984"})],[115701,new l.A({heightModel:"ellipsoidal",heightUnit:"meters",vertCRS:"ETRS_1989"})],[6360,new l.A({heightModel:"gravity-related-height",heightUnit:"us-feet",vertCRS:"NAVD88_height_(ftUS)"})],[7837,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"DHHN2016_(height)"})],[5709,new l.A({heightModel:"gravity-related-height",heightUnit:"meters",vertCRS:"NAP"})]]),r.d(e,["Zx",0,c,"zq",0,p])},10407(t,e,r){r.d(e,{It:()=>d,LG:()=>a,OM:()=>u,Sm:()=>h,Y:()=>o,bK:()=>l,sQ:()=>c});var n=r(99917),i=r(16930),s=r(28735);function a(t,e){if(!o(t,e)){const r=t.typeKeywords;r?r.push(e):t.typeKeywords=[e]}}function o(t,e){return!!t.typeKeywords?.includes(e)}function l(t){return o(t,p.HOSTED_SERVICE)}function u(t,e){const r=t.typeKeywords;if(r){const t=r.indexOf(e);t>-1&&r.splice(t,1)}}function h(t,e,r){r?a(t,e):u(t,e)}async function c(t){const e=t.clone().normalize();let r;if(e.length>1)for(const t of e)r?t.width>r.width&&(r=t):r=t;else r=e[0];return async function(t){const e=t.spatialReference;if(e.isWGS84)return t.clone();if(e.isWebMercator)return(0,s.ci)(t);const r=i.A.WGS84;return await(0,n.initializeProjection)(e,r),(0,n.project)(t,r)}(r)}const p={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function d(t){const{portal:e,isOrgItem:r,itemControl:n}=t,i=e.user?.privileges;let s=!i||i.includes("features:user:edit"),a=!!r&&!!i?.includes("features:user:fullEdit");const o="update"===n||"admin"===n;return o?a=s=!0:a&&(s=!0),{features:{edit:s,fullEdit:a},content:{updateItem:o}}}r.d(e,["mm",0,p])},24212(t,e,r){r.d(e,{$7:()=>l,B:()=>o,M7:()=>c,XF:()=>h,tW:()=>u,w7:()=>a});var n=r(56512),i=r(86211),s=r(16271);function a(t,e){return function(t,e){return e?.mode?e.mode:function(t){return t?p:d}(t).mode}(null==t||(t.hasZ??!1),e)}function o(t,e,r){return r&&r.mode!==e?`${t} only support ${e} elevation mode`:null}function l(t,e,r){return r?.mode===e?`${t} do not support ${e} elevation mode`:null}function u(t,e){return null!=e?.featureExpressionInfo&&"0"!==e.featureExpressionInfo.expression?`${t} do not support featureExpressionInfo`:null}function h(t,e){e&&t.warn(".elevationInfo=",e)}function c(t){return(t?.offset??0)*(0,s.Ao)(t?.unit)}(0,n.B)((t,e,r)=>{if(!t)return 0;if("decimal-degrees"===e)return 0;const n="unknown"!==e&&e?e:"meters",s=(0,i.mq)(r);return s?(0,i.oU)(t,n,s):0});const p={mode:"absolute-height",offset:0},d={mode:"on-the-ground",offset:null}},78553(t,e,r){r.d(e,{D:()=>s,p:()=>i});var n=r(56507);function i(t){const e=(0,n.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function s(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4674,8768],{18768(t,e,r){var s=r(32198),o=r(53966),i=r(91429),n=r(60694);r.d(e,["b",0,t=>{const e=t;let r=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const t=(0,n.qg)(this.url);if(t?.title)return t.title}return this._get("title")||""}set title(t){this._set("title",t)}set url(t){this._set("url",(0,n.Jf)(t,o.A.getLogger(this)))}};return(0,s.Cg)([(0,i.MZ)()],r.prototype,"title",null),(0,s.Cg)([(0,i.MZ)({type:String})],r.prototype,"url",null),r=(0,s.Cg)([(0,i.$K)("esri.layers.mixins.ArcGISService")],r),r}])},69208(t,e,r){var s=r(32198),o=r(91429);r.d(e,["d",0,t=>{const e=t;let r=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,s.Cg)([(0,o.MZ)({type:Object,json:{write:{overridePolicy:t=>({enabled:!!(t&&Object.keys(t).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,s.Cg)([(0,o.$K)("esri.layers.mixins.CustomParametersMixin")],r),r}])},8303(t,e,r){var s=r(32198),o=r(92602),i=r(70333),n=r(11254),a=r(60999),u=r(49186),p=r(36563),l=r(53966),d=r(97768),c=r(17676),y=r(84952),m=r(91429),f=r(77548),g=r(20655),h=r(80812),v=r(41318),C=r(10407),A=r(36005),I=r(43937);const w={credential:null,user:null};r.d(e,["A",0,t=>{const e=t;let P=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,d.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(t){t!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",t))}readPortalItem(t,e,r){if(e.itemId)return new h.default({id:e.itemId,portal:r?.portal})}writePortalItem(t,e){t?.id&&(e.itemId=t.id)}async loadFromPortal(t,e){if(this.portalItem?.id)try{const{load:s}=await r.e(1204).then(()=>r(41204));return(0,c.Te)(e),await s({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap,populateGroupLayer:t.populateGroupLayer},e)}catch(t){throw(0,c.zf)(t)||l.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${t}`),t}}async reloadFromPortal(t){if(!this.loaded||!this.portalItem?.id)return!1;try{const{reload:e}=await r.e(1204).then(()=>r(41204)),s=new AbortController,o=(0,p.rE)(s);return this.addHandles(o,"reloadFromPortal"),await e({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap,populateGroupLayer:t.populateGroupLayer},{signal:s.signal})}catch(t){throw(0,c.zf)(t)||l.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${t}`),t}finally{this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(t){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(t).catch(t=>((0,c.QP)(t),!0)))}async setUserPrivileges(t,e){if(!o.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(e);if(this.url)try{const{features:{edit:r,fullEdit:s},content:{updateItem:o}}=await this._fetchUserPrivileges(t,e);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",s),this._set("userHasUpdateItemPrivileges",o)}catch(t){(0,c.QP)(t)}}async _fetchUserPrivileges(t,e){let r=this.portalItem;if(!t||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(e);const s=!i.id?.findCredential(this.url),o=t===r.id;if(o&&r.portal.user)return this._getUserPrivileges(r,s);let n,a;if(o)n=r.portal.url;else try{n=await(0,f.wI)(this.url,e)}catch(t){(0,c.QP)(t)}if(!n||!(0,y.b8)(n,r.portal.url))return this._fetchFallbackUserPrivileges(e);try{const t=null!=e?e.signal:null;a=await(i.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:t}))}catch(t){(0,c.QP)(t)}const u=!0,p=!1,l=!1;if(!a)return{features:{edit:u,fullEdit:p},content:{updateItem:l}};try{if(o?await r.reload():(r=new h.default({id:t,portal:{url:n}}),await r.load(e)),r.portal.user)return this._getUserPrivileges(r,s)}catch(t){(0,c.QP)(t)}return{features:{edit:u,fullEdit:p},content:{updateItem:l}}}_getUserPrivileges(t,e){const r=(0,C.It)(t);return e&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(t){let e=!0;try{e=await this._fetchUserHasEditingPrivileges(t)}catch(t){(0,c.QP)(t)}return{features:{edit:e,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(t){const e=this.url?i.id?.findCredential(this.url):null;if(!e)return!0;const r=w.credential===e?w.user:await this._fetchEditingUser(t);return w.credential=e,w.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(t){const e=this.portalItem?.portal?.user;if(e)return e;const r=i.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const s=`${r.owningSystemUrl}/sharing/rest`,o=g.A.getDefault();if(o&&o.loaded&&(0,y.S8)(o.restUrl)===(0,y.S8)(s))return o.user;const u=`${s}/community/self`,p=null!=t?t.signal:null,l=await(0,a.Ke)((0,n.A)(u,{authMode:"no-prompt",query:{f:"json"},signal:p}));return l.ok?v.A.fromJSON(l.value.data):null}read(t,e){e&&(e.layer=this),super.read(t,e)}write(t,e){const r=e?.portal,s=this.portalItem?.id&&(this.portalItem.portal||g.A.getDefault());return r&&s&&!(0,y.ut)(s.restUrl,r.restUrl)?(e.messages&&e.messages.push(new u.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(t,{...e,layer:this})}};return(0,s.Cg)([(0,m.MZ)({type:h.default})],P.prototype,"portalItem",null),(0,s.Cg)([(0,A.w)("web-document","portalItem",["itemId"])],P.prototype,"readPortalItem",null),(0,s.Cg)([(0,I.K)("web-document","portalItem",{itemId:{type:String}})],P.prototype,"writePortalItem",null),(0,s.Cg)([(0,m.MZ)({clonable:!1})],P.prototype,"resourceReferences",void 0),(0,s.Cg)([(0,m.MZ)({type:Boolean,readOnly:!0})],P.prototype,"userHasEditingPrivileges",void 0),(0,s.Cg)([(0,m.MZ)({type:Boolean,readOnly:!0})],P.prototype,"userHasFullEditingPrivileges",void 0),(0,s.Cg)([(0,m.MZ)({type:Boolean,readOnly:!0})],P.prototype,"userHasUpdateItemPrivileges",void 0),P=(0,s.Cg)([(0,m.$K)("esri.layers.mixins.PortalLayer")],P),P}])},20557(t,e,r){r.d(e,{Fm:()=>u,Hz:()=>g,JQ:()=>f,JZ:()=>E,ND:()=>v,R_:()=>n,U9:()=>m,_h:()=>A,be:()=>d,fE:()=>y,fu:()=>o,nr:()=>h,oF:()=>i,qv:()=>S,rP:()=>c,rq:()=>p,z$:()=>l});const s=[["binary","application/octet-stream","bin",""]];function o(t,e){return null!=I(e.name,t?.supportedFormats??[])}function i(t,e){if(!t)return!1;const r=p(e,t.supportedFormats??[]);return null!=r&&t.editFormats.includes(r)}function n(t,e){return w(function(t,e){const r=t.toLowerCase();return C(e).find(t=>P(t)===r)}(t,e))}function a(t,e){return w(I(t,e))}function u(t,e){return P(A(t,e))}function p(t,e){return a(t.name,e)??n(t.type,e)}function l(t,e,r){return n(t,r)??a(e,r)}function d(t,e){if(!t||!A(t,e))return;const r=/^3d_(.+)$/iu.exec(t)?.[1]?.toLowerCase();return r||void 0}function c(t,e){return(t??[]).map(t=>d(t,e)).filter(t=>!!t)}function y(t,e){return w(e.find(r=>d(w(r),e)===t))}function m({supportedFormats:t}){return l("model/gltf-binary","glb",t)}function f(t){const e=m(t);return null!=e&&t.editFormats.includes(e)}function g(t){if(!t)return null;const e=m(t),r=function({supportedFormats:t}){return l("model/gltf+json","gltf",t)}(t);let s=null;for(const o of t.queryFormats){if(o===e)return o;o===r&&(s=o)}return s}function h({supportedFormats:t}){return l("application/esri3do-SR_world","wld",t)}function v({supportedFormats:t}){return l("application/esri3do-SR_prj","prj",t)}function C(t){return[...s,...t]}function A(t,e){return C(e).find(e=>w(e)===t)}function I(t,e){const r=t.toLowerCase();return C(e).find(t=>S(t).some(t=>r.endsWith(t)))}function w(t){return t?.[0]}function P(t){return t?.[1].toLowerCase()}function S(t){return t?.[2].split(",").map(t=>t.toLowerCase())??[]}function E(t){return t.tables?.find(t=>"assetMaps"===t.role)}},6666(t,e,r){r.d(e,{S$:()=>h,dw:()=>b});var s=r(4576),o=r(44208),i=r(50498),n=r(60694),a=r(20557);function u(t,e,r){return!!l(t,e,r)}function p(t,e,r){return l(t,e,r)}function l(t,e,r){return t&&t.hasOwnProperty(e)?t[e]:r}r(39516),r(30524),new WeakMap;const d={name:"supportsName",size:"supportsSize",contentType:"supportsContentType",keywords:"supportsKeywords",exifInfo:"supportsExifInfo"},c=["cubic-bezier","circular-arc","elliptic-arc"];function y(t){const e=t?.supportedSpatialAggregationStatistics?.map(t=>t.toLowerCase());return{envelope:!!e?.includes("envelopeaggregate"),centroid:!!e?.includes("centroidaggregate"),convexHull:!!e?.includes("convexhullaggregate")}}function m(t,e){const r=t?.supportedOperationsWithCacheHint?.map(t=>t.toLowerCase());return!!r?.includes(e.toLowerCase())}function f(t){const e=t?.supportedStatisticTypes?.map(t=>t.toLowerCase());return{count:!!e?.includes("count"),sum:!!e?.includes("sum"),min:!!e?.includes("min"),max:!!e?.includes("max"),avg:!!e?.includes("avg"),var:!!e?.includes("var"),stddev:!!e?.includes("stddev"),percentileContinuous:!!e?.includes("percentile_cont"),percentileDiscrete:!!e?.includes("percentile_disc"),envelope:!!e?.includes("envelopeaggregate"),centroid:!!e?.includes("centroidaggregate"),convexHull:!!e?.includes("convexhullaggregate")}}function g(t){const e=t?.supportedNormalizationTypes?.map(t=>t.toLowerCase());return{field:!!e?.includes("field"),log:!!e?.includes("log"),naturalLog:!!e?.includes("naturallog"),percentOfTotal:!!e?.includes("percentoftotal"),squareRoot:!!e?.includes("squareroot")}}function h(t,e){return{analytics:v(t),attachment:C(t),data:A(t),metadata:I(t),operations:w(t.capabilities,t,e),query:P(t,e),queryAttributeBins:T(t),queryRelated:S(t),queryTopFeatures:E(t),editing:R(t)}}function v(t){return{supportsCacheHint:m(t.advancedQueryCapabilities,"queryAnalytics")}}function C(t){const e=t.attachmentProperties,r={supportsName:!1,supportsSize:!1,supportsContentType:!1,supportsKeywords:!1,supportsExifInfo:!1,supportsCacheHint:m(t.advancedQueryCapabilities,"queryAttachments"),supportsOrderByFields:u(t.advancedQueryCapabilities,"supportsQueryAttachmentOrderByFields",!1),supportsResize:u(t,"supportsAttachmentsResizing",!1),supportsTypeWildcard:u(t.advancedQueryCapabilities,"supportsQueryAttachmentWithTypeWildcard",!1),supportsCountOnly:u(t.advancedQueryCapabilities,"supportsQueryAttachmentsCountOnly",!1)};return e&&Array.isArray(e)&&e.forEach(t=>{const e=d[t.name];e&&(r[e]=!!t.isEnabled)}),r}function A(t){const e=u(t.advancedQueryCapabilities,"supportsTrueCurve",!1),r=t.infoFor3D,s=r?.supportedFormats??[];return{isVersioned:u(t,"isDataVersioned",!1),isBranchVersioned:u(t,"isDataBranchVersioned",!1),queryFormats:r?(0,a.rP)(r.queryFormats,s):void 0,sourceFormats:r?(0,a.rP)(r.editFormats,s):void 0,supportsAttachment:u(t,"hasAttachments",!1),supportsM:u(t,"hasM",!1),supportsTrueCurve:e,supportedCurveTypes:F(t,e),supportsZ:u(t,"hasZ",!1)}}function I(t){return{supportsAdvancedFieldProperties:u(t,"supportsFieldDescriptionProperty",!1)}}function w(t,e,r){const s=(0,n.Wo)(r),o=t?.toLowerCase().split(",").map(t=>t.trim())??[],i=r?(0,n.qg)(r):null,a=o.includes("MapServer"===i?.serverType?"data":"query"),p=o.includes("editing")&&!e.datesInUnknownTimezone&&!(null!=r&&!0===e.uniqueIdInfo?.OIDFieldContainsHashValue);let l=p&&o.includes("create"),d=p&&o.includes("delete"),c=p&&o.includes("update");const y=o.includes("changetracking"),m=e.advancedQueryCapabilities;let f=u(e,"supportsExceedsLimitStatistics",!1);return s||u(m,"supportsUseEstimateForExceedsLimit",!1)||(f=!1),p&&!(l||d||c)&&(l=d=c=!0),{supportsCalculate:u(e,"supportsCalculate",!1),supportsTruncate:u(e,"supportsTruncate",!1),supportsValidateSql:u(e,"supportsValidateSql",!1),supportsAdd:l,supportsDelete:d,supportsEditing:p,supportsChangeTracking:y,supportsQuery:a,supportsQueryAnalytics:u(m,"supportsQueryAnalytic",!1),supportsQueryAttachments:u(m,"supportsQueryAttachments",!1),supportsQueryBins:u(m,"supportsQueryBins",!1)||!!e.queryBinsCapabilities,supportsQueryPivot:u(m,"supportsQueryPivot",!1),supportsQueryTopFeatures:u(m,"supportsTopFeaturesQuery",!1),supportsResizeAttachments:u(e,"supportsAttachmentsResizing",!1),supportsSync:o.includes("sync"),supportsUpdate:c,supportsExceedsLimitStatistics:f,supportsAsyncConvert3D:u(e,"supportsAsyncConvert3D",!1)}}function P(t,e){const r=t.advancedQueryCapabilities,s=t.ownershipBasedAccessControlForFeatures,i=t.archivingInfo,l=t.currentVersion,d=function(t,e){if(!t||!(0,o.A)("featurelayer-relative-time-queries-enabled"))return 0;const r=(0,n.uV)(t);return(0,n.Wo)(t)||r?(e??0)>0||r?(0,o.A)("featurelayer-relative-time-queries-bin-window-public")??1:(0,o.A)("featurelayer-relative-time-queries-bin-window-private")??60:0}(e,t.cacheMaxAge),c=e?.includes("MapServer"),f=!c||l>=(0,o.A)("mapserver-pbf-version-support"),g=(0,n.Wo)(e),h=new Set((t.supportedQueryFormats??"").split(",").map(t=>t.toLowerCase().trim())),v=f&&function(t){return!!(0,o.A)("featurelayer-pbf-true-curves")&&(t.supportedTrueCurvePbfFeatureEncodings??[]).includes("esriDefault")}(t);return{maxRecordCount:p(t,"maxRecordCount",void 0),maxRecordCountFactor:p(t,"maxRecordCountFactor",void 0),maxUniqueIDCount:p(t,"maxUniqueIDCount",void 0),relativeTimeBinWindow:d,standardMaxRecordCount:p(t,"standardMaxRecordCount",void 0),standardMaxRecordCountNoGeometry:p(t,"standardMaxRecordCountNoGeometry",void 0),supportedSpatialAggregationStatistics:y(r),supportsStatisticsAggregatedIds:u(t,"supportsAggIds",!1),supportsCacheHint:u(r,"supportsQueryWithCacheHint",!1)||m(r,"query"),supportsCentroid:u(r,"supportsReturningGeometryCentroid",!1),supportsCentroidOnDegeneratedQuantizedGeometry:g||null==e,supportsCompactGeometry:g,supportsCurrentUser:u(r,"supportsCurrentUserQueries",!1),supportsDefaultSpatialReference:u(r,"supportsDefaultSR",!1),supportsDegeneratedQuantizedGeometry:u(r,"supportsDegeneratedQuantizedGeometry",!1),supportsDisjointSpatialRelationship:u(r,"supportsDisjointSpatialRel",!1),supportsDistance:u(r,"supportsQueryWithDistance",!1),supportsOutDistance:u(r,"supportsOutDistance",!1),supportsDistinct:u(r,"supportsDistinct",t.supportsAdvancedQueries),supportsExtent:u(r,"supportsReturningQueryExtent",!1),supportsFormatPBF:f&&h.has("pbf"),supportsFormatPBFWithCurves:v,supportsFullTextSearch:u(r,"supportsFullTextSearch",!1),supportsGeometryProperties:u(r,"supportsReturningGeometryProperties",!1),supportsHavingClause:u(r,"supportsHavingClause",!1),supportsHistoricMoment:u(i,"supportsQueryWithHistoricMoment",!1),supportsMaxRecordCountFactor:u(r,"supportsMaxRecordCountFactor",!1),supportsOrderBy:u(r,"supportsOrderBy",t.supportsAdvancedQueries),supportsPagination:u(r,"supportsPagination",!1),supportsPaginationOnAggregatedQueries:u(r,"supportsPaginationOnAggregatedQueries",!1),supportsPercentileStatistics:u(r,"supportsPercentileStatistics",!1),supportsQuantization:u(t,"supportsCoordinatesQuantization",!1),supportsQuantizationEditMode:u(t,"supportsQuantizationEditMode",!1),supportsQueryByAnonymous:u(s,"allowAnonymousToQuery",!0),supportsQueryByOthers:u(s,"allowOthersToQuery",!0),supportsQueryGeometry:u(t,"supportsReturningQueryGeometry",!1),supportsResultType:u(r,"supportsQueryWithResultType",!1),supportsReturnMesh:!!(0,a.Hz)(t.infoFor3D),supportsReturnExceededLimitGeometries:u(t,"supportsReturnExceededLimitGeometries",!1),supportsSpatialAggregationStatistics:u(r,"supportsSpatialAggregationStatistics",!1),supportsSqlExpression:u(r,"supportsSqlExpression",!1),supportsStandardizedQueriesOnly:u(t,"useStandardizedQueries",!1),supportsStatistics:u(r,"supportsStatistics",t.supportsStatistics),supportsTopFeaturesQuery:u(r,"supportsTopFeaturesQuery",!1),supportsTrueCurve:u(r,"supportsTrueCurve",!1),tileMaxRecordCount:p(t,"tileMaxRecordCount",void 0)}}function S(t){const e=t.advancedQueryCapabilities,r=u(e,"supportsAdvancedQueryRelated",!1);return{supportsPagination:u(e,"supportsQueryRelatedPagination",!1),supportsCount:r,supportsOrderBy:r,supportsCacheHint:m(e,"queryRelated")}}function E(t){return{supportsCacheHint:m(t.advancedQueryCapabilities,"queryTopFilter")}}function T(t){const e=t?t.queryBinsCapabilities:void 0;return{supportsDate:u(e,"supportsDateBin",!1),supportsFixedInterval:u(e,"supportsFixedIntervalBin",!1),supportsAutoInterval:u(e,"supportsAutoIntervalBin",!1),supportsFixedBoundaries:u(e,"supportsFixedBoundariesBin",!1),supportsStackBy:u(e,"supportsStackBy",!1),supportsSplitBy:u(e,"supportsSplitBy",!1),supportsSnapToData:u(e,"supportsSnapToData",!1),supportsReturnFullIntervalBin:u(e,"supportsReturnFullIntervalBin",!1),supportsFirstDayOfWeek:u(e,"supportsFirstDayOfWeek",!1),supportsNormalization:u(e,"supportsNormalization",!1),supportedStatistics:f(e),supportedNormalizationTypes:g(e)}}function R(t){const e=t.ownershipBasedAccessControlForFeatures,r=t?t.advancedEditingCapabilities:void 0;return{supportsGeometryUpdate:u(t,"allowGeometryUpdates",!0),supportsGlobalId:u(t,"supportsApplyEditsWithGlobalIds",!1),supportsReturnServiceEditsInSourceSpatialReference:u(t,"supportsReturnServiceEditsInSourceSR",!1),supportsRollbackOnFailure:u(t,"supportsRollbackOnFailureParameter",!1),supportsTrueCurveUpdate:u(t,"allowTrueCurvesUpdates",!0),supportsTrueCurveUpdateByTrueCurveClientsOnly:u(t,"onlyAllowTrueCurveUpdatesByTrueCurveClients",!0),supportsUpdateWithoutM:u(t,"allowUpdateWithoutMValues",!1),supportsUploadWithItemId:u(t,"supportsAttachmentsByUploadId",!1),supportsDeleteByAnonymous:u(e,"allowAnonymousToDelete",!0),supportsDeleteByOthers:u(e,"allowOthersToDelete",!0),supportsUpdateByAnonymous:u(e,"allowAnonymousToUpdate",!0),supportsUpdateByOthers:u(e,"allowOthersToUpdate",!0),supportsAsyncApplyEdits:u(r,"supportsAsyncApplyEdits",!1),zDefault:p(t,"zDefault",void 0)}}function F(t,e){const r=t.supportedCurveTypes??t.advancedQueryCapabilities?.supportedCurveTypes;return Array.isArray(r)?r.map(t=>i.iI.fromJSON(t)).filter(s.Ru):e?c:[]}function b(t){return{operations:{supportsAppend:u(t,"supportsAppend",!1),supportsCoverageQuery:t?.playbackInfo?.klv["0601"]??!1,supportsExportClip:u(t,"supportsExportClip",!1),supportsExportFrameset:u(t,"supportsExportFrameset",!1),supportsMensuration:u(t,"supportsMensuration",!1),supportsPreviews:u(t,"supportsPreviews",!1),supportsUpdate:u(t,"supportsUpdate",!1)}}}},10407(t,e,r){r.d(e,{It:()=>y,LG:()=>n,OM:()=>p,Sm:()=>l,Y:()=>a,bK:()=>u,sQ:()=>d});var s=r(99917),o=r(16930),i=r(28735);function n(t,e){if(!a(t,e)){const r=t.typeKeywords;r?r.push(e):t.typeKeywords=[e]}}function a(t,e){return!!t.typeKeywords?.includes(e)}function u(t){return a(t,c.HOSTED_SERVICE)}function p(t,e){const r=t.typeKeywords;if(r){const t=r.indexOf(e);t>-1&&r.splice(t,1)}}function l(t,e,r){r?n(t,e):p(t,e)}async function d(t){const e=t.clone().normalize();let r;if(e.length>1)for(const t of e)r?t.width>r.width&&(r=t):r=t;else r=e[0];return async function(t){const e=t.spatialReference;if(e.isWGS84)return t.clone();if(e.isWebMercator)return(0,i.ci)(t);const r=o.A.WGS84;return await(0,s.initializeProjection)(e,r),(0,s.project)(t,r)}(r)}const c={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function y(t){const{portal:e,isOrgItem:r,itemControl:s}=t,o=e.user?.privileges;let i=!o||o.includes("features:user:edit"),n=!!r&&!!o?.includes("features:user:fullEdit");const a="update"===s||"admin"===s;return a?n=i=!0:n&&(i=!0),{features:{edit:i,fullEdit:n},content:{updateItem:a}}}r.d(e,["mm",0,c])}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7367],{87367(n,e,t){t.r(e),t.d(e,{registerFunctions:()=>g});var r=t(47609),a=t(67862),i=t(66395),s=t(85935),o=t(54639),l=t(78878),c=t(80672),u=t(38222),f=t(98919),d=t(71163),y=t(36983),w=t(70333),m=t(11254);async function p(n,e,t){const r=w.id?.findCredential(n.restUrl);if(!r)return null;if("loaded"===n.loadStatus&&""===e&&n.user?.sourceJSON&&!1===t)return n.user.sourceJSON;const a={responseType:"json",query:{f:"json"}};if(t&&(a.query.returnUserLicenseTypeExtensions=!0),""===e){const e=await(0,m.A)(n.restUrl+"/community/self",a);if(e.data){const n=e.data;if(n?.username)return n}return null}const i=await(0,m.A)(n.restUrl+"/community/users/"+e,a);if(i.data){const n=i.data;return n.error?null:n}return null}var h=t(54218);function R(n){if(null==n)return n;switch(typeof n){case"string":case"number":return n;default:throw new s.D$("InvalidParameter",null)}}function g(n){"async"===n.mode&&(n.functions.disjoint=function(e,t){return n.standardFunctionAsync(e,t,(n,e,r)=>(r=(0,l.H)(r),(0,f.ZL)(r,t),null===r[0]||null===r[1]||(0,d.C)("disjoint",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,o.b)(r[0].spatialReference)])))},n.functions.intersects=function(e,t){return n.standardFunctionAsync(e,t,(n,e,r)=>(r=(0,l.H)(r),(0,f.ZL)(r,t),null!==r[0]&&null!==r[1]&&(0,d.C)("intersects",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,o.b)(r[0].spatialReference)])))},n.functions.touches=function(e,t){return n.standardFunctionAsync(e,t,(n,e,r)=>(r=(0,l.H)(r),(0,f.ZL)(r,t),null!==r[0]&&null!==r[1]&&(0,d.C)("touches",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,o.b)(r[0].spatialReference)])))},n.functions.crosses=function(e,t){return n.standardFunctionAsync(e,t,(n,e,r)=>(r=(0,l.H)(r),(0,f.ZL)(r,t),null!==r[0]&&null!==r[1]&&(0,d.C)("crosses",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,o.b)(r[0].spatialReference)])))},n.functions.within=function(e,t){return n.standardFunctionAsync(e,t,(n,e,r)=>(r=(0,l.H)(r),(0,f.ZL)(r,t),null!==r[0]&&null!==r[1]&&(0,d.C)("within",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,o.b)(r[0].spatialReference)])))},n.functions.contains=function(e,t){return n.standardFunctionAsync(e,t,(n,e,r)=>(r=(0,l.H)(r),(0,f.ZL)(r,t),null!==r[0]&&null!==r[1]&&(0,d.C)("contains",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,o.b)(r[0].spatialReference)])))},n.functions.overlaps=function(e,t){return n.standardFunctionAsync(e,t,(n,e,r)=>(r=(0,l.H)(r),(0,f.ZL)(r,t),null!==r[0]&&null!==r[1]&&(0,d.C)("overlaps",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,o.b)(r[0].spatialReference)])))},n.functions.equals=function(e,t){return n.standardFunctionAsync(e,t,(n,e,r)=>((0,l.E)(r,2,2,t),r[0]===r[1]||((0,l.d)(r[0])&&(0,l.d)(r[1])?(0,d.C)("equals",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,o.b)(r[0].spatialReference)]):((0,l.f)(r[0])&&(0,l.f)(r[1])||!!((0,l.r)(r[0])&&(0,l.r)(r[1])||(0,l.q)(r[0])&&(0,l.q)(r[1])))&&r[0].equals(r[1]))))},n.functions.relate=function(e,t){return n.standardFunctionAsync(e,t,(n,e,r)=>{if(r=(0,l.H)(r),(0,l.E)(r,3,3,t),(0,l.d)(r[0])&&(0,l.d)(r[1]))return(0,d.C)("relate",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,o.b)(r[0].spatialReference),(0,l.w)(r[2])]);if((0,l.d)(r[0])&&null===r[1])return!1;if((0,l.d)(r[1])&&null===r[0])return!1;if(null===r[0]&&null===r[1])return!1;throw new s.D$("InvalidParameter",t)})},n.functions.intersection=function(e,t){return n.standardFunctionAsync(e,t,async(n,e,r)=>(r=(0,l.H)(r),(0,f.ZL)(r,t),null===r[0]||null===r[1]?null:(0,y.R)(await(0,d.C)("intersection",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,o.b)(r[0].spatialReference)]),r[0].spatialReference)))},n.functions.union=function(e,t){return n.standardFunctionAsync(e,t,async(n,e,r)=>{if(0===(r=(0,l.H)(r)).length)throw new s.D$("WrongNumberOfParameters",t);const a=[];if(1===r.length)if((0,h.cy)(r[0])){for(const n of(0,l.H)(r[0]))if(null!==n){if(!(0,l.d)(n))throw new s.D$("InvalidParameter",t);a.push(n)}}else{if(!(0,l.g)(r[0])){if((0,l.d)(r[0]))return r[0].clone();if(null===r[0])return null;throw new s.D$("InvalidParameter",t)}for(const n of(0,l.H)(r[0].toArray()))if(null!==n){if(!(0,l.d)(n))throw new s.D$("InvalidParameter",t);a.push(n)}}else for(const n of r)if(null!==n){if(!(0,l.d)(n))throw new s.D$("InvalidParameter",t);a.push(n)}if(0===a.length)return null;const i=a[0].spatialReference;return(0,y.R)(await(0,d.C)("union",[a.map(n=>n.asJsonGeometry()),(0,o.b)(i)]),i)})},n.functions.difference=function(e,t){return n.standardFunctionAsync(e,t,async(n,e,r)=>(r=(0,l.H)(r),(0,f.ZL)(r,t),null===r[0]?null:null===r[1]?r[0].clone():(0,y.R)(await(0,d.C)("difference",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,o.b)(r[0].spatialReference)]),r[0].spatialReference)))},n.functions.symmetricdifference=function(e,t){return n.standardFunctionAsync(e,t,async(n,e,r)=>(r=(0,l.H)(r),(0,f.ZL)(r,t),null===r[0]&&null===r[1]?null:null===r[0]?r[1]?.clone()??null:null===r[1]?r[0]?.clone()??null:(0,y.R)(await(0,d.C)("symmetricDifference",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,o.b)(r[0].spatialReference)]),r[0].spatialReference)))},n.functions.clip=function(e,t){return n.standardFunctionAsync(e,t,async(n,e,r)=>{if(r=(0,l.H)(r),(0,l.E)(r,2,2,t),!(0,l.J)(r[1])&&null!==r[1])throw new s.D$("InvalidParameter",t);if(null===r[0])return null;if(!(0,l.d)(r[0]))throw new s.D$("InvalidParameter",t);return null===r[1]?null:(0,y.R)(await(0,d.C)("clip",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,o.b)(r[0].spatialReference)]),r[0].spatialReference)})},n.functions.cut=function(e,t){return n.standardFunctionAsync(e,t,async(n,e,r)=>{if(r=(0,l.H)(r),(0,l.E)(r,2,2,t),!(0,l.K)(r[1])&&null!==r[1])throw new s.D$("InvalidParameter",t);if(null===r[0])return[];if(!(0,l.d)(r[0]))throw new s.D$("InvalidParameter",t);if(null===r[1])return[r[0].clone()];const a=r[0].spatialReference;return(await(0,d.C)("cut",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,o.b)(r[0].spatialReference)])).map(n=>(0,y.R)(n,a)).filter(n=>null!=n)})},n.functions.area=function(e,t){return n.standardFunctionAsync(e,t,async(n,r,a)=>{if((0,l.E)(a,1,2,t),a=(0,l.H)(a),(0,l.k)(a[0])){const n=await a[0].sumArea(R(a[1]),null,e.abortSignal);if(e.abortSignal.aborted)throw new s.D$("Cancelled",t);return n}let i=a[0];if(((0,h.cy)(i)||(0,l.g)(i))&&(i=(0,u.zt)(a[0],e.spatialReference)),null===i)return 0;if(!(0,l.d)(i))throw new s.D$("InvalidParameter",t);return(0,d.C)("area",[i.asJsonGeometry(),(0,o.b)(i.spatialReference),R(a[1])])})},n.functions.areageodetic=function(e,t){return n.standardFunctionAsync(e,t,async(n,r,a)=>{(0,l.E)(a,1,3,t);let i=(a=(0,l.H)(a))[0];((0,h.cy)(i)||(0,l.g)(i))&&(i=(0,u.zt)(i,e.spatialReference));const c=R(a[1]),y=(0,f.qr)(a[2]);if((0,l.k)(i)){const n=await i.sumArea(c,y,e.abortSignal);if(e.abortSignal.aborted)throw new s.D$("Cancelled",t);return n}if(null==i)return 0;if(!(0,l.d)(i))throw new s.D$("InvalidParameter",t);return(0,d.C)("geodeticArea",[i.asJsonGeometry(),(0,o.b)(i.spatialReference),c,y])})},n.functions.length=function(e,t){return n.standardFunctionAsync(e,t,async(n,r,a)=>{if((0,l.E)(a,1,2,t),a=(0,l.H)(a),(0,l.k)(a[0])){const n=await a[0].sumLength(R(a[1]),null,e.abortSignal);if(e.abortSignal.aborted)throw new s.D$("Cancelled",t);return n}let i=a[0];if(((0,h.cy)(a[0])||(0,l.g)(a[0]))&&(i=(0,u.X1)(a[0],e.spatialReference)),null===i)return 0;if(!(0,l.d)(i))throw new s.D$("InvalidParameter",t);return(0,d.C)("length",[i.asJsonGeometry(),(0,o.b)(i.spatialReference),R(a[1])])})},n.functions.length3d=function(e,r){return n.standardFunctionAsync(e,r,async(n,a,i)=>{if((0,l.E)(i,1,2,r),null===(i=(0,l.H)(i))[0])return 0;let c=i[0];if(((0,h.cy)(i[0])||(0,l.g)(i[0]))&&(c=(0,u.X1)(i[0],e.spatialReference)),null===c)return 0;if(!(0,l.d)(c))throw new s.D$("InvalidParameter",r);if(!0===c.hasZ){const{convertFromSpatialReferenceUnit:n,toLengthUnit:e}=await Promise.resolve().then(()=>t(40547)),r=(0,f.UI)(c);return n(c.spatialReference,e(i[1]),r)}return(0,d.C)("length",[c.asJsonGeometry(),(0,o.b)(c.spatialReference),R(i[1])])})},n.functions.lengthgeodetic=function(e,t){return n.standardFunctionAsync(e,t,async(n,r,a)=>{(0,l.E)(a,1,3,t);let i=(a=(0,l.H)(a))[0];((0,h.cy)(a[0])||(0,l.g)(a[0]))&&(i=(0,u.X1)(a[0],e.spatialReference));const c=R(a[1]),y=(0,f.qr)(a[2]);if((0,l.k)(i)){const n=await i.sumLength(c,y,e.abortSignal);if(e.abortSignal.aborted)throw new s.D$("Cancelled",t);return n}if(null===i)return 0;if(!(0,l.d)(i))throw new s.D$("InvalidParameter",t);return(0,d.C)("geodeticLength",[i.asJsonGeometry(),(0,o.b)(i.spatialReference),c,y])})},n.functions.distance=function(e,t){return n.standardFunctionAsync(e,t,async(n,r,a)=>{a=(0,l.H)(a),(0,l.E)(a,2,3,t);let i=a[0];if(((0,h.cy)(a[0])||(0,l.g)(a[0]))&&(i=(0,u.yg)(a[0],e.spatialReference)),!(0,l.d)(i))throw new s.D$("InvalidParameter",t);let c=a[1];if(((0,h.cy)(a[1])||(0,l.g)(a[1]))&&(c=(0,u.yg)(a[1],e.spatialReference)),!(0,l.d)(c))throw new s.D$("InvalidParameter",t);return(0,d.C)("distance",[i.asJsonGeometry(),c.asJsonGeometry(),(0,o.b)(i.spatialReference),R(a[2])])})},n.functions.distancegeodetic=function(e,t){return n.standardFunctionAsync(e,t,async(n,e,r)=>{r=(0,l.H)(r),(0,l.E)(r,2,4,t);const a=r[0];if(!(0,l.L)(a))throw new s.D$("InvalidParameter",t);const i=r[1];if(!(0,l.L)(i))throw new s.D$("InvalidParameter",t);return(0,d.C)("geodeticDistance",[a.asJsonGeometry(),i.asJsonGeometry(),(0,o.b)(a.spatialReference),R(r[2]),(0,f.qr)(r[3])])})},n.functions.densify=function(e,t){return n.standardFunctionAsync(e,t,async(n,e,r)=>{if(r=(0,l.H)(r),(0,l.E)(r,2,3,t),null===r[0])return null;if(!(0,l.d)(r[0]))throw new s.D$("InvalidParameter",t);const a=(0,l.v)(r[1]);if(isNaN(a))throw new s.D$("InvalidParameter",t);if(a<=0)throw new s.D$("InvalidParameter",t);switch(r[0].type){case"polygon":case"polyline":case"extent":return(0,y.R)(await(0,d.C)("densify",[r[0].asJsonGeometry(),(0,o.b)(r[0].spatialReference),a,R(r[2])]),r[0].spatialReference);default:return r[0]}})},n.functions.densifygeodetic=function(e,t){return n.standardFunctionAsync(e,t,async(n,e,r)=>{r=(0,l.H)(r),(0,l.E)(r,2,4,t);const a=r[0];if(null==a)return null;if(!(0,l.d)(a))throw new s.D$("InvalidParameter",t);const i=(0,l.v)(r[1]);if(isNaN(i))throw new s.D$("InvalidParameter",t);if(i<=0)throw new s.D$("InvalidParameter",t);const c=R(r[2]),u=(0,f.qr)(r[3]);switch(a.type){case"polygon":case"polyline":case"extent":return(0,y.R)(await(0,d.C)("geodeticDensify",[a.asJsonGeometry(),(0,o.b)(a.spatialReference),i,c,u]),a.spatialReference);default:return a}})},n.functions.generalize=function(e,t){return n.standardFunctionAsync(e,t,async(n,e,r)=>{if(r=(0,l.H)(r),(0,l.E)(r,2,4,t),null===r[0])return null;if(!(0,l.d)(r[0]))throw new s.D$("InvalidParameter",t);const a=(0,l.v)(r[1]);if(isNaN(a))throw new s.D$("InvalidParameter",t);const i=(0,l.M)((0,l.N)(r[2],!0));return(0,y.R)(await(0,d.C)("generalize",[r[0].asJsonGeometry(),(0,o.b)(r[0].spatialReference),a,R(r[3]),i]),r[0].spatialReference)})},n.functions.buffer=function(e,t){return n.standardFunctionAsync(e,t,async(n,e,r)=>{if(r=(0,l.H)(r),(0,l.E)(r,2,3,t),null===r[0])return null;if(!(0,l.d)(r[0]))throw new s.D$("InvalidParameter",t);const a=(0,l.v)(r[1]);if(isNaN(a))throw new s.D$("InvalidParameter",t);return 0===a?r[0].clone():(0,y.R)(await(0,d.C)("buffer",[r[0].asJsonGeometry(),(0,o.b)(r[0].spatialReference),a,R(r[2])]),r[0].spatialReference)})},n.functions.buffergeodetic=function(e,t){return n.standardFunctionAsync(e,t,async(n,e,r)=>{r=(0,l.H)(r),(0,l.E)(r,2,4,t);const a=r[0];if(null==a)return null;if(!(0,l.d)(a))throw new s.D$("InvalidParameter",t);const i=(0,l.v)(r[1]);if(isNaN(i))throw new s.D$("InvalidParameter",t);if(0===i)return a.clone();const c=R(r[2]),u=(0,f.qr)(r[3]);return(0,y.R)(await(0,d.C)("geodesicBuffer",[a.asJsonGeometry(),(0,o.b)(a.spatialReference),i,c,u]),a.spatialReference)})},n.functions.offset=function(e,t){return n.standardFunctionAsync(e,t,async(n,e,r)=>{r=(0,l.H)(r),(0,l.E)(r,2,6,t);const a=r[0];if(null===a)return null;if(!(0,l.d)(a)||"polygon"!==a.type&&"polyline"!==a.type)throw new s.D$("InvalidParameter",t);const i=(0,l.v)(r[1]);if(isNaN(i))throw new s.D$("InvalidParameter",t);const c=r[2],u=(0,f.ug)(r[3]),w=(0,l.v)((0,l.N)(r[4],10));if(isNaN(w))throw new s.D$("InvalidParameter",t);const m=(0,l.v)((0,l.N)(r[5],0));if(isNaN(m))throw new s.D$("InvalidParameter",t);return(0,y.R)(await(0,d.C)("offset",[a.asJsonGeometry(),(0,o.b)(a.spatialReference),i,R(c),u,w,m]),a.spatialReference)})},n.functions.rotate=function(e,t){return n.standardFunctionAsync(e,t,async(n,e,r)=>{r=(0,l.H)(r),(0,l.E)(r,2,3,t);const a=r[0];if(null===a)return null;if(!(0,l.d)(a))throw new s.D$("InvalidParameter",t);const i=(0,l.v)(r[1]);if(!Number.isFinite(i))throw new s.D$("InvalidParameter",t);const o=r[2];if(null!=o&&!(0,l.L)(o))throw new s.D$("InvalidParameter",t);const c=o?.asJsonLikeGeometry();return(0,y.R)(await(0,d.C)("rotate",[a.asJsonGeometry(),i,c?.x,c?.y]),a.spatialReference)})},n.functions.centroid=function(e,t){return n.standardFunctionAsync(e,t,async(n,r,a)=>{if(a=(0,l.H)(a),(0,l.E)(a,1,2,t),null===a[0])return null;const i=(0,f.Hz)(a[1]);let o=a[0];if(((0,h.cy)(a[0])||(0,l.g)(a[0]))&&(o="geometric"===i?(0,u.yg)(a[0],e.spatialReference):(0,u.zt)(a[0],e.spatialReference),null===o))return null;if(!(0,l.d)(o))throw new s.D$("InvalidParameter",t);return(0,y.p)("point","geometric"===i?await(0,d.C)("centroid",[o.asJsonGeometry()]):await(0,d.C)("labelPoint",[o.asJsonGeometry()]),o.spatialReference)})},n.functions.measuretocoordinate=function(e,t){return n.standardFunctionAsync(e,t,f.Cd)},n.functions.pointtocoordinate=function(e,t){return n.standardFunctionAsync(e,t,f.kr)},n.functions.distancetocoordinate=function(e,t){return n.standardFunctionAsync(e,t,f.Bn)},n.functions.multiparttosinglepart=function(e,t){return n.standardFunctionAsync(e,t,async(n,e,r)=>{if(r=(0,l.H)(r),(0,l.E)(r,1,1,t),null===r[0])return null;if(!(0,l.d)(r[0]))throw new s.D$("InvalidParameter",t);const a=r[0].spatialReference;return(await(0,d.C)("multiPartToSinglePart",[r[0].asJsonGeometry(),(0,o.b)(r[0].spatialReference)])).map(n=>(0,y.R)(n,a)).filter(n=>null!=n)})},n.functions.isselfintersecting=function(e,t){return n.standardFunctionAsync(e,t,async(n,e,t)=>{(0,l.E)(t,1,1,e);let r=(t=(0,l.H)(t))[0];return((0,h.cy)(t[0])||(0,l.g)(t[0]))&&(r=(0,u.X1)(t[0],n.spatialReference)),!!(0,l.d)(r)&&await(0,d.C)("isSelfIntersecting",[r.asJsonGeometry(),(0,o.b)(r.spatialReference)])})},n.functions.issimple=function(e,t){return n.standardFunctionAsync(e,t,(n,e,r)=>{if(r=(0,l.H)(r),(0,l.E)(r,1,1,t),null===r[0])return!0;if(!(0,l.d)(r[0]))throw new s.D$("InvalidParameter",t);return(0,d.C)("isSimple",[r[0].asJsonGeometry(),(0,o.b)(r[0].spatialReference)])})},n.functions.simplify=function(e,t){return n.standardFunctionAsync(e,t,async(n,e,r)=>{if(r=(0,l.H)(r),(0,l.E)(r,1,1,t),null===r[0])return null;if(!(0,l.d)(r[0]))throw new s.D$("InvalidParameter",t);return(0,y.R)(await(0,d.C)("simplify",[r[0].asJsonGeometry(),(0,o.b)(r[0].spatialReference)]),r[0].spatialReference)})},n.functions.convexhull=function(e,t){return n.standardFunctionAsync(e,t,async(n,e,r)=>{if(r=(0,l.H)(r),(0,l.E)(r,1,1,t),null===r[0])return null;if(!(0,l.d)(r[0]))throw new s.D$("InvalidParameter",t);return(0,y.R)(await(0,d.C)("convexHull",[r[0].asJsonGeometry()]),r[0].spatialReference)})},n.functions.getuser=function(e,t){return n.standardFunctionAsync(e,t,async(n,i,o)=>{(0,l.E)(o,0,2,t);let u=(0,l.N)(o[1],""),f=!0===u;if(u=!0===u||!1===u?"":(0,l.w)(u),0===o.length||o[0]instanceof r.A){const n=(0,c.RI)(e,o.length>0?o[0]:null),t=await p(n,u,f);return null!=t?(0,a.Tg)(JSON.parse(JSON.stringify(t))):null}let d=null;if((0,l.k)(o[0])&&(d=o[0]),d){if(f=!1,u)return null;await d.load();const n=await d.getOwningSystemUrl();if(!n){if(!u){const n=await d.getIdentityUser();return null!=n?(0,a.Tg)({username:n}):null}return null}const t=(0,c.RI)(e,new r.A(n)),i=await p(t,u,f);return null!=i?(0,a.Tg)(JSON.parse(JSON.stringify(i))):null}throw new s.D$("InvalidParameter",t)})},n.functions.nearestcoordinate=function(e,t){return n.standardFunctionAsync(e,t,async(n,e,r)=>{if(r=(0,l.H)(r),(0,l.E)(r,2,2,t),null==r[0]||null==r[1])return null;if(!(0,l.d)(r[0]))throw new s.D$("InvalidParameter",t);if(!(0,l.L)(r[1]))throw new s.D$("InvalidParameter",t);const a=await(0,d.C)("getNearestCoordinate",[r[0].asJsonGeometry(),r[1].asJsonGeometry()]);return null==a?null:i.A.createMutable({__proto__:null,coordinate:(0,y.p)("point",a.coordinate,r[0].spatialReference),distance:a.distance,sideOfLine:a.sideOfLine})})},n.functions.nearestvertex=function(e,t){return n.standardFunctionAsync(e,t,async(n,e,r)=>{if(r=(0,l.H)(r),(0,l.E)(r,2,2,t),null==r[0]||null==r[1])return null;if(!(0,l.d)(r[0]))throw new s.D$("InvalidParameter",t);if(!(0,l.L)(r[1]))throw new s.D$("InvalidParameter",t);const a=await(0,d.C)("getNearestVertex",[r[0].asJsonGeometry(),r[1].asJsonGeometry()]);return null==a?null:i.A.createMutable({__proto__:null,coordinate:(0,y.p)("point",a.coordinate,r[0].spatialReference),distance:a.distance,sideOfLine:a.sideOfLine})})})}},71163(n,e,t){t.d(e,{C:()=>l});var r=t(29953);let a,i,s=!1;function o(){return a??=(0,r.ho)("arcadeGeometryOperatorsWorker").then(n=>{i=n,s=!0,a=void 0})}async function l(n,e){return s?i.apply("invokeGeometryOp",[n,e]):(await o(),l(n,e))}}}]);
|