@arcgis/coding-components 4.32.0-next.19 → 4.32.0-next.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/arcgis-coding-components/{MQPGUAKU.js → 36JEHH4A.js} +2 -2
- package/dist/arcgis-coding-components/{3WAL6VTQ.js → 3NUKSKIZ.js} +2 -2
- package/dist/arcgis-coding-components/{GW4QIVKG.js → 3ONBAVZ5.js} +2 -2
- package/dist/arcgis-coding-components/{YDXZPRQS.js → 5FEA4ISZ.js} +2 -2
- package/dist/arcgis-coding-components/{WQIYCHVV.js → 6WHRJOXE.js} +2 -2
- package/dist/arcgis-coding-components/{Q3MEWLG6.js → ABZJIWFU.js} +2 -2
- package/dist/arcgis-coding-components/{FLQRTGRO.js → AK2LMUK6.js} +2 -2
- package/dist/arcgis-coding-components/{YZN6YOSZ.js → B4S63FEP.js} +2 -2
- package/dist/arcgis-coding-components/{JFN5WQCV.js → BH4K3ZKY.js} +2 -2
- package/dist/arcgis-coding-components/{BG6T7AY3.js → BNQ62FOY.js} +2 -2
- package/dist/arcgis-coding-components/{4NW6ASPU.js → DII22PBP.js} +2 -2
- package/dist/arcgis-coding-components/{GOEY6DHU.js → DVMS56KR.js} +1 -1
- package/dist/arcgis-coding-components/{3L4RY47I.js → EIKSQV4C.js} +2 -2
- package/dist/arcgis-coding-components/{MPQONZKK.js → FBVILG4N.js} +2 -2
- package/dist/arcgis-coding-components/{PPHYUAQB.js → HABFLPBO.js} +1 -1
- package/dist/arcgis-coding-components/{YIY2X63A.js → HCWJTN7A.js} +1 -1
- package/dist/arcgis-coding-components/{ILD5GAZP.js → HWVAAYTK.js} +2 -2
- package/dist/arcgis-coding-components/{LVXPIL5J.js → LENZEXEK.js} +2 -2
- package/dist/arcgis-coding-components/{LKU4PQIS.js → MMIBON47.js} +2 -2
- package/dist/arcgis-coding-components/{LIZ57PRQ.js → MQ6U2RNZ.js} +2 -2
- package/dist/arcgis-coding-components/{MBQDBZ5Q.js → MWSXWI6V.js} +2 -2
- package/dist/arcgis-coding-components/{LYMIMUDX.js → NOTRVXDI.js} +2 -2
- package/dist/arcgis-coding-components/{TDQSMBML.js → OGFF5RBB.js} +2 -2
- package/dist/arcgis-coding-components/{RM3PUYKP.js → OUHBIBY5.js} +2 -2
- package/dist/arcgis-coding-components/{ETKZJLUJ.js → QFPDYAX7.js} +1 -1
- package/dist/arcgis-coding-components/{MT6E7WAE.js → QYRDZIG3.js} +2 -2
- package/dist/arcgis-coding-components/{BSECA2RU.js → R4TAM5AN.js} +2 -2
- package/dist/arcgis-coding-components/{OKZIDXTH.js → SIGOFELP.js} +2 -2
- package/dist/arcgis-coding-components/{IYYILYHU.js → UVQJTGEJ.js} +3 -3
- package/dist/arcgis-coding-components/{QSD2HIV4.js → VXLQFTTG.js} +2 -2
- package/dist/arcgis-coding-components/{LJAXVC46.js → WL3NXYV6.js} +2 -2
- package/dist/arcgis-coding-components/{MIMRYQDK.js → WMYLC7HS.js} +2 -2
- package/dist/arcgis-coding-components/{DZ2N5TAI.js → XTSXPQ5F.js} +2 -2
- package/dist/arcgis-coding-components/{LP55G6VH.js → XTXWS6UL.js} +2 -2
- package/dist/arcgis-coding-components/Y4Y2XSOA.js +8 -0
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
- package/dist/chunks/arcade-defaults.js +1 -1
- package/dist/chunks/arcade-executor.js +1 -1
- package/dist/chunks/arcade-mode.js +1 -1
- package/dist/chunks/arcade-service-accessors.js +1 -1
- package/dist/chunks/fields.js +1 -1
- package/dist/chunks/language-defaults-base.js +1 -1
- package/dist/chunks/markdown.js +1 -1
- package/dist/chunks/monaco-importer.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/sql-expr-defaults.js +1 -1
- package/dist/chunks/sql-expr-mode.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
- package/dist/components/arcgis-arcade-results/customElement.js +1 -1
- package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
- package/dist/components/arcgis-code-editor/customElement.js +1 -1
- package/dist/components/arcgis-editor-variables/customElement.js +1 -1
- package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
- package/dist/docs/api.json +2 -2
- package/dist/docs/docs.json +2 -2
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/package.json +7 -7
- package/dist/arcgis-coding-components/OOTSJLE7.js +0 -8
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
-
* v4.32.0-next.19
|
|
5
|
-
*/
|
|
6
|
-
import{a as _,e as p,f as H,j as Nt,l as kt,q as X,r as Ut,t as Rt}from"./ETKZJLUJ.js";function Mt(e,t){if(t){let s=e.constructor.elementProperties;e.manager.internals.members=Object.fromEntries(Array.from(s,([o,r])=>r.noAccessor?void 0:[o,[(r.readOnly?2048:0)|(r.state?32:16)]]).filter(Rt))}else{let s=e.constructor,o=s.__registerControllers?.(e)??void 0;if(s.__registerControllers=void 0,typeof o!="object")throw new Error("Failed to retrieve component meta");e.manager.internals.members=Object.fromEntries(Object.entries(o).filter(([r,[n]])=>(n&63)!==0))}}function jt(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 Vt=(e,t)=>e.manager.internals.members?.[t]?.[0];var et=Symbol.for("controller");var zt=e=>typeof e=="object"&&e!==null&&(et in e||"hostConnected"in e||"hostDisconnected"in e||"hostUpdate"in e||"hostUpdated"in e);var z;function x(e){z!==e&&(z=e,queueMicrotask(()=>{z===e&&(z=void 0)}))}function G(e){return z}var S=[];function ot(e){if(e===void 0){S=[];return}let t=S.indexOf(e);S=t===-1?[...S,e]:S.slice(0,t+1),queueMicrotask(()=>{S=[]})}function Wt(){return S}var j;function xe(e){j!==e&&(j=e,queueMicrotask(()=>{j===e&&(j=void 0)}))}function Te(){let e=j;return j=void 0,e}var De=async(e,t)=>{let s=bt(e);if(s===void 0)return e;if(await s.ready,typeof t=="function"){let o=s.watchExports(r=>t(r,o))}return s.exports},Ne=async e=>{let t=bt(e);return await t.ready,t},bt=e=>{let t=Te();if(t!==void 0)return t;let o=G().manager.internals.resolveExports(e);if(o!==void 0)return o;if(zt(e))return e},W={setter:!1,getter:!1,readOnly:!1},B=new WeakMap,Bt;Bt=et;var Et=class{constructor(e){this._callbacks={hostConnected:[],hostDisconnected:[],hostLoad:[],hostLoaded:[],hostUpdate:[],hostUpdated:[],hostDestroy:[],hostLifecycle:[]},this._ready=new _,this._lifecycleCleanups=[],this.connectedCalled=!1,this._loadCalled=!1,this.loadedCalled=!1,this[Bt]=!0,this.ready=this._ready.promise,this._exports=Ht(this),this._exportWatchers=new Set;let t=e??G(new.target.name);this.component=t,this.component.addController(this),ot(this),this.component.manager===void 0||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(p),this.connectedCalled&&this.assignedProperty!==!1&&this.component.requestUpdate(this.assignedProperty,t)),this._ready.resolve(e)}setProvisionalExports(e,t=!0){this._exports=t?Ht(e):e,this._exportWatchers.forEach(p)}watchExports(e){let t=()=>e(this._exports);return this._exportWatchers.add(t),()=>void this._exportWatchers.delete(t)}get use(){return x(this.component),De}get useRef(){return x(this.component),Ne}get useRefSync(){return x(this.component),bt}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&&p(e.hostConnected,e),this._callbacks.hostConnected.forEach(p),this.triggerLifecycle(),this.connectedCalled=!0}triggerDisconnected(){let e=this;e.hostDisconnected&&p(e.hostDisconnected,e),this._callbacks.hostDisconnected.forEach(p),this._lifecycleCleanups.forEach(p),this._lifecycleCleanups=[]}async triggerLoad(){if(this._loadCalled)return;this._loadCalled=!0;let e=this;e.hostLoad&&await H(e.hostLoad,e),this._callbacks.hostLoad.length>0&&await Promise.allSettled(this._callbacks.hostLoad.map(H)),this._ready.resolve(this._exports)}triggerLoaded(){if(this.loadedCalled)return;let e=this;e.hostLoaded&&p(e.hostLoaded,e),this._callbacks.hostLoaded.forEach(p),this.loadedCalled=!0}triggerUpdate(e){let t=this;t.hostUpdate&&p(t.hostUpdate,t,e),this._callbacks.hostUpdate.forEach(It,e)}triggerUpdated(e){let t=this;t.hostUpdated&&p(t.hostUpdated,t,e),this._callbacks.hostUpdated.forEach(It,e)}triggerDestroy(){let e=this;e.hostDestroy&&p(e.hostDestroy,e),this._callbacks.hostDestroy.forEach(p)}triggerLifecycle(){let e=this;e.hostLifecycle&&this._callLifecycle(()=>e.hostLifecycle()),this._callbacks.hostLifecycle.forEach(this._callLifecycle,this)}_callLifecycle(e){x(this.component);let t=p(e);(Array.isArray(t)?t:[t]).forEach(o=>{typeof o=="function"?this._lifecycleCleanups.push(o):typeof o=="object"&&typeof o.remove=="function"&&this._lifecycleCleanups.push(o.remove)})}};function It(e){p(e,void 0,this)}var Gt=Et;function Ht(e){if(typeof e!="object"&&typeof e!="function"||e===null)return e;let t=new Proxy(e,{get(s,o,r){if(!(ke.has(o)&&o in s&&s[o]===t)&&(o in s||o in Promise.prototype||typeof o=="symbol"))return typeof s=="function"?s[o]:Reflect.get(s,o,r)},set:(s,o,r,n)=>Reflect.set(s,o,r,n)});return t}var ke=new Set(["exports","_exports"]);function st(e,t,s){let o=Object.keys(e),r=o.length;P===void 0&&queueMicrotask(F),P??(P=new Map);let n=P.get(e);return n===void 0&&(n={callbacks:[],keyCount:r},P.set(e,n)),n.keyCount!==r&&(n.callbacks.forEach(i=>i(o)),n.callbacks=[],n.keyCount=r),n.callbacks.push(i=>{let c=l=>p(t,null,l),a=i[r];a===void 0?c(void 0):e[a]===s?c(a):c(void 0)}),s}var P=void 0;function F(){Array.from(P?.entries()??[]).forEach(([e,{callbacks:t}])=>{let s=Object.keys(e);t.forEach(o=>o(s))}),P=void 0}function rt(e,t,s){var o;let r=t,n=e.manager.internals;(o=n.allWatchers)[r]??(o[r]=[]);let i=n.allWatchers[r],c=s,a=(l,d,h)=>p(c,null,l,d,h);return i.push(a),()=>{let l=i.indexOf(a);l!==-1&&i.splice(l,1)}}var Ft=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(([s,[o]])=>{var r;o&2048&&((r=t.setters)[s]??(r[s]=[]),t.setters[s].push(t.readonlySetter))})},this.trackedValue=_t,this.keyTrackers=[],this.getters={},this.setters={},this.accessorGetter={},this.accessorSetter={},this._exports=new WeakMap,this.readonlySetter=(t,s,o)=>{if(W.readOnly)return t;throw new Error(`Cannot assign to read-only property "${o}" of ${this.component.el.tagName.toLowerCase()}. Trying to assign "${String(t)}"`)},this.component=e}firePropTrackers(e,t){let s=this.keyTrackers;this.trackedValue=_t,this.keyTrackers=[],s.forEach(o=>o(e,t))}getSetProxy(e){let t=this.component,s=t.constructor.prototype;if(this._getSetProxy(s,e,"class"),t.manager.isLit)return;let o=t.el.constructor.prototype;s!==o&&this._getSetProxy(o,e,"html")}_getSetProxy(e,t,s){let o=this.component,r=Vt(o,t),n;do n=Object.getOwnPropertyDescriptor(e,t);while(!n&&(e=Object.getPrototypeOf(e)));if(!n)return;let i=n.get,c=n.set,a=tt in i,l=tt in c;if(a&&l)return;let d=!a,h=!l,m=d?function(){let v=i.call(this),E=B.get(this);if(W.getter||E===void 0)return v;let M=E.manager.internals;v=M.accessorGetter[t](v,t);let g=M.getters[t]??vt;for(let C=0;C<g.length;C++)v=g[C](v,t);return v}:i,y=h?function(v){let E=i.call(this),M=B.get(this);if(M===void 0){c.call(this,v);return}let g=M.manager.isLit?v??void 0:jt(v,r),C=M.manager.internals;if(g===E)c.call(this,g);else{let Dt=W.setter?vt:C.setters[t]??vt;for(let I=0;I<Dt.length&&(g=Dt[I](g,E,t),g!==E);I++);g=C.accessorSetter[t](g,E,t),c.call(this,g),g!==E&&C.enabledWatchers[t]?.forEach(I=>I(g,E,t))}C.keyTrackers.length>0&&C?.firePropTrackers(t,v)}:c;d&&(m[tt]=!0),h&&(y[tt]=!0),Object.defineProperty(e,t,{...n,get:m,set:y})}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)}},vt=[],tt=Symbol(),_t=Symbol();function Kt(e,t,s){let o=e.manager.internals;return o.trackedValue!==_t&&o.trackedValue!==s&&o.firePropTrackers(void 0,void 0),o.keyTrackers.length===0&&queueMicrotask(()=>o.firePropTrackers(void 0,void 0)),o.trackedValue=s,o.keyTrackers.push((r,n)=>p(t,void 0,s===n?r:void 0)),s}function qt(e,t,s){let o=Array.isArray(e)?e:[e],r=o.length+1,n=c=>{r-=1,c!==void 0&&(r=Math.min(r,0)),r===0&&t(c)};o.forEach(c=>st(c,a=>n(a===void 0?void 0:{key:a,host:c,isReactive:!1}),s));let i=o.find(c=>"manager"in c&&typeof c.manager=="object"&&c.manager.component===c);return i&&Kt(i,c=>n(c===void 0?void 0:{key:c,host:i,isReactive:!0}),s),s}function Jt(e){W.readOnly=!0;try{return e()}finally{W.readOnly=!1}}var Yt=e=>(...t)=>{let s=Wt(),o=new e(...t),r=o.exports;ot(s.at(-1));let n=o.component.manager.internals;n.markExports(o,r),o.watchExports(c=>n.markExports(o,c)),xe(o);let i=[o.component,...s].reverse();return qt(i,c=>c===void 0?void 0:Ue(o,c,r),r)};function Ue(e,{host:t,key:s,isReactive:o},r){let n=t,i=n[s]!==e.exports,c=n[s]!==r,a=r!==e.exports;if(i&&!c&&a&&(n[s]=e.exports),t===e.component){if(o){let d=e.component.manager.internals;c&&d.markExports(e,n[s]),rt(e.component,s,h=>{h!==e.exports&&d.markExports(e,h)})}e.assignedProperty=o?void 0:s}e.watchExports(()=>{if(n[s]===e.exports)return;let d=e.component.manager;d.internals.setters[s]?.includes(d.internals.readonlySetter)?Jt(()=>{n[s]=e.exports}):n[s]=e.exports})}var Zt=(e,t)=>new Re(e,t),Re=class extends Gt{constructor(e,t){let s="addController"in e,o=new Set;function r(a){o.add(a),!(et in a)&&e.renderRoot&&e.el.isConnected&&a.hostConnected?.()}function n(a){o.delete(a),a.controllerRemoved?.()}let i=e;if(i.addController=r,i.removeController=n,!s){let a=t??e.constructor.__forceUpdate;i.requestUpdate=()=>a(e)}super(e),this.internals=new Ft(this.component),this.destroyed=!1,this._updatePromise=new _,this._originalLifecycles={},this.isLit=s,this.component.manager=this,Mt(e,s),this._controllers=o,this.exports=void 0,this.hasDestroy=Ct in this.component&&typeof this.component.destroy=="function",this._bindLifecycleMethods();let c=this.internals;Object.keys(c.members).forEach(a=>{c.accessorGetter[a]=Qt,c.accessorSetter[a]=Qt,c.getSetProxy(a)}),s?this.internals.enabledWatchers=this.internals.allWatchers:Object.defineProperty(e,"updateComplete",{get:async()=>await this._updatePromise.promise}),queueMicrotask(c.enableReadonly),ot(void 0),x(e),B.set(e.el,e),B.set(e,e)}_bindLifecycleMethods(){let e=this.component,t=this.isLit,s=e.el===e;this._originalLifecycles={_connectedCallback:t||s?void 0:e.connectedCallback,_disconnectedCallback:t||s?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 o=this._connectedCallback.bind(this),r=this._disconnectedCallback.bind(this),n=this._update.bind(this),i=this._updated.bind(this);t?e.constructor.prototype.addController.call(e,{hostConnected:o,hostDisconnected:r,hostUpdate:n,hostUpdated:i}):(e.connectedCallback=o,e.disconnectedCallback=r,e.componentWillLoad=this._load.bind(this),e.componentDidLoad=this._loaded.bind(this),e.componentWillUpdate=n,e.componentDidUpdate=i),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 ${Ct} prop.`)}this._autoDestroyTimeout!==void 0&&clearTimeout(this._autoDestroyTimeout);let e=this.internals;e.enabledWatchers=e.allWatchers,F(),e.enableReadonly?.(),this._controllers.forEach(je),this._originalLifecycles._connectedCallback?.call(this.component)}_disconnectedCallback(){this.destroyed||(this._controllers.forEach(Ve),this._originalLifecycles._disconnectedCallback?.call(this.component),this.hasDestroy&&this._setAutoDestroyTimeout())}async _load(){await Promise.allSettled(Array.from(this._controllers,Ie)),await this._originalLifecycles._load?.call(this.component),this.hasDestroy&&rt(this.component,Ct,()=>this._setAutoDestroyTimeout())}_loaded(){this._controllers.forEach(He),this._originalLifecycles._loaded?.call(this.component)}_update(){let e=this.component;this._controllers.forEach(ze,e.$changes),this._originalLifecycles._willUpdate?.call(this.component)}_updated(){let e=this.component;if(this._controllers.forEach(We,e.$changes),this._originalLifecycles._updated?.call(this.component),this.isLit)e.$changes=new Map;else{let t=this._updatePromise;this._updatePromise=new _,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(Be),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=Ut(e,Me)}}},Ct="autoDestroyDisabled",Me=1e3;var Qt=e=>e;function je(e){"triggerConnected"in e?e.triggerConnected():p(e.hostConnected,e)}function Ve(e){"triggerDisconnected"in e?e.triggerDisconnected():p(e.hostDisconnected,e)}async function Ie(e){"triggerLoad"in e?await e.triggerLoad():await H(e.hostLoad,e)}function He(e){"triggerLoaded"in e?e.triggerLoaded():p(e.hostLoaded,e)}function ze(e){"triggerUpdate"in e?e.triggerUpdate(this):p(e.hostUpdate,e,this)}function We(e){"triggerUpdated"in e?e.triggerUpdated(this):p(e.hostUpdated,e,this)}function Be(e){"triggerDestroy"in e?e.triggerDestroy():p(e.hostDestroy,e)}var Xt=e=>Fe(void 0,e);var Ge=class extends Et{constructor(e,t){super(e);let s=this.exports;try{x(this.component);let o=t(this.component,this),r=this.exports!==s;if(o instanceof Promise){r||this.setProvisionalExports(o);let n=o.then(i=>{this.exports=i,super.catchUpLifecycle()}).catch(i=>{this._ready.reject(i),console.error(i)});this.onLoad(async()=>await n)}else(!r||o!==void 0)&&(this.exports=o),queueMicrotask(()=>super.catchUpLifecycle())}catch(o){this._ready.reject(o),console.error(o)}}catchUpLifecycle(){}},Fe=Yt(Ge);var Io=Xt;var zo=(e,t)=>(s={})=>Xt((o,r)=>{let n=Nt(o.el),i={_lang:n.lang,_t9nLocale:n.t9nLocale,_loading:!0},c=o;queueMicrotask(()=>r.onLifecycle(()=>kt(o.el,e("./assets"),({t9nLocale:l,t9nStrings:d,lang:h})=>{let m={...d,_lang:h,_t9nLocale:l,_loading:!1};r.exports=m;let y=d.componentLabel??d.widgetLabel;typeof y=="string"&&"label"in o&&o.label==null&&(o.label??(o.label=y)),a(c.messageOverrides)},s.name,t)));function a(l){let d=r.exports,h=d._original??d,m=te(h,l);l&&(m._original=h),r.exports=m}return"messageOverrides"in c&&r.onLifecycle(()=>rt(c,"messageOverrides",a)),s.blocking?(r.setProvisionalExports(i,!1),r.ready):i});function te(e,t){if(!t)return e;let s={...e};return Object.entries(t).forEach(([o,r])=>{typeof r=="object"?s[o]=te(e[o],r):s[o]=r??e[o]}),s}var nt=globalThis,it=nt.ShadowRoot&&(nt.ShadyCSS===void 0||nt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,$t=Symbol(),ee=new WeakMap,K=class{constructor(t,s,o){if(this._$cssResult$=!0,o!==$t)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=s}get styleSheet(){let t=this.o,s=this.t;if(it&&t===void 0){let o=s!==void 0&&s.length===1;o&&(t=ee.get(s)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&ee.set(s,t))}return t}toString(){return this.cssText}},oe=e=>new K(typeof e=="string"?e:e+"",void 0,$t),Ke=(e,...t)=>{let s=e.length===1?e[0]:t.reduce((o,r,n)=>o+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[n+1],e[0]);return new K(s,e,$t)},At=(e,t)=>{if(it)e.adoptedStyleSheets=t.map(s=>s instanceof CSSStyleSheet?s:s.styleSheet);else for(let s of t){let o=document.createElement("style"),r=nt.litNonce;r!==void 0&&o.setAttribute("nonce",r),o.textContent=s.cssText,e.appendChild(o)}},at=it?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let s="";for(let o of t.cssRules)s+=o.cssText;return oe(s)})(e):e;var Ot=globalThis,ct=Ot.trustedTypes,se=ct?ct.createPolicy("lit-html",{createHTML:e=>e}):void 0,Lt="$lit$",$=`lit$${Math.random().toFixed(9).slice(2)}$`,St="?"+$,qe=`<${St}>`,N=document,J=()=>N.createComment(""),Y=e=>e===null||typeof e!="object"&&typeof e!="function",Pt=Array.isArray,le=e=>Pt(e)||typeof e?.[Symbol.iterator]=="function",wt=`[
|
|
7
|
-
\f\r]`,q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,re=/-->/g,ne=/>/g,T=RegExp(`>|${wt}(?:([^\\s"'>=/]+)(${wt}*=${wt}*(?:[^
|
|
8
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),ie=/'/g,ae=/"/g,he=/^(?:script|style|textarea|title)$/i,xt=e=>(t,...s)=>({_$litType$:e,strings:t,values:s}),Ko=xt(1),qo=xt(2),Jo=xt(3),f=Symbol.for("lit-noChange"),u=Symbol.for("lit-nothing"),ce=new WeakMap,D=N.createTreeWalker(N,129);function de(e,t){if(!Pt(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return se!==void 0?se.createHTML(t):t}var pe=(e,t)=>{let s=e.length-1,o=[],r,n=t===2?"<svg>":t===3?"<math>":"",i=q;for(let c=0;c<s;c++){let a=e[c],l,d,h=-1,m=0;for(;m<a.length&&(i.lastIndex=m,d=i.exec(a),d!==null);)m=i.lastIndex,i===q?d[1]==="!--"?i=re:d[1]!==void 0?i=ne:d[2]!==void 0?(he.test(d[2])&&(r=RegExp("</"+d[2],"g")),i=T):d[3]!==void 0&&(i=T):i===T?d[0]===">"?(i=r??q,h=-1):d[1]===void 0?h=-2:(h=i.lastIndex-d[2].length,l=d[1],i=d[3]===void 0?T:d[3]==='"'?ae:ie):i===ae||i===ie?i=T:i===re||i===ne?i=q:(i=T,r=void 0);let y=i===T&&e[c+1].startsWith("/>")?" ":"";n+=i===q?a+qe:h>=0?(o.push(l),a.slice(0,h)+Lt+a.slice(h)+$+y):a+$+(h===-2?c:y)}return[de(e,n+(e[s]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]},Q=class e{constructor({strings:t,_$litType$:s},o){let r;this.parts=[];let n=0,i=0,c=t.length-1,a=this.parts,[l,d]=pe(t,s);if(this.el=e.createElement(l,o),D.currentNode=this.el.content,s===2||s===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=D.nextNode())!==null&&a.length<c;){if(r.nodeType===1){if(r.hasAttributes())for(let h of r.getAttributeNames())if(h.endsWith(Lt)){let m=d[i++],y=r.getAttribute(h).split($),L=/([.?@])?(.*)/.exec(m);a.push({type:1,index:n,name:L[2],strings:y,ctor:L[1]==="."?ht:L[1]==="?"?dt:L[1]==="@"?pt:U}),r.removeAttribute(h)}else h.startsWith($)&&(a.push({type:6,index:n}),r.removeAttribute(h));if(he.test(r.tagName)){let h=r.textContent.split($),m=h.length-1;if(m>0){r.textContent=ct?ct.emptyScript:"";for(let y=0;y<m;y++)r.append(h[y],J()),D.nextNode(),a.push({type:2,index:++n});r.append(h[m],J())}}}else if(r.nodeType===8)if(r.data===St)a.push({type:2,index:n});else{let h=-1;for(;(h=r.data.indexOf($,h+1))!==-1;)a.push({type:7,index:n}),h+=$.length-1}n++}}static createElement(t,s){let o=N.createElement("template");return o.innerHTML=t,o}};function k(e,t,s=e,o){if(t===f)return t;let r=o!==void 0?s.o?.[o]:s.l,n=Y(t)?void 0:t._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),n===void 0?r=void 0:(r=new n(e),r._$AT(e,s,o)),o!==void 0?(s.o??=[])[o]=r:s.l=r),r!==void 0&&(t=k(e,r._$AS(e,t.values),r,o)),t}var lt=class{constructor(t,s){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=s}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:s},parts:o}=this._$AD,r=(t?.creationScope??N).importNode(s,!0);D.currentNode=r;let n=D.nextNode(),i=0,c=0,a=o[0];for(;a!==void 0;){if(i===a.index){let l;a.type===2?l=new V(n,n.nextSibling,this,t):a.type===1?l=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(l=new ut(n,this,t)),this._$AV.push(l),a=o[++c]}i!==a?.index&&(n=D.nextNode(),i++)}return D.currentNode=N,r}p(t){let s=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,s),s+=o.strings.length-2):o._$AI(t[s])),s++}},V=class e{get _$AU(){return this._$AM?._$AU??this.v}constructor(t,s,o,r){this.type=2,this._$AH=u,this._$AN=void 0,this._$AA=t,this._$AB=s,this._$AM=o,this.options=r,this.v=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,s=this._$AM;return s!==void 0&&t?.nodeType===11&&(t=s.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,s=this){t=k(this,t,s),Y(t)?t===u||t==null||t===""?(this._$AH!==u&&this._$AR(),this._$AH=u):t!==this._$AH&&t!==f&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):le(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!==u&&Y(this._$AH)?this._$AA.nextSibling.data=t:this.T(N.createTextNode(t)),this._$AH=t}$(t){let{values:s,_$litType$:o}=t,r=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=Q.createElement(de(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(s);else{let n=new lt(r,this),i=n.u(this.options);n.p(s),this.T(i),this._$AH=n}}_$AC(t){let s=ce.get(t.strings);return s===void 0&&ce.set(t.strings,s=new Q(t)),s}k(t){Pt(this._$AH)||(this._$AH=[],this._$AR());let s=this._$AH,o,r=0;for(let n of t)r===s.length?s.push(o=new e(this.O(J()),this.O(J()),this,this.options)):o=s[r],o._$AI(n),r++;r<s.length&&(this._$AR(o&&o._$AB.nextSibling,r),s.length=r)}_$AR(t=this._$AA.nextSibling,s){for(this._$AP?.(!1,!0,s);t&&t!==this._$AB;){let o=t.nextSibling;t.remove(),t=o}}setConnected(t){this._$AM===void 0&&(this.v=t,this._$AP?.(t))}},U=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,s,o,r,n){this.type=1,this._$AH=u,this._$AN=void 0,this.element=t,this.name=s,this._$AM=r,this.options=n,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=u}_$AI(t,s=this,o,r){let n=this.strings,i=!1;if(n===void 0)t=k(this,t,s,0),i=!Y(t)||t!==this._$AH&&t!==f,i&&(this._$AH=t);else{let c=t,a,l;for(t=n[0],a=0;a<n.length-1;a++)l=k(this,c[o+a],s,a),l===f&&(l=this._$AH[a]),i||=!Y(l)||l!==this._$AH[a],l===u?t=u:t!==u&&(t+=(l??"")+n[a+1]),this._$AH[a]=l}i&&!r&&this.j(t)}j(t){t===u?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ht=class extends U{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===u?void 0:t}},dt=class extends U{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==u)}},pt=class extends U{constructor(t,s,o,r,n){super(t,s,o,r,n),this.type=5}_$AI(t,s=this){if((t=k(this,t,s,0)??u)===f)return;let o=this._$AH,r=t===u&&o!==u||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==u&&(o===u||r);r&&this.element.removeEventListener(this.name,this,o),n&&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)}},ut=class{constructor(t,s,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=s,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){k(this,t)}},ue={M:Lt,P:$,A:St,C:1,L:pe,R:lt,D:le,V:k,I:V,H:U,N:dt,U:pt,B:ht,F:ut},Je=Ot.litHtmlPolyfillSupport;Je?.(Q,V),(Ot.litHtmlVersions??=[]).push("3.2.0");var me=(e,t,s)=>{let o=s?.renderBefore??t,r=o._$litPart$;if(r===void 0){let n=s?.renderBefore??null;o._$litPart$=r=new V(t.insertBefore(J(),n),n,void 0,s??{})}return r._$AI(e),r};var{is:Ye,defineProperty:Qe,getOwnPropertyDescriptor:Ze,getOwnPropertyNames:Xe,getOwnPropertySymbols:to,getPrototypeOf:eo}=Object,ft=globalThis,fe=ft.trustedTypes,oo=fe?fe.emptyScript:"",so=ft.reactiveElementPolyfillSupport,Z=(e,t)=>e,mt={toAttribute(e,t){switch(t){case Boolean:e=e?oo:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let s=e;switch(t){case Boolean:s=e!==null;break;case Number:s=e===null?null:Number(e);break;case Object:case Array:try{s=JSON.parse(e)}catch{s=null}}return s}},Tt=(e,t)=>!Ye(e,t),ye={attribute:!0,type:String,converter:mt,reflect:!1,hasChanged:Tt};Symbol.metadata??=Symbol("metadata"),ft.litPropertyMetadata??=new WeakMap;var A=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=ye){if(s.state&&(s.attribute=!1),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){let o=Symbol(),r=this.getPropertyDescriptor(t,o,s);r!==void 0&&Qe(this.prototype,t,r)}}static getPropertyDescriptor(t,s,o){let{get:r,set:n}=Ze(this.prototype,t)??{get(){return this[s]},set(i){this[s]=i}};return{get(){return r?.call(this)},set(i){let c=r?.call(this);n.call(this,i),this.requestUpdate(t,c,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ye}static _$Ei(){if(this.hasOwnProperty(Z("elementProperties")))return;let t=eo(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Z("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Z("properties"))){let s=this.properties,o=[...Xe(s),...to(s)];for(let r of o)this.createProperty(r,s[r])}let t=this[Symbol.metadata];if(t!==null){let s=litPropertyMetadata.get(t);if(s!==void 0)for(let[o,r]of s)this.elementProperties.set(o,r)}this._$Eh=new Map;for(let[s,o]of this.elementProperties){let r=this._$Eu(s,o);r!==void 0&&this._$Eh.set(r,s)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let s=[];if(Array.isArray(t)){let o=new Set(t.flat(1/0).reverse());for(let r of o)s.unshift(at(r))}else t!==void 0&&s.push(at(t));return s}static _$Eu(t,s){let o=s.attribute;return o===!1?void 0:typeof o=="string"?o: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??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,s=this.constructor.elementProperties;for(let o of s.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return At(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,s,o){this._$AK(t,o)}_$EC(t,s){let o=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,o);if(r!==void 0&&o.reflect===!0){let n=(o.converter?.toAttribute!==void 0?o.converter:mt).toAttribute(s,o.type);this._$Em=t,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(t,s){let o=this.constructor,r=o._$Eh.get(t);if(r!==void 0&&this._$Em!==r){let n=o.getPropertyOptions(r),i=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:mt;this._$Em=r,this[r]=i.fromAttribute(s,n.type),this._$Em=null}}requestUpdate(t,s,o){if(t!==void 0){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??Tt)(this[t],s))return;this.P(t,s,o)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,s,o){this._$AL.has(t)||this._$AL.set(t,s),o.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(s){Promise.reject(s)}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.createRenderRoot(),this._$Ep){for(let[r,n]of this._$Ep)this[r]=n;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[r,n]of o)n.wrapped!==!0||this._$AL.has(r)||this[r]===void 0||this.P(r,this[r],n)}let t=!1,s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach(o=>o.hostUpdate?.()),this.update(s)):this._$EU()}catch(o){throw t=!1,this._$EU(),o}t&&this._$AE(s)}willUpdate(t){}_$AE(t){this._$EO?.forEach(s=>s.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.forEach(s=>this._$EC(s,this[s])),this._$EU()}updated(t){}firstUpdated(t){}};A.elementStyles=[],A.shadowRootOptions={mode:"open"},A[Z("elementProperties")]=new Map,A[Z("finalized")]=new Map,so?.({ReactiveElement:A}),(ft.reactiveElementVersions??=[]).push("2.0.4");var w=class extends A{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this.o=me(s,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this.o?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this.o?.setConnected(!1)}render(){return f}};w._$litElement$=!0,w.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:w});var ro=globalThis.litElementPolyfillSupport;ro?.({LitElement:w});(globalThis.litElementVersions??=[]).push("4.1.0");var ge=";",yt=",",ve=":";var b={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},R=e=>(...t)=>({_$litDirective$:e,values:t}),O=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,s,o){this.t=t,this._$AM=s,this.i=o}_$AS(t,s){return this.update(t,s)}update(t,s){return this.render(...s)}};var _e=R(class extends O{constructor(e){if(super(e),e.type!==b.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(o=>o!=="")));for(let o in t)t[o]&&!this.nt?.has(o)&&this.st.add(o);return this.render(t)}let s=e.element.classList;for(let o of this.st)o in t||(s.remove(o),this.st.delete(o));for(let o in t){let r=!!t[o];r===this.st.has(o)||this.nt?.has(o)||(r?(s.add(o),this.st.add(o)):(s.remove(o),this.st.delete(o)))}return f}});var be="important",io=" !"+be,ao=R(class extends O{constructor(e){if(super(e),e.type!==b.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,s)=>{let o=e[s];return o==null?t:t+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(e,[t]){let{style:s}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let o of this.ft)t[o]==null&&(this.ft.delete(o),o.includes("-")?s.removeProperty(o):s[o]=null);for(let o in t){let r=t[o];if(r!=null){this.ft.add(o);let n=typeof r=="string"&&r.endsWith(io);o.includes("-")||n?s.setProperty(o,n?r.slice(0,-11):r,n?be:""):s[o]=r}}return f}});var{I:co}=ue;var Ce=e=>e.strings===void 0,Ee=()=>document.createComment(""),Ss=(e,t,s)=>{let o=e._$AA.parentNode,r=t===void 0?e._$AB:t._$AA;if(s===void 0){let n=o.insertBefore(Ee(),r),i=o.insertBefore(Ee(),r);s=new co(n,i,e,e.options)}else{let n=s._$AB.nextSibling,i=s._$AM,c=i!==e;if(c){let a;s._$AQ?.(e),s._$AM=e,s._$AP!==void 0&&(a=e._$AU)!==i._$AU&&s._$AP(a)}if(n!==r||c){let a=s._$AA;for(;a!==n;){let l=a.nextSibling;o.insertBefore(a,r),a=l}}}return s},Ps=(e,t,s=e)=>(e._$AI(t,s),e),lo={},$e=(e,t=lo)=>e._$AH=t,xs=e=>e._$AH,Ts=e=>{e._$AP?.(!1,!0);let t=e._$AA,s=e._$AB.nextSibling;for(;t!==s;){let o=t.nextSibling;t.remove(),t=o}};var ho=R(class extends O{constructor(e){if(super(e),e.type!==b.PROPERTY&&e.type!==b.ATTRIBUTE&&e.type!==b.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Ce(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===f||t===u)return t;let s=e.element,o=e.name;if(e.type===b.PROPERTY){if(t===s[o])return f}else if(e.type===b.BOOLEAN_ATTRIBUTE){if(!!t===s.hasAttribute(o))return f}else if(e.type===b.ATTRIBUTE&&s.getAttribute(o)===t+"")return f;return $e(e),t}});var we=(e="",t={},s=G())=>{let o={emit:r=>{e===""&&F();let n=new CustomEvent(e,{detail:r,cancelable:!0,bubbles:!0,composed:!0,...t});return s.el.dispatchEvent(n),n}};return e===""&&st(s,r=>{e=r},o),o},Hs=we.bind(null,"");function Oe(e){let t=e;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let s=t;return s.manager?.loadedCalled||s._offspring.push(e),s._postLoad.promise}return!1}var Ae={},Gs=(e,t)=>function(o,r){if(!globalThis.customElements)return;let i=(r??o??{}).resourcesUrl;i&&e.setAssetPath(i),Object.entries(t).forEach(uo)};function uo([e,[t,s=""]]){if(customElements.get(e))return;let[o,r,n]=s.split(ge),i=o?o?.split(yt).map(Le):void 0,c=i?.map(([l])=>l),a=class extends fo{static{this.observedAttributes=i?.map(([,l])=>l).filter(l=>l!=="")}static{this._properties=c}static{this._asyncMethods=r?r?.split(yt):void 0}static{this._syncMethods=n?.split(yt)}static{this._name=e}constructor(){!a._loadPromise&&(a._loadPromise=t(),a._initializePrototype()),super()}};customElements.define(e,a)}var gt=Object.defineProperty;function Le(e){let t=e.split(ve);return t.length===1?[t[0],X(t[0])]:t}var mo=globalThis.HTMLElement??Le,fo=class extends mo{constructor(){super(),this._store={},this._pendingAttributes=[],this._postLoad=new _,this._postLoaded=new _,this._offspring=[],this._saveInstanceProperties();let e=this.constructor;e._LitConstructor?this._initializeComponent({a:e._LitConstructor}):e._loadPromise.then(this._initializeComponent.bind(this)).catch(t=>{this._postLoaded.reject(t),setTimeout(()=>{throw t})})}static{this.lumina=!0}static _initializePrototype(){this._properties?.forEach(this._bindProp,this),this._asyncMethods?.forEach(this._bindAsync,this),this._syncMethods?.forEach(this._bindSync,this)}static _bindProp(e){gt(this.prototype,e,{configurable:!0,enumerable:!0,get(){return this._store[e]},set(t){this._store[e]=t}})}static _bindAsync(e){gt(this.prototype,e,{async value(...t){return this._litElement||await this._postLoaded.promise,await this._litElement[e](...t)},configurable:!0})}static _bindSync(e){gt(this.prototype,e,{value(...t){return this._litElement[e](...t)},configurable:!0})}get manager(){return this._litElement?.manager}_saveInstanceProperties(){let e=this.constructor,t=this;e._properties?.forEach(s=>{Object.hasOwn(this,s)&&(this._store[s]=t[s],delete t[s])})}attributeChangedCallback(e,t,s){this._litElement?.attributeChangedCallback(e,t,s),this._litElement||this._pendingAttributes.push(e)}connectedCallback(){this._litElement?this._litElement.connectedCallback?.():queueMicrotask(()=>{this._ancestorLoad=Oe(this)})}disconnectedCallback(){this._litElement?.disconnectedCallback?.()}async componentOnReady(){return await this._postLoaded.promise,this}_initializeComponent(e){let t=this.constructor,s=t._name,o=Object.values(e).find(a=>a.tagName===s),r=`${s}--lazy`;!t._LitConstructor&&(t._LitConstructor=o,o.prototype.removeAttribute=function(a){HTMLElement.prototype.removeAttribute.call(this.el,a)},o.prototype.setAttribute=function(a,l){HTMLElement.prototype.setAttribute.call(this.el,a,l)},gt(o.prototype,"isConnected",{get(){return this.el.isConnected}}),customElements.define(r,o)),o.lazy=this;let i=document.createElement(r);o.lazy=void 0,this._litElement=i,this._pendingAttributes.forEach(a=>{let l=this.getAttribute(a);i.attributeChangedCallback(a,null,l)}),Object.entries(this._store).forEach(yo,i),this._store=i;let c=this.isConnected;(c||this._ancestorLoad)&&(i.connectedCallback?.(),c||i.disconnectedCallback())}};function yo([e,t]){this[e]=t}var go=()=>{},vo=class Se extends w{constructor(){super(),this.el=this.constructor.lazy??this,this.manager=Zt(this),this._postLoad=this.constructor.lazy?._postLoad??new _,this._offspring=this.constructor.lazy?._offspring??[],this._postLoaded=this.constructor.lazy?._postLoaded??new _,this._enableUpdating=this.enableUpdating,this.enableUpdating=go;let t=Se.prototype.shouldUpdate;this.shouldUpdate!==t&&(this._originalShouldUpdate=this.shouldUpdate,this.shouldUpdate=t),!1}static finalizeStyles(t){let s=super.finalizeStyles(t),o=this.shadowRootOptions===Ae;return this.runtime?.commonStyles===void 0||o?s:[this.runtime.commonStyles,...s]}static createProperty(t,s){let o=typeof s=="number"?s:Array.isArray(s)?s[0]:0,r=Array.isArray(s)?s[1]:void 0;super.createProperty(t,{attribute:o&1&&typeof t=="string"?X(t):!1,reflect:!!(o&2),type:o&4?Boolean:o&8?Number:void 0,state:!!(o&16),readOnly:!!(o&32),noAccessor:!!(o&64),...r})}static{this.lumina=!0}connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let t=!this.manager.connectedCalled;super.connectedCallback(),t&&queueMicrotask(()=>this._load().catch(s=>{this._postLoaded.reject(s),setTimeout(()=>{throw s})}))}createRenderRoot(){let t=this.el.shadowRoot,s=this.constructor,o=s.shadowRootOptions,n=t??(o===Ae?this.el:this.el.attachShadow(o));if(Object.defineProperty(this,"shadowRoot",{value:n}),t)return w.prototype.createRenderRoot.call(this),t;if(this.isConnected){let i=n.getRootNode();i.adoptedStyleSheets=[...i.adoptedStyleSheets,...s.elementStyles.map(c=>"styleSheet"in c?c.styleSheet:c)]}return n}async _load(){let t=this.el._ancestorLoad??Oe(this.el);t&&await t,await this.manager._load(),this._enableUpdating(!0),this.performUpdate(),this._postLoad.resolve(),await Promise.resolve();let s=this._offspring.filter(o=>!o.manager?.loadedCalled);s.length&&await Promise.allSettled(s.map(async o=>await o.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,s,o){let r=s?.bind(this)??s;this.manager.onLifecycle(()=>(this.el.addEventListener(t,r,o),()=>this.el.removeEventListener(t,r,o)))}listenOn(t,s,o,r){let n=o?.bind(this)??o;this.manager.onLifecycle(()=>(t.addEventListener(s,n,r),()=>t.removeEventListener(s,n,r)))}async componentOnReady(){return await this._postLoaded.promise,this}};vo.$createEvent=we;function Pe(e){let t,s=r=>{t=new URL(r,globalThis.location?.href).href},o={...e,getAssetPath(r){let n=new URL(r,t);return n.origin!==globalThis.location?.origin?n.href:n.pathname},setAssetPath:s,customElement(r,n){n.runtime=o,n.tagName=r,customElements.get(r)||customElements.define(r,n)}};return s(e.defaultAssetPath),o}var Xs=e=>typeof e=="object"&&e!=null?_e(e):e;var er=u;var _o=Pe({defaultAssetPath:"https://jsdev.arcgis.com/coding-components/next/",hydratedAttribute:"hydrated"}),{customElement:ir,getAssetPath:ar,setAssetPath:cr}=_o;export{Io as a,zo as b,Ke as c,Ko as d,f as e,u as f,b as g,R as h,O as i,Ce as j,Ss as k,Ps as l,$e as m,xs as n,Ts as o,Hs as p,Ae as q,Gs as r,vo as s,Xs as t,er as u,_o as v,ir as w,ar as x};
|