@arcgis/core 4.33.0-next.20250515 → 4.33.0-next.20250516

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.
Files changed (95) hide show
  1. package/Basemap.js +1 -1
  2. package/applications/Components/baUtils.js +1 -1
  3. package/assets/esri/core/workers/RemoteClient.js +1 -1
  4. package/assets/esri/core/workers/chunks/{8f1fbfdac04e694f621d.js → 0c50ee1f3cdd30d96479.js} +1 -1
  5. package/assets/esri/core/workers/chunks/{7e8f78b96d43c224c7b6.js → 19c50f052eba0553bf4d.js} +1 -1
  6. package/assets/esri/core/workers/chunks/{1f4fd9e3849f4e593375.js → 2b1486a466760d2152f5.js} +1 -1
  7. package/assets/esri/core/workers/chunks/{a673128da9e6656ead2e.js → 320e821af81138fe12ac.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{d166f805990353578494.js → 523046e04679e301797d.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{a0d2bd5d4ed3c90f6b1c.js → 5f766bcb751d66fbf1c8.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{d21d9e8b8c8a2e0485d5.js → 612f6739c9399fbae4d0.js} +1 -1
  11. package/assets/esri/core/workers/chunks/7a9a0383f27f4967bcfa.js +1 -0
  12. package/assets/esri/core/workers/chunks/87fc7b6c3e2d4f7775e2.js +1 -0
  13. package/assets/esri/core/workers/chunks/{3b4b4f84d594db8945f9.js → 9839309d0cd804fe52c2.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{c10885b3a0739708e9e0.js → 9a06476b834584d00d5c.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{62798f66872dc32e77d6.js → a70a86ba4e487f62f683.js} +1 -1
  16. package/assets/esri/core/workers/chunks/a937076d2f8c2b6a5d8a.js +1 -0
  17. package/assets/esri/core/workers/chunks/{8e82acd1f730571680f4.js → aeb5bbe861f65544d504.js} +1 -1
  18. package/assets/esri/core/workers/chunks/{5e52c1c076a1502f9fe4.js → be2c8c0a8b2bce7979b6.js} +1 -1
  19. package/assets/esri/themes/base/widgets/_Editor.scss +2 -1
  20. package/assets/esri/themes/base/widgets/_SearchResultRenderer.scss +5 -30
  21. package/assets/esri/themes/dark/main.css +1 -1
  22. package/assets/esri/themes/light/main.css +1 -1
  23. package/assets/esri/themes/light/view.css +1 -1
  24. package/assets/esri/widgets/Search/t9n/Search.json +1 -1
  25. package/assets/esri/widgets/Search/t9n/Search_en.json +1 -1
  26. package/chunks/ShadowCastClear.glsl.js +5 -0
  27. package/config.js +1 -1
  28. package/geometry/support/aaBoundingBox.js +1 -1
  29. package/interfaces.d.ts +137 -40
  30. package/package.json +2 -2
  31. package/portal/Portal.js +1 -1
  32. package/request.js +1 -1
  33. package/rest/knowledgeGraph/GraphAddNamedTypesResult.js +1 -1
  34. package/rest/knowledgeGraph/GraphAddPropertyResult.js +5 -0
  35. package/rest/knowledgeGraph/GraphApplyEditsResult.js +1 -1
  36. package/rest/knowledgeGraph/GraphDeleteNamedTypeResult.js +1 -1
  37. package/rest/knowledgeGraph/GraphDeletePropertyResult.js +5 -0
  38. package/rest/knowledgeGraph/GraphUpdateNamedTypesResult.js +5 -0
  39. package/rest/knowledgeGraph/GraphUpdatePropertyResult.js +5 -0
  40. package/rest/knowledgeGraph/wasmInterface/updateToWasmEncodedFactories.js +1 -1
  41. package/rest/knowledgeGraph/wasmInterface/wasmToDataModelChangeResponseFactories.js +1 -1
  42. package/rest/knowledgeGraphService.js +1 -1
  43. package/rest/networks/unitIdentifiers/insertGap.js +5 -0
  44. package/rest/networks/unitIdentifiers/queryUnitIdentifiers.js +5 -0
  45. package/rest/networks/unitIdentifiers/reset.js +5 -0
  46. package/rest/networks/unitIdentifiers/resize.js +5 -0
  47. package/rest/networks/unitIdentifiers/support/InsertGapParameters.js +5 -0
  48. package/rest/networks/unitIdentifiers/support/QueryUnitIdentifiersParamters.js +5 -0
  49. package/rest/networks/unitIdentifiers/support/ResetParameters.js +5 -0
  50. package/rest/networks/unitIdentifiers/support/ResizeParameters.js +5 -0
  51. package/rest/networks/unitIdentifiers/support/UnitQueryResult.js +5 -0
  52. package/rest/utils.js +1 -1
  53. package/support/apiKeyUtils.js +1 -1
  54. package/support/basemapEnsureType.js +1 -1
  55. package/support/revision.js +1 -1
  56. package/unionTypes.d.ts +2 -0
  57. package/views/3d/FocusAreasView.js +1 -1
  58. package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
  59. package/views/3d/layers/ContentGeometryLayerView.js +5 -0
  60. package/views/3d/layers/FlowSubView3D.js +1 -1
  61. package/views/3d/layers/GraphicsLayerView3D.js +1 -1
  62. package/views/3d/layers/I3SMeshView3D.js +1 -1
  63. package/views/3d/layers/RouteLayerView3D.js +1 -1
  64. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  65. package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
  66. package/views/3d/layers/graphics/Graphics3DGraphicsPipeline.js +1 -1
  67. package/views/3d/layers/graphics/GraphicsProcessor.js +1 -1
  68. package/views/3d/support/pointsOfInterest/ContentGeometryUpdates.js +1 -1
  69. package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
  70. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js +1 -1
  71. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  72. package/views/3d/webgl-engine/shaders/ShadowCastClear.glsl.js +5 -0
  73. package/views/3d/webgl-engine/shaders/ShadowCastClearTechnique.js +5 -0
  74. package/widgets/BatchAttributeForm/VisibleElements.js +1 -1
  75. package/widgets/BatchAttributeForm.js +1 -1
  76. package/widgets/Editor/EditorViewModel.js +1 -1
  77. package/widgets/Editor/UpdateFeaturesWorkflow.d.ts +4 -0
  78. package/widgets/Editor/UpdateFeaturesWorkflow.js +1 -1
  79. package/widgets/Editor/UpdateFeaturesWorkflowData.d.ts +4 -0
  80. package/widgets/Editor/UpdateFeaturesWorkflowData.js +1 -1
  81. package/widgets/Editor/UpdateWorkflow.js +1 -1
  82. package/widgets/Editor/components/UpdateFeaturePanelContent.js +1 -1
  83. package/widgets/Editor/support/SketchController.js +1 -1
  84. package/widgets/Editor/workflowUtils.js +1 -1
  85. package/widgets/Editor.js +1 -1
  86. package/widgets/Search/SearchResultRenderer.js +1 -1
  87. package/widgets/Search/SearchViewModel.js +1 -1
  88. package/widgets/Search/searchResultRendererCSS.js +1 -1
  89. package/widgets/support/SelectionList/SelectionListViewModel.js +1 -1
  90. package/widgets/support/SelectionList/selectionListUtils.js +1 -1
  91. package/widgets/support/SelectionList.js +1 -1
  92. package/widgets/support/SelectionToolbar.js +1 -1
  93. package/assets/esri/core/workers/chunks/297d2c0a9d3f1e978318.js +0 -1
  94. package/assets/esri/core/workers/chunks/6b42bcfbb60432e3ed1f.js +0 -1
  95. package/assets/esri/core/workers/chunks/a9b1f4bf5eaa937943be.js +0 -1
@@ -1 +1 @@
1
- {"widgetLabel":"Search","searchButtonTitle":"Search","placeholder":"Find address or place","searchIn":"Search in","all":"All","allPlaceholder":"Find address or place","locateError":"Could not retrieve current location.","untitledResult":"Untitled","untitledSource":"Untitled source","noResults":"No results","noResultsFound":"There were no results found.","noResultsFoundForValue":"There were no results found for {value}.","showMoreResults":"Show more results","hideMoreResults":"Hide","searchResult":"Search result","moreResultsHeader":"More results","useCurrentLocation":"Use current location"}
1
+ {"widgetLabel":"Search","searchButtonTitle":"Search","placeholder":"Find address or place","searchIn":"Search in","all":"All","allPlaceholder":"Find address or place","locateError":"Could not retrieve current location.","untitledResult":"Untitled","untitledSource":"Untitled source","noResults":"No results","noResultsFound":"There were no results found.","noResultsFoundForValue":"There were no results found for {value}.","showMoreResults":"Show more results ({count})","hideMoreResults":"Hide","searchResult":"Search result","moreResultsHeader":"More results","useCurrentLocation":"Use current location"}
@@ -1 +1 @@
1
- {"widgetLabel":"Search","searchButtonTitle":"Search","placeholder":"Find address or place","searchIn":"Search in","all":"All","allPlaceholder":"Find address or place","locateError":"Could not retrieve current location.","untitledResult":"Untitled","untitledSource":"Untitled source","noResults":"No results","noResultsFound":"There were no results found.","noResultsFoundForValue":"There were no results found for {value}.","showMoreResults":"Show more results","hideMoreResults":"Hide","searchResult":"Search result","moreResultsHeader":"More results","useCurrentLocation":"Use current location"}
1
+ {"widgetLabel":"Search","searchButtonTitle":"Search","placeholder":"Find address or place","searchIn":"Search in","all":"All","allPlaceholder":"Find address or place","locateError":"Could not retrieve current location.","untitledResult":"Untitled","untitledSource":"Untitled source","noResults":"No results","noResultsFound":"There were no results found.","noResultsFoundForValue":"There were no results found for {value}.","showMoreResults":"Show more results ({count})","hideMoreResults":"Hide","searchResult":"Search result","moreResultsHeader":"More results","useCurrentLocation":"Use current location"}
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
+ */
5
+ import{ScreenSpacePass as e}from"../views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.glsl.js";import{glsl as r}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{ShadowCastAccumulateIndex as o}from"../views/3d/webgl-engine/shaders/ShadowCastAccumulateTechniqueConfiguration.js";import{ShaderBuilder as n}from"../views/webgl/ShaderBuilder.js";function s(s){const i=new n,{fragment:t}=i;i.include(e);const a=s.index===o.CONTEXT?"vec2":"float",l="value";return i.outputs.add(l,a),t.main.add(r`${l} = ${a}(0.0);`),i}const i=Object.freeze(Object.defineProperty({__proto__:null,build:s},Symbol.toStringTag,{value:"Module"}));export{i as S,s as b};
package/config.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.33/esri/copyright.txt for details.
4
4
  */
5
- import"./core/has.js";import{deepMerge as e}from"./core/object.js";import{buildDate as r}from"./support/revision.js";const s={apiKey:void 0,applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(e(s,globalThis.esriConfig,!0),delete s.has),!s.assetsPath){{const e="4.33.0";s.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${r}/assets`}s.defaultAssetsPath=s.assetsPath}export{s as default};
5
+ import"./core/has.js";import{deepMerge as e}from"./core/object.js";import{buildDate as s}from"./support/revision.js";const r={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(e(r,globalThis.esriConfig,!0),delete r.has),!r.assetsPath){{const e="4.33.0";r.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${s}/assets`}r.defaultAssetsPath=r.assetsPath}export{r as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import n from"../Extent.js";import{create as t}from"./aaBoundingRect.js";import{newDoubleArray as r}from"./DoubleArray.js";function i(n){return n}function u(n=L){return i([n[0],n[1],n[2],n[3],n[4],n[5]])}function a(n,t,r,i,a,e,m=u()){return m[0]=n,m[1]=t,m[2]=r,m[3]=i,m[4]=a,m[5]=e,m}function e(n,t=u()){return t[0]=n.xmin,t[1]=n.ymin,t[2]=n.hasZ?n.zmin:-1/0,t[3]=n.xmax,t[4]=n.ymax,t[5]=n.hasZ?n.zmax:1/0,t}function m(n,t=u()){return o(n,0,n.length/3,t)}function o(n,t,r,i=u()){return d(i,K),s(i,n,t,r),i}function f(n,t=r(24)){const[i,u,a,e,m,o]=n;return t[0]=i,t[1]=u,t[2]=a,t[3]=i,t[4]=u,t[5]=o,t[6]=i,t[7]=m,t[8]=a,t[9]=i,t[10]=m,t[11]=o,t[12]=e,t[13]=u,t[14]=a,t[15]=e,t[16]=u,t[17]=o,t[18]=e,t[19]=m,t[20]=a,t[21]=e,t[22]=m,t[23]=o,t}function c(t,r){const i=isFinite(t[2])||isFinite(t[5]);return new n(i?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:r}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:r})}function h(n,t,r=u()){return r[0]=n[0],r[1]=n[1],r[2]=n[2],r[3]=t[0],r[4]=t[1],r[5]=t[2],r}function M(n,t){n[0]=Math.min(n[0],t[0]),n[1]=Math.min(n[1],t[1]),n[2]=Math.min(n[2],t[2]),n[3]=Math.max(n[3],t[3]),n[4]=Math.max(n[4],t[4]),n[5]=Math.max(n[5],t[5])}function x(n,t){n[0]=Math.min(n[0],t[0]),n[1]=Math.min(n[1],t[1]),n[3]=Math.max(n[3],t[2]),n[4]=Math.max(n[4],t[3])}function l(n,t){n[0]=Math.min(n[0],t[0]),n[1]=Math.min(n[1],t[1]),n[2]=Math.min(n[2],t[2]),n[3]=Math.max(n[3],t[0]),n[4]=Math.max(n[4],t[1]),n[5]=Math.max(n[5],t[2])}function s(n,t,r=0,i=t.length/3){let u=n[0],a=n[1],e=n[2],m=n[3],o=n[4],f=n[5];for(let c=0;c<i;c++)u=Math.min(u,t[r+3*c]),a=Math.min(a,t[r+3*c+1]),e=Math.min(e,t[r+3*c+2]),m=Math.max(m,t[r+3*c]),o=Math.max(o,t[r+3*c+1]),f=Math.max(f,t[r+3*c+2]);n[0]=u,n[1]=a,n[2]=e,n[3]=m,n[4]=o,n[5]=f}function I(n,t,r,i){n[0]=Math.min(n[0],n[0]+t),n[3]=Math.max(n[3],n[3]+t),n[1]=Math.min(n[1],n[1]+r),n[4]=Math.max(n[4],n[4]+r),n[2]=Math.min(n[2],n[2]+i),n[5]=Math.max(n[5],n[5]+i)}function N(n,t,r){const i=t.length;let u=n[0],a=n[1],e=n[2],m=n[3],o=n[4],f=n[5];if(r)for(let c=0;c<i;c++){const n=t[c];u=Math.min(u,n[0]),a=Math.min(a,n[1]),e=Math.min(e,n[2]),m=Math.max(m,n[0]),o=Math.max(o,n[1]),f=Math.max(f,n[2])}else for(let c=0;c<i;c++){const n=t[c];u=Math.min(u,n[0]),a=Math.min(a,n[1]),m=Math.max(m,n[0]),o=Math.max(o,n[1])}n[0]=u,n[1]=a,n[2]=e,n[3]=m,n[4]=o,n[5]=f}function T(n){for(let t=0;t<6;t++)if(!isFinite(n[t]))return!1;return!0}function g(n){return n[0]>=n[3]?0:n[3]-n[0]}function y(n){return n[1]>=n[4]?0:n[4]-n[1]}function E(n){return n[2]>=n[5]?0:n[5]-n[2]}function F(n){const t=g(n),r=E(n),i=y(n);return Math.sqrt(t*t+r*r+i*i)}function p(n,t=[0,0,0]){return t[0]=n[0]+g(n)/2,t[1]=n[1]+y(n)/2,t[2]=n[2]+E(n)/2,t}function b(n,t=[0,0,0]){return t[0]=g(n),t[1]=y(n),t[2]=E(n),t}function z(n){return Math.max(g(n),E(n),y(n))}function V(n,t){return t[0]>=n[0]&&t[1]>=n[1]&&t[2]>=n[2]&&t[0]<=n[3]&&t[1]<=n[4]&&t[2]<=n[5]}function Y(n,t,r){return t[0]>=n[0]-r&&t[1]>=n[1]-r&&t[2]>=n[2]-r&&t[0]<=n[3]+r&&t[1]<=n[4]+r&&t[2]<=n[5]+r}function _(n,t){return t[0]>=n[0]&&t[1]>=n[1]&&t[2]>=n[2]&&t[3]<=n[3]&&t[4]<=n[4]&&t[5]<=n[5]}function j(n,t){return Math.max(t[0],n[0])<=Math.min(t[3],n[3])&&Math.max(t[1],n[1])<=Math.min(t[4],n[4])&&Math.max(t[2],n[2])<=Math.min(t[5],n[5])}function A(n,t){return null==t||j(n,t)}function R(n,t,r,i,u=n){return u[0]=n[0]+t,u[1]=n[1]+r,u[2]=n[2]+i,u[3]=n[3]+t,u[4]=n[4]+r,u[5]=n[5]+i,u}function G(n,t,r=n){const i=n[0]+g(n)/2,u=n[1]+y(n)/2,a=n[2]+E(n)/2;return r[0]=i+(n[0]-i)*t,r[1]=u+(n[1]-u)*t,r[2]=a+(n[2]-a)*t,r[3]=i+(n[3]-i)*t,r[4]=u+(n[4]-u)*t,r[5]=a+(n[5]-a)*t,r}function O(n,t){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function P(n,t){return t[0]=n[3],t[1]=n[4],t[2]=n[5],t}function S(n,t,r=n){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==n&&(r[3]=n[3],r[4]=n[4],r[5]=n[5]),r}function Z(n,t,r=n){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==n&&(r[0]=n[0],r[1]=n[1],r[2]=n[2]),n}function d(n,t){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n}function q(n){return n?d(n,K):u(K)}function w(n,r){return r||(r=t()),r[0]=n[0],r[1]=n[1],r[2]=n[3],r[3]=n[4],r}function B(n,t){return n[0]=t[0],n[1]=t[1],n[2]=Number.NEGATIVE_INFINITY,n[3]=t[2],n[4]=t[3],n[5]=Number.POSITIVE_INFINITY,n}function D(n,t,r,i,u){return n[0]=t,n[1]=r,n[2]=Number.NEGATIVE_INFINITY,n[3]=i,n[4]=u,n[5]=Number.POSITIVE_INFINITY,n}function k(n){return 6===n.length}function v(n){return 0===g(n)&&0===y(n)&&0===E(n)}function C(n,t,r){if(null==n||null==t)return n===t;if(!k(n)||!k(t))return!1;if(r){for(let i=0;i<n.length;i++)if(!r(n[i],t[i]))return!1}else for(let i=0;i<n.length;i++)if(n[i]!==t[i])return!1;return!0}function H(n,t,r,i,u,e){return a(n,t,r,i,u,e,Q)}const J=i([-1/0,-1/0,-1/0,1/0,1/0,1/0]),K=i([1/0,1/0,1/0,-1/0,-1/0,-1/0]),L=i([0,0,0,0,0,0]),Q=u();export{T as allFinite,p as center,_ as contains,V as containsPoint,Y as containsPointWithMargin,u as create,y as depth,F as diameter,q as empty,C as equals,M as expandWithAABB,s as expandWithBuffer,N as expandWithNestedArray,I as expandWithOffset,x as expandWithRect,l as expandWithVec3,m as fromBuffer,e as fromExtent,h as fromMinMax,B as fromRect,D as fromRectValues,o as fromSubBuffer,a as fromValues,P as getMax,O as getMin,E as height,j as intersects,A as intersectsClippingArea,k as is,v as isPoint,z as maximumDimension,K as negativeInfinity,R as offset,J as positiveInfinity,G as scale,d as set,Z as setMax,S as setMin,b as size,f as toCorners,c as toExtent,w as toRect,g as width,H as wrap,L as zero};
5
+ import n from"../Extent.js";import{create as t}from"./aaBoundingRect.js";import{newDoubleArray as r}from"./DoubleArray.js";function i(n){return n}function u(n=Q){return i([n[0],n[1],n[2],n[3],n[4],n[5]])}function a(n,t,r,i,a,e,m=u()){return m[0]=n,m[1]=t,m[2]=r,m[3]=i,m[4]=a,m[5]=e,m}function e(n,t=u()){return t[0]=n.xmin,t[1]=n.ymin,t[2]=n.hasZ?n.zmin:-1/0,t[3]=n.xmax,t[4]=n.ymax,t[5]=n.hasZ?n.zmax:1/0,t}function m(n,t=u()){return o(n,0,n.length/3,t)}function o(n,t,r,i=u()){return k(i,L),s(i,n,t,r),i}function f(n,t=r(24)){const[i,u,a,e,m,o]=n;return t[0]=i,t[1]=u,t[2]=a,t[3]=i,t[4]=u,t[5]=o,t[6]=i,t[7]=m,t[8]=a,t[9]=i,t[10]=m,t[11]=o,t[12]=e,t[13]=u,t[14]=a,t[15]=e,t[16]=u,t[17]=o,t[18]=e,t[19]=m,t[20]=a,t[21]=e,t[22]=m,t[23]=o,t}function c(t,r){const i=isFinite(t[2])||isFinite(t[5]);return new n(i?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:r}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:r})}function h(n,t,r=u()){return r[0]=n[0],r[1]=n[1],r[2]=n[2],r[3]=t[0],r[4]=t[1],r[5]=t[2],r}function M(n,t){n[0]=Math.min(n[0],t[0]),n[1]=Math.min(n[1],t[1]),n[2]=Math.min(n[2],t[2]),n[3]=Math.max(n[3],t[3]),n[4]=Math.max(n[4],t[4]),n[5]=Math.max(n[5],t[5])}function x(n,t){n[0]=Math.min(n[0],t[0]),n[1]=Math.min(n[1],t[1]),n[3]=Math.max(n[3],t[2]),n[4]=Math.max(n[4],t[3])}function l(n,t){n[0]=Math.min(n[0],t[0]),n[1]=Math.min(n[1],t[1]),n[2]=Math.min(n[2],t[2]),n[3]=Math.max(n[3],t[0]),n[4]=Math.max(n[4],t[1]),n[5]=Math.max(n[5],t[2])}function s(n,t,r=0,i=t.length/3){let u=n[0],a=n[1],e=n[2],m=n[3],o=n[4],f=n[5];for(let c=0;c<i;c++)u=Math.min(u,t[r+3*c]),a=Math.min(a,t[r+3*c+1]),e=Math.min(e,t[r+3*c+2]),m=Math.max(m,t[r+3*c]),o=Math.max(o,t[r+3*c+1]),f=Math.max(f,t[r+3*c+2]);n[0]=u,n[1]=a,n[2]=e,n[3]=m,n[4]=o,n[5]=f}function I(n,t,r,i){n[0]=Math.min(n[0],n[0]+t),n[3]=Math.max(n[3],n[3]+t),n[1]=Math.min(n[1],n[1]+r),n[4]=Math.max(n[4],n[4]+r),n[2]=Math.min(n[2],n[2]+i),n[5]=Math.max(n[5],n[5]+i)}function N(n,t,r){const i=t.length;let u=n[0],a=n[1],e=n[2],m=n[3],o=n[4],f=n[5];if(r)for(let c=0;c<i;c++){const n=t[c];u=Math.min(u,n[0]),a=Math.min(a,n[1]),e=Math.min(e,n[2]),m=Math.max(m,n[0]),o=Math.max(o,n[1]),f=Math.max(f,n[2])}else for(let c=0;c<i;c++){const n=t[c];u=Math.min(u,n[0]),a=Math.min(a,n[1]),m=Math.max(m,n[0]),o=Math.max(o,n[1])}n[0]=u,n[1]=a,n[2]=e,n[3]=m,n[4]=o,n[5]=f}function T(n){for(let t=0;t<6;t++)if(!isFinite(n[t]))return!1;return!0}function g(n){return n[0]>=n[3]?0:n[3]-n[0]}function y(n){return n[1]>=n[4]?0:n[4]-n[1]}function E(n){return n[2]>=n[5]?0:n[5]-n[2]}function F(n){const t=g(n),r=E(n),i=y(n);return Math.sqrt(t*t+r*r+i*i)}function b(n,t=[0,0,0]){return t[0]=n[0]+g(n)/2,t[1]=n[1]+y(n)/2,t[2]=n[2]+E(n)/2,t}function p(n,t=[0,0,0]){return t[0]=g(n),t[1]=y(n),t[2]=E(n),t}function z(n){return Math.max(g(n),E(n),y(n))}function V(n,t){return t[0]>=n[0]&&t[1]>=n[1]&&t[2]>=n[2]&&t[0]<=n[3]&&t[1]<=n[4]&&t[2]<=n[5]}function Y(n,t,r){return t[0]>=n[0]-r&&t[1]>=n[1]-r&&t[2]>=n[2]-r&&t[0]<=n[3]+r&&t[1]<=n[4]+r&&t[2]<=n[5]+r}function _(n,t){return t[0]>=n[0]&&t[1]>=n[1]&&t[2]>=n[2]&&t[3]<=n[3]&&t[4]<=n[4]&&t[5]<=n[5]}function j(n,t){return Math.max(t[0],n[0])<=Math.min(t[3],n[3])&&Math.max(t[1],n[1])<=Math.min(t[4],n[4])&&Math.max(t[2],n[2])<=Math.min(t[5],n[5])}function A(n,t){return null==t||j(n,t)}function R(n,t,r){let i=0,u=1;for(let a=0;a<3;++a){const e=n[a],m=n[a+3],o=t[a],f=r[a],c=f<o,h=c?f:o,M=c?o:f,x=Math.max(e,h),l=Math.min(m,M);if(x>l)return!1;if(M===h)break;const s=M-h,I=(x-h)/s,N=(l-h)/s;if(i=Math.max(i,c?1-N:I),u=Math.min(u,c?1-I:N),i>u)return!1}return!0}function G(n,t,r,i,u=n){return u[0]=n[0]+t,u[1]=n[1]+r,u[2]=n[2]+i,u[3]=n[3]+t,u[4]=n[4]+r,u[5]=n[5]+i,u}function O(n,t,r=n){const i=n[0]+g(n)/2,u=n[1]+y(n)/2,a=n[2]+E(n)/2;return r[0]=i+(n[0]-i)*t,r[1]=u+(n[1]-u)*t,r[2]=a+(n[2]-a)*t,r[3]=i+(n[3]-i)*t,r[4]=u+(n[4]-u)*t,r[5]=a+(n[5]-a)*t,r}function P(n,t){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function S(n,t){return t[0]=n[3],t[1]=n[4],t[2]=n[5],t}function Z(n,t,r=n){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==n&&(r[3]=n[3],r[4]=n[4],r[5]=n[5]),r}function d(n,t,r=n){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==n&&(r[0]=n[0],r[1]=n[1],r[2]=n[2]),n}function k(n,t){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n}function q(n){return n?k(n,L):u(L)}function w(n,r){return r||(r=t()),r[0]=n[0],r[1]=n[1],r[2]=n[3],r[3]=n[4],r}function B(n,t){return n[0]=t[0],n[1]=t[1],n[2]=Number.NEGATIVE_INFINITY,n[3]=t[2],n[4]=t[3],n[5]=Number.POSITIVE_INFINITY,n}function D(n,t,r,i,u){return n[0]=t,n[1]=r,n[2]=Number.NEGATIVE_INFINITY,n[3]=i,n[4]=u,n[5]=Number.POSITIVE_INFINITY,n}function v(n){return 6===n.length}function C(n){return 0===g(n)&&0===y(n)&&0===E(n)}function H(n,t,r){if(null==n||null==t)return n===t;if(!v(n)||!v(t))return!1;if(r){for(let i=0;i<n.length;i++)if(!r(n[i],t[i]))return!1}else for(let i=0;i<n.length;i++)if(n[i]!==t[i])return!1;return!0}function J(n,t,r,i,u,e){return a(n,t,r,i,u,e,U)}const K=i([-1/0,-1/0,-1/0,1/0,1/0,1/0]),L=i([1/0,1/0,1/0,-1/0,-1/0,-1/0]),Q=i([0,0,0,0,0,0]),U=u();export{T as allFinite,b as center,_ as contains,V as containsPoint,Y as containsPointWithMargin,u as create,y as depth,F as diameter,q as empty,H as equals,M as expandWithAABB,s as expandWithBuffer,N as expandWithNestedArray,I as expandWithOffset,x as expandWithRect,l as expandWithVec3,m as fromBuffer,e as fromExtent,h as fromMinMax,B as fromRect,D as fromRectValues,o as fromSubBuffer,a as fromValues,S as getMax,P as getMin,E as height,j as intersects,A as intersectsClippingArea,R as intersectsSegment,v as is,C as isPoint,z as maximumDimension,L as negativeInfinity,G as offset,K as positiveInfinity,O as scale,k as set,d as setMax,Z as setMin,p as size,f as toCorners,c as toExtent,w as toRect,g as width,J as wrap,Q as zero};
package/interfaces.d.ts CHANGED
@@ -1336,10 +1336,7 @@ declare namespace __esri {
1336
1336
  *
1337
1337
  * @param analysisView The analysis view whose `interactive` property is to be forced to `true`.
1338
1338
  */
1339
- forceInteractive(analysisView: | AreaMeasurementAnalysisView3D
1340
- | DirectLineMeasurementAnalysisView3D
1341
- | LineOfSightAnalysisView3D
1342
- | SliceAnalysisView3D): Handle;
1339
+ forceInteractive(analysisView: AnalysisViewUnion): Handle;
1343
1340
  }
1344
1341
 
1345
1342
  export const analysisUtils: analysisUtils;
@@ -3263,6 +3260,7 @@ declare namespace __esri {
3263
3260
  */
3264
3261
  interface config {
3265
3262
  apiKey: string | nullish;
3263
+ apiKeys: any;
3266
3264
  applicationName: string;
3267
3265
  assetsPath: string;
3268
3266
  fontsUrl: string;
@@ -13366,6 +13364,12 @@ declare namespace __esri {
13366
13364
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-Credential.html#oAuthState Read more...}
13367
13365
  */
13368
13366
  oAuthState: any;
13367
+ /**
13368
+ * The scope of the credential.
13369
+ *
13370
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-Credential.html#scope Read more...}
13371
+ */
13372
+ scope: "portal" | "server";
13369
13373
  /**
13370
13374
  * The server url.
13371
13375
  *
@@ -13447,6 +13451,12 @@ declare namespace __esri {
13447
13451
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-Credential.html#oAuthState Read more...}
13448
13452
  */
13449
13453
  oAuthState?: any;
13454
+ /**
13455
+ * The scope of the credential.
13456
+ *
13457
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-Credential.html#scope Read more...}
13458
+ */
13459
+ scope?: "portal" | "server";
13450
13460
  /**
13451
13461
  * The server url.
13452
13462
  *
@@ -13673,13 +13683,7 @@ declare namespace __esri {
13673
13683
  export interface IdentityManagerDialogCreateEvent {
13674
13684
  }
13675
13685
 
13676
- export type HandlerCallback = (
13677
- authorizeParams: HandlerCallbackAuthorizeParams,
13678
- authorizeUrl: string,
13679
- oAuthInfo: OAuthInfo,
13680
- resourceUrl: string,
13681
- serverInfo: ServerInfo,
13682
- ) => void;
13686
+ export type HandlerCallback = (info: HandlerCallbackInfo) => void;
13683
13687
 
13684
13688
  export interface IdentityManagerGenerateTokenOptions {
13685
13689
  serverUrl: string;
@@ -13706,7 +13710,15 @@ declare namespace __esri {
13706
13710
  serverInfo: ServerInfo;
13707
13711
  }
13708
13712
 
13709
- export interface HandlerCallbackAuthorizeParams {
13713
+ export interface HandlerCallbackInfo {
13714
+ authorizeParams: HandlerCallbackInfoAuthorizeParams;
13715
+ authorizeUrl: string;
13716
+ oAuthInfo: OAuthInfo;
13717
+ resourceUrl: string;
13718
+ serverInfo: ServerInfo;
13719
+ }
13720
+
13721
+ export interface HandlerCallbackInfoAuthorizeParams {
13710
13722
  client_id: string;
13711
13723
  response_type: string;
13712
13724
  state: string;
@@ -82760,7 +82772,8 @@ declare namespace __esri {
82760
82772
  | CatalogLayer
82761
82773
  | KnowledgeGraphSublayer
82762
82774
  | SubtypeGroupLayer
82763
- | SubtypeSublayer;
82775
+ | SubtypeSublayer
82776
+ | ImageryLayer;
82764
82777
  field?: string;
82765
82778
  valueExpression?: string;
82766
82779
  sqlExpression?: string;
@@ -90644,6 +90657,28 @@ declare namespace __esri {
90644
90657
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-unionTypes.html Read more...}
90645
90658
  */
90646
90659
  namespace unionTypes {
90660
+ /**
90661
+ * Union of all possible analsysis views that can be created in a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html SceneView}.
90662
+ *
90663
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-unionTypes.html#AnalysisViewUnion Read more...}
90664
+ */
90665
+ export type AnalysisViewUnion = | __esri.AreaMeasurementAnalysisView3D
90666
+ | __esri.DimensionAnalysisView3D
90667
+ | __esri.DirectLineMeasurementAnalysisView3D
90668
+ | __esri.LineOfSightAnalysisView3D
90669
+ | __esri.SliceAnalysisView3D
90670
+ | __esri.ViewshedAnalysisView3D;
90671
+ /**
90672
+ * Union of all possible analysis types that can be added to a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html SceneView}.
90673
+ *
90674
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-unionTypes.html#AnalysisUnion Read more...}
90675
+ */
90676
+ export type AnalysisUnion = | __esri.AreaMeasurementAnalysis
90677
+ | __esri.DimensionAnalysis
90678
+ | __esri.DirectLineMeasurementAnalysis
90679
+ | __esri.LineOfSightAnalysis
90680
+ | __esri.SliceAnalysis
90681
+ | __esri.ViewshedAnalysis;
90647
90682
  /**
90648
90683
  * Union of renderers with visual variables.
90649
90684
  *
@@ -90754,6 +90789,28 @@ declare namespace __esri {
90754
90789
  export type SymbolUnion = __esri.Symbol2D3DUnion | __esri.WebStyleSymbol;
90755
90790
  }
90756
90791
 
90792
+ /**
90793
+ * Union of all possible analysis types that can be added to a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html SceneView}.
90794
+ *
90795
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-unionTypes.html#AnalysisUnion Read more...}
90796
+ */
90797
+ export type AnalysisUnion = | AreaMeasurementAnalysis
90798
+ | DimensionAnalysis
90799
+ | DirectLineMeasurementAnalysis
90800
+ | LineOfSightAnalysis
90801
+ | SliceAnalysis
90802
+ | ViewshedAnalysis;
90803
+ /**
90804
+ * Union of all possible analsysis views that can be created in a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html SceneView}.
90805
+ *
90806
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-unionTypes.html#AnalysisViewUnion Read more...}
90807
+ */
90808
+ export type AnalysisViewUnion = | AreaMeasurementAnalysisView3D
90809
+ | DimensionAnalysisView3D
90810
+ | DirectLineMeasurementAnalysisView3D
90811
+ | LineOfSightAnalysisView3D
90812
+ | SliceAnalysisView3D
90813
+ | ViewshedAnalysisView3D;
90757
90814
  /**
90758
90815
  * Union of 2D fill symbols.
90759
90816
  *
@@ -99866,18 +99923,6 @@ declare namespace __esri {
99866
99923
  timeExtent?: TimeExtentProperties | nullish;
99867
99924
  }
99868
99925
 
99869
- /**
99870
- * Union of all possible analysis types that can be added to a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html View}.
99871
- *
99872
- * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#AnalysisUnion Read more...}
99873
- */
99874
- export type AnalysisUnion = | AreaMeasurementAnalysis
99875
- | DimensionAnalysis
99876
- | DirectLineMeasurementAnalysis
99877
- | LineOfSightAnalysis
99878
- | SliceAnalysis
99879
- | ViewshedAnalysis;
99880
-
99881
99926
  export interface ViewAnalysisViewCreateErrorEvent {
99882
99927
  analysis: AnalysisUnion;
99883
99928
  error: Error;
@@ -99893,18 +99938,6 @@ declare namespace __esri {
99893
99938
  analysisView: AnalysisViewUnion;
99894
99939
  }
99895
99940
 
99896
- /**
99897
- * Union of all possible analsysis views that can be created in a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html View}.
99898
- *
99899
- * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#AnalysisViewUnion Read more...}
99900
- */
99901
- export type AnalysisViewUnion = | AreaMeasurementAnalysisView3D
99902
- | DimensionAnalysisView3D
99903
- | DirectLineMeasurementAnalysisView3D
99904
- | LineOfSightAnalysisView3D
99905
- | SliceAnalysisView3D
99906
- | ViewshedAnalysisView3D;
99907
-
99908
99941
  export interface ViewBlurEvent {
99909
99942
  defer: EventDefer;
99910
99943
  native: any;
@@ -110471,7 +110504,7 @@ declare namespace __esri {
110471
110504
  *
110472
110505
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#activeWorkflow Read more...}
110473
110506
  */
110474
- readonly activeWorkflow: CreateFeaturesWorkflow | UpdateWorkflow | nullish;
110507
+ readonly activeWorkflow: CreateFeaturesWorkflow | UpdateWorkflow | UpdateFeaturesWorkflow | nullish;
110475
110508
  /**
110476
110509
  * Indicates the heading level to use for title of the widget.
110477
110510
  *
@@ -110600,6 +110633,15 @@ declare namespace __esri {
110600
110633
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#startCreateFeaturesWorkflowAtFeatureTypeSelection Read more...}
110601
110634
  */
110602
110635
  startCreateFeaturesWorkflowAtFeatureTypeSelection(): Promise<void>;
110636
+ /**
110637
+ * Starts an {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-UpdateFeaturesWorkflow.html UpdateFeaturesWorkflow} using
110638
+ * the provided features.
110639
+ *
110640
+ * @param features The features to batch update
110641
+ *
110642
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#startUpdateFeaturesWorkflow Read more...}
110643
+ */
110644
+ startUpdateFeaturesWorkflow(features: Graphic[]): Promise<void>;
110603
110645
  /**
110604
110646
  * Starts the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-UpdateWorkflow.html UpdateWorkflow} at the attribute editing panel.
110605
110647
  *
@@ -110811,7 +110853,7 @@ declare namespace __esri {
110811
110853
  *
110812
110854
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#activeWorkflow Read more...}
110813
110855
  */
110814
- readonly activeWorkflow: CreateFeaturesWorkflow | UpdateWorkflow | nullish;
110856
+ readonly activeWorkflow: CreateFeaturesWorkflow | UpdateWorkflow | UpdateFeaturesWorkflow | nullish;
110815
110857
  /**
110816
110858
  * Convenience property that indicates at least one layer supports a `create-features` workflow.
110817
110859
  *
@@ -110874,6 +110916,7 @@ declare namespace __esri {
110874
110916
  | "editing-attributes"
110875
110917
  | "editing-attachment"
110876
110918
  | "editing-existing-feature"
110919
+ | "editing-features"
110877
110920
  | "editing-new-feature"
110878
110921
  | "ready";
110879
110922
  /**
@@ -110987,6 +111030,15 @@ declare namespace __esri {
110987
111030
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#startCreateFeaturesWorkflowAtFeatureTypeSelection Read more...}
110988
111031
  */
110989
111032
  startCreateFeaturesWorkflowAtFeatureTypeSelection(): Promise<void>;
111033
+ /**
111034
+ * Starts an {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-UpdateFeaturesWorkflow.html UpdateFeaturesWorkflow} using
111035
+ * the provided features.
111036
+ *
111037
+ * @param features The features to be updated.
111038
+ *
111039
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#startUpdateFeaturesWorkflow Read more...}
111040
+ */
111041
+ startUpdateFeaturesWorkflow(features: Graphic[]): Promise<void>;
110990
111042
  /**
110991
111043
  * Starts the update workflow at the feature geometry and attribute editing panel.
110992
111044
  *
@@ -111335,6 +111387,51 @@ declare namespace __esri {
111335
111387
  reliesOnOwnerAdminPrivileges: boolean;
111336
111388
  }
111337
111389
 
111390
+ export class UpdateFeaturesWorkflow extends Workflow {
111391
+ constructor(properties?: UpdateFeaturesWorkflowProperties);
111392
+ }
111393
+
111394
+ interface UpdateFeaturesWorkflowProperties extends WorkflowProperties {
111395
+ }
111396
+
111397
+ export class UpdateFeaturesWorkflowData {
111398
+ /**
111399
+ * The `EditorItem` objects from `EditorViewModel` corresponding to the
111400
+ * layers/tables being updated.
111401
+ *
111402
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-UpdateFeaturesWorkflowData.html#editorItems Read more...}
111403
+ */
111404
+ editorItems: EditorItem[];
111405
+ /**
111406
+ * The features that are being updated.
111407
+ *
111408
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-UpdateFeaturesWorkflowData.html#features Read more...}
111409
+ */
111410
+ features: Graphic[];
111411
+ /**
111412
+ * The selected feature being updated.
111413
+ *
111414
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-UpdateFeaturesWorkflowData.html#selectedFeature Read more...}
111415
+ */
111416
+ selectedFeature: Graphic | nullish;
111417
+ /**
111418
+ * A boolean indicating whether the features in the workflow should be deleted
111419
+ * when the workflow is committed.
111420
+ *
111421
+ * @default false
111422
+ *
111423
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-UpdateFeaturesWorkflowData.html#stagedForDelete Read more...}
111424
+ */
111425
+ stagedForDelete: boolean;
111426
+ /**
111427
+ * The associated {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html EditorViewModel} for this workflow.
111428
+ *
111429
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-UpdateFeaturesWorkflowData.html#viewModel Read more...}
111430
+ */
111431
+ viewModel: EditorViewModel;
111432
+ constructor(properties?: any);
111433
+ }
111434
+
111338
111435
  export class UpdateWorkflow extends Workflow {
111339
111436
  /**
111340
111437
  * The shared workflow data.
@@ -111402,7 +111499,7 @@ declare namespace __esri {
111402
111499
  *
111403
111500
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-Workflow.html#data Read more...}
111404
111501
  */
111405
- readonly data: CreateFeaturesWorkflowData | UpdateWorkflowData;
111502
+ readonly data: CreateFeaturesWorkflowData | UpdateWorkflowData | UpdateFeaturesWorkflowData;
111406
111503
  /**
111407
111504
  * This property indicates whether there is a next step in the workflow.
111408
111505
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/core",
3
- "version": "4.33.0-next.20250515",
3
+ "version": "4.33.0-next.20250516",
4
4
  "homepage": "https://js.arcgis.com",
5
5
  "description": "ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API",
6
6
  "keywords": [
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@esri/arcgis-html-sanitizer": "~4.1.0",
29
- "@esri/calcite-components": "^3.2.0-next.15",
29
+ "@esri/calcite-components": "^3.2.0",
30
30
  "@vaadin/grid": "~24.7.6",
31
31
  "@zip.js/zip.js": "~2.7.61",
32
32
  "luxon": "~3.6.1",
package/portal/Portal.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.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as e}from"../chunks/tslib.es6.js";import t from"../config.js";import{id as r}from"../kernel.js";import o from"../request.js";import s from"../core/Error.js";import i from"../core/JSONSupport.js";import a from"../core/Loadable.js";import{destroyMaybe as l,removeMaybe as u}from"../core/maybe.js";import{throwIfAborted as n,isAborted as p,createAbortError as h,throwIfAbortError as d}from"../core/promiseUtils.js";import{property as c}from"../core/accessorSupport/decorators/property.js";import{ensureType as y}from"../core/accessorSupport/ensureType.js";import"../core/has.js";import"../core/RandomLCG.js";import{reader as m}from"../core/accessorSupport/decorators/reader.js";import{subclass as f}from"../core/accessorSupport/decorators/subclass.js";import v from"../geometry/Extent.js";import{getLocale as S}from"../intl/locale.js";import{ensureDefaultPortalInstance as P}from"./portalDefault.js";import g from"./PortalGroup.js";import O from"./PortalQueryParams.js";import B from"./PortalQueryResult.js";import D from"./PortalUser.js";import{isApiKeyApplicable as G}from"../support/apiKeyUtils.js";var _;let M;const Q={PortalGroup:()=>Promise.resolve({default:g}),PortalItem:()=>import("./PortalItem.js"),PortalUser:()=>Promise.resolve({default:D})};let U=class extends(i.JSONSupportMixin(a)){static{_=this}static{this.AUTH_MODE_ANONYMOUS="anonymous"}static{this.AUTH_MODE_AUTO="auto"}static{this.AUTH_MODE_IMMEDIATE="immediate"}static{this.AUTH_MODE_NO_PROMPT="no-prompt"}constructor(e){super(e),this._esriIdCredentialCreateHandle=null,this.access=null,this.allSSL=!1,this.authMode="auto",this.authorizedCrossOriginDomains=null,this.basemapGalleryGroupQuery=null,this.basemapGalleryGroupQuery3D=null,this.bingKey=null,this.canListApps=!1,this.canListData=!1,this.canListPreProvisionedItems=!1,this.canProvisionDirectPurchase=!1,this.canSearchPublic=!0,this.canShareBingPublic=!1,this.canSharePublic=!1,this.canSignInArcGIS=!1,this.canSignInIDP=!1,this.colorSetsGroupQuery=null,this.commentsEnabled=!1,this.created=null,this.culture=null,this.customBaseUrl=null,this.default3DBasemapQuery=null,this.defaultBasemap=null,this.defaultDevBasemap=null,this.defaultExtent=null,this.defaultVectorBasemap=null,this.description=null,this.devBasemapGalleryGroupQuery=null,this.eueiEnabled=null,this.featuredGroups=null,this.featuredItemsGroupQuery=null,this.galleryTemplatesGroupQuery=null,this.layoutGroupQuery=null,this.livingAtlasGroupQuery=null,this.hasCategorySchema=!1,this.hasClassificationSchema=!1,this.helperServices=null,this.homePageFeaturedContent=null,this.homePageFeaturedContentCount=null,this.httpPort=null,this.httpsPort=null,this.id=null,this.ipCntryCode=null,this.isPortal=!1,this.isReadOnly=!1,this.layerTemplatesGroupQuery=null,this.maxTokenExpirationMinutes=null,this.modified=null,this.name=null,this.portalHostname=null,this.portalMode=null,this.portalProperties=null,this.region=null,this.recycleBinEnabled=!1,this.rotatorPanels=null,this.showHomePageDescription=!1,this.sourceJSON=null,this.supportsHostedServices=!1,this.symbolSetsGroupQuery=null,this.templatesGroupQuery=null,this.units=null,this.url=t.portalUrl,this.urlKey=null,this.user=null,this.use3dBasemaps=!0,this.useDefault3dBasemap=!1,this.useStandardizedQuery=!1,this.useVectorBasemaps=!1,this.vectorBasemapGalleryGroupQuery=null}normalizeCtorArgs(e){return"string"==typeof e?{url:e}:e}destroy(){C.unregister(this),this.defaultBasemap=l(this.defaultBasemap),this.defaultDevBasemap=l(this.defaultDevBasemap),this.defaultVectorBasemap=l(this.defaultVectorBasemap),this._esriIdCredentialCreateHandle=u(this._esriIdCredentialCreateHandle)}readAuthorizedCrossOriginDomains(e){if(e)for(const r of e)t.request.trustedServers.includes(r)||t.request.trustedServers.push(r);return e}readDefaultBasemap(e){return this._readBasemap(e)}readDefaultDevBasemap(e){return this._readBasemap(e)}readDefaultVectorBasemap(e){return this._readBasemap(e)}get extraQuery(){const e=this.user?.orgId,t=!e||this.canSearchPublic;return this.id&&!t?` AND orgid:${this.id}`:null}get hasAPIKey(){return G(this.url)}get isOrganization(){return!!this.access}get itemPageUrl(){return this.url?`${this.url}/home/item.html`:null}get restUrl(){let e=this.url;if(e){const t=e.indexOf("/sharing");e=t>0?e.slice(0,t):this.url.replace(/\/+$/,""),e+="/sharing/rest"}return e}get thumbnailUrl(){const e=this.restUrl,t=this.thumbnail;return e&&t?this._normalizeSSL(e+"/portals/self/resources/"+t):null}readUrlKey(e){return e?e.toLowerCase():e}readUser(e){let t=null;return e&&(t=D.fromJSON(e),t.portal=this),t}load(e){const t=import("../Basemap.js").then((({default:t})=>{n(e),M=t})).then((()=>this.sourceJSON?this.sourceJSON:this.fetchSelf(this.authMode,!1,e))).then((e=>{if(!this.hasAPIKey&&r){const e=r;this.credential=e.findCredential(this.restUrl),this.credential||this.authMode!==_.AUTH_MODE_AUTO&&this.authMode!==_.AUTH_MODE_NO_PROMPT||(this._esriIdCredentialCreateHandle?.remove(),this._esriIdCredentialCreateHandle=e.on("credential-create",b(new WeakRef(this))),C.register(this,this._esriIdCredentialCreateHandle,this))}this.sourceJSON=e,this.read(e)}));return this.addResolvingPromise(t),Promise.resolve(this)}async createElevationLayers(){await this.load();const e=this._getHelperService("defaultElevationLayers"),t=(await import("../layers/ElevationLayer.js")).default;return e?e.map((e=>new t({id:e.id,url:e.url}))):[]}async fetchBasemaps(e,t){const r=await this._fetchBasemaps(e,t);if(!0===t?.include3d&&!1!==this.use3dBasemaps){const o=await this._fetchBasemaps3D(e,t);r.unshift(...o)}return r}async fetchDefault3DBasemap(e){if(!this.useDefault3dBasemap||!this.default3DBasemapQuery||"none"===this.default3DBasemapQuery)return null;const t=new O;t.query=this.default3DBasemapQuery,t.disableExtraQuery=!0;const r=(await this.queryItems(t,e)).results.find((e=>"Web Scene"===e.type));return r?new M({portalItem:r}):null}fetchCategorySchema(e){return this.hasCategorySchema?this.request(this.restUrl+"/portals/self/categorySchema",e).then((e=>e.categorySchema)):p(e)?Promise.reject(h()):Promise.resolve([])}async fetchClassificationSchema(e){return this.hasClassificationSchema?this.request(this.restUrl+"/portals/self/classification/classificationSchema",e).then((e=>e.classificationSchema)):null}fetchFeaturedGroups(e){const t=this.featuredGroups,r=new O({num:100,sortField:"title"});if(t?.length){const o=[];for(const e of t)o.push(`(title:"${e.title}" AND owner:${e.owner})`);return r.query=o.join(" OR "),this.queryGroups(r,e).then((e=>e.results))}return p(e)?Promise.reject(h()):Promise.resolve([])}fetchRegions(e){const t=this.user?.culture||this.culture||S();return this.request(this.restUrl+"/portals/regions",{...e,query:{culture:t}})}fetchSettings(e){const t=this.user?.culture||this.culture||S();return this.request(this.restUrl+"/portals/self/settings",{...e,query:{culture:t}})}static getDefault(){return P((()=>new _))}queryGroups(e,t){return this.queryPortal("/community/groups",e,"PortalGroup",t)}queryItems(e,t){return this.queryPortal("/search",e,"PortalItem",t)}queryUsers(e,t){return e.sortField||(e.sortField="username"),this.queryPortal("/community/users",e,"PortalUser",t)}fetchSelf(e=this.authMode,t=!1,r){const o=this.restUrl+"/portals/self",s={authMode:e,query:{culture:S().toLowerCase()},withCredentials:!0,...r};return"auto"===s.authMode&&(s.authMode="no-prompt"),t&&(s.query.default=!0),this.request(o,s)}queryPortal(e,t,r,o){const s=y(O,t),i=t=>this.request(this.restUrl+e,{...s.toRequestOptions(this),...o}).then((e=>{const r=s.clone();return r.start=e.nextStart,new B({nextQueryParams:r,queryParams:s,total:e.total,results:_._resultsToTypedArray(t,{portal:this},e,o)})})).then((e=>Promise.all(e.results.map((t=>"function"==typeof t.when?t.when():e))).then((()=>e),(t=>(d(t),e)))));return r&&Q[r]?Q[r]().then((({default:e})=>(n(o),i(e)))):i()}signIn(){if(this.hasAPIKey)return this.load().then((()=>{if(!this.user)throw new s("portal:not-authenticated","Unable to authenticate user. Portal.user is missing")}));if(this.authMode===_.AUTH_MODE_ANONYMOUS||this.authMode===_.AUTH_MODE_NO_PROMPT&&!r)return Promise.reject(new s("portal:invalid-auth-mode",`Current "authMode"' is "${this.authMode}"`));if("failed"===this.loadStatus)return Promise.reject(this.loadError);const e=e=>Promise.resolve().then((()=>"not-loaded"===this.loadStatus?(e||(this.authMode="immediate"),this.load().then((()=>null))):"loading"===this.loadStatus?this.load().then((()=>this.credential?null:(this.credential=e,this.fetchSelf("immediate")))):this.user&&this.credential===e?null:(this.credential=e,this.fetchSelf("immediate")))).then((e=>{e&&(this.sourceJSON=e,this.read(e))}));return r?r.getCredential(this.restUrl,{prompt:this.authMode!==_.AUTH_MODE_NO_PROMPT}).then((t=>e(t))):e(this.credential)}normalizeUrl(e){const t=this.credential?.token;return this._normalizeSSL(t?e+(e.includes("?")?"&":"?")+"token="+t:e)}requestToTypedArray(e,t,r){return this.request(e,t).then((e=>{const t=_._resultsToTypedArray(r,{portal:this},e);return Promise.all(t.map((t=>"function"==typeof t.when?t.when():e))).then((()=>t),(()=>t))}))}request(e,t={}){const r={f:"json",...t.query},{authMode:s=(this.authMode===_.AUTH_MODE_ANONYMOUS||this.authMode===_.AUTH_MODE_NO_PROMPT?this.authMode:"auto"),body:i=null,cacheBust:a=!1,method:l="auto",responseType:u="json",signal:n}=t,p={authMode:s,body:i,cacheBust:a,method:l,query:r,responseType:u,timeout:0,signal:n};return t.withCredentials&&(p.withCredentials=!0),o(this._normalizeSSL(e),p).then((e=>e.data))}toJSON(){throw new s("internal:not-yet-implemented","Portal.toJSON is not yet implemented")}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");return new _({sourceJSON:e})}_getHelperService(e){const t=this.helperServices&&this.helperServices[e];if(!t)throw new s("portal:service-not-found",`The \`helperServices\` do not include an entry named "${e}"`);return t}async _fetchBasemaps(e,t){const r=new O;r.query=e||(this.hasAPIKey?this.devBasemapGalleryGroupQuery:this.useVectorBasemaps?this.vectorBasemapGalleryGroupQuery:this.basemapGalleryGroupQuery),r.disableExtraQuery=!0;const o=await this.queryGroups(r,t);if(!o.total)return[];const s=o.results[0];r.num=100,r.query='type:"Web Map" -type:"Web Application"',r.sortField=s.sortField||"name",r.sortOrder=s.sortOrder||"desc";const i=await s.queryItems(r,t);if(!i.total)return[];return i.results.filter((e=>"Web Map"===e.type)).map((e=>new M({portalItem:e})))}async _fetchBasemaps3D(e,t){const r=e||this.basemapGalleryGroupQuery3D;if(!r)return[];if(this.hasAPIKey)return[];const o=new O({query:r,disableExtraQuery:!0}),s=await this.queryGroups(o,t);if(!s.total)return[];const i=s.results[0];o.num=100,o.query='type:"Web Scene"',o.sortField=i.sortField||"name",o.sortOrder=i.sortOrder||"desc";const a=await i.queryItems(o,t);if(!a.total)return[];return a.results.filter((e=>"Web Scene"===e.type)).map((e=>new M({portalItem:e})))}_normalizeSSL(e){return e.replace(/^http:/i,"https:").replace(":7080",":7443")}_readBasemap(e){if(e){const t=M.fromJSON(e);return t.portalItem={portal:this},t}return null}static _resultsToTypedArray(e,t,r,o){let s;if(r){const i=null!=o?o.signal:null;s=r.listings||r.notifications||r.userInvitations||r.tags||r.items||r.groups||r.comments||r.provisions||r.results||r.relatedItems||r,(e||t)&&(s=s.map((r=>{const o=Object.assign(e?e.fromJSON(r):r,t);return"function"==typeof o.load&&o.load(i),o})))}else s=[];return s}};e([c()],U.prototype,"access",void 0),e([c()],U.prototype,"allSSL",void 0),e([c()],U.prototype,"authMode",void 0),e([c()],U.prototype,"authorizedCrossOriginDomains",void 0),e([m("authorizedCrossOriginDomains")],U.prototype,"readAuthorizedCrossOriginDomains",null),e([c()],U.prototype,"basemapGalleryGroupQuery",void 0),e([c({json:{name:"3DBasemapGalleryGroupQuery"}})],U.prototype,"basemapGalleryGroupQuery3D",void 0),e([c()],U.prototype,"bingKey",void 0),e([c()],U.prototype,"canListApps",void 0),e([c()],U.prototype,"canListData",void 0),e([c()],U.prototype,"canListPreProvisionedItems",void 0),e([c()],U.prototype,"canProvisionDirectPurchase",void 0),e([c()],U.prototype,"canSearchPublic",void 0),e([c()],U.prototype,"canShareBingPublic",void 0),e([c()],U.prototype,"canSharePublic",void 0),e([c()],U.prototype,"canSignInArcGIS",void 0),e([c()],U.prototype,"canSignInIDP",void 0),e([c()],U.prototype,"colorSetsGroupQuery",void 0),e([c()],U.prototype,"commentsEnabled",void 0),e([c({type:Date})],U.prototype,"created",void 0),e([c()],U.prototype,"credential",void 0),e([c()],U.prototype,"culture",void 0),e([c()],U.prototype,"currentVersion",void 0),e([c()],U.prototype,"customBaseUrl",void 0),e([c()],U.prototype,"default3DBasemapQuery",void 0),e([c()],U.prototype,"defaultBasemap",void 0),e([m("defaultBasemap")],U.prototype,"readDefaultBasemap",null),e([c()],U.prototype,"defaultDevBasemap",void 0),e([m("defaultDevBasemap")],U.prototype,"readDefaultDevBasemap",null),e([c({type:v})],U.prototype,"defaultExtent",void 0),e([c()],U.prototype,"defaultVectorBasemap",void 0),e([m("defaultVectorBasemap")],U.prototype,"readDefaultVectorBasemap",null),e([c()],U.prototype,"description",void 0),e([c()],U.prototype,"devBasemapGalleryGroupQuery",void 0),e([c()],U.prototype,"eueiEnabled",void 0),e([c({readOnly:!0})],U.prototype,"extraQuery",null),e([c()],U.prototype,"featuredGroups",void 0),e([c()],U.prototype,"featuredItemsGroupQuery",void 0),e([c()],U.prototype,"galleryTemplatesGroupQuery",void 0),e([c()],U.prototype,"layoutGroupQuery",void 0),e([c()],U.prototype,"livingAtlasGroupQuery",void 0),e([c({readOnly:!0})],U.prototype,"hasAPIKey",null),e([c()],U.prototype,"hasCategorySchema",void 0),e([c()],U.prototype,"hasClassificationSchema",void 0),e([c()],U.prototype,"helpBase",void 0),e([c()],U.prototype,"helperServices",void 0),e([c()],U.prototype,"helpMap",void 0),e([c()],U.prototype,"homePageFeaturedContent",void 0),e([c()],U.prototype,"homePageFeaturedContentCount",void 0),e([c()],U.prototype,"httpPort",void 0),e([c()],U.prototype,"httpsPort",void 0),e([c()],U.prototype,"id",void 0),e([c()],U.prototype,"ipCntryCode",void 0),e([c({readOnly:!0})],U.prototype,"isOrganization",null),e([c()],U.prototype,"isPortal",void 0),e([c()],U.prototype,"isReadOnly",void 0),e([c({readOnly:!0})],U.prototype,"itemPageUrl",null),e([c()],U.prototype,"layerTemplatesGroupQuery",void 0),e([c()],U.prototype,"maxTokenExpirationMinutes",void 0),e([c({type:Date})],U.prototype,"modified",void 0),e([c()],U.prototype,"name",void 0),e([c()],U.prototype,"portalHostname",void 0),e([c()],U.prototype,"portalMode",void 0),e([c()],U.prototype,"portalProperties",void 0),e([c()],U.prototype,"region",void 0),e([c()],U.prototype,"recycleBinEnabled",void 0),e([c({readOnly:!0})],U.prototype,"restUrl",null),e([c()],U.prototype,"rotatorPanels",void 0),e([c()],U.prototype,"showHomePageDescription",void 0),e([c()],U.prototype,"sourceJSON",void 0),e([c()],U.prototype,"staticImagesUrl",void 0),e([c({json:{name:"2DStylesGroupQuery"}})],U.prototype,"stylesGroupQuery2d",void 0),e([c({json:{name:"stylesGroupQuery"}})],U.prototype,"stylesGroupQuery3d",void 0),e([c()],U.prototype,"supportsHostedServices",void 0),e([c()],U.prototype,"symbolSetsGroupQuery",void 0),e([c()],U.prototype,"templatesGroupQuery",void 0),e([c()],U.prototype,"thumbnail",void 0),e([c({readOnly:!0})],U.prototype,"thumbnailUrl",null),e([c()],U.prototype,"units",void 0),e([c()],U.prototype,"url",void 0),e([c()],U.prototype,"urlKey",void 0),e([m("urlKey")],U.prototype,"readUrlKey",null),e([c()],U.prototype,"user",void 0),e([m("user")],U.prototype,"readUser",null),e([c()],U.prototype,"use3dBasemaps",void 0),e([c()],U.prototype,"useDefault3dBasemap",void 0),e([c()],U.prototype,"useStandardizedQuery",void 0),e([c()],U.prototype,"useVectorBasemaps",void 0),e([c()],U.prototype,"vectorBasemapGalleryGroupQuery",void 0),U=_=e([f("esri.portal.Portal")],U);const C=new FinalizationRegistry((e=>{e.remove()}));function b(e){const t=r;return()=>{const r=e.deref();r&&t.findCredential(r.restUrl)&&r.signIn().catch((()=>{}))}}export{U as default};
5
+ import{_ as e}from"../chunks/tslib.es6.js";import t from"../config.js";import{id as r}from"../kernel.js";import o from"../request.js";import s from"../core/Error.js";import i from"../core/JSONSupport.js";import a from"../core/Loadable.js";import{destroyMaybe as l,removeMaybe as u}from"../core/maybe.js";import{throwIfAborted as n,isAborted as p,createAbortError as h,throwIfAbortError as d}from"../core/promiseUtils.js";import{property as c}from"../core/accessorSupport/decorators/property.js";import{ensureType as y}from"../core/accessorSupport/ensureType.js";import"../core/has.js";import"../core/RandomLCG.js";import{reader as m}from"../core/accessorSupport/decorators/reader.js";import{subclass as f}from"../core/accessorSupport/decorators/subclass.js";import v from"../geometry/Extent.js";import{getLocale as S}from"../intl/locale.js";import{ensureDefaultPortalInstance as P}from"./portalDefault.js";import g from"./PortalGroup.js";import O from"./PortalQueryParams.js";import B from"./PortalQueryResult.js";import D from"./PortalUser.js";import{isApiKeyApplicable as G,hasBasemapStylesApiKey as _}from"../support/apiKeyUtils.js";var M;let U;const Q={PortalGroup:()=>Promise.resolve({default:g}),PortalItem:()=>import("./PortalItem.js"),PortalUser:()=>Promise.resolve({default:D})};let C=class extends(i.JSONSupportMixin(a)){static{M=this}static{this.AUTH_MODE_ANONYMOUS="anonymous"}static{this.AUTH_MODE_AUTO="auto"}static{this.AUTH_MODE_IMMEDIATE="immediate"}static{this.AUTH_MODE_NO_PROMPT="no-prompt"}constructor(e){super(e),this._esriIdCredentialCreateHandle=null,this.access=null,this.allSSL=!1,this.authMode="auto",this.authorizedCrossOriginDomains=null,this.basemapGalleryGroupQuery=null,this.basemapGalleryGroupQuery3D=null,this.bingKey=null,this.canListApps=!1,this.canListData=!1,this.canListPreProvisionedItems=!1,this.canProvisionDirectPurchase=!1,this.canSearchPublic=!0,this.canShareBingPublic=!1,this.canSharePublic=!1,this.canSignInArcGIS=!1,this.canSignInIDP=!1,this.colorSetsGroupQuery=null,this.commentsEnabled=!1,this.created=null,this.culture=null,this.customBaseUrl=null,this.default3DBasemapQuery=null,this.defaultBasemap=null,this.defaultDevBasemap=null,this.defaultExtent=null,this.defaultVectorBasemap=null,this.description=null,this.devBasemapGalleryGroupQuery=null,this.eueiEnabled=null,this.featuredGroups=null,this.featuredItemsGroupQuery=null,this.galleryTemplatesGroupQuery=null,this.layoutGroupQuery=null,this.livingAtlasGroupQuery=null,this.hasCategorySchema=!1,this.hasClassificationSchema=!1,this.helperServices=null,this.homePageFeaturedContent=null,this.homePageFeaturedContentCount=null,this.httpPort=null,this.httpsPort=null,this.id=null,this.ipCntryCode=null,this.isPortal=!1,this.isReadOnly=!1,this.layerTemplatesGroupQuery=null,this.maxTokenExpirationMinutes=null,this.modified=null,this.name=null,this.portalHostname=null,this.portalMode=null,this.portalProperties=null,this.region=null,this.recycleBinEnabled=!1,this.rotatorPanels=null,this.showHomePageDescription=!1,this.sourceJSON=null,this.supportsHostedServices=!1,this.symbolSetsGroupQuery=null,this.templatesGroupQuery=null,this.units=null,this.url=t.portalUrl,this.urlKey=null,this.user=null,this.use3dBasemaps=!0,this.useDefault3dBasemap=!1,this.useStandardizedQuery=!1,this.useVectorBasemaps=!1,this.vectorBasemapGalleryGroupQuery=null}normalizeCtorArgs(e){return"string"==typeof e?{url:e}:e}destroy(){b.unregister(this),this.defaultBasemap=l(this.defaultBasemap),this.defaultDevBasemap=l(this.defaultDevBasemap),this.defaultVectorBasemap=l(this.defaultVectorBasemap),this._esriIdCredentialCreateHandle=u(this._esriIdCredentialCreateHandle)}readAuthorizedCrossOriginDomains(e){if(e)for(const r of e)t.request.trustedServers.includes(r)||t.request.trustedServers.push(r);return e}readDefaultBasemap(e){return this._readBasemap(e)}readDefaultDevBasemap(e){return this._readBasemap(e)}readDefaultVectorBasemap(e){return this._readBasemap(e)}get extraQuery(){const e=this.user?.orgId,t=!e||this.canSearchPublic;return this.id&&!t?` AND orgid:${this.id}`:null}get hasAPIKey(){return G(this.restUrl)}get isOrganization(){return!!this.access}get itemPageUrl(){return this.url?`${this.url}/home/item.html`:null}get restUrl(){let e=this.url;if(e){const t=e.indexOf("/sharing");e=t>0?e.slice(0,t):this.url.replace(/\/+$/,""),e+="/sharing/rest"}return e}get thumbnailUrl(){const e=this.restUrl,t=this.thumbnail;return e&&t?this._normalizeSSL(e+"/portals/self/resources/"+t):null}readUrlKey(e){return e?e.toLowerCase():e}readUser(e){let t=null;return e&&(t=D.fromJSON(e),t.portal=this),t}load(e){const t=import("../Basemap.js").then((({default:t})=>{n(e),U=t})).then((()=>this.sourceJSON?this.sourceJSON:this.fetchSelf(this.authMode,!1,e))).then((e=>{if(!this.hasAPIKey&&r){const e=r;this.credential=e.findCredential(this.restUrl),this.credential||this.authMode!==M.AUTH_MODE_AUTO&&this.authMode!==M.AUTH_MODE_NO_PROMPT||(this._esriIdCredentialCreateHandle?.remove(),this._esriIdCredentialCreateHandle=e.on("credential-create",w(new WeakRef(this))),b.register(this,this._esriIdCredentialCreateHandle,this))}this.sourceJSON=e,this.read(e)}));return this.addResolvingPromise(t),Promise.resolve(this)}async createElevationLayers(){await this.load();const e=this._getHelperService("defaultElevationLayers"),t=(await import("../layers/ElevationLayer.js")).default;return e?e.map((e=>new t({id:e.id,url:e.url}))):[]}async fetchBasemaps(e,t){const r=await this._fetchBasemaps(e,t);if(!0===t?.include3d&&!1!==this.use3dBasemaps){const o=await this._fetchBasemaps3D(e,t);r.unshift(...o)}return r}async fetchDefault3DBasemap(e){if(!this.useDefault3dBasemap||!this.default3DBasemapQuery||"none"===this.default3DBasemapQuery)return null;const t=new O;t.query=this.default3DBasemapQuery,t.disableExtraQuery=!0;const r=(await this.queryItems(t,e)).results.find((e=>"Web Scene"===e.type));return r?new U({portalItem:r}):null}fetchCategorySchema(e){return this.hasCategorySchema?this.request(this.restUrl+"/portals/self/categorySchema",e).then((e=>e.categorySchema)):p(e)?Promise.reject(h()):Promise.resolve([])}async fetchClassificationSchema(e){return this.hasClassificationSchema?this.request(this.restUrl+"/portals/self/classification/classificationSchema",e).then((e=>e.classificationSchema)):null}fetchFeaturedGroups(e){const t=this.featuredGroups,r=new O({num:100,sortField:"title"});if(t?.length){const o=[];for(const e of t)o.push(`(title:"${e.title}" AND owner:${e.owner})`);return r.query=o.join(" OR "),this.queryGroups(r,e).then((e=>e.results))}return p(e)?Promise.reject(h()):Promise.resolve([])}fetchRegions(e){const t=this.user?.culture||this.culture||S();return this.request(this.restUrl+"/portals/regions",{...e,query:{culture:t}})}fetchSettings(e){const t=this.user?.culture||this.culture||S();return this.request(this.restUrl+"/portals/self/settings",{...e,query:{culture:t}})}static getDefault(){return P((()=>new M))}queryGroups(e,t){return this.queryPortal("/community/groups",e,"PortalGroup",t)}queryItems(e,t){return this.queryPortal("/search",e,"PortalItem",t)}queryUsers(e,t){return e.sortField||(e.sortField="username"),this.queryPortal("/community/users",e,"PortalUser",t)}fetchSelf(e=this.authMode,t=!1,r){const o=this.restUrl+"/portals/self",s={authMode:e,query:{culture:S().toLowerCase()},withCredentials:!0,...r};return"auto"===s.authMode&&(s.authMode="no-prompt"),t&&(s.query.default=!0),this.request(o,s)}queryPortal(e,t,r,o){const s=y(O,t),i=t=>this.request(this.restUrl+e,{...s.toRequestOptions(this),...o}).then((e=>{const r=s.clone();return r.start=e.nextStart,new B({nextQueryParams:r,queryParams:s,total:e.total,results:M._resultsToTypedArray(t,{portal:this},e,o)})})).then((e=>Promise.all(e.results.map((t=>"function"==typeof t.when?t.when():e))).then((()=>e),(t=>(d(t),e)))));return r&&Q[r]?Q[r]().then((({default:e})=>(n(o),i(e)))):i()}signIn(){if(this.hasAPIKey)return this.load().then((()=>{if(!this.user)throw new s("portal:not-authenticated","Unable to authenticate user. Portal.user is missing")}));if(this.authMode===M.AUTH_MODE_ANONYMOUS||this.authMode===M.AUTH_MODE_NO_PROMPT&&!r)return Promise.reject(new s("portal:invalid-auth-mode",`Current "authMode"' is "${this.authMode}"`));if("failed"===this.loadStatus)return Promise.reject(this.loadError);const e=e=>Promise.resolve().then((()=>"not-loaded"===this.loadStatus?(e||(this.authMode="immediate"),this.load().then((()=>null))):"loading"===this.loadStatus?this.load().then((()=>this.credential?null:(this.credential=e,this.fetchSelf("immediate")))):this.user&&this.credential===e?null:(this.credential=e,this.fetchSelf("immediate")))).then((e=>{e&&(this.sourceJSON=e,this.read(e))}));return r?r.getCredential(this.restUrl,{prompt:this.authMode!==M.AUTH_MODE_NO_PROMPT}).then((t=>e(t))):e(this.credential)}normalizeUrl(e){const t=this.credential?.token;return this._normalizeSSL(t?e+(e.includes("?")?"&":"?")+"token="+t:e)}requestToTypedArray(e,t,r){return this.request(e,t).then((e=>{const t=M._resultsToTypedArray(r,{portal:this},e);return Promise.all(t.map((t=>"function"==typeof t.when?t.when():e))).then((()=>t),(()=>t))}))}request(e,t={}){const r={f:"json",...t.query},{authMode:s=(this.authMode===M.AUTH_MODE_ANONYMOUS||this.authMode===M.AUTH_MODE_NO_PROMPT?this.authMode:"auto"),body:i=null,cacheBust:a=!1,method:l="auto",responseType:u="json",signal:n}=t,p={authMode:s,body:i,cacheBust:a,method:l,query:r,responseType:u,timeout:0,signal:n};return t.withCredentials&&(p.withCredentials=!0),o(this._normalizeSSL(e),p).then((e=>e.data))}toJSON(){throw new s("internal:not-yet-implemented","Portal.toJSON is not yet implemented")}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");return new M({sourceJSON:e})}_getHelperService(e){const t=this.helperServices&&this.helperServices[e];if(!t)throw new s("portal:service-not-found",`The \`helperServices\` do not include an entry named "${e}"`);return t}async _fetchBasemaps(e,t){const r=new O;r.query=e||(_()?this.devBasemapGalleryGroupQuery:this.useVectorBasemaps?this.vectorBasemapGalleryGroupQuery:this.basemapGalleryGroupQuery),r.disableExtraQuery=!0;const o=await this.queryGroups(r,t);if(!o.total)return[];const s=o.results[0];r.num=100,r.query='type:"Web Map" -type:"Web Application"',r.sortField=s.sortField||"name",r.sortOrder=s.sortOrder||"desc";const i=await s.queryItems(r,t);if(!i.total)return[];return i.results.filter((e=>"Web Map"===e.type)).map((e=>new U({portalItem:e})))}async _fetchBasemaps3D(e,t){const r=e||this.basemapGalleryGroupQuery3D;if(!r)return[];if(_())return[];const o=new O({query:r,disableExtraQuery:!0}),s=await this.queryGroups(o,t);if(!s.total)return[];const i=s.results[0];o.num=100,o.query='type:"Web Scene"',o.sortField=i.sortField||"name",o.sortOrder=i.sortOrder||"desc";const a=await i.queryItems(o,t);if(!a.total)return[];return a.results.filter((e=>"Web Scene"===e.type)).map((e=>new U({portalItem:e})))}_normalizeSSL(e){return e.replace(/^http:/i,"https:").replace(":7080",":7443")}_readBasemap(e){if(e){const t=U.fromJSON(e);return t.portalItem={portal:this},t}return null}static _resultsToTypedArray(e,t,r,o){let s;if(r){const i=null!=o?o.signal:null;s=r.listings||r.notifications||r.userInvitations||r.tags||r.items||r.groups||r.comments||r.provisions||r.results||r.relatedItems||r,(e||t)&&(s=s.map((r=>{const o=Object.assign(e?e.fromJSON(r):r,t);return"function"==typeof o.load&&o.load(i),o})))}else s=[];return s}};e([c()],C.prototype,"access",void 0),e([c()],C.prototype,"allSSL",void 0),e([c()],C.prototype,"authMode",void 0),e([c()],C.prototype,"authorizedCrossOriginDomains",void 0),e([m("authorizedCrossOriginDomains")],C.prototype,"readAuthorizedCrossOriginDomains",null),e([c()],C.prototype,"basemapGalleryGroupQuery",void 0),e([c({json:{name:"3DBasemapGalleryGroupQuery"}})],C.prototype,"basemapGalleryGroupQuery3D",void 0),e([c()],C.prototype,"bingKey",void 0),e([c()],C.prototype,"canListApps",void 0),e([c()],C.prototype,"canListData",void 0),e([c()],C.prototype,"canListPreProvisionedItems",void 0),e([c()],C.prototype,"canProvisionDirectPurchase",void 0),e([c()],C.prototype,"canSearchPublic",void 0),e([c()],C.prototype,"canShareBingPublic",void 0),e([c()],C.prototype,"canSharePublic",void 0),e([c()],C.prototype,"canSignInArcGIS",void 0),e([c()],C.prototype,"canSignInIDP",void 0),e([c()],C.prototype,"colorSetsGroupQuery",void 0),e([c()],C.prototype,"commentsEnabled",void 0),e([c({type:Date})],C.prototype,"created",void 0),e([c()],C.prototype,"credential",void 0),e([c()],C.prototype,"culture",void 0),e([c()],C.prototype,"currentVersion",void 0),e([c()],C.prototype,"customBaseUrl",void 0),e([c()],C.prototype,"default3DBasemapQuery",void 0),e([c()],C.prototype,"defaultBasemap",void 0),e([m("defaultBasemap")],C.prototype,"readDefaultBasemap",null),e([c()],C.prototype,"defaultDevBasemap",void 0),e([m("defaultDevBasemap")],C.prototype,"readDefaultDevBasemap",null),e([c({type:v})],C.prototype,"defaultExtent",void 0),e([c()],C.prototype,"defaultVectorBasemap",void 0),e([m("defaultVectorBasemap")],C.prototype,"readDefaultVectorBasemap",null),e([c()],C.prototype,"description",void 0),e([c()],C.prototype,"devBasemapGalleryGroupQuery",void 0),e([c()],C.prototype,"eueiEnabled",void 0),e([c({readOnly:!0})],C.prototype,"extraQuery",null),e([c()],C.prototype,"featuredGroups",void 0),e([c()],C.prototype,"featuredItemsGroupQuery",void 0),e([c()],C.prototype,"galleryTemplatesGroupQuery",void 0),e([c()],C.prototype,"layoutGroupQuery",void 0),e([c()],C.prototype,"livingAtlasGroupQuery",void 0),e([c({readOnly:!0})],C.prototype,"hasAPIKey",null),e([c()],C.prototype,"hasCategorySchema",void 0),e([c()],C.prototype,"hasClassificationSchema",void 0),e([c()],C.prototype,"helpBase",void 0),e([c()],C.prototype,"helperServices",void 0),e([c()],C.prototype,"helpMap",void 0),e([c()],C.prototype,"homePageFeaturedContent",void 0),e([c()],C.prototype,"homePageFeaturedContentCount",void 0),e([c()],C.prototype,"httpPort",void 0),e([c()],C.prototype,"httpsPort",void 0),e([c()],C.prototype,"id",void 0),e([c()],C.prototype,"ipCntryCode",void 0),e([c({readOnly:!0})],C.prototype,"isOrganization",null),e([c()],C.prototype,"isPortal",void 0),e([c()],C.prototype,"isReadOnly",void 0),e([c({readOnly:!0})],C.prototype,"itemPageUrl",null),e([c()],C.prototype,"layerTemplatesGroupQuery",void 0),e([c()],C.prototype,"maxTokenExpirationMinutes",void 0),e([c({type:Date})],C.prototype,"modified",void 0),e([c()],C.prototype,"name",void 0),e([c()],C.prototype,"portalHostname",void 0),e([c()],C.prototype,"portalMode",void 0),e([c()],C.prototype,"portalProperties",void 0),e([c()],C.prototype,"region",void 0),e([c()],C.prototype,"recycleBinEnabled",void 0),e([c({readOnly:!0})],C.prototype,"restUrl",null),e([c()],C.prototype,"rotatorPanels",void 0),e([c()],C.prototype,"showHomePageDescription",void 0),e([c()],C.prototype,"sourceJSON",void 0),e([c()],C.prototype,"staticImagesUrl",void 0),e([c({json:{name:"2DStylesGroupQuery"}})],C.prototype,"stylesGroupQuery2d",void 0),e([c({json:{name:"stylesGroupQuery"}})],C.prototype,"stylesGroupQuery3d",void 0),e([c()],C.prototype,"supportsHostedServices",void 0),e([c()],C.prototype,"symbolSetsGroupQuery",void 0),e([c()],C.prototype,"templatesGroupQuery",void 0),e([c()],C.prototype,"thumbnail",void 0),e([c({readOnly:!0})],C.prototype,"thumbnailUrl",null),e([c()],C.prototype,"units",void 0),e([c()],C.prototype,"url",void 0),e([c()],C.prototype,"urlKey",void 0),e([m("urlKey")],C.prototype,"readUrlKey",null),e([c()],C.prototype,"user",void 0),e([m("user")],C.prototype,"readUser",null),e([c()],C.prototype,"use3dBasemaps",void 0),e([c()],C.prototype,"useDefault3dBasemap",void 0),e([c()],C.prototype,"useStandardizedQuery",void 0),e([c()],C.prototype,"useVectorBasemaps",void 0),e([c()],C.prototype,"vectorBasemapGalleryGroupQuery",void 0),C=M=e([f("esri.portal.Portal")],C);const b=new FinalizationRegistry((e=>{e.remove()}));function w(e){const t=r;return()=>{const r=e.deref();r&&t.findCredential(r.restUrl)&&r.signIn().catch((()=>{}))}}export{C as default};
package/request.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.33/esri/copyright.txt for details.
4
4
  */
5
- import e from"./config.js";import{id as r}from"./kernel.js";import t from"./core/Error.js";import has from"./core/has.js";import{clone as s}from"./core/lang.js";import{getOrCreateMapValue as o}from"./core/MapUtils.js";import{onAbort as n,createAbortError as a,isAbortError as i,isAborted as l}from"./core/promiseUtils.js";import{queryToObject as u,isDataProtocol as c,isBlobProtocol as d,normalize as p,getInterceptor as m,isTrustedServer as h,getOrigin as f,toHTTPS as y,objectToQuery as w,getProxyRule as g,getProxyUrl as q,addQueryParameters as b,hasSameOrigin as S,addProxyRule as T,getAppUrl as k}from"./core/urlUtils.js";import{isHostedAgolService as O}from"./layers/support/arcgisLayerUrl.js";import{isSecureProxyService as v}from"./portal/support/urlUtils.js";import{isApiKeyApplicable as C}from"./support/apiKeyUtils.js";import{registerNoCorsDomains as x,isNoCorsRequestRequired as L,sendNoCorsRequest as E,createTimeoutError as U,loadImageAsync as j}from"./support/requestUtils.js";async function P(e,r){e instanceof URL&&(e=e.toString()),r?.query instanceof URLSearchParams&&(r.query=u(r.query.toString().replaceAll("+"," ")));const t=c(e),s=d(e);s||t||(e=p(e));const o={url:e,requestOptions:{...r}},a=e=>({data:e,getAllHeaders:I,getHeader:I,httpStatus:200,requestOptions:o.requestOptions,url:o.url}),i=m(e,H.internalInterceptors);if(i){const e=await K(i,o);if(null!=e)return a(e)}let l=m(e);if(l){const e=await K(l,o);if(null!=e)return a(e);l.after||l.error||(l=null)}if(e=o.url,"image"===(r=o.requestOptions).responseType&&(has("host-webworker")||has("host-node")))throw $("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),o);if("head"===r.method){if(r.body)throw $("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),o);if(t||s)throw $("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),o)}if(await z(),A)return A.execute(e,r);const h=new AbortController,f=n(r,(()=>h.abort())),y={controller:h,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:l,params:o,redoRequest:!1,useIdentity:H.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},w=r.useRequestQueue?Z(y):ee(y),g=await w.finally((()=>f?.remove()));return l?.after?.(g),g}let A;const H=e.request,R="FormData"in globalThis,_=new Set([499,498,403,401]),D=new Set(["COM_0056","COM_0057","SB_0008"]),F=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],I=()=>null,M=Symbol();function N(e){const r=f(e);r&&!P._corsServers.includes(r)&&P._corsServers.push(r)}function B(e){const r=f(e);return!r||r.endsWith(".arcgis.com")||P._corsServers.includes(r)||h(r)}function $(e,r,o,n){let l;const u={url:o.url,requestOptions:o.requestOptions,getAllHeaders:I,getHeader:I,ssl:!1};if(r instanceof t)return r.details?(r.details=s(r.details),r.details.url=o.url,r.details.requestOptions=o.requestOptions):r.details=u,r;if(r){const e=n&&(()=>Array.from(n.headers)),t=n&&(e=>n.headers.get(e)),s=n?.status,o=r.message;o&&(l=o),e&&t&&(u.getAllHeaders=e,u.getHeader=t),u.httpStatus=(null!=r.httpCode?r.httpCode:r.code)||s||0,u.subCode=r.subcode,u.messageCode=r.messageCode,"string"==typeof r.details?(u.messages=[r.details],l??=r.details):(u.messages=r.details,l??=u.messages?.[0]),u.raw=M in r?r[M]:r}return l??="Error",i(r)?a():new t(e,l,u)}async function z(){has("host-webworker")&&!A&&(A=await import("./core/workers/request.js"))}async function Q(){r||await import("./identity/IdentityManager.js")}async function W(t){const s=t.params.url,o=t.params.requestOptions,n=t.controller.signal,a=o.body;let i=null,u=null;if(R&&"HTMLFormElement"in globalThis&&(a instanceof FormData?i=a:a instanceof HTMLFormElement&&(i=new FormData(a))),"string"==typeof a&&(u=a),t.fetchOptions={cache:o.cacheBust?"no-cache":"default",credentials:"same-origin",headers:o.headers||{},method:"head"===o.method?"HEAD":"GET",mode:"cors",priority:H.priority,redirect:"follow",signal:n},(i||u)&&(t.fetchOptions.body=i||u),"anonymous"===o.authMode&&(t.useIdentity=!1),t.hasToken=!!(/token=/i.test(s)||o.query?.token||i?.get("token")),!t.hasToken&&C(s)&&(o.query||(o.query={}),o.query.token=e.apiKey,t.hasToken=!0),t.useIdentity&&!t.hasToken&&!t.credential&&!t.credentialToken&&!G(s)&&!l(n)){let e;"immediate"===o.authMode?(await Q(),e=await r.getCredential(s,{signal:n})):"no-prompt"===o.authMode?(await Q(),e=await r.getCredential(s,{prompt:!1,signal:n}).catch((()=>{}))):r&&(e=r.findCredential(s)),e&&(t.credential=e,t.credentialToken=e.token,t.useSSL=!!e.ssl)}}function G(e){return F.some((r=>r.test(e)))}async function J(e){let t=e.params.url;const s=e.params.requestOptions,o=e.fetchOptions??{},n=d(t)||c(t),i=s.responseType||"json",l=n?0:null!=s.timeout?s.timeout:H.timeout;let u=!1;if(!n){e.useSSL&&(t=y(t));let n={...s.query};e.credentialToken&&(n.token=e.credentialToken);let a=w(n);has("esri-url-encodes-apostrophe")&&(a=a.replaceAll("'","%27"));const i=t.length+1+a.length;let l;u="delete"===s.method||"post"===s.method||"put"===s.method||!!s.body||i>H.maxUrlLength;const c=s.useProxy||!!g(t);if(c){const e=q(t);l=e.path,!u&&l.length+1+i>H.maxUrlLength&&(u=!0),e.query&&(n={...e.query,...n})}if("HEAD"===o.method&&(u||c)){if(u){if(i>H.maxUrlLength)throw $("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw $("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(c)throw $("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(u?(o.method="delete"===s.method?"DELETE":"put"===s.method?"PUT":"POST",s.body?t=b(t,n):(o.body=w(n),o.headers||(o.headers={}),o.headers["Content-Type"]="application/x-www-form-urlencoded")):t=b(t,n),c&&(e.useProxy=!0,t=`${l}?${t}`),n.token&&R&&o.body instanceof FormData&&!v(t)&&o.body.set("token",n.token),s.hasOwnProperty("withCredentials"))e.withCredentials=s.withCredentials;else if(!S(t,k()))if(h(t))e.withCredentials=!0;else if(r){const s=r.findServerInfo(t);s?.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(o.credentials="include",L(t)&&await E(u?b(t,n):t))}let p,m,O=0,C=!1;l>0&&(O=setTimeout((()=>{C=!0,e.controller.abort()}),l));try{if("native-request-init"===s.responseType)m=o,m.url=t,s.signal?m.signal=s.signal:delete m.signal;else if("image"!==s.responseType||"default"!==o.cache||"GET"!==o.method||u||X(s.headers)||!n&&!e.useProxy&&H.proxyUrl&&!B(t)){if(P._beforeFetch&&await P._beforeFetch(t,o),p=await fetch(t,o),P._afterFetch&&await P._afterFetch(p),e.useProxy||N(t),"native"===s.responseType)m=p;else if("HEAD"!==o.method)if(p.ok){switch(i){case"array-buffer":m=await p.arrayBuffer();break;case"blob":case"image":m=await p.blob();break;default:m=await p.text()}if(O&&(clearTimeout(O),O=0),"json"===i||"xml"===i||"document"===i)if(m)switch(i){case"json":m=JSON.parse(m);break;case"xml":m=V(m,"application/xml");break;case"document":m=V(m,"text/html")}else m=null;if(m){if("array-buffer"===i||"blob"===i){const e=p.headers.get("Content-Type");if(e&&/application\/json|text\/plain/i.test(e)&&m["blob"===i?"size":"byteLength"]<=750)try{const e=await new Response(m).json();e.error&&(m=e)}catch{}}"image"===i&&m instanceof Blob&&(m=await te(URL.createObjectURL(m),e,!0))}}else{m=await p.text();try{m=JSON.parse(m)}catch{}}}else m=await te(t,e)}catch(x){if("AbortError"===x.name){if(C)throw U();throw a("Request canceled")}if(!(!p&&x instanceof TypeError&&H.proxyUrl)||s.body||"delete"===s.method||"head"===s.method||"post"===s.method||"put"===s.method||e.useProxy||B(t))throw x;e.redoRequest=!0,T({proxyUrl:H.proxyUrl,urlPrefix:f(t)??""})}finally{O&&clearTimeout(O)}return[p,m]}async function K(e,r){if(null!=e.responseData)return e.responseData;if(e.headers&&(r.requestOptions.headers={...r.requestOptions.headers,...e.headers}),e.query&&(r.requestOptions.query={...r.requestOptions.query,...e.query}),e.before){let o,n;try{n=await e.before(r)}catch(s){o=$("request:interceptor",s,r)}if((n instanceof Error||n instanceof t)&&(o=$("request:interceptor",n,r)),o)throw e.error&&e.error(o),o;return n}}function X(e){if(e)for(const r of Object.getOwnPropertyNames(e))if(e[r])return!0;return!1}function V(e,r){let t;try{t=(new DOMParser).parseFromString(e,r)}catch{}if(!t||t.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return t}P._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"],P._beforeFetch=void 0,P._afterFetch=void 0;const Y=new Map;async function Z(e){const r=se(e.params.url);if(!r)return ee(e);const{QueueProcessor:t}=await import("./core/QueueProcessor.js"),s=o(Y,r.origin,(()=>{const e=r.isHosted?has("request-queue-concurrency-hosted"):has("request-queue-concurrency-non-hosted");return new t({concurrency:e,process:e=>{if(l(e.params.requestOptions))throw $("",a("Request canceled"),e.params);return ee(e)}})}));return s.push(e)}async function ee(e){let t,s;await W(e);try{do{[t,s]=await J(e)}while(!await re(e,t,s))}catch(a){const r=$("request:server",a,e.params,t);throw r.details.ssl=e.useSSL,e.interceptor?.error&&e.interceptor.error(r),r}const o=e.params.url;if(s&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(o)){if(!e.hasToken&&!e.credentialToken&&s.user?.username&&!h(o)){const e=f(o,!0);e&&H.trustedServers.push(e)}Array.isArray(s.authorizedCrossOriginNoCorsDomains)&&x(s.authorizedCrossOriginNoCorsDomains)}const n=e.credential;if(n&&r){const e=r.findServerInfo(n.server);let t=e?.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=r.findCredential(t,n.userId);e&&-1===r._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:s,getAllHeaders:t?()=>Array.from(t.headers):I,getHeader:t?e=>t.headers.get(e):I,httpStatus:t?.status??200,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}async function re(e,t,s){if(e.redoRequest)return e.redoRequest=!1,!1;const o=e.params.requestOptions;if(!t||"native"===o.responseType||"native-request-init"===o.responseType)return!0;let n,a;if(s&&(s.error&&"object"==typeof s.error?n=s.error:"error"===s.status&&Array.isArray(s.messages)&&(n={...s},n[M]=s,n.details=s.messages)),!n&&!t.ok)throw n=new Error(`Unable to load ${t.url} status: ${t.status}`),n[M]=s,n;let i,l=null;n&&(a=Number(n.code),l=n.hasOwnProperty("subcode")?Number(n.subcode):null,i=n.messageCode,i=i?.toUpperCase());const u=o.authMode;if(403===a&&(4===l||n.message?.toLowerCase().includes("ssl")&&!n.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===a)&&void 0!==a&&_.has(a)&&!G(e.params.url)&&(403!==a||(!i||!D.has(i))&&(null==l||2===l&&e.credentialToken))){await Q();try{const t=await r.getCredential(e.params.url,{error:$("request:server",n,e.params),credential:e.credential,prompt:"no-prompt"!==u,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(c){if("no-prompt"===u)return e.credential=void 0,e.credentialToken=void 0,!1;n=c}}if(n)throw n;return!0}function te(e,r,t=!1){const s=r.controller.signal,o=new Image;return r.withCredentials?o.crossOrigin="use-credentials":o.crossOrigin="anonymous",o.alt="",o.fetchPriority=H.priority,o.src=e,j(o,e,t,s)}function se(e){let r,t;return"string"==typeof e?(r=f(e,!0),t=O(e)):(r=e.origin,t=O(e.toString())),null==r?null:{origin:r,isHosted:t}}export{P as default};
5
+ import e from"./config.js";import{id as r}from"./kernel.js";import t from"./core/Error.js";import has from"./core/has.js";import{clone as s}from"./core/lang.js";import{getOrCreateMapValue as o}from"./core/MapUtils.js";import{onAbort as n,createAbortError as a,isAbortError as i,isAborted as l}from"./core/promiseUtils.js";import{queryToObject as u,isDataProtocol as c,isBlobProtocol as d,normalize as p,getInterceptor as m,isTrustedServer as h,getOrigin as f,toHTTPS as y,objectToQuery as w,getProxyRule as g,getProxyUrl as q,addQueryParameters as b,hasSameOrigin as S,addProxyRule as T,getAppUrl as k}from"./core/urlUtils.js";import{isHostedAgolService as O}from"./layers/support/arcgisLayerUrl.js";import{isSecureProxyService as v}from"./portal/support/urlUtils.js";import{getApiKey as C}from"./support/apiKeyUtils.js";import{registerNoCorsDomains as x,isNoCorsRequestRequired as L,sendNoCorsRequest as E,createTimeoutError as U,loadImageAsync as j}from"./support/requestUtils.js";async function P(e,r){e instanceof URL&&(e=e.toString()),r?.query instanceof URLSearchParams&&(r.query=u(r.query.toString().replaceAll("+"," ")));const t=c(e),s=d(e);s||t||(e=p(e));const o={url:e,requestOptions:{...r}},a=e=>({data:e,getAllHeaders:I,getHeader:I,httpStatus:200,requestOptions:o.requestOptions,url:o.url}),i=m(e,H.internalInterceptors);if(i){const e=await K(i,o);if(null!=e)return a(e)}let l=m(e);if(l){const e=await K(l,o);if(null!=e)return a(e);l.after||l.error||(l=null)}if(e=o.url,"image"===(r=o.requestOptions).responseType&&(has("host-webworker")||has("host-node")))throw $("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),o);if("head"===r.method){if(r.body)throw $("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),o);if(t||s)throw $("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),o)}if(await z(),A)return A.execute(e,r);const h=new AbortController,f=n(r,(()=>h.abort())),y={controller:h,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:l,params:o,redoRequest:!1,useIdentity:H.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},w=r.useRequestQueue?Z(y):ee(y),g=await w.finally((()=>f?.remove()));return l?.after?.(g),g}let A;const H=e.request,R="FormData"in globalThis,_=new Set([499,498,403,401]),D=new Set(["COM_0056","COM_0057","SB_0008"]),F=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],I=()=>null,M=Symbol();function N(e){const r=f(e);r&&!P._corsServers.includes(r)&&P._corsServers.push(r)}function B(e){const r=f(e);return!r||r.endsWith(".arcgis.com")||P._corsServers.includes(r)||h(r)}function $(e,r,o,n){let l;const u={url:o.url,requestOptions:o.requestOptions,getAllHeaders:I,getHeader:I,ssl:!1};if(r instanceof t)return r.details?(r.details=s(r.details),r.details.url=o.url,r.details.requestOptions=o.requestOptions):r.details=u,r;if(r){const e=n&&(()=>Array.from(n.headers)),t=n&&(e=>n.headers.get(e)),s=n?.status,o=r.message;o&&(l=o),e&&t&&(u.getAllHeaders=e,u.getHeader=t),u.httpStatus=(null!=r.httpCode?r.httpCode:r.code)||s||0,u.subCode=r.subcode,u.messageCode=r.messageCode,"string"==typeof r.details?(u.messages=[r.details],l??=r.details):(u.messages=r.details,l??=u.messages?.[0]),u.raw=M in r?r[M]:r}return l??="Error",i(r)?a():new t(e,l,u)}async function z(){has("host-webworker")&&!A&&(A=await import("./core/workers/request.js"))}async function Q(){r||await import("./identity/IdentityManager.js")}async function W(e){const t=e.params.url,s=e.params.requestOptions,o=e.controller.signal,n=s.body;let a=null,i=null;if(R&&"HTMLFormElement"in globalThis&&(n instanceof FormData?a=n:n instanceof HTMLFormElement&&(a=new FormData(n))),"string"==typeof n&&(i=n),e.fetchOptions={cache:s.cacheBust?"no-cache":"default",credentials:"same-origin",headers:s.headers||{},method:"head"===s.method?"HEAD":"GET",mode:"cors",priority:H.priority,redirect:"follow",signal:o},(a||i)&&(e.fetchOptions.body=a||i),"anonymous"===s.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||s.query?.token||a?.get("token")),!e.hasToken){const r=C(t);r&&(s.query??={},s.query.token=r,e.hasToken=!0)}if(e.useIdentity&&!e.hasToken&&!e.credential&&!e.credentialToken&&!G(t)&&!l(o)){let n;"immediate"===s.authMode?(await Q(),n=await r.getCredential(t,{signal:o})):"no-prompt"===s.authMode?(await Q(),n=await r.getCredential(t,{prompt:!1,signal:o}).catch((()=>{}))):r&&(n=r.findCredential(t)),n&&(e.credential=n,e.credentialToken=n.token,e.useSSL=!!n.ssl)}}function G(e){return F.some((r=>r.test(e)))}async function J(e){let t=e.params.url;const s=e.params.requestOptions,o=e.fetchOptions??{},n=d(t)||c(t),i=s.responseType||"json",l=n?0:null!=s.timeout?s.timeout:H.timeout;let u=!1;if(!n){e.useSSL&&(t=y(t));let n={...s.query};e.credentialToken&&(n.token=e.credentialToken);let a=w(n);has("esri-url-encodes-apostrophe")&&(a=a.replaceAll("'","%27"));const i=t.length+1+a.length;let l;u="delete"===s.method||"post"===s.method||"put"===s.method||!!s.body||i>H.maxUrlLength;const c=s.useProxy||!!g(t);if(c){const e=q(t);l=e.path,!u&&l.length+1+i>H.maxUrlLength&&(u=!0),e.query&&(n={...e.query,...n})}if("HEAD"===o.method&&(u||c)){if(u){if(i>H.maxUrlLength)throw $("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw $("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(c)throw $("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(u?(o.method="delete"===s.method?"DELETE":"put"===s.method?"PUT":"POST",s.body?t=b(t,n):(o.body=w(n),o.headers||(o.headers={}),o.headers["Content-Type"]="application/x-www-form-urlencoded")):t=b(t,n),c&&(e.useProxy=!0,t=`${l}?${t}`),n.token&&R&&o.body instanceof FormData&&!v(t)&&o.body.set("token",n.token),s.hasOwnProperty("withCredentials"))e.withCredentials=s.withCredentials;else if(!S(t,k()))if(h(t))e.withCredentials=!0;else if(r){const s=r.findServerInfo(t);s?.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(o.credentials="include",L(t)&&await E(u?b(t,n):t))}let p,m,O=0,C=!1;l>0&&(O=setTimeout((()=>{C=!0,e.controller.abort()}),l));try{if("native-request-init"===s.responseType)m=o,m.url=t,s.signal?m.signal=s.signal:delete m.signal;else if("image"!==s.responseType||"default"!==o.cache||"GET"!==o.method||u||X(s.headers)||!n&&!e.useProxy&&H.proxyUrl&&!B(t)){if(P._beforeFetch&&await P._beforeFetch(t,o),p=await fetch(t,o),P._afterFetch&&await P._afterFetch(p),e.useProxy||N(t),"native"===s.responseType)m=p;else if("HEAD"!==o.method)if(p.ok){switch(i){case"array-buffer":m=await p.arrayBuffer();break;case"blob":case"image":m=await p.blob();break;default:m=await p.text()}if(O&&(clearTimeout(O),O=0),"json"===i||"xml"===i||"document"===i)if(m)switch(i){case"json":m=JSON.parse(m);break;case"xml":m=V(m,"application/xml");break;case"document":m=V(m,"text/html")}else m=null;if(m){if("array-buffer"===i||"blob"===i){const e=p.headers.get("Content-Type");if(e&&/application\/json|text\/plain/i.test(e)&&m["blob"===i?"size":"byteLength"]<=750)try{const e=await new Response(m).json();e.error&&(m=e)}catch{}}"image"===i&&m instanceof Blob&&(m=await te(URL.createObjectURL(m),e,!0))}}else{m=await p.text();try{m=JSON.parse(m)}catch{}}}else m=await te(t,e)}catch(x){if("AbortError"===x.name){if(C)throw U();throw a("Request canceled")}if(!(!p&&x instanceof TypeError&&H.proxyUrl)||s.body||"delete"===s.method||"head"===s.method||"post"===s.method||"put"===s.method||e.useProxy||B(t))throw x;e.redoRequest=!0,T({proxyUrl:H.proxyUrl,urlPrefix:f(t)??""})}finally{O&&clearTimeout(O)}return[p,m]}async function K(e,r){if(null!=e.responseData)return e.responseData;if(e.headers&&(r.requestOptions.headers={...r.requestOptions.headers,...e.headers}),e.query&&(r.requestOptions.query={...r.requestOptions.query,...e.query}),e.before){let o,n;try{n=await e.before(r)}catch(s){o=$("request:interceptor",s,r)}if((n instanceof Error||n instanceof t)&&(o=$("request:interceptor",n,r)),o)throw e.error&&e.error(o),o;return n}}function X(e){if(e)for(const r of Object.getOwnPropertyNames(e))if(e[r])return!0;return!1}function V(e,r){let t;try{t=(new DOMParser).parseFromString(e,r)}catch{}if(!t||t.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return t}P._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"],P._beforeFetch=void 0,P._afterFetch=void 0;const Y=new Map;async function Z(e){const r=se(e.params.url);if(!r)return ee(e);const{QueueProcessor:t}=await import("./core/QueueProcessor.js"),s=o(Y,r.origin,(()=>{const e=r.isHosted?has("request-queue-concurrency-hosted"):has("request-queue-concurrency-non-hosted");return new t({concurrency:e,process:e=>{if(l(e.params.requestOptions))throw $("",a("Request canceled"),e.params);return ee(e)}})}));return s.push(e)}async function ee(e){let t,s;await W(e);try{do{[t,s]=await J(e)}while(!await re(e,t,s))}catch(a){const r=$("request:server",a,e.params,t);throw r.details.ssl=e.useSSL,e.interceptor?.error&&e.interceptor.error(r),r}const o=e.params.url;if(s&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(o)){if(!e.hasToken&&!e.credentialToken&&s.user?.username&&!h(o)){const e=f(o,!0);e&&H.trustedServers.push(e)}Array.isArray(s.authorizedCrossOriginNoCorsDomains)&&x(s.authorizedCrossOriginNoCorsDomains)}const n=e.credential;if(n&&r){const e=r.findServerInfo(n.server);let t=e?.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=r.findCredential(t,n.userId);e&&-1===r._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:s,getAllHeaders:t?()=>Array.from(t.headers):I,getHeader:t?e=>t.headers.get(e):I,httpStatus:t?.status??200,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}async function re(e,t,s){if(e.redoRequest)return e.redoRequest=!1,!1;const o=e.params.requestOptions;if(!t||"native"===o.responseType||"native-request-init"===o.responseType)return!0;let n,a;if(s&&(s.error&&"object"==typeof s.error?n=s.error:"error"===s.status&&Array.isArray(s.messages)&&(n={...s},n[M]=s,n.details=s.messages)),!n&&!t.ok)throw n=new Error(`Unable to load ${t.url} status: ${t.status}`),n[M]=s,n;let i,l=null;n&&(a=Number(n.code),l=n.hasOwnProperty("subcode")?Number(n.subcode):null,i=n.messageCode,i=i?.toUpperCase());const u=o.authMode;if(403===a&&(4===l||n.message?.toLowerCase().includes("ssl")&&!n.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===a)&&void 0!==a&&_.has(a)&&!G(e.params.url)&&(403!==a||(!i||!D.has(i))&&(null==l||2===l&&e.credentialToken))){await Q();try{const t=await r.getCredential(e.params.url,{error:$("request:server",n,e.params),credential:e.credential,prompt:"no-prompt"!==u,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(c){if("no-prompt"===u)return e.credential=void 0,e.credentialToken=void 0,!1;n=c}}if(n)throw n;return!0}function te(e,r,t=!1){const s=r.controller.signal,o=new Image;return r.withCredentials?o.crossOrigin="use-credentials":o.crossOrigin="anonymous",o.alt="",o.fetchPriority=H.priority,o.src=e,j(o,e,t,s)}function se(e){let r,t;return"string"==typeof e?(r=f(e,!0),t=O(e)):(r=e.origin,t=O(e.toString())),null==r?null:{origin:r,isHosted:t}}export{P as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as o}from"../../chunks/tslib.es6.js";import t from"../../core/Accessor.js";import{property as e}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import"../../core/RandomLCG.js";import{subclass as s}from"../../core/accessorSupport/decorators/subclass.js";let r=class extends t{constructor(o){super(o),this.entityAddResultsCount=0,this.relationshipAddResultsCount=0,this.decoderError=null,this.entityAddResults=[],this.relationshipAddResults=[],this.updatedKnowledgeGraph=null}};o([e()],r.prototype,"entityAddResultsCount",void 0),o([e()],r.prototype,"relationshipAddResultsCount",void 0),o([e()],r.prototype,"decoderError",void 0),o([e()],r.prototype,"entityAddResults",void 0),o([e()],r.prototype,"relationshipAddResults",void 0),o([e()],r.prototype,"updatedKnowledgeGraph",void 0),r=o([s("esri.rest.knowledgeGraph.GraphAddNamedTypesResult")],r);export{r as default};
5
+ import{_ as o}from"../../chunks/tslib.es6.js";import t from"../../core/Accessor.js";import{property as s}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import"../../core/RandomLCG.js";import{subclass as e}from"../../core/accessorSupport/decorators/subclass.js";let r=class extends t{constructor(o){super(o),this.entityAddResultsCount=0,this.relationshipAddResultsCount=0,this.decoderError=null,this.entityAddResults=[],this.relationshipAddResults=[],this.updatedKnowledgeGraph=null}};o([s()],r.prototype,"entityAddResultsCount",void 0),o([s()],r.prototype,"relationshipAddResultsCount",void 0),o([s()],r.prototype,"decoderError",void 0),o([s()],r.prototype,"entityAddResults",void 0),o([s()],r.prototype,"relationshipAddResults",void 0),o([s()],r.prototype,"updatedKnowledgeGraph",void 0),r=o([e("esri.rest.knowledgeGraph.GraphAddNamedTypesResult")],r);const d=r;export{d as default};
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
+ */
5
+ import{_ as r}from"../../chunks/tslib.es6.js";import o from"../../core/Accessor.js";import{property as e}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import"../../core/RandomLCG.js";import{subclass as s}from"../../core/accessorSupport/decorators/subclass.js";let t=class extends o{constructor(r){super(r),this.updatedKnowledgeGraph=null}};r([e()],t.prototype,"decoderError",void 0),r([e()],t.prototype,"updatedKnowledgeGraph",void 0),t=r([s("esri.rest.knowledgeGraph.GraphAddPropertyResult")],t);const p=t;export{p as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as r}from"../../chunks/tslib.es6.js";import o from"../../core/Accessor.js";import{property as s}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import"../../core/RandomLCG.js";import{subclass as t}from"../../core/accessorSupport/decorators/subclass.js";let e=class extends o{constructor(r){super(r),this.hasError=!1,this.error=null,this.editResults=[]}};r([s()],e.prototype,"hasError",void 0),r([s()],e.prototype,"error",void 0),r([s()],e.prototype,"editResults",void 0),e=r([t("esri.rest.knowledgeGraph.GraphApplyEditsResult")],e);export{e as default};
5
+ import{_ as r}from"../../chunks/tslib.es6.js";import o from"../../core/Accessor.js";import{property as s}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import"../../core/RandomLCG.js";import{subclass as t}from"../../core/accessorSupport/decorators/subclass.js";let e=class extends o{constructor(r){super(r),this.hasError=!1,this.error=null,this.editResults=[]}};r([s()],e.prototype,"hasError",void 0),r([s()],e.prototype,"error",void 0),r([s()],e.prototype,"editResults",void 0),e=r([t("esri.rest.knowledgeGraph.GraphApplyEditsResult")],e);const p=e;export{p as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as r}from"../../chunks/tslib.es6.js";import o from"../../core/Accessor.js";import{property as e}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import"../../core/RandomLCG.js";import{subclass as s}from"../../core/accessorSupport/decorators/subclass.js";let t=class extends o{constructor(r){super(r),this.decoderError=null,this.updatedKnowledgeGraph=null}};r([e()],t.prototype,"decoderError",void 0),r([e()],t.prototype,"updatedKnowledgeGraph",void 0),t=r([s("esri.rest.knowledgeGraph.GraphDeleteNamedTypeResult")],t);export{t as default};
5
+ import{_ as r}from"../../chunks/tslib.es6.js";import o from"../../core/Accessor.js";import{property as e}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import"../../core/RandomLCG.js";import{subclass as s}from"../../core/accessorSupport/decorators/subclass.js";let t=class extends o{constructor(r){super(r),this.decoderError=null,this.updatedKnowledgeGraph=null}};r([e()],t.prototype,"decoderError",void 0),r([e()],t.prototype,"updatedKnowledgeGraph",void 0),t=r([s("esri.rest.knowledgeGraph.GraphDeleteNamedTypeResult")],t);const p=t;export{p as default};
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
+ */
5
+ import{_ as r}from"../../chunks/tslib.es6.js";import o from"../../core/Accessor.js";import{property as e}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import"../../core/RandomLCG.js";import{subclass as s}from"../../core/accessorSupport/decorators/subclass.js";let t=class extends o{constructor(r){super(r),this.updatedKnowledgeGraph=null}};r([e()],t.prototype,"decoderError",void 0),r([e()],t.prototype,"updatedKnowledgeGraph",void 0),t=r([s("esri.rest.knowledgeGraph.GraphDeletePropertyResult")],t);const p=t;export{p as default};
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
+ */
5
+ import{_ as r}from"../../chunks/tslib.es6.js";import o from"../../core/Accessor.js";import{property as e}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import"../../core/RandomLCG.js";import{subclass as s}from"../../core/accessorSupport/decorators/subclass.js";let t=class extends o{constructor(r){super(r),this.updatedKnowledgeGraph=null}};r([e()],t.prototype,"decoderError",void 0),r([e()],t.prototype,"updatedKnowledgeGraph",void 0),t=r([s("esri.rest.knowledgeGraph.GraphUpdateNamedTypesResult")],t);const p=t;export{p as default};
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
+ */
5
+ import{_ as r}from"../../chunks/tslib.es6.js";import o from"../../core/Accessor.js";import{property as e}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import"../../core/RandomLCG.js";import{subclass as s}from"../../core/accessorSupport/decorators/subclass.js";let t=class extends o{constructor(r){super(r),this.updatedKnowledgeGraph=null}};r([e()],t.prototype,"decoderError",void 0),r([e()],t.prototype,"updatedKnowledgeGraph",void 0),t=r([s("esri.rest.knowledgeGraph.GraphUpdatePropertyResult")],t);const p=t;export{p as default};