@arcgis/core 4.33.0-next.20250604 → 4.33.0-next.20250606
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/arcade/Dictionary.js +1 -1
- package/arcade/Feature.js +1 -1
- package/arcade/arcadeAsyncRuntime.js +1 -1
- package/arcade/arcadeCompiler.js +1 -1
- package/arcade/arcadeRuntime.js +1 -1
- package/arcade/containerUtils.js +1 -1
- package/arcade/deepClone.js +1 -1
- package/arcade/featureSetUtils.js +1 -1
- package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
- package/arcade/functions/convertdirection.js +1 -1
- package/arcade/functions/date.js +1 -1
- package/arcade/functions/feature.js +1 -1
- package/arcade/functions/featuresetbase.js +1 -1
- package/arcade/functions/featuresetgeom.js +1 -1
- package/arcade/functions/featuresetstats.js +1 -1
- package/arcade/functions/featuresetstring.js +1 -1
- package/arcade/functions/fieldStats.js +1 -1
- package/arcade/functions/geomasync.js +1 -1
- package/arcade/functions/geometry.js +1 -1
- package/arcade/functions/geomsync.js +1 -1
- package/arcade/functions/knowledgegraph.js +1 -1
- package/arcade/functions/maths.js +1 -1
- package/arcade/functions/stats.js +1 -1
- package/arcade/functions/string.js +1 -1
- package/arcade/geometry/constructors.js +1 -1
- package/arcade/geometry/functions.js +1 -1
- package/arcade/languageUtils.js +1 -1
- package/arcade.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/0229c573fa8a2fff2d8b.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/{6c196bc0bf1522ae3434.js → 062e88b6eb4d45169856.js} +1 -1
- package/assets/esri/core/workers/chunks/{28b1819bf744ce957dfd.js → 17fcdaeb42e932712096.js} +2 -2
- package/assets/esri/core/workers/chunks/{28b1819bf744ce957dfd.js.LICENSE.txt → 17fcdaeb42e932712096.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/1f4c555a6fa89dcb1f06.js +1 -0
- package/assets/esri/core/workers/chunks/29fb64826bb1351aca8d.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/{d0372bac0c5f4fbed468.js → 3f59a73f9a758095976f.js} +1 -1
- package/assets/esri/core/workers/chunks/{a2e9141ff4efd13413a1.js → 4a805e7a57d25c4b595f.js} +2 -2
- package/assets/esri/core/workers/chunks/53ff5b7691ba1444358e.js +1 -0
- package/assets/esri/core/workers/chunks/54f981fe0f8851767be9.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/{a6fb75929e456f87f804.js → 58b2dc0ec977af7413b0.js} +1 -1
- package/assets/esri/core/workers/chunks/5cc5f32b474ee723e192.js +1 -0
- package/assets/esri/core/workers/chunks/{51c31e6d014005107d42.js → 68e432a80bf6fa7b17fb.js} +1 -1
- package/assets/esri/core/workers/chunks/6c7ace9609300fcf85df.js +1 -0
- package/assets/esri/core/workers/chunks/73ddb356121add556994.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/8a87c181b85d0b86b9bb.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/aad9a693813b47a51530.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/c6c86cbe65a58c3093ae.js +1 -0
- package/assets/esri/core/workers/chunks/{e385a27fd1ac2123a05f.js → ebb83405109cc8841235.js} +1 -1
- package/assets/esri/core/workers/chunks/{5853b2af6ac8be2c69d8.js → ee3940679d794d78b4ea.js} +1 -1
- package/assets/esri/core/workers/chunks/{bd2dcc55ac3418421ee5.js → f20ba89ac21f05b7020c.js} +1 -1
- package/assets/esri/core/workers/chunks/f3b51aa0a1a8fc3b231c.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/{a41f9b6deff08196566e.js → fa894be8cfb6ed485df9.js} +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ar.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_bg.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_bs.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ca.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_cs.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_da.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_de.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_el.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_es.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_et.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_fi.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_fr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_he.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_hr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_hu.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_id.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_it.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ja.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ko.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_lt.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_lv.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_nl.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_no.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_pl.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_pt-BR.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_pt-PT.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ro.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ru.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sk.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sl.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sv.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_th.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_tr.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_uk.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_vi.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_zh-CN.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_zh-HK.json +1 -1
- package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_zh-TW.json +1 -1
- package/assets/esri/widgets/Directions/t9n/Directions_ja.json +1 -1
- package/chunks/aiServices.js +1 -1
- package/chunks/array.js +1 -1
- package/chunks/languageUtils.js +1 -1
- package/geometry/support/coordsUtils.js +1 -1
- package/interfaces.d.ts +47 -51
- package/layers/VideoLayer.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/networks/CircuitManager.js +1 -1
- package/networks/UnitIdentifierManager.js +1 -1
- package/package.json +1 -1
- package/rest/networks/circuits/alterCircuit.js +1 -1
- package/rest/networks/circuits/createCircuit.js +1 -1
- package/rest/networks/circuits/deleteCircuits.js +1 -1
- package/rest/networks/circuits/support/CircuitVerifyResult.js +1 -1
- package/rest/networks/circuits/support/EditCircuitsResult.js +5 -0
- package/rest/networks/circuits/support/ExportCircuitsResult.js +1 -1
- package/rest/networks/circuits/support/VerifyCircuitsResult.js +1 -1
- package/rest/networks/support/utils.js +5 -0
- package/rest/networks/unitIdentifiers/insertGap.js +1 -1
- package/rest/networks/unitIdentifiers/reset.js +1 -1
- package/rest/networks/unitIdentifiers/resize.js +1 -1
- package/rest/networks/unitIdentifiers/support/EditUnitIdentifiersResult.js +5 -0
- package/support/arcadeUtils.js +1 -1
- package/support/revision.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/FeatureInstanceStore.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/3d/FocusAreasView.js +1 -1
- package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DTool.js +1 -1
- package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
- package/views/3d/layers/GraphicsLayerView3D.js +1 -1
- package/views/3d/layers/I3SMeshViewLabeler.js +1 -1
- package/views/3d/layers/RouteLayerView3D.js +1 -1
- package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DGraphicsPipeline.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/GraphicsProcessor.js +1 -1
- package/views/3d/layers/graphics/Labeler.js +1 -1
- package/views/3d/terrain/OverlayManager.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/ToolViewManager.js +1 -1
- package/views/support/layerViewUtils.js +1 -1
- package/views/webgl/FramebufferObject.js +1 -1
- package/views/webgl/Parameters.js +1 -1
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/UpdateWorkflow.js +1 -1
- package/widgets/Editor/UpdateWorkflowData.js +1 -1
- package/widgets/Expand.js +1 -1
- package/widgets/Feature/support/arcadeFeatureUtils.js +1 -1
- package/widgets/Print.js +1 -1
- package/widgets/Search.js +1 -1
- package/widgets/Sketch/support/ResponsiveToolbar/ResponsiveToolbar.js +1 -1
- package/widgets/Sketch/support/ResponsiveToolbar/SplitButton.js +1 -1
- package/widgets/support/GridControls/GridControlsViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/5d50a8d0427eab0a2514.js +0 -1
- package/assets/esri/core/workers/chunks/c6fa79ce324122e08dbb.js +0 -1
- package/assets/esri/core/workers/chunks/cbbbaccc0d3683e1c0fe.js +0 -1
- package/assets/esri/core/workers/chunks/e7a440476cd1eb4c6547.js +0 -1
- package/assets/esri/core/workers/chunks/e9993d4f2bfdc434fbcc.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see
|
|
2
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4813],{2799:(t,e,s)=>{s.d(e,{C:()=>U,G:()=>T,a:()=>$,b:()=>C,c:()=>n,d:()=>d,e:()=>u,h:()=>v,i:()=>r,k:()=>A,o:()=>f,s:()=>c,t:()=>E});var o=s(98015),i=s(46337);const n=Symbol.for("controller"),r=t=>"function"==typeof t?.then;let a;const c=t=>{a!==t&&(a=t,queueMicrotask((()=>a===t?a=void 0:0)))},h=t=>a;let l=[];const d=t=>{if(void 0===t)return void(l=[]);const e=l.indexOf(t);l=-1===e?[...l,t]:l.slice(0,e+1),queueMicrotask((()=>l=[]))},u=()=>l;let p;const f=t=>{p!==t&&(p=t,queueMicrotask((()=>p===t?p=void 0:0)))},g=async(t,e)=>{const s=y(t);if(void 0===s)return t;if(await s.ready,"function"==typeof e){const t=s.watchExports((s=>e(s,t)))}return s.exports},m=async t=>{const e=y(t);return await e.ready,e},y=t=>{const e=h().manager.X(t);if(void 0!==e)return e;if((t=>"object"==typeof t&&null!==t&&(n in t||"hostConnected"in t||"hostDisconnected"in t||"hostUpdate"in t||"hostUpdated"in t))(t))return t;const s=(()=>{const t=p;return p=void 0,t})();return void 0!==s?s:void 0};let $=!1;const v=t=>{$=!0;try{return t()}finally{$=!1}};let b;const A=()=>{b?.forEach((({callbacks:t},e)=>{const s=Object.keys(e);t.forEach((t=>t(s)))})),b=void 0},_=(t,e,s)=>{const n=t.manager;return n.V!==i.s6&&n.V!==s&&n.S(void 0,void 0),0===n.T.length&&queueMicrotask((()=>n.S(void 0,void 0))),n.V=s,n.T.push(((t,i)=>(0,o.UF)(e,void 0,s===i?t:void 0))),s},E=(t=[h(),...u()],e,s)=>{const i=Array.isArray(t)?t:[t];let n=i.length+1;const r=t=>{n-=1,void 0!==t&&(n=Math.min(n,0)),0===n&&e(t)};i.forEach((t=>((t,e,s)=>{const i=Object.keys(t),n=i.length;void 0===b&&queueMicrotask(A),b??=new Map;let r=b.get(t);return void 0===r&&(r={callbacks:[],keyCount:n},b.set(t,r)),r.keyCount!==n&&(r.callbacks.forEach((t=>t(i))),r.callbacks=[],r.keyCount=n),r.callbacks.push((i=>{const r=t=>(0,o.UF)(e,null,t),a=i[n];void 0===a?r(void 0):t[a]===s?r(a):r(void 0)})),s})(t,(e=>r(void 0===e?void 0:{key:e,host:t,isReactive:!1})),s)));for(const t of i)if("manager"in t&&t.manager.component===t){_(t,(e=>r(void 0===e?void 0:{key:e,host:t,isReactive:!0})),s);break}return s},C=((t="",e={},s=h())=>{const o={emit:o=>{""===t&&A();const i=new CustomEvent(t,{detail:o,cancelable:!0,bubbles:!0,composed:!0,...e});return s.el.dispatchEvent(i),i}};return""===t&&E(void 0,(e=>t=e.key),o),o}).bind(null,"");var w;w=n;class U{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#o=[],this.#i=[],this.#n=[],this.#r=[],this.#a=[],this.#c=[],this.#h=!1,this.P=new o.cY,this.connectedCalled=!1,this.loadedCalled=!1,this[w]=!0,this.#l=[];const e=this,s=t??h(new.target.name);e.#d=s,e.ready=e.P.promise,e.#u=L(e),e.component=s,e.#d.addController(e),void 0===e.#d.manager||(d(e),queueMicrotask((()=>e.catchUpLifecycle())))}#t;#e;#s;#o;#i;#n;#r;#a;#c;#h;#d;catchUpLifecycle(){const{manager:t}=this.#d;!t.connectedCalled||this.connectedCalled||this.triggerConnected(),!t.#h||this.triggerLoad().then((()=>t.loadedCalled&&this.triggerLoaded())).catch(console.error)}#u;get exports(){return this.#u}set exports(t){const e=this.#u;e!==t&&(this.#u=t,this.#l.forEach(o.UF),this.connectedCalled&&!1!==this.O&&this.#d.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#u=e?L(t):t,this.#l.forEach(o.UF)}#l;watchExports(t){const e=()=>t(this.#u);return this.#l.push(e),()=>{this.#l.splice(this.#l.indexOf(e),1)}}get use(){return c(this.#d),g}get useRef(){return c(this.#d),m}get useRefSync(){return c(this.#d),y}controllerRemoved(){this.#d.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this.#t.push(t)}onDisconnected(t){this.#e.push(t)}onLoad(t){this.#s.push(t)}onLoaded(t){this.#o.push(t)}onUpdate(t){this.#i.push(t)}onUpdated(t){this.#n.push(t)}onDestroy(t){this.#r.push(t)}onLifecycle(t){this.#a.push(t),this.connectedCalled&&this.#d.el.isConnected&&this.#p(t)}triggerConnected(){const t=this;t.hostConnected&&(0,o.UF)(t.hostConnected,t),t.#t.forEach(o.UF),t.triggerLifecycle(),t.connectedCalled=!0}triggerDisconnected(){const t=this;t.hostDisconnected&&(0,o.UF)(t.hostDisconnected,t),t.#e.forEach(o.UF),t.#c.forEach(o.UF),t.#c=[]}async triggerLoad(){if(this.#h)return;this.#h=!0;const t=this;t.hostLoad&&await(0,o.ao)(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(o.ao)),this.P.resolve(this.#u)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&(0,o.UF)(this.hostLoaded,this),this.#o.forEach(o.UF),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&(0,o.UF)(this.hostUpdate,this,t),this.#i.forEach(S,t)}triggerUpdated(t){this.hostUpdated&&(0,o.UF)(this.hostUpdated,this,t),this.#n.forEach(S,t)}triggerDestroy(){this.hostDestroy&&(0,o.UF)(this.hostDestroy,this),this.#r.forEach(o.UF)}triggerLifecycle(){this.hostLifecycle&&this.#p((()=>this.hostLifecycle())),this.#a.forEach(this.#p,this)}#p(t){c(this.#d);const e=(0,o.UF)(t);(Array.isArray(e)?e:[e]).forEach((t=>{"function"==typeof t?this.#c.push(t):"object"==typeof t&&"function"==typeof t.remove&&this.#c.push(t.remove)}))}}function S(t){(0,o.UF)(t,void 0,this)}const T=U,L=t=>{if("object"!=typeof t&&"function"!=typeof t||null===t)return t;const e=new Proxy(t,{get(t,s,o){if("exports"!==s&&"_exports"!==s||!(s in t)||t[s]!==e)return s in t||s in Promise.prototype||"symbol"==typeof s?"function"==typeof t?t[s]:Reflect.get(t,s,o):void 0}});return e}},7804:(t,e,s)=>{s.d(e,{OA:()=>o,WL:()=>n,u$:()=>i});const o={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},i=t=>(...e)=>({_$litDirective$:t,values:e});class n{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}},14813:(t,e,s)=>{s.d(e,{Qu:()=>n,qu:()=>i});var o=s(34088);let i=!1;const n=t=>{i=!0,(0,o.s)(t)}},18504:(t,e,s)=>{s.d(e,{Rt:()=>n,mY:()=>a});var o=s(36752);const{I:i}=o.ge,n=t=>void 0===t.strings,r={},a=(t,e=r)=>t._$AH=e},19246:(t,e,s)=>{s.d(e,{WF:()=>C,lh:()=>o.b,le:()=>w,s6:()=>T,CP:()=>U,zl:()=>S,Bq:()=>L,pf:()=>k}),Event,Event;var o=s(2799),i=s(28760);i.W3,i.Ec;var n=s(98015);const r=t=>{let e=t;for(;e=e.parentNode??e.host;)if(e?.constructor?.lumina){const s=e;return s.manager?.loadedCalled||(s.J??s._offspring).push(t),(s.I??s._postLoad).promise}return!1},a={};function c(){}const h=Object.defineProperty,l=globalThis.HTMLElement??c;class d extends l{constructor(){super(),this.#f={},this.#g=[],this.I=new n.cY,this.H=new n.cY,this.J=[];const t=this,e=t.constructor;t._offspring=t.J,t._postLoad=t.I,e.C?.forEach((e=>{Object.hasOwn(t,e)&&(t.#f[e]=t[e],delete t[e])})),e.A?t.#m({a:e.A}):e.B.then((async s=>{await e.K.p,t.#m(await(s.default?.then((t=>"function"==typeof t?{a:t}:t))??s))})).catch((e=>{t.H.reject(e),setTimeout((()=>{throw e}))}))}static{this.lumina=!0}static F(){for(const t of this.C??[])h(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#f[t]},set(e){this.#f[t]=e}});for(const t of this.E??[])h(this.prototype,t,{async value(...e){this.#y||await this.H.promise;const s=this.#y;return await s[t](...e)},configurable:!0});for(const t of this.D??[])h(this.prototype,t,{value(...e){return this.#y[t](...e)},configurable:!0})}#y;#f;#g;get manager(){return this.#y?.manager}attributeChangedCallback(t,e,s){this.#y?.attributeChangedCallback(t,e,s),this.#y||this.#g.push(t)}connectedCallback(){this.#y?this.#y.connectedCallback?.():queueMicrotask((()=>this.G=r(this)))}disconnectedCallback(){this.#y?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#m(t){const e=this.constructor,s=e.L,o=this.#f,i=Object.values(t).find((t=>t.L===s)),n=`${s}--lazy`;let r=i;for(;r&&!Object.hasOwn(r,"lumina");)r=Object.getPrototypeOf(r);p(r),!e.A&&(e.A=i,customElements.define(n,i)),i.N=this;const a=document.createElement(n);i.N=void 0,this.#y=a,this.#f=a,this.#g.forEach((t=>a.attributeChangedCallback(t,null,this.getAttribute(t)))),Object.entries(o).forEach(u,a);const c=this.isConnected;(c||this.G)&&(a.connectedCallback?.(),c||a.disconnectedCallback())}addController(){}requestUpdate(){this.#y?.requestUpdate()}}function u([t,e]){this[t]=e}const p=t=>{const e=t.prototype,s=Element.prototype;Object.hasOwn(e,"isConnected")||(e.setAttribute=function(t,e){s.setAttribute.call(this.el,t,e)},e.removeAttribute=function(t){s.removeAttribute.call(this.el,t)},h(e,"isConnected",{get(){return Reflect.get(s,"isConnected",this.el)}}))};var f=s(46337),g=s(36752),m=s(7804);const y=(0,m.u$)(class extends m.WL{constructor(t){if(super(t),t.type!==m.OA.ATTRIBUTE||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(e)}const s=t.element.classList;for(const t of this.st)t in e||(s.remove(t),this.st.delete(t));for(const t in e){const o=!!e[t];o===this.st.has(t)||this.nt?.has(t)||(o?(s.add(t),this.st.add(t)):(s.remove(t),this.st.delete(t)))}return g.c0}}),$="important",v=" !"+$,b=(0,m.u$)(class extends m.WL{constructor(t){if(super(t),t.type!==m.OA.ATTRIBUTE||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,s)=>{const o=t[s];return null==o?e:e+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`}),"")}update(t,[e]){const{style:s}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(const t of this.ft)null==e[t]&&(this.ft.delete(t),t.includes("-")?s.removeProperty(t):s[t]=null);for(const t in e){const o=e[t];if(null!=o){this.ft.add(t);const e="string"==typeof o&&o.endsWith(v);t.includes("-")||e?s.setProperty(t,e?o.slice(0,-11):o,e?$:""):s[t]=o}}return g.c0}});s(56328);class A extends o.G{constructor(t){super(t),this.destroyed=!1,this.R=!1,this.V=f.s6,this.T=[],this.#$=new WeakMap,this.#d=t,this.exports=void 0,this.hasDestroy=E in t&&"function"==typeof t.destroy,f.WF.prototype.addController.call(t,{hostConnected:()=>{if(this.destroyed){const e=t.el.localName;throw t.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${E} prop.`)}void 0!==this.#v&&clearTimeout(this.#v),(0,o.k)();for(const e of t.M)"triggerConnected"in e?e.triggerConnected():(0,n.UF)(e.hostConnected,e)},hostDisconnected:()=>{for(const e of t.M)"triggerDisconnected"in e?e.triggerDisconnected():(0,n.UF)(e.hostDisconnected,e);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(const e of t.M)"triggerUpdate"in e?e.triggerUpdate(this.Q):(0,n.UF)(e.hostUpdate,e,this.Q)},hostUpdated:()=>{for(const e of t.M)"triggerUpdated"in e?e.triggerUpdated(this.Q):(0,n.UF)(e.hostUpdated,e,this.Q);this.Q=void 0}}),queueMicrotask((()=>this.R=!0)),(0,o.s)(t)}#v;#d;async destroy(){if(!this.destroyed){this.#d.el.isConnected&&(this.hasDestroy=!1,this.#d.el.remove()),this.#v=void 0,this.destroyed=!0;for(const t of this.#d.M)"triggerDestroy"in t?t.triggerDestroy():(0,n.UF)(t.hostDestroy,t);this.#d.M.splice(0)}}U(){if(void 0!==this.#v&&clearTimeout(this.#v),!this.#d.el.isConnected&&!this.#d.autoDestroyDisabled){const t=()=>{this.#d.destroy()};this.#v=(0,n.oK)(t,_)}}S(t,e){const s=this.T;this.V=f.s6,this.T=[],s.forEach((s=>s(t,e)))}#$;W(t,e){("object"==typeof e&&null!==e||"function"==typeof e)&&this.#$.set(e,t)}X(t){return"object"==typeof t&&null!==t||"function"==typeof t?this.#$.get(t):void 0}}let _=1e3;const E="autoDestroyDisabled";class C extends f.WF{constructor(){super(),this.M=[],this.manager=new A(this);const t=this,e=t.constructor,s=e.N,o=e.K.o,i=C.prototype.shouldUpdate;t.#b=s?.H??new n.cY,t.I=s?.I??new n.cY,t.J=s?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=s??t,t.#A=t.enableUpdating,t.enableUpdating=c,t.shouldUpdate!==i&&(t.#_=t.shouldUpdate,t.shouldUpdate=i),o&&(t.#E=new Map,e.elementProperties.forEach(((e,s)=>t.#E.set(s,o())))),f.S$&&t.el.setAttribute(e.K.hydratedAttribute,"")}static finalizeStyles(t){const e=super.finalizeStyles(t),s=this.shadowRootOptions===a;return void 0===this.K?.commonStyles||s?e:[this.K.commonStyles,...e]}static createProperty(t,e){const s="number"==typeof e?e:Array.isArray(e)?e[0]:0,o=Array.isArray(e)?e[1]:void 0,i=o?.hasChanged??f.Ec,r={attribute:!!(1&s&&"string"==typeof t)&&(0,n.j1)(t),reflect:!!(2&s),type:4&s?Boolean:8&s?Number:void 0,state:!!(16&s),readOnly:!!(32&s),noAccessor:!!(64&s),c:!1,...o,hasChanged(t,e){const s=i(t,e);return r.c=s,s}};super.createProperty(t,r)}static getPropertyDescriptor(t,e,s){const i=this.K,n=super.getPropertyDescriptor(t,e,s);return s.d=n,{...n,get(){return i.t?.(this.#E.get(t)),n.get?.call(this)},set(e){const i=this.manager;if(s.readOnly&&!o.a&&(i.R||i.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${e}"`);n.set.call(this,e??void 0),s.c&&this.#E?.get(t)?.notify(),i.T.length>0&&i?.S(t,e)}}}static{this.lumina=!0}#E;#_;#A;#b;#C;connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;const t=this.manager.A?.((()=>this.requestUpdate()));this.#C=t;const e=!this.manager.connectedCalled;super.connectedCallback(),e?queueMicrotask((()=>this.#w().catch((t=>{this.#b.reject(t),setTimeout((()=>{throw t}))})))):t&&this.requestUpdate()}#U(t){try{this.#C.clear(),this.manager.B(this.#C,(()=>super.update(t)))}catch(t){throw this.#C.clear(),t}}disconnectedCallback(){super.disconnectedCallback(),this.#C?.destroy(),this.#C=void 0}createRenderRoot(){const t=this.el.shadowRoot,e=this.constructor,s=e.shadowRootOptions,o=t??(s===a?this.el:this.el.attachShadow(s));if(t)return f.WF.prototype.createRenderRoot.call(this),t;if(this.isConnected){const t=o.getRootNode();t.adoptedStyleSheets=[...t.adoptedStyleSheets,...e.elementStyles.map((t=>"styleSheet"in t?t.styleSheet:t))]}return o}async#w(){const t=this.el.G??r(this.el);t&&await t;const e=[];for(const t of this.M)"triggerLoad"in t?e.push(t.triggerLoad()):e.push((0,n.ao)(t.hostLoad,t));await Promise.all(e),await(this.load?.()),this.manager.hasDestroy&&this.manager.onUpdate((t=>t.has(E)&&this.manager.U())),this.#A(!0),this.performUpdate(),this.I.resolve(),await Promise.resolve();const s=this.J.filter((t=>!t.manager?.loadedCalled));s.length&&await Promise.allSettled(s.map((async t=>await t.componentOnReady()))),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(const t of this.M)"triggerLoaded"in t?t.triggerLoaded():(0,n.UF)(t.hostLoaded,t);this.loaded?.(),this.#b.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#_?.(t)??!0}update(t){this.#C?this.#U(t):super.update(t)}listen(t,e,s){const o=e?.bind(this)??e;this.manager.onLifecycle((()=>(this.el.addEventListener(t,o,s),()=>this.el.removeEventListener(t,o,s))))}listenOn(t,e,s,o){const i=s?.bind(this)??s;this.manager.onLifecycle((()=>(t.addEventListener(e,i,o),()=>t.removeEventListener(e,i,o))))}async componentOnReady(){return await this.#b.promise,this}addController(t){this.M.push(t),!(o.c in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}}const w=t=>{let e;const s=t=>{e=new URL(t,globalThis.location?.href||void 0).href},o={...t,getAssetPath(t){const s=new URL(t,e);return s.origin!==globalThis.location?.origin?s.href:s.pathname},setAssetPath:s,customElement(t,e){e.K=o,e.L=t,customElements.get(t)||customElements.define(t,e)}};return s(t.defaultAssetPath),o},U=t=>"object"==typeof t&&null!=t?y(t):t,S=t=>"object"==typeof t&&null!=t?b(t):t,T=g.s6;function L(t,e,s){null==s?t.removeAttribute(e):t.setAttribute(e,s)}const k={toAttribute:t=>!0===t?"":!1===t?null:t}},28760:(t,e,s)=>{s.d(e,{Ec:()=>m,W3:()=>g,mN:()=>$});var o=s(33826);const{is:i,defineProperty:n,getOwnPropertyDescriptor:r,getOwnPropertyNames:a,getOwnPropertySymbols:c,getPrototypeOf:h}=Object,l=globalThis,d=l.trustedTypes,u=d?d.emptyScript:"",p=l.reactiveElementPolyfillSupport,f=(t,e)=>t,g={toAttribute(t,e){switch(e){case Boolean:t=t?u:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},m=(t,e)=>!i(t,e),y={attribute:!0,type:String,converter:g,reflect:!1,useDefault:!1,hasChanged:m};Symbol.metadata??=Symbol("metadata"),l.litPropertyMetadata??=new WeakMap;class $ extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=y){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),o=this.getPropertyDescriptor(t,s,e);void 0!==o&&n(this.prototype,t,o)}}static getPropertyDescriptor(t,e,s){const{get:o,set:i}=r(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:o,set(e){const n=o?.call(this);i?.call(this,e),this.requestUpdate(t,n,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??y}static _$Ei(){if(this.hasOwnProperty(f("elementProperties")))return;const t=h(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(f("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(f("properties"))){const t=this.properties,e=[...a(t),...c(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const s=this._$Eu(t,e);void 0!==s&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift((0,o.sk)(t))}else void 0!==t&&e.push((0,o.sk)(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return(0,o.Rf)(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,s);if(void 0!==o&&!0===s.reflect){const i=(void 0!==s.converter?.toAttribute?s.converter:g).toAttribute(e,s.type);this._$Em=t,null==i?this.removeAttribute(o):this.setAttribute(o,i),this._$Em=null}}_$AK(t,e){const s=this.constructor,o=s._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=s.getPropertyOptions(o),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:g;this._$Em=o,this[o]=i.fromAttribute(e,t.type)??this._$Ej?.get(o)??null,this._$Em=null}}requestUpdate(t,e,s){if(void 0!==t){const o=this.constructor,i=this[t];if(s??=o.getPropertyOptions(t),!((s.hasChanged??m)(i,e)||s.useDefault&&s.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(o._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:o,wrapped:i},n){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??e??this[t]),!0!==i||void 0!==n)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===o&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,o=this[e];!0!==t||this._$AL.has(e)||void 0===o||this.C(e,void 0,s,o)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(t){}firstUpdated(t){}}$.elementStyles=[],$.shadowRootOptions={mode:"open"},$[f("elementProperties")]=new Map,$[f("finalized")]=new Map,p?.({ReactiveElement:$}),(l.reactiveElementVersions??=[]).push("2.1.0")},33826:(t,e,s)=>{s.d(e,{AH:()=>c,Rf:()=>h,sk:()=>l});const o=globalThis,i=o.ShadowRoot&&(void 0===o.ShadyCSS||o.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,n=Symbol(),r=new WeakMap;class a{constructor(t,e,s){if(this._$cssResult$=!0,s!==n)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(i&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=r.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&r.set(e,t))}return t}toString(){return this.cssText}}const c=(t,...e)=>{const s=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new a(s,t,n)},h=(t,e)=>{if(i)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const s of e){const e=document.createElement("style"),i=o.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=s.cssText,t.appendChild(e)}},l=i?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return(t=>new a("string"==typeof t?t:t+"",void 0,n))(e)})(t):t},34088:(t,e,s)=>{s.d(e,{C:()=>a,D:()=>c,a:()=>h,c:()=>m,f:()=>u,g:()=>y,l:()=>p,s:()=>$});var o=s(19246),i=s(46337);const n="calcite-mode-auto",r="calcite-mode-dark",a={autoMode:n,darkMode:r,lightMode:"calcite-mode-light",rtl:"calcite--rtl",calciteAnimate:"calcite-animate",calciteAnimateInUp:"calcite-animate__in-up",calciteAnimateInDown:"calcite-animate__in-down",calciteAnimateInRight:"calcite-animate__in-right",calciteAnimateInLeft:"calcite-animate__in-left"},c={filter:250,nextTick:0,resize:150,reposition:100},h=25;function l(){const{classList:t}=document.body,e=window.matchMedia("(prefers-color-scheme: dark)").matches,s=()=>t.contains(r)||t.contains(n)&&e?"dark":"light",o=t=>document.body.dispatchEvent(new CustomEvent("calciteModeChange",{bubbles:!0,detail:{mode:t}})),i=t=>{a!==t&&o(t),a=t};let a=s();o(a),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",(t=>i(t.matches?"dark":"light"))),new MutationObserver((()=>i(s()))).observe(document.body,{attributes:!0,attributeFilter:["class"]})}const d=globalThis.calciteConfig,u=d?.focusTrapStack||[],p=d?.logLevel||"info",f="3.2.0";i.S$||("interactive"===document.readyState?l():document.addEventListener("DOMContentLoaded",(()=>l()),{once:!0})),function(){if(d&&d.version)return;console.info(`Using Calcite Components ${f} [Date: 2025-05-14, Revision: 4f2d7eb58]`);const t=d||globalThis.calciteConfig||{};Object.defineProperty(t,"version",{value:f,writable:!1}),globalThis.calciteConfig=t}();const g=(0,o.le)({defaultAssetPath:"https://js.arcgis.com/calcite-components/3.2.0/",hydratedAttribute:"calcite-hydrated"}),{customElement:m,getAssetPath:y,setAssetPath:$}=g},36752:(t,e,s)=>{s.d(e,{JW:()=>w,XX:()=>B,c0:()=>S,ej:()=>U,ge:()=>W,qy:()=>C,s6:()=>T});const o=globalThis,i=o.trustedTypes,n=i?i.createPolicy("lit-html",{createHTML:t=>t}):void 0,r="$lit$",a=`lit$${Math.random().toFixed(9).slice(2)}$`,c="?"+a,h=`<${c}>`,l=document,d=()=>l.createComment(""),u=t=>null===t||"object"!=typeof t&&"function"!=typeof t,p=Array.isArray,f=t=>p(t)||"function"==typeof t?.[Symbol.iterator],g="[ \t\n\f\r]",m=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,y=/-->/g,$=/>/g,v=RegExp(`>|${g}(?:([^\\s"'>=/]+)(${g}*=${g}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),b=/'/g,A=/"/g,_=/^(?:script|style|textarea|title)$/i,E=t=>(e,...s)=>({_$litType$:t,strings:e,values:s}),C=E(1),w=E(2),U=E(3),S=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),L=new WeakMap,k=l.createTreeWalker(l,129);function O(t,e){if(!p(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==n?n.createHTML(e):e}const P=(t,e)=>{const s=t.length-1,o=[];let i,n=2===e?"<svg>":3===e?"<math>":"",c=m;for(let e=0;e<s;e++){const s=t[e];let l,d,u=-1,p=0;for(;p<s.length&&(c.lastIndex=p,d=c.exec(s),null!==d);)p=c.lastIndex,c===m?"!--"===d[1]?c=y:void 0!==d[1]?c=$:void 0!==d[2]?(_.test(d[2])&&(i=RegExp("</"+d[2],"g")),c=v):void 0!==d[3]&&(c=v):c===v?">"===d[0]?(c=i??m,u=-1):void 0===d[1]?u=-2:(u=c.lastIndex-d[2].length,l=d[1],c=void 0===d[3]?v:'"'===d[3]?A:b):c===A||c===b?c=v:c===y||c===$?c=m:(c=v,i=void 0);const f=c===v&&t[e+1].startsWith("/>")?" ":"";n+=c===m?s+h:u>=0?(o.push(l),s.slice(0,u)+r+s.slice(u)+a+f):s+a+(-2===u?e:f)}return[O(t,n+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),o]};class x{constructor({strings:t,_$litType$:e},s){let o;this.parts=[];let n=0,h=0;const l=t.length-1,u=this.parts,[p,f]=P(t,e);if(this.el=x.createElement(p,s),k.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=k.nextNode())&&u.length<l;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(r)){const e=f[h++],s=o.getAttribute(t).split(a),i=/([.?@])?(.*)/.exec(e);u.push({type:1,index:n,name:i[2],strings:s,ctor:"."===i[1]?j:"?"===i[1]?H:"@"===i[1]?I:N}),o.removeAttribute(t)}else t.startsWith(a)&&(u.push({type:6,index:n}),o.removeAttribute(t));if(_.test(o.tagName)){const t=o.textContent.split(a),e=t.length-1;if(e>0){o.textContent=i?i.emptyScript:"";for(let s=0;s<e;s++)o.append(t[s],d()),k.nextNode(),u.push({type:2,index:++n});o.append(t[e],d())}}}else if(8===o.nodeType)if(o.data===c)u.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(a,t+1));)u.push({type:7,index:n}),t+=a.length-1}n++}}static createElement(t,e){const s=l.createElement("template");return s.innerHTML=t,s}}function R(t,e,s=t,o){if(e===S)return e;let i=void 0!==o?s._$Co?.[o]:s._$Cl;const n=u(e)?void 0:e._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),void 0===n?i=void 0:(i=new n(t),i._$AT(t,s,o)),void 0!==o?(s._$Co??=[])[o]=i:s._$Cl=i),void 0!==i&&(e=R(t,i._$AS(t,e.values),i,o)),e}class M{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,o=(t?.creationScope??l).importNode(e,!0);k.currentNode=o;let i=k.nextNode(),n=0,r=0,a=s[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new D(i,i.nextSibling,this,t):1===a.type?e=new a.ctor(i,a.name,a.strings,this,t):6===a.type&&(e=new F(i,this,t)),this._$AV.push(e),a=s[++r]}n!==a?.index&&(i=k.nextNode(),n++)}return k.currentNode=l,o}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class D{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,o){this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=R(this,t,e),u(t)?t===T||null==t||""===t?(this._$AH!==T&&this._$AR(),this._$AH=T):t!==this._$AH&&t!==S&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):f(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==T&&u(this._$AH)?this._$AA.nextSibling.data=t:this.T(l.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,o="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=x.createElement(O(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new M(o,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=L.get(t.strings);return void 0===e&&L.set(t.strings,e=new x(t)),e}k(t){p(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,o=0;for(const i of t)o===e.length?e.push(s=new D(this.O(d()),this.O(d()),this,this.options)):s=e[o],s._$AI(i),o++;o<e.length&&(this._$AR(s&&s._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class N{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,o,i){this.type=1,this._$AH=T,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=i,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=T}_$AI(t,e=this,s,o){const i=this.strings;let n=!1;if(void 0===i)t=R(this,t,e,0),n=!u(t)||t!==this._$AH&&t!==S,n&&(this._$AH=t);else{const o=t;let r,a;for(t=i[0],r=0;r<i.length-1;r++)a=R(this,o[s+r],e,r),a===S&&(a=this._$AH[r]),n||=!u(a)||a!==this._$AH[r],a===T?t=T:t!==T&&(t+=(a??"")+i[r+1]),this._$AH[r]=a}n&&!o&&this.j(t)}j(t){t===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class j extends N{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===T?void 0:t}}class H extends N{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==T)}}class I extends N{constructor(t,e,s,o,i){super(t,e,s,o,i),this.type=5}_$AI(t,e=this){if((t=R(this,t,e,0)??T)===S)return;const s=this._$AH,o=t===T&&s!==T||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,i=t!==T&&(s===T||o);o&&this.element.removeEventListener(this.name,this,s),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class F{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){R(this,t)}}const W={M:r,P:a,A:c,C:1,L:P,R:M,D:f,V:R,I:D,H:N,N:H,U:I,B:j,F},z=o.litHtmlPolyfillSupport;z?.(x,D),(o.litHtmlVersions??=[]).push("3.3.0");const B=(t,e,s)=>{const o=s?.renderBefore??e;let i=o._$litPart$;if(void 0===i){const t=s?.renderBefore??null;o._$litPart$=i=new D(e.insertBefore(d(),t),t,void 0,s??{})}return i._$AI(t),i}},46337:(t,e,s)=>{s.d(e,{WF:()=>r,qy:()=>i.qy,S$:()=>c,Ec:()=>o.Ec,s6:()=>i.s6,JW:()=>i.JW});var o=s(28760),i=s(36752);const n=globalThis;class r extends o.mN{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=(0,i.XX)(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return i.c0}}r._$litElement$=!0,r.finalized=!0,n.litElementHydrateSupport?.({LitElement:r});const a=n.litElementPolyfillSupport;a?.({LitElement:r}),(n.litElementVersions??=[]).push("4.2.0");const c=!1},56328:(t,e,s)=>{s.d(e,{V:()=>r});var o=s(36752),i=s(7804),n=s(18504);const r=(0,i.u$)(class extends i.WL{constructor(t){if(super(t),t.type!==i.OA.PROPERTY&&t.type!==i.OA.ATTRIBUTE&&t.type!==i.OA.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!(0,n.Rt)(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===o.c0||e===o.s6)return e;const s=t.element,r=t.name;if(t.type===i.OA.PROPERTY){if(e===s[r])return o.c0}else if(t.type===i.OA.BOOLEAN_ATTRIBUTE){if(!!e===s.hasAttribute(r))return o.c0}else if(t.type===i.OA.ATTRIBUTE&&s.getAttribute(r)===e+"")return o.c0;return(0,n.mY)(t),e}})},98015:(t,e,s)=>{s.d(e,{UF:()=>a,ao:()=>c,cY:()=>o,hd:()=>y,j1:()=>v,kn:()=>g,oK:()=>A});class o{constructor(){this.promise=new Promise(((t,e)=>{this.resolve=t,this.reject=e}))}}const i={},n=t=>{const e=t.join(","),s=i[e];if(void 0!==s)return s;const o=new Set,n=new MutationObserver((t=>o.forEach((e=>e(t)))));globalThis.document&&n.observe(document.documentElement,{attributes:!0,attributeFilter:t,subtree:!0});const r={subscribe:t=>(o.add(t),()=>{o.delete(t),0===o.size&&(n.disconnect(),i[e]=void 0)})};return i[e]=r,r},r=(t,e,s)=>{const o=((t,e)=>{let s=t;for(;s;){const t=s.closest?.(e);if(t)return t;const o=s.getRootNode?.();if(o===globalThis.document)return null;s=o.host}return null})(t,`[${e}]`);return o?.getAttribute(e)??s},a=(t,e,...s)=>{try{return t?.call(e,...s)}catch(e){console.error(e,t)}},c=async(t,e,...s)=>{try{const o=t?.call(e,...s);return await o}catch(e){console.error(e,t)}},h="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),l=new Set(h),d="en",u={pt:"pt-PT",nb:"no",nn:"no",zh:"zh-CN"},p={},f=async(t,e)=>{const s=`${e}${t}.json`;try{const t=await fetch(s);if(t.ok)return await t.json()}catch(t){return console.error(t),{}}return t===d?{}:await f(d,e)},g=t=>{const e=r(t,"lang",globalThis.navigator?.language||d);return{lang:e,t9nLocale:m(e)}},m=t=>{const[e,s]=t.split("-"),o=e.toLowerCase();let i=o;return s&&(i=`${o}-${s.toUpperCase()}`),i=u[i]??i,l.has(i)?i:s?m(o):d},y=(t,e,s,o)=>{let i;const r=()=>$(t,e(),o).then((t=>{i?.lang===t.lang&&i.t9nLocale===t.t9nLocale&&i.t9nStrings===t.t9nStrings||s(t),i=t})).catch(console.error);return queueMicrotask(r),((t,e,s)=>(0,n(e).subscribe)((e=>{const o=e.some((e=>((t,e)=>{let s=t;for(;s;){if(s===e)return!0;if(!s.parentNode)return!1;s=s.parentNode instanceof ShadowRoot?s.parentNode.host:s.parentNode}return!1})(t,e.target)));o&&s()})))(t,["lang"],r)},$=async(t,e,s=t.localName.split("-").slice(1).join("-"))=>{const{lang:o,t9nLocale:i}=g(t),n=`${e}/${s}/t9n`,r=null===s?{}:await(async(t,e,s="")=>{const o=`${e}/${s}`,i=`${o}${t}.json`;return p[i]??(p[i]=f(t,o)),await p[i]})(i,n,"messages.");return{lang:o,t9nLocale:i,t9nStrings:r}},v=t=>t.replace(b,((t,e)=>`${0===e?"":"-"}${t.toLowerCase()}`)),b=/[A-Z]+(?![a-z])|[A-Z]/gu,A=(t,e)=>{const s=e>_?E:e/C;let o=0;const i=setInterval((()=>{o+=s,o>=e&&(clearInterval(i),t())}),s);return i},_=4e3,E=2e3,C=4}}]);
|
|
1
|
+
/*! For license information please see 17fcdaeb42e932712096.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4813],{2799:(t,e,s)=>{s.d(e,{C:()=>U,G:()=>T,a:()=>$,b:()=>C,c:()=>n,d:()=>d,e:()=>u,h:()=>v,i:()=>r,k:()=>A,o:()=>f,s:()=>c,t:()=>E});var o=s(98015),i=s(46337);const n=Symbol.for("controller"),r=t=>"function"==typeof t?.then;let a;const c=t=>{a!==t&&(a=t,queueMicrotask((()=>a===t?a=void 0:0)))},h=t=>a;let l=[];const d=t=>{if(void 0===t)return void(l=[]);const e=l.indexOf(t);l=-1===e?[...l,t]:l.slice(0,e+1),queueMicrotask((()=>l=[]))},u=()=>l;let p;const f=t=>{p!==t&&(p=t,queueMicrotask((()=>p===t?p=void 0:0)))},g=async(t,e)=>{const s=y(t);if(void 0===s)return t;if(await s.ready,"function"==typeof e){const t=s.watchExports((s=>e(s,t)))}return s.exports},m=async t=>{const e=y(t);return await e.ready,e},y=t=>{const e=h().manager.X(t);if(void 0!==e)return e;if((t=>"object"==typeof t&&null!==t&&(n in t||"hostConnected"in t||"hostDisconnected"in t||"hostUpdate"in t||"hostUpdated"in t))(t))return t;const s=(()=>{const t=p;return p=void 0,t})();return void 0!==s?s:void 0};let $=!1;const v=t=>{$=!0;try{return t()}finally{$=!1}};let b;const A=()=>{b?.forEach((({callbacks:t},e)=>{const s=Object.keys(e);t.forEach((t=>t(s)))})),b=void 0},_=(t,e,s)=>{const n=t.manager;return n.V!==i.s6&&n.V!==s&&n.S(void 0,void 0),0===n.T.length&&queueMicrotask((()=>n.S(void 0,void 0))),n.V=s,n.T.push(((t,i)=>(0,o.UF)(e,void 0,s===i?t:void 0))),s},E=(t=[h(),...u()],e,s)=>{const i=Array.isArray(t)?t:[t];let n=i.length+1;const r=t=>{n-=1,void 0!==t&&(n=Math.min(n,0)),0===n&&e(t)};i.forEach((t=>((t,e,s)=>{const i=Object.keys(t),n=i.length;void 0===b&&queueMicrotask(A),b??=new Map;let r=b.get(t);return void 0===r&&(r={callbacks:[],keyCount:n},b.set(t,r)),r.keyCount!==n&&(r.callbacks.forEach((t=>t(i))),r.callbacks=[],r.keyCount=n),r.callbacks.push((i=>{const r=t=>(0,o.UF)(e,null,t),a=i[n];void 0===a?r(void 0):t[a]===s?r(a):r(void 0)})),s})(t,(e=>r(void 0===e?void 0:{key:e,host:t,isReactive:!1})),s)));for(const t of i)if("manager"in t&&t.manager.component===t){_(t,(e=>r(void 0===e?void 0:{key:e,host:t,isReactive:!0})),s);break}return s},C=((t="",e={},s=h())=>{const o={emit:o=>{""===t&&A();const i=new CustomEvent(t,{detail:o,cancelable:!0,bubbles:!0,composed:!0,...e});return s.el.dispatchEvent(i),i}};return""===t&&E(void 0,(e=>t=e.key),o),o}).bind(null,"");var w;w=n;class U{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#o=[],this.#i=[],this.#n=[],this.#r=[],this.#a=[],this.#c=[],this.#h=!1,this.P=new o.cY,this.connectedCalled=!1,this.loadedCalled=!1,this[w]=!0,this.#l=[];const e=this,s=t??h(new.target.name);e.#d=s,e.ready=e.P.promise,e.#u=L(e),e.component=s,e.#d.addController(e),void 0===e.#d.manager||(d(e),queueMicrotask((()=>e.catchUpLifecycle())))}#t;#e;#s;#o;#i;#n;#r;#a;#c;#h;#d;catchUpLifecycle(){const{manager:t}=this.#d;!t.connectedCalled||this.connectedCalled||this.triggerConnected(),!t.#h||this.triggerLoad().then((()=>t.loadedCalled&&this.triggerLoaded())).catch(console.error)}#u;get exports(){return this.#u}set exports(t){const e=this.#u;e!==t&&(this.#u=t,this.#l.forEach(o.UF),this.connectedCalled&&!1!==this.O&&this.#d.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#u=e?L(t):t,this.#l.forEach(o.UF)}#l;watchExports(t){const e=()=>t(this.#u);return this.#l.push(e),()=>{this.#l.splice(this.#l.indexOf(e),1)}}get use(){return c(this.#d),g}get useRef(){return c(this.#d),m}get useRefSync(){return c(this.#d),y}controllerRemoved(){this.#d.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this.#t.push(t)}onDisconnected(t){this.#e.push(t)}onLoad(t){this.#s.push(t)}onLoaded(t){this.#o.push(t)}onUpdate(t){this.#i.push(t)}onUpdated(t){this.#n.push(t)}onDestroy(t){this.#r.push(t)}onLifecycle(t){this.#a.push(t),this.connectedCalled&&this.#d.el.isConnected&&this.#p(t)}triggerConnected(){const t=this;t.hostConnected&&(0,o.UF)(t.hostConnected,t),t.#t.forEach(o.UF),t.triggerLifecycle(),t.connectedCalled=!0}triggerDisconnected(){const t=this;t.hostDisconnected&&(0,o.UF)(t.hostDisconnected,t),t.#e.forEach(o.UF),t.#c.forEach(o.UF),t.#c=[]}async triggerLoad(){if(this.#h)return;this.#h=!0;const t=this;t.hostLoad&&await(0,o.ao)(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(o.ao)),this.P.resolve(this.#u)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&(0,o.UF)(this.hostLoaded,this),this.#o.forEach(o.UF),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&(0,o.UF)(this.hostUpdate,this,t),this.#i.forEach(S,t)}triggerUpdated(t){this.hostUpdated&&(0,o.UF)(this.hostUpdated,this,t),this.#n.forEach(S,t)}triggerDestroy(){this.hostDestroy&&(0,o.UF)(this.hostDestroy,this),this.#r.forEach(o.UF)}triggerLifecycle(){this.hostLifecycle&&this.#p((()=>this.hostLifecycle())),this.#a.forEach(this.#p,this)}#p(t){c(this.#d);const e=(0,o.UF)(t);(Array.isArray(e)?e:[e]).forEach((t=>{"function"==typeof t?this.#c.push(t):"object"==typeof t&&"function"==typeof t.remove&&this.#c.push(t.remove)}))}}function S(t){(0,o.UF)(t,void 0,this)}const T=U,L=t=>{if("object"!=typeof t&&"function"!=typeof t||null===t)return t;const e=new Proxy(t,{get(t,s,o){if("exports"!==s&&"_exports"!==s||!(s in t)||t[s]!==e)return s in t||s in Promise.prototype||"symbol"==typeof s?"function"==typeof t?t[s]:Reflect.get(t,s,o):void 0}});return e}},7804:(t,e,s)=>{s.d(e,{OA:()=>o,WL:()=>n,u$:()=>i});const o={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},i=t=>(...e)=>({_$litDirective$:t,values:e});class n{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}},14813:(t,e,s)=>{s.d(e,{Qu:()=>n,qu:()=>i});var o=s(34088);let i=!1;const n=t=>{i=!0,(0,o.s)(t)}},18504:(t,e,s)=>{s.d(e,{Rt:()=>n,mY:()=>a});var o=s(36752);const{I:i}=o.ge,n=t=>void 0===t.strings,r={},a=(t,e=r)=>t._$AH=e},19246:(t,e,s)=>{s.d(e,{WF:()=>C,lh:()=>o.b,le:()=>w,s6:()=>T,CP:()=>U,zl:()=>S,Bq:()=>L,pf:()=>k}),Event,Event;var o=s(2799),i=s(28760);i.W3,i.Ec;var n=s(98015);const r=t=>{let e=t;for(;e=e.parentNode??e.host;)if(e?.constructor?.lumina){const s=e;return s.manager?.loadedCalled||(s.J??s._offspring).push(t),(s.I??s._postLoad).promise}return!1},a={};function c(){}const h=Object.defineProperty,l=globalThis.HTMLElement??c;class d extends l{constructor(){super(),this.#f={},this.#g=[],this.I=new n.cY,this.H=new n.cY,this.J=[];const t=this,e=t.constructor;t._offspring=t.J,t._postLoad=t.I,e.C?.forEach((e=>{Object.hasOwn(t,e)&&(t.#f[e]=t[e],delete t[e])})),e.A?t.#m({a:e.A}):e.B.then((async s=>{await e.K.p,t.#m(await(s.default?.then((t=>"function"==typeof t?{a:t}:t))??s))})).catch((e=>{t.H.reject(e),setTimeout((()=>{throw e}))}))}static{this.lumina=!0}static F(){for(const t of this.C??[])h(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#f[t]},set(e){this.#f[t]=e}});for(const t of this.E??[])h(this.prototype,t,{async value(...e){this.#y||await this.H.promise;const s=this.#y;return await s[t](...e)},configurable:!0});for(const t of this.D??[])h(this.prototype,t,{value(...e){return this.#y[t](...e)},configurable:!0})}#y;#f;#g;get manager(){return this.#y?.manager}attributeChangedCallback(t,e,s){this.#y?.attributeChangedCallback(t,e,s),this.#y||this.#g.push(t)}connectedCallback(){this.#y?this.#y.connectedCallback?.():queueMicrotask((()=>this.G=r(this)))}disconnectedCallback(){this.#y?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#m(t){const e=this.constructor,s=e.L,o=this.#f,i=Object.values(t).find((t=>t.L===s)),n=`${s}--lazy`;let r=i;for(;r&&!Object.hasOwn(r,"lumina");)r=Object.getPrototypeOf(r);p(r),!e.A&&(e.A=i,customElements.define(n,i)),i.N=this;const a=document.createElement(n);i.N=void 0,this.#y=a,this.#f=a,this.#g.forEach((t=>a.attributeChangedCallback(t,null,this.getAttribute(t)))),Object.entries(o).forEach(u,a);const c=this.isConnected;(c||this.G)&&(a.connectedCallback?.(),c||a.disconnectedCallback())}addController(){}requestUpdate(){this.#y?.requestUpdate()}}function u([t,e]){this[t]=e}const p=t=>{const e=t.prototype,s=Element.prototype;Object.hasOwn(e,"isConnected")||(e.setAttribute=function(t,e){s.setAttribute.call(this.el,t,e)},e.removeAttribute=function(t){s.removeAttribute.call(this.el,t)},h(e,"isConnected",{get(){return Reflect.get(s,"isConnected",this.el)}}))};var f=s(46337),g=s(36752),m=s(7804);const y=(0,m.u$)(class extends m.WL{constructor(t){if(super(t),t.type!==m.OA.ATTRIBUTE||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(e)}const s=t.element.classList;for(const t of this.st)t in e||(s.remove(t),this.st.delete(t));for(const t in e){const o=!!e[t];o===this.st.has(t)||this.nt?.has(t)||(o?(s.add(t),this.st.add(t)):(s.remove(t),this.st.delete(t)))}return g.c0}}),$="important",v=" !"+$,b=(0,m.u$)(class extends m.WL{constructor(t){if(super(t),t.type!==m.OA.ATTRIBUTE||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,s)=>{const o=t[s];return null==o?e:e+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`}),"")}update(t,[e]){const{style:s}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(const t of this.ft)null==e[t]&&(this.ft.delete(t),t.includes("-")?s.removeProperty(t):s[t]=null);for(const t in e){const o=e[t];if(null!=o){this.ft.add(t);const e="string"==typeof o&&o.endsWith(v);t.includes("-")||e?s.setProperty(t,e?o.slice(0,-11):o,e?$:""):s[t]=o}}return g.c0}});s(56328);class A extends o.G{constructor(t){super(t),this.destroyed=!1,this.R=!1,this.V=f.s6,this.T=[],this.#$=new WeakMap,this.#d=t,this.exports=void 0,this.hasDestroy=E in t&&"function"==typeof t.destroy,f.WF.prototype.addController.call(t,{hostConnected:()=>{if(this.destroyed){const e=t.el.localName;throw t.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${E} prop.`)}void 0!==this.#v&&clearTimeout(this.#v),(0,o.k)();for(const e of t.M)"triggerConnected"in e?e.triggerConnected():(0,n.UF)(e.hostConnected,e)},hostDisconnected:()=>{for(const e of t.M)"triggerDisconnected"in e?e.triggerDisconnected():(0,n.UF)(e.hostDisconnected,e);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(const e of t.M)"triggerUpdate"in e?e.triggerUpdate(this.Q):(0,n.UF)(e.hostUpdate,e,this.Q)},hostUpdated:()=>{for(const e of t.M)"triggerUpdated"in e?e.triggerUpdated(this.Q):(0,n.UF)(e.hostUpdated,e,this.Q);this.Q=void 0}}),queueMicrotask((()=>this.R=!0)),(0,o.s)(t)}#v;#d;async destroy(){if(!this.destroyed){this.#d.el.isConnected&&(this.hasDestroy=!1,this.#d.el.remove()),this.#v=void 0,this.destroyed=!0;for(const t of this.#d.M)"triggerDestroy"in t?t.triggerDestroy():(0,n.UF)(t.hostDestroy,t);this.#d.M.splice(0)}}U(){if(void 0!==this.#v&&clearTimeout(this.#v),!this.#d.el.isConnected&&!this.#d.autoDestroyDisabled){const t=()=>{this.#d.destroy()};this.#v=(0,n.oK)(t,_)}}S(t,e){const s=this.T;this.V=f.s6,this.T=[],s.forEach((s=>s(t,e)))}#$;W(t,e){("object"==typeof e&&null!==e||"function"==typeof e)&&this.#$.set(e,t)}X(t){return"object"==typeof t&&null!==t||"function"==typeof t?this.#$.get(t):void 0}}let _=1e3;const E="autoDestroyDisabled";class C extends f.WF{constructor(){super(),this.M=[],this.manager=new A(this);const t=this,e=t.constructor,s=e.N,o=e.K.o,i=C.prototype.shouldUpdate;t.#b=s?.H??new n.cY,t.I=s?.I??new n.cY,t.J=s?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=s??t,t.#A=t.enableUpdating,t.enableUpdating=c,t.shouldUpdate!==i&&(t.#_=t.shouldUpdate,t.shouldUpdate=i),o&&(t.#E=new Map,e.elementProperties.forEach(((e,s)=>t.#E.set(s,o())))),f.S$&&t.el.setAttribute(e.K.hydratedAttribute,"")}static finalizeStyles(t){const e=super.finalizeStyles(t),s=this.shadowRootOptions===a;return void 0===this.K?.commonStyles||s?e:[this.K.commonStyles,...e]}static createProperty(t,e){const s="number"==typeof e?e:Array.isArray(e)?e[0]:0,o=Array.isArray(e)?e[1]:void 0,i=o?.hasChanged??f.Ec,r={attribute:!!(1&s&&"string"==typeof t)&&(0,n.j1)(t),reflect:!!(2&s),type:4&s?Boolean:8&s?Number:void 0,state:!!(16&s),readOnly:!!(32&s),noAccessor:!!(64&s),c:!1,...o,hasChanged(t,e){const s=i(t,e);return r.c=s,s}};super.createProperty(t,r)}static getPropertyDescriptor(t,e,s){const i=this.K,n=super.getPropertyDescriptor(t,e,s);return s.d=n,{...n,get(){return i.t?.(this.#E.get(t)),n.get?.call(this)},set(e){const i=this.manager;if(s.readOnly&&!o.a&&(i.R||i.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${e}"`);n.set.call(this,e??void 0),s.c&&this.#E?.get(t)?.notify(),i.T.length>0&&i?.S(t,e)}}}static{this.lumina=!0}#E;#_;#A;#b;#C;connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;const t=this.manager.A?.((()=>this.requestUpdate()));this.#C=t;const e=!this.manager.connectedCalled;super.connectedCallback(),e?queueMicrotask((()=>this.#w().catch((t=>{this.#b.reject(t),setTimeout((()=>{throw t}))})))):t&&this.requestUpdate()}#U(t){try{this.#C.clear(),this.manager.B(this.#C,(()=>super.update(t)))}catch(t){throw this.#C.clear(),t}}disconnectedCallback(){super.disconnectedCallback(),this.#C?.destroy(),this.#C=void 0}createRenderRoot(){const t=this.el.shadowRoot,e=this.constructor,s=e.shadowRootOptions,o=t??(s===a?this.el:this.el.attachShadow(s));if(t)return f.WF.prototype.createRenderRoot.call(this),t;if(this.isConnected){const t=o.getRootNode();t.adoptedStyleSheets=[...t.adoptedStyleSheets,...e.elementStyles.map((t=>"styleSheet"in t?t.styleSheet:t))]}return o}async#w(){const t=this.el.G??r(this.el);t&&await t;const e=[];for(const t of this.M)"triggerLoad"in t?e.push(t.triggerLoad()):e.push((0,n.ao)(t.hostLoad,t));await Promise.all(e),await(this.load?.()),this.manager.hasDestroy&&this.manager.onUpdate((t=>t.has(E)&&this.manager.U())),this.#A(!0),this.performUpdate(),this.I.resolve(),await Promise.resolve();const s=this.J.filter((t=>!t.manager?.loadedCalled));s.length&&await Promise.allSettled(s.map((async t=>await t.componentOnReady()))),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(const t of this.M)"triggerLoaded"in t?t.triggerLoaded():(0,n.UF)(t.hostLoaded,t);this.loaded?.(),this.#b.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#_?.(t)??!0}update(t){this.#C?this.#U(t):super.update(t)}listen(t,e,s){const o=e?.bind(this)??e;this.manager.onLifecycle((()=>(this.el.addEventListener(t,o,s),()=>this.el.removeEventListener(t,o,s))))}listenOn(t,e,s,o){const i=s?.bind(this)??s;this.manager.onLifecycle((()=>(t.addEventListener(e,i,o),()=>t.removeEventListener(e,i,o))))}async componentOnReady(){return await this.#b.promise,this}addController(t){this.M.push(t),!(o.c in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}}const w=t=>{let e;const s=t=>{e=new URL(t,globalThis.location?.href||void 0).href},o={...t,getAssetPath(t){const s=new URL(t,e);return s.origin!==globalThis.location?.origin?s.href:s.pathname},setAssetPath:s,customElement(t,e){e.K=o,e.L=t,customElements.get(t)||customElements.define(t,e)}};return s(t.defaultAssetPath),o},U=t=>"object"==typeof t&&null!=t?y(t):t,S=t=>"object"==typeof t&&null!=t?b(t):t,T=g.s6;function L(t,e,s){null==s?t.removeAttribute(e):t.setAttribute(e,s)}const k={toAttribute:t=>!0===t?"":!1===t?null:t}},28760:(t,e,s)=>{s.d(e,{Ec:()=>m,W3:()=>g,mN:()=>$});var o=s(33826);const{is:i,defineProperty:n,getOwnPropertyDescriptor:r,getOwnPropertyNames:a,getOwnPropertySymbols:c,getPrototypeOf:h}=Object,l=globalThis,d=l.trustedTypes,u=d?d.emptyScript:"",p=l.reactiveElementPolyfillSupport,f=(t,e)=>t,g={toAttribute(t,e){switch(e){case Boolean:t=t?u:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},m=(t,e)=>!i(t,e),y={attribute:!0,type:String,converter:g,reflect:!1,useDefault:!1,hasChanged:m};Symbol.metadata??=Symbol("metadata"),l.litPropertyMetadata??=new WeakMap;class $ extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=y){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),o=this.getPropertyDescriptor(t,s,e);void 0!==o&&n(this.prototype,t,o)}}static getPropertyDescriptor(t,e,s){const{get:o,set:i}=r(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:o,set(e){const n=o?.call(this);i?.call(this,e),this.requestUpdate(t,n,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??y}static _$Ei(){if(this.hasOwnProperty(f("elementProperties")))return;const t=h(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(f("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(f("properties"))){const t=this.properties,e=[...a(t),...c(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const s=this._$Eu(t,e);void 0!==s&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift((0,o.sk)(t))}else void 0!==t&&e.push((0,o.sk)(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return(0,o.Rf)(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,s);if(void 0!==o&&!0===s.reflect){const i=(void 0!==s.converter?.toAttribute?s.converter:g).toAttribute(e,s.type);this._$Em=t,null==i?this.removeAttribute(o):this.setAttribute(o,i),this._$Em=null}}_$AK(t,e){const s=this.constructor,o=s._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=s.getPropertyOptions(o),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:g;this._$Em=o,this[o]=i.fromAttribute(e,t.type)??this._$Ej?.get(o)??null,this._$Em=null}}requestUpdate(t,e,s){if(void 0!==t){const o=this.constructor,i=this[t];if(s??=o.getPropertyOptions(t),!((s.hasChanged??m)(i,e)||s.useDefault&&s.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(o._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:o,wrapped:i},n){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??e??this[t]),!0!==i||void 0!==n)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===o&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,o=this[e];!0!==t||this._$AL.has(e)||void 0===o||this.C(e,void 0,s,o)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(t){}firstUpdated(t){}}$.elementStyles=[],$.shadowRootOptions={mode:"open"},$[f("elementProperties")]=new Map,$[f("finalized")]=new Map,p?.({ReactiveElement:$}),(l.reactiveElementVersions??=[]).push("2.1.0")},33826:(t,e,s)=>{s.d(e,{AH:()=>c,Rf:()=>h,sk:()=>l});const o=globalThis,i=o.ShadowRoot&&(void 0===o.ShadyCSS||o.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,n=Symbol(),r=new WeakMap;class a{constructor(t,e,s){if(this._$cssResult$=!0,s!==n)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(i&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=r.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&r.set(e,t))}return t}toString(){return this.cssText}}const c=(t,...e)=>{const s=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new a(s,t,n)},h=(t,e)=>{if(i)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const s of e){const e=document.createElement("style"),i=o.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=s.cssText,t.appendChild(e)}},l=i?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return(t=>new a("string"==typeof t?t:t+"",void 0,n))(e)})(t):t},34088:(t,e,s)=>{s.d(e,{C:()=>a,D:()=>c,a:()=>h,c:()=>m,f:()=>u,g:()=>y,l:()=>p,s:()=>$});var o=s(19246),i=s(46337);const n="calcite-mode-auto",r="calcite-mode-dark",a={autoMode:n,darkMode:r,lightMode:"calcite-mode-light",rtl:"calcite--rtl",calciteAnimate:"calcite-animate",calciteAnimateInUp:"calcite-animate__in-up",calciteAnimateInDown:"calcite-animate__in-down",calciteAnimateInRight:"calcite-animate__in-right",calciteAnimateInLeft:"calcite-animate__in-left"},c={filter:250,nextTick:0,resize:150,reposition:100},h=25;function l(){const{classList:t}=document.body,e=window.matchMedia("(prefers-color-scheme: dark)").matches,s=()=>t.contains(r)||t.contains(n)&&e?"dark":"light",o=t=>document.body.dispatchEvent(new CustomEvent("calciteModeChange",{bubbles:!0,detail:{mode:t}})),i=t=>{a!==t&&o(t),a=t};let a=s();o(a),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",(t=>i(t.matches?"dark":"light"))),new MutationObserver((()=>i(s()))).observe(document.body,{attributes:!0,attributeFilter:["class"]})}const d=globalThis.calciteConfig,u=d?.focusTrapStack||[],p=d?.logLevel||"info",f="3.2.1";i.S$||("interactive"===document.readyState?l():document.addEventListener("DOMContentLoaded",(()=>l()),{once:!0})),function(){if(d&&d.version)return;console.info(`Using Calcite Components ${f} [Date: 2025-05-29, Revision: 618973fec]`);const t=d||globalThis.calciteConfig||{};Object.defineProperty(t,"version",{value:f,writable:!1}),globalThis.calciteConfig=t}();const g=(0,o.le)({defaultAssetPath:"https://js.arcgis.com/calcite-components/3.2.1/",hydratedAttribute:"calcite-hydrated"}),{customElement:m,getAssetPath:y,setAssetPath:$}=g},36752:(t,e,s)=>{s.d(e,{JW:()=>w,XX:()=>B,c0:()=>S,ej:()=>U,ge:()=>W,qy:()=>C,s6:()=>T});const o=globalThis,i=o.trustedTypes,n=i?i.createPolicy("lit-html",{createHTML:t=>t}):void 0,r="$lit$",a=`lit$${Math.random().toFixed(9).slice(2)}$`,c="?"+a,h=`<${c}>`,l=document,d=()=>l.createComment(""),u=t=>null===t||"object"!=typeof t&&"function"!=typeof t,p=Array.isArray,f=t=>p(t)||"function"==typeof t?.[Symbol.iterator],g="[ \t\n\f\r]",m=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,y=/-->/g,$=/>/g,v=RegExp(`>|${g}(?:([^\\s"'>=/]+)(${g}*=${g}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),b=/'/g,A=/"/g,_=/^(?:script|style|textarea|title)$/i,E=t=>(e,...s)=>({_$litType$:t,strings:e,values:s}),C=E(1),w=E(2),U=E(3),S=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),L=new WeakMap,k=l.createTreeWalker(l,129);function O(t,e){if(!p(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==n?n.createHTML(e):e}const P=(t,e)=>{const s=t.length-1,o=[];let i,n=2===e?"<svg>":3===e?"<math>":"",c=m;for(let e=0;e<s;e++){const s=t[e];let l,d,u=-1,p=0;for(;p<s.length&&(c.lastIndex=p,d=c.exec(s),null!==d);)p=c.lastIndex,c===m?"!--"===d[1]?c=y:void 0!==d[1]?c=$:void 0!==d[2]?(_.test(d[2])&&(i=RegExp("</"+d[2],"g")),c=v):void 0!==d[3]&&(c=v):c===v?">"===d[0]?(c=i??m,u=-1):void 0===d[1]?u=-2:(u=c.lastIndex-d[2].length,l=d[1],c=void 0===d[3]?v:'"'===d[3]?A:b):c===A||c===b?c=v:c===y||c===$?c=m:(c=v,i=void 0);const f=c===v&&t[e+1].startsWith("/>")?" ":"";n+=c===m?s+h:u>=0?(o.push(l),s.slice(0,u)+r+s.slice(u)+a+f):s+a+(-2===u?e:f)}return[O(t,n+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),o]};class x{constructor({strings:t,_$litType$:e},s){let o;this.parts=[];let n=0,h=0;const l=t.length-1,u=this.parts,[p,f]=P(t,e);if(this.el=x.createElement(p,s),k.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=k.nextNode())&&u.length<l;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(r)){const e=f[h++],s=o.getAttribute(t).split(a),i=/([.?@])?(.*)/.exec(e);u.push({type:1,index:n,name:i[2],strings:s,ctor:"."===i[1]?j:"?"===i[1]?H:"@"===i[1]?I:N}),o.removeAttribute(t)}else t.startsWith(a)&&(u.push({type:6,index:n}),o.removeAttribute(t));if(_.test(o.tagName)){const t=o.textContent.split(a),e=t.length-1;if(e>0){o.textContent=i?i.emptyScript:"";for(let s=0;s<e;s++)o.append(t[s],d()),k.nextNode(),u.push({type:2,index:++n});o.append(t[e],d())}}}else if(8===o.nodeType)if(o.data===c)u.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(a,t+1));)u.push({type:7,index:n}),t+=a.length-1}n++}}static createElement(t,e){const s=l.createElement("template");return s.innerHTML=t,s}}function R(t,e,s=t,o){if(e===S)return e;let i=void 0!==o?s._$Co?.[o]:s._$Cl;const n=u(e)?void 0:e._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),void 0===n?i=void 0:(i=new n(t),i._$AT(t,s,o)),void 0!==o?(s._$Co??=[])[o]=i:s._$Cl=i),void 0!==i&&(e=R(t,i._$AS(t,e.values),i,o)),e}class M{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,o=(t?.creationScope??l).importNode(e,!0);k.currentNode=o;let i=k.nextNode(),n=0,r=0,a=s[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new D(i,i.nextSibling,this,t):1===a.type?e=new a.ctor(i,a.name,a.strings,this,t):6===a.type&&(e=new F(i,this,t)),this._$AV.push(e),a=s[++r]}n!==a?.index&&(i=k.nextNode(),n++)}return k.currentNode=l,o}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class D{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,o){this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=R(this,t,e),u(t)?t===T||null==t||""===t?(this._$AH!==T&&this._$AR(),this._$AH=T):t!==this._$AH&&t!==S&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):f(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==T&&u(this._$AH)?this._$AA.nextSibling.data=t:this.T(l.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,o="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=x.createElement(O(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new M(o,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=L.get(t.strings);return void 0===e&&L.set(t.strings,e=new x(t)),e}k(t){p(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,o=0;for(const i of t)o===e.length?e.push(s=new D(this.O(d()),this.O(d()),this,this.options)):s=e[o],s._$AI(i),o++;o<e.length&&(this._$AR(s&&s._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class N{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,o,i){this.type=1,this._$AH=T,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=i,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=T}_$AI(t,e=this,s,o){const i=this.strings;let n=!1;if(void 0===i)t=R(this,t,e,0),n=!u(t)||t!==this._$AH&&t!==S,n&&(this._$AH=t);else{const o=t;let r,a;for(t=i[0],r=0;r<i.length-1;r++)a=R(this,o[s+r],e,r),a===S&&(a=this._$AH[r]),n||=!u(a)||a!==this._$AH[r],a===T?t=T:t!==T&&(t+=(a??"")+i[r+1]),this._$AH[r]=a}n&&!o&&this.j(t)}j(t){t===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class j extends N{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===T?void 0:t}}class H extends N{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==T)}}class I extends N{constructor(t,e,s,o,i){super(t,e,s,o,i),this.type=5}_$AI(t,e=this){if((t=R(this,t,e,0)??T)===S)return;const s=this._$AH,o=t===T&&s!==T||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,i=t!==T&&(s===T||o);o&&this.element.removeEventListener(this.name,this,s),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class F{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){R(this,t)}}const W={M:r,P:a,A:c,C:1,L:P,R:M,D:f,V:R,I:D,H:N,N:H,U:I,B:j,F},z=o.litHtmlPolyfillSupport;z?.(x,D),(o.litHtmlVersions??=[]).push("3.3.0");const B=(t,e,s)=>{const o=s?.renderBefore??e;let i=o._$litPart$;if(void 0===i){const t=s?.renderBefore??null;o._$litPart$=i=new D(e.insertBefore(d(),t),t,void 0,s??{})}return i._$AI(t),i}},46337:(t,e,s)=>{s.d(e,{WF:()=>r,qy:()=>i.qy,S$:()=>c,Ec:()=>o.Ec,s6:()=>i.s6,JW:()=>i.JW});var o=s(28760),i=s(36752);const n=globalThis;class r extends o.mN{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=(0,i.XX)(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return i.c0}}r._$litElement$=!0,r.finalized=!0,n.litElementHydrateSupport?.({LitElement:r});const a=n.litElementPolyfillSupport;a?.({LitElement:r}),(n.litElementVersions??=[]).push("4.2.0");const c=!1},56328:(t,e,s)=>{s.d(e,{V:()=>r});var o=s(36752),i=s(7804),n=s(18504);const r=(0,i.u$)(class extends i.WL{constructor(t){if(super(t),t.type!==i.OA.PROPERTY&&t.type!==i.OA.ATTRIBUTE&&t.type!==i.OA.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!(0,n.Rt)(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===o.c0||e===o.s6)return e;const s=t.element,r=t.name;if(t.type===i.OA.PROPERTY){if(e===s[r])return o.c0}else if(t.type===i.OA.BOOLEAN_ATTRIBUTE){if(!!e===s.hasAttribute(r))return o.c0}else if(t.type===i.OA.ATTRIBUTE&&s.getAttribute(r)===e+"")return o.c0;return(0,n.mY)(t),e}})},98015:(t,e,s)=>{s.d(e,{UF:()=>a,ao:()=>c,cY:()=>o,hd:()=>y,j1:()=>v,kn:()=>g,oK:()=>A});class o{constructor(){this.promise=new Promise(((t,e)=>{this.resolve=t,this.reject=e}))}}const i={},n=t=>{const e=t.join(","),s=i[e];if(void 0!==s)return s;const o=new Set,n=new MutationObserver((t=>o.forEach((e=>e(t)))));globalThis.document&&n.observe(document.documentElement,{attributes:!0,attributeFilter:t,subtree:!0});const r={subscribe:t=>(o.add(t),()=>{o.delete(t),0===o.size&&(n.disconnect(),i[e]=void 0)})};return i[e]=r,r},r=(t,e,s)=>{const o=((t,e)=>{let s=t;for(;s;){const t=s.closest?.(e);if(t)return t;const o=s.getRootNode?.();if(o===globalThis.document)return null;s=o.host}return null})(t,`[${e}]`);return o?.getAttribute(e)??s},a=(t,e,...s)=>{try{return t?.call(e,...s)}catch(e){console.error(e,t)}},c=async(t,e,...s)=>{try{const o=t?.call(e,...s);return await o}catch(e){console.error(e,t)}},h="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),l=new Set(h),d="en",u={pt:"pt-PT",nb:"no",nn:"no",zh:"zh-CN"},p={},f=async(t,e)=>{const s=`${e}${t}.json`;try{const t=await fetch(s);if(t.ok)return await t.json()}catch(t){return console.error(t),{}}return t===d?{}:await f(d,e)},g=t=>{const e=r(t,"lang",globalThis.navigator?.language||d);return{lang:e,t9nLocale:m(e)}},m=t=>{const[e,s]=t.split("-"),o=e.toLowerCase();let i=o;return s&&(i=`${o}-${s.toUpperCase()}`),i=u[i]??i,l.has(i)?i:s?m(o):d},y=(t,e,s,o)=>{let i;const r=()=>$(t,e(),o).then((t=>{i?.lang===t.lang&&i.t9nLocale===t.t9nLocale&&i.t9nStrings===t.t9nStrings||s(t),i=t})).catch(console.error);return queueMicrotask(r),((t,e,s)=>(0,n(e).subscribe)((e=>{const o=e.some((e=>((t,e)=>{let s=t;for(;s;){if(s===e)return!0;if(!s.parentNode)return!1;s=s.parentNode instanceof ShadowRoot?s.parentNode.host:s.parentNode}return!1})(t,e.target)));o&&s()})))(t,["lang"],r)},$=async(t,e,s=t.localName.split("-").slice(1).join("-"))=>{const{lang:o,t9nLocale:i}=g(t),n=`${e}/${s}/t9n`,r=null===s?{}:await(async(t,e,s="")=>{const o=`${e}/${s}`,i=`${o}${t}.json`;return p[i]??(p[i]=f(t,o)),await p[i]})(i,n,"messages.");return{lang:o,t9nLocale:i,t9nStrings:r}},v=t=>t.replace(b,((t,e)=>`${0===e?"":"-"}${t.toLowerCase()}`)),b=/[A-Z]+(?![a-z])|[A-Z]/gu,A=(t,e)=>{const s=e>_?E:e/C;let o=0;const i=setInterval((()=>{o+=s,o>=e&&(clearInterval(i),t())}),s);return i},_=4e3,E=2e3,C=4}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3543,7367],{71163:(e,n,t)=>{t.d(n,{C:()=>c});var r=t(29953);let a,o,i=!1;function l(){return a??=(0,r.ho)("arcadeGeometryOperatorsWorker").then((e=>{o=e,i=!0,a=void 0}))}async function c(e,n){return i?o.apply("invokeGeometryOp",[e,n]):(await l(),c(e,n))}},80672:(e,n,t)=>{t.d(n,{R:()=>a});var r=t(20655);function a(e,n){return null===e?n:new r.A({url:e.field("url")})}},87367:(e,n,t)=>{t.r(n),t.d(n,{registerFunctions:()=>T});var r=t(47609),a=t(66395),o=t(85935),i=t(78502),l=t(78878),c=t(80672),s=t(81844),u=t(71163),f=t(4576),d=t(5443),w=t(91075),p=t(48526),h=t(86738),y=t(39829),g=t(82799),m=t(65864),v=t(20655),S=t(70333),b=t(78888);async function D(e,n,t){const r=S.id?.findCredential(e.restUrl);if(!r)return null;if("loaded"===e.loadStatus&&""===n&&e.user?.sourceJSON&&!1===t)return e.user.sourceJSON;const a={responseType:"json",query:{f:"json"}};if(t&&(a.query.returnUserLicenseTypeExtensions=!0),""===n){const n=await(0,b.A)(e.restUrl+"/community/self",a);if(n.data){const e=n.data;if(e?.username)return e}return null}const o=await(0,b.A)(e.restUrl+"/community/users/"+n,a);if(o.data){const e=o.data;return e.error?null:e}return null}var A=t(54218);function X(e){if(null==e)return e;switch(typeof e){case"string":case"number":return e;default:throw new o.D$(null,o.TX.InvalidParameter,null)}}function T(e){"async"===e.mode&&(e.functions.disjoint=function(n,t){return e.standardFunctionAsync(n,t,((e,r,a)=>(a=(0,l.C)(a),(0,s.ZL)(a,n,t),null===a[0]||null===a[1]||(0,u.C)("disjoint",[a[0].toJSON(),a[1].toJSON()]))))},e.functions.intersects=function(n,t){return e.standardFunctionAsync(n,t,((e,r,a)=>(a=(0,l.C)(a),(0,s.ZL)(a,n,t),null!==a[0]&&null!==a[1]&&(0,u.C)("intersects",[a[0].toJSON(),a[1].toJSON()]))))},e.functions.touches=function(n,t){return e.standardFunctionAsync(n,t,((e,r,a)=>(a=(0,l.C)(a),(0,s.ZL)(a,n,t),null!==a[0]&&null!==a[1]&&(0,u.C)("touches",[a[0].toJSON(),a[1].toJSON()]))))},e.functions.crosses=function(n,t){return e.standardFunctionAsync(n,t,((e,r,a)=>(a=(0,l.C)(a),(0,s.ZL)(a,n,t),null!==a[0]&&null!==a[1]&&(0,u.C)("crosses",[a[0].toJSON(),a[1].toJSON()]))))},e.functions.within=function(n,t){return e.standardFunctionAsync(n,t,((e,r,a)=>(a=(0,l.C)(a),(0,s.ZL)(a,n,t),null!==a[0]&&null!==a[1]&&(0,u.C)("within",[a[0].toJSON(),a[1].toJSON()]))))},e.functions.contains=function(n,t){return e.standardFunctionAsync(n,t,((e,r,a)=>(a=(0,l.C)(a),(0,s.ZL)(a,n,t),null!==a[0]&&null!==a[1]&&(0,u.C)("contains",[a[0].toJSON(),a[1].toJSON()]))))},e.functions.overlaps=function(n,t){return e.standardFunctionAsync(n,t,((e,r,a)=>(a=(0,l.C)(a),(0,s.ZL)(a,n,t),null!==a[0]&&null!==a[1]&&(0,u.C)("overlaps",[a[0].toJSON(),a[1].toJSON()]))))},e.functions.equals=function(n,t){return e.standardFunctionAsync(n,t,((e,r,a)=>((0,l.B)(a,2,2,n,t),a[0]===a[1]||(a[0]instanceof w.A&&a[1]instanceof w.A?(0,u.C)("equals",[a[0].toJSON(),a[1].toJSON()]):((0,l.e)(a[0])&&(0,l.e)(a[1])||!!((0,l.g)(a[0])&&(0,l.g)(a[1])||(0,l.f)(a[0])&&(0,l.f)(a[1])))&&a[0].equals(a[1])))))},e.functions.relate=function(n,t){return e.standardFunctionAsync(n,t,((e,r,a)=>{if(a=(0,l.C)(a),(0,l.B)(a,3,3,n,t),a[0]instanceof w.A&&a[1]instanceof w.A)return(0,u.C)("relate",[a[0].toJSON(),a[1].toJSON(),(0,l.w)(a[2])]);if(a[0]instanceof w.A&&null===a[1])return!1;if(a[1]instanceof w.A&&null===a[0])return!1;if(null===a[0]&&null===a[1])return!1;throw new o.D$(n,o.TX.InvalidParameter,t)}))},e.functions.intersection=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>(a=(0,l.C)(a),(0,s.ZL)(a,n,t),null===a[0]||null===a[1]?null:(0,m.rS)(await(0,u.C)("intersection",[a[0].toJSON(),a[1].toJSON()])))))},e.functions.union=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{if(0===(a=(0,l.C)(a)).length)throw new o.D$(n,o.TX.WrongNumberOfParameters,t);const c=[];if(1===a.length)if((0,A.cy)(a[0])){for(const e of(0,l.C)(a[0]))if(null!==e){if(!(e instanceof w.A))throw new o.D$(n,o.TX.InvalidParameter,t);c.push(e.toJSON())}}else{if(!(0,l.j)(a[0])){if(a[0]instanceof w.A)return(0,l.D)((0,i.Yq)(a[0]),n.spatialReference);if(null===a[0])return null;throw new o.D$(n,o.TX.InvalidParameter,t)}for(const e of(0,l.C)(a[0].toArray()))if(null!==e){if(!(e instanceof w.A))throw new o.D$(n,o.TX.InvalidParameter,t);c.push(e.toJSON())}}else for(const e of a)if(null!==e){if(!(e instanceof w.A))throw new o.D$(n,o.TX.InvalidParameter,t);c.push(e.toJSON())}return 0===c.length?null:(0,m.rS)(await(0,u.C)("union",[c]))}))},e.functions.difference=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>(a=(0,l.C)(a),(0,s.ZL)(a,n,t),null===a[0]?null:null===a[1]?(0,i.Yq)(a[0]):(0,m.rS)(await(0,u.C)("difference",[a[0].toJSON(),a[1].toJSON()])))))},e.functions.symmetricdifference=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>(a=(0,l.C)(a),(0,s.ZL)(a,n,t),null===a[0]&&null===a[1]?null:null===a[0]?(0,i.Yq)(a[1]):null===a[1]?(0,i.Yq)(a[0]):(0,m.rS)(await(0,u.C)("symmetricDifference",[a[0].toJSON(),a[1].toJSON()])))))},e.functions.clip=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{if(a=(0,l.C)(a),(0,l.B)(a,2,2,n,t),!(a[1]instanceof d.A)&&null!==a[1])throw new o.D$(n,o.TX.InvalidParameter,t);if(null===a[0])return null;if(!(a[0]instanceof w.A))throw new o.D$(n,o.TX.InvalidParameter,t);return null===a[1]?null:(0,m.rS)(await(0,u.C)("clip",[a[0].toJSON(),a[1].toJSON()]))}))},e.functions.cut=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{if(a=(0,l.C)(a),(0,l.B)(a,2,2,n,t),!(a[1]instanceof g.A)&&null!==a[1])throw new o.D$(n,o.TX.InvalidParameter,t);if(null===a[0])return[];if(!(a[0]instanceof w.A))throw new o.D$(n,o.TX.InvalidParameter,t);return null===a[1]?[(0,i.Yq)(a[0])]:(await(0,u.C)("cut",[a[0].toJSON(),a[1].toJSON()])).map((e=>(0,m.rS)(e)))}))},e.functions.area=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{if((0,l.B)(a,1,2,n,t),a=(0,l.C)(a),(0,l.m)(a[0])){const e=await a[0].sumArea(X(a[1]),null,n.abortSignal);if(n.abortSignal.aborted)throw new o.D$(n,o.TX.Cancelled,t);return e}let i=a[0];if(((0,A.cy)(i)||(0,l.j)(i))&&(i=(0,l.E)(a[0],n.spatialReference)),null===i)return 0;if(!(i instanceof w.A))throw new o.D$(n,o.TX.InvalidParameter,t);return(0,u.C)("area",[i.toJSON(),X(a[1])])}))},e.functions.areageodetic=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{(0,l.B)(a,1,3,n,t);let i=(a=(0,l.C)(a))[0];((0,A.cy)(i)||(0,l.j)(i))&&(i=(0,l.E)(i,n.spatialReference));const c=X(a[1]),f=(0,s.rE)(a[2]);if((0,l.m)(i)){const e=await i.sumArea(c,f,n.abortSignal);if(n.abortSignal.aborted)throw new o.D$(n,o.TX.Cancelled,t);return e}if(null==i)return 0;if(!(0,l.h)(i))throw new o.D$(n,o.TX.InvalidParameter,t);return(0,u.C)("geodeticArea",[i.toJSON(),c,f])}))},e.functions.length=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{if((0,l.B)(a,1,2,n,t),a=(0,l.C)(a),(0,l.m)(a[0])){const e=await a[0].sumLength(X(a[1]),null,n.abortSignal);if(n.abortSignal.aborted)throw new o.D$(n,o.TX.Cancelled,t);return e}let i=a[0];if(((0,A.cy)(a[0])||(0,l.j)(a[0]))&&(i=(0,l.F)(a[0],n.spatialReference)),null===i)return 0;if(!(i instanceof w.A))throw new o.D$(n,o.TX.InvalidParameter,t);return(0,u.C)("length",[i.toJSON(),X(a[1])])}))},e.functions.length3d=function(n,r){return e.standardFunctionAsync(n,r,(async(e,a,i)=>{if((0,l.B)(i,1,2,n,r),null===(i=(0,l.C)(i))[0])return 0;let c=i[0];if(((0,A.cy)(i[0])||(0,l.j)(i[0]))&&(c=(0,l.F)(i[0],n.spatialReference)),null===c)return 0;if(!(c instanceof w.A))throw new o.D$(n,o.TX.InvalidParameter,r);if(!0===c.hasZ){const{convertFromSpatialReferenceUnit:e,toLengthUnit:n}=await Promise.resolve().then(t.bind(t,40547)),r=(0,s.UI)(c);return e(c.spatialReference,n(i[1]),r)}return(0,u.C)("length",[c.toJSON(),X(i[1])])}))},e.functions.lengthgeodetic=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{(0,l.B)(a,1,3,n,t);let i=(a=(0,l.C)(a))[0];((0,A.cy)(a[0])||(0,l.j)(a[0]))&&(i=(0,l.F)(a[0],n.spatialReference));const c=X(a[1]),f=(0,s.rE)(a[2]);if((0,l.m)(i)){const e=await i.sumLength(c,f,n.abortSignal);if(n.abortSignal.aborted)throw new o.D$(n,o.TX.Cancelled,t);return e}if(null===i)return 0;if(!(0,l.h)(i))throw new o.D$(n,o.TX.InvalidParameter,t);return(0,u.C)("geodeticLength",[i.toJSON(),c,f])}))},e.functions.distance=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{a=(0,l.C)(a),(0,l.B)(a,2,3,n,t);let i=a[0];if(((0,A.cy)(a[0])||(0,l.j)(a[0]))&&(i=(0,l.G)(a[0],n.spatialReference)),!(i instanceof w.A))throw new o.D$(n,o.TX.InvalidParameter,t);let c=a[1];if(((0,A.cy)(a[1])||(0,l.j)(a[1]))&&(c=(0,l.G)(a[1],n.spatialReference)),!(c instanceof w.A))throw new o.D$(n,o.TX.InvalidParameter,t);return(0,u.C)("distance",[i.toJSON(),c.toJSON(),X(a[2])])}))},e.functions.distancegeodetic=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{a=(0,l.C)(a),(0,l.B)(a,2,4,n,t);const i=a[0];if(!(i instanceof h.A))throw new o.D$(n,o.TX.InvalidParameter,t);const c=a[1];if(!(c instanceof h.A))throw new o.D$(n,o.TX.InvalidParameter,t);const f=new g.A({paths:[],spatialReference:i.spatialReference});return f.addPath([i,c]),(0,u.C)("geodeticLength",[f.toJSON(),X(a[2]),(0,s.rE)(a[3])])}))},e.functions.densify=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{if(a=(0,l.C)(a),(0,l.B)(a,2,3,n,t),null===a[0])return null;if(!(a[0]instanceof w.A))throw new o.D$(n,o.TX.InvalidParameter,t);const i=(0,l.u)(a[1]);if(isNaN(i))throw new o.D$(n,o.TX.InvalidParameter,t);if(i<=0)throw new o.D$(n,o.TX.InvalidParameter,t);switch(a[0].type){case"polygon":case"polyline":case"extent":return(0,m.rS)(await(0,u.C)("densify",[a[0].toJSON(),i,X(a[2])]));default:return a[0]}}))},e.functions.densifygeodetic=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{a=(0,l.C)(a),(0,l.B)(a,2,4,n,t);const i=a[0];if(null==i)return null;if(!(0,l.h)(i))throw new o.D$(n,o.TX.InvalidParameter,t);const c=(0,l.u)(a[1]);if(isNaN(c))throw new o.D$(n,o.TX.InvalidParameter,t);if(c<=0)throw new o.D$(n,o.TX.InvalidParameter,t);const f=X(a[2]),d=(0,s.rE)(a[3]);switch(i.type){case"polygon":case"polyline":case"extent":return(0,m.rS)(await(0,u.C)("geodeticDensify",[i.toJSON(),c,f,d]));default:return i}}))},e.functions.generalize=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{if(a=(0,l.C)(a),(0,l.B)(a,2,4,n,t),null===a[0])return null;if(!(a[0]instanceof w.A))throw new o.D$(n,o.TX.InvalidParameter,t);const i=(0,l.u)(a[1]);if(isNaN(i))throw new o.D$(n,o.TX.InvalidParameter,t);const c=(0,l.H)((0,l.J)(a[2],!0));return(0,m.rS)(await(0,u.C)("generalize",[a[0].toJSON(),i,X(a[3]),{removeDegenerateParts:c}]))}))},e.functions.buffer=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{if(a=(0,l.C)(a),(0,l.B)(a,2,3,n,t),null===a[0])return null;if(!(a[0]instanceof w.A))throw new o.D$(n,o.TX.InvalidParameter,t);const c=(0,l.u)(a[1]);if(isNaN(c))throw new o.D$(n,o.TX.InvalidParameter,t);return 0===c?(0,i.Yq)(a[0]):(0,m.rS)(await(0,u.C)("buffer",[a[0].toJSON(),c,X(a[2])]))}))},e.functions.buffergeodetic=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{a=(0,l.C)(a),(0,l.B)(a,2,4,n,t);const c=a[0];if(null==c)return null;if(!(0,l.h)(c))throw new o.D$(n,o.TX.InvalidParameter,t);const f=(0,l.u)(a[1]);if(isNaN(f))throw new o.D$(n,o.TX.InvalidParameter,t);if(0===f)return(0,i.Yq)(c);const d=X(a[2]),w=(0,s.rE)(a[3]);return(0,m.rS)(await(0,u.C)("geodesicBuffer",[c.toJSON(),f,d,w]))}))},e.functions.offset=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{if(a=(0,l.C)(a),(0,l.B)(a,2,6,n,t),null===a[0])return null;if(!(a[0]instanceof y.A||a[0]instanceof g.A))throw new o.D$(n,o.TX.InvalidParameter,t);const i=(0,l.u)(a[1]);if(isNaN(i))throw new o.D$(n,o.TX.InvalidParameter,t);const c=(0,s.R$)(a[3]),f=(0,l.u)((0,l.J)(a[4],10));if(isNaN(f))throw new o.D$(n,o.TX.InvalidParameter,t);const d=(0,l.u)((0,l.J)(a[5],0));if(isNaN(d))throw new o.D$(n,o.TX.InvalidParameter,t);return(0,m.rS)(await(0,u.C)("offset",[a[0].toJSON(),i,X(a[2]),{joins:c,miterLimit:f,flattenError:d}]))}))},e.functions.rotate=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{if(a=(0,l.C)(a),(0,l.B)(a,2,3,n,t),null===a[0])return null;if(!(a[0]instanceof w.A))throw new o.D$(n,o.TX.InvalidParameter,t);const i=a[0]instanceof d.A?y.A.fromExtent(a[0]):a[0],c=(0,l.u)(a[1]);if(isNaN(c))throw new o.D$(n,o.TX.InvalidParameter,t);const s=(0,l.J)(a[2],null);if(null===s){const e="point"===i.type?i:i.extent?.center;return(0,m.rS)(await(0,u.C)("rotate",[i.toJSON(),c,e?.x,e?.y]))}if(s instanceof h.A)return(0,m.rS)(await(0,u.C)("rotate",[i.toJSON(),c,s.x,s.y]));throw new o.D$(n,o.TX.InvalidParameter,t)}))},e.functions.centroid=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{if(a=(0,l.C)(a),(0,l.B)(a,1,2,n,t),null===a[0])return null;const i=(0,s.Hz)(a[1]);let c=a[0];if(((0,A.cy)(a[0])||(0,l.j)(a[0]))&&(c="geometric"===i?(0,l.G)(a[0],n.spatialReference):(0,l.E)(a[0],n.spatialReference),null===c))return null;if(!(c instanceof w.A))throw new o.D$(n,o.TX.InvalidParameter,t);return(0,m.rS)("geometric"===i?await(0,u.C)("centroid",[c.toJSON()]):await(0,u.C)("labelPoint",[c.toJSON()]))}))},e.functions.measuretocoordinate=function(n,t){return e.standardFunctionAsync(n,t,s.Cd)},e.functions.pointtocoordinate=function(n,t){return e.standardFunctionAsync(n,t,s.kr)},e.functions.distancetocoordinate=function(n,t){return e.standardFunctionAsync(n,t,s.Bn)},e.functions.multiparttosinglepart=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{if(a=(0,l.C)(a),(0,l.B)(a,1,1,n,t),null===a[0])return null;if(!(a[0]instanceof w.A))throw new o.D$(n,o.TX.InvalidParameter,t);if(a[0]instanceof h.A)return[(0,l.D)((0,i.Yq)(a[0]),n.spatialReference)];if(a[0]instanceof d.A)return[(0,l.D)((0,i.Yq)(a[0]),n.spatialReference)];const c=(0,m.rS)(await(0,u.C)("simplify",[a[0].toJSON()]));if(c instanceof y.A){const e=[],n=[];for(let t=0;t<c.rings.length;t++)if(c.isClockwise(c.rings[t])){const n=(0,m.rS)({rings:[c.rings[t]],hasZ:!0===c.hasZ,hasM:!0===c.hasM,spatialReference:c.spatialReference.toJSON()});e.push(n)}else n.push({ring:c.rings[t],pt:c.getPoint(t,0)});for(let t=0;t<n.length;t++)for(let r=0;r<e.length;r++)if(e[r].contains(n[t].pt)){e[r].addRing(n[t].ring);break}return e}if(c instanceof g.A){const e=[];for(let n=0;n<c.paths.length;n++){const t=(0,m.rS)({paths:[c.paths[n]],hasZ:!0===c.hasZ,hasM:!0===c.hasM,spatialReference:c.spatialReference.toJSON()});e.push(t)}return e}if(a[0]instanceof p.A){const e=[],t=(0,l.D)((0,i.Yq)(a[0]),n.spatialReference);for(let n=0;n<t.points.length;n++)e.push(t.getPoint(n));return e}return null}))},e.functions.isselfintersecting=function(n,t){return e.standardFunctionAsync(n,t,(async(e,n,t)=>{(0,l.B)(t,1,1,e,n);let r=(t=(0,l.C)(t))[0];if(((0,A.cy)(t[0])||(0,l.j)(t[0]))&&(r=(0,l.F)(t[0],e.spatialReference)),r instanceof p.A){const e=r.points;for(let n=0;n<e.length;n++)for(let t=n+1;t<e.length;t++)if((0,f.aI)(e[n],e[t]))return!0;return!1}return(r instanceof g.A||r instanceof y.A)&&await(0,u.C)("isSelfIntersecting",[r.toJSON()])}))},e.functions.issimple=function(n,t){return e.standardFunctionAsync(n,t,((e,r,a)=>{if(a=(0,l.C)(a),(0,l.B)(a,1,1,n,t),null===a[0])return!0;if(!(a[0]instanceof w.A))throw new o.D$(n,o.TX.InvalidParameter,t);return(0,u.C)("isSimple",[a[0].toJSON()])}))},e.functions.simplify=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{if(a=(0,l.C)(a),(0,l.B)(a,1,1,n,t),null===a[0])return null;if(!(a[0]instanceof w.A))throw new o.D$(n,o.TX.InvalidParameter,t);return(0,m.rS)(await(0,u.C)("simplify",[a[0].toJSON()]))}))},e.functions.convexhull=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,a)=>{if(a=(0,l.C)(a),(0,l.B)(a,1,1,n,t),null===a[0])return null;if(!(a[0]instanceof w.A))throw new o.D$(n,o.TX.InvalidParameter,t);return(0,m.rS)(await(0,u.C)("convexHull",[a[0].toJSON()]))}))},e.functions.getuser=function(n,t){return e.standardFunctionAsync(n,t,(async(e,i,s)=>{(0,l.B)(s,0,2,n,t);let u=(0,l.J)(s[1],""),f=!0===u;if(u=!0===u||!1===u?"":(0,l.w)(u),0===s.length||s[0]instanceof r.A){let e;e=n.services?.portal?n.services.portal:v.A.getDefault(),s.length>0&&(e=(0,c.R)(s[0],e));const t=await D(e,u,f);if(t){const e=JSON.parse(JSON.stringify(t));for(const n of["lastLogin","created","modified"])void 0!==e[n]&&null!==e[n]&&(e[n]=new Date(e[n]));return a.A.convertObjectToArcadeDictionary(e,(0,l.K)(n))}return null}let d=null;if((0,l.m)(s[0])&&(d=s[0]),d){if(f=!1,u)return null;await d.load();const e=await d.getOwningSystemUrl();if(!e){if(!u){const e=await d.getIdentityUser();return e?a.A.convertObjectToArcadeDictionary({username:e},(0,l.K)(n)):null}return null}let t;t=n.services?.portal?n.services.portal:v.A.getDefault(),t=(0,c.R)(new r.A(e),t);const o=await D(t,u,f);if(o){const e=JSON.parse(JSON.stringify(o));for(const n of["lastLogin","created","modified"])void 0!==e[n]&&null!==e[n]&&(e[n]=new Date(e[n]));return a.A.convertObjectToArcadeDictionary(e,(0,l.K)(n))}return null}throw new o.D$(n,o.TX.InvalidParameter,t)}))},e.functions.nearestcoordinate=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,i)=>{if(i=(0,l.C)(i),(0,l.B)(i,2,2,n,t),!(i[0]instanceof w.A||null===i[0]))throw new o.D$(n,o.TX.InvalidParameter,t);if(!(i[1]instanceof h.A||null===i[1]))throw new o.D$(n,o.TX.InvalidParameter,t);if(null===i[0]||null===i[1])return null;const c=i[0]instanceof d.A?y.A.fromExtent(i[0]):i[0],s=await(0,u.C)("getNearestCoordinate",[c.toJSON(),i[1].toJSON(),{calculateLeftRightSide:!0}]);return null===s?null:a.A.convertObjectToArcadeDictionary({coordinate:(0,m.rS)(s.coordinate),distance:s.distance,sideOfLine:0===s.distance?"straddle":s.rightSide?"right":"left"},(0,l.K)(n),!1,!0)}))},e.functions.nearestvertex=function(n,t){return e.standardFunctionAsync(n,t,(async(e,r,i)=>{if(i=(0,l.C)(i),(0,l.B)(i,2,2,n,t),!(i[0]instanceof w.A||null===i[0]))throw new o.D$(n,o.TX.InvalidParameter,t);if(!(i[1]instanceof h.A||null===i[1]))throw new o.D$(n,o.TX.InvalidParameter,t);if(null===i[0]||null===i[1])return null;const c=i[0]instanceof d.A?y.A.fromExtent(i[0]):i[0],s=await(0,u.C)("getNearestVertex",[c.toJSON(),i[1].toJSON()]);return null===s?null:a.A.convertObjectToArcadeDictionary({coordinate:(0,m.rS)(s.coordinate),distance:s.distance,sideOfLine:0===s.distance?"straddle":s.rightSide?"right":"left"},(0,l.K)(n),!1,!0)}))})}},93543:(e,n,t)=>{t.r(n),t.d(n,{executeScript:()=>_,extend:()=>W});var r=t(48938),a=t(99719),o=t(72888),i=t(15695),l=t(66395),c=t(85935),s=t(93833),u=t(92400),f=t(78878),d=t(19157),w=t(3367),p=t(63680),h=t(81113),y=t(32091),g=t(87367),m=t(41217),v=t(36770),S=t(47346),b=t(29304),D=(t(44208),t(91075)),A=t(16930),X=t(54218);async function T(e,n){const t=[];for(let r=0;r<n.arguments.length;r++)t.push(await F(e,n.arguments[r]));return t}async function $(e,n,t){return!0===n.preparsed?t(e,null,n.arguments):t(e,n,await T(e,n))}class C extends u.fF{constructor(e,n){super(),this.definition=null,this.context=null,this.definition=e,this.context=n}createFunction(e){return(...n)=>{const t={spatialReference:this.context.spatialReference,console:this.context.console,lrucache:this.context.lrucache,timeZone:this.context.timeZone??null,exports:this.context.exports,libraryResolver:this.context.libraryResolver,interceptor:this.context.interceptor,services:this.context.services,abortSignal:this.context.abortSignal,localScope:{},depthCounter:{depth:e.depthCounter+1},globalScope:this.context.globalScope};if(t.depthCounter.depth>64)throw new c.D$(e,c.TX.MaximumCallDepth,null);return N(this.definition,t,n,null)}}call(e,n){return I(e,n,((t,r,a)=>{const o={spatialReference:e.spatialReference,services:e.services,console:e.console,libraryResolver:e.libraryResolver,exports:e.exports,lrucache:e.lrucache,timeZone:e.timeZone??null,interceptor:e.interceptor,localScope:{},abortSignal:e.abortSignal,globalScope:e.globalScope,depthCounter:{depth:e.depthCounter.depth+1}};if(o.depthCounter.depth>64)throw new c.D$(e,c.TX.MaximumCallDepth,n);return N(this.definition,o,a,n)}))}marshalledCall(e,n,t,r){return r(e,n,(async(a,o,i)=>{const l={spatialReference:e.spatialReference,services:e.services,globalScope:t.globalScope,depthCounter:{depth:e.depthCounter.depth+1},libraryResolver:e.libraryResolver,exports:e.exports,console:e.console,abortSignal:e.abortSignal,lrucache:e.lrucache,timeZone:e.timeZone??null,interceptor:e.interceptor,localScope:{}};return i=i.map((n=>!(0,f.i)(n)||n instanceof u.CU?n:(0,u.o6)(n,e,r))),(0,u.o6)(await N(this.definition,l,i,n),t,r)}))}}async function N(e,n,t,a){const o=e.body;if(t.length!==e.params.length)throw new c.D$(n,c.TX.WrongNumberOfParameters,null);for(let a=0;a<t.length;a++){const o=e.params[a];"Identifier"===o.type&&null!=n.localScope&&(n.localScope[(0,r.X)(o)]={value:t[a]})}const i=await x(n,o);if(i instanceof f.R)return i.value;if(i===f.q)throw new c.D$(n,c.TX.UnexpectedToken,a);if(i===f.r)throw new c.D$(n,c.TX.UnexpectedToken,a);return i instanceof f.I?i.value:i}class O extends a.x{constructor(e){super(),this.source=e}global(e){const n=this.executingContext.globalScope[(0,r.X)(e)];if((0,f.i)(n.value)&&!(n.value instanceof u.CU)){const t=new u.CU;return t.fn=n.value,t.parameterEvaluator=I,t.context=this.executingContext,this.executingContext.globalScope[(0,r.X)(e)]={value:t},t}return n.value}setGlobal(e,n){if((0,f.i)(n))throw new c.D$(null,c.TX.AssignModuleFunction,null);this.executingContext.globalScope[(0,r.X)(e)]={value:n}}hasGlobal(e){return void 0===this.executingContext.exports[e]&&(e=(0,r.X)(e)),void 0!==this.executingContext.exports[e]}async loadModule(e){const n=e.spatialReference??A.A.WebMercator;this.moduleScope=Y(null,null,e.timeZone),this.executingContext={spatialReference:n,services:e.services,libraryResolver:new o.a(e.libraryResolver._moduleSingletons,this.source.syntax.loadedModules),exports:{},abortSignal:e.abortSignal??r._,globalScope:this.moduleScope,console:e.console??V,lrucache:e.lrucache,timeZone:e.timeZone??null,interceptor:e.interceptor,localScope:null,depthCounter:{depth:1}},await k(this.executingContext,this.source.syntax)}}async function I(e,n,t){return!0===n.preparsed?t(e,null,n.arguments):t(e,n,await T(e,n))}async function F(e,n){n.breakpoint&&await n.breakpoint();try{switch(n.type){case"UpdateExpression":return await async function(e,n){const t=n.argument;if("CallExpression"===t.type)throw new c.D$(e,c.TX.NeverReach,n);if("MemberExpression"===t.type){const r=await F(e,t.object);let a,o;if(!0===t.computed)a=await F(e,t.property);else{if("Identifier"!==t.property.type)throw new c.D$(e,c.TX.Unrecognized,n);a=t.property.name}if((0,X.cy)(r)){if(!(0,X.Et)(a))throw new c.D$(e,c.TX.ArrayAccessorMustBeNumber,n);if(a<0&&(a=r.length+a),a<0||a>=r.length)throw new c.D$(e,c.TX.OutOfBounds,n);o=(0,f.u)(r[a]),r[a]="++"===n.operator?o+1:o-1}else if(r instanceof l.A){if(!1===(0,X.Kg)(a))throw new c.D$(e,c.TX.KeyAccessorMustBeString,n);if(!0!==r.hasField(a))throw new c.D$(e,c.TX.FieldNotFound,n,{key:a});o=(0,f.u)(r.field(a)),r.setField(a,"++"===n.operator?o+1:o-1)}else if(r instanceof O){if(!1===(0,X.Kg)(a))throw new c.D$(e,c.TX.ModuleAccessorMustBeString,n);if(!0!==r.hasGlobal(a))throw new c.D$(e,c.TX.ModuleExportNotFound,n);o=(0,f.u)(r.global(a)),r.setGlobal(a,"++"===n.operator?o+1:o-1)}else{if(!(0,f.k)(r))throw(0,f.j)(r)?new c.D$(e,c.TX.Immutable,n):new c.D$(e,c.TX.InvalidParameter,n);if(!1===(0,X.Kg)(a))throw new c.D$(e,c.TX.KeyAccessorMustBeString,n);if(!0!==r.hasField(a))throw new c.D$(e,c.TX.FieldNotFound,n,{key:a});o=(0,f.u)(r.field(a)),r.setField(a,"++"===n.operator?o+1:o-1)}return!1===n.prefix?o:"++"===n.operator?o+1:o-1}const a=(0,r.X)(t);let o;if(null!=e.localScope&&void 0!==e.localScope[a])return o=(0,f.u)(e.localScope[a].value),e.localScope[a]={value:"++"===n.operator?o+1:o-1},!1===n.prefix?o:"++"===n.operator?o+1:o-1;if(void 0!==e.globalScope[a])return o=(0,f.u)(e.globalScope[a].value),e.globalScope[a]={value:"++"===n.operator?o+1:o-1},!1===n.prefix?o:"++"===n.operator?o+1:o-1;throw new c.D$(e,c.TX.InvalidIdentifier,n)}(e,n);case"AssignmentExpression":return await async function(e,n){const t=n.left;if("MemberExpression"===t.type){const r=await F(e,t.object);let a;if(!0===t.computed)a=await F(e,t.property);else{if("Identifier"!==t.property.type)throw new c.D$(e,c.TX.InvalidIdentifier,n);a=t.property.name}const o=await F(e,n.right);if((0,X.cy)(r)){if(!(0,X.Et)(a))throw new c.D$(e,c.TX.ArrayAccessorMustBeNumber,n);if(a<0&&(a=r.length+a),a<0||a>r.length)throw new c.D$(e,c.TX.OutOfBounds,n);if(a===r.length){if("="!==n.operator)throw new c.D$(e,c.TX.OutOfBounds,n);r[a]=B(o,n.operator,r[a],n,e)}else r[a]=B(o,n.operator,r[a],n,e)}else if(r instanceof l.A){if(!1===(0,X.Kg)(a))throw new c.D$(e,c.TX.KeyAccessorMustBeString,n);if(!0===r.hasField(a))r.setField(a,B(o,n.operator,r.field(a),n,e));else{if("="!==n.operator)throw new c.D$(e,c.TX.FieldNotFound,n,{key:a});r.setField(a,B(o,n.operator,null,n,e))}}else if(r instanceof O){if(!1===(0,X.Kg)(a))throw new c.D$(e,c.TX.KeyAccessorMustBeString,n);if(!0!==r.hasGlobal(a))throw new c.D$(e,c.TX.ModuleExportNotFound,n);r.setGlobal(a,B(o,n.operator,r.global(a),n,e))}else{if(!(0,f.k)(r))throw(0,f.j)(r)?new c.D$(e,c.TX.Immutable,n):new c.D$(e,c.TX.InvalidParameter,n);if(!1===(0,X.Kg)(a))throw new c.D$(e,c.TX.KeyAccessorMustBeString,n);if(!0===r.hasField(a))r.setField(a,B(o,n.operator,r.field(a),n,e));else{if("="!==n.operator)throw new c.D$(e,c.TX.FieldNotFound,n,{key:a});r.setField(a,B(o,n.operator,null,n,e))}}return f.v}const a=(0,r.X)(t);if(null!=e.localScope&&void 0!==e.localScope[a]){const t=await F(e,n.right);return e.localScope[a]={value:B(t,n.operator,e.localScope[a].value,n,e)},f.v}if(void 0!==e.globalScope[a]){const t=await F(e,n.right);return e.globalScope[a]={value:B(t,n.operator,e.globalScope[a].value,n,e)},f.v}throw new c.D$(e,c.TX.InvalidIdentifier,n)}(e,n);case"TemplateLiteral":return await async function(e,n){let t="",r=0;for(const a of n.quasis)if(t+=a.value?a.value.cooked:"",!1===a.tail){if(n.expressions[r]){const a=await F(e,n.expressions[r]);if((0,f.i)(a))throw new c.D$(e,c.TX.NoFunctionInTemplateLiteral,n);t+=(0,f.w)(a)}r++}return t}(e,n);case"Identifier":return j(e,n);case"MemberExpression":return await async function(e,n){const t=await F(e,n.object);if(null===t)throw new c.D$(e,c.TX.MemberOfNull,n);if(!1===n.computed){if("Identifier"===n.property.type){if(t instanceof l.A||(0,f.s)(t))return t.field(n.property.name);if(t instanceof D.A)return(0,i.Bl)(t,n.property.name,e,n);if(t instanceof O){if(!t.hasGlobal(n.property.name))throw new c.D$(e,c.TX.InvalidIdentifier,n);return t.global(n.property.name)}throw new c.D$(e,c.TX.InvalidMemberAccessKey,n)}throw new c.D$(e,c.TX.InvalidMemberAccessKey,n)}let r=await F(e,n.property);if(t instanceof l.A||(0,f.s)(t)){if((0,X.Kg)(r))return t.field(r);throw new c.D$(e,c.TX.InvalidMemberAccessKey,n)}if(t instanceof O){if((0,X.Kg)(r))return t.global(r);throw new c.D$(e,c.TX.InvalidMemberAccessKey,n)}if(t instanceof D.A){if((0,X.Kg)(r))return(0,i.Bl)(t,r,e,n);throw new c.D$(e,c.TX.InvalidMemberAccessKey,n)}if((0,X.cy)(t)){if((0,X.Et)(r)&&isFinite(r)&&Math.floor(r)===r){if(r<0&&(r=t.length+r),r>=t.length||r<0)throw new c.D$(e,c.TX.OutOfBounds,n);return t[r]}throw new c.D$(e,c.TX.InvalidMemberAccessKey,n)}if((0,f.j)(t)){if((0,X.Et)(r)&&isFinite(r)&&Math.floor(r)===r){if(r<0&&(r=t.length()+r),r>=t.length()||r<0)throw new c.D$(e,c.TX.OutOfBounds,n);return t.get(r)}throw new c.D$(e,c.TX.InvalidMemberAccessKey,n)}if((0,X.Kg)(t)){if((0,X.Et)(r)&&isFinite(r)&&Math.floor(r)===r){if(r<0&&(r=t.length+r),r>=t.length||r<0)throw new c.D$(e,c.TX.OutOfBounds,n);return t[r]}throw new c.D$(e,c.TX.InvalidMemberAccessKey,n)}throw new c.D$(e,c.TX.InvalidMemberAccessKey,n)}(e,n);case"Literal":return n.value;case"CallExpression":return await async function(e,n){if("MemberExpression"===n.callee.type){const t=await F(e,n.callee.object);if(!(t instanceof O))throw new c.D$(e,c.TX.FunctionNotFound,n);const r=!1===n.callee.computed?n.callee.property.name:await F(e,n.callee.property);if(!t.hasGlobal(r))throw new c.D$(e,c.TX.FunctionNotFound,n);const a=t.global(r);if(!(0,f.i)(a))throw new c.D$(e,c.TX.CallNonFunction,n);return a.call(e,n)}if("Identifier"!==n.callee.type)throw new c.D$(e,c.TX.FunctionNotFound,n);const t=(0,r.X)(n.callee);if(null!=e.localScope&&void 0!==e.localScope[t]){const r=e.localScope[t];if((0,f.i)(r.value))return r.value.call(e,n);throw new c.D$(e,c.TX.CallNonFunction,n)}if(void 0!==e.globalScope[t]){const r=e.globalScope[t];if((0,f.i)(r.value))return r.value.call(e,n);throw new c.D$(e,c.TX.CallNonFunction,n)}throw new c.D$(e,c.TX.FunctionNotFound,n)}(e,n);case"UnaryExpression":return await async function(e,n){const t=await F(e,n.argument);if((0,X.Lm)(t)){if("!"===n.operator)return!t;if("-"===n.operator)return-1*(0,f.u)(t);if("+"===n.operator)return 1*(0,f.u)(t);if("~"===n.operator)return~(0,f.u)(t);throw new c.D$(e,c.TX.UnsupportedUnaryOperator,n)}if("-"===n.operator)return-1*(0,f.u)(t);if("+"===n.operator)return 1*(0,f.u)(t);if("~"===n.operator)return~(0,f.u)(t);throw new c.D$(e,c.TX.UnsupportedUnaryOperator,n)}(e,n);case"BinaryExpression":return await async function(e,n){const t=await F(e,n.left),r=await F(e,n.right);switch(n.operator){case"|":case"<<":case">>":case">>>":case"^":case"&":return(0,f.z)((0,f.u)(t),(0,f.u)(r),n.operator);case"==":return(0,f.y)(t,r);case"!=":return!(0,f.y)(t,r);case"<":case">":case"<=":case">=":return(0,f.x)(t,r,n.operator);case"+":return(0,X.Kg)(t)||(0,X.Kg)(r)?(0,f.w)(t)+(0,f.w)(r):(0,f.u)(t)+(0,f.u)(r);case"-":return(0,f.u)(t)-(0,f.u)(r);case"*":return(0,f.u)(t)*(0,f.u)(r);case"/":return(0,f.u)(t)/(0,f.u)(r);case"%":return(0,f.u)(t)%(0,f.u)(r);default:throw new c.D$(e,c.TX.UnsupportedOperator,n)}}(e,n);case"LogicalExpression":return await async function(e,n){const t=await F(e,n.left);if(!(0,X.Lm)(t))throw new c.D$(e,c.TX.LogicalExpressionOnlyBoolean,n);switch(n.operator){case"||":{if(!0===t)return t;const r=await F(e,n.right);if((0,X.Lm)(r))return r;throw new c.D$(e,c.TX.LogicExpressionOrAnd,n)}case"&&":{if(!1===t)return t;const r=await F(e,n.right);if((0,X.Lm)(r))return r;throw new c.D$(e,c.TX.LogicExpressionOrAnd,n)}default:throw new c.D$(e,c.TX.LogicExpressionOrAnd,n)}}(e,n);case"ArrayExpression":return await async function(e,n){const t=[];for(let r=0;r<n.elements.length;r++)t.push(await F(e,n.elements[r]));for(let r=0;r<t.length;r++){if((0,f.i)(t[r]))throw new c.D$(e,c.TX.NoFunctionInArray,n);t[r]===f.v&&(t[r]=null)}return t}(e,n);case"ObjectExpression":return await async function(e,n){const t=[];for(let r=0;r<n.properties.length;r++){const a=n.properties[r],o=await F(e,a.value),i="Identifier"===a.key.type?a.key.name:await F(e,a.key);t[r]={key:i,value:o}}const r=Object.create(null),a=new Map;for(let o=0;o<t.length;o++){const i=t[o];if((0,f.i)(i.value))throw new c.D$(e,c.TX.NoFunctionInDictionary,n);if(!1===(0,X.Kg)(i.key))throw new c.D$(e,c.TX.KeyMustBeString,n);let l=i.key.toString();const s=l.toLowerCase();a.has(s)?l=a.get(s):a.set(s,l),i.value===f.v?r[l]=null:r[l]=i.value}const o=new l.A(r);return o.immutable=!1,o}(e,n);default:throw new c.D$(e,c.TX.Unrecognized,n)}}catch(t){throw(0,c.Nh)(e,n,t)}}async function x(e,n){n.breakpoint&&await n.breakpoint();try{switch(n.type){case"ImportDeclaration":return await async function(e,n){const t=(0,r.X)(n.specifiers[0].local),a=e.libraryResolver.loadLibrary(t);let o;return e.libraryResolver._moduleSingletons?.has(a.uri)?o=e.libraryResolver._moduleSingletons.get(a.uri):(o=new O(a),await o.loadModule(e),e.libraryResolver._moduleSingletons?.set(a.uri,o)),e.globalScope[t]={value:o},f.v}(e,n);case"ExportNamedDeclaration":return await async function(e,n){if(await x(e,n.declaration),"FunctionDeclaration"===n.declaration.type)e.exports[(0,r.X)(n.declaration.id)]="function";else if("VariableDeclaration"===n.declaration.type)for(const t of n.declaration.declarations)e.exports[(0,r.X)(t.id)]="variable";return f.v}(e,n);case"VariableDeclaration":return await E(e,n,0);case"BlockStatement":return await k(e,n);case"FunctionDeclaration":return await async function(e,n){const t=(0,r.X)(n.id);return e.globalScope[t]={value:new C(n,e)},f.v}(e,n);case"ReturnStatement":return await async function(e,n){if(null===n.argument)return new f.R(f.v);const t=await F(e,n.argument);return new f.R(t)}(e,n);case"IfStatement":return await async function(e,n){const t=await F(e,n.test);if(!0===t)return x(e,n.consequent);if(!1===t)return null!==n.alternate?x(e,n.alternate):f.v;throw new c.D$(e,c.TX.BooleanConditionRequired,n)}(e,n);case"ExpressionStatement":return await async function(e,n){const t=await F(e,n.expression);return t===f.v?f.v:new f.I(t)}(e,n);case"ForStatement":return await async function(e,n){try{for(null!==n.init&&("VariableDeclaration"===n.init.type?await x(e,n.init):await F(e,n.init));;){if(null!==n.test){const t=await F(e,n.test);if(!0===e.abortSignal?.aborted)throw new c.D$(e,c.TX.Cancelled,n);if(!1===t)break;if(!0!==t)throw new c.D$(e,c.TX.BooleanConditionRequired,n)}const t=await x(e,n.body);if(t===f.q)break;if(t instanceof f.R)return t;null!==n.update&&await F(e,n.update)}return f.v}catch(e){throw e}}(e,n);case"WhileStatement":return await async function(e,n){let t=await F(e,n.test);if(!1===t)return f.v;if(!0!==t)throw new c.D$(e,c.TX.BooleanConditionRequired,n);for(;!0===t;){const r=await x(e,n.body);if(r===f.q)break;if(r instanceof f.R)return r;if(t=await F(e,n.test),!0!==t&&!1!==t)throw new c.D$(e,c.TX.BooleanConditionRequired,n)}return f.v}(e,n);case"ForInStatement":return await async function(e,n){const t=await F(e,n.right);"VariableDeclaration"===n.left.type&&await x(e,n.left);const a=(0,r.X)("VariableDeclaration"===n.left.type?n.left.declarations[0].id:n.left);let o=null;if(null!=e.localScope&&void 0!==e.localScope[a]&&(o=e.localScope[a]),null===o&&void 0!==e.globalScope[a]){const n=e.globalScope[a].value;o=e.globalScope[a]={value:n}}if(null===o)throw new c.D$(e,c.TX.InvalidIdentifier,n);return(0,X.cy)(t)||(0,X.Kg)(t)?await R(e,n,t,o):(0,f.j)(t)?await J(e,n,t,o):t instanceof l.A||(0,f.s)(t)?await R(e,n,t.keys(),o,"k"):(0,f.m)(t)?await P(e,n,t,o):(0,f.h)(t)?await R(e,n,(0,i.T)(t),o,"k"):f.v}(e,n);case"ForOfStatement":return await async function(e,n){const t=await F(e,n.right);"VariableDeclaration"===n.left.type&&await x(e,n.left);const a=(0,r.X)("VariableDeclaration"===n.left.type?n.left.declarations[0].id:n.left);let o=null;if(null!=e.localScope&&void 0!==e.localScope[a]&&(o=e.localScope[a]),null===o&&void 0!==e.globalScope[a]){const n=e.globalScope[a].value;o=e.globalScope[a]={value:n}}if(null===o)throw new c.D$(e,c.TX.InvalidIdentifier,n);return(0,X.cy)(t)||(0,X.Kg)(t)?await R(e,n,t,o,"k"):(0,f.j)(t)?await J(e,n,t,o,"k"):t instanceof l.A||(0,f.s)(t)?await async function(e,n,t,r){for(const a of t.keys()){const o=t.field(a);r.value=l.A.containerEntry(a,o);const i=await x(e,n.body);if(i===f.q)break;if(i instanceof f.R)return i}return f.v}(e,n,t,o):(0,f.m)(t)?await P(e,n,t,o):(0,f.h)(t)?await async function(e,n,t,r){for(const a of(0,i.T)(t)){const o=(0,i.Bl)(t,a,e,n,1);r.value=l.A.containerEntry(a,o);const c=await x(e,n.body);if(c===f.q)break;if(c instanceof f.R)return c}return f.v}(e,n,t,o):f.v}(e,n);case"BreakStatement":return f.q;case"EmptyStatement":return f.v;case"ContinueStatement":return f.r;default:throw new c.D$(e,c.TX.Unrecognized,n)}}catch(t){throw(0,c.Nh)(e,n,t)}}async function R(e,n,t,r,a="i"){const o=t.length;for(let i=0;i<o;i++){if("k"===a){if(i>=t.length)throw new c.D$(e,c.TX.OutOfBounds,n);r.value=t[i]}else r.value=i;const o=await x(e,n.body);if(o===f.q)break;if(o instanceof f.R)return o}return f.v}async function J(e,n,t,r,a="i"){const o=t.length();for(let i=0;i<o;i++){r.value="k"===a?t.get(i):i;const o=await x(e,n.body);if(o===f.q)break;if(o instanceof f.R)return o}return f.v}async function P(e,n,t,r){const a=t.iterator(e.abortSignal);let o;for(;null!=(o=await a.next());){const a=s.A.createFromGraphicLikeObject(o.geometry,o.attributes,t,e.timeZone);a._underlyingGraphic=o,r.value=a;const i=await x(e,n.body);if(i===f.q)break;if(i instanceof f.R)return i}return f.v}function B(e,n,t,r,a){switch(n){case"=":return e===f.v?null:e;case"/=":return(0,f.u)(t)/(0,f.u)(e);case"*=":return(0,f.u)(t)*(0,f.u)(e);case"-=":return(0,f.u)(t)-(0,f.u)(e);case"+=":return(0,X.Kg)(t)||(0,X.Kg)(e)?(0,f.w)(t)+(0,f.w)(e):(0,f.u)(t)+(0,f.u)(e);case"%=":return(0,f.u)(t)%(0,f.u)(e);default:throw new c.D$(a,c.TX.UnsupportedOperator,r)}}async function k(e,n){return M(e,n,0)}async function M(e,n,t){if(t>=n.body.length)return f.v;const r=await x(e,n.body[t]);return r instanceof f.R||r===f.q||r===f.r||t===n.body.length-1?r:M(e,n,t+1)}async function E(e,n,t){return t>=n.declarations.length||(await async function(e,n){let t=null;if(t=null===n.init?null:await F(e,n.init),null!==e.localScope){if(t===f.v&&(t=null),"Identifier"!==n.id.type)throw new c.D$(e,c.TX.InvalidIdentifier,n);const a=(0,r.X)(n.id);return void(null!=e.localScope&&(e.localScope[a]={value:t}))}if("Identifier"!==n.id.type)throw new c.D$(e,c.TX.InvalidIdentifier,n);const a=(0,r.X)(n.id);t===f.v&&(t=null),e.globalScope[a]={value:t}}(e,n.declarations[t]),t===n.declarations.length-1||await E(e,n,t+1)),f.v}function j(e,n){const t=(0,r.X)(n);if(null!=e.localScope&&void 0!==e.localScope[t])return e.localScope[t].value;if(void 0!==e.globalScope[t])return e.globalScope[t].value;throw new c.D$(e,c.TX.InvalidIdentifier,n)}async function L(e,n){(0,f.B)(null===n.arguments?[]:n.arguments,3,3,e,n);const t=await F(e,n.arguments[0]);if(!1===(0,X.Lm)(t))throw new c.D$(e,c.TX.BooleanConditionRequired,n);return F(e,t?n.arguments[1]:n.arguments[2])}async function K(e,n){(0,f.B)(null===n.arguments?[]:n.arguments,2,3,e,n);const t=await F(e,n.arguments[0]);if(3===n.arguments.length){const r=await F(e,n.arguments[1]),a=(0,i.jd)(t,r);return null!=a&&""!==a?a:F(e,n.arguments[2])}return null==t||""===t?F(e,n.arguments[1]):t}async function q(e,n){if(n.arguments.length<2)throw new c.D$(e,c.TX.WrongNumberOfParameters,n);if(2===n.arguments.length)return F(e,n.arguments[1]);if((n.arguments.length-1)%2==0)throw new c.D$(e,c.TX.WrongNumberOfParameters,n);return U(e,n,1,await F(e,n.arguments[0]))}async function U(e,n,t,r){const a=await F(e,n.arguments[t]);if((0,f.y)(a,r))return F(e,n.arguments[t+1]);const o=n.arguments.length-t;return 1===o?F(e,n.arguments[t]):2===o?null:3===o?F(e,n.arguments[t+2]):U(e,n,t+2,r)}async function Z(e,n){if(n.arguments.length<3)throw new c.D$(e,c.TX.WrongNumberOfParameters,n);if(n.arguments.length%2==0)throw new c.D$(e,c.TX.WrongNumberOfParameters,n);const t=await F(e,n.arguments[0]);if(!1===(0,X.Lm)(t))throw new c.D$(e,c.TX.BooleanConditionRequired,n.arguments[0]);return G(e,n,0,t)}async function G(e,n,t,r){if(!0===r)return F(e,n.arguments[t+1]);if(3===n.arguments.length-t)return F(e,n.arguments[t+2]);const a=await F(e,n.arguments[t+2]);if(!1===(0,X.Lm)(a))throw new c.D$(e,c.TX.ModuleExportNotFound,n.arguments[t+2]);return G(e,n,t+2,a)}const z=function(){const e=Object.create(null);(0,h.d)(e,$),(0,b.d)(e,$),(0,y.d)(e,$,j),(0,v.d)(e,$),(0,m.d)(e,$),(0,S.d)(e,$),(0,g.registerFunctions)({functions:e,compiled:!1,signatures:null,evaluateIdentifier:null,mode:"async",standardFunction:$,standardFunctionAsync:I}),e.iif=L,e.defaultvalue=K,e.decode=q,e.when=Z;const n=function(){this.textformatting={value:l.A.textFormatting()}};(n.prototype=Object.create(null)).infinity=Object.freeze({value:Number.POSITIVE_INFINITY}),n.prototype.pi=Object.freeze({value:Math.PI});for(const[t,r]of Object.entries(e))n.prototype[t]=Object.freeze({value:new u.UQ(r)});return n}();function W(e){const n={mode:"async",compiled:!1,functions:Object.create(null),signatures:[],standardFunction:$,standardFunctionAsync:I,evaluateIdentifier:j};for(let t=0;t<e.length;t++)e[t].registerFunctions(n);for(const[e,t]of Object.entries(n.functions))z.prototype[e]=Object.freeze({value:new u.UQ(t)});for(let e=0;e<n.signatures.length;e++)(0,d.WC)(n.signatures[e],"async")}function Y(e,n,t){const r=new z;null==e&&(e={}),null==n&&(n={});for(const e in n)r[e]={value:new u.UQ(n[e])};for(const n in e)r[n]={value:(0,X.DU)(e[n])?s.A.createFromGraphic(e[n],t):e[n]};return r}function V(e){console.log(e)}async function _(e,n){const t=n.spatialReference??A.A.WebMercator;let a=null;e.usesModules&&(a=new o.a(new Map,e.loadedModules));const i=Y(n.vars,n.customfunctions,n.timeZone),l={spatialReference:t,services:n.services,exports:{},libraryResolver:a,abortSignal:n.abortSignal??r._,globalScope:i,console:n.console??V,timeZone:n.timeZone??null,lrucache:n.lrucache,interceptor:n.interceptor,localScope:null,depthCounter:{depth:1}},s=await k(l,e);if(s instanceof f.R||s instanceof f.I){const e=s.value;if((0,f.A)(e))return null;if((0,f.i)(e))throw new c.D$(l,c.TX.IllegalResult,null);return e}if((0,f.A)(s))return null;if(s===f.q)throw new c.D$(l,c.TX.IllegalResult,null);if(s===f.r)throw new c.D$(l,c.TX.IllegalResult,null);throw new c.D$(l,c.TX.NeverReach,null)}W([p.A]),W([w.A])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2288],{23150:(e,t,r)=>{r.d(t,{A:()=>p});var n=r(90237),o=r(10107),i=(r(44208),r(53966),r(87811),r(40608)),a=r(82799),s=r(54238);let p=class extends s.A{constructor(e){super(e),this.originId=null,this.destinationId=null,this.layoutGeometry=null}};(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],p.prototype,"originId",void 0),(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],p.prototype,"destinationId",void 0),(0,n._)([(0,o.MZ)({type:a.A,json:{write:!0}})],p.prototype,"layoutGeometry",void 0),p=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.Relationship")],p)},25927:(e,t,r)=>{r.d(t,{A:()=>p});var n=r(90237),o=r(10107),i=(r(44208),r(53966),r(87811),r(40608)),a=r(86738),s=r(54238);let p=class extends s.A{constructor(e){super(e),this.layoutGeometry=null}};(0,n._)([(0,o.MZ)({type:a.A,json:{write:!0}})],p.prototype,"layoutGeometry",void 0),p=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.Entity")],p)},40662:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(90237),o=(r(53966),r(44208),r(87811),r(49186),r(40608)),i=r(77901);let a=class extends i.A{constructor(e){super(e)}};a=(0,n._)([(0,o.$)("esri.rest.knowledgeGraph.ObjectValue")],a)},42095:(e,t,r)=>{r.d(t,{A:()=>p});var n=r(90237),o=r(25482),i=r(10107),a=(r(44208),r(53966),r(87811),r(40608)),s=r(77901);let p=class extends o.A{constructor(e){super(e),this.path=[]}};(0,n._)([(0,i.MZ)({type:[s.A],json:{write:!0}})],p.prototype,"path",void 0),p=(0,n._)([(0,a.$)("esri.rest.knowledgeGraph.Path")],p)},42538:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(90237),o=r(10107),i=(r(44208),r(53966),r(87811),r(40608)),a=r(16930),s=r(69622);let p=class extends s.A{constructor(e){super(e),this.openCypherQuery=""}};(0,n._)([(0,o.MZ)()],p.prototype,"openCypherQuery",void 0),p=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.GraphQuery")],p);let l=class extends p{constructor(e){super(e),this.bindParameters=null,this.bindGeometryQuantizationParameters=null,this.outputQuantizationParameters=null,this.outputSpatialReference=null,this.provenanceBehavior=null}};(0,n._)([(0,o.MZ)()],l.prototype,"bindParameters",void 0),(0,n._)([(0,o.MZ)()],l.prototype,"bindGeometryQuantizationParameters",void 0),(0,n._)([(0,o.MZ)()],l.prototype,"outputQuantizationParameters",void 0),(0,n._)([(0,o.MZ)({type:a.A})],l.prototype,"outputSpatialReference",void 0),(0,n._)([(0,o.MZ)()],l.prototype,"provenanceBehavior",void 0),l=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.GraphQueryStreaming")],l)},54238:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(90237),o=r(10107),i=(r(44208),r(53966),r(87811),r(40608)),a=r(77901);let s=class extends a.A{constructor(e){super(e),this.typeName=null,this.id=null}};(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],s.prototype,"typeName",void 0),(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],s.prototype,"id",void 0),s=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.GraphNamedObject")],s)},77901:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(90237),o=r(25482),i=r(10107),a=(r(44208),r(53966),r(87811),r(40608));let s=class extends o.A{constructor(e){super(e),this.properties=null}};(0,n._)([(0,i.MZ)({json:{write:!0}})],s.prototype,"properties",void 0),s=(0,n._)([(0,a.$)("esri.rest.knowledgeGraph.GraphObject")],s)},80672:(e,t,r)=>{r.d(t,{R:()=>o});var n=r(20655);function o(e,t){return null===e?t:new n.A({url:e.field("url")})}},92288:(e,t,r)=>{r.r(t),r.d(t,{registerFunctions:()=>Q});var n=r(92602),o=r(47609),i=r(66395),a=r(85935),s=r(78878),p=r(80672),l=r(91075),u=r(98988),c=r(16930),d=r(28735),f=r(20655),h=r(80812),y=r(78888),m=r(56507),g=r(65864),w=r(2272),v=r(92300),A=r(90237),S=r(25482),R=r(10107),_=(r(44208),r(53966),r(87811),r(40608)),G=r(21325);let x=class extends S.A{constructor(e){super(e),this.geometries=[],this.outSpatialReference=null,this.transformation=null,this.transformForward=null}toJSON(){const e=this.geometries.map((e=>e.toJSON())),t=this.geometries[0],r={};return r.outSR=(0,G.YX)(this.outSpatialReference),r.inSR=(0,G.YX)(t.spatialReference),r.geometries=JSON.stringify({geometryType:(0,g.$B)(t),geometries:e}),this.transformation&&(r.transformation=this.transformation.wkid||JSON.stringify(this.transformation)),null!=this.transformForward&&(r.transformForward=this.transformForward),r}};(0,A._)([(0,R.MZ)()],x.prototype,"geometries",void 0),(0,A._)([(0,R.MZ)({type:c.A,json:{read:{source:"outSR"}}})],x.prototype,"outSpatialReference",void 0),(0,A._)([(0,R.MZ)()],x.prototype,"transformation",void 0),(0,A._)([(0,R.MZ)()],x.prototype,"transformForward",void 0),x=(0,A._)([(0,_.$)("esri.rest.support.ProjectParameters")],x);const M=(0,m.dp)(x);var
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2288],{23150:(e,t,r)=>{r.d(t,{A:()=>p});var n=r(90237),o=r(10107),i=(r(44208),r(53966),r(87811),r(40608)),a=r(82799),s=r(54238);let p=class extends s.A{constructor(e){super(e),this.originId=null,this.destinationId=null,this.layoutGeometry=null}};(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],p.prototype,"originId",void 0),(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],p.prototype,"destinationId",void 0),(0,n._)([(0,o.MZ)({type:a.A,json:{write:!0}})],p.prototype,"layoutGeometry",void 0),p=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.Relationship")],p)},25927:(e,t,r)=>{r.d(t,{A:()=>p});var n=r(90237),o=r(10107),i=(r(44208),r(53966),r(87811),r(40608)),a=r(86738),s=r(54238);let p=class extends s.A{constructor(e){super(e),this.layoutGeometry=null}};(0,n._)([(0,o.MZ)({type:a.A,json:{write:!0}})],p.prototype,"layoutGeometry",void 0),p=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.Entity")],p)},40662:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(90237),o=(r(53966),r(44208),r(87811),r(49186),r(40608)),i=r(77901);let a=class extends i.A{constructor(e){super(e)}};a=(0,n._)([(0,o.$)("esri.rest.knowledgeGraph.ObjectValue")],a)},42095:(e,t,r)=>{r.d(t,{A:()=>p});var n=r(90237),o=r(25482),i=r(10107),a=(r(44208),r(53966),r(87811),r(40608)),s=r(77901);let p=class extends o.A{constructor(e){super(e),this.path=[]}};(0,n._)([(0,i.MZ)({type:[s.A],json:{write:!0}})],p.prototype,"path",void 0),p=(0,n._)([(0,a.$)("esri.rest.knowledgeGraph.Path")],p)},42538:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(90237),o=r(10107),i=(r(44208),r(53966),r(87811),r(40608)),a=r(16930),s=r(69622);let p=class extends s.A{constructor(e){super(e),this.openCypherQuery=""}};(0,n._)([(0,o.MZ)()],p.prototype,"openCypherQuery",void 0),p=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.GraphQuery")],p);let l=class extends p{constructor(e){super(e),this.bindParameters=null,this.bindGeometryQuantizationParameters=null,this.outputQuantizationParameters=null,this.outputSpatialReference=null,this.provenanceBehavior=null}};(0,n._)([(0,o.MZ)()],l.prototype,"bindParameters",void 0),(0,n._)([(0,o.MZ)()],l.prototype,"bindGeometryQuantizationParameters",void 0),(0,n._)([(0,o.MZ)()],l.prototype,"outputQuantizationParameters",void 0),(0,n._)([(0,o.MZ)({type:a.A})],l.prototype,"outputSpatialReference",void 0),(0,n._)([(0,o.MZ)()],l.prototype,"provenanceBehavior",void 0),l=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.GraphQueryStreaming")],l)},54238:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(90237),o=r(10107),i=(r(44208),r(53966),r(87811),r(40608)),a=r(77901);let s=class extends a.A{constructor(e){super(e),this.typeName=null,this.id=null}};(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],s.prototype,"typeName",void 0),(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],s.prototype,"id",void 0),s=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.GraphNamedObject")],s)},77901:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(90237),o=r(25482),i=r(10107),a=(r(44208),r(53966),r(87811),r(40608));let s=class extends o.A{constructor(e){super(e),this.properties=null}};(0,n._)([(0,i.MZ)({json:{write:!0}})],s.prototype,"properties",void 0),s=(0,n._)([(0,a.$)("esri.rest.knowledgeGraph.GraphObject")],s)},80672:(e,t,r)=>{r.d(t,{R:()=>o});var n=r(20655);function o(e,t){return null===e?t:new n.A({url:e.field("url")})}},92288:(e,t,r)=>{r.r(t),r.d(t,{registerFunctions:()=>Q});var n=r(92602),o=r(47609),i=r(66395),a=r(85935),s=r(78878),p=r(80672),l=r(91075),u=r(98988),c=r(16930),d=r(28735),f=r(20655),h=r(80812),y=r(78888),m=r(56507),g=r(65864),w=r(2272),v=r(92300),A=r(90237),S=r(25482),R=r(10107),_=(r(44208),r(53966),r(87811),r(40608)),G=r(21325);let x=class extends S.A{constructor(e){super(e),this.geometries=[],this.outSpatialReference=null,this.transformation=null,this.transformForward=null}toJSON(){const e=this.geometries.map((e=>e.toJSON())),t=this.geometries[0],r={};return r.outSR=(0,G.YX)(this.outSpatialReference),r.inSR=(0,G.YX)(t.spatialReference),r.geometries=JSON.stringify({geometryType:(0,g.$B)(t),geometries:e}),this.transformation&&(r.transformation=this.transformation.wkid||JSON.stringify(this.transformation)),null!=this.transformForward&&(r.transformForward=this.transformForward),r}};(0,A._)([(0,R.MZ)()],x.prototype,"geometries",void 0),(0,A._)([(0,R.MZ)({type:c.A,json:{read:{source:"outSR"}}})],x.prototype,"outSpatialReference",void 0),(0,A._)([(0,R.MZ)()],x.prototype,"transformation",void 0),(0,A._)([(0,R.MZ)()],x.prototype,"transformForward",void 0),x=(0,A._)([(0,_.$)("esri.rest.support.ProjectParameters")],x);const M=(0,m.dp)(x);var $=r(25927),b=r(42538),j=r(40662),P=r(42095),Z=r(23150),k=r(54218);let T=null;async function N(e){const t=n.A.geometryServiceUrl??"";if(!t){(0,u.isLoaded)()||await(0,u.load)();for(const t of e)t.container[t.indexer]=(0,u.project)(t.container[t.indexer],c.A.WGS84);return}const r=e.map((e=>e.container[e.indexer])),o=new x({geometries:r,outSpatialReference:c.A.WGS84}),i=await async function(e,t){t=M(t);const r=(0,w.Dl)(e),n={...r.query,f:"json",...t.toJSON()},o=t.outSpatialReference,i=(0,g.$B)(t.geometries[0]),a=(0,w.jV)(n,void 0);return(0,y.A)(r.path+"/project",a).then((({data:{geometries:e}})=>(0,v.V)(e,i,o)))}(t,o);for(let t=0;t<i.length;t++){const r=e[t];r.container[r.indexer]=i[t]}}async function D(e,t){const n=new h.default({portal:e,id:t});return await n.load(),null===T&&(T=await Promise.all([r.e(8948),r.e(3910),r.e(5323),r.e(217),r.e(8916),r.e(6903)]).then(r.bind(r,8916))),await T.fetchKnowledgeGraph(n.url)}function I(e,t,r,n,o){if(null===e)return null;if((0,k.Kg)(e)||(0,k.Et)(e))return e;if((0,s.e)(e))return e.toJSDate();if((0,s.e)(e))return e.toJSDate();if((0,s.f)(e))return e.toStorageFormat();if((0,s.g)(e))return e.toStorageString();if((0,s.n)(e)){const i={};for(const a of e.keys())i[a]=I(e.field(a),t,r,n,o),i[a]instanceof l.A&&o.push({container:i,indexer:a});return i}if((0,k.cy)(e)){const i=e.map((e=>I(e,t,r,n,o)));for(let e=0;e<i.length;e++)i[e]instanceof l.A&&o.push({container:i,indexer:e});return i}return(0,s.h)(e)?e.spatialReference.isWGS84?e:e.spatialReference.isWebMercator&&t?(0,d.ci)(e):e:void 0}function J(e,t){if(!e)return null;const r={};for(const n in e)r[n]=O(e[n],t);return r}function O(e,t){return null===e?null:(0,k.cy)(e)?e.map((e=>O(e,t))):e instanceof $.A?{graphTypeName:e.typeName,id:e.id,graphType:"entity",properties:J(e.properties,t)}:e instanceof j.A?{graphType:"object",properties:J(e.properties,t)}:e instanceof Z.A?{graphTypeName:e.typeName,id:e.id,graphType:"relationship",originId:e.originId??null,destinationId:e.destinationId??null,properties:J(e.properties,t)}:e instanceof P.A?{graphType:"path",path:e.path?e.path.map((e=>O(e,t))):null}:(0,s.h)(e)?function(e,t){if(!e)return e;if(e.spatialReference.isWGS84&&t.spatialReference.isWebMercator)return(0,d.Gh)(e);if(e.spatialReference.equals(t.spatialReference))return e;throw new a.D$(t,a.TX.WrongSpatialReference,null)}(e,t):(0,k.Kg)(e)||(0,k.Et)(e)||(0,k.$P)(e)?e:null}function Q(e){"async"===e.mode&&(e.functions.knowledgegraphbyportalitem=function(t,r){return e.standardFunctionAsync(t,r,((e,n,i)=>{if((0,s.B)(i,2,2,t,r),null===i[0])throw new a.D$(t,a.TX.PortalRequired,r);if(i[0]instanceof o.A){const e=(0,s.w)(i[1]);let r;return r=t.services?.portal?t.services.portal:f.A.getDefault(),D((0,p.R)(i[0],r),e)}if(!1===(0,k.Kg)(i[0]))throw new a.D$(t,a.TX.InvalidParameter,r);const l=(0,s.w)(i[0]);return D(t.services?.portal??f.A.getDefault(),l)}))},e.signatures.push({name:"knowledgegraphbyportalitem",min:2,max:2}),e.functions.querygraph=function(t,n){return e.standardFunctionAsync(t,n,(async(e,o,p)=>{(0,s.B)(p,2,4,t,n);const l=p[0];if(!(0,s.o)(l))throw new a.D$(t,a.TX.InvalidParameter,n);const u=p[1];if(!(0,k.Kg)(u))throw new a.D$(t,a.TX.InvalidParameter,n);null===T&&(T=await Promise.all([r.e(8948),r.e(3910),r.e(5323),r.e(217),r.e(8916),r.e(6903)]).then(r.bind(r,8916)));let c=null;const d=(0,s.J)(p[2],null);if(!(d instanceof i.A||null===d))throw new a.D$(t,a.TX.InvalidParameter,n);if(d){let e=[];c=I(d,!0,!1,t,e),e=e.filter((e=>!e.container[e.indexer].spatialReference.isWGS84)),e.length>0&&await N(e)}const f=(0,s.J)(p[3],!1),h=new b.A({openCypherQuery:u,bindParameters:c,provenanceBehavior:f?"include":"exclude"});(l?.serviceDefinition?.currentVersion??11.3)>11.2&&(h.outputSpatialReference=t.spatialReference);const y=(await T.executeQueryStreaming(l,h)).resultRowsStream.getReader(),m=[];try{for(;;){const{done:e,value:r}=await y.read();if(e)break;if((0,k.cy)(r))for(const e of r)m.push(O(e,t));else{const e=[];for(const n of r)e.push(O(r[n],t));m.push(e)}}}catch(e){throw e}return i.A.convertJsonToArcade(m,(0,s.K)(t),!1,!0)}))},e.signatures.push({name:"querygraph",min:2,max:4}))}},92300:(e,t,r)=>{r.d(t,{V:()=>i,X:()=>o});var n=r(65864);function o(e){return{geometryType:(0,n.$B)(e[0]),geometries:e.map((e=>e.toJSON()))}}function i(e,t,r){const o=(0,n.xD)(t);return e.map((e=>{const t=o.fromJSON(e);return t.spatialReference=r,t}))}}}]);
|
|
@@ -29,7 +29,7 @@ return dot(rgba, RGBA_TO_FLOAT_FACTORS);
|
|
|
29
29
|
);
|
|
30
30
|
float uninterpolatedRGBAToFloat(vec4 rgba) {
|
|
31
31
|
return (dot(round(rgba * 255.0), uninterpolatedRGBAToFloatFactors) - 0.5) * 2.0;
|
|
32
|
-
}`)}},27993:(e,t,n)=>{n.d(t,{F:()=>i}),n(98988);var o=n(16930),r=n(65806);function i(e,t,n,o,i){return!(null==t||null==o||e.length<2)&&(a.x=e[0],a.y=e[1],a.z=e[2],a.spatialReference=t,(0,r.g)(a,n,o,i))}const a={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:o.A.WGS84,type:"point"}},31821:(e,t,n)=>{function o(e,...t){let n="";for(let o=0;o<t.length;o++)n+=e[o]+t[o];return n+=e[e.length-1],n}function r(e,t,n=""){return e?t:n}n.d(t,{H:()=>o,If:()=>r}),function(e){e.int=function(e){return Math.round(e).toString()},e.float=function(e){return e.toPrecision(8)}}(o||(o={}))},33079:(e,t,n)=>{n.d(t,{t:()=>i});var o=n(69270),r=n(74333);class i extends r.n{constructor(e,t){super(e,"vec3",o.c.Pass,((n,o,r)=>n.setUniform3fv(e,t(o,r))))}}},33094:(e,t,n)=>{n.d(t,{U:()=>i});var o=n(69270),r=n(74333);class i extends r.n{constructor(e,t){super(e,"float",o.c.Bind,((n,o)=>n.setUniform1f(e,t(o))))}}},35644:(e,t,n)=>{n.d(t,{k:()=>i});var o=n(69270),r=n(74333);class i extends r.n{constructor(e,t){super(e,"mat3",o.c.Pass,((n,o,r)=>n.setUniformMatrix3fv(e,t(o,r))))}}},37203:(e,t,n)=>{n.d(t,{Ax:()=>m,Me:()=>l,mb:()=>h});var o=n(49186);const r=!0,i={identifierOffset:0,identifierLength:10,versionOffset:10,checksumOffset:12,byteCount:16};function a(e,t,n){return{identifier:String.fromCharCode.apply(null,new Uint8Array(e,n+i.identifierOffset,i.identifierLength)),version:t.getUint16(n+i.versionOffset,r),checksum:t.getUint32(n+i.checksumOffset,r)}}const c={sizeLo:0,sizeHi:4,minX:8,minY:16,minZ:24,maxX:32,maxY:40,maxZ:48,errorX:56,errorY:64,errorZ:72,count:80,reserved:84,byteCount:88};function s(e,t){return{sizeLo:e.getUint32(t+c.sizeLo,r),sizeHi:e.getUint32(t+c.sizeHi,r),minX:e.getFloat64(t+c.minX,r),minY:e.getFloat64(t+c.minY,r),minZ:e.getFloat64(t+c.minZ,r),maxX:e.getFloat64(t+c.maxX,r),maxY:e.getFloat64(t+c.maxY,r),maxZ:e.getFloat64(t+c.maxZ,r),errorX:e.getFloat64(t+c.errorX,r),errorY:e.getFloat64(t+c.errorY,r),errorZ:e.getFloat64(t+c.errorZ,r),count:e.getUint32(t+c.count,r),reserved:e.getUint32(t+c.reserved,r)}}function l(e){const t=new DataView(e,0);let n=0;const{identifier:r,version:l}=a(e,t,n);if(n+=i.byteCount,"LEPCC "!==r)throw new o.A("lepcc-decode-error","Bad identifier");if(l>1)throw new o.A("lepcc-decode-error","Unknown version");const d=s(t,n);if(n+=c.byteCount,d.sizeHi*2**32+d.sizeLo!==e.byteLength)throw new o.A("lepcc-decode-error","Bad size");const f=new Float64Array(3*d.count),y=[],h=[],p=[],g=[];if(n=u(e,n,y),n=u(e,n,h),n=u(e,n,p),n=u(e,n,g),n!==e.byteLength)throw new o.A("lepcc-decode-error","Bad length");let m=0,
|
|
32
|
+
}`)}},27993:(e,t,n)=>{n.d(t,{F:()=>i}),n(98988);var o=n(16930),r=n(65806);function i(e,t,n,o,i){return!(null==t||null==o||e.length<2)&&(a.x=e[0],a.y=e[1],a.z=e[2],a.spatialReference=t,(0,r.g)(a,n,o,i))}const a={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:o.A.WGS84,type:"point"}},31821:(e,t,n)=>{function o(e,...t){let n="";for(let o=0;o<t.length;o++)n+=e[o]+t[o];return n+=e[e.length-1],n}function r(e,t,n=""){return e?t:n}n.d(t,{H:()=>o,If:()=>r}),function(e){e.int=function(e){return Math.round(e).toString()},e.float=function(e){return e.toPrecision(8)}}(o||(o={}))},33079:(e,t,n)=>{n.d(t,{t:()=>i});var o=n(69270),r=n(74333);class i extends r.n{constructor(e,t){super(e,"vec3",o.c.Pass,((n,o,r)=>n.setUniform3fv(e,t(o,r))))}}},33094:(e,t,n)=>{n.d(t,{U:()=>i});var o=n(69270),r=n(74333);class i extends r.n{constructor(e,t){super(e,"float",o.c.Bind,((n,o)=>n.setUniform1f(e,t(o))))}}},35644:(e,t,n)=>{n.d(t,{k:()=>i});var o=n(69270),r=n(74333);class i extends r.n{constructor(e,t){super(e,"mat3",o.c.Pass,((n,o,r)=>n.setUniformMatrix3fv(e,t(o,r))))}}},37203:(e,t,n)=>{n.d(t,{Ax:()=>m,Me:()=>l,mb:()=>h});var o=n(49186);const r=!0,i={identifierOffset:0,identifierLength:10,versionOffset:10,checksumOffset:12,byteCount:16};function a(e,t,n){return{identifier:String.fromCharCode.apply(null,new Uint8Array(e,n+i.identifierOffset,i.identifierLength)),version:t.getUint16(n+i.versionOffset,r),checksum:t.getUint32(n+i.checksumOffset,r)}}const c={sizeLo:0,sizeHi:4,minX:8,minY:16,minZ:24,maxX:32,maxY:40,maxZ:48,errorX:56,errorY:64,errorZ:72,count:80,reserved:84,byteCount:88};function s(e,t){return{sizeLo:e.getUint32(t+c.sizeLo,r),sizeHi:e.getUint32(t+c.sizeHi,r),minX:e.getFloat64(t+c.minX,r),minY:e.getFloat64(t+c.minY,r),minZ:e.getFloat64(t+c.minZ,r),maxX:e.getFloat64(t+c.maxX,r),maxY:e.getFloat64(t+c.maxY,r),maxZ:e.getFloat64(t+c.maxZ,r),errorX:e.getFloat64(t+c.errorX,r),errorY:e.getFloat64(t+c.errorY,r),errorZ:e.getFloat64(t+c.errorZ,r),count:e.getUint32(t+c.count,r),reserved:e.getUint32(t+c.reserved,r)}}function l(e){const t=new DataView(e,0);let n=0;const{identifier:r,version:l}=a(e,t,n);if(n+=i.byteCount,"LEPCC "!==r)throw new o.A("lepcc-decode-error","Bad identifier");if(l>1)throw new o.A("lepcc-decode-error","Unknown version");const d=s(t,n);if(n+=c.byteCount,d.sizeHi*2**32+d.sizeLo!==e.byteLength)throw new o.A("lepcc-decode-error","Bad size");const f=new Float64Array(3*d.count),y=[],h=[],p=[],g=[];if(n=u(e,n,y),n=u(e,n,h),n=u(e,n,p),n=u(e,n,g),n!==e.byteLength)throw new o.A("lepcc-decode-error","Bad length");let m=0,w=0;for(let e=0;e<y.length;e++){w+=y[e];let t=0;for(let n=0;n<h[e];n++){t+=p[m];const e=g[m];f[3*m]=Math.min(d.maxX,d.minX+2*d.errorX*t),f[3*m+1]=Math.min(d.maxY,d.minY+2*d.errorY*w),f[3*m+2]=Math.min(d.maxZ,d.minZ+2*d.errorZ*e),m++}}return{errorX:d.errorX,errorY:d.errorY,errorZ:d.errorZ,result:f}}function u(e,t,n){const o=[];t=d(e,t,o);const r=[];for(let i=0;i<o.length;i++){r.length=0,t=d(e,t,r);for(let e=0;e<r.length;e++)n.push(r[e]+o[i])}return t}function d(e,t,n){const i=new DataView(e,t),a=i.getUint8(0),c=31&a,s=!!(32&a),l=(192&a)>>6;let u=0;if(0===l)u=i.getUint32(1,r),t+=5;else if(1===l)u=i.getUint16(1,r),t+=3;else{if(2!==l)throw new o.A("lepcc-decode-error","Bad count type");u=i.getUint8(1),t+=2}if(s)throw new o.A("lepcc-decode-error","LUT not implemented");const d=Math.ceil(u*c/8),f=new Uint8Array(e,t,d);let y=0,h=0,p=0;const g=-1>>>32-c;for(let e=0;e<u;e++){for(;h<c;)y|=f[p]<<h,h+=8,p+=1;n[e]=y&g,y>>>=c,h-=c,h+c>32&&(y|=f[p-1]>>8-h)}return t+p}const f={sizeLo:0,sizeHi:4,count:8,colorMapCount:12,lookupMethod:14,compressionMethod:15,byteCount:16};function y(e,t){return{sizeLo:e.getUint32(t+f.sizeLo,r),sizeHi:e.getUint32(t+f.sizeHi,r),count:e.getUint32(t+f.count,r),colorMapCount:e.getUint16(t+f.colorMapCount,r),lookupMethod:e.getUint8(t+f.lookupMethod),compressionMethod:e.getUint8(t+f.compressionMethod)}}function h(e){const t=new DataView(e,0);let n=0;const{identifier:r,version:c}=a(e,t,n);if(n+=i.byteCount,"ClusterRGB"!==r)throw new o.A("lepcc-decode-error","Bad identifier");if(c>1)throw new o.A("lepcc-decode-error","Unknown version");const s=y(t,n);if(n+=f.byteCount,s.sizeHi*2**32+s.sizeLo!==e.byteLength)throw new o.A("lepcc-decode-error","Bad size");if((2===s.lookupMethod||1===s.lookupMethod)&&0===s.compressionMethod){if(3*s.colorMapCount+s.count+n!==e.byteLength||s.colorMapCount>256)throw new o.A("lepcc-decode-error","Bad count");const t=new Uint8Array(e,n,3*s.colorMapCount),r=new Uint8Array(e,n+3*s.colorMapCount,s.count),i=new Uint8Array(3*s.count);for(let e=0;e<s.count;e++){const n=r[e];i[3*e]=t[3*n],i[3*e+1]=t[3*n+1],i[3*e+2]=t[3*n+2]}return i}if(0===s.lookupMethod&&0===s.compressionMethod){if(3*s.count+n!==e.byteLength||0!==s.colorMapCount)throw new o.A("lepcc-decode-error","Bad count");return new Uint8Array(e,n).slice()}if(s.lookupMethod<=2&&1===s.compressionMethod){if(n+3!==e.byteLength||1!==s.colorMapCount)throw new o.A("lepcc-decode-error","Bad count");const r=t.getUint8(n),i=t.getUint8(n+1),a=t.getUint8(n+2),c=new Uint8Array(3*s.count);for(let e=0;e<s.count;e++)c[3*e]=r,c[3*e+1]=i,c[3*e+2]=a;return c}throw new o.A("lepcc-decode-error","Bad method "+s.lookupMethod+","+s.compressionMethod)}const p={sizeLo:0,sizeHi:4,count:8,scaleFactor:12,bitsPerPoint:14,reserved:15,byteCount:16};function g(e,t){return{sizeLo:e.getUint32(t+p.sizeLo,r),sizeHi:e.getUint32(t+p.sizeHi,r),count:e.getUint32(t+p.count,r),scaleFactor:e.getUint16(t+p.scaleFactor,r),bitsPerPoint:e.getUint8(t+p.bitsPerPoint),reserved:e.getUint8(t+p.reserved)}}function m(e){const t=new DataView(e,0);let n=0;const{identifier:r,version:c}=a(e,t,n);if(n+=i.byteCount,"Intensity "!==r)throw new o.A("lepcc-decode-error","Bad identifier");if(c>1)throw new o.A("lepcc-decode-error","Unknown version");const s=g(t,n);if(n+=p.byteCount,s.sizeHi*2**32+s.sizeLo!==e.byteLength)throw new o.A("lepcc-decode-error","Bad size");const l=new Uint16Array(s.count);if(8===s.bitsPerPoint){if(s.count+n!==e.byteLength)throw new o.A("lepcc-decode-error","Bad size");const t=new Uint8Array(e,n,s.count);for(let e=0;e<s.count;e++)l[e]=t[e]*s.scaleFactor}else if(16===s.bitsPerPoint){if(2*s.count+n!==e.byteLength)throw new o.A("lepcc-decode-error","Bad size");const t=new Uint16Array(e,n,s.count);for(let e=0;e<s.count;e++)l[e]=t[e]*s.scaleFactor}else{const t=[];if(d(e,n,t)!==e.byteLength)throw new o.A("lepcc-decode-error","Bad size");for(let e=0;e<s.count;e++)l[e]=t[e]*s.scaleFactor}return l}},40710:(e,t,n)=>{n.d(t,{W:()=>i});var o=n(69270),r=n(74333);class i extends r.n{constructor(e,t){super(e,"vec3",o.c.Draw,((n,o,r,i)=>n.setUniform3fv(e,t(o,r,i))))}}},40804:(e,t,n)=>{n.d(t,{U:()=>r});var o=n(34727);function r(e,t,n=0){const r=(0,o.qE)(e,0,c);for(let e=0;e<4;e++)t[n+e]=Math.floor(256*s(r*i[e]))}const i=[1,256,65536,16777216],a=[1/256,1/65536,1/16777216,1/4294967296],c=function(e,t=0){let n=0;for(let o=0;o<4;o++)n+=e[t+o]*a[o];return n}(new Uint8ClampedArray([255,255,255,255]));function s(e){return e-Math.floor(e)}},40879:(e,t,n)=>{n.d(t,{Q7:()=>w,s1:()=>m});var o=n(78888),r=(n(4576),n(49186),n(44208),n(58083),n(9093)),i=(n(38954),n(51850)),a=(n(98988),n(16930),n(27993),n(19419));n(97937),n(74887),n(30524),n(61956);var c=n(59418);n(73941),n(48353),n(68197);var s,l,u,d,f,y=n(91829);!function(e){e[e.TRANSPARENT=0]="TRANSPARENT",e[e.OPAQUE=1]="OPAQUE"}(s||(s={})),n(21818),n(40804),n(42583),n(49255),n(26835),n(81961),n(31821),n(69270),n(74333).n,n(15976),n(16943),n(46540),(u=l||(l={}))[u.Uniform=0]="Uniform",u[u.Varying=1]="Varying",u[u.COUNT=2]="COUNT",n(96336),n(26425),n(40710),n(33079),n(98353),n(35644),n(58029),function(e){e[e.Solid=0]="Solid",e[e.Sketch=1]="Sketch",e[e.Mixed=2]="Mixed",e[e.COUNT=3]="COUNT"}(d||(d={})),function(e){e[e.REGULAR=0]="REGULAR",e[e.SILHOUETTE=1]="SILHOUETTE"}(f||(f={}));(0,y.fA)(0,0,0,.2),s.OPAQUE;(0,y.fA)(0,0,0,.2),s.OPAQUE,n(66104);var h,p,g=n(57005);async function m(e,t,n,r,i,a,s,l){const u=[];for(const o of t)if(o&&i.includes(o.name)){const t=`${e}/nodes/${n}/attributes/${o.key}/0`;u.push({url:t,storageInfo:o})}const d=await Promise.allSettled(u.map((e=>(0,o.A)(e.url,{responseType:"array-buffer",query:{...s,token:a},signal:l?.signal}).then((t=>(0,c.m0)(e.storageInfo,t.data)))))),f=[];for(const e of r){const t={};for(let n=0;n<d.length;n++){const o=d[n];if("fulfilled"===o.status){const r=o.value;t[u[n].storageInfo.name]=(0,c.E5)(r,e)}}f.push(t)}return f}function w(e){null!=e&&(e[3]=-1)}(0,a.vt)(),(p=h||(h={}))[p.OUTSIDE=0]="OUTSIDE",p[p.INTERSECTS_CENTER_OUTSIDE=1]="INTERSECTS_CENTER_OUTSIDE",p[p.INTERSECTS_CENTER_INSIDE=2]="INTERSECTS_CENTER_INSIDE",p[p.INSIDE=3]="INSIDE",d.Solid,(0,i.vt)(),(0,i.vt)(),(0,i.vt)(),(0,i.vt)(),(0,i.vt)(),(0,i.vt)(),(0,i.vt)(),(0,i.vt)(),(0,a.vt)(),(0,a.vt)(),new g.ab,(0,i.vt)(),new Array(72),(0,r.vt)()},42583:(e,t,n)=>{n.d(t,{A:()=>i});var o=n(66104),r=n(31821);function i(e){e.vertex.code.add(r.H`
|
|
33
33
|
vec4 decodeSymbolColor(vec4 symbolColor, out int colorMixMode) {
|
|
34
34
|
float symbolAlpha = 0.0;
|
|
35
35
|
|
|
@@ -53,7 +53,7 @@ return (dot(round(rgba * 255.0), uninterpolatedRGBAToFloatFactors) - 0.5) * 2.0;
|
|
|
53
53
|
|
|
54
54
|
return vec4(symbolColor.r, symbolColor.g, symbolColor.b, symbolAlpha);
|
|
55
55
|
}
|
|
56
|
-
`)}},49255:(e,t,n)=>{var o;function r(e){return e===o.Shadow||e===o.ShadowHighlight||e===o.ShadowExcludeHighlight||e===o.ViewshedShadow}function i(e){return function(e){return function(e){return s(e)||c(e)}(e)||d(e)}(e)||e===o.Normal}function a(e){return function(e){return u(e)||d(e)}(e)||e===o.Normal}function c(e){return e===o.Highlight||e===o.ObjectAndLayerIdColor}function s(e){return e===o.Color}function l(e){return s(e)||f(e)}function u(e){return l(e)||c(e)}function d(e){return e===o.Depth}function f(e){return e===o.ColorEmission}function y(e){switch(e){case o.Depth:case o.Shadow:case o.ShadowHighlight:case o.ShadowExcludeHighlight:case o.ViewshedShadow:return!0}return!1}n.d(t,{LG:()=>f,Mb:()=>u,PJ:()=>r,RN:()=>l,V:()=>o,Vg:()=>y,XY:()=>i,iq:()=>a}),function(e){e[e.Color=0]="Color",e[e.ColorEmission=1]="ColorEmission",e[e.Depth=2]="Depth",e[e.Normal=3]="Normal",e[e.Shadow=4]="Shadow",e[e.ShadowHighlight=5]="ShadowHighlight",e[e.ShadowExcludeHighlight=6]="ShadowExcludeHighlight",e[e.ViewshedShadow=7]="ViewshedShadow",e[e.Highlight=8]="Highlight",e[e.ObjectAndLayerIdColor=9]="ObjectAndLayerIdColor",e[e.COUNT=10]="COUNT"}(o||(o={}))},50498:(e,t,n)=>{n.d(t,{Ye:()=>d,gy:()=>u,yR:()=>f});var o=n(66552),r=n(5443),i=n(91075),a=n(48526),c=n(86738),s=n(39829),l=n(82799);const u=(0,o.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),d=(0,o.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),f={base:i.A,key:"type",typeMap:{extent:r.A,multipoint:a.A,point:c.A,polyline:l.A,polygon:s.A}}},58029:(e,t,n)=>{n.d(t,{F:()=>i});var o=n(69270),r=n(74333);class i extends r.n{constructor(e,t){super(e,"mat4",o.c.Bind,((n,o)=>n.setUniformMatrix4fv(e,t(o))))}}},59418:(e,t,n)=>{n.d(t,{wH:()=>g,MA:()=>y,E5:()=>h,m0:()=>
|
|
56
|
+
`)}},49255:(e,t,n)=>{var o;function r(e){return e===o.Shadow||e===o.ShadowHighlight||e===o.ShadowExcludeHighlight||e===o.ViewshedShadow}function i(e){return function(e){return function(e){return s(e)||c(e)}(e)||d(e)}(e)||e===o.Normal}function a(e){return function(e){return u(e)||d(e)}(e)||e===o.Normal}function c(e){return e===o.Highlight||e===o.ObjectAndLayerIdColor}function s(e){return e===o.Color}function l(e){return s(e)||f(e)}function u(e){return l(e)||c(e)}function d(e){return e===o.Depth}function f(e){return e===o.ColorEmission}function y(e){switch(e){case o.Depth:case o.Shadow:case o.ShadowHighlight:case o.ShadowExcludeHighlight:case o.ViewshedShadow:return!0}return!1}n.d(t,{LG:()=>f,Mb:()=>u,PJ:()=>r,RN:()=>l,V:()=>o,Vg:()=>y,XY:()=>i,iq:()=>a}),function(e){e[e.Color=0]="Color",e[e.ColorEmission=1]="ColorEmission",e[e.Depth=2]="Depth",e[e.Normal=3]="Normal",e[e.Shadow=4]="Shadow",e[e.ShadowHighlight=5]="ShadowHighlight",e[e.ShadowExcludeHighlight=6]="ShadowExcludeHighlight",e[e.ViewshedShadow=7]="ViewshedShadow",e[e.Highlight=8]="Highlight",e[e.ObjectAndLayerIdColor=9]="ObjectAndLayerIdColor",e[e.COUNT=10]="COUNT"}(o||(o={}))},50498:(e,t,n)=>{n.d(t,{Ye:()=>d,gy:()=>u,yR:()=>f});var o=n(66552),r=n(5443),i=n(91075),a=n(48526),c=n(86738),s=n(39829),l=n(82799);const u=(0,o.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),d=(0,o.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),f={base:i.A,key:"type",typeMap:{extent:r.A,multipoint:a.A,point:c.A,polyline:l.A,polygon:s.A}}},58029:(e,t,n)=>{n.d(t,{F:()=>i});var o=n(69270),r=n(74333);class i extends r.n{constructor(e,t){super(e,"mat4",o.c.Bind,((n,o)=>n.setUniformMatrix4fv(e,t(o))))}}},59418:(e,t,n)=>{n.d(t,{wH:()=>g,MA:()=>y,E5:()=>h,m0:()=>w});var o=n(49186),r=n(4718),i=n(53966),a=n(34275),c=n(37203),s=n(46540);const l=()=>i.A.getLogger("esri.views.3d.layers.i3s.I3SBinaryReader");function u(e,t,n){let r="",i=0;for(;i<n;){const a=e[t+i];if(a<128)r+=String.fromCharCode(a),i++;else if(a>=192&&a<224){if(i+1>=n)throw new o.A("utf8-decode-error","UTF-8 Decode failed. Two byte character was truncated.");const c=(31&a)<<6|63&e[t+i+1];r+=String.fromCharCode(c),i+=2}else if(a>=224&&a<240){if(i+2>=n)throw new o.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const c=(15&a)<<12|(63&e[t+i+1])<<6|63&e[t+i+2];r+=String.fromCharCode(c),i+=3}else{if(!(a>=240&&a<248))throw new o.A("utf8-decode-error","UTF-8 Decode failed. Invalid multi byte sequence.");{if(i+3>=n)throw new o.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const c=(7&a)<<18|(63&e[t+i+1])<<12|(63&e[t+i+2])<<6|63&e[t+i+3];if(c>=65536){const e=55296+(c-65536>>10),t=56320+(1023&c);r+=String.fromCharCode(e,t)}else r+=String.fromCharCode(c);i+=4}}}return r}function d(e,t){const n={byteOffset:0,byteCount:0,fields:Object.create(null)};let o=0;for(let r=0;r<t.length;r++){const i=t[r],a=i.valueType||i.type,c=A[a];n.fields[i.property]=c(e,o),o+=b[a].BYTES_PER_ELEMENT}return n.byteCount=o,n}function f(e,t,n){const r=[];let i,a,c=0;for(a=0;a<e;a+=1){if(i=t[a],i>0){if(r.push(u(n,c,i-1)),0!==n[c+i-1])throw new o.A("string-array-error","Invalid string array: missing null termination.")}else r.push(null);c+=i}return r}function y(e,t){return new(0,b[t.valueType])(e,t.byteOffset,t.count*t.valuesPerElement)}function h(e,t){if(!e)return null;const n=e[t];return(0,a.IY)(e)?n===a.PI?null:n:(0,a._G)(e)?n===a.h2?null:n:n!=n?null:n}function p(e,t,n){if(t!==e&&l().error(`Invalid ${n} buffer size\n expected: ${e}, actual: ${t})`),t<e)throw new o.A("buffer-too-small","Binary buffer is too small",{expectedSize:e,actualSize:t})}function g(e,t){const n=d(e,t&&t.header);let o=n.byteCount;const r={isDraco:!1,header:n,byteOffset:n.byteCount,byteCount:0,vertexAttributes:{}},i=n.fields,a=null!=i.vertexCount?i.vertexCount:i.count;for(const e of t.ordering){if(!t.vertexAttributes[e])continue;const n={...t.vertexAttributes[e],byteOffset:o,count:a},i=m[e]||"_"+e;r.vertexAttributes[i]=n,o+=C(n.valueType)*n.valuesPerElement*a}const c=i.faceCount;if(t.faces&&c){r.faces={};for(const e of t.ordering){if(!t.faces[e])continue;const n={...t.faces[e],byteOffset:o,count:c};r.faces[e]=n,o+=C(n.valueType)*n.valuesPerElement*c}}const s=i.featureCount;if(t.featureAttributes&&t.featureAttributeOrder&&s){r.featureAttributes={};for(const e of t.featureAttributeOrder){if(!t.featureAttributes[e])continue;const n={...t.featureAttributes[e],byteOffset:o,count:s};r.featureAttributes[e]=n,o+=("UInt64"===n.valueType?8:C(n.valueType))*n.valuesPerElement*s}}return p(o,e.byteLength,"geometry"),r.byteCount=o-r.byteOffset,r}const m={position:s.r.POSITION,normal:s.r.NORMAL,color:s.r.COLOR,uv0:s.r.UV0,region:s.r.UVREGION};function w(e,t,n,i=!1){if("lepcc-rgb"===e.encoding)return i?(0,c.mb)(t):function(e){return Array.isArray(e)?e.length<a.y9?e:new Uint8Array(e):e.length<a.y9?Array.from(e):e}((0,c.mb)(t));if("lepcc-intensity"===e.encoding)return i?(0,c.Ax)(t):function(e){return Array.isArray(e)?e.length<a.y9?e:new Uint16Array(e):e.length<a.y9?Array.from(e):e}((0,c.Ax)(t));if(null!=e.encoding&&""!==e.encoding)throw new o.A("unknown-attribute-storage-info-encoding","Unknown Attribute Storage Info Encoding");e["attributeByteCounts "]&&!e.attributeByteCounts&&(l().warn("Warning: Trailing space in 'attributeByteCounts '."),e.attributeByteCounts=e["attributeByteCounts "]),"ObjectIds"===e.ordering[0]&&e.hasOwnProperty("objectIds")&&(l().warn("Warning: Case error in objectIds"),e.ordering[0]="objectIds");const s=function(e,t,n){const i=null!=t.header?d(e,t.header):{byteOffset:0,byteCount:0,fields:{count:n}},a={header:i,byteOffset:i.byteCount,byteCount:0,entries:Object.create(null)};let c=i.byteCount;for(let e=0;e<t.ordering.length;e++){const n=t.ordering[e],s=(0,r.o8)(t[n]);if(s.count=i.fields.count??0,"String"===s.valueType){if(s.byteOffset=c,s.byteCount=i.fields[n+"ByteCount"],"UTF-8"!==s.encoding)throw new o.A("unsupported-encoding","Unsupported String encoding.",{encoding:s.encoding});if(s.timeEncoding&&"ECMA_ISO8601"!==s.timeEncoding)throw new o.A("unsupported-time-encoding","Unsupported time encoding.",{timeEncoding:s.timeEncoding})}else{if(!v(s.valueType))throw new o.A("unsupported-value-type","Unsupported binary valueType",{valueType:s.valueType});{const e=C(s.valueType);c+=c%e!==0?e-c%e:0,s.byteOffset=c,s.byteCount=e*s.valuesPerElement*s.count}}c+=s.byteCount??0,a.entries[n]=s}return a.byteCount=c-a.byteOffset,a}(t,e,n);p(s.byteOffset+s.byteCount,t.byteLength,"attribute");const u=s.entries.attributeValues||s.entries.objectIds;if(u){if("String"===u.valueType){const e=s.entries.attributeByteCounts,n=y(t,e),o=function(e,t){return new Uint8Array(e,t.byteOffset,t.byteCount)}(t,u);return u.timeEncoding?function(e,t,n){return f(e,t,n).map((e=>{const t=e?Date.parse(e):null;return null==t||Number.isNaN(t)?null:t}))}(e.count,n,o):f(e.count,n,o)}return i?y(t,u):function(e,t){const n=y(e,t);if(n.length>=a.y9)return n;const o=new Array;return n.forEach(((e,t)=>o.push(h(n,t)))),o}(t,u)}throw new o.A("bad-attribute-storage-info","Bad attributeStorageInfo specification.")}const b={Float32:Float32Array,Float64:Float64Array,UInt8:Uint8Array,Int8:Int8Array,UInt16:Uint16Array,Int16:Int16Array,UInt32:Uint32Array,Int32:Int32Array},A={Float32:(e,t)=>new DataView(e,0).getFloat32(t,!0),Float64:(e,t)=>new DataView(e,0).getFloat64(t,!0),UInt8:(e,t)=>new DataView(e,0).getUint8(t),Int8:(e,t)=>new DataView(e,0).getInt8(t),UInt16:(e,t)=>new DataView(e,0).getUint16(t,!0),Int16:(e,t)=>new DataView(e,0).getInt16(t,!0),UInt32:(e,t)=>new DataView(e,0).getUint32(t,!0),Int32:(e,t)=>new DataView(e,0).getInt32(t,!0)};function v(e){return b.hasOwnProperty(e)}function C(e){return v(e)?b[e].BYTES_PER_ELEMENT:0}},65806:(e,t,n)=>{n.d(t,{g:()=>a});var o=n(51850),r=n(98988),i=n(9762);function a(e,t,n,o){if((0,r.canProjectWithoutEngine)(e.spatialReference,n)){c[0]=e.x,c[1]=e.y;const r=e.z;return c[2]=r??o??0,(0,i.projectBuffer)(c,e.spatialReference,0,t,n,0)}const a=(0,r.tryProjectWithZConversion)(e,n);return!!a&&(t[0]=a?.x,t[1]=a?.y,t[2]=a?.z??o??0,!0)}const c=(0,o.vt)()},66104:(e,t,n)=>{var o,r;n.d(t,{k5:()=>o}),n(34727),(r=o||(o={}))[r.Multiply=1]="Multiply",r[r.Ignore=2]="Ignore",r[r.Replace=3]="Replace",r[r.Tint=4]="Tint"},69270:(e,t,n)=>{var o;n.d(t,{c:()=>o}),function(e){e[e.Bind=0]="Bind",e[e.Pass=1]="Pass",e[e.Draw=2]="Draw"}(o||(o={}))},74333:(e,t,n)=>{n.d(t,{n:()=>r}),n(44208);var o=n(69270);class r{constructor(e,t,n,r,i=null){if(this.name=e,this.type=t,this.arraySize=i,this.bind={[o.c.Bind]:null,[o.c.Pass]:null,[o.c.Draw]:null},r)switch(n){case void 0:break;case o.c.Bind:this.bind[o.c.Bind]=r;break;case o.c.Pass:this.bind[o.c.Pass]=r;break;case o.c.Draw:this.bind[o.c.Draw]=r}}equals(e){return this.type===e.type&&this.name===e.name&&this.arraySize===e.arraySize}}},81961:(e,t,n)=>{n.d(t,{V:()=>i});var o=n(69270),r=n(74333);class i extends r.n{constructor(e,t){super(e,"vec4",o.c.Draw,((n,o,r)=>n.setUniform4fv(e,t(o,r))))}}},96336:(e,t,n)=>{n.d(t,{W:()=>o,Y:()=>s});var o,r,i=n(21818),a=n(31821),c=n(46540);function s(e,t){switch(t.normalType){case o.Compressed:e.attributes.add(c.r.NORMALCOMPRESSED,"vec2"),e.vertex.code.add(a.H`vec3 decompressNormal(vec2 normal) {
|
|
57
57
|
float z = 1.0 - abs(normal.x) - abs(normal.y);
|
|
58
58
|
return vec3(normal + sign(normal) * min(z, 0.0), z);
|
|
59
59
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3390],{3390:(n,e,a)=>{a.r(e),a.d(e,{registerFunctions:()=>d});var t=a(66395),r=a(85935),o=a(78878),i=a(33325);function c(n,e){return n&&n.domain?"coded-value"===n.domain.type||"codedValue"===n.domain.type?t.A.convertObjectToArcadeDictionary({type:"codedValue",name:n.domain.name,dataType:i.At[n.field.type],codedValues:n.domain.codedValues.map((n=>({name:n.name,code:n.code})))},(0,o.K)(e)):t.A.convertObjectToArcadeDictionary({type:"range",name:n.domain.name,dataType:i.At[n.field.type],min:n.domain.minValue,max:n.domain.maxValue},(0,o.K)(e)):null}function d(n){"async"===n.mode&&(n.functions.domain=function(e,a){return n.standardFunctionAsync(e,a,(async(n,t,i)=>{if((0,o.B)(i,2,3,e,a),(0,o.k)(i[0]))return c((0,o.Q)(i[0],(0,o.w)(i[1]),void 0===i[2]?void 0:i[2]),e);if((0,o.m)(i[0]))return await i[0]._ensureLoaded(),c((0,o.a1)((0,o.w)(i[1]),i[0],null,void 0===i[2]?void 0:i[2]),e);throw new r.D$(e,r.TX.InvalidParameter,a)}))},n.functions.subtypes=function(e,a){return n.standardFunctionAsync(e,a,(async(n,i,c)=>{if((0,o.B)(c,1,1,e,a),(0,o.k)(c[0])){const n=(0,o.V)(c[0]);return n?t.A.convertObjectToArcadeDictionary(n,(0,o.K)(e)):null}if((0,o.m)(c[0])){await c[0]._ensureLoaded();const n=c[0].subtypeMetaData();return n?t.A.convertObjectToArcadeDictionary(n,(0,o.K)(e)):null}throw new r.D$(e,r.TX.InvalidParameter,a)}))},n.functions.domainname=function(e,a){return n.standardFunctionAsync(e,a,(async(n,t,i)=>{if((0,o.B)(i,2,4,e,a),(0,o.k)(i[0]))return(0,o.T)(i[0],(0,o.w)(i[1]),i[2],void 0===i[3]?void 0:i[3]);if((0,o.m)(i[0])){await i[0]._ensureLoaded();const n=(0,o.a1)((0,o.w)(i[1]),i[0],null,void 0===i[3]?void 0:i[3]);return(0,o.a2)(n,i[2])}throw new r.D$(e,r.TX.InvalidParameter,a)}))},n.signatures.push({name:"domainname",min:2,max:4}),n.functions.domaincode=function(e,a){return n.standardFunctionAsync(e,a,(async(n,t,i)=>{if((0,o.B)(i,2,4,e,a),(0,o.k)(i[0]))return(0,o.S)(i[0],(0,o.w)(i[1]),i[2],void 0===i[3]?void 0:i[3]);if((0,o.m)(i[0])){await i[0]._ensureLoaded();const n=(0,o.a1)((0,o.w)(i[1]),i[0],null,void 0===i[3]?void 0:i[3]);return(0,o.a3)(n,i[2])}throw new r.D$(e,r.TX.InvalidParameter,a)}))},n.signatures.push({name:"domaincode",min:2,max:4}),n.functions.text=function(e,a){return n.standardFunctionAsync(e,a,(async(n,t,i)=>{if((0,o.B)(i,1,2,e,a),(0,o.m)(i[0])){const t=(0,o.J)(i[1],"");if(""===t)return i[0].castToText();if("schema"===t.toLowerCase())return i[0].convertToText("schema",n.abortSignal);if("featureset"===t.toLowerCase())return i[0].convertToText("featureset",n.abortSignal);throw new r.D$(e,r.TX.InvalidParameter,a)}return(0,o.t)(i[0],i[1])}))},n.functions.gdbversion=function(e,a){return n.standardFunctionAsync(e,a,(async(n,t,i)=>{if((0,o.B)(i,1,1,e,a),(0,o.k)(i[0]))return i[0].gdbVersion();if((0,o.m)(i[0]))return(await i[0].load()).gdbVersion;throw new r.D$(e,r.TX.InvalidParameter,a)}))},n.functions.schema=function(e,a){return n.standardFunctionAsync(e,a,(async(n,i,c)=>{if((0,o.B)(c,1,1,e,a),(0,o.m)(c[0]))return await c[0].load(),t.A.convertObjectToArcadeDictionary(c[0].schema(),(0,o.K)(e));if((0,o.k)(c[0])){const n=(0,o.U)(c[0]);return n?t.A.convertObjectToArcadeDictionary(n,(0,o.K)(e)):null}throw new r.D$(e,r.TX.InvalidParameter,a)}))})}}}]);
|