site-operator 0.2.1 → 0.2.5

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.
@@ -1,5 +1,5 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`@a2ui/lit`),require(`@ag-ui/client`)):typeof define==`function`&&define.amd?define([`exports`,`@a2ui/lit`,`@ag-ui/client`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.SiteOperator={},e.A2UILit,e.AgUiClient))})(this,function(e,t,n){var r=Object.defineProperty,i=e=>{let t={};for(var n in e)r(t,n,{get:e[n],enumerable:!0});return t},a=globalThis,o=a.ShadowRoot&&(a.ShadyCSS===void 0||a.ShadyCSS.nativeShadow)&&`adoptedStyleSheets`in Document.prototype&&`replace`in CSSStyleSheet.prototype,s=Symbol(),c=new WeakMap,l=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(o&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=c.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&c.set(t,e))}return e}toString(){return this.cssText}},u=e=>new l(typeof e==`string`?e:e+``,void 0,s),d=(e,...t)=>new l(e.length===1?e[0]:t.reduce((t,n,r)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if(typeof e==`number`)return e;throw Error(`Value passed to 'css' function must be a 'css' function result: `+e+`. Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.`)})(n)+e[r+1],e[0]),e,s),f=(e,t)=>{if(o)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let n of t){let t=document.createElement(`style`),r=a.litNonce;r!==void 0&&t.setAttribute(`nonce`,r),t.textContent=n.cssText,e.appendChild(t)}},p=o?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t=``;for(let n of e.cssRules)t+=n.cssText;return u(t)})(e):e,{is:m,defineProperty:h,getOwnPropertyDescriptor:g,getOwnPropertyNames:_,getOwnPropertySymbols:v,getPrototypeOf:y}=Object,ee=globalThis,te=ee.trustedTypes,ne=te?te.emptyScript:``,re=ee.reactiveElementPolyfillSupport,ie=(e,t)=>e,ae={toAttribute(e,t){switch(t){case Boolean:e=e?ne:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},oe=(e,t)=>!m(e,t),se={attribute:!0,type:String,converter:ae,reflect:!1,useDefault:!1,hasChanged:oe};Symbol.metadata??=Symbol(`metadata`),ee.litPropertyMetadata??=new WeakMap;var ce=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=se){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let n=Symbol(),r=this.getPropertyDescriptor(e,n,t);r!==void 0&&h(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){let{get:r,set:i}=g(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:r,set(t){let a=r?.call(this);i?.call(this,t),this.requestUpdate(e,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??se}static _$Ei(){if(this.hasOwnProperty(ie(`elementProperties`)))return;let e=y(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(ie(`finalized`)))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ie(`properties`))){let e=this.properties,t=[..._(e),...v(e)];for(let n of t)this.createProperty(n,e[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[e,n]of t)this.elementProperties.set(e,n)}this._$Eh=new Map;for(let[e,t]of this.elementProperties){let n=this._$Eu(e,t);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let e of n)t.unshift(p(e))}else e!==void 0&&t.push(p(e));return t}static _$Eu(e,t){let n=t.attribute;return!1===n?void 0:typeof n==`string`?n:typeof e==`string`?e.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(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return f(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$ET(e,t){let n=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,n);if(r!==void 0&&!0===n.reflect){let i=(n.converter?.toAttribute===void 0?ae:n.converter).toAttribute(t,n.type);this._$Em=e,i==null?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(e,t){let n=this.constructor,r=n._$Eh.get(e);if(r!==void 0&&this._$Em!==r){let e=n.getPropertyOptions(r),i=typeof e.converter==`function`?{fromAttribute:e.converter}:e.converter?.fromAttribute===void 0?ae:e.converter;this._$Em=r;let a=i.fromAttribute(t,e.type);this[r]=a??this._$Ej?.get(r)??a,this._$Em=null}}requestUpdate(e,t,n,r=!1,i){if(e!==void 0){let a=this.constructor;if(!1===r&&(i=this[e]),n??=a.getPropertyOptions(e),!((n.hasChanged??oe)(i,t)||n.useDefault&&n.reflect&&i===this._$Ej?.get(e)&&!this.hasAttribute(a._$Eu(e,n))))return;this.C(e,t,n)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:n,reflect:r,wrapped:i},a){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??t??this[e]),!0!==i||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(t=void 0),this._$AL.set(e,t)),!0===r&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,n]of e){let{wrapped:e}=n,r=this[t];!0!==e||this._$AL.has(t)||r===void 0||this.C(t,void 0,n,r)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}};ce.elementStyles=[],ce.shadowRootOptions={mode:`open`},ce[ie(`elementProperties`)]=new Map,ce[ie(`finalized`)]=new Map,re?.({ReactiveElement:ce}),(ee.reactiveElementVersions??=[]).push(`2.1.2`);var le=globalThis,ue=e=>e,de=le.trustedTypes,fe=de?de.createPolicy(`lit-html`,{createHTML:e=>e}):void 0,pe=`$lit$`,me=`lit$${Math.random().toFixed(9).slice(2)}$`,he=`?`+me,ge=`<${he}>`,_e=document,ve=()=>_e.createComment(``),ye=e=>e===null||typeof e!=`object`&&typeof e!=`function`,be=Array.isArray,xe=e=>be(e)||typeof e?.[Symbol.iterator]==`function`,Se=`[
2
- \f\r]`,Ce=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,we=/-->/g,Te=/>/g,Ee=RegExp(`>|${Se}(?:([^\\s"'>=/]+)(${Se}*=${Se}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,`g`),De=/'/g,Oe=/"/g,ke=/^(?:script|style|textarea|title)$/i,b=(e=>(t,...n)=>({_$litType$:e,strings:t,values:n}))(1),x=Symbol.for(`lit-noChange`),S=Symbol.for(`lit-nothing`),Ae=new WeakMap,je=_e.createTreeWalker(_e,129);function Me(e,t){if(!be(e)||!e.hasOwnProperty(`raw`))throw Error(`invalid template strings array`);return fe===void 0?t:fe.createHTML(t)}var Ne=(e,t)=>{let n=e.length-1,r=[],i,a=t===2?`<svg>`:t===3?`<math>`:``,o=Ce;for(let t=0;t<n;t++){let n=e[t],s,c,l=-1,u=0;for(;u<n.length&&(o.lastIndex=u,c=o.exec(n),c!==null);)u=o.lastIndex,o===Ce?c[1]===`!--`?o=we:c[1]===void 0?c[2]===void 0?c[3]!==void 0&&(o=Ee):(ke.test(c[2])&&(i=RegExp(`</`+c[2],`g`)),o=Ee):o=Te:o===Ee?c[0]===`>`?(o=i??Ce,l=-1):c[1]===void 0?l=-2:(l=o.lastIndex-c[2].length,s=c[1],o=c[3]===void 0?Ee:c[3]===`"`?Oe:De):o===Oe||o===De?o=Ee:o===we||o===Te?o=Ce:(o=Ee,i=void 0);let d=o===Ee&&e[t+1].startsWith(`/>`)?` `:``;a+=o===Ce?n+ge:l>=0?(r.push(s),n.slice(0,l)+pe+n.slice(l)+me+d):n+me+(l===-2?t:d)}return[Me(e,a+(e[n]||`<?>`)+(t===2?`</svg>`:t===3?`</math>`:``)),r]},Pe=class e{constructor({strings:t,_$litType$:n},r){let i;this.parts=[];let a=0,o=0,s=t.length-1,c=this.parts,[l,u]=Ne(t,n);if(this.el=e.createElement(l,r),je.currentNode=this.el.content,n===2||n===3){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;(i=je.nextNode())!==null&&c.length<s;){if(i.nodeType===1){if(i.hasAttributes())for(let e of i.getAttributeNames())if(e.endsWith(pe)){let t=u[o++],n=i.getAttribute(e).split(me),r=/([.?@])?(.*)/.exec(t);c.push({type:1,index:a,name:r[2],strings:n,ctor:r[1]===`.`?ze:r[1]===`?`?Be:r[1]===`@`?Ve:Re}),i.removeAttribute(e)}else e.startsWith(me)&&(c.push({type:6,index:a}),i.removeAttribute(e));if(ke.test(i.tagName)){let e=i.textContent.split(me),t=e.length-1;if(t>0){i.textContent=de?de.emptyScript:``;for(let n=0;n<t;n++)i.append(e[n],ve()),je.nextNode(),c.push({type:2,index:++a});i.append(e[t],ve())}}}else if(i.nodeType===8)if(i.data===he)c.push({type:2,index:a});else{let e=-1;for(;(e=i.data.indexOf(me,e+1))!==-1;)c.push({type:7,index:a}),e+=me.length-1}a++}}static createElement(e,t){let n=_e.createElement(`template`);return n.innerHTML=e,n}};function Fe(e,t,n=e,r){if(t===x)return t;let i=r===void 0?n._$Cl:n._$Co?.[r],a=ye(t)?void 0:t._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(e),i._$AT(e,n,r)),r===void 0?n._$Cl=i:(n._$Co??=[])[r]=i),i!==void 0&&(t=Fe(e,i._$AS(e,t.values),i,r)),t}var Ie=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:n}=this._$AD,r=(e?.creationScope??_e).importNode(t,!0);je.currentNode=r;let i=je.nextNode(),a=0,o=0,s=n[0];for(;s!==void 0;){if(a===s.index){let t;s.type===2?t=new Le(i,i.nextSibling,this,e):s.type===1?t=new s.ctor(i,s.name,s.strings,this,e):s.type===6&&(t=new He(i,this,e)),this._$AV.push(t),s=n[++o]}a!==s?.index&&(i=je.nextNode(),a++)}return je.currentNode=_e,r}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings===void 0?n._$AI(e[t]):(n._$AI(e,n,t),t+=n.strings.length-2)),t++}},Le=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,r){this.type=2,this._$AH=S,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Fe(this,e,t),ye(e)?e===S||e==null||e===``?(this._$AH!==S&&this._$AR(),this._$AH=S):e!==this._$AH&&e!==x&&this._(e):e._$litType$===void 0?e.nodeType===void 0?xe(e)?this.k(e):this._(e):this.T(e):this.$(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==S&&ye(this._$AH)?this._$AA.nextSibling.data=e:this.T(_e.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:n}=e,r=typeof n==`number`?this._$AC(e):(n.el===void 0&&(n.el=Pe.createElement(Me(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===r)this._$AH.p(t);else{let e=new Ie(r,this),n=e.u(this.options);e.p(t),this.T(n),this._$AH=e}}_$AC(e){let t=Ae.get(e.strings);return t===void 0&&Ae.set(e.strings,t=new Pe(e)),t}k(t){be(this._$AH)||(this._$AH=[],this._$AR());let n=this._$AH,r,i=0;for(let a of t)i===n.length?n.push(r=new e(this.O(ve()),this.O(ve()),this,this.options)):r=n[i],r._$AI(a),i++;i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let t=ue(e).nextSibling;ue(e).remove(),e=t}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Re=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,i){this.type=1,this._$AH=S,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=i,n.length>2||n[0]!==``||n[1]!==``?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=S}_$AI(e,t=this,n,r){let i=this.strings,a=!1;if(i===void 0)e=Fe(this,e,t,0),a=!ye(e)||e!==this._$AH&&e!==x,a&&(this._$AH=e);else{let r=e,o,s;for(e=i[0],o=0;o<i.length-1;o++)s=Fe(this,r[n+o],t,o),s===x&&(s=this._$AH[o]),a||=!ye(s)||s!==this._$AH[o],s===S?e=S:e!==S&&(e+=(s??``)+i[o+1]),this._$AH[o]=s}a&&!r&&this.j(e)}j(e){e===S?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??``)}},ze=class extends Re{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===S?void 0:e}},Be=class extends Re{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==S)}},Ve=class extends Re{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}_$AI(e,t=this){if((e=Fe(this,e,t,0)??S)===x)return;let n=this._$AH,r=e===S&&n!==S||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==S&&(n===S||r);r&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH==`function`?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},He=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Fe(this,e)}},Ue={M:pe,P:me,A:he,C:1,L:Ne,R:Ie,D:xe,V:Fe,I:Le,H:Re,N:Be,U:Ve,B:ze,F:He},We=le.litHtmlPolyfillSupport;We?.(Pe,Le),(le.litHtmlVersions??=[]).push(`3.3.2`);var Ge=(e,t,n)=>{let r=n?.renderBefore??t,i=r._$litPart$;if(i===void 0){let e=n?.renderBefore??null;r._$litPart$=i=new Le(t.insertBefore(ve(),e),e,void 0,n??{})}return i._$AI(e),i},Ke=globalThis,C=class extends ce{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Ge(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return x}};C._$litElement$=!0,C.finalized=!0,Ke.litElementHydrateSupport?.({LitElement:C});var qe=Ke.litElementPolyfillSupport;qe?.({LitElement:C}),(Ke.litElementVersions??=[]).push(`4.2.2`);var w=e=>(t,n)=>{n===void 0?customElements.define(e,t):n.addInitializer(()=>{customElements.define(e,t)})},Je={attribute:!0,type:String,converter:ae,reflect:!1,hasChanged:oe},Ye=(e=Je,t,n)=>{let{kind:r,metadata:i}=n,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),r===`setter`&&((e=Object.create(e)).wrapped=!0),a.set(n.name,e),r===`accessor`){let{name:r}=n;return{set(n){let i=t.get.call(this);t.set.call(this,n),this.requestUpdate(r,i,e,!0,n)},init(t){return t!==void 0&&this.C(r,void 0,e,t),t}}}if(r===`setter`){let{name:r}=n;return function(n){let i=this[r];t.call(this,n),this.requestUpdate(r,i,e,!0,n)}}throw Error(`Unsupported decorator location: `+r)};function T(e){return(t,n)=>typeof n==`object`?Ye(e,t,n):((e,t,n)=>{let r=t.hasOwnProperty(n);return t.constructor.createProperty(n,e),r?Object.getOwnPropertyDescriptor(t,n):void 0})(e,t,n)}function E(e){return T({...e,state:!0,attribute:!1})}var Xe=(e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&typeof t!=`object`&&Object.defineProperty(e,t,n),n);function Ze(e,t){return(n,r,i)=>{let a=t=>t.renderRoot?.querySelector(e)??null;if(t){let{get:e,set:t}=typeof r==`object`?n:i??(()=>{let e=Symbol();return{get(){return this[e]},set(t){this[e]=t}}})();return Xe(n,r,{get(){let n=e.call(this);return n===void 0&&(n=a(this),(n!==null||this.hasUpdated)&&t.call(this,n)),n}})}return Xe(n,r,{get(){return a(this)}})}}let Qe=d`
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`@a2ui/lit`),require(`@a2ui/lit/ui`),require(`@ag-ui/client`)):typeof define==`function`&&define.amd?define([`exports`,`@a2ui/lit`,`@a2ui/lit/ui`,`@ag-ui/client`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.SiteOperator={},e.A2UILit,e.A2UILitUI,e.AgUiClient))})(this,function(e,t,n,r){var i=Object.create,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=s(t),c=0,u=i.length,d;c<u;c++)d=i[c],!l.call(e,d)&&d!==n&&a(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=o(t,d))||r.enumerable});return e};n=((e,t,n)=>(n=e==null?{}:i(c(e)),u(t||!e||!e.__esModule?a(n,`default`,{value:e,enumerable:!0}):n,e)))(n);var d=globalThis,ee=d.ShadowRoot&&(d.ShadyCSS===void 0||d.ShadyCSS.nativeShadow)&&`adoptedStyleSheets`in Document.prototype&&`replace`in CSSStyleSheet.prototype,te=Symbol(),ne=new WeakMap,re=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==te)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(ee&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=ne.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&ne.set(t,e))}return e}toString(){return this.cssText}},ie=e=>new re(typeof e==`string`?e:e+``,void 0,te),f=(e,...t)=>new re(e.length===1?e[0]:t.reduce((t,n,r)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if(typeof e==`number`)return e;throw Error(`Value passed to 'css' function must be a 'css' function result: `+e+`. Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.`)})(n)+e[r+1],e[0]),e,te),ae=(e,t)=>{if(ee)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let n of t){let t=document.createElement(`style`),r=d.litNonce;r!==void 0&&t.setAttribute(`nonce`,r),t.textContent=n.cssText,e.appendChild(t)}},oe=ee?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t=``;for(let n of e.cssRules)t+=n.cssText;return ie(t)})(e):e,{is:se,defineProperty:ce,getOwnPropertyDescriptor:le,getOwnPropertyNames:ue,getOwnPropertySymbols:de,getPrototypeOf:fe}=Object,p=globalThis,pe=p.trustedTypes,me=pe?pe.emptyScript:``,he=p.reactiveElementPolyfillSupport,m=(e,t)=>e,ge={toAttribute(e,t){switch(t){case Boolean:e=e?me:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},_e=(e,t)=>!se(e,t),ve={attribute:!0,type:String,converter:ge,reflect:!1,useDefault:!1,hasChanged:_e};Symbol.metadata??=Symbol(`metadata`),p.litPropertyMetadata??=new WeakMap;var h=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=ve){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let n=Symbol(),r=this.getPropertyDescriptor(e,n,t);r!==void 0&&ce(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){let{get:r,set:i}=le(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:r,set(t){let a=r?.call(this);i?.call(this,t),this.requestUpdate(e,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??ve}static _$Ei(){if(this.hasOwnProperty(m(`elementProperties`)))return;let e=fe(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(m(`finalized`)))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(m(`properties`))){let e=this.properties,t=[...ue(e),...de(e)];for(let n of t)this.createProperty(n,e[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[e,n]of t)this.elementProperties.set(e,n)}this._$Eh=new Map;for(let[e,t]of this.elementProperties){let n=this._$Eu(e,t);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let e of n)t.unshift(oe(e))}else e!==void 0&&t.push(oe(e));return t}static _$Eu(e,t){let n=t.attribute;return!1===n?void 0:typeof n==`string`?n:typeof e==`string`?e.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(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ae(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$ET(e,t){let n=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,n);if(r!==void 0&&!0===n.reflect){let i=(n.converter?.toAttribute===void 0?ge:n.converter).toAttribute(t,n.type);this._$Em=e,i==null?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(e,t){let n=this.constructor,r=n._$Eh.get(e);if(r!==void 0&&this._$Em!==r){let e=n.getPropertyOptions(r),i=typeof e.converter==`function`?{fromAttribute:e.converter}:e.converter?.fromAttribute===void 0?ge:e.converter;this._$Em=r;let a=i.fromAttribute(t,e.type);this[r]=a??this._$Ej?.get(r)??a,this._$Em=null}}requestUpdate(e,t,n,r=!1,i){if(e!==void 0){let a=this.constructor;if(!1===r&&(i=this[e]),n??=a.getPropertyOptions(e),!((n.hasChanged??_e)(i,t)||n.useDefault&&n.reflect&&i===this._$Ej?.get(e)&&!this.hasAttribute(a._$Eu(e,n))))return;this.C(e,t,n)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:n,reflect:r,wrapped:i},a){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??t??this[e]),!0!==i||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(t=void 0),this._$AL.set(e,t)),!0===r&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,n]of e){let{wrapped:e}=n,r=this[t];!0!==e||this._$AL.has(t)||r===void 0||this.C(t,void 0,n,r)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}};h.elementStyles=[],h.shadowRootOptions={mode:`open`},h[m(`elementProperties`)]=new Map,h[m(`finalized`)]=new Map,he?.({ReactiveElement:h}),(p.reactiveElementVersions??=[]).push(`2.1.2`);var ye=globalThis,be=e=>e,g=ye.trustedTypes,xe=g?g.createPolicy(`lit-html`,{createHTML:e=>e}):void 0,Se=`$lit$`,_=`lit$${Math.random().toFixed(9).slice(2)}$`,Ce=`?`+_,we=`<${Ce}>`,v=document,y=()=>v.createComment(``),b=e=>e===null||typeof e!=`object`&&typeof e!=`function`,Te=Array.isArray,Ee=e=>Te(e)||typeof e?.[Symbol.iterator]==`function`,De=`[
2
+ \f\r]`,x=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Oe=/-->/g,ke=/>/g,S=RegExp(`>|${De}(?:([^\\s"'>=/]+)(${De}*=${De}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,`g`),Ae=/'/g,je=/"/g,Me=/^(?:script|style|textarea|title)$/i,C=(e=>(t,...n)=>({_$litType$:e,strings:t,values:n}))(1),w=Symbol.for(`lit-noChange`),T=Symbol.for(`lit-nothing`),Ne=new WeakMap,E=v.createTreeWalker(v,129);function Pe(e,t){if(!Te(e)||!e.hasOwnProperty(`raw`))throw Error(`invalid template strings array`);return xe===void 0?t:xe.createHTML(t)}var Fe=(e,t)=>{let n=e.length-1,r=[],i,a=t===2?`<svg>`:t===3?`<math>`:``,o=x;for(let t=0;t<n;t++){let n=e[t],s,c,l=-1,u=0;for(;u<n.length&&(o.lastIndex=u,c=o.exec(n),c!==null);)u=o.lastIndex,o===x?c[1]===`!--`?o=Oe:c[1]===void 0?c[2]===void 0?c[3]!==void 0&&(o=S):(Me.test(c[2])&&(i=RegExp(`</`+c[2],`g`)),o=S):o=ke:o===S?c[0]===`>`?(o=i??x,l=-1):c[1]===void 0?l=-2:(l=o.lastIndex-c[2].length,s=c[1],o=c[3]===void 0?S:c[3]===`"`?je:Ae):o===je||o===Ae?o=S:o===Oe||o===ke?o=x:(o=S,i=void 0);let d=o===S&&e[t+1].startsWith(`/>`)?` `:``;a+=o===x?n+we:l>=0?(r.push(s),n.slice(0,l)+Se+n.slice(l)+_+d):n+_+(l===-2?t:d)}return[Pe(e,a+(e[n]||`<?>`)+(t===2?`</svg>`:t===3?`</math>`:``)),r]},Ie=class e{constructor({strings:t,_$litType$:n},r){let i;this.parts=[];let a=0,o=0,s=t.length-1,c=this.parts,[l,u]=Fe(t,n);if(this.el=e.createElement(l,r),E.currentNode=this.el.content,n===2||n===3){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;(i=E.nextNode())!==null&&c.length<s;){if(i.nodeType===1){if(i.hasAttributes())for(let e of i.getAttributeNames())if(e.endsWith(Se)){let t=u[o++],n=i.getAttribute(e).split(_),r=/([.?@])?(.*)/.exec(t);c.push({type:1,index:a,name:r[2],strings:n,ctor:r[1]===`.`?Re:r[1]===`?`?ze:r[1]===`@`?Be:k}),i.removeAttribute(e)}else e.startsWith(_)&&(c.push({type:6,index:a}),i.removeAttribute(e));if(Me.test(i.tagName)){let e=i.textContent.split(_),t=e.length-1;if(t>0){i.textContent=g?g.emptyScript:``;for(let n=0;n<t;n++)i.append(e[n],y()),E.nextNode(),c.push({type:2,index:++a});i.append(e[t],y())}}}else if(i.nodeType===8)if(i.data===Ce)c.push({type:2,index:a});else{let e=-1;for(;(e=i.data.indexOf(_,e+1))!==-1;)c.push({type:7,index:a}),e+=_.length-1}a++}}static createElement(e,t){let n=v.createElement(`template`);return n.innerHTML=e,n}};function D(e,t,n=e,r){if(t===w)return t;let i=r===void 0?n._$Cl:n._$Co?.[r],a=b(t)?void 0:t._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(e),i._$AT(e,n,r)),r===void 0?n._$Cl=i:(n._$Co??=[])[r]=i),i!==void 0&&(t=D(e,i._$AS(e,t.values),i,r)),t}var Le=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:n}=this._$AD,r=(e?.creationScope??v).importNode(t,!0);E.currentNode=r;let i=E.nextNode(),a=0,o=0,s=n[0];for(;s!==void 0;){if(a===s.index){let t;s.type===2?t=new O(i,i.nextSibling,this,e):s.type===1?t=new s.ctor(i,s.name,s.strings,this,e):s.type===6&&(t=new Ve(i,this,e)),this._$AV.push(t),s=n[++o]}a!==s?.index&&(i=E.nextNode(),a++)}return E.currentNode=v,r}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings===void 0?n._$AI(e[t]):(n._$AI(e,n,t),t+=n.strings.length-2)),t++}},O=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,r){this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=D(this,e,t),b(e)?e===T||e==null||e===``?(this._$AH!==T&&this._$AR(),this._$AH=T):e!==this._$AH&&e!==w&&this._(e):e._$litType$===void 0?e.nodeType===void 0?Ee(e)?this.k(e):this._(e):this.T(e):this.$(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==T&&b(this._$AH)?this._$AA.nextSibling.data=e:this.T(v.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:n}=e,r=typeof n==`number`?this._$AC(e):(n.el===void 0&&(n.el=Ie.createElement(Pe(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===r)this._$AH.p(t);else{let e=new Le(r,this),n=e.u(this.options);e.p(t),this.T(n),this._$AH=e}}_$AC(e){let t=Ne.get(e.strings);return t===void 0&&Ne.set(e.strings,t=new Ie(e)),t}k(t){Te(this._$AH)||(this._$AH=[],this._$AR());let n=this._$AH,r,i=0;for(let a of t)i===n.length?n.push(r=new e(this.O(y()),this.O(y()),this,this.options)):r=n[i],r._$AI(a),i++;i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let t=be(e).nextSibling;be(e).remove(),e=t}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},k=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,i){this.type=1,this._$AH=T,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=i,n.length>2||n[0]!==``||n[1]!==``?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=T}_$AI(e,t=this,n,r){let i=this.strings,a=!1;if(i===void 0)e=D(this,e,t,0),a=!b(e)||e!==this._$AH&&e!==w,a&&(this._$AH=e);else{let r=e,o,s;for(e=i[0],o=0;o<i.length-1;o++)s=D(this,r[n+o],t,o),s===w&&(s=this._$AH[o]),a||=!b(s)||s!==this._$AH[o],s===T?e=T:e!==T&&(e+=(s??``)+i[o+1]),this._$AH[o]=s}a&&!r&&this.j(e)}j(e){e===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??``)}},Re=class extends k{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===T?void 0:e}},ze=class extends k{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==T)}},Be=class extends k{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}_$AI(e,t=this){if((e=D(this,e,t,0)??T)===w)return;let n=this._$AH,r=e===T&&n!==T||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==T&&(n===T||r);r&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH==`function`?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Ve=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){D(this,e)}},He={M:Se,P:_,A:Ce,C:1,L:Fe,R:Le,D:Ee,V:D,I:O,H:k,N:ze,U:Be,B:Re,F:Ve},Ue=ye.litHtmlPolyfillSupport;Ue?.(Ie,O),(ye.litHtmlVersions??=[]).push(`3.3.2`);var We=(e,t,n)=>{let r=n?.renderBefore??t,i=r._$litPart$;if(i===void 0){let e=n?.renderBefore??null;r._$litPart$=i=new O(t.insertBefore(y(),e),e,void 0,n??{})}return i._$AI(e),i},Ge=globalThis,A=class extends h{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=We(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return w}};A._$litElement$=!0,A.finalized=!0,Ge.litElementHydrateSupport?.({LitElement:A});var Ke=Ge.litElementPolyfillSupport;Ke?.({LitElement:A}),(Ge.litElementVersions??=[]).push(`4.2.2`);var j=e=>(t,n)=>{n===void 0?customElements.define(e,t):n.addInitializer(()=>{customElements.define(e,t)})},qe={attribute:!0,type:String,converter:ge,reflect:!1,hasChanged:_e},Je=(e=qe,t,n)=>{let{kind:r,metadata:i}=n,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),r===`setter`&&((e=Object.create(e)).wrapped=!0),a.set(n.name,e),r===`accessor`){let{name:r}=n;return{set(n){let i=t.get.call(this);t.set.call(this,n),this.requestUpdate(r,i,e,!0,n)},init(t){return t!==void 0&&this.C(r,void 0,e,t),t}}}if(r===`setter`){let{name:r}=n;return function(n){let i=this[r];t.call(this,n),this.requestUpdate(r,i,e,!0,n)}}throw Error(`Unsupported decorator location: `+r)};function M(e){return(t,n)=>typeof n==`object`?Je(e,t,n):((e,t,n)=>{let r=t.hasOwnProperty(n);return t.constructor.createProperty(n,e),r?Object.getOwnPropertyDescriptor(t,n):void 0})(e,t,n)}function N(e){return M({...e,state:!0,attribute:!1})}var Ye=(e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&typeof t!=`object`&&Object.defineProperty(e,t,n),n);function Xe(e,t){return(n,r,i)=>{let a=t=>t.renderRoot?.querySelector(e)??null;if(t){let{get:e,set:t}=typeof r==`object`?n:i??(()=>{let e=Symbol();return{get(){return this[e]},set(t){this[e]=t}}})();return Ye(n,r,{get(){let n=e.call(this);return n===void 0&&(n=a(this),(n!==null||this.hasUpdated)&&t.call(this,n)),n}})}return Ye(n,r,{get(){return a(this)}})}}let Ze=f`
3
3
  :host {
4
4
  display: flex;
5
5
  flex-direction: column;
@@ -54,7 +54,7 @@
54
54
  transform: scale(1.1);
55
55
  }
56
56
 
57
- `,$e=d`
57
+ `,Qe=f`
58
58
  :host {
59
59
  display: block;
60
60
  border-bottom: 1px solid var(--agent-border-zinc-200, #e4e4e7);
@@ -82,7 +82,7 @@
82
82
  display: flex;
83
83
  gap: 0.5rem;
84
84
  }
85
- `,et=d`
85
+ `,$e=f`
86
86
  :host {
87
87
  display: inline-flex;
88
88
  }
@@ -109,50 +109,50 @@
109
109
  width: 1.25rem;
110
110
  height: 1.25rem;
111
111
  }
112
- `;function D(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var tt=class extends C{constructor(...e){super(...e),this.tooltip=``}static#e=this.styles=et;render(){return b`
112
+ `;function P(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var et=class extends A{constructor(...e){super(...e),this.tooltip=``}static#e=this.styles=$e;render(){return C`
113
113
  <button title="${this.tooltip}" aria-label="${this.tooltip||`Action`}">
114
114
  <slot></slot>
115
115
  </button>
116
- `}};D([T()],tt.prototype,`tooltip`,void 0),tt=D([w(`agent-icon-button`)],tt);let nt=b`
116
+ `}};P([M()],et.prototype,`tooltip`,void 0),et=P([j(`agent-icon-button`)],et);let tt=C`
117
117
  <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-plus">
118
118
  <path d="M5 12h14" />
119
119
  <path d="M12 5v14" />
120
- </svg>`,rt=b`
120
+ </svg>`,nt=C`
121
121
  <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-send">
122
122
  <path d="M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z" />
123
123
  <path d="m21.854 2.147-10.94 10.939" />
124
- </svg>`,it=b`
124
+ </svg>`,rt=C`
125
125
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-copy">
126
126
  <rect width="14" height="14" x="8" y="8" rx="2" ry="2" />
127
127
  <path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" />
128
- </svg>`,at=b`
128
+ </svg>`,it=C`
129
129
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-rotate-cw">
130
130
  <path d="M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8" />
131
131
  <path d="M21 3v5h-5" />
132
- </svg>`,ot=b`
132
+ </svg>`,at=C`
133
133
  <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-square">
134
134
  <rect width="18" height="18" x="3" y="3" rx="2" />
135
- </svg>`,st=b`
135
+ </svg>`,ot=C`
136
136
  <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-history">
137
137
  <path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" />
138
138
  <path d="M3 3v5h5" />
139
139
  <path d="M12 7v5l4 2" />
140
- </svg>`,ct=b`
140
+ </svg>`,st=C`
141
141
  <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-wrench">
142
142
  <path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z" />
143
- </svg>`;var lt=class extends C{constructor(...e){super(...e),this.title=`Agent Chat`}static#e=this.styles=$e;_handleNewThread(){this.dispatchEvent(new CustomEvent(`new-thread`,{bubbles:!0,composed:!0}))}_handleToggleHistory(){this.dispatchEvent(new CustomEvent(`toggle-history`,{bubbles:!0,composed:!0}))}render(){return b`
143
+ </svg>`;var ct=class extends A{constructor(...e){super(...e),this.title=`Agent Chat`}static#e=this.styles=Qe;_handleNewThread(){this.dispatchEvent(new CustomEvent(`new-thread`,{bubbles:!0,composed:!0}))}_handleToggleHistory(){this.dispatchEvent(new CustomEvent(`toggle-history`,{bubbles:!0,composed:!0}))}render(){return C`
144
144
  <header class="header">
145
145
  <h1>${this.title}</h1>
146
146
  <div class="actions">
147
147
  <agent-icon-button tooltip="Conversaciones" @click="${this._handleToggleHistory}">
148
- ${st}
148
+ ${ot}
149
149
  </agent-icon-button>
150
150
  <agent-icon-button tooltip="Nuevo Chat" @click="${this._handleNewThread}">
151
- ${nt}
151
+ ${tt}
152
152
  </agent-icon-button>
153
153
  </div>
154
154
  </header>
155
- `}};D([T({type:String})],lt.prototype,`title`,void 0),lt=D([w(`agent-chat-header`)],lt);let ut=d`
155
+ `}};P([M({type:String})],ct.prototype,`title`,void 0),ct=P([j(`agent-chat-header`)],ct);let lt=f`
156
156
  :host {
157
157
  display: block;
158
158
  height: 100%;
@@ -209,7 +209,7 @@
209
209
  text-align: center;
210
210
  padding: 0 1rem;
211
211
  }
212
- `,dt=d`
212
+ `,ut=f`
213
213
  :host {
214
214
  display: block;
215
215
  margin: 1rem 0;
@@ -334,10 +334,10 @@
334
334
  transform: scale(1);
335
335
  }
336
336
  }
337
- `,ft=new class{constructor(){this.processor=t.v0_8.Data.createSignalA2uiMessageProcessor()}mapMessage(e){if(e.role!==`assistant`||!e.toolCalls)throw Error(`Unsupported message type for A2UI processing`);let t=[];for(let n of e.toolCalls){if(n.type!==`function`||!n.function)continue;let e=n.function.name,r=this.parseToolArguments(n.function.arguments,e);if(r){if(e===`a2ui_begin_rendering`){let e=this.mapBeginRendering(r);e&&t.push({beginRendering:e});continue}if(e===`a2ui_update_surface`){let e=this.mapSurfaceUpdate(r);e&&t.push({surfaceUpdate:e});continue}if(e===`a2ui_update_data_model`){let e=this.mapDataModelUpdate(r);e&&t.push({dataModelUpdate:e});continue}if(e===`a2ui_delete_surface`){let e=this.mapDeleteSurface(r);e&&t.push({deleteSurface:e});continue}}}return t}parseToolArguments(e,t){if(e==null)return console.warn(`A2UIService: Missing arguments for ${t}`),null;if(typeof e==`string`){let n=e.trim();if(n===``)return{};try{return JSON.parse(n)}catch(e){return console.warn(`A2UIService: Failed to parse arguments for ${t}`,e),null}}return typeof e==`object`?e:(console.warn(`A2UIService: Unsupported arguments type for ${t}`),null)}mapBeginRendering(e){let t=this.getSurfaceId(e),n=this.getRootComponentId(e);if(!t||!n)return console.warn(`A2UIService: Missing surfaceId or root for begin rendering`),null;let r=typeof e.styles==`object`&&e.styles?e.styles:void 0;return r?{surfaceId:t,root:n,styles:r}:{surfaceId:t,root:n}}mapSurfaceUpdate(e){let t=this.getSurfaceId(e);return t?{surfaceId:t,components:Array.isArray(e.components)?e.components:[]}:(console.warn(`A2UIService: Missing surfaceId for surface update`),null)}mapDataModelUpdate(e){let t=this.getSurfaceId(e);if(!t)return console.warn(`A2UIService: Missing surfaceId for data model update`),null;let n={surfaceId:t,contents:this.normalizeValueMapArray(e.contents)};return typeof e.path==`string`&&(n.path=e.path),n}normalizeDataModelUpdate(e){let t={surfaceId:e.surfaceId,contents:this.normalizeValueMapArray(e.contents)};return typeof e.path==`string`&&(t.path=e.path),t}mapDeleteSurface(e){let t=this.getSurfaceId(e);return t?{surfaceId:t}:(console.warn(`A2UIService: Missing surfaceId for delete surface`),null)}getSurfaceId(e){let t=e.surfaceId??e.surface_id;return typeof t==`string`&&t.trim()?t:typeof t==`number`?String(t):null}getRootComponentId(e){let t=e.root??e.rootComponentId??e.root_component??e.root_component_id;return typeof t==`string`&&t.trim()?t:typeof t==`number`?String(t):null}normalizeValueMapArray(e){return Array.isArray(e)?e.filter(e=>e&&typeof e==`object`&&`key`in e).map(e=>this.normalizeValueMapEntry(e)):[]}normalizeValueMapEntry(e){let t={...e};`value_string`in e&&(t.valueString=e.value_string),`valueString`in e&&(t.valueString=e.valueString),`value_number`in e&&(t.valueNumber=e.value_number),`valueNumber`in e&&(t.valueNumber=e.valueNumber),`value_boolean`in e&&(t.valueBoolean=e.value_boolean),`valueBoolean`in e&&(t.valueBoolean=e.valueBoolean);let n=e.valueMap??e.value_map;return n!==void 0&&(t.valueMap=this.normalizeValueMapArray(n)),delete t.value_string,delete t.value_number,delete t.value_boolean,delete t.value_map,typeof t.key!=`string`&&(t.key=String(t.key??``)),t}isServerToClientMessage(e){if(!e||typeof e!=`object`)return!1;let t=e;return`beginRendering`in t||`begin_rendering`in t||`surfaceUpdate`in t||`surface_update`in t||`dataModelUpdate`in t||`data_model_update`in t||`deleteSurface`in t||`delete_surface`in t}normalizeServerMessage(e){let t=e;if(`beginRendering`in t||`surfaceUpdate`in t||`dataModelUpdate`in t||`deleteSurface`in t){let t=e;return t.dataModelUpdate?{...t,dataModelUpdate:this.normalizeDataModelUpdate(t.dataModelUpdate)}:t}let n={},r=t.begin_rendering;if(r&&typeof r==`object`){let e=this.mapBeginRendering(r);e&&(n.beginRendering=e)}let i=t.surface_update;if(i&&typeof i==`object`){let e=this.mapSurfaceUpdate(i);e&&(n.surfaceUpdate=e)}let a=t.data_model_update;if(a&&typeof a==`object`){let e=this.mapDataModelUpdate(a);e&&(n.dataModelUpdate=e)}let o=t.delete_surface;if(o&&typeof o==`object`){let e=this.mapDeleteSurface(o);e&&(n.deleteSurface=e)}return n}processMessages(e){let t=[];for(let n of e){if(this.isServerToClientMessage(n)){t.push(this.normalizeServerMessage(n));continue}n.role===`assistant`&&n.toolCalls&&t.push(...this.mapMessage(n))}if(t.length!==0)return this.processor.processMessages(t)}processMessage(e){this.processMessages([e])}processSnapshot(e){if(e.activityType===`a2ui`&&e.content){let t=e.content,n=Array.isArray(t)?t:[t],r=this.getSurfaceIdsFromEvent(e),i=e.replace===!1?[]:r.map(e=>({deleteSurface:{surfaceId:e}})),a=n.map(e=>{if(e.surfaceUpdate||e.surface_update){let t=e.surfaceUpdate||e.surface_update,n=t.surfaceId||t.surface_id,r=t.components||[];if(n&&r.length>0){let t=this.processor.getSurfaces().get(n)?.rootComponentId;if(!r.some(e=>e.id===t)||!t){let t=r[0].id;return console.warn(`A2UIService: Auto-fixing root mismatch for surface ${n}. Mapeando root a ${t}`),[{beginRendering:{surfaceId:n,root:t}},e]}}}return e}).flat(),o=[...i,...a];console.log(`A2UIService: Processing messages (fixed)`,o),this.processor.processMessages(o);let s=Array.from(this.processor.getSurfaces().entries());console.log(`A2UIService: Estado del procesador tras procesado:`,s.map(([e,t])=>({id:e,root:t.rootComponentId,components:t.components.size,hasTree:!!t.componentTree})))}}getSurfaceIdsFromEvent(e){if(e.activityType!==`a2ui`||!e.content)return[];let t=e.content,n=Array.isArray(t)?t:[t],r=new Set;return n.forEach(e=>{let t=e.beginRendering||e.begin_rendering||e.surfaceUpdate||e.surface_update||e.deleteSurface||e.delete_surface,n=t?.surfaceId||t?.surface_id;n&&r.add(n)}),Array.from(r)}};var pt=class extends C{constructor(...e){super(...e),this.isLast=!1,this.isStreaming=!1,this.agentAvatar=``}static#e=this.styles=dt;updated(e){e.has(`message`)&&(this.setAttribute(`role`,this.message.role),this.requestUpdate())}_handleCopy(){let e=typeof this.message.content==`string`?this.message.content:JSON.stringify(this.message.content||``);navigator.clipboard.writeText(e)}_handleReload(){this.dispatchEvent(new CustomEvent(`reload-message`,{detail:{id:this.message.id},bubbles:!0,composed:!0}))}render(){let e=this.message.role===`user`;if(this.message.role===`assistant`&&Array.isArray(this.message.toolCalls)&&this.message.toolCalls.length>0){ft.processMessages([this.message]);let e=Array.from(ft.processor.getSurfaces().entries()),t=ft.processor;if(e.length>0)return b`
337
+ `,dt=new class{constructor(){this.processor=t.v0_8.Data.createSignalA2uiMessageProcessor()}mapMessage(e){if(e.role!==`assistant`||!e.toolCalls)throw Error(`Unsupported message type for A2UI processing`);let t=[];for(let n of e.toolCalls){if(n.type!==`function`||!n.function)continue;let e=n.function.name,r=this.parseToolArguments(n.function.arguments,e);if(r){if(e===`a2ui_begin_rendering`){let e=this.mapBeginRendering(r);e&&t.push({beginRendering:e});continue}if(e===`a2ui_update_surface`){let e=this.mapSurfaceUpdate(r);e&&t.push({surfaceUpdate:e});continue}if(e===`a2ui_update_data_model`){let e=this.mapDataModelUpdate(r);e&&t.push({dataModelUpdate:e});continue}if(e===`a2ui_delete_surface`){let e=this.mapDeleteSurface(r);e&&t.push({deleteSurface:e});continue}}}return t}parseToolArguments(e,t){if(e==null)return console.warn(`A2UIService: Missing arguments for ${t}`),null;if(typeof e==`string`){let n=e.trim();if(n===``)return{};try{return JSON.parse(n)}catch(e){return console.warn(`A2UIService: Failed to parse arguments for ${t}`,e),null}}return typeof e==`object`?e:(console.warn(`A2UIService: Unsupported arguments type for ${t}`),null)}mapBeginRendering(e){let t=this.getSurfaceId(e),n=this.getRootComponentId(e);if(!t||!n)return console.warn(`A2UIService: Missing surfaceId or root for begin rendering`),null;let r=typeof e.styles==`object`&&e.styles?e.styles:void 0;return r?{surfaceId:t,root:n,styles:r}:{surfaceId:t,root:n}}mapSurfaceUpdate(e){let t=this.getSurfaceId(e);return t?{surfaceId:t,components:Array.isArray(e.components)?e.components:[]}:(console.warn(`A2UIService: Missing surfaceId for surface update`),null)}mapDataModelUpdate(e){let t=this.getSurfaceId(e);if(!t)return console.warn(`A2UIService: Missing surfaceId for data model update`),null;let n={surfaceId:t,contents:this.normalizeValueMapArray(e.contents)};return typeof e.path==`string`&&(n.path=e.path),n}normalizeDataModelUpdate(e){let t={surfaceId:e.surfaceId,contents:this.normalizeValueMapArray(e.contents)};return typeof e.path==`string`&&(t.path=e.path),t}mapDeleteSurface(e){let t=this.getSurfaceId(e);return t?{surfaceId:t}:(console.warn(`A2UIService: Missing surfaceId for delete surface`),null)}getSurfaceId(e){let t=e.surfaceId??e.surface_id;return typeof t==`string`&&t.trim()?t:typeof t==`number`?String(t):null}getRootComponentId(e){let t=e.root??e.rootComponentId??e.root_component??e.root_component_id;return typeof t==`string`&&t.trim()?t:typeof t==`number`?String(t):null}normalizeValueMapArray(e){return Array.isArray(e)?e.filter(e=>e&&typeof e==`object`&&`key`in e).map(e=>this.normalizeValueMapEntry(e)):[]}normalizeValueMapEntry(e){let t={...e};`value_string`in e&&(t.valueString=e.value_string),`valueString`in e&&(t.valueString=e.valueString),`value_number`in e&&(t.valueNumber=e.value_number),`valueNumber`in e&&(t.valueNumber=e.valueNumber),`value_boolean`in e&&(t.valueBoolean=e.value_boolean),`valueBoolean`in e&&(t.valueBoolean=e.valueBoolean);let n=e.valueMap??e.value_map;return n!==void 0&&(t.valueMap=this.normalizeValueMapArray(n)),delete t.value_string,delete t.value_number,delete t.value_boolean,delete t.value_map,typeof t.key!=`string`&&(t.key=String(t.key??``)),t}isServerToClientMessage(e){if(!e||typeof e!=`object`)return!1;let t=e;return`beginRendering`in t||`begin_rendering`in t||`surfaceUpdate`in t||`surface_update`in t||`dataModelUpdate`in t||`data_model_update`in t||`deleteSurface`in t||`delete_surface`in t}normalizeServerMessage(e){let t=e;if(`beginRendering`in t||`surfaceUpdate`in t||`dataModelUpdate`in t||`deleteSurface`in t){let t=e;return t.dataModelUpdate?{...t,dataModelUpdate:this.normalizeDataModelUpdate(t.dataModelUpdate)}:t}let n={},r=t.begin_rendering;if(r&&typeof r==`object`){let e=this.mapBeginRendering(r);e&&(n.beginRendering=e)}let i=t.surface_update;if(i&&typeof i==`object`){let e=this.mapSurfaceUpdate(i);e&&(n.surfaceUpdate=e)}let a=t.data_model_update;if(a&&typeof a==`object`){let e=this.mapDataModelUpdate(a);e&&(n.dataModelUpdate=e)}let o=t.delete_surface;if(o&&typeof o==`object`){let e=this.mapDeleteSurface(o);e&&(n.deleteSurface=e)}return n}processMessages(e){let t=[];for(let n of e){if(this.isServerToClientMessage(n)){t.push(this.normalizeServerMessage(n));continue}n.role===`assistant`&&n.toolCalls&&t.push(...this.mapMessage(n))}if(t.length!==0)return this.processor.processMessages(t)}processMessage(e){this.processMessages([e])}processSnapshot(e){if(e.activityType===`a2ui`&&e.content){let t=e.content,n=Array.isArray(t)?t:[t],r=this.getSurfaceIdsFromEvent(e),i=e.replace===!1?[]:r.map(e=>({deleteSurface:{surfaceId:e}})),a=n.map(e=>{if(e.surfaceUpdate||e.surface_update){let t=e.surfaceUpdate||e.surface_update,n=t.surfaceId||t.surface_id,r=t.components||[];if(n&&r.length>0){let t=this.processor.getSurfaces().get(n)?.rootComponentId;if(!r.some(e=>e.id===t)||!t){let t=r[0].id;return console.warn(`A2UIService: Auto-fixing root mismatch for surface ${n}. Mapeando root a ${t}`),[{beginRendering:{surfaceId:n,root:t}},e]}}}return e}).flat(),o=[...i,...a];console.log(`A2UIService: Processing messages (fixed)`,o),this.processor.processMessages(o);let s=Array.from(this.processor.getSurfaces().entries());console.log(`A2UIService: Estado del procesador tras procesado:`,s.map(([e,t])=>({id:e,root:t.rootComponentId,components:t.components.size,hasTree:!!t.componentTree})))}}getSurfaceIdsFromEvent(e){if(e.activityType!==`a2ui`||!e.content)return[];let t=e.content,n=Array.isArray(t)?t:[t],r=new Set;return n.forEach(e=>{let t=e.beginRendering||e.begin_rendering||e.surfaceUpdate||e.surface_update||e.deleteSurface||e.delete_surface,n=t?.surfaceId||t?.surface_id;n&&r.add(n)}),Array.from(r)}};var F=class extends A{constructor(...e){super(...e),this.isLast=!1,this.isStreaming=!1,this.agentAvatar=``}static#e=this.styles=ut;updated(e){e.has(`message`)&&(this.setAttribute(`role`,this.message.role),this.requestUpdate())}_handleCopy(){let e=typeof this.message.content==`string`?this.message.content:JSON.stringify(this.message.content||``);navigator.clipboard.writeText(e)}_handleReload(){this.dispatchEvent(new CustomEvent(`reload-message`,{detail:{id:this.message.id},bubbles:!0,composed:!0}))}render(){let e=this.message.role===`user`;if(this.message.role===`assistant`&&Array.isArray(this.message.toolCalls)&&this.message.toolCalls.length>0){dt.processMessages([this.message]);let e=Array.from(dt.processor.getSurfaces().entries()),t=dt.processor;if(e.length>0)return C`
338
338
  <div class="message-container activity">
339
339
  <div class="content-wrapper">
340
- ${e.map(([e,n])=>b`
340
+ ${e.map(([e,n])=>C`
341
341
  <a2ui-theme-provider
342
342
  .surfaceId="${e}"
343
343
  .processor="${t}"
@@ -347,14 +347,14 @@
347
347
  `)}
348
348
  </div>
349
349
  </div>
350
- `}return b`
350
+ `}return C`
351
351
  <div class="message-container">
352
- ${e?``:b`
353
- ${this.agentAvatar?b`<img src="${this.agentAvatar}" class="avatar-img" alt="AI">`:b`<div class="avatar">C</div>`}
352
+ ${e?``:C`
353
+ ${this.agentAvatar?C`<img src="${this.agentAvatar}" class="avatar-img" alt="AI">`:C`<div class="avatar">C</div>`}
354
354
  `}
355
355
 
356
356
  <div class="content-wrapper">
357
- <div class="bubble ${this.isStreaming?`streaming`:``}">${this.message.isThinking?b`
357
+ <div class="bubble ${this.isStreaming?`streaming`:``}">${this.message.isThinking?C`
358
358
  <div class="typing-indicator">
359
359
  <div class="typing-dot"></div>
360
360
  <div class="typing-dot"></div>
@@ -362,26 +362,26 @@
362
362
  </div>
363
363
  `:this.message.content}</div>
364
364
 
365
- ${e?``:b`
365
+ ${e?``:C`
366
366
  <div class="actions">
367
367
  <agent-icon-button tooltip="Copy" @click="${this._handleCopy}">
368
- ${it}
368
+ ${rt}
369
369
  </agent-icon-button>
370
370
  <agent-icon-button tooltip="Reload" @click="${this._handleReload}">
371
- ${at}
371
+ ${it}
372
372
  </agent-icon-button>
373
373
  </div>
374
374
  `}
375
375
  </div>
376
376
  </div>
377
- `}};D([T({type:Object})],pt.prototype,`message`,void 0),D([T({type:Boolean})],pt.prototype,`isLast`,void 0),D([T({type:Boolean})],pt.prototype,`isStreaming`,void 0),D([T({type:String})],pt.prototype,`agentAvatar`,void 0),pt=D([w(`agent-chat-message`)],pt);var mt=class extends C{constructor(...e){super(...e),this.messages=[],this.isRunning=!1,this.agentAvatar=``,this.emptyText=``}static#e=this.styles=ut;updated(e){e.has(`messages`)&&this.scrollToBottom()}async scrollToBottom(){await this.updateComplete,(this.shadowRoot?.querySelector(`agent-chat-message:last-of-type`))?.scrollIntoView({behavior:`smooth`,block:`end`})}render(){return this.messages.length===0?b`
377
+ `}};P([M({type:Object})],F.prototype,`message`,void 0),P([M({type:Boolean})],F.prototype,`isLast`,void 0),P([M({type:Boolean})],F.prototype,`isStreaming`,void 0),P([M({type:String})],F.prototype,`agentAvatar`,void 0),F=P([j(`agent-chat-message`)],F);var I=class extends A{constructor(...e){super(...e),this.messages=[],this.isRunning=!1,this.agentAvatar=``,this.emptyText=``}static#e=this.styles=lt;updated(e){e.has(`messages`)&&this.scrollToBottom()}async scrollToBottom(){await this.updateComplete,(this.shadowRoot?.querySelector(`agent-chat-message:last-of-type`))?.scrollIntoView({behavior:`smooth`,block:`end`})}render(){return this.messages.length===0?C`
378
378
  <div class="empty-state">
379
- ${this.agentAvatar?b`<img src="${this.agentAvatar}" alt="Agent Avatar" class="empty-avatar-img">`:b`<div class="empty-avatar">SM</div>`}
379
+ ${this.agentAvatar?C`<img src="${this.agentAvatar}" alt="Agent Avatar" class="empty-avatar-img">`:C`<div class="empty-avatar">SM</div>`}
380
380
  <p class="empty-text">${this.emptyText}</p>
381
381
  </div>
382
- `:b`
382
+ `:C`
383
383
  <div class="messages-list">
384
- ${this.messages.filter(e=>e.role===`assistant`||e.role===`user`||e.role===`activity`).map((e,t,n)=>b`
384
+ ${this.messages.filter(e=>e.role===`assistant`||e.role===`user`||e.role===`activity`).map((e,t,n)=>C`
385
385
  <agent-chat-message
386
386
  .message=${e}
387
387
  .isLast=${t===n.length-1}
@@ -390,7 +390,7 @@
390
390
  </agent-chat-message>
391
391
  `)}
392
392
  </div>
393
- `}};D([T({type:Array})],mt.prototype,`messages`,void 0),D([T({type:Boolean})],mt.prototype,`isRunning`,void 0),D([T({type:String})],mt.prototype,`agentAvatar`,void 0),D([T({type:String})],mt.prototype,`emptyText`,void 0),mt=D([w(`agent-chat-thread`)],mt);let ht=d`
393
+ `}};P([M({type:Array})],I.prototype,`messages`,void 0),P([M({type:Boolean})],I.prototype,`isRunning`,void 0),P([M({type:String})],I.prototype,`agentAvatar`,void 0),P([M({type:String})],I.prototype,`emptyText`,void 0),I=P([j(`agent-chat-thread`)],I);let ft=f`
394
394
  :host {
395
395
  display: block;
396
396
  padding: 1rem;
@@ -475,7 +475,7 @@
475
475
  font-size: 0.75rem;
476
476
  padding: 0.5rem;
477
477
  }
478
- `;var gt=class extends C{constructor(...e){super(...e),this.isRunning=!1,this.disclaimer=``,this.placeholder=``,this._value=``}static#e=this.styles=ht;_handleInput(e){this._value=e.target.value,this._adjustHeight()}_handleKeyDown(e){e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),this._handleSubmit())}_adjustHeight(){this._textarea&&(this._textarea.style.height=`auto`,this._textarea.style.height=`${Math.min(this._textarea.scrollHeight,160)}px`)}async _handleSubmit(){this._value.trim()&&(this.dispatchEvent(new CustomEvent(`send`,{detail:{content:this._value},bubbles:!0,composed:!0})),this._value=``,await this.updateComplete,this._textarea.style.height=`3rem`)}_handleStop(){this.dispatchEvent(new CustomEvent(`cancel`,{bubbles:!0,composed:!0}))}render(){return b`
478
+ `;var L=class extends A{constructor(...e){super(...e),this.isRunning=!1,this.disclaimer=``,this.placeholder=``,this._value=``}static#e=this.styles=ft;_handleInput(e){this._value=e.target.value,this._adjustHeight()}_handleKeyDown(e){e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),this._handleSubmit())}_adjustHeight(){this._textarea&&(this._textarea.style.height=`auto`,this._textarea.style.height=`${Math.min(this._textarea.scrollHeight,160)}px`)}async _handleSubmit(){this._value.trim()&&(this.dispatchEvent(new CustomEvent(`send`,{detail:{content:this._value},bubbles:!0,composed:!0})),this._value=``,await this.updateComplete,this._textarea.style.height=`3rem`)}_handleStop(){this.dispatchEvent(new CustomEvent(`cancel`,{bubbles:!0,composed:!0}))}render(){return C`
479
479
  <div class="composer-container">
480
480
  <textarea
481
481
  placeholder="${this.placeholder}"
@@ -486,1253 +486,23 @@
486
486
  rows="1"
487
487
  ></textarea>
488
488
 
489
- ${this.isRunning?b`<button class="action-button" @click="${this._handleStop}">${ot}</button>`:b`<button class="action-button" ?disabled="${!this._value.trim()}" @click="${this._handleSubmit}">${rt}</button>`}
489
+ ${this.isRunning?C`<button class="action-button" @click="${this._handleStop}">${at}</button>`:C`<button class="action-button" ?disabled="${!this._value.trim()}" @click="${this._handleSubmit}">${nt}</button>`}
490
490
  </div>
491
491
  <p class="disclaimer">
492
492
  ${this.disclaimer}
493
493
  </p>
494
- `}};D([T({type:Boolean})],gt.prototype,`isRunning`,void 0),D([T({type:String})],gt.prototype,`disclaimer`,void 0),D([T({type:String})],gt.prototype,`placeholder`,void 0),D([E()],gt.prototype,`_value`,void 0),D([Ze(`textarea`)],gt.prototype,`_textarea`,void 0),gt=D([w(`agent-chat-composer`)],gt);var _t=Object.defineProperty,vt=(e,t,n)=>t in e?_t(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yt=(e,t,n)=>(vt(e,typeof t==`symbol`?t:t+``,n),n),bt=(e,t,n)=>{if(!t.has(e))throw TypeError(`Cannot `+n)},xt=(e,t)=>{if(Object(t)!==t)throw TypeError(`Cannot use the "in" operator on this value`);return e.has(t)},St=(e,t,n)=>{if(t.has(e))throw TypeError(`Cannot add the same private member more than once`);t instanceof WeakSet?t.add(e):t.set(e,n)},Ct=(e,t,n)=>(bt(e,t,`access private method`),n);function wt(e,t){return Object.is(e,t)}var O=null,Tt=!1,Et=1,Dt=Symbol(`SIGNAL`);function Ot(e){let t=O;return O=e,t}function kt(){return O}function At(){return Tt}var jt={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Mt(e){if(Tt)throw Error(typeof ngDevMode<`u`&&ngDevMode?`Assertion error: signal read during notification phase`:``);if(O===null)return;O.consumerOnSignalRead(e);let t=O.nextProducerIndex++;if(Wt(O),t<O.producerNode.length&&O.producerNode[t]!==e&&Ut(O)){let e=O.producerNode[t];Ht(e,O.producerIndexOfThis[t])}O.producerNode[t]!==e&&(O.producerNode[t]=e,O.producerIndexOfThis[t]=Ut(O)?Vt(e,O,t):0),O.producerLastReadVersion[t]=e.version}function Nt(){Et++}function Pt(e){if(!(!e.dirty&&e.lastCleanEpoch===Et)){if(!e.producerMustRecompute(e)&&!Bt(e)){e.dirty=!1,e.lastCleanEpoch=Et;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=Et}}function Ft(e){if(e.liveConsumerNode===void 0)return;let t=Tt;Tt=!0;try{for(let t of e.liveConsumerNode)t.dirty||Lt(t)}finally{Tt=t}}function It(){return O?.consumerAllowSignalWrites!==!1}function Lt(e){var t;e.dirty=!0,Ft(e),(t=e.consumerMarkedDirty)==null||t.call(e.wrapper??e)}function Rt(e){return e&&(e.nextProducerIndex=0),Ot(e)}function zt(e,t){if(Ot(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(Ut(e))for(let t=e.nextProducerIndex;t<e.producerNode.length;t++)Ht(e.producerNode[t],e.producerIndexOfThis[t]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Bt(e){Wt(e);for(let t=0;t<e.producerNode.length;t++){let n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(Pt(n),r!==n.version))return!0}return!1}function Vt(e,t,n){var r;if(Gt(e),Wt(e),e.liveConsumerNode.length===0){(r=e.watched)==null||r.call(e.wrapper);for(let t=0;t<e.producerNode.length;t++)e.producerIndexOfThis[t]=Vt(e.producerNode[t],e,t)}return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function Ht(e,t){var n;if(Gt(e),Wt(e),typeof ngDevMode<`u`&&ngDevMode&&t>=e.liveConsumerNode.length)throw Error(`Assertion error: active consumer index ${t} is out of bounds of ${e.liveConsumerNode.length} consumers)`);if(e.liveConsumerNode.length===1){(n=e.unwatched)==null||n.call(e.wrapper);for(let t=0;t<e.producerNode.length;t++)Ht(e.producerNode[t],e.producerIndexOfThis[t])}let r=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[r],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[r],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){let n=e.liveConsumerIndexOfThis[t],r=e.liveConsumerNode[t];Wt(r),r.producerIndexOfThis[n]=t}}function Ut(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function Wt(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Gt(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Kt(e){if(Pt(e),Mt(e),e.value===Xt)throw e.error;return e.value}function qt(e){let t=Object.create(Zt);t.computation=e;let n=()=>Kt(t);return n[Dt]=t,n}var Jt=Symbol(`UNSET`),Yt=Symbol(`COMPUTING`),Xt=Symbol(`ERRORED`),Zt=(()=>({...jt,value:Jt,dirty:!0,error:null,equal:wt,producerMustRecompute(e){return e.value===Jt||e.value===Yt},producerRecomputeValue(e){if(e.value===Yt)throw Error(`Detected cycle in computations.`);let t=e.value;e.value=Yt;let n=Rt(e),r,i=!1;try{r=e.computation.call(e.wrapper),i=t!==Jt&&t!==Xt&&e.equal.call(e.wrapper,t,r)}catch(t){r=Xt,e.error=t}finally{zt(e,n)}if(i){e.value=t;return}e.value=r,e.version++}}))();function Qt(){throw Error()}var $t=Qt;function en(){$t()}function tn(e){let t=Object.create(an);t.value=e;let n=()=>(Mt(t),t.value);return n[Dt]=t,n}function nn(){return Mt(this),this.value}function rn(e,t){It()||en(),e.equal.call(e.wrapper,e.value,t)||(e.value=t,on(e))}var an=(()=>({...jt,equal:wt,value:void 0}))();function on(e){e.version++,Nt(),Ft(e)}var k=Symbol(`node`),sn;(e=>{var t,n,r,i;class a{constructor(r,i={}){St(this,n),yt(this,t);let a=tn(r)[Dt];if(this[k]=a,a.wrapper=this,i){let t=i.equals;t&&(a.equal=t),a.watched=i[e.subtle.watched],a.unwatched=i[e.subtle.unwatched]}}get(){if(!(0,e.isState)(this))throw TypeError(`Wrong receiver type for Signal.State.prototype.get`);return nn.call(this[k])}set(t){if(!(0,e.isState)(this))throw TypeError(`Wrong receiver type for Signal.State.prototype.set`);if(At())throw Error(`Writes to signals not permitted during Watcher callback`);let n=this[k];rn(n,t)}}t=k,n=new WeakSet,e.isState=e=>typeof e==`object`&&xt(n,e),e.State=a;class o{constructor(t,n){St(this,i),yt(this,r);let a=qt(t)[Dt];if(a.consumerAllowSignalWrites=!0,this[k]=a,a.wrapper=this,n){let t=n.equals;t&&(a.equal=t),a.watched=n[e.subtle.watched],a.unwatched=n[e.subtle.unwatched]}}get(){if(!(0,e.isComputed)(this))throw TypeError(`Wrong receiver type for Signal.Computed.prototype.get`);return Kt(this[k])}}r=k,i=new WeakSet,e.isComputed=e=>typeof e==`object`&&xt(i,e),e.Computed=o,(t=>{var n,r,i,a;function o(e){let t,n=null;try{n=Ot(null),t=e()}finally{Ot(n)}return t}t.untrack=o;function s(t){if(!(0,e.isComputed)(t)&&!(0,e.isWatcher)(t))throw TypeError(`Called introspectSources without a Computed or Watcher argument`);return t[k].producerNode?.map(e=>e.wrapper)??[]}t.introspectSources=s;function c(t){if(!(0,e.isComputed)(t)&&!(0,e.isState)(t))throw TypeError(`Called introspectSinks without a Signal argument`);return t[k].liveConsumerNode?.map(e=>e.wrapper)??[]}t.introspectSinks=c;function l(t){if(!(0,e.isComputed)(t)&&!(0,e.isState)(t))throw TypeError(`Called hasSinks without a Signal argument`);let n=t[k].liveConsumerNode;return n?n.length>0:!1}t.hasSinks=l;function u(t){if(!(0,e.isComputed)(t)&&!(0,e.isWatcher)(t))throw TypeError(`Called hasSources without a Computed or Watcher argument`);let n=t[k].producerNode;return n?n.length>0:!1}t.hasSources=u;class d{constructor(e){St(this,r),St(this,i),yt(this,n);let t=Object.create(jt);t.wrapper=this,t.consumerMarkedDirty=e,t.consumerIsAlwaysLive=!0,t.consumerAllowSignalWrites=!1,t.producerNode=[],this[k]=t}watch(...t){if(!(0,e.isWatcher)(this))throw TypeError(`Called unwatch without Watcher receiver`);Ct(this,i,a).call(this,t);let n=this[k];n.dirty=!1;let r=Ot(n);for(let e of t)Mt(e[k]);Ot(r)}unwatch(...t){if(!(0,e.isWatcher)(this))throw TypeError(`Called unwatch without Watcher receiver`);Ct(this,i,a).call(this,t);let n=this[k];Wt(n);for(let e=n.producerNode.length-1;e>=0;e--)if(t.includes(n.producerNode[e].wrapper)){Ht(n.producerNode[e],n.producerIndexOfThis[e]);let t=n.producerNode.length-1;if(n.producerNode[e]=n.producerNode[t],n.producerIndexOfThis[e]=n.producerIndexOfThis[t],n.producerNode.length--,n.producerIndexOfThis.length--,n.nextProducerIndex--,e<n.producerNode.length){let t=n.producerIndexOfThis[e],r=n.producerNode[e];Gt(r),r.liveConsumerIndexOfThis[t]=e}}}getPending(){if(!(0,e.isWatcher)(this))throw TypeError(`Called getPending without Watcher receiver`);return this[k].producerNode.filter(e=>e.dirty).map(e=>e.wrapper)}}n=k,r=new WeakSet,i=new WeakSet,a=function(t){for(let n of t)if(!(0,e.isComputed)(n)&&!(0,e.isState)(n))throw TypeError(`Called watch/unwatch without a Computed or State argument`)},e.isWatcher=e=>xt(r,e),t.Watcher=d;function f(){return kt()?.wrapper}t.currentComputed=f,t.watched=Symbol(`watched`),t.unwatched=Symbol(`unwatched`)})(e.subtle||={})})(sn||={});var cn=Symbol(`SignalWatcherBrand`),ln=new FinalizationRegistry((({watcher:e,signal:t})=>{e.unwatch(t)})),un=new WeakMap;function dn(e){return!0===e[cn]?(console.warn(`SignalWatcher should not be applied to the same class more than once.`),e):class extends e{constructor(){super(...arguments),this._$St=new sn.State(0),this._$Si=!1,this._$So=!0,this._$Sh=new Set}_$Sl(){if(this._$Su!==void 0)return;this._$Sv=new sn.Computed((()=>{this._$St.get(),super.performUpdate()}));let e=this._$Su=new sn.subtle.Watcher((function(){let e=un.get(this);e!==void 0&&(!1===e._$Si&&e.requestUpdate(),this.watch())}));un.set(e,this),ln.register(this,{watcher:e,signal:this._$Sv}),e.watch(this._$Sv)}_$Sp(){this._$Su!==void 0&&(this._$Su.unwatch(this._$Sv),this._$Sv=void 0,this._$Su=void 0)}performUpdate(){this.isUpdatePending&&(this._$Sl(),this._$Si=!0,this._$St.set(this._$St.get()+1),this._$Si=!1,this._$Sv.get())}update(e){try{this._$So?(this._$So=!1,super.update(e)):this._$Sh.forEach((e=>e.commit()))}finally{this.isUpdatePending=!1,this._$Sh.clear()}}requestUpdate(e,t,n){this._$So=!0,super.requestUpdate(e,t,n)}connectedCallback(){super.connectedCallback(),this.requestUpdate()}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask((()=>{!1===this.isConnected&&this._$Sp()}))}_(e){this._$Sh.add(e);let t=this._$So;this.requestUpdate(),this._$So=t}m(e){this._$Sh.delete(e)}}}var fn={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},pn=e=>(...t)=>({_$litDirective$:e,values:t}),mn=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}},{I:hn}=Ue,gn=e=>e,_n=e=>e.strings===void 0,vn=()=>document.createComment(``),yn=(e,t,n)=>{let r=e._$AA.parentNode,i=t===void 0?e._$AB:t._$AA;if(n===void 0)n=new hn(r.insertBefore(vn(),i),r.insertBefore(vn(),i),e,e.options);else{let t=n._$AB.nextSibling,a=n._$AM,o=a!==e;if(o){let t;n._$AQ?.(e),n._$AM=e,n._$AP!==void 0&&(t=e._$AU)!==a._$AU&&n._$AP(t)}if(t!==i||o){let e=n._$AA;for(;e!==t;){let t=gn(e).nextSibling;gn(r).insertBefore(e,i),e=t}}}return n},bn=(e,t,n=e)=>(e._$AI(t,n),e),xn={},Sn=(e,t=xn)=>e._$AH=t,Cn=e=>e._$AH,wn=e=>{e._$AR(),e._$AA.remove()},Tn=(e,t)=>{let n=e._$AN;if(n===void 0)return!1;for(let e of n)e._$AO?.(t,!1),Tn(e,t);return!0},En=e=>{let t,n;do{if((t=e._$AM)===void 0)break;n=t._$AN,n.delete(e),e=t}while(n?.size===0)},Dn=e=>{for(let t;t=e._$AM;e=t){let n=t._$AN;if(n===void 0)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),An(t)}};function On(e){this._$AN===void 0?this._$AM=e:(En(this),this._$AM=e,Dn(this))}function kn(e,t=!1,n=0){let r=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(r))for(let e=n;e<r.length;e++)Tn(r[e],!1),En(r[e]);else r!=null&&(Tn(r,!1),En(r));else Tn(this,e)}var An=e=>{e.type==fn.CHILD&&(e._$AP??=kn,e._$AQ??=On)},jn=class extends mn{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,n){super._$AT(e,t,n),Dn(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(Tn(this,e),En(this))}setValue(e){if(_n(this._$Ct))this._$Ct._$AI(e,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}};sn.State,sn.Computed;var Mn=class extends Event{constructor(e,t,n,r){super(`context-request`,{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=t,this.callback=n,this.subscribe=r??!1}};function Nn(e){return e}var Pn=class{constructor(e,t,n,r){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(e,t)=>{this.unsubscribe&&(this.unsubscribe!==t&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=e,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(e,t)),this.unsubscribe=t},this.host=e,t.context!==void 0){let e=t;this.context=e.context,this.callback=e.callback,this.subscribe=e.subscribe??!1}else this.context=t,this.callback=n,this.subscribe=r??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&=(this.unsubscribe(),void 0)}dispatchRequest(){this.host.dispatchEvent(new Mn(this.context,this.host,this.t,this.subscribe))}},Fn=class{get value(){return this.o}set value(e){this.setValue(e)}setValue(e,t=!1){let n=t||!Object.is(e,this.o);this.o=e,n&&this.updateObservers()}constructor(e){this.subscriptions=new Map,this.updateObservers=()=>{for(let[e,{disposer:t}]of this.subscriptions)e(this.o,t)},e!==void 0&&(this.value=e)}addCallback(e,t,n){if(!n)return void e(this.value);this.subscriptions.has(e)||this.subscriptions.set(e,{disposer:()=>{this.subscriptions.delete(e)},consumerHost:t});let{disposer:r}=this.subscriptions.get(e);e(this.value,r)}clearCallbacks(){this.subscriptions.clear()}},In=class extends Event{constructor(e,t){super(`context-provider`,{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=t}},Ln=class extends Fn{constructor(e,t,n){super(t.context===void 0?n:t.initialValue),this.onContextRequest=e=>{if(e.context!==this.context)return;let t=e.contextTarget??e.composedPath()[0];t!==this.host&&(e.stopPropagation(),this.addCallback(e.callback,t,e.subscribe))},this.onProviderRequest=e=>{if(e.context!==this.context||(e.contextTarget??e.composedPath()[0])===this.host)return;let t=new Set;for(let[e,{consumerHost:n}]of this.subscriptions)t.has(e)||(t.add(e),n.dispatchEvent(new Mn(this.context,n,e,!0)));e.stopPropagation()},this.host=e,t.context===void 0?this.context=t:this.context=t.context,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener(`context-request`,this.onContextRequest),this.host.addEventListener(`context-provider`,this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new In(this.context,this.host))}};function Rn({context:e}){return(t,n)=>{let r=new WeakMap;if(typeof n==`object`)return{get(){return t.get.call(this)},set(e){return r.get(this).setValue(e),t.set.call(this,e)},init(t){return r.set(this,new Ln(this,{context:e,initialValue:t})),t}};{t.constructor.addInitializer((t=>{r.set(t,new Ln(t,{context:e}))}));let i=Object.getOwnPropertyDescriptor(t,n),a;if(i===void 0){let e=new WeakMap;a={get(){return e.get(this)},set(t){r.get(this).setValue(t),e.set(this,t)},configurable:!0,enumerable:!0}}else{let e=i.set;a={...i,set(t){r.get(this).setValue(t),e?.call(this,t)}}}Object.defineProperty(t,n,a);return}}}function zn({context:e,subscribe:t}){return(n,r)=>{typeof r==`object`?r.addInitializer((function(){new Pn(this,{context:e,callback:e=>{n.set.call(this,e)},subscribe:t})})):n.constructor.addInitializer((n=>{new Pn(n,{context:e,callback:e=>{n[r]=e},subscribe:t})}))}}function*Bn(e,t){if(e!==void 0){let n=0;for(let r of e)yield t(r,n++)}}var Vn=!1,Hn=new sn.subtle.Watcher(()=>{Vn||(Vn=!0,queueMicrotask(()=>{Vn=!1,Un()}))});function Un(){for(let e of Hn.getPending())e.get();Hn.watch()}function Wn(e){let t=new sn.Computed(()=>e());return Hn.watch(t),t.get(),()=>{Hn.unwatch(t)}}let Gn=Nn(`A2UITheme`);var Kn=`
495
- &:not([disabled]) {
496
- cursor: pointer;
497
- opacity: var(--opacity, 0);
498
- transition: opacity var(--speed, 0.2s) cubic-bezier(0, 0, 0.3, 1);
499
-
500
- &:hover,
501
- &:focus {
502
- opacity: 1;
503
- }
504
- }`;let qn=`
505
- ${Array(21).fill(0).map((e,t)=>`.behavior-ho-${t*5} {
506
- --opacity: ${t/20};
507
- ${Kn}
508
- }`).join(`
509
- `)}
510
-
511
- .behavior-o-s {
512
- overflow: scroll;
513
- }
514
-
515
- .behavior-o-a {
516
- overflow: auto;
517
- }
518
-
519
- .behavior-o-h {
520
- overflow: hidden;
521
- }
522
-
523
- .behavior-sw-n {
524
- scrollbar-width: none;
525
- }
526
- `,Jn=`
527
- ${Array(25).fill(0).map((e,t)=>`
528
- .border-bw-${t} { border-width: ${t}px; }
529
- .border-btw-${t} { border-top-width: ${t}px; }
530
- .border-bbw-${t} { border-bottom-width: ${t}px; }
531
- .border-blw-${t} { border-left-width: ${t}px; }
532
- .border-brw-${t} { border-right-width: ${t}px; }
533
-
534
- .border-ow-${t} { outline-width: ${t}px; }
535
- .border-br-${t} { border-radius: ${t*4}px; overflow: hidden;}`).join(`
536
- `)}
537
-
538
- .border-br-50pc {
539
- border-radius: 50%;
540
- }
541
-
542
- .border-bs-s {
543
- border-style: solid;
544
- }
545
- `,Yn=[0,5,10,15,20,25,30,35,40,50,60,70,80,90,95,98,99,100];function Xn(...e){let t={};for(let n of e)for(let[e,r]of Object.entries(n)){let n=e.split(`-`).with(-1,``).join(`-`),i=Object.keys(t).filter(e=>e.startsWith(n));for(let e of i)delete t[e];t[e]=r}return t}function Zn(e,t,...n){let r=structuredClone(e);for(let e of n)for(let n of Object.keys(e)){let e=n.split(`-`).with(-1,``).join(`-`);for(let[i,a]of Object.entries(r)){if(t.includes(i))continue;let r=!1;for(let t=0;t<a.length;t++)a[t].startsWith(e)&&(r=!0,a[t]=n);r||a.push(n)}}return r}function A(e){return e.startsWith(`nv`)?`--nv-${e.slice(2)}`:`--${e[0]}-${e.slice(1)}`}var Qn=e=>`
546
- ${e.map(e=>{let t=$n(e);return`.color-bc-${e} { border-color: light-dark(var(${A(e)}), var(${A(t)})); }`}).join(`
547
- `)}
548
-
549
- ${e.map(e=>{let t=$n(e),n=[`.color-bgc-${e} { background-color: light-dark(var(${A(e)}), var(${A(t)})); }`,`.color-bbgc-${e}::backdrop { background-color: light-dark(var(${A(e)}), var(${A(t)})); }`];for(let r=.1;r<1;r+=.1)n.push(`.color-bbgc-${e}_${(r*100).toFixed(0)}::backdrop {
550
- background-color: light-dark(oklch(from var(${A(e)}) l c h / calc(alpha * ${r.toFixed(1)})), oklch(from var(${A(t)}) l c h / calc(alpha * ${r.toFixed(1)})) );
551
- }
552
- `);return n.join(`
553
- `)}).join(`
554
- `)}
555
-
556
- ${e.map(e=>{let t=$n(e);return`.color-c-${e} { color: light-dark(var(${A(e)}), var(${A(t)})); }`}).join(`
557
- `)}
558
- `,$n=e=>{let t=e.match(/^([a-z]+)(\d+)$/);if(!t)return e;let[,n,r]=t,i=100-parseInt(r,10);return`${n}${Yn.reduce((e,t)=>Math.abs(t-i)<Math.abs(e-i)?t:e)}`},er=e=>Yn.map(t=>`${e}${t}`);let j=u([qn,Jn,[Qn(er(`p`)),Qn(er(`s`)),Qn(er(`t`)),Qn(er(`n`)),Qn(er(`nv`)),Qn(er(`e`)),`
559
- .color-bgc-transparent {
560
- background-color: transparent;
561
- }
562
-
563
- :host {
564
- color-scheme: var(--color-scheme);
565
- }
566
- `],`
567
- .g-icon {
568
- font-family: "Material Symbols Outlined", "Google Symbols";
569
- font-weight: normal;
570
- font-style: normal;
571
- font-display: optional;
572
- font-size: 20px;
573
- width: 1em;
574
- height: 1em;
575
- user-select: none;
576
- line-height: 1;
577
- letter-spacing: normal;
578
- text-transform: none;
579
- display: inline-block;
580
- white-space: nowrap;
581
- word-wrap: normal;
582
- direction: ltr;
583
- -webkit-font-feature-settings: "liga";
584
- -webkit-font-smoothing: antialiased;
585
- overflow: hidden;
586
-
587
- font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 48,
588
- "ROND" 100;
589
-
590
- &.filled {
591
- font-variation-settings: "FILL" 1, "wght" 300, "GRAD" 0, "opsz" 48,
592
- "ROND" 100;
593
- }
594
-
595
- &.filled-heavy {
596
- font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 48,
597
- "ROND" 100;
598
- }
599
- }
600
- `,`
601
- :host {
602
- ${Array(16).fill(0).map((e,t)=>`--g-${t+1}: ${(t+1)*4}px;`).join(`
603
- `)}
604
- }
605
-
606
- ${Array(49).fill(0).map((e,t)=>{let n=t-24,r=n<0?`n${Math.abs(n)}`:n.toString();return`
607
- .layout-p-${r} { --padding: ${n*4}px; padding: var(--padding); }
608
- .layout-pt-${r} { padding-top: ${n*4}px; }
609
- .layout-pr-${r} { padding-right: ${n*4}px; }
610
- .layout-pb-${r} { padding-bottom: ${n*4}px; }
611
- .layout-pl-${r} { padding-left: ${n*4}px; }
612
-
613
- .layout-m-${r} { --margin: ${n*4}px; margin: var(--margin); }
614
- .layout-mt-${r} { margin-top: ${n*4}px; }
615
- .layout-mr-${r} { margin-right: ${n*4}px; }
616
- .layout-mb-${r} { margin-bottom: ${n*4}px; }
617
- .layout-ml-${r} { margin-left: ${n*4}px; }
618
-
619
- .layout-t-${r} { top: ${n*4}px; }
620
- .layout-r-${r} { right: ${n*4}px; }
621
- .layout-b-${r} { bottom: ${n*4}px; }
622
- .layout-l-${r} { left: ${n*4}px; }`}).join(`
623
- `)}
624
-
625
- ${Array(25).fill(0).map((e,t)=>`
626
- .layout-g-${t} { gap: ${t*4}px; }`).join(`
627
- `)}
628
-
629
- ${Array(8).fill(0).map((e,t)=>`
630
- .layout-grd-col${t+1} { grid-template-columns: ${`1fr `.repeat(t+1).trim()}; }`).join(`
631
- `)}
632
-
633
- .layout-pos-a {
634
- position: absolute;
635
- }
636
-
637
- .layout-pos-rel {
638
- position: relative;
639
- }
640
-
641
- .layout-dsp-none {
642
- display: none;
643
- }
644
-
645
- .layout-dsp-block {
646
- display: block;
647
- }
648
-
649
- .layout-dsp-grid {
650
- display: grid;
651
- }
652
-
653
- .layout-dsp-iflex {
654
- display: inline-flex;
655
- }
656
-
657
- .layout-dsp-flexvert {
658
- display: flex;
659
- flex-direction: column;
660
- }
661
-
662
- .layout-dsp-flexhor {
663
- display: flex;
664
- flex-direction: row;
665
- }
666
-
667
- .layout-fw-w {
668
- flex-wrap: wrap;
669
- }
670
-
671
- .layout-al-fs {
672
- align-items: start;
673
- }
674
-
675
- .layout-al-fe {
676
- align-items: end;
677
- }
678
-
679
- .layout-al-c {
680
- align-items: center;
681
- }
682
-
683
- .layout-as-n {
684
- align-self: normal;
685
- }
686
-
687
- .layout-js-c {
688
- justify-self: center;
689
- }
690
-
691
- .layout-sp-c {
692
- justify-content: center;
693
- }
694
-
695
- .layout-sp-ev {
696
- justify-content: space-evenly;
697
- }
698
-
699
- .layout-sp-bt {
700
- justify-content: space-between;
701
- }
702
-
703
- .layout-sp-s {
704
- justify-content: start;
705
- }
706
-
707
- .layout-sp-e {
708
- justify-content: end;
709
- }
710
-
711
- .layout-ji-e {
712
- justify-items: end;
713
- }
714
-
715
- .layout-r-none {
716
- resize: none;
717
- }
718
-
719
- .layout-fs-c {
720
- field-sizing: content;
721
- }
722
-
723
- .layout-fs-n {
724
- field-sizing: none;
725
- }
726
-
727
- .layout-flx-0 {
728
- flex: 0 0 auto;
729
- }
730
-
731
- .layout-flx-1 {
732
- flex: 1 0 auto;
733
- }
734
-
735
- .layout-c-s {
736
- contain: strict;
737
- }
738
-
739
- /** Widths **/
740
-
741
- ${Array(10).fill(0).map((e,t)=>{let n=(t+1)*10;return`.layout-w-${n} { width: ${n}%; max-width: ${n}%; }`}).join(`
742
- `)}
743
-
744
- ${Array(16).fill(0).map((e,t)=>`.layout-wp-${t} { width: ${t*4}px; }`).join(`
745
- `)}
746
-
747
- /** Heights **/
748
-
749
- ${Array(10).fill(0).map((e,t)=>{let n=(t+1)*10;return`.layout-h-${n} { height: ${n}%; }`}).join(`
750
- `)}
751
-
752
- ${Array(16).fill(0).map((e,t)=>`.layout-hp-${t} { height: ${t*4}px; }`).join(`
753
- `)}
754
-
755
- .layout-el-cv {
756
- & img,
757
- & video {
758
- width: 100%;
759
- height: 100%;
760
- object-fit: cover;
761
- margin: 0;
762
- }
763
- }
764
-
765
- .layout-ar-sq {
766
- aspect-ratio: 1 / 1;
767
- }
768
-
769
- .layout-ex-fb {
770
- margin: calc(var(--padding) * -1) 0 0 calc(var(--padding) * -1);
771
- width: calc(100% + var(--padding) * 2);
772
- height: calc(100% + var(--padding) * 2);
773
- }
774
- `,`
775
- ${Array(21).fill(0).map((e,t)=>`.opacity-el-${t*5} { opacity: ${t/20}; }`).join(`
776
- `)}
777
- `,`
778
- :host {
779
- --default-font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
780
- --default-font-family-mono: "Courier New", Courier, monospace;
781
- }
782
-
783
- .typography-f-s {
784
- font-family: var(--font-family, var(--default-font-family));
785
- font-optical-sizing: auto;
786
- font-variation-settings: "slnt" 0, "wdth" 100, "GRAD" 0;
787
- }
788
-
789
- .typography-f-sf {
790
- font-family: var(--font-family-flex, var(--default-font-family));
791
- font-optical-sizing: auto;
792
- }
793
-
794
- .typography-f-c {
795
- font-family: var(--font-family-mono, var(--default-font-family));
796
- font-optical-sizing: auto;
797
- font-variation-settings: "slnt" 0, "wdth" 100, "GRAD" 0;
798
- }
799
-
800
- .typography-v-r {
801
- font-variation-settings: "slnt" 0, "wdth" 100, "GRAD" 0, "ROND" 100;
802
- }
803
-
804
- .typography-ta-s {
805
- text-align: start;
806
- }
807
-
808
- .typography-ta-c {
809
- text-align: center;
810
- }
811
-
812
- .typography-fs-n {
813
- font-style: normal;
814
- }
815
-
816
- .typography-fs-i {
817
- font-style: italic;
818
- }
819
-
820
- .typography-sz-ls {
821
- font-size: 11px;
822
- line-height: 16px;
823
- }
824
-
825
- .typography-sz-lm {
826
- font-size: 12px;
827
- line-height: 16px;
828
- }
829
-
830
- .typography-sz-ll {
831
- font-size: 14px;
832
- line-height: 20px;
833
- }
834
-
835
- .typography-sz-bs {
836
- font-size: 12px;
837
- line-height: 16px;
838
- }
839
-
840
- .typography-sz-bm {
841
- font-size: 14px;
842
- line-height: 20px;
843
- }
844
-
845
- .typography-sz-bl {
846
- font-size: 16px;
847
- line-height: 24px;
848
- }
849
-
850
- .typography-sz-ts {
851
- font-size: 14px;
852
- line-height: 20px;
853
- }
854
-
855
- .typography-sz-tm {
856
- font-size: 16px;
857
- line-height: 24px;
858
- }
859
-
860
- .typography-sz-tl {
861
- font-size: 22px;
862
- line-height: 28px;
863
- }
864
-
865
- .typography-sz-hs {
866
- font-size: 24px;
867
- line-height: 32px;
868
- }
869
-
870
- .typography-sz-hm {
871
- font-size: 28px;
872
- line-height: 36px;
873
- }
874
-
875
- .typography-sz-hl {
876
- font-size: 32px;
877
- line-height: 40px;
878
- }
879
-
880
- .typography-sz-ds {
881
- font-size: 36px;
882
- line-height: 44px;
883
- }
884
-
885
- .typography-sz-dm {
886
- font-size: 45px;
887
- line-height: 52px;
888
- }
889
-
890
- .typography-sz-dl {
891
- font-size: 57px;
892
- line-height: 64px;
893
- }
894
-
895
- .typography-ws-p {
896
- white-space: pre-line;
897
- }
898
-
899
- .typography-ws-nw {
900
- white-space: nowrap;
901
- }
902
-
903
- .typography-td-none {
904
- text-decoration: none;
905
- }
906
-
907
- /** Weights **/
908
-
909
- ${Array(9).fill(0).map((e,t)=>{let n=(t+1)*100;return`.typography-w-${n} { font-weight: ${n}; }`}).join(`
910
- `)}
911
- `].flat(1/0).join(`
912
- `)),tr=new class{constructor(){this.registry=new Map}register(e,t,n){if(!/^[a-zA-Z0-9]+$/.test(e))throw Error(`[Registry] Invalid typeName '${e}'. Must be alphanumeric.`);this.registry.set(e,t);let r=n||`a2ui-custom-${e.toLowerCase()}`,i=customElements.getName(t);if(i){if(i!==r)throw Error(`Component ${e} is already registered as ${i}, but requested as ${r}.`);return}customElements.get(r)||customElements.define(r,t)}get(e){return this.registry.get(e)}};var M=function(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0},N=function(e,t,n,r,i,a){function o(e){if(e!==void 0&&typeof e!=`function`)throw TypeError(`Function expected`);return e}for(var s=r.kind,c=s===`getter`?`get`:s===`setter`?`set`:`value`,l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,p=n.length-1;p>=0;p--){var m={};for(var h in r)m[h]=h===`access`?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(f)throw TypeError(`Cannot add initializers after decoration has completed`);a.push(o(e||null))};var g=(0,n[p])(s===`accessor`?{get:u.get,set:u.set}:u[c],m);if(s===`accessor`){if(g===void 0)continue;if(typeof g!=`object`||!g)throw TypeError(`Object expected`);(d=o(g.get))&&(u.get=d),(d=o(g.set))&&(u.set=d),(d=o(g.init))&&i.unshift(d)}else (d=o(g))&&(s===`field`?i.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0},P=(()=>{let e=[w(`a2ui-root`)],t,n=[],r,i=dn(C),a=[],o,s=[],c=[],l,u=[],f=[],p,m=[],h=[],g,_=[],v=[],y,ee=[],te=[],ne,re=[],ie=[],ae,oe=[],se=[],ce;var le=class extends i{static#e=r=this;static#t=(()=>{let d=typeof Symbol==`function`&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;o=[T()],l=[T()],p=[zn({context:Gn})],g=[T({attribute:!1})],y=[T({attribute:!1})],ne=[T()],ae=[T()],ce=[T()],N(this,null,o,{kind:`accessor`,name:`surfaceId`,static:!1,private:!1,access:{has:e=>`surfaceId`in e,get:e=>e.surfaceId,set:(e,t)=>{e.surfaceId=t}},metadata:d},s,c),N(this,null,l,{kind:`accessor`,name:`component`,static:!1,private:!1,access:{has:e=>`component`in e,get:e=>e.component,set:(e,t)=>{e.component=t}},metadata:d},u,f),N(this,null,p,{kind:`accessor`,name:`theme`,static:!1,private:!1,access:{has:e=>`theme`in e,get:e=>e.theme,set:(e,t)=>{e.theme=t}},metadata:d},m,h),N(this,null,g,{kind:`accessor`,name:`childComponents`,static:!1,private:!1,access:{has:e=>`childComponents`in e,get:e=>e.childComponents,set:(e,t)=>{e.childComponents=t}},metadata:d},_,v),N(this,null,y,{kind:`accessor`,name:`processor`,static:!1,private:!1,access:{has:e=>`processor`in e,get:e=>e.processor,set:(e,t)=>{e.processor=t}},metadata:d},ee,te),N(this,null,ne,{kind:`accessor`,name:`dataContextPath`,static:!1,private:!1,access:{has:e=>`dataContextPath`in e,get:e=>e.dataContextPath,set:(e,t)=>{e.dataContextPath=t}},metadata:d},re,ie),N(this,null,ae,{kind:`accessor`,name:`enableCustomElements`,static:!1,private:!1,access:{has:e=>`enableCustomElements`in e,get:e=>e.enableCustomElements,set:(e,t)=>{e.enableCustomElements=t}},metadata:d},oe,se),N(this,null,ce,{kind:`setter`,name:`weight`,static:!1,private:!1,access:{has:e=>`weight`in e,set:(e,t)=>{e.weight=t}},metadata:d},null,a),N(null,t={value:r},e,{kind:`class`,name:r.name,metadata:d},null,n),le=r=t.value,d&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d})})();#n=(M(this,a),M(this,s,null));get surfaceId(){return this.#n}set surfaceId(e){this.#n=e}#r=(M(this,c),M(this,u,null));get component(){return this.#r}set component(e){this.#r=e}#i=(M(this,f),M(this,m,void 0));get theme(){return this.#i}set theme(e){this.#i=e}#a=(M(this,h),M(this,_,null));get childComponents(){return this.#a}set childComponents(e){this.#a=e}#o=(M(this,v),M(this,ee,null));get processor(){return this.#o}set processor(e){this.#o=e}#s=(M(this,te),M(this,re,``));get dataContextPath(){return this.#s}set dataContextPath(e){this.#s=e}#c=(M(this,ie),M(this,oe,!1));get enableCustomElements(){return this.#c}set enableCustomElements(e){this.#c=e}set weight(e){this.#l=e,this.style.setProperty(`--weight`,`${e}`)}get weight(){return this.#l}#l=(M(this,se),1);static#u=this.styles=[j,d`
913
- :host {
914
- display: flex;
915
- flex-direction: column;
916
- gap: 8px;
917
- max-height: 80%;
918
- }
919
- `];#d=null;willUpdate(e){e.has(`childComponents`)&&(this.#d&&this.#d(),this.#d=Wn(()=>{let e=this.childComponents??null;Ge(this.renderComponentTree(e),this,{host:this})}))}disconnectedCallback(){super.disconnectedCallback(),this.#d&&this.#d()}renderComponentTree(e){return!e||!Array.isArray(e)?S:b` ${Bn(e,e=>{if(this.enableCustomElements){let t=tr.get(e.type)||customElements.get(e.type);if(t){let n=e,r=new t;r.id=n.id,n.slotName&&(r.slot=n.slotName),r.component=n,r.weight=n.weight??`initial`,r.processor=this.processor,r.surfaceId=this.surfaceId,r.dataContextPath=n.dataContextPath??`/`;for(let[t,n]of Object.entries(e.properties))r[t]=n;return b`${r}`}}switch(e.type){case`List`:{let t=e,n=t.properties.children;return b`<a2ui-list
920
- id=${t.id}
921
- slot=${t.slotName?t.slotName:S}
922
- .component=${t}
923
- .weight=${t.weight??`initial`}
924
- .direction=${t.properties.direction??`vertical`}
925
- .processor=${this.processor}
926
- .surfaceId=${this.surfaceId}
927
- .childComponents=${n}
928
- .enableCustomElements=${this.enableCustomElements}
929
- ></a2ui-list>`}case`Card`:{let t=e,n=t.properties.children;return!n&&t.properties.child&&(n=[t.properties.child]),b`<a2ui-card
930
- id=${t.id}
931
- slot=${t.slotName?t.slotName:S}
932
- .component=${t}
933
- .weight=${t.weight??`initial`}
934
- .processor=${this.processor}
935
- .surfaceId=${this.surfaceId}
936
- .childComponents=${n}
937
- .dataContextPath=${t.dataContextPath??``}
938
- .enableCustomElements=${this.enableCustomElements}
939
- ></a2ui-card>`}case`Column`:{let t=e;return b`<a2ui-column
940
- id=${t.id}
941
- slot=${t.slotName?t.slotName:S}
942
- .component=${t}
943
- .weight=${t.weight??`initial`}
944
- .processor=${this.processor}
945
- .surfaceId=${this.surfaceId}
946
- .childComponents=${t.properties.children??null}
947
- .dataContextPath=${t.dataContextPath??``}
948
- .alignment=${t.properties.alignment??`stretch`}
949
- .distribution=${t.properties.distribution??`start`}
950
- .enableCustomElements=${this.enableCustomElements}
951
- ></a2ui-column>`}case`Row`:{let t=e;return b`<a2ui-row
952
- id=${t.id}
953
- slot=${t.slotName?t.slotName:S}
954
- .component=${t}
955
- .weight=${t.weight??`initial`}
956
- .processor=${this.processor}
957
- .surfaceId=${this.surfaceId}
958
- .childComponents=${t.properties.children??null}
959
- .dataContextPath=${t.dataContextPath??``}
960
- .alignment=${t.properties.alignment??`stretch`}
961
- .distribution=${t.properties.distribution??`start`}
962
- .enableCustomElements=${this.enableCustomElements}
963
- ></a2ui-row>`}case`Image`:{let t=e;return b`<a2ui-image
964
- id=${t.id}
965
- slot=${t.slotName?t.slotName:S}
966
- .component=${t}
967
- .weight=${t.weight??`initial`}
968
- .processor=${this.processor}
969
- .surfaceId=${this.surfaceId}
970
- .url=${t.properties.url??null}
971
- .dataContextPath=${t.dataContextPath??``}
972
- .usageHint=${t.properties.usageHint}
973
- .fit=${t.properties.fit}
974
- .enableCustomElements=${this.enableCustomElements}
975
- ></a2ui-image>`}case`Icon`:{let t=e;return b`<a2ui-icon
976
- id=${t.id}
977
- slot=${t.slotName?t.slotName:S}
978
- .component=${t}
979
- .weight=${t.weight??`initial`}
980
- .processor=${this.processor}
981
- .surfaceId=${this.surfaceId}
982
- .name=${t.properties.name??null}
983
- .dataContextPath=${t.dataContextPath??``}
984
- .enableCustomElements=${this.enableCustomElements}
985
- ></a2ui-icon>`}case`AudioPlayer`:{let t=e;return b`<a2ui-audioplayer
986
- id=${t.id}
987
- slot=${t.slotName?t.slotName:S}
988
- .component=${t}
989
- .weight=${t.weight??`initial`}
990
- .processor=${this.processor}
991
- .surfaceId=${this.surfaceId}
992
- .url=${t.properties.url??null}
993
- .dataContextPath=${t.dataContextPath??``}
994
- .enableCustomElements=${this.enableCustomElements}
995
- ></a2ui-audioplayer>`}case`Button`:{let t=e;return b`<a2ui-button
996
- id=${t.id}
997
- slot=${t.slotName?t.slotName:S}
998
- .component=${t}
999
- .weight=${t.weight??`initial`}
1000
- .processor=${this.processor}
1001
- .surfaceId=${this.surfaceId}
1002
- .dataContextPath=${t.dataContextPath??``}
1003
- .action=${t.properties.action}
1004
- .childComponents=${[t.properties.child]}
1005
- .enableCustomElements=${this.enableCustomElements}
1006
- ></a2ui-button>`}case`Text`:{let t=e;return b`<a2ui-text
1007
- id=${t.id}
1008
- slot=${t.slotName?t.slotName:S}
1009
- .component=${t}
1010
- .weight=${t.weight??`initial`}
1011
- .model=${this.processor}
1012
- .surfaceId=${this.surfaceId}
1013
- .processor=${this.processor}
1014
- .dataContextPath=${t.dataContextPath}
1015
- .text=${t.properties.text}
1016
- .usageHint=${t.properties.usageHint}
1017
- .enableCustomElements=${this.enableCustomElements}
1018
- ></a2ui-text>`}case`CheckBox`:{let t=e;return b`<a2ui-checkbox
1019
- id=${t.id}
1020
- slot=${t.slotName?t.slotName:S}
1021
- .component=${t}
1022
- .weight=${t.weight??`initial`}
1023
- .processor=${this.processor}
1024
- .surfaceId=${this.surfaceId}
1025
- .dataContextPath=${t.dataContextPath??``}
1026
- .label=${t.properties.label}
1027
- .value=${t.properties.value}
1028
- .enableCustomElements=${this.enableCustomElements}
1029
- ></a2ui-checkbox>`}case`DateTimeInput`:{let t=e;return b`<a2ui-datetimeinput
1030
- id=${t.id}
1031
- slot=${t.slotName?t.slotName:S}
1032
- .component=${t}
1033
- .weight=${t.weight??`initial`}
1034
- .processor=${this.processor}
1035
- .surfaceId=${this.surfaceId}
1036
- .dataContextPath=${t.dataContextPath??``}
1037
- .enableDate=${t.properties.enableDate??!0}
1038
- .enableTime=${t.properties.enableTime??!0}
1039
- .outputFormat=${t.properties.outputFormat}
1040
- .value=${t.properties.value}
1041
- .enableCustomElements=${this.enableCustomElements}
1042
- ></a2ui-datetimeinput>`}case`Divider`:{let t=e;return b`<a2ui-divider
1043
- id=${t.id}
1044
- slot=${t.slotName?t.slotName:S}
1045
- .component=${t}
1046
- .weight=${t.weight??`initial`}
1047
- .processor=${this.processor}
1048
- .surfaceId=${this.surfaceId}
1049
- .dataContextPath=${t.dataContextPath}
1050
- .thickness=${t.properties.thickness}
1051
- .axis=${t.properties.axis}
1052
- .color=${t.properties.color}
1053
- .enableCustomElements=${this.enableCustomElements}
1054
- ></a2ui-divider>`}case`MultipleChoice`:{let t=e;return b`<a2ui-multiplechoice
1055
- id=${t.id}
1056
- slot=${t.slotName?t.slotName:S}
1057
- .component=${t}
1058
- .weight=${t.weight??`initial`}
1059
- .processor=${this.processor}
1060
- .surfaceId=${this.surfaceId}
1061
- .dataContextPath=${t.dataContextPath}
1062
- .options=${t.properties.options}
1063
- .maxAllowedSelections=${t.properties.maxAllowedSelections}
1064
- .selections=${t.properties.selections}
1065
- .enableCustomElements=${this.enableCustomElements}
1066
- ></a2ui-multiplechoice>`}case`Slider`:{let t=e;return b`<a2ui-slider
1067
- id=${t.id}
1068
- slot=${t.slotName?t.slotName:S}
1069
- .component=${t}
1070
- .weight=${t.weight??`initial`}
1071
- .processor=${this.processor}
1072
- .surfaceId=${this.surfaceId}
1073
- .dataContextPath=${t.dataContextPath}
1074
- .value=${t.properties.value}
1075
- .minValue=${t.properties.minValue}
1076
- .maxValue=${t.properties.maxValue}
1077
- .enableCustomElements=${this.enableCustomElements}
1078
- ></a2ui-slider>`}case`TextField`:{let t=e;return b`<a2ui-textfield
1079
- id=${t.id}
1080
- slot=${t.slotName?t.slotName:S}
1081
- .component=${t}
1082
- .weight=${t.weight??`initial`}
1083
- .processor=${this.processor}
1084
- .surfaceId=${this.surfaceId}
1085
- .dataContextPath=${t.dataContextPath}
1086
- .label=${t.properties.label}
1087
- .text=${t.properties.text}
1088
- .type=${t.properties.type}
1089
- .validationRegexp=${t.properties.validationRegexp}
1090
- .enableCustomElements=${this.enableCustomElements}
1091
- ></a2ui-textfield>`}case`Video`:{let t=e;return b`<a2ui-video
1092
- id=${t.id}
1093
- slot=${t.slotName?t.slotName:S}
1094
- .component=${t}
1095
- .weight=${t.weight??`initial`}
1096
- .processor=${this.processor}
1097
- .surfaceId=${this.surfaceId}
1098
- .dataContextPath=${t.dataContextPath}
1099
- .url=${t.properties.url}
1100
- .enableCustomElements=${this.enableCustomElements}
1101
- ></a2ui-video>`}case`Tabs`:{let t=e,n=[],r=[];if(t.properties.tabItems)for(let e of t.properties.tabItems)n.push(e.title),r.push(e.child);return b`<a2ui-tabs
1102
- id=${t.id}
1103
- slot=${t.slotName?t.slotName:S}
1104
- .component=${t}
1105
- .weight=${t.weight??`initial`}
1106
- .processor=${this.processor}
1107
- .surfaceId=${this.surfaceId}
1108
- .dataContextPath=${t.dataContextPath}
1109
- .titles=${n}
1110
- .childComponents=${r}
1111
- .enableCustomElements=${this.enableCustomElements}
1112
- ></a2ui-tabs>`}case`Modal`:{let t=e,n=[t.properties.entryPointChild,t.properties.contentChild];return t.properties.entryPointChild.slotName=`entry`,b`<a2ui-modal
1113
- id=${t.id}
1114
- slot=${t.slotName?t.slotName:S}
1115
- .component=${t}
1116
- .weight=${t.weight??`initial`}
1117
- .processor=${this.processor}
1118
- .surfaceId=${this.surfaceId}
1119
- .dataContextPath=${t.dataContextPath}
1120
- .childComponents=${n}
1121
- .enableCustomElements=${this.enableCustomElements}
1122
- ></a2ui-modal>`}default:return this.renderCustomComponent(e)}})}`}renderCustomComponent(e){if(!this.enableCustomElements)return;let t=e,n=tr.get(e.type)||customElements.get(e.type);if(!n)return b`Unknown element ${e.type}`;let r=new n;r.id=t.id,t.slotName&&(r.slot=t.slotName),r.component=t,r.weight=t.weight??`initial`,r.processor=this.processor,r.surfaceId=this.surfaceId,r.dataContextPath=t.dataContextPath??`/`;for(let[t,n]of Object.entries(e.properties))r[t]=n;return b`${r}`}render(){return b`<slot></slot>`}static#f=M(r,n)};return r})(),F=pn(class extends mn{constructor(e){if(super(e),e.type!==fn.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){for(let n in this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(` `).split(/\s/).filter(e=>e!==``))),t)t[n]&&!this.nt?.has(n)&&this.st.add(n);return this.render(t)}let n=e.element.classList;for(let e of this.st)e in t||(n.remove(e),this.st.delete(e));for(let e in t){let r=!!t[e];r===this.st.has(e)||this.nt?.has(e)||(r?(n.add(e),this.st.add(e)):(n.remove(e),this.st.delete(e)))}return x}});function nr(e,t){return e===`path`&&typeof t==`string`}function I(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function rr(e){return I(e)?`explicitList`in e||`template`in e:!1}function ir(e){return I(e)&&(`path`in e||`literal`in e&&typeof e.literal==`string`||`literalString`in e)}function ar(e){return I(e)&&(`path`in e||`literal`in e&&typeof e.literal==`number`||`literalNumber`in e)}function or(e){return I(e)&&(`path`in e||`literal`in e&&typeof e.literal==`boolean`||`literalBoolean`in e)}function sr(e){return!(!I(e)||!(`id`in e&&`type`in e&&`properties`in e))}function cr(e){return I(e)&&`url`in e&&ir(e.url)}function lr(e){return I(e)&&`child`in e&&sr(e.child)&&`action`in e}function ur(e){return I(e)?`child`in e?sr(e.child):`children`in e?Array.isArray(e.children)&&e.children.every(sr):!1:!1}function dr(e){return I(e)&&`label`in e&&ir(e.label)&&`value`in e&&or(e.value)}function fr(e){return I(e)&&`children`in e&&Array.isArray(e.children)&&e.children.every(sr)}function pr(e){return I(e)&&`value`in e&&ir(e.value)}function mr(e){return I(e)}function hr(e){return I(e)&&`url`in e&&ir(e.url)}function gr(e){return I(e)&&`name`in e&&ir(e.name)}function _r(e){return I(e)&&`children`in e&&Array.isArray(e.children)&&e.children.every(sr)}function vr(e){return I(e)&&`entryPointChild`in e&&sr(e.entryPointChild)&&`contentChild`in e&&sr(e.contentChild)}function yr(e){return I(e)&&`selections`in e}function br(e){return I(e)&&`children`in e&&Array.isArray(e.children)&&e.children.every(sr)}function xr(e){return I(e)&&`value`in e&&ar(e.value)}function Sr(e){return I(e)&&`title`in e&&ir(e.title)&&`child`in e&&sr(e.child)}function Cr(e){return I(e)&&`tabItems`in e&&Array.isArray(e.tabItems)&&e.tabItems.every(Sr)}function wr(e){return I(e)&&`text`in e&&ir(e.text)}function Tr(e){return I(e)&&`label`in e&&ir(e.label)}function Er(e){return I(e)&&`url`in e&&ir(e.url)}var L=class e{static#e=this.DEFAULT_SURFACE_ID=`@default`;#t=Map;#n=Array;#r=Set;#i=Object;#a;constructor(e={mapCtor:Map,arrayCtor:Array,setCtor:Set,objCtor:Object}){this.opts=e,this.#n=e.arrayCtor,this.#t=e.mapCtor,this.#r=e.setCtor,this.#i=e.objCtor,this.#a=new e.mapCtor}getSurfaces(){return this.#a}clearSurfaces(){this.#a.clear()}processMessages(e){for(let t of e)t.beginRendering&&this.#f(t.beginRendering,t.beginRendering.surfaceId),t.surfaceUpdate&&this.#p(t.surfaceUpdate,t.surfaceUpdate.surfaceId),t.dataModelUpdate&&this.#m(t.dataModelUpdate,t.dataModelUpdate.surfaceId),t.deleteSurface&&this.#h(t.deleteSurface)}getData(t,n,r=e.DEFAULT_SURFACE_ID){let i=this.#d(r);if(!i)return null;let a;return a=n===`.`||n===``?t.dataContextPath??`/`:this.resolvePath(n,t.dataContextPath),this.#u(i.dataModel,a)}setData(t,n,r,i=e.DEFAULT_SURFACE_ID){if(!t){console.warn(`No component node set`);return}let a=this.#d(i);if(!a)return;let o;o=n===`.`||n===``?t.dataContextPath??`/`:this.resolvePath(n,t.dataContextPath),this.#c(a.dataModel,o,r)}resolvePath(e,t){return e.startsWith(`/`)?e:t&&t!==`/`?t.endsWith(`/`)?`${t}${e}`:`${t}/${e}`:`/${e}`}#o(e){if(typeof e!=`string`)return e;let t=e.trim();if(t.startsWith(`{`)&&t.endsWith(`}`)||t.startsWith(`[`)&&t.endsWith(`]`))try{return JSON.parse(e)}catch(t){return console.warn(`Failed to parse potential JSON string: "${e.substring(0,50)}..."`,t),e}return e}#s(e){let t=new this.#t;for(let n of e){if(!I(n)||!(`key`in n))continue;let e=n.key,r=this.#_(n);if(!r)continue;let i=n[r];r===`valueMap`&&Array.isArray(i)?i=this.#s(i):typeof i==`string`&&(i=this.#o(i)),this.#c(t,e,i)}return t}#c(e,t,n){if(Array.isArray(n)&&(n.length===0||I(n[0])&&`key`in n[0]))if(n.length===1&&I(n[0])&&n[0].key===`.`){let e=n[0],t=this.#_(e);t?(n=e[t],t===`valueMap`&&Array.isArray(n)?n=this.#s(n):typeof n==`string`&&(n=this.#o(n))):n=this.#s(n)}else n=this.#s(n);let r=this.#l(t).split(`/`).filter(e=>e);if(r.length===0){if(n instanceof Map||I(n)){!(n instanceof Map)&&I(n)&&(n=new this.#t(Object.entries(n))),e.clear();for(let[t,r]of n.entries())e.set(t,r)}else console.error(`Cannot set root of DataModel to a non-Map value.`);return}let i=e;for(let e=0;e<r.length-1;e++){let t=r[e],n;i instanceof Map?n=i.get(t):Array.isArray(i)&&/^\d+$/.test(t)&&(n=i[parseInt(t,10)]),(n===void 0||typeof n!=`object`||!n)&&(n=new this.#t,i instanceof this.#t?i.set(t,n):Array.isArray(i)&&(i[parseInt(t,10)]=n)),i=n}let a=r[r.length-1],o=n;i instanceof this.#t?i.set(a,o):Array.isArray(i)&&/^\d+$/.test(a)&&(i[parseInt(a,10)]=o)}#l(e){return`/`+e.replace(/\[(\d+)\]/g,`.$1`).split(`.`).filter(e=>e.length>0).join(`/`)}#u(e,t){let n=this.#l(t).split(`/`).filter(e=>e),r=e;for(let e of n){if(r==null)return null;if(r instanceof Map)r=r.get(e);else if(Array.isArray(r)&&/^\d+$/.test(e))r=r[parseInt(e,10)];else if(I(r))r=r[e];else return null}return r}#d(e){let t=this.#a.get(e);return t||(t=new this.#i({rootComponentId:null,componentTree:null,dataModel:new this.#t,components:new this.#t,styles:new this.#i}),this.#a.set(e,t)),t}#f(e,t){let n=this.#d(t);n.rootComponentId=e.root,n.styles=e.styles??{},this.#g(n)}#p(e,t){let n=this.#d(t);for(let t of e.components)n.components.set(t.id,t);this.#g(n)}#m(e,t){let n=this.#d(t),r=e.path??`/`;this.#c(n.dataModel,r,e.contents),this.#g(n)}#h(e){this.#a.delete(e.surfaceId)}#g(e){if(!e.rootComponentId){e.componentTree=null;return}let t=new this.#r;e.componentTree=this.#v(e.rootComponentId,e,t,`/`,``)}#_(e){return Object.keys(e).find(e=>e.startsWith(`value`))}#v(e,t,n,r,i=``){let a=`${e}${i}`,{components:o}=t;if(!o.has(e))return null;if(n.has(a))throw Error(`Circular dependency for component "${a}".`);n.add(a);let s=o.get(e),c=s.component??{},l=Object.keys(c)[0],u=c[l],d=new this.#i;if(I(u))for(let[e,a]of Object.entries(u))d[e]=this.#y(a,t,n,r,i);n.delete(a);let f={id:a,dataContextPath:r,weight:s.weight??`initial`};switch(l){case`Text`:if(!wr(d))throw Error(`Invalid data; expected ${l}`);return new this.#i({...f,type:`Text`,properties:d});case`Image`:if(!hr(d))throw Error(`Invalid data; expected ${l}`);return new this.#i({...f,type:`Image`,properties:d});case`Icon`:if(!gr(d))throw Error(`Invalid data; expected ${l}`);return new this.#i({...f,type:`Icon`,properties:d});case`Video`:if(!Er(d))throw Error(`Invalid data; expected ${l}`);return new this.#i({...f,type:`Video`,properties:d});case`AudioPlayer`:if(!cr(d))throw Error(`Invalid data; expected ${l}`);return new this.#i({...f,type:`AudioPlayer`,properties:d});case`Row`:if(!br(d))throw Error(`Invalid data; expected ${l}`);return new this.#i({...f,type:`Row`,properties:d});case`Column`:if(!fr(d))throw Error(`Invalid data; expected ${l}`);return new this.#i({...f,type:`Column`,properties:d});case`List`:if(!_r(d))throw Error(`Invalid data; expected ${l}`);return new this.#i({...f,type:`List`,properties:d});case`Card`:if(!ur(d))throw Error(`Invalid data; expected ${l}`);return new this.#i({...f,type:`Card`,properties:d});case`Tabs`:if(!Cr(d))throw Error(`Invalid data; expected ${l}`);return new this.#i({...f,type:`Tabs`,properties:d});case`Divider`:if(!mr(d))throw Error(`Invalid data; expected ${l}`);return new this.#i({...f,type:`Divider`,properties:d});case`Modal`:if(!vr(d))throw Error(`Invalid data; expected ${l}`);return new this.#i({...f,type:`Modal`,properties:d});case`Button`:if(!lr(d))throw Error(`Invalid data; expected ${l}`);return new this.#i({...f,type:`Button`,properties:d});case`CheckBox`:if(!dr(d))throw Error(`Invalid data; expected ${l}`);return new this.#i({...f,type:`CheckBox`,properties:d});case`TextField`:if(!Tr(d))throw Error(`Invalid data; expected ${l}`);return new this.#i({...f,type:`TextField`,properties:d});case`DateTimeInput`:if(!pr(d))throw Error(`Invalid data; expected ${l}`);return new this.#i({...f,type:`DateTimeInput`,properties:d});case`MultipleChoice`:if(!yr(d))throw Error(`Invalid data; expected ${l}`);return new this.#i({...f,type:`MultipleChoice`,properties:d});case`Slider`:if(!xr(d))throw Error(`Invalid data; expected ${l}`);return new this.#i({...f,type:`Slider`,properties:d});default:return new this.#i({...f,type:l,properties:d})}}#y(e,t,n,r,i=``){if(typeof e==`string`&&t.components.has(e))return this.#v(e,t,n,r,i);if(rr(e)){if(e.explicitList)return e.explicitList.map(e=>this.#v(e,t,n,r,i));if(e.template){let i=this.resolvePath(e.template.dataBinding,r),a=this.#u(t.dataModel,i),o=e.template;return Array.isArray(a)?a.map((e,a)=>{let s=`:${[...r.split(`/`).filter(e=>/^\d+$/.test(e)),a].join(`:`)}`,c=`${i}/${a}`;return this.#v(o.componentId,t,n,c,s)}):a instanceof this.#t?Array.from(a.keys(),e=>{let r=`:${e}`,a=`${i}/${e}`;return this.#v(o.componentId,t,n,a,r)}):new this.#n}}if(Array.isArray(e))return e.map(e=>this.#y(e,t,n,r,i));if(I(e)){let a=new this.#i;for(let[o,s]of Object.entries(e)){let e=s;if(nr(o,s)&&r!==`/`){e=s.replace(/^\.?\/item/,``).replace(/^\.?\/text/,``).replace(/^\.?\/label/,``).replace(/^\.?\//,``),a[o]=e;continue}a[o]=this.#y(e,t,n,r,i)}return a}return e}},Dr=`important`,Or=` !`+Dr,R=pn(class extends mn{constructor(e){if(super(e),e.type!==fn.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,n)=>{let r=e[n];return r==null?t:t+`${n=n.includes(`-`)?n:n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,`-$&`).toLowerCase()}:${r};`},``)}update(e,[t]){let{style:n}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let e of this.ft)t[e]??(this.ft.delete(e),e.includes(`-`)?n.removeProperty(e):n[e]=null);for(let e in t){let r=t[e];if(r!=null){this.ft.add(e);let t=typeof r==`string`&&r.endsWith(Or);e.includes(`-`)||t?n.setProperty(e,t?r.slice(0,-11):r,t?Dr:``):n[e]=r}}return x}}),kr=function(e,t,n,r,i,a){function o(e){if(e!==void 0&&typeof e!=`function`)throw TypeError(`Function expected`);return e}for(var s=r.kind,c=s===`getter`?`get`:s===`setter`?`set`:`value`,l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,p=n.length-1;p>=0;p--){var m={};for(var h in r)m[h]=h===`access`?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(f)throw TypeError(`Cannot add initializers after decoration has completed`);a.push(o(e||null))};var g=(0,n[p])(s===`accessor`?{get:u.get,set:u.set}:u[c],m);if(s===`accessor`){if(g===void 0)continue;if(typeof g!=`object`||!g)throw TypeError(`Object expected`);(d=o(g.get))&&(u.get=d),(d=o(g.set))&&(u.set=d),(d=o(g.init))&&i.unshift(d)}else (d=o(g))&&(s===`field`?i.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0},Ar=function(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0};(()=>{let e=[w(`a2ui-audioplayer`)],t,n=[],r,i=P,a,o=[],s=[];var c=class extends i{static#e=r=this;static#t=(()=>{let l=typeof Symbol==`function`&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;a=[T()],kr(this,null,a,{kind:`accessor`,name:`url`,static:!1,private:!1,access:{has:e=>`url`in e,get:e=>e.url,set:(e,t)=>{e.url=t}},metadata:l},o,s),kr(null,t={value:r},e,{kind:`class`,name:r.name,metadata:l},null,n),c=r=t.value,l&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:l})})();#n=Ar(this,o,null);get url(){return this.#n}set url(e){this.#n=e}static#r=this.styles=[j,d`
1123
- * {
1124
- box-sizing: border-box;
1125
- }
1126
-
1127
- :host {
1128
- display: block;
1129
- flex: var(--weight);
1130
- min-height: 0;
1131
- overflow: auto;
1132
- }
1133
-
1134
- audio {
1135
- display: block;
1136
- width: 100%;
1137
- }
1138
- `];#i(){if(!this.url)return S;if(this.url&&typeof this.url==`object`){if(`literalString`in this.url)return b`<audio controls src=${this.url.literalString} />`;if(`literal`in this.url)return b`<audio controls src=${this.url.literal} />`;if(this.url&&`path`in this.url&&this.url.path){if(!this.processor||!this.component)return b`(no processor)`;let e=this.processor.getData(this.component,this.url.path,this.surfaceId??L.DEFAULT_SURFACE_ID);return!e||typeof e!=`string`?b`Invalid audio URL`:b`<audio controls src=${e} />`}}return b`(empty)`}render(){return b`<section
1139
- class=${F(this.theme.components.AudioPlayer)}
1140
- style=${this.theme.additionalStyles?.AudioPlayer?R(this.theme.additionalStyles?.AudioPlayer):S}
1141
- >
1142
- ${this.#i()}
1143
- </section>`}constructor(){super(...arguments),Ar(this,s)}static#a=Ar(r,n)};return r})();var jr={bubbles:!0,cancelable:!0,composed:!0},Mr=class e extends CustomEvent{static#e=this.eventName=`a2uiaction`;constructor(t){super(e.eventName,{detail:t,...jr}),this.payload=t}},Nr=function(e,t,n,r,i,a){function o(e){if(e!==void 0&&typeof e!=`function`)throw TypeError(`Function expected`);return e}for(var s=r.kind,c=s===`getter`?`get`:s===`setter`?`set`:`value`,l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,p=n.length-1;p>=0;p--){var m={};for(var h in r)m[h]=h===`access`?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(f)throw TypeError(`Cannot add initializers after decoration has completed`);a.push(o(e||null))};var g=(0,n[p])(s===`accessor`?{get:u.get,set:u.set}:u[c],m);if(s===`accessor`){if(g===void 0)continue;if(typeof g!=`object`||!g)throw TypeError(`Object expected`);(d=o(g.get))&&(u.get=d),(d=o(g.set))&&(u.set=d),(d=o(g.init))&&i.unshift(d)}else (d=o(g))&&(s===`field`?i.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0},Pr=function(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0};(()=>{let e=[w(`a2ui-button`)],t,n=[],r,i=P,a,o=[],s=[];var c=class extends i{static#e=r=this;static#t=(()=>{let l=typeof Symbol==`function`&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;a=[T()],Nr(this,null,a,{kind:`accessor`,name:`action`,static:!1,private:!1,access:{has:e=>`action`in e,get:e=>e.action,set:(e,t)=>{e.action=t}},metadata:l},o,s),Nr(null,t={value:r},e,{kind:`class`,name:r.name,metadata:l},null,n),c=r=t.value,l&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:l})})();#n=Pr(this,o,null);get action(){return this.#n}set action(e){this.#n=e}static#r=this.styles=[j,d`
1144
- :host {
1145
- display: block;
1146
- flex: var(--weight);
1147
- min-height: 0;
1148
- }
1149
- `];render(){return b`<button
1150
- class=${F(this.theme.components.Button)}
1151
- style=${this.theme.additionalStyles?.Button?R(this.theme.additionalStyles?.Button):S}
1152
- @click=${()=>{if(!this.action)return;let e=new Mr({eventType:`a2ui.action`,action:this.action,dataContextPath:this.dataContextPath,sourceComponentId:this.id,sourceComponent:this.component});this.dispatchEvent(e)}}
1153
- >
1154
- <slot></slot>
1155
- </button>`}constructor(){super(...arguments),Pr(this,s)}static#i=Pr(r,n)};return r})();var Fr=function(e,t,n,r,i,a){function o(e){if(e!==void 0&&typeof e!=`function`)throw TypeError(`Function expected`);return e}for(var s=r.kind,c=s===`getter`?`get`:s===`setter`?`set`:`value`,l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,p=n.length-1;p>=0;p--){var m={};for(var h in r)m[h]=h===`access`?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(f)throw TypeError(`Cannot add initializers after decoration has completed`);a.push(o(e||null))};var g=(0,n[p])(s===`accessor`?{get:u.get,set:u.set}:u[c],m);if(s===`accessor`){if(g===void 0)continue;if(typeof g!=`object`||!g)throw TypeError(`Object expected`);(d=o(g.get))&&(u.get=d),(d=o(g.set))&&(u.set=d),(d=o(g.init))&&i.unshift(d)}else (d=o(g))&&(s===`field`?i.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0},Ir=function(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0};(()=>{let e=[w(`a2ui-card`)],t,n=[],r,i=P;var a=class extends i{static#e=r=this;static#t=(()=>{let o=typeof Symbol==`function`&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;Fr(null,t={value:r},e,{kind:`class`,name:r.name,metadata:o},null,n),a=r=t.value,o&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:o})})();static#n=this.styles=[j,d`
1156
- * {
1157
- box-sizing: border-box;
1158
- }
1159
-
1160
- :host {
1161
- display: block;
1162
- flex: var(--weight);
1163
- min-height: 0;
1164
- overflow: auto;
1165
- }
1166
-
1167
- section {
1168
- height: 100%;
1169
- width: 100%;
1170
- min-height: 0;
1171
- overflow: auto;
1172
-
1173
- ::slotted(*) {
1174
- height: 100%;
1175
- width: 100%;
1176
- }
1177
- }
1178
- `];render(){return b` <section
1179
- class=${F(this.theme.components.Card)}
1180
- style=${this.theme.additionalStyles?.Card?R(this.theme.additionalStyles?.Card):S}
1181
- >
1182
- <slot></slot>
1183
- </section>`}static#r=Ir(r,n)};return r})();var Lr=function(e,t,n,r,i,a){function o(e){if(e!==void 0&&typeof e!=`function`)throw TypeError(`Function expected`);return e}for(var s=r.kind,c=s===`getter`?`get`:s===`setter`?`set`:`value`,l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,p=n.length-1;p>=0;p--){var m={};for(var h in r)m[h]=h===`access`?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(f)throw TypeError(`Cannot add initializers after decoration has completed`);a.push(o(e||null))};var g=(0,n[p])(s===`accessor`?{get:u.get,set:u.set}:u[c],m);if(s===`accessor`){if(g===void 0)continue;if(typeof g!=`object`||!g)throw TypeError(`Object expected`);(d=o(g.get))&&(u.get=d),(d=o(g.set))&&(u.set=d),(d=o(g.init))&&i.unshift(d)}else (d=o(g))&&(s===`field`?i.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0},Rr=function(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0};(()=>{let e=[w(`a2ui-checkbox`)],t,n=[],r,i=P,a,o=[],s=[],c,l=[],u=[];var f=class extends i{static#e=r=this;static#t=(()=>{let d=typeof Symbol==`function`&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;a=[T()],c=[T()],Lr(this,null,a,{kind:`accessor`,name:`value`,static:!1,private:!1,access:{has:e=>`value`in e,get:e=>e.value,set:(e,t)=>{e.value=t}},metadata:d},o,s),Lr(this,null,c,{kind:`accessor`,name:`label`,static:!1,private:!1,access:{has:e=>`label`in e,get:e=>e.label,set:(e,t)=>{e.label=t}},metadata:d},l,u),Lr(null,t={value:r},e,{kind:`class`,name:r.name,metadata:d},null,n),f=r=t.value,d&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d})})();#n=Rr(this,o,null);get value(){return this.#n}set value(e){this.#n=e}#r=(Rr(this,s),Rr(this,l,null));get label(){return this.#r}set label(e){this.#r=e}static#i=this.styles=[j,d`
1184
- * {
1185
- box-sizing: border-box;
1186
- }
1187
-
1188
- :host {
1189
- display: block;
1190
- flex: var(--weight);
1191
- min-height: 0;
1192
- overflow: auto;
1193
- }
1194
-
1195
- input {
1196
- display: block;
1197
- width: 100%;
1198
- }
1199
-
1200
- .description {
1201
- font-size: 14px;
1202
- margin-bottom: 4px;
1203
- }
1204
- `];#a(e){!this.value||!this.processor||`path`in this.value&&this.value.path&&this.processor.setData(this.component,this.value.path,e,this.surfaceId??L.DEFAULT_SURFACE_ID)}#o(e){return b` <section
1205
- class=${F(this.theme.components.CheckBox.container)}
1206
- style=${this.theme.additionalStyles?.CheckBox?R(this.theme.additionalStyles?.CheckBox):S}
1207
- >
1208
- <input
1209
- class=${F(this.theme.components.CheckBox.element)}
1210
- autocomplete="off"
1211
- @input=${e=>{e.target instanceof HTMLInputElement&&this.#a(e.target.value)}}
1212
- id="data"
1213
- type="checkbox"
1214
- .value=${e}
1215
- />
1216
- <label class=${F(this.theme.components.CheckBox.label)} for="data"
1217
- >${this.label?.literalString}</label
1218
- >
1219
- </section>`}render(){if(this.value&&typeof this.value==`object`){if(`literalBoolean`in this.value&&this.value.literalBoolean)return this.#o(this.value.literalBoolean);if(`literal`in this.value&&this.value.literal!==void 0)return this.#o(this.value.literal);if(this.value&&`path`in this.value&&this.value.path){if(!this.processor||!this.component)return b`(no model)`;let e=this.processor.getData(this.component,this.value.path,this.surfaceId??L.DEFAULT_SURFACE_ID);return e===null||typeof e!=`boolean`?b`Invalid label`:this.#o(e)}}return S}constructor(){super(...arguments),Rr(this,u)}static#s=Rr(r,n)};return r})();var zr=function(e,t,n,r,i,a){function o(e){if(e!==void 0&&typeof e!=`function`)throw TypeError(`Function expected`);return e}for(var s=r.kind,c=s===`getter`?`get`:s===`setter`?`set`:`value`,l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,p=n.length-1;p>=0;p--){var m={};for(var h in r)m[h]=h===`access`?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(f)throw TypeError(`Cannot add initializers after decoration has completed`);a.push(o(e||null))};var g=(0,n[p])(s===`accessor`?{get:u.get,set:u.set}:u[c],m);if(s===`accessor`){if(g===void 0)continue;if(typeof g!=`object`||!g)throw TypeError(`Object expected`);(d=o(g.get))&&(u.get=d),(d=o(g.set))&&(u.set=d),(d=o(g.init))&&i.unshift(d)}else (d=o(g))&&(s===`field`?i.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0},Br=function(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0};(()=>{let e=[w(`a2ui-column`)],t,n=[],r,i=P,a,o=[],s=[],c,l=[],u=[];var f=class extends i{static#e=r=this;static#t=(()=>{let d=typeof Symbol==`function`&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;a=[T({reflect:!0,type:String})],c=[T({reflect:!0,type:String})],zr(this,null,a,{kind:`accessor`,name:`alignment`,static:!1,private:!1,access:{has:e=>`alignment`in e,get:e=>e.alignment,set:(e,t)=>{e.alignment=t}},metadata:d},o,s),zr(this,null,c,{kind:`accessor`,name:`distribution`,static:!1,private:!1,access:{has:e=>`distribution`in e,get:e=>e.distribution,set:(e,t)=>{e.distribution=t}},metadata:d},l,u),zr(null,t={value:r},e,{kind:`class`,name:r.name,metadata:d},null,n),f=r=t.value,d&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d})})();#n=Br(this,o,`stretch`);get alignment(){return this.#n}set alignment(e){this.#n=e}#r=(Br(this,s),Br(this,l,`start`));get distribution(){return this.#r}set distribution(e){this.#r=e}static#i=this.styles=[j,d`
1220
- * {
1221
- box-sizing: border-box;
1222
- }
1223
-
1224
- :host {
1225
- display: flex;
1226
- flex: var(--weight);
1227
- }
1228
-
1229
- section {
1230
- display: flex;
1231
- flex-direction: column;
1232
- min-width: 100%;
1233
- height: 100%;
1234
- }
1235
-
1236
- :host([alignment="start"]) section {
1237
- align-items: start;
1238
- }
1239
-
1240
- :host([alignment="center"]) section {
1241
- align-items: center;
1242
- }
1243
-
1244
- :host([alignment="end"]) section {
1245
- align-items: end;
1246
- }
1247
-
1248
- :host([alignment="stretch"]) section {
1249
- align-items: stretch;
1250
- }
1251
-
1252
- :host([distribution="start"]) section {
1253
- justify-content: start;
1254
- }
1255
-
1256
- :host([distribution="center"]) section {
1257
- justify-content: center;
1258
- }
1259
-
1260
- :host([distribution="end"]) section {
1261
- justify-content: end;
1262
- }
1263
-
1264
- :host([distribution="spaceBetween"]) section {
1265
- justify-content: space-between;
1266
- }
1267
-
1268
- :host([distribution="spaceAround"]) section {
1269
- justify-content: space-around;
1270
- }
1271
-
1272
- :host([distribution="spaceEvenly"]) section {
1273
- justify-content: space-evenly;
1274
- }
1275
- `];render(){return b`<section
1276
- class=${F(this.theme.components.Column)}
1277
- style=${this.theme.additionalStyles?.Column?R(this.theme.additionalStyles?.Column):S}
1278
- >
1279
- <slot></slot>
1280
- </section>`}constructor(){super(...arguments),Br(this,u)}static#a=Br(r,n)};return r})();var Vr=function(e,t,n,r,i,a){function o(e){if(e!==void 0&&typeof e!=`function`)throw TypeError(`Function expected`);return e}for(var s=r.kind,c=s===`getter`?`get`:s===`setter`?`set`:`value`,l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,p=n.length-1;p>=0;p--){var m={};for(var h in r)m[h]=h===`access`?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(f)throw TypeError(`Cannot add initializers after decoration has completed`);a.push(o(e||null))};var g=(0,n[p])(s===`accessor`?{get:u.get,set:u.set}:u[c],m);if(s===`accessor`){if(g===void 0)continue;if(typeof g!=`object`||!g)throw TypeError(`Object expected`);(d=o(g.get))&&(u.get=d),(d=o(g.set))&&(u.set=d),(d=o(g.init))&&i.unshift(d)}else (d=o(g))&&(s===`field`?i.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0},Hr=function(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0};(()=>{let e=[w(`a2ui-datetimeinput`)],t,n=[],r,i=P,a,o=[],s=[],c,l=[],u=[],f,p=[],m=[],h,g=[],_=[];var v=class extends i{static#e=r=this;static#t=(()=>{let d=typeof Symbol==`function`&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;a=[T()],c=[T()],f=[T({reflect:!1,type:Boolean})],h=[T({reflect:!1,type:Boolean})],Vr(this,null,a,{kind:`accessor`,name:`value`,static:!1,private:!1,access:{has:e=>`value`in e,get:e=>e.value,set:(e,t)=>{e.value=t}},metadata:d},o,s),Vr(this,null,c,{kind:`accessor`,name:`label`,static:!1,private:!1,access:{has:e=>`label`in e,get:e=>e.label,set:(e,t)=>{e.label=t}},metadata:d},l,u),Vr(this,null,f,{kind:`accessor`,name:`enableDate`,static:!1,private:!1,access:{has:e=>`enableDate`in e,get:e=>e.enableDate,set:(e,t)=>{e.enableDate=t}},metadata:d},p,m),Vr(this,null,h,{kind:`accessor`,name:`enableTime`,static:!1,private:!1,access:{has:e=>`enableTime`in e,get:e=>e.enableTime,set:(e,t)=>{e.enableTime=t}},metadata:d},g,_),Vr(null,t={value:r},e,{kind:`class`,name:r.name,metadata:d},null,n),v=r=t.value,d&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d})})();#n=Hr(this,o,null);get value(){return this.#n}set value(e){this.#n=e}#r=(Hr(this,s),Hr(this,l,null));get label(){return this.#r}set label(e){this.#r=e}#i=(Hr(this,u),Hr(this,p,!0));get enableDate(){return this.#i}set enableDate(e){this.#i=e}#a=(Hr(this,m),Hr(this,g,!0));get enableTime(){return this.#a}set enableTime(e){this.#a=e}static#o=this.styles=[j,d`
1281
- * {
1282
- box-sizing: border-box;
1283
- }
1284
-
1285
- :host {
1286
- display: block;
1287
- flex: var(--weight);
1288
- min-height: 0;
1289
- overflow: auto;
1290
- }
1291
-
1292
- input {
1293
- display: block;
1294
- border-radius: 8px;
1295
- padding: 8px;
1296
- border: 1px solid #ccc;
1297
- width: 100%;
1298
- }
1299
- `];#s(e){!this.value||!this.processor||`path`in this.value&&this.value.path&&this.processor.setData(this.component,this.value.path,e,this.surfaceId??L.DEFAULT_SURFACE_ID)}#c(e){return b`<section
1300
- class=${F(this.theme.components.DateTimeInput.container)}
1301
- >
1302
- <label
1303
- for="data"
1304
- class=${F(this.theme.components.DateTimeInput.label)}
1305
- >${this.#f()}</label
1306
- >
1307
- <input
1308
- autocomplete="off"
1309
- class=${F(this.theme.components.DateTimeInput.element)}
1310
- style=${this.theme.additionalStyles?.DateTimeInput?R(this.theme.additionalStyles?.DateTimeInput):S}
1311
- @input=${e=>{e.target instanceof HTMLInputElement&&this.#s(e.target.value)}}
1312
- id="data"
1313
- name="data"
1314
- .value=${this.#u(e)}
1315
- .placeholder=${this.#f()}
1316
- .type=${this.#l()}
1317
- />
1318
- </section>`}#l(){return this.enableDate&&this.enableTime?`datetime-local`:this.enableDate?`date`:this.enableTime?`time`:`datetime-local`}#u(e){let t=this.#l(),n=e?new Date(e):null;if(!n||isNaN(n.getTime()))return``;let r=this.#d(n.getFullYear()),i=this.#d(n.getMonth()),a=this.#d(n.getDate()),o=this.#d(n.getHours()),s=this.#d(n.getMinutes());return t===`date`?`${r}-${i}-${a}`:t===`time`?`${o}:${s}`:`${r}-${i}-${a}T${o}:${s}`}#d(e){return e.toString().padStart(2,`0`)}#f(){let e=this.#l();return e===`date`?`Date`:e===`time`?`Time`:`Date & Time`}render(){if(this.value&&typeof this.value==`object`){if(`literalString`in this.value&&this.value.literalString)return this.#c(this.value.literalString);if(`literal`in this.value&&this.value.literal!==void 0)return this.#c(this.value.literal);if(this.value&&`path`in this.value&&this.value.path){if(!this.processor||!this.component)return b`(no model)`;let e=this.processor.getData(this.component,this.value.path,this.surfaceId??L.DEFAULT_SURFACE_ID);return typeof e==`string`?this.#c(e):b`(invalid)`}}return S}constructor(){super(...arguments),Hr(this,_)}static#p=Hr(r,n)};return r})();var Ur=function(e,t,n,r,i,a){function o(e){if(e!==void 0&&typeof e!=`function`)throw TypeError(`Function expected`);return e}for(var s=r.kind,c=s===`getter`?`get`:s===`setter`?`set`:`value`,l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,p=n.length-1;p>=0;p--){var m={};for(var h in r)m[h]=h===`access`?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(f)throw TypeError(`Cannot add initializers after decoration has completed`);a.push(o(e||null))};var g=(0,n[p])(s===`accessor`?{get:u.get,set:u.set}:u[c],m);if(s===`accessor`){if(g===void 0)continue;if(typeof g!=`object`||!g)throw TypeError(`Object expected`);(d=o(g.get))&&(u.get=d),(d=o(g.set))&&(u.set=d),(d=o(g.init))&&i.unshift(d)}else (d=o(g))&&(s===`field`?i.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0},Wr=function(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0};(()=>{let e=[w(`a2ui-divider`)],t,n=[],r,i=P;var a=class extends i{static#e=r=this;static#t=(()=>{let o=typeof Symbol==`function`&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;Ur(null,t={value:r},e,{kind:`class`,name:r.name,metadata:o},null,n),a=r=t.value,o&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:o})})();static#n=this.styles=[j,d`
1319
- :host {
1320
- display: block;
1321
- min-height: 0;
1322
- overflow: auto;
1323
- }
1324
-
1325
- hr {
1326
- height: 1px;
1327
- background: #ccc;
1328
- border: none;
1329
- }
1330
- `];render(){return b`<hr
1331
- class=${F(this.theme.components.Divider)}
1332
- style=${this.theme.additionalStyles?.Divider?R(this.theme.additionalStyles?.Divider):S}
1333
- />`}static#r=Wr(r,n)};return r})();var Gr=function(e,t,n,r,i,a){function o(e){if(e!==void 0&&typeof e!=`function`)throw TypeError(`Function expected`);return e}for(var s=r.kind,c=s===`getter`?`get`:s===`setter`?`set`:`value`,l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,p=n.length-1;p>=0;p--){var m={};for(var h in r)m[h]=h===`access`?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(f)throw TypeError(`Cannot add initializers after decoration has completed`);a.push(o(e||null))};var g=(0,n[p])(s===`accessor`?{get:u.get,set:u.set}:u[c],m);if(s===`accessor`){if(g===void 0)continue;if(typeof g!=`object`||!g)throw TypeError(`Object expected`);(d=o(g.get))&&(u.get=d),(d=o(g.set))&&(u.set=d),(d=o(g.init))&&i.unshift(d)}else (d=o(g))&&(s===`field`?i.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0},Kr=function(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0};(()=>{let e=[w(`a2ui-icon`)],t,n=[],r,i=P,a,o=[],s=[];var c=class extends i{static#e=r=this;static#t=(()=>{let l=typeof Symbol==`function`&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;a=[T()],Gr(this,null,a,{kind:`accessor`,name:`name`,static:!1,private:!1,access:{has:e=>`name`in e,get:e=>e.name,set:(e,t)=>{e.name=t}},metadata:l},o,s),Gr(null,t={value:r},e,{kind:`class`,name:r.name,metadata:l},null,n),c=r=t.value,l&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:l})})();#n=Kr(this,o,null);get name(){return this.#n}set name(e){this.#n=e}static#r=this.styles=[j,d`
1334
- * {
1335
- box-sizing: border-box;
1336
- }
1337
-
1338
- :host {
1339
- display: block;
1340
- flex: var(--weight);
1341
- min-height: 0;
1342
- overflow: auto;
1343
- }
1344
- `];#i(){if(!this.name)return S;let e=e=>(e=e.replace(/([A-Z])/gm,`_$1`).toLocaleLowerCase(),b`<span class="g-icon">${e}</span>`);if(this.name&&typeof this.name==`object`){if(`literalString`in this.name)return e(this.name.literalString??``);if(`literal`in this.name)return e(this.name.literal??``);if(this.name&&`path`in this.name&&this.name.path){if(!this.processor||!this.component)return b`(no model)`;let t=this.processor.getData(this.component,this.name.path,this.surfaceId??L.DEFAULT_SURFACE_ID);return!t||typeof t!=`string`?b`Invalid icon name`:e(t)}}return b`(empty)`}render(){return b`<section
1345
- class=${F(this.theme.components.Icon)}
1346
- style=${this.theme.additionalStyles?.Icon?R(this.theme.additionalStyles?.Icon):S}
1347
- >
1348
- ${this.#i()}
1349
- </section>`}constructor(){super(...arguments),Kr(this,s)}static#a=Kr(r,n)};return r})();var qr=(e=null)=>new sn.State(e,{equals:()=>!1}),Jr=new Set([Symbol.iterator,`concat`,`entries`,`every`,`filter`,`find`,`findIndex`,`flat`,`flatMap`,`forEach`,`includes`,`indexOf`,`join`,`keys`,`lastIndexOf`,`map`,`reduce`,`reduceRight`,`slice`,`some`,`values`]),Yr=new Set([`fill`,`push`,`unshift`]);function Xr(e){if(typeof e==`symbol`)return null;let t=Number(e);return isNaN(t)?null:t%1==0?t:null}var Zr=class e{static from(t,n,r){return n?new e(Array.from(t,n,r)):new e(Array.from(t))}static of(...t){return new e(t)}constructor(t=[]){let n=t.slice(),r=this,i=new Map,a=!1;return new Proxy(n,{get(e,t){let n=Xr(t);if(n!==null)return r.#n(n),r.#e.get(),e[n];if(t===`length`)return a?a=!1:r.#e.get(),e[t];if(Yr.has(t)&&(a=!0),Jr.has(t)){let n=i.get(t);return n===void 0&&(n=(...n)=>(r.#e.get(),e[t](...n)),i.set(t,n)),n}return e[t]},set(e,t,n){e[t]=n;let i=Xr(t);return i===null?t===`length`&&r.#e.set(null):(r.#r(i),r.#e.set(null)),!0},getPrototypeOf(){return e.prototype}})}#e=qr();#t=new Map;#n(e){let t=this.#t.get(e);t===void 0&&(t=qr(),this.#t.set(e,t)),t.get()}#r(e){let t=this.#t.get(e);t&&t.set(null)}};Object.setPrototypeOf(Zr.prototype,Array.prototype);var Qr=class{collection=qr();storages=new Map;vals;readStorageFor(e){let{storages:t}=this,n=t.get(e);n===void 0&&(n=qr(),t.set(e,n)),n.get()}dirtyStorageFor(e){let t=this.storages.get(e);t&&t.set(null)}constructor(e){this.vals=e?new Map(e):new Map}get(e){return this.readStorageFor(e),this.vals.get(e)}has(e){return this.readStorageFor(e),this.vals.has(e)}entries(){return this.collection.get(),this.vals.entries()}keys(){return this.collection.get(),this.vals.keys()}values(){return this.collection.get(),this.vals.values()}forEach(e){this.collection.get(),this.vals.forEach(e)}get size(){return this.collection.get(),this.vals.size}[Symbol.iterator](){return this.collection.get(),this.vals[Symbol.iterator]()}get[Symbol.toStringTag](){return this.vals[Symbol.toStringTag]}set(e,t){return this.dirtyStorageFor(e),this.collection.set(null),this.vals.set(e,t),this}delete(e){return this.dirtyStorageFor(e),this.collection.set(null),this.vals.delete(e)}clear(){this.storages.forEach(e=>e.set(null)),this.collection.set(null),this.vals.clear()}};Object.setPrototypeOf(Qr.prototype,Map.prototype);var $r=class{collection=qr();storages=new Map;vals;storageFor(e){let t=this.storages,n=t.get(e);return n===void 0&&(n=qr(),t.set(e,n)),n}dirtyStorageFor(e){let t=this.storages.get(e);t&&t.set(null)}constructor(e){this.vals=new Set(e)}has(e){return this.storageFor(e).get(),this.vals.has(e)}entries(){return this.collection.get(),this.vals.entries()}keys(){return this.collection.get(),this.vals.keys()}values(){return this.collection.get(),this.vals.values()}forEach(e){this.collection.get(),this.vals.forEach(e)}get size(){return this.collection.get(),this.vals.size}[Symbol.iterator](){return this.collection.get(),this.vals[Symbol.iterator]()}get[Symbol.toStringTag](){return this.vals[Symbol.toStringTag]}add(e){return this.dirtyStorageFor(e),this.collection.set(null),this.vals.add(e),this}delete(e){return this.dirtyStorageFor(e),this.collection.set(null),this.vals.delete(e)}clear(){this.storages.forEach(e=>e.set(null)),this.collection.set(null),this.vals.clear()}};Object.setPrototypeOf($r.prototype,Set.prototype);var ei=function(e,t,n,r,i,a){function o(e){if(e!==void 0&&typeof e!=`function`)throw TypeError(`Function expected`);return e}for(var s=r.kind,c=s===`getter`?`get`:s===`setter`?`set`:`value`,l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,p=n.length-1;p>=0;p--){var m={};for(var h in r)m[h]=h===`access`?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(f)throw TypeError(`Cannot add initializers after decoration has completed`);a.push(o(e||null))};var g=(0,n[p])(s===`accessor`?{get:u.get,set:u.set}:u[c],m);if(s===`accessor`){if(g===void 0)continue;if(typeof g!=`object`||!g)throw TypeError(`Object expected`);(d=o(g.get))&&(u.get=d),(d=o(g.set))&&(u.set=d),(d=o(g.init))&&i.unshift(d)}else (d=o(g))&&(s===`field`?i.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0},ti=function(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0};(()=>{let e=[w(`a2ui-image`)],t,n=[],r,i=P,a,o=[],s=[],c,l=[],u=[],f,p=[],m=[];var h=class extends i{static#e=r=this;static#t=(()=>{let d=typeof Symbol==`function`&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;a=[T()],c=[T()],f=[T()],ei(this,null,a,{kind:`accessor`,name:`url`,static:!1,private:!1,access:{has:e=>`url`in e,get:e=>e.url,set:(e,t)=>{e.url=t}},metadata:d},o,s),ei(this,null,c,{kind:`accessor`,name:`usageHint`,static:!1,private:!1,access:{has:e=>`usageHint`in e,get:e=>e.usageHint,set:(e,t)=>{e.usageHint=t}},metadata:d},l,u),ei(this,null,f,{kind:`accessor`,name:`fit`,static:!1,private:!1,access:{has:e=>`fit`in e,get:e=>e.fit,set:(e,t)=>{e.fit=t}},metadata:d},p,m),ei(null,t={value:r},e,{kind:`class`,name:r.name,metadata:d},null,n),h=r=t.value,d&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d})})();#n=ti(this,o,null);get url(){return this.#n}set url(e){this.#n=e}#r=(ti(this,s),ti(this,l,null));get usageHint(){return this.#r}set usageHint(e){this.#r=e}#i=(ti(this,u),ti(this,p,null));get fit(){return this.#i}set fit(e){this.#i=e}static#a=this.styles=[j,d`
1350
- * {
1351
- box-sizing: border-box;
1352
- }
1353
-
1354
- :host {
1355
- display: block;
1356
- flex: var(--weight);
1357
- min-height: 0;
1358
- overflow: auto;
1359
- }
1360
-
1361
- img {
1362
- display: block;
1363
- width: 100%;
1364
- height: 100%;
1365
- object-fit: var(--object-fit, fill);
1366
- }
1367
- `];#o(){if(!this.url)return S;let e=e=>b`<img src=${e} />`;if(this.url&&typeof this.url==`object`){if(`literalString`in this.url)return e(this.url.literalString??``);if(`literal`in this.url)return e(this.url.literal??``);if(this.url&&`path`in this.url&&this.url.path){if(!this.processor||!this.component)return b`(no model)`;let t=this.processor.getData(this.component,this.url.path,this.surfaceId??L.DEFAULT_SURFACE_ID);return!t||typeof t!=`string`?b`Invalid image URL`:e(t)}}return b`(empty)`}render(){return b`<section
1368
- class=${F(Xn(this.theme.components.Image.all,this.usageHint?this.theme.components.Image[this.usageHint]:{}))}
1369
- style=${R({...this.theme.additionalStyles?.Image??{},"--object-fit":this.fit??`fill`})}
1370
- >
1371
- ${this.#o()}
1372
- </section>`}constructor(){super(...arguments),ti(this,m)}static#s=ti(r,n)};return r})();var ni=function(e,t,n,r,i,a){function o(e){if(e!==void 0&&typeof e!=`function`)throw TypeError(`Function expected`);return e}for(var s=r.kind,c=s===`getter`?`get`:s===`setter`?`set`:`value`,l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,p=n.length-1;p>=0;p--){var m={};for(var h in r)m[h]=h===`access`?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(f)throw TypeError(`Cannot add initializers after decoration has completed`);a.push(o(e||null))};var g=(0,n[p])(s===`accessor`?{get:u.get,set:u.set}:u[c],m);if(s===`accessor`){if(g===void 0)continue;if(typeof g!=`object`||!g)throw TypeError(`Object expected`);(d=o(g.get))&&(u.get=d),(d=o(g.set))&&(u.set=d),(d=o(g.init))&&i.unshift(d)}else (d=o(g))&&(s===`field`?i.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0},ri=function(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0};(()=>{let e=[w(`a2ui-list`)],t,n=[],r,i=P,a,o=[],s=[];var c=class extends i{static#e=r=this;static#t=(()=>{let l=typeof Symbol==`function`&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;a=[T({reflect:!0,type:String})],ni(this,null,a,{kind:`accessor`,name:`direction`,static:!1,private:!1,access:{has:e=>`direction`in e,get:e=>e.direction,set:(e,t)=>{e.direction=t}},metadata:l},o,s),ni(null,t={value:r},e,{kind:`class`,name:r.name,metadata:l},null,n),c=r=t.value,l&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:l})})();#n=ri(this,o,`vertical`);get direction(){return this.#n}set direction(e){this.#n=e}static#r=this.styles=[j,d`
1373
- * {
1374
- box-sizing: border-box;
1375
- }
1376
-
1377
- :host {
1378
- display: block;
1379
- flex: var(--weight);
1380
- min-height: 0;
1381
- overflow: auto;
1382
- }
1383
-
1384
- :host([direction="vertical"]) section {
1385
- display: grid;
1386
- }
1387
-
1388
- :host([direction="horizontal"]) section {
1389
- display: flex;
1390
- max-width: 100%;
1391
- overflow-x: scroll;
1392
- overflow-y: hidden;
1393
- scrollbar-width: none;
1394
-
1395
- > ::slotted(*) {
1396
- flex: 1 0 fit-content;
1397
- max-width: min(80%, 400px);
1398
- }
1399
- }
1400
- `];render(){return b`<section
1401
- class=${F(this.theme.components.List)}
1402
- style=${this.theme.additionalStyles?.List?R(this.theme.additionalStyles?.List):S}
1403
- >
1404
- <slot></slot>
1405
- </section>`}constructor(){super(...arguments),ri(this,s)}static#i=ri(r,n)};return r})();function ii(e,t,n,r){if(typeof e==`object`&&e){if(`literalString`in e)return e.literalString??``;if(`literal`in e&&e.literal!==void 0)return e.literal??``;if(e&&`path`in e&&e.path){if(!n||!t)return`(no model)`;let i=n.getData(t,e.path,r??L.DEFAULT_SURFACE_ID);return i===null||typeof i!=`string`?``:i}}return``}function ai(e,t,n,r){if(typeof e==`object`&&e){if(`literalNumber`in e)return e.literalNumber??0;if(`literal`in e&&e.literal!==void 0)return e.literal??0;if(e&&`path`in e&&e.path){if(!n||!t)return-1;let i=n.getData(t,e.path,r??L.DEFAULT_SURFACE_ID);return typeof i==`string`&&(i=Number.parseInt(i,10),Number.isNaN(i)&&(i=null)),i===null||typeof i!=`number`?-1:i}}return 0}var oi=function(e,t,n,r,i,a){function o(e){if(e!==void 0&&typeof e!=`function`)throw TypeError(`Function expected`);return e}for(var s=r.kind,c=s===`getter`?`get`:s===`setter`?`set`:`value`,l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,p=n.length-1;p>=0;p--){var m={};for(var h in r)m[h]=h===`access`?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(f)throw TypeError(`Cannot add initializers after decoration has completed`);a.push(o(e||null))};var g=(0,n[p])(s===`accessor`?{get:u.get,set:u.set}:u[c],m);if(s===`accessor`){if(g===void 0)continue;if(typeof g!=`object`||!g)throw TypeError(`Object expected`);(d=o(g.get))&&(u.get=d),(d=o(g.set))&&(u.set=d),(d=o(g.init))&&i.unshift(d)}else (d=o(g))&&(s===`field`?i.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0},si=function(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0};(()=>{let e=[w(`a2ui-multiplechoice`)],t,n=[],r,i=P,a,o=[],s=[],c,l=[],u=[],f,p=[],m=[];var h=class extends i{static#e=r=this;static#t=(()=>{let d=typeof Symbol==`function`&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;a=[T()],c=[T()],f=[T()],oi(this,null,a,{kind:`accessor`,name:`description`,static:!1,private:!1,access:{has:e=>`description`in e,get:e=>e.description,set:(e,t)=>{e.description=t}},metadata:d},o,s),oi(this,null,c,{kind:`accessor`,name:`options`,static:!1,private:!1,access:{has:e=>`options`in e,get:e=>e.options,set:(e,t)=>{e.options=t}},metadata:d},l,u),oi(this,null,f,{kind:`accessor`,name:`selections`,static:!1,private:!1,access:{has:e=>`selections`in e,get:e=>e.selections,set:(e,t)=>{e.selections=t}},metadata:d},p,m),oi(null,t={value:r},e,{kind:`class`,name:r.name,metadata:d},null,n),h=r=t.value,d&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d})})();#n=si(this,o,null);get description(){return this.#n}set description(e){this.#n=e}#r=(si(this,s),si(this,l,[]));get options(){return this.#r}set options(e){this.#r=e}#i=(si(this,u),si(this,p,[]));get selections(){return this.#i}set selections(e){this.#i=e}static#a=this.styles=[j,d`
1406
- * {
1407
- box-sizing: border-box;
1408
- }
1409
-
1410
- :host {
1411
- display: block;
1412
- flex: var(--weight);
1413
- min-height: 0;
1414
- overflow: auto;
1415
- }
1416
-
1417
- select {
1418
- width: 100%;
1419
- }
1420
-
1421
- .description {
1422
- }
1423
- `];#o(e){console.log(e),!(!this.selections||!this.processor)&&`path`in this.selections&&this.selections.path&&this.processor.setData(this.component,this.selections.path,e,this.surfaceId??L.DEFAULT_SURFACE_ID)}willUpdate(e){if(!e.has(`options`)||!this.processor||!this.component||Array.isArray(this.selections))return;this.selections;let t=this.processor.getData(this.component,this.selections.path,this.surfaceId??L.DEFAULT_SURFACE_ID);Array.isArray(t)&&this.#o(t)}render(){return b`<section class=${F(this.theme.components.MultipleChoice.container)}>
1424
- <label class=${F(this.theme.components.MultipleChoice.label)} for="data">${this.description??`Select an item`}</div>
1425
- <select
1426
- name="data"
1427
- id="data"
1428
- class=${F(this.theme.components.MultipleChoice.element)}
1429
- style=${this.theme.additionalStyles?.MultipleChoice?R(this.theme.additionalStyles?.MultipleChoice):S}
1430
- @change=${e=>{e.target instanceof HTMLSelectElement&&this.#o([e.target.value])}}
1431
- >
1432
- ${this.options.map(e=>{let t=ii(e.label,this.component,this.processor,this.surfaceId);return b`<option ${e.value}>${t}</option>`})}
1433
- </select>
1434
- </section>`}constructor(){super(...arguments),si(this,m)}static#s=si(r,n)};return r})();var ci=new WeakMap,li=pn(class extends jn{render(e){return S}update(e,[t]){let n=t!==this.G;return n&&this.G!==void 0&&this.rt(void 0),(n||this.lt!==this.ct)&&(this.G=t,this.ht=e.options?.host,this.rt(this.ct=e.element)),S}rt(e){if(this.isConnected||(e=void 0),typeof this.G==`function`){let t=this.ht??globalThis,n=ci.get(t);n===void 0&&(n=new WeakMap,ci.set(t,n)),n.get(this.G)!==void 0&&this.G.call(this.ht,void 0),n.set(this.G,e),e!==void 0&&this.G.call(this.ht,e)}else this.G.value=e}get lt(){return typeof this.G==`function`?ci.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}}),ui=function(e,t,n,r,i,a){function o(e){if(e!==void 0&&typeof e!=`function`)throw TypeError(`Function expected`);return e}for(var s=r.kind,c=s===`getter`?`get`:s===`setter`?`set`:`value`,l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,p=n.length-1;p>=0;p--){var m={};for(var h in r)m[h]=h===`access`?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(f)throw TypeError(`Cannot add initializers after decoration has completed`);a.push(o(e||null))};var g=(0,n[p])(s===`accessor`?{get:u.get,set:u.set}:u[c],m);if(s===`accessor`){if(g===void 0)continue;if(typeof g!=`object`||!g)throw TypeError(`Object expected`);(d=o(g.get))&&(u.get=d),(d=o(g.set))&&(u.set=d),(d=o(g.init))&&i.unshift(d)}else (d=o(g))&&(s===`field`?i.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0},di=function(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0},fi=function(e,t,n){return typeof t==`symbol`&&(t=t.description?`[${t.description}]`:``),Object.defineProperty(e,`name`,{configurable:!0,value:n?`${n} ${t}`:t})};(()=>{let e=[w(`a2ui-modal`)],t,n=[],r,i=P,a,o=[],s=[],c,l,u=[],f=[],p;var m=class extends i{static#e=r=this;static#t=(()=>{let d=typeof Symbol==`function`&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;a=[E()],l=[Ze(`dialog`)],ui(this,c={get:fi(function(){return this.#r},`#showModal`,`get`),set:fi(function(e){this.#r=e},`#showModal`,`set`)},a,{kind:`accessor`,name:`#showModal`,static:!1,private:!0,access:{has:e=>#a in e,get:e=>e.#a,set:(e,t)=>{e.#a=t}},metadata:d},o,s),ui(this,p={get:fi(function(){return this.#o},`#modalRef`,`get`),set:fi(function(e){this.#o=e},`#modalRef`,`set`)},l,{kind:`accessor`,name:`#modalRef`,static:!1,private:!0,access:{has:e=>#c in e,get:e=>e.#c,set:(e,t)=>{e.#c=t}},metadata:d},u,f),ui(null,t={value:r},e,{kind:`class`,name:r.name,metadata:d},null,n),m=r=t.value,d&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d})})();static#n=this.styles=[j,d`
1435
- * {
1436
- box-sizing: border-box;
1437
- }
1438
-
1439
- dialog {
1440
- padding: 0 0 0 0;
1441
- border: none;
1442
- background: none;
1443
-
1444
- & section {
1445
- & #controls {
1446
- display: flex;
1447
- justify-content: end;
1448
- margin-bottom: 4px;
1449
-
1450
- & button {
1451
- padding: 0;
1452
- background: none;
1453
- width: 20px;
1454
- height: 20px;
1455
- pointer: cursor;
1456
- border: none;
1457
- cursor: pointer;
1458
- }
1459
- }
1460
- }
1461
- }
1462
- `];#r=di(this,o,!1);get#a(){return c.get.call(this)}set#a(e){return c.set.call(this,e)}#o=(di(this,s),di(this,u,null));get#c(){return p.get.call(this)}set#c(e){return p.set.call(this,e)}#l(){this.#c&&(this.#c.open&&this.#c.close(),this.#a=!1)}render(){return this.#a?b`<dialog
1463
- class=${F(this.theme.components.Modal.backdrop)}
1464
- @click=${e=>{let[t]=e.composedPath();t instanceof HTMLDialogElement&&this.#l()}}
1465
- ${li(e=>{requestAnimationFrame(()=>{!(e&&e instanceof HTMLDialogElement)||e.open||e.showModal()})})}
1466
- >
1467
- <section
1468
- class=${F(this.theme.components.Modal.element)}
1469
- style=${this.theme.additionalStyles?.Modal?R(this.theme.additionalStyles?.Modal):S}
1470
- >
1471
- <div id="controls">
1472
- <button
1473
- @click=${()=>{this.#l()}}
1474
- >
1475
- <span class="g-icon">close</span>
1476
- </button>
1477
- </div>
1478
- <slot></slot>
1479
- </section>
1480
- </dialog>`:b`<section
1481
- @click=${()=>{this.#a=!0}}
1482
- >
1483
- <slot name="entry"></slot>
1484
- </section>`}constructor(){super(...arguments),di(this,f)}static#u=di(r,n)};return r})();var pi=function(e,t,n,r,i,a){function o(e){if(e!==void 0&&typeof e!=`function`)throw TypeError(`Function expected`);return e}for(var s=r.kind,c=s===`getter`?`get`:s===`setter`?`set`:`value`,l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,p=n.length-1;p>=0;p--){var m={};for(var h in r)m[h]=h===`access`?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(f)throw TypeError(`Cannot add initializers after decoration has completed`);a.push(o(e||null))};var g=(0,n[p])(s===`accessor`?{get:u.get,set:u.set}:u[c],m);if(s===`accessor`){if(g===void 0)continue;if(typeof g!=`object`||!g)throw TypeError(`Object expected`);(d=o(g.get))&&(u.get=d),(d=o(g.set))&&(u.set=d),(d=o(g.init))&&i.unshift(d)}else (d=o(g))&&(s===`field`?i.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0},mi=function(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0};(()=>{let e=[w(`a2ui-row`)],t,n=[],r,i=P,a,o=[],s=[],c,l=[],u=[];var f=class extends i{static#e=r=this;static#t=(()=>{let d=typeof Symbol==`function`&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;a=[T({reflect:!0,type:String})],c=[T({reflect:!0,type:String})],pi(this,null,a,{kind:`accessor`,name:`alignment`,static:!1,private:!1,access:{has:e=>`alignment`in e,get:e=>e.alignment,set:(e,t)=>{e.alignment=t}},metadata:d},o,s),pi(this,null,c,{kind:`accessor`,name:`distribution`,static:!1,private:!1,access:{has:e=>`distribution`in e,get:e=>e.distribution,set:(e,t)=>{e.distribution=t}},metadata:d},l,u),pi(null,t={value:r},e,{kind:`class`,name:r.name,metadata:d},null,n),f=r=t.value,d&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d})})();#n=mi(this,o,`stretch`);get alignment(){return this.#n}set alignment(e){this.#n=e}#r=(mi(this,s),mi(this,l,`start`));get distribution(){return this.#r}set distribution(e){this.#r=e}static#i=this.styles=[j,d`
1485
- * {
1486
- box-sizing: border-box;
1487
- }
1488
-
1489
- :host {
1490
- display: flex;
1491
- flex: var(--weight);
1492
- }
1493
-
1494
- section {
1495
- display: flex;
1496
- flex-direction: row;
1497
- width: 100%;
1498
- min-height: 100%;
1499
- }
1500
-
1501
- :host([alignment="start"]) section {
1502
- align-items: start;
1503
- }
1504
-
1505
- :host([alignment="center"]) section {
1506
- align-items: center;
1507
- }
1508
-
1509
- :host([alignment="end"]) section {
1510
- align-items: end;
1511
- }
1512
-
1513
- :host([alignment="stretch"]) section {
1514
- align-items: stretch;
1515
- }
1516
-
1517
- :host([distribution="start"]) section {
1518
- justify-content: start;
1519
- }
1520
-
1521
- :host([distribution="center"]) section {
1522
- justify-content: center;
1523
- }
1524
-
1525
- :host([distribution="end"]) section {
1526
- justify-content: end;
1527
- }
1528
-
1529
- :host([distribution="spaceBetween"]) section {
1530
- justify-content: space-between;
1531
- }
1532
-
1533
- :host([distribution="spaceAround"]) section {
1534
- justify-content: space-around;
1535
- }
1536
-
1537
- :host([distribution="spaceEvenly"]) section {
1538
- justify-content: space-evenly;
1539
- }
1540
- `];render(){return b`<section
1541
- class=${F(this.theme.components.Row)}
1542
- style=${this.theme.additionalStyles?.Row?R(this.theme.additionalStyles?.Row):S}
1543
- >
1544
- <slot></slot>
1545
- </section>`}constructor(){super(...arguments),mi(this,u)}static#a=mi(r,n)};return r})();var hi=function(e,t,n,r,i,a){function o(e){if(e!==void 0&&typeof e!=`function`)throw TypeError(`Function expected`);return e}for(var s=r.kind,c=s===`getter`?`get`:s===`setter`?`set`:`value`,l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,p=n.length-1;p>=0;p--){var m={};for(var h in r)m[h]=h===`access`?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(f)throw TypeError(`Cannot add initializers after decoration has completed`);a.push(o(e||null))};var g=(0,n[p])(s===`accessor`?{get:u.get,set:u.set}:u[c],m);if(s===`accessor`){if(g===void 0)continue;if(typeof g!=`object`||!g)throw TypeError(`Object expected`);(d=o(g.get))&&(u.get=d),(d=o(g.set))&&(u.set=d),(d=o(g.init))&&i.unshift(d)}else (d=o(g))&&(s===`field`?i.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0},z=function(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0};(()=>{let e=[w(`a2ui-slider`)],t,n=[],r,i=P,a,o=[],s=[],c,l=[],u=[],f,p=[],m=[],h,g=[],_=[],v,y=[],ee=[];var te=class extends i{static#e=r=this;static#t=(()=>{let d=typeof Symbol==`function`&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;a=[T()],c=[T()],f=[T()],h=[T()],v=[T()],hi(this,null,a,{kind:`accessor`,name:`value`,static:!1,private:!1,access:{has:e=>`value`in e,get:e=>e.value,set:(e,t)=>{e.value=t}},metadata:d},o,s),hi(this,null,c,{kind:`accessor`,name:`minValue`,static:!1,private:!1,access:{has:e=>`minValue`in e,get:e=>e.minValue,set:(e,t)=>{e.minValue=t}},metadata:d},l,u),hi(this,null,f,{kind:`accessor`,name:`maxValue`,static:!1,private:!1,access:{has:e=>`maxValue`in e,get:e=>e.maxValue,set:(e,t)=>{e.maxValue=t}},metadata:d},p,m),hi(this,null,h,{kind:`accessor`,name:`label`,static:!1,private:!1,access:{has:e=>`label`in e,get:e=>e.label,set:(e,t)=>{e.label=t}},metadata:d},g,_),hi(this,null,v,{kind:`accessor`,name:`inputType`,static:!1,private:!1,access:{has:e=>`inputType`in e,get:e=>e.inputType,set:(e,t)=>{e.inputType=t}},metadata:d},y,ee),hi(null,t={value:r},e,{kind:`class`,name:r.name,metadata:d},null,n),te=r=t.value,d&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d})})();#n=z(this,o,null);get value(){return this.#n}set value(e){this.#n=e}#r=(z(this,s),z(this,l,0));get minValue(){return this.#r}set minValue(e){this.#r=e}#i=(z(this,u),z(this,p,0));get maxValue(){return this.#i}set maxValue(e){this.#i=e}#a=(z(this,m),z(this,g,null));get label(){return this.#a}set label(e){this.#a=e}#o=(z(this,_),z(this,y,null));get inputType(){return this.#o}set inputType(e){this.#o=e}static#s=this.styles=[j,d`
1546
- * {
1547
- box-sizing: border-box;
1548
- }
1549
-
1550
- :host {
1551
- display: block;
1552
- flex: var(--weight);
1553
- }
1554
-
1555
- input {
1556
- display: block;
1557
- width: 100%;
1558
- }
1559
-
1560
- .description {
1561
- }
1562
- `];#c(e){!this.value||!this.processor||`path`in this.value&&this.value.path&&this.processor.setData(this.component,this.value.path,e,this.surfaceId??L.DEFAULT_SURFACE_ID)}#l(e){return b`<section
1563
- class=${F(this.theme.components.Slider.container)}
1564
- >
1565
- <label class=${F(this.theme.components.Slider.label)} for="data">
1566
- ${this.label?.literalString??``}
1567
- </label>
1568
- <input
1569
- autocomplete="off"
1570
- class=${F(this.theme.components.Slider.element)}
1571
- style=${this.theme.additionalStyles?.Slider?R(this.theme.additionalStyles?.Slider):S}
1572
- @input=${e=>{e.target instanceof HTMLInputElement&&this.#c(e.target.value)}}
1573
- id="data"
1574
- name="data"
1575
- .value=${e}
1576
- type="range"
1577
- min=${this.minValue??`0`}
1578
- max=${this.maxValue??`0`}
1579
- />
1580
- <span class=${F(this.theme.components.Slider.label)}
1581
- >${this.value?ai(this.value,this.component,this.processor,this.surfaceId):`0`}</span
1582
- >
1583
- </section>`}render(){if(this.value&&typeof this.value==`object`){if(`literalNumber`in this.value&&this.value.literalNumber)return this.#l(this.value.literalNumber);if(`literal`in this.value&&this.value.literal!==void 0)return this.#l(this.value.literal);if(this.value&&`path`in this.value&&this.value.path){if(!this.processor||!this.component)return b`(no processor)`;let e=this.processor.getData(this.component,this.value.path,this.surfaceId??L.DEFAULT_SURFACE_ID);return e===null||typeof e!=`string`&&typeof e!=`number`?b`Invalid value`:this.#l(e)}}return S}constructor(){super(...arguments),z(this,ee)}static#u=z(r,n)};return r})();var gi=function(e,t,n,r,i,a){function o(e){if(e!==void 0&&typeof e!=`function`)throw TypeError(`Function expected`);return e}for(var s=r.kind,c=s===`getter`?`get`:s===`setter`?`set`:`value`,l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,p=n.length-1;p>=0;p--){var m={};for(var h in r)m[h]=h===`access`?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(f)throw TypeError(`Cannot add initializers after decoration has completed`);a.push(o(e||null))};var g=(0,n[p])(s===`accessor`?{get:u.get,set:u.set}:u[c],m);if(s===`accessor`){if(g===void 0)continue;if(typeof g!=`object`||!g)throw TypeError(`Object expected`);(d=o(g.get))&&(u.get=d),(d=o(g.set))&&(u.set=d),(d=o(g.init))&&i.unshift(d)}else (d=o(g))&&(s===`field`?i.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0},_i=function(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0};(()=>{let e=[w(`a2ui-surface`)],t,n=[],r,i=P,a,o=[],s=[],c,l=[],u=[],f,p=[],m=[];var h=class extends i{static#e=r=this;static#t=(()=>{let d=typeof Symbol==`function`&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;a=[T()],c=[T()],f=[T()],gi(this,null,a,{kind:`accessor`,name:`surfaceId`,static:!1,private:!1,access:{has:e=>`surfaceId`in e,get:e=>e.surfaceId,set:(e,t)=>{e.surfaceId=t}},metadata:d},o,s),gi(this,null,c,{kind:`accessor`,name:`surface`,static:!1,private:!1,access:{has:e=>`surface`in e,get:e=>e.surface,set:(e,t)=>{e.surface=t}},metadata:d},l,u),gi(this,null,f,{kind:`accessor`,name:`processor`,static:!1,private:!1,access:{has:e=>`processor`in e,get:e=>e.processor,set:(e,t)=>{e.processor=t}},metadata:d},p,m),gi(null,t={value:r},e,{kind:`class`,name:r.name,metadata:d},null,n),h=r=t.value,d&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d})})();#n=_i(this,o,null);get surfaceId(){return this.#n}set surfaceId(e){this.#n=e}#r=(_i(this,s),_i(this,l,null));get surface(){return this.#r}set surface(e){this.#r=e}#i=(_i(this,u),_i(this,p,null));get processor(){return this.#i}set processor(e){this.#i=e}static#a=this.styles=[d`
1584
- :host {
1585
- display: flex;
1586
- min-height: 0;
1587
- max-height: 100%;
1588
- flex-direction: column;
1589
- gap: 16px;
1590
- }
1591
-
1592
- #surface-logo {
1593
- display: flex;
1594
- justify-content: center;
1595
-
1596
- & img {
1597
- width: 50%;
1598
- max-width: 220px;
1599
- }
1600
- }
1601
-
1602
- a2ui-root {
1603
- flex: 1;
1604
- }
1605
- `];#o(){return this.surface?.styles.logoUrl?b`<div id="surface-logo">
1606
- <img src=${this.surface.styles.logoUrl} />
1607
- </div>`:S}#s(){let e={};if(this.surface?.styles)for(let[e,t]of Object.entries(this.surface.styles))switch(e){case`primaryColor`:break;case`font`:break}return b`<a2ui-root
1608
- style=${R(e)}
1609
- .surfaceId=${this.surfaceId}
1610
- .processor=${this.processor}
1611
- .childComponents=${this.surface?.componentTree?[this.surface.componentTree]:null}
1612
- ></a2ui-root>`}render(){return this.surface?b`${[this.#o(),this.#s()]}`:S}constructor(){super(...arguments),_i(this,m)}static#c=_i(r,n)};return r})();var vi=(e,t,n)=>{let r=new Map;for(let i=t;i<=n;i++)r.set(e[i],i);return r},yi=pn(class extends mn{constructor(e){if(super(e),e.type!==fn.CHILD)throw Error(`repeat() can only be used in text expressions`)}dt(e,t,n){let r;n===void 0?n=t:t!==void 0&&(r=t);let i=[],a=[],o=0;for(let t of e)i[o]=r?r(t,o):o,a[o]=n(t,o),o++;return{values:a,keys:i}}render(e,t,n){return this.dt(e,t,n).values}update(e,[t,n,r]){let i=Cn(e),{values:a,keys:o}=this.dt(t,n,r);if(!Array.isArray(i))return this.ut=o,a;let s=this.ut??=[],c=[],l,u,d=0,f=i.length-1,p=0,m=a.length-1;for(;d<=f&&p<=m;)if(i[d]===null)d++;else if(i[f]===null)f--;else if(s[d]===o[p])c[p]=bn(i[d],a[p]),d++,p++;else if(s[f]===o[m])c[m]=bn(i[f],a[m]),f--,m--;else if(s[d]===o[m])c[m]=bn(i[d],a[m]),yn(e,c[m+1],i[d]),d++,m--;else if(s[f]===o[p])c[p]=bn(i[f],a[p]),yn(e,i[d],i[f]),f--,p++;else if(l===void 0&&(l=vi(o,p,m),u=vi(s,d,f)),l.has(s[d]))if(l.has(s[f])){let t=u.get(o[p]),n=t===void 0?null:i[t];if(n===null){let t=yn(e,i[d]);bn(t,a[p]),c[p]=t}else c[p]=bn(n,a[p]),yn(e,i[d],n),i[t]=null;p++}else wn(i[f]),f--;else wn(i[d]),d++;for(;p<=m;){let t=yn(e,c[m+1]);bn(t,a[p]),c[p++]=t}for(;d<=f;){let e=i[d++];e!==null&&wn(e)}return this.ut=o,Sn(e,c),x}}),bi=function(e,t,n,r,i,a){function o(e){if(e!==void 0&&typeof e!=`function`)throw TypeError(`Function expected`);return e}for(var s=r.kind,c=s===`getter`?`get`:s===`setter`?`set`:`value`,l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,p=n.length-1;p>=0;p--){var m={};for(var h in r)m[h]=h===`access`?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(f)throw TypeError(`Cannot add initializers after decoration has completed`);a.push(o(e||null))};var g=(0,n[p])(s===`accessor`?{get:u.get,set:u.set}:u[c],m);if(s===`accessor`){if(g===void 0)continue;if(typeof g!=`object`||!g)throw TypeError(`Object expected`);(d=o(g.get))&&(u.get=d),(d=o(g.set))&&(u.set=d),(d=o(g.init))&&i.unshift(d)}else (d=o(g))&&(s===`field`?i.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0},xi=function(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0};(()=>{let e=[w(`a2ui-tabs`)],t,n=[],r,i=P,a,o=[],s=[],c,l=[],u=[];var f=class extends i{static#e=r=this;static#t=(()=>{let d=typeof Symbol==`function`&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;a=[T()],c=[T()],bi(this,null,a,{kind:`accessor`,name:`titles`,static:!1,private:!1,access:{has:e=>`titles`in e,get:e=>e.titles,set:(e,t)=>{e.titles=t}},metadata:d},o,s),bi(this,null,c,{kind:`accessor`,name:`selected`,static:!1,private:!1,access:{has:e=>`selected`in e,get:e=>e.selected,set:(e,t)=>{e.selected=t}},metadata:d},l,u),bi(null,t={value:r},e,{kind:`class`,name:r.name,metadata:d},null,n),f=r=t.value,d&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d})})();#n=xi(this,o,null);get titles(){return this.#n}set titles(e){this.#n=e}#r=(xi(this,s),xi(this,l,0));get selected(){return this.#r}set selected(e){this.#r=e}static#i=this.styles=[j,d`
1613
- :host {
1614
- display: block;
1615
- flex: var(--weight);
1616
- }
1617
- `];willUpdate(e){if(super.willUpdate(e),e.has(`selected`)){for(let e of this.children)e.removeAttribute(`slot`);let e=this.children[this.selected];if(!e)return;e.slot=`current`}}#a(){return this.titles?b`<div
1618
- id="buttons"
1619
- class=${F(this.theme.components.Tabs.element)}
1620
- >
1621
- ${yi(this.titles,(e,t)=>{let n=``;if(`literalString`in e&&e.literalString)n=e.literalString;else if(`literal`in e&&e.literal!==void 0)n=e.literal;else if(e&&`path`in e&&e.path){if(!this.processor||!this.component)return b`(no model)`;let t=this.processor.getData(this.component,e.path,this.surfaceId??L.DEFAULT_SURFACE_ID);if(typeof t!=`string`)return b`(invalid)`;n=t}let r;return r=this.selected===t?Xn(this.theme.components.Tabs.controls.all,this.theme.components.Tabs.controls.selected):{...this.theme.components.Tabs.controls.all},b`<button
1622
- ?disabled=${this.selected===t}
1623
- class=${F(r)}
1624
- @click=${()=>{this.selected=t}}
1625
- >
1626
- ${n}
1627
- </button>`})}
1628
- </div>`:S}#o(){return b`<slot name="current"></slot>`}render(){return b`<section
1629
- class=${F(this.theme.components.Tabs.container)}
1630
- style=${this.theme.additionalStyles?.Tabs?R(this.theme.additionalStyles?.Tabs):S}
1631
- >
1632
- ${[this.#a(),this.#o()]}
1633
- </section>`}constructor(){super(...arguments),xi(this,u)}static#s=xi(r,n)};return r})();var Si=function(e,t,n,r,i,a){function o(e){if(e!==void 0&&typeof e!=`function`)throw TypeError(`Function expected`);return e}for(var s=r.kind,c=s===`getter`?`get`:s===`setter`?`set`:`value`,l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,p=n.length-1;p>=0;p--){var m={};for(var h in r)m[h]=h===`access`?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(f)throw TypeError(`Cannot add initializers after decoration has completed`);a.push(o(e||null))};var g=(0,n[p])(s===`accessor`?{get:u.get,set:u.set}:u[c],m);if(s===`accessor`){if(g===void 0)continue;if(typeof g!=`object`||!g)throw TypeError(`Object expected`);(d=o(g.get))&&(u.get=d),(d=o(g.set))&&(u.set=d),(d=o(g.init))&&i.unshift(d)}else (d=o(g))&&(s===`field`?i.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0},Ci=function(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0};(()=>{let e=[w(`a2ui-textfield`)],t,n=[],r,i=P,a,o=[],s=[],c,l=[],u=[],f,p=[],m=[];var h=class extends i{static#e=r=this;static#t=(()=>{let d=typeof Symbol==`function`&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;a=[T()],c=[T()],f=[T()],Si(this,null,a,{kind:`accessor`,name:`text`,static:!1,private:!1,access:{has:e=>`text`in e,get:e=>e.text,set:(e,t)=>{e.text=t}},metadata:d},o,s),Si(this,null,c,{kind:`accessor`,name:`label`,static:!1,private:!1,access:{has:e=>`label`in e,get:e=>e.label,set:(e,t)=>{e.label=t}},metadata:d},l,u),Si(this,null,f,{kind:`accessor`,name:`inputType`,static:!1,private:!1,access:{has:e=>`inputType`in e,get:e=>e.inputType,set:(e,t)=>{e.inputType=t}},metadata:d},p,m),Si(null,t={value:r},e,{kind:`class`,name:r.name,metadata:d},null,n),h=r=t.value,d&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d})})();#n=Ci(this,o,null);get text(){return this.#n}set text(e){this.#n=e}#r=(Ci(this,s),Ci(this,l,null));get label(){return this.#r}set label(e){this.#r=e}#i=(Ci(this,u),Ci(this,p,null));get inputType(){return this.#i}set inputType(e){this.#i=e}static#a=this.styles=[j,d`
1634
- * {
1635
- box-sizing: border-box;
1636
- }
1637
-
1638
- :host {
1639
- display: flex;
1640
- flex: var(--weight);
1641
- }
1642
-
1643
- input {
1644
- display: block;
1645
- width: 100%;
1646
- }
1647
-
1648
- label {
1649
- display: block;
1650
- margin-bottom: 4px;
1651
- }
1652
- `];#o(e){!this.text||!this.processor||`path`in this.text&&this.text.path&&this.processor.setData(this.component,this.text.path,e,this.surfaceId??L.DEFAULT_SURFACE_ID)}#s(e,t){return b` <section
1653
- class=${F(this.theme.components.TextField.container)}
1654
- >
1655
- ${t&&t!==``?b`<label
1656
- class=${F(this.theme.components.TextField.label)}
1657
- for="data"
1658
- >${t}</label
1659
- >`:S}
1660
- <input
1661
- autocomplete="off"
1662
- class=${F(this.theme.components.TextField.element)}
1663
- style=${this.theme.additionalStyles?.TextField?R(this.theme.additionalStyles?.TextField):S}
1664
- @input=${e=>{e.target instanceof HTMLInputElement&&this.#o(e.target.value)}}
1665
- name="data"
1666
- id="data"
1667
- .value=${e}
1668
- .placeholder=${`Please enter a value`}
1669
- type=${this.inputType===`number`?`number`:`text`}
1670
- />
1671
- </section>`}render(){let e=ii(this.label,this.component,this.processor,this.surfaceId),t=ii(this.text,this.component,this.processor,this.surfaceId);return this.#s(t,e)}constructor(){super(...arguments),Ci(this,m)}static#c=Ci(r,n)};return r})();var wi=class extends mn{constructor(e){if(super(e),this.it=S,e.type!==fn.CHILD)throw Error(this.constructor.directiveName+`() can only be used in child bindings`)}render(e){if(e===S||e==null)return this._t=void 0,this.it=e;if(e===x)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:[]}}};wi.directiveName=`unsafeHTML`,wi.resultType=1;var Ti=pn(wi),Ei={};function Di(e){let t=Ei[e];if(t)return t;t=Ei[e]=[];for(let e=0;e<128;e++){let n=String.fromCharCode(e);t.push(n)}for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t[r]=`%`+(`0`+r.toString(16).toUpperCase()).slice(-2)}return t}function Oi(e,t){typeof t!=`string`&&(t=Oi.defaultChars);let n=Di(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(e){let t=``;for(let r=0,i=e.length;r<i;r+=3){let a=parseInt(e.slice(r+1,r+3),16);if(a<128){t+=n[a];continue}if((a&224)==192&&r+3<i){let n=parseInt(e.slice(r+4,r+6),16);if((n&192)==128){let e=a<<6&1984|n&63;e<128?t+=`��`:t+=String.fromCharCode(e),r+=3;continue}}if((a&240)==224&&r+6<i){let n=parseInt(e.slice(r+4,r+6),16),i=parseInt(e.slice(r+7,r+9),16);if((n&192)==128&&(i&192)==128){let e=a<<12&61440|n<<6&4032|i&63;e<2048||e>=55296&&e<=57343?t+=`���`:t+=String.fromCharCode(e),r+=6;continue}}if((a&248)==240&&r+9<i){let n=parseInt(e.slice(r+4,r+6),16),i=parseInt(e.slice(r+7,r+9),16),o=parseInt(e.slice(r+10,r+12),16);if((n&192)==128&&(i&192)==128&&(o&192)==128){let e=a<<18&1835008|n<<12&258048|i<<6&4032|o&63;e<65536||e>1114111?t+=`����`:(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(e&1023))),r+=9;continue}}t+=`�`}return t})}Oi.defaultChars=`;/?:@&=+$,#`,Oi.componentChars=``;var ki=Oi,Ai={};function ji(e){let t=Ai[e];if(t)return t;t=Ai[e]=[];for(let e=0;e<128;e++){let n=String.fromCharCode(e);/^[0-9a-z]$/i.test(n)?t.push(n):t.push(`%`+(`0`+e.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function Mi(e,t,n){typeof t!=`string`&&(n=t,t=Mi.defaultChars),n===void 0&&(n=!0);let r=ji(t),i=``;for(let t=0,a=e.length;t<a;t++){let o=e.charCodeAt(t);if(n&&o===37&&t+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3))){i+=e.slice(t,t+3),t+=2;continue}if(o<128){i+=r[o];continue}if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&t+1<a){let n=e.charCodeAt(t+1);if(n>=56320&&n<=57343){i+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}i+=`%EF%BF%BD`;continue}i+=encodeURIComponent(e[t])}return i}Mi.defaultChars=`;/?:@&=+$,-_.!~*'()#`,Mi.componentChars=`-_.!~*'()`;var Ni=Mi;function Pi(e){let t=``;return t+=e.protocol||``,t+=e.slashes?`//`:``,t+=e.auth?e.auth+`@`:``,e.hostname&&e.hostname.indexOf(`:`)!==-1?t+=`[`+e.hostname+`]`:t+=e.hostname||``,t+=e.port?`:`+e.port:``,t+=e.pathname||``,t+=e.search||``,t+=e.hash||``,t}function Fi(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var Ii=/^([a-z0-9.+-]+:)/i,Li=/:[0-9]*$/,Ri=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,zi=[`%`,`/`,`?`,`;`,`#`,`'`,`{`,`}`,`|`,`\\`,`^`,"`",`<`,`>`,`"`,"`",` `,`\r`,`
1672
- `,` `],Bi=[`/`,`?`,`#`],Vi=255,Hi=/^[+a-z0-9A-Z_-]{0,63}$/,Ui=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Wi={javascript:!0,"javascript:":!0},Gi={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Ki(e,t){if(e&&e instanceof Fi)return e;let n=new Fi;return n.parse(e,t),n}Fi.prototype.parse=function(e,t){let n,r,i,a=e;if(a=a.trim(),!t&&e.split(`#`).length===1){let e=Ri.exec(a);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let o=Ii.exec(a);if(o&&(o=o[0],n=o.toLowerCase(),this.protocol=o,a=a.substr(o.length)),(t||o||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=a.substr(0,2)===`//`,i&&!(o&&Wi[o])&&(a=a.substr(2),this.slashes=!0)),!Wi[o]&&(i||o&&!Gi[o])){let e=-1;for(let t=0;t<Bi.length;t++)r=a.indexOf(Bi[t]),r!==-1&&(e===-1||r<e)&&(e=r);let t,n;n=e===-1?a.lastIndexOf(`@`):a.lastIndexOf(`@`,e),n!==-1&&(t=a.slice(0,n),a=a.slice(n+1),this.auth=t),e=-1;for(let t=0;t<zi.length;t++)r=a.indexOf(zi[t]),r!==-1&&(e===-1||r<e)&&(e=r);e===-1&&(e=a.length),a[e-1]===`:`&&e--;let i=a.slice(0,e);a=a.slice(e),this.parseHost(i),this.hostname=this.hostname||``;let o=this.hostname[0]===`[`&&this.hostname[this.hostname.length-1]===`]`;if(!o){let e=this.hostname.split(/\./);for(let t=0,n=e.length;t<n;t++){let n=e[t];if(n&&!n.match(Hi)){let r=``;for(let e=0,t=n.length;e<t;e++)n.charCodeAt(e)>127?r+=`x`:r+=n[e];if(!r.match(Hi)){let r=e.slice(0,t),i=e.slice(t+1),o=n.match(Ui);o&&(r.push(o[1]),i.unshift(o[2])),i.length&&(a=i.join(`.`)+a),this.hostname=r.join(`.`);break}}}}this.hostname.length>Vi&&(this.hostname=``),o&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let s=a.indexOf(`#`);s!==-1&&(this.hash=a.substr(s),a=a.slice(0,s));let c=a.indexOf(`?`);return c!==-1&&(this.search=a.substr(c),a=a.slice(0,c)),a&&(this.pathname=a),Gi[n]&&this.hostname&&!this.pathname&&(this.pathname=``),this},Fi.prototype.parseHost=function(e){let t=Li.exec(e);t&&(t=t[0],t!==`:`&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var qi=Ki,Ji=i({decode:()=>ki,encode:()=>Ni,format:()=>Pi,parse:()=>qi}),Yi=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Xi=/[\0-\x1F\x7F-\x9F]/,Zi=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,Qi=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,$i=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,ea=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,ta=i({Any:()=>Yi,Cc:()=>Xi,Cf:()=>Zi,P:()=>Qi,S:()=>$i,Z:()=>ea}),na=new Uint16Array(`ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xA0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌`.split(``).map(e=>e.charCodeAt(0))),ra=new Uint16Array(`Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢`.split(``).map(e=>e.charCodeAt(0))),ia=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);let aa=String.fromCodePoint??function(e){let t=``;return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function oa(e){return e>=55296&&e<=57343||e>1114111?65533:ia.get(e)??e}var B;(function(e){e[e.NUM=35]=`NUM`,e[e.SEMI=59]=`SEMI`,e[e.EQUALS=61]=`EQUALS`,e[e.ZERO=48]=`ZERO`,e[e.NINE=57]=`NINE`,e[e.LOWER_A=97]=`LOWER_A`,e[e.LOWER_F=102]=`LOWER_F`,e[e.LOWER_X=120]=`LOWER_X`,e[e.LOWER_Z=122]=`LOWER_Z`,e[e.UPPER_A=65]=`UPPER_A`,e[e.UPPER_F=70]=`UPPER_F`,e[e.UPPER_Z=90]=`UPPER_Z`})(B||={});var sa=32,ca;(function(e){e[e.VALUE_LENGTH=49152]=`VALUE_LENGTH`,e[e.BRANCH_LENGTH=16256]=`BRANCH_LENGTH`,e[e.JUMP_TABLE=127]=`JUMP_TABLE`})(ca||={});function la(e){return e>=B.ZERO&&e<=B.NINE}function ua(e){return e>=B.UPPER_A&&e<=B.UPPER_F||e>=B.LOWER_A&&e<=B.LOWER_F}function da(e){return e>=B.UPPER_A&&e<=B.UPPER_Z||e>=B.LOWER_A&&e<=B.LOWER_Z||la(e)}function fa(e){return e===B.EQUALS||da(e)}var V;(function(e){e[e.EntityStart=0]=`EntityStart`,e[e.NumericStart=1]=`NumericStart`,e[e.NumericDecimal=2]=`NumericDecimal`,e[e.NumericHex=3]=`NumericHex`,e[e.NamedEntity=4]=`NamedEntity`})(V||={});var pa;(function(e){e[e.Legacy=0]=`Legacy`,e[e.Strict=1]=`Strict`,e[e.Attribute=2]=`Attribute`})(pa||={});var ma=class{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=V.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=pa.Strict}startEntity(e){this.decodeMode=e,this.state=V.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case V.EntityStart:return e.charCodeAt(t)===B.NUM?(this.state=V.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=V.NamedEntity,this.stateNamedEntity(e,t));case V.NumericStart:return this.stateNumericStart(e,t);case V.NumericDecimal:return this.stateNumericDecimal(e,t);case V.NumericHex:return this.stateNumericHex(e,t);case V.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|sa)===B.LOWER_X?(this.state=V.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=V.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){let i=n-t;this.result=this.result*r**+i+parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){let n=t;for(;t<e.length;){let r=e.charCodeAt(t);if(la(r)||ua(r))t+=1;else return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){let n=t;for(;t<e.length;){let r=e.charCodeAt(t);if(la(r))t+=1;else return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return(n=this.errors)==null||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===B.SEMI)this.consumed+=1;else if(this.decodeMode===pa.Strict)return 0;return this.emitCodePoint(oa(this.result),this.consumed),this.errors&&(e!==B.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:n}=this,r=n[this.treeIndex],i=(r&ca.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let a=e.charCodeAt(t);if(this.treeIndex=ga(n,r,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return this.result===0||this.decodeMode===pa.Attribute&&(i===0||fa(a))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],i=(r&ca.VALUE_LENGTH)>>14,i!==0){if(a===B.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==pa.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&ca.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),(e=this.errors)==null||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(t===1?r[e]&~ca.VALUE_LENGTH:r[e+1],n),t===3&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case V.NamedEntity:return this.result!==0&&(this.decodeMode!==pa.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case V.NumericDecimal:return this.emitNumericEntity(0,2);case V.NumericHex:return this.emitNumericEntity(0,3);case V.NumericStart:return(e=this.errors)==null||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case V.EntityStart:return 0}}};function ha(e){let t=``,n=new ma(e,e=>t+=aa(e));return function(e,r){let i=0,a=0;for(;(a=e.indexOf(`&`,a))>=0;){t+=e.slice(i,a),n.startEntity(r);let o=n.write(e,a+1);if(o<0){i=a+n.end();break}i=a+o,a=o===0?i+1:i}let o=t+e.slice(i);return t=``,o}}function ga(e,t,n,r){let i=(t&ca.BRANCH_LENGTH)>>7,a=t&ca.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){let t=r-a;return t<0||t>=i?-1:e[n+t]-1}let o=n,s=o+i-1;for(;o<=s;){let t=o+s>>>1,n=e[t];if(n<r)o=t+1;else if(n>r)s=t-1;else return e[t+i]}return-1}var _a=ha(na);ha(ra);function va(e,t=pa.Legacy){return _a(e,t)}var ya=i({arrayReplaceAt:()=>Ta,assign:()=>wa,escapeHtml:()=>Ra,escapeRE:()=>Ba,fromCodePoint:()=>Da,has:()=>Ca,isMdAsciiPunct:()=>Ua,isPunctChar:()=>Ha,isSpace:()=>H,isString:()=>xa,isValidEntityCode:()=>Ea,isWhiteSpace:()=>Va,lib:()=>Ga,normalizeReference:()=>Wa,unescapeAll:()=>Na,unescapeMd:()=>Ma});function ba(e){return Object.prototype.toString.call(e)}function xa(e){return ba(e)===`[object String]`}var Sa=Object.prototype.hasOwnProperty;function Ca(e,t){return Sa.call(e,t)}function wa(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if(typeof t!=`object`)throw TypeError(t+`must be object`);Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e}function Ta(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function Ea(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function Da(e){if(e>65535){e-=65536;let t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var Oa=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,ka=RegExp(Oa.source+`|&([a-z#][a-z0-9]{1,31});`,`gi`),Aa=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function ja(e,t){if(t.charCodeAt(0)===35&&Aa.test(t)){let n=t[1].toLowerCase()===`x`?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Ea(n)?Da(n):e}let n=va(e);return n===e?e:n}function Ma(e){return e.indexOf(`\\`)<0?e:e.replace(Oa,`$1`)}function Na(e){return e.indexOf(`\\`)<0&&e.indexOf(`&`)<0?e:e.replace(ka,function(e,t,n){return t||ja(e,n)})}var Pa=/[&<>"]/,Fa=/[&<>"]/g,Ia={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`};function La(e){return Ia[e]}function Ra(e){return Pa.test(e)?e.replace(Fa,La):e}var za=/[.?*+^$[\]\\(){}|-]/g;function Ba(e){return e.replace(za,`\\$&`)}function H(e){switch(e){case 9:case 32:return!0}return!1}function Va(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Ha(e){return Qi.test(e)||$i.test(e)}function Ua(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Wa(e){return e=e.trim().replace(/\s+/g,` `),e.toLowerCase().toUpperCase()}var Ga={mdurl:Ji,ucmicro:ta};function Ka(e,t,n){let r,i,a,o,s=e.posMax,c=e.pos;for(e.pos=t+1,r=1;e.pos<s;){if(a=e.src.charCodeAt(e.pos),a===93&&(r--,r===0)){i=!0;break}if(o=e.pos,e.md.inline.skipToken(e),a===91){if(o===e.pos-1)r++;else if(n)return e.pos=c,-1}}let l=-1;return i&&(l=e.pos),e.pos=c,l}function qa(e,t,n){let r,i=t,a={ok:!1,pos:0,str:``};if(e.charCodeAt(i)===60){for(i++;i<n;){if(r=e.charCodeAt(i),r===10||r===60)return a;if(r===62)return a.pos=i+1,a.str=Na(e.slice(t+1,i)),a.ok=!0,a;if(r===92&&i+1<n){i+=2;continue}i++}return a}let o=0;for(;i<n&&(r=e.charCodeAt(i),!(r===32||r<32||r===127));){if(r===92&&i+1<n){if(e.charCodeAt(i+1)===32)break;i+=2;continue}if(r===40&&(o++,o>32))return a;if(r===41){if(o===0)break;o--}i++}return t===i||o!==0?a:(a.str=Na(e.slice(t,i)),a.pos=i,a.ok=!0,a)}function Ja(e,t,n,r){let i,a=t,o={ok:!1,can_continue:!1,pos:0,str:``,marker:0};if(r)o.str=r.str,o.marker=r.marker;else{if(a>=n)return o;let r=e.charCodeAt(a);if(r!==34&&r!==39&&r!==40)return o;t++,a++,r===40&&(r=41),o.marker=r}for(;a<n;){if(i=e.charCodeAt(a),i===o.marker)return o.pos=a+1,o.str+=Na(e.slice(t,a)),o.ok=!0,o;if(i===40&&o.marker===41)return o;i===92&&a+1<n&&a++,a++}return o.can_continue=!0,o.str+=Na(e.slice(t,a)),o}var Ya=i({parseLinkDestination:()=>qa,parseLinkLabel:()=>Ka,parseLinkTitle:()=>Ja}),U={};U.code_inline=function(e,t,n,r,i){let a=e[t];return`<code`+i.renderAttrs(a)+`>`+Ra(a.content)+`</code>`},U.code_block=function(e,t,n,r,i){let a=e[t];return`<pre`+i.renderAttrs(a)+`><code>`+Ra(e[t].content)+`</code></pre>
1673
- `},U.fence=function(e,t,n,r,i){let a=e[t],o=a.info?Na(a.info).trim():``,s=``,c=``;if(o){let e=o.split(/(\s+)/g);s=e[0],c=e.slice(2).join(``)}let l;if(l=n.highlight&&n.highlight(a.content,s,c)||Ra(a.content),l.indexOf(`<pre`)===0)return l+`
1674
- `;if(o){let e=a.attrIndex(`class`),t=a.attrs?a.attrs.slice():[];e<0?t.push([`class`,n.langPrefix+s]):(t[e]=t[e].slice(),t[e][1]+=` `+n.langPrefix+s);let r={attrs:t};return`<pre><code${i.renderAttrs(r)}>${l}</code></pre>\n`}return`<pre><code${i.renderAttrs(a)}>${l}</code></pre>\n`},U.image=function(e,t,n,r,i){let a=e[t];return a.attrs[a.attrIndex(`alt`)][1]=i.renderInlineAsText(a.children,n,r),i.renderToken(e,t,n)},U.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
1675
- `:`<br>
1676
- `},U.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
1677
- `:`<br>
1678
- `:`
1679
- `},U.text=function(e,t){return Ra(e[t].content)},U.html_block=function(e,t){return e[t].content},U.html_inline=function(e,t){return e[t].content};function Xa(){this.rules=wa({},U)}Xa.prototype.renderAttrs=function(e){let t,n,r;if(!e.attrs)return``;for(r=``,t=0,n=e.attrs.length;t<n;t++)r+=` `+Ra(e.attrs[t][0])+`="`+Ra(e.attrs[t][1])+`"`;return r},Xa.prototype.renderToken=function(e,t,n){let r=e[t],i=``;if(r.hidden)return``;r.block&&r.nesting!==-1&&t&&e[t-1].hidden&&(i+=`
1680
- `),i+=(r.nesting===-1?`</`:`<`)+r.tag,i+=this.renderAttrs(r),r.nesting===0&&n.xhtmlOut&&(i+=` /`);let a=!1;if(r.block&&(a=!0,r.nesting===1&&t+1<e.length)){let n=e[t+1];(n.type===`inline`||n.hidden||n.nesting===-1&&n.tag===r.tag)&&(a=!1)}return i+=a?`>
1681
- `:`>`,i},Xa.prototype.renderInline=function(e,t,n){let r=``,i=this.rules;for(let a=0,o=e.length;a<o;a++){let o=e[a].type;i[o]===void 0?r+=this.renderToken(e,a,t):r+=i[o](e,a,t,n,this)}return r},Xa.prototype.renderInlineAsText=function(e,t,n){let r=``;for(let i=0,a=e.length;i<a;i++)switch(e[i].type){case`text`:r+=e[i].content;break;case`image`:r+=this.renderInlineAsText(e[i].children,t,n);break;case`html_inline`:case`html_block`:r+=e[i].content;break;case`softbreak`:case`hardbreak`:r+=`
1682
- `;break;default:}return r},Xa.prototype.render=function(e,t,n){let r=``,i=this.rules;for(let a=0,o=e.length;a<o;a++){let o=e[a].type;o===`inline`?r+=this.renderInline(e[a].children,t,n):i[o]===void 0?r+=this.renderToken(e,a,t,n):r+=i[o](e,a,t,n,this)}return r};var Za=Xa;function W(){this.__rules__=[],this.__cache__=null}W.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},W.prototype.__compile__=function(){let e=this,t=[``];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){t.indexOf(e)<0&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))})})},W.prototype.at=function(e,t,n){let r=this.__find__(e),i=n||{};if(r===-1)throw Error(`Parser rule not found: `+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},W.prototype.before=function(e,t,n,r){let i=this.__find__(e),a=r||{};if(i===-1)throw Error(`Parser rule not found: `+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null},W.prototype.after=function(e,t,n,r){let i=this.__find__(e),a=r||{};if(i===-1)throw Error(`Parser rule not found: `+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null},W.prototype.push=function(e,t,n){let r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},W.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(function(e){let r=this.__find__(e);if(r<0){if(t)return;throw Error(`Rules manager: invalid rule name `+e)}this.__rules__[r].enabled=!0,n.push(e)},this),this.__cache__=null,n},W.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},W.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(function(e){let r=this.__find__(e);if(r<0){if(t)return;throw Error(`Rules manager: invalid rule name `+e)}this.__rules__[r].enabled=!1,n.push(e)},this),this.__cache__=null,n},W.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};var Qa=W;function $a(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content=``,this.markup=``,this.info=``,this.meta=null,this.block=!1,this.hidden=!1}$a.prototype.attrIndex=function(e){if(!this.attrs)return-1;let t=this.attrs;for(let n=0,r=t.length;n<r;n++)if(t[n][0]===e)return n;return-1},$a.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},$a.prototype.attrSet=function(e,t){let n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},$a.prototype.attrGet=function(e){let t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},$a.prototype.attrJoin=function(e,t){let n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+` `+t};var eo=$a;function to(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}to.prototype.Token=eo;var no=to,ro=/\r\n?|\n/g,io=/\0/g;function ao(e){let t;t=e.src.replace(ro,`
1683
- `),t=t.replace(io,`�`),e.src=t}function oo(e){let t;e.inlineMode?(t=new e.Token(`inline`,``,0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function so(e){let t=e.tokens;for(let n=0,r=t.length;n<r;n++){let r=t[n];r.type===`inline`&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}function co(e){return/^<a[>\s]/i.test(e)}function lo(e){return/^<\/a\s*>/i.test(e)}function uo(e){let t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if(t[n].type!==`inline`||!e.md.linkify.pretest(t[n].content))continue;let r=t[n].children,i=0;for(let a=r.length-1;a>=0;a--){let o=r[a];if(o.type===`link_close`){for(a--;r[a].level!==o.level&&r[a].type!==`link_open`;)a--;continue}if(o.type===`html_inline`&&(co(o.content)&&i>0&&i--,lo(o.content)&&i++),!(i>0)&&o.type===`text`&&e.md.linkify.test(o.content)){let i=o.content,s=e.md.linkify.match(i),c=[],l=o.level,u=0;s.length>0&&s[0].index===0&&a>0&&r[a-1].type===`text_special`&&(s=s.slice(1));for(let t=0;t<s.length;t++){let n=s[t].url,r=e.md.normalizeLink(n);if(!e.md.validateLink(r))continue;let a=s[t].text;a=s[t].schema?s[t].schema===`mailto:`&&!/^mailto:/i.test(a)?e.md.normalizeLinkText(`mailto:`+a).replace(/^mailto:/,``):e.md.normalizeLinkText(a):e.md.normalizeLinkText(`http://`+a).replace(/^http:\/\//,``);let o=s[t].index;if(o>u){let t=new e.Token(`text`,``,0);t.content=i.slice(u,o),t.level=l,c.push(t)}let d=new e.Token(`link_open`,`a`,1);d.attrs=[[`href`,r]],d.level=l++,d.markup=`linkify`,d.info=`auto`,c.push(d);let f=new e.Token(`text`,``,0);f.content=a,f.level=l,c.push(f);let p=new e.Token(`link_close`,`a`,-1);p.level=--l,p.markup=`linkify`,p.info=`auto`,c.push(p),u=s[t].lastIndex}if(u<i.length){let t=new e.Token(`text`,``,0);t.content=i.slice(u),t.level=l,c.push(t)}t[n].children=r=Ta(r,a,c)}}}}var fo=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,po=/\((c|tm|r)\)/i,mo=/\((c|tm|r)\)/gi,ho={c:`©`,r:`®`,tm:`™`};function go(e,t){return ho[t.toLowerCase()]}function _o(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type===`text`&&!t&&(r.content=r.content.replace(mo,go)),r.type===`link_open`&&r.info===`auto`&&t--,r.type===`link_close`&&r.info===`auto`&&t++}}function vo(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type===`text`&&!t&&fo.test(r.content)&&(r.content=r.content.replace(/\+-/g,`±`).replace(/\.{2,}/g,`…`).replace(/([?!])…/g,`$1..`).replace(/([?!]){4,}/g,`$1$1$1`).replace(/,{2,}/g,`,`).replace(/(^|[^-])---(?=[^-]|$)/gm,`$1—`).replace(/(^|\s)--(?=\s|$)/gm,`$1–`).replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,`$1–`)),r.type===`link_open`&&r.info===`auto`&&t--,r.type===`link_close`&&r.info===`auto`&&t++}}function yo(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type===`inline`&&(po.test(e.tokens[t].content)&&_o(e.tokens[t].children),fo.test(e.tokens[t].content)&&vo(e.tokens[t].children))}var bo=/['"]/,xo=/['"]/g,So=`’`;function Co(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function wo(e,t){let n,r=[];for(let i=0;i<e.length;i++){let a=e[i],o=e[i].level;for(n=r.length-1;n>=0&&!(r[n].level<=o);n--);if(r.length=n+1,a.type!==`text`)continue;let s=a.content,c=0,l=s.length;OUTER:for(;c<l;){xo.lastIndex=c;let u=xo.exec(s);if(!u)break;let d=!0,f=!0;c=u.index+1;let p=u[0]===`'`,m=32;if(u.index-1>=0)m=s.charCodeAt(u.index-1);else for(n=i-1;n>=0&&!(e[n].type===`softbreak`||e[n].type===`hardbreak`);n--)if(e[n].content){m=e[n].content.charCodeAt(e[n].content.length-1);break}let h=32;if(c<l)h=s.charCodeAt(c);else for(n=i+1;n<e.length&&!(e[n].type===`softbreak`||e[n].type===`hardbreak`);n++)if(e[n].content){h=e[n].content.charCodeAt(0);break}let g=Ua(m)||Ha(String.fromCharCode(m)),_=Ua(h)||Ha(String.fromCharCode(h)),v=Va(m),y=Va(h);if(y?d=!1:_&&(v||g||(d=!1)),v?f=!1:g&&(y||_||(f=!1)),h===34&&u[0]===`"`&&m>=48&&m<=57&&(f=d=!1),d&&f&&(d=g,f=_),!d&&!f){p&&(a.content=Co(a.content,u.index,So));continue}if(f)for(n=r.length-1;n>=0;n--){let d=r[n];if(r[n].level<o)break;if(d.single===p&&r[n].level===o){d=r[n];let o,f;p?(o=t.md.options.quotes[2],f=t.md.options.quotes[3]):(o=t.md.options.quotes[0],f=t.md.options.quotes[1]),a.content=Co(a.content,u.index,f),e[d.token].content=Co(e[d.token].content,d.pos,o),c+=f.length-1,d.token===i&&(c+=o.length-1),s=a.content,l=s.length,r.length=n;continue OUTER}}d?r.push({token:i,pos:u.index,single:p,level:o}):f&&p&&(a.content=Co(a.content,u.index,So))}}}function To(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!==`inline`||!bo.test(e.tokens[t].content)||wo(e.tokens[t].children,e)}function Eo(e){let t,n,r=e.tokens,i=r.length;for(let e=0;e<i;e++){if(r[e].type!==`inline`)continue;let i=r[e].children,a=i.length;for(t=0;t<a;t++)i[t].type===`text_special`&&(i[t].type=`text`);for(t=n=0;t<a;t++)i[t].type===`text`&&t+1<a&&i[t+1].type===`text`?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}}var Do=[[`normalize`,ao],[`block`,oo],[`inline`,so],[`linkify`,uo],[`replacements`,yo],[`smartquotes`,To],[`text_join`,Eo]];function Oo(){this.ruler=new Qa;for(let e=0;e<Do.length;e++)this.ruler.push(Do[e][0],Do[e][1])}Oo.prototype.process=function(e){let t=this.ruler.getRules(``);for(let n=0,r=t.length;n<r;n++)t[n](e)},Oo.prototype.State=no;var ko=Oo;function G(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType=`root`,this.level=0;let i=this.src;for(let e=0,t=0,n=0,r=0,a=i.length,o=!1;t<a;t++){let s=i.charCodeAt(t);if(!o)if(H(s)){n++,s===9?r+=4-r%4:r++;continue}else o=!0;(s===10||t===a-1)&&(s!==10&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(n),this.sCount.push(r),this.bsCount.push(0),o=!1,n=0,r=0,e=t+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}G.prototype.push=function(e,t,n){let r=new eo(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},G.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},G.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},G.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t&&H(this.src.charCodeAt(e));e++);return e},G.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!H(this.src.charCodeAt(--e)))return e+1;return e},G.prototype.skipChars=function(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},G.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},G.prototype.getLines=function(e,t,n,r){if(e>=t)return``;let i=Array(t-e);for(let a=0,o=e;o<t;o++,a++){let e=0,s=this.bMarks[o],c=s,l;for(l=o+1<t||r?this.eMarks[o]+1:this.eMarks[o];c<l&&e<n;){let t=this.src.charCodeAt(c);if(H(t))t===9?e+=4-(e+this.bsCount[o])%4:e++;else if(c-s<this.tShift[o])e++;else break;c++}e>n?i[a]=Array(e-n+1).join(` `)+this.src.slice(c,l):i[a]=this.src.slice(c,l)}return i.join(``)},G.prototype.Token=eo;var Ao=G,jo=65536;function Mo(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function No(e){let t=[],n=e.length,r=0,i=e.charCodeAt(r),a=!1,o=0,s=``;for(;r<n;)i===124&&(a?(s+=e.substring(o,r-1),o=r):(t.push(s+e.substring(o,r)),s=``,o=r+1)),a=i===92,r++,i=e.charCodeAt(r);return t.push(s+e.substring(o)),t}function Po(e,t,n,r){if(t+2>n)return!1;let i=t+1;if(e.sCount[i]<e.blkIndent||e.sCount[i]-e.blkIndent>=4)return!1;let a=e.bMarks[i]+e.tShift[i];if(a>=e.eMarks[i])return!1;let o=e.src.charCodeAt(a++);if(o!==124&&o!==45&&o!==58||a>=e.eMarks[i])return!1;let s=e.src.charCodeAt(a++);if(s!==124&&s!==45&&s!==58&&!H(s)||o===45&&H(s))return!1;for(;a<e.eMarks[i];){let t=e.src.charCodeAt(a);if(t!==124&&t!==45&&t!==58&&!H(t))return!1;a++}let c=Mo(e,t+1),l=c.split(`|`),u=[];for(let e=0;e<l.length;e++){let t=l[e].trim();if(!t){if(e===0||e===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(t))return!1;t.charCodeAt(t.length-1)===58?u.push(t.charCodeAt(0)===58?`center`:`right`):t.charCodeAt(0)===58?u.push(`left`):u.push(``)}if(c=Mo(e,t).trim(),c.indexOf(`|`)===-1||e.sCount[t]-e.blkIndent>=4)return!1;l=No(c),l.length&&l[0]===``&&l.shift(),l.length&&l[l.length-1]===``&&l.pop();let d=l.length;if(d===0||d!==u.length)return!1;if(r)return!0;let f=e.parentType;e.parentType=`table`;let p=e.md.block.ruler.getRules(`blockquote`),m=e.push(`table_open`,`table`,1),h=[t,0];m.map=h;let g=e.push(`thead_open`,`thead`,1);g.map=[t,t+1];let _=e.push(`tr_open`,`tr`,1);_.map=[t,t+1];for(let t=0;t<l.length;t++){let n=e.push(`th_open`,`th`,1);u[t]&&(n.attrs=[[`style`,`text-align:`+u[t]]]);let r=e.push(`inline`,``,0);r.content=l[t].trim(),r.children=[],e.push(`th_close`,`th`,-1)}e.push(`tr_close`,`tr`,-1),e.push(`thead_close`,`thead`,-1);let v,y=0;for(i=t+2;i<n&&!(e.sCount[i]<e.blkIndent);i++){let r=!1;for(let t=0,a=p.length;t<a;t++)if(p[t](e,i,n,!0)){r=!0;break}if(r||(c=Mo(e,i).trim(),!c)||e.sCount[i]-e.blkIndent>=4||(l=No(c),l.length&&l[0]===``&&l.shift(),l.length&&l[l.length-1]===``&&l.pop(),y+=d-l.length,y>jo))break;if(i===t+2){let n=e.push(`tbody_open`,`tbody`,1);n.map=v=[t+2,0]}let a=e.push(`tr_open`,`tr`,1);a.map=[i,i+1];for(let t=0;t<d;t++){let n=e.push(`td_open`,`td`,1);u[t]&&(n.attrs=[[`style`,`text-align:`+u[t]]]);let r=e.push(`inline`,``,0);r.content=l[t]?l[t].trim():``,r.children=[],e.push(`td_close`,`td`,-1)}e.push(`tr_close`,`tr`,-1)}return v&&(e.push(`tbody_close`,`tbody`,-1),v[1]=i),e.push(`table_close`,`table`,-1),h[1]=i,e.parentType=f,e.line=i,!0}function Fo(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,i=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,i=r;continue}break}e.line=i;let a=e.push(`code_block`,`code`,0);return a.content=e.getLines(t,i,4+e.blkIndent,!1)+`
1684
- `,a.map=[t,e.line],!0}function Io(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>a)return!1;let o=e.src.charCodeAt(i);if(o!==126&&o!==96)return!1;let s=i;i=e.skipChars(i,o);let c=i-s;if(c<3)return!1;let l=e.src.slice(s,i),u=e.src.slice(i,a);if(o===96&&u.indexOf(String.fromCharCode(o))>=0)return!1;if(r)return!0;let d=t,f=!1;for(;d++,!(d>=n||(i=s=e.bMarks[d]+e.tShift[d],a=e.eMarks[d],i<a&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(i)===o&&!(e.sCount[d]-e.blkIndent>=4)&&(i=e.skipChars(i,o),!(i-s<c)&&(i=e.skipSpaces(i),!(i<a)))){f=!0;break}c=e.sCount[t],e.line=d+(f?1:0);let p=e.push(`fence`,`code`,0);return p.info=u,p.content=e.getLines(t+1,d,c,!0),p.markup=l,p.map=[t,e.line],!0}function Lo(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==62)return!1;if(r)return!0;let s=[],c=[],l=[],u=[],d=e.md.block.ruler.getRules(`blockquote`),f=e.parentType;e.parentType=`blockquote`;let p=!1,m;for(m=t;m<n;m++){let t=e.sCount[m]<e.blkIndent;if(i=e.bMarks[m]+e.tShift[m],a=e.eMarks[m],i>=a)break;if(e.src.charCodeAt(i++)===62&&!t){let t=e.sCount[m]+1,n,r;e.src.charCodeAt(i)===32?(i++,t++,r=!1,n=!0):e.src.charCodeAt(i)===9?(n=!0,(e.bsCount[m]+t)%4==3?(i++,t++,r=!1):r=!0):n=!1;let o=t;for(s.push(e.bMarks[m]),e.bMarks[m]=i;i<a;){let t=e.src.charCodeAt(i);if(H(t))t===9?o+=4-(o+e.bsCount[m]+(r?1:0))%4:o++;else break;i++}p=i>=a,c.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+(n?1:0),l.push(e.sCount[m]),e.sCount[m]=o-t,u.push(e.tShift[m]),e.tShift[m]=i-e.bMarks[m];continue}if(p)break;let r=!1;for(let t=0,i=d.length;t<i;t++)if(d[t](e,m,n,!0)){r=!0;break}if(r){e.lineMax=m,e.blkIndent!==0&&(s.push(e.bMarks[m]),c.push(e.bsCount[m]),u.push(e.tShift[m]),l.push(e.sCount[m]),e.sCount[m]-=e.blkIndent);break}s.push(e.bMarks[m]),c.push(e.bsCount[m]),u.push(e.tShift[m]),l.push(e.sCount[m]),e.sCount[m]=-1}let h=e.blkIndent;e.blkIndent=0;let g=e.push(`blockquote_open`,`blockquote`,1);g.markup=`>`;let _=[t,0];g.map=_,e.md.block.tokenize(e,t,m);let v=e.push(`blockquote_close`,`blockquote`,-1);v.markup=`>`,e.lineMax=o,e.parentType=f,_[1]=e.line;for(let n=0;n<u.length;n++)e.bMarks[n+t]=s[n],e.tShift[n+t]=u[n],e.sCount[n+t]=l[n],e.bsCount[n+t]=c[n];return e.blkIndent=h,!0}function Ro(e,t,n,r){let i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t],o=e.src.charCodeAt(a++);if(o!==42&&o!==45&&o!==95)return!1;let s=1;for(;a<i;){let t=e.src.charCodeAt(a++);if(t!==o&&!H(t))return!1;t===o&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;let c=e.push(`hr`,`hr`,0);return c.map=[t,e.line],c.markup=Array(s+1).join(String.fromCharCode(o)),!0}function zo(e,t){let n=e.eMarks[t],r=e.bMarks[t]+e.tShift[t],i=e.src.charCodeAt(r++);return i!==42&&i!==45&&i!==43||r<n&&!H(e.src.charCodeAt(r))?-1:r}function Bo(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t],i=n;if(i+1>=r)return-1;let a=e.src.charCodeAt(i++);if(a<48||a>57)return-1;for(;;){if(i>=r)return-1;if(a=e.src.charCodeAt(i++),a>=48&&a<=57){if(i-n>=10)return-1;continue}if(a===41||a===46)break;return-1}return i<r&&(a=e.src.charCodeAt(i),!H(a))?-1:i}function Vo(e,t){let n=e.level+2;for(let r=t+2,i=e.tokens.length-2;r<i;r++)e.tokens[r].level===n&&e.tokens[r].type===`paragraph_open`&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function Ho(e,t,n,r){let i,a,o,s,c=t,l=!0;if(e.sCount[c]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[c]-e.listIndent>=4&&e.sCount[c]<e.blkIndent)return!1;let u=!1;r&&e.parentType===`paragraph`&&e.sCount[c]>=e.blkIndent&&(u=!0);let d,f,p;if((p=Bo(e,c))>=0){if(d=!0,o=e.bMarks[c]+e.tShift[c],f=Number(e.src.slice(o,p-1)),u&&f!==1)return!1}else if((p=zo(e,c))>=0)d=!1;else return!1;if(u&&e.skipSpaces(p)>=e.eMarks[c])return!1;if(r)return!0;let m=e.src.charCodeAt(p-1),h=e.tokens.length;d?(s=e.push(`ordered_list_open`,`ol`,1),f!==1&&(s.attrs=[[`start`,f]])):s=e.push(`bullet_list_open`,`ul`,1);let g=[c,0];s.map=g,s.markup=String.fromCharCode(m);let _=!1,v=e.md.block.ruler.getRules(`list`),y=e.parentType;for(e.parentType=`list`;c<n;){a=p,i=e.eMarks[c];let t=e.sCount[c]+p-(e.bMarks[c]+e.tShift[c]),r=t;for(;a<i;){let t=e.src.charCodeAt(a);if(t===9)r+=4-(r+e.bsCount[c])%4;else if(t===32)r++;else break;a++}let u=a,f;f=u>=i?1:r-t,f>4&&(f=1);let h=t+f;s=e.push(`list_item_open`,`li`,1),s.markup=String.fromCharCode(m);let g=[c,0];s.map=g,d&&(s.info=e.src.slice(o,p-1));let y=e.tight,ee=e.tShift[c],te=e.sCount[c],ne=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=h,e.tight=!0,e.tShift[c]=u-e.bMarks[c],e.sCount[c]=r,u>=i&&e.isEmpty(c+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,c,n,!0),(!e.tight||_)&&(l=!1),_=e.line-c>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=ne,e.tShift[c]=ee,e.sCount[c]=te,e.tight=y,s=e.push(`list_item_close`,`li`,-1),s.markup=String.fromCharCode(m),c=e.line,g[1]=c,c>=n||e.sCount[c]<e.blkIndent||e.sCount[c]-e.blkIndent>=4)break;let re=!1;for(let t=0,r=v.length;t<r;t++)if(v[t](e,c,n,!0)){re=!0;break}if(re)break;if(d){if(p=Bo(e,c),p<0)break;o=e.bMarks[c]+e.tShift[c]}else if(p=zo(e,c),p<0)break;if(m!==e.src.charCodeAt(p-1))break}return s=d?e.push(`ordered_list_close`,`ol`,-1):e.push(`bullet_list_close`,`ul`,-1),s.markup=String.fromCharCode(m),g[1]=c,e.line=c,e.parentType=y,l&&Vo(e,h),!0}function Uo(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==91)return!1;function s(t){let n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){let r=e.md.block.ruler.getRules(`reference`),i=e.parentType;e.parentType=`reference`;let a=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,t,n,!0)){a=!0;break}if(e.parentType=i,a)return null}let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];return e.src.slice(i,a+1)}let c=e.src.slice(i,a+1);a=c.length;let l=-1;for(i=1;i<a;i++){let e=c.charCodeAt(i);if(e===91)return!1;if(e===93){l=i;break}else if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(e===92&&(i++,i<a&&c.charCodeAt(i)===10)){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}}if(l<0||c.charCodeAt(l+1)!==58)return!1;for(i=l+2;i<a;i++){let e=c.charCodeAt(i);if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(!H(e))break}let u=e.md.helpers.parseLinkDestination(c,i,a);if(!u.ok)return!1;let d=e.md.normalizeLink(u.str);if(!e.md.validateLink(d))return!1;i=u.pos;let f=i,p=o,m=i;for(;i<a;i++){let e=c.charCodeAt(i);if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(!H(e))break}let h=e.md.helpers.parseLinkTitle(c,i,a);for(;h.can_continue;){let t=s(o);if(t===null)break;c+=t,i=a,a=c.length,o++,h=e.md.helpers.parseLinkTitle(c,i,a,h)}let g;for(i<a&&m!==i&&h.ok?(g=h.str,i=h.pos):(g=``,i=f,o=p);i<a&&H(c.charCodeAt(i));)i++;if(i<a&&c.charCodeAt(i)!==10&&g)for(g=``,i=f,o=p;i<a&&H(c.charCodeAt(i));)i++;if(i<a&&c.charCodeAt(i)!==10)return!1;let _=Wa(c.slice(1,l));return _?r?!0:(e.env.references===void 0&&(e.env.references={}),e.env.references[_]===void 0&&(e.env.references[_]={title:g,href:d}),e.line=o,!0):!1}var Wo=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),Go=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,Ko=RegExp(`^(?:`+Go+`|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)`),qo=RegExp(`^(?:`+Go+`|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>)`),Jo=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[RegExp(`^</?(`+Wo.join(`|`)+`)(?=(\\s|/?>|$))`,`i`),/^$/,!0],[RegExp(qo.source+`\\s*$`),/^$/,!1]];function Yo(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let o=e.src.slice(i,a),s=0;for(;s<Jo.length&&!Jo[s][0].test(o);s++);if(s===Jo.length)return!1;if(r)return Jo[s][2];let c=t+1;if(!Jo[s][1].test(o)){for(;c<n&&!(e.sCount[c]<e.blkIndent);c++)if(i=e.bMarks[c]+e.tShift[c],a=e.eMarks[c],o=e.src.slice(i,a),Jo[s][1].test(o)){o.length!==0&&c++;break}}e.line=c;let l=e.push(`html_block`,``,0);return l.map=[t,c],l.content=e.getLines(t,c,e.blkIndent,!0),!0}function Xo(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.src.charCodeAt(i);if(o!==35||i>=a)return!1;let s=1;for(o=e.src.charCodeAt(++i);o===35&&i<a&&s<=6;)s++,o=e.src.charCodeAt(++i);if(s>6||i<a&&!H(o))return!1;if(r)return!0;a=e.skipSpacesBack(a,i);let c=e.skipCharsBack(a,35,i);c>i&&H(e.src.charCodeAt(c-1))&&(a=c),e.line=t+1;let l=e.push(`heading_open`,`h`+String(s),1);l.markup=`########`.slice(0,s),l.map=[t,e.line];let u=e.push(`inline`,``,0);u.content=e.src.slice(i,a).trim(),u.map=[t,e.line],u.children=[];let d=e.push(`heading_close`,`h`+String(s),-1);return d.markup=`########`.slice(0,s),!0}function Zo(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`);if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.parentType;e.parentType=`paragraph`;let a=0,o,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s],n=e.eMarks[s];if(t<n&&(o=e.src.charCodeAt(t),(o===45||o===61)&&(t=e.skipChars(t,o),t=e.skipSpaces(t),t>=n))){a=o===61?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let i=0,a=r.length;i<a;i++)if(r[i](e,s,n,!0)){t=!0;break}if(t)break}if(!a)return!1;let c=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s+1;let l=e.push(`heading_open`,`h`+String(a),1);l.markup=String.fromCharCode(o),l.map=[t,e.line];let u=e.push(`inline`,``,0);u.content=c,u.map=[t,e.line-1],u.children=[];let d=e.push(`heading_close`,`h`+String(a),-1);return d.markup=String.fromCharCode(o),e.parentType=i,!0}function Qo(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`),i=e.parentType,a=t+1;for(e.parentType=`paragraph`;a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3||e.sCount[a]<0)continue;let t=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,a,n,!0)){t=!0;break}if(t)break}let o=e.getLines(t,a,e.blkIndent,!1).trim();e.line=a;let s=e.push(`paragraph_open`,`p`,1);s.map=[t,e.line];let c=e.push(`inline`,``,0);return c.content=o,c.map=[t,e.line],c.children=[],e.push(`paragraph_close`,`p`,-1),e.parentType=i,!0}var $o=[[`table`,Po,[`paragraph`,`reference`]],[`code`,Fo],[`fence`,Io,[`paragraph`,`reference`,`blockquote`,`list`]],[`blockquote`,Lo,[`paragraph`,`reference`,`blockquote`,`list`]],[`hr`,Ro,[`paragraph`,`reference`,`blockquote`,`list`]],[`list`,Ho,[`paragraph`,`reference`,`blockquote`]],[`reference`,Uo],[`html_block`,Yo,[`paragraph`,`reference`,`blockquote`]],[`heading`,Xo,[`paragraph`,`reference`,`blockquote`]],[`lheading`,Zo],[`paragraph`,Qo]];function es(){this.ruler=new Qa;for(let e=0;e<$o.length;e++)this.ruler.push($o[e][0],$o[e][1],{alt:($o[e][2]||[]).slice()})}es.prototype.tokenize=function(e,t,n){let r=this.ruler.getRules(``),i=r.length,a=e.md.options.maxNesting,o=t,s=!1;for(;o<n&&(e.line=o=e.skipEmptyLines(o),!(o>=n||e.sCount[o]<e.blkIndent));){if(e.level>=a){e.line=n;break}let t=e.line,c=!1;for(let a=0;a<i;a++)if(c=r[a](e,o,n,!1),c){if(t>=e.line)throw Error(`block rule didn't increment state.line`);break}if(!c)throw Error(`none of the block rules matched`);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),o=e.line,o<n&&e.isEmpty(o)&&(s=!0,o++,e.line=o)}},es.prototype.parse=function(e,t,n,r){if(!e)return;let i=new this.State(e,t,n,r);this.tokenize(i,i.line,i.lineMax)},es.prototype.State=Ao;var ts=es;function ns(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending=``,this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}ns.prototype.pushPending=function(){let e=new eo(`text`,``,0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending=``,e},ns.prototype.push=function(e,t,n){this.pending&&this.pushPending();let r=new eo(e,t,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},ns.prototype.scanDelims=function(e,t){let n=this.posMax,r=this.src.charCodeAt(e),i=e>0?this.src.charCodeAt(e-1):32,a=e;for(;a<n&&this.src.charCodeAt(a)===r;)a++;let o=a-e,s=a<n?this.src.charCodeAt(a):32,c=Ua(i)||Ha(String.fromCharCode(i)),l=Ua(s)||Ha(String.fromCharCode(s)),u=Va(i),d=Va(s),f=!d&&(!l||u||c),p=!u&&(!c||d||l);return{can_open:f&&(t||!p||c),can_close:p&&(t||!f||l),length:o}},ns.prototype.Token=eo;var rs=ns;function is(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function as(e,t){let n=e.pos;for(;n<e.posMax&&!is(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}var os=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function ss(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;let i=e.pending.match(os);if(!i)return!1;let a=i[1],o=e.md.linkify.matchAtStart(e.src.slice(n-a.length));if(!o)return!1;let s=o.url;if(s.length<=a.length)return!1;s=s.replace(/\*+$/,``);let c=e.md.normalizeLink(s);if(!e.md.validateLink(c))return!1;if(!t){e.pending=e.pending.slice(0,-a.length);let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,c]],t.markup=`linkify`,t.info=`auto`;let n=e.push(`text`,``,0);n.content=e.md.normalizeLinkText(s);let r=e.push(`link_close`,`a`,-1);r.markup=`linkify`,r.info=`auto`}return e.pos+=s.length-a.length,!0}function cs(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;let r=e.pending.length-1,i=e.posMax;if(!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){let t=r-1;for(;t>=1&&e.pending.charCodeAt(t-1)===32;)t--;e.pending=e.pending.slice(0,t),e.push(`hardbreak`,`br`,0)}else e.pending=e.pending.slice(0,-1),e.push(`softbreak`,`br`,0);else e.push(`softbreak`,`br`,0);for(n++;n<i&&H(e.src.charCodeAt(n));)n++;return e.pos=n,!0}var ls=[];for(let e=0;e<256;e++)ls.push(0);`\\!"#$%&'()*+,./:;<=>?@[]^_\`{|}~-`.split(``).forEach(function(e){ls[e.charCodeAt(0)]=1});function us(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let i=e.src.charCodeAt(n);if(i===10){for(t||e.push(`hardbreak`,`br`,0),n++;n<r&&(i=e.src.charCodeAt(n),H(i));)n++;return e.pos=n,!0}let a=e.src[n];if(i>=55296&&i<=56319&&n+1<r){let t=e.src.charCodeAt(n+1);t>=56320&&t<=57343&&(a+=e.src[n+1],n++)}let o=`\\`+a;if(!t){let t=e.push(`text_special`,``,0);i<256&&ls[i]!==0?t.content=a:t.content=o,t.markup=o,t.info=`escape`}return e.pos=n+1,!0}function ds(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;let r=n;n++;let i=e.posMax;for(;n<i&&e.src.charCodeAt(n)===96;)n++;let a=e.src.slice(r,n),o=a.length;if(e.backticksScanned&&(e.backticks[o]||0)<=r)return t||(e.pending+=a),e.pos+=o,!0;let s=n,c;for(;(c=e.src.indexOf("`",s))!==-1;){for(s=c+1;s<i&&e.src.charCodeAt(s)===96;)s++;let r=s-c;if(r===o){if(!t){let t=e.push(`code_inline`,`code`,0);t.markup=a,t.content=e.src.slice(n,c).replace(/\n/g,` `).replace(/^ (.+) $/,`$1`)}return e.pos=s,!0}e.backticks[r]=c}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=o,!0}function fs(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;let i=e.scanDelims(e.pos,!0),a=i.length,o=String.fromCharCode(r);if(a<2)return!1;let s;a%2&&(s=e.push(`text`,``,0),s.content=o,a--);for(let t=0;t<a;t+=2)s=e.push(`text`,``,0),s.content=o+o,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}function ps(e,t){let n,r=[],i=t.length;for(let a=0;a<i;a++){let i=t[a];if(i.marker!==126||i.end===-1)continue;let o=t[i.end];n=e.tokens[i.token],n.type=`s_open`,n.tag=`s`,n.nesting=1,n.markup=`~~`,n.content=``,n=e.tokens[o.token],n.type=`s_close`,n.tag=`s`,n.nesting=-1,n.markup=`~~`,n.content=``,e.tokens[o.token-1].type===`text`&&e.tokens[o.token-1].content===`~`&&r.push(o.token-1)}for(;r.length;){let t=r.pop(),i=t+1;for(;i<e.tokens.length&&e.tokens[i].type===`s_close`;)i++;i--,t!==i&&(n=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=n)}}function ms(e){let t=e.tokens_meta,n=e.tokens_meta.length;ps(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&ps(e,t[r].delimiters)}var hs={tokenize:fs,postProcess:ms};function gs(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;let i=e.scanDelims(e.pos,r===42);for(let t=0;t<i.length;t++){let t=e.push(`text`,``,0);t.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0}function _s(e,t){let n=t.length;for(let r=n-1;r>=0;r--){let n=t[r];if(n.marker!==95&&n.marker!==42||n.end===-1)continue;let i=t[n.end],a=r>0&&t[r-1].end===n.end+1&&t[r-1].marker===n.marker&&t[r-1].token===n.token-1&&t[n.end+1].token===i.token+1,o=String.fromCharCode(n.marker),s=e.tokens[n.token];s.type=a?`strong_open`:`em_open`,s.tag=a?`strong`:`em`,s.nesting=1,s.markup=a?o+o:o,s.content=``;let c=e.tokens[i.token];c.type=a?`strong_close`:`em_close`,c.tag=a?`strong`:`em`,c.nesting=-1,c.markup=a?o+o:o,c.content=``,a&&(e.tokens[t[r-1].token].content=``,e.tokens[t[n.end+1].token].content=``,r--)}}function vs(e){let t=e.tokens_meta,n=e.tokens_meta.length;_s(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&_s(e,t[r].delimiters)}var ys={tokenize:gs,postProcess:vs};function bs(e,t){let n,r,i,a,o=``,s=``,c=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;let u=e.pos,d=e.posMax,f=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let m=p+1;if(m<d&&e.src.charCodeAt(m)===40){for(l=!1,m++;m<d&&(n=e.src.charCodeAt(m),!(!H(n)&&n!==10));m++);if(m>=d)return!1;if(c=m,i=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),i.ok){for(o=e.md.normalizeLink(i.str),e.md.validateLink(o)?m=i.pos:o=``,c=m;m<d&&(n=e.src.charCodeAt(m),!(!H(n)&&n!==10));m++);if(i=e.md.helpers.parseLinkTitle(e.src,m,e.posMax),m<d&&c!==m&&i.ok)for(s=i.str,m=i.pos;m<d&&(n=e.src.charCodeAt(m),!(!H(n)&&n!==10));m++);}(m>=d||e.src.charCodeAt(m)!==41)&&(l=!0),m++}if(l){if(e.env.references===void 0)return!1;if(m<d&&e.src.charCodeAt(m)===91?(c=m+1,m=e.md.helpers.parseLinkLabel(e,m),m>=0?r=e.src.slice(c,m++):m=p+1):m=p+1,r||=e.src.slice(f,p),a=e.env.references[Wa(r)],!a)return e.pos=u,!1;o=a.href,s=a.title}if(!t){e.pos=f,e.posMax=p;let t=e.push(`link_open`,`a`,1),n=[[`href`,o]];t.attrs=n,s&&n.push([`title`,s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push(`link_close`,`a`,-1)}return e.pos=m,e.posMax=d,!0}function xs(e,t){let n,r,i,a,o,s,c,l,u=``,d=e.pos,f=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;let p=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(a=m+1,a<f&&e.src.charCodeAt(a)===40){for(a++;a<f&&(n=e.src.charCodeAt(a),!(!H(n)&&n!==10));a++);if(a>=f)return!1;for(l=a,s=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),s.ok&&(u=e.md.normalizeLink(s.str),e.md.validateLink(u)?a=s.pos:u=``),l=a;a<f&&(n=e.src.charCodeAt(a),!(!H(n)&&n!==10));a++);if(s=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<f&&l!==a&&s.ok)for(c=s.str,a=s.pos;a<f&&(n=e.src.charCodeAt(a),!(!H(n)&&n!==10));a++);else c=``;if(a>=f||e.src.charCodeAt(a)!==41)return e.pos=d,!1;a++}else{if(e.env.references===void 0)return!1;if(a<f&&e.src.charCodeAt(a)===91?(l=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?i=e.src.slice(l,a++):a=m+1):a=m+1,i||=e.src.slice(p,m),o=e.env.references[Wa(i)],!o)return e.pos=d,!1;u=o.href,c=o.title}if(!t){r=e.src.slice(p,m);let t=[];e.md.inline.parse(r,e.md,e.env,t);let n=e.push(`image`,`img`,0),i=[[`src`,u],[`alt`,``]];n.attrs=i,n.children=t,n.content=r,c&&i.push([`title`,c])}return e.pos=a,e.posMax=f,!0}var Ss=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Cs=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function ws(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;let r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;let t=e.src.charCodeAt(n);if(t===60)return!1;if(t===62)break}let a=e.src.slice(r+1,n);if(Cs.test(a)){let n=e.md.normalizeLink(a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}if(Ss.test(a)){let n=e.md.normalizeLink(`mailto:`+a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}return!1}function Ts(e){return/^<a[>\s]/i.test(e)}function Es(e){return/^<\/a\s*>/i.test(e)}function Ds(e){let t=e|32;return t>=97&&t<=122}function Os(e,t){if(!e.md.options.html)return!1;let n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;let i=e.src.charCodeAt(r+1);if(i!==33&&i!==63&&i!==47&&!Ds(i))return!1;let a=e.src.slice(r).match(Ko);if(!a)return!1;if(!t){let t=e.push(`html_inline`,``,0);t.content=a[0],Ts(t.content)&&e.linkLevel++,Es(t.content)&&e.linkLevel--}return e.pos+=a[0].length,!0}var ks=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,As=/^&([a-z][a-z0-9]{1,31});/i;function js(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){let r=e.src.slice(n).match(ks);if(r){if(!t){let t=r[1][0].toLowerCase()===`x`?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push(`text_special`,``,0);n.content=Ea(t)?Da(t):Da(65533),n.markup=r[0],n.info=`entity`}return e.pos+=r[0].length,!0}}else{let r=e.src.slice(n).match(As);if(r){let n=va(r[0]);if(n!==r[0]){if(!t){let t=e.push(`text_special`,``,0);t.content=n,t.markup=r[0],t.info=`entity`}return e.pos+=r[0].length,!0}}}return!1}function Ms(e){let t={},n=e.length;if(!n)return;let r=0,i=-2,a=[];for(let o=0;o<n;o++){let n=e[o];if(a.push(0),(e[r].marker!==n.marker||i!==n.token-1)&&(r=o),i=n.token,n.length=n.length||0,!n.close)continue;t.hasOwnProperty(n.marker)||(t[n.marker]=[-1,-1,-1,-1,-1,-1]);let s=t[n.marker][(n.open?3:0)+n.length%3],c=r-a[r]-1,l=c;for(;c>s;c-=a[c]+1){let t=e[c];if(t.marker===n.marker&&t.open&&t.end<0){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3!=0||n.length%3!=0)&&(r=!0),!r){let r=c>0&&!e[c-1].open?a[c-1]+1:0;a[o]=o-c+r,a[c]=r,n.open=!1,t.end=o,t.close=!1,l=-1,i=-2;break}}}l!==-1&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=l)}}function Ns(e){let t=e.tokens_meta,n=e.tokens_meta.length;Ms(e.delimiters);for(let e=0;e<n;e++)t[e]&&t[e].delimiters&&Ms(t[e].delimiters)}function Ps(e){let t,n,r=0,i=e.tokens,a=e.tokens.length;for(t=n=0;t<a;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,i[t].type===`text`&&t+1<a&&i[t+1].type===`text`?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}var Fs=[[`text`,as],[`linkify`,ss],[`newline`,cs],[`escape`,us],[`backticks`,ds],[`strikethrough`,hs.tokenize],[`emphasis`,ys.tokenize],[`link`,bs],[`image`,xs],[`autolink`,ws],[`html_inline`,Os],[`entity`,js]],Is=[[`balance_pairs`,Ns],[`strikethrough`,hs.postProcess],[`emphasis`,ys.postProcess],[`fragments_join`,Ps]];function Ls(){this.ruler=new Qa;for(let e=0;e<Fs.length;e++)this.ruler.push(Fs[e][0],Fs[e][1]);this.ruler2=new Qa;for(let e=0;e<Is.length;e++)this.ruler2.push(Is[e][0],Is[e][1])}Ls.prototype.skipToken=function(e){let t=e.pos,n=this.ruler.getRules(``),r=n.length,i=e.md.options.maxNesting,a=e.cache;if(a[t]!==void 0){e.pos=a[t];return}let o=!1;if(e.level<i){for(let i=0;i<r;i++)if(e.level++,o=n[i](e,!0),e.level--,o){if(t>=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}else e.pos=e.posMax;o||e.pos++,a[t]=e.pos},Ls.prototype.tokenize=function(e){let t=this.ruler.getRules(``),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos<r;){let a=e.pos,o=!1;if(e.level<i){for(let r=0;r<n;r++)if(o=t[r](e,!1),o){if(a>=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}if(o){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Ls.prototype.parse=function(e,t,n,r){let i=new this.State(e,t,n,r);this.tokenize(i);let a=this.ruler2.getRules(``),o=a.length;for(let e=0;e<o;e++)a[e](i)},Ls.prototype.State=rs;var Rs=Ls;function zs(e){let t={};e||={},t.src_Any=Yi.source,t.src_Cc=Xi.source,t.src_Z=ea.source,t.src_P=Qi.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join(`|`),t.src_ZCc=[t.src_Z,t.src_Cc].join(`|`);let n=`[><|]`;return t.src_pseudo_letter=`(?:(?!`+n+`|`+t.src_ZPCc+`)`+t.src_Any+`)`,t.src_ip4=`(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)`,t.src_auth=`(?:(?:(?!`+t.src_ZCc+`|[@/\\[\\]()]).)+@)?`,t.src_port=`(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?`,t.src_host_terminator=`(?=$|`+n+`|`+t.src_ZPCc+`)(?!`+(e[`---`]?`-(?!--)|`:`-|`)+`_|:\\d|\\.-|\\.(?!$|`+t.src_ZPCc+`))`,t.src_path=`(?:[/?#](?:(?!`+t.src_ZCc+`|[><|]|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+`|\\]).)*\\]|\\((?:(?!`+t.src_ZCc+`|[)]).)*\\)|\\{(?:(?!`+t.src_ZCc+`|[}]).)*\\}|\\"(?:(?!`+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+`|[']).)+\\'|\\'(?=`+t.src_pseudo_letter+`|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!`+t.src_ZCc+`|[.]|$)|`+(e[`---`]?`\\-(?!--(?:[^-]|$))(?:-*)|`:`\\-+|`)+`,(?!`+t.src_ZCc+`|$)|;(?!`+t.src_ZCc+`|$)|\\!+(?!`+t.src_ZCc+`|[!]|$)|\\?(?!`+t.src_ZCc+`|[?]|$))+|\\/)?`,t.src_email_name=`[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*`,t.src_xn=`xn--[a-z0-9\\-]{1,59}`,t.src_domain_root=`(?:`+t.src_xn+`|`+t.src_pseudo_letter+`{1,63})`,t.src_domain=`(?:`+t.src_xn+`|(?:`+t.src_pseudo_letter+`)|(?:`+t.src_pseudo_letter+`(?:-|`+t.src_pseudo_letter+`){0,61}`+t.src_pseudo_letter+`))`,t.src_host=`(?:(?:(?:(?:`+t.src_domain+`)\\.)*`+t.src_domain+`))`,t.tpl_host_fuzzy=`(?:`+t.src_ip4+`|(?:(?:(?:`+t.src_domain+`)\\.)+(?:%TLDS%)))`,t.tpl_host_no_ip_fuzzy=`(?:(?:(?:`+t.src_domain+`)\\.)+(?:%TLDS%))`,t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:`+t.src_ZPCc+`|>|$))`,t.tpl_email_fuzzy=`(^|`+n+`|"|\\(|`+t.src_ZCc+`)(`+t.src_email_name+`@`+t.tpl_host_fuzzy_strict+`)`,t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+`)`,t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+`)`,t}function Bs(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function Vs(e){return Object.prototype.toString.call(e)}function Hs(e){return Vs(e)===`[object String]`}function Us(e){return Vs(e)===`[object Object]`}function Ws(e){return Vs(e)===`[object RegExp]`}function Gs(e){return Vs(e)===`[object Function]`}function Ks(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,`\\$&`)}var qs={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Js(e){return Object.keys(e||{}).reduce(function(e,t){return e||qs.hasOwnProperty(t)},!1)}var Ys={"http:":{validate:function(e,t,n){let r=e.slice(t);return n.re.http||(n.re.http=RegExp(`^\\/\\/`+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,`i`)),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":`http:`,"ftp:":`http:`,"//":{validate:function(e,t,n){let r=e.slice(t);return n.re.no_http||(n.re.no_http=RegExp(`^`+n.re.src_auth+`(?:localhost|(?:(?:`+n.re.src_domain+`)\\.)+`+n.re.src_domain_root+`)`+n.re.src_port+n.re.src_host_terminator+n.re.src_path,`i`)),n.re.no_http.test(r)?t>=3&&e[t-3]===`:`||t>=3&&e[t-3]===`/`?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){let r=e.slice(t);return n.re.mailto||(n.re.mailto=RegExp(`^`+n.re.src_email_name+`@`+n.re.src_host_strict,`i`)),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},Xs=`a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]`,Zs=`biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф`.split(`|`);function Qs(e){e.__index__=-1,e.__text_cache__=``}function $s(e){return function(t,n){let r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function ec(){return function(e,t){t.normalize(e)}}function tc(e){let t=e.re=zs(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(Xs),n.push(t.src_xn),t.src_tlds=n.join(`|`);function r(e){return e.replace(`%TLDS%`,t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),`i`),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),`i`),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),`i`),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),`i`);let i=[];e.__compiled__={};function a(e,t){throw Error(`(LinkifyIt) Invalid schema "`+e+`": `+t)}Object.keys(e.__schemas__).forEach(function(t){let n=e.__schemas__[t];if(n===null)return;let r={validate:null,link:null};if(e.__compiled__[t]=r,Us(n)){Ws(n.validate)?r.validate=$s(n.validate):Gs(n.validate)?r.validate=n.validate:a(t,n),Gs(n.normalize)?r.normalize=n.normalize:n.normalize?a(t,n):r.normalize=ec();return}if(Hs(n)){i.push(t);return}a(t,n)}),i.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[``]={validate:null,normalize:ec()};let o=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(Ks).join(`|`);e.re.schema_test=RegExp(`(^|(?!_)(?:[><|]|`+t.src_ZPCc+`))(`+o+`)`,`i`),e.re.schema_search=RegExp(`(^|(?!_)(?:[><|]|`+t.src_ZPCc+`))(`+o+`)`,`ig`),e.re.schema_at_start=RegExp(`^`+e.re.schema_search.source,`i`),e.re.pretest=RegExp(`(`+e.re.schema_test.source+`)|(`+e.re.host_fuzzy_test.source+`)|@`,`i`),Qs(e)}function nc(e,t){let n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function rc(e,t){let n=new nc(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function K(e,t){if(!(this instanceof K))return new K(e,t);t||Js(e)&&(t=e,e={}),this.__opts__=Bs({},qs,t),this.__index__=-1,this.__last_index__=-1,this.__schema__=``,this.__text_cache__=``,this.__schemas__=Bs({},Ys,e),this.__compiled__={},this.__tlds__=Zs,this.__tlds_replaced__=!1,this.re={},tc(this)}K.prototype.add=function(e,t){return this.__schemas__[e]=t,tc(this),this},K.prototype.set=function(e){return this.__opts__=Bs(this.__opts__,e),this},K.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let t,n,r,i,a,o,s,c,l;if(this.re.schema_test.test(e)){for(s=this.re.schema_search,s.lastIndex=0;(t=s.exec(e))!==null;)if(i=this.testSchemaAt(e,t[2],s.lastIndex),i){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__[`http:`]&&(c=e.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c<this.__index__)&&(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(a=n.index+n[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__=``,this.__index__=a,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__[`mailto:`]&&(l=e.indexOf(`@`),l>=0&&(r=e.match(this.re.email_fuzzy))!==null&&(a=r.index+r[1].length,o=r.index+r[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&o>this.__last_index__)&&(this.__schema__=`mailto:`,this.__index__=a,this.__last_index__=o))),this.__index__>=0},K.prototype.pretest=function(e){return this.re.pretest.test(e)},K.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},K.prototype.match=function(e){let t=[],n=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(rc(this,n)),n=this.__last_index__);let r=n?e.slice(n):e;for(;this.test(r);)t.push(rc(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return t.length?t:null},K.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;let t=this.re.schema_at_start.exec(e);if(!t)return null;let n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,rc(this,0)):null},K.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),tc(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,tc(this),this)},K.prototype.normalize=function(e){e.schema||(e.url=`http://`+e.url),e.schema===`mailto:`&&!/^mailto:/i.test(e.url)&&(e.url=`mailto:`+e.url)},K.prototype.onCompile=function(){};var ic=K,ac=2147483647,q=36,oc=1,sc=26,cc=38,lc=700,uc=72,dc=128,fc=`-`,pc=/^xn--/,mc=/[^\0-\x7F]/,hc=/[\x2E\u3002\uFF0E\uFF61]/g,gc={overflow:`Overflow: input needs wider integers to process`,"not-basic":`Illegal input >= 0x80 (not a basic code point)`,"invalid-input":`Invalid input`},_c=q-oc,J=Math.floor,vc=String.fromCharCode;function yc(e){throw RangeError(gc[e])}function bc(e,t){let n=[],r=e.length;for(;r--;)n[r]=t(e[r]);return n}function xc(e,t){let n=e.split(`@`),r=``;n.length>1&&(r=n[0]+`@`,e=n[1]),e=e.replace(hc,`.`);let i=bc(e.split(`.`),t).join(`.`);return r+i}function Sc(e){let t=[],n=0,r=e.length;for(;n<r;){let i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){let r=e.charCodeAt(n++);(r&64512)==56320?t.push(((i&1023)<<10)+(r&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}var Cc=e=>String.fromCodePoint(...e),wc=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:q},Tc=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Ec=function(e,t,n){let r=0;for(e=n?J(e/lc):e>>1,e+=J(e/t);e>_c*sc>>1;r+=q)e=J(e/_c);return J(r+(_c+1)*e/(e+cc))},Dc=function(e){let t=[],n=e.length,r=0,i=dc,a=uc,o=e.lastIndexOf(fc);o<0&&(o=0);for(let n=0;n<o;++n)e.charCodeAt(n)>=128&&yc(`not-basic`),t.push(e.charCodeAt(n));for(let s=o>0?o+1:0;s<n;){let o=r;for(let t=1,i=q;;i+=q){s>=n&&yc(`invalid-input`);let o=wc(e.charCodeAt(s++));o>=q&&yc(`invalid-input`),o>J((ac-r)/t)&&yc(`overflow`),r+=o*t;let c=i<=a?oc:i>=a+sc?sc:i-a;if(o<c)break;let l=q-c;t>J(ac/l)&&yc(`overflow`),t*=l}let c=t.length+1;a=Ec(r-o,c,o==0),J(r/c)>ac-i&&yc(`overflow`),i+=J(r/c),r%=c,t.splice(r++,0,i)}return String.fromCodePoint(...t)},Oc=function(e){let t=[];e=Sc(e);let n=e.length,r=dc,i=0,a=uc;for(let n of e)n<128&&t.push(vc(n));let o=t.length,s=o;for(o&&t.push(fc);s<n;){let n=ac;for(let t of e)t>=r&&t<n&&(n=t);let c=s+1;n-r>J((ac-i)/c)&&yc(`overflow`),i+=(n-r)*c,r=n;for(let n of e)if(n<r&&++i>ac&&yc(`overflow`),n===r){let e=i;for(let n=q;;n+=q){let r=n<=a?oc:n>=a+sc?sc:n-a;if(e<r)break;let i=e-r,o=q-r;t.push(vc(Tc(r+i%o,0))),e=J(i/o)}t.push(vc(Tc(e,0))),a=Ec(i,c,s===o),i=0,++s}++i,++r}return t.join(``)},kc={version:`2.3.1`,ucs2:{decode:Sc,encode:Cc},decode:Dc,encode:Oc,toASCII:function(e){return xc(e,function(e){return mc.test(e)?`xn--`+Oc(e):e})},toUnicode:function(e){return xc(e,function(e){return pc.test(e)?Dc(e.slice(4).toLowerCase()):e})}},Ac={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`inline`,`text_join`]},block:{rules:[`paragraph`]},inline:{rules:[`text`],rules2:[`balance_pairs`,`fragments_join`]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`inline`,`text_join`]},block:{rules:[`blockquote`,`code`,`fence`,`heading`,`hr`,`html_block`,`lheading`,`list`,`reference`,`paragraph`]},inline:{rules:[`autolink`,`backticks`,`emphasis`,`entity`,`escape`,`html_inline`,`image`,`link`,`newline`,`text`],rules2:[`balance_pairs`,`emphasis`,`fragments_join`]}}}},jc=/^(vbscript|javascript|file|data):/,Mc=/^data:image\/(gif|png|jpeg|webp);/;function Nc(e){let t=e.trim().toLowerCase();return jc.test(t)?Mc.test(t):!0}var Pc=[`http:`,`https:`,`mailto:`];function Fc(e){let t=qi(e,!0);if(t.hostname&&(!t.protocol||Pc.indexOf(t.protocol)>=0))try{t.hostname=kc.toASCII(t.hostname)}catch{}return Ni(Pi(t))}function Ic(e){let t=qi(e,!0);if(t.hostname&&(!t.protocol||Pc.indexOf(t.protocol)>=0))try{t.hostname=kc.toUnicode(t.hostname)}catch{}return ki(Pi(t),ki.defaultChars+`%`)}function Y(e,t){if(!(this instanceof Y))return new Y(e,t);t||xa(e)||(t=e||{},e=`default`),this.inline=new Rs,this.block=new ts,this.core=new ko,this.renderer=new Za,this.linkify=new ic,this.validateLink=Nc,this.normalizeLink=Fc,this.normalizeLinkText=Ic,this.utils=ya,this.helpers=wa({},Ya),this.options={},this.configure(e),t&&this.set(t)}Y.prototype.set=function(e){return wa(this.options,e),this},Y.prototype.configure=function(e){let t=this;if(xa(e)){let t=e;if(e=Ac[t],!e)throw Error('Wrong `markdown-it` preset "'+t+`", check name`)}if(!e)throw Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this},Y.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));let r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw Error(`MarkdownIt. Failed to enable unknown rule(s): `+r);return this},Y.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));let r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw Error(`MarkdownIt. Failed to disable unknown rule(s): `+r);return this},Y.prototype.use=function(e){let t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Y.prototype.parse=function(e,t){if(typeof e!=`string`)throw Error(`Input data should be a String`);let n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},Y.prototype.render=function(e,t){return t||={},this.renderer.render(this.parse(e,t),this.options,t)},Y.prototype.parseInline=function(e,t){let n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Y.prototype.renderInline=function(e,t){return t||={},this.renderer.render(this.parseInline(e,t),this.options,t)};var Lc=Y;function Rc(e){let t=document.createElement(`div`);return Ge(b`${e}`,t),t.innerHTML.replaceAll(/<!--([^-]*)-->/gim,``)}let zc=pn(class extends mn{#e=Lc({highlight:(e,t)=>{switch(t){case`html`:{let t=document.createElement(`iframe`);return t.classList.add(`html-view`),t.srcdoc=e,t.sandbox=``,t.innerHTML}default:return Rc(e)}}});#t=null;#n=null;update(e,[t,n]){return this.#t===t&&JSON.stringify(n)===this.#n?x:(this.#t=t,this.#n=JSON.stringify(n),this.render(t,n))}#r=new Map;#i(e){Object.entries(e).forEach(([t])=>{let n;switch(t){case`p`:n=`paragraph`;break;case`h1`:case`h2`:case`h3`:case`h4`:case`h5`:case`h6`:n=`heading`;break;case`ul`:n=`bullet_list`;break;case`ol`:n=`ordered_list`;break;case`li`:n=`list_item`;break;case`a`:n=`link`;break;case`strong`:n=`strong`;break;case`em`:n=`em`;break}if(!n)return;let r=`${n}_open`;this.#e.renderer.rules[r]=(t,n,r,i,a)=>{let o=t[n],s=e[o.tag]??[];for(let e of s)o.attrJoin(`class`,e);return a.renderToken(t,n,r)}})}#a(){for(let[e]of this.#r)delete this.#e.renderer.rules[e];this.#r.clear()}render(e,t){t&&this.#i(t);let n=this.#e.render(e);return this.#a(),Ti(n)}});Lc();var Bc=function(e,t,n,r,i,a){function o(e){if(e!==void 0&&typeof e!=`function`)throw TypeError(`Function expected`);return e}for(var s=r.kind,c=s===`getter`?`get`:s===`setter`?`set`:`value`,l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,p=n.length-1;p>=0;p--){var m={};for(var h in r)m[h]=h===`access`?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(f)throw TypeError(`Cannot add initializers after decoration has completed`);a.push(o(e||null))};var g=(0,n[p])(s===`accessor`?{get:u.get,set:u.set}:u[c],m);if(s===`accessor`){if(g===void 0)continue;if(typeof g!=`object`||!g)throw TypeError(`Object expected`);(d=o(g.get))&&(u.get=d),(d=o(g.set))&&(u.set=d),(d=o(g.init))&&i.unshift(d)}else (d=o(g))&&(s===`field`?i.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0},Vc=function(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0};(()=>{let e=[w(`a2ui-text`)],t,n=[],r,i=P,a,o=[],s=[],c,l=[],u=[];var f=class extends i{static#e=r=this;static#t=(()=>{let d=typeof Symbol==`function`&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;a=[T()],c=[T({reflect:!0,attribute:`usage-hint`})],Bc(this,null,a,{kind:`accessor`,name:`text`,static:!1,private:!1,access:{has:e=>`text`in e,get:e=>e.text,set:(e,t)=>{e.text=t}},metadata:d},o,s),Bc(this,null,c,{kind:`accessor`,name:`usageHint`,static:!1,private:!1,access:{has:e=>`usageHint`in e,get:e=>e.usageHint,set:(e,t)=>{e.usageHint=t}},metadata:d},l,u),Bc(null,t={value:r},e,{kind:`class`,name:r.name,metadata:d},null,n),f=r=t.value,d&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d})})();#n=Vc(this,o,null);get text(){return this.#n}set text(e){this.#n=e}#r=(Vc(this,s),Vc(this,l,null));get usageHint(){return this.#r}set usageHint(e){this.#r=e}static#i=this.styles=[j,d`
1685
- :host {
1686
- display: block;
1687
- flex: var(--weight);
1688
- }
1689
-
1690
- h1,
1691
- h2,
1692
- h3,
1693
- h4,
1694
- h5 {
1695
- line-height: inherit;
1696
- font: inherit;
1697
- }
1698
- `];#a(){let e=null;if(this.text&&typeof this.text==`object`){if(`literalString`in this.text&&this.text.literalString)e=this.text.literalString;else if(`literal`in this.text&&this.text.literal!==void 0)e=this.text.literal;else if(this.text&&`path`in this.text&&this.text.path){if(!this.processor||!this.component)return b`(no model)`;let t=this.processor.getData(this.component,this.text.path,this.surfaceId??L.DEFAULT_SURFACE_ID);t!=null&&(e=t.toString())}}if(e==null)return b`(empty)`;let t=e;switch(this.usageHint){case`h1`:t=`# ${t}`;break;case`h2`:t=`## ${t}`;break;case`h3`:t=`### ${t}`;break;case`h4`:t=`#### ${t}`;break;case`h5`:t=`##### ${t}`;break;case`caption`:t=`*${t}*`;break;default:break}return b`${zc(t,Zn(this.theme.markdown,[`ol`,`ul`,`li`],{}))}`}#o(e){return typeof e!=`object`||Array.isArray(e)||!e?!1:[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`caption`,`body`].every(t=>t in e)}#s(){let e={},t=this.theme.additionalStyles?.Text;return t&&(e=this.#o(t)?t[this.usageHint??`body`]:t),e}render(){return b`<section
1699
- class=${F(Xn(this.theme.components.Text.all,this.usageHint?this.theme.components.Text[this.usageHint]:{}))}
1700
- style=${this.theme.additionalStyles?.Text?R(this.#s()):S}
1701
- >
1702
- ${this.#a()}
1703
- </section>`}constructor(){super(...arguments),Vc(this,u)}static#c=Vc(r,n)};return r})();var Hc=function(e,t,n,r,i,a){function o(e){if(e!==void 0&&typeof e!=`function`)throw TypeError(`Function expected`);return e}for(var s=r.kind,c=s===`getter`?`get`:s===`setter`?`set`:`value`,l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,p=n.length-1;p>=0;p--){var m={};for(var h in r)m[h]=h===`access`?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(f)throw TypeError(`Cannot add initializers after decoration has completed`);a.push(o(e||null))};var g=(0,n[p])(s===`accessor`?{get:u.get,set:u.set}:u[c],m);if(s===`accessor`){if(g===void 0)continue;if(typeof g!=`object`||!g)throw TypeError(`Object expected`);(d=o(g.get))&&(u.get=d),(d=o(g.set))&&(u.set=d),(d=o(g.init))&&i.unshift(d)}else (d=o(g))&&(s===`field`?i.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0},Uc=function(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0};(()=>{let e=[w(`a2ui-video`)],t,n=[],r,i=P,a,o=[],s=[];var c=class extends i{static#e=r=this;static#t=(()=>{let l=typeof Symbol==`function`&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;a=[T()],Hc(this,null,a,{kind:`accessor`,name:`url`,static:!1,private:!1,access:{has:e=>`url`in e,get:e=>e.url,set:(e,t)=>{e.url=t}},metadata:l},o,s),Hc(null,t={value:r},e,{kind:`class`,name:r.name,metadata:l},null,n),c=r=t.value,l&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:l})})();#n=Uc(this,o,null);get url(){return this.#n}set url(e){this.#n=e}static#r=this.styles=[j,d`
1704
- * {
1705
- box-sizing: border-box;
1706
- }
1707
-
1708
- :host {
1709
- display: block;
1710
- flex: var(--weight);
1711
- min-height: 0;
1712
- overflow: auto;
1713
- }
1714
-
1715
- video {
1716
- display: block;
1717
- width: 100%;
1718
- }
1719
- `];#i(){if(!this.url)return S;if(this.url&&typeof this.url==`object`){if(`literalString`in this.url)return b`<video controls src=${this.url.literalString} />`;if(`literal`in this.url)return b`<video controls src=${this.url.literal} />`;if(this.url&&`path`in this.url&&this.url.path){if(!this.processor||!this.component)return b`(no processor)`;let e=this.processor.getData(this.component,this.url.path,this.surfaceId??L.DEFAULT_SURFACE_ID);return!e||typeof e!=`string`?b`Invalid video URL`:b`<video controls src=${e} />`}}return b`(empty)`}render(){return b`<section
1720
- class=${F(this.theme.components.Video)}
1721
- style=${this.theme.additionalStyles?.Video?R(this.theme.additionalStyles?.Video):S}
1722
- >
1723
- ${this.#i()}
1724
- </section>`}constructor(){super(...arguments),Uc(this,s)}static#a=Uc(r,n)};return r})();var Wc={"typography-f-sf":!0,"typography-fs-n":!0,"typography-w-500":!0,"layout-as-n":!0,"layout-dis-iflx":!0,"layout-al-c":!0},Gc={"layout-w-100":!0},Kc={"typography-f-s":!0,"typography-fs-n":!0,"typography-w-400":!0,"layout-mt-0":!0,"layout-mb-2":!0,"typography-sz-bm":!0,"color-c-n10":!0},qc={"typography-f-sf":!0,"typography-fs-n":!0,"typography-w-500":!0,"layout-pt-3":!0,"layout-pb-3":!0,"layout-pl-5":!0,"layout-pr-5":!0,"layout-mb-1":!0,"border-br-3":!0,"border-bw-0":!0,"border-c-n70":!0,"border-bs-s":!0,"color-bgc-s30":!0,"color-c-n100":!0,"behavior-ho-80":!0},Jc={"typography-f-sf":!0,"typography-fs-n":!0,"typography-w-500":!0,"layout-mt-0":!0,"layout-mb-2":!0,"color-c-n10":!0},Yc={...Jc,"typography-sz-tl":!0},Xc={...Jc,"typography-sz-tm":!0},Zc={...Jc,"typography-sz-ts":!0},Qc={"behavior-sw-n":!0},$c={"typography-f-sf":!0,"typography-fs-n":!0,"typography-w-400":!0,"layout-pl-4":!0,"layout-pr-4":!0,"layout-pt-2":!0,"layout-pb-2":!0,"border-br-3":!0,"border-bw-1":!0,"color-bc-s70":!0,"border-bs-s":!0,"layout-as-n":!0,"color-c-n10":!0},el={"typography-f-s":!0,"typography-fs-n":!0,"typography-w-400":!0,"layout-m-0":!0,"typography-sz-bm":!0,"layout-as-n":!0,"color-c-n10":!0},tl={"typography-f-s":!0,"typography-fs-n":!0,"typography-w-400":!0,"layout-m-0":!0,"typography-sz-bm":!0,"layout-as-n":!0},nl={"typography-f-s":!0,"typography-fs-n":!0,"typography-w-400":!0,"layout-m-0":!0,"typography-sz-bm":!0,"layout-as-n":!0},rl={"typography-f-s":!0,"typography-fs-n":!0,"typography-w-400":!0,"layout-m-0":!0,"typography-sz-bm":!0,"layout-as-n":!0},il={"typography-f-c":!0,"typography-fs-n":!0,"typography-w-400":!0,"typography-sz-bm":!0,"typography-ws-p":!0,"layout-as-n":!0},al={...$c,"layout-r-none":!0,"layout-fs-c":!0},ol={"layout-el-cv":!0},sl=t.v0_8.Styles.merge(Wc,{"color-c-p30":!0}),cl=t.v0_8.Styles.merge($c,{"color-c-n5":!0}),ll=t.v0_8.Styles.merge(al,{"color-c-n5":!0}),ul=t.v0_8.Styles.merge(qc,{"color-c-n100":!0}),dl=t.v0_8.Styles.merge(Yc,{"color-c-n5":!0}),fl=t.v0_8.Styles.merge(Xc,{"color-c-n5":!0}),pl=t.v0_8.Styles.merge(Zc,{"color-c-n5":!0}),ml=t.v0_8.Styles.merge(Kc,{"color-c-n5":!0}),hl=t.v0_8.Styles.merge(el,{"color-c-n60":!0}),gl=t.v0_8.Styles.merge(il,{"color-c-n35":!0}),_l=t.v0_8.Styles.merge(tl,{"color-c-n35":!0}),vl=t.v0_8.Styles.merge(nl,{"color-c-n35":!0}),yl=t.v0_8.Styles.merge(rl,{"color-c-n35":!0}),X={"--color-scheme":`light`,"--font-family":`"Montserrat", sans-serif`,"--font-family-flex":`"Montserrat", sans-serif`,"--p-30":`#00c73d`,"--p-60":`#66e08a`,"--p-80":`#c9f5d8`,"--p-100":`#ffffff`,"--s-30":`#f2f5f7`,"--s-70":`#d9dee4`,"--n-5":`#0b0b0b`,"--n-10":`#111827`,"--n-30":`#4b5563`,"--n-35":`#6b7280`,"--n-60":`#9ca3af`,"--n-70":`#cbd5e1`,"--n-90":`#e5e7eb`,"--n-98":`#f9fafb`,"--n-100":`#ffffff`};let bl={additionalStyles:{Card:{...X,"min-width":`320px`},Button:{...X,"--n-60":`var(--n-100)`},CheckBox:{...X},Column:{...X},DateTimeInput:{...X},Divider:{...X},Icon:{...X},Image:{...X,"max-width":`120px`,"max-height":`120px`,marginLeft:`auto`,marginRight:`auto`},List:{...X},Modal:{...X},MultipleChoice:{...X},Row:{...X},Slider:{...X},Tabs:{...X},Text:{...X},TextField:{...X},Video:{...X},AudioPlayer:{...X}},components:{AudioPlayer:{},Button:{"layout-pt-2":!0,"layout-pb-2":!0,"layout-pl-5":!0,"layout-pr-5":!0,"border-br-3":!0,"border-bw-0":!0,"border-bs-s":!0,"color-bgc-p30":!0,"color-c-n100":!0,"behavior-ho-70":!0},Card:{"border-br-3":!0,"color-bgc-p100":!0,"color-bc-n90":!0,"border-bw-1":!0,"border-bs-s":!0,"layout-pt-10":!0,"layout-pb-10":!0,"layout-pl-4":!0,"layout-pr-4":!0},CheckBox:{element:{"layout-m-0":!0,"layout-mr-2":!0,"layout-p-2":!0,"border-br-3":!0,"border-bw-1":!0,"border-bs-s":!0,"color-bgc-p100":!0,"color-bc-p60":!0,"color-c-n30":!0},label:{"color-c-n10":!0,"typography-f-sf":!0,"typography-v-r":!0,"typography-w-400":!0,"layout-flx-1":!0,"typography-sz-ll":!0},container:{"layout-dsp-iflex":!0,"layout-al-c":!0}},Column:{},DateTimeInput:{container:{},label:{},element:{"layout-pt-2":!0,"layout-pb-2":!0,"layout-pl-3":!0,"layout-pr-3":!0,"border-br-3":!0,"border-bw-1":!0,"border-bs-s":!0,"color-bgc-p100":!0,"color-bc-p60":!0,"color-c-n30":!0}},Divider:{"color-bgc-n90":!0,"layout-mt-6":!0,"layout-mb-6":!0},Image:{all:{"border-br-50pc":!0,"layout-el-cv":!0,"layout-w-100":!0,"layout-h-100":!0,"layout-dsp-flexhor":!0,"layout-al-c":!0,"layout-sp-c":!0,"layout-mb-3":!0},avatar:{},header:{},icon:{},largeFeature:{},mediumFeature:{},smallFeature:{}},Icon:{"border-br-1":!0,"layout-p-2":!0,"color-bgc-n98":!0,"layout-dsp-flexhor":!0,"layout-al-c":!0,"layout-sp-c":!0},List:{"layout-g-4":!0,"layout-p-2":!0},Modal:{backdrop:{"color-bbgc-p60_20":!0},element:{"border-br-3":!0,"color-bgc-p100":!0,"layout-p-4":!0,"border-bw-1":!0,"border-bs-s":!0,"color-bc-p80":!0}},MultipleChoice:{container:{},label:{},element:{}},Row:{"layout-g-4":!0,"layout-mb-3":!0},Slider:{container:{},label:{},element:{}},Tabs:{container:{},controls:{all:{},selected:{}},element:{}},Text:{all:{"layout-w-100":!0,"layout-g-2":!0,"color-c-n10":!0},h1:{"typography-f-sf":!0,"typography-ta-c":!0,"typography-v-r":!0,"typography-w-500":!0,"layout-mt-0":!0,"layout-mr-0":!0,"layout-ml-0":!0,"layout-mb-2":!0,"layout-p-0":!0,"typography-sz-tl":!0},h2:{"typography-f-sf":!0,"typography-ta-c":!0,"typography-v-r":!0,"typography-w-500":!0,"layout-mt-0":!0,"layout-mr-0":!0,"layout-ml-0":!0,"layout-mb-2":!0,"layout-p-0":!0,"typography-sz-tl":!0},h3:{"typography-f-sf":!0,"typography-ta-c":!0,"typography-v-r":!0,"typography-w-500":!0,"layout-mt-0":!0,"layout-mr-0":!0,"layout-ml-0":!0,"layout-mb-0":!0,"layout-p-0":!0,"typography-sz-ts":!0},h4:{"typography-f-sf":!0,"typography-ta-c":!0,"typography-v-r":!0,"typography-w-500":!0,"layout-mt-0":!0,"layout-mr-0":!0,"layout-ml-0":!0,"layout-mb-0":!0,"layout-p-0":!0,"typography-sz-bl":!0},h5:{"typography-f-sf":!0,"typography-ta-c":!0,"typography-v-r":!0,"typography-w-500":!0,"layout-mt-0":!0,"layout-mr-0":!0,"layout-ml-0":!0,"layout-mb-0":!0,"layout-p-0":!0,"color-c-n30":!0,"typography-sz-bm":!0,"layout-mb-1":!0},body:{},caption:{}},TextField:{container:{"typography-sz-bm":!0,"layout-w-100":!0,"layout-g-2":!0,"layout-dsp-flexhor":!0,"layout-al-c":!0},label:{"layout-flx-0":!0},element:{"typography-sz-bm":!0,"layout-pt-2":!0,"layout-pb-2":!0,"layout-pl-3":!0,"layout-pr-3":!0,"border-br-3":!0,"border-bw-1":!0,"border-bs-s":!0,"color-bgc-p100":!0,"color-bc-p60":!0,"color-c-n30":!0}},Video:{"border-br-5":!0,"layout-el-cv":!0}},elements:{a:sl,audio:Gc,body:ml,button:ul,h1:dl,h2:fl,h3:pl,h4:{},h5:{},iframe:Qc,input:cl,p:hl,pre:gl,textarea:ll,video:ol},markdown:{p:[...Object.keys(hl)],h1:[...Object.keys(dl)],h2:[...Object.keys(fl)],h3:[...Object.keys(pl)],h4:[],h5:[],ul:[...Object.keys(vl)],ol:[...Object.keys(_l)],li:[...Object.keys(yl)],a:[...Object.keys(sl)],strong:[],em:[]}};var xl=class extends dn(C){constructor(...e){super(...e),this.theme=bl,this.surfaceId=``,this.enableCustomElements=!0}static#e=this.styles=d`
494
+ `}};P([M({type:Boolean})],L.prototype,`isRunning`,void 0),P([M({type:String})],L.prototype,`disclaimer`,void 0),P([M({type:String})],L.prototype,`placeholder`,void 0),P([N()],L.prototype,`_value`,void 0),P([Xe(`textarea`)],L.prototype,`_textarea`,void 0),L=P([j(`agent-chat-composer`)],L);var pt=Object.defineProperty,mt=(e,t,n)=>t in e?pt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ht=(e,t,n)=>(mt(e,typeof t==`symbol`?t:t+``,n),n),gt=(e,t,n)=>{if(!t.has(e))throw TypeError(`Cannot `+n)},_t=(e,t)=>{if(Object(t)!==t)throw TypeError(`Cannot use the "in" operator on this value`);return e.has(t)},vt=(e,t,n)=>{if(t.has(e))throw TypeError(`Cannot add the same private member more than once`);t instanceof WeakSet?t.add(e):t.set(e,n)},yt=(e,t,n)=>(gt(e,t,`access private method`),n);function bt(e,t){return Object.is(e,t)}var R=null,z=!1,xt=1,St=Symbol(`SIGNAL`);function B(e){let t=R;return R=e,t}function Ct(){return R}function wt(){return z}var Tt={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Et(e){if(z)throw Error(typeof ngDevMode<`u`&&ngDevMode?`Assertion error: signal read during notification phase`:``);if(R===null)return;R.consumerOnSignalRead(e);let t=R.nextProducerIndex++;if(V(R),t<R.producerNode.length&&R.producerNode[t]!==e&&Lt(R)){let e=R.producerNode[t];It(e,R.producerIndexOfThis[t])}R.producerNode[t]!==e&&(R.producerNode[t]=e,R.producerIndexOfThis[t]=Lt(R)?Ft(e,R,t):0),R.producerLastReadVersion[t]=e.version}function Dt(){xt++}function Ot(e){if(!(!e.dirty&&e.lastCleanEpoch===xt)){if(!e.producerMustRecompute(e)&&!Pt(e)){e.dirty=!1,e.lastCleanEpoch=xt;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=xt}}function kt(e){if(e.liveConsumerNode===void 0)return;let t=z;z=!0;try{for(let t of e.liveConsumerNode)t.dirty||jt(t)}finally{z=t}}function At(){return R?.consumerAllowSignalWrites!==!1}function jt(e){var t;e.dirty=!0,kt(e),(t=e.consumerMarkedDirty)==null||t.call(e.wrapper??e)}function Mt(e){return e&&(e.nextProducerIndex=0),B(e)}function Nt(e,t){if(B(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(Lt(e))for(let t=e.nextProducerIndex;t<e.producerNode.length;t++)It(e.producerNode[t],e.producerIndexOfThis[t]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Pt(e){V(e);for(let t=0;t<e.producerNode.length;t++){let n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(Ot(n),r!==n.version))return!0}return!1}function Ft(e,t,n){var r;if(Rt(e),V(e),e.liveConsumerNode.length===0){(r=e.watched)==null||r.call(e.wrapper);for(let t=0;t<e.producerNode.length;t++)e.producerIndexOfThis[t]=Ft(e.producerNode[t],e,t)}return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function It(e,t){var n;if(Rt(e),V(e),typeof ngDevMode<`u`&&ngDevMode&&t>=e.liveConsumerNode.length)throw Error(`Assertion error: active consumer index ${t} is out of bounds of ${e.liveConsumerNode.length} consumers)`);if(e.liveConsumerNode.length===1){(n=e.unwatched)==null||n.call(e.wrapper);for(let t=0;t<e.producerNode.length;t++)It(e.producerNode[t],e.producerIndexOfThis[t])}let r=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[r],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[r],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){let n=e.liveConsumerIndexOfThis[t],r=e.liveConsumerNode[t];V(r),r.producerIndexOfThis[n]=t}}function Lt(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function V(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Rt(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function zt(e){if(Ot(e),Et(e),e.value===Ut)throw e.error;return e.value}function Bt(e){let t=Object.create(Wt);t.computation=e;let n=()=>zt(t);return n[St]=t,n}var Vt=Symbol(`UNSET`),Ht=Symbol(`COMPUTING`),Ut=Symbol(`ERRORED`),Wt=(()=>({...Tt,value:Vt,dirty:!0,error:null,equal:bt,producerMustRecompute(e){return e.value===Vt||e.value===Ht},producerRecomputeValue(e){if(e.value===Ht)throw Error(`Detected cycle in computations.`);let t=e.value;e.value=Ht;let n=Mt(e),r,i=!1;try{r=e.computation.call(e.wrapper),i=t!==Vt&&t!==Ut&&e.equal.call(e.wrapper,t,r)}catch(t){r=Ut,e.error=t}finally{Nt(e,n)}if(i){e.value=t;return}e.value=r,e.version++}}))();function Gt(){throw Error()}var Kt=Gt;function qt(){Kt()}function Jt(e){let t=Object.create(Zt);t.value=e;let n=()=>(Et(t),t.value);return n[St]=t,n}function Yt(){return Et(this),this.value}function Xt(e,t){At()||qt(),e.equal.call(e.wrapper,e.value,t)||(e.value=t,Qt(e))}var Zt=(()=>({...Tt,equal:bt,value:void 0}))();function Qt(e){e.version++,Dt(),kt(e)}var H=Symbol(`node`),U;(e=>{var t,n,r,i;class a{constructor(r,i={}){vt(this,n),ht(this,t);let a=Jt(r)[St];if(this[H]=a,a.wrapper=this,i){let t=i.equals;t&&(a.equal=t),a.watched=i[e.subtle.watched],a.unwatched=i[e.subtle.unwatched]}}get(){if(!(0,e.isState)(this))throw TypeError(`Wrong receiver type for Signal.State.prototype.get`);return Yt.call(this[H])}set(t){if(!(0,e.isState)(this))throw TypeError(`Wrong receiver type for Signal.State.prototype.set`);if(wt())throw Error(`Writes to signals not permitted during Watcher callback`);let n=this[H];Xt(n,t)}}t=H,n=new WeakSet,e.isState=e=>typeof e==`object`&&_t(n,e),e.State=a;class o{constructor(t,n){vt(this,i),ht(this,r);let a=Bt(t)[St];if(a.consumerAllowSignalWrites=!0,this[H]=a,a.wrapper=this,n){let t=n.equals;t&&(a.equal=t),a.watched=n[e.subtle.watched],a.unwatched=n[e.subtle.unwatched]}}get(){if(!(0,e.isComputed)(this))throw TypeError(`Wrong receiver type for Signal.Computed.prototype.get`);return zt(this[H])}}r=H,i=new WeakSet,e.isComputed=e=>typeof e==`object`&&_t(i,e),e.Computed=o,(t=>{var n,r,i,a;function o(e){let t,n=null;try{n=B(null),t=e()}finally{B(n)}return t}t.untrack=o;function s(t){if(!(0,e.isComputed)(t)&&!(0,e.isWatcher)(t))throw TypeError(`Called introspectSources without a Computed or Watcher argument`);return t[H].producerNode?.map(e=>e.wrapper)??[]}t.introspectSources=s;function c(t){if(!(0,e.isComputed)(t)&&!(0,e.isState)(t))throw TypeError(`Called introspectSinks without a Signal argument`);return t[H].liveConsumerNode?.map(e=>e.wrapper)??[]}t.introspectSinks=c;function l(t){if(!(0,e.isComputed)(t)&&!(0,e.isState)(t))throw TypeError(`Called hasSinks without a Signal argument`);let n=t[H].liveConsumerNode;return n?n.length>0:!1}t.hasSinks=l;function u(t){if(!(0,e.isComputed)(t)&&!(0,e.isWatcher)(t))throw TypeError(`Called hasSources without a Computed or Watcher argument`);let n=t[H].producerNode;return n?n.length>0:!1}t.hasSources=u;class d{constructor(e){vt(this,r),vt(this,i),ht(this,n);let t=Object.create(Tt);t.wrapper=this,t.consumerMarkedDirty=e,t.consumerIsAlwaysLive=!0,t.consumerAllowSignalWrites=!1,t.producerNode=[],this[H]=t}watch(...t){if(!(0,e.isWatcher)(this))throw TypeError(`Called unwatch without Watcher receiver`);yt(this,i,a).call(this,t);let n=this[H];n.dirty=!1;let r=B(n);for(let e of t)Et(e[H]);B(r)}unwatch(...t){if(!(0,e.isWatcher)(this))throw TypeError(`Called unwatch without Watcher receiver`);yt(this,i,a).call(this,t);let n=this[H];V(n);for(let e=n.producerNode.length-1;e>=0;e--)if(t.includes(n.producerNode[e].wrapper)){It(n.producerNode[e],n.producerIndexOfThis[e]);let t=n.producerNode.length-1;if(n.producerNode[e]=n.producerNode[t],n.producerIndexOfThis[e]=n.producerIndexOfThis[t],n.producerNode.length--,n.producerIndexOfThis.length--,n.nextProducerIndex--,e<n.producerNode.length){let t=n.producerIndexOfThis[e],r=n.producerNode[e];Rt(r),r.liveConsumerIndexOfThis[t]=e}}}getPending(){if(!(0,e.isWatcher)(this))throw TypeError(`Called getPending without Watcher receiver`);return this[H].producerNode.filter(e=>e.dirty).map(e=>e.wrapper)}}n=H,r=new WeakSet,i=new WeakSet,a=function(t){for(let n of t)if(!(0,e.isComputed)(n)&&!(0,e.isState)(n))throw TypeError(`Called watch/unwatch without a Computed or State argument`)},e.isWatcher=e=>_t(r,e),t.Watcher=d;function ee(){return Ct()?.wrapper}t.currentComputed=ee,t.watched=Symbol(`watched`),t.unwatched=Symbol(`unwatched`)})(e.subtle||={})})(U||={});var $t=Symbol(`SignalWatcherBrand`),en=new FinalizationRegistry((({watcher:e,signal:t})=>{e.unwatch(t)})),tn=new WeakMap;function nn(e){return!0===e[$t]?(console.warn(`SignalWatcher should not be applied to the same class more than once.`),e):class extends e{constructor(){super(...arguments),this._$St=new U.State(0),this._$Si=!1,this._$So=!0,this._$Sh=new Set}_$Sl(){if(this._$Su!==void 0)return;this._$Sv=new U.Computed((()=>{this._$St.get(),super.performUpdate()}));let e=this._$Su=new U.subtle.Watcher((function(){let e=tn.get(this);e!==void 0&&(!1===e._$Si&&e.requestUpdate(),this.watch())}));tn.set(e,this),en.register(this,{watcher:e,signal:this._$Sv}),e.watch(this._$Sv)}_$Sp(){this._$Su!==void 0&&(this._$Su.unwatch(this._$Sv),this._$Sv=void 0,this._$Su=void 0)}performUpdate(){this.isUpdatePending&&(this._$Sl(),this._$Si=!0,this._$St.set(this._$St.get()+1),this._$Si=!1,this._$Sv.get())}update(e){try{this._$So?(this._$So=!1,super.update(e)):this._$Sh.forEach((e=>e.commit()))}finally{this.isUpdatePending=!1,this._$Sh.clear()}}requestUpdate(e,t,n){this._$So=!0,super.requestUpdate(e,t,n)}connectedCallback(){super.connectedCallback(),this.requestUpdate()}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask((()=>{!1===this.isConnected&&this._$Sp()}))}_(e){this._$Sh.add(e);let t=this._$So;this.requestUpdate(),this._$So=t}m(e){this._$Sh.delete(e)}}}var rn={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},{I:an}=He,on=(e,t)=>{let n=e._$AN;if(n===void 0)return!1;for(let e of n)e._$AO?.(t,!1),on(e,t);return!0},sn=e=>{let t,n;do{if((t=e._$AM)===void 0)break;n=t._$AN,n.delete(e),e=t}while(n?.size===0)},cn=e=>{for(let t;t=e._$AM;e=t){let n=t._$AN;if(n===void 0)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),dn(t)}};function ln(e){this._$AN===void 0?this._$AM=e:(sn(this),this._$AM=e,cn(this))}function un(e,t=!1,n=0){let r=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(r))for(let e=n;e<r.length;e++)on(r[e],!1),sn(r[e]);else r!=null&&(on(r,!1),sn(r));else on(this,e)}var dn=e=>{e.type==rn.CHILD&&(e._$AP??=un,e._$AQ??=ln)};U.State,U.Computed;var fn=class extends Event{constructor(e,t,n,r){super(`context-request`,{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=t,this.callback=n,this.subscribe=r??!1}},pn=class{get value(){return this.o}set value(e){this.setValue(e)}setValue(e,t=!1){let n=t||!Object.is(e,this.o);this.o=e,n&&this.updateObservers()}constructor(e){this.subscriptions=new Map,this.updateObservers=()=>{for(let[e,{disposer:t}]of this.subscriptions)e(this.o,t)},e!==void 0&&(this.value=e)}addCallback(e,t,n){if(!n)return void e(this.value);this.subscriptions.has(e)||this.subscriptions.set(e,{disposer:()=>{this.subscriptions.delete(e)},consumerHost:t});let{disposer:r}=this.subscriptions.get(e);e(this.value,r)}clearCallbacks(){this.subscriptions.clear()}},mn=class extends Event{constructor(e,t){super(`context-provider`,{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=t}},hn=class extends pn{constructor(e,t,n){super(t.context===void 0?n:t.initialValue),this.onContextRequest=e=>{if(e.context!==this.context)return;let t=e.contextTarget??e.composedPath()[0];t!==this.host&&(e.stopPropagation(),this.addCallback(e.callback,t,e.subscribe))},this.onProviderRequest=e=>{if(e.context!==this.context||(e.contextTarget??e.composedPath()[0])===this.host)return;let t=new Set;for(let[e,{consumerHost:n}]of this.subscriptions)t.has(e)||(t.add(e),n.dispatchEvent(new fn(this.context,n,e,!0)));e.stopPropagation()},this.host=e,t.context===void 0?this.context=t:this.context=t.context,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener(`context-request`,this.onContextRequest),this.host.addEventListener(`context-provider`,this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new mn(this.context,this.host))}};function gn({context:e}){return(t,n)=>{let r=new WeakMap;if(typeof n==`object`)return{get(){return t.get.call(this)},set(e){return r.get(this).setValue(e),t.set.call(this,e)},init(t){return r.set(this,new hn(this,{context:e,initialValue:t})),t}};{t.constructor.addInitializer((t=>{r.set(t,new hn(t,{context:e}))}));let i=Object.getOwnPropertyDescriptor(t,n),a;if(i===void 0){let e=new WeakMap;a={get(){return e.get(this)},set(t){r.get(this).setValue(t),e.set(this,t)},configurable:!0,enumerable:!0}}else{let e=i.set;a={...i,set(t){r.get(this).setValue(t),e?.call(this,t)}}}Object.defineProperty(t,n,a);return}}}var _n={"typography-f-sf":!0,"typography-fs-n":!0,"typography-w-500":!0,"layout-as-n":!0,"layout-dis-iflx":!0,"layout-al-c":!0},vn={"layout-w-100":!0},yn={"typography-f-s":!0,"typography-fs-n":!0,"typography-w-400":!0,"layout-mt-0":!0,"layout-mb-2":!0,"typography-sz-bm":!0,"color-c-n10":!0},bn={"typography-f-sf":!0,"typography-fs-n":!0,"typography-w-500":!0,"layout-pt-3":!0,"layout-pb-3":!0,"layout-pl-5":!0,"layout-pr-5":!0,"layout-mb-1":!0,"border-br-3":!0,"border-bw-0":!0,"border-c-n70":!0,"border-bs-s":!0,"color-bgc-s30":!0,"color-c-n100":!0,"behavior-ho-80":!0},xn={"typography-f-sf":!0,"typography-fs-n":!0,"typography-w-500":!0,"layout-mt-0":!0,"layout-mb-2":!0,"color-c-n10":!0},Sn={...xn,"typography-sz-tl":!0},Cn={...xn,"typography-sz-tm":!0},wn={...xn,"typography-sz-ts":!0},Tn={"behavior-sw-n":!0},En={"typography-f-sf":!0,"typography-fs-n":!0,"typography-w-400":!0,"layout-pl-4":!0,"layout-pr-4":!0,"layout-pt-2":!0,"layout-pb-2":!0,"border-br-3":!0,"border-bw-1":!0,"color-bc-s70":!0,"border-bs-s":!0,"layout-as-n":!0,"color-c-n10":!0},Dn={"typography-f-s":!0,"typography-fs-n":!0,"typography-w-400":!0,"layout-m-0":!0,"typography-sz-bm":!0,"layout-as-n":!0,"color-c-n10":!0},On={"typography-f-s":!0,"typography-fs-n":!0,"typography-w-400":!0,"layout-m-0":!0,"typography-sz-bm":!0,"layout-as-n":!0},kn={"typography-f-s":!0,"typography-fs-n":!0,"typography-w-400":!0,"layout-m-0":!0,"typography-sz-bm":!0,"layout-as-n":!0},An={"typography-f-s":!0,"typography-fs-n":!0,"typography-w-400":!0,"layout-m-0":!0,"typography-sz-bm":!0,"layout-as-n":!0},jn={"typography-f-c":!0,"typography-fs-n":!0,"typography-w-400":!0,"typography-sz-bm":!0,"typography-ws-p":!0,"layout-as-n":!0},Mn={...En,"layout-r-none":!0,"layout-fs-c":!0},Nn={"layout-el-cv":!0},Pn=t.v0_8.Styles.merge(_n,{"color-c-p30":!0}),Fn=t.v0_8.Styles.merge(En,{"color-c-n5":!0}),In=t.v0_8.Styles.merge(Mn,{"color-c-n5":!0}),Ln=t.v0_8.Styles.merge(bn,{"color-c-n100":!0}),Rn=t.v0_8.Styles.merge(Sn,{"color-c-n5":!0}),zn=t.v0_8.Styles.merge(Cn,{"color-c-n5":!0}),Bn=t.v0_8.Styles.merge(wn,{"color-c-n5":!0}),Vn=t.v0_8.Styles.merge(yn,{"color-c-n5":!0}),Hn=t.v0_8.Styles.merge(Dn,{"color-c-n60":!0}),Un=t.v0_8.Styles.merge(jn,{"color-c-n35":!0}),Wn=t.v0_8.Styles.merge(On,{"color-c-n35":!0}),Gn=t.v0_8.Styles.merge(kn,{"color-c-n35":!0}),Kn=t.v0_8.Styles.merge(An,{"color-c-n35":!0}),W={"--color-scheme":`light`,"--font-family":`"Montserrat", sans-serif`,"--font-family-flex":`"Montserrat", sans-serif`,"--p-30":`#00c73d`,"--p-60":`#66e08a`,"--p-80":`#c9f5d8`,"--p-100":`#ffffff`,"--s-30":`#f2f5f7`,"--s-70":`#d9dee4`,"--n-5":`#0b0b0b`,"--n-10":`#111827`,"--n-30":`#4b5563`,"--n-35":`#6b7280`,"--n-60":`#9ca3af`,"--n-70":`#cbd5e1`,"--n-90":`#e5e7eb`,"--n-98":`#f9fafb`,"--n-100":`#ffffff`};let qn={additionalStyles:{Card:{...W,"min-width":`320px`},Button:{...W,"--n-60":`var(--n-100)`},CheckBox:{...W},Column:{...W},DateTimeInput:{...W},Divider:{...W},Icon:{...W},Image:{...W,"max-width":`120px`,"max-height":`120px`,marginLeft:`auto`,marginRight:`auto`},List:{...W},Modal:{...W},MultipleChoice:{...W},Row:{...W},Slider:{...W},Tabs:{...W},Text:{...W},TextField:{...W},Video:{...W},AudioPlayer:{...W}},components:{AudioPlayer:{},Button:{"layout-pt-2":!0,"layout-pb-2":!0,"layout-pl-5":!0,"layout-pr-5":!0,"border-br-3":!0,"border-bw-0":!0,"border-bs-s":!0,"color-bgc-p30":!0,"color-c-n100":!0,"behavior-ho-70":!0},Card:{"border-br-3":!0,"color-bgc-p100":!0,"color-bc-n90":!0,"border-bw-1":!0,"border-bs-s":!0,"layout-pt-10":!0,"layout-pb-10":!0,"layout-pl-4":!0,"layout-pr-4":!0},CheckBox:{element:{"layout-m-0":!0,"layout-mr-2":!0,"layout-p-2":!0,"border-br-3":!0,"border-bw-1":!0,"border-bs-s":!0,"color-bgc-p100":!0,"color-bc-p60":!0,"color-c-n30":!0},label:{"color-c-n10":!0,"typography-f-sf":!0,"typography-v-r":!0,"typography-w-400":!0,"layout-flx-1":!0,"typography-sz-ll":!0},container:{"layout-dsp-iflex":!0,"layout-al-c":!0}},Column:{},DateTimeInput:{container:{},label:{},element:{"layout-pt-2":!0,"layout-pb-2":!0,"layout-pl-3":!0,"layout-pr-3":!0,"border-br-3":!0,"border-bw-1":!0,"border-bs-s":!0,"color-bgc-p100":!0,"color-bc-p60":!0,"color-c-n30":!0}},Divider:{"color-bgc-n90":!0,"layout-mt-6":!0,"layout-mb-6":!0},Image:{all:{"border-br-50pc":!0,"layout-el-cv":!0,"layout-w-100":!0,"layout-h-100":!0,"layout-dsp-flexhor":!0,"layout-al-c":!0,"layout-sp-c":!0,"layout-mb-3":!0},avatar:{},header:{},icon:{},largeFeature:{},mediumFeature:{},smallFeature:{}},Icon:{"border-br-1":!0,"layout-p-2":!0,"color-bgc-n98":!0,"layout-dsp-flexhor":!0,"layout-al-c":!0,"layout-sp-c":!0},List:{"layout-g-4":!0,"layout-p-2":!0},Modal:{backdrop:{"color-bbgc-p60_20":!0},element:{"border-br-3":!0,"color-bgc-p100":!0,"layout-p-4":!0,"border-bw-1":!0,"border-bs-s":!0,"color-bc-p80":!0}},MultipleChoice:{container:{},label:{},element:{}},Row:{"layout-g-4":!0,"layout-mb-3":!0},Slider:{container:{},label:{},element:{}},Tabs:{container:{},controls:{all:{},selected:{}},element:{}},Text:{all:{"layout-w-100":!0,"layout-g-2":!0,"color-c-n10":!0},h1:{"typography-f-sf":!0,"typography-ta-c":!0,"typography-v-r":!0,"typography-w-500":!0,"layout-mt-0":!0,"layout-mr-0":!0,"layout-ml-0":!0,"layout-mb-2":!0,"layout-p-0":!0,"typography-sz-tl":!0},h2:{"typography-f-sf":!0,"typography-ta-c":!0,"typography-v-r":!0,"typography-w-500":!0,"layout-mt-0":!0,"layout-mr-0":!0,"layout-ml-0":!0,"layout-mb-2":!0,"layout-p-0":!0,"typography-sz-tl":!0},h3:{"typography-f-sf":!0,"typography-ta-c":!0,"typography-v-r":!0,"typography-w-500":!0,"layout-mt-0":!0,"layout-mr-0":!0,"layout-ml-0":!0,"layout-mb-0":!0,"layout-p-0":!0,"typography-sz-ts":!0},h4:{"typography-f-sf":!0,"typography-ta-c":!0,"typography-v-r":!0,"typography-w-500":!0,"layout-mt-0":!0,"layout-mr-0":!0,"layout-ml-0":!0,"layout-mb-0":!0,"layout-p-0":!0,"typography-sz-bl":!0},h5:{"typography-f-sf":!0,"typography-ta-c":!0,"typography-v-r":!0,"typography-w-500":!0,"layout-mt-0":!0,"layout-mr-0":!0,"layout-ml-0":!0,"layout-mb-0":!0,"layout-p-0":!0,"color-c-n30":!0,"typography-sz-bm":!0,"layout-mb-1":!0},body:{},caption:{}},TextField:{container:{"typography-sz-bm":!0,"layout-w-100":!0,"layout-g-2":!0,"layout-dsp-flexhor":!0,"layout-al-c":!0},label:{"layout-flx-0":!0},element:{"typography-sz-bm":!0,"layout-pt-2":!0,"layout-pb-2":!0,"layout-pl-3":!0,"layout-pr-3":!0,"border-br-3":!0,"border-bw-1":!0,"border-bs-s":!0,"color-bgc-p100":!0,"color-bc-p60":!0,"color-c-n30":!0}},Video:{"border-br-5":!0,"layout-el-cv":!0}},elements:{a:Pn,audio:vn,body:Vn,button:Ln,h1:Rn,h2:zn,h3:Bn,h4:{},h5:{},iframe:Tn,input:Fn,p:Hn,pre:Un,textarea:In,video:Nn},markdown:{p:[...Object.keys(Hn)],h1:[...Object.keys(Rn)],h2:[...Object.keys(zn)],h3:[...Object.keys(Bn)],h4:[],h5:[],ul:[...Object.keys(Gn)],ol:[...Object.keys(Wn)],li:[...Object.keys(Kn)],a:[...Object.keys(Pn)],strong:[],em:[]}};var G=class extends nn(A){constructor(...e){super(...e),this.theme=qn,this.surfaceId=``,this.enableCustomElements=!0}static#e=this.styles=f`
1725
495
  :host {
1726
496
  display: block;
1727
497
  }
1728
- `;render(){if(!this.surfaceId||!this.processor)return b``;let e=this.surface||this.processor.getSurfaces().get(this.surfaceId);return e?b`
498
+ `;render(){if(!this.surfaceId||!this.processor)return C``;let e=this.surface||this.processor.getSurfaces().get(this.surfaceId);return e?C`
1729
499
  <a2ui-surface
1730
500
  .surfaceId=${this.surfaceId}
1731
501
  .surface=${e}
1732
502
  .processor=${this.processor}
1733
503
  .enableCustomElements=${this.enableCustomElements}
1734
504
  ></a2ui-surface>
1735
- `:(console.warn(`A2UIThemeProvider: Surface ${this.surfaceId} not found in processor`,this.processor.getSurfaces()),b`<!-- Surface ${this.surfaceId} not found -->`)}};D([Rn({context:Gn})],xl.prototype,`theme`,void 0),D([T({type:String})],xl.prototype,`surfaceId`,void 0),D([T({type:Object})],xl.prototype,`surface`,void 0),D([T({type:Object})],xl.prototype,`processor`,void 0),D([T({type:Boolean})],xl.prototype,`enableCustomElements`,void 0),xl=D([w(`a2ui-theme-provider`)],xl);let Sl=d`
505
+ `:(console.warn(`A2UIThemeProvider: Surface ${this.surfaceId} not found in processor`,this.processor.getSurfaces()),C`<!-- Surface ${this.surfaceId} not found -->`)}};P([gn({context:n.Context.themeContext})],G.prototype,`theme`,void 0),P([M({type:String})],G.prototype,`surfaceId`,void 0),P([M({type:Object})],G.prototype,`surface`,void 0),P([M({type:Object})],G.prototype,`processor`,void 0),P([M({type:Boolean})],G.prototype,`enableCustomElements`,void 0),G=P([j(`a2ui-theme-provider`)],G);let Jn=f`
1736
506
  :host {
1737
507
  display: block;
1738
508
  position: absolute;
@@ -1795,18 +565,18 @@
1795
565
  color: #999;
1796
566
  font-size: 0.9rem;
1797
567
  }
1798
- `;var Cl=class extends C{constructor(...e){super(...e),this.conversations=[],this.open=!1}static#e=this.styles=Sl;_handleSelect(e){this.dispatchEvent(new CustomEvent(`select-thread`,{detail:{conversation:e},bubbles:!0,composed:!0}))}render(){return b`
568
+ `;var Yn=class extends A{constructor(...e){super(...e),this.conversations=[],this.open=!1}static#e=this.styles=Jn;_handleSelect(e){this.dispatchEvent(new CustomEvent(`select-thread`,{detail:{conversation:e},bubbles:!0,composed:!0}))}render(){return C`
1799
569
  <div class="header">
1800
570
  Conversaciones
1801
571
  </div>
1802
572
  <ul class="list">
1803
- ${this.conversations.length===0?b`<div class="empty-state">No hay conversaciones recientes</div>`:this.conversations.map(e=>b`
573
+ ${this.conversations.length===0?C`<div class="empty-state">No hay conversaciones recientes</div>`:this.conversations.map(e=>C`
1804
574
  <li class="item" @click="${()=>this._handleSelect(e)}">
1805
575
  ${e.title}
1806
576
  </li>
1807
577
  `)}
1808
578
  </ul>
1809
- `}};D([T({type:Array})],Cl.prototype,`conversations`,void 0),D([T({type:Boolean,reflect:!0})],Cl.prototype,`open`,void 0),Cl=D([w(`agent-chat-history-list`)],Cl);let Z=new class extends EventTarget{constructor(...e){super(...e),this._context=null,this._state=null,this._messages=[],this._stream=[]}get context(){return this._context}get state(){return this._state}get messages(){return this._messages}get stream(){return this._stream}setContext(e){this._context=e,this.notify()}setState(e){this._state=e,this.notify()}setMessages(e){this._messages=[...e],this.notify()}addEvent(e,t){this._stream=[{event:e,content:t,time:new Date().toTimeString().split(` `)[0]},...this._stream].slice(0,100),this.notify()}clearStream(){this._stream=[],this.notify()}notify(){this.dispatchEvent(new CustomEvent(`inspector-change`))}},wl=d`
579
+ `}};P([M({type:Array})],Yn.prototype,`conversations`,void 0),P([M({type:Boolean,reflect:!0})],Yn.prototype,`open`,void 0),Yn=P([j(`agent-chat-history-list`)],Yn);let K=new class extends EventTarget{constructor(...e){super(...e),this._context=null,this._state=null,this._messages=[],this._stream=[]}get context(){return this._context}get state(){return this._state}get messages(){return this._messages}get stream(){return this._stream}setContext(e){this._context=e,this.notify()}setState(e){this._state=e,this.notify()}setMessages(e){this._messages=[...e],this.notify()}addEvent(e,t){this._stream=[{event:e,content:t,time:new Date().toTimeString().split(` `)[0]},...this._stream].slice(0,100),this.notify()}clearStream(){this._stream=[],this.notify()}notify(){this.dispatchEvent(new CustomEvent(`inspector-change`))}},Xn=f`
1810
580
  :host {
1811
581
  position: absolute;
1812
582
  bottom: 60px;
@@ -2059,7 +829,7 @@
2059
829
  justify-content: flex-end;
2060
830
  }
2061
831
 
2062
- `;var Tl=class extends C{constructor(...e){super(...e),this._activeTab=`stream`,this._context=null,this._appState=null,this._messages=[],this._stream=[],this._isEditing=!1,this._editedData=``,this._isDragging=!1,this._isResizing=!1,this._currentX=0,this._currentY=0,this._initialX=0,this._initialY=0,this._xOffset=0,this._yOffset=0,this._initialWidth=0,this._initialHeight=0,this._onMouseMove=e=>{this._isDragging?this._drag(e):this._isResizing&&this._resize(e)},this._onMouseUp=()=>{this._isDragging?this._dragEnd():this._isResizing&&this._resizeEnd()},this._onInspectorChange=()=>{this._updateData()}}static#e=this.styles=wl;connectedCallback(){super.connectedCallback(),Z.addEventListener(`inspector-change`,this._onInspectorChange),window.addEventListener(`mousemove`,this._onMouseMove),window.addEventListener(`mouseup`,this._onMouseUp),this._updateData()}disconnectedCallback(){super.disconnectedCallback(),Z.removeEventListener(`inspector-change`,this._onInspectorChange),window.removeEventListener(`mousemove`,this._onMouseMove),window.removeEventListener(`mouseup`,this._onMouseUp)}_updateData(){this._context=Z.context,this._appState=Z.state,this._messages=Z.messages,this._stream=Z.stream,this.requestUpdate()}_handleClose(){this.dispatchEvent(new CustomEvent(`close`))}_dragStart(e){e.target&&e.target.closest(`.close-button`)||(e.type===`touchstart`?(this._initialX=e.touches[0].clientX-this._xOffset,this._initialY=e.touches[0].clientY-this._yOffset):(this._initialX=e.clientX-this._xOffset,this._initialY=e.clientY-this._yOffset),this._isDragging=!0)}_drag(e){this._isDragging&&(e.type!==`mousemove`&&e.preventDefault(),e.type===`touchmove`?(this._currentX=e.touches[0].clientX-this._initialX,this._currentY=e.touches[0].clientY-this._initialY):(this._currentX=e.clientX-this._initialX,this._currentY=e.clientY-this._initialY),this._xOffset=this._currentX,this._yOffset=this._currentY,this._setTranslate(this._currentX,this._currentY))}_dragEnd(){this._initialX=this._currentX,this._initialY=this._currentY,this._isDragging=!1}_resizeStart(e){e.preventDefault(),e.stopPropagation(),this._isResizing=!0,this._initialX=e.clientX,this._initialY=e.clientY,this._initialWidth=this.getBoundingClientRect().width,this._initialHeight=this.getBoundingClientRect().height}_resize(e){if(this._isResizing){let t=e.clientX-this._initialX,n=e.clientY-this._initialY;this.style.width=`${this._initialWidth+t}px`,this.style.height=`${this._initialHeight+n}px`}}_resizeEnd(){this._isResizing=!1}_setTranslate(e,t){this.style.transform=`translate3d(${e}px, ${t}px, 0)`}render(){return b`
832
+ `;var q=class extends A{constructor(...e){super(...e),this._activeTab=`stream`,this._context=null,this._appState=null,this._messages=[],this._stream=[],this._isEditing=!1,this._editedData=``,this._isDragging=!1,this._isResizing=!1,this._currentX=0,this._currentY=0,this._initialX=0,this._initialY=0,this._xOffset=0,this._yOffset=0,this._initialWidth=0,this._initialHeight=0,this._onMouseMove=e=>{this._isDragging?this._drag(e):this._isResizing&&this._resize(e)},this._onMouseUp=()=>{this._isDragging?this._dragEnd():this._isResizing&&this._resizeEnd()},this._onInspectorChange=()=>{this._updateData()}}static#e=this.styles=Xn;connectedCallback(){super.connectedCallback(),K.addEventListener(`inspector-change`,this._onInspectorChange),window.addEventListener(`mousemove`,this._onMouseMove),window.addEventListener(`mouseup`,this._onMouseUp),this._updateData()}disconnectedCallback(){super.disconnectedCallback(),K.removeEventListener(`inspector-change`,this._onInspectorChange),window.removeEventListener(`mousemove`,this._onMouseMove),window.removeEventListener(`mouseup`,this._onMouseUp)}_updateData(){this._context=K.context,this._appState=K.state,this._messages=K.messages,this._stream=K.stream,this.requestUpdate()}_handleClose(){this.dispatchEvent(new CustomEvent(`close`))}_dragStart(e){e.target&&e.target.closest(`.close-button`)||(e.type===`touchstart`?(this._initialX=e.touches[0].clientX-this._xOffset,this._initialY=e.touches[0].clientY-this._yOffset):(this._initialX=e.clientX-this._xOffset,this._initialY=e.clientY-this._yOffset),this._isDragging=!0)}_drag(e){this._isDragging&&(e.type!==`mousemove`&&e.preventDefault(),e.type===`touchmove`?(this._currentX=e.touches[0].clientX-this._initialX,this._currentY=e.touches[0].clientY-this._initialY):(this._currentX=e.clientX-this._initialX,this._currentY=e.clientY-this._initialY),this._xOffset=this._currentX,this._yOffset=this._currentY,this._setTranslate(this._currentX,this._currentY))}_dragEnd(){this._initialX=this._currentX,this._initialY=this._currentY,this._isDragging=!1}_resizeStart(e){e.preventDefault(),e.stopPropagation(),this._isResizing=!0,this._initialX=e.clientX,this._initialY=e.clientY,this._initialWidth=this.getBoundingClientRect().width,this._initialHeight=this.getBoundingClientRect().height}_resize(e){if(this._isResizing){let t=e.clientX-this._initialX,n=e.clientY-this._initialY;this.style.width=`${this._initialWidth+t}px`,this.style.height=`${this._initialHeight+n}px`}}_resizeEnd(){this._isResizing=!1}_setTranslate(e,t){this.style.transform=`translate3d(${e}px, ${t}px, 0)`}render(){return C`
2063
833
  <div class="header"
2064
834
  @mousedown="${this._dragStart}"
2065
835
  @touchstart="${this._dragStart}"
@@ -2081,9 +851,9 @@
2081
851
  ${this._renderContent()}
2082
852
  </div>
2083
853
  <div class="resize-handle" @mousedown="${this._resizeStart}"></div>
2084
- `}_renderContent(){switch(this._activeTab){case`context`:return this._renderEditableSection(`context`,this._context);case`state`:return this._renderEditableSection(`state`,this._appState);case`messages`:return b`<pre>${JSON.stringify(this._messages,null,2)}</pre>`;case`stream`:return b`
854
+ `}_renderContent(){switch(this._activeTab){case`context`:return this._renderEditableSection(`context`,this._context);case`state`:return this._renderEditableSection(`state`,this._appState);case`messages`:return C`<pre>${JSON.stringify(this._messages,null,2)}</pre>`;case`stream`:return C`
2085
855
  <div class="stream-list">
2086
- ${this._stream.map(e=>b`
856
+ ${this._stream.map(e=>C`
2087
857
  <div class="event-item">
2088
858
  <div class="event-header">
2089
859
  <span class="event-name">${e.event}</span>
@@ -2097,9 +867,9 @@
2097
867
  </div>
2098
868
  </div>
2099
869
  `)}
2100
- ${this._stream.length===0?b`<div style="color: #9ca3af; text-align: center; padding: 20px;">No events yet</div>`:``}
870
+ ${this._stream.length===0?C`<div style="color: #9ca3af; text-align: center; padding: 20px;">No events yet</div>`:``}
2101
871
  </div>
2102
- `}}_renderEditableSection(e,t){return this._isEditing?b`
872
+ `}}_renderEditableSection(e,t){return this._isEditing?C`
2103
873
  <div class="editor-container">
2104
874
  <textarea
2105
875
  class="context-editor"
@@ -2111,15 +881,15 @@
2111
881
  <button class="save-button" @click="${()=>this._handleSave(e)}">Save Changes</button>
2112
882
  </div>
2113
883
  </div>
2114
- `:b`
884
+ `:C`
2115
885
  <div class="context-header">
2116
886
  <span>Current ${e===`context`?`Static Context`:`Dynamic State`}</span>
2117
887
  <button class="edit-button" @click="${()=>this._handleEdit(t)}">Edit</button>
2118
888
  </div>
2119
889
  <pre>${JSON.stringify(t,null,2)}</pre>
2120
- `}_handleEdit(e){this._editedData=JSON.stringify(e,null,2),this._isEditing=!0}_handleCancelEdit(){this._isEditing=!1}_handleSave(e){try{let t=JSON.parse(this._editedData),n=e===`context`?`context-update`:`state-update`;this.dispatchEvent(new CustomEvent(n,{detail:t,bubbles:!0,composed:!0})),this._isEditing=!1}catch(e){alert(`Invalid JSON: `+e.message)}}};D([E()],Tl.prototype,`_activeTab`,void 0),D([E()],Tl.prototype,`_context`,void 0),D([E()],Tl.prototype,`_appState`,void 0),D([E()],Tl.prototype,`_messages`,void 0),D([E()],Tl.prototype,`_stream`,void 0),D([E()],Tl.prototype,`_isEditing`,void 0),D([E()],Tl.prototype,`_editedData`,void 0),Tl=D([w(`agent-inspector-window`)],Tl);var El={thread:`thr`,message:`msg`,toolCall:`tc`,workflow:`wf`,task:`tsk`,attachment:`atc`,sdkHiddenContext:`shcx`};function Dl(e){return`${El[e]}_${crypto.randomUUID().replace(/-/g,``).slice(0,8)}`}var Ol=class e extends EventTarget{constructor(){super(),this._context=null}static getInstance(){return e._instance||=new e,e._instance}registerPortal(e){console.log(`Registering app context`,e),this._context=e,this.dispatchEvent(new CustomEvent(`portal-registered`,{detail:e}))}async executePlan(e){return this._context?(console.log(`Executing plan (simplified):`,e),{status:`ok`}):(console.warn(`No portal registered. Cannot execute plan.`),{status:`error`,details:`No portal registered`})}get context(){return this._context}get specs(){return this._context}};let kl=Ol.getInstance();var Al=class{constructor(e){this.service=e}onRunFinishedEvent(e){Z.addEvent(`onRunFinishedEvent`,e.event)}onRunStartedEvent(e){Z.addEvent(`onRunStartedEvent`,e.event),this.service.addPlaceholderMessage()}onRunErrorEvent(e){Z.addEvent(`onRunErrorEvent`,e.event),console.error(`ChatSubscriber: Run Error`,e.event)}onStepStartedEvent(e){Z.addEvent(`onStepStartedEvent`,e.event)}onStepFinishedEvent(e){Z.addEvent(`onStepFinishedEvent`,e.event)}onTextMessageStartEvent(e){Z.addEvent(`onTextMessageStartEvent`,e.event),this.service.prepareMessageForStreaming(e.event.messageId)}onTextMessageContentEvent(e){Z.addEvent(`onTextMessageContentEvent`,e.event);let t=e.event.delta||``;this.service.appendMessageContent(e.event.messageId,t)}onTextMessageEndEvent(e){Z.addEvent(`onTextMessageEndEvent`,e.event)}onMessagesSnapshotEvent(e){Z.addEvent(`onMessagesSnapshotEvent`,e.event);let t=e.event.messages.map(e=>({...e,createdAt:e.createdAt||Date.now()}));this.service.setMessages(t)}onToolCallStartEvent(e){Z.addEvent(`onToolCallStartEvent`,e.event)}onToolCallArgsEvent(e){Z.addEvent(`onToolCallArgsEvent`,e.event)}async onToolCallEndEvent(e){if(Z.addEvent(`onToolCallEndEvent`,e.event),e.toolCallName===`executePlan`){console.log(`ChatSubscriber: Received executePlan tool call`,e.toolCallArgs);let t=await kl.executePlan(e.toolCallArgs);console.log(`ChatSubscriber: executePlan result`,t)}}onToolCallResultEvent(e){Z.addEvent(`onToolCallResultEvent`,e.event)}onStateSnapshotEvent(e){Z.addEvent(`onStateSnapshotEvent`,e.event)}onStateDeltaEvent(e){Z.addEvent(`onStateDeltaEvent`,e.event)}onActivitySnapshotEvent(e){Z.addEvent(`onActivitySnapshotEvent`,e.event),e.event.activityType==`a2ui`&&e.event.content.surfaceUpdate?this.service.addA2UIMessage(e.event):e.event.activityType==`a2ui`&&e.event.content.beginRendering&&ft.processMessages([e.event.content])}onActivityDeltaEvent(e){Z.addEvent(`onActivityDeltaEvent`,e.event)}onCustomEvent(e){Z.addEvent(`onCustomEvent`,e.event)}async onClientToolCall(e){Z.addEvent(`onClientToolCall`,e.event),e.toolName===`executePlan`&&(console.log(`ChatSubscriber: Received executePlan client tool call`,e.args),await kl.executePlan(e.args))}onEvent(e){Z.addEvent(`onEvent:${e.event.type}`,e.event)}onRawEvent(e){Z.addEvent(`onRawEvent`,e.event)}},jl=class{constructor(){this.baseUrl=`http://localhost:8003/api/conversations`}initialize(e){this.baseUrl=`${e}/api/conversations`}async getConversations(){let e=await fetch(`${this.baseUrl}`);if(!e.ok)throw Error(`Failed to fetch conversations: ${e.statusText}`);return e.json()}async getConversation(e){let t=await fetch(`${this.baseUrl}/${e}`);if(!t.ok)throw Error(`Failed to fetch conversation: ${t.statusText}`);return t.json()}async createConversation(e){let t={...e,title:e.title||`Nueva conversación`},n=await fetch(this.baseUrl,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)});if(!n.ok)throw Error(`Failed to create conversation: ${n.statusText}`);return n.json()}async updateConversation(e,t){let n=await fetch(`${this.baseUrl}/${e}`,{method:`PUT`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)});if(!n.ok)throw Error(`Failed to update conversation: ${n.statusText}`);return n.json()}async deleteConversation(e){let t=await fetch(`${this.baseUrl}/${e}`,{method:`DELETE`});if(!t.ok)throw Error(`Failed to delete conversation: ${t.statusText}`)}};let Ml=new jl;var Nl=`thread-placeholder`,Pl=`site-operator-thread-id`;let Q=new class extends EventTarget{get isRunning(){return this.agent?.isRunning||!1}get messages(){return this.agent?.messages||[]}constructor(){super(),this._conversations=[],this._appContext=null,this._appState={v:`1.1`,location:{path:``},ui:{visibleClickTargetIds:[]}},this.subscriber=new Al(this),kl.addEventListener(`portal-registered`,e=>{let t=e.detail;console.log(`ChatService: Portal context detected`,t),this.setAppContext(t)})}async initialize(e){let t=localStorage.getItem(Pl);this.agent=new n.HttpAgent({url:e.backendUrl,threadId:t||Nl}),Ml.initialize(e.conversationUrl),kl.context?this._appContext=kl.context:this._appContext={v:`1.1`,site:{name:e.appName,locale:window.navigator.language||window.navigator.languages[0]||`en`}},t&&await this.loadConversation(t),Z.setContext(this._appContext),Z.setState(this._appState),Z.setMessages(this.agent?.messages||[])}async loadConversation(e){try{let t=await Ml.getConversation(e);this.agent&&(this.agent.threadId=t.id,this.agent.messages=t.messages||[],localStorage.setItem(Pl,t.id)),this.notify()}catch(e){console.error(`Failed to load conversation`,e),this.agent&&(this.agent.threadId=Nl,this.agent.messages=[],localStorage.removeItem(Pl)),this.notify()}}get conversations(){return this._conversations}setAppContext(e){this._appContext=e,Z.setContext(this._appContext),this.notify()}setAppState(e){this._appState=e,Z.setState(this._appState),this.notify()}updateAppState(e){this._appState={...this._appState,...e},this.notify()}setAppLocation(e){this._appState.location=e,this.notify()}setAppUI(e){this._appState.ui=e,this.notify()}setAppFocus(e){this._appState.focus=e,this.notify()}async sendMessage(e,t=`user`){if(!this.agent){console.error(`ChatService not initialized. Call initialize() first.`);return}let n=Dl(`message`),r=Date.now(),i;switch(t){case`activity`:i={id:n,role:`activity`,activityType:`message`,content:{text:e},createdAt:r};break;case`tool`:i={id:n,role:`tool`,content:e,toolCallId:Dl(`toolCall`),createdAt:r};break;case`user`:i={id:n,role:`user`,content:e,createdAt:r};break;case`assistant`:i={id:n,role:`assistant`,content:e,createdAt:r};break;case`system`:i={id:n,role:`system`,content:e,createdAt:r};break;case`developer`:i={id:n,role:`developer`,content:e,createdAt:r};break}this.notify();try{this.agent?.threadId==Nl&&await this._ensureConversation(),this.agent.addMessage(i),this.agent.state={appContext:this._appContext,appState:this._appState},await this.agent.runAgent({tools:[]},this.subscriber)}catch(e){console.error(`Failed to send message`,e)}finally{this.notify()}}async _ensureConversation(){if(!this.agent)throw Error(`Agent not initialized`);if(this.agent?.threadId==Nl){let e=await Ml.createConversation({appContext:this._appContext||void 0});this.agent.threadId=e.id,localStorage.setItem(Pl,e.id)}}addPlaceholderMessage(){if(!this.agent)throw Error(`Agent not initialized`);let e={id:`thinking-placeholder`,role:`assistant`,content:``,createdAt:Date.now(),isThinking:!0};this.agent.messages=[...this.agent.messages,e],this.notify()}prepareMessageForStreaming(e){if(!this.agent)throw Error(`Agent not initialized`);this.agent.messages=this.agent.messages.map(t=>t.id===`thinking-placeholder`&&this.isRunning?{...t,id:e,isThinking:!1}:t),this.notify()}appendMessageContent(e,t){if(!this.agent)throw Error(`Agent not initialized`);this.agent.messages=this.agent.messages.map(n=>n.id===e&&typeof n.content==`string`?{...n,content:(n.content||``)+t}:n),this.notify()}setMessages(e){if(!this.agent)throw Error(`Agent not initialized`);let t=this.agent.messages.filter(e=>e.role===`activity`),n=new Set(e.map(e=>e.id)),r=t.filter(e=>!n.has(e.id));console.log(`ChatService: setMessages - Preserving activities`,r.length),this.agent.messages=[...e,...r],this.agent.messages.sort((e,t)=>(e.createdAt||0)-(t.createdAt||0)),this.notify()}addA2UIMessage(e){if(!this.agent)throw Error(`Agent not initialized`);let t=e.content;if(typeof t==`string`)try{t=JSON.parse(t)}catch(e){console.error(`ChatService: Failed to parse activity content string`,e)}let n={id:e.messageId,role:`activity`,activityType:e.activityType,content:e.content,createdAt:Date.now()},r=this.agent.messages.filter(t=>t.id!==e.messageId);this.agent.messages=[...r,n],this.notify()}async startNewThread(){localStorage.removeItem(Pl),this.agent&&(this.agent.threadId=Nl,this.agent.messages=[],this.agent.isRunning=!1),this.notify()}async refreshConversations(){try{this._conversations=(await Ml.getConversations()).map(e=>({id:e.id,title:e.title})),this.notify()}catch(e){console.error(`Failed to refresh conversations`,e)}}notify(){Z.setMessages(this.agent?.messages||[]),Z.setState(this._appState),this.dispatchEvent(new CustomEvent(`state-change`))}};var Fl=class{constructor(e){this._onStateChange=()=>{this._host.requestUpdate()},this._host=e,this._host.addController(this)}initialize(e){return Q.initialize(e)}hostConnected(){Q.addEventListener(`state-change`,this._onStateChange)}hostDisconnected(){Q.removeEventListener(`state-change`,this._onStateChange)}get isRunning(){return Q.isRunning}get messages(){return Q.messages}get conversations(){return Q.conversations}sendMessage(e){return Q.sendMessage(e)}startNewThread(){return Q.startNewThread()}loadConversation(e){return Q.loadConversation(e)}setAppContext(e){return Q.setAppContext(e)}setAppState(e){return Q.setAppState(e)}setAppLocation(e){return Q.setAppLocation(e)}setAppUI(e){return Q.setAppUI(e)}setAppFocus(e){return Q.setAppFocus(e)}refreshConversations(){return Q.refreshConversations()}},Il=class{constructor(){this.originalFetch=window.fetch.bind(window),this._isEnabled=!1}get isEnabled(){return this._isEnabled}init(){if(this._isEnabled)return;let e=this;window.fetch=async function(t,n){try{let r=new Headers(n?.headers||{});return r.has(`Authorization`)||r.append(`Authorization`,`Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6InhmcDRfR0tObWNBMHl3UUNrZ1BXVkJjTHZmRDVfZXZKOWg3bUhGbExBVWMiLCJ0eXAiOiJKV1QifQ.eyJhdWQiOiIwZWZhNWFhNy04OWRiLTQ5MTYtYmZlNC0wNTM3MjhlZWY2M2QiLCJpc3MiOiJodHRwczovL3NrY290ZXN0LmIyY2xvZ2luLmNvbS8wZGI2ZGJjMy02OTA4LTQ1MTctYTdmMi04MWVhNjg1YTI1ZTIvdjIuMC8iLCJleHAiOjE3NjkxMDU4NDIsIm5iZiI6MTc2OTEwNDk0MiwibmFtZSI6IlZpYW5hIFZlbGFzcXVleiwgSm9zZSBTdGV2ZW4iLCJpZHBfYWNjZXNzX3Rva2VuIjoiZXlKMGVYQWlPaUpLVjFRaUxDSnViMjVqWlNJNkltNTFURzV6ZVc1WFFYSTFOa2hNYTFCblRXMUViWFF0UW14YVVsWjBXRFV0TUdSbVlYVk1WRTgxY3pnaUxDSmhiR2NpT2lKU1V6STFOaUlzSW5nMWRDSTZJbEJqV0RrNFIxZzBNakJVTVZnMmMwSkVhM3BvVVcxeFozZE5WU0lzSW10cFpDSTZJbEJqV0RrNFIxZzBNakJVTVZnMmMwSkVhM3BvVVcxeFozZE5WU0o5LmV5SmhkV1FpT2lJd01EQXdNREF3TXkwd01EQXdMVEF3TURBdFl6QXdNQzB3TURBd01EQXdNREF3TURBaUxDSnBjM01pT2lKb2RIUndjem92TDNOMGN5NTNhVzVrYjNkekxtNWxkQzh3T0RJM01XWTBNaTA0TVdWbUxUUTFaRFl0T0RGaFl5MDBPVGMzTm1NMFltVTJNVFV2SWl3aWFXRjBJam94TnpZNU1EazNORGt5TENKdVltWWlPakUzTmprd09UYzBPVElzSW1WNGNDSTZNVGMyT1RFd01UZzRNU3dpWVdOamRDSTZNQ3dpWVdOeUlqb2lNU0lzSW1GamNuTWlPbHNpY0RFaVhTd2lZV2x2SWpvaVFXVlJRVWN2T0dKQlFVRkJUVTQ0YmpFdllqWk9kMVZTTmpGMFpGSlZXSGhNUzJOak5WQnNVREpyYUdvcmVEbDFlWFZXTkVGYU5WRjZUSEo1U0dSTlVVeGpOSHBpVFV0UE9GQTJXRGREVEZVd1luVjFUMGczTml0WlVIUTBOamx1Unk5Q1ZEVjZiMDF5WkRkbmFXTnlXVk12VW5ac1VYaHVTWHBETkc5bE9HMXFTSFUyUkdodmVUUm1RakJGWlcwNGVTdFdLMGhRVEdoSWRraElhVlZUVFdFMWRYRlhaRlJvVTJrNE1WVndlakZzYUUxWFJVaFlZMGhaUjFORGRESkhVR0puWVRoUFNtSjRaVEJNVm5kaFpWTm9MMVZPYkdkU1VHdEdURlZLWlZwWWFURkNVVFJzVldjNU1YSXdTM1ZIY1dNeGMxTkZaSEp4SzJoWlVtTlZNMWRNUkRJd1VqVTJSRVl2WkhkbU1WVjZUVVZqUkRFMlZVa3hZelpXVjBjdlQweElSRzFyUVRkUFMzTkVOMFpGWkZWVlZXdERSbEU5SWl3aVlXMXlJanBiSW5CM1pDSXNJbTFtWVNKZExDSmhjSEJmWkdsemNHeGhlVzVoYldVaU9pSkVZV3hwTFZCeVpDSXNJbUZ3Y0dsa0lqb2laR1prTURrNVlqQXRaV05pT1MwME0yVTFMV0kzWWpjdE5USTVObUk0TUdFME5qSXdJaXdpWVhCd2FXUmhZM0lpT2lJeElpd2labUZ0YVd4NVgyNWhiV1VpT2lKV2FXRnVZU0JXWld4aGMzRjFaWG9pTENKbmFYWmxibDl1WVcxbElqb2lTbTl6WlNCVGRHVjJaVzRpTENKcFpIUjVjQ0k2SW5WelpYSWlMQ0pwY0dGa1pISWlPaUl6T0M0NUxqSXlNQzR4TXpJaUxDSnVZVzFsSWpvaVZtbGhibUVnVm1Wc1lYTnhkV1Y2TENCS2IzTmxJRk4wWlhabGJpSXNJbTlwWkNJNkltVXdNbU0wTmpaakxXVTVaRGd0TkdGa01pMDVaVGhrTFdReFltUTJObUV6TkRNd01pSXNJbTl1Y0hKbGJWOXphV1FpT2lKVExURXROUzB5TVMweU5EZzVPVGM1T1RRd0xUSTFOVEl3TVRnM016RXRNVGN3TWpjeE9UTTFPUzB5TVRrNE1DSXNJbkJzWVhSbUlqb2lPQ0lzSW5CMWFXUWlPaUl4TURBek1qQXdNVUV4UWpCQ016azBJaXdpY21naU9pSXhMa0ZVVVVGUmFEaHVRMDh0UWpGclYwSnlSV3d6WWtWMmJVWlJUVUZCUVVGQlFVRkJRWGRCUVVGQlFVRkJRVUZDVVVGUmF6QkJRUzRpTENKelkzQWlPaUpOWVdsc0xsSmxZV1FnVFdGcGJDNVRaVzVrSUc5d1pXNXBaQ0J3Y205bWFXeGxJRlZ6WlhJdVVtVmhaQ0JsYldGcGJDSXNJbk5wWkNJNklqQXdNVEkxTnpaaExXTmhOVFF0TVdVeVl5MWlZbVEwTFdFNU4yVTBNekUzT1dNeE15SXNJbk5wWjI1cGJsOXpkR0YwWlNJNld5SnJiWE5wSWwwc0luTjFZaUk2SW5GaFNsbFhNelEzT0RWcFdFUktVbDlyYVZCa1NuSm5VWGhoVGs5d1RsaHRhVmhFV0dVM1NVTktaMWtpTENKMFpXNWhiblJmY21WbmFXOXVYM05qYjNCbElqb2lVMEVpTENKMGFXUWlPaUl3T0RJM01XWTBNaTA0TVdWbUxUUTFaRFl0T0RGaFl5MDBPVGMzTm1NMFltVTJNVFVpTENKMWJtbHhkV1ZmYm1GdFpTSTZJbXAyYVdGdVlVQnphMkZ1WkdsaExtTnZiUzVqYnlJc0luVndiaUk2SW1wMmFXRnVZVUJ6YTJGdVpHbGhMbU52YlM1amJ5SXNJblYwYVNJNkluSlVaMVpmZUVWTVJHdFBSMmx3Y210R01tZDVRVUVpTENKMlpYSWlPaUl4TGpBaUxDSjNhV1J6SWpwYkltSTNPV1ppWmpSa0xUTmxaamt0TkRZNE9TMDRNVFF6TFRjMllqRTVOR1U0TlRVd09TSmRMQ0o0YlhOZllXTmtJam94TnpVeU5UZzVNVEk0TENKNGJYTmZZV04wWDJaamRDSTZJak1nT1NJc0luaHRjMTltZEdRaU9pSXRkalJ3UW10NmRXRlFYMjVSUmpkVVZVWnlRVkZtYkdSNlIzTlpjRWxwT1dnMGFrdDZhbU5SVFZaQlFtUllUbXhaV0U0d1RGZFNlbUpZVFNJc0luaHRjMTlwWkhKbGJDSTZJakVnTWpBaUxDSjRiWE5mYzNRaU9uc2ljM1ZpSWpvaWMzUkNiazAzV25FME1td3hVa1l5ZEV0RU1GaEJVbVpoVGtOUlFXOW9WbTFmVUZWWFltSnJSbDlST0NKOUxDSjRiWE5mYzNWaVgyWmpkQ0k2SWpFd0lETWlMQ0o0YlhOZmRHTmtkQ0k2TVRNNU16WXdNek0wTVN3aWVHMXpYM1J1ZEY5bVkzUWlPaUkySURNaWZRLkEyZl9aRHNVcmp3UFh1NFVRMkYxN2tLNzVXTE1lN3lWX09YNHFKYk1zNTQxQmFmdk1GU3pOQnJILVJsR1FTdjEybjlrRm0yTGJ6bzdoMnJzR0JiRWsyOFQzdmtlTW95TVNPVFdfaldELUFHSVZOVVdaYnc3emVZWHVZYmEydUtfblR5cGpwQVNoV3hBNlJkMUV5QUhGZjVQakIxOTlYRGgySkp2bWJfZzVHazhJY2VEZ3QzcEVRRWF0QUdzZzVZRjN0ZlctLTdGT05EY3NTQjJjS2pMdXJwUl8tUG90LVF6TV9CaV9CeHhBZU1tNlAtb2JGRzB4WGRlRnFkUW9lS2pIVFEzN2EzeE9MMkZ2TFg4ZUhjN2x1SWstUkFBQnlmOXhhMnlxS0NkWGFiQkVSejRzeWhCRkpuMzdCeDc1cUlsZk1rQUlTX2NlemZZYndnSEJJWmZEZyIsInN1YiI6Ijg4MjBkNmI2LTcyNWItNDA0NC1hZGNiLWEzZTE4YTM4ZTRmYyIsImdpdmVuX25hbWUiOiJKb3NlIFN0ZXZlbiIsImZhbWlseV9uYW1lIjoiVmlhbmEgVmVsYXNxdWV6IiwiZW1haWwiOiJqdmlhbmFAc2thbmRpYS5jb20uY28iLCJub25jZSI6IjAxOWJlNjcyLTA4NWYtNzkxNi04MmZjLTk0MTA4OTRjODMyNSIsImF6cCI6IjBlZmE1YWE3LTg5ZGItNDkxNi1iZmU0LTA1MzcyOGVlZjYzZCIsInZlciI6IjEuMCIsImlhdCI6MTc2OTEwNDk0Mn0.VtTahcecv_xgI5cnKvcAF6bKbW4ogj8NPmV1pDNIacGUNX7F3hruj8Myhzvfno7VNzjcMmGj5yEVywekJpXzzcPttcOZC_vs3erZEoLP_KKKpyzS-0UTvY4m_JcMtvbRCzC-JhPb-NfN6-wu0wzJ377T9pfJrY-kOXZrDv-HiE6Pb5-qYh-MS5-Lr0WK8_erlfbEEiXJfGNJAjRv8iVuLXQB8cK04f65MxLKs2fZkJhhI2XJbafkseLPvO7Jnr4-LPmZ47754sZ92g1sxT3a82U8KNGYG7DfM6y2klhE9UQAPDLUbMS07OFUIbLH2mhvQjkBdSUwpFvD_BkuHzCLEg`),e.originalFetch(t,{...n,headers:r})}catch(e){return Promise.reject(e)}},this._isEnabled=!0,console.log(`Fetch interceptor initialized with test Authorization header (Native implementation).`)}destroy(){this._isEnabled&&(window.fetch=this.originalFetch,this._isEnabled=!1,console.log(`Fetch interceptor destroyed (Native implementation).`))}};let Ll=new Il;var $=class extends C{constructor(...e){super(...e),this._chatController=new Fl(this),this.backendUrl=`/ag_ui`,this.appName=`Lit-Chat-App`,this.conversationUrl=``,this.agentAvatar=``,this.disclaimer=`Agent puede cometer errores. Verifica la información importante.`,this.emptyText=`¿En qué puedo ayudarte hoy?`,this.placeholder=`Enviar un mensaje a Agent`,this.headerTitle=`Agent`,this.hideHeader=!1,this.interceptor=!1,this._historyOpen=!1,this._inspectorOpen=!1,this._inspectorEnabled=!1}static#e=this.styles=Qe;get controller(){return this._chatController}firstUpdated(){this.dispatchEvent(new CustomEvent(`controller-ready`,{detail:this._chatController}))}willUpdate(e){e.has(`interceptor`)&&(this.interceptor?this.enableFetchInterceptor():Ll.destroy()),(e.has(`backendUrl`)||e.has(`appName`)||e.has(`conversationUrl`))&&(this._chatController.initialize({backendUrl:this.backendUrl,appName:this.appName,conversationUrl:this.conversationUrl,inspector:this.hasAttribute(`inspector`)||this.inspector}),this._inspectorEnabled=this.hasAttribute(`inspector`)||this.inspector)}enableFetchInterceptor(){console.warn(`Fetch interceptor is only available in development mode.`)}_handleSend(e){this._chatController.sendMessage(e.detail.content)}_handleNewThread(){this._chatController.startNewThread()}setAppContext(e){this._chatController.setAppContext(e)}setAppState(e){this._chatController.setAppState(e)}setAppLocation(e){this._chatController.setAppLocation(e)}setAppUI(e){this._chatController.setAppUI(e)}setAppFocus(e){this._chatController.setAppFocus(e)}_toggleHistory(){this._historyOpen=!this._historyOpen,this._historyOpen&&this._chatController.refreshConversations()}_handleSelectThread(e){console.log(`Selected conversation:`,e.detail.conversation),this._chatController.loadConversation(e.detail.conversation.id),this._historyOpen=!1}_toggleInspector(){this._inspectorOpen=!this._inspectorOpen}render(){return b`
890
+ `}_handleEdit(e){this._editedData=JSON.stringify(e,null,2),this._isEditing=!0}_handleCancelEdit(){this._isEditing=!1}_handleSave(e){try{let t=JSON.parse(this._editedData),n=e===`context`?`context-update`:`state-update`;this.dispatchEvent(new CustomEvent(n,{detail:t,bubbles:!0,composed:!0})),this._isEditing=!1}catch(e){alert(`Invalid JSON: `+e.message)}}};P([N()],q.prototype,`_activeTab`,void 0),P([N()],q.prototype,`_context`,void 0),P([N()],q.prototype,`_appState`,void 0),P([N()],q.prototype,`_messages`,void 0),P([N()],q.prototype,`_stream`,void 0),P([N()],q.prototype,`_isEditing`,void 0),P([N()],q.prototype,`_editedData`,void 0),q=P([j(`agent-inspector-window`)],q);var Zn={thread:`thr`,message:`msg`,toolCall:`tc`,workflow:`wf`,task:`tsk`,attachment:`atc`,sdkHiddenContext:`shcx`};function Qn(e){return`${Zn[e]}_${crypto.randomUUID().replace(/-/g,``).slice(0,8)}`}var $n=class e extends EventTarget{constructor(){super(),this._context=null,this._visibleTargetIds=new Set,this._executePlanHandler=null}static getInstance(){return e._instance||=new e,e._instance}registerPortal(e,t){console.log(`Registering app context`,e),this._context=e,t?.executePlan&&(this._executePlanHandler=t.executePlan),this.dispatchEvent(new CustomEvent(`portal-registered`,{detail:e}))}setVisibleTargets(e){this._visibleTargetIds=new Set(e),this.dispatchEvent(new CustomEvent(`targets-updated`,{detail:e}))}async executePlan(e){if(e.type===`click`){let t=e.targetId;if(console.log(`ChatPortalService: Waiting for click target "${t}"...`),!await this._waitForTarget(t))return{status:`error`,details:`Target "${t}" not found or not visible after timeout.`}}return this._executePlanHandler?this._executePlanHandler(e):this._context?(console.log(`Executing plan (simplified):`,e),{status:`ok`}):(console.warn(`No portal registered. Cannot execute plan.`),{status:`error`,details:`No portal registered`})}_waitForTarget(e,t=1e4){return this._visibleTargetIds.has(e)?Promise.resolve(!0):new Promise(n=>{let r=setTimeout(()=>{this.removeEventListener(`targets-updated`,i),n(!1)},t),i=()=>{this._visibleTargetIds.has(e)&&(clearTimeout(r),this.removeEventListener(`targets-updated`,i),n(!0))};this.addEventListener(`targets-updated`,i)})}get context(){return this._context}get specs(){return this._context}};let J=$n.getInstance();var er=class{constructor(e){this.service=e}onRunFinishedEvent(e){K.addEvent(`onRunFinishedEvent`,e.event)}onRunStartedEvent(e){K.addEvent(`onRunStartedEvent`,e.event),this.service.addPlaceholderMessage()}onRunErrorEvent(e){K.addEvent(`onRunErrorEvent`,e.event),console.error(`ChatSubscriber: Run Error`,e.event)}onStepStartedEvent(e){K.addEvent(`onStepStartedEvent`,e.event)}onStepFinishedEvent(e){K.addEvent(`onStepFinishedEvent`,e.event)}onTextMessageStartEvent(e){K.addEvent(`onTextMessageStartEvent`,e.event),this.service.prepareMessageForStreaming(e.event.messageId)}onTextMessageContentEvent(e){K.addEvent(`onTextMessageContentEvent`,e.event);let t=e.event.delta||``;this.service.appendMessageContent(e.event.messageId,t)}onTextMessageEndEvent(e){K.addEvent(`onTextMessageEndEvent`,e.event)}onMessagesSnapshotEvent(e){K.addEvent(`onMessagesSnapshotEvent`,e.event);let t=e.event.messages.map(e=>({...e,createdAt:e.createdAt||Date.now()}));this.service.setMessages(t)}onToolCallStartEvent(e){K.addEvent(`onToolCallStartEvent`,e.event)}onToolCallArgsEvent(e){K.addEvent(`onToolCallArgsEvent`,e.event)}async onToolCallEndEvent(e){if(K.addEvent(`onToolCallEndEvent`,e.event),e.toolCallName===`executePlan`){console.log(`ChatSubscriber: Received executePlan tool call`,e.toolCallArgs);let t=await J.executePlan(e.toolCallArgs);console.log(`ChatSubscriber: executePlan result`,t)}if(e.toolCallName===`navigate_user`){console.log(`ChatSubscriber: Received navigate_user tool call`,e.toolCallArgs);let t=await J.executePlan({type:`navigate`,toPath:e.toolCallArgs.path,reason:e.toolCallArgs.reason});console.log(`ChatSubscriber: navigate_user result`,t)}if(e.toolCallName===`click_element`){console.log(`ChatSubscriber: Received click_element tool call`,e.toolCallArgs);let t=await J.executePlan({type:`click`,targetId:e.toolCallArgs.target_id,reason:e.toolCallArgs.reason});console.log(`ChatSubscriber: click_element result`,t)}}onToolCallResultEvent(e){K.addEvent(`onToolCallResultEvent`,e.event)}onStateSnapshotEvent(e){K.addEvent(`onStateSnapshotEvent`,e.event)}onStateDeltaEvent(e){K.addEvent(`onStateDeltaEvent`,e.event)}onActivitySnapshotEvent(e){K.addEvent(`onActivitySnapshotEvent`,e.event),e.event.activityType==`a2ui`&&e.event.content.surfaceUpdate?this.service.addA2UIMessage(e.event):e.event.activityType==`a2ui`&&e.event.content.beginRendering?dt.processMessages([e.event.content]):(e.event.activityType==`navigation`||e.event.activityType==`click`)&&J.executePlan(e.event.content)}onActivityDeltaEvent(e){K.addEvent(`onActivityDeltaEvent`,e.event)}onCustomEvent(e){K.addEvent(`onCustomEvent`,e.event)}async onClientToolCall(e){K.addEvent(`onClientToolCall`,e.event),e.toolName===`executePlan`&&(console.log(`ChatSubscriber: Received executePlan client tool call`,e.args),await J.executePlan(e.args))}onEvent(e){K.addEvent(`onEvent:${e.event.type}`,e.event)}onRawEvent(e){K.addEvent(`onRawEvent`,e.event)}},tr=class{constructor(){this.baseUrl=`/api/conversations`}initialize(e){this.baseUrl=`${e}/api/conversations`}async getConversations(){let e=await fetch(`${this.baseUrl}`);if(!e.ok)throw Error(`Failed to fetch conversations: ${e.statusText}`);return e.json()}async getConversation(e){let t=await fetch(`${this.baseUrl}/${e}`);if(!t.ok)throw Error(`Failed to fetch conversation: ${t.statusText}`);return t.json()}async createConversation(e){let t={...e,title:e.title||`Nueva conversación`},n=await fetch(this.baseUrl,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)});if(!n.ok)throw Error(`Failed to create conversation: ${n.statusText}`);return n.json()}async updateConversation(e,t){let n=await fetch(`${this.baseUrl}/${e}`,{method:`PUT`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)});if(!n.ok)throw Error(`Failed to update conversation: ${n.statusText}`);return n.json()}async deleteConversation(e){let t=await fetch(`${this.baseUrl}/${e}`,{method:`DELETE`});if(!t.ok)throw Error(`Failed to delete conversation: ${t.statusText}`)}};let Y=new tr;var X=`thread-placeholder`,Z=`site-operator-thread-id`,nr=`/ag_ui`;let Q=new class extends EventTarget{get isRunning(){return this.agent?.isRunning||!1}get messages(){return this.agent?.messages||[]}constructor(){super(),this._conversations=[],this._appContext=null,this._appState={v:`1.1`,location:{path:``},ui:{visibleClickTargetIds:[]}},this.subscriber=new er(this),J.addEventListener(`portal-registered`,e=>{let t=e.detail;console.log(`ChatService: Portal context detected`,t),this.setAppContext(t)})}async initialize(e){let t=localStorage.getItem(Z);this.agent=new r.HttpAgent({url:`${e.backendUrl}${nr}`,threadId:t||X}),Y.initialize(e.backendUrl),J.context?this._appContext=J.context:this._appContext={v:`1.1`,site:{name:e.appName,locale:window.navigator.language||window.navigator.languages[0]||`en`}},t&&await this.loadConversation(t),K.setContext(this._appContext),K.setState(this._appState),K.setMessages(this.agent?.messages||[])}async loadConversation(e){try{let t=await Y.getConversation(e);this.agent&&(this.agent.threadId=t.id,this.agent.messages=t.messages||[],localStorage.setItem(Z,t.id)),this.notify()}catch(e){console.error(`Failed to load conversation`,e),this.agent&&(this.agent.threadId=X,this.agent.messages=[],localStorage.removeItem(Z)),this.notify()}}get conversations(){return this._conversations}setAppContext(e){this._appContext=e,K.setContext(this._appContext),this.notify()}setAppState(e){this._appState=e,K.setState(this._appState),e.ui?.visibleClickTargetIds&&J.setVisibleTargets(e.ui.visibleClickTargetIds),this.notify()}updateAppState(e){this._appState={...this._appState,...e},this.notify()}setAppLocation(e){this._appState.location=e,this.notify()}setAppUI(e){this._appState.ui=e,e?.visibleClickTargetIds&&J.setVisibleTargets(e.visibleClickTargetIds),this.notify()}setAppFocus(e){this._appState.focus=e,this.notify()}async sendMessage(e,t=`user`){if(!this.agent){console.error(`ChatService not initialized. Call initialize() first.`);return}let n=Qn(`message`),r=Date.now(),i;switch(t){case`activity`:i={id:n,role:`activity`,activityType:`message`,content:{text:e},createdAt:r};break;case`tool`:i={id:n,role:`tool`,content:e,toolCallId:Qn(`toolCall`),createdAt:r};break;case`user`:i={id:n,role:`user`,content:e,createdAt:r};break;case`assistant`:i={id:n,role:`assistant`,content:e,createdAt:r};break;case`system`:i={id:n,role:`system`,content:e,createdAt:r};break;case`developer`:i={id:n,role:`developer`,content:e,createdAt:r};break}this.notify();try{this.agent?.threadId==X&&await this._ensureConversation(),this.agent.addMessage(i),this.agent.state={appContext:this._appContext,appState:this._appState},await this.agent.runAgent({tools:[]},this.subscriber)}catch(e){console.error(`Failed to send message`,e)}finally{this.notify()}}async _ensureConversation(){if(!this.agent)throw Error(`Agent not initialized`);if(this.agent?.threadId==X){let e=await Y.createConversation({appContext:this._appContext||void 0});this.agent.threadId=e.id,localStorage.setItem(Z,e.id)}}addPlaceholderMessage(){if(!this.agent)throw Error(`Agent not initialized`);let e={id:`thinking-placeholder`,role:`assistant`,content:``,createdAt:Date.now(),isThinking:!0};this.agent.messages=[...this.agent.messages,e],this.notify()}prepareMessageForStreaming(e){if(!this.agent)throw Error(`Agent not initialized`);this.agent.messages=this.agent.messages.map(t=>t.id===`thinking-placeholder`&&this.isRunning?{...t,id:e,isThinking:!1}:t),this.notify()}appendMessageContent(e,t){if(!this.agent)throw Error(`Agent not initialized`);this.agent.messages=this.agent.messages.map(n=>n.id===e&&typeof n.content==`string`?{...n,content:(n.content||``)+t}:n),this.notify()}setMessages(e){if(!this.agent)throw Error(`Agent not initialized`);let t=this.agent.messages.filter(e=>e.role===`activity`),n=new Set(e.map(e=>e.id)),r=t.filter(e=>!n.has(e.id));console.log(`ChatService: setMessages - Preserving activities`,r.length),this.agent.messages=[...e,...r],this.agent.messages.sort((e,t)=>(e.createdAt||0)-(t.createdAt||0)),this.notify()}addA2UIMessage(e){if(!this.agent)throw Error(`Agent not initialized`);let t=e.content;if(typeof t==`string`)try{t=JSON.parse(t)}catch(e){console.error(`ChatService: Failed to parse activity content string`,e)}let n={id:e.messageId,role:`activity`,activityType:e.activityType,content:e.content,createdAt:Date.now()},r=this.agent.messages.filter(t=>t.id!==e.messageId);this.agent.messages=[...r,n],this.notify()}async startNewThread(){localStorage.removeItem(Z),this.agent&&(this.agent.threadId=X,this.agent.messages=[],this.agent.isRunning=!1),this.notify()}async refreshConversations(){try{this._conversations=(await Y.getConversations()).map(e=>({id:e.id,title:e.title})),this.notify()}catch(e){console.error(`Failed to refresh conversations`,e)}}notify(){K.setMessages(this.agent?.messages||[]),K.setState(this._appState),this.dispatchEvent(new CustomEvent(`state-change`))}};var rr=class{constructor(e){this._onStateChange=()=>{this._host.requestUpdate()},this._host=e,this._host.addController(this)}initialize(e){return Q.initialize(e)}hostConnected(){Q.addEventListener(`state-change`,this._onStateChange)}hostDisconnected(){Q.removeEventListener(`state-change`,this._onStateChange)}get isRunning(){return Q.isRunning}get messages(){return Q.messages}get conversations(){return Q.conversations}sendMessage(e,t=`user`){return Q.sendMessage(e,t)}startNewThread(){return Q.startNewThread()}loadConversation(e){return Q.loadConversation(e)}setAppContext(e){return Q.setAppContext(e)}setAppState(e){return Q.setAppState(e)}setAppLocation(e){return Q.setAppLocation(e)}setAppUI(e){return Q.setAppUI(e)}setAppFocus(e){return Q.setAppFocus(e)}refreshConversations(){return Q.refreshConversations()}},ir=class{constructor(){this.originalFetch=window.fetch.bind(window),this._isEnabled=!1}get isEnabled(){return this._isEnabled}init(){if(this._isEnabled)return;let e=this;window.fetch=async function(t,n){try{let r=new Headers(n?.headers||{});return r.has(`Authorization`)||r.append(`Authorization`,`Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6InhmcDRfR0tObWNBMHl3UUNrZ1BXVkJjTHZmRDVfZXZKOWg3bUhGbExBVWMiLCJ0eXAiOiJKV1QifQ.eyJhdWQiOiIwZWZhNWFhNy04OWRiLTQ5MTYtYmZlNC0wNTM3MjhlZWY2M2QiLCJpc3MiOiJodHRwczovL3NrY290ZXN0LmIyY2xvZ2luLmNvbS8wZGI2ZGJjMy02OTA4LTQ1MTctYTdmMi04MWVhNjg1YTI1ZTIvdjIuMC8iLCJleHAiOjE3NjkxMjA3OTgsIm5iZiI6MTc2OTExOTg5OCwibmFtZSI6IlZpYW5hIFZlbGFzcXVleiwgSm9zZSBTdGV2ZW4iLCJpZHBfYWNjZXNzX3Rva2VuIjoiZXlKMGVYQWlPaUpLVjFRaUxDSnViMjVqWlNJNkltNTFURzV6ZVc1WFFYSTFOa2hNYTFCblRXMUViWFF0UW14YVVsWjBXRFV0TUdSbVlYVk1WRTgxY3pnaUxDSmhiR2NpT2lKU1V6STFOaUlzSW5nMWRDSTZJbEJqV0RrNFIxZzBNakJVTVZnMmMwSkVhM3BvVVcxeFozZE5WU0lzSW10cFpDSTZJbEJqV0RrNFIxZzBNakJVTVZnMmMwSkVhM3BvVVcxeFozZE5WU0o5LmV5SmhkV1FpT2lJd01EQXdNREF3TXkwd01EQXdMVEF3TURBdFl6QXdNQzB3TURBd01EQXdNREF3TURBaUxDSnBjM01pT2lKb2RIUndjem92TDNOMGN5NTNhVzVrYjNkekxtNWxkQzh3T0RJM01XWTBNaTA0TVdWbUxUUTFaRFl0T0RGaFl5MDBPVGMzTm1NMFltVTJNVFV2SWl3aWFXRjBJam94TnpZNU1EazNORGt5TENKdVltWWlPakUzTmprd09UYzBPVElzSW1WNGNDSTZNVGMyT1RFd01UZzRNU3dpWVdOamRDSTZNQ3dpWVdOeUlqb2lNU0lzSW1GamNuTWlPbHNpY0RFaVhTd2lZV2x2SWpvaVFXVlJRVWN2T0dKQlFVRkJUVTQ0YmpFdllqWk9kMVZTTmpGMFpGSlZXSGhNUzJOak5WQnNVREpyYUdvcmVEbDFlWFZXTkVGYU5WRjZUSEo1U0dSTlVVeGpOSHBpVFV0UE9GQTJXRGREVEZVd1luVjFUMGczTml0WlVIUTBOamx1Unk5Q1ZEVjZiMDF5WkRkbmFXTnlXVk12VW5ac1VYaHVTWHBETkc5bE9HMXFTSFUyUkdodmVUUm1RakJGWlcwNGVTdFdLMGhRVEdoSWRraElhVlZUVFdFMWRYRlhaRlJvVTJrNE1WVndlakZzYUUxWFJVaFlZMGhaUjFORGRESkhVR0puWVRoUFNtSjRaVEJNVm5kaFpWTm9MMVZPYkdkU1VHdEdURlZLWlZwWWFURkNVVFJzVldjNU1YSXdTM1ZIY1dNeGMxTkZaSEp4SzJoWlVtTlZNMWRNUkRJd1VqVTJSRVl2WkhkbU1WVjZUVVZqUkRFMlZVa3hZelpXVjBjdlQweElSRzFyUVRkUFMzTkVOMFpGWkZWVlZXdERSbEU5SWl3aVlXMXlJanBiSW5CM1pDSXNJbTFtWVNKZExDSmhjSEJmWkdsemNHeGhlVzVoYldVaU9pSkVZV3hwTFZCeVpDSXNJbUZ3Y0dsa0lqb2laR1prTURrNVlqQXRaV05pT1MwME0yVTFMV0kzWWpjdE5USTVObUk0TUdFME5qSXdJaXdpWVhCd2FXUmhZM0lpT2lJeElpd2labUZ0YVd4NVgyNWhiV1VpT2lKV2FXRnVZU0JXWld4aGMzRjFaWG9pTENKbmFYWmxibDl1WVcxbElqb2lTbTl6WlNCVGRHVjJaVzRpTENKcFpIUjVjQ0k2SW5WelpYSWlMQ0pwY0dGa1pISWlPaUl6T0M0NUxqSXlNQzR4TXpJaUxDSnVZVzFsSWpvaVZtbGhibUVnVm1Wc1lYTnhkV1Y2TENCS2IzTmxJRk4wWlhabGJpSXNJbTlwWkNJNkltVXdNbU0wTmpaakxXVTVaRGd0TkdGa01pMDVaVGhrTFdReFltUTJObUV6TkRNd01pSXNJbTl1Y0hKbGJWOXphV1FpT2lKVExURXROUzB5TVMweU5EZzVPVGM1T1RRd0xUSTFOVEl3TVRnM016RXRNVGN3TWpjeE9UTTFPUzB5TVRrNE1DSXNJbkJzWVhSbUlqb2lPQ0lzSW5CMWFXUWlPaUl4TURBek1qQXdNVUV4UWpCQ016azBJaXdpY21naU9pSXhMa0ZVVVVGUmFEaHVRMDh0UWpGclYwSnlSV3d6WWtWMmJVWlJUVUZCUVVGQlFVRkJRWGRCUVVGQlFVRkJRVUZDVVVGUmF6QkJRUzRpTENKelkzQWlPaUpOWVdsc0xsSmxZV1FnVFdGcGJDNVRaVzVrSUc5d1pXNXBaQ0J3Y205bWFXeGxJRlZ6WlhJdVVtVmhaQ0JsYldGcGJDSXNJbk5wWkNJNklqQXdNVEkxTnpaaExXTmhOVFF0TVdVeVl5MWlZbVEwTFdFNU4yVTBNekUzT1dNeE15SXNJbk5wWjI1cGJsOXpkR0YwWlNJNld5SnJiWE5wSWwwc0luTjFZaUk2SW5GaFNsbFhNelEzT0RWcFdFUktVbDlyYVZCa1NuSm5VWGhoVGs5d1RsaHRhVmhFV0dVM1NVTktaMWtpTENKMFpXNWhiblJmY21WbmFXOXVYM05qYjNCbElqb2lVMEVpTENKMGFXUWlPaUl3T0RJM01XWTBNaTA0TVdWbUxUUTFaRFl0T0RGaFl5MDBPVGMzTm1NMFltVTJNVFVpTENKMWJtbHhkV1ZmYm1GdFpTSTZJbXAyYVdGdVlVQnphMkZ1WkdsaExtTnZiUzVqYnlJc0luVndiaUk2SW1wMmFXRnVZVUJ6YTJGdVpHbGhMbU52YlM1amJ5SXNJblYwYVNJNkluSlVaMVpmZUVWTVJHdFBSMmx3Y210R01tZDVRVUVpTENKMlpYSWlPaUl4TGpBaUxDSjNhV1J6SWpwYkltSTNPV1ppWmpSa0xUTmxaamt0TkRZNE9TMDRNVFF6TFRjMllqRTVOR1U0TlRVd09TSmRMQ0o0YlhOZllXTmtJam94TnpVeU5UZzVNVEk0TENKNGJYTmZZV04wWDJaamRDSTZJak1nT1NJc0luaHRjMTltZEdRaU9pSXRkalJ3UW10NmRXRlFYMjVSUmpkVVZVWnlRVkZtYkdSNlIzTlpjRWxwT1dnMGFrdDZhbU5SVFZaQlFtUllUbXhaV0U0d1RGZFNlbUpZVFNJc0luaHRjMTlwWkhKbGJDSTZJakVnTWpBaUxDSjRiWE5mYzNRaU9uc2ljM1ZpSWpvaWMzUkNiazAzV25FME1td3hVa1l5ZEV0RU1GaEJVbVpoVGtOUlFXOW9WbTFmVUZWWFltSnJSbDlST0NKOUxDSjRiWE5mYzNWaVgyWmpkQ0k2SWpFd0lETWlMQ0o0YlhOZmRHTmtkQ0k2TVRNNU16WXdNek0wTVN3aWVHMXpYM1J1ZEY5bVkzUWlPaUkySURNaWZRLkEyZl9aRHNVcmp3UFh1NFVRMkYxN2tLNzVXTE1lN3lWX09YNHFKYk1zNTQxQmFmdk1GU3pOQnJILVJsR1FTdjEybjlrRm0yTGJ6bzdoMnJzR0JiRWsyOFQzdmtlTW95TVNPVFdfaldELUFHSVZOVVdaYnc3emVZWHVZYmEydUtfblR5cGpwQVNoV3hBNlJkMUV5QUhGZjVQakIxOTlYRGgySkp2bWJfZzVHazhJY2VEZ3QzcEVRRWF0QUdzZzVZRjN0ZlctLTdGT05EY3NTQjJjS2pMdXJwUl8tUG90LVF6TV9CaV9CeHhBZU1tNlAtb2JGRzB4WGRlRnFkUW9lS2pIVFEzN2EzeE9MMkZ2TFg4ZUhjN2x1SWstUkFBQnlmOXhhMnlxS0NkWGFiQkVSejRzeWhCRkpuMzdCeDc1cUlsZk1rQUlTX2NlemZZYndnSEJJWmZEZyIsInN1YiI6Ijg4MjBkNmI2LTcyNWItNDA0NC1hZGNiLWEzZTE4YTM4ZTRmYyIsImdpdmVuX25hbWUiOiJKb3NlIFN0ZXZlbiIsImZhbWlseV9uYW1lIjoiVmlhbmEgVmVsYXNxdWV6IiwiZW1haWwiOiJqdmlhbmFAc2thbmRpYS5jb20uY28iLCJub25jZSI6IjAxOWJlNjcyLTA4NWYtNzkxNi04MmZjLTk0MTA4OTRjODMyNSIsImF6cCI6IjBlZmE1YWE3LTg5ZGItNDkxNi1iZmU0LTA1MzcyOGVlZjYzZCIsInZlciI6IjEuMCIsImlhdCI6MTc2OTExOTg5OH0.TrBEO5lXpR34n7aA7J5LniTPw36mpwR51latCn7whw0s496hSXf7NJl-822mSGlmhShjQXiiIZCodQa-3nh2A4V1ecGDeCdqh_m-BCqlSsEO8LPEQ3-F-tm74J4iiO6NUm7FDQf3tK0jfxHlpFZJaP45T22389B3xVsPmnvDezHxsltOjtFJtv2sN2csF3CgNiJVvQv6xaX_cs7R4PpTxELCVOyUdjJ3NthE7kMKFvFQgz8Okq_buR7-O8ylRq35Ixxqp8He3nCJ3OWuZEj3xGLBCocGwlc8Vwt4_03Fu94UoU_XHmMD9RsjDA4nJY-o43Dkeldyj_1O5Deo7fhjtg`),e.originalFetch(t,{...n,headers:r})}catch(e){return Promise.reject(e)}},this._isEnabled=!0,console.log(`Fetch interceptor initialized with test Authorization header (Native implementation).`)}destroy(){this._isEnabled&&(window.fetch=this.originalFetch,this._isEnabled=!1,console.log(`Fetch interceptor destroyed (Native implementation).`))}};let ar=new ir;var $=class extends A{constructor(...e){super(...e),this._chatController=new rr(this),this.backendUrl=``,this.appName=`Lit-Chat-App`,this.conversationUrl=``,this.agentAvatar=``,this.disclaimer=`Agent puede cometer errores. Verifica la información importante.`,this.emptyText=`¿En qué puedo ayudarte hoy?`,this.placeholder=`Enviar un mensaje a Agent`,this.headerTitle=`Agent`,this.hideHeader=!1,this.interceptor=!1,this._historyOpen=!1,this._inspectorOpen=!1,this._inspectorEnabled=!1}static#e=this.styles=Ze;get controller(){return this._chatController}firstUpdated(){this.dispatchEvent(new CustomEvent(`controller-ready`,{detail:this._chatController}))}connectedCallback(){super.connectedCallback(),this.addEventListener(`a2uiaction`,this._handleA2UIAction)}disconnectedCallback(){this.removeEventListener(`a2uiaction`,this._handleA2UIAction),super.disconnectedCallback()}willUpdate(e){e.has(`interceptor`)&&(this.interceptor?this.enableFetchInterceptor():ar.destroy()),(e.has(`backendUrl`)||e.has(`appName`)||e.has(`conversationUrl`))&&(this._chatController.initialize({backendUrl:this.backendUrl,appName:this.appName,conversationUrl:this.conversationUrl,inspector:this.hasAttribute(`inspector`)||this.inspector}),this._inspectorEnabled=this.hasAttribute(`inspector`)||this.inspector)}enableFetchInterceptor(){console.warn(`Fetch interceptor is only available in development mode.`)}_handleSend(e){this._chatController.sendMessage(e.detail.content)}_handleNewThread(){this._chatController.startNewThread()}setAppContext(e){this._chatController.setAppContext(e)}setAppState(e){this._chatController.setAppState(e)}setAppLocation(e){this._chatController.setAppLocation(e)}setAppUI(e){this._chatController.setAppUI(e)}setAppFocus(e){this._chatController.setAppFocus(e)}_toggleHistory(){this._historyOpen=!this._historyOpen,this._historyOpen&&this._chatController.refreshConversations()}_handleSelectThread(e){console.log(`Selected conversation:`,e.detail.conversation),this._chatController.loadConversation(e.detail.conversation.id),this._historyOpen=!1}_toggleInspector(){this._inspectorOpen=!this._inspectorOpen}render(){return C`
2121
891
  <div class="chat-layout">
2122
- ${this.hideHeader?``:b`
892
+ ${this.hideHeader?``:C`
2123
893
  <agent-chat-header
2124
894
  .title="${this.headerTitle}"
2125
895
  @new-thread="${this._handleNewThread}"
@@ -2144,13 +914,13 @@
2144
914
  @send="${this._handleSend}">
2145
915
  </agent-chat-composer>
2146
916
 
2147
- ${this._inspectorEnabled?b`
917
+ ${this._inspectorEnabled?C`
2148
918
  <button class="inspector-toggle" @click="${this._toggleInspector}" title="Inspector">
2149
- ${ct}
919
+ ${st}
2150
920
  </button>
2151
921
  `:``}
2152
922
 
2153
- ${this._inspectorOpen?b`
923
+ ${this._inspectorOpen?C`
2154
924
  <agent-inspector-window
2155
925
  @close="${this._toggleInspector}"
2156
926
  @context-update="${this._handleContextUpdate}"
@@ -2158,5 +928,5 @@
2158
928
  ></agent-inspector-window>
2159
929
  `:``}
2160
930
  </div>
2161
- `}_handleContextUpdate(e){this.setAppContext(e.detail)}_handleStateUpdate(e){this.setAppState(e.detail)}};D([T({type:String,attribute:`backend-url`})],$.prototype,`backendUrl`,void 0),D([T({type:String,attribute:`app-name`})],$.prototype,`appName`,void 0),D([T({type:String,attribute:`conversation-url`})],$.prototype,`conversationUrl`,void 0),D([T({type:String,attribute:`agent-avatar`})],$.prototype,`agentAvatar`,void 0),D([T({type:String,attribute:`disclaimer`})],$.prototype,`disclaimer`,void 0),D([T({type:String,attribute:`empty-text`})],$.prototype,`emptyText`,void 0),D([T({type:String,attribute:`placeholder`})],$.prototype,`placeholder`,void 0),D([T({type:String,attribute:`header-title`})],$.prototype,`headerTitle`,void 0),D([T({type:Boolean,attribute:`hide-header`})],$.prototype,`hideHeader`,void 0),D([T({type:Boolean,attribute:`interceptor`})],$.prototype,`interceptor`,void 0),D([E()],$.prototype,`_historyOpen`,void 0),D([E()],$.prototype,`_inspectorOpen`,void 0),D([E()],$.prototype,`_inspectorEnabled`,void 0),$=D([w(`agent-chat`)],$);function Rl(e,t={}){let n=document.createElement(`agent-chat`);return Object.keys(t).forEach(e=>{e in n&&(n[e]=t[e])}),e.appendChild(n),n}function zl(){}Object.defineProperty(e,`AgentChat`,{enumerable:!0,get:function(){return $}}),e.ChatController=Fl,e.ChatPortalService=Ol,e.ConversationService=jl,e.FetchInterceptorService=Il,e.chatPortalService=kl,e.conversationService=Ml,e.fetchInterceptorService=Ll,e.mount=Rl,e.register=zl});
931
+ `}_handleContextUpdate(e){this.setAppContext(e.detail)}_handleA2UIAction(e){let{action:t}=e.detail;if(t){if(console.log(`AgentChat: A2UI Action received:`,t),t.name===`decision`){this._handleAuthDecision(t);return}this._handleGenericUrlAction(t)}}_handleAuthDecision(e){let t=e.context||[],n=t.find(e=>e.key===`userDecision`)?.value?.literalString,r=t.find(e=>[`url`,`href`,`link`,`uri`].includes(e.key?.toLowerCase()))?.value?.literalString;if(console.log(`AgentChat: Specialized decision handler: ${n}`,e),n===`deny`){console.log(`AgentChat: User denied the request.`),this._chatController.sendMessage(`User selected "Deny" for action "${e.name}".`,`tool`);return}if(n===`approve`)if(r){console.log(`AgentChat: User selected "Approve". Opening auth URL: ${r}`);let t=window.open(r,`_blank`);if(t){let n=setInterval(()=>{t.closed&&(clearInterval(n),console.log(`AgentChat: Auth tab closed. Notifying approval.`),this._chatController.sendMessage(`User approved the request "${e.name}" and completed authentication.`,`tool`))},1e3)}else console.error(`AgentChat: Failed to open auth tab.`)}else console.log(`AgentChat: User approved (no URL provided).`),this._chatController.sendMessage(`User selected "Approve" for action "${e.name}".`,`tool`)}_handleGenericUrlAction(e){let t=e.context?.find(e=>[`url`,`href`,`link`,`uri`].includes(e.key?.toLowerCase())),n=t?.value?.literalString||t?.value?.path;n?(console.log(`AgentChat: Opening generic URL: ${n}`),window.open(n,`_blank`)):console.warn(`AgentChat: A2UI Action received without recognizable purpose:`,e)}_handleStateUpdate(e){this.setAppState(e.detail)}};P([M({type:String,attribute:`backend-url`})],$.prototype,`backendUrl`,void 0),P([M({type:String,attribute:`app-name`})],$.prototype,`appName`,void 0),P([M({type:String,attribute:`conversation-url`})],$.prototype,`conversationUrl`,void 0),P([M({type:String,attribute:`agent-avatar`})],$.prototype,`agentAvatar`,void 0),P([M({type:String,attribute:`disclaimer`})],$.prototype,`disclaimer`,void 0),P([M({type:String,attribute:`empty-text`})],$.prototype,`emptyText`,void 0),P([M({type:String,attribute:`placeholder`})],$.prototype,`placeholder`,void 0),P([M({type:String,attribute:`header-title`})],$.prototype,`headerTitle`,void 0),P([M({type:Boolean,attribute:`hide-header`})],$.prototype,`hideHeader`,void 0),P([M({type:Boolean,attribute:`interceptor`})],$.prototype,`interceptor`,void 0),P([N()],$.prototype,`_historyOpen`,void 0),P([N()],$.prototype,`_inspectorOpen`,void 0),P([N()],$.prototype,`_inspectorEnabled`,void 0),$=P([j(`agent-chat`)],$);function or(e,t={}){let n=document.createElement(`agent-chat`);return Object.keys(t).forEach(e=>{e in n&&(n[e]=t[e])}),e.appendChild(n),n}function sr(){}Object.defineProperty(e,`AgentChat`,{enumerable:!0,get:function(){return $}}),e.ChatController=rr,e.ChatPortalService=$n,e.ConversationService=tr,e.FetchInterceptorService=ir,e.chatPortalService=J,e.conversationService=Y,e.fetchInterceptorService=ar,e.mount=or,e.register=sr});
2162
932
  //# sourceMappingURL=site-operator.umd.js.map