@arcgis/core 5.2.0-next.136 → 5.2.0-next.138
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/analysis/LineOfSightAnalysisObserver.d.ts +12 -0
- package/analysis/LineOfSightAnalysisObserver.js +1 -1
- package/analysis/LineOfSightAnalysisTarget.d.ts +12 -0
- package/analysis/LineOfSightAnalysisTarget.js +1 -1
- package/arcade/featureset/sources/FeatureLayerParquet.js +1 -1
- package/arcgisGlobal.d.ts +4 -0
- package/assets/components/assets/icon/blockHeightMedium16.json +1 -0
- package/assets/components/assets/icon/blockHeightMedium24.json +1 -0
- package/assets/components/assets/icon/blockHeightMedium32.json +1 -0
- package/assets/components/assets/icon/blockHeightShort16.json +1 -0
- package/assets/components/assets/icon/blockHeightShort24.json +1 -0
- package/assets/components/assets/icon/blockHeightShort32.json +1 -0
- package/assets/components/assets/icon/blockHeightTall16.json +1 -0
- package/assets/components/assets/icon/blockHeightTall24.json +1 -0
- package/assets/components/assets/icon/blockHeightTall32.json +1 -0
- package/assets/components/assets/icon/cursorCircle16.json +1 -0
- package/assets/components/assets/icon/cursorCircle24.json +1 -0
- package/assets/components/assets/icon/cursorCircle32.json +1 -0
- package/assets/components/assets/icon/dictionary16.json +1 -0
- package/assets/components/assets/icon/dictionary24.json +1 -0
- package/assets/components/assets/icon/dictionary32.json +1 -0
- package/assets/components/assets/icon/jobDependency16.json +1 -0
- package/assets/components/assets/icon/jobDependency24.json +1 -0
- package/assets/components/assets/icon/jobDependency32.json +1 -0
- package/assets/components/assets/icon/referenceChip16.json +1 -0
- package/assets/components/assets/icon/referenceChip24.json +1 -0
- package/assets/components/assets/icon/referenceChip32.json +1 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{4e6f95d8c624d513849a.js → 05963f57cbe5a5249496.js} +1 -1
- package/assets/esri/core/workers/chunks/{0b8681ca4a83e97f1f71.js → 067de1910190da228291.js} +1 -1
- package/assets/esri/core/workers/chunks/{3c0fd1c6cda44e9f40ab.js → 070684943698fa43c2b4.js} +1 -1
- package/assets/esri/core/workers/chunks/{bc1cb4b9a02e6c78deb7.js → 076e8d2e08ff2a013736.js} +1 -1
- package/assets/esri/core/workers/chunks/{c10e040368065411506a.js → 10445313d0d57b34511b.js} +1 -1
- package/assets/esri/core/workers/chunks/{d537c59b46cdaaf66034.js → 1188d0a136fffc009643.js} +1 -1
- package/assets/esri/core/workers/chunks/{20af3f085f60c32c6c53.js → 178083d8ed7707b45ca2.js} +1 -1
- package/assets/esri/core/workers/chunks/{f5efe3e800c6e23efcf3.js → 1819c45655c836b9a8d7.js} +1 -1
- package/assets/esri/core/workers/chunks/1b946714ca4a1a7359d4.js +2 -0
- package/assets/esri/core/workers/chunks/{d8d8b38ac8a91d9e45fc.js → 1cc744ab5eee5ee3bed8.js} +1 -1
- package/assets/esri/core/workers/chunks/{05e39b4de7f62c5b22cc.js → 20f75cc777af13fa249b.js} +1 -1
- package/assets/esri/core/workers/chunks/2a1ec30f9ad305763f81.js +2 -0
- package/assets/esri/core/workers/chunks/34570e6bbf559f18c1a5.js +1 -0
- package/assets/esri/core/workers/chunks/{60f6d5da9480dd36e877.js → 3dddae78286d05eb10fc.js} +1 -1
- package/assets/esri/core/workers/chunks/{9efd30bbd02ec0d1031b.js → 3ec3589f6e74d7cb87cf.js} +1 -1
- package/assets/esri/core/workers/chunks/{0bec054fca104f3bf141.js → 3f776d9fd2ab68b21fca.js} +1 -1
- package/assets/esri/core/workers/chunks/402a82c77420254831bc.js +1 -0
- package/assets/esri/core/workers/chunks/{e2ebf0ea3af2e6907987.js → 406f24ec13eb30d43405.js} +1 -1
- package/assets/esri/core/workers/chunks/43fc42405167a5537039.js +1 -0
- package/assets/esri/core/workers/chunks/{ddedc414bb478b376221.js → 46b2d4addfc73f9183a4.js} +1 -1
- package/assets/esri/core/workers/chunks/498d6dfd3bb0d3490548.js +1 -0
- package/assets/esri/core/workers/chunks/{36ef86701883a20dd6f6.js → 4a640548032355e57acd.js} +1 -1
- package/assets/esri/core/workers/chunks/5566f14afb63065e438f.js +1 -0
- package/assets/esri/core/workers/chunks/{c3b96d1d43afccd23e45.js → 590e6c70206122e4cc3c.js} +2 -2
- package/assets/esri/core/workers/chunks/{54860dd53a46cf4c47f3.js → 59295b99bdff4045a0e7.js} +1 -1
- package/assets/esri/core/workers/chunks/5aeb5e18514644fe2cf9.js +1 -0
- package/assets/esri/core/workers/chunks/{5da86409d70098fc6a10.js → 5b3cfe95314a75a735c1.js} +1 -1
- package/assets/esri/core/workers/chunks/{a54678bfa0f1807b61cd.js → 5c855af73ee3c3e764fb.js} +1 -1
- package/assets/esri/core/workers/chunks/{06da3409992bb1fa85b0.js → 5e90c1b49f2b7e21d05a.js} +39 -31
- package/assets/esri/core/workers/chunks/5fd099ca1024707387b2.js +1 -0
- package/assets/esri/core/workers/chunks/{30f808cac8a34f95ea6e.js → 6079d27f4ab319fb8f0c.js} +1 -1
- package/assets/esri/core/workers/chunks/66c2a28a851130b87c04.js +1 -0
- package/assets/esri/core/workers/chunks/{dac90b3631f7f7158f68.js → 67f15538c51838201fc7.js} +1 -1
- package/assets/esri/core/workers/chunks/{cfaba0470619786e1ef8.js → 68d8ae42ab71d01a70a5.js} +2 -2
- package/assets/esri/core/workers/chunks/6aebf7cfd294e88bf926.js +1 -0
- package/assets/esri/core/workers/chunks/{864e7030c4ddbfcf0114.js → 6ccf9535013fe672c93b.js} +1 -1
- package/assets/esri/core/workers/chunks/{ba7f0cf7e495d3ec2d55.js → 6e62581d933e7298d1f6.js} +1 -1
- package/assets/esri/core/workers/chunks/{83b5dd4029e00abd80bf.js → 700b1d5bc67b7e1b3ff3.js} +1 -1
- package/assets/esri/core/workers/chunks/{f9fea72cc222a30ef2f9.js → 72399062767abdfb0bee.js} +1 -1
- package/assets/esri/core/workers/chunks/{2a7fbfd77002a24bf737.js → 747461bb6a1bc2f0a64d.js} +1 -1
- package/assets/esri/core/workers/chunks/{c333f6ed42985bb2b11f.js → 7851aef196eea5d6c94e.js} +1 -1
- package/assets/esri/core/workers/chunks/{f0b6bd6fab5320c3082f.js → 7a05b18f655c1167ce0a.js} +1 -1
- package/assets/esri/core/workers/chunks/{04296b75d0f81fbd1bb5.js → 864194927d05ebc4cc31.js} +1 -1
- package/assets/esri/core/workers/chunks/{3c4a13a9f0b305394a26.js → 876f7633c15f1e31078d.js} +1 -1
- package/assets/esri/core/workers/chunks/{62298dba3f6cbdc3f4ae.js → 879b2f0ff1977bca9376.js} +1 -1
- package/assets/esri/core/workers/chunks/{b547b3bce729c9dac90d.js → 898359be6996fd9763b8.js} +1 -1
- package/assets/esri/core/workers/chunks/8cb716f110d164030309.js +1 -0
- package/assets/esri/core/workers/chunks/8dc1c3042267618fd710.js +2 -0
- package/assets/esri/core/workers/chunks/{625f02db93d7fbf175ca.js → 9001e9a1e81bce175ddd.js} +1 -1
- package/assets/esri/core/workers/chunks/{9ffa6c8d93d3443834c6.js → 912080c90b5cc2e817cf.js} +1 -1
- package/assets/esri/core/workers/chunks/96c50a0dda0f1503ef92.js +2 -0
- package/assets/esri/core/workers/chunks/{13e4379441499599c3b5.js → 9cbde13e536676767900.js} +1 -1
- package/assets/esri/core/workers/chunks/{408db4f32850b77264ae.js → 9cd3fcb5fca6f9dbbcd8.js} +1 -1
- package/assets/esri/core/workers/chunks/a054da6cbd8ee4774a57.js +1 -0
- package/assets/esri/core/workers/chunks/a05790444115e4cf1bcc.js +1 -0
- package/assets/esri/core/workers/chunks/{d1f2685782b423ef87a6.js → a556dd4e9e6d35e33a2c.js} +1 -1
- package/assets/esri/core/workers/chunks/{00d576d355599c88931e.js → bc38def1983089514e4b.js} +1 -1
- package/assets/esri/core/workers/chunks/{0725e515f3004bdd5c56.js → ca2adcbcf44454484fd5.js} +1 -1
- package/assets/esri/core/workers/chunks/{f3507b9e831ffd7a6bf8.js → cca8bd07bcd1d267a2e8.js} +1 -1
- package/assets/esri/core/workers/chunks/cfae60b9d2f2939e9c16.js +1 -0
- package/assets/esri/core/workers/chunks/{1d6b2a64f4e40e5cc13d.js → d201fbf3ceff946d2bd6.js} +1 -1
- package/assets/esri/core/workers/chunks/{4439078780d9ba49fd26.js → d51bb11baadc741c46bc.js} +1 -1
- package/assets/esri/core/workers/chunks/db1ab9b9c8bf5c7635d3.js +1 -0
- package/assets/esri/core/workers/chunks/de02a6a1f4810f99e9bb.js +1 -0
- package/assets/esri/core/workers/chunks/e630f3c56c077cb2bd8e.js +1 -0
- package/assets/esri/core/workers/chunks/e81173724e8de8c1e65b.js +1 -0
- package/assets/esri/core/workers/chunks/{2025288bed125594ceda.js → f6e62d2d279a328cbed7.js} +1 -1
- package/assets/esri/core/workers/chunks/{47c19778fcee7154ca38.js → f8bc474434fd365ab174.js} +1 -1
- package/assets/esri/core/workers/chunks/{9a20dc26cb9c7b2087cf.js → f95a1f878c9c1146180e.js} +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ar.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.bg.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.bs.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ca.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.cs.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.da.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.de.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.el.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.en.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.es.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.et.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.fi.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.fr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.he.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.hr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.hu.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.id.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.it.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ja.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ko.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.lt.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.lv.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.nl.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.no.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pl.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pt-BR.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.pt-PT.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ro.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.ru.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sk.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sl.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.sv.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.th.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.tr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.uk.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.vi.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-CN.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-HK.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/messages.zh-TW.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.ar.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.bg.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.bs.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.ca.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.cs.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.da.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.de.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.el.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.es.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.et.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.fi.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.fr.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.he.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.hr.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.hu.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.id.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.it.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.ja.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.ko.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.lt.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.lv.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.nl.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.no.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.pl.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.pt-BR.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.pt-PT.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.ro.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.ru.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.sk.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.sl.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.sr.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.sv.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.th.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.tr.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.uk.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.vi.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.zh-CN.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.zh-HK.json +1 -1
- package/assets/esri/widgets/FeatureForm/t9n/messages.zh-TW.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ar.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.bg.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.bs.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ca.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.cs.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.da.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.de.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.el.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.en.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.es.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.et.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.fi.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.fr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.he.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.hr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.hu.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.id.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.it.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ja.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ko.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.lt.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.lv.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.nl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.no.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.pl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.pt-BR.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.pt-PT.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ro.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.ru.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.sk.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.sl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.sr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.sv.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.th.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.tr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.uk.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.vi.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.zh-CN.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.zh-HK.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/messages.zh-TW.json +1 -1
- package/chunks/Bufferer-CclWhXVb.js +1 -1
- package/chunks/Component.glsl.js +3 -3
- package/chunks/DefaultMaterial.glsl.js +2 -2
- package/chunks/Distance2DCalculator-DjIp2uQi.js +1 -1
- package/chunks/Envelope.js +1 -1
- package/chunks/Envelope2D.js +1 -1
- package/chunks/FocusArea.glsl.js +8 -10
- package/chunks/GaussianSplat.glsl.js +2 -2
- package/chunks/GeodeticDistanceCalculator-zRp89-dW.js +1 -1
- package/chunks/GeodeticUtils.js +1 -1
- package/chunks/Geometry.js +1 -1
- package/chunks/GeometryCleaner-CIE8Wfmb.js +1 -1
- package/chunks/GlobalIllumination.glsl.js +3 -3
- package/chunks/LineMarker.glsl.js +35 -42
- package/chunks/MultiPathImpl.js +1 -1
- package/chunks/OperatorAffineTransform.js +1 -1
- package/chunks/OperatorClip.js +1 -1
- package/chunks/OperatorDensify.js +1 -1
- package/chunks/OperatorDistance.js +1 -1
- package/chunks/OperatorGeneralize.js +1 -1
- package/chunks/OperatorGeodesicBuffer.js +1 -1
- package/chunks/OperatorGeodeticArea.js +1 -1
- package/chunks/OperatorGeodeticDensifyByLength.js +1 -1
- package/chunks/OperatorGeodeticDistance.js +1 -1
- package/chunks/OperatorGeodeticLength.js +1 -1
- package/chunks/OperatorGraphicBuffer.js +1 -1
- package/chunks/OperatorIntegrate.js +1 -1
- package/chunks/OperatorMultiPartToSinglePart.js +1 -1
- package/chunks/OperatorProximity.js +1 -1
- package/chunks/OperatorProximityGeodesic.js +1 -1
- package/chunks/OperatorShapePreservingLength.js +1 -1
- package/chunks/OperatorShapePreservingProject.js +1 -1
- package/chunks/OperatorSimplifyOGC.js +1 -1
- package/chunks/Path.glsl.js +2 -2
- package/chunks/Point2D.js +1 -1
- package/chunks/RealisticTree.glsl.js +2 -2
- package/chunks/RibbonLine.glsl.js +51 -57
- package/chunks/SideCalculator2D-DX0718xq.js +1 -1
- package/chunks/Terrain.glsl.js +2 -2
- package/chunks/Transformation2D.js +1 -1
- package/chunks/UnitFactory.js +1 -1
- package/config.js +1 -1
- package/core/workers/RemoteClient.js +1 -1
- package/core/workers/workerFactory.js +1 -1
- package/editing/fieldUtils.d.ts +12 -0
- package/editing/sharedTemplates/templateDefinitions/TemplateDefinitionBase.js +1 -1
- package/geometry/operators/extendOperator.js +1 -1
- package/geometry/operators/gx/operatorAlphaShape.js +1 -1
- package/geometry/operators/gx/operatorBoundary.js +1 -1
- package/geometry/operators/gx/operatorBuffer.js +1 -1
- package/geometry/operators/gx/operatorConvexHull.js +1 -1
- package/geometry/operators/gx/operatorLabelPoint.js +1 -1
- package/geometry/operators/gx/operatorLinesToPolygons.js +1 -1
- package/geometry/operators/gx/operatorLocateBetween.js +1 -1
- package/geometry/operators/gx/operatorMinimumBoundingCircle.js +1 -1
- package/geometry/operators/gx/operatorOffset.js +1 -1
- package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
- package/geometry/operators/gx/operatorPolygonSlicer.js +1 -1
- package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
- package/geometry/operators/isNearOperator.js +1 -1
- package/geometry/operators/reshapeOperator.js +1 -1
- package/geometry/operators/support/jsonConverter.js +1 -1
- package/geometry/support/curves/ellipticArc7Utils.js +1 -1
- package/geometry/support/ellipseUtils.js +2 -0
- package/interfaces.d.ts +15 -18
- package/kernel.js +1 -1
- package/layers/LinkChartLayer.js +1 -1
- package/layers/ParquetLayer.js +1 -1
- package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
- package/layers/list/LayerItemCollection.d.ts +1 -0
- package/layers/list/types.d.ts +5 -1
- package/layers/orientedImagery/core/coverageUtils.js +1 -1
- package/layers/orientedImagery/queries.js +1 -1
- package/layers/support/TimeSeriesCalculation.d.ts +1 -1
- package/layers/support/TimeSeriesCalculation.js +1 -1
- package/layers/support/dataSeriesUtils.d.ts +10 -0
- package/layers/support/timeSeriesUtils.js +17 -6
- package/libs/lyr3d/Lyr3DModule.js +1 -1
- package/networks/UtilityNetwork.d.ts +15 -0
- package/networks/UtilityNetwork.js +1 -1
- package/package.json +4 -4
- package/popup/FeatureContent.d.ts +14 -1
- package/popup/FeatureContent.js +1 -1
- package/popup/FeatureContentCollection.d.ts +4 -10
- package/popup/FeatureContentCollection.js +1 -1
- package/popup/actions.js +1 -1
- package/popup/support/featureUtils.js +1 -1
- package/renderers/support/RenderingInfo.js +1 -1
- package/renderers/support/renderingInfoUtils.js +1 -1
- package/renderers/visualVariables/SizeVariable.d.ts +16 -20
- package/renderers/visualVariables/support/SizeStop.d.ts +6 -2
- package/rest/networks/support/TraceLocation.js +1 -1
- package/rest/networks/support/TraceResult.d.ts +7 -0
- package/rest/networks/support/TraceResult.js +1 -1
- package/smartMapping/renderers/color.js +1 -1
- package/smartMapping/renderers/opacity.js +1 -1
- package/smartMapping/renderers/size.js +1 -1
- package/smartMapping/renderers/support/timeSeriesUtils.js +1 -1
- package/smartMapping/statistics/histogramForTimeSeries.d.ts +11 -0
- package/smartMapping/statistics/histogramForTimeSeries.js +2 -0
- package/smartMapping/statistics/summaryStatisticsForTimeSeries.d.ts +11 -0
- package/smartMapping/statistics/summaryStatisticsForTimeSeries.js +2 -0
- package/smartMapping/statistics/support/timeSeriesUtils.js +24 -0
- package/smartMapping/statistics/types.d.ts +50 -0
- package/support/tests/serviceMockDependencies.js +1 -1
- package/support/tests/setupServiceMocksMesh.js +1 -1
- package/symbols/cim/CIMPlacements.js +1 -1
- package/symbols/cim/callouts/calloutAnalysisUtils.js +1 -1
- package/symbols/cim/callouts/effects/BackgroundCallout.js +1 -1
- package/symbols/cim/callouts/effects/BalloonCallout.js +1 -1
- package/symbols/cim/callouts/effects/PointSymbolCallout.js +1 -1
- package/symbols/cim/callouts/effects/calloutUtils.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/views/2d/analysis/AreaMeasurement/AreaMeasurementTool.js +1 -1
- package/views/2d/analysis/DistanceMeasurement/DistanceMeasurementTool.js +1 -1
- package/views/2d/engine/vectorTiles/decluttering/CollisionJob.js +1 -1
- package/views/2d/engine/vectorTiles/decluttering/SymbolFader.js +1 -1
- package/views/2d/engine/vectorTiles/decluttering/jobsUtil.js +1 -1
- package/views/2d/engine/webgl/collisions/LabelMetric.js +1 -1
- package/views/2d/engine/webgl/definitions.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedPolyMeshWriters.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/ComputedAnimatedParams.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/markers/ComputedMarkerParams.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/mesh/CalloutMeshWriterPolicy.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/AFeatureShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextParams.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
- package/views/2d/layers/SketchLayerView2D.js +1 -1
- package/views/2d/layers/features/layerAdapters/AnnotationLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/CatalogFootprintLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/DimensionLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/KnowledgeGraphSublayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/OrientedImageryLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/StreamLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/SubtypeGroupLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/labelingUtils.js +1 -1
- package/views/2d/layers/features/schema/ExceedsLimitCache.js +1 -1
- package/views/2d/layers/features/schema/TimeSchema.js +2 -0
- package/views/2d/layers/features/schema/processor/LabelMatcherSchema.js +1 -1
- package/views/2d/layers/features/schema/processor/MatcherSchema.js +1 -1
- package/views/2d/layers/features/schema/processor/symbols/SymbolSchema.js +1 -1
- package/views/2d/layers/features/sources/FeatureSourceQueryInfo.js +1 -1
- package/views/2d/layers/features/sources/strategies/ParquetTileLoadStrategy.js +1 -1
- package/views/2d/layers/support/annodime/cimAnnotations.js +1 -1
- package/views/2d/layers/support/vectorTileDebugUtils.js +1 -1
- package/views/2d/layers/support/visualVariableSimpleUtils.js +1 -1
- package/views/2d/types.d.ts +2 -1
- package/views/3d/analysis/LineOfSight/LineOfSightEditTool.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightItemManipulatedObject3D.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightItemTool.js +1 -1
- package/views/3d/analysis/LineOfSightAnalysisView3D.d.ts +24 -0
- package/views/3d/analysis/Viewshed/ViewshedEditTool.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedObserverManipulatedObject3D.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedPlacementController.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementShiftTool.js +1 -1
- package/views/3d/camera/constraintUtils.js +1 -1
- package/views/3d/input/handlers/ground/GroundDoubleClickMove.js +1 -1
- package/views/3d/input/handlers/ground/GroundNavigation.js +1 -1
- package/views/3d/interactive/editingTools/tooltipUtils3D.js +1 -1
- package/views/3d/interactive/placementTools/GroundNavigationPlacementTool3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
- package/views/3d/layers/i3s/I3SOverrides.js +1 -1
- package/views/3d/layers/support/FastSymbolUpdates.js +1 -1
- package/views/3d/state/controllers/GroundNavigationController.js +1 -1
- package/views/3d/state/controllers/momentum/GroundNavigationMomentumController.js +1 -1
- package/views/3d/state/utils/OffsetCorrectionController.js +1 -1
- package/views/3d/state/utils/groundNavigationUtils.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js +16 -8
- package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +5 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/evaluateSceneLightingFragment.glsl.js +12 -0
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +2 -2
- package/views/3d/webgl-engine/effects/focusArea/FocusArea.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
- package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
- package/views/3d/webgl-engine/shaders/LineMarker.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
- package/views/SelectionManager.d.ts +3 -3
- package/views/draw/support/Reshape.js +1 -1
- package/views/interactive/options/bindViewToolOptions.js +1 -1
- package/views/interactive/sketch/SketchLabelOptions.d.ts +3 -0
- package/views/interactive/sketch/SketchLabelOptions.js +1 -1
- package/views/interactive/sketch/SketchTooltipOptions.d.ts +3 -0
- package/views/interactive/sketch/SketchTooltipOptions.js +1 -1
- package/views/interactive/sketch/SketchValueOptions.d.ts +3 -0
- package/views/interactive/sketch/SketchValueOptions.js +1 -1
- package/views/interactive/snapping/SnappingOptions.d.ts +3 -0
- package/views/interactive/snapping/SnappingOptions.js +1 -1
- package/views/interactive/snapping/snappingUtils.js +1 -1
- package/views/interactive/tooltip/fields/parsingAndFormattingUtils.js +1 -1
- package/views/layers/SketchLayerView.d.ts +34 -0
- package/views/layers/SketchLayerView.js +2 -0
- package/views/layers/types.d.ts +3 -2
- package/views/selection/types.d.ts +15 -4
- package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
- package/widgets/BasemapGallery.js +1 -1
- package/widgets/Bookmarks/BookmarksViewModel.d.ts +4 -0
- package/widgets/Bookmarks/BookmarksVisibleElements.d.ts +5 -1
- package/widgets/Bookmarks/types.d.ts +2 -0
- package/widgets/Editor/EditorViewModel.d.ts +31 -30
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/components/Settings.js +1 -1
- package/widgets/Editor/types.d.ts +44 -0
- package/widgets/Editor.d.ts +30 -27
- package/widgets/Editor.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.d.ts +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/support/FeatureStore.d.ts +1 -1
- package/widgets/FeatureTable/support/FeatureStore.js +1 -1
- package/widgets/FeatureTable.d.ts +6 -0
- package/widgets/FeatureTable.js +1 -1
- package/widgets/Histogram/types.d.ts +10 -2
- package/widgets/HistogramRangeSlider/types.d.ts +4 -1
- package/widgets/LayerList/LayerListViewModel.d.ts +2 -1
- package/widgets/Legend/LegendViewModel.d.ts +2 -0
- package/widgets/Legend/styles/card/CardView.d.ts +2 -0
- package/widgets/Legend/styles/classic/ClassicView.d.ts +4 -1
- package/widgets/Legend.d.ts +3 -0
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.d.ts +7 -0
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/components/OrientedImageryVideoViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/support/VideoFeatureCache.js +2 -0
- package/widgets/OrientedImageryViewer/types.d.ts +9 -0
- package/widgets/OrientedImageryViewer.d.ts +7 -0
- package/widgets/OrientedImageryViewer.js +2 -2
- package/widgets/PanoramicVideoViewer.js +1 -1
- package/widgets/PanoramicViewer/PanoramicVideoViewerViewModel.js +1 -1
- package/widgets/ScaleRangeSlider/types.d.ts +9 -2
- package/widgets/Sketch/SketchViewModel.d.ts +32 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/Sketch.d.ts +27 -1
- package/widgets/Sketch.js +1 -1
- package/widgets/Slider/types.d.ts +58 -13
- package/widgets/Slider.d.ts +6 -0
- package/widgets/smartMapping/BinaryColorSizeSlider/BinaryColorSizeSliderViewModel.d.ts +2 -0
- package/widgets/smartMapping/ClassedColorSlider/ClassedColorSliderViewModel.d.ts +2 -0
- package/widgets/smartMapping/ClassedSizeSlider/ClassedSizeSliderViewModel.d.ts +2 -0
- package/widgets/smartMapping/ColorSizeSlider/ColorSizeSliderViewModel.d.ts +2 -0
- package/widgets/smartMapping/ColorSlider/ColorSliderViewModel.d.ts +2 -0
- package/widgets/smartMapping/HeatmapSlider/HeatmapSliderViewModel.d.ts +2 -0
- package/widgets/smartMapping/OpacitySlider/OpacitySliderViewModel.d.ts +2 -0
- package/widgets/smartMapping/SizeSlider/SizeSliderViewModel.d.ts +3 -0
- package/widgets/smartMapping/SmartMappingPrimaryHandleSliderViewModel.d.ts +2 -0
- package/widgets/smartMapping/SmartMappingSliderViewModel.d.ts +2 -0
- package/widgets/smartMapping/types.d.ts +30 -7
- package/widgets/support/FilterBuilder/FilterBuilderViewModel.d.ts +21 -11
- package/widgets/support/FilterBuilder/FilterBuilderViewModel.js +1 -1
- package/widgets/support/FilterBuilder/types.d.ts +28 -0
- package/widgets/support/FilterBuilder.js +1 -1
- package/widgets/support/FilterCondition/FilterConditionViewModel.d.ts +24 -0
- package/widgets/support/FilterCondition/FilterConditionViewModel.js +1 -1
- package/widgets/support/FilterCondition/types.d.ts +16 -1
- package/widgets/support/FilterCondition.js +1 -1
- package/widgets/support/SnappingControls/snappingLayerListUtils.js +1 -1
- package/widgets/support/iconUtils.js +1 -1
- package/assets/esri/core/workers/chunks/0606ab6fdfc1dfea3856.js +0 -1
- package/assets/esri/core/workers/chunks/078dcd17f46403d44b24.js +0 -1
- package/assets/esri/core/workers/chunks/1289204f8ca96032c17a.js +0 -1
- package/assets/esri/core/workers/chunks/12b5a645c0987a0efe54.js +0 -2
- package/assets/esri/core/workers/chunks/152fe3d6ad7aebbd23d1.js +0 -1
- package/assets/esri/core/workers/chunks/17b938ba49fb1e7ab8c4.js +0 -1
- package/assets/esri/core/workers/chunks/1dbb3e25e005a8220779.js +0 -2
- package/assets/esri/core/workers/chunks/3d6fef25af7e1a51e1bd.js +0 -1
- package/assets/esri/core/workers/chunks/3ef367c9b7bf1588307d.js +0 -1
- package/assets/esri/core/workers/chunks/5f4feca26102088ea565.js +0 -1
- package/assets/esri/core/workers/chunks/74211d096cc3296e0968.js +0 -1
- package/assets/esri/core/workers/chunks/7926faab76a721a2e1c4.js +0 -1
- package/assets/esri/core/workers/chunks/ad28486bc6afaa346de5.js +0 -1
- package/assets/esri/core/workers/chunks/ad29c729e90b5866713c.js +0 -1
- package/assets/esri/core/workers/chunks/b72a2514aa4cc4ae7d1b.js +0 -1
- package/assets/esri/core/workers/chunks/bb51cf52b8ea8283f4f8.js +0 -1
- package/assets/esri/core/workers/chunks/be761749f8d77fbd9df5.js +0 -1
- package/assets/esri/core/workers/chunks/dbfd25aa0d19aed5890c.js +0 -1
- package/assets/esri/core/workers/chunks/de28a86775235bd5d3c4.js +0 -2
- package/assets/esri/core/workers/chunks/f6cfc901267a229de7a1.js +0 -2
- package/assets/esri/core/workers/chunks/fb147097149a89e671ff.js +0 -1
- package/support/revision.js +0 -2
- /package/assets/esri/core/workers/chunks/{1dbb3e25e005a8220779.js.LICENSE.txt → 1b946714ca4a1a7359d4.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{f6cfc901267a229de7a1.js.LICENSE.txt → 2a1ec30f9ad305763f81.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{c3b96d1d43afccd23e45.js.LICENSE.txt → 590e6c70206122e4cc3c.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{cfaba0470619786e1ef8.js.LICENSE.txt → 68d8ae42ab71d01a70a5.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{de28a86775235bd5d3c4.js.LICENSE.txt → 8dc1c3042267618fd710.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{12b5a645c0987a0efe54.js.LICENSE.txt → 96c50a0dda0f1503ef92.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9794],{89794(a,e,t){t.r(e),t.d(e,{GlobalIlluminationPassParameters:()=>l.G,build:()=>l.c,defaultColorBleedWeight:()=>0,defaultEmissionBoostFactor:()=>2.5,defaultFactorDaylightDirectional:()=>.8,defaultRayMarchMaxReach:()=>.5,defaultRayMarchMaxReachEmissionWeight:()=>1,defaultRayMarchMaxSteps:()=>16,defaultRayMarchMinReach:()=>.15,defaultRayMarchMinReachEmissionWeight:()=>1,defaultRayMarchWorldReach:()=>25}),t(82048),t(92573),t(65261),t(98619),t(70893),t(34845),t(45324),t(33094),t(20304),t(31821),t(58029),t(12791),t(63761),t(94046),t(72458),t(18519),t(63907),t(65786),t(14113);var l=t(587)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2387],{69052(e,t,r){r.d(t,{hr:()=>o});var n=r(34727);class o{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,r=!1){return i(this.range,this.min,this.max,e,t,r)}clamp(e,t=0){return(0,n.qE)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+l(this.range,e-t,r)}minimalMonotonic(e,t,r){return i(this.range,e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);let r=(t=this.normalize(t))-e,n=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(n)?r:n}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function i(e,t,r,n,o=0,i=!1){return(n-=o)<t?n+=l(e,t-n):n>r&&(n-=l(e,n-r)),i&&n===r&&(n=t),n+o}function l(e,t,r=0){return Math.ceil((t-r)/e)*e+r}const s=new o(0,2*Math.PI),a=(new o(-Math.PI,Math.PI),new o(0,360));r.d(t,["ie",0,a,"uC",0,s])},18370(e,t,r){r.d(t,{z:()=>o});class n{constructor(e){this._import=e,this.module=null,this._promise=null}getImportPromise(){return this._promise??=this._import().then(async e=>(this.module=e,e)),this._promise}}function o(e){return new n(e)}},52039(e,t,r){r.d(t,{O7:()=>c,el:()=>u});var n=r(69052),o=(r(49186),r(18370)),i=r(17676),l=(r(5443),r(39829)),s=(r(82799),r(16930)),a=(r(80754),r(21325));async function u(e,t,r){Array.isArray(e)||(e=[e]),"object"==typeof t&&t&&"authMode"in t&&(r=t);let n=null;for(let t of e)n??=t?.spatialReference;if(!n)return e;let o=(0,a.Vp)(n);if(!o)return e;if(1===e.length&&"extent"===e[0]?.type){let t=e[0].clone().normalizeAsSingleGeometry(o);return["xmin"in t?t:new l.A(t)]}let[s,u]=o.valid,c=!1;for(let t of e){if(!t)continue;if("point"===t.type){c||=t.x>=u,c||=t.x<=s;continue}let{extent:e}=t;if(null==e){c=!0;break}c||=e.xmin>=u,c||=e.xmin<=s,c||=e.xmax>=u,c||=e.xmax<=s}if(!c)return e;let[{foldInto360Range:m},y]=await(0,i.qr)(Promise.all([f.getImportPromise(),p.getImportPromise()]),r),h=y.fromSpatialReference(n);return e.map(e=>{if(null==e||"mesh"===e.type)return e;let t=y.fromGeometry(e),r=y.toGeometry(m(t,h),n);return"extent"===e.type&&1===r?.rings.length?r.extent:r})}const f=(0,o.z)(()=>r.e(4144).then(()=>r(4144)).then(e=>e.load().then(()=>e))),p=(0,o.z)(()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(1550)]).then(()=>r(78125)));function c(e,t,r){let n=(0,a.Vp)(r);if(null==n)return e;let[o,i]=n.valid,l=2*i,s=0,u=0;t>i?s=Math.ceil(Math.abs(t-i)/l):t<o&&(s=-Math.ceil(Math.abs(t-o)/l)),e>i?u=Math.ceil(Math.abs(e-i)/l):e<o&&(u=-Math.ceil(Math.abs(e-o)/l));let f=e+(s-u)*l,p=f-t;return p>i?f-=l:p<o&&(f+=l),f}function m(e){let t=(0,a.Vp)(e);if(null==t)return null;let[r,o]=t.valid;return new n.hr(r,o)}const y=m(s.A.WGS84);m(s.A.WebMercator),r.d(t,["Y_",0,y])},80754(e,t,r){r.d(t,{kS:()=>u,kd:()=>a});var n=r(82799),o=r(16930),i=r(60408),l=r(52006);const s={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new n.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator}),minus180Line:new n.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new n.A({paths:[[[180,-180],[180,180]]],spatialReference:o.A.WGS84}),minus180Line:new n.A({paths:[[[-180,-180],[-180,180]]],spatialReference:o.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){if((0,l.Ed)(e))for(let r of function(e){return(0,i.Bi)(e)?e.curveRings:e.curvePaths}(e))for(let e of r){if((0,l.aO)(e)){let[r,n]=e.c;r[0]+=t,n[0]+=t;continue}if((0,l.FG)(e)){let[r,n]=e.a;r[0]+=t,n[0]+=t;continue}if((0,l.n1)(e)){let[r,n,o]=e.b;r[0]+=t,n[0]+=t,o[0]+=t;continue}e[0]+=t}for(let r of function(e){return(0,i.Bi)(e)?e.rings:e.paths}(e))for(let e of r)e[0]+=t;return e}r.d(t,["j7",0,s])},41653(e,t,r){r.r(t),r.d(t,{queryModel:()=>g,queryModels:()=>d});var n=r(56507),o=r(4576),i=r(49186),l=r(91869),s=r(84952),a=r(32198),u=r(69622),f=r(91429);let p=class extends u.A{constructor(e){super(e),this.name="",this.size=0}arrayBuffer(e){return this.loadArrayBuffer(e)}};(0,a.Cg)([(0,f.MZ)({constructOnly:!0})],p.prototype,"flags",void 0),(0,a.Cg)([(0,f.MZ)({constructOnly:!0})],p.prototype,"loadArrayBuffer",void 0),(0,a.Cg)([(0,f.MZ)({constructOnly:!0})],p.prototype,"name",void 0),(0,a.Cg)([(0,f.MZ)({constructOnly:!0})],p.prototype,"size",void 0),p=(0,a.Cg)([(0,f.$K)("esri.layers.scene.ModelFileInfo")],p);let c=class extends u.A{constructor(e){super(e),this.files=[],this.format="",this.isSource=!1,this.name="",this.size=0}};(0,a.Cg)([(0,f.MZ)({constructOnly:!0})],c.prototype,"files",void 0),(0,a.Cg)([(0,f.MZ)({constructOnly:!0})],c.prototype,"format",void 0),(0,a.Cg)([(0,f.MZ)({constructOnly:!0})],c.prototype,"isSource",void 0),(0,a.Cg)([(0,f.MZ)({constructOnly:!0})],c.prototype,"name",void 0),(0,a.Cg)([(0,f.MZ)({constructOnly:!0})],c.prototype,"size",void 0),c=(0,a.Cg)([(0,f.$K)("esri.layers.scene.ModelInfo")],c);var m=r(20557),y=r(99199),h=r(97552);async function d(e,t,r,n){let a=e.infoFor3D;if(!a)throw new i.A("scenelayer:query-models-not-available","Model queries are not available without 3D object metadata",{layer:e});let{objectIdField:u,globalIdField:f}=t;if(!u||!f)throw new i.A("scenelayer:query-models-not-available","Missing required fields for model queries",{layer:e});let p=function(e,t,r,n){let o=function(e,t){let r=h.A.from(t)?.clone()??e.createQuery();return r.outFields=null,r.formatOf3DObjects=null,r.returnGeometry=!1,r}(e,t);return o.outFields=[r,n],o.returnGeometry=!1,o}(e,r,u,f),c=await t.queryFeatures(p,n);return await async function(e){let{infoFor3D:t,associatedLayer:r,options:n}=e,i=r.globalIdField,a=r.parsedUrl;if(!i||!a)return new Map;let u=await async function(e){let{options:t,infoFor3D:r,featureInfos:n}=e,i=[...n.keys()];if(t?.requestedFormat){let e=(0,m.fE)(t.requestedFormat,r.supportedFormats);return e?[{formatId:e,objectIds:i}]:[]}return await async function({options:e,infoFor3D:t,featureInfos:r,requestQuery:n,associatedLayer:i},a){let u=t.assetMapFieldRoles.parentGlobalId,f=t.assetMapFieldRoles.assetType,p=t.assetMapFieldRoles.flags,c=new Map;for(let[e,{globalId:t}]of r)t&&c.set(e,t);let d=(0,o.Am)(c.values()),g=(0,m.JZ)(t);if(!g||!d.length)return[];let M=(0,s.fj)(i.parsedUrl?.path??"",`../${g.id}`),w=!!e?.sourceOnly,b=new h.A({where:`${u} IN (${d.map(A).join(",")})`,outFields:w?[u,f,p]:[u,f],returnDistinctValues:!0,returnGeometry:!1}),{features:x}=await(0,y.s)(M,b,{query:n,signal:e?.signal}),F=new Set(a),v=new Map;for(let e of x){let t=e.getAttribute(u),r=e.getAttribute(f),n=e.getAttribute(p)??0;!r||!F.has(r)||!t||1&n||(0,l.tE)(v,t,()=>new Set).add(r)}let q=new Map;for(let[e,t]of c)for(let r of v.get(t)??[])(0,l.tE)(q,r,()=>[]).push(e);return a.map(e=>({formatId:e,objectIds:q.get(e)??[]})).filter(({objectIds:e})=>e.length>0)}(e,(0,o.Am)([...r.queryFormats,...r.editFormats]))}(e),f=new Map,p=await Promise.all(u.map(async({formatId:o,objectIds:l})=>{let s=(0,m.be)(o,t.supportedFormats),a=r.parsedUrl;if(null==s||!a||!l.length)return null;let u=(0,m._h)(o,t.supportedFormats),f=(0,m.qv)(u),p=r.createQuery();return p.objectIds=l,p.outFields=[i],p.formatOf3DObjects=o,p.returnGeometry=!0,{modelFormat:s,modelFileExtensions:f,featureSetJSON:await(0,y.e)(a.path,p,{query:e.requestQuery,signal:n?.signal},{uniqueIdFields:r.uniqueIdFields})}}));for(let t of p)t&&M(e,t.modelFormat,t.modelFileExtensions,t.featureSetJSON,f);return f}(new F(e,t,function(e){let t=new Map;for(let r of e.features){let e=r.getObjectId(),n=r.getGlobalId();null!=e&&null!=n&&t.set(e,{globalId:n})}return t}(c),a,n))}async function g(e,t,r,n){let o=n?.format;return((await d(e,t,{objectIds:[r]},{...n,requestedFormat:o,sourceOnly:null==o})).get(r)??[]).find(e=>o&&e.format===o||!o&&e.isSource)}function M({featureInfos:e,requestQuery:t,infoFor3D:r},n,o,i,s){let a=new Map;for(let e of i.assetMaps??[])(0,l.tE)(a,e.parentGlobalId,()=>[]).push(e);for(let[i,u]of e){let e=a.get(u.globalId);if(!e?.length)continue;let f=w(e,t,r);if(!f.length)continue;let p=f.reduce((e,t)=>e+t.size,0),m=x(f,o),y=!m.flags.includes("DERIVED");(0,l.tE)(s,i,()=>[]).push(new c({name:m.name,size:p,format:n,isSource:y,files:f}))}}function w(e,t,r){let n=new Map,o=({assetType:e})=>null!=(0,m.be)(e,r.supportedFormats),i=e.some(e=>o(e)&&!e.flags.includes("DERIVED"));for(let t of e)i&&o(t)&&t.flags.includes("DERIVED")||(0,l.tE)(n,t.assetName,()=>[]).push(t);let s=[];for(let[e,r]of n){r.sort((e,t)=>e.seqNo-t.seqNo);let n=r.reduce((e,t)=>e+t.size,0),o=r.map(({assetURL:e})=>e).filter(e=>!!e);o.length&&s.push(new p({name:e,size:n,flags:r[0].flags,loadArrayBuffer:e=>b(o,t,e)}))}return s}async function b(e,t,r){let o=await Promise.all(e.map(e=>(0,n.A)(e,{responseType:"array-buffer",query:t,signal:r?.signal}).then(({data:e})=>e)));return 1===o.length?o[0]:function(e){let t=e.reduce((e,t)=>e+t.byteLength,0),r=new Uint8Array(t),n=0;for(let t of e)r.set(new Uint8Array(t),n),n+=t.byteLength;return r.buffer}(o)}function x(e,t){return e.find(({name:e})=>t.some(t=>e.toLowerCase().endsWith(`.${t}`)))??e[0]}function A(e){return`'${e.replaceAll("'","''")}'`}class F{constructor(e,t,r,n,o){this.layer=e,this.associatedLayer=t,this.featureInfos=r,this.infoFor3D=n,this.options=o,this.requestQuery={...t.parsedUrl?.query,...e.customParameters,...e.apiKey?{token:e.apiKey}:{}}}}},99199(e,t,r){r.d(t,{e:()=>a,s:()=>s});var n=r(2272),o=r(80893),i=r(22671),l=r(97552);async function s(e,t,r,n){let o=await a(e,t,r,n);return i.A.fromJSON(o)}function a(e,t,r,i){let s=(0,n.Dl)(e),a={...r},u=l.A.from(t);return(0,o.eW)(s,u,u.sourceSpatialReference,a,i)}},22671(e,t,r){r.d(t,{A:()=>M});var n,o=r(32198),i=r(52106),l=r(66552),s=r(25482),a=r(4718),u=r(91429),f=r(16930),p=r(60408),c=r(65864),m=r(50498),y=r(20437),h=r(36005),d=r(43937);const g=new l.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let M=n=class extends s.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,i.A)}writeGeometryType(e,t,r,n){if(e)return void g.write(e,t,r,n);let{features:o}=this;if(o)for(let e of o)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,n)}readQueryGeometry(e,t){if(!e)return null;let r=!!e.spatialReference,n=(0,c.rS)(e);return n&&!r&&t.spatialReference&&(n.spatialReference=f.A.fromJSON(t.spatialReference)),n}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:r}=this;if(r)for(let e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new n(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){let n=t.features[r];n.geometry&&=(e?.[r])?.toJSON()||n.geometry}return t}quantize(e){let{scale:[t,r],translate:[n,o]}=e,i=this.features,l=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-n)/t),e=>Math.round((o-e)/r));for(let e=0,t=i.length;e<t;e++)l?.(i[e].geometry)||(i.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:r}=this;if(!r)return this;let{translate:[n,o],scale:[i,l]}=r,s=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=r;s=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}let u=this._getHydrationFunction(e,e=>e*i+n,e=>o-e*l,s,a);for(let{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){let n=f.A.fromJSON(t.spatialReference),o=[];for(let t=0;t<e.length;t++){let i=e[t],l=r.fromJSON(i),s=i.geometry?.spatialReference;null!=l.geometry&&!s&&(l.geometry.spatialReference=n);let a=i.aggregateGeometries,u=l.aggregateGeometries;if(a&&null!=u)for(let e in u){let t=u[e],r=a[e]?.spatialReference;null!=t&&!r&&(t.spatialReference=n)}o.push(l)}return o}_quantizePoints(e,t,r){let n,o,i=[];for(let l=0,s=e.length;l<s;l++){let s=e[l];if(l>0){let e=t(s[0]),l=r(s[1]);(e!==n||l!==o)&&(i.push([e-n,l-o]),n=e,o=l)}else n=t(s[0]),o=r(s[1]),i.push([n,o])}return i.length>0?i:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{let n=(0,p.Bi)(e)?e.rings:e.paths,o=[];for(let e=0,i=n.length;e<i;e++){let i=n[e],l=this._quantizePoints(i,t,r);l&&o.push(l)}return o.length>0?((0,p.Bi)(e)?e.rings=o:e.paths=o,e):null}:"multipoint"===e?e=>{let n=this._quantizePoints(e.points,t,r);return n&&n.length>0?(e.points=n,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,n,o){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),n&&(e.z=n(e.z))}:"polyline"===e||"polygon"===e?e=>{let i,l,s=(0,p.Bi)(e)?e.rings:e.paths;for(let e=0,n=s.length;e<n;e++){let n=s[e];for(let e=0,o=n.length;e<o;e++){let o=n[e];e>0?(i+=o[0],l+=o[1]):(i=o[0],l=o[1]),o[0]=t(i),o[1]=r(l)}}if(n&&o)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=n(r[2]),r[3]=o(r[3])}}else if(n)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=n(r[2])}}else if(o)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=o(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),n&&null!=e.zmax&&null!=e.zmin&&(e.zmax=n(e.zmax),e.zmin=n(e.zmin)),o&&null!=e.mmax&&null!=e.mmin&&(e.mmax=o(e.mmax),e.mmin=o(e.mmin))}:"multipoint"===e?e=>{let i,l,s=e.points;for(let e=0,n=s.length;e<n;e++){let n=s[e];e>0?(i+=n[0],l+=n[1]):(i=n[0],l=n[1]),n[0]=t(i),n[1]=r(l)}if(n&&o)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=n(t[2]),t[3]=o(t[3])}else if(n)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=n(t[2])}else if(o)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=o(t[2])}}:null}};(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],M.prototype,"displayFieldName",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"exceededTransferLimit",void 0),(0,o.Cg)([(0,u.MZ)({type:[i.A],json:{write:!0}})],M.prototype,"features",void 0),(0,o.Cg)([(0,h.w)("features")],M.prototype,"readFeatures",null),(0,o.Cg)([(0,u.MZ)({type:[y.A],json:{write:!0}})],M.prototype,"fields",void 0),(0,o.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],M.prototype,"geometryType",void 0),(0,o.Cg)([(0,d.K)("geometryType")],M.prototype,"writeGeometryType",null),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"hasM",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"hasZ",void 0),(0,o.Cg)([(0,u.MZ)({types:m.yR,json:{write:!0}})],M.prototype,"queryGeometry",void 0),(0,o.Cg)([(0,h.w)("queryGeometry")],M.prototype,"readQueryGeometry",null),(0,o.Cg)([(0,u.MZ)({type:f.A,json:{write:!0}})],M.prototype,"spatialReference",void 0),(0,o.Cg)([(0,d.K)("spatialReference")],M.prototype,"writeSpatialReference",null),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],M.prototype,"transform",void 0),M=n=(0,o.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],M),M.prototype.toJSON.isDefaultToJSON=!0},2272(e,t,r){r.d(t,{Dl:()=>u,gf:()=>p,jV:()=>a,lF:()=>f});var n=r(92602),o=r(70333),i=r(4718),l=r(84952),s=r(926);function a(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,l.An)(e):(0,i.o8)(e)}function f(e,t,r){let n={};for(let o in e){if("declaredClass"===o)continue;let i=e[o];if(null!=i&&"function"!=typeof i)if(Array.isArray(i))n[o]=i.map(e=>f(e));else if("object"==typeof i)if(i.toJSON){let e=i.toJSON(r?.[o]);n[o]=t?e:JSON.stringify(e)}else n[o]=t?i:JSON.stringify(i);else n[o]=i}return n}async function p(e,t,i){return function(e,t){return e?t&&(0,s.Qc)(e)?t:(0,s.getApiKey)(e)??o.id?.findCredential(e)?.token:null}(e,t)||(!o.id&&n.A.request.useIdentity&&await Promise.all([r.e(6361),r.e(8971),r.e(7715)]).then(()=>r(50148)),(await o.id.getCredential(e,i))?.token)}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2387],{69052(e,t,r){r.d(t,{hr:()=>o});var n=r(34727);class o{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,r=!1){return i(this.range,this.min,this.max,e,t,r)}clamp(e,t=0){return(0,n.qE)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+l(this.range,e-t,r)}minimalMonotonic(e,t,r){return i(this.range,e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);let r=(t=this.normalize(t))-e,n=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(n)?r:n}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function i(e,t,r,n,o=0,i=!1){return(n-=o)<t?n+=l(e,t-n):n>r&&(n-=l(e,n-r)),i&&n===r&&(n=t),n+o}function l(e,t,r=0){return Math.ceil((t-r)/e)*e+r}const s=new o(0,2*Math.PI),a=(new o(-Math.PI,Math.PI),new o(0,360));r.d(t,["ie",0,a,"uC",0,s])},18370(e,t,r){r.d(t,{z:()=>o});class n{constructor(e){this._import=e,this.module=null,this._promise=null}getImportPromise(){return this._promise??=this._import().then(async e=>(this.module=e,e)),this._promise}}function o(e){return new n(e)}},52039(e,t,r){r.d(t,{O7:()=>c,el:()=>u});var n=r(69052),o=(r(49186),r(18370)),i=r(17676),l=(r(5443),r(39829)),s=(r(82799),r(16930)),a=(r(80754),r(21325));async function u(e,t,r){Array.isArray(e)||(e=[e]),"object"==typeof t&&t&&"authMode"in t&&(r=t);let n=null;for(let t of e)n??=t?.spatialReference;if(!n)return e;let o=(0,a.Vp)(n);if(!o)return e;if(1===e.length&&"extent"===e[0]?.type){let t=e[0].clone().normalizeAsSingleGeometry(o);return["xmin"in t?t:new l.A(t)]}let[s,u]=o.valid,c=!1;for(let t of e){if(!t)continue;if("point"===t.type){c||=t.x>=u,c||=t.x<=s;continue}let{extent:e}=t;if(null==e){c=!0;break}c||=e.xmin>=u,c||=e.xmin<=s,c||=e.xmax>=u,c||=e.xmax<=s}if(!c)return e;let[{foldInto360Range:m},y]=await(0,i.qr)(Promise.all([f.getImportPromise(),p.getImportPromise()]),r),h=y.fromSpatialReference(n);return e.map(e=>{if(null==e||"mesh"===e.type)return e;let t=y.fromGeometry(e),r=y.toGeometry(m(t,h),n);return"extent"===e.type&&1===r?.rings.length?r.extent:r})}const f=(0,o.z)(()=>r.e(4144).then(()=>r(4144)).then(e=>e.load().then(()=>e))),p=(0,o.z)(()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(1550)]).then(()=>r(78125)));function c(e,t,r){let n=(0,a.Vp)(r);if(null==n)return e;let[o,i]=n.valid,l=2*i,s=0,u=0;t>i?s=Math.ceil(Math.abs(t-i)/l):t<o&&(s=-Math.ceil(Math.abs(t-o)/l)),e>i?u=Math.ceil(Math.abs(e-i)/l):e<o&&(u=-Math.ceil(Math.abs(e-o)/l));let f=e+(s-u)*l,p=f-t;return p>i?f-=l:p<o&&(f+=l),f}function m(e){let t=(0,a.Vp)(e);if(null==t)return null;let[r,o]=t.valid;return new n.hr(r,o)}const y=m(s.A.WGS84);m(s.A.WebMercator),r.d(t,["Y_",0,y])},80754(e,t,r){r.d(t,{kS:()=>u,kd:()=>a});var n=r(82799),o=r(16930),i=r(60408),l=r(52006);const s={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new n.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator}),minus180Line:new n.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new n.A({paths:[[[180,-180],[180,180]]],spatialReference:o.A.WGS84}),minus180Line:new n.A({paths:[[[-180,-180],[-180,180]]],spatialReference:o.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){if((0,l.Ed)(e))for(let r of function(e){return(0,i.Bi)(e)?e.curveRings:e.curvePaths}(e))for(let e of r){if((0,l.aO)(e)){let[r,n]=e.c;r[0]+=t,n[0]+=t;continue}if((0,l.FG)(e)){let[r,n]=e.a;r[0]+=t,n[0]+=t;continue}if((0,l.n1)(e)){let[r,n,o]=e.b;r[0]+=t,n[0]+=t,o[0]+=t;continue}e[0]+=t}for(let r of function(e){return(0,i.Bi)(e)?e.rings:e.paths}(e))for(let e of r)e[0]+=t;return e}r.d(t,["j7",0,s])},41653(e,t,r){r.r(t),r.d(t,{queryModel:()=>g,queryModels:()=>d});var n=r(56507),o=r(4576),i=r(49186),l=r(91869),s=r(84952),a=r(32198),u=r(69622),f=r(91429);let p=class extends u.A{constructor(e){super(e),this.name="",this.size=0}arrayBuffer(e){return this.loadArrayBuffer(e)}};(0,a.Cg)([(0,f.MZ)({constructOnly:!0})],p.prototype,"flags",void 0),(0,a.Cg)([(0,f.MZ)({constructOnly:!0})],p.prototype,"loadArrayBuffer",void 0),(0,a.Cg)([(0,f.MZ)({constructOnly:!0})],p.prototype,"name",void 0),(0,a.Cg)([(0,f.MZ)({constructOnly:!0})],p.prototype,"size",void 0),p=(0,a.Cg)([(0,f.$K)("esri.layers.scene.ModelFileInfo")],p);let c=class extends u.A{constructor(e){super(e),this.files=[],this.format="",this.isSource=!1,this.name="",this.size=0}};(0,a.Cg)([(0,f.MZ)({constructOnly:!0})],c.prototype,"files",void 0),(0,a.Cg)([(0,f.MZ)({constructOnly:!0})],c.prototype,"format",void 0),(0,a.Cg)([(0,f.MZ)({constructOnly:!0})],c.prototype,"isSource",void 0),(0,a.Cg)([(0,f.MZ)({constructOnly:!0})],c.prototype,"name",void 0),(0,a.Cg)([(0,f.MZ)({constructOnly:!0})],c.prototype,"size",void 0),c=(0,a.Cg)([(0,f.$K)("esri.layers.scene.ModelInfo")],c);var m=r(20557),y=r(99199),h=r(97552);async function d(e,t,r,n){let a=e.infoFor3D;if(!a)throw new i.A("scenelayer:query-models-not-available","Model queries are not available without 3D object metadata",{layer:e});let{objectIdField:u,globalIdField:f}=t;if(!u||!f)throw new i.A("scenelayer:query-models-not-available","Missing required fields for model queries",{layer:e});let p=function(e,t,r,n){let o=function(e,t){let r=h.A.from(t)?.clone()??e.createQuery();return r.outFields=null,r.formatOf3DObjects=null,r.returnGeometry=!1,r}(e,t);return o.outFields=[r,n],o.returnGeometry=!1,o}(e,r,u,f),c=await t.queryFeatures(p,n);return await async function(e){let{infoFor3D:t,associatedLayer:r,options:n}=e,i=r.globalIdField,a=r.parsedUrl;if(!i||!a)return new Map;let u=await async function(e){let{options:t,infoFor3D:r,featureInfos:n}=e,i=[...n.keys()];if(t?.requestedFormat){let e=(0,m.fE)(t.requestedFormat,r.supportedFormats);return e?[{formatId:e,objectIds:i}]:[]}return await async function({options:e,infoFor3D:t,featureInfos:r,requestQuery:n,associatedLayer:i},a){let u=t.assetMapFieldRoles.parentGlobalId,f=t.assetMapFieldRoles.assetType,p=t.assetMapFieldRoles.flags,c=new Map;for(let[e,{globalId:t}]of r)t&&c.set(e,t);let d=(0,o.Am)(c.values()),g=(0,m.JZ)(t);if(!g||!d.length)return[];let M=(0,s.fj)(i.parsedUrl?.path??"",`../${g.id}`),w=!!e?.sourceOnly,b=new h.A({where:`${u} IN (${d.map(A).join(",")})`,outFields:w?[u,f,p]:[u,f],returnDistinctValues:!0,returnGeometry:!1}),{features:x}=await(0,y.s)(M,b,{query:n,signal:e?.signal}),F=new Set(a),v=new Map;for(let e of x){let t=e.getAttribute(u),r=e.getAttribute(f),n=e.getAttribute(p)??0;!r||!F.has(r)||!t||1&n||(0,l.tE)(v,t,()=>new Set).add(r)}let q=new Map;for(let[e,t]of c)for(let r of v.get(t)??[])(0,l.tE)(q,r,()=>[]).push(e);return a.map(e=>({formatId:e,objectIds:q.get(e)??[]})).filter(({objectIds:e})=>e.length>0)}(e,(0,o.Am)([...r.queryFormats,...r.editFormats]))}(e),f=new Map,p=await Promise.all(u.map(async({formatId:o,objectIds:l})=>{let s=(0,m.be)(o,t.supportedFormats),a=r.parsedUrl;if(null==s||!a||!l.length)return null;let u=(0,m._h)(o,t.supportedFormats),f=(0,m.qv)(u),p=r.createQuery();return p.objectIds=l,p.outFields=[i],p.formatOf3DObjects=o,p.returnGeometry=!0,{modelFormat:s,modelFileExtensions:f,featureSetJSON:await(0,y.e)(a.path,p,{query:e.requestQuery,signal:n?.signal},{uniqueIdFields:r.uniqueIdFields})}}));for(let t of p)t&&M(e,t.modelFormat,t.modelFileExtensions,t.featureSetJSON,f);return f}(new F(e,t,function(e){let t=new Map;for(let r of e.features){let e=r.getObjectId(),n=r.getGlobalId();null!=e&&null!=n&&t.set(e,{globalId:n})}return t}(c),a,n))}async function g(e,t,r,n){let o=n?.format;return((await d(e,t,{objectIds:[r]},{...n,requestedFormat:o,sourceOnly:null==o})).get(r)??[]).find(e=>o&&e.format===o||!o&&e.isSource)}function M({featureInfos:e,requestQuery:t,infoFor3D:r},n,o,i,s){let a=new Map;for(let e of i.assetMaps??[])(0,l.tE)(a,e.parentGlobalId,()=>[]).push(e);for(let[i,u]of e){let e=a.get(u.globalId);if(!e?.length)continue;let f=w(e,t,r);if(!f.length)continue;let p=f.reduce((e,t)=>e+t.size,0),m=x(f,o),y=!m.flags.includes("DERIVED");(0,l.tE)(s,i,()=>[]).push(new c({name:m.name,size:p,format:n,isSource:y,files:f}))}}function w(e,t,r){let n=new Map,o=({assetType:e})=>null!=(0,m.be)(e,r.supportedFormats),i=e.some(e=>o(e)&&!e.flags.includes("DERIVED"));for(let t of e)i&&o(t)&&t.flags.includes("DERIVED")||(0,l.tE)(n,t.assetName,()=>[]).push(t);let s=[];for(let[e,r]of n){r.sort((e,t)=>e.seqNo-t.seqNo);let n=r.reduce((e,t)=>e+t.size,0),o=r.map(({assetURL:e})=>e).filter(e=>!!e);o.length&&s.push(new p({name:e,size:n,flags:r[0].flags,loadArrayBuffer:e=>b(o,t,e)}))}return s}async function b(e,t,r){let o=await Promise.all(e.map(e=>(0,n.A)(e,{responseType:"array-buffer",query:t,signal:r?.signal}).then(({data:e})=>e)));return 1===o.length?o[0]:function(e){let t=e.reduce((e,t)=>e+t.byteLength,0),r=new Uint8Array(t),n=0;for(let t of e)r.set(new Uint8Array(t),n),n+=t.byteLength;return r.buffer}(o)}function x(e,t){return e.find(({name:e})=>t.some(t=>e.toLowerCase().endsWith(`.${t}`)))??e[0]}function A(e){return`'${e.replaceAll("'","''")}'`}class F{constructor(e,t,r,n,o){this.layer=e,this.associatedLayer=t,this.featureInfos=r,this.infoFor3D=n,this.options=o,this.requestQuery={...t.parsedUrl?.query,...e.customParameters,...e.apiKey?{token:e.apiKey}:{}}}}},99199(e,t,r){r.d(t,{e:()=>a,s:()=>s});var n=r(2272),o=r(80893),i=r(22671),l=r(97552);async function s(e,t,r,n){let o=await a(e,t,r,n);return i.A.fromJSON(o)}function a(e,t,r,i){let s=(0,n.Dl)(e),a={...r},u=l.A.from(t);return(0,o.eW)(s,u,u.sourceSpatialReference,a,i)}},22671(e,t,r){r.d(t,{A:()=>M});var n,o=r(32198),i=r(52106),l=r(66552),s=r(25482),a=r(4718),u=r(91429),f=r(16930),p=r(60408),c=r(65864),m=r(50498),y=r(20437),h=r(36005),d=r(43937);const g=new l.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let M=n=class extends s.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,i.A)}writeGeometryType(e,t,r,n){if(e)return void g.write(e,t,r,n);let{features:o}=this;if(o)for(let e of o)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,n)}readQueryGeometry(e,t){if(!e)return null;let r=!!e.spatialReference,n=(0,c.rS)(e);return n&&!r&&t.spatialReference&&(n.spatialReference=f.A.fromJSON(t.spatialReference)),n}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:r}=this;if(r)for(let e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new n(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){let n=t.features[r];n.geometry&&=(e?.[r])?.toJSON()||n.geometry}return t}quantize(e){let{scale:[t,r],translate:[n,o]}=e,i=this.features,l=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-n)/t),e=>Math.round((o-e)/r));for(let e=0,t=i.length;e<t;e++)l?.(i[e].geometry)||(i.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:r}=this;if(!r)return this;let{translate:[n,o],scale:[i,l]}=r,s=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=r;s=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}let u=this._getHydrationFunction(e,e=>e*i+n,e=>o-e*l,s,a);for(let{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){let n=f.A.fromJSON(t.spatialReference),o=[];for(let t=0;t<e.length;t++){let i=e[t],l=r.fromJSON(i),s=i.geometry?.spatialReference;null!=l.geometry&&!s&&(l.geometry.spatialReference=n);let a=i.aggregateGeometries,u=l.aggregateGeometries;if(a&&null!=u)for(let e in u){let t=u[e],r=a[e]?.spatialReference;null!=t&&!r&&(t.spatialReference=n)}o.push(l)}return o}_quantizePoints(e,t,r){let n,o,i=[];for(let l=0,s=e.length;l<s;l++){let s=e[l];if(l>0){let e=t(s[0]),l=r(s[1]);(e!==n||l!==o)&&(i.push([e-n,l-o]),n=e,o=l)}else n=t(s[0]),o=r(s[1]),i.push([n,o])}return i.length>0?i:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{let n=(0,p.Bi)(e)?e.rings:e.paths,o=[];for(let e=0,i=n.length;e<i;e++){let i=n[e],l=this._quantizePoints(i,t,r);l&&o.push(l)}return o.length>0?((0,p.Bi)(e)?e.rings=o:e.paths=o,e):null}:"multipoint"===e?e=>{let n=this._quantizePoints(e.points,t,r);return n&&n.length>0?(e.points=n,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,n,o){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),n&&(e.z=n(e.z))}:"polyline"===e||"polygon"===e?e=>{let i,l,s=(0,p.Bi)(e)?e.rings:e.paths;for(let e=0,n=s.length;e<n;e++){let n=s[e];for(let e=0,o=n.length;e<o;e++){let o=n[e];e>0?(i+=o[0],l+=o[1]):(i=o[0],l=o[1]),o[0]=t(i),o[1]=r(l)}}if(n&&o)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=n(r[2]),r[3]=o(r[3])}}else if(n)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=n(r[2])}}else if(o)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=o(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),n&&null!=e.zmax&&null!=e.zmin&&(e.zmax=n(e.zmax),e.zmin=n(e.zmin)),o&&null!=e.mmax&&null!=e.mmin&&(e.mmax=o(e.mmax),e.mmin=o(e.mmin))}:"multipoint"===e?e=>{let i,l,s=e.points;for(let e=0,n=s.length;e<n;e++){let n=s[e];e>0?(i+=n[0],l+=n[1]):(i=n[0],l=n[1]),n[0]=t(i),n[1]=r(l)}if(n&&o)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=n(t[2]),t[3]=o(t[3])}else if(n)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=n(t[2])}else if(o)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=o(t[2])}}:null}};(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],M.prototype,"displayFieldName",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"exceededTransferLimit",void 0),(0,o.Cg)([(0,u.MZ)({type:[i.A],json:{write:!0}})],M.prototype,"features",void 0),(0,o.Cg)([(0,h.w)("features")],M.prototype,"readFeatures",null),(0,o.Cg)([(0,u.MZ)({type:[y.A],json:{write:!0}})],M.prototype,"fields",void 0),(0,o.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],M.prototype,"geometryType",void 0),(0,o.Cg)([(0,d.K)("geometryType")],M.prototype,"writeGeometryType",null),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"hasM",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"hasZ",void 0),(0,o.Cg)([(0,u.MZ)({types:m.yR,json:{write:!0}})],M.prototype,"queryGeometry",void 0),(0,o.Cg)([(0,h.w)("queryGeometry")],M.prototype,"readQueryGeometry",null),(0,o.Cg)([(0,u.MZ)({type:f.A,json:{write:!0}})],M.prototype,"spatialReference",void 0),(0,o.Cg)([(0,d.K)("spatialReference")],M.prototype,"writeSpatialReference",null),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],M.prototype,"transform",void 0),M=n=(0,o.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],M),M.prototype.toJSON.isDefaultToJSON=!0},2272(e,t,r){r.d(t,{Dl:()=>u,gf:()=>p,jV:()=>a,lF:()=>f});var n=r(92602),o=r(70333),i=r(4718),l=r(84952),s=r(926);function a(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,l.An)(e):(0,i.o8)(e)}function f(e,t,r){let n={};for(let o in e){if("declaredClass"===o)continue;let i=e[o];if(null!=i&&"function"!=typeof i)if(Array.isArray(i))n[o]=i.map(e=>f(e));else if("object"==typeof i)if(i.toJSON){let e=i.toJSON(r?.[o]);n[o]=t?e:JSON.stringify(e)}else n[o]=t?i:JSON.stringify(i);else n[o]=i}return n}async function p(e,t,i){return function(e,t){return e?t&&(0,s.Qc)(e)?t:(0,s.getApiKey)(e)??o.id?.findCredential(e)?.token:null}(e,t)||(!o.id&&n.A.request.useIdentity&&await Promise.all([r.e(6361),r.e(7644),r.e(7715)]).then(()=>r(50148)),(await o.id.getCredential(e,i))?.token)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2772,6451],{80200(e,t,i){i.d(t,{d:()=>c});const n={Base64:0,Hex:1,String:2,Raw:3};function s(e,t){let i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function r(e,t,i,n,r,o){return s(function(e,t){return e<<t|e>>>32-t}(s(s(t,e),s(n,o)),r),i)}function o(e,t,i,n,s,o,l){return r(t&i|~t&n,e,t,s,o,l)}function l(e,t,i,n,s,o,l){return r(t&n|i&~n,e,t,s,o,l)}function a(e,t,i,n,s,o,l){return r(t^i^n,e,t,s,o,l)}function h(e,t,i,n,s,o,l){return r(i^(t|~n),e,t,s,o,l)}function u(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let i=1732584193,n=-271733879,r=-1732584194,u=271733878;for(let t=0;t<e.length;t+=16){let c=i,p=n,f=r,m=u;i=o(i,n,r,u,e[t],7,-680876936),u=o(u,i,n,r,e[t+1],12,-389564586),r=o(r,u,i,n,e[t+2],17,606105819),n=o(n,r,u,i,e[t+3],22,-1044525330),i=o(i,n,r,u,e[t+4],7,-176418897),u=o(u,i,n,r,e[t+5],12,1200080426),r=o(r,u,i,n,e[t+6],17,-1473231341),n=o(n,r,u,i,e[t+7],22,-45705983),i=o(i,n,r,u,e[t+8],7,1770035416),u=o(u,i,n,r,e[t+9],12,-1958414417),r=o(r,u,i,n,e[t+10],17,-42063),n=o(n,r,u,i,e[t+11],22,-1990404162),i=o(i,n,r,u,e[t+12],7,1804603682),u=o(u,i,n,r,e[t+13],12,-40341101),r=o(r,u,i,n,e[t+14],17,-1502002290),n=o(n,r,u,i,e[t+15],22,1236535329),i=l(i,n,r,u,e[t+1],5,-165796510),u=l(u,i,n,r,e[t+6],9,-1069501632),r=l(r,u,i,n,e[t+11],14,643717713),n=l(n,r,u,i,e[t],20,-373897302),i=l(i,n,r,u,e[t+5],5,-701558691),u=l(u,i,n,r,e[t+10],9,38016083),r=l(r,u,i,n,e[t+15],14,-660478335),n=l(n,r,u,i,e[t+4],20,-405537848),i=l(i,n,r,u,e[t+9],5,568446438),u=l(u,i,n,r,e[t+14],9,-1019803690),r=l(r,u,i,n,e[t+3],14,-187363961),n=l(n,r,u,i,e[t+8],20,1163531501),i=l(i,n,r,u,e[t+13],5,-1444681467),u=l(u,i,n,r,e[t+2],9,-51403784),r=l(r,u,i,n,e[t+7],14,1735328473),n=l(n,r,u,i,e[t+12],20,-1926607734),i=a(i,n,r,u,e[t+5],4,-378558),u=a(u,i,n,r,e[t+8],11,-2022574463),r=a(r,u,i,n,e[t+11],16,1839030562),n=a(n,r,u,i,e[t+14],23,-35309556),i=a(i,n,r,u,e[t+1],4,-1530992060),u=a(u,i,n,r,e[t+4],11,1272893353),r=a(r,u,i,n,e[t+7],16,-155497632),n=a(n,r,u,i,e[t+10],23,-1094730640),i=a(i,n,r,u,e[t+13],4,681279174),u=a(u,i,n,r,e[t],11,-358537222),r=a(r,u,i,n,e[t+3],16,-722521979),n=a(n,r,u,i,e[t+6],23,76029189),i=a(i,n,r,u,e[t+9],4,-640364487),u=a(u,i,n,r,e[t+12],11,-421815835),r=a(r,u,i,n,e[t+15],16,530742520),n=a(n,r,u,i,e[t+2],23,-995338651),i=h(i,n,r,u,e[t],6,-198630844),u=h(u,i,n,r,e[t+7],10,1126891415),r=h(r,u,i,n,e[t+14],15,-1416354905),n=h(n,r,u,i,e[t+5],21,-57434055),i=h(i,n,r,u,e[t+12],6,1700485571),u=h(u,i,n,r,e[t+3],10,-1894986606),r=h(r,u,i,n,e[t+10],15,-1051523),n=h(n,r,u,i,e[t+1],21,-2054922799),i=h(i,n,r,u,e[t+8],6,1873313359),u=h(u,i,n,r,e[t+15],10,-30611744),r=h(r,u,i,n,e[t+6],15,-1560198380),n=h(n,r,u,i,e[t+13],21,1309151649),i=h(i,n,r,u,e[t+4],6,-145523070),u=h(u,i,n,r,e[t+11],10,-1120210379),r=h(r,u,i,n,e[t+2],15,718787259),n=h(n,r,u,i,e[t+9],21,-343485551),i=s(i,c),n=s(n,p),r=s(r,f),u=s(u,m)}return[i,n,r,u]}function c(e,t=n.Hex){let i=t||n.Base64,s=u(function(e){let t=[];for(let i=0,n=8*e.length;i<n;i+=8)t[i>>5]|=(255&e.charCodeAt(i/8))<<i%32;return t}(e),8*e.length);switch(i){case n.Raw:return s;case n.Hex:return function(e){let t="0123456789abcdef",i=[];for(let n=0,s=4*e.length;n<s;n++)i.push(t.charAt(e[n>>2]>>n%4*8+4&15)+t.charAt(e[n>>2]>>n%4*8&15));return i.join("")}(s);case n.String:return function(e){let t=[];for(let i=0,n=32*e.length;i<n;i+=8)t.push(String.fromCharCode(e[i>>5]>>>i%32&255));return t.join("")}(s);case n.Base64:return function(e){let t=[];for(let i=0,n=4*e.length;i<n;i+=3){let n=(e[i>>2]>>i%4*8&255)<<16|(e[i+1>>2]>>(i+1)%4*8&255)<<8|e[i+2>>2]>>(i+2)%4*8&255;for(let s=0;s<4;s++)8*i+6*s>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n>>6*(3-s)&63))}return t.join("")}(s)}}i.d(t,["T",0,n])},87024(e,t,i){i.d(t,{P:()=>f});var n=i(49186),s=i(80200),r=i(76553),o=i(84952),l=i(13069),a=i(96156),h=i(35666),u=i(10107),c=i(85648),p=i(97159);function f(e){let t=e?.origins??[void 0];return(i,n)=>{let s=function(e,t,i){if("resource"===e?.type)return function(e,t,i){let n=(0,a.z4)(t,i);return{type:String,read:(e,t,i)=>{let s=(0,p.r)(e,t,i);return n.type===String?s:"function"==typeof n.type?new n.type({url:s}):void 0},write:{isRequired:n.json?.write?.isRequired,writer(t,s,l,a){if(!a?.resources)return"string"==typeof t?void(s[l]=(0,p.t)(t,a)):void(s[l]=t.write({},a));let u=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),f=(0,p.t)(u,{...a,verifyItemRelativeUrls:a?.verifyItemRelativeUrls?{writtenUrls:a.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1),y=n.type!==String&&(!(0,r.H)(this)||a?.origin&&this.originIdOf(i)>(0,h.aB)(a.origin)),_={object:this,propertyName:i,value:t,targetUrl:f,dest:s,targetPropertyName:l,context:a,params:e};a?.portalItem&&f&&!(0,o.oP)(f)?y&&e?.contentAddressed?m(_):y?function(e){let{context:t,targetUrl:i,params:n,value:s,dest:r,targetPropertyName:l}=e;if(!t.portalItem)return;let a=t.portalItem.resourceFromPath(i),h=g(s,i,t),u=(0,c.n)(h),p=(0,o.Zo)(a.path),f=n?.compress??!1;u===p?(t.resources&&d({...e,resource:a,content:h,compress:f,updates:t.resources.toUpdate}),r[l]=i):m(e)}(_):function({context:e,targetUrl:t,dest:i,targetPropertyName:n}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),i[n]=t)}(_):a?.portalItem&&(null==f||null!=(0,p.i)(f)||(0,o.w8)(f)||y)?m(_):s[l]=f}}}}(e,t,i);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{let{read:e,write:t}=p.b;return{read:e,write:t}}}}(e,i,n);for(let e of t){let t=(0,u.rM)(i,e,n);for(let e in s)t[e]=s[e]}}}function m(e){let{targetUrl:t,params:i,value:r,context:a,dest:h,targetPropertyName:u}=e;if(!a.portalItem)return;let f=(0,p.p)(t),m=g(r,t,a);if(i?.contentAddressed&&"json"!==m.type)return void a.messages?.push(new n.A("persistable:contentAddressingUnsupported",`Property "${u}" is trying to serializing a resource with content of type ${m.type} with content addressing. Content addressing is only supported for json resources.`,{content:m}));let y=i?.contentAddressed&&"json"===m.type?(0,s.d)(m.jsonString):f?.filename??(0,l.lk)(),_=i?.prefix??f?.prefix,x=(0,o.fj)(_,y),v=`${x}.${(0,c.n)(m)}`;if(i?.contentAddressed&&a.resources&&"json"===m.type){let e=a.resources.toKeep.find(({resource:e})=>e.path===v)??a.resources.toAdd.find(({resource:e})=>e.path===v);if(e)return void(h[u]=e.resource.itemRelativeUrl)}let C=a.portalItem.resourceFromPath(v);(0,o.w8)(t)&&a.resources&&a.resources.pendingOperations.push((0,o.tk)(t).then(e=>{C.path=`${x}.${(0,c.n)({type:"blob",blob:e})}`,h[u]=C.itemRelativeUrl}).catch(()=>{}));let w=i?.compress??!1;a.resources&&d({...e,resource:C,content:m,compress:w,updates:a.resources.toAdd}),h[u]=C.itemRelativeUrl}function d({object:e,propertyName:t,updates:i,resource:n,content:s,compress:r}){i.push({resource:n,content:s,compress:r,finish:i=>{!function(e,t,i){"string"==typeof e[t]?e[t]=i.url:e[t].url=i.url}(e,t,i)}})}function g(e,t,i){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(i))}}},83027(e,t,i){const n=i(29953).ho;i.d(t,["h",0,n])},35982(e,t,i){i.d(t,{B:()=>u});var n=i(4576),s=i(71511),r=i(36563),o=i(53966),l=i(97768),a=i(17676),h=i(83027);class u{constructor(e,t,i,n,s={}){this._mainMethod=t,this._transferLists=i,this._listeners=[],this._onClientConnectedHandle=null,this._destroyed=!1,this._promise=(0,h.h)(e,{...s,schedule:n}).then(e=>{null!=this._thread||this._destroyed?e.close():(this._thread=e,this._promise=null,this._onClientConnectedHandle=this._thread.onClientConnected(e=>{s.hasInitialize&&e.invoke("initialize",{}).catch(()=>{});for(let t of this._listeners)this._connectListenerToClient(t,e);this._onClientConnected(e)}))}),this._promise.catch(t=>o.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${e} worker: ${t}`))}on(e,t){let i=new c(e,t);return this._listeners.push(i),this._connectListener(i),(0,r.hA)(()=>{(0,n.TF)(this._listeners,i),i.destroy()})}[Symbol.dispose](){this.destroy()}destroy(){this._onClientConnectedHandle=(0,l.xt)(this._onClientConnectedHandle),this._thread&&=(this._thread.close(),null),this._promise=null;for(let e of this._listeners)e.destroy();this._listeners.length=0,this._transferLists={},this._destroyed=!0}invoke(e,t,i){return this.invokeMethod(this._mainMethod,e,t,i)}invokeMethod(e,t,i,n){if(this._thread){let s=this._transferLists[e],r=s?s(t):[];return this._thread.invoke(e,t,{transferList:r,signal:i,jobPriority:n})}return this._promise?this._promise.then(()=>((0,a.Te)(i),this.invokeMethod(e,t,i))):Promise.reject((0,a.NK)())}broadcast(e,t){return this._thread?Promise.all(this._thread.broadcast(t,e)).then(p):this._promise?this._promise.then(()=>this.broadcast(e,t)):Promise.reject((0,a.NK)())}get promise(){return this._promise}_onClientConnected(e){}_connectListener(e){this._thread&&e.add(this._thread.on(e.eventName,e.callback))}_connectListenerToClient(e,t){e.add(t.on(e.eventName,e.callback))}}class c{constructor(e,t){this.eventName=e,this.callback=t,this._handles=new s.A}add(e){this._handles.add(e)}destroy(){this._handles.destroy()}}function p(){}},89056(e,t,i){i.d(t,{b3:()=>c,jZ:()=>u});var n=i(12195),s=i(19419),r=i(537),o=i(95108),l=i(60408),a=i(80754),h=i(21325);function u(e){return p(e,!0)}function c(e){return p(e,!1)}function p(e,t){if(null==e)return null;let i=e.spatialReference,s=(0,h.Vp)(i),o=(0,n.W)(e)?e.toJSON():e;if(!s)return o;let u=(0,h.K8)(i)?102100:4326,c=a.j7[u].maxX,p=a.j7[u].minX;if((0,l.fT)(o))return m(o,c,p);if((0,l.U9)(o))return o.points=o.points.map(e=>m(e,c,p)),o;if((0,l.ZC)(o))return f(o,s);if((0,l.Bi)(o)||(0,l.Rg)(o)){let e=(0,r.Rg)(v,o),i={xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3]},n=(0,a.kd)(i.xmin,p),s=2*c*n,l=0===s?o:(0,a.kS)(o,s);return i.xmin+=s,i.xmax+=s,i.xmax>c?_(l,c,t):i.xmin<p?_(l,p,t):l}return o}function f(e,t){if(!t)return e;let i=function(e,t){let i=[],{ymin:n,ymax:s,xmin:r,xmax:o}=e,l=e.xmax-e.xmin,[a,h]=t.valid,{x:u,frameId:c}=d(e.xmin,t),{x:p,frameId:f}=d(e.xmax,t),m=u===p&&l>0;if(l>2*h){let e={xmin:r<o?u:p,ymin:n,xmax:h,ymax:s},t={xmin:a,ymin:n,xmax:r<o?p:u,ymax:s},l={xmin:0,ymin:n,xmax:h,ymax:s},m={xmin:a,ymin:n,xmax:0,ymax:s},d=[],y=[];g(e,l)&&d.push(c),g(e,m)&&y.push(c),g(t,l)&&d.push(f),g(t,m)&&y.push(f);for(let e=c+1;e<f;e++)d.push(e),y.push(e);i.push(new x(e,[c]),new x(t,[f]),new x(l,d),new x(m,y))}else u>p||m?i.push(new x({xmin:u,ymin:n,xmax:h,ymax:s},[c]),new x({xmin:a,ymin:n,xmax:p,ymax:s},[f])):i.push(new x({xmin:u,ymin:n,xmax:p,ymax:s},[c]));return i}(e,t).map(e=>e.extent);return i.length<2?i[0]||e:i.length>2?(e.xmin=t.valid[0],e.xmax=t.valid[1],e):{rings:i.map(e=>[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]])}}function m(e,t,i){if(Array.isArray(e)){let n=e[0];if(n>t){let i=(0,a.kd)(n,t);e[0]=n+-2*t*i}else if(n<i){let t=(0,a.kd)(n,i);e[0]=n+-2*i*t}}else{let n=e.x;if(n>t){let i=(0,a.kd)(n,t);e.x+=-2*t*i}else if(n<i){let t=(0,a.kd)(n,i);e.x+=-2*i*t}}return e}function d(e,t){let i,[n,s]=t.valid,r=2*s,o=0;return e>s?(i=Math.ceil(Math.abs(e-s)/r),e-=i*r,o=i):e<n&&(i=Math.ceil(Math.abs(e-n)/r),e+=i*r,o=-i),{x:e,frameId:o}}function g(e,t){let{xmin:i,ymin:n,xmax:s,ymax:r}=t;return y(e,i,n)&&y(e,i,r)&&y(e,s,r)&&y(e,s,n)}function y(e,t,i){return t>=e.xmin&&t<=e.xmax&&i>=e.ymin&&i<=e.ymax}function _(e,t,i=!0){let n=!(0,l.Rg)(e);if(n&&(0,o.m3)(e),i)return(new C).cut(e,t);let s=n?e.rings:e.paths,r=n?4:2,a=s.length,h=-2*t;for(let e=0;e<a;e++){let t=s[e];if(t&&t.length>=r){let e=[];for(let[i,...n]of t)e.push([i+h,...n]);s.push(e)}}return n?e.rings=s:e.paths=s,e}class x{constructor(e,t){this.extent=e,this.frameIds=t}}const v=(0,s.vt)();class C{constructor(){this._linesIn=[],this._linesOut=[]}cut(e,t){let i;if(this._xCut=t,e.rings)this._closed=!0,i=e.rings,this._minPts=4;else{if(!e.paths)return null;this._closed=!1,i=e.paths,this._minPts=2}for(let e of i){if(!e||e.length<this._minPts)continue;let t=!0;for(let i of e)t?(this.moveTo(i),t=!1):this.lineTo(i);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),i=[];for(let e of this._linesIn)e&&e.length>=this._minPts&&i.push(e);let n=-2*this._xCut;for(let e of this._linesOut)if(e&&e.length>=this._minPts){for(let t of e)t[0]+=n;i.push(e)}return this._closed?e.rings=i:e.paths=i,e}moveTo(e){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(e[0]),this._moveTo(e,this._prevSide),this._prevPt=e,this._firstPt=e}lineTo(e){let t=this._side(e[0]);if(t*this._prevSide===-1){let i=this._intersect(this._prevPt,e);this._lineTo(i,0),this._prevSide=0,this._lineTo(e,t)}else this._lineTo(e,t);this._prevSide=t,this._prevPt=e}close(){let e=this._firstPt,t=this._prevPt;(e[0]!==t[0]||e[1]!==t[1])&&this.lineTo(e),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(e,t){this._closed?(this._lineIn.push(w(e,t<=0?e[0]:this._xCut)),this._lineOut.push(w(e,t>=0?e[0]:this._xCut))):(t<=0&&this._lineIn.push(e.slice()),t>=0&&this._lineOut.push(e.slice()))}_lineTo(e,t){this._closed?(S(this._lineIn,e,t<=0?e[0]:this._xCut),S(this._lineOut,e,t>=0?e[0]:this._xCut)):t<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push(e.slice())):t>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push(e.slice())):this._prevSide<0?(this._lineIn.push(e.slice()),this._lineOut.push(e.slice())):this._prevSide>0&&(this._lineOut.push(e.slice()),this._lineIn.push(e.slice()))}_checkClosingPt(e){let t=e.length;t>3&&e[0][0]===this._xCut&&e[t-2][0]===this._xCut&&e[1][0]===this._xCut&&(e[0]=e[t-2].slice(),e.pop())}_side(e){return e<this._xCut?-1:+(e>this._xCut)}_intersect(e,t){let i=(this._xCut-e[0])/(t[0]-e[0]),n=[this._xCut,e[1]+i*(t[1]-e[1])],s=Math.min(e.length,t.length);for(let r=2;r<s;r++)n.push(e[r]+i*(t[r]-e[r]));return n}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}function w(e,t){let i=e.slice();return i[0]=t,i}function S(e,t,i){let n=e.length;n>1&&e[n-1][0]===i&&e[n-2][0]===i?e[n-1]=w(t,i):e.push(w(t,i))}},58325(e,t,i){i.d(t,{A:()=>S});var n,s=i(32198),r=i(56507),o=i(7762),l=i(25482),a=i(84952),h=i(91429),u=i(4718),c=i(67076),p=i(87024),f=i(39829),m=i(99917),d=i(16930),g=i(21325),y=i(88546),_=i(72772),x=i(98697),v=i(43937);let C=n=class extends l.o{constructor(e){super(e),this.geometry=null,this.type="clip"}writeGeometry(e,t,i,n){if(this._needWGS84Conversion(n))this._doWGS84Conversion(t,i,n);else if(n.layer?.spatialReference&&!n.layer.spatialReference.equals(this.geometry.spatialReference)){if(!(0,m.canProjectWithoutEngine)(e.spatialReference,n.layer.spatialReference))return void(n?.messages&&n.messages.push(new c.A("scenemodification:unsupported","Scene modifications with incompatible spatial references are not supported",{modification:this,spatialReference:n.layer.spatialReference,context:n})));let s=new f.A;(0,m.projectPolygon)(e,s,n.layer.spatialReference),t[i]=s.toJSON(n)}else t[i]=e.toJSON(n)}_needWGS84Conversion(e){if("integrated-mesh-3dtiles"===e.layer?.type){let t=e.layer;return!t.esriCrsSpatialReference||!(0,g.aI)(t.esriCrsSpatialReference,this.geometry.spatialReference)}return!1}_doWGS84Conversion(e,t,i){let n=!0;if((0,_.isInitialized)()){let s=[this],r=(0,x.Ir)(null,s,d.A.WGS84);if(r.length>1){let s=(0,_.switchMeshModificationPolygonVCSSync)({modifications:r,inVCS:5773});if(s.success&&s.modifications){let r=[this.clone()];(0,x.H1)(s.modifications,r),1===r.length&&r[0].geometry&&(r[0].geometry.spatialReference=y.Zx,e[t]=r[0].geometry.toJSON(i),n=!1)}}}n&&i?.messages&&i.messages.push(new c.A("scenemodification:unsupported","Scene modifications with incompatible spatial references are not supported",{modification:this,spatialReference:this.geometry.spatialReference,context:i}))}clone(){return new n({geometry:(0,u.o8)(this.geometry),type:this.type})}};var w;(0,s.Cg)([(0,h.MZ)({type:f.A}),(0,p.P)()],C.prototype,"geometry",void 0),(0,s.Cg)([(0,v.K)(["web-scene","portal-item"],"geometry")],C.prototype,"writeGeometry",null),(0,s.Cg)([(0,h.MZ)({type:["clip","mask","replace"],nonNullable:!0}),(0,p.P)()],C.prototype,"type",void 0),C=n=(0,s.Cg)([(0,h.$K)("esri.layers.support.SceneModification")],C);let S=w=class extends((0,l.T)(o.A.ofType(C))){constructor(e){super(e),this.url=null}clone(){return new w({url:this.url,items:this.items.map(e=>e.clone())})}toJSON(e){return this.toArray().map(t=>t.toJSON(e)).filter(e=>!!e.geometry)}static fromJSON(e,t){let i=new w;for(let n of e)i.add(C.fromJSON(n,t));return i}static async fromUrl(e,t,i,n=!1){let s={url:(0,a.An)(e),origin:"service"},o=await(0,r.A)(e,{responseType:"json",signal:i?.signal}),l=t.toJSON(),h=[];for(let e of o.data){let t=l;n&&e.geometry.spatialReference&&(t=e.geometry.spatialReference),h.push(C.fromJSON({...e,geometry:{spatialReference:t,...e.geometry}},s))}return new w({url:e,items:h})}};(0,s.Cg)([(0,h.MZ)({type:String})],S.prototype,"url",void 0),S=w=(0,s.Cg)([(0,h.$K)("esri.layers.support.SceneModifications")],S)},85648(e,t,i){i.d(t,{n:()=>s});var n=i(84952);function s(e){return r[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){let t=(0,n.Zo)(e);return a[t]||o}(e.url)}(e)]||l}const r={},o="text/plain",l=r[o],a={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(let e in a)r[a[e]]=e},80215(e,t,i){i.d(t,{Q:()=>s});const n=Symbol("GroundInstance");function s(e){return"object"==typeof e&&!!e&&n in e}},72772(e,t,i){i.r(t),i.d(t,{addSpatialReferenceInfo:()=>a,destroyWasm:()=>u,initialize:()=>c,isInitialized:()=>p,process:()=>l,switchMeshModificationPolygonVCSSync:()=>h});var n=i(2741);function s(e){return(0,n.s)(`esri/libs/lyr3d/${e}`)}i(49186),new Map;let r,o=null;async function l(e){await c();let t={status:1,error:"",jobDescJson:"",data:new Uint8Array,missingInputUrls:[]};if(e.inputs.length<1)return{result:t,transferList:[]};let i={ptrs:[],sizes:[]};for(let t of e.inputs){let e=o._malloc(t.byteLength);new Uint8Array(o.HEAPU8.buffer,e,t.byteLength).set(new Uint8Array(t)),i.ptrs.push(e),i.sizes.push(t.byteLength)}let n=o.process(e.jobDescJson,e.id,i,e.isMissingResourceCase);t.status=n.status,t.missingInputUrls=n.missingInputUrls.slice();let s=0===n.status&&n.data,r=2===t.status&&t.missingInputUrls.length>0;t.jobDescJson=n.jobDescJson.slice(),t.error=n.error.slice(),s?t.data=n.data.slice():r&&(t.originalInputs=e.inputs.slice());for(let e=0;e<i.ptrs.length;++e)o._free(i.ptrs[e]);let l=[];if(s)l.push(t.data.buffer);else if(r)for(let t of e.inputs)l.push(t);return{result:t,transferList:l}}async function a(e){await c(),o.add_spatial_reference_info(e.sr,e.isGCS,e.toMetersXY,e.toMetersZ)}function h(e){if(!o)return{success:!1,modifications:null};let t=o._malloc(8*e.modifications.length),i=new Float64Array(o.HEAPF64.buffer,t,e.modifications.length);i.set(e.modifications);let n=o.switch_mesh_modification_polygon_vcs(t,e.modifications.length,e.inVCS),s=null;return n&&(s=i.slice()),o._free(t),{success:n,modifications:s}}function u(){o&&=(o.uninitialize_lyr3d_worker_wasm(),null)}function c(){return p()?Promise.resolve():(r||=async function(){let{default:e}=await i.e(2343).then(()=>i(2343));return async function(e,t){return t({locateFile:s})}(0,e)}().then(e=>{o=e,o.initialize_lyr3d_worker_wasm(),r=null}),r)}function p(){return null!==o}},98697(e,t,i){i.d(t,{Cm:()=>f,H1:()=>x,Ir:()=>g,_b:()=>c,sQ:()=>p});var n=i(53966),s=i(15142),r=i(51850),o=i(35982),l=i(39829),a=i(99917),h=i(27993),u=i(89056);class c{constructor(e,t,i,n,s,r){this.layout=e,this.interleavedVertexData=t,this.indices=i,this.hasColors=n,this.hasModifications=s,this.positionData=r}}class p{constructor(e,t,i,n,s,r,o,l,a){this.componentOffsets=e,this.featureIds=t,this.anchorIds=i,this.anchors=n,this.transformedGeometry=s,this.globalTrafo=r,this.obb=o,this.geometryMinElevation=l,this.geometryMaxElevation=a}}class f extends o.B{constructor(e){super("SceneLayerWorker","process",{process:e=>[e.geometryBuffer],project:e=>[e.positions.buffer],transformNormals:e=>[e.normals.buffer]},e,{hasInitialize:!0}),this._schemasByContext=new Map,this._modificationsByContext=new Map}_onClientConnected(e){for(let[t,i]of this._schemasByContext)e.invoke("setLegacySchema",{context:t,jsonSchema:i}).catch(()=>{});for(let t of this._modificationsByContext.values())e.invoke("setModifications",t).catch(()=>{})}setModifications(e,t,i){let n={context:e,modifications:t,isGeodetic:i};return this._modificationsByContext.set(e,n),this.broadcast(n,"setModifications")}setLegacySchema(e,t){let i=JSON.stringify(t);return this._schemasByContext.set(e,i),this.broadcast({context:e,jsonSchema:i},"setLegacySchema")}destroyContext(e){return this._schemasByContext.delete(e),this._modificationsByContext.delete(e),this.broadcast(e,"destroyContext")}async destroyContextAndSelf(e){await this.destroyContext(e),this.destroy()}project(e,t){return this.invokeMethod("project",e,t)}transformNormals(e,t){return this.invokeMethod("transformNormals",e,t)}}const m=new s.A({deallocator:null}),d=(0,r.vt)();function g(e,t,i,s=!1){m.clear();let r=1/0,o=1/0,h=-1/0,c=-1/0,p=!1;for(let e of t){let t="clip"===e.type?2:+("mask"===e.type),f=e.geometry,d=f.spatialReference??i;if(d!==i&&!(0,a.canProjectWithoutEngine)(d,i)){n.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:f});continue}let g=f.rings;if(d!==i){let e=y(f.rings,d,i);if(null==e){n.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:f});continue}g=e}let x=g;if(s){let e=(0,u.jZ)(new l.A({rings:g,spatialReference:i}));null!=e&&(g=e.rings)}let v=1===x.length&&g.length>1?[...g.map(e=>[e]),x]:[g];if(v.some(e=>0===e.length||e.some(e=>e.length<3||e.some(e=>!_(e)))))n.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-invalid-polygon","Ignoring invalid modification polygon (empty ring, fewer than 3 vertices, or non-finite coordinates).",{polygon:f});else{p||=1===t;for(let e of v){m.push(t),m.push(e.length);for(let t of e){m.push(t.length);for(let e of t){let t=e[2]??0;m.push(e[0]),m.push(e[1]),m.push(t),r=Math.min(r,e[0]),o=Math.min(o,e[1]),h=Math.max(h,e[0]),c=Math.max(c,e[1])}}}}}if(null!=e)if(p){let t=1e-4;m.push(2),m.push(2),m.push(4),m.push(r-t),m.push(o-t),m.push(0),m.push(h+t),m.push(o-t),m.push(0),m.push(h+t),m.push(c+t),m.push(0),m.push(r-t),m.push(c+t),m.push(0),m.push(4),m.push(e[0]),m.push(e[1]),m.push(0),m.push(e[2]),m.push(e[1]),m.push(0),m.push(e[2]),m.push(e[3]),m.push(0),m.push(e[0]),m.push(e[3]),m.push(0)}else m.push(1),m.push(1),m.push(4),m.push(e[0]),m.push(e[1]),m.push(0),m.push(e[2]),m.push(e[1]),m.push(0),m.push(e[2]),m.push(e[3]),m.push(0),m.push(e[0]),m.push(e[3]),m.push(0);m.push(3);let f=new Float64Array(m.length);for(let e=0;e<m.length;++e)f[e]=m.at(e);return f}function y(e,t,i){let n=[];for(let s of e){let e=[];for(let n of s){if(!(0,h.F)(n,t,d,i)||!_(d))return null;e.push([d[0],d[1],d[2]])}n.push(e)}return n}function _(e){return Number.isFinite(e[0])&&Number.isFinite(e[1])&&(null==e[2]||Number.isFinite(e[2]))}function x(e,t){let i=0;for(let n of t){let t=n.geometry,s=t.rings.length,r=t.rings.some(e=>e.length<3);if(0!==s&&!r){i+=1,i+=1;for(let n=0;n<t.rings.length;++n){let s=t.rings[n];i+=1;for(let r=0;r<s.length;++r){let s=[e[i+0],e[i+1],e[i+2]];i+=3,t.setPoint(n,r,s)}}}}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1088,2024],{30921(e,t,i){i.d(t,{D:()=>D,m:()=>h,s:()=>d,w:()=>y});var n=i(32198),s=i(55537),r=i(88885),a=i(39117),m=i(83661),o=i(79187),u=i(95213);function h(){return{outPoint:new m.P,index:-1,t:NaN}}function l(e,t,i){return{outPoint:e.clone(),index:t,t:i}}function c(e,t,i,n){e.outPoint.assign(t),e.index=i,e.t=n}function _(e,t){e.outPoint.assign(t.outPoint),e.index=t.index,e.t=t.t}function p(e,t,i,n){e.index=i,e.t=n,t.queryCoord2D(e.t,e.outPoint)}function g(e,t){let i=h();_(i,e),_(e,t),_(t,i)}function y(e,t,i,n,r,m){if(e.getGeometryType()===s.G.enumPolygon){for(;n.nextPath();)if(n.hasNextSegment()){let t=n.nextSegment();if(0!==(0,a.K)(e,t.getEndXY(),0))return c(r,t.getEndXY(),-1,NaN),c(m,t.getEndXY(),-1,NaN),!0}n.resetToFirstPath()}if(t.getGeometryType()===s.G.enumPolygon){for(;i.nextPath();)if(i.hasNextSegment()){let e=i.nextSegment();if(0!==(0,a.K)(t,e.getEndXY(),0))return c(r,e.getEndXY(),-1,NaN),c(m,e.getEndXY(),-1,NaN),!0}i.resetToFirstPath()}return!1}function d(e){let t=e.getPathCount(),i=(0,m.d)(e.getSegmentCount(),0),n=0;for(let s=0;s<t;++s){let t=n+e.getSegmentCountPath(s);for(let r=n,a=e.getPathStart(s);r<t;++r,++a)i[r]=a;n=t}return(0,r.s)(e.getPointCount(),i),i}function x(e,t){return!!Number.isNaN(t)||e<=t}function P(e){let t=new r.P;return t.addEnvelope(e,!1),t}class D{m_progressTracker;m_env2DgeometryA=null;m_env2DgeometryB=null;m_maxSqrDistance;m_maxDistance;m_progressCounter=0;m_bIsNearCalc;constructor(e,t){if(this.m_progressTracker=t,this.m_maxSqrDistance=e*e,this.m_maxDistance=e,this.m_bIsNearCalc=!1,this.m_maxDistance=Number.isNaN(this.m_maxDistance)?1/0:e,this.m_maxSqrDistance=this.m_maxDistance*this.m_maxDistance,Number.isFinite(this.m_maxSqrDistance)){let e=Math.sqrt(this.m_maxSqrDistance);for(;e<this.m_maxDistance;)this.m_maxSqrDistance*=1+2**-52,e=Math.sqrt(this.m_maxSqrDistance)}}calculate(e,t,i,n){if((e.getGeometryType()!==u.P.type||t.getGeometryType()!==u.P.type)&&(this.m_env2DgeometryA=new o.Envelope2D,this.m_env2DgeometryB=new o.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!x(this.m_env2DgeometryA.distanceFromEnvelope(this.m_env2DgeometryB),this.m_maxDistance)))return 1/0;let s=l(new m.P,(0,m.j)(),NaN),r=l(new m.P,(0,m.j)(),NaN),a=this._ExecuteBruteForce(e,t,s,r);return x(a,this.m_maxDistance)?(null!==i&&_(i,s),null!==n&&_(n,r),a):1/0}isNear(e,t){if(this.m_bIsNearCalc=!0,e.isEmpty()||t.isEmpty())return!1;if(e===t)return!0;let i=!0;if((e.getGeometryType()===u.P.type||e.getGeometryType()===u.E.type)&&(t.getGeometryType()===u.P.type||t.getGeometryType()===u.E.type)&&(i=!1),i){if(this.m_env2DgeometryA=new o.Envelope2D,this.m_env2DgeometryB=new o.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!(this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)>this.m_maxSqrDistance))return!0;if(this.m_env2DgeometryA.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>this.m_maxSqrDistance)return!1}let n=l(new m.P,(0,m.j)(),NaN),s=l(new m.P,(0,m.j)(),NaN);return this._ExecuteBruteForce(e,t,n,s)<=this.m_maxDistance}progress_(e=!1){}_ExecuteBruteForce(e,t,i,n){switch(e.getGeometryType()){case s.G.enumPoint:return this.distancePointGeometry(e,t,i,n);case s.G.enumMultiPoint:return this.distanceMultipointGeometry(e,t,i,n);case s.G.enumEnvelope:return this.distanceEnvelopeGeometry(e,t,i,n);case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathGeometry(e,t,i,n);default:return NaN}}distancePointGeometry(e,t,i,n){switch(t.getGeometryType()){case s.G.enumPoint:return this.distancePointPoint(e,t,i,n);case s.G.enumMultiPoint:return this.distancePointMultipoint(e,t,i,n);case s.G.enumPolyline:case s.G.enumPolygon:return this.distancePointMultipath(e,t,i,n);case s.G.enumEnvelope:return this.distancePointEnvelope(e,t,i,n);default:return NaN}}distancePointPoint(e,t,i,n){let s=e.getXY(),r=t.getXY();return c(i,s,0,0),c(n,r,0,0),Math.sqrt(m.P.sqrDistance(s,r))}distancePointMultipoint(e,t,i,n){let s=e.getXY(),r=this.m_maxSqrDistance,a=r,o=!1,u=t.getPointCount(),h=new m.P;for(let e=0;e<u;++e)if(t.queryXY(e,h),a=m.P.sqrDistance(s,h),this.m_bIsNearCalc){if(a<=r)return 0}else if(!(a>r)&&(!o&&a===r||a<r)&&(r=a,c(i,s,0,0),c(n,h,e,0),o=!0,0===r))return 0;return o?Math.sqrt(r):1/0}distancePointMultipath(e,t,i,n){let r=!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB),u=e.getXY();if(!r&&t.getGeometryType()===s.G.enumPolygon&&0!==(0,a.K)(t,u,0))return c(i,u,0,0),c(n,u,-1,NaN),0;t.getImpl().getAccelerators();let h=this.m_maxSqrDistance,l=h,_=-1,p=new o.Envelope2D,g=t.querySegmentIterator(),y=!1;for(;g.nextPath();)for(;g.hasNextSegment();){let e=g.nextSegment();e.queryEnvelope(p);let t=p.sqrDistance(u);if(t>h||!this.m_bIsNearCalc&&y&&t===h)continue;_=e.getClosestCoordinate(u,!1);let s=e.getCoord2D(_);if(l=m.P.sqrDistance(u,s),this.m_bIsNearCalc){if(l<=h)return 0}else if(!(l>h)&&(!y||l<h)&&(h=l,c(i,u,0,0),c(n,s,g.getStartPointIndex(),_),y=!0,0===h))return 0}return y?Math.sqrt(h):1/0}distancePointEnvelope(e,t,i,n){let s=e.getXY();c(i,s,0,0),c(n,s,-1,NaN);let r=t.asEnvelope2D();return r.contains(s)?0:Math.sqrt(r.sqrDistance(s,n.outPoint))}distanceMultipointGeometry(e,t,i,n){switch(t.getGeometryType()){case s.G.enumPoint:{this.m_env2DgeometryB=(0,m.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);let s=this.distancePointMultipoint(t,e,n,i);return this.m_env2DgeometryB=(0,m.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumMultiPoint:return this.distanceMultipointMultipoint(e,t,i,n,1,1);case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipointMultipath(e,t,i,n);case s.G.enumEnvelope:return this.distanceMultipointMultipath(e,P(t),i,n);default:return NaN}}distanceMultipointMultipoint(e,t,i,s,r,a){let o={stack:[],error:void 0,hasError:!1};try{if(this.m_bIsNearCalc&&1===r&&1===a){let n=Math.trunc((0,m.s)(Math.sqrt(e.getPointCount())+1,1,(0,m.i)())),r=Math.trunc((0,m.s)(Math.sqrt(t.getPointCount())+1,1,(0,m.i)()));if((n>=4||r>=4)&&this.distanceMultipointMultipoint(e,t,i,s,n,r)<=this.m_maxSqrDistance)return 0}let u=this.m_maxSqrDistance,h=[e],l=[t],_=this.swapGeometriesIfBGtA(h,l);_&&(this.m_env2DgeometryB=(0,m.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),a=(0,m.c)(r,r=a),g(i,s)),(0,n.mS)(o,(0,m.h)(()=>{g(i,s),this.m_env2DgeometryB=(0,m.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)},!_),!1);let p=h[0].getImpl(),y=l[0].getImpl(),d=p.getPointCount(),x=y.getPointCount(),P=x>1,D=!1,v=new m.P,G=new m.P;for(let e=0;e<d;e+=r){if(p.queryXY(e,v),P){let e=this.m_env2DgeometryB.sqrDistance(v);if(this.m_bIsNearCalc){if(e>u)continue;if(this.m_env2DgeometryB.sqrMaxMinDistance(v)<=u)return 0}else if(e>=u)continue}for(let t=0;t<x;t+=a){y.queryXY(t,G);let n=m.P.sqrDistance(v,G);if(this.m_bIsNearCalc){if(n<=u)return 0}else if(!(n>u||D&&n===u)&&(!D||n<u)&&(c(i,v,e,0),c(s,G,t,0),D=!0,u=n,0===u))return D?Math.sqrt(u):1/0}}return D?Math.sqrt(u):1/0}catch(e){o.error=e,o.hasError=!0}finally{(0,n.hk)(o)}}distanceMultipointMultipath(e,t,i,n){let r=!!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)&&t.getGeometryType()===s.G.enumPolygon,u=t.querySegmentIterator();u.stripAttributes();let h=new o.Envelope2D,l=new m.P,_=this.m_maxSqrDistance,p=e.getImpl(),g=p.getPointCount(),y=g>1,d=!1;for(;u.nextPath();)for(;u.hasNextSegment();){let e=u.nextSegment();if(e.queryLooseEnvelope(h),y){let e=h.sqrDistanceEnvelope(this.m_env2DgeometryA,null,null);if(this.m_bIsNearCalc){if(e>_)continue}else if(e>_||d&&e===_)continue}for(let s=0;s<g;s++){if(p.queryXY(s,l),r&&0!==(0,a.K)(t,l,0))return c(i,l,-1,NaN),c(n,l,s,0),0;{let e=h.sqrDistance(l);if(this.m_bIsNearCalc){if(e>_)continue}else if(e>_)continue}let m=e.getClosestCoordinate(l,!1),o=e.getCoord2D(m);l.subThis(o);let g=l.sqrLength();if(this.m_bIsNearCalc){if(g<=_)return 0}else if(!(g>_)&&(!d||g<_)&&(_=g,c(i,p.getXY(s),s,0),c(n,o,u.getStartPointIndex(),m),d=!0,0===_))return 0}r=!1}return d?Math.sqrt(_):1/0}distanceEnvelopeGeometry(e,t,i,n){switch(t.getGeometryType()){case s.G.enumPoint:return this.distancePointEnvelope(t,e,n,i);case s.G.enumMultiPoint:{this.m_env2DgeometryB=(0,m.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);let s=this.distanceMultipointMultipath(t,P(e),n,i);return this.m_env2DgeometryB=(0,m.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathMultipath(P(e),t,i,n);case s.G.enumEnvelope:return this.distanceEnvelopeEnvelope(e,t,i,n);default:return NaN}}distanceEnvelopeEnvelope(e,t,i,n){i.t=NaN,i.index=-1,n.t=NaN,n.index=-1;let s=e.asEnvelope2D(),r=t.asEnvelope2D();return Math.sqrt(s.sqrDistanceEnvelope(r,i.outPoint,n.outPoint))}distanceMultipathGeometry(e,t,i,n){switch(t.getGeometryType()){case s.G.enumPoint:{this.m_env2DgeometryB=(0,m.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);let s=this.distancePointMultipath(t,e,n,i);return this.m_env2DgeometryB=(0,m.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumMultiPoint:{this.m_env2DgeometryB=(0,m.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);let s=this.distanceMultipointMultipath(t,e,n,i);return this.m_env2DgeometryB=(0,m.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathMultipath(e,t,i,n);case s.G.enumEnvelope:return this.distanceMultipathMultipath(e,P(t),i,n);default:return NaN}}distanceMultipathMultipath(e,t,i,s){let a={stack:[],error:void 0,hasError:!1};try{let u=[e],l=[t],c=this.swapGeometriesIfAGtB(u,l);c&&(this.m_env2DgeometryB=(0,m.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),g(i,s)),(0,n.mS)(a,(0,m.h)(()=>{g(i,s),this.m_env2DgeometryB=(0,m.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)},!c),!1);let x=u[0],P=l[0],D=x.querySegmentIterator();D.stripAttributes();let v=P.querySegmentIterator();if(v.stripAttributes(),this.m_bIsNearCalc&&this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)<=this.m_maxSqrDistance)return 0;if(this.m_bIsNearCalc){let e=Math.trunc((0,m.s)(Math.sqrt(x.getPointCount())+1,1,(0,m.i)())),t=Math.trunc((0,m.s)(Math.sqrt(x.getPointCount())+1,1,(0,m.i)()));if(this.distanceMultipointMultipoint(x,P,i,s,e,t)<=this.m_maxSqrDistance)return 0}if(this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)){let e=h(),t=h();if(y(x,P,D,v,e,t))return _(i,e),_(s,t),0}let G=d(x),f=[],S=new r.S,M=new o.Envelope2D,E=new o.Envelope2D,w=new o.Envelope2D,T=this.m_maxSqrDistance,b=!0,C=!1;for(let e=0,t=G.length;e<t;++e){x.querySegment(G[e],S,!0);let t=S.get();if(t.queryEnvelope(M),!(M.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>T)){if(this.m_bIsNearCalc&&M.sqrMaxDistanceEnvelope(this.m_env2DgeometryB)<=T)return 0;for(;v.nextPath();){if(this.progress_(),b)P.queryPathEnvelope(v.getPathIndex(),w),f[v.getPathIndex()]=w.clone();else if(M.sqrDistanceEnvelope(f[v.getPathIndex()],null,null)>T)continue;for(;v.hasNextSegment();){let n=v.nextSegment();if(n.queryEnvelope(E),M.sqrDistanceEnvelope(E,null,null)<=T){let r=!M.isIntersecting(E),a=[0],m=[0],o=t.distance(n,r,a,m);if(o*=o,this.m_bIsNearCalc&&o<=this.m_maxSqrDistance)return 0;if(o<T||o===T&&G[e]<i.index){if(C=!0,p(i,t,G[e],a[0]),p(s,n,v.getStartPointIndex(),m[0]),0===o)return 0;T=o}}}}v.resetToFirstPath(),b=!1}}return C?Math.sqrt(T):1/0}catch(e){a.error=e,a.hasError=!0}finally{(0,n.hk)(a)}}swapGeometriesIfAGtB(e,t){return(0,s.v)(e[0])>(0,s.v)(t[0])&&(t[0]=(0,m.c)(e[0],e[0]=t[0]),!0)}swapGeometriesIfBGtA(e,t){return this.swapGeometriesIfAGtB(t,e)}}},22024(e,t,i){i.d(t,{G:()=>M,a:()=>f,m:()=>D});var n=i(32198),s=i(55537),r=i(88885),a=i(39117),m=i(95213),o=i(79187),u=i(83661),h=i(11878),l=i(30921),c=i(76061),_=i(31088);class p{getOperatorType(){return 10317}supportsCurves(){return!0}accelerateGeometry(e,t,i){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,i,n,s,r){return new _.OperatorGeodeticDensifyCursor(e,t,4,i,n,s,r)}execute(e,t,i,n,r,a){let m=new c.S([e]),o=this.executeMany(m,t,i,n,r,a).next();return o||(0,s.d)("null output"),o}}var g=i(31139);class y{m_a;m_e2;m_b;m_unitToDegree;m_unitToRad;m_u180;m_u360;m_peR1;m_peR2;m_peR3;[Symbol.dispose](){this.m_peR1.destroy(),this.m_peR2.destroy(),this.m_peR3.destroy(),this.m_peR1=null,this.m_peR2=null,this.m_peR3=null}constructor(e,t,i){this.m_peR1=new a.an,this.m_peR2=new a.an,this.m_peR3=new a.an,void 0===e?this.reset(1,0,1):this.reset(e,t,i)}reset(e,t,i){this.m_a=e,this.m_e2=t,this.m_b=this.m_a*Math.sqrt(1-this.m_e2),this.m_unitToDegree=i,this.m_unitToRad=.017453292519943295*i,this.m_u180=180/this.m_unitToDegree,this.m_u360=360/this.m_unitToDegree}calculateBbox(e,t,i,n){let s=this.m_peR1,r=this.m_peR2,m=this.m_peR3;a.ao.geodeticDistance(this.m_a,this.m_e2,e*this.m_unitToRad,t*this.m_unitToRad,i*this.m_unitToRad,n*this.m_unitToRad,m,s,r,0);let h=Math.cos(s.val),l=Math.cos(r.val+3.141592653589793),c=t*this.m_unitToRad,_=a.ae.phiToEta(this.m_e2,c),p=Math.sin(s.val)*Math.cos(_),g=t;if(h*l<0){let e=Math.acos(Math.abs(p))*(h<0?-1:1);g=a.ae.etaToPhi(this.m_e2,e)/this.m_unitToRad}let y=(0,u.p)((i-e)*this.m_unitToRad,2*Math.PI);Math.abs(y)>Math.PI&&(y=y>0?y-2*Math.PI:y+2*Math.PI),y/=this.m_unitToRad,i=e+y;let d=new o.Envelope2D;return d.xmin=Math.min(e,i),d.xmax=Math.max(e,i),d.ymin=Math.min(t,n),d.ymin=Math.min(d.ymin,g),d.ymax=Math.max(t,n),d.ymax=Math.max(d.ymax,g),d}minDistanceGeodesic(e,t){let i=d(e),n=d(t);if(i&&n)return this.lowerDistanceGeodetic_(e.xmin,e.ymin,t.xmin,t.ymin);let s=this.normalizeGeodesic_(t,e);return function(e,t){return t.xmax<e.xmin||t.xmin>e.xmax||t.ymax<e.ymin||t.ymin>e.ymax}(e,s)?e.ymin>=s.ymax?this.minDistanceGeodesicUpDown_(e,s):s.ymin>=e.ymax?this.minDistanceGeodesicUpDown_(s,e):e.xmin>s.xmax?this.minDistanceGeodesicLeftRight_(s,e):this.minDistanceGeodesicLeftRight_(e,s):0}normalizeGeodesic_(e,t){let i=e.clone(),n=e.clone(),s=x(i,t);if(0===s)return i;for(;n.xmax>t.xmin;){n.xmin-=this.m_u360,n.xmax-=this.m_u360;let e=x(n,t);if(e<s&&(i.assign(n),s=e,0===s))return i}for(n.assign(e);n.xmin<t.xmax;){n.xmin+=this.m_u360,n.xmax+=this.m_u360;let e=x(n,t);if(e<s&&(i.assign(n),s=e,0===s))return i}return i}lowerDistanceGeodetic_(e,t,i,n){let s=this.m_peR1;{let r=this.m_b*this.m_b/this.m_a,m=a.ae.phiToPhig(this.m_e2,this.m_unitToRad*t),o=a.ae.phiToPhig(this.m_e2,this.m_unitToRad*n);a.ao.geodeticDistance(r,0,this.m_unitToRad*e,m,this.m_unitToRad*i,o,s,null,null,0)}return s.val}minDistanceGeodesicUpDown_(e,t){if(t.xmin<=e.xmin?t.xmax>=e.xmin:e.xmax>=t.xmin)return this.lowerDistanceGeodetic_(0,e.ymin,0,t.ymax);if(t.xmin>e.xmax){let i=this.lowerDistanceGeodeticSegMeridional_(e.xmax,e.ymin,e.ymax,t.xmin,t.ymin,t.ymax);if(t.xmax-e.xmin<this.m_u180)return i;let n=this.lowerDistanceGeodeticSegMeridional_(e.xmin,e.ymin,e.ymax,t.xmax,t.ymin,t.ymax);return Math.min(i,n)}{let i=this.lowerDistanceGeodeticSegMeridional_(e.xmin,e.ymin,e.ymax,t.xmax,t.ymin,t.ymax);if(e.xmax-t.xmin<this.m_u180)return i;let n=this.lowerDistanceGeodeticSegMeridional_(e.xmax,e.ymin,e.ymax,t.xmin,t.ymin,t.ymax);return Math.min(i,n)}}minDistanceGeodesicLeftRight_(e,t){let i=Math.abs(e.xmax-t.xmin);for(;i>this.m_u180;)i-=this.m_u360;let n=Math.abs(e.xmin-t.xmax);for(;n>this.m_u180;)n-=this.m_u360;return Math.abs(i)<=Math.abs(n)?this.minDistanceGeodesicLeftRightNormalized_(e,t):this.minDistanceGeodesicLeftRightNormalized_(t,e)}minDistanceGeodesicLeftRightNormalized_(e,t){let i,n;return i=this.lowerDistanceGeodetic_(e.xmax,e.ymin,t.xmin,t.ymin),e.ymin>=t.ymin&&e.ymin<=t.ymax&&(n=this.lowerDistanceGeodeticPtMeridional_(e.xmax,e.ymin,t.xmin,t.ymin,t.ymax),i=Math.min(i,n)),t.ymin>=e.ymin&&t.ymin<=e.ymax&&(n=this.lowerDistanceGeodeticPtMeridional_(t.xmin,t.ymin,e.xmax,e.ymin,e.ymax),i=Math.min(i,n)),n=this.lowerDistanceGeodetic_(e.xmax,e.ymax,t.xmin,t.ymax),i=Math.min(i,n),e.ymax>=t.ymin&&e.ymax<=t.ymax&&(n=this.lowerDistanceGeodeticPtMeridional_(e.xmax,e.ymax,t.xmin,t.ymin,t.ymax),i=Math.min(i,n)),t.ymax>=e.ymin&&t.ymax<=e.ymax&&(n=this.lowerDistanceGeodeticPtMeridional_(t.xmin,t.ymax,e.xmax,e.ymin,e.ymax),i=Math.min(i,n)),i}lowerDistanceGeodeticSegMeridional_(e,t,i,n,s,r){let a=this.lowerDistanceGeodeticPtMeridional_(e,t,n,s,r),m=this.lowerDistanceGeodeticPtMeridional_(e,i,n,s,r),o=this.lowerDistanceGeodeticPtMeridional_(n,s,e,t,i),u=this.lowerDistanceGeodeticPtMeridional_(n,r,e,t,i);return a=Math.min(a,m),o=Math.min(o,u),Math.min(a,o)}lowerDistanceGeodeticPtMeridional_(e,t,i,n,s){let r=this.m_b*this.m_b/this.m_a,o=a.ae.phiToPhig(this.m_e2,this.m_unitToRad*t),h=a.ae.phiToPhig(this.m_e2,this.m_unitToRad*n),l=a.ae.phiToPhig(this.m_e2,this.m_unitToRad*s),c=this.m_peR1,_=this.m_peR2;a.ao.geodeticDistance(r,0,this.m_unitToRad*i,h,this.m_unitToRad*e,o,c,null,null,0),a.ao.geodeticDistance(r,0,this.m_unitToRad*i,l,this.m_unitToRad*e,o,_,null,null,0);let p=(0,a.av)(1,0,new u.P(this.m_unitToRad*e,o)),g=(0,a.av)(1,0,new u.P(this.m_unitToRad*i,h)),y=(0,a.av)(1,0,new u.P(this.m_unitToRad*i,l)),d=new m.k;d.setCrossProductVector(g,y);let x=g.dotProduct(y);if(d.length()<1.568e-10)return x>=0?Math.min(c.val,_.val):0;d=d.getUnitVector();let P=new m.k;if(P.setCrossProductVector(d,p),P.length()<1.568e-10)return Math.min(c.val,_.val)-1e-5*r;P=P.getUnitVector();let D=p.sub(d.mul(p.dotProduct(d)));{let t=new m.k;t.setCrossProductVector(g,D);let i=new m.k;i.setCrossProductVector(D,y);let n=d.dotProduct(t)>0&&d.dotProduct(i)>0;if(n||=(D.negateThis(),t.setCrossProductVector(g,D),i.setCrossProductVector(D,y),d.dotProduct(t)>0&&d.dotProduct(i)>0),n){D=D.getUnitVector();let t=(0,a.aC)(1,0,D),i=this.m_peR3;a.ao.geodeticDistance(r,0,this.m_unitToRad*e,o,t.x,t.y,i,null,null,0);let n=Math.min(c.val,_.val);return Math.min(n,i.val)}}return Math.min(c.val,_.val)}}function d(e){return e.xmin===e.xmax&&e.ymin===e.ymax}function x(e,t){let i,n=0;return i=e.xmin-t.xmax,i>n&&(n=i),i=t.xmin-e.xmax,i>n&&(n=i),n}class P{}function D(e){return{outPoint:void 0===e?new u.P:e.clone()}}function v(e,t){e.outPoint.assign(t.outPoint)}function G(){return new o.Envelope2D}class f{m_ptDistFrom=new u.P;m_segStartPt=new u.P;m_segEndPt=new u.P;m_sr;m_distCurveType;m_segCurveType;m_a;m_eSquared;m_inputGCS;m_rpu;m_geodeticLength=new a.an;m_az12=new a.an;m_minGeodeticDist=new a.an;m_bIsPannablePcs;m_segStartPt3d=new m.k;m_segEndPt3d=new m.k;constructor(e,t,i,n,s=0,r=4){this.m_sr=n,this.m_distCurveType=s,this.m_segCurveType=r,this.m_inputGCS=this.m_sr.getGCS(),this.m_rpu=this.m_inputGCS.getUnit().getUnitToBaseFactor(),this.m_bIsPannablePcs=2===this.m_sr.getCoordinateSystemType()&&this.m_sr.isPannable();let m=(0,a.r)();this.m_inputGCS.querySpheroidData(m),this.m_a=m.majorSemiAxis,this.m_eSquared=m.e2,this.setPointDistFrom(e),this.setSegmentEndPoints(t,i)}setSegmentEndPoints(e,t){this.m_segStartPt.assign(e),this.m_segEndPt.assign(t),this.m_bIsPannablePcs||(this.m_segStartPt.mulThis(this.m_rpu),this.m_segEndPt.mulThis(this.m_rpu)),2===this.m_segCurveType&&(this.m_segStartPt3d.assign((0,a.av)(this.m_a,this.m_eSquared,this.m_segStartPt)),this.m_segEndPt3d.assign((0,a.av)(this.m_a,this.m_eSquared,this.m_segEndPt))),this.calculateAndUpdateSegmentLength()}setPointDistFrom(e){this.m_ptDistFrom.assign(e),this.m_ptDistFrom.scale(this.m_rpu)}setSegmentCurveType(e){this.m_segCurveType=e}setDistanceCurveType(e){this.m_distCurveType=e}makeFunctor(){return e=>{let t;switch(this.m_segCurveType){case 0:case 1:case 3:{let i={stack:[],error:void 0,hasError:!1};try{let s=(0,n.mS)(i,new a.an,!1),r=(0,n.mS)(i,new a.an,!1);a.ao.geodeticCoordinate(this.m_a,this.m_eSquared,this.m_segStartPt.x,this.m_segStartPt.y,this.m_geodeticLength.val*e,this.m_az12.val,s,r,this.m_segCurveType),t=new u.P(s.val,r.val);break}catch(e){i.error=e,i.hasError=!0}finally{(0,n.hk)(i)}}case 2:{let i=m.k.lerp(this.m_segStartPt3d,this.m_segEndPt3d,e);t=(0,a.aC)(this.m_a,this.m_eSquared,i);break}case 4:t=u.P.lerp(this.m_segStartPt,this.m_segEndPt,e),this.m_bIsPannablePcs&&((0,a.ax)(this.m_sr,0,[t],1),t.mulThis(this.m_rpu));break;default:(0,s.d)("Invalid curve type")}return a.ao.geodeticDistance(this.m_a,this.m_eSquared,this.m_ptDistFrom.x,this.m_ptDistFrom.y,t.x,t.y,this.m_minGeodeticDist,null,null,this.m_distCurveType),this.m_minGeodeticDist.val}}calculateAndUpdateSegmentLength(){switch(this.m_segCurveType){case 0:case 2:case 1:case 3:a.ao.geodeticDistance(this.m_a,this.m_eSquared,this.m_segStartPt.x,this.m_segStartPt.y,this.m_segEndPt.x,this.m_segEndPt.y,this.m_geodeticLength,this.m_az12,null,this.m_segCurveType);break;case 4:this.m_geodeticLength.val=u.P.distance(this.m_segStartPt,this.m_segEndPt);break;default:(0,s.d)("Invalid curve type")}}[Symbol.dispose](){this.m_geodeticLength[Symbol.dispose](),this.m_az12[Symbol.dispose](),this.m_minGeodeticDist[Symbol.dispose]()}}function S(){return new P}class M{m_inputSR;m_distCurveType;m_progressTracker;m_maxDistance;m_maxDeviation;m_inputGCS;m_peGeogcs;m_a;m_eSquared;m_rpu;m_envHelper;m_boxGeomA=G();m_boxGeomB=G();m_envGeomA=new o.Envelope2D;m_envGeomB=new o.Envelope2D;m_progressCounter=0;m_bIsPannablePcs;m_transformPCS2GCS=null;m_segmentBoxesA=new Map;m_segmentBoxesB=new Map;m_boundaryPtsA=[];m_boundaryPtsB=[];m_scaleToRadians=new h.T;m_scaleToDegrees=new h.T;m_tolerance;[Symbol.dispose](){this.m_envHelper[Symbol.dispose]()}constructor(e,t,i,n,s){this.m_inputSR=e,this.m_distCurveType=t,this.m_progressTracker=i,this.m_maxDistance=n,this.m_maxDeviation=s,this.m_inputGCS=e.getGCS(),this.m_peGeogcs=this.m_inputGCS.getPECoordSys(),this.m_tolerance=0;let r=(0,a.r)();this.m_inputGCS.querySpheroidData(r),this.m_a=r.majorSemiAxis,this.m_eSquared=r.e2,this.m_rpu=this.m_inputGCS.getUnit().getUnitToBaseFactor(),this.m_envHelper=new y(this.m_a,this.m_eSquared,1),4===this.m_distCurveType&&(this.m_distCurveType=0),this.m_boxGeomA.setEmpty(),this.m_boxGeomB.setEmpty(),this.m_envGeomA.setEmpty(),this.m_envGeomB.setEmpty(),this.m_bIsPannablePcs=2===this.m_inputSR.getCoordinateSystemType()&&this.m_inputSR.isPannable()}progress(e=!1){}calculate(e,t,i,n){let s=D(),r=D();if(e.queryEnvelope(this.m_envGeomA),t.queryEnvelope(this.m_envGeomB),this.checkGeometriesIntersect(e,t,s,r))return i&&v(i,s),n&&v(n,r),0;let a=this.prepareGeometry(e);if(a.isEmpty())return NaN;let m=this.prepareGeometry(t);if(m.isEmpty())return NaN;this.m_tolerance=this.computeTolerance(a,m);let o=this._ExecuteBruteForce(a,m,s,r);return o>=this.m_maxDistance?NaN:(i&&(this.prepareOutput(s),v(i,s)),n&&(this.prepareOutput(r),v(n,r)),o)}createDistanceFunctor(e,t,i){let n=new f(e,t,i,this.m_inputSR,this.m_distCurveType);return this.m_bIsPannablePcs||1===this.m_inputSR.getCoordinateSystemType()||n.setSegmentCurveType(2),n}_NormalizeAndProject(e){if(this.m_inputSR.isPannable()&&(e=(new a.O).foldInto360Range(e,this.m_inputSR)),2===this.m_inputSR.getCoordinateSystemType()){let t=(0,a.D)(this.m_inputSR,this.m_inputGCS,null);e=(new a.O).execute(e,t,this.m_progressTracker)}return e}_ExecuteBruteForce(e,t,i,n){switch(e.getGeometryType()){case s.G.enumPoint:return this.calculateDistanceGeodeticPointGeometry(e,t,i,n);case s.G.enumMultiPoint:return this.calculateDistanceGeodeticMultipointGeometry(e,t,i,n);case s.G.enumPolyline:case s.G.enumPolygon:case s.G.enumEnvelope:return this.calculateDistanceGeodeticMultipathGeometry(e,t,i,n);default:(0,s.a)("")}}calculateDistanceGeodeticPointGeometry(e,t,i,n){switch(t.getGeometryType()){case s.G.enumPoint:return this.calculateDistanceGeodeticPointPoint(e,t,i,n);case s.G.enumMultiPoint:return this.calculateDistanceGeodeticPointMultipoint(e,t,i,n);case s.G.enumPolyline:case s.G.enumPolygon:return this.calculateDistanceGeodeticPointMultipath(e,t,i,n);default:(0,s.a)("")}}calculateDistanceGeodeticPointPoint(e,t,i,s){let r={stack:[],error:void 0,hasError:!1};try{let m=e.getXY();m.scale(this.m_rpu);let o=t.getXY();o.scale(this.m_rpu),i.outPoint.assign(m),s.outPoint.assign(o);let u=(0,n.mS)(r,new a.an,!1);return a.ao.geodeticDistance(this.m_a,this.m_eSquared,m.x,m.y,o.x,o.y,u,null,null,this.m_distCurveType),u.val}catch(e){r.error=e,r.hasError=!0}finally{(0,n.hk)(r)}}calculateDistanceGeodeticPointMultipoint(e,t,i,s){let r={stack:[],error:void 0,hasError:!1};try{this.computeEnvelopesAndBoxes(e,t);let o=this.estimateMinimumDistance(i,s),h=o<this.m_maxDistance?o:this.m_maxDistance,l=e.getXY();l.scale(this.m_rpu),i.outPoint.assign(l);let c=(0,a.av)(this.m_a,this.m_eSquared,l),_=new u.P,p=t.getImpl(),g=(0,n.mS)(r,new a.an,!1),y=p.getPointCount();for(let e=0;e<y;++e){p.queryXY(e,_),_.scale(this.m_rpu);let t=(0,a.av)(this.m_a,this.m_eSquared,_);if(!(m.k.distance(c,t)>h)&&!(this.m_envHelper.minDistanceGeodesic(this.m_boxGeomA,this.m_boxGeomB)>h)&&(a.ao.geodeticDistance(this.m_a,this.m_eSquared,l.x,l.y,_.x,_.y,g,null,null,this.m_distCurveType),g.val<h&&(h=g.val,s.outPoint=_,0===h)))return h}return h===this.m_maxDistance?1/0:h}catch(e){r.error=e,r.hasError=!0}finally{(0,n.hk)(r)}}calculateDistanceGeodeticPointMultipath(e,t,i,r){let m={stack:[],error:void 0,hasError:!1};try{let o=new u.P,h=new u.P;o.assign(e.getXY()),h.assign(e.getXY()),i.outPoint.assign(h.mul(this.m_rpu)),this.m_bIsPannablePcs&&(0,a.aw)(this.m_inputSR,[o],1,!1),this.computeEnvelopesAndBoxes(e,t);let l=this.estimateMinimumDistance(i,r),c=l<this.m_maxDistance?l:this.m_maxDistance,_=t.getImpl(),p=new u.P(0,0),g=new u.P(0,0),y=[1],d=this.canUseSpatialTree(e,t),x=S();d&&this.buildSpatialTree(x,t);let P=G();P.setCoords({xmin:h.x,ymin:h.y,xmax:h.x,ymax:h.y});let D=(0,n.mS)(m,this.createDistanceFunctor(h,p,g),!1),v=_.querySegmentIterator();if(v.stripAttributes(),d)(0,s.g)(0);else for(;v.nextPath();)for(;v.hasNextSegment();){let e=v.nextSegment(),t=this.findOrComputeBoxSegment(v.getStartPointIndex(),e,this.m_segmentBoxesB);if(this.m_envHelper.minDistanceGeodesic(P,t)>c)continue;let i=this.calculateDistanceGeodeticPointSegment(o,h,e,y,D);if(i.second<c&&(this.updateOutputSegment(r,e,i.first),c=i.second,0===c))return 0}return c===this.m_maxDistance?1/0:c}catch(e){m.error=e,m.hasError=!0}finally{(0,n.hk)(m)}}calculateDistanceGeodeticMultipointGeometry(e,t,i,n){switch(t.getGeometryType()){case s.G.enumPoint:return this.calculateDistanceGeodeticPointMultipoint(t,e,n,i);case s.G.enumMultiPoint:return this.calculateDistanceGeodeticMultipointMultipoint(e,t,i,n);case s.G.enumPolyline:case s.G.enumPolygon:case s.G.enumEnvelope:return this.calculateDistanceGeodeticMultipointMultipath(e,t,i,n);default:(0,s.a)("")}}calculateDistanceGeodeticMultipointMultipoint(e,t,i,s){let r={stack:[],error:void 0,hasError:!1};try{let o=(0,n.mS)(r,new a.an,!1);this.computeEnvelopesAndBoxes(e,t);let h=this.estimateMinimumDistance(i,s),l=h<this.m_maxDistance?h:this.m_maxDistance,c=new u.P,_=new u.P,p=e.getImpl(),g=t.getImpl(),y=G(),d=p.getPointCount(),x=g.getPointCount();for(let e=0;e<d;++e){if(c.assign(p.getXY(e)),y.setCoords({xmin:c.x,ymin:c.y,xmax:c.x,ymax:c.y}),this.m_envHelper.minDistanceGeodesic(y,this.m_boxGeomB)>l)continue;c.scale(this.m_rpu);let t=(0,a.av)(this.m_a,this.m_eSquared,c);for(let e=0;e<x;++e){_.assign(g.getXY(e)),_.scale(this.m_rpu);let n=(0,a.av)(this.m_a,this.m_eSquared,_);if(!(m.k.distance(t,n)>=l)&&(a.ao.geodeticDistance(this.m_a,this.m_eSquared,c.x,c.y,_.x,_.y,o,null,null,this.m_distCurveType),o.val<l&&(i.outPoint.assign(c),s.outPoint.assign(_),l=o.val,0===l)))return l}}return l===this.m_maxDistance?1/0:l}catch(e){r.error=e,r.hasError=!0}finally{(0,n.hk)(r)}}calculateDistanceGeodeticMultipointMultipath(e,t,i,r){let m={stack:[],error:void 0,hasError:!1};try{let o=t.getImpl().querySegmentIterator();o.stripAttributes(),this.computeEnvelopesAndBoxes(e,t);let h=this.estimateMinimumDistance(i,r),l=h<this.m_maxDistance?h:this.m_maxDistance,c=new u.P,_=new u.P(0,0),p=new u.P(0,0),g=new u.P(0,0),y=[0],d=G(),x=(0,n.mS)(m,this.createDistanceFunctor(_,p,g),!1),P=S(),D=this.canUseSpatialTree(e,t);D&&this.buildSpatialTree(P,t);let v=e.getPointCount();for(let t=0;t<v;++t)if(c.assign(e.getXY(t)),_.assign(e.getXY(t)),this.m_bIsPannablePcs&&(0,a.aw)(this.m_inputSR,[c],1,!1),d.setCoords({xmin:_.x,ymin:_.y,xmax:_.x,ymax:_.y}),!(this.m_envHelper.minDistanceGeodesic(d,this.m_boxGeomB)>l))if(x.setPointDistFrom(_),D)(0,s.g)(0);else{for(;o.nextPath();)for(;o.hasNextSegment();){let e=o.nextSegment();if(this.m_envHelper.minDistanceGeodesic(d,this.findOrComputeBoxSegment(o.getStartPointIndex(),e,this.m_segmentBoxesB))>l)continue;let t=this.calculateDistanceGeodeticPointSegment(c,_,e,y,x);if(t.second<l&&(i.outPoint.assign(_.mul(this.m_rpu)),this.updateOutputSegment(r,e,t.first),l=t.second,0===l))return 0}o.resetToFirstPath()}return l===this.m_maxDistance?1/0:l}catch(e){m.error=e,m.hasError=!0}finally{(0,n.hk)(m)}}calculateDistanceGeodeticMultipathGeometry(e,t,i,n){switch(t.getGeometryType()){case s.G.enumPoint:return this.calculateDistanceGeodeticPointMultipath(t,e,n,i);case s.G.enumMultiPoint:return this.calculateDistanceGeodeticMultipointMultipath(t,e,n,i);case s.G.enumPolyline:case s.G.enumPolygon:case s.G.enumEnvelope:return this.calculateDistanceGeodeticMultipathMultipath(e,t,i,n);default:(0,s.a)("")}}calculateDistanceGeodeticMultipathMultipath(e,t,i,n){let s=[e],r=[t],a=this.swapGeometries(s,r),m=s[0],o=r[0];this.computeEnvelopesAndBoxes(s[0],r[0]);let h=this.estimateMinimumDistance(i,n),l=this.calculateDistanceGeodeticMultipathMultipath_(m,o,i,n,h);return a&&(n.outPoint=(0,u.c)(i.outPoint,i.outPoint=n.outPoint)),l}calculateDistanceGeodeticMultipathMultipath_(e,t,i,m,o=Number.MAX_VALUE){let h={stack:[],error:void 0,hasError:!1};try{let c=o,_=new u.P(0,0),p=new u.P,g=new u.P(0,0),y=new u.P,d=new u.P(0,0),x=new u.P,P=new u.P,D=new u.P,v=[new u.P],f=[0],M=[0],E=G(),w=G(),T=(0,n.mS)(h,this.createDistanceFunctor(d,_,g),!1),b=S(),C=this.canUseSpatialTree(e,t);C&&this.buildSpatialTree(b,t);let B=t.querySegmentIterator();B.stripAttributes();let q=new r.S,A=(0,l.s)(e);for(let t=0;t<A.length;++t){let n=A[t];e.getSegmentBuffer(n,q,!0);let r=q.get();if(E.assign(this.findOrComputeBoxSegment(n,r,this.m_segmentBoxesA)),C)(0,s.g)(0);else{if(d.assign(r.getStartXY()),x.assign(r.getStartXY()),P.assign(r.getEndXY()),D.assign(r.getEndXY()),this.m_bIsPannablePcs&&((0,a.ax)(this.m_inputSR,0,[x],1),(0,a.ax)(this.m_inputSR,0,[D],1)),this.m_envHelper.minDistanceGeodesic(E,this.m_boxGeomB)>c)continue;for(;B.nextPath();){for(;B.hasNextSegment();){let e=B.nextSegment();if(_.assign(e.getStartXY()),p.assign(e.getStartXY()),g.assign(e.getEndXY()),y.assign(e.getEndXY()),r.intersect(e,v,f,M,this.m_tolerance))return this.updateOutputSegment(i,r,f[0]),this.updateOutputSegment(m,e,M[0]),0;if(this.m_bIsPannablePcs&&((0,a.ax)(this.m_inputSR,0,[p],1),(0,a.ax)(this.m_inputSR,0,[y],1)),w.assign(this.findOrComputeBoxPoint(B.getStartPointIndex(),p,y,this.m_segmentBoxesB)),this.m_envHelper.minDistanceGeodesic(E,w)>c)continue;T.setSegmentEndPoints(_,g),T.setPointDistFrom(x);let t=(0,a.ay)(T.makeFunctor(),0,1,1e-10);if(t.second<c&&(i.outPoint.assign(x.mul(this.m_rpu)),this.updateOutputSegment(m,e,t.first),c=t.second,0===c)||(T.setPointDistFrom(D),t=(0,a.ay)(T.makeFunctor(),0,1,1e-10),t.second<c&&(i.outPoint.assign(D.mul(this.m_rpu)),this.updateOutputSegment(m,e,t.first),c=t.second,0===c))||(T.setSegmentEndPoints(d,P),T.setPointDistFrom(p),t=(0,a.ay)(T.makeFunctor(),0,1,1e-10),t.second<c&&(this.updateOutputSegment(i,r,t.first),m.outPoint.assign(p.mul(this.m_rpu)),c=t.second,0===c))||(T.setPointDistFrom(y),t=(0,a.ay)(T.makeFunctor(),0,1,1e-10),t.second<c&&(this.updateOutputSegment(i,r,t.first),m.outPoint.assign(y.mul(this.m_rpu)),c=t.second,0===c)))break}if(0===c)return 0}B.resetToFirstPath()}}return c===this.m_maxDistance?1/0:c}catch(e){h.error=e,h.hasError=!0}finally{(0,n.hk)(h)}}calculateDistanceGeodeticPointSegment(e,t,i,n,s){let r=i.getStartXY(),m=i.getEndXY();return i.intersectPoint(e,n,this.m_tolerance)?(0,u.o)(n[0],0):(s.setPointDistFrom(t),s.setSegmentEndPoints(r,m),(0,a.ay)(s.makeFunctor(),0,1,1e-10))}prepareGeometry(e){let t=e.clone(),i=e.getGeometryType();if(i===s.G.enumPoint||i===s.G.enumMultiPoint)return this._NormalizeAndProject(t);if(i===s.G.enumEnvelope&&(t=this.envelopeToPolygon(t)),this.m_inputSR.isPannable())return this.prepareGeometryPannable(t,4);if(2===this.m_inputSR.getCoordinateSystemType()){if(t=(0,a.az)(t,this.m_inputSR,0,null),t.isEmpty())return t;t=(new p).execute(t,this.m_inputSR,5e4,this.m_maxDeviation/2,0,null);let e=this.m_inputSR.getSRToGCSTransform();return(new a.O).execute(t,e,this.m_progressTracker)}let n=new o.Envelope2D;t.queryLooseEnvelope(n);let r=this.m_inputSR.getPannableExtent();if(n.ymin<r.ymin||n.ymax>r.ymax){let e=new o.Envelope2D(n.xmin-1,r.ymin,n.xmax+1,r.ymax);if(t=(new g.O).execute(t,e,this.m_inputSR,this.m_progressTracker),t.isEmpty())return t}return n.width()>2*r.width()&&(t=(0,a.aA)(t,-2*r.width(),2*r.width(),this.m_inputSR,!0,0,!0,this.m_progressTracker)),t}prepareGeometryPannable(e,t){let i=new o.Envelope2D;e.queryEnvelope(i);let n=this.m_inputSR.getPannableExtent();if(n.containsEnvelope(i))return e;let s=new u.E;n.queryIntervalX(s);let r=new u.E;return i.queryIntervalX(r),s.contains(r)?(0,a.ag)(e,this.m_inputSR):(new a.O).foldInto360RangeGeodetic(e,this.m_inputSR,t)}prepareOutput(e){e.outPoint.scale(1/this.m_rpu),2===this.m_inputSR.getCoordinateSystemType()&&(0,a.aw)(this.m_inputSR,[e.outPoint],1,!1)}updateOutputSegment(e,t,i){t.queryCoord2D(i,e.outPoint),this.m_bIsPannablePcs&&(0,a.ax)(this.m_inputSR,0,[e.outPoint],1),e.outPoint.mulThis(this.m_rpu)}computeTolerance(e,t){e.queryEnvelope(this.m_envGeomA),t.queryEnvelope(this.m_envGeomB);let i=new o.Envelope2D(this.m_envGeomA);return i.mergeEnvelope2D(this.m_envGeomB),(0,m.d)(null,i)}envelopeToPolygon(e){let t=new r.P;return t.addEnvelope(e,!1),t}computeEnvelopesAndBoxes(e,t){e.queryEnvelope(this.m_envGeomA),t.queryEnvelope(this.m_envGeomB),this.m_boxGeomA=this.computeBoxGeometry(e,this.m_boundaryPtsA,this.m_segmentBoxesA),this.m_boxGeomB=this.computeBoxGeometry(t,this.m_boundaryPtsB,this.m_segmentBoxesB)}computeBoxGeometry(e,t,i){switch(e.getGeometryType()){case s.G.enumPoint:return this.computeBoxPoint(e,t);case s.G.enumMultiPoint:return this.computeBoxMultiPoint(e,t);case s.G.enumPolyline:case s.G.enumPolygon:return this.computeBoxMultiPath(e,t,i);default:(0,s.d)("Invalid geometry type")}}computeBoxPoint(e,t){let i=e.getXY();t.length=0,t.push(i.mul(this.m_rpu));let n=G();return n.setCoords({xmin:i.x,ymin:i.y,xmax:i.x,ymax:i.y}),n}computeBoxMultiPoint(e,t){let i=!0;for(let n=0;n<e.getPointCount();++n){let s=e.getXY(n);if(i){t.length=0;for(let e=0;e<4;++e)t.push(s.clone());i=!1}s.x<t[0].x&&t[0].assign(s),s.y>t[1].y&&t[1].assign(s),s.x>t[2].x&&t[2].assign(s),s.y<t[3].y&&t[3].assign(s)}for(let e=0;e<t.length;++e)t[e].mulThis(this.m_rpu);let n=G();return e.queryEnvelope(n),n}computeBoxMultiPath(e,t,i){let n=!0,s=G();s.setEmpty();let r=e.querySegmentIterator();for(r.stripAttributes();r.nextPath();)for(;r.hasNextSegment();){let e=r.nextSegment(),m=e.getStartXY(),o=e.getEndXY();if(this.m_bIsPannablePcs&&((0,a.ax)(this.m_inputSR,0,[m],1),(0,a.ax)(this.m_inputSR,0,[o],1)),n){for(let e=0;e<4;++e)t.push(m.clone());n=!1}m.x<t[0].x&&t[0].assign(m),m.y>t[1].y&&t[1].assign(m),m.x>t[2].x&&t[2].assign(m),m.y<t[3].y&&t[3].assign(m),o.x<t[0].x&&t[0].assign(o),o.y>t[1].y&&t[1].assign(o),o.x>t[2].x&&t[2].assign(o),o.y<t[3].y&&t[3].assign(o);let u=this.findOrComputeBoxPoint(r.getStartPointIndex(),m,o,i);s.mergeEnvelope2D(u)}for(let e=0;e<t.length;++e)t[e].mulThis(this.m_rpu);return s}findOrComputeBoxSegment(e,t,i){if(!i.has(e)){let n=G();if(t.queryEnvelope(n),this.m_bIsPannablePcs){let e=u.P.construct(n.xmin,n.ymin),t=u.P.construct(n.xmax,n.ymax);(0,a.ax)(this.m_inputSR,0,[e],1),(0,a.ax)(this.m_inputSR,0,[t],1),n=this.m_envHelper.calculateBbox(e.x,e.y,t.x,t.y)}return i.set(e,n),n}return i.get(e)}findOrComputeBoxPoint(e,t,i,n){if(!n.has(e)){let s=G();return s.setCoords({xmin:t.x,ymin:t.y,xmax:i.x,ymax:i.y}),this.m_bIsPannablePcs&&(s=this.m_envHelper.calculateBbox(s.xmin,s.ymin,s.xmax,s.ymax)),n.set(e,s),s}return n.get(e)}estimateMinimumDistance(e,t){let i={stack:[],error:void 0,hasError:!1};try{let s=e=>(0,a.av)(this.m_a,this.m_eSquared,e),r=this.m_boundaryPtsA.map(s),o=this.m_boundaryPtsB.map(s),u=Number.MAX_VALUE,h=0,l=0;for(let e=0;e<r.length;++e)for(let t=0;t<o.length;++t){let i=m.k.distance(r[e],o[t]);i<u&&(u=i,h=e,l=t)}e.outPoint.assign(this.m_boundaryPtsA[h]),t.outPoint.assign(this.m_boundaryPtsB[l]);let c=(0,n.mS)(i,new a.an,!1);return a.ao.geodeticDistance(this.m_a,this.m_eSquared,this.m_boundaryPtsA[h].x,this.m_boundaryPtsA[h].y,this.m_boundaryPtsB[l].x,this.m_boundaryPtsB[l].y,c,null,null,this.m_distCurveType),c.val}catch(e){i.error=e,i.hasError=!0}finally{(0,n.hk)(i)}}swapGeometries(e,t){return(0,s.v)(e[0])>(0,s.v)(t[0])&&(t[0]=(0,u.c)(e[0],e[0]=t[0]),this.m_envGeomB=(0,u.c)(this.m_envGeomA,this.m_envGeomA=this.m_envGeomB),!0)}canUseSpatialTree(e,t){return!1}checkGeometriesIntersect(e,t,i,n){let r=e.getGeometryType(),m=t.getGeometryType();if(this.m_envGeomA.isIntersecting(this.m_envGeomB)){if(r===s.G.enumPoint&&2===t.getDimension()){let s=[0],r=[e.getXY()];if((0,a.aB)(t,r,1,this.m_tolerance,s),0!==s[0])return i.outPoint.assign(r[0]),n.outPoint.assign(r[0]),!0}else if(m===s.G.enumPoint&&2===e.getDimension()){let s=[2],r=[t.getXY()];if((0,a.aB)(e,r,1,this.m_tolerance,s),0!==s[0])return i.outPoint.assign(r[0]),n.outPoint.assign(r[0]),!0}if(r===s.G.enumMultiPoint&&2===t.getDimension())return this.multipointIntersectsArea(e,t,i,n);if(m===s.G.enumMultiPoint&&2===e.getDimension())return this.multipointIntersectsArea(t,e,n,i);let o,u,h=e,c=t;if(r===s.G.enumEnvelope&&(o=this.envelopeToPolygon(e),h=o,r=s.G.enumPolygon),m===s.G.enumEnvelope&&(u=this.envelopeToPolygon(t),c=u,m=s.G.enumPolygon),(0,s.j)(r)&&(0,s.j)(m)){let e=h.querySegmentIterator(),t=c.querySegmentIterator(),s=(0,l.m)(),r=(0,l.m)();if((0,l.w)(h,c,e,t,s,r))return i.outPoint.assign(s.outPoint),n.outPoint.assign(s.outPoint),!0}}return!1}multipointIntersectsArea(e,t,i,n){let s=e.getPointCount();for(let r=0;r<s;++r){let s=[2],m=e.getXY(r);if((0,a.aB)(t,[m],1,this.m_tolerance,s),0!==s[0])return i.outPoint.assign(m),n.outPoint.assign(m),!0}return!1}getNearestNeighbourVisitor(e,t,i,n,r,a,m){return(0,s.g)(0),{}}buildSpatialTree(e,t){(0,s.g)(0)}}},31088(e,t,i){i.r(t),i.d(t,{OperatorGeodeticDensifyByLength:()=>m,OperatorGeodeticDensifyCursor:()=>o});var n=i(61691),s=i(55537),r=i(39117),a=i(76061);class m{getOperatorType(){return 10310}supportsCurves(){return!0}accelerateGeometry(e,t,i){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,i,n,s){return new o(e,i,n,t,-1,-1,s)}execute(e,t,i,n,r){let m=new a.S([e]),o=this.executeMany(m,t,i,n,r).next();return o||(0,s.d)("null output"),o}}class o extends n.G{m_inputGeoms;m_spatialReference;m_curveType;m_maxLengthMeters;m_maxDeviationMeters;m_maxAngle;m_progressTracker;m_index;constructor(e,t,i,n,r,a,m){super(),this.m_progressTracker=m,a>0&&(0,s.t)(""),4!==i&&r>0&&(0,s.t)(""),t||(0,s.a)(""),0===t.getCoordinateSystemType()&&(0,s.a)(""),!(n>0)&&!(r>0)&&(0,s.a)(""),this.m_index=-1,this.m_inputGeoms=e,this.m_spatialReference=t,this.m_curveType=i,this.m_maxLengthMeters=n,this.m_maxDeviationMeters=r,this.m_maxAngle=a}next(){{let e;for(;e=this.m_inputGeoms.next();)return(0,s.c)(e),this.m_index=this.m_inputGeoms.getGeometryID(),this.geodeticDensify(e);return null}}getGeometryID(){return this.m_index}tock(){return!0}getRank(){return 1}geodeticDensify(e){return(0,r.af)(e,this.m_spatialReference,this.m_curveType,this.m_maxLengthMeters,this.m_maxDeviationMeters,this.m_progressTracker)}}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1088,2024],{30921(e,t,i){i.d(t,{D:()=>D,m:()=>h,s:()=>d,w:()=>y});var n=i(32198),s=i(55537),r=i(88885),a=i(39117),m=i(83661),o=i(79187),u=i(95213);function h(){return{outPoint:new m.P,index:-1,t:NaN}}function l(e,t,i){return{outPoint:e.clone(),index:t,t:i}}function c(e,t,i,n){e.outPoint.assign(t),e.index=i,e.t=n}function _(e,t){e.outPoint.assign(t.outPoint),e.index=t.index,e.t=t.t}function p(e,t,i,n){e.index=i,e.t=n,t.queryCoord2D(e.t,e.outPoint)}function g(e,t){let i=h();_(i,e),_(e,t),_(t,i)}function y(e,t,i,n,r,m){if(e.getGeometryType()===s.G.enumPolygon){for(;n.nextPath();)if(n.hasNextSegment()){let t=n.nextSegment();if(0!==(0,a.K)(e,t.getEndXY(),0))return c(r,t.getEndXY(),-1,NaN),c(m,t.getEndXY(),-1,NaN),!0}n.resetToFirstPath()}if(t.getGeometryType()===s.G.enumPolygon){for(;i.nextPath();)if(i.hasNextSegment()){let e=i.nextSegment();if(0!==(0,a.K)(t,e.getEndXY(),0))return c(r,e.getEndXY(),-1,NaN),c(m,e.getEndXY(),-1,NaN),!0}i.resetToFirstPath()}return!1}function d(e){let t=e.getPathCount(),i=(0,m.c)(e.getSegmentCount(),0),n=0;for(let s=0;s<t;++s){let t=n+e.getSegmentCountPath(s);for(let r=n,a=e.getPathStart(s);r<t;++r,++a)i[r]=a;n=t}return(0,r.s)(e.getPointCount(),i),i}function x(e,t){return!!Number.isNaN(t)||e<=t}function P(e){let t=new r.P;return t.addEnvelope(e,!1),t}class D{m_progressTracker;m_env2DgeometryA=null;m_env2DgeometryB=null;m_maxSqrDistance;m_maxDistance;m_progressCounter=0;m_bIsNearCalc;constructor(e,t){if(this.m_progressTracker=t,this.m_maxSqrDistance=e*e,this.m_maxDistance=e,this.m_bIsNearCalc=!1,this.m_maxDistance=Number.isNaN(this.m_maxDistance)?1/0:e,this.m_maxSqrDistance=this.m_maxDistance*this.m_maxDistance,Number.isFinite(this.m_maxSqrDistance)){let e=Math.sqrt(this.m_maxSqrDistance);for(;e<this.m_maxDistance;)this.m_maxSqrDistance*=1+2**-52,e=Math.sqrt(this.m_maxSqrDistance)}}calculate(e,t,i,n){if((e.getGeometryType()!==u.P.type||t.getGeometryType()!==u.P.type)&&(this.m_env2DgeometryA=new o.Envelope2D,this.m_env2DgeometryB=new o.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!x(this.m_env2DgeometryA.distanceFromEnvelope(this.m_env2DgeometryB),this.m_maxDistance)))return 1/0;let s=l(new m.P,(0,m.b)(),NaN),r=l(new m.P,(0,m.b)(),NaN),a=this._ExecuteBruteForce(e,t,s,r);return x(a,this.m_maxDistance)?(null!==i&&_(i,s),null!==n&&_(n,r),a):1/0}isNear(e,t){if(this.m_bIsNearCalc=!0,e.isEmpty()||t.isEmpty())return!1;if(e===t)return!0;let i=!0;if((e.getGeometryType()===u.P.type||e.getGeometryType()===u.E.type)&&(t.getGeometryType()===u.P.type||t.getGeometryType()===u.E.type)&&(i=!1),i){if(this.m_env2DgeometryA=new o.Envelope2D,this.m_env2DgeometryB=new o.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!(this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)>this.m_maxSqrDistance))return!0;if(this.m_env2DgeometryA.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>this.m_maxSqrDistance)return!1}let n=l(new m.P,(0,m.b)(),NaN),s=l(new m.P,(0,m.b)(),NaN);return this._ExecuteBruteForce(e,t,n,s)<=this.m_maxDistance}progress_(e=!1){}_ExecuteBruteForce(e,t,i,n){switch(e.getGeometryType()){case s.G.enumPoint:return this.distancePointGeometry(e,t,i,n);case s.G.enumMultiPoint:return this.distanceMultipointGeometry(e,t,i,n);case s.G.enumEnvelope:return this.distanceEnvelopeGeometry(e,t,i,n);case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathGeometry(e,t,i,n);default:return NaN}}distancePointGeometry(e,t,i,n){switch(t.getGeometryType()){case s.G.enumPoint:return this.distancePointPoint(e,t,i,n);case s.G.enumMultiPoint:return this.distancePointMultipoint(e,t,i,n);case s.G.enumPolyline:case s.G.enumPolygon:return this.distancePointMultipath(e,t,i,n);case s.G.enumEnvelope:return this.distancePointEnvelope(e,t,i,n);default:return NaN}}distancePointPoint(e,t,i,n){let s=e.getXY(),r=t.getXY();return c(i,s,0,0),c(n,r,0,0),Math.sqrt(m.P.sqrDistance(s,r))}distancePointMultipoint(e,t,i,n){let s=e.getXY(),r=this.m_maxSqrDistance,a=r,o=!1,u=t.getPointCount(),h=new m.P;for(let e=0;e<u;++e)if(t.queryXY(e,h),a=m.P.sqrDistance(s,h),this.m_bIsNearCalc){if(a<=r)return 0}else if(!(a>r)&&(!o&&a===r||a<r)&&(r=a,c(i,s,0,0),c(n,h,e,0),o=!0,0===r))return 0;return o?Math.sqrt(r):1/0}distancePointMultipath(e,t,i,n){let r=!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB),u=e.getXY();if(!r&&t.getGeometryType()===s.G.enumPolygon&&0!==(0,a.K)(t,u,0))return c(i,u,0,0),c(n,u,-1,NaN),0;t.getImpl().getAccelerators();let h=this.m_maxSqrDistance,l=h,_=-1,p=new o.Envelope2D,g=t.querySegmentIterator(),y=!1;for(;g.nextPath();)for(;g.hasNextSegment();){let e=g.nextSegment();e.queryEnvelope(p);let t=p.sqrDistance(u);if(t>h||!this.m_bIsNearCalc&&y&&t===h)continue;_=e.getClosestCoordinate(u,!1);let s=e.getCoord2D(_);if(l=m.P.sqrDistance(u,s),this.m_bIsNearCalc){if(l<=h)return 0}else if(!(l>h)&&(!y||l<h)&&(h=l,c(i,u,0,0),c(n,s,g.getStartPointIndex(),_),y=!0,0===h))return 0}return y?Math.sqrt(h):1/0}distancePointEnvelope(e,t,i,n){let s=e.getXY();c(i,s,0,0),c(n,s,-1,NaN);let r=t.asEnvelope2D();return r.contains(s)?0:Math.sqrt(r.sqrDistance(s,n.outPoint))}distanceMultipointGeometry(e,t,i,n){switch(t.getGeometryType()){case s.G.enumPoint:{this.m_env2DgeometryB=(0,m.s)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);let s=this.distancePointMultipoint(t,e,n,i);return this.m_env2DgeometryB=(0,m.s)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumMultiPoint:return this.distanceMultipointMultipoint(e,t,i,n,1,1);case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipointMultipath(e,t,i,n);case s.G.enumEnvelope:return this.distanceMultipointMultipath(e,P(t),i,n);default:return NaN}}distanceMultipointMultipoint(e,t,i,s,r,a){let o={stack:[],error:void 0,hasError:!1};try{if(this.m_bIsNearCalc&&1===r&&1===a){let n=Math.trunc((0,m.a)(Math.sqrt(e.getPointCount())+1,1,(0,m.i)())),r=Math.trunc((0,m.a)(Math.sqrt(t.getPointCount())+1,1,(0,m.i)()));if((n>=4||r>=4)&&this.distanceMultipointMultipoint(e,t,i,s,n,r)<=this.m_maxSqrDistance)return 0}let u=this.m_maxSqrDistance,h=[e],l=[t],_=this.swapGeometriesIfBGtA(h,l);_&&(this.m_env2DgeometryB=(0,m.s)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),a=(0,m.s)(r,r=a),g(i,s)),(0,n.mS)(o,(0,m.m)(()=>{g(i,s),this.m_env2DgeometryB=(0,m.s)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)},!_),!1);let p=h[0].getImpl(),y=l[0].getImpl(),d=p.getPointCount(),x=y.getPointCount(),P=x>1,D=!1,v=new m.P,G=new m.P;for(let e=0;e<d;e+=r){if(p.queryXY(e,v),P){let e=this.m_env2DgeometryB.sqrDistance(v);if(this.m_bIsNearCalc){if(e>u)continue;if(this.m_env2DgeometryB.sqrMaxMinDistance(v)<=u)return 0}else if(e>=u)continue}for(let t=0;t<x;t+=a){y.queryXY(t,G);let n=m.P.sqrDistance(v,G);if(this.m_bIsNearCalc){if(n<=u)return 0}else if(!(n>u||D&&n===u)&&(!D||n<u)&&(c(i,v,e,0),c(s,G,t,0),D=!0,u=n,0===u))return D?Math.sqrt(u):1/0}}return D?Math.sqrt(u):1/0}catch(e){o.error=e,o.hasError=!0}finally{(0,n.hk)(o)}}distanceMultipointMultipath(e,t,i,n){let r=!!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)&&t.getGeometryType()===s.G.enumPolygon,u=t.querySegmentIterator();u.stripAttributes();let h=new o.Envelope2D,l=new m.P,_=this.m_maxSqrDistance,p=e.getImpl(),g=p.getPointCount(),y=g>1,d=!1;for(;u.nextPath();)for(;u.hasNextSegment();){let e=u.nextSegment();if(e.queryLooseEnvelope(h),y){let e=h.sqrDistanceEnvelope(this.m_env2DgeometryA,null,null);if(this.m_bIsNearCalc){if(e>_)continue}else if(e>_||d&&e===_)continue}for(let s=0;s<g;s++){if(p.queryXY(s,l),r&&0!==(0,a.K)(t,l,0))return c(i,l,-1,NaN),c(n,l,s,0),0;{let e=h.sqrDistance(l);if(this.m_bIsNearCalc){if(e>_)continue}else if(e>_)continue}let m=e.getClosestCoordinate(l,!1),o=e.getCoord2D(m);l.subThis(o);let g=l.sqrLength();if(this.m_bIsNearCalc){if(g<=_)return 0}else if(!(g>_)&&(!d||g<_)&&(_=g,c(i,p.getXY(s),s,0),c(n,o,u.getStartPointIndex(),m),d=!0,0===_))return 0}r=!1}return d?Math.sqrt(_):1/0}distanceEnvelopeGeometry(e,t,i,n){switch(t.getGeometryType()){case s.G.enumPoint:return this.distancePointEnvelope(t,e,n,i);case s.G.enumMultiPoint:{this.m_env2DgeometryB=(0,m.s)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);let s=this.distanceMultipointMultipath(t,P(e),n,i);return this.m_env2DgeometryB=(0,m.s)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathMultipath(P(e),t,i,n);case s.G.enumEnvelope:return this.distanceEnvelopeEnvelope(e,t,i,n);default:return NaN}}distanceEnvelopeEnvelope(e,t,i,n){i.t=NaN,i.index=-1,n.t=NaN,n.index=-1;let s=e.asEnvelope2D(),r=t.asEnvelope2D();return Math.sqrt(s.sqrDistanceEnvelope(r,i.outPoint,n.outPoint))}distanceMultipathGeometry(e,t,i,n){switch(t.getGeometryType()){case s.G.enumPoint:{this.m_env2DgeometryB=(0,m.s)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);let s=this.distancePointMultipath(t,e,n,i);return this.m_env2DgeometryB=(0,m.s)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumMultiPoint:{this.m_env2DgeometryB=(0,m.s)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);let s=this.distanceMultipointMultipath(t,e,n,i);return this.m_env2DgeometryB=(0,m.s)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathMultipath(e,t,i,n);case s.G.enumEnvelope:return this.distanceMultipathMultipath(e,P(t),i,n);default:return NaN}}distanceMultipathMultipath(e,t,i,s){let a={stack:[],error:void 0,hasError:!1};try{let u=[e],l=[t],c=this.swapGeometriesIfAGtB(u,l);c&&(this.m_env2DgeometryB=(0,m.s)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),g(i,s)),(0,n.mS)(a,(0,m.m)(()=>{g(i,s),this.m_env2DgeometryB=(0,m.s)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)},!c),!1);let x=u[0],P=l[0],D=x.querySegmentIterator();D.stripAttributes();let v=P.querySegmentIterator();if(v.stripAttributes(),this.m_bIsNearCalc&&this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)<=this.m_maxSqrDistance)return 0;if(this.m_bIsNearCalc){let e=Math.trunc((0,m.a)(Math.sqrt(x.getPointCount())+1,1,(0,m.i)())),t=Math.trunc((0,m.a)(Math.sqrt(x.getPointCount())+1,1,(0,m.i)()));if(this.distanceMultipointMultipoint(x,P,i,s,e,t)<=this.m_maxSqrDistance)return 0}if(this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)){let e=h(),t=h();if(y(x,P,D,v,e,t))return _(i,e),_(s,t),0}let G=d(x),f=[],S=new r.S,M=new o.Envelope2D,E=new o.Envelope2D,w=new o.Envelope2D,T=this.m_maxSqrDistance,b=!0,C=!1;for(let e=0,t=G.length;e<t;++e){x.querySegment(G[e],S,!0);let t=S.get();if(t.queryEnvelope(M),!(M.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>T)){if(this.m_bIsNearCalc&&M.sqrMaxDistanceEnvelope(this.m_env2DgeometryB)<=T)return 0;for(;v.nextPath();){if(this.progress_(),b)P.queryPathEnvelope(v.getPathIndex(),w),f[v.getPathIndex()]=w.clone();else if(M.sqrDistanceEnvelope(f[v.getPathIndex()],null,null)>T)continue;for(;v.hasNextSegment();){let n=v.nextSegment();if(n.queryEnvelope(E),M.sqrDistanceEnvelope(E,null,null)<=T){let r=!M.isIntersecting(E),a=[0],m=[0],o=t.distance(n,r,a,m);if(o*=o,this.m_bIsNearCalc&&o<=this.m_maxSqrDistance)return 0;if(o<T||o===T&&G[e]<i.index){if(C=!0,p(i,t,G[e],a[0]),p(s,n,v.getStartPointIndex(),m[0]),0===o)return 0;T=o}}}}v.resetToFirstPath(),b=!1}}return C?Math.sqrt(T):1/0}catch(e){a.error=e,a.hasError=!0}finally{(0,n.hk)(a)}}swapGeometriesIfAGtB(e,t){return(0,s.v)(e[0])>(0,s.v)(t[0])&&(t[0]=(0,m.s)(e[0],e[0]=t[0]),!0)}swapGeometriesIfBGtA(e,t){return this.swapGeometriesIfAGtB(t,e)}}},22024(e,t,i){i.d(t,{G:()=>M,a:()=>f,m:()=>D});var n=i(32198),s=i(55537),r=i(88885),a=i(39117),m=i(95213),o=i(79187),u=i(83661),h=i(11878),l=i(30921),c=i(76061),_=i(31088);class p{getOperatorType(){return 10317}supportsCurves(){return!0}accelerateGeometry(e,t,i){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,i,n,s,r){return new _.OperatorGeodeticDensifyCursor(e,t,4,i,n,s,r)}execute(e,t,i,n,r,a){let m=new c.S([e]),o=this.executeMany(m,t,i,n,r,a).next();return o||(0,s.d)("null output"),o}}var g=i(31139);class y{m_a;m_e2;m_b;m_unitToDegree;m_unitToRad;m_u180;m_u360;m_peR1;m_peR2;m_peR3;[Symbol.dispose](){this.m_peR1.destroy(),this.m_peR2.destroy(),this.m_peR3.destroy(),this.m_peR1=null,this.m_peR2=null,this.m_peR3=null}constructor(e,t,i){this.m_peR1=new a.an,this.m_peR2=new a.an,this.m_peR3=new a.an,void 0===e?this.reset(1,0,1):this.reset(e,t,i)}reset(e,t,i){this.m_a=e,this.m_e2=t,this.m_b=this.m_a*Math.sqrt(1-this.m_e2),this.m_unitToDegree=i,this.m_unitToRad=.017453292519943295*i,this.m_u180=180/this.m_unitToDegree,this.m_u360=360/this.m_unitToDegree}calculateBbox(e,t,i,n){let s=this.m_peR1,r=this.m_peR2,m=this.m_peR3;a.ao.geodeticDistance(this.m_a,this.m_e2,e*this.m_unitToRad,t*this.m_unitToRad,i*this.m_unitToRad,n*this.m_unitToRad,m,s,r,0);let h=Math.cos(s.val),l=Math.cos(r.val+3.141592653589793),c=t*this.m_unitToRad,_=a.ae.phiToEta(this.m_e2,c),p=Math.sin(s.val)*Math.cos(_),g=t;if(h*l<0){let e=Math.acos(Math.abs(p))*(h<0?-1:1);g=a.ae.etaToPhi(this.m_e2,e)/this.m_unitToRad}let y=(0,u.p)((i-e)*this.m_unitToRad,2*Math.PI);Math.abs(y)>Math.PI&&(y=y>0?y-2*Math.PI:y+2*Math.PI),y/=this.m_unitToRad,i=e+y;let d=new o.Envelope2D;return d.xmin=Math.min(e,i),d.xmax=Math.max(e,i),d.ymin=Math.min(t,n),d.ymin=Math.min(d.ymin,g),d.ymax=Math.max(t,n),d.ymax=Math.max(d.ymax,g),d}minDistanceGeodesic(e,t){let i=d(e),n=d(t);if(i&&n)return this.lowerDistanceGeodetic_(e.xmin,e.ymin,t.xmin,t.ymin);let s=this.normalizeGeodesic_(t,e);return function(e,t){return t.xmax<e.xmin||t.xmin>e.xmax||t.ymax<e.ymin||t.ymin>e.ymax}(e,s)?e.ymin>=s.ymax?this.minDistanceGeodesicUpDown_(e,s):s.ymin>=e.ymax?this.minDistanceGeodesicUpDown_(s,e):e.xmin>s.xmax?this.minDistanceGeodesicLeftRight_(s,e):this.minDistanceGeodesicLeftRight_(e,s):0}normalizeGeodesic_(e,t){let i=e.clone(),n=e.clone(),s=x(i,t);if(0===s)return i;for(;n.xmax>t.xmin;){n.xmin-=this.m_u360,n.xmax-=this.m_u360;let e=x(n,t);if(e<s&&(i.assign(n),s=e,0===s))return i}for(n.assign(e);n.xmin<t.xmax;){n.xmin+=this.m_u360,n.xmax+=this.m_u360;let e=x(n,t);if(e<s&&(i.assign(n),s=e,0===s))return i}return i}lowerDistanceGeodetic_(e,t,i,n){let s=this.m_peR1;{let r=this.m_b*this.m_b/this.m_a,m=a.ae.phiToPhig(this.m_e2,this.m_unitToRad*t),o=a.ae.phiToPhig(this.m_e2,this.m_unitToRad*n);a.ao.geodeticDistance(r,0,this.m_unitToRad*e,m,this.m_unitToRad*i,o,s,null,null,0)}return s.val}minDistanceGeodesicUpDown_(e,t){if(t.xmin<=e.xmin?t.xmax>=e.xmin:e.xmax>=t.xmin)return this.lowerDistanceGeodetic_(0,e.ymin,0,t.ymax);if(t.xmin>e.xmax){let i=this.lowerDistanceGeodeticSegMeridional_(e.xmax,e.ymin,e.ymax,t.xmin,t.ymin,t.ymax);if(t.xmax-e.xmin<this.m_u180)return i;let n=this.lowerDistanceGeodeticSegMeridional_(e.xmin,e.ymin,e.ymax,t.xmax,t.ymin,t.ymax);return Math.min(i,n)}{let i=this.lowerDistanceGeodeticSegMeridional_(e.xmin,e.ymin,e.ymax,t.xmax,t.ymin,t.ymax);if(e.xmax-t.xmin<this.m_u180)return i;let n=this.lowerDistanceGeodeticSegMeridional_(e.xmax,e.ymin,e.ymax,t.xmin,t.ymin,t.ymax);return Math.min(i,n)}}minDistanceGeodesicLeftRight_(e,t){let i=Math.abs(e.xmax-t.xmin);for(;i>this.m_u180;)i-=this.m_u360;let n=Math.abs(e.xmin-t.xmax);for(;n>this.m_u180;)n-=this.m_u360;return Math.abs(i)<=Math.abs(n)?this.minDistanceGeodesicLeftRightNormalized_(e,t):this.minDistanceGeodesicLeftRightNormalized_(t,e)}minDistanceGeodesicLeftRightNormalized_(e,t){let i,n;return i=this.lowerDistanceGeodetic_(e.xmax,e.ymin,t.xmin,t.ymin),e.ymin>=t.ymin&&e.ymin<=t.ymax&&(n=this.lowerDistanceGeodeticPtMeridional_(e.xmax,e.ymin,t.xmin,t.ymin,t.ymax),i=Math.min(i,n)),t.ymin>=e.ymin&&t.ymin<=e.ymax&&(n=this.lowerDistanceGeodeticPtMeridional_(t.xmin,t.ymin,e.xmax,e.ymin,e.ymax),i=Math.min(i,n)),n=this.lowerDistanceGeodetic_(e.xmax,e.ymax,t.xmin,t.ymax),i=Math.min(i,n),e.ymax>=t.ymin&&e.ymax<=t.ymax&&(n=this.lowerDistanceGeodeticPtMeridional_(e.xmax,e.ymax,t.xmin,t.ymin,t.ymax),i=Math.min(i,n)),t.ymax>=e.ymin&&t.ymax<=e.ymax&&(n=this.lowerDistanceGeodeticPtMeridional_(t.xmin,t.ymax,e.xmax,e.ymin,e.ymax),i=Math.min(i,n)),i}lowerDistanceGeodeticSegMeridional_(e,t,i,n,s,r){let a=this.lowerDistanceGeodeticPtMeridional_(e,t,n,s,r),m=this.lowerDistanceGeodeticPtMeridional_(e,i,n,s,r),o=this.lowerDistanceGeodeticPtMeridional_(n,s,e,t,i),u=this.lowerDistanceGeodeticPtMeridional_(n,r,e,t,i);return a=Math.min(a,m),o=Math.min(o,u),Math.min(a,o)}lowerDistanceGeodeticPtMeridional_(e,t,i,n,s){let r=this.m_b*this.m_b/this.m_a,o=a.ae.phiToPhig(this.m_e2,this.m_unitToRad*t),h=a.ae.phiToPhig(this.m_e2,this.m_unitToRad*n),l=a.ae.phiToPhig(this.m_e2,this.m_unitToRad*s),c=this.m_peR1,_=this.m_peR2;a.ao.geodeticDistance(r,0,this.m_unitToRad*i,h,this.m_unitToRad*e,o,c,null,null,0),a.ao.geodeticDistance(r,0,this.m_unitToRad*i,l,this.m_unitToRad*e,o,_,null,null,0);let p=(0,a.av)(1,0,new u.P(this.m_unitToRad*e,o)),g=(0,a.av)(1,0,new u.P(this.m_unitToRad*i,h)),y=(0,a.av)(1,0,new u.P(this.m_unitToRad*i,l)),d=new m.k;d.setCrossProductVector(g,y);let x=g.dotProduct(y);if(d.length()<1.568e-10)return x>=0?Math.min(c.val,_.val):0;d=d.getUnitVector();let P=new m.k;if(P.setCrossProductVector(d,p),P.length()<1.568e-10)return Math.min(c.val,_.val)-1e-5*r;P=P.getUnitVector();let D=p.sub(d.mul(p.dotProduct(d)));{let t=new m.k;t.setCrossProductVector(g,D);let i=new m.k;i.setCrossProductVector(D,y);let n=d.dotProduct(t)>0&&d.dotProduct(i)>0;if(n||=(D.negateThis(),t.setCrossProductVector(g,D),i.setCrossProductVector(D,y),d.dotProduct(t)>0&&d.dotProduct(i)>0),n){D=D.getUnitVector();let t=(0,a.aC)(1,0,D),i=this.m_peR3;a.ao.geodeticDistance(r,0,this.m_unitToRad*e,o,t.x,t.y,i,null,null,0);let n=Math.min(c.val,_.val);return Math.min(n,i.val)}}return Math.min(c.val,_.val)}}function d(e){return e.xmin===e.xmax&&e.ymin===e.ymax}function x(e,t){let i,n=0;return i=e.xmin-t.xmax,i>n&&(n=i),i=t.xmin-e.xmax,i>n&&(n=i),n}class P{}function D(e){return{outPoint:void 0===e?new u.P:e.clone()}}function v(e,t){e.outPoint.assign(t.outPoint)}function G(){return new o.Envelope2D}class f{m_ptDistFrom=new u.P;m_segStartPt=new u.P;m_segEndPt=new u.P;m_sr;m_distCurveType;m_segCurveType;m_a;m_eSquared;m_inputGCS;m_rpu;m_geodeticLength=new a.an;m_az12=new a.an;m_minGeodeticDist=new a.an;m_bIsPannablePcs;m_segStartPt3d=new m.k;m_segEndPt3d=new m.k;constructor(e,t,i,n,s=0,r=4){this.m_sr=n,this.m_distCurveType=s,this.m_segCurveType=r,this.m_inputGCS=this.m_sr.getGCS(),this.m_rpu=this.m_inputGCS.getUnit().getUnitToBaseFactor(),this.m_bIsPannablePcs=2===this.m_sr.getCoordinateSystemType()&&this.m_sr.isPannable();let m=(0,a.r)();this.m_inputGCS.querySpheroidData(m),this.m_a=m.majorSemiAxis,this.m_eSquared=m.e2,this.setPointDistFrom(e),this.setSegmentEndPoints(t,i)}setSegmentEndPoints(e,t){this.m_segStartPt.assign(e),this.m_segEndPt.assign(t),this.m_bIsPannablePcs||(this.m_segStartPt.mulThis(this.m_rpu),this.m_segEndPt.mulThis(this.m_rpu)),2===this.m_segCurveType&&(this.m_segStartPt3d.assign((0,a.av)(this.m_a,this.m_eSquared,this.m_segStartPt)),this.m_segEndPt3d.assign((0,a.av)(this.m_a,this.m_eSquared,this.m_segEndPt))),this.calculateAndUpdateSegmentLength()}setPointDistFrom(e){this.m_ptDistFrom.assign(e),this.m_ptDistFrom.scale(this.m_rpu)}setSegmentCurveType(e){this.m_segCurveType=e}setDistanceCurveType(e){this.m_distCurveType=e}makeFunctor(){return e=>{let t;switch(this.m_segCurveType){case 0:case 1:case 3:{let i={stack:[],error:void 0,hasError:!1};try{let s=(0,n.mS)(i,new a.an,!1),r=(0,n.mS)(i,new a.an,!1);a.ao.geodeticCoordinate(this.m_a,this.m_eSquared,this.m_segStartPt.x,this.m_segStartPt.y,this.m_geodeticLength.val*e,this.m_az12.val,s,r,this.m_segCurveType),t=new u.P(s.val,r.val);break}catch(e){i.error=e,i.hasError=!0}finally{(0,n.hk)(i)}}case 2:{let i=m.k.lerp(this.m_segStartPt3d,this.m_segEndPt3d,e);t=(0,a.aC)(this.m_a,this.m_eSquared,i);break}case 4:t=u.P.lerp(this.m_segStartPt,this.m_segEndPt,e),this.m_bIsPannablePcs&&((0,a.ax)(this.m_sr,0,[t],1),t.mulThis(this.m_rpu));break;default:(0,s.d)("Invalid curve type")}return a.ao.geodeticDistance(this.m_a,this.m_eSquared,this.m_ptDistFrom.x,this.m_ptDistFrom.y,t.x,t.y,this.m_minGeodeticDist,null,null,this.m_distCurveType),this.m_minGeodeticDist.val}}calculateAndUpdateSegmentLength(){switch(this.m_segCurveType){case 0:case 2:case 1:case 3:a.ao.geodeticDistance(this.m_a,this.m_eSquared,this.m_segStartPt.x,this.m_segStartPt.y,this.m_segEndPt.x,this.m_segEndPt.y,this.m_geodeticLength,this.m_az12,null,this.m_segCurveType);break;case 4:this.m_geodeticLength.val=u.P.distance(this.m_segStartPt,this.m_segEndPt);break;default:(0,s.d)("Invalid curve type")}}[Symbol.dispose](){this.m_geodeticLength[Symbol.dispose](),this.m_az12[Symbol.dispose](),this.m_minGeodeticDist[Symbol.dispose]()}}function S(){return new P}class M{m_inputSR;m_distCurveType;m_progressTracker;m_maxDistance;m_maxDeviation;m_inputGCS;m_peGeogcs;m_a;m_eSquared;m_rpu;m_envHelper;m_boxGeomA=G();m_boxGeomB=G();m_envGeomA=new o.Envelope2D;m_envGeomB=new o.Envelope2D;m_progressCounter=0;m_bIsPannablePcs;m_transformPCS2GCS=null;m_segmentBoxesA=new Map;m_segmentBoxesB=new Map;m_boundaryPtsA=[];m_boundaryPtsB=[];m_scaleToRadians=new h.T;m_scaleToDegrees=new h.T;m_tolerance;[Symbol.dispose](){this.m_envHelper[Symbol.dispose]()}constructor(e,t,i,n,s){this.m_inputSR=e,this.m_distCurveType=t,this.m_progressTracker=i,this.m_maxDistance=n,this.m_maxDeviation=s,this.m_inputGCS=e.getGCS(),this.m_peGeogcs=this.m_inputGCS.getPECoordSys(),this.m_tolerance=0;let r=(0,a.r)();this.m_inputGCS.querySpheroidData(r),this.m_a=r.majorSemiAxis,this.m_eSquared=r.e2,this.m_rpu=this.m_inputGCS.getUnit().getUnitToBaseFactor(),this.m_envHelper=new y(this.m_a,this.m_eSquared,1),4===this.m_distCurveType&&(this.m_distCurveType=0),this.m_boxGeomA.setEmpty(),this.m_boxGeomB.setEmpty(),this.m_envGeomA.setEmpty(),this.m_envGeomB.setEmpty(),this.m_bIsPannablePcs=2===this.m_inputSR.getCoordinateSystemType()&&this.m_inputSR.isPannable()}progress(e=!1){}calculate(e,t,i,n){let s=D(),r=D();if(e.queryEnvelope(this.m_envGeomA),t.queryEnvelope(this.m_envGeomB),this.checkGeometriesIntersect(e,t,s,r))return i&&v(i,s),n&&v(n,r),0;let a=this.prepareGeometry(e);if(a.isEmpty())return NaN;let m=this.prepareGeometry(t);if(m.isEmpty())return NaN;this.m_tolerance=this.computeTolerance(a,m);let o=this._ExecuteBruteForce(a,m,s,r);return o>=this.m_maxDistance?NaN:(i&&(this.prepareOutput(s),v(i,s)),n&&(this.prepareOutput(r),v(n,r)),o)}createDistanceFunctor(e,t,i){let n=new f(e,t,i,this.m_inputSR,this.m_distCurveType);return this.m_bIsPannablePcs||1===this.m_inputSR.getCoordinateSystemType()||n.setSegmentCurveType(2),n}_NormalizeAndProject(e){if(this.m_inputSR.isPannable()&&(e=(new a.O).foldInto360Range(e,this.m_inputSR)),2===this.m_inputSR.getCoordinateSystemType()){let t=(0,a.D)(this.m_inputSR,this.m_inputGCS,null);e=(new a.O).execute(e,t,this.m_progressTracker)}return e}_ExecuteBruteForce(e,t,i,n){switch(e.getGeometryType()){case s.G.enumPoint:return this.calculateDistanceGeodeticPointGeometry(e,t,i,n);case s.G.enumMultiPoint:return this.calculateDistanceGeodeticMultipointGeometry(e,t,i,n);case s.G.enumPolyline:case s.G.enumPolygon:case s.G.enumEnvelope:return this.calculateDistanceGeodeticMultipathGeometry(e,t,i,n);default:(0,s.b)("")}}calculateDistanceGeodeticPointGeometry(e,t,i,n){switch(t.getGeometryType()){case s.G.enumPoint:return this.calculateDistanceGeodeticPointPoint(e,t,i,n);case s.G.enumMultiPoint:return this.calculateDistanceGeodeticPointMultipoint(e,t,i,n);case s.G.enumPolyline:case s.G.enumPolygon:return this.calculateDistanceGeodeticPointMultipath(e,t,i,n);default:(0,s.b)("")}}calculateDistanceGeodeticPointPoint(e,t,i,s){let r={stack:[],error:void 0,hasError:!1};try{let m=e.getXY();m.scale(this.m_rpu);let o=t.getXY();o.scale(this.m_rpu),i.outPoint.assign(m),s.outPoint.assign(o);let u=(0,n.mS)(r,new a.an,!1);return a.ao.geodeticDistance(this.m_a,this.m_eSquared,m.x,m.y,o.x,o.y,u,null,null,this.m_distCurveType),u.val}catch(e){r.error=e,r.hasError=!0}finally{(0,n.hk)(r)}}calculateDistanceGeodeticPointMultipoint(e,t,i,s){let r={stack:[],error:void 0,hasError:!1};try{this.computeEnvelopesAndBoxes(e,t);let o=this.estimateMinimumDistance(i,s),h=o<this.m_maxDistance?o:this.m_maxDistance,l=e.getXY();l.scale(this.m_rpu),i.outPoint.assign(l);let c=(0,a.av)(this.m_a,this.m_eSquared,l),_=new u.P,p=t.getImpl(),g=(0,n.mS)(r,new a.an,!1),y=p.getPointCount();for(let e=0;e<y;++e){p.queryXY(e,_),_.scale(this.m_rpu);let t=(0,a.av)(this.m_a,this.m_eSquared,_);if(!(m.k.distance(c,t)>h)&&!(this.m_envHelper.minDistanceGeodesic(this.m_boxGeomA,this.m_boxGeomB)>h)&&(a.ao.geodeticDistance(this.m_a,this.m_eSquared,l.x,l.y,_.x,_.y,g,null,null,this.m_distCurveType),g.val<h&&(h=g.val,s.outPoint=_,0===h)))return h}return h===this.m_maxDistance?1/0:h}catch(e){r.error=e,r.hasError=!0}finally{(0,n.hk)(r)}}calculateDistanceGeodeticPointMultipath(e,t,i,r){let m={stack:[],error:void 0,hasError:!1};try{let o=new u.P,h=new u.P;o.assign(e.getXY()),h.assign(e.getXY()),i.outPoint.assign(h.mul(this.m_rpu)),this.m_bIsPannablePcs&&(0,a.aw)(this.m_inputSR,[o],1,!1),this.computeEnvelopesAndBoxes(e,t);let l=this.estimateMinimumDistance(i,r),c=l<this.m_maxDistance?l:this.m_maxDistance,_=t.getImpl(),p=new u.P(0,0),g=new u.P(0,0),y=[1],d=this.canUseSpatialTree(e,t),x=S();d&&this.buildSpatialTree(x,t);let P=G();P.setCoords({xmin:h.x,ymin:h.y,xmax:h.x,ymax:h.y});let D=(0,n.mS)(m,this.createDistanceFunctor(h,p,g),!1),v=_.querySegmentIterator();if(v.stripAttributes(),d)(0,s.g)(0);else for(;v.nextPath();)for(;v.hasNextSegment();){let e=v.nextSegment(),t=this.findOrComputeBoxSegment(v.getStartPointIndex(),e,this.m_segmentBoxesB);if(this.m_envHelper.minDistanceGeodesic(P,t)>c)continue;let i=this.calculateDistanceGeodeticPointSegment(o,h,e,y,D);if(i.second<c&&(this.updateOutputSegment(r,e,i.first),c=i.second,0===c))return 0}return c===this.m_maxDistance?1/0:c}catch(e){m.error=e,m.hasError=!0}finally{(0,n.hk)(m)}}calculateDistanceGeodeticMultipointGeometry(e,t,i,n){switch(t.getGeometryType()){case s.G.enumPoint:return this.calculateDistanceGeodeticPointMultipoint(t,e,n,i);case s.G.enumMultiPoint:return this.calculateDistanceGeodeticMultipointMultipoint(e,t,i,n);case s.G.enumPolyline:case s.G.enumPolygon:case s.G.enumEnvelope:return this.calculateDistanceGeodeticMultipointMultipath(e,t,i,n);default:(0,s.b)("")}}calculateDistanceGeodeticMultipointMultipoint(e,t,i,s){let r={stack:[],error:void 0,hasError:!1};try{let o=(0,n.mS)(r,new a.an,!1);this.computeEnvelopesAndBoxes(e,t);let h=this.estimateMinimumDistance(i,s),l=h<this.m_maxDistance?h:this.m_maxDistance,c=new u.P,_=new u.P,p=e.getImpl(),g=t.getImpl(),y=G(),d=p.getPointCount(),x=g.getPointCount();for(let e=0;e<d;++e){if(c.assign(p.getXY(e)),y.setCoords({xmin:c.x,ymin:c.y,xmax:c.x,ymax:c.y}),this.m_envHelper.minDistanceGeodesic(y,this.m_boxGeomB)>l)continue;c.scale(this.m_rpu);let t=(0,a.av)(this.m_a,this.m_eSquared,c);for(let e=0;e<x;++e){_.assign(g.getXY(e)),_.scale(this.m_rpu);let n=(0,a.av)(this.m_a,this.m_eSquared,_);if(!(m.k.distance(t,n)>=l)&&(a.ao.geodeticDistance(this.m_a,this.m_eSquared,c.x,c.y,_.x,_.y,o,null,null,this.m_distCurveType),o.val<l&&(i.outPoint.assign(c),s.outPoint.assign(_),l=o.val,0===l)))return l}}return l===this.m_maxDistance?1/0:l}catch(e){r.error=e,r.hasError=!0}finally{(0,n.hk)(r)}}calculateDistanceGeodeticMultipointMultipath(e,t,i,r){let m={stack:[],error:void 0,hasError:!1};try{let o=t.getImpl().querySegmentIterator();o.stripAttributes(),this.computeEnvelopesAndBoxes(e,t);let h=this.estimateMinimumDistance(i,r),l=h<this.m_maxDistance?h:this.m_maxDistance,c=new u.P,_=new u.P(0,0),p=new u.P(0,0),g=new u.P(0,0),y=[0],d=G(),x=(0,n.mS)(m,this.createDistanceFunctor(_,p,g),!1),P=S(),D=this.canUseSpatialTree(e,t);D&&this.buildSpatialTree(P,t);let v=e.getPointCount();for(let t=0;t<v;++t)if(c.assign(e.getXY(t)),_.assign(e.getXY(t)),this.m_bIsPannablePcs&&(0,a.aw)(this.m_inputSR,[c],1,!1),d.setCoords({xmin:_.x,ymin:_.y,xmax:_.x,ymax:_.y}),!(this.m_envHelper.minDistanceGeodesic(d,this.m_boxGeomB)>l))if(x.setPointDistFrom(_),D)(0,s.g)(0);else{for(;o.nextPath();)for(;o.hasNextSegment();){let e=o.nextSegment();if(this.m_envHelper.minDistanceGeodesic(d,this.findOrComputeBoxSegment(o.getStartPointIndex(),e,this.m_segmentBoxesB))>l)continue;let t=this.calculateDistanceGeodeticPointSegment(c,_,e,y,x);if(t.second<l&&(i.outPoint.assign(_.mul(this.m_rpu)),this.updateOutputSegment(r,e,t.first),l=t.second,0===l))return 0}o.resetToFirstPath()}return l===this.m_maxDistance?1/0:l}catch(e){m.error=e,m.hasError=!0}finally{(0,n.hk)(m)}}calculateDistanceGeodeticMultipathGeometry(e,t,i,n){switch(t.getGeometryType()){case s.G.enumPoint:return this.calculateDistanceGeodeticPointMultipath(t,e,n,i);case s.G.enumMultiPoint:return this.calculateDistanceGeodeticMultipointMultipath(t,e,n,i);case s.G.enumPolyline:case s.G.enumPolygon:case s.G.enumEnvelope:return this.calculateDistanceGeodeticMultipathMultipath(e,t,i,n);default:(0,s.b)("")}}calculateDistanceGeodeticMultipathMultipath(e,t,i,n){let s=[e],r=[t],a=this.swapGeometries(s,r),m=s[0],o=r[0];this.computeEnvelopesAndBoxes(s[0],r[0]);let h=this.estimateMinimumDistance(i,n),l=this.calculateDistanceGeodeticMultipathMultipath_(m,o,i,n,h);return a&&(n.outPoint=(0,u.s)(i.outPoint,i.outPoint=n.outPoint)),l}calculateDistanceGeodeticMultipathMultipath_(e,t,i,m,o=Number.MAX_VALUE){let h={stack:[],error:void 0,hasError:!1};try{let c=o,_=new u.P(0,0),p=new u.P,g=new u.P(0,0),y=new u.P,d=new u.P(0,0),x=new u.P,P=new u.P,D=new u.P,v=[new u.P],f=[0],M=[0],E=G(),w=G(),T=(0,n.mS)(h,this.createDistanceFunctor(d,_,g),!1),b=S(),C=this.canUseSpatialTree(e,t);C&&this.buildSpatialTree(b,t);let B=t.querySegmentIterator();B.stripAttributes();let q=new r.S,A=(0,l.s)(e);for(let t=0;t<A.length;++t){let n=A[t];e.getSegmentBuffer(n,q,!0);let r=q.get();if(E.assign(this.findOrComputeBoxSegment(n,r,this.m_segmentBoxesA)),C)(0,s.g)(0);else{if(d.assign(r.getStartXY()),x.assign(r.getStartXY()),P.assign(r.getEndXY()),D.assign(r.getEndXY()),this.m_bIsPannablePcs&&((0,a.ax)(this.m_inputSR,0,[x],1),(0,a.ax)(this.m_inputSR,0,[D],1)),this.m_envHelper.minDistanceGeodesic(E,this.m_boxGeomB)>c)continue;for(;B.nextPath();){for(;B.hasNextSegment();){let e=B.nextSegment();if(_.assign(e.getStartXY()),p.assign(e.getStartXY()),g.assign(e.getEndXY()),y.assign(e.getEndXY()),r.intersect(e,v,f,M,this.m_tolerance))return this.updateOutputSegment(i,r,f[0]),this.updateOutputSegment(m,e,M[0]),0;if(this.m_bIsPannablePcs&&((0,a.ax)(this.m_inputSR,0,[p],1),(0,a.ax)(this.m_inputSR,0,[y],1)),w.assign(this.findOrComputeBoxPoint(B.getStartPointIndex(),p,y,this.m_segmentBoxesB)),this.m_envHelper.minDistanceGeodesic(E,w)>c)continue;T.setSegmentEndPoints(_,g),T.setPointDistFrom(x);let t=(0,a.ay)(T.makeFunctor(),0,1,1e-10);if(t.second<c&&(i.outPoint.assign(x.mul(this.m_rpu)),this.updateOutputSegment(m,e,t.first),c=t.second,0===c)||(T.setPointDistFrom(D),t=(0,a.ay)(T.makeFunctor(),0,1,1e-10),t.second<c&&(i.outPoint.assign(D.mul(this.m_rpu)),this.updateOutputSegment(m,e,t.first),c=t.second,0===c))||(T.setSegmentEndPoints(d,P),T.setPointDistFrom(p),t=(0,a.ay)(T.makeFunctor(),0,1,1e-10),t.second<c&&(this.updateOutputSegment(i,r,t.first),m.outPoint.assign(p.mul(this.m_rpu)),c=t.second,0===c))||(T.setPointDistFrom(y),t=(0,a.ay)(T.makeFunctor(),0,1,1e-10),t.second<c&&(this.updateOutputSegment(i,r,t.first),m.outPoint.assign(y.mul(this.m_rpu)),c=t.second,0===c)))break}if(0===c)return 0}B.resetToFirstPath()}}return c===this.m_maxDistance?1/0:c}catch(e){h.error=e,h.hasError=!0}finally{(0,n.hk)(h)}}calculateDistanceGeodeticPointSegment(e,t,i,n,s){let r=i.getStartXY(),m=i.getEndXY();return i.intersectPoint(e,n,this.m_tolerance)?(0,u.o)(n[0],0):(s.setPointDistFrom(t),s.setSegmentEndPoints(r,m),(0,a.ay)(s.makeFunctor(),0,1,1e-10))}prepareGeometry(e){let t=e.clone(),i=e.getGeometryType();if(i===s.G.enumPoint||i===s.G.enumMultiPoint)return this._NormalizeAndProject(t);if(i===s.G.enumEnvelope&&(t=this.envelopeToPolygon(t)),this.m_inputSR.isPannable())return this.prepareGeometryPannable(t,4);if(2===this.m_inputSR.getCoordinateSystemType()){if(t=(0,a.az)(t,this.m_inputSR,0,null),t.isEmpty())return t;t=(new p).execute(t,this.m_inputSR,5e4,this.m_maxDeviation/2,0,null);let e=this.m_inputSR.getSRToGCSTransform();return(new a.O).execute(t,e,this.m_progressTracker)}let n=new o.Envelope2D;t.queryLooseEnvelope(n);let r=this.m_inputSR.getPannableExtent();if(n.ymin<r.ymin||n.ymax>r.ymax){let e=new o.Envelope2D(n.xmin-1,r.ymin,n.xmax+1,r.ymax);if(t=(new g.O).execute(t,e,this.m_inputSR,this.m_progressTracker),t.isEmpty())return t}return n.width()>2*r.width()&&(t=(0,a.aA)(t,-2*r.width(),2*r.width(),this.m_inputSR,!0,0,!0,this.m_progressTracker)),t}prepareGeometryPannable(e,t){let i=new o.Envelope2D;e.queryEnvelope(i);let n=this.m_inputSR.getPannableExtent();if(n.containsEnvelope(i))return e;let s=new u.E;n.queryIntervalX(s);let r=new u.E;return i.queryIntervalX(r),s.contains(r)?(0,a.ag)(e,this.m_inputSR):(new a.O).foldInto360RangeGeodetic(e,this.m_inputSR,t)}prepareOutput(e){e.outPoint.scale(1/this.m_rpu),2===this.m_inputSR.getCoordinateSystemType()&&(0,a.aw)(this.m_inputSR,[e.outPoint],1,!1)}updateOutputSegment(e,t,i){t.queryCoord2D(i,e.outPoint),this.m_bIsPannablePcs&&(0,a.ax)(this.m_inputSR,0,[e.outPoint],1),e.outPoint.mulThis(this.m_rpu)}computeTolerance(e,t){e.queryEnvelope(this.m_envGeomA),t.queryEnvelope(this.m_envGeomB);let i=new o.Envelope2D(this.m_envGeomA);return i.mergeEnvelope2D(this.m_envGeomB),(0,m.d)(null,i)}envelopeToPolygon(e){let t=new r.P;return t.addEnvelope(e,!1),t}computeEnvelopesAndBoxes(e,t){e.queryEnvelope(this.m_envGeomA),t.queryEnvelope(this.m_envGeomB),this.m_boxGeomA=this.computeBoxGeometry(e,this.m_boundaryPtsA,this.m_segmentBoxesA),this.m_boxGeomB=this.computeBoxGeometry(t,this.m_boundaryPtsB,this.m_segmentBoxesB)}computeBoxGeometry(e,t,i){switch(e.getGeometryType()){case s.G.enumPoint:return this.computeBoxPoint(e,t);case s.G.enumMultiPoint:return this.computeBoxMultiPoint(e,t);case s.G.enumPolyline:case s.G.enumPolygon:return this.computeBoxMultiPath(e,t,i);default:(0,s.d)("Invalid geometry type")}}computeBoxPoint(e,t){let i=e.getXY();t.length=0,t.push(i.mul(this.m_rpu));let n=G();return n.setCoords({xmin:i.x,ymin:i.y,xmax:i.x,ymax:i.y}),n}computeBoxMultiPoint(e,t){let i=!0;for(let n=0;n<e.getPointCount();++n){let s=e.getXY(n);if(i){t.length=0;for(let e=0;e<4;++e)t.push(s.clone());i=!1}s.x<t[0].x&&t[0].assign(s),s.y>t[1].y&&t[1].assign(s),s.x>t[2].x&&t[2].assign(s),s.y<t[3].y&&t[3].assign(s)}for(let e=0;e<t.length;++e)t[e].mulThis(this.m_rpu);let n=G();return e.queryEnvelope(n),n}computeBoxMultiPath(e,t,i){let n=!0,s=G();s.setEmpty();let r=e.querySegmentIterator();for(r.stripAttributes();r.nextPath();)for(;r.hasNextSegment();){let e=r.nextSegment(),m=e.getStartXY(),o=e.getEndXY();if(this.m_bIsPannablePcs&&((0,a.ax)(this.m_inputSR,0,[m],1),(0,a.ax)(this.m_inputSR,0,[o],1)),n){for(let e=0;e<4;++e)t.push(m.clone());n=!1}m.x<t[0].x&&t[0].assign(m),m.y>t[1].y&&t[1].assign(m),m.x>t[2].x&&t[2].assign(m),m.y<t[3].y&&t[3].assign(m),o.x<t[0].x&&t[0].assign(o),o.y>t[1].y&&t[1].assign(o),o.x>t[2].x&&t[2].assign(o),o.y<t[3].y&&t[3].assign(o);let u=this.findOrComputeBoxPoint(r.getStartPointIndex(),m,o,i);s.mergeEnvelope2D(u)}for(let e=0;e<t.length;++e)t[e].mulThis(this.m_rpu);return s}findOrComputeBoxSegment(e,t,i){if(!i.has(e)){let n=G();if(t.queryEnvelope(n),this.m_bIsPannablePcs){let e=u.P.construct(n.xmin,n.ymin),t=u.P.construct(n.xmax,n.ymax);(0,a.ax)(this.m_inputSR,0,[e],1),(0,a.ax)(this.m_inputSR,0,[t],1),n=this.m_envHelper.calculateBbox(e.x,e.y,t.x,t.y)}return i.set(e,n),n}return i.get(e)}findOrComputeBoxPoint(e,t,i,n){if(!n.has(e)){let s=G();return s.setCoords({xmin:t.x,ymin:t.y,xmax:i.x,ymax:i.y}),this.m_bIsPannablePcs&&(s=this.m_envHelper.calculateBbox(s.xmin,s.ymin,s.xmax,s.ymax)),n.set(e,s),s}return n.get(e)}estimateMinimumDistance(e,t){let i={stack:[],error:void 0,hasError:!1};try{let s=e=>(0,a.av)(this.m_a,this.m_eSquared,e),r=this.m_boundaryPtsA.map(s),o=this.m_boundaryPtsB.map(s),u=Number.MAX_VALUE,h=0,l=0;for(let e=0;e<r.length;++e)for(let t=0;t<o.length;++t){let i=m.k.distance(r[e],o[t]);i<u&&(u=i,h=e,l=t)}e.outPoint.assign(this.m_boundaryPtsA[h]),t.outPoint.assign(this.m_boundaryPtsB[l]);let c=(0,n.mS)(i,new a.an,!1);return a.ao.geodeticDistance(this.m_a,this.m_eSquared,this.m_boundaryPtsA[h].x,this.m_boundaryPtsA[h].y,this.m_boundaryPtsB[l].x,this.m_boundaryPtsB[l].y,c,null,null,this.m_distCurveType),c.val}catch(e){i.error=e,i.hasError=!0}finally{(0,n.hk)(i)}}swapGeometries(e,t){return(0,s.v)(e[0])>(0,s.v)(t[0])&&(t[0]=(0,u.s)(e[0],e[0]=t[0]),this.m_envGeomB=(0,u.s)(this.m_envGeomA,this.m_envGeomA=this.m_envGeomB),!0)}canUseSpatialTree(e,t){return!1}checkGeometriesIntersect(e,t,i,n){let r=e.getGeometryType(),m=t.getGeometryType();if(this.m_envGeomA.isIntersecting(this.m_envGeomB)){if(r===s.G.enumPoint&&2===t.getDimension()){let s=[0],r=[e.getXY()];if((0,a.aB)(t,r,1,this.m_tolerance,s),0!==s[0])return i.outPoint.assign(r[0]),n.outPoint.assign(r[0]),!0}else if(m===s.G.enumPoint&&2===e.getDimension()){let s=[2],r=[t.getXY()];if((0,a.aB)(e,r,1,this.m_tolerance,s),0!==s[0])return i.outPoint.assign(r[0]),n.outPoint.assign(r[0]),!0}if(r===s.G.enumMultiPoint&&2===t.getDimension())return this.multipointIntersectsArea(e,t,i,n);if(m===s.G.enumMultiPoint&&2===e.getDimension())return this.multipointIntersectsArea(t,e,n,i);let o,u,h=e,c=t;if(r===s.G.enumEnvelope&&(o=this.envelopeToPolygon(e),h=o,r=s.G.enumPolygon),m===s.G.enumEnvelope&&(u=this.envelopeToPolygon(t),c=u,m=s.G.enumPolygon),(0,s.j)(r)&&(0,s.j)(m)){let e=h.querySegmentIterator(),t=c.querySegmentIterator(),s=(0,l.m)(),r=(0,l.m)();if((0,l.w)(h,c,e,t,s,r))return i.outPoint.assign(s.outPoint),n.outPoint.assign(s.outPoint),!0}}return!1}multipointIntersectsArea(e,t,i,n){let s=e.getPointCount();for(let r=0;r<s;++r){let s=[2],m=e.getXY(r);if((0,a.aB)(t,[m],1,this.m_tolerance,s),0!==s[0])return i.outPoint.assign(m),n.outPoint.assign(m),!0}return!1}getNearestNeighbourVisitor(e,t,i,n,r,a,m){return(0,s.g)(0),{}}buildSpatialTree(e,t){(0,s.g)(0)}}},31088(e,t,i){i.r(t),i.d(t,{OperatorGeodeticDensifyByLength:()=>m,OperatorGeodeticDensifyCursor:()=>o});var n=i(61691),s=i(55537),r=i(39117),a=i(76061);class m{getOperatorType(){return 10310}supportsCurves(){return!0}accelerateGeometry(e,t,i){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,i,n,s){return new o(e,i,n,t,-1,-1,s)}execute(e,t,i,n,r){let m=new a.S([e]),o=this.executeMany(m,t,i,n,r).next();return o||(0,s.d)("null output"),o}}class o extends n.G{m_inputGeoms;m_spatialReference;m_curveType;m_maxLengthMeters;m_maxDeviationMeters;m_maxAngle;m_progressTracker;m_index;constructor(e,t,i,n,r,a,m){super(),this.m_progressTracker=m,a>0&&(0,s.a)(""),4!==i&&r>0&&(0,s.a)(""),t||(0,s.b)(""),0===t.getCoordinateSystemType()&&(0,s.b)(""),!(n>0)&&!(r>0)&&(0,s.b)(""),this.m_index=-1,this.m_inputGeoms=e,this.m_spatialReference=t,this.m_curveType=i,this.m_maxLengthMeters=n,this.m_maxDeviationMeters=r,this.m_maxAngle=a}next(){{let e;for(;e=this.m_inputGeoms.next();)return(0,s.t)(e),this.m_index=this.m_inputGeoms.getGeometryID(),this.geodeticDensify(e);return null}}getGeometryID(){return this.m_index}tock(){return!0}getRank(){return 1}geodeticDensify(e){return(0,r.af)(e,this.m_spatialReference,this.m_curveType,this.m_maxLengthMeters,this.m_maxDeviationMeters,this.m_progressTracker)}}}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see
|
|
2
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8971],{68554(t,e,s){s.d(e,{a:()=>A,b:()=>p}),Object(function(){const t=new Error("Cannot find module '../cdn/main.css'");throw t.code="MODULE_NOT_FOUND",t}());var i=s(32012),n=s(58933);function r(){const{classList:t}=document.body,e=window.matchMedia("(prefers-color-scheme: dark)").matches,s=()=>t.contains("calcite-mode-dark")||t.contains("calcite-mode-auto")&&e?"dark":"light",i=t=>document.body.dispatchEvent(new CustomEvent("calciteModeChange",{bubbles:!0,detail:{mode:t}})),n=t=>{r!==t&&i(t),r=t};let r=s();i(r),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",t=>n(t.matches?"dark":"light")),new MutationObserver(()=>n(s())).observe(document.body,{attributes:!0,attributeFilter:["class"]})}const o=new Set,h={trace:0,debug:1,info:2,warn:4,error:8,off:10};function a(t,...e){(function(t){return"off"!==t&&h[t]>=h[p().logLevel]})(t)&&console[t]("%ccalcite","background: #007AC2; color: #fff; border-radius: 4px; padding: 2px 4px;",...e)}let c;const l={debug:(t,...e)=>a("debug",t,...e),info:(t,...e)=>a("info",t,...e),warn:(t,...e)=>a("warn",t,...e),error:(t,...e)=>a("error",t,...e),trace:(t,...e)=>a("trace",t,...e),deprecated:function(t,{component:e,name:s,suggested:i,removalVersion:n}){const r=`${t}:${"component"===t?"":e}${s}`,h="future"===n?"a future version":`v${n}`;if(o.has(r))return;o.add(r);let l="";l="component"===t?`This component is deprecated and will be removed in ${h}.`:`The [${s}] ${t} is deprecated and will be removed in ${h}.`,i&&(c=new Intl.ListFormat("en",{style:"long",type:"disjunction"}),l+=` Use ${c.format([i].flat().map(t=>`"${t}"`))} instead.`),a("warn",`[${e.el.tagName.toLocaleLowerCase().slice(8)}] - ${l}`)}};let d;const u={focusTrapStack:[],logLevel:"info"};function p(){return d||(d={...u,...globalThis.calciteConfig??{}}),d}const $="5.2.0-next.80";n.S$||("interactive"===document.readyState?r():document.addEventListener("DOMContentLoaded",r,{once:!0})),queueMicrotask(function(){const t=p();t&&t.version||(l.info(`Using Calcite Components ${$} [Date: 2026-09-23, Revision: e86e9e468]`),Object.defineProperty(t,"version",{value:$,writable:!1}),globalThis.calciteConfig=t)});const _=(0,i.le)({defaultAssetPath:"https://cdn.jsdelivr.net/npm/@esri/calcite-components@5.2.0-next.80/dist/cdn/",hydratedAttribute:"calcite-hydrated"}),f=_.setAssetPath;_.setAssetPath=t=>(A=!0,f.call(_,t));let A=!1;const{customElement:m,getAssetPath:g,setAssetPath:v}=_;s.d(e,["C",0,{rtl:"calcite--rtl",calciteAnimate:"calcite-animate",calciteAnimateInUp:"calcite-animate__in-up",calciteAnimateInDown:"calcite-animate__in-down",calciteAnimateInRight:"calcite-animate__in-right",calciteAnimateInLeft:"calcite-animate__in-left",screenReaderText:"screen-reader-text"},"D",0,{filter:250,nextTick:0,resize:150,reposition:100},"c",0,m,"g",0,g,"l",0,l,"s",0,v])},87123(t,e,s){s.d(e,{Qu:()=>i.s,qu:()=>i.a});var i=s(68554)},16823(t,e,s){s(39043)},39043(t,e,s){s.d(e,{mN:()=>S,AH:()=>a,Ec:()=>b});const i=globalThis,n=i.ShadowRoot&&(void 0===i.ShadyCSS||i.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),o=new WeakMap;class h{constructor(t,e,s){if(this._$cssResult$=!0,s!==r)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(n&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=o.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&o.set(e,t))}return t}toString(){return this.cssText}}const a=(t,...e)=>{const s=1===t.length?t[0]:e.reduce((e,s,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[i+1],t[0]);return new h(s,t,r)},c=(t,e)=>{if(n)t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const s of e){const e=document.createElement("style"),n=i.litNonce;void 0!==n&&e.setAttribute("nonce",n),e.textContent=s.cssText,t.appendChild(e)}},l=n?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return(t=>new h("string"==typeof t?t:t+"",void 0,r))(e)})(t):t,{is:d,defineProperty:u,getOwnPropertyDescriptor:p,getOwnPropertyNames:$,getOwnPropertySymbols:_,getPrototypeOf:f}=Object,A=globalThis,m=A.trustedTypes,g=m?m.emptyScript:"",v=A.reactiveElementPolyfillSupport,y=(t,e)=>t,E={toAttribute(t,e){switch(e){case Boolean:t=t?g:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},b=(t,e)=>!d(t,e),w={attribute:!0,type:String,converter:E,reflect:!1,useDefault:!1,hasChanged:b};Symbol.metadata??=Symbol("metadata"),A.litPropertyMetadata??=new WeakMap;class S extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=w){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);void 0!==i&&u(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:n}=p(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:i,set(e){const r=i?.call(this);n?.call(this,e),this.requestUpdate(t,r,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??w}static _$Ei(){if(this.hasOwnProperty(y("elementProperties")))return;const t=f(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(y("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(y("properties"))){const t=this.properties,e=[...$(t),..._(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const s=this._$Eu(t,e);void 0!==s&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(l(t))}else void 0!==t&&e.push(l(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return c(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(void 0!==i&&!0===s.reflect){const n=(void 0!==s.converter?.toAttribute?s.converter:E).toAttribute(e,s.type);this._$Em=t,null==n?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(t,e){const s=this.constructor,i=s._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=s.getPropertyOptions(i),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:E;this._$Em=i;const r=n.fromAttribute(e,t.type);this[i]=r??this._$Ej?.get(i)??r,this._$Em=null}}requestUpdate(t,e,s,i=!1,n){if(void 0!==t){const r=this.constructor;if(!1===i&&(n=this[t]),s??=r.getPropertyOptions(t),!((s.hasChanged??b)(n,e)||s.useDefault&&s.reflect&&n===this._$Ej?.get(t)&&!this.hasAttribute(r._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:n},r){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??e??this[t]),!0!==n||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===i&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,i=this[e];!0!==t||this._$AL.has(e)||void 0===i||this.C(e,void 0,s,i)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}}S.elementStyles=[],S.shadowRootOptions={mode:"open"},S[y("elementProperties")]=new Map,S[y("finalized")]=new Map,v?.({ReactiveElement:S}),(A.reactiveElementVersions??=[]).push("2.1.2")},58887(t,e,s){var i=s(7261);const{I:n}=i.ge,r={};s.d(e,["Rt",0,t=>void 0===t.strings,"mY",0,(t,e=r)=>t._$AH=e])},66567(t,e,s){s.d(e,{WL:()=>i});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}s.d(e,["OA",0,{ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},"u$",0,t=>(...e)=>({_$litDirective$:t,values:e})])},7261(t,e,s){const i=globalThis,n=t=>t,r=i.trustedTypes,o=r?r.createPolicy("lit-html",{createHTML:t=>t}):void 0,h="$lit$",a=`lit$${Math.random().toFixed(9).slice(2)}$`,c="?"+a,l=`<${c}>`,d=document,u=()=>d.createComment(""),p=t=>null===t||"object"!=typeof t&&"function"!=typeof t,$=Array.isArray,_=t=>$(t)||"function"==typeof t?.[Symbol.iterator],f="[ \t\n\f\r]",A=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,m=/-->/g,g=/>/g,v=RegExp(`>|${f}(?:([^\\s"'>=/]+)(${f}*=${f}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),y=/'/g,E=/"/g,b=/^(?:script|style|textarea|title)$/i,w=t=>(e,...s)=>({_$litType$:t,strings:e,values:s}),S=w(1),C=w(2),T=w(3),O=Symbol.for("lit-noChange"),P=Symbol.for("lit-nothing"),U=new WeakMap,x=d.createTreeWalker(d,129);function R(t,e){if(!$(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==o?o.createHTML(e):e}const M=(t,e)=>{const s=t.length-1,i=[];let n,r=2===e?"<svg>":3===e?"<math>":"",o=A;for(let e=0;e<s;e++){const s=t[e];let c,d,u=-1,p=0;for(;p<s.length&&(o.lastIndex=p,d=o.exec(s),null!==d);)p=o.lastIndex,o===A?"!--"===d[1]?o=m:void 0!==d[1]?o=g:void 0!==d[2]?(b.test(d[2])&&(n=RegExp("</"+d[2],"g")),o=v):void 0!==d[3]&&(o=v):o===v?">"===d[0]?(o=n??A,u=-1):void 0===d[1]?u=-2:(u=o.lastIndex-d[2].length,c=d[1],o=void 0===d[3]?v:'"'===d[3]?E:y):o===E||o===y?o=v:o===m||o===g?o=A:(o=v,n=void 0);const $=o===v&&t[e+1].startsWith("/>")?" ":"";r+=o===A?s+l:u>=0?(i.push(c),s.slice(0,u)+h+s.slice(u)+a+$):s+a+(-2===u?e:$)}return[R(t,r+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),i]};class N{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let n=0,o=0;const l=t.length-1,d=this.parts,[p,$]=M(t,e);if(this.el=N.createElement(p,s),x.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=x.nextNode())&&d.length<l;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(h)){const e=$[o++],s=i.getAttribute(t).split(a),r=/([.?@])?(.*)/.exec(e);d.push({type:1,index:n,name:r[2],strings:s,ctor:"."===r[1]?D:"?"===r[1]?j:"@"===r[1]?B:I}),i.removeAttribute(t)}else t.startsWith(a)&&(d.push({type:6,index:n}),i.removeAttribute(t));if(b.test(i.tagName)){const t=i.textContent.split(a),e=t.length-1;if(e>0){i.textContent=r?r.emptyScript:"";for(let s=0;s<e;s++)i.append(t[s],u()),x.nextNode(),d.push({type:2,index:++n});i.append(t[e],u())}}}else if(8===i.nodeType)if(i.data===c)d.push({type:2,index:n});else{let t=-1;for(;-1!==(t=i.data.indexOf(a,t+1));)d.push({type:7,index:n}),t+=a.length-1}n++}}static createElement(t,e){const s=d.createElement("template");return s.innerHTML=t,s}}function H(t,e,s=t,i){if(e===O)return e;let n=void 0!==i?s._$Co?.[i]:s._$Cl;const r=p(e)?void 0:e._$litDirective$;return n?.constructor!==r&&(n?._$AO?.(!1),void 0===r?n=void 0:(n=new r(t),n._$AT(t,s,i)),void 0!==i?(s._$Co??=[])[i]=n:s._$Cl=n),void 0!==n&&(e=H(t,n._$AS(t,e.values),n,i)),e}class k{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??d).importNode(e,!0);x.currentNode=i;let n=x.nextNode(),r=0,o=0,h=s[0];for(;void 0!==h;){if(r===h.index){let e;2===h.type?e=new L(n,n.nextSibling,this,t):1===h.type?e=new h.ctor(n,h.name,h.strings,this,t):6===h.type&&(e=new W(n,this,t)),this._$AV.push(e),h=s[++o]}r!==h?.index&&(n=x.nextNode(),r++)}return x.currentNode=d,i}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class L{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=P,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=H(this,t,e),p(t)?t===P||null==t||""===t?(this._$AH!==P&&this._$AR(),this._$AH=P):t!==this._$AH&&t!==O&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):_(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==P&&p(this._$AH)?this._$AA.nextSibling.data=t:this.T(d.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,i="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N.createElement(R(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new k(i,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=U.get(t.strings);return void 0===e&&U.set(t.strings,e=new N(t)),e}k(t){$(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const n of t)i===e.length?e.push(s=new L(this.O(u()),this.O(u()),this,this.options)):s=e[i],s._$AI(n),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=n(t).nextSibling;n(t).remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class I{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,n){this.type=1,this._$AH=P,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=P}_$AI(t,e=this,s,i){const n=this.strings;let r=!1;if(void 0===n)t=H(this,t,e,0),r=!p(t)||t!==this._$AH&&t!==O,r&&(this._$AH=t);else{const i=t;let o,h;for(t=n[0],o=0;o<n.length-1;o++)h=H(this,i[s+o],e,o),h===O&&(h=this._$AH[o]),r||=!p(h)||h!==this._$AH[o],h===P?t=P:t!==P&&(t+=(h??"")+n[o+1]),this._$AH[o]=h}r&&!i&&this.j(t)}j(t){t===P?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class D extends I{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===P?void 0:t}}class j extends I{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==P)}}class B extends I{constructor(t,e,s,i,n){super(t,e,s,i,n),this.type=5}_$AI(t,e=this){if((t=H(this,t,e,0)??P)===O)return;const s=this._$AH,i=t===P&&s!==P||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==P&&(s===P||i);i&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class W{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){H(this,t)}}const z={M:h,P:a,A:c,C:1,L:M,R:k,D:_,V:H,I:L,H:I,N:j,U:B,B:D,F:W},G=i.litHtmlPolyfillSupport;G?.(N,L),(i.litHtmlVersions??=[]).push("3.3.2"),s.d(e,["JW",0,C,"XX",0,(t,e,s)=>{const i=s?.renderBefore??e;let n=i._$litPart$;if(void 0===n){const t=s?.renderBefore??null;i._$litPart$=n=new L(e.insertBefore(u(),t),t,void 0,s??{})}return n._$AI(t),n},"c0",0,O,"ej",0,T,"ge",0,z,"qy",0,S,"s6",0,P])},66047(t,e,s){s(16823)},25856(t,e,s){s(16823)},10845(t,e,s){s.d(e,{H:()=>r});var i=s(7261),n=s(66567);const r=(0,n.u$)(class extends n.WL{constructor(t){if(super(t),t.type!==n.OA.ATTRIBUTE||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(t=>""!==t)));for(const t in e)e[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(e)}const s=t.element.classList;for(const t of this.st)t in e||(s.remove(t),this.st.delete(t));for(const t in e){const i=!!e[t];i===this.st.has(t)||this.nt?.has(t)||(i?(s.add(t),this.st.add(t)):(s.remove(t),this.st.delete(t)))}return i.c0}})},98171(t,e,s){s.d(e,{V:()=>o});var i=s(7261),n=s(66567),r=s(58887);const o=(0,n.u$)(class extends n.WL{constructor(t){if(super(t),t.type!==n.OA.PROPERTY&&t.type!==n.OA.ATTRIBUTE&&t.type!==n.OA.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!(0,r.Rt)(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===i.c0||e===i.s6)return e;const s=t.element,o=t.name;if(t.type===n.OA.PROPERTY){if(e===s[o])return i.c0}else if(t.type===n.OA.BOOLEAN_ATTRIBUTE){if(!!e===s.hasAttribute(o))return i.c0}else if(t.type===n.OA.ATTRIBUTE&&s.getAttribute(o)===e+"")return i.c0;return(0,r.mY)(t),e}})},83435(t,e,s){s.d(e,{_:()=>p,K:()=>f});var i=s(7261),n=s(58887),r=s(66567);const o=(t,e)=>{const s=t._$AN;if(void 0===s)return!1;for(const t of s)t._$AO?.(e,!1),o(t,e);return!0},h=t=>{let e,s;do{if(void 0===(e=t._$AM))break;s=e._$AN,s.delete(t),t=e}while(0===s?.size)},a=t=>{for(let e;e=t._$AM;t=e){let s=e._$AN;if(void 0===s)e._$AN=s=new Set;else if(s.has(t))break;s.add(t),d(e)}};function c(t){void 0!==this._$AN?(h(this),this._$AM=t,a(this)):this._$AM=t}function l(t,e=!1,s=0){const i=this._$AH,n=this._$AN;if(void 0!==n&&0!==n.size)if(e)if(Array.isArray(i))for(let t=s;t<i.length;t++)o(i[t],!1),h(i[t]);else null!=i&&(o(i,!1),h(i));else o(this,t)}const d=t=>{t.type==r.OA.CHILD&&(t._$AP??=l,t._$AQ??=c)};class u extends r.WL{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),a(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(o(this,t),h(this))}setValue(t){if((0,n.Rt)(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}const p=()=>new $;class ${}const _=new WeakMap,f=(0,r.u$)(class extends u{render(t){return i.s6}update(t,[e]){const s=e!==this.G;return s&&void 0!==this.G&&this.rt(void 0),(s||this.lt!==this.ct)&&(this.G=e,this.ht=t.options?.host,this.rt(this.ct=t.element)),i.s6}rt(t){if(this.isConnected||(t=void 0),"function"==typeof this.G){const e=this.ht??globalThis;let s=_.get(e);void 0===s&&(s=new WeakMap,_.set(e,s)),void 0!==s.get(this.G)&&this.G.call(this.ht,void 0),s.set(this.G,t),void 0!==t&&this.G.call(this.ht,t)}else this.G.value=t}get lt(){return"function"==typeof this.G?_.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}})},84(t,e,s){s.d(e,{W:()=>h});var i=s(7261),n=s(66567);const r="important",o=" !"+r,h=(0,n.u$)(class extends n.WL{constructor(t){if(super(t),t.type!==n.OA.ATTRIBUTE||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,s)=>{const i=t[s];return null==i?e:e+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(t,[e]){const{style:s}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(const t of this.ft)null==e[t]&&(this.ft.delete(t),t.includes("-")?s.removeProperty(t):s[t]=null);for(const t in e){const i=e[t];if(null!=i){this.ft.add(t);const e="string"==typeof i&&i.endsWith(o);t.includes("-")||e?s.setProperty(t,e?i.slice(0,-11):i,e?r:""):s[t]=i}}return i.c0}})},58933(t,e,s){s.d(e,{WF:()=>o,AH:()=>i.AH,qy:()=>n.qy,S$:()=>!1,Ec:()=>i.Ec,s6:()=>n.s6,JW:()=>n.JW});var i=s(39043),n=s(7261);const r=globalThis;class o extends i.mN{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=(0,n.XX)(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return n.c0}}o._$litElement$=!0,o.finalized=!0,r.litElementHydrateSupport?.({LitElement:o});const h=r.litElementPolyfillSupport;h?.({LitElement:o}),(r.litElementVersions??=[]).push("4.2.2")}}]);
|
|
1
|
+
/*! For license information please see 68d8ae42ab71d01a70a5.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7644],{89301(t,e,s){s.d(e,{a:()=>A,b:()=>p}),Object(function(){const t=new Error("Cannot find module '../cdn/main.css'");throw t.code="MODULE_NOT_FOUND",t}());var i=s(32012),n=s(58933);function r(){const{classList:t}=document.body,e=window.matchMedia("(prefers-color-scheme: dark)").matches,s=()=>t.contains("calcite-mode-dark")||t.contains("calcite-mode-auto")&&e?"dark":"light",i=t=>document.body.dispatchEvent(new CustomEvent("calciteModeChange",{bubbles:!0,detail:{mode:t}})),n=t=>{r!==t&&i(t),r=t};let r=s();i(r),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",t=>n(t.matches?"dark":"light")),new MutationObserver(()=>n(s())).observe(document.body,{attributes:!0,attributeFilter:["class"]})}const o=new Set,h={trace:0,debug:1,info:2,warn:4,error:8,off:10};function a(t,...e){(function(t){return"off"!==t&&h[t]>=h[p().logLevel]})(t)&&console[t]("%ccalcite","background: #007AC2; color: #fff; border-radius: 4px; padding: 2px 4px;",...e)}let c;const l={debug:(t,...e)=>a("debug",t,...e),info:(t,...e)=>a("info",t,...e),warn:(t,...e)=>a("warn",t,...e),error:(t,...e)=>a("error",t,...e),trace:(t,...e)=>a("trace",t,...e),deprecated:function(t,{component:e,name:s,suggested:i,removalVersion:n}){const r=`${t}:${"component"===t?"":e}${s}`,h="future"===n?"a future version":`v${n}`;if(o.has(r))return;o.add(r);let l="";l="component"===t?`This component is deprecated and will be removed in ${h}.`:`The [${s}] ${t} is deprecated and will be removed in ${h}.`,i&&(c=new Intl.ListFormat("en",{style:"long",type:"disjunction"}),l+=` Use ${c.format([i].flat().map(t=>`"${t}"`))} instead.`),a("warn",`[${e.el.tagName.toLocaleLowerCase().slice(8)}] - ${l}`)}};let d;const u={focusTrapStack:[],logLevel:"info"};function p(){return d||(d={...u,...globalThis.calciteConfig??{}}),d}const $="5.2.0-next.89";n.S$||("interactive"===document.readyState?r():document.addEventListener("DOMContentLoaded",r,{once:!0})),queueMicrotask(function(){const t=p();t&&t.version||(l.info(`Using Calcite Components ${$} [Date: 2026-10-07, Revision: 24306af6d]`),Object.defineProperty(t,"version",{value:$,writable:!1}),globalThis.calciteConfig=t)});const _=(0,i.le)({defaultAssetPath:"https://cdn.jsdelivr.net/npm/@esri/calcite-components@5.2.0-next.89/dist/cdn/",hydratedAttribute:"calcite-hydrated"}),f=_.setAssetPath;_.setAssetPath=t=>(A=!0,f.call(_,t));let A=!1;const{customElement:m,getAssetPath:g,setAssetPath:v}=_;s.d(e,["C",0,{rtl:"calcite--rtl",calciteAnimate:"calcite-animate",calciteAnimateInUp:"calcite-animate__in-up",calciteAnimateInDown:"calcite-animate__in-down",calciteAnimateInRight:"calcite-animate__in-right",calciteAnimateInLeft:"calcite-animate__in-left",screenReaderText:"screen-reader-text"},"D",0,{filter:250,nextTick:0,resize:150,reposition:100},"c",0,m,"g",0,g,"l",0,l,"s",0,v])},63242(t,e,s){s.d(e,{Qu:()=>i.s,qu:()=>i.a});var i=s(89301)},16823(t,e,s){s(39043)},39043(t,e,s){s.d(e,{mN:()=>S,AH:()=>a,Ec:()=>b});const i=globalThis,n=i.ShadowRoot&&(void 0===i.ShadyCSS||i.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),o=new WeakMap;class h{constructor(t,e,s){if(this._$cssResult$=!0,s!==r)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(n&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=o.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&o.set(e,t))}return t}toString(){return this.cssText}}const a=(t,...e)=>{const s=1===t.length?t[0]:e.reduce((e,s,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[i+1],t[0]);return new h(s,t,r)},c=(t,e)=>{if(n)t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const s of e){const e=document.createElement("style"),n=i.litNonce;void 0!==n&&e.setAttribute("nonce",n),e.textContent=s.cssText,t.appendChild(e)}},l=n?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return(t=>new h("string"==typeof t?t:t+"",void 0,r))(e)})(t):t,{is:d,defineProperty:u,getOwnPropertyDescriptor:p,getOwnPropertyNames:$,getOwnPropertySymbols:_,getPrototypeOf:f}=Object,A=globalThis,m=A.trustedTypes,g=m?m.emptyScript:"",v=A.reactiveElementPolyfillSupport,y=(t,e)=>t,E={toAttribute(t,e){switch(e){case Boolean:t=t?g:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},b=(t,e)=>!d(t,e),w={attribute:!0,type:String,converter:E,reflect:!1,useDefault:!1,hasChanged:b};Symbol.metadata??=Symbol("metadata"),A.litPropertyMetadata??=new WeakMap;class S extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=w){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);void 0!==i&&u(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:n}=p(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:i,set(e){const r=i?.call(this);n?.call(this,e),this.requestUpdate(t,r,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??w}static _$Ei(){if(this.hasOwnProperty(y("elementProperties")))return;const t=f(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(y("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(y("properties"))){const t=this.properties,e=[...$(t),..._(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const s=this._$Eu(t,e);void 0!==s&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(l(t))}else void 0!==t&&e.push(l(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return c(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(void 0!==i&&!0===s.reflect){const n=(void 0!==s.converter?.toAttribute?s.converter:E).toAttribute(e,s.type);this._$Em=t,null==n?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(t,e){const s=this.constructor,i=s._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=s.getPropertyOptions(i),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:E;this._$Em=i;const r=n.fromAttribute(e,t.type);this[i]=r??this._$Ej?.get(i)??r,this._$Em=null}}requestUpdate(t,e,s,i=!1,n){if(void 0!==t){const r=this.constructor;if(!1===i&&(n=this[t]),s??=r.getPropertyOptions(t),!((s.hasChanged??b)(n,e)||s.useDefault&&s.reflect&&n===this._$Ej?.get(t)&&!this.hasAttribute(r._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:n},r){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??e??this[t]),!0!==n||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===i&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,i=this[e];!0!==t||this._$AL.has(e)||void 0===i||this.C(e,void 0,s,i)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}}S.elementStyles=[],S.shadowRootOptions={mode:"open"},S[y("elementProperties")]=new Map,S[y("finalized")]=new Map,v?.({ReactiveElement:S}),(A.reactiveElementVersions??=[]).push("2.1.2")},58887(t,e,s){var i=s(7261);const{I:n}=i.ge,r={};s.d(e,["Rt",0,t=>void 0===t.strings,"mY",0,(t,e=r)=>t._$AH=e])},66567(t,e,s){s.d(e,{WL:()=>i});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}s.d(e,["OA",0,{ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},"u$",0,t=>(...e)=>({_$litDirective$:t,values:e})])},7261(t,e,s){const i=globalThis,n=t=>t,r=i.trustedTypes,o=r?r.createPolicy("lit-html",{createHTML:t=>t}):void 0,h="$lit$",a=`lit$${Math.random().toFixed(9).slice(2)}$`,c="?"+a,l=`<${c}>`,d=document,u=()=>d.createComment(""),p=t=>null===t||"object"!=typeof t&&"function"!=typeof t,$=Array.isArray,_=t=>$(t)||"function"==typeof t?.[Symbol.iterator],f="[ \t\n\f\r]",A=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,m=/-->/g,g=/>/g,v=RegExp(`>|${f}(?:([^\\s"'>=/]+)(${f}*=${f}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),y=/'/g,E=/"/g,b=/^(?:script|style|textarea|title)$/i,w=t=>(e,...s)=>({_$litType$:t,strings:e,values:s}),S=w(1),C=w(2),T=w(3),O=Symbol.for("lit-noChange"),P=Symbol.for("lit-nothing"),U=new WeakMap,x=d.createTreeWalker(d,129);function R(t,e){if(!$(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==o?o.createHTML(e):e}const M=(t,e)=>{const s=t.length-1,i=[];let n,r=2===e?"<svg>":3===e?"<math>":"",o=A;for(let e=0;e<s;e++){const s=t[e];let c,d,u=-1,p=0;for(;p<s.length&&(o.lastIndex=p,d=o.exec(s),null!==d);)p=o.lastIndex,o===A?"!--"===d[1]?o=m:void 0!==d[1]?o=g:void 0!==d[2]?(b.test(d[2])&&(n=RegExp("</"+d[2],"g")),o=v):void 0!==d[3]&&(o=v):o===v?">"===d[0]?(o=n??A,u=-1):void 0===d[1]?u=-2:(u=o.lastIndex-d[2].length,c=d[1],o=void 0===d[3]?v:'"'===d[3]?E:y):o===E||o===y?o=v:o===m||o===g?o=A:(o=v,n=void 0);const $=o===v&&t[e+1].startsWith("/>")?" ":"";r+=o===A?s+l:u>=0?(i.push(c),s.slice(0,u)+h+s.slice(u)+a+$):s+a+(-2===u?e:$)}return[R(t,r+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),i]};class N{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let n=0,o=0;const l=t.length-1,d=this.parts,[p,$]=M(t,e);if(this.el=N.createElement(p,s),x.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=x.nextNode())&&d.length<l;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(h)){const e=$[o++],s=i.getAttribute(t).split(a),r=/([.?@])?(.*)/.exec(e);d.push({type:1,index:n,name:r[2],strings:s,ctor:"."===r[1]?D:"?"===r[1]?j:"@"===r[1]?B:I}),i.removeAttribute(t)}else t.startsWith(a)&&(d.push({type:6,index:n}),i.removeAttribute(t));if(b.test(i.tagName)){const t=i.textContent.split(a),e=t.length-1;if(e>0){i.textContent=r?r.emptyScript:"";for(let s=0;s<e;s++)i.append(t[s],u()),x.nextNode(),d.push({type:2,index:++n});i.append(t[e],u())}}}else if(8===i.nodeType)if(i.data===c)d.push({type:2,index:n});else{let t=-1;for(;-1!==(t=i.data.indexOf(a,t+1));)d.push({type:7,index:n}),t+=a.length-1}n++}}static createElement(t,e){const s=d.createElement("template");return s.innerHTML=t,s}}function H(t,e,s=t,i){if(e===O)return e;let n=void 0!==i?s._$Co?.[i]:s._$Cl;const r=p(e)?void 0:e._$litDirective$;return n?.constructor!==r&&(n?._$AO?.(!1),void 0===r?n=void 0:(n=new r(t),n._$AT(t,s,i)),void 0!==i?(s._$Co??=[])[i]=n:s._$Cl=n),void 0!==n&&(e=H(t,n._$AS(t,e.values),n,i)),e}class k{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??d).importNode(e,!0);x.currentNode=i;let n=x.nextNode(),r=0,o=0,h=s[0];for(;void 0!==h;){if(r===h.index){let e;2===h.type?e=new L(n,n.nextSibling,this,t):1===h.type?e=new h.ctor(n,h.name,h.strings,this,t):6===h.type&&(e=new W(n,this,t)),this._$AV.push(e),h=s[++o]}r!==h?.index&&(n=x.nextNode(),r++)}return x.currentNode=d,i}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class L{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=P,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=H(this,t,e),p(t)?t===P||null==t||""===t?(this._$AH!==P&&this._$AR(),this._$AH=P):t!==this._$AH&&t!==O&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):_(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==P&&p(this._$AH)?this._$AA.nextSibling.data=t:this.T(d.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,i="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N.createElement(R(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new k(i,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=U.get(t.strings);return void 0===e&&U.set(t.strings,e=new N(t)),e}k(t){$(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const n of t)i===e.length?e.push(s=new L(this.O(u()),this.O(u()),this,this.options)):s=e[i],s._$AI(n),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=n(t).nextSibling;n(t).remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class I{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,n){this.type=1,this._$AH=P,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=P}_$AI(t,e=this,s,i){const n=this.strings;let r=!1;if(void 0===n)t=H(this,t,e,0),r=!p(t)||t!==this._$AH&&t!==O,r&&(this._$AH=t);else{const i=t;let o,h;for(t=n[0],o=0;o<n.length-1;o++)h=H(this,i[s+o],e,o),h===O&&(h=this._$AH[o]),r||=!p(h)||h!==this._$AH[o],h===P?t=P:t!==P&&(t+=(h??"")+n[o+1]),this._$AH[o]=h}r&&!i&&this.j(t)}j(t){t===P?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class D extends I{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===P?void 0:t}}class j extends I{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==P)}}class B extends I{constructor(t,e,s,i,n){super(t,e,s,i,n),this.type=5}_$AI(t,e=this){if((t=H(this,t,e,0)??P)===O)return;const s=this._$AH,i=t===P&&s!==P||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==P&&(s===P||i);i&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class W{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){H(this,t)}}const z={M:h,P:a,A:c,C:1,L:M,R:k,D:_,V:H,I:L,H:I,N:j,U:B,B:D,F:W},G=i.litHtmlPolyfillSupport;G?.(N,L),(i.litHtmlVersions??=[]).push("3.3.2"),s.d(e,["JW",0,C,"XX",0,(t,e,s)=>{const i=s?.renderBefore??e;let n=i._$litPart$;if(void 0===n){const t=s?.renderBefore??null;i._$litPart$=n=new L(e.insertBefore(u(),t),t,void 0,s??{})}return n._$AI(t),n},"c0",0,O,"ej",0,T,"ge",0,z,"qy",0,S,"s6",0,P])},66047(t,e,s){s(16823)},25856(t,e,s){s(16823)},10845(t,e,s){s.d(e,{H:()=>r});var i=s(7261),n=s(66567);const r=(0,n.u$)(class extends n.WL{constructor(t){if(super(t),t.type!==n.OA.ATTRIBUTE||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(t=>""!==t)));for(const t in e)e[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(e)}const s=t.element.classList;for(const t of this.st)t in e||(s.remove(t),this.st.delete(t));for(const t in e){const i=!!e[t];i===this.st.has(t)||this.nt?.has(t)||(i?(s.add(t),this.st.add(t)):(s.remove(t),this.st.delete(t)))}return i.c0}})},98171(t,e,s){s.d(e,{V:()=>o});var i=s(7261),n=s(66567),r=s(58887);const o=(0,n.u$)(class extends n.WL{constructor(t){if(super(t),t.type!==n.OA.PROPERTY&&t.type!==n.OA.ATTRIBUTE&&t.type!==n.OA.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!(0,r.Rt)(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===i.c0||e===i.s6)return e;const s=t.element,o=t.name;if(t.type===n.OA.PROPERTY){if(e===s[o])return i.c0}else if(t.type===n.OA.BOOLEAN_ATTRIBUTE){if(!!e===s.hasAttribute(o))return i.c0}else if(t.type===n.OA.ATTRIBUTE&&s.getAttribute(o)===e+"")return i.c0;return(0,r.mY)(t),e}})},83435(t,e,s){s.d(e,{_:()=>p,K:()=>f});var i=s(7261),n=s(58887),r=s(66567);const o=(t,e)=>{const s=t._$AN;if(void 0===s)return!1;for(const t of s)t._$AO?.(e,!1),o(t,e);return!0},h=t=>{let e,s;do{if(void 0===(e=t._$AM))break;s=e._$AN,s.delete(t),t=e}while(0===s?.size)},a=t=>{for(let e;e=t._$AM;t=e){let s=e._$AN;if(void 0===s)e._$AN=s=new Set;else if(s.has(t))break;s.add(t),d(e)}};function c(t){void 0!==this._$AN?(h(this),this._$AM=t,a(this)):this._$AM=t}function l(t,e=!1,s=0){const i=this._$AH,n=this._$AN;if(void 0!==n&&0!==n.size)if(e)if(Array.isArray(i))for(let t=s;t<i.length;t++)o(i[t],!1),h(i[t]);else null!=i&&(o(i,!1),h(i));else o(this,t)}const d=t=>{t.type==r.OA.CHILD&&(t._$AP??=l,t._$AQ??=c)};class u extends r.WL{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),a(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(o(this,t),h(this))}setValue(t){if((0,n.Rt)(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}const p=()=>new $;class ${}const _=new WeakMap,f=(0,r.u$)(class extends u{render(t){return i.s6}update(t,[e]){const s=e!==this.G;return s&&void 0!==this.G&&this.rt(void 0),(s||this.lt!==this.ct)&&(this.G=e,this.ht=t.options?.host,this.rt(this.ct=t.element)),i.s6}rt(t){if(this.isConnected||(t=void 0),"function"==typeof this.G){const e=this.ht??globalThis;let s=_.get(e);void 0===s&&(s=new WeakMap,_.set(e,s)),void 0!==s.get(this.G)&&this.G.call(this.ht,void 0),s.set(this.G,t),void 0!==t&&this.G.call(this.ht,t)}else this.G.value=t}get lt(){return"function"==typeof this.G?_.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}})},84(t,e,s){s.d(e,{W:()=>h});var i=s(7261),n=s(66567);const r="important",o=" !"+r,h=(0,n.u$)(class extends n.WL{constructor(t){if(super(t),t.type!==n.OA.ATTRIBUTE||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,s)=>{const i=t[s];return null==i?e:e+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(t,[e]){const{style:s}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(const t of this.ft)null==e[t]&&(this.ft.delete(t),t.includes("-")?s.removeProperty(t):s[t]=null);for(const t in e){const i=e[t];if(null!=i){this.ft.add(t);const e="string"==typeof i&&i.endsWith(o);t.includes("-")||e?s.setProperty(t,e?i.slice(0,-11):i,e?r:""):s[t]=i}}return i.c0}})},58933(t,e,s){s.d(e,{WF:()=>o,AH:()=>i.AH,qy:()=>n.qy,S$:()=>!1,Ec:()=>i.Ec,s6:()=>n.s6,JW:()=>n.JW});var i=s(39043),n=s(7261);const r=globalThis;class o extends i.mN{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=(0,n.XX)(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return n.c0}}o._$litElement$=!0,o.finalized=!0,r.litElementHydrateSupport?.({LitElement:o});const h=r.litElementPolyfillSupport;h?.({LitElement:o}),(r.litElementVersions??=[]).push("4.2.2")}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1948,4809,7992],{32198(e,t,r){function n(e,t,r,n){var s,o=arguments.length,i=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,r,i):s(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}function s(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,s;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(s=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");s&&(n=function(){try{s.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}r.d(t,{Cg:()=>n,hk:()=>i,mS:()=>s}),Object.create,Object.create;var o="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function i(e){function t(t){e.error=e.hasError?new o(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,n=0;return function s(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(s);if(r.dispose){var o=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(o).then(s,function(e){return t(e),s()})}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}},1123(e,t,r){r.r(t),r.d(t,{invokeGeometryOp:()=>i});var n=r(83299);function s(e,t){let r;return{loaded:!1,load:()=>r??=t().then(t=>{o[e]={loaded:!0,execute:t}})}}const o={disjoint:s("disjoint",async()=>{let{OperatorDisjoint:e}=await r.e(7029).then(()=>r(97029)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),intersects:s("intersects",async()=>{let{OperatorIntersects:e}=await r.e(31).then(()=>r(70031)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),touches:s("touches",async()=>{let{OperatorTouches:e}=await r.e(6810).then(()=>r(46810)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),crosses:s("crosses",async()=>{let{OperatorCrosses:e}=await r.e(9821).then(()=>r(29821)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),within:s("within",async()=>{let{OperatorWithin:e}=await r.e(2802).then(()=>r(22802)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),contains:s("contains",async()=>{let{OperatorContains:e}=await r.e(892).then(()=>r(70892)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),overlaps:s("overlaps",async()=>{let{OperatorOverlaps:e}=await r.e(5181).then(()=>r(85181)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),equals:s("equals",async()=>{let{OperatorEquals:e}=await r.e(468).then(()=>r(70468)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),relate:s("relate",async()=>{let{OperatorRelate:e}=await r.e(9672).then(()=>r(39672)),t=new e;return(e,r,s,o)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),o,null)}),intersection:s("intersection",async()=>{let{execute:e}=await r.e(1327).then(()=>r(33708));return(t,r,s)=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s)),null)}),union:s("union",async()=>{let{executeMany:e}=await r.e(8298).then(()=>r(28298));return(t,r)=>(0,n.toGeometry)(e(t.map(e=>(0,n.fromGeometryToGXGeometry)(e)),(0,n.fromSpatialReference)(r)),null)}),difference:s("difference",async()=>{let{execute:e}=await r.e(9074).then(()=>r(49074));return(t,r,s)=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s)),null)}),symmetricDifference:s("symmetricDifference",async()=>{let{execute:e}=await r.e(994).then(()=>r(68613));return(t,r,s)=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s)),null)}),clip:s("clip",async()=>{let{execute:e}=await r.e(6027).then(()=>r(96027));return(t,r,s)=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromGeometryToGXGeometry)(r).asEnvelope2D(),(0,n.fromSpatialReference)(s)),null)}),cut:s("cut",async()=>{let{execute:e}=await r.e(756).then(()=>r(90756));return(t,r,s)=>e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s)).map(e=>(0,n.toGeometry)(e,null)).filter(e=>null!=e)}),area:s("area",async()=>{let{convertFromSpatialReferenceUnit:e,toAreaUnit:t}=await r.e(547).then(()=>r(40547));return(r,s,o)=>{let i=(0,n.fromGeometryToGXGeometry)(r).calculateArea2D();return e(s,t(o),i)}}),geodeticArea:s("geodeticArea",async()=>{let{load:e,execute:t}=await r.e(6742).then(()=>r(86742)),{convert:s,squareMeters:o,toAreaUnit:i}=await r.e(547).then(()=>r(40547));return await e(),(e,r,a,l)=>{let u=t((0,n.fromGeometryToGXGeometry)(e),(0,n.fromSpatialReference)(r),l);return s(o,i(a),u)}}),length:s("length",async()=>{let{convertFromSpatialReferenceUnit:e,toLengthUnit:t}=await r.e(547).then(()=>r(40547));return(r,s,o)=>{let i=(0,n.fromGeometryToGXGeometry)(r).calculateLength2D();return e(s,t(o),i)}}),geodeticLength:s("geodeticLength",async()=>{let{load:e,execute:t}=await r.e(5223).then(()=>r(35223)),{convert:s,meters:o,toLengthUnit:i}=await r.e(547).then(()=>r(40547));return await e(),(e,r,a,l)=>{let u=t((0,n.fromGeometryToGXGeometry)(e),(0,n.fromSpatialReference)(r),l);return s(o,i(a),u)}}),distance:s("distance",async()=>{let{OperatorDistance:e}=await r.e(2994).then(()=>r(22994)),{convertFromSpatialReferenceUnit:t,toLengthUnit:s}=await r.e(547).then(()=>r(40547)),o=new e;return(e,r,i,a)=>{let l=o.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),null);return t(i,s(a),l)}}),geodeticDistance:s("geodeticDistance",async()=>{let{load:e,execute:t}=await r.e(9716).then(()=>r(29716)),{convert:s,meters:o,toLengthUnit:i}=await r.e(547).then(()=>r(40547));return await e(),(e,r,a,l,u)=>{let m=t((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(a),u);return s(o,i(l),m)}}),densify:s("densify",async()=>{let{execute:e}=await r.e(1735).then(()=>r(91735)),{convertToSpatialReferenceUnit:t,toLengthUnit:s}=await r.e(547).then(()=>r(40547));return(r,o,i,a)=>(i=t(s(a),o,i),(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(r),i,0,0),null))}),geodeticDensify:s("geodeticDensify",async()=>{let{load:e,execute:t}=await r.e(7085).then(()=>r(77085)),{convert:s,meters:o,toLengthUnit:i}=await r.e(547).then(()=>r(40547));return await e(),(e,r,a,l,u)=>(a=s(i(l),o,a),(0,n.toGeometry)(t((0,n.fromGeometryToGXGeometry)(e),a,(0,n.fromSpatialReference)(r),u),null))}),generalize:s("generalize",async()=>{let{execute:e}=await r.e(787).then(()=>r(70787)),{convertToSpatialReferenceUnit:t,toLengthUnit:s}=await r.e(547).then(()=>r(40547));return(r,o,i,a,l)=>(i=t(s(a),o,i),(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(r),i,l),null))}),buffer:s("buffer",async()=>{let{execute:e}=await Promise.all([r.e(6870),r.e(5227)]).then(()=>r(15227)),{convertToSpatialReferenceUnit:t,toLengthUnit:s}=await r.e(547).then(()=>r(40547));return(r,o,i,a)=>(i=t(s(a),o,i),(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(o),i),null))}),geodesicBuffer:s("geodesicBuffer",async()=>{let{load:e,execute:t}=await r.e(4988).then(()=>r(24988)),{convert:s,meters:o,toLengthUnit:i}=await r.e(547).then(()=>r(40547));return await e(),(e,r,a,l,u)=>(a=s(i(l),o,a),(0,n.toGeometry)(t((0,n.fromGeometryToGXGeometry)(e),(0,n.fromSpatialReference)(r),u,a,NaN),null))}),offset:s("offset",async()=>{let{execute:e}=await Promise.all([r.e(6870),r.e(6070)]).then(()=>r(66070)),{convertToSpatialReferenceUnit:t,toLengthUnit:s}=await r.e(547).then(()=>r(40547));return(r,o,i,a,l,u,m)=>(i=t(s(a),o,i),(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(o),i,l,u,m),null))}),rotate:s("rotate",async()=>{let{executeRotate:e}=await r.e(4791).then(()=>r(64791));return(t,r,s,o)=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t),r,s,o),null)}),centroid:s("centroid",async()=>{let{OperatorCentroid2D:e}=await r.e(9447).then(()=>r(9447)),t=new e;return e=>{let r=t.execute((0,n.fromGeometryToGXGeometry)(e),null);return r.isNAN()?null:{x:r.x,y:r.y}}}),labelPoint:s("labelPoint",async()=>{let{execute:e}=await r.e(4945).then(()=>r(54945));return t=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t)),null)}),multiPartToSinglePart:s("multiPartToSinglePart",async()=>{let{executeMany:e}=await r.e(3193).then(()=>r(33193));return(t,r)=>e([(0,n.fromGeometryToGXGeometry)(t)],(0,n.fromSpatialReference)(r)).map(e=>(0,n.toGeometry)(e,null)).filter(e=>null!=e)}),isSelfIntersecting:s("isSelfIntersecting",async()=>{let{executeIsSelfIntersecting:e}=await r.e(3755).then(()=>r(83755));return(t,r)=>e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromSpatialReference)(r))}),isSimple:s("isSimple",async()=>{let{isSimpleAsFeature:e}=await r.e(1150).then(()=>r(81150));return(t,r)=>e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromSpatialReference)(r),!1)}),simplify:s("simplify",async()=>{let{execute:e}=await r.e(1150).then(()=>r(81150));return(t,r)=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromSpatialReference)(r),!1),null)}),convexHull:s("convexHull",async()=>{let{execute:e}=await r.e(1577).then(()=>r(91577));return t=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t)),null)}),getNearestCoordinate:s("getNearestCoordinate",async()=>{let{executeNearestCoordinate:e}=await r.e(6556).then(()=>r(6556));return(t,r)=>{let s=e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromGeometryToGXGeometry)(r));return null==s?null:{...s,coordinate:(0,n.toGeometry)(s.coordinate,null)}}}),getNearestVertex:s("getNearestVertex",async()=>{let{executeNearestVertex:e}=await r.e(4064).then(()=>r(64064));return(t,r)=>{let s=e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromGeometryToGXGeometry)(r));return null==s?null:{...s,coordinate:(0,n.toGeometry)(s.coordinate,null)}}})};function i(e,t){let r=o[e];return r.loaded?r.execute.apply(void 0,t):r.load().then(()=>i(e,t))}},61691(e,t,r){r.d(t,{G:()=>n});class n{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}},76061(e,t,r){r.d(t,{S:()=>s});var n=r(61691);class s extends n.G{m_aGeoms;m_iGeom=-1;constructor(e){super(),this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){let e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},34304(e,t,r){r.d(t,{DF:()=>l,FD:()=>s,ct:()=>u});let n=1e-6;function s(){return n}const o=Math.random,i=Math.PI/180,a=180/Math.PI;function l(e){return e*i}function u(e){return e*a}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:o,equals:function(e,t){return Math.abs(e-t)<=n*Math.max(1,Math.abs(e),Math.abs(t))},getEpsilon:s,setEpsilon:function(e){n=e},toDegree:u,toRadian:l},Symbol.toStringTag,{value:"Module"})),r.d(t,["Ov",0,o])},69397(e,t,r){r.d(t,{Qf:()=>a,Qh:()=>o,lM:()=>s});var n=r(34275);function s(e){if(!e)return 0;let t=u;for(let r in e)e.hasOwnProperty(r)&&(t+=i(e[r],!1));return t}function o(e){if(!e)return 0;if("number"==typeof e[0])return a(e);if(Array.isArray(e))return function(e){let t=e.length;if(0===t||"number"==typeof e[0])return l(e,8);let r=m;for(let n=0;n<t;n++)r+=i(e[n]);return r}(e);let t=u;for(let r in e)e.hasOwnProperty(r)&&(t+=i(e[r]));return t}function i(e,t=!0){switch(typeof e){case"object":return t?o(e):u;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function a(...e){return e.reduce((e,t)=>e+(t?(0,n.iu)(t)?t.byteLength+h:Array.isArray(t)?l(t,16):0:0),0)}function l(e,t){return m+e.length*t}const u=32,m=16,h=145},87992(e,t,r){r.d(t,{JR:()=>T,ME:()=>w,MY:()=>R,NO:()=>v,Nh:()=>M,V2:()=>P,_s:()=>A,e6:()=>F,gh:()=>S,jm:()=>C,tr:()=>I,uX:()=>g});var n=r(32198),s=r(16930),o=r(19419),i=r(60408),a=r(21325),l=r(513),u=r(50954),m=r(79567),h=r(52006),f=r(49663),c=r(46068),y=r(92722);class g{constructor({type:e,spatialReference:t,vertexCount:r,vertexXY:n,vertexZ:s,vertexM:o,partCount:i,partOffsets:a,partFlags:l,segmentFlags:u,segmentIndices:m,segmentParams:h,segmentCountArc:f,segmentCountBezier:c}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=e,this.spatialReference=t,this.vertexCount=r,this.vertexXY=n,this.vertexZ=s,this.vertexM=o,this.partCount=i,this.partOffsets=a,this.partFlags=l,this.segmentFlags=u,this.segmentIndices=m,this.segmentParams=h,this.segmentCountArc=f,this.segmentCountBezier=c}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){let{segmentCount:e,segmentCountArc:t,segmentCountBezier:r}=this;return e&&e-t-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function e(e){return e?64+e.byteLength:0}return e(this.vertexXY)+e(this.vertexZ)+e(this.vertexM)+e(this.partOffsets)+e(this.partFlags)+e(this.segmentFlags)+e(this.segmentIndices)+e(this.segmentParams)}clone(){let{type:e,vertexCount:t,partCount:r,hasZ:n,hasM:s,segmentCountArc:o,segmentCountBezier:i}=this,a=P(e,t,r,n,s,this.hasCurves(),o,i);a.spatialReference=this.spatialReference;let{vertexXY:l,vertexZ:u,vertexM:m}=this;if(a.vertexXY.set(l.subarray(0,2*t),0),a.vertexZ?.set(u.subarray(0,t),0),a.vertexM?.set(m.subarray(0,t),0),this.isMultipart()){let{partOffsets:e,partFlags:t}=this;a.partFlags.set(t.subarray(0,r+1)),a.partOffsets.set(e.subarray(0,r+1))}if(this.hasCurves()){let{segmentFlags:e,segmentIndices:r,segmentParams:n,segmentParamCount:s}=this;a.segmentFlags.set(e.subarray(0,t),0),a.segmentIndices.set(r.subarray(0,t),0),a.segmentParams.set(n.subarray(0,s),0)}return a}equals(e){return this.equalsWithinTolerance(e,0)}equalsWithinTolerance(e,t){if(null==e)return!1;if(this===e)return!0;if(!(0,a.aI)(this.spatialReference,e.spatialReference)||this.vertexCount!==e.vertexCount||this.partCount!==e.partCount||this.hasZ!==e.hasZ||this.hasM!==e.hasM||this.hasCurves()!==e.hasCurves()||this.segmentCountArc!==e.segmentCountArc||this.segmentCountBezier!==e.segmentCountBezier)return!1;let r=0===t?(e,t)=>e!==t||isNaN(e)!==isNaN(t):(e,r)=>Math.abs(e-r)>t||isNaN(e)!==isNaN(r);for(let t=0;t<this.vertexCount;++t)if(r(this.vertexXY[2*t],e.vertexXY[2*t])||r(this.vertexXY[2*t+1],e.vertexXY[2*t+1]))return!1;if(this.hasZ)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexZ[t],e.vertexZ[t]))return!1;if(this.hasM)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexM[t],e.vertexM[t]))return!1;for(let t=0;t<this.partCount;++t)if(this.partFlags[t]!==e.partFlags[t]||this.partOffsets[t]!==e.partOffsets[t])return!1;if(this.hasCurves()){for(let t=0;t<this.vertexCount;++t)if(this.segmentFlags[t]!==e.segmentFlags[t]||this.segmentIndices[t]!==e.segmentIndices[t])return!1;for(let t=0;t<this.segmentParamCount;++t)if(r(this.segmentParams[t],e.segmentParams[t]))return!1}return!0}get parts(){return this.isMultipart()?new p(this):[][Symbol.iterator]()}}class p{constructor(e){this.geometry=e,this.value=new d(e)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class d{constructor(e){this.geometry=e,this.index=-1,this._readVertex=O(e),this._segments=new x(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){let e=this.geometry.partOffsets;return e[this.index+1]-e[this.index]}}class x{constructor(e){this._part=e,this._partStart=0,this._partEnd=0,this.value=new G(e.geometry)}get _partIsClosed(){return!!(1&this._part.geometry.partFlags?.[this._part.index])}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;let e=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=e&&this._partIsClosed?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){let{index:e}=this._part,t=this._part.geometry.partOffsets;this._partStart=t[e],this._partEnd=t[e+1]-(this._partIsClosed?1:2),this.value.indexOfStartVertex=this._partStart-1}}class G{constructor(e){this.geometry=e,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=O(e)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){let e=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===e)return this.end;let t=this.geometry.segmentParams,r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===e){let e=t[r++],n=t[r++],s=t[r++],o=t[r++];return{b:[this.end,[e,n],[s,o]]}}let n=t[r++],s=t[r++],o=t[r++],i=t[r++],a=t[r++],l=t[r++];r++,r++;let u=t[r++],m=t[r++];if(!(4&n)&&1===o)return{c:[this.end,[u,m]]};let h=2&n?0:1,f=1&n?0:1;return{a:[this.end,[a,l],h,f,i,s,o]}}}function v(e,t){let r={stack:[],error:void 0,hasError:!1};try{return t??=(0,o.Ie)(),(0,n.mS)(r,new X(e,["vertexZ","vertexM","spatialReference"]),!1),(0,o.bx)(t,function(e){let t,{vertexCount:r,vertexXY:s,vertexZ:i,vertexM:a}=e,l=E(e);if(e.hasCurves()){let r={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(r,new X(e,["vertexZ","vertexM"]),!1);let s=(0,o.Ie)();for(let t of e.parts){let e=t.startVertex;for(let{curve:r}of t.segments)(0,m.e)(s,e,r),e=(0,h.yP)(r)}let[i,a,u,f]=s;t={xmin:i,ymin:a,xmax:u,ymax:f,spatialReference:l}}catch(e){r.error=e,r.hasError=!0}finally{(0,n.hk)(r)}}else{let e,n,o,i;e=n=1/0,o=i=-1/0;for(let t=0;t<r;++t){let r=s[2*t],a=s[2*t+1];e=Math.min(e,r),o=Math.max(o,r),n=Math.min(n,a),i=Math.max(i,a)}t={xmin:e,ymin:n,xmax:o,ymax:i,spatialReference:l}}if(i){let e=1/0,r=-1/0;for(let t of i)e=Math.min(e,t),r=Math.max(r,t);t.zmin=e,t.zmax=r}if(a){let e=1/0,r=-1/0;for(let t of a)e=Math.min(e,t),r=Math.max(r,t);t.mmin=e,t.mmax=r}return t}(e)),t}catch(e){r.error=e,r.hasError=!0}finally{(0,n.hk)(r)}}function w(e){let t,r,n;if((0,i.fT)(e)){n="point";let{x:s,y:o,z:i,m:a}=e,l=[s,o];null!=i&&l.push(i),null!=a&&l.push(a),r=[[l]],t=1}else(0,i.U9)(e)?(n="multipoint",r=[e.points],t=e.points.length):(0,i.Rg)(e)?(n="polyline",r=e.curvePaths??e.paths,t=r.reduce((e,t)=>e+t.length,0)):(n="polygon",r=e.curveRings??e.rings,t=r.reduce((e,t)=>(0===t.length||(e+=t.length,b(t[0],(0,h.yP)(t.at(-1)))&&--e),e),0));let s=P(n,t,n.includes("point")?0:r.length,(0,i.Pv)(e),(0,i.W0)(e),(0,h.Ed)(e)),{hasZ:o,hasM:a,vertexXY:l,vertexZ:u,vertexM:m}=s;function f(e){l[2*y]=e[0],l[2*y+1]=e[1],o&&(u[y]=e[2]),a&&(m[y]=e[c]),++y}s.spatialReference=e.spatialReference??void 0;let c=s.hasZ?3:2,y=0;if(!s.isMultipart()){if(!o&&!a){for(let[e,t]of r[0])l[2*y]=e,l[2*y+1]=t,++y;return s}for(let e of r[0])f(e);return s}let g="polygon"===n,{partOffsets:p}=s,d=0;if(!(0,h.Ed)(e)){for(let e of r){if(p[d++]=y,0===e.length)continue;let t=e.length;if(g&&b(e[0],e.at(-1))&&--t,o||a)for(let r=0;r<t;++r)f(e[r]);else for(let r=0;r<t;++r){let[t,n]=e[r];l[2*y]=t,l[2*y+1]=n,++y}}return p[d]=y,s}function x(e){let t=G+e;if(t<=(s.segmentParams?.length??0))return;let r=t*V;r=20*Math.ceil(r/20);let n=s.segmentParams;s.segmentParams=new Float64Array(r),null!=n&&s.segmentParams.set(n)}let G=0;for(let e of r){if(s.partOffsets[d++]=y,0===e.length)continue;let t=e[0],r=t;for(let t=1;t<e.length;++t){let n=e[t];f(r);let o=y-1;(0,h.wY)(n)?(x(10),++s.segmentCountArc,G=A(r,n,s,o,G),r=n.a[0]):(0,h.DA)(n)?(x(10),++s.segmentCountArc,G=_(r,n,s,o,G),r=n.a[0]):(0,h.aO)(n)?(x(10),++s.segmentCountArc,G=F(r,n,s,o,G),r=n.c[0]):(0,h.n1)(n)?(x(4),++s.segmentCountBezier,G=I(0,n,s,o,G),r=n.b[0]):r=n}g&&b(t,r)||f(r)}return s.partOffsets[d]=y,s}function S(e){let t=O(e),{vertexCount:r,partCount:n,hasZ:s,hasM:o}=e,i=E(e),a=0;if(!e.isMultipart()){if("point"===e.type){let[t,r]=e.vertexXY;return{x:t,y:r,z:e.vertexZ?.[0],m:e.vertexM?.[0],spatialReference:i}}let n=[];for(;a<r;)n.push(t(a++));return{points:n,spatialReference:i,hasZ:s,hasM:o}}if(!e.hasCurves()){let r=[];for(let s=0;s<n;++s){let n=!!(1&e.partFlags[s]),o=e.partOffsets[s+1],i=[];for(;a<o;)i.push(t(a++));n&&i.length>0&&i.push([...i[0]]),r.push(i)}return"polygon"===e.type?{rings:r,hasZ:s,hasM:o,spatialReference:i}:{paths:r,hasZ:s,hasM:o,spatialReference:i}}let l=[];for(let{segments:t,startVertex:r}of e.parts){let e=[r];for(let{curve:r}of t)e.push(r);l.push(e)}return"polygon"===e.type?{rings:[],curveRings:l,hasZ:s,hasM:o,spatialReference:i}:{paths:[],curvePaths:l,hasZ:s,hasM:o,spatialReference:i}}function M(e,{lengths:t,coords:r,hasZ:n,hasM:s},o){let i=e.includes("point")?0:t.length,a="polygon"===e,l="point"===e?1:t.reduce((e,t)=>e+t,0)-(a?i:0);n??=!1,s??=!1;let u=P(e,l,i,n,s,!1,0,0);if(u.spatialReference=o??void 0,!u.isMultipart()){for(let e=0,t=0;e<l;++e)u.vertexXY[2*e]=r[t++],u.vertexXY[2*e+1]=r[t++],n&&(u.vertexZ[e]=r[t++]),s&&(u.vertexM[e]=r[t++]);return u}let m=2+Number(n)+Number(s),h=0,f=0;u.partOffsets[0]=0;for(let e of t){let t=u.partOffsets[f],o=t+e-Number(a);u.partOffsets[++f]=o;for(let e=t;e<o;++e)u.vertexXY[2*e]=r[h++],u.vertexXY[2*e+1]=r[h++],n&&(u.vertexZ[e]=r[h++]),s&&(u.vertexM[e]=r[h++]);a&&(h+=m)}return u}function T({type:e,vertexCount:t,vertexXY:r,vertexZ:n,vertexM:s,partCount:o,partOffsets:i,partFlags:a,hasZ:l,hasM:u}){let m=new y.A([],[],l,u);o=Math.max(o,1);let h=0;for(let e=0;e<o;++e){let o=i?.[e+1]??t,f=m.coords.length;for(let e=h;e<o;++e)m.coords.push(r[2*e],r[2*e+1]),l&&m.coords.push(n[e]),u&&m.coords.push(s[e]);if(a&&1&a[e]){let e=h;m.coords.push(r[2*e],r[2*e+1]),l&&m.coords.push(n[e]),u&&m.coords.push(s[e])}m.lengths.push((m.coords.length-f)/m.stride),h=o}return"point"===e&&(m.lengths.length=0),m}function C(...e){let t=new Set;for(let r of e){if(!r)continue;let e=[r.vertexXY,r.vertexZ,r.vertexM,r.partOffsets,r.partFlags,r.segmentFlags,r.segmentIndices,r.segmentParams];for(let r of e){let e=r?.buffer;e&&t.add(e)}}return Array.from(t)}function R(e,t){return"getSpatialReference"in e&&(t=function(e){if(null==e)return;let t=e.getText()||void 0,r=e.isCustomWkid()?0:e.getOldID();if(r<=0)return{wkt:t};let n=e.getLatestID();(n<=0||n===r)&&(n=void 0);let s=e.getVCS();if(null==s)return{wkid:r,latestWkid:n,wkt:t};let o=s.isCustomWkid()?0:s.getOldID();if(o<=0)return{wkt:t};let i=e.getLatestVerticalID();return(i<=0||i===o)&&(i=void 0),{wkid:r,wkt:t,latestWkid:n,vcsWkid:o,latestVcsWkid:i}}(e.getSpatialReference()),e=e.getGeometry()),new g({...e.toFlatGeometry(),spatialReference:t})}class X{constructor(e,t){this.target=e,this.keys=t,this.oldValues=t.map(t=>e[t]);for(let r of t)e[r]=void 0}[Symbol.dispose](){this.keys.map((e,t)=>{this.target[e]=this.oldValues[t]})}}function E({spatialReference:e}){return e instanceof s.A?e.toJSON():e}function O({vertexXY:e,vertexZ:t,vertexM:r}){return t?r?n=>[e[2*n],e[2*n+1],t[n],r[n]]:r=>[e[2*r],e[2*r+1],t[r]]:r?t=>[e[2*t],e[2*t+1],r[t]]:t=>[e[2*t],e[2*t+1]]}function b(e,t){return e.every((e,r)=>e===t[r])}function P(e,t,r,n,s,o,i,a){i??=0,a??=0;let l=new g({type:e,vertexCount:t,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:i,segmentCountBezier:a}),u=2*Float64Array.BYTES_PER_ELEMENT*t;n&&(u+=Float64Array.BYTES_PER_ELEMENT*t),s&&(u+=Float64Array.BYTES_PER_ELEMENT*t),l.isMultipart()&&(u+=(r+1)*Int32Array.BYTES_PER_ELEMENT,u+=(r+1)*Int8Array.BYTES_PER_ELEMENT),o&&(u+=t*Int8Array.BYTES_PER_ELEMENT,u+=t*Int32Array.BYTES_PER_ELEMENT,u+=l.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);let m=new ArrayBuffer(u),h=0;return l.vertexXY=new Float64Array(m,h,2*t),h+=l.vertexXY.byteLength,n&&(l.vertexZ=new Float64Array(m,h,t),h+=l.vertexZ.byteLength),s&&(l.vertexM=new Float64Array(m,h,t),h+=l.vertexM.byteLength),o&&(l.segmentParams=new Float64Array(m,h,l.segmentParamCount),h+=l.segmentParams.byteLength,l.segmentIndices=new Int32Array(m,h,t),l.segmentIndices.fill(Y),h+=l.segmentIndices.byteLength),l.isMultipart()&&(l.partOffsets=new Int32Array(m,h,r+1),h+=l.partOffsets.byteLength,l.partFlags=new Int8Array(m,h,r+1),h+=l.partFlags.byteLength,"polygon"===l.type&&l.partFlags.subarray(0,r).fill(1)),o&&(l.segmentFlags=new Int8Array(m,h,t),l.segmentFlags.fill(1),h+=l.segmentFlags.byteLength),l}function A(e,t,{segmentFlags:r,segmentIndices:n,segmentParams:s},o,i){r[o]=4,n[o]=i;let[a,[l,u],m,h,f,y,g]=t.a,p=4;h||(p|=1),m||(p|=2);let d=(0,c.SW)(e,t),[x,G]=(0,c.Uk)(d,.5);return s[i++]=p,s[i++]=y,s[i++]=g,s[i++]=f,s[i++]=l,s[i++]=u,s[i++]=d.u2-d.u1,s[i++]=d.u1,s[i++]=x,s[i++]=G,i}function _(e,t,{segmentFlags:r,segmentIndices:n,segmentParams:s},o,i){r[o]=4,n[o]=i;let a=(0,f.io)(e,t);return Z(a,4,...(0,l.mq)(a,.5),s,i)}function F(e,t,{segmentFlags:r,segmentIndices:n,segmentParams:s},o,i){return r[o]=4,n[o]=i,Z((0,u.pM)(e,t),0,...t.c[1],s,i)}function Z(e,t,r,n,s,o){let{cx:i,cy:a,thetaStart:l,thetaEnd:u,radius:m}=e;return l>u||(t|=1),Math.abs(u-l)<=Math.PI||(t|=2),s[o++]=t,s[o++]=m,s[o++]=1,s[o++]=0,s[o++]=i,s[o++]=a,s[o++]=u-l,s[o++]=l,s[o++]=r,s[o++]=n,o}function I(e,{b:[t,[r,n],[s,o]]},{segmentFlags:i,segmentIndices:a,segmentParams:l},u,m){return i[u]=2,a[u]=m,l[m++]=r,l[m++]=n,l[m++]=s,l[m++]=o,m}const V=1.61803,Y=-1},52006(e,t,r){function n(e){return"curveRings"in e&&!!e.curveRings?.length||"curvePaths"in e&&!!e.curvePaths?.length}function s(e){return"curveRings"in e?e.curveRings:e.curvePaths}function o(e){return"b"in e}function i(e){return"c"in e}function a(e){return Array.isArray(e)}function l(e){return"a"in e}function u(e){return"a"in e&&4===e.a.length}function m(e){return"a"in e&&7===e.a.length}function h(e,t){return s(e).flat().some(e=>function(e,t){return!(a(e)||(o(e)?t.has("cubic-bezier"):i(e)?t.has("circular-arc"):!u(e)&&!m(e)||t.has("elliptic-arc")))}(e,t))}function f(e){return a(e)?e:o(e)?e.b[0]:i(e)?e.c[0]:e.a[0]}function c(e){if(o(e)){let[t,r,n]=e.b;return{b:[[...t],[...r],[...n]]}}if(i(e)){let[t,r]=e.c;return{c:[[...t],[...r]]}}if(a(e))return[...e];if(u(e)){let[t,r,n,s]=e.a;return{a:[[...t],[...r],n,s]}}if(m(e)){let[t,r,n,s,o,i,a]=e.a;return{a:[[...t],[...r],n,s,o,i,a]}}return e}r.d(t,{DA:()=>u,Ed:()=>n,FD:()=>s,FG:()=>l,V8:()=>h,Xq:()=>a,aO:()=>i,n1:()=>o,tk:()=>c,wY:()=>m,yP:()=>f}),r(4576)},60408(e,t,r){function n(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function s(e){return void 0!==e.points}function o(e){return void 0!==e.x&&void 0!==e.y}function i(e){return void 0!==e.paths||void 0!==e.curvePaths}function a(e){return void 0!==e.rings||void 0!==e.curveRings}function l(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?o(e)?"esriGeometryPoint":i(e)?"esriGeometryPolyline":a(e)?"esriGeometryPolygon":n(e)?"esriGeometryEnvelope":s(e)?"esriGeometryMultipoint":null:null}function m(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function h(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}r.d(t,{$B:()=>u,Bi:()=>a,Pv:()=>m,Rg:()=>i,U9:()=>s,W0:()=>h,ZC:()=>n,fT:()=>o,uW:()=>l})},92722(e,t,r){r.d(t,{A:()=>s});var n=r(69397);class s{constructor(e=[],t=[],r=!1,n=!1){this.lengths=e??[],this.coords=t??[],this.hasZ=r,this.hasM=n}static fromJSON({lengths:e,coords:t,hasZ:r,hasM:n}){return new s(e,t,r||!1,n||!1)}static fromRect([e,t,r,n]){let o=r-e,i=n-t;return new s([5],[e,t,o,0,0,i,-o,0,0,-i])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((e,t)=>e+t,0)}get usedMemory(){return 64+(0,n.Qf)(this.lengths,this.coords)}get stride(){return+!!this.hasZ+2+ +!!this.hasM}area(){if(this.isPoint)return 0;let e=0,t=0;for(let r of this.lengths){if(r<3)continue;let{stride:n}=this,s=this.coords[n*t],o=this.coords[n*t+1];for(let i=1;i<r;i+=1){let r=n*(t+i),a=this.coords[r],l=this.coords[r+1];e+=-.5*(a-s)*(l+o),s=a,o=l}t+=r}return e}forEachVertex(e){let t=0;if(this.isPoint)return e(this.coords[0],this.coords[1]);let{stride:r}=this;for(let n of this.lengths){for(let s=0;s<n;s++){let n=r*(t+s);e(this.coords[n],this.coords[n+1])}t+=n}}deltaDecode(){let e=this.clone(),{coords:t,lengths:r}=e,n=0,{stride:s}=this;for(let e of r){for(let r=1;r<e;r++){let e=s*(n+r);t[e]+=t[e-s],t[e+1]+=t[e+1-s]}n+=e}return e}clone(e){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);let t=Array.from(this.lengths),{stride:r,size:n}=this,o=this.coords.slice(0,n*r);return e?(e.set(o),new s(t,e,this.hasZ,this.hasM)):new s(t,Array.from(o),this.hasZ,this.hasM)}justXY(){let{stride:e,size:t}=this;if(2===e)return this;let r=Array(t*e);for(let t=0,n=0;t<r.length;t+=e)r[n++]=this.coords[t],r[n++]=this.coords[t+1];return new s(this.lengths,r,!1,!1)}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4064],{64064(e,t,r){r.d(t,{executeNearestVertex:()=>u});var n=r(55537),i=r(95213),o=r(88885);function s(e,t,r){if(e.getPointCount()<=0)return"left";let n=e.querySegmentIteratorAtVertex(r),i=n.hasPreviousSegment()?n.previousSegment():n.nextSegment();return function(e,t,r){let n=(t.x-e.x)*(r.y-e.y)-(r.x-e.x)*(t.y-e.y);return n>0?"left":n<0?"right":"straddle"}(i.getStartXY(),i.getEndXY(),t)}const a=new(r(88194).O);function u(e,t){if(e.getGeometryType()===n.G.enumEnvelope){let t=new o.P;t.addEnvelope(e,!1),e=t}let r=t.getXY(),u=a.getNearestVertex(e,r);if(u.isEmpty())return null;switch(e.getGeometryType()){case n.G.enumPoint:return{coordinate:e,distance:u.m_distance,sideOfLine:0===u.m_distance?"straddle":"left"};case n.G.enumMultiPoint:{let t=new i.P;return e.getPointByVal(u.m_vertexIndex,t),{coordinate:t,distance:u.m_distance,sideOfLine:0===u.m_distance?"straddle":"left"}}case n.G.enumPolyline:case n.G.enumPolygon:{let t=new i.P;return e.getPointByVal(u.m_vertexIndex,t),{coordinate:t,distance:u.m_distance,sideOfLine:s(e,r,u.m_vertexIndex)}}default:throw Error(`Unsupported geometry type: ${e.getGeometryType()}`)}}},88194(e,t,r){r.d(t,{O:()=>c});var n=r(55537),i=r(79187),o=r(83661),s=r(39117);function a(){return u(new o.P,-1,NaN)}function u(e,t,r){return{m_coordinate:e.clone(),m_vertexIndex:t,m_geometryIndex:0,m_distance:r,m_bRightSide:!1,isEmpty:l}}function l(){return Number.isNaN(this.m_distance)}function g(e,t,r=-1,a=-1){if(e.isEmpty())return 3;let u=e.getGeometryType();if((0,n.h)(u))return function(e,t,r,i){if(r>=0||i>=0)return(0,n.
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4064],{64064(e,t,r){r.d(t,{executeNearestVertex:()=>u});var n=r(55537),i=r(95213),o=r(88885);function s(e,t,r){if(e.getPointCount()<=0)return"left";let n=e.querySegmentIteratorAtVertex(r),i=n.hasPreviousSegment()?n.previousSegment():n.nextSegment();return function(e,t,r){let n=(t.x-e.x)*(r.y-e.y)-(r.x-e.x)*(t.y-e.y);return n>0?"left":n<0?"right":"straddle"}(i.getStartXY(),i.getEndXY(),t)}const a=new(r(88194).O);function u(e,t){if(e.getGeometryType()===n.G.enumEnvelope){let t=new o.P;t.addEnvelope(e,!1),e=t}let r=t.getXY(),u=a.getNearestVertex(e,r);if(u.isEmpty())return null;switch(e.getGeometryType()){case n.G.enumPoint:return{coordinate:e,distance:u.m_distance,sideOfLine:0===u.m_distance?"straddle":"left"};case n.G.enumMultiPoint:{let t=new i.P;return e.getPointByVal(u.m_vertexIndex,t),{coordinate:t,distance:u.m_distance,sideOfLine:0===u.m_distance?"straddle":"left"}}case n.G.enumPolyline:case n.G.enumPolygon:{let t=new i.P;return e.getPointByVal(u.m_vertexIndex,t),{coordinate:t,distance:u.m_distance,sideOfLine:s(e,r,u.m_vertexIndex)}}default:throw Error(`Unsupported geometry type: ${e.getGeometryType()}`)}}},88194(e,t,r){r.d(t,{O:()=>c});var n=r(55537),i=r(79187),o=r(83661),s=r(39117);function a(){return u(new o.P,-1,NaN)}function u(e,t,r){return{m_coordinate:e.clone(),m_vertexIndex:t,m_geometryIndex:0,m_distance:r,m_bRightSide:!1,isEmpty:l}}function l(){return Number.isNaN(this.m_distance)}function g(e,t,r=-1,a=-1){if(e.isEmpty())return 3;let u=e.getGeometryType();if((0,n.h)(u))return function(e,t,r,i){if(r>=0||i>=0)return(0,n.b)("");if(e.isDegenerate(0))return e.getStartXY().equals(t)?2:3;if(!e.isCurve()){let r=o.P.orientationRobust(t,e.getStartXY(),e.getEndXY());return r<0?1:r>0?0:2}let s=e.getClosestCoordinate(t,!1),a=e.getTangent(s),u=e.getCoord2D(s),l=o.P.orientationRobust(t,u,u.add(a));return l<0?1:l>0?0:2}(e,t,r,a);if(u===n.G.enumPolygon)return function(e,t,r,o){(r>=0||o>=0)&&(0,n.b)("");let a=new i.Envelope2D;e.queryEnvelope(a);let u=(0,s.K)(e,t,0);return 0===u?0:1===u?1:2}(e,t,r,a);if(u===n.G.enumPolyline)return function(e,t,r,i){(r<0&&i>=0||r>=0&&i<0)&&(0,n.b)("");let s=e.querySegmentIterator();if(r<0){let e=Number.MAX_VALUE,n=0;for(;s.nextPath();)for(;s.hasNextSegment();){let a=s.nextSegment(),u=a.getClosestCoordinate(t,!1),l=a.getCoord2D(u),g=o.P.sqrDistance(l,t);g<e?(n=1,r=s.getStartPointIndex(),i=s.getPathIndex(),e=g):g===e&&n++}if(0===n)return 3;if(1===n)return s.resetToVertex(r,i),g(s.nextSegment(),t)}let a=function(e,t,r,n){let i={i1:-1,i2:-1,bRight1:!1,bRight2:!1};if(i.i1=function(e,t,r){for(e.resetToVertex(t,r);e.hasNextSegment();)if(!e.nextSegment().isDegenerate(0))return e.getStartPointIndex();for(e.resetToVertex(t,r);e.hasPreviousSegment();)if(!e.previousSegment().isDegenerate(0))return e.getStartPointIndex();return-1}(t,r,n),-1!==i.i1){t.resetToVertex(i.i1,-1);let r=t.nextSegment(),n=r.getClosestCoordinate(e,!1),s=r.getCoord2D(n),a=o.P.sqrDistance(s,e);{let t=s.clone();t.subThis(r.getStartXY());let n=e.clone();n.subThis(r.getStartXY()),i.bRight1=t.crossProduct(n)<0}if(i.i2=function(e,t){for(e.resetToVertex(t,-1),e.nextSegment();e.hasNextSegment();)if(!e.nextSegment().isDegenerate(0))return e.getStartPointIndex();return-1}(t,i.i1),-1!==i.i2){t.resetToVertex(i.i2,-1);let r=t.nextSegment(),n=r.getClosestCoordinate(e,!1),s=r.getCoord2D(n);if(o.P.sqrDistance(s,e)>a)i.i2=-1;else{let t=s.clone();t.subThis(r.getStartXY());let n=e.clone();n.subThis(r.getStartXY()),i.bRight2=t.crossProduct(n)<0}}if(-1===i.i2&&(i.i2=function(e,t){for(e.resetToVertex(t,-1);e.hasPreviousSegment();)if(!e.previousSegment().isDegenerate(0))return e.getStartPointIndex();return-1}(t,i.i1),-1!==i.i2)){t.resetToVertex(i.i2,-1);let r=t.nextSegment(),n=r.getClosestCoordinate(e,!1),s=r.getCoord2D(n);if(o.P.sqrDistance(s,e)>a)i.i2=-1;else{let t=s.clone();t.subThis(r.getStartXY());let n=e.clone();n.subThis(r.getStartXY()),i.bRight2=t.crossProduct(n)<0;let o=i.i1;i.i1=i.i2,i.i2=o;let a=i.bRight1;i.bRight1=i.bRight2,i.bRight2=a}}}return i}(t,s,r,i);if(-1!==a.i1&&-1===a.i2)return+!!a.bRight1;if(-1!==a.i1&&-1!==a.i2){if(a.bRight1===a.bRight2)return+!!a.bRight1;{s.resetToVertex(a.i1,-1);let e=s.nextSegment().getTangent(1);s.resetToVertex(a.i2,-1);let t=s.nextSegment().getTangent(0);return+(e.crossProduct(t)>=0)}}return s.resetToVertex(r,i),g(s.nextSegment(),t)}(e,t,r,a);if(u===n.G.enumEnvelope){let r=new i.Envelope2D;return e.queryEnvelope(r),r.contains(t)?r.containsExclusive(t)?1:2:0}return 3}var m=r(95213);class c{getOperatorType(){return 10500}accelerateGeometry(e,t,r){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}getNearestCoordinate(e,t,r,i){if(t.isNAN()&&(0,n.b)("NAN xy coordinates are not allowed"),e.isEmpty())return a();switch(e.getGeometryType()){case n.G.enumPoint:return this.pointGetNearestVertex(e,t);case n.G.enumMultiPoint:return this.multiVertexGetNearestVertex(e,t);case n.G.enumPolyline:case n.G.enumPolygon:return this.multiPathGetNearestCoordinate(e,t,r,i);default:(0,n.a)("")}}getNearestVertex(e,t){if(t.isNAN()&&(0,n.b)("NAN xy coordinates are not allowed"),e.isEmpty())return a();switch(e.getGeometryType()){case n.G.enumPoint:return this.pointGetNearestVertex(e,t);case n.G.enumMultiPoint:case n.G.enumPolyline:case n.G.enumPolygon:return this.multiVertexGetNearestVertex(e,t);default:(0,n.a)("")}}getNearestVertices(e,t,r,i){if(0===i&&(0,n.b)(""),t.isNAN()&&(0,n.b)("NAN xy coordinates are not allowed"),e.isEmpty())return[];switch(e.getGeometryType()){case n.G.enumPoint:return this.pointGetNearestVertices(e,t,r,i);case n.G.enumMultiPoint:case n.G.enumPolyline:case n.G.enumPolygon:return this.multiVertexGetNearestVertices(e,t,r,i);default:(0,n.a)("")}}multiPathGetNearestCoordinate(e,t,r,a){if(e.getGeometryType()===n.G.enumPolygon&&r){let r=new i.Envelope2D;e.queryEnvelope(r);let n,o=(0,m.d)(null,r,!1);if(n=a?(0,s.K)(e,t,0):(0,s.K)(e,t,o),0!==n){let e=u(t,-1,0);return a&&(e.m_bRightSide=!0),e}}let l=e.querySegmentIterator(),c=new o.P,d=-1,f=-1,x=Number.MAX_VALUE,P=0;for(;l.nextPath();)for(;l.hasNextSegment();){let e=l.nextSegment(),r=e.getClosestCoordinate(t,!1),n=e.getCoord2D(r),i=o.P.sqrDistance(n,t);i<x?(P=1,c.assign(n),d=l.getStartPointIndex(),f=l.getPathIndex(),x=i):i===x&&P++}-1===d&&(0,n.b)("");let h=u(c,d,Math.sqrt(x));if(a)if(e.getGeometryType()!==n.G.enumPolygon){let r=!1;if(P>1){let n=g(e,t,d,f);r=0!==n&&3!==n}else l.resetToVertex(d,f),r=0!==g(l.nextSegment(),t);h.m_bRightSide=r}else r||0!==(0,s.K)(e,t,0)&&(h.m_bRightSide=!0);return h}pointGetNearestVertex(e,t){let r=e.getXY();return u(r,0,o.P.distance(r,t))}multiVertexGetNearestVertex(e,t){let r=e.getAttributeStreamRef(0),n=e.getPointCount(),i=-1,s=new o.P,a=Number.MAX_VALUE,l=new o.P;for(let e=0;e<n;e++){r.queryPoint2D(2*e,l);let n=o.P.sqrDistance(l,t);n<a&&(s.assign(l),i=e,a=n)}return u(s,i,Math.sqrt(a))}pointGetNearestVertices(e,t,r,n){let i=[];if(0!==n){let n=r*r,s=e.getXY(),a=o.P.sqrDistance(s,t);a<=n&&i.push(u(s,0,Math.sqrt(a)))}return i}multiVertexGetNearestVertices(e,t,r,n){let i=[];if(0!==n){let s=e.getAttributeStreamRef(0),a=e.getPointCount();i.length=n+1;let l=r*r;for(let e=0;e<a;e++){let r=s.read(2*e),n=s.read(2*e+1),a=t.x-r,g=t.y-n,m=a*a+g*g;m<=l&&i.push(u(o.P.construct(r,n),e,Math.sqrt(m)))}i.sort((e,t)=>e.m_distance-t.m_distance)}return i.slice(0,n)}}}}]);
|