@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
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3367],{2272:(e,t,n)=>{n.d(t,{Dl:()=>u,gf:()=>d,jV:()=>l,lF:()=>c});var r=n(92602),i=n(70333),s=n(4718),o=n(84952),a=n(926);function l(e,t){return t?{...t,query:{...e??{},...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,o.An)(e):(0,s.o8)(e)}function c(e,t,n){const r={};for(const i in e){if("declaredClass"===i)continue;const s=e[i];if(null!=s&&"function"!=typeof s)if(Array.isArray(s))r[i]=s.map((e=>c(e)));else if("object"==typeof s)if(s.toJSON){const e=s.toJSON(n?.[i]);r[i]=t?e:JSON.stringify(e)}else r[i]=t?s:JSON.stringify(s);else r[i]=s}return r}async function d(e,t,s){const o=function(e,t){return e?(0,a.Jn)(e,t)?t||r.A.apiKey:i.id?.findCredential(e)?.token:null}(e,t);if(o)return o;!i.id&&r.A.request.useIdentity&&await Promise.all([n.e(7292),n.e(3747)]).then(n.bind(n,73747));const l=await(i.id?.getCredential(e,s));return l?.token}},3330:(e,t,n)=>{n.d(t,{GB:()=>i,Qo:()=>o,Y4:()=>s});var r=n(96285);class i{static{this.instance=new r.oh("Etc/UTC")}}function s(e){return e instanceof r.bo?e===i.instance:"unknown"===e?.toString().toLowerCase()}function o(e){return s(e)?i.instance:e}},3367:(e,t,n)=>{n.d(t,{A:()=>N,B:()=>b,P:()=>y,g:()=>T,r:()=>w});var r=n(48938),i=n(66395),s=n(85935),o=n(78878),a=n(49186),l=n(53966),u=n(91869),c=n(20655),d=n(45475),f=n(67090),m=n(62791),h=n(14942),p=n(54218);class y{constructor(e,t){this.portal=e,this._debugLog=t}async translate(e){this.portal.loaded||await this.portal.load();const t=this.portal.helperServices?.aiUtilityServices;if(null==t)return{success:!1};const n=t.url+t.translateUtility;try{return{success:!0,results:(await(0,d.T)(n,e,{authMode:"no-prompt"})).map((e=>e.toJSON()))}}catch(e){return null!=this._debugLog&&(e instanceof Error||e instanceof a.A)&&this._debugLog(`TranslateText error: ${e.message}`),l.A.getLogger("esri.arcade.functions.aiServices").error(e),{success:!1}}}}class g{constructor(e,t,n){this._parameters=e,this._maxTotalContentSize=t,this._maxContentsLength=n,this._requests=[],this._normalizedContents=new Map,this._contentsTotalSize=0}tryAdd(e){const t=new Set(e.filter((e=>!this._normalizedContents.has(e.text))).map((e=>e.text)));if(this._requests.length+t.size>this._maxContentsLength)return null;let n=0;for(const e of t)n+=e.length;if((n+this._contentsTotalSize)*(this._parameters.to.length??1)>this._maxTotalContentSize)return null;const r=this._requests.length;for(const{key:t,text:n}of e)(0,u.tE)(this._normalizedContents,n,(()=>[])).push({batchIdx:r,key:t});return this._requests.push(e),this._contentsTotalSize+=n,r}async send(e){const t=[],n=[];let r=0;for(const[e,i]of this._normalizedContents)t.push(new f.A({key:String(r++),text:e})),n.push(i);const i=new m.A(this._parameters);i.contents=t;const s=await e.translate(i);if(!s.success)return Array.from(this._requests,(()=>s));const o=Array.from(this._requests,(()=>({success:!0,results:[]})));for(const e of s.results){const t=Number(e.key);for(const r of n[t])o[r.batchIdx].results.push({...e,key:r.key})}return o}}function T(e){const t=[...new Set(e.to)].sort(),n=e.from??null,r=e.portalUrl,i=e.translator,s=e.apiKey??null;return JSON.stringify([t,n,r,i,s])}async function S(e,t,n){try{return(await e.yieldFor(n))[t]}catch{return{success:!1}}}class b{constructor(e,t,{maxTotalContentSize:n=5e4,maxContentsLength:r=1e3}={}){this._executor=e,this._service=t,this._openBatches=new Map,this._maxTotalContentSize=n,this._maxContentsLength=r}create(e){return{translate:async t=>{const n=T(t),{contents:r,to:i,from:s,translator:o,portalUrl:a,apiKey:l}=t;if(null==i)return{success:!1};if(null==r||r.every((e=>0===e.text.length)))return{success:!1};const u=this._openBatches.get(n);if(null!=u){const t=u.data.tryAdd(r);if(null!=t)return await S(e,t,u);u.send()}const c=new g({to:i,from:s,translator:o,portalUrl:a,apiKey:l},this._maxTotalContentSize,this._maxContentsLength),d=c.tryAdd(r);if(null!=d){const t=this._executor.openBatch(c,{open:e=>{this._openBatches.set(n,e)},execute:e=>e.send(this._service),close:e=>{this._openBatches.get(n)===e&&this._openBatches.delete(n)}});return await S(e,d,t)}return await this._service.translate(t)}}}}function w(e){"async"===e.mode&&(e.functions[(0,r.X)("TranslateText")]=function(t,n){return e.standardFunctionAsync(t,n,(async(e,t,n)=>{if((0,o.D)(n,2,3,e,t),!(0,p.Kg)(n[0])&&!(0,p.cy)(n[0])&&!(0,o.m)(n[0]))throw new s.D$(e,s.TX.InvalidParameter,t);const r=(0,o.M)(n[0]);if(!(0,p.Kg)(n[1])&&!(0,p.cy)(n[1])&&!(0,o.m)(n[1]))throw new s.D$(e,s.TX.InvalidParameter,t);const a=(0,o.M)(n[1]);let l=null;if(n.length>=3){if(!(0,p.Kg)(n[2]))throw new s.D$(e,s.TX.InvalidParameter,t);l=n[2]}const u=r.map(((e,t)=>new f.A({key:String(t),text:e}))),d=e.services?.portal??c.A.getDefault(),g=new m.A({to:a,contents:u,from:l,portalUrl:d.url}),S=new Map;let b=null;if(null!=e.lrucache){const t=e.lrucache;b??=T(g),g.contents=g.contents?.filter((e=>{const n=t.getCachedTranslation(b,e.text);return null==n||(S.set(e.key,{...n,key:e.key,text:e.text}),!1)}))}if(g.contents?.length){const t=e.services?.translation??new y(d,e.console),n=await t.translate(g);if(!n.success)return new i.A({success:!1});for(const t of n.results){const n=g.contents?.find((e=>e.key===t.key))?.text;if(null==n)throw new s.D$(null,s.TX.NeverReach,null);S.set(t.key,t),null!=e.lrucache&&(b??=T(g),e.lrucache.setCachedTranslation(b,n,{detectedLanguage:t.detectedLanguage,translation:t.translation}))}}const w=Array.from(u,(t=>{const n=h.A.fromJSON(S.get(t.key));if(null==n)throw new s.D$(null,s.TX.NeverReach,null);return n.text=t.text,i.A.convertJsonToArcade(n.toJSON(),e.timeZone??"system",!0)}));return new i.A({success:!0,results:w})}))})}const N=Object.freeze(Object.defineProperty({__proto__:null,BatchTranslationServiceFactory:b,PortalTranslationService:y,getTranslateParametersKey:T,registerFunctions:w},Symbol.toStringTag,{value:"Module"}))},6800:(e,t,n)=>{n.d(t,{G:()=>l,y:()=>o});var r=n(99719),i=n(78878),s=n(54218);function o(e){a=e}let a;function l(e){return null===e?null:(0,i.g)(e)?e.clone():(0,i.d)(e)?e:(0,i.l)(e)?e.clone():(0,i.m)(e)?e.toArray().map((e=>l(e))):(0,s.cy)(e)?e.map((e=>l(e))):(0,i.n)(e)?a.createFromArcadeFeature(e):(0,i.o)(e)||(0,i.p)(e)?e:(0,i.q)(e)||"esri.arcade.Attachment"===e?.declaredClass?e.deepClone():("esri.arcade.Portal"===e?.declaredClass||(0,i.r)(e)||e instanceof r.x||(0,i.i)(e),e)}},7335:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(93818),i=n(84939);class s extends r.A{constructor(e,t,n,r,i){super(e),this._lazyPath=[],this._hasZ=!1,this._hasM=!1,this._hasZ=n,this._hasM=r,this._spRef=t,this._cacheId=i}get(e){if(void 0===this._lazyPath[e]){const t=this._elements[e];if(void 0===t)return;this._lazyPath[e]=new i.A(t,this._spRef,this._hasZ,this._hasM,this._cacheId,e)}return this._lazyPath[e]}equalityTest(e){return e===this||null!==e&&e instanceof s!=0&&e.getUniqueHash()===this.getUniqueHash()}getUniqueHash(){return this._cacheId.toString()}}},14607:(e,t,n)=>{n.d(t,{B:()=>u,GP:()=>a,qg:()=>c});var r=n(799),i=n(73444);const s={ar:[".",","],bg:[","," "],bs:[",","."],ca:[",","."],cs:[","," "],da:[",","."],de:[",","."],"de-ch":[".","’"],el:[",","."],en:[".",","],"en-au":[".",","],es:[",","."],"es-mx":[".",","],et:[","," "],fi:[","," "],fr:[","," "],"fr-ch":[","," "],he:[".",","],hi:[".",",","#,##,##0.###"],hr:[",","."],hu:[","," "],id:[",","."],it:[",","."],"it-ch":[".","’"],ja:[".",","],ko:[".",","],lt:[","," "],lv:[","," "],mk:[",","."],nb:[","," "],nl:[",","."],no:[","," "],pl:[","," "],pt:[",","."],"pt-pt":[","," "],ro:[",","."],ru:[","," "],sk:[","," "],sl:[",","."],sr:[",","."],sv:[","," "],th:[".",","],tr:[",","."],uk:[","," "],vi:[",","."],zh:[".",","]};function o(e=(0,i.JK)()){let t=(e=e.toLowerCase())in s;if(!t){const n=e.split("-");n.length>1&&n[0]in s&&(e=n[0],t=!0),t||(e="en")}const[n,r,o="#,##0.###"]=s[e];return{decimal:n,group:r,pattern:o}}function a(e,t){const n=o((t={...t}).locale);t.customs=n;const r=t.pattern||n.pattern;return isNaN(e)||Math.abs(e)===1/0?null:function(e,t,n){const r=(n=n||{}).customs.group,i=n.customs.decimal,s=t.split(";"),o=s[0];if((t=s[e<0?1:0]||"-"+o).includes("%"))e*=100;else if(t.includes("‰"))e*=1e3;else{if(t.includes("¤"))throw new Error("currency notation not supported");if(t.includes("E"))throw new Error("exponential notation not supported")}const a=l,u=o.match(a);if(!u)throw new Error("unable to find a number expression in pattern: "+t);return!1===n.fractional&&(n.places=0),t.replace(a,function(e,t,n){!0===(n=n||{}).places&&(n.places=0),n.places===1/0&&(n.places=6);const r=t.split("."),i="string"==typeof n.places&&n.places.indexOf(",");let s=n.places;i?s=n.places.slice(i+1):+s>=0||(s=(r[1]||[]).length),n.round<0||(e=Number(e.toFixed(Number(s))));const o=String(Math.abs(e)).split("."),a=o[1]||"";if(r[1]||n.places){i&&(n.places=n.places.slice(0,Math.max(0,i)));const e=void 0!==n.places?n.places:r[1]&&r[1].lastIndexOf("0")+1;+e>a.length&&(o[1]=a.padEnd(Number(e),"0")),+s<a.length&&(o[1]=a.slice(0,Math.max(0,Number(s))))}else o[1]&&o.pop();const l=r[0].replace(",","");let u=l.indexOf("0");-1!==u&&(u=l.length-u,u>o[0].length&&(o[0]=o[0].padStart(u,"0")),l.includes("#")||(o[0]=o[0].slice(-u)));let c,d,f=r[0].lastIndexOf(",");if(-1!==f){c=r[0].length-f-1;const e=r[0].slice(0,f);f=e.lastIndexOf(","),-1!==f&&(d=e.length-f-1)}const m=[];for(let e=o[0];e;){const t=e.length-c;m.push(t>0?e.slice(Math.max(0,t)):e),e=t>0?e.slice(0,t):"",d&&(c=d,d=void 0)}return o[0]=m.reverse().join(n.group||","),o.join(n.decimal||".")}(e,u[0],{decimal:i,group:r,places:n.places,round:n.round}))}(e,r,t)}const l=/[#0,]*[#0](?:\.0*#*)?/;function u(e){const t=o((e=e||{}).locale),n=e.pattern||t.pattern,i=t.group,s=t.decimal;let a=1;if(n.includes("%"))a/=100;else if(n.includes("‰"))a/=1e3;else if(n.includes("¤"))throw new Error("currency notation not supported");const u=n.split(";");1===u.length&&u.push("-"+u[0]);const c=f(u,(t=>(t="(?:"+(0,r.Cj)(t,".")+")").replace(l,(t=>{const n={signed:!1,separator:e.strict?i:[i,""],fractional:e.fractional,decimal:s,exponent:!1},r=t.split(".");let o=e.places;1===r.length&&1!==a&&(r[1]="###"),1===r.length||0===o?n.fractional=!1:(void 0===o&&(o=e.pattern?r[1].lastIndexOf("0")+1:1/0),o&&null==e.fractional&&(n.fractional=!0),!e.places&&+o<r[1].length&&(o+=","+r[1].length),n.places=o);const l=r[0].split(",");return l.length>1&&(n.groupSize=l.pop().length,l.length>1&&(n.groupSize2=l.pop().length)),"("+function(e){"places"in(e=e||{})||(e.places=1/0),"string"!=typeof e.decimal&&(e.decimal="."),"fractional"in e&&!String(e.places).startsWith("0")||(e.fractional=[!0,!1]),"exponent"in e||(e.exponent=[!0,!1]),"eSigned"in e||(e.eSigned=[!0,!1]);const t=d(e),n=f(e.fractional,(t=>{let n="";return t&&0!==e.places&&(n="\\"+e.decimal,e.places===1/0?n="(?:"+n+"\\d+)?":n+="\\d{"+e.places+"}"),n}),!0);let r=t+n;return n&&(r="(?:(?:"+r+")|(?:"+n+"))"),r+f(e.exponent,(t=>t?"([eE]"+d({signed:e.eSigned})+")":""))}(n)+")"}))),!0);return{regexp:c.replaceAll(/[\xa0 ]/g,"[\\s\\xa0]"),group:i,decimal:s,factor:a}}function c(e,t){const n=u(t),r=new RegExp("^"+n.regexp+"$").exec(e);if(!r)return NaN;let i=r[1];if(!r[1]){if(!r[2])return NaN;i=r[2],n.factor*=-1}return i=i.replaceAll(new RegExp("["+n.group+"\\s\\xa0]","g"),"").replace(n.decimal,"."),Number(i)*n.factor}function d(e){return"signed"in(e=e||{})||(e.signed=[!0,!1]),"separator"in e?"groupSize"in e||(e.groupSize=3):e.separator="",f(e.signed,(e=>e?"[-+]":""),!0)+f(e.separator,(t=>{if(!t)return"(?:\\d+)";" "===(t=(0,r.Cj)(t))?t="\\s":" "===t&&(t="\\s\\xa0");const n=e.groupSize,i=e.groupSize2;if(i){const e="(?:0|[1-9]\\d{0,"+(i-1)+"}(?:["+t+"]\\d{"+i+"})*["+t+"]\\d{"+n+"})";return n-i>0?"(?:"+e+"|(?:0|[1-9]\\d{0,"+(n-1)+"}))":e}return"(?:0|[1-9]\\d{0,"+(n-1)+"}(?:["+t+"]\\d{"+n+"})*)"}),!0)}const f=(e,t,n)=>{if(!Array.isArray(e))return t(e);const r=[];for(let n=0;n<e.length;n++)r.push(t(e[n]));return m(r.join("|"),Boolean(n))},m=(e,t)=>"("+(t?"?:":"")+e+")"},14942:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(90237),i=n(25482),s=n(10107),o=n(40608);let a=class extends i.A{constructor(e){super(e),this.text=null,this.detectedLanguage="en",this.detectedLanguageScore=-1}};(0,r._)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"key",void 0),(0,r._)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"text",void 0),(0,r._)([(0,s.MZ)({type:String,json:{read:{source:"detectedLanguage.language"},write:{target:"detectedLanguage.language"}}})],a.prototype,"detectedLanguage",void 0),(0,r._)([(0,s.MZ)({type:Number,json:{read:{source:"detectedLanguage.score"},write:{target:"detectedLanguage.score"}}})],a.prototype,"detectedLanguageScore",void 0),(0,r._)([(0,s.MZ)({type:Object,json:{write:!0}})],a.prototype,"translation",void 0),a=(0,r._)([(0,o.$)("esri.rest.support.TranslateResult")],a)},15032:(e,t,n)=>{n.d(t,{k:()=>l});var r=n(78502),i=n(73444),s=n(96285);function o(e){if(!e)return"";const t=/(a|A|hh?|HH?|mm?|ss?|SSS|S|.)/g;let n="";for(const r of e.match(t)||[])switch(r){case"SSS":case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":n+=r;break;case"A":case"a":n+="a";break;default:n+=`'${r}'`}return n}const a="esri.core.sql.timeonly";class l{constructor(e,t,n,r){this._hour=e,this._minute=t,this._second=n,this._millisecond=r,this.declaredRootClass=a}static isTimeOnly(e){return"object"==typeof e&&null!=e&&"declaredRootClass"in e&&e.declaredRootClass===a}get hour(){return this._hour}get minute(){return this._minute}get second(){return this._second}get millisecond(){return this._millisecond}equals(e){return l.isTimeOnly(e)&&e.hour===this.hour&&e.minute===this.minute&&e.second===this.second&&e.millisecond===this.millisecond}clone(){return new l(this.hour,this.minute,this.second,this.millisecond)}isValid(){return(0,r.Fq)(this.hour)&&(0,r.Fq)(this.minute)&&(0,r.Fq)(this.second)&&(0,r.Fq)(this.millisecond)&&this.hour>=0&&this.hour<24&&this.minute>=0&&this.minute<60&&this.second>=0&&this.second<60&&this.millisecond>=0&&this.millisecond<1e3}toString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}`+(this.millisecond>0?"."+this.millisecond.toString().padStart(3,"0"):"")}toSQLValue(){return this.toString()}toSQLWithKeyword(){return`time '${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}${this.millisecond>0?"."+this.millisecond.toString().padStart(3,"0"):""}'`}toStorageString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}`}toFormat(e=null){return null===e||""===e?this.toString():(e=o(e))?s.c9.local(1970,1,1,this._hour,this._minute,this._second,this._millisecond).toFormat(e,{locale:(0,i.JK)(),numberingSystem:"latn"}):""}toNumber(){return this.millisecond+1e3*this.second+1e3*this.minute*60+60*this.hour*60*1e3}static fromParts(e,t,n,r){const i=new l(e,t,n,r);return i.isValid()?i:null}static fromReader(e){if(!e)return null;const t=e.split(":");return 3!==t.length?null:new l(parseInt(t[0],10),parseInt(t[1],10),parseInt(t[2],10),0)}static fromMilliseconds(e){if(e>864e5||e<0)return null;const t=Math.floor(e/1e3%60),n=Math.floor(e/6e4%60),r=Math.floor(e/36e5%24),i=Math.floor(e%1e3);return new l(r,n,t,i)}static fromDateJS(e){return new l(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}static fromDateTime(e){return new l(e.hour,e.minute,e.second,e.millisecond)}static fromSqlTimeStampOffset(e){return this.fromDateTime(e.toDateTime())}static fromString(e,t=null){if(""===e)return null;if(null===e)return null;const n=[];t?(t=o(t))&&n.push(t):null!==t&&""!==t||(n.push("HH:mm:ss"),n.push("HH:mm:ss.SSS"),n.push("hh:mm:ss a"),n.push("hh:mm:ss.SSS a"),n.push("HH:mm"),n.push("hh:mm a"),n.push("H:mm"),n.push("h:mm a"),n.push("H:mm:ss"),n.push("h:mm:ss a"),n.push("H:mm:ss.SSS"),n.push("h:mm:ss.SSS a"));for(const t of n){const n=s.c9.fromFormat(e,t);if(n.isValid)return new l(n.hour,n.minute,n.second,n.millisecond)}return null}plus(e,t){switch(e){case"days":case"years":case"months":return this.clone();case"hours":case"minutes":case"seconds":case"milliseconds":return l.fromDateTime(this.toUTCDateTime().plus({[e]:t}))}return null}toUTCDateTime(){return s.c9.utc(1970,1,1,this.hour,this.minute,this.second,this.millisecond)}difference(e,t){switch(t.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(e.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return"M"===t?this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(e.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(e.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(e.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(e.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(e.toUTCDateTime(),"years").years}}}},20437:(e,t,n)=>{n.d(t,{A:()=>p});var r,i=n(90237),s=n(66552),o=n(25482),a=n(10107),l=n(56507),u=(n(44208),n(87811),n(93223)),c=n(36005),d=n(40608),f=n(80451),m=n(98453);const h=new s.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let p=class extends o.A{static{r=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?.value??null}readValueType(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?h.fromJSON(n.fieldValueType):null}clone(){return new r({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,i._)([(0,a.MZ)({type:String,json:{write:!0}})],p.prototype,"alias",void 0),(0,i._)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],p.prototype,"defaultValue",void 0),(0,i._)([(0,a.MZ)()],p.prototype,"description",void 0),(0,i._)([(0,c.w)("description")],p.prototype,"readDescription",null),(0,i._)([(0,a.MZ)({types:f.gK,json:{read:{reader:f.rS},write:!0}})],p.prototype,"domain",void 0),(0,i._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],p.prototype,"editable",void 0),(0,i._)([(0,a.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],p.prototype,"length",void 0),(0,i._)([(0,a.MZ)({type:String,json:{write:!0}})],p.prototype,"name",void 0),(0,i._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],p.prototype,"nullable",void 0),(0,i._)([(0,u.e)(m.m)],p.prototype,"type",void 0),(0,i._)([(0,a.MZ)()],p.prototype,"valueType",void 0),(0,i._)([(0,c.w)("valueType",["description"])],p.prototype,"readValueType",null),(0,i._)([(0,a.MZ)({type:Boolean,json:{read:!1}})],p.prototype,"visible",void 0),p=r=(0,i._)([(0,d.$)("esri.layers.support.Field")],p)},24097:(e,t,n)=>{n.d(t,{K:()=>r});const r={type:String,json:{read:{source:"token"},write:{target:"token"}}}},33325:(e,t,n)=>{n.d(t,{$P:()=>m,At:()=>w,J6:()=>i,JB:()=>A,Lk:()=>h,NI:()=>D,Qi:()=>N,eB:()=>_,eg:()=>g,f0:()=>y,gO:()=>T,ik:()=>S,ke:()=>d,nE:()=>f,rX:()=>p,yT:()=>b,zl:()=>r});var r,i,s,o=n(66131),a=n(44729),l=n(15032),u=n(20437),c=n(96285);function d(e){return u.A.fromJSON(e.toJSON())}function f(e){return e.toJSON?e.toJSON():e}function m(e){return e instanceof Date}function h(e){return e instanceof c.c9}function p(e){return e instanceof o.lY}function y(e){return e instanceof a.n}function g(e){return e instanceof l.k}(s=r||(r={}))[s.Standardised=0]="Standardised",s[s.StandardisedNoInterval=1]="StandardisedNoInterval",s[s.SqlServer=2]="SqlServer",s[s.Oracle=3]="Oracle",s[s.Postgres=4]="Postgres",s[s.PGDB=5]="PGDB",s[s.FILEGDB=6]="FILEGDB",s[s.NotEvaluated=7]="NotEvaluated",function(e){e[e.InFeatureSet=0]="InFeatureSet",e[e.NotInFeatureSet=1]="NotInFeatureSet",e[e.Unknown=2]="Unknown"}(i||(i={}));const T=1e3,S={point:"point",polygon:"polygon",polyline:"polyline",multipoint:"multipoint",extent:"extent",esriGeometryPoint:"point",esriGeometryPolygon:"polygon",esriGeometryPolyline:"polyline",esriGeometryMultipoint:"multipoint",esriGeometryEnvelope:"extent",envelope:"extent"},b={point:"esriGeometryPoint",polygon:"esriGeometryPolygon",polyline:"esriGeometryPolyline",multipoint:"esriGeometryMultipoint",extent:"esriGeometryEnvelope",esriGeometryPoint:"esriGeometryPoint",esriGeometryPolygon:"esriGeometryPolygon",esriGeometryPolyline:"esriGeometryPolyline",esriGeometryMultipoint:"esriGeometryMultipoint",esriGeometryEnvelope:"esriGeometryEnvelope",envelope:"esriGeometryEnvelope"},w={"small-integer":"esriFieldTypeSmallInteger",integer:"esriFieldTypeInteger",long:"esriFieldTypeLong",single:"esriFieldTypeSingle",double:"esriFieldTypeDouble",string:"esriFieldTypeString",date:"esriFieldTypeDate","date-only":"esriFieldTypeDateOnly","time-only":"esriFieldTypeTimeOnly","timestamp-offset":"esriFieldTypeTimestampOffset",oid:"esriFieldTypeOID",geometry:"esriFieldTypeGeometry",blob:"esriFieldTypeBlob",raster:"esriFieldTypeRaster",guid:"esriFieldTypeGUID","global-id":"esriFieldTypeGlobalID",xml:"esriFieldTypeXML","big-integer":"esriFieldTypeBigInteger",esriFieldTypeSmallInteger:"esriFieldTypeSmallInteger",esriFieldTypeInteger:"esriFieldTypeInteger",esriFieldTypeLong:"esriFieldTypeLong",esriFieldTypeSingle:"esriFieldTypeSingle",esriFieldTypeDouble:"esriFieldTypeDouble",esriFieldTypeString:"esriFieldTypeString",esriFieldTypeDate:"esriFieldTypeDate",esriFieldTypeDateOnly:"esriFieldTypeDateOnly",esriFieldTypeTimeOnly:"esriFieldTypeTimeOnly",esriFieldTypeTimestampOffset:"esriFieldTypeTimestampOffset",esriFieldTypeOID:"esriFieldTypeOID",esriFieldTypeGeometry:"esriFieldTypeGeometry",esriFieldTypeBlob:"esriFieldTypeBlob",esriFieldTypeRaster:"esriFieldTypeRaster",esriFieldTypeGUID:"esriFieldTypeGUID",esriFieldTypeGlobalID:"esriFieldTypeGlobalID",esriFieldTypeXML:"esriFieldTypeXML",esriFieldTypeBigInteger:"esriFieldTypeBigInteger"};function N(e){return void 0===e?"":e=(e=(e=e.replace(/\/featureserver\/[0-9]*/i,"/FeatureServer")).replace(/\/mapserver\/[0-9]*/i,"/MapServer")).split("?")[0]}function A(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});const n="boolean"==typeof t.cycles&&t.cycles,r=t.cmp&&(i=t.cmp,function(e){return function(t,n){const r={key:t,value:e[t]},s={key:n,value:e[n]};return i(r,s)}});var i;const s=[];return function e(t){if(t?.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0===t)return;if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);let i,o;if(Array.isArray(t)){for(o="[",i=0;i<t.length;i++)i&&(o+=","),o+=e(t[i])||"null";return o+"]"}if(null===t)return"null";if(s.includes(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}const a=s.push(t)-1,l=Object.keys(t).sort(r?.(t));for(o="",i=0;i<l.length;i++){const n=l[i],r=e(t[n]);r&&(o&&(o+=","),o+=JSON.stringify(n)+":"+r)}return s.splice(a,1),"{"+o+"}"}(e)}function D(e){switch(e.type){case"catalog":case"csv":case"feature":case"geojson":case"knowledge-graph-sublayer":case"oriented-imagery":case"subtype-group":case"wfs":return!0;default:return!1}}function _(e){switch(e.type){case"catalog-footprint":case"subtype-sublayer":return!0;default:return D(e)}}},39357:(e,t,n)=>{n.d(t,{H:()=>l});var r,i=n(90237),s=n(25482),o=n(10107),a=(n(44208),n(53966),n(87811),n(40608));let l=r=class extends s.A{constructor(e){super(e),this.name=null,this.code=null}clone(){return new r({name:this.name,code:this.code})}};(0,i._)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],l.prototype,"name",void 0),(0,i._)([(0,o.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],l.prototype,"code",void 0),l=r=(0,i._)([(0,a.$)("esri.layers.support.CodedValue")],l)},44729:(e,t,n)=>{n.d(t,{n:()=>l});var r=n(66131),i=n(73444),s=n(96285);function o(e){e=e.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let t="";const n=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;for(const r of e.match(n)||[])switch(r){case"D":t+="d";break;case"DD":t+="dd";break;case"DDD":t+="o";break;case"d":t+="c";break;case"ddd":t+="ccc";break;case"dddd":t+="cccc";break;case"M":t+="L";break;case"MM":t+="LL";break;case"MMM":t+="LLL";break;case"MMMM":t+="LLLL";break;case"YY":t+="yy";break;case"Y":case"YYYY":t+="yyyy";break;case"Q":t+="q";break;case"X":case"x":t+=r;break;default:r.length>=2&&"["===r.slice(0,1)&&"]"===r.slice(-1)?t+=`'${r.slice(1,-1)}'`:t+=`'${r}'`}return t}const a="esri.core.sql.dateonly";class l{constructor(e,t,n){this._year=e,this._month=t,this._day=n,this.declaredRootClass=a}static isDateOnly(e){return"object"==typeof e&&null!=e&&"declaredRootClass"in e&&e.declaredRootClass===a}get month(){return this._month}get monthJS(){return this._month-1}get year(){return this._year}get day(){return this._day}get isValid(){return this.toDateTime("unknown").isValid}equals(e){return l.isDateOnly(e)&&e.day===this.day&&e.month===this.month&&e.year===this.year}clone(){return new l(this._year,this._month,this._day)}toDateTime(e){return s.c9.fromObject({day:this.day,month:this.month,year:this.year},{zone:(0,r.mT)(e)})}toDateTimeLuxon(e){return s.c9.fromObject({day:this.day,month:this.month,year:this.year},{zone:(0,r.mT)(e)})}toString(){return`${this.year.toString().padStart(4,"0")}-${this.month.toString().padStart(2,"0")}-${this.day.toString().padStart(2,"0")}`}toFormat(e=null,t=!0){if(null===e||""===e)return this.toString();if(t&&(e=o(e)),!e)return"";const n=this.toDateTime("unknown");return r.lY.dateTimeToArcadeDate(n).toFormat(e,{locale:(0,i.JK)(),numberingSystem:"latn"})}toArcadeDate(){const e=this.toDateTime("unknown");return r.lY.dateTimeToArcadeDate(e)}toNumber(){return this.toDateTime("unknown").toMillis()}toJSDate(){return this.toDateTime("unknown").toJSDate()}toStorageFormat(){return this.toFormat("yyyy-LL-dd",!1)}toSQLValue(){return this.toFormat("yyyy-LL-dd",!1)}toSQLWithKeyword(){return"date '"+this.toFormat("yyyy-LL-dd",!1)+"'"}plus(e,t){return l.fromDateTime(this.toUTCDateTime().plus({[e]:t}))}toUTCDateTime(){return s.c9.utc(this.year,this.month,this.day,0,0,0,0)}difference(e,t){switch(t.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(e.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return"M"===t?this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(e.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(e.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(e.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(e.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(e.toUTCDateTime(),"years").years}}static fromMilliseconds(e){const t=s.c9.fromMillis(e,{zone:s.mQ.utcInstance});return t.isValid?l.fromParts(t.year,t.month,t.day):null}static fromSeconds(e){const t=s.c9.fromSeconds(e,{zone:s.mQ.utcInstance});return t.isValid?l.fromParts(t.year,t.month,t.day):null}static fromReader(e){if(!e)return null;const t=e.split("-");return 3!==t.length?null:new l(parseInt(t[0],10),parseInt(t[1],10),parseInt(t[2],10))}static fromParts(e,t,n){const r=new l(e,t,n);return!1===r.isValid?null:r}static fromDateJS(e){return l.fromParts(e.getFullYear(),e.getMonth()+1,e.getDay())}static fromDateTime(e){return l.fromParts(e.year,e.month,e.day)}static fromSqlTimeStampOffset(e){return this.fromDateTime(e.toDateTime())}static fromString(e,t=null){if(""===e)return null;if(null===e)return null;const n=[];if(t)(t=o(t))&&n.push(t);else if(null===t||""===t){const t=s.c9.fromISO(e,{setZone:!0});return t.isValid?l.fromParts(t.year,t.month,t.day):null}for(const r of n){const n=s.c9.fromFormat(e,t??r);if(n.isValid)return new l(n.year,n.month,n.day)}return null}static fromNow(e="system"){const t=s.c9.fromJSDate(new Date).setZone((0,r.mT)(e));return new l(t.year,t.month,t.day)}}},45475:(e,t,n)=>{n.d(t,{T:()=>o});var r=n(78888),i=n(2272),s=n(14942);async function o(e,t,n){const o=t.toJSON();o.contents=JSON.stringify(o.contents),o.token=await(0,i.gf)(t.portalUrl,t.apiKey,{signal:n?.signal,prompt:"no-prompt"!==n?.authMode});const a=(0,i.Dl)(e),l=(0,i.jV)(a.query,{...n,query:o,method:"post",authMode:"anonymous"});return(await(0,r.A)(a.path,l)).data.results.map((e=>s.A.fromJSON(e)))}},48938:(e,t,n)=>{n.d(t,{X:()=>i,_:()=>s});var r=n(85935);function i(e){if("string"==typeof e)return e.toLowerCase();if("name"in e)return e.name.toLowerCase();if("string"!=typeof e.value)throw new r.D$(null,r.TX.InvalidIdentifier,null);return e.value.toLowerCase()}const s=Object.freeze({aborted:!1})},53177:(e,t,n)=>{n.d(t,{A:()=>d});var r,i=n(90237),s=n(4718),o=n(10107),a=(n(44208),n(53966),n(93223)),l=n(40608),u=n(39357),c=n(76357);let d=class extends c.A{static{r=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const n=String(e);this.codedValues.some((e=>(String(e.code)===n&&(t=e.name),!!t)))}return t}clone(){return new r({codedValues:(0,s.o8)(this.codedValues),name:this.name})}};(0,i._)([(0,o.MZ)({type:[u.H],json:{write:{isRequired:!0}}})],d.prototype,"codedValues",void 0),(0,i._)([(0,a.e)({codedValue:"coded-value"})],d.prototype,"type",void 0),d=r=(0,i._)([(0,l.$)("esri.layers.support.CodedValueDomain")],d)},62791:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(90237),i=n(25482),s=n(10107),o=n(40608),a=n(24097),l=n(67090);let u=class extends i.A{constructor(e){super(e),this.to=null,this.contents=null,this.portalUrl="https://www.arcgis.com",this.translator="esri",this.from=null,this.apiKey=null}};(0,r._)([(0,s.MZ)({type:[String],json:{write:!0}})],u.prototype,"to",void 0),(0,r._)([(0,s.MZ)({type:[l.A],json:{write:!0}})],u.prototype,"contents",void 0),(0,r._)([(0,s.MZ)({type:String,json:{write:!0}})],u.prototype,"portalUrl",void 0),(0,r._)([(0,s.MZ)({type:String,json:{write:!0,default:"esri"}})],u.prototype,"translator",void 0),(0,r._)([(0,s.MZ)({type:String,json:{write:!0}})],u.prototype,"from",void 0),(0,r._)([(0,s.MZ)(a.K)],u.prototype,"apiKey",void 0),u=(0,r._)([(0,o.$)("esri.rest.support.TranslateParameters")],u)},66131:(e,t,n)=>{n.d(t,{lY:()=>d,mT:()=>f});var r,i=n(799),s=n(3330),o=n(96285);(r||(r={})).TimeZoneNotRecognized="TimeZoneNotRecognized";const a={[r.TimeZoneNotRecognized]:"Timezone identifier has not been recognized."};class l extends Error{constructor(e,t){super((0,i.HC)(a[e],t)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,l)}}function u(e,t,n){return e<t?e-t:e>n?e-n:0}function c(e,t,n){return e<t?t:e>n?n:e}class d{constructor(e){this._date=e,this.declaredRootClass="esri.arcade.arcadedate"}static fromParts(e=0,t=1,n=1,r=0,i=0,s=0,a=0,l){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(s)||isNaN(a))return null;const m=o.c9.local(e,t).daysInMonth;let h=o.c9.fromObject({day:c(n,1,m),year:e,month:c(t,1,12),hour:c(r,0,23),minute:c(i,0,59),second:c(s,0,59),millisecond:c(a,0,999)},{zone:f(l)});return h=h.plus({months:u(t,1,12),days:u(n,1,m),hours:u(r,0,23),minutes:u(i,0,59),seconds:u(s,0,59),milliseconds:u(a,0,999)}),new d(h)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(e,t){const n=f(t);return e.isUnknownTimeZone||n===s.GB.instance?d.fromParts(e.year,e.monthJS+1,e.day,e.hour,e.minute,e.second,e.millisecond,n):new d(e._date.setZone(n))}static dateJSToArcadeDate(e){return new d(o.c9.fromJSDate(e,{zone:"system"}))}static dateJSAndZoneToArcadeDate(e,t="system"){const n=f(t);return new d(o.c9.fromJSDate(e,{zone:n}))}static unknownEpochToArcadeDate(e){return new d(o.c9.fromMillis(e,{zone:s.GB.instance}))}static unknownDateJSToArcadeDate(e){return new d(o.c9.fromMillis(e.getTime(),{zone:s.GB.instance}))}static epochToArcadeDate(e,t="system"){const n=f(t);return new d(o.c9.fromMillis(e,{zone:n}))}static dateTimeToArcadeDate(e){return new d(e)}clone(){return new d(this._date)}changeTimeZone(e){const t=f(e);return d.dateTimeToArcadeDate(this._date.setZone(t))}static dateTimeAndZoneToArcadeDate(e,t){const n=f(t);return e.zone===s.GB.instance||n===s.GB.instance?d.fromParts(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond,n):new d(e.setZone(n))}static nowToArcadeDate(e){const t=f(e);return new d(o.c9.fromJSDate(new Date,{zone:t}))}static nowUTCToArcadeDate(){return new d(o.c9.utc())}get isSystem(){return"system"===this.timeZone||this.timeZone===d.systemTimeZoneCanonicalName}equals(e){return this.isSystem&&e.isSystem?this.toNumber()===e.toNumber():this.isUnknownTimeZone===e.isUnknownTimeZone&&this._date.equals(e._date)}get isUnknownTimeZone(){return this._date.zone===s.GB.instance}get isValid(){return this._date.isValid}get hour(){return this._date.hour}get second(){return this._date.second}get day(){return this._date.day}get dayOfWeekISO(){return this._date.weekday}get dayOfWeekJS(){let e=this._date.weekday;return e>6&&(e=0),e}get millisecond(){return this._date.millisecond}get monthISO(){return this._date.month}get weekISO(){return this._date.weekNumber}get yearISO(){return this._date.weekYear}get monthJS(){return this._date.month-1}get year(){return this._date.year}get minute(){return this._date.minute}get zone(){return this._date.zone}get timeZoneOffset(){return this.isUnknownTimeZone?0:this._date.offset}get timeZone(){if(this.isUnknownTimeZone)return"unknown";if("system"===this._date.zone.type)return"system";const e=this.zone;return"fixed"===e.type?0===e.fixed?"UTC":e.formatOffset(0,"short"):e.name}stringify(){return JSON.stringify(this.toJSDate())}plus(e){return new d(this._date.plus(e))}diff(e,t="milliseconds"){return this._date.diff(e._date,t)[t]}toISODate(){return this._date.toISODate()}toISOString(e){return e?this._date.toISO({suppressMilliseconds:!0,includeOffset:!this.isUnknownTimeZone}):this._date.toISO({includeOffset:!this.isUnknownTimeZone})}toISOTime(e,t){return this._date.toISOTime({suppressMilliseconds:e,includeOffset:t&&!this.isUnknownTimeZone})}toFormat(e,t){return this.isUnknownTimeZone&&(e=e.replaceAll("Z","")),this._date.toFormat(e,t)}toJSDate(){return this._date.toJSDate()}toSQLValue(){return this._date.toFormat("yyyy-LL-dd HH:mm:ss")}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}toDateTime(){return this._date}toNumber(){return this._date.toMillis()}getTime(){return this._date.toMillis()}toUTC(){return new d(this._date.toUTC())}toLocal(){return new d(this._date.toLocal())}toString(){return this.toISOString(!0)}static fromReaderAsTimeStampOffset(e){if(!e)return null;const t=o.c9.fromISO(e,{setZone:!0});return new d(t)}}function f(e,t=!0){if(e instanceof o.bo)return e;if("system"===e.toLowerCase())return"system";if("utc"===e.toLowerCase())return"UTC";if("unknown"===e.toLowerCase())return s.GB.instance;if(/^[+-]?[0-9]{1,2}([:][0-9]{2})?$/.test(e)){const t=o.mQ.parseSpecifier("UTC"+(e.startsWith("+")||e.startsWith("-")?"":"+")+e);if(t)return t}const n=o.oh.create(e);if(!n.isValid){if(t)throw new l(r.TimeZoneNotRecognized);return null}return n}},66395:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(66131),i=n(6800),s=n(85935),o=n(78878),a=n(91075),l=n(54218);function u(e,t,n=!1,r=!1){if(null==e)return null;if((0,l.Et)(e))return(0,o.t)(e);if((0,l.Lm)(e))return(0,o.e)(e);if((0,l.Kg)(e))return(0,o.f)(e);if((0,o.g)(e))return(0,o.h)(e,t);if((0,o.j)(e))return e;if((0,o.k)(e))return e;if((0,l.cy)(e)){const i=[];for(const s of e)i.push(u(s,t,n,r));return i}if(r&&(0,o.l)(e))return e;const i=new c;i.immutable=!1;for(const s of Object.keys(e)){const o=e[s];void 0!==o&&i.setField(s,u(o,t,n,r))}return i.immutable=n,i}class c{constructor(e){this.declaredClass="esri.arcade.Dictionary",this.plain=!1,this.immutable=!0,this.attributes=e instanceof c?e.attributes:e??{}}field(e){const t=e.toLowerCase(),n=this.attributes[e];if(void 0!==n)return n;for(const e in this.attributes)if(e.toLowerCase()===t)return this.attributes[e];throw new s.D$(null,s.TX.FieldNotFound,null,{key:e})}setField(e,t){if(this.immutable)throw new s.D$(null,s.TX.Immutable,null);if((0,o.i)(t))throw new s.D$(null,s.TX.NoFunctionInDictionary,null);const n=e.toLowerCase();if(t instanceof Date&&(t=r.lY.dateJSToArcadeDate(t)),void 0===this.attributes[e]){for(const e in this.attributes)if(e.toLowerCase()===n)return void(this.attributes[e]=t);this.attributes[e]=t}else this.attributes[e]=t}hasField(e){const t=e.toLowerCase();if(void 0!==this.attributes[e])return!0;for(const e in this.attributes)if(e.toLowerCase()===t)return!0;return!1}keys(){let e=[];for(const t in this.attributes)e.push(t);return e=e.sort(),e}castToText(e=!1){return(0,o.c)(this.attributes,{useNumbersForDates:e})}static convertObjectToArcadeDictionary(e,t,n=!0,r=!1){const i=new c;i.immutable=!1;for(const s in e){const o=e[s];void 0!==o&&i.setField(s.toString(),u(o,t,n,r))}return i.immutable=n,i}static convertJsonToArcade(e,t,n=!1,r=!1){return u(e,t,n,r)}castAsJson(e=null){const t={};for(let n in this.attributes){const r=this.attributes[n];void 0!==r&&(e?.keyTranslate&&(n=e.keyTranslate(n)),t[n]=(0,o.a)(r,e))}return t}async castDictionaryValueAsJsonAsync(e,t,n,r=null,i){const s=await(0,o.b)(n,r,i);return e[t]=s,s}async castAsJsonAsync(e=null,t=null){const n={},i=[];for(let s in this.attributes){const l=this.attributes[s];t?.keyTranslate&&(s=t.keyTranslate(s)),void 0!==l&&((0,o.d)(l)||l instanceof a.A||l instanceof r.lY?n[s]=(0,o.a)(l,t):i.push(this.castDictionaryValueAsJsonAsync(n,s,l,e,t)))}return i.length>0&&await Promise.all(i),n}deepClone(){const e=new c;e.immutable=!1;for(const t of this.keys())e.setField(t,(0,i.G)(this.field(t)));return e}}},67090:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(90237),i=n(25482),s=n(10107),o=n(40608);let a=class extends i.A{constructor(e){super(e)}};(0,r._)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"key",void 0),(0,r._)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"text",void 0),a=(0,r._)([(0,o.$)("esri.rest.support.TranslateContent")],a)},76357:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(90237),i=n(66552),s=n(25482),o=n(10107),a=(n(44208),n(53966),n(87811),n(93223)),l=n(40608);const u=new i.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let c=class extends s.A{constructor(e){super(e),this.name=null,this.type=null}};(0,r._)([(0,o.MZ)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,r._)([(0,a.e)(u),(0,o.MZ)({json:{write:{isRequired:!0}}})],c.prototype,"type",void 0),c=(0,r._)([(0,l.$)("esri.layers.support.Domain")],c)},78502:(e,t,n)=>{n.d(t,{Fq:()=>o,Yc:()=>i,Yq:()=>s});var r=n(5443);function i(e){if(null==e)return null;switch(e.type){case"polygon":case"multipoint":case"polyline":return e.extent;case"point":return new r.A({xmin:e.x,ymin:e.y,xmax:e.x,ymax:e.y,spatialReference:e.spatialReference});case"extent":return e}return null}function s(e){if(null==e)return null;const t=e.clone();return void 0!==e.cache._geVersion&&(t.cache._geVersion=e.cache._geVersion),t}function o(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}},78878:(e,t,n)=>{n.d(t,{$:()=>Le,A:()=>oe,B:()=>Oe,C:()=>E,D:()=>Q,E:()=>Ne,F:()=>pe,G:()=>De,H:()=>_e,I:()=>x,J:()=>Ce,K:()=>J,L:()=>Pe,M:()=>Fe,N:()=>R,O:()=>re,P:()=>ee,Q:()=>Ue,R:()=>v,S:()=>Ee,T:()=>Re,U:()=>ze,V:()=>Je,W:()=>ye,X:()=>j,Y:()=>Z,Z:()=>je,_:()=>ue,a:()=>Me,a0:()=>xe,a1:()=>Se,a2:()=>ge,a3:()=>Te,b:()=>Ze,c:()=>ae,d:()=>U,e:()=>he,f:()=>le,g:()=>K,h:()=>me,i:()=>I,j:()=>H,k:()=>X,l:()=>P,m:()=>B,n:()=>z,o:()=>Y,p:()=>G,q:()=>V,r:()=>$,s:()=>ce,t:()=>fe,u:()=>Ve,v:()=>O,w:()=>M,x:()=>k,y:()=>q,z:()=>se});var r=n(92602),i=n(70333),s=n(66131),o=n(99719),a=n(85935),l=n(92400),u=n(93818),c=n(7335),d=n(84939),f=n(33325),m=n(14607),h=n(44729),p=n(15032),y=n(5443),g=n(91075),T=n(48526),S=n(86738),b=n(39829),w=n(82799),N=n(16930),A=n(95108),D=n(65864),_=n(73444),C=n(54218),F=n(96285);class v{constructor(e){this.value=e}}class x{constructor(e){this.value=e}}const O={type:"VOID"},M=Symbol("BREAK"),k=Symbol("CONTINUE");function Z(e,t,n){return""===t||null==t||t===n||t===n?e:e=e.split(t).join(n)}function I(e){return e instanceof l.fF}function L(e){return e instanceof o.x}function U(e){return!!((0,C.Kg)(e)||(0,C.Et)(e)||K(e)||H(e)||X(e)||(0,C.Lm)(e)||null===e||e===O||"number"==typeof e)}function J(e,t){return void 0===e?t:e}function R(e){return null==e?"":(0,C.cy)(e)||B(e)?"Array":K(e)?"Date":X(e)?"Time":H(e)?"DateOnly":(0,C.Kg)(e)?"String":(0,C.Lm)(e)?"Boolean":(0,C.Et)(e)?"Number":"esri.arcade.Attachment"===e?.declaredClass?"Attachment":"esri.arcade.Portal"===e?.declaredClass?"Portal":"esri.arcade.Dictionary"===e?.declaredClass?"Dictionary":$(e)?"KnowledgeGraph":e instanceof o.x?"Module":z(e)?"Feature":e instanceof S.A?"Point":e instanceof b.A?"Polygon":e instanceof w.A?"Polyline":e instanceof T.A?"Multipoint":e instanceof y.A?"Extent":I(e)?"Function":G(e)?"FeatureSet":Y(e)?"FeatureSetCollection":j(e)?"Voxel":e===O?"":"number"==typeof e&&isNaN(e)?"Number":"Unrecognized Type"}function E(e){return e===O}function P(e){return e instanceof g.A}function z(e){return"esri.arcade.Feature"===e?.arcadeDeclaredClass}function j(e){return"esri.arcade.Voxel"===e?.arcadeDeclaredClass}function G(e){return"esri.arcade.featureset.support.FeatureSet"===e?.declaredRootClass}function V(e){return"esri.arcade.Dictionary"===e?.declaredClass}function q(e){return V(e)||z(e)||j(e)}function Y(e){return"esri.arcade.featureSetCollection"===e?.declaredRootClass}function $(e){return"esri.rest.knowledgeGraph.KnowledgeGraph"===e?.declaredClass}function B(e){return e instanceof u.A}function K(e){return e instanceof s.lY}function H(e){return e instanceof h.n}function X(e){return e instanceof p.k}function W(e){return null!=e&&"object"==typeof e}function Q(e,t,n,r,i){if(e.length<t||e.length>n)throw new a.D$(r,a.TX.WrongNumberOfParameters,i)}function ee(e){return e<0?-Math.round(-e):Math.round(e)}function te(e,t){return isNaN(e)||null==t||""===t?e.toString():(t=Z(t,"‰",""),t=Z(t,"¤",""),(0,m.GP)(e,{pattern:t}))}function ne(e,t){return null==t||""===t?e.toISOString(!0):e.toFormat(re(t),{locale:(0,_.JK)(),numberingSystem:"latn"})}function re(e,t=!1){e=e.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let n="";const r=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|Z{1,5}|.)/g;for(const i of e.match(r)||[])switch(i){case"D":n+="d";break;case"DD":n+="dd";break;case"DDD":n+="o";break;case"d":n+="c";break;case"ddd":n+="ccc";break;case"dddd":n+="cccc";break;case"M":n+="L";break;case"MM":n+="LL";break;case"MMM":n+="LLL";break;case"MMMM":n+="LLLL";break;case"YY":n+="yy";break;case"Y":case"YYYY":n+="yyyy";break;case"Q":n+="q";break;case"Z":n+="Z";break;case"ZZ":n+="ZZ";break;case"ZZZ":n+="ZZZ";break;case"ZZZZ":n+=t?"[ZZZZ]":"ZZZZ";break;case"ZZZZZ":n+=t?"[ZZZZZ]":"ZZZZZ";break;case"S":n+="'S'";break;case"SS":n+="'SS'";break;case"SSS":n+="u";break;case"A":case"a":n+="a";break;case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":case"X":case"x":n+=i;break;default:i.length>=2&&"["===i.slice(0,1)&&"]"===i.slice(-1)?n+=`'${i.slice(1,-1)}'`:n+=`'${i}'`}return n}function ie(e,t,n){switch(n){case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}return!1}function se(e,t,n){if(null===e){if(null===t||t===O)return ie(null,null,n);if((0,C.Et)(t))return ie(0,t,n);if((0,C.Kg)(t))return ie(0,fe(t),n);if((0,C.Lm)(t))return ie(0,fe(t),n);if(K(t))return ie(0,t.toNumber(),n);if(X(t))return ie(e,t.toNumber(),n);if(H(t))return ie(e,t.toNumber(),n)}if(e===O){if(null===t||t===O)return ie(null,null,n);if((0,C.Et)(t))return ie(0,t,n);if((0,C.Kg)(t))return ie(0,fe(t),n);if((0,C.Lm)(t))return ie(0,fe(t),n);if(K(t))return ie(0,t.toNumber(),n);if(X(t))return ie(e,t.toNumber(),n);if(H(t))return ie(e,t.toNumber(),n)}else if((0,C.Et)(e)){if((0,C.Et)(t))return ie(e,t,n);if((0,C.Lm)(t))return ie(e,fe(t),n);if(null===t||t===O)return ie(e,0,n);if((0,C.Kg)(t))return ie(e,fe(t),n);if(K(t))return ie(e,t.toNumber(),n);if(X(t))return ie(e,t.toNumber(),n);if(H(t))return ie(e,t.toNumber(),n)}else if((0,C.Kg)(e)){if((0,C.Kg)(t))return ie(le(e),le(t),n);if(K(t))return ie(fe(e),t.toNumber(),n);if(X(t))return ie(fe(e),t.toNumber(),n);if(H(t))return ie(fe(e),t.toNumber(),n);if((0,C.Et)(t))return ie(fe(e),t,n);if(null===t||t===O)return ie(fe(e),0,n);if((0,C.Lm)(t))return ie(fe(e),fe(t),n)}else if(K(e)){if(K(t))return e.timeZone!==t.timeZone&&(e.isUnknownTimeZone?e=s.lY.arcadeDateAndZoneToArcadeDate(e,t.timeZone):t.isUnknownTimeZone&&(t=s.lY.arcadeDateAndZoneToArcadeDate(t,e.timeZone))),ie(e.toNumber(),t.toNumber(),n);if(null===t||t===O)return ie(e.toNumber(),0,n);if((0,C.Et)(t))return ie(e.toNumber(),t,n);if((0,C.Lm)(t))return ie(e.toNumber(),fe(t),n);if((0,C.Kg)(t))return ie(e.toNumber(),fe(t),n);if(X(t))throw new a.D$(null,a.TX.CannotCompareDateAndTime,null);if(H(t))return ie(e.toNumber(),t.toNumber(),n)}else if((0,C.Lm)(e)){if((0,C.Lm)(t))return ie(e,t,n);if((0,C.Et)(t))return ie(fe(e),fe(t),n);if(K(t))return ie(fe(e),t.toNumber(),n);if(X(t))return ie(fe(e),t.toNumber(),n);if(H(t))return ie(fe(e),t.toNumber(),n);if(null===t||t===O)return ie(fe(e),0,n);if((0,C.Kg)(t))return ie(fe(e),fe(t),n)}else if(H(e)){if(K(t))return ie(e.toNumber(),t.toNumber(),n);if(null===t||t===O)return ie(e.toNumber(),0,n);if((0,C.Et)(t))return ie(e.toNumber(),t,n);if((0,C.Lm)(t))return ie(e.toNumber(),fe(t),n);if((0,C.Kg)(t))return ie(e.toNumber(),fe(t),n);if(X(t))throw new a.D$(null,a.TX.CannotCompareDateAndTime,null);if(H(t))return ie(e.toNumber(),t.toNumber(),n)}else if(X(e)){if(K(t))throw new a.D$(null,a.TX.CannotCompareDateAndTime,null);if(null===t||t===O)return ie(e.toNumber(),0,n);if((0,C.Et)(t))return ie(e.toNumber(),t,n);if((0,C.Lm)(t))return ie(e.toNumber(),fe(t),n);if((0,C.Kg)(t))return ie(e.toNumber(),fe(t),n);if(X(t))return ie(e.toNumber(),t.toNumber(),n);if(H(t))throw new a.D$(null,a.TX.CannotCompareDateAndTime,null)}return!!oe(e,t)&&("<="===n||">="===n)}function oe(e,t){if(e===t)return!0;if(null===e&&t===O||null===t&&e===O)return!0;if(K(e)&&K(t))return e.equals(t);if(X(e)&&X(t))return e.equals(t);if(H(e)&&H(t))return e.equals(t);if(e instanceof c.A)return e.equalityTest(t);if(e instanceof d.A)return e.equalityTest(t);if(e instanceof S.A&&t instanceof S.A){const n=e.cache._arcadeCacheId,r=t.cache._arcadeCacheId;if(null!=n)return n===r}if(W(e)&&W(t)){if(e._arcadeCacheId===t._arcadeCacheId&&void 0!==e._arcadeCacheId&&null!==e._arcadeCacheId)return!0;if(e._underlyingGraphic===t._underlyingGraphic&&void 0!==e._underlyingGraphic&&null!==e._underlyingGraphic)return!0}return!1}function ae(e,{useNumbersForDates:t}){let n="";for(const r in e){""!==n&&(n+=",");const i=e[r];null==i?n+=JSON.stringify(r)+":null":(0,C.Lm)(i)||(0,C.Et)(i)||(0,C.Kg)(i)?n+=JSON.stringify(r)+":"+JSON.stringify(i):P(i)?n+=JSON.stringify(r)+":"+ce(i):X(i)||H(i)?n+=`${JSON.stringify(r)}:${JSON.stringify(i.toString())}`:B(i)||Array.isArray(i)?n+=JSON.stringify(r)+":"+ce(i,null,t):K(i)?n+=t?JSON.stringify(r)+":"+JSON.stringify(i.getTime()):JSON.stringify(r)+":"+i.stringify():null!==i&&"object"==typeof i&&"castToText"in i&&(n+=JSON.stringify(r)+":"+i.castToText(t))}return"{"+n+"}"}function le(e,t){if((0,C.Kg)(e))return e;if(null===e)return"";if((0,C.Et)(e))return te(e,t);if((0,C.Lm)(e))return e.toString();if(K(e))return ne(e,t);if(X(e))return e.toFormat(t);if(H(e))return e.toFormat(t);if(e instanceof g.A)return JSON.stringify(e.toJSON());if((0,C.cy)(e)){const t=[];for(let n=0;n<e.length;n++)t[n]=de(e[n]);return"["+t.join(",")+"]"}if(e instanceof u.A){const t=[];for(let n=0;n<e.length();n++)t[n]=de(e.get(n));return"["+t.join(",")+"]"}return null!==e&&"object"==typeof e&&"castToText"in e?e.castToText():I(e)?"object, Function":e===O?"":L(e)?"object, Module":""}function ue(e){const t=[];if(e instanceof u.A){for(let n=0;n<e.length();n++)t[n]=fe(e.get(n));return t}if(!(0,C.cy)(e))return null;for(let n=0;n<e.length;n++)t[n]=fe(e[n]);return t}function ce(e,t,n=!1){if((0,C.Kg)(e))return e;if(null===e)return"";if((0,C.Et)(e))return te(e,t);if((0,C.Lm)(e))return e.toString();if(K(e))return ne(e,t);if(X(e))return e.toFormat(t);if(H(e))return e.toFormat(t);if(e instanceof g.A)return e instanceof y.A?'{"xmin":'+e.xmin.toString()+',"ymin":'+e.ymin.toString()+","+(e.hasZ?'"zmin":'+e.zmin.toString()+",":"")+(e.hasM?'"mmin":'+e.mmin.toString()+",":"")+'"xmax":'+e.xmax.toString()+',"ymax":'+e.ymax.toString()+","+(e.hasZ?'"zmax":'+e.zmax.toString()+",":"")+(e.hasM?'"mmax":'+e.mmax.toString()+",":"")+'"spatialReference":'+we(e.spatialReference)+"}":we(e.toJSON(),((e,t)=>e.key===t.key?0:"spatialReference"===e.key?1:"spatialReference"===t.key||e.key<t.key?-1:e.key>t.key?1:0));if((0,C.cy)(e)){const t=[];for(let r=0;r<e.length;r++)t[r]=de(e[r],n);return"["+t.join(",")+"]"}if(e instanceof u.A){const t=[];for(let r=0;r<e.length();r++)t[r]=de(e.get(r),n);return"["+t.join(",")+"]"}return null!==e&&"object"==typeof e&&"castToText"in e?e.castToText(n):I(e)?"object, Function":e===O?"":L(e)?"object, Module":""}function de(e,t=!1){if(null===e)return"null";if((0,C.Lm)(e)||(0,C.Et)(e)||(0,C.Kg)(e))return JSON.stringify(e);if(e instanceof g.A)return ce(e,null,t);if(e instanceof u.A)return ce(e,null,t);if(Array.isArray(e))return ce(e,null,t);if(K(e))return t?JSON.stringify(e.getTime()):JSON.stringify(ne(e,""));if(X(e))return JSON.stringify(e.toString());if(H(e))return JSON.stringify(e.toString());if(null!==e&&"object"==typeof e){if("castToText"in e)return e.castToText(t)}else if(e===O)return"null";return"null"}function fe(e,t){return(0,C.Et)(e)?e:null===e||""===e?0:K(e)||H(e)||X(e)?NaN:(0,C.Lm)(e)?e?1:0:(0,C.cy)(e)||""===e||void 0===e?NaN:void 0!==t&&(0,C.Kg)(e)?(t=Z(t,"‰",""),t=Z(t,"¤",""),(0,m.qg)(e,{pattern:t})):e===O?0:Number(e)}function me(e,t){if(K(e))return e;if((0,C.Kg)(e)){const n=function(e,t){const n=/ (\d\d)/,r=(0,s.mT)(t);let i=F.c9.fromISO(e,{zone:r});return i.isValid||n.test(e)&&(e=e.replace(n,"T$1"),i=F.c9.fromISO(e,{zone:t}),i.isValid)?i:null}(e,t);if(n)return s.lY.dateTimeToArcadeDate(n)}return null}function he(e){return(0,C.Lm)(e)?e:(0,C.Kg)(e)?"true"===(e=e.toLowerCase()):!!(0,C.Et)(e)&&0!==e&&!isNaN(e)}function pe(e,t){return null==e?null:(null!==e.spatialReference&&void 0!==e.spatialReference||(e.spatialReference=t),e)}function ye(e){if(null===e)return null;if(e instanceof S.A)return"NaN"===e.x||null===e.x||isNaN(e.x)?null:e;if(e instanceof b.A){if(0===(e.curveRings??e.rings).length)return null;for(const t of e.curveRings??e.rings)if(t.length>0)return e;return null}if(e instanceof w.A){if(0===(e.curvePaths??e.paths).length)return null;for(const t of e.curvePaths??e.paths)if(t.length>0)return e;return null}return e instanceof T.A?0===e.points.length?null:e:e instanceof y.A?"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)?null:e:null}function ge(e,t){if(!e)return t;if(!e.domain)return t;let n=null,r=null;if(K(t))n=t.toNumber();else if(H(t))n=t.toString();else if(X(t))n=t.toStorageString();else if("string"===e.field.type||"esriFieldTypeString"===e.field.type)n=le(t);else{if(null==t)return null;if(""===t)return t;n=fe(t)}for(let t=0;t<e.domain.codedValues.length;t++){const i=e.domain.codedValues[t];i.code===n&&(r=i)}return null===r?le(t):r.name}function Te(e,t){if(!e)return t;if(!e.domain)return t;let n=null;const r=le(t);for(let t=0;t<e.domain.codedValues.length;t++){const i=e.domain.codedValues[t];i.name===r&&(n=i)}return null===n?t:n.code}function Se(e,t,n=null,r=null){if(!t)return null;if(!t.fields)return null;let i,s,o=null;for(let n=0;n<t.fields.length;n++){const r=t.fields[n];r.name.toLowerCase()===e.toString().toLowerCase()&&(o=r)}if(null===o)throw new a.D$(null,a.TX.FieldNotFound,null,{key:e});let l=t.typeIdField,u="id",c=t.types;if(t.subtypeField&&(l=t.subtypeField,u="code",c=t.subtypes??[]),null===r&&n&&l)r=n.hasField(l)?n.field(l):null;else if(l&&null!==r){let e=!1;for(const t of c||[])if(r===t[u]){e=!0;break}if(!e)for(const t of c||[])if(r===t.name){r=t[u],e=!0;break}e||(r=null,n&&l&&(r=n.hasField(l)?n.field(l):null))}return null!=r&&c.some((e=>e[u]===r&&(i=e.domains?.[o.name],i&&"inherited"===i.type&&(i=be(o.name,t),s=!0),!0))),s||i||(i=be(e,t)),{field:o,domain:i}}function be(e,t){let n;return t.fields.some((t=>(t.name.toLowerCase()===e.toLowerCase()&&(n=t.domain),!!n))),n}function we(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});const n="boolean"==typeof t.cycles&&t.cycles,r=t.cmp&&(i=t.cmp,function(e){return function(t,n){const r={key:t,value:e[t]},s={key:n,value:e[n]};return i(r,s)}});var i;const s=[];return function e(t){if(t?.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0===t)return;if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);let i,o;if(Array.isArray(t)){for(o="[",i=0;i<t.length;i++)i&&(o+=","),o+=e(t[i])||"null";return o+"]"}if(null===t)return"null";if(s.includes(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}const a=s.push(t)-1,l=Object.keys(t).sort(r?.(t));for(o="",i=0;i<l.length;i++){const n=l[i],r=e(t[n]);r&&(o&&(o+=","),o+=JSON.stringify(n)+":"+r)}return s.splice(a,1),"{"+o+"}"}(e)}function Ne(e){if(null===e)return null;const t=[];for(const n of e)z(n)?t.push(n.geometry()):t.push(n);return t}function Ae(e,t){if(!(t instanceof S.A))throw new a.D$(null,a.TX.InvalidParameter,null);e.push(t.hasZ?t.hasM?[t.x,t.y,t.z,t.m]:[t.x,t.y,t.z]:[t.x,t.y])}function De(e,t){if((0,C.cy)(e)||B(e)){let n=!1,r=!1,i=[],s=t;if((0,C.cy)(e)){for(const t of e)Ae(i,t);i.length>0&&(s=e[0].spatialReference,n=e[0].hasZ,r=e[0].hasM)}else if(e instanceof d.A)i=e._elements,i.length>0&&(n=e._hasZ,r=e._hasM,s=e.get(0).spatialReference);else{if(!B(e))throw new a.D$(null,a.TX.InvalidParameter,null);for(const t of e.toArray())Ae(i,t);i.length>0&&(s=e.get(0).spatialReference,n=!0===e.get(0).hasZ,r=!0===e.get(0).hasM)}return 0===i.length?null:((0,A.$3)(i)||(i=i.slice().reverse()),new b.A({rings:[i],spatialReference:s,hasZ:n,hasM:r}))}return e}function _e(e,t){if((0,C.cy)(e)||B(e)){let n=!1,r=!1,i=[],s=t;if((0,C.cy)(e)){for(const t of e)Ae(i,t);i.length>0&&(s=e[0].spatialReference,n=!0===e[0].hasZ,r=!0===e[0].hasM)}else if(e instanceof d.A)i=e._elements,i.length>0&&(n=e._hasZ,r=e._hasM,s=e.get(0).spatialReference);else if(B(e)){for(const t of e.toArray())Ae(i,t);i.length>0&&(s=e.get(0).spatialReference,n=!0===e.get(0).hasZ,r=!0===e.get(0).hasM)}return 0===i.length?null:new w.A({paths:[i],spatialReference:s,hasZ:n,hasM:r})}return e}function Ce(e,t){if((0,C.cy)(e)||B(e)){let n=!1,r=!1,i=[],s=t;if((0,C.cy)(e)){for(const t of e)Ae(i,t);i.length>0&&(s=e[0].spatialReference,n=!0===e[0].hasZ,r=!0===e[0].hasM)}else if(e instanceof d.A)i=e._elements,i.length>0&&(n=e._hasZ,r=e._hasM,s=e.get(0).spatialReference);else if(B(e)){for(const t of e.toArray())Ae(i,t);i.length>0&&(s=e.get(0).spatialReference,n=!0===e.get(0).hasZ,r=!0===e.get(0).hasM)}return 0===i.length?null:new T.A({points:i,spatialReference:s,hasZ:n,hasM:r})}return e}function Fe(e,t=!0){if(null==e)return[];if((0,C.cy)(e)){const n=[];for(const r of e){const e=le(r);(t||""!==e)&&n.push(e)}return n}if(B(e)){const n=[];for(let r=0;r<e.length();r++){const i=le(e.get(r));(t||""!==i)&&n.push(i)}return n}if(U(e)){const n=le(e);if(t||""!==n)return[n]}return[]}let ve=0;function xe(e){return ve++,ve%100==0?(ve=0,new Promise((t=>{setTimeout((()=>{t(e)}),0)}))):e}function Oe(e,t,n){switch(n){case"&":return e&t;case"|":return e|t;case"^":return e^t;case"<<":return e<<t;case">>":return e>>t;case">>>":return e>>>t}}function Me(e,t=null){return null==e?null:(0,C.Lm)(e)||(0,C.Et)(e)||(0,C.Kg)(e)?e:e instanceof g.A?!0===t?.keepGeometryType?e:e.toJSON():e instanceof u.A?e.toArray().map((e=>Me(e,t))):Array.isArray(e)?e.map((e=>Me(e,t))):(0,C.$P)(e)?e:K(e)?e.toJSDate():X(e)?e.toString():H(e)?e.toJSDate():null!==e&&"object"==typeof e&&void 0!==e.castAsJson?e.castAsJson(t):null}async function ke(e,t,n,r,i){const s=await Ze(e,t,n);i[r]=s}async function Ze(e,t=null,n=null){if(e instanceof u.A&&(e=e.toArray()),null==e)return null;if(U(e)||e instanceof g.A||(0,C.$P)(e)||K(e))return Me(e,n);if(Array.isArray(e)){const r=[],i=[];for(const s of e)null===s||U(s)||s instanceof g.A||(0,C.$P)(s)||K(s)?i.push(Me(s,n)):(i.push(null),r.push(ke(s,t,n,i.length-1,i)));return r.length>0&&await Promise.all(r),i}return null!==e&&"object"==typeof e&&void 0!==e.castAsJsonAsync?e.castAsJsonAsync(t,n):null}function Ie(e){return Le(e)?e.parent:e}function Le(e){return e&&"declaredClass"in e&&"esri.layers.support.SubtypeSublayer"===e.declaredClass}function Ue(e,t,n){const r=Ie(e.fullSchema());return null===r?null:r.fields?Se(t,r,e,n):null}function Je(e){const t=Ie(e.fullSchema());return null===t?null:t.fields?t.subtypeField?{subtypeField:t.subtypeField,subtypes:t.subtypes?t.subtypes.map((e=>({name:e.name,code:e.code}))):[]}:t.typeIdField?{subtypeField:t.typeIdField,subtypes:t.types?t.types.map((e=>({name:e.name,code:e.id}))):[]}:null:null}function Re(e,t,n,r){const i=Ie(e.fullSchema());if(null===i)return null;if(!i.fields)return null;const s=Se(t,i,e,r);if(void 0===n)try{n=e.field(t)}catch(e){return null}return ge(s,n)}function Ee(e,t,n,r){const i=Ie(e.fullSchema());if(null===i)return null;if(!i.fields)return null;if(void 0===n){try{n=e.field(t)}catch(e){return null}return n}return Te(Se(t,i,e,r),n)}function Pe(e){return e?.timeZone??"system"}function ze(e){const t=Ie(e.fullSchema());if(null===t)return null;if(!t.fields)return null;const n=[];for(const e of t.fields)n.push((0,f.nE)(e));return{objectIdField:t.objectIdField,globalIdField:t.globalIdField??"",geometryType:void 0===f.yT[t.geometryType]?"":f.yT[t.geometryType],fields:n}}function je(e,t){const n=s.lY.systemTimeZoneCanonicalName;return"system"===e&&(e=n),{version:Ge,engineVersion:i.rE,timeZone:e,userTimeZone:n,spatialReference:t instanceof N.A?t.toJSON():t,application:r.A.applicationName??"",engine:"web",locale:(0,_.JK)()}}const Ge="1.32",Ve=Object.freeze(Object.defineProperty({__proto__:null,ImplicitResult:x,ReturnResult:v,absRound:ee,arcadeVersion:Ge,autoCastArrayOfPointsToMultiPoint:Ce,autoCastArrayOfPointsToPolygon:De,autoCastArrayOfPointsToPolyline:_e,autoCastFeatureToGeometry:Ne,binaryOperator:Oe,breakResult:M,castAsJson:Me,castAsJsonAsync:Ze,castRecordToText:ae,continueResult:k,defaultExecutingContext:je,defaultTimeZone:Pe,defaultUndefined:J,equalityTest:oe,featureDomainCodeLookup:Ee,featureDomainValueLookup:Re,featureFullDomain:Ue,featureSchema:ze,featureSubtypes:Je,fixNullGeometry:ye,fixSpatialReference:pe,formatDate:ne,formatNumber:te,getDomain:Se,getDomainCode:Te,getDomainValue:ge,getType:R,greaterThanLessThan:se,isArray:C.cy,isBoolean:C.Lm,isDate:K,isDateOnly:H,isDictionary:V,isDictionaryLike:q,isFeature:z,isFeatureSet:G,isFeatureSetCollection:Y,isFunctionParameter:I,isGeometry:P,isGraphic:C.DU,isImmutableArray:B,isInteger:C.Fq,isJsDate:C.$P,isKnowledgeGraph:$,isModule:L,isNumber:C.Et,isObject:W,isSimpleType:U,isString:C.Kg,isSubtypeGrouplayer:function(e){return e&&"declaredClass"in e&&"esri.layers.SubtypeGroupLayer"===e.declaredClass},isSubtypeSublayer:Le,isTime:X,isVoid:E,isVoxel:j,multiReplace:Z,parseGeometryFromJson:function(e,t){const n=JSON.parse(e);return n&&!n.spatialReference&&(n.spatialReference=t),(0,D.rS)(n)},pcCheck:Q,stableStringify:we,standardiseDateFormat:re,tick:xe,toBoolean:he,toDate:me,toNumber:fe,toNumberArray:ue,toString:le,toStringArray:Fe,toStringExplicit:ce,voidOperation:O},Symbol.toStringTag,{value:"Module"}))},80451:(e,t,n)=>{n.d(t,{rS:()=>h,gK:()=>m}),n(44208);var r,i=n(53177),s=n(76357),o=n(90237),a=(n(53966),n(87811),n(49186),n(93223)),l=n(40608);let u=class extends s.A{static{r=this}constructor(e){super(e),this.type="inherited"}clone(){return new r}};(0,o._)([(0,a.e)({inherited:"inherited"})],u.prototype,"type",void 0),u=r=(0,o._)([(0,l.$)("esri.layers.support.InheritedDomain")],u);var c,d=n(10107);let f=class extends s.A{static{c=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new c({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,o._)([(0,d.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,n){t[n]=[this.minValue||0,e]},isRequired:!0}}})],f.prototype,"maxValue",void 0),(0,o._)([(0,d.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,n){t[n]=[e,this.maxValue||0]},isRequired:!0}}})],f.prototype,"minValue",void 0),(0,o._)([(0,a.e)({range:"range"})],f.prototype,"type",void 0),f=c=(0,o._)([(0,l.$)("esri.layers.support.RangeDomain")],f);const m={key:"type",base:s.A,typeMap:{range:f,"coded-value":i.A,inherited:u}};function h(e){if(!e?.type)return null;switch(e.type){case"range":return f.fromJSON(e);case"codedValue":return i.A.fromJSON(e);case"inherited":return u.fromJSON(e)}return null}},84939:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(93818),i=n(86738);class s extends r.A{constructor(e,t,n,r,i,s){super(e),this._lazyPt=[],this._hasZ=!1,this._hasM=!1,this._spRef=t,this._hasZ=n,this._hasM=r,this._cacheId=i,this._partId=s}get(e){if(void 0===this._lazyPt[e]){const t=this._elements[e];if(void 0===t)return;const n=new i.A(t[0],t[1],this._spRef);this._hasZ&&(n.z=t[2]),this._hasM&&(n.m=this._hasZ?t[3]:t[2]),n.cache._arcadeCacheId=this._cacheId.toString()+"-"+this._partId.toString()+"-"+e.toString(),this._lazyPt[e]=n}return this._lazyPt[e]}equalityTest(e){return e===this||null!==e&&e instanceof s!=0&&e.getUniqueHash()===this.getUniqueHash()}getUniqueHash(){return this._cacheId.toString()+"-"+this._partId.toString()}}},85935:(e,t,n)=>{n.d(t,{B:()=>h,D$:()=>u,Nh:()=>m,O$:()=>f,TX:()=>r,mT:()=>d,ps:()=>y});var r,i,s=n(799);(i=r||(r={})).AsyncNotEnabled="AsyncNotEnabled",i.ModulesNotSupported="ModulesNotSupported",i.CircularModules="CircularModules",i.CannotCompareDateAndTime="CannotCompareDateAndTime",i.NeverReach="NeverReach",i.UnsupportedHashType="UnsupportedHashType",i.InvalidParameter="InvalidParameter",i.FeatureSetDoesNotHaveSubtypes="FeatureSetDoesNotHaveSubtypes",i.UnexpectedToken="UnexpectedToken",i.Unrecognized="Unrecognized",i.UnrecognizedType="UnrecognizedType",i.MaximumCallDepth="MaximumCallDepth",i.BooleanConditionRequired="BooleanConditionRequired",i.TypeNotAllowedInFeature="TypeNotAllowedInFeature",i.KeyMustBeString="KeyMustBeString",i.WrongNumberOfParameters="WrongNumberOfParameters",i.CallNonFunction="CallNonFunction",i.NoFunctionInTemplateLiteral="NoFunctionInTemplateLiteral",i.NoFunctionInDictionary="NoFunctionInDictionary",i.NoFunctionInArray="NoFunctionInArray",i.AssignModuleFunction="AssignModuleFunction",i.LogicExpressionOrAnd="LogicExpressionOrAnd",i.LogicalExpressionOnlyBoolean="LogicalExpressionOnlyBoolean",i.FunctionNotFound="FunctionNotFound",i.InvalidMemberAccessKey="InvalidMemberAccessKey",i.UnsupportedUnaryOperator="UnsupportUnaryOperator",i.InvalidIdentifier="InvalidIdentifier",i.MemberOfNull="MemberOfNull",i.UnsupportedOperator="UnsupportedOperator",i.Cancelled="Cancelled",i.ModuleAccessorMustBeString="ModuleAccessorMustBeString",i.ModuleExportNotFound="ModuleExportNotFound",i.Immutable="Immutable",i.OutOfBounds="OutOfBounds",i.IllegalResult="IllegalResult",i.FieldNotFound="FieldNotFound",i.PortalRequired="PortalRequired",i.LogicError="LogicError",i.ArrayAccessorMustBeNumber="ArrayAccessMustBeNumber",i.KeyAccessorMustBeString="KeyAccessorMustBeString",i.WrongSpatialReference="WrongSpatialReference",i.CannotChangeTimeZoneTime="CannotChangeTimeZoneTime",i.CannotChangeTimeZoneDateOnly="CannotChangeTimeZoneDateOnly";const o={[r.TypeNotAllowedInFeature]:"Feature attributes only support dates, numbers, strings, guids.",[r.LogicError]:"Logic error - {reason}",[r.CannotCompareDateAndTime]:"Cannot compare date or dateonly with timeonly types",[r.NeverReach]:"Encountered unreachable logic",[r.AsyncNotEnabled]:"Async Arcade must be enabled for this script",[r.ModuleAccessorMustBeString]:"Module accessor must be a string",[r.ModuleExportNotFound]:"Module has no export with provided identifier",[r.ModulesNotSupported]:"Current profile does not support modules",[r.ArrayAccessorMustBeNumber]:"Array accessor must be a number",[r.FunctionNotFound]:"Function not found",[r.FieldNotFound]:"Key not found - {key}",[r.CircularModules]:"Circular module dependencies are not allowed",[r.Cancelled]:"Execution cancelled",[r.UnsupportedHashType]:"Type not supported in hash function",[r.IllegalResult]:"Value is not a supported return type",[r.PortalRequired]:"Portal is required",[r.InvalidParameter]:"Invalid parameter",[r.WrongNumberOfParameters]:"Call with wrong number of parameters",[r.Unrecognized]:"Unrecognized code structure",[r.UnrecognizedType]:"Unrecognized type",[r.WrongSpatialReference]:"Cannot work with geometry in this spatial reference. It is different to the execution spatial reference",[r.BooleanConditionRequired]:"Conditions must use booleans",[r.NoFunctionInDictionary]:"Dictionaries cannot contain functions.",[r.NoFunctionInArray]:"Arrays cannot contain functions.",[r.NoFunctionInTemplateLiteral]:"Template Literals do not expect functions by value.",[r.KeyAccessorMustBeString]:"Accessor must be a string",[r.KeyMustBeString]:"Object keys must be a string",[r.Immutable]:"Object is immutable",[r.UnexpectedToken]:"Unexpected token",[r.MemberOfNull]:"Cannot access property of null object",[r.MaximumCallDepth]:"Exceeded maximum function depth",[r.OutOfBounds]:"Out of bounds",[r.InvalidIdentifier]:"Identifier not recognized",[r.CallNonFunction]:"Expression is not a function",[r.InvalidMemberAccessKey]:"Cannot access value using a key of this type",[r.AssignModuleFunction]:"Cannot assign function to module variable",[r.UnsupportedUnaryOperator]:"Unsupported unary operator",[r.UnsupportedOperator]:"Unsupported operator",[r.LogicalExpressionOnlyBoolean]:"Logical expressions must be boolean",[r.LogicExpressionOrAnd]:"Logical expression can only be combined with || or &&",[r.CannotChangeTimeZoneTime]:"Cannot change the timezone of a Time",[r.CannotChangeTimeZoneDateOnly]:"Cannot change the timezone of a DateOnly",[r.FeatureSetDoesNotHaveSubtypes]:"FeatureSet does not have subtypes"};class a extends Error{constructor(...e){super(...e)}}class l extends a{constructor(e,t){super(c(t)+e.message,{cause:e}),this.loc=null,Error.captureStackTrace&&Error.captureStackTrace(this,l),t?.loc&&(this.loc=t.loc)}}class u extends Error{constructor(e,t,n,r){super("Execution error - "+c(n)+(0,s.HC)(o[t],r)),this.loc=null,this.declaredRootClass="esri.arcade.arcadeexecutionerror",Error.captureStackTrace&&Error.captureStackTrace(this,u),n?.loc&&(this.loc=n.loc)}}function c(e){return e&&e.loc?`Line : ${e.loc.start?.line}, ${e.loc.start?.column}: `:""}class d extends Error{constructor(e,t,n,r){super("Compilation error - "+c(n)+(0,s.HC)(o[t],r)),this.loc=null,this.declaredRootClass="esri.arcade.arcadecompilationerror",Error.captureStackTrace&&Error.captureStackTrace(this,d),n?.loc&&(this.loc=n.loc)}}class f extends Error{constructor(){super("Uncompilable code structures"),this.declaredRootClass="esri.arcade.arcadeuncompilableerror",Error.captureStackTrace&&Error.captureStackTrace(this,f)}}function m(e,t,n){return"esri.arcade.arcadeexecutionerror"===n.declaredRootClass||"esri.arcade.arcadecompilationerror"===n.declaredRootClass?null===n.loc&&t?.loc?new l(n,{cause:n}):n:("esri.arcade.featureset.support.featureseterror"===n.declaredRootClass||"esri.arcade.featureset.support.sqlerror"===n.declaredRootClass||n.declaredRootClass,t?.loc?new l(n,{cause:n}):n)}var h;!function(e){e.UnrecognizedUri="UnrecognizedUri",e.UnsupportedUriProtocol="UnsupportedUriProtocol"}(h||(h={}));const p={[h.UnrecognizedUri]:"Unrecognized uri - {uri}",[h.UnsupportedUriProtocol]:"Unrecognized uri protocol"};class y extends Error{constructor(e,t){super((0,s.HC)(p[e],t)),this.declaredRootClass="esri.arcade.arcademoduleerror",Error.captureStackTrace&&Error.captureStackTrace(this,y)}}},92400:(e,t,n)=>{n.d(t,{CU:()=>a,UQ:()=>o,fF:()=>i,o6:()=>s});var r=n(74887);class i{constructor(){}}function s(e,t,n){if(e instanceof i&&!(e instanceof a)){const r=new a;return r.fn=e,r.parameterEvaluator=n,r.context=t,r}return e}class o extends i{constructor(e){super(),this.fn=e}createFunction(e){return(...t)=>this.fn(e,{preparsed:!0,arguments:t})}call(e,t){return this.fn(e,t)}marshalledCall(e,t,n,o){return o(e,t,((t,l,u)=>{u=u.map((t=>t instanceof i&&!(t instanceof a)?s(t,e,o):t));const c=this.call(n,{args:u});return(0,r.$X)(c)?c.then((e=>s(e,n,o))):c}))}}class a extends i{constructor(){super(...arguments),this.fn=null,this.context=null}createFunction(e){return this.fn.createFunction(this.context)}call(e,t){return this.fn.marshalledCall(e,t,this.context,this.parameterEvaluator)}marshalledCall(e,t,n){return this.fn.marshalledCall(e,t,this.context,this.parameterEvaluator)}}},93818:(e,t,n)=>{n.d(t,{A:()=>r});class r{constructor(e=[]){this._elements=e}length(){return this._elements.length}get(e){return this._elements[e]}toArray(){return this.slice()}slice(e=0,t=this.length()){const n=[];for(let r=e;r<t;r++)n.push(this.get(r));return n}}},98453:(e,t,n)=>{n.d(t,{m:()=>r});const r=new(n(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},99719:(e,t,n)=>{n.d(t,{x:()=>r});class r{}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3367],{2272:(e,t,n)=>{n.d(t,{Dl:()=>u,gf:()=>d,jV:()=>l,lF:()=>c});var r=n(92602),i=n(70333),s=n(4718),o=n(84952),a=n(926);function l(e,t){return t?{...t,query:{...e??{},...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,o.An)(e):(0,s.o8)(e)}function c(e,t,n){const r={};for(const i in e){if("declaredClass"===i)continue;const s=e[i];if(null!=s&&"function"!=typeof s)if(Array.isArray(s))r[i]=s.map((e=>c(e)));else if("object"==typeof s)if(s.toJSON){const e=s.toJSON(n?.[i]);r[i]=t?e:JSON.stringify(e)}else r[i]=t?s:JSON.stringify(s);else r[i]=s}return r}async function d(e,t,s){const o=function(e,t){return e?t&&(0,a.Qc)(e)?t:(0,a.CG)(e)??i.id?.findCredential(e)?.token:null}(e,t);if(o)return o;!i.id&&r.A.request.useIdentity&&await Promise.all([n.e(7292),n.e(3747)]).then(n.bind(n,73747));const l=await i.id.getCredential(e,s);return l?.token}},3330:(e,t,n)=>{n.d(t,{GB:()=>i,Qo:()=>o,Y4:()=>s});var r=n(96285);class i{static{this.instance=new r.oh("Etc/UTC")}}function s(e){return e instanceof r.bo?e===i.instance:"unknown"===e?.toString().toLowerCase()}function o(e){return s(e)?i.instance:e}},3367:(e,t,n)=>{n.d(t,{A:()=>N,B:()=>b,P:()=>y,g:()=>T,r:()=>w});var r=n(48938),i=n(66395),s=n(85935),o=n(78878),a=n(49186),l=n(53966),u=n(91869),c=n(20655),d=n(45475),f=n(67090),m=n(62791),h=n(14942),p=n(54218);class y{constructor(e,t){this.portal=e,this._debugLog=t}async translate(e){this.portal.loaded||await this.portal.load();const t=this.portal.helperServices?.aiUtilityServices;if(null==t)return{success:!1};const n=t.url+t.translateUtility;try{return{success:!0,results:(await(0,d.T)(n,e,{authMode:"no-prompt"})).map((e=>e.toJSON()))}}catch(e){return null!=this._debugLog&&(e instanceof Error||e instanceof a.A)&&this._debugLog(`TranslateText error: ${e.message}`),l.A.getLogger("esri.arcade.functions.aiServices").error(e),{success:!1}}}}class g{constructor(e,t,n){this._parameters=e,this._maxTotalContentSize=t,this._maxContentsLength=n,this._requests=[],this._normalizedContents=new Map,this._contentsTotalSize=0}tryAdd(e){const t=new Set(e.filter((e=>!this._normalizedContents.has(e.text))).map((e=>e.text)));if(this._requests.length+t.size>this._maxContentsLength)return null;let n=0;for(const e of t)n+=e.length;if((n+this._contentsTotalSize)*(this._parameters.to.length??1)>this._maxTotalContentSize)return null;const r=this._requests.length;for(const{key:t,text:n}of e)(0,u.tE)(this._normalizedContents,n,(()=>[])).push({batchIdx:r,key:t});return this._requests.push(e),this._contentsTotalSize+=n,r}async send(e){const t=[],n=[];let r=0;for(const[e,i]of this._normalizedContents)t.push(new f.A({key:String(r++),text:e})),n.push(i);const i=new m.A(this._parameters);i.contents=t;const s=await e.translate(i);if(!s.success)return Array.from(this._requests,(()=>s));const o=Array.from(this._requests,(()=>({success:!0,results:[]})));for(const e of s.results){const t=Number(e.key);for(const r of n[t])o[r.batchIdx].results.push({...e,key:r.key})}return o}}function T(e){const t=[...new Set(e.to)].sort(),n=e.from??null,r=e.portalUrl,i=e.translator,s=e.apiKey??null;return JSON.stringify([t,n,r,i,s])}async function S(e,t,n){try{return(await e.yieldFor(n))[t]}catch{return{success:!1}}}class b{constructor(e,t,{maxTotalContentSize:n=5e4,maxContentsLength:r=1e3}={}){this._executor=e,this._service=t,this._openBatches=new Map,this._maxTotalContentSize=n,this._maxContentsLength=r}create(e){return{translate:async t=>{const n=T(t),{contents:r,to:i,from:s,translator:o,portalUrl:a,apiKey:l}=t;if(null==i)return{success:!1};if(null==r||r.every((e=>0===e.text.length)))return{success:!1};const u=this._openBatches.get(n);if(null!=u){const t=u.data.tryAdd(r);if(null!=t)return await S(e,t,u);u.send()}const c=new g({to:i,from:s,translator:o,portalUrl:a,apiKey:l},this._maxTotalContentSize,this._maxContentsLength),d=c.tryAdd(r);if(null!=d){const t=this._executor.openBatch(c,{open:e=>{this._openBatches.set(n,e)},execute:e=>e.send(this._service),close:e=>{this._openBatches.get(n)===e&&this._openBatches.delete(n)}});return await S(e,d,t)}return await this._service.translate(t)}}}}function w(e){"async"===e.mode&&(e.functions[(0,r.X)("TranslateText")]=function(t,n){return e.standardFunctionAsync(t,n,(async(e,t,n)=>{if((0,o.D)(n,2,3,e,t),!(0,p.Kg)(n[0])&&!(0,p.cy)(n[0])&&!(0,o.m)(n[0]))throw new s.D$(e,s.TX.InvalidParameter,t);const r=(0,o.M)(n[0]);if(!(0,p.Kg)(n[1])&&!(0,p.cy)(n[1])&&!(0,o.m)(n[1]))throw new s.D$(e,s.TX.InvalidParameter,t);const a=(0,o.M)(n[1]);let l=null;if(n.length>=3){if(!(0,p.Kg)(n[2]))throw new s.D$(e,s.TX.InvalidParameter,t);l=n[2]}const u=r.map(((e,t)=>new f.A({key:String(t),text:e}))),d=e.services?.portal??c.A.getDefault(),g=new m.A({to:a,contents:u,from:l,portalUrl:d.url}),S=new Map;let b=null;if(null!=e.lrucache){const t=e.lrucache;b??=T(g),g.contents=g.contents?.filter((e=>{const n=t.getCachedTranslation(b,e.text);return null==n||(S.set(e.key,{...n,key:e.key,text:e.text}),!1)}))}if(g.contents?.length){const t=e.services?.translation??new y(d,e.console),n=await t.translate(g);if(!n.success)return new i.A({success:!1});for(const t of n.results){const n=g.contents?.find((e=>e.key===t.key))?.text;if(null==n)throw new s.D$(null,s.TX.NeverReach,null);S.set(t.key,t),null!=e.lrucache&&(b??=T(g),e.lrucache.setCachedTranslation(b,n,{detectedLanguage:t.detectedLanguage,translation:t.translation}))}}const w=Array.from(u,(t=>{const n=h.A.fromJSON(S.get(t.key));if(null==n)throw new s.D$(null,s.TX.NeverReach,null);return n.text=t.text,i.A.convertJsonToArcade(n.toJSON(),e.timeZone??"system",!0)}));return new i.A({success:!0,results:w})}))})}const N=Object.freeze(Object.defineProperty({__proto__:null,BatchTranslationServiceFactory:b,PortalTranslationService:y,getTranslateParametersKey:T,registerFunctions:w},Symbol.toStringTag,{value:"Module"}))},6800:(e,t,n)=>{n.d(t,{G:()=>l,y:()=>o});var r=n(99719),i=n(78878),s=n(54218);function o(e){a=e}let a;function l(e){return null===e?null:(0,i.g)(e)?e.clone():(0,i.d)(e)?e:(0,i.l)(e)?e.clone():(0,i.m)(e)?e.toArray().map((e=>l(e))):(0,s.cy)(e)?e.map((e=>l(e))):(0,i.n)(e)?a.createFromArcadeFeature(e):(0,i.o)(e)||(0,i.p)(e)?e:(0,i.q)(e)||"esri.arcade.Attachment"===e?.declaredClass?e.deepClone():("esri.arcade.Portal"===e?.declaredClass||(0,i.r)(e)||e instanceof r.x||(0,i.i)(e),e)}},7335:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(93818),i=n(84939);class s extends r.A{constructor(e,t,n,r,i){super(e),this._lazyPath=[],this._hasZ=!1,this._hasM=!1,this._hasZ=n,this._hasM=r,this._spRef=t,this._cacheId=i}get(e){if(void 0===this._lazyPath[e]){const t=this._elements[e];if(void 0===t)return;this._lazyPath[e]=new i.A(t,this._spRef,this._hasZ,this._hasM,this._cacheId,e)}return this._lazyPath[e]}equalityTest(e){return e===this||null!==e&&e instanceof s!=0&&e.getUniqueHash()===this.getUniqueHash()}getUniqueHash(){return this._cacheId.toString()}}},14607:(e,t,n)=>{n.d(t,{B:()=>u,GP:()=>a,qg:()=>c});var r=n(799),i=n(73444);const s={ar:[".",","],bg:[","," "],bs:[",","."],ca:[",","."],cs:[","," "],da:[",","."],de:[",","."],"de-ch":[".","’"],el:[",","."],en:[".",","],"en-au":[".",","],es:[",","."],"es-mx":[".",","],et:[","," "],fi:[","," "],fr:[","," "],"fr-ch":[","," "],he:[".",","],hi:[".",",","#,##,##0.###"],hr:[",","."],hu:[","," "],id:[",","."],it:[",","."],"it-ch":[".","’"],ja:[".",","],ko:[".",","],lt:[","," "],lv:[","," "],mk:[",","."],nb:[","," "],nl:[",","."],no:[","," "],pl:[","," "],pt:[",","."],"pt-pt":[","," "],ro:[",","."],ru:[","," "],sk:[","," "],sl:[",","."],sr:[",","."],sv:[","," "],th:[".",","],tr:[",","."],uk:[","," "],vi:[",","."],zh:[".",","]};function o(e=(0,i.JK)()){let t=(e=e.toLowerCase())in s;if(!t){const n=e.split("-");n.length>1&&n[0]in s&&(e=n[0],t=!0),t||(e="en")}const[n,r,o="#,##0.###"]=s[e];return{decimal:n,group:r,pattern:o}}function a(e,t){const n=o((t={...t}).locale);t.customs=n;const r=t.pattern||n.pattern;return isNaN(e)||Math.abs(e)===1/0?null:function(e,t,n){const r=(n=n||{}).customs.group,i=n.customs.decimal,s=t.split(";"),o=s[0];if((t=s[e<0?1:0]||"-"+o).includes("%"))e*=100;else if(t.includes("‰"))e*=1e3;else{if(t.includes("¤"))throw new Error("currency notation not supported");if(t.includes("E"))throw new Error("exponential notation not supported")}const a=l,u=o.match(a);if(!u)throw new Error("unable to find a number expression in pattern: "+t);return!1===n.fractional&&(n.places=0),t.replace(a,function(e,t,n){!0===(n=n||{}).places&&(n.places=0),n.places===1/0&&(n.places=6);const r=t.split("."),i="string"==typeof n.places&&n.places.indexOf(",");let s=n.places;i?s=n.places.slice(i+1):+s>=0||(s=(r[1]||[]).length),n.round<0||(e=Number(e.toFixed(Number(s))));const o=String(Math.abs(e)).split("."),a=o[1]||"";if(r[1]||n.places){i&&(n.places=n.places.slice(0,Math.max(0,i)));const e=void 0!==n.places?n.places:r[1]&&r[1].lastIndexOf("0")+1;+e>a.length&&(o[1]=a.padEnd(Number(e),"0")),+s<a.length&&(o[1]=a.slice(0,Math.max(0,Number(s))))}else o[1]&&o.pop();const l=r[0].replace(",","");let u=l.indexOf("0");-1!==u&&(u=l.length-u,u>o[0].length&&(o[0]=o[0].padStart(u,"0")),l.includes("#")||(o[0]=o[0].slice(-u)));let c,d,f=r[0].lastIndexOf(",");if(-1!==f){c=r[0].length-f-1;const e=r[0].slice(0,f);f=e.lastIndexOf(","),-1!==f&&(d=e.length-f-1)}const m=[];for(let e=o[0];e;){const t=e.length-c;m.push(t>0?e.slice(Math.max(0,t)):e),e=t>0?e.slice(0,t):"",d&&(c=d,d=void 0)}return o[0]=m.reverse().join(n.group||","),o.join(n.decimal||".")}(e,u[0],{decimal:i,group:r,places:n.places,round:n.round}))}(e,r,t)}const l=/[#0,]*[#0](?:\.0*#*)?/;function u(e){const t=o((e=e||{}).locale),n=e.pattern||t.pattern,i=t.group,s=t.decimal;let a=1;if(n.includes("%"))a/=100;else if(n.includes("‰"))a/=1e3;else if(n.includes("¤"))throw new Error("currency notation not supported");const u=n.split(";");1===u.length&&u.push("-"+u[0]);const c=f(u,(t=>(t="(?:"+(0,r.Cj)(t,".")+")").replace(l,(t=>{const n={signed:!1,separator:e.strict?i:[i,""],fractional:e.fractional,decimal:s,exponent:!1},r=t.split(".");let o=e.places;1===r.length&&1!==a&&(r[1]="###"),1===r.length||0===o?n.fractional=!1:(void 0===o&&(o=e.pattern?r[1].lastIndexOf("0")+1:1/0),o&&null==e.fractional&&(n.fractional=!0),!e.places&&+o<r[1].length&&(o+=","+r[1].length),n.places=o);const l=r[0].split(",");return l.length>1&&(n.groupSize=l.pop().length,l.length>1&&(n.groupSize2=l.pop().length)),"("+function(e){"places"in(e=e||{})||(e.places=1/0),"string"!=typeof e.decimal&&(e.decimal="."),"fractional"in e&&!String(e.places).startsWith("0")||(e.fractional=[!0,!1]),"exponent"in e||(e.exponent=[!0,!1]),"eSigned"in e||(e.eSigned=[!0,!1]);const t=d(e),n=f(e.fractional,(t=>{let n="";return t&&0!==e.places&&(n="\\"+e.decimal,e.places===1/0?n="(?:"+n+"\\d+)?":n+="\\d{"+e.places+"}"),n}),!0);let r=t+n;return n&&(r="(?:(?:"+r+")|(?:"+n+"))"),r+f(e.exponent,(t=>t?"([eE]"+d({signed:e.eSigned})+")":""))}(n)+")"}))),!0);return{regexp:c.replaceAll(/[\xa0 ]/g,"[\\s\\xa0]"),group:i,decimal:s,factor:a}}function c(e,t){const n=u(t),r=new RegExp("^"+n.regexp+"$").exec(e);if(!r)return NaN;let i=r[1];if(!r[1]){if(!r[2])return NaN;i=r[2],n.factor*=-1}return i=i.replaceAll(new RegExp("["+n.group+"\\s\\xa0]","g"),"").replace(n.decimal,"."),Number(i)*n.factor}function d(e){return"signed"in(e=e||{})||(e.signed=[!0,!1]),"separator"in e?"groupSize"in e||(e.groupSize=3):e.separator="",f(e.signed,(e=>e?"[-+]":""),!0)+f(e.separator,(t=>{if(!t)return"(?:\\d+)";" "===(t=(0,r.Cj)(t))?t="\\s":" "===t&&(t="\\s\\xa0");const n=e.groupSize,i=e.groupSize2;if(i){const e="(?:0|[1-9]\\d{0,"+(i-1)+"}(?:["+t+"]\\d{"+i+"})*["+t+"]\\d{"+n+"})";return n-i>0?"(?:"+e+"|(?:0|[1-9]\\d{0,"+(n-1)+"}))":e}return"(?:0|[1-9]\\d{0,"+(n-1)+"}(?:["+t+"]\\d{"+n+"})*)"}),!0)}const f=(e,t,n)=>{if(!Array.isArray(e))return t(e);const r=[];for(let n=0;n<e.length;n++)r.push(t(e[n]));return m(r.join("|"),Boolean(n))},m=(e,t)=>"("+(t?"?:":"")+e+")"},14942:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(90237),i=n(25482),s=n(10107),o=n(40608);let a=class extends i.A{constructor(e){super(e),this.text=null,this.detectedLanguage="en",this.detectedLanguageScore=-1}};(0,r._)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"key",void 0),(0,r._)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"text",void 0),(0,r._)([(0,s.MZ)({type:String,json:{read:{source:"detectedLanguage.language"},write:{target:"detectedLanguage.language"}}})],a.prototype,"detectedLanguage",void 0),(0,r._)([(0,s.MZ)({type:Number,json:{read:{source:"detectedLanguage.score"},write:{target:"detectedLanguage.score"}}})],a.prototype,"detectedLanguageScore",void 0),(0,r._)([(0,s.MZ)({type:Object,json:{write:!0}})],a.prototype,"translation",void 0),a=(0,r._)([(0,o.$)("esri.rest.support.TranslateResult")],a)},15032:(e,t,n)=>{n.d(t,{k:()=>l});var r=n(78502),i=n(73444),s=n(96285);function o(e){if(!e)return"";const t=/(a|A|hh?|HH?|mm?|ss?|SSS|S|.)/g;let n="";for(const r of e.match(t)||[])switch(r){case"SSS":case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":n+=r;break;case"A":case"a":n+="a";break;default:n+=`'${r}'`}return n}const a="esri.core.sql.timeonly";class l{constructor(e,t,n,r){this._hour=e,this._minute=t,this._second=n,this._millisecond=r,this.declaredRootClass=a}static isTimeOnly(e){return"object"==typeof e&&null!=e&&"declaredRootClass"in e&&e.declaredRootClass===a}get hour(){return this._hour}get minute(){return this._minute}get second(){return this._second}get millisecond(){return this._millisecond}equals(e){return l.isTimeOnly(e)&&e.hour===this.hour&&e.minute===this.minute&&e.second===this.second&&e.millisecond===this.millisecond}clone(){return new l(this.hour,this.minute,this.second,this.millisecond)}isValid(){return(0,r.Fq)(this.hour)&&(0,r.Fq)(this.minute)&&(0,r.Fq)(this.second)&&(0,r.Fq)(this.millisecond)&&this.hour>=0&&this.hour<24&&this.minute>=0&&this.minute<60&&this.second>=0&&this.second<60&&this.millisecond>=0&&this.millisecond<1e3}toString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}`+(this.millisecond>0?"."+this.millisecond.toString().padStart(3,"0"):"")}toSQLValue(){return this.toString()}toSQLWithKeyword(){return`time '${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}${this.millisecond>0?"."+this.millisecond.toString().padStart(3,"0"):""}'`}toStorageString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}`}toFormat(e=null){return null===e||""===e?this.toString():(e=o(e))?s.c9.local(1970,1,1,this._hour,this._minute,this._second,this._millisecond).toFormat(e,{locale:(0,i.JK)(),numberingSystem:"latn"}):""}toNumber(){return this.millisecond+1e3*this.second+1e3*this.minute*60+60*this.hour*60*1e3}static fromParts(e,t,n,r){const i=new l(e,t,n,r);return i.isValid()?i:null}static fromReader(e){if(!e)return null;const t=e.split(":");return 3!==t.length?null:new l(parseInt(t[0],10),parseInt(t[1],10),parseInt(t[2],10),0)}static fromMilliseconds(e){if(e>864e5||e<0)return null;const t=Math.floor(e/1e3%60),n=Math.floor(e/6e4%60),r=Math.floor(e/36e5%24),i=Math.floor(e%1e3);return new l(r,n,t,i)}static fromDateJS(e){return new l(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}static fromDateTime(e){return new l(e.hour,e.minute,e.second,e.millisecond)}static fromSqlTimeStampOffset(e){return this.fromDateTime(e.toDateTime())}static fromString(e,t=null){if(""===e)return null;if(null===e)return null;const n=[];t?(t=o(t))&&n.push(t):null!==t&&""!==t||(n.push("HH:mm:ss"),n.push("HH:mm:ss.SSS"),n.push("hh:mm:ss a"),n.push("hh:mm:ss.SSS a"),n.push("HH:mm"),n.push("hh:mm a"),n.push("H:mm"),n.push("h:mm a"),n.push("H:mm:ss"),n.push("h:mm:ss a"),n.push("H:mm:ss.SSS"),n.push("h:mm:ss.SSS a"));for(const t of n){const n=s.c9.fromFormat(e,t);if(n.isValid)return new l(n.hour,n.minute,n.second,n.millisecond)}return null}plus(e,t){switch(e){case"days":case"years":case"months":return this.clone();case"hours":case"minutes":case"seconds":case"milliseconds":return l.fromDateTime(this.toUTCDateTime().plus({[e]:t}))}return null}toUTCDateTime(){return s.c9.utc(1970,1,1,this.hour,this.minute,this.second,this.millisecond)}difference(e,t){switch(t.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(e.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return"M"===t?this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(e.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(e.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(e.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(e.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(e.toUTCDateTime(),"years").years}}}},20437:(e,t,n)=>{n.d(t,{A:()=>p});var r,i=n(90237),s=n(66552),o=n(25482),a=n(10107),l=n(56507),u=(n(44208),n(87811),n(93223)),c=n(36005),d=n(40608),f=n(80451),m=n(98453);const h=new s.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let p=class extends o.A{static{r=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?.value??null}readValueType(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?h.fromJSON(n.fieldValueType):null}clone(){return new r({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,i._)([(0,a.MZ)({type:String,json:{write:!0}})],p.prototype,"alias",void 0),(0,i._)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],p.prototype,"defaultValue",void 0),(0,i._)([(0,a.MZ)()],p.prototype,"description",void 0),(0,i._)([(0,c.w)("description")],p.prototype,"readDescription",null),(0,i._)([(0,a.MZ)({types:f.gK,json:{read:{reader:f.rS},write:!0}})],p.prototype,"domain",void 0),(0,i._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],p.prototype,"editable",void 0),(0,i._)([(0,a.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],p.prototype,"length",void 0),(0,i._)([(0,a.MZ)({type:String,json:{write:!0}})],p.prototype,"name",void 0),(0,i._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],p.prototype,"nullable",void 0),(0,i._)([(0,u.e)(m.m)],p.prototype,"type",void 0),(0,i._)([(0,a.MZ)()],p.prototype,"valueType",void 0),(0,i._)([(0,c.w)("valueType",["description"])],p.prototype,"readValueType",null),(0,i._)([(0,a.MZ)({type:Boolean,json:{read:!1}})],p.prototype,"visible",void 0),p=r=(0,i._)([(0,d.$)("esri.layers.support.Field")],p)},24097:(e,t,n)=>{n.d(t,{K:()=>r});const r={type:String,json:{read:{source:"token"},write:{target:"token"}}}},33325:(e,t,n)=>{n.d(t,{$P:()=>m,At:()=>w,J6:()=>i,JB:()=>D,Lk:()=>h,NI:()=>A,Qi:()=>N,eB:()=>_,eg:()=>g,f0:()=>y,gO:()=>T,ik:()=>S,ke:()=>d,nE:()=>f,rX:()=>p,yT:()=>b,zl:()=>r});var r,i,s,o=n(66131),a=n(44729),l=n(15032),u=n(20437),c=n(96285);function d(e){return u.A.fromJSON(e.toJSON())}function f(e){return e.toJSON?e.toJSON():e}function m(e){return e instanceof Date}function h(e){return e instanceof c.c9}function p(e){return e instanceof o.lY}function y(e){return e instanceof a.n}function g(e){return e instanceof l.k}(s=r||(r={}))[s.Standardised=0]="Standardised",s[s.StandardisedNoInterval=1]="StandardisedNoInterval",s[s.SqlServer=2]="SqlServer",s[s.Oracle=3]="Oracle",s[s.Postgres=4]="Postgres",s[s.PGDB=5]="PGDB",s[s.FILEGDB=6]="FILEGDB",s[s.NotEvaluated=7]="NotEvaluated",function(e){e[e.InFeatureSet=0]="InFeatureSet",e[e.NotInFeatureSet=1]="NotInFeatureSet",e[e.Unknown=2]="Unknown"}(i||(i={}));const T=1e3,S={point:"point",polygon:"polygon",polyline:"polyline",multipoint:"multipoint",extent:"extent",esriGeometryPoint:"point",esriGeometryPolygon:"polygon",esriGeometryPolyline:"polyline",esriGeometryMultipoint:"multipoint",esriGeometryEnvelope:"extent",envelope:"extent"},b={point:"esriGeometryPoint",polygon:"esriGeometryPolygon",polyline:"esriGeometryPolyline",multipoint:"esriGeometryMultipoint",extent:"esriGeometryEnvelope",esriGeometryPoint:"esriGeometryPoint",esriGeometryPolygon:"esriGeometryPolygon",esriGeometryPolyline:"esriGeometryPolyline",esriGeometryMultipoint:"esriGeometryMultipoint",esriGeometryEnvelope:"esriGeometryEnvelope",envelope:"esriGeometryEnvelope"},w={"small-integer":"esriFieldTypeSmallInteger",integer:"esriFieldTypeInteger",long:"esriFieldTypeLong",single:"esriFieldTypeSingle",double:"esriFieldTypeDouble",string:"esriFieldTypeString",date:"esriFieldTypeDate","date-only":"esriFieldTypeDateOnly","time-only":"esriFieldTypeTimeOnly","timestamp-offset":"esriFieldTypeTimestampOffset",oid:"esriFieldTypeOID",geometry:"esriFieldTypeGeometry",blob:"esriFieldTypeBlob",raster:"esriFieldTypeRaster",guid:"esriFieldTypeGUID","global-id":"esriFieldTypeGlobalID",xml:"esriFieldTypeXML","big-integer":"esriFieldTypeBigInteger",esriFieldTypeSmallInteger:"esriFieldTypeSmallInteger",esriFieldTypeInteger:"esriFieldTypeInteger",esriFieldTypeLong:"esriFieldTypeLong",esriFieldTypeSingle:"esriFieldTypeSingle",esriFieldTypeDouble:"esriFieldTypeDouble",esriFieldTypeString:"esriFieldTypeString",esriFieldTypeDate:"esriFieldTypeDate",esriFieldTypeDateOnly:"esriFieldTypeDateOnly",esriFieldTypeTimeOnly:"esriFieldTypeTimeOnly",esriFieldTypeTimestampOffset:"esriFieldTypeTimestampOffset",esriFieldTypeOID:"esriFieldTypeOID",esriFieldTypeGeometry:"esriFieldTypeGeometry",esriFieldTypeBlob:"esriFieldTypeBlob",esriFieldTypeRaster:"esriFieldTypeRaster",esriFieldTypeGUID:"esriFieldTypeGUID",esriFieldTypeGlobalID:"esriFieldTypeGlobalID",esriFieldTypeXML:"esriFieldTypeXML",esriFieldTypeBigInteger:"esriFieldTypeBigInteger"};function N(e){return void 0===e?"":e=(e=(e=e.replace(/\/featureserver\/[0-9]*/i,"/FeatureServer")).replace(/\/mapserver\/[0-9]*/i,"/MapServer")).split("?")[0]}function D(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});const n="boolean"==typeof t.cycles&&t.cycles,r=t.cmp&&(i=t.cmp,function(e){return function(t,n){const r={key:t,value:e[t]},s={key:n,value:e[n]};return i(r,s)}});var i;const s=[];return function e(t){if(t?.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0===t)return;if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);let i,o;if(Array.isArray(t)){for(o="[",i=0;i<t.length;i++)i&&(o+=","),o+=e(t[i])||"null";return o+"]"}if(null===t)return"null";if(s.includes(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}const a=s.push(t)-1,l=Object.keys(t).sort(r?.(t));for(o="",i=0;i<l.length;i++){const n=l[i],r=e(t[n]);r&&(o&&(o+=","),o+=JSON.stringify(n)+":"+r)}return s.splice(a,1),"{"+o+"}"}(e)}function A(e){switch(e.type){case"catalog":case"csv":case"feature":case"geojson":case"knowledge-graph-sublayer":case"oriented-imagery":case"subtype-group":case"wfs":return!0;default:return!1}}function _(e){switch(e.type){case"catalog-footprint":case"subtype-sublayer":return!0;default:return A(e)}}},39357:(e,t,n)=>{n.d(t,{H:()=>l});var r,i=n(90237),s=n(25482),o=n(10107),a=(n(44208),n(53966),n(87811),n(40608));let l=r=class extends s.A{constructor(e){super(e),this.name=null,this.code=null}clone(){return new r({name:this.name,code:this.code})}};(0,i._)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],l.prototype,"name",void 0),(0,i._)([(0,o.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],l.prototype,"code",void 0),l=r=(0,i._)([(0,a.$)("esri.layers.support.CodedValue")],l)},44729:(e,t,n)=>{n.d(t,{n:()=>l});var r=n(66131),i=n(73444),s=n(96285);function o(e){e=e.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let t="";const n=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;for(const r of e.match(n)||[])switch(r){case"D":t+="d";break;case"DD":t+="dd";break;case"DDD":t+="o";break;case"d":t+="c";break;case"ddd":t+="ccc";break;case"dddd":t+="cccc";break;case"M":t+="L";break;case"MM":t+="LL";break;case"MMM":t+="LLL";break;case"MMMM":t+="LLLL";break;case"YY":t+="yy";break;case"Y":case"YYYY":t+="yyyy";break;case"Q":t+="q";break;case"X":case"x":t+=r;break;default:r.length>=2&&"["===r.slice(0,1)&&"]"===r.slice(-1)?t+=`'${r.slice(1,-1)}'`:t+=`'${r}'`}return t}const a="esri.core.sql.dateonly";class l{constructor(e,t,n){this._year=e,this._month=t,this._day=n,this.declaredRootClass=a}static isDateOnly(e){return"object"==typeof e&&null!=e&&"declaredRootClass"in e&&e.declaredRootClass===a}get month(){return this._month}get monthJS(){return this._month-1}get year(){return this._year}get day(){return this._day}get isValid(){return this.toDateTime("unknown").isValid}equals(e){return l.isDateOnly(e)&&e.day===this.day&&e.month===this.month&&e.year===this.year}clone(){return new l(this._year,this._month,this._day)}toDateTime(e){return s.c9.fromObject({day:this.day,month:this.month,year:this.year},{zone:(0,r.mT)(e)})}toDateTimeLuxon(e){return s.c9.fromObject({day:this.day,month:this.month,year:this.year},{zone:(0,r.mT)(e)})}toString(){return`${this.year.toString().padStart(4,"0")}-${this.month.toString().padStart(2,"0")}-${this.day.toString().padStart(2,"0")}`}toFormat(e=null,t=!0){if(null===e||""===e)return this.toString();if(t&&(e=o(e)),!e)return"";const n=this.toDateTime("unknown");return r.lY.dateTimeToArcadeDate(n).toFormat(e,{locale:(0,i.JK)(),numberingSystem:"latn"})}toArcadeDate(){const e=this.toDateTime("unknown");return r.lY.dateTimeToArcadeDate(e)}toNumber(){return this.toDateTime("unknown").toMillis()}toJSDate(){return this.toDateTime("unknown").toJSDate()}toStorageFormat(){return this.toFormat("yyyy-LL-dd",!1)}toSQLValue(){return this.toFormat("yyyy-LL-dd",!1)}toSQLWithKeyword(){return"date '"+this.toFormat("yyyy-LL-dd",!1)+"'"}plus(e,t){return l.fromDateTime(this.toUTCDateTime().plus({[e]:t}))}toUTCDateTime(){return s.c9.utc(this.year,this.month,this.day,0,0,0,0)}difference(e,t){switch(t.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(e.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return"M"===t?this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(e.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(e.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(e.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(e.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(e.toUTCDateTime(),"years").years}}static fromMilliseconds(e){const t=s.c9.fromMillis(e,{zone:s.mQ.utcInstance});return t.isValid?l.fromParts(t.year,t.month,t.day):null}static fromSeconds(e){const t=s.c9.fromSeconds(e,{zone:s.mQ.utcInstance});return t.isValid?l.fromParts(t.year,t.month,t.day):null}static fromReader(e){if(!e)return null;const t=e.split("-");return 3!==t.length?null:new l(parseInt(t[0],10),parseInt(t[1],10),parseInt(t[2],10))}static fromParts(e,t,n){const r=new l(e,t,n);return!1===r.isValid?null:r}static fromDateJS(e){return l.fromParts(e.getFullYear(),e.getMonth()+1,e.getDay())}static fromDateTime(e){return l.fromParts(e.year,e.month,e.day)}static fromSqlTimeStampOffset(e){return this.fromDateTime(e.toDateTime())}static fromString(e,t=null){if(""===e)return null;if(null===e)return null;const n=[];if(t)(t=o(t))&&n.push(t);else if(null===t||""===t){const t=s.c9.fromISO(e,{setZone:!0});return t.isValid?l.fromParts(t.year,t.month,t.day):null}for(const r of n){const n=s.c9.fromFormat(e,t??r);if(n.isValid)return new l(n.year,n.month,n.day)}return null}static fromNow(e="system"){const t=s.c9.fromJSDate(new Date).setZone((0,r.mT)(e));return new l(t.year,t.month,t.day)}}},45475:(e,t,n)=>{n.d(t,{T:()=>o});var r=n(78888),i=n(2272),s=n(14942);async function o(e,t,n){const o=t.toJSON();o.contents=JSON.stringify(o.contents),o.token=await(0,i.gf)(t.portalUrl,t.apiKey,{signal:n?.signal,prompt:"no-prompt"!==n?.authMode});const a=(0,i.Dl)(e),l=(0,i.jV)(a.query,{...n,query:o,method:"post",authMode:"anonymous"});return(await(0,r.A)(a.path,l)).data.results.map((e=>s.A.fromJSON(e)))}},48938:(e,t,n)=>{n.d(t,{X:()=>i,_:()=>s});var r=n(85935);function i(e){if("string"==typeof e)return e.toLowerCase();if("name"in e)return e.name.toLowerCase();if("string"!=typeof e.value)throw new r.D$(null,r.TX.InvalidIdentifier,null);return e.value.toLowerCase()}const s=Object.freeze({aborted:!1})},53177:(e,t,n)=>{n.d(t,{A:()=>d});var r,i=n(90237),s=n(4718),o=n(10107),a=(n(44208),n(53966),n(93223)),l=n(40608),u=n(39357),c=n(76357);let d=class extends c.A{static{r=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const n=String(e);this.codedValues.some((e=>(String(e.code)===n&&(t=e.name),!!t)))}return t}clone(){return new r({codedValues:(0,s.o8)(this.codedValues),name:this.name})}};(0,i._)([(0,o.MZ)({type:[u.H],json:{write:{isRequired:!0}}})],d.prototype,"codedValues",void 0),(0,i._)([(0,a.e)({codedValue:"coded-value"})],d.prototype,"type",void 0),d=r=(0,i._)([(0,l.$)("esri.layers.support.CodedValueDomain")],d)},62791:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(90237),i=n(25482),s=n(10107),o=n(40608),a=n(24097),l=n(67090);let u=class extends i.A{constructor(e){super(e),this.to=null,this.contents=null,this.portalUrl="https://www.arcgis.com",this.translator="esri",this.from=null,this.apiKey=null}};(0,r._)([(0,s.MZ)({type:[String],json:{write:!0}})],u.prototype,"to",void 0),(0,r._)([(0,s.MZ)({type:[l.A],json:{write:!0}})],u.prototype,"contents",void 0),(0,r._)([(0,s.MZ)({type:String,json:{write:!0}})],u.prototype,"portalUrl",void 0),(0,r._)([(0,s.MZ)({type:String,json:{write:!0,default:"esri"}})],u.prototype,"translator",void 0),(0,r._)([(0,s.MZ)({type:String,json:{write:!0}})],u.prototype,"from",void 0),(0,r._)([(0,s.MZ)(a.K)],u.prototype,"apiKey",void 0),u=(0,r._)([(0,o.$)("esri.rest.support.TranslateParameters")],u)},66131:(e,t,n)=>{n.d(t,{lY:()=>d,mT:()=>f});var r,i=n(799),s=n(3330),o=n(96285);(r||(r={})).TimeZoneNotRecognized="TimeZoneNotRecognized";const a={[r.TimeZoneNotRecognized]:"Timezone identifier has not been recognized."};class l extends Error{constructor(e,t){super((0,i.HC)(a[e],t)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,l)}}function u(e,t,n){return e<t?e-t:e>n?e-n:0}function c(e,t,n){return e<t?t:e>n?n:e}class d{constructor(e){this._date=e,this.declaredRootClass="esri.arcade.arcadedate"}static fromParts(e=0,t=1,n=1,r=0,i=0,s=0,a=0,l){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(s)||isNaN(a))return null;const m=o.c9.local(e,t).daysInMonth;let h=o.c9.fromObject({day:c(n,1,m),year:e,month:c(t,1,12),hour:c(r,0,23),minute:c(i,0,59),second:c(s,0,59),millisecond:c(a,0,999)},{zone:f(l)});return h=h.plus({months:u(t,1,12),days:u(n,1,m),hours:u(r,0,23),minutes:u(i,0,59),seconds:u(s,0,59),milliseconds:u(a,0,999)}),new d(h)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(e,t){const n=f(t);return e.isUnknownTimeZone||n===s.GB.instance?d.fromParts(e.year,e.monthJS+1,e.day,e.hour,e.minute,e.second,e.millisecond,n):new d(e._date.setZone(n))}static dateJSToArcadeDate(e){return new d(o.c9.fromJSDate(e,{zone:"system"}))}static dateJSAndZoneToArcadeDate(e,t="system"){const n=f(t);return new d(o.c9.fromJSDate(e,{zone:n}))}static unknownEpochToArcadeDate(e){return new d(o.c9.fromMillis(e,{zone:s.GB.instance}))}static unknownDateJSToArcadeDate(e){return new d(o.c9.fromMillis(e.getTime(),{zone:s.GB.instance}))}static epochToArcadeDate(e,t="system"){const n=f(t);return new d(o.c9.fromMillis(e,{zone:n}))}static dateTimeToArcadeDate(e){return new d(e)}clone(){return new d(this._date)}changeTimeZone(e){const t=f(e);return d.dateTimeToArcadeDate(this._date.setZone(t))}static dateTimeAndZoneToArcadeDate(e,t){const n=f(t);return e.zone===s.GB.instance||n===s.GB.instance?d.fromParts(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond,n):new d(e.setZone(n))}static nowToArcadeDate(e){const t=f(e);return new d(o.c9.fromJSDate(new Date,{zone:t}))}static nowUTCToArcadeDate(){return new d(o.c9.utc())}get isSystem(){return"system"===this.timeZone||this.timeZone===d.systemTimeZoneCanonicalName}equals(e){return this.isSystem&&e.isSystem?this.toNumber()===e.toNumber():this.isUnknownTimeZone===e.isUnknownTimeZone&&this._date.equals(e._date)}get isUnknownTimeZone(){return this._date.zone===s.GB.instance}get isValid(){return this._date.isValid}get hour(){return this._date.hour}get second(){return this._date.second}get day(){return this._date.day}get dayOfWeekISO(){return this._date.weekday}get dayOfWeekJS(){let e=this._date.weekday;return e>6&&(e=0),e}get millisecond(){return this._date.millisecond}get monthISO(){return this._date.month}get weekISO(){return this._date.weekNumber}get yearISO(){return this._date.weekYear}get monthJS(){return this._date.month-1}get year(){return this._date.year}get minute(){return this._date.minute}get zone(){return this._date.zone}get timeZoneOffset(){return this.isUnknownTimeZone?0:this._date.offset}get timeZone(){if(this.isUnknownTimeZone)return"unknown";if("system"===this._date.zone.type)return"system";const e=this.zone;return"fixed"===e.type?0===e.fixed?"UTC":e.formatOffset(0,"short"):e.name}stringify(){return JSON.stringify(this.toJSDate())}plus(e){return new d(this._date.plus(e))}diff(e,t="milliseconds"){return this._date.diff(e._date,t)[t]}toISODate(){return this._date.toISODate()}toISOString(e){return e?this._date.toISO({suppressMilliseconds:!0,includeOffset:!this.isUnknownTimeZone}):this._date.toISO({includeOffset:!this.isUnknownTimeZone})}toISOTime(e,t){return this._date.toISOTime({suppressMilliseconds:e,includeOffset:t&&!this.isUnknownTimeZone})}toFormat(e,t){return this.isUnknownTimeZone&&(e=e.replaceAll("Z","")),this._date.toFormat(e,t)}toJSDate(){return this._date.toJSDate()}toSQLValue(){return this._date.toFormat("yyyy-LL-dd HH:mm:ss")}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}toDateTime(){return this._date}toNumber(){return this._date.toMillis()}getTime(){return this._date.toMillis()}toUTC(){return new d(this._date.toUTC())}toLocal(){return new d(this._date.toLocal())}toString(){return this.toISOString(!0)}static fromReaderAsTimeStampOffset(e){if(!e)return null;const t=o.c9.fromISO(e,{setZone:!0});return new d(t)}}function f(e,t=!0){if(e instanceof o.bo)return e;if("system"===e.toLowerCase())return"system";if("utc"===e.toLowerCase())return"UTC";if("unknown"===e.toLowerCase())return s.GB.instance;if(/^[+-]?[0-9]{1,2}([:][0-9]{2})?$/.test(e)){const t=o.mQ.parseSpecifier("UTC"+(e.startsWith("+")||e.startsWith("-")?"":"+")+e);if(t)return t}const n=o.oh.create(e);if(!n.isValid){if(t)throw new l(r.TimeZoneNotRecognized);return null}return n}},66395:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(66131),i=n(6800),s=n(85935),o=n(78878),a=n(91075),l=n(54218);function u(e,t,n=!1,r=!1){if(null==e)return null;if((0,l.Et)(e))return(0,o.t)(e);if((0,l.Lm)(e))return(0,o.e)(e);if((0,l.Kg)(e))return(0,o.f)(e);if((0,o.g)(e))return(0,o.h)(e,t);if((0,o.j)(e))return e;if((0,o.k)(e))return e;if((0,l.cy)(e)){const i=[];for(const s of e)i.push(u(s,t,n,r));return i}if(r&&(0,o.l)(e))return e;const i=new c;i.immutable=!1;for(const s of Object.keys(e)){const o=e[s];void 0!==o&&i.setField(s,u(o,t,n,r))}return i.immutable=n,i}class c{constructor(e){this.declaredClass="esri.arcade.Dictionary",this.plain=!1,this.immutable=!0,this.attributes=e instanceof c?e.attributes:e??{}}field(e){const t=e.toLowerCase(),n=this.attributes[e];if(void 0!==n)return n;for(const e in this.attributes)if(e.toLowerCase()===t)return this.attributes[e];throw new s.D$(null,s.TX.FieldNotFound,null,{key:e})}setField(e,t){if(this.immutable)throw new s.D$(null,s.TX.Immutable,null);if((0,o.i)(t))throw new s.D$(null,s.TX.NoFunctionInDictionary,null);const n=e.toLowerCase();if(t instanceof Date&&(t=r.lY.dateJSToArcadeDate(t)),void 0===this.attributes[e]){for(const e in this.attributes)if(e.toLowerCase()===n)return void(this.attributes[e]=t);this.attributes[e]=t}else this.attributes[e]=t}hasField(e){const t=e.toLowerCase();if(void 0!==this.attributes[e])return!0;for(const e in this.attributes)if(e.toLowerCase()===t)return!0;return!1}keys(){let e=[];for(const t in this.attributes)e.push(t);return e=e.sort(),e}castToText(e=!1){return(0,o.c)(this.attributes,{useNumbersForDates:e})}static convertObjectToArcadeDictionary(e,t,n=!0,r=!1){const i=new c;i.immutable=!1;for(const s in e){const o=e[s];void 0!==o&&i.setField(s.toString(),u(o,t,n,r))}return i.immutable=n,i}static convertJsonToArcade(e,t,n=!1,r=!1){return u(e,t,n,r)}castAsJson(e=null){const t={};for(let n in this.attributes){const r=this.attributes[n];void 0!==r&&(e?.keyTranslate&&(n=e.keyTranslate(n)),t[n]=(0,o.a)(r,e))}return t}async castDictionaryValueAsJsonAsync(e,t,n,r=null,i){const s=await(0,o.b)(n,r,i);return e[t]=s,s}async castAsJsonAsync(e=null,t=null){const n={},i=[];for(let s in this.attributes){const l=this.attributes[s];t?.keyTranslate&&(s=t.keyTranslate(s)),void 0!==l&&((0,o.d)(l)||l instanceof a.A||l instanceof r.lY?n[s]=(0,o.a)(l,t):i.push(this.castDictionaryValueAsJsonAsync(n,s,l,e,t)))}return i.length>0&&await Promise.all(i),n}deepClone(){const e=new c;e.immutable=!1;for(const t of this.keys())e.setField(t,(0,i.G)(this.field(t)));return e}}},67090:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(90237),i=n(25482),s=n(10107),o=n(40608);let a=class extends i.A{constructor(e){super(e)}};(0,r._)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"key",void 0),(0,r._)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"text",void 0),a=(0,r._)([(0,o.$)("esri.rest.support.TranslateContent")],a)},76357:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(90237),i=n(66552),s=n(25482),o=n(10107),a=(n(44208),n(53966),n(87811),n(93223)),l=n(40608);const u=new i.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let c=class extends s.A{constructor(e){super(e),this.name=null,this.type=null}};(0,r._)([(0,o.MZ)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,r._)([(0,a.e)(u),(0,o.MZ)({json:{write:{isRequired:!0}}})],c.prototype,"type",void 0),c=(0,r._)([(0,l.$)("esri.layers.support.Domain")],c)},78502:(e,t,n)=>{n.d(t,{Fq:()=>o,Yc:()=>i,Yq:()=>s});var r=n(5443);function i(e){if(null==e)return null;switch(e.type){case"polygon":case"multipoint":case"polyline":return e.extent;case"point":return new r.A({xmin:e.x,ymin:e.y,xmax:e.x,ymax:e.y,spatialReference:e.spatialReference});case"extent":return e}return null}function s(e){if(null==e)return null;const t=e.clone();return void 0!==e.cache._geVersion&&(t.cache._geVersion=e.cache._geVersion),t}function o(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}},78878:(e,t,n)=>{n.d(t,{$:()=>Le,A:()=>oe,B:()=>Oe,C:()=>E,D:()=>Q,E:()=>Ne,F:()=>pe,G:()=>Ae,H:()=>_e,I:()=>x,J:()=>Ce,K:()=>J,L:()=>Pe,M:()=>Fe,N:()=>R,O:()=>re,P:()=>ee,Q:()=>Ue,R:()=>v,S:()=>Ee,T:()=>Re,U:()=>ze,V:()=>Je,W:()=>ye,X:()=>j,Y:()=>Z,Z:()=>je,_:()=>ue,a:()=>Me,a0:()=>xe,a1:()=>Se,a2:()=>ge,a3:()=>Te,b:()=>Ze,c:()=>ae,d:()=>U,e:()=>he,f:()=>le,g:()=>K,h:()=>me,i:()=>I,j:()=>H,k:()=>X,l:()=>P,m:()=>B,n:()=>z,o:()=>Y,p:()=>G,q:()=>V,r:()=>$,s:()=>ce,t:()=>fe,u:()=>Ve,v:()=>O,w:()=>M,x:()=>k,y:()=>q,z:()=>se});var r=n(92602),i=n(70333),s=n(66131),o=n(99719),a=n(85935),l=n(92400),u=n(93818),c=n(7335),d=n(84939),f=n(33325),m=n(14607),h=n(44729),p=n(15032),y=n(5443),g=n(91075),T=n(48526),S=n(86738),b=n(39829),w=n(82799),N=n(16930),D=n(95108),A=n(65864),_=n(73444),C=n(54218),F=n(96285);class v{constructor(e){this.value=e}}class x{constructor(e){this.value=e}}const O={type:"VOID"},M=Symbol("BREAK"),k=Symbol("CONTINUE");function Z(e,t,n){return""===t||null==t||t===n||t===n?e:e=e.split(t).join(n)}function I(e){return e instanceof l.fF}function L(e){return e instanceof o.x}function U(e){return!!((0,C.Kg)(e)||(0,C.Et)(e)||K(e)||H(e)||X(e)||(0,C.Lm)(e)||null===e||e===O||"number"==typeof e)}function J(e,t){return void 0===e?t:e}function R(e){return null==e?"":(0,C.cy)(e)||B(e)?"Array":K(e)?"Date":X(e)?"Time":H(e)?"DateOnly":(0,C.Kg)(e)?"String":(0,C.Lm)(e)?"Boolean":(0,C.Et)(e)?"Number":"esri.arcade.Attachment"===e?.declaredClass?"Attachment":"esri.arcade.Portal"===e?.declaredClass?"Portal":"esri.arcade.Dictionary"===e?.declaredClass?"Dictionary":$(e)?"KnowledgeGraph":e instanceof o.x?"Module":z(e)?"Feature":e instanceof S.A?"Point":e instanceof b.A?"Polygon":e instanceof w.A?"Polyline":e instanceof T.A?"Multipoint":e instanceof y.A?"Extent":I(e)?"Function":G(e)?"FeatureSet":Y(e)?"FeatureSetCollection":j(e)?"Voxel":e===O?"":"number"==typeof e&&isNaN(e)?"Number":"Unrecognized Type"}function E(e){return e===O}function P(e){return e instanceof g.A}function z(e){return"esri.arcade.Feature"===e?.arcadeDeclaredClass}function j(e){return"esri.arcade.Voxel"===e?.arcadeDeclaredClass}function G(e){return"esri.arcade.featureset.support.FeatureSet"===e?.declaredRootClass}function V(e){return"esri.arcade.Dictionary"===e?.declaredClass}function q(e){return V(e)||z(e)||j(e)}function Y(e){return"esri.arcade.featureSetCollection"===e?.declaredRootClass}function $(e){return"esri.rest.knowledgeGraph.KnowledgeGraph"===e?.declaredClass}function B(e){return e instanceof u.A}function K(e){return e instanceof s.lY}function H(e){return e instanceof h.n}function X(e){return e instanceof p.k}function W(e){return null!=e&&"object"==typeof e}function Q(e,t,n,r,i){if(e.length<t||e.length>n)throw new a.D$(r,a.TX.WrongNumberOfParameters,i)}function ee(e){return e<0?-Math.round(-e):Math.round(e)}function te(e,t){return isNaN(e)||null==t||""===t?e.toString():(t=Z(t,"‰",""),t=Z(t,"¤",""),(0,m.GP)(e,{pattern:t}))}function ne(e,t){return null==t||""===t?e.toISOString(!0):e.toFormat(re(t),{locale:(0,_.JK)(),numberingSystem:"latn"})}function re(e,t=!1){e=e.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let n="";const r=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|Z{1,5}|.)/g;for(const i of e.match(r)||[])switch(i){case"D":n+="d";break;case"DD":n+="dd";break;case"DDD":n+="o";break;case"d":n+="c";break;case"ddd":n+="ccc";break;case"dddd":n+="cccc";break;case"M":n+="L";break;case"MM":n+="LL";break;case"MMM":n+="LLL";break;case"MMMM":n+="LLLL";break;case"YY":n+="yy";break;case"Y":case"YYYY":n+="yyyy";break;case"Q":n+="q";break;case"Z":n+="Z";break;case"ZZ":n+="ZZ";break;case"ZZZ":n+="ZZZ";break;case"ZZZZ":n+=t?"[ZZZZ]":"ZZZZ";break;case"ZZZZZ":n+=t?"[ZZZZZ]":"ZZZZZ";break;case"S":n+="'S'";break;case"SS":n+="'SS'";break;case"SSS":n+="u";break;case"A":case"a":n+="a";break;case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":case"X":case"x":n+=i;break;default:i.length>=2&&"["===i.slice(0,1)&&"]"===i.slice(-1)?n+=`'${i.slice(1,-1)}'`:n+=`'${i}'`}return n}function ie(e,t,n){switch(n){case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}return!1}function se(e,t,n){if(null===e){if(null===t||t===O)return ie(null,null,n);if((0,C.Et)(t))return ie(0,t,n);if((0,C.Kg)(t))return ie(0,fe(t),n);if((0,C.Lm)(t))return ie(0,fe(t),n);if(K(t))return ie(0,t.toNumber(),n);if(X(t))return ie(e,t.toNumber(),n);if(H(t))return ie(e,t.toNumber(),n)}if(e===O){if(null===t||t===O)return ie(null,null,n);if((0,C.Et)(t))return ie(0,t,n);if((0,C.Kg)(t))return ie(0,fe(t),n);if((0,C.Lm)(t))return ie(0,fe(t),n);if(K(t))return ie(0,t.toNumber(),n);if(X(t))return ie(e,t.toNumber(),n);if(H(t))return ie(e,t.toNumber(),n)}else if((0,C.Et)(e)){if((0,C.Et)(t))return ie(e,t,n);if((0,C.Lm)(t))return ie(e,fe(t),n);if(null===t||t===O)return ie(e,0,n);if((0,C.Kg)(t))return ie(e,fe(t),n);if(K(t))return ie(e,t.toNumber(),n);if(X(t))return ie(e,t.toNumber(),n);if(H(t))return ie(e,t.toNumber(),n)}else if((0,C.Kg)(e)){if((0,C.Kg)(t))return ie(le(e),le(t),n);if(K(t))return ie(fe(e),t.toNumber(),n);if(X(t))return ie(fe(e),t.toNumber(),n);if(H(t))return ie(fe(e),t.toNumber(),n);if((0,C.Et)(t))return ie(fe(e),t,n);if(null===t||t===O)return ie(fe(e),0,n);if((0,C.Lm)(t))return ie(fe(e),fe(t),n)}else if(K(e)){if(K(t))return e.timeZone!==t.timeZone&&(e.isUnknownTimeZone?e=s.lY.arcadeDateAndZoneToArcadeDate(e,t.timeZone):t.isUnknownTimeZone&&(t=s.lY.arcadeDateAndZoneToArcadeDate(t,e.timeZone))),ie(e.toNumber(),t.toNumber(),n);if(null===t||t===O)return ie(e.toNumber(),0,n);if((0,C.Et)(t))return ie(e.toNumber(),t,n);if((0,C.Lm)(t))return ie(e.toNumber(),fe(t),n);if((0,C.Kg)(t))return ie(e.toNumber(),fe(t),n);if(X(t))throw new a.D$(null,a.TX.CannotCompareDateAndTime,null);if(H(t))return ie(e.toNumber(),t.toNumber(),n)}else if((0,C.Lm)(e)){if((0,C.Lm)(t))return ie(e,t,n);if((0,C.Et)(t))return ie(fe(e),fe(t),n);if(K(t))return ie(fe(e),t.toNumber(),n);if(X(t))return ie(fe(e),t.toNumber(),n);if(H(t))return ie(fe(e),t.toNumber(),n);if(null===t||t===O)return ie(fe(e),0,n);if((0,C.Kg)(t))return ie(fe(e),fe(t),n)}else if(H(e)){if(K(t))return ie(e.toNumber(),t.toNumber(),n);if(null===t||t===O)return ie(e.toNumber(),0,n);if((0,C.Et)(t))return ie(e.toNumber(),t,n);if((0,C.Lm)(t))return ie(e.toNumber(),fe(t),n);if((0,C.Kg)(t))return ie(e.toNumber(),fe(t),n);if(X(t))throw new a.D$(null,a.TX.CannotCompareDateAndTime,null);if(H(t))return ie(e.toNumber(),t.toNumber(),n)}else if(X(e)){if(K(t))throw new a.D$(null,a.TX.CannotCompareDateAndTime,null);if(null===t||t===O)return ie(e.toNumber(),0,n);if((0,C.Et)(t))return ie(e.toNumber(),t,n);if((0,C.Lm)(t))return ie(e.toNumber(),fe(t),n);if((0,C.Kg)(t))return ie(e.toNumber(),fe(t),n);if(X(t))return ie(e.toNumber(),t.toNumber(),n);if(H(t))throw new a.D$(null,a.TX.CannotCompareDateAndTime,null)}return!!oe(e,t)&&("<="===n||">="===n)}function oe(e,t){if(e===t)return!0;if(null===e&&t===O||null===t&&e===O)return!0;if(K(e)&&K(t))return e.equals(t);if(X(e)&&X(t))return e.equals(t);if(H(e)&&H(t))return e.equals(t);if(e instanceof c.A)return e.equalityTest(t);if(e instanceof d.A)return e.equalityTest(t);if(e instanceof S.A&&t instanceof S.A){const n=e.cache._arcadeCacheId,r=t.cache._arcadeCacheId;if(null!=n)return n===r}if(W(e)&&W(t)){if(e._arcadeCacheId===t._arcadeCacheId&&void 0!==e._arcadeCacheId&&null!==e._arcadeCacheId)return!0;if(e._underlyingGraphic===t._underlyingGraphic&&void 0!==e._underlyingGraphic&&null!==e._underlyingGraphic)return!0}return!1}function ae(e,{useNumbersForDates:t}){let n="";for(const r in e){""!==n&&(n+=",");const i=e[r];null==i?n+=JSON.stringify(r)+":null":(0,C.Lm)(i)||(0,C.Et)(i)||(0,C.Kg)(i)?n+=JSON.stringify(r)+":"+JSON.stringify(i):P(i)?n+=JSON.stringify(r)+":"+ce(i):X(i)||H(i)?n+=`${JSON.stringify(r)}:${JSON.stringify(i.toString())}`:B(i)||Array.isArray(i)?n+=JSON.stringify(r)+":"+ce(i,null,t):K(i)?n+=t?JSON.stringify(r)+":"+JSON.stringify(i.getTime()):JSON.stringify(r)+":"+i.stringify():null!==i&&"object"==typeof i&&"castToText"in i&&(n+=JSON.stringify(r)+":"+i.castToText(t))}return"{"+n+"}"}function le(e,t){if((0,C.Kg)(e))return e;if(null===e)return"";if((0,C.Et)(e))return te(e,t);if((0,C.Lm)(e))return e.toString();if(K(e))return ne(e,t);if(X(e))return e.toFormat(t);if(H(e))return e.toFormat(t);if(e instanceof g.A)return JSON.stringify(e.toJSON());if((0,C.cy)(e)){const t=[];for(let n=0;n<e.length;n++)t[n]=de(e[n]);return"["+t.join(",")+"]"}if(e instanceof u.A){const t=[];for(let n=0;n<e.length();n++)t[n]=de(e.get(n));return"["+t.join(",")+"]"}return null!==e&&"object"==typeof e&&"castToText"in e?e.castToText():I(e)?"object, Function":e===O?"":L(e)?"object, Module":""}function ue(e){const t=[];if(e instanceof u.A){for(let n=0;n<e.length();n++)t[n]=fe(e.get(n));return t}if(!(0,C.cy)(e))return null;for(let n=0;n<e.length;n++)t[n]=fe(e[n]);return t}function ce(e,t,n=!1){if((0,C.Kg)(e))return e;if(null===e)return"";if((0,C.Et)(e))return te(e,t);if((0,C.Lm)(e))return e.toString();if(K(e))return ne(e,t);if(X(e))return e.toFormat(t);if(H(e))return e.toFormat(t);if(e instanceof g.A)return e instanceof y.A?'{"xmin":'+e.xmin.toString()+',"ymin":'+e.ymin.toString()+","+(e.hasZ?'"zmin":'+e.zmin.toString()+",":"")+(e.hasM?'"mmin":'+e.mmin.toString()+",":"")+'"xmax":'+e.xmax.toString()+',"ymax":'+e.ymax.toString()+","+(e.hasZ?'"zmax":'+e.zmax.toString()+",":"")+(e.hasM?'"mmax":'+e.mmax.toString()+",":"")+'"spatialReference":'+we(e.spatialReference)+"}":we(e.toJSON(),((e,t)=>e.key===t.key?0:"spatialReference"===e.key?1:"spatialReference"===t.key||e.key<t.key?-1:e.key>t.key?1:0));if((0,C.cy)(e)){const t=[];for(let r=0;r<e.length;r++)t[r]=de(e[r],n);return"["+t.join(",")+"]"}if(e instanceof u.A){const t=[];for(let r=0;r<e.length();r++)t[r]=de(e.get(r),n);return"["+t.join(",")+"]"}return null!==e&&"object"==typeof e&&"castToText"in e?e.castToText(n):I(e)?"object, Function":e===O?"":L(e)?"object, Module":""}function de(e,t=!1){if(null===e)return"null";if((0,C.Lm)(e)||(0,C.Et)(e)||(0,C.Kg)(e))return JSON.stringify(e);if(e instanceof g.A)return ce(e,null,t);if(e instanceof u.A)return ce(e,null,t);if(Array.isArray(e))return ce(e,null,t);if(K(e))return t?JSON.stringify(e.getTime()):JSON.stringify(ne(e,""));if(X(e))return JSON.stringify(e.toString());if(H(e))return JSON.stringify(e.toString());if(null!==e&&"object"==typeof e){if("castToText"in e)return e.castToText(t)}else if(e===O)return"null";return"null"}function fe(e,t){return(0,C.Et)(e)?e:null===e||""===e?0:K(e)||H(e)||X(e)?NaN:(0,C.Lm)(e)?e?1:0:(0,C.cy)(e)||""===e||void 0===e?NaN:void 0!==t&&(0,C.Kg)(e)?(t=Z(t,"‰",""),t=Z(t,"¤",""),(0,m.qg)(e,{pattern:t})):e===O?0:Number(e)}function me(e,t){if(K(e))return e;if((0,C.Kg)(e)){const n=function(e,t){const n=/ (\d\d)/,r=(0,s.mT)(t);let i=F.c9.fromISO(e,{zone:r});return i.isValid||n.test(e)&&(e=e.replace(n,"T$1"),i=F.c9.fromISO(e,{zone:t}),i.isValid)?i:null}(e,t);if(n)return s.lY.dateTimeToArcadeDate(n)}return null}function he(e){return(0,C.Lm)(e)?e:(0,C.Kg)(e)?"true"===(e=e.toLowerCase()):!!(0,C.Et)(e)&&0!==e&&!isNaN(e)}function pe(e,t){return null==e?null:(null!==e.spatialReference&&void 0!==e.spatialReference||(e.spatialReference=t),e)}function ye(e){if(null===e)return null;if(e instanceof S.A)return"NaN"===e.x||null===e.x||isNaN(e.x)?null:e;if(e instanceof b.A){if(0===(e.curveRings??e.rings).length)return null;for(const t of e.curveRings??e.rings)if(t.length>0)return e;return null}if(e instanceof w.A){if(0===(e.curvePaths??e.paths).length)return null;for(const t of e.curvePaths??e.paths)if(t.length>0)return e;return null}return e instanceof T.A?0===e.points.length?null:e:e instanceof y.A?"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)?null:e:null}function ge(e,t){if(!e)return t;if(!e.domain)return t;let n=null,r=null;if(K(t))n=t.toNumber();else if(H(t))n=t.toString();else if(X(t))n=t.toStorageString();else if("string"===e.field.type||"esriFieldTypeString"===e.field.type)n=le(t);else{if(null==t)return null;if(""===t)return t;n=fe(t)}for(let t=0;t<e.domain.codedValues.length;t++){const i=e.domain.codedValues[t];i.code===n&&(r=i)}return null===r?le(t):r.name}function Te(e,t){if(!e)return t;if(!e.domain)return t;let n=null;const r=le(t);for(let t=0;t<e.domain.codedValues.length;t++){const i=e.domain.codedValues[t];i.name===r&&(n=i)}return null===n?t:n.code}function Se(e,t,n=null,r=null){if(!t)return null;if(!t.fields)return null;let i,s,o=null;for(let n=0;n<t.fields.length;n++){const r=t.fields[n];r.name.toLowerCase()===e.toString().toLowerCase()&&(o=r)}if(null===o)throw new a.D$(null,a.TX.FieldNotFound,null,{key:e});let l=t.typeIdField,u="id",c=t.types;if(t.subtypeField&&(l=t.subtypeField,u="code",c=t.subtypes??[]),null===r&&n&&l)r=n.hasField(l)?n.field(l):null;else if(l&&null!==r){let e=!1;for(const t of c||[])if(r===t[u]){e=!0;break}if(!e)for(const t of c||[])if(r===t.name){r=t[u],e=!0;break}e||(r=null,n&&l&&(r=n.hasField(l)?n.field(l):null))}return null!=r&&c.some((e=>e[u]===r&&(i=e.domains?.[o.name],i&&"inherited"===i.type&&(i=be(o.name,t),s=!0),!0))),s||i||(i=be(e,t)),{field:o,domain:i}}function be(e,t){let n;return t.fields.some((t=>(t.name.toLowerCase()===e.toLowerCase()&&(n=t.domain),!!n))),n}function we(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});const n="boolean"==typeof t.cycles&&t.cycles,r=t.cmp&&(i=t.cmp,function(e){return function(t,n){const r={key:t,value:e[t]},s={key:n,value:e[n]};return i(r,s)}});var i;const s=[];return function e(t){if(t?.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0===t)return;if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);let i,o;if(Array.isArray(t)){for(o="[",i=0;i<t.length;i++)i&&(o+=","),o+=e(t[i])||"null";return o+"]"}if(null===t)return"null";if(s.includes(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}const a=s.push(t)-1,l=Object.keys(t).sort(r?.(t));for(o="",i=0;i<l.length;i++){const n=l[i],r=e(t[n]);r&&(o&&(o+=","),o+=JSON.stringify(n)+":"+r)}return s.splice(a,1),"{"+o+"}"}(e)}function Ne(e){if(null===e)return null;const t=[];for(const n of e)z(n)?t.push(n.geometry()):t.push(n);return t}function De(e,t){if(!(t instanceof S.A))throw new a.D$(null,a.TX.InvalidParameter,null);e.push(t.hasZ?t.hasM?[t.x,t.y,t.z,t.m]:[t.x,t.y,t.z]:[t.x,t.y])}function Ae(e,t){if((0,C.cy)(e)||B(e)){let n=!1,r=!1,i=[],s=t;if((0,C.cy)(e)){for(const t of e)De(i,t);i.length>0&&(s=e[0].spatialReference,n=e[0].hasZ,r=e[0].hasM)}else if(e instanceof d.A)i=e._elements,i.length>0&&(n=e._hasZ,r=e._hasM,s=e.get(0).spatialReference);else{if(!B(e))throw new a.D$(null,a.TX.InvalidParameter,null);for(const t of e.toArray())De(i,t);i.length>0&&(s=e.get(0).spatialReference,n=!0===e.get(0).hasZ,r=!0===e.get(0).hasM)}return 0===i.length?null:((0,D.$3)(i)||(i=i.slice().reverse()),new b.A({rings:[i],spatialReference:s,hasZ:n,hasM:r}))}return e}function _e(e,t){if((0,C.cy)(e)||B(e)){let n=!1,r=!1,i=[],s=t;if((0,C.cy)(e)){for(const t of e)De(i,t);i.length>0&&(s=e[0].spatialReference,n=!0===e[0].hasZ,r=!0===e[0].hasM)}else if(e instanceof d.A)i=e._elements,i.length>0&&(n=e._hasZ,r=e._hasM,s=e.get(0).spatialReference);else if(B(e)){for(const t of e.toArray())De(i,t);i.length>0&&(s=e.get(0).spatialReference,n=!0===e.get(0).hasZ,r=!0===e.get(0).hasM)}return 0===i.length?null:new w.A({paths:[i],spatialReference:s,hasZ:n,hasM:r})}return e}function Ce(e,t){if((0,C.cy)(e)||B(e)){let n=!1,r=!1,i=[],s=t;if((0,C.cy)(e)){for(const t of e)De(i,t);i.length>0&&(s=e[0].spatialReference,n=!0===e[0].hasZ,r=!0===e[0].hasM)}else if(e instanceof d.A)i=e._elements,i.length>0&&(n=e._hasZ,r=e._hasM,s=e.get(0).spatialReference);else if(B(e)){for(const t of e.toArray())De(i,t);i.length>0&&(s=e.get(0).spatialReference,n=!0===e.get(0).hasZ,r=!0===e.get(0).hasM)}return 0===i.length?null:new T.A({points:i,spatialReference:s,hasZ:n,hasM:r})}return e}function Fe(e,t=!0){if(null==e)return[];if((0,C.cy)(e)){const n=[];for(const r of e){const e=le(r);(t||""!==e)&&n.push(e)}return n}if(B(e)){const n=[];for(let r=0;r<e.length();r++){const i=le(e.get(r));(t||""!==i)&&n.push(i)}return n}if(U(e)){const n=le(e);if(t||""!==n)return[n]}return[]}let ve=0;function xe(e){return ve++,ve%100==0?(ve=0,new Promise((t=>{setTimeout((()=>{t(e)}),0)}))):e}function Oe(e,t,n){switch(n){case"&":return e&t;case"|":return e|t;case"^":return e^t;case"<<":return e<<t;case">>":return e>>t;case">>>":return e>>>t}}function Me(e,t=null){return null==e?null:(0,C.Lm)(e)||(0,C.Et)(e)||(0,C.Kg)(e)?e:e instanceof g.A?!0===t?.keepGeometryType?e:e.toJSON():e instanceof u.A?e.toArray().map((e=>Me(e,t))):Array.isArray(e)?e.map((e=>Me(e,t))):(0,C.$P)(e)?e:K(e)?e.toJSDate():X(e)?e.toString():H(e)?e.toJSDate():null!==e&&"object"==typeof e&&void 0!==e.castAsJson?e.castAsJson(t):null}async function ke(e,t,n,r,i){const s=await Ze(e,t,n);i[r]=s}async function Ze(e,t=null,n=null){if(e instanceof u.A&&(e=e.toArray()),null==e)return null;if(U(e)||e instanceof g.A||(0,C.$P)(e)||K(e))return Me(e,n);if(Array.isArray(e)){const r=[],i=[];for(const s of e)null===s||U(s)||s instanceof g.A||(0,C.$P)(s)||K(s)?i.push(Me(s,n)):(i.push(null),r.push(ke(s,t,n,i.length-1,i)));return r.length>0&&await Promise.all(r),i}return null!==e&&"object"==typeof e&&void 0!==e.castAsJsonAsync?e.castAsJsonAsync(t,n):null}function Ie(e){return Le(e)?e.parent:e}function Le(e){return e&&"declaredClass"in e&&"esri.layers.support.SubtypeSublayer"===e.declaredClass}function Ue(e,t,n){const r=Ie(e.fullSchema());return null===r?null:r.fields?Se(t,r,e,n):null}function Je(e){const t=Ie(e.fullSchema());return null===t?null:t.fields?t.subtypeField?{subtypeField:t.subtypeField,subtypes:t.subtypes?t.subtypes.map((e=>({name:e.name,code:e.code}))):[]}:t.typeIdField?{subtypeField:t.typeIdField,subtypes:t.types?t.types.map((e=>({name:e.name,code:e.id}))):[]}:null:null}function Re(e,t,n,r){const i=Ie(e.fullSchema());if(null===i)return null;if(!i.fields)return null;const s=Se(t,i,e,r);if(void 0===n)try{n=e.field(t)}catch(e){return null}return ge(s,n)}function Ee(e,t,n,r){const i=Ie(e.fullSchema());if(null===i)return null;if(!i.fields)return null;if(void 0===n){try{n=e.field(t)}catch(e){return null}return n}return Te(Se(t,i,e,r),n)}function Pe(e){return e?.timeZone??"system"}function ze(e){const t=Ie(e.fullSchema());if(null===t)return null;if(!t.fields)return null;const n=[];for(const e of t.fields)n.push((0,f.nE)(e));return{objectIdField:t.objectIdField,globalIdField:t.globalIdField??"",geometryType:void 0===f.yT[t.geometryType]?"":f.yT[t.geometryType],fields:n}}function je(e,t){const n=s.lY.systemTimeZoneCanonicalName;return"system"===e&&(e=n),{version:Ge,engineVersion:i.rE,timeZone:e,userTimeZone:n,spatialReference:t instanceof N.A?t.toJSON():t,application:r.A.applicationName??"",engine:"web",locale:(0,_.JK)()}}const Ge="1.32",Ve=Object.freeze(Object.defineProperty({__proto__:null,ImplicitResult:x,ReturnResult:v,absRound:ee,arcadeVersion:Ge,autoCastArrayOfPointsToMultiPoint:Ce,autoCastArrayOfPointsToPolygon:Ae,autoCastArrayOfPointsToPolyline:_e,autoCastFeatureToGeometry:Ne,binaryOperator:Oe,breakResult:M,castAsJson:Me,castAsJsonAsync:Ze,castRecordToText:ae,continueResult:k,defaultExecutingContext:je,defaultTimeZone:Pe,defaultUndefined:J,equalityTest:oe,featureDomainCodeLookup:Ee,featureDomainValueLookup:Re,featureFullDomain:Ue,featureSchema:ze,featureSubtypes:Je,fixNullGeometry:ye,fixSpatialReference:pe,formatDate:ne,formatNumber:te,getDomain:Se,getDomainCode:Te,getDomainValue:ge,getType:R,greaterThanLessThan:se,isArray:C.cy,isBoolean:C.Lm,isDate:K,isDateOnly:H,isDictionary:V,isDictionaryLike:q,isFeature:z,isFeatureSet:G,isFeatureSetCollection:Y,isFunctionParameter:I,isGeometry:P,isGraphic:C.DU,isImmutableArray:B,isInteger:C.Fq,isJsDate:C.$P,isKnowledgeGraph:$,isModule:L,isNumber:C.Et,isObject:W,isSimpleType:U,isString:C.Kg,isSubtypeGrouplayer:function(e){return e&&"declaredClass"in e&&"esri.layers.SubtypeGroupLayer"===e.declaredClass},isSubtypeSublayer:Le,isTime:X,isVoid:E,isVoxel:j,multiReplace:Z,parseGeometryFromJson:function(e,t){const n=JSON.parse(e);return n&&!n.spatialReference&&(n.spatialReference=t),(0,A.rS)(n)},pcCheck:Q,stableStringify:we,standardiseDateFormat:re,tick:xe,toBoolean:he,toDate:me,toNumber:fe,toNumberArray:ue,toString:le,toStringArray:Fe,toStringExplicit:ce,voidOperation:O},Symbol.toStringTag,{value:"Module"}))},80451:(e,t,n)=>{n.d(t,{rS:()=>h,gK:()=>m}),n(44208);var r,i=n(53177),s=n(76357),o=n(90237),a=(n(53966),n(87811),n(49186),n(93223)),l=n(40608);let u=class extends s.A{static{r=this}constructor(e){super(e),this.type="inherited"}clone(){return new r}};(0,o._)([(0,a.e)({inherited:"inherited"})],u.prototype,"type",void 0),u=r=(0,o._)([(0,l.$)("esri.layers.support.InheritedDomain")],u);var c,d=n(10107);let f=class extends s.A{static{c=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new c({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,o._)([(0,d.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,n){t[n]=[this.minValue||0,e]},isRequired:!0}}})],f.prototype,"maxValue",void 0),(0,o._)([(0,d.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,n){t[n]=[e,this.maxValue||0]},isRequired:!0}}})],f.prototype,"minValue",void 0),(0,o._)([(0,a.e)({range:"range"})],f.prototype,"type",void 0),f=c=(0,o._)([(0,l.$)("esri.layers.support.RangeDomain")],f);const m={key:"type",base:s.A,typeMap:{range:f,"coded-value":i.A,inherited:u}};function h(e){if(!e?.type)return null;switch(e.type){case"range":return f.fromJSON(e);case"codedValue":return i.A.fromJSON(e);case"inherited":return u.fromJSON(e)}return null}},84939:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(93818),i=n(86738);class s extends r.A{constructor(e,t,n,r,i,s){super(e),this._lazyPt=[],this._hasZ=!1,this._hasM=!1,this._spRef=t,this._hasZ=n,this._hasM=r,this._cacheId=i,this._partId=s}get(e){if(void 0===this._lazyPt[e]){const t=this._elements[e];if(void 0===t)return;const n=new i.A(t[0],t[1],this._spRef);this._hasZ&&(n.z=t[2]),this._hasM&&(n.m=this._hasZ?t[3]:t[2]),n.cache._arcadeCacheId=this._cacheId.toString()+"-"+this._partId.toString()+"-"+e.toString(),this._lazyPt[e]=n}return this._lazyPt[e]}equalityTest(e){return e===this||null!==e&&e instanceof s!=0&&e.getUniqueHash()===this.getUniqueHash()}getUniqueHash(){return this._cacheId.toString()+"-"+this._partId.toString()}}},85935:(e,t,n)=>{n.d(t,{B:()=>h,D$:()=>u,Nh:()=>m,O$:()=>f,TX:()=>r,mT:()=>d,ps:()=>y});var r,i,s=n(799);(i=r||(r={})).AsyncNotEnabled="AsyncNotEnabled",i.ModulesNotSupported="ModulesNotSupported",i.CircularModules="CircularModules",i.CannotCompareDateAndTime="CannotCompareDateAndTime",i.NeverReach="NeverReach",i.UnsupportedHashType="UnsupportedHashType",i.InvalidParameter="InvalidParameter",i.FeatureSetDoesNotHaveSubtypes="FeatureSetDoesNotHaveSubtypes",i.UnexpectedToken="UnexpectedToken",i.Unrecognized="Unrecognized",i.UnrecognizedType="UnrecognizedType",i.MaximumCallDepth="MaximumCallDepth",i.BooleanConditionRequired="BooleanConditionRequired",i.TypeNotAllowedInFeature="TypeNotAllowedInFeature",i.KeyMustBeString="KeyMustBeString",i.WrongNumberOfParameters="WrongNumberOfParameters",i.CallNonFunction="CallNonFunction",i.NoFunctionInTemplateLiteral="NoFunctionInTemplateLiteral",i.NoFunctionInDictionary="NoFunctionInDictionary",i.NoFunctionInArray="NoFunctionInArray",i.AssignModuleFunction="AssignModuleFunction",i.LogicExpressionOrAnd="LogicExpressionOrAnd",i.LogicalExpressionOnlyBoolean="LogicalExpressionOnlyBoolean",i.FunctionNotFound="FunctionNotFound",i.InvalidMemberAccessKey="InvalidMemberAccessKey",i.UnsupportedUnaryOperator="UnsupportUnaryOperator",i.InvalidIdentifier="InvalidIdentifier",i.MemberOfNull="MemberOfNull",i.UnsupportedOperator="UnsupportedOperator",i.Cancelled="Cancelled",i.ModuleAccessorMustBeString="ModuleAccessorMustBeString",i.ModuleExportNotFound="ModuleExportNotFound",i.Immutable="Immutable",i.OutOfBounds="OutOfBounds",i.IllegalResult="IllegalResult",i.FieldNotFound="FieldNotFound",i.PortalRequired="PortalRequired",i.LogicError="LogicError",i.ArrayAccessorMustBeNumber="ArrayAccessMustBeNumber",i.KeyAccessorMustBeString="KeyAccessorMustBeString",i.WrongSpatialReference="WrongSpatialReference",i.CannotChangeTimeZoneTime="CannotChangeTimeZoneTime",i.CannotChangeTimeZoneDateOnly="CannotChangeTimeZoneDateOnly";const o={[r.TypeNotAllowedInFeature]:"Feature attributes only support dates, numbers, strings, guids.",[r.LogicError]:"Logic error - {reason}",[r.CannotCompareDateAndTime]:"Cannot compare date or dateonly with timeonly types",[r.NeverReach]:"Encountered unreachable logic",[r.AsyncNotEnabled]:"Async Arcade must be enabled for this script",[r.ModuleAccessorMustBeString]:"Module accessor must be a string",[r.ModuleExportNotFound]:"Module has no export with provided identifier",[r.ModulesNotSupported]:"Current profile does not support modules",[r.ArrayAccessorMustBeNumber]:"Array accessor must be a number",[r.FunctionNotFound]:"Function not found",[r.FieldNotFound]:"Key not found - {key}",[r.CircularModules]:"Circular module dependencies are not allowed",[r.Cancelled]:"Execution cancelled",[r.UnsupportedHashType]:"Type not supported in hash function",[r.IllegalResult]:"Value is not a supported return type",[r.PortalRequired]:"Portal is required",[r.InvalidParameter]:"Invalid parameter",[r.WrongNumberOfParameters]:"Call with wrong number of parameters",[r.Unrecognized]:"Unrecognized code structure",[r.UnrecognizedType]:"Unrecognized type",[r.WrongSpatialReference]:"Cannot work with geometry in this spatial reference. It is different to the execution spatial reference",[r.BooleanConditionRequired]:"Conditions must use booleans",[r.NoFunctionInDictionary]:"Dictionaries cannot contain functions.",[r.NoFunctionInArray]:"Arrays cannot contain functions.",[r.NoFunctionInTemplateLiteral]:"Template Literals do not expect functions by value.",[r.KeyAccessorMustBeString]:"Accessor must be a string",[r.KeyMustBeString]:"Object keys must be a string",[r.Immutable]:"Object is immutable",[r.UnexpectedToken]:"Unexpected token",[r.MemberOfNull]:"Cannot access property of null object",[r.MaximumCallDepth]:"Exceeded maximum function depth",[r.OutOfBounds]:"Out of bounds",[r.InvalidIdentifier]:"Identifier not recognized",[r.CallNonFunction]:"Expression is not a function",[r.InvalidMemberAccessKey]:"Cannot access value using a key of this type",[r.AssignModuleFunction]:"Cannot assign function to module variable",[r.UnsupportedUnaryOperator]:"Unsupported unary operator",[r.UnsupportedOperator]:"Unsupported operator",[r.LogicalExpressionOnlyBoolean]:"Logical expressions must be boolean",[r.LogicExpressionOrAnd]:"Logical expression can only be combined with || or &&",[r.CannotChangeTimeZoneTime]:"Cannot change the timezone of a Time",[r.CannotChangeTimeZoneDateOnly]:"Cannot change the timezone of a DateOnly",[r.FeatureSetDoesNotHaveSubtypes]:"FeatureSet does not have subtypes"};class a extends Error{constructor(...e){super(...e)}}class l extends a{constructor(e,t){super(c(t)+e.message,{cause:e}),this.loc=null,Error.captureStackTrace&&Error.captureStackTrace(this,l),t?.loc&&(this.loc=t.loc)}}class u extends Error{constructor(e,t,n,r){super("Execution error - "+c(n)+(0,s.HC)(o[t],r)),this.loc=null,this.declaredRootClass="esri.arcade.arcadeexecutionerror",Error.captureStackTrace&&Error.captureStackTrace(this,u),n?.loc&&(this.loc=n.loc)}}function c(e){return e&&e.loc?`Line : ${e.loc.start?.line}, ${e.loc.start?.column}: `:""}class d extends Error{constructor(e,t,n,r){super("Compilation error - "+c(n)+(0,s.HC)(o[t],r)),this.loc=null,this.declaredRootClass="esri.arcade.arcadecompilationerror",Error.captureStackTrace&&Error.captureStackTrace(this,d),n?.loc&&(this.loc=n.loc)}}class f extends Error{constructor(){super("Uncompilable code structures"),this.declaredRootClass="esri.arcade.arcadeuncompilableerror",Error.captureStackTrace&&Error.captureStackTrace(this,f)}}function m(e,t,n){return"esri.arcade.arcadeexecutionerror"===n.declaredRootClass||"esri.arcade.arcadecompilationerror"===n.declaredRootClass?null===n.loc&&t?.loc?new l(n,{cause:n}):n:("esri.arcade.featureset.support.featureseterror"===n.declaredRootClass||"esri.arcade.featureset.support.sqlerror"===n.declaredRootClass||n.declaredRootClass,t?.loc?new l(n,{cause:n}):n)}var h;!function(e){e.UnrecognizedUri="UnrecognizedUri",e.UnsupportedUriProtocol="UnsupportedUriProtocol"}(h||(h={}));const p={[h.UnrecognizedUri]:"Unrecognized uri - {uri}",[h.UnsupportedUriProtocol]:"Unrecognized uri protocol"};class y extends Error{constructor(e,t){super((0,s.HC)(p[e],t)),this.declaredRootClass="esri.arcade.arcademoduleerror",Error.captureStackTrace&&Error.captureStackTrace(this,y)}}},92400:(e,t,n)=>{n.d(t,{CU:()=>a,UQ:()=>o,fF:()=>i,o6:()=>s});var r=n(74887);class i{constructor(){}}function s(e,t,n){if(e instanceof i&&!(e instanceof a)){const r=new a;return r.fn=e,r.parameterEvaluator=n,r.context=t,r}return e}class o extends i{constructor(e){super(),this.fn=e}createFunction(e){return(...t)=>this.fn(e,{preparsed:!0,arguments:t})}call(e,t){return this.fn(e,t)}marshalledCall(e,t,n,o){return o(e,t,((t,l,u)=>{u=u.map((t=>t instanceof i&&!(t instanceof a)?s(t,e,o):t));const c=this.call(n,{args:u});return(0,r.$X)(c)?c.then((e=>s(e,n,o))):c}))}}class a extends i{constructor(){super(...arguments),this.fn=null,this.context=null}createFunction(e){return this.fn.createFunction(this.context)}call(e,t){return this.fn.marshalledCall(e,t,this.context,this.parameterEvaluator)}marshalledCall(e,t,n){return this.fn.marshalledCall(e,t,this.context,this.parameterEvaluator)}}},93818:(e,t,n)=>{n.d(t,{A:()=>r});class r{constructor(e=[]){this._elements=e}length(){return this._elements.length}get(e){return this._elements[e]}toArray(){return this.slice()}slice(e=0,t=this.length()){const n=[];for(let r=e;r<t;r++)n.push(this.get(r));return n}}},98453:(e,t,n)=>{n.d(t,{m:()=>r});const r=new(n(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},99719:(e,t,n)=>{n.d(t,{x:()=>r});class r{}}}]);