@arcgis/core 4.32.0-next.20250101 → 4.32.0-next.20250103
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/Color.js +1 -1
- package/PopupTemplate.js +1 -1
- package/arcade/functions/date.js +1 -1
- package/arcade/functions/featuresetbase.js +1 -1
- package/arcade/functions/featuresetstats.js +1 -1
- package/arcade/functions/featuresetstring.js +1 -1
- package/arcade/functions/geomasync.js +1 -1
- package/arcade/functions/geometry.js +1 -1
- package/arcade/functions/geomsync.js +1 -1
- package/arcade/functions/knowledgegraph.js +1 -1
- package/arcade/functions/string.js +1 -1
- package/arcade/geometry/extendedUnitData.js +5 -0
- package/arcade/geometry/functions.js +5 -0
- package/arcade/geometry/operators.js +5 -0
- package/arcade/geometry/unitConversion.js +5 -0
- package/arcade/geometry/wkt.js +5 -0
- package/arcade/languageUtils.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{e371f4f0eb3c22f222df.js → 005727711cca0614c2ab.js} +2 -2
- package/assets/esri/core/workers/chunks/{e371f4f0eb3c22f222df.js.LICENSE.txt → 005727711cca0614c2ab.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/{2d908c115ea18e813b95.js → 00c0fbe19c12691cf2c3.js} +1 -1
- package/assets/esri/core/workers/chunks/08e28328385066c519c2.js +1 -0
- package/assets/esri/core/workers/chunks/{0e735d01296d340b393e.js → 0b95ec12218f3c04df18.js} +1 -1
- package/assets/esri/core/workers/chunks/{59bf879b4802a5ba431e.js → 0ee669947c23f469e357.js} +1 -1
- package/assets/esri/core/workers/chunks/116103ecec27cce47a2f.js +1 -0
- package/assets/esri/core/workers/chunks/11f00218905f0db447ff.js +1 -0
- package/assets/esri/core/workers/chunks/14b87f3dd9942e6b19d0.js +1 -0
- package/assets/esri/core/workers/chunks/16d7c07e1c11b88dae84.js +1 -0
- package/assets/esri/core/workers/chunks/1d04fe800cb98e4d6bc4.js +1 -0
- package/assets/esri/core/workers/chunks/{71f6e5742cf0c482066b.js → 1dc6b5b177022b80c473.js} +1 -1
- package/assets/esri/core/workers/chunks/{59455e2dd44b4c01cc76.js → 2586741c359057b3f626.js} +1 -1
- package/assets/esri/core/workers/chunks/{250a810dd4e1ff293564.js → 318a39b56851e707edad.js} +1 -1
- package/assets/esri/core/workers/chunks/{b1e4813f0c73fc2a483c.js → 370b230fd2d7703d0698.js} +2 -2
- package/assets/esri/core/workers/chunks/{b1e4813f0c73fc2a483c.js.LICENSE.txt → 370b230fd2d7703d0698.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/38d03fe352057fb375b5.js +1 -0
- package/assets/esri/core/workers/chunks/{ebf9caf2dc8af89afec2.js → 42aa697b4718b75b8cb2.js} +2 -2
- package/assets/esri/core/workers/chunks/{ebf9caf2dc8af89afec2.js.LICENSE.txt → 42aa697b4718b75b8cb2.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/{801dbea20966806db1c9.js → 53cd990b2c988518de6d.js} +1 -1
- package/assets/esri/core/workers/chunks/5a1eb0d1e25ff5574c43.js +1 -0
- package/assets/esri/core/workers/chunks/6157c49e7431f5868c77.js +1 -0
- package/assets/esri/core/workers/chunks/{eef2d94a73064f9bc085.js → 61d64f163840563017d5.js} +1 -1
- package/assets/esri/core/workers/chunks/6d218fb5e0f0a04d72c5.js +2 -0
- package/assets/esri/core/workers/chunks/{d82b3e2905cab511ff3a.js.LICENSE.txt → 6d218fb5e0f0a04d72c5.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/6ed57d01be6bc054c7cd.js +1 -0
- package/assets/esri/core/workers/chunks/7254956381e823219db0.js +1 -0
- package/assets/esri/core/workers/chunks/740e6bdb3b76f2ea6d61.js +1 -0
- package/assets/esri/core/workers/chunks/756c2f7c8659deab6c96.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/{56fc353421252f2d0a99.js → 75e8ba7e02647b7216ae.js} +1 -1
- package/assets/esri/core/workers/chunks/89d7eec47e5b29935d92.js +1 -0
- package/assets/esri/core/workers/chunks/8cd2c9ec1e541836b81c.js +1 -0
- package/assets/esri/core/workers/chunks/{0b3e1e903120da297641.js → 932375de79e3d33bc4d7.js} +1 -1
- package/assets/esri/core/workers/chunks/{263adfd1c2641ef5c0f5.js → 95f23bd17ce9e07fc8ef.js} +1 -1
- package/assets/esri/core/workers/chunks/{7de9c01849c4aa1940e7.js → 986889cea53c4a470347.js} +1 -1
- package/assets/esri/core/workers/chunks/{cc6160e8ab3cea4040c2.js → 9e9b2fd958e816b1b5f6.js} +1 -1
- package/assets/esri/core/workers/chunks/a57cead317eb2fc9afd8.js +1 -0
- package/assets/esri/core/workers/chunks/acec58a7f23b2cc938ee.js +1 -0
- package/assets/esri/core/workers/chunks/b0f4254d8a32dd713009.js +1 -0
- package/assets/esri/core/workers/chunks/b277b8c2f556918e4f9a.js +1 -0
- package/assets/esri/core/workers/chunks/{deffd56e39ce725ce377.js → b30046a40bcfbec8abe4.js} +1 -1
- package/assets/esri/core/workers/chunks/{5c11e2e65b97565e5003.js → b7db64b07edb0b37ece1.js} +1 -1
- package/assets/esri/core/workers/chunks/bd1fb82e8bac439d05ea.js +1 -0
- package/assets/esri/core/workers/chunks/bf0a0ca7fdac98f06a89.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/c44ce0302dc82fb66ada.js +1 -0
- package/assets/esri/core/workers/chunks/c52872a50a5989121388.js +1 -0
- package/assets/esri/core/workers/chunks/c8cd6ba5600d8ff8db0b.js +2 -0
- package/assets/esri/core/workers/chunks/{a100fb789d72410f8d4f.js.LICENSE.txt → c8cd6ba5600d8ff8db0b.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/{57c1370b310768c0790a.js → ca1e186f136abb23ae4b.js} +1 -1
- package/assets/esri/core/workers/chunks/{d14e4fc82ad772899336.js → ca4a37bdc0f7fb705146.js} +1 -1
- package/assets/esri/core/workers/chunks/cb94fc9b0f613ad50b3f.js +1 -0
- package/assets/esri/core/workers/chunks/d20764cc99fcabcb7cbf.js +1 -0
- package/assets/esri/core/workers/chunks/df18a72e3625cbe31935.js +1 -0
- package/assets/esri/core/workers/chunks/eff8fcb6393cd1193cbc.js +1 -0
- package/assets/esri/core/workers/chunks/f19d3c855f6e93544918.js +1 -0
- package/assets/esri/core/workers/chunks/{60b40b2319d1651dd150.js → f7e50a8284d12da21355.js} +1 -1
- package/assets/esri/core/workers/chunks/f9c0d571f62e611ffe2b.js +1 -0
- package/assets/esri/core/workers/chunks/fdfe8e0d942b78f08191.js +1 -0
- package/assets/esri/core/workers/chunks/ff21207f46a354786eed.js +1 -0
- package/chunks/Bufferer-BiY2mtjI.js +1 -1
- package/chunks/Centroid-DZi-eb9F.js +1 -1
- package/chunks/Clipper-a9xfvRaw.js +1 -1
- package/chunks/CrackAndCluster-CfzXpEle.js +1 -1
- package/chunks/Distance2DCalculator-eS0piaux.js +1 -1
- package/chunks/GeodeticDistanceCalculator-bNilDneE.js +1 -1
- package/chunks/Geometry.js +1 -1
- package/chunks/GeometryCleaner-DVgW95-D.js +1 -1
- package/chunks/Intersector-K1VmdfQW.js +1 -1
- package/chunks/LineSeries.js +1 -1
- package/chunks/OperatorClip.js +1 -1
- package/chunks/OperatorCrosses.js +1 -1
- package/chunks/OperatorCut.js +1 -1
- package/chunks/OperatorDensify.js +1 -1
- package/chunks/OperatorDifference.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/OperatorIntersection.js +1 -1
- package/chunks/OperatorIntersects.js +1 -1
- package/chunks/OperatorMultiPartToSinglePart.js +1 -1
- package/chunks/OperatorOverlaps.js +1 -1
- package/chunks/OperatorProject.js +1 -1
- package/chunks/OperatorProximity.js +1 -1
- package/chunks/OperatorProximityGeodesic.js +1 -1
- package/chunks/OperatorShapePreservingDensify.js +1 -1
- package/chunks/OperatorShapePreservingLength.js +1 -1
- package/chunks/OperatorSimplify.js +1 -1
- package/chunks/OperatorTouches.js +1 -1
- package/chunks/OperatorUnion.js +1 -1
- package/chunks/OperatorWithin.js +1 -1
- package/chunks/QuadraticBezier.js +1 -1
- package/chunks/SideCalculator2D-Bf4QCxCR.js +1 -1
- package/chunks/Theme.js +1 -1
- package/chunks/Tick.js +1 -1
- package/chunks/Transformation2D.js +1 -1
- package/chunks/arcade.js +1 -1
- package/chunks/areaOperator.js +5 -0
- package/chunks/array.js +1 -1
- package/chunks/bufferOperator.js +5 -0
- package/chunks/centroidOperator.js +5 -0
- package/chunks/chartUtilsAm5.js +1 -1
- package/chunks/clipOperator.js +5 -0
- package/chunks/containsOperator.js +5 -0
- package/chunks/convexHullOperator.js +5 -0
- package/chunks/crossesOperator.js +5 -0
- package/chunks/cutOperator.js +5 -0
- package/chunks/densifyOperator.js +5 -0
- package/chunks/differenceOperator.js +5 -0
- package/chunks/disjointOperator.js +5 -0
- package/chunks/distanceOperator.js +5 -0
- package/chunks/equalsOperator.js +5 -0
- package/chunks/generalizeOperator.js +5 -0
- package/chunks/geodesicBufferOperator.js +5 -0
- package/chunks/geodeticAreaOperator.js +5 -0
- package/chunks/geodeticDensifyOperator.js +5 -0
- package/chunks/geodeticLengthOperator.js +5 -0
- package/chunks/i3s.js +1 -1
- package/chunks/intersectionOperator.js +5 -0
- package/chunks/intersectsOperator.js +5 -0
- package/chunks/languageUtils.js +1 -1
- package/chunks/lclayout.js +1 -1
- package/chunks/lengthOperator.js +5 -0
- package/chunks/lyr3DMain.js +1 -1
- package/chunks/lyr3DWorker.js +1 -1
- package/chunks/offsetOperator.js +5 -0
- package/chunks/overlapsOperator.js +5 -0
- package/chunks/pe-wasm.js +1 -1
- package/chunks/proximityOperator.js +5 -0
- package/chunks/relateOperator.js +5 -0
- package/chunks/simplifyOperator.js +5 -0
- package/chunks/symmetricDifferenceOperator.js +5 -0
- package/chunks/touchesOperator.js +5 -0
- package/chunks/unionOperator.js +5 -0
- package/chunks/vxlLayer.js +1 -1
- package/chunks/withinOperator.js +5 -0
- package/copyright.txt +2 -2
- package/core/Evented.js +1 -1
- package/geometry/operators/areaOperator.js +1 -1
- package/geometry/operators/bufferOperator.js +1 -1
- package/geometry/operators/centroidOperator.js +1 -1
- package/geometry/operators/clipOperator.js +1 -1
- package/geometry/operators/containsOperator.js +1 -1
- package/geometry/operators/convexHullOperator.js +1 -1
- package/geometry/operators/crossesOperator.js +1 -1
- package/geometry/operators/cutOperator.js +1 -1
- package/geometry/operators/densifyOperator.js +1 -1
- package/geometry/operators/differenceOperator.js +1 -1
- package/geometry/operators/disjointOperator.js +1 -1
- package/geometry/operators/distanceOperator.js +1 -1
- package/geometry/operators/equalsOperator.js +1 -1
- package/geometry/operators/extendOperator.js +1 -1
- package/geometry/operators/generalizeOperator.js +1 -1
- package/geometry/operators/geodesicBufferOperator.js +1 -1
- package/geometry/operators/geodeticAreaOperator.js +1 -1
- package/geometry/operators/geodeticDensifyOperator.js +1 -1
- package/geometry/operators/geodeticLengthOperator.js +1 -1
- package/geometry/operators/gx/operatorAffineTransform.js +1 -1
- package/geometry/operators/gx/operatorAlphaShape.js +1 -1
- package/geometry/operators/gx/operatorAutoComplete.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/operatorGraphicBuffer.js +1 -1
- package/geometry/operators/gx/operatorIntegrate.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/operatorSinglePartToMultiPart.js +1 -1
- package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
- package/geometry/operators/intersectionOperator.js +1 -1
- package/geometry/operators/intersectsOperator.js +1 -1
- package/geometry/operators/isNearOperator.js +1 -1
- package/geometry/operators/json/disjointOperator.js +1 -1
- package/geometry/operators/lengthOperator.js +1 -1
- package/geometry/operators/offsetOperator.js +1 -1
- package/geometry/operators/overlapsOperator.js +1 -1
- package/geometry/operators/proximityOperator.js +1 -1
- package/geometry/operators/relateOperator.js +1 -1
- package/geometry/operators/reshapeOperator.js +1 -1
- package/geometry/operators/simplifyOperator.js +1 -1
- package/geometry/operators/support/apiConverter.js +1 -1
- package/geometry/operators/support/jsonConverter.js +1 -1
- package/geometry/operators/symmetricDifferenceOperator.js +1 -1
- package/geometry/operators/touchesOperator.js +1 -1
- package/geometry/operators/unionOperator.js +1 -1
- package/geometry/operators/withinOperator.js +1 -1
- package/geometry/support/contains.js +1 -1
- package/kernel.js +1 -1
- package/layers/KMLLayer.js +1 -1
- package/layers/WCSLayer.js +1 -1
- package/layers/support/rasterDatasets/WCSRaster.js +1 -1
- package/layers/support/rasterFormats/RasterCodec.js +1 -1
- package/layers/support/rasterFormats/TiffDecoder.js +1 -1
- package/layers/support/wmtsUtils.js +1 -1
- package/package.json +3 -3
- package/smartMapping/renderers/support/utils.js +1 -1
- package/smartMapping/symbology/support/Theme.js +1 -1
- package/support/revision.js +1 -1
- package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DView.js +1 -1
- package/views/3d/support/DisplayQualityProfile.js +1 -1
- package/views/3d/webgl-engine/core/shaderModules/interfaces.js +1 -1
- package/views/3d/webgl-engine/lib/Octree.js +1 -1
- package/views/SelectionManager.js +1 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/Feature/support/featureUtils.js +1 -1
- package/widgets/Legend/support/heatmapRampUtils.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerVisibleElements.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/assets/esri/core/workers/chunks/015285436ca965f94e17.js +0 -1
- package/assets/esri/core/workers/chunks/048d296efa26ccd79056.js +0 -1
- package/assets/esri/core/workers/chunks/0e0b978459d70b15acb5.js +0 -1
- package/assets/esri/core/workers/chunks/10fa211987b16fd71a1a.js +0 -1
- package/assets/esri/core/workers/chunks/200a5f1864c2c2f7536c.js +0 -1
- package/assets/esri/core/workers/chunks/23a697d48f6e45cc033e.js +0 -1
- package/assets/esri/core/workers/chunks/29b610ff44708e044cbd.js +0 -1
- package/assets/esri/core/workers/chunks/3600125c58d5d04c515a.js +0 -1
- package/assets/esri/core/workers/chunks/457d4abc938d14f28e31.js +0 -1
- package/assets/esri/core/workers/chunks/4b5dbdcad438cb2dd4bf.js +0 -1
- package/assets/esri/core/workers/chunks/69efc716991a407c3d23.js +0 -1
- package/assets/esri/core/workers/chunks/6e254e846e284223ef63.js +0 -1
- package/assets/esri/core/workers/chunks/785610aa615198fd3815.js +0 -1
- package/assets/esri/core/workers/chunks/7bf7aace72f81f5de4e4.js +0 -1
- package/assets/esri/core/workers/chunks/7ea3d652536e1d79dfc6.js +0 -1
- package/assets/esri/core/workers/chunks/816c9c81352cd0ca8ce8.js +0 -1
- package/assets/esri/core/workers/chunks/9291508232b23f030178.js +0 -1
- package/assets/esri/core/workers/chunks/9fc49968dea8e2b64f3e.js +0 -1
- package/assets/esri/core/workers/chunks/a0b3d70a1b0360084593.js +0 -1
- package/assets/esri/core/workers/chunks/a100fb789d72410f8d4f.js +0 -2
- package/assets/esri/core/workers/chunks/b4d76d46661aba356ea3.js +0 -1
- package/assets/esri/core/workers/chunks/cb3af81e1fe6405c4885.js +0 -1
- package/assets/esri/core/workers/chunks/cbf57abb537e86c1dd7f.js +0 -1
- package/assets/esri/core/workers/chunks/cebdf2f88c4d2ad8baab.js +0 -1
- package/assets/esri/core/workers/chunks/d56d77125798beb7e493.js +0 -1
- package/assets/esri/core/workers/chunks/d82b3e2905cab511ff3a.js +0 -2
- package/assets/esri/core/workers/chunks/e2f91098793b8742fae6.js +0 -1
- package/assets/esri/core/workers/chunks/f25c04cf1a4bc1d2636a.js +0 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*
|
|
2
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
+
*/
|
|
5
|
+
import{supportsCurves as e,execute as o,executeMany as r}from"../geometry/operators/gx/operatorClip.js";import{getSpatialReference as t,fromExtent as s,toGeometry as a,fromSpatialReference as p,fromGeometry as n}from"../geometry/operators/support/apiConverter.js";function u(e,r){const u=t(e),c=s(r).asEnvelope2D();return a(o(n(e),c,p(u)),u)}function c(e,o){const u=e.map(n),c=t(e),m=s(o).asEnvelope2D();return r(u,m,p(c)).map((e=>a(e,c)))}const m=e(),i=Object.freeze(Object.defineProperty({__proto__:null,execute:u,executeMany:c,supportsCurves:m},Symbol.toStringTag,{value:"Module"}));export{c as a,i as c,u as e,m as s};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*
|
|
2
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
+
*/
|
|
5
|
+
import{O as e}from"./OperatorProject.js";import{getSpatialReference as r,fromGeometry as t,fromSpatialReference as o}from"../geometry/operators/support/apiConverter.js";const s=new e;function a(e){const a=r(e);return s.accelerateGeometry(t(e),o(a),1)}function c(e,r){return s.execute(t(e),t(r),o(e.spatialReference),null)}const n=s.supportsCurves(),p=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:a,execute:c,supportsCurves:n},Symbol.toStringTag,{value:"Module"}));export{a,p as c,c as e,n as s};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*
|
|
2
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
+
*/
|
|
5
|
+
import{supportsCurves as e,execute as o,executeMany as r,isConvex as t}from"../geometry/operators/gx/operatorConvexHull.js";import{getSpatialReference as s,toGeometry as n,fromGeometry as a}from"../geometry/operators/support/apiConverter.js";function u(e){const r=s(e);return n(o(a(e)),r)}function p(e,o={}){const{merge:t=!1}=o,u=e.map(a),p=s(e);return r(u,t).map((e=>n(e,p)))}function c(e){return t(a(e))}const i=e(),m=Object.freeze(Object.defineProperty({__proto__:null,execute:u,executeMany:p,isConvex:c,supportsCurves:i},Symbol.toStringTag,{value:"Module"}));export{p as a,m as c,u as e,c as i,i as s};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*
|
|
2
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
+
*/
|
|
5
|
+
import{O as e}from"./OperatorCrosses.js";import{getSpatialReference as r,fromGeometry as t,fromSpatialReference as o}from"../geometry/operators/support/apiConverter.js";const s=new e;function a(e){const a=r(e);return s.accelerateGeometry(t(e),o(a),1)}function n(e,r){return s.execute(t(e),t(r),o(e.spatialReference),null)}const c=s.supportsCurves(),p=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:a,execute:n,supportsCurves:c},Symbol.toStringTag,{value:"Module"}));export{a,p as c,n as e,c as s};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*
|
|
2
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
+
*/
|
|
5
|
+
import{isSome as r}from"../core/arrayUtils.js";import{supportsCurves as e,execute as o}from"../geometry/operators/gx/operatorCut.js";import{getSpatialReference as t,fromSpatialReference as s,fromPolyline as p,fromGeometry as a,toGeometry as u}from"../geometry/operators/support/apiConverter.js";function m(e,m){const c=t(e);return o(a(e),p(m),s(c)).map((r=>u(r,c))).filter(r)}const c=e(),i=Object.freeze(Object.defineProperty({__proto__:null,execute:m,supportsCurves:c},Symbol.toStringTag,{value:"Module"}));export{i as c,m as e,c as s};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*
|
|
2
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
+
*/
|
|
5
|
+
import{isSome as e}from"../core/arrayUtils.js";import{deg2rad as t}from"../core/mathUtils.js";import{convertToSpatialReferenceUnit as r}from"../core/unitUtils.js";import{supportsCurves as o,execute as s,executeMany as a}from"../geometry/operators/gx/operatorDensify.js";import{getSpatialReference as n,toGeometry as i,fromGeometry as m}from"../geometry/operators/support/apiConverter.js";function p(e,o,a={}){let{maxAngleInDegrees:p=0,maxDeviation:u=0,unit:c}=a;const l=n(e);return c&&(o=r(o,c,l),u&&(u=r(u,c,l))),i(s(m(e),o,u,t(p)),l)}function u(o,s,p={}){let{maxAngleInDegrees:u=0,maxDeviation:c=0,unit:l}=p;const f=o.map(m),x=n(o);return l&&(s=r(s,l,x),c&&(c=r(c,l,x))),a(f,s,c,t(u)).map((e=>i(e,x))).filter(e)}const c=o(),l=Object.freeze(Object.defineProperty({__proto__:null,execute:p,executeMany:u,supportsCurves:c},Symbol.toStringTag,{value:"Module"}));export{u as a,l as d,p as e,c as s};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*
|
|
2
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
+
*/
|
|
5
|
+
import{supportsCurves as e,execute as r,executeMany as t}from"../geometry/operators/gx/operatorDifference.js";import{getSpatialReference as o,toGeometry as s,fromSpatialReference as a,fromGeometry as p}from"../geometry/operators/support/apiConverter.js";function n(e,t){const n=o(e);return s(r(p(e),p(t),a(n)),n)}function u(e,r){const n=e.map(p),u=o(e);return t(n,p(r),a(u)).map((e=>s(e,u)))}const c=e(),m=Object.freeze(Object.defineProperty({__proto__:null,execute:n,executeMany:u,supportsCurves:c},Symbol.toStringTag,{value:"Module"}));export{u as a,m as d,n as e,c as s};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*
|
|
2
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
+
*/
|
|
5
|
+
import{a as e}from"./OperatorProject.js";import{getSpatialReference as r,fromGeometry as t,fromSpatialReference as o}from"../geometry/operators/support/apiConverter.js";const s=new e;function a(e){const a=r(e);return s.accelerateGeometry(t(e),o(a),1)}function c(e,r){return s.execute(t(e),t(r),o(e.spatialReference))}const n=s.supportsCurves(),p=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:a,execute:c,supportsCurves:n},Symbol.toStringTag,{value:"Module"}));export{a,p as d,c as e,n as s};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*
|
|
2
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
+
*/
|
|
5
|
+
import{c as e}from"./Geometry.js";import{D as r}from"./Distance2DCalculator-eS0piaux.js";import{convertFromSpatialReferenceUnit as t}from"../core/unitUtils.js";import{fromGeometry as u,getSpatialReference as o}from"../geometry/operators/support/apiConverter.js";class s{getOperatorType(){return 10100}supportsCurves(){return!0}accelerateGeometry(e,r,t){return!1}canAccelerateGeometry(e){return!1}execute(e,r,t){return this.executeEx(e,r,t,null,null,Number.NaN)}executeEx(t,u,o,s,n,c){if(t.isEmpty()||u.isEmpty())return Number.NaN;e(t),e(u);const a=t,i=u;Number.isNaN(c)&&(c=Number.POSITIVE_INFINITY);const p=new r(c,o).calculate(a,i,s,n);return Number.isFinite(p)?p:Number.NaN}}const n=new s;function c(e,r,s={}){const{unit:c}=s;let a=n.execute(u(e),u(r),null);if(a&&c){const r=o(e);a=t(a,r,c)}return a}const a=n.supportsCurves(),i=Object.freeze(Object.defineProperty({__proto__:null,execute:c,supportsCurves:a},Symbol.toStringTag,{value:"Module"}));export{i as d,c as e,a as s};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*
|
|
2
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
+
*/
|
|
5
|
+
import{d as e,r}from"./OperatorProject.js";import{getSpatialReference as t,fromGeometry as o,fromSpatialReference as s}from"../geometry/operators/support/apiConverter.js";class a extends e{getOperatorType(){return 2}execute(e,t,o,s){return r(e,t,o,3,s)}}const n=new a;function u(e){const r=t(e);return n.accelerateGeometry(o(e),s(r),1)}function c(e,r){return n.execute(o(e),o(r),s(e.spatialReference),null)}const p=n.supportsCurves(),l=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:u,execute:c,supportsCurves:p},Symbol.toStringTag,{value:"Module"}));export{u as a,c as b,l as e,p as s};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*
|
|
2
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
+
*/
|
|
5
|
+
import{isSome as e}from"../core/arrayUtils.js";import{convertToSpatialReferenceUnit as r}from"../core/unitUtils.js";import{supportsCurves as t,execute as o,executeMany as s}from"../geometry/operators/gx/operatorGeneralize.js";import{getSpatialReference as a,toGeometry as n,fromGeometry as p}from"../geometry/operators/support/apiConverter.js";function u(e,t,s={}){const{removeDegenerateParts:u=!1,unit:i}=s,m=a(e);return i&&(t=r(t,i,m)),n(o(p(e),t,u),m)}function i(t,o,u={}){const{removeDegenerateParts:i=!1,unit:m}=u,c=t.map(p),f=a(t);return m&&(o=r(o,m,f)),s(c,o,i).map((e=>n(e,f))).filter(e)}const m=t(),c=Object.freeze(Object.defineProperty({__proto__:null,execute:u,executeMany:i,supportsCurves:m},Symbol.toStringTag,{value:"Module"}));export{i as a,u as e,c as g,m as s};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*
|
|
2
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
+
*/
|
|
5
|
+
import{isSome as e}from"../core/arrayUtils.js";import{convertUnit as t}from"../core/unitUtils.js";import{load as r,supportsCurves as o,execute as s,executeMany as a,isLoaded as i}from"../geometry/operators/gx/operatorGeodesicBuffer.js";import{geodeticCurveType as n}from"../geometry/operators/support/geodeticCurveType.js";let p,u,m,c,f;function l(){return!!p&&i()}async function y(){if(!l()){const[e]=await Promise.all([import("../geometry/operators/support/apiConverter.js"),r()]);p=e.fromGeometry,u=e.fromSpatialReference,m=e.getSpatialReference,c=e.toGeometry,f=o()}}function d(e,r,o={}){let{curveType:a="geodesic",maxDeviation:i=NaN,unit:f}=o;f&&(r=t(r,f,"meters"),i&&(i=t(i,f,"meters")));const l=m(e);return c(s(p(e),u(l),n[a],r,i),l)}function g(r,o,s={}){let{curveType:i="geodesic",maxDeviation:f=NaN,union:l=!1,unit:y}=s;y&&(o=o.map((e=>t(e,y,"meters"))),f&&(f=t(f,y,"meters")));const d=r.map(p),g=m(r);return a(d,u(g),n[i],o,f,l).map((e=>c(e,g))).filter(e)}const v=Object.freeze(Object.defineProperty({__proto__:null,execute:d,executeMany:g,isLoaded:l,load:y,get supportsCurves(){return f}},Symbol.toStringTag,{value:"Module"}));export{g as a,d as e,v as g,l as i,y as l,f as s};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*
|
|
2
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
+
*/
|
|
5
|
+
import{convertUnit as e}from"../core/unitUtils.js";import{load as r,supportsCurves as o,execute as t,isLoaded as s}from"../geometry/operators/gx/operatorGeodeticArea.js";import{geodeticCurveType as a}from"../geometry/operators/support/geodeticCurveType.js";let i,p,u,n;function c(){return!!i&&s()}async function m(){if(!c()){const[e]=await Promise.all([import("../geometry/operators/support/apiConverter.js"),r()]);i=e.fromGeometry,p=e.fromSpatialReference,u=e.getSpatialReference,n=o()}}function l(r,o={}){const{curveType:s="geodesic",unit:n}=o,c=u(r);let m=t(i(r),p(c),a[s]);return m&&n&&(m=e(m,"square-meters",n)),m}const f=Object.freeze(Object.defineProperty({__proto__:null,execute:l,isLoaded:c,load:m,get supportsCurves(){return n}},Symbol.toStringTag,{value:"Module"}));export{l as e,f as g,c as i,m as l,n as s};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*
|
|
2
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
+
*/
|
|
5
|
+
import{convertUnit as e}from"../core/unitUtils.js";import{load as t,supportsCurves as o,execute as r,executeMany as s,isLoaded as a}from"../geometry/operators/gx/operatorGeodeticDensify.js";import{geodeticCurveType as n}from"../geometry/operators/support/geodeticCurveType.js";let i,p,u,c,m;function f(){return!!i&&a()}async function l(){if(!f()){const[e]=await Promise.all([import("../geometry/operators/support/apiConverter.js"),t()]);i=e.fromGeometry,p=e.fromSpatialReference,u=e.getSpatialReference,c=e.toGeometry,m=o()}}function y(t,o,s={}){const{curveType:a="geodesic",unit:m}=s;m&&(o=e(o,m,"meters"));const f=u(t);return c(r(i(t),o,p(f),n[a]),f)}function d(t,o,r={}){const{curveType:a="geodesic",unit:m}=r;m&&(o=e(o,m,"meters"));const f=t.map(i),l=u(t);return s(f,o,p(l),n[a]).map((e=>c(e,l)))}const g=Object.freeze(Object.defineProperty({__proto__:null,execute:y,executeMany:d,isLoaded:f,load:l,get supportsCurves(){return m}},Symbol.toStringTag,{value:"Module"}));export{d as a,y as e,g,f as i,l,m as s};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*
|
|
2
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
+
*/
|
|
5
|
+
import{convertUnit as e}from"../core/unitUtils.js";import{load as t,supportsCurves as o,execute as r,isLoaded as s}from"../geometry/operators/gx/operatorGeodeticLength.js";import{geodeticCurveType as a}from"../geometry/operators/support/geodeticCurveType.js";let i,p,n,u;function c(){return!!i&&s()}async function m(){if(!c()){const[e]=await Promise.all([import("../geometry/operators/support/apiConverter.js"),t()]);i=e.fromGeometry,p=e.fromSpatialReference,n=e.getSpatialReference,u=o()}}function l(t,o={}){const{curveType:s="geodesic",unit:u}=o,c=n(t);let m=r(i(t),p(c),a[s]);return m&&u&&(m=e(m,"meters",u)),m}const f=Object.freeze(Object.defineProperty({__proto__:null,execute:l,isLoaded:c,load:m,get supportsCurves(){return u}},Symbol.toStringTag,{value:"Module"}));export{l as e,f as g,c as i,m as l,u as s};
|
package/chunks/i3s.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{g as n}from"./_commonjsHelpers.js";var r,e={exports:{}};function t(){return r||(r=1,n=e,t="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,i=function(n={}){var r,e,i=void 0!==n?n:{};i.ready=new Promise(((n,t)=>{r=n,e=t}));var o=Object.assign({},i),a="object"==typeof window,u="function"==typeof importScripts;"object"==typeof process&&"object"==typeof process.versions&&process.versions.node;var c,f="";function s(n){return i.locateFile?i.locateFile(n,f):f+n}(a||u)&&(u?f=self.location.href:"undefined"!=typeof document&&document.currentScript&&(f=document.currentScript.src),t&&(f=t),f=0!==f.indexOf("blob:")?f.substr(0,f.replace(/[?#].*/,"").lastIndexOf("/")+1):"",u&&(c=n=>{var r=new XMLHttpRequest;return r.open("GET",n,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}));var l,d,p=i.print||console.log.bind(console),v=i.printErr||console.warn.bind(console);Object.assign(i,o),o=null,i.arguments&&i.arguments,i.thisProgram&&i.thisProgram,i.quit&&i.quit,i.wasmBinary&&(l=i.wasmBinary),i.noExitRuntime,"object"!=typeof WebAssembly&&D("no native wasm support detected");var h,m,g,y,_,w,b,A,T,C=!1;function P(){var n=d.buffer;i.HEAP8=h=new Int8Array(n),i.HEAP16=g=new Int16Array(n),i.HEAP32=_=new Int32Array(n),i.HEAPU8=m=new Uint8Array(n),i.HEAPU16=y=new Uint16Array(n),i.HEAPU32=w=new Uint32Array(n),i.HEAPF32=b=new Float32Array(n),i.HEAPF64=A=new Float64Array(n)}var E=[],W=[],k=[];function j(){if(i.preRun)for("function"==typeof i.preRun&&(i.preRun=[i.preRun]);i.preRun.length;)S(i.preRun.shift());Z(E)}function F(){Z(W)}function R(){if(i.postRun)for("function"==typeof i.postRun&&(i.postRun=[i.postRun]);i.postRun.length;)U(i.postRun.shift());Z(k)}function S(n){E.unshift(n)}function x(n){W.unshift(n)}function U(n){k.unshift(n)}var I=0,O=null;function H(n){I++,i.monitorRunDependencies&&i.monitorRunDependencies(I)}function z(n){if(I--,i.monitorRunDependencies&&i.monitorRunDependencies(I),0==I&&O){var r=O;O=null,r()}}function D(n){i.onAbort&&i.onAbort(n),v(n="Aborted("+n+")"),C=!0,n+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(n);throw e(r),r}var V,M="data:application/octet-stream;base64,";function B(n){return n.startsWith(M)}function q(n){try{if(n==V&&l)return new Uint8Array(l);if(c)return c(n);throw"both async and sync fetching of the wasm failed"}catch(v){D(v)}}function N(n){return l||!a&&!u||"function"!=typeof fetch?Promise.resolve().then((()=>q(n))):fetch(n,{credentials:"same-origin"}).then((r=>{if(!r.ok)throw"failed to load wasm binary file at '"+n+"'";return r.arrayBuffer()})).catch((()=>q(n)))}function L(n,r,e){return N(n).then((n=>WebAssembly.instantiate(n,r))).then((n=>n)).then(e,(n=>{v("failed to asynchronously prepare wasm: "+n),D(n)}))}function G(n,r,e,t){return n||"function"!=typeof WebAssembly.instantiateStreaming||B(r)||"function"!=typeof fetch?L(r,e,t):fetch(r,{credentials:"same-origin"}).then((n=>WebAssembly.instantiateStreaming(n,e).then(t,(function(n){return v("wasm streaming compile failed: "+n),v("falling back to ArrayBuffer instantiation"),L(r,e,t)}))))}function X(){var n={env:Fr,wasi_snapshot_preview1:Fr};function r(n,r){var e=n.exports;return i.asm=e,d=i.asm.memory,P(),T=i.asm.__indirect_function_table,x(i.asm.__wasm_call_ctors),z(),e}function t(n){r(n.instance)}if(H(),i.instantiateWasm)try{return i.instantiateWasm(n,r)}catch(o){v("Module.instantiateWasm callback failed with error: "+o),e(o)}return G(l,V,n,t).catch(e),{}}function Z(n){for(;n.length>0;)n.shift()(i)}B(V="i3s.wasm")||(V=s(V));var $=[];function J(n){var r=$[n];return r||(n>=$.length&&($.length=n+1),$[n]=r=T.get(n)),r}function K(n,r){J(n)(r)}function Q(n){this.excPtr=n,this.ptr=n-24,this.set_type=function(n){w[this.ptr+4>>2]=n},this.get_type=function(){return w[this.ptr+4>>2]},this.set_destructor=function(n){w[this.ptr+8>>2]=n},this.get_destructor=function(){return w[this.ptr+8>>2]},this.set_caught=function(n){n=n?1:0,h[this.ptr+12|0]=n},this.get_caught=function(){return 0!=h[this.ptr+12|0]},this.set_rethrown=function(n){n=n?1:0,h[this.ptr+13|0]=n},this.get_rethrown=function(){return 0!=h[this.ptr+13|0]},this.init=function(n,r){this.set_adjusted_ptr(0),this.set_type(n),this.set_destructor(r)},this.set_adjusted_ptr=function(n){w[this.ptr+16>>2]=n},this.get_adjusted_ptr=function(){return w[this.ptr+16>>2]},this.get_exception_ptr=function(){if(Ir(this.get_type()))return w[this.excPtr>>2];var n=this.get_adjusted_ptr();return 0!==n?n:this.excPtr}}function Y(n,r,e){throw new Q(n).init(r,e),n}var nn={};function rn(n){for(;n.length;){var r=n.pop();n.pop()(r)}}function en(n){return this.fromWireType(_[n>>2])}var tn={},on={},an={},un=48,cn=57;function fn(n){if(void 0===n)return"_unknown";var r=(n=n.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return r>=un&&r<=cn?"_"+n:n}function sn(n,r){return n=fn(n),{[n]:function(){return r.apply(this,arguments)}}[n]}function ln(n,r){var e=sn(r,(function(n){this.name=r,this.message=n;var e=new Error(n).stack;void 0!==e&&(this.stack=this.toString()+"\n"+e.replace(/^Error(:[^\n]*)?\n/,""))}));return e.prototype=Object.create(n.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},e}var dn=void 0;function pn(n){throw new dn(n)}function vn(n,r,e){function t(r){var t=e(r);t.length!==n.length&&pn("Mismatched type converter count");for(var i=0;i<n.length;++i)Tn(n[i],t[i])}n.forEach((function(n){an[n]=r}));var i=new Array(r.length),o=[],a=0;r.forEach(((n,r)=>{on.hasOwnProperty(n)?i[r]=on[n]:(o.push(n),tn.hasOwnProperty(n)||(tn[n]=[]),tn[n].push((()=>{i[r]=on[n],++a===o.length&&t(i)})))})),0===o.length&&t(i)}function hn(n){var r=nn[n];delete nn[n];var e=r.rawConstructor,t=r.rawDestructor,i=r.fields;vn([n],i.map((n=>n.getterReturnType)).concat(i.map((n=>n.setterArgumentType))),(n=>{var o={};return i.forEach(((r,e)=>{var t=r.fieldName,a=n[e],u=r.getter,c=r.getterContext,f=n[e+i.length],s=r.setter,l=r.setterContext;o[t]={read:n=>a.fromWireType(u(c,n)),write:(n,r)=>{var e=[];s(l,n,f.toWireType(e,r)),rn(e)}}})),[{name:r.name,fromWireType:function(n){var r={};for(var e in o)r[e]=o[e].read(n);return t(n),r},toWireType:function(n,r){for(var i in o)if(!(i in r))throw new TypeError('Missing field: "'+i+'"');var a=e();for(i in o)o[i].write(a,r[i]);return null!==n&&n.push(t,a),a},argPackAdvance:8,readValueFromPointer:en,destructorFunction:t}]}))}function mn(n,r,e,t,i){}function gn(n){switch(n){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+n)}}function yn(){for(var n=new Array(256),r=0;r<256;++r)n[r]=String.fromCharCode(r);_n=n}var _n=void 0;function wn(n){for(var r="",e=n;m[e];)r+=_n[m[e++]];return r}var bn=void 0;function An(n){throw new bn(n)}function Tn(n,r,e={}){if(!("argPackAdvance"in r))throw new TypeError("registerType registeredInstance requires argPackAdvance");var t=r.name;if(n||An('type "'+t+'" must have a positive integer typeid pointer'),on.hasOwnProperty(n)){if(e.ignoreDuplicateRegistrations)return;An("Cannot register type '"+t+"' twice")}if(on[n]=r,delete an[n],tn.hasOwnProperty(n)){var i=tn[n];delete tn[n],i.forEach((n=>n()))}}function Cn(n,r,e,t,i){var o=gn(e);Tn(n,{name:r=wn(r),fromWireType:function(n){return!!n},toWireType:function(n,r){return r?t:i},argPackAdvance:8,readValueFromPointer:function(n){var t;if(1===e)t=h;else if(2===e)t=g;else{if(4!==e)throw new TypeError("Unknown boolean type size: "+r);t=_}return this.fromWireType(t[n>>o])},destructorFunction:null})}function Pn(){this.allocated=[void 0],this.freelist=[],this.get=function(n){return this.allocated[n]},this.allocate=function(n){let r=this.freelist.pop()||this.allocated.length;return this.allocated[r]=n,r},this.free=function(n){this.allocated[n]=void 0,this.freelist.push(n)}}var En=new Pn;function Wn(n){n>=En.reserved&&0==--En.get(n).refcount&&En.free(n)}function kn(){for(var n=0,r=En.reserved;r<En.allocated.length;++r)void 0!==En.allocated[r]&&++n;return n}function jn(){En.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),En.reserved=En.allocated.length,i.count_emval_handles=kn}var Fn={toValue:n=>(n||An("Cannot use deleted val. handle = "+n),En.get(n).value),toHandle:n=>{switch(n){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return En.allocate({refcount:1,value:n})}}};function Rn(n,r){Tn(n,{name:r=wn(r),fromWireType:function(n){var r=Fn.toValue(n);return Wn(n),r},toWireType:function(n,r){return Fn.toHandle(r)},argPackAdvance:8,readValueFromPointer:en,destructorFunction:null})}function Sn(n,r){switch(r){case 2:return function(n){return this.fromWireType(b[n>>2])};case 3:return function(n){return this.fromWireType(A[n>>3])};default:throw new TypeError("Unknown float type: "+n)}}function xn(n,r,e){var t=gn(e);Tn(n,{name:r=wn(r),fromWireType:function(n){return n},toWireType:function(n,r){return r},argPackAdvance:8,readValueFromPointer:Sn(r,t),destructorFunction:null})}function Un(n,r,e,t,i,o){var a=r.length;a<2&&An("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var u=null!==r[1]&&null!==e,c=!1,f=1;f<r.length;++f)if(null!==r[f]&&void 0===r[f].destructorFunction){c=!0;break}var s="void"!==r[0].name,l=a-2,d=new Array(l),p=[],v=[];return function(){var e;arguments.length!==l&&An("function "+n+" called with "+arguments.length+" arguments, expected "+l+" args!"),v.length=0,p.length=u?2:1,p[0]=i,u&&(e=r[1].toWireType(v,this),p[1]=e);for(var o=0;o<l;++o)d[o]=r[o+2].toWireType(v,arguments[o]),p.push(d[o]);function a(n){if(c)rn(v);else for(var t=u?1:2;t<r.length;t++){var i=1===t?e:d[t-2];null!==r[t].destructorFunction&&r[t].destructorFunction(i)}if(s)return r[0].fromWireType(n)}return a(t.apply(null,p))}}function In(n,r,e){if(void 0===n[r].overloadTable){var t=n[r];n[r]=function(){return n[r].overloadTable.hasOwnProperty(arguments.length)||An("Function '"+e+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+n[r].overloadTable+")!"),n[r].overloadTable[arguments.length].apply(this,arguments)},n[r].overloadTable=[],n[r].overloadTable[t.argCount]=t}}function On(n,r,e){i.hasOwnProperty(n)?((void 0===e||void 0!==i[n].overloadTable&&void 0!==i[n].overloadTable[e])&&An("Cannot register public name '"+n+"' twice"),In(i,n,n),i.hasOwnProperty(e)&&An("Cannot register multiple overloads of a function with the same number of arguments ("+e+")!"),i[n].overloadTable[e]=r):(i[n]=r,void 0!==e&&(i[n].numArguments=e))}function Hn(n,r){for(var e=[],t=0;t<n;t++)e.push(w[r+4*t>>2]);return e}function zn(n,r,e){i.hasOwnProperty(n)||pn("Replacing nonexistant public symbol"),void 0!==i[n].overloadTable&&void 0!==e?i[n].overloadTable[e]=r:(i[n]=r,i[n].argCount=e)}function Dn(n,r,e){var t=i["dynCall_"+n];return e&&e.length?t.apply(null,[r].concat(e)):t.call(null,r)}function Vn(n,r,e){return n.includes("j")?Dn(n,r,e):J(r).apply(null,e)}function Mn(n,r){var e=[];return function(){return e.length=0,Object.assign(e,arguments),Vn(n,r,e)}}function Bn(n,r){function e(){return n.includes("j")?Mn(n,r):J(r)}n=wn(n);var t=e();return"function"!=typeof t&&An("unknown function pointer with signature "+n+": "+r),t}var qn=void 0;function Nn(n){var r=xr(n),e=wn(r);return Sr(r),e}function Ln(n,r){var e=[],t={};function i(n){t[n]||on[n]||(an[n]?an[n].forEach(i):(e.push(n),t[n]=!0))}throw r.forEach(i),new qn(n+": "+e.map(Nn).join([", "]))}function Gn(n,r,e,t,i,o,a){var u=Hn(r,e);n=wn(n),i=Bn(t,i),On(n,(function(){Ln("Cannot call "+n+" due to unbound types",u)}),r-1),vn([],u,(function(e){var t=[e[0],null].concat(e.slice(1));return zn(n,Un(n,t,null,i,o),r-1),[]}))}function Xn(n,r,e){switch(r){case 0:return e?function(n){return h[n]}:function(n){return m[n]};case 1:return e?function(n){return g[n>>1]}:function(n){return y[n>>1]};case 2:return e?function(n){return _[n>>2]}:function(n){return w[n>>2]};default:throw new TypeError("Unknown integer type: "+n)}}function Zn(n,r,e,t,i){r=wn(r);var o=gn(e),a=n=>n;if(0===t){var u=32-8*e;a=n=>n<<u>>>u}var c=r.includes("unsigned"),f=(n,r)=>{};Tn(n,{name:r,fromWireType:a,toWireType:c?function(n,r){return f(r,this.name),r>>>0}:function(n,r){return f(r,this.name),r},argPackAdvance:8,readValueFromPointer:Xn(r,o,0!==t),destructorFunction:null})}function $n(n,r,e){var t=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][r];function i(n){var r=w,e=r[n>>=2],i=r[n+1];return new t(r.buffer,i,e)}Tn(n,{name:e=wn(e),fromWireType:i,argPackAdvance:8,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})}function Jn(n,r,e,t){if(!(t>0))return 0;for(var i=e,o=e+t-1,a=0;a<n.length;++a){var u=n.charCodeAt(a);if(u>=55296&&u<=57343&&(u=65536+((1023&u)<<10)|1023&n.charCodeAt(++a)),u<=127){if(e>=o)break;r[e++]=u}else if(u<=2047){if(e+1>=o)break;r[e++]=192|u>>6,r[e++]=128|63&u}else if(u<=65535){if(e+2>=o)break;r[e++]=224|u>>12,r[e++]=128|u>>6&63,r[e++]=128|63&u}else{if(e+3>=o)break;r[e++]=240|u>>18,r[e++]=128|u>>12&63,r[e++]=128|u>>6&63,r[e++]=128|63&u}}return r[e]=0,e-i}function Kn(n,r,e){return Jn(n,m,r,e)}function Qn(n){for(var r=0,e=0;e<n.length;++e){var t=n.charCodeAt(e);t<=127?r++:t<=2047?r+=2:t>=55296&&t<=57343?(r+=4,++e):r+=3}return r}var Yn="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function nr(n,r,e){for(var t=r+e,i=r;n[i]&&!(i>=t);)++i;if(i-r>16&&n.buffer&&Yn)return Yn.decode(n.subarray(r,i));for(var o="";r<i;){var a=n[r++];if(128&a){var u=63&n[r++];if(192!=(224&a)){var c=63&n[r++];if((a=224==(240&a)?(15&a)<<12|u<<6|c:(7&a)<<18|u<<12|c<<6|63&n[r++])<65536)o+=String.fromCharCode(a);else{var f=a-65536;o+=String.fromCharCode(55296|f>>10,56320|1023&f)}}else o+=String.fromCharCode((31&a)<<6|u)}else o+=String.fromCharCode(a)}return o}function rr(n,r){return n?nr(m,n,r):""}function er(n,r){var e="std::string"===(r=wn(r));Tn(n,{name:r,fromWireType:function(n){var r,t=w[n>>2],i=n+4;if(e)for(var o=i,a=0;a<=t;++a){var u=i+a;if(a==t||0==m[u]){var c=rr(o,u-o);void 0===r?r=c:(r+=String.fromCharCode(0),r+=c),o=u+1}}else{var f=new Array(t);for(a=0;a<t;++a)f[a]=String.fromCharCode(m[i+a]);r=f.join("")}return Sr(n),r},toWireType:function(n,r){var t;r instanceof ArrayBuffer&&(r=new Uint8Array(r));var i="string"==typeof r;i||r instanceof Uint8Array||r instanceof Uint8ClampedArray||r instanceof Int8Array||An("Cannot pass non-string to std::string"),t=e&&i?Qn(r):r.length;var o=Rr(4+t+1),a=o+4;if(w[o>>2]=t,e&&i)Kn(r,a,t+1);else if(i)for(var u=0;u<t;++u){var c=r.charCodeAt(u);c>255&&(Sr(a),An("String has UTF-16 code units that do not fit in 8 bits")),m[a+u]=c}else for(u=0;u<t;++u)m[a+u]=r[u];return null!==n&&n.push(Sr,o),o},argPackAdvance:8,readValueFromPointer:en,destructorFunction:function(n){Sr(n)}})}var tr="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function ir(n,r){for(var e=n,t=e>>1,i=t+r/2;!(t>=i)&&y[t];)++t;if((e=t<<1)-n>32&&tr)return tr.decode(m.subarray(n,e));for(var o="",a=0;!(a>=r/2);++a){var u=g[n+2*a>>1];if(0==u)break;o+=String.fromCharCode(u)}return o}function or(n,r,e){if(void 0===e&&(e=2147483647),e<2)return 0;for(var t=r,i=(e-=2)<2*n.length?e/2:n.length,o=0;o<i;++o){var a=n.charCodeAt(o);g[r>>1]=a,r+=2}return g[r>>1]=0,r-t}function ar(n){return 2*n.length}function ur(n,r){for(var e=0,t="";!(e>=r/4);){var i=_[n+4*e>>2];if(0==i)break;if(++e,i>=65536){var o=i-65536;t+=String.fromCharCode(55296|o>>10,56320|1023&o)}else t+=String.fromCharCode(i)}return t}function cr(n,r,e){if(void 0===e&&(e=2147483647),e<4)return 0;for(var t=r,i=t+e-4,o=0;o<n.length;++o){var a=n.charCodeAt(o);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&n.charCodeAt(++o)),_[r>>2]=a,(r+=4)+4>i)break}return _[r>>2]=0,r-t}function fr(n){for(var r=0,e=0;e<n.length;++e){var t=n.charCodeAt(e);t>=55296&&t<=57343&&++e,r+=4}return r}function sr(n,r,e){var t,i,o,a,u;e=wn(e),2===r?(t=ir,i=or,a=ar,o=()=>y,u=1):4===r&&(t=ur,i=cr,a=fr,o=()=>w,u=2),Tn(n,{name:e,fromWireType:function(n){for(var e,i=w[n>>2],a=o(),c=n+4,f=0;f<=i;++f){var s=n+4+f*r;if(f==i||0==a[s>>u]){var l=t(c,s-c);void 0===e?e=l:(e+=String.fromCharCode(0),e+=l),c=s+r}}return Sr(n),e},toWireType:function(n,t){"string"!=typeof t&&An("Cannot pass non-string to C++ string type "+e);var o=a(t),c=Rr(4+o+r);return w[c>>2]=o>>u,i(t,c+4,o+r),null!==n&&n.push(Sr,c),c},argPackAdvance:8,readValueFromPointer:en,destructorFunction:function(n){Sr(n)}})}function lr(n,r,e,t,i,o){nn[n]={name:wn(r),rawConstructor:Bn(e,t),rawDestructor:Bn(i,o),fields:[]}}function dr(n,r,e,t,i,o,a,u,c,f){nn[n].fields.push({fieldName:wn(r),getterReturnType:e,getter:Bn(t,i),getterContext:o,setterArgumentType:a,setter:Bn(u,c),setterContext:f})}function pr(n,r){Tn(n,{isVoid:!0,name:r=wn(r),argPackAdvance:0,fromWireType:function(){},toWireType:function(n,r){}})}function vr(n){n>4&&(En.get(n).refcount+=1)}var hr={};function mr(n){var r=hr[n];return void 0===r?wn(n):r}function gr(n){return Fn.toHandle(mr(n))}function yr(n,r){var e=on[n];return void 0===e&&An(r+" has unknown type "+Nn(n)),e}function _r(n,r){var e=(n=yr(n,"_emval_take_value")).readValueFromPointer(r);return Fn.toHandle(e)}function wr(){D("")}function br(n,r,e){m.copyWithin(n,r,r+e)}function Ar(){return 2147483648}function Tr(n){var r=d.buffer;try{return d.grow(n-r.byteLength+65535>>>16),P(),1}catch(e){}}function Cr(n){var r=m.length;n>>>=0;var e=Ar();if(n>e)return!1;let t=(n,r)=>n+(r-n%r)%r;for(var i=1;i<=4;i*=2){var o=r*(1+.2/i);if(o=Math.min(o,n+100663296),Tr(Math.min(e,t(Math.max(n,o),65536))))return!0}return!1}function Pr(n){return 52}function Er(n,r,e,t,i){return 70}var Wr=[null,[],[]];function kr(n,r){var e=Wr[n];0===r||10===r?((1===n?p:v)(nr(e,0)),e.length=0):e.push(r)}function jr(n,r,e,t){for(var i=0,o=0;o<e;o++){var a=w[r>>2],u=w[r+4>>2];r+=8;for(var c=0;c<u;c++)kr(n,m[a+c]);i+=u}return w[t>>2]=i,0}dn=i.InternalError=ln(Error,"InternalError"),yn(),bn=i.BindingError=ln(Error,"BindingError"),jn(),qn=i.UnboundTypeError=ln(Error,"UnboundTypeError");var Fr={__call_sighandler:K,__cxa_throw:Y,_embind_finalize_value_object:hn,_embind_register_bigint:mn,_embind_register_bool:Cn,_embind_register_emval:Rn,_embind_register_float:xn,_embind_register_function:Gn,_embind_register_integer:Zn,_embind_register_memory_view:$n,_embind_register_std_string:er,_embind_register_std_wstring:sr,_embind_register_value_object:lr,_embind_register_value_object_field:dr,_embind_register_void:pr,_emval_decref:Wn,_emval_incref:vr,_emval_new_cstring:gr,_emval_take_value:_r,abort:wr,emscripten_memcpy_big:br,emscripten_resize_heap:Cr,fd_close:Pr,fd_seek:Er,fd_write:jr};X();var Rr=function(){return(Rr=i.asm.malloc).apply(null,arguments)},Sr=function(){return(Sr=i.asm.free).apply(null,arguments)},xr=function(){return(xr=i.asm.__getTypeName).apply(null,arguments)};i.__embind_initialize_bindings=function(){return(i.__embind_initialize_bindings=i.asm._embind_initialize_bindings).apply(null,arguments)};var Ur,Ir=function(){return(Ir=i.asm.__cxa_is_pointer_type).apply(null,arguments)};function Or(){function n(){Ur||(Ur=!0,i.calledRun=!0,C||(F(),r(i),i.onRuntimeInitialized&&i.onRuntimeInitialized(),R()))}I>0||(j(),I>0||(i.setStatus?(i.setStatus("Running..."),setTimeout((function(){setTimeout((function(){i.setStatus("")}),1),n()}),1)):n()))}if(i.dynCall_vij=function(){return(i.dynCall_vij=i.asm.dynCall_vij).apply(null,arguments)},i.dynCall_jiji=function(){return(i.dynCall_jiji=i.asm.dynCall_jiji).apply(null,arguments)},O=function n(){Ur||Or(),Ur||(O=n)},i.preInit)for("function"==typeof i.preInit&&(i.preInit=[i.preInit]);i.preInit.length>0;)i.preInit.pop()();return Or(),n.ready},n.exports=i),e.exports;var n,t,i}const i=n(t()),o=Object.freeze(Object.defineProperty({__proto__:null,default:i},Symbol.toStringTag,{value:"Module"}));export{o as i};
|
|
5
|
+
import{g as n}from"./_commonjsHelpers.js";var r,e={exports:{}};function t(){return r||(r=1,n=e,t="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,i=function(n={}){var r,e,i=void 0!==n?n:{};i.ready=new Promise(((n,t)=>{r=n,e=t}));var o=Object.assign({},i),a="object"==typeof window,u="function"==typeof importScripts;"object"==typeof process&&"object"==typeof process.versions&&process.versions.node;var c,f="";function s(n){return i.locateFile?i.locateFile(n,f):f+n}(a||u)&&(u?f=self.location.href:"undefined"!=typeof document&&document.currentScript&&(f=document.currentScript.src),t&&(f=t),f=0!==f.indexOf("blob:")?f.substr(0,f.replace(/[?#].*/,"").lastIndexOf("/")+1):"",u&&(c=n=>{var r=new XMLHttpRequest;return r.open("GET",n,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}));var l,d,p=i.print||console.log.bind(console),v=i.printErr||console.warn.bind(console);Object.assign(i,o),o=null,i.arguments&&i.arguments,i.thisProgram&&i.thisProgram,i.quit&&i.quit,i.wasmBinary&&(l=i.wasmBinary),i.noExitRuntime,"object"!=typeof WebAssembly&&D("no native wasm support detected");var h,m,g,y,_,w,b,A,T,C=!1;function P(){var n=d.buffer;i.HEAP8=h=new Int8Array(n),i.HEAP16=g=new Int16Array(n),i.HEAP32=_=new Int32Array(n),i.HEAPU8=m=new Uint8Array(n),i.HEAPU16=y=new Uint16Array(n),i.HEAPU32=w=new Uint32Array(n),i.HEAPF32=b=new Float32Array(n),i.HEAPF64=A=new Float64Array(n)}var E=[],W=[],k=[];function j(){if(i.preRun)for("function"==typeof i.preRun&&(i.preRun=[i.preRun]);i.preRun.length;)S(i.preRun.shift());Z(E)}function F(){Z(W)}function R(){if(i.postRun)for("function"==typeof i.postRun&&(i.postRun=[i.postRun]);i.postRun.length;)U(i.postRun.shift());Z(k)}function S(n){E.unshift(n)}function x(n){W.unshift(n)}function U(n){k.unshift(n)}var I=0,O=null;function H(n){I++,i.monitorRunDependencies&&i.monitorRunDependencies(I)}function z(n){if(I--,i.monitorRunDependencies&&i.monitorRunDependencies(I),0==I&&O){var r=O;O=null,r()}}function D(n){i.onAbort&&i.onAbort(n),v(n="Aborted("+n+")"),C=!0,n+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(n);throw e(r),r}var V,M="data:application/octet-stream;base64,";function B(n){return n.startsWith(M)}function q(n){try{if(n==V&&l)return new Uint8Array(l);if(c)return c(n);throw"both async and sync fetching of the wasm failed"}catch(v){D(v)}}function N(n){return l||!a&&!u||"function"!=typeof fetch?Promise.resolve().then((()=>q(n))):fetch(n,{credentials:"same-origin"}).then((r=>{if(!r.ok)throw"failed to load wasm binary file at '"+n+"'";return r.arrayBuffer()})).catch((()=>q(n)))}function L(n,r,e){return N(n).then((n=>WebAssembly.instantiate(n,r))).then((n=>n)).then(e,(n=>{v("failed to asynchronously prepare wasm: "+n),D(n)}))}function G(n,r,e,t){return n||"function"!=typeof WebAssembly.instantiateStreaming||B(r)||"function"!=typeof fetch?L(r,e,t):fetch(r,{credentials:"same-origin"}).then((n=>WebAssembly.instantiateStreaming(n,e).then(t,(function(n){return v("wasm streaming compile failed: "+n),v("falling back to ArrayBuffer instantiation"),L(r,e,t)}))))}function X(){var n={env:Fr,wasi_snapshot_preview1:Fr};function r(n,r){var e=n.exports;return i.asm=e,d=i.asm.memory,P(),T=i.asm.__indirect_function_table,x(i.asm.__wasm_call_ctors),z(),e}function t(n){r(n.instance)}if(H(),i.instantiateWasm)try{return i.instantiateWasm(n,r)}catch(o){v("Module.instantiateWasm callback failed with error: "+o),e(o)}return G(l,V,n,t).catch(e),{}}function Z(n){for(;n.length>0;)n.shift()(i)}B(V="i3s.wasm")||(V=s(V));var $=[];function J(n){var r=$[n];return r||(n>=$.length&&($.length=n+1),$[n]=r=T.get(n)),r}function K(n,r){J(n)(r)}function Q(n){this.excPtr=n,this.ptr=n-24,this.set_type=function(n){w[this.ptr+4>>2]=n},this.get_type=function(){return w[this.ptr+4>>2]},this.set_destructor=function(n){w[this.ptr+8>>2]=n},this.get_destructor=function(){return w[this.ptr+8>>2]},this.set_caught=function(n){n=n?1:0,h[this.ptr+12|0]=n},this.get_caught=function(){return 0!=h[this.ptr+12|0]},this.set_rethrown=function(n){n=n?1:0,h[this.ptr+13|0]=n},this.get_rethrown=function(){return 0!=h[this.ptr+13|0]},this.init=function(n,r){this.set_adjusted_ptr(0),this.set_type(n),this.set_destructor(r)},this.set_adjusted_ptr=function(n){w[this.ptr+16>>2]=n},this.get_adjusted_ptr=function(){return w[this.ptr+16>>2]},this.get_exception_ptr=function(){if(Ir(this.get_type()))return w[this.excPtr>>2];var n=this.get_adjusted_ptr();return 0!==n?n:this.excPtr}}function Y(n,r,e){throw new Q(n).init(r,e),n}var nn={};function rn(n){for(;n.length;){var r=n.pop();n.pop()(r)}}function en(n){return this.fromWireType(_[n>>2])}var tn={},on={},an={},un=48,cn=57;function fn(n){if(void 0===n)return"_unknown";var r=(n=n.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return r>=un&&r<=cn?"_"+n:n}function sn(n,r){return n=fn(n),{[n]:function(){return r.apply(this,arguments)}}[n]}function ln(n,r){var e=sn(r,(function(n){this.name=r,this.message=n;var e=new Error(n).stack;void 0!==e&&(this.stack=this.toString()+"\n"+e.replace(/^Error(:[^\n]*)?\n/,""))}));return e.prototype=Object.create(n.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},e}var dn=void 0;function pn(n){throw new dn(n)}function vn(n,r,e){function t(r){var t=e(r);t.length!==n.length&&pn("Mismatched type converter count");for(var i=0;i<n.length;++i)Tn(n[i],t[i])}n.forEach((function(n){an[n]=r}));var i=new Array(r.length),o=[],a=0;r.forEach(((n,r)=>{on.hasOwnProperty(n)?i[r]=on[n]:(o.push(n),tn.hasOwnProperty(n)||(tn[n]=[]),tn[n].push((()=>{i[r]=on[n],++a===o.length&&t(i)})))})),0===o.length&&t(i)}function hn(n){var r=nn[n];delete nn[n];var e=r.rawConstructor,t=r.rawDestructor,i=r.fields;vn([n],i.map((n=>n.getterReturnType)).concat(i.map((n=>n.setterArgumentType))),(n=>{var o={};return i.forEach(((r,e)=>{var t=r.fieldName,a=n[e],u=r.getter,c=r.getterContext,f=n[e+i.length],s=r.setter,l=r.setterContext;o[t]={read:n=>a.fromWireType(u(c,n)),write:(n,r)=>{var e=[];s(l,n,f.toWireType(e,r)),rn(e)}}})),[{name:r.name,fromWireType:function(n){var r={};for(var e in o)r[e]=o[e].read(n);return t(n),r},toWireType:function(n,r){for(var i in o)if(!(i in r))throw new TypeError('Missing field: "'+i+'"');var a=e();for(i in o)o[i].write(a,r[i]);return null!==n&&n.push(t,a),a},argPackAdvance:8,readValueFromPointer:en,destructorFunction:t}]}))}function mn(n,r,e,t,i){}function gn(n){switch(n){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+n)}}function yn(){for(var n=new Array(256),r=0;r<256;++r)n[r]=String.fromCharCode(r);_n=n}var _n=void 0;function wn(n){for(var r="",e=n;m[e];)r+=_n[m[e++]];return r}var bn=void 0;function An(n){throw new bn(n)}function Tn(n,r,e={}){if(!("argPackAdvance"in r))throw new TypeError("registerType registeredInstance requires argPackAdvance");var t=r.name;if(n||An('type "'+t+'" must have a positive integer typeid pointer'),on.hasOwnProperty(n)){if(e.ignoreDuplicateRegistrations)return;An("Cannot register type '"+t+"' twice")}if(on[n]=r,delete an[n],tn.hasOwnProperty(n)){var i=tn[n];delete tn[n],i.forEach((n=>n()))}}function Cn(n,r,e,t,i){var o=gn(e);Tn(n,{name:r=wn(r),fromWireType:function(n){return!!n},toWireType:function(n,r){return r?t:i},argPackAdvance:8,readValueFromPointer:function(n){var t;if(1===e)t=h;else if(2===e)t=g;else{if(4!==e)throw new TypeError("Unknown boolean type size: "+r);t=_}return this.fromWireType(t[n>>o])},destructorFunction:null})}function Pn(){this.allocated=[void 0],this.freelist=[],this.get=function(n){return this.allocated[n]},this.allocate=function(n){let r=this.freelist.pop()||this.allocated.length;return this.allocated[r]=n,r},this.free=function(n){this.allocated[n]=void 0,this.freelist.push(n)}}var En=new Pn;function Wn(n){n>=En.reserved&&0==--En.get(n).refcount&&En.free(n)}function kn(){for(var n=0,r=En.reserved;r<En.allocated.length;++r)void 0!==En.allocated[r]&&++n;return n}function jn(){En.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),En.reserved=En.allocated.length,i.count_emval_handles=kn}var Fn={toValue:n=>(n||An("Cannot use deleted val. handle = "+n),En.get(n).value),toHandle:n=>{switch(n){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return En.allocate({refcount:1,value:n})}}};function Rn(n,r){Tn(n,{name:r=wn(r),fromWireType:function(n){var r=Fn.toValue(n);return Wn(n),r},toWireType:function(n,r){return Fn.toHandle(r)},argPackAdvance:8,readValueFromPointer:en,destructorFunction:null})}function Sn(n,r){switch(r){case 2:return function(n){return this.fromWireType(b[n>>2])};case 3:return function(n){return this.fromWireType(A[n>>3])};default:throw new TypeError("Unknown float type: "+n)}}function xn(n,r,e){var t=gn(e);Tn(n,{name:r=wn(r),fromWireType:function(n){return n},toWireType:function(n,r){return r},argPackAdvance:8,readValueFromPointer:Sn(r,t),destructorFunction:null})}function Un(n,r,e,t,i,o){var a=r.length;a<2&&An("argTypes array size mismatch! Must at least get return value and 'this' types!"),r[1];for(var u=!1,c=1;c<r.length;++c)if(null!==r[c]&&void 0===r[c].destructorFunction){u=!0;break}var f="void"!==r[0].name,s=a-2,l=new Array(s),d=[],p=[];return function(){var e;arguments.length!==s&&An("function "+n+" called with "+arguments.length+" arguments, expected "+s+" args!"),p.length=0,d.length=1,d[0]=i;for(var o=0;o<s;++o)l[o]=r[o+2].toWireType(p,arguments[o]),d.push(l[o]);function a(n){if(u)rn(p);else for(var t=2;t<r.length;t++){var i=1===t?e:l[t-2];null!==r[t].destructorFunction&&r[t].destructorFunction(i)}if(f)return r[0].fromWireType(n)}return a(t.apply(null,d))}}function In(n,r,e){if(void 0===n[r].overloadTable){var t=n[r];n[r]=function(){return n[r].overloadTable.hasOwnProperty(arguments.length)||An("Function '"+e+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+n[r].overloadTable+")!"),n[r].overloadTable[arguments.length].apply(this,arguments)},n[r].overloadTable=[],n[r].overloadTable[t.argCount]=t}}function On(n,r,e){i.hasOwnProperty(n)?((void 0===e||void 0!==i[n].overloadTable&&void 0!==i[n].overloadTable[e])&&An("Cannot register public name '"+n+"' twice"),In(i,n,n),i.hasOwnProperty(e)&&An("Cannot register multiple overloads of a function with the same number of arguments ("+e+")!"),i[n].overloadTable[e]=r):(i[n]=r,void 0!==e&&(i[n].numArguments=e))}function Hn(n,r){for(var e=[],t=0;t<n;t++)e.push(w[r+4*t>>2]);return e}function zn(n,r,e){i.hasOwnProperty(n)||pn("Replacing nonexistant public symbol"),void 0!==i[n].overloadTable&&void 0!==e?i[n].overloadTable[e]=r:(i[n]=r,i[n].argCount=e)}function Dn(n,r,e){var t=i["dynCall_"+n];return e&&e.length?t.apply(null,[r].concat(e)):t.call(null,r)}function Vn(n,r,e){return n.includes("j")?Dn(n,r,e):J(r).apply(null,e)}function Mn(n,r){var e=[];return function(){return e.length=0,Object.assign(e,arguments),Vn(n,r,e)}}function Bn(n,r){function e(){return n.includes("j")?Mn(n,r):J(r)}n=wn(n);var t=e();return"function"!=typeof t&&An("unknown function pointer with signature "+n+": "+r),t}var qn=void 0;function Nn(n){var r=xr(n),e=wn(r);return Sr(r),e}function Ln(n,r){var e=[],t={};function i(n){t[n]||on[n]||(an[n]?an[n].forEach(i):(e.push(n),t[n]=!0))}throw r.forEach(i),new qn(n+": "+e.map(Nn).join([", "]))}function Gn(n,r,e,t,i,o,a){var u=Hn(r,e);n=wn(n),i=Bn(t,i),On(n,(function(){Ln("Cannot call "+n+" due to unbound types",u)}),r-1),vn([],u,(function(e){var t=[e[0],null].concat(e.slice(1));return zn(n,Un(n,t,null,i,o),r-1),[]}))}function Xn(n,r,e){switch(r){case 0:return e?function(n){return h[n]}:function(n){return m[n]};case 1:return e?function(n){return g[n>>1]}:function(n){return y[n>>1]};case 2:return e?function(n){return _[n>>2]}:function(n){return w[n>>2]};default:throw new TypeError("Unknown integer type: "+n)}}function Zn(n,r,e,t,i){r=wn(r);var o=gn(e),a=n=>n;if(0===t){var u=32-8*e;a=n=>n<<u>>>u}var c=r.includes("unsigned"),f=(n,r)=>{};Tn(n,{name:r,fromWireType:a,toWireType:c?function(n,r){return f(r,this.name),r>>>0}:function(n,r){return f(r,this.name),r},argPackAdvance:8,readValueFromPointer:Xn(r,o,0!==t),destructorFunction:null})}function $n(n,r,e){var t=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][r];function i(n){var r=w,e=r[n>>=2],i=r[n+1];return new t(r.buffer,i,e)}Tn(n,{name:e=wn(e),fromWireType:i,argPackAdvance:8,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})}function Jn(n,r,e,t){if(!(t>0))return 0;for(var i=e,o=e+t-1,a=0;a<n.length;++a){var u=n.charCodeAt(a);if(u>=55296&&u<=57343&&(u=65536+((1023&u)<<10)|1023&n.charCodeAt(++a)),u<=127){if(e>=o)break;r[e++]=u}else if(u<=2047){if(e+1>=o)break;r[e++]=192|u>>6,r[e++]=128|63&u}else if(u<=65535){if(e+2>=o)break;r[e++]=224|u>>12,r[e++]=128|u>>6&63,r[e++]=128|63&u}else{if(e+3>=o)break;r[e++]=240|u>>18,r[e++]=128|u>>12&63,r[e++]=128|u>>6&63,r[e++]=128|63&u}}return r[e]=0,e-i}function Kn(n,r,e){return Jn(n,m,r,e)}function Qn(n){for(var r=0,e=0;e<n.length;++e){var t=n.charCodeAt(e);t<=127?r++:t<=2047?r+=2:t>=55296&&t<=57343?(r+=4,++e):r+=3}return r}var Yn="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function nr(n,r,e){for(var t=r+e,i=r;n[i]&&!(i>=t);)++i;if(i-r>16&&n.buffer&&Yn)return Yn.decode(n.subarray(r,i));for(var o="";r<i;){var a=n[r++];if(128&a){var u=63&n[r++];if(192!=(224&a)){var c=63&n[r++];if((a=224==(240&a)?(15&a)<<12|u<<6|c:(7&a)<<18|u<<12|c<<6|63&n[r++])<65536)o+=String.fromCharCode(a);else{var f=a-65536;o+=String.fromCharCode(55296|f>>10,56320|1023&f)}}else o+=String.fromCharCode((31&a)<<6|u)}else o+=String.fromCharCode(a)}return o}function rr(n,r){return n?nr(m,n,r):""}function er(n,r){var e="std::string"===(r=wn(r));Tn(n,{name:r,fromWireType:function(n){var r,t=w[n>>2],i=n+4;if(e)for(var o=i,a=0;a<=t;++a){var u=i+a;if(a==t||0==m[u]){var c=rr(o,u-o);void 0===r?r=c:(r+=String.fromCharCode(0),r+=c),o=u+1}}else{var f=new Array(t);for(a=0;a<t;++a)f[a]=String.fromCharCode(m[i+a]);r=f.join("")}return Sr(n),r},toWireType:function(n,r){var t;r instanceof ArrayBuffer&&(r=new Uint8Array(r));var i="string"==typeof r;i||r instanceof Uint8Array||r instanceof Uint8ClampedArray||r instanceof Int8Array||An("Cannot pass non-string to std::string"),t=e&&i?Qn(r):r.length;var o=Rr(4+t+1),a=o+4;if(w[o>>2]=t,e&&i)Kn(r,a,t+1);else if(i)for(var u=0;u<t;++u){var c=r.charCodeAt(u);c>255&&(Sr(a),An("String has UTF-16 code units that do not fit in 8 bits")),m[a+u]=c}else for(u=0;u<t;++u)m[a+u]=r[u];return null!==n&&n.push(Sr,o),o},argPackAdvance:8,readValueFromPointer:en,destructorFunction:function(n){Sr(n)}})}var tr="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function ir(n,r){for(var e=n,t=e>>1,i=t+r/2;!(t>=i)&&y[t];)++t;if((e=t<<1)-n>32&&tr)return tr.decode(m.subarray(n,e));for(var o="",a=0;!(a>=r/2);++a){var u=g[n+2*a>>1];if(0==u)break;o+=String.fromCharCode(u)}return o}function or(n,r,e){if(void 0===e&&(e=2147483647),e<2)return 0;for(var t=r,i=(e-=2)<2*n.length?e/2:n.length,o=0;o<i;++o){var a=n.charCodeAt(o);g[r>>1]=a,r+=2}return g[r>>1]=0,r-t}function ar(n){return 2*n.length}function ur(n,r){for(var e=0,t="";!(e>=r/4);){var i=_[n+4*e>>2];if(0==i)break;if(++e,i>=65536){var o=i-65536;t+=String.fromCharCode(55296|o>>10,56320|1023&o)}else t+=String.fromCharCode(i)}return t}function cr(n,r,e){if(void 0===e&&(e=2147483647),e<4)return 0;for(var t=r,i=t+e-4,o=0;o<n.length;++o){var a=n.charCodeAt(o);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&n.charCodeAt(++o)),_[r>>2]=a,(r+=4)+4>i)break}return _[r>>2]=0,r-t}function fr(n){for(var r=0,e=0;e<n.length;++e){var t=n.charCodeAt(e);t>=55296&&t<=57343&&++e,r+=4}return r}function sr(n,r,e){var t,i,o,a,u;e=wn(e),2===r?(t=ir,i=or,a=ar,o=()=>y,u=1):4===r&&(t=ur,i=cr,a=fr,o=()=>w,u=2),Tn(n,{name:e,fromWireType:function(n){for(var e,i=w[n>>2],a=o(),c=n+4,f=0;f<=i;++f){var s=n+4+f*r;if(f==i||0==a[s>>u]){var l=t(c,s-c);void 0===e?e=l:(e+=String.fromCharCode(0),e+=l),c=s+r}}return Sr(n),e},toWireType:function(n,t){"string"!=typeof t&&An("Cannot pass non-string to C++ string type "+e);var o=a(t),c=Rr(4+o+r);return w[c>>2]=o>>u,i(t,c+4,o+r),null!==n&&n.push(Sr,c),c},argPackAdvance:8,readValueFromPointer:en,destructorFunction:function(n){Sr(n)}})}function lr(n,r,e,t,i,o){nn[n]={name:wn(r),rawConstructor:Bn(e,t),rawDestructor:Bn(i,o),fields:[]}}function dr(n,r,e,t,i,o,a,u,c,f){nn[n].fields.push({fieldName:wn(r),getterReturnType:e,getter:Bn(t,i),getterContext:o,setterArgumentType:a,setter:Bn(u,c),setterContext:f})}function pr(n,r){Tn(n,{isVoid:!0,name:r=wn(r),argPackAdvance:0,fromWireType:function(){},toWireType:function(n,r){}})}function vr(n){n>4&&(En.get(n).refcount+=1)}var hr={};function mr(n){var r=hr[n];return void 0===r?wn(n):r}function gr(n){return Fn.toHandle(mr(n))}function yr(n,r){var e=on[n];return void 0===e&&An(r+" has unknown type "+Nn(n)),e}function _r(n,r){var e=(n=yr(n,"_emval_take_value")).readValueFromPointer(r);return Fn.toHandle(e)}function wr(){D("")}function br(n,r,e){m.copyWithin(n,r,r+e)}function Ar(){return 2147483648}function Tr(n){var r=d.buffer;try{return d.grow(n-r.byteLength+65535>>>16),P(),1}catch(e){}}function Cr(n){var r=m.length;n>>>=0;var e=Ar();if(n>e)return!1;let t=(n,r)=>n+(r-n%r)%r;for(var i=1;i<=4;i*=2){var o=r*(1+.2/i);if(o=Math.min(o,n+100663296),Tr(Math.min(e,t(Math.max(n,o),65536))))return!0}return!1}function Pr(n){return 52}function Er(n,r,e,t,i){return 70}var Wr=[null,[],[]];function kr(n,r){var e=Wr[n];0===r||10===r?((1===n?p:v)(nr(e,0)),e.length=0):e.push(r)}function jr(n,r,e,t){for(var i=0,o=0;o<e;o++){var a=w[r>>2],u=w[r+4>>2];r+=8;for(var c=0;c<u;c++)kr(n,m[a+c]);i+=u}return w[t>>2]=i,0}dn=i.InternalError=ln(Error,"InternalError"),yn(),bn=i.BindingError=ln(Error,"BindingError"),jn(),qn=i.UnboundTypeError=ln(Error,"UnboundTypeError");var Fr={__call_sighandler:K,__cxa_throw:Y,_embind_finalize_value_object:hn,_embind_register_bigint:mn,_embind_register_bool:Cn,_embind_register_emval:Rn,_embind_register_float:xn,_embind_register_function:Gn,_embind_register_integer:Zn,_embind_register_memory_view:$n,_embind_register_std_string:er,_embind_register_std_wstring:sr,_embind_register_value_object:lr,_embind_register_value_object_field:dr,_embind_register_void:pr,_emval_decref:Wn,_emval_incref:vr,_emval_new_cstring:gr,_emval_take_value:_r,abort:wr,emscripten_memcpy_big:br,emscripten_resize_heap:Cr,fd_close:Pr,fd_seek:Er,fd_write:jr};X();var Rr=function(){return(Rr=i.asm.malloc).apply(null,arguments)},Sr=function(){return(Sr=i.asm.free).apply(null,arguments)},xr=function(){return(xr=i.asm.__getTypeName).apply(null,arguments)};i.__embind_initialize_bindings=function(){return(i.__embind_initialize_bindings=i.asm._embind_initialize_bindings).apply(null,arguments)};var Ur,Ir=function(){return(Ir=i.asm.__cxa_is_pointer_type).apply(null,arguments)};function Or(){function n(){Ur||(Ur=!0,i.calledRun=!0,C||(F(),r(i),i.onRuntimeInitialized&&i.onRuntimeInitialized(),R()))}I>0||(j(),I>0||(i.setStatus?(i.setStatus("Running..."),setTimeout((function(){setTimeout((function(){i.setStatus("")}),1),n()}),1)):n()))}if(i.dynCall_vij=function(){return(i.dynCall_vij=i.asm.dynCall_vij).apply(null,arguments)},i.dynCall_jiji=function(){return(i.dynCall_jiji=i.asm.dynCall_jiji).apply(null,arguments)},O=function n(){Ur||Or(),Ur||(O=n)},i.preInit)for("function"==typeof i.preInit&&(i.preInit=[i.preInit]);i.preInit.length>0;)i.preInit.pop()();return Or(),n.ready},n.exports=i),e.exports;var n,t,i}const i=n(t()),o=Object.freeze(Object.defineProperty({__proto__:null,default:i},Symbol.toStringTag,{value:"Module"}));export{o as i};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*
|
|
2
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
+
*/
|
|
5
|
+
import{isSome as e}from"../core/arrayUtils.js";import{supportsCurves as r,accelerateGeometry as t,execute as o,executeMany as s}from"../geometry/operators/gx/operatorIntersection.js";import{getSpatialReference as a,fromSpatialReference as n,fromGeometry as c,toGeometry as p}from"../geometry/operators/support/apiConverter.js";function u(e){const r=a(e);return t(c(e),n(r))}function i(e,r){const t=a(e);return p(o(c(e),c(r),n(t)),t)}function m(r,t){const o=r.map(c),u=a(r);return s(o,c(t),n(u),7).map((e=>p(e,u))).filter(e)}const f=r(),l=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:u,execute:i,executeMany:m,supportsCurves:f},Symbol.toStringTag,{value:"Module"}));export{u as a,m as b,i as e,l as i,f as s};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*
|
|
2
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
+
*/
|
|
5
|
+
import{O as e}from"./OperatorIntersects.js";import{getSpatialReference as r,fromGeometry as t,fromSpatialReference as o}from"../geometry/operators/support/apiConverter.js";const s=new e;function a(e){const a=r(e);return s.accelerateGeometry(t(e),o(a),1)}function n(e,r){return s.execute(t(e),t(r),o(e.spatialReference),null)}const c=s.supportsCurves(),p=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:a,execute:n,supportsCurves:c},Symbol.toStringTag,{value:"Module"}));export{a,n as e,p as i,c as s};
|
package/chunks/languageUtils.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import e from"../config.js";import{version as t}from"../kernel.js";import{ArcadeDate as n,createDateTimeZone as r}from"../arcade/ArcadeDate.js";import{ArcadeModule as i}from"../arcade/ArcadeModule.js";import{ArcadeExecutionError as a,ExecutionErrorCodes as o}from"../arcade/executionError.js";import{ArcadeFunction as u}from"../arcade/FunctionWrapper.js";import l from"../arcade/ImmutableArray.js";import s from"../arcade/ImmutablePathArray.js";import f from"../arcade/ImmutablePointArray.js";import{esriFieldToJson as c,layerGeometryEsriRestConstants as m}from"../arcade/featureset/support/shared.js";import{format as d,parse as p}from"../core/number.js";import{DateOnly as y}from"../core/sql/DateOnly.js";import{TimeOnly as g}from"../core/sql/TimeOnly.js";import h from"../geometry/Extent.js";import b from"../geometry/Geometry.js";import N from"../geometry/Multipoint.js";import S from"../geometry/Point.js";import Z from"../geometry/Polygon.js";import T from"../geometry/Polyline.js";import A from"../geometry/SpatialReference.js";import{isClockwise as k}from"../geometry/support/coordsUtils.js";import{fromJSON as j}from"../geometry/support/jsonUtils.js";import{getLocale as C}from"../intl/locale.js";import{isString as D,isNumber as F,isBoolean as w,isArray as x,isDate as M,isGraphic as O,isInteger as R}from"../support/guards.js";import{DateTime as J}from"luxon";class v{constructor(e){this.value=e}}class _{constructor(e){this.value=e}}const I={type:"VOID"},Y=Symbol("BREAK"),P=Symbol("CONTINUE");function G(e,t,n){return""===t||null==t||t===n||t===n?e:e=e.split(t).join(n)}function L(e){return e instanceof u}function z(e){return e instanceof i}function V(e){return!!D(e)||(!!F(e)||(!!X(e)||(!!ee(e)||(!!te(e)||(!!w(e)||(null===e||(e===I||"number"==typeof e)))))))}function q(e,t){return void 0===e?t:e}function E(e){return null==e?"":x(e)||Q(e)?"Array":X(e)?"Date":te(e)?"Time":ee(e)?"DateOnly":D(e)?"String":w(e)?"Boolean":F(e)?"Number":"esri.arcade.Attachment"===e?.declaredClass?"Attachment":"esri.arcade.Portal"===e?.declaredClass?"Portal":"esri.arcade.Dictionary"===e?.declaredClass?"Dictionary":$(e)?"KnowledgeGraph":e instanceof i?"Module":H(e)?"Feature":e instanceof S?"Point":e instanceof Z?"Polygon":e instanceof T?"Polyline":e instanceof N?"Multipoint":e instanceof h?"Extent":L(e)?"Function":B(e)?"FeatureSet":W(e)?"FeatureSetCollection":e===I?"":"number"==typeof e&&isNaN(e)?"Number":"Unrecognized Type"}function U(e){return e instanceof b}function H(e){return"esri.arcade.Feature"===e?.arcadeDeclaredClass}function B(e){return"esri.arcade.featureset.support.FeatureSet"===e?.declaredRootClass}function K(e){return"esri.arcade.Dictionary"===e?.declaredClass}function W(e){return"esri.arcade.featureSetCollection"===e?.declaredRootClass}function $(e){return"esri.rest.knowledgeGraph.KnowledgeGraph"===e?.declaredClass}function Q(e){return e instanceof l}function X(e){return e instanceof n}function ee(e){return e instanceof y}function te(e){return e instanceof g}function ne(e){return null!=e&&"object"==typeof e}function re(e,t,n,r,i){if(e.length<t||e.length>n)throw new a(r,o.WrongNumberOfParameters,i)}function ie(e){return e<0?-Math.round(-e):Math.round(e)}function ae(e,t){return isNaN(e)||null==t||""===t?e.toString():(t=G(t,"‰",""),t=G(t,"¤",""),d(e,{pattern:t}))}function oe(e,t){return null==t||""===t?e.toISOString(!0):e.toFormat(ue(t),{locale:C(),numberingSystem:"latn"})}function ue(e,t=!1){e=e.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let n="";const r=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|Z{1,5}|.)/g;for(const i of e.match(r)||[])switch(i){case"D":n+="d";break;case"DD":n+="dd";break;case"DDD":n+="o";break;case"d":n+="c";break;case"ddd":n+="ccc";break;case"dddd":n+="cccc";break;case"M":n+="L";break;case"MM":n+="LL";break;case"MMM":n+="LLL";break;case"MMMM":n+="LLLL";break;case"YY":n+="yy";break;case"Y":case"YYYY":n+="yyyy";break;case"Q":n+="q";break;case"Z":n+="Z";break;case"ZZ":n+="ZZ";break;case"ZZZ":n+="ZZZ";break;case"ZZZZ":n+=t?"[ZZZZ]":"ZZZZ";break;case"ZZZZZ":n+=t?"[ZZZZZ]":"ZZZZZ";break;case"S":n+="'S'";break;case"SS":n+="'SS'";break;case"SSS":n+="u";break;case"A":case"a":n+="a";break;case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":case"X":case"x":n+=i;break;default:i.length>=2&&"["===i.slice(0,1)&&"]"===i.slice(-1)?n+=`'${i.slice(1,-1)}'`:n+=`'${i}'`}return n}function le(e,t,n){switch(n){case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}return!1}function se(e,t,r){if(null===e){if(null===t||t===I)return le(null,null,r);if(F(t))return le(0,t,r);if(D(t))return le(0,ye(t),r);if(w(t))return le(0,ye(t),r);if(X(t))return le(0,t.toNumber(),r);if(te(t))return le(e,t.toNumber(),r);if(ee(t))return le(e,t.toNumber(),r)}if(e===I){if(null===t||t===I)return le(null,null,r);if(F(t))return le(0,t,r);if(D(t))return le(0,ye(t),r);if(w(t))return le(0,ye(t),r);if(X(t))return le(0,t.toNumber(),r);if(te(t))return le(e,t.toNumber(),r);if(ee(t))return le(e,t.toNumber(),r)}else if(F(e)){if(F(t))return le(e,t,r);if(w(t))return le(e,ye(t),r);if(null===t||t===I)return le(e,0,r);if(D(t))return le(e,ye(t),r);if(X(t))return le(e,t.toNumber(),r);if(te(t))return le(e,t.toNumber(),r);if(ee(t))return le(e,t.toNumber(),r)}else if(D(e)){if(D(t))return le(ce(e),ce(t),r);if(X(t))return le(ye(e),t.toNumber(),r);if(te(t))return le(ye(e),t.toNumber(),r);if(ee(t))return le(ye(e),t.toNumber(),r);if(F(t))return le(ye(e),t,r);if(null===t||t===I)return le(ye(e),0,r);if(w(t))return le(ye(e),ye(t),r)}else if(X(e)){if(X(t))return e.timeZone!==t.timeZone&&(e.isUnknownTimeZone?e=n.arcadeDateAndZoneToArcadeDate(e,t.timeZone):t.isUnknownTimeZone&&(t=n.arcadeDateAndZoneToArcadeDate(t,e.timeZone))),le(e.toNumber(),t.toNumber(),r);if(null===t||t===I)return le(e.toNumber(),0,r);if(F(t))return le(e.toNumber(),t,r);if(w(t))return le(e.toNumber(),ye(t),r);if(D(t))return le(e.toNumber(),ye(t),r);if(te(t))throw new a(null,o.CannotCompareDateAndTime,null);if(ee(t))return le(e.toNumber(),t.toNumber(),r)}else if(w(e)){if(w(t))return le(e,t,r);if(F(t))return le(ye(e),ye(t),r);if(X(t))return le(ye(e),t.toNumber(),r);if(te(t))return le(ye(e),t.toNumber(),r);if(ee(t))return le(ye(e),t.toNumber(),r);if(null===t||t===I)return le(ye(e),0,r);if(D(t))return le(ye(e),ye(t),r)}else if(ee(e)){if(X(t))return le(e.toNumber(),t.toNumber(),r);if(null===t||t===I)return le(e.toNumber(),0,r);if(F(t))return le(e.toNumber(),t,r);if(w(t))return le(e.toNumber(),ye(t),r);if(D(t))return le(e.toNumber(),ye(t),r);if(te(t))throw new a(null,o.CannotCompareDateAndTime,null);if(ee(t))return le(e.toNumber(),t.toNumber(),r)}else if(te(e)){if(X(t))throw new a(null,o.CannotCompareDateAndTime,null);if(null===t||t===I)return le(e.toNumber(),0,r);if(F(t))return le(e.toNumber(),t,r);if(w(t))return le(e.toNumber(),ye(t),r);if(D(t))return le(e.toNumber(),ye(t),r);if(te(t))return le(e.toNumber(),t.toNumber(),r);if(ee(t))throw new a(null,o.CannotCompareDateAndTime,null)}return!!fe(e,t)&&("<="===r||">="===r)}function fe(e,t){if(e===t)return!0;if(null===e&&t===I||null===t&&e===I)return!0;if(X(e)&&X(t))return e.equals(t);if(te(e)&&te(t))return e.equals(t);if(ee(e)&&ee(t))return e.equals(t);if(e instanceof s)return e.equalityTest(t);if(e instanceof f)return e.equalityTest(t);if(e instanceof S&&t instanceof S){const n=e.cache._arcadeCacheId,r=t.cache._arcadeCacheId;if(null!=n)return n===r}if(ne(e)&&ne(t)){if(e._arcadeCacheId===t._arcadeCacheId&&void 0!==e._arcadeCacheId&&null!==e._arcadeCacheId)return!0;if(e._underlyingGraphic===t._underlyingGraphic&&void 0!==e._underlyingGraphic&&null!==e._underlyingGraphic)return!0}return!1}function ce(e,t){if(D(e))return e;if(null===e)return"";if(F(e))return ae(e,t);if(w(e))return e.toString();if(X(e))return oe(e,t);if(te(e))return e.toFormat(t);if(ee(e))return e.toFormat(t);if(e instanceof b)return JSON.stringify(e.toJSON());if(x(e)){const t=[];for(let n=0;n<e.length;n++)t[n]=pe(e[n]);return"["+t.join(",")+"]"}if(e instanceof l){const t=[];for(let n=0;n<e.length();n++)t[n]=pe(e.get(n));return"["+t.join(",")+"]"}return null!==e&&"object"==typeof e&&void 0!==e.castToText?e.castToText():L(e)?"object, Function":e===I?"":z(e)?"object, Module":""}function me(e){const t=[];if(e instanceof l){for(let n=0;n<e.length();n++)t[n]=ye(e.get(n));return t}if(!x(e))return null;for(let n=0;n<e.length;n++)t[n]=ye(e[n]);return t}function de(e,t,n=!1){if(D(e))return e;if(null===e)return"";if(F(e))return ae(e,t);if(w(e))return e.toString();if(X(e))return oe(e,t);if(te(e))return e.toFormat(t);if(ee(e))return e.toFormat(t);if(e instanceof b)return e instanceof h?'{"xmin":'+e.xmin.toString()+',"ymin":'+e.ymin.toString()+","+(e.hasZ?'"zmin":'+e.zmin.toString()+",":"")+(e.hasM?'"mmin":'+e.mmin.toString()+",":"")+'"xmax":'+e.xmax.toString()+',"ymax":'+e.ymax.toString()+","+(e.hasZ?'"zmax":'+e.zmax.toString()+",":"")+(e.hasM?'"mmax":'+e.mmax.toString()+",":"")+'"spatialReference":'+Ce(e.spatialReference)+"}":Ce(e.toJSON(),((e,t)=>e.key===t.key?0:"spatialReference"===e.key?1:"spatialReference"===t.key||e.key<t.key?-1:e.key>t.key?1:0));if(x(e)){const t=[];for(let r=0;r<e.length;r++)t[r]=pe(e[r],n);return"["+t.join(",")+"]"}if(e instanceof l){const t=[];for(let r=0;r<e.length();r++)t[r]=pe(e.get(r),n);return"["+t.join(",")+"]"}return null!==e&&"object"==typeof e&&void 0!==e.castToText?e.castToText(n):L(e)?"object, Function":e===I?"":z(e)?"object, Module":""}function pe(e,t=!1){if(null===e)return"null";if(w(e)||F(e)||D(e))return JSON.stringify(e);if(e instanceof b)return de(e,null,t);if(e instanceof l)return de(e,null,t);if(Array.isArray(e))return de(e,null,t);if(X(e))return t?JSON.stringify(e.getTime()):JSON.stringify(oe(e,""));if(te(e))return JSON.stringify(e.toString());if(ee(e))return JSON.stringify(e.toString());if(null!==e&&"object"==typeof e){if(void 0!==e.castToText)return e.castToText(t)}else if(e===I)return"null";return"null"}function ye(e,t){return F(e)?e:null===e||""===e?0:X(e)||ee(e)||te(e)?NaN:w(e)?e?1:0:x(e)||""===e||void 0===e?NaN:void 0!==t&&D(e)?(t=G(t,"‰",""),t=G(t,"¤",""),p(e,{pattern:t})):e===I?0:Number(e)}function ge(e,t){if(X(e))return e;if(D(e)){const r=he(e,t);if(r)return n.dateTimeToArcadeDate(r)}return null}function he(e,t){const n=/ (\d\d)/,i=r(t);let a=J.fromISO(e,{zone:i});return a.isValid||n.test(e)&&(e=e.replace(n,"T$1"),a=J.fromISO(e,{zone:t}),a.isValid)?a:null}function be(e){return w(e)?e:D(e)?"true"===(e=e.toLowerCase()):!!F(e)&&(0!==e&&!isNaN(e))}function Ne(e,t){const n=JSON.parse(e);return n&&!n.spatialReference&&(n.spatialReference=t),j(n)}function Se(e,t){return null==e?null:(null!==e.spatialReference&&void 0!==e.spatialReference||(e.spatialReference=t),e)}function Ze(e){if(null===e)return null;if(e instanceof S)return"NaN"===e.x||null===e.x||isNaN(e.x)?null:e;if(e instanceof Z){if(0===e.rings.length)return null;for(const t of e.rings)if(t.length>0)return e;return null}if(e instanceof T){if(0===e.paths.length)return null;for(const t of e.paths)if(t.length>0)return e;return null}return e instanceof N?0===e.points.length?null:e:e instanceof h?"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)?null:e:null}function Te(e,t){if(!e)return t;if(!e.domain)return t;let n=null,r=null;if(X(t))n=t.toNumber();else if(ee(t))n=t.toString();else if(te(t))n=t.toStorageString();else if("string"===e.field.type||"esriFieldTypeString"===e.field.type)n=ce(t);else{if(null==t)return null;if(""===t)return t;n=ye(t)}for(let i=0;i<e.domain.codedValues.length;i++){const t=e.domain.codedValues[i];t.code===n&&(r=t)}return null===r?ce(t):r.name}function Ae(e,t){if(!e)return t;if(!e.domain)return t;let n=null;const r=ce(t);for(let i=0;i<e.domain.codedValues.length;i++){const t=e.domain.codedValues[i];t.name===r&&(n=t)}return null===n?t:n.code}function ke(e,t,n=null,r=null){if(!t)return null;if(!t.fields)return null;let i,u,l=null;for(let a=0;a<t.fields.length;a++){const n=t.fields[a];n.name.toLowerCase()===e.toString().toLowerCase()&&(l=n)}if(null===l)throw new a(null,o.FieldNotFound,null,{key:e});let s=t.typeIdField,f="id",c=t.types;if(t.subtypeField&&(s=t.subtypeField,f="code",c=t.subtypes??[]),null===r&&n&&s)r=n.hasField(s)?n.field(s):null;else if(s&&null!==r){let e=!1;for(const t of c||[])if(r===t[f]){e=!0;break}if(!e)for(const t of c||[])if(r===t.name){r=t[f],e=!0;break}e||(r=null,n&&s&&(r=n.hasField(s)?n.field(s):null))}return null!=r&&c.some((e=>e[f]===r&&(i=e.domains?.[l.name],i&&"inherited"===i.type&&(i=je(l.name,t),u=!0),!0))),u||i||(i=je(e,t)),{field:l,domain:i}}function je(e,t){let n;return t.fields.some((t=>(t.name.toLowerCase()===e.toLowerCase()&&(n=t.domain),!!n))),n}function Ce(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});const n="boolean"==typeof t.cycles&&t.cycles,r=t.cmp&&(i=t.cmp,function(e){return function(t,n){const r={key:t,value:e[t]},a={key:n,value:e[n]};return i(r,a)}});var i;const a=[];return function e(t){if(t?.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0===t)return;if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);let i,o;if(Array.isArray(t)){for(o="[",i=0;i<t.length;i++)i&&(o+=","),o+=e(t[i])||"null";return o+"]"}if(null===t)return"null";if(a.includes(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}const u=a.push(t)-1,l=Object.keys(t).sort(r?.(t));for(o="",i=0;i<l.length;i++){const n=l[i],r=e(t[n]);r&&(o&&(o+=","),o+=JSON.stringify(n)+":"+r)}return a.splice(u,1),"{"+o+"}"}(e)}function De(e){if(null===e)return null;const t=[];for(const n of e)n?.arcadeDeclaredClass&&"esri.arcade.Feature"===n.arcadeDeclaredClass?t.push(n.geometry()):t.push(n);return t}function Fe(e,t){if(!(t instanceof S))throw new a(null,o.InvalidParameter,null);e.push(t.hasZ?t.hasM?[t.x,t.y,t.z,t.m]:[t.x,t.y,t.z]:[t.x,t.y])}function we(e,t){if(x(e)||Q(e)){let n=!1,r=!1,i=[],u=t;if(x(e)){for(const t of e)Fe(i,t);i.length>0&&(u=e[0].spatialReference,n=e[0].hasZ,r=e[0].hasM)}else if(e instanceof f)i=e._elements,i.length>0&&(n=e._hasZ,r=e._hasM,u=e.get(0).spatialReference);else{if(!Q(e))throw new a(null,o.InvalidParameter,null);for(const t of e.toArray())Fe(i,t);i.length>0&&(u=e.get(0).spatialReference,n=!0===e.get(0).hasZ,r=!0===e.get(0).hasM)}if(0===i.length)return null;return k(i)||(i=i.slice().reverse()),new Z({rings:[i],spatialReference:u,hasZ:n,hasM:r})}return e}function xe(e,t){if(x(e)||Q(e)){let n=!1,r=!1,i=[],a=t;if(x(e)){for(const t of e)Fe(i,t);i.length>0&&(a=e[0].spatialReference,n=!0===e[0].hasZ,r=!0===e[0].hasM)}else if(e instanceof f)i=e._elements,i.length>0&&(n=e._hasZ,r=e._hasM,a=e.get(0).spatialReference);else if(Q(e)){for(const t of e.toArray())Fe(i,t);i.length>0&&(a=e.get(0).spatialReference,n=!0===e.get(0).hasZ,r=!0===e.get(0).hasM)}return 0===i.length?null:new T({paths:[i],spatialReference:a,hasZ:n,hasM:r})}return e}function Me(e,t){if(x(e)||Q(e)){let n=!1,r=!1,i=[],a=t;if(x(e)){for(const t of e)Fe(i,t);i.length>0&&(a=e[0].spatialReference,n=!0===e[0].hasZ,r=!0===e[0].hasM)}else if(e instanceof f)i=e._elements,i.length>0&&(n=e._hasZ,r=e._hasM,a=e.get(0).spatialReference);else if(Q(e)){for(const t of e.toArray())Fe(i,t);i.length>0&&(a=e.get(0).spatialReference,n=!0===e.get(0).hasZ,r=!0===e.get(0).hasM)}return 0===i.length?null:new N({points:i,spatialReference:a,hasZ:n,hasM:r})}return e}function Oe(e,t=!1){const n=[];if(null===e)return n;if(!0===x(e)){for(let r=0;r<e.length;r++){const i=ce(e[r]);""===i&&!0!==t||n.push(i)}return n}if(e instanceof l){for(let r=0;r<e.length();r++){const i=ce(e.get(r));""===i&&!0!==t||n.push(i)}return n}if(V(e)){const r=ce(e);return""===r&&!0!==t||n.push(r),n}return[]}let Re=0;function Je(e){return Re++,Re%100==0?(Re=0,new Promise((t=>{setTimeout((()=>{t(e)}),0)}))):e}function ve(e,t,n){switch(n){case"&":return e&t;case"|":return e|t;case"^":return e^t;case"<<":return e<<t;case">>":return e>>t;case">>>":return e>>>t}}function _e(e,t=null){return null==e?null:w(e)||F(e)||D(e)?e:e instanceof b?!0===t?.keepGeometryType?e:e.toJSON():e instanceof l?e.toArray().map((e=>_e(e,t))):Array.isArray(e)?e.map((e=>_e(e,t))):M(e)?e:X(e)?e.toJSDate():te(e)?e.toString():ee(e)?e.toJSDate():null!==e&&"object"==typeof e&&void 0!==e.castAsJson?e.castAsJson(t):null}async function Ie(e,t,n,r,i){const a=await Ye(e,t,n);i[r]=a}async function Ye(e,t=null,n=null){if(e instanceof l&&(e=e.toArray()),null==e)return null;if(V(e)||e instanceof b||M(e)||X(e))return _e(e,n);if(Array.isArray(e)){const r=[],i=[];for(const a of e)null===a||V(a)||a instanceof b||M(a)||X(a)?i.push(_e(a,n)):(i.push(null),r.push(Ie(a,t,n,i.length-1,i)));return r.length>0&&await Promise.all(r),i}return null!==e&&"object"==typeof e&&void 0!==e.castAsJsonAsync?e.castAsJsonAsync(t,n):null}function Pe(e){return Ge(e)?e.parent:e}function Ge(e){return e&&"declaredClass"in e&&"esri.layers.support.SubtypeSublayer"===e.declaredClass}function Le(e){return e&&"declaredClass"in e&&"esri.layers.SubtypeGroupLayer"===e.declaredClass}function ze(e,t,n){const r=Pe(e.fullSchema());if(null===r)return null;if(!r.fields)return null;return ke(t,r,e,n)}function Ve(e){const t=Pe(e.fullSchema());return null===t?null:t.fields?t.subtypeField?{subtypeField:t.subtypeField,subtypes:t.subtypes?t.subtypes.map((e=>({name:e.name,code:e.code}))):[]}:t.typeIdField?{subtypeField:t.typeIdField,subtypes:t.types?t.types.map((e=>({name:e.name,code:e.id}))):[]}:null:null}function qe(e,t,n,r){const i=Pe(e.fullSchema());if(null===i)return null;if(!i.fields)return null;const a=ke(t,i,e,r);if(void 0===n)try{n=e.field(t)}catch(o){return null}return Te(a,n)}function Ee(e,t,n,r){const i=Pe(e.fullSchema());if(null===i)return null;if(!i.fields)return null;if(void 0===n){try{n=e.field(t)}catch(a){return null}return n}return Ae(ke(t,i,e,r),n)}function Ue(e){return e?.timeZone??"system"}function He(e){const t=Pe(e.fullSchema());if(null===t)return null;if(!t.fields)return null;const n=[];for(const r of t.fields)n.push(c(r));return{objectIdField:t.objectIdField,globalIdField:t.globalIdField??"",geometryType:void 0===m[t.geometryType]?"":m[t.geometryType],fields:n}}function Be(r,i){return"system"===r&&(r=n.systemTimeZoneCanonicalName),{version:Ke,engineVersion:t,timeZone:r,spatialReference:i instanceof A?i.toJSON():i,application:e.applicationName??"",engine:"web",locale:C()}}const Ke="1.28",We=Object.freeze(Object.defineProperty({__proto__:null,ImplicitResult:_,ReturnResult:v,absRound:ie,arcadeVersion:Ke,autoCastArrayOfPointsToMultiPoint:Me,autoCastArrayOfPointsToPolygon:we,autoCastArrayOfPointsToPolyline:xe,autoCastFeatureToGeometry:De,binaryOperator:ve,breakResult:Y,castAsJson:_e,castAsJsonAsync:Ye,continueResult:P,defaultExecutingContext:Be,defaultTimeZone:Ue,defaultUndefined:q,equalityTest:fe,featureDomainCodeLookup:Ee,featureDomainValueLookup:qe,featureFullDomain:ze,featureSchema:He,featureSubtypes:Ve,fixNullGeometry:Ze,fixSpatialReference:Se,formatDate:oe,formatNumber:ae,getDomain:ke,getDomainCode:Ae,getDomainValue:Te,getType:E,greaterThanLessThan:se,isArray:x,isBoolean:w,isDate:X,isDateOnly:ee,isDictionary:K,isFeature:H,isFeatureSet:B,isFeatureSetCollection:W,isFunctionParameter:L,isGeometry:U,isGraphic:O,isImmutableArray:Q,isInteger:R,isJsDate:M,isKnowledgeGraph:$,isModule:z,isNumber:F,isObject:ne,isSimpleType:V,isString:D,isSubtypeGrouplayer:Le,isSubtypeSublayer:Ge,isTime:te,multiReplace:G,parseGeometryFromJson:Ne,pcCheck:re,stableStringify:Ce,standardiseDateFormat:ue,tick:Je,toBoolean:be,toDate:ge,toNumber:ye,toNumberArray:me,toString:ce,toStringArray:Oe,toStringExplicit:de,voidOperation:I},Symbol.toStringTag,{value:"Module"}));export{Ae as $,ve as A,re as B,De as C,we as D,q as E,xe as F,Me as G,Ue as H,_ as I,E as J,ue as K,ie as L,Ze as M,G as N,He as O,Ve as P,ze as Q,v as R,qe as S,Ee as T,Be as U,me as V,Ge as W,Je as X,Oe as Y,ke as Z,Te as _,Ye as a,z as a0,ne as a1,ae as a2,oe as a3,Ne as a4,Ce as a5,Le as a6,Ke as a7,V as b,_e as c,ye as d,be as e,ce as f,X as g,ge as h,L as i,ee as j,te as k,U as l,Q as m,H as n,W as o,B as p,K as q,$ as r,Se as s,de as t,We as u,I as v,Y as w,P as x,se as y,fe as z};
|
|
5
|
+
import e from"../config.js";import{version as t}from"../kernel.js";import{ArcadeDate as n,createDateTimeZone as r}from"../arcade/ArcadeDate.js";import{ArcadeModule as i}from"../arcade/ArcadeModule.js";import{ArcadeExecutionError as a,ExecutionErrorCodes as o}from"../arcade/executionError.js";import{ArcadeFunction as u}from"../arcade/FunctionWrapper.js";import l from"../arcade/ImmutableArray.js";import s from"../arcade/ImmutablePathArray.js";import f from"../arcade/ImmutablePointArray.js";import{esriFieldToJson as c,layerGeometryEsriRestConstants as m}from"../arcade/featureset/support/shared.js";import{format as d,parse as p}from"../core/number.js";import{DateOnly as y}from"../core/sql/DateOnly.js";import{TimeOnly as g}from"../core/sql/TimeOnly.js";import h from"../geometry/Extent.js";import b from"../geometry/Geometry.js";import N from"../geometry/Multipoint.js";import S from"../geometry/Point.js";import Z from"../geometry/Polygon.js";import T from"../geometry/Polyline.js";import A from"../geometry/SpatialReference.js";import{isClockwise as k}from"../geometry/support/coordsUtils.js";import{fromJSON as j}from"../geometry/support/jsonUtils.js";import{getLocale as C}from"../intl/locale.js";import{isString as D,isNumber as F,isBoolean as w,isArray as x,isDate as M,isGraphic as O,isInteger as R}from"../support/guards.js";import{DateTime as J}from"luxon";class v{constructor(e){this.value=e}}class _{constructor(e){this.value=e}}const I={type:"VOID"},Y=Symbol("BREAK"),P=Symbol("CONTINUE");function G(e,t,n){return""===t||null==t||t===n||t===n?e:e=e.split(t).join(n)}function L(e){return e instanceof u}function z(e){return e instanceof i}function V(e){return!!D(e)||(!!F(e)||(!!X(e)||(!!ee(e)||(!!te(e)||(!!w(e)||(null===e||(e===I||"number"==typeof e)))))))}function q(e,t){return void 0===e?t:e}function E(e){return null==e?"":x(e)||Q(e)?"Array":X(e)?"Date":te(e)?"Time":ee(e)?"DateOnly":D(e)?"String":w(e)?"Boolean":F(e)?"Number":"esri.arcade.Attachment"===e?.declaredClass?"Attachment":"esri.arcade.Portal"===e?.declaredClass?"Portal":"esri.arcade.Dictionary"===e?.declaredClass?"Dictionary":$(e)?"KnowledgeGraph":e instanceof i?"Module":H(e)?"Feature":e instanceof S?"Point":e instanceof Z?"Polygon":e instanceof T?"Polyline":e instanceof N?"Multipoint":e instanceof h?"Extent":L(e)?"Function":B(e)?"FeatureSet":W(e)?"FeatureSetCollection":e===I?"":"number"==typeof e&&isNaN(e)?"Number":"Unrecognized Type"}function U(e){return e instanceof b}function H(e){return"esri.arcade.Feature"===e?.arcadeDeclaredClass}function B(e){return"esri.arcade.featureset.support.FeatureSet"===e?.declaredRootClass}function K(e){return"esri.arcade.Dictionary"===e?.declaredClass}function W(e){return"esri.arcade.featureSetCollection"===e?.declaredRootClass}function $(e){return"esri.rest.knowledgeGraph.KnowledgeGraph"===e?.declaredClass}function Q(e){return e instanceof l}function X(e){return e instanceof n}function ee(e){return e instanceof y}function te(e){return e instanceof g}function ne(e){return null!=e&&"object"==typeof e}function re(e,t,n,r,i){if(e.length<t||e.length>n)throw new a(r,o.WrongNumberOfParameters,i)}function ie(e){return e<0?-Math.round(-e):Math.round(e)}function ae(e,t){return isNaN(e)||null==t||""===t?e.toString():(t=G(t,"‰",""),t=G(t,"¤",""),d(e,{pattern:t}))}function oe(e,t){return null==t||""===t?e.toISOString(!0):e.toFormat(ue(t),{locale:C(),numberingSystem:"latn"})}function ue(e,t=!1){e=e.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let n="";const r=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|Z{1,5}|.)/g;for(const i of e.match(r)||[])switch(i){case"D":n+="d";break;case"DD":n+="dd";break;case"DDD":n+="o";break;case"d":n+="c";break;case"ddd":n+="ccc";break;case"dddd":n+="cccc";break;case"M":n+="L";break;case"MM":n+="LL";break;case"MMM":n+="LLL";break;case"MMMM":n+="LLLL";break;case"YY":n+="yy";break;case"Y":case"YYYY":n+="yyyy";break;case"Q":n+="q";break;case"Z":n+="Z";break;case"ZZ":n+="ZZ";break;case"ZZZ":n+="ZZZ";break;case"ZZZZ":n+=t?"[ZZZZ]":"ZZZZ";break;case"ZZZZZ":n+=t?"[ZZZZZ]":"ZZZZZ";break;case"S":n+="'S'";break;case"SS":n+="'SS'";break;case"SSS":n+="u";break;case"A":case"a":n+="a";break;case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":case"X":case"x":n+=i;break;default:i.length>=2&&"["===i.slice(0,1)&&"]"===i.slice(-1)?n+=`'${i.slice(1,-1)}'`:n+=`'${i}'`}return n}function le(e,t,n){switch(n){case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}return!1}function se(e,t,r){if(null===e){if(null===t||t===I)return le(null,null,r);if(F(t))return le(0,t,r);if(D(t))return le(0,ye(t),r);if(w(t))return le(0,ye(t),r);if(X(t))return le(0,t.toNumber(),r);if(te(t))return le(e,t.toNumber(),r);if(ee(t))return le(e,t.toNumber(),r)}if(e===I){if(null===t||t===I)return le(null,null,r);if(F(t))return le(0,t,r);if(D(t))return le(0,ye(t),r);if(w(t))return le(0,ye(t),r);if(X(t))return le(0,t.toNumber(),r);if(te(t))return le(e,t.toNumber(),r);if(ee(t))return le(e,t.toNumber(),r)}else if(F(e)){if(F(t))return le(e,t,r);if(w(t))return le(e,ye(t),r);if(null===t||t===I)return le(e,0,r);if(D(t))return le(e,ye(t),r);if(X(t))return le(e,t.toNumber(),r);if(te(t))return le(e,t.toNumber(),r);if(ee(t))return le(e,t.toNumber(),r)}else if(D(e)){if(D(t))return le(ce(e),ce(t),r);if(X(t))return le(ye(e),t.toNumber(),r);if(te(t))return le(ye(e),t.toNumber(),r);if(ee(t))return le(ye(e),t.toNumber(),r);if(F(t))return le(ye(e),t,r);if(null===t||t===I)return le(ye(e),0,r);if(w(t))return le(ye(e),ye(t),r)}else if(X(e)){if(X(t))return e.timeZone!==t.timeZone&&(e.isUnknownTimeZone?e=n.arcadeDateAndZoneToArcadeDate(e,t.timeZone):t.isUnknownTimeZone&&(t=n.arcadeDateAndZoneToArcadeDate(t,e.timeZone))),le(e.toNumber(),t.toNumber(),r);if(null===t||t===I)return le(e.toNumber(),0,r);if(F(t))return le(e.toNumber(),t,r);if(w(t))return le(e.toNumber(),ye(t),r);if(D(t))return le(e.toNumber(),ye(t),r);if(te(t))throw new a(null,o.CannotCompareDateAndTime,null);if(ee(t))return le(e.toNumber(),t.toNumber(),r)}else if(w(e)){if(w(t))return le(e,t,r);if(F(t))return le(ye(e),ye(t),r);if(X(t))return le(ye(e),t.toNumber(),r);if(te(t))return le(ye(e),t.toNumber(),r);if(ee(t))return le(ye(e),t.toNumber(),r);if(null===t||t===I)return le(ye(e),0,r);if(D(t))return le(ye(e),ye(t),r)}else if(ee(e)){if(X(t))return le(e.toNumber(),t.toNumber(),r);if(null===t||t===I)return le(e.toNumber(),0,r);if(F(t))return le(e.toNumber(),t,r);if(w(t))return le(e.toNumber(),ye(t),r);if(D(t))return le(e.toNumber(),ye(t),r);if(te(t))throw new a(null,o.CannotCompareDateAndTime,null);if(ee(t))return le(e.toNumber(),t.toNumber(),r)}else if(te(e)){if(X(t))throw new a(null,o.CannotCompareDateAndTime,null);if(null===t||t===I)return le(e.toNumber(),0,r);if(F(t))return le(e.toNumber(),t,r);if(w(t))return le(e.toNumber(),ye(t),r);if(D(t))return le(e.toNumber(),ye(t),r);if(te(t))return le(e.toNumber(),t.toNumber(),r);if(ee(t))throw new a(null,o.CannotCompareDateAndTime,null)}return!!fe(e,t)&&("<="===r||">="===r)}function fe(e,t){if(e===t)return!0;if(null===e&&t===I||null===t&&e===I)return!0;if(X(e)&&X(t))return e.equals(t);if(te(e)&&te(t))return e.equals(t);if(ee(e)&&ee(t))return e.equals(t);if(e instanceof s)return e.equalityTest(t);if(e instanceof f)return e.equalityTest(t);if(e instanceof S&&t instanceof S){const n=e.cache._arcadeCacheId,r=t.cache._arcadeCacheId;if(null!=n)return n===r}if(ne(e)&&ne(t)){if(e._arcadeCacheId===t._arcadeCacheId&&void 0!==e._arcadeCacheId&&null!==e._arcadeCacheId)return!0;if(e._underlyingGraphic===t._underlyingGraphic&&void 0!==e._underlyingGraphic&&null!==e._underlyingGraphic)return!0}return!1}function ce(e,t){if(D(e))return e;if(null===e)return"";if(F(e))return ae(e,t);if(w(e))return e.toString();if(X(e))return oe(e,t);if(te(e))return e.toFormat(t);if(ee(e))return e.toFormat(t);if(e instanceof b)return JSON.stringify(e.toJSON());if(x(e)){const t=[];for(let n=0;n<e.length;n++)t[n]=pe(e[n]);return"["+t.join(",")+"]"}if(e instanceof l){const t=[];for(let n=0;n<e.length();n++)t[n]=pe(e.get(n));return"["+t.join(",")+"]"}return null!==e&&"object"==typeof e&&void 0!==e.castToText?e.castToText():L(e)?"object, Function":e===I?"":z(e)?"object, Module":""}function me(e){const t=[];if(e instanceof l){for(let n=0;n<e.length();n++)t[n]=ye(e.get(n));return t}if(!x(e))return null;for(let n=0;n<e.length;n++)t[n]=ye(e[n]);return t}function de(e,t,n=!1){if(D(e))return e;if(null===e)return"";if(F(e))return ae(e,t);if(w(e))return e.toString();if(X(e))return oe(e,t);if(te(e))return e.toFormat(t);if(ee(e))return e.toFormat(t);if(e instanceof b)return e instanceof h?'{"xmin":'+e.xmin.toString()+',"ymin":'+e.ymin.toString()+","+(e.hasZ?'"zmin":'+e.zmin.toString()+",":"")+(e.hasM?'"mmin":'+e.mmin.toString()+",":"")+'"xmax":'+e.xmax.toString()+',"ymax":'+e.ymax.toString()+","+(e.hasZ?'"zmax":'+e.zmax.toString()+",":"")+(e.hasM?'"mmax":'+e.mmax.toString()+",":"")+'"spatialReference":'+Ce(e.spatialReference)+"}":Ce(e.toJSON(),((e,t)=>e.key===t.key?0:"spatialReference"===e.key?1:"spatialReference"===t.key||e.key<t.key?-1:e.key>t.key?1:0));if(x(e)){const t=[];for(let r=0;r<e.length;r++)t[r]=pe(e[r],n);return"["+t.join(",")+"]"}if(e instanceof l){const t=[];for(let r=0;r<e.length();r++)t[r]=pe(e.get(r),n);return"["+t.join(",")+"]"}return null!==e&&"object"==typeof e&&void 0!==e.castToText?e.castToText(n):L(e)?"object, Function":e===I?"":z(e)?"object, Module":""}function pe(e,t=!1){if(null===e)return"null";if(w(e)||F(e)||D(e))return JSON.stringify(e);if(e instanceof b)return de(e,null,t);if(e instanceof l)return de(e,null,t);if(Array.isArray(e))return de(e,null,t);if(X(e))return t?JSON.stringify(e.getTime()):JSON.stringify(oe(e,""));if(te(e))return JSON.stringify(e.toString());if(ee(e))return JSON.stringify(e.toString());if(null!==e&&"object"==typeof e){if(void 0!==e.castToText)return e.castToText(t)}else if(e===I)return"null";return"null"}function ye(e,t){return F(e)?e:null===e||""===e?0:X(e)||ee(e)||te(e)?NaN:w(e)?e?1:0:x(e)||""===e||void 0===e?NaN:void 0!==t&&D(e)?(t=G(t,"‰",""),t=G(t,"¤",""),p(e,{pattern:t})):e===I?0:Number(e)}function ge(e,t){if(X(e))return e;if(D(e)){const r=he(e,t);if(r)return n.dateTimeToArcadeDate(r)}return null}function he(e,t){const n=/ (\d\d)/,i=r(t);let a=J.fromISO(e,{zone:i});return a.isValid||n.test(e)&&(e=e.replace(n,"T$1"),a=J.fromISO(e,{zone:t}),a.isValid)?a:null}function be(e){return w(e)?e:D(e)?"true"===(e=e.toLowerCase()):!!F(e)&&(0!==e&&!isNaN(e))}function Ne(e,t){const n=JSON.parse(e);return n&&!n.spatialReference&&(n.spatialReference=t),j(n)}function Se(e,t){return null==e?null:(null!==e.spatialReference&&void 0!==e.spatialReference||(e.spatialReference=t),e)}function Ze(e){if(null===e)return null;if(e instanceof S)return"NaN"===e.x||null===e.x||isNaN(e.x)?null:e;if(e instanceof Z){if(0===e.rings.length)return null;for(const t of e.rings)if(t.length>0)return e;return null}if(e instanceof T){if(0===e.paths.length)return null;for(const t of e.paths)if(t.length>0)return e;return null}return e instanceof N?0===e.points.length?null:e:e instanceof h?"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)?null:e:null}function Te(e,t){if(!e)return t;if(!e.domain)return t;let n=null,r=null;if(X(t))n=t.toNumber();else if(ee(t))n=t.toString();else if(te(t))n=t.toStorageString();else if("string"===e.field.type||"esriFieldTypeString"===e.field.type)n=ce(t);else{if(null==t)return null;if(""===t)return t;n=ye(t)}for(let i=0;i<e.domain.codedValues.length;i++){const t=e.domain.codedValues[i];t.code===n&&(r=t)}return null===r?ce(t):r.name}function Ae(e,t){if(!e)return t;if(!e.domain)return t;let n=null;const r=ce(t);for(let i=0;i<e.domain.codedValues.length;i++){const t=e.domain.codedValues[i];t.name===r&&(n=t)}return null===n?t:n.code}function ke(e,t,n=null,r=null){if(!t)return null;if(!t.fields)return null;let i,u,l=null;for(let a=0;a<t.fields.length;a++){const n=t.fields[a];n.name.toLowerCase()===e.toString().toLowerCase()&&(l=n)}if(null===l)throw new a(null,o.FieldNotFound,null,{key:e});let s=t.typeIdField,f="id",c=t.types;if(t.subtypeField&&(s=t.subtypeField,f="code",c=t.subtypes??[]),null===r&&n&&s)r=n.hasField(s)?n.field(s):null;else if(s&&null!==r){let e=!1;for(const t of c||[])if(r===t[f]){e=!0;break}if(!e)for(const t of c||[])if(r===t.name){r=t[f],e=!0;break}e||(r=null,n&&s&&(r=n.hasField(s)?n.field(s):null))}return null!=r&&c.some((e=>e[f]===r&&(i=e.domains?.[l.name],i&&"inherited"===i.type&&(i=je(l.name,t),u=!0),!0))),u||i||(i=je(e,t)),{field:l,domain:i}}function je(e,t){let n;return t.fields.some((t=>(t.name.toLowerCase()===e.toLowerCase()&&(n=t.domain),!!n))),n}function Ce(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});const n="boolean"==typeof t.cycles&&t.cycles,r=t.cmp&&(i=t.cmp,function(e){return function(t,n){const r={key:t,value:e[t]},a={key:n,value:e[n]};return i(r,a)}});var i;const a=[];return function e(t){if(t?.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0===t)return;if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);let i,o;if(Array.isArray(t)){for(o="[",i=0;i<t.length;i++)i&&(o+=","),o+=e(t[i])||"null";return o+"]"}if(null===t)return"null";if(a.includes(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}const u=a.push(t)-1,l=Object.keys(t).sort(r?.(t));for(o="",i=0;i<l.length;i++){const n=l[i],r=e(t[n]);r&&(o&&(o+=","),o+=JSON.stringify(n)+":"+r)}return a.splice(u,1),"{"+o+"}"}(e)}function De(e){if(null===e)return null;const t=[];for(const n of e)n?.arcadeDeclaredClass&&"esri.arcade.Feature"===n.arcadeDeclaredClass?t.push(n.geometry()):t.push(n);return t}function Fe(e,t){if(!(t instanceof S))throw new a(null,o.InvalidParameter,null);e.push(t.hasZ?t.hasM?[t.x,t.y,t.z,t.m]:[t.x,t.y,t.z]:[t.x,t.y])}function we(e,t){if(x(e)||Q(e)){let n=!1,r=!1,i=[],u=t;if(x(e)){for(const t of e)Fe(i,t);i.length>0&&(u=e[0].spatialReference,n=e[0].hasZ,r=e[0].hasM)}else if(e instanceof f)i=e._elements,i.length>0&&(n=e._hasZ,r=e._hasM,u=e.get(0).spatialReference);else{if(!Q(e))throw new a(null,o.InvalidParameter,null);for(const t of e.toArray())Fe(i,t);i.length>0&&(u=e.get(0).spatialReference,n=!0===e.get(0).hasZ,r=!0===e.get(0).hasM)}if(0===i.length)return null;return k(i)||(i=i.slice().reverse()),new Z({rings:[i],spatialReference:u,hasZ:n,hasM:r})}return e}function xe(e,t){if(x(e)||Q(e)){let n=!1,r=!1,i=[],a=t;if(x(e)){for(const t of e)Fe(i,t);i.length>0&&(a=e[0].spatialReference,n=!0===e[0].hasZ,r=!0===e[0].hasM)}else if(e instanceof f)i=e._elements,i.length>0&&(n=e._hasZ,r=e._hasM,a=e.get(0).spatialReference);else if(Q(e)){for(const t of e.toArray())Fe(i,t);i.length>0&&(a=e.get(0).spatialReference,n=!0===e.get(0).hasZ,r=!0===e.get(0).hasM)}return 0===i.length?null:new T({paths:[i],spatialReference:a,hasZ:n,hasM:r})}return e}function Me(e,t){if(x(e)||Q(e)){let n=!1,r=!1,i=[],a=t;if(x(e)){for(const t of e)Fe(i,t);i.length>0&&(a=e[0].spatialReference,n=!0===e[0].hasZ,r=!0===e[0].hasM)}else if(e instanceof f)i=e._elements,i.length>0&&(n=e._hasZ,r=e._hasM,a=e.get(0).spatialReference);else if(Q(e)){for(const t of e.toArray())Fe(i,t);i.length>0&&(a=e.get(0).spatialReference,n=!0===e.get(0).hasZ,r=!0===e.get(0).hasM)}return 0===i.length?null:new N({points:i,spatialReference:a,hasZ:n,hasM:r})}return e}function Oe(e,t=!1){const n=[];if(null===e)return n;if(!0===x(e)){for(let r=0;r<e.length;r++){const i=ce(e[r]);""===i&&!0!==t||n.push(i)}return n}if(e instanceof l){for(let r=0;r<e.length();r++){const i=ce(e.get(r));""===i&&!0!==t||n.push(i)}return n}if(V(e)){const r=ce(e);return""===r&&!0!==t||n.push(r),n}return[]}let Re=0;function Je(e){return Re++,Re%100==0?(Re=0,new Promise((t=>{setTimeout((()=>{t(e)}),0)}))):e}function ve(e,t,n){switch(n){case"&":return e&t;case"|":return e|t;case"^":return e^t;case"<<":return e<<t;case">>":return e>>t;case">>>":return e>>>t}}function _e(e,t=null){return null==e?null:w(e)||F(e)||D(e)?e:e instanceof b?!0===t?.keepGeometryType?e:e.toJSON():e instanceof l?e.toArray().map((e=>_e(e,t))):Array.isArray(e)?e.map((e=>_e(e,t))):M(e)?e:X(e)?e.toJSDate():te(e)?e.toString():ee(e)?e.toJSDate():null!==e&&"object"==typeof e&&void 0!==e.castAsJson?e.castAsJson(t):null}async function Ie(e,t,n,r,i){const a=await Ye(e,t,n);i[r]=a}async function Ye(e,t=null,n=null){if(e instanceof l&&(e=e.toArray()),null==e)return null;if(V(e)||e instanceof b||M(e)||X(e))return _e(e,n);if(Array.isArray(e)){const r=[],i=[];for(const a of e)null===a||V(a)||a instanceof b||M(a)||X(a)?i.push(_e(a,n)):(i.push(null),r.push(Ie(a,t,n,i.length-1,i)));return r.length>0&&await Promise.all(r),i}return null!==e&&"object"==typeof e&&void 0!==e.castAsJsonAsync?e.castAsJsonAsync(t,n):null}function Pe(e){return Ge(e)?e.parent:e}function Ge(e){return e&&"declaredClass"in e&&"esri.layers.support.SubtypeSublayer"===e.declaredClass}function Le(e){return e&&"declaredClass"in e&&"esri.layers.SubtypeGroupLayer"===e.declaredClass}function ze(e,t,n){const r=Pe(e.fullSchema());if(null===r)return null;if(!r.fields)return null;return ke(t,r,e,n)}function Ve(e){const t=Pe(e.fullSchema());return null===t?null:t.fields?t.subtypeField?{subtypeField:t.subtypeField,subtypes:t.subtypes?t.subtypes.map((e=>({name:e.name,code:e.code}))):[]}:t.typeIdField?{subtypeField:t.typeIdField,subtypes:t.types?t.types.map((e=>({name:e.name,code:e.id}))):[]}:null:null}function qe(e,t,n,r){const i=Pe(e.fullSchema());if(null===i)return null;if(!i.fields)return null;const a=ke(t,i,e,r);if(void 0===n)try{n=e.field(t)}catch(o){return null}return Te(a,n)}function Ee(e,t,n,r){const i=Pe(e.fullSchema());if(null===i)return null;if(!i.fields)return null;if(void 0===n){try{n=e.field(t)}catch(a){return null}return n}return Ae(ke(t,i,e,r),n)}function Ue(e){return e?.timeZone??"system"}function He(e){const t=Pe(e.fullSchema());if(null===t)return null;if(!t.fields)return null;const n=[];for(const r of t.fields)n.push(c(r));return{objectIdField:t.objectIdField,globalIdField:t.globalIdField??"",geometryType:void 0===m[t.geometryType]?"":m[t.geometryType],fields:n}}function Be(r,i){return"system"===r&&(r=n.systemTimeZoneCanonicalName),{version:Ke,engineVersion:t,timeZone:r,spatialReference:i instanceof A?i.toJSON():i,application:e.applicationName??"",engine:"web",locale:C()}}const Ke="1.28",We=Object.freeze(Object.defineProperty({__proto__:null,ImplicitResult:_,ReturnResult:v,absRound:ie,arcadeVersion:Ke,autoCastArrayOfPointsToMultiPoint:Me,autoCastArrayOfPointsToPolygon:we,autoCastArrayOfPointsToPolyline:xe,autoCastFeatureToGeometry:De,binaryOperator:ve,breakResult:Y,castAsJson:_e,castAsJsonAsync:Ye,continueResult:P,defaultExecutingContext:Be,defaultTimeZone:Ue,defaultUndefined:q,equalityTest:fe,featureDomainCodeLookup:Ee,featureDomainValueLookup:qe,featureFullDomain:ze,featureSchema:He,featureSubtypes:Ve,fixNullGeometry:Ze,fixSpatialReference:Se,formatDate:oe,formatNumber:ae,getDomain:ke,getDomainCode:Ae,getDomainValue:Te,getType:E,greaterThanLessThan:se,isArray:x,isBoolean:w,isDate:X,isDateOnly:ee,isDictionary:K,isFeature:H,isFeatureSet:B,isFeatureSetCollection:W,isFunctionParameter:L,isGeometry:U,isGraphic:O,isImmutableArray:Q,isInteger:R,isJsDate:M,isKnowledgeGraph:$,isModule:z,isNumber:F,isObject:ne,isSimpleType:V,isString:D,isSubtypeGrouplayer:Le,isSubtypeSublayer:Ge,isTime:te,multiReplace:G,parseGeometryFromJson:Ne,pcCheck:re,stableStringify:Ce,standardiseDateFormat:ue,tick:Je,toBoolean:be,toDate:ge,toNumber:ye,toNumberArray:me,toString:ce,toStringArray:Oe,toStringExplicit:de,voidOperation:I},Symbol.toStringTag,{value:"Module"}));export{Ae as $,ve as A,re as B,De as C,we as D,xe as E,Me as F,q as G,Ue as H,_ as I,E as J,ue as K,ie as L,Ze as M,G as N,He as O,Ve as P,ze as Q,v as R,qe as S,Ee as T,Be as U,me as V,Ge as W,Je as X,Oe as Y,ke as Z,Te as _,Ye as a,z as a0,ne as a1,ae as a2,oe as a3,Ne as a4,Ce as a5,Le as a6,Ke as a7,V as b,_e as c,ye as d,be as e,ce as f,X as g,ge as h,L as i,ee as j,te as k,U as l,Q as m,H as n,W as o,B as p,K as q,$ as r,Se as s,de as t,We as u,I as v,Y as w,P as x,se as y,fe as z};
|
package/chunks/lclayout.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{g as r}from"./_commonjsHelpers.js";var e,t={exports:{}};function n(){return e||(e=1,r=t,n="undefined"!=typeof document?document.currentScript?.src:void 0,a=function(r={}){var e,t,a=Object.assign({},r),o=new Promise(((r,n)=>{e=r,t=n})),i=!0,u=Object.assign({},a),s="./this.program",l="";function c(r){return a.locateFile?a.locateFile(r,l):l+r}"undefined"!=typeof document&&document.currentScript&&(l=document.currentScript.src),n&&(l=n),l=l.startsWith("blob:")?"":l.substr(0,l.replace(/[?#].*/,"").lastIndexOf("/")+1),a.print||console.log.bind(console);var f,d,h=a.printErr||console.error.bind(console);Object.assign(a,u),u=null,a.arguments&&a.arguments,a.thisProgram&&(s=a.thisProgram),a.quit&&a.quit,a.wasmBinary&&(f=a.wasmBinary);var m,v,p,y,g,w,_,b,A=!1;function T(){var r=d.buffer;a.HEAP8=m=new Int8Array(r),a.HEAP16=p=new Int16Array(r),a.HEAPU8=v=new Uint8Array(r),a.HEAPU16=y=new Uint16Array(r),a.HEAP32=g=new Int32Array(r),a.HEAPU32=w=new Uint32Array(r),a.HEAPF32=_=new Float32Array(r),a.HEAPF64=b=new Float64Array(r)}var C=[],F=[],P=[];function W(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)O(a.preRun.shift());G(C)}function E(){G(F)}function S(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)j(a.postRun.shift());G(P)}function O(r){C.unshift(r)}function $(r){F.unshift(r)}function j(r){P.unshift(r)}var M=0,D=null;function R(r){M++,a.monitorRunDependencies?.(M)}function x(r){if(M--,a.monitorRunDependencies?.(M),0==M&&D){var e=D;D=null,e()}}function k(r){a.onAbort?.(r),h(r="Aborted("+r+")"),A=!0,r+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(r);throw t(e),e}var H,I="data:application/octet-stream;base64,",V=r=>r.startsWith(I);function U(r){if(r==H&&f)return new Uint8Array(f);throw"both async and sync fetching of the wasm failed"}function Y(r){return!f&&i&&"function"==typeof fetch?fetch(r,{credentials:"same-origin"}).then((e=>{if(!e.ok)throw`failed to load wasm binary file at '${r}'`;return e.arrayBuffer()})).catch((()=>U(r))):Promise.resolve().then((()=>U(r)))}function B(r,e,t){return Y(r).then((r=>WebAssembly.instantiate(r,e))).then(t,(r=>{h(`failed to asynchronously prepare wasm: ${r}`),k(r)}))}function z(r,e,t,n){return r||"function"!=typeof WebAssembly.instantiateStreaming||V(e)||"function"!=typeof fetch?B(e,t,n):fetch(e,{credentials:"same-origin"}).then((r=>WebAssembly.instantiateStreaming(r,t).then(n,(function(r){return h(`wasm streaming compile failed: ${r}`),h("falling back to ArrayBuffer instantiation"),B(e,t,n)}))))}function N(){return{a:st}}function q(){var r=N();function e(r,e){return lt=r.exports,d=lt.N,T(),kr=lt.Q,$(lt.O),x(),lt}function n(r){e(r.instance)}if(R(),a.instantiateWasm)try{return a.instantiateWasm(r,e)}catch(o){h(`Module.instantiateWasm callback failed with error: ${o}`),t(o)}return z(f,H,r,n).catch(t),{}}V(H="lclayout.wasm")||(H=c(H));var G=r=>{for(;r.length>0;)r.shift()(a)};a.noExitRuntime;class J{constructor(r){this.excPtr=r,this.ptr=r-24}set_type(r){w[this.ptr+4>>2]=r}get_type(){return w[this.ptr+4>>2]}set_destructor(r){w[this.ptr+8>>2]=r}get_destructor(){return w[this.ptr+8>>2]}set_caught(r){r=r?1:0,m[this.ptr+12]=r}get_caught(){return 0!=m[this.ptr+12]}set_rethrown(r){r=r?1:0,m[this.ptr+13]=r}get_rethrown(){return 0!=m[this.ptr+13]}init(r,e){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(e)}set_adjusted_ptr(r){w[this.ptr+16>>2]=r}get_adjusted_ptr(){return w[this.ptr+16>>2]}get_exception_ptr(){if(ht(this.get_type()))return w[this.excPtr>>2];var r=this.get_adjusted_ptr();return 0!==r?r:this.excPtr}}var L=(r,e,t)=>{throw new J(r).init(e,t),r},X={},K=r=>{for(;r.length;){var e=r.pop();r.pop()(e)}};function Q(r){return this.fromWireType(w[r>>2])}var Z,rr,er,tr={},nr={},ar={},or=r=>{throw new Z(r)},ir=(r,e,t)=>{function n(e){var n=t(e);n.length!==r.length&&or("Mismatched type converter count");for(var a=0;a<r.length;++a)hr(r[a],n[a])}r.forEach((function(r){ar[r]=e}));var a=new Array(e.length),o=[],i=0;e.forEach(((r,e)=>{nr.hasOwnProperty(r)?a[e]=nr[r]:(o.push(r),tr.hasOwnProperty(r)||(tr[r]=[]),tr[r].push((()=>{a[e]=nr[r],++i===o.length&&n(a)})))})),0===o.length&&n(a)},ur=r=>{var e=X[r];delete X[r];var t=e.rawConstructor,n=e.rawDestructor,a=e.fields,o=a.map((r=>r.getterReturnType)).concat(a.map((r=>r.setterArgumentType)));ir([r],o,(r=>{var o={};return a.forEach(((e,t)=>{var n=e.fieldName,i=r[t],u=e.getter,s=e.getterContext,l=r[t+a.length],c=e.setter,f=e.setterContext;o[n]={read:r=>i.fromWireType(u(s,r)),write:(r,e)=>{var t=[];c(f,r,l.toWireType(t,e)),K(t)}}})),[{name:e.name,fromWireType:r=>{var e={};for(var t in o)e[t]=o[t].read(r);return n(r),e},toWireType:(r,e)=>{for(var a in o)if(!(a in e))throw new TypeError(`Missing field: "${a}"`);var i=t();for(a in o)o[a].write(i,e[a]);return null!==r&&r.push(n,i),i},argPackAdvance:mr,readValueFromPointer:Q,destructorFunction:n}]}))},sr=(r,e,t,n,a)=>{},lr=()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);rr=r},cr=r=>{for(var e="",t=r;v[t];)e+=rr[v[t++]];return e},fr=r=>{throw new er(r)};function dr(r,e,t={}){var n=e.name;if(r||fr(`type "${n}" must have a positive integer typeid pointer`),nr.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;fr(`Cannot register type '${n}' twice`)}if(nr[r]=e,delete ar[r],tr.hasOwnProperty(r)){var a=tr[r];delete tr[r],a.forEach((r=>r()))}}function hr(r,e,t={}){if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");return dr(r,e,t)}var mr=8,vr=(r,e,t,n)=>{hr(r,{name:e=cr(e),fromWireType:function(r){return!!r},toWireType:function(r,e){return e?t:n},argPackAdvance:mr,readValueFromPointer:function(r){return this.fromWireType(v[r])},destructorFunction:null})},pr=(r,e,t)=>{r=cr(r),ir([],[e],(e=>(e=e[0],a[r]=e.fromWireType(t),[])))},yr=[],gr=[],wr=r=>{r>9&&0==--gr[r+1]&&(gr[r]=void 0,yr.push(r))},_r=()=>gr.length/2-5-yr.length,br=()=>{gr.push(0,1,void 0,1,null,1,!0,1,!1,1),a.count_emval_handles=_r},Ar={toValue:r=>(r||fr("Cannot use deleted val. handle = "+r),gr[r]),toHandle:r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=yr.pop()||gr.length;return gr[e]=r,gr[e+1]=1,e}}}},Tr={name:"emscripten::val",fromWireType:r=>{var e=Ar.toValue(r);return wr(r),e},toWireType:(r,e)=>Ar.toHandle(e),argPackAdvance:mr,readValueFromPointer:Q,destructorFunction:null},Cr=r=>hr(r,Tr),Fr=(r,e,t)=>{if(void 0===r[e].overloadTable){var n=r[e];r[e]=function(...n){return r[e].overloadTable.hasOwnProperty(n.length)||fr(`Function '${t}' called with an invalid number of arguments (${n.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[n.length].apply(this,n)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},Pr=(r,e,t)=>{a.hasOwnProperty(r)?((void 0===t||void 0!==a[r].overloadTable&&void 0!==a[r].overloadTable[t])&&fr(`Cannot register public name '${r}' twice`),Fr(a,r,r),a.hasOwnProperty(t)&&fr(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),a[r].overloadTable[t]=e):(a[r]=e,void 0!==t&&(a[r].numArguments=t))},Wr=(r,e,t)=>{switch(e){case 1:return t?function(r){return this.fromWireType(m[r])}:function(r){return this.fromWireType(v[r])};case 2:return t?function(r){return this.fromWireType(p[r>>1])}:function(r){return this.fromWireType(y[r>>1])};case 4:return t?function(r){return this.fromWireType(g[r>>2])}:function(r){return this.fromWireType(w[r>>2])};default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Er=(r,e,t,n)=>{function a(){}e=cr(e),a.values={},hr(r,{name:e,constructor:a,fromWireType:function(r){return this.constructor.values[r]},toWireType:(r,e)=>e.value,argPackAdvance:mr,readValueFromPointer:Wr(e,t,n),destructorFunction:null}),Pr(e,a)},Sr=(r,e)=>Object.defineProperty(e,"name",{value:r}),Or=r=>{var e=ct(r),t=cr(e);return dt(e),t},$r=(r,e)=>{var t=nr[r];return void 0===t&&fr(`${e} has unknown type ${Or(r)}`),t},jr=(r,e,t)=>{var n=$r(r,"enum");e=cr(e);var a=n.constructor,o=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:Sr(`${n.name}_${e}`,(function(){}))}});a.values[t]=o,a[e]=o},Mr=(r,e)=>{switch(e){case 4:return function(r){return this.fromWireType(_[r>>2])};case 8:return function(r){return this.fromWireType(b[r>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},Dr=(r,e,t)=>{hr(r,{name:e=cr(e),fromWireType:r=>r,toWireType:(r,e)=>e,argPackAdvance:mr,readValueFromPointer:Mr(e,t),destructorFunction:null})};function Rr(r){for(var e=1;e<r.length;++e)if(null!==r[e]&&void 0===r[e].destructorFunction)return!0;return!1}function xr(r,e,t,n,a,o){var i=e.length;i<2&&fr("argTypes array size mismatch! Must at least get return value and 'this' types!");var u=null!==e[1]&&null!==t,s=Rr(e),l="void"!==e[0].name,c=i-2,f=new Array(c),d=[],h=[];return Sr(r,(function(...t){var o;t.length!==c&&fr(`function ${r} called with ${t.length} arguments, expected ${c}`),h.length=0,d.length=u?2:1,d[0]=a,u&&(o=e[1].toWireType(h,this),d[1]=o);for(var i=0;i<c;++i)f[i]=e[i+2].toWireType(h,t[i]),d.push(f[i]);function m(r){if(s)K(h);else for(var t=u?1:2;t<e.length;t++){var n=1===t?o:f[t-2];null!==e[t].destructorFunction&&e[t].destructorFunction(n)}if(l)return e[0].fromWireType(r)}return m(n(...d))}))}var kr,Hr,Ir,Vr=(r,e)=>{for(var t=[],n=0;n<r;n++)t.push(w[e+4*n>>2]);return t},Ur=(r,e,t)=>{a.hasOwnProperty(r)||or("Replacing nonexistent public symbol"),void 0!==a[r].overloadTable&&void 0!==t?a[r].overloadTable[t]=e:(a[r]=e,a[r].argCount=t)},Yr=(r,e,t)=>(r=r.replace(/p/g,"i"),(0,a["dynCall_"+r])(e,...t)),Br=[],zr=r=>{var e=Br[r];return e||(r>=Br.length&&(Br.length=r+1),Br[r]=e=kr.get(r)),e},Nr=(r,e,t=[])=>r.includes("j")?Yr(r,e,t):zr(e)(...t),qr=(r,e)=>(...t)=>Nr(r,e,t),Gr=(r,e)=>{function t(){return r.includes("j")?qr(r,e):zr(e)}r=cr(r);var n=t();return"function"!=typeof n&&fr(`unknown function pointer with signature ${r}: ${e}`),n},Jr=(r,e)=>{var t=Sr(e,(function(r){this.name=e,this.message=r;var t=new Error(r).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))}));return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},t},Lr=(r,e)=>{var t=[],n={};function a(r){n[r]||nr[r]||(ar[r]?ar[r].forEach(a):(t.push(r),n[r]=!0))}throw e.forEach(a),new Hr(`${r}: `+t.map(Or).join([", "]))},Xr=r=>{const e=(r=r.trim()).indexOf("(");return-1!==e?r.substr(0,e):r},Kr=(r,e,t,n,a,o,i)=>{var u=Vr(e,t);r=cr(r),r=Xr(r),a=Gr(n,a),Pr(r,(function(){Lr(`Cannot call ${r} due to unbound types`,u)}),e-1),ir([],u,(t=>{var n=[t[0],null].concat(t.slice(1));return Ur(r,xr(r,n,null,a,o),e-1),[]}))},Qr=(r,e,t)=>{switch(e){case 1:return t?r=>m[r]:r=>v[r];case 2:return t?r=>p[r>>1]:r=>y[r>>1];case 4:return t?r=>g[r>>2]:r=>w[r>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Zr=(r,e,t,n,a)=>{e=cr(e);var o=r=>r;if(0===n){var i=32-8*t;o=r=>r<<i>>>i}var u=e.includes("unsigned"),s=(r,e)=>{};hr(r,{name:e,fromWireType:o,toWireType:u?function(r,e){return s(e,this.name),e>>>0}:function(r,e){return s(e,this.name),e},argPackAdvance:mr,readValueFromPointer:Qr(e,t,0!==n),destructorFunction:null})},re=(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];function a(r){var e=w[r>>2],t=w[r+4>>2];return new n(m.buffer,t,e)}hr(r,{name:t=cr(t),fromWireType:a,argPackAdvance:mr,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},ee=(r,e)=>{Cr(r)},te=(r,e,t,n)=>{if(!(n>0))return 0;for(var a=t,o=t+n-1,i=0;i<r.length;++i){var u=r.charCodeAt(i);if(u>=55296&&u<=57343&&(u=65536+((1023&u)<<10)|1023&r.charCodeAt(++i)),u<=127){if(t>=o)break;e[t++]=u}else if(u<=2047){if(t+1>=o)break;e[t++]=192|u>>6,e[t++]=128|63&u}else if(u<=65535){if(t+2>=o)break;e[t++]=224|u>>12,e[t++]=128|u>>6&63,e[t++]=128|63&u}else{if(t+3>=o)break;e[t++]=240|u>>18,e[t++]=128|u>>12&63,e[t++]=128|u>>6&63,e[t++]=128|63&u}}return e[t]=0,t-a},ne=(r,e,t)=>te(r,v,e,t),ae=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++t):e+=3}return e},oe="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,ie=(r,e,t)=>{for(var n=e+t,a=e;r[a]&&!(a>=n);)++a;if(a-e>16&&r.buffer&&oe)return oe.decode(r.subarray(e,a));for(var o="";e<a;){var i=r[e++];if(128&i){var u=63&r[e++];if(192!=(224&i)){var s=63&r[e++];if((i=224==(240&i)?(15&i)<<12|u<<6|s:(7&i)<<18|u<<12|s<<6|63&r[e++])<65536)o+=String.fromCharCode(i);else{var l=i-65536;o+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else o+=String.fromCharCode((31&i)<<6|u)}else o+=String.fromCharCode(i)}return o},ue=(r,e)=>r?ie(v,r,e):"",se=(r,e)=>{var t="std::string"===(e=cr(e));hr(r,{name:e,fromWireType(r){var e,n=w[r>>2],a=r+4;if(t)for(var o=a,i=0;i<=n;++i){var u=a+i;if(i==n||0==v[u]){var s=ue(o,u-o);void 0===e?e=s:(e+=String.fromCharCode(0),e+=s),o=u+1}}else{var l=new Array(n);for(i=0;i<n;++i)l[i]=String.fromCharCode(v[a+i]);e=l.join("")}return dt(r),e},toWireType(r,e){var n;e instanceof ArrayBuffer&&(e=new Uint8Array(e));var a="string"==typeof e;a||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||fr("Cannot pass non-string to std::string"),n=t&&a?ae(e):e.length;var o=ft(4+n+1),i=o+4;if(w[o>>2]=n,t&&a)ne(e,i,n+1);else if(a)for(var u=0;u<n;++u){var s=e.charCodeAt(u);s>255&&(dt(i),fr("String has UTF-16 code units that do not fit in 8 bits")),v[i+u]=s}else for(u=0;u<n;++u)v[i+u]=e[u];return null!==r&&r.push(dt,o),o},argPackAdvance:mr,readValueFromPointer:Q,destructorFunction(r){dt(r)}})},le="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,ce=(r,e)=>{for(var t=r,n=t>>1,a=n+e/2;!(n>=a)&&y[n];)++n;if((t=n<<1)-r>32&&le)return le.decode(v.subarray(r,t));for(var o="",i=0;!(i>=e/2);++i){var u=p[r+2*i>>1];if(0==u)break;o+=String.fromCharCode(u)}return o},fe=(r,e,t)=>{if(t??=2147483647,t<2)return 0;for(var n=e,a=(t-=2)<2*r.length?t/2:r.length,o=0;o<a;++o){var i=r.charCodeAt(o);p[e>>1]=i,e+=2}return p[e>>1]=0,e-n},de=r=>2*r.length,he=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var a=g[r+4*t>>2];if(0==a)break;if(++t,a>=65536){var o=a-65536;n+=String.fromCharCode(55296|o>>10,56320|1023&o)}else n+=String.fromCharCode(a)}return n},me=(r,e,t)=>{if(t??=2147483647,t<4)return 0;for(var n=e,a=n+t-4,o=0;o<r.length;++o){var i=r.charCodeAt(o);if(i>=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&r.charCodeAt(++o)),g[e>>2]=i,(e+=4)+4>a)break}return g[e>>2]=0,e-n},ve=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&++t,e+=4}return e},pe=(r,e,t)=>{var n,a,o,i;t=cr(t),2===e?(n=ce,a=fe,i=de,o=r=>y[r>>1]):4===e&&(n=he,a=me,i=ve,o=r=>w[r>>2]),hr(r,{name:t,fromWireType:r=>{for(var t,a=w[r>>2],i=r+4,u=0;u<=a;++u){var s=r+4+u*e;if(u==a||0==o(s)){var l=n(i,s-i);void 0===t?t=l:(t+=String.fromCharCode(0),t+=l),i=s+e}}return dt(r),t},toWireType:(r,n)=>{"string"!=typeof n&&fr(`Cannot pass non-string to C++ string type ${t}`);var o=i(n),u=ft(4+o+e);return w[u>>2]=o/e,a(n,u+4,o+e),null!==r&&r.push(dt,u),u},argPackAdvance:mr,readValueFromPointer:Q,destructorFunction(r){dt(r)}})},ye=(r,e,t,n,a,o)=>{X[r]={name:cr(e),rawConstructor:Gr(t,n),rawDestructor:Gr(a,o),fields:[]}},ge=(r,e,t,n,a,o,i,u,s,l)=>{X[r].fields.push({fieldName:cr(e),getterReturnType:t,getter:Gr(n,a),getterContext:o,setterArgumentType:i,setter:Gr(u,s),setterContext:l})},we=(r,e)=>{hr(r,{isVoid:!0,name:e=cr(e),argPackAdvance:0,fromWireType:()=>{},toWireType:(r,e)=>{}})},_e=1,be=()=>_e,Ae=(r,e,t)=>v.copyWithin(r,e,e+t),Te=(r,e,t)=>{var n=[],a=r.toWireType(n,t);return n.length&&(w[e>>2]=Ar.toHandle(n)),a},Ce=(r,e,t)=>(r=Ar.toValue(r),e=$r(e,"emval::as"),Te(e,t,r)),Fe=[],Pe=(r,e,t,n)=>(r=Fe[r])(null,e=Ar.toValue(e),t,n),We={},Ee=r=>{var e=We[r];return void 0===e?cr(r):e},Se=(r,e,t,n,a)=>(r=Fe[r])(e=Ar.toValue(e),e[t=Ee(t)],n,a),Oe=r=>{var e=Fe.length;return Fe.push(r),e},$e=(r,e)=>{for(var t=new Array(r),n=0;n<r;++n)t[n]=$r(w[e+4*n>>2],"parameter "+n);return t},je=Reflect.construct,Me=(r,e,t)=>{var n=$e(r,e),a=n.shift();r--;var o=new Array(r),i=(e,i,u,s)=>{for(var l=0,c=0;c<r;++c)o[c]=n[c].readValueFromPointer(s+l),l+=n[c].argPackAdvance;var f=1===t?je(i,o):i.apply(e,o);return Te(a,u,f)},u=`methodCaller<(${n.map((r=>r.name)).join(", ")}) => ${a.name}>`;return Oe(Sr(u,i))},De=(r,e)=>(r=Ar.toValue(r),e=Ar.toValue(e),Ar.toHandle(r[e])),Re=()=>Ar.toHandle([]),xe=r=>{r=Ar.toValue(r);for(var e=new Array(r.length),t=0;t<r.length;t++)e[t]=r[t];return Ar.toHandle(e)},ke=r=>Ar.toHandle(Ee(r)),He=r=>{var e=Ar.toValue(r);K(e),wr(r)},Ie=(r,e)=>{var t=(r=$r(r,"_emval_take_value")).readValueFromPointer(e);return Ar.toHandle(t)},Ve=()=>{k("")},Ue=()=>Date.now(),Ye=()=>2147483648,Be=()=>Ye();Ir=()=>performance.now();var ze=r=>{var e=(r-d.buffer.byteLength+65535)/65536;try{return d.grow(e),T(),1}catch(t){}},Ne=r=>{var e=v.length;r>>>=0;var t=Ye();if(r>t)return!1;for(var n=(r,e)=>r+(e-r%e)%e,a=1;a<=4;a*=2){var o=e*(1+.2/a);o=Math.min(o,r+100663296);var i=Math.min(t,n(Math.max(r,o),65536));if(ze(i))return!0}return!1},qe={},Ge=()=>s||"./this.program",Je=()=>{if(!Je.strings){var r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Ge()};for(var e in qe)void 0===qe[e]?delete r[e]:r[e]=qe[e];var t=[];for(var e in r)t.push(`${e}=${r[e]}`);Je.strings=t}return Je.strings},Le=(r,e)=>{for(var t=0;t<r.length;++t)m[e++]=r.charCodeAt(t);m[e]=0},Xe=(r,e)=>{var t=0;return Je().forEach(((n,a)=>{var o=e+t;w[r+4*a>>2]=o,Le(n,o),t+=n.length+1})),0},Ke=(r,e)=>{var t=Je();w[r>>2]=t.length;var n=0;return t.forEach((r=>n+=r.length+1)),w[e>>2]=n,0},Qe=r=>r%4==0&&(r%100!=0||r%400==0),Ze=(r,e)=>{for(var t=0,n=0;n<=e;t+=r[n++]);return t},rt=[31,29,31,30,31,30,31,31,30,31,30,31],et=[31,28,31,30,31,30,31,31,30,31,30,31],tt=(r,e)=>{for(var t=new Date(r.getTime());e>0;){var n=Qe(t.getFullYear()),a=t.getMonth(),o=(n?rt:et)[a];if(!(e>o-t.getDate()))return t.setDate(t.getDate()+e),t;e-=o-t.getDate()+1,t.setDate(1),a<11?t.setMonth(a+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1))}return t};function nt(r,e,t){var n=ae(r)+1,a=new Array(n);return te(r,a,0,a.length),a}var at=(r,e)=>{m.set(r,e)},ot=(r,e,t,n)=>{var a=w[n+40>>2],o={tm_sec:g[n>>2],tm_min:g[n+4>>2],tm_hour:g[n+8>>2],tm_mday:g[n+12>>2],tm_mon:g[n+16>>2],tm_year:g[n+20>>2],tm_wday:g[n+24>>2],tm_yday:g[n+28>>2],tm_isdst:g[n+32>>2],tm_gmtoff:g[n+36>>2],tm_zone:a?ue(a):""},i=ue(t),u={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var s in u)i=i.replace(new RegExp(s,"g"),u[s]);var l=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],c=["January","February","March","April","May","June","July","August","September","October","November","December"];function f(r,e,t){for(var n="number"==typeof r?r.toString():r||"";n.length<e;)n=t[0]+n;return n}function d(r,e){return f(r,e,"0")}function h(r,e){function t(r){return r<0?-1:r>0?1:0}var n;return 0===(n=t(r.getFullYear()-e.getFullYear()))&&0===(n=t(r.getMonth()-e.getMonth()))&&(n=t(r.getDate()-e.getDate())),n}function m(r){switch(r.getDay()){case 0:return new Date(r.getFullYear()-1,11,29);case 1:return r;case 2:return new Date(r.getFullYear(),0,3);case 3:return new Date(r.getFullYear(),0,2);case 4:return new Date(r.getFullYear(),0,1);case 5:return new Date(r.getFullYear()-1,11,31);case 6:return new Date(r.getFullYear()-1,11,30)}}function v(r){var e=tt(new Date(r.tm_year+1900,0,1),r.tm_yday),t=new Date(e.getFullYear(),0,4),n=new Date(e.getFullYear()+1,0,4),a=m(t),o=m(n);return h(a,e)<=0?h(o,e)<=0?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var p={"%a":r=>l[r.tm_wday].substring(0,3),"%A":r=>l[r.tm_wday],"%b":r=>c[r.tm_mon].substring(0,3),"%B":r=>c[r.tm_mon],"%C":r=>d((r.tm_year+1900)/100|0,2),"%d":r=>d(r.tm_mday,2),"%e":r=>f(r.tm_mday,2," "),"%g":r=>v(r).toString().substring(2),"%G":v,"%H":r=>d(r.tm_hour,2),"%I":r=>{var e=r.tm_hour;return 0==e?e=12:e>12&&(e-=12),d(e,2)},"%j":r=>d(r.tm_mday+Ze(Qe(r.tm_year+1900)?rt:et,r.tm_mon-1),3),"%m":r=>d(r.tm_mon+1,2),"%M":r=>d(r.tm_min,2),"%n":()=>"\n","%p":r=>r.tm_hour>=0&&r.tm_hour<12?"AM":"PM","%S":r=>d(r.tm_sec,2),"%t":()=>"\t","%u":r=>r.tm_wday||7,"%U":r=>{var e=r.tm_yday+7-r.tm_wday;return d(Math.floor(e/7),2)},"%V":r=>{var e=Math.floor((r.tm_yday+7-(r.tm_wday+6)%7)/7);if((r.tm_wday+371-r.tm_yday-2)%7<=2&&e++,e){if(53==e){var t=(r.tm_wday+371-r.tm_yday)%7;4==t||3==t&&Qe(r.tm_year)||(e=1)}}else{e=52;var n=(r.tm_wday+7-r.tm_yday-1)%7;(4==n||5==n&&Qe(r.tm_year%400-1))&&e++}return d(e,2)},"%w":r=>r.tm_wday,"%W":r=>{var e=r.tm_yday+7-(r.tm_wday+6)%7;return d(Math.floor(e/7),2)},"%y":r=>(r.tm_year+1900).toString().substring(2),"%Y":r=>r.tm_year+1900,"%z":r=>{var e=r.tm_gmtoff,t=e>=0;return e=(e=Math.abs(e)/60)/60*100+e%60,(t?"+":"-")+String("0000"+e).slice(-4)},"%Z":r=>r.tm_zone,"%%":()=>"%"};for(var s in i=i.replace(/%%/g,"\0\0"),p)i.includes(s)&&(i=i.replace(new RegExp(s,"g"),p[s](o)));var y=nt(i=i.replace(/\0\0/g,"%"));return y.length>e?0:(at(y,r),y.length-1)},it=(r,e,t,n,a)=>ot(r,e,t,n);Z=a.InternalError=class extends Error{constructor(r){super(r),this.name="InternalError"}},lr(),er=a.BindingError=class extends Error{constructor(r){super(r),this.name="BindingError"}},br(),Hr=a.UnboundTypeError=Jr(Error,"UnboundTypeError");var ut,st={a:L,k:ur,z:sr,w:vr,t:pr,M:Cr,r:Er,j:jr,v:Dr,e:Kr,m:Zr,f:re,L:ee,u:se,s:pe,l:ye,c:ge,x:we,F:be,J:Ae,g:Ce,y:Pe,p:Se,b:wr,n:Me,h:De,q:Re,K:xe,o:ke,d:He,i:Ie,E:Ve,G:Ue,A:Be,I:Ir,H:Ne,C:Xe,D:Ke,B:it},lt=q(),ct=r=>(ct=lt.P)(r),ft=a._malloc=r=>(ft=a._malloc=lt.R)(r),dt=a._free=r=>(dt=a._free=lt.S)(r),ht=r=>(ht=lt.T)(r);function mt(){function r(){ut||(ut=!0,a.calledRun=!0,A||(E(),e(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),S()))}M>0||(W(),M>0||(a.setStatus?(a.setStatus("Running..."),setTimeout((function(){setTimeout((function(){a.setStatus("")}),1),r()}),1)):r()))}if(a.dynCall_viijii=(r,e,t,n,o,i,u)=>(a.dynCall_viijii=lt.U)(r,e,t,n,o,i,u),a.dynCall_iiiiij=(r,e,t,n,o,i,u)=>(a.dynCall_iiiiij=lt.V)(r,e,t,n,o,i,u),a.dynCall_iiiiijj=(r,e,t,n,o,i,u,s,l)=>(a.dynCall_iiiiijj=lt.W)(r,e,t,n,o,i,u,s,l),a.dynCall_iiiiiijj=(r,e,t,n,o,i,u,s,l,c)=>(a.dynCall_iiiiiijj=lt.X)(r,e,t,n,o,i,u,s,l,c),D=function r(){ut||mt(),ut||(D=r)},a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();return mt(),o},r.exports=a),t.exports;var r,n,a}const a=r(n()),o=Object.freeze(Object.defineProperty({__proto__:null,default:a},Symbol.toStringTag,{value:"Module"}));export{o as l};
|
|
5
|
+
import{g as r}from"./_commonjsHelpers.js";var e,t={exports:{}};function n(){return e||(e=1,r=t,n="undefined"!=typeof document?document.currentScript?.src:void 0,a=function(r={}){var e,t,a=Object.assign({},r),o=new Promise(((r,n)=>{e=r,t=n})),i=!0,u=Object.assign({},a),s="./this.program",l="";function c(r){return a.locateFile?a.locateFile(r,l):l+r}"undefined"!=typeof document&&document.currentScript&&(l=document.currentScript.src),n&&(l=n),l=l.startsWith("blob:")?"":l.substr(0,l.replace(/[?#].*/,"").lastIndexOf("/")+1),a.print||console.log.bind(console);var f,d,h=a.printErr||console.error.bind(console);Object.assign(a,u),u=null,a.arguments&&a.arguments,a.thisProgram&&(s=a.thisProgram),a.quit&&a.quit,a.wasmBinary&&(f=a.wasmBinary);var m,v,p,y,g,w,_,b,A=!1;function T(){var r=d.buffer;a.HEAP8=m=new Int8Array(r),a.HEAP16=p=new Int16Array(r),a.HEAPU8=v=new Uint8Array(r),a.HEAPU16=y=new Uint16Array(r),a.HEAP32=g=new Int32Array(r),a.HEAPU32=w=new Uint32Array(r),a.HEAPF32=_=new Float32Array(r),a.HEAPF64=b=new Float64Array(r)}var C=[],F=[],P=[];function W(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)O(a.preRun.shift());G(C)}function E(){G(F)}function S(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)j(a.postRun.shift());G(P)}function O(r){C.unshift(r)}function $(r){F.unshift(r)}function j(r){P.unshift(r)}var M=0,D=null;function R(r){M++,a.monitorRunDependencies?.(M)}function x(r){if(M--,a.monitorRunDependencies?.(M),0==M&&D){var e=D;D=null,e()}}function k(r){a.onAbort?.(r),h(r="Aborted("+r+")"),A=!0,r+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(r);throw t(e),e}var H,I="data:application/octet-stream;base64,",V=r=>r.startsWith(I);function U(r){if(r==H&&f)return new Uint8Array(f);throw"both async and sync fetching of the wasm failed"}function Y(r){return!f&&i&&"function"==typeof fetch?fetch(r,{credentials:"same-origin"}).then((e=>{if(!e.ok)throw`failed to load wasm binary file at '${r}'`;return e.arrayBuffer()})).catch((()=>U(r))):Promise.resolve().then((()=>U(r)))}function B(r,e,t){return Y(r).then((r=>WebAssembly.instantiate(r,e))).then(t,(r=>{h(`failed to asynchronously prepare wasm: ${r}`),k(r)}))}function z(r,e,t,n){return r||"function"!=typeof WebAssembly.instantiateStreaming||V(e)||"function"!=typeof fetch?B(e,t,n):fetch(e,{credentials:"same-origin"}).then((r=>WebAssembly.instantiateStreaming(r,t).then(n,(function(r){return h(`wasm streaming compile failed: ${r}`),h("falling back to ArrayBuffer instantiation"),B(e,t,n)}))))}function N(){return{a:st}}function q(){var r=N();function e(r,e){return lt=r.exports,d=lt.N,T(),kr=lt.Q,$(lt.O),x(),lt}function n(r){e(r.instance)}if(R(),a.instantiateWasm)try{return a.instantiateWasm(r,e)}catch(o){h(`Module.instantiateWasm callback failed with error: ${o}`),t(o)}return z(f,H,r,n).catch(t),{}}V(H="lclayout.wasm")||(H=c(H));var G=r=>{for(;r.length>0;)r.shift()(a)};a.noExitRuntime;class J{constructor(r){this.excPtr=r,this.ptr=r-24}set_type(r){w[this.ptr+4>>2]=r}get_type(){return w[this.ptr+4>>2]}set_destructor(r){w[this.ptr+8>>2]=r}get_destructor(){return w[this.ptr+8>>2]}set_caught(r){r=r?1:0,m[this.ptr+12]=r}get_caught(){return 0!=m[this.ptr+12]}set_rethrown(r){r=r?1:0,m[this.ptr+13]=r}get_rethrown(){return 0!=m[this.ptr+13]}init(r,e){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(e)}set_adjusted_ptr(r){w[this.ptr+16>>2]=r}get_adjusted_ptr(){return w[this.ptr+16>>2]}get_exception_ptr(){if(ht(this.get_type()))return w[this.excPtr>>2];var r=this.get_adjusted_ptr();return 0!==r?r:this.excPtr}}var L=(r,e,t)=>{throw new J(r).init(e,t),r},X={},K=r=>{for(;r.length;){var e=r.pop();r.pop()(e)}};function Q(r){return this.fromWireType(w[r>>2])}var Z,rr,er,tr={},nr={},ar={},or=r=>{throw new Z(r)},ir=(r,e,t)=>{function n(e){var n=t(e);n.length!==r.length&&or("Mismatched type converter count");for(var a=0;a<r.length;++a)hr(r[a],n[a])}r.forEach((function(r){ar[r]=e}));var a=new Array(e.length),o=[],i=0;e.forEach(((r,e)=>{nr.hasOwnProperty(r)?a[e]=nr[r]:(o.push(r),tr.hasOwnProperty(r)||(tr[r]=[]),tr[r].push((()=>{a[e]=nr[r],++i===o.length&&n(a)})))})),0===o.length&&n(a)},ur=r=>{var e=X[r];delete X[r];var t=e.rawConstructor,n=e.rawDestructor,a=e.fields,o=a.map((r=>r.getterReturnType)).concat(a.map((r=>r.setterArgumentType)));ir([r],o,(r=>{var o={};return a.forEach(((e,t)=>{var n=e.fieldName,i=r[t],u=e.getter,s=e.getterContext,l=r[t+a.length],c=e.setter,f=e.setterContext;o[n]={read:r=>i.fromWireType(u(s,r)),write:(r,e)=>{var t=[];c(f,r,l.toWireType(t,e)),K(t)}}})),[{name:e.name,fromWireType:r=>{var e={};for(var t in o)e[t]=o[t].read(r);return n(r),e},toWireType:(r,e)=>{for(var a in o)if(!(a in e))throw new TypeError(`Missing field: "${a}"`);var i=t();for(a in o)o[a].write(i,e[a]);return null!==r&&r.push(n,i),i},argPackAdvance:mr,readValueFromPointer:Q,destructorFunction:n}]}))},sr=(r,e,t,n,a)=>{},lr=()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);rr=r},cr=r=>{for(var e="",t=r;v[t];)e+=rr[v[t++]];return e},fr=r=>{throw new er(r)};function dr(r,e,t={}){var n=e.name;if(r||fr(`type "${n}" must have a positive integer typeid pointer`),nr.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;fr(`Cannot register type '${n}' twice`)}if(nr[r]=e,delete ar[r],tr.hasOwnProperty(r)){var a=tr[r];delete tr[r],a.forEach((r=>r()))}}function hr(r,e,t={}){if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");return dr(r,e,t)}var mr=8,vr=(r,e,t,n)=>{hr(r,{name:e=cr(e),fromWireType:function(r){return!!r},toWireType:function(r,e){return e?t:n},argPackAdvance:mr,readValueFromPointer:function(r){return this.fromWireType(v[r])},destructorFunction:null})},pr=(r,e,t)=>{r=cr(r),ir([],[e],(e=>(e=e[0],a[r]=e.fromWireType(t),[])))},yr=[],gr=[],wr=r=>{r>9&&0==--gr[r+1]&&(gr[r]=void 0,yr.push(r))},_r=()=>gr.length/2-5-yr.length,br=()=>{gr.push(0,1,void 0,1,null,1,!0,1,!1,1),a.count_emval_handles=_r},Ar={toValue:r=>(r||fr("Cannot use deleted val. handle = "+r),gr[r]),toHandle:r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=yr.pop()||gr.length;return gr[e]=r,gr[e+1]=1,e}}}},Tr={name:"emscripten::val",fromWireType:r=>{var e=Ar.toValue(r);return wr(r),e},toWireType:(r,e)=>Ar.toHandle(e),argPackAdvance:mr,readValueFromPointer:Q,destructorFunction:null},Cr=r=>hr(r,Tr),Fr=(r,e,t)=>{if(void 0===r[e].overloadTable){var n=r[e];r[e]=function(...n){return r[e].overloadTable.hasOwnProperty(n.length)||fr(`Function '${t}' called with an invalid number of arguments (${n.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[n.length].apply(this,n)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},Pr=(r,e,t)=>{a.hasOwnProperty(r)?((void 0===t||void 0!==a[r].overloadTable&&void 0!==a[r].overloadTable[t])&&fr(`Cannot register public name '${r}' twice`),Fr(a,r,r),a.hasOwnProperty(t)&&fr(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),a[r].overloadTable[t]=e):(a[r]=e,void 0!==t&&(a[r].numArguments=t))},Wr=(r,e,t)=>{switch(e){case 1:return t?function(r){return this.fromWireType(m[r])}:function(r){return this.fromWireType(v[r])};case 2:return t?function(r){return this.fromWireType(p[r>>1])}:function(r){return this.fromWireType(y[r>>1])};case 4:return t?function(r){return this.fromWireType(g[r>>2])}:function(r){return this.fromWireType(w[r>>2])};default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Er=(r,e,t,n)=>{function a(){}e=cr(e),a.values={},hr(r,{name:e,constructor:a,fromWireType:function(r){return this.constructor.values[r]},toWireType:(r,e)=>e.value,argPackAdvance:mr,readValueFromPointer:Wr(e,t,n),destructorFunction:null}),Pr(e,a)},Sr=(r,e)=>Object.defineProperty(e,"name",{value:r}),Or=r=>{var e=ct(r),t=cr(e);return dt(e),t},$r=(r,e)=>{var t=nr[r];return void 0===t&&fr(`${e} has unknown type ${Or(r)}`),t},jr=(r,e,t)=>{var n=$r(r,"enum");e=cr(e);var a=n.constructor,o=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:Sr(`${n.name}_${e}`,(function(){}))}});a.values[t]=o,a[e]=o},Mr=(r,e)=>{switch(e){case 4:return function(r){return this.fromWireType(_[r>>2])};case 8:return function(r){return this.fromWireType(b[r>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},Dr=(r,e,t)=>{hr(r,{name:e=cr(e),fromWireType:r=>r,toWireType:(r,e)=>e,argPackAdvance:mr,readValueFromPointer:Mr(e,t),destructorFunction:null})};function Rr(r){for(var e=1;e<r.length;++e)if(null!==r[e]&&void 0===r[e].destructorFunction)return!0;return!1}function xr(r,e,t,n,a,o){var i=e.length;i<2&&fr("argTypes array size mismatch! Must at least get return value and 'this' types!"),e[1];var u=Rr(e),s="void"!==e[0].name,l=i-2,c=new Array(l),f=[],d=[];return Sr(r,(function(...t){var o;t.length!==l&&fr(`function ${r} called with ${t.length} arguments, expected ${l}`),d.length=0,f.length=1,f[0]=a;for(var i=0;i<l;++i)c[i]=e[i+2].toWireType(d,t[i]),f.push(c[i]);function h(r){if(u)K(d);else for(var t=2;t<e.length;t++){var n=1===t?o:c[t-2];null!==e[t].destructorFunction&&e[t].destructorFunction(n)}if(s)return e[0].fromWireType(r)}return h(n(...f))}))}var kr,Hr,Ir,Vr=(r,e)=>{for(var t=[],n=0;n<r;n++)t.push(w[e+4*n>>2]);return t},Ur=(r,e,t)=>{a.hasOwnProperty(r)||or("Replacing nonexistent public symbol"),void 0!==a[r].overloadTable&&void 0!==t?a[r].overloadTable[t]=e:(a[r]=e,a[r].argCount=t)},Yr=(r,e,t)=>(r=r.replace(/p/g,"i"),(0,a["dynCall_"+r])(e,...t)),Br=[],zr=r=>{var e=Br[r];return e||(r>=Br.length&&(Br.length=r+1),Br[r]=e=kr.get(r)),e},Nr=(r,e,t=[])=>r.includes("j")?Yr(r,e,t):zr(e)(...t),qr=(r,e)=>(...t)=>Nr(r,e,t),Gr=(r,e)=>{function t(){return r.includes("j")?qr(r,e):zr(e)}r=cr(r);var n=t();return"function"!=typeof n&&fr(`unknown function pointer with signature ${r}: ${e}`),n},Jr=(r,e)=>{var t=Sr(e,(function(r){this.name=e,this.message=r;var t=new Error(r).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))}));return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},t},Lr=(r,e)=>{var t=[],n={};function a(r){n[r]||nr[r]||(ar[r]?ar[r].forEach(a):(t.push(r),n[r]=!0))}throw e.forEach(a),new Hr(`${r}: `+t.map(Or).join([", "]))},Xr=r=>{const e=(r=r.trim()).indexOf("(");return-1!==e?r.substr(0,e):r},Kr=(r,e,t,n,a,o,i)=>{var u=Vr(e,t);r=cr(r),r=Xr(r),a=Gr(n,a),Pr(r,(function(){Lr(`Cannot call ${r} due to unbound types`,u)}),e-1),ir([],u,(t=>{var n=[t[0],null].concat(t.slice(1));return Ur(r,xr(r,n,null,a,o),e-1),[]}))},Qr=(r,e,t)=>{switch(e){case 1:return t?r=>m[r]:r=>v[r];case 2:return t?r=>p[r>>1]:r=>y[r>>1];case 4:return t?r=>g[r>>2]:r=>w[r>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Zr=(r,e,t,n,a)=>{e=cr(e);var o=r=>r;if(0===n){var i=32-8*t;o=r=>r<<i>>>i}var u=e.includes("unsigned"),s=(r,e)=>{};hr(r,{name:e,fromWireType:o,toWireType:u?function(r,e){return s(e,this.name),e>>>0}:function(r,e){return s(e,this.name),e},argPackAdvance:mr,readValueFromPointer:Qr(e,t,0!==n),destructorFunction:null})},re=(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];function a(r){var e=w[r>>2],t=w[r+4>>2];return new n(m.buffer,t,e)}hr(r,{name:t=cr(t),fromWireType:a,argPackAdvance:mr,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},ee=(r,e)=>{Cr(r)},te=(r,e,t,n)=>{if(!(n>0))return 0;for(var a=t,o=t+n-1,i=0;i<r.length;++i){var u=r.charCodeAt(i);if(u>=55296&&u<=57343&&(u=65536+((1023&u)<<10)|1023&r.charCodeAt(++i)),u<=127){if(t>=o)break;e[t++]=u}else if(u<=2047){if(t+1>=o)break;e[t++]=192|u>>6,e[t++]=128|63&u}else if(u<=65535){if(t+2>=o)break;e[t++]=224|u>>12,e[t++]=128|u>>6&63,e[t++]=128|63&u}else{if(t+3>=o)break;e[t++]=240|u>>18,e[t++]=128|u>>12&63,e[t++]=128|u>>6&63,e[t++]=128|63&u}}return e[t]=0,t-a},ne=(r,e,t)=>te(r,v,e,t),ae=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++t):e+=3}return e},oe="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,ie=(r,e,t)=>{for(var n=e+t,a=e;r[a]&&!(a>=n);)++a;if(a-e>16&&r.buffer&&oe)return oe.decode(r.subarray(e,a));for(var o="";e<a;){var i=r[e++];if(128&i){var u=63&r[e++];if(192!=(224&i)){var s=63&r[e++];if((i=224==(240&i)?(15&i)<<12|u<<6|s:(7&i)<<18|u<<12|s<<6|63&r[e++])<65536)o+=String.fromCharCode(i);else{var l=i-65536;o+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else o+=String.fromCharCode((31&i)<<6|u)}else o+=String.fromCharCode(i)}return o},ue=(r,e)=>r?ie(v,r,e):"",se=(r,e)=>{var t="std::string"===(e=cr(e));hr(r,{name:e,fromWireType(r){var e,n=w[r>>2],a=r+4;if(t)for(var o=a,i=0;i<=n;++i){var u=a+i;if(i==n||0==v[u]){var s=ue(o,u-o);void 0===e?e=s:(e+=String.fromCharCode(0),e+=s),o=u+1}}else{var l=new Array(n);for(i=0;i<n;++i)l[i]=String.fromCharCode(v[a+i]);e=l.join("")}return dt(r),e},toWireType(r,e){var n;e instanceof ArrayBuffer&&(e=new Uint8Array(e));var a="string"==typeof e;a||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||fr("Cannot pass non-string to std::string"),n=t&&a?ae(e):e.length;var o=ft(4+n+1),i=o+4;if(w[o>>2]=n,t&&a)ne(e,i,n+1);else if(a)for(var u=0;u<n;++u){var s=e.charCodeAt(u);s>255&&(dt(i),fr("String has UTF-16 code units that do not fit in 8 bits")),v[i+u]=s}else for(u=0;u<n;++u)v[i+u]=e[u];return null!==r&&r.push(dt,o),o},argPackAdvance:mr,readValueFromPointer:Q,destructorFunction(r){dt(r)}})},le="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,ce=(r,e)=>{for(var t=r,n=t>>1,a=n+e/2;!(n>=a)&&y[n];)++n;if((t=n<<1)-r>32&&le)return le.decode(v.subarray(r,t));for(var o="",i=0;!(i>=e/2);++i){var u=p[r+2*i>>1];if(0==u)break;o+=String.fromCharCode(u)}return o},fe=(r,e,t)=>{if(t??=2147483647,t<2)return 0;for(var n=e,a=(t-=2)<2*r.length?t/2:r.length,o=0;o<a;++o){var i=r.charCodeAt(o);p[e>>1]=i,e+=2}return p[e>>1]=0,e-n},de=r=>2*r.length,he=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var a=g[r+4*t>>2];if(0==a)break;if(++t,a>=65536){var o=a-65536;n+=String.fromCharCode(55296|o>>10,56320|1023&o)}else n+=String.fromCharCode(a)}return n},me=(r,e,t)=>{if(t??=2147483647,t<4)return 0;for(var n=e,a=n+t-4,o=0;o<r.length;++o){var i=r.charCodeAt(o);if(i>=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&r.charCodeAt(++o)),g[e>>2]=i,(e+=4)+4>a)break}return g[e>>2]=0,e-n},ve=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&++t,e+=4}return e},pe=(r,e,t)=>{var n,a,o,i;t=cr(t),2===e?(n=ce,a=fe,i=de,o=r=>y[r>>1]):4===e&&(n=he,a=me,i=ve,o=r=>w[r>>2]),hr(r,{name:t,fromWireType:r=>{for(var t,a=w[r>>2],i=r+4,u=0;u<=a;++u){var s=r+4+u*e;if(u==a||0==o(s)){var l=n(i,s-i);void 0===t?t=l:(t+=String.fromCharCode(0),t+=l),i=s+e}}return dt(r),t},toWireType:(r,n)=>{"string"!=typeof n&&fr(`Cannot pass non-string to C++ string type ${t}`);var o=i(n),u=ft(4+o+e);return w[u>>2]=o/e,a(n,u+4,o+e),null!==r&&r.push(dt,u),u},argPackAdvance:mr,readValueFromPointer:Q,destructorFunction(r){dt(r)}})},ye=(r,e,t,n,a,o)=>{X[r]={name:cr(e),rawConstructor:Gr(t,n),rawDestructor:Gr(a,o),fields:[]}},ge=(r,e,t,n,a,o,i,u,s,l)=>{X[r].fields.push({fieldName:cr(e),getterReturnType:t,getter:Gr(n,a),getterContext:o,setterArgumentType:i,setter:Gr(u,s),setterContext:l})},we=(r,e)=>{hr(r,{isVoid:!0,name:e=cr(e),argPackAdvance:0,fromWireType:()=>{},toWireType:(r,e)=>{}})},_e=1,be=()=>_e,Ae=(r,e,t)=>v.copyWithin(r,e,e+t),Te=(r,e,t)=>{var n=[],a=r.toWireType(n,t);return n.length&&(w[e>>2]=Ar.toHandle(n)),a},Ce=(r,e,t)=>(r=Ar.toValue(r),e=$r(e,"emval::as"),Te(e,t,r)),Fe=[],Pe=(r,e,t,n)=>(r=Fe[r])(null,e=Ar.toValue(e),t,n),We={},Ee=r=>{var e=We[r];return void 0===e?cr(r):e},Se=(r,e,t,n,a)=>(r=Fe[r])(e=Ar.toValue(e),e[t=Ee(t)],n,a),Oe=r=>{var e=Fe.length;return Fe.push(r),e},$e=(r,e)=>{for(var t=new Array(r),n=0;n<r;++n)t[n]=$r(w[e+4*n>>2],"parameter "+n);return t},je=Reflect.construct,Me=(r,e,t)=>{var n=$e(r,e),a=n.shift();r--;var o=new Array(r),i=(e,i,u,s)=>{for(var l=0,c=0;c<r;++c)o[c]=n[c].readValueFromPointer(s+l),l+=n[c].argPackAdvance;var f=1===t?je(i,o):i.apply(e,o);return Te(a,u,f)},u=`methodCaller<(${n.map((r=>r.name)).join(", ")}) => ${a.name}>`;return Oe(Sr(u,i))},De=(r,e)=>(r=Ar.toValue(r),e=Ar.toValue(e),Ar.toHandle(r[e])),Re=()=>Ar.toHandle([]),xe=r=>{r=Ar.toValue(r);for(var e=new Array(r.length),t=0;t<r.length;t++)e[t]=r[t];return Ar.toHandle(e)},ke=r=>Ar.toHandle(Ee(r)),He=r=>{var e=Ar.toValue(r);K(e),wr(r)},Ie=(r,e)=>{var t=(r=$r(r,"_emval_take_value")).readValueFromPointer(e);return Ar.toHandle(t)},Ve=()=>{k("")},Ue=()=>Date.now(),Ye=()=>2147483648,Be=()=>Ye();Ir=()=>performance.now();var ze=r=>{var e=(r-d.buffer.byteLength+65535)/65536;try{return d.grow(e),T(),1}catch(t){}},Ne=r=>{var e=v.length;r>>>=0;var t=Ye();if(r>t)return!1;for(var n=(r,e)=>r+(e-r%e)%e,a=1;a<=4;a*=2){var o=e*(1+.2/a);o=Math.min(o,r+100663296);var i=Math.min(t,n(Math.max(r,o),65536));if(ze(i))return!0}return!1},qe={},Ge=()=>s||"./this.program",Je=()=>{if(!Je.strings){var r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Ge()};for(var e in qe)void 0===qe[e]?delete r[e]:r[e]=qe[e];var t=[];for(var e in r)t.push(`${e}=${r[e]}`);Je.strings=t}return Je.strings},Le=(r,e)=>{for(var t=0;t<r.length;++t)m[e++]=r.charCodeAt(t);m[e]=0},Xe=(r,e)=>{var t=0;return Je().forEach(((n,a)=>{var o=e+t;w[r+4*a>>2]=o,Le(n,o),t+=n.length+1})),0},Ke=(r,e)=>{var t=Je();w[r>>2]=t.length;var n=0;return t.forEach((r=>n+=r.length+1)),w[e>>2]=n,0},Qe=r=>r%4==0&&(r%100!=0||r%400==0),Ze=(r,e)=>{for(var t=0,n=0;n<=e;t+=r[n++]);return t},rt=[31,29,31,30,31,30,31,31,30,31,30,31],et=[31,28,31,30,31,30,31,31,30,31,30,31],tt=(r,e)=>{for(var t=new Date(r.getTime());e>0;){var n=Qe(t.getFullYear()),a=t.getMonth(),o=(n?rt:et)[a];if(!(e>o-t.getDate()))return t.setDate(t.getDate()+e),t;e-=o-t.getDate()+1,t.setDate(1),a<11?t.setMonth(a+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1))}return t};function nt(r,e,t){var n=ae(r)+1,a=new Array(n);return te(r,a,0,a.length),a}var at=(r,e)=>{m.set(r,e)},ot=(r,e,t,n)=>{var a=w[n+40>>2],o={tm_sec:g[n>>2],tm_min:g[n+4>>2],tm_hour:g[n+8>>2],tm_mday:g[n+12>>2],tm_mon:g[n+16>>2],tm_year:g[n+20>>2],tm_wday:g[n+24>>2],tm_yday:g[n+28>>2],tm_isdst:g[n+32>>2],tm_gmtoff:g[n+36>>2],tm_zone:a?ue(a):""},i=ue(t),u={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var s in u)i=i.replace(new RegExp(s,"g"),u[s]);var l=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],c=["January","February","March","April","May","June","July","August","September","October","November","December"];function f(r,e,t){for(var n="number"==typeof r?r.toString():r||"";n.length<e;)n=t[0]+n;return n}function d(r,e){return f(r,e,"0")}function h(r,e){function t(r){return r<0?-1:r>0?1:0}var n;return 0===(n=t(r.getFullYear()-e.getFullYear()))&&0===(n=t(r.getMonth()-e.getMonth()))&&(n=t(r.getDate()-e.getDate())),n}function m(r){switch(r.getDay()){case 0:return new Date(r.getFullYear()-1,11,29);case 1:return r;case 2:return new Date(r.getFullYear(),0,3);case 3:return new Date(r.getFullYear(),0,2);case 4:return new Date(r.getFullYear(),0,1);case 5:return new Date(r.getFullYear()-1,11,31);case 6:return new Date(r.getFullYear()-1,11,30)}}function v(r){var e=tt(new Date(r.tm_year+1900,0,1),r.tm_yday),t=new Date(e.getFullYear(),0,4),n=new Date(e.getFullYear()+1,0,4),a=m(t),o=m(n);return h(a,e)<=0?h(o,e)<=0?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var p={"%a":r=>l[r.tm_wday].substring(0,3),"%A":r=>l[r.tm_wday],"%b":r=>c[r.tm_mon].substring(0,3),"%B":r=>c[r.tm_mon],"%C":r=>d((r.tm_year+1900)/100|0,2),"%d":r=>d(r.tm_mday,2),"%e":r=>f(r.tm_mday,2," "),"%g":r=>v(r).toString().substring(2),"%G":v,"%H":r=>d(r.tm_hour,2),"%I":r=>{var e=r.tm_hour;return 0==e?e=12:e>12&&(e-=12),d(e,2)},"%j":r=>d(r.tm_mday+Ze(Qe(r.tm_year+1900)?rt:et,r.tm_mon-1),3),"%m":r=>d(r.tm_mon+1,2),"%M":r=>d(r.tm_min,2),"%n":()=>"\n","%p":r=>r.tm_hour>=0&&r.tm_hour<12?"AM":"PM","%S":r=>d(r.tm_sec,2),"%t":()=>"\t","%u":r=>r.tm_wday||7,"%U":r=>{var e=r.tm_yday+7-r.tm_wday;return d(Math.floor(e/7),2)},"%V":r=>{var e=Math.floor((r.tm_yday+7-(r.tm_wday+6)%7)/7);if((r.tm_wday+371-r.tm_yday-2)%7<=2&&e++,e){if(53==e){var t=(r.tm_wday+371-r.tm_yday)%7;4==t||3==t&&Qe(r.tm_year)||(e=1)}}else{e=52;var n=(r.tm_wday+7-r.tm_yday-1)%7;(4==n||5==n&&Qe(r.tm_year%400-1))&&e++}return d(e,2)},"%w":r=>r.tm_wday,"%W":r=>{var e=r.tm_yday+7-(r.tm_wday+6)%7;return d(Math.floor(e/7),2)},"%y":r=>(r.tm_year+1900).toString().substring(2),"%Y":r=>r.tm_year+1900,"%z":r=>{var e=r.tm_gmtoff,t=e>=0;return e=(e=Math.abs(e)/60)/60*100+e%60,(t?"+":"-")+String("0000"+e).slice(-4)},"%Z":r=>r.tm_zone,"%%":()=>"%"};for(var s in i=i.replace(/%%/g,"\0\0"),p)i.includes(s)&&(i=i.replace(new RegExp(s,"g"),p[s](o)));var y=nt(i=i.replace(/\0\0/g,"%"));return y.length>e?0:(at(y,r),y.length-1)},it=(r,e,t,n,a)=>ot(r,e,t,n);Z=a.InternalError=class extends Error{constructor(r){super(r),this.name="InternalError"}},lr(),er=a.BindingError=class extends Error{constructor(r){super(r),this.name="BindingError"}},br(),Hr=a.UnboundTypeError=Jr(Error,"UnboundTypeError");var ut,st={a:L,k:ur,z:sr,w:vr,t:pr,M:Cr,r:Er,j:jr,v:Dr,e:Kr,m:Zr,f:re,L:ee,u:se,s:pe,l:ye,c:ge,x:we,F:be,J:Ae,g:Ce,y:Pe,p:Se,b:wr,n:Me,h:De,q:Re,K:xe,o:ke,d:He,i:Ie,E:Ve,G:Ue,A:Be,I:Ir,H:Ne,C:Xe,D:Ke,B:it},lt=q(),ct=r=>(ct=lt.P)(r),ft=a._malloc=r=>(ft=a._malloc=lt.R)(r),dt=a._free=r=>(dt=a._free=lt.S)(r),ht=r=>(ht=lt.T)(r);function mt(){function r(){ut||(ut=!0,a.calledRun=!0,A||(E(),e(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),S()))}M>0||(W(),M>0||(a.setStatus?(a.setStatus("Running..."),setTimeout((function(){setTimeout((function(){a.setStatus("")}),1),r()}),1)):r()))}if(a.dynCall_viijii=(r,e,t,n,o,i,u)=>(a.dynCall_viijii=lt.U)(r,e,t,n,o,i,u),a.dynCall_iiiiij=(r,e,t,n,o,i,u)=>(a.dynCall_iiiiij=lt.V)(r,e,t,n,o,i,u),a.dynCall_iiiiijj=(r,e,t,n,o,i,u,s,l)=>(a.dynCall_iiiiijj=lt.W)(r,e,t,n,o,i,u,s,l),a.dynCall_iiiiiijj=(r,e,t,n,o,i,u,s,l,c)=>(a.dynCall_iiiiiijj=lt.X)(r,e,t,n,o,i,u,s,l,c),D=function r(){ut||mt(),ut||(D=r)},a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();return mt(),o},r.exports=a),t.exports;var r,n,a}const a=r(n()),o=Object.freeze(Object.defineProperty({__proto__:null,default:a},Symbol.toStringTag,{value:"Module"}));export{o as l};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*
|
|
2
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
+
*/
|
|
5
|
+
import{convertFromSpatialReferenceUnit as e}from"../core/unitUtils.js";import{fromGeometry as t,getSpatialReference as o}from"../geometry/operators/support/apiConverter.js";function r(r,s={}){const{unit:n}=s;let u=t(r).calculateLength2D();if(u&&n){const t=o(r);u=e(u,t,n)}return u}const s=!0,n=Object.freeze(Object.defineProperty({__proto__:null,execute:r,supportsCurves:s},Symbol.toStringTag,{value:"Module"}));export{r as e,n as l,s};
|