@arcgis/coding-components 4.34.0-next.3 → 4.34.0-next.4
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/addons.js +1 -1
- package/dist/cdn/{SLKYJBMF.js → 54OCYIGS.js} +1 -1
- package/dist/cdn/{4UJSQGRR.js → 5W5U53FB.js} +2 -2
- package/dist/cdn/{HD2PUJ4M.js → 7GKZUSUT.js} +2 -2
- package/dist/cdn/{6QMJS7YE.js → APTPPRWK.js} +2 -2
- package/dist/cdn/{CCQCZKCC.js → ARM44GXS.js} +2 -2
- package/dist/cdn/{MX7D2TXJ.js → B5WKU3A7.js} +2 -2
- package/dist/cdn/{FKQ7SSE6.js → BS7L4PFY.js} +2 -2
- package/dist/cdn/{IB5UEIFQ.js → CX635E4R.js} +2 -2
- package/dist/cdn/{YHNSFDD7.js → DC6AP4ZI.js} +4 -4
- package/dist/cdn/{3OPZD6HG.js → E2QHGSDM.js} +2 -2
- package/dist/cdn/{JWPIQMYD.js → EQJHFXEJ.js} +2 -2
- package/dist/cdn/{Z3HBU3YI.js → FYYRTZD6.js} +2 -2
- package/dist/cdn/{Z75HQNTN.js → FZSEXKIS.js} +2 -2
- package/dist/cdn/{HAL3EXK4.js → GGHNFJSP.js} +2 -2
- package/dist/cdn/{F2YRSIVP.js → JETLFAWJ.js} +2 -2
- package/dist/cdn/{TUHPJEG5.js → JQOKZ66I.js} +2 -2
- package/dist/cdn/{5PZD27HR.js → L4H7IVWJ.js} +2 -2
- package/dist/cdn/{PN27PZAJ.js → LP5TBEVL.js} +1 -1
- package/dist/cdn/{CPQVVDWR.js → LWATQ4SL.js} +2 -2
- package/dist/cdn/{J3HINC5N.js → N2KHVO5S.js} +2 -2
- package/dist/cdn/{XNMOJ2SC.js → N5CO2N5G.js} +2 -2
- package/dist/cdn/{QD7WBTTH.js → O3SBRZL6.js} +2 -2
- package/dist/cdn/{ZBGL3SYO.js → O74DGU7J.js} +1 -1
- package/dist/cdn/{PULCYE7H.js → OKNQSCLO.js} +2 -2
- package/dist/cdn/{VPRYSGQQ.js → PJX2MXZB.js} +2 -2
- package/dist/cdn/{IYAABMEA.js → POHSJQCF.js} +2 -2
- package/dist/cdn/{E4PTTXH5.js → Q3JWFB47.js} +2 -2
- package/dist/cdn/{RKCAAVN6.js → RGJGHR4B.js} +2 -2
- package/dist/cdn/{X52LNMUC.js → RJ5463RF.js} +2 -2
- package/dist/cdn/{K7OR2NZQ.js → RQ23YX4Y.js} +2 -2
- package/dist/cdn/{GOQNPC4I.js → RTPQ63T7.js} +2 -2
- package/dist/cdn/{SPSZUVWZ.js → THSDKZAV.js} +2 -2
- package/dist/cdn/{K3KP6FDP.js → UEPVWCWQ.js} +1 -1
- package/dist/cdn/{RFV2R57W.js → UHHP3BIV.js} +2 -2
- package/dist/cdn/{NUXDGLLB.js → UKTZ6PS3.js} +2 -2
- package/dist/cdn/{D4OPUHHF.js → WBN37U56.js} +2 -2
- package/dist/cdn/{D2Q4JNSY.js → XFA77AWY.js} +2 -2
- package/dist/cdn/{NRWICP4W.js → XJLYTCL5.js} +1 -1
- package/dist/cdn/{Q4NJDLN3.js → Z6JHW4EV.js} +2 -2
- package/dist/cdn/{PGN77MRP.js → ZB3QMM6Z.js} +2 -2
- package/dist/cdn/index.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/editor.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/setup-monaco.js +1 -1
- package/dist/chunks/sql-expr-contribution.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-coding-assistant/customElement.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 +5 -5
package/dist/addons.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { html as h } from "lit";
|
|
2
2
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
|
-
v4.34.0-next.
|
|
4
|
+
v4.34.0-next.4 */
|
|
5
5
|
const m = ["popup", "popup-element", "visualization", "labeling", "aggregate-field"], $ = (s) => {
|
|
6
6
|
const e = m.includes(s);
|
|
7
7
|
return e || console.warn(`Profile "${s}" is not supported by the Arcade Coding Assistant.`), e;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.
|
|
3
|
+
v4.34.0-next.4 */
|
|
4
4
|
var g=class{constructor(){this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}},y=(e,t)=>{let n=e;for(;n;){if(n===t)return!0;if(!n.parentNode)return!1;n.parentNode instanceof ShadowRoot?n=n.parentNode.host:n=n.parentNode}return!1},$=(e,t,n)=>{let o=A(t).subscribe;return o(s=>{s.some(r=>y(e,r.target))&&n()})},p={},A=e=>{let t=e.join(","),n=p[t];if(n!==void 0)return n;let o=new Set,s=new MutationObserver(r=>o.forEach(i=>i(r)));globalThis.document&&s.observe(document.documentElement,{attributes:!0,attributeFilter:e,subtree:!0});let c={subscribe:r=>(o.add(r),()=>{o.delete(r),o.size===0&&(s.disconnect(),p[t]=void 0)})};return p[t]=c,c},E=(e,t)=>{let n=e;for(;n;){let o=n.closest?.(t);if(o)return o;let s=n.getRootNode?.();if(s===globalThis.document)return null;n=s.host}return null},U=e=>E(e,":is(.calcite-mode-light, .calcite-mode-dark)")?.classList.contains("calcite-mode-dark")?"dark":"light";var N=(e,t,n)=>E(e,`[${t}]`)?.getAttribute(t)??n,S=e=>e.nodeType===Node.ELEMENT_NODE,w=e=>typeof e.setFocus=="function",l=(e,t="")=>{if(!S(e))return!1;if(e.matches(t))return w(e)&&setTimeout(()=>void e.setFocus(),0),!0;for(let o of e.children)if(l(o,t))return!0;let n=e.shadowRoot;if(n){for(let o of n.children)if(l(o,t))return!0}return!1},M=async e=>{e!=null&&(w(e)?await e.setFocus():e.focus())},V=(e,t)=>{if(e?.shadowRoot){if(e.hasAttribute("hydrated")||e.hasAttribute("calcite-hydrated")){l(e,t);return}Promise.resolve(e.componentOnReady?.()).then(()=>l(e,t))}};var q=(e,t,...n)=>{try{return e?.call(t,...n)}catch(o){console.error(o,e)}},_=async(e,t,...n)=>{try{return await e?.call(t,...n)}catch(o){console.error(o,e)}},a=e=>{let t="";for(let n=0;n<e;n++)t+=((1+Math.random())*65536|0).toString(16).substring(1);return t},B=()=>[a(2),a(1),a(1),a(1),a(3)].join("-"),j="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),C=new Set(j),u="en",R={pt:"pt-PT",nb:"no",nn:"no",zh:"zh-CN"},z=async(e,t,n="")=>{let o=`${t}/${n}`,s=`${o}${e}.json`;return f[s]??(f[s]=L(e,o)),await f[s]},f={},L=async(e,t)=>{let n=`${t}${e}.json`;try{let o=await fetch(n);if(o.ok)return await o.json()}catch(o){return console.error(o),{}}return e===u?{}:await L(u,t)},O=e=>{let t=N(e,"lang",globalThis.navigator?.language||u);return{lang:t,t9nLocale:T(t)}},T=e=>{let[t,n]=e.split("-"),o=t.toLowerCase(),s=o;return n&&(s=`${o}-${n.toUpperCase()}`),s=R[s]??s,C.has(s)?s:n?T(o):u},Q=(e,t,n,o)=>{let s,c=()=>k(e,t(),o).then(r=>{(s?.lang!==r.lang||s.t9nLocale!==r.t9nLocale||s.t9nStrings!==r.t9nStrings)&&n(r),s=r}).catch(console.error);return queueMicrotask(c),$(e,["lang"],c)},k=async(e,t,n=e.localName.split("-").slice(1).join("-"))=>{let{lang:o,t9nLocale:s}=O(e),c=`${t}/${n}/t9n`,i=n===null?{}:await z(s,c,"messages.");return{lang:o,t9nLocale:s,t9nStrings:i}};var m='"',b="'",v=(e,t)=>new Array(t+1).join(e),D=e=>{let t=m,n=b;e.includes(t)&&!e.includes(n)&&(n=m,t=b);let s=new RegExp(`(^|[^\\\\])((?:\\\\{2})*)((?:\\\\${n})+)`,"gu");e=e.replace(s,(r,i,d,h)=>i+d+v(n,h.length/2));let c=new RegExp(`(^|[^\\\\])((?:\\\\{2})*)(${t}+)`,"gu");return e=e.replace(c,(r,i,d,h)=>i+d+v(`\\${t}`,h.length)),t+e+t},H=e=>{let t=e?e.replaceAll(/[-[\]/{}()*+?.\\^$|]/gu,"\\$&"):"^.*$";return new RegExp(t,"i")},K=(e,t={})=>(e??"").replace(/\{(?<valueName>.*?)\}/gu,(n,o)=>t[o]??n),Z=e=>`\u200E${e??""}\u200E`;var G=e=>e.replace(P,(t,n)=>`${n===0?"":"-"}${t.toLowerCase()}`),P=/[A-Z]+(?![a-z])|[A-Z]/gu;var J=(e,t)=>{let n=t>x?F:t/I,o=0,s=setInterval(()=>{o+=n,o>=t&&(clearInterval(s),e())},n);return s},x=4e3,F=2e3,I=4,W=e=>e!==null,X=e=>e!==void 0;var Y=(e,t=100)=>{let n;return(...o)=>{let s=()=>{clearTimeout(n),e(...o)};clearTimeout(n),n=setTimeout(s,t)}};export{g as a,$ as b,U as c,M as d,V as e,q as f,_ as g,B as h,C as i,z as j,O as k,T as l,Q as m,D as n,H as o,K as p,Z as q,G as r,J as s,W as t,X as u,Y as v};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.
|
|
4
|
-
import{a as q,b as z,c as A,d as h}from"./
|
|
3
|
+
v4.34.0-next.4 */
|
|
4
|
+
import{a as q,b as z,c as A,d as h}from"./O74DGU7J.js";import{b as x,c as I,d as P,e as R,h as K,k as B}from"./DC6AP4ZI.js";import{D as O}from"./7GKZUSUT.js";import{l as U,p as T,q as k,t as g,u as M}from"./54OCYIGS.js";import{Gl as $,Pl as V}from"./WBN37U56.js";export default $arcgis.t(([w,ce,ue,he,de])=>{function te(t){return!!t&&typeof t=="object"&&"declaredClass"in t&&typeof t.declaredClass=="string"&&t.declaredClass.startsWith("esri.layers.")&&F(t)&&"queryFeatures"in t&&typeof t.queryFeatures=="function"}function fe(t){return!!t&&typeof t=="object"&&"allLayers"in t&&"allTables"in t&&typeof t.allLayers=="object"&&typeof t.allTables=="object"}function ie(t){return!!t&&typeof t=="object"&&"declaredClass"in t&&typeof t.declaredClass=="string"&&(t.declaredClass==="esri.Map"||t.declaredClass==="esri.WebMap"||t.declaredClass==="esri.WebScene")}function ye(t){return!!t&&typeof t=="object"&&"loadAll"in t&&typeof t.loadAll=="function"}function re(t){return!!t&&typeof t=="object"&&"portalItem"in t&&t.portalItem!=null}function se(t){return!!t&&typeof t=="object"&&"portalItem"in t&&t.portalItem!=null}function F(t){return!!t&&typeof t=="object"&&"fields"in t&&Array.isArray(t.fields)}function v(t){return!!t&&typeof t=="object"&&"url"in t&&typeof t.url=="string"}function _e(t){return v(t)&&/\/(?:featureserver|mapserver)(?:\/|$)/iu.test(t.url??"")}function Ue(t){return v(t)||F(t)||se(t)}function ke(t){return v(t)||F(t)||se(t)}function Oe(t){return re(t)||ie(t)||_e(t)}function H(t){return!!t&&typeof t=="object"&&"declaredClass"in t&&t.declaredClass==="esri.layers.support.Subtype"}function L(t){return!!t&&typeof t=="object"&&"declaredClass"in t&&t.declaredClass==="esri.layers.support.CodedValueDomain"}function me(t){return!!t&&typeof t=="object"&&"declaredClass"in t&&t.declaredClass==="esri.layers.support.InheritedDomain"}function Re(t){return!!t&&typeof t=="object"&&"id"in t&&typeof t.id=="string"&&"definitions"in t&&typeof t.definitions=="object"&&!Array.isArray(t.definitions)}function C(t){return!!t&&typeof t=="object"&&"title"in t&&typeof t.title=="string"}function be(t){return!!t&&typeof t=="object"&&"url"in t&&typeof t.url=="string"}function ne(t){return!!t&&typeof t=="object"&&"layerId"in t&&typeof t.layerId=="number"}function j(t){return!!t&&typeof t=="object"&&"typeIdField"in t&&"types"in t}function X(t){return!!t&&typeof t=="object"&&"getFieldDomain"in t&&typeof t.getFieldDomain=="function"}function d(t){return!!t&&typeof t=="object"&&"subtypeField"in t}function ge(t){return d(t)&&"subtypes"in t}function we(t){return!!t&&typeof t=="object"&&"portalItem"in t}function Ce(t){return ne(t)&&"relationships"in t&&"url"in t&&Array.isArray(t.relationships)&&typeof t.url=="string"}function De(t){return!!t&&typeof t=="object"&&"isTable"in t&&typeof t.isTable=="boolean"}function Se(t){return!!t&&typeof t=="object"&&"load"in t&&typeof t.load=="function"}async function oe(t){if(!t)return null;let e;return F(t)?e=t:e=new w(t),Se(e)&&await e.load(),e}async function Fe(t){t+="/layers";let e=await ce(t,{responseType:"json",query:{f:"json"}}),i=t.endsWith("MapServer/layers")?"data":"query",r=Y(e.data?.layers,i),s=Y(e.data?.tables,i);return{layers:r,tables:s}}function Y(t,e){return t?t.filter(i=>{switch(i.type){case"Feature Layer":case"Oriented Imagery Layer":case"Catalog Layer":case"Table":return(i.capabilities?i.capabilities.toLowerCase().split(",").map(r=>r.trim()):[]).includes(e);default:return!1}}):[]}async function ve(t,e){let i=new w({url:`${t.url}/${e.relatedTableId}`});return await i.load(),i}function ae(t){return(e,i)=>{if(e.type==="oid")return-1;if(i.type==="oid")return 1;if(d(t)){if(e.name===t.subtypeField)return-1;if(i.name===t.subtypeField)return 1}if(j(t)){if(e.name===t.typeIdField)return-1;if(i.name===t.typeIdField)return 1}return e.name.localeCompare(i.name,"en",{sensitivity:"base"})}}function Z(t,e){return t?.every(i=>i.domains?.[e.name]?.type==="inherited")??!1}var Te=/^[a-z_$][a-z0-9_$]*$/giu;function le(t,e=!0){return t.match(Te)?`${e?".":""}${t}`:`["${t}"]`}function pe(t,e){return t?`${t}${le(e)}`:e}function J(t){return we(t)?t.portalItem:null}function Ke(t,e,i=!1){let r=e,s=[],o=[];return A(t).forEach(n=>{r&&(r+=`
|
|
5
5
|
|
|
6
6
|
`),r+=`**${n.name}** (${n.alias})
|
|
7
7
|
${n.type}`,n.description&&(r+=`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.
|
|
4
|
-
import{a as C,f as p,g as M,r as G,s as Tt}from"./
|
|
3
|
+
v4.34.0-next.4 */
|
|
4
|
+
import{a as C,f as p,g as M,r as G,s as Tt}from"./54OCYIGS.js";var J=globalThis,Q=J.ShadowRoot&&(J.ShadyCSS===void 0||J.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ht=Symbol(),Pt=new WeakMap,I=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==ht)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Q&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=Pt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Pt.set(e,t))}return t}toString(){return this.cssText}},Nt=o=>new I(typeof o=="string"?o:o+"",void 0,ht),ae=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((s,n,i)=>s+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+o[i+1],o[0]);return new I(e,o,ht)},Rt=(o,t)=>{if(Q)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let s=document.createElement("style"),n=J.litNonce;n!==void 0&&s.setAttribute("nonce",n),s.textContent=e.cssText,o.appendChild(s)}},dt=Q?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return Nt(e)})(o):o;var ut=globalThis,Y=ut.trustedTypes,Dt=Y?Y.createPolicy("lit-html",{createHTML:o=>o}):void 0,ft="$lit$",b=`lit$${Math.random().toFixed(9).slice(2)}$`,mt="?"+b,ce=`<${mt}>`,x=document,H=()=>x.createComment(""),V=o=>o===null||typeof o!="object"&&typeof o!="function",yt=Array.isArray,jt=o=>yt(o)||typeof o?.[Symbol.iterator]=="function",pt=`[
|
|
5
5
|
\f\r]`,j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Lt=/-->/g,Ut=/>/g,A=RegExp(`>|${pt}(?:([^\\s"'>=/]+)(${pt}*=${pt}*(?:[^
|
|
6
6
|
\f\r"'\`<>=]|("|')|))|$)`,"g"),kt=/'/g,Mt=/"/g,Ht=/^(?:script|style|textarea|title)$/i,gt=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),es=gt(1),ss=gt(2),os=gt(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),It=new WeakMap,w=x.createTreeWalker(x,129);function Vt(o,t){if(!yt(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Dt!==void 0?Dt.createHTML(t):t}var qt=(o,t)=>{let e=o.length-1,s=[],n,i=t===2?"<svg>":t===3?"<math>":"",r=j;for(let a=0;a<e;a++){let c=o[a],l,u,h=-1,m=0;for(;m<c.length&&(r.lastIndex=m,u=r.exec(c),u!==null);)m=r.lastIndex,r===j?u[1]==="!--"?r=Lt:u[1]!==void 0?r=Ut:u[2]!==void 0?(Ht.test(u[2])&&(n=RegExp("</"+u[2],"g")),r=A):u[3]!==void 0&&(r=A):r===A?u[0]===">"?(r=n??j,h=-1):u[1]===void 0?h=-2:(h=r.lastIndex-u[2].length,l=u[1],r=u[3]===void 0?A:u[3]==='"'?Mt:kt):r===Mt||r===kt?r=A:r===Lt||r===Ut?r=j:(r=A,n=void 0);let y=r===A&&o[a+1].startsWith("/>")?" ":"";i+=r===j?c+ce:h>=0?(s.push(l),c.slice(0,h)+ft+c.slice(h)+b+y):c+b+(h===-2?a:y)}return[Vt(o,i+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},q=class o{constructor({strings:t,_$litType$:e},s){let n;this.parts=[];let i=0,r=0,a=t.length-1,c=this.parts,[l,u]=qt(t,e);if(this.el=o.createElement(l,s),w.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=w.nextNode())!==null&&c.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(ft)){let m=u[r++],y=n.getAttribute(h).split(b),_=/([.?@])?(.*)/.exec(m);c.push({type:1,index:i,name:_[2],strings:y,ctor:_[1]==="."?X:_[1]==="?"?tt:_[1]==="@"?et:S}),n.removeAttribute(h)}else h.startsWith(b)&&(c.push({type:6,index:i}),n.removeAttribute(h));if(Ht.test(n.tagName)){let h=n.textContent.split(b),m=h.length-1;if(m>0){n.textContent=Y?Y.emptyScript:"";for(let y=0;y<m;y++)n.append(h[y],H()),w.nextNode(),c.push({type:2,index:++i});n.append(h[m],H())}}}else if(n.nodeType===8)if(n.data===mt)c.push({type:2,index:i});else{let h=-1;for(;(h=n.data.indexOf(b,h+1))!==-1;)c.push({type:7,index:i}),h+=b.length-1}i++}}static createElement(t,e){let s=x.createElement("template");return s.innerHTML=t,s}};function O(o,t,e=o,s){if(t===f)return t;let n=s!==void 0?e._$Co?.[s]:e._$Cl,i=V(t)?void 0:t._$litDirective$;return n?.constructor!==i&&(n?._$AO?.(!1),i===void 0?n=void 0:(n=new i(o),n._$AT(o,e,s)),s!==void 0?(e._$Co??=[])[s]=n:e._$Cl=n),n!==void 0&&(t=O(o,n._$AS(o,t.values),n,s)),t}var Z=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:s}=this._$AD,n=(t?.creationScope??x).importNode(e,!0);w.currentNode=n;let i=w.nextNode(),r=0,a=0,c=s[0];for(;c!==void 0;){if(r===c.index){let l;c.type===2?l=new D(i,i.nextSibling,this,t):c.type===1?l=new c.ctor(i,c.name,c.strings,this,t):c.type===6&&(l=new st(i,this,t)),this._$AV.push(l),c=s[++a]}r!==c?.index&&(i=w.nextNode(),r++)}return w.currentNode=x,n}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},D=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,n){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=O(this,t,e),V(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==f&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):jt(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!==d&&V(this._$AH)?this._$AA.nextSibling.data=t:this.T(x.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:s}=t,n=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=q.createElement(Vt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===n)this._$AH.p(e);else{let i=new Z(n,this),r=i.u(this.options);i.p(e),this.T(r),this._$AH=i}}_$AC(t){let e=It.get(t.strings);return e===void 0&&It.set(t.strings,e=new q(t)),e}k(t){yt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,n=0;for(let i of t)n===e.length?e.push(s=new o(this.O(H()),this.O(H()),this,this.options)):s=e[n],s._$AI(i),n++;n<e.length&&(this._$AR(s&&s._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},S=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,n,i){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=i,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=d}_$AI(t,e=this,s,n){let i=this.strings,r=!1;if(i===void 0)t=O(this,t,e,0),r=!V(t)||t!==this._$AH&&t!==f,r&&(this._$AH=t);else{let a=t,c,l;for(t=i[0],c=0;c<i.length-1;c++)l=O(this,a[s+c],e,c),l===f&&(l=this._$AH[c]),r||=!V(l)||l!==this._$AH[c],l===d?t=d:t!==d&&(t+=(l??"")+i[c+1]),this._$AH[c]=l}r&&!n&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},X=class extends S{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},tt=class extends S{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},et=class extends S{constructor(t,e,s,n,i){super(t,e,s,n,i),this.type=5}_$AI(t,e=this){if((t=O(this,t,e,0)??d)===f)return;let s=this._$AH,n=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,i=t!==d&&(s===d||n);n&&this.element.removeEventListener(this.name,this,s),i&&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)}},st=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){O(this,t)}},zt={M:ft,P:b,A:mt,C:1,L:qt,R:Z,D:jt,V:O,I:D,H:S,N:tt,U:et,B:X,F:st},le=ut.litHtmlPolyfillSupport;le?.(q,D),(ut.litHtmlVersions??=[]).push("3.3.0");var vt=(o,t,e)=>{let s=e?.renderBefore??t,n=s._$litPart$;if(n===void 0){let i=e?.renderBefore??null;s._$litPart$=n=new D(t.insertBefore(H(),i),i,void 0,e??{})}return n._$AI(o),n};var{is:he,defineProperty:de,getOwnPropertyDescriptor:pe,getOwnPropertyNames:ue,getOwnPropertySymbols:fe,getPrototypeOf:me}=Object,nt=globalThis,Bt=nt.trustedTypes,ye=Bt?Bt.emptyScript:"",ge=nt.reactiveElementPolyfillSupport,z=(o,t)=>o,ot={toAttribute(o,t){switch(t){case Boolean:o=o?ye:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},B=(o,t)=>!he(o,t),Wt={attribute:!0,type:String,converter:ot,reflect:!1,useDefault:!1,hasChanged:B};Symbol.metadata??=Symbol("metadata"),nt.litPropertyMetadata??=new WeakMap;var E=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Wt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let s=Symbol(),n=this.getPropertyDescriptor(t,s,e);n!==void 0&&de(this.prototype,t,n)}}static getPropertyDescriptor(t,e,s){let{get:n,set:i}=pe(this.prototype,t)??{get(){return this[e]},set(r){this[e]=r}};return{get:n,set(r){let a=n?.call(this);i?.call(this,r),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Wt}static _$Ei(){if(this.hasOwnProperty(z("elementProperties")))return;let t=me(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 e=this.properties,s=[...ue(e),...fe(e)];for(let n of s)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,n]of e)this.elementProperties.set(s,n)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let n=this._$Eu(e,s);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let n of s)e.unshift(dt(n))}else t!==void 0&&e.push(dt(t));return e}static _$Eu(t,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s: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,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Rt(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){let s=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,s);if(n!==void 0&&s.reflect===!0){let i=(s.converter?.toAttribute!==void 0?s.converter:ot).toAttribute(e,s.type);this._$Em=t,i==null?this.removeAttribute(n):this.setAttribute(n,i),this._$Em=null}}_$AK(t,e){let s=this.constructor,n=s._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let i=s.getPropertyOptions(n),r=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:ot;this._$Em=n,this[n]=r.fromAttribute(e,i.type)??this._$Ej?.get(n)??null,this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){let n=this.constructor,i=this[t];if(s??=n.getPropertyOptions(t),!((s.hasChanged??B)(i,e)||s.useDefault&&s.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(n._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:n,wrapped:i},r){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??e??this[t]),i!==!0||r!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),n===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}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[n,i]of this._$Ep)this[n]=i;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[n,i]of s){let{wrapped:r}=i,a=this[n];r!==!0||this._$AL.has(n)||a===void 0||this.C(n,void 0,i,a)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(s=>s.hostUpdate?.()),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};E.elementStyles=[],E.shadowRootOptions={mode:"open"},E[z("elementProperties")]=new Map,E[z("finalized")]=new Map,ge?.({ReactiveElement:E}),(nt.reactiveElementVersions??=[]).push("2.1.0");var bt=globalThis,v=class extends E{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=vt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return f}};v._$litElement$=!0,v.finalized=!0,bt.litElementHydrateSupport?.({LitElement:v});var ve=bt.litElementPolyfillSupport;ve?.({LitElement:v});(bt.litElementVersions??=[]).push("4.2.0");var rt=Symbol.for("controller"),be=o=>typeof o=="object"&&o!==null&&(rt in o||"hostConnected"in o||"hostDisconnected"in o||"hostUpdate"in o||"hostUpdated"in o),Cs=o=>typeof o?.then=="function";var W,L=o=>{W!==o&&(W=o,queueMicrotask(()=>W===o?W=void 0:0))},F=o=>W,T=[],Ee=o=>{if(o===void 0){T=[];return}let t=T.indexOf(o);T=t===-1?[...T,o]:T.slice(0,t+1),queueMicrotask(()=>T=[])},$e=()=>T,U,_s=o=>{U!==o&&(U=o,queueMicrotask(()=>U===o?U=void 0:0))},Ce=()=>{let o=U;return U=void 0,o},_e=async(o,t)=>{let e=$t(o);if(e===void 0)return o;if(await e.ready,typeof t=="function"){let s=e.watchExports(n=>t(n,s))}return e.exports},Ae=async o=>{let t=$t(o);return await t.ready,t},$t=o=>{let e=F().manager.X(o);if(e!==void 0)return e;if(be(o))return o;let s=Ce();if(s!==void 0)return s},it=!1,As=o=>{it=!0;try{return o()}finally{it=!1}};var we=(o,t,e)=>{let s=Object.keys(o),n=s.length;k===void 0&&queueMicrotask(at),k??=new Map;let i=k.get(o);return i===void 0&&(i={callbacks:[],keyCount:n},k.set(o,i)),i.keyCount!==n&&(i.callbacks.forEach(r=>r(s)),i.callbacks=[],i.keyCount=n),i.callbacks.push(r=>{let a=l=>p(t,null,l),c=r[n];c===void 0?a(void 0):o[c]===e?a(c):a(void 0)}),e},k,at=()=>{k?.forEach(({callbacks:o},t)=>{let e=Object.keys(t);o.forEach(s=>s(e))}),k=void 0},xe=(o,t,e)=>{let s=o.manager;return s.V!==d&&s.V!==e&&s.S(void 0,void 0),s.T.length===0&&queueMicrotask(()=>s.S(void 0,void 0)),s.V=e,s.T.push((n,i)=>p(t,void 0,e===i?n:void 0)),e},Oe=(o=[F(),...$e()],t,e)=>{let s=Array.isArray(o)?o:[o],n=s.length+1,i=r=>{n-=1,r!==void 0&&(n=Math.min(n,0)),n===0&&t(r)};s.forEach(r=>we(r,a=>i(a===void 0?void 0:{key:a,host:r,isReactive:!1}),e));for(let r of s)if("manager"in r&&r.manager.component===r){xe(r,a=>i(a===void 0?void 0:{key:a,host:r,isReactive:!0}),e);break}return e},Se=(o="",t={},e=F())=>{let s={emit:n=>{o===""&&at();let i=new CustomEvent(o,{detail:n,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(i),i}};return o===""&&Oe(void 0,n=>o=n.key,s),s},Te=Se.bind(null,""),Gt;Gt=rt;var Et=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#o=[],this.#n=[],this.#c=[],this.#l=[],this.#p=[],this.#h=[],this.#d=!1,this.P=new C,this.connectedCalled=!1,this.loadedCalled=!1,this[Gt]=!0,this.#a=[];let e=this,s=t??F(new.target.name);e.#i=s,e.ready=e.P.promise,e.#r=Kt(e),e.component=s,e.#i.addController(e),e.#i.manager===void 0||(Ee(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#o;#n;#c;#l;#p;#h;#d;#i;catchUpLifecycle(){let{manager:t}=this.#i;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#d&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(console.error)}#r;get exports(){return this.#r}set exports(t){let e=this.#r;e!==t&&(this.#r=t,this.#a.forEach(p),this.connectedCalled&&this.O!==!1&&this.#i.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#r=e?Kt(t):t,this.#a.forEach(p)}#a;watchExports(t){let e=()=>t(this.#r);return this.#a.push(e),()=>void this.#a.splice(this.#a.indexOf(e),1)}get use(){return L(this.#i),_e}get useRef(){return L(this.#i),Ae}get useRefSync(){return L(this.#i),$t}controllerRemoved(){this.#i.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this.#t.push(t)}onDisconnected(t){this.#e.push(t)}onLoad(t){this.#s.push(t)}onLoaded(t){this.#o.push(t)}onUpdate(t){this.#n.push(t)}onUpdated(t){this.#c.push(t)}onDestroy(t){this.#l.push(t)}onLifecycle(t){this.#p.push(t),this.connectedCalled&&this.#i.el.isConnected&&this.#u(t)}triggerConnected(){let t=this;t.hostConnected&&p(t.hostConnected,t),t.#t.forEach(p),t.triggerLifecycle(),t.connectedCalled=!0}triggerDisconnected(){let t=this;t.hostDisconnected&&p(t.hostDisconnected,t),t.#e.forEach(p),t.#h.forEach(p),t.#h=[]}async triggerLoad(){if(this.#d)return;this.#d=!0;let t=this;t.hostLoad&&await M(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(M)),this.P.resolve(this.#r)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&p(this.hostLoaded,this),this.#o.forEach(p),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&p(this.hostUpdate,this,t),this.#n.forEach(Ft,t)}triggerUpdated(t){this.hostUpdated&&p(this.hostUpdated,this,t),this.#c.forEach(Ft,t)}triggerDestroy(){this.hostDestroy&&p(this.hostDestroy,this),this.#l.forEach(p)}triggerLifecycle(){this.hostLifecycle&&this.#u(()=>this.hostLifecycle()),this.#p.forEach(this.#u,this)}#u(t){L(this.#i);let e=p(t);(Array.isArray(e)?e:[e]).forEach(n=>{typeof n=="function"?this.#h.push(n):typeof n=="object"&&typeof n.remove=="function"&&this.#h.push(n.remove)})}};function Ft(o){p(o,void 0,this)}var Jt=Et,Kt=o=>{if(typeof o!="object"&&typeof o!="function"||o===null)return o;let t={get(s,n,i){if(!((n==="exports"||n==="_exports")&&n in s&&s[n]===e)&&(n in s||n in Promise.prototype||typeof n=="symbol"))return typeof s=="function"?s[n]:Reflect.get(s,n,i)}},e=new Proxy(o,t);return e};var Qt=";",ct=",",Yt=":";var _t=o=>{let t=o;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let e=t;return e.manager?.loadedCalled||(e.J??e._offspring).push(o),(e.I??e._postLoad).promise}return!1},At={};function wt(){}var Pe=(o,t)=>function(s,n){if(!globalThis.customElements)return;let r=(n??s??{}).resourcesUrl;r&&o.setAssetPath(r);for(let[a,[c,l=""]]of Object.entries(t)){if(customElements.get(a))continue;let[u,h,m]=l.split(Qt),y=u?u?.split(ct).map(Ne):void 0,_=y?.map(([R])=>R),N=class extends Ct{static{this.observedAttributes=y?.map(([,R])=>R).filter(R=>R!=="")}static{this.C=_}static{this.E=h?h?.split(ct):void 0}static{this.D=m?.split(ct)}static{this.L=a}static{this.K=o}constructor(){!N.B&&(N.B=c(),N.F()),super()}};customElements.define(a,N)}},lt=Object.defineProperty,Ne=o=>{let t=o.split(Yt);return t.length===1?[t[0],G(t[0])]:t},Re=globalThis.HTMLElement??wt,Ct=class extends Re{constructor(){super(),this.#e={},this.#s=[],this.I=new C,this.H=new C,this.J=[];let t=this,e=t.constructor;t._offspring=t.J,t._postLoad=t.I,e.C?.forEach(s=>{Object.hasOwn(t,s)&&(t.#e[s]=t[s],delete t[s])}),e.A?t.#o({a:e.A}):e.B.then(async s=>{await e.K.p,t.#o(await(s.default?.then(n=>typeof n=="function"?{a:n}:n)??s))}).catch(s=>{t.H.reject(s),setTimeout(()=>{throw s})})}static{this.lumina=!0}static F(){for(let t of this.C??[])lt(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#e[t]},set(e){this.#e[t]=e}});for(let t of this.E??[])lt(this.prototype,t,{async value(...e){return this.#t||await this.H.promise,await this.#t[t](...e)},configurable:!0});for(let t of this.D??[])lt(this.prototype,t,{value(...e){return this.#t[t](...e)},configurable:!0})}#t;#e;#s;get manager(){return this.#t?.manager}attributeChangedCallback(t,e,s){this.#t?.attributeChangedCallback(t,e,s),this.#t||this.#s.push(t)}connectedCallback(){this.#t?this.#t.connectedCallback?.():queueMicrotask(()=>this.G=_t(this))}disconnectedCallback(){this.#t?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#o(t){let e=this.constructor,s=e.L,n=this.#e,i=Object.values(t).find(h=>h.L===s),r=`${s}--lazy`,a=i;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);Le(a),!e.A&&(e.A=i,customElements.define(r,i)),i.N=this;let l=document.createElement(r);i.N=void 0,this.#t=l,this.#e=l,this.#s.forEach(h=>l.attributeChangedCallback(h,null,this.getAttribute(h))),Object.entries(n).forEach(De,l);let u=this.isConnected;(u||this.G)&&(l.connectedCallback?.(),u||l.disconnectedCallback())}addController(){}requestUpdate(){this.#t?.requestUpdate()}};function De([o,t]){this[o]=t}var Le=o=>{let t=o.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(n,i){e.setAttribute.call(this.el,n,i)},t.removeAttribute=function(n){e.removeAttribute.call(this.el,n)},lt(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var g={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},P=o=>(...t)=>({_$litDirective$:o,values:t}),$=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var te=P(class extends ${constructor(o){if(super(o),o.type!==g.ATTRIBUTE||o.name!=="class"||o.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter(t=>o[t]).join(" ")+" "}update(o,[t]){if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(let s in t)t[s]&&!this.nt?.has(s)&&this.st.add(s);return this.render(t)}let e=o.element.classList;for(let s of this.st)s in t||(e.remove(s),this.st.delete(s));for(let s in t){let n=!!t[s];n===this.st.has(s)||this.nt?.has(s)||(n?(e.add(s),this.st.add(s)):(e.remove(s),this.st.delete(s)))}return f}});var ee="important",ke=" !"+ee,Me=P(class extends ${constructor(o){if(super(o),o.type!==g.ATTRIBUTE||o.name!=="style"||o.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(o){return Object.keys(o).reduce((t,e)=>{let s=o[e];return s==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(o,[t]){let{style:e}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let s of this.ft)t[s]==null&&(this.ft.delete(s),s.includes("-")?e.removeProperty(s):e[s]=null);for(let s in t){let n=t[s];if(n!=null){this.ft.add(s);let i=typeof n=="string"&&n.endsWith(ke);s.includes("-")||i?e.setProperty(s,i?n.slice(0,-11):n,i?ee:""):e[s]=n}}return f}});var{I:Ie}=zt;var oe=o=>o.strings===void 0,se=()=>document.createComment(""),Co=(o,t,e)=>{let s=o._$AA.parentNode,n=t===void 0?o._$AB:t._$AA;if(e===void 0){let i=s.insertBefore(se(),n),r=s.insertBefore(se(),n);e=new Ie(i,r,o,o.options)}else{let i=e._$AB.nextSibling,r=e._$AM,a=r!==o;if(a){let c;e._$AQ?.(o),e._$AM=o,e._$AP!==void 0&&(c=o._$AU)!==r._$AU&&e._$AP(c)}if(i!==n||a){let c=e._$AA;for(;c!==i;){let l=c.nextSibling;s.insertBefore(c,n),c=l}}}return e},_o=(o,t,e=o)=>(o._$AI(t,e),o),je={},ne=(o,t=je)=>o._$AH=t,Ao=o=>o._$AH,wo=o=>{o._$AP?.(!1,!0);let t=o._$AA,e=o._$AB.nextSibling;for(;t!==e;){let s=t.nextSibling;t.remove(),t=s}};var He=P(class extends ${constructor(o){if(super(o),o.type!==g.PROPERTY&&o.type!==g.ATTRIBUTE&&o.type!==g.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!oe(o))throw Error("`live` bindings can only contain a single expression")}render(o){return o}update(o,[t]){if(t===f||t===d)return t;let e=o.element,s=o.name;if(o.type===g.PROPERTY){if(t===e[s])return f}else if(o.type===g.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(s))return f}else if(o.type===g.ATTRIBUTE&&e.getAttribute(s)===t+"")return f;return ne(o),t}});var Ot=class extends Jt{constructor(t){super(t),this.destroyed=!1,this.R=!1,this.V=d,this.T=[],this.#s=new WeakMap,this.#e=t,this.exports=void 0,this.hasDestroy=St in t&&typeof t.destroy=="function",v.prototype.addController.call(t,{hostConnected:()=>{if(this.destroyed){let e=t.el.localName;throw t.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${St} prop.`)}this.#t!==void 0&&clearTimeout(this.#t),at();for(let e of t.M)"triggerConnected"in e?e.triggerConnected():p(e.hostConnected,e)},hostDisconnected:()=>{for(let e of t.M)"triggerDisconnected"in e?e.triggerDisconnected():p(e.hostDisconnected,e);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(let e of t.M)"triggerUpdate"in e?e.triggerUpdate(this.Q):p(e.hostUpdate,e,this.Q)},hostUpdated:()=>{for(let e of t.M)"triggerUpdated"in e?e.triggerUpdated(this.Q):p(e.hostUpdated,e,this.Q);this.Q=void 0}}),queueMicrotask(()=>this.R=!0),L(t)}#t;#e;async destroy(){if(!this.destroyed){this.#e.el.isConnected&&(this.hasDestroy=!1,this.#e.el.remove()),this.#t=void 0,this.destroyed=!0;for(let t of this.#e.M)"triggerDestroy"in t?t.triggerDestroy():p(t.hostDestroy,t);this.#e.M.splice(0)}}U(){if(this.#t!==void 0&&clearTimeout(this.#t),!this.#e.el.isConnected&&!this.#e.autoDestroyDisabled){let t=()=>void this.#e.destroy();this.#t=Tt(t,Je)}}S(t,e){let s=this.T;this.V=d,this.T=[],s.forEach(n=>n(t,e))}#s;W(t,e){(typeof e=="object"&&e!==null||typeof e=="function")&&this.#s.set(e,t)}X(t){if(typeof t=="object"&&t!==null||typeof t=="function")return this.#s.get(t)}},Je=1e3,St="autoDestroyDisabled",ie=class o extends v{constructor(){super(),this.M=[],this.manager=new Ot(this);let t=this,e=t.constructor,s=e.N,n=e.K.o,i=o.prototype.shouldUpdate;t.#o=s?.H??new C,t.I=s?.I??new C,t.J=s?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=s??t,t.#s=t.enableUpdating,t.enableUpdating=wt,t.shouldUpdate!==i&&(t.#e=t.shouldUpdate,t.shouldUpdate=i),n&&(t.#t=new Map,e.elementProperties.forEach((r,a)=>t.#t.set(a,n()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),s=this.shadowRootOptions===At;return this.K?.commonStyles===void 0||s?e:[this.K.commonStyles,...e]}static createProperty(t,e){let s=typeof e=="number"?e:Array.isArray(e)?e[0]:0,n=Array.isArray(e)?e[1]:void 0,i=n?.hasChanged??B,r={attribute:s&1&&typeof t=="string"?G(t):!1,reflect:!!(s&2),type:s&4?Boolean:s&8?Number:void 0,state:!!(s&16),readOnly:!!(s&32),noAccessor:!!(s&64),c:!1,...n,hasChanged(a,c){let l=i(a,c);return r.c=l,l}};super.createProperty(t,r)}static getPropertyDescriptor(t,e,s){let n=this.K,i=super.getPropertyDescriptor(t,e,s);return s.d=i,{...i,get(){return n.t?.(this.#t.get(t)),i.get?.call(this)},set(r){let a=this.manager;if(s.readOnly&&!it&&(a.R||a.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${r}"`);i.set.call(this,r??void 0),s.c&&this.#t?.get(t)?.notify(),a.T.length>0&&a?.S(t,r)}}}static{this.lumina=!0}#t;#e;#s;#o;#n;connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let t=this.constructor.K.c?.(()=>this.requestUpdate());this.#n=t;let e=!this.manager.connectedCalled;super.connectedCallback(),e?queueMicrotask(()=>this.#l().catch(s=>{this.#o.reject(s),setTimeout(()=>{throw s})})):t&&this.requestUpdate()}#c(t){try{this.#n.clear(),this.constructor.K.r(this.#n,()=>super.update(t))}catch(e){throw this.#n.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#n?.destroy(),this.#n=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,s=e.shadowRootOptions,i=t??(s===At?this.el:this.el.attachShadow(s));if(t)return v.prototype.createRenderRoot.call(this),t;if(this.isConnected){let r=i.getRootNode();r.adoptedStyleSheets=[...r.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return i}async#l(){let t=this.el.G??_t(this.el);t&&await t;let e=[];for(let n of this.M)"triggerLoad"in n?e.push(n.triggerLoad()):e.push(M(n.hostLoad,n));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(n=>n.has(St)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await Promise.resolve();let s=this.J.filter(n=>!n.manager?.loadedCalled);s.length&&await Promise.allSettled(s.map(async n=>await n.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(let n of this.M)"triggerLoaded"in n?n.triggerLoaded():p(n.hostLoaded,n);this.loaded?.(),this.#o.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#e?.(t)??!0}update(t){this.#n?this.#c(t):super.update(t)}listen(t,e,s){let n=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,n,s),()=>this.el.removeEventListener(t,n,s)))}listenOn(t,e,s,n){let i=s?.bind(this)??s;this.manager.onLifecycle(()=>(t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)))}async componentOnReady(){return await this.#o.promise,this}addController(t){this.M.push(t),!(rt in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}},re=o=>{let t,e=n=>{t=new URL(n,globalThis.location?.href||void 0).href},s={...o,getAssetPath(n){let i=new URL(n,t);return i.origin!==globalThis.location?.origin?i.href:i.pathname},setAssetPath:e,customElement(n,i){i.K=s,i.L=n,customElements.get(n)||customElements.define(n,i)}};return e(o.defaultAssetPath),s};var Qo=o=>typeof o=="object"&&o!=null?te(o):o;var Yo=d;var K=re({defaultAssetPath:"https://jsdev.arcgis.com/next/coding-components/",hydratedAttribute:"hydrated"}),{customElement:sn,getAssetPath:on,setAssetPath:nn}=K;K.t=void 0;K.o=void 0;K.c=void 0;K.r=void 0;export{ae as a,es as b,f as c,d,Cs as e,L as f,Ee as g,$e as h,_s as i,As as j,Oe as k,Te as l,Et as m,At as n,Pe as o,g as p,P as q,$ as r,oe as s,Co as t,_o as u,ne as v,Ao as w,wo as x,ie as y,Qo as z,Yo as A,K as B,sn as C,on as D};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.
|
|
4
|
-
async function t(){return(await a()).getArcadeDiagnosticService()}async function a(){return await import("./
|
|
3
|
+
v4.34.0-next.4 */
|
|
4
|
+
async function t(){return(await a()).getArcadeDiagnosticService()}async function a(){return await import("./JQOKZ66I.js")}export{t as a,a as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.
|
|
4
|
-
import{b as r}from"./
|
|
3
|
+
v4.34.0-next.4 */
|
|
4
|
+
import{b as r}from"./E2QHGSDM.js";import{D as o}from"./7GKZUSUT.js";var s=r(o);export{s as a};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.
|
|
4
|
-
import b from"./CPQVVDWR.js";import{a as P,b as N}from"./K7OR2NZQ.js";import{a as _}from"./CCQCZKCC.js";import"./3OPZD6HG.js";import a from"./4UJSQGRR.js";import"./ZBGL3SYO.js";import{i as x,j as w}from"./YHNSFDD7.js";import"./XNMOJ2SC.js";import{C as D,a as T,b as n,c as V,d as y,p as C,q as E,r as q,y as I,z as F}from"./HD2PUJ4M.js";import"./SLKYJBMF.js";import"./D4OPUHHF.js";import"./NRWICP4W.js";export default $arcgis.t(([G,U,J,W,,O])=>{var k=class extends q{constructor(e){if(super(e),this.it=y,e.type!==C.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===y||e==null)return this._t=void 0,this.it=e;if(e===V)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};k.directiveName="unsafeHTML",k.resultType=1;var Q=E(k);var Y=T`:host(:not([closed])){flex:1 0 auto;border-inline-start:var(--arcgis-coding-components-border);box-sizing:border-box;max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w)}:host([closed]){display:none}.response-actions{display:flex;align-items:center;padding:.5rem;gap:.5rem}.response-actions>div{display:flex;gap:.5rem}.prompt-list calcite-list-item{margin-block-end:.5rem;border-radius:var(--calcite-corner-radius-round);--calcite-color-border-3: transparent;overflow:hidden}.feedback-content{padding:1rem;display:flex;flex-direction:column;gap:.75rem}.feedback-sheet{--calcite-sheet-height: auto;--calcite-sheet-max-height: auto;--calcite-sheet-min-height: auto}calcite-chip[slot=header-actions-end]{align-self:center;margin-inline-end:.5rem}calcite-list-item:focus calcite-button{position:relative;top:-2px}.prompt-list calcite-list-item:last-of-type{margin-block-end:0}calcite-list{--calcite-color-foreground-1: transparent;background-color:transparent}calcite-list-item{--calcite-color-foreground-1: white}calcite-flow-item calcite-shell{background:transparent}calcite-block{width:100%;max-width:100%;align-self:flex-end;background-color:transparent}calcite-sheet{--calcite-sheet-scrim-background: rgba(200, 200, 200, .5)}.type-suggestion{--calcite-color-foreground-1: var(--calcite-color-foreground-current);--calcite-color-text-3: var(--calcite-color-text-2);--calcite-icon-color: var(--calcite-color-brand)}.type-history{--calcite-icon-color: var(--calcite-color-text-2)}.type-response{--calcite-icon-color: var(--calcite-color-brand);--calcite-font-family: monospace}.block-response{align-self:flex-start;margin-block-end:4rem;border-block-end:0;--calcite-block-text-color: var(--calcite-color-brand)}calcite-list-item calcite-button{margin-inline-end:.25rem}.type-docs{--calcite-color-foreground-1: var(--calcite-color-foreground-3);--calcite-icon-color: var(--calcite-color-text-1)}.type-error{--calcite-icon-color: var(--calcite-color-status-danger);--calcite-font-family: monospace;border:1px solid var(--calcite-color-status-danger)}#thumbs-up{margin-inline-start:auto;--calcite-icon-color: var(--calcite-color-border-input)}#thumbs-down{--calcite-icon-color: var(--calcite-color-border-input)}calcite-flow-item calcite-shell calcite-notice{margin-block:1rem}.no-space-block,.no-space-block[open]{margin:0}calcite-block[open]:last-of-type{border-block-end:0}.text-area-wrapper{display:flex;flex-direction:column;background:#fff;border-radius:4px;margin:.75rem;width:calc(100% - 1.5rem);overflow:hidden;max-width:calc(100% - 1.5rem);--calcite-color-border-input: transparent;--calcite-text-area-divider-color: transparent;position:sticky;align-self:flex-end;box-shadow:var(--calcite-shadow-sm);flex:none}.text-area-wrapper calcite-button:last-of-type{margin-inline-start:auto;align-self:flex-end}calcite-text-area{height:auto;min-height:5.75rem;overflow:hidden;border-radius:4px 4px 0 0;--calcite-font-weight-normal: 500;font-weight:500;line-height:1.2}calcite-tooltip{--calcite-tooltip-z-index: 1000}.standalone-list{margin:1rem;width:calc(100% - 2rem)}.result-disclaimer{display:block;width:24rem;max-width:90%;margin:2rem auto .25rem;text-align:center;line-height:1.125rem;font-size:.875rem;font-style:italic}calcite-flow{height:100%}calcite-popover calcite-list{--calcite-list-background-color: transparent;--calcite-input-border-color: transparent}calcite-popover calcite-list calcite-filter{--calcite-spacing-sm: 0}.break-spaces{white-space:break-spaces}.feedback-button-container{margin-inline-start:auto;gap:0}.info-heading{font-size:var(--calcite-font-size-1);color:var(--calcite-color-text-1)}`;function j(s){if(!s)return;let e=s.indexOf('{"error":');if(e!==-1)try{let t=s.slice(e),a=JSON.parse(t);if(a&&typeof a=="object"&&a.error)return a.error}catch{return}}async function K(s){let{baseUrl:e,skillId:t,message:a,authToken:o,previousConversationId:i,context:r}=s,c=t?`${e}/skills/${t}/chat`:`${e}/chat`,l=[],d={message:a,context:r};i&&(d.conversation_id=i);let p;try{p=await U(c,{method:"post",headers:{"Content-Type":"application/json",token:o},body:JSON.stringify(d),responseType:"json"})}catch(h){let b=h?.details?.rawResponse||h?.message||String(h),v=j(b),f=new Error(`Failed to send message: ${a}. Response: ${b}`);throw v&&(f.arcadeAssistantError=v),f}let m=p.data;if(!m.hasMore)throw new Error("Expected hasMore to be true");l.push(m);let L=m.conversationId,B=m.inquiryId,A=m.sequenceNumber;async function H(){let h=0,b=25;for(;h<b;){await new Promise(g=>setTimeout(g,1e3));let v=X(L,A,B),f;try{f=await U(c,{method:"post",headers:{"Content-Type":"application/json",token:o},body:JSON.stringify(v),responseType:"json"})}catch(g){let R=g?.details?.rawResponse||g?.message||String(g),S=j(R),M=new Error(`Polling failed. Response: ${R}`);throw S&&(M.arcadeAssistantError=S),M}let u=f.data;if(u.context&&u.context.kind==="ArcgisErrorAsContext"&&u.context.error)throw new Error(u.context.error.message||"ArcGIS Assistant error");if(l.push(u),A=u.sequenceNumber,h++,!u.hasMore)break}if(h===b)throw new Error("Request timed out")}return await H(),l}function X(s,e,t){return{conversationId:s,inquiryId:t,ackSequenceNumber:e}}var Z=s=>{let e=s.value.length,t=72,a=180,o=s.offsetWidth,i=Math.max(1,Math.floor(o/8)),r=Math.ceil(e/i),c=t+(r-2)*24;s.style.setProperty("--calcite-text-area-min-height",`${Math.min(c,a)}px`)};function ee({messages:s}){return n`<calcite-chip slot=header-actions-end scale=s appearance=outline-fill .label=${s.beta??"Beta"}>${s.beta??"Beta"}</calcite-chip>`}function te({messages:s}){return n`<calcite-action icon=information slot=header-actions-end id=legal-disclaimer text></calcite-action><calcite-tooltip reference-element=legal-disclaimer>${s.legaldisclaimer}</calcite-tooltip>`}function se({errorMessage:s}){return n`<calcite-input-message id=error-message status=invalid slot=footer-start icon=exclamation-mark-triangle scale=m>${s}</calcite-input-message>`}function ie({active:s,setActive:e,messages:t}){return n`<calcite-alert slot=alerts .open=${s} placement=bottom kind=success icon=check-circle-f auto-close @calciteAlertClose=${()=>e(!1)} label=confirmation-alert><div slot=message>${t.expressionapplied??"Expression applied to editor."}</div></calcite-alert>`}function ae({isDisabled:s,isReadOnly:e,setQuestion:t,setIsViewingResult:a,textAreaRef:o,question:i,errorMessage:r,setErrorMessage:c,submitQuestion:l,messages:d}){return n`<div class="text-area-wrapper"><calcite-text-area resize=none .readOnly=${s||e} class="styled-text-area" .placeholder=${d.askaquestion??`Specify the calculation or logic you need in an Arcade expression. (e.g., 'Return "Yes" if value > 10')`} .value=${i} @calciteTextAreaInput=${p=>{Z(p.target),t(p.target.value)}} ${N(o)}>${r&&se({errorMessage:r})||""}</calcite-text-area><div class="response-actions">${e?n`<calcite-button round appearance=outline-fill icon-start=speech-bubble-plus @click=${()=>{t(""),a(!1)}}>${d.askagain||"Ask again"}</calcite-button>`:n`<calcite-button alignment=end round icon-end=effects appearance=solid .loading=${s} .disabled=${s} @click=${async()=>{c(i?"":d.enteraprompt??"Please enter a prompt"),await l()}}>${d.ask||"Ask"}</calcite-button>`}</div></div>`}function ce({open:s,setOpen:e,messages:t,feedbackValue:a,setFeedbackValue:o,feedbackText:i,setFeedbackText:r,onSubmit:c}){return n`<calcite-sheet class="feedback-sheet" .label=${t.feedback??"Feedback"} slot=sheets display-mode=float position=block-end .open=${s} @calciteSheetClose=${()=>e(!1)}><calcite-panel .heading=${t.providefeedback??"Provide feedback"} .description=${t.experiencehelps??"Your experience helps guide future improvements"}><div class="feedback-content"><calcite-label>${t.experiencehelpful??"Was the assistant helpful?"}<calcite-segmented-control scale=l><calcite-segmented-control-item icon-start=thumbs-up .checked=${a==="good"} @click=${()=>o("good")}></calcite-segmented-control-item><calcite-segmented-control-item icon-start=thumbs-down .checked=${a==="bad"} @click=${()=>o("bad")}></calcite-segmented-control-item></calcite-segmented-control></calcite-label><calcite-label>${t.describeexperience??"Describe your experience"}<calcite-text-area resize=vertical .value=${i} @calciteTextAreaInput=${l=>r(l.target.value)}></calcite-text-area></calcite-label></div><calcite-button slot=footer width=full @click=${c}>${t.submitfeedback??"Submit Feedback"}</calcite-button></calcite-panel></calcite-sheet>`}var oe="arcade_generation",re="ArcadeCodeRequest",ne="visualization",le="ArcadeAssistant",de=["your_comments","user_evaluation","question","answer","useragent","_source","version","context","extras"],z=[],$=class extends I{constructor(){super(...arguments),this.textAreaRef=P(),this.messages=_(),this.feedbackService=void 0,this.handleFeedbackButton=e=>{this.feedbackValue===e&&this.feedbackActive?(this.feedbackActive=!1,this.feedbackValue=void 0,this.feedbackText=""):(this.feedbackValue=e,this.feedbackActive=!0)},this.handleFeedbackSheetClose=()=>{this.feedbackActive=!1,this.feedbackValue=void 0,this.feedbackText=""},this.handleFeedbackSubmit=async()=>{if(this.feedbackValue){if(this.feedbackServiceUrl){if(!this.feedbackService){let i=new J({url:this.feedbackServiceUrl});await i.load();let r=i.fields,c=[];if(de.forEach(l=>{r.some(d=>d.name===l)||c.push(l)}),c.length>0){console.error(`Missing the following fields in feedback service: ${c.join(", ")}.
|
|
3
|
+
v4.34.0-next.4 */
|
|
4
|
+
import b from"./LWATQ4SL.js";import{a as P,b as N}from"./RQ23YX4Y.js";import{a as _}from"./ARM44GXS.js";import"./E2QHGSDM.js";import a from"./5W5U53FB.js";import"./O74DGU7J.js";import{i as x,j as w}from"./DC6AP4ZI.js";import"./N5CO2N5G.js";import{C as D,a as T,b as n,c as V,d as y,p as C,q as E,r as q,y as I,z as F}from"./7GKZUSUT.js";import"./54OCYIGS.js";import"./WBN37U56.js";import"./XJLYTCL5.js";export default $arcgis.t(([G,U,J,W,,O])=>{var k=class extends q{constructor(e){if(super(e),this.it=y,e.type!==C.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===y||e==null)return this._t=void 0,this.it=e;if(e===V)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};k.directiveName="unsafeHTML",k.resultType=1;var Q=E(k);var Y=T`:host(:not([closed])){flex:1 0 auto;border-inline-start:var(--arcgis-coding-components-border);box-sizing:border-box;max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w)}:host([closed]){display:none}.response-actions{display:flex;align-items:center;padding:.5rem;gap:.5rem}.response-actions>div{display:flex;gap:.5rem}.prompt-list calcite-list-item{margin-block-end:.5rem;border-radius:var(--calcite-corner-radius-round);--calcite-color-border-3: transparent;overflow:hidden}.feedback-content{padding:1rem;display:flex;flex-direction:column;gap:.75rem}.feedback-sheet{--calcite-sheet-height: auto;--calcite-sheet-max-height: auto;--calcite-sheet-min-height: auto}calcite-chip[slot=header-actions-end]{align-self:center;margin-inline-end:.5rem}calcite-list-item:focus calcite-button{position:relative;top:-2px}.prompt-list calcite-list-item:last-of-type{margin-block-end:0}calcite-list{--calcite-color-foreground-1: transparent;background-color:transparent}calcite-list-item{--calcite-color-foreground-1: white}calcite-flow-item calcite-shell{background:transparent}calcite-block{width:100%;max-width:100%;align-self:flex-end;background-color:transparent}calcite-sheet{--calcite-sheet-scrim-background: rgba(200, 200, 200, .5)}.type-suggestion{--calcite-color-foreground-1: var(--calcite-color-foreground-current);--calcite-color-text-3: var(--calcite-color-text-2);--calcite-icon-color: var(--calcite-color-brand)}.type-history{--calcite-icon-color: var(--calcite-color-text-2)}.type-response{--calcite-icon-color: var(--calcite-color-brand);--calcite-font-family: monospace}.block-response{align-self:flex-start;margin-block-end:4rem;border-block-end:0;--calcite-block-text-color: var(--calcite-color-brand)}calcite-list-item calcite-button{margin-inline-end:.25rem}.type-docs{--calcite-color-foreground-1: var(--calcite-color-foreground-3);--calcite-icon-color: var(--calcite-color-text-1)}.type-error{--calcite-icon-color: var(--calcite-color-status-danger);--calcite-font-family: monospace;border:1px solid var(--calcite-color-status-danger)}#thumbs-up{margin-inline-start:auto;--calcite-icon-color: var(--calcite-color-border-input)}#thumbs-down{--calcite-icon-color: var(--calcite-color-border-input)}calcite-flow-item calcite-shell calcite-notice{margin-block:1rem}.no-space-block,.no-space-block[open]{margin:0}calcite-block[open]:last-of-type{border-block-end:0}.text-area-wrapper{display:flex;flex-direction:column;background:#fff;border-radius:4px;margin:.75rem;width:calc(100% - 1.5rem);overflow:hidden;max-width:calc(100% - 1.5rem);--calcite-color-border-input: transparent;--calcite-text-area-divider-color: transparent;position:sticky;align-self:flex-end;box-shadow:var(--calcite-shadow-sm);flex:none}.text-area-wrapper calcite-button:last-of-type{margin-inline-start:auto;align-self:flex-end}calcite-text-area{height:auto;min-height:5.75rem;overflow:hidden;border-radius:4px 4px 0 0;--calcite-font-weight-normal: 500;font-weight:500;line-height:1.2}calcite-tooltip{--calcite-tooltip-z-index: 1000}.standalone-list{margin:1rem;width:calc(100% - 2rem)}.result-disclaimer{display:block;width:24rem;max-width:90%;margin:2rem auto .25rem;text-align:center;line-height:1.125rem;font-size:.875rem;font-style:italic}calcite-flow{height:100%}calcite-popover calcite-list{--calcite-list-background-color: transparent;--calcite-input-border-color: transparent}calcite-popover calcite-list calcite-filter{--calcite-spacing-sm: 0}.break-spaces{white-space:break-spaces}.feedback-button-container{margin-inline-start:auto;gap:0}.info-heading{font-size:var(--calcite-font-size-1);color:var(--calcite-color-text-1)}`;function j(s){if(!s)return;let e=s.indexOf('{"error":');if(e!==-1)try{let t=s.slice(e),a=JSON.parse(t);if(a&&typeof a=="object"&&a.error)return a.error}catch{return}}async function K(s){let{baseUrl:e,skillId:t,message:a,authToken:o,previousConversationId:i,context:r}=s,c=t?`${e}/skills/${t}/chat`:`${e}/chat`,l=[],d={message:a,context:r};i&&(d.conversation_id=i);let p;try{p=await U(c,{method:"post",headers:{"Content-Type":"application/json",token:o},body:JSON.stringify(d),responseType:"json"})}catch(h){let b=h?.details?.rawResponse||h?.message||String(h),v=j(b),f=new Error(`Failed to send message: ${a}. Response: ${b}`);throw v&&(f.arcadeAssistantError=v),f}let m=p.data;if(!m.hasMore)throw new Error("Expected hasMore to be true");l.push(m);let L=m.conversationId,B=m.inquiryId,A=m.sequenceNumber;async function H(){let h=0,b=25;for(;h<b;){await new Promise(g=>setTimeout(g,1e3));let v=X(L,A,B),f;try{f=await U(c,{method:"post",headers:{"Content-Type":"application/json",token:o},body:JSON.stringify(v),responseType:"json"})}catch(g){let R=g?.details?.rawResponse||g?.message||String(g),S=j(R),M=new Error(`Polling failed. Response: ${R}`);throw S&&(M.arcadeAssistantError=S),M}let u=f.data;if(u.context&&u.context.kind==="ArcgisErrorAsContext"&&u.context.error)throw new Error(u.context.error.message||"ArcGIS Assistant error");if(l.push(u),A=u.sequenceNumber,h++,!u.hasMore)break}if(h===b)throw new Error("Request timed out")}return await H(),l}function X(s,e,t){return{conversationId:s,inquiryId:t,ackSequenceNumber:e}}var Z=s=>{let e=s.value.length,t=72,a=180,o=s.offsetWidth,i=Math.max(1,Math.floor(o/8)),r=Math.ceil(e/i),c=t+(r-2)*24;s.style.setProperty("--calcite-text-area-min-height",`${Math.min(c,a)}px`)};function ee({messages:s}){return n`<calcite-chip slot=header-actions-end scale=s appearance=outline-fill .label=${s.beta??"Beta"}>${s.beta??"Beta"}</calcite-chip>`}function te({messages:s}){return n`<calcite-action icon=information slot=header-actions-end id=legal-disclaimer text></calcite-action><calcite-tooltip reference-element=legal-disclaimer>${s.legaldisclaimer}</calcite-tooltip>`}function se({errorMessage:s}){return n`<calcite-input-message id=error-message status=invalid slot=footer-start icon=exclamation-mark-triangle scale=m>${s}</calcite-input-message>`}function ie({active:s,setActive:e,messages:t}){return n`<calcite-alert slot=alerts .open=${s} placement=bottom kind=success icon=check-circle-f auto-close @calciteAlertClose=${()=>e(!1)} label=confirmation-alert><div slot=message>${t.expressionapplied??"Expression applied to editor."}</div></calcite-alert>`}function ae({isDisabled:s,isReadOnly:e,setQuestion:t,setIsViewingResult:a,textAreaRef:o,question:i,errorMessage:r,setErrorMessage:c,submitQuestion:l,messages:d}){return n`<div class="text-area-wrapper"><calcite-text-area resize=none .readOnly=${s||e} class="styled-text-area" .placeholder=${d.askaquestion??`Specify the calculation or logic you need in an Arcade expression. (e.g., 'Return "Yes" if value > 10')`} .value=${i} @calciteTextAreaInput=${p=>{Z(p.target),t(p.target.value)}} ${N(o)}>${r&&se({errorMessage:r})||""}</calcite-text-area><div class="response-actions">${e?n`<calcite-button round appearance=outline-fill icon-start=speech-bubble-plus @click=${()=>{t(""),a(!1)}}>${d.askagain||"Ask again"}</calcite-button>`:n`<calcite-button alignment=end round icon-end=effects appearance=solid .loading=${s} .disabled=${s} @click=${async()=>{c(i?"":d.enteraprompt??"Please enter a prompt"),await l()}}>${d.ask||"Ask"}</calcite-button>`}</div></div>`}function ce({open:s,setOpen:e,messages:t,feedbackValue:a,setFeedbackValue:o,feedbackText:i,setFeedbackText:r,onSubmit:c}){return n`<calcite-sheet class="feedback-sheet" .label=${t.feedback??"Feedback"} slot=sheets display-mode=float position=block-end .open=${s} @calciteSheetClose=${()=>e(!1)}><calcite-panel .heading=${t.providefeedback??"Provide feedback"} .description=${t.experiencehelps??"Your experience helps guide future improvements"}><div class="feedback-content"><calcite-label>${t.experiencehelpful??"Was the assistant helpful?"}<calcite-segmented-control scale=l><calcite-segmented-control-item icon-start=thumbs-up .checked=${a==="good"} @click=${()=>o("good")}></calcite-segmented-control-item><calcite-segmented-control-item icon-start=thumbs-down .checked=${a==="bad"} @click=${()=>o("bad")}></calcite-segmented-control-item></calcite-segmented-control></calcite-label><calcite-label>${t.describeexperience??"Describe your experience"}<calcite-text-area resize=vertical .value=${i} @calciteTextAreaInput=${l=>r(l.target.value)}></calcite-text-area></calcite-label></div><calcite-button slot=footer width=full @click=${c}>${t.submitfeedback??"Submit Feedback"}</calcite-button></calcite-panel></calcite-sheet>`}var oe="arcade_generation",re="ArcadeCodeRequest",ne="visualization",le="ArcadeAssistant",de=["your_comments","user_evaluation","question","answer","useragent","_source","version","context","extras"],z=[],$=class extends I{constructor(){super(...arguments),this.textAreaRef=P(),this.messages=_(),this.feedbackService=void 0,this.handleFeedbackButton=e=>{this.feedbackValue===e&&this.feedbackActive?(this.feedbackActive=!1,this.feedbackValue=void 0,this.feedbackText=""):(this.feedbackValue=e,this.feedbackActive=!0)},this.handleFeedbackSheetClose=()=>{this.feedbackActive=!1,this.feedbackValue=void 0,this.feedbackText=""},this.handleFeedbackSubmit=async()=>{if(this.feedbackValue){if(this.feedbackServiceUrl){if(!this.feedbackService){let i=new J({url:this.feedbackServiceUrl});await i.load();let r=i.fields,c=[];if(de.forEach(l=>{r.some(d=>d.name===l)||c.push(l)}),c.length>0){console.error(`Missing the following fields in feedback service: ${c.join(", ")}.
|
|
5
5
|
Feedback will not be logged.`),this.handleFeedbackSheetClose();return}this.feedbackService=i}let e=this.getModel(),t=e?await this.getProfileAndMetadata(e.uri):void 0,a={user_evaluation:this.feedbackValue,your_comments:this.feedbackText,question:this.question,answer:this.history[0]?.script??"",useragent:navigator.userAgent,_source:le,version:this.appVersion??"",context:t?JSON.stringify(t):"",extras:t?.profileName??""},o=new W({attributes:a});try{await this.feedbackService?.applyEdits({addFeatures:[o]})}catch(i){console.error("Error submitting feedback:",i)}}this.handleFeedbackSheetClose()}},this.handleClose=e=>{this.closed=!0,this.closePanel?.(e)},this.setQuestion=e=>{this.question=e},this.isViewingResult=!1,this.confirmationActive=!1,this.isDisabled=!1,this.errorMessage=void 0,this.question="",this.history=[],this.feedbackActive=!1,this.feedbackValue=void 0,this.feedbackText="",this.copySuccess=!1,this.assistantsEnabled=!1,this.closed=!1}static{this.properties={isViewingResult:16,confirmationActive:16,isDisabled:16,errorMessage:16,question:16,history:16,feedbackActive:16,feedbackValue:16,feedbackText:16,copySuccess:16,closePanel:0,insertText:0,assistantsEnabled:5,layer:[1,{type:Object}],orgBaseUrl:1,serviceUrl:1,closed:7,editorRef:0,feedbackServiceUrl:1,appVersion:1}}static{this.styles=Y}async destroy(){}connectedCallback(){super.connectedCallback(),this.history=z}disconnectedCallback(){super.disconnectedCallback(),z=this.history}getModel(){return this.editorRef.editorInstance?.getModel()}async submitQuestion(){if(this.question){this.isDisabled=!0;try{let e=await this.getToken(),t=this.getModel();if(!t)return;let{profileName:a,metadata:o}=await this.getProfileAndMetadata(t.uri),i=(await K({baseUrl:this.serviceUrl,skillId:oe,message:this.question,authToken:e,context:{kind:re,context:{profile_name:a,metadata:o}}})).find(r=>r.context?.kind==="ArcadeCodeResponse");if(!i)return;i.context?.kind==="ArcadeCodeResponse"&&(this.history.unshift({script:i?.context?.arcadeCode?.code,error:void 0,question:this.question}),this.isViewingResult=!0,this.errorMessage=void 0)}catch(e){typeof e=="object"&&e&&"arcadeAssistantError"in e?this.errorMessage=e.arcadeAssistantError.message||this.messages.erroroccurred||"An error occurred.":e instanceof Error?this.errorMessage=this.messages.erroroccurred??"An error occurred.":this.errorMessage=this.messages.erroroccurred||"An error occurred.",console.error("Error in Arcade Assistant:",e)}finally{this.isDisabled=!1}}}async getToken(){let{token:e}=await G.getCredential(this.orgBaseUrl);return e}async getProfileAndMetadata(e){let t=ne,a=O.getEditorProfileForModel(e);a?.loaded||await a?.loadSource();let o=this.editorRef.profile;o&&"id"in o&&(t=o.id);let i=a?.definition?.variables?.find(c=>c.type==="feature"),r=[];return i?.definition&&"fields"in i.definition&&(r=i.definition.fields.map(c=>({name:c.name,type:c.type,alias:c.alias}))),{profileName:t,metadata:r}}render(){return this.closed?null:this.assistantsEnabled?n`<calcite-flow><calcite-flow-item .selected=${!this.isViewingResult} closable .heading=${this.messages.arcadeassistant??"Arcade assistant"} @calciteFlowItemClose=${this.handleClose}>${ee({messages:this.messages})}${te({messages:this.messages})}${ie({active:this.confirmationActive,setActive:e=>this.confirmationActive=e,messages:this.messages})}${ae({isDisabled:this.isDisabled,isReadOnly:this.isViewingResult,setQuestion:this.setQuestion,setIsViewingResult:e=>this.isViewingResult=e,textAreaRef:this.textAreaRef,question:this.question,errorMessage:this.errorMessage,setErrorMessage:e=>this.errorMessage=e,submitQuestion:this.submitQuestion.bind(this),messages:this.messages})}<calcite-block .hidden=${!this.isDisabled} .heading=${this.messages.generatingresponse??"Generating response..."}></calcite-block>${this.isViewingResult&&n`<calcite-block class="block-response" icon-start=effects .heading=${this.messages.besteffort??"Here's the assistant's best effort"} expanded><calcite-list class="prompt-list" .label=${this.messages.promptlist??"Prompt list"}><calcite-list-item expanded class=${F(this.history[0]?.error?"type-error":"type-response")} .label=${w(this.history[0]?.script??"")||this.history[0]?.error} @calciteListItemSelect=${()=>{x(this.editorRef.editorInstance,this.history[0]?.script??"",this.messages.disclaimercomment??"Expression generated by ArcGIS Arcade Assistant (beta)"),this.isViewingResult=!1,this.setQuestion("")}}><code slot=content><pre class="break-spaces">${w(this.history[0]?.script??"")}</pre></code></calcite-list-item></calcite-list><div class="response-actions"><calcite-button icon-start=plus round kind=brand @click=${()=>{x(this.editorRef.editorInstance,this.history[0]?.script??"",this.messages.disclaimercomment??"Expression generated by ArcGIS Arcade Assistant (beta)"),this.isViewingResult=!1,this.setQuestion("")}}>${this.messages.addtoeditor??"Add to editor"}</calcite-button><calcite-button id=copy-to-clipboard icon-start=${this.copySuccess?"check":"copy-to-clipboard"} round kind=neutral @click=${async()=>{let e=this.history[0]?.script??"";e&&(await navigator.clipboard.writeText(e),this.copySuccess=!0,setTimeout(()=>{this.copySuccess=!1},1500))}}>${this.copySuccess?this.messages.copied??"Copied!":""}</calcite-button><div class="feedback-button-container" id=feedback-buttons><calcite-button id=thumbs-up icon-start=thumbs-up appearance=transparent @click=${()=>this.handleFeedbackButton("good")}></calcite-button><calcite-button id=thumbs-down appearance=transparent icon-start=thumbs-down @click=${()=>this.handleFeedbackButton("bad")}></calcite-button><calcite-tooltip reference-element=feedback-buttons>${this.messages.providefeedback??"Provide feedback"}</calcite-tooltip></div></div><span class="result-disclaimer">${this.messages.reviewcodedisclaimer??"Review AI-generated code for accuracy, coherence, and relevance before using it."}</span></calcite-block>`||""}<calcite-block .hidden=${this.isViewingResult||this.isDisabled||this.history.length<1} .disabled=${this.isViewingResult||this.isDisabled||this.history.length<1} class="no-space-block" collapsible .expanded=${this.history.length>0} .heading=${this.messages.recentprompts??"Recent prompts"}><calcite-list class="prompt-list" .label=${this.messages.historylist??"History list"}>${this.history.map(e=>n`<calcite-list-item class="type-history" .label=${e.question} @calciteListItemSelect=${()=>{this.errorMessage="",this.setQuestion(e.question),this.textAreaRef.value?.setFocus()}}><calcite-icon icon=recent scale=s slot=content-end></calcite-icon></calcite-list-item>`)}</calcite-list></calcite-block>${this.feedbackActive?n`<calcite-shell>${ce({open:this.feedbackActive,setOpen:this.handleFeedbackSheetClose,messages:this.messages,feedbackValue:this.feedbackValue??"good",setFeedbackValue:e=>this.feedbackValue=e,feedbackText:this.feedbackText??"",setFeedbackText:e=>this.feedbackText=e,onSubmit:this.handleFeedbackSubmit})}</calcite-shell>`:null}${!this.isViewingResult&&n`<span class="result-disclaimer">${this.messages.aigenerated} ${this.messages.seeterms}</span>`||""}</calcite-flow-item></calcite-flow>`:n`<calcite-flow><calcite-flow-item .selected=${!this.isViewingResult} closable .heading=${this.messages.arcadeassistant??"Arcade assistant"} @calciteFlowItemClose=${this.handleClose}><calcite-block label=info slot=content-top expanded><calcite-chip .label=${this.messages.new??"new"} kind=brand>${this.messages.new}</calcite-chip><h1 class="info-heading">${this.messages.introducing}</h1><p>${this.messages.capabilities}</p><p>${Q(this.messages.useofassistant?.replace("{aiassistants}",`<strong>${this.messages.aiassistants??"Ai Assistants"}</strong>`))}</p></calcite-block></calcite-flow-item></calcite-flow>`}};D("arcgis-arcade-coding-assistant",$);return $},"identity/IdentityManager","request","layers/FeatureLayer","Graphic",a,b)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.
|
|
4
|
-
import{k as X}from"./
|
|
3
|
+
v4.34.0-next.4 */
|
|
4
|
+
import{k as X}from"./DC6AP4ZI.js";import{ck as F,jk as Q,kk as se,pk as B}from"./WBN37U56.js";se();async function re(i,t){return await(await X()).colorize(i,t,{tabSize:2})}async function Se(i,t){if(!i)return;let n=Array.from(i.querySelectorAll("code.language-arcade, code.language-sql"),async e=>await ie(e,e.textContent,t));await Promise.all(n)}async function ie(i,t,n){!i||i.tagName!=="CODE"||(i.innerHTML=await re(t??"",n))}function Re(){let i=B.get(Q).getColorTheme();return F(i.tokenTheme.getColorMap())}function Te(i){return B.get(Q).onDidColorThemeChange(()=>i())}function H(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}var I=H();function Y(i){I=i}var ee=/[&<>"']/,le=new RegExp(ee.source,"g"),te=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,ae=new RegExp(te.source,"g"),oe={"&":"&","<":"<",">":">",'"':""","'":"'"},G=i=>oe[i];function w(i,t){if(t){if(ee.test(i))return i.replace(le,G)}else if(te.test(i))return i.replace(ae,G);return i}var ce=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function ne(i){return i.replace(ce,(t,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}var he=/(^|[^\[])\^/g;function m(i,t){i=typeof i=="string"?i:i.source,t=t||"";let n={replace:(e,s)=>(s=s.source||s,s=s.replace(he,"$1"),i=i.replace(e,s),n),getRegex:()=>new RegExp(i,t)};return n}var pe=/[^\w:]/g,ue=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function V(i,t,n){if(i){let e;try{e=decodeURIComponent(ne(n)).replace(pe,"").toLowerCase()}catch{return null}if(e.indexOf("javascript:")===0||e.indexOf("vbscript:")===0||e.indexOf("data:")===0)return null}t&&!ue.test(n)&&(n=fe(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch{return null}return n}var O={},ge=/^[^:]+:\/*[^/]*$/,de=/^([^:]+:)[\s\S]*$/,ke=/^([^:]+:\/*[^/]*)[\s\S]*$/;function fe(i,t){O[" "+i]||(ge.test(i)?O[" "+i]=i+"/":O[" "+i]=U(i,"/",!0)),i=O[" "+i];let n=i.indexOf(":")===-1;return t.substring(0,2)==="//"?n?t:i.replace(de,"$1")+t:t.charAt(0)==="/"?n?t:i.replace(ke,"$1")+t:i+t}var j={exec:function(){}};function J(i,t){let n=i.replace(/\|/g,(r,l,a)=>{let c=!1,u=l;for(;--u>=0&&a[u]==="\\";)c=!c;return c?"|":" |"}),e=n.split(/ \|/),s=0;if(e[0].trim()||e.shift(),e.length>0&&!e[e.length-1].trim()&&e.pop(),e.length>t)e.splice(t);else for(;e.length<t;)e.push("");for(;s<e.length;s++)e[s]=e[s].trim().replace(/\\\|/g,"|");return e}function U(i,t,n){let e=i.length;if(e===0)return"";let s=0;for(;s<e;){let r=i.charAt(e-s-1);if(r===t&&!n)s++;else if(r!==t&&n)s++;else break}return i.slice(0,e-s)}function me(i,t){if(i.indexOf(t[1])===-1)return-1;let n=i.length,e=0,s=0;for(;s<n;s++)if(i[s]==="\\")s++;else if(i[s]===t[0])e++;else if(i[s]===t[1]&&(e--,e<0))return s;return-1}function xe(i,t){!i||i.silent||(t&&console.warn("marked(): callback is deprecated since version 5.0.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/using_pro#async"),(i.sanitize||i.sanitizer)&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options"),(i.highlight||i.langPrefix!=="language-")&&console.warn("marked(): highlight and langPrefix parameters are deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-highlight."),i.mangle&&console.warn("marked(): mangle parameter is enabled by default, but is deprecated since version 5.0.0, and will be removed in the future. To clear this warning, install https://www.npmjs.com/package/marked-mangle, or disable by setting `{mangle: false}`."),i.baseUrl&&console.warn("marked(): baseUrl parameter is deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-base-url."),i.smartypants&&console.warn("marked(): smartypants parameter is deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-smartypants."),i.xhtml&&console.warn("marked(): xhtml parameter is deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-xhtml."),(i.headerIds||i.headerPrefix)&&console.warn("marked(): headerIds and headerPrefix parameters enabled by default, but are deprecated since version 5.0.0, and will be removed in the future. To clear this warning, install https://www.npmjs.com/package/marked-gfm-heading-id, or disable by setting `{headerIds: false}`."))}function K(i,t,n,e){let s=t.href,r=t.title?w(t.title):null,l=i[1].replace(/\\([\[\]])/g,"$1");if(i[0].charAt(0)!=="!"){e.state.inLink=!0;let a={type:"link",raw:n,href:s,title:r,text:l,tokens:e.inlineTokens(l)};return e.state.inLink=!1,a}return{type:"image",raw:n,href:s,title:r,text:w(l)}}function be(i,t){let n=i.match(/^(\s+)(?:```)/);if(n===null)return t;let e=n[1];return t.split(`
|
|
5
5
|
`).map(s=>{let r=s.match(/^\s+/);if(r===null)return s;let[l]=r;return l.length>=e.length?s.slice(e.length):s}).join(`
|
|
6
6
|
`)}var C=class{constructor(t){this.options=t||I}space(t){let n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){let n=this.rules.block.code.exec(t);if(n){let e=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?e:U(e,`
|
|
7
7
|
`)}}}fences(t){let n=this.rules.block.fences.exec(t);if(n){let e=n[0],s=be(e,n[3]||"");return{type:"code",raw:e,lang:n[2]?n[2].trim().replace(this.rules.inline._escapes,"$1"):n[2],text:s}}}heading(t){let n=this.rules.block.heading.exec(t);if(n){let e=n[2].trim();if(/#$/.test(e)){let s=U(e,"#");(this.options.pedantic||!s||/ $/.test(s))&&(e=s.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(t){let n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:n[0]}}blockquote(t){let n=this.rules.block.blockquote.exec(t);if(n){let e=n[0].replace(/^ *>[ \t]?/gm,""),s=this.lexer.state.top;this.lexer.state.top=!0;let r=this.lexer.blockTokens(e);return this.lexer.state.top=s,{type:"blockquote",raw:n[0],tokens:r,text:e}}}list(t){let n=this.rules.block.list.exec(t);if(n){let e,s,r,l,a,c,u,g,k,d,h,y,_=n[1].trim(),A=_.length>1,x={type:"list",raw:"",ordered:A,start:A?+_.slice(0,-1):"",loose:!1,items:[]};_=A?`\\d{1,9}\\${_.slice(-1)}`:`\\${_}`,this.options.pedantic&&(_=A?_:"[*+-]");let b=new RegExp(`^( {0,3}${_})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;t&&(y=!1,!(!(n=b.exec(t))||this.rules.block.hr.test(t)));){if(e=n[0],t=t.substring(e.length),g=n[2].split(`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.
|
|
4
|
-
import o from"./
|
|
3
|
+
v4.34.0-next.4 */
|
|
4
|
+
import o from"./XFA77AWY.js";import k from"./LP5TBEVL.js";import"./APTPPRWK.js";import j from"./LWATQ4SL.js";import{a as Q}from"./E2QHGSDM.js";import f from"./JETLFAWJ.js";import b from"./5W5U53FB.js";import"./O74DGU7J.js";import{k as h}from"./DC6AP4ZI.js";import"./N5CO2N5G.js";import{C as w,D as E,a as s,l as e,n as B,y as l}from"./7GKZUSUT.js";import{a as r,b as a,c as d,h as g}from"./54OCYIGS.js";import{Hl as i,Il as c,Kl as m,Pl as n}from"./WBN37U56.js";import"./XJLYTCL5.js";export default $arcgis.t(([,,,M])=>{var x=s`@layer{/*!-----------------------------------------------------------
|
|
5
5
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6
6
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
7
7
|
* Released under the MIT license
|