shinychat 0.1.0__py3-none-any.whl → 0.2.1__py3-none-any.whl
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.
- shinychat/__init__.py +9 -1
- shinychat/__version.py +16 -3
- shinychat/_chat.py +101 -133
- shinychat/_chat_normalize.py +252 -287
- shinychat/_chat_normalize_chatlas.py +449 -0
- shinychat/_chat_provider_types.py +11 -3
- shinychat/_chat_types.py +17 -6
- shinychat/_markdown_stream.py +9 -5
- shinychat/playwright/_chat.py +42 -3
- shinychat/types/__init__.py +6 -1
- shinychat/www/GIT_VERSION +1 -1
- shinychat/www/chat/chat.css +1 -1
- shinychat/www/chat/chat.css.map +2 -2
- shinychat/www/chat/chat.js +101 -22
- shinychat/www/chat/chat.js.map +4 -4
- shinychat/www/markdown-stream/markdown-stream.js +125 -46
- shinychat/www/markdown-stream/markdown-stream.js.map +4 -4
- {shinychat-0.1.0.dist-info → shinychat-0.2.1.dist-info}/METADATA +9 -8
- shinychat-0.2.1.dist-info/RECORD +31 -0
- shinychat-0.1.0.dist-info/RECORD +0 -30
- {shinychat-0.1.0.dist-info → shinychat-0.2.1.dist-info}/WHEEL +0 -0
- {shinychat-0.1.0.dist-info → shinychat-0.2.1.dist-info}/licenses/LICENSE +0 -0
shinychat/www/chat/chat.css.map
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/chat/chat.scss"],
|
4
|
-
"sourcesContent": ["@charset \"UTF-8\";\nshiny-chat-container {\n --shiny-chat-border: var(--bs-border-width, 1px) solid var(--bs-border-color, #e9ecef);\n --shiny-chat-user-message-bg: RGBA(var(--bs-primary-rgb, 0, 123, 194), 0.06);\n --_chat-container-padding: 0.25rem;\n display: grid;\n grid-template-columns: 1fr;\n grid-template-rows: 1fr auto;\n margin: 0 auto;\n gap: 0;\n padding: var(--_chat-container-padding);\n padding-bottom: 0;\n}\nshiny-chat-container p:last-child {\n margin-bottom: 0;\n}\nshiny-chat-container .suggestion,\nshiny-chat-container [data-suggestion] {\n cursor: pointer;\n}\nshiny-chat-container .suggestion {\n color: var(--bs-link-color, #007bc2);\n text-decoration-color: var(--bs-link-color, #007bc2);\n text-decoration-line: underline;\n text-decoration-style: dotted;\n text-decoration-thickness: 2px;\n text-underline-offset: 2px;\n text-underline-offset: 4px;\n text-decoration-thickness: 2px;\n padding-inline: 2px;\n}\nshiny-chat-container .suggestion:hover {\n text-decoration-style: solid;\n}\nshiny-chat-container .suggestion::after {\n content: \"\u2726\";\n display: inline-block;\n margin-inline-start: 0.15em;\n}\nshiny-chat-container .suggestion.submit::after, shiny-chat-container .suggestion[data-suggestion-submit=\"\"]::after, shiny-chat-container .suggestion[data-suggestion-submit=true]::after {\n content: \"\u21B5\";\n}\nshiny-chat-container .card[data-suggestion]:hover {\n color: var(--bs-link-color, #007bc2);\n border-color: rgba(var(--bs-link-color-rgb), 0.5);\n}\n\nshiny-chat-messages {\n display: flex;\n flex-direction: column;\n gap: 2rem;\n overflow: auto;\n margin-bottom: 1rem;\n --_scroll-margin: 1rem;\n padding-right: var(--_scroll-margin);\n margin-right: calc(-1 * var(--_scroll-margin));\n}\n\nshiny-chat-message {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr);\n gap: 1rem;\n /* Vertically center the 2nd column (message content) */\n}\nshiny-chat-message > * {\n height: fit-content;\n}\nshiny-chat-message .message-icon {\n border-radius: 50%;\n border: var(--shiny-chat-border);\n height: 2rem;\n width: 2rem;\n display: grid;\n place-items: center;\n overflow: clip;\n}\nshiny-chat-message .message-icon > * {\n height: 100%;\n width: 100%;\n max-width: 100%;\n max-height: 100%;\n margin: 0 !important;\n object-fit: contain;\n}\nshiny-chat-message .message-icon > svg,\nshiny-chat-message .message-icon > .icon,\nshiny-chat-message .message-icon > .fa,\nshiny-chat-message .message-icon > .bi {\n max-height: 66%;\n max-width: 66%;\n}\nshiny-chat-message .message-icon:has(> .border-0) {\n border: none;\n border-radius: unset;\n overflow: unset;\n}\nshiny-chat-message shiny-markdown-stream {\n align-self: center;\n}\n\n/* Align the user message to the right */\nshiny-user-message {\n align-self: flex-end;\n padding: 0.75rem 1rem;\n border-radius: 10px;\n background-color: var(--shiny-chat-user-message-bg);\n max-width: 100%;\n}\n\nshiny-user-message[content_type=text],\nshiny-chat-message[content_type=text] {\n white-space: pre;\n overflow-x: auto;\n}\n\nshiny-chat-input {\n --_input-padding-top: 0;\n --_input-padding-bottom: var(--_chat-container-padding, 0.25rem);\n margin-top: calc(-1 * var(--_input-padding-top));\n position: sticky;\n bottom: calc(-1 * var(--_input-padding-bottom) + 4px);\n padding-block: var(--_input-padding-top) var(--_input-padding-bottom);\n}\nshiny-chat-input textarea {\n --bs-border-radius: 26px;\n resize: none;\n padding-right: 36px !important;\n max-height: 175px;\n}\nshiny-chat-input textarea::placeholder {\n color: var(--bs-gray-600, #707782) !important;\n}\nshiny-chat-input button {\n position: absolute;\n bottom: calc(6px + var(--_input-padding-bottom));\n right: 8px;\n background-color: transparent;\n color: var(--bs-primary, #007bc2);\n transition: color 0.25s ease-in-out;\n border: none;\n padding: 0;\n cursor: pointer;\n line-height: 16px;\n border-radius: 50%;\n}\nshiny-chat-input button:disabled {\n cursor: not-allowed;\n color: var(--bs-gray-500, #8d959e);\n}\n\n/*\n Disable the page-level pulse when the chat input is disabled\n (i.e., when a response is being generated and brought into the chat)\n*/\n.shiny-busy:has(shiny-chat-input[disabled])::after {\n display: none;\n}"],
|
5
|
-
"mappings": "iBACA,qBACE,qBAAqB,IAAI,iBAAiB,EAAE,KAAK,MAAM,IAAI,iBAAiB,EAAE,SAC9E,8BAA8B,KAAK,IAAI,gBAAgB,EAAE,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,KACvE,2BAA2B,OAC3B,QAAS,KACT,sBAAuB,IACvB,mBAAoB,IAAI,
|
4
|
+
"sourcesContent": ["@charset \"UTF-8\";\n.shiny-tool-card {\n max-height: var(--shiny-tool-card-max-height, 500px);\n}\n.shiny-tool-card .tool-title {\n min-width: 25%;\n flex-shrink: 2;\n}\n.shiny-tool-card .tool-intent {\n opacity: 0.66;\n font-style: italic;\n font-weight: normal;\n text-align: end;\n flex-shrink: 3;\n max-width: 60%;\n min-width: 20%;\n}\n.shiny-tool-card .tool-spacer {\n margin-inline-start: auto;\n}\n.shiny-tool-card .tool-icon {\n --_icon-size: var(--shiny-tool-card-icon-size, 16px);\n width: var(--_icon-size);\n height: var(--_icon-size);\n display: flex;\n align-items: center;\n flex: none;\n}\n.shiny-tool-card .tool-icon [class^=spinner] {\n --bs-spinner-width: var(--_icon-size);\n --bs-spinner-height: var(--_icon-size);\n --bs-spinner-border-width: 0.20em;\n color: var(--shiny-tool-card-spinner-color, var(--bs-primary, #007bc2));\n}\n.shiny-tool-card .tool-title-name {\n font-weight: 600;\n}\n.shiny-tool-card .card-header,\n.shiny-tool-card .card-footer {\n font-size: inherit;\n font-weight: 400;\n word-break: break-word;\n}\n.shiny-tool-card > .card-header {\n display: flex;\n flex-direction: row;\n align-items: center;\n align-self: stretch;\n gap: 0.5rem;\n width: 100%;\n text-align: left;\n cursor: pointer;\n border-top-width: 0;\n border-right-width: 0;\n border-left-width: 0;\n}\n.shiny-tool-card > .card-header[aria-expanded=false] {\n border-bottom-width: 0;\n}\n.shiny-tool-card > .card-header > * {\n line-height: 1;\n}\n.shiny-tool-card > .card-header:hover, .shiny-tool-card > .card-header:focus-visible {\n background-color: rgba(var(--bs-emphasis-color-rgb), 0.05);\n outline: none;\n}\n.shiny-tool-card > .card-header .function-name {\n font-weight: bold;\n}\n.shiny-tool-card > .card-header .collapse-indicator {\n display: grid;\n place-items: center;\n width: 1em;\n height: 1em;\n opacity: 0.66;\n}\n.shiny-tool-card > .card-header .collapse-indicator,\n.shiny-tool-card > .card-header .collapse-indicator > .horizontal {\n transition: 0.3s ease-in-out all;\n transform-origin: center center;\n}\n.shiny-tool-card > .card-header[aria-expanded=true] > .collapse-indicator {\n transform: rotate(-90deg);\n}\n.shiny-tool-card > .card-header[aria-expanded=true] > .collapse-indicator .horizontal {\n transform: scale(0);\n}\n.shiny-tool-card > .card-body {\n transition: max-height 0.3s ease-out, opacity 0.2s ease-out;\n opacity: 1;\n overflow: auto;\n}\n.shiny-tool-card > .card-body.collapsed {\n max-height: 0;\n opacity: 0;\n padding: 0;\n}\n.shiny-tool-card pre {\n margin: 0;\n white-space: pre-wrap;\n padding: 1em;\n border-radius: var(--bs-border-radius, 4px);\n}\n\nshiny-tool-result,\nshiny-tool-request {\n display: block;\n margin: 1em 0;\n border-radius: var(--bs-border-radius, 4px);\n overflow: visible;\n padding: 0;\n font-size: 0.8em;\n}\nshiny-tool-result[hidden],\nshiny-tool-request[hidden] {\n display: none;\n}\n\nshiny-tool-result + p,\nshiny-tool-request + p {\n margin-top: 1rem;\n}\n\nshiny-tool-result:first-child,\nshiny-tool-request:first-child {\n margin-top: 0;\n}\nshiny-tool-result:last-child,\nshiny-tool-request:last-child {\n margin-bottom: 0;\n}\n\nshiny-tool-request[hidden] + shiny-tool-result:first-of-type {\n margin-top: 0;\n}\n\nshiny-chat-container {\n --shiny-chat-border: var(--bs-border-width, 1px) solid var(--bs-border-color, #e9ecef);\n --shiny-chat-user-message-bg: RGBA(var(--bs-primary-rgb, 0, 123, 194), 0.06);\n --_chat-container-padding: 0.25rem;\n display: grid;\n grid-template-columns: 1fr;\n grid-template-rows: 1fr auto;\n margin: 0 auto;\n gap: 0;\n padding: var(--_chat-container-padding);\n padding-bottom: 0;\n}\nshiny-chat-container p:last-child {\n margin-bottom: 0;\n}\nshiny-chat-container .suggestion,\nshiny-chat-container [data-suggestion] {\n cursor: pointer;\n}\nshiny-chat-container .suggestion {\n color: var(--bs-link-color, #007bc2);\n text-decoration-color: var(--bs-link-color, #007bc2);\n text-decoration-line: underline;\n text-decoration-style: dotted;\n text-decoration-thickness: 2px;\n text-underline-offset: 2px;\n text-underline-offset: 4px;\n text-decoration-thickness: 2px;\n padding-inline: 2px;\n}\nshiny-chat-container .suggestion:hover {\n text-decoration-style: solid;\n}\nshiny-chat-container .suggestion::after {\n content: \"\u2726\";\n display: inline-block;\n margin-inline-start: 0.15em;\n}\nshiny-chat-container .suggestion.submit::after, shiny-chat-container .suggestion[data-suggestion-submit=\"\"]::after, shiny-chat-container .suggestion[data-suggestion-submit=true]::after {\n content: \"\u21B5\";\n}\nshiny-chat-container .card[data-suggestion]:hover {\n color: var(--bs-link-color, #007bc2);\n border-color: rgba(var(--bs-link-color-rgb), 0.5);\n}\n\nshiny-chat-messages {\n display: flex;\n flex-direction: column;\n gap: 2rem;\n overflow: auto;\n margin-bottom: 1rem;\n --_scroll-margin: 1rem;\n padding-right: var(--_scroll-margin);\n margin-right: calc(-1 * var(--_scroll-margin));\n}\n\nshiny-chat-message {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr);\n gap: 1rem;\n /* Vertically center the 2nd column (message content) */\n}\nshiny-chat-message > * {\n height: fit-content;\n}\nshiny-chat-message .message-icon {\n border-radius: 50%;\n border: var(--shiny-chat-border);\n height: 2rem;\n width: 2rem;\n display: grid;\n place-items: center;\n overflow: clip;\n}\nshiny-chat-message .message-icon > * {\n height: 100%;\n width: 100%;\n max-width: 100%;\n max-height: 100%;\n margin: 0 !important;\n object-fit: contain;\n}\nshiny-chat-message .message-icon > svg,\nshiny-chat-message .message-icon > .icon,\nshiny-chat-message .message-icon > .fa,\nshiny-chat-message .message-icon > .bi {\n max-height: 66%;\n max-width: 66%;\n}\nshiny-chat-message .message-icon:has(> .border-0) {\n border: none;\n border-radius: unset;\n overflow: unset;\n}\nshiny-chat-message shiny-markdown-stream {\n align-self: center;\n}\n\n/* Align the user message to the right */\nshiny-user-message,\nshiny-chat-message[data-role=user] {\n align-self: flex-end;\n padding: 0.75rem 1rem;\n border-radius: 10px;\n background-color: var(--shiny-chat-user-message-bg);\n max-width: 100%;\n}\n\nshiny-chat-message[data-role=user]:not([icon]) {\n grid-template-columns: auto;\n}\n\nshiny-user-message[content_type=text],\nshiny-chat-message[content_type=text] {\n white-space: pre;\n overflow-x: auto;\n}\n\nshiny-chat-input {\n --_input-padding-top: 0;\n --_input-padding-bottom: var(--_chat-container-padding, 0.25rem);\n margin-top: calc(-1 * var(--_input-padding-top));\n position: sticky;\n bottom: calc(-1 * var(--_input-padding-bottom) + 4px);\n padding-block: var(--_input-padding-top) var(--_input-padding-bottom);\n}\nshiny-chat-input textarea {\n --bs-border-radius: 26px;\n resize: none;\n padding-right: 36px !important;\n max-height: 175px;\n}\nshiny-chat-input textarea::placeholder {\n color: var(--bs-gray-600, #707782) !important;\n}\nshiny-chat-input button {\n position: absolute;\n bottom: calc(6px + var(--_input-padding-bottom));\n right: 8px;\n background-color: transparent;\n color: var(--bs-primary, #007bc2);\n transition: color 0.25s ease-in-out;\n border: none;\n padding: 0;\n cursor: pointer;\n line-height: 16px;\n border-radius: 50%;\n}\nshiny-chat-input button:disabled {\n cursor: not-allowed;\n color: var(--bs-gray-500, #8d959e);\n}\n\n/*\n Disable the page-level pulse when the chat input is disabled\n (i.e., when a response is being generated and brought into the chat)\n*/\n.shiny-busy:has(shiny-chat-input[disabled])::after {\n display: none;\n}\n\n/* External link dialog styling */\n.shinychat-external-link-dialog {\n padding: 0;\n border: none;\n background: none;\n max-width: min(680px, 90%);\n}\n\n.shinychat-external-link-dialog::backdrop {\n background-color: rgba(0, 0, 0, 0.5);\n}\n\n.shinychat-external-link-dialog .link-url {\n word-break: break-all;\n font-weight: 500;\n}"],
|
5
|
+
"mappings": "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",
|
6
6
|
"names": []
|
7
7
|
}
|
shinychat/www/chat/chat.js
CHANGED
@@ -1,43 +1,122 @@
|
|
1
|
-
var
|
2
|
-
\f\r]`,
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),mn=/'/g,gn=/"/g,yn=/^(?:script|style|textarea|title)$/i,Te=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),ct=Te(1),ii=Te(2),oi=Te(3),W=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),_n=new WeakMap,Z=J.createTreeWalker(J,129);function Tn(o,t){if(!ye(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return pn!==void 0?pn.createHTML(t):t}var Ss=(o,t)=>{let e=o.length-1,n=[],i,r=t===2?"<svg>":t===3?"<math>":"",l=_t;for(let d=0;d<e;d++){let h=o[d],m,y,f=-1,I=0;for(;I<h.length&&(l.lastIndex=I,y=l.exec(h),y!==null);)I=l.lastIndex,l===_t?y[1]==="!--"?l=dn:y[1]!==void 0?l=fn:y[2]!==void 0?(yn.test(y[2])&&(i=RegExp("</"+y[2],"g")),l=X):y[3]!==void 0&&(l=X):l===X?y[0]===">"?(l=i??_t,f=-1):y[1]===void 0?f=-2:(f=l.lastIndex-y[2].length,m=y[1],l=y[3]===void 0?X:y[3]==='"'?gn:mn):l===gn||l===mn?l=X:l===dn||l===fn?l=_t:(l=X,i=void 0);let R=l===X&&o[d+1].startsWith("/>")?" ":"";r+=l===_t?h+Ts:f>=0?(n.push(m),h.slice(0,f)+En+h.slice(f)+j+R):h+j+(f===-2?d:R)}return[Tn(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},yt=class o{constructor({strings:t,_$litType$:e},n){let i;this.parts=[];let r=0,l=0,d=t.length-1,h=this.parts,[m,y]=Ss(t,e);if(this.el=o.createElement(m,n),Z.currentNode=this.el.content,e===2||e===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(i=Z.nextNode())!==null&&h.length<d;){if(i.nodeType===1){if(i.hasAttributes())for(let f of i.getAttributeNames())if(f.endsWith(En)){let I=y[l++],R=i.getAttribute(f).split(j),P=/([.?@])?(.*)/.exec(I);h.push({type:1,index:r,name:P[2],strings:R,ctor:P[1]==="."?me:P[1]==="?"?ge:P[1]==="@"?_e:lt}),i.removeAttribute(f)}else f.startsWith(j)&&(h.push({type:6,index:r}),i.removeAttribute(f));if(yn.test(i.tagName)){let f=i.textContent.split(j),I=f.length-1;if(I>0){i.textContent=Bt?Bt.emptyScript:"";for(let R=0;R<I;R++)i.append(f[R],Et()),Z.nextNode(),h.push({type:2,index:++r});i.append(f[I],Et())}}}else if(i.nodeType===8)if(i.data===An)h.push({type:2,index:r});else{let f=-1;for(;(f=i.data.indexOf(j,f+1))!==-1;)h.push({type:7,index:r}),f+=j.length-1}r++}}static createElement(t,e){let n=J.createElement("template");return n.innerHTML=t,n}};function at(o,t,e=o,n){if(t===W)return t;let i=n!==void 0?e._$Co?.[n]:e._$Cl,r=At(t)?void 0:t._$litDirective$;return i?.constructor!==r&&(i?._$AO?.(!1),r===void 0?i=void 0:(i=new r(o),i._$AT(o,e,n)),n!==void 0?(e._$Co??=[])[n]=i:e._$Cl=i),i!==void 0&&(t=at(o,i._$AS(o,t.values),i,n)),t}var fe=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:n}=this._$AD,i=(t?.creationScope??J).importNode(e,!0);Z.currentNode=i;let r=Z.nextNode(),l=0,d=0,h=n[0];for(;h!==void 0;){if(l===h.index){let m;h.type===2?m=new Tt(r,r.nextSibling,this,t):h.type===1?m=new h.ctor(r,h.name,h.strings,this,t):h.type===6&&(m=new Ee(r,this,t)),this._$AV.push(m),h=n[++d]}l!==h?.index&&(r=Z.nextNode(),l++)}return Z.currentNode=J,i}p(t){let e=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}},Tt=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,n,i){this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=at(this,t,e),At(t)?t===E||t==null||t===""?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==W&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):vs(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==E&&At(this._$AH)?this._$AA.nextSibling.data=t:this.T(J.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=yt.createElement(Tn(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(e);else{let r=new fe(i,this),l=r.u(this.options);r.p(e),this.T(l),this._$AH=r}}_$AC(t){let e=_n.get(t.strings);return e===void 0&&_n.set(t.strings,e=new yt(t)),e}k(t){ye(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,n,i=0;for(let r of t)i===e.length?e.push(n=new o(this.O(Et()),this.O(Et()),this,this.options)):n=e[i],n._$AI(r),i++;i<e.length&&(this._$AR(n&&n._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let n=t.nextSibling;t.remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},lt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,n,i,r){this.type=1,this._$AH=E,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=E}_$AI(t,e=this,n,i){let r=this.strings,l=!1;if(r===void 0)t=at(this,t,e,0),l=!At(t)||t!==this._$AH&&t!==W,l&&(this._$AH=t);else{let d=t,h,m;for(t=r[0],h=0;h<r.length-1;h++)m=at(this,d[n+h],e,h),m===W&&(m=this._$AH[h]),l||=!At(m)||m!==this._$AH[h],m===E?t=E:t!==E&&(t+=(m??"")+r[h+1]),this._$AH[h]=m}l&&!i&&this.j(t)}j(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},me=class extends lt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===E?void 0:t}},ge=class extends lt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E)}},_e=class extends lt{constructor(t,e,n,i,r){super(t,e,n,i,r),this.type=5}_$AI(t,e=this){if((t=at(this,t,e,0)??E)===W)return;let n=this._$AH,i=t===E&&n!==E||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,r=t!==E&&(n===E||i);i&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Ee=class{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){at(this,t)}};var bs=Ae.litHtmlPolyfillSupport;bs?.(yt,Tt),(Ae.litHtmlVersions??=[]).push("3.3.0");var vn=(o,t,e)=>{let n=e?.renderBefore??t,i=n._$litPart$;if(i===void 0){let r=e?.renderBefore??null;n._$litPart$=i=new Tt(t.insertBefore(Et(),r),r,void 0,e??{})}return i._$AI(o),i};var ve=globalThis,q=class extends G{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=vn(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return W}};q._$litElement$=!0,q.finalized=!0,ve.litElementHydrateSupport?.({LitElement:q});var Cs=ve.litElementPolyfillSupport;Cs?.({LitElement:q});(ve.litElementVersions??=[]).push("4.2.0");var Sn={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},bn=o=>(...t)=>({_$litDirective$:o,values:t}),Gt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,n){this._$Ct=t,this._$AM=e,this._$Ci=n}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var vt=class extends Gt{constructor(t){if(super(t),this.it=E,t.type!==Sn.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===E||t==null)return this._t=void 0,this.it=t;if(t===W)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;let e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}};vt.directiveName="unsafeHTML",vt.resultType=1;var Se=bn(vt);var ws={attribute:!0,type:String,converter:gt,reflect:!1,hasChanged:Ft},$s=(o=ws,t,e)=>{let{kind:n,metadata:i}=e,r=globalThis.litPropertyMetadata.get(i);if(r===void 0&&globalThis.litPropertyMetadata.set(i,r=new Map),n==="setter"&&((o=Object.create(o)).wrapped=!0),r.set(e.name,o),n==="accessor"){let{name:l}=e;return{set(d){let h=t.get.call(this);t.set.call(this,d),this.requestUpdate(l,h,o)},init(d){return d!==void 0&&this.C(l,void 0,o,d),d}}}if(n==="setter"){let{name:l}=e;return function(d){let h=this[l];t.call(this,d),this.requestUpdate(l,h,o)}}throw Error("Unsupported decorator location: "+n)};function U(o){return(t,e)=>typeof e=="object"?$s(o,t,e):((n,i,r)=>{let l=i.hasOwnProperty(r);return i.constructor.createProperty(r,n),l?Object.getOwnPropertyDescriptor(i,r):void 0})(o,t,e)}var{entries:In,setPrototypeOf:Cn,isFrozen:Ms,getPrototypeOf:Os,getOwnPropertyDescriptor:xs}=Object,{freeze:O,seal:N,create:Dn}=Object,{apply:Oe,construct:xe}=typeof Reflect<"u"&&Reflect;O||(O=function(t){return t});N||(N=function(t){return t});Oe||(Oe=function(t,e,n){return t.apply(e,n)});xe||(xe=function(t,e){return new t(...e)});var Vt=x(Array.prototype.forEach),Ls=x(Array.prototype.lastIndexOf),wn=x(Array.prototype.pop),St=x(Array.prototype.push),Rs=x(Array.prototype.splice),qt=x(String.prototype.toLowerCase),be=x(String.prototype.toString),$n=x(String.prototype.match),bt=x(String.prototype.replace),Ns=x(String.prototype.indexOf),Is=x(String.prototype.trim),D=x(Object.prototype.hasOwnProperty),M=x(RegExp.prototype.test),Ct=Ds(TypeError);function x(o){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return Oe(o,t,n)}}function Ds(o){return function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return xe(o,e)}}function p(o,t){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:qt;Cn&&Cn(o,null);let n=t.length;for(;n--;){let i=t[n];if(typeof i=="string"){let r=e(i);r!==i&&(Ms(t)||(t[n]=r),i=r)}o[i]=!0}return o}function Ps(o){for(let t=0;t<o.length;t++)D(o,t)||(o[t]=null);return o}function V(o){let t=Dn(null);for(let[e,n]of In(o))D(o,e)&&(Array.isArray(n)?t[e]=Ps(n):n&&typeof n=="object"&&n.constructor===Object?t[e]=V(n):t[e]=n);return t}function wt(o,t){for(;o!==null;){let n=xs(o,t);if(n){if(n.get)return x(n.get);if(typeof n.value=="function")return x(n.value)}o=Os(o)}function e(){return null}return e}var Mn=O(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ce=O(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),we=O(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ks=O(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),$e=O(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Us=O(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),On=O(["#text"]),xn=O(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Me=O(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ln=O(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),jt=O(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Hs=N(/\{\{[\w\W]*|[\w\W]*\}\}/gm),zs=N(/<%[\w\W]*|[\w\W]*%>/gm),Fs=N(/\$\{[\w\W]*/gm),Bs=N(/^data-[\-\w.\u00B7-\uFFFF]+$/),Gs=N(/^aria-[\-\w]+$/),Pn=N(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ws=N(/^(?:\w+script|data):/i),Vs=N(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),kn=N(/^html$/i),js=N(/^[a-z][.\w]*(-[.\w]+)+$/i),Rn=Object.freeze({__proto__:null,ARIA_ATTR:Gs,ATTR_WHITESPACE:Vs,CUSTOM_ELEMENT:js,DATA_ATTR:Bs,DOCTYPE_NAME:kn,ERB_EXPR:zs,IS_ALLOWED_URI:Pn,IS_SCRIPT_OR_DATA:Ws,MUSTACHE_EXPR:Hs,TMPLIT_EXPR:Fs}),$t={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},qs=function(){return typeof window>"u"?null:window},Ys=function(t,e){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null,i="data-tt-policy-suffix";e&&e.hasAttribute(i)&&(n=e.getAttribute(i));let r="dompurify"+(n?"#"+n:"");try{return t.createPolicy(r,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}},Nn=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Un(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qs(),t=u=>Un(u);if(t.version="3.2.6",t.removed=[],!o||!o.document||o.document.nodeType!==$t.document||!o.Element)return t.isSupported=!1,t;let{document:e}=o,n=e,i=n.currentScript,{DocumentFragment:r,HTMLTemplateElement:l,Node:d,Element:h,NodeFilter:m,NamedNodeMap:y=o.NamedNodeMap||o.MozNamedAttrMap,HTMLFormElement:f,DOMParser:I,trustedTypes:R}=o,P=h.prototype,Vn=wt(P,"cloneNode"),jn=wt(P,"remove"),qn=wt(P,"nextSibling"),Yn=wt(P,"childNodes"),Ot=wt(P,"parentNode");if(typeof l=="function"){let u=e.createElement("template");u.content&&u.content.ownerDocument&&(e=u.content.ownerDocument)}let w,ut="",{implementation:Zt,createNodeIterator:Kn,createDocumentFragment:Xn,getElementsByTagName:Zn}=e,{importNode:Jn}=n,$=Nn();t.isSupported=typeof In=="function"&&typeof Ot=="function"&&Zt&&Zt.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Jt,ERB_EXPR:Qt,TMPLIT_EXPR:te,DATA_ATTR:Qn,ARIA_ATTR:ts,IS_SCRIPT_OR_DATA:es,ATTR_WHITESPACE:Ie,CUSTOM_ELEMENT:ns}=Rn,{IS_ALLOWED_URI:De}=Rn,T=null,Pe=p({},[...Mn,...Ce,...we,...$e,...On]),S=null,ke=p({},[...xn,...Me,...Ln,...jt]),_=Object.seal(Dn(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ht=null,ee=null,Ue=!0,ne=!0,He=!1,ze=!0,tt=!1,xt=!0,K=!1,se=!1,ie=!1,et=!1,Lt=!1,Rt=!1,Fe=!0,Be=!1,ss="user-content-",oe=!0,pt=!1,nt={},st=null,Ge=p({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),We=null,Ve=p({},["audio","video","img","source","image","track"]),re=null,je=p({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Nt="http://www.w3.org/1998/Math/MathML",It="http://www.w3.org/2000/svg",H="http://www.w3.org/1999/xhtml",it=H,ae=!1,le=null,is=p({},[Nt,It,H],be),Dt=p({},["mi","mo","mn","ms","mtext"]),Pt=p({},["annotation-xml"]),os=p({},["title","style","font","a","script"]),dt=null,rs=["application/xhtml+xml","text/html"],as="text/html",v=null,ot=null,ls=e.createElement("form"),qe=function(s){return s instanceof RegExp||s instanceof Function},ce=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ot&&ot===s)){if((!s||typeof s!="object")&&(s={}),s=V(s),dt=rs.indexOf(s.PARSER_MEDIA_TYPE)===-1?as:s.PARSER_MEDIA_TYPE,v=dt==="application/xhtml+xml"?be:qt,T=D(s,"ALLOWED_TAGS")?p({},s.ALLOWED_TAGS,v):Pe,S=D(s,"ALLOWED_ATTR")?p({},s.ALLOWED_ATTR,v):ke,le=D(s,"ALLOWED_NAMESPACES")?p({},s.ALLOWED_NAMESPACES,be):is,re=D(s,"ADD_URI_SAFE_ATTR")?p(V(je),s.ADD_URI_SAFE_ATTR,v):je,We=D(s,"ADD_DATA_URI_TAGS")?p(V(Ve),s.ADD_DATA_URI_TAGS,v):Ve,st=D(s,"FORBID_CONTENTS")?p({},s.FORBID_CONTENTS,v):Ge,ht=D(s,"FORBID_TAGS")?p({},s.FORBID_TAGS,v):V({}),ee=D(s,"FORBID_ATTR")?p({},s.FORBID_ATTR,v):V({}),nt=D(s,"USE_PROFILES")?s.USE_PROFILES:!1,Ue=s.ALLOW_ARIA_ATTR!==!1,ne=s.ALLOW_DATA_ATTR!==!1,He=s.ALLOW_UNKNOWN_PROTOCOLS||!1,ze=s.ALLOW_SELF_CLOSE_IN_ATTR!==!1,tt=s.SAFE_FOR_TEMPLATES||!1,xt=s.SAFE_FOR_XML!==!1,K=s.WHOLE_DOCUMENT||!1,et=s.RETURN_DOM||!1,Lt=s.RETURN_DOM_FRAGMENT||!1,Rt=s.RETURN_TRUSTED_TYPE||!1,ie=s.FORCE_BODY||!1,Fe=s.SANITIZE_DOM!==!1,Be=s.SANITIZE_NAMED_PROPS||!1,oe=s.KEEP_CONTENT!==!1,pt=s.IN_PLACE||!1,De=s.ALLOWED_URI_REGEXP||Pn,it=s.NAMESPACE||H,Dt=s.MATHML_TEXT_INTEGRATION_POINTS||Dt,Pt=s.HTML_INTEGRATION_POINTS||Pt,_=s.CUSTOM_ELEMENT_HANDLING||{},s.CUSTOM_ELEMENT_HANDLING&&qe(s.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(_.tagNameCheck=s.CUSTOM_ELEMENT_HANDLING.tagNameCheck),s.CUSTOM_ELEMENT_HANDLING&&qe(s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(_.attributeNameCheck=s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),s.CUSTOM_ELEMENT_HANDLING&&typeof s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(_.allowCustomizedBuiltInElements=s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),tt&&(ne=!1),Lt&&(et=!0),nt&&(T=p({},On),S=[],nt.html===!0&&(p(T,Mn),p(S,xn)),nt.svg===!0&&(p(T,Ce),p(S,Me),p(S,jt)),nt.svgFilters===!0&&(p(T,we),p(S,Me),p(S,jt)),nt.mathMl===!0&&(p(T,$e),p(S,Ln),p(S,jt))),s.ADD_TAGS&&(T===Pe&&(T=V(T)),p(T,s.ADD_TAGS,v)),s.ADD_ATTR&&(S===ke&&(S=V(S)),p(S,s.ADD_ATTR,v)),s.ADD_URI_SAFE_ATTR&&p(re,s.ADD_URI_SAFE_ATTR,v),s.FORBID_CONTENTS&&(st===Ge&&(st=V(st)),p(st,s.FORBID_CONTENTS,v)),oe&&(T["#text"]=!0),K&&p(T,["html","head","body"]),T.table&&(p(T,["tbody"]),delete ht.tbody),s.TRUSTED_TYPES_POLICY){if(typeof s.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ct('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof s.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ct('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=s.TRUSTED_TYPES_POLICY,ut=w.createHTML("")}else w===void 0&&(w=Ys(R,i)),w!==null&&typeof ut=="string"&&(ut=w.createHTML(""));O&&O(s),ot=s}},Ye=p({},[...Ce,...we,...ks]),Ke=p({},[...$e,...Us]),cs=function(s){let a=Ot(s);(!a||!a.tagName)&&(a={namespaceURI:it,tagName:"template"});let c=qt(s.tagName),g=qt(a.tagName);return le[s.namespaceURI]?s.namespaceURI===It?a.namespaceURI===H?c==="svg":a.namespaceURI===Nt?c==="svg"&&(g==="annotation-xml"||Dt[g]):!!Ye[c]:s.namespaceURI===Nt?a.namespaceURI===H?c==="math":a.namespaceURI===It?c==="math"&&Pt[g]:!!Ke[c]:s.namespaceURI===H?a.namespaceURI===It&&!Pt[g]||a.namespaceURI===Nt&&!Dt[g]?!1:!Ke[c]&&(os[c]||!Ye[c]):!!(dt==="application/xhtml+xml"&&le[s.namespaceURI]):!1},k=function(s){St(t.removed,{element:s});try{Ot(s).removeChild(s)}catch{jn(s)}},rt=function(s,a){try{St(t.removed,{attribute:a.getAttributeNode(s),from:a})}catch{St(t.removed,{attribute:null,from:a})}if(a.removeAttribute(s),s==="is")if(et||Lt)try{k(a)}catch{}else try{a.setAttribute(s,"")}catch{}},Xe=function(s){let a=null,c=null;if(ie)s="<remove></remove>"+s;else{let A=$n(s,/^[\r\n\t ]+/);c=A&&A[0]}dt==="application/xhtml+xml"&&it===H&&(s='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+s+"</body></html>");let g=w?w.createHTML(s):s;if(it===H)try{a=new I().parseFromString(g,dt)}catch{}if(!a||!a.documentElement){a=Zt.createDocument(it,"template",null);try{a.documentElement.innerHTML=ae?ut:g}catch{}}let b=a.body||a.documentElement;return s&&c&&b.insertBefore(e.createTextNode(c),b.childNodes[0]||null),it===H?Zn.call(a,K?"html":"body")[0]:K?a.documentElement:b},Ze=function(s){return Kn.call(s.ownerDocument||s,s,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null)},ue=function(s){return s instanceof f&&(typeof s.nodeName!="string"||typeof s.textContent!="string"||typeof s.removeChild!="function"||!(s.attributes instanceof y)||typeof s.removeAttribute!="function"||typeof s.setAttribute!="function"||typeof s.namespaceURI!="string"||typeof s.insertBefore!="function"||typeof s.hasChildNodes!="function")},Je=function(s){return typeof d=="function"&&s instanceof d};function z(u,s,a){Vt(u,c=>{c.call(t,s,a,ot)})}let Qe=function(s){let a=null;if(z($.beforeSanitizeElements,s,null),ue(s))return k(s),!0;let c=v(s.nodeName);if(z($.uponSanitizeElement,s,{tagName:c,allowedTags:T}),xt&&s.hasChildNodes()&&!Je(s.firstElementChild)&&M(/<[/\w!]/g,s.innerHTML)&&M(/<[/\w!]/g,s.textContent)||s.nodeType===$t.progressingInstruction||xt&&s.nodeType===$t.comment&&M(/<[/\w]/g,s.data))return k(s),!0;if(!T[c]||ht[c]){if(!ht[c]&&en(c)&&(_.tagNameCheck instanceof RegExp&&M(_.tagNameCheck,c)||_.tagNameCheck instanceof Function&&_.tagNameCheck(c)))return!1;if(oe&&!st[c]){let g=Ot(s)||s.parentNode,b=Yn(s)||s.childNodes;if(b&&g){let A=b.length;for(let L=A-1;L>=0;--L){let F=Vn(b[L],!0);F.__removalCount=(s.__removalCount||0)+1,g.insertBefore(F,qn(s))}}}return k(s),!0}return s instanceof h&&!cs(s)||(c==="noscript"||c==="noembed"||c==="noframes")&&M(/<\/no(script|embed|frames)/i,s.innerHTML)?(k(s),!0):(tt&&s.nodeType===$t.text&&(a=s.textContent,Vt([Jt,Qt,te],g=>{a=bt(a,g," ")}),s.textContent!==a&&(St(t.removed,{element:s.cloneNode()}),s.textContent=a)),z($.afterSanitizeElements,s,null),!1)},tn=function(s,a,c){if(Fe&&(a==="id"||a==="name")&&(c in e||c in ls))return!1;if(!(ne&&!ee[a]&&M(Qn,a))){if(!(Ue&&M(ts,a))){if(!S[a]||ee[a]){if(!(en(s)&&(_.tagNameCheck instanceof RegExp&&M(_.tagNameCheck,s)||_.tagNameCheck instanceof Function&&_.tagNameCheck(s))&&(_.attributeNameCheck instanceof RegExp&&M(_.attributeNameCheck,a)||_.attributeNameCheck instanceof Function&&_.attributeNameCheck(a))||a==="is"&&_.allowCustomizedBuiltInElements&&(_.tagNameCheck instanceof RegExp&&M(_.tagNameCheck,c)||_.tagNameCheck instanceof Function&&_.tagNameCheck(c))))return!1}else if(!re[a]){if(!M(De,bt(c,Ie,""))){if(!((a==="src"||a==="xlink:href"||a==="href")&&s!=="script"&&Ns(c,"data:")===0&&We[s])){if(!(He&&!M(es,bt(c,Ie,"")))){if(c)return!1}}}}}}return!0},en=function(s){return s!=="annotation-xml"&&$n(s,ns)},nn=function(s){z($.beforeSanitizeAttributes,s,null);let{attributes:a}=s;if(!a||ue(s))return;let c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:S,forceKeepAttr:void 0},g=a.length;for(;g--;){let b=a[g],{name:A,namespaceURI:L,value:F}=b,ft=v(A),he=F,C=A==="value"?he:Is(he);if(c.attrName=ft,c.attrValue=C,c.keepAttr=!0,c.forceKeepAttr=void 0,z($.uponSanitizeAttribute,s,c),C=c.attrValue,Be&&(ft==="id"||ft==="name")&&(rt(A,s),C=ss+C),xt&&M(/((--!?|])>)|<\/(style|title)/i,C)){rt(A,s);continue}if(c.forceKeepAttr)continue;if(!c.keepAttr){rt(A,s);continue}if(!ze&&M(/\/>/i,C)){rt(A,s);continue}tt&&Vt([Jt,Qt,te],on=>{C=bt(C,on," ")});let sn=v(s.nodeName);if(!tn(sn,ft,C)){rt(A,s);continue}if(w&&typeof R=="object"&&typeof R.getAttributeType=="function"&&!L)switch(R.getAttributeType(sn,ft)){case"TrustedHTML":{C=w.createHTML(C);break}case"TrustedScriptURL":{C=w.createScriptURL(C);break}}if(C!==he)try{L?s.setAttributeNS(L,A,C):s.setAttribute(A,C),ue(s)?k(s):wn(t.removed)}catch{rt(A,s)}}z($.afterSanitizeAttributes,s,null)},us=function u(s){let a=null,c=Ze(s);for(z($.beforeSanitizeShadowDOM,s,null);a=c.nextNode();)z($.uponSanitizeShadowNode,a,null),Qe(a),nn(a),a.content instanceof r&&u(a.content);z($.afterSanitizeShadowDOM,s,null)};return t.sanitize=function(u){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=null,c=null,g=null,b=null;if(ae=!u,ae&&(u="<!-->"),typeof u!="string"&&!Je(u))if(typeof u.toString=="function"){if(u=u.toString(),typeof u!="string")throw Ct("dirty is not a string, aborting")}else throw Ct("toString is not a function");if(!t.isSupported)return u;if(se||ce(s),t.removed=[],typeof u=="string"&&(pt=!1),pt){if(u.nodeName){let F=v(u.nodeName);if(!T[F]||ht[F])throw Ct("root node is forbidden and cannot be sanitized in-place")}}else if(u instanceof d)a=Xe("<!---->"),c=a.ownerDocument.importNode(u,!0),c.nodeType===$t.element&&c.nodeName==="BODY"||c.nodeName==="HTML"?a=c:a.appendChild(c);else{if(!et&&!tt&&!K&&u.indexOf("<")===-1)return w&&Rt?w.createHTML(u):u;if(a=Xe(u),!a)return et?null:Rt?ut:""}a&&ie&&k(a.firstChild);let A=Ze(pt?u:a);for(;g=A.nextNode();)Qe(g),nn(g),g.content instanceof r&&us(g.content);if(pt)return u;if(et){if(Lt)for(b=Xn.call(a.ownerDocument);a.firstChild;)b.appendChild(a.firstChild);else b=a;return(S.shadowroot||S.shadowrootmode)&&(b=Jn.call(n,b,!0)),b}let L=K?a.outerHTML:a.innerHTML;return K&&T["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&M(kn,a.ownerDocument.doctype.name)&&(L="<!DOCTYPE "+a.ownerDocument.doctype.name+`>
|
4
|
-
`+
|
5
|
-
<div class="
|
1
|
+
var ys=Object.defineProperty;var vs=Object.getOwnPropertyDescriptor;var g=(i,t,e,n)=>{for(var o=n>1?void 0:n?vs(t,e):t,r=i.length-1,l;r>=0;r--)(l=i[r])&&(o=(n?l(t,e,o):l(o))||o);return n&&o&&ys(t,e,o),o};var qt=globalThis,Bt=qt.ShadowRoot&&(qt.ShadyCSS===void 0||qt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,fn=Symbol(),mn=new WeakMap,Ft=class{constructor(t,e,n){if(this._$cssResult$=!0,n!==fn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Bt&&t===void 0){let n=e!==void 0&&e.length===1;n&&(t=mn.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&mn.set(e,t))}return t}toString(){return this.cssText}},gn=i=>new Ft(typeof i=="string"?i:i+"",void 0,fn);var _n=(i,t)=>{if(Bt)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let n=document.createElement("style"),o=qt.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=e.cssText,i.appendChild(n)}},_e=Bt?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(let n of t.cssRules)e+=n.cssText;return gn(e)})(i):i;var{is:As,defineProperty:bs,getOwnPropertyDescriptor:Ts,getOwnPropertyNames:Ss,getOwnPropertySymbols:ws,getPrototypeOf:Cs}=Object,Gt=globalThis,En=Gt.trustedTypes,$s=En?En.emptyScript:"",xs=Gt.reactiveElementPolyfillSupport,yt=(i,t)=>i,vt={toAttribute(i,t){switch(t){case Boolean:i=i?$s:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},Wt=(i,t)=>!As(i,t),yn={attribute:!0,type:String,converter:vt,reflect:!1,useDefault:!1,hasChanged:Wt};Symbol.metadata??=Symbol("metadata"),Gt.litPropertyMetadata??=new WeakMap;var j=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=yn){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let n=Symbol(),o=this.getPropertyDescriptor(t,n,e);o!==void 0&&bs(this.prototype,t,o)}}static getPropertyDescriptor(t,e,n){let{get:o,set:r}=Ts(this.prototype,t)??{get(){return this[e]},set(l){this[e]=l}};return{get:o,set(l){let p=o?.call(this);r?.call(this,l),this.requestUpdate(t,p,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??yn}static _$Ei(){if(this.hasOwnProperty(yt("elementProperties")))return;let t=Cs(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(yt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(yt("properties"))){let e=this.properties,n=[...Ss(e),...ws(e)];for(let o of n)this.createProperty(o,e[o])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[n,o]of e)this.elementProperties.set(n,o)}this._$Eh=new Map;for(let[e,n]of this.elementProperties){let o=this._$Eu(e,n);o!==void 0&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let n=new Set(t.flat(1/0).reverse());for(let o of n)e.unshift(_e(o))}else t!==void 0&&e.push(_e(t));return e}static _$Eu(t,e){let n=e.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let n of e.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return _n(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$ET(t,e){let n=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,n);if(o!==void 0&&n.reflect===!0){let r=(n.converter?.toAttribute!==void 0?n.converter:vt).toAttribute(e,n.type);this._$Em=t,r==null?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(t,e){let n=this.constructor,o=n._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let r=n.getPropertyOptions(o),l=typeof r.converter=="function"?{fromAttribute:r.converter}:r.converter?.fromAttribute!==void 0?r.converter:vt;this._$Em=o,this[o]=l.fromAttribute(e,r.type)??this._$Ej?.get(o)??null,this._$Em=null}}requestUpdate(t,e,n){if(t!==void 0){let o=this.constructor,r=this[t];if(n??=o.getPropertyOptions(t),!((n.hasChanged??Wt)(r,e)||n.useDefault&&n.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(o._$Eu(t,n))))return;this.C(t,e,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:n,reflect:o,wrapped:r},l){n&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,l??e??this[t]),r!==!0||l!==void 0)||(this._$AL.has(t)||(this.hasUpdated||n||(e=void 0),this._$AL.set(t,e)),o===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[o,r]of this._$Ep)this[o]=r;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[o,r]of n){let{wrapped:l}=r,p=this[o];l!==!0||this._$AL.has(o)||p===void 0||this.C(o,void 0,r,p)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(e)):this._$EM()}catch(n){throw t=!1,this._$EM(),n}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};j.elementStyles=[],j.shadowRootOptions={mode:"open"},j[yt("elementProperties")]=new Map,j[yt("finalized")]=new Map,xs?.({ReactiveElement:j}),(Gt.reactiveElementVersions??=[]).push("2.1.0");var Se=globalThis,jt=Se.trustedTypes,vn=jt?jt.createPolicy("lit-html",{createHTML:i=>i}):void 0,Cn="$lit$",Z=`lit$${Math.random().toFixed(9).slice(2)}$`,$n="?"+Z,Ls=`<${$n}>`,nt=document,bt=()=>nt.createComment(""),Tt=i=>i===null||typeof i!="object"&&typeof i!="function",we=Array.isArray,Ms=i=>we(i)||typeof i?.[Symbol.iterator]=="function",Ee=`[
|
2
|
+
\f\r]`,At=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,An=/-->/g,bn=/>/g,tt=RegExp(`>|${Ee}(?:([^\\s"'>=/]+)(${Ee}*=${Ee}*(?:[^
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Tn=/'/g,Sn=/"/g,xn=/^(?:script|style|textarea|title)$/i,Ce=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),y=Ce(1),mi=Ce(2),fi=Ce(3),V=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),wn=new WeakMap,et=nt.createTreeWalker(nt,129);function Ln(i,t){if(!we(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return vn!==void 0?vn.createHTML(t):t}var Os=(i,t)=>{let e=i.length-1,n=[],o,r=t===2?"<svg>":t===3?"<math>":"",l=At;for(let p=0;p<e;p++){let h=i[p],_,T,m=-1,U=0;for(;U<h.length&&(l.lastIndex=U,T=l.exec(h),T!==null);)U=l.lastIndex,l===At?T[1]==="!--"?l=An:T[1]!==void 0?l=bn:T[2]!==void 0?(xn.test(T[2])&&(o=RegExp("</"+T[2],"g")),l=tt):T[3]!==void 0&&(l=tt):l===tt?T[0]===">"?(l=o??At,m=-1):T[1]===void 0?m=-2:(m=l.lastIndex-T[2].length,_=T[1],l=T[3]===void 0?tt:T[3]==='"'?Sn:Tn):l===Sn||l===Tn?l=tt:l===An||l===bn?l=At:(l=tt,o=void 0);let I=l===tt&&i[p+1].startsWith("/>")?" ":"";r+=l===At?h+Ls:m>=0?(n.push(_),h.slice(0,m)+Cn+h.slice(m)+Z+I):h+Z+(m===-2?p:I)}return[Ln(i,r+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},St=class i{constructor({strings:t,_$litType$:e},n){let o;this.parts=[];let r=0,l=0,p=t.length-1,h=this.parts,[_,T]=Os(t,e);if(this.el=i.createElement(_,n),et.currentNode=this.el.content,e===2||e===3){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(o=et.nextNode())!==null&&h.length<p;){if(o.nodeType===1){if(o.hasAttributes())for(let m of o.getAttributeNames())if(m.endsWith(Cn)){let U=T[l++],I=o.getAttribute(m).split(Z),z=/([.?@])?(.*)/.exec(U);h.push({type:1,index:r,name:z[2],strings:I,ctor:z[1]==="."?ve:z[1]==="?"?Ae:z[1]==="@"?be:dt}),o.removeAttribute(m)}else m.startsWith(Z)&&(h.push({type:6,index:r}),o.removeAttribute(m));if(xn.test(o.tagName)){let m=o.textContent.split(Z),U=m.length-1;if(U>0){o.textContent=jt?jt.emptyScript:"";for(let I=0;I<U;I++)o.append(m[I],bt()),et.nextNode(),h.push({type:2,index:++r});o.append(m[U],bt())}}}else if(o.nodeType===8)if(o.data===$n)h.push({type:2,index:r});else{let m=-1;for(;(m=o.data.indexOf(Z,m+1))!==-1;)h.push({type:7,index:r}),m+=Z.length-1}r++}}static createElement(t,e){let n=nt.createElement("template");return n.innerHTML=t,n}};function ht(i,t,e=i,n){if(t===V)return t;let o=n!==void 0?e._$Co?.[n]:e._$Cl,r=Tt(t)?void 0:t._$litDirective$;return o?.constructor!==r&&(o?._$AO?.(!1),r===void 0?o=void 0:(o=new r(i),o._$AT(i,e,n)),n!==void 0?(e._$Co??=[])[n]=o:e._$Cl=o),o!==void 0&&(t=ht(i,o._$AS(i,t.values),o,n)),t}var ye=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:n}=this._$AD,o=(t?.creationScope??nt).importNode(e,!0);et.currentNode=o;let r=et.nextNode(),l=0,p=0,h=n[0];for(;h!==void 0;){if(l===h.index){let _;h.type===2?_=new wt(r,r.nextSibling,this,t):h.type===1?_=new h.ctor(r,h.name,h.strings,this,t):h.type===6&&(_=new Te(r,this,t)),this._$AV.push(_),h=n[++p]}l!==h?.index&&(r=et.nextNode(),l++)}return et.currentNode=nt,o}p(t){let e=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}},wt=class i{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,n,o){this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ht(this,t,e),Tt(t)?t===A||t==null||t===""?(this._$AH!==A&&this._$AR(),this._$AH=A):t!==this._$AH&&t!==V&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ms(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==A&&Tt(this._$AH)?this._$AA.nextSibling.data=t:this.T(nt.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:n}=t,o=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=St.createElement(Ln(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===o)this._$AH.p(e);else{let r=new ye(o,this),l=r.u(this.options);r.p(e),this.T(l),this._$AH=r}}_$AC(t){let e=wn.get(t.strings);return e===void 0&&wn.set(t.strings,e=new St(t)),e}k(t){we(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,n,o=0;for(let r of t)o===e.length?e.push(n=new i(this.O(bt()),this.O(bt()),this,this.options)):n=e[o],n._$AI(r),o++;o<e.length&&(this._$AR(n&&n._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let n=t.nextSibling;t.remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},dt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,n,o,r){this.type=1,this._$AH=A,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=A}_$AI(t,e=this,n,o){let r=this.strings,l=!1;if(r===void 0)t=ht(this,t,e,0),l=!Tt(t)||t!==this._$AH&&t!==V,l&&(this._$AH=t);else{let p=t,h,_;for(t=r[0],h=0;h<r.length-1;h++)_=ht(this,p[n+h],e,h),_===V&&(_=this._$AH[h]),l||=!Tt(_)||_!==this._$AH[h],_===A?t=A:t!==A&&(t+=(_??"")+r[h+1]),this._$AH[h]=_}l&&!o&&this.j(t)}j(t){t===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ve=class extends dt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===A?void 0:t}},Ae=class extends dt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==A)}},be=class extends dt{constructor(t,e,n,o,r){super(t,e,n,o,r),this.type=5}_$AI(t,e=this){if((t=ht(this,t,e,0)??A)===V)return;let n=this._$AH,o=t===A&&n!==A||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,r=t!==A&&(n===A||o);o&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Te=class{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){ht(this,t)}};var Rs=Se.litHtmlPolyfillSupport;Rs?.(St,wt),(Se.litHtmlVersions??=[]).push("3.3.0");var Mn=(i,t,e)=>{let n=e?.renderBefore??t,o=n._$litPart$;if(o===void 0){let r=e?.renderBefore??null;n._$litPart$=o=new wt(t.insertBefore(bt(),r),r,void 0,e??{})}return o._$AI(i),o};var $e=globalThis,F=class extends j{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Mn(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return V}};F._$litElement$=!0,F.finalized=!0,$e.litElementHydrateSupport?.({LitElement:F});var ks=$e.litElementPolyfillSupport;ks?.({LitElement:F});($e.litElementVersions??=[]).push("4.2.0");var On={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Rn=i=>(...t)=>({_$litDirective$:i,values:t}),Vt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,n){this._$Ct=t,this._$AM=e,this._$Ci=n}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var Ct=class extends Vt{constructor(t){if(super(t),this.it=A,t.type!==On.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===A||t==null)return this._t=void 0,this.it=t;if(t===V)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;let e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}};Ct.directiveName="unsafeHTML",Ct.resultType=1;var J=Rn(Ct);var Ns={attribute:!0,type:String,converter:vt,reflect:!1,hasChanged:Wt},Is=(i=Ns,t,e)=>{let{kind:n,metadata:o}=e,r=globalThis.litPropertyMetadata.get(o);if(r===void 0&&globalThis.litPropertyMetadata.set(o,r=new Map),n==="setter"&&((i=Object.create(i)).wrapped=!0),r.set(e.name,i),n==="accessor"){let{name:l}=e;return{set(p){let h=t.get.call(this);t.set.call(this,p),this.requestUpdate(l,h,i)},init(p){return p!==void 0&&this.C(l,void 0,i,p),p}}}if(n==="setter"){let{name:l}=e;return function(p){let h=this[l];t.call(this,p),this.requestUpdate(l,h,i)}}throw Error("Unsupported decorator location: "+n)};function f(i){return(t,e)=>typeof e=="object"?Is(i,t,e):((n,o,r)=>{let l=o.hasOwnProperty(r);return o.constructor.createProperty(r,n),l?Object.getOwnPropertyDescriptor(o,r):void 0})(i,t,e)}var{entries:Fn,setPrototypeOf:kn,isFrozen:Ds,getPrototypeOf:Ps,getOwnPropertyDescriptor:Us}=Object,{freeze:R,seal:D,create:Bn}=Object,{apply:ke,construct:Ne}=typeof Reflect<"u"&&Reflect;R||(R=function(t){return t});D||(D=function(t){return t});ke||(ke=function(t,e,n){return t.apply(e,n)});Ne||(Ne=function(t,e){return new t(...e)});var Kt=k(Array.prototype.forEach),Hs=k(Array.prototype.lastIndexOf),Nn=k(Array.prototype.pop),$t=k(Array.prototype.push),zs=k(Array.prototype.splice),Zt=k(String.prototype.toLowerCase),xe=k(String.prototype.toString),In=k(String.prototype.match),xt=k(String.prototype.replace),qs=k(String.prototype.indexOf),Fs=k(String.prototype.trim),H=k(Object.prototype.hasOwnProperty),O=k(RegExp.prototype.test),Lt=Bs(TypeError);function k(i){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];return ke(i,t,n)}}function Bs(i){return function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Ne(i,e)}}function d(i,t){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Zt;kn&&kn(i,null);let n=t.length;for(;n--;){let o=t[n];if(typeof o=="string"){let r=e(o);r!==o&&(Ds(t)||(t[n]=r),o=r)}i[o]=!0}return i}function Gs(i){for(let t=0;t<i.length;t++)H(i,t)||(i[t]=null);return i}function Y(i){let t=Bn(null);for(let[e,n]of Fn(i))H(i,e)&&(Array.isArray(n)?t[e]=Gs(n):n&&typeof n=="object"&&n.constructor===Object?t[e]=Y(n):t[e]=n);return t}function Mt(i,t){for(;i!==null;){let n=Us(i,t);if(n){if(n.get)return k(n.get);if(typeof n.value=="function")return k(n.value)}i=Ps(i)}function e(){return null}return e}var Dn=R(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Le=R(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Me=R(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Ws=R(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Oe=R(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),js=R(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Pn=R(["#text"]),Un=R(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Re=R(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Hn=R(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Xt=R(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Vs=D(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ys=D(/<%[\w\W]*|[\w\W]*%>/gm),Ks=D(/\$\{[\w\W]*/gm),Xs=D(/^data-[\-\w.\u00B7-\uFFFF]+$/),Zs=D(/^aria-[\-\w]+$/),Gn=D(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Js=D(/^(?:\w+script|data):/i),Qs=D(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Wn=D(/^html$/i),ti=D(/^[a-z][.\w]*(-[.\w]+)+$/i),zn=Object.freeze({__proto__:null,ARIA_ATTR:Zs,ATTR_WHITESPACE:Qs,CUSTOM_ELEMENT:ti,DATA_ATTR:Xs,DOCTYPE_NAME:Wn,ERB_EXPR:Ys,IS_ALLOWED_URI:Gn,IS_SCRIPT_OR_DATA:Js,MUSTACHE_EXPR:Vs,TMPLIT_EXPR:Ks}),Ot={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ei=function(){return typeof window>"u"?null:window},ni=function(t,e){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null,o="data-tt-policy-suffix";e&&e.hasAttribute(o)&&(n=e.getAttribute(o));let r="dompurify"+(n?"#"+n:"");try{return t.createPolicy(r,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}},qn=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function jn(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ei(),t=u=>jn(u);if(t.version="3.2.6",t.removed=[],!i||!i.document||i.document.nodeType!==Ot.document||!i.Element)return t.isSupported=!1,t;let{document:e}=i,n=e,o=n.currentScript,{DocumentFragment:r,HTMLTemplateElement:l,Node:p,Element:h,NodeFilter:_,NamedNodeMap:T=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:m,DOMParser:U,trustedTypes:I}=i,z=h.prototype,Qn=Mt(z,"cloneNode"),ts=Mt(z,"remove"),es=Mt(z,"nextSibling"),ns=Mt(z,"childNodes"),kt=Mt(z,"parentNode");if(typeof l=="function"){let u=e.createElement("template");u.content&&u.content.ownerDocument&&(e=u.content.ownerDocument)}let L,mt="",{implementation:ne,createNodeIterator:ss,createDocumentFragment:is,getElementsByTagName:os}=e,{importNode:rs}=n,M=qn();t.isSupported=typeof Fn=="function"&&typeof kt=="function"&&ne&&ne.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:se,ERB_EXPR:ie,TMPLIT_EXPR:oe,DATA_ATTR:as,ARIA_ATTR:ls,IS_SCRIPT_OR_DATA:cs,ATTR_WHITESPACE:Fe,CUSTOM_ELEMENT:us}=zn,{IS_ALLOWED_URI:Be}=zn,S=null,Ge=d({},[...Dn,...Le,...Me,...Oe,...Pn]),C=null,We=d({},[...Un,...Re,...Hn,...Xt]),v=Object.seal(Bn(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ft=null,re=null,je=!0,ae=!0,Ve=!1,Ye=!0,it=!1,Nt=!0,Q=!1,le=!1,ce=!1,ot=!1,It=!1,Dt=!1,Ke=!0,Xe=!1,hs="user-content-",ue=!0,gt=!1,rt={},at=null,Ze=d({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Je=null,Qe=d({},["audio","video","img","source","image","track"]),he=null,tn=d({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Pt="http://www.w3.org/1998/Math/MathML",Ut="http://www.w3.org/2000/svg",B="http://www.w3.org/1999/xhtml",lt=B,de=!1,pe=null,ds=d({},[Pt,Ut,B],xe),Ht=d({},["mi","mo","mn","ms","mtext"]),zt=d({},["annotation-xml"]),ps=d({},["title","style","font","a","script"]),_t=null,ms=["application/xhtml+xml","text/html"],fs="text/html",w=null,ct=null,gs=e.createElement("form"),en=function(s){return s instanceof RegExp||s instanceof Function},me=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ct&&ct===s)){if((!s||typeof s!="object")&&(s={}),s=Y(s),_t=ms.indexOf(s.PARSER_MEDIA_TYPE)===-1?fs:s.PARSER_MEDIA_TYPE,w=_t==="application/xhtml+xml"?xe:Zt,S=H(s,"ALLOWED_TAGS")?d({},s.ALLOWED_TAGS,w):Ge,C=H(s,"ALLOWED_ATTR")?d({},s.ALLOWED_ATTR,w):We,pe=H(s,"ALLOWED_NAMESPACES")?d({},s.ALLOWED_NAMESPACES,xe):ds,he=H(s,"ADD_URI_SAFE_ATTR")?d(Y(tn),s.ADD_URI_SAFE_ATTR,w):tn,Je=H(s,"ADD_DATA_URI_TAGS")?d(Y(Qe),s.ADD_DATA_URI_TAGS,w):Qe,at=H(s,"FORBID_CONTENTS")?d({},s.FORBID_CONTENTS,w):Ze,ft=H(s,"FORBID_TAGS")?d({},s.FORBID_TAGS,w):Y({}),re=H(s,"FORBID_ATTR")?d({},s.FORBID_ATTR,w):Y({}),rt=H(s,"USE_PROFILES")?s.USE_PROFILES:!1,je=s.ALLOW_ARIA_ATTR!==!1,ae=s.ALLOW_DATA_ATTR!==!1,Ve=s.ALLOW_UNKNOWN_PROTOCOLS||!1,Ye=s.ALLOW_SELF_CLOSE_IN_ATTR!==!1,it=s.SAFE_FOR_TEMPLATES||!1,Nt=s.SAFE_FOR_XML!==!1,Q=s.WHOLE_DOCUMENT||!1,ot=s.RETURN_DOM||!1,It=s.RETURN_DOM_FRAGMENT||!1,Dt=s.RETURN_TRUSTED_TYPE||!1,ce=s.FORCE_BODY||!1,Ke=s.SANITIZE_DOM!==!1,Xe=s.SANITIZE_NAMED_PROPS||!1,ue=s.KEEP_CONTENT!==!1,gt=s.IN_PLACE||!1,Be=s.ALLOWED_URI_REGEXP||Gn,lt=s.NAMESPACE||B,Ht=s.MATHML_TEXT_INTEGRATION_POINTS||Ht,zt=s.HTML_INTEGRATION_POINTS||zt,v=s.CUSTOM_ELEMENT_HANDLING||{},s.CUSTOM_ELEMENT_HANDLING&&en(s.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(v.tagNameCheck=s.CUSTOM_ELEMENT_HANDLING.tagNameCheck),s.CUSTOM_ELEMENT_HANDLING&&en(s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(v.attributeNameCheck=s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),s.CUSTOM_ELEMENT_HANDLING&&typeof s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(v.allowCustomizedBuiltInElements=s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),it&&(ae=!1),It&&(ot=!0),rt&&(S=d({},Pn),C=[],rt.html===!0&&(d(S,Dn),d(C,Un)),rt.svg===!0&&(d(S,Le),d(C,Re),d(C,Xt)),rt.svgFilters===!0&&(d(S,Me),d(C,Re),d(C,Xt)),rt.mathMl===!0&&(d(S,Oe),d(C,Hn),d(C,Xt))),s.ADD_TAGS&&(S===Ge&&(S=Y(S)),d(S,s.ADD_TAGS,w)),s.ADD_ATTR&&(C===We&&(C=Y(C)),d(C,s.ADD_ATTR,w)),s.ADD_URI_SAFE_ATTR&&d(he,s.ADD_URI_SAFE_ATTR,w),s.FORBID_CONTENTS&&(at===Ze&&(at=Y(at)),d(at,s.FORBID_CONTENTS,w)),ue&&(S["#text"]=!0),Q&&d(S,["html","head","body"]),S.table&&(d(S,["tbody"]),delete ft.tbody),s.TRUSTED_TYPES_POLICY){if(typeof s.TRUSTED_TYPES_POLICY.createHTML!="function")throw Lt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof s.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Lt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');L=s.TRUSTED_TYPES_POLICY,mt=L.createHTML("")}else L===void 0&&(L=ni(I,o)),L!==null&&typeof mt=="string"&&(mt=L.createHTML(""));R&&R(s),ct=s}},nn=d({},[...Le,...Me,...Ws]),sn=d({},[...Oe,...js]),_s=function(s){let a=kt(s);(!a||!a.tagName)&&(a={namespaceURI:lt,tagName:"template"});let c=Zt(s.tagName),E=Zt(a.tagName);return pe[s.namespaceURI]?s.namespaceURI===Ut?a.namespaceURI===B?c==="svg":a.namespaceURI===Pt?c==="svg"&&(E==="annotation-xml"||Ht[E]):!!nn[c]:s.namespaceURI===Pt?a.namespaceURI===B?c==="math":a.namespaceURI===Ut?c==="math"&&zt[E]:!!sn[c]:s.namespaceURI===B?a.namespaceURI===Ut&&!zt[E]||a.namespaceURI===Pt&&!Ht[E]?!1:!sn[c]&&(ps[c]||!nn[c]):!!(_t==="application/xhtml+xml"&&pe[s.namespaceURI]):!1},q=function(s){$t(t.removed,{element:s});try{kt(s).removeChild(s)}catch{ts(s)}},ut=function(s,a){try{$t(t.removed,{attribute:a.getAttributeNode(s),from:a})}catch{$t(t.removed,{attribute:null,from:a})}if(a.removeAttribute(s),s==="is")if(ot||It)try{q(a)}catch{}else try{a.setAttribute(s,"")}catch{}},on=function(s){let a=null,c=null;if(ce)s="<remove></remove>"+s;else{let b=In(s,/^[\r\n\t ]+/);c=b&&b[0]}_t==="application/xhtml+xml"&<===B&&(s='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+s+"</body></html>");let E=L?L.createHTML(s):s;if(lt===B)try{a=new U().parseFromString(E,_t)}catch{}if(!a||!a.documentElement){a=ne.createDocument(lt,"template",null);try{a.documentElement.innerHTML=de?mt:E}catch{}}let $=a.body||a.documentElement;return s&&c&&$.insertBefore(e.createTextNode(c),$.childNodes[0]||null),lt===B?os.call(a,Q?"html":"body")[0]:Q?a.documentElement:$},rn=function(s){return ss.call(s.ownerDocument||s,s,_.SHOW_ELEMENT|_.SHOW_COMMENT|_.SHOW_TEXT|_.SHOW_PROCESSING_INSTRUCTION|_.SHOW_CDATA_SECTION,null)},fe=function(s){return s instanceof m&&(typeof s.nodeName!="string"||typeof s.textContent!="string"||typeof s.removeChild!="function"||!(s.attributes instanceof T)||typeof s.removeAttribute!="function"||typeof s.setAttribute!="function"||typeof s.namespaceURI!="string"||typeof s.insertBefore!="function"||typeof s.hasChildNodes!="function")},an=function(s){return typeof p=="function"&&s instanceof p};function G(u,s,a){Kt(u,c=>{c.call(t,s,a,ct)})}let ln=function(s){let a=null;if(G(M.beforeSanitizeElements,s,null),fe(s))return q(s),!0;let c=w(s.nodeName);if(G(M.uponSanitizeElement,s,{tagName:c,allowedTags:S}),Nt&&s.hasChildNodes()&&!an(s.firstElementChild)&&O(/<[/\w!]/g,s.innerHTML)&&O(/<[/\w!]/g,s.textContent)||s.nodeType===Ot.progressingInstruction||Nt&&s.nodeType===Ot.comment&&O(/<[/\w]/g,s.data))return q(s),!0;if(!S[c]||ft[c]){if(!ft[c]&&un(c)&&(v.tagNameCheck instanceof RegExp&&O(v.tagNameCheck,c)||v.tagNameCheck instanceof Function&&v.tagNameCheck(c)))return!1;if(ue&&!at[c]){let E=kt(s)||s.parentNode,$=ns(s)||s.childNodes;if($&&E){let b=$.length;for(let N=b-1;N>=0;--N){let W=Qn($[N],!0);W.__removalCount=(s.__removalCount||0)+1,E.insertBefore(W,es(s))}}}return q(s),!0}return s instanceof h&&!_s(s)||(c==="noscript"||c==="noembed"||c==="noframes")&&O(/<\/no(script|embed|frames)/i,s.innerHTML)?(q(s),!0):(it&&s.nodeType===Ot.text&&(a=s.textContent,Kt([se,ie,oe],E=>{a=xt(a,E," ")}),s.textContent!==a&&($t(t.removed,{element:s.cloneNode()}),s.textContent=a)),G(M.afterSanitizeElements,s,null),!1)},cn=function(s,a,c){if(Ke&&(a==="id"||a==="name")&&(c in e||c in gs))return!1;if(!(ae&&!re[a]&&O(as,a))){if(!(je&&O(ls,a))){if(!C[a]||re[a]){if(!(un(s)&&(v.tagNameCheck instanceof RegExp&&O(v.tagNameCheck,s)||v.tagNameCheck instanceof Function&&v.tagNameCheck(s))&&(v.attributeNameCheck instanceof RegExp&&O(v.attributeNameCheck,a)||v.attributeNameCheck instanceof Function&&v.attributeNameCheck(a))||a==="is"&&v.allowCustomizedBuiltInElements&&(v.tagNameCheck instanceof RegExp&&O(v.tagNameCheck,c)||v.tagNameCheck instanceof Function&&v.tagNameCheck(c))))return!1}else if(!he[a]){if(!O(Be,xt(c,Fe,""))){if(!((a==="src"||a==="xlink:href"||a==="href")&&s!=="script"&&qs(c,"data:")===0&&Je[s])){if(!(Ve&&!O(cs,xt(c,Fe,"")))){if(c)return!1}}}}}}return!0},un=function(s){return s!=="annotation-xml"&&In(s,us)},hn=function(s){G(M.beforeSanitizeAttributes,s,null);let{attributes:a}=s;if(!a||fe(s))return;let c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:C,forceKeepAttr:void 0},E=a.length;for(;E--;){let $=a[E],{name:b,namespaceURI:N,value:W}=$,Et=w(b),ge=W,x=b==="value"?ge:Fs(ge);if(c.attrName=Et,c.attrValue=x,c.keepAttr=!0,c.forceKeepAttr=void 0,G(M.uponSanitizeAttribute,s,c),x=c.attrValue,Xe&&(Et==="id"||Et==="name")&&(ut(b,s),x=hs+x),Nt&&O(/((--!?|])>)|<\/(style|title)/i,x)){ut(b,s);continue}if(c.forceKeepAttr)continue;if(!c.keepAttr){ut(b,s);continue}if(!Ye&&O(/\/>/i,x)){ut(b,s);continue}it&&Kt([se,ie,oe],pn=>{x=xt(x,pn," ")});let dn=w(s.nodeName);if(!cn(dn,Et,x)){ut(b,s);continue}if(L&&typeof I=="object"&&typeof I.getAttributeType=="function"&&!N)switch(I.getAttributeType(dn,Et)){case"TrustedHTML":{x=L.createHTML(x);break}case"TrustedScriptURL":{x=L.createScriptURL(x);break}}if(x!==ge)try{N?s.setAttributeNS(N,b,x):s.setAttribute(b,x),fe(s)?q(s):Nn(t.removed)}catch{ut(b,s)}}G(M.afterSanitizeAttributes,s,null)},Es=function u(s){let a=null,c=rn(s);for(G(M.beforeSanitizeShadowDOM,s,null);a=c.nextNode();)G(M.uponSanitizeShadowNode,a,null),ln(a),hn(a),a.content instanceof r&&u(a.content);G(M.afterSanitizeShadowDOM,s,null)};return t.sanitize=function(u){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=null,c=null,E=null,$=null;if(de=!u,de&&(u="<!-->"),typeof u!="string"&&!an(u))if(typeof u.toString=="function"){if(u=u.toString(),typeof u!="string")throw Lt("dirty is not a string, aborting")}else throw Lt("toString is not a function");if(!t.isSupported)return u;if(le||me(s),t.removed=[],typeof u=="string"&&(gt=!1),gt){if(u.nodeName){let W=w(u.nodeName);if(!S[W]||ft[W])throw Lt("root node is forbidden and cannot be sanitized in-place")}}else if(u instanceof p)a=on("<!---->"),c=a.ownerDocument.importNode(u,!0),c.nodeType===Ot.element&&c.nodeName==="BODY"||c.nodeName==="HTML"?a=c:a.appendChild(c);else{if(!ot&&!it&&!Q&&u.indexOf("<")===-1)return L&&Dt?L.createHTML(u):u;if(a=on(u),!a)return ot?null:Dt?mt:""}a&&ce&&q(a.firstChild);let b=rn(gt?u:a);for(;E=b.nextNode();)ln(E),hn(E),E.content instanceof r&&Es(E.content);if(gt)return u;if(ot){if(It)for($=is.call(a.ownerDocument);a.firstChild;)$.appendChild(a.firstChild);else $=a;return(C.shadowroot||C.shadowrootmode)&&($=rs.call(n,$,!0)),$}let N=Q?a.outerHTML:a.innerHTML;return Q&&S["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&O(Wn,a.ownerDocument.doctype.name)&&(N="<!DOCTYPE "+a.ownerDocument.doctype.name+`>
|
4
|
+
`+N),it&&Kt([se,ie,oe],W=>{N=xt(N,W," ")}),L&&Dt?L.createHTML(N):N},t.setConfig=function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};me(u),le=!0},t.clearConfig=function(){ct=null,le=!1},t.isValidAttribute=function(u,s,a){ct||me({});let c=w(u),E=w(s);return cn(c,E,a)},t.addHook=function(u,s){typeof s=="function"&&$t(M[u],s)},t.removeHook=function(u,s){if(s!==void 0){let a=Hs(M[u],s);return a===-1?void 0:zs(M[u],a,1)[0]}return Nn(M[u])},t.removeHooks=function(u){M[u]=[]},t.removeAllHooks=function(){M=qn()},t}var Vn=jn();function Qt(i,t){let e=document.createElement(i);for(let[n,o]of Object.entries(t)){let r=n.replace(/_/g,"-");o!==null&&e.setAttribute(r,o)}return e}var st=class extends F{createRenderRoot(){return this}};function Ie({headline:i="",message:t,status:e="warning"}){document.dispatchEvent(new CustomEvent("shiny:client-message",{detail:{headline:i,message:t,status:e}}))}async function Yn(i){if(window.Shiny&&i)try{await window.Shiny.renderDependenciesAsync(i)}catch(t){Ie({status:"error",message:`Failed to render HTML dependencies: ${t}`})}}var te=Vn();te.addHook("uponSanitizeElement",(i,t)=>{if(i.nodeName&&i.nodeName==="SCRIPT"){let e=i,n=e.getAttribute("type")==="application/json"&&e.getAttribute("data-for")!==null;t.allowedTags.script=n}});te.addHook("afterSanitizeAttributes",function(i){if(!(i.tagName==="A"&&i.hasAttribute("href")))return;let e=i.getAttribute("href");e&&/^(https?:)?\/\//.test(e)&&(i.setAttribute("data-external-link",""),i.setAttribute("target","_blank"),i.setAttribute("rel","noopener noreferrer"))});var Jt=new WeakMap;te.addHook("beforeSanitizeAttributes",function(i,t){if(!i.tagName)return;if(["shiny-tool-request","shiny-tool-result"].includes(i.tagName.toLowerCase())){let n={};i.hasAttribute("value")&&(n.value=i.getAttribute("value")),Object.keys(n).length>0&&Jt.set(i,n)}});te.addHook("afterSanitizeAttributes",function(i,t){if(Jt.has(i)){let e=Jt.get(i);Object.entries(e).forEach(([n,o])=>{i.setAttribute(n,o)}),Jt.delete(i)}});window.shinychat=window.shinychat||{};window.shinychat.hiddenToolRequests=window.shinychat.hiddenToolRequests||new Set;var P=class extends F{constructor(){super(...arguments);this.expanded=!1;this.classStatus="";this.icon="";this.titleTemplate="{title}"}createRenderRoot(){return this}#t(e){e.preventDefault(),this.expanded=!this.expanded,this.requestUpdate()}formatTitle(){let e=this.toolTitle||`${this.toolName}()`;return e=`<span class="tool-title-name">${e}</span>`,e=this.titleTemplate.replace("{title}",e),y`${J(e)}`}renderCard(e){let n=`tool-header-${this.requestId}`,o=`tool-content-${this.requestId}`,r=this.icon||De.wrenchAdjustable,l=y`
|
5
|
+
<div class="tool-icon ${this.classStatus}">${J(r)}</div>
|
6
|
+
<div class="tool-title ${this.classStatus}">${this.formatTitle()}</div>
|
7
|
+
<div class="tool-spacer"></div>
|
8
|
+
${this.intent?y`<div class="tool-intent">${this.intent}</div>`:""}
|
9
|
+
`;return y`
|
10
|
+
<div
|
11
|
+
class="shiny-tool-card card bslib-card html-fill-item html-fill-container m-0"
|
12
|
+
>
|
13
|
+
<button
|
14
|
+
class="card-header"
|
15
|
+
id="${n}"
|
16
|
+
@click="${this.#t}"
|
17
|
+
aria-expanded="${this.expanded}"
|
18
|
+
aria-controls="${o}"
|
19
|
+
>
|
20
|
+
${l}
|
21
|
+
<div class="collapse-indicator">${J(De.plus)}</div>
|
22
|
+
</button>
|
23
|
+
<div
|
24
|
+
class="card-body bslib-gap-spacing html-fill-item html-fill-container${this.expanded?"":" collapsed"}"
|
25
|
+
id="${o}"
|
26
|
+
role="region"
|
27
|
+
aria-labelledby="${n}"
|
28
|
+
?inert="${!this.expanded}"
|
29
|
+
>
|
30
|
+
${e}
|
31
|
+
</div>
|
32
|
+
</div>
|
33
|
+
`}};g([f({type:String,attribute:"request-id"})],P.prototype,"requestId",2),g([f({type:String,attribute:"tool-name"})],P.prototype,"toolName",2),g([f({type:String,attribute:"tool-title"})],P.prototype,"toolTitle",2),g([f({type:String})],P.prototype,"intent",2),g([f({type:Boolean,reflect:!0})],P.prototype,"expanded",2),g([f({type:String})],P.prototype,"classStatus",2),g([f({type:String})],P.prototype,"icon",2),g([f({type:String})],P.prototype,"titleTemplate",2);var pt=class extends P{constructor(){super();this.hidden=!1;this.#t=e=>{e.detail.request_id===this.requestId&&(this.hidden=!0)};this.titleTemplate="Running {title}",this.icon='<div class="spinner-border" role="status"></div>'}connectedCallback(){super.connectedCallback(),this.hidden=window.shinychat.hiddenToolRequests.has(this.requestId),window.addEventListener("shiny-tool-request-hide",this.#t)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("shiny-tool-request-hide",this.#t)}#t;render(){if(this.hidden)return y``;let e=y`
|
6
34
|
<shiny-markdown-stream
|
7
|
-
content
|
8
|
-
content-type
|
9
|
-
?streaming=${
|
10
|
-
auto-scroll
|
11
|
-
.onContentChange=${this.#e.bind(this)}
|
12
|
-
.onStreamEnd=${this.#t.bind(this)}
|
35
|
+
content="${Pe(this.arguments,"json")}"
|
36
|
+
content-type="markdown"
|
37
|
+
?streaming=${!1}
|
13
38
|
></shiny-markdown-stream>
|
14
|
-
|
39
|
+
`;return this.renderCard(y`<div class="shiny-tool-request__arguments">
|
40
|
+
<strong>Tool arguments</strong> ${e}
|
41
|
+
</div>`)}};g([f({type:String})],pt.prototype,"arguments",2),g([f({type:Boolean,reflect:!0})],pt.prototype,"hidden",2);var K=class extends P{constructor(){super();this.showRequest=!1;this.titleTemplate="{title}"}connectedCallback(){super.connectedCallback(),this.status==="error"&&(this.classStatus="text-danger",this.icon=De.exclamationCircleFill,this.titleTemplate="{title} failed"),window.shinychat.hiddenToolRequests.add(this.requestId),this.dispatchEvent(new CustomEvent("shiny-tool-request-hide",{detail:{request_id:this.requestId},bubbles:!0,cancelable:!0}))}#t(){let e="",n=this.value||"[Empty result]";if(this.valueType==="html"?e=y`${J(n)}`:this.valueType==="text"?e=y`<p>${n}</p>`:(this.valueType!=="markdown"&&(e=Pe(n,"text")),e=y`<shiny-markdown-stream
|
42
|
+
content=${e||n}
|
43
|
+
content-type="markdown"
|
44
|
+
?streaming=${!1}
|
45
|
+
></shiny-markdown-stream>`),!this.showRequest&&this.valueType==="html")return e;let o=this.showRequest?y`<strong>Tool result</strong> `:"";return y`<div class="shiny-tool-result__result">
|
46
|
+
${o}${e}
|
47
|
+
</div>`}#e(){if(!this.showRequest||!this.requestCall)return"";let e=y`<shiny-markdown-stream
|
48
|
+
content="${Pe(this.requestCall,"")}"
|
49
|
+
content-type="markdown"
|
50
|
+
?streaming=${!1}
|
51
|
+
></shiny-markdown-stream>`,n=this.requestCall.split(`
|
52
|
+
`).length>2;return y`<div class="shiny-tool-result__request">
|
53
|
+
${n?y`<details>
|
54
|
+
<summary>Tool call</summary>
|
55
|
+
${e}
|
56
|
+
</details>`:y`<strong>Tool call</strong> ${e}`}
|
57
|
+
</div>`}render(){let e=y` ${this.#e()} ${this.#t()} `;return this.renderCard(e)}};g([f({type:String,attribute:"request-call"})],K.prototype,"requestCall",2),g([f({type:String})],K.prototype,"status",2),g([f({type:Boolean,attribute:"show-request"})],K.prototype,"showRequest",2),g([f({type:String})],K.prototype,"value",2),g([f({type:String,attribute:"value-type"})],K.prototype,"valueType",2);var De={exclamationCircleFill:`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-exclamation-circle-fill" viewBox="0 0 16 16">
|
58
|
+
<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0M8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4m.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2"/>
|
59
|
+
</svg>`,wrenchAdjustable:`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-wrench-adjustable" viewBox="0 0 16 16">
|
60
|
+
<path d="M16 4.5a4.5 4.5 0 0 1-1.703 3.526L13 5l2.959-1.11q.04.3.041.61"/>
|
61
|
+
<path d="M11.5 9c.653 0 1.273-.139 1.833-.39L12 5.5 11 3l3.826-1.53A4.5 4.5 0 0 0 7.29 6.092l-6.116 5.096a2.583 2.583 0 1 0 3.638 3.638L9.908 8.71A4.5 4.5 0 0 0 11.5 9m-1.292-4.361-.596.893.809-.27a.25.25 0 0 1 .287.377l-.596.893.809-.27.158.475-1.5.5a.25.25 0 0 1-.287-.376l.596-.893-.809.27a.25.25 0 0 1-.287-.377l.596-.893-.809.27-.158-.475 1.5-.5a.25.25 0 0 1 .287.376M3 14a1 1 0 1 1 0-2 1 1 0 0 1 0 2"/>
|
62
|
+
</svg>`,plus:`<svg xmlns="http://www.w3.org/2000/svg" width="10px" height="10px" viewBox="4 4 12 12" fill="none">
|
63
|
+
<path class="horizontal" d="M5 11C4.44772 11 4 10.5523 4 10C4 9.44772 4.44772 9 5 9H15C15.5523 9 16 9.44772 16 10C16 10.5523 15.5523 11 15 11H5Z" fill="currentColor"/>
|
64
|
+
<path class="vertical" d="M9 5C9 4.44772 9.44772 4 10 4C10.5523 4 11 4.44772 11 5V15C11 15.5523 10.5523 16 10 16C9.44772 16 9 15.5523 9 15V5Z" fill="currentColor"/>
|
65
|
+
</svg>`},Pe=(i,t="markdown")=>{let e="`".repeat(8);return`${e}${t}
|
66
|
+
${i}
|
67
|
+
${e}`};window.Shiny?.addCustomMessageHandler("shiny-tool-request-hide",i=>{window.shinychat.hiddenToolRequests.add(i);let t=new CustomEvent("shiny-tool-request-hide",{detail:{request_id:i},bubbles:!0,cancelable:!0});window.dispatchEvent(t)});var Ue=class i{constructor(){this.url=null;this.dialog=null;this.resolvePromise=null;this.createDialog()}static{this.instance=null}static getInstance(){return i.instance||(i.instance=new i),i.instance}async showConfirmation(t){if(window.shinychat_always_open_external_links)return Promise.resolve(!0);this.url=t;let e=this.dialog?.querySelector(".link-url");return e&&(e.textContent=t),new Promise(n=>{this.resolvePromise=n;try{this.dialog?.showModal()}catch{n(!0)}})}createDialog(){if(this.dialog)return;this.dialog=document.createElement("dialog"),this.dialog.id="shinychat-external-link-dialog",this.dialog.className="shinychat-external-link-dialog",this.dialog.innerHTML=`
|
68
|
+
<div class="modal position-relative d-block fade show">
|
69
|
+
<div class="modal-content">
|
70
|
+
<div class="modal-header">
|
71
|
+
<h5 class="modal-title">External Link</h5>
|
72
|
+
<button class="btn-close shinychat-btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
73
|
+
</div>
|
74
|
+
<div class="modal-body">
|
75
|
+
<p>This link will take you to an external website:</p>
|
76
|
+
<p class="link-url text-break"></p>
|
77
|
+
</div>
|
78
|
+
<div class="modal-footer flex-wrap-reverse">
|
79
|
+
<button class="btn btn-sm btn-link shinychat-btn-always ps-0 me-auto">Always open external links</button>
|
80
|
+
<div class="d-flex gap-2 justify-content-end">
|
81
|
+
<button autofocus class="btn btn-sm btn-primary shinychat-btn-proceed">Open Link</button>
|
82
|
+
<button class="btn btn-sm btn-outline-danger shinychat-btn-cancel">Cancel</button>
|
83
|
+
</div>
|
84
|
+
</div>
|
85
|
+
</div>
|
86
|
+
</div>
|
87
|
+
</div>
|
88
|
+
`,document.body.appendChild(this.dialog);let t=n=>this.dialog?.querySelector(n),e={close:t(".shinychat-btn-close"),cancel:t(".shinychat-btn-cancel"),proceed:t(".shinychat-btn-proceed"),always:t(".shinychat-btn-always")};e.close.addEventListener("click",()=>this.handleCancel()),e.cancel.addEventListener("click",()=>this.handleCancel()),e.proceed.addEventListener("click",()=>this.handleProceed()),e.always.addEventListener("click",()=>this.handleAlways()),this.dialog.addEventListener("click",n=>{n.target===this.dialog&&(this.handleCancel(),n.preventDefault())})}handleCancel(){this.dialog?.close(),this.resolvePromise&&(this.resolvePromise(!1),this.resolvePromise=null)}handleProceed(){this.dialog?.close(),this.resolvePromise&&(this.resolvePromise(!0),this.resolvePromise=null)}handleAlways(){window.shinychat_always_open_external_links=!0,this.handleProceed()}};function Kn(i){return typeof window.HTMLDialogElement<"u"?Ue.getInstance().showConfirmation(i):Promise.resolve(!0)}var He="shiny-chat-message",si="shiny-user-message",Zn="shiny-chat-messages",Jn="shiny-chat-input",ii="shiny-chat-container",oi="shiny-tool-request",ri="shiny-tool-result",Xn={robot:'<svg fill="currentColor" class="bi bi-robot" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M6 12.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5M3 8.062C3 6.76 4.235 5.765 5.53 5.886a26.6 26.6 0 0 0 4.94 0C11.765 5.765 13 6.76 13 8.062v1.157a.93.93 0 0 1-.765.935c-.845.147-2.34.346-4.235.346s-3.39-.2-4.235-.346A.93.93 0 0 1 3 9.219zm4.542-.827a.25.25 0 0 0-.217.068l-.92.9a25 25 0 0 1-1.871-.183.25.25 0 0 0-.068.495c.55.076 1.232.149 2.02.193a.25.25 0 0 0 .189-.071l.754-.736.847 1.71a.25.25 0 0 0 .404.062l.932-.97a25 25 0 0 0 1.922-.188.25.25 0 0 0-.068-.495c-.538.074-1.207.145-1.98.189a.25.25 0 0 0-.166.076l-.754.785-.842-1.7a.25.25 0 0 0-.182-.135"/><path d="M8.5 1.866a1 1 0 1 0-1 0V3h-2A4.5 4.5 0 0 0 1 7.5V8a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1v1a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-1a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1v-.5A4.5 4.5 0 0 0 10.5 3h-2zM14 7.5V13a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7.5A3.5 3.5 0 0 1 5.5 4h5A3.5 3.5 0 0 1 14 7.5"/></svg>',dots_fade:'<svg width="24" height="24" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><style>.spinner_S1WN{animation:spinner_MGfb .8s linear infinite;animation-delay:-.8s}.spinner_Km9P{animation-delay:-.65s}.spinner_JApP{animation-delay:-.5s}@keyframes spinner_MGfb{93.75%,100%{opacity:.2}}</style><circle class="spinner_S1WN" cx="4" cy="12" r="3"/><circle class="spinner_S1WN spinner_Km9P" cx="12" cy="12" r="3"/><circle class="spinner_S1WN spinner_JApP" cx="20" cy="12" r="3"/></svg>'},X=class extends st{constructor(){super(...arguments);this.content="...";this.contentType="markdown";this.streaming=!1;this.icon="";this.role="assistant"}render(){let e=this.#t();return y`
|
89
|
+
${e}
|
15
90
|
<shiny-markdown-stream
|
16
91
|
content=${this.content}
|
17
|
-
content-type
|
92
|
+
content-type=${this.contentType}
|
93
|
+
?streaming=${this.streaming}
|
94
|
+
?auto-scroll=${this.role==="assistant"}
|
95
|
+
.onContentChange=${this.#n.bind(this)}
|
96
|
+
.onStreamEnd=${this.#s.bind(this)}
|
18
97
|
></shiny-markdown-stream>
|
19
|
-
`}};
|
98
|
+
`}#t(){let e=this.#e();return e?y`<div class="message-icon">${J(e)}</div>`:null}#e(){return this.role!=="assistant"?this.icon:this.content.trim().length===0?Xn.dots_fade:this.icon||Xn.robot}#n(){this.streaming||this.#s()}#s(){this.querySelectorAll(".suggestion,[data-suggestion]").forEach(e=>{if(!(e instanceof HTMLElement)||e.hasAttribute("tabindex"))return;e.setAttribute("tabindex","0"),e.setAttribute("role","button");let n=e.dataset.suggestion||e.textContent;e.setAttribute("aria-label",`Use chat suggestion: ${n}`)})}};g([f()],X.prototype,"content",2),g([f({attribute:"content-type"})],X.prototype,"contentType",2),g([f({type:Boolean,reflect:!0})],X.prototype,"streaming",2),g([f()],X.prototype,"icon",2),g([f({attribute:"data-role"})],X.prototype,"role",2);var ze=class extends X{constructor(){super(),this.role="user",this.contentType="semi-markdown"}},qe=class extends st{render(){return y``}},Rt=class extends st{constructor(){super(...arguments);this.placeholder="Enter a message...";this._disabled=!1;this._isComposing=!1}get disabled(){return this._disabled}set disabled(e){let n=this._disabled;e!==n&&(this._disabled=e,e?this.setAttribute("disabled",""):this.removeAttribute("disabled"),this.requestUpdate("disabled",n),this.#e())}connectedCallback(){super.connectedCallback(),this.inputVisibleObserver=new IntersectionObserver(e=>{e.forEach(n=>{n.isIntersecting&&this.#o()})}),this.inputVisibleObserver.observe(this),this.addEventListener("compositionstart",this.#n),this.addEventListener("compositionend",this.#s)}disconnectedCallback(){super.disconnectedCallback(),this.inputVisibleObserver?.disconnect(),this.inputVisibleObserver=void 0,this.removeEventListener("compositionstart",this.#n),this.removeEventListener("compositionend",this.#s)}attributeChangedCallback(e,n,o){super.attributeChangedCallback(e,n,o),e==="disabled"&&(this.disabled=o!==null)}get textarea(){return this.querySelector("textarea")}get value(){return this.textarea.value}get valueIsEmpty(){return this.value.trim().length===0}get button(){return this.querySelector("button")}render(){return y`
|
20
99
|
<textarea
|
21
100
|
id="${this.id}"
|
22
101
|
class="form-control"
|
23
102
|
rows="1"
|
24
103
|
placeholder="${this.placeholder}"
|
25
|
-
@keydown=${this.#
|
26
|
-
@input=${this.#
|
104
|
+
@keydown=${this.#t}
|
105
|
+
@input=${this.#e}
|
27
106
|
data-shiny-no-bind-input
|
28
107
|
></textarea>
|
29
108
|
<button
|
30
109
|
type="button"
|
31
110
|
title="Send message"
|
32
111
|
aria-label="Send message"
|
33
|
-
@click=${this.#
|
112
|
+
@click=${this.#i}
|
34
113
|
>
|
35
|
-
${
|
114
|
+
${J('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" class="bi bi-arrow-up-circle-fill" viewBox="0 0 16 16"><path d="M16 8A8 8 0 1 0 0 8a8 8 0 0 0 16 0m-7.5 3.5a.5.5 0 0 1-1 0V5.707L5.354 7.854a.5.5 0 1 1-.708-.708l3-3a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L8.5 5.707z"/></svg>')}
|
36
115
|
</button>
|
37
|
-
`}#
|
38
|
-
${
|
39
|
-
chat_ui('${
|
40
|
-
`});return}e.dispatchEvent(t)});export{
|
116
|
+
`}#t(e){e.code==="Enter"&&!e.shiftKey&&!this._isComposing&&!this.valueIsEmpty&&(e.preventDefault(),this.#i())}#e(){this.#o(),this.button.disabled=this.disabled?!0:this.value.trim().length===0}#n(){this._isComposing=!0}#s(){this._isComposing=!1}firstUpdated(){this.#e()}#i(e=!0){if(this.valueIsEmpty||this.disabled)return;window.Shiny.setInputValue(this.id,this.value,{priority:"event"});let n=new CustomEvent("shiny-chat-input-sent",{detail:{content:this.value,role:"user"},bubbles:!0,composed:!0});this.dispatchEvent(n),this.setInputValue(""),this.disabled=!0,e&&this.textarea.focus()}#o(){let e=this.textarea;e.scrollHeight!=0&&(e.style.height="auto",e.style.height=`${e.scrollHeight}px`)}setInputValue(e,{submit:n=!1,focus:o=!1}={}){let r=this.textarea.value;this.textarea.value=e;let l=new Event("input",{bubbles:!0,cancelable:!0});this.textarea.dispatchEvent(l),n&&(this.#i(!1),r&&this.setInputValue(r)),o&&this.textarea.focus()}};g([f()],Rt.prototype,"placeholder",2),g([f({type:Boolean})],Rt.prototype,"disabled",1);var ee=class extends st{constructor(){super(...arguments);this.iconAssistant="";this._attachEventListenersOnReconnect=!1}get input(){return this.querySelector(Jn)}get messages(){return this.querySelector(Zn)}get lastMessage(){let e=this.messages.lastElementChild;return e||null}render(){return y``}connectedCallback(){super.connectedCallback();let e=this.querySelector("div");e||(e=Qt("div",{style:"width: 100%; height: 0;"}),this.input.insertAdjacentElement("afterend",e)),this.inputSentinelObserver=new IntersectionObserver(n=>{let o=this.input.querySelector("textarea");if(!o)return;let r=n[0]?.intersectionRatio===0;o.classList.toggle("shadow",r)},{threshold:[0,1],rootMargin:"0px"}),this.inputSentinelObserver.observe(e),this._boundOnExternalLinkClick=this.#_.bind(this),this._attachEventListenersOnReconnect&&this.#t()}firstUpdated(){this.messages&&this.#t()}#t(){this._attachEventListenersOnReconnect=!0,this.addEventListener("shiny-chat-input-sent",this.#e),this.addEventListener("shiny-chat-append-message",this.#n),this.addEventListener("shiny-chat-append-message-chunk",this.#l),this.addEventListener("shiny-chat-clear-messages",this.#c),this.addEventListener("shiny-chat-update-user-input",this.#u),this.addEventListener("shiny-chat-remove-loading-message",this.#m),this.addEventListener("click",this.#h),this.addEventListener("keydown",this.#d),window.addEventListener("click",this._boundOnExternalLinkClick)}disconnectedCallback(){super.disconnectedCallback(),this._attachEventListenersOnReconnect=!0,this.inputSentinelObserver?.disconnect(),this.inputSentinelObserver=void 0,this.removeEventListener("shiny-chat-input-sent",this.#e),this.removeEventListener("shiny-chat-append-message",this.#n),this.removeEventListener("shiny-chat-append-message-chunk",this.#l),this.removeEventListener("shiny-chat-clear-messages",this.#c),this.removeEventListener("shiny-chat-update-user-input",this.#u),this.removeEventListener("shiny-chat-remove-loading-message",this.#m),this.removeEventListener("click",this.#h),this.removeEventListener("keydown",this.#d),window.removeEventListener("click",this._boundOnExternalLinkClick)}#e(e){this.#i(e.detail),this.#o()}#n(e){this.#i(e.detail)}#s(){this.#a(),this.input.disabled||(this.input.disabled=!0)}#i(e,n=!0){this.#s();let o=He;this.iconAssistant&&(e.icon=e.icon||this.iconAssistant);let{role:r,...l}=e,p={data_role:r,...l},h=Qt(o,p);this.messages.appendChild(h),n&&this.#r()}#o(){let n=Qt(He,{content:"",role:"assistant"});this.messages.appendChild(n)}#a(){this.lastMessage?.content||this.lastMessage?.remove()}#l(e){this.#f(e.detail)}#f(e){e.chunk_type==="message_start"&&this.#i(e,!1);let n=this.lastMessage;if(!n)throw new Error("No messages found in the chat output");if(e.chunk_type==="message_start"){n.setAttribute("streaming","");return}let o=e.operation==="append"?n.getAttribute("content")+e.content:e.content;n.setAttribute("content",o),e.chunk_type==="message_end"&&(this.lastMessage?.removeAttribute("streaming"),this.#r())}#c(){this.messages.innerHTML=""}#u(e){let{value:n,placeholder:o,submit:r,focus:l}=e.detail;n!==void 0&&this.input.setInputValue(n,{submit:r,focus:l}),o!==void 0&&(this.input.placeholder=o)}#h(e){this.#p(e)}#d(e){(e.key==="Enter"||e.key===" ")&&this.#p(e)}#p(e){let{suggestion:n,submit:o}=this.#g(e.target);if(!n)return;e.preventDefault();let r=e.metaKey||e.ctrlKey?!0:e.altKey?!1:o;this.input.setInputValue(n,{submit:r,focus:!r})}#g(e){if(!(e instanceof HTMLElement))return{};let n=e.closest(".suggestion, [data-suggestion]");return n instanceof HTMLElement?n.classList.contains("suggestion")||n.dataset.suggestion!==void 0?{suggestion:n.dataset.suggestion||n.textContent||void 0,submit:n.classList.contains("submit")||n.dataset.suggestionSubmit===""||n.dataset.suggestionSubmit==="true"}:{}:{}}#m(){this.#a(),this.#r()}#r(){this.input.disabled=!1}#_(e){let n=e.target;if(!this.contains(n))return;let o=n.closest("a[data-external-link]");!o||!o.href||(e.preventDefault(),Kn(o.href).then(r=>{r&&window.open(o.href,"_blank","noopener,noreferrer")}).catch(()=>{window.open(o.href,"_blank","noopener,noreferrer")}))}};g([f({attribute:"icon-assistant"})],ee.prototype,"iconAssistant",2);var ai=[{tag:He,component:X},{tag:si,component:ze},{tag:Zn,component:qe},{tag:Jn,component:Rt},{tag:ii,component:ee},{tag:oi,component:pt},{tag:ri,component:K}];ai.forEach(({tag:i,component:t})=>{customElements.get(i)||customElements.define(i,t)});window.Shiny?.addCustomMessageHandler("shinyChatMessage",async function(i){i.obj?.html_deps&&await Yn(i.obj.html_deps);let t=new CustomEvent(i.handler,{detail:i.obj}),e=document.getElementById(i.id);if(!e){Ie({status:"error",message:`Unable to handle Chat() message since element with id
|
117
|
+
${i.id} wasn't found. Do you need to call .ui() (Express) or need a
|
118
|
+
chat_ui('${i.id}') in the UI (Core)?
|
119
|
+
`});return}e.dispatchEvent(t)});export{ii as CHAT_CONTAINER_TAG};
|
41
120
|
/*! Bundled license information:
|
42
121
|
|
43
122
|
@lit/reactive-element/css-tag.js:
|