@arcgis/coding-components 4.32.13 → 4.32.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/dist/arcgis-coding-components/{WOA4MX3A.js → 22ELV674.js} +2 -2
  2. package/dist/arcgis-coding-components/{33TBUAUE.js.LEGAL.txt → 22ELV674.js.LEGAL.txt} +1 -1
  3. package/dist/arcgis-coding-components/{BYK6CHN5.js → 2AGXC6X3.js} +2 -2
  4. package/dist/arcgis-coding-components/{JRND7ME3.js → 4FF2A3RJ.js} +2 -2
  5. package/dist/arcgis-coding-components/{JRND7ME3.js.LEGAL.txt → 4FF2A3RJ.js.LEGAL.txt} +1 -1
  6. package/dist/arcgis-coding-components/{NXBT6LHX.js → 5MCZ4DEU.js} +1 -1
  7. package/dist/arcgis-coding-components/{XIWXK35I.js → 5PCJ5OXJ.js} +2 -2
  8. package/dist/arcgis-coding-components/{3GIH7TYM.js.LEGAL.txt → 5PCJ5OXJ.js.LEGAL.txt} +1 -1
  9. package/dist/arcgis-coding-components/{ZCE2TICZ.js → 5XTIPP6S.js} +2 -2
  10. package/dist/arcgis-coding-components/{3VTH3IDD.js.LEGAL.txt → 5XTIPP6S.js.LEGAL.txt} +1 -1
  11. package/dist/arcgis-coding-components/{33TBUAUE.js → 7QZOU3SG.js} +2 -2
  12. package/dist/arcgis-coding-components/{2RT5YY2E.js.LEGAL.txt → 7QZOU3SG.js.LEGAL.txt} +1 -1
  13. package/dist/arcgis-coding-components/{7MJJ5QVF.js → AN22SFXZ.js} +1 -1
  14. package/dist/arcgis-coding-components/{FODHOLWW.js → AV6KERNI.js} +2 -2
  15. package/dist/arcgis-coding-components/{LUQJRND7.js → BUDICIGX.js} +1 -1
  16. package/dist/arcgis-coding-components/BUDICIGX.js.LEGAL.txt +3 -0
  17. package/dist/arcgis-coding-components/{M56EENWJ.js → C2RQ4K6D.js} +2 -2
  18. package/dist/arcgis-coding-components/{OSNFUWDR.js → CEVBQMPI.js} +2 -2
  19. package/dist/arcgis-coding-components/{63UA24F7.js → ETMACDR5.js} +2 -2
  20. package/dist/arcgis-coding-components/ETMACDR5.js.LEGAL.txt +3 -0
  21. package/dist/arcgis-coding-components/{35EXM2LZ.js → FAPNNHZT.js} +2 -2
  22. package/dist/arcgis-coding-components/{3GIH7TYM.js → FHISWEQ3.js} +2 -2
  23. package/dist/arcgis-coding-components/FHISWEQ3.js.LEGAL.txt +3 -0
  24. package/dist/arcgis-coding-components/{BSV64LKV.js → H5F2QYQB.js} +2 -2
  25. package/dist/arcgis-coding-components/H5F2QYQB.js.LEGAL.txt +3 -0
  26. package/dist/arcgis-coding-components/{MPUX43KO.js → HQ2TA72E.js} +2 -2
  27. package/dist/arcgis-coding-components/HQ2TA72E.js.LEGAL.txt +3 -0
  28. package/dist/arcgis-coding-components/{O7MWLKAO.js → J34IYB4H.js} +2 -2
  29. package/dist/arcgis-coding-components/{42W5SSHX.js → J7NXL6SK.js} +3 -3
  30. package/dist/arcgis-coding-components/{42W5SSHX.js.LEGAL.txt → J7NXL6SK.js.LEGAL.txt} +1 -1
  31. package/dist/arcgis-coding-components/{7VNDR7OK.js → JNQDMXF6.js} +2 -2
  32. package/dist/arcgis-coding-components/JNQDMXF6.js.LEGAL.txt +3 -0
  33. package/dist/arcgis-coding-components/{AEMUI6NG.js → M2SFSW6N.js} +2 -2
  34. package/dist/arcgis-coding-components/M2SFSW6N.js.LEGAL.txt +3 -0
  35. package/dist/arcgis-coding-components/{2DR3XZON.js → MRX5NRQB.js} +2 -2
  36. package/dist/arcgis-coding-components/{3VTH3IDD.js → OIHPJRUC.js} +2 -2
  37. package/dist/arcgis-coding-components/OIHPJRUC.js.LEGAL.txt +3 -0
  38. package/dist/arcgis-coding-components/OKRO52PI.js +4 -0
  39. package/dist/arcgis-coding-components/{S3BLTBJY.js → RZ2TRPLZ.js} +1 -1
  40. package/dist/arcgis-coding-components/{KFCJS55M.js → SFKE2V24.js} +2 -2
  41. package/dist/arcgis-coding-components/{LRZ2M4V5.js → SKXEGPVU.js} +2 -2
  42. package/dist/arcgis-coding-components/SKXEGPVU.js.LEGAL.txt +3 -0
  43. package/dist/arcgis-coding-components/{J77QBQVX.js → STHXQ3EI.js} +2 -2
  44. package/dist/arcgis-coding-components/{ACVKTJYE.js → VAQNLOMI.js} +2 -2
  45. package/dist/arcgis-coding-components/{BABAWU5F.js → VLMAKROL.js} +2 -2
  46. package/dist/arcgis-coding-components/VLMAKROL.js.LEGAL.txt +3 -0
  47. package/dist/arcgis-coding-components/{2RT5YY2E.js → W2GLF4T2.js} +2 -2
  48. package/dist/arcgis-coding-components/W2GLF4T2.js.LEGAL.txt +3 -0
  49. package/dist/arcgis-coding-components/{ADM37XDM.js → WVMPLCBF.js} +2 -2
  50. package/dist/arcgis-coding-components/{B4GHHNX5.js → XFMQWCZK.js} +2 -2
  51. package/dist/arcgis-coding-components/{B4GHHNX5.js.LEGAL.txt → XFMQWCZK.js.LEGAL.txt} +1 -1
  52. package/dist/arcgis-coding-components/{ANTKSKAW.js → XRTCN2NA.js} +2 -2
  53. package/dist/arcgis-coding-components/XRTCN2NA.js.LEGAL.txt +3 -0
  54. package/dist/arcgis-coding-components/{DUSTR2JU.js → YCVERVFK.js} +2 -2
  55. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  56. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js.LEGAL.txt +1 -1
  57. package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +1 -1
  58. package/dist/chunks/arcade-defaults.js +1 -1
  59. package/dist/chunks/arcade-executor.js +1 -1
  60. package/dist/chunks/arcade-mode.js +1 -1
  61. package/dist/chunks/arcade-service-accessors.js +1 -1
  62. package/dist/chunks/fields.js +1 -1
  63. package/dist/chunks/language-defaults-base.js +1 -1
  64. package/dist/chunks/markdown.js +1 -1
  65. package/dist/chunks/monaco-importer.js +1 -1
  66. package/dist/chunks/runtime.js +1 -1
  67. package/dist/chunks/sql-expr-defaults.js +1 -1
  68. package/dist/chunks/sql-expr-mode.js +1 -1
  69. package/dist/chunks/useT9n.js +1 -1
  70. package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
  71. package/dist/components/arcgis-arcade-results/customElement.js +1 -1
  72. package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
  73. package/dist/components/arcgis-code-editor/customElement.js +1 -1
  74. package/dist/components/arcgis-editor-variables/customElement.js +1 -1
  75. package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
  76. package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
  77. package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
  78. package/dist/docs/api.json +2 -2
  79. package/dist/docs/docs.json +2 -2
  80. package/dist/docs/web-types.json +1 -1
  81. package/dist/index.js +1 -1
  82. package/dist/loader.js +1 -1
  83. package/package.json +7 -7
  84. package/dist/arcgis-coding-components/63UA24F7.js.LEGAL.txt +0 -3
  85. package/dist/arcgis-coding-components/7VNDR7OK.js.LEGAL.txt +0 -3
  86. package/dist/arcgis-coding-components/AEMUI6NG.js.LEGAL.txt +0 -3
  87. package/dist/arcgis-coding-components/ANTKSKAW.js.LEGAL.txt +0 -3
  88. package/dist/arcgis-coding-components/BABAWU5F.js.LEGAL.txt +0 -3
  89. package/dist/arcgis-coding-components/BSV64LKV.js.LEGAL.txt +0 -3
  90. package/dist/arcgis-coding-components/D52GZMTV.js +0 -4
  91. package/dist/arcgis-coding-components/LRZ2M4V5.js.LEGAL.txt +0 -3
  92. package/dist/arcgis-coding-components/LUQJRND7.js.LEGAL.txt +0 -3
  93. package/dist/arcgis-coding-components/MPUX43KO.js.LEGAL.txt +0 -3
  94. package/dist/arcgis-coding-components/WOA4MX3A.js.LEGAL.txt +0 -3
  95. package/dist/arcgis-coding-components/XIWXK35I.js.LEGAL.txt +0 -3
  96. package/dist/arcgis-coding-components/ZCE2TICZ.js.LEGAL.txt +0 -3
  97. /package/dist/arcgis-coding-components/{BYK6CHN5.js.LEGAL.txt → 2AGXC6X3.js.LEGAL.txt} +0 -0
  98. /package/dist/arcgis-coding-components/{7MJJ5QVF.js.LEGAL.txt → 5MCZ4DEU.js.LEGAL.txt} +0 -0
  99. /package/dist/arcgis-coding-components/{D52GZMTV.js.LEGAL.txt → AN22SFXZ.js.LEGAL.txt} +0 -0
  100. /package/dist/arcgis-coding-components/{FODHOLWW.js.LEGAL.txt → AV6KERNI.js.LEGAL.txt} +0 -0
  101. /package/dist/arcgis-coding-components/{M56EENWJ.js.LEGAL.txt → C2RQ4K6D.js.LEGAL.txt} +0 -0
  102. /package/dist/arcgis-coding-components/{OSNFUWDR.js.LEGAL.txt → CEVBQMPI.js.LEGAL.txt} +0 -0
  103. /package/dist/arcgis-coding-components/{35EXM2LZ.js.LEGAL.txt → FAPNNHZT.js.LEGAL.txt} +0 -0
  104. /package/dist/arcgis-coding-components/{O7MWLKAO.js.LEGAL.txt → J34IYB4H.js.LEGAL.txt} +0 -0
  105. /package/dist/arcgis-coding-components/{2DR3XZON.js.LEGAL.txt → MRX5NRQB.js.LEGAL.txt} +0 -0
  106. /package/dist/arcgis-coding-components/{KFCJS55M.js.LEGAL.txt → OKRO52PI.js.LEGAL.txt} +0 -0
  107. /package/dist/arcgis-coding-components/{NXBT6LHX.js.LEGAL.txt → RZ2TRPLZ.js.LEGAL.txt} +0 -0
  108. /package/dist/arcgis-coding-components/{S3BLTBJY.js.LEGAL.txt → SFKE2V24.js.LEGAL.txt} +0 -0
  109. /package/dist/arcgis-coding-components/{J77QBQVX.js.LEGAL.txt → STHXQ3EI.js.LEGAL.txt} +0 -0
  110. /package/dist/arcgis-coding-components/{ACVKTJYE.js.LEGAL.txt → VAQNLOMI.js.LEGAL.txt} +0 -0
  111. /package/dist/arcgis-coding-components/{ADM37XDM.js.LEGAL.txt → WVMPLCBF.js.LEGAL.txt} +0 -0
  112. /package/dist/arcgis-coding-components/{DUSTR2JU.js.LEGAL.txt → YCVERVFK.js.LEGAL.txt} +0 -0
@@ -5,7 +5,7 @@
5
5
  ${a}`}else c+=`
6
6
  \u{1F517} See ${o} for more details.`;aG(e,c,s)}}var OP,RP=N(()=>{Ut();OP=new WeakMap});function vx(e){return e!=null&&typeof e[Symbol.iterator]=="function"}var DP=N(()=>{});function zw(e){return e||"_default_"}function FP(e){for(let t of e)t instanceof of?t.removeAll():t.remove()}function $P(e){return e!=null&&(!!e.remove||e instanceof of)}var of,UP=N(()=>{DP();of=class{constructor(){this._groups=new Map}destroy(){this.removeAll()}get size(){let t=0;return this._groups.forEach(r=>{t+=r.length}),t}add(t,r){if(vx(t)){let n=this._getOrCreateGroup(r);for(let i of t)$P(i)&&n.push(i)}else $P(t)&&this._getOrCreateGroup(r).push(t);return this}forEach(t,r){if(typeof t=="function")this._groups.forEach(n=>n.forEach(t));else{let n=this._getGroup(t);n&&r&&n.forEach(r)}}has(t){return this._groups.has(zw(t))}remove(t){if(typeof t!="string"&&vx(t)){for(let r of t)this.remove(r);return this}return this.has(t)?(FP(this._getGroup(t)),this._groups.delete(zw(t)),this):this}removeAll(){return this._groups.forEach(FP),this._groups.clear(),this}removeReference(t){return this._groups.delete(t),this}_getOrCreateGroup(t){if(this.has(t))return this._getGroup(t);let r=[];return this._groups.set(zw(t),r),r}_getGroup(t){return this._groups.get(zw(t))}}});function Bh(e){return e?.destroy(),null}function Jl(e){return e?.remove(),null}function VP(e){return e?.abort(),null}var Qa=N(()=>{});function lG(e){return e?.release&&typeof e.release=="function"}function uG(e){return e?.acquire&&typeof e.acquire=="function"}var po,Gh=N(()=>{po=class e{constructor(t,r,n,i=1,o=0){this._ctor=t,this._acquireFunction=r,this._releaseFunction=n,this.allocationSize=i,this._pool=new Array(o),this._initialSize=o;for(let s=0;s<o;s++)this._pool[s]=new this._ctor;this.allocationSize=Math.max(i,1)}destroy(){this.prune(0)}acquire(...t){let r;if(e.test.disabled)r=new this._ctor;else{if(this._pool.length===0){let n=this.allocationSize;for(let i=0;i<n;i++)this._pool[i]=new this._ctor}r=this._pool.pop()}return this._acquireFunction?this._acquireFunction(r,...t):uG(r)&&r.acquire(...t),r}release(t){t&&!e.test.disabled&&(this._releaseFunction?this._releaseFunction(t):lG(t)&&t.release(),this._pool.push(t))}prune(t=this._initialSize){if(!(t>=this._pool.length)){for(let r=t;r<this._pool.length;++r){let n=this._pool[r];this._dispose(n)}this._pool.length=t}}_dispose(t){t.dispose&&typeof t.dispose=="function"&&t.dispose()}};po.test={disabled:!1}});var Ww,zP=N(()=>{Pp();Ww=class{constructor(t,r){this._observers=t,this._observer=r}remove(){a6(this._observers,this._observer)}}});var sf,dG,_x=N(()=>{Qn();zP();sf=class{constructor(){this._observers=null,this.destroyed=!1}observe(t){if(this.destroyed||t.destroyed)return dG;this._observers==null&&(this._observers=[]);let r=this._observers,n=!1,i=!1,o=r.length;for(let s=0;s<o;++s){let c=r[s];if(c.destroyed)i=!0;else if(c===t){n=!0;break}}return n||(r.push(t),i&&this._removeDestroyedObservers()),new Ww(r,t)}_removeDestroyedObservers(){let t=this._observers;if(!t||t.length===0)return;let r=t.length,n=0;for(let i=0;i<r;++i){for(;i+n<r&&t[i+n].destroyed;)++n;if(n>0){if(!(i+n<r))break;t[i]=t[i+n]}}t.length=r-n}destroy(){if(this.destroyed)return;this.destroyed=!0;let t=this._observers;if(t!=null){for(let r of t)r.onCommitted();this._observers=null}}},dG=bt()});function Bw(e){switch(e){case"defaults":return dt.DEFAULTS;case"service":return dt.SERVICE;case"portal-item":return dt.PORTAL_ITEM;case"web-scene":return dt.WEB_SCENE;case"web-map":return dt.WEB_MAP;case"link-chart":return dt.LINK_CHART;case"user":return dt.USER;default:return null}}function Gw(e){switch(e){case dt.DEFAULTS:return"defaults";case dt.SERVICE:return"service";case dt.PORTAL_ITEM:return"portal-item";case dt.WEB_SCENE:return"web-scene";case dt.WEB_MAP:return"web-map";case dt.LINK_CHART:return"link-chart";case dt.USER:return"user"}}function WP(e){return Gw(e)}var dt,jue,Xl=N(()=>{(function(e){e[e.DEFAULTS=0]="DEFAULTS",e[e.COMPUTED=1]="COMPUTED",e[e.SERVICE=2]="SERVICE",e[e.PORTAL_ITEM=3]="PORTAL_ITEM",e[e.WEB_SCENE=4]="WEB_SCENE",e[e.WEB_MAP=5]="WEB_MAP",e[e.LINK_CHART=6]="LINK_CHART",e[e.USER=7]="USER"})(dt||(dt={}));jue=dt.USER+1});var jh,BP=N(()=>{_x();Xl();Ko();Ow();$h();jh=class extends sf{constructor(t,r){super(),this.propertyName=t,this.metadata=r,this.trackingTarget=new Qo(this),this.flags=0,this.flags=lt.Dirty|(r.nonNullable?lt.NonNullable:0)|(r.hasOwnProperty("value")?lt.HasDefaultValue:0)|(r.get===void 0?lt.DepTrackingInitialized:0)|(r.dependsOn===void 0?lt.AutoTracked:0)}destroy(){this.flags&lt.Dirty&&this.onCommitted(),super.destroy(),this.trackingTarget.destroy()}getComputed(t){t.mutable&&$e(this);let r=t.store,n=this.propertyName,i=this.flags,o=r.get(n);if(i&lt.Computing||~i&lt.Dirty&&r.has(n))return o;this.flags|=lt.Computing;let s=t.host,c;i&lt.AutoTracked?c=uo(this.trackingTarget,this.metadata.get,s):(lx(s,this),c=this.metadata.get.call(s)),this.flags|=lt.DepTrackingInitialized,r.set(n,c,dt.COMPUTED);let a=r.get(n);return a===o?this.flags&=~lt.Dirty:lP(this.commit,this),this.flags&=~lt.Computing,a}notifyChange(){this.onInvalidated(),this.onCommitted()}invalidate(){this.onInvalidated()}commit(){this.flags&=~lt.Dirty,this.onCommitted()}onInvalidated(){~this.flags&lt.Overridden&&(this.flags|=lt.Dirty);let t=this._observers;if(t&&t.length>0)for(let r of t)r.onInvalidated()}onCommitted(){let t=this._observers;if(t&&t.length>0){let r=t.slice();for(let n of r)n.onCommitted()}}}});var jw,GP=N(()=>{xn();Xl();jw=class e{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(t){let r=new e;return this._values.forEach((n,i)=>{t&&t.has(i)||r.set(i,Vt(n))}),r}get(t){return this._values.get(t)}originOf(){return dt.USER}keys(){return[...this._values.keys()]}set(t,r){this._values.set(t,r)}delete(t){this._values.delete(t)}has(t){return this._values.has(t)}forEach(t){this._values.forEach(t)}}});function qw(e,t,r){return e!==void 0}function jP(e,t,r,n){return e!==void 0&&(!(r==null&&e.flags&lt.NonNullable)||(n.lifecycle,Yr.INITIALIZING,!1))}var Hw,xx,Sx,qP=N(()=>{Ut();xn();zt();Gh();Fh();BP();Xl();GP();Ko();Ow();$h();Hw=class{constructor(t){this.host=t,this.propertiesByName=new Map,this.ctorArgs=null,this.lifecycle=Yr.INITIALIZING,this.store=new jw,this.mutable=!0,this._origin=dt.USER;let r=this.host.constructor.__accessorMetadata__;for(let n in r){let i=new jh(n,r[n]);this.propertiesByName.set(n,i)}this.metadata=r}initialize(){this.lifecycle=Yr.CONSTRUCTING}constructed(){this.lifecycle=Yr.CONSTRUCTED}destroy(){this.lifecycle=Yr.DESTROYED,this.propertiesByName.forEach(t=>t.destroy())}get initialized(){return this.lifecycle!==Yr.INITIALIZING}get(t){let r=this.propertiesByName.get(t);if(r.metadata.get)return r.getComputed(this);this.mutable&&$e(r);let n=this.store;return n.has(t)?n.get(t):r.metadata.value}originOf(t){let r=this.store.originOf(t);if(r===void 0){let n=this.propertiesByName.get(t);if(n!==void 0&&n.flags&lt.HasDefaultValue)return"defaults"}return Gw(r)}has(t){return this.propertiesByName.has(t)&&this.store.has(t)}keys(){return[...this.propertiesByName.keys()]}internalGet(t){let r=this.propertiesByName.get(t);if(qw(r))return this.store.has(t)?this.store.get(t):r.metadata.value}internalSet(t,r){let n=this.propertiesByName.get(t);qw(n)&&this._internalSet(n,r)}getDependsInfo(t,r,n){let i=this.propertiesByName.get(r);if(!qw(i))return"";let o=new Qo,s=uo(o,()=>i.metadata.get?.call(t)),c=`${n}${t.declaredClass.split(".").pop()}.${r}: ${s}
7
7
  `,a=o.accessed??new Set;if(a.size===0)return c;n+=" ";for(let d of a)d instanceof jh&&(c+=`${n}${d.propertyName}: undefined
8
- `);return c}setAtOrigin(t,r,n){let i=this.propertiesByName.get(t);if(qw(i))return this._setAtOrigin(i,r,n)}isOverridden(t){let r=this.propertiesByName.get(t);return r!==void 0&&!!(r.flags&lt.Overridden)}clearOverride(t){let r=this.propertiesByName.get(t);r&&r.flags&lt.Overridden&&(r.flags&=~lt.Overridden,r.notifyChange())}override(t,r){let n=this.propertiesByName.get(t);if(!jP(n,t,r,this))return;let i=n.metadata.cast;if(i){let o=this._cast(i,r),{valid:s,value:c}=o;if(Sx.release(o),!s)return;r=c}n.flags|=lt.Overridden,this._internalSet(n,r)}set(t,r){let n=this.propertiesByName.get(t);if(!jP(n,t,r,this))return;let i=n.metadata.cast;if(i){let s=this._cast(i,r),{valid:c,value:a}=s;if(Sx.release(s),!c)return;r=a}let o=n.metadata.set;o?o.call(this.host,r):this._internalSet(n,r)}setDefaultOrigin(t){this._origin=Bw(t)}getDefaultOrigin(){return Gw(this._origin)}notifyChange(t){let r=this.propertiesByName.get(t);r!==void 0&&r.notifyChange()}invalidate(t){let r=this.propertiesByName.get(t);r!==void 0&&r.invalidate()}commit(t){let r=this.propertiesByName.get(t);r!==void 0&&r.commit()}_internalSet(t,r){let n=this.lifecycle!==Yr.INITIALIZING?this._origin:dt.DEFAULTS;this._setAtOrigin(t,r,n)}_setAtOrigin(t,r,n){let i=this.store,o=t.propertyName;i.has(o,n)&&Ym(r,i.get(o))&&~t.flags&lt.Overridden&&n===i.originOf(o)||(t.invalidate(),i.set(o,r,n),t.commit(),cx(this.host,t))}_cast(t,r){let n=Sx.acquire();return n.valid=!0,n.value=r,t&&(n.value=t.call(this.host,r,n)),n}},xx=class{constructor(){this.value=null,this.valid=!0}acquire(){this.valid=!0}release(){this.value=null}},Sx=new po(xx)});function Ex(){return pG}var pG,HP,ZP=N(()=>{(function(e){e[e.Ignore=0]="Ignore",e[e.Destroy=1]="Destroy",e[e.ThrowError=2]="ThrowError"})(HP||(HP={}))});function fG(e){e.length=0}var Un,Cx,Zw=N(()=>{Gh();Un=class{constructor(t=50,r=50){this._pool=new po(Array,void 0,fG,r,t)}acquire(){return this._pool.acquire()}release(t){this._pool.release(t)}prune(){this._pool.prune(0)}static acquire(){return Cx.acquire()}static release(t){return Cx.release(t)}static prune(){Cx.prune()}},Cx=new Un(100)});var Yw,YP=N(()=>{Gh();Yw=class extends po{constructor(){super(...arguments),this._set=new Set}destroy(){super.destroy(),this._set=null}acquire(...t){let r=super.acquire(...t);return this._set.delete(r),r}release(t){t&&!this._set.has(t)&&(super.release(t),this._set.add(t))}_dispose(t){this._set.delete(t),super._dispose(t)}}});function Tx(e){Jw.push(e),Jw.length===1&&queueMicrotask(()=>{let t=Jw.slice();Jw.length=0;for(let r of t)r()})}var Jw,JP=N(()=>{Jw=[]});var qh,XP=N(()=>{qh=class{constructor(t,r=30){this.name=t,this._counter=0,this._samples=new Array(r)}push(t){t!=null&&(this._samples[++this._counter%this._samples.length]=t)}set(t){t!=null&&(this._samples[this._counter%this._samples.length]=t)}get median(){return this._samples.slice().sort((t,r)=>t-r)[Math.floor(this._samples.length/2)]}get average(){return this._samples.reduce((t,r)=>t+r,0)/this._samples.length}get last(){return this._samples[this._counter%this._samples.length]}}});function mG(e){return{setTimeout:(t,r)=>{let n=e.setTimeout(t,r);return bt(()=>e.clearTimeout(n))}}}var QP,KP=N(()=>{Qn();QP=mG(globalThis)});function Hh(e){return hG(e)||eM(e)}function hG(e){return e!=null&&typeof e=="object"&&"on"in e&&typeof e.on=="function"}function eM(e){return e!=null&&typeof e=="object"&&"addEventListener"in e&&typeof e.addEventListener=="function"}function Ka(e,t,r){if(!Hh(e))throw new TypeError("target is not a Evented or EventTarget object");return eM(e)?gG(e,t,r):e.on(t,r)}function gG(e,t,r,n){if(Array.isArray(t)){let i=t.slice();for(let o of i)e.addEventListener(o,r,n);return bt(()=>{for(let o of i)e.removeEventListener(o,r,n)})}return e.addEventListener(t,r,n),bt(()=>e.removeEventListener(t,r,n))}function Px(e,t,r){if(!Hh(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);let n=Ka(e,t,i=>{n.remove(),r.call(e,i)});return n}var Zh=N(()=>{Qn()});function Pn(e="Aborted"){return new Be("AbortError",e)}function wG(e,t="Aborted"){if(fo(e))throw Pn(t)}function Yh(e){return e instanceof AbortSignal?e:e?.signal??void 0}function fo(e){let t=Yh(e);return t!=null&&t.aborted}function Mx(e){if(!Jh(e))throw e}function Vn(e,t){let r=Yh(e);if(r!=null){if(!r.aborted)return Px(r,"abort",()=>t());t()}}function rM(e,t){let r=Yh(e);if(r!=null)return wG(r),Px(r,"abort",()=>t(Pn()))}function Jh(e){return e?.name==="AbortError"}function yG(e,t=void 0,r){let n=new AbortController;return Vn(r,()=>n.abort()),new Promise((i,o)=>{let s=setTimeout(()=>{s=0,i(t)},e);Vn(n,()=>{s&&(clearTimeout(s),o(Pn()))})})}function Ax(e){return e&&typeof e.then=="function"}function tM(e){return Ax(e)?e:Promise.resolve(e)}function nM(e,t=-1){let r,n,i,o,s=null,c=(...a)=>{if(r){n=a,o&&o.reject(Pn()),o=Tn();let v=o.promise;if(s){let E=s;s=null,E.abort()}return v}if(i=o||Tn(),o=null,t>0){let v=new AbortController;r=tM(e(...a,v.signal));let E=r;yG(t).then(()=>{r===E&&(o?v.abort():s=v)})}else r=1,r=tM(e(...a));let d=()=>{let v=n;n=i=r=s=null,v!=null&&c(...v)},h=r,g=i;return h.then(d,d),h.then(g.resolve,g.reject),g.promise};return c}function Tn(){let e,t,r=new Promise((i,o)=>{e=i,t=o}),n=i=>{e(i)};return n.resolve=i=>e(i),n.reject=i=>t(i),n.timeout=(i,o)=>QP.setTimeout(()=>n.reject(o),i),n.promise=r,n}var ki=N(()=>{KP();En();Zh();zt();Qa()});var iM=N(()=>{});function bG(){Qh!=null&&(cancelAnimationFrame(Qh),Qh=requestAnimationFrame(aM))}function cf(e){let t=new Ix(e);return kx.push(t),Qw.willDispatch||(Qw.willDispatch=!0,Tx(lM)),t}function vG(e=!1){af.forAll(t=>{t.removed=!0}),e&&cM()}function aM(){let e=performance.now();Qh=null,Qh=af.some(r=>!r.paused&&!r.removed)?requestAnimationFrame(aM):null,Qw.executeFrameTasks(e)}function _G(e){let t=e-oM;oM=e;let r=sM>0?sM:1e3/60,n=Math.max(0,t-r);Xh.time=e,Xh.frameDuration=r-n;for(let i=0;i<Lx.length;i++){let o=performance.now(),s=Lx[i];af.forAll(c=>{c.paused||c.removed||(i===0&&c.ticks++,c.phases[s]&&(Xh.elapsedFrameTime=performance.now()-e,Xh.deltaTime=c.ticks===0?0:t,c.phases[s]?.call(c,Xh)))}),EG[i].push(performance.now()-o)}cM(),CG.push(performance.now()-e)}function cM(){af.forAll(e=>{e.removed&&Xw.push(e)}),af.removeUnorderedMany(Xw.data,Xw.length),Xw.clear()}function lM(){for(;kx.length;){let e=kx.shift();e.isActive&&e.callback()}Qw.willDispatch=!1}function SG(e=1,t){let r=Tn(),n=()=>{fo(t)?r.reject(Pn()):e===0?r():(--e,Tx(()=>n()))};return n(),r.promise}function xG(e){return SG(1,e)}async function uM(e){await xG(e),await new Promise(t=>requestAnimationFrame(()=>{e?.aborted||t()}))}var Ix,oM,sM,Xh,Lx,kx,af,Qw,Qh,Xw,EG,CG,Kh=N(()=>{JP();XP();eS();ki();iM();Ix=class{constructor(t){this.callback=t,this.isActive=!0}remove(){this.isActive=!1}},oM=0,sM=0,Xh={time:0,deltaTime:0,elapsedFrameTime:0,frameDuration:0},Lx=["prepare","preRender","render","postRender","update","finish"],kx=[],af=new Na;Qw={frameTasks:af,willDispatch:!1,clearFrameTasks:vG,dispatch:lM,executeFrameTasks:_G,reschedule:bG};Qh=null;Xw=new Na;EG=Lx.map(e=>new qh(e)),CG=new qh("total")});function dM(e,t){if(!t)return e;for(let r of t)r!=null&&e.add(r);return e}function Kw(e,t){let r=new Set;return dM(r,e),dM(r,t),r}var ey=N(()=>{});function ty(){return++TG}var TG,pM=N(()=>{TG=0});function PG(){}var Ql,Ox,fM,Nx=N(()=>{$h();Ql=class extends Qo{constructor(t){super(new Ox(t)),this._observer&&fM.register(this,new WeakRef(this._observer),this)}destroy(){this._observer&&fM.unregister(this._observer),this.accessed?.clear(),this.clear(),this._observer?.destroy()}},Ox=class{constructor(t){this._notify=t,this._invalidCount=0,this.destroyed=!1}onInvalidated(){this._invalidCount++}onCommitted(){if(this.destroyed)return;let t=this._invalidCount;if(t===1)return this._invalidCount=0,void this._notify();this._invalidCount=t>0?t-1:0}destroy(){this.destroyed=!0,this._notify=PG}},fM=new FinalizationRegistry(e=>{e.deref()?.destroy()})});function Dx(e,t){let r=new Ql(o),n=null,i=!1;function o(){if(!r||i)return;if(Rx)return void MG(o);let c=n;r.clear(),Rx=!0,i=!0,n=uo(r,e),i=!1,Rx=!1,t(n,c),AG()}function s(){r&&(r.destroy(),r=null,n=null)}return i=!0,n=uo(r,e),i=!1,bt(s)}function Fx(e,t){let r=new Ql(i),n=null;function i(){t(n,s)}function o(){r&&(r.destroy(),r=null),n=null}function s(){return r?(r.clear(),n=uo(r,e),n):null}return s(),bt(o)}function MG(e){ry.includes(e)||ry.unshift(e)}function AG(){for(;ry.length;)ry.pop()()}var Rx,ry,$x=N(()=>{Qn();Ko();Nx();Rx=!1,ry=[]});function oy(e){ec.delete(e),ec.add(e),iy||(iy=cf(LG))}function IG(e){if(e.removed)return;let t=e.oldValue,r=e.getValue();e.equals(t,r)||(e.oldValue=r,e.notify(r,t))}function mM(e){for(let t of ec.values())t.target===e&&(t.removed=!0)}function LG(){let e=10;for(;iy&&e--;){iy=null;let t=kG(),r=ny.acquire();for(let n of t){let i=n.uid;IG(n),i===n.uid&&n.removed&&r.push(n)}for(let n of ec)n.removed&&(r.push(n),ec.delete(n));for(let n of r)Kl.pool.release(n);ny.release(r),ny.release(t),OG.forEach(n=>n())}}function kG(){let e=ny.acquire();e.length=ec.size;let t=0;for(let r of ec)e[t]=r,++t;return ec.clear(),e}function NG(e,t,r){let n=rx(e,t,r,(i,o,s)=>{let c,a,d=Fx(()=>Zl(i,o),(h,g)=>{i.__accessor__?.lifecycle===Yr.DESTROYED||c&&c.uid!==a?n.remove():(c||(c=Kl.acquireUntracked(h,s,g,i,o),a=c.uid),oy(c))});return bt(()=>{d.remove(),c&&(c.uid!==a||c.removed||(c.removed=!0,oy(c)),c=null),n=d=null})});return n}function RG(e,t,r){let n=rx(e,t,r,(i,o,s)=>{let c=!1;return Dx(()=>Zl(i,o),(a,d)=>{i.__accessor__.lifecycle!==Yr.DESTROYED?c||(c=!0,Ym(d,a)||s.call(i,a,d,o,i),c=!1):n.remove()})});return n}function hM(e,t,r,n=!1){return e.__accessor__&&e.__accessor__.lifecycle!==Yr.DESTROYED?n?RG(e,t,r):NG(e,t,r):bt()}function DG(e,t,r){let n,i,o=Fx(e,(s,c)=>{n&&n.uid!==i?o.remove():(n||(n=Kl.acquireTracked(s,t,c,r),i=n.uid),oy(n))});return bt(()=>{o.remove(),n&&(n.uid!==i||n.removed||(n.removed=!0,oy(n)),n=null),o=null})}function FG(e,t,r){let n=!1;return Dx(e,(i,o)=>{n||(n=!0,r(o,i)||t(i,o),n=!1)})}function gM(e,t,r=!1,n=X0){return r?FG(e,t,n):DG(e,t,n)}var eg,Kl,ny,ec,iy,OG,Ux=N(()=>{Zw();Qn();xn();YP();Kh();ey();pM();Yl();Fh();$x();Ja();(function(e){e[e.Untracked=0]="Untracked",e[e.Tracked=1]="Tracked"})(eg||(eg={}));Kl=class{constructor(){this.uid=ty(),this.removed=!1,this.type=null,this.oldValue=null,this.callback=null,this.getValue=null,this.target=null,this.path=null,this.equals=null}static acquireUntracked(t,r,n,i,o){return this.pool.acquire(eg.Untracked,t,r,n,i,o,Ym)}static acquireTracked(t,r,n,i){return this.pool.acquire(eg.Tracked,t,r,n,null,null,i)}notify(t,r){this.type===eg.Untracked?this.callback.call(this.target,t,r,this.path,this.target):this.callback.call(null,t,r,void 0,void 0)}acquire(t,r,n,i,o,s,c){this.uid=ty(),this.removed=!1,this.type=t,this.oldValue=r,this.callback=n,this.getValue=i,this.target=o,this.path=s,this.equals=c}release(){this.target=this.path=this.oldValue=this.callback=this.getValue=null,this.uid=ty(),this.removed=!0}};Kl.pool=new Yw(Kl);ny=new Un,ec=new Set;OG=new Set});function $G(e){if(e==null)return{value:e};if(Array.isArray(e))return{type:[e[0]],value:null};switch(typeof e){case"object":return e.constructor?.__accessorMetadata__||e instanceof Date?{type:e.constructor,value:e}:e;case"boolean":return{type:Boolean,value:e};case"string":return{type:String,value:e};case"number":return{type:Number,value:e};case"function":return{type:e,value:null};default:return}}var wM,yM,es,Vx,an,eu=N(()=>{RP();UP();zt();Qa();sx();Yl();Fh();tf();qP();ox();ZP();Ux();$n();Cn();es=Symbol("Accessor-Handles"),Vx=Symbol("Accessor-Initialized"),an=class e{static createSubclass(t={}){if(Array.isArray(t))throw new Error("Multi-inheritance unsupported since 4.16");let{properties:r,declaredClass:n,constructor:i}=t;delete t.declaredClass,delete t.properties,delete t.constructor;let o=this;class s extends o{constructor(...a){super(...a),this.inherited=null,i&&i.apply(this,a)}}Xa(s.prototype);for(let c in t){let a=t[c];s.prototype[c]=typeof a=="function"?function(...d){let h=this.inherited,g;this.inherited=function(...v){if(o.prototype[c])return o.prototype[c].apply(this,v)};try{g=a.apply(this,d)}catch(v){throw this.inherited=h,v}return this.inherited=h,g}:t[c]}for(let c in r){let a=$G(r[c]);le(a)(s.prototype,c)}return ut(n)(s)}static freeze(t){return t instanceof e?t.__accessor__.mutable=!1:Object.freeze(t),t}static isFrozen(t){return t instanceof e?!t.__accessor__.mutable:Object.isFrozen(t)}constructor(...t){if(this[wM]=null,this[yM]=!1,this.constructor===e)throw new Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");let r=new Hw(this);Object.defineProperty(this,"__accessor__",{enumerable:!1,value:r}),t.length>0&&(r.ctorArgs=this.normalizeCtorArgs?.apply(this,t)??t[0]),Ex()?.onInstanceConstruct(this)}postscript(){let t=this.__accessor__,r=t.ctorArgs;t.initialize(),r&&(this.set(r),t.ctorArgs=null),t.constructed(),this.initialize(),this[Vx]=!0}initialize(){}[kw](){this[es]=Bh(this[es])}destroy(){this.destroyed||(mM(this),this.__accessor__.destroy(),Ex()?.onInstanceDestroy(this))}[Symbol.dispose](){this.destroy()}get constructed(){return this.__accessor__&&this.__accessor__.initialized||!1}get initialized(){return this[Vx]}get destroyed(){return this.__accessor__?.lifecycle===Yr.DESTROYED||!1}commitProperty(t){Xo(this,t)}hasOwnProperty(t){return this.__accessor__?this.__accessor__.has(t):Object.prototype.hasOwnProperty.call(this,t)}keys(){return this.__accessor__?this.__accessor__.keys():[]}set(t,r){return nf(this,t,r),this}watch(t,r,n){return NP(et.getLogger(this),"`watch` is deprecated in favor of reactiveUtils.watch",{replacement:"reactiveUtils.watch",version:"4.32",see:"https://developers.arcgis.com/javascript/latest/api-reference/esri-core-reactiveUtils.html#watch",warnOnce:!0}),hM(this,t,r,n)}addHandles(t,r){if(this.destroyed){let n=Array.isArray(t)?t:[t];for(let i of n)i.remove();return}(this[es]??(this[es]=new of)).add(t,r)}removeHandles(t){this[es]?.remove(t)}removeAllHandles(){this[es]?.removeAll()}removeHandlesReference(t){this[es]?.removeReference(t)}hasHandles(t){return this[es]?.has(t)===!0}_override(t,r){r===void 0?this.__accessor__.clearOverride(t):this.__accessor__.override(t,r)}_clearOverride(t){return this.__accessor__.clearOverride(t)}_overrideIfSome(t,r){r==null?this.__accessor__.clearOverride(t):this.__accessor__.override(t,r)}_isOverridden(t){return this.__accessor__.isOverridden(t)}notifyChange(t){this.__accessor__.notifyChange(t)}_get(t){return this.__accessor__.internalGet(t)}_set(t,r){return this.__accessor__.internalSet(t,r),this}};wM=es,yM=Vx});var sy,zx,bM=N(()=>{xn();Xl();sy=class e{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(t){let r=new e;return this._values.forEach((n,i)=>{t&&t.has(i)||r.set(i,Vt(n.value),n.origin)}),r}get(t,r){r=this._normalizeOrigin(r);let n=this._values.get(t);return r==null||n?.origin===r?n?.value:void 0}originOf(t){return this._values.get(t)?.origin??dt.USER}keys(t){t=this._normalizeOrigin(t);let r=[...this._values.keys()];return t==null?r:r.filter(n=>this._values.get(n)?.origin===t)}set(t,r,n){if((n=this._normalizeOrigin(n))===dt.DEFAULTS){let i=this._values.get(t);if(i?.origin!=null&&i.origin>n)return}this._values.set(t,new zx(r,n))}delete(t,r){(r=this._normalizeOrigin(r))!=null&&this._values.get(t)?.origin!==r||this._values.delete(t)}has(t,r){return(r=this._normalizeOrigin(r))!=null?this._values.get(t)?.origin===r:this._values.has(t)}forEach(t){this._values.forEach(({value:r},n)=>t(r,n))}_normalizeOrigin(t){if(t!=null)return t===dt.DEFAULTS?t:dt.USER}},zx=class{constructor(t,r){this.value=t,this.origin=r}}});function vM(e,t,r){t.keys().forEach(i=>{r.set(i,t.get(i),dt.DEFAULTS)});let n=e.metadata;Object.keys(n).forEach(i=>{e.internalGet(i)&&r.set(i,e.internalGet(i),dt.DEFAULTS)})}var _M=N(()=>{Xl()});function UG(e,t,r){if(!e?.read||e.read.enabled===!1||!e.read.source)return!1;let n=e.read.source;if(typeof n=="string"){if(n===t||n.includes(".")&&n.indexOf(t)===0&&nx(n,r))return!0}else for(let i of n)if(i===t||i.includes(".")&&i.indexOf(t)===0&&nx(i,r))return!0;return!1}function VG(e){return e&&(!e.read||e.read.enabled!==!1&&!e.read.source)}function zG(e,t,r,n,i){let o=Uw(t[r],i);VG(o)&&(e[r]=!0);for(let s of Object.getOwnPropertyNames(t))o=Uw(t[s],i),UG(o,r,n)&&(e[s]=!0)}function WG(e,t,r,n){let i=r.metadata,o=MP(i[t],n),s=o?.default;if(s===void 0)return;let c=typeof s=="function"?s.call(e,t,n):s;c!==void 0&&r.set(t,c)}function SM(e,t,r=BG){if(!t||typeof t!="object")return;let n=Jo(e),i=n.metadata,o={};for(let s of Object.getOwnPropertyNames(t))zG(o,i,s,t,r);n.setDefaultOrigin(r.origin);for(let s of Object.getOwnPropertyNames(o)){let c=Uw(i[s],r).read,a=c?.source,d;d=a&&typeof a=="string"?Zl(t,a):t[s],c?.reader&&(d=c.reader.call(e,d,t,r)),d!==void 0&&n.set(s,d)}if(!r||!r.ignoreDefaults){n.setDefaultOrigin("defaults");for(let s of Object.getOwnPropertyNames(i))o[s]||WG(e,s,n,r)}n.setDefaultOrigin("user")}var BG,xM=N(()=>{Yl();Ja();Vw();BG={origin:"service"}});function GG(e,t,r,n,i){let o={};return t.write?.writer?.call(e,n,o,r,i),o}function jG(e,t,r,n,i,o){if(!n?.write)return!1;let s=Xo(e,r);if(!i&&n.write.overridePolicy){let c=n.write.overridePolicy.call(e,s,r,o??void 0);c!==void 0&&(i=c)}if(i||(i=n.write),!i||i.enabled===!1||i.layerContainerTypes&&o?.layerContainerType&&!i.layerContainerTypes.includes(o.layerContainerType))return!1;if((s===null&&!i.allowNull&&!i.writerEnsuresNonNull||s===void 0)&&i.isRequired){let c=new Be("web-document-write:property-required",`Missing value for required property '${r}' on '${e.declaredClass}'`,{propertyName:r,target:e});return c&&o?.messages?o.messages.push(c):c&&!o&&et.getLogger("esri.core.accessorSupport.write").error(c.name,c.message),!1}return!(s===void 0||s===null&&!i.allowNull&&!i.writerEnsuresNonNull||!i.alwaysWriteDefaults&&(!t.store.multipleOriginsSupported||t.store.originOf(r)===dt.DEFAULTS)&&qG(e,r,o,n,s)||!i.ignoreOrigin&&o?.origin&&t.store.multipleOriginsSupported&&t.store.originOf(r)<Bw(o.origin))}function qG(e,t,r,n,i){let o=n.default;if(o===void 0)return!1;if(n.defaultEquals!=null)return n.defaultEquals(i);if(typeof o=="function"){if(Array.isArray(i)){let s=o.call(e,t,r??void 0);return Z0(s,i)}return!1}return o===i}function EM(e,t,r){if(e&&typeof e.toJSON=="function"&&(!e.toJSON.isDefaultToJSON||!e.write))return Kp(t,e.toJSON(r));let n=Jo(e),i=n.metadata;for(let o in i){let s=AP(i[o],r);if(!jG(e,n,o,s,void 0,r))continue;let c=Xo(e,o),a=GG(e,s,s.write&&typeof s.write.target=="string"?s.write.target:o,c,r);Object.keys(a).length>0&&(t=Kp(t,a),r?.resources?.pendingOperations?.length&&r.resources.pendingOperations.push(Promise.all(r.resources.pendingOperations).then(()=>Kp(t,a,()=>"replace-arrays"))),r?.writtenProperties&&r.writtenProperties.push({target:e,propName:o,oldOrigin:WP(n.store.originOf(o)),newOrigin:r.origin}))}return t}var CM=N(()=>{Pp();En();zt();Yl();Xl();Ja();Vw()});function HG(e,t){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");let r=new this;return r.read(e,t),r}var TM,tg,di,tu=N(()=>{Fn();eu();bM();_M();xM();Ja();CM();Cn();TM=e=>{let t=class extends e{constructor(...r){super(...r);let n=Jo(this),i=n.store,o=new sy;n.store=o,vM(n,i,o)}read(r,n){SM(this,r,n)}write(r,n){return EM(this,r??{},n)}toJSON(r){return this.write({},r)}static fromJSON(r,n){return HG.call(this,r,n)}};return t=ne([ut("esri.core.JSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};tg=class extends TM(an){};tg=ne([ut("esri.core.JSONSupport")],tg),function(e){function t(r){return r&&typeof r=="object"&&"toJSON"in r&&typeof r.toJSON=="function"}e.JSONSupportMixin=TM,e.isSerializable=t}(tg||(tg={}));di=tg});function ay(e,t,r){let n,i;return t===void 0||Array.isArray(t)?(i=e,r=t,n=[void 0]):(i=t,n=Array.isArray(e)?e:[e]),(o,s)=>{let c=o.constructor.prototype;n.forEach(a=>{let d=Lw(o,a,i);d.read&&typeof d.read=="object"||(d.read={}),d.read.reader=c[s],r&&(d.read.source=(d.read.source||[]).concat(r))})}}var Wx=N(()=>{$n()});function ZG(e){let t={};for(let r in e)t[e[r]]=r;return t}function PM(e){let t=[];for(let r in e)t.push(r);return t.sort(),t}function ru(){return function(e,t){return new Bx(e,{ignoreUnknown:!0,...t})}}var Bx,Gx=N(()=>{Ho();Bx=class{constructor(t,r={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=t,this._options=r,this.apiValues=[],this.jsonValues=[],this._apiToJSON=ZG(t),this.apiValues=PM(this._apiToJSON),this.jsonValues=PM(this._jsonToAPI),this.read=n=>this.fromJSON(n),this.write=(n,i,o)=>{let s=this.toJSON(n);s!==void 0&&Is(o,s,i)},this.write.isJSONMapWriter=!0}toJSON(t){if(t==null)return null;if(this._apiToJSON.hasOwnProperty(t)){let r=this._apiToJSON[t];return this._options.useNumericKeys?+r:r}return this._options.ignoreUnknown?null:t}fromJSON(t){return t!=null&&this._jsonToAPI.hasOwnProperty(t)?this._jsonToAPI[t]:this._options.ignoreUnknown?void 0:t}}});var rg,mo,cy,ly,uy=N(()=>{rg=class{constructor(t,r,n,i,o,s){this.semiMajorAxis=t,this.flattening=r,this.outerAtmosphereRimWidth=n,this.atmosphereHeight=i,this.scaleHeight=o;let c=1-this.flattening;this.semiMinorAxis=this.semiMajorAxis*c,this.halfSemiMajorAxis=this.semiMajorAxis/2,this.halfCircumference=Math.PI*this.semiMajorAxis,this.metersPerDegree=this.halfCircumference/180,this.inverseFlattening=1/(1-this.flattening)-1,this.eccentricitySquared=s||2*this.flattening-this.flattening*this.flattening,this.meanRadiusSemiAxes=(2*this.semiMajorAxis+this.semiMinorAxis)/3}get radius(){return this.semiMajorAxis}},mo=new rg(6378137,1/298.257223563,3e5,1e5,.085,.006694379990137799),cy=new rg(3396190,1/169.8944472236118,23e4,6e4,.111),ly=new rg(1737400,0,0,0,0)});function dy(e){return/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}function lf(e){let t=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,r=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,n=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;return t.test(e)?e=e.replace(t,"https://www.arcgis.com"):r.test(e)?e=e.replace(r,"https://devext.arcgis.com"):n.test(e)&&(e=e.replace(n,"https://qaext.arcgis.com")),e}var ng=N(()=>{});function MM(e){let t=new Uint8Array(e),r="";for(let n=0;n<t.length;n++)r+=String.fromCharCode(t[n]);return btoa(r)}var AM=N(()=>{});function ij(){let e=Mn.path,t=e.slice(0,e.lastIndexOf("/")+1);return`${`${Mn.scheme}://${Mn.host}${Mn.port!=null?`:${Mn.port}`:""}`}${t}`}function Ds(e){if(!e)return null;let t={path:null,query:null},r=new cn(e),n=e.indexOf("?");return r.query===null?t.path=e:(t.path=e.slice(0,n),t.query=tc(r.query)),r.fragment&&(t.hash=r.fragment,r.query===null&&(t.path=t.path.slice(0,t.path.length-(r.fragment.length+1)))),t}function tc(e){let t=e.split("&"),r={};for(let n of t){if(!n)continue;let i=n.indexOf("="),o,s;i<0?(o=decodeURIComponent(n),s=""):(o=decodeURIComponent(n.slice(0,i)),s=decodeURIComponent(n.slice(i+1)));let c=r[o];typeof c=="string"&&(c=r[o]=[c]),Array.isArray(c)?c.push(s):r[o]=s}return r}function nu(e,t){return e?t&&typeof t=="function"?Object.keys(e).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r]))).join("&"):Object.keys(e).map(r=>{let n=e[r];if(n==null)return"";let i=encodeURIComponent(r)+"=",o=t?.[r];return o?i+encodeURIComponent(o(n)):Array.isArray(n)?n.map(s=>di.isSerializable(s)?i+encodeURIComponent(JSON.stringify(s)):i+encodeURIComponent(s)).join("&"):di.isSerializable(n)?i+encodeURIComponent(JSON.stringify(n)):i+encodeURIComponent(n)}).filter(r=>r).join("&"):""}function NM(e=!1){let t,r=uf.proxyUrl;if(typeof e=="string"){t=sj(e);let n=pf(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw YG().warn(IM),new Be("urlUtils:proxy-not-set",IM);return t&&jx()&&(r=wy(r)),Ds(r)}function RM(e){let t=e.indexOf("?");return t!==-1?(ig.path=e.slice(0,t),ig.query=e.slice(t+1)):(ig.path=e,ig.query=null),ig}function DM(e){return e=(e=$M(e=dj(e=RM(e).path),!0)).toLowerCase()}function FM(e){let t={proxyUrl:e.proxyUrl,urlPrefix:DM(e.urlPrefix)},r=uf.proxyRules,n=t.urlPrefix,i=r.length;for(let o=0;o<r.length;o++){let s=r[o].urlPrefix;if(n.indexOf(s)===0){if(n.length===s.length)return-1;i=o;break}s.indexOf(n)===0&&(i=o+1)}return r.splice(i,0,t),i}function pf(e){let t=uf.proxyRules,r=DM(e);for(let n=0;n<t.length;n++)if(r.indexOf(t[n].urlPrefix)===0)return t[n]}function Hx(e,t=uf.interceptors){let r=n=>n==null||n instanceof RegExp&&n.test(e)||typeof n=="string"&&e.startsWith(n);if(t){for(let n of t)if(Array.isArray(n.urls)){if(n.urls.some(r))return n}else if(r(n.urls))return n}return null}function ln(e,t,r=!1){if(!e||!t)return!1;let n=qx(e),i=qx(t);return!(!r&&n.scheme!==i.scheme)&&n.host!=null&&i.host!=null&&n.host.toLowerCase()===i.host.toLowerCase()&&n.port===i.port}function fy(e){if(typeof e=="string"){if(!rc(e))return!0;e=qx(e)}if(ln(e,Mn))return!0;let t=uf.trustedServers||[];for(let r=0;r<t.length;r++){let n=oj(t[r]);for(let i=0;i<n.length;i++)if(ln(e,n[i]))return!0}return!1}function oj(e){return py[e]||(Yx(e)||nc(e)?py[e]=[new cn(Oi(e))]:py[e]=[new cn(`http://${e}`),new cn(`https://${e}`)]),py[e]}function Oi(e,t=OM,r){return nc(e)?r?.preserveProtocolRelative?e:Mn.scheme==="http"&&Mn.authority===un(e).slice(2)?`http:${e}`:`https:${e}`:Yx(e)?e:my(e[0]==="/"?uj(t):t,e)}function Zx(e,t=OM,r){if(e==null||!rc(e))return e;let n=Rs(e),i=n.toLowerCase(),o=Rs(t).toLowerCase().replace(/\/+$/,""),s=r?Rs(r).toLowerCase().replace(/\/+$/,""):null;if(s&&o.indexOf(s)!==0)return e;let c=(g,v,E)=>(E=g.indexOf(v,E))===-1?g.length:E,a=c(i,"/",i.indexOf("//")+2),d=-1;for(;i.slice(0,a+1)===o.slice(0,a)+"/"&&(d=a+1,a!==i.length);)a=c(i,"/",a+1);if(d===-1||s&&d<s.length)return e;e=n.slice(d);let h=o.slice(d-1).replaceAll(/[^/]+/g,"").length;if(h>0)for(let g=0;g<h;g++)e=`../${e}`;else e=`./${e}`;return e}function Rs(e){return e=mj(e=fj(e=pj(e=Oi(e=e.trim()))))}function my(...e){let t=e.filter(c6);if(!t?.length)return;let r=[];if(rc(t[0])){let i=t[0],o=i.indexOf("//");o!==-1&&(r.push(i.slice(0,o+1)),cj(t[0])&&(r[0]+="/"),t[0]=i.slice(o+2))}else t[0][0]==="/"&&r.push("");let n=t.reduce((i,o)=>o?i.concat(o.split("/")):i,[]);for(let i=0;i<n.length;i++){let o=n[i];o===".."&&r.length>0&&r[r.length-1]!==".."?r.pop():(!o&&i===n.length-1||o&&(o!=="."||r.length===0))&&r.push(o)}return r.join("/")}function un(e,t=!1){if(e==null||hy(e)||ff(e))return null;let r=e.indexOf("://");if(r===-1&&nc(e))r=2;else{if(r===-1)return null;r+=3}let n=e.indexOf("/",r);return n!==-1&&(e=e.slice(0,n)),t&&(e=$M(e,!0)),e}function rc(e){return nc(e)||Yx(e)}function hy(e){return e!=null&&e.slice(0,5)==="blob:"}function ff(e){return e!=null&&e.slice(0,5)==="data:"}function gy(e){return MM(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function nc(e){return e!=null&&e[0]==="/"&&e[1]==="/"}function Yx(e){return e!=null&&LM.test(e)}function sj(e){return e!=null&&JG.test(e)||Mn.scheme==="https"&&nc(e)}function aj(e){return e!=null&&kM.test(e)||Mn.scheme==="http"&&nc(e)}function cj(e){return e!=null&&XG.test(e)}function wy(e){return nc(e)?`https:${e}`:e.replace(kM,"https:")}function lj(){return Mn.scheme==="http"}function jx(){return Mn.scheme==="https"}function $M(e,t=!1){return nc(e)?e.slice(2):(e=e.replace(LM,""),t&&e.length>1&&e[0]==="/"&&e[1]==="/"&&(e=e.slice(2)),e)}function uj(e){let t=e.indexOf("//"),r=e.indexOf("/",t+2);return r===-1?e:e.slice(0,r)}function dj(e){return e.endsWith("/")?e:`${e}/`}function pj(e){if(/^https?:\/\//i.test(e)){let t=RM(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}function fj(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}function mj(e){let t=uf.httpsDomains;if(!aj(e))return e;let r=e.indexOf("/",7),n;if(n=r===-1?e:e.slice(0,r),n=n.toLowerCase().slice(7),QG.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return lj()&&n===Mn.authority&&!KG.test(e)||(jx()&&n===Mn.authority||t&&t.some(i=>n===i||n.endsWith(`.${i}`))||jx()&&!pf(e))&&(e=wy(e)),e}function yy(e,t,r){if(!(t&&r&&e&&rc(e)))return e;let n=e.indexOf("//"),i=e.indexOf("/",n+2),o=e.indexOf(":",n+2),s=Math.min(i<0?e.length:i,o<0?e.length:o);return e.slice(n+2,s).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,n+2)}${r}${e.slice(s)}`}function qx(e){return typeof e=="string"?new cn(Oi(e)):(e.scheme||(e.scheme=Mn.scheme),e)}function mf(e,t){if(!t)return e;let r=Ds(e),n=r.query||{};for(let[o,s]of Object.entries(t))s!=null&&(n[o]=s);let i=nu(n);return i?`${r.path}?${i}`:r.path}function Jx(e){if(e==null)return null;let t=e.match(hj);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}var YG,uf,IM,LM,kM,JG,XG,QG,KG,ej,tj,cn,py,rj,Mn,nj,OM,df,ig,hj,ts=N(()=>{Ya();Pp();En();tu();zt();ng();AM();YG=()=>et.getLogger("esri.core.urlUtils"),uf=_t.request,IM="esri/config: esriConfig.request.proxyUrl is not set.",LM=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,kM=/^\s*http:/i,JG=/^\s*https:/i,XG=/^\s*file:/i,QG=/:\d+$/,KG=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,ej=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),tj=new RegExp("^((([^[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^[:]*))(:([0-9]+))?$"),cn=class{constructor(t=""){this.uri=t,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let r=this.uri.match(ej);this.scheme=r[2]||(r[1]?"":null),this.authority=r[4]||(r[3]?"":null),this.path=r[5],this.query=r[7]||(r[6]?"":null),this.fragment=r[9]||(r[8]?"":null),this.authority!=null&&(r=this.authority.match(tj),this.user=r[3]||null,this.password=r[4]||null,this.host=r[6]||r[7],this.port=r[9]||null)}toString(){return this.uri}},py={},rj=new cn(_t.applicationUrl),Mn=rj,nj=ij(),OM=nj,df=()=>Mn;ig={path:"",query:""};hj=/([^.]*)\.([^/]*)$/});var UM=N(()=>{});function VM(e){Qt=e}var gj,Qt,wj,og=N(()=>{Ut();ts();UM();Symbol.dispose??(Symbol.dispose=Symbol("Symbol.dispose")),Symbol.asyncDispose??(Symbol.asyncDispose=Symbol("Symbol.asyncDispose"));gj="4.32",wj=gj;wj="4.32.9";de("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),de("host-webworker")});function zM(e,t){let r=t?.url?.path;if(e&&r&&(e=Oi(e,r,{preserveProtocolRelative:!0}),t.portalItem&&t.readResourcePaths)){let n=Zx(e,t.portalItem.itemUrl);n!=null&&bj.test(n)&&t.readResourcePaths.push(t.portalItem.resourceFromPath(n).path)}return(e=Xx(e,t?.portal))&&by.test(e)?jM(e):e}function WM(e,t,r=sg.YES){if((e=e&&by.test(e)?qM(e):e)==null)return e;!rc(e)&&t?.blockedRelativeUrls&&t.blockedRelativeUrls.push(e);let n=Oi(e);if(t){let i=t.verifyItemRelativeUrls?.rootPath||t.url?.path;if(i){let o=Xx(i,t.portal),s=Xx(n,t.portal);n=Zx(s,o,o),n!=null&&n!==s&&n!==e&&t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.writtenUrls.push(n)}}return n=GM(n,t?.portal),rc(n)&&(n=Rs(n)),t?.resources&&t?.portalItem&&!rc(n)&&!ff(n)&&r===sg.YES&&t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(n),compress:!1}),n}function yj(e,t,r){return zM(e,r)}function BM(e,t,r,n){let i=WM(e,n);i!==void 0&&(t[r]=i)}function vj(e){return(e?.match(by)??null)?.[1]??null}function _j(e){let t=e?.match(by)??null;if(t==null)return null;let r=t[2],n=r.lastIndexOf("/");if(n===-1){let{path:s,extension:c}=Jx(r);return{prefix:null,filename:s,extension:c}}let{path:i,extension:o}=Jx(r.slice(n+1));return{prefix:r.slice(0,n),filename:i,extension:o}}function GM(e,t){return t&&!t.isPortal&&t.urlKey&&t.customBaseUrl?yy(e,`${t.urlKey}.${t.customBaseUrl}`,t.portalHostname):e}function Xx(e,t){if(!t||t.isPortal||!t.urlKey||!t.customBaseUrl)return e;let r=`${t.urlKey}.${t.customBaseUrl}`,n=df();return ln(n,`${n.scheme}://${r}`)?yy(e,t.portalHostname,r):yy(e,r,t.portalHostname)}function jM(e){if(!e)return e||null;let t=e;return t&&Qt&&!Qt.findCredential(t)&&(t=lf(t),t=t.replace(/^https?:\/\/www\.arcgis\.com/,"https://cdn.arcgis.com"),t=t.replace(/^https?:\/\/devext\.arcgis\.com/,"https://cdndev.arcgis.com"),t=t.replace(/^https?:\/\/qaext\.arcgis\.com/,"https://cdnqa.arcgis.com")),t}function qM(e){if(!e)return e||null;let t=e;return t=t.replace(/^https?:\/\/cdn\.arcgis\.com/,"https://www.arcgis.com"),t=t.replace(/^https?:\/\/cdndev\.arcgis\.com/,"https://devext.arcgis.com"),t=t.replace(/^https?:\/\/cdnqa\.arcgis\.com/,"https://qaext.arcgis.com"),t&&Qt&&!Qt.findCredential(t)&&(t=lf(t)),t}var by,bj,sg,xfe,HM=N(()=>{og();ts();ng();by=/\/items\/([^/]+)\/resources\/(.*)/,bj=/^\.\/resources\//;(function(e){e[e.YES=0]="YES",e[e.NO=1]="NO"})(sg||(sg={}));xfe=Object.freeze(Object.defineProperty({__proto__:null,get MarkKeep(){return sg},ensureMainOnlineDomain:GM,fromCDNUrl:qM,fromJSON:zM,itemIdFromResourceUrl:vj,prefixAndFilenameFromResourceUrl:_j,read:yj,toCDNUrl:jM,toJSON:WM,write:BM},Symbol.toStringTag,{value:"Module"}))});function Qx(e){let t=un(e,!0);return!!t&&(t=t.toLowerCase(),t.endsWith(".arcgis.com")&&(t.startsWith("services")||t.startsWith("tiles")||t.startsWith("features")))}var Sj,ZM,Afe,Ife,YM=N(()=>{ts();HM();Sj={mapserver:"MapServer",imageserver:"ImageServer",featureserver:"FeatureServer",knowledgegraphserver:"KnowledgeGraphServer",sceneserver:"SceneServer",streamserver:"StreamServer",vectortileserver:"VectorTileServer","3dtilesserver":"3DTilesServer",videoserver:"VideoServer"},ZM=Object.values(Sj),Afe=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(.+?)\\/(${ZM.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),Ife=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/([^/\\n]+)\\/(${ZM.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i")});function Ej(e){let t=un(e,!0);return!!t&&t.endsWith(".arcgis.com")&&!xj.has(t)&&!e.endsWith("/sharing/rest/generateToken")}function JM(e,t){return!(!t&&!_t.apiKey||!Ej(e))}var xj,XM=N(()=>{Ya();ts();xj=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"])});function KM(e,t,r=!1,n){return new Promise((i,o)=>{if(fo(n))return void o(QM());let s=()=>{d(),o(new Error(`Unable to load ${t}`))},c=()=>{let h=e;d(),i(h)},a=()=>{if(!e)return;let h=e;d(),h.src="",o(QM())},d=()=>{de("esri-image-decode")||(e.removeEventListener("error",s),e.removeEventListener("load",c)),s=null,c=null,e=null,n?.removeEventListener("abort",a),a=null,r&&URL.revokeObjectURL(t)};n?.addEventListener("abort",a),de("esri-image-decode")?e.decode().then(c,s):(e.addEventListener("error",s),e.addEventListener("load",c))})}function QM(){try{return new DOMException("Aborted","AbortError")}catch{let e=new Error;return e.name="AbortError",e}}function eA(){return new Error(Cj)}function tA(e){_t.request.crossOriginNoCorsDomains||(_t.request.crossOriginNoCorsDomains={});let t=_t.request.crossOriginNoCorsDomains;for(let r of e)r=r.toLowerCase(),/^https?:\/\//.test(r)?t[un(r)??""]=0:(t[un("http://"+r)??""]=0,t[un("https://"+r)??""]=0)}function rA(e){let t=_t.request.crossOriginNoCorsDomains;if(t){let r=un(e);if(r)return r=r.toLowerCase(),!ln(r,df())&&t[r]<Date.now()-36e5}return!1}async function nA(e){let t=Ds(e);e=t.path,t.query?.f==="json"&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}let r=_t.request.crossOriginNoCorsDomains,n=un(e);r&&n&&(r[n.toLowerCase()]=Date.now())}var Cj,iA=N(()=>{Ya();Ut();ki();ts();Cj="Timeout exceeded"});var oA={};Vo(oA,{execute:()=>Tj});function Tj(e,t){let r=t.responseType;r?r!=="array-buffer"&&r!=="blob"&&r!=="json"&&r!=="native"&&r!=="native-request-init"&&r!=="text"&&(r="text"):r="json",t.responseType=r;let n=t.signal;return delete t.signal,globalThis.invokeStaticMessage("request",{url:e,options:t},{signal:n}).then(async i=>{let o,s,c,a,d;if(i.data)if(i.data instanceof ArrayBuffer){if(!(r!=="json"&&r!=="text"&&r!=="blob"||(o=new Blob([i.data]),r!=="json"&&r!=="text"||(a=await o.text(),r!=="json")))){try{s=JSON.parse(a||null)}catch(h){let g={...h,url:e,requestOptions:t};throw new Be("request:server",h.message,g)}if(s.error){let h={...s.error,url:e,requestOptions:t};throw new Be("request:server",s.error.message,h)}}}else r==="native"&&(i.data.signal=n,c=await fetch(i.data.url,i.data),i.httpStatus=c.status);switch(r){case"blob":d=o;break;case"json":d=s;break;case"native":d=c;break;case"text":d=a;break;default:d=i.data}return{data:d,httpStatus:i.httpStatus,requestOptions:t,ssl:i.ssl,url:e}})}var sA=N(()=>{En()});var ho,vy=N(()=>{Fn();eu();Qn();Cn();ho=class e{constructor(){this._emitter=new e.EventEmitter(this)}emit(t,r){return this._emitter.emit(t,r)}on(t,r){return this._emitter.on(t,r)}once(t,r){return this._emitter.once(t,r)}hasEventListener(t){return this._emitter.hasEventListener(t)}};(function(e){class t{constructor(i=null){this._target=i,this._listenersMap=null}clear(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clear()}emit(i,o){let s=this._listenersMap?.get(i);if(!s)return!1;let c=this._target||this,a=!1;for(let d of s.slice()){let h="deref"in d?d.deref():d;h?h?.call(c,o):a=!0}return a&&(s=s.filter(d=>!("deref"in d)||d.deref()!=null),this._listenersMap.set(i,s)),s.length>0}on(i,o){if(Array.isArray(i)){let c=i.map(a=>this.on(a,o));return ql(c)}if(i.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??(this._listenersMap=new Map);let s=this._listenersMap.get(i)||[];return s.push(o),this._listenersMap.set(i,s),bt(()=>{let c=this._listenersMap?.get(i),a=c?.indexOf(o)??-1;a>=0&&c.splice(a,1)})}once(i,o){let s=this.on(i,c=>{s.remove(),("deref"in o?o.deref():o)?.call(null,c)});return s}hasEventListener(i){let o=this._listenersMap?.get(i);return o!=null&&o.length>0}}e.EventEmitter=t,e.EventedMixin=n=>{let i=class extends n{constructor(){super(...arguments),this._emitter=new t}destroy(){this._emitter.clear()}emit(o,s){return this._emitter.emit(o,s)}on(o,s){return this._emitter.on(o,s)}once(o,s){return this._emitter.once(o,s)}hasEventListener(o){return this._emitter.hasEventListener(o)}};return i=ne([ut("esri.core.Evented")],i),i};let r=class extends an{constructor(){super(...arguments),this._emitter=new ho.EventEmitter(this)}destroy(){this._emitter.clear()}emit(n,i){return this._emitter.emit(n,i)}on(n,i){return this._emitter.on(n,i)}once(n,i){return this._emitter.once(n,i)}hasEventListener(n){return this._emitter.hasEventListener(n)}};r=ne([ut("esri.core.Evented.EventedAccessor")],r),e.EventedAccessor=r})(ho)});var hf,ic,iu,aA,_y=N(()=>{hf="system",ic="unknown",iu="UTC",aA=Intl.DateTimeFormat().resolvedOptions().timeZone});var Kx,cA=N(()=>{Kx=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Bishkek"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Mazatlan"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]])});function Pj(e){return"timeZoneIANA"in e}function Mj(e){return e.startsWith("UTC")}function Sy(e,t=hf){return e?Pj(e)?e.timeZoneIANA:Aj(e,t):t}function Aj(e,t=hf){if(!e||!Kx.has(e.timeZone))return t;let r=Kx.get(e.timeZone);return Mj(e.timeZone)||e.respectsDaylightSaving?r:Ij(r)}function Ij(e){let t=Te.local().setZone(e),r=Math.min(t.set({month:1,day:1}).offset,t.set({month:5}).offset);return r===0?"Etc/UTC":`Etc/GMT${Pt.instance(-r).formatOffset(0,"narrow")}`}var e4=N(()=>{_y();cA();Dn()});function Nj(e){let t=t4.get(e);if(!t){let r=Ii(),n=kj[r]||r,i=Rj(e.timeZone??hf),o={...e,timeZone:i};t=new Intl.DateTimeFormat(n,o),t4.set(e,t)}return t}function gf(e,t=Oj){return Nj(t).format(e)}function Rj(e){switch(e){case hf:return aA;case ic:return iu;default:return e}}var rs,ag,cg,lg,oc,ou,lA,ug,dg,Lj,sme,kj,t4,Oj,r4=N(()=>{Gx();Ha();_y();e4();Dn();rs={year:"numeric",month:"numeric",day:"numeric"},ag={year:"numeric",month:"long",day:"numeric"},cg={year:"numeric",month:"short",day:"numeric"},lg={year:"numeric",month:"long",weekday:"long",day:"numeric"},oc={hour:"numeric",minute:"numeric"},ou={...oc,second:"numeric"},lA={hourCycle:"h23"},ug={...oc,...lA},dg={...ou,...lA},Lj={"short-date":rs,"short-date-short-time":{...rs,...oc},"short-date-short-time-24":{...rs,...ug},"short-date-long-time":{...rs,...ou},"short-date-long-time-24":{...rs,...dg},"short-date-le":rs,"short-date-le-short-time":{...rs,...oc},"short-date-le-short-time-24":{...rs,...ug},"short-date-le-long-time":{...rs,...ou},"short-date-le-long-time-24":{...rs,...dg},"long-month-day-year":ag,"long-month-day-year-short-time":{...ag,...oc},"long-month-day-year-short-time-24":{...ag,...ug},"long-month-day-year-long-time":{...ag,...ou},"long-month-day-year-long-time-24":{...ag,...dg},"day-short-month-year":cg,"day-short-month-year-short-time":{...cg,...oc},"day-short-month-year-short-time-24":{...cg,...ug},"day-short-month-year-long-time":{...cg,...ou},"day-short-month-year-long-time-24":{...cg,...dg},"long-date":lg,"long-date-short-time":{...lg,...oc},"long-date-short-time-24":{...lg,...ug},"long-date-long-time":{...lg,...ou},"long-date-long-time-24":{...lg,...dg},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":oc,"long-time":ou},sme=ru()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),kj={ar:"ar-u-nu-latn-ca-gregory"},t4=new WeakMap,Oj=Lj["short-date-short-time"];Zp(()=>{t4=new WeakMap})});function Fj(e){let t=e||uA;if(!xy.has(t)){let r=Ii(),n=Dj[Ii()]||r;xy.set(t,new Intl.NumberFormat(n,e))}return xy.get(t)}function wf(e,t){return Object.is(e,-0)&&(e=0),Fj(t).format(e)}var Dj,xy,uA,n4=N(()=>{Ha();Dj={ar:"ar-u-nu-latn"},xy=new WeakMap,uA={};Zp(()=>{xy=new WeakMap,uA={}})});function i4(e,t,r={}){let{format:n={}}=r;return Zo(e,i=>$j(i,t,n))}function $j(e,t,r){let n,i,o=e.indexOf(":");if(o===-1?n=e.trim():(n=e.slice(0,o).trim(),i=e.slice(o+1).trim()),!n)return"";let s=Ti(n,t);if(s==null)return"";let c=(i?r?.[i]:null)??r?.[n];return c?Uj(s,c):i?Vj(s,i):o4(s)}function Uj(e,t){switch(t.type){case"date":return gf(e,t.intlOptions);case"number":return wf(e,t.intlOptions);default:return dA().warn("missing format descriptor for key {key}"),o4(e)}}function Vj(e,t){switch(t.toLowerCase()){case"dateformat":return gf(e);case"numberformat":return wf(e);default:return dA().warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?gf(e):/^numberformat/i.test(t)?wf(e):o4(e)}}function o4(e){switch(typeof e){case"string":return e;case"number":return wf(e);case"boolean":return""+e;default:return e instanceof Date?gf(e):""}}var dA,s4=N(()=>{zt();Ho();Ra();r4();n4();dA=()=>et.getLogger("esri.intl.substitute")});function zj(e){return e in hA}function fA(e){if(zj(e)){let t=hA[e];return t===!0?e:t}return null}function mA(e){for(let t of yf.keys())wA(e.pattern,t)&&yf.delete(t)}function gA(e){return pg.includes(e)||(mA(e),pg.unshift(e)),bt(()=>{let t=pg.indexOf(e);t>-1&&(pg.splice(t,1),mA(e))})}async function a4(e){let t=Ii();yf.has(e)||yf.set(e,Wj(e,t));let r=yf.get(e);return r&&await Bj.add(r),r}function c4(e){if(!pA.test(e))return null;let t=pA.exec(e);if(t===null)return null;let[,r,n]=t;return fA(r+(n?"-"+n.toUpperCase():""))??fA(r)}async function Wj(e,t){let r=[];for(let n of pg)if(wA(n.pattern,e))try{return await n.fetchMessageBundle(e,t)}catch(i){r.push(i)}throw r.length?new Be("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:r}):new Be("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}function wA(e,t){return typeof e=="string"?t.startsWith(e):e.test(t)}var pA,hA,pg,yf,Bj,fg=N(()=>{En();Qn();ki();Ha();pA=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,hA={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:"no",nl:!0,no:!0,pl:!0,pt:"pt-BR","pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,zh:"zh-CN","zh-CN":!0,"zh-HK":!0,"zh-TW":!0};pg=[],yf=new Map;Zp(()=>{yf.clear()});Bj=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then(()=>this._decrease(),()=>this._decrease()),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=Tn())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&this._numLoading===0&&(this._dfd.resolve(),this._dfd=null)}}});async function Gj(e,t,r,n){let i=t.exec(r);if(!i)throw new Be("esri-intl:invalid-bundle",`Bundle id "${r}" is not compatible with the pattern "${t}"`);let o=i[1]?`${i[1]}/`:"",s=i[2],c=c4(n),a=`${o}${s}.json`,d=c?`${o}${s}_${c}.json`:a,h;try{h=await yA(e(d))}catch(g){if(d===a)throw new Be("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:g});try{h=await yA(e(a))}catch(v){throw new Be("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:v})}}return h}async function yA(e){if(bA.fetchBundleAsset!=null)return bA.fetchBundleAsset(e);let t=await ar(e,{responseType:"text"});return JSON.parse(t.data)}function vA(e){return new l4(e)}var l4,bA,_A=N(()=>{Ey();En();fg();l4=class{constructor({base:t="",pattern:r,location:n=new URL(window.location.href)}){let i;i=typeof n=="string"?o=>new URL(o,new URL(n,window.location.href)).href:n instanceof URL?o=>new URL(o,n).href:n,this.pattern=typeof r=="string"?new RegExp(`^${r}`):r,this.getAssetUrl=i,t=t?t.endsWith("/")?t:t+"/":"",this.matcher=new RegExp(`^${t}(?:(.*)\\/)?(.*)$`)}fetchMessageBundle(t,r){return Gj(this.getAssetUrl,this.matcher,t,r)}};bA={}});var u4=N(()=>{r4();n4();s4();Ha();fg();fg();_A();Cy();gA(vA({pattern:"esri/",location:bf}))});function SA(e){return typeof e=="string"?document.getElementById(e):e??null}var xA=N(()=>{});var sc,d4,EA,mg,CA,TA=N(()=>{Fn();eu();ki();Cn();(function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"})(sc||(sc={}));d4=class{constructor(){this._resolver=Tn(),this._status=sc.PENDING,this._resolvingPromises=[],this._resolver.promise.then(()=>{this._status=sc.RESOLVED,this._cleanUp()},()=>{this._status=sc.REJECTED,this._cleanUp()}),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(t){this._resolvingPromises.push(t),this._tryResolve()}isResolved(){return this._status===sc.RESOLVED}isRejected(){return this._status===sc.REJECTED}isFulfilled(){return this._status!==sc.PENDING}abort(){this._resolver.reject(Pn())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;let t=Tn(),r=[...this._resolvingPromises,t.promise],n=this._allPromise=Promise.all(r);n.then(()=>{this.isFulfilled()||this._allPromise!==n||this._resolver.resolve()},i=>{this.isFulfilled()||this._allPromise!==n||Jh(i)||this._resolver.reject(i)}),t.resolve()}},EA=e=>{let t=class extends e{constructor(...r){super(...r),this._promiseProps=new d4,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(r,n){return this._promiseProps.promise.then(()=>this).then(r,n)}catch(r){return this.when(null,r)}addResolvingPromise(r){r&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in r?r.when():r)}};return t=ne([ut("esri.core.Promise")],t),t},mg=class extends EA(an){};mg=ne([ut("esri.core.Promise")],mg),function(e){e.EsriPromiseMixin=EA}(mg||(mg={}));CA=mg});function jj(e){return{ok:!0,value:e}}function qj(e){return{ok:!1,error:e}}function Hj(e){return e!=null&&e.ok===!0?e.value:null}function Zj(e){return e!=null&&e.ok===!1?e.error:null}var su,PA=N(()=>{Fn();eu();Qa();ki();$n();Cn();su=class extends an{get value(){return Hj(this._result)}get error(){return Zj(this._result)}get finished(){return this._result!=null}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=VP(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;let{signal:r}=this._abortController;this.promise=e(r),this.promise.then(n=>{this._result=jj(n),this._cleanup()},n=>{this._result=qj(n),this._cleanup()}),this._abortHandle=Vn(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=Jl(this._abortHandle),this._abortController=null}};ne([le()],su.prototype,"value",null),ne([le()],su.prototype,"error",null),ne([le()],su.prototype,"finished",null),ne([le()],su.prototype,"promise",void 0),ne([le()],su.prototype,"_result",void 0),su=ne([ut("esri.core.asyncUtils.ReactiveTask")],su)});var ft,MA=N(()=>{(function(e){e[e.ADD=1]="ADD",e[e.REMOVE=2]="REMOVE",e[e.MOVE=4]="MOVE"})(ft||(ft={}))});function AA(e){return(t,r)=>{t[r]=e}}var IA=N(()=>{});var ns,hg=N(()=>{_x();ns=class extends sf{notify(){let t=this._observers;if(t&&t.length>0){let r=t.slice();for(let n of r)n.onInvalidated(),n.onCommitted()}}}});function LA(e){e&&typeof e=="object"&&"destroy"in e&&typeof e.destroy=="function"&&e.destroy()}function p4(e){return e?e instanceof uc?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function f4(e){if(e?.length)return e[0]}function Yj(e,t,r,n){let i=Math.min(e.length-r,t.length-n),o=0;for(;o<i&&e[r+o]===t[n+o];)o++;return o}function kA(e,t,r,n){t&&t.forEach((i,o,s)=>{e.push(i),kA(e,r.call(n,i,o,s),r,n)})}var Fs,h4,g4,Ni,ac,cc,lc,m4,Jj,uc,OA=N(()=>{Fn();Zw();vy();Qn();xn();Gh();MA();Kh();Hl();Ko();$n();IA();Cn();hg();h4=class{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(t){this.defaultPrevented=!1,this.item=t}},g4=class{constructor(t,r,n,i,o){this.target=t,this.added=r,this.removed=n,this.start=i,this.deleteCount=o}},Ni=new po(h4,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});ac=new Set,cc=new Set,lc=new Set,m4=new Map,Jj=0,uc=Fs=class extends ho.EventedAccessor{static isCollection(e){return e!=null&&e instanceof Fs}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new ns,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:Jj++})}normalizeCtorArgs(e){return e?Array.isArray(e)||e instanceof Fs?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),this._emitter.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get items(){return $e(this._observable),this._items}set items(e){this._emitBeforeChanges(ft.ADD)||(this._splice(0,this.length,p4(e)),this._emitAfterChanges(ft.ADD))}hasEventListener(e){return!this.destroyed&&(e==="change"?this._chgListeners.length>0:this._emitter.hasEventListener(e))}on(e,t){if(this.destroyed)return bt();if(e==="change"){let r=this._chgListeners,n={removed:!1,callback:t};return r.push(n),this._notifications&&this._notifications.push({listeners:r.slice(),items:this._items.slice(),changes:[]}),bt(()=>{n.removed=!0,r.splice(r.indexOf(n),1)})}return this._emitter.on(e,t)}once(e,t){let r="deref"in t?()=>t.deref():()=>t,n=this.on(e,i=>{r()?.call(null,i),n.remove()});return n}add(e,t){if($e(this._observable),this._emitBeforeChanges(ft.ADD))return this;let r=this.getNextIndex(t??null);return this._splice(r,0,[e]),this._emitAfterChanges(ft.ADD),this}addMany(e,t=this._items.length){if($e(this._observable),!e?.length)return this;if(this._emitBeforeChanges(ft.ADD))return this;let r=this.getNextIndex(t);return this._splice(r,0,p4(e)),this._emitAfterChanges(ft.ADD),this}at(e){if($e(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if($e(this._observable),!this.length||this._emitBeforeChanges(ft.REMOVE))return[];let e=this._removeAllRaw();return this._emitAfterChanges(ft.REMOVE),e}_removeAllRaw(){return this.length===0?[]:this._splice(0,this.length)||[]}clone(){return $e(this._observable),this._createNewInstance({items:this._items.map(Vt)})}concat(...e){$e(this._observable);let t=e.map(p4);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if($e(this._observable),!this.length||this._emitBeforeChanges(ft.REMOVE))return;let r=this._splice(0,this.length),n=r.length;for(let i=0;i<n;i++)e.call(t,r[i],i,r);this._emitAfterChanges(ft.REMOVE)}destroyAll(){this.drain(LA)}destroyMany(e){let t=this.removeMany(e);return t.forEach(LA),t}every(e,t){return $e(this._observable),this._items.every(e,t)}filter(e,t){$e(this._observable);let r=arguments.length===2?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:r})}find(e,t){return $e(this._observable),this._items.find(e,t)}findIndex(e,t){return $e(this._observable),this._items.findIndex(e,t)}flatten(e,t){$e(this._observable);let r=[];return kA(r,this,e,t),new Fs(r)}forEach(e,t){return $e(this._observable),this._items.forEach(e,t)}getItemAt(e){return $e(this._observable),this._items[e]}getNextIndex(e){$e(this._observable);let t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return $e(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return $e(this._observable),this._items.indexOf(e,t)}join(e=","){return $e(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return $e(this._observable),this._items.lastIndexOf(e,t)}map(e,t){$e(this._observable);let r=this._items.map(e,t);return new Fs({items:r})}reorder(e,t=this.length-1){$e(this._observable);let r=this.indexOf(e);if(r!==-1){if(t<0?t=0:t>=this.length&&(t=this.length-1),r!==t){if(this._emitBeforeChanges(ft.MOVE))return e;this._splice(r,1),this._splice(t,0,[e]),this._emitAfterChanges(ft.MOVE)}return e}}pop(){if($e(this._observable),!this.length||this._emitBeforeChanges(ft.REMOVE))return;let e=f4(this._splice(this.length-1,1));return this._emitAfterChanges(ft.REMOVE),e}push(...e){return $e(this._observable),this._emitBeforeChanges(ft.ADD)||(this._splice(this.length,0,e),this._emitAfterChanges(ft.ADD)),this.length}reduce(e,t){$e(this._observable);let r=this._items;return arguments.length===2?r.reduce(e,t):r.reduce(e)}reduceRight(e,t){$e(this._observable);let r=this._items;return arguments.length===2?r.reduceRight(e,t):r.reduceRight(e)}remove(e){return $e(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if($e(this._observable),e<0||e>=this.length||this._emitBeforeChanges(ft.REMOVE))return;let t=f4(this._splice(e,1));return this._emitAfterChanges(ft.REMOVE),t}removeMany(e){if($e(this._observable),!e?.length||this._emitBeforeChanges(ft.REMOVE))return[];let t=e instanceof Fs?e.toArray():e,r=this._items,n=[],i=t.length;for(let o=0;o<i;o++){let s=t[o],c=r.indexOf(s);if(c>-1){let a=1+Yj(t,r,o+1,c+1),d=this._splice(c,a);d&&d.length>0&&n.push.apply(n,d),o+=a-1}}return this._emitAfterChanges(ft.REMOVE),n}reverse(){if($e(this._observable),this._emitBeforeChanges(ft.MOVE))return this;let e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(ft.MOVE),this}shift(){if($e(this._observable),!this.length||this._emitBeforeChanges(ft.REMOVE))return;let e=f4(this._splice(0,1));return this._emitAfterChanges(ft.REMOVE),e}slice(e=0,t=this.length){return $e(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return $e(this._observable),this._items.some(e,t)}sort(e){if($e(this._observable),!this.length||this._emitBeforeChanges(ft.MOVE)||!this._requiresSort(e))return this;let t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(ft.MOVE),this}_requiresSort(e=(t,r)=>t===r?0:t<r?-1:1){let t=this.length-1;for(let r=0;r<t;r++)if(e(this.items[r],this.items[r+1])>0)return!0;return!1}splice(e,t,...r){$e(this._observable);let n=(t?ft.REMOVE:0)|(r.length?ft.ADD:0);if(this._emitBeforeChanges(n))return[];let i=this._splice(e,t,r)||[];return this._emitAfterChanges(n),i}toArray(){return $e(this._observable),this._items.slice()}toJSON(){return $e(this._observable),this.toArray()}toLocaleString(){return $e(this._observable),this._items.toLocaleString()}toString(){return $e(this._observable),this._items.toString()}unshift(...e){return $e(this._observable),!e.length||this._emitBeforeChanges(ft.ADD)||(this._splice(0,0,e),this._emitAfterChanges(ft.ADD)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,r){let n=this._items,i=this.itemType,o,s;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=cf(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(s=n.splice(e,t),this.hasEventListener("before-remove")){let c=Ni.acquire();c.target=this,c.cancellable=!0;for(let a=0,d=s.length;a<d;a++)o=s[a],c.reset(o),this.emit("before-remove",c),c.defaultPrevented&&(s.splice(a,1),n.splice(e,0,o),e+=1,a-=1,d-=1);Ni.release(c)}if(this.length=this._items.length,this.hasEventListener("after-remove")){let c=Ni.acquire();c.target=this,c.cancellable=!1;let a=s.length;for(let d=0;d<a;d++)c.reset(s[d]),this.emit("after-remove",c);Ni.release(c)}}if(r?.length){if(i){let h=[];for(let g of r){let v=i.ensureType(g);v==null&&g!=null||h.push(v)}r=h}let c=this.hasEventListener("before-add"),a=this.hasEventListener("after-add"),d=e===this.length;if(c||a){let h=Ni.acquire();h.target=this,h.cancellable=!0;let g=Ni.acquire();g.target=this,g.cancellable=!1;for(let v of r)c?(h.reset(v),this.emit("before-add",h),h.defaultPrevented||(d?n.push(v):n.splice(e++,0,v),this._set("length",n.length),a&&(g.reset(v),this.emit("after-add",g)))):(d?n.push(v):n.splice(e++,0,v),this._set("length",n.length),g.reset(v),this.emit("after-add",g));Ni.release(g),Ni.release(h)}else{if(d)for(let h of r)n.push(h);else n.splice(e,0,...r);this._set("length",n.length)}}if((r?.length||s?.length)&&this._notifyChangeEvent(r,s),this.hasEventListener("after-splice")){let c=new g4(this,r,s,e,t);this.emit("after-splice",c)}return s}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){let r=Ni.acquire();r.target=this,r.cancellable=!0,r.type=e,this.emit("before-changes",r),t=r.defaultPrevented,Ni.release(r)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){let t=Ni.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),Ni.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;let e=this._notifications;this._notifications=null;for(let t of e){let r=t.changes;ac.clear(),cc.clear(),lc.clear();for(let{added:a,removed:d}of r){if(a)if(lc.size===0&&cc.size===0)for(let h of a)ac.add(h);else for(let h of a)cc.has(h)?(lc.add(h),cc.delete(h)):lc.has(h)||ac.add(h);if(d)if(lc.size===0&&ac.size===0)for(let h of d)cc.add(h);else for(let h of d)ac.has(h)?ac.delete(h):(lc.delete(h),cc.add(h))}let n=Un.acquire();ac.forEach(a=>{n.push(a)});let i=Un.acquire();cc.forEach(a=>{i.push(a)});let o=this._items,s=t.items,c=Un.acquire();if(lc.forEach(a=>{s.indexOf(a)!==o.indexOf(a)&&c.push(a)}),t.listeners&&(n.length||i.length||c.length)){let a={target:this,added:n,removed:i,moved:c},d=t.listeners.length;for(let h=0;h<d;h++){let g=t.listeners[h];g.removed||g.callback.call(this,a)}}Un.release(n),Un.release(i),Un.release(c)}ac.clear(),cc.clear(),lc.clear()}};uc.ofType=e=>{if(!e)return Fs;if(m4.has(e))return m4.get(e);let t=null;if(typeof e=="function")t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(let n in e.typeMap){let i=e.typeMap[n].prototype.declaredClass;t?t+=` | ${i}`:t=i}let r=class extends Fs{};return ne([AA({Type:e,ensureType:typeof e=="function"?Li(e):Qp(e)})],r.prototype,"itemType",void 0),r=ne([ut(`esri.core.Collection<${t}>`)],r),m4.set(e,r),r},ne([le()],uc.prototype,"_updating",void 0),ne([le()],uc.prototype,"length",void 0),ne([le()],uc.prototype,"items",null),ne([le({readOnly:!0})],uc.prototype,"updating",null),uc=Fs=ne([ut("esri.core.Collection")],uc)});function gg(e,t,r={}){return RA(e,t,r,Xj)}function NA(e,t,r={}){return RA(e,t,r,Qj)}function RA(e,t,r={},n){let i=null,o=r.once?(s,c)=>{n(s)&&(Jl(i),t(s,c))}:(s,c)=>{n(s)&&t(s,c)};if(i=gM(e,o,r.sync,r.equals),r.initial){let s=e();o(s,s)}return i}function Xj(e){return!0}function Qj(e){return!!e}var Ty,w4=N(()=>{PA();OA();Zh();Qn();Qa();ki();Ux();$x();Ty={sync:!0,initial:!0}});function DA(){if(Kj)return crypto.randomUUID();let e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;let t=r=>e[r].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}var Kj,FA=N(()=>{Kj="randomUUID"in crypto});function tq(e){let t="__accessorMetadata__"in e?Li(e):e;return function(...r){if(r.push(t),typeof r[2]=="number")throw new Error("Using @cast has parameter decorator is not supported since 4.16");return rq.apply(this,r)}}function rq(e,t,r,n){ef(e,t).cast=n}function nq(e){return(t,r)=>{ef(t,e).cast=t[r]}}function Py(...e){if(e.length!==3||typeof e[1]!="string")return e.length===1&&eq.call(e[0])==="[object Function]"?tq(e[0]):e.length===1&&typeof e[0]=="string"?nq(e[0]):void 0}var eq,y4=N(()=>{Hl();tf();eq=Object.prototype.toString});function WA(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function iq(e,t,r){}function oq(e,t,r){}function aq(e,t){return sq.test(t)?"":t}function lq(e,t){e=wg.trimRight(e),e[e.length-1]!==";"&&(e+=";");var r=e.length,n=!1,i=0,o=0,s="";function c(){if(!n){var h=wg.trim(e.slice(i,o)),g=h.indexOf(":");if(g!==-1){var v=wg.trim(h.slice(0,g)),E=wg.trim(h.slice(g+1));if(v){var M=t(i,s.length,v,E,h);M&&(s+=M+"; ")}}}i=o+1}for(;o<r;o++){var a=e[o];if(a==="/"&&e[o+1]==="*"){var d=e.indexOf("*/",o+2);if(d===-1)break;o=d+1,i=o+1,n=!1}else a==="("?n=!0:a===")"?n=!1:a===";"?n||c():a===`
8
+ `);return c}setAtOrigin(t,r,n){let i=this.propertiesByName.get(t);if(qw(i))return this._setAtOrigin(i,r,n)}isOverridden(t){let r=this.propertiesByName.get(t);return r!==void 0&&!!(r.flags&lt.Overridden)}clearOverride(t){let r=this.propertiesByName.get(t);r&&r.flags&lt.Overridden&&(r.flags&=~lt.Overridden,r.notifyChange())}override(t,r){let n=this.propertiesByName.get(t);if(!jP(n,t,r,this))return;let i=n.metadata.cast;if(i){let o=this._cast(i,r),{valid:s,value:c}=o;if(Sx.release(o),!s)return;r=c}n.flags|=lt.Overridden,this._internalSet(n,r)}set(t,r){let n=this.propertiesByName.get(t);if(!jP(n,t,r,this))return;let i=n.metadata.cast;if(i){let s=this._cast(i,r),{valid:c,value:a}=s;if(Sx.release(s),!c)return;r=a}let o=n.metadata.set;o?o.call(this.host,r):this._internalSet(n,r)}setDefaultOrigin(t){this._origin=Bw(t)}getDefaultOrigin(){return Gw(this._origin)}notifyChange(t){let r=this.propertiesByName.get(t);r!==void 0&&r.notifyChange()}invalidate(t){let r=this.propertiesByName.get(t);r!==void 0&&r.invalidate()}commit(t){let r=this.propertiesByName.get(t);r!==void 0&&r.commit()}_internalSet(t,r){let n=this.lifecycle!==Yr.INITIALIZING?this._origin:dt.DEFAULTS;this._setAtOrigin(t,r,n)}_setAtOrigin(t,r,n){let i=this.store,o=t.propertyName;i.has(o,n)&&Ym(r,i.get(o))&&~t.flags&lt.Overridden&&n===i.originOf(o)||(t.invalidate(),i.set(o,r,n),t.commit(),cx(this.host,t))}_cast(t,r){let n=Sx.acquire();return n.valid=!0,n.value=r,t&&(n.value=t.call(this.host,r,n)),n}},xx=class{constructor(){this.value=null,this.valid=!0}acquire(){this.valid=!0}release(){this.value=null}},Sx=new po(xx)});function Ex(){return pG}var pG,HP,ZP=N(()=>{(function(e){e[e.Ignore=0]="Ignore",e[e.Destroy=1]="Destroy",e[e.ThrowError=2]="ThrowError"})(HP||(HP={}))});function fG(e){e.length=0}var Un,Cx,Zw=N(()=>{Gh();Un=class{constructor(t=50,r=50){this._pool=new po(Array,void 0,fG,r,t)}acquire(){return this._pool.acquire()}release(t){this._pool.release(t)}prune(){this._pool.prune(0)}static acquire(){return Cx.acquire()}static release(t){return Cx.release(t)}static prune(){Cx.prune()}},Cx=new Un(100)});var Yw,YP=N(()=>{Gh();Yw=class extends po{constructor(){super(...arguments),this._set=new Set}destroy(){super.destroy(),this._set=null}acquire(...t){let r=super.acquire(...t);return this._set.delete(r),r}release(t){t&&!this._set.has(t)&&(super.release(t),this._set.add(t))}_dispose(t){this._set.delete(t),super._dispose(t)}}});function Tx(e){Jw.push(e),Jw.length===1&&queueMicrotask(()=>{let t=Jw.slice();Jw.length=0;for(let r of t)r()})}var Jw,JP=N(()=>{Jw=[]});var qh,XP=N(()=>{qh=class{constructor(t,r=30){this.name=t,this._counter=0,this._samples=new Array(r)}push(t){t!=null&&(this._samples[++this._counter%this._samples.length]=t)}set(t){t!=null&&(this._samples[this._counter%this._samples.length]=t)}get median(){return this._samples.slice().sort((t,r)=>t-r)[Math.floor(this._samples.length/2)]}get average(){return this._samples.reduce((t,r)=>t+r,0)/this._samples.length}get last(){return this._samples[this._counter%this._samples.length]}}});function mG(e){return{setTimeout:(t,r)=>{let n=e.setTimeout(t,r);return bt(()=>e.clearTimeout(n))}}}var QP,KP=N(()=>{Qn();QP=mG(globalThis)});function Hh(e){return hG(e)||eM(e)}function hG(e){return e!=null&&typeof e=="object"&&"on"in e&&typeof e.on=="function"}function eM(e){return e!=null&&typeof e=="object"&&"addEventListener"in e&&typeof e.addEventListener=="function"}function Ka(e,t,r){if(!Hh(e))throw new TypeError("target is not a Evented or EventTarget object");return eM(e)?gG(e,t,r):e.on(t,r)}function gG(e,t,r,n){if(Array.isArray(t)){let i=t.slice();for(let o of i)e.addEventListener(o,r,n);return bt(()=>{for(let o of i)e.removeEventListener(o,r,n)})}return e.addEventListener(t,r,n),bt(()=>e.removeEventListener(t,r,n))}function Px(e,t,r){if(!Hh(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);let n=Ka(e,t,i=>{n.remove(),r.call(e,i)});return n}var Zh=N(()=>{Qn()});function Pn(e="Aborted"){return new Be("AbortError",e)}function wG(e,t="Aborted"){if(fo(e))throw Pn(t)}function Yh(e){return e instanceof AbortSignal?e:e?.signal??void 0}function fo(e){let t=Yh(e);return t!=null&&t.aborted}function Mx(e){if(!Jh(e))throw e}function Vn(e,t){let r=Yh(e);if(r!=null){if(!r.aborted)return Px(r,"abort",()=>t());t()}}function rM(e,t){let r=Yh(e);if(r!=null)return wG(r),Px(r,"abort",()=>t(Pn()))}function Jh(e){return e?.name==="AbortError"}function yG(e,t=void 0,r){let n=new AbortController;return Vn(r,()=>n.abort()),new Promise((i,o)=>{let s=setTimeout(()=>{s=0,i(t)},e);Vn(n,()=>{s&&(clearTimeout(s),o(Pn()))})})}function Ax(e){return e&&typeof e.then=="function"}function tM(e){return Ax(e)?e:Promise.resolve(e)}function nM(e,t=-1){let r,n,i,o,s=null,c=(...a)=>{if(r){n=a,o&&o.reject(Pn()),o=Tn();let v=o.promise;if(s){let E=s;s=null,E.abort()}return v}if(i=o||Tn(),o=null,t>0){let v=new AbortController;r=tM(e(...a,v.signal));let E=r;yG(t).then(()=>{r===E&&(o?v.abort():s=v)})}else r=1,r=tM(e(...a));let d=()=>{let v=n;n=i=r=s=null,v!=null&&c(...v)},h=r,g=i;return h.then(d,d),h.then(g.resolve,g.reject),g.promise};return c}function Tn(){let e,t,r=new Promise((i,o)=>{e=i,t=o}),n=i=>{e(i)};return n.resolve=i=>e(i),n.reject=i=>t(i),n.timeout=(i,o)=>QP.setTimeout(()=>n.reject(o),i),n.promise=r,n}var ki=N(()=>{KP();En();Zh();zt();Qa()});var iM=N(()=>{});function bG(){Qh!=null&&(cancelAnimationFrame(Qh),Qh=requestAnimationFrame(aM))}function cf(e){let t=new Ix(e);return kx.push(t),Qw.willDispatch||(Qw.willDispatch=!0,Tx(lM)),t}function vG(e=!1){af.forAll(t=>{t.removed=!0}),e&&cM()}function aM(){let e=performance.now();Qh=null,Qh=af.some(r=>!r.paused&&!r.removed)?requestAnimationFrame(aM):null,Qw.executeFrameTasks(e)}function _G(e){let t=e-oM;oM=e;let r=sM>0?sM:1e3/60,n=Math.max(0,t-r);Xh.time=e,Xh.frameDuration=r-n;for(let i=0;i<Lx.length;i++){let o=performance.now(),s=Lx[i];af.forAll(c=>{c.paused||c.removed||(i===0&&c.ticks++,c.phases[s]&&(Xh.elapsedFrameTime=performance.now()-e,Xh.deltaTime=c.ticks===0?0:t,c.phases[s]?.call(c,Xh)))}),EG[i].push(performance.now()-o)}cM(),CG.push(performance.now()-e)}function cM(){af.forAll(e=>{e.removed&&Xw.push(e)}),af.removeUnorderedMany(Xw.data,Xw.length),Xw.clear()}function lM(){for(;kx.length;){let e=kx.shift();e.isActive&&e.callback()}Qw.willDispatch=!1}function SG(e=1,t){let r=Tn(),n=()=>{fo(t)?r.reject(Pn()):e===0?r():(--e,Tx(()=>n()))};return n(),r.promise}function xG(e){return SG(1,e)}async function uM(e){await xG(e),await new Promise(t=>requestAnimationFrame(()=>{e?.aborted||t()}))}var Ix,oM,sM,Xh,Lx,kx,af,Qw,Qh,Xw,EG,CG,Kh=N(()=>{JP();XP();eS();ki();iM();Ix=class{constructor(t){this.callback=t,this.isActive=!0}remove(){this.isActive=!1}},oM=0,sM=0,Xh={time:0,deltaTime:0,elapsedFrameTime:0,frameDuration:0},Lx=["prepare","preRender","render","postRender","update","finish"],kx=[],af=new Na;Qw={frameTasks:af,willDispatch:!1,clearFrameTasks:vG,dispatch:lM,executeFrameTasks:_G,reschedule:bG};Qh=null;Xw=new Na;EG=Lx.map(e=>new qh(e)),CG=new qh("total")});function dM(e,t){if(!t)return e;for(let r of t)r!=null&&e.add(r);return e}function Kw(e,t){let r=new Set;return dM(r,e),dM(r,t),r}var ey=N(()=>{});function ty(){return++TG}var TG,pM=N(()=>{TG=0});function PG(){}var Ql,Ox,fM,Nx=N(()=>{$h();Ql=class extends Qo{constructor(t){super(new Ox(t)),this._observer&&fM.register(this,new WeakRef(this._observer),this)}destroy(){this._observer&&fM.unregister(this._observer),this.accessed?.clear(),this.clear(),this._observer?.destroy()}},Ox=class{constructor(t){this._notify=t,this._invalidCount=0,this.destroyed=!1}onInvalidated(){this._invalidCount++}onCommitted(){if(this.destroyed)return;let t=this._invalidCount;if(t===1)return this._invalidCount=0,void this._notify();this._invalidCount=t>0?t-1:0}destroy(){this.destroyed=!0,this._notify=PG}},fM=new FinalizationRegistry(e=>{e.deref()?.destroy()})});function Dx(e,t){let r=new Ql(o),n=null,i=!1;function o(){if(!r||i)return;if(Rx)return void MG(o);let c=n;r.clear(),Rx=!0,i=!0,n=uo(r,e),i=!1,Rx=!1,t(n,c),AG()}function s(){r&&(r.destroy(),r=null,n=null)}return i=!0,n=uo(r,e),i=!1,bt(s)}function Fx(e,t){let r=new Ql(i),n=null;function i(){t(n,s)}function o(){r&&(r.destroy(),r=null),n=null}function s(){return r?(r.clear(),n=uo(r,e),n):null}return s(),bt(o)}function MG(e){ry.includes(e)||ry.unshift(e)}function AG(){for(;ry.length;)ry.pop()()}var Rx,ry,$x=N(()=>{Qn();Ko();Nx();Rx=!1,ry=[]});function oy(e){ec.delete(e),ec.add(e),iy||(iy=cf(LG))}function IG(e){if(e.removed)return;let t=e.oldValue,r=e.getValue();e.equals(t,r)||(e.oldValue=r,e.notify(r,t))}function mM(e){for(let t of ec.values())t.target===e&&(t.removed=!0)}function LG(){let e=10;for(;iy&&e--;){iy=null;let t=kG(),r=ny.acquire();for(let n of t){let i=n.uid;IG(n),i===n.uid&&n.removed&&r.push(n)}for(let n of ec)n.removed&&(r.push(n),ec.delete(n));for(let n of r)Kl.pool.release(n);ny.release(r),ny.release(t),OG.forEach(n=>n())}}function kG(){let e=ny.acquire();e.length=ec.size;let t=0;for(let r of ec)e[t]=r,++t;return ec.clear(),e}function NG(e,t,r){let n=rx(e,t,r,(i,o,s)=>{let c,a,d=Fx(()=>Zl(i,o),(h,g)=>{i.__accessor__?.lifecycle===Yr.DESTROYED||c&&c.uid!==a?n.remove():(c||(c=Kl.acquireUntracked(h,s,g,i,o),a=c.uid),oy(c))});return bt(()=>{d.remove(),c&&(c.uid!==a||c.removed||(c.removed=!0,oy(c)),c=null),n=d=null})});return n}function RG(e,t,r){let n=rx(e,t,r,(i,o,s)=>{let c=!1;return Dx(()=>Zl(i,o),(a,d)=>{i.__accessor__.lifecycle!==Yr.DESTROYED?c||(c=!0,Ym(d,a)||s.call(i,a,d,o,i),c=!1):n.remove()})});return n}function hM(e,t,r,n=!1){return e.__accessor__&&e.__accessor__.lifecycle!==Yr.DESTROYED?n?RG(e,t,r):NG(e,t,r):bt()}function DG(e,t,r){let n,i,o=Fx(e,(s,c)=>{n&&n.uid!==i?o.remove():(n||(n=Kl.acquireTracked(s,t,c,r),i=n.uid),oy(n))});return bt(()=>{o.remove(),n&&(n.uid!==i||n.removed||(n.removed=!0,oy(n)),n=null),o=null})}function FG(e,t,r){let n=!1;return Dx(e,(i,o)=>{n||(n=!0,r(o,i)||t(i,o),n=!1)})}function gM(e,t,r=!1,n=X0){return r?FG(e,t,n):DG(e,t,n)}var eg,Kl,ny,ec,iy,OG,Ux=N(()=>{Zw();Qn();xn();YP();Kh();ey();pM();Yl();Fh();$x();Ja();(function(e){e[e.Untracked=0]="Untracked",e[e.Tracked=1]="Tracked"})(eg||(eg={}));Kl=class{constructor(){this.uid=ty(),this.removed=!1,this.type=null,this.oldValue=null,this.callback=null,this.getValue=null,this.target=null,this.path=null,this.equals=null}static acquireUntracked(t,r,n,i,o){return this.pool.acquire(eg.Untracked,t,r,n,i,o,Ym)}static acquireTracked(t,r,n,i){return this.pool.acquire(eg.Tracked,t,r,n,null,null,i)}notify(t,r){this.type===eg.Untracked?this.callback.call(this.target,t,r,this.path,this.target):this.callback.call(null,t,r,void 0,void 0)}acquire(t,r,n,i,o,s,c){this.uid=ty(),this.removed=!1,this.type=t,this.oldValue=r,this.callback=n,this.getValue=i,this.target=o,this.path=s,this.equals=c}release(){this.target=this.path=this.oldValue=this.callback=this.getValue=null,this.uid=ty(),this.removed=!0}};Kl.pool=new Yw(Kl);ny=new Un,ec=new Set;OG=new Set});function $G(e){if(e==null)return{value:e};if(Array.isArray(e))return{type:[e[0]],value:null};switch(typeof e){case"object":return e.constructor?.__accessorMetadata__||e instanceof Date?{type:e.constructor,value:e}:e;case"boolean":return{type:Boolean,value:e};case"string":return{type:String,value:e};case"number":return{type:Number,value:e};case"function":return{type:e,value:null};default:return}}var wM,yM,es,Vx,an,eu=N(()=>{RP();UP();zt();Qa();sx();Yl();Fh();tf();qP();ox();ZP();Ux();$n();Cn();es=Symbol("Accessor-Handles"),Vx=Symbol("Accessor-Initialized"),an=class e{static createSubclass(t={}){if(Array.isArray(t))throw new Error("Multi-inheritance unsupported since 4.16");let{properties:r,declaredClass:n,constructor:i}=t;delete t.declaredClass,delete t.properties,delete t.constructor;let o=this;class s extends o{constructor(...a){super(...a),this.inherited=null,i&&i.apply(this,a)}}Xa(s.prototype);for(let c in t){let a=t[c];s.prototype[c]=typeof a=="function"?function(...d){let h=this.inherited,g;this.inherited=function(...v){if(o.prototype[c])return o.prototype[c].apply(this,v)};try{g=a.apply(this,d)}catch(v){throw this.inherited=h,v}return this.inherited=h,g}:t[c]}for(let c in r){let a=$G(r[c]);le(a)(s.prototype,c)}return ut(n)(s)}static freeze(t){return t instanceof e?t.__accessor__.mutable=!1:Object.freeze(t),t}static isFrozen(t){return t instanceof e?!t.__accessor__.mutable:Object.isFrozen(t)}constructor(...t){if(this[wM]=null,this[yM]=!1,this.constructor===e)throw new Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");let r=new Hw(this);Object.defineProperty(this,"__accessor__",{enumerable:!1,value:r}),t.length>0&&(r.ctorArgs=this.normalizeCtorArgs?.apply(this,t)??t[0]),Ex()?.onInstanceConstruct(this)}postscript(){let t=this.__accessor__,r=t.ctorArgs;t.initialize(),r&&(this.set(r),t.ctorArgs=null),t.constructed(),this.initialize(),this[Vx]=!0}initialize(){}[kw](){this[es]=Bh(this[es])}destroy(){this.destroyed||(mM(this),this.__accessor__.destroy(),Ex()?.onInstanceDestroy(this))}[Symbol.dispose](){this.destroy()}get constructed(){return this.__accessor__&&this.__accessor__.initialized||!1}get initialized(){return this[Vx]}get destroyed(){return this.__accessor__?.lifecycle===Yr.DESTROYED||!1}commitProperty(t){Xo(this,t)}hasOwnProperty(t){return this.__accessor__?this.__accessor__.has(t):Object.prototype.hasOwnProperty.call(this,t)}keys(){return this.__accessor__?this.__accessor__.keys():[]}set(t,r){return nf(this,t,r),this}watch(t,r,n){return NP(et.getLogger(this),"`watch` is deprecated in favor of reactiveUtils.watch",{replacement:"reactiveUtils.watch",version:"4.32",see:"https://developers.arcgis.com/javascript/latest/api-reference/esri-core-reactiveUtils.html#watch",warnOnce:!0}),hM(this,t,r,n)}addHandles(t,r){if(this.destroyed){let n=Array.isArray(t)?t:[t];for(let i of n)i.remove();return}(this[es]??(this[es]=new of)).add(t,r)}removeHandles(t){this[es]?.remove(t)}removeAllHandles(){this[es]?.removeAll()}removeHandlesReference(t){this[es]?.removeReference(t)}hasHandles(t){return this[es]?.has(t)===!0}_override(t,r){r===void 0?this.__accessor__.clearOverride(t):this.__accessor__.override(t,r)}_clearOverride(t){return this.__accessor__.clearOverride(t)}_overrideIfSome(t,r){r==null?this.__accessor__.clearOverride(t):this.__accessor__.override(t,r)}_isOverridden(t){return this.__accessor__.isOverridden(t)}notifyChange(t){this.__accessor__.notifyChange(t)}_get(t){return this.__accessor__.internalGet(t)}_set(t,r){return this.__accessor__.internalSet(t,r),this}};wM=es,yM=Vx});var sy,zx,bM=N(()=>{xn();Xl();sy=class e{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(t){let r=new e;return this._values.forEach((n,i)=>{t&&t.has(i)||r.set(i,Vt(n.value),n.origin)}),r}get(t,r){r=this._normalizeOrigin(r);let n=this._values.get(t);return r==null||n?.origin===r?n?.value:void 0}originOf(t){return this._values.get(t)?.origin??dt.USER}keys(t){t=this._normalizeOrigin(t);let r=[...this._values.keys()];return t==null?r:r.filter(n=>this._values.get(n)?.origin===t)}set(t,r,n){if((n=this._normalizeOrigin(n))===dt.DEFAULTS){let i=this._values.get(t);if(i?.origin!=null&&i.origin>n)return}this._values.set(t,new zx(r,n))}delete(t,r){(r=this._normalizeOrigin(r))!=null&&this._values.get(t)?.origin!==r||this._values.delete(t)}has(t,r){return(r=this._normalizeOrigin(r))!=null?this._values.get(t)?.origin===r:this._values.has(t)}forEach(t){this._values.forEach(({value:r},n)=>t(r,n))}_normalizeOrigin(t){if(t!=null)return t===dt.DEFAULTS?t:dt.USER}},zx=class{constructor(t,r){this.value=t,this.origin=r}}});function vM(e,t,r){t.keys().forEach(i=>{r.set(i,t.get(i),dt.DEFAULTS)});let n=e.metadata;Object.keys(n).forEach(i=>{e.internalGet(i)&&r.set(i,e.internalGet(i),dt.DEFAULTS)})}var _M=N(()=>{Xl()});function UG(e,t,r){if(!e?.read||e.read.enabled===!1||!e.read.source)return!1;let n=e.read.source;if(typeof n=="string"){if(n===t||n.includes(".")&&n.indexOf(t)===0&&nx(n,r))return!0}else for(let i of n)if(i===t||i.includes(".")&&i.indexOf(t)===0&&nx(i,r))return!0;return!1}function VG(e){return e&&(!e.read||e.read.enabled!==!1&&!e.read.source)}function zG(e,t,r,n,i){let o=Uw(t[r],i);VG(o)&&(e[r]=!0);for(let s of Object.getOwnPropertyNames(t))o=Uw(t[s],i),UG(o,r,n)&&(e[s]=!0)}function WG(e,t,r,n){let i=r.metadata,o=MP(i[t],n),s=o?.default;if(s===void 0)return;let c=typeof s=="function"?s.call(e,t,n):s;c!==void 0&&r.set(t,c)}function SM(e,t,r=BG){if(!t||typeof t!="object")return;let n=Jo(e),i=n.metadata,o={};for(let s of Object.getOwnPropertyNames(t))zG(o,i,s,t,r);n.setDefaultOrigin(r.origin);for(let s of Object.getOwnPropertyNames(o)){let c=Uw(i[s],r).read,a=c?.source,d;d=a&&typeof a=="string"?Zl(t,a):t[s],c?.reader&&(d=c.reader.call(e,d,t,r)),d!==void 0&&n.set(s,d)}if(!r||!r.ignoreDefaults){n.setDefaultOrigin("defaults");for(let s of Object.getOwnPropertyNames(i))o[s]||WG(e,s,n,r)}n.setDefaultOrigin("user")}var BG,xM=N(()=>{Yl();Ja();Vw();BG={origin:"service"}});function GG(e,t,r,n,i){let o={};return t.write?.writer?.call(e,n,o,r,i),o}function jG(e,t,r,n,i,o){if(!n?.write)return!1;let s=Xo(e,r);if(!i&&n.write.overridePolicy){let c=n.write.overridePolicy.call(e,s,r,o??void 0);c!==void 0&&(i=c)}if(i||(i=n.write),!i||i.enabled===!1||i.layerContainerTypes&&o?.layerContainerType&&!i.layerContainerTypes.includes(o.layerContainerType))return!1;if((s===null&&!i.allowNull&&!i.writerEnsuresNonNull||s===void 0)&&i.isRequired){let c=new Be("web-document-write:property-required",`Missing value for required property '${r}' on '${e.declaredClass}'`,{propertyName:r,target:e});return c&&o?.messages?o.messages.push(c):c&&!o&&et.getLogger("esri.core.accessorSupport.write").error(c.name,c.message),!1}return!(s===void 0||s===null&&!i.allowNull&&!i.writerEnsuresNonNull||!i.alwaysWriteDefaults&&(!t.store.multipleOriginsSupported||t.store.originOf(r)===dt.DEFAULTS)&&qG(e,r,o,n,s)||!i.ignoreOrigin&&o?.origin&&t.store.multipleOriginsSupported&&t.store.originOf(r)<Bw(o.origin))}function qG(e,t,r,n,i){let o=n.default;if(o===void 0)return!1;if(n.defaultEquals!=null)return n.defaultEquals(i);if(typeof o=="function"){if(Array.isArray(i)){let s=o.call(e,t,r??void 0);return Z0(s,i)}return!1}return o===i}function EM(e,t,r){if(e&&typeof e.toJSON=="function"&&(!e.toJSON.isDefaultToJSON||!e.write))return Kp(t,e.toJSON(r));let n=Jo(e),i=n.metadata;for(let o in i){let s=AP(i[o],r);if(!jG(e,n,o,s,void 0,r))continue;let c=Xo(e,o),a=GG(e,s,s.write&&typeof s.write.target=="string"?s.write.target:o,c,r);Object.keys(a).length>0&&(t=Kp(t,a),r?.resources?.pendingOperations?.length&&r.resources.pendingOperations.push(Promise.all(r.resources.pendingOperations).then(()=>Kp(t,a,()=>"replace-arrays"))),r?.writtenProperties&&r.writtenProperties.push({target:e,propName:o,oldOrigin:WP(n.store.originOf(o)),newOrigin:r.origin}))}return t}var CM=N(()=>{Pp();En();zt();Yl();Xl();Ja();Vw()});function HG(e,t){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");let r=new this;return r.read(e,t),r}var TM,tg,di,tu=N(()=>{Fn();eu();bM();_M();xM();Ja();CM();Cn();TM=e=>{let t=class extends e{constructor(...r){super(...r);let n=Jo(this),i=n.store,o=new sy;n.store=o,vM(n,i,o)}read(r,n){SM(this,r,n)}write(r,n){return EM(this,r??{},n)}toJSON(r){return this.write({},r)}static fromJSON(r,n){return HG.call(this,r,n)}};return t=ne([ut("esri.core.JSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};tg=class extends TM(an){};tg=ne([ut("esri.core.JSONSupport")],tg),function(e){function t(r){return r&&typeof r=="object"&&"toJSON"in r&&typeof r.toJSON=="function"}e.JSONSupportMixin=TM,e.isSerializable=t}(tg||(tg={}));di=tg});function ay(e,t,r){let n,i;return t===void 0||Array.isArray(t)?(i=e,r=t,n=[void 0]):(i=t,n=Array.isArray(e)?e:[e]),(o,s)=>{let c=o.constructor.prototype;n.forEach(a=>{let d=Lw(o,a,i);d.read&&typeof d.read=="object"||(d.read={}),d.read.reader=c[s],r&&(d.read.source=(d.read.source||[]).concat(r))})}}var Wx=N(()=>{$n()});function ZG(e){let t={};for(let r in e)t[e[r]]=r;return t}function PM(e){let t=[];for(let r in e)t.push(r);return t.sort(),t}function ru(){return function(e,t){return new Bx(e,{ignoreUnknown:!0,...t})}}var Bx,Gx=N(()=>{Ho();Bx=class{constructor(t,r={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=t,this._options=r,this.apiValues=[],this.jsonValues=[],this._apiToJSON=ZG(t),this.apiValues=PM(this._apiToJSON),this.jsonValues=PM(this._jsonToAPI),this.read=n=>this.fromJSON(n),this.write=(n,i,o)=>{let s=this.toJSON(n);s!==void 0&&Is(o,s,i)},this.write.isJSONMapWriter=!0}toJSON(t){if(t==null)return null;if(this._apiToJSON.hasOwnProperty(t)){let r=this._apiToJSON[t];return this._options.useNumericKeys?+r:r}return this._options.ignoreUnknown?null:t}fromJSON(t){return t!=null&&this._jsonToAPI.hasOwnProperty(t)?this._jsonToAPI[t]:this._options.ignoreUnknown?void 0:t}}});var rg,mo,cy,ly,uy=N(()=>{rg=class{constructor(t,r,n,i,o,s){this.semiMajorAxis=t,this.flattening=r,this.outerAtmosphereRimWidth=n,this.atmosphereHeight=i,this.scaleHeight=o;let c=1-this.flattening;this.semiMinorAxis=this.semiMajorAxis*c,this.halfSemiMajorAxis=this.semiMajorAxis/2,this.halfCircumference=Math.PI*this.semiMajorAxis,this.metersPerDegree=this.halfCircumference/180,this.inverseFlattening=1/(1-this.flattening)-1,this.eccentricitySquared=s||2*this.flattening-this.flattening*this.flattening,this.meanRadiusSemiAxes=(2*this.semiMajorAxis+this.semiMinorAxis)/3}get radius(){return this.semiMajorAxis}},mo=new rg(6378137,1/298.257223563,3e5,1e5,.085,.006694379990137799),cy=new rg(3396190,1/169.8944472236118,23e4,6e4,.111),ly=new rg(1737400,0,0,0,0)});function dy(e){return/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}function lf(e){let t=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,r=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,n=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;return t.test(e)?e=e.replace(t,"https://www.arcgis.com"):r.test(e)?e=e.replace(r,"https://devext.arcgis.com"):n.test(e)&&(e=e.replace(n,"https://qaext.arcgis.com")),e}var ng=N(()=>{});function MM(e){let t=new Uint8Array(e),r="";for(let n=0;n<t.length;n++)r+=String.fromCharCode(t[n]);return btoa(r)}var AM=N(()=>{});function ij(){let e=Mn.path,t=e.slice(0,e.lastIndexOf("/")+1);return`${`${Mn.scheme}://${Mn.host}${Mn.port!=null?`:${Mn.port}`:""}`}${t}`}function Ds(e){if(!e)return null;let t={path:null,query:null},r=new cn(e),n=e.indexOf("?");return r.query===null?t.path=e:(t.path=e.slice(0,n),t.query=tc(r.query)),r.fragment&&(t.hash=r.fragment,r.query===null&&(t.path=t.path.slice(0,t.path.length-(r.fragment.length+1)))),t}function tc(e){let t=e.split("&"),r={};for(let n of t){if(!n)continue;let i=n.indexOf("="),o,s;i<0?(o=decodeURIComponent(n),s=""):(o=decodeURIComponent(n.slice(0,i)),s=decodeURIComponent(n.slice(i+1)));let c=r[o];typeof c=="string"&&(c=r[o]=[c]),Array.isArray(c)?c.push(s):r[o]=s}return r}function nu(e,t){return e?t&&typeof t=="function"?Object.keys(e).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r]))).join("&"):Object.keys(e).map(r=>{let n=e[r];if(n==null)return"";let i=encodeURIComponent(r)+"=",o=t?.[r];return o?i+encodeURIComponent(o(n)):Array.isArray(n)?n.map(s=>di.isSerializable(s)?i+encodeURIComponent(JSON.stringify(s)):i+encodeURIComponent(s)).join("&"):di.isSerializable(n)?i+encodeURIComponent(JSON.stringify(n)):i+encodeURIComponent(n)}).filter(r=>r).join("&"):""}function NM(e=!1){let t,r=uf.proxyUrl;if(typeof e=="string"){t=sj(e);let n=pf(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw YG().warn(IM),new Be("urlUtils:proxy-not-set",IM);return t&&jx()&&(r=wy(r)),Ds(r)}function RM(e){let t=e.indexOf("?");return t!==-1?(ig.path=e.slice(0,t),ig.query=e.slice(t+1)):(ig.path=e,ig.query=null),ig}function DM(e){return e=(e=$M(e=dj(e=RM(e).path),!0)).toLowerCase()}function FM(e){let t={proxyUrl:e.proxyUrl,urlPrefix:DM(e.urlPrefix)},r=uf.proxyRules,n=t.urlPrefix,i=r.length;for(let o=0;o<r.length;o++){let s=r[o].urlPrefix;if(n.indexOf(s)===0){if(n.length===s.length)return-1;i=o;break}s.indexOf(n)===0&&(i=o+1)}return r.splice(i,0,t),i}function pf(e){let t=uf.proxyRules,r=DM(e);for(let n=0;n<t.length;n++)if(r.indexOf(t[n].urlPrefix)===0)return t[n]}function Hx(e,t=uf.interceptors){let r=n=>n==null||n instanceof RegExp&&n.test(e)||typeof n=="string"&&e.startsWith(n);if(t){for(let n of t)if(Array.isArray(n.urls)){if(n.urls.some(r))return n}else if(r(n.urls))return n}return null}function ln(e,t,r=!1){if(!e||!t)return!1;let n=qx(e),i=qx(t);return!(!r&&n.scheme!==i.scheme)&&n.host!=null&&i.host!=null&&n.host.toLowerCase()===i.host.toLowerCase()&&n.port===i.port}function fy(e){if(typeof e=="string"){if(!rc(e))return!0;e=qx(e)}if(ln(e,Mn))return!0;let t=uf.trustedServers||[];for(let r=0;r<t.length;r++){let n=oj(t[r]);for(let i=0;i<n.length;i++)if(ln(e,n[i]))return!0}return!1}function oj(e){return py[e]||(Yx(e)||nc(e)?py[e]=[new cn(Oi(e))]:py[e]=[new cn(`http://${e}`),new cn(`https://${e}`)]),py[e]}function Oi(e,t=OM,r){return nc(e)?r?.preserveProtocolRelative?e:Mn.scheme==="http"&&Mn.authority===un(e).slice(2)?`http:${e}`:`https:${e}`:Yx(e)?e:my(e[0]==="/"?uj(t):t,e)}function Zx(e,t=OM,r){if(e==null||!rc(e))return e;let n=Rs(e),i=n.toLowerCase(),o=Rs(t).toLowerCase().replace(/\/+$/,""),s=r?Rs(r).toLowerCase().replace(/\/+$/,""):null;if(s&&o.indexOf(s)!==0)return e;let c=(g,v,E)=>(E=g.indexOf(v,E))===-1?g.length:E,a=c(i,"/",i.indexOf("//")+2),d=-1;for(;i.slice(0,a+1)===o.slice(0,a)+"/"&&(d=a+1,a!==i.length);)a=c(i,"/",a+1);if(d===-1||s&&d<s.length)return e;e=n.slice(d);let h=o.slice(d-1).replaceAll(/[^/]+/g,"").length;if(h>0)for(let g=0;g<h;g++)e=`../${e}`;else e=`./${e}`;return e}function Rs(e){return e=mj(e=fj(e=pj(e=Oi(e=e.trim()))))}function my(...e){let t=e.filter(c6);if(!t?.length)return;let r=[];if(rc(t[0])){let i=t[0],o=i.indexOf("//");o!==-1&&(r.push(i.slice(0,o+1)),cj(t[0])&&(r[0]+="/"),t[0]=i.slice(o+2))}else t[0][0]==="/"&&r.push("");let n=t.reduce((i,o)=>o?i.concat(o.split("/")):i,[]);for(let i=0;i<n.length;i++){let o=n[i];o===".."&&r.length>0&&r[r.length-1]!==".."?r.pop():(!o&&i===n.length-1||o&&(o!=="."||r.length===0))&&r.push(o)}return r.join("/")}function un(e,t=!1){if(e==null||hy(e)||ff(e))return null;let r=e.indexOf("://");if(r===-1&&nc(e))r=2;else{if(r===-1)return null;r+=3}let n=e.indexOf("/",r);return n!==-1&&(e=e.slice(0,n)),t&&(e=$M(e,!0)),e}function rc(e){return nc(e)||Yx(e)}function hy(e){return e!=null&&e.slice(0,5)==="blob:"}function ff(e){return e!=null&&e.slice(0,5)==="data:"}function gy(e){return MM(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function nc(e){return e!=null&&e[0]==="/"&&e[1]==="/"}function Yx(e){return e!=null&&LM.test(e)}function sj(e){return e!=null&&JG.test(e)||Mn.scheme==="https"&&nc(e)}function aj(e){return e!=null&&kM.test(e)||Mn.scheme==="http"&&nc(e)}function cj(e){return e!=null&&XG.test(e)}function wy(e){return nc(e)?`https:${e}`:e.replace(kM,"https:")}function lj(){return Mn.scheme==="http"}function jx(){return Mn.scheme==="https"}function $M(e,t=!1){return nc(e)?e.slice(2):(e=e.replace(LM,""),t&&e.length>1&&e[0]==="/"&&e[1]==="/"&&(e=e.slice(2)),e)}function uj(e){let t=e.indexOf("//"),r=e.indexOf("/",t+2);return r===-1?e:e.slice(0,r)}function dj(e){return e.endsWith("/")?e:`${e}/`}function pj(e){if(/^https?:\/\//i.test(e)){let t=RM(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}function fj(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}function mj(e){let t=uf.httpsDomains;if(!aj(e))return e;let r=e.indexOf("/",7),n;if(n=r===-1?e:e.slice(0,r),n=n.toLowerCase().slice(7),QG.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return lj()&&n===Mn.authority&&!KG.test(e)||(jx()&&n===Mn.authority||t&&t.some(i=>n===i||n.endsWith(`.${i}`))||jx()&&!pf(e))&&(e=wy(e)),e}function yy(e,t,r){if(!(t&&r&&e&&rc(e)))return e;let n=e.indexOf("//"),i=e.indexOf("/",n+2),o=e.indexOf(":",n+2),s=Math.min(i<0?e.length:i,o<0?e.length:o);return e.slice(n+2,s).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,n+2)}${r}${e.slice(s)}`}function qx(e){return typeof e=="string"?new cn(Oi(e)):(e.scheme||(e.scheme=Mn.scheme),e)}function mf(e,t){if(!t)return e;let r=Ds(e),n=r.query||{};for(let[o,s]of Object.entries(t))s!=null&&(n[o]=s);let i=nu(n);return i?`${r.path}?${i}`:r.path}function Jx(e){if(e==null)return null;let t=e.match(hj);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}var YG,uf,IM,LM,kM,JG,XG,QG,KG,ej,tj,cn,py,rj,Mn,nj,OM,df,ig,hj,ts=N(()=>{Ya();Pp();En();tu();zt();ng();AM();YG=()=>et.getLogger("esri.core.urlUtils"),uf=_t.request,IM="esri/config: esriConfig.request.proxyUrl is not set.",LM=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,kM=/^\s*http:/i,JG=/^\s*https:/i,XG=/^\s*file:/i,QG=/:\d+$/,KG=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,ej=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),tj=new RegExp("^((([^[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^[:]*))(:([0-9]+))?$"),cn=class{constructor(t=""){this.uri=t,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let r=this.uri.match(ej);this.scheme=r[2]||(r[1]?"":null),this.authority=r[4]||(r[3]?"":null),this.path=r[5],this.query=r[7]||(r[6]?"":null),this.fragment=r[9]||(r[8]?"":null),this.authority!=null&&(r=this.authority.match(tj),this.user=r[3]||null,this.password=r[4]||null,this.host=r[6]||r[7],this.port=r[9]||null)}toString(){return this.uri}},py={},rj=new cn(_t.applicationUrl),Mn=rj,nj=ij(),OM=nj,df=()=>Mn;ig={path:"",query:""};hj=/([^.]*)\.([^/]*)$/});var UM=N(()=>{});function VM(e){Qt=e}var gj,Qt,wj,og=N(()=>{Ut();ts();UM();Symbol.dispose??(Symbol.dispose=Symbol("Symbol.dispose")),Symbol.asyncDispose??(Symbol.asyncDispose=Symbol("Symbol.asyncDispose"));gj="4.32",wj=gj;wj="4.32.10";de("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),de("host-webworker")});function zM(e,t){let r=t?.url?.path;if(e&&r&&(e=Oi(e,r,{preserveProtocolRelative:!0}),t.portalItem&&t.readResourcePaths)){let n=Zx(e,t.portalItem.itemUrl);n!=null&&bj.test(n)&&t.readResourcePaths.push(t.portalItem.resourceFromPath(n).path)}return(e=Xx(e,t?.portal))&&by.test(e)?jM(e):e}function WM(e,t,r=sg.YES){if((e=e&&by.test(e)?qM(e):e)==null)return e;!rc(e)&&t?.blockedRelativeUrls&&t.blockedRelativeUrls.push(e);let n=Oi(e);if(t){let i=t.verifyItemRelativeUrls?.rootPath||t.url?.path;if(i){let o=Xx(i,t.portal),s=Xx(n,t.portal);n=Zx(s,o,o),n!=null&&n!==s&&n!==e&&t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.writtenUrls.push(n)}}return n=GM(n,t?.portal),rc(n)&&(n=Rs(n)),t?.resources&&t?.portalItem&&!rc(n)&&!ff(n)&&r===sg.YES&&t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(n),compress:!1}),n}function yj(e,t,r){return zM(e,r)}function BM(e,t,r,n){let i=WM(e,n);i!==void 0&&(t[r]=i)}function vj(e){return(e?.match(by)??null)?.[1]??null}function _j(e){let t=e?.match(by)??null;if(t==null)return null;let r=t[2],n=r.lastIndexOf("/");if(n===-1){let{path:s,extension:c}=Jx(r);return{prefix:null,filename:s,extension:c}}let{path:i,extension:o}=Jx(r.slice(n+1));return{prefix:r.slice(0,n),filename:i,extension:o}}function GM(e,t){return t&&!t.isPortal&&t.urlKey&&t.customBaseUrl?yy(e,`${t.urlKey}.${t.customBaseUrl}`,t.portalHostname):e}function Xx(e,t){if(!t||t.isPortal||!t.urlKey||!t.customBaseUrl)return e;let r=`${t.urlKey}.${t.customBaseUrl}`,n=df();return ln(n,`${n.scheme}://${r}`)?yy(e,t.portalHostname,r):yy(e,r,t.portalHostname)}function jM(e){if(!e)return e||null;let t=e;return t&&Qt&&!Qt.findCredential(t)&&(t=lf(t),t=t.replace(/^https?:\/\/www\.arcgis\.com/,"https://cdn.arcgis.com"),t=t.replace(/^https?:\/\/devext\.arcgis\.com/,"https://cdndev.arcgis.com"),t=t.replace(/^https?:\/\/qaext\.arcgis\.com/,"https://cdnqa.arcgis.com")),t}function qM(e){if(!e)return e||null;let t=e;return t=t.replace(/^https?:\/\/cdn\.arcgis\.com/,"https://www.arcgis.com"),t=t.replace(/^https?:\/\/cdndev\.arcgis\.com/,"https://devext.arcgis.com"),t=t.replace(/^https?:\/\/cdnqa\.arcgis\.com/,"https://qaext.arcgis.com"),t&&Qt&&!Qt.findCredential(t)&&(t=lf(t)),t}var by,bj,sg,xfe,HM=N(()=>{og();ts();ng();by=/\/items\/([^/]+)\/resources\/(.*)/,bj=/^\.\/resources\//;(function(e){e[e.YES=0]="YES",e[e.NO=1]="NO"})(sg||(sg={}));xfe=Object.freeze(Object.defineProperty({__proto__:null,get MarkKeep(){return sg},ensureMainOnlineDomain:GM,fromCDNUrl:qM,fromJSON:zM,itemIdFromResourceUrl:vj,prefixAndFilenameFromResourceUrl:_j,read:yj,toCDNUrl:jM,toJSON:WM,write:BM},Symbol.toStringTag,{value:"Module"}))});function Qx(e){let t=un(e,!0);return!!t&&(t=t.toLowerCase(),t.endsWith(".arcgis.com")&&(t.startsWith("services")||t.startsWith("tiles")||t.startsWith("features")))}var Sj,ZM,Afe,Ife,YM=N(()=>{ts();HM();Sj={mapserver:"MapServer",imageserver:"ImageServer",featureserver:"FeatureServer",knowledgegraphserver:"KnowledgeGraphServer",sceneserver:"SceneServer",streamserver:"StreamServer",vectortileserver:"VectorTileServer","3dtilesserver":"3DTilesServer",videoserver:"VideoServer"},ZM=Object.values(Sj),Afe=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(.+?)\\/(${ZM.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),Ife=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/([^/\\n]+)\\/(${ZM.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i")});function Ej(e){let t=un(e,!0);return!!t&&t.endsWith(".arcgis.com")&&!xj.has(t)&&!e.endsWith("/sharing/rest/generateToken")}function JM(e,t){return!(!t&&!_t.apiKey||!Ej(e))}var xj,XM=N(()=>{Ya();ts();xj=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"])});function KM(e,t,r=!1,n){return new Promise((i,o)=>{if(fo(n))return void o(QM());let s=()=>{d(),o(new Error(`Unable to load ${t}`))},c=()=>{let h=e;d(),i(h)},a=()=>{if(!e)return;let h=e;d(),h.src="",o(QM())},d=()=>{de("esri-image-decode")||(e.removeEventListener("error",s),e.removeEventListener("load",c)),s=null,c=null,e=null,n?.removeEventListener("abort",a),a=null,r&&URL.revokeObjectURL(t)};n?.addEventListener("abort",a),de("esri-image-decode")?e.decode().then(c,s):(e.addEventListener("error",s),e.addEventListener("load",c))})}function QM(){try{return new DOMException("Aborted","AbortError")}catch{let e=new Error;return e.name="AbortError",e}}function eA(){return new Error(Cj)}function tA(e){_t.request.crossOriginNoCorsDomains||(_t.request.crossOriginNoCorsDomains={});let t=_t.request.crossOriginNoCorsDomains;for(let r of e)r=r.toLowerCase(),/^https?:\/\//.test(r)?t[un(r)??""]=0:(t[un("http://"+r)??""]=0,t[un("https://"+r)??""]=0)}function rA(e){let t=_t.request.crossOriginNoCorsDomains;if(t){let r=un(e);if(r)return r=r.toLowerCase(),!ln(r,df())&&t[r]<Date.now()-36e5}return!1}async function nA(e){let t=Ds(e);e=t.path,t.query?.f==="json"&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}let r=_t.request.crossOriginNoCorsDomains,n=un(e);r&&n&&(r[n.toLowerCase()]=Date.now())}var Cj,iA=N(()=>{Ya();Ut();ki();ts();Cj="Timeout exceeded"});var oA={};Vo(oA,{execute:()=>Tj});function Tj(e,t){let r=t.responseType;r?r!=="array-buffer"&&r!=="blob"&&r!=="json"&&r!=="native"&&r!=="native-request-init"&&r!=="text"&&(r="text"):r="json",t.responseType=r;let n=t.signal;return delete t.signal,globalThis.invokeStaticMessage("request",{url:e,options:t},{signal:n}).then(async i=>{let o,s,c,a,d;if(i.data)if(i.data instanceof ArrayBuffer){if(!(r!=="json"&&r!=="text"&&r!=="blob"||(o=new Blob([i.data]),r!=="json"&&r!=="text"||(a=await o.text(),r!=="json")))){try{s=JSON.parse(a||null)}catch(h){let g={...h,url:e,requestOptions:t};throw new Be("request:server",h.message,g)}if(s.error){let h={...s.error,url:e,requestOptions:t};throw new Be("request:server",s.error.message,h)}}}else r==="native"&&(i.data.signal=n,c=await fetch(i.data.url,i.data),i.httpStatus=c.status);switch(r){case"blob":d=o;break;case"json":d=s;break;case"native":d=c;break;case"text":d=a;break;default:d=i.data}return{data:d,httpStatus:i.httpStatus,requestOptions:t,ssl:i.ssl,url:e}})}var sA=N(()=>{En()});var ho,vy=N(()=>{Fn();eu();Qn();Cn();ho=class e{constructor(){this._emitter=new e.EventEmitter(this)}emit(t,r){return this._emitter.emit(t,r)}on(t,r){return this._emitter.on(t,r)}once(t,r){return this._emitter.once(t,r)}hasEventListener(t){return this._emitter.hasEventListener(t)}};(function(e){class t{constructor(i=null){this._target=i,this._listenersMap=null}clear(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clear()}emit(i,o){let s=this._listenersMap?.get(i);if(!s)return!1;let c=this._target||this,a=!1;for(let d of s.slice()){let h="deref"in d?d.deref():d;h?h?.call(c,o):a=!0}return a&&(s=s.filter(d=>!("deref"in d)||d.deref()!=null),this._listenersMap.set(i,s)),s.length>0}on(i,o){if(Array.isArray(i)){let c=i.map(a=>this.on(a,o));return ql(c)}if(i.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??(this._listenersMap=new Map);let s=this._listenersMap.get(i)||[];return s.push(o),this._listenersMap.set(i,s),bt(()=>{let c=this._listenersMap?.get(i),a=c?.indexOf(o)??-1;a>=0&&c.splice(a,1)})}once(i,o){let s=this.on(i,c=>{s.remove(),("deref"in o?o.deref():o)?.call(null,c)});return s}hasEventListener(i){let o=this._listenersMap?.get(i);return o!=null&&o.length>0}}e.EventEmitter=t,e.EventedMixin=n=>{let i=class extends n{constructor(){super(...arguments),this._emitter=new t}destroy(){this._emitter.clear()}emit(o,s){return this._emitter.emit(o,s)}on(o,s){return this._emitter.on(o,s)}once(o,s){return this._emitter.once(o,s)}hasEventListener(o){return this._emitter.hasEventListener(o)}};return i=ne([ut("esri.core.Evented")],i),i};let r=class extends an{constructor(){super(...arguments),this._emitter=new ho.EventEmitter(this)}destroy(){this._emitter.clear()}emit(n,i){return this._emitter.emit(n,i)}on(n,i){return this._emitter.on(n,i)}once(n,i){return this._emitter.once(n,i)}hasEventListener(n){return this._emitter.hasEventListener(n)}};r=ne([ut("esri.core.Evented.EventedAccessor")],r),e.EventedAccessor=r})(ho)});var hf,ic,iu,aA,_y=N(()=>{hf="system",ic="unknown",iu="UTC",aA=Intl.DateTimeFormat().resolvedOptions().timeZone});var Kx,cA=N(()=>{Kx=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Bishkek"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Mazatlan"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]])});function Pj(e){return"timeZoneIANA"in e}function Mj(e){return e.startsWith("UTC")}function Sy(e,t=hf){return e?Pj(e)?e.timeZoneIANA:Aj(e,t):t}function Aj(e,t=hf){if(!e||!Kx.has(e.timeZone))return t;let r=Kx.get(e.timeZone);return Mj(e.timeZone)||e.respectsDaylightSaving?r:Ij(r)}function Ij(e){let t=Te.local().setZone(e),r=Math.min(t.set({month:1,day:1}).offset,t.set({month:5}).offset);return r===0?"Etc/UTC":`Etc/GMT${Pt.instance(-r).formatOffset(0,"narrow")}`}var e4=N(()=>{_y();cA();Dn()});function Nj(e){let t=t4.get(e);if(!t){let r=Ii(),n=kj[r]||r,i=Rj(e.timeZone??hf),o={...e,timeZone:i};t=new Intl.DateTimeFormat(n,o),t4.set(e,t)}return t}function gf(e,t=Oj){return Nj(t).format(e)}function Rj(e){switch(e){case hf:return aA;case ic:return iu;default:return e}}var rs,ag,cg,lg,oc,ou,lA,ug,dg,Lj,sme,kj,t4,Oj,r4=N(()=>{Gx();Ha();_y();e4();Dn();rs={year:"numeric",month:"numeric",day:"numeric"},ag={year:"numeric",month:"long",day:"numeric"},cg={year:"numeric",month:"short",day:"numeric"},lg={year:"numeric",month:"long",weekday:"long",day:"numeric"},oc={hour:"numeric",minute:"numeric"},ou={...oc,second:"numeric"},lA={hourCycle:"h23"},ug={...oc,...lA},dg={...ou,...lA},Lj={"short-date":rs,"short-date-short-time":{...rs,...oc},"short-date-short-time-24":{...rs,...ug},"short-date-long-time":{...rs,...ou},"short-date-long-time-24":{...rs,...dg},"short-date-le":rs,"short-date-le-short-time":{...rs,...oc},"short-date-le-short-time-24":{...rs,...ug},"short-date-le-long-time":{...rs,...ou},"short-date-le-long-time-24":{...rs,...dg},"long-month-day-year":ag,"long-month-day-year-short-time":{...ag,...oc},"long-month-day-year-short-time-24":{...ag,...ug},"long-month-day-year-long-time":{...ag,...ou},"long-month-day-year-long-time-24":{...ag,...dg},"day-short-month-year":cg,"day-short-month-year-short-time":{...cg,...oc},"day-short-month-year-short-time-24":{...cg,...ug},"day-short-month-year-long-time":{...cg,...ou},"day-short-month-year-long-time-24":{...cg,...dg},"long-date":lg,"long-date-short-time":{...lg,...oc},"long-date-short-time-24":{...lg,...ug},"long-date-long-time":{...lg,...ou},"long-date-long-time-24":{...lg,...dg},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":oc,"long-time":ou},sme=ru()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),kj={ar:"ar-u-nu-latn-ca-gregory"},t4=new WeakMap,Oj=Lj["short-date-short-time"];Zp(()=>{t4=new WeakMap})});function Fj(e){let t=e||uA;if(!xy.has(t)){let r=Ii(),n=Dj[Ii()]||r;xy.set(t,new Intl.NumberFormat(n,e))}return xy.get(t)}function wf(e,t){return Object.is(e,-0)&&(e=0),Fj(t).format(e)}var Dj,xy,uA,n4=N(()=>{Ha();Dj={ar:"ar-u-nu-latn"},xy=new WeakMap,uA={};Zp(()=>{xy=new WeakMap,uA={}})});function i4(e,t,r={}){let{format:n={}}=r;return Zo(e,i=>$j(i,t,n))}function $j(e,t,r){let n,i,o=e.indexOf(":");if(o===-1?n=e.trim():(n=e.slice(0,o).trim(),i=e.slice(o+1).trim()),!n)return"";let s=Ti(n,t);if(s==null)return"";let c=(i?r?.[i]:null)??r?.[n];return c?Uj(s,c):i?Vj(s,i):o4(s)}function Uj(e,t){switch(t.type){case"date":return gf(e,t.intlOptions);case"number":return wf(e,t.intlOptions);default:return dA().warn("missing format descriptor for key {key}"),o4(e)}}function Vj(e,t){switch(t.toLowerCase()){case"dateformat":return gf(e);case"numberformat":return wf(e);default:return dA().warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?gf(e):/^numberformat/i.test(t)?wf(e):o4(e)}}function o4(e){switch(typeof e){case"string":return e;case"number":return wf(e);case"boolean":return""+e;default:return e instanceof Date?gf(e):""}}var dA,s4=N(()=>{zt();Ho();Ra();r4();n4();dA=()=>et.getLogger("esri.intl.substitute")});function zj(e){return e in hA}function fA(e){if(zj(e)){let t=hA[e];return t===!0?e:t}return null}function mA(e){for(let t of yf.keys())wA(e.pattern,t)&&yf.delete(t)}function gA(e){return pg.includes(e)||(mA(e),pg.unshift(e)),bt(()=>{let t=pg.indexOf(e);t>-1&&(pg.splice(t,1),mA(e))})}async function a4(e){let t=Ii();yf.has(e)||yf.set(e,Wj(e,t));let r=yf.get(e);return r&&await Bj.add(r),r}function c4(e){if(!pA.test(e))return null;let t=pA.exec(e);if(t===null)return null;let[,r,n]=t;return fA(r+(n?"-"+n.toUpperCase():""))??fA(r)}async function Wj(e,t){let r=[];for(let n of pg)if(wA(n.pattern,e))try{return await n.fetchMessageBundle(e,t)}catch(i){r.push(i)}throw r.length?new Be("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:r}):new Be("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}function wA(e,t){return typeof e=="string"?t.startsWith(e):e.test(t)}var pA,hA,pg,yf,Bj,fg=N(()=>{En();Qn();ki();Ha();pA=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,hA={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:"no",nl:!0,no:!0,pl:!0,pt:"pt-BR","pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,zh:"zh-CN","zh-CN":!0,"zh-HK":!0,"zh-TW":!0};pg=[],yf=new Map;Zp(()=>{yf.clear()});Bj=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then(()=>this._decrease(),()=>this._decrease()),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=Tn())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&this._numLoading===0&&(this._dfd.resolve(),this._dfd=null)}}});async function Gj(e,t,r,n){let i=t.exec(r);if(!i)throw new Be("esri-intl:invalid-bundle",`Bundle id "${r}" is not compatible with the pattern "${t}"`);let o=i[1]?`${i[1]}/`:"",s=i[2],c=c4(n),a=`${o}${s}.json`,d=c?`${o}${s}_${c}.json`:a,h;try{h=await yA(e(d))}catch(g){if(d===a)throw new Be("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:g});try{h=await yA(e(a))}catch(v){throw new Be("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:v})}}return h}async function yA(e){if(bA.fetchBundleAsset!=null)return bA.fetchBundleAsset(e);let t=await ar(e,{responseType:"text"});return JSON.parse(t.data)}function vA(e){return new l4(e)}var l4,bA,_A=N(()=>{Ey();En();fg();l4=class{constructor({base:t="",pattern:r,location:n=new URL(window.location.href)}){let i;i=typeof n=="string"?o=>new URL(o,new URL(n,window.location.href)).href:n instanceof URL?o=>new URL(o,n).href:n,this.pattern=typeof r=="string"?new RegExp(`^${r}`):r,this.getAssetUrl=i,t=t?t.endsWith("/")?t:t+"/":"",this.matcher=new RegExp(`^${t}(?:(.*)\\/)?(.*)$`)}fetchMessageBundle(t,r){return Gj(this.getAssetUrl,this.matcher,t,r)}};bA={}});var u4=N(()=>{r4();n4();s4();Ha();fg();fg();_A();Cy();gA(vA({pattern:"esri/",location:bf}))});function SA(e){return typeof e=="string"?document.getElementById(e):e??null}var xA=N(()=>{});var sc,d4,EA,mg,CA,TA=N(()=>{Fn();eu();ki();Cn();(function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"})(sc||(sc={}));d4=class{constructor(){this._resolver=Tn(),this._status=sc.PENDING,this._resolvingPromises=[],this._resolver.promise.then(()=>{this._status=sc.RESOLVED,this._cleanUp()},()=>{this._status=sc.REJECTED,this._cleanUp()}),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(t){this._resolvingPromises.push(t),this._tryResolve()}isResolved(){return this._status===sc.RESOLVED}isRejected(){return this._status===sc.REJECTED}isFulfilled(){return this._status!==sc.PENDING}abort(){this._resolver.reject(Pn())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;let t=Tn(),r=[...this._resolvingPromises,t.promise],n=this._allPromise=Promise.all(r);n.then(()=>{this.isFulfilled()||this._allPromise!==n||this._resolver.resolve()},i=>{this.isFulfilled()||this._allPromise!==n||Jh(i)||this._resolver.reject(i)}),t.resolve()}},EA=e=>{let t=class extends e{constructor(...r){super(...r),this._promiseProps=new d4,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(r,n){return this._promiseProps.promise.then(()=>this).then(r,n)}catch(r){return this.when(null,r)}addResolvingPromise(r){r&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in r?r.when():r)}};return t=ne([ut("esri.core.Promise")],t),t},mg=class extends EA(an){};mg=ne([ut("esri.core.Promise")],mg),function(e){e.EsriPromiseMixin=EA}(mg||(mg={}));CA=mg});function jj(e){return{ok:!0,value:e}}function qj(e){return{ok:!1,error:e}}function Hj(e){return e!=null&&e.ok===!0?e.value:null}function Zj(e){return e!=null&&e.ok===!1?e.error:null}var su,PA=N(()=>{Fn();eu();Qa();ki();$n();Cn();su=class extends an{get value(){return Hj(this._result)}get error(){return Zj(this._result)}get finished(){return this._result!=null}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=VP(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;let{signal:r}=this._abortController;this.promise=e(r),this.promise.then(n=>{this._result=jj(n),this._cleanup()},n=>{this._result=qj(n),this._cleanup()}),this._abortHandle=Vn(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=Jl(this._abortHandle),this._abortController=null}};ne([le()],su.prototype,"value",null),ne([le()],su.prototype,"error",null),ne([le()],su.prototype,"finished",null),ne([le()],su.prototype,"promise",void 0),ne([le()],su.prototype,"_result",void 0),su=ne([ut("esri.core.asyncUtils.ReactiveTask")],su)});var ft,MA=N(()=>{(function(e){e[e.ADD=1]="ADD",e[e.REMOVE=2]="REMOVE",e[e.MOVE=4]="MOVE"})(ft||(ft={}))});function AA(e){return(t,r)=>{t[r]=e}}var IA=N(()=>{});var ns,hg=N(()=>{_x();ns=class extends sf{notify(){let t=this._observers;if(t&&t.length>0){let r=t.slice();for(let n of r)n.onInvalidated(),n.onCommitted()}}}});function LA(e){e&&typeof e=="object"&&"destroy"in e&&typeof e.destroy=="function"&&e.destroy()}function p4(e){return e?e instanceof uc?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function f4(e){if(e?.length)return e[0]}function Yj(e,t,r,n){let i=Math.min(e.length-r,t.length-n),o=0;for(;o<i&&e[r+o]===t[n+o];)o++;return o}function kA(e,t,r,n){t&&t.forEach((i,o,s)=>{e.push(i),kA(e,r.call(n,i,o,s),r,n)})}var Fs,h4,g4,Ni,ac,cc,lc,m4,Jj,uc,OA=N(()=>{Fn();Zw();vy();Qn();xn();Gh();MA();Kh();Hl();Ko();$n();IA();Cn();hg();h4=class{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(t){this.defaultPrevented=!1,this.item=t}},g4=class{constructor(t,r,n,i,o){this.target=t,this.added=r,this.removed=n,this.start=i,this.deleteCount=o}},Ni=new po(h4,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});ac=new Set,cc=new Set,lc=new Set,m4=new Map,Jj=0,uc=Fs=class extends ho.EventedAccessor{static isCollection(e){return e!=null&&e instanceof Fs}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new ns,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:Jj++})}normalizeCtorArgs(e){return e?Array.isArray(e)||e instanceof Fs?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),this._emitter.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get items(){return $e(this._observable),this._items}set items(e){this._emitBeforeChanges(ft.ADD)||(this._splice(0,this.length,p4(e)),this._emitAfterChanges(ft.ADD))}hasEventListener(e){return!this.destroyed&&(e==="change"?this._chgListeners.length>0:this._emitter.hasEventListener(e))}on(e,t){if(this.destroyed)return bt();if(e==="change"){let r=this._chgListeners,n={removed:!1,callback:t};return r.push(n),this._notifications&&this._notifications.push({listeners:r.slice(),items:this._items.slice(),changes:[]}),bt(()=>{n.removed=!0,r.splice(r.indexOf(n),1)})}return this._emitter.on(e,t)}once(e,t){let r="deref"in t?()=>t.deref():()=>t,n=this.on(e,i=>{r()?.call(null,i),n.remove()});return n}add(e,t){if($e(this._observable),this._emitBeforeChanges(ft.ADD))return this;let r=this.getNextIndex(t??null);return this._splice(r,0,[e]),this._emitAfterChanges(ft.ADD),this}addMany(e,t=this._items.length){if($e(this._observable),!e?.length)return this;if(this._emitBeforeChanges(ft.ADD))return this;let r=this.getNextIndex(t);return this._splice(r,0,p4(e)),this._emitAfterChanges(ft.ADD),this}at(e){if($e(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if($e(this._observable),!this.length||this._emitBeforeChanges(ft.REMOVE))return[];let e=this._removeAllRaw();return this._emitAfterChanges(ft.REMOVE),e}_removeAllRaw(){return this.length===0?[]:this._splice(0,this.length)||[]}clone(){return $e(this._observable),this._createNewInstance({items:this._items.map(Vt)})}concat(...e){$e(this._observable);let t=e.map(p4);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if($e(this._observable),!this.length||this._emitBeforeChanges(ft.REMOVE))return;let r=this._splice(0,this.length),n=r.length;for(let i=0;i<n;i++)e.call(t,r[i],i,r);this._emitAfterChanges(ft.REMOVE)}destroyAll(){this.drain(LA)}destroyMany(e){let t=this.removeMany(e);return t.forEach(LA),t}every(e,t){return $e(this._observable),this._items.every(e,t)}filter(e,t){$e(this._observable);let r=arguments.length===2?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:r})}find(e,t){return $e(this._observable),this._items.find(e,t)}findIndex(e,t){return $e(this._observable),this._items.findIndex(e,t)}flatten(e,t){$e(this._observable);let r=[];return kA(r,this,e,t),new Fs(r)}forEach(e,t){return $e(this._observable),this._items.forEach(e,t)}getItemAt(e){return $e(this._observable),this._items[e]}getNextIndex(e){$e(this._observable);let t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return $e(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return $e(this._observable),this._items.indexOf(e,t)}join(e=","){return $e(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return $e(this._observable),this._items.lastIndexOf(e,t)}map(e,t){$e(this._observable);let r=this._items.map(e,t);return new Fs({items:r})}reorder(e,t=this.length-1){$e(this._observable);let r=this.indexOf(e);if(r!==-1){if(t<0?t=0:t>=this.length&&(t=this.length-1),r!==t){if(this._emitBeforeChanges(ft.MOVE))return e;this._splice(r,1),this._splice(t,0,[e]),this._emitAfterChanges(ft.MOVE)}return e}}pop(){if($e(this._observable),!this.length||this._emitBeforeChanges(ft.REMOVE))return;let e=f4(this._splice(this.length-1,1));return this._emitAfterChanges(ft.REMOVE),e}push(...e){return $e(this._observable),this._emitBeforeChanges(ft.ADD)||(this._splice(this.length,0,e),this._emitAfterChanges(ft.ADD)),this.length}reduce(e,t){$e(this._observable);let r=this._items;return arguments.length===2?r.reduce(e,t):r.reduce(e)}reduceRight(e,t){$e(this._observable);let r=this._items;return arguments.length===2?r.reduceRight(e,t):r.reduceRight(e)}remove(e){return $e(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if($e(this._observable),e<0||e>=this.length||this._emitBeforeChanges(ft.REMOVE))return;let t=f4(this._splice(e,1));return this._emitAfterChanges(ft.REMOVE),t}removeMany(e){if($e(this._observable),!e?.length||this._emitBeforeChanges(ft.REMOVE))return[];let t=e instanceof Fs?e.toArray():e,r=this._items,n=[],i=t.length;for(let o=0;o<i;o++){let s=t[o],c=r.indexOf(s);if(c>-1){let a=1+Yj(t,r,o+1,c+1),d=this._splice(c,a);d&&d.length>0&&n.push.apply(n,d),o+=a-1}}return this._emitAfterChanges(ft.REMOVE),n}reverse(){if($e(this._observable),this._emitBeforeChanges(ft.MOVE))return this;let e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(ft.MOVE),this}shift(){if($e(this._observable),!this.length||this._emitBeforeChanges(ft.REMOVE))return;let e=f4(this._splice(0,1));return this._emitAfterChanges(ft.REMOVE),e}slice(e=0,t=this.length){return $e(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return $e(this._observable),this._items.some(e,t)}sort(e){if($e(this._observable),!this.length||this._emitBeforeChanges(ft.MOVE)||!this._requiresSort(e))return this;let t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(ft.MOVE),this}_requiresSort(e=(t,r)=>t===r?0:t<r?-1:1){let t=this.length-1;for(let r=0;r<t;r++)if(e(this.items[r],this.items[r+1])>0)return!0;return!1}splice(e,t,...r){$e(this._observable);let n=(t?ft.REMOVE:0)|(r.length?ft.ADD:0);if(this._emitBeforeChanges(n))return[];let i=this._splice(e,t,r)||[];return this._emitAfterChanges(n),i}toArray(){return $e(this._observable),this._items.slice()}toJSON(){return $e(this._observable),this.toArray()}toLocaleString(){return $e(this._observable),this._items.toLocaleString()}toString(){return $e(this._observable),this._items.toString()}unshift(...e){return $e(this._observable),!e.length||this._emitBeforeChanges(ft.ADD)||(this._splice(0,0,e),this._emitAfterChanges(ft.ADD)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,r){let n=this._items,i=this.itemType,o,s;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=cf(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(s=n.splice(e,t),this.hasEventListener("before-remove")){let c=Ni.acquire();c.target=this,c.cancellable=!0;for(let a=0,d=s.length;a<d;a++)o=s[a],c.reset(o),this.emit("before-remove",c),c.defaultPrevented&&(s.splice(a,1),n.splice(e,0,o),e+=1,a-=1,d-=1);Ni.release(c)}if(this.length=this._items.length,this.hasEventListener("after-remove")){let c=Ni.acquire();c.target=this,c.cancellable=!1;let a=s.length;for(let d=0;d<a;d++)c.reset(s[d]),this.emit("after-remove",c);Ni.release(c)}}if(r?.length){if(i){let h=[];for(let g of r){let v=i.ensureType(g);v==null&&g!=null||h.push(v)}r=h}let c=this.hasEventListener("before-add"),a=this.hasEventListener("after-add"),d=e===this.length;if(c||a){let h=Ni.acquire();h.target=this,h.cancellable=!0;let g=Ni.acquire();g.target=this,g.cancellable=!1;for(let v of r)c?(h.reset(v),this.emit("before-add",h),h.defaultPrevented||(d?n.push(v):n.splice(e++,0,v),this._set("length",n.length),a&&(g.reset(v),this.emit("after-add",g)))):(d?n.push(v):n.splice(e++,0,v),this._set("length",n.length),g.reset(v),this.emit("after-add",g));Ni.release(g),Ni.release(h)}else{if(d)for(let h of r)n.push(h);else n.splice(e,0,...r);this._set("length",n.length)}}if((r?.length||s?.length)&&this._notifyChangeEvent(r,s),this.hasEventListener("after-splice")){let c=new g4(this,r,s,e,t);this.emit("after-splice",c)}return s}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){let r=Ni.acquire();r.target=this,r.cancellable=!0,r.type=e,this.emit("before-changes",r),t=r.defaultPrevented,Ni.release(r)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){let t=Ni.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),Ni.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;let e=this._notifications;this._notifications=null;for(let t of e){let r=t.changes;ac.clear(),cc.clear(),lc.clear();for(let{added:a,removed:d}of r){if(a)if(lc.size===0&&cc.size===0)for(let h of a)ac.add(h);else for(let h of a)cc.has(h)?(lc.add(h),cc.delete(h)):lc.has(h)||ac.add(h);if(d)if(lc.size===0&&ac.size===0)for(let h of d)cc.add(h);else for(let h of d)ac.has(h)?ac.delete(h):(lc.delete(h),cc.add(h))}let n=Un.acquire();ac.forEach(a=>{n.push(a)});let i=Un.acquire();cc.forEach(a=>{i.push(a)});let o=this._items,s=t.items,c=Un.acquire();if(lc.forEach(a=>{s.indexOf(a)!==o.indexOf(a)&&c.push(a)}),t.listeners&&(n.length||i.length||c.length)){let a={target:this,added:n,removed:i,moved:c},d=t.listeners.length;for(let h=0;h<d;h++){let g=t.listeners[h];g.removed||g.callback.call(this,a)}}Un.release(n),Un.release(i),Un.release(c)}ac.clear(),cc.clear(),lc.clear()}};uc.ofType=e=>{if(!e)return Fs;if(m4.has(e))return m4.get(e);let t=null;if(typeof e=="function")t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(let n in e.typeMap){let i=e.typeMap[n].prototype.declaredClass;t?t+=` | ${i}`:t=i}let r=class extends Fs{};return ne([AA({Type:e,ensureType:typeof e=="function"?Li(e):Qp(e)})],r.prototype,"itemType",void 0),r=ne([ut(`esri.core.Collection<${t}>`)],r),m4.set(e,r),r},ne([le()],uc.prototype,"_updating",void 0),ne([le()],uc.prototype,"length",void 0),ne([le()],uc.prototype,"items",null),ne([le({readOnly:!0})],uc.prototype,"updating",null),uc=Fs=ne([ut("esri.core.Collection")],uc)});function gg(e,t,r={}){return RA(e,t,r,Xj)}function NA(e,t,r={}){return RA(e,t,r,Qj)}function RA(e,t,r={},n){let i=null,o=r.once?(s,c)=>{n(s)&&(Jl(i),t(s,c))}:(s,c)=>{n(s)&&t(s,c)};if(i=gM(e,o,r.sync,r.equals),r.initial){let s=e();o(s,s)}return i}function Xj(e){return!0}function Qj(e){return!!e}var Ty,w4=N(()=>{PA();OA();Zh();Qn();Qa();ki();Ux();$x();Ty={sync:!0,initial:!0}});function DA(){if(Kj)return crypto.randomUUID();let e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;let t=r=>e[r].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}var Kj,FA=N(()=>{Kj="randomUUID"in crypto});function tq(e){let t="__accessorMetadata__"in e?Li(e):e;return function(...r){if(r.push(t),typeof r[2]=="number")throw new Error("Using @cast has parameter decorator is not supported since 4.16");return rq.apply(this,r)}}function rq(e,t,r,n){ef(e,t).cast=n}function nq(e){return(t,r)=>{ef(t,e).cast=t[r]}}function Py(...e){if(e.length!==3||typeof e[1]!="string")return e.length===1&&eq.call(e[0])==="[object Function]"?tq(e[0]):e.length===1&&typeof e[0]=="string"?nq(e[0]):void 0}var eq,y4=N(()=>{Hl();tf();eq=Object.prototype.toString});function WA(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function iq(e,t,r){}function oq(e,t,r){}function aq(e,t){return sq.test(t)?"":t}function lq(e,t){e=wg.trimRight(e),e[e.length-1]!==";"&&(e+=";");var r=e.length,n=!1,i=0,o=0,s="";function c(){if(!n){var h=wg.trim(e.slice(i,o)),g=h.indexOf(":");if(g!==-1){var v=wg.trim(h.slice(0,g)),E=wg.trim(h.slice(g+1));if(v){var M=t(i,s.length,v,E,h);M&&(s+=M+"; ")}}}i=o+1}for(;o<r;o++){var a=e[o];if(a==="/"&&e[o+1]==="*"){var d=e.indexOf("*/",o+2);if(d===-1)break;o=d+1,i=o+1,n=!1}else a==="("?n=!0:a===")"?n=!1:a===";"?n||c():a===`
9
9
  `&&c()}return wg.trim(s)}function $A(e){return e==null}function pq(e){var t={};for(var r in e)t[r]=e[r];return t}function BA(e){e=pq(e||{}),e.whiteList=e.whiteList||My.whiteList,e.onAttr=e.onAttr||My.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||My.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||My.safeAttrValue,this.options=e}function GA(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}function gq(e,t,r){}function wq(e,t,r){}function yq(e,t,r){}function bq(e,t,r){}function qA(e){return e.replace(_q,"&lt;").replace(Sq,"&gt;")}function vq(e,t,r,n){if(r=QA(r),t==="href"||t==="src"){if(r=Oy.trim(r),r==="#")return"#";if(!(r.substr(0,7)==="http://"||r.substr(0,8)==="https://"||r.substr(0,7)==="mailto:"||r.substr(0,4)==="tel:"||r.substr(0,11)==="data:image/"||r.substr(0,6)==="ftp://"||r.substr(0,2)==="./"||r.substr(0,3)==="../"||r[0]==="#"||r[0]==="/"))return""}else if(t==="background"){if(Ay.lastIndex=0,Ay.test(r))return""}else if(t==="style"){if(UA.lastIndex=0,UA.test(r)||(VA.lastIndex=0,VA.test(r)&&(Ay.lastIndex=0,Ay.test(r))))return"";n!==!1&&(n=n||jA,r=n.process(r))}return r=KA(r),r}function HA(e){return e.replace(xq,"&quot;")}function ZA(e){return e.replace(Eq,'"')}function YA(e){return e.replace(Cq,function(r,n){return n[0]==="x"||n[0]==="X"?String.fromCharCode(parseInt(n.substr(1),16)):String.fromCharCode(parseInt(n,10))})}function JA(e){return e.replace(Tq,":").replace(Pq," ")}function XA(e){for(var t="",r=0,n=e.length;r<n;r++)t+=e.charCodeAt(r)<32?" ":e.charAt(r);return Oy.trim(t)}function QA(e){return e=ZA(e),e=YA(e),e=JA(e),e=XA(e),e}function KA(e){return e=HA(e),e=qA(e),e}function Mq(){return""}function Aq(e,t){typeof t!="function"&&(t=function(){});var r=!Array.isArray(e);function n(s){return r?!0:Oy.indexOf(e,s)!==-1}var i=[],o=!1;return{onIgnoreTag:function(s,c,a){if(n(s))if(a.isClosing){var d="[/removed]",h=a.position+d.length;return i.push([o!==!1?o:a.position,h]),o=!1,d}else return o||(o=a.position),"[removed]";else return t(s,c,a)},remove:function(s){var c="",a=0;return Oy.forEach(i,function(d){c+=s.slice(a,d[0]),a=d[1]}),c+=s.slice(a),c}}}function Iq(e){for(var t="",r=0;r<e.length;){var n=e.indexOf("<!--",r);if(n===-1){t+=e.slice(r);break}t+=e.slice(r,n);var i=e.indexOf("-->",n);if(i===-1)break;r=i+3}return t}function Lq(e){var t=e.split("");return t=t.filter(function(r){var n=r.charCodeAt(0);return n===127?!1:n<=31?n===10||n===13:!0}),t.join("")}function kq(e){var t=dc.spaceIndex(e),r;return t===-1?r=e.slice(1,-1):r=e.slice(1,t+1),r=dc.trim(r).toLowerCase(),r.slice(0,1)==="/"&&(r=r.slice(1)),r.slice(-1)==="/"&&(r=r.slice(0,-1)),r}function Oq(e){return e.slice(0,2)==="</"}function Nq(e,t,r){var n="",i=0,o=!1,s=!1,c=0,a=e.length,d="",h="";e:for(c=0;c<a;c++){var g=e.charAt(c);if(o===!1){if(g==="<"){o=c;continue}}else if(s===!1){if(g==="<"){n+=r(e.slice(i,c)),o=c,i=c;continue}if(g===">"){n+=r(e.slice(i,o)),h=e.slice(o,c+1),d=kq(h),n+=t(o,n.length,d,h,Oq(h)),i=c+1,o=!1;continue}if(g==='"'||g==="'")for(var v=1,E=e.charAt(c-v);E.trim()===""||E==="=";){if(E==="="){s=g;continue e}E=e.charAt(c-++v)}}else if(g===s){s=!1;continue}}return i<e.length&&(n+=r(e.substr(i))),n}function Dq(e,t){var r=0,n=0,i=[],o=!1,s=e.length;function c(v,E){if(v=dc.trim(v),v=v.replace(Rq,"").toLowerCase(),!(v.length<1)){var M=t(v,E||"");M&&i.push(M)}}for(var a=0;a<s;a++){var d=e.charAt(a),h,g;if(o===!1&&d==="="){o=e.slice(r,a),r=a+1,n=e.charAt(r)==='"'||e.charAt(r)==="'"?r:$q(e,a+1);continue}if(o!==!1&&a===n){if(g=e.indexOf(d,a+1),g===-1)break;h=dc.trim(e.slice(n+1,g)),c(o,h),o=!1,a=g,r=a+1;continue}if(/\s|\n|\t/.test(d))if(e=e.replace(/\s|\n|\t/g," "),o===!1)if(g=Fq(e,a),g===-1){h=dc.trim(e.slice(r,a)),c(h),o=!1,r=a+1;continue}else{a=g-1;continue}else if(g=Uq(e,a-1),g===-1){h=dc.trim(e.slice(r,a)),h=zA(h),c(o,h),o=!1,r=a+1;continue}else continue}return r<e.length&&(o===!1?c(e.slice(r)):c(o,zA(dc.trim(e.slice(r))))),dc.trim(i.join(" "))}function Fq(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="="?t:-1}}function $q(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="'"||r==='"'?t:-1}}function Uq(e,t){for(;t>0;t--){var r=e[t];if(r!==" ")return r==="="?t:-1}}function Vq(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function zA(e){return Vq(e)?e.substr(1,e.length-2):e}function Iy(e){return e==null}function Gq(e){var t=Ly.spaceIndex(e);if(t===-1)return{html:"",closing:e[e.length-2]==="/"};e=Ly.trim(e.slice(t+1,-1));var r=e[e.length-1]==="/";return r&&(e=Ly.trim(e.slice(0,-1))),{html:e,closing:r}}function jq(e){var t={};for(var r in e)t[r]=e[r];return t}function qq(e){var t={};for(var r in e)Array.isArray(e[r])?t[r.toLowerCase()]=e[r].map(function(n){return n.toLowerCase()}):t[r.toLowerCase()]=e[r];return t}function tI(e){e=jq(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=go.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=qq(e.whiteList||e.allowList):e.whiteList=go.whiteList,e.onTag=e.onTag||go.onTag,e.onTagAttr=e.onTagAttr||go.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||go.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||go.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||go.safeAttrValue,e.escapeHtml=e.escapeHtml||go.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new zq(e.css))}var ky,b4,cr,v4,au,sq,cq,wg,uq,My,dq,fq,_4,S4,mq,hq,Oy,jA,_q,Sq,xq,Eq,Cq,Tq,Pq,Ay,UA,VA,Ny,dc,Rq,zq,go,eI,Wq,Bq,Ly,Hq,vf,Zq,rI,nI=N(()=>{ky=function(){return ky=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},ky.apply(this,arguments)},b4={exports:{}},cr={},v4={exports:{}},au={};sq=/javascript\s*\:/img;au.whiteList=WA();au.getDefaultWhiteList=WA;au.onAttr=iq;au.onIgnoreAttr=oq;au.safeAttrValue=aq;cq={indexOf:function(e,t){var r,n;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var n,i;if(Array.prototype.forEach)return e.forEach(t,r);for(n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}},wg=cq;uq=lq,My=au,dq=uq;BA.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,r=t.options,n=r.whiteList,i=r.onAttr,o=r.onIgnoreAttr,s=r.safeAttrValue,c=dq(e,function(a,d,h,g,v){var E=n[h],M=!1;if(E===!0?M=E:typeof E=="function"?M=E(g):E instanceof RegExp&&(M=E.test(g)),M!==!0&&(M=!1),g=s(h,g),!!g){var L={position:d,sourcePosition:a,source:v,isWhite:M};if(M){var F=i(h,g,L);return $A(F)?h+":"+g:F}else{var F=o(h,g,L);if(!$A(F))return F}}});return c};fq=BA;(function(e,t){var r=au,n=fq;function i(s,c){var a=new n(c);return a.process(s)}t=e.exports=i,t.FilterCSS=n;for(var o in r)t[o]=r[o]})(v4,v4.exports);_4=v4.exports,S4={indexOf:function(e,t){var r,n;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var n,i;if(Array.prototype.forEach)return e.forEach(t,r);for(n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/,r=t.exec(e);return r?r.index:-1}},mq=_4.FilterCSS,hq=_4.getDefaultWhiteList,Oy=S4;jA=new mq;_q=/</g,Sq=/>/g,xq=/"/g,Eq=/&quot;/g,Cq=/&#([a-zA-Z0-9]*);?/gim,Tq=/&colon;?/gim,Pq=/&newline;?/gim,Ay=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,UA=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,VA=/u\s*r\s*l\s*\(.*/gi;cr.whiteList=GA();cr.getDefaultWhiteList=GA;cr.onTag=gq;cr.onIgnoreTag=wq;cr.onTagAttr=yq;cr.onIgnoreTagAttr=bq;cr.safeAttrValue=vq;cr.escapeHtml=qA;cr.escapeQuote=HA;cr.unescapeQuote=ZA;cr.escapeHtmlEntities=YA;cr.escapeDangerHtml5Entities=JA;cr.clearNonPrintableCharacter=XA;cr.friendlyAttrValue=QA;cr.escapeAttrValue=KA;cr.onIgnoreTagStripAll=Mq;cr.StripTagBody=Aq;cr.stripCommentTag=Iq;cr.stripBlankChar=Lq;cr.cssFilter=jA;cr.getDefaultCSSWhiteList=hq;Ny={},dc=S4;Rq=/[^a-zA-Z0-9\\_:.-]/gim;Ny.parseTag=Nq;Ny.parseAttr=Dq;zq=_4.FilterCSS,go=cr,eI=Ny,Wq=eI.parseTag,Bq=eI.parseAttr,Ly=S4;tI.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,r=t.options,n=r.whiteList,i=r.onTag,o=r.onIgnoreTag,s=r.onTagAttr,c=r.onIgnoreTagAttr,a=r.safeAttrValue,d=r.escapeHtml,h=t.cssFilter;r.stripBlankChar&&(e=go.stripBlankChar(e)),r.allowCommentTag||(e=go.stripCommentTag(e));var g=!1;r.stripIgnoreTagBody&&(g=go.StripTagBody(r.stripIgnoreTagBody,o),o=g.onIgnoreTag);var v=Wq(e,function(E,M,L,F,z){var V={sourcePosition:E,position:M,isClosing:z,isWhite:Object.prototype.hasOwnProperty.call(n,L)},H=i(L,F,V);if(!Iy(H))return H;if(V.isWhite){if(V.isClosing)return"</"+L+">";var B=Gq(F),Y=n[L],re=Bq(B.html,function($,me){var Le=Ly.indexOf(Y,$)!==-1,Ce=s(L,$,me,Le);return Iy(Ce)?Le?(me=a(L,$,me,h),me?$+'="'+me+'"':$):(Ce=c(L,$,me,Le),Iy(Ce)?void 0:Ce):Ce});return F="<"+L,re&&(F+=" "+re),B.closing&&(F+=" /"),F+=">",F}else return H=o(L,F,V),Iy(H)?d(F):H},d);return g&&(v=g.remove(v)),v};Hq=tI;(function(e,t){var r=cr,n=Ny,i=Hq;function o(c,a){var d=new i(a);return d.process(c)}t=e.exports=o,t.filterXSS=o,t.FilterXSS=i,function(){for(var c in r)t[c]=r[c];for(var a in n)t[a]=n[a]}();function s(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}s()&&(self.filterXSS=e.exports)})(b4,b4.exports);vf=b4.exports,Zq=function(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},rI=function(){function e(t,r){var n=this;this.arcgisWhiteList={a:["href","style","target"],abbr:["title"],article:["style"],aside:["style"],audio:["autoplay","controls","loop","muted","preload"],b:[],blockquote:["style"],br:[],code:["style"],dd:["style"],del:["style"],details:["open","style"],div:["align","aria-hidden","aria-label","style"],dl:["style"],dt:["style"],em:[],figcaption:["style"],figure:["style"],font:["color","face","size","style"],footer:["style"],h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],header:["style"],hr:[],i:[],img:["alt","border","height","src","style","width"],li:[],main:["style"],mark:["style"],nav:["style"],ol:[],p:["style"],pre:["style"],section:["style"],source:["media","src","type"],span:["aria-hidden","aria-label","style"],strong:[],sub:["style"],summary:["style"],sup:["style"],table:["border","cellpadding","cellspacing","height","style","width"],tbody:[],tr:["align","height","style","valign"],td:["align","colspan","height","nowrap","rowspan","style","valign","width"],th:["align","colspan","height","nowrap","rowspan","style","valign","width"],time:["style"],u:[],ul:[],video:["autoplay","controls","height","loop","muted","poster","preload","width"]},this.arcgisCSSWhiteList=ky(ky({},vf.getDefaultCSSWhiteList()),{"align-items":!0,"align-self":!0,flex:!0,"flex-basis":!0,"flex-direction":!0,"flex-flow":!0,"flex-grow":!0,"flex-shrink":!0,"flex-wrap":!0,float:!0,gap:!0,grid:!0,"grid-area":!0,"grid-auto-columns":!0,"grid-auto-flow":!0,"grid-auto-rows":!0,"grid-column":!0,"grid-column-end":!0,"grid-column-start":!0,"grid-row":!0,"grid-row-end":!0,"grid-row-start":!0,"grid-template":!0,"grid-template-areas":!0,"grid-template-columns":!0,"grid-template-rows":!0,"justify-content":!0,"justify-items":!0,"justify-self":!0,"line-height":!0,overflow:!0}),this.allowedProtocols=["http","https","mailto","iform","tel","flow","lfmobile","arcgis-navigator","arcgis-appstudio-player","arcgis-survey123","arcgis-collector","arcgis-workforce","arcgis-explorer","arcgis-trek2there","arcgis-quickcapture","mspbi","comgooglemaps","pdfefile","pdfehttp","pdfehttps","boxapp","boxemm","awb","awbs","gropen","radarscope"],this.arcgisFilterOptions={allowCommentTag:!0,safeAttrValue:function(o,s,c,a){return o==="a"&&s==="href"||(o==="img"||o==="source")&&s==="src"?n.sanitizeUrl(c):vf.safeAttrValue(o,s,c,a)}},this._entityMap={"&":"&#x38;","<":"&#x3C;",">":"&#x3E;",'"':"&#x22;","'":"&#x27;","/":"&#x2F;"};var i;t&&!r?i=t:t&&r?(i=Object.create(this.arcgisFilterOptions),i.css={whiteList:this.arcgisCSSWhiteList},Object.keys(t).forEach(function(o){if(o==="whiteList")i.whiteList=n._extendObjectOfArrays([n.arcgisWhiteList,t.whiteList||{}]);else if(o==="css"){var s=t.css.whiteList;s!=null&&t.css instanceof Object&&Object.keys(s).forEach(function(c){return i.css.whiteList[c]=s[c]})}else i[o]=t[o]})):(i=Object.create(this.arcgisFilterOptions),i.whiteList=this.arcgisWhiteList,i.css={whiteList:this.arcgisCSSWhiteList}),this.xssFilterOptions=i,this._xssFilter=new vf.FilterXSS(i)}return e.prototype.sanitize=function(t,r){switch(r===void 0&&(r={}),typeof t){case"number":return isNaN(t)||!isFinite(t)?null:t;case"boolean":return t;case"string":return this._xssFilter.process(t);case"object":return this._iterateOverObject(t,r);default:return r.allowUndefined&&typeof t>"u"?void 0:null}},e.prototype.sanitizeUrl=function(t,r){var n=(r??{}).isProtocolRequired,i=n===void 0?!0:n,o=this._trim(t.substring(0,t.indexOf(":"))),s=t==="/",c=/^#/.test(t),a=o&&this.allowedProtocols.indexOf(o.toLowerCase())>-1;return s||c||a?vf.escapeAttrValue(t):!o&&!i?vf.escapeAttrValue("https://".concat(t)):""},e.prototype.sanitizeHTMLAttribute=function(t,r,n,i){return typeof this.xssFilterOptions.safeAttrValue=="function"?this.xssFilterOptions.safeAttrValue(t,r,n,i):vf.safeAttrValue(t,r,n,i)},e.prototype.validate=function(t,r){r===void 0&&(r={});var n=this.sanitize(t,r);return{isValid:t===n,sanitized:n}},e.prototype.encodeHTML=function(t){var r=this;return String(t).replace(/[&<>"'\/]/g,function(n){return r._entityMap[n]})},e.prototype.encodeAttrValue=function(t){var r=/^[a-zA-Z0-9]$/;return String(t).replace(/[\x00-\xFF]/g,function(n,i){return r.test(n)?n:"&#x".concat(Number(t.charCodeAt(i)).toString(16),";")})},e.prototype._extendObjectOfArrays=function(t){var r={};return t.forEach(function(n){Object.keys(n).forEach(function(i){Array.isArray(n[i])&&Array.isArray(r[i])?r[i]=r[i].concat(n[i]):r[i]=n[i]})}),r},e.prototype._iterateOverObject=function(t,r){var n=this;r===void 0&&(r={});try{var i=!1,o=void 0;if(Array.isArray(t))o=t.reduce(function(c,a){var d=n.validate(a,r);return d.isValid?c.concat([a]):(i=!0,c.concat([d.sanitized]))},[]);else if(Zq(t)){var s=Object.keys(t);o=s.reduce(function(c,a){var d=t[a],h=n.validate(d,r);return h.isValid?c[a]=d:(i=!0,c[a]=h.sanitized),c},{})}else return r.allowUndefined&&typeof t>"u"?void 0:null;return i?o:t}catch{return null}},e.prototype._trim=function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},e}()});function Dy(){Ry.clear()}function iI(e){return Ry.get(e)}function oI(e,t){Ry.set(e,t)}function Fy(e){Ry.delete(e)}var Ry,x4=N(()=>{Ry=new Map});function sI(...e){let t=Un.acquire();for(let n=0;n<e.length;n++){let i=e[n],o=typeof i;if(o==="string")t.push(i);else if(Array.isArray(i))t.push.apply(t,i);else if(o==="object")for(let s in i)i[s]&&t.push(s)}let r=t.join(" ");return Un.release(t),r}async function aI(e,t){await uM(Yh(t));let r=typeof e=="function"?e():e;r&&("setFocus"in r&&typeof r.setFocus=="function"?await r.setFocus():r instanceof HTMLElement&&r.focus())}var rge,Yq,Jq,Xq,E4,$y=N(()=>{nI();Zw();Qn();Ut();zt();ki();w4();Kh();x4();rge=(()=>{let e=new Map,t=new ResizeObserver(n=>{Dy();for(let i of n)e.get(i.target)?.(i)}),r=(n,i,o)=>(e.set(n,i),t.observe(n,o),bt(()=>{t.unobserve(n),e.delete(n)}));return(n,i,o)=>{let s=null;return ql([gg(()=>typeof n=="function"?n():n,c=>{s?.remove(),c&&(s=r(c,i,o))},Ty),bt(()=>s?.remove())])}})(),Yq=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"],Jq=Yq.reduce((e,t)=>(e[t]=[],e),{}),Xq=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],E4=new rI({whiteList:Jq,onTagAttr:(e,t,r)=>{let n=`${t}="${r}"`;if(Xq.includes(t))return n},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0)});function M4(e){if(!(e instanceof Element&&e.tagName.includes("-")))return!1;let t=window.customElements.get(e.tagName.toLowerCase());return!!t&&e instanceof t}var pI,Vy,fI,cI,zy,I4,mI,Qq,C4,Kq,T4,P4,hI,lI,uI,dI,eH,Uy,tH,L4,cu,A4,rH,nH,_f,gI=N(()=>{$y();pI="http://www.w3.org/",Vy=`${pI}2000/svg`,fI=`${pI}1999/xlink`,cI=[],zy=(e,t)=>{let r={};return Object.keys(e).forEach(n=>{r[n]=e[n]}),t&&Object.keys(t).forEach(n=>{r[n]=t[n]}),r},I4=(e,t)=>e.vnodeSelector===t.vnodeSelector&&(e.properties&&t.properties?e.properties.key===t.properties.key&&e.properties.bind===t.properties.bind:!e.properties&&!t.properties),mI=e=>{if(typeof e!="string")throw new Error("Style values must be strings")},Qq=(e,t,r)=>{if(t.vnodeSelector!==""){for(let n=r;n<e.length;n++)if(I4(e[n],t))return n}return-1},C4=(e,t,r,n)=>{let i=e[t];if(i.vnodeSelector==="")return;let o=i.properties;if(!(o&&(o.key===void 0?o.bind:o.key))){for(let s=0;s<e.length;s++)if(s!==t){let c=e[s];if(I4(c,i))throw new Error(`${r.vnodeSelector} had a ${i.vnodeSelector} child ${n==="added"?n:"removed"}, but there is now more than one. You must add unique key properties to make them distinguishable.`)}}},Kq=e=>{if(e.properties){let t=e.properties.enterAnimation;t&&t(e.domNode,e.properties)}},T4=[],P4=!1,hI=e=>{(e.children||[]).forEach(hI),e.properties&&e.properties.afterRemoved&&e.properties.afterRemoved.apply(e.properties.bind||e.properties,[e.domNode])},lI=()=>{P4=!1,T4.forEach(hI),T4.length=0},uI=e=>{T4.push(e),P4||(P4=!0,typeof window<"u"&&"requestIdleCallback"in window?window.requestIdleCallback(lI,{timeout:16}):setTimeout(lI,16))},dI=e=>{let t=e.domNode;if(e.properties){let r=e.properties.exitAnimation;if(r)return t.style.pointerEvents="none",void r(t,()=>{t.parentNode&&(t.parentNode.removeChild(t),uI(e))},e.properties)}t.parentNode&&(t.parentNode.removeChild(t),uI(e))},eH=(e,t,r)=>{if(!t)return;let n=r.eventHandlerInterceptor,i=Object.keys(t),o=i.length;for(let s=0;s<o;s++){let c=i[s],a=t[c];if(c==="className")throw new Error('Property "className" is not supported, use "class".');if(c==="class")A4(e,a,!0);else if(c==="classes"){let d=Object.keys(a),h=d.length;for(let g=0;g<h;g++){let v=d[g];a[v]&&e.classList.add(v)}}else if(c==="styles"){let d=Object.keys(a),h=d.length;for(let g=0;g<h;g++){let v=d[g],E=a[v];E&&(mI(E),r.styleApplyer(e,v,E))}}else if(c!=="key"&&a!=null){let d=typeof a;d==="function"?(c.lastIndexOf("on",0)===0&&(n&&(a=n(c,a,e,t)),c==="oninput"&&function(){let h=a;a=function(g){h.apply(this,[g]),g.target["oninput-value"]=g.target.value}}()),e[c]=a):r.namespace===Vy?c==="href"?e.setAttributeNS(fI,c,a):e.setAttribute(c,a):d==="string"&&c!=="value"?c==="innerHTML"?e[c]=E4.sanitize(a):M4(e)&&c in e?e[c]=a:e.setAttribute(c,a):e[c]=a}}};tH=(e,t,r)=>{if(t)for(let n of t)cu(n,e,void 0,r)},L4=(e,t,r)=>{tH(e,t.children,r),t.text&&(e.textContent=t.text),eH(e,t.properties,r),t.properties&&t.properties.afterCreate&&t.properties.afterCreate.apply(t.properties.bind||t.properties,[e,r,t.vnodeSelector,t.properties,t.children])},cu=(e,t,r,n)=>{let i,o=0,s=e.vnodeSelector,c=t.ownerDocument;if(s==="")i=e.domNode=c.createTextNode(e.text),r!==void 0?t.insertBefore(i,r):t.appendChild(i);else{for(let a=0;a<=s.length;++a){let d=s.charAt(a);if(a===s.length||d==="."||d==="#"){let h=s.charAt(o-1),g=s.slice(o,a);h==="."?i.classList.add(g):h==="#"?i.id=g:(g==="svg"&&(n=zy(n,{namespace:Vy})),n.namespace!==void 0?i=e.domNode=c.createElementNS(n.namespace,g):(i=e.domNode=e.domNode||c.createElement(g),g==="input"&&e.properties&&e.properties.type!==void 0&&i.setAttribute("type",e.properties.type)),r!==void 0?t.insertBefore(i,r):i.parentNode!==t&&t.appendChild(i)),o=a+1}}L4(i,e,n)}},A4=(e,t,r)=>{t&&t.split(" ").forEach(n=>{n&&e.classList.toggle(n,r)})},rH=(e,t,r,n)=>{if(!r)return;let i=!1,o=Object.keys(r),s=o.length;for(let c=0;c<s;c++){let a=o[c],d=r[a],h=t[a];if(a==="class")h!==d&&(A4(e,h,!1),A4(e,d,!0));else if(a==="classes"){let g=e.classList,v=Object.keys(d),E=v.length;for(let M=0;M<E;M++){let L=v[M],F=!!d[L];F!==!!h[L]&&(i=!0,F?g.add(L):g.remove(L))}}else if(a==="styles"){let g=Object.keys(d),v=g.length;for(let E=0;E<v;E++){let M=g[E],L=d[M];L!==h[M]&&(i=!0,L?(mI(L),n.styleApplyer(e,M,L)):n.styleApplyer(e,M,""))}}else if(d||typeof h!="string"||(d=""),a!=="value"||M4(e)){if(d!==h){let g=typeof d;g==="function"&&n.eventHandlerInterceptor||(n.namespace===Vy?a==="href"?e.setAttributeNS(fI,a,d):e.setAttribute(a,d):g==="string"?a==="innerHTML"?e[a]=E4.sanitize(d):a==="role"&&d===""?e.removeAttribute(a):M4(e)&&a in e?e[a]=d:e.setAttribute(a,d):e[a]!==d&&(e[a]=d),i=!0)}}else{let g=e[a];g!==d&&(e["oninput-value"]?g===e["oninput-value"]:d!==h)&&(e[a]=d,e["oninput-value"]=void 0),d!==h&&(i=!0)}}return i},nH=(e,t,r,n,i)=>{if(r===n)return!1;n=n||cI;let o,s=(r=r||cI).length,c=n.length,a=0,d=0,h=!1;for(;d<c;){let g=a<s?r[a]:void 0,v=n[d];if(g!==void 0&&I4(g,v))h=Uy(g,v,i)||h,a++;else{let E=Qq(r,v,a+1);if(E>=0){for(o=a;o<E;o++)dI(r[o]),C4(r,o,e,"removed");h=Uy(r[E],v,i)||h,a=E+1}else cu(v,t,a<s?r[a].domNode:void 0,i),Kq(v),C4(n,d,e,"added")}d++}if(s>a)for(o=a;o<s;o++)dI(r[o]),C4(r,o,e,"removed");return h};Uy=(e,t,r)=>{let n=e.domNode,i=!1;if(e===t)return!1;let o=!1;if(t.vnodeSelector===""){if(t.text!==e.text){let s=n.ownerDocument.createTextNode(t.text);return n.parentNode.replaceChild(s,n),t.domNode=s,i=!0,i}t.domNode=n}else t.vnodeSelector.lastIndexOf("svg",0)===0&&(r=zy(r,{namespace:Vy})),e.text!==t.text&&(o=!0,t.text===void 0?n.removeChild(n.firstChild):n.textContent=t.text),t.domNode=n,o=nH(t,n,e.children,t.children,r)||o,o=rH(n,e.properties,t.properties,r)||o,t.properties&&t.properties.afterUpdate&&t.properties.afterUpdate.apply(t.properties.bind||t.properties,[n,r,t.vnodeSelector,t.properties,t.children]);return o&&t.properties&&t.properties.updateAnimation&&t.properties.updateAnimation(n,t.properties,e.properties),i};_f=(e,t)=>({getLastRender:()=>e,update:r=>{if(e.vnodeSelector!==r.vnodeSelector)throw new Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");let n=e;e=r,Uy(n,r,t)},domNode:e.domNode})});var iH,Sf,xf,k4=N(()=>{gI();iH={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,r)=>{t.charAt(0)==="-"?e.style.setProperty(t,r):e.style[t]=r}},Sf=e=>zy(iH,e),xf={create:(e,t)=>(t=Sf(t),cu(e,document.createElement("div"),void 0,t),_f(e,t)),append:(e,t,r)=>(r=Sf(r),cu(t,e,void 0,r),_f(t,r)),insertBefore:(e,t,r)=>(r=Sf(r),cu(t,e.parentNode,e,r),_f(t,r)),merge:(e,t,r)=>(r=Sf(r),t.domNode=e,L4(e,t,r),_f(t,r)),replace:(e,t,r)=>(r=Sf(r),cu(t,e.parentNode,e,r),e.parentNode.removeChild(e),_f(t,r))}});var oH,wI=N(()=>{k4();oH=Array.prototype.find?(e,t)=>e.find(t):(e,t)=>e.filter(t)[0]});var yI,bI=N(()=>{yI={handleInterceptedEvent:(e,t,r,n)=>(e.scheduleRender(),t.properties[`on${n.type}`].apply(t.properties.bind||r,[n]))}});var sH,vI,_I=N(()=>{sH={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,r)=>{t.charAt(0)==="-"?e.style.setProperty(t,r):e.style[t]=r}},vI=e=>({...sH,...e})});var aH,cH,SI,xI,EI=N(()=>{k4();wI();bI();_I();aH=(e,t)=>{let r=[];for(;e&&e!==t;)r.push(e),e=e.parentNode;return r},cH=(e,t)=>e.find(t),SI=(e,t,r=!1)=>{let n=e;return t.forEach((i,o)=>{let s=n?.children?cH(n.children,c=>c.domNode===i):void 0;r&&!s&&o!==t.length-1||(n=s)}),n},xI=e=>{let t,r={...yI,...e},n=vI(r),i=n.performanceLogger,o,s=!0,c=!1,a=[],d=[],h=(v,E,M)=>{let L;n.eventHandlerInterceptor=(z,V,H,B)=>function(Y){let re;i("domEvent",Y);let $=aH(Y.currentTarget,L.domNode),me=$.some(Ce=>customElements.get(Ce?.tagName?.toLowerCase()));if(Y.eventPhase===Event.CAPTURING_PHASE||!me)$.reverse(),re=SI(L.getLastRender(),$);else{let Ce=Y.composedPath(),Ne=Ce.slice(Ce.indexOf(Y.currentTarget),Ce.indexOf(L.domNode)).reverse();re=SI(L.getLastRender(),Ne,!0)}let Le;return re&&(Le=r.handleInterceptedEvent(t,re,this,Y)),i("domEventProcessed",Y),Le},r.postProcessProjectionOptions?.(n);let F=M();L=v(E,F,n),n.eventHandlerInterceptor=void 0,a.push(L),d.push(M),r.afterFirstVNodeRendered&&r.afterFirstVNodeRendered(L,F)},g=()=>{if(o=void 0,s){s=!1,i("renderStart",void 0);for(let v=0;v<a.length;v++){let E=d[v]();i("rendered",void 0);try{a[v].update(E)}catch(M){console.error(M)}i("patched",void 0)}i("renderDone",void 0),s=!0}};return r.modifyDoRenderImplementation&&(g=r.modifyDoRenderImplementation(g,a,d)),t={renderNow:g,scheduleRender:()=>{o||c||(o=requestAnimationFrame(g))},stop:()=>{o&&(cancelAnimationFrame(o),o=void 0),c=!0},resume:()=>{c=!1,s=!0,t.scheduleRender()},append:(v,E)=>{h(xf.append,v,E)},insertBefore:(v,E)=>{h(xf.insertBefore,v,E)},merge:(v,E)=>{h(xf.merge,v,E)},replace:(v,E)=>{h(xf.replace,v,E)},detach:v=>{for(let E=0;E<d.length;E++)if(d[E]===v)return d.splice(E,1),a.splice(E,1)[0];throw new Error("renderFunction was not found")}},t}});var CI,O4=N(()=>{"use strict";CI=":"});function N4(e){let t=e;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let r=t;return r.manager?.loadedCalled||r._offspring.push(e),r._postLoad.promise}return!1}function lH(e){let t=e.split(CI);return t.length===1?[t[0],q0(t[0])]:t}function dH([e,t]){this[e]=t}function pH(e){let t=e.prototype,r=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(i,o){r.setAttribute.call(this.el,i,o)},t.removeAttribute=function(i){r.removeAttribute.call(this.el,i)},Wy(t,"isConnected",{get(){return Reflect.get(r,"isConnected",this.el)}}))}var Wy,uH,Ef,xge,R4,TI=N(()=>{"use strict";O4();to();Wy=Object.defineProperty;uH=globalThis.HTMLElement??lH,xge=(Ef=class extends uH{constructor(){super(),this._store={},this._pendingAttributes=[],this._postLoad=new eo,this._postLoaded=new eo,this._offspring=[],this._saveInstanceProperties();let t=this.constructor;t._LitConstructor?this._initializeComponent({a:t._LitConstructor}):t._loadPromise.then(this._initializeComponent.bind(this)).catch(r=>{this._postLoaded.reject(r),setTimeout(()=>{throw r})})}static _initializePrototype(){this._properties?.forEach(this._bindProp,this),this._asyncMethods?.forEach(this._bindAsync,this),this._syncMethods?.forEach(this._bindSync,this)}static _bindProp(t){Wy(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this._store[t]},set(r){this._store[t]=r}})}static _bindAsync(t){Wy(this.prototype,t,{async value(...r){return this._litElement||await this._postLoaded.promise,await this._litElement[t](...r)},configurable:!0})}static _bindSync(t){Wy(this.prototype,t,{value(...r){return this._litElement[t](...r)},configurable:!0})}get manager(){return this._litElement?.manager}_saveInstanceProperties(){let t=this.constructor,r=this;t._properties?.forEach(n=>{Object.hasOwn(this,n)&&(this._store[n]=r[n],delete r[n])})}attributeChangedCallback(t,r,n){this._litElement?.attributeChangedCallback(t,r,n),this._litElement||this._pendingAttributes.push(t)}connectedCallback(){this._litElement?this._litElement.connectedCallback?.():queueMicrotask(()=>{this._ancestorLoad=N4(this)})}disconnectedCallback(){this._litElement?.disconnectedCallback?.()}async componentOnReady(){return await this._postLoaded.promise,this}_initializeComponent(t){let r=this.constructor,n=r._name,i=this._store,o=Object.values(t).find(g=>g.tagName===n),s=`${n}--lazy`,c=o;for(;c&&!Object.hasOwn(c,"lumina");)c=Object.getPrototypeOf(c);pH(c),!r._LitConstructor&&(r._LitConstructor=o,customElements.define(s,o)),o.lazy=this;let d=document.createElement(s);o.lazy=void 0,this._litElement=d,this._store=d,this._pendingAttributes.forEach(g=>{let v=this.getAttribute(g);d.attributeChangedCallback(g,null,v)}),Object.entries(i).forEach(dH,d);let h=this.isConnected;(h||this._ancestorLoad)&&(d.connectedCallback?.(),h||d.disconnectedCallback())}addController(){}requestUpdate(){this._litElement?.requestUpdate()}},Ef.lumina=!0,Ef);R4={}});function PI(e,t){if(t){let r=e.constructor.elementProperties;e.manager.internals.members=Object.fromEntries(Array.from(r,([n,i])=>i.noAccessor?void 0:[n,[(i.readOnly?2048:0)|(i.state?32:16)]]).filter(i6))}else{let r=e.constructor,n=r.__registerControllers?.(e)??void 0;if(r.__registerControllers=void 0,typeof n!="object")throw new Error("Failed to retrieve component meta");e.manager.internals.members=Object.fromEntries(Object.entries(n).filter(([i,[o]])=>(o&63)!==0))}}function MI(e,t=8){return e==null||typeof e=="object"||typeof e=="function"?e:t&4?e==="false"?!1:e===""||!!e:t&2?Number.parseFloat(e):t&1?String(e):e}var AI,D4=N(()=>{"use strict";to();AI=(e,t)=>e.manager.internals.members?.[t]?.[0]});function du(e){yg!==e&&(yg=e,queueMicrotask(()=>{yg===e&&(yg=void 0)}))}function pu(e){return yg}function U4(e){if(e===void 0){lu=[];return}let t=lu.indexOf(e);lu=t===-1?[...lu,e]:lu.slice(0,t+1),queueMicrotask(()=>{lu=[]})}function V4(){return lu}function fH(e){Cf!==e&&(Cf=e,queueMicrotask(()=>{Cf===e&&(Cf=void 0)}))}function mH(){let e=Cf;return Cf=void 0,e}function II(e){Tt(e,void 0,this)}function LI(e){if(typeof e!="object"&&typeof e!="function"||e===null)return e;let t=new Proxy(e,{get(r,n,i){if(!(wH.has(n)&&n in r&&r[n]===t)&&(n in r||n in Promise.prototype||typeof n=="symbol"))return typeof r=="function"?r[n]:Reflect.get(r,n,i)},set:(r,n,i,o)=>Reflect.set(r,n,i,o)});return t}function RI(e,t,r){let n=Object.keys(e),i=n.length;uu===void 0&&queueMicrotask(_g),uu??(uu=new Map);let o=uu.get(e);return o===void 0&&(o={callbacks:[],keyCount:i},uu.set(e,o)),o.keyCount!==i&&(o.callbacks.forEach(s=>s(n)),o.callbacks=[],o.keyCount=i),o.callbacks.push(s=>{let c=d=>Tt(t,null,d),a=s[i];a===void 0?c(void 0):e[a]===r?c(a):c(void 0)}),r}function _g(){Array.from(uu?.entries()??[]).forEach(([e,{callbacks:t}])=>{let r=Object.keys(e);t.forEach(n=>n(r))}),uu=void 0}function qy(e,t,r){var n;let i=t,o=e.manager.internals;(n=o.allWatchers)[i]??(n[i]=[]);let s=o.allWatchers[i],c=r,a=(d,h,g)=>Tt(c,null,d,h,g);return s.push(a),()=>{let d=s.indexOf(a);d!==-1&&s.splice(d,1)}}function FI(e,t,r){let n=e.manager.internals;return n.trackedValue!==$4&&n.trackedValue!==r&&n.firePropTrackers(void 0,void 0),n.keyTrackers.length===0&&queueMicrotask(()=>n.firePropTrackers(void 0,void 0)),n.trackedValue=r,n.keyTrackers.push((i,o)=>Tt(t,void 0,r===o?i:void 0)),r}function Hy(e=[pu(),...V4()],t,r){let n=Array.isArray(e)?e:[e],i=n.length+1,o=c=>{i-=1,c!==void 0&&(i=Math.min(i,0)),i===0&&t(c)};n.forEach(c=>RI(c,a=>o(a===void 0?void 0:{key:a,host:c,isReactive:!1}),r));let s=n.find(c=>"manager"in c&&typeof c.manager=="object"&&c.manager.component===c);return s&&FI(s,c=>o(c===void 0?void 0:{key:c,host:s,isReactive:!0}),r),r}function $I(e){bg.readOnly=!0;try{return e()}finally{bg.readOnly=!1}}function yH(e,{host:t,key:r,isReactive:n},i){let o=t,s=o[r]!==e.exports,c=o[r]!==i,a=i!==e.exports;if(s&&!c&&a&&(o[r]=e.exports),t===e.component){if(n){let h=e.component.manager.internals;c&&h.markExports(e,o[r]),qy(e.component,r,g=>{g!==e.exports&&h.markExports(e,g)})}e.assignedProperty=n?void 0:r}e.watchExports(()=>{if(o[r]===e.exports)return;let h=e.component.manager;h.internals.setters[r]?.includes(h.internals.readonlySetter)?$I(()=>{o[r]=e.exports}):o[r]=e.exports})}var Gy,kI,yg,lu,Cf,hH,gH,z4,bg,vg,OI,jy,NI,wH,uu,DI,F4,By,$4,UI,VI=N(()=>{"use strict";D4();to();to();to();to();Gy=Symbol.for("controller"),kI=e=>typeof e=="object"&&e!==null&&(Gy in e||"hostConnected"in e||"hostDisconnected"in e||"hostUpdate"in e||"hostUpdated"in e);lu=[];hH=async(e,t)=>{let r=z4(e);if(r===void 0)return e;if(await r.ready,typeof t=="function"){let n=r.watchExports(i=>t(i,n))}return r.exports},gH=async e=>{let t=z4(e);return await t.ready,t},z4=e=>{let r=pu().manager.internals.resolveExports(e);if(r!==void 0)return r;if(kI(e))return e;let n=mH();if(n!==void 0)return n},bg={setter:!1,getter:!1,readOnly:!1},vg=new WeakMap;OI=Gy;jy=class{constructor(e){this._callbacks={hostConnected:[],hostDisconnected:[],hostLoad:[],hostLoaded:[],hostUpdate:[],hostUpdated:[],hostDestroy:[],hostLifecycle:[]},this._ready=new eo,this._lifecycleCleanups=[],this.connectedCalled=!1,this._loadCalled=!1,this.loadedCalled=!1,this[OI]=!0,this.ready=this._ready.promise,this._exports=LI(this),this._exportWatchers=new Set;let t=e??pu(new.target.name);this.component=t,this.component.addController(this),this.component.manager===void 0||(U4(this),queueMicrotask(()=>this.catchUpLifecycle()))}catchUpLifecycle(){let{manager:e}=this.component;e.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),e._loadCalled&&this.triggerLoad().then(()=>{e.loadedCalled&&this.triggerLoaded()}).catch(console.error)}get exports(){return this._exports}set exports(e){let t=this._exports;t!==e&&(this._exports=e,this._exportWatchers.forEach(Tt),this.connectedCalled&&this.assignedProperty!==!1&&this.component.requestUpdate(this.assignedProperty,t)),this._ready.resolve(e)}setProvisionalExports(e,t=!0){this._exports=t?LI(e):e,this._exportWatchers.forEach(Tt)}watchExports(e){let t=()=>e(this._exports);return this._exportWatchers.add(t),()=>void this._exportWatchers.delete(t)}get use(){return du(this.component),hH}get useRef(){return du(this.component),gH}get useRefSync(){return du(this.component),z4}controllerRemoved(){this.component.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(e){this._callbacks.hostConnected.push(e)}onDisconnected(e){this._callbacks.hostDisconnected.push(e)}onLoad(e){this._callbacks.hostLoad.push(e)}onLoaded(e){this._callbacks.hostLoaded.push(e)}onUpdate(e){this._callbacks.hostUpdate.push(e)}onUpdated(e){this._callbacks.hostUpdated.push(e)}onDestroy(e){this._callbacks.hostDestroy.push(e)}onLifecycle(e){this._callbacks.hostLifecycle.push(e),this.connectedCalled&&this.component.el.isConnected&&this._callLifecycle(e)}triggerConnected(){let e=this;e.hostConnected&&Tt(e.hostConnected,e),this._callbacks.hostConnected.forEach(Tt),this.triggerLifecycle(),this.connectedCalled=!0}triggerDisconnected(){let e=this;e.hostDisconnected&&Tt(e.hostDisconnected,e),this._callbacks.hostDisconnected.forEach(Tt),this._lifecycleCleanups.forEach(Tt),this._lifecycleCleanups=[]}async triggerLoad(){if(this._loadCalled)return;this._loadCalled=!0;let e=this;e.hostLoad&&await qm(e.hostLoad,e),this._callbacks.hostLoad.length>0&&await Promise.allSettled(this._callbacks.hostLoad.map(qm)),this._ready.resolve(this._exports)}triggerLoaded(){if(this.loadedCalled)return;let e=this;e.hostLoaded&&Tt(e.hostLoaded,e),this._callbacks.hostLoaded.forEach(Tt),this.loadedCalled=!0}triggerUpdate(e){let t=this;t.hostUpdate&&Tt(t.hostUpdate,t,e),this._callbacks.hostUpdate.forEach(II,e)}triggerUpdated(e){let t=this;t.hostUpdated&&Tt(t.hostUpdated,t,e),this._callbacks.hostUpdated.forEach(II,e)}triggerDestroy(){let e=this;e.hostDestroy&&Tt(e.hostDestroy,e),this._callbacks.hostDestroy.forEach(Tt)}triggerLifecycle(){let e=this;e.hostLifecycle&&this._callLifecycle(()=>e.hostLifecycle()),this._callbacks.hostLifecycle.forEach(this._callLifecycle,this)}_callLifecycle(e){du(this.component);let t=Tt(e);(Array.isArray(t)?t:[t]).forEach(n=>{typeof n=="function"?this._lifecycleCleanups.push(n):typeof n=="object"&&typeof n.remove=="function"&&this._lifecycleCleanups.push(n.remove)})}};NI=jy;wH=new Set(["exports","_exports"]);uu=void 0;DI=class{constructor(e){this.enabledWatchers={},this.allWatchers={},this.enableReadonly=()=>{if(this.enableReadonly=void 0,!this.component.manager.isLit)return;let t=this.component.manager.internals;Object.entries(t.members).forEach(([r,[n]])=>{var i;n&2048&&((i=t.setters)[r]??(i[r]=[]),t.setters[r].push(t.readonlySetter))})},this.trackedValue=$4,this.keyTrackers=[],this.getters={},this.setters={},this.accessorGetter={},this.accessorSetter={},this._exports=new WeakMap,this.readonlySetter=(t,r,n)=>{if(bg.readOnly)return t;throw new Error(`Cannot assign to read-only property "${n}" of ${this.component.el.tagName.toLowerCase()}. Trying to assign "${String(t)}"`)},this.component=e}firePropTrackers(e,t){let r=this.keyTrackers;this.trackedValue=$4,this.keyTrackers=[],r.forEach(n=>n(e,t))}getSetProxy(e){let t=this.component,r=t.constructor.prototype;if(this._getSetProxy(r,e,"class"),t.manager.isLit)return;let n=t.el.constructor.prototype;r!==n&&this._getSetProxy(n,e,"html")}_getSetProxy(e,t,r){let n=this.component,i=AI(n,t),o;do o=Object.getOwnPropertyDescriptor(e,t);while(!o&&(e=Object.getPrototypeOf(e)));if(!o)return;let s=o.get,c=o.set,a=By in s,d=By in c;if(a&&d)return;let h=!a,g=!d,v=h?function(){let L=s.call(this),F=vg.get(this);if(bg.getter||F===void 0)return L;let z=F.manager.internals;L=z.accessorGetter[t](L,t);let V=z.getters[t]??F4;for(let H=0;H<V.length;H++)L=V[H](L,t);return L}:s,E=g?function(L){let F=s.call(this),z=vg.get(this);if(z===void 0){c.call(this,L);return}let V=z.manager.isLit?L??void 0:MI(L,i),H=z.manager.internals;if(V===F)c.call(this,V);else{let B=bg.setter?F4:H.setters[t]??F4;for(let Y=0;Y<B.length&&(V=B[Y](V,F,t),V!==F);Y++);V=H.accessorSetter[t](V,F,t),c.call(this,V),V!==F&&H.enabledWatchers[t]?.forEach(Y=>Y(V,F,t))}H.keyTrackers.length>0&&H?.firePropTrackers(t,L)}:c;h&&(v[By]=!0),g&&(E[By]=!0),Object.defineProperty(e,t,{...o,get:v,set:E})}markExports(e,t){(typeof t=="object"&&t!==null||typeof t=="function")&&this._exports.set(t,e)}resolveExports(e){if(typeof e=="object"&&e!==null||typeof e=="function")return this._exports.get(e)}},F4=[],By=Symbol(),$4=Symbol();UI=e=>(...t)=>{let r=V4(),n=new e(...t),i=n.exports;U4(r.at(-1));let o=n.component.manager.internals;o.markExports(n,i),n.watchExports(c=>o.markExports(n,c)),fH(n);let s=[n.component,...r].reverse();return Hy(s,c=>c===void 0?void 0:yH(n,c,i),i)}});function _H(e){"triggerConnected"in e?e.triggerConnected():Tt(e.hostConnected,e)}function SH(e){"triggerDisconnected"in e?e.triggerDisconnected():Tt(e.hostDisconnected,e)}async function xH(e){"triggerLoad"in e?await e.triggerLoad():await qm(e.hostLoad,e)}function EH(e){"triggerLoaded"in e?e.triggerLoaded():Tt(e.hostLoaded,e)}function CH(e){"triggerUpdate"in e?e.triggerUpdate(this):Tt(e.hostUpdate,e,this)}function TH(e){"triggerUpdated"in e?e.triggerUpdated(this):Tt(e.hostUpdated,e,this)}function PH(e){"triggerDestroy"in e?e.triggerDestroy():Tt(e.hostDestroy,e)}function qI(e,t){if(!t)return e;let r={...e};return Object.entries(t).forEach(([n,i])=>{typeof i=="object"?r[n]=qI(e[n],i):r[n]=i??e[n]}),r}var WI,bH,W4,vH,zI,MH,BI,AH,GI,Zy,IH,jI,pc=N(()=>{"use strict";VI();D4();to();to();to();WI=(e,t)=>new bH(e,t),bH=class extends NI{constructor(e,t){let r="addController"in e,n=new Set;function i(a){n.add(a),!(Gy in a)&&e.renderRoot&&e.el.isConnected&&a.hostConnected?.()}function o(a){n.delete(a),a.controllerRemoved?.()}let s=e;if(s.addController=i,s.removeController=o,!r){let a=t??e.constructor.__forceUpdate;s.requestUpdate=()=>a(e)}super(e),this.internals=new DI(this.component),this.destroyed=!1,this._updatePromise=new eo,this._originalLifecycles={},this.isLit=r,this.component.manager=this,PI(e,r),this._controllers=n,this.exports=void 0,this.hasDestroy=W4 in this.component&&typeof this.component.destroy=="function",this._bindLifecycleMethods();let c=this.internals;Object.keys(c.members).forEach(a=>{c.accessorGetter[a]=zI,c.accessorSetter[a]=zI,c.getSetProxy(a)}),r?this.internals.enabledWatchers=this.internals.allWatchers:Object.defineProperty(e,"updateComplete",{get:async()=>await this._updatePromise.promise}),queueMicrotask(c.enableReadonly),du(e),vg.set(e.el,e),vg.set(e,e)}_bindLifecycleMethods(){let e=this.component,t=this.isLit,r=e.el===e;this._originalLifecycles={_connectedCallback:t||r?void 0:e.connectedCallback,_disconnectedCallback:t||r?void 0:e.disconnectedCallback,_load:t?e.load:e.componentWillLoad,_loaded:t?e.loaded:e.componentDidLoad,_willUpdate:t?void 0:e.componentWillUpdate,_updated:t?void 0:e.componentDidUpdate,_destroy:e.destroy};let n=this._connectedCallback.bind(this),i=this._disconnectedCallback.bind(this),o=this._update.bind(this),s=this._updated.bind(this);t?e.constructor.prototype.addController.call(e,{hostConnected:n,hostDisconnected:i,hostUpdate:o,hostUpdated:s}):(e.connectedCallback=n,e.disconnectedCallback=i,e.componentWillLoad=this._load.bind(this),e.componentDidLoad=this._loaded.bind(this),e.componentWillUpdate=o,e.componentDidUpdate=s),this.hasDestroy&&(e.destroy=this.destroy.bind(this))}_connectedCallback(){if(this.destroyed){let t=this.component.el.tagName.toLowerCase();throw this.component.el.remove(),new Error(`The ${t} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${W4} prop.`)}this._autoDestroyTimeout!==void 0&&clearTimeout(this._autoDestroyTimeout);let e=this.internals;e.enabledWatchers=e.allWatchers,_g(),e.enableReadonly?.(),this._controllers.forEach(_H),this._originalLifecycles._connectedCallback?.call(this.component)}_disconnectedCallback(){this.destroyed||(this._controllers.forEach(SH),this._originalLifecycles._disconnectedCallback?.call(this.component),this.hasDestroy&&this._setAutoDestroyTimeout())}async _load(){await Promise.allSettled(Array.from(this._controllers,xH)),await this._originalLifecycles._load?.call(this.component),this.hasDestroy&&qy(this.component,W4,()=>this._setAutoDestroyTimeout())}_loaded(){this._controllers.forEach(EH),this._originalLifecycles._loaded?.call(this.component)}_update(){let e=this.component;return this._controllers.forEach(CH,e.$changes),this._originalLifecycles._willUpdate?.call(this.component)}_updated(){let e=this.component;if(this._controllers.forEach(TH,e.$changes),this._originalLifecycles._updated?.call(this.component),this.isLit)e.$changes=new Map;else{let t=this._updatePromise;this._updatePromise=new eo,t.resolve(!0)}}async destroy(){if(!this.destroyed){if(this.component.el.isConnected){this.hasDestroy=!1;try{this.component.el.remove()}finally{this.hasDestroy=!0}}this._autoDestroyTimeout=void 0,this.destroyed=!0,this._controllers.forEach(PH),this._controllers.clear(),await this._originalLifecycles._destroy?.call(this.component)}}_setAutoDestroyTimeout(){if(this._autoDestroyTimeout!==void 0&&clearTimeout(this._autoDestroyTimeout),!this.component.el.isConnected&&!this.component.autoDestroyDisabled){let e=()=>void this.destroy().catch(console.error);this._autoDestroyTimeout=n6(e,vH)}}},W4="autoDestroyDisabled",vH=1e3,zI=e=>e;MH=e=>GI(void 0,e),BI=e=>t=>GI(t,e),AH=class extends jy{constructor(e,t){super(e);let r=this.exports;try{du(this.component);let n=t(this.component,this),i=this.exports!==r;if(n instanceof Promise){i||this.setProvisionalExports(n);let o=n.then(s=>{this.exports=s,super.catchUpLifecycle()}).catch(s=>{this._ready.reject(s),console.error(s)});this.onLoad(async()=>await o)}else(!i||n!==void 0)&&(this.exports=n),queueMicrotask(()=>super.catchUpLifecycle())}catch(n){this._ready.reject(n),console.error(n)}}catchUpLifecycle(){}},GI=UI(AH),Zy=(e,t)=>new IH(e,t),IH=class extends jy{constructor(e,t){super(),this._attributes=e,this._callback=t,this._observer=new MutationObserver(r=>{r.forEach(n=>{e.includes(n.attributeName)&&t.call(this.component,this.component.el.getAttribute(n.attributeName),n.oldValue,n.attributeName)})})}hostConnected(){this._attributes.forEach(e=>{this.component.el.hasAttribute(e)&&this._callback.call(this.component,null,this.component.el.getAttribute(e),e)}),this._observer.observe(this.component.el,{attributes:!0,attributeOldValue:!0,attributeFilter:this._attributes})}hostDisconnected(){this._observer.disconnect()}},jI=e=>(t={})=>MH((r,n)=>{let i=Y2(r.el),o={_lang:i.lang,_t9nLocale:i.t9nLocale,_loading:!0},s=r;n.onLifecycle(()=>r6(r.el,()=>e("./assets"),({t9nLocale:a,t9nStrings:d,lang:h})=>{let g={...d,_lang:h,_t9nLocale:a,_loading:!1};n.exports=g;let v=d.componentLabel;typeof v=="string"&&"label"in r&&r.label==null&&(r.label??(r.label=v)),c(s.messageOverrides)},t.name));function c(a){let d=n.exports,h=d._original??d,g=qI(h,a);a&&(g._original=h),n.exports=g}return"messageOverrides"in s&&n.onLifecycle(()=>qy(s,"messageOverrides",c)),t.blocking?(n.setProvisionalExports(o,!1),n.ready):o})});var Sg=N(()=>{});var HI=N(()=>{});var G4=N(()=>{Sg();});var ZI=N(()=>{});var j4=N(()=>{Sg();ZI();});var YI=N(()=>{Sg();});var XI=N(()=>{j4();});var KI=N(()=>{G4();});var eL=N(()=>{Sg();HI();G4();j4();YI();XI();KI()});var Yy,Jy,q4,tL,xg,rL,Mt,H4,Xy,dn=N(()=>{Yy=globalThis,Jy=Yy.ShadowRoot&&(Yy.ShadyCSS===void 0||Yy.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,q4=Symbol(),tL=new WeakMap,xg=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==q4)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(Jy&&t===void 0){let n=r!==void 0&&r.length===1;n&&(t=tL.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&tL.set(r,t))}return t}toString(){return this.cssText}},rL=e=>new xg(typeof e=="string"?e:e+"",void 0,q4),Mt=(e,...t)=>{let r=e.length===1?e[0]:t.reduce((n,i,o)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[o+1],e[0]);return new xg(r,e,q4)},H4=(e,t)=>{if(Jy)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),i=Yy.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}},Xy=Jy?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let n of t.cssRules)r+=n.cssText;return rL(r)})(e):e});var LH,kH,OH,NH,RH,DH,fc,nL,FH,$H,Eg,Qy,Z4,iL,$s,Cg=N(()=>{dn();dn();({is:LH,defineProperty:kH,getOwnPropertyDescriptor:OH,getOwnPropertyNames:NH,getOwnPropertySymbols:RH,getPrototypeOf:DH}=Object),fc=globalThis,nL=fc.trustedTypes,FH=nL?nL.emptyScript:"",$H=fc.reactiveElementPolyfillSupport,Eg=(e,t)=>e,Qy={toAttribute(e,t){switch(t){case Boolean:e=e?FH:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},Z4=(e,t)=>!LH(e,t),iL={attribute:!0,type:String,converter:Qy,reflect:!1,hasChanged:Z4};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),fc.litPropertyMetadata??(fc.litPropertyMetadata=new WeakMap);$s=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=iL){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(t,r),!r.noAccessor){let n=Symbol(),i=this.getPropertyDescriptor(t,n,r);i!==void 0&&kH(this.prototype,t,i)}}static getPropertyDescriptor(t,r,n){let{get:i,set:o}=OH(this.prototype,t)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return i?.call(this)},set(s){let c=i?.call(this);o.call(this,s),this.requestUpdate(t,c,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??iL}static _$Ei(){if(this.hasOwnProperty(Eg("elementProperties")))return;let t=DH(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Eg("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Eg("properties"))){let r=this.properties,n=[...NH(r),...RH(r)];for(let i of n)this.createProperty(i,r[i])}let t=this[Symbol.metadata];if(t!==null){let r=litPropertyMetadata.get(t);if(r!==void 0)for(let[n,i]of r)this.elementProperties.set(n,i)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let i=this._$Eu(r,n);i!==void 0&&this._$Eh.set(i,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let n=new Set(t.flat(1/0).reverse());for(let i of n)r.unshift(Xy(i))}else t!==void 0&&r.push(Xy(t));return r}static _$Eu(t,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?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??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return H4(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$EC(t,r){let n=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,n);if(i!==void 0&&n.reflect===!0){let o=(n.converter?.toAttribute!==void 0?n.converter:Qy).toAttribute(r,n.type);this._$Em=t,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,r){let n=this.constructor,i=n._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let o=n.getPropertyOptions(i),s=typeof o.converter=="function"?{fromAttribute:o.converter}:o.converter?.fromAttribute!==void 0?o.converter:Qy;this._$Em=i,this[i]=s.fromAttribute(r,o.type),this._$Em=null}}requestUpdate(t,r,n){if(t!==void 0){if(n??(n=this.constructor.getPropertyOptions(t)),!(n.hasChanged??Z4)(this[t],r))return;this.P(t,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,r,n){this._$AL.has(t)||this._$AL.set(t,r),n.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[i,o]of this._$Ep)this[i]=o;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,o]of n)o.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],o)}let t=!1,r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(r)):this._$EU()}catch(n){throw t=!1,this._$EU(),n}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(r=>this._$EC(r,this[r]))),this._$EU()}updated(t){}firstUpdated(t){}};$s.elementStyles=[],$s.shadowRootOptions={mode:"open"},$s[Eg("elementProperties")]=new Map,$s[Eg("finalized")]=new Map,$H?.({ReactiveElement:$s}),(fc.reactiveElementVersions??(fc.reactiveElementVersions=[])).push("2.0.4")});var Y4=N(()=>{Cg();});var oL=N(()=>{Y4();});function hL(e,t){if(!K4(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return sL!==void 0?sL.createHTML(t):t}function gu(e,t,r=e,n){if(t===pn)return t;let i=n!==void 0?r.o?.[n]:r.l,o=Ag(t)?void 0:t._$litDirective$;return i?.constructor!==o&&(i?._$AO?.(!1),o===void 0?i=void 0:(i=new o(e),i._$AT(e,r,n)),n!==void 0?(r.o??(r.o=[]))[n]=i:r.l=i),i!==void 0&&(t=gu(e,i._$AS(e,t.values),i,n)),t}var Pg,Ky,sL,X4,Us,Q4,VH,hu,Mg,Ag,K4,pL,J4,Tg,aL,cL,fu,lL,uL,fL,e5,ve,is,mL,pn,Oe,dL,mu,gL,Ig,eb,Tf,wu,tb,rb,nb,ib,wL,zH,yL,Er=N(()=>{Pg=globalThis,Ky=Pg.trustedTypes,sL=Ky?Ky.createPolicy("lit-html",{createHTML:e=>e}):void 0,X4="$lit$",Us=`lit$${Math.random().toFixed(9).slice(2)}$`,Q4="?"+Us,VH=`<${Q4}>`,hu=document,Mg=()=>hu.createComment(""),Ag=e=>e===null||typeof e!="object"&&typeof e!="function",K4=Array.isArray,pL=e=>K4(e)||typeof e?.[Symbol.iterator]=="function",J4=`[
10
10
  \f\r]`,Tg=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,aL=/-->/g,cL=/>/g,fu=RegExp(`>|${J4}(?:([^\\s"'>=/]+)(${J4}*=${J4}*(?:[^
11
11
  \f\r"'\`<>=]|("|')|))|$)`,"g"),lL=/'/g,uL=/"/g,fL=/^(?:script|style|textarea|title)$/i,e5=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),ve=e5(1),is=e5(2),mL=e5(3),pn=Symbol.for("lit-noChange"),Oe=Symbol.for("lit-nothing"),dL=new WeakMap,mu=hu.createTreeWalker(hu,129);gL=(e,t)=>{let r=e.length-1,n=[],i,o=t===2?"<svg>":t===3?"<math>":"",s=Tg;for(let c=0;c<r;c++){let a=e[c],d,h,g=-1,v=0;for(;v<a.length&&(s.lastIndex=v,h=s.exec(a),h!==null);)v=s.lastIndex,s===Tg?h[1]==="!--"?s=aL:h[1]!==void 0?s=cL:h[2]!==void 0?(fL.test(h[2])&&(i=RegExp("</"+h[2],"g")),s=fu):h[3]!==void 0&&(s=fu):s===fu?h[0]===">"?(s=i??Tg,g=-1):h[1]===void 0?g=-2:(g=s.lastIndex-h[2].length,d=h[1],s=h[3]===void 0?fu:h[3]==='"'?uL:lL):s===uL||s===lL?s=fu:s===aL||s===cL?s=Tg:(s=fu,i=void 0);let E=s===fu&&e[c+1].startsWith("/>")?" ":"";o+=s===Tg?a+VH:g>=0?(n.push(d),a.slice(0,g)+X4+a.slice(g)+Us+E):a+Us+(g===-2?c:E)}return[hL(e,o+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},Ig=class e{constructor({strings:t,_$litType$:r},n){let i;this.parts=[];let o=0,s=0,c=t.length-1,a=this.parts,[d,h]=gL(t,r);if(this.el=e.createElement(d,n),mu.currentNode=this.el.content,r===2||r===3){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(i=mu.nextNode())!==null&&a.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(let g of i.getAttributeNames())if(g.endsWith(X4)){let v=h[s++],E=i.getAttribute(g).split(Us),M=/([.?@])?(.*)/.exec(v);a.push({type:1,index:o,name:M[2],strings:E,ctor:M[1]==="."?tb:M[1]==="?"?rb:M[1]==="@"?nb:wu}),i.removeAttribute(g)}else g.startsWith(Us)&&(a.push({type:6,index:o}),i.removeAttribute(g));if(fL.test(i.tagName)){let g=i.textContent.split(Us),v=g.length-1;if(v>0){i.textContent=Ky?Ky.emptyScript:"";for(let E=0;E<v;E++)i.append(g[E],Mg()),mu.nextNode(),a.push({type:2,index:++o});i.append(g[v],Mg())}}}else if(i.nodeType===8)if(i.data===Q4)a.push({type:2,index:o});else{let g=-1;for(;(g=i.data.indexOf(Us,g+1))!==-1;)a.push({type:7,index:o}),g+=Us.length-1}o++}}static createElement(t,r){let n=hu.createElement("template");return n.innerHTML=t,n}};eb=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:n}=this._$AD,i=(t?.creationScope??hu).importNode(r,!0);mu.currentNode=i;let o=mu.nextNode(),s=0,c=0,a=n[0];for(;a!==void 0;){if(s===a.index){let d;a.type===2?d=new Tf(o,o.nextSibling,this,t):a.type===1?d=new a.ctor(o,a.name,a.strings,this,t):a.type===6&&(d=new ib(o,this,t)),this._$AV.push(d),a=n[++c]}s!==a?.index&&(o=mu.nextNode(),s++)}return mu.currentNode=hu,i}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},Tf=class e{get _$AU(){return this._$AM?._$AU??this.v}constructor(t,r,n,i){this.type=2,this._$AH=Oe,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=i,this.v=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=gu(this,t,r),Ag(t)?t===Oe||t==null||t===""?(this._$AH!==Oe&&this._$AR(),this._$AH=Oe):t!==this._$AH&&t!==pn&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):pL(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!==Oe&&Ag(this._$AH)?this._$AA.nextSibling.data=t:this.T(hu.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=Ig.createElement(hL(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let o=new eb(i,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(t){let r=dL.get(t.strings);return r===void 0&&dL.set(t.strings,r=new Ig(t)),r}k(t){K4(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let o of t)i===r.length?r.push(n=new e(this.O(Mg()),this.O(Mg()),this,this.options)):n=r[i],n._$AI(o),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t&&t!==this._$AB;){let n=t.nextSibling;t.remove(),t=n}}setConnected(t){this._$AM===void 0&&(this.v=t,this._$AP?.(t))}},wu=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,i,o){this.type=1,this._$AH=Oe,this._$AN=void 0,this.element=t,this.name=r,this._$AM=i,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Oe}_$AI(t,r=this,n,i){let o=this.strings,s=!1;if(o===void 0)t=gu(this,t,r,0),s=!Ag(t)||t!==this._$AH&&t!==pn,s&&(this._$AH=t);else{let c=t,a,d;for(t=o[0],a=0;a<o.length-1;a++)d=gu(this,c[n+a],r,a),d===pn&&(d=this._$AH[a]),s||(s=!Ag(d)||d!==this._$AH[a]),d===Oe?t=Oe:t!==Oe&&(t+=(d??"")+o[a+1]),this._$AH[a]=d}s&&!i&&this.j(t)}j(t){t===Oe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},tb=class extends wu{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Oe?void 0:t}},rb=class extends wu{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Oe)}},nb=class extends wu{constructor(t,r,n,i,o){super(t,r,n,i,o),this.type=5}_$AI(t,r=this){if((t=gu(this,t,r,0)??Oe)===pn)return;let n=this._$AH,i=t===Oe&&n!==Oe||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==Oe&&(n===Oe||i);i&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ib=class{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){gu(this,t)}},wL={M:X4,P:Us,A:Q4,C:1,L:gL,R:eb,D:pL,V:gu,I:Tf,H:wu,N:rb,U:nb,B:tb,F:ib},zH=Pg.litHtmlPolyfillSupport;zH?.(Ig,Tf),(Pg.litHtmlVersions??(Pg.litHtmlVersions=[])).push("3.2.0");yL=(e,t,r)=>{let n=r?.renderBefore??t,i=n._$litPart$;if(i===void 0){let o=r?.renderBefore??null;n._$litPart$=i=new Tf(t.insertBefore(Mg(),o),o,void 0,r??{})}return i._$AI(e),i}});var Vs,WH,bL=N(()=>{Cg();Cg();Er();Er();Vs=class extends $s{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var r;let t=super.createRenderRoot();return(r=this.renderOptions).renderBefore??(r.renderBefore=t.firstChild),t}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this.o=yL(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this.o?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this.o?.setConnected(!1)}render(){return pn}};Vs._$litElement$=!0,Vs.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Vs});WH=globalThis.litElementPolyfillSupport;WH?.({LitElement:Vs});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.0")});var t5=N(()=>{});var Ri=N(()=>{Cg();Er();bL();t5()});var pi,Fi,Di,zs=N(()=>{pi={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Fi=e=>(...t)=>({_$litDirective$:e,values:t}),Di=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,n){this.t=t,this._$AM=r,this.i=n}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}}});var vL,_L=N(()=>{Er();zs();vL=Fi(class extends Di{constructor(e){if(super(e),e.type!==pi.ATTRIBUTE||e.name!=="class"||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(let n in t)t[n]&&!this.nt?.has(n)&&this.st.add(n);return this.render(t)}let r=e.element.classList;for(let n of this.st)n in t||(r.remove(n),this.st.delete(n));for(let n in t){let i=!!t[n];i===this.st.has(n)||this.nt?.has(n)||(i?(r.add(n),this.st.add(n)):(r.remove(n),this.st.delete(n)))}return pn}})});var SL,BH,xL,EL=N(()=>{Er();zs();SL="important",BH=" !"+SL,xL=Fi(class extends Di{constructor(e){if(super(e),e.type!==pi.ATTRIBUTE||e.name!=="style"||e.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(e){return Object.keys(e).reduce((t,r)=>{let n=e[r];return n==null?t:t+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(e,[t]){let{style:r}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let n of this.ft)t[n]==null&&(this.ft.delete(n),n.includes("-")?r.removeProperty(n):r[n]=null);for(let n in t){let i=t[n];if(i!=null){this.ft.add(n);let o=typeof i=="string"&&i.endsWith(BH);n.includes("-")||o?r.setProperty(n,o?i.slice(0,-11):i,o?SL:""):r[n]=i}}return pn}})});var CL=N(()=>{EL()});var o0e,ob,GH,sb,ab=N(()=>{Er();({I:o0e}=wL),ob=e=>e.strings===void 0,GH={},sb=(e,t=GH)=>e._$AH=t});var cb,r5=N(()=>{Er();zs();ab();cb=Fi(class extends Di{constructor(e){if(super(e),e.type!==pi.PROPERTY&&e.type!==pi.ATTRIBUTE&&e.type!==pi.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!ob(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===pn||t===Oe)return t;let r=e.element,n=e.name;if(e.type===pi.PROPERTY){if(t===r[n])return pn}else if(e.type===pi.BOOLEAN_ATTRIBUTE){if(!!t===r.hasAttribute(n))return pn}else if(e.type===pi.ATTRIBUTE&&r.getAttribute(n)===t+"")return pn;return sb(e),t}})});function PL(e){let t,r=i=>{t=new URL(i,globalThis.location?.href||void 0).href},n={...e,getAssetPath(i){let o=new URL(i,t);return o.origin!==globalThis.location?.origin?o.href:o.pathname},setAssetPath:r,customElement(i,o){o.runtime=n,o.tagName=i,customElements.get(i)||customElements.define(i,o)}};return r(e.defaultAssetPath),n}function Pf(e,t,r){r==null?e.removeAttribute(t):e.setAttribute(t,r)}var TL,At,jH,yu,It,_e,lb,Jr,Ws,Cr=N(()=>{"use strict";TI();O4();pc();eL();pc();oL();Y4();to();Ri();pc();_L();CL();zs();r5();Er();TL=(e="",t={},r=pu())=>{let n={emit:i=>{e===""&&_g();let o=new CustomEvent(e,{detail:i,cancelable:!0,bubbles:!0,composed:!0,...t});return r.el.dispatchEvent(o),o}};return e===""&&Hy(void 0,i=>{e=i.key},n),n},At=TL.bind(null,""),jH=()=>{},It=(yu=class extends Vs{constructor(){super(),this.el=this.constructor.lazy??this,this.manager=WI(this),this._postLoad=this.constructor.lazy?._postLoad??new eo,this._offspring=this.constructor.lazy?._offspring??[],this._postLoaded=this.constructor.lazy?._postLoaded??new eo,this._enableUpdating=this.enableUpdating,this.enableUpdating=jH;let t=yu.prototype.shouldUpdate;this.shouldUpdate!==t&&(this._originalShouldUpdate=this.shouldUpdate,this.shouldUpdate=t),!1}static finalizeStyles(t){let r=super.finalizeStyles(t),n=this.shadowRootOptions===R4;return this.runtime?.commonStyles===void 0||n?r:[this.runtime.commonStyles,...r]}static createProperty(t,r){let n=typeof r=="number"?r:Array.isArray(r)?r[0]:0,i=Array.isArray(r)?r[1]:void 0;super.createProperty(t,{attribute:n&1&&typeof t=="string"?q0(t):!1,reflect:!!(n&2),type:n&4?Boolean:n&8?Number:void 0,state:!!(n&16),readOnly:!!(n&32),noAccessor:!!(n&64),...i})}connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let t=!this.manager.connectedCalled;super.connectedCallback(),t&&queueMicrotask(()=>this._load().catch(r=>{this._postLoaded.reject(r),setTimeout(()=>{throw r})}))}createRenderRoot(){let t=this.el.shadowRoot,r=this.constructor,n=r.shadowRootOptions,o=t??(n===R4?this.el:this.el.attachShadow(n));if(Object.defineProperty(this,"shadowRoot",{value:o}),t)return Vs.prototype.createRenderRoot.call(this),t;if(this.isConnected){let s=o.getRootNode();s.adoptedStyleSheets=[...s.adoptedStyleSheets,...r.elementStyles.map(c=>"styleSheet"in c?c.styleSheet:c)]}return o}async _load(){let t=this.el._ancestorLoad??N4(this.el);t&&await t,await this.manager._load(),this._enableUpdating(!0),this.performUpdate(),this._postLoad.resolve(),await Promise.resolve();let r=this._offspring.filter(n=>!n.manager?.loadedCalled);r.length&&await Promise.allSettled(r.map(async n=>await n.componentOnReady())),this._offspring.length=0,this.el.setAttribute(this.constructor.runtime.hydratedAttribute,""),this.manager._loaded(),this._postLoaded.resolve()}shouldUpdate(t){return this.$changes=t,this._originalShouldUpdate?.(t)??!0}listen(t,r,n){let i=r?.bind(this)??r;this.manager.onLifecycle(()=>(this.el.addEventListener(t,i,n),()=>this.el.removeEventListener(t,i,n)))}listenOn(t,r,n,i){let o=n?.bind(this)??n;this.manager.onLifecycle(()=>(t.addEventListener(r,o,i),()=>t.removeEventListener(r,o,i)))}async componentOnReady(){return await this._postLoaded.promise,this}},yu.lumina=!0,yu);It.$createEvent=TL;_e=e=>typeof e=="object"&&e!=null?vL(e):e,lb=e=>typeof e=="object"&&e!=null?xL(e):e,Jr=Oe;Ws={toAttribute:e=>e===!0?"":e===!1?null:e}});function ML(){let{classList:e}=document.body,t=window.matchMedia("(prefers-color-scheme: dark)").matches,r=()=>e.contains(LL)||e.contains(IL)&&t?"dark":"light",n=s=>document.body.dispatchEvent(new CustomEvent("calciteModeChange",{bubbles:!0,detail:{mode:s}})),i=s=>{o!==s&&n(s),o=s},o=r();n(o),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",s=>i(s.matches?"dark":"light")),new MutationObserver(()=>i(r())).observe(document.body,{attributes:!0,attributeFilter:["class"]})}function YH(){if(Lg&&Lg.version)return;console.info(`Using Calcite Components ${AL} [Date: ${HH}, Revision: ${ZH}]`);let e=Lg||globalThis.calciteConfig||{};Object.defineProperty(e,"version",{value:AL,writable:!1}),globalThis.calciteConfig=e}function JH(){$i()&&(document.readyState==="interactive"?ML():document.addEventListener("DOMContentLoaded",()=>ML(),{once:!0})),YH()}var IL,LL,qH,kg,i5,Lg,kL,OL,AL,HH,ZH,$i,XH,Dt,Og,NL,Kt=N(()=>{Cr();t5();IL="calcite-mode-auto",LL="calcite-mode-dark",qH="calcite-mode-light",kg={autoMode:IL,darkMode:LL,lightMode:qH,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"},i5={filter:250,nextTick:0,resize:150,reposition:100};Lg=globalThis.calciteConfig,kL=Lg?.focusTrapStack||[],OL=Lg?.logLevel||"info",AL="3.0.3",HH="2025-02-19",ZH="0b0b89f59";$i=()=>!!1&&typeof navigator<"u"&&typeof window<"u"&&typeof location<"u"&&typeof document<"u"&&window.location===location&&window.document===document;JH();XH=PL({defaultAssetPath:"https://js.arcgis.com/calcite-components/3.0.3/",hydratedAttribute:"calcite-hydrated"}),{customElement:Dt,getAssetPath:Og,setAssetPath:NL}=XH});var o5,RL,DL=N(()=>{Kt();Kt();o5=!1,RL=e=>{o5=!0,NL(e)}});function $L(){o5||RL(Oi(bf(FL)))}function UL(e){let t=[];for(let r of Object.keys(e))customElements.get(`calcite-${r}`)||t.push(e[r]?.());return t.length>0?Promise.all(t):null}var FL,s5=N(()=>{DL();Cy();Ut();ts();FL="components/assets"});var ub,db,a5=N(()=>{ub=Symbol("widget"),db=Symbol("widget-test-data")});function c5(e,t){let r=t.children;if(r?.length)for(let i=0;i<r.length;++i)r[i]=c5(e,r[i]);else r=QH;let n=t.vnodeSelector;if(Mf(n)){let i=t.properties||KH,o=i.key||n,s={key:o,afterCreate:eZ,afterUpdate:tZ,afterRemoved:VL,parentWidget:e,widgetConstructor:n,widgetProperties:{...i,key:o,children:r}};return{vnodeSelector:n.vnodeSelector,properties:s,children:void 0,text:void 0,domNode:null}}return t}function eZ(e,t,r,{parentWidget:n,widgetConstructor:i,widgetProperties:o}){let s=new i(o);s.container=e,pb.set(e,s),s.afterCreate?.(s,e),n.addHandles(bt(()=>VL(e))),queueMicrotask(()=>{s[db].projector.renderNow()})}function tZ(e,t,r,{widgetProperties:n}){let i=pb.get(e);i&&(i.set(n),i.afterUpdate?.(i,e))}function VL(e){let t=pb.get(e);t&&(t.afterRemoved?.(t,e),t.destroy(),pb.delete(e))}function Mf(e){return typeof e=="function"&&e[ub]}var QH,KH,pb,l5=N(()=>{Qn();a5();QH=[],KH={},pb=new WeakMap});function WL(e){zL.add(e),e.finally(()=>zL.delete(e))}var zL,BL=N(()=>{zL=new Set});function jL(e,t){let r=Object.prototype.hasOwnProperty;for(let n in t)r.call(t,n)&&r.call(e,n)&&(e[n]!=null&&t[n]!=null&&typeof e[n]=="object"&&typeof t[n]=="object"?jL(e[n],t[n]):e[n]=t[n]);return e}var GL,rZ,nZ,iZ,u5,Tr,qL,HL=N(()=>{Fn();u4();xA();vy();Zh();Ut();xn();zt();Qa();TA();ki();w4();FA();$n();y4();Cn();Ko();Nx();EI();s5();l5();a5();BL();x4();$y();Ha();fg();rZ="esri.widgets.Widget",nZ=0;iZ=xI({postProcessProjectionOptions(e){let t=e.eventHandlerInterceptor,r=/capture$/i;e.eventHandlerInterceptor=(n,i,o,s)=>{let c=t?.(n,i,o,s),a=r.test(n);if(!((n=n.replace(r,"")).toLowerCase()in o)||a){let d=n[2].toLowerCase()+n.slice(3),h=E=>c?.call(o,E);o.addEventListener(d,h,a);let g=()=>o.removeEventListener(d,h,a),v=s.afterRemoved;s.afterRemoved=E=>{v?.(E),g()}}return c}},handleInterceptedEvent(e,t,r,n){let{eventPhase:i,type:o}=n,s=i===Event.CAPTURING_PHASE,c=`on${o}${s?"capture":""}`,a=t.properties;(a&&c in a||(c=`on${o[0].toUpperCase()}${o.slice(1)}${s?"Capture":""}`,a&&c in a))&&(Dy(),e.scheduleRender(),a[c].call(a.bind||r,n))}}),u5=!1,Tr=class extends CA.EsriPromiseMixin(ho.EventedAccessor){constructor(e,t){super(e,t),this._attached=!1,this._projector=iZ,this._readyForTrueRender=!1,this.key=this,this.autoRenderingEnabled=!0,this._loadLocale=nM(async()=>{if(this._messageBundleProps?.length){let c=await Promise.allSettled(this._messageBundleProps.map(async({bundlePath:a,propertyName:d})=>{if(this.destroyed)return;let h=await a4(a);this.uiStrings&&Object.keys(this.uiStrings)&&(h=jL(Vt(h),this.uiStrings)),this[d]=h}));if(this.destroyed)return;for(let a of c)a.status==="rejected"&&et.getLogger(this).error("widget-intl:locale-error",this.declaredClass,a.reason)}await this.loadLocale()}),$L();let r="esri-widget-uid-"+DA(),n=this.render.bind(this);this._trackingTarget=new Ql(()=>{this.autoRenderingEnabled&&this.scheduleRender()});let i=()=>({vnodeSelector:"div",properties:{key:`${r}-hidden`,class:"",styles:{display:"none"}},domNode:null,children:void 0,text:void 0}),o=()=>{var h;if(!this._readyForTrueRender||this.destroyed)return null;let c=n()??i(),a=c.properties??(c.properties={});if(a.key??(a.key=r),Mf(c.vnodeSelector)){if(!this.visible)return i()}else this.visible?a.styles||(a.styles={}):(a.class="",a.styles={display:"none"}),(h=a.styles).display??(h.display="");let d=0;return c.children?.forEach(g=>{var v;Mf(g.vnodeSelector)||(g.properties??(g.properties={}),(v=g.properties).key??(v.key=`${this.id}--${d++}`))}),c5(this,c)};this.render=()=>{if(u5)return o();let c=iI(this)??null;if(c)return c;this._trackingTarget.clear(),u5=!0;try{c=uo(this._trackingTarget,o)}catch(a){throw et.getLogger(this).error(a),a}finally{u5=!1}return c&&oI(this,c),c};let s=this.beforeFirstRender();s?this._resourcesFetch=s.then(()=>{this._readyForTrueRender=!0,this._postInitialize()}):(this._resourcesFetch=Promise.resolve().then(()=>{this._postInitialize()}),this._readyForTrueRender=!0),this.addResolvingPromise(this._resourcesFetch),WL(this._resourcesFetch)}normalizeCtorArgs(e,t){let r={...e};return t&&(r.container=t),r}postInitialize(){}beforeFirstRender(){let e=this.loadDependencies();return this._messageBundleProps?.length||e?Promise.all([e,this._loadLocale()]).then(()=>{}).catch(Mx):null}loadDependencies(){return null}loadLocale(){return null}destroy(){this.destroyed||(Bh(this._trackingTarget),Bh(this.viewModel),this._detach(this.container),this._set("container",null),this._emitter.clear(),this.render=()=>null,this._projector=null,Fy(this))}set container(e){this._get("container")||this._set("container",e)}castContainer(e){return SA(e)}get domNode(){return this.container}set domNode(e){this.container=e}get icon(){return null}set icon(e){this._overrideIfSome("icon",e)}get id(){return this._get("id")||this.container?.id||Date.now().toString(16)+"-widget-"+nZ++}set id(e){e&&this._set("id",e)}get label(){return this.declaredClass.split(".").pop()}set label(e){this._overrideIfSome("label",e)}get renderable(){return this._resourcesFetch}get visible(){return this._get("visible")}set visible(e){this._set("visible",e)}get[(GL=ub,db)](){return{projector:this._projector}}render(){throw new Error("not implemented")}scheduleRender(){this.destroyed||(Fy(this),this._projector.scheduleRender())}classes(...e){return sI.apply(this,e)}renderNow(){Fy(this),this._projector.renderNow()}_postInitialize(){if(this.destroyed)return;this.scheduleRender(),this._delegatedEventNames?.length&&this.addHandles(gg(()=>this.viewModel,(t,r)=>{r&&this.removeHandles("delegated-events"),t&&Hh(t)&&this.addHandles(this._delegatedEventNames.map(n=>Ka(t,n,i=>{this.emit(n,i)})),"delegated-events")},Ty)),this.postInitialize();let e=async()=>{await this._loadLocale().catch(Mx),this.scheduleRender()};this.addHandles([JS(e),gg(()=>this.uiStrings,e),NA(()=>this.container,t=>{this.destroyed||this._attach(t)},{initial:!0,once:!0})])}_attach(e){e&&(this._projector.merge(e,this.render),this._attached=!0)}_detach(e){this._attached&&(this._projector.detach(this.render),this._attached=!1),e?.parentNode?.removeChild(e)}};Tr[GL]=!0,Tr.vnodeSelector="div",ne([le()],Tr.prototype,"_readyForTrueRender",void 0),ne([le({value:null})],Tr.prototype,"container",null),ne([Py("container")],Tr.prototype,"castContainer",null),ne([le()],Tr.prototype,"icon",null),ne([le()],Tr.prototype,"id",null),ne([le()],Tr.prototype,"label",null),ne([le()],Tr.prototype,"renderable",null),ne([le()],Tr.prototype,"uiStrings",void 0),ne([le()],Tr.prototype,"viewModel",void 0),ne([le({value:!0})],Tr.prototype,"visible",null),ne([le()],Tr.prototype,"key",void 0),ne([le()],Tr.prototype,"children",void 0),ne([le()],Tr.prototype,"afterCreate",void 0),ne([le()],Tr.prototype,"afterUpdate",void 0),ne([le()],Tr.prototype,"afterRemoved",void 0),Tr=ne([ut(rZ)],Tr);qL=Tr});function d5(e){return(t,r)=>{t.hasOwnProperty("_messageBundleProps")||(t._messageBundleProps=t._messageBundleProps?t._messageBundleProps.slice():[]),t._messageBundleProps.push({bundlePath:e,propertyName:r})}}var ZL=N(()=>{});function fi(e,t,...r){return typeof e!="function"||Mf(e)?sZ(e,t??null,...r):e(t,...r)}var oZ,YL,sZ,JL=N(()=>{l5();oZ=function(e){return{vnodeSelector:"",properties:void 0,children:void 0,text:e.toString(),domNode:null}},YL=function(e,t){for(var r=0,n=e.length;r<n;r++){var i=e[r];Array.isArray(i)?YL(i,t):i!=null&&i!==!1&&(i.hasOwnProperty("vnodeSelector")||(i=oZ(i)),t.push(i))}},sZ=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(r.length===1&&typeof r[0]=="string")return{vnodeSelector:e,properties:t||void 0,children:void 0,text:r[0],domNode:null};var i=[];return YL(r,i),{vnodeSelector:e,properties:t||void 0,children:i,text:void 0,domNode:null}}});function cZ(){return getComputedStyle(document.body).getPropertyValue("--esri-calcite-mode-name").replaceAll(/\s|'|"/g,"")}function lZ(){return cZ().startsWith("dark")}function XL(){return`${aZ}${lZ()?"dark":"light"}`}var aZ,QL=N(()=>{aZ="calcite-mode-"});function uZ(e){return e.map(t=>{let r="";for(let n=0;n<t;n++)r+=((1+Math.random())*65536|0).toString(16).substring(1);return r}).join("-")}var Bs,Af=N(()=>{Bs=()=>uZ([2,1,1,1,3])});var Xr,os=N(()=>{pc();Kt();Xr=jI(Og)});var If,dZ,fb,p5,KL=N(()=>{Kt();Ri();Cr();Af();os();dn();If={percentage:"percentage",progressRing:"ring--progress",ring:"ring",rings:"rings",text:"text",trackRing:"ring--track"},dZ=Mt`:host{position:relative;margin-inline:auto;display:flex;align-items:center;justify-content:center;opacity:1;flex-direction:column;min-block-size:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke-width:var(--calcite-internal-stroke-width);fill:none;transform:scale(1);padding-block:var(--calcite-loader-spacing, 4rem)}:host([scale=s]){--calcite-internal-stroke-width: 3;--calcite-internal-text-offset: var(--calcite-spacing-xxs);--calcite-internal-loader-font-size: var(--calcite-font-size--3);--calcite-internal-loader-size: 2rem;--calcite-internal-loader-size-inline: .75rem;--calcite-internal-loader-value-line-height: .625rem}:host([scale=m]){--calcite-internal-stroke-width: 6;--calcite-internal-text-offset: var(--calcite-spacing-sm);--calcite-internal-loader-font-size: var(--calcite-font-size-0);--calcite-internal-loader-size: 4rem;--calcite-internal-loader-size-inline: 1rem;--calcite-internal-loader-value-line-height: 1.375rem}:host([scale=l]){--calcite-internal-stroke-width: 8;--calcite-internal-text-offset: var(--calcite-spacing-md);--calcite-internal-loader-font-size: var(--calcite-font-size-2);--calcite-internal-loader-size: 6rem;--calcite-internal-loader-size-inline: 1.5rem;--calcite-internal-loader-value-line-height: 1.71875rem}.text{display:block;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;margin-block-start:var(--calcite-loader-text-spacing, var(--calcite-internal-text-offset));font-weight:var(--calcite-loader-text-weight, var(--calcite-font-weight-normal));color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.percentage{display:block;text-align:center;font-size:var(--calcite-loader-font-size);inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));line-height:var(--calcite-internal-loader-value-line-height);align-self:center;color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.rings{position:relative;display:flex;overflow:visible;opacity:1;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring{position:absolute;inset-block-start:0px;transform-origin:center;overflow:visible;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring--track{stroke:var(--calcite-loader-track-color, var(--calcite-color-transparent-press))}.ring--progress{stroke:var(--calcite-loader-progress-color, var(--calcite-color-brand));transform:rotate(-90deg);transition:all var(--calcite-internal-animation-timing-fast) linear}:host([type=indeterminate]) .ring--progress{animation:loader-clockwise calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 2 / var(--calcite-internal-duration-factor)) linear infinite}:host([inline]){--calcite-internal-stroke-width: 2;position:relative;margin:0;stroke:currentColor;stroke-width:2;padding-block:0px;block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));min-block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));vertical-align:calc(var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline))) * -1 * .2)}:host([inline]) .rings{inset-block-start:0px;margin:0;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring{inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring--progress{stroke:var(--calcite-loader-progress-color-inline, currentColor)}:host([complete]){opacity:0;transform:scale(.75);transform-origin:center;transition:opacity var(--calcite-internal-animation-timing-medium) linear 1s,transform var(--calcite-internal-animation-timing-medium) linear 1s}:host([complete]) .rings{opacity:0;transform:scale(.75);transform-origin:center;transition:opacity calc(.18s * var(--calcite-internal-duration-factor)) linear .8s,transform calc(.18s * var(--calcite-internal-duration-factor)) linear .8s}:host([complete]) .percentage{color:var(--calcite-color-brand);transform:scale(1.05);transform-origin:center;transition:color var(--calcite-internal-animation-timing-medium) linear,transform var(--calcite-internal-animation-timing-medium) linear}@keyframes loader-clockwise{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([hidden]){display:none}[hidden]{display:none}`,fb=class fb extends It{constructor(){super(...arguments),this.messages=Xr({name:null}),this.complete=!1,this.inline=!1,this.scale="m",this.text="",this.type="indeterminate",this.value=0}connectedCallback(){super.connectedCallback(),this.updateFormatter()}load(){requestAnimationFrame(()=>this.valueChangeHandler())}willUpdate(t){t.has("value")&&(this.hasUpdated||this.value!==0)&&this.valueChangeHandler(),(t.has("type")&&(this.hasUpdated||this.type!=="indeterminate")||t.has("messages"))&&this.updateFormatter()}valueChangeHandler(){this.complete=this.type.startsWith("determinate")&&this.value===100}formatValue(){return this.type!=="determinate-value"?`${this.value}`:this.formatter.format(this.value/100)}getSize(t){return{s:32,m:64,l:96}[t]}getInlineSize(t){return{s:12,m:16,l:24}[t]}updateFormatter(){this.type!=="determinate-value"||this.formatter?.resolvedOptions().locale===this.messages._lang||(this.formatter=new Intl.NumberFormat(this.messages._lang,{style:"percent"}))}render(){let{el:t,inline:r,label:n,text:i,type:o,value:s}=this,c=t.id||Bs(),a=o!=="indeterminate",d=Math.floor(s);return this.el.ariaLabel=n,this.el.ariaValueMax=a?"100":void 0,this.el.ariaValueMin=a?"0":void 0,this.el.ariaValueNow=a?d.toString():void 0,Pf(this.el,"id",c),this.el.role="progressbar",ve`<div class=${_e(If.rings)}>${this.renderRing("track")}${this.renderRing("progress")}${!r&&a&&ve`<div class=${_e(If.percentage)}>${this.formatValue()}</div>`||""}</div>${!r&&i&&ve`<div class=${_e(If.text)}>${i}</div>`||""}`}renderRing(t){let{inline:r,scale:n,value:i}=this,o=r?this.getInlineSize(n):this.getSize(n),s=o*.45,c;if(t==="progress"){let a=2*s*Math.PI,d=(this.type.startsWith("determinate")?i:24)/100*a,h=a-d;c={"stroke-dasharray":`${d} ${h}`}}return ve`<svg aria-hidden=true class=${_e({[If.ring]:!0,[If.trackRing]:t==="track",[If.progressRing]:t==="progress"})} style=${lb(c)} viewBox=${`0 0 ${o} ${o}`}>${is`<circle cx=${o/2} cy=${o/2} r=${s??Oe} />`}</svg>`}};fb.properties={complete:7,inline:7,label:1,scale:3,text:1,type:3,value:9},fb.styles=dZ;p5=fb;Dt("calcite-loader",p5)});var mb=N(()=>{KL()});function mc(e){let t="dir",r=`[${t}]`,n=hc(e,r);return n?n.getAttribute(t):"ltr"}function ak(e){return e.getRootNode()}function ck(e){return e.host||null}function bu(e,{selector:t,id:r}){if(!e)return null;e.assignedSlot&&(e=e.assignedSlot);let n=ak(e);return(r?"getElementById"in n?n.getElementById(r):null:t?n.querySelector(t):null)||bu(ck(n),{selector:t,id:r})}function hc(e,t){return e?e.closest(t)||hc(ck(ak(e)),t):null}function LZ(e){return typeof e?.setFocus=="function"}async function wb(e){if(e)return LZ(e)?e.setFocus():e.focus()}function kZ(e){if(e)return IZ(e,h5)[0]??e}function gc(e){kZ(e)?.focus()}function OZ(e,t){return e.filter(r=>r.matches(t))}function Gs(e,t,r){if(typeof t=="string"&&t!=="")return t;if(t===""||t===!0)return e[r]}function Lf(e){return(!!e).toString()}function lk(e){return zn(e)||RZ(e)}function NZ(e){return DZ(e).filter(t=>t.nodeType===Node.TEXT_NODE).map(t=>t.textContent).join("").trim()}function uk(e){for(let t of e.childNodes)if(t.nodeType===Node.TEXT_NODE&&t.textContent?.trim()!==""||t.nodeType===Node.ELEMENT_NODE)return!0;return!1}function RZ(e){return!!NZ(e)}function DZ(e){return e.currentTarget.assignedNodes({flatten:!0})}function zn(e){return!!yb(e).length}function yb(e,t){return FZ(e.target,t)}function FZ(e,t){let r=e.assignedElements({flatten:!0});return t?OZ(r,t):r}function dk(e){return!!(e.isPrimary&&e.button===0)}function pk(e){return e.detail===0}function fk(e,t){if(e.parentNode!==t.parentNode)return!1;let r=Array.from(e.parentNode.children);return r.indexOf(e)<r.indexOf(t)}async function mk(e,t,r,n){return UZ(e,t,"transition",r,n)}async function $Z(e,t){await m5(),e?.(),await m5(),t?.()}function rk(e,t,r){let n=t==="transition"?"transitionProperty":"animationName";return e.getAnimations().find(i=>i[n]===r)}async function UZ(e,t,r,n,i){let o=rk(e,r,t);if(o||(await m5(),o=rk(e,r,t)),!o)return $Z(n,i);n?.();try{await o.finished}catch{}finally{i?.()}}function m5(){return new Promise(e=>requestAnimationFrame(()=>e()))}function Rg(e){return e.endsWith("px")}var pZ,f5,nk,Ng,hb,gb,fZ,mZ,hZ,ik,ok,gZ,wZ,sk,yZ,bZ,vZ,_Z,SZ,xZ,EZ,ek,CZ,TZ,PZ,tk,MZ,AZ,IZ,h5,fn=N(()=>{Af();Kt();pZ=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],f5=pZ.join(","),nk=typeof Element>"u",Ng=nk?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,hb=!nk&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},gb=function e(t,r){var n;r===void 0&&(r=!0);var i=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"inert"),o=i===""||i==="true",s=o||r&&t&&e(t.parentNode);return s},fZ=function(e){var t,r=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return r===""||r==="true"},mZ=function(e,t,r){if(gb(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(f5));return t&&Ng.call(e,f5)&&n.unshift(e),n=n.filter(r),n},hZ=function e(t,r,n){for(var i=[],o=Array.from(t);o.length;){var s=o.shift();if(!gb(s,!1))if(s.tagName==="SLOT"){var c=s.assignedElements(),a=c.length?c:s.children,d=e(a,!0,n);n.flatten?i.push.apply(i,d):i.push({scopeParent:s,candidates:d})}else{var h=Ng.call(s,f5);h&&n.filter(s)&&(r||!t.includes(s))&&i.push(s);var g=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),v=!gb(g,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(g&&v){var E=e(g===!0?s.children:g.children,!0,n);n.flatten?i.push.apply(i,E):i.push({scopeParent:s,candidates:E})}else o.unshift.apply(o,s.children)}}return i},ik=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},ok=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||fZ(e))&&!ik(e)?0:e.tabIndex},gZ=function(e,t){var r=ok(e);return r<0&&t&&!ik(e)?0:r},wZ=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},sk=function(e){return e.tagName==="INPUT"},yZ=function(e){return sk(e)&&e.type==="hidden"},bZ=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return t},vZ=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},_Z=function(e){if(!e.name)return!0;var t=e.form||hb(e),r=function(o){return t.querySelectorAll('input[type="radio"][name="'+o+'"]')},n;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")n=r(window.CSS.escape(e.name));else try{n=r(e.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var i=vZ(n,e.form);return!i||i===e},SZ=function(e){return sk(e)&&e.type==="radio"},xZ=function(e){return SZ(e)&&!_Z(e)},EZ=function(e){var t,r=e&&hb(e),n=(t=r)===null||t===void 0?void 0:t.host,i=!1;if(r&&r!==e){var o,s,c;for(i=!!((o=n)!==null&&o!==void 0&&(s=o.ownerDocument)!==null&&s!==void 0&&s.contains(n)||e!=null&&(c=e.ownerDocument)!==null&&c!==void 0&&c.contains(e));!i&&n;){var a,d,h;r=hb(n),n=(a=r)===null||a===void 0?void 0:a.host,i=!!((d=n)!==null&&d!==void 0&&(h=d.ownerDocument)!==null&&h!==void 0&&h.contains(n))}}return i},ek=function(e){var t=e.getBoundingClientRect(),r=t.width,n=t.height;return r===0&&n===0},CZ=function(e,t){var r=t.displayCheck,n=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var i=Ng.call(e,"details>summary:first-of-type"),o=i?e.parentElement:e;if(Ng.call(o,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof n=="function"){for(var s=e;e;){var c=e.parentElement,a=hb(e);if(c&&!c.shadowRoot&&n(c)===!0)return ek(e);e.assignedSlot?e=e.assignedSlot:!c&&a!==e.ownerDocument?e=a.host:e=c}e=s}if(EZ(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return ek(e);return!1},TZ=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var r=0;r<t.children.length;r++){var n=t.children.item(r);if(n.tagName==="LEGEND")return Ng.call(t,"fieldset[disabled] *")?!0:!n.contains(e)}return!0}t=t.parentElement}return!1},PZ=function(e,t){return!(t.disabled||gb(t)||yZ(t)||CZ(t,e)||bZ(t)||TZ(t))},tk=function(e,t){return!(xZ(t)||ok(t)<0||!PZ(e,t))},MZ=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},AZ=function e(t){var r=[],n=[];return t.forEach(function(i,o){var s=!!i.scopeParent,c=s?i.scopeParent:i,a=gZ(c,s),d=s?e(i.candidates):c;a===0?s?r.push.apply(r,d):r.push(c):n.push({documentOrder:o,tabIndex:a,item:i,isScope:s,content:d})}),n.sort(wZ).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(r)},IZ=function(e,t){t=t||{};var r;return t.getShadowRoot?r=hZ([e],t.includeContainer,{filter:tk.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:MZ}):r=mZ(e,t.includeContainer,tk.bind(null,t)),AZ(r)},h5={getShadowRoot:!0}});function Wn(e,t,r){if(!$i())return;let n=VZ(e);return new n(t,r)}function VZ(e){class t extends window.MutationObserver{constructor(n){super(n),this.observedEntry=[],this.callback=n}observe(n,i){return this.observedEntry.push({target:n,options:i}),super.observe(n,i)}unobserve(n){let i=this.observedEntry.filter(o=>o.target!==n);this.observedEntry=[],this.callback(super.takeRecords(),this),this.disconnect(),i.forEach(o=>this.observe(o.target,o.options))}}return function(){return e==="intersection"?window.IntersectionObserver:e==="mutation"?t:window.ResizeObserver}()}var wc=N(()=>{Kt();});function zZ(e){return gk[e]>=gk[OL]}function kf(e,...t){zZ(e)&&console[e].call(this,"%ccalcite","background: #007AC2; color: #fff; border-radius: 4px; padding: 2px 4px;",...t)}function WZ(e,{component:t,name:r,suggested:n,removalVersion:i}){let o=`${e}:${e==="component"?"":t}${r}`;if(hk.has(o))return;hk.add(o);let s=Array.isArray(n);s&&!g5&&(g5=new Intl.ListFormat("en",{style:"long",type:"disjunction"}));let c=`[${r}] ${e} is deprecated and will be removed in ${i==="future"?"a future version":`v${i}`}.${n?` Use ${s?g5.format(n.map(a=>`"${a}"`)):`"${n}"`} instead.`:""}`;kf("warn",c)}var hk,gk,g5,w5,y5=N(()=>{Kt();hk=new Set,gk={trace:0,debug:1,info:2,warn:4,error:8,off:10};w5={debug:e=>kf("debug",e),info:e=>kf("info",e),warn:e=>kf("warn",e),error:e=>kf("error",e),trace:e=>kf("trace",e),deprecated:WZ}});function bk({icon:e,scale:t}){let r=yk[t],n=qZ(e),i=n.charAt(n.length-1)==="F";return`${i?n.substring(0,n.length-1):n}${r}${i?"F":""}`}async function GZ(e){let t=bk(e),r=vk(t);if(r)return r;b5[t]||(b5[t]=fetch(Og(`./assets/icon/${t}.json`)).then(i=>i.json()).catch(()=>(w5.error(`${e.icon} (${e.scale}) icon failed to load`),"")));let n=await b5[t];return wk[t]=n,n}function jZ(e){return vk(bk(e))}function vk(e){return wk[e]}function qZ(e){let t=!isNaN(Number(e.charAt(0))),r=e.split("-");if(r.length>0){let n=/[a-z]/i;e=r.map((i,o)=>i.replace(n,function(s,c){return o===0&&c===0?s:s.toUpperCase()})).join("")}return t?`i${e}`:e}var BZ,wk,b5,yk,HZ,bb,v5,_k=N(()=>{Kt();Ri();Cr();fn();wc();y5();dn();BZ={flipRtl:"flip-rtl"},wk={},b5={},yk={s:16,m:24,l:32};HZ=Mt`:host{display:inline-flex;color:var(--calcite-icon-color, var(--calcite-ui-icon-color, currentColor))}:host([scale=s]){inline-size:16px;block-size:16px;min-inline-size:16px;min-block-size:16px}:host([scale=m]){inline-size:24px;block-size:24px;min-inline-size:24px;min-block-size:24px}:host([scale=l]){inline-size:32px;block-size:32px;min-inline-size:32px;min-block-size:32px}.flip-rtl{transform:scaleX(-1)}.svg{display:block}:host([hidden]){display:none}[hidden]{display:none}`,bb=class bb extends It{constructor(){super(...arguments),this.visible=!1,this.flipRtl=!1,this.icon=null,this.preload=!1,this.scale="m"}connectedCallback(){if(super.connectedCallback(),this.preload){this.visible=!0,this.loadIconPathData();return}this.visible||this.waitUntilVisible(()=>{this.visible=!0,this.loadIconPathData()})}willUpdate(t){(t.has("icon")&&(this.hasUpdated||this.icon!==null)||t.has("scale")&&(this.hasUpdated||this.scale!=="m"))&&this.loadIconPathData()}disconnectedCallback(){super.disconnectedCallback(),this.intersectionObserver?.disconnect(),this.intersectionObserver=null}async loadIconPathData(){let{icon:t,scale:r,visible:n}=this;if(!$i()||!t||!n)return;let i={icon:t,scale:r},o=jZ(i)||await GZ(i);t===this.icon&&(this.pathData=o)}waitUntilVisible(t){if(this.intersectionObserver=Wn("intersection",r=>{r.forEach(n=>{n.isIntersecting&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null,t())})},{rootMargin:"50px"}),!this.intersectionObserver){t();return}this.intersectionObserver.observe(this.el)}render(){let{el:t,flipRtl:r,pathData:n,scale:i,textLabel:o}=this,s=mc(t),c=yk[i],a=!!o,d=[].concat(n||"");return this.el.ariaHidden=Lf(!a),this.el.ariaLabel=a?o:null,this.el.role=a?"img":null,ve`<svg aria-hidden=true class=${_e({[BZ.flipRtl]:s==="rtl"&&r,svg:!0})} fill=currentColor height=100% viewBox=${`0 0 ${c} ${c}`} width=100% xmlns=http://www.w3.org/2000/svg>${d.map(h=>typeof h=="string"?is`<path d=${h??Oe} />`:is`<path d=${h.d??Oe} opacity=${("opacity"in h?h.opacity:1)??Oe} />`)}</svg>`}};bb.properties={pathData:16,visible:16,flipRtl:7,icon:3,preload:7,scale:3,textLabel:1},bb.styles=HZ;v5=bb;Dt("calcite-icon",v5)});var vu=N(()=>{_k()});function ZZ(e){this._$AN!==void 0?(vb(this),this._$AM=e,Sk(this)):this._$AM=e}function YZ(e,t=!1,r=0){let n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(n))for(let o=r;o<n.length;o++)Dg(n[o],!1),vb(n[o]);else n!=null&&(Dg(n,!1),vb(n));else Dg(this,e)}var Dg,vb,Sk,JZ,_b,xk=N(()=>{ab();zs();zs();Dg=(e,t)=>{let r=e._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(t,!1),Dg(n,t);return!0},vb=e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while(r?.size===0)},Sk=e=>{for(let t;t=e._$AM;e=t){let r=t._$AN;if(r===void 0)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),JZ(t)}};JZ=e=>{e.type==pi.CHILD&&(e._$AP??(e._$AP=YZ),e._$AQ??(e._$AQ=ZZ))},_b=class extends Di{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,n){super._$AT(t,r,n),Sk(this),this.isConnected=t._$AU}_$AO(t,r=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),r&&(Dg(this,t),vb(this))}setValue(t){if(ob(this.t))this.t._$AI(t,this);else{let r=[...this.t._$AH];r[this.i]=t,this.t._$AI(r,this,0)}}disconnected(){}reconnected(){}}});var mi,S5,_5,vt,wo=N(()=>{Er();xk();zs();mi=()=>new S5,S5=class{},_5=new WeakMap,vt=Fi(class extends _b{render(e){return Oe}update(e,[t]){let r=t!==this.Y;return r&&this.Y!==void 0&&this.rt(void 0),(r||this.lt!==this.ct)&&(this.Y=t,this.ht=e.options?.host,this.rt(this.ct=e.element)),Oe}rt(e){if(this.isConnected||(e=void 0),typeof this.Y=="function"){let t=this.ht??globalThis,r=_5.get(t);r===void 0&&(r=new WeakMap,_5.set(t,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.set(this.Y,e),e!==void 0&&this.Y.call(this.ht,e)}else this.Y.value=e}get lt(){return typeof this.Y=="function"?_5.get(this.ht??globalThis)?.get(this.Y):this.Y?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}})});var x5,XZ,Ck,yc,Ek,E5,Of,pye,fye,Sb=N(()=>{Er();x5=Symbol.for(""),XZ=e=>{if(e?.r===x5)return e?._$litStatic$},Ck=e=>({_$litStatic$:e,r:x5}),yc=(e,...t)=>({_$litStatic$:t.reduce((r,n,i)=>r+(o=>{if(o._$litStatic$!==void 0)return o._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${o}. Use 'unsafeStatic' to pass non-literal values, but