@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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9328],{83349(t,e,n){function r(t,e,n){n=n||2;var r,s,a,l,h,c,x,f=e&&e.length,y=f?e[0]*n:t.length,d=i(t,0,y,n,!0),g=[];if(!d||d.next===d.prev)return g;if(f&&(d=u(t,e,d,n)),t.length>80*n){r=a=t[0],s=l=t[1];for(var p=n;p<y;p+=n)(h=t[p])<r&&(r=h),(c=t[p+1])<s&&(s=c),h>a&&(a=h),c>l&&(l=c);x=0!==(x=Math.max(a-r,l-s))?1/x:0}return o(d,g,n,r,s,x),g}function i(t,e,n,r,i){var s,o;if(i===L(t,e,n,r)>0)for(s=e;s<n;s+=r)o=S(s,t[s],t[s+1],o);else for(s=n-r;s>=e;s-=r)o=S(s,t[s],t[s+1],o);if(o&&w(o,o.next)){var a=o.next;V(o),o=a}return o}function s(t,e){if(!t)return t;e||(e=t);var n,r=t;do{if(n=!1,r.steiner||!w(r,r.next)&&0!==b(r.prev,r,r.next))r=r.next;else{var i=r.prev;if(V(r),(r=e=i)===r.next)break;n=!0}}while(n||r!==e);return e}function o(t,e,n,r,i,u,x){if(t){!x&&u&&g(t,r,i,u);for(var f,y,d=t;t.prev!==t.next;)if(f=t.prev,y=t.next,u?l(t,r,i,u):a(t))e.push(f.i/n),e.push(t.i/n),e.push(y.i/n),V(t),t=y.next,d=y.next;else if((t=y)===d){x?1===x?o(t=h(s(t),e,n),e,n,r,i,u,2):2===x&&c(t,e,n,r,i,u):o(s(t),e,n,r,i,u,1);break}}}function a(t){var e=t.prev,n=t,r=t.next;if(b(e,n,r)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(m(e.x,e.y,n.x,n.y,r.x,r.y,i.x,i.y)&&b(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function l(t,e,n,r){var i=t.prev,s=t,o=t.next;if(b(i,s,o)>=0)return!1;for(var a=i.x<s.x?i.x<o.x?i.x:o.x:s.x<o.x?s.x:o.x,l=i.y<s.y?i.y<o.y?i.y:o.y:s.y<o.y?s.y:o.y,h=i.x>s.x?i.x>o.x?i.x:o.x:s.x>o.x?s.x:o.x,c=i.y>s.y?i.y>o.y?i.y:o.y:s.y>o.y?s.y:o.y,u=p(a,l,e,n,r),x=p(h,c,e,n,r),f=t.prevZ,y=t.nextZ;f&&f.z>=u&&y&&y.z<=x;){if(f!==t.prev&&f!==t.next&&m(i.x,i.y,s.x,s.y,o.x,o.y,f.x,f.y)&&b(f.prev,f,f.next)>=0)return!1;if(f=f.prevZ,y!==t.prev&&y!==t.next&&m(i.x,i.y,s.x,s.y,o.x,o.y,y.x,y.y)&&b(y.prev,y,y.next)>=0)return!1;y=y.nextZ}for(;f&&f.z>=u;){if(f!==t.prev&&f!==t.next&&m(i.x,i.y,s.x,s.y,o.x,o.y,f.x,f.y)&&b(f.prev,f,f.next)>=0)return!1;f=f.prevZ}for(;y&&y.z<=x;){if(y!==t.prev&&y!==t.next&&m(i.x,i.y,s.x,s.y,o.x,o.y,y.x,y.y)&&b(y.prev,y,y.next)>=0)return!1;y=y.nextZ}return!0}function h(t,e,n){var r=t;do{var i=r.prev,o=r.next.next;!w(i,o)&&v(i,r,r.next,o)&&T(i,o)&&T(o,i)&&(e.push(i.i/n),e.push(r.i/n),e.push(o.i/n),V(r),V(r.next),r=t=o),r=r.next}while(r!==t);return s(r)}function c(t,e,n,r,i,a){var l=t;do{for(var h=l.next.next;h!==l.prev;){if(l.i!==h.i&&I(l,h)){var c=k(l,h);return l=s(l,l.next),c=s(c,c.next),o(l,e,n,r,i,a),void o(c,e,n,r,i,a)}h=h.next}l=l.next}while(l!==t)}function u(t,e,n,r){var o,a,l,h=[];for(o=0,a=e.length;o<a;o++)(l=i(t,e[o]*r,o<a-1?e[o+1]*r:t.length,r,!1))===l.next&&(l.steiner=!0),h.push(_(l));for(h.sort(x),o=0;o<h.length;o++)n=s(n=y(h[o],n),n.next);return n}function x(t,e){return t.x-e.x}function f(t){if(t.next.prev===t)return t;let e=t;for(;;){const n=e.next;if(n.prev===e||n===e||n===t)break;e=n}return e}function y(t,e){var n=function(t,e){var n,r=e,i=t.x,s=t.y,o=-1/0;do{if(s<=r.y&&s>=r.next.y&&r.next.y!==r.y){var a=r.x+(s-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(a<=i&&a>o){if(o=a,a===i){if(s===r.y)return r;if(s===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==e);if(!n)return null;if(i===o)return n;var l,h=n,c=n.x,u=n.y,x=1/0;r=n;do{i>=r.x&&r.x>=c&&i!==r.x&&m(s<u?i:o,s,c,u,s<u?o:i,s,r.x,r.y)&&(l=Math.abs(s-r.y)/(i-r.x),T(r,t)&&(l<x||l===x&&(r.x>n.x||r.x===n.x&&d(n,r)))&&(n=r,x=l)),r=r.next}while(r!==h);return n}(t,e);if(!n)return e;var r=k(n,t),i=s(n,n.next);let o=f(r);return s(o,o.next),i=f(i),f(e===n?i:e)}function d(t,e){return b(t.prev,t,e.prev)<0&&b(e.next,t,t.next)<0}function g(t,e,n,r){var i=t;do{null===i.z&&(i.z=p(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,n,r,i,s,o,a,l,h=1;do{for(n=t,t=null,s=null,o=0;n;){for(o++,r=n,a=0,e=0;e<h&&(a++,r=r.nextZ);e++);for(l=h;a>0||l>0&&r;)0!==a&&(0===l||!r||n.z<=r.z)?(i=n,n=n.nextZ,a--):(i=r,r=r.nextZ,l--),s?s.nextZ=i:t=i,i.prevZ=s,s=i;n=r}s.nextZ=null,h*=2}while(o>1)}(i)}function p(t,e,n,r,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*i)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)*i)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function _(t){var e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function m(t,e,n,r,i,s,o,a){return(i-o)*(e-a)-(t-o)*(s-a)>=0&&(t-o)*(r-a)-(n-o)*(e-a)>=0&&(n-o)*(s-a)-(i-o)*(r-a)>=0}function I(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&v(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(T(t,e)&&T(e,t)&&function(t,e){var n=t,r=!1,i=(t.x+e.x)/2,s=(t.y+e.y)/2;do{n.y>s!=n.next.y>s&&n.next.y!==n.y&&i<(n.next.x-n.x)*(s-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)&&(b(t.prev,t,e.prev)||b(t,e.prev,e))||w(t,e)&&b(t.prev,t,t.next)>0&&b(e.prev,e,e.next)>0)}function b(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function w(t,e){return t.x===e.x&&t.y===e.y}function v(t,e,n,r){var i=P(b(t,e,n)),s=P(b(t,e,r)),o=P(b(n,r,t)),a=P(b(n,r,e));return i!==s&&o!==a||!(0!==i||!M(t,n,e))||!(0!==s||!M(t,r,e))||!(0!==o||!M(n,t,r))||!(0!==a||!M(n,e,r))}function M(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function P(t){return t>0?1:t<0?-1:0}function T(t,e){return b(t.prev,t,t.next)<0?b(t,e,t.next)>=0&&b(t,t.prev,e)>=0:b(t,e,t.prev)<0||b(t,t.next,e)<0}function k(t,e){var n=new A(t.i,t.x,t.y),r=new A(e.i,e.x,e.y),i=t.next,s=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,s.next=r,r.prev=s,r}function S(t,e,n,r){var i=new A(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function V(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function A(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function L(t,e,n,r){for(var i=0,s=e,o=n-r;s<n;s+=r)i+=(t[o]-t[s])*(t[s+1]+t[o+1]),o=s;return i}n.d(e,{e:()=>r}),r.deviation=function(t,e,n,r){var i=e&&e.length,s=i?e[0]*n:t.length,o=Math.abs(L(t,0,s,n));if(i)for(var a=0,l=e.length;a<l;a++){var h=e[a]*n,c=a<l-1?e[a+1]*n:t.length;o-=Math.abs(L(t,h,c,n))}var u=0;for(a=0;a<r.length;a+=3){var x=r[a]*n,f=r[a+1]*n,y=r[a+2]*n;u+=Math.abs((t[x]-t[y])*(t[f+1]-t[x+1])-(t[x]-t[f])*(t[y+1]-t[x+1]))}return 0===o&&0===u?0:Math.abs((u-o)/o)},r.flatten=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},r=0,i=0;i<t.length;i++){for(var s=0;s<t[i].length;s++)for(var o=0;o<e;o++)n.vertices.push(t[i][s][o]);i>0&&(r+=t[i-1].length,n.holes.push(r))}return n}},95488(t,e,n){n.d(e,{I:()=>i});var r=n(11406);class i extends r.T{notify(){const t=this._observers;if(t&&t.length>0){const e=t.slice();for(const t of e)t.onInvalidated(),t.onCommitted()}}}},51624(t,e,n){n.d(e,{A:()=>h});var r=n(44208),i=n(69397),s=n(93687);const o=4294967296,a=new TextDecoder("utf-8"),l=(0,r.A)("safari")||(0,r.A)("ios")?6:(0,r.A)("ff")?12:32;class h{constructor(t,e,n=0,r=t?.byteLength??0){this._tag=0,this._dataType=99,this._init(t,e,n,r)}[Symbol.dispose](){this.release()}_init(t,e,n,r){this._data=t,this._dataView=e,this._pos=n,this._end=r}get usedMemory(){return 64+(0,i.Qf)(this._data)}asUnsafe(){return this}clone(){return new h(this._data,this._dataView,this._pos,this._end)}clonePooled(){return h.constructPooled(this._data,this._dataView,this._pos,this._end)}static constructPooled(t,e,n=0,r=t?.byteLength??0){const i=h.pool.acquire();return i._init(t,e,n,r),i}pos(){return this._pos}move(t){this._pos=t}nextTag(t){for(;;){if(this._pos===this._end)return!1;const e=this._decodeVarint();if(this._tag=e>>3,this._dataType=7&e,!t||t===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const t=this._decodeVarint();return this._tag=t>>3,this._dataType=7&t,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let t=4294967295;if(t=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128)return t;if(t=(t|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128)return t;if(t=(t|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128)return t;if(t=(t|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128)return t;if(t=(t|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128)return t;throw new Error("Varint overflow")}getPackedEnd(){const t=this.getUInt32();return this._pos+t}getUInt64(){return this._decodeVarint()}getSInt32(){const t=this.getUInt32();return t>>>1^-(1&t)}getSInt64(){return this._decodeSVarint()}getBool(){const t=0!==this._data[this._pos];return this._skip(1),t}getEnum(){return this._decodeVarint()}getFixed64(){const t=this._dataView,e=this._pos,n=t.getUint32(e,!0)+t.getUint32(e+4,!0)*o;return this._skip(8),n}getSFixed64(){const t=this._dataView,e=this._pos,n=t.getUint32(e,!0)+t.getInt32(e+4,!0)*o;return this._skip(8),n}getDouble(){const t=this._dataView.getFloat64(this._pos,!0);return this._skip(8),t}getFixed32(){const t=this._dataView.getUint32(this._pos,!0);return this._skip(4),t}getSFixed32(){const t=this._dataView.getInt32(this._pos,!0);return this._skip(4),t}getFloat(){const t=this._dataView.getFloat32(this._pos,!0);return this._skip(4),t}getString(){const t=this._getLength(),e=this._pos,n=this._toString(this._data,e,e+t);return this._skip(t),n}getBytes(){const t=this._getLength(),e=this._pos,n=this._toBytes(this._data,e,e+t);return this._skip(t),n}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(t,e,n,r){const i=this.getMessage(),s=t(i,e,n,r);return i.release(),s}processMessage(t){const e=this.getMessage(),n=t(e);return e.release(),n}getMessage(){const t=this._getLength(),e=h.pool.acquire();return e._init(this._data,this._dataView,this._pos,this._pos+t),this._skip(t),e}release(){h.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case 0:this._decodeVarint();break;case 1:this._skip(8);break;case 2:this._skip(this._getLength());break;case 5:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipToEnd(){for(;this.next();)this.skip()}skipLen(t){this._skip(t)}_skip(t){if(this._pos+t>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=t}_decodeVarint(){const t=this._data;let e=this._pos,n=0,r=0;if(this._end-e>=10)do{if(r=t[e++],n|=127&r,!(128&r))break;if(r=t[e++],n|=(127&r)<<7,!(128&r))break;if(r=t[e++],n|=(127&r)<<14,!(128&r))break;if(r=t[e++],n|=(127&r)<<21,!(128&r))break;if(r=t[e++],n+=268435456*(127&r),!(128&r))break;if(r=t[e++],n+=34359738368*(127&r),!(128&r))break;if(r=t[e++],n+=4398046511104*(127&r),!(128&r))break;if(r=t[e++],n+=562949953421312*(127&r),!(128&r))break;if(r=t[e++],n+=72057594037927940*(127&r),!(128&r))break;if(r=t[e++],n+=0x8000000000000000*(127&r),!(128&r))break;throw new Error("Varint too long!")}while(0);else{let i=1;for(;e!==this._end&&(r=t[e],128&r);)++e,n+=(127&r)*i,i*=128;if(e===this._end)throw new Error("Varint overrun!");++e,n+=r*i}return this._pos=e,n}_decodeSVarint(){const t=this._data;let e,n=0,r=0;const i=1&t[this._pos];if(r=t[this._pos++],n|=127&r,!(128&r))return i?-(n+1)/2:n/2;if(r=t[this._pos++],n|=(127&r)<<7,!(128&r))return i?-(n+1)/2:n/2;if(r=t[this._pos++],n|=(127&r)<<14,!(128&r))return i?-(n+1)/2:n/2;if(r=t[this._pos++],n|=(127&r)<<21,!(128&r))return i?-(n+1)/2:n/2;if(r=t[this._pos++],n+=268435456*(127&r),!(128&r))return i?-(n+1)/2:n/2;if(r=t[this._pos++],n+=34359738368*(127&r),!(128&r))return i?-(n+1)/2:n/2;if(r=t[this._pos++],n+=4398046511104*(127&r),!(128&r))return i?-(n+1)/2:n/2;if(e=BigInt(n),r=t[this._pos++],e+=0x2000000000000n*BigInt(127&r),!(128&r))return Number(i?-(e+1n)/2n:e/2n);if(r=t[this._pos++],e+=0x100000000000000n*BigInt(127&r),!(128&r))return Number(i?-(e+1n)/2n:e/2n);if(r=t[this._pos++],e+=0x8000000000000000n*BigInt(127&r),!(128&r))return Number(i?-(e+1n)/2n:e/2n);throw new Error("Varint too long!")}_getLength(){if(2!==this._dataType)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(t,e,n){if((n=Math.min(this._end,n))-e>l){const r=t.subarray(e,n);return a.decode(r)}let r="",i="";for(let s=e;s<n;++s){const e=t[s];128&e?i+="%"+e.toString(16):(r+=decodeURIComponent(i)+String.fromCharCode(e),i="")}return i.length&&(r+=decodeURIComponent(i)),r}_toBytes(t,e,n){return n=Math.min(this._end,n),new Uint8Array(t.buffer,e,n-e)}static{this.pool=new s.A(()=>new h(null,null),void 0,t=>{t._data=null,t._dataView=null})}}},51118(t,e,n){function r(t){const e=[];for(t.reset();t.nextPath();){const n=[];for(;t.nextPoint();){const e=[t.x,t.y];t.hasZ&&e.push(t.z),t.hasM&&e.push(t.m),n.push(e)}e.push(n)}return t.reset(),e}function i(t){const e=[];for(;t.nextPoint();)e.push([t.x,t.y]);return t.seekPathStart(),e}n.d(e,{A:()=>i,x:()=>r})},15585(t,e,n){n.d(e,{If:()=>f,O5:()=>p,O9:()=>d,QT:()=>g,l3:()=>y});var r=n(32198),i=n(2741),s=n(49186),o=n(44208),a=n(34727);let l=null,h=null,c=null,u=null;const x=(new Float32Array(0),new Uint32Array(0),new Uint32Array(0),new Uint32Array(0),{vertices:new Float64Array(0),indices:new Uint32Array(0),outlineIndices:new Uint32Array(0),outlineRingLengths:new Uint32Array(0),vertexCount:0,indexCount:0,outlineIndexCount:0,outlineRingCount:0});async function f(){return l??=async function(){const t=await n.e(2997).then(n.bind(n,42997)),e=await t.default({locateFile:t=>(0,i.s)(`esri/core/libs/libtess/${t}`)});c=e}(),l}async function y(){return h??=async function(){const t=await n.e(9134).then(n.bind(n,99134)),e=await t.default({locateFile:t=>(0,i.s)(`esri/core/libs/libtess/${t}`)});u=e}(),h}function d(){return null!==u}function g(t,e,n=2){const i={stack:[],error:void 0,hasError:!1};try{const a=c;if(!a)throw new s.A("libtess:not-loaded","libtessF32 not loaded");const l=(0,r.mS)(i,b.from(a,t),!1),h=(0,r.mS)(i,v.from(a,e),!1),u=t.length/n*4,x=(0,r.mS)(i,new b(a,u*n),!1),f=a.triangulate(l.ptr,h.ptr,h.size,n,x.ptr,u);if((0,o.A)("esri-tessellation-debug")){const t=a.getError();0!==t&&console.warn("libtess:triangulation",M(t))}return{buffer:x.slice(0,f*n),vertexCount:f}}catch(t){i.error=t,i.hasError=!0}finally{(0,r.hk)(i)}}function p(t,e,n=2,i=!0){const l={stack:[],error:void 0,hasError:!1};try{const h=u;if(!h)throw new s.A("libtess:not-loaded","libtessF64 not loaded");const c=(0,r.mS)(l,w.from(h,t),!1),f=(0,r.mS)(l,v.from(h,e),!1),y=(0,r.mS)(l,new v(h,1),!1),d=(0,r.mS)(l,new v(h,1),!1),g=(0,r.mS)(l,new v(h,1),!1),p=(0,r.mS)(l,new v(h,1),!1),{maxVertexCount:_,maxIndexCount:m,maxOutlineIndexCount:b,maxOutlineRingCount:P}=function(t,e){const n=t.reduce((t,e)=>t+e,0),r=t.length,i=Math.max(0,t.length-1),s=Math.max(0,n+2*i-2),o=Math.max(0,Math.ceil(2*n)),l=Math.max(0,Math.ceil(3*s*2)),h=(0,a.mP)(l,3),c=n>0?Math.max(2,Math.ceil(.25*n)):0,u=n>0?Math.max(1,Math.ceil(c/3)):0;return{maxVertexCount:o,maxIndexCount:h,maxOutlineIndexCount:e?Math.max(0,n+r+c):0,maxOutlineRingCount:e?Math.max(0,r+u):0}}(e,i);let T=0,k=0,S=0,V=0,A=0;{const t={stack:[],error:void 0,hasError:!1};try{const e=(0,r.mS)(t,new w(h,_*n),!1),s=(0,r.mS)(t,new v(h,m),!1),o=(0,r.mS)(t,i?new v(h,b):null,!1),a=(0,r.mS)(t,i?new v(h,P):null,!1);if(h.triangulateIndexed(c.ptr,f.ptr,f.size,n,e.ptr,_,n,s.ptr,m,y.ptr,d.ptr,o?.ptr??0,b,a?.ptr??0,P,g.ptr,p.ptr),A=h.getError(),T=I(h)[y.ptr/Int32Array.BYTES_PER_ELEMENT],k=I(h)[d.ptr/Int32Array.BYTES_PER_ELEMENT],S=I(h)[g.ptr/Int32Array.BYTES_PER_ELEMENT],V=I(h)[p.ptr/Int32Array.BYTES_PER_ELEMENT],0===A){const t=e.slice(0,T*n);return{vertices:t,indices:s.slice(0,k),outlineIndices:i&&o?o.slice(0,S):x.outlineIndices,outlineRingLengths:i&&a?a.slice(0,V):x.outlineRingLengths,vertexCount:T,indexCount:k,outlineIndexCount:i?S:0,outlineRingCount:i?V:0}}}catch(e){t.error=e,t.hasError=!0}finally{(0,r.hk)(t)}}if(100903!==A)return(0,o.A)("esri-tessellation-debug")&&console.warn("libtess:triangulation",M(A)),x;const L=(0,r.mS)(l,new w(h,T*n),!1),D=(0,r.mS)(l,new v(h,k),!1),B=(0,r.mS)(l,i?new v(h,S):null,!1),E=(0,r.mS)(l,i?new v(h,V):null,!1);if(h.triangulateIndexed(c.ptr,f.ptr,f.size,n,L.ptr,T,n,D.ptr,k,y.ptr,d.ptr,B?.ptr??0,i?S:0,E?.ptr??0,i?V:0,g.ptr,p.ptr),A=h.getError(),0!==A)return(0,o.A)("esri-tessellation-debug")&&console.warn("libtess:triangulation",M(A)),x;const C=I(h)[y.ptr/Int32Array.BYTES_PER_ELEMENT],R=I(h)[d.ptr/Int32Array.BYTES_PER_ELEMENT],N=I(h)[g.ptr/Int32Array.BYTES_PER_ELEMENT],z=I(h)[p.ptr/Int32Array.BYTES_PER_ELEMENT],U=L.slice(0,C*n);return{vertices:U,indices:D.slice(0,R),outlineIndices:i&&B?B.slice(0,N):x.outlineIndices,outlineRingLengths:i&&E?E.slice(0,z):x.outlineRingLengths,vertexCount:C,indexCount:R,outlineIndexCount:i?N:0,outlineRingCount:i?z:0}}catch(t){l.error=t,l.hasError=!0}finally{(0,r.hk)(l)}}function _(t){return t.HEAPF64}function m(t){return t.HEAPF32}function I(t){return t.HEAP32}class b{static from(t,e){const n=new b(t,e.length);return n.set(e),n}constructor(t,e){this._libtess=t,this.size=e,this.ptr=t.allocateCoordinateArray(e)}destroy(){this._libtess.destroyCoordinateArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Float32Array.BYTES_PER_ELEMENT}set(t){m(this._libtess).set(t,this.ptr/this.bytesPerCoordinate)}slice(t,e){const n=this.ptr/this.bytesPerCoordinate;return m(this._libtess).slice(n+t,n+e)}}class w{static from(t,e){const n=new w(t,e.length);return n.set(e),n}constructor(t,e){this._libtess=t,this.size=e,this.ptr=t.allocateCoordinateArray(e)}destroy(){this._libtess.destroyCoordinateArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Float64Array.BYTES_PER_ELEMENT}set(t){_(this._libtess).set(t,this.ptr/this.bytesPerCoordinate)}slice(t,e){const n=this.ptr/this.bytesPerCoordinate;return _(this._libtess).slice(n+t,n+e)}}class v{static from(t,e){const n=new v(t,e.length);return n.set(e),n}constructor(t,e){this._libtess=t,this.size=e,this.ptr=t.allocateLengthsArray(e)}destroy(){this._libtess.destroyLengthsArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Int32Array.BYTES_PER_ELEMENT}set(t){I(this._libtess).set(t,this.ptr/this.bytesPerCoordinate)}slice(t,e){const n=this.ptr/this.bytesPerCoordinate;return function(t){const e=I(t);return new Uint32Array(e.buffer,e.byteOffset,e.length)}(this._libtess).slice(n+t,n+e)}}function M(t){switch(t){case 100903:return"Insufficient output buffer";case 100902:return"Out of memory";case 100151:return"Missing begin polygon";case 100152:return"Missing begin contour";case 100153:return"Missing end polygon";case 100154:return"Missing end countour";case 100155:return"Coordinates too large";case 100156:return"Missing combine callback";default:return`Unknown: ${t}`}}},537(t,e,n){n.d(e,{B$:()=>g,LJ:()=>p,Pj:()=>I,Rg:()=>y,Yz:()=>_,z8:()=>d});var r=n(19419),i=n(79567),s=n(52006);function o(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function a(t){return void 0!==t.points}function l(t){return void 0!==t.x&&void 0!==t.y}function h(t){return void 0!==t.paths}function c(t){return void 0!==t.rings}function u(t){return function(e,n){return null==e?n:null==n?e:t(e,n)}}const x=u(Math.min),f=u(Math.max);function y(t,e){return h(e)?_(t,e.curvePaths??e.paths,!1,!1)??t:c(e)?_(t,e.curveRings??e.rings,!1,!1)??t:a(e)?I(t,e.points,!1,!1,!1,!1):o(e)?m(t,e):(l(e)&&(t[0]=e.x,t[1]=e.y,t[2]=e.x,t[3]=e.y),t)}function d(t){let e,n,i,s;for(t.reset(),e=i=1/0,n=s=-1/0;t.nextPath();){const r=g(t);e=Math.min(r[0],e),i=Math.min(r[1],i),n=Math.max(r[2],n),s=Math.max(r[3],s)}return(0,r.vt)([e,i,n,s])}function g(t){let e,n,i,s;for(e=i=1/0,n=s=-1/0;t.nextPoint();)e=Math.min(t.x,e),i=Math.min(t.y,i),n=Math.max(t.x,n),s=Math.max(t.y,s);return(0,r.vt)([e,i,n,s])}function p(t,e){return h(e)?_(t,e.curvePaths??e.paths,!0,!1)??t:c(e)?_(t,e.curveRings??e.rings,!0,!1)??t:a(e)?I(t,e.points,!0,!1,!0,!1):o(e)?m(t,e,0,0,!0,!1):(l(e)&&(t[0]=e.x,t[1]=e.y,t[2]=e.z,t[3]=e.x,t[4]=e.y,t[5]=e.z),t)}function _(t,e,n,o){const a=n?3:2;if(!e.length||!e[0].length)return null;let l,h,c,u,[y,d]=(0,s.yP)(e[0][0]),g=y,p=d;for(let t=0;t<e.length;t++){const _=e[t];for(let t=0;t<_.length;t++){const e=(0,s.yP)(_[t]),[m,I]=e;if(y=x(y,m),d=x(d,I),g=f(g,m),p=f(p,I),n&&e.length>2){const t=e[2];l=x(l,t),h=f(h,t)}if(o&&e.length>a){const t=e[a];c=x(c,t),u=f(u,t)}const b=_[t];if((0,s.Xq)(b)||t<1)continue;const w=(0,s.yP)(_[t-1]),v=(0,r.fA)(y,d,g,p);[y,d,g,p]=(0,i.e)(v,w,b)}}return n?o?(t[0]=y,t[1]=d,t[2]=l,t[3]=c,t[4]=g,t[5]=p,t[6]=h,t[7]=u,t.length=8,t):(t[0]=y,t[1]=d,t[2]=l,t[3]=g,t[4]=p,t[5]=h,t.length=6,t):o?(t[0]=y,t[1]=d,t[2]=c,t[3]=g,t[4]=p,t[5]=u,t.length=6,t):(t[0]=y,t[1]=d,t[2]=g,t[3]=p,t.length=4,t)}function m(t,e,n,r,i,s){const o=e.xmin,a=e.xmax,l=e.ymin,h=e.ymax;let c=e.zmin,u=e.zmax,x=e.mmin,f=e.mmax;return i?(c=c||0,u=u||0,s?(x=x||0,f=f||0,t[0]=o,t[1]=l,t[2]=c,t[3]=x,t[4]=a,t[5]=h,t[6]=u,t[7]=f,t):(t[0]=o,t[1]=l,t[2]=c,t[3]=a,t[4]=h,t[5]=u,t)):s?(x=x||0,f=f||0,t[0]=o,t[1]=l,t[2]=x,t[3]=a,t[4]=h,t[5]=f,t):(t[0]=o,t[1]=l,t[2]=a,t[3]=h,t)}function I(t,e,n,r,i,s){const o=n?3:2,a=r&&s,l=n&&i;if(!e.length||!e[0].length)return null;let h,c,u,y,[d,g]=e[0],[p,_]=e[0];for(let t=0;t<e.length;t++){const n=e[t],[r,i]=n;if(d=x(d,r),g=x(g,i),p=f(p,r),_=f(_,i),l&&n.length>2){const t=n[2];h=x(h,t),c=f(c,t)}if(a&&n.length>o){const t=n[o];u=x(h,t),y=f(c,t)}}return i?(h=h||0,c=c||0,s?(u=u||0,y=y||0,t[0]=d,t[1]=g,t[2]=h,t[3]=u,t[4]=p,t[5]=_,t[6]=c,t[7]=y,t):(t[0]=d,t[1]=g,t[2]=h,t[3]=p,t[4]=_,t[5]=c,t)):s?(u=u||0,y=y||0,t[0]=d,t[1]=g,t[2]=u,t[3]=p,t[4]=_,t[5]=y,t):(t[0]=d,t[1]=g,t[2]=p,t[3]=_,t)}},12359(t,e,n){n.d(e,{IK:()=>c,TP:()=>u,Ve:()=>a,Z4:()=>s,l8:()=>o,w2:()=>h});var r=n(51118),i=n(95108);function s({xmin:t,xmax:e,ymin:n,ymax:r,zmin:i,zmax:s,hasZ:o}){const a=[(t+e)/2,(n+r)/2];return o&&a.push((i+s)/2),a}function o(t){return function(t,e){if(!t?.length)return null;const n=[],r=[],s=e?[1/0,-1/0,1/0,-1/0,1/0,-1/0]:[1/0,-1/0,1/0,-1/0];for(let n=0,i=t.length;n<i;n++){const i=l(t[n],e,s);i&&r.push(i)}if(r.sort((t,n)=>{let r=t[2]-n[2];return 0===r&&e&&(r=t[4]-n[4]),r}),r.length&&(n[0]=r[0][0],n[1]=r[0][1],e&&(n[2]=r[0][3]),(n[0]<s[0]||n[0]>s[1]||n[1]<s[2]||n[1]>s[3]||e&&(n[2]<s[4]||n[2]>s[5]))&&(n.length=0)),!n.length){const r=t[0]&&t[0].length?function(t,e){const n=e?[0,0,0]:[0,0],r=e?[0,0,0]:[0,0];let s=0,o=0,a=0,l=0;for(let h=0,c=t.length;h<c-1;h++){const c=t[h],u=t[h+1];if(c&&u){n[0]=c[0],n[1]=c[1],r[0]=u[0],r[1]=u[1],e&&c.length>2&&u.length>2&&(n[2]=c[2],r[2]=u[2]);const t=(0,i.R3)(n,r);if(t){s+=t;const n=(0,i.t9)(c,u);o+=t*n[0],a+=t*n[1],e&&n.length>2&&(l+=t*n[2])}}}return s>0?e?[o/s,a/s,l/s]:[o/s,a/s]:t.length?t[0]:null}(t[0],e):null;if(!r)return null;n[0]=r[0],n[1]=r[1],e&&r.length>2&&(n[2]=r[2])}return n}(t.rings,t.hasZ??!1)}function a(t){const e=o(t);if(!e)return null;const{hasZ:n,spatialReference:r}=t,[i,s,a]=e;return isNaN(i)||isNaN(s)||n&&isNaN(a)?null:{x:i,y:s,z:n?a:void 0,spatialReference:r}}function l(t,e,n){let r=0,i=0,s=0,o=0,a=0;const l=t.length?t[0][0]:0,h=t.length?t[0][1]:0,c=t.length&&e?t[0][2]:0;for(let u=0;u<t.length;u++){const x=t[u],f=t[(u+1)%t.length],[y,d,g]=x,p=y-l,_=d-h,[m,I,b]=f,w=m-l,v=I-h,M=p*v-w*_;if(o+=M,r+=(p+w)*M,i+=(_+v)*M,e&&x.length>2&&f.length>2){const t=g-c,e=b-c,n=p*e-w*t;s+=(t+e)*n,a+=n}y<n[0]&&(n[0]=y),y>n[1]&&(n[1]=y),d<n[2]&&(n[2]=d),d>n[3]&&(n[3]=d),e&&(g<n[4]&&(n[4]=g),g>n[5]&&(n[5]=g))}if(o>0&&(o*=-1),a>0&&(a*=-1),!o)return null;o*=.5,a*=.5;const u=[r/(6*o)+l,i/(6*o)+h,o];return e&&(n[4]===n[5]||0===a?(u[3]=(n[4]+n[5])/2,u[4]=0):(u[3]=s/(6*a)+c,u[4]=a)),u}function h(t,e){let n=0,r=0,i=0;t.nextPoint();const s=t.pathSize?t.x:0,o=t.pathSize?t.y:0;for(let a=0;a<t.pathSize;a++){t.seekInPath(a);const l=[t.x,t.y];t.seekInPath((a+1)%t.pathSize);const h=[t.x,t.y],[c,u]=l,x=c-s,f=u-o,[y,d]=h,g=y-s,p=d-o,_=x*p-g*f;i+=_,n+=(x+g)*_,r+=(f+p)*_,c<e[0]&&(e[0]=c),c>e[1]&&(e[1]=c),u<e[2]&&(e[2]=u),u>e[3]&&(e[3]=u)}return i>0&&(i*=-1),i?(i*=.5,[n/(6*i)+s,r/(6*i)+o,i]):null}function c(t){const{hasZ:e,totalSize:n}=t;if(0===n)return null;const s=[],o=[],a=e?[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]:[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY];for(t.reset();t.nextPath();){const e=l((0,r.A)(t),t.hasZ,a);e&&o.push(e)}if(o.sort((t,n)=>{let r=t[2]-n[2];return 0===r&&e&&(r=t[4]-n[4]),r}),o.length&&(s[0]=o[0][0],s[1]=o[0][1],e&&(s[2]=o[0][3]),(s[0]<a[0]||s[0]>a[1]||s[1]<a[2]||s[1]>a[3]||e&&(s[2]<a[4]||s[2]>a[5]))&&(s.length=0)),!s.length){t.reset(),t.nextPath();const n=t.pathSize?function(t){const{hasZ:e}=t,n=e?[0,0,0]:[0,0],r=e?[0,0,0]:[0,0];let s=0,o=0,a=0,l=0;if(t.nextPoint()){let h=t.x,c=t.y,u=t.z;for(;t.nextPoint();){const x=t.x,f=t.y,y=t.z;n[0]=h,n[1]=c,r[0]=x,r[1]=f,e&&(n[2]=u,r[2]=y);const d=(0,i.R3)(n,r);if(d){s+=d;const t=(0,i.t9)(n,r);o+=d*t[0],a+=d*t[1],e&&t.length>2&&(l+=d*t[2])}h=x,c=f,u=y}}return s>0?e?[o/s,a/s,l/s]:[o/s,a/s]:t.pathSize?(t.seekPathStart(),t.nextPoint(),[t.x,t.y]):null}(t):null;if(!n)return null;s[0]=n[0],s[1]=n[1],e&&n.length>2&&(s[2]=n[2])}return s}function u(t){let e=0;for(t.reset();t.nextPath();)e+=t.getCurrentRingArea();if(e<1e-6){const e=c(t);return e?[e[0],e[1]]:null}const n=[0,0];if(t.reset(),!t.nextPath()||!t.nextPoint())return null;const r=[t.x,t.y];for(t.reset();t.nextPath();)f(n,r,t);return n[0]*=1/e,n[1]*=1/e,n[0]+=r[0],n[1]+=r[1],n}const x=1/3;function f(t,e,n){if(!t||!n||n.pathSize<3)return null;n.nextPoint();const r=n.x,i=n.y;n.nextPoint();let s,o=n.x-r,a=n.y-i,l=0,h=0;for(;n.nextPoint();)l=n.x-r,h=n.y-i,s=.5*x*(l*a-h*o),t[0]+=s*(o+l),t[1]+=s*(a+h),o=l,a=h;const c=n.getCurrentRingArea(),u=[r,i];return u[0]-=e[0],u[1]-=e[1],u[0]*=c,u[1]*=c,t[0]+=u[0],t[1]+=u[1],t}},95108(t,e,n){n.d(e,{$3:()=>c,Ng:()=>a,R3:()=>i,Xf:()=>o,Yl:()=>h,gR:()=>s,m3:()=>x,t9:()=>l});var r=n(4576);function i(t,e){const n=e[0]-t[0],r=e[1]-t[1];if(t.length>2&&e.length>2){const i=t[2]-e[2];return Math.sqrt(n*n+r*r+i*i)}return Math.sqrt(n*n+r*r)}function s(t,e,n,r){const[i,s]=e,[o,a]=n,[l,h]=r,c=l-o,u=h-a,x=c*c+u*u,f=(i-o)*c+(s-a)*u,y=Math.min(1,Math.max(0,f/x));return t[0]=o+c*y,t[1]=a+u*y,t}function o(t,e,n){let r,i,s,o,l=!1,h=1/0;for(n.reset();n.nextPath();)if(n.nextPoint())for(r=n.x,i=n.y;n.nextPoint();)s=n.x,o=n.y,i>e!=o>e&&t<(s-r)*(e-i)/(o-i)+r&&(l=!l),h=Math.min(h,a(t,e,r,i,s,o)),r=s,i=o;return 0===h?0:(l?1:-1)*Math.sqrt(h)}function a(t,e,n,r,i,s){let o=n,a=r,l=i-o,h=s-a;if(0!==l||0!==h){const n=((t-o)*l+(e-a)*h)/(l*l+h*h);n>1?(o=i,a=s):n>0&&(o+=l*n,a+=h*n)}return l=t-o,h=e-a,l*l+h*h}function l(t,e){return function(t,e,n){const r=t[0]+n*(e[0]-t[0]),i=t[1]+n*(e[1]-t[1]);return t.length>2&&e.length>2?[r,i,t[2]+n*(e[2]-t[2])]:[r,i]}(t,e,.5)}function h(t){const e=t.length;let n=0;for(let r=0;r<e-1;++r)n+=i(t[r],t[r+1]);return n}function c(t,e=0,n=1){let r=0;const i=t.length;let s=t[0];for(let o=1;o<i;o++){const i=t[o];r+=(i[e]-s[e])*(i[n]+s[n]),s=i}if(u(t)){const i=t[0];r+=(i[e]-s[e])*(i[n]+s[n])}return r>=0}function u(t){const e=t.length;return e>0&&!(0,r.aI)(t[0],t[e-1])}function x(t){if("rings"in t)for(const e of t.rings)u(e)&&e.push(e[0].slice())}n(52006)},97770(t,e,n){n.d(e,{Ey:()=>D,F8:()=>L,J2:()=>k,Yq:()=>V,_m:()=>S,iS:()=>A,wj:()=>B});var r=n(66552),i=n(73444),s=n(98623),o=n(34747);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},h={timeZone:"UTC"},c={year:"numeric",month:"numeric",day:"numeric"},u={year:"numeric",month:"long",day:"numeric"},x={year:"numeric",month:"short",day:"numeric"},f={year:"numeric",month:"long",weekday:"long",day:"numeric"},y={hour:"numeric",minute:"numeric"},d={...y,second:"numeric"},g={hourCycle:"h23"},p={...y,...g},_={...d,...g},m={"short-date":c,"short-date-short-time":{...c,...y},"short-date-short-time-24":{...c,...p},"short-date-long-time":{...c,...d},"short-date-long-time-24":{...c,..._},"short-date-le":c,"short-date-le-short-time":{...c,...y},"short-date-le-short-time-24":{...c,...p},"short-date-le-long-time":{...c,...d},"short-date-le-long-time-24":{...c,..._},"long-month-day-year":u,"long-month-day-year-short-time":{...u,...y},"long-month-day-year-short-time-24":{...u,...p},"long-month-day-year-long-time":{...u,...d},"long-month-day-year-long-time-24":{...u,..._},"day-short-month-year":x,"day-short-month-year-short-time":{...x,...y},"day-short-month-year-short-time-24":{...x,...p},"day-short-month-year-long-time":{...x,...d},"day-short-month-year-long-time-24":{...x,..._},"long-date":f,"long-date-short-time":{...f,...y},"long-date-short-time-24":{...f,...p},"long-date-long-time":{...f,...d},"long-date-long-time-24":{...f,..._},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":y,"long-time":d},I=(0,r.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),b={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},w=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),v=w.find(({type:t})=>"month"===t)?.value.toLowerCase();function M(){const t=(0,i.lR)();return(t&&b[t])??(0,i.QC)()}"mart"!==v&&(b.bs="sr-Latn-CS");let P=new WeakMap;const T=m["short-date-short-time"];function k(t){return m[t]}function S(t){const{dateStyle:e,timeStyle:n,hour12:r,year:i,month:s}=t,o={};return e?o.dateStyle=e:i&&(o.year=i,o.month=s||void 0),n&&!o.year&&(o.timeStyle=n,o.hour12="auto"===r?void 0:"always"===r),o}function V(t,e=T){return function(t){let e=P.get(t);if(!e){const n=M(),r=B(t.timeZone??"system"),i={...t,timeZone:r};e=new Intl.DateTimeFormat(n,i),P.set(t,e)}return e}(e).format(t)}function A(t,e=T){return V(new Date(t),{...e,...h,...l})}function L(t,e=T){return V(new Date(`1970-01-01T${t}Z`),{...e,...h,...a})}function D(t,e=T){const n=o.c9.fromISO(t,{setZone:!0});if(!n.isValid)return t;if(e.timeZone)return V(n.toJSDate(),e);const r=0===n.offset?"UTC":e.timeZone,i={...e,timeZone:r};return n.toLocaleString(i,{locale:M()})}function B(t){switch(t){case"system":return s.N;case s.L:return"UTC";default:return t}}(0,i.Ml)(()=>{P=new WeakMap}),n.d(e,["_v",0,I])},73444(t,e,n){n.d(e,{JK:()=>l,Ml:()=>g,QC:()=>u,lR:()=>c,oQ:()=>y});var r=n(36563);let i;n(44208);const s=globalThis.esriConfig?.locale,o=globalThis.document?.documentElement;function a(){const t=o?.getAttribute("lang"),e=globalThis.navigator?.language;return s??t??e??"en"}function l(){return void 0===i&&(i=a()),i}const h=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function c(t=l()){return x(t)?.language}function u(t=l()){const e=x(t);return e?.language&&e?.extlang?t.replace(`${e.language}-`,""):t}function x(t=l()){return h.exec(t)?.groups}const f=[];function y(t){return f.push(t),(0,r.hA)(()=>{f.splice(f.indexOf(t),1)})}new Map;const d=[];function g(t){return d.push(t),(0,r.hA)(()=>d.splice(d.indexOf(t),1))}function p(){const t=a();i!==t&&([...d].forEach(e=>e(t)),i=t,[...f].forEach(e=>e(t)))}globalThis.addEventListener?.("languagechange",p),o&&new MutationObserver(()=>{p()}).observe(o,{attributeFilter:["lang"]})},98623(t,e,n){const r=Intl.DateTimeFormat().resolvedOptions().timeZone;n.d(e,["L",0,"unknown","N",0,r])},36984(t,e,n){n.r(e),n.d(e,{default:()=>X});var r=n(17676),i=n(29953),s=n(6774),o=n(13195);function a(t){return 746===t||747===t||!(t<4352)&&(t>=12704&&t<=12735||t>=12544&&t<=12591||t>=65072&&t<=65103&&!(t>=65097&&t<=65103)||t>=63744&&t<=64255||t>=13056&&t<=13311||t>=11904&&t<=12031||t>=12736&&t<=12783||t>=12288&&t<=12351&&!(t>=12296&&t<=12305||t>=12308&&t<=12319||12336===t)||t>=13312&&t<=19903||t>=19968&&t<=40959||t>=12800&&t<=13055||t>=12592&&t<=12687||t>=43360&&t<=43391||t>=55216&&t<=55295||t>=4352&&t<=4607||t>=44032&&t<=55215||t>=12352&&t<=12447||t>=12272&&t<=12287||t>=12688&&t<=12703||t>=12032&&t<=12255||t>=12784&&t<=12799||t>=12448&&t<=12543&&12540!==t||t>=65280&&t<=65519&&!(65288===t||65289===t||65293===t||t>=65306&&t<=65310||65339===t||65341===t||65343===t||t>=65371&&t<=65503||65507===t||t>=65512&&t<=65519)||t>=65104&&t<=65135&&!(t>=65112&&t<=65118||t>=65123&&t<=65126)||t>=5120&&t<=5759||t>=6320&&t<=6399||t>=65040&&t<=65055||t>=19904&&t<=19967||t>=40960&&t<=42127||t>=42128&&t<=42191)}function l(t){return!(t<11904)&&(t>=12704&&t<=12735||t>=12544&&t<=12591||t>=65072&&t<=65103||t>=63744&&t<=64255||t>=13056&&t<=13311||t>=11904&&t<=12031||t>=12736&&t<=12783||t>=12288&&t<=12351||t>=13312&&t<=19903||t>=19968&&t<=40959||t>=12800&&t<=13055||t>=65280&&t<=65519||t>=12352&&t<=12447||t>=12272&&t<=12287||t>=12032&&t<=12255||t>=12784&&t<=12799||t>=12448&&t<=12543||t>=65040&&t<=65055||t>=42128&&t<=42191||t>=40960&&t<=42127)}function h(t){switch(t){case 10:case 32:case 38:case 40:case 41:case 43:case 45:case 47:case 173:case 183:case 8203:case 8208:case 8211:case 8231:return!0}return!1}function c(t){switch(t){case 9:case 10:case 11:case 12:case 13:case 32:return!0}return!1}var u=n(18989);class x{constructor(t,e,n,r,i,s,o){this._glyphItems=t,this._maxWidth=e,this._lineHeight=n,this._letterSpacing=r,this._hAnchor=i,this._vAnchor=s,this._justify=o}getShaping(t,e,n){const r=this._letterSpacing,i=this._lineHeight,s=this._justify,o=this._maxWidth,u=[];let x=0,f=0;for(const e of t){const t=e.codePointAt(0);if(null==t)continue;const i=n&&a(t);let s;for(const e of this._glyphItems)if(s=e[t],s)break;u.push({codePoint:t,x,y:f,vertical:i,glyphItem:s}),s&&(x+=s.shaping.xAdvance+r)}let y=x;o>0&&(y=x/Math.max(1,Math.ceil(x/o)));const d=t.includes(""),g=[],p=u.length;for(let t=0;t<p-1;t++){const e=u[t].codePoint,n=l(e);if(h(e)||n){let r=0;if(10===e)r-=1e4;else if(n&&d)r+=150;else{40!==e&&65288!==e||(r+=50);const n=u[t+1].codePoint;41!==n&&65289!==n||(r+=50)}g.push(this._buildBreak(t+1,u[t].x,y,g,r,!1))}}const _=this._optimalBreaks(this._buildBreak(p,x,y,g,0,!0));let m=0;const I=e?-i:i;let b=0;for(let t=0;t<_.length;t++){const e=_[t];let n=b;for(;n<e&&c(u[n].codePoint);)u[n].glyphItem=null,++n;let r=e-1;for(;r>n&&c(u[r].codePoint);)u[r].glyphItem=null,--r;if(n<=r){const t=u[n].x;for(let e=n;e<=r;e++)u[e].x-=t,u[e].y=f;let e=u[r].x;u[r].glyphItem&&(e+=u[r].glyphItem.shaping.xAdvance),m=Math.max(e,m),s&&this._applyJustification(u,n,r)}b=e,f+=I}if(u.length>0){const t=_.length-1,n=(s-this._hAnchor)*m;let r=(-this._vAnchor*(t+1)+.5)*i;e&&t&&(r+=t*i);for(const t of u)t.x+=n,t.y+=r}return u.filter(t=>t.glyphItem)}static getTextBox(t,e){if(!t.length)return null;let n=1/0,r=1/0,i=0,s=0;for(const o of t){const t=o.glyphItem.shaping.xAdvance,a=o.x,l=o.y-17,h=a+t,c=l+e;n=Math.min(n,a),i=Math.max(i,h),r=Math.min(r,l),s=Math.max(s,c)}return{x:n,y:r,width:i-n,height:s-r}}static getBox(t){if(!t.length)return null;let e=1/0,n=1/0,r=0,i=0;for(const s of t){const{height:t,left:o,top:a,width:l}=s.glyphItem.rect,h=s.x,c=s.y-(t-Math.abs(a)),u=h+l+o,x=c+t;e=Math.min(e,h),r=Math.max(r,u),n=Math.min(n,c),i=Math.max(i,x)}return{x:e,y:n,width:r-e,height:i-n}}static addDecoration(t,e){const n=t.length;if(0===n)return;const r={rect:new u.A(4,0,4,8),sdf:!0,page:0};let i=t[0].x+t[0].glyphItem.rect.left,s=t[0].y;for(let o=1;o<n;o++){const n=t[o];if(n.y!==s){const a=t[o-1].x+t[o-1].glyphItem.rect.left+t[o-1].glyphItem.rect.width;t.push({codePoint:0,x:i,y:s+e-3,vertical:!1,glyphItem:{mosaicItem:r,rect:{width:a-i,height:8,left:0,top:0},shaping:{xOffset:0,yOffset:0,xAdvance:0,yAdvance:0},code:0}}),s=n.y,i=n.x+n.glyphItem.rect.left}}const o=t[n-1].x+t[n-1].glyphItem.rect.left+t[n-1].glyphItem.rect.width;t.push({codePoint:0,x:i,y:s+e-3,vertical:!1,glyphItem:{mosaicItem:r,rect:{width:o-i,height:8,left:0,top:0},shaping:{xOffset:0,yOffset:0,xAdvance:0,yAdvance:0},code:0}})}_breakScore(t,e,n,r){const i=(t-e)*(t-e);return r?t<e?i/2:2*i:i+Math.abs(n)*n}_buildBreak(t,e,n,r,i,s){let o=null,a=this._breakScore(e,n,i,s);for(const t of r){const r=e-t.x,l=this._breakScore(r,n,i,s)+t.score;l<=a&&(o=t,a=l)}return{index:t,x:e,score:a,previousBreak:o}}_optimalBreaks(t){return t?this._optimalBreaks(t.previousBreak).concat(t.index):[]}_applyJustification(t,e,n){const r=t[n],i=r.vertical?24:r.glyphItem?r.glyphItem.shaping.xAdvance:0,s=(r.x+i)*this._justify;for(let r=e;r<=n;r++)t[r].x-=s}}const f=.5;class y{constructor(t,e,n=0,r=-1,i=f){this.x=t,this.y=e,this.angle=n,this.segment=r,this.minzoom=i}}class d{constructor(t,e,n,r,i,s=f,a=o.MG){this.anchor=t,this.labelAngle=e,this.glyphAngle=n,this.page=r,this.alternateVerticalGlyph=i,this.minzoom=s,this.maxzoom=a}}class g{constructor(t,e,n,r,i,s,o,a,l,h,c,u){this.tl=t,this.tr=e,this.bl=n,this.br=r,this.mosaicRect=i,this.labelAngle=s,this.minAngle=o,this.maxAngle=a,this.anchor=l,this.minzoom=h,this.maxzoom=c,this.page=u}}class p{constructor(t){this.shapes=t}}class _{getIconPlacement(t,e,n){const r=new s.bR(t.x,t.y),i=0===n.rotationAlignment,a=n.keepUpright;let l=n.rotate*o.os;i&&(l+=t.angle);const h=new p([]);return h.iconColliders=[],this._addIconPlacement(h,r,e,n,l),i&&a&&this._addIconPlacement(h,r,e,n,l+o.Jo),h}_addIconPlacement(t,e,n,r,i){const a=n.rasterizationScale,l=n.width/a,h=n.height/a,c=r.offset;let u=c[0],x=c[1];switch(r.anchor){case 0:u-=l/2,x-=h/2;break;case 1:x-=h/2;break;case 2:u-=l,x-=h/2;break;case 3:u-=l/2;break;case 4:u-=l/2,x-=h;break;case 5:break;case 7:x-=h;break;case 6:u-=l;break;case 8:u-=l,x-=h}const y=n.rect,d=2/a,p=u-d,_=x-d,m=p+y.width/a,I=_+y.height/a,b=new s.bR(p,_),w=new s.bR(m,I),v=new s.bR(p,I),M=new s.bR(m,_);if(0!==i){const t=Math.cos(i),e=Math.sin(i);b.rotate(t,e),w.rotate(t,e),v.rotate(t,e),M.rotate(t,e)}const P=new g(b,M,v,w,y,i,0,256,e,f,o.MG,0);t.shapes.push(P);{const n=r.size,s=r.padding,a={xTile:e.x,yTile:e.y,dxPixels:u*n-s,dyPixels:x*n-s,hard:!r.optional,partIndex:0,width:l*n+2*s,height:h*n+2*s,angle:i,minLod:f,maxLod:o.MG};t.iconColliders.push(a)}}getTextPlacement(t,e,n,r){const i=new s.bR(t.x,t.y),{keepUpright:a,rotate:l,rotationAlignment:h,size:c}=r,u=l*o.os,y=0===h,_=a,m=r.padding;let I=f;const b=y?t.angle:0,w=t.segment>=0&&y,v=[],M=[],P=!w;let T=Number.POSITIVE_INFINITY,k=Number.NEGATIVE_INFINITY,S=T,V=k;const A=(w||y)&&_,L=c/24;let D=!1;for(const t of e)if(t.vertical){D=!0;break}let B,E=0,C=0;if(!w&&D){const t=x.getTextBox(e,24*r.lineHeight);switch(r.anchor){case 1:E=t.height/2,C=-t.width/2;break;case 2:E=-t.height/2,C=t.width/2;break;case 3:E=t.height/2,C=t.width/2;break;case 4:E=-t.height/2,C=-t.width/2;break;case 5:E=t.height;break;case 7:C=-t.width;break;case 6:C=t.width;break;case 8:E=-t.height}}E+=24*r.offset[0],C+=24*r.offset[1];for(const a of e){const e=a.glyphItem?.mosaicItem,l=a.glyphItem?.rect;if(!e||e.rect.isEmpty)continue;const h=e.rect,c=e.page;if(v&&P){if(void 0!==B&&B!==a.y){let e,n,i,s;D?(e=-V+E,n=T+C,i=V-S,s=k-T):(e=T+E,n=S+C,i=k-T,s=V-S);const a={xTile:t.x,yTile:t.y,dxPixels:e*L-m,dyPixels:n*L-m,hard:!r.optional,partIndex:1,width:i*L+2*m,height:s*L+2*m,angle:u,minLod:f,maxLod:o.MG};v.push(a),T=Number.POSITIVE_INFINITY,k=Number.NEGATIVE_INFINITY,S=T,V=k}B=a.y}const x=[];if(w){const e=.5*l.width,r=(a.x+l.left-3+e)*L*8;if(I=this._placeGlyph(t,I,r,n,t.segment,1,a.vertical,c,x),_&&(I=this._placeGlyph(t,I,r,n,t.segment,-1,a.vertical,c,x)),I>=2)break}else x.push(new d(i,b,b,c,!1)),y&&_&&x.push(new d(i,b+o.Jo,b+o.Jo,c,!1));const p=a.x+l.left,R=a.y-17-l.top,N=p+l.width,z=R+l.height;let U,F,O,G,Z,Y,W,q;if(!w&&D)if(a.vertical){const t=(p+N)/2-l.height/2,e=(R+z)/2+l.width/2;U=new s.bR(-e-3+E,t-3+C),F=new s.bR(U.x+h.width,U.y+h.height),O=new s.bR(U.x,F.y),G=new s.bR(F.x,U.y)}else U=new s.bR(3-R+E,p-3+C),F=new s.bR(U.x-h.height,U.y+h.width),O=new s.bR(F.x,U.y),G=new s.bR(U.x,F.y);else U=new s.bR(p-3+E,R-3+C),F=new s.bR(U.x+h.width,U.y+h.height),O=new s.bR(U.x,F.y),G=new s.bR(F.x,U.y);for(const e of x){let n,i,o,c;if(e.alternateVerticalGlyph){if(!Z){const t=(R+z)/2+C;Z=new s.bR((p+N)/2+E-l.height/2-3,t+l.width/2+3),Y=new s.bR(Z.x+h.height,Z.y-h.width),W=new s.bR(Y.x,Z.y),q=new s.bR(Z.x,Y.y)}n=Z,i=W,o=q,c=Y}else n=U,i=O,o=G,c=F;const x=R,f=z,y=e.glyphAngle+u;if(0!==y){const t=Math.cos(y),e=Math.sin(y);n=n.clone(),i=i?.clone(),o=o?.clone(),c=c?.clone(),n.rotate(t,e),c?.rotate(t,e),i?.rotate(t,e),o?.rotate(t,e)}let d=0,_=256;if(w&&D?a.vertical?e.alternateVerticalGlyph?(d=32,_=96):(d=224,_=32):(d=224,_=96):(d=192,_=64),M.push(new g(n,o,i,c,h,e.labelAngle,d,_,e.anchor,e.minzoom,e.maxzoom,e.page)),v&&(!A||this._legible(e.labelAngle)))if(P)p<T&&(T=p),x<S&&(S=x),N>k&&(k=N),f>V&&(V=f);else if(e.minzoom<2){const n={xTile:t.x,yTile:t.y,dxPixels:(p+E)*L-m,dyPixels:(x+E)*L-m,hard:!r.optional,partIndex:1,width:(N-p)*L+2*m,height:(f-x)*L+2*m,angle:y,minLod:e.minzoom,maxLod:e.maxzoom};v.push(n)}}}if(I>=2)return null;if(v&&P){let e,n,i,s;D?(e=-V+E,n=T+C,i=V-S,s=k-T):(e=T+E,n=S+C,i=k-T,s=V-S);const a={xTile:t.x,yTile:t.y,dxPixels:e*L-m,dyPixels:n*L-m,hard:!r.optional,partIndex:1,width:i*L+2*m,height:s*L+2*m,angle:u,minLod:f,maxLod:o.MG};v.push(a)}const R=new p(M);return v&&v.length>0&&(R.textColliders=v),R}_legible(t){const e=(0,o.z0)(t);return e<65||e>=193}_placeGlyph(t,e,n,r,i,a,l,h,c){let u=a;const x=u<0?(0,o.Wh)(t.angle+o.Jo,o.pJ):t.angle;let f=0;n<0&&(u*=-1,n*=-1,f=o.Jo),u>0&&++i;let y=new s.bR(t.x,t.y),g=r[i],p=o.MG;if(r.length<=i)return p;for(;;){const t=g.x-y.x,s=g.y-y.y,a=Math.sqrt(t*t+s*s),_=Math.max(n/a,e),m=t/a,I=s/a,b=(0,o.Wh)(Math.atan2(I,m)+f,o.pJ);if(c.push(new d(y,x,b,h,!1,_,p)),l&&c.push(new d(y,x,b,h,!0,_,p)),_<=e)return _;y=g.clone();do{if(i+=u,r.length<=i||i<0)return _;g=r[i]}while(y.isEqual(g));let w=g.x-y.x,v=g.y-y.y;const M=Math.sqrt(w*w+v*v);w*=a/M,v*=a/M,y.x-=w,y.y-=v,p=_}}}var m=n(51624),I=n(15585);class b{constructor(t,e,n=0){this.values={},this._geometry=void 0,this._pbfGeometry=null,this.featureIndex=n;const r=e.keys,i=e.values,s=t.asUnsafe();for(;s.next();)switch(s.tag()){case 1:this.id=s.getUInt64();break;case 2:{const t=s.getMessage().asUnsafe(),e=this.values;for(;!t.empty();){const n=t.getUInt32(),s=t.getUInt32();e[r[n]]=i[s]}t.release();break}case 3:this.type=s.getUInt32();break;case 4:this._pbfGeometry=s.getMessage();break;default:s.skip()}}getGeometry(t){if(void 0!==this._geometry)return this._geometry;if(!this._pbfGeometry)return null;const e=this._pbfGeometry.asUnsafe();let n,r;this._pbfGeometry=null,t?t.reset(this.type):n=[];let i,o=1,a=0,l=0,h=0;for(;!e.empty();){if(0===a){const t=e.getUInt32();o=7&t,a=t>>3}switch(a--,o){case 1:l+=e.getSInt32(),h+=e.getSInt32(),t?t.moveTo(l,h):n&&(r&&n.push(r),r=[],r.push(new s.bR(l,h)));break;case 2:l+=e.getSInt32(),h+=e.getSInt32(),t?t.lineTo(l,h):r&&r.push(new s.bR(l,h));break;case 7:t?t.close():r&&!r[0].equals(l,h)&&r.push(r[0].clone());break;default:throw e.release(),new Error("Invalid path operation")}}return t?i=t.result():n&&(r&&n.push(r),i=n),e.release(),this._geometry=i,i}}n(44208);class w{constructor(t){this._array=[],this._stride=t}get array(){return this._array}get index(){return 4*this._array.length/this._stride}get itemSize(){return this._stride}get sizeInBytes(){return 4*this._array.length}reset(){this.array.length=0}toBuffer(){return new Uint32Array(this._array).buffer}}class v extends w{constructor(){super(12)}add(t,e,n){const r=this.array;r.push(t),r.push(e),r.push(n)}}class M{constructor(t){this.extent=4096,this.keys=[],this.values=[],this._pbfLayer=t.clone();const e=t.asUnsafe();for(;e.next();)switch(e.tag()){case 1:this.name=e.getString();break;case 3:this.keys.push(e.getString());break;case 4:this.values.push(e.processMessage(M._parseValue));break;case 5:this.extent=e.getUInt32();break;default:e.skip()}}getData(){return this._pbfLayer}static _parseValue(t){for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getInt64();case 5:return t.getUInt64();case 6:return t.getSInt64();case 7:return t.getBool();default:t.skip()}return null}}var P=n(89518);class T extends w{constructor(t){super(t)}add(t,e,n,r,i,s,o,a,l,h,c,u){const x=this.array;let f=(0,P.M9)(t,e);x.push(f);const y=31;f=(0,P.Ss)(Math.round(y*n),Math.round(y*r),Math.round(y*i),Math.round(y*s)),x.push(f),f=(0,P.Ss)(Math.round(y*o),Math.round(y*a),Math.round(y*l),Math.round(y*h)),x.push(f),f=(0,P.M9)(c,0),x.push(f),u&&x.push(...u)}}class k extends w{constructor(t){super(t)}add(t,e,n){const r=this.array;r.push((0,P.M9)(t,e)),n&&r.push(...n)}}class S extends w{constructor(t){super(t)}add(t,e,n,r,i,s,o){const a=this.array,l=this.index;let h=(0,P.M9)(t,e);return a.push(h),h=(0,P.Ss)(Math.round(15*n),Math.round(15*r),i,s),a.push(h),o&&a.push(...o),l}}class V extends w{constructor(t){super(t)}add(t,e,n,r,i,s,a,l,h,c,u,x){const f=this.array;let y=(0,P.M9)(t,e);f.push(y),y=(0,P.M9)(Math.round(8*n),Math.round(8*r)),f.push(y),y=(0,P.M9)((0,P.ws)(i/4,s/4),(0,P.ws)(l,h)),f.push(y),y=(0,P.M9)((0,P.ws)(0,(0,o.z0)(a)),(0,P.ws)(10*c,Math.min(10*u,255))),f.push(y),x&&f.push(...x)}}class A extends w{constructor(t){super(t)}add(t,e,n,r,i){const s=this.array,o=(0,P.M9)(2*t+n,2*e+r);s.push(o),i&&s.push(...i)}}class L{constructor(t,e,n){this.layerExtent=4096,this._features=[],this.layer=t,this.zoom=e,this._spriteInfo=n,this._filter=t.getFeatureFilter()}pushFeature(t){this._filter&&!this._filter.filter(t,this.zoom)||this._features.push(t)}hasFeatures(){return this._features.length>0}getResources(t,e,n){}}class D extends L{constructor(t,e,n,r,i){super(t,e,n),this.type=4,this._circleVertexBuffer=r,this._circleIndexBuffer=i}get circleIndexStart(){return this._circleIndexStart}get circleIndexCount(){return this._circleIndexCount}processFeatures(t){const e=this._circleVertexBuffer,n=this._circleIndexBuffer;this._circleIndexStart=3*n.index,this._circleIndexCount=0;const r=this.layer,i=this.zoom;t&&t.setExtent(this.layerExtent);for(const s of this._features){const o=s.getGeometry(t);if(!o)continue;const a=r.circleMaterial.encodeAttributes(s,i,r);for(const t of o)if(t)for(const r of t){const t=e.index;e.add(r.x,r.y,0,0,a),e.add(r.x,r.y,0,1,a),e.add(r.x,r.y,1,0,a),e.add(r.x,r.y,1,1,a),n.add(t,t+1,t+2),n.add(t+1,t+2,t+3),this._circleIndexCount+=6}}}serialize(){let t=6;t+=this.layerUIDs.length,t+=this._circleVertexBuffer.array.length,t+=this._circleIndexBuffer.array.length;const e=new Uint32Array(t),n=new Int32Array(e.buffer);let r=0;e[r++]=this.type,e[r++]=this.layerUIDs.length;for(let t=0;t<this.layerUIDs.length;t++)e[r++]=this.layerUIDs[t];e[r++]=this._circleIndexStart,e[r++]=this._circleIndexCount,e[r++]=this._circleVertexBuffer.array.length;for(let t=0;t<this._circleVertexBuffer.array.length;t++)n[r++]=this._circleVertexBuffer.array[t];e[r++]=this._circleIndexBuffer.array.length;for(let t=0;t<this._circleIndexBuffer.array.length;t++)e[r++]=this._circleIndexBuffer.array[t];return e.buffer}}var B=n(98291),E=n(83349);class C extends L{constructor(t,e,n,r,i,s,o){super(t,e,n),this.type=1,this._patternMap=new Map,this._fillVertexBuffer=r,this._fillIndexBuffer=i,this._outlineVertexBuffer=s,this._outlineIndexBuffer=o}get fillIndexStart(){return this._fillIndexStart}get fillIndexCount(){return this._fillIndexCount}get outlineIndexStart(){return this._outlineIndexStart}get outlineIndexCount(){return this._outlineIndexCount}getResources(t,e,n){const r=this.layer,i=this.zoom,s=r.getPaintProperty("fill-pattern");if(s)if(s.isDataDriven)for(const t of this._features)e(s.getValue(i,t),!0);else e(s.getValue(i),!0)}processFeatures(t){this._fillIndexStart=3*this._fillIndexBuffer.index,this._fillIndexCount=0,this._outlineIndexStart=3*this._outlineIndexBuffer.index,this._outlineIndexCount=0;const e=this.layer,n=this.zoom,{fillMaterial:r,outlineMaterial:i,hasDataDrivenFill:s,hasDataDrivenOutline:o}=e;t&&t.setExtent(this.layerExtent);const a=e.getPaintProperty("fill-pattern"),l=a?.isDataDriven;let h=!a&&e.getPaintValue("fill-antialias",n);if(e.outlineUsesFillColor){if(h&&!e.hasDataDrivenOpacity){const t=e.getPaintValue("fill-opacity",n),r=e.getPaintValue("fill-opacity",n+1);t<1&&r<1&&(h=!1)}if(h&&!e.hasDataDrivenColor){const t=e.getPaintValue("fill-color",n),r=e.getPaintValue("fill-color",n+1);t[3]<1&&r[3]<1&&(h=!1)}}const c=this._features,u=t?.validateTessellation;if(l){const s=[];for(const l of c){const c=a.getValue(n,l),u=this._spriteInfo[c];if(!u?.rect)continue;const x=r.encodeAttributes(l,n,e,u),f=h&&o?i.encodeAttributes(l,n,e):[],y=l.getGeometry(t);s.push({ddFillAttributes:x,ddOutlineAttributes:f,page:u.page,geometry:y}),s.sort((t,e)=>t.page-e.page)}for(const{ddFillAttributes:t,ddOutlineAttributes:n,page:r,geometry:i}of s)this._processFeature(i,h,e.outlineUsesFillColor,t,n,u,r)}else for(const a of c){const l=s?r.encodeAttributes(a,n,e):null,c=h&&o?i.encodeAttributes(a,n,e):null,x=a.getGeometry(t);this._processFeature(x,h,e.outlineUsesFillColor,l,c,u)}}serialize(){let t=10;t+=this.layerUIDs.length,t+=this._fillVertexBuffer.array.length,t+=this._fillIndexBuffer.array.length,t+=this._outlineVertexBuffer.array.length,t+=this._outlineIndexBuffer.array.length,t+=3*this._patternMap.size+1;const e=new Uint32Array(t),n=new Int32Array(e.buffer);let r=0;e[r++]=this.type,e[r++]=this.layerUIDs.length;for(let t=0;t<this.layerUIDs.length;t++)e[r++]=this.layerUIDs[t];e[r++]=this._fillIndexStart,e[r++]=this._fillIndexCount,e[r++]=this._outlineIndexStart,e[r++]=this._outlineIndexCount;const i=this._patternMap,s=i.size;if(e[r++]=s,s>0)for(const[t,[n,s]]of i)e[r++]=t,e[r++]=n,e[r++]=s;e[r++]=this._fillVertexBuffer.array.length;for(let t=0;t<this._fillVertexBuffer.array.length;t++)n[r++]=this._fillVertexBuffer.array[t];e[r++]=this._fillIndexBuffer.array.length;for(let t=0;t<this._fillIndexBuffer.array.length;t++)e[r++]=this._fillIndexBuffer.array[t];e[r++]=this._outlineVertexBuffer.array.length;for(let t=0;t<this._outlineVertexBuffer.array.length;t++)n[r++]=this._outlineVertexBuffer.array[t];e[r++]=this._outlineIndexBuffer.array.length;for(let t=0;t<this._outlineIndexBuffer.array.length;t++)e[r++]=this._outlineIndexBuffer.array[t];return e.buffer}_processFeature(t,e,n,r,i,s,o){if(!t)return;const a=t.length,l=!i||0===i.length;if(e&&(!n||l))for(let e=0;e<a;e++)this._processOutline(t[e],i);let h;for(let e=0;e<a;e++){const n=C._area(t[e]);n>32?(void 0!==h&&this._processFill(t,h,r,s,o),h=[e]):n<-32&&void 0!==h&&h.push(e)}void 0!==h&&this._processFill(t,h,r,s,o)}_processOutline(t,e){const n=this._outlineVertexBuffer,r=this._outlineIndexBuffer,i=r.index;let o,a,l;const h=new s.bR(0,0),c=new s.bR(0,0),u=new s.bR(0,0);let x=-1,f=-1,y=-1,d=-1,g=-1,p=!1,_=t.length;if(_<2)return;const m=t[0];let I=t[_-1];for(;_&&I.isEqual(m);)--_,I=t[_-1];if(!(_-0<2)){for(let i=0;i<_;++i){0===i?(o=t[_-1],a=t[0],l=t[1],h.assignSub(a,o),h.normalize(),h.rightPerpendicular()):(o=a,a=l,l=i!==_-1?t[i+1]:t[0],h.assign(c));const s=this._isClipEdge(o,a);-1===d&&(p=s),c.assignSub(l,a),c.normalize(),c.rightPerpendicular();const m=h.x*c.y-h.y*c.x;u.assignAdd(h,c),u.normalize();const I=-u.x*-h.x+-u.y*-h.y;let b=Math.abs(0!==I?1/I:1);b>8&&(b=8),m>=0?(y=n.add(a.x,a.y,h.x,h.y,0,1,e),-1===d&&(d=y),x>=0&&f>=0&&y>=0&&!s&&r.add(x,f,y),f=n.add(a.x,a.y,b*-u.x,b*-u.y,0,-1,e),-1===g&&(g=f),x>=0&&f>=0&&y>=0&&!s&&r.add(x,f,y),x=f,f=y,y=n.add(a.x,a.y,u.x,u.y,0,1,e),x>=0&&f>=0&&y>=0&&!s&&r.add(x,f,y),f=n.add(a.x,a.y,c.x,c.y,0,1,e),x>=0&&f>=0&&y>=0&&!s&&r.add(x,f,y)):(y=n.add(a.x,a.y,b*u.x,b*u.y,0,1,e),-1===d&&(d=y),x>=0&&f>=0&&y>=0&&!s&&r.add(x,f,y),f=n.add(a.x,a.y,-h.x,-h.y,0,-1,e),-1===g&&(g=f),x>=0&&f>=0&&y>=0&&!s&&r.add(x,f,y),x=f,f=y,y=n.add(a.x,a.y,-u.x,-u.y,0,-1,e),x>=0&&f>=0&&y>=0&&!s&&r.add(x,f,y),x=n.add(a.x,a.y,-c.x,-c.y,0,-1,e),x>=0&&f>=0&&y>=0&&!s&&r.add(x,f,y))}x>=0&&f>=0&&d>=0&&!p&&r.add(x,f,d),x>=0&&d>=0&&g>=0&&!p&&r.add(x,g,d),this._outlineIndexCount+=3*(r.index-i)}}_processFill(t,e,n,r,i){let s;e.length>1&&(s=[]);let o=0;for(const n of e)0!==o&&s.push(o),o+=t[n].length;const a=2*o,l=B.A.acquire();for(const n of e){const e=t[n],r=e.length;for(let t=0;t<r;++t)l.push(e[t].x,e[t].y)}const h=(0,E.e)(l,s,2);if(E.e.deviation(l,s,2,h)>0){const r=e.map(e=>t[e].length),{buffer:s,vertexCount:o}=(0,I.QT)(l,r);if(o>0){const t=this._fillVertexBuffer.index;for(let t=0;t<o;t++)this._fillVertexBuffer.add(s[2*t],s[2*t+1],n);for(let e=0;e<o;e+=3){const n=t+e;this._fillIndexBuffer.add(n,n+1,n+2)}if(void 0!==i){const t=this._patternMap,e=t.get(i);e?e[1]+=o:t.set(i,[this._fillIndexStart+this._fillIndexCount,o])}this._fillIndexCount+=o}}else{const t=h.length;if(t>0){const e=this._fillVertexBuffer.index;let r=0;for(;r<a;)this._fillVertexBuffer.add(l[r++],l[r++],n);let s=0;for(;s<t;)this._fillIndexBuffer.add(e+h[s++],e+h[s++],e+h[s++]);if(void 0!==i){const e=this._patternMap,n=e.get(i);n?n[1]+=t:e.set(i,[this._fillIndexStart+this._fillIndexCount,t])}this._fillIndexCount+=t}}B.A.release(l)}_isClipEdge(t,e){return t.x===e.x?t.x<=-64||t.x>=4160:t.y===e.y&&(t.y<=-64||t.y>=4160)}static _area(t){let e=0;const n=t.length-1;for(let r=0;r<n;r++)e+=(t[r].x-t[r+1].x)*(t[r].y+t[r+1].y);return e+=(t[n].x-t[0].x)*(t[n].y+t[0].y),.5*e}}var R=n(83773);class N extends L{constructor(t,e,n,r,i){super(t,e,n),this.type=2,this._tessellationOptions={pixelCoordRatio:8,halfWidth:0,offset:0},this._patternMap=new Map,this.tessellationProperties={_lineVertexBuffer:null,_lineIndexBuffer:null,_ddValues:null},this.tessellationProperties._lineVertexBuffer=r,this.tessellationProperties._lineIndexBuffer=i,this._lineTessellator=new R.i(z(this.tessellationProperties),U(this.tessellationProperties),t.canUseThinTessellation)}get lineIndexStart(){return this._lineIndexStart}get lineIndexCount(){return this._lineIndexCount}getResources(t,e,n){const r=this.layer,i=this.zoom,s=r.getPaintProperty("line-pattern"),o=r.getPaintProperty("line-dasharray"),a=r.getLayoutProperty("line-cap");if(!s&&!o)return;const l=a?.getValue(i)||0,h=a?.isDataDriven,c=s?.isDataDriven,u=o?.isDataDriven;if(c||u)for(const t of this._features)e(c?s.getValue(i,t):this._getDashArrayKey(t,i,r,o,h,a,l));else if(s)e(s.getValue(i));else if(o){const t=o.getValue(i);e(r.getDashKey(t,l))}}processFeatures(t){this._lineIndexStart=3*this.tessellationProperties._lineIndexBuffer.index,this._lineIndexCount=0;const e=this.layer,n=this.zoom,r=this._features,i=this._tessellationOptions,{hasDataDrivenLine:s,lineMaterial:o}=e;t&&t.setExtent(this.layerExtent);const a=e.getPaintProperty("line-pattern"),l=e.getPaintProperty("line-dasharray"),h=a?.isDataDriven,c=l?.isDataDriven;let u;u=e.getLayoutProperty("line-cap");const x=u?.isDataDriven?u:null,f=x?null:e.getLayoutValue("line-cap",n),y=f||0,d=!!x;u=e.getLayoutProperty("line-join");const g=u?.isDataDriven?u:null,p=g?null:e.getLayoutValue("line-join",n);u=e.getLayoutProperty("line-miter-limit");const _=u?.isDataDriven?u:null,m=_?null:e.getLayoutValue("line-miter-limit",n);u=e.getLayoutProperty("line-round-limit");const I=u?.isDataDriven?u:null,b=I?null:e.getLayoutValue("line-round-limit",n);u=e.getPaintProperty("line-width");const w=u?.isDataDriven?u:null,v=w?null:e.getPaintValue("line-width",n);u=e.getPaintProperty("line-offset");const M=u?.isDataDriven?u:null,P=M?null:e.getPaintValue("line-offset",n);if(h||c){const s=[];for(const i of r){const r=h?a.getValue(n,i):this._getDashArrayKey(i,n,e,l,d,x,y),c=this._spriteInfo[r];if(!c?.rect)continue;const u=o.encodeAttributes(i,n,e,c),T=i.getGeometry(t);s.push({ddAttributes:u,page:c.page,cap:x?x.getValue(n,i):f,join:g?g.getValue(n,i):p,miterLimit:_?_.getValue(n,i):m,roundLimit:I?I.getValue(n,i):b,halfWidth:.5*(w?w.getValue(n,i):v),offset:M?M.getValue(n,i):P,geometry:T})}s.sort((t,e)=>t.page-e.page),i.textured=!0;for(const{ddAttributes:t,page:e,cap:n,join:r,miterLimit:o,roundLimit:a,halfWidth:l,offset:h,geometry:c}of s)i.capType=n,i.joinType=r,i.miterLimit=o,i.roundLimit=a,i.halfWidth=l,i.offset=h,this._processFeature(c,t,e)}else{if(a){const t=a.getValue(n),e=this._spriteInfo[t];if(!e?.rect)return}i.textured=!(!a&&!l),i.capType=f,i.joinType=p,i.miterLimit=m,i.roundLimit=b,i.halfWidth=.5*v,i.offset=P;for(const a of r){const r=s?o.encodeAttributes(a,n,e):null;x&&(i.capType=x.getValue(n,a)),g&&(i.joinType=g.getValue(n,a)),_&&(i.miterLimit=_.getValue(n,a)),I&&(i.roundLimit=I.getValue(n,a)),w&&(i.halfWidth=.5*w.getValue(n,a)),M&&(i.offset=M.getValue(n,a));const l=a.getGeometry(t);this._processFeature(l,r)}}}serialize(){let t=6;t+=this.layerUIDs.length,t+=this.tessellationProperties._lineVertexBuffer.array.length,t+=this.tessellationProperties._lineIndexBuffer.array.length,t+=3*this._patternMap.size+1;const e=new Uint32Array(t),n=new Int32Array(e.buffer);let r=0;e[r++]=this.type,e[r++]=this.layerUIDs.length;for(let t=0;t<this.layerUIDs.length;t++)e[r++]=this.layerUIDs[t];e[r++]=this._lineIndexStart,e[r++]=this._lineIndexCount;const i=this._patternMap,s=i.size;if(e[r++]=s,s>0)for(const[t,[n,s]]of i)e[r++]=t,e[r++]=n,e[r++]=s;e[r++]=this.tessellationProperties._lineVertexBuffer.array.length;for(let t=0;t<this.tessellationProperties._lineVertexBuffer.array.length;t++)n[r++]=this.tessellationProperties._lineVertexBuffer.array[t];e[r++]=this.tessellationProperties._lineIndexBuffer.array.length;for(let t=0;t<this.tessellationProperties._lineIndexBuffer.array.length;t++)e[r++]=this.tessellationProperties._lineIndexBuffer.array[t];return e.buffer}_processFeature(t,e,n){if(!t)return;const r=t.length;for(let i=0;i<r;i++)this._processGeometry(t[i],e,n)}_processGeometry(t,e,n){if(t.length<2)return;let r,i,s=t[0],o=1;for(;o<t.length;)r=t[o].x-s.x,i=t[o].y-s.y,r*r+i*i<1e-6?t.splice(o,1):(s=t[o],++o);if(t.length<2)return;const a=this.tessellationProperties._lineIndexBuffer,l=3*a.index;this._tessellationOptions.initialDistance=0,this._tessellationOptions.wrapDistance=65535,this.tessellationProperties._ddValues=e,this._lineTessellator.tessellate(t,this._tessellationOptions);const h=3*a.index-l;if(void 0!==n){const t=this._patternMap,e=t.get(n);e?e[1]+=h:t.set(n,[l+this._lineIndexCount,h])}this._lineIndexCount+=h}_getDashArrayKey(t,e,n,r,i,s,o){const a=i?s.getValue(e,t):o,l=r.getValue(e,t);return n.getDashKey(l,a)}}const z=t=>(e,n,r,i,s,o,a,l,h,c,u)=>(t._lineVertexBuffer.add(e,n,a,l,r,i,s,o,h,c,u,t._ddValues),t._lineVertexBuffer.index-1),U=t=>(e,n,r)=>{t._lineIndexBuffer.add(e,n,r)};var F=n(32488),O=n(97768),G=n(799),Z=n(36745),Y=n(78957),W=n(92722);function q(t){let e=0;for(let n=0,r=t.length-1;n<t.length;r=n++)e+=(t[r].x-t[n].x)*(t[n].y+t[r].y);return.5*e}var K=n(4264);function j(t,e){return t.iconMosaicItem&&e.iconMosaicItem?t.iconMosaicItem.page===e.iconMosaicItem.page?0:t.iconMosaicItem.page-e.iconMosaicItem.page:t.iconMosaicItem&&!e.iconMosaicItem?1:!t.iconMosaicItem&&e.iconMosaicItem?-1:0}class H extends L{constructor(t,e,n,r,i,s,o,a,l){super(e,n,l.getSpriteItems()),this.type=3,this._markerMap=new Map,this._glyphMap=new Map,this._glyphBufferDataStorage=new Map,this._isIconSDF=!1,this._sourceTileKey=t,this._iconVertexBuffer=r,this._iconIndexBuffer=i,this._textVertexBuffer=s,this._textIndexBuffer=o,this._placementEngine=a,this._workerTileHandler=l}get markerPageMap(){return this._markerMap}get glyphsPageMap(){return this._glyphMap}get symbolInstances(){return this._symbolInstances}static{this._bidiEngine=new F.A}getResources(t,e,n){const r=this.layer,i=this.zoom;t&&t.setExtent(this.layerExtent);const s=r.getLayoutProperty("icon-image"),o=r.getLayoutProperty("text-field");let a=r.getLayoutProperty("text-transform"),l=r.getLayoutProperty("text-font");const h=[];let c,u,x,f;s&&!s.isDataDriven&&(c=s.getValue(i)),o&&!o.isDataDriven&&(u=o.getValue(i)),a&&a.isDataDriven||(x=r.getLayoutValue("text-transform",i),a=null),l&&l.isDataDriven||(f=r.getLayoutValue("text-font",i),l=null);for(const y of this._features){const d=y.getGeometry(t);if(!d||0===d.length)continue;let g,p;s&&(g=s.isDataDriven?s.getValue(i,y):this._replaceKeys(c,y.values),g&&e(g));let _=!1;if(o&&(p=o.isDataDriven?o.getValue(i,y):this._replaceKeys(u,y.values),p)){switch(p=p.replaceAll("\\n","\n"),a&&(x=a.getValue(i,y)),x){case 2:p=p.toLowerCase();break;case 1:p=p.toUpperCase()}if(H._bidiEngine.hasBidiChar(p)){let t;t="rtl"===H._bidiEngine.checkContextual(p)?"IDNNN":"ICNNN",p=H._bidiEngine.bidiTransform(p,t,"VLYSN"),_=!0}if(p.length>0){l&&(f=l.getValue(i,y));for(const t of f){let e=n[t];e||(e=n[t]=new Set);for(const t of p){const n=t.codePointAt(0);null!=n&&e.add(n)}}}}if(!g&&!p)continue;const m=r.getLayoutValue("symbol-sort-key",i,y),I={feature:y,sprite:g,label:p,rtl:_,geometry:d,hash:(p?(0,G.Wm)(p):0)^(g?(0,G.Wm)(g):0),priority:m,textFont:f};h.push(I)}this._symbolFeatures=h}processFeatures(t){t&&t.setExtent(this.layerExtent);const e=this.layer,n=this.zoom,r=e.getLayoutValue("symbol-placement",n),i=0!==r,s=8*e.getLayoutValue("symbol-spacing",n),a=e.getLayoutProperty("icon-image"),l=e.getLayoutProperty("text-field"),h=a?new K.aR(e,n,i):null,c=l?new K.uU(e,n,i):null,u=this._workerTileHandler;let f;a&&(f=u.getSpriteItems()),this._iconIndexStart=3*this._iconIndexBuffer.index,this._textIndexStart=3*this._textIndexBuffer.index,this._iconIndexCount=0,this._textIndexCount=0,this._markerMap.clear(),this._glyphMap.clear();const d=[];let g=1;c?.size&&(g=c.size/24);const p=c?c.maxAngle*o.os:0,_=c?8*c.size:0;for(const t of this._symbolFeatures){let o,a;h&&f&&t.sprite&&(o=f[t.sprite],o&&o.sdf&&(this._isIconSDF=!0)),o&&h.update(n,t.feature);let l=0;const m=t.label;if(m){(0,O.Lw)(c),c.update(n,t.feature);const e=i&&0===c.rotationAlignment?c.keepUpright:c.writingMode&&c.writingMode.includes(1);let r=.5;switch(c.anchor){case 5:case 1:case 7:r=0;break;case 6:case 2:case 8:r=1}let s=.5;switch(c.anchor){case 5:case 3:case 6:s=0;break;case 7:case 4:case 8:s=1}let o=.5;switch(c.justify){case 0:o=r;break;case 1:o=0;break;case 3:o=1}const h=24*c.letterSpacing,f=i?0:24*c.maxWidth,y=24*c.lineHeight,d=t.textFont.map(t=>u.getGlyphItems(t));if(a=new x(d,f,y,h,r,s,o).getShaping(m,t.rtl,e),a&&a.length>0){let t=1e30,e=-1e30;for(const n of a)t=Math.min(t,n.x),e=Math.max(e,n.x);l=(e-t+48)*g*8}}const I=H._getPlacementCandidates(e,r,t.feature,t.geometry);for(const e of I){let{vertices:n}=e;const u=[];if(1===r){if(a?.length&&c?.size){const t=8*c.size*(2+Math.min(2,4*Math.abs(c.offset[1])));n=H._smoothVertices(n,t)}H._pushAnchors(u,n,s,l)}else 2===r?H._pushCenterAnchor(u,n):3===t.feature.type?e.anchor?u.push(e.anchor):H._pushCentroid(u,n):u.push(new y(n[0].x,n[0].y));for(const e of u){if(e.x<0||e.x>4096||e.y<0||e.y>4096)continue;if(i&&l>0&&0===c?.rotationAlignment&&!H._honorsTextMaxAngle(n,e,l,p,_))continue;const r={shaping:a,line:n,iconMosaicItem:o,anchor:e,symbolFeature:t,textColliders:[],iconColliders:[],textVertexRanges:[],iconVertexRanges:[]};d.push(r),this._processFeature(r,h,c)}}}d.sort(j),this._addPlacedGlyphs(),this._symbolInstances=d}serialize(){let t=14;t+=this.layerUIDs.length,t+=3*this.markerPageMap.size,t+=3*this.glyphsPageMap.size,t+=H._symbolsSerializationLength(this._symbolInstances),t+=this._iconVertexBuffer.array.length,t+=this._iconIndexBuffer.array.length,t+=this._textVertexBuffer.array.length,t+=this._textIndexBuffer.array.length;const e=new Uint32Array(t),n=new Int32Array(e.buffer),r=new Float32Array(e.buffer),[i,s,o]=this._sourceTileKey.split("/");let a=0;e[a++]=this.type,e[a++]=this.layerUIDs.length;for(let t=0;t<this.layerUIDs.length;t++)e[a++]=this.layerUIDs[t];e[a++]=this._isIconSDF?1:0,e[a++]=parseFloat(i),e[a++]=parseFloat(s),e[a++]=parseFloat(o),e[a++]=this.markerPageMap.size;for(const[t,[n,r]]of this.markerPageMap)e[a++]=t,e[a++]=n,e[a++]=r;e[a++]=this.glyphsPageMap.size;for(const[t,[n,r]]of this.glyphsPageMap)e[a++]=t,e[a++]=n,e[a++]=r;e[a++]=this._iconVertexBuffer.index/4,e[a++]=this._textVertexBuffer.index/4,a=H.serializeSymbols(e,n,r,a,this._symbolInstances),e[a++]=this._iconVertexBuffer.array.length;for(let t=0;t<this._iconVertexBuffer.array.length;t++)n[a++]=this._iconVertexBuffer.array[t];e[a++]=this._iconIndexBuffer.array.length;for(let t=0;t<this._iconIndexBuffer.array.length;t++)e[a++]=this._iconIndexBuffer.array[t];e[a++]=this._textVertexBuffer.array.length;for(let t=0;t<this._textVertexBuffer.array.length;t++)n[a++]=this._textVertexBuffer.array[t];e[a++]=this._textIndexBuffer.array.length;for(let t=0;t<this._textIndexBuffer.array.length;t++)e[a++]=this._textIndexBuffer.array[t];return e.buffer}static _symbolsSerializationLength(t){let e=0;e+=1;for(const n of t||[]){e+=5,e+=1;for(const t of n.textColliders)e+=10;for(const t of n.iconColliders)e+=10;e+=1,e+=2*n.textVertexRanges.length,e+=1,e+=2*n.iconVertexRanges.length}return e}static serializeSymbols(t,e,n,r,i){i=i||[],e[r++]=i.length;for(const t of i){e[r++]=t.anchor.x,e[r++]=t.anchor.y,e[r++]=t.symbolFeature.hash,e[r++]=t.symbolFeature.priority,e[r++]=t.symbolFeature.feature.featureIndex,e[r++]=t.textColliders.length+t.iconColliders.length;for(const i of t.textColliders)e[r++]=i.xTile,e[r++]=i.yTile,e[r++]=i.dxPixels,e[r++]=i.dyPixels,e[r++]=i.hard?1:0,e[r++]=i.partIndex,n[r++]=i.minLod,n[r++]=i.maxLod,e[r++]=i.width,e[r++]=i.height;for(const i of t.iconColliders)e[r++]=i.xTile,e[r++]=i.yTile,e[r++]=i.dxPixels,e[r++]=i.dyPixels,e[r++]=i.hard?1:0,e[r++]=i.partIndex,n[r++]=i.minLod,n[r++]=i.maxLod,e[r++]=i.width,e[r++]=i.height;e[r++]=t.textVertexRanges.length;for(const[n,i]of t.textVertexRanges)e[r++]=n,e[r++]=i;e[r++]=t.iconVertexRanges.length;for(const[n,i]of t.iconVertexRanges)e[r++]=n,e[r++]=i}return r}_replaceKeys(t,e){return t.replaceAll(/{([^{}]+)}/g,(t,n)=>n in e?e[n]:"")}_processFeature(t,e,n){const{line:r,iconMosaicItem:i,shaping:s,anchor:a}=t,l=this.zoom,h=this.layer,c=!!i;let u=!0;c&&(u=e?.optional||!i);const x=s&&s.length>0,f=!x||n?.optional;let y,d;if(c&&(y=this._placementEngine.getIconPlacement(a,i,e)),(y||u)&&(x&&(d=this._placementEngine.getTextPlacement(a,s,r,n)),d||f)){if(y&&d||(f||u?f||d?u||y||(d=null):y=null:(y=null,d=null)),d){const e=h.hasDataDrivenText?h.textMaterial.encodeAttributes(t.symbolFeature.feature,l,h):null;if(this._storePlacedGlyphs(t,d.shapes,l,n.rotationAlignment,e),d.textColliders){t.textColliders=d.textColliders;for(const t of d.textColliders){t.minLod=Math.max(l+(0,o.p6)(t.minLod),0),t.maxLod=Math.min(l+(0,o.p6)(t.maxLod),25);const e=t.angle;if(e){const n=Math.cos(e),r=Math.sin(e),i=t.dxPixels*n-t.dyPixels*r,s=t.dxPixels*r+t.dyPixels*n,o=(t.dxPixels+t.width)*n-t.dyPixels*r,a=(t.dxPixels+t.width)*r+t.dyPixels*n,l=t.dxPixels*n-(t.dyPixels+t.height)*r,h=t.dxPixels*r+(t.dyPixels+t.height)*n,c=(t.dxPixels+t.width)*n-(t.dyPixels+t.height)*r,u=(t.dxPixels+t.width)*r+(t.dyPixels+t.height)*n,x=Math.min(i,o,l,c),f=Math.max(i,o,l,c),y=Math.min(s,a,h,u),d=Math.max(s,a,h,u);t.dxPixels=x,t.dyPixels=y,t.width=f-x,t.height=d-y}}}}if(y){const n=h.hasDataDrivenIcon?h.iconMaterial.encodeAttributes(t.symbolFeature.feature,l,h):null;if(this._addPlacedIcons(t,y.shapes,l,i.page,1===e.rotationAlignment,n),y.iconColliders){t.iconColliders=y.iconColliders;for(const t of y.iconColliders){t.minLod=Math.max(l+(0,o.p6)(t.minLod),0),t.maxLod=Math.min(l+(0,o.p6)(t.maxLod),25);const e=t.angle;if(e){const n=Math.cos(e),r=Math.sin(e),i=t.dxPixels*n-t.dyPixels*r,s=t.dxPixels*r+t.dyPixels*n,o=(t.dxPixels+t.width)*n-t.dyPixels*r,a=(t.dxPixels+t.width)*r+t.dyPixels*n,l=t.dxPixels*n-(t.dyPixels+t.height)*r,h=t.dxPixels*r+(t.dyPixels+t.height)*n,c=(t.dxPixels+t.width)*n-(t.dyPixels+t.height)*r,u=(t.dxPixels+t.width)*r+(t.dyPixels+t.height)*n,x=Math.min(i,o,l,c),f=Math.max(i,o,l,c),y=Math.min(s,a,h,u),d=Math.max(s,a,h,u);t.dxPixels=x,t.dyPixels=y,t.width=f-x,t.height=d-y}}}}}}_addPlacedIcons(t,e,n,r,i,s){const a=Math.max(n-1,0),l=this._iconVertexBuffer,h=this._iconIndexBuffer,c=this._markerMap;for(const u of e){const e=i?0:Math.max(n+(0,o.p6)(u.minzoom),a),x=i?25:Math.min(n+(0,o.p6)(u.maxzoom),25);if(x<=e)continue;const f=u.tl,y=u.tr,d=u.bl,g=u.br,p=u.mosaicRect,_=u.labelAngle,m=u.minAngle,I=u.maxAngle,b=u.anchor,w=l.index,v=p.x,M=p.y,P=v+p.width,T=M+p.height,k=l.index;l.add(b.x,b.y,f.x,f.y,v,M,_,m,I,e,x,s),l.add(b.x,b.y,y.x,y.y,P,M,_,m,I,e,x,s),l.add(b.x,b.y,d.x,d.y,v,T,_,m,I,e,x,s),l.add(b.x,b.y,g.x,g.y,P,T,_,m,I,e,x,s),t.iconVertexRanges.length>0&&t.iconVertexRanges[0][0]+t.iconVertexRanges[0][1]===k?t.iconVertexRanges[0][1]+=4:t.iconVertexRanges.push([k,4]),h.add(w,w+1,w+2),h.add(w+1,w+2,w+3),c.has(r)?c.get(r)[1]+=6:c.set(r,[this._iconIndexStart+this._iconIndexCount,6]),this._iconIndexCount+=6}}_addPlacedGlyphs(){const t=this._textVertexBuffer,e=this._textIndexBuffer,n=this._glyphMap;for(const[r,i]of this._glyphBufferDataStorage)for(const s of i){const i=t.index,o=s.symbolInstance,a=s.ddAttributes,l=t.index;t.add(s.glyphAnchor[0],s.glyphAnchor[1],s.tl[0],s.tl[1],s.xmin,s.ymin,s.labelAngle,s.minAngle,s.maxAngle,s.minLod,s.maxLod,a),t.add(s.glyphAnchor[0],s.glyphAnchor[1],s.tr[0],s.tr[1],s.xmax,s.ymin,s.labelAngle,s.minAngle,s.maxAngle,s.minLod,s.maxLod,a),t.add(s.glyphAnchor[0],s.glyphAnchor[1],s.bl[0],s.bl[1],s.xmin,s.ymax,s.labelAngle,s.minAngle,s.maxAngle,s.minLod,s.maxLod,a),t.add(s.glyphAnchor[0],s.glyphAnchor[1],s.br[0],s.br[1],s.xmax,s.ymax,s.labelAngle,s.minAngle,s.maxAngle,s.minLod,s.maxLod,a),o.textVertexRanges.length>0&&o.textVertexRanges[0][0]+o.textVertexRanges[0][1]===l?o.textVertexRanges[0][1]+=4:o.textVertexRanges.push([l,4]),e.add(i,i+1,i+2),e.add(i+1,i+2,i+3),n.has(r)?n.get(r)[1]+=6:n.set(r,[this._textIndexStart+this._textIndexCount,6]),this._textIndexCount+=6}this._glyphBufferDataStorage.clear()}_storePlacedGlyphs(t,e,n,r,i){const s=Math.max(n-1,0),a=1===r;let l,h,c,u,x,f,y,d,g,p,_;for(const r of e)l=a?0:Math.max(n+(0,o.p6)(r.minzoom),s),h=a?25:Math.min(n+(0,o.p6)(r.maxzoom),25),h<=l||(c=r.tl,u=r.tr,x=r.bl,f=r.br,y=r.labelAngle,d=r.minAngle,g=r.maxAngle,p=r.anchor,_=r.mosaicRect,this._glyphBufferDataStorage.has(r.page)||this._glyphBufferDataStorage.set(r.page,[]),this._glyphBufferDataStorage.get(r.page).push({glyphAnchor:[p.x,p.y],tl:[c.x,c.y],tr:[u.x,u.y],bl:[x.x,x.y],br:[f.x,f.y],xmin:_.x,ymin:_.y,xmax:_.x+_.width,ymax:_.y+_.height,labelAngle:y,minAngle:d,maxAngle:g,minLod:l,maxLod:h,placementLod:s,symbolInstance:t,ddAttributes:i}))}static _pushAnchors(t,e,n,r){n+=r;let i=0;const a=e.length-1;for(let t=0;t<a;t++)i+=s.bR.distance(e[t],e[t+1]);let l=r||n;if(l*=.5,i<=l)return;const h=l/i;let c=0,u=-(n=i/Math.max(Math.round(i/n),1))/2;const x=e.length-1;for(let r=0;r<x;r++){const i=e[r],s=e[r+1],a=s.x-i.x,l=s.y-i.y,x=Math.sqrt(a*a+l*l);let f;for(;u+n<c+x;){u+=n;const e=(u-c)/x,d=(0,o.GW)(i.x,s.x,e),g=(0,o.GW)(i.y,s.y,e);void 0===f&&(f=Math.atan2(l,a)),t.push(new y(d,g,f,r,h))}c+=x}}static _pushCenterAnchor(t,e){let n=0;const r=e.length-1;for(let t=0;t<r;t++)n+=s.bR.distance(e[t],e[t+1]);const i=n/2;let a=0;const l=e.length-1;for(let n=0;n<l;n++){const r=e[n],s=e[n+1],l=s.x-r.x,h=s.y-r.y,c=Math.sqrt(l*l+h*h);if(i<a+c){const e=(i-a)/c,u=(0,o.GW)(r.x,s.x,e),x=(0,o.GW)(r.y,s.y,e),f=Math.atan2(h,l);return void t.push(new y(u,x,f,n,0))}a+=c}}static _deviation(t,e,n){const r=(e.x-t.x)*(n.x-e.x)+(e.y-t.y)*(n.y-e.y),i=(e.x-t.x)*(n.y-e.y)-(e.y-t.y)*(n.x-e.x);return Math.atan2(i,r)}static _honorsTextMaxAngle(t,e,n,r,i){let o=0;const a=n/2;let l=new s.bR(e.x,e.y),h=e.segment+1;for(;o>-a;){if(--h,h<0)return!1;o-=s.bR.distance(t[h],l),l=t[h]}o+=s.bR.distance(t[h],t[h+1]);const c=[];let u=0;const x=t.length;for(;o<a;){const e=t[h];let n,a=h;do{if(++a,a===x)return!1;n=t[a]}while(n.isEqual(e));let l,f=a;do{if(++f,f===x)return!1;l=t[f]}while(l.isEqual(n));const y=this._deviation(e,n,l);for(c.push({deviation:y,distToAnchor:o}),u+=y;o-c[0].distToAnchor>i;)u-=c.shift().deviation;if(Math.abs(u)>r)return!1;o+=s.bR.distance(n,l),h=a}return!0}static _smoothVertices(t,e){if(e<=0)return t;let n=t.length;if(n<3)return t;const r=[];let i=0,o=0;r.push(0);for(let e=1;e<n;e++){const n=s.bR.distance(t[e],t[e-1]);n>0&&(i+=n,r.push(i),o++,o!==e&&(t[o]=t[e]))}if(n=o+1,n<3)return t;e=Math.min(e,.2*i);const a=t[0].x,l=t[0].y,h=t[n-1].x,c=t[n-1].y,u=s.bR.sub(t[0],t[1]);u.normalize(),t[0].x+=e*u.x,t[0].y+=e*u.y,u.assignSub(t[n-1],t[n-2]),u.normalize(),t[n-1].x+=e*u.x,t[n-1].y+=e*u.y,r[0]-=e,r[n-1]+=e;const x=[];x.push(new s.bR(a,l));const f=1e-6,y=.5*e;for(let i=1;i<n-1;i++){let o=0,a=0,l=0;for(let n=i-1;n>=0;n--){const s=y+r[n+1]-r[i];if(s<0)break;const h=r[n+1]-r[n],c=r[i]-r[n]<y?1:s/h;if(c<f)break;const u=c*c,x=c*s-.5*u*h,d=c*h/e,g=t[n+1],p=t[n].x-g.x,_=t[n].y-g.y;o+=d/x*(g.x*c*s+.5*u*(s*p-h*g.x)-u*c*h*p/3),a+=d/x*(g.y*c*s+.5*u*(s*_-h*g.y)-u*c*h*_/3),l+=d}for(let s=i+1;s<n;s++){const n=y-r[s-1]+r[i];if(n<0)break;const h=r[s]-r[s-1],c=r[s]-r[i]<y?1:n/h;if(c<f)break;const u=c*c,x=c*n-.5*u*h,d=c*h/e,g=t[s-1],p=t[s].x-g.x,_=t[s].y-g.y;o+=d/x*(g.x*c*n+.5*u*(n*p-h*g.x)-u*c*h*p/3),a+=d/x*(g.y*c*n+.5*u*(n*_-h*g.y)-u*c*h*_/3),l+=d}x.push(new s.bR(o/l,a/l))}return x.push(new s.bR(h,c)),t[0].x=a,t[0].y=l,t[n-1].x=h,t[n-1].y=c,x}static _getPlacementCandidates(t,e,n,r){if(0!==e||3!==n.type||"geojson"!==t.sourceType)return r.map(t=>({anchor:null,vertices:t}));const i=function(t){let e=null,n=0,r=[],i=0;for(const s of t){const t=q(s);t>0?(i>n&&(n=i,e=r),r=[s],i=t):t<0&&r.length>0&&(r.push(s),i+=t)}if(i>n&&(e=r),!e)return null;const s=e.map(t=>t.length),o=[];for(const t of e)for(const e of t)o.push(e.x,e.y);const a=Z.z.fromOptimized(new W.A(s,o),"esriGeometryPolygon"),l=(0,Y.R)(a);return l?{x:l[0],y:l[1],vertices:e[0]}:null}(r);return i?[{anchor:new y(i.x,i.y),vertices:i.vertices}]:[]}static _pushCentroid(t,e){const n=4096,r=4096,i=e.length-1;let s=0,o=0,a=0,l=e[0].x,h=e[0].y;l>n&&(l=n),l<0&&(l=0),h>r&&(h=r),h<0&&(h=0);for(let t=1;t<i;t++){let i=e[t].x,c=e[t].y,u=e[t+1].x,x=e[t+1].y;i>n&&(i=n),i<0&&(i=0),c>r&&(c=r),c<0&&(c=0),u>n&&(u=n),u<0&&(u=0),x>r&&(x=r),x<0&&(x=0);const f=(i-l)*(x-h)-(u-l)*(c-h);s+=f*(l+i+u),o+=f*(h+c+x),a+=f}s/=3*a,o/=3*a,isNaN(s)||isNaN(o)||t.push(new y(s,o))}}class J{constructor(t,e,n,r,i,a,l){if(this._pbfTiles={},this._tileClippers={},this._client=n,this._tile=e,this._sourceDataMaxLOD=r,this._baseUrl=l,a){this._styleLayerUIDs=new Set;for(const t of a)this._styleLayerUIDs.add(t)}this._styleRepository=i,this._layers=this._styleRepository?.layers??[];const[h,c,u]=e.tileKey.split("/").map(parseFloat);this._level=h;const x=(0,o.IU)(this._level);for(const e of Object.keys(t)){const n=t[e];if(this._pbfTiles[e]=new m.A(new Uint8Array(n.protobuff),new DataView(n.protobuff)),n.refKey){const[t]=n.refKey.split("/").map(parseFloat),r=h-t;if(r>0){const t=(1<<r)-1,n=c&t,i=u&t;this._tileClippers[e]=new s.O3(r,n,i,8,x)}}this._tileClippers[e]||(this._tileClippers[e]=new s.Ox)}}_canParseStyleLayer(t){return!this._styleLayerUIDs||this._styleLayerUIDs.has(t)}async parse(t){const e=(0,I.If)(),n=this._initialize(t),{returnedBuckets:r}=n;this._processLayers(n),this._linkReferences(n),this._filterFeatures(n);const i=[],s=new Set,o=(t,e)=>{s.has(t)||(i.push({name:t,repeat:e}),s.add(t))},a={};for(const t of r)t.getResources(t.tileClipper,o,a);if(4===this._tile.status)return[];const l=this._fetchResources(i,a,t);return Promise.all([...l,e]).then(()=>this._processFeatures(n.returnedBuckets))}_initialize(t){const e=t?.signal;return{signal:e,sourceNameToTileData:this._parseTileData(this._pbfTiles),layers:this._layers,zoom:this._level,sourceNameToTileClipper:this._tileClippers,sourceNameToUniqueSourceLayerBuckets:{},sourceNameToUniqueSourceLayers:{},returnedBuckets:[],layerIdToBucket:{},referencerUIDToReferencedId:new Map}}_processLayers(t){const{sourceNameToTileData:e,zoom:n,layers:r,sourceNameToTileClipper:i,sourceNameToUniqueSourceLayerBuckets:s,sourceNameToUniqueSourceLayers:o,returnedBuckets:a,layerIdToBucket:l,referencerUIDToReferencedId:h}=t,c=this._sourceDataMaxLOD;for(let t=r.length-1;t>=0;t--){const u=r[t];if(n<c){if(u.minzoom&&n<Math.floor(u.minzoom)||u.maxzoom&&n>=u.maxzoom)continue}else if(u.maxzoom&&n>=u.maxzoom)continue;if(0===u.type||!this._canParseStyleLayer(u.uid)||!e[u.source]||!i[u.source])continue;const x=e[u.source],f=i[u.source],y=u.sourceLayer,d=x[y];if(d){let t=o[u.source];if(t||(t=o[u.source]=new Set),t.add(u.sourceLayer),u.refLayerId)h.set(u.uid,u.refLayerId);else{const t=this._createBucket(u);if(t){t.layerUIDs=[u.uid],t.layerExtent=d.extent,t.tileClipper=f;let e=s[u.source];e||(e=s[u.source]={});let n=e[y];n||(n=e[y]=[]),n.push(t),a.push(t),l[u.id]=t}}}}}_linkReferences(t){const{layerIdToBucket:e,referencerUIDToReferencedId:n}=t;n.forEach((t,n)=>{e[t]&&e[t].layerUIDs.push(n)})}_filterFeatures(t){const{signal:e,sourceNameToTileData:n,sourceNameToUniqueSourceLayerBuckets:i,sourceNameToUniqueSourceLayers:s}=t,o=10*this._level,a=10*(this._level+1),l=[],h=[];for(const t of Object.keys(s))s[t].forEach(e=>{l.push(e),h.push(t)});for(let t=0;t<l.length;t++){const s=h[t],c=l[t];if(!n[s]||!i[s])continue;const u=n[s][c],x=i[s][c];if(!x||0===x.length)continue;if((0,r.G4)(e))return;let f=0;const y=u.getData();for(;y.nextTag(2);){const t=y.getMessage(),e=new b(t,u,f++);t.release();const n=e.values;if(n){const t=n._minzoom;if(t&&t>=a)continue;const e=n._maxzoom;if(e&&e<=o)continue}for(const t of x)t.pushFeature(e)}}}_fetchResources(t,e,n){const r=[],i=this._tile.getWorkerTileHandler();let s,o;t.length>0&&(s=i.fetchSprites(t,this._client,n),r.push(s));for(const t in e){const s=e[t];s.size>0&&(o=i.fetchGlyphs(this._baseUrl,t,s,n),r.push(o))}return r}_processFeatures(t){const e=t.filter(t=>t.hasFeatures()||this._canParseStyleLayer(t.layer.uid));for(const t of e)t.processFeatures(t.tileClipper);return e}_parseTileData(t){const e={};for(const n of Object.keys(t)){const r=t[n],i={};for(;r.next();)switch(r.tag()){case 3:{const t=r.getMessage(),e=new M(t);t.release(),i[e.name]=e;break}default:r.skip()}e[n]=i}return e}_createBucket(t){switch(t.type){case 0:return null;case 1:return this._createFillBucket(t);case 2:return this._createLineBucket(t);case 4:return this._createCircleBucket(t);case 3:return this._createSymbolBucket(t)}}_createFillBucket(t){return new C(t,this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new k(t.fillMaterial.getStride()),new v,new S(t.outlineMaterial.getStride()),new v)}_createLineBucket(t){return new N(t,this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new T(t.lineMaterial.getStride()),new v)}_createCircleBucket(t){return new D(t,this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new A(t.circleMaterial.getStride()),new v)}_createSymbolBucket(t){const e=this._tile;return new H(e.tileKey,t,this._level,new V(t.iconMaterial.getStride()),new v,new V(t.textMaterial.getStride()),new v,e.placementEngine,e.getWorkerTileHandler())}}class ${constructor(t,e,n,r){this.status=0,this.placementEngine=new _,this.tileKey=t,this.refKeys=e,this._workerTileHandler=n,this._styleRepository=r}release(){this.tileKey="",this.refKeys=null,this.status=0,this._workerTileHandler=null}async parse(t,e){const n=e?.signal;if(null!=n){const t=()=>{n.removeEventListener("abort",t),this.status=4};n.addEventListener("abort",t)}let i;const s={bucketsWithData:[],emptyBuckets:null};try{i=await this._parse(t,e)}catch(t){if((0,r.zf)(t))throw t;return{result:s,transferList:[]}}this.status=2;const o=s.bucketsWithData,a=[];for(const t of i)if(t.hasFeatures()){const e=t.serialize();o.push(e)}else a.push(t.layer.uid);const l=[...o];let h=null;return a.length>0&&(h=Uint32Array.from(a),l.push(h.buffer)),s.emptyBuckets=h,{result:s,transferList:l}}setObsolete(){this.status=4}getLayers(){return this._workerTileHandler.getLayers()}getWorkerTileHandler(){return this._workerTileHandler}async _parse(t,e){const n=t.sourceName2DataAndRefKey;return 0===Object.keys(n).length?[]:(this.status=3,new J(n,this,e.client,t.sourceDataMaxLOD,this._styleRepository,t.styleLayerUIDs,t.baseUrl).parse(e))}}var Q=n(45013);class X{constructor(){this._spriteInfo={},this._glyphInfo={},this._sourceDataMaxLOD=25}reset(){return this._spriteInfo={},this._glyphInfo={},Promise.resolve()}getLayers(){return this._styleRepository?.layers??[]}async createTileAndParse(t,e){const{key:n}=t,i={};for(const e of Object.keys(t.sourceName2DataAndRefKey)){const n=t.sourceName2DataAndRefKey[e];i[e]=n.refKey}const s=new $(n,i,this,this._styleRepository);this.initializeGlyphWorker(void 0,e);try{return await s.parse({...t,sourceDataMaxLOD:this._sourceDataMaxLOD},e)}catch(t){if(s.setObsolete(),s.release(),!(0,r.zf)(t))throw t;return null}}initializeGlyphWorker(t,e){return this._loaded??=(async()=>{const t=await e.client.invoke("openGlyphPorts"),n=await(0,i.N1)(t,{maxNumberOfConcurrentJobs:20});this._glyphWorker=n.createInvokeProxy()})()}updateStyle(t){if(!t||0===t.length||!this._styleRepository)return;const e=this._styleRepository;for(const n of t){const t=n.type,r=n.data;switch(t){case 0:e.setPaintProperties(r.layer,r.paint);break;case 1:e.setLayoutProperties(r.layer,r.layout);break;case 3:e.deleteStyleLayer(r.layer);break;case 2:e.setStyleLayer(r.layer,r.index);break;case 4:this._spriteInfo={}}}}setStyle(t){const{style:e,sourceDataMaxLOD:n}=t;this._styleRepository=new Q.A(e),this._sourceDataMaxLOD=n,this._spriteInfo={},this._glyphInfo={}}fetchSprites(t,e,n){const r=[],i=this._spriteInfo;for(const e of t)void 0===i[e.name]&&r.push(e);return 0===r.length?Promise.resolve():e.invoke("getSprites",r,{signal:n?.signal}).then(t=>{for(const e in t){const n=t[e];i[e]=n}})}getSpriteItems(){return this._spriteInfo}async fetchGlyphs(t,e,n,r){const i=[];let s=this._glyphInfo[e];if(s?n.forEach(t=>{s[t]||i.push(t)}):(s=this._glyphInfo[e]=[],n.forEach(t=>i.push(t))),0===i.length)return;if(await this._loaded,!this._glyphWorker)return void console.error("Failed to fetch glyphs: no worker connection");const o=String.fromCodePoint(...i),a=await this._glyphWorker.getGlyphItems(o,!1,t,e,!0,r);if(a)for(const t of a.glyphs)s[t.code]=t}getGlyphItems(t){return this._glyphInfo[t]}}},83773(t,e,n){function r(t,e){return t.x===e.x&&t.y===e.y}function i(t){if(!t)return;const e=t.length;if(e<=1)return;let n=0;for(let i=1;i<e;i++)r(t[i],t[n])||++n===i||(t[n]=t[i]);t.length=n+1}function s(t,e){return t.x=e.y,t.y=-e.x,t}function o(t,e){return t.x=-e.y,t.y=e.x,t}function a(t,e){return t.x=e.x,t.y=e.y,t}function l(t,e){return t.x=-e.x,t.y=-e.y,t}function h(t){return Math.sqrt(t.x*t.x+t.y*t.y)}function c(t,e){return t.x*e.y-t.y*e.x}function u(t,e){return t.x*e.x+t.y*e.y}function x(t,e,n,r){return t.x=e.x*n+e.y*r,t.y=e.x*r-e.y*n,t}n.d(e,{i:()=>f});class f{constructor(t,e,n){this._writeVertex=t,this._writeTriangle=e,this._canUseThinTessellation=n,this._prevNormal={x:void 0,y:void 0},this._nextNormal={x:void 0,y:void 0},this._textureNormalLeft={x:0,y:1},this._textureNormalRight={x:0,y:-1},this._textureNormal={x:void 0,y:void 0},this._joinNormal={x:void 0,y:void 0},this._inner={x:void 0,y:void 0},this._outer={x:void 0,y:void 0},this._roundStart={x:void 0,y:void 0},this._roundEnd={x:void 0,y:void 0},this._startBreak={x:void 0,y:void 0},this._endBreak={x:void 0,y:void 0},this._innerPrev={x:void 0,y:void 0},this._innerNext={x:void 0,y:void 0},this._bevelStart={x:void 0,y:void 0},this._bevelEnd={x:void 0,y:void 0},this._bevelMiddle={x:void 0,y:void 0}}tessellate(t,e,n=this._canUseThinTessellation){i(t),n&&e.halfWidth<1.05&&!e.offset?this._tessellateThin(t,e):this._tessellate(t,e)}_tessellateThin(t,e){if(t.length<2)return;const n=e.wrapDistance||65535;let r=e.initialDistance||0,i=!1,s=t[0].x,o=t[0].y;const a=t.length;for(let e=1;e<a;++e){i&&(i=!1,r=0);let a=t[e].x,l=t[e].y,h=a-s,c=l-o,u=Math.sqrt(h*h+c*c);if(h/=u,c/=u,r+u>n){i=!0;const t=(n-r)/u;u=n-r,a=(1-t)*s+t*a,l=(1-t)*o+t*l,--e}const x=this._writeVertex(s,o,0,0,h,c,c,-h,0,-1,r),f=this._writeVertex(s,o,0,0,h,c,-c,h,0,1,r);r+=u;const y=this._writeVertex(a,l,0,0,h,c,c,-h,0,-1,r),d=this._writeVertex(a,l,0,0,h,c,-c,h,0,1,r);this._writeTriangle(x,f,y),this._writeTriangle(f,y,d),s=a,o=l}}_tessellate(t,e){const n=t[0],i=t[t.length-1],f=r(n,i),y=f?3:2;if(t.length<y)return;const d=e.pixelCoordRatio,g=null!=e.capType?e.capType:0,p=null!=e.joinType?e.joinType:2,_=null!=e.miterLimit?Math.min(e.miterLimit,4):2,m=null!=e.roundLimit?Math.min(e.roundLimit,1.05):1.05,I=null!=e.halfWidth?e.halfWidth:2,b=!!e.textured;let w,v,M,P=null;const T=this._prevNormal,k=this._nextNormal;let S=-1,V=-1;const A=this._joinNormal;let L,D;const B=this._textureNormalLeft,E=this._textureNormalRight,C=this._textureNormal;let R=-1,N=-1;const z=e.wrapDistance||65535;let U=e.initialDistance||0;const F=this._writeVertex,O=this._writeTriangle,G=(t,e,n,r,i,s)=>{const o=F(v,M,L,D,n,r,t,e,i,s,U);return R>=0&&N>=0&&o>=0&&O(R,N,o),R=N,N=o,o};f&&(w=t[t.length-2],k.x=i.x-w.x,k.y=i.y-w.y,V=h(k),k.x/=V,k.y/=V);let Z=!1;for(let e=0;e<t.length;++e){if(Z&&(Z=!1,U=0),w&&(T.x=-k.x,T.y=-k.y,S=V,U+S>z&&(Z=!0)),Z){const n=(z-U)/S;S=z-U,w={x:(1-n)*w.x+n*t[e].x,y:(1-n)*w.y+n*t[e].y},--e}else w=t[e];v=w.x,M=w.y;const n=e<=0&&!Z,r=e===t.length-1;if(n||(U+=S),P=r?f?t[1]:null:t[e+1],P?(k.x=P.x-v,k.y=P.y-M,V=h(k),k.x/=V,k.y/=V):(k.x=void 0,k.y=void 0),!f){if(n){o(A,k),L=A.x,D=A.y,2===g&&(G(-k.y-k.x,k.x-k.y,k.x,k.y,0,-1),G(k.y-k.x,-k.x-k.y,k.x,k.y,0,1)),1===g&&(G(-k.y-k.x,k.x-k.y,k.x,k.y,-1,-1),G(k.y-k.x,-k.x-k.y,k.x,k.y,-1,1)),1!==g&&0!==g||(G(-k.y,k.x,k.x,k.y,0,-1),G(k.y,-k.x,k.x,k.y,0,1));continue}if(r){s(A,T),L=A.x,D=A.y,1!==g&&0!==g||(G(T.y,-T.x,-T.x,-T.y,0,-1),G(-T.y,T.x,-T.x,-T.y,0,1)),2===g&&(G(T.y-T.x,-T.x-T.y,-T.x,-T.y,0,-1),G(-T.y-T.x,T.x-T.y,-T.x,-T.y,0,1)),1===g&&(G(T.y-T.x,-T.x-T.y,-T.x,-T.y,1,-1),G(-T.y-T.x,T.x-T.y,-T.x,-T.y,1,1));continue}}let i,y,F=-c(T,k);if(Math.abs(F)<.01)u(T,k)>0?(A.x=T.x,A.y=T.y,F=1,i=Number.MAX_VALUE,y=!0):(o(A,k),F=1,i=1,y=!1);else{A.x=(T.x+k.x)/F,A.y=(T.y+k.y)/F,i=h(A);const t=(i-1)*I*d;y=i>4||t>S&&t>V}L=A.x,D=A.y;let O=p;switch(p){case 0:i<1.05&&(O=2);break;case 1:i<m&&(O=2);break;case 2:i>_&&(O=0)}switch(O){case 2:if(G(A.x,A.y,-T.x,-T.y,0,-1),G(-A.x,-A.y,-T.x,-T.y,0,1),r)break;if(b){const t=Z?0:U;R=this._writeVertex(v,M,L,D,k.x,k.y,A.x,A.y,0,-1,t),N=this._writeVertex(v,M,L,D,k.x,k.y,-A.x,-A.y,0,1,t)}break;case 0:{const t=F<0;let e,n,i,h;if(t){const t=R;R=N,N=t,e=B,n=E}else e=E,n=B;if(y)i=t?o(this._innerPrev,T):s(this._innerPrev,T),h=t?s(this._innerNext,k):o(this._innerNext,k);else{const e=t?l(this._inner,A):a(this._inner,A);i=e,h=e}const c=t?s(this._bevelStart,T):o(this._bevelStart,T);G(i.x,i.y,-T.x,-T.y,e.x,e.y);const u=G(c.x,c.y,-T.x,-T.y,n.x,n.y);if(r)break;const f=t?o(this._bevelEnd,k):s(this._bevelEnd,k);if(y){const t=this._writeVertex(v,M,L,D,-T.x,-T.y,0,0,0,0,U);R=this._writeVertex(v,M,L,D,k.x,k.y,h.x,h.y,e.x,e.y,U),N=this._writeVertex(v,M,L,D,k.x,k.y,f.x,f.y,n.x,n.y,U),this._writeTriangle(u,t,N)}else{if(b){const t=this._bevelMiddle;t.x=(c.x+f.x)/2,t.y=(c.y+f.y)/2,x(C,t,-T.x,-T.y),G(t.x,t.y,-T.x,-T.y,C.x,C.y),x(C,t,k.x,k.y),R=this._writeVertex(v,M,L,D,k.x,k.y,t.x,t.y,C.x,C.y,U),N=this._writeVertex(v,M,L,D,k.x,k.y,h.x,h.y,e.x,e.y,U)}else{const t=R;R=N,N=t}G(f.x,f.y,k.x,k.y,n.x,n.y)}if(t){const t=R;R=N,N=t}break}case 1:{const t=F<0;let e,n;if(t){const t=R;R=N,N=t,e=B,n=E}else e=E,n=B;const h=t?l(this._inner,A):a(this._inner,A);let c,f;y?(c=t?o(this._innerPrev,T):s(this._innerPrev,T),f=t?s(this._innerNext,k):o(this._innerNext,k)):(c=h,f=h);const d=t?s(this._roundStart,T):o(this._roundStart,T),g=t?o(this._roundEnd,k):s(this._roundEnd,k),p=G(c.x,c.y,-T.x,-T.y,e.x,e.y),_=G(d.x,d.y,-T.x,-T.y,n.x,n.y);if(r)break;const m=this._writeVertex(v,M,L,D,-T.x,-T.y,0,0,0,0,U);y||this._writeTriangle(R,N,m);const I=l(this._outer,h),w=this._writeVertex(v,M,L,D,k.x,k.y,g.x,g.y,n.x,n.y,U);let P,S;const V=i>2;if(V){let e;i!==Number.MAX_VALUE?(I.x/=i,I.y/=i,e=u(T,I),e=(i*(e*e-1)+1)/e):e=-1,P=t?s(this._startBreak,T):o(this._startBreak,T),P.x+=T.x*e,P.y+=T.y*e,S=t?o(this._endBreak,k):s(this._endBreak,k),S.x+=k.x*e,S.y+=k.y*e}x(C,I,-T.x,-T.y);const z=this._writeVertex(v,M,L,D,-T.x,-T.y,I.x,I.y,C.x,C.y,U);x(C,I,k.x,k.y);const O=b?this._writeVertex(v,M,L,D,k.x,k.y,I.x,I.y,C.x,C.y,U):z,Z=m,Y=b?this._writeVertex(v,M,L,D,k.x,k.y,0,0,0,0,U):m;let W=-1,q=-1;if(V&&(x(C,P,-T.x,-T.y),W=this._writeVertex(v,M,L,D,-T.x,-T.y,P.x,P.y,C.x,C.y,U),x(C,S,k.x,k.y),q=this._writeVertex(v,M,L,D,k.x,k.y,S.x,S.y,C.x,C.y,U)),b?V?(this._writeTriangle(Z,_,W),this._writeTriangle(Z,W,z),this._writeTriangle(Y,O,q),this._writeTriangle(Y,q,w)):(this._writeTriangle(Z,_,z),this._writeTriangle(Y,O,w)):V?(this._writeTriangle(m,_,W),this._writeTriangle(m,W,q),this._writeTriangle(m,q,w)):(this._writeTriangle(m,_,z),this._writeTriangle(m,O,w)),y?(R=this._writeVertex(v,M,L,D,k.x,k.y,f.x,f.y,e.x,e.y,U),N=w):(R=b?this._writeVertex(v,M,L,D,k.x,k.y,f.x,f.y,e.x,e.y,U):p,this._writeTriangle(R,Y,w),N=w),t){const t=R;R=N,N=t}break}}}}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[926,3470],{92474(t,e,r){r.d(e,{Zm:()=>y});var s=r(32198),o=r(49186),i=r(97768),l=r(61893),a=r(17676),n=r(67076),u=r(10107),p=r(64108);const d="loaded",h=t=>{const e=t;let r=class extends e{constructor(...t){super(...t),this._loadController=null,this.loadError=null,this.loadStatus="not-loaded",this._set("loadWarnings",[]),this.addResolvingPromise(new Promise(t=>{const e=this.load.bind(this);this.load=r=>{const s=new Promise((t,e)=>{const s=(0,a.NY)(r,e);this.destroyed&&e(new o.A("load:instance-destroyed",`Instance of '${this.declaredClass||this.constructor.name}' is already destroyed`,{instance:this})),this.when(t,e).finally(()=>{s&&s.remove()})});if("not-loaded"===this.loadStatus){this._set("loadStatus","loading");const t=this._loadController=new AbortController;e({signal:t.signal}).catch(()=>{})}return t(),s}})),this.when(()=>{this._set("loadStatus",d),this._loadController=null},t=>{this.destroyed||(this._set("loadStatus","failed"),this._set("loadError",t),this._loadController=null)})}destroy(){this._loadController&&(this._loadController=(0,i.DC)(this._loadController),this._promiseProps.abort()),this._set("loadError",null),this._set("loadWarnings",[])}get loaded(){return this.loadStatus===d}get loadWarnings(){return this._get("loadWarnings")}async load(t){return this}cancelLoad(){return this.isFulfilled()||(this._set("loadError",new o.A("load:cancelled","Cancelled")),this._loadController?.abort(),this._promiseProps.abort()),this}};return(0,s.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"loaded",null),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"loadError",void 0),(0,s.Cg)([(0,u.MZ)({clonable:!1})],r.prototype,"loadStatus",void 0),(0,s.Cg)([(0,u.MZ)({type:[n.A],readOnly:!0})],r.prototype,"loadWarnings",null),r=(0,s.Cg)([(0,p.$)("esri.core.Loadable")],r),r},c=h(l.Z);function y(t){return!(!t||!t.load)}r.d(e,["WV",0,h,"x_",0,c])},61893(t,e,r){var s=r(32198),o=r(69622),i=r(36563),l=r(17676),a=r(64108);class n{constructor(){this._resolver=Promise.withResolvers(),this._status=0,this._resolvingPromises=[],this._resolver.promise.then(()=>{this._status=1,this._cleanUp()},()=>{this._status=2,this._cleanUp()}),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(t){this._resolvingPromises.push(t),this._tryResolve()}isResolved(){return 1===this._status}isRejected(){return 2===this._status}isFulfilled(){return 0!==this._status}abort(){this._resolver.reject((0,l.NK)())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;const t=Promise.withResolvers(),e=[...this._resolvingPromises,t.promise],r=this._allPromise=Promise.all(e);r.then(()=>{this.isFulfilled()||this._allPromise!==r||this._resolver.resolve()},t=>{this.isFulfilled()||this._allPromise!==r||(0,l.zf)(t)||this._resolver.reject(t)}),t.resolve()}}const u=t=>{const e=t;let r=class extends e{constructor(...t){super(...t),this._promiseProps=new n,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(t,e){return this._promiseProps.promise.then(()=>this).then(t,e)}catch(t){return this.when(null,t)}addResolvingPromise(t){t&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in t?t.when():t)}addResolvingTask(t){t&&!this._promiseProps.isFulfilled()&&(this.addHandles((0,i.rE)(t)),this._promiseProps.addResolvingPromise(t.promise))}};return r=(0,s.Cg)([(0,a.$)("esri.core.Promise")],r),r},p=u(o.A);r.d(e,["Z",0,p,"g",0,u])},20655(t,e,r){r.d(e,{A:()=>A});var s=r(32198),o=r(92602),i=r(70333),l=r(11254),a=r(49186),n=r(25482),u=r(92474),p=r(97768),d=r(17676),h=r(91429),c=r(56507),y=r(5443),m=r(73444);let g;var C=r(96360),f=r(16405),v=r(69622);let M=class extends v.A{constructor(t){super(t),this.nextQueryParams=null,this.queryParams=null,this.results=null,this.total=null}};(0,s.Cg)([(0,h.MZ)()],M.prototype,"nextQueryParams",void 0),(0,s.Cg)([(0,h.MZ)()],M.prototype,"queryParams",void 0),(0,s.Cg)([(0,h.MZ)()],M.prototype,"results",void 0),(0,s.Cg)([(0,h.MZ)()],M.prototype,"total",void 0),M=(0,s.Cg)([(0,h.$K)("esri.portal.PortalQueryResult")],M);var Z,S=r(41318),P=r(926),w=r(36005);let _;const O={PortalGroup:()=>Promise.resolve({default:C.A}),PortalItem:()=>r.e(812).then(r.bind(r,80812)),PortalUser:()=>Promise.resolve({default:S.A})};let A=class extends((0,n.T)(u.x_)){static{Z=this}static{this.AUTH_MODE_ANONYMOUS="anonymous"}static{this.AUTH_MODE_AUTO="auto"}static{this.AUTH_MODE_IMMEDIATE="immediate"}static{this.AUTH_MODE_NO_PROMPT="no-prompt"}constructor(t){super(t),this._esriIdCredentialCreateHandle=null,this.access=null,this.allSSL=!1,this.authMode="auto",this.authorizedCrossOriginDomains=null,this.basemapGalleryGroupQuery=null,this.basemapGalleryGroupQuery3D=null,this.g3DTilesGalleryGroupQuery=null,this.g3dTilesEnabled=null,this.bingKey=null,this.canListApps=!1,this.canListData=!1,this.canListPreProvisionedItems=!1,this.canProvisionDirectPurchase=!1,this.canSearchPublic=!0,this.canShareBingPublic=!1,this.canSharePublic=!1,this.canSignInArcGIS=!1,this.canSignInIDP=!1,this.colorSetsGroupQuery=null,this.commentsEnabled=!1,this.created=null,this.culture=null,this.customBaseUrl=null,this.default3DBasemapQuery=null,this.defaultBasemap=null,this.defaultDevBasemap=null,this.defaultExtent=null,this.defaultVectorBasemap=null,this.description=null,this.devBasemapGalleryGroupQuery=null,this.eueiEnabled=null,this.featuredGroups=null,this.featuredItemsGroupQuery=null,this.galleryTemplatesGroupQuery=null,this.layoutGroupQuery=null,this.livingAtlasGroupQuery=null,this.hasCategorySchema=!1,this.hasClassificationSchema=!1,this.helperServices=null,this.homePageFeaturedContent=null,this.homePageFeaturedContentCount=null,this.httpPort=null,this.httpsPort=null,this.id=null,this.ipCntryCode=null,this.isPortal=!1,this.isReadOnly=!1,this.layerTemplatesGroupQuery=null,this.maxTokenExpirationMinutes=null,this.modified=null,this.name=null,this.portalHostname=null,this.portalMode=null,this.portalProperties=null,this.region=null,this.recycleBinEnabled=!1,this.rotatorPanels=null,this.showHomePageDescription=!1,this.sourceJSON=null,this.supportsHostedServices=!1,this.symbolSetsGroupQuery=null,this.templatesGroupQuery=null,this.units=null,this.url=o.A.portalUrl,this.urlKey=null,this.user=null,this.use3dBasemaps=!0,this.useDefault3dBasemap=!1,this.useStandardizedQuery=!1,this.useVectorBasemaps=!1,this.vectorBasemapGalleryGroupQuery=null}normalizeCtorArgs(t){return"string"==typeof t?{url:t}:t}destroy(){b.unregister(this),this.defaultBasemap=(0,p.pR)(this.defaultBasemap),this.defaultDevBasemap=(0,p.pR)(this.defaultDevBasemap),this.defaultVectorBasemap=(0,p.pR)(this.defaultVectorBasemap),this._esriIdCredentialCreateHandle=(0,p.xt)(this._esriIdCredentialCreateHandle)}readAuthorizedCrossOriginDomains(t){if(t)for(const e of t)o.A.request.trustedServers.includes(e)||o.A.request.trustedServers.push(e);return t}readDefaultBasemap(t){return this._readBasemap(t)}readDefaultDevBasemap(t){return this._readBasemap(t)}readDefaultVectorBasemap(t){return this._readBasemap(t)}get extraQuery(){const t=this.user?.orgId,e=!t||this.canSearchPublic;return this.id&&!e?`orgid:${this.id}`:null}get hasAPIKey(){return(0,P.Jn)(this.restUrl)}get isOrganization(){return!!this.access}get itemPageUrl(){return this.url?`${this.url}/home/item.html`:null}get loaded(){return super.loaded}get restUrl(){let t=this.url;if(t){const e=t.indexOf("/sharing");t=e>0?t.slice(0,e):this.url.replace(/\/+$/,""),t+="/sharing/rest"}return t}get thumbnailUrl(){const t=this.restUrl,e=this.thumbnail;return t&&e?this._normalizeSSL(t+"/portals/self/resources/"+e):null}readUrlKey(t){return t?t.toLowerCase():t}readUser(t){let e=null;return t&&(e=S.A.fromJSON(t),e.portal=this),e}load(t){const e=Promise.all([r.e(812),r.e(3281),r.e(3116)]).then(r.bind(r,83116)).then(({default:e})=>{(0,d.Te)(t),_=e}).then(()=>this.sourceJSON?this.sourceJSON:this.fetchSelf(this.authMode,!1,t)).then(t=>{if(!this.hasAPIKey&&i.id){const t=i.id;this.credential=t.findCredential(this.restUrl),this.credential||this.authMode!==Z.AUTH_MODE_AUTO&&this.authMode!==Z.AUTH_MODE_NO_PROMPT||(this._esriIdCredentialCreateHandle?.remove(),this._esriIdCredentialCreateHandle=t.on("credential-create",function(t){const e=i.id;return()=>{const r=t.deref();r&&e.findCredential(r.restUrl)&&r.signIn().catch(()=>{})}}(new WeakRef(this))),b.register(this,this._esriIdCredentialCreateHandle,this))}this.sourceJSON=t,this.read(t)});return this.addResolvingPromise(e),Promise.resolve(this)}async createElevationLayers(){await this.load();const t=this._getHelperService("defaultElevationLayers"),e=(await Promise.all([r.e(9917),r.e(8278),r.e(9953),r.e(812),r.e(8732),r.e(6266)]).then(r.bind(r,38732))).default;return t?t.map(t=>new e({id:t.id,url:t.url})):[]}async fetchBasemaps(t,e){const r=await this._fetchBasemaps(t,e);if(!0===e?.include3d&&!1!==this.use3dBasemaps){if(this.g3dTilesEnabled&&this.g3DTilesGalleryGroupQuery){const t=await this._fetchBasemaps3D(this.g3DTilesGalleryGroupQuery,e);r.unshift(...t)}const s=await this._fetchBasemaps3D(t,e);r.unshift(...s)}return r}async fetchDefault3DBasemap(t){if(!this.useDefault3dBasemap||!this.default3DBasemapQuery||"none"===this.default3DBasemapQuery)return null;const e=new f.A;e.query=this.default3DBasemapQuery,e.disableExtraQuery=!0;const r=(await this.queryItems(e,t)).results.find(t=>"Web Scene"===t.type);return r?new _({portalItem:r}):null}fetchCategorySchema(t){return this.hasCategorySchema?this.request(this.restUrl+"/portals/self/categorySchema",t).then(t=>t.categorySchema):(0,d.G4)(t)?Promise.reject((0,d.NK)()):Promise.resolve([])}async fetchClassificationSchema(t){return this.hasClassificationSchema?this.request(this.restUrl+"/portals/self/classification/classificationSchema",t).then(t=>t.classificationSchema):null}fetchFeaturedGroups(t){const e=this.featuredGroups,r=new f.A({num:100,sortField:"title"});if(e?.length){const s=[];for(const t of e)s.push(`(title:"${t.title}" AND owner:${t.owner})`);return r.query=s.join(" OR "),this.queryGroups(r,t).then(t=>t.results)}return(0,d.G4)(t)?Promise.reject((0,d.NK)()):Promise.resolve([])}fetchRegions(t){const e=this.user?.culture||this.culture||(0,m.JK)();return this.request(this.restUrl+"/portals/regions",{...t,query:{culture:e}})}fetchSettings(t){const e=this.user?.culture||this.culture||(0,m.JK)();return this.request(this.restUrl+"/portals/self/settings",{...t,query:{culture:e}})}static getDefault(){return g&&!g.destroyed||(g=new Z),g}queryGroups(t,e){return this.queryPortal("/community/groups",t,"PortalGroup",e)}queryItems(t,e){return this.queryPortal("/search",t,"PortalItem",e)}queryUsers(t,e){return t.sortField||(t.sortField="username"),this.queryPortal("/community/users",t,"PortalUser",e)}fetchSelf(t=this.authMode,e=!1,r){const s=this.restUrl+"/portals/self",o={authMode:t,query:{culture:(0,m.JK)().toLowerCase()},withCredentials:!0,...r};return"auto"===o.authMode&&(o.authMode="no-prompt"),e&&(o.query.default=!0),this.request(s,o)}queryPortal(t,e,r,s){const o=(0,c.dp)(f.A,e),i=e=>this.request(this.restUrl+t,{...o.toRequestOptions(this),...s}).then(t=>{const r=o.clone();return r.start=t.nextStart,new M({nextQueryParams:r,queryParams:o,total:t.total,results:Z._resultsToTypedArray(e,{portal:this},t,s)})}).then(t=>Promise.all(t.results.map(e=>"function"==typeof e.when?e.when():t)).then(()=>t,e=>((0,d.QP)(e),t)));return r&&O[r]?O[r]().then(({default:t})=>((0,d.Te)(s),i(t))):i()}signIn(){if(this.hasAPIKey)return this.load().then(()=>{if(!this.user)throw new a.A("portal:not-authenticated","Unable to authenticate user. Portal.user is missing")});if(this.authMode===Z.AUTH_MODE_ANONYMOUS||this.authMode===Z.AUTH_MODE_NO_PROMPT&&!i.id)return Promise.reject(new a.A("portal:invalid-auth-mode",`Current "authMode"' is "${this.authMode}"`));if("failed"===this.loadStatus)return Promise.reject(this.loadError);const t=t=>Promise.resolve().then(()=>"not-loaded"===this.loadStatus?(t||(this.authMode="immediate"),this.load().then(()=>null)):"loading"===this.loadStatus?this.load().then(()=>this.credential?null:(this.credential=t,this.fetchSelf("immediate"))):this.user&&this.credential===t?null:(this.credential=t,this.fetchSelf("immediate"))).then(t=>{t&&(this.sourceJSON=t,this.read(t))});return i.id?i.id.getCredential(this.restUrl,{prompt:this.authMode!==Z.AUTH_MODE_NO_PROMPT}).then(e=>t(e)):t(this.credential)}normalizeUrl(t){const e=this.credential?.token;return this._normalizeSSL(e?t+(t.includes("?")?"&":"?")+"token="+e:t)}requestToTypedArray(t,e,r){return this.request(t,e).then(t=>{const e=Z._resultsToTypedArray(r,{portal:this},t);return Promise.all(e.map(e=>"function"==typeof e.when?e.when():t)).then(()=>e,()=>e)})}request(t,e={}){const r={f:"json",...e.query},{authMode:s=(this.authMode===Z.AUTH_MODE_ANONYMOUS||this.authMode===Z.AUTH_MODE_NO_PROMPT?this.authMode:"auto"),body:o=null,cacheBust:i=!1,method:a="auto",responseType:n="json",signal:u}=e,p={authMode:s,body:o,cacheBust:i,method:a,query:r,responseType:n,timeout:0,signal:u};return e.withCredentials&&(p.withCredentials=!0),(0,l.A)(this._normalizeSSL(t),p).then(t=>t.data)}toJSON(){throw new a.A("internal:not-yet-implemented","Portal.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");return new Z({sourceJSON:t})}_getHelperService(t){const e=this.helperServices?.[t];if(!e)throw new a.A("portal:service-not-found",`The \`helperServices\` do not include an entry named "${t}"`);return e}async _fetchBasemaps(t,e){const r=new f.A;r.query=t||((0,P.Dd)()?this.devBasemapGalleryGroupQuery:this.useVectorBasemaps?this.vectorBasemapGalleryGroupQuery:this.basemapGalleryGroupQuery),r.disableExtraQuery=!0;const s=await this.queryGroups(r,e);if(!s.total)return[];const o=s.results[0];r.num=100,r.query='type:"Web Map" -type:"Web Application"',r.sortField=o.sortField||"name",r.sortOrder=o.sortOrder||"desc";const i=await o.queryItems(r,e);return i.total?i.results.filter(t=>"Web Map"===t.type).map(t=>new _({portalItem:t})):[]}async _fetchBasemaps3D(t,e){const r=t||this.basemapGalleryGroupQuery3D;if(!r)return[];if((0,P.Dd)())return[];const s=new f.A({query:r,disableExtraQuery:!0}),o=await this.queryGroups(s,e);if(!o.total)return[];const i=o.results[0];s.num=100,s.query='type:"Web Scene"',s.sortField=i.sortField||"name",s.sortOrder=i.sortOrder||"desc";const l=await i.queryItems(s,e);return l.total?l.results.filter(t=>"Web Scene"===t.type).map(t=>new _({portalItem:t})):[]}_normalizeSSL(t){return t.replace(/^http:/i,"https:").replace(":7080",":7443")}_readBasemap(t){if(t){const e=_.fromJSON(t);return e.portalItem={portal:this},e}return null}static _resultsToTypedArray(t,e,r,s){let o;if(r){const i=null!=s?s.signal:null;o=r.listings||r.notifications||r.userInvitations||r.tags||r.items||r.groups||r.comments||r.provisions||r.results||r.relatedItems||r,(t||e)&&(o=o.map(r=>{const s=Object.assign(t?t.fromJSON(r):r,e);return"function"==typeof s.load&&s.load(i),s}))}else o=[];return o}};(0,s.Cg)([(0,h.MZ)()],A.prototype,"access",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"allSSL",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"authMode",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"authorizedCrossOriginDomains",void 0),(0,s.Cg)([(0,w.w)("authorizedCrossOriginDomains")],A.prototype,"readAuthorizedCrossOriginDomains",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"basemapGalleryGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)({json:{name:"3DBasemapGalleryGroupQuery"}})],A.prototype,"basemapGalleryGroupQuery3D",void 0),(0,s.Cg)([(0,h.MZ)({json:{name:"g3DTilesGalleryGroupQuery"}})],A.prototype,"g3DTilesGalleryGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)({json:{name:"g3dTilesEnabled"}})],A.prototype,"g3dTilesEnabled",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"bingKey",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"canListApps",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"canListData",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"canListPreProvisionedItems",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"canProvisionDirectPurchase",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"canSearchPublic",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"canShareBingPublic",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"canSharePublic",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"canSignInArcGIS",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"canSignInIDP",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"colorSetsGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"commentsEnabled",void 0),(0,s.Cg)([(0,h.MZ)({type:Date})],A.prototype,"created",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"credential",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"culture",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"currentVersion",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"customBaseUrl",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"default3DBasemapQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"defaultBasemap",void 0),(0,s.Cg)([(0,w.w)("defaultBasemap")],A.prototype,"readDefaultBasemap",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"defaultDevBasemap",void 0),(0,s.Cg)([(0,w.w)("defaultDevBasemap")],A.prototype,"readDefaultDevBasemap",null),(0,s.Cg)([(0,h.MZ)({type:y.A})],A.prototype,"defaultExtent",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"defaultVectorBasemap",void 0),(0,s.Cg)([(0,w.w)("defaultVectorBasemap")],A.prototype,"readDefaultVectorBasemap",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"description",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"devBasemapGalleryGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"eueiEnabled",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],A.prototype,"extraQuery",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"featuredGroups",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"featuredItemsGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"galleryTemplatesGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"layoutGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"livingAtlasGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],A.prototype,"hasAPIKey",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"hasCategorySchema",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"hasClassificationSchema",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"helpBase",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"helperServices",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"helpMap",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"homePageFeaturedContent",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"homePageFeaturedContentCount",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"httpPort",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"httpsPort",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"id",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"ipCntryCode",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],A.prototype,"isOrganization",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"isPortal",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"isReadOnly",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],A.prototype,"itemPageUrl",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"layerTemplatesGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"maxTokenExpirationMinutes",void 0),(0,s.Cg)([(0,h.MZ)({type:Date})],A.prototype,"modified",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"name",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"portalHostname",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"portalMode",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"portalProperties",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"region",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"recycleBinEnabled",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],A.prototype,"restUrl",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"rotatorPanels",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"showHomePageDescription",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"staticImagesUrl",void 0),(0,s.Cg)([(0,h.MZ)({json:{name:"2DStylesGroupQuery"}})],A.prototype,"stylesGroupQuery2d",void 0),(0,s.Cg)([(0,h.MZ)({json:{name:"stylesGroupQuery"}})],A.prototype,"stylesGroupQuery3d",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"supportsHostedServices",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"symbolSetsGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"templatesGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"thumbnail",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],A.prototype,"thumbnailUrl",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"units",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"url",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"urlKey",void 0),(0,s.Cg)([(0,w.w)("urlKey")],A.prototype,"readUrlKey",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"user",void 0),(0,s.Cg)([(0,w.w)("user")],A.prototype,"readUser",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"use3dBasemaps",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"useDefault3dBasemap",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"useStandardizedQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"useVectorBasemaps",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"vectorBasemapGalleryGroupQuery",void 0),A=Z=(0,s.Cg)([(0,h.$K)("esri.portal.Portal")],A);const b=new FinalizationRegistry(t=>{t.remove()})},96360(t,e,r){r.d(e,{A:()=>p});var s,o=r(32198),i=r(49186),l=r(25482),a=r(91429),n=r(56507),u=r(16405);let p=s=class extends l.o{constructor(t){super(t),this.access=null,this.created=null,this.description=null,this.id=null,this.isInvitationOnly=!1,this.modified=null,this.owner=null,this.portal=null,this.snippet=null,this.sortField=null,this.sortOrder=null,this.sourceJSON=null,this.tags=null,this.title=null}get thumbnailUrl(){const t=this.url,e=this.thumbnail;return t&&e&&this.portal?this.portal?.normalizeUrl(`${t}/info/${e}?f=json`):null}get url(){const t=this.portal?.restUrl;return t?t+"/community/groups/"+this.id:null}fetchCategorySchema(t){return this.portal.request(this.url+"/categorySchema",t).then(e=>{const r=e.categorySchema||[];return r.some(t=>"contentCategorySetsGroupQuery.LivingAtlas"===t.source)?this._fetchCategorySchemaSet("LivingAtlas",t):r})}fetchMembers(t){return this.portal.request(this.url+"/users",t)}getThumbnailUrl(t){let e=this.thumbnailUrl;return e&&t&&(e+=`&w=${t}`),e}toJSON(){throw new i.A("internal:not-yet-implemented","PortalGroup.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");const e=new s({sourceJSON:t});return e.read(t),e}queryItems(t,e){let r=(0,n.dp)(u.A,t);const s=this.portal;return parseFloat(s.currentVersion)>5?(r=r||new u.A,s.queryPortal(`/content/groups/${this.id}/search`,r,"PortalItem",e)):(r=r?r.clone():new u.A,r.query="group:"+this.id+(r.query?" "+r.query:""),s.queryItems(r,e))}_fetchCategorySchemaSet(t,e){const r=this.portal;return r.fetchSelf(r.authMode,!0,e).then(t=>{const s=t.contentCategorySetsGroupQuery;if(s){const t=new u.A({disableExtraQuery:!0,num:1,query:s});return r.queryGroups(t,e)}throw new i.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery value not found")}).then(r=>{if(r.total){const s=r.results[0],o=new u.A({num:1,query:`typekeywords:"${t}"`});return s.queryItems(o,e)}throw new i.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery group not found")}).then(t=>t.total?t.results[0].fetchData("json",e).then(t=>{const e=t?.categorySchema;return e?.length?e:[]}):[])}};(0,o.Cg)([(0,a.MZ)()],p.prototype,"access",void 0),(0,o.Cg)([(0,a.MZ)({type:Date})],p.prototype,"created",void 0),(0,o.Cg)([(0,a.MZ)()],p.prototype,"description",void 0),(0,o.Cg)([(0,a.MZ)()],p.prototype,"id",void 0),(0,o.Cg)([(0,a.MZ)()],p.prototype,"isInvitationOnly",void 0),(0,o.Cg)([(0,a.MZ)({type:Date})],p.prototype,"modified",void 0),(0,o.Cg)([(0,a.MZ)()],p.prototype,"owner",void 0),(0,o.Cg)([(0,a.MZ)()],p.prototype,"portal",void 0),(0,o.Cg)([(0,a.MZ)()],p.prototype,"snippet",void 0),(0,o.Cg)([(0,a.MZ)()],p.prototype,"sortField",void 0),(0,o.Cg)([(0,a.MZ)()],p.prototype,"sortOrder",void 0),(0,o.Cg)([(0,a.MZ)()],p.prototype,"sourceJSON",void 0),(0,o.Cg)([(0,a.MZ)()],p.prototype,"tags",void 0),(0,o.Cg)([(0,a.MZ)()],p.prototype,"thumbnail",void 0),(0,o.Cg)([(0,a.MZ)({readOnly:!0})],p.prototype,"thumbnailUrl",null),(0,o.Cg)([(0,a.MZ)()],p.prototype,"title",void 0),(0,o.Cg)([(0,a.MZ)({readOnly:!0})],p.prototype,"url",null),p=s=(0,o.Cg)([(0,a.$K)("esri.portal.PortalGroup")],p)},16405(t,e,r){r.d(e,{A:()=>c});var s,o=r(32198),i=r(69622),l=r(66552),a=r(4718),n=r(91429),u=r(5443),p=r(16930),d=r(28735);const h=new l.J({avgRating:"avg-rating",numRatings:"num-ratings",numComments:"num-comments",numViews:"num-views"});let c=s=class extends i.A{constructor(t){super(t),this.categories=null,this.disableExtraQuery=!1,this.extent=null,this.filter=null,this.num=10,this.query=null,this.sortField=null,this.start=1}get sortOrder(){return this._get("sortOrder")||"asc"}set sortOrder(t){"asc"!==t&&"desc"!==t||this._set("sortOrder",t)}clone(){return new s({categories:this.categories?(0,a.o8)(this.categories):null,disableExtraQuery:this.disableExtraQuery,extent:this.extent?this.extent.clone():null,filter:this.filter,num:this.num,query:this.query,sortField:this.sortField,sortOrder:this.sortOrder,start:this.start})}toRequestOptions(t,e){let r=[];this.categories&&(r=this.categories.map(t=>Array.isArray(t)?JSON.stringify(t):t));let s="";if(this.extent){const t=(0,d.Cv)(this.extent,p.A.WGS84);null!=t&&(s=`${t.xmin},${t.ymin},${t.xmax},${t.ymax}`)}let o=this.query;const i=t.extraQuery;!this.disableExtraQuery&&i&&(o=o?"("+o+") AND "+i:i);const l={categories:r,bbox:s,q:o,filter:this.filter,num:this.num,sortField:null,sortOrder:null,start:this.start};return this.sortField&&(l.sortField=this.sortField.split(",").map(t=>h.toJSON(t.trim())).join(","),l.sortOrder=this.sortOrder),{query:{...e,...l}}}};(0,o.Cg)([(0,n.MZ)()],c.prototype,"categories",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"disableExtraQuery",void 0),(0,o.Cg)([(0,n.MZ)({type:u.A})],c.prototype,"extent",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"filter",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"num",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"query",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"sortField",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"sortOrder",null),(0,o.Cg)([(0,n.MZ)()],c.prototype,"start",void 0),c=s=(0,o.Cg)([(0,n.$K)("esri.portal.PortalQueryParams")],c)},41318(t,e,r){r.d(e,{A:()=>p});var s=r(32198),o=r(49186),i=r(25482),l=r(91429);let a=class extends i.o{constructor(t){super(t),this.created=null,this.id=null,this.portal=null,this.title=null,this.username=null}get url(){const t=this.portal?.restUrl;return t?`${t}/content/users/${this.username}/${this.id}`:null}toJSON(){throw new o.A("internal:not-yet-implemented","PortalFolder.toJSON is not yet implemented")}};(0,s.Cg)([(0,l.MZ)({type:Date})],a.prototype,"created",void 0),(0,s.Cg)([(0,l.MZ)()],a.prototype,"id",void 0),(0,s.Cg)([(0,l.MZ)()],a.prototype,"portal",void 0),(0,s.Cg)([(0,l.MZ)()],a.prototype,"title",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],a.prototype,"url",null),(0,s.Cg)([(0,l.MZ)()],a.prototype,"username",void 0),a=(0,s.Cg)([(0,l.$K)("esri.portal.PortalFolder")],a);var n,u=r(96360);let p=n=class extends i.o{constructor(t){super(t),this.access=null,this.created=null,this.culture=null,this.description=null,this.email=null,this.fullName=null,this.id=null,this.modified=null,this.orgId=null,this.portal=null,this.preferredView=null,this.privileges=null,this.region=null,this.role=null,this.roleId=null,this.sourceJSON=null,this.units=null,this.username=null,this.userLicenseTypeId=null,this.userType=null}get thumbnailUrl(){const t=this.url,e=this.thumbnail;return t&&e?this.portal.normalizeUrl(`${t}/info/${e}?f=json`):null}get userContentUrl(){const t=this.portal?.restUrl;return t?`${t}/content/users/${this.id}`:null}get url(){const t=this.portal?.restUrl;return t?`${t}/community/users/${this.id}`:null}addItem(t){const e=t&&t.item,r=t?.data,s=t?.folder,o={method:"post"};e&&(o.query=e.createPostQuery(),null!=r&&("string"==typeof r?o.query.text=r:"object"==typeof r&&(o.query.text=JSON.stringify(r))));let i=this.userContentUrl;return s&&(i+="/"+("string"==typeof s?s:s.id)),this.portal.request(i+"/addItem",o).then(t=>(e.id=t.id,e.portal=this.portal,e.loaded?e.reload():e.load()))}async deleteItem(t,e=!1){let r=this.userContentUrl;t.ownerFolder&&(r+="/"+t.ownerFolder);const s=e?{permanentDelete:!0}:{};await this.portal.request(r+`/items/${t.id}/delete`,{method:"post",query:s}),t.id=null,t.portal=null}async deleteItems(t,e=!1){t=t.slice();const r=this.userContentUrl+"/deleteItems",s=[],i=t.map(t=>t.id);if(i.length){const l={method:"post",query:{items:i.join(","),permanentDelete:e}},a=await this.portal.request(r,l);for(const e of a.results){const r=t.find(t=>e.itemId===t.id),i=e.success;let l=null;i?(r.id=null,r.portal=null):e.error&&(l=new o.A("portal:delete-item-failed",e.error.message,e.error)),s.push({item:r,success:i,error:l})}}return s}fetchFolders(){return this.portal.request(this.userContentUrl??"",{query:{num:1}}).then(t=>{let e;return e=t&&t.folders?t.folders.map(t=>{const e=a.fromJSON(t);return e.portal=this.portal,e}):[],e})}fetchGroups(){return this.portal.request(this.url??"").then(t=>{let e;return e=t&&t.groups?t.groups.map(t=>{const e=u.A.fromJSON(t);return e.portal=this.portal,e}):[],e})}async fetchItems(t){t??={};let e=this.userContentUrl??"";t.folder&&(e+="/"+t.folder.id);const{default:s}=await r.e(812).then(r.bind(r,80812)),o={folders:!1,inRecycleBin:!!t.inRecycleBin||null,foldersContent:!(t.folder||!t.includeSubfolderItems)||null,num:t.num||10,start:t.start||1,sortField:t.sortField||"created",sortOrder:t.sortOrder||"asc"},i=await this.portal.request(e,{query:o});let l;return i?.items?(l=i.items.map(t=>{const e=s.fromJSON(t);return e.portal=this.portal,e}),await Promise.all(l.map(t=>t.load())),{items:l,nextStart:i.nextStart,total:i.total}):{items:[],nextStart:-1,total:0}}fetchTags(){return this.portal.request(this.url+"/tags").then(t=>t.tags)}getThumbnailUrl(t){let e=this.thumbnailUrl;return e&&t&&(e+=`&w=${t}`),e}queryFavorites(t){return this.favGroupId?(this._favGroup||(this._favGroup=new u.A({id:this.favGroupId,portal:this.portal})),this._favGroup.queryItems(t)):Promise.reject(new o.A("internal:unknown","Unknown internal error",{internalError:"Unknown favGroupId"}))}async restoreItem(t,e){const r=this.userContentUrl,s=e?{folderID:"string"==typeof e?e:e.id}:null;await this.portal.request(r+`/items/${t.id}/restore`,{method:"post",query:s})}toJSON(){throw new o.A("internal:not-yet-implemented","PortalUser.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");const e=new n({sourceJSON:t});return e.read(t),e}};(0,s.Cg)([(0,l.MZ)()],p.prototype,"access",void 0),(0,s.Cg)([(0,l.MZ)({type:Date})],p.prototype,"created",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"culture",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"description",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"email",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"favGroupId",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"fullName",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"id",void 0),(0,s.Cg)([(0,l.MZ)({type:Date})],p.prototype,"modified",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"orgId",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"portal",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"preferredView",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"privileges",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"region",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"role",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"roleId",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"thumbnail",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],p.prototype,"thumbnailUrl",null),(0,s.Cg)([(0,l.MZ)()],p.prototype,"units",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],p.prototype,"userContentUrl",null),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],p.prototype,"url",null),(0,s.Cg)([(0,l.MZ)()],p.prototype,"username",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"userLicenseTypeId",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"userType",void 0),p=n=(0,s.Cg)([(0,l.$K)("esri.portal.PortalUser")],p)},926(t,e,r){r.d(e,{Dd:()=>h,Jn:()=>c,Qc:()=>y,getApiKey:()=>p,getSessionToken:()=>d});var s=r(92602),o=r(11254),i=r(84952);const l=/^https?:\/\/(i?basemaps|basemapstyles)-api\.arcgis\.com\//i,a=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"]),n=new Map;let u=null;function p(t){if(!y(t))return null;const e=e=>e instanceof RegExp?e.test(t):"string"==typeof e&&t.startsWith(e),r=s.A.apiKeys;if(Array.isArray(r.scopes))for(const t of r.scopes)if(Array.isArray(t.urls)){if(t.urls.some(e))return t.token}else if(e(t.urls))return t.token;return r.basemapStyles&&l.test(t)?r.basemapStyles:s.A.apiKey&&/^https?:\/\/.+\.arcgis\.com(\/|$)/i.test(t)?s.A.apiKey:null}async function d(t){if(!s.A.sessions?.basemap?.enabled||!l.test(t))return null;const e=p(t);if(!e)return null;u&&await u;const{styleFamily:r="arcgis",autoRefresh:i,duration:a=43200}=s.A.sessions.basemap,d=`${e}:${r}`,h=n.get(d);if(h&&(!i||h.endTime>Date.now()))return h.sessionToken;let c;u=(0,o.A)("https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/sessions/start",{cacheBust:!0,query:{durationSeconds:a,styleFamily:r,token:e}});try{c=(await u).data,c.endTime-=5e3,n.set(d,c)}finally{u=null}return c.sessionToken}function h(){return null!=s.A.apiKey||null!=s.A.apiKeys.basemapStyles}function c(t,e){return e?y(t):null!=p(t)}function y(t){const e=(0,i.$z)(t,!0);return!!e&&!a.has(e)&&!t.endsWith("/sharing/rest/generateToken")}},94128(t,e,r){r.d(e,{D:()=>o});const s=Symbol("GraphicInstance");function o(t){return null!=t&&"object"==typeof t&&s in t}r.d(e,["Z",0,s])}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2158],{12158(e,n,t){t.r(n),t.d(n,{getTransformation:()=>d,getTransformations:()=>h,isLoaded:()=>m,isTransformationUsable:()=>p,load:()=>b});var s=t(83290),i=t(159),r=t(99157);let o,a,l,c,u,f;function m(){return!!l&&(0,s.i)()}async function b(){if(!m()){const[e,n,i,r,m]=await Promise.all([Promise.all([t.e(9187),t.e(8885),t.e(9117),t.e(1491)]).then(t.bind(t,37091)).then(({create:e,createFromWKT:n})=>({create:e,createFromWKT:n})),t.e(9187).then(t.bind(t,79187)),Promise.all([t.e(9187),t.e(8885),t.e(9117),t.e(353)]).then(t.bind(t,12189)).then(({queryTransformationList:e})=>e),Promise.all([t.e(9187),t.e(8885),t.e(9117),t.e(8344)]).then(t.bind(t,15756)).then(({injectPe:e})=>e),Promise.all([t.e(9187),t.e(8885),t.e(9117),t.e(3299),t.e(1550)]).then(t.bind(t,78125)),(0,s.l)()]);o=e.create,a=e.createFromWKT,u=n.Envelope2D.construct,f=n.Envelope2D.constructEmpty(),l=i,r(s.p),c=m.fromSpatialReference}}function d(e,n,t=null,s=!1){const i=t?w(t):f,r=l(0,c(e),c(n),i,1,!s);return r.length>0?k(r[0]):null}function h(e,n,t=null,s=!1){const i=t?w(t):f;return l(0,c(e),c(n),i,0,!s).map(e=>k(e))}function p(e){if(null!=e.isUsable)return e.isUsable;let n=!0;const t=e instanceof i.A?e.steps:[e];for(const e of t){if(null==e.isUsable){const n=e.wkid?o(e.wkid,e.isInverse):a(e.wkt,e.isInverse);e.isUsable=!n.referencesMissingData()}n&&=e.isUsable}return n}function w(e){return u(e.xmin,e.ymin,e.xmax,e.ymax)}function k(e){const n=new i.A;for(let t=0;t<e.count();t++){const s=e.getStep(t);n.steps.push(new r.A({wkid:s.getID(),isInverse:s.isInverted(),isUsable:!s.referencesMissingData()}))}return n}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6956],{31464(e,t,i){i.d(t,{Cv:()=>m,Nk:()=>y,lK:()=>g});var r=i(4576),n=i(99917),s=i(60408),o=i(21325),a=i(28735);const l=[0,0];function p(e,t){const i=(0,o.K8)(e)?a.je:a.tD;if((0,s.fT)(t)){const e={x:0,y:0};return[e.x,e.y]=i(t.x,t.y,l),null!=t.z&&(e.z=t.z),null!=t.m&&(e.m=t.m),e}if((0,s.ZC)(t)){const e={xmin:0,ymin:0,xmax:0,ymax:0};return[e.xmin,e.ymin]=i(t.xmin,t.ymin,l),[e.xmax,e.ymax]=i(t.xmax,t.ymax,l),t.hasZ&&(e.zmin=t.zmin,e.zmax=t.zmax,e.hasZ=!0),t.hasM&&(e.mmin=t.mmin,e.mmax=t.mmax,e.hasM=!0),e}if((0,s.Bi)(t))return{rings:u(t.rings,i),hasM:t.hasM,hasZ:t.hasZ};if((0,s.Rg)(t))return{paths:u(t.paths,i),hasM:t.hasM,hasZ:t.hasZ};if((0,s.U9)(t))return{points:d(t.points,i),hasM:t.hasM,hasZ:t.hasZ};throw new Error}function u(e,t){const i=[];for(const r of e)i.push(d(r,t));return i}function d(e,t){const i=[];for(const r of e){const e=t(r[0],r[1],[0,0]);i.push(e),r.length>2&&e.push(r[2]),r.length>3&&e.push(r[3])}return i}async function y(e,t){if(!e||!t)return;const i=Array.isArray(e)?e.map(e=>null!=e.geometry?e.geometry.spatialReference:null).filter(r.Ru):[e];await(0,n.initializeProjection)(i.map(e=>({source:e,dest:t})))}function m(e,t,i,r){if(!e)return null;if(i||(i=t,t=e.spatialReference),!(0,o.fn)(t)||!(0,o.fn)(i)||(0,o.aI)(t,i))return e;if((0,a.y7)(t,i)){const t=p(i,e);return t.spatialReference=i,t}return(0,n.projectMany)([e],t,i,r)[0]}const c=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(e,t,i,r){if(!e?.length||!t||!i||(0,o.aI)(t,i))return e;const n={geometries:e,inSpatialReference:t,outSpatialReference:i,options:r,resolve:Promise.withResolvers()};return this._jobs.push(n),this._timer??=setTimeout(this._process,10),n.resolve.promise}_process(){this._timer=null;const e=this._jobs.shift();if(!e)return;const{geometries:t,inSpatialReference:i,outSpatialReference:r,resolve:s,options:o}=e,l=t.filter(e=>null!=e);let u;u=(0,a.y7)(i,r)&&null==o?.extendedParams?l.map(e=>p(r,e)):(0,n.projectMany)(l,i,r,o);let d=0;const y=t.map(e=>null==e?null:u[d++]);s.resolve(y),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function g(e,t,i,r){return c.push(e,t,i,r)}},58727(e,t,i){i.d(t,{GC:()=>h,T2:()=>v,dO:()=>C,iJ:()=>f});var r=i(49186),n=i(66552),s=i(86211),o=i(39829),a=i(99917),l=i(90634),p=i(60408),u=i(65864),d=i(52039),y=i(21325),m=i(31464);const c=new n.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),g=Object.freeze({});async function f(e,t,i){const r=e.bin;return r.onField&&(r.onField=r.onField.trim()),r.onExpression?.value&&(r.onExpression.value=r.onExpression.value.trim()),r.splitBy&&(r.splitBy.value&&(r.splitBy.value=r.splitBy.value.trim()),r.splitBy.outAlias&&(r.splitBy.outAlias=r.splitBy.outAlias.trim())),r.stackBy&&(r.stackBy.value&&(r.stackBy.value=r.stackBy.value.trim()),r.stackBy.outAlias&&(r.stackBy.outAlias=r.stackBy.outAlias.trim())),"normalizationField"in r.parameters&&r.parameters.normalizationField&&(r.parameters.normalizationField=r.parameters.normalizationField.trim()),e.outStatistics?.length||(e.outStatistics=[{statisticType:"count",onStatisticField:"1",outStatisticFieldName:"frequency"}]),h(e,t,i)}async function h(e,t,i){const{outFields:r,orderByFields:n,groupByFieldsForStatistics:s,outStatistics:o}=e;if(r)for(let e=0;e<r.length;e++)r[e]=r[e].trim();if(n)for(let e=0;e<n.length;e++)n[e]=n[e].trim();if(s)for(let e=0;e<s.length;e++)s[e]=s[e].trim();if(o)for(let e=0;e<o.length;e++)o[e].onStatisticField&&(o[e].onStatisticField=o[e].onStatisticField.trim());return e.geometry&&!e.outSR&&(e.outSR=e.geometry.spatialReference),v(e,t,i)}async function v(e,t,i){if(!e)return null;let{where:r}=e;if(e.where=r=r?.trim(),(!r||/^1 *= *1$/.test(r)||t&&t===r)&&(e.where=null),!e.geometry)return e;let n=await w(e);if(e.distance=0,e.units=null,"esriSpatialRelEnvelopeIntersects"===e.spatialRel){const{spatialReference:t}=e.geometry;n=(0,l.HA)(n),n.spatialReference=t}if(!n)return e;await(0,m.Nk)(n.spatialReference,i);let[s]=await(0,d.el)((0,u.rS)(n));if(null==s)throw g;let c=!1;((0,p.ZC)(s)||(0,p.Bi)(s)||(0,p.Rg)(s))&&(c=!(0,y.aI)(s.spatialReference,i)&&!(0,a.canProjectWithoutEngine)(s.spatialReference,i)),c&&(0,p.ZC)(s)&&(s=o.A.fromExtent(s));const f="quantizationParameters"in e&&e.quantizationParameters?.tolerance||"maxAllowableOffset"in e&&e.maxAllowableOffset||0,h=c&&f?{extendedParams:{densificationStep:8*f}}:void 0,v=s.toJSON(),C=(0,m.Cv)(v,v.spatialReference,i,h);if(!C)throw g;return C.spatialReference=i,e.geometry=C,e}async function w(e){const{distance:t,units:n}=e,o=e.geometry;if(!t||"vertexAttributes"in o)return o;const a=o.spatialReference,l=n?c.fromJSON(n):(0,s.Ij)(a),u=a&&((0,y.EA)(a)||(0,y.K8)(a))?o:await(0,m.Nk)(a,y.KK).then(()=>(0,m.Cv)(o,y.KK)),d=await i.e(9159).then(i.bind(i,49159));await d.load();const g=d.execute(u,t||1,{unit:l})??void 0;if(!g||!(0,p.Bi)(g)||0===g.rings.length)throw new r.A("unsupported-query:invalid-parameters","Invalid parameters for query by distance");return g}function C(e,t){return null==e?null:"string"==typeof e?t?new Date(`1970-01-01T${e}Z`).getTime():new Date(e).getTime():e instanceof Date?e.getTime():e}i.d(t,["VY",0,c,"v8",0,g])},14575(e,t,i){i.d(t,{default:()=>j});var r=i(32198),n=i(69540),s=i(66552),o=i(25482),a=i(53966),l=i(91429),p=i(56507),u=i(16930),d=i(65864),y=i(50498),m=i(58727),c=i(5834),g=i(41266),f=i(59977),h=i(11440),v=i(60909),w=i(58174),C=i(7562),B=i(79677),S=i(56400),M=i(93223);const Z=new s.J({asc:"ascending",desc:"descending"}),x={base:g.A,key:"type",typeMap:{"auto-interval":c.A,date:f.A,"fixed-boundaries":h.A,"fixed-interval":v.A}};let j=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.binParameters=null,this.binOrder="ascending",this.cacheHint=void 0,this.datumTransformation=null,this.defaultSpatialReference=null,this.distance=void 0,this.geometry=null,this.lowerBoundaryAlias=null,this.outSpatialReference=null,this.outStatistics=null,this.returnDistinctValues=null,this.spatialRelationship="intersects",this.timeExtent=null,this.upperBoundaryAlias=null,this.units=null,this.where="1=1"}set outTimeZone(e){this._set("outTimeZone",e),e&&!(0,S.wr)(e)&&a.A.getLogger(this).warn("#outTimeZone",`the parsed value '${e}' may not be a valid IANA time zone`)}};(0,r.Cg)([(0,l.MZ)({types:x,json:{name:"bin",write:!0}})],j.prototype,"binParameters",void 0),(0,r.Cg)([(0,M.e)(Z)],j.prototype,"binOrder",void 0),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],j.prototype,"cacheHint",void 0),(0,r.Cg)([(0,l.MZ)({json:{write:!0}})],j.prototype,"datumTransformation",void 0),(0,r.Cg)([(0,l.MZ)({type:u.A,json:{name:"defaultSR",write:!0}})],j.prototype,"defaultSpatialReference",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{write:{overridePolicy:e=>({enabled:e>0})}}})],j.prototype,"distance",void 0),(0,r.Cg)([(0,l.MZ)({types:y.yR,json:{read:d.rS,write:!0}})],j.prototype,"geometry",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],j.prototype,"lowerBoundaryAlias",void 0),(0,r.Cg)([(0,l.MZ)({type:u.A,json:{name:"outSR",write:!0}})],j.prototype,"outSpatialReference",void 0),(0,r.Cg)([(0,l.MZ)({type:[C.A],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.outStatistics&&this.outStatistics.length>0}}}}})],j.prototype,"outStatistics",void 0),(0,r.Cg)([(0,l.MZ)({value:null,json:{name:"outTimeReference",read:{reader:e=>e.ianaTimeZone},write:{writer:(e,t,i)=>{e&&(t[i]={ianaTimeZone:e})}}}})],j.prototype,"outTimeZone",null),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{name:"returnAggIds",write:{overridePolicy:e=>({enabled:null!=e})}}})],j.prototype,"returnAggregateIds",void 0),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],j.prototype,"returnDistinctValues",void 0),(0,r.Cg)([(0,M.e)(w.x,{name:"spatialRel"})],j.prototype,"spatialRelationship",void 0),(0,r.Cg)([(0,l.MZ)({type:B.A,json:{write:!0}})],j.prototype,"timeExtent",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],j.prototype,"upperBoundaryAlias",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{read:m.VY.read,write:{writer:m.VY.write,overridePolicy(e){return{enabled:null!=e&&!!this.distance}}}}})],j.prototype,"units",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],j.prototype,"where",void 0),j=(0,r.Cg)([(0,l.$K)("esri.rest.support.AttributeBinsQuery")],j),j.from=(0,p.dp)(j)},5834(e,t,i){i.d(t,{A:()=>d});var r=i(32198),n=i(93637),s=i(91429),o=i(56507),a=i(41266),l=i(41366),p=i(93223);function u(e,t,i){(0,n.sM)(i,e instanceof Date?e.getTime():e,t)}let d=class extends((0,l.K)(a.A)){constructor(e){super(e),this.numBins=null,this.end=null,this.start=null,this.type="auto-interval"}};(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.numberOfBins",write:!0}})],d.prototype,"numBins",void 0),(0,r.Cg)([(0,s.MZ)({json:{name:"parameters.end",write:{writer:u}}})],d.prototype,"end",void 0),(0,r.Cg)([(0,s.MZ)({json:{name:"parameters.start",write:{writer:u}}})],d.prototype,"start",void 0),(0,r.Cg)([(0,p.e)({autoIntervalBin:"auto-interval"},{readOnly:!0})],d.prototype,"type",void 0),d=(0,r.Cg)([(0,s.$K)("esri.rest.support.AutoIntervalBinParameters")],d),d.from=(0,o.dp)(d)},41266(e,t,i){i.d(t,{A:()=>g});var r=i(32198),n=i(69540),s=i(66552),o=i(25482),a=i(91429),l=i(56507),p=i(93223);const u=new s.J({esriFieldTypeInteger:"integer",esriFieldTypeString:"string"});let d=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.alias=null,this.responseType=null,this.type=null,this.value=null,this.valueType=null}};(0,r.Cg)([(0,a.MZ)({type:String,json:{name:"outAlias",write:!0}})],d.prototype,"alias",void 0),(0,r.Cg)([(0,a.MZ)({type:String})],d.prototype,"responseType",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],d.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],d.prototype,"value",void 0),(0,r.Cg)([(0,p.e)(u)],d.prototype,"valueType",void 0),d=(0,r.Cg)([(0,a.$K)("esri.rest.support.AttributeBinsGrouping")],d);const y=d;d.from=(0,l.dp)(d);const m=new s.J({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeDate:"date",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"}),c=new s.J({naturalLog:"natural-log",squareRoot:"square-root"});let g=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.expression=null,this.expressionValueType=null,this.field=null,this.firstDayOfWeek=null,this.hideUpperBound=null,this.splitBy=null,this.stackBy=null,this.transformation=null}};(0,r.Cg)([(0,a.MZ)({type:String,json:{name:"onExpression.value",write:!0}})],g.prototype,"expression",void 0),(0,r.Cg)([(0,p.e)(m,{name:"onExpression.valueType"})],g.prototype,"expressionValueType",void 0),(0,r.Cg)([(0,a.MZ)({type:String,json:{name:"onField",write:!0}})],g.prototype,"field",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"firstDayOfWeek",void 0),(0,r.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],g.prototype,"hideUpperBound",void 0),(0,r.Cg)([(0,a.MZ)({type:y,json:{write:{overridePolicy(){return{enabled:null!=this.splitBy?.value||null!=this.splitBy?.type}}}}})],g.prototype,"splitBy",void 0),(0,r.Cg)([(0,a.MZ)({type:y,json:{write:{target:{stackBy:{type:y},jsonStyle:{type:String}},writer:(e,t)=>{e&&(t.stackBy=e.toJSON(),null!=e.responseType&&(t.jsonStyle=e.responseType))},overridePolicy(){return{enabled:null!=this.stackBy?.value||null!=this.stackBy?.type}}},read:{source:["stackBy","jsonStyle"],reader:(e,t)=>y.fromJSON({...t.stackBy,responseType:t.jsonStyle})}}})],g.prototype,"stackBy",void 0),(0,r.Cg)([(0,p.e)(c)],g.prototype,"transformation",void 0),g=(0,r.Cg)([(0,a.$K)("esri.rest.support.BinParametersBase")],g)},59977(e,t,i){i.d(t,{A:()=>f});var r=i(32198),n=i(93637),s=i(91429),o=i(56507),a=i(41266),l=i(69540),p=i(25482),u=i(57231),d=i(93223);let y=class extends((0,l.OU)(p.o)){constructor(e){super(e),this.value=null,this.unit=null}};(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"number",write:!0}})],y.prototype,"value",void 0),(0,r.Cg)([(0,d.e)(u.g)],y.prototype,"unit",void 0),y=(0,r.Cg)([(0,s.$K)("esri.rest.support.DateBinTimeInterval")],y);const m=y;function c(e,t,i){(0,n.sM)(i,"string"==typeof e?e:e?.getTime(),t)}function g(e,t){const i=e.parameters[t];return i?"string"==typeof i?i:new Date(i):null}y.from=(0,o.dp)(y);let f=class extends a.A{constructor(e){super(e),this.end=null,this.interval=null,this.offset=null,this.returnFullIntervalBin=!1,this.start=null,this.snapToData=null,this.type="date"}};(0,r.Cg)([(0,s.MZ)({cast:e=>null!=e?"string"==typeof e?e:new Date(e):null,json:{name:"parameters.end",read:{reader:(e,t)=>g(t,"end")},write:{writer:c}}})],f.prototype,"end",void 0),(0,r.Cg)([(0,s.MZ)({type:m,json:{name:"parameters",write:!0}})],f.prototype,"interval",void 0),(0,r.Cg)([(0,s.MZ)({type:m,json:{name:"parameters.offset",write:!0}})],f.prototype,"offset",void 0),(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{name:"parameters.returnFullIntervalBin",write:!0}})],f.prototype,"returnFullIntervalBin",void 0),(0,r.Cg)([(0,s.MZ)({cast:e=>null!=e?"string"==typeof e?e:new Date(e):null,json:{name:"parameters.start",read:{reader:(e,t)=>g(t,"start")},write:{writer:c}}})],f.prototype,"start",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"parameters.snapToData",write:!0}})],f.prototype,"snapToData",void 0),(0,r.Cg)([(0,d.e)({dateBin:"date"},{readOnly:!0})],f.prototype,"type",void 0),f=(0,r.Cg)([(0,s.$K)("esri.rest.support.DateBinParameters")],f),f.from=(0,o.dp)(f)},57231(e,t,i){const r=(0,i(66552).O)()({year:"years",quarter:"quarters",month:"months",week:"weeks",day:"days",hour:"hours",minute:"minutes",second:"seconds"});i.d(t,["g",0,r])},11440(e,t,i){i.d(t,{A:()=>p});var r=i(32198),n=i(93637),s=i(91429),o=i(56507),a=i(41266),l=i(93223);let p=class extends a.A{constructor(e){super(e),this.boundaries=[],this.type="fixed-boundaries"}};(0,r.Cg)([(0,s.MZ)({json:{name:"parameters.boundaries",write:{writer:function(e,t,i){(0,n.sM)(i,e&&function(e){return e[0]instanceof Date}(e)?e.map(e=>e.getTime()):e,t)}}}})],p.prototype,"boundaries",void 0),(0,r.Cg)([(0,l.e)({fixedBoundariesBin:"fixed-boundaries"},{readOnly:!0})],p.prototype,"type",void 0),p=(0,r.Cg)([(0,s.$K)("esri.rest.support.FixedBoundariesBinParameters")],p),p.from=(0,o.dp)(p)},60909(e,t,i){i.d(t,{A:()=>d});var r=i(32198),n=i(93637),s=i(91429),o=i(56507),a=i(41266),l=i(41366),p=i(93223);function u(e,t,i){(0,n.sM)(i,e instanceof Date?e.getTime():e,t)}let d=class extends((0,l.K)(a.A)){constructor(e){super(e),this.end=null,this.interval=null,this.start=null,this.type="fixed-interval"}};(0,r.Cg)([(0,s.MZ)({json:{name:"parameters.end",write:{writer:u}}})],d.prototype,"end",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.interval",write:!0}})],d.prototype,"interval",void 0),(0,r.Cg)([(0,s.MZ)({json:{name:"parameters.start",write:{writer:u}}})],d.prototype,"start",void 0),(0,r.Cg)([(0,p.e)({fixedIntervalBin:"fixed-interval"},{readOnly:!0})],d.prototype,"type",void 0),d=(0,r.Cg)([(0,s.$K)("esri.rest.support.FixedIntervalBinParameters")],d),d.from=(0,o.dp)(d)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4348],{44528(e,t,i){function a(e){return Boolean(e).toString()}i.d(t,{t:()=>a})},28874(e,t,i){function a(e){return"l"===e?"m":"s"}async function n(e){await e.componentOnReady(),await e.updateComplete}i.d(t,{c:()=>n,g:()=>a}),i(58933)},30240(e,t,i){i.d(t,["g",0,()=>[2,1,1,1,3].map(e=>{let t="";for(let i=0;i<e;i++)t+=(65536*(1+Math.random())|0).toString(16).substring(1);return t}).join("-")])},5678(e,t,i){i.d(t,{c:()=>n,u:()=>r});var a=i(58933);function n(e,t,i){if(a.S$)return;const n=function(e){class t extends window.MutationObserver{constructor(e){super(e),this.observedEntry=[],this.callback=e}observe(e,t){return this.observedEntry.push({target:e,options:t}),super.observe(e,t)}unobserve(e){const t=this.observedEntry.filter(t=>t.target!==e);this.observedEntry=[],this.callback(super.takeRecords(),this),this.disconnect(),t.forEach(e=>this.observe(e.target,e.options))}}return"intersection"===e?window.IntersectionObserver:"mutation"===e?t:window.ResizeObserver}(e);return new n(t,i)}function r(e,t,i,a){e&&(t&&e.unobserve(t),i&&(e instanceof MutationObserver?e.observe(i,a):e.observe(i)))}},67306(e,t,i){var a=i(77843);i.d(t,["u",0,e=>(0,a.aK)(t=>{function i(i){const{form:a}=t.elementInternals;i.defaultPrevented||t.disabled||e?.disabled?.()||!a||"button"===t.type||("submit"!==t.type?a.reset():a.requestSubmit())}t.listen("luminaFormAssociatedCallback",({detail:[e]})=>{e?t.el.addEventListener("click",i):t.el.removeEventListener("click",i)})})])},8752(e,t,i){var a=i(77843),n=i(42054),r=i(58933);const l=({children:e,disabled:t})=>r.qy`<div class=${(0,n.CP)("interaction-container")} .inert=${t}>${e}</div>`,s=(0,a.aK)((e,t)=>(t.onUpdated(()=>function(e){if(e.disabled)return e.el.setAttribute("aria-disabled","true"),e.el.contains(document.activeElement)&&document.activeElement.blur(),void function(e){var t;e.el.click=c,(t=e.el).addEventListener("pointerdown",o,h),d.forEach(e=>t.addEventListener(e,v,h))}(e);(function(e){var t;delete e.el.click,(t=e.el).removeEventListener("pointerdown",o,h),d.forEach(e=>t.removeEventListener(e,v,h))})(e),e.el.removeAttribute("aria-disabled")}(e)),l));function c(){const{disabled:e}=this;e||HTMLElement.prototype.click.call(this)}function o(e){e.target.disabled&&e.preventDefault()}const d=["mousedown","mouseup","click"];function v(e){e.target.disabled&&(e.stopImmediatePropagation(),e.preventDefault())}const h={capture:!0};i.d(t,["u",0,s])},88582(e,t,i){var a=i(77843),n=i(28874),r=i(31257);i.d(t,["u",0,()=>(0,a.aK)((e,t)=>{let i;function a(){i?.abort()}return t.onLoad(()=>{e.listen("focus",()=>{i=new AbortController,e.el.addEventListener("focusout",a,{signal:i.signal})})}),t.onDisconnected(()=>{e.el.removeEventListener("focusout",a)}),async(t,l)=>{if(e.disabled)return;const s=function(e){if(e)return function(e){return"target"in e&&("includeContainer"in e||"strategy"in e)}(e)?e:{target:e}}(t());if(!s)return;const{target:c,includeContainer:o,strategy:d}=s,v=(0,r.i)(e.el),h=v.activeElement;return await(0,n.c)(e),h!==v.activeElement||i&&!i?.signal.aborted?void 0:(e.el.removeEventListener("focus",a),(0,r.k)(c,o,d,e.el,l))}})])},45935(e,t,i){var a=i(77843),n=i(57805);const r=(0,a.yr)(n.g);i.d(t,["u",0,r])},68098(e,t,i){var a=i(57805),n=i(58933),r=i(42054),l=i(77843),s=i(44528),c=i(5678);const o="flip-rtl",d="svg",v={},h={},u={s:16,m:24,l:32};function p({icon:e,scale:t}){const i=u[t],a=function(e){const t=!isNaN(Number(e.charAt(0))),i=e.split("-");if(i.length>0){const t=/[a-z]/i;e=i.map((e,i)=>e.replace(t,function(e,t){return 0===i&&0===t?e:e.toUpperCase()})).join("")}return t?`i${e}`:e}(e),n="F"===a.charAt(a.length-1);return`${n?a.substring(0,a.length-1):a}${i}${n?"F":""}`}function m(e){return v[e]}const f=n.AH`:host{display:inline-flex;color:var(--calcite-icon-color, var(--calcite-ui-icon-color, currentColor))}:host([scale=s]){inline-size:16px;block-size:16px;min-inline-size:16px;min-block-size:16px}:host([scale=m]){inline-size:24px;block-size:24px;min-inline-size:24px;min-block-size:24px}:host([scale=l]){inline-size:32px;block-size:32px;min-inline-size:32px;min-block-size:32px}.flip-rtl{transform:scaleX(-1)}.svg{display:block}:host([hidden]){display:none}[hidden]{display:none}`;class g extends r.WF{constructor(){super(...arguments),this.direction=(0,l.jH)(),this.visible=!1,this.flipRtl=!1,this.preload=!1,this.scale="m"}static{this.properties={pathData:[16,{},{state:!0}],visible:[16,{},{state:!0}],flipRtl:[7,{},{reflect:!0,type:Boolean}],icon:[3,{},{reflect:!0}],preload:[7,{},{reflect:!0,type:Boolean}],scale:[3,{},{reflect:!0}],textLabel:1}}static{this.styles=f}connectedCallback(){if(super.connectedCallback(),this.preload)return this.visible=!0,void this.loadIconPathData();this.visible||this.waitUntilVisible(()=>{this.visible=!0,this.loadIconPathData()})}willUpdate(e){(e.has("icon")&&(this.hasUpdated||void 0!==this.icon)||e.has("scale")&&(this.hasUpdated||"m"!==this.scale))&&this.loadIconPathData()}disconnectedCallback(){super.disconnectedCallback(),this.intersectionObserver?.disconnect(),this.intersectionObserver=void 0}async loadIconPathData(){const{icon:e,scale:t,visible:i}=this;if(n.S$||!e||!i)return;const r={icon:e,scale:t},l=m(p(r))||await async function(e){const t=p(e),i=m(t);if(i)return i;h[t]||(h[t]=fetch((0,a.g)(`./assets/icon/${t}.json`)).then(e=>e.json()).catch(()=>(a.l.error(`${e.icon} (${e.scale}) icon failed to load`),"")));const n=await h[t];return v[t]=n,n}(r);e===this.icon&&(this.pathData=l)}waitUntilVisible(e){this.intersectionObserver=(0,c.c)("intersection",t=>{t.forEach(t=>{t.isIntersecting&&(this.intersectionObserver?.disconnect(),this.intersectionObserver=void 0,e())})},{rootMargin:"50px"}),this.intersectionObserver?this.intersectionObserver.observe(this.el):e()}render(){const{flipRtl:e,pathData:t,scale:i,textLabel:a}=this,l=this.direction,c=u[i],v=!!a,h=Array.isArray(t)?t:[t??""];return this.el.ariaHidden=(0,s.t)(!v),this.el.ariaLabel=v?a:null,this.el.role=v?"img":null,n.qy`<svg aria-hidden=true class=${(0,r.CP)({[o]:"rtl"===l&&e,[d]:!0})} fill=currentColor height=100% viewBox=${`0 0 ${c} ${c}`} width=100% xmlns=http://www.w3.org/2000/svg>${h.map(e=>"string"==typeof e?n.JW`<path d=${e??n.s6} />`:n.JW`<path d=${e.d??n.s6} opacity=${("opacity"in e?e.opacity:1)??n.s6} />`)}</svg>`}}(0,a.c)("calcite-icon",g)},22868(e,t,i){var a=i(57805),n=i(58933),r=i(42054),l=i(30240),s=i(45935);const c="ring--progress",o="ring",d="ring--track",v=n.AH`:host{position:relative;margin-inline:auto;display:flex;align-items:center;justify-content:center;opacity:1;flex-direction:column;min-block-size:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke-width:var(--calcite-internal-stroke-width);fill:none;transform:scale(1);padding-block:var(--calcite-loader-spacing, 4rem)}:host([scale=s]){--calcite-internal-stroke-width: 3;--calcite-internal-text-offset: var(--calcite-spacing-xxs);--calcite-internal-loader-font-size: var(--calcite-font-size--3);--calcite-internal-loader-size: 2rem;--calcite-internal-loader-size-inline: .75rem;--calcite-internal-loader-value-line-height: .625rem}:host([scale=m]){--calcite-internal-stroke-width: 6;--calcite-internal-text-offset: var(--calcite-spacing-sm);--calcite-internal-loader-font-size: var(--calcite-font-size-relative-md);--calcite-internal-loader-size: 4rem;--calcite-internal-loader-size-inline: 1rem;--calcite-internal-loader-value-line-height: 1.375rem}:host([scale=l]){--calcite-internal-stroke-width: 8;--calcite-internal-text-offset: var(--calcite-spacing-md);--calcite-internal-loader-font-size: var(--calcite-font-size-relative-xl);--calcite-internal-loader-size: 6rem;--calcite-internal-loader-size-inline: 1.5rem;--calcite-internal-loader-value-line-height: 1.71875rem}.text{display:block;text-align:center;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm);margin-block-start:var(--calcite-loader-text-spacing, var(--calcite-internal-text-offset));font-weight:var(--calcite-loader-text-weight, var(--calcite-font-weight-normal));color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.percentage{display:block;text-align:center;font-size:var(--calcite-loader-font-size);inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));line-height:var(--calcite-internal-loader-value-line-height);align-self:center;color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.rings{position:relative;display:flex;overflow:visible;opacity:1;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring{position:absolute;inset-block-start:0px;transform-origin:center;overflow:visible;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring--track{stroke:var(--calcite-loader-track-color, var(--calcite-color-transparent-press))}.ring--progress{stroke:var(--calcite-loader-progress-color, var(--calcite-color-brand));transform:rotate(-90deg);transition:all var(--calcite-internal-animation-timing-fast) linear}:host([type=indeterminate]) .ring--progress{animation:loader-clockwise calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 2 / var(--calcite-internal-duration-factor)) linear infinite}:host([inline]){--calcite-internal-stroke-width: 2;position:relative;margin:0;stroke:currentColor;stroke-width:2;padding-block:0px;block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));min-block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));vertical-align:calc(var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline))) * -1 * .2)}:host([inline]) .rings{inset-block-start:0px;margin:0;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring{inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring--progress{stroke:var(--calcite-loader-progress-color-inline, currentColor)}:host([complete]){opacity:0;transform:scale(.75);transform-origin:center;transition:opacity var(--calcite-internal-animation-timing-medium) linear 1s,transform var(--calcite-internal-animation-timing-medium) linear 1s}:host([complete]) .rings{opacity:0;transform:scale(.75);transform-origin:center;transition:opacity calc(.18s * var(--calcite-internal-duration-factor)) linear .8s,transform calc(.18s * var(--calcite-internal-duration-factor)) linear .8s}:host([complete]) .percentage{color:var(--calcite-color-brand);transform:scale(1.05);transform-origin:center;transition:color var(--calcite-internal-animation-timing-medium) linear,transform var(--calcite-internal-animation-timing-medium) linear}@keyframes loader-clockwise{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([hidden]){display:none}[hidden]{display:none}`;class h extends r.WF{constructor(){super(...arguments),this.messages=(0,s.u)({name:null}),this.complete=!1,this.inline=!1,this.scale="m",this.text="",this.type="indeterminate",this.value=0}static{this.properties={complete:[7,{},{reflect:!0,type:Boolean}],inline:[7,{},{reflect:!0,type:Boolean}],label:1,scale:[3,{},{reflect:!0}],text:1,type:[3,{},{reflect:!0}],value:[9,{},{type:Number}]}}static{this.styles=v}connectedCallback(){super.connectedCallback(),this.updateFormatter()}load(){requestAnimationFrame(()=>this.valueChangeHandler())}willUpdate(e){e.has("value")&&(this.hasUpdated||0!==this.value)&&this.valueChangeHandler(),(e.has("type")&&(this.hasUpdated||"indeterminate"!==this.type)||e.has("messages"))&&this.updateFormatter()}valueChangeHandler(){this.complete=this.type.startsWith("determinate")&&100===this.value}formatValue(){return"determinate-value"!==this.type?`${this.value}`:this.formatter.format(this.value/100)}getSize(e){return{s:32,m:64,l:96}[e]}getInlineSize(e){return{s:12,m:16,l:24}[e]}updateFormatter(){"determinate-value"===this.type&&this.formatter?.resolvedOptions().locale!==this.messages._lang&&(this.formatter=new Intl.NumberFormat(this.messages._lang,{style:"percent"}))}render(){const{el:e,inline:t,label:i,text:a,type:s,value:c}=this,o=e.id||(0,l.g)(),d="indeterminate"!==s,v=Math.floor(c);return this.el.ariaLabel=i,this.el.ariaValueMax=d?"100":null,this.el.ariaValueMin=d?"0":null,this.el.ariaValueNow=d?v.toString():null,(0,r.Bq)(this.el,"id",o),this.el.role="progressbar",n.qy`<div class=${(0,r.CP)("rings")}>${this.renderRing("track")}${this.renderRing("progress")}${!t&&d&&n.qy`<div class=${(0,r.CP)("percentage")}>${this.formatValue()}</div>`||""}</div>${!t&&a&&n.qy`<div class=${(0,r.CP)("text")}>${a}</div>`||""}`}renderRing(e){const{inline:t,scale:i,value:a}=this,l=t?this.getInlineSize(i):this.getSize(i),s=.45*l;let v;if("progress"===e){const e=2*s*Math.PI,t=(this.type.startsWith("determinate")?a:24)/100*e;v={"stroke-dasharray":`${t} ${e-t}`}}return n.qy`<svg aria-hidden=true class=${(0,r.CP)({[o]:!0,[d]:"track"===e,[c]:"progress"===e})} style=${(0,r.zl)(v)} viewBox=${`0 0 ${l} ${l}`}>${n.JW`<circle cx=${l/2} cy=${l/2} r=${s??n.s6} />`}</svg>`}}(0,a.c)("calcite-loader",h)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5407],{69052(n,t,e){e.d(t,{hr:()=>s});var i=e(34727);class s{constructor(n,t){this.min=n,this.max=t,this.range=t-n}normalize(n,t=0,e=!1){return r(this.range,this.min,this.max,n,t,e)}clamp(n,t=0){return(0,i.qE)(n-t,this.min,this.max)+t}monotonic(n,t,e){return n<t?t:t+o(this.range,n-t,e)}minimalMonotonic(n,t,e){return r(this.range,n,n+this.range,t,e)}center(n,t,e){return t=this.monotonic(n,t,e),this.normalize((n+t)/2,e)}diff(n,t,e){return this.monotonic(n,t,e)-n}shortestSignedDiff(n,t){n=this.normalize(n);const e=(t=this.normalize(t))-n,i=t<n?this.minimalMonotonic(n,t)-n:t-this.minimalMonotonic(t,n);return Math.abs(e)<Math.abs(i)?e:i}contains(n,t,e){return t=this.minimalMonotonic(n,t),(e=this.minimalMonotonic(n,e))>n&&e<t}}function r(n,t,e,i,s=0,r=!1){return(i-=s)<t?i+=o(n,t-i):i>e&&(i-=o(n,i-e)),r&&i===e&&(i=t),i+s}function o(n,t,e=0){return Math.ceil((t-e)/n)*n+e}const a=new s(0,2*Math.PI),c=(new s(-Math.PI,Math.PI),new s(0,360));e.d(t,["ie",0,c,"uC",0,a])},93146(n,t,e){e.d(t,{z:()=>s});class i{constructor(n){this._import=n,this.module=null,this._promise=null}getImportPromise(){return null==this._promise&&(this._promise=this._import().then(async n=>(this.module=n,n))),this._promise}}function s(n){return new i(async()=>{const t=await n();return!1===t.isLoaded?.()&&await t.load(),t})}},52039(n,t,e){e.d(t,{O7:()=>l,el:()=>c});var i=e(69052),s=(e(49186),e(17676)),r=(e(5443),e(39829),e(82799),e(16930)),o=e(93146),a=(e(80754),e(21325));async function c(n,t,e){Array.isArray(n)||(n=[n]),null!=t&&"object"==typeof t&&"authMode"in t&&(e=t);let i=null;for(const t of n)i??=t?.spatialReference;if(!i)return n;const r=(0,a.Vp)(i);if(!r)return n;const[o,c]=r.valid;let l=!1;for(const t of n){if(!t)continue;if("point"===t.type){l||=t.x>=c,l||=t.x<=o;continue}const{extent:n}=t;if(null==n){l=!0;break}l||=n.xmin>=c,l||=n.xmin<=o,l||=n.xmax>=c,l||=n.xmax<=o}if(!l)return n;const[{foldInto360Range:h},f]=await(0,s.qr)(Promise.all([u.getImportPromise(),m.getImportPromise()]),e),p=f.fromSpatialReference(i);return n.map(n=>{if(null==n||"mesh"===n.type)return n;const t=f.fromGeometry(n),e=f.toGeometry(h(t,p),i);return"extent"===n.type&&1===e?.rings.length?e.extent:e})}const u=(0,o.z)(()=>e.e(4144).then(e.bind(e,4144))),m=(0,o.z)(()=>Promise.all([e.e(9187),e.e(8885),e.e(9117),e.e(3299),e.e(1550)]).then(e.bind(e,78125)));function l(n,t,e){const i=(0,a.Vp)(e);if(null==i)return n;const[s,r]=i.valid,o=2*r;let c=0,u=0;t>r?c=Math.ceil(Math.abs(t-r)/o):t<s&&(c=-Math.ceil(Math.abs(t-s)/o)),n>r?u=Math.ceil(Math.abs(n-r)/o):n<s&&(u=-Math.ceil(Math.abs(n-s)/o));let m=n+(c-u)*o;const l=m-t;return l>r?m-=o:l<s&&(m+=o),m}function h(n){const t=(0,a.Vp)(n);if(null==t)return null;const[e,s]=t.valid;return new i.hr(e,s)}const f=h(r.A.WGS84);h(r.A.WebMercator),e.d(t,["Y_",0,f])},80754(n,t,e){e.d(t,{kS:()=>u,kd:()=>c});var i=e(82799),s=e(16930),r=e(60408),o=e(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator}),minus180Line:new i.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.A({paths:[[[180,-180],[180,180]]],spatialReference:s.A.WGS84}),minus180Line:new i.A({paths:[[[-180,-180],[-180,180]]],spatialReference:s.A.WGS84})}};function c(n,t){return Math.ceil((n-t)/(2*t))}function u(n,t){if((0,o.Ed)(n))for(const e of function(n){return(0,r.Bi)(n)?n.curveRings:n.curvePaths}(n))for(const n of e){if((0,o.aO)(n)){const[e,i]=n.c;e[0]+=t,i[0]+=t;continue}if((0,o.FG)(n)){const[e,i]=n.a;e[0]+=t,i[0]+=t;continue}if((0,o.n1)(n)){const[e,i,s]=n.b;e[0]+=t,i[0]+=t,s[0]+=t;continue}n[0]+=t}for(const e of function(n){return(0,r.Bi)(n)?n.rings:n.paths}(n))for(const n of e)n[0]+=t;return n}e.d(t,["j7",0,a])},73133(n,t,e){const i=(0,e(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:"unknown"});e.d(t,["j",0,i])}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[373],{34930(e,t,n){n.d(t,{$Q:()=>l,Sd:()=>c,T5:()=>s,b7:()=>f});var i=n(86211),a=n(5443),o=n(86738),r=n(14140);function s(e,t){if(e.spatialReference.equals(t))return e;const n=(0,i.GA)(e.spatialReference),a=(0,i.GA)(t);if(n===a)return e;const o=n/a;return{x:e.x*o,y:e.y*o}}async function l(e,t,i){if("extent"===i.type)return function(e,t,n){const{width:i,height:a}=e,o=new Uint8Array(i*a),s=t.width/i,l=t.height/a;if(n.width/s<.5||n.height/l<.5)return new r.A({pixelType:e.pixelType,width:i,height:a,mask:o,pixels:[...e.pixels]});const{xmin:c,xmax:f,ymin:x,ymax:h}=t,{xmin:u,xmax:m,ymin:p,ymax:g}=n,y=Math.max(c,u),d=Math.min(f,m),w=Math.max(x,p),M=Math.min(h,g),R=.5*s,P=.5*l;if(d-y<R||M-w<P||d<c+R||y>f-R||w>h-P||M<x+P)return new r.A({pixelType:e.pixelType,width:i,height:a,mask:o,pixels:[...e.pixels]});const k=Math.max(0,(y-c)/s),b=Math.min(i,Math.max(0,(d-c)/s)),A=Math.max(0,(h-M)/l),T=Math.min(a,Math.max(0,(h-w)/l)),S=Math.round(k),G=Math.round(b)-1,E=Math.round(A),N=Math.round(T)-1;if(S===G&&k%1>.5&&b%1<.5||E===N&&A%1>.5&&T%1<.5)return new r.A({pixelType:e.pixelType,width:i,height:a,mask:o,pixels:[...e.pixels]});if(0===S&&0===E&&G===i&&N===a)return e;const C=e.mask;for(let e=E;e<=N;e++)for(let t=S;t<=G;t++){const n=e*i+t;o[n]=C?C[n]:255}return new r.A({pixelType:e.pixelType,width:i,height:a,mask:o,pixels:[...e.pixels]})}(e,t,i);const{width:a,height:o}=e,s=new Uint8Array(a*o);return(await Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(1132)]).then(n.bind(n,25275))).execute(t,i)?"polyline"===i.type?function(e,t,n){const{width:i,height:a}=e,o=new Uint8Array(i*a),s=t.width/i,l=t.height/a,{xmin:c,ymax:f}=t,{paths:x}=n,h=e.mask;for(let e=0;e<x.length;e++){const t=x[e];for(let e=0;e<t.length-1;e++){const[n,r]=t[e],[x,u]=t[e+1],m=Math.min(r,u),p=Math.max(r,u),g=Math.max(0,Math.floor((f-p)/l)),y=Math.min(a-1,Math.floor((f-m)/l));if(!(y<g))if(g===y){const e=Math.min(n,x),t=Math.max(n,x),a=Math.max(0,Math.floor((e-c)/s)),r=Math.min(i-1,Math.floor((t-c)/s));if(r<a)continue;const l=g*i;for(let e=l+a;e<=l+r;e++)o[e]=h?h[e]:255}else{const e=(n-c)/s,t=(x-n)/(u-r)/s,a=l*t;for(let n=g;n<=y;n++){const s=t*(f-n*l-r)+e,c=Math.max(0,Math.floor(a>0?s-a:s)),x=Math.min(i-1,Math.floor(a>0?s:s-a));if(x<c)continue;const u=n*i;for(let e=u+c;e<=u+x;e++)o[e]=h?h[e]:255}}}}return new r.A({pixelType:e.pixelType,width:i,height:a,mask:o,pixels:[...e.pixels]})}(e,t,i):(await Promise.all([n.e(9187),n.e(8885),n.e(9117),n.e(3299),n.e(6671)]).then(n.bind(n,30912))).execute(i,t)?e:function(e,t,n){if(!e)return e;const{width:i,height:a}=e,o=function(e){const{geometry:t,size:n,srcExtent:i,srcMask:a}=e,[o,r]=n;let s;const l=i.width/o,c=i.height/r,{xmin:f,ymax:x}=i;if("extent"===t.type){const e=(t.xmin-f)/l,n=(t.xmax-f)/l,i=(x-t.ymax)/c,a=(x-t.ymin)/c;s=[[[e,i],[e,a],[n,a],[n,i],[e,i]]]}else s=t.rings.map(e=>e.map(([e,t])=>[(e-f)/l,(x-t)/c]));return function(e,t,n){const[i,a]=t,o=new OffscreenCanvas(i,a).getContext("2d");o.fillStyle="#f00",o.beginPath(),e.forEach(e=>{o.moveTo(e[0][0],e[0][1]);for(let t=0;t<e.length;t++)o.lineTo(e[t][0],e[t][1]);o.closePath()}),o.fill();const r=o.getImageData(0,0,i,a).data,s=i*a,l=new Uint8Array(s);let c=!1;for(let e=0;e<s;e++)n&&!n[e]||(r[4*e+3]>127?l[e]=255:c=!0);return c||n?l:void 0}(s,n,a)}({geometry:n,size:[i,a],srcExtent:t,srcMask:e.mask});return new r.A({pixelType:e.pixelType,width:i,height:a,mask:o,maskIsAlpha:!1,pixels:[...e.pixels]})}(e,t,i):new r.A({pixelType:e.pixelType,width:a,height:o,mask:s,maskIsAlpha:!1,pixels:[...e.pixels]})}function c(e,t){const{extent:n}=f(e,t,new o.A({x:e.pixelSize.x,y:e.pixelSize.y,spatialReference:e.spatialReference})),{extent:i}=e.extent;if(n.xmax=Math.min(n.xmax,i.xmax),n.ymax=Math.min(n.ymax,i.ymax),n.xmin<n.xmax&&n.ymin<n.ymax){const{x:t,y:i}=e.pixelSize,a=Math.round(n.width/t),o=Math.round(n.height/i);e.extent=n,e.width=a,e.height=o}}function f(e,t,n,i=!0){const{spatialReference:o}=e,{x:r,y:l}=s(n,o);let c,f,x;const h="extent"===t.type?t:t.extent;let{xmin:u,xmax:m,ymax:p,ymin:g}=h;const{xmin:y,ymax:d}=e.extent;return i?(u=y+(u>y?r*Math.round((u-y)/r):0),p=d-(p<d?l*Math.round((d-p)/l):0),m=y+(m>y?r*Math.round((m-y)/r):0),g=d-(g<d?l*Math.round((d-g)/l):0),c=new a.A({xmin:u,ymax:p,xmax:m,ymin:g,spatialReference:o}),f=Math.round(c.width/r),x=Math.round(c.height/l)):(f=Math.floor((m-u)/r+.8),x=Math.floor((p-g)/l+.8),u=y+(u>y?r*Math.floor((u-y)/r+.1):0),p=d-(p<d?l*Math.floor((d-p)/l+.1):0),m=u+f*r,g=p-x*l,c=new a.A({xmin:u,ymax:p,xmax:m,ymin:g,spatialReference:o})),{extent:c,width:f,height:x}}},37373(e,t,n){n.d(t,{DO:()=>F,FT:()=>L,Hh:()=>k,OM:()=>j,Ps:()=>U,Wo:()=>b,_I:()=>T,_l:()=>_,l0:()=>Y,t$:()=>J,uk:()=>z});var i=n(4576),a=n(49186),o=n(86211),r=n(5443),s=n(83290),l=n(86738),c=n(39829),f=n(99917),x=n(16930),h=n(21325);function u(){if(!P)throw new a.A("rasterprojectionhelper-project","projection operator is not loaded")}const m=(e,t,n,i=0)=>{if(1===n[0])return[0,0];let a=1,o=-1,r=1,s=-1;for(let t=0;t<e.length;t+=2)isNaN(e[t])||(a=a>e[t]?e[t]:a,o=o>e[t]?o:e[t],r=r>e[t+1]?e[t+1]:r,s=s>e[t+1]?s:e[t+1]);const{cols:l,rows:c}=t,f=(o-a)/l/n[0],x=(s-r)/c/n[1],h=2*i;let u=0,m=!1,p=[0,0];for(let t=0;t<l-3;t++){for(let n=0;n<c-3;n++){const i=t*c*2+2*n,a=(e[i]+e[i+4]+e[i+4*c]+e[i+4*c+4])/4,o=(e[i+1]+e[i+5]+e[i+4*c+1]+e[i+4*c+5])/4,r=Math.abs((a-e[i+2*c+2])/f),s=Math.abs((o-e[i+2*c+3])/x);if(r+s>u&&(u=r+s,p=[r,s]),h&&u>h){m=!0;break}}if(m)break}return p},p={3395:20037508.342789244,3410:17334193.943686873,3857:20037508.342788905,3975:17367530.445161372,4087:20037508.342789244,4088:20015108.787169147,6933:17367530.445161372,32662:20037508.342789244,53001:20015086.79602057,53002:10007543.39801029,53003:20015086.79602057,53004:20015086.79602057,53016:14152803.599503474,53017:17333573.624304302,53034:20015086.79602057,53079:20015114.352186374,53080:20015114.352186374,54001:20037508.342789244,54002:10018754.171394624,54003:20037508.342789244,54004:20037508.342789244,54016:14168658.027268292,54017:17367530.44516137,54034:20037508.342789244,54079:20037508.342789244,54080:20037508.342789244,54100:20037508.342789244,54101:20037508.342789244},g=new Map,y=new Map,d=500;let w,M,R,P=!1;async function k(){return w||(w=Promise.withResolvers(),M=await n.e(3276).then(n.bind(n,83276)),R=await n.e(2158).then(n.bind(n,12158)),M.isLoaded()||await M.load(),R.isLoaded()||await R.load(),P=!0,w.resolve()),w.promise}function b(e,t,n,i){const a=e.spatialReference;if(!a||!t||a.equals(t))return e;u();const s=n.center,l=new r.A({xmin:s.x-e.x/2,xmax:s.x+e.x/2,ymin:s.y-e.y/2,ymax:s.y+e.y/2,spatialReference:a}),c=M.execute(l,t,{geographicTransformation:i}),f=L(t);return null==c||null!=f&&c.width>=f?function(e,t,n){const i=(0,o.GA)(t)/(0,o.GA)(n);return{x:e.x*i,y:e.y*i}}(e,a,t):{x:c.width,y:c.height}}function A(e,t=.01){return(0,o.GA)(e)?t/(0,o.GA)(e):0}function T(e,t,n,i=!0){const a=e.spatialReference;if(a.equals(t))return e;u();const o=M.execute(e,t,{geographicTransformation:n});return i&&o?(S([e],[o],a,t),o):o}function S(e,t,n,i){const a=W(n,!0),o=W(i,!0),r=A(n,d),s=A(i,d);if(r&&null!=a&&null!=o)for(let n=0;n<e.length;n++){const i=t[n];if(!i)continue;const{x:l}=e[n],{x:c}=i;c>=o[1]-s&&Math.abs(l-a[0])<r?i.x-=o[1]-o[0]:c<=o[0]+s&&Math.abs(l-a[1])<r&&(i.x+=o[1]-o[0])}}function G(e){const{inSR:t,outSR:n,preferPE:i}=e;if(t.equals(n)){const{points:t}=v(e,null);return t}if(t.isWebMercator&&n.isWGS84||t.isWGS84&&n.isWebMercator)return function(e){const{cols:t,rows:n,xres:i,yres:a,usePixelCenter:o,inSR:r,outSR:s}=e;let{xmin:c,ymax:x}=e;o&&(c+=i/2,x-=a/2);const h=[],u=[],m=Math.max(t,n);for(let e=0;e<m;e++){const o=c+i*Math.min(t,e),m=x-a*Math.min(n,e),p=(0,f.projectWithoutEngine)(new l.A({x:o,y:m,spatialReference:r}),r,s);e<=t&&h.push(p.x),e<=n&&u.push(p.y)}const p=[];for(let e=0;e<t;e++)for(let t=0;t<n;t++)p.push([h[e],u[t]]);return p}(e);if(i){if(t.isGeographic)return E(e);if(null!=N(t))return E(e)}return function(e){const{points:t}=v(e,null),{inSR:n,outSR:i,datumTransformation:a}=e,o=t.map(e=>new l.A(e[0],e[1],n)),r=M.executeMany(o,i,{geographicTransformation:a});return a&&S(o,r,n,i),r.map(e=>e?[e.x,e.y]:[NaN,NaN])}(e)}function E(e){const{inSR:t,outSR:n,datumTransformation:i}=e,a=N(t),{points:o,mask:r}=v(e,a);if(!t.isGeographic){const e=t.wkid?s.P.coordsys(t.wkid):s.P.fromString(t.isGeographic?s.a.PE_TYPE_GEOGCS:s.a.PE_TYPE_PROJCS,t.wkt2||t.wkt);s.c.projToGeog(e,o.length,o)}if(null!=i&&i.steps.length){let e;const t=179.9955;if(n.isGeographic&&(e=o.map(([e])=>e>t?1:e<-t?-1:0)),i.steps.forEach(e=>{const t=e.wkid?s.P.geogtran(e.wkid):s.P.fromString(s.a.PE_TYPE_GEOGTRAN,e.wkt);s.d.geogToGeog(t,o.length,o,null,e.isInverse?s.a.PE_TRANSFORM_2_TO_1:s.a.PE_TRANSFORM_1_TO_2)}),e)for(let n=0;n<o.length;n++){const i=e[n],a=o[n][0],r=a>t?1:a<-t?-1:0;i&&r&&i!==r&&(o[n][0]=i>0?a+360:a-360)}}if(!n.isGeographic){const e=N(n,!0),t=null!=e&&e.isEnvelope?[e.bbox[1],e.bbox[3]]:[-90,90];!function(e,t){const[n,i]=t;for(let t=0;t<e.length;t++){const a=e[t][1];(a<n||a>i)&&(e[t]=[NaN,NaN])}}(o,t);const i=n.wkid?s.P.coordsys(n.wkid):s.P.fromString(n.isGeographic?s.a.PE_TYPE_GEOGCS:s.a.PE_TYPE_PROJCS,n.wkt2||n.wkt);s.c.geogToProj(i,o.length,o)}let l=o;if(r&&o.length!==r.length){l=[];for(let e=0,t=0;e<r.length;e++)r[e]?l.push(o[t++]):l.push([NaN,NaN])}return l}function N(e,t=!1){let n=e.wkid||e.wkt2||e.wkt;if(!n||e.isGeographic)return null;if(n=String(n),g.has(n)){const e=g.get(n);return t?e?.gcs:e?.pcs}const i=e.wkid?s.P.coordsys(e.wkid):s.P.fromString(e.isGeographic?s.a.PE_TYPE_GEOGCS:s.a.PE_TYPE_PROJCS,e.wkt2||e.wkt),a=C(i,A(e,1e-4)),o=C(i,0,!0);return g.set(n,{pcs:a,gcs:o}),t?o:a}function C(e,t=0,n=!1){const i=s.b.generate(e),a=n?e.horizonGcsGenerate():e.horizonPcsGenerate();if(!i||!a?.length)return null;let o=!1,r=a.find(e=>1===e.getInclusive()&&1===e.getKind());if(!r){if(r=a.find(e=>1===e.getInclusive()&&0===e.getKind()),!r)return null;o=!0}const l=n?0:(2===i.getNorthPoleLocation()?1:0)|(2===i.getSouthPoleLocation()?2:0),c=i.isPannableRectangle(),f=r.getCoord();if(o)return{isEnvelope:o,isPannable:c,vertices:f,coef:null,bbox:[f[0][0]-t,f[0][1]-t,f[1][0]+t,f[1][1]+t],poleLocation:l};let x=0;const h=[];let[u,m]=f[0],[p,g]=f[0];for(let e=0,t=f.length;e<t;e++){x++,x===t&&(x=0);const[n,i]=f[e],[a,o]=f[x];if(o===i)h.push([n,a,i,o,2]);else{const e=(a-n)/(o-i||1e-4),t=n-e*i;i<o?h.push([e,t,i,o,0]):h.push([e,t,o,i,1])}u=u<n?u:n,m=m<i?m:i,p=p>n?p:n,g=g>i?g:i}return{isEnvelope:!1,isPannable:c,vertices:f,coef:h,bbox:[u,m,p,g],poleLocation:l}}function v(e,t){const n=[],{cols:i,rows:a,xres:o,yres:r,usePixelCenter:s}=e;let{xmin:l,ymax:c}=e;if(s&&(l+=o/2,c-=r/2),null==t){for(let e=0;e<i;e++)for(let t=0;t<a;t++)n.push([l+o*e,c-r*t]);return{points:n}}const f=new Uint8Array(i*a);if(t.isEnvelope){const{isPannable:e,bbox:[s,x,h,u]}=t;for(let t=0,m=0;t<i;t++){const i=l+o*t,p=e||i>=s&&i<=h;for(let e=0;e<a;e++,m++){const t=c-r*e;p&&t>=x&&t<=u&&(n.push([i,t]),f[m]=1)}}return{points:n,mask:f}}const x=t.coef,h=[];for(let e=0;e<a;e++){const t=c-r*e,n=[],i=[];for(let e=0;e<x.length;e++){const[a,o,r,s,l]=x[e];if(t===r&&r===s)n.push(a),n.push(o),i.push(2),i.push(2);else if(t>=r&&t<=s){const e=a*t+o;n.push(e),i.push(l)}}let a=n;if(n.length>2){let e=2===i[0]?0:i[0],t=n[0];a=[];for(let o=1;o<i.length;o++)2===i[o]&&o!==i.length-1||(i[o]!==e&&(a.push(0===e?Math.min(t,n[o-1]):Math.max(t,n[o-1])),e=i[o],t=n[o]),o===i.length-1&&a.push(0===i[o]?Math.min(t,n[o]):Math.max(t,n[o])));a.sort((e,t)=>e-t)}else n[0]>n[1]&&(a=[n[1],n[0]]);h.push(a)}for(let e=0,t=0;e<i;e++){const i=l+o*e;for(let e=0;e<a;e++,t++){const a=c-r*e,o=h[e];if(2===o.length)i>=o[0]&&i<=o[1]&&(n.push([i,a]),f[t]=1);else if(o.length>2){let e=!1;for(let t=0;t<o.length;t+=2)if(i>=o[t]&&i<=o[t+1]){e=!0;break}e&&(n.push([i,a]),f[t]=1)}}}return{points:n,mask:f}}function _(e,t,n=null,a=!0){const o=e.spatialReference;if(o.equals(t)||!t)return e;const s=j(e),l=L(o,!0),f=L(t);if(0===s||null==l||null==f){const i=O(e,t,n,a);if(i&&null==l&&null!=f&&Math.abs(i.width-f)<A(t)&&M.isLoaded()){const n=N(o);if(null!=n&&0===n.poleLocation&&e.width<(n.bbox[2]-n.bbox[0])/2)return function(e,t){const n=L(t);if(null==n)return null;let{xmin:i,ymin:a,xmax:o,ymax:s}=e;const l=e.spatialReference,f=new c.A({spatialReference:l,rings:[[[i,a],[o,a],[o,s],[i,s],[i,a]]]}),x=M.execute(f,t);if(2!==x.rings.length||!x.rings[0].length||!x.rings[1].length)return null;const{rings:h}=x,u=A(l),m=new r.A({spatialReference:t});for(let e=0;e<2;e++){i=o=h[e][0][0],a=s=h[e][0][1];for(let t=0;t<h[e].length;t++)i=i>h[e][t][0]?h[e][t][0]:i,o=o<h[e][t][0]?h[e][t][0]:o,a=a>h[e][t][1]?h[e][t][1]:a,s=s<h[e][t][1]?h[e][t][1]:s;if(0===e)m.ymin=a,m.ymax=s,m.xmin=i,m.xmax=o;else if(m.ymin=Math.min(m.ymin,a),m.ymax=Math.max(m.ymax,s),Math.abs(o-n/2)<u)m.xmin=i,m.xmax=m.xmax+n;else{if(!(Math.abs(i+n/2)<u))return null;m.xmax=o+n}}return m}(e,t)||i}return i}const x=e.clone().normalize();if(1===x.length&&e.xmax<l&&e.xmax-l/2>A(o)){const{xmin:t,xmax:n}=e;for(let i=0;i<=s;i++){const a=0===i?t:-l/2,c=i===s?n-l*i:l/2;x[i]=new r.A({xmin:a,xmax:c,ymin:e.ymin,ymax:e.ymax,spatialReference:o})}}const h=x.map(e=>O(e,t,n,a)).filter(i.Ru);return 0===h.length?null:function(e,t){const n=L(e[0].spatialReference);if(e.length<2||null==n)return e[0];if(t=t??A(e[0].spatialReference),1===(e=e.filter(e=>e.width>t)).length)return e[0];let{xmin:i,xmax:a,ymin:o,ymax:s}=e[0];for(let t=1;t<e.length;t++){const i=e[t];a=i.xmax+n*t,o=Math.min(o,i.ymin),s=Math.max(s,i.ymax)}return new r.A({xmin:i,xmax:a,ymin:o,ymax:s,spatialReference:e[0].spatialReference})}(h)}function z(e,t,n){if("extent"===e.type){const{xmin:t,ymin:n,xmax:i,ymax:a,spatialReference:o}=e;e=new c.A({rings:[[[t,a],[i,a],[i,n],[t,n],[t,a]]],spatialReference:o})}return e.spatialReference.equals(t)?e:(u(),M.execute(e,t,{geographicTransformation:n}))}function O(e,t,n,i=!0,a=!0){const o=e.spatialReference;if(o.equals(t)||!t)return e;u();const r=M.execute(e,t,{geographicTransformation:n});if(a&&t.isWebMercator&&r&&(r.ymax=Math.min(20037508.342787,r.ymax),r.ymin=Math.max(-20037508.342787,r.ymin),r.ymin>=r.ymax))return null;if(!i||!r)return r;const s=W(o,!0),c=W(t,!0);if(null==s||null==c)return r;const f=A(o,.001),x=A(o,d),h=A(t,.001);if(Math.abs(r.xmin-c[0])<h&&Math.abs(r.xmax-c[1])<h){const i=Math.abs(e.xmin-s[0]),a=Math.abs(s[1]-e.xmax);if(i<f&&a>x){r.xmin=c[0];const i=[];i.push(new l.A(e.xmax,e.ymin,o)),i.push(new l.A(e.xmax,(e.ymin+e.ymax)/2,o)),i.push(new l.A(e.xmax,e.ymax,o));const a=i.map(e=>T(e,t,n)).filter(e=>!isNaN(e?.x)).map(e=>e.x);r.xmax=Math.max.apply(null,a)}if(a<f&&i>x){r.xmax=c[1];const i=[];i.push(new l.A(e.xmin,e.ymin,o)),i.push(new l.A(e.xmin,(e.ymin+e.ymax)/2,o)),i.push(new l.A(e.xmin,e.ymax,o));const a=i.map(e=>T(e,t,n)).filter(e=>!isNaN(e?.x)).map(e=>e.x);r.xmin=Math.min.apply(null,a)}}else{const e=A(t,.001);Math.abs(r.xmin-c[0])<e&&(r.xmin=c[0]),Math.abs(r.xmax-c[1])<e&&(r.xmax=c[1])}return r}function L(e,t=!1){if(!e)return null;const n=t?20037508.342787:20037508.342788905;return e.isWebMercator?2*n:e.wkid&&e.isGeographic?360:2*p[e.wkid]||null}function W(e,t=!1){if(e.isGeographic)return[-180,180];const n=L(e,t);return n?[-n/2,n/2]:null}function I(e,t,n,i){let a=(e-t)/n;return a-Math.floor(a)!==0?a=Math.floor(a):i&&(a-=1),a}function j(e,t=!1){const n=L(e.spatialReference);if(null==n)return 0;const i=t?0:-n/2,a=A(e.spatialReference),o=!t&&Math.abs(e.xmax-n/2)<a?n/2:e.xmax,r=!t&&Math.abs(e.xmin+n/2)<a?-n/2:e.xmin;return I(o,i,n,!0)-I(r,i,n,!1)}function F(e){const t=e.storageInfo.origin.x,n=L(e.spatialReference,!0);if(null==n)return{originX:t,halfWorldWidth:null,pyramidsInfo:null};const i=n/2,{nativePixelSize:a,storageInfo:o,extent:r}=e,{maximumPyramidLevel:s,blockWidth:l,pyramidScalingFactor:c}=o;let f=a.x;const x=[],h=null!=e.transform&&"gcs-shift"===e.transform.type,u=t+(h?0:i),m=h?n-t:i-t;for(let e=0;e<=s;e++){const e=(r.xmax-t)/f/l,n=e-Math.floor(e)===0?e:Math.ceil(e),i=m/f/l,a=i-Math.floor(i)===0?i:Math.ceil(i),o=Math.floor(u/f/l),s=Math.round(u/f)%l,h=(l-Math.round(m/f)%l)%l;x.push({resolutionX:f,blockWidth:l,datasetColumnCount:n,worldColumnCountFromOrigin:a,leftMargin:s,rightPadding:h,originColumnOffset:o}),f*=c}return{originX:t,halfWorldWidth:i,pyramidsInfo:x,hasGCSSShiftTransform:h}}function Y(e){const t=e.isAdaptive&&null==e.spacing;let n=e.spacing||[32,32],i=q(e),a={cols:i.size[0]+1,rows:i.size[1]+1};const o=i.outofBoundPointCount>0&&i.outofBoundPointCount<i.offsets.length/2;let r=i.outofBoundPointCount===i.offsets.length/2||t&&o?[0,0]:m(i.offsets,a,n,4);const l=(r[0]+r[1])/2,c=e.projectedExtent.spatialReference,f=e.srcBufferExtent.spatialReference;if(t&&(o||l>4)&&(c.isGeographic||N(c),n=[4,4],i=q({...e,spacing:n}),a={cols:i.size[0]+1,rows:i.size[1]+1},r=m(i.offsets,a,n,4)),i.error=r,n[0]>1&&(i.coefficients=B(i.offsets,a,o)),e.includeGCSGrid&&!c.isGeographic&&!c.isWebMercator)if(f.isGeographic)i.gcsGrid={offsets:i.offsets,coefficients:i.coefficients,spacing:n};else{const t=N(c);if(null!=t&&!t.isEnvelope){const t=function(e){if(!e||e.isGeographic)return e;const t=String(e.wkid||e.wkt2||e.wkt);let n;return y.has(t)?n=y.get(t):(n=(e.wkid?s.P.coordsys(e.wkid):s.P.fromString(s.a.PE_TYPE_PROJCS,e.wkt2||e.wkt)).getGeogcs().getCode(),y.set(t,n)),new x.A({wkid:n})}(c),r=_(e.projectedExtent,t),{offsets:l}=q({...e,srcBufferExtent:r,spacing:n}),f=B(l,a,o);i.gcsGrid={offsets:l,coefficients:f,spacing:n}}}return i}function q(e){const{projectedExtent:t,srcBufferExtent:n,pixelSize:i,datumTransformation:a,rasterTransform:o}=e,r=t.spatialReference,s=n.spatialReference;u();const{xmin:c,ymin:f,xmax:x,ymax:h}=t,m=L(s),p=null!=m&&(e.hasWrapAround||"gcs-shift"===o?.type),g=e.spacing||[32,32],y=g[0]*i.x,w=g[1]*i.y,M=1===g[0],R=Math.ceil((x-c)/y-.1/g[0])+(M?0:1),P=Math.ceil((h-f)/w-.1/g[1])+(M?0:1),k=G({cols:R,rows:P,xmin:c,ymax:h,xres:y,yres:w,inSR:r,outSR:s,datumTransformation:a,preferPE:g[0]<=4,usePixelCenter:M}),b=[];let T,S=0;const E=M?-1:NaN,{xmin:C,xmax:v,ymax:_,width:z,height:O}=n,W=A(s,d),I=null!=m&&C>0&&v>m/2,j=N(r),F=null!=j&&j.poleLocation>0;for(let e=0;e<R;e++){const t=[];for(let n=0;n<P;n++){let i=k[e*P+n];if(p&&i[0]>v&&i[0]>m/2-W?i[0]-=m:p&&0===e&&i[0]<0&&I&&!o&&(i[0]+=m),!i||isNaN(i[0])||isNaN(i[1]))b.push(E),b.push(E),t.push(null),S++;else{if(o){const e=o.inverseTransform(new l.A({x:i[0],y:i[1],spatialReference:s}));i=[e.x,e.y]}t.push(i),e>0&&p&&T[n]&&i[0]<T[n][0]&&(i[0]+=m,F&&i[0]>v&&i[0]>m&&(i[0]-=m)),b.push((i[0]-C)/z),b.push((_-i[1])/O)}}T=t}return{offsets:b,error:null,coefficients:null,outofBoundPointCount:S,spacing:g,size:M?[R,P]:[R-1,P-1]}}function B(e,t,n){const{cols:i,rows:a}=t,o=new Float32Array((i-1)*(a-1)*2*6),r=new Float32Array([-0,-1,1,-1,1,-0,1,-0,-0]),s=new Float32Array([-1,1,0,0,-1,1,1,0,0]);for(let t=0;t<i-1;t++){for(let n=0;n<a-1;n++){let l=t*a*2+2*n;const c=e[l],f=e[l+1],x=e[l+2],h=e[l+3];l+=2*a;const u=e[l],m=e[l+1],p=e[l+2],g=e[l+3];let y=0,d=12*(n*(i-1)+t);for(let e=0;e<3;e++)o[d++]=r[y++]*c+r[y++]*x+r[y++]*p;y=0;for(let e=0;e<3;e++)o[d++]=r[y++]*f+r[y++]*h+r[y++]*g;y=0;for(let e=0;e<3;e++)o[d++]=s[y++]*c+s[y++]*u+s[y++]*p;y=0;for(let e=0;e<3;e++)o[d++]=s[y++]*f+s[y++]*m+s[y++]*g}if(n)for(let e=0;e<o.length;e++)isNaN(o[e])&&(o[e]=-1)}return o}function U(e){const{spatialReference:t}=e,n=(0,h.Vp)(t);if(!n)return e;const[i,a]=n.valid,o=a-i;let s=0;if(e.xmin<i){const t=i-e.xmin;s=Math.ceil(t/o)}else if(e.xmin>a){const t=e.xmin-a;s=-Math.ceil(t/o)}return new r.A({spatialReference:e.spatialReference,xmin:e.xmin+s*o,ymin:e.ymin,xmax:e.xmax+s*o,ymax:e.ymax})}function J(e,t,n){const{storageInfo:i,pixelSize:a}=t;let r=0,s=!1;const{pyramidResolutions:c}=i,f="mixed"===i.tileInfo.format?.toLowerCase()?Math.max(1,Math.min(3,i.tileInfo.dpi/96)):1,x=(e.x+e.y)/2/f;if(null!=c&&c.length){const e=c[c.length-1],i=(e.x+e.y)/2,f=(a.x+a.y)/2;if(x<=f)r=0;else if(x>=i)r=c.length,s=x/i>8;else{let e,t=f;for(let i=1;i<=c.length;i++){if(e=(c[i-1].x+c[i-1].y)/2,x<=e){x===e?r=i:"down"===n?(r=i-1,s=x/t>8):r="up"===n||x-t>e-x||x/t>2?i:i-1;break}t=e}}const h=0===r?a:c[r-1];return s&&Math.min(h.x,h.y)*(0,o.GA)(t.spatialReference)>19567&&(s=!1),{pyramidLevel:r,pyramidResolution:new l.A({x:h.x,y:h.y,spatialReference:t.spatialReference}),excessiveReading:s}}const h=Math.log(e.x/a.x)/Math.LN2,u=Math.log(e.y/a.y)/Math.LN2,m=t.storageInfo.maximumPyramidLevel||0;r="down"===n?Math.floor(Math.min(h,u)):"up"===n?Math.ceil(Math.max(h,u)):Math.round((h+u)/2),r<0?r=0:r>m&&(s=r>m+3,r=m);const p=2**r;return{pyramidLevel:r,pyramidResolution:new l.A({x:p*t.nativePixelSize.x,y:p*t.nativePixelSize.y,spatialReference:t.spatialReference}),excessiveReading:s}}}}]);
|