@snf/access-qa-bot 3.3.11 → 3.3.12

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.
@@ -0,0 +1,266 @@
1
+ var AccessQABot=function(Dn){"use strict";var rn,X,Oo,It,No,Lo,Ro,Ho,ar,sr,Ar,Uo,on={},Fo=[],dA=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,an=Array.isArray;function at(e,t){for(var n in t)e[n]=t[n];return e}function lr(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Ae(e,t,n){var r,o,i,s={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?rn.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return sn(e,s,r,o,null)}function sn(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++Oo,__i:-1,__u:0};return o==null&&X.vnode!=null&&X.vnode(i),i}function zo(){return{current:null}}function le(e){return e.children}function st(e,t){this.props=e,this.context=t}function zt(e,t){if(t==null)return e.__?zt(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?zt(e):null}function jo(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return jo(e)}}function cr(e){(!e.__d&&(e.__d=!0)&&It.push(e)&&!Sn.__r++||No!=X.debounceRendering)&&((No=X.debounceRendering)||Lo)(Sn)}function Sn(){for(var e,t,n,r,o,i,s,A=1;It.length;)It.length>A&&It.sort(Ro),e=It.shift(),A=It.length,e.__d&&(n=void 0,r=void 0,o=(r=(t=e).__v).__e,i=[],s=[],t.__P&&((n=at({},r)).__v=r.__v+1,X.vnode&&X.vnode(n),ur(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:null,i,o??zt(r),!!(32&r.__u),s),n.__v=r.__v,n.__.__k[n.__i]=n,Ko(i,n,s),r.__e=r.__=null,n.__e!=o&&jo(n)));Sn.__r=0}function qo(e,t,n,r,o,i,s,A,a,l,c){var u,d,p,h,m,f,b,y=r&&r.__k||Fo,g=t.length;for(a=pA(n,t,y,a,g),u=0;u<g;u++)(p=n.__k[u])!=null&&(d=p.__i==-1?on:y[p.__i]||on,p.__i=u,f=ur(e,p,d,o,i,s,A,a,l,c),h=p.__e,p.ref&&d.ref!=p.ref&&(d.ref&&pr(d.ref,null,p),c.push(p.ref,p.__c||h,p)),m==null&&h!=null&&(m=h),(b=!!(4&p.__u))||d.__k===p.__k?a=Wo(p,a,e,b):typeof p.type=="function"&&f!==void 0?a=f:h&&(a=h.nextSibling),p.__u&=-7);return n.__e=m,a}function pA(e,t,n,r,o){var i,s,A,a,l,c=n.length,u=c,d=0;for(e.__k=new Array(o),i=0;i<o;i++)(s=t[i])!=null&&typeof s!="boolean"&&typeof s!="function"?(a=i+d,(s=e.__k[i]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?sn(null,s,null,null,null):an(s)?sn(le,{children:s},null,null,null):s.constructor==null&&s.__b>0?sn(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,A=null,(l=s.__i=fA(s,n,a,u))!=-1&&(u--,(A=n[l])&&(A.__u|=2)),A==null||A.__v==null?(l==-1&&(o>c?d--:o<c&&d++),typeof s.type!="function"&&(s.__u|=4)):l!=a&&(l==a-1?d--:l==a+1?d++:(l>a?d--:d++,s.__u|=4))):e.__k[i]=null;if(u)for(i=0;i<c;i++)(A=n[i])!=null&&!(2&A.__u)&&(A.__e==r&&(r=zt(A)),Vo(A,A));return r}function Wo(e,t,n,r){var o,i;if(typeof e.type=="function"){for(o=e.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=e,t=Wo(o[i],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=zt(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function yt(e,t){return t=t||[],e==null||typeof e=="boolean"||(an(e)?e.some(function(n){yt(n,t)}):t.push(e)),t}function fA(e,t,n,r){var o,i,s,A=e.key,a=e.type,l=t[n],c=l!=null&&(2&l.__u)==0;if(l===null&&e.key==null||c&&A==l.key&&a==l.type)return n;if(r>(c?1:0)){for(o=n-1,i=n+1;o>=0||i<t.length;)if((l=t[s=o>=0?o--:i++])!=null&&!(2&l.__u)&&A==l.key&&a==l.type)return s}return-1}function Go(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||dA.test(t)?n:n+"px"}function Bn(e,t,n,r,o){var i,s;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Go(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||Go(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(Ho,"$1")),s=t.toLowerCase(),t=s in e||t=="onFocusOut"||t=="onFocusIn"?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=ar,e.addEventListener(t,i?Ar:sr,i)):e.removeEventListener(t,i?Ar:sr,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function Yo(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=ar++;else if(t.t<n.u)return;return n(X.event?X.event(t):t)}}}function ur(e,t,n,r,o,i,s,A,a,l){var c,u,d,p,h,m,f,b,y,g,x,k,E,C,I,D,P,S=t.type;if(t.constructor!=null)return null;128&n.__u&&(a=!!(32&n.__u),i=[A=t.__e=n.__e]),(c=X.__b)&&c(t);e:if(typeof S=="function")try{if(b=t.props,y="prototype"in S&&S.prototype.render,g=(c=S.contextType)&&r[c.__c],x=c?g?g.props.value:c.__:r,n.__c?f=(u=t.__c=n.__c).__=u.__E:(y?t.__c=u=new S(b,x):(t.__c=u=new st(b,x),u.constructor=S,u.render=gA),g&&g.sub(u),u.props=b,u.state||(u.state={}),u.context=x,u.__n=r,d=u.__d=!0,u.__h=[],u._sb=[]),y&&u.__s==null&&(u.__s=u.state),y&&S.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=at({},u.__s)),at(u.__s,S.getDerivedStateFromProps(b,u.__s))),p=u.props,h=u.state,u.__v=t,d)y&&S.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),y&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(y&&S.getDerivedStateFromProps==null&&b!==p&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(b,x),!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(b,u.__s,x)===!1||t.__v==n.__v){for(t.__v!=n.__v&&(u.props=b,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(B){B&&(B.__=t)}),k=0;k<u._sb.length;k++)u.__h.push(u._sb[k]);u._sb=[],u.__h.length&&s.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(b,u.__s,x),y&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(p,h,m)})}if(u.context=x,u.props=b,u.__P=e,u.__e=!1,E=X.__r,C=0,y){for(u.state=u.__s,u.__d=!1,E&&E(t),c=u.render(u.props,u.state,u.context),I=0;I<u._sb.length;I++)u.__h.push(u._sb[I]);u._sb=[]}else do u.__d=!1,E&&E(t),c=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++C<25);u.state=u.__s,u.getChildContext!=null&&(r=at(at({},r),u.getChildContext())),y&&!d&&u.getSnapshotBeforeUpdate!=null&&(m=u.getSnapshotBeforeUpdate(p,h)),D=c,c!=null&&c.type===le&&c.key==null&&(D=Xo(c.props.children)),A=qo(e,an(D)?D:[D],t,n,r,o,i,s,A,a,l),u.base=t.__e,t.__u&=-161,u.__h.length&&s.push(u),f&&(u.__E=u.__=null)}catch(B){if(t.__v=null,a||i!=null)if(B.then){for(t.__u|=a?160:128;A&&A.nodeType==8&&A.nextSibling;)A=A.nextSibling;i[i.indexOf(A)]=null,t.__e=A}else{for(P=i.length;P--;)lr(i[P]);dr(t)}else t.__e=n.__e,t.__k=n.__k,B.then||dr(t);X.__e(B,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):A=t.__e=hA(n.__e,t,n,r,o,i,s,a,l);return(c=X.diffed)&&c(t),128&t.__u?void 0:A}function dr(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(dr)}function Ko(e,t,n){for(var r=0;r<n.length;r++)pr(n[r],n[++r],n[++r]);X.__c&&X.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){X.__e(i,o.__v)}})}function Xo(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:an(e)?e.map(Xo):at({},e)}function hA(e,t,n,r,o,i,s,A,a){var l,c,u,d,p,h,m,f=n.props,b=t.props,y=t.type;if(y=="svg"?o="http://www.w3.org/2000/svg":y=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(l=0;l<i.length;l++)if((p=i[l])&&"setAttribute"in p==!!y&&(y?p.localName==y:p.nodeType==3)){e=p,i[l]=null;break}}if(e==null){if(y==null)return document.createTextNode(b);e=document.createElementNS(o,y,b.is&&b),A&&(X.__m&&X.__m(t,i),A=!1),i=null}if(y==null)f===b||A&&e.data==b||(e.data=b);else{if(i=i&&rn.call(e.childNodes),f=n.props||on,!A&&i!=null)for(f={},l=0;l<e.attributes.length;l++)f[(p=e.attributes[l]).name]=p.value;for(l in f)if(p=f[l],l!="children"){if(l=="dangerouslySetInnerHTML")u=p;else if(!(l in b)){if(l=="value"&&"defaultValue"in b||l=="checked"&&"defaultChecked"in b)continue;Bn(e,l,null,p,o)}}for(l in b)p=b[l],l=="children"?d=p:l=="dangerouslySetInnerHTML"?c=p:l=="value"?h=p:l=="checked"?m=p:A&&typeof p!="function"||f[l]===p||Bn(e,l,p,f[l],o);if(c)A||u&&(c.__html==u.__html||c.__html==e.innerHTML)||(e.innerHTML=c.__html),t.__k=[];else if(u&&(e.innerHTML=""),qo(t.type=="template"?e.content:e,an(d)?d:[d],t,n,r,y=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:n.__k&&zt(n,0),A,a),i!=null)for(l=i.length;l--;)lr(i[l]);A||(l="value",y=="progress"&&h==null?e.removeAttribute("value"):h!=null&&(h!==e[l]||y=="progress"&&!h||y=="option"&&h!=f[l])&&Bn(e,l,h,f[l],o),l="checked",m!=null&&m!=e[l]&&Bn(e,l,m,f[l],o))}return e}function pr(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){X.__e(o,n)}}function Vo(e,t,n){var r,o;if(X.unmount&&X.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||pr(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){X.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Vo(r[o],t,n||typeof e.type!="function");n||lr(e.__e),e.__c=e.__=e.__e=void 0}function gA(e,t,n){return this.constructor(e,n)}function An(e,t,n){var r,o,i,s;t==document&&(t=document.documentElement),X.__&&X.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],s=[],ur(t,e=(!r&&n||t).__k=Ae(le,null,[e]),o||on,on,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?rn.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,s),Ko(i,e,s)}function $o(e,t){An(e,t,$o)}function mA(e,t,n){var r,o,i,s,A=at({},e.props);for(i in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:A[i]=t[i]===void 0&&s!=null?s[i]:t[i];return arguments.length>2&&(A.children=arguments.length>3?rn.call(arguments,2):n),sn(e.type,A,r||e.key,o||e.ref,null)}function nt(e){function t(n){var r,o;return this.getChildContext||(r=new Set,(o={})[t.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(i){this.props.value!=i.value&&r.forEach(function(s){s.__e=!0,cr(s)})},this.sub=function(i){r.add(i);var s=i.componentWillUnmount;i.componentWillUnmount=function(){r&&r.delete(i),s&&s.call(i)}}),n.children}return t.__c="__cC"+Uo++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}rn=Fo.slice,X={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(A){e=A}throw e}},Oo=0,st.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=at({},this.state),typeof e=="function"&&(e=e(at({},n),this.props)),e&&at(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),cr(this))},st.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),cr(this))},st.prototype.render=le,It=[],Lo=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ro=function(e,t){return e.__v.__b-t.__v.__b},Sn.__r=0,Ho=/(PointerCapture)$|Capture$/i,ar=0,sr=Yo(!1),Ar=Yo(!0),Uo=0;var xt,ve,fr,Jo,jt=0,Zo=[],be=X,ei=be.__b,ti=be.__r,ni=be.diffed,ri=be.__c,oi=be.unmount,ii=be.__;function qt(e,t){be.__h&&be.__h(ve,e,jt||t),jt=0;var n=ve.__H||(ve.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ee(e){return jt=1,hr(li,e)}function hr(e,t,n){var r=qt(xt++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):li(void 0,t),function(A){var a=r.__N?r.__N[0]:r.__[0],l=r.t(a,A);a!==l&&(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=ve,!ve.__f)){var o=function(A,a,l){if(!r.__c.__H)return!0;var c=r.__c.__H.__.filter(function(d){return!!d.__c});if(c.every(function(d){return!d.__N}))return!i||i.call(this,A,a,l);var u=r.__c.props!==A;return c.forEach(function(d){if(d.__N){var p=d.__[0];d.__=d.__N,d.__N=void 0,p!==d.__[0]&&(u=!0)}}),i&&i.call(this,A,a,l)||u};ve.__f=!0;var i=ve.shouldComponentUpdate,s=ve.componentWillUpdate;ve.componentWillUpdate=function(A,a,l){if(this.__e){var c=i;i=void 0,o(A,a,l),i=c}s&&s.call(this,A,a,l)},ve.shouldComponentUpdate=o}return r.__N||r.__}function J(e,t){var n=qt(xt++,3);!be.__s&&mr(n.__H,t)&&(n.__=e,n.u=t,ve.__H.__h.push(n))}function ln(e,t){var n=qt(xt++,4);!be.__s&&mr(n.__H,t)&&(n.__=e,n.u=t,ve.__h.push(n))}function oe(e){return jt=5,_e(function(){return{current:e}},[])}function In(e,t,n){jt=6,ln(function(){if(typeof e=="function"){var r=e(t());return function(){e(null),r&&typeof r=="function"&&r()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function _e(e,t){var n=qt(xt++,7);return mr(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function G(e,t){return jt=8,_e(function(){return e},t)}function Ve(e){var t=ve.context[e.__c],n=qt(xt++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(ve)),t.props.value):e.__}function ai(e,t){be.useDebugValue&&be.useDebugValue(t?t(e):e)}function si(){var e=qt(xt++,11);if(!e.__){for(var t=ve.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function yA(){for(var e;e=Zo.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Tn),e.__H.__h.forEach(gr),e.__H.__h=[]}catch(t){e.__H.__h=[],be.__e(t,e.__v)}}be.__b=function(e){ve=null,ei&&ei(e)},be.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ii&&ii(e,t)},be.__r=function(e){ti&&ti(e),xt=0;var t=(ve=e.__c).__H;t&&(fr===ve?(t.__h=[],ve.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(Tn),t.__h.forEach(gr),t.__h=[],xt=0)),fr=ve},be.diffed=function(e){ni&&ni(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Zo.push(t)!==1&&Jo===be.requestAnimationFrame||((Jo=be.requestAnimationFrame)||vA)(yA)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),fr=ve=null},be.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Tn),n.__h=n.__h.filter(function(r){return!r.__||gr(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],be.__e(r,n.__v)}}),ri&&ri(e,t)},be.unmount=function(e){oi&&oi(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Tn(r)}catch(o){t=o}}),n.__H=void 0,t&&be.__e(t,n.__v))};var Ai=typeof requestAnimationFrame=="function";function vA(e){var t,n=function(){clearTimeout(r),Ai&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);Ai&&(t=requestAnimationFrame(n))}function Tn(e){var t=ve,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),ve=t}function gr(e){var t=ve;e.__c=e.__(),ve=t}function mr(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function li(e,t){return typeof t=="function"?t(e):t}function ci(e,t){for(var n in t)e[n]=t[n];return e}function yr(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function ui(e,t){var n=t(),r=ee({t:{__:n,u:t}}),o=r[0].t,i=r[1];return ln(function(){o.__=n,o.u=t,vr(o)&&i({t:o})},[e,n,t]),J(function(){return vr(o)&&i({t:o}),e(function(){vr(o)&&i({t:o})})},[e]),n}function vr(e){var t,n,r=e.u,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function di(e){e()}function pi(e){return e}function fi(){return[!1,di]}var hi=ln;function br(e,t){this.props=e,this.context=t}function bA(e,t){function n(o){var i=this.props.ref,s=i==o.ref;return!s&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!s:yr(this.props,o)}function r(o){return this.shouldComponentUpdate=n,Ae(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r.type=e,r}(br.prototype=new st).isPureReactComponent=!0,br.prototype.shouldComponentUpdate=function(e,t){return yr(this.props,e)||yr(this.state,t)};var gi=X.__b;X.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),gi&&gi(e)};var wA=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Re(e){function t(n){var r=ci({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=wA,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var mi=function(e,t){return e==null?null:yt(yt(e).map(t))},xA={map:mi,forEach:mi,count:function(e){return e?yt(e).length:0},only:function(e){var t=yt(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:yt},EA=X.__e;X.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}EA(e,t,n,r)};var yi=X.unmount;function vi(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=ci({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return vi(r,t,n)})),e}function bi(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return bi(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Qn(){this.__u=0,this.o=null,this.__b=null}function wi(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function _A(e){var t,n,r;function o(i){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return Ae(n,i)}return o.displayName="Lazy",o.__f=!0,o}function cn(){this.i=null,this.l=null}X.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),yi&&yi(e)},(Qn.prototype=new st).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=wi(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(A):A())};n.__R=s;var A=function(){if(!--r.__u){if(r.state.__a){var a=r.state.__a;r.__v.__k[0]=bi(a,a.__c.__P,a.__c.__O)}var l;for(r.setState({__a:r.__b=null});l=r.o.pop();)l.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},Qn.prototype.componentWillUnmount=function(){this.o=[]},Qn.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=vi(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&Ae(le,null,e.fallback);return o&&(o.__u&=-33),[Ae(le,null,t.__a?null:e.children),o]};var xi=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function kA(e){return this.getChildContext=function(){return e.context},e.children}function PA(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){An(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var r=t.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},insertBefore:function(o,i){this.childNodes.push(o),t.h.insertBefore(o,i)},removeChild:function(o){this.childNodes.splice(this.childNodes.indexOf(o)>>>1,1),t.h.removeChild(o)}}}An(Ae(kA,{context:t.context},e.__v),t.v)}function CA(e,t){var n=Ae(PA,{__v:e,h:t});return n.containerInfo=t,n}(cn.prototype=new st).__a=function(e){var t=this,n=wi(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),xi(t,e,r)):o()};n?n(i):i()}},cn.prototype.render=function(e){this.i=null,this.l=new Map;var t=yt(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},cn.prototype.componentDidUpdate=cn.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){xi(e,n,t)})};var Ei=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,DA=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,SA=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,BA=/[A-Z0-9]/g,IA=typeof document<"u",TA=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function _i(e,t,n){return t.__k==null&&(t.textContent=""),An(e,t),typeof n=="function"&&n(),e?e.__c:null}function QA(e,t,n){return $o(e,t),typeof n=="function"&&n(),e?e.__c:null}st.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(st.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var ki=X.event;function MA(){}function OA(){return this.cancelBubble}function NA(){return this.defaultPrevented}X.event=function(e){return ki&&(e=ki(e)),e.persist=MA,e.isPropagationStopped=OA,e.isDefaultPrevented=NA,e.nativeEvent=e};var wr,LA={enumerable:!1,configurable:!0,get:function(){return this.class}},Pi=X.vnode;X.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")===-1;for(var s in n){var A=n[s];if(!(s==="value"&&"defaultValue"in n&&A==null||IA&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var a=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&A===!0?A="":a==="translate"&&A==="no"?A=!1:a[0]==="o"&&a[1]==="n"?a==="ondoubleclick"?s="ondblclick":a!=="onchange"||r!=="input"&&r!=="textarea"||TA(n.type)?a==="onfocus"?s="onfocusin":a==="onblur"?s="onfocusout":SA.test(s)&&(s=a):a=s="oninput":i&&DA.test(s)?s=s.replace(BA,"-$&").toLowerCase():A===null&&(A=void 0),a==="oninput"&&o[s=a]&&(s="oninputCapture"),o[s]=A}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=yt(n.children).forEach(function(l){l.props.selected=o.value.indexOf(l.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=yt(n.children).forEach(function(l){l.props.selected=o.multiple?o.defaultValue.indexOf(l.props.value)!=-1:o.defaultValue==l.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",LA)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=Ei,Pi&&Pi(e)};var Ci=X.__r;X.__r=function(e){Ci&&Ci(e),wr=e.__c};var Di=X.diffed;X.diffed=function(e){Di&&Di(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),wr=null};var RA={ReactCurrentDispatcher:{current:{readContext:function(e){return wr.__n[e.__c].props.value},useCallback:G,useContext:Ve,useDebugValue:ai,useDeferredValue:pi,useEffect:J,useId:si,useImperativeHandle:In,useInsertionEffect:hi,useLayoutEffect:ln,useMemo:_e,useReducer:hr,useRef:oe,useState:ee,useSyncExternalStore:ui,useTransition:fi}}};function HA(e){return Ae.bind(null,e)}function Tt(e){return!!e&&e.$$typeof===Ei}function UA(e){return Tt(e)&&e.type===le}function FA(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function zA(e){return Tt(e)?mA.apply(null,arguments):e}function Si(e){return!!e.__k&&(An(null,e),!0)}function jA(e){return e&&(e.base||e.nodeType===1&&e)||null}var qA=function(e,t){return e(t)},WA=function(e,t){return e(t)},GA=le,YA=Tt,M={useState:ee,useId:si,useReducer:hr,useEffect:J,useLayoutEffect:ln,useInsertionEffect:hi,useTransition:fi,useDeferredValue:pi,useSyncExternalStore:ui,startTransition:di,useRef:oe,useImperativeHandle:In,useMemo:_e,useCallback:G,useContext:Ve,useDebugValue:ai,version:"18.3.1",Children:xA,render:_i,hydrate:QA,unmountComponentAtNode:Si,createPortal:CA,createElement:Ae,createContext:nt,createFactory:HA,cloneElement:zA,createRef:zo,Fragment:le,isValidElement:Tt,isElement:YA,isFragment:UA,isMemo:FA,findDOMNode:jA,Component:st,PureComponent:br,memo:bA,forwardRef:Re,flushSync:WA,unstable_batchedUpdates:qA,StrictMode:GA,Suspense:Qn,SuspenseList:cn,lazy:_A,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:RA},KA=0;function _(e,t,n,r,o,i){t||(t={});var s,A,a=t;if("ref"in a)for(A in a={},t)A=="ref"?s=t[A]:a[A]=t[A];var l={type:e,props:a,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--KA,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(s=e.defaultProps))for(A in s)a[A]===void 0&&(a[A]=s[A]);return X.vnode&&X.vnode(l),l}function XA(e){return{render:function(t){_i(t,e)},unmount:function(){Si(e)}}}var VA="diffed",Bi="__c",xr="__s",Wt="__c",Ii="__k",Er="__d",Gt="__s",Ti=/[\s\n\\/='"\0<>]/,Qi=/^(xlink|xmlns|xml)([A-Z])/,$A=/^(?:accessK|auto[A-Z]|cell|ch|col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|src[A-Z]|tabI|useM|item[A-Z])/,JA=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,ZA=new Set(["draggable","spellcheck"]);function Mi(e){e.__g!==void 0?e.__g|=8:e[Er]=!0}function el(e){e.__g!==void 0?e.__g&=-9:e[Er]=!1}function Oi(e){return e.__g!==void 0?!!(8&e.__g):e[Er]===!0}var tl=/["&<]/;function Mn(e){if(e.length===0||tl.test(e)===!1)return e;for(var t=0,n=0,r="",o="";n<e.length;n++){switch(e.charCodeAt(n)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}n!==t&&(r+=e.slice(t,n)),r+=o,t=n+1}return n!==t&&(r+=e.slice(t,n)),r}var Ni={},nl=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),rl=/[A-Z]/g;function ol(e){var t="";for(var n in e){var r=e[n];if(r!=null&&r!==""){var o=n[0]=="-"?n:Ni[n]||(Ni[n]=n.replace(rl,"-$&").toLowerCase()),i=";";typeof r!="number"||o.startsWith("--")||nl.has(o)||(i="px;"),t=t+o+":"+r+i}}return t||void 0}function Li(){this.__d=!0}function il(e,t){return{__v:e,context:t,props:e.props,setState:Li,forceUpdate:Li,__d:!0,__h:new Array(0)}}var _r,Qt,un,dn,kr={},Ri=[],Yt=Array.isArray,Pr=Object.assign,He="",Cr="<!--$s-->",Dr="<!--/$s-->";function Hi(e,t,n){var r=X[xr];X[xr]=!0,_r=X.__b,Qt=X[VA],un=X.__r,dn=X.unmount;var o=Ae(le,null);o[Ii]=[e];try{var i=Et(e,t||kr,!1,void 0,o,!1,n);return Yt(i)?i.join(He):i}catch(s){throw s.then?new Error('Use "renderToStringAsync" for suspenseful rendering.'):s}finally{X[Bi]&&X[Bi](e,Ri),X[xr]=r,Ri.length=0}}function Ui(e,t){var n,r=e.type,o=!0;return e[Wt]?(o=!1,(n=e[Wt]).state=n[Gt]):n=new r(e.props,t),e[Wt]=n,n.__v=e,n.props=e.props,n.context=t,Mi(n),n.state==null&&(n.state=kr),n[Gt]==null&&(n[Gt]=n.state),r.getDerivedStateFromProps?n.state=Pr({},n.state,r.getDerivedStateFromProps(n.props,n.state)):o&&n.componentWillMount?(n.componentWillMount(),n.state=n[Gt]!==n.state?n[Gt]:n.state):!o&&n.componentWillUpdate&&n.componentWillUpdate(),un&&un(e),n.render(n.props,n.state,t)}function Et(e,t,n,r,o,i,s){if(e==null||e===!0||e===!1||e===He)return He;var A=typeof e;if(A!="object")return A=="function"?He:A=="string"?Mn(e):e+He;if(Yt(e)){var a,l=He;o[Ii]=e;for(var c=e.length,u=0;u<c;u++){var d=e[u];if(d!=null&&typeof d!="boolean"){var p,h=Et(d,t,n,r,o,i,s);typeof h=="string"?l+=h:(a||(a=new Array(c)),l&&a.push(l),l=He,Yt(h)?(p=a).push.apply(p,h):a.push(h))}}return a?(l&&a.push(l),a):l}if(e.constructor!==void 0)return He;e.__=o,_r&&_r(e);var m=e.type,f=e.props;if(typeof m=="function"){var b,y,g,x=t;if(m===le){if("tpl"in f){for(var k=He,E=0;E<f.tpl.length;E++)if(k+=f.tpl[E],f.exprs&&E<f.exprs.length){var C=f.exprs[E];if(C==null)continue;typeof C!="object"||C.constructor!==void 0&&!Yt(C)?k+=C:k+=Et(C,t,n,r,e,i,s)}return k}if("UNSTABLE_comment"in f)return"<!--"+Mn(f.UNSTABLE_comment)+"-->";y=f.children}else{if((b=m.contextType)!=null){var I=t[b.__c];x=I?I.props.value:b.__}var D=m.prototype&&typeof m.prototype.render=="function";if(D)y=Ui(e,x),g=e[Wt];else{e[Wt]=g=il(e,x);for(var P=0;Oi(g)&&P++<25;){el(g),un&&un(e);try{y=m.call(g,f,x)}catch(w){throw w}}Mi(g)}if(g.getChildContext!=null&&(t=Pr({},t,g.getChildContext())),D&&X.errorBoundaries&&(m.getDerivedStateFromError||g.componentDidCatch)){y=y!=null&&y.type===le&&y.key==null&&y.props.tpl==null?y.props.children:y;try{return Et(y,t,n,r,e,i,!1)}catch(w){return m.getDerivedStateFromError&&(g[Gt]=m.getDerivedStateFromError(w)),g.componentDidCatch&&g.componentDidCatch(w,kr),Oi(g)?(y=Ui(e,t),(g=e[Wt]).getChildContext!=null&&(t=Pr({},t,g.getChildContext())),Et(y=y!=null&&y.type===le&&y.key==null&&y.props.tpl==null?y.props.children:y,t,n,r,e,i,s)):He}finally{Qt&&Qt(e),dn&&dn(e)}}}y=y!=null&&y.type===le&&y.key==null&&y.props.tpl==null?y.props.children:y;try{var S=Et(y,t,n,r,e,i,s);return Qt&&Qt(e),X.unmount&&X.unmount(e),e._suspended?typeof S=="string"?Cr+S+Dr:Yt(S)?(S.unshift(Cr),S.push(Dr),S):S.then(function(w){return Cr+w+Dr}):S}catch(w){if(s&&s.onError){var B=s.onError(w,e,function(W,re){return Et(W,t,n,r,re,i,s)});if(B!==void 0)return B;var L=X.__e;return L&&L(w,e),He}throw w}}var R,Q="<"+m,z=He;for(var N in f){var H=f[N];if(typeof(H=sl(H)?H.value:H)!="function"||N==="class"||N==="className"){switch(N){case"children":R=H;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in f)continue;N="for";break;case"className":if("class"in f)continue;N="class";break;case"defaultChecked":N="checked";break;case"defaultSelected":N="selected";break;case"defaultValue":case"value":switch(N="value",m){case"textarea":R=H;continue;case"select":r=H;continue;case"option":r!=H||"selected"in f||(Q+=" selected")}break;case"dangerouslySetInnerHTML":z=H&&H.__html;continue;case"style":typeof H=="object"&&(H=ol(H));break;case"acceptCharset":N="accept-charset";break;case"httpEquiv":N="http-equiv";break;default:if(Qi.test(N))N=N.replace(Qi,"$1:$2").toLowerCase();else{if(Ti.test(N))continue;N[4]!=="-"&&!ZA.has(N)||H==null?n?JA.test(N)&&(N=N==="panose1"?"panose-1":N.replace(/([A-Z])/g,"-$1").toLowerCase()):$A.test(N)&&(N=N.toLowerCase()):H+=He}}H!=null&&H!==!1&&(Q=H===!0||H===He?Q+" "+N:Q+" "+N+'="'+(typeof H=="string"?Mn(H):H+He)+'"')}}if(Ti.test(m))throw new Error(m+" is not a valid HTML tag name in "+Q+">");if(z||(typeof R=="string"?z=Mn(R):R!=null&&R!==!1&&R!==!0&&(z=Et(R,t,m==="svg"||m!=="foreignObject"&&n,r,e,i,s))),Qt&&Qt(e),dn&&dn(e),!z&&al.has(m))return Q+"/>";var v="</"+m+">",q=Q+">";return Yt(z)?[q].concat(z,[v]):typeof z!="string"?[q,z,v]:q+z+v}var al=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function sl(e){return e!==null&&typeof e=="object"&&typeof e.peek=="function"&&"value"in e}const Al={renderToString:Hi,renderToStaticMarkup:Hi};function Fi(e,t){t===void 0&&(t={});var n=t.insertAt;if(e&&typeof document<"u"){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",n==="top"&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}Fi('.rcb-chat-header-container{border-bottom:1px solid #ccc;color:#fff;display:flex;justify-content:space-between;max-height:55px;padding:12px}.rcb-chat-header{display:flex;flex-direction:row}.rcb-bot-avatar{background-size:cover;border-radius:50%;height:30px;margin-right:12px;width:30px}.rcb-message-prompt-container.visible{align-items:center;animation:rcb-animation-pop-in .3s ease-in-out;bottom:0;display:flex;justify-content:center;margin:auto;opacity:1;pointer-events:auto;position:sticky}.rcb-message-prompt-container.hidden{height:0;opacity:0;pointer-events:none;visibility:hidden}.rcb-message-prompt-text{background-color:#fff;border:.5px solid #adadad;border-radius:20px;color:#adadad;cursor:pointer;font-size:12px;padding:6px 12px;transition:color .3s ease,border-color .3s ease;z-index:9999}.rcb-message-prompt-container.hidden .rcb-message-prompt-text{padding:0}.rcb-user-message-container{display:flex;flex-direction:row;justify-content:right}.rcb-user-message{border-radius:22px;font-size:15px;height:fit-content;margin-right:16px;margin-top:8px;min-height:20px;overflow:auto;overflow-wrap:anywhere;padding:12px 16px;text-align:right;white-space:pre-wrap;width:fit-content}.rcb-user-message-offset{margin-right:50px}.rcb-user-message-entry{animation:rcb-animation-user-message-entry .3s ease-in backwards}.rcb-message-user-avatar{background-size:cover;border-radius:50%;height:40px;margin-left:-10px;margin-right:6px;margin-top:9px;width:40px}.rcb-bot-message-container{display:flex;flex-direction:row}.rcb-bot-message{border-radius:22px;font-size:15px;height:fit-content;margin-left:16px;margin-top:8px;min-height:20px;overflow:auto;overflow-wrap:anywhere;padding:12px 16px;text-align:left;white-space:pre-wrap;width:fit-content}.rcb-bot-message-offset{margin-left:50px}.rcb-bot-message-entry{animation:rcb-animation-bot-message-entry .3s ease-in backwards}.rcb-message-bot-avatar{background-size:cover;border-radius:50%;height:40px;margin-left:6px;margin-right:-10px;margin-top:9px;width:40px}.rcb-typing-indicator{align-items:center;display:flex}.rcb-dot{animation:rcb-animation-bot-typing 1s infinite;background-color:#ccc;border-radius:50%;height:8px;margin-right:4px;width:8px}.rcb-dot:nth-child(2){animation-delay:.2s}.rcb-dot:nth-child(3){animation-delay:.4s}.rcb-chat-body-container{height:100%;overflow-x:hidden;overflow-y:scroll;padding-bottom:16px;position:relative;touch-action:pan-y;width:100%}.rcb-chat-body-container::-webkit-scrollbar-track{background-color:#f1f1f1}.rcb-chat-body-container::-webkit-scrollbar-thumb{background-color:#ddd;border-radius:4px}.rcb-chat-body-container::-webkit-scrollbar-thumb:hover{background-color:#cfcfcf}.rcb-chat-body-container::-webkit-scrollbar-corner{background-color:#f1f1f1}.rcb-checkbox-container{display:flex;flex-wrap:wrap;gap:10px;margin-left:16px;padding-top:12px}.rcb-checkbox-offset{margin-left:50px!important}.rcb-checkbox-row-container{align-items:center;animation:rcb-animations-checkboxes-entry .5s ease-out;background-color:#fff;border-radius:10px;border-style:solid;border-width:.5px;cursor:pointer;display:flex;gap:5px;max-height:32px;min-height:30px;overflow:hidden;width:80%}.rcb-checkbox-row-container:hover{box-shadow:0 0 5px #0003}.rcb-checkbox-row{align-items:center;cursor:pointer;display:inline-flex;margin-left:10px}.rcb-checkbox-mark{align-items:center;background-color:#f2f2f2;border:none;border-radius:50%;cursor:pointer;display:flex;height:20px;justify-content:center;margin-right:10px;transition:all .3s ease;width:20px}.rcb-checkbox-mark:hover{background-color:#c2c2c2}.rcb-checkbox-mark:before{content:"✓";transition:all .3s ease}.rcb-checkbox-label{font-size:14px}.rcb-checkbox-next-button{align-items:center;animation:rcb-animations-checkboxes-entry .5s ease-out;background-color:#fff;border-radius:10px;border-style:solid;border-width:.5px;cursor:pointer;display:inline-block;font-size:24px;max-height:32px;min-height:30px;text-align:center;width:80%}.rcb-checkbox-next-button:before{content:"→"}.rcb-checkbox-next-button:hover{box-shadow:0 0 5px #0003}.rcb-options-container{display:flex;flex-wrap:wrap;gap:10px;margin-left:16px;max-width:70%;padding-top:12px}.rcb-options-offset{margin-left:50px!important}.rcb-options{align-items:center;animation:rcb-animation-options-entry .5s ease-out;border-radius:20px;border-style:solid;border-width:.5px;cursor:pointer;display:inline-flex;font-size:14px;justify-content:center;overflow:hidden;padding:10px 20px;transition:background-color .3s ease}.rcb-options:hover{box-shadow:0 0 5px #0003}.rcb-line-break-container{align-items:center;display:flex;justify-content:center;max-height:45px;padding-bottom:5px;padding-top:10px}.rcb-line-break-text{color:#adadad;font-size:12px;padding:6px 12px}.rcb-spinner-container{align-items:center;display:flex;justify-content:center;max-height:45px;min-height:35px;padding-bottom:5px;padding-top:10px}.rcb-spinner{animation:rcb-animation-spin 1s linear infinite;border:4px solid #f3f3f3;border-radius:50%;height:22px;width:22px}.rcb-chat-input{align-items:center;background-color:#fff;border-top:1px solid #ccc;display:flex;padding:8px 16px}.rcb-chat-input::placeholder{color:#999}.rcb-chat-input-textarea{background-color:#fff;border:none;border-radius:4px;color:#000;flex:1;font-family:inherit;font-size:16px;height:auto;min-height:38px;outline:none;overflow-y:scroll;padding:8px;resize:none;touch-action:none}.rcb-chat-input-textarea::-webkit-scrollbar,.rcb-chat-input-textarea::-webkit-scrollbar-thumb{background-color:initial}.rcb-chat-input-textarea::-webkit-scrollbar-thumb:hover{background-color:initial}.rcb-chat-input-char-counter{font-size:14px;margin-left:8px;margin-top:3px}.rcb-chat-footer-container{align-items:flex-end;background-color:#f2f2f2;border-top:1px solid #ccc;color:#000;display:flex;font-size:12px;justify-content:space-between;max-height:55px;padding:12px 16px 8px 10px}.rcb-chat-footer,.rcb-toggle-button{display:flex;flex-direction:row}.rcb-toggle-button{border:none;border-radius:50%;bottom:20px;box-shadow:0 2px 4px #0003;cursor:pointer;height:75px;position:fixed;right:20px;width:75px;z-index:9999}.rcb-toggle-button.rcb-button-hide{animation:rcb-animation-collapse .3s ease-in-out forwards;opacity:0;visibility:hidden}.rcb-toggle-button.rcb-button-show{animation:rcb-animation-expand .3s ease-in-out forwards;opacity:1;visibility:visible}.rcb-toggle-icon{background-position:50%;background-repeat:no-repeat;background-size:cover;border-radius:inherit;height:100%;margin:auto;width:100%}.rcb-badge,.rcb-toggle-icon{align-items:center;display:flex;justify-content:center}.rcb-badge{background-color:red;border-radius:50%;color:#fff;height:25px;position:absolute;right:-6px;top:-6px;width:25px}.rcb-chat-tooltip{border-radius:20px;box-shadow:0 2px 6px #0003;cursor:pointer;font-size:20px;padding:16px;position:fixed;transition:transform .3s ease;white-space:nowrap;z-index:9999}.rcb-chat-tooltip-tail{border-style:solid;border-width:10px 0 10px 10px;content:"";margin-top:-10px;position:absolute;right:-10px;top:50%}.rcb-chat-tooltip.rcb-tooltip-hide{animation:rcb-animation-tooltip-out .5s ease-in-out;opacity:0;visibility:hidden}.rcb-chat-tooltip.rcb-tooltip-show{animation:rcb-animation-tooltip-in .5s ease-in-out;opacity:1;visibility:visible}.rcb-toast-prompt{animation:rcb-animation-pop-in .3s ease-in-out;background-color:#fff;border:.5px solid #7a7a7a;border-radius:5px;color:#7a7a7a;cursor:pointer;font-size:12px;margin-top:6px;padding:6px 12px;text-align:center;transition:color .3s ease,border-color .3s ease;width:100%;z-index:9999}.rcb-toast-prompt-container{align-items:center;animation:popIn .3s ease-in-out;bottom:0;display:flex;flex-direction:column;justify-content:flex-end;left:50%;margin:200 auto auto;opacity:1;pointer-events:auto;position:absolute;transform:translate(-50%)}.rcb-media-display-image-container,.rcb-media-display-video-container{border-radius:22px;margin-right:16px;margin-top:8px;padding:16px;width:fit-content}.rcb-media-display-offset{margin-right:50px!important}.rcb-media-display-image{border-radius:22px;height:auto;object-fit:cover;width:100%}.rcb-media-display-video{background-color:#000;border-radius:22px;height:auto;width:100%}.rcb-media-display-audio{border-radius:22px;height:auto;margin-right:16px;margin-top:8px;width:100%}.rcb-media-entry{animation:rcb-animation-user-message-entry .3s ease-in backwards}.rcb-attach-button-disabled,.rcb-attach-button-enabled{background-size:cover;border-radius:6px;display:inline-block;height:30px;position:relative;text-align:center;width:30px}.rcb-attach-button-disabled input[type=file],.rcb-attach-button-enabled input[type=file]{display:none;height:100%;position:absolute;width:100%}.rcb-attach-button-enabled{cursor:pointer}.rcb-attach-button-disabled{opacity:.5}.rcb-attach-button-enabled:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-attach-button-enabled:hover:after{height:130%;opacity:1;width:130%}.rcb-attach-icon-disabled,.rcb-attach-icon-enabled{background-repeat:no-repeat;background-size:cover;display:inline-block;height:24px;margin-top:2px;transition:background-image .3s ease;width:24px}.rcb-attach-icon-enabled{cursor:pointer}.rcb-emoji-button-disabled,.rcb-emoji-button-enabled{background-size:cover;border-radius:6px;cursor:pointer;display:inline-block;height:30px;position:relative;text-align:center;width:30px}.rcb-emoji-icon-disabled,.rcb-emoji-icon-enabled{background-repeat:no-repeat;background-size:cover;display:inline-block;font-size:20px;height:24px;margin-top:2px;position:relative;width:24px}.rcb-emoji-icon-enabled{cursor:pointer}.rcb-emoji-icon-disabled{opacity:.5}.rcb-emoji-button-enabled:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-emoji-button-enabled:hover:after{height:130%;opacity:1;width:130%}.rcb-emoji-button-popup{background-color:#fff;border:1px solid #ccc;border-radius:4px;box-shadow:0 2px 4px #0003;max-height:200px;overflow-y:auto;padding:8px;position:absolute;transform:translateY(calc(-100% - 30px));width:158px}.rcb-emoji{cursor:pointer;font-size:24px;padding:3px;transition:transform .2s ease-in-out}.rcb-emoji:hover{transform:scale(1.2)}.rcb-audio-icon{background-size:cover;border:none;cursor:pointer;display:inline-block;height:30px;margin-left:5px;position:relative;width:30px}.rcb-audio-icon:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-audio-icon:hover:after{height:130%;opacity:1;width:130%}.rcb-close-chat-icon{background-size:cover;border:none;cursor:pointer;display:inline-block;height:30px;margin-left:5px;position:relative;width:30px}.rcb-close-chat-icon:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-close-chat-icon:hover:after{height:130%;opacity:1;width:130%}.rcb-notification-icon{background-size:cover;border:none;cursor:pointer;display:inline-block;height:30px;margin-left:5px;position:relative;width:30px}.rcb-notification-icon:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-notification-icon:hover:after{height:130%;opacity:1;width:130%}.rcb-voice-button-disabled,.rcb-voice-button-enabled{align-items:center;background-color:#fff;border-radius:4px;box-shadow:0 0 3px #0000004d;cursor:pointer;display:inline-flex;height:32px;justify-content:center;margin-left:8px;text-transform:uppercase;transition:all .3s ease;width:32px}.rcb-voice-button-enabled{border:1px solid red;box-shadow:0 0 3px #ff000080}.rcb-voice-button-enabled:hover{border:1px solid #3d0000}.rcb-voice-button-disabled{border:1px;border-color:#0003;border-style:solid}.rcb-voice-button-disabled:hover{box-shadow:0 0 3px #8a0000}.rcb-voice-icon{background-position:50%;background-repeat:no-repeat;background-size:cover;background-size:contain;height:60%;object-fit:cover;width:60%}.rcb-voice-icon.on{animation:rcb-animation-ping 1s infinite}.rcb-send-button{border:none;border-radius:4px;box-shadow:0 0 3px #0000004d;cursor:pointer;display:inline-flex;height:32px;justify-content:center;margin-left:8px;text-transform:uppercase;transition:background-color .3s ease;width:51px}.rcb-send-icon{background-position:50%;background-repeat:no-repeat;background-size:cover;background-size:contain;height:50%;object-fit:cover;transform:translateY(20%);width:50%}.rcb-view-history-container{align-items:center;display:flex;justify-content:center;max-height:45px;min-height:35px;padding-bottom:5px;padding-top:10px}.rcb-view-history-button{align-items:center;background-color:#fff;border:.5px solid #adadad;border-radius:20px;color:#adadad;cursor:pointer;display:inline-flex;font-size:12px;justify-content:center;max-width:60%;padding:6px 12px;transition:color .3s ease,border-color .3s ease}.rcb-view-history-button>p{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rcb-chatbot-global{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.5;z-index:9999}.rcb-chat-window{background-color:#fff;border-radius:10px;bottom:20px;box-shadow:0 2px 4px #0003;display:flex;flex-direction:column;height:550px;overflow:hidden;position:fixed;right:20px;transition:all .3s ease;width:375px}.rcb-window-embedded .rcb-chat-window{bottom:auto;opacity:1;position:relative;right:auto;visibility:visible}.rcb-window-open .rcb-chat-window{animation:rcb-animation-expand .3s ease-in-out forwards;opacity:1;visibility:visible}.rcb-window-close .rcb-chat-window{animation:rcb-animation-collapse .3s ease-in-out forwards;opacity:0;visibility:hidden}@keyframes rcb-animation-expand{0%{opacity:0;transform:translate(100%,100%) scale(0)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes rcb-animation-collapse{0%{opacity:1;transform:translate(0) scale(1)}to{opacity:0;transform:translate(100%,100%) scale(0)}}@keyframes rcb-animation-ping{0%{filter:brightness(100%);opacity:1}50%{filter:brightness(50%);opacity:.8}}@keyframes rcb-animation-bot-message-entry{0%{opacity:0;transform:translate(-100%,50%) scale(0)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes rcb-animation-user-message-entry{0%{opacity:0;transform:translate(100%,50%) scale(0)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes rcb-animation-bot-typing{0%{opacity:.4}50%{opacity:1}to{opacity:.4}}@keyframes rcb-animation-pop-in{0%{opacity:0;transform:scale(.8)}70%{opacity:1;transform:scale(1.1)}to{transform:scale(1)}}@keyframes rcb-animations-checkboxes-entry{0%{opacity:0;transform:translate(-100%)}to{opacity:1;transform:translate(0)}}@keyframes rcb-animation-options-entry{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes rcb-animation-tooltip-in{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}@keyframes rcb-animation-tooltip-out{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-5px)}}@keyframes rcb-animation-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}',{insertAt:"top"});const we={AUDIO_BUTTON:"audio-button",NOTIFICATION_BUTTON:"notification-button",CLOSE_CHAT_BUTTON:"close-chat-button",SEND_MESSAGE_BUTTON:"send-button",VOICE_MESSAGE_BUTTON:"voice-button",FILE_ATTACHMENT_BUTTON:"file-attachment-button",EMOJI_PICKER_BUTTON:"emoji-button"},zi="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20viewBox='0%200%201000%201000'%3e%3crect%20width='100%25'%20height='100%25'%20fill='%23fff'/%3e%3cg%3e%3crect%20width='45'%20height='30'%20x='-22.5'%20y='-15'%20rx='1.5'%20ry='1.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2337547a;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20-99%20362)%20scale(3.4003)'/%3e%3cpath%20d='M0%2075q14%200%2014%2017%200%2016-14%2016Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='rotate(180%20106%20386)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='4'%20x='-12.5'%20y='-2'%20rx='.2'%20ry='.2'%20style='stroke:%2346648c;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20-46%20282)%20scale(3.4003)'/%3e%3cpath%20d='M19%2065h4l5%204v1H14v-1Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='2'%20x='-12.5'%20y='-1'%20rx='.1'%20ry='.1'%20style='stroke:%2398b0ca;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20-3%20240)%20scale(3.4003)'/%3e%3ccircle%20r='7.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(236%20175)%20scale(3.4003)'/%3e%3crect%20width='45'%20height='30'%20x='-22.5'%20y='-15'%20rx='1.5'%20ry='1.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2337547a;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20139%20600)%20scale(3.4003)'/%3e%3cpath%20d='M184%2075q14%200%2014%2017%200%2016-14%2016Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='4'%20x='-12.5'%20y='-2'%20rx='.2'%20ry='.2'%20style='stroke:%2346648c;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20219%20548)%20scale(3.4003)'/%3e%3cpath%20d='M175%2065h4l5%204v1h-14v-1Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='2'%20x='-12.5'%20y='-1'%20rx='.1'%20ry='.1'%20style='stroke:%2398b0ca;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20262%20505)%20scale(3.4003)'/%3e%3ccircle%20r='7.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(767%20175)%20scale(3.4003)'/%3e%3crect%20width='116.7'%20height='70'%20x='-58.4'%20y='-35'%20rx='31.5'%20ry='31.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2371c9fc;fill-rule:nonzero;opacity:1'%20transform='translate(502%20877)%20scale(3.4003)'/%3e%3crect%20width='60'%20height='20'%20x='-30'%20y='-10'%20rx='3'%20ry='3'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2337547a;fill-rule:nonzero;opacity:1'%20transform='translate(502%20728)%20scale(3.4003)'/%3e%3ccircle%20r='75'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2371c9fc;fill-rule:nonzero;opacity:1'%20transform='translate(502%20473)%20scale(3.4003)'/%3e%3crect%20width='129.4'%20height='82.3'%20x='-64.7'%20y='-41.1'%20rx='37'%20ry='37'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23fff;fill-rule:nonzero;opacity:1'%20transform='translate(502%20464)%20scale(3.4003)'/%3e%3crect%20width='108'%20height='68.6'%20x='-54'%20y='-34.3'%20rx='30.9'%20ry='30.9'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23162334;fill-rule:nonzero;opacity:1'%20transform='translate(502%20464)%20scale(3.4003)'/%3e%3ccircle%20r='19.4'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(415%20464)%20scale(3.4003)'/%3e%3ccircle%20r='19.4'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(591%20464)%20scale(3.4003)'/%3e%3crect%20width='96'%20height='53.2'%20x='-48'%20y='-26.6'%20rx='23.9'%20ry='23.9'%20style='stroke:%23162334;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23162334;fill-rule:nonzero;opacity:1'%20transform='translate(503%20875)%20scale(3.4003)'/%3e%3cpath%20stroke-linecap='round'%20d='m68%20215%207-15M81%20222l-7-22M81%20222l7-14M101%20208H87M114%20219l-7-24M113%20219l13-22M131%20214l-5-17M148%20214h-18M69%20214H51M100%20209l7-15'%20style='stroke:%23a478fc;stroke-width:3;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:10;is-custom-font:none;font-file-url:none;fill:none;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3c/g%3e%3c/svg%3e",ji=Re((e,t)=>Ae("svg",{viewBox:"0 0 637 637",ref:t,...e},Ae("path",{d:"m478 113-13 2-4 1h4l14-2c10-2 35-2 42-1l6 3 3 1c3 0-4-3-8-5-7-1-34-1-44 1m56 6 8 6c7 5 20 17 20 19s7 12 8 12l-3-6-4-6c0-3-15-17-25-24-5-3-8-4-4-1m-198 16-9 1a512 512 0 0 1 9-1m-180 30a412 412 0 0 0-23 4 167 167 0 0 0-32 8 439 439 0 0 1 46-9 304 304 0 0 1 11-2l6-1h-8m369 8 4 3-7-6c-1 0 0 2 3 3m-439 9c-7 3-18 13-18 15l6-5c5-5 9-8 14-10l6-4-8 4m442 12-10 11-7 6 7-6c7-5 14-14 13-16l-3 5M65 205l-1 11c0 9 0 10 4 17 5 10 7 12 22 11 10 0 15 0 38-5l5-1-6 1-16 2-21 2c-13 1-16-1-21-10-3-5-4-6-4-15l1-12c1-4 1-5-1-1m335 1c3 0 3 1 3 3l-2 6c-2 5-35 39-76 80-53 51-120 117-138 137-21 24-22 25-22 27 0 3 6 9 9 9 4 0 14-8 38-27a5073 5073 0 0 1 15-16 1421 1421 0 0 0-17 15l-31 25-6 2-4-3c-3-3-3-4-2-6 3-8 79-85 160-163 57-57 79-80 79-86 0-2-3-4-7-4-2 0-2 0 1 1m165 18c-9 17-25 32-57 53l-10 8 16-11 12-8c15-10 27-22 39-39 5-7 6-8 4-8l-4 5m-221 2a199 199 0 0 0-19 10 183 183 0 0 1 27-12c0-1-1-1-8 2m-34 16c-3 3-2 3 2 0l1-2-3 2m151 3-1 2 2-2c3-3 2-3-1 0m-16 12-11 10a281 281 0 0 0 11-10m-24 18-7 5-7 5-42 31c-10 7-24 19-22 19l7-6 16-12a343 343 0 0 0 35-25 573 573 0 0 0 20-17m-187 0-2 2 4-2 3-2-5 2m-14 6-3 2 4-1 4-3-5 2m-7 3-8 4-18 8 18-7 7-3 3-1c1-2 0-2-2-1m254 24a2672 2672 0 0 1-71 54 601 601 0 0 0 39-29 1352 1352 0 0 1 32-25m-291-8-2 2 4-2 3-2-5 2m-13 5-2 2h3c5-3 4-4-1-2m-19 9-7 3-13 6c-10 5-13 7-14 10-3 4-2 5 1 0 2-3 5-5 14-9l13-6 12-6-6 2m178 36c-17 12-21 16-21 17a390 390 0 0 1 20-17m-206 34 1 4 1 3 1 5 2 8 1 5v-6l-1-8-2-5-1-4-1-2c-1-2-1-2-1 0m222 23-9 7a683 683 0 0 0-56 44 261 261 0 0 0-26 20 1345 1345 0 0 0-46 34c-6 3-7 3-19 3-11 0-12 0-18-3-8-4-10-8-17-20l-5-10 4 10c5 10 12 18 19 22 4 2 6 2 17 2 13 0 14 0 21-3l26-19 42-33a2183 2183 0 0 0 43-34 643 643 0 0 1 24-20",fill:"#fff",fillRule:"evenodd"}),Ae("path",{d:"M478 114a620 620 0 0 1-39 6l-21 3a5481 5481 0 0 0-19 3 870 870 0 0 1-54 8l-1 1-6 1-12 2-13 2a992 992 0 0 0-76 12 400 400 0 0 1-45 8l-6 1-5 1h-3l-3 1-2 1-26 4-13 2-17 3c-23 5-33 9-43 19-7 8-9 13-9 27 0 8 1 9 4 14 5 9 8 11 21 10l21-2a1133 1133 0 0 1 23-4 659 659 0 0 0 74-14l3-1h3l3-1h3l2-1 2-1h3l2-1h2l24-5 38-7a2100 2100 0 0 1 93-18l3-1 10-1a2082 2082 0 0 1 120-17l2 1c2 0 8 5 8 7l1 2 1 6c0 4 0 6-3 10-2 4-16 16-18 16l-7 5-10 8a1070 1070 0 0 0-11 7 113 113 0 0 1-20 14l-2 2-3 2-2 2h-1a154 154 0 0 1-28 21l-5 4-5 4a573 573 0 0 1-50 37 175 175 0 0 0-24 18l-1 2-2 1-2 1-2 1-1 1-12 10a396 396 0 0 0-32 25l-8 6-6 5-9 7a326 326 0 0 1-25 20l-13 12a5073 5073 0 0 0-17 15c-24 20-34 27-39 27-2 0-8-6-8-9 0-2 1-3 22-27 18-20 85-86 138-137 41-41 74-75 76-80l2-6c0-2 0-3-2-3l-7 1a233 233 0 0 1-26 9l-1 1-1 1h-1l-1 1h-2l-3 2-1 1h-2l-3 2h-1l-5 2-22 10-9 4-4 2-5 2-10 4-2 1-2 1-2 1-13 6a334 334 0 0 1-38 17 75 75 0 0 0-14 6l-5 2-4 1-2 1-3 2-7 3-16 6a247 247 0 0 0-32 14l-1 1h-2l-1 1h-2l-1 1-12 6a103 103 0 0 0-27 15l-2 5-1 1v11l1 5 1 5 1 4c0 3 0 4 2 4v3l1 3 1 2 2 10 1 4 1 5 2 10 2 8 1 4 1 4c3 3 9 25 11 38l1 7v2l1 4v1l1 1v2l1 2 1 3v1l5 10c7 13 9 16 17 20 6 3 7 3 18 3 12 0 13 0 19-3 8-4 11-6 26-18a1345 1345 0 0 1 85-67 683 683 0 0 1 50-39l12-9a513 513 0 0 1 44-33 201 201 0 0 0 22-17 2270 2270 0 0 0 73-54 158 158 0 0 0 58-59c2 0 3-9 4-27l-1-19-1-4-1-6-1-3-4-6-4-6c0-2-6-8-13-14a77 77 0 0 0-28-18c-6-1-34-1-43 1"}))),qi=Re((e,t)=>Ae("svg",{viewBox:"0 -960 960 960",ref:t,...e},Ae("path",{d:"M765-321q0 117-84 196-83 80-200 80-118 0-200-80t-83-196v-392q0-85 61-144 61-58 146-58 86 0 147 58 61 59 61 144v374q0 54-39 92-39 37-93 37-55 0-93-37-38-38-38-92v-372h110v372q0 9 6 14t15 5q8 0 15-5t7-14v-374q0-39-29-66t-68-27q-40 0-69 27t-29 66v392q0 71 51 119t122 48q71 0 122-48t51-119v-426h111v426Z"}))),ll=Re((e,t)=>Ae("svg",{viewBox:"0 -960 960 960",ref:t,...e},Ae("path",{d:"M125-165v-113h77v-273q0-93 55-167 56-75 146-100v-19q0-32 22-55 23-23 55-23t55 23q22 23 22 55v19q90 25 146 99 56 73 56 168v273h77v113H125ZM480-32q-38 0-66-27-27-27-27-66h186q0 39-27 66t-66 27Z"}))),cl=Re((e,t)=>Ae("svg",{viewBox:"0 -960 960 960",ref:t,...e},Ae("path",{d:"M137-190v-113h78v-253q0-41 11-79 11-39 35-71l-9 150h10L17-802l74-74L873-92l-74 74-175-172H137Zm609-149L319-769q20-15 41-25t44-16v-28q0-32 22-54t54-22q32 0 55 22t22 54v28q85 23 137 94t52 160v217ZM481-47q-38 0-65-27t-27-65h184q0 38-27 65t-65 27Z"}))),ul=Re((e,t)=>Ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",ref:t,...e},Ae("g",{strokeLinecap:"round",strokeWidth:10},Ae("path",{d:"m19 19 61 61M80 19 19 80"})))),dl=Re((e,t)=>Ae("svg",{viewBox:"0 -960 960 960",ref:t,...e},Ae("path",{d:"M94-136v-255l351-93-351-92v-253l816 346L94-136Z"}))),pl=Re((e,t)=>Ae("svg",{viewBox:"0 -960 960 960",ref:t,...e},Ae("path",{d:"M480-372q-61 0-105-43-43-43-43-105v-240q0-61 43-105 43-43 105-43 61 0 105 43 43 44 43 105v240q0 62-43 105t-105 43ZM425-76v-122q-121-16-197-108t-76-214h109q0 91 64 154t155 63q91 0 155-63t64-154h109q0 122-77 214T534-198v122H425Z"}))),fl=Re((e,t)=>Ae("svg",{viewBox:"0 -960 960 960",ref:t,...e},Ae("path",{d:"m763-343-80-79q8-20 13-44 5-23 5-54h109q0 49-11 95t-36 82ZM625-482 336-770v-2q3-56 45-96t101-40q62 0 105 43t43 105v249l-1 17q-1 7-4 12ZM427-76v-122q-120-16-196-108-77-92-77-214h109q0 91 64 154t155 63q43 0 80-14 37-15 67-41l78 79q-35 32-78 53t-93 28v122H427Zm362 27L41-796l75-75 748 748-75 74Z"}))),Wi=Re((e,t)=>Ae("svg",{viewBox:"0 -960 960 960",ref:t,...e},Ae("path",{d:"M625-511q29 0 50-21t20-50q0-29-20-50-21-20-50-20t-50 20-20 50q0 29 20 50 21 21 50 21Zm-290 0q29 0 50-21t20-49q0-30-20-50t-50-21q-29 0-50 20-20 21-20 50 0 30 20 50 21 21 50 21Zm145 268q75 0 137-43t85-115H258q24 72 85 115 62 43 137 43Zm0 198q-90 0-170-34-79-34-138-93T79-310q-34-80-34-170t34-170q34-79 93-138t138-93q80-34 170-34t170 34q79 34 138 93t93 138q34 80 34 170t-34 170q-34 79-93 138T650-79q-80 34-170 34Zm0-435Zm0 322q134 0 228-94t94-228q0-134-94-228t-228-94q-134 0-228 94t-94 228q0 134 94 228t228 94Z"}))),hl=Re((e,t)=>Ae("svg",{viewBox:"0 -960 960 960",ref:t,...e},Ae("path",{d:"M553-64v-108q107-27 173-113 67-87 67-197 0-109-67-195T553-789v-108q152 26 249 144 97 117 97 271 0 155-97 273T553-64ZM61-335v-290h176l236-237v764L237-335H61Zm492 28v-346q51 23 82 70t31 103-31 103q-31 47-82 70Z"}))),gl=Re((e,t)=>Ae("svg",{viewBox:"0 -960 960 960",ref:t,...e},Ae("path",{d:"M807-15 700-123q-33 21-71 37-38 15-80 22v-108q20-4 38-12l35-17-153-154v257L234-335H57v-290h144L10-818l74-75L882-90l-75 75Zm37-264-80-79q13-30 19-60 7-31 7-64 0-109-68-195-67-86-173-112v-108q152 26 249 144 98 117 98 271 0 55-14 107-13 51-38 96ZM661-462 549-575v-78q51 23 83 70 31 47 31 103l-1 9-1 9ZM469-655 366-759l103-103v207Z"}))),Gi={general:{primaryColor:"#42b0c5",secondaryColor:"#491d8d",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",showHeader:!0,showFooter:!0,showInputRow:!0,actionDisabledIcon:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2042%2042'%3e%3cpath%20style='fill:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke:%23b00000;stroke-opacity:1;stroke-miterlimit:4'%20d='M17%209a8%208%200%200%201-8%208%208%208%200%200%201-8-8%208%208%200%200%201%208-8%208%208%200%200%201%208%208Zm0%200'%20transform='rotate(.086)%20scale(1.77778)'/%3e%3cpath%20style='fill:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke:%23b00000;stroke-opacity:1;stroke-miterlimit:10'%20d='M14.66%2014.66%203.34%203.34'%20transform='rotate(.086)%20scale(1.77778)'/%3e%3c/svg%3e",embedded:!1,flowStartTrigger:"ON_LOAD"},tooltip:{mode:"CLOSE",text:"Talk to me! 😊"},chatButton:{icon:ji},header:{title:_("div",{style:{cursor:"pointer",margin:0,fontSize:20,fontWeight:"bold"},onClick:()=>window.open("https://github.com/tjtanjin/"),children:"Tan Jin"}),showAvatar:!0,avatar:zi,buttons:[we.NOTIFICATION_BUTTON,we.AUDIO_BUTTON,we.CLOSE_CHAT_BUTTON],closeChatIcon:ul},notification:{disabled:!1,defaultToggledOn:!0,volume:.2,icon:ll,iconDisabled:cl,sound:"data:audio/wav;base64,UklGRmaIAABXQVZFZm10IBAAAAABAAIAQB8AAAB9AAAEABAATElTVBoAAABJTkZPSVNGVA4AAABMYXZmNjAuMTYuMTAwAGRhdGEgiAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////AAAAAAAA//////7/////////AAABAAAAAgABAAEAAQAAAAIAAQABAP//AAD+////AAD+//7////+////AAD//wAA/v8AAAAA/v8AAP//AAAAAAAAAgD////////+////AAABAAEAAgD/////AQABAAAA//8CAP//AAAAAAAA/v8AAAAA//8AAAEA//8EAAAAAAAAAAAA//8BAP//AQABAAEA/////wEA/v///wAAAAACAAAAAAABAAAA//8AAP//AAACAP//////////AAAAAAEAAAAAAAEA//8AAAEAAQADAAIAAgAAAAAA/v///wEAAAAAAAEAAAAAAAEA//8AAAEAAQD//wAA//8AAAEAAAABAAEAAAABAP//AAD//wAAAgAAAP//AQD/////AAAAAP7/AgAAAAIAAAAAAAAAAAABAAAAAQABAP//AAABAP///v8AAP////8AAP//AAD//wAA//8BAP//AAD///7///8BAP7///8AAAIAAgABAAEA/v8AAP//AQADAAEAAAACAAEA/////////v///wEA/v////7/AAD+////AAAAAAAAAgAAAAAAAAD//wEAAAAAAAAAAQABAAIA/v8AAAAA//8AAAEAAAAAAP//AgD//wEA/////wAAAQACAAAAAAAAAP//AQD/////AQAAAAEA/v8AAAEAAQABAAEA///+////AQD//wEAAgD+//7/AAAAAAAAAQAAAAAAAQAAAAAAAAAAAP//AAD//wEAAQD//wAAAQABAP7///8AAP7/AAABAP7/AQABAAEAAAABAAEAAAD+/wIAAAABAAAAAQD/////AQACAP////8AAP//AQD//wEA/v8CAAEAAAAAAAAAAQAAAAIAAQAAAAEAAgD//wEAAAAAAP7///8BAP//AgAAAP///v8CAAAAAgD///////////7/AAACAAEAAgD//wAAAAABAP//AwAAAAMA//8AAAAAAQD+/wAAAAD//wAAAQD//wEA//8BAP7/AAABAAAA//8BAAAA//8AAP//AQADAP3////+////AgD+/////v8BAAEAAQACAAAAAAAAAAAA//8AAP//AAD+/wEA/v8AAP7/AAD//wAAAQACAAAAAQAAAP//AQAAAAAAAAABAAAAAAD+//////8AAAAAAAD//wAAAAABAAEA//8AAAEA//8AAP//AgD+/wAA///+/wAA/v///wAAAQABAAAAAQD//wAA//8AAAEA//8BAAAAAgABAP//AAACAAIAAQABAP//AAAAAAAA//8BAAIAAAABAAAA//8CAAEA/v//////AAAAAAEA////////AQAAAP//AAD//wAAAAAAAP3/AAAAAAEAAAACAAAAAAAAAP//AAD//wAAAAAAAAAAAAAAAP///v///wAAAAABAAAAAAD//wEAAAABAAEAAQD//wAAAAACAAAAAQD+/wAA//8BAAEAAAD+/wAA/////wAAAAABAAAAAAD//////v8AAAAA//8AAAAAAAAAAAIAAAABAAEAAAABAP7/AAD9//////////7///8BAP//AAD///3/AQABAP//AAD//wAAAAABAAAA//8AAP//AAD/////AQABAAEA//8AAAAA//8BAAMA//8AAAAA//8AAP7/AAD//wAAAAAAAP7/AQAAAAAA/v8CAP//AAABAAIAAQABAAAA//8BAAEAAQD///7/AQD//wAAAQABAP//AAD//wEAAAAAAAAAAQAAAAIA//8AAP////8AAP//AQD//////v///wEA/v8AAAIAAgACAAEAAAAAAAEAAAAAAAAAAAAAAAAAAQD//wAA/////wAAAQACAP////8AAAAAAAD//wAAAQD+/wEA//8AAAEAAwD//wEAAQAAAAAAAAABAP////8AAAAAAQAAAAAAAAAAAAEAAQAAAP////////7/AQABAAEAAQD///////8BAAAA//8AAAAAAgABAAEA/v8BAP7///8BAP3/AQABAAIAAAD//wEAAAAAAP//AAABAAIA//8CAAAAAQAAAAEA//8BAAAA/////wAAAAD//wEAAQD//wAAAAAAAP//AAAAAAAAAQABAAAAAQAAAP//AQD//////v8AAAEAAAAAAAAA//8AAAAAAAACAAEAAQAAAP//AAABAAEA/////wAAAgABAAAAAAAAAAEAAAABAP//AQABAP7////+/wEAAAAAAP//AAABAAAAAAABAAEAAAAAAAAA//8BAP///f/+/wEAAQD///7///8AAAAAAQAAAP////8AAAAAAAABAAAAAQD/////AAD//wEA//8AAAIA//8CAAAA//8AAAAAAAD+/wEAAAD+/wAA/////wAA////////AAAAAAAA//8BAAAAAAD//wAAAAD//wEA//8AAP//AQD+/wAAAAAAAP7/AAD+/wEAAQABAP//AAABAAEAAQD//wAA/////wEA//8AAAAAAgAAAAAA//8BAAAAAgAAAAAAAAAAAP7/AQD//wAAAAD+/wAAAAADAAIA/////wAAAQD//wIA//8BAAEA/v8AAAIAAAAAAP3///8AAAAAAAAAAAAAAAABAP///////wAA//8AAAEAAQABAAEAAQABAAAAAQAAAAAAAQABAP7/AQD//wAAAQABAAEA//8BAAAAAgAAAAEAAAABAP//AAD/////AAD//wIA/////wIAAAD///7/AAAAAAAAAAACAP//AAABAP////8AAAAAAAABAAAAAgAAAAAAAQD+/wEA/////wAA/////wAAAAAAAAAA/v//////AAAAAP//AAABAAAAAQAAAAIAAAACAAAA//8AAAAA//8AAP7/AAAAAP//AAACAP//AQABAP//AQABAAAA/////////v8AAP//AQAAAAAA///+/wAAAQD+/wEAAQAAAAEA/////wAAAQD//wAA//8AAAAA/v8BAAEA//8AAP7//v8BAAAAAAAAAAEA//8AAAEA/////wAAAAD//////////wEAAAABAAEA//8CAAEA/f8AAAAA//8BAAAABAABAAEAAQAAAAAAAAAAAP7///8AAAAA/v8BAAAA//8AAAIA//8AAP////8BAP//AAAAAAAAAAD/////AQD///7/////////AQD8////AgABAAIA////////AAD//wAAAAABAAAAAAAAAAEAAgAAAP//AQD//wAAAAAAAP/////+/wAAAAABAAAAAwABAP///////wEAAAADAP//AQACAAAA//8CAAEAAAAAAP///////wIAAAAAAAAAAQAAAAAAAgD//wEAAAABAAAA/v8AAAAAAAAAAAAAAAAAAAEA/v8AAP//AQD//wAA//////7///8AAAAAAAAAAP7/AQD//wAA//8AAAEAAAABAAEAAQD/////AAD//wEAAAD/////AQAAAAEAAAD//wEAAAD/////AgD//wAAAQD//////////wAAAAD//wAAAAABAAAAAAD//wAAAQD///7/AQD//wEAAAD/////AAD//wEA//8AAAEA//8CAAAAAQD//wEAAgAAAAEAAwAAAAAA/v8BAAEAAgD//wEAAAAAAAAAAAD//wEA//8AAAAAAQACAP///////wAAAQABAAEAAAAAAAEAAQD+/wEA/f////////8AAAAA//8AAAEA//8BAAAA/v///wEAAAAAAAEA/////wAAAAAAAP//AAAAAAIAAAABAAAA/////wAAAAD//wAA/v8AAAMAAQD+/wEAAAABAAEA//8BAP//AgAAAAAAAAD//wAA/////wEA/v8CAP3/AAACAP3/AQABAAAAAQACAAEA/v8AAAAA//8BAAAAAgAAAAAAAgACAAEA/v/9/wAAAQABAP7///8AAP//AgD+/////v8CAP////8BAP//AQACAAEAAQABAP//AAD///7/AAABAAEAAgD//wEA//8CAAEAAQABAAEAAAABAAAA/v8AAAEA/v8AAP//AAABAP//AQAAAAEAAgAAAAAA/v///wEAAQAAAAIAAAD/////AgAAAAEA/v8AAP7/AQAAAAAAAQAAAAEAAAACAAEA//8BAP////8AAAIAAAAAAP//AAAAAAIAAAAAAAAAAwABAP///v8BAAAAAAAAAP3/AAABAAEA/v////////////3//v8AAAAAAQABAAIAAAD+/////v8AAAAAAQABAAEAAQAAAP//AAAAAP//AQAAAP//AAABAAAAAAAAAAAA////////AAAAAP//AQD/////AAABAAEA//8CAP7///8AAP7//v8BAAEAAAD+/////////wEAAAAAAAAAAgD//wAAAQAAAP7/AQABAP//AQAAAAAAAAD/////AAACAP////8BAAAAAAD//wAA//8AAAEAAQABAAAAAAABAAAAAQD+/wEA/v8AAAEAAQD/////AAD//wAAAQABAP7//v//////AAACAAAAAAAAAAAAAAACAAAAAQAAAAAA//8BAP//AQD//wAA///+/wIAAQD//wAAAAD//wAA/v8AAP3///8AAAAAAAAAAAAA/f8AAAAA//8CAP7/AAD///7/AAAAAAAAAAD//wEAAAAAAAEAAAAAAAAA//8BAP////8BAP7///8CAAEA//8BAP3///////////8BAAAAAAAAAAEAAgD+//////8BAAMAAQADAAEAAAACAAAAAQD/////AAABAAMAAQAAAP//AQD//wAA//8AAAAA//8CAP7//////wAAAAAAAAIA/v8AAP//AAACAP//AwD//wAA//8AAP//AwD//wEAAQABAAEAAQACAAEAAAD//wAA//8AAAIAAAAAAP///////wAAAQD//wIA//8BAP7/AAD///////8AAAAAAAAAAAEAAAD//wAAAQD//wEA//8BAAAAAAD/////AgABAAIAAAABAAAAAAAAAP//AAAAAAAA//8AAAAAAAD/////AQAAAAAAAQD//wAA///+////AAAAAAEAAgABAAEAAAAAAP//AQAAAAAAAQD+/wAAAAABAAEAAAD/////AQABAP7///8AAAIAAAACAAAA//8AAP//AgACAAAA///+/wAAAAABAAAAAQAAAAEA/v8BAAEA//8CAP//AQD+/////v8AAAAAAAACAP//AAD+/wIA/v8BAAAAAAD/////AAAAAP7///8AAP7//////wEAAAABAAAAAAD//wAAAAAAAAAAAgACAAAAAAABAAAA/f8AAP7/AgAAAAEA//8BAAAAAAD///7/AQD//wAAAAAAAAEAAAAAAAEAAAAAAAAAAQAAAAAA//8AAAAAAAABAP///////wAAAgABAAEA//8AAP//AAACAP//AQABAAEA//8BAAAAAAABAAAA//8AAAEAAAAAAAIA/v8BAP//AQD//wEAAAABAAEAAQACAAEAAAAAAAEAAAABAAAAAAD/////AAABAAEA//8AAAAAAQABAP//AAAAAP//AAD/////AQD//wAAAAABAAEA//8BAAAA//8AAP///f/+/wAA/////wAAAQAAAAIAAAAAAAAAAAD+/wEA/f8CAAAA//8AAAEAAgAAAAMAAAABAAAAAAAAAP//AQAAAAAAAQABAAAAAQAAAP//AAAAAAAA//8AAAAAAAABAAAAAQAAAAAAAAABAAIAAAAAAP7/AQD//wAAAAD+////AAAAAAAAAAABAAAA/////wAA//8AAAAAAAD/////AgD//wAA//8CAP//AQACAAEA/f////////8BAAIAAQABAP//AAD//wAA///+////AAD+/wAAAQD/////AAAAAAAA/////wAAAAABAAAAAQAAAAAA//8AAAIAAAABAP//AQABAAEA//8AAAAAAAADAAEAAAABAP//AgD//wMA//8AAAAAAAD//wAAAAD9/wEA///+/wAA//8BAAEA//8BAAAA//8AAP///v8BAP///////////v8BAAAAAQABAAAAAAAAAAAA//8AAP7/AQAAAAAAAAAAAP7/AQAAAAAAAgABAAEAAAABAAEAAAAAAAAAAAD+/wAAAAD//wEAAAAAAAAAAAAAAP//AgABAAAAAAABAAEAAAD/////AAAAAP//AAABAP////8BAAAAAQABAP7//v/+////AQAAAAAAAQAAAAEAAgAAAAAAAQAAAAEAAAD+/////v8BAP//AAABAP//AQABAAAAAAD//wAA//8CAP//AAAAAAEAAAABAAAAAAAAAP//AAD+////AwAAAAAAAQD//wEAAAACAAEAAAADAAAAAAD/////AAAAAAEAAAABAAAA//8AAAEA//8BAP///v8AAP//AAD//wAAAQABAP//AQAAAAAA/////wEAAQAAAP////8AAAEA//8BAAAAAQAAAP////8AAAAAAQAAAAIAAQAAAAEAAAAAAAEAAAD//wEAAAAAAP////8AAAAA//8BAAEAAAAAAAIA///+/wIA/v8BAAAAAQACAAAAAQAAAP7///8AAP//AAAAAAEAAAAAAP7/AAD+////AAAAAAAAAAD//wAA/v8BAAMAAAABAAIAAgD//wAA//8BAAEA//8BAP7/AAAAAP7///8BAAAAAQAAAP7/AQD/////AAAAAAEAAAABAP//AQABAAAAAgABAAAAAAAAAP///////wEA//8AAAEA//8AAAAAAQAAAAIAAAABAP7//////wAAAQABAAAAAAABAAEA///+/wAA//8BAP///v8AAP///v8BAAAA//8CAAAAAQAAAAEAAQABAAAAAAD+/wAAAAD+/wAAAAAAAAAA/f////////8AAAAAAQABAP///////wEA//8BAAEAAAAAAAAA/////wEA/v//////AAAAAP//AAABAAAAAAD+/wAAAAD9////AQAAAAEAAwD//wEAAQAAAP//AgAAAAAAAAD+/wIAAAAAAAAAAAAAAAIA//8AAAEAAQACAAAAAQD//wAAAAD//wIAAQABAAAAAAD//wEA//8BAAEAAQAAAAAAAQABAP7/AAD//wEAAAACAP7/AQAAAAAAAAD//wIAAQACAAIAAQAAAAAAAAAAAP3///8BAAAAAQACAP//AgD9/wAAAAD//wEA/v////////8AAAAAAAD//wEAAQD//wMAAQAAAAEA//8AAAEA//8AAAAAAAACAAAAAAD//wAAAQD///////8AAAAA//8BAAIA/v8BAAEA/f8AAAAAAAAAAAAAAgD/////AAD+/wAAAAD//wAAAAAAAP//////////AgABAP///v8AAAIAAQAAAP//AAABAAAA/////wAAAAAAAAEAAAABAP///v///wIA//8BAAEAAQAAAAAA///+/wEAAAAAAAAA/////////v8BAP3/AAAAAAAAAAAAAAAA//8AAP//AAAAAP//AAABAAIAAAACAP////8DAAAAAAABAAAAAwABAP//AAABAP//AAAAAP////8BAAAAAgD//wAA///+/wAAAQD//wAA//8AAP7///8AAAAA/v8AAAAAAQD//wEA/v////////8AAAAAAQAAAP//AQACAAAAAAAAAP//AAD//wAAAAD//wAAAAD+/wAAAAAAAP//AQD//wAAAgAAAAAAAQABAAAAAwD+/wAAAAD///7/AQD//wIAAQAAAP//AAD//wAA//8CAAEAAAAAAAAA/////wAAAAD//wEAAQD///////8BAAAA//8BAAEAAAAAAAAA/v///wEAAAAAAAAAAAADAAAAAAAAAAAAAQABAAEAAAD+//7//v8AAP//AQAAAAAAAAABAAEAAgAAAAAAAQD//wAA/f8AAAAAAAABAAAAAQAAAAAAAAAAAAIA//8BAP///////wIA/////wAAAAABAAEA//8BAAAAAAD//wAAAQD//wEAAAAAAAIA/v8BAP//AAAAAAEAAAABAP//AAAAAAAAAQABAP7/AAABAAAAAQD//wIAAAAAAAEA///+/wAA//8AAP//AAAAAAAAAAABAP///////wIAAQAAAAEAAQAAAP7/AQAAAAAAAQAAAAAAAQD/////AQAAAAAA///+//7/AAD+/wEA//8AAAAA///+/wEAAAABAAIAAQABAAAA//8AAP//AAD//wAAAAD//wAAAAAAAP//AQAAAAAA////////AQAAAAAAAQD+////AQABAP7/AAD///7/AgD//wAAAAAAAP//AAAAAAEA//8BAAEAAgAAAAIAAAD//wEA/////wAAAQD///7/AQD//wEAAQD/////AAAAAAEAAgAAAAAAAQD//wEA//8AAP7//////wAA//8BAAEA//8BAAAAAQD/////AAABAP//AAACAP//AQAAAP//AAABAP////8AAAAAAAABAAEAAwABAAAAAgD//wAAAAD//wEAAAABAAAAAAABAAEA/////wAA//8AAAIAAAAAAAEAAQABAAEAAQABAP//AgAAAAAA//8BAP3//v///wAA//8AAAAAAQAAAP//AQD//wEAAAACAAIAAAABAAAA//8BAAEA//8BAP//AAAAAP//AQAAAAIAAAD//wAAAAAAAAEA////////AQAAAP//AQD//wAAAQD+/wEAAAABAP///v///wAAAAAAAP//AAAAAAIAAQD//wAAAgD+/wAAAAD//wAAAAABAP///P//////AAACAP////8AAAIAAAABAAAAAAAAAAAA//8AAAAAAQADAP//AQAAAAAAAAABAAEAAQAAAAAA/v8AAAAAAAD//wAAAQD//wAAAAD//wAA/v////////8CAAEA/v8BAP7/AAAAAAAA//8AAAEAAAD//wIAAQAAAAIAAQAAAAAAAAD///7/AQABAP//AAAAAP//AAACAAEA//8BAAAAAwAAAAAAAAD//wEAAAD//wAA///////////+/wAAAQABAAIAAAABAAEAAAD//wEAAAD/////AAD+/wIAAwABAAEA/v8BAAEAAAD//wAA//8AAP//AAAAAAEAAAAAAP//AAAAAAEAAQABAAEA/v///wAAAAD//wEAAAACAAAA/f/+/wAA/v///wAA//8AAAEAAQD///7/AAAAAAAAAAABAAAAAAACAAAAAAABAAAAAAABAP//AQD//wAA//8BAP7/AgABAAEAAQAAAAAAAQD//wEA/v8AAP////8AAP///////wIAAQD//wAAAAD//wAA/v///wAAAQD//wIA/////wEAAAAAAAIAAAABAAAAAAD//wEA//8AAAAA/////wAAAQAAAAAAAAD//wEAAQAAAAAAAAACAP///////wAAAgD//wAA/v8AAAIAAAAAAAEAAAABAP//AQABAAEAAQAAAP///v8BAAEAAAAAAP////8AAAAAAQD//wIAAQAAAAEAAAAAAAAA//8BAP//AAAAAP7//v///wEAAAAAAAIAAAAAAP//AAD//wEA//8BAAAAAAABAAEAAAABAP7///8AAAIAAAABAP//AAD//wEAAAAAAP//AAAAAAEAAAAAAAAAAAAAAP7/AQD//wAAAQD+/wEA/v8BAP7/AAABAAEAAAACAAIAAAADAAAA//8AAAEAAAABAP//AQD//wIA/////wEA//8AAAEA//8AAAEAAAAAAAAAAQABAAAAAAAAAAAAAAD//////////wAA//8AAP7/AAD+/wAAAQAAAAAA/////wAABAAAAAAA//8AAAEAAAAAAAAA/v8AAP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ABQArACAALAABAB4A8f8NAOv/7v/m/9n/+P/R/wMA4f8OAPT/AQATAAMAKwAHACoAAwAbAAMABQADAO7/AQDU/wEA2f8AAOL////3////EgAAACUAGgAvAAUAHQD2/xIA9f/0//T/3P/4/8///f/h/wIA7f8AAAoAAQApAAQALQADACAAAgAPAP//9P///9r//f/T/wAA3f/9//D/AQAQAP//HAAHAC8ACQAfAPv/GAD+//f/+P/j/wEA0v/+/9n/AADq/wIABgD//x0AAQAuAAEAIwAAABQAAwD8/wEA3/8AAM//AADe////7f8BAAwA//8ZAAMALwAAACEA//8dAP3//v/9/+n////U//z/1v8BAOT/AAD+/wAAGwD+/ywA/v8kAAIAGAD///3////q/wEA0P///97/AADk/wAABAAAABUAAQAqAAEAKQAAABwAAAAFAP//6f8AANr////X/wAA4/8AAPj/AgAUAAAAKgD//ywAAAAcAP7/AQAAAOv/AADU/wAA2v8CAOP/AAABAAAAFgABABsAAAAqAAEAHwAAABQAAgDv/wEA3v///9H////f////7/8BAAoAAQApAAAALgD//yEAAQAIAAAA8P8BANr//v/V////4f8AAPf//v8UAAAAFAAAACYAAQAhAP7/GwD+//T/AADo/wIA1v8CANr/AgDp/wEABgAAAB8AAQAsAAEAJAAAAAwA///z/wEA3/8AANT/AADh/wEA9P///xQAAgASAAAAJQAAACEAAAAaAP//+v8BAOj////W////2P8BAOf///8DAAAAHwAAAC4AAAAlAAAAEgAAAPL/AQDm////0f8CAN3/AADr//7/EQD//xAAAQAhAAIAJQAAAB8AAAABAP//6v8CAN//AQDX/wAA4/8AAPr/AAAXAAAAKgABACgAAAAbAP///f8AAOj/AADU/wAA2v///+f/AQANAAMAEQD+/xwA/v8kAP7/IQABAAgA/v/p////5/8AANf/AQDd/wEA8v8BABMAAQAjAAAALgAAACAAAQADAAEA7f8BANn/AgDY//7/4P/+/wEAAAAXAAIAFAAFACUA/P8jAP//EgAAAO//AQDo////1/8AAN3/AADx//7/DgAAAB0AAQAoAAAAIwAAAAoAAQDv/wMA4f8AANn/AQDi/wEA+v///xgAAAAQAP3/IwD//yUA/v8XAAAA7/8AAOv/AADc/wAA3P/+/+v/AQALAAEAGgACACkAAAAkAP7/EAABAO/////q//7/1/8AANz/AgDw/wEAEgD//w8AAAAcAAIAJQAAAB0AAAD2////7P8AAOP/AgDa/wAA5P8BAAQAAQAWAAAAIgAAACMAAAAaAP//+P///+v/AQDZ/wAA2////+7/AAARAAAADgAAABYAAAAhAAAAIAABAPz/AQDt/wAA5P8AANr/AQDg/wEA/P8BABcAAAAhAP//KQD//xwAAAD8/wEA7v8AAN3////Z/wAA6f8BAA0AAAARAAEAEQAAACMAAAAgAAEA/f8CAO3/AADv/wAA3v8BANv////1////EgAAABkA//8nAAAAIgAAAAMAAADu/wAA6P8CANn/AQDg////BQD//xMAAQAOAP//IAABACYAAAAGAAAA6f////H/AADg/wEA2f8AAO3///8PAAAAFQACACQAAAAkAAEADQABAO//AADp/wAA2////9z/AQD7/wEAFgAAAAwAAQAXAP7/JQD9/xMAAADx/wAA8f8AAOr/AADc/wEA4/8BAAkAAAAVAAAAIQD//yYA//8UAAEA9P8BAOz/AADf/wAA3P8AAPP/AAAQAAAADQABAA0AAAAlAAEAGAD///H//v/0/wEA7v8CAN//AADg//3/BAACABUAAQAfAAAAJwABABgAAQD0//7/7f///+L/AADa/wIA8P///w4A//8SAAMACQAAACAAAQAgAP//+v////P////y/wEA4/8BANr/AQD9/wAAEwD//xkAAQAjAAAAIgABAPz////s/wAA6v8BANX/AQDr//7/BwABABMAAAAHAP//FwAAACYAAAD//wEA9P8BAPb/AQDu////2v8BAPn/AAATAP//FwD//yEAAAAjAAAAAgAAAOn/AQDr//7/2P8CAOT/AAABAP//FgABAAUAAQATAP//IwAAAAEAAgDy/wEA9/8AAPb/AADb/wAA6/8BABAAAAATAP7/IQAAACYA//8UAP//7/8AAPD/AADd/wEA3P/+//7///8OAAAACgAAAAgAAAAhAP//CQACAPT/AQD2/wAA9v///97////m/wIADgABABMAAQAfAP//JwAAABMAAADw/wAA8P///+r/AQDb/wAA9f8AAA8AAAARAAIABAD//wYA/v8HAAAAAQD//wMAAgAGAAAA7f8AAOz/AAALAP//DwACABQA//8bAAAAHgD///f/AADq/wEA6/8BANj//v/t/wAACAD+/xAAAgAEAAAABAABAAcAAQADAAAA//8AAAUA///1/wAA5f///wIAAAAOAAAAEAAAABsAAAAhAAAA/v8BAOj////y////3f8AAOf/AQAGAAEADAAAAAcA//8BAP//CQABAAMA//8BAP//BQAAAAAAAADo/wAA+/8AAAoAAAALAAAAFAAAACAAAQAGAAIA7f8BAPH/AADm/wMA3P8CAP7/AgASAP//CgD//wAAAAAIAP//BQD//wEAAAACAP7/BAAAAPz/AwD8////BAAAAAEA//8HAAAAHQAAAAgA/v/x//7/8f///+f/AQDg/////P///woAAAAMAP//AAABAAYA//8EAAAAAgAAAAUAAAACAAAAAwAAAAIAAAABAAAAAQABAAAAAgAcAP//DgD///T/AQDx/wAA9P8CAOH/AAD3/wAACQAAAAoAAQABAP//AwAAAAcAAAD+/wAAAgACAAEAAAD+////AwD+/wAAAAABAP//+v8BABEAAQATAAAA9f/+//L//f/z/wIA6f8AAPb/AQAFAP//DAAAAAAAAAAFAP//BQD//wEA//8DAAEAAQAAAP7///8AAAAA//8BAAIAAAD+/wAAEAABABYAAgD6/wEA8v8BAPX/AwDp/wAA8////wMA//8JAAEABAABAAEA//8FAAEA//8AAAMAAQACAP//AQAAAAEAAgAFAP//AQABAAAAAQAAAP//EQABAAAAAAD5/wEA+P8AAPr////6/wAA+/8BAAIA//8BAAAA//8CAAUA//8BAP7/AAABAAEAAgAAAAAAAwAAAAEA/v8DAAIAAAACAAQA//8TAAAA/P8BAPr////3//////8AAPz/AQD7/wEAAgD/////AAABAAEABAAAAP//////////AAAAAAAAAAADAAAAAwAAAAAA//8EAP///v/+/xAA//8HAAAA+/////j/AQD8////AAD///n///8AAAAA//8AAP////8DAP//AgAAAAAAAAACAAIAAAD+/wAAAQD//wAA/////wIAAgD9////CQACAAYA///9////+f8BAPr/AQAAAAIA/v///wAA//8AAAAAAAAAAAEAAAABAAAAAgAAAAEAAAAAAAEAAQABAAAAAgABAP//AAD//wEAAAD///////8BAAIAAQAAAAAA/v/+//////8BAAAAAQABAP//AAD///////8BAAAAAQABAP////8CAAEAAQD//wEA/v//////AQAAAAAAAAAAAAAAAAD9/wMA/////wAAAQD+/wEA/v/+//7/AQD//wMAAAAAAAAAAAABAAEA//////7/AAACAP3/AAD//wAAAQAAAP//AQD//wAAAAAAAAEA//8CAP//AAAAAAAA/v8AAAAA//8BAP//AAABAP//AAAAAP//AQD//wAAAQABAAAAAAABAAEA/v///wAAAAD//////////wAAAAAAAP//AAD////////8/wIAAAADAAEA/////wEA/v8BAP7/AgAAAAEAAgAAAP//AgD/////AQD//wEA//////7/AQD//wMAAAAAAAAA//8CAP//AQAAAP//AAACAAAAAAABAP//AQD+/wAA/////wAA/f///wAAAAAAAP7/AAAAAAAAAgD//wEAAQACAP//AAAAAAEAAQD//wAAAAAAAAAA//8BAAMA/v8AAP7/AQAAAAAAAQAAAAAA///+//7/AAAAAAAA//8BAP7/AQAAAP//AQABAAAAAQAAAP//AAD//wIA/v///wAAAQABAP//AAD//wEA//8BAP//AgAAAP///////wAAAQABAP//AwABAAAAAAAAAAAA/////wIAAwACAAAA/v8BAAAAAAAAAAAA//8AAP////8AAAAA/////wAA/////wEA/v8CAAEAAQD//wAAAAABAAAAAAD//wEAAQABAAAA//8CAAAAAAAAAP7/AAABAAAAAQABAAAAAgABAAAAAQD//wEAAwD+/wAA/v8AAAEAAAAAAAAAAAAAAAEAAAD//wMA/v///wAAAAACAAEAAAAAAP7///8DAAEAAQD//wEA/f8BAAEAAQD//wEAAQABAAMAAgAAAAEA//8AAP//BAAAAAIA/v//////AQABAAAAAAD//wEAAAACAAIAAQAAAAAAAgAAAAAAAAABAAIAAAABAAIAAQAAAP////8AAAAAAAD//wAAAQACAP//AAAAAAAAAQAAAAEA//8AAAAAAAD/////AQD//wAAAQD9////AQAAAAAA//8BAAAA///+/////v8BAAAAAQAAAAAAAAAAAAIA//8BAAAAAAACAP//AQD//wAAAAD/////AAD9/wAAAAACAAAAAgAAAAEAAQABAAEAAAAAAAEA//8AAAEAAQACAAAAAQAAAAEA//8BAAIAAAACAP//AAABAAAAAAAAAAAAAAD//wAAAQD/////AAAAAP////8AAAEAAAAAAP7///8BAAIAAQD//wEAAQAAAP//AgAAAAAAAAD//wAA//8CAP7/AQAAAP7/AAD+////AAAAAAAAAQABAAAA//8AAAEAAAABAP7/AAAAAP7/AAD+/wAAAQABAAEA/////////v8BAP///v///wIAAAAAAAAAAQAAAAIAAQAAAAAAAAABAAEAAAAAAAAAAAD//wEAAQD//wAAAQABAAAA/v/+/////////wAAAAD//wAAAAD/////AAAAAP7/AAD//wIA//8CAP//AQAAAP////8AAAAAAQABAP////8AAP//AQACAAAAAQAAAAAAAAAAAAAA//8BAAAAAAD+/wAA/v///wEAAAD+//7///8CAP7/AAABAP3/AwAAAAAAAAABAAIAAAABAAAAAQABAAIAAAAAAP//AAAAAAEAAAACAAEAAAACAAAAAAABAAAAAwAAAAAAAAD+/wAAAQD9//////8BAAAA/v8AAAAAAAAAAAAAAAD//wMA/v8BAAEAAQACAAAA/v8BAP//AwABAAIAAQABAP//AQAAAAEAAAAAAAEA//8AAAAAAAD/////AAABAAEAAAAAAP////8AAAAAAAAAAAAA/v8AAP//AQAAAP//AAABAAIAAQAAAAAAAgABAAAA/////wAAAQABAP//AQABAAEA/////wAAAAAAAAAAAAABAAEAAQAAAAAAAAAAAAAA//8AAP7/AQD9/wAAAgD//wEAAQABAAEA/v8AAAEA/////wAAAAAAAP//AAABAAAAAAAAAAAA//8CAP//AAABAAEAAQABAAAA//8BAAIAAgD//wAA/v8AAAEAAAD///7/AAAAAAEAAAABAAAAAQABAAAAAQACAAAA///+/wAAAQABAP7////+/wAA//8AAAAAAgAAAP//AQD9/wAAAAD//wAA//8AAAAAAQAAAAAAAQD//wAAAAAAAP//AQABAAAA/v8CAP//AAD///////8AAAAAAAACAAEA//8BAP7/AAAAAAEA//8BAAAAAQD//wAAAQD+/wAA/////wAAAAD//wAAAQABAAAA//8AAAEA/////wAA//8AAAAA/v/+/wEAAgABAP//AgD//wIA/////wAA//8AAAEAAQAAAAAAAQAAAAMAAAACAP//",showCount:!0},audio:{disabled:!0,defaultToggledOn:!1,language:"en-US",voiceNames:["Microsoft David - English (United States)","Alex (English - United States)"],rate:1,volume:1,icon:hl,iconDisabled:gl},chatHistory:{disabled:!1,maxEntries:30,storageKey:"rcb-history",storageType:"LOCAL_STORAGE",viewChatHistoryButtonText:"Load Chat History ⟳",chatHistoryLineBreakText:"----- Previous Chat History -----",autoLoad:!1},chatInput:{disabled:!1,allowNewline:!1,enabledPlaceholderText:"Type your message...",disabledPlaceholderText:"",showCharacterCount:!1,characterLimit:-1,botDelay:1e3,sendButtonIcon:dl,blockSpam:!0,sendOptionOutput:!0,sendCheckboxOutput:!0,buttons:[we.VOICE_MESSAGE_BUTTON,we.SEND_MESSAGE_BUTTON]},chatWindow:{showScrollbar:!1,showTypingIndicator:!0,autoJumpToBottom:!1,showMessagePrompt:!0,messagePromptText:"New Messages ↓",messagePromptOffset:30,defaultOpen:!1},sensitiveInput:{maskInTextArea:!0,maskInUserBubble:!0,asterisksCount:10,hideInUserBubble:!1},userBubble:{animate:!0,showAvatar:!1,avatar:"data:image/svg+xml,%3csvg%20width='140'%20height='140'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cy='60.044'%20cx='70'%20fill='%235c5c5c'%20r='29'/%3e%3cpath%20d='m16.36%20156.186-.01-30.5c-.005-16.844%2024.168-30.507%2053.991-30.516%2029.823-.009%2054.004%2013.64%2054.01%2030.484l.008%2030.5-108%20.032z'%20fill='%235c5c5c'/%3e%3c/svg%3e",simulateStream:!1,streamSpeed:30},botBubble:{animate:!0,showAvatar:!1,avatar:zi,simulateStream:!1,streamSpeed:30},voice:{disabled:!0,defaultToggledOn:!1,language:"en-US",timeoutPeriod:1e4,autoSendDisabled:!1,autoSendPeriod:1e3,sendAsAudio:!1,icon:pl,iconDisabled:fl},footer:{text:_("div",{style:{cursor:"pointer",display:"flex",flexDirection:"row",alignItems:"center",columnGap:3},onClick:()=>window.open("https://react-chatbotify.com"),children:[_("span",{children:"Powered By "},0),_("div",{style:{borderRadius:"50%",width:14,height:14,display:"flex",justifyContent:"center",alignItems:"center",background:"linear-gradient(to right, #42b0c5, #491d8d)"},children:_(ji,{style:{width:"80%",height:"80%",fill:"#fff"}})},1),_("span",{style:{fontWeight:"bold"},children:" React ChatBotify"},2)]}),buttons:[we.FILE_ATTACHMENT_BUTTON,we.EMOJI_PICKER_BUTTON]},fileAttachment:{disabled:!1,multiple:!0,accept:".png",icon:qi,iconDisabled:qi,sendFileName:!0,showMediaDisplay:!1},emoji:{disabled:!1,icon:Wi,iconDisabled:Wi,list:["😀","😃","😄","😅","😊","😌","😇","🙃","🤣","😍","🥰","🥳","🎉","🎈","🚀","⭐️"]},toast:{maxCount:3,forbidOnMax:!1,dismissOnClick:!0},event:{rcbPreInjectMessage:!1,rcbPostInjectMessage:!1,rcbStartSimulateStreamMessage:!1,rcbStopSimulateStreamMessage:!1,rcbStartStreamMessage:!1,rcbChunkStreamMessage:!1,rcbStopStreamMessage:!1,rcbRemoveMessage:!1,rcbLoadChatHistory:!1,rcbToggleChatWindow:!1,rcbStartSpeakAudio:!1,rcbToggleAudio:!1,rcbToggleNotifications:!1,rcbToggleVoice:!1,rcbChangePath:!1,rcbShowToast:!1,rcbDismissToast:!1,rcbUserSubmitText:!1,rcbUserUploadFile:!1,rcbTextAreaChangeValue:!1,rcbPreLoadChatBot:!1,rcbPostLoadChatBot:!1,rcbPreProcessBlock:!1,rcbPostProcessBlock:!1},ariaLabel:{chatButton:"open chat",audioButton:"toggle audio",closeChatButton:"close chat",emojiButton:"emoji picker",fileAttachmentButton:"upload file",notificationButton:"toggle notifications",sendButton:"send message",voiceButton:"toggle voice",inputTextArea:"input text area"},device:{desktopEnabled:!0,mobileEnabled:!0,applyMobileOptimizations:!0}},Yi=nt({settings:{},setSyncedSettings:()=>null,syncedSettingsRef:{current:{}}}),ie=()=>Ve(Yi),ml=({children:e,settings:t=Gi,setSyncedSettings:n,syncedSettingsRef:r})=>_(Yi.Provider,{value:{settings:t,setSyncedSettings:n,syncedSettingsRef:r},children:e}),Ki={tooltipStyle:{},notificationBadgeStyle:{},chatWindowStyle:{},headerStyle:{},bodyStyle:{},chatInputContainerStyle:{},chatInputAreaStyle:{},chatInputAreaFocusedStyle:{},chatInputAreaDisabledStyle:{},userBubbleStyle:{},botBubbleStyle:{},botOptionStyle:{},botOptionHoveredStyle:{},botCheckboxRowStyle:{},botCheckboxNextStyle:{},botCheckMarkStyle:{},botCheckMarkSelectedStyle:{},characterLimitStyle:{},characterLimitReachedStyle:{},chatHistoryLineBreakStyle:{},chatMessagePromptStyle:{},chatMessagePromptHoveredStyle:{},footerStyle:{},loadingSpinnerStyle:{},mediaDisplayContainerStyle:{},chatButtonStyle:{},chatButtonHoveredStyle:{},chatHistoryButtonStyle:{},chatHistoryButtonHoveredStyle:{},sendButtonStyle:{},sendButtonHoveredStyle:{},sendButtonDisabledStyle:{},audioButtonStyle:{},audioButtonDisabledStyle:{},closeChatButtonStyle:{},emojiButtonStyle:{},emojiButtonDisabledStyle:{},fileAttachmentButtonStyle:{},fileAttachmentButtonDisabledStyle:{},notificationButtonStyle:{},notificationButtonDisabledStyle:{},voiceButtonStyle:{},voiceButtonDisabledStyle:{},chatIconStyle:{},audioIconStyle:{},audioIconDisabledStyle:{},closeChatIconStyle:{},emojiIconStyle:{},emojiIconDisabledStyle:{},fileAttachmentIconStyle:{},fileAttachmentIconDisabledStyle:{},notificationIconStyle:{},notificationIconDisabledStyle:{},voiceIconStyle:{},voiceIconDisabledStyle:{},sendIconStyle:{},sendIconDisabledStyle:{},sendIconHoveredStyle:{},rcbTypingIndicatorContainerStyle:{},rcbTypingIndicatorDotStyle:{},toastPromptContainerStyle:{},toastPromptStyle:{},toastPromptHoveredStyle:{}},Xi=nt({styles:{},setSyncedStyles:()=>null,syncedStylesRef:{current:{}}}),fe=()=>Ve(Xi),yl=({children:e,styles:t=Ki,setSyncedStyles:n,syncedStylesRef:r})=>_(Xi.Provider,{value:{styles:t,setSyncedStyles:n,syncedStylesRef:r},children:e}),vl=({buttons:e})=>{var t,n,r,o,i,s,A;const{settings:a}=ie(),{styles:l}=fe(),c={backgroundImage:`linear-gradient(to right, ${(t=a.general)==null?void 0:t.secondaryColor},
2
+ ${(n=a.general)==null?void 0:n.primaryColor})`,...l.headerStyle};return _("div",{style:c,className:"rcb-chat-header-container",children:[_("div",{className:"rcb-chat-header",children:[((r=a.header)==null?void 0:r.showAvatar)&&_("div",{style:{backgroundImage:`url("${(o=a.header)==null?void 0:o.avatar}")`},className:"rcb-bot-avatar"}),Tt((i=a.header)==null?void 0:i.title)?(s=a.header)==null?void 0:s.title:_("div",{style:{margin:0,fontSize:20,fontWeight:"bold"},children:(A=a.header)==null?void 0:A.title})]}),_("div",{className:"rcb-chat-header",children:e==null?void 0:e.map((u,d)=>_(le,{children:u},d))})]})},Vi=nt({}),ke=()=>Ve(Vi),bl=({children:e,botIdRef:t,flowRef:n})=>{const r=oe(null),o=oe(""),i=oe(null),s=oe(new Map),A=oe(null),a=oe(""),l=oe(!1),c=oe(null),u=oe(null),d=oe(null);return _(Vi.Provider,{value:{botIdRef:t,flowRef:n,inputRef:r,timeoutIdRef:i,streamMessageMap:s,chatBodyRef:A,paramsInputRef:a,keepVoiceOnRef:l,audioContextRef:c,audioBufferRef:u,gainNodeRef:d,prevInputRef:o},children:e})},We=e=>{const[t,n]=ee(e),r=oe(e);return[t,o=>{const i=typeof o=="function"?o(r.current):o;r.current=i,n(i)},r]},$i=nt({}),Ce=()=>Ve($i),wl=({children:e,settings:t})=>{var n,r,o,i,s,A;const[a,l,c]=We(!1),[u,d,p]=We(((n=t==null?void 0:t.chatWindow)==null?void 0:n.defaultOpen)??!1),[h,m,f]=We(((r=t==null?void 0:t.audio)==null?void 0:r.defaultToggledOn)??!1),[b,y,g]=We(((o=t==null?void 0:t.voice)==null?void 0:o.defaultToggledOn)??!1),[x,k,E]=We(((i=t==null?void 0:t.notification)==null?void 0:i.defaultToggledOn)??!0),[C,I]=ee(!1),[D,P]=ee(!1),[S,B,L]=We(!1),[R,Q,z]=We(!0),[N,H,v]=We(!1),[q,w]=ee(!1),[W,re]=ee(!1),[V,ce]=ee(0),[Le,xe]=ee(0),[Fe,U]=ee(!1),[Y,ue]=ee(((s=window.visualViewport)==null?void 0:s.height)??window.innerHeight),[ae,de]=ee(((A=window.visualViewport)==null?void 0:A.width)??window.innerWidth);return _($i.Provider,{value:{isBotTyping:a,setSyncedIsBotTyping:l,syncedIsBotTypingRef:c,isChatWindowOpen:u,setSyncedIsChatWindowOpen:d,syncedIsChatWindowOpenRef:p,audioToggledOn:h,setSyncedAudioToggledOn:m,syncedAudioToggledOnRef:f,voiceToggledOn:b,setSyncedVoiceToggledOn:y,syncedVoiceToggledOnRef:g,notificationsToggledOn:x,setSyncedNotificationsToggledOn:k,syncedNotificationsToggledOnRef:E,isLoadingChatHistory:C,setIsLoadingChatHistory:I,hasChatHistoryLoaded:D,setHasChatHistoryLoaded:P,isScrolling:S,setSyncedIsScrolling:B,syncedIsScrollingRef:L,textAreaDisabled:R,setSyncedTextAreaDisabled:Q,syncedTextAreaDisabledRef:z,textAreaSensitiveMode:N,setSyncedTextAreaSensitiveMode:H,syncedTextAreaSensitiveModeRef:v,hasInteractedPage:q,setHasInteractedPage:w,hasFlowStarted:W,setHasFlowStarted:re,unreadCount:V,setUnreadCount:ce,inputLength:Le,setInputLength:xe,blockAllowsAttachment:Fe,setBlockAllowsAttachment:U,viewportHeight:Y,setViewportHeight:ue,viewportWidth:ae,setViewportWidth:de},children:e})};var j=(e=>(e.START_SPEAK_AUDIO="rcb-start-speak-audio",e.TOGGLE_AUDIO="rcb-toggle-audio",e.TOGGLE_NOTIFICATIONS="rcb-toggle-notifications",e.TOGGLE_VOICE="rcb-toggle-voice",e.TOGGLE_CHAT_WINDOW="rcb-toggle-chat-window",e.PRE_INJECT_MESSAGE="rcb-pre-inject-message",e.POST_INJECT_MESSAGE="rcb-post-inject-message",e.START_SIMULATE_STREAM_MESSAGE="rcb-start-simulate-stream-message",e.STOP_SIMULATE_STREAM_MESSAGE="rcb-stop-simulate-stream-message",e.START_STREAM_MESSAGE="rcb-start-stream-message",e.CHUNK_STREAM_MESSAGE="rcb-chunk-stream-message",e.STOP_STREAM_MESSAGE="rcb-stop-stream-message",e.REMOVE_MESSAGE="rcb-remove-message",e.LOAD_CHAT_HISTORY="rcb-load-chat-history",e.CHANGE_PATH="rcb-change-path",e.SHOW_TOAST="rcb-show-toast",e.DISMISS_TOAST="rcb-dismiss-toast",e.USER_SUBMIT_TEXT="rcb-user-submit-text",e.USER_UPLOAD_FILE="rcb-user-upload-file",e.TEXT_AREA_CHANGE_VALUE="rcb-text-area-change-value",e.PRE_LOAD_CHATBOT="rcb-pre-load-chatbot",e.POST_LOAD_CHATBOT="rcb-post-load-chatbot",e.PRE_PROCESS_BLOCK="rcb-pre-process-block",e.POST_PROCESS_BLOCK="rcb-post-process-block",e))(j||{});const xl={[j.START_SPEAK_AUDIO]:!0,[j.TOGGLE_AUDIO]:!0,[j.TOGGLE_VOICE]:!0,[j.TOGGLE_NOTIFICATIONS]:!0,[j.TOGGLE_CHAT_WINDOW]:!0,[j.PRE_INJECT_MESSAGE]:!0,[j.POST_INJECT_MESSAGE]:!1,[j.PRE_LOAD_CHATBOT]:!0,[j.POST_LOAD_CHATBOT]:!1,[j.START_SIMULATE_STREAM_MESSAGE]:!0,[j.STOP_SIMULATE_STREAM_MESSAGE]:!1,[j.START_STREAM_MESSAGE]:!0,[j.CHUNK_STREAM_MESSAGE]:!0,[j.STOP_STREAM_MESSAGE]:!0,[j.REMOVE_MESSAGE]:!0,[j.LOAD_CHAT_HISTORY]:!0,[j.CHANGE_PATH]:!0,[j.SHOW_TOAST]:!0,[j.DISMISS_TOAST]:!0,[j.USER_SUBMIT_TEXT]:!0,[j.USER_UPLOAD_FILE]:!0,[j.TEXT_AREA_CHANGE_VALUE]:!0,[j.PRE_PROCESS_BLOCK]:!0,[j.POST_PROCESS_BLOCK]:!0},Sr=async(e,t,n)=>{const r=new CustomEvent(e,{detail:t,cancelable:xl[e]});return r.data=n,r.promises=[],window.dispatchEvent(r),await Promise.all(r.promises),r},Ji=nt({paths:[],setSyncedPaths:()=>{},syncedPathsRef:{current:[]}}),pn=()=>Ve(Ji),El=({children:e})=>{const[t,n,r]=We([]);return _(Ji.Provider,{value:{paths:t,setSyncedPaths:n,syncedPathsRef:r},children:e})},rt=()=>{const{botIdRef:e}=ke(),{syncedPathsRef:t}=pn(),n=G(()=>t.current.length>0?t.current.at(-1)??null:null,[]),r=G(()=>t.current.length>1?t.current.at(-2)??null:null,[]);return{dispatchRcbEvent:G(async(o,i)=>{const s={botId:e.current,currPath:n(),prevPath:r()};return await Sr(o,s,i)},[e])}},Ge=()=>{const{settings:e}=ie(),{isChatWindowOpen:t,setSyncedIsChatWindowOpen:n,viewportHeight:r,setViewportHeight:o,viewportWidth:i,setViewportWidth:s,setUnreadCount:A,setSyncedIsBotTyping:a,setSyncedIsScrolling:l,syncedIsBotTypingRef:c,syncedIsChatWindowOpenRef:u}=Ce(),{chatBodyRef:d}=ke(),{dispatchRcbEvent:p}=rt(),h=G(()=>{if(!d.current)return!1;const g=d.current.getBoundingClientRect(),x=window.innerHeight??document.documentElement.clientHeight,k=window.innerWidth??document.documentElement.clientWidth;return g.top>=0&&g.left>=0&&g.bottom<=x&&g.right<=k},[d]),m=G(async g=>{var x;g!==u.current&&((x=e.event)!=null&&x.rcbToggleChatWindow&&(await p(j.TOGGLE_CHAT_WINDOW,{currState:u.current,newState:!u.current})).defaultPrevented||n(k=>(k||A(0),!k)))},[u]),f=G(async g=>{g!==c.current&&a(x=>!x)},[c]),b=G((g,x,k,E)=>(g/=E/2)<1?k/2*g*g+x:-k/2*(--g*(g-2)-1)+x,[]),y=G((g=0)=>{if(!d.current)return;const x=d.current.scrollHeight-d.current.clientHeight;if(g<=0)return d.current.scrollTop=x,void l(!1);const k=d.current.scrollTop,E=x-k;let C=0;const I=()=>{if(!d.current)return;C+=20;const D=b(C,k,E,g);d.current.scrollTop=D,C<g?requestAnimationFrame(I):l(!1)};I()},[d]);return{isChatWindowOpen:t,setSyncedIsChatWindowOpen:n,toggleChatWindow:m,viewportHeight:r,setViewportHeight:o,viewportWidth:i,setViewportWidth:s,toggleIsBotTyping:f,scrollToBottom:y,getIsChatBotVisible:h}},_l=()=>{var e,t,n;const{settings:r}=ie(),{styles:o}=fe(),{unreadCount:i,isScrolling:s}=Ce(),{chatBodyRef:A}=ke(),{scrollToBottom:a}=Ge(),[l,c]=ee(!1),u={color:(e=r.general)==null?void 0:e.primaryColor,borderColor:(t=r.general)==null?void 0:t.primaryColor,...o.chatMessagePromptHoveredStyle};return _("div",{className:"rcb-message-prompt-container "+(A.current&&((d=r.chatWindow)!=null&&d.showMessagePrompt)&&s&&i>0?"visible":"hidden"),children:_("div",{onMouseEnter:()=>{c(!0)},onMouseLeave:()=>{c(!1)},style:l?u:{...o.chatMessagePromptStyle},onMouseDown:p=>{p.preventDefault(),a(600)},className:"rcb-message-prompt-text",children:(n=r.chatWindow)==null?void 0:n.messagePromptText})});var d},Zi=nt({messages:[],setSyncedMessages:()=>{},syncedMessagesRef:{current:[]}}),Br=()=>Ve(Zi),kl=({children:e})=>{const[t,n,r]=We([]);return _(Zi.Provider,{value:{messages:t,setSyncedMessages:n,syncedMessagesRef:r},children:e})},Pl=({message:e,isNewSender:t})=>{var n,r,o,i,s,A;const{settings:a}=ie(),{styles:l}=fe(),c=typeof e.content=="string",u=e.content,d=e.contentWrapper?_(e.contentWrapper,{children:u}):u,p={backgroundColor:(n=a.general)==null?void 0:n.primaryColor,color:"#fff",maxWidth:(r=a.userBubble)!=null&&r.showAvatar?"65%":"70%",...l.userBubbleStyle},h=(o=a.userBubble)!=null&&o.animate?"rcb-user-message-entry":"",m=((i=a.userBubble)==null?void 0:i.showAvatar)&&t,f="rcb-user-message"+(!t&&(s=a.userBubble)!=null&&s.showAvatar?" rcb-user-message-offset":"");return _("div",{className:"rcb-user-message-container",children:[c?_("div",{style:p,className:`${f} ${h}`,children:d}):_(le,{children:d}),m&&_("div",{style:{backgroundImage:`url("${(A=a.userBubble)==null?void 0:A.avatar}")`},className:"rcb-message-user-avatar"})]})},Cl=({message:e,isNewSender:t})=>{var n,r,o,i,s,A;const{settings:a}=ie(),{styles:l}=fe(),c=typeof e.content=="string",u=e.content,d=e.contentWrapper?_(e.contentWrapper,{children:u}):u,p={backgroundColor:(n=a.general)==null?void 0:n.secondaryColor,color:"#fff",maxWidth:(r=a.botBubble)!=null&&r.showAvatar?"65%":"70%",...l.botBubbleStyle},h=(o=a.botBubble)!=null&&o.animate?"rcb-bot-message-entry":"",m=((i=a.botBubble)==null?void 0:i.showAvatar)&&t,f="rcb-bot-message"+(!t&&(s=a.botBubble)!=null&&s.showAvatar?" rcb-bot-message-offset":"");return _("div",{className:"rcb-bot-message-container",children:[m&&_("div",{style:{backgroundImage:`url("${(A=a.botBubble)==null?void 0:A.avatar}")`},className:"rcb-message-bot-avatar"}),c?_("div",{style:p,className:`${f} ${h}`,children:d}):_(le,{children:d})]})},Dl=()=>{var e,t,n;const{settings:r}=ie(),{styles:o}=fe(),i=(e=r.botBubble)!=null&&e.animate?"rcb-bot-message-entry":"";return _("div",{className:"rcb-bot-message-container",children:[((t=r.botBubble)==null?void 0:t.showAvatar)&&_("div",{style:{backgroundImage:`url("${(n=r.botBubble)==null?void 0:n.avatar}")`},className:"rcb-message-bot-avatar"}),_("div",{onMouseDown:s=>{s.preventDefault()},className:`rcb-bot-message ${i}`,children:_("div",{className:"rcb-typing-indicator",style:{...o==null?void 0:o.rcbTypingIndicatorContainerStyle},children:[_("span",{className:"rcb-dot",style:{...o==null?void 0:o.rcbTypingIndicatorDotStyle}}),_("span",{className:"rcb-dot",style:{...o==null?void 0:o.rcbTypingIndicatorDotStyle}}),_("span",{className:"rcb-dot",style:{...o==null?void 0:o.rcbTypingIndicatorDotStyle}})]})})]})},Sl=()=>{var e,t,n;const{settings:r}=ie(),{styles:o}=fe(),{messages:i}=Br(),{scrollToBottom:s}=Ge(),{isBotTyping:A,syncedIsScrollingRef:a}=Ce(),{chatBodyRef:l}=ke(),c={...o==null?void 0:o.bodyStyle,scrollbarWidth:(e=r.chatWindow)!=null&&e.showScrollbar?"auto":"none"};return J(()=>{a.current||s()},[(t=l.current)==null?void 0:t.scrollHeight]),_("div",{style:c,className:"rcb-chat-body-container",ref:l,children:[i.map((u,d)=>{const p=(h=>h===0||i[h].sender!==i[h-1].sender)(d);return u.sender.toUpperCase()==="USER"?_(Pl,{message:u,isNewSender:p},d):u.sender.toUpperCase()==="BOT"?_(Cl,{message:u,isNewSender:p},d):_("div",{children:u.content},d)}),A&&((n=r.chatWindow)==null?void 0:n.showTypingIndicator)&&_(Dl,{}),_(_l,{})]})},Bl=({checkboxes:e,checkedItems:t,path:n})=>{var r,o,i,s,A,a,l,c,u,d,p;const{settings:h}=ie(),{styles:m}=fe(),{paths:f}=pn(),{handleSubmitText:b}=Xt(),[y,g]=ee(new Set),[x,k]=ee(!1),E={cursor:x?`url("${(r=h.general)==null?void 0:r.actionDisabledIcon}"), auto`:"pointer",color:(o=h.general)==null?void 0:o.primaryColor,borderColor:(i=h.general)==null?void 0:i.primaryColor,...m.botCheckboxRowStyle},C={cursor:x||y.size<e.min?`url("${(s=h.general)==null?void 0:s.actionDisabledIcon}"), auto`:"pointer",color:(A=h.general)==null?void 0:A.primaryColor,borderColor:(a=h.general)==null?void 0:a.primaryColor,...m.botCheckboxNextStyle},I={cursor:x?`url("${(l=h.general)==null?void 0:l.actionDisabledIcon}"), auto`:"pointer",color:"transparent",...m.botCheckMarkStyle},D={cursor:x?`url("${(c=h.general)==null?void 0:c.actionDisabledIcon}"), auto`:"pointer",color:"#fff",borderColor:(u=h.general)==null?void 0:u.primaryColor,backgroundColor:(d=h.general)==null?void 0:d.primaryColor,...m.botCheckMarkSelectedStyle};return J(()=>{f.length>0&&f[f.length-1]!==n&&k(!e.reusable)},[f]),_("div",{className:"rcb-checkbox-container "+((p=h.botBubble)!=null&&p.showAvatar?"rcb-checkbox-offset":""),children:[e.items.map(P=>_("div",{onMouseDown:S=>{S.preventDefault(),(B=>{x||g(L=>{const R=new Set(L);if(R.has(B))t.delete(B),R.delete(B);else{if(y.size==e.max)return L;t.add(B),R.add(B)}return R})})(P)},style:E,className:"rcb-checkbox-row-container",children:_("div",{className:"rcb-checkbox-row",children:[_("div",{style:y.has(P)?D:I,className:"rcb-checkbox-mark"}),_("div",{className:"rcb-checkbox-label",children:P})]})},P)),_("div",{style:C,className:"rcb-checkbox-next-button",onMouseDown:P=>{var S;if(P.preventDefault(),x||y.size<e.min)return;const B=Array.from(t).join(", ");let L;k(!e.reusable),L=e.sendOutput!=null?e.sendOutput:((S=h.chatInput)==null?void 0:S.sendCheckboxOutput)??!0,b(B,L)}})]})},Il=async(e,t)=>{const n=e.checkboxes;if(!n)return;let r;if(typeof n=="function"?(r=n(t),r instanceof Promise&&(r=await r)):r=n,Array.isArray(r)&&(r={items:r}),!("items"in r)||r.items.length==0)return;r.min==null&&(r.min=1),r.max==null&&(r.max=r.items.length),r.min>r.max&&(r.min=r.max),r.reusable==null&&(r.reusable=!1);const o=new Set,i=t.currPath,s=_(Bl,{checkboxes:r,checkedItems:o,path:i});await t.injectMessage(s)},Tl=async(e,t)=>{const n=e.function;if(!n)return;const r=n(t);return r instanceof Promise?await r:r},Ql=async(e,t,n)=>{const r=e.message;if(!r)return;if(typeof r=="string")return void(r.trim()!==""&&(n?await t.simulateStreamMessage(r):await t.injectMessage(r)));let o=r(t);o instanceof Promise&&(o=await o),typeof o=="string"&&o.trim()!==""&&(n?await t.simulateStreamMessage(o):await t.injectMessage(o))},Ml=({options:e,path:t})=>{var n,r,o,i,s,A;const{settings:a}=ie(),{styles:l}=fe(),{paths:c}=pn(),{handleSubmitText:u}=Xt(),[d,p]=ee([]),[h,m]=ee(!1),f={cursor:h?`url("${(n=a.general)==null?void 0:n.actionDisabledIcon}"), auto`:"pointer",color:(r=a.general)==null?void 0:r.primaryColor,borderColor:(o=a.general)==null?void 0:o.primaryColor,backgroundColor:"#fff",...l.botOptionStyle},b={color:"#fff",borderColor:(i=a.general)==null?void 0:i.primaryColor,backgroundColor:(s=a.general)==null?void 0:s.primaryColor,...l.botOptionHoveredStyle};return J(()=>{c.length>0&&c[c.length-1]!==t&&m(!e.reusable)},[c]),_("div",{className:"rcb-options-container "+((A=a.botBubble)!=null&&A.showAvatar?"rcb-options-offset":""),children:e.items.map((y,g)=>{const x=d[g]&&!h;return _("div",{className:"rcb-options",style:x?b:f,onMouseEnter:()=>(k=>{p(E=>{const C=[...E];return C[k]=!0,C})})(g),onMouseLeave:()=>(k=>{p(E=>{const C=[...E];return C[k]=!1,C})})(g),onMouseDown:k=>{var E;if(k.preventDefault(),h)return;let C;m(!e.reusable),C=e.sendOutput!=null?e.sendOutput:((E=a.chatInput)==null?void 0:E.sendOptionOutput)??!0,u(y,C)},children:y},y)})})},Ol=async(e,t)=>{const n=e.options;if(!n)return;let r;if(typeof n=="function"?(r=n(t),r instanceof Promise&&(r=await r)):r=n,Array.isArray(r)&&(r={items:r}),!("items"in r)||r.items.length==0)return;r.reusable==null&&(r.reusable=!1);const o=t.currPath,i=_(Ml,{options:r,path:o});await t.injectMessage(i)},Nl=async(e,t)=>{const n=e.component;if(n){if(typeof n=="function"){let r=n(t);return r instanceof Promise&&(r=await r),r?void await t.injectMessage(r):void 0}await t.injectMessage(n)}},Ll=async(e,t,n,r)=>{const o=e.transition;let i;if(typeof o=="function"?(i=o(t),i instanceof Promise&&(i=await i)):i=o,typeof i=="number"&&(i={duration:i}),!i||i instanceof Promise||i.duration==null||typeof i.duration!="number")return;i.interruptable==null&&(i.interruptable=!1);const s=setTimeout(async()=>{const A=await r(e);A&&await ta(A,t)},i.duration);i.interruptable&&(n.current=s)},Rl=async(e,t,n)=>{const r=e.chatDisabled;if(r==null)return;let o;typeof r=="function"?(o=r(t),o instanceof Promise&&(o=await o)):o=r,n(o)},ea=async(e,t,n)=>{const r=e.isSensitive;if(!r)return void n(!1);let o;typeof r=="function"?(o=r(t),o instanceof Promise&&(o=await o)):o=r,n(o)},ta=async(e,t)=>{if(!e)throw new Error("Block is not valid.");const n=Object.keys(e);for(const r of n)r==="function"&&await Tl(e,t);n.includes("path")&&await(async(r,o)=>{const i=r.path;if(!i)return!1;if(typeof i=="string")return await o.goToPath(i),!0;let s=i(o);if(s instanceof Promise&&(s=await s),!s)return!1;const A=s;return await o.goToPath(A),!0})(e,t)},Hl=()=>{var e;const{settings:t}=ie(),{styles:n}=fe();return _("div",{className:"rcb-line-break-container",children:_("div",{style:{...n.chatHistoryLineBreakStyle},className:"rcb-line-break-text","data-testid":"chat-history-line-break-text",children:(e=t.chatHistory)==null?void 0:e.chatHistoryLineBreakText})})},Ul=()=>{var e;const{settings:t}=ie(),{styles:n}=fe(),r={borderTop:`4px solid ${(e=t.general)==null?void 0:e.primaryColor}`,...n.loadingSpinnerStyle};return _("div",{className:"rcb-spinner-container",children:_("div",{style:r,className:"rcb-spinner"})})},On=()=>{try{if(typeof crypto<"u"&&typeof crypto.randomUUID=="function")return crypto.randomUUID();throw new Error("crypto.randomUUID not available")}catch(e){if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function")return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const n=crypto.getRandomValues(new Uint8Array(1))[0]%16;return(t==="x"?n:3&n|8).toString(16)});throw console.error(e),new Error("crypto.getRandomValues is also not available")}},_t=(e,t)=>({id:On(),content:e,sender:t,type:typeof e=="string"?"string":"object",timestamp:new Date().toUTCString(),tags:[]});let kt,na=!1,Nn="rcb-history",Ln=30,ra=!1,fn=[];const Ir=async e=>{if(ra||!kt)return;const t=[],n=na?fn.length:0;for(let o=e.length-1;o>=n;o--){const i=e[o];if(i.sender.toUpperCase()!=="SYSTEM"&&(i.content!==""&&t.unshift(i),t.length===Ln))break}let r=t.map(zl);if(r.length<Ln){const o=Ln-r.length;r=[...fn.slice(-o),...r]}oa(r)},Tr=()=>fn,Fl=e=>{oa(e),fn=e},oa=e=>{kt&&kt.setItem(Nn,JSON.stringify(e))},Qr=e=>{var t,n,r,o,i;kt=((n=(t=e.chatHistory)==null?void 0:t.storageType)==null?void 0:n.toUpperCase())==="SESSION_STORAGE"?sessionStorage:localStorage,Nn=(r=e.chatHistory)==null?void 0:r.storageKey,Ln=(o=e.chatHistory)==null?void 0:o.maxEntries,ra=(i=e.chatHistory)==null?void 0:i.disabled,fn=(s=>{if(s!=null)try{return JSON.parse(s)}catch{return[]}return[]})(kt.getItem(Nn))},zl=e=>Tt(e.content)?structuredClone({id:e.id,content:Al.renderToString(e.content),type:e.type,sender:e.sender.toUpperCase(),timestamp:e.timestamp,tags:e.tags}):e,ia=(e,t,n)=>{const r=new DOMParser().parseFromString(e,"text/html");return Array.from(r.body.childNodes).map((o,i)=>{var s;if(o.nodeType===Node.TEXT_NODE)return o.textContent;{const A=o.tagName.toLowerCase();let a=Array.from(o.attributes).reduce((l,c)=>{const u=c.name.toLowerCase();if(u==="style"){const d=c.value.split(";").filter(h=>h.trim()!==""),p={};d.forEach(h=>{const[m,f]=h.split(":").map(y=>y.trim()),b=m.replace(/-([a-z])/g,(y,g)=>g.toUpperCase());p[b]=f}),l[u]=p}else A!=="audio"&&A!=="video"||u!=="controls"||c.value!==""?l[u]=c.value:l[u]="true";return l},{});if(Object.prototype.hasOwnProperty.call(a,"class")){const l=o.classList;a.className=l.toString(),delete a.class,(s=t.botBubble)!=null&&s.showAvatar&&(a=jl(l,a)),a=ql(l,a,t,n),a=Wl(l,a,t,n),a=Gl(l,a,t,n),a=Yl(l,a,t,n)}if(["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"].includes(A))return Ae(A,{key:i,...a});{const l=ia(o.innerHTML,t,n);return Ae(A,{key:i,...a},...l)}}})},jl=(e,t)=>((e.contains("rcb-options-container")||e.contains("rcb-checkbox-container"))&&(t.className=`${e.toString()} rcb-options-offset`),t),ql=(e,t,n,r)=>{var o,i,s,A,a;return e.contains("rcb-options")&&(t.style={...t.style,color:((o=r.botOptionStyle)==null?void 0:o.color)??((i=n.general)==null?void 0:i.primaryColor),borderColor:((s=r.botOptionStyle)==null?void 0:s.color)??((A=n.general)==null?void 0:A.primaryColor),cursor:`url("${(a=n.general)==null?void 0:a.actionDisabledIcon}"), auto`,...r.botOptionStyle}),t},Wl=(e,t,n,r)=>{var o,i,s,A,a;return e.contains("rcb-checkbox-row-container")&&(t.style={...t.style,color:((o=r.botCheckboxRowStyle)==null?void 0:o.color)??((i=n.general)==null?void 0:i.primaryColor),borderColor:((s=r.botCheckboxRowStyle)==null?void 0:s.color)??((A=n.general)==null?void 0:A.primaryColor),cursor:`url("${(a=n.general)==null?void 0:a.actionDisabledIcon}"), auto`,...r.botCheckboxRowStyle}),t},Gl=(e,t,n,r)=>{var o,i,s,A,a;return e.contains("rcb-checkbox-next-button")&&(t.style={...t.style,color:((o=r.botCheckboxNextStyle)==null?void 0:o.color)??((i=n.general)==null?void 0:i.primaryColor),borderColor:((s=r.botCheckboxNextStyle)==null?void 0:s.color)??((A=n.general)==null?void 0:A.primaryColor),cursor:`url("${(a=n.general)==null?void 0:a.actionDisabledIcon}"), auto`,...r.botCheckboxNextStyle}),t},Yl=(e,t,n,r)=>{var o,i;return(e.contains("rcb-media-display-image-container")||e.contains("rcb-media-display-video-container"))&&(t.style={...t.style,backgroundColor:(o=n.general)==null?void 0:o.primaryColor,maxWidth:(i=n.userBubble)!=null&&i.showAvatar?"65%":"70%",...r.mediaDisplayContainerStyle}),t},Mr=()=>{const{settings:e}=ie(),{notificationsToggledOn:t,setSyncedNotificationsToggledOn:n,hasInteractedPage:r,unreadCount:o,setUnreadCount:i,syncedNotificationsToggledOnRef:s}=Ce(),{audioBufferRef:A,audioContextRef:a,gainNodeRef:l}=ke(),{dispatchRcbEvent:c}=rt(),u=G(async()=>{var p,h;const m=(p=e.notification)==null?void 0:p.sound;a.current=new AudioContext;const f=a.current.createGain();let b;if(f.gain.value=((h=e.notification)==null?void 0:h.volume)??.2,l.current=f,m!=null&&m.startsWith("data:audio")){const y=atob(m.split(",")[1]),g=new ArrayBuffer(y.length),x=new Uint8Array(g);for(let k=0;k<y.length;k++)x[k]=y.charCodeAt(k);b=g}else b=await(await fetch(m)).arrayBuffer();A.current=await a.current.decodeAudioData(b)},[e.notification]),d=G(()=>{var p;if((p=e.notification)!=null&&p.disabled||!s.current||!r||!a.current||!A.current)return;const h=a.current.createBufferSource();h.buffer=A.current,h.connect(l.current).connect(a.current.destination),h.start()},[e.notification,s,r,a,A,l]);return{unreadCount:o,setUnreadCount:i,notificationsToggledOn:t,toggleNotifications:G(async p=>{var h;p!==s.current&&((h=e.event)!=null&&h.rcbToggleNotifications&&(await c(j.TOGGLE_NOTIFICATIONS,{currState:s.current,newState:!s.current})).defaultPrevented||n(m=>!m))},[s]),playNotificationSound:d,setUpNotifications:u}},Kl=(e,t)=>{var n,r,o,i;((s,A,a,l,c)=>{if(!window.SpeechSynthesisUtterance)return void console.info("Speech Synthesis API is not supported in this environment.");const u=new window.SpeechSynthesisUtterance;u.text=s,u.lang=A,u.rate=l,u.volume=c;let d=!1;for(const p of a)if(window.speechSynthesis.getVoices().find(h=>{if(h.name===p)return u.voice=h,window.speechSynthesis.speak(u),void(d=!0)}),d)break;d||window.speechSynthesis.speak(u)})(t,(n=e.audio)==null?void 0:n.language,(r=e.audio)==null?void 0:r.voiceNames,(o=e.audio)==null?void 0:o.rate,(i=e.audio)==null?void 0:i.volume)},aa=()=>{const{settings:e}=ie(),{audioToggledOn:t,setSyncedAudioToggledOn:n,syncedAudioToggledOnRef:r}=Ce(),{dispatchRcbEvent:o}=rt(),i=G(async A=>{var a;A!==r.current&&((a=e.event)!=null&&a.rcbToggleAudio&&(await o(j.TOGGLE_AUDIO,{currState:r.current,newState:!r.current})).defaultPrevented||n(l=>!l))},[r]),s=G(async A=>{var a,l;if((a=e.audio)!=null&&a.disabled||!r.current)return;let c=A;if((l=e.event)!=null&&l.rcbStartSpeakAudio){const u=await o(j.START_SPEAK_AUDIO,{textToRead:c});if(u.defaultPrevented)return;c=u.data.textToRead}Kl(e,c)},[e,r]);return{audioToggledOn:t,speakAudio:s,toggleAudio:i}},Mt=()=>{var e,t;const{settings:n}=ie(),{messages:r,setSyncedMessages:o,syncedMessagesRef:i}=Br(),{setSyncedIsBotTyping:s,setUnreadCount:A,syncedIsScrollingRef:a,syncedIsChatWindowOpenRef:l}=Ce(),{streamMessageMap:c,chatBodyRef:u,paramsInputRef:d}=ke(),{scrollToBottom:p,getIsChatBotVisible:h}=Ge(),{dispatchRcbEvent:m}=rt(),{speakAudio:f}=aa(),{playNotificationSound:b}=Mr(),y=G((D,P=!1)=>{var S,B;Ir(D);let L=!0;const R=D[D.length-1];if(!R)return;const Q=R.sender.toUpperCase();Q==="USER"&&(L=!1),(S=n.general)!=null&&S.embedded&&h()&&(L=!1),(l.current&&!a.current||P)&&(L=!1),L&&b(),!P&&(Q!=="USER"&&(B=n.chatWindow)!=null&&B.autoJumpToBottom||Q==="USER"||!a.current)&&setTimeout(()=>p(),1)},[n,u,l,a,b,p,h]),g=G(async(D,P="BOT",S=null)=>{var B,L,R,Q,z;if(typeof D!="string")throw new Error("Content must be of type string to simulate stream.");P=P.toUpperCase();let N=_t(D,P);if((B=n.event)!=null&&B.rcbStartSimulateStreamMessage){const V=await m(j.START_SIMULATE_STREAM_MESSAGE,{message:N});if(V.defaultPrevented)return null;S=V.data.simulateStreamChunker||S,N=V.data.message}s(!1);let H=30;H=P==="BOT"?(L=n.botBubble)==null?void 0:L.streamSpeed:(R=n.userBubble)==null?void 0:R.streamSpeed;const v={...N,content:""};o(V=>[...V,v]),y(i.current);let q=N.content;S&&(q=S(q));let w=0;const W=q.length;N.sender.toUpperCase()==="BOT"&&(l.current||(Q=n.general)!=null&&Q.embedded)&&typeof N.content=="string"&&N.content.trim()!==""&&f(N.content);const re=new Promise(V=>{const ce=setInterval(()=>{if(w>=W)return clearInterval(ce),void V();o(Le=>{const xe=[...Le];for(let Fe=xe.length-1;Fe>=0;Fe--)if(xe[Fe].id===v.id){const U=q[w];U&&(v.content+=U,xe[Fe]=v),w++;break}return xe})},H)});return(a.current||!l.current)&&A(V=>V+1),await re,Ir(i.current),(z=n.event)!=null&&z.rcbStopSimulateStreamMessage&&await m(j.STOP_SIMULATE_STREAM_MESSAGE,{message:N}),P==="USER"&&(d.current=D),N},[n,m,y,i,d,s,A,l,f]),x=G(async(D,P="BOT")=>{var S,B,L;P=P.toUpperCase();let R=_t(D,P);if((S=n.event)!=null&&S.rcbPreInjectMessage){const Q=await m(j.PRE_INJECT_MESSAGE,{message:R});if(Q.defaultPrevented)return null;R=Q.data.message}return R.sender.toUpperCase()==="BOT"&&(l.current||(B=n.general)!=null&&B.embedded)&&typeof R.content=="string"&&R.content.trim()!==""&&f(R.content),(a.current||!l.current)&&A(Q=>Q+1),(L=n.event)!=null&&L.rcbPostInjectMessage&&await m(j.POST_INJECT_MESSAGE,{message:R}),o(Q=>[...Q,R]),y(i.current),P==="USER"&&typeof D=="string"&&(d.current=D),R},[n,m,y,d,i,l,f,A]),k=G(async D=>{var P;const S=i.current.find(B=>B.id===D);return!S||(P=n.event)!=null&&P.rcbRemoveMessage&&(await m(j.REMOVE_MESSAGE,{message:S})).defaultPrevented?null:(o(B=>B.filter(L=>L.id!==D)),y(i.current),A(B=>Math.max(B-1,0)),S)},[m,(e=n.event)==null?void 0:e.rcbRemoveMessage,y,i,A]),E=G(async(D,P="BOT")=>{var S,B;if(P=P.toUpperCase(),!c.current.has(P)){const R=_t(D,P);return(S=n.event)!=null&&S.rcbStartStreamMessage&&(await m(j.START_STREAM_MESSAGE,{message:R})).defaultPrevented?null:(s(!1),o(Q=>[...Q,R]),y(i.current),c.current.set(P,R.id),(a.current||!l.current)&&A(Q=>Q+1),R)}const L={..._t(D,P),id:c.current.get(P)};return(B=n.event)!=null&&B.rcbChunkStreamMessage&&(await m(j.CHUNK_STREAM_MESSAGE,{message:L})).defaultPrevented?null:(o(R=>R.map(Q=>Q.id===L.id?L:Q)),y(i.current,!0),L)},[m,n.event,y,i,s,A,c]),C=G(async(D="BOT")=>{var P;if(D=D.toUpperCase(),!c.current.has(D))return!0;const S=c.current.get(D);let B;for(let L=0;L<3;L++){const R=i.current.find(Q=>Q.id===S);R&&(B=R),await new Promise(Q=>setTimeout(Q,20))}return((P=n.event)==null||!P.rcbStopStreamMessage||!(await m(j.STOP_STREAM_MESSAGE,{message:B})).defaultPrevented)&&(c.current.delete(D),Ir(i.current),D==="USER"&&typeof(B==null?void 0:B.content)=="string"&&(d.current=B.content),!0)},[m,(t=n.event)==null?void 0:t.rcbStopStreamMessage,c,d]),I=G(D=>{const P=typeof D=="function"?D(i.current):D;o(P),y(P)},[y,i]);return{simulateStreamMessage:g,injectMessage:x,removeMessage:k,streamMessage:E,endStreamMessage:C,replaceMessages:I,messages:r}};let Or,At,Rn,Pt=!1,lt=null;const Nr=()=>{if(!Or){const e=window.SpeechRecognition||window.webkitSpeechRecognition;Or=e!=null?new e:null}return Or},Xl=(e,t,n,r,o,i)=>{var s,A,a;const l=Nr();if(!l)return;if(!Pt)try{Pt=!0,l.lang=(s=e.voice)==null?void 0:s.language,l.start()}catch{}const c=(A=e.voice)==null?void 0:A.timeoutPeriod,u=(a=e.voice)==null?void 0:a.autoSendPeriod;l.onresult=d=>{var p,h;clearTimeout(At),At=null,clearTimeout(Rn);const m=d.results[d.results.length-1][0].transcript;if(i.current){const f=(p=e.chatInput)==null?void 0:p.characterLimit,b=i.current.value+m;f!=null&&f>=0&&b.length>f?r(b.slice(0,f)):r(b),o(i.current.value.length)}c&&(At=setTimeout(async()=>await Rr(t,i),c)),(h=e.voice)!=null&&h.autoSendDisabled||(Rn=setTimeout(n,u))},l.onend=()=>{Pt?(l.start(),!At&&c&&(At=setTimeout(async()=>await Rr(t,i),c))):(clearTimeout(At),At=null,clearTimeout(Rn))},c&&(At=setTimeout(async()=>await Rr(t,i),c))},Vl=(e,t)=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(n=>{if(lt=new MediaRecorder(n),!Pt)try{Pt=!0,lt.start()}catch{}lt.ondataavailable=r=>{t.current&&t.current.push(r.data)},lt.onstop=()=>{e(),n.getTracks().forEach(r=>r.stop())}}).catch(n=>{console.error("Unable to use microphone:",n)})},Lr=()=>{const e=Nr();e&&(Pt=!1,e&&e.stop(),lt&&lt.state!=="inactive"&&(lt.stop(),lt=null),clearTimeout(At),At=null,clearTimeout(Rn))},Rr=async(e,t)=>{var n;(n=t.current)!=null&&n.disabled||await e(),Lr()},Hr=()=>{const{settings:e}=ie(),{voiceToggledOn:t,setSyncedVoiceToggledOn:n,syncedVoiceToggledOnRef:r}=Ce(),{dispatchRcbEvent:o}=rt(),i=G(async A=>{var a;A!==r.current&&((a=e.event)!=null&&a.rcbToggleVoice&&(await o(j.TOGGLE_VOICE,{currState:r.current,newState:!r.current})).defaultPrevented||n(l=>!l))},[r]),s=G(A=>{((a,l)=>{var c,u,d;const p=Nr();(c=l.voice)!=null&&c.disabled||(u=l.chatInput)==null||!u.blockSpam||!p||(a&&!Pt?(Pt=!0,(d=l.voice)!=null&&d.sendAsAudio?lt==null||lt.start():p.start()):a||Lr())})(A,e)},[e]);return{voiceToggledOn:t,toggleVoice:i,syncVoice:s}},Ot=()=>{var e;const{settings:t}=ie(),{inputLength:n,setInputLength:r,textAreaDisabled:o,setSyncedTextAreaDisabled:i,textAreaSensitiveMode:s,setSyncedTextAreaSensitiveMode:A,syncedTextAreaDisabledRef:a,syncedTextAreaSensitiveModeRef:l}=Ce(),{inputRef:c,chatBodyRef:u,prevInputRef:d}=ke(),{dispatchRcbEvent:p}=rt(),{getIsChatBotVisible:h}=Ge(),m=G(async E=>{var C,I,D;if(a.current&&c.current)c.current.value="";else if(c.current&&d.current!==null){const P=(C=t.chatInput)==null?void 0:C.characterLimit,S=(I=t.chatInput)!=null&&I.allowNewline?E:E.replace(/\n/g," ");if(P!=null&&P>=0&&S.length>P?c.current.value=S.slice(0,P):c.current.value=S,(D=t.event)!=null&&D.rcbTextAreaChangeValue&&(await p(j.TEXT_AREA_CHANGE_VALUE,{currValue:c.current.value,prevValue:d.current})).defaultPrevented)return void(c.current.value=d.current);d.current=c.current.value}},[a,c,d,t,p]),f=G(E=>{var C;(C=c.current)!=null&&C.disabled||setTimeout(()=>{var I,D,P;(I=t.general)!=null&&I.embedded?h()&&((D=c.current)==null||D.focus()):E!=="start"&&((P=c.current)==null||P.focus())},100)},[c,(e=t.general)==null?void 0:e.embedded,u,h]),b=G(()=>{c.current&&c.current.focus()},[]),y=G(()=>{c.current&&c.current.blur()},[]),g=G(()=>c&&c.current?c.current.value:"",[]),x=G(E=>{E!==a.current&&i(C=>!C)},[a]),k=G(E=>{E!==l.current&&A(C=>!C)},[l]);return{textAreaDisabled:o,setSyncedTextAreaDisabled:i,textAreaSensitiveMode:s,setSyncedTextAreaSensitiveMode:A,inputLength:n,setInputLength:r,getTextAreaValue:g,setTextAreaValue:m,updateTextAreaFocus:f,focusTextArea:b,blurTextArea:y,toggleTextAreaDisabled:x,toggleTextAreaSensitiveMode:k}},sa=nt({toasts:[],setSyncedToasts:()=>{},syncedToastsRef:{current:[]}}),Aa=()=>Ve(sa),$l=({children:e})=>{const[t,n,r]=We([]);return _(sa.Provider,{value:{toasts:t,setSyncedToasts:n,syncedToastsRef:r},children:e})},Kt=()=>{const{settings:e}=ie(),{toasts:t,setSyncedToasts:n,syncedToastsRef:r}=Aa(),{dispatchRcbEvent:o}=rt(),i=G(async(a,l)=>{var c,u,d,p;let h=null;if(r.current.length>=(((c=e.toast)==null?void 0:c.maxCount)??3)){if((u=e.toast)!=null&&u.forbidOnMax)return null;h=On();let f={id:h,content:a,timeout:l};if((d=e.event)!=null&&d.rcbShowToast){const b=await o(j.SHOW_TOAST,{toast:f});if(b.defaultPrevented)return null;f=b.data.toast}return n(b=>[...b.slice(1),f]),h}h=On();let m={id:h,content:a,timeout:l};if((p=e.event)!=null&&p.rcbShowToast){const f=await o(j.SHOW_TOAST,{toast:m});if(f.defaultPrevented)return null;m=f.data.toast}return n(f=>[...f,m]),h},[e,o]),s=G(async a=>{var l;const c=r.current.find(u=>u.id===a);return!c||(l=e.event)!=null&&l.rcbDismissToast&&(await o(j.DISMISS_TOAST,{toast:c})).defaultPrevented?null:(n(u=>u.filter(d=>d.id!==a)),a)},[o]),A=G(a=>{const l=typeof a=="function"?a(r.current):a;n(l)},[r]);return{showToast:i,dismissToast:s,toasts:t,replaceToasts:A}},Hn=()=>{var e,t,n,r,o;const{settings:i}=ie(),{paths:s,setSyncedPaths:A,syncedPathsRef:a}=pn(),{flowRef:l,streamMessageMap:c,paramsInputRef:u,keepVoiceOnRef:d,timeoutIdRef:p}=ke(),{setSyncedIsBotTyping:h,setSyncedTextAreaDisabled:m,setSyncedTextAreaSensitiveMode:f,blockAllowsAttachment:b,setBlockAllowsAttachment:y}=Ce(),{dispatchRcbEvent:g}=rt(),{endStreamMessage:x,injectMessage:k,removeMessage:E,simulateStreamMessage:C,streamMessage:I}=Mt(),{showToast:D,dismissToast:P}=Kt(),{toggleChatWindow:S}=Ge(),{updateTextAreaFocus:B,setTextAreaValue:L}=Ot(),{syncVoice:R}=Hr(),Q=G(async w=>{var W;if((W=i.event)!=null&&W.rcbPostProcessBlock){const re=await g(j.POST_PROCESS_BLOCK,{block:w});if(re.defaultPrevented)return null;w=re.data.block}return w},[(e=i.event)==null?void 0:e.rcbPostProcessBlock,g]),z=G(async(w,W)=>{var re,V,ce,Le;if(!w)return;let xe=l.current[w];if(!xe)return void h(!1);if((re=i.event)!=null&&re.rcbPreProcessBlock){const U=await g(j.PRE_PROCESS_BLOCK,{block:xe});if(U.defaultPrevented)return;xe=U.data.block}h(!0),(V=i.chatInput)!=null&&V.blockSpam&&m(!0),f(!1);const Fe={prevPath:W,currPath:w,goToPath:v,setTextAreaValue:L,userInput:u.current,endStreamMessage:x,injectMessage:k,removeMessage:E,simulateStreamMessage:C,streamMessage:I,toggleChatWindow:S,showToast:D,dismissToast:P};await(async(U,Y,ue,ae,de,he,ge)=>{if(!U)throw new Error("Block is not valid.");for(const De of Object.keys(U))switch(De){case"message":await Ql(U,Y,ue);break;case"options":await Ol(U,Y);break;case"checkboxes":await Il(U,Y);break;case"component":await Nl(U,Y);break;case"chatDisabled":await Rl(U,Y,de);break;case"isSensitive":await ea(U,Y,he);break;case"transition":await Ll(U,Y,ae,ge)}})(xe,Fe,((ce=i.botBubble)==null?void 0:ce.simulateStream)??!1,p,m,f,Q),h(!1),"chatDisabled"in xe||m((Le=i.chatInput)==null?void 0:Le.disabled),"isSensitive"in xe||f(!1),y(typeof xe.file=="function"),B(w),R(d.current&&!xe.chatDisabled),w!==W&&c.current.clear()},[l,B,R,(t=i.botBubble)==null?void 0:t.simulateStream,(n=i.chatInput)==null?void 0:n.disabled,u,x,k,E,C,I,S,D,P,d,c]),N=G(()=>a.current.length>0?a.current.at(-1)??null:null,[]),H=G(()=>a.current.length>1?a.current.at(-2)??null:null,[]),v=G(async w=>{var W;const re=N(),V=H();return((W=i.event)==null||!W.rcbChangePath||!(await g(j.CHANGE_PATH,{currPath:re,prevPath:V,nextPath:w})).defaultPrevented)&&(A(ce=>[...ce,w]),await z(w,re),!0)},[(r=i.chatInput)==null?void 0:r.blockSpam,(o=i.event)==null?void 0:o.rcbChangePath,z,g]),q=G(w=>{const W=typeof w=="function"?w(a.current):w;A(W)},[a]);return{getCurrPath:N,getPrevPath:H,goToPath:v,blockAllowsAttachment:b,setBlockAllowsAttachment:y,paths:s,replacePaths:q,firePostProcessBlockEvent:Q}},Xt=()=>{var e,t,n,r;const{settings:o}=ie(),{endStreamMessage:i,injectMessage:s,removeMessage:A,simulateStreamMessage:a,streamMessage:l}=Mt(),{syncedPathsRef:c}=pn(),{getCurrPath:u,getPrevPath:d,goToPath:p,firePostProcessBlockEvent:h}=Hn(),{setSyncedTextAreaSensitiveMode:m,setSyncedTextAreaDisabled:f,setSyncedIsBotTyping:b,setBlockAllowsAttachment:y,setInputLength:g,syncedVoiceToggledOnRef:x,syncedTextAreaSensitiveModeRef:k}=Ce(),{flowRef:E,inputRef:C,keepVoiceOnRef:I,paramsInputRef:D,timeoutIdRef:P}=ke(),{showToast:S,dismissToast:B}=Kt(),{dispatchRcbEvent:L}=rt(),{syncVoice:R}=Hr(),{setTextAreaValue:Q}=Ot(),{toggleChatWindow:z}=Ge(),N=G(async v=>{var q,w,W,re,V,ce;const Le=u();if(Le&&E.current[Le]){if(k.current){if((q=o==null?void 0:o.sensitiveInput)!=null&&q.hideInUserBubble)return;if((w=o==null?void 0:o.sensitiveInput)!=null&&w.maskInUserBubble)return void((W=o.userBubble)!=null&&W.simulateStream?await a("*".repeat(((re=o.sensitiveInput)==null?void 0:re.asterisksCount)??10),"USER"):await s("*".repeat(((V=o.sensitiveInput)==null?void 0:V.asterisksCount)??10),"USER"))}(ce=o.userBubble)!=null&&ce.simulateStream?await a(v,"USER"):await s(v,"USER")}},[E,u,o,s,a,k]),H=G(async(v,q=!0)=>{var w,W;if((v=v.trim())==="")return;q&&await N(v),P.current&&clearTimeout(P.current),C.current&&(Q(""),g(0));const re=u();if(!re)return;let V=E.current[re];const ce=await h(V);ce&&((w=o.chatInput)!=null&&w.blockSpam&&f(!0),I.current=x.current,R(!1),setTimeout(()=>{b(!0)},400),m(!1),setTimeout(async()=>{var Le;const xe={prevPath:d(),currPath:u(),goToPath:p,setTextAreaValue:Q,userInput:D.current,injectMessage:s,simulateStreamMessage:a,streamMessage:l,removeMessage:A,endStreamMessage:i,toggleChatWindow:z,showToast:S,dismissToast:B},Fe=c.current.length;await ta(ce,xe),c.current.length===Fe&&(f("chatDisabled"in V?!!V.chatDisabled:!((Le=o.chatInput)==null||!Le.disabled)),ea(V,xe,m),y(typeof V.file=="function"),R(I.current),b(!1))},(W=o.chatInput)==null?void 0:W.botDelay))},[P,(e=o.chatInput)==null?void 0:e.blockSpam,(t=o.chatInput)==null?void 0:t.botDelay,(n=o.chatInput)==null?void 0:n.disabled,I,x,R,N,d,u,p,s,a,l,A,i,z,S,B,E]);return{handleSubmitText:G(async(v,q=!0)=>{var w,W;v=v??((w=C.current)==null?void 0:w.value),!((W=o.event)!=null&&W.rcbUserSubmitText&&(await L(j.USER_SUBMIT_TEXT,{inputText:v,sendInChat:q})).defaultPrevented||!u())&&H(v,q)},[L,u,H,C,(r=o.event)==null?void 0:r.rcbUserSubmitText])}},Un=()=>{var e;const{settings:t}=ie();return _e(()=>{var n;if(typeof window>"u"||!window.navigator)return!1;if((n=t.device)==null||!n.applyMobileOptimizations)return!0;const r=navigator.userAgent,o=!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(r),i=window.innerWidth>=768;return o&&i},[(e=t.device)==null?void 0:e.applyMobileOptimizations])},Jl=({buttons:e})=>{var t,n,r,o,i,s,A,a,l,c,u;const d=Un(),{settings:p}=ie(),{styles:h}=fe(),{textAreaDisabled:m,textAreaSensitiveMode:f,inputLength:b,hasFlowStarted:y,setHasFlowStarted:g,setInputLength:x}=Ce(),{inputRef:k}=ke(),[E,C]=ee(!1),[I,D]=ee(!1),{handleSubmitText:P}=Xt(),{setTextAreaValue:S}=Ot(),B={boxSizing:d?"content-box":"border-box",...h.chatInputAreaStyle},L={outline:m?"":"none",boxShadow:m?"":`0 0 5px ${(t=p.general)==null?void 0:t.primaryColor}`,boxSizing:d?"content-box":"border-box",...h.chatInputAreaStyle,...h.chatInputAreaFocusedStyle},R={cursor:`url("${(n=p.general)==null?void 0:n.actionDisabledIcon}"), auto`,caretColor:"transparent",boxSizing:d?"content-box":"border-box",...h.chatInputAreaStyle,...h.chatInputAreaDisabledStyle},Q={color:"#989898",...h.characterLimitStyle},z={color:"#ff0000",...h.characterLimitReachedStyle},N=m?(r=p.chatInput)==null?void 0:r.disabledPlaceholderText:(o=p.chatInput)==null?void 0:o.enabledPlaceholderText,H=()=>{m||C(!0)},v=()=>{C(!1)},q=()=>{D(!0)},w=()=>{D(!1)},W=async V=>{var ce;if(!I&&V.key==="Enter"){if(V.shiftKey)return void((ce=p.chatInput)!=null&&ce.allowNewline||V.preventDefault());V.preventDefault(),await P()}},re=V=>{k.current&&(S(V.target.value),x(k.current.value.length))};return _("div",{"aria-label":((i=p.ariaLabel)==null?void 0:i.inputTextArea)??"input text area",role:"textbox",onMouseDown:V=>{var ce;V.stopPropagation(),!y&&((ce=p.general)==null?void 0:ce.flowStartTrigger)==="ON_CHATBOT_INTERACT"&&g(!0)},style:{...h.chatInputContainerStyle},className:"rcb-chat-input",children:[f&&(s=p.sensitiveInput)!=null&&s.maskInTextArea?_("input",{ref:k,type:"password",className:"rcb-chat-input-textarea",style:m?R:E?L:B,placeholder:N,onChange:re,onKeyDown:W,onFocus:H,onBlur:v,onCompositionStart:q,onCompositionEnd:w}):_("textarea",{ref:k,style:m?R:E?L:B,rows:1,className:"rcb-chat-input-textarea",placeholder:N,onChange:re,onKeyDown:W,onFocus:H,onBlur:v,onCompositionStart:q,onCompositionEnd:w}),_(le,{children:[e==null?void 0:e.map((V,ce)=>_(le,{children:V},ce)),((A=p.chatInput)==null?void 0:A.showCharacterCount)&&((a=p.chatInput)==null?void 0:a.characterLimit)!=null&&((l=p.chatInput)==null?void 0:l.characterLimit)>0&&_("div",{className:"rcb-chat-input-char-counter",style:b>=((c=p.chatInput)==null?void 0:c.characterLimit)?z:Q,children:[b,"/",(u=p.chatInput)==null?void 0:u.characterLimit]})]})]})},Zl=({buttons:e})=>{var t;const{settings:n}=ie(),{styles:r}=fe();return _("div",{"data-testid":"chatbot-footer-container",style:{...r.footerStyle},className:"rcb-chat-footer-container",children:[_("div",{className:"rcb-chat-footer",children:e==null?void 0:e.map((o,i)=>_(le,{children:o},i))}),_("span",{children:(t=n.footer)==null?void 0:t.text})]})},ec=()=>{var e,t,n,r,o,i,s;const{settings:A}=ie(),{styles:a}=fe(),{unreadCount:l}=Ce(),{isChatWindowOpen:c,toggleChatWindow:u}=Ge(),[d,p]=ee(!1),h={backgroundImage:`linear-gradient(to right, ${(e=A.general)==null?void 0:e.secondaryColor},
3
+ ${(t=A.general)==null?void 0:t.primaryColor})`,...a.chatButtonStyle},m={transform:"scale(1.05)",...a.chatButtonStyle,...a.chatButtonHoveredStyle},f={backgroundImage:`url(${(n=A.chatButton)==null?void 0:n.icon})`,fill:"#fff",width:75,height:75,...a.chatIconStyle};return _(le,{children:!((r=A.general)!=null&&r.embedded)&&_("div",{"aria-label":((o=A.ariaLabel)==null?void 0:o.chatButton)??"open chat",role:"button",style:d?m:h,className:"rcb-toggle-button "+(c?"rcb-button-hide":"rcb-button-show"),onMouseEnter:()=>{p(!0)},onMouseLeave:()=>{p(!1)},onClick:()=>u(!0),children:[(()=>{var b;const y=(b=A.chatButton)==null?void 0:b.icon;return y&&typeof y!="string"?y&&_("span",{className:"rcb-toggle-icon",children:_(y,{style:f})}):_("span",{className:"rcb-toggle-icon",style:f})})(),!((i=A.notification)!=null&&i.disabled)&&((s=A.notification)==null?void 0:s.showCount)&&_("span",{style:{...a.notificationBadgeStyle},className:"rcb-badge",children:l})]})})},tc=()=>{var e,t,n,r;const o=Un(),{settings:i}=ie(),{styles:s}=fe(),{chatBodyRef:A}=ke(),{isChatWindowOpen:a,toggleChatWindow:l}=Ge(),[c,u]=ee(!1),[d,p]=ee(!1),[h,m]=ee(0);J(()=>{var y,g,x;const k=(y=i.tooltip)==null?void 0:y.mode;if(k==="ALWAYS")if(o){let E;E=a?(((g=A.current)==null?void 0:g.offsetWidth)??375)-(typeof((x=s.chatButtonStyle)==null?void 0:x.width)=="number"?s.chatButtonStyle.width:75):0,m(E),u(!0)}else u(!a);else k==="NEVER"?u(!1):k==="START"?d?u(!1):(p(!0),u(!0)):k==="CLOSE"&&u(!a)},[a]);const f={transform:`translateX(-${h}px)`,right:(((e=s.chatButtonStyle)==null?void 0:e.width)??75)+40,bottom:30,backgroundColor:(t=i.general)==null?void 0:t.secondaryColor,color:"#fff",...s.tooltipStyle},b={borderColor:`transparent transparent transparent ${f.backgroundColor}`};return _(le,{children:!((n=i.general)!=null&&n.embedded)&&_("div",{"data-testid":"chat-tooltip",style:f,className:"rcb-chat-tooltip "+(c?"rcb-tooltip-show":"rcb-tooltip-hide"),onClick:()=>l(!0),children:[_("span",{children:(r=i.tooltip)==null?void 0:r.text}),_("span",{className:"rcb-chat-tooltip-tail",style:b})]})})},nc=({id:e,content:t,timeout:n})=>{var r,o;const{settings:i}=ie(),{styles:s}=fe(),[A]=ee({toastPromptStyle:{...s.toastPromptStyle},toastPromptHoveredStyle:{...s.toastPromptHoveredStyle}}),{dismissToast:a}=Kt(),[l,c]=ee(!1),u={color:(r=i.general)==null?void 0:r.primaryColor,borderColor:(o=i.general)==null?void 0:o.primaryColor,...A.toastPromptHoveredStyle};return J(()=>{if(n){const d=setTimeout(()=>{a(e)},n);return()=>clearTimeout(d)}},[e,a,n]),typeof t=="string"?_("div",{onMouseEnter:()=>{c(!0)},onMouseLeave:()=>{c(!1)},style:l?u:A.toastPromptStyle,onMouseDown:async d=>{var p;(p=i.toast)!=null&&p.dismissOnClick&&(d.preventDefault(),await a(e))},className:"rcb-toast-prompt",children:t}):_(le,{children:t})},rc=()=>{var e,t,n,r,o,i,s,A,a,l,c,u;const{styles:d}=fe(),{toasts:p}=Aa(),h={bottom:`calc(${typeof((e=d.footerStyle)==null?void 0:e.height)=="number"?`${(t=d.footerStyle)==null?void 0:t.height}px`:((n=d.footerStyle)==null?void 0:n.height)??"50px"} + ${typeof((r=d.chatInputContainerStyle)==null?void 0:r.height)=="number"?`${(o=d.chatInputContainerStyle)==null?void 0:o.height}px`:((i=d.chatInputContainerStyle)==null?void 0:i.height)??"70px"} + 20px)`,width:300,minWidth:`calc(${typeof((s=d.chatWindowStyle)==null?void 0:s.width)=="number"?`${(A=d.chatWindowStyle)==null?void 0:A.width}px`:((a=d.chatWindowStyle)==null?void 0:a.width)??"375px"} / 2)`,maxWidth:`calc(${typeof((l=d.chatWindowStyle)==null?void 0:l.width)=="number"?`${(c=d.chatWindowStyle)==null?void 0:c.width}px`:((u=d.chatWindowStyle)==null?void 0:u.width)??"375px"} - 50px)`,...d.toastPromptContainerStyle};return _("div",{className:"rcb-toast-prompt-container",style:h,children:p.map(m=>_(nc,{id:m.id,content:m.content,timeout:m.timeout},m.id))})},la=({file:e,fileType:t,fileUrl:n})=>{var r,o,i;const{settings:s}=ie(),{styles:A}=fe(),a={backgroundColor:(r=s.general)==null?void 0:r.primaryColor,maxWidth:(o=s.userBubble)!=null&&o.showAvatar?"65%":"70%",...A.mediaDisplayContainerStyle};return _(le,{children:n?_(le,{children:[t==="image"&&n&&_("div",{style:a,className:"rcb-media-display-image-container rcb-media-entry","data-testid":"media-display-image-container",children:_("img",{src:n,alt:"Image Display",className:"rcb-media-display-image"})}),t==="video"&&n&&_("div",{style:a,className:"rcb-media-display-video-container rcb-media-entry","data-testid":"media-display-video-container",children:_("video",{controls:!0,className:"rcb-media-display-video",children:[_("source",{src:n,type:e.type}),"Your browser does not support the video tag."]})}),t==="audio"&&n&&_("audio",{"data-testid":"media-display-audio-container",style:{maxWidth:(i=s.userBubble)!=null&&i.showAvatar?"65%":"70%"},controls:!0,className:"rcb-media-display-audio rcb-media-entry",children:[_("source",{src:n,type:e.type}),"Your browser does not support the audio tag."]})]}):_(le,{})})},ca=async e=>{if(!e)return{fileType:null,fileUrl:null};const t=e.type.split("/")[0];if(!["image","video","audio"].includes(t))return{fileType:null,fileUrl:null};try{return{fileType:t,fileUrl:await new Promise((n,r)=>{const o=new FileReader;o.onload=()=>n(o.result),o.onerror=()=>r(new Error("File reading failed")),o.readAsDataURL(e)})}}catch(n){return console.error(n),{fileType:null,fileUrl:null}}},oc=()=>{var e,t,n,r,o,i;const{settings:s}=ie(),{styles:A}=fe(),{injectMessage:a,simulateStreamMessage:l,streamMessage:c,removeMessage:u,endStreamMessage:d}=Mt(),{getCurrPath:p,getPrevPath:h,goToPath:m,blockAllowsAttachment:f}=Hn(),{flowRef:b,inputRef:y}=ke(),g=b.current,{showToast:x,dismissToast:k}=Kt(),{dispatchRcbEvent:E}=rt(),{toggleChatWindow:C}=Ge(),{setTextAreaValue:I}=Ot(),{handleSubmitText:D}=Xt(),P={cursor:`url("${(e=s.general)==null?void 0:e.actionDisabledIcon}"), auto`,...A.fileAttachmentButtonStyle,...A.fileAttachmentButtonDisabledStyle},S={backgroundImage:`url(${(t=s.fileAttachment)==null?void 0:t.icon})`,fill:"#a6a6a6",...A.fileAttachmentIconStyle},B={backgroundImage:`url(${(n=s.fileAttachment)==null?void 0:n.icon})`,fill:"#a6a6a6",...A.fileAttachmentIconStyle,...A.fileAttachmentIconDisabledStyle};return _("label",{"aria-label":((r=s.ariaLabel)==null?void 0:r.fileAttachmentButton)??"upload file",role:"button",className:f?"rcb-attach-button-enabled":"rcb-attach-button-disabled",style:f?{...A.fileAttachmentButtonStyle}:P,children:[_("input",{className:"rcb-attach-input",role:"file",type:"file",onChange:async L=>{var R,Q,z,N;const H=L.target.files;if(!H)return;const v=Array.from(H);if(L.target.value="",(R=s.event)!=null&&R.rcbUserUploadFile&&(await E(j.USER_UPLOAD_FILE,{files:v})).defaultPrevented)return;const q=p();if(!q)return;const w=g[q];if(!w)return;const W=w.file;if(W!=null){const re=[];for(let V=0;V<v.length;V++){if(re.push(v[V].name),(Q=s.fileAttachment)==null||!Q.showMediaDisplay)continue;const ce=await ca(v[V]);!ce.fileType||!ce.fileUrl||await a(_(la,{file:v[V],fileType:ce.fileType,fileUrl:ce.fileUrl}),"USER")}await D("📄 "+re.join(", "),(z=s.fileAttachment)==null?void 0:z.sendFileName),await W({userInput:(N=y.current)==null?void 0:N.value,prevPath:h(),currPath:p(),goToPath:m,setTextAreaValue:I,injectMessage:a,simulateStreamMessage:l,streamMessage:c,removeMessage:u,endStreamMessage:d,toggleChatWindow:C,showToast:x,dismissToast:k,files:v})}},multiple:(o=s.fileAttachment)==null?void 0:o.multiple,accept:(i=s.fileAttachment)==null?void 0:i.accept,disabled:!f}),(()=>{var L,R;const Q=f?(L=s.fileAttachment)==null?void 0:L.icon:(R=s.fileAttachment)==null?void 0:R.iconDisabled;return Q&&typeof Q!="string"?Q&&_("span",{className:f?"rcb-attach-icon-enabled":"rcb-attach-icon-disabled",children:_(Q,{style:f?S:B})}):_("span",{className:f?"rcb-attach-icon-enabled":"rcb-attach-icon-disabled",style:f?S:B})})()]})},ic=()=>{var e,t,n,r,o,i;const{settings:s}=ie(),{styles:A}=fe(),{syncedTextAreaDisabledRef:a}=Ce(),{inputRef:l}=ke(),{textAreaDisabled:c,setTextAreaValue:u}=Ot(),d=oe(null),p=oe(null),[h,m]=ee(!1),f={cursor:`url("${(e=s.general)==null?void 0:e.actionDisabledIcon}"), auto`,...A.emojiButtonStyle,...A.emojiButtonDisabledStyle},b={backgroundImage:`url(${(t=s.emoji)==null?void 0:t.icon})`,fill:"#a6a6a6",...A.emojiIconStyle},y={backgroundImage:`url(${(n=s.emoji)==null?void 0:n.icon})`,fill:"#a6a6a6",...A.emojiIconStyle,...A.emojiIconDisabledStyle};return J(()=>{const g=k=>{const E=k.composedPath();d.current&&!E.includes(d.current)&&p.current&&!E.includes(p.current)&&m(!1)},x=()=>{(()=>{if(d.current&&p.current){const k=p.current.getBoundingClientRect(),E=d.current.offsetHeight,C=k.top-E-8;d.current.style.left=`${k.left}px`,d.current.style.top=`${C}px`}})()};return document.addEventListener("mousedown",g),window.addEventListener("resize",x),()=>{document.removeEventListener("mousedown",g),window.removeEventListener("resize",x)}},[]),_(le,{children:[_("div",{"aria-label":((r=s.ariaLabel)==null?void 0:r.emojiButton)??"emoji picker",role:"button",ref:p,className:c?"rcb-emoji-button-disabled":"rcb-emoji-button-enabled",style:c?f:{...A.emojiButtonStyle},onMouseDown:g=>{g.preventDefault(),a.current?m(!1):m(x=>!x)},children:(()=>{var g,x;const k=c?(g=s.emoji)==null?void 0:g.iconDisabled:(x=s.emoji)==null?void 0:x.icon;return k&&typeof k!="string"?k&&_("span",{className:c?"rcb-emoji-icon-disabled":"rcb-emoji-icon-enabled",children:_(k,{style:c?y:b})}):_("span",{className:c?"rcb-emoji-icon-disabled":"rcb-emoji-icon-enabled",style:c?y:b})})()}),h&&_("div",{className:"rcb-emoji-button-popup",ref:d,children:(i=(o=s.emoji)==null?void 0:o.list)==null?void 0:i.map((g,x)=>_("span",{className:"rcb-emoji",onMouseDown:k=>((E,C)=>{E.preventDefault(),l.current&&(u(l.current.value+C),setTimeout(()=>{const I=l.current;if(I){I.focus();const D=I.value.length;I.setSelectionRange(D,D)}},50)),m(!1)})(k,g),children:g},x))})]})},ac=()=>{var e,t,n;const{settings:r}=ie(),{styles:o}=fe(),{audioToggledOn:i,toggleAudio:s}=aa(),A={backgroundImage:`url(${(e=r.audio)==null?void 0:e.icon})`,fill:"#fcec3d",...o.audioIconStyle},a={backgroundImage:`url(${(t=r.audio)==null?void 0:t.iconDisabled})`,fill:"#e8eaed",...o.audioIconStyle,...o.audioIconDisabledStyle};return _("div",{"aria-label":((n=r.ariaLabel)==null?void 0:n.audioButton)??"toggle audio",role:"button",onMouseDown:async l=>{l.preventDefault(),await s()},style:i?{...o.audioButtonStyle}:{...o.audioButtonStyle,...o.audioButtonDisabledStyle},children:(()=>{var l,c;const u=i?(l=r.audio)==null?void 0:l.icon:(c=r.audio)==null?void 0:c.iconDisabled;return u&&typeof u!="string"?u&&_("span",{className:"rcb-audio-icon","data-testid":"rcb-audio-icon",children:_(u,{style:i?A:a,"data-testid":"rcb-audio-icon-svg"})}):_("span",{className:"rcb-audio-icon","data-testid":"rcb-audio-icon",style:i?A:a})})()})},sc=()=>{var e,t;const{settings:n}=ie(),{styles:r}=fe(),{toggleChatWindow:o}=Ge(),i={backgroundImage:`url(${(e=n.header)==null?void 0:e.closeChatIcon})`,fill:"#e8eaed",stroke:"#e8eaed",...r.closeChatIconStyle};return _("div",{"aria-label":((t=n.ariaLabel)==null?void 0:t.closeChatButton)??"close chat",role:"button",onMouseDown:s=>{s.stopPropagation(),o(!1)},style:{...r.closeChatButtonStyle},children:(()=>{var s;const A=(s=n.header)==null?void 0:s.closeChatIcon;return A&&typeof A!="string"?A&&_("span",{className:"rcb-close-chat-icon","data-testid":"rcb-close-chat-icon",children:_(A,{style:i})}):_("span",{className:"rcb-close-chat-icon","data-testid":"rcb-close-chat-icon",style:i})})()})},Ac=()=>{var e,t,n;const{settings:r}=ie(),{styles:o}=fe(),{notificationsToggledOn:i,toggleNotifications:s}=(()=>{const{notificationsToggledOn:l,toggleNotifications:c,playNotificationSound:u}=Mr();return{notificationsToggledOn:l,toggleNotifications:c,playNotificationSound:u}})(),A={backgroundImage:`url(${(e=r.notification)==null?void 0:e.icon})`,fill:"#fcec3d",...o.notificationIconStyle},a={backgroundImage:`url(${(t=r.notification)==null?void 0:t.iconDisabled})`,fill:"#e8eaed",...o.notificationIconStyle,...o.notificationIconDisabledStyle};return _("div",{"aria-label":((n=r.ariaLabel)==null?void 0:n.notificationButton)??"toggle notifications",role:"button",onMouseDown:async l=>{l.preventDefault(),await s()},style:i?{...o.notificationButtonStyle}:{...o.notificationButtonStyle,...o.notificationButtonDisabledStyle},children:(()=>{var l,c;const u=i?(l=r.notification)==null?void 0:l.icon:(c=r.notification)==null?void 0:c.iconDisabled;return u&&typeof u!="string"?u&&_("span",{className:"rcb-notification-icon","data-testid":"rcb-notification-icon",children:_(u,{style:i?A:a,"data-testid":"rcb-notification-icon-svg"})}):_("span",{className:"rcb-notification-icon","data-testid":"rcb-notification-icon",style:i?A:a})})()})},lc=()=>{var e,t,n;const{settings:r}=ie(),{styles:o}=fe(),{injectMessage:i}=Mt(),{inputRef:s}=ke(),{voiceToggledOn:A,toggleVoice:a}=Hr(),{setInputLength:l,setTextAreaValue:c,textAreaDisabled:u}=Ot(),{handleSubmitText:d}=Xt(),p=oe([]),[h,m]=ee(!1);J(()=>{var x;(x=r.voice)!=null&&x.sendAsAudio?(g(),p.current=[]):d()},[h]),J(()=>{A?((x,k,E,C,I,D,P)=>{var S;(S=x.voice)!=null&&S.sendAsAudio?Vl(E,D):Xl(x,k,E,C,I,P)})(r,a,y,c,l,p,s):Lr()},[A]);const f={backgroundImage:`url(${(e=r.voice)==null?void 0:e.icon})`,fill:"#9aa0a6",...o.voiceIconStyle},b={backgroundImage:`url(${(t=r.voice)==null?void 0:t.iconDisabled})`,fill:"#9aa0a6",...o.voiceIconStyle,...o.voiceIconDisabledStyle},y=()=>{m(x=>!x)},g=async()=>{const x=new Blob(p.current,{type:"audio/wav"}),k=new File([x],"voice-input.wav",{type:"audio/wav"}),E=await ca(k);!E.fileType||!E.fileUrl||await i(_(la,{file:k,fileType:E.fileType,fileUrl:E.fileUrl}),"USER")};return _("div",{"aria-label":((n=r.ariaLabel)==null?void 0:n.voiceButton)??"toggle voice",role:"button",onMouseDown:async x=>{x.preventDefault(),!u&&await a()},style:A&&!u?{...o.voiceButtonStyle}:{...o.voiceButtonStyle,...o.voiceButtonDisabledStyle},className:A&&!u?"rcb-voice-button-enabled":"rcb-voice-button-disabled",children:(()=>{var x,k;const E=A?(x=r.voice)==null?void 0:x.icon:(k=r.voice)==null?void 0:k.iconDisabled;return E&&typeof E!="string"?E&&_("span",{className:"rcb-voice-icon "+(A&&!u?"on":""),children:_(E,{style:A&&!u?f:b})}):_("span",{className:"rcb-voice-icon"+(A&&!u?"-on":""),"data-testid":"rcb-voice-icon",style:A&&!u?f:b})})()})},cc=()=>{var e,t,n,r,o,i,s,A;const{settings:a}=ie(),{styles:l}=fe(),{textAreaDisabled:c}=Ce(),[u,d]=ee(!1),{handleSubmitText:p}=Xt(),h={backgroundColor:(e=a.general)==null?void 0:e.primaryColor,...l.sendButtonStyle},m={cursor:`url("${(t=a.general)==null?void 0:t.actionDisabledIcon}"), auto`,backgroundColor:(n=a.general)==null?void 0:n.primaryColor,...l.sendButtonStyle,...l.sendButtonDisabledStyle},f={backgroundColor:(r=a.general)==null?void 0:r.secondaryColor,...l.sendButtonStyle,...l.sendButtonHoveredStyle},b={backgroundImage:`url(${(o=a.chatInput)==null?void 0:o.sendButtonIcon})`,fill:"#fff",...l.sendIconStyle},y={backgroundImage:`url(${(i=a.chatInput)==null?void 0:i.sendButtonIcon})`,fill:"#fff",...l.sendIconStyle,...l.sendIconDisabledStyle},g={backgroundImage:`url(${(s=a.chatInput)==null?void 0:s.sendButtonIcon})`,fill:"#fff",...l.sendIconStyle,...l.sendIconHoveredStyle};return _("div",{"aria-label":((A=a.ariaLabel)==null?void 0:A.sendButton)??"send message",role:"button",onMouseEnter:()=>{d(!0)},onMouseLeave:()=>{d(!1)},onMouseDown:async x=>{x==null||x.preventDefault(),!c&&await p()},style:c?m:u?f:h,className:"rcb-send-button",children:(()=>{var x;const k=(x=a.chatInput)==null?void 0:x.sendButtonIcon;return k&&typeof k!="string"?k&&_("span",{className:"rcb-send-icon","data-testid":"rcb-send-icon",children:_(k,{style:c?y:u?g:b})}):_("span",{className:"rcb-send-icon","data-testid":"rcb-send-icon",style:c?y:u?g:b})})()})},uc=(e,t)=>{var n,r,o,i,s,A,a,l,c;const u={[we.AUDIO_BUTTON]:(n=e.audio)==null?void 0:n.disabled,[we.CLOSE_CHAT_BUTTON]:(r=e.general)==null?void 0:r.embedded,[we.EMOJI_PICKER_BUTTON]:(o=e.emoji)==null?void 0:o.disabled,[we.FILE_ATTACHMENT_BUTTON]:(i=e.fileAttachment)==null?void 0:i.disabled,[we.NOTIFICATION_BUTTON]:(s=e.notification)==null?void 0:s.disabled,[we.SEND_MESSAGE_BUTTON]:!1,[we.VOICE_MESSAGE_BUTTON]:(A=e.voice)==null?void 0:A.disabled},d={},p=h=>h?h.map(m=>{if(typeof m=="string"){if((f=>Object.values(we).includes(f))(m)&&!u[m]){if(d[m])return d[m];const f=t[m];if(typeof f=="function"){const b=f();return d[m]=b,b}return null}return null}return m}).filter(m=>m!==null):[];return{header:p((a=e.header)==null?void 0:a.buttons),chatInput:p((l=e.chatInput)==null?void 0:l.buttons),footer:p((c=e.footer)==null?void 0:c.buttons)}},dc=()=>{const{settings:e}=ie(),t=_e(()=>({[we.CLOSE_CHAT_BUTTON]:()=>_(sc,{}),[we.AUDIO_BUTTON]:()=>_(ac,{}),[we.NOTIFICATION_BUTTON]:()=>_(Ac,{}),[we.EMOJI_PICKER_BUTTON]:()=>_(ic,{}),[we.FILE_ATTACHMENT_BUTTON]:()=>_(oc,{}),[we.SEND_MESSAGE_BUTTON]:()=>_(cc,{}),[we.VOICE_MESSAGE_BUTTON]:()=>_(lc,{})}),[]),{header:n,chatInput:r,footer:o}=_e(()=>uc(e,t),[e,t]);return{headerButtons:_e(()=>n,[n]),chatInputButtons:_e(()=>r,[r]),footerButtons:_e(()=>o,[o])}},Ur=()=>{const{settings:e}=ie(),{styles:t}=fe(),{setSyncedMessages:n,syncedMessagesRef:r}=Br(),{isLoadingChatHistory:o,setIsLoadingChatHistory:i,hasChatHistoryLoaded:s,setHasChatHistoryLoaded:A}=Ce(),{chatBodyRef:a}=ke(),{dispatchRcbEvent:l}=rt(),c=G(async()=>{var u,d;const p=Tr();if(!p||(u=e.event)!=null&&u.rcbLoadChatHistory&&(await l(j.LOAD_CHAT_HISTORY,{})).defaultPrevented)return;i(!0);const h=((d=a.current)==null?void 0:d.scrollHeight)??0;((m,f,b,y,g,x,k,E,C)=>{var I;if(na=!0,b!=null)try{const D=_t(_(Ul,{}),"SYSTEM"),P=g.current.slice(1);y([D,...P]);const S=b.map(B=>{if(B.type==="object"){const L=ia(B.content,m,f);return{...B,content:L}}return B});setTimeout(()=>{var B;const L=g.current.slice(1);let R=(B=m.chatHistory)!=null&&B.autoLoad?_t(_(le,{}),"SYSTEM"):_t(_(Hl,{}),"SYSTEM");y([...S,R,...L]),C(!0)},500),setTimeout(()=>{if(!x.current)return;const{scrollHeight:B}=x.current,L=B-k;x.current.scrollTop+=L,E(!1)},510)}catch{kt.removeItem((I=m.chatHistory)==null?void 0:I.storageKey)}})(e,t,p,n,r,a,h,i,A)},[e,t,l,r,a,i,A]);return{isLoadingChatHistory:o,setIsLoadingChatHistory:i,hasChatHistoryLoaded:s,showChatHistory:c}},pc=()=>{var e,t,n;const{settings:r}=ie(),{styles:o}=fe(),{showChatHistory:i}=Ur(),[s,A]=ee(!1),a={color:(e=r.general)==null?void 0:e.primaryColor,borderColor:(t=r.general)==null?void 0:t.primaryColor,...o.chatHistoryButtonStyle,...o.chatHistoryButtonHoveredStyle};return _("div",{className:"rcb-view-history-container",children:_("div",{onMouseEnter:()=>{A(!0)},onMouseLeave:()=>{A(!1)},style:s?a:{...o.chatHistoryButtonStyle},onMouseDown:l=>{l.preventDefault(),i()},className:"rcb-view-history-button",role:"button",tabIndex:0,children:_("p",{children:(n=r.chatHistory)==null?void 0:n.viewChatHistoryButtonText})})})},fc=()=>{var e,t,n,r;const o=Un(),{settings:i}=ie(),{replaceMessages:s}=Mt(),{isBotTyping:A,isChatWindowOpen:a,setUnreadCount:l,setSyncedIsChatWindowOpen:c,setSyncedTextAreaDisabled:u,setSyncedAudioToggledOn:d,setSyncedVoiceToggledOn:p,setSyncedIsScrolling:h,syncedIsScrollingRef:m,syncedIsChatWindowOpenRef:f}=Ce(),{chatBodyRef:b}=ke(),{viewportHeight:y,setViewportHeight:g,setViewportWidth:x,scrollToBottom:k}=Ge(),{setUpNotifications:E}=Mr(),{handleFirstInteraction:C}=(()=>{var S;const{settings:B}=ie(),{hasInteractedPage:L,setHasInteractedPage:R,hasFlowStarted:Q,setHasFlowStarted:z}=Ce(),N=G(()=>{var H;if(R(!0),!Q&&((H=B.general)==null?void 0:H.flowStartTrigger)==="ON_PAGE_INTERACT"&&z(!0),!window.SpeechSynthesisUtterance)return void console.info("Speech Synthesis API is not supported in this environment.");const v=new window.SpeechSynthesisUtterance;v.text="",v.onend=()=>{window.removeEventListener("click",N),window.removeEventListener("keydown",N),window.removeEventListener("touchstart",N)},window.speechSynthesis.speak(v)},[Q,(S=B.general)==null?void 0:S.flowStartTrigger]);return{hasInteractedPage:L,handleFirstInteraction:N}})(),{showChatHistory:I}=Ur(),D=oe(0),P=oe(!1);J(()=>(window.addEventListener("click",C),window.addEventListener("keydown",C),window.addEventListener("touchstart",C),()=>{window.removeEventListener("click",C),window.removeEventListener("keydown",C),window.removeEventListener("touchstart",C)}),[]),J(()=>{const S=b.current;if(!S)return;const B=()=>{P.current||(P.current=!0,requestAnimationFrame(()=>{var L,R;if(!S)return;const{scrollTop:Q,clientHeight:z,scrollHeight:N}=S,H=Q+z<N-(((L=i.chatWindow)==null?void 0:L.messagePromptOffset)??30);h(H),m.current=H,H||(Q+z>=N-1&&(S.scrollTop=N-z-1),(f.current||(R=i.general)!=null&&R.embedded)&&l(0)),P.current=!1}))};return S.addEventListener("wheel",B,{passive:!0}),S.addEventListener("touchmove",B,{passive:!0}),()=>{S.removeEventListener("wheel",B),S.removeEventListener("touchmove",B)}},[]),J(()=>{var S,B,L;u((S=i.chatInput)==null?void 0:S.disabled),c((B=i.chatWindow)==null?void 0:B.defaultOpen),d((L=i.audio)==null?void 0:L.defaultToggledOn),setTimeout(()=>{var R;p((R=i.voice)==null?void 0:R.defaultToggledOn)},1)},[]),J(()=>{var S;(S=i.notification)!=null&&S.disabled||E()},[(e=i.notification)==null?void 0:e.disabled]),J(()=>{!m.current&&b!=null&&b.current&&k()},[A]),J(()=>{var S,B;if((S=i.chatHistory)!=null&&S.disabled)kt&&kt.removeItem(Nn);else if(Qr(i),Tr().length>0){const L=_t(_(pc,{}),"SYSTEM");s([L]),(B=i.chatHistory)!=null&&B.autoLoad&&I()}},[(t=i.chatHistory)==null?void 0:t.storageKey,(n=i.chatHistory)==null?void 0:n.maxEntries,(r=i.chatHistory)==null?void 0:r.disabled]),J(()=>{var S;o||(S=i.general)!=null&&S.embedded||!navigator.virtualKeyboard||(navigator.virtualKeyboard.overlaysContent=!0,navigator.virtualKeyboard.addEventListener("geometrychange",B=>{if(!B.target)return;const{x:L,y:R,width:Q,height:z}=B.target.boundingRect;L==0&&R==0&&Q==0&&z==0?(setTimeout(()=>{var N;g((N=window.visualViewport)==null?void 0:N.height)},101),setTimeout(()=>{var N,H;y!=((N=window.visualViewport)==null?void 0:N.height)&&g((H=window.visualViewport)==null?void 0:H.height)},1001)):setTimeout(()=>{var N;g(((N=window.visualViewport)==null?void 0:N.height)-z)},101)}))},[o]),J(()=>{var S,B,L,R;if(o)return;a&&(g((S=window.visualViewport)==null?void 0:S.height),x((B=window.visualViewport)==null?void 0:B.width));const Q=()=>window.scrollTo({top:0,left:0,behavior:"auto"}),z=()=>D.current=window.scrollY,N=()=>{var v,q;g((v=window.visualViewport)==null?void 0:v.height),x((q=window.visualViewport)==null?void 0:q.width)},H=()=>{var v;window.removeEventListener("scroll",Q),window.removeEventListener("scroll",z),(v=window.visualViewport)==null||v.removeEventListener("resize",N)};return a?(H(),document.body.style.position="fixed",window.addEventListener("scroll",Q),(L=window.visualViewport)==null||L.addEventListener("resize",N)):(document.body.style.position="static",H(),window.scrollTo({top:D.current,left:0,behavior:"auto"}),window.addEventListener("scroll",z),(R=window.visualViewport)==null||R.removeEventListener("resize",N)),H},[a,o])},hc="https://cdn.jsdelivr.net/gh/react-chatbotify/community-themes/themes",gc="2592000",ua="RCB_THEME_CACHE_DATA",da=async(e,t)=>{const{id:n,version:r,baseUrl:o=hc,cacheDuration:i=gc}=t,s=r||await(async(b,y)=>{const g=`${y}/${b}/meta.json`;try{const x=await fetch(g);return x.ok?(await x.json()).version:(console.error(`Failed to fetch meta.json from ${g}`),null)}catch(x){return console.error(`Failed to fetch meta.json from ${g}`,x),null}})(n,o);if(!s)return console.error(`Unable to find version for theme: ${n}`),{settings:{},inlineStyles:{},cssStylesText:""};const A=((b,y,g)=>{const x=localStorage.getItem(`${ua}_${b}_${y}`);if(!x)return null;try{const k=JSON.parse(x),E=new Date().getTime(),C=Math.floor(E/1e3);return k.cacheDate+g>=C?k:null}catch(k){return console.error(`Unable to fetch cache for ${b}`,k),null}})(n,s,i);if(A){const b=pa(e,A.cssStylesText);return{settings:A.settings,inlineStyles:A.inlineStyles,cssStylesText:b}}const a=`${o}/${n}/${s}/styles.css`,l=`${o}/${n}/${s}/settings.json`,c=`${o}/${n}/${s}/styles.json`;let u="";const d=await fetch(a);d.ok?u=await d.text():console.info(`Could not fetch styles.css from ${a}`);const p=await fetch(l);let h={};p.ok?h=await p.json():console.info(`Could not fetch settings.json from ${l}`);const m=await fetch(c);let f={};return m.ok?f=await m.json():console.info(`Could not fetch styles.json from ${c}`),((b,y,g,x,k)=>{const E=new Date().getTime(),C={settings:g,inlineStyles:x,cssStylesText:k,cacheDate:Math.floor(E/1e3)};localStorage.setItem(`${ua}_${b}_${y}`,JSON.stringify(C))})(n,s,h,f,u),{settings:h,inlineStyles:f,cssStylesText:pa(e,u)}},pa=(e,t)=>t.split(new RegExp("(?<=})")).map(n=>{const r=n.trim();return r.startsWith("@import")||r.startsWith("@keyframes")||r.startsWith("@media")?r:r?`#${e} ${r}`:""}).join(`
4
+ `),mc=async(e,t,n,r)=>{var o,i;let s=Fn(Gi),A=Fn(Ki),a="";if(r!=null)if(Array.isArray(r))for(const l of r){const c=await da(e,l);s=ct(c.settings,s),A=ct(c.inlineStyles,A),a+=c.cssStylesText}else{const l=await da(e,r);s=ct(l.settings,s),A=ct(l.inlineStyles,A),a+=l.cssStylesText}return t!=null&&(s=ct(t,s)),n!=null&&(A=ct(n,A)),((o=s.chatInput)==null?void 0:o.botDelay)!=null&&((i=s.chatInput)==null?void 0:i.botDelay)<500&&(s.chatInput.botDelay=500),{settings:s,inlineStyles:A,cssStylesText:a}},ct=(e,t)=>{const n=[{source:e,target:t}];for(;n.length;){const r=n.pop();if(r==null)continue;const{source:o,target:i}=r;for(const s of Object.keys(o)){const A=s;if(Tt(o[A]))i[A]=o[A];else if(typeof o[A]!="object"||o[A]===null||Array.isArray(o[A]))try{i[A]=o[A]}catch{}else(typeof i[A]!="object"||i[A]===null)&&(i[A]={}),n.push({source:o[A],target:i[A]})}}return t},Fn=e=>{if(e===null||typeof e!="object")return e;const t=Array.isArray(e)?[]:{},n=[{source:e,target:t}],r=new WeakMap;for(r.set(e,t);n.length;){const o=n.pop();if(o==null)continue;const{source:i,target:s}=o;for(const A in i)if(Object.prototype.hasOwnProperty.call(i,A)){const a=i[A];if(a&&typeof a=="object")if(r.has(a))s[A]=r.get(a);else{const l=Array.isArray(a)?[]:{};r.set(a,l),s[A]=l,n.push({source:a,target:l})}else s[A]=a}}return t},fa=()=>{const{settings:e,setSyncedSettings:t,syncedSettingsRef:n}=ie(),r=G(i=>{!i||Object.keys(i).length===0||t(Fn(ct(i,e)))},[e]),o=G(i=>{const s=typeof i=="function"?i(n.current):i;t(s)},[n]);return{settings:e,replaceSettings:o,updateSettings:r}},ha=()=>{const{styles:e,setSyncedStyles:t,syncedStylesRef:n}=fe(),r=G(i=>{!i||Object.keys(i).length===0||t(Fn(ct(i,e)))},[e]),o=G(i=>{const s=typeof i=="function"?i(n.current):i;t(s)},[n]);return{styles:e,replaceStyles:o,updateStyles:r}},yc=({plugins:e,slots:t})=>{var n,r;const o=Un(),{settings:i}=ie(),{styles:s}=fe(),{hasFlowStarted:A,setHasFlowStarted:a}=Ce(),{inputRef:l}=ke(),{viewportHeight:c,viewportWidth:u,isChatWindowOpen:d}=Ge(),{goToPath:p}=Hn(),{headerButtons:h,chatInputButtons:m,footerButtons:f}=dc();fc(),(y=>{const{updateSettings:g}=fa(),{updateStyles:x}=ha(),k=y==null?void 0:y.map(E=>E());J(()=>{let E={},C={};k==null||k.forEach(I=>{I!=null&&I.settings&&Object.keys(I==null?void 0:I.settings).length!==0&&(E=ct(I.settings,E)),I!=null&&I.styles&&Object.keys(I==null?void 0:I.styles).length!==0&&(C=ct(I.styles,C))}),g(E),x(C)},[])})(e),J(()=>{var y;(A||((y=i.general)==null?void 0:y.flowStartTrigger)==="ON_LOAD")&&p("start")},[A,(n=i.general)==null?void 0:n.flowStartTrigger]);const b=_e(()=>{var y;const g="rcb-chatbot-global ";return(y=i.general)!=null&&y.embedded?g+"rcb-window-embedded":d?g+"rcb-window-open":g+"rcb-window-close"},[i,d]);return _(le,{children:(()=>{var y,g;return o&&((y=i.device)==null?void 0:y.desktopEnabled)||!o&&((g=i.device)==null?void 0:g.mobileEnabled)})()&&_("div",{onMouseDown:y=>{var g,x;!A&&((g=i.general)==null?void 0:g.flowStartTrigger)==="ON_CHATBOT_INTERACT"&&a(!0),o?(x=l.current)==null||x.blur():y==null||y.preventDefault()},className:b,children:[_(tc,{}),_(ec,{}),d&&!o&&!((r=i.general)!=null&&r.embedded)&&_(le,{children:[_("style",{children:`
5
+ html {
6
+ overflow: hidden !important;
7
+ touch-action: none !important;
8
+ scroll-behavior: auto !important;
9
+ }
10
+ `}),_("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"#fff",zIndex:9999}})]}),_("div",{style:(()=>{var y,g;return o||(y=i.general)!=null&&y.embedded?(g=i.general)!=null&&g.embedded?{...s.chatWindowStyle}:{...s.chatWindowStyle,zIndex:1e4}:{...s.chatWindowStyle,borderRadius:"0px",left:"0px",right:"auto",top:"0px",bottom:"auto",width:`${u}px`,height:`${c}px`,zIndex:1e4}})(),className:"rcb-chat-window",children:(()=>{var y,g,x;const k=(t==null?void 0:t.chatBotHeader)||vl,E=(t==null?void 0:t.chatBotBody)||Sl,C=(t==null?void 0:t.chatBotInput)||Jl,I=(t==null?void 0:t.chatBotFooter)||Zl;return _(le,{children:[((y=i.general)==null?void 0:y.showHeader)&&_(k,{buttons:h}),_(E,{}),_(rc,{}),((g=i.general)==null?void 0:g.showInputRow)&&_(C,{buttons:m}),((x=i.general)==null?void 0:x.showFooter)&&_(I,{buttons:f})]})})()})]})})},ga=nt(void 0),ma=()=>Ve(ga),ya=({children:e})=>{var t;const n=oe(""),r=oe({}),[o,i,s]=We({}),[A,a,l]=We({}),[c,u]=ee(!1);return J(()=>{u(!0)},[]),c?_("div",{style:{fontFamily:(t=o.general)==null?void 0:t.fontFamily},children:_(ga.Provider,{value:{loadConfig:async(d,p,h,m,f,b)=>{n.current=d,r.current=p;const y=await mc(d,h,m,f);b.current&&(b.current.textContent=y.cssStylesText),i(y.settings),a(y.inlineStyles)}},children:_(ml,{settings:o,setSyncedSettings:i,syncedSettingsRef:s,children:_(yl,{styles:A,setSyncedStyles:a,syncedStylesRef:l,children:_($l,{children:_(bl,{botIdRef:n,flowRef:r,children:_(El,{children:_(wl,{settings:o,children:_(kl,{children:e})})})})})})})})}):null},vc=({id:e,flow:t,settings:n,styles:r,themes:o,plugins:i,setConfigLoaded:s,styleRootRef:A})=>{const a=_e(()=>e,[]),l=ma(),{flowRef:c}=ke();return c&&c.current!==t&&(c.current=t),J(()=>{(async()=>{var u,d;(u=n.event)!=null&&u.rcbPreLoadChatBot&&(await Sr(j.PRE_LOAD_CHATBOT,{botId:a,currPath:null,prevPath:null},{flow:t,settings:n,styles:r,themes:o,plugins:i})).defaultPrevented||(l!=null&&l.loadConfig&&(await l.loadConfig(a,t,n,r,o,A),s(!0)),(d=n.event)!=null&&d.rcbPostLoadChatBot&&Sr(j.POST_LOAD_CHATBOT,{botId:a,currPath:null,prevPath:null},{flow:t,settings:n,styles:r,themes:o,plugins:i}))})()},[o]),null},Fr=["Quickstart","API Docs","Examples","Github","Discord"],bc={start:{message:"Hello, I am Tan Jin 👋! Welcome to React ChatBotify, I'm excited that you are using our chatbot 😊!",transition:{duration:1e3},chatDisabled:!0,path:"show_options"},show_options:{message:"It looks like you have not set up a conversation flow yet. No worries! Here are a few helpful things you can check out to get started:",options:Fr,path:"process_options"},prompt_again:{message:"Do you need any other help?",options:Fr,path:"process_options"},unknown_input:{message:"Sorry, I do not understand your message 😢! If you require further assistance, you may click on the Github option and open an issue there or visit our discord.",options:Fr,path:"process_options"},process_options:{transition:{duration:0},path:e=>{let t="";switch(e.userInput){case"Quickstart":t="https://react-chatbotify.com/docs/introduction/quickstart/";break;case"API Docs":t="https://react-chatbotify.com/docs/api/bot_options";break;case"Examples":t="https://react-chatbotify.com/docs/examples/basic_form";break;case"Github":t="https://github.com/react-chatbotify/react-chatbotify/";break;case"Discord":t="https://discord.gg/6R4DK4G5Zh";break;default:return"unknown_input"}return e.injectMessage("Sit tight! I'll send you right there!"),setTimeout(()=>{window.open(t)},1e3),"repeat"}},repeat:{transition:{duration:3e3},path:"prompt_again"}},wc=({id:e,flow:t,settings:n,styles:r,themes:o,plugins:i,slots:s})=>{const A=_e(()=>e||"rcb-"+On(),[]),a=t&&Object.keys(t).length!==0?t:bc,l=n||{},c=r||{},u=i||[],[d,p]=ee(!1),h=ma(),m=oe(null),[f,b]=ee(o||[]);J(()=>{o&&b(o)},[o]);const y=()=>_(le,{children:[_(vc,{styleRootRef:m,id:A,flow:a,settings:l,styles:c,themes:f,plugins:u,setConfigLoaded:p}),d&&_(yc,{plugins:i,slots:s})]});return _(h==null?ya:le,{children:[_("style",{ref:m}),_("div",{id:A,children:y()})]})},xc=()=>{const{getBotId:e}=(()=>{const{botIdRef:t}=ke();return{getBotId:G(()=>t.current,[t])}})();return{getBotId:e}},zn=()=>{const{hasFlowStarted:e,restartFlow:t,getFlow:n}=(()=>{const{replaceMessages:r}=Mt(),{replacePaths:o,goToPath:i}=Hn(),{replaceToasts:s}=Kt(),{hasFlowStarted:A}=Ce(),{flowRef:a,timeoutIdRef:l}=ke(),{settings:c}=ie();return{hasFlowStarted:A,restartFlow:G(async()=>{Qr(c),l.current&&clearTimeout(l.current),r([]),s([]),o([]),await i("start")},[l,c,r,s,o,Qr,i]),getFlow:G(()=>(a==null?void 0:a.current)??{},[a])}})();return{hasFlowStarted:e,restartFlow:t,getFlow:n}},hn=()=>{const{endStreamMessage:e,injectMessage:t,removeMessage:n,simulateStreamMessage:r,streamMessage:o,messages:i,replaceMessages:s}=Mt();return{endStreamMessage:e,injectMessage:t,removeMessage:n,simulateStreamMessage:r,streamMessage:o,messages:i,replaceMessages:s}},$e=(e,t)=>{const{getBotId:n}=xc();J(()=>{const r=o=>{o.detail.botId===n()&&t(o)};return window.addEventListener(e,r),()=>{window.removeEventListener(e,r)}},[n,e,t])},va=()=>{const{settings:e,replaceSettings:t,updateSettings:n}=fa();return{settings:e,replaceSettings:t,updateSettings:n}},ba=()=>{const{textAreaDisabled:e,toggleTextAreaDisabled:t,textAreaSensitiveMode:n,toggleTextAreaSensitiveMode:r,getTextAreaValue:o,setTextAreaValue:i,focusTextArea:s,blurTextArea:A}=Ot();return{textAreaDisabled:e,toggleTextAreaDisabled:t,textAreaSensitiveMode:n,toggleTextAreaSensitiveMode:r,getTextAreaValue:o,setTextAreaValue:i,focusTextArea:s,blurTextArea:A}},wa=()=>{const{showChatHistory:e,hasChatHistoryLoaded:t}=Ur();return{showChatHistory:e,getHistoryMessages:Tr,setHistoryMessages:Fl,hasChatHistoryLoaded:t}},zr={a:{content:9,self:!1,type:105},address:{invalid:["h1","h2","h3","h4","h5","h6","address","article","aside","section","div","header","footer"],self:!1},audio:{children:["track","source"]},br:{type:9,void:!0},body:{content:127},button:{content:8,type:105},caption:{content:1,parent:["table"]},col:{parent:["colgroup"],void:!0},colgroup:{children:["col"],parent:["table"]},details:{children:["summary"],type:97},dd:{content:1,parent:["dl"]},dl:{children:["dt","dd"],type:1},dt:{content:1,invalid:["footer","header"],parent:["dl"]},figcaption:{content:1,parent:["figure"]},footer:{invalid:["footer","header"]},header:{invalid:["footer","header"]},hr:{type:1,void:!0},img:{void:!0},li:{content:1,parent:["ul","ol","menu"]},main:{self:!1},ol:{children:["li"],type:1},picture:{children:["source","img"],type:25},rb:{parent:["ruby","rtc"]},rp:{parent:["ruby","rtc"]},rt:{content:8,parent:["ruby","rtc"]},rtc:{content:8,parent:["ruby"]},ruby:{children:["rb","rp","rt","rtc"]},source:{parent:["audio","video","picture"],void:!0},summary:{content:8,parent:["details"]},table:{children:["caption","colgroup","thead","tbody","tfoot","tr"],type:1},tbody:{parent:["table"],children:["tr"]},td:{content:1,parent:["tr"]},tfoot:{parent:["table"],children:["tr"]},th:{content:1,parent:["tr"]},thead:{parent:["table"],children:["tr"]},tr:{parent:["table","tbody","thead","tfoot"],children:["th","td"]},track:{parent:["audio","video"],void:!0},ul:{children:["li"],type:1},video:{children:["track","source"]},wbr:{type:9,void:!0}};function Nt(e){return t=>{zr[t]={...e,...zr[t]}}}["address","main","div","figure","p","pre"].forEach(Nt({content:1,type:65})),["abbr","b","bdi","bdo","cite","code","data","dfn","em","i","kbd","mark","q","ruby","samp","strong","sub","sup","time","u","var"].forEach(Nt({content:8,type:73})),["p","pre"].forEach(Nt({content:8,type:65})),["s","small","span","del","ins"].forEach(Nt({content:8,type:9})),["article","aside","footer","header","nav","section","blockquote"].forEach(Nt({content:1,type:67})),["h1","h2","h3","h4","h5","h6"].forEach(Nt({content:8,type:69})),["audio","canvas","iframe","img","video"].forEach(Nt({type:89}));const jr=Object.freeze(zr),Ec=["applet","base","body","command","embed","frame","frameset","head","html","link","meta","noscript","object","script","style","title"],_c=Object.keys(jr).filter(e=>e!=="canvas"&&e!=="iframe"),xa=Object.freeze({alt:1,cite:1,class:1,colspan:3,controls:4,datetime:1,default:4,disabled:4,dir:1,height:1,href:1,id:1,kind:1,label:1,lang:1,loading:1,loop:4,media:1,muted:4,poster:1,rel:1,role:1,rowspan:3,scope:1,sizes:1,span:3,start:3,style:5,src:1,srclang:1,srcset:1,tabindex:1,target:1,title:1,type:1,width:1}),kc=Object.freeze({class:"className",colspan:"colSpan",datetime:"dateTime",rowspan:"rowSpan",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex"});function jn(){return jn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jn.apply(this,arguments)}function Ea({attributes:e={},className:t,children:n=null,selfClose:r=!1,tagName:o}){const i=o;return r?M.createElement(i,jn({className:t},e)):M.createElement(i,jn({className:t},e),n)}class Pc{attribute(t,n){return n}node(t,n){return n}}function Cc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}/*!
11
+ * escape-html
12
+ * Copyright(c) 2012-2013 TJ Holowaychuk
13
+ * Copyright(c) 2015 Andreas Lubbe
14
+ * Copyright(c) 2015 Tiancheng "Timothy" Gu
15
+ * MIT Licensed
16
+ */var _a,ka;const Dc=Cc(function(){if(ka)return _a;ka=1;var e=/["'&<>]/;return _a=function(t){var n=""+t,r=e.exec(n);if(!r)return n;var o,i="",s=0,A=0;for(s=r.index;s<n.length;s++){switch(n.charCodeAt(s)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 39:o="&#39;";break;case 60:o="&lt;";break;case 62:o="&gt;";break;default:continue}A!==s&&(i+=n.substring(A,s)),A=s+1,i+=o}return A!==s?i+n.substring(A,s):i}}());function vt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Sc=/(url|image|image-set)\(/i;class Bc extends Pc{attribute(t,n){return t==="style"&&Object.keys(n).forEach(r=>{String(n[r]).match(Sc)&&delete n[r]}),n}}const Ic=/^<(!doctype|(html|head|body)(\s|>))/i,Tc=/^(aria-|data-|\w+:)/iu,Qc=/{{{(\w+)\/?}}}/;function Mc(){if(!(typeof window>"u"||typeof document>"u"))return document.implementation.createHTMLDocument("Interweave")}let Pa=class{constructor(e,t={},n=[],r=[]){var o;if(vt(this,"allowed",void 0),vt(this,"banned",void 0),vt(this,"blocked",void 0),vt(this,"container",void 0),vt(this,"content",[]),vt(this,"props",void 0),vt(this,"matchers",void 0),vt(this,"filters",void 0),vt(this,"keyIndex",void 0),process.env.NODE_ENV!=="production"&&e&&typeof e!="string")throw new TypeError("Interweave parser requires a valid string.");this.props=t,this.matchers=n,this.filters=[...r,new Bc],this.keyIndex=-1,this.container=this.createContainer(e||""),this.allowed=new Set((o=t.allowList)!==null&&o!==void 0?o:_c),this.banned=new Set(Ec),this.blocked=new Set(t.blockList)}applyAttributeFilters(e,t){return this.filters.reduce((n,r)=>n!==null&&typeof r.attribute=="function"?r.attribute(e,n):n,t)}applyNodeFilters(e,t){return this.filters.reduce((n,r)=>n!==null&&typeof r.node=="function"?r.node(e,n):n,t)}applyMatchers(e,t){const n={},{props:r}=this;let o=e,i=0,s=null;return this.matchers.forEach(A=>{const a=A.asTag().toLowerCase(),l=this.getTagConfig(a);if(r[A.inverseName]||!this.isTagAllowed(a)||!this.canRenderChild(t,l))return;let c="";for(;o&&(s=A.match(o));){const{index:u,length:d,match:p,valid:h,void:m,...f}=s,b=A.propName+String(i);u>0&&(c+=o.slice(0,u)),h?(c+=m?`{{{${b}/}}}`:`{{{${b}}}}${p}{{{/${b}}}}`,this.keyIndex+=1,i+=1,n[b]={children:p,matcher:A,props:{...r,...f,key:this.keyIndex}}):c+=p,A.greedy?(o=c+o.slice(u+d),c=""):o=o.slice(u+(d||p.length))}A.greedy||(o=c+o)}),i===0?e:this.replaceTokens(o,n)}canRenderChild(e,t){return!(!e.tagName||!t.tagName||e.void)&&(e.children.length>0?e.children.includes(t.tagName):!(e.invalid.length>0&&e.invalid.includes(t.tagName))&&(t.parent.length>0?t.parent.includes(e.tagName):!(!e.self&&e.tagName===t.tagName)&&!!(e&&e.content&t.type)))}convertLineBreaks(e){const{noHtml:t,disableLineBreaks:n}=this.props;if(t||n||e.match(/<((?:\/[ a-z]+)|(?:[ a-z]+\/))>/gi))return e;let r=e.replace(/\r\n/g,`
17
+ `);return r=r.replace(/\n{3,}/g,`
18
+
19
+
20
+ `),r=r.replace(/\n/g,"<br/>"),r}createContainer(e){var t;const n=(typeof global<"u"&&global.INTERWEAVE_SSR_POLYFILL||Mc)();if(!n)return;const r=(t=this.props.containerTagName)!==null&&t!==void 0?t:"body",o=r==="body"||r==="fragment"?n.body:n.createElement(r);if(e.match(Ic)){if(process.env.NODE_ENV!=="production")throw new Error("HTML documents as Interweave content are not supported.")}else o.innerHTML=this.convertLineBreaks(this.props.escapeHtml?Dc(e):e);return o}extractAttributes(e){const{allowAttributes:t}=this.props,n={};let r=0;return e.nodeType===1&&e.attributes&&([...e.attributes].forEach(o=>{const{name:i,value:s}=o,A=i.toLowerCase(),a=xa[A]||xa[i];if(!this.isSafe(e)||!A.match(Tc)&&(!t&&(!a||a===2)||A.startsWith("on")||s.replace(/(\s|\0|&#x0([9AD]);)/,"").match(/(javascript|vbscript|livescript|xss):/i)))return;let l=A==="style"?this.extractStyleAttribute(e):s;a===4?l=!0:a===3?l=Number.parseFloat(String(l)):a!==5&&(l=String(l)),n[kc[A]||A]=this.applyAttributeFilters(A,l),r+=1}),r!==0)?n:null}extractStyleAttribute(e){const t={};return Array.from(e.style).forEach(n=>{const r=e.style[n];(typeof r=="string"||typeof r=="number")&&(t[n.replace(/-([a-z])/g,(o,i)=>String(i).toUpperCase())]=r)}),t}getTagConfig(e){const t={children:[],content:0,invalid:[],parent:[],self:!0,tagName:"",type:0,void:!1};return jr[e]?{...t,...jr[e],tagName:e}:t}isSafe(e){if(typeof HTMLAnchorElement<"u"&&e instanceof HTMLAnchorElement){const t=e.getAttribute("href");if(t!=null&&t.startsWith("#"))return!0;const n=e.protocol.toLowerCase();return n===":"||n==="http:"||n==="https:"||n==="mailto:"||n==="tel:"}return!0}isTagAllowed(e){return!this.banned.has(e)&&!this.blocked.has(e)&&(this.props.allowElements||this.allowed.has(e))}parse(){return this.container?this.parseNode(this.container,this.getTagConfig(this.container.nodeName.toLowerCase())):[]}parseNode(e,t){const{noHtml:n,noHtmlExceptMatchers:r,allowElements:o,transform:i,transformOnlyAllowList:s}=this.props;let A=[],a="";return[...e.childNodes].forEach(l=>{if(l.nodeType===1){const u=l.nodeName.toLowerCase(),d=this.getTagConfig(u);a&&(A.push(a),a="");const p=this.applyNodeFilters(u,l);if(!p)return;let h;if(i&&(!s||this.isTagAllowed(u))){this.keyIndex+=1;const m=this.keyIndex;h=this.parseNode(p,d);const f=i(p,h,d);if(f===null)return;if(typeof f<"u")return void A.push(M.cloneElement(f,{key:m}));this.keyIndex=m-1}if(this.banned.has(u))return;if(n||r&&u!=="br"||!this.isTagAllowed(u)||!o&&!this.canRenderChild(t,d))A=[...A,...this.parseNode(p,d.tagName?d:t)];else{var c;this.keyIndex+=1;const m=this.extractAttributes(p),f={tagName:u};m&&(f.attributes=m),d.void&&(f.selfClose=d.void),A.push(M.createElement(Ea,{...f,key:this.keyIndex},(c=h)!==null&&c!==void 0?c:this.parseNode(p,d)))}}else if(l.nodeType===3){const u=n&&!r?l.textContent:this.applyMatchers(l.textContent||"",t);Array.isArray(u)?A=[...A,...u]:a+=u}}),a&&A.push(a),A}replaceTokens(e,t){if(!e.includes("{{{"))return e;const n=[];let r=e,o=null;for(;o=r.match(Qc);){const[i,s]=o,A=o.index,a=i.includes("/");if(process.env.NODE_ENV!=="production"&&!t[s])throw new Error(`Token "${s}" found but no matching element to replace with.`);A>0&&(n.push(r.slice(0,A)),r=r.slice(A));const{children:l,matcher:c,props:u}=t[s];let d;if(a)d=i.length,n.push(c.createElement(l,u));else{const p=r.match(new RegExp(`{{{/${s}}}}`));if(process.env.NODE_ENV!=="production"&&!p)throw new Error(`Closing token missing for interpolated element "${s}".`);d=p.index+p[0].length,n.push(c.createElement(this.replaceTokens(r.slice(i.length,p.index),t),u))}r=r.slice(d)}return r.length>0&&n.push(r),n.length===0?"":n.length===1&&typeof n[0]=="string"?n[0]:n}};function Oc(e){var t;const{attributes:n,className:r,containerTagName:o,content:i,emptyContent:s,parsedContent:A,tagName:a,noWrap:l}=e,c=(t=o??a)!==null&&t!==void 0?t:"span",u=c==="fragment"||l;let d;if(A)d=A;else{const p=new Pa(i??"",e).parse();p.length>0&&(d=p)}return d||(d=s),u?M.createElement(M.Fragment,null,d):M.createElement(Ea,{attributes:n,className:r,tagName:c},d)}function Nc(e){const{attributes:t,className:n,content:r="",disableFilters:o=!1,disableMatchers:i=!1,emptyContent:s=null,filters:A=[],matchers:a=[],onAfterParse:l=null,onBeforeParse:c=null,tagName:u="span",noWrap:d=!1,...p}=e,h=i?[]:a,m=o?[]:A,f=c?[c]:[],b=l?[l]:[];h.forEach(k=>{k.onBeforeParse&&f.push(k.onBeforeParse.bind(k)),k.onAfterParse&&b.push(k.onAfterParse.bind(k))});const y=f.reduce((k,E)=>{const C=E(k,e);if(process.env.NODE_ENV!=="production"&&typeof C!="string")throw new TypeError("Interweave `onBeforeParse` must return a valid HTML string.");return C},r??""),g=new Pa(y,p,h,m),x=b.reduce((k,E)=>{const C=E(k,e);if(process.env.NODE_ENV!=="production"&&!Array.isArray(C))throw new TypeError("Interweave `onAfterParse` must return an array of strings and React elements.");return C},g.parse());return M.createElement(Oc,{attributes:t,className:n,containerTagName:e.containerTagName,emptyContent:s,noWrap:d,parsedContent:x.length===0?void 0:x,tagName:u})}const Lc=({children:e})=>_("div",{style:{whiteSpace:"normal"},children:_(Nc,{content:typeof e=="string"?e:""})}),Rc={autoConfig:!0},Ca=(e,t,n)=>{var r;if(!e.detail.currPath)return!1;const o=t[e.detail.currPath];return!!o&&(((r=o.renderHtml)==null?void 0:r.map(i=>i.toUpperCase()).includes(n))??!1)},Hc=e=>{const t=[];let n="",r=!1;for(let o=0;o<e.length;o++){const i=e[o];i==="<"?r?(t.push(n),n=i):(r=!0,n=i):i===">"?(n+=i,t.push(n),n="",r=!1):r?n+=i:t.push(i)}return n!==""&&t.push(n),t},Uc=e=>{const{getFlow:t}=zn(),{messages:n,replaceMessages:r}=hn(),{settings:o}=va(),{hasChatHistoryLoaded:i}=wa(),s={...e,...Rc},A=s.htmlComponent?s.htmlComponent:Lc;J(()=>{var c,u;if(i){const d=[...n];for(let p=0;p<d.length&&p<(((c=o.chatHistory)==null?void 0:c.maxEntries)??30);p++){const h=d[p];(u=h.tags)!=null&&u.includes("rcb-html-renderer-plugin:parsed")&&(h.contentWrapper=A)}r(d)}},[i]);const a=async c=>{var u;const d=(u=c.data.message)==null?void 0:u.sender.toUpperCase();typeof c.data.message.content=="string"&&Ca(c,t(),d)&&(c.type==="rcb-start-simulate-stream-message"&&(c.data.simulateStreamChunker=Hc),c.data.message.contentWrapper=A,c.data.message.tags||(c.data.message.tags=[]),c.data.message.tags.push("rcb-html-renderer-plugin:parsed"))};$e(j.PRE_INJECT_MESSAGE,a),$e(j.CHUNK_STREAM_MESSAGE,a),$e(j.START_STREAM_MESSAGE,a),$e(j.START_SIMULATE_STREAM_MESSAGE,a),$e(j.START_SPEAK_AUDIO,async c=>{Ca(c,t(),"BOT")&&(c.data.textToRead=(u=>typeof window.DOMParser<"u"?new DOMParser().parseFromString(u,"text/html").body.textContent||"":u.replace(/<\/?[^>]+(>|$)/g,""))(c.data.textToRead))});const l={name:"@rcb-plugins/html-renderer"};return s!=null&&s.autoConfig&&(l.settings={event:{rcbPreInjectMessage:!0,rcbChunkStreamMessage:!0,rcbStartSimulateStreamMessage:!0,rcbStartStreamMessage:!0,rcbStartSpeakAudio:!0}}),l},Fc=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,zc=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,jc={};function Da(e,t){return(jc.jsx?zc:Fc).test(e)}const qc=/[ \t\n\f\r]/g;function Sa(e){return e.replace(qc,"")===""}class gn{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}function Ba(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new gn(n,r,t)}function qr(e){return e.toLowerCase()}gn.prototype.property={},gn.prototype.normal={},gn.prototype.space=null;class Je{constructor(t,n){this.property=t,this.attribute=n}}Je.prototype.space=null,Je.prototype.boolean=!1,Je.prototype.booleanish=!1,Je.prototype.overloadedBoolean=!1,Je.prototype.number=!1,Je.prototype.commaSeparated=!1,Je.prototype.spaceSeparated=!1,Je.prototype.commaOrSpaceSeparated=!1,Je.prototype.mustUseProperty=!1,Je.prototype.defined=!1;let Wc=0;const ne=Lt(),Pe=Lt(),Ia=Lt(),O=Lt(),me=Lt(),Vt=Lt(),Ye=Lt();function Lt(){return 2**++Wc}const Wr=Object.freeze(Object.defineProperty({__proto__:null,boolean:ne,booleanish:Pe,commaOrSpaceSeparated:Ye,commaSeparated:Vt,number:O,overloadedBoolean:Ia,spaceSeparated:me},Symbol.toStringTag,{value:"Module"})),Gr=Object.keys(Wr);class Yr extends Je{constructor(t,n,r,o){let i=-1;if(super(t,n),Ta(this,"space",o),typeof r=="number")for(;++i<Gr.length;){const s=Gr[i];Ta(this,Gr[i],(r&Wr[s])===Wr[s])}}}function Ta(e,t,n){n&&(e[t]=n)}Yr.prototype.defined=!0;const Gc={}.hasOwnProperty;function $t(e){const t={},n={};let r;for(r in e.properties)if(Gc.call(e.properties,r)){const o=e.properties[r],i=new Yr(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[qr(r)]=r,n[qr(i.attribute)]=r}return new gn(t,n,e.space)}const Qa=$t({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Ma=$t({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Oa(e,t){return t in e?e[t]:t}function Na(e,t){return Oa(e,t.toLowerCase())}const La=$t({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Na,properties:{xmlns:null,xmlnsXLink:null}}),Ra=$t({transform:(e,t)=>t==="role"?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Pe,ariaAutoComplete:null,ariaBusy:Pe,ariaChecked:Pe,ariaColCount:O,ariaColIndex:O,ariaColSpan:O,ariaControls:me,ariaCurrent:null,ariaDescribedBy:me,ariaDetails:null,ariaDisabled:Pe,ariaDropEffect:me,ariaErrorMessage:null,ariaExpanded:Pe,ariaFlowTo:me,ariaGrabbed:Pe,ariaHasPopup:null,ariaHidden:Pe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:me,ariaLevel:O,ariaLive:null,ariaModal:Pe,ariaMultiLine:Pe,ariaMultiSelectable:Pe,ariaOrientation:null,ariaOwns:me,ariaPlaceholder:null,ariaPosInSet:O,ariaPressed:Pe,ariaReadOnly:Pe,ariaRelevant:null,ariaRequired:Pe,ariaRoleDescription:me,ariaRowCount:O,ariaRowIndex:O,ariaRowSpan:O,ariaSelected:Pe,ariaSetSize:O,ariaSort:null,ariaValueMax:O,ariaValueMin:O,ariaValueNow:O,ariaValueText:null,role:null}}),Yc=$t({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Na,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Vt,acceptCharset:me,accessKey:me,action:null,allow:null,allowFullScreen:ne,allowPaymentRequest:ne,allowUserMedia:ne,alt:null,as:null,async:ne,autoCapitalize:null,autoComplete:me,autoFocus:ne,autoPlay:ne,blocking:me,capture:null,charSet:null,checked:ne,cite:null,className:me,cols:O,colSpan:null,content:null,contentEditable:Pe,controls:ne,controlsList:me,coords:O|Vt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ne,defer:ne,dir:null,dirName:null,disabled:ne,download:Ia,draggable:Pe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ne,formTarget:null,headers:me,height:O,hidden:ne,high:O,href:null,hrefLang:null,htmlFor:me,httpEquiv:me,id:null,imageSizes:null,imageSrcSet:null,inert:ne,inputMode:null,integrity:null,is:null,isMap:ne,itemId:null,itemProp:me,itemRef:me,itemScope:ne,itemType:me,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ne,low:O,manifest:null,max:null,maxLength:O,media:null,method:null,min:null,minLength:O,multiple:ne,muted:ne,name:null,nonce:null,noModule:ne,noValidate:ne,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ne,optimum:O,pattern:null,ping:me,placeholder:null,playsInline:ne,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ne,referrerPolicy:null,rel:me,required:ne,reversed:ne,rows:O,rowSpan:O,sandbox:me,scope:null,scoped:ne,seamless:ne,selected:ne,shadowRootClonable:ne,shadowRootDelegatesFocus:ne,shadowRootMode:null,shape:null,size:O,sizes:null,slot:null,span:O,spellCheck:Pe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:O,step:null,style:null,tabIndex:O,target:null,title:null,translate:null,type:null,typeMustMatch:ne,useMap:null,value:Pe,width:O,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:me,axis:null,background:null,bgColor:null,border:O,borderColor:null,bottomMargin:O,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ne,declare:ne,event:null,face:null,frame:null,frameBorder:null,hSpace:O,leftMargin:O,link:null,longDesc:null,lowSrc:null,marginHeight:O,marginWidth:O,noResize:ne,noHref:ne,noShade:ne,noWrap:ne,object:null,profile:null,prompt:null,rev:null,rightMargin:O,rules:null,scheme:null,scrolling:Pe,standby:null,summary:null,text:null,topMargin:O,valueType:null,version:null,vAlign:null,vLink:null,vSpace:O,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ne,disableRemotePlayback:ne,prefix:null,property:null,results:O,security:null,unselectable:null}}),Kc=$t({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Oa,properties:{about:Ye,accentHeight:O,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:O,amplitude:O,arabicForm:null,ascent:O,attributeName:null,attributeType:null,azimuth:O,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:O,by:null,calcMode:null,capHeight:O,className:me,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:O,diffuseConstant:O,direction:null,display:null,dur:null,divisor:O,dominantBaseline:null,download:ne,dx:null,dy:null,edgeMode:null,editable:null,elevation:O,enableBackground:null,end:null,event:null,exponent:O,externalResourcesRequired:null,fill:null,fillOpacity:O,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Vt,g2:Vt,glyphName:Vt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:O,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:O,horizOriginX:O,horizOriginY:O,id:null,ideographic:O,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:O,k:O,k1:O,k2:O,k3:O,k4:O,kernelMatrix:Ye,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:O,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:O,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:O,overlineThickness:O,paintOrder:null,panose1:null,path:null,pathLength:O,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:me,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:O,pointsAtY:O,pointsAtZ:O,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ye,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ye,rev:Ye,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ye,requiredFeatures:Ye,requiredFonts:Ye,requiredFormats:Ye,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:O,specularExponent:O,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:O,strikethroughThickness:O,string:null,stroke:null,strokeDashArray:Ye,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:O,strokeOpacity:O,strokeWidth:null,style:null,surfaceScale:O,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ye,tabIndex:O,tableValues:null,target:null,targetX:O,targetY:O,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ye,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:O,underlineThickness:O,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:O,values:null,vAlphabetic:O,vMathematical:O,vectorEffect:null,vHanging:O,vIdeographic:O,version:null,vertAdvY:O,vertOriginX:O,vertOriginY:O,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:O,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Xc=/^data[-\w.:]+$/i,Ha=/-[a-z]/g,Vc=/[A-Z]/g;function $c(e){return"-"+e.toLowerCase()}function Jc(e){return e.charAt(1).toUpperCase()}const Zc={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},eu=Ba([Ma,Qa,La,Ra,Yc],"html"),Kr=Ba([Ma,Qa,La,Ra,Kc],"svg");function Ua(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xr,Fa,za,Jt={},tu=function(){if(za)return Jt;za=1;var e=Jt&&Jt.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.default=function(n,r){var o=null;if(!n||typeof n!="string")return o;var i=(0,t.default)(n),s=typeof r=="function";return i.forEach(function(A){if(A.type==="declaration"){var a=A.property,l=A.value;s?r(a,l,A):l&&((o=o||{})[a]=l)}}),o};var t=e(function(){if(Fa)return Xr;Fa=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,o=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,A=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(d){return d?d.replace(l,c):c}return Xr=function(d,p){if(typeof d!="string")throw new TypeError("First argument must be a string");if(!d)return[];p=p||{};var h=1,m=1;function f(D){var P=D.match(r);P&&(h+=P.length);var S=D.lastIndexOf(`
21
+ `);m=~S?D.length-S:m+D.length}function b(){var D={line:h,column:m};return function(P){return P.position=new y(D),k(),P}}function y(D){this.start=D,this.end={line:h,column:m},this.source=p.source}function g(D){var P=new Error(p.source+":"+h+":"+m+": "+D);if(P.reason=D,P.filename=p.source,P.line=h,P.column=m,P.source=d,!p.silent)throw P}function x(D){var P=D.exec(d);if(P){var S=P[0];return f(S),d=d.slice(S.length),P}}function k(){x(o)}function E(D){var P;for(D=D||[];P=C();)P!==!1&&D.push(P);return D}function C(){var D=b();if(d.charAt(0)=="/"&&d.charAt(1)=="*"){for(var P=2;c!=d.charAt(P)&&(d.charAt(P)!="*"||d.charAt(P+1)!="/");)++P;if(P+=2,c===d.charAt(P-1))return g("End of comment missing");var S=d.slice(2,P-2);return m+=2,f(S),d=d.slice(P),m+=2,D({type:"comment",comment:S})}}function I(){var D=b(),P=x(i);if(P){if(C(),!x(s))return g("property missing ':'");var S=x(A),B=D({type:"declaration",property:u(P[0].replace(n,c)),value:S?u(S[0].replace(n,c)):c});return x(a),B}}return y.prototype.content=d,k(),function(){var D,P=[];for(E(P);D=I();)D!==!1&&(P.push(D),E(P));return P}()},Xr}());return Jt}();const ja=Ua(tu),nu=ja.default||ja,qa=Wa("end"),Vr=Wa("start");function Wa(e){return function(t){const n=t&&t.position&&t.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function mn(e){return e&&typeof e=="object"?"position"in e||"type"in e?Ga(e.position):"start"in e||"end"in e?Ga(e):"line"in e||"column"in e?$r(e):"":""}function $r(e){return Ya(e&&e.line)+":"+Ya(e&&e.column)}function Ga(e){return $r(e&&e.start)+"-"+$r(e&&e.end)}function Ya(e){return e&&typeof e=="number"?e:1}class Ne extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let o="",i={},s=!1;if(n&&(i="line"in n&&"column"in n||"start"in n&&"end"in n?{place:n}:"type"in n?{ancestors:[n],place:n.position}:{...n}),typeof t=="string"?o=t:!i.cause&&t&&(s=!0,o=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const a=r.indexOf(":");a===-1?i.ruleId=r:(i.source=r.slice(0,a),i.ruleId=r.slice(a+1))}if(!i.place&&i.ancestors&&i.ancestors){const a=i.ancestors[i.ancestors.length-1];a&&(i.place=a.position)}const A=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=A?A.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=A?A.line:void 0,this.name=mn(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}Ne.prototype.file="",Ne.prototype.name="",Ne.prototype.reason="",Ne.prototype.message="",Ne.prototype.stack="",Ne.prototype.column=void 0,Ne.prototype.line=void 0,Ne.prototype.ancestors=void 0,Ne.prototype.cause=void 0,Ne.prototype.fatal=void 0,Ne.prototype.place=void 0,Ne.prototype.ruleId=void 0,Ne.prototype.source=void 0;const Jr={}.hasOwnProperty,ru=new Map,ou=/[A-Z]/g,iu=/-([a-z])/g,au=new Set(["table","tbody","thead","tfoot","tr"]),su=new Set(["td","th"]),Ka="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Au(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(s,A){return a;function a(l,c,u,d){const p=Array.isArray(u.children),h=Vr(l);return A(c,u,d,p,{columnNumber:h?h.column-1:void 0,fileName:s,lineNumber:h?h.line:void 0},void 0)}}(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=function(s,A,a){return l;function l(c,u,d,p){const h=Array.isArray(d.children)?a:A;return p?h(u,d,p):h(u,d)}}(0,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Kr:eu,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=Xa(o,e,void 0);return i&&typeof i!="string"?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function Xa(e,t,n){return t.type==="element"?function(r,o,i){const s=r.schema;let A=s;o.tagName.toLowerCase()==="svg"&&s.space==="html"&&(A=Kr,r.schema=A),r.ancestors.push(o);const a=$a(r,o.tagName,!1),l=function(u,d){const p={};let h,m;for(m in d.properties)if(m!=="children"&&Jr.call(d.properties,m)){const f=lu(u,m,d.properties[m]);if(f){const[b,y]=f;u.tableCellAlignToStyle&&b==="align"&&typeof y=="string"&&su.has(d.tagName)?h=y:p[b]=y}}return h&&((p.style||(p.style={}))[u.stylePropertyNameCase==="css"?"text-align":"textAlign"]=h),p}(r,o);let c=eo(r,o);return au.has(o.tagName)&&(c=c.filter(function(u){return typeof u!="string"||!function(d){return typeof d=="object"?d.type==="text"&&Sa(d.value):Sa(d)}(u)})),Va(r,l,a,o),Zr(l,c),r.ancestors.pop(),r.schema=s,r.create(o,a,l,i)}(e,t,n):t.type==="mdxFlowExpression"||t.type==="mdxTextExpression"?function(r,o){if(o.data&&o.data.estree&&r.evaluater){const i=o.data.estree.body[0];return i.type,r.evaluater.evaluateExpression(i.expression)}yn(r,o.position)}(e,t):t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement"?function(r,o,i){const s=r.schema;let A=s;o.name==="svg"&&s.space==="html"&&(A=Kr,r.schema=A),r.ancestors.push(o);const a=o.name===null?r.Fragment:$a(r,o.name,!0),l=function(u,d){const p={};for(const h of d.attributes)if(h.type==="mdxJsxExpressionAttribute")if(h.data&&h.data.estree&&u.evaluater){const m=h.data.estree.body[0];m.type;const f=m.expression;f.type;const b=f.properties[0];b.type,Object.assign(p,u.evaluater.evaluateExpression(b.argument))}else yn(u,d.position);else{const m=h.name;let f;if(h.value&&typeof h.value=="object")if(h.value.data&&h.value.data.estree&&u.evaluater){const b=h.value.data.estree.body[0];b.type,f=u.evaluater.evaluateExpression(b.expression)}else yn(u,d.position);else f=h.value===null||h.value;p[m]=f}return p}(r,o),c=eo(r,o);return Va(r,l,a,o),Zr(l,c),r.ancestors.pop(),r.schema=s,r.create(o,a,l,i)}(e,t,n):t.type==="mdxjsEsm"?function(r,o){if(o.data&&o.data.estree&&r.evaluater)return r.evaluater.evaluateProgram(o.data.estree);yn(r,o.position)}(e,t):t.type==="root"?function(r,o,i){const s={};return Zr(s,eo(r,o)),r.create(o,r.Fragment,s,i)}(e,t,n):t.type==="text"?function(r,o){return o.value}(0,t):void 0}function Va(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Zr(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function eo(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:ru;for(;++r<t.children.length;){const i=t.children[r];let s;if(e.passKeys){const a=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(a){const l=o.get(a)||0;s=a+"-"+l,o.set(a,l+1)}}const A=Xa(e,i,s);A!==void 0&&n.push(A)}return n}function lu(e,t,n){const r=function(o,i){const s=qr(i);let A=i,a=Je;if(s in o.normal)return o.property[o.normal[s]];if(s.length>4&&s.slice(0,4)==="data"&&Xc.test(i)){if(i.charAt(4)==="-"){const l=i.slice(5).replace(Ha,Jc);A="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=i.slice(4);if(!Ha.test(l)){let c=l.replace(Vc,$c);c.charAt(0)!=="-"&&(c="-"+c),i="data"+c}}a=Yr}return new a(A,i)}(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(o){const i={};return(o[o.length-1]===""?[...o,""]:o).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}(n):function(o){return o.join(" ").trim()}(n)),r.property==="style"){let o=typeof n=="object"?n:function(i,s){const A={};try{nu(s,a)}catch(l){if(!i.ignoreInvalidStyle){const c=l,u=new Ne("Cannot parse `style` attribute",{ancestors:i.ancestors,cause:c,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw u.file=i.filePath||void 0,u.url=Ka+"#cannot-parse-style-attribute",u}}return A;function a(l,c){let u=l;u.slice(0,2)!=="--"&&(u.slice(0,4)==="-ms-"&&(u="ms-"+u.slice(4)),u=u.replace(iu,uu)),A[u]=c}}(e,String(n));return e.stylePropertyNameCase==="css"&&(o=function(i){const s={};let A;for(A in i)Jr.call(i,A)&&(s[cu(A)]=i[A]);return s}(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&r.space?Zc[r.property]||r.property:r.attribute,n]}}function $a(e,t,n){let r;if(n)if(t.includes(".")){const o=t.split(".");let i,s=-1;for(;++s<o.length;){const A=Da(o[s])?{type:"Identifier",name:o[s]}:{type:"Literal",value:o[s]};i=i?{type:"MemberExpression",object:i,property:A,computed:!(!s||A.type!=="Literal"),optional:!1}:A}r=i}else r=Da(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if(r.type==="Literal"){const o=r.value;return Jr.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(r);yn(e)}function yn(e,t){const n=new Ne("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Ka+"#cannot-handle-mdx-estrees-without-createevaluater",n}function cu(e){let t=e.replace(ou,du);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function uu(e,t){return t.toUpperCase()}function du(e){return"-"+e.toLowerCase()}const to={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},qn={};function Ja(e,t,n){if(function(r){return!(!r||typeof r!="object")}(e)){if("value"in e)return e.type!=="html"||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Za(e.children,t,n)}return Array.isArray(e)?Za(e,t,n):""}function Za(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=Ja(e[o],t,n);return r.join("")}const es=document.createElement("i");function no(e){const t="&"+e+";";es.innerHTML=t;const n=es.textContent;return(n.charCodeAt(n.length-1)!==59||e==="semi")&&n!==t&&n}function ut(e,t,n,r){const o=e.length;let i,s=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);s<r.length;)i=r.slice(s,s+1e4),i.unshift(t,0),e.splice(...i),s+=1e4,t+=1e4}function Ze(e,t){return e.length>0?(ut(e,e.length,0,t),e):t}const ts={}.hasOwnProperty;function pu(e){const t={};let n=-1;for(;++n<e.length;)fu(t,e[n]);return t}function fu(e,t){let n;for(n in t){const r=(ts.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){ts.call(r,i)||(r[i]=[]);const s=o[i];hu(r[i],Array.isArray(s)?s:s?[s]:[])}}}function hu(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);ut(e,0,0,r)}function ns(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}function Zt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const dt=Ct(/[A-Za-z]/),Ke=Ct(/[\dA-Za-z]/),gu=Ct(/[#-'*+\--9=?A-Z^-~]/);function ro(e){return e!==null&&(e<32||e===127)}const oo=Ct(/\d/),mu=Ct(/[\dA-Fa-f]/),yu=Ct(/[!-/:-@[-`{-~]/);function te(e){return e!==null&&e<-2}function je(e){return e!==null&&(e<0||e===32)}function pe(e){return e===-2||e===-1||e===32}const vu=Ct(new RegExp("\\p{P}|\\p{S}","u")),bu=Ct(/\s/);function Ct(e){return function(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function en(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let s="";if(i===37&&Ke(e.charCodeAt(n+1))&&Ke(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(s=String.fromCharCode(i));else if(i>55295&&i<57344){const A=e.charCodeAt(n+1);i<56320&&A>56319&&A<57344?(s=String.fromCharCode(i,A),o=1):s="�"}else s=String.fromCharCode(i);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+o+1,s=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function ye(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(A){return pe(A)?(e.enter(n),s(A)):t(A)};function s(A){return pe(A)&&i++<o?(e.consume(A),s):(e.exit(n),t(A))}}const wu={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(i){return i===null?void e.consume(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),ye(e,t,"linePrefix"))},function(i){return e.enter("paragraph"),r(i)});let n;return t;function r(i){const s=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,o(i)}function o(i){return i===null?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(i)):te(i)?(e.consume(i),e.exit("chunkText"),r):(e.consume(i),o)}}},xu={tokenize:function(e){const t=this,n=[];let r,o,i,s=0;return A;function A(g){if(s<n.length){const x=n[s];return t.containerState=x[1],e.attempt(x[0].continuation,a,l)(g)}return l(g)}function a(g){if(s++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&y();const x=t.events.length;let k,E=x;for(;E--;)if(t.events[E][0]==="exit"&&t.events[E][1].type==="chunkFlow"){k=t.events[E][1].end;break}b(s);let C=x;for(;C<t.events.length;)t.events[C][1].end={...k},C++;return ut(t.events,E+1,0,t.events.slice(x)),t.events.length=C,l(g)}return A(g)}function l(g){if(s===n.length){if(!r)return d(g);if(r.currentConstruct&&r.currentConstruct.concrete)return h(g);t.interrupt=!(!r.currentConstruct||r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(rs,c,u)(g)}function c(g){return r&&y(),b(s),d(g)}function u(g){return t.parser.lazy[t.now().line]=s!==n.length,i=t.now().offset,h(g)}function d(g){return t.containerState={},e.attempt(rs,p,h)(g)}function p(g){return s++,n.push([t.currentConstruct,t.containerState]),d(g)}function h(g){return g===null?(r&&y(),b(0),void e.consume(g)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),m(g))}function m(g){return g===null?(f(e.exit("chunkFlow"),!0),b(0),void e.consume(g)):te(g)?(e.consume(g),f(e.exit("chunkFlow")),s=0,t.interrupt=void 0,A):(e.consume(g),m)}function f(g,x){const k=t.sliceStream(g);if(x&&k.push(null),g.previous=o,o&&(o.next=g),o=g,r.defineSkip(g.start),r.write(k),t.parser.lazy[g.start.line]){let E=r.events.length;for(;E--;)if(r.events[E][1].start.offset<i&&(!r.events[E][1].end||r.events[E][1].end.offset>i))return;const C=t.events.length;let I,D,P=C;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){if(I){D=t.events[P][1].end;break}I=!0}for(b(s),E=C;E<t.events.length;)t.events[E][1].end={...D},E++;ut(t.events,P+1,0,t.events.slice(C)),t.events.length=E}}function b(g){let x=n.length;for(;x-- >g;){const k=n[x];t.containerState=k[1],k[0].exit.call(t,e)}n.length=g}function y(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},rs={tokenize:function(e,t,n){return ye(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function os(e){return e===null||je(e)||bu(e)?1:vu(e)?2:void 0}function io(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const ao={name:"attention",resolveAll:function(e,t){let n,r,o,i,s,A,a,l,c=-1;for(;++c<e.length;)if(e[c][0]==="enter"&&e[c][1].type==="attentionSequence"&&e[c][1]._close){for(n=c;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;A=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;const u={...e[n][1].end},d={...e[c][1].start};is(u,-A),is(d,A),i={type:A>1?"strongSequence":"emphasisSequence",start:u,end:{...e[n][1].end}},s={type:A>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:d},o={type:A>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:A>1?"strong":"emphasis",start:{...i.start},end:{...s.end}},e[n][1].end={...i.start},e[c][1].start={...s.end},a=[],e[n][1].end.offset-e[n][1].start.offset&&(a=Ze(a,[["enter",e[n][1],t],["exit",e[n][1],t]])),a=Ze(a,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),a=Ze(a,io(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),a=Ze(a,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(l=2,a=Ze(a,[["enter",e[c][1],t],["exit",e[c][1],t]])):l=0,ut(e,n-1,c-n+3,a),c=n+a.length-l-2;break}}for(c=-1;++c<e.length;)e[c][1].type==="attentionSequence"&&(e[c][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=os(r);let i;return function(A){return i=A,e.enter("attentionSequence"),s(A)};function s(A){if(A===i)return e.consume(A),s;const a=e.exit("attentionSequence"),l=os(A),c=!l||l===2&&o||n.includes(A),u=!o||o===2&&l||n.includes(r);return a._open=!!(i===42?c:c&&(o||!u)),a._close=!!(i===42?u:u&&(l||!c)),t(A)}}};function is(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Eu={name:"autolink",tokenize:function(e,t,n){let r=0;return function(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(d){return dt(d)?(e.consume(d),i):d===64?n(d):a(d)}function i(d){return d===43||d===45||d===46||Ke(d)?(r=1,s(d)):a(d)}function s(d){return d===58?(e.consume(d),r=0,A):(d===43||d===45||d===46||Ke(d))&&r++<32?(e.consume(d),s):(r=0,a(d))}function A(d){return d===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):d===null||d===32||d===60||ro(d)?n(d):(e.consume(d),A)}function a(d){return d===64?(e.consume(d),l):gu(d)?(e.consume(d),a):n(d)}function l(d){return Ke(d)?c(d):n(d)}function c(d){return d===46?(e.consume(d),r=0,l):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):u(d)}function u(d){if((d===45||Ke(d))&&r++<63){const p=d===45?u:c;return e.consume(d),p}return n(d)}}},Wn={partial:!0,tokenize:function(e,t,n){return function(o){return pe(o)?ye(e,r,"linePrefix")(o):r(o)};function r(o){return o===null||te(o)?t(o):n(o)}}},as={continuation:{tokenize:function(e,t,n){const r=this;return function(i){return pe(i)?ye(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):o(i)};function o(i){return e.attempt(as,t,n)(i)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(i){if(i===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(i),e.exit("blockQuoteMarker"),o}return n(i)};function o(i){return pe(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(i))}}},ss={name:"characterEscape",tokenize:function(e,t,n){return function(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),r};function r(o){return yu(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}},As={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,s=0;return function(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),A};function A(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),a):(e.enter("characterReferenceValue"),o=31,i=Ke,l(c))}function a(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=mu,l):(e.enter("characterReferenceValue"),o=7,i=oo,l(c))}function l(c){if(c===59&&s){const u=e.exit("characterReferenceValue");return i!==Ke||no(r.sliceSerialize(u))?(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(c)}return i(c)&&s++<o?(e.consume(c),l):n(c)}}},ls={partial:!0,tokenize:function(e,t,n){const r=this;return function(i){return i===null?n(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),o)};function o(i){return r.parser.lazy[r.now().line]?n(i):t(i)}}},cs={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,o={partial:!0,tokenize:function(g,x,k){let E=0;return C;function C(B){return g.enter("lineEnding"),g.consume(B),g.exit("lineEnding"),I}function I(B){return g.enter("codeFencedFence"),pe(B)?ye(g,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):D(B)}function D(B){return B===i?(g.enter("codeFencedFenceSequence"),P(B)):k(B)}function P(B){return B===i?(E++,g.consume(B),P):E>=A?(g.exit("codeFencedFenceSequence"),pe(B)?ye(g,S,"whitespace")(B):S(B)):k(B)}function S(B){return B===null||te(B)?(g.exit("codeFencedFence"),x(B)):k(B)}}};let i,s=0,A=0;return function(g){return function(x){const k=r.events[r.events.length-1];return s=k&&k[1].type==="linePrefix"?k[2].sliceSerialize(k[1],!0).length:0,i=x,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),a(x)}(g)};function a(g){return g===i?(A++,e.consume(g),a):A<3?n(g):(e.exit("codeFencedFenceSequence"),pe(g)?ye(e,l,"whitespace")(g):l(g))}function l(g){return g===null||te(g)?(e.exit("codeFencedFence"),r.interrupt?t(g):e.check(ls,p,y)(g)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),c(g))}function c(g){return g===null||te(g)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(g)):pe(g)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ye(e,u,"whitespace")(g)):g===96&&g===i?n(g):(e.consume(g),c)}function u(g){return g===null||te(g)?l(g):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(g))}function d(g){return g===null||te(g)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(g)):g===96&&g===i?n(g):(e.consume(g),d)}function p(g){return e.attempt(o,y,h)(g)}function h(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),m}function m(g){return s>0&&pe(g)?ye(e,f,"linePrefix",s+1)(g):f(g)}function f(g){return g===null||te(g)?e.check(ls,p,y)(g):(e.enter("codeFlowValue"),b(g))}function b(g){return g===null||te(g)?(e.exit("codeFlowValue"),f(g)):(e.consume(g),b)}function y(g){return e.exit("codeFenced"),t(g)}}},so={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(a){return e.enter("codeIndented"),ye(e,o,"linePrefix",5)(a)};function o(a){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?i(a):n(a)}function i(a){return a===null?A(a):te(a)?e.attempt(_u,i,A)(a):(e.enter("codeFlowValue"),s(a))}function s(a){return a===null||te(a)?(e.exit("codeFlowValue"),i(a)):(e.consume(a),s)}function A(a){return e.exit("codeIndented"),t(a)}}},_u={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(s){return r.parser.lazy[r.now().line]?n(s):te(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):ye(e,i,"linePrefix",5)(s)}function i(s){const A=r.events[r.events.length-1];return A&&A[1].type==="linePrefix"&&A[2].sliceSerialize(A[1],!0).length>=4?t(s):te(s)?o(s):n(s)}}},ku={name:"codeText",previous:function(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"},resolve:function(e){let t,n,r=e.length-4,o=3;if(!(e[o][1].type!=="lineEnding"&&e[o][1].type!=="space"||e[r][1].type!=="lineEnding"&&e[r][1].type!=="space")){for(t=o;++t<r;)if(e[t][1].type==="codeTextData"){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}}for(t=o-1,r++;++t<=r;)n===void 0?t!==r&&e[t][1].type!=="lineEnding"&&(n=t):(t===r||e[t][1].type==="lineEnding")&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,o,i=0;return function(c){return e.enter("codeText"),e.enter("codeTextSequence"),s(c)};function s(c){return c===96?(e.consume(c),i++,s):(e.exit("codeTextSequence"),A(c))}function A(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),A):c===96?(o=e.enter("codeTextSequence"),r=0,l(c)):te(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),A):(e.enter("codeTextData"),a(c))}function a(c){return c===null||c===32||c===96||te(c)?(e.exit("codeTextData"),A(c)):(e.consume(c),a)}function l(c){return c===96?(e.consume(c),r++,l):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(o.type="codeTextData",a(c))}}};class Pu{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const o=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return r&&vn(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),vn(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),vn(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);vn(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);vn(this.left,n.reverse())}}}function vn(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function us(e){const t={};let n,r,o,i,s,A,a,l=-1;const c=new Pu(e);for(;++l<c.length;){for(;l in t;)l=t[l];if(n=c.get(l),l&&n[1].type==="chunkFlow"&&c.get(l-1)[1].type==="listItemPrefix"&&(A=n[1]._tokenizer.events,o=0,o<A.length&&A[o][1].type==="lineEndingBlank"&&(o+=2),o<A.length&&A[o][1].type==="content"))for(;++o<A.length&&A[o][1].type!=="content";)A[o][1].type==="chunkText"&&(A[o][1]._isInFirstContentOfListItem=!0,o++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,Cu(c,l)),l=t[l],a=!0);else if(n[1]._container){for(o=l,r=void 0;o--;)if(i=c.get(o),i[1].type==="lineEnding"||i[1].type==="lineEndingBlank")i[0]==="enter"&&(r&&(c.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);else if(i[1].type!=="linePrefix")break;r&&(n[1].end={...c.get(r)[1].start},s=c.slice(r,l),s.unshift(n),c.splice(r,l-r+1,s))}}return ut(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!a}function Cu(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[],s=n._tokenizer||r.parser[n.contentType](n.start),A=s.events,a=[],l={};let c,u,d=-1,p=n,h=0,m=0;const f=[m];for(;p;){for(;e.get(++o)[1]!==p;);i.push(o),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(null),u&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),u=p,p=p.next}for(p=n;++d<A.length;)A[d][0]==="exit"&&A[d-1][0]==="enter"&&A[d][1].type===A[d-1][1].type&&A[d][1].start.line!==A[d][1].end.line&&(m=d+1,f.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):f.pop(),d=f.length;d--;){const b=A.slice(f[d],f[d+1]),y=i.pop();a.push([y,y+b.length-1]),e.splice(y,2,b)}for(a.reverse(),d=-1;++d<a.length;)l[h+a[d][0]]=h+a[d][1],h+=a[d][1]-a[d][0]-1;return l}const Du={resolve:function(e){return us(e),e},tokenize:function(e,t){let n;return function(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(s)};function r(s){return s===null?o(s):te(s)?e.check(Su,i,o)(s):(e.consume(s),r)}function o(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function i(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},Su={partial:!0,tokenize:function(e,t,n){const r=this;return function(i){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),ye(e,o,"linePrefix")};function o(i){if(i===null||te(i))return n(i);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}};function ds(e,t,n,r,o,i,s,A,a){const l=a||Number.POSITIVE_INFINITY;let c=0;return function(f){return f===60?(e.enter(r),e.enter(o),e.enter(i),e.consume(f),e.exit(i),u):f===null||f===32||f===41||ro(f)?n(f):(e.enter(r),e.enter(s),e.enter(A),e.enter("chunkString",{contentType:"string"}),h(f))};function u(f){return f===62?(e.enter(i),e.consume(f),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(A),e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===62?(e.exit("chunkString"),e.exit(A),u(f)):f===null||f===60||te(f)?n(f):(e.consume(f),f===92?p:d)}function p(f){return f===60||f===62||f===92?(e.consume(f),d):d(f)}function h(f){return c||f!==null&&f!==41&&!je(f)?c<l&&f===40?(e.consume(f),c++,h):f===41?(e.consume(f),c--,h):f===null||f===32||f===40||ro(f)?n(f):(e.consume(f),f===92?m:h):(e.exit("chunkString"),e.exit(A),e.exit(s),e.exit(r),t(f))}function m(f){return f===40||f===41||f===92?(e.consume(f),h):h(f)}}function ps(e,t,n,r,o,i){const s=this;let A,a=0;return function(d){return e.enter(r),e.enter(o),e.consume(d),e.exit(o),e.enter(i),l};function l(d){return a>999||d===null||d===91||d===93&&!A||d===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?n(d):d===93?(e.exit(i),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):te(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===null||d===91||d===93||te(d)||a++>999?(e.exit("chunkString"),l(d)):(e.consume(d),A||(A=!pe(d)),d===92?u:c)}function u(d){return d===91||d===92||d===93?(e.consume(d),a++,c):c(d)}}function fs(e,t,n,r,o,i){let s;return function(u){return u===34||u===39||u===40?(e.enter(r),e.enter(o),e.consume(u),e.exit(o),s=u===40?41:u,A):n(u)};function A(u){return u===s?(e.enter(o),e.consume(u),e.exit(o),e.exit(r),t):(e.enter(i),a(u))}function a(u){return u===s?(e.exit(i),A(s)):u===null?n(u):te(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),ye(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),l(u))}function l(u){return u===s||u===null||te(u)?(e.exit("chunkString"),a(u)):(e.consume(u),u===92?c:l)}function c(u){return u===s||u===92?(e.consume(u),l):l(u)}}function bn(e,t){let n;return function r(o){return te(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):pe(o)?ye(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}const Bu={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(u){return e.enter("definition"),function(d){return ps.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}(u)};function i(u){return o=Zt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),u===58?(e.enter("definitionMarker"),e.consume(u),e.exit("definitionMarker"),s):n(u)}function s(u){return je(u)?bn(e,A)(u):A(u)}function A(u){return ds(e,a,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(u)}function a(u){return e.attempt(Iu,l,l)(u)}function l(u){return pe(u)?ye(e,c,"whitespace")(u):c(u)}function c(u){return u===null||te(u)?(e.exit("definition"),r.parser.defined.push(o),t(u)):n(u)}}},Iu={partial:!0,tokenize:function(e,t,n){return function(s){return je(s)?bn(e,r)(s):n(s)};function r(s){return fs(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return pe(s)?ye(e,i,"whitespace")(s):i(s)}function i(s){return s===null||te(s)?t(s):n(s)}}},Tu={name:"hardBreakEscape",tokenize:function(e,t,n){return function(o){return e.enter("hardBreakEscape"),e.consume(o),r};function r(o){return te(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}},Qu={name:"headingAtx",resolve:function(e,t){let n,r,o=e.length-2,i=3;return e[i][1].type==="whitespace"&&(i+=2),o-2>i&&e[o][1].type==="whitespace"&&(o-=2),e[o][1].type==="atxHeadingSequence"&&(i===o-1||o-4>i&&e[o-2][1].type==="whitespace")&&(o-=i+1===o?2:4),o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},ut(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(a){return e.enter("atxHeading"),function(l){return e.enter("atxHeadingSequence"),o(l)}(a)};function o(a){return a===35&&r++<6?(e.consume(a),o):a===null||je(a)?(e.exit("atxHeadingSequence"),i(a)):n(a)}function i(a){return a===35?(e.enter("atxHeadingSequence"),s(a)):a===null||te(a)?(e.exit("atxHeading"),t(a)):pe(a)?ye(e,i,"whitespace")(a):(e.enter("atxHeadingText"),A(a))}function s(a){return a===35?(e.consume(a),s):(e.exit("atxHeadingSequence"),i(a))}function A(a){return a===null||a===35||je(a)?(e.exit("atxHeadingText"),i(a)):(e.consume(a),A)}}},Mu=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],hs=["pre","script","style","textarea"],Ou={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&(e[t][0]!=="enter"||e[t][1].type!=="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){const r=this;let o,i,s,A,a;return function(w){return function(W){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(W),l}(w)};function l(w){return w===33?(e.consume(w),c):w===47?(e.consume(w),i=!0,p):w===63?(e.consume(w),o=3,r.interrupt?t:H):dt(w)?(e.consume(w),s=String.fromCharCode(w),h):n(w)}function c(w){return w===45?(e.consume(w),o=2,u):w===91?(e.consume(w),o=5,A=0,d):dt(w)?(e.consume(w),o=4,r.interrupt?t:H):n(w)}function u(w){return w===45?(e.consume(w),r.interrupt?t:H):n(w)}function d(w){return w==="CDATA[".charCodeAt(A++)?(e.consume(w),A===6?r.interrupt?t:P:d):n(w)}function p(w){return dt(w)?(e.consume(w),s=String.fromCharCode(w),h):n(w)}function h(w){if(w===null||w===47||w===62||je(w)){const W=w===47,re=s.toLowerCase();return W||i||!hs.includes(re)?Mu.includes(s.toLowerCase())?(o=6,W?(e.consume(w),m):r.interrupt?t(w):P(w)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(w):i?f(w):b(w)):(o=1,r.interrupt?t(w):P(w))}return w===45||Ke(w)?(e.consume(w),s+=String.fromCharCode(w),h):n(w)}function m(w){return w===62?(e.consume(w),r.interrupt?t:P):n(w)}function f(w){return pe(w)?(e.consume(w),f):I(w)}function b(w){return w===47?(e.consume(w),I):w===58||w===95||dt(w)?(e.consume(w),y):pe(w)?(e.consume(w),b):I(w)}function y(w){return w===45||w===46||w===58||w===95||Ke(w)?(e.consume(w),y):g(w)}function g(w){return w===61?(e.consume(w),x):pe(w)?(e.consume(w),g):b(w)}function x(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),a=w,k):pe(w)?(e.consume(w),x):E(w)}function k(w){return w===a?(e.consume(w),a=null,C):w===null||te(w)?n(w):(e.consume(w),k)}function E(w){return w===null||w===34||w===39||w===47||w===60||w===61||w===62||w===96||je(w)?g(w):(e.consume(w),E)}function C(w){return w===47||w===62||pe(w)?b(w):n(w)}function I(w){return w===62?(e.consume(w),D):n(w)}function D(w){return w===null||te(w)?P(w):pe(w)?(e.consume(w),D):n(w)}function P(w){return w===45&&o===2?(e.consume(w),R):w===60&&o===1?(e.consume(w),Q):w===62&&o===4?(e.consume(w),v):w===63&&o===3?(e.consume(w),H):w===93&&o===5?(e.consume(w),N):!te(w)||o!==6&&o!==7?w===null||te(w)?(e.exit("htmlFlowData"),S(w)):(e.consume(w),P):(e.exit("htmlFlowData"),e.check(Nu,q,S)(w))}function S(w){return e.check(Lu,B,q)(w)}function B(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),L}function L(w){return w===null||te(w)?S(w):(e.enter("htmlFlowData"),P(w))}function R(w){return w===45?(e.consume(w),H):P(w)}function Q(w){return w===47?(e.consume(w),s="",z):P(w)}function z(w){if(w===62){const W=s.toLowerCase();return hs.includes(W)?(e.consume(w),v):P(w)}return dt(w)&&s.length<8?(e.consume(w),s+=String.fromCharCode(w),z):P(w)}function N(w){return w===93?(e.consume(w),H):P(w)}function H(w){return w===62?(e.consume(w),v):w===45&&o===2?(e.consume(w),H):P(w)}function v(w){return w===null||te(w)?(e.exit("htmlFlowData"),q(w)):(e.consume(w),v)}function q(w){return e.exit("htmlFlow"),t(w)}}},Nu={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Wn,t,n)}}},Lu={partial:!0,tokenize:function(e,t,n){const r=this;return function(i){return te(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),o):n(i)};function o(i){return r.parser.lazy[r.now().line]?n(i):t(i)}}},Ru={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,s;return function(v){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(v),A};function A(v){return v===33?(e.consume(v),a):v===47?(e.consume(v),x):v===63?(e.consume(v),y):dt(v)?(e.consume(v),C):n(v)}function a(v){return v===45?(e.consume(v),l):v===91?(e.consume(v),i=0,p):dt(v)?(e.consume(v),b):n(v)}function l(v){return v===45?(e.consume(v),d):n(v)}function c(v){return v===null?n(v):v===45?(e.consume(v),u):te(v)?(s=c,z(v)):(e.consume(v),c)}function u(v){return v===45?(e.consume(v),d):c(v)}function d(v){return v===62?Q(v):v===45?u(v):c(v)}function p(v){return v==="CDATA[".charCodeAt(i++)?(e.consume(v),i===6?h:p):n(v)}function h(v){return v===null?n(v):v===93?(e.consume(v),m):te(v)?(s=h,z(v)):(e.consume(v),h)}function m(v){return v===93?(e.consume(v),f):h(v)}function f(v){return v===62?Q(v):v===93?(e.consume(v),f):h(v)}function b(v){return v===null||v===62?Q(v):te(v)?(s=b,z(v)):(e.consume(v),b)}function y(v){return v===null?n(v):v===63?(e.consume(v),g):te(v)?(s=y,z(v)):(e.consume(v),y)}function g(v){return v===62?Q(v):y(v)}function x(v){return dt(v)?(e.consume(v),k):n(v)}function k(v){return v===45||Ke(v)?(e.consume(v),k):E(v)}function E(v){return te(v)?(s=E,z(v)):pe(v)?(e.consume(v),E):Q(v)}function C(v){return v===45||Ke(v)?(e.consume(v),C):v===47||v===62||je(v)?I(v):n(v)}function I(v){return v===47?(e.consume(v),Q):v===58||v===95||dt(v)?(e.consume(v),D):te(v)?(s=I,z(v)):pe(v)?(e.consume(v),I):Q(v)}function D(v){return v===45||v===46||v===58||v===95||Ke(v)?(e.consume(v),D):P(v)}function P(v){return v===61?(e.consume(v),S):te(v)?(s=P,z(v)):pe(v)?(e.consume(v),P):I(v)}function S(v){return v===null||v===60||v===61||v===62||v===96?n(v):v===34||v===39?(e.consume(v),o=v,B):te(v)?(s=S,z(v)):pe(v)?(e.consume(v),S):(e.consume(v),L)}function B(v){return v===o?(e.consume(v),o=void 0,R):v===null?n(v):te(v)?(s=B,z(v)):(e.consume(v),B)}function L(v){return v===null||v===34||v===39||v===60||v===61||v===96?n(v):v===47||v===62||je(v)?I(v):(e.consume(v),L)}function R(v){return v===47||v===62||je(v)?I(v):n(v)}function Q(v){return v===62?(e.consume(v),e.exit("htmlTextData"),e.exit("htmlText"),t):n(v)}function z(v){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),N}function N(v){return pe(v)?ye(e,H,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(v):H(v)}function H(v){return e.enter("htmlTextData"),s(v)}}},Ao={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const o=r.type==="labelImage"?4:2;r.type="data",t+=o}}return e.length!==n.length&&ut(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,o,i,s=e.length,A=0;for(;s--;)if(n=e[s][1],r){if(n.type==="link"||n.type==="labelLink"&&n._inactive)break;e[s][0]==="enter"&&n.type==="labelLink"&&(n._inactive=!0)}else if(o){if(e[s][0]==="enter"&&(n.type==="labelImage"||n.type==="labelLink")&&!n._balanced&&(r=s,n.type!=="labelLink")){A=2;break}}else n.type==="labelEnd"&&(o=s);const a={type:e[r][1].type==="labelLink"?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},l={type:"label",start:{...e[r][1].start},end:{...e[o][1].end}},c={type:"labelText",start:{...e[r+A+2][1].end},end:{...e[o-2][1].start}};return i=[["enter",a,t],["enter",l,t]],i=Ze(i,e.slice(r+1,r+A+3)),i=Ze(i,[["enter",c,t]]),i=Ze(i,io(t.parser.constructs.insideSpan.null,e.slice(r+A+4,o-3),t)),i=Ze(i,[["exit",c,t],e[o-2],e[o-1],["exit",l,t]]),i=Ze(i,e.slice(o+1)),i=Ze(i,[["exit",a,t]]),ut(e,r,e.length,i),e},tokenize:function(e,t,n){const r=this;let o,i,s=r.events.length;for(;s--;)if((r.events[s][1].type==="labelImage"||r.events[s][1].type==="labelLink")&&!r.events[s][1]._balanced){o=r.events[s][1];break}return function(u){return o?o._inactive?c(u):(i=r.parser.defined.includes(Zt(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelEnd"),A):n(u)};function A(u){return u===40?e.attempt(Hu,l,i?l:c)(u):u===91?e.attempt(Uu,l,i?a:c)(u):i?l(u):c(u)}function a(u){return e.attempt(Fu,l,c)(u)}function l(u){return t(u)}function c(u){return o._balanced=!0,n(u)}}},Hu={tokenize:function(e,t,n){return function(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),r};function r(c){return je(c)?bn(e,o)(c):o(c)}function o(c){return c===41?l(c):ds(e,i,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function i(c){return je(c)?bn(e,A)(c):l(c)}function s(c){return n(c)}function A(c){return c===34||c===39||c===40?fs(e,a,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):l(c)}function a(c){return je(c)?bn(e,l)(c):l(c)}function l(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}},Uu={tokenize:function(e,t,n){const r=this;return function(s){return ps.call(r,e,o,i,"reference","referenceMarker","referenceString")(s)};function o(s){return r.parser.defined.includes(Zt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function i(s){return n(s)}}},Fu={tokenize:function(e,t,n){return function(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),r};function r(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}},zu={name:"labelStartImage",resolveAll:Ao.resolveAll,tokenize:function(e,t,n){const r=this;return function(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),o};function o(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),i):n(s)}function i(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}},ju={name:"labelStartLink",resolveAll:Ao.resolveAll,tokenize:function(e,t,n){const r=this;return function(i){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(i),e.exit("labelMarker"),e.exit("labelLink"),o};function o(i){return i===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(i):t(i)}}},lo={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ye(e,t,"linePrefix")}}},Gn={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(A){return e.enter("thematicBreak"),function(a){return r=a,i(a)}(A)};function i(A){return A===r?(e.enter("thematicBreakSequence"),s(A)):o>=3&&(A===null||te(A))?(e.exit("thematicBreak"),t(A)):n(A)}function s(A){return A===r?(e.consume(A),o++,s):(e.exit("thematicBreakSequence"),pe(A)?ye(e,i,"whitespace")(A):i(A))}}},qe={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Wn,function(i){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ye(e,t,"listItemIndent",r.containerState.size+1)(i)},function(i){return r.containerState.furtherBlankLines||!pe(i)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(i)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Wu,t,o)(i))});function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,ye(e,e.attempt(qe,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,s=0;return function(d){const p=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:oo(d)){if(r.containerState.type||(r.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(Gn,n,a)(d):a(d);if(!r.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),A(d)}return n(d)};function A(d){return oo(d)&&++s<10?(e.consume(d),A):(!r.interrupt||s<2)&&(r.containerState.marker?d===r.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),a(d)):n(d)}function a(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,e.check(Wn,r.interrupt?n:l,e.attempt(qu,u,c))}function l(d){return r.containerState.initialBlankLine=!0,i++,u(d)}function c(d){return pe(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),u):n(d)}function u(d){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}},qu={partial:!0,tokenize:function(e,t,n){const r=this;return ye(e,function(o){const i=r.events[r.events.length-1];return!pe(o)&&i&&i[1].type==="listItemPrefixWhitespace"?t(o):n(o)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},Wu={partial:!0,tokenize:function(e,t,n){const r=this;return ye(e,function(o){const i=r.events[r.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(o):n(o)},"listItemIndent",r.containerState.size+1)}},gs={name:"setextUnderline",resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if(e[i][0]==="enter"){if(e[i][1].type==="content"){n=i;break}e[i][1].type==="paragraph"&&(r=i)}else e[i][1].type==="content"&&e.splice(i,1),!o&&e[i][1].type==="definition"&&(o=i);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",s,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=s,e.push(["exit",s,t]),e},tokenize:function(e,t,n){const r=this;let o;return function(A){let a,l=r.events.length;for(;l--;)if(r.events[l][1].type!=="lineEnding"&&r.events[l][1].type!=="linePrefix"&&r.events[l][1].type!=="content"){a=r.events[l][1].type==="paragraph";break}return r.parser.lazy[r.now().line]||!r.interrupt&&!a?n(A):(e.enter("setextHeadingLine"),o=A,function(c){return e.enter("setextHeadingLineSequence"),i(c)}(A))};function i(A){return A===o?(e.consume(A),i):(e.exit("setextHeadingLineSequence"),pe(A)?ye(e,s,"lineSuffix")(A):s(A))}function s(A){return A===null||te(A)?(e.exit("setextHeadingLine"),t(A)):n(A)}}},Gu={tokenize:function(e){const t=this,n=e.attempt(Wn,function(o){return o===null?void e.consume(o):(e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,ye(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Du,r)),"linePrefix")));return n;function r(o){if(o!==null)return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(o)}}},Yu={resolveAll:ys()},Ku=ms("string"),Xu=ms("text");function ms(e){return{resolveAll:ys(e==="text"?Vu:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,s);return i;function i(l){return a(l)?o(l):s(l)}function s(l){if(l!==null)return t.enter("data"),t.consume(l),A;t.consume(l)}function A(l){return a(l)?(t.exit("data"),o(l)):(t.consume(l),A)}function a(l){if(l===null)return!0;const c=r[l];let u=-1;if(c)for(;++u<c.length;){const d=c[u];if(!d.previous||d.previous.call(n,n.previous))return!0}return!1}}}}function ys(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)r===void 0?t[o]&&t[o][1].type==="data"&&(r=o,o++):(!t[o]||t[o][1].type!=="data")&&(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function Vu(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],o=t.sliceStream(r);let i,s=o.length,A=-1,a=0;for(;s--;){const l=o[s];if(typeof l=="string"){for(A=l.length;l.charCodeAt(A-1)===32;)a++,A--;if(A)break;A=-1}else if(l===-2)i=!0,a++;else if(l!==-1){s++;break}}if(a){const l={type:n===e.length||i||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?A:r.start._bufferIndex+A,_index:r.start._index+s,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...l.start},r.start.offset===r.end.offset?Object.assign(r,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}const $u={42:qe,43:qe,45:qe,48:qe,49:qe,50:qe,51:qe,52:qe,53:qe,54:qe,55:qe,56:qe,57:qe,62:as},Ju={91:Bu},Zu={[-2]:so,[-1]:so,32:so},ed={35:Qu,42:Gn,45:[gs,Gn],60:Ou,61:gs,95:Gn,96:cs,126:cs},td={38:As,92:ss},nd={[-5]:lo,[-4]:lo,[-3]:lo,33:zu,38:As,42:ao,60:[Eu,Ru],91:ju,92:[Tu,ss],93:Ao,95:ao,96:ku},rd={null:[ao,Yu]},od=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:Ju,disable:{null:[]},document:$u,flow:ed,flowInitial:Zu,insideSpan:rd,string:td,text:nd},Symbol.toStringTag,{value:"Module"}));function id(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},i=[];let s=[],A=[];const a={attempt:m(function(y,g){f(y,g.from)}),check:m(h),consume:function(y){te(y)?(r.line++,r.column=1,r.offset+=y===-3?2:1,b()):y!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=y},enter:function(y,g){const x=g||{};return x.type=y,x.start=d(),l.events.push(["enter",x,l]),A.push(x),x},exit:function(y){const g=A.pop();return g.end=d(),l.events.push(["exit",g,l]),g},interrupt:m(h,{interrupt:!0})},l={code:null,containerState:{},defineSkip:function(y){o[y.line]=y.column,b()},events:[],now:d,parser:e,previous:null,sliceSerialize:function(y,g){return function(x,k){let E=-1;const C=[];let I;for(;++E<x.length;){const D=x[E];let P;if(typeof D=="string")P=D;else switch(D){case-5:P="\r";break;case-4:P=`
22
+ `;break;case-3:P=`\r
23
+ `;break;case-2:P=k?" ":" ";break;case-1:if(!k&&I)continue;P=" ";break;default:P=String.fromCharCode(D)}I=D===-2,C.push(P)}return C.join("")}(u(y),g)},sliceStream:u,write:function(y){return s=Ze(s,y),function(){let g;for(;r._index<s.length;){const x=s[r._index];if(typeof x=="string")for(g=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===g&&r._bufferIndex<x.length;)p(x.charCodeAt(r._bufferIndex));else p(x)}}(),s[s.length-1]!==null?[]:(f(t,0),l.events=io(i,l.events,l),l.events)}};let c=t.tokenize.call(l,a);return t.resolveAll&&i.push(t),l;function u(y){return function(g,x){const k=x.start._index,E=x.start._bufferIndex,C=x.end._index,I=x.end._bufferIndex;let D;if(k===C)D=[g[k].slice(E,I)];else{if(D=g.slice(k,C),E>-1){const P=D[0];typeof P=="string"?D[0]=P.slice(E):D.shift()}I>0&&D.push(g[C].slice(0,I))}return D}(s,y)}function d(){const{_bufferIndex:y,_index:g,line:x,column:k,offset:E}=r;return{_bufferIndex:y,_index:g,line:x,column:k,offset:E}}function p(y){c=c(y)}function h(y,g){g.restore()}function m(y,g){return function(x,k,E){let C,I,D,P;return Array.isArray(x)?S(x):"tokenize"in x?S([x]):function(Q){return z;function z(N){const H=N!==null&&Q[N],v=N!==null&&Q.null;return S([...Array.isArray(H)?H:H?[H]:[],...Array.isArray(v)?v:v?[v]:[]])(N)}}(x);function S(Q){return C=Q,I=0,Q.length===0?E:B(Q[I])}function B(Q){return function(z){return P=function(){const N=d(),H=l.previous,v=l.currentConstruct,q=l.events.length,w=Array.from(A);return{from:q,restore:W};function W(){r=N,l.previous=H,l.currentConstruct=v,l.events.length=q,A=w,b()}}(),D=Q,Q.partial||(l.currentConstruct=Q),Q.name&&l.parser.constructs.disable.null.includes(Q.name)?R():Q.tokenize.call(g?Object.assign(Object.create(l),g):l,a,L,R)(z)}}function L(Q){return y(D,P),k}function R(Q){return P.restore(),++I<C.length?B(C[I]):E}}}function f(y,g){y.resolveAll&&!i.includes(y)&&i.push(y),y.resolve&&ut(l.events,g,l.events.length-g,y.resolve(l.events.slice(g),l)),y.resolveTo&&(l.events=y.resolveTo(l.events,l))}function b(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const vs=/[\0\t\n\r]/g,ad=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function sd(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),o=r===120||r===88;return ns(n.slice(o?2:1),o?16:10)}return no(n)||e}const bs={}.hasOwnProperty;function Ad(e,t,n){return typeof t!="string"&&(n=t,t=void 0),function(r){const o={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Pn),autolinkProtocol:B,autolinkEmail:B,atxHeading:a(Be),blockQuote:a(de),characterEscape:B,characterReference:B,codeFenced:a(he),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:a(he,l),codeText:a(ge,l),codeTextData:B,data:B,codeFlowValue:B,definition:a(De),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:a(Xe),hardBreakEscape:a(gt),hardBreakTrailing:a(gt),htmlFlow:a(Ft,l),htmlFlowData:B,htmlText:a(Ft,l),htmlTextData:B,image:a(Se),label:l,link:a(Pn),listItem:a(St),listItemValue:m,listOrdered:a(et,h),listUnordered:a(et),paragraph:a(Cn),reference:Le,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:a(Be),strong:a(Ee),thematicBreak:a(ot)},exit:{atxHeading:u(),atxHeadingSequence:I,autolink:u(),autolinkEmail:ae,autolinkProtocol:ue,blockQuote:u(),characterEscapeValue:L,characterReferenceMarkerHexadecimal:Fe,characterReferenceMarkerNumeric:Fe,characterReferenceValue:U,characterReference:Y,codeFenced:u(g),codeFencedFence:y,codeFencedFenceInfo:f,codeFencedFenceMeta:b,codeFlowValue:L,codeIndented:u(x),codeText:u(H),codeTextData:L,data:L,definition:u(),definitionDestinationString:C,definitionLabelString:k,definitionTitleString:E,emphasis:u(),hardBreakEscape:u(Q),hardBreakTrailing:u(Q),htmlFlow:u(z),htmlFlowData:L,htmlText:u(N),htmlTextData:L,image:u(q),label:W,labelText:w,lineEnding:R,link:u(v),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:xe,resourceDestinationString:re,resourceTitleString:V,resource:ce,setextHeading:u(S),setextHeadingLineSequence:P,setextHeadingText:D,strong:u(),thematicBreak:u()}};ws(o,(r||{}).mdastExtensions||[]);const i={};return s;function s(T){let F={type:"root",children:[]};const K={stack:[F],tokenStack:[],config:o,enter:c,exit:d,buffer:l,resume:p,data:i},$=[];let se=-1;for(;++se<T.length;)(T[se][1].type==="listOrdered"||T[se][1].type==="listUnordered")&&(T[se][0]==="enter"?$.push(se):se=A(T,$.pop(),se));for(se=-1;++se<T.length;){const Ie=o[T[se][0]];bs.call(Ie,T[se][1].type)&&Ie[T[se][1].type].call(Object.assign({sliceSerialize:T[se][2].sliceSerialize},K),T[se][1])}if(K.tokenStack.length>0){const Ie=K.tokenStack[K.tokenStack.length-1];(Ie[1]||xs).call(K,void 0,Ie[0])}for(F.position={start:Dt(T.length>0?T[0][1].start:{line:1,column:1,offset:0}),end:Dt(T.length>0?T[T.length-2][1].end:{line:1,column:1,offset:0})},se=-1;++se<o.transforms.length;)F=o.transforms[se](F)||F;return F}function A(T,F,K){let $,se,Ie,mt,ze=F-1,bt=-1,it=!1;for(;++ze<=K;){const Oe=T[ze];switch(Oe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":Oe[0]==="enter"?bt++:bt--,mt=void 0;break;case"lineEndingBlank":Oe[0]==="enter"&&($&&!mt&&!bt&&!Ie&&(Ie=ze),mt=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:mt=void 0}if(!bt&&Oe[0]==="enter"&&Oe[1].type==="listItemPrefix"||bt===-1&&Oe[0]==="exit"&&(Oe[1].type==="listUnordered"||Oe[1].type==="listOrdered")){if($){let wt=ze;for(se=void 0;wt--;){const tt=T[wt];if(tt[1].type==="lineEnding"||tt[1].type==="lineEndingBlank"){if(tt[0]==="exit")continue;se&&(T[se][1].type="lineEndingBlank",it=!0),tt[1].type="lineEnding",se=wt}else if(tt[1].type!=="linePrefix"&&tt[1].type!=="blockQuotePrefix"&&tt[1].type!=="blockQuotePrefixWhitespace"&&tt[1].type!=="blockQuoteMarker"&&tt[1].type!=="listItemIndent")break}Ie&&(!se||Ie<se)&&($._spread=!0),$.end=Object.assign({},se?T[se][1].start:Oe[1].end),T.splice(se||ze,0,["exit",$,Oe[2]]),ze++,K++}if(Oe[1].type==="listItemPrefix"){const wt={type:"listItem",_spread:!1,start:Object.assign({},Oe[1].start),end:void 0};$=wt,T.splice(ze,0,["enter",wt,Oe[2]]),ze++,K++,Ie=void 0,mt=!0}}}return T[F][1]._spread=it,K}function a(T,F){return K;function K($){c.call(this,T($),$),F&&F.call(this,$)}}function l(){this.stack.push({type:"fragment",children:[]})}function c(T,F,K){this.stack[this.stack.length-1].children.push(T),this.stack.push(T),this.tokenStack.push([F,K||void 0]),T.position={start:Dt(F.start),end:void 0}}function u(T){return F;function F(K){T&&T.call(this,K),d.call(this,K)}}function d(T,F){const K=this.stack.pop(),$=this.tokenStack.pop();if(!$)throw new Error("Cannot close `"+T.type+"` ("+mn({start:T.start,end:T.end})+"): it’s not open");$[0].type!==T.type&&(F?F.call(this,T,$[0]):($[1]||xs).call(this,T,$[0])),K.position.end=Dt(T.end)}function p(){return function(T){return Ja(T,typeof qn.includeImageAlt!="boolean"||qn.includeImageAlt,typeof qn.includeHtml!="boolean"||qn.includeHtml)}(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function m(T){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(T),10),this.data.expectingFirstListItemValue=void 0)}function f(){const T=this.resume();this.stack[this.stack.length-1].lang=T}function b(){const T=this.resume();this.stack[this.stack.length-1].meta=T}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const T=this.resume();this.stack[this.stack.length-1].value=T.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const T=this.resume();this.stack[this.stack.length-1].value=T.replace(/(\r?\n|\r)$/g,"")}function k(T){const F=this.resume(),K=this.stack[this.stack.length-1];K.label=F,K.identifier=Zt(this.sliceSerialize(T)).toLowerCase()}function E(){const T=this.resume();this.stack[this.stack.length-1].title=T}function C(){const T=this.resume();this.stack[this.stack.length-1].url=T}function I(T){const F=this.stack[this.stack.length-1];if(!F.depth){const K=this.sliceSerialize(T).length;F.depth=K}}function D(){this.data.setextHeadingSlurpLineEnding=!0}function P(T){this.stack[this.stack.length-1].depth=this.sliceSerialize(T).codePointAt(0)===61?1:2}function S(){this.data.setextHeadingSlurpLineEnding=void 0}function B(T){const F=this.stack[this.stack.length-1].children;let K=F[F.length-1];(!K||K.type!=="text")&&(K=Bt(),K.position={start:Dt(T.start),end:void 0},F.push(K)),this.stack.push(K)}function L(T){const F=this.stack.pop();F.value+=this.sliceSerialize(T),F.position.end=Dt(T.end)}function R(T){const F=this.stack[this.stack.length-1];if(this.data.atHardBreak)return F.children[F.children.length-1].position.end=Dt(T.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&o.canContainEols.includes(F.type)&&(B.call(this,T),L.call(this,T))}function Q(){this.data.atHardBreak=!0}function z(){const T=this.resume();this.stack[this.stack.length-1].value=T}function N(){const T=this.resume();this.stack[this.stack.length-1].value=T}function H(){const T=this.resume();this.stack[this.stack.length-1].value=T}function v(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const F=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=F,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function q(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const F=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=F,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function w(T){const F=this.sliceSerialize(T),K=this.stack[this.stack.length-2];K.label=function($){return $.replace(ad,sd)}(F),K.identifier=Zt(F).toLowerCase()}function W(){const T=this.stack[this.stack.length-1],F=this.resume(),K=this.stack[this.stack.length-1];if(this.data.inReference=!0,K.type==="link"){const $=T.children;K.children=$}else K.alt=F}function re(){const T=this.resume();this.stack[this.stack.length-1].url=T}function V(){const T=this.resume();this.stack[this.stack.length-1].title=T}function ce(){this.data.inReference=void 0}function Le(){this.data.referenceType="collapsed"}function xe(T){const F=this.resume(),K=this.stack[this.stack.length-1];K.label=F,K.identifier=Zt(this.sliceSerialize(T)).toLowerCase(),this.data.referenceType="full"}function Fe(T){this.data.characterReferenceType=T.type}function U(T){const F=this.sliceSerialize(T),K=this.data.characterReferenceType;let $;K?($=ns(F,K==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):$=no(F),this.stack[this.stack.length-1].value+=$}function Y(T){this.stack.pop().position.end=Dt(T.end)}function ue(T){L.call(this,T),this.stack[this.stack.length-1].url=this.sliceSerialize(T)}function ae(T){L.call(this,T),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(T)}function de(){return{type:"blockquote",children:[]}}function he(){return{type:"code",lang:null,meta:null,value:""}}function ge(){return{type:"inlineCode",value:""}}function De(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Xe(){return{type:"emphasis",children:[]}}function Be(){return{type:"heading",depth:0,children:[]}}function gt(){return{type:"break"}}function Ft(){return{type:"html",value:""}}function Se(){return{type:"image",title:null,url:"",alt:null}}function Pn(){return{type:"link",title:null,url:"",children:[]}}function et(T){return{type:"list",ordered:T.type==="listOrdered",start:null,spread:T._spread,children:[]}}function St(T){return{type:"listItem",spread:T._spread,checked:null,children:[]}}function Cn(){return{type:"paragraph",children:[]}}function Ee(){return{type:"strong",children:[]}}function Bt(){return{type:"text",value:""}}function ot(){return{type:"thematicBreak"}}}(n)(function(r){for(;!us(r););return r}(function(r){const o={constructs:pu([od,...(r||{}).extensions||[]]),content:i(wu),defined:[],document:i(xu),flow:i(Gu),lazy:{},string:i(Ku),text:i(Xu)};return o;function i(s){return function(A){return id(o,s,A)}}}(n).document().write(function(){let r,o=1,i="",s=!0;return function(A,a,l){const c=[];let u,d,p,h,m;for(A=i+(typeof A=="string"?A.toString():new TextDecoder(a||void 0).decode(A)),p=0,i="",s&&(A.charCodeAt(0)===65279&&p++,s=void 0);p<A.length;){if(vs.lastIndex=p,u=vs.exec(A),h=u&&u.index!==void 0?u.index:A.length,m=A.charCodeAt(h),!u){i=A.slice(p);break}if(m===10&&p===h&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),p<h&&(c.push(A.slice(p,h)),o+=h-p),m){case 0:c.push(65533),o++;break;case 9:for(d=4*Math.ceil(o/4),c.push(-2);o++<d;)c.push(-1);break;case 10:c.push(-4),o=1;break;default:r=!0,o=1}p=h+1}return l&&(r&&c.push(-5),i&&c.push(i),c.push(null)),c}}()(e,t,!0))))}function Dt(e){return{line:e.line,column:e.column,offset:e.offset}}function ws(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?ws(e,r):ld(e,r)}}function ld(e,t){let n;for(n in t)if(bs.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function xs(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+mn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+mn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+mn({start:t.start,end:t.end})+") is still open")}function cd(e){const t=this;t.parser=function(n){return Ad(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Es(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),i=o[0];i&&i.type==="text"?i.value="["+i.value:o.unshift({type:"text",value:"["});const s=o[o.length-1];return s&&s.type==="text"?s.value+=r:o.push({type:"text",value:r}),o}function _s(e){return e.spread??e.children.length>1}function ud(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(ks(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(ks(t.slice(o),o>0,!1)),i.join("")}function ks(e,t,n){let r=0,o=e.length;if(t){let i=e.codePointAt(r);for(;i===9||i===32;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(o-1);for(;i===9||i===32;)o--,i=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const dd={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
24
+ `}]},code:function(e,t){const n=t.value?t.value+`
25
+ `:"",r={};t.lang&&(r.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=en(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let s,A=e.footnoteCounts.get(r);A===void 0?(A=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=i+1,A+=1,e.footnoteCounts.set(r,A);const a={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(A>1?"-"+A:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,a);const l={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,l),e.applyData(t,l)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Es(e,t);const o={src:en(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:en(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Es(e,t);const o={href:en(r.url||"")};r.title!==null&&r.title!==void 0&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:en(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(c){let u=!1;if(c.type==="list"){u=c.spread||!1;const d=c.children;let p=-1;for(;!u&&++p<d.length;)u=_s(d[p])}return u}(n):_s(t),i={},s=[];if(typeof t.checked=="boolean"){const c=r[0];let u;c&&c.type==="element"&&c.tagName==="p"?u=c:(u={type:"element",tagName:"p",properties:{},children:[]},r.unshift(u)),u.children.length>0&&u.children.unshift({type:"text",value:" "}),u.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let A=-1;for(;++A<r.length;){const c=r[A];(o||A!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
26
+ `}),c.type!=="element"||c.tagName!=="p"||o?s.push(c):s.push(...c.children)}const a=r[r.length-1];a&&(o||a.type!=="element"||a.tagName!=="p")&&s.push({type:"text",value:`
27
+ `});const l={type:"element",tagName:"li",properties:i,children:s};return e.patch(t,l),e.applyData(t,l)},list:function(e,t){const n={},r=e.all(t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++o<r.length;){const s=r[o];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),o.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},A=Vr(t.children[1]),a=qa(t.children[t.children.length-1]);A&&a&&(s.position={start:A,end:a}),o.push(s)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",i=n&&n.type==="table"?n.align:void 0,s=i?i.length:t.children.length;let A=-1;const a=[];for(;++A<s;){const c=t.children[A],u={},d=i?i[A]:void 0;d&&(u.align=d);let p={type:"element",tagName:o,properties:u,children:[]};c&&(p.children=e.all(c),e.patch(c,p),p=e.applyData(c,p)),a.push(p)}const l={type:"element",tagName:"tr",properties:{},children:e.wrap(a,!0)};return e.patch(t,l),e.applyData(t,l)},text:function(e,t){const n={type:"text",value:ud(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:Yn,yaml:Yn,definition:Yn,footnoteDefinition:Yn};function Yn(){}const Ps=typeof self=="object"?self:globalThis,Cs=e=>((t,n)=>{const r=(i,s)=>(t.set(s,i),i),o=i=>{if(t.has(i))return t.get(i);const[s,A]=n[i];switch(s){case 0:case-1:return r(A,i);case 1:{const a=r([],i);for(const l of A)a.push(o(l));return a}case 2:{const a=r({},i);for(const[l,c]of A)a[o(l)]=o(c);return a}case 3:return r(new Date(A),i);case 4:{const{source:a,flags:l}=A;return r(new RegExp(a,l),i)}case 5:{const a=r(new Map,i);for(const[l,c]of A)a.set(o(l),o(c));return a}case 6:{const a=r(new Set,i);for(const l of A)a.add(o(l));return a}case 7:{const{name:a,message:l}=A;return r(new Ps[a](l),i)}case 8:return r(BigInt(A),i);case"BigInt":return r(Object(BigInt(A)),i);case"ArrayBuffer":return r(new Uint8Array(A).buffer,A);case"DataView":{const{buffer:a}=new Uint8Array(A);return r(new DataView(a),A)}}return r(new Ps[s](A),i)};return o})(new Map,e)(0),tn="",{toString:pd}={},{keys:fd}=Object,wn=e=>{const t=typeof e;if(t!=="object"||!e)return[0,t];const n=pd.call(e).slice(8,-1);switch(n){case"Array":return[1,tn];case"Object":return[2,tn];case"Date":return[3,tn];case"RegExp":return[4,tn];case"Map":return[5,tn];case"Set":return[6,tn];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},Kn=([e,t])=>e===0&&(t==="function"||t==="symbol"),Ds=(e,{json:t,lossy:n}={})=>{const r=[];return((o,i,s,A)=>{const a=(c,u)=>{const d=A.push(c)-1;return s.set(u,d),d},l=c=>{if(s.has(c))return s.get(c);let[u,d]=wn(c);switch(u){case 0:{let h=c;switch(d){case"bigint":u=8,h=c.toString();break;case"function":case"symbol":if(o)throw new TypeError("unable to serialize "+d);h=null;break;case"undefined":return a([-1],c)}return a([u,h],c)}case 1:{if(d){let f=c;return d==="DataView"?f=new Uint8Array(c.buffer):d==="ArrayBuffer"&&(f=new Uint8Array(c)),a([d,[...f]],c)}const h=[],m=a([u,h],c);for(const f of c)h.push(l(f));return m}case 2:{if(d)switch(d){case"BigInt":return a([d,c.toString()],c);case"Boolean":case"Number":case"String":return a([d,c.valueOf()],c)}if(i&&"toJSON"in c)return l(c.toJSON());const h=[],m=a([u,h],c);for(const f of fd(c))(o||!Kn(wn(c[f])))&&h.push([l(f),l(c[f])]);return m}case 3:return a([u,c.toISOString()],c);case 4:{const{source:h,flags:m}=c;return a([u,{source:h,flags:m}],c)}case 5:{const h=[],m=a([u,h],c);for(const[f,b]of c)(o||!Kn(wn(f))&&!Kn(wn(b)))&&h.push([l(f),l(b)]);return m}case 6:{const h=[],m=a([u,h],c);for(const f of c)(o||!Kn(wn(f)))&&h.push(l(f));return m}}const{message:p}=c;return a([u,{name:d,message:p}],c)};return l})(!(t||n),!!t,new Map,r)(e),r},Xn=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Cs(Ds(e,t)):structuredClone(e):(e,t)=>Cs(Ds(e,t));function hd(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function gd(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const Ss=function(e){if(e==null)return md;if(typeof e=="function")return Vn(e);if(typeof e=="object")return Array.isArray(e)?function(t){const n=[];let r=-1;for(;++r<t.length;)n[r]=Ss(t[r]);return Vn(o);function o(...i){let s=-1;for(;++s<n.length;)if(n[s].apply(this,i))return!0;return!1}}(e):function(t){const n=t;return Vn(r);function r(o){const i=o;let s;for(s in t)if(i[s]!==n[s])return!1;return!0}}(e);if(typeof e=="string")return function(t){return Vn(n);function n(r){return r&&r.type===t}}(e);throw new Error("Expected function, string, or object as test")};function Vn(e){return function(t,n,r){return!(!function(o){return o!==null&&typeof o=="object"&&"type"in o}(t)||!e.call(this,t,typeof n=="number"?n:void 0,r||void 0))}}function md(){return!0}const Bs=[],yd=!0,Is=!1;function vd(e,t,n,r){let o;typeof t=="function"&&typeof n!="function"?(r=n,n=t):o=t;const i=Ss(o),s=r?-1:1;(function A(a,l,c){const u=a&&typeof a=="object"?a:{};if(typeof u.type=="string"){const p=typeof u.tagName=="string"?u.tagName:typeof u.name=="string"?u.name:void 0;Object.defineProperty(d,"name",{value:"node ("+a.type+(p?"<"+p+">":"")+")"})}return d;function d(){let p,h,m,f=Bs;if((!t||i(a,l,c[c.length-1]||void 0))&&(f=function(b){return Array.isArray(b)?b:typeof b=="number"?[yd,b]:b==null?Bs:[b]}(n(a,c)),f[0]===Is))return f;if("children"in a&&a.children){const b=a;if(b.children&&f[0]!=="skip")for(h=(r?b.children.length:-1)+s,m=c.concat(b);h>-1&&h<b.children.length;){const y=b.children[h];if(p=A(y,h,m)(),p[0]===Is)return p;h=typeof p[1]=="number"?p[1]:h+s}}return f}})(e,void 0,[])()}function Ts(e,t,n,r){let o,i,s;typeof t=="function"?(i=void 0,s=t,o=n):(i=t,s=n,o=r),vd(e,i,function(A,a){const l=a[a.length-1],c=l?l.children.indexOf(A):void 0;return s(A,c,l)},o)}const co={}.hasOwnProperty,bd={};function wd(e,t){const n=t||bd,r=new Map,o=new Map,i=new Map,s={...dd,...n.handlers},A={all:function(a){const l=[];if("children"in a){const c=a.children;let u=-1;for(;++u<c.length;){const d=A.one(c[u],a);if(d){if(u&&c[u-1].type==="break"&&(!Array.isArray(d)&&d.type==="text"&&(d.value=Qs(d.value)),!Array.isArray(d)&&d.type==="element")){const p=d.children[0];p&&p.type==="text"&&(p.value=Qs(p.value))}Array.isArray(d)?l.push(...d):l.push(d)}}}return l},applyData:Ed,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:s,one:function(a,l){const c=a.type,u=A.handlers[c];if(co.call(A.handlers,c)&&u)return u(A,a,l);if(A.options.passThrough&&A.options.passThrough.includes(c)){if("children"in a){const{children:d,...p}=a,h=Xn(p);return h.children=A.all(a),h}return Xn(a)}return(A.options.unknownHandler||_d)(A,a,l)},options:n,patch:xd,wrap:kd};return Ts(e,function(a){if(a.type==="definition"||a.type==="footnoteDefinition"){const l=a.type==="definition"?r:o,c=String(a.identifier).toUpperCase();l.has(c)||l.set(c,a)}}),A}function xd(e,t){e.position&&(t.position=function(n){const r=Vr(n),o=qa(n);if(r&&o)return{start:r,end:o}}(e))}function Ed(e,t){let n=t;if(e&&e.data){const r=e.data.hName,o=e.data.hChildren,i=e.data.hProperties;typeof r=="string"&&(n.type==="element"?n.tagName=r:n={type:"element",tagName:r,properties:{},children:"children"in n?n.children:[n]}),n.type==="element"&&i&&Object.assign(n.properties,Xn(i)),"children"in n&&n.children&&o!=null&&(n.children=o)}return n}function _d(e,t){const n=t.data||{},r=!("value"in t)||co.call(n,"hProperties")||co.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function kd(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
28
+ `});++r<e.length;)r&&n.push({type:"text",value:`
29
+ `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
30
+ `}),n}function Qs(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Ms(e,t){const n=wd(e,t),r=n.one(e,void 0),o=function(s){const A=typeof s.options.clobberPrefix=="string"?s.options.clobberPrefix:"user-content-",a=s.options.footnoteBackContent||hd,l=s.options.footnoteBackLabel||gd,c=s.options.footnoteLabel||"Footnotes",u=s.options.footnoteLabelTagName||"h2",d=s.options.footnoteLabelProperties||{className:["sr-only"]},p=[];let h=-1;for(;++h<s.footnoteOrder.length;){const m=s.footnoteById.get(s.footnoteOrder[h]);if(!m)continue;const f=s.all(m),b=String(m.identifier).toUpperCase(),y=en(b.toLowerCase());let g=0;const x=[],k=s.footnoteCounts.get(b);for(;k!==void 0&&++g<=k;){x.length>0&&x.push({type:"text",value:" "});let I=typeof a=="string"?a:a(h,g);typeof I=="string"&&(I={type:"text",value:I}),x.push({type:"element",tagName:"a",properties:{href:"#"+A+"fnref-"+y+(g>1?"-"+g:""),dataFootnoteBackref:"",ariaLabel:typeof l=="string"?l:l(h,g),className:["data-footnote-backref"]},children:Array.isArray(I)?I:[I]})}const E=f[f.length-1];if(E&&E.type==="element"&&E.tagName==="p"){const I=E.children[E.children.length-1];I&&I.type==="text"?I.value+=" ":E.children.push({type:"text",value:" "}),E.children.push(...x)}else f.push(...x);const C={type:"element",tagName:"li",properties:{id:A+"fn-"+y},children:s.wrap(f,!0)};s.patch(m,C),p.push(C)}if(p.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{...Xn(d),id:"footnote-label"},children:[{type:"text",value:c}]},{type:"text",value:`
31
+ `},{type:"element",tagName:"ol",properties:{},children:s.wrap(p,!0)},{type:"text",value:`
32
+ `}]}}(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:`
33
+ `},o),i}function Pd(e,t){return e&&"run"in e?async function(n,r){const o=Ms(n,{file:r,...t});await e.run(o,r)}:function(n,r){return Ms(n,{file:r,...e||t})}}function Os(e){if(e)throw e}var uo,Ns,Cd=function(){if(Ns)return uo;Ns=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(a){return typeof Array.isArray=="function"?Array.isArray(a):t.call(a)==="[object Array]"},i=function(a){if(!a||t.call(a)!=="[object Object]")return!1;var l,c=e.call(a,"constructor"),u=a.constructor&&a.constructor.prototype&&e.call(a.constructor.prototype,"isPrototypeOf");if(a.constructor&&!c&&!u)return!1;for(l in a);return typeof l>"u"||e.call(a,l)},s=function(a,l){n&&l.name==="__proto__"?n(a,l.name,{enumerable:!0,configurable:!0,value:l.newValue,writable:!0}):a[l.name]=l.newValue},A=function(a,l){if(l==="__proto__"){if(!e.call(a,l))return;if(r)return r(a,l).value}return a[l]};return uo=function a(){var l,c,u,d,p,h,m=arguments[0],f=1,b=arguments.length,y=!1;for(typeof m=="boolean"&&(y=m,m=arguments[1]||{},f=2),(m==null||typeof m!="object"&&typeof m!="function")&&(m={});f<b;++f)if((l=arguments[f])!=null)for(c in l)u=A(m,c),m!==(d=A(l,c))&&(y&&d&&(i(d)||(p=o(d)))?(p?(p=!1,h=u&&o(u)?u:[]):h=u&&i(u)?u:{},s(m,{name:c,newValue:a(y,h,d)})):typeof d<"u"&&s(m,{name:c,newValue:d}));return m},uo}();const po=Ua(Cd);function fo(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return!(t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.toStringTag in e||Symbol.iterator in e)}function Dd(){const e=[],t={run:function(...n){let r=-1;const o=n.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);(function i(s,...A){const a=e[++r];let l=-1;if(s)o(s);else{for(;++l<n.length;)(A[l]===null||A[l]===void 0)&&(A[l]=n[l]);n=A,a?function(c,u){let d;return p;function p(...f){const b=c.length>f.length;let y;b&&f.push(h);try{y=c.apply(this,f)}catch(g){if(b&&d)throw g;return h(g)}b||(y&&y.then&&typeof y.then=="function"?y.then(m,h):y instanceof Error?h(y):m(y))}function h(f,...b){d||(d=!0,u(f,...b))}function m(f){h(null,f)}}(a,i)(...A):o(null,...A)}})(null,...n)},use:function(n){if(typeof n!="function")throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const pt={basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');xn(e);let n,r=0,o=-1,i=e.length;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let s=-1,A=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(n){r=i+1;break}}else s<0&&(n=!0,s=i+1),A>-1&&(e.codePointAt(i)===t.codePointAt(A--)?A<0&&(o=i):(A=-1,o=s));return r===o?o=s:o<0&&(o=e.length),e.slice(r,o)},dirname:function(e){if(xn(e),e.length===0)return".";let t,n=-1,r=e.length;for(;--r;)if(e.codePointAt(r)===47){if(t){n=r;break}}else t||(t=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)},extname:function(e){xn(e);let t,n=e.length,r=-1,o=0,i=-1,s=0;for(;n--;){const A=e.codePointAt(n);if(A!==47)r<0&&(t=!0,r=n+1),A===46?i<0?i=n:s!==1&&(s=1):i>-1&&(s=-1);else if(t){o=n+1;break}}return i<0||r<0||s===0||s===1&&i===r-1&&i===o+1?"":e.slice(i,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)xn(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":function(r){xn(r);const o=r.codePointAt(0)===47;let i=function(s,A){let a,l,c="",u=0,d=-1,p=0,h=-1;for(;++h<=s.length;){if(h<s.length)a=s.codePointAt(h);else{if(a===47)break;a=47}if(a===47){if(d!==h-1&&p!==1)if(d!==h-1&&p===2){if(c.length<2||u!==2||c.codePointAt(c.length-1)!==46||c.codePointAt(c.length-2)!==46){if(c.length>2){if(l=c.lastIndexOf("/"),l!==c.length-1){l<0?(c="",u=0):(c=c.slice(0,l),u=c.length-1-c.lastIndexOf("/")),d=h,p=0;continue}}else if(c.length>0){c="",u=0,d=h,p=0;continue}}A&&(c=c.length>0?c+"/..":"..",u=2)}else c.length>0?c+="/"+s.slice(d+1,h):c=s.slice(d+1,h),u=h-d-1;d=h,p=0}else a===46&&p>-1?p++:p=-1}return c}(r,!o);return i.length===0&&!o&&(i="."),i.length>0&&r.codePointAt(r.length-1)===47&&(i+="/"),o?"/"+i:i}(t)},sep:"/"};function xn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Sd={cwd:function(){return"/"}};function ho(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Bd(e){if(typeof e=="string")e=new URL(e);else if(!ho(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return function(t){if(t.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const n=t.pathname;let r=-1;for(;++r<n.length;)if(n.codePointAt(r)===37&&n.codePointAt(r+1)===50){const o=n.codePointAt(r+2);if(o===70||o===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(n)}(e)}const go=["history","path","basename","stem","extname","dirname"];class Ls{constructor(t){let n;var r;n=t?ho(t)?{path:t}:typeof t=="string"||(r=t)&&typeof r=="object"&&"byteLength"in r&&"byteOffset"in r?{value:t}:t:{},this.cwd="cwd"in n?"":Sd.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o,i=-1;for(;++i<go.length;){const s=go[i];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}for(o in n)go.includes(o)||(this[o]=n[o])}get basename(){return typeof this.path=="string"?pt.basename(this.path):void 0}set basename(t){yo(t,"basename"),mo(t,"basename"),this.path=pt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?pt.dirname(this.path):void 0}set dirname(t){Rs(this.basename,"dirname"),this.path=pt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?pt.extname(this.path):void 0}set extname(t){if(mo(t,"extname"),Rs(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=pt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){ho(t)&&(t=Bd(t)),yo(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?pt.basename(this.path,this.extname):void 0}set stem(t){yo(t,"stem"),mo(t,"stem"),this.path=pt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const o=this.message(t,n,r);throw o.fatal=!0,o}info(t,n,r){const o=this.message(t,n,r);return o.fatal=void 0,o}message(t,n,r){const o=new Ne(t,n,r);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function mo(e,t){if(e&&e.includes(pt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+pt.sep+"`")}function yo(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Rs(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const Id=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},Td={}.hasOwnProperty;class vo extends Id{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Dd()}copy(){const t=new vo;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(po(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(xo("data",this.frozen),this.namespace[t]=n,this):Td.call(this.namespace,t)&&this.namespace[t]||void 0:t?(xo("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const o=n.call(t,...r);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=$n(t),r=this.parser||this.Parser;return bo("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),bo("process",this.parser||this.Parser),wo("process",this.compiler||this.Compiler),n?o(void 0,n):new Promise(o);function o(i,s){const A=$n(t),a=r.parse(A);function l(c,u){c||!u?s(c):i?i(u):n(void 0,u)}r.run(a,A,function(c,u,d){if(c||!u||!d)return l(c);const p=u,h=r.stringify(p,d);var m;typeof(m=h)=="string"||function(f){return!!(f&&typeof f=="object"&&"byteLength"in f&&"byteOffset"in f)}(m)?d.value=h:d.result=h,l(c,d)})}}processSync(t){let n,r=!1;return this.freeze(),bo("processSync",this.parser||this.Parser),wo("processSync",this.compiler||this.Compiler),this.process(t,function(o,i){r=!0,Os(o),n=i}),Us("processSync","process",r),n}run(t,n,r){Hs(t),this.freeze();const o=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(s,A){const a=$n(n);o.run(t,a,function(l,c,u){const d=c||t;l?A(l):s?s(d):r(void 0,d,u)})}}runSync(t,n){let r,o=!1;return this.run(t,n,function(i,s){Os(i),r=s,o=!0}),Us("runSync","run",o),r}stringify(t,n){this.freeze();const r=$n(n),o=this.compiler||this.Compiler;return wo("stringify",o),Hs(t),o(t,r)}use(t,...n){const r=this.attachers,o=this.namespace;if(xo("use",this.frozen),t!=null)if(typeof t=="function")a(t,n);else{if(typeof t!="object")throw new TypeError("Expected usable value, not `"+t+"`");Array.isArray(t)?A(t):s(t)}return this;function i(l){if(typeof l=="function")a(l,[]);else{if(typeof l!="object")throw new TypeError("Expected usable value, not `"+l+"`");if(Array.isArray(l)){const[c,...u]=l;a(c,u)}else s(l)}}function s(l){if(!("plugins"in l)&&!("settings"in l))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");A(l.plugins),l.settings&&(o.settings=po(!0,o.settings,l.settings))}function A(l){let c=-1;if(l!=null){if(!Array.isArray(l))throw new TypeError("Expected a list of plugins, not `"+l+"`");for(;++c<l.length;)i(l[c])}}function a(l,c){let u=-1,d=-1;for(;++u<r.length;)if(r[u][0]===l){d=u;break}if(d===-1)r.push([l,...c]);else if(c.length>0){let[p,...h]=c;const m=r[d][1];fo(m)&&fo(p)&&(p=po(!0,m,p)),r[d]=[l,p,...h]}}}}const Qd=new vo().freeze();function bo(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function wo(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function xo(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Hs(e){if(!fo(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Us(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function $n(e){return function(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}(e)?e:new Ls(e)}const Fs=[],zs={allowDangerousHtml:!0},Md=/^(https?|ircs?|mailto|xmpp)$/i,Od=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Nd(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",o=e.className,i=e.components,s=e.disallowedElements,A=e.rehypePlugins||Fs,a=e.remarkPlugins||Fs,l=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...zs}:zs,c=e.skipHtml,u=e.unwrapDisallowed,d=e.urlTransform||Ld,p=Qd().use(cd).use(a).use(Pd,l).use(A),h=new Ls;typeof r=="string"&&(h.value=r);for(const b of Od)Object.hasOwn(e,b.from)&&(b.from,b.to&&b.to,b.id);const m=p.parse(h);let f=p.runSync(m,h);return o&&(f={type:"element",tagName:"div",properties:{className:o},children:f.type==="root"?f.children:[f]}),Ts(f,function(b,y,g){if(b.type==="raw"&&g&&typeof y=="number")return c?g.children.splice(y,1):g.children[y]={type:"text",value:b.value},y;if(b.type==="element"){let x;for(x in to)if(Object.hasOwn(to,x)&&Object.hasOwn(b.properties,x)){const k=b.properties[x],E=to[x];(E===null||E.includes(b.tagName))&&(b.properties[x]=d(String(k||""),x,b))}}if(b.type==="element"){let x=t?!t.includes(b.tagName):!!s&&s.includes(b.tagName);if(!x&&n&&typeof y=="number"&&(x=!n(b,y,g)),x&&g&&typeof y=="number")return u&&b.children?g.children.splice(y,1,...b.children):g.children.splice(y,1),y}}),Au(f,{Fragment:le,components:i,ignoreInvalidStyle:!0,jsx:_,jsxs:_,passKeys:!0,passNode:!0})}function Ld(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return t===-1||o!==-1&&t>o||n!==-1&&t>n||r!==-1&&t>r||Md.test(e.slice(0,t))?e:""}const Rd=({children:e})=>_("div",{style:{whiteSpace:"normal"},children:_(Nd,{components:{p:({...t})=>_("p",{style:{margin:0,marginBottom:"0.5em",lineHeight:1.4,textAlign:"left"},children:t.children}),ul:({...t})=>_("ul",{style:{paddingLeft:"clamp(8px, 3.5vw, 16px)",margin:0,listStylePosition:"inside"},children:t.children}),ol:({...t})=>_("ol",{style:{paddingLeft:"clamp(8px, 3.5vw, 16px)",margin:0,listStylePosition:"inside"},children:t.children}),li:({...t})=>_("li",{style:{marginBottom:"1px",lineHeight:1.4},children:t.children}),code:({inline:t,children:n})=>t?_("code",{style:{backgroundColor:"rgba(0, 0, 0, 0.3)",padding:"2px 4px",borderRadius:"4px",fontFamily:"inherit",fontSize:"0.95em"},children:n}):_("pre",{style:{backgroundColor:"rgba(0, 0, 0, 0.3)",padding:"8px",borderRadius:"4px",overflowX:"auto",margin:"0.5em 0",whiteSpace:"pre-wrap"},children:_("code",{children:n})}),blockquote:({...t})=>_("blockquote",{style:{margin:0,paddingLeft:"10px",borderLeft:"2px solid #ccc",color:"#666",fontStyle:"italic"},children:t.children})},children:typeof e=="string"?e:""})}),Hd={autoConfig:!0},Ud=e=>()=>(t=>{const{getFlow:n}=zn(),{messages:r,replaceMessages:o}=hn(),{settings:i}=va(),{hasChatHistoryLoaded:s}=wa(),A={...t,...Hd},a=A.markdownComponent?A.markdownComponent:Rd;J(()=>{var u,d;if(s){const p=[...r];for(let h=0;h<p.length&&h<(((u=i.chatHistory)==null?void 0:u.maxEntries)??30);h++){const m=p[h];(d=m.tags)!=null&&d.includes("rcb-markdown-renderer-plugin:parsed")&&(m.contentWrapper=a)}o(p)}},[s]);const l=async u=>{var d;const p=(d=u.data.message)==null?void 0:d.sender.toUpperCase();((h,m,f)=>{var b;if(typeof h.data.message.content!="string"||!h.detail.currPath)return!1;const y=m[h.detail.currPath];return!!y&&(((b=y.renderMarkdown)==null?void 0:b.map(g=>g.toUpperCase()).includes(f))??!1)})(u,n(),p)&&(u.data.message.contentWrapper=a,u.data.message.tags||(u.data.message.tags=[]),u.data.message.tags.push("rcb-markdown-renderer-plugin:parsed"))};$e(j.PRE_INJECT_MESSAGE,l),$e(j.CHUNK_STREAM_MESSAGE,l),$e(j.START_STREAM_MESSAGE,l),$e(j.START_SIMULATE_STREAM_MESSAGE,l);const c={name:"@rcb-plugins/markdown-renderer"};return A!=null&&A.autoConfig&&(c.settings={event:{rcbPreInjectMessage:!0,rcbChunkStreamMessage:!0,rcbStartSimulateStreamMessage:!0,rcbStartStreamMessage:!0}}),c})(e),Jn={autoConfig:!0,promptBaseColors:{info:"#007bff",warning:"#ffc107",error:"#dc3545",success:"#28a745"},promptHoveredColors:{info:"#0056b3",warning:"#d39e00",error:"#c82333",success:"#218838"},textAreaHighlightColors:{info:"#007bff",warning:"#ffc107",error:"#dc3545",success:"#28a745"}},js=(e,t,n="validateTextInput")=>{var r;if((r=e.detail)==null||!r.currPath)return;const o=t[e.detail.currPath];if(!o)return;const i=o[n];return typeof i=="function"?i:void 0},Fd=e=>{const{showToast:t}=(()=>{const{showToast:u,dismissToast:d,toasts:p,replaceToasts:h}=Kt();return{showToast:u,dismissToast:d,toasts:p,replaceToasts:h}})(),{getFlow:n}=zn(),{styles:r,updateStyles:o,replaceStyles:i}=(()=>{const{styles:u,replaceStyles:d,updateStyles:p}=ha();return{styles:u,replaceStyles:d,updateStyles:p}})(),s=(u=>({...Jn,...u,promptBaseColors:{...Jn.promptBaseColors},promptHoveredColors:{...Jn.promptHoveredColors},textAreaHighlightColors:{...Jn.textAreaHighlightColors}}))(e),[A,a]=ee(0),l=oe({});$e(j.USER_SUBMIT_TEXT,u=>{const d=u,p=js(d,n(),"validateTextInput");if(!p)return;const h=p(d.data.inputText);if(h!=null&&h.success||u.preventDefault(),!h.promptContent)return;A===0&&(l.current=structuredClone(r));const m=((f,b)=>{const y=f.promptType??"info";let g={};return b.advancedStyles&&(g=b.advancedStyles[y]),b.promptBaseColors&&(g.toastPromptStyle={color:b.promptBaseColors[y],borderColor:b.promptBaseColors[y]}),b.promptHoveredColors&&(g.toastPromptHoveredStyle={color:b.promptHoveredColors[y],borderColor:b.promptHoveredColors[y]}),b.textAreaHighlightColors&&(f.highlightTextArea??!0)&&(g.chatInputAreaStyle={boxShadow:`${b.textAreaHighlightColors[y]} 0px 0px 5px`}),g})(h,s);o(m),t(h.promptContent,h.promptDuration??3e3),a(f=>f+1)}),$e(j.USER_UPLOAD_FILE,u=>{var d,p;const h=u,m=(p=(d=h.data)==null?void 0:d.files)==null?void 0:p[0];if(!m)return console.error("No file uploaded."),void u.preventDefault();const f=js(h,n(),"validateFileInput");if(!f)return void console.error("Validator not found for file input.");const b=f(m);if(!b.success)return console.error("Validation failed:",b),b.promptContent&&t(b.promptContent,b.promptDuration??3e3),void u.preventDefault();console.log("Validation successful:",b)}),$e(j.DISMISS_TOAST,()=>{a(u=>u-1)}),J(()=>{A===0&&setTimeout(()=>{i(l.current)})},[A,i]);const c={name:"@rcb-plugins/input-validator"};return s.autoConfig&&(c.settings={event:{rcbUserSubmitText:!0,rcbUserUploadFile:!0,rcbDismissToast:!0}}),c},qs=Re((e,t)=>{let{embedded:n,currentOpen:r,enabled:o,onSetEnabled:i}=e;const s=hn(),A=(()=>{const{isChatWindowOpen:c,toggleChatWindow:u,toggleIsBotTyping:d,scrollToBottom:p,getIsChatBotVisible:h}=Ge();return{isChatWindowOpen:c,toggleChatWindow:u,toggleIsBotTyping:d,scrollToBottom:p,getIsChatBotVisible:h}})(),a=oe(!1),l=oe(!1);return J(()=>{!n&&A&&A.toggleChatWindow&&(a.current===r||l.current||(setTimeout(()=>{A&&A.toggleChatWindow&&A.toggleChatWindow(r)},0),a.current=r!=null&&r),l.current=!1)},[r,n,A]),J(()=>{const c=()=>{l.current=!0};return window.addEventListener("rcb-toggle-chat-window",c),()=>window.removeEventListener("rcb-toggle-chat-window",c)}),In(t,()=>({addMessage:c=>{s&&s.injectMessage&&s.injectMessage(c)},openChat:()=>{!n&&A&&A.toggleChatWindow&&A.toggleChatWindow(!0)},closeChat:()=>{!n&&A&&A.toggleChatWindow&&A.toggleChatWindow(!1)},toggleChat:()=>{!n&&A&&A.toggleChatWindow&&A.toggleChatWindow()},setBotEnabled:c=>{i&&i(c)}}),[s,A,n,i]),null});qs.displayName="BotController";const Ws=nt(null),zd=e=>{let{trackEvent:t,children:n}=e;const r=oe(t);return r.current=t,M.createElement(Ws.Provider,{value:{trackEvent:o=>r.current(o)}},n)},Gs=()=>Ve(Ws)||{trackEvent:()=>{}},Ys=e=>{let{loginUrl:t,className:n="",style:r,isHeaderButton:o=!1}=e;const{trackEvent:i}=Gs(),s=o?{display:"inline-block",padding:"6px 12px",backgroundColor:"transparent",border:"1px solid #ccc",color:"white",textDecoration:"none",borderRadius:"4px",fontWeight:"normal",textAlign:"center",margin:"8px",fontSize:"12px",opacity:.8,transition:"all 0.2s ease"}:{display:"inline-block",padding:"10px 20px",backgroundColor:"white",border:"1px solid var(--primaryColor, #107180)",color:"var(--primaryColor, #107180)",textDecoration:"none",borderRadius:"4px",fontWeight:"bold",textAlign:"center",margin:"18px",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.2)"};return M.createElement(M.Fragment,null,o&&M.createElement("style",null,`
34
+ .rcb-chat-header-container .qa-bot-header-login-button:hover {
35
+ background-color: #0000001a !important;
36
+ opacity: 1 !important;
37
+ }
38
+ `),M.createElement("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"qa-bot-login-button ".concat(o?"qa-bot-header-login-button":""," ").concat(n),style:Object.assign(Object.assign({},s),r),onClick:()=>{i({type:"chatbot_login_clicked",loginUrl:t})}},"Log In"))},jd=()=>M.createElement("div",{className:"user-login-icon",style:{alignItems:"center",justifyContent:"center",width:"30px",height:"30px",borderRadius:"50%",backgroundColor:"var(--primaryColor, #1a5b6e)",marginRight:"5px",display:"flex"},role:"img","aria-label":"User logged in",title:"User logged in"},M.createElement("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},M.createElement("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),M.createElement("circle",{cx:"12",cy:"7",r:"4"}))),Te=[];for(let e=0;e<256;++e)Te.push((e+256).toString(16).slice(1));let Eo;const qd=new Uint8Array(16);var Ks={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Xs(e,t,n){var o;if(Ks.randomUUID&&!e)return Ks.randomUUID();const r=(e=e||{}).random??((o=e.rng)==null?void 0:o.call(e))??function(){if(!Eo){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Eo=crypto.getRandomValues.bind(crypto)}return Eo(qd)}();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=15&r[6]|64,r[8]=63&r[8]|128,function(i,s=0){return(Te[i[s+0]]+Te[i[s+1]]+Te[i[s+2]]+Te[i[s+3]]+"-"+Te[i[s+4]]+Te[i[s+5]]+"-"+Te[i[s+6]]+Te[i[s+7]]+"-"+Te[i[s+8]]+Te[i[s+9]]+"-"+Te[i[s+10]]+Te[i[s+11]]+Te[i[s+12]]+Te[i[s+13]]+Te[i[s+14]]+Te[i[s+15]]).toLowerCase()}(r)}function Rt(){return typeof localStorage<"u"&&localStorage.getItem("QA_BOT_DEBUG")==="true"}const Wd="background: #1a5b6e; color: white; padding: 2px 6px; border-radius: 3px;",Gd="background: #7c3aed; color: white; padding: 2px 6px; border-radius: 3px;",Yd="background: #059669; color: white; padding: 2px 6px; border-radius: 3px;",Kd="background: #f97316; color: white; padding: 2px 6px; border-radius: 3px;",Xd="background: #f59e0b; color: #000; padding: 2px 6px; border-radius: 3px 0 0 3px; font-weight: bold;",Vd="background: #fbbf24; color: #000; padding: 2px 6px; border-radius: 0 3px 3px 0;",$d=()=>{Rt()&&console.log("%c QA Bot Core %c v".concat("0.2.30"," "),Xd,Vd)},Zn=function(e){if(Rt()){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];console.log("%c[Session]%c ".concat(e),Wd,"",...n)}},ft=function(e){if(Rt()){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];console.log("%c[History]%c ".concat(e),Gd,"",...n)}},Jd=(e,t)=>{Rt()&&console.log("%c[Message]%c ".concat(e),Yd,"",t)},er=function(e){if(Rt()){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];console.log("%c[Turnstile]%c ".concat(e),Kd,"",...n)}},Vs=function(){console.warn(...arguments)},Ue=function(){console.error(...arguments)},$s="qa_bot_session_messages",Js=()=>"qa_bot_session_".concat(Xs()),En=()=>{try{const e=localStorage.getItem($s);return e?JSON.parse(e):{}}catch{return{}}},Zd=(e,t,n,r,o)=>{const i=En();if(!i[e]&&(i[e]={messages:[],startedAt:new Date().toISOString(),preview:""},ft("NEW session created",{sessionId:e.slice(-12)})),i[e].messages.some(l=>l.id===t))return void ft("DUPLICATE message skipped",{sessionId:e.slice(-12),messageId:t.slice(-8),sender:r});const s={id:t,content:n,sender:r,type:o,timestamp:Date.now()};i[e].messages.push(s),ft("MESSAGE added",{sessionId:e.slice(-12),messageId:t.slice(-8),sender:r,totalInSession:i[e].messages.length});const A=i[e].messages,a=A.find(l=>{var c;return l.sender.toLowerCase()==="bot"&&((c=l.content)===null||c===void 0?void 0:c.trim())&&l.content.length>=100});if(a){const l=a.content;i[e].preview=l.slice(0,50)+(l.length>50?"...":"")}else{const l=A.find(c=>{var u;return c.sender.toLowerCase()==="user"&&((u=c.content)===null||u===void 0?void 0:u.trim())});if(l&&!i[e].preview){const c=l.content;i[e].preview=c.slice(0,50)+(c.length>50?"...":"")}}(l=>{var c;const u=()=>Object.values(l).reduce((d,p)=>d+p.messages.length,0);for(;u()>100&&Object.keys(l).length>1;){const d=(c=Object.entries(l).sort((p,h)=>{let[,m]=p,[,f]=h;return new Date(m.startedAt).getTime()-new Date(f.startedAt).getTime()})[0])===null||c===void 0?void 0:c[0];if(!d)break;delete l[d]}localStorage.setItem($s,JSON.stringify(l))})(i),ft("STORAGE state",{ourSessions:Object.keys(i).length,ourTotalMessages:Object.values(i).reduce((l,c)=>l+c.messages.length,0)})},Zs=e=>{var t,n;return(n=(t=En()[e])===null||t===void 0?void 0:t.messages.length)!==null&&n!==void 0?n:0},ep=e=>{const t=En()[e];return t!=null&&t.startedAt?Date.now()-new Date(t.startedAt).getTime():0},eA=nt(void 0),tp=e=>{let{children:t,getSessionId:n,setSessionId:r,resetSession:o,clearResettingFlag:i}=e;return M.createElement(eA.Provider,{value:{getSessionId:n,setSessionId:r,resetSession:o,clearResettingFlag:i}},t)},_o=()=>{const e=Ve(eA);if(!e)throw new Error("useSession must be used within a SessionProvider");return e},np=()=>{const[e,t]=ee(!1),[n,r]=ee([]),[o,i]=ee(null),[s,A]=ee(0),a=oe(null),l=oe(null),{replaceMessages:c}=hn(),{toggleTextAreaDisabled:u}=ba(),{setSessionId:d,getSessionId:p}=_o();J(()=>{var m,f;const b=g=>{a.current&&!a.current.contains(g.target)&&l.current&&!l.current.contains(g.target)&&t(!1)},y=(f=(m=a.current)===null||m===void 0?void 0:m.getRootNode())!==null&&f!==void 0?f:document;return e&&y.addEventListener("mousedown",b),()=>{y.removeEventListener("mousedown",b)}},[e]);const h=m=>{var f;const b=p();if(ft("RESTORE requested",{targetSession:m.slice(-12),currentSession:b==null?void 0:b.slice(-12)}),m===b)return ft("RESTORE skipped - already on this session"),void t(!1);const y=(k=>{var E;return((E=En()[k])===null||E===void 0?void 0:E.messages)||[]})(m).filter(k=>{var E;return(E=k.content)===null||E===void 0?void 0:E.trim()});ft("Stored messages from our localStorage",{count:y.length,ids:y.map(k=>k.id.slice(-8))});const g=y.map(k=>({id:k.id,content:k.content,sender:k.sender.toUpperCase(),type:k.type||"string",timestamp:new Date(k.timestamp).toISOString()}));var x;d(m),ft("Session ID updated",{newSession:m.slice(-12)}),c(g),ft("replaceMessages called",{count:g.length}),x=(f=l.current)===null||f===void 0?void 0:f.getRootNode(),setTimeout(()=>{const k=(x||document).querySelector(".rcb-chat-body-container");k&&k.querySelectorAll(".rcb-bot-message").forEach(E=>{var C;let I=E.innerHTML,D=!1;I.includes("](")&&(I=I.replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>'),D=!0),I.includes("&lt;a href=")&&(I=I.replace(/&lt;a\s+href=["']([^"']+)["'][^&]*&gt;([^&]+)&lt;\/a&gt;/gi,'<a href="$1" target="_blank" rel="noopener noreferrer">$2</a>'),D=!0),(I.includes("&lt;a ")||!((C=E.textContent)===null||C===void 0)&&C.includes("<a href="))&&(E.textContent||"").includes("<a href=")&&(I=I.replace(/&lt;a\s+href="([^"]+)"[^&]*&gt;([^&]+)&lt;\/a&gt;/gi,'<a href="$1" target="_blank" rel="noopener noreferrer">$2</a>'),D=!0),D&&(E.innerHTML=I)})},50),u(!1),ft("Chat input enabled after restore"),t(!1)};return M.createElement("div",{style:{position:"relative"}},M.createElement("button",{ref:l,className:"history-button",onClick:()=>{if(!e&&(r((()=>{const m=En();return Object.entries(m).map(f=>{let[b,y]=f;return Object.assign({sessionId:b},y)}).sort((f,b)=>new Date(b.startedAt).getTime()-new Date(f.startedAt).getTime())})()),l.current)){const m=l.current.closest(".rcb-chat-window");if(m){const f=m.getBoundingClientRect(),b=l.current.getBoundingClientRect();i(f.width+3),A(f.right-b.right-18+4)}}t(!e)},style:{alignItems:"center",justifyContent:"center",width:"30px",height:"30px",borderRadius:"50%",backgroundColor:"var(--primaryColor, #1a5b6e)",marginRight:"18px",display:"flex",border:"none",cursor:"pointer",padding:0},"aria-label":"View chat history",title:"View chat history","aria-expanded":e,"aria-haspopup":"menu"},M.createElement("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},M.createElement("circle",{cx:"12",cy:"12",r:"10"}),M.createElement("polyline",{points:"12 6 12 12 16 14"}))),e&&M.createElement("div",{ref:a,role:"menu",style:{position:"absolute",right:s?"-".concat(s,"px"):"-18px",top:"100%",marginTop:"8px",width:o?"".concat(o,"px"):"550px",backgroundColor:"white",borderRadius:0,borderBottom:"3px solid var(--primaryColor, #1a5b6e)",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.1)",maxHeight:"250px",overflowY:"auto",zIndex:1e3}},n.length===0?M.createElement("div",{style:{padding:"12px 16px",color:"#666",fontSize:"14px",textAlign:"center"}},"No chat history"):n.map(m=>M.createElement("button",{key:m.sessionId,role:"menuitem",onClick:()=>h(m.sessionId),style:{width:"100%",padding:"10px 14px",border:"none",backgroundColor:"transparent",cursor:"pointer",textAlign:"left",display:"flex",flexDirection:"column",gap:"2px",borderBottom:"1px solid #eee"},onMouseEnter:f=>{f.currentTarget.style.backgroundColor="#f5f5f5"},onMouseLeave:f=>{f.currentTarget.style.backgroundColor="transparent"}},M.createElement("span",{style:{fontSize:"14px",color:"#333",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},m.preview||"New conversation"),M.createElement("span",{style:{fontSize:"12px",color:"#888"}},(f=>{const b=new Date(f),y=new Date().getTime()-b.getTime(),g=Math.floor(y/864e5);return g===0?b.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):g===1?"Yesterday":g<7?b.toLocaleDateString([],{weekday:"short"}):b.toLocaleDateString([],{month:"short",day:"numeric"})})(m.startedAt))))))};function ko(){return ko=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ko.apply(null,arguments)}const tA=({width:e=24,height:t=24,color:n="currentColor",children:r,...o})=>M.createElement("svg",ko({xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},o),r),rp=e=>M.createElement(tA,e,M.createElement("path",{d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})),op=()=>{const{restartFlow:e}=zn(),{setTextAreaValue:t}=ba(),{messages:n}=hn(),{getSessionId:r,resetSession:o,clearResettingFlag:i}=_o(),{trackEvent:s}=Gs();return M.createElement("button",{onClick:async()=>{const A=r(),a=A?Zs(A):0;s({type:"chatbot_new_chat",previousMessageCount:a}),o(),await t(""),await e(),setTimeout(()=>{i()},100)},tabIndex:0,"aria-label":"New chat conversation",style:{backgroundColor:"var(--primaryColor, #107180)",border:"none",color:"#ffffff",fontSize:"14px",cursor:"pointer",padding:"8px 12px",borderRadius:"4px",transition:"all 0.2s ease",display:"flex",alignItems:"center",gap:"6px",fontWeight:"500"},onMouseEnter:A=>{A.target.style.backgroundColor="var(--secondaryColor, #0d5f6b)"},onMouseLeave:A=>{A.target.style.backgroundColor="var(--primaryColor, #107180)"}},M.createElement(rp,{width:16,height:16}),"New Chat")};function Po(e){if(typeof e=="string")return e;if(typeof e=="number")return String(e);if(!e)return"";if(Array.isArray(e))return e.map(Po).join("");if(typeof e=="object"&&e!==null&&"props"in e){const t=e.props;if(t&&"children"in t)return Po(t.children)}return""}const ip=()=>{const{getSessionId:e}=_o(),t=G(n=>{var r;const o=(r=n.data)===null||r===void 0?void 0:r.message;if(!(o!=null&&o.id))return;const i=o.sender,s=o.type||"string";let A;if(A=typeof o.content=="string"?o.content:Po(o.content),Jd("TRACKED",{id:o.id,sender:i,content:A.substring(0,50)+(A.length>50?"...":"")}),A.includes("rcb-options-container")||!A.trim())return;const a=e();Zd(a,o.id,A,i,s)},[e]);return J(()=>(window.addEventListener("rcb-pre-inject-message",t),()=>{window.removeEventListener("rcb-pre-inject-message",t)}),[t]),null},ap=()=>(J(()=>{const e=i=>{if(!["ArrowDown","ArrowUp","ArrowLeft","ArrowRight","Enter"," ","Home","End"].includes(i.key))return;const s=document.activeElement;if(s&&(s.tagName==="INPUT"||s.tagName==="TEXTAREA"||s.contentEditable==="true"||s.classList.contains("rcb-chat-input-textarea")))return;const A=document.querySelector(".rcb-chat-window");if(!A)return;const a=Array.from(A.querySelectorAll(".rcb-message-container, .rcb-bot-message-container, .rcb-user-message-container")).filter(u=>u.offsetParent!==null);if(a.length>0){const u=a[a.length-1].querySelector(".rcb-checkbox-container");if(u&&u.offsetParent!==null){const d=Array.from(u.querySelectorAll(".rcb-checkbox-row-container")),p=u.querySelector(".rcb-checkbox-next-button");if(d.length>0){const h=[...d];return p&&h.push(p),void((m,f)=>{m.preventDefault();let b=-1;for(let g=0;g<f.length;g++)if(f[g]===document.activeElement||f[g].contains(document.activeElement)){b=g;break}b===-1&&(b=0);let y=b;switch(m.key){case"ArrowDown":case"ArrowRight":y=b<f.length-1?b+1:0;break;case"ArrowUp":case"ArrowLeft":y=b>0?b-1:f.length-1;break;case"Home":y=0;break;case"End":y=f.length-1;break;case"Enter":case" ":{const g=f[b],x=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});return void g.dispatchEvent(x)}default:return}f[y].focus(),f[y].setAttribute("tabindex","0"),f[y].classList.add("keyboard-focused"),f.forEach((g,x)=>{x!==y&&(g.setAttribute("tabindex","-1"),g.classList.remove("keyboard-focused"))})})(i,h)}}}let l=[];if(a.length>0){const u=a[a.length-1],d=Array.from(u.querySelectorAll(".rcb-options-container")).filter(p=>p.offsetParent!==null);if(d.length>0){const p=d[d.length-1];l=Array.from(p.querySelectorAll(".rcb-options"))}}if(l.length===0)return;const c=l.findIndex(u=>u===document.activeElement);switch(i.key){case"ArrowDown":case"ArrowRight":{let u;i.preventDefault(),u=c<l.length-1?c+1:0,l[u].setAttribute("tabindex","0"),l.forEach((d,p)=>{p!==u&&(d.setAttribute("tabindex","-1"),d.classList.remove("keyboard-focused"))}),l[u].classList.add("keyboard-focused"),l[u].focus();break}case"ArrowUp":case"ArrowLeft":{let u;i.preventDefault(),u=c>0?c-1:l.length-1,l[u].setAttribute("tabindex","0"),l.forEach((d,p)=>{p!==u&&(d.setAttribute("tabindex","-1"),d.classList.remove("keyboard-focused"))}),l[u].classList.add("keyboard-focused"),l[u].focus();break}case"Enter":case" ":if(i.preventDefault(),document.activeElement&&l.includes(document.activeElement)){const u=document.activeElement;if(u.classList.contains("rcb-checkbox-row-container")||u.closest(".rcb-checkbox-row-container")){const d=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});u.dispatchEvent(d);const p=u.querySelector(".rcb-checkbox-label"),h=p?p.textContent:u.textContent||"checkbox",m=u.querySelector(".rcb-checkbox-mark"),f=m&&m.style.backgroundColor?"checked":"unchecked";t(`${h} ${f}`)}else{const d=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});u.dispatchEvent(d);const p=u.textContent||u.innerText;t(`Selected: ${p}`)}}break;case"Home":i.preventDefault(),l.length>0&&(l[0].setAttribute("tabindex","0"),l.forEach((u,d)=>{d!==0&&(u.setAttribute("tabindex","-1"),u.classList.remove("keyboard-focused"))}),l[0].classList.add("keyboard-focused"),l[0].focus());break;case"End":if(i.preventDefault(),l.length>0){const u=l.length-1;l[u].setAttribute("tabindex","0"),l.forEach((d,p)=>{p!==u&&(d.setAttribute("tabindex","-1"),d.classList.remove("keyboard-focused"))}),l[u].classList.add("keyboard-focused"),l[u].focus()}}},t=i=>{const s=document.createElement("div");s.setAttribute("aria-live","assertive"),s.setAttribute("aria-atomic","true"),s.className="sr-only",s.textContent=i,document.body.appendChild(s),setTimeout(()=>{document.body.contains(s)&&document.body.removeChild(s)},1e3)},n=(i=null)=>{let s=i;if(s||(s=document.querySelector(".rcb-chat-window"),s||(s=document.querySelector('[class*="rcb-chat"]')),s||(s=document.querySelector(".qa-bot"))),!s)return;const A=s.closest(".embedded-qa-bot")!==null,a=Array.from(s.querySelectorAll(".rcb-message-container, .rcb-bot-message-container, .rcb-user-message-container")).filter(d=>d.offsetParent!==null);if(a.length===0)return;const l=a[a.length-1],c=Array.from(l.querySelectorAll(".rcb-options-container")).filter(d=>d.offsetParent!==null);let u=[];if(c.length>0){const d=c[c.length-1];u=Array.from(d.querySelectorAll(".rcb-options"))}if(u.length===0){let d=l.querySelector(".rcb-checkbox-container");if(!d&&s&&(d=s.querySelector(".rcb-checkbox-container")),d&&d.offsetParent!==null){const p=Array.from(d.querySelectorAll(".rcb-checkbox-row-container")).filter(h=>h.offsetParent!==null&&h.style.display!=="none");if(p.length>0){const h=d.querySelector(".rcb-checkbox-next-button"),m=[...p];if(h&&h.offsetParent!==null&&m.push(h),m.forEach((f,b)=>{f.setAttribute("tabindex",b===0?"0":"-1"),b===0?f.classList.add("keyboard-focused"):f.classList.remove("keyboard-focused")}),p.length>1){d.querySelectorAll(".keyboard-nav-hint").forEach(b=>b.remove());const f=document.createElement("div");f.className="keyboard-nav-hint",f.textContent="Use arrow keys ↕ to navigate, Enter to select/deselect, or click any option",f.style.cssText="font-size: 12px !important; color: #666 !important; margin-bottom: 8px !important; font-style: italic !important; display: block !important;",d.insertBefore(f,d.firstChild)}return void setTimeout(()=>{m[0]&&m[0].offsetParent!==null&&!A&&m[0].focus()},150)}}}if(u.length>0){if(u.forEach((d,p)=>{const h=p===0?"0":"-1";d.setAttribute("tabindex",h),d.setAttribute("role","option"),d.setAttribute("aria-posinset",p+1),d.setAttribute("aria-setsize",u.length),p===0?d.classList.add("keyboard-focused"):d.classList.remove("keyboard-focused")}),u.length>1){const d=c.length>0?c[c.length-1]:null;if(d){d.querySelectorAll(".keyboard-nav-hint").forEach(h=>h.remove());const p=document.createElement("div");p.className="keyboard-nav-hint",p.textContent="Use arrow keys ↕ to navigate, Enter to select, or click any option",p.style.cssText="font-size: 12px !important; color: #666 !important; margin-bottom: 8px !important; font-style: italic !important; display: block !important;",d.insertBefore(p,d.firstChild)}}else{const d=c.length>0?c[c.length-1]:null;d&&d.querySelectorAll(".keyboard-nav-hint").forEach(p=>p.remove())}setTimeout(()=>{u[0]&&u[0].offsetParent!==null&&!A&&(u[0].focus(),u.length>1&&t(`${u.length} options available. Use arrow keys to navigate.`))},200)}},r=new MutationObserver(i=>{i.forEach(s=>{var A,a;if(s.type==="childList"){const l=Array.from(s.addedNodes),c=l.some(d=>{var p,h,m,f;return d.nodeType===Node.ELEMENT_NODE&&(((p=d.classList)==null?void 0:p.contains("rcb-options-container"))||((h=d.classList)==null?void 0:h.contains("rcb-options"))||((m=d.querySelector)==null?void 0:m.call(d,".rcb-options-container"))||((f=d.querySelector)==null?void 0:f.call(d,".rcb-options")))}),u=l.some(d=>{var p,h;return d.nodeType===Node.ELEMENT_NODE&&(((p=d.classList)==null?void 0:p.contains("rcb-checkbox-container"))||((h=d.querySelector)==null?void 0:h.call(d,".rcb-checkbox-container")))});if(c||u){let d=s.target;for(;d&&!((A=d.classList)!=null&&A.contains("qa-bot"))&&!((a=d.classList)!=null&&a.contains("rcb-chat-window"));)d=d.parentElement;(d||document).querySelectorAll(".rcb-options[tabindex], .rcb-checkbox-row-container[tabindex], .rcb-checkbox-next-button[tabindex]").forEach(p=>{p.setAttribute("tabindex","-1"),p.classList.remove("keyboard-focused")}),setTimeout(()=>n(d),100)}}})});r.observe(document.body,{childList:!0,subtree:!0}),document.addEventListener("keydown",e),n();const o=setInterval(()=>{document.querySelectorAll(".qa-bot").forEach(i=>{const s=i.querySelectorAll(".rcb-options-container .rcb-options").length>0,A=i.querySelectorAll(".rcb-checkbox-row-container").length>0;if(s){const a=i.querySelectorAll(".rcb-options[tabindex]").length;i.querySelectorAll(".rcb-options").length>a&&n(i)}if(A){const a=i.querySelectorAll(".rcb-checkbox-row-container[tabindex]").length;i.querySelectorAll(".rcb-checkbox-row-container").length>a&&n(i)}})},1e3);return()=>{document.removeEventListener("keydown",e),r.disconnect(),clearInterval(o)}},[]),null);let nA=!1,tr=null;function rA(){return nA?Promise.resolve():tr||(tr=new Promise((e,t)=>{const n=document.createElement("script");n.src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",n.async=!0,n.onload=()=>{nA=!0,er("Script loaded"),e()},n.onerror=()=>{tr=null,t(new Error("Failed to load Turnstile script"))},document.head.appendChild(n)}),tr)}const oA=e=>{if(!e||typeof e!="string")return e;let t=e.replace(/\[(https?:\/\/[^\s]+?)\]/gi,"[$1]($1)");return t=t.replace(new RegExp(`(?<!\\]\\(|href=["']|\\[)https?:\\/\\/[^\\s[\\]()]+`,"gi"),n=>{let r=n,o="";const i=r.match(/([.,;:!?]+)$/);return i&&(o=i[1],r=r.slice(0,-o.length)),"[".concat(r,"](").concat(r,")").concat(o)}),t},sp=e=>{let{siteKey:t,onVerify:n,onError:r}=e;const o=oe(null),i=oe(!1);return J(()=>{!i.current&&o.current&&(i.current=!0,rA().then(()=>{const s=window.turnstile;if(!s||!o.current)return Ue("Turnstile API not available after script load"),void(r==null||r());s.render(o.current,{sitekey:t,callback:A=>{er("Visible challenge completed"),n(A)},"error-callback":()=>{Ue("Turnstile challenge failed"),r==null||r()},"expired-callback":()=>{Ue("Turnstile token expired"),r==null||r()}})}).catch(s=>{Ue("Failed to load Turnstile script:",s),r==null||r()}))},[t,n,r]),M.createElement("div",{style:{padding:"8px 16px"}},M.createElement("div",{ref:o,style:{borderRadius:"8px",overflow:"hidden"}}))};function iA(e){const{confidence:t,tools_used:n,metadata:r}=e;if(!(t||n&&n.length!==0))return"";const o=[];return t&&o.push("• Confidence: ".concat(t)),n&&n.length>0&&o.push("• Tools used: ".concat(n.join(", "))),r!=null&&r.agent&&o.push("• Agent: ".concat(r.agent)),`---
39
+ `.concat(o.join(`
40
+ `))}function Ap(e){let{getState:t,onResubmit:n,trackEvent:r,loginUrl:o}=e;const[i,s]=M.useState(!1),A=t();return M.useEffect(()=>{if(!A.siteKey)return;s(!1);const a=setTimeout(()=>{A.token||(s(!0),r==null||r({type:"chatbot_turnstile_error"}))},5e3);return()=>clearTimeout(a)},[A.siteKey]),A.siteKey?i?M.createElement("div",{style:{padding:"8px 16px",fontSize:"14px",lineHeight:"1.5"}},M.createElement("p",{style:{margin:0}},"I'm having trouble verifying your session. Please try"," ",M.createElement("a",{href:"",onClick:a=>{a.preventDefault(),window.location.reload()},style:{color:"var(--primaryColor, #107180)"}},"refreshing the page"),", or"," ",M.createElement("a",{href:o,target:"_blank",rel:"noopener noreferrer",style:{color:"var(--primaryColor, #107180)",fontWeight:"bold"}},"log in")," ","to continue.")):M.createElement(sp,{siteKey:A.siteKey,onVerify:a=>{A.token=a,r==null||r({type:"chatbot_turnstile_completed"}),n(a)},onError:()=>{Vs("Turnstile widget error (may auto-recover)")}}):null}const lp="#1a5b6e",cp="#107180",up="Arial, sans-serif",aA="Q&A Bot",dp="/chat-icon.svg",pp="Type your question here...",fp="Select an option to continue",hp=!1,gp="Ask me a question!",sA="/login",mp={general:{showHeader:!0,showFooter:!0},tooltip:{mode:"CLOSE"},chatInput:{disabled:!1,characterLimit:5e3,showCharacterCount:!1,allowNewline:!0,blockSpam:!1},chatWindow:{defaultOpen:!1,showScrollbar:!1},botBubble:{simulateStream:!0,streamSpeed:10,showAvatar:!1},userBubble:{showAvatar:!1},notification:{disabled:!0,showCount:!1},audio:{disabled:!0},emoji:{disabled:!0},fileAttachment:{disabled:!0}},Co=Re((e,t)=>{var n,r,o;const{apiKey:i,qaEndpoint:s,ratingEndpoint:A,capabilitiesEndpoint:a,agentRatingEndpoint:l,welcomeMessage:c,open:u,onOpenChange:d,isLoggedIn:p,allowAnonAccess:h=!1,actingUser:m,primaryColor:f,secondaryColor:b,botName:y,logo:g,placeholder:x,errorMessage:k,embedded:E,footerText:C,footerLink:I,tooltipText:D,loginUrl:P,turnstileSiteKey:S,customFlow:B,onAnalyticsEvent:L}=e,R=oe("bot_".concat(Math.random().toString(36).substr(2,9)));J(()=>{$d()},[]);const Q=oe(null);Q.current===null&&(Q.current=Js(),Zn("CREATED",Q.current));const z=oe(!1),N=oe({getSessionId:()=>Q.current,isResetting:()=>z.current}),H=function(U){const[Y,ue]=ee(null),[ae,de]=ee("idle"),he=oe(null),ge=oe(null),De=oe(!0),Xe=G(()=>{const Be=window.turnstile;if(ge.current&&(Be!=null&&Be.remove)){try{Be.remove(ge.current)}catch{}ge.current=null}he.current&&(he.current.remove(),he.current=null)},[]);return J(()=>{if(De.current=!0,!U)return de("idle"),void ue(null);de("loading");const Be=document.createElement("div");return Be.style.position="fixed",Be.style.left="-9999px",Be.style.top="-9999px",Be.style.width="0",Be.style.height="0",Be.style.overflow="hidden",Be.setAttribute("aria-hidden","true"),document.body.appendChild(Be),he.current=Be,rA().then(()=>{if(!De.current)return;const gt=window.turnstile;if(!gt||!he.current)return Ue("Turnstile API not available for silent verification"),void de("failed");const Ft=gt.render(he.current,{sitekey:U,execution:"render","refresh-expired":"auto",callback:Se=>{De.current&&(er("Silent verification succeeded"),ue(Se),de("verified"))},"error-callback":()=>{De.current&&(Ue("Turnstile silent verification failed"),de("failed"))},"expired-callback":()=>{De.current&&(er("Token expired, awaiting refresh"),ue(null),de("loading"))}});ge.current=Ft}).catch(gt=>{De.current&&(Ue("Failed to load Turnstile script for silent verification:",gt),de("failed"))}),()=>{De.current=!1,Xe()}},[U,Xe]),{token:Y,status:ae}}(S),v=oe(null);v.current=H.token;const[q,w]=ee(p);J(()=>{w(p)},[p]);const W=E!==void 0?E:hp,re=G(U=>{var Y;L&&L(Object.assign(Object.assign({},U),{timestamp:Date.now(),sessionId:(Y=Q.current)!==null&&Y!==void 0?Y:void 0,pageUrl:typeof window<"u"?window.location.href:void 0,isEmbedded:W}))},[L,W]),V=_e(()=>{const U=Object.assign({},mp);U.general=Object.assign(Object.assign({},U.general),{primaryColor:f||lp,secondaryColor:b||cp,fontFamily:up,embedded:W});const Y=q===!1?[M.createElement(Ys,{key:"login-button",loginUrl:P||sA,isHeaderButton:!0})]:[M.createElement(np,{key:"history-button"}),M.createElement(jd,{key:"user-icon"})];U.header={title:M.createElement("span",{style:{fontSize:14,fontWeight:500}},y||aA),showAvatar:!0,avatar:g||dp,buttons:[...Y,we.CLOSE_CHAT_BUTTON]},U.chatInput=Object.assign(Object.assign({},U.chatInput),{disabled:!1,enabledPlaceholderText:x||pp,disabledPlaceholderText:k||fp}),U.tooltip=Object.assign(Object.assign({},U.tooltip),{text:D||gp});const ue=C?I?M.createElement("a",{href:I,target:"_blank",rel:"noopener noreferrer",key:"footer-link"},C):M.createElement("span",{key:"footer-text"},C):null;return U.footer={text:ue,buttons:[M.createElement(op,{key:"new-chat-button"})]},U.chatWindow=Object.assign(Object.assign({},U.chatWindow),{defaultOpen:!!W}),U.event={rcbPreInjectMessage:!0,rcbPostInjectMessage:!0,rcbUserSubmitText:!0,rcbChangePath:!0,rcbToggleChatWindow:!0},U},[f,b,y,g,x,k,W,D,q,P,C,I]),ce=oe(null),Le=function(U){let Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return _e(()=>{const ue=(ae,de)=>{if(U.current){const he=getComputedStyle(U.current).getPropertyValue(ae);if(he&&he.trim()!=="")return he.trim();if(U.current.parentElement){const ge=getComputedStyle(U.current.parentElement).getPropertyValue(ae);if(ge&&ge.trim()!=="")return ge.trim()}}return de};return{primaryColor:ue("--primaryColor",Y.primaryColor),secondaryColor:ue("--secondaryColor",Y.secondaryColor),fontFamily:ue("--fontFamily",Y.fontFamily)}},[U,Y])}(ce,V.general);((U,Y)=>{J(()=>{Y.current&&(U?Y.current.classList.add("bot-logged-in"):Y.current.classList.remove("bot-logged-in"))},[U,Y])})(q!==!1,ce),(U=>{let{settings:Y,themeColors:ue}=U;J(()=>{ue&&(Object.entries(ue).forEach(ae=>{let[de,he]=ae;he&&document.documentElement.style.setProperty("--".concat(de),he)}),ue.primaryColor&&document.documentElement.style.setProperty("--rcb-header-background",ue.primaryColor),ue.secondaryColor&&document.documentElement.style.setProperty("--rcb-header-background-hover",ue.secondaryColor))},[ue]),J(()=>{var ae,de;!((ae=Y.header)===null||ae===void 0)&&ae.title&&typeof Y.header.title=="string"&&(Y.header.title=M.createElement("div",{key:"header-title"},M.createElement("h1",{className:"sr-only"},Y.header.title),M.createElement("span",{"aria-hidden":"true"},Y.header.title))),Y.device={desktopEnabled:!0,mobileEnabled:!0,applyMobileOptimizations:!1},Y.chatHistory={disabled:!0},Y.chatButton=Object.assign(Object.assign({},Y.chatButton),{icon:(de=Y.header)===null||de===void 0?void 0:de.avatar}),Y.event=Object.assign(Object.assign({},Y.event),{rcbToggleChatWindow:!0})},[Y])})({settings:V,themeColors:Le});const xe=_e(()=>{const U=(ue=>{let{endpoint:ae,ratingEndpoint:de,agentRatingEndpoint:he,apiKey:ge,sessionId:De,isResetting:Xe=()=>!1,isLoggedIn:Be,allowAnonAccess:gt=!1,loginUrl:Ft="/login",trackEvent:Se,getTurnstileToken:Pn}=ue;if(Be===!1&&!gt)return Se==null||Se({type:"chatbot_login_prompt_shown"}),{qa_loop:{message:"To ask questions, please log in first.",component:M.createElement(Ys,{loginUrl:Ft}),chatDisabled:!0,path:"qa_loop"}};let et=null,St=null,Cn=!1;const Ee={siteKey:null,token:null,pendingQuery:null,needsChallenge:!1};let Bt=null;if(!ae)throw new Error("Q&A endpoint is required");return{qa_loop:{message:async ot=>{Bt=ot.injectMessage.bind(ot);const{userInput:T}=ot;if(Xe&&Xe()||!T||T.trim()==="")return null;if(T==="👍 Helpful"||T==="👎 Not helpful"){if(et){const F=T==="👍 Helpful",K=St==="agent"?he:de;if(K)try{const $={"Content-Type":"application/json"};ge&&($["X-API-KEY"]=ge);const se=De();se&&($["X-Session-ID"]=se,$["X-Query-ID"]=et),await fetch(K,{method:"POST",headers:$,credentials:"include",body:JSON.stringify(St==="agent"?{query_id:et,rating:F?"helpful":"not_helpful",session_id:se}:{sessionId:se,queryId:et,rating:F?1:0})}),Se==null||Se({type:"chatbot_rating_sent",queryId:et,rating:F?"helpful":"not_helpful"})}catch($){Ue("Error sending feedback:",$)}}return"Thanks for the feedback!"}try{const F=Xs();et=F,Se==null||Se({type:"chatbot_question_sent",queryId:F,questionLength:T.length});const K={"Content-Type":"application/json"};ge&&(K["X-API-KEY"]=ge);const $=De();$&&(K["X-Session-ID"]=$,K["X-Query-ID"]=F);const se={query:T,session_id:$,question_id:F},Ie=Pn==null?void 0:Pn();Ie&&(se.turnstile_token=Ie),Zn("SENT to API",{session_id:$,question_id:F});const mt=Date.now(),ze=await fetch(ae,{method:"POST",headers:K,credentials:"include",body:JSON.stringify(se)}),bt=Date.now()-mt;if(!ze.ok)throw new Error("API returned ".concat(ze.status));const it=await ze.json();if(it.requires_turnstile)return Se==null||Se({type:"chatbot_turnstile_shown",queryId:F}),Ee.siteKey=it.site_key,Ee.pendingQuery={query:T,sessionId:$,queryId:F},Ee.needsChallenge=!0,"One moment — verifying your session…";const Oe=it.response||it.answer||it.text||it.message;if(!Oe)throw new Error("Invalid response format from API");const wt=it.metadata||{};St=wt.rating_target||null,Cn=wt.is_final_response===!0;const tt=oA(Oe),Mo=Rt()?iA(it):"",Gp=Mo?"".concat(tt,`
41
+
42
+ `).concat(Mo):tt;return await ot.injectMessage(Gp),Se==null||Se({type:"chatbot_answer_received",queryId:F,responseTimeMs:bt,success:!0,responseLength:Oe.length,hasMetadata:!!Mo}),null}catch(F){return Ue("Error in Q&A flow:",F),Se==null||Se({type:"chatbot_answer_error",queryId:et??void 0,errorType:F instanceof Error?F.message:"unknown"}),"I apologize, but I'm having trouble processing your question. Please try again later."}},options:ot=>Xe&&Xe()||ot.userInput==="👍 Helpful"||ot.userInput==="👎 Not helpful"||Ee.needsChallenge?[]:Cn&&St&&(St==="agent"?he:de)?["👍 Helpful","👎 Not helpful"]:[],renderMarkdown:["BOT"],chatDisabled:!1,component:M.createElement(Ap,{getState:()=>Ee,onResubmit:async ot=>{if(Ee.pendingQuery&&Bt)try{const T={"Content-Type":"application/json"};ge&&(T["X-API-KEY"]=ge);const F=await fetch(ae,{method:"POST",headers:T,credentials:"include",body:JSON.stringify({query:Ee.pendingQuery.query,session_id:Ee.pendingQuery.sessionId,question_id:Ee.pendingQuery.queryId,turnstile_token:ot})}),K=Ee.pendingQuery.queryId;if(!F.ok)throw new Error("API returned ".concat(F.status," after Turnstile"));const $=await F.json();if($.requires_turnstile)return Ee.siteKey=$.site_key,Ee.token=null,void await Bt("Still verifying — please complete the challenge again.");Ee.token=null,Ee.pendingQuery=null,Ee.needsChallenge=!1,Ee.siteKey=null;const se=$.response||$.answer||$.text||$.message;if(!se)throw new Error("Invalid response format from API");const Ie=$.metadata||{};St=Ie.rating_target||null,Cn=Ie.is_final_response===!0,et=K;const mt=oA(se),ze=Rt()?iA($):"",bt=ze?"".concat(mt,`
43
+
44
+ `).concat(ze):mt;await Bt(bt),Se==null||Se({type:"chatbot_answer_received",queryId:K,success:!0,responseLength:se.length})}catch(T){Ue("Error resubmitting after Turnstile:",T),Ee.token=null,Ee.pendingQuery=null,Ee.needsChallenge=!1,Ee.siteKey=null,await(Bt==null?void 0:Bt("I had trouble processing your question after verification. Please try again."))}},trackEvent:Se,loginUrl:Ft}),path:"qa_loop"}}})({endpoint:s,ratingEndpoint:A,agentRatingEndpoint:l,apiKey:i,sessionId:N.current.getSessionId,isResetting:N.current.isResetting,isLoggedIn:q,allowAnonAccess:h,loginUrl:P||sA,trackEvent:re,getTurnstileToken:()=>v.current});return Object.assign(Object.assign({start:{message:c,renderMarkdown:["BOT"],transition:{duration:0},path:"qa_loop"}},U),B||{})},[i,s,A,l,c,q,h,P,B,m,re]),Fe=_e(()=>{return[()=>Uc(Y),Ud(),()=>Fd(U)];var U,Y},[]);return J(()=>{const U=()=>{const ue=document.querySelector(".rcb-chat-window");if(!ue)return;const ae=ue.querySelector(".rcb-send-button");ae&&(ae.hasAttribute("tabindex")||ae.setAttribute("tabindex","0"),ae.hasAttribute("data-keyboard-enabled")||(ae.setAttribute("data-keyboard-enabled","true"),ae.addEventListener("keydown",de=>{if(de.key==="Enter"||de.key===" "){de.preventDefault();const he=ae&&Object.keys(ae).find(De=>De.startsWith("__reactProps"));if(he){const De=ae[he],Xe=De==null?void 0:De.onMouseDown;if(Xe&&typeof Xe=="function")return void Xe(de)}const ge=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});ae.dispatchEvent(ge)}})))},Y=setInterval(U,1e3);return U(),()=>clearInterval(Y)},[]),ap(),J(()=>{const U=ce.current;if(!U)return;const Y=ue=>{var ae,de,he;const ge=(de=(ae=ue.target).closest)===null||de===void 0?void 0:de.call(ae,"a");ge&&ge.closest(".rcb-chat-body-container")&&(ge.classList.contains("qa-bot-login-button")||ge.closest(".rcb-options-container")||re({type:"chatbot_link_clicked",linkUrl:ge.href,linkText:((he=ge.textContent)===null||he===void 0?void 0:he.trim())||""}))};return U.addEventListener("click",Y),()=>U.removeEventListener("click",Y)},[re]),J(()=>{if(!W){const U=Y=>{const ue=Y.data.newState;d==null||d(ue);const ae=Q.current;re(ue?{type:"chatbot_open"}:{type:"chatbot_close",messageCount:ae?Zs(ae):0,durationMs:ae?ep(ae):0})};return window.addEventListener("rcb-toggle-chat-window",U),()=>{window.removeEventListener("rcb-toggle-chat-window",U)}}},[W,d,re]),M.createElement("div",{className:"qa-bot ".concat(!((n=V.general)===null||n===void 0)&&n.embedded?"embedded-qa-bot":""),ref:ce,role:"region","aria-label":"".concat(y||aA).concat(!((r=V.general)===null||r===void 0)&&r.embedded?" - Embedded":"")},M.createElement(tp,{getSessionId:()=>Q.current,setSessionId:U=>{const Y=Q.current;Q.current=U,Zn("RESTORED","".concat(Y==null?void 0:Y.slice(-12)," -> ").concat(U.slice(-12)))},resetSession:()=>{const U=Q.current;z.current=!0,Q.current=Js(),Zn("RESET","".concat(U==null?void 0:U.slice(-12)," -> ").concat(Q.current.slice(-12)))},clearResettingFlag:()=>{z.current=!1}},M.createElement(zd,{trackEvent:re},M.createElement(ya,null,M.createElement("div",null,M.createElement(ip,null),M.createElement(qs,{ref:t,embedded:((o=V.general)===null||o===void 0?void 0:o.embedded)||!1,currentOpen:u||!1,enabled:q!==!1,onSetEnabled:U=>w(!!U&&void 0)}),M.createElement(wc,{key:"chatbot-".concat(R.current,"-").concat(q),settings:V,flow:xe,plugins:Fe}),M.createElement("div",{role:"status","aria-live":"polite","aria-label":"Bot response updates",className:"sr-only",id:"bot-live-region",style:{position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",border:0}}),M.createElement("div",{id:"chat-input-help",className:"sr-only",style:{position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",border:0}},"Type your message and press Enter to send. Use arrow keys to navigate through response options."))))))});Co.displayName="QABot",Fi('.rcb-chat-window{height:800px!important;max-height:80vh!important;max-width:100%;width:550px!important}.rcb-chat-window .rcb-chat-header{align-items:center;display:flex;flex-direction:row;font-weight:700}.rcb-chat-window a{color:#000;font-weight:700;text-decoration:underline}.rcb-chat-window a:hover{color:var(--primaryColor,#107180)}.rcb-chat-window .rcb-bot-message a,.rcb-chat-window .rcb-bot-message a:link,.rcb-chat-window .rcb-bot-message a:visited{color:#fff!important;text-decoration:underline!important}.rcb-chat-window .rcb-bot-message a:hover{opacity:.85;text-decoration:underline!important}.rcb-chat-window .rcb-chat-input-textarea{overflow-y:auto}.rcb-chat-window .rcb-chat-footer-container{font-size:10px}.qa-bot .history-button,.qa-bot .user-login-icon{display:none!important}.qa-bot.bot-logged-in .history-button,.qa-bot.bot-logged-in .user-login-icon{display:flex!important;transform:scale(1.3) translateY(-2px)}.qa-bot.bot-logged-in .history-button:hover{opacity:.8}.qa-bot.bot-logged-in .history-button:focus{outline:2px solid #fff;outline-offset:2px}.embedded-qa-bot .rcb-chat-window{max-width:100%;width:100%!important}.qa-bot.hidden{display:none}.embedded-qa-bot .rcb-bot-message,.embedded-qa-bot .rcb-user-message{max-width:90%!important;word-break:break-word}.embedded-qa-bot .rcb-chat-input-textarea{width:100%!important}.qa-bot-container{max-width:100%;width:100%}.rcb-chat-tooltip{background-color:#1a5b6e;color:#fff}.rcb-chat-tooltip-tail{border-color:#0000 #0000 #0000 #1a5b6e}@keyframes phone-ring{0%{transform:translateX(0) translateY(0) rotate(0deg)}2%{transform:translateX(0) translateY(-8px) rotate(-2deg)}4%{transform:translateX(0) translateY(-6px) rotate(2deg)}6%{transform:translateX(0) translateY(-8px) rotate(-1deg)}8%{transform:translateX(0) translateY(-6px) rotate(1deg)}10%{transform:translateX(0) translateY(-8px) rotate(-2deg)}12%{transform:translateX(0) translateY(-6px) rotate(2deg)}20%{transform:translateX(0) translateY(0) rotate(0deg)}30%{transform:translateX(0) translateY(0) rotate(0deg)}40%{transform:translateX(0) translateY(0) rotate(0deg)}49%{transform:translateX(0) translateY(0) rotate(0deg)}50%{transform:translateX(0) translateY(-8px) rotate(-2deg)}52%{transform:translateX(0) translateY(-6px) rotate(2deg)}54%{transform:translateX(0) translateY(-8px) rotate(-1deg)}56%{transform:translateX(0) translateY(-6px) rotate(1deg)}58%{transform:translateX(0) translateY(-8px) rotate(-2deg)}60%{transform:translateX(0) translateY(-6px) rotate(2deg)}70%{transform:translateX(0) translateY(0) rotate(0deg)}to{transform:translateX(0) translateY(0) rotate(0deg)}}@media (max-width:768px){.rcb-chat-window{max-height:calc(100vh - 100px)!important;max-width:calc(100vw - 40px)!important;width:550px!important}.embedded-chat-container.open{height:400px}.embedded-chat-closed{font-size:14px;height:40px}.embedded-chat-open-btn{font-size:12px;padding:3px 10px}.rcb-bot-message,.rcb-user-message{max-width:85%!important}.rcb-chat-input-textarea{font-size:16px!important;min-height:44px!important}.rcb-chat-header{padding:12px 16px!important}}@media (max-width:480px){.rcb-chat-window{bottom:10px!important;left:10px!important;max-height:calc(100vh - 80px)!important;max-width:calc(100vw - 20px)!important;right:10px!important;width:calc(100vw - 20px)!important}.embedded-chat-container.open{height:350px}.rcb-bot-message,.rcb-user-message{margin-bottom:8px!important;max-width:90%!important}.rcb-chat-header{font-size:14px!important;padding:8px 12px!important}.rcb-chat-button{bottom:20px!important;height:50px!important;right:20px!important;width:50px!important}.rcb-chat-footer-container{font-size:9px!important;padding:8px 12px!important}}@media (max-width:360px){.rcb-chat-window{left:5px!important;max-width:calc(100vw - 10px)!important;right:5px!important;width:calc(100vw - 10px)!important}.rcb-chat-header{font-size:13px!important;padding:6px 8px!important}}.rcb-checkbox-container{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin-left:16px!important;max-width:100%!important;padding-top:12px!important}.rcb-checkbox-row-container{align-items:center!important;background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--primaryColor,#107180)!important;cursor:pointer!important;display:flex!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;margin:0!important;max-height:auto!important;min-height:auto!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-checkbox-row-container:hover{background-color:#e8f4f8!important;border-color:var(--primaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.rcb-checkbox-row-container[data-checked=true]{background-color:var(--primaryColor,#107180)!important;border-color:var(--primaryColor,#107180)!important;color:#fff!important}.rcb-checkbox-row{margin-left:0!important}.rcb-checkbox-mark{height:14px!important;margin-right:6px!important;width:14px!important}.rcb-checkbox-label{font-size:13px!important;margin:0!important;white-space:nowrap!important}.rcb-checkbox-next-button{align-items:center!important;background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--secondaryColor,#107180)!important;cursor:pointer!important;display:flex!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;justify-content:center!important;line-height:24px!important;margin:0!important;max-height:auto!important;min-height:auto!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-checkbox-next-button:hover{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.sr-only{clip:rect(0,0,0,0)!important;border:0!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}.rcb-chat-input-send-button:focus,.rcb-chat-input-textarea:focus{outline:2px solid var(--primaryColor,#107180)!important;outline-offset:2px!important}.rcb-user-message{word-wrap:break-word!important;overflow:hidden!important;word-break:break-word!important}:focus-visible{outline:2px solid var(--primaryColor,#107180)!important;outline-offset:2px!important}.rcb-options-container{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:8px!important;margin:16px!important;padding:0!important}.rcb-options{background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--secondaryColor,#107180)!important;cursor:pointer!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;outline:none!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-options:hover{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.rcb-checkbox-next-button.keyboard-focused,.rcb-checkbox-next-button:focus,.rcb-checkbox-next-button:focus-visible,.rcb-checkbox-row-container.keyboard-focused,.rcb-checkbox-row-container:focus,.rcb-checkbox-row-container:focus-visible,.rcb-options.keyboard-focused,.rcb-options:focus,.rcb-options:focus-visible{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;outline:none!important}.rcb-options:active{background-color:var(--secondaryColor,#107180)!important;border-color:var(--secondaryColor,#107180)!important;color:#fff!important;transform:translateY(0)!important}.keyboard-nav-hint{color:#666!important;font-size:12px!important;font-style:italic!important;margin-bottom:8px!important}@media (prefers-reduced-motion:reduce){.keyboard-nav-hint{display:none!important}}.rcb-options-container [role=button][tabindex="0"],.rcb-options-container button[tabindex="0"]{position:relative!important}.rcb-options-container [role=button][tabindex="0"]:after,.rcb-options-container button[tabindex="0"]:after{color:var(--secondaryColor,#107180)!important;content:"←"!important;font-size:16px!important;opacity:0!important;position:absolute!important;right:12px!important;top:50%!important;transform:translateY(-50%)!important;transition:opacity .2s ease!important}.rcb-options-container [role=button][tabindex="0"]:focus:after,.rcb-options-container button[tabindex="0"]:focus:after{opacity:1!important}.rcb-chat-input-send-button{cursor:pointer!important;opacity:1!important;pointer-events:auto!important;visibility:visible!important}.rcb-chat-input-send-button:not([tabindex]){-webkit-user-select:none;-moz-user-select:none;user-select:none}.rcb-chat-input-container [onclick],.rcb-chat-input-container [role=button],.rcb-chat-input-container div[style*=cursor],.rcb-chat-input-container svg:last-child,.rcb-chat-input-container>div:last-child{tabindex:0!important;cursor:pointer!important}.rcb-chat-footer{margin-top:4px!important;padding-top:0!important}.rcb-chat-footer-container{align-items:center!important;display:flex!important;margin-top:4px!important;padding-top:4px!important}.rcb-chat-footer-container button{order:1!important}.rcb-chat-footer-container a[href*=qa-bot-core]{tab-index:0!important;order:2!important}.rcb-chat-footer-container a[href*=feedback]{tab-index:0!important;order:3!important}@media (prefers-contrast:high){.rcb-chat-window a{background-color:#fff!important;border:1px solid #000!important;color:#000!important}}@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.rcb-chat-input-textarea{user-select:text!important}.rcb-chat-body-container,.rcb-chat-input-textarea,.rcb-chat-window{touch-action:pan-y!important}.embedded-qa-bot,.rcb-chat-window{-webkit-overflow-scrolling:touch!important}.embedded-qa-bot .rcb-chat-input-textarea{touch-action:pan-y!important;user-select:text!important}.embedded-qa-bot .rcb-chat-body-container,.embedded-qa-bot .rcb-chat-window{touch-action:pan-y!important}.rcb-chat-header-container{background:var(--primaryColor,#1a5b6e)!important;background:linear-gradient(135deg,var(--primaryColor,#1a5b6e) 0,var(--secondaryColor,#107180) 100%)!important}.rcb-toggle-button{align-items:center!important;background:var(--primaryColor,#1a5b6e)!important;display:flex!important;justify-content:center!important}.rcb-toggle-button svg{stroke:#fff!important;color:#fff!important}.rcb-toggle-button *,.rcb-toggle-button img,.rcb-toggle-button svg,.rcb-toggle-button>*{box-sizing:border-box!important;height:50px!important;left:0!important;margin:0 auto!important;max-height:50px!important;max-width:50px!important;min-height:50px!important;min-width:50px!important;padding:2px!important;position:relative!important;top:0!important;width:50px!important}.rcb-send-button{background-color:var(--primaryColor,#1a5b6e)!important}',{insertAt:"top"});const yp=()=>{const[e,t]=ee(!1),n=()=>typeof navigator<"u"&&navigator.mediaDevices!==void 0&&typeof navigator.mediaDevices.getDisplayMedia=="function";return{captureScreenshot:async()=>{if(!n())throw new Error("Screen capture is not available in this environment");try{t(!0);const r=await navigator.mediaDevices.getDisplayMedia({video:{displaySurface:"browser",cursor:"always",width:{ideal:1920},height:{ideal:1080}},audio:!1}),o=document.createElement("video");o.srcObject=r,await new Promise(c=>{o.onloadedmetadata=()=>{o.play(),c()}});const i=document.createElement("canvas");i.width=o.videoWidth,i.height=o.videoHeight;const s=i.getContext("2d");if(!s)throw new Error("Could not get canvas context");s.drawImage(o,0,0,i.width,i.height);const A=await new Promise(c=>i.toBlob(c,"image/png"));if(!A)throw new Error("Could not create image blob");const a=new Date().toISOString().replace(/[:.]/g,"-"),l=new File([A],"screenshot-".concat(a,".png"),{type:"image/png"});return r.getTracks().forEach(c=>c.stop()),t(!1),l}catch(r){throw Ue("Error capturing screenshot:",r),t(!1),r}},isCapturing:e,isScreenCaptureAvailable:n()}},vp=e=>M.createElement(tA,e,M.createElement("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),M.createElement("polyline",{points:"17 8 12 3 7 8"}),M.createElement("line",{x1:"12",y1:"3",x2:"12",y2:"15"})),bp=e=>new Promise((t,n)=>{const r=new FileReader;r.onload=()=>{if(typeof r.result!="string")return void n(new Error("Failed to read file ".concat(e.name)));const o=r.result.split(",")[1];t({fileName:e.name,contentType:e.type,size:e.size,fileData:o})},r.onerror=()=>n(new Error("Failed to read file ".concat(e.name))),r.readAsDataURL(e)}),wp=e=>Promise.all(e.map(bp)),xp=e=>e<1024?"".concat(e," B"):e<1048576?"".concat((e/1024).toFixed(1)," KB"):"".concat((e/1048576).toFixed(1)," MB"),nr=e=>{let{onFileUpload:t,maxSizeMB:n=10,acceptedTypes:r="image/*,application/pdf,text/*,.doc,.docx",enableScreenshot:o=!1,className:i}=e;const[s,A]=ee(!1),[a,l]=ee([]),[c,u]=ee(null),d=oe(null),{captureScreenshot:p,isCapturing:h,isScreenCaptureAvailable:m}=yp(),f=E=>{const C=document.createElement("div");C.setAttribute("aria-live","assertive"),C.setAttribute("aria-atomic","true"),C.className="sr-only",C.textContent=E,document.body.appendChild(C),setTimeout(()=>document.body.removeChild(C),1e3)},b=E=>{if(!E||E.length===0)return void Vs("FileUploadComponent: No valid files provided to handleFiles");let C;try{C=Array.from(E)}catch(S){return Ue("FileUploadComponent: Error converting files to array:",S),void f("Error processing selected files. Please try again.")}const I=[...a,...C];l(I);const D=C.length,P=C.map(S=>S.name).join(", ");f("".concat(D," file").concat(D>1?"s":""," selected: ").concat(P)),setTimeout(()=>{const S=document.querySelector(".rcb-chat-content");S&&(S.scrollTop=S.scrollHeight)},100),t&&t(I)},y=E=>{E.preventDefault(),E.stopPropagation(),E.type==="dragenter"||E.type==="dragover"?A(!0):E.type==="dragleave"&&A(!1)},g=()=>{try{d.current&&d.current.click()}catch(E){Ue("FileUploadComponent: Error in handleButtonClick:",E),f("Error opening file selection dialog. Please try again.")}},x=()=>{u(null)},k=o&&m;return M.createElement("div",{className:"file-upload-container ".concat(i||""),style:{padding:"16px",margin:"8px 0"}},k&&M.createElement("div",{style:{display:"flex",justifyContent:"center",marginBottom:"10px"}},M.createElement("button",{onClick:E=>{E.preventDefault(),(async()=>{try{const C=await p();b([C]),f("Screenshot captured successfully")}catch{f("Error capturing screenshot. Please try again.")}})()},disabled:h,"aria-describedby":"screenshot-help","aria-label":h?"Taking screenshot, please wait":"Take a screenshot to attach",style:{display:"flex",alignItems:"center",gap:"8px",backgroundColor:"#107180",color:"white",border:"none",borderRadius:"5px",padding:"8px 12px",cursor:h?"not-allowed":"pointer",fontSize:"14px",fontWeight:"500",boxShadow:"0 1px 3px rgba(0,0,0,0.2)"}},M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},M.createElement("path",{d:"M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"}),M.createElement("circle",{cx:"12",cy:"13",r:"4"})),h?"Taking screenshot...":"Take screenshot..."),M.createElement("span",{id:"screenshot-help",className:"sr-only"},"Captures the current screen and adds it as an attachment")),M.createElement("div",{className:"file-upload-dropzone ".concat(s?"active":""),onDragEnter:y,onDragLeave:y,onDragOver:y,onDrop:E=>{var C;E.preventDefault(),E.stopPropagation(),A(!1);try{!((C=E.dataTransfer)===null||C===void 0)&&C.files&&E.dataTransfer.files.length>0&&b(E.dataTransfer.files)}catch(I){Ue("FileUploadComponent: Error in handleDrop:",I),f("Error processing dropped files. Please try again.")}},role:"button",tabIndex:0,"aria-label":"File upload area. Click to select files or drag and drop files here.","aria-describedby":"upload-instructions",onKeyDown:E=>{E.key!=="Enter"&&E.key!==" "||(E.preventDefault(),g())},style:{padding:"20px",border:"2px dashed #ccc",borderRadius:"8px",backgroundColor:s?"#f0f8ff":"#fafafa",transition:"all 0.3s ease"}},M.createElement("input",{ref:d,type:"file",className:"file-input",onChange:E=>{var C;try{!((C=E.target)===null||C===void 0)&&C.files&&E.target.files.length>0&&b(E.target.files)}catch(I){Ue("FileUploadComponent: Error in handleFileSelect:",I),f("Error processing selected files. Please try again.")}},multiple:!0,style:{display:"none"},"aria-label":"Select files to upload",accept:r}),M.createElement("div",{className:"upload-content",onClick:g,style:{cursor:"pointer",flexDirection:"column",alignItems:"center",display:"flex",textAlign:"center",padding:"12px"}},M.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"8px"}},M.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"10px"}},M.createElement(vp,null),M.createElement("p",{style:{margin:0,fontWeight:"bold"}},"Upload Files")),M.createElement("p",{id:"upload-instructions",style:{margin:0,fontSize:"14px",color:"#666"}},"Drag and drop files here or click to select. (Max ",n,"MB each)")),a.length>0&&M.createElement("div",{className:"selected-files",style:{display:"flex",flexWrap:"wrap",gap:"8px",marginTop:"12px",alignItems:"center"}},M.createElement("span",{style:{fontWeight:400,color:"#888",fontSize:"13px",marginRight:"8px",alignSelf:"center"}},"Selected files:"),a.map((E,C)=>M.createElement("span",{key:C,style:{background:"#fff",color:"#107180",borderRadius:"5px",padding:"4px 12px",fontSize:"14px",marginRight:"4px",marginBottom:"4px",border:"1px solid #ccc",display:"flex",alignItems:"center",gap:"6px",cursor:"pointer"},onClick:I=>{I.stopPropagation(),(D=>{u(D)})(E)}},M.createElement("span",{onClick:I=>{I.stopPropagation(),(D=>{const P=a.filter((S,B)=>B!==D);l(P),t&&t(P)})(C)},style:{cursor:"pointer",color:"#888",fontWeight:"bold",fontSize:"15px",marginRight:"4px",userSelect:"none",lineHeight:1},title:"Remove file","aria-label":"Remove ".concat(E.name)},"×"),E.name," (",xp(E.size),")"))))),(()=>{if(!c)return null;const E=c.type.startsWith("image/"),C=c.type.startsWith("text/"),I=c.type==="application/pdf";return M.createElement("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.7)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e3},onClick:x},M.createElement("div",{style:{backgroundColor:"white",padding:"20px",borderRadius:"8px",maxWidth:"90%",maxHeight:"90%",overflow:"auto",position:"relative"},onClick:D=>D.stopPropagation()},M.createElement("button",{onClick:x,style:{position:"absolute",top:"10px",right:"10px",background:"none",border:"none",fontSize:"24px",cursor:"pointer",color:"#666"}},"×"),M.createElement("h3",{style:{marginTop:0,marginBottom:"16px"}},c.name),E&&M.createElement("img",{src:URL.createObjectURL(c),alt:c.name,style:{maxWidth:"100%",maxHeight:"70vh"}}),C&&M.createElement("pre",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word",maxHeight:"70vh",overflow:"auto",padding:"16px",backgroundColor:"#f5f5f5",borderRadius:"4px"}},URL.createObjectURL(c)),I&&M.createElement("iframe",{src:URL.createObjectURL(c),style:{width:"100%",height:"70vh",border:"none"},title:c.name}),!E&&!C&&!I&&M.createElement("div",{style:{padding:"20px",textAlign:"center"}},"Preview not available for this file type")))})())};function Ep(e,t){if(!t||Object.keys(t).length===0)return e;const n={};for(const[r,o]of Object.entries(e)){let i=Object.assign({},o);if(i.chatDisabled===void 0){const s=!(!i.options&&!i.checkboxes);i.chatDisabled=s}n[r]=i}return n}function rr(e){return async t=>{const n=await e(t);await t.injectMessage(n)}}const _p=M.forwardRef((e,t)=>{const[n,r]=M.useState(e.defaultOpen||!1),o=M.useRef(null);return M.useImperativeHandle(t,()=>({addMessage:i=>{var s;(s=o.current)===null||s===void 0||s.addMessage(i)},setBotEnabled:i=>{var s;(s=o.current)===null||s===void 0||s.setBotEnabled(i)},openChat:()=>{var i;r(!0),(i=o.current)===null||i===void 0||i.openChat()},closeChat:()=>{var i;r(!1),(i=o.current)===null||i===void 0||i.closeChat()},toggleChat:()=>{var i;r(s=>!s),(i=o.current)===null||i===void 0||i.toggleChat()}}),[]),M.createElement(Co,{ref:o,apiKey:e.apiKey,qaEndpoint:e.qaEndpoint,ratingEndpoint:e.ratingEndpoint,welcomeMessage:e.welcomeMessage,primaryColor:e.primaryColor,secondaryColor:e.secondaryColor,botName:e.botName,logo:e.logo,placeholder:e.placeholder,errorMessage:e.errorMessage,embedded:e.embedded,isLoggedIn:e.isLoggedIn,allowAnonAccess:e.allowAnonAccess,turnstileSiteKey:e.turnstileSiteKey,open:n,onOpenChange:r,footerText:e.footerText,footerLink:e.footerLink,tooltipText:e.tooltipText,onAnalyticsEvent:e.onAnalyticsEvent})});_p.displayName="ProgrammaticQABot";const ht={QA_ENDPOINT:"http://localhost:8000/api/v1/query",RATING_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/chat/rating/",AGENT_ENDPOINT:"http://localhost:8000/api/v1",get CAPABILITIES_ENDPOINT(){return`${this.AGENT_ENDPOINT}/capabilities`},get AGENT_RATING_ENDPOINT(){return`${this.AGENT_ENDPOINT}/rating`},METRICS_API_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/xdmod/chat/api/",METRICS_RATING_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/xdmod/chat/rating/",METRICS_QUESTIONS_URL:"https://metrics.access-ci.org/qa_bot_faq",NETLIFY_BASE_URL:"https://access-jsm-api.netlify.app",DEFAULT_API_KEY:"4nn5l4T4TnkMdzsK0AwAtnGRcheBDnjawuAT42LaOLc",TURNSTILE_SITE_KEY:"1x00000000000000000000BB",ALLOW_ANON_ACCESS:!0},Ht={BOT_NAME:"ACCESS Q&A",LOGO:"https://support.access-ci.org/themes/contrib/asp-theme/images/icons/ACCESS-arrrow.svg",WELCOME_MESSAGE:`Hello! What can I help you with?
45
+
46
+ <em>This assistant is powered by AI. Responses may not always be accurate. Do not share passwords or secrets.</em> <a href="https://support.access-ci.org/tools/access-qa-tool/privacy">Privacy Notice</a>`,LOGIN_URL:"/login",PRIMARY_COLOR:"#1a5b6e",SECONDARY_COLOR:"#107180",TOOLTIP:"Ask me about ACCESS! 😊"},AA={SESSION_ID:"access-qa-bot-session-id"};function kp(e){if(!e||!e.categories)return["Show my options"];const t=[];for(const n of e.categories)if(!(!n.capabilities||n.capabilities.length===0)&&n.id!=="general")if(n.capabilities.length===1){const r=n.capabilities[0];t.push(r.locked?`🔒 ${r.label}`:r.label)}else t.push(n.label);return t.push("Show my options"),t}function Pp({welcome:e,trackEvent:t,capabilities:n}){const r=kp(n);return{start:{message:e,renderHtml:["BOT"],options:r,chatDisabled:!1,path:o=>(t({type:"chatbot_menu_selected",selection:o.userInput}),"qa_loop")}}}let Do=null;function Cp(e){Do=e}function Z(){return Do?Do.ticketForm||{}:(console.warn("Form context not available, returning empty form"),{})}function Qe(e={}){const t=Z();return{...t,email:e.email||t.email,name:e.name||t.name,accessId:e.accessId||t.accessId}}function So(e){return e&&e.length>0?`
47
+ Attachments: ${e.length} file(s) attached`:""}const nn={SUPPORT:17,LOGIN_ACCESS:30,LOGIN_PROVIDER:31,SECURITY:26};async function Dp(e,t="support",n=[]){const o={support:nn.SUPPORT,general_help:nn.SUPPORT,loginAccess:nn.LOGIN_ACCESS,loginProvider:nn.LOGIN_PROVIDER,security:nn.SECURITY}[t]||nn.SUPPORT,s={serviceDeskId:t==="security"?3:2,requestTypeId:o,requestFieldValues:{...e}};return n.length>0&&(s.attachments=await wp(n)),s}async function Sp(e,t){var o,i;const r=`${ht.NETLIFY_BASE_URL}/api/v1/${t}`;try{const s=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!s.ok){let a="";try{const l=await s.text();try{const c=JSON.parse(l);a=c.message||c.error||l}catch{a=l}}catch{a=`HTTP ${s.status} ${s.statusText}`}return s.status===403?a="The ticket service is temporarily unavailable. Please try again later or contact support directly.":s.status===404?a="Ticket service not found. Please try again later.":s.status===500?a="Server error. Please try again later.":s.status===401&&(a="Authentication error with the ticket service. Please contact support."),{success:!1,status:s.status,error:a}}const A=await s.json();return{success:!0,ticketKey:(o=A.data)==null?void 0:o.ticketKey,ticketUrl:(i=A.data)==null?void 0:i.ticketUrl}}catch(s){return{success:!1,error:s instanceof Error?s.message:"Unknown error"}}}async function or(e,t,n=[]){try{const r=await Dp(e,t,n);return await Sp(r,t==="security"?"security-incidents":"tickets")}catch(r){return{success:!1,error:r instanceof Error?r.message:"Unknown error"}}}function Bo(e,t="ticket"){return e?e.success?e.ticketUrl&&e.ticketKey?`Your ${t} has been submitted successfully.
48
+
49
+ Ticket: <a href="${e.ticketUrl}" target="_blank">${e.ticketKey}</a>
50
+
51
+ Our support team will review your request and respond accordingly. Thank you for contacting ACCESS.`:`Your ${t} has been submitted successfully.
52
+
53
+ Our support team will review your request and respond accordingly. Thank you for contacting ACCESS.`:`We apologize, but there was an error submitting your ${t}: ${e.error||"Unknown error"}
54
+
55
+ Please try again or contact our support team directly.`:`We apologize, but there was an error submitting your ${t}.
56
+
57
+ Please try again or contact our support team directly.`}function ir(e){return!e||e.trim()===""?{success:!1,promptContent:"Email is required",promptDuration:3e3,promptType:"error"}:/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)?{success:!0}:{success:!1,promptContent:"Please enter a valid email address",promptDuration:3e3,promptType:"error"}}function _n(){return()=>({success:!0})}function kn(e){return!e||e.trim()===""||e.trim().toLowerCase()==="skip"?"":e.trim()}function Bp({ticketForm:e,setTicketForm:t,userInfo:n,trackEvent:r}){let o=null;const i=async(A,a=[])=>{o=await or(A,"loginAccess",a),o.success?(t(l=>({...l,ticketKey:o.ticketKey,ticketUrl:o.ticketUrl})),r({type:"chatbot_ticket_submitted",ticketType:"access_login",success:!0,ticketKey:o.ticketKey})):(t(l=>({...l,submissionError:o.error})),r({type:"chatbot_ticket_error",ticketType:"access_login",errorType:o.error||"unknown"}))};return{access_help:{message:`If you're having trouble logging into the ACCESS website, here are some common issues:
58
+
59
+ • Make sure you're using a supported browser (Chrome, Firefox, Safari)
60
+ • Clear your browser cookies and cache
61
+ • Check if you're using the correct identity provider
62
+
63
+ Would you like to submit a help ticket for ACCESS login issues?`,options:["Yes, let's create a ticket","Back to Main Menu"],path:A=>A.userInput==="Yes, let's create a ticket"?"access_login_description":"start"},access_login_description:{message:"Describe your login issue.",function:A=>{const a=Z();t({...a,description:A.userInput,email:n.email||a.email,name:n.name||a.name,accessId:n.accessId||a.accessId}),r({type:"chatbot_ticket_step",ticketType:"access_login",step:"description"})},path:"access_login_identity"},access_login_identity:{message:"Which identity provider were you using?",options:["ACCESS","Github","Google","Institution","Microsoft","ORCID","Other"],function:A=>{const a=Z();t({...a,identityProvider:A.userInput}),r({type:"chatbot_ticket_step",ticketType:"access_login",step:"identity_provider"})},path:"access_login_browser"},access_login_browser:{message:"Which browser were you using?",options:["Chrome","Firefox","Edge","Safari","Other"],function:A=>{const a=Z();t({...a,browser:A.userInput}),r({type:"chatbot_ticket_step",ticketType:"access_login",step:"browser"})},path:"access_login_attachment"},access_login_attachment:{message:"Would you like to attach a screenshot?",options:["Yes","No"],function:A=>{const a=Z();t({...a,wantsAttachment:A.userInput}),r({type:"chatbot_ticket_step",ticketType:"access_login",step:"attachment_choice"})},path:A=>{if(A.userInput==="Yes")return"access_login_upload";const a=Qe(n);return a.email?a.name?a.accessId?"access_login_summary":"access_login_accessid":"access_login_name":"access_login_email"}},access_login_upload:{message:"Please upload your screenshot.",component:_(nr,{onFileUpload:A=>{t(a=>({...a,uploadedFiles:A})),A.forEach(a=>{r({type:"chatbot_file_uploaded",fileType:a.type||"unknown",fileSize:a.size})})},enableScreenshot:!0,maxSizeMB:10}),options:["Continue"],function:()=>{const A=Z();t({...A,uploadConfirmed:!0}),r({type:"chatbot_ticket_step",ticketType:"access_login",step:"file_upload"})},path:()=>{const A=Qe(n);return A.email?A.name?A.accessId?"access_login_summary":"access_login_accessid":"access_login_name":"access_login_email"}},access_login_email:{message:"What is your email?",validateTextInput:ir,function:A=>{const a=Z();t({...a,email:A.userInput}),r({type:"chatbot_ticket_step",ticketType:"access_login",step:"email"})},path:()=>{const A=Qe(n);return A.name?A.accessId?"access_login_summary":"access_login_accessid":"access_login_name"}},access_login_name:{message:"What is your name?",function:A=>{const a=Z();t({...a,name:A.userInput}),r({type:"chatbot_ticket_step",ticketType:"access_login",step:"name"})},path:()=>Qe(n).accessId?"access_login_summary":"access_login_accessid"},access_login_accessid:{message:"What is your ACCESS ID? (Optional - press Enter to skip)",validateTextInput:_n(),function:A=>{const a=Z();t({...a,accessId:kn(A.userInput)}),r({type:"chatbot_ticket_step",ticketType:"access_login",step:"access_id"})},path:"access_login_summary"},access_login_summary:{message:A=>{const a=Z(),l=Qe(n),c=So(a.uploadedFiles);let u=l.accessId;return A.prevPath==="access_login_accessid"&&A.userInput&&(u=A.userInput),`Thank you for providing your ACCESS login issue details. Here's a summary:
64
+
65
+ Name: ${l.name||"Not provided"}
66
+ Email: ${l.email||"Not provided"}
67
+ ACCESS ID: ${u||"Not provided"}
68
+ Identity Provider: ${a.identityProvider||"Not provided"}
69
+ Browser: ${a.browser||"Not provided"}
70
+ Issue Description: ${a.description||"Not provided"}${c}
71
+
72
+ Would you like to submit this ticket?`},options:["Submit Ticket","Back to Main Menu"],renderHtml:["BOT","USER"],function:async A=>{if(A.userInput==="Submit Ticket"){const a=Z(),l=Qe(n),c={email:l.email||"",name:l.name||"",accessId:l.accessId||"",description:a.description||"",identityProvider:a.identityProvider||"",browser:a.browser||""};await i(c,a.uploadedFiles||[])}},path:A=>A.userInput==="Submit Ticket"?"access_login_success":"start"},access_login_success:{message:rr(()=>Bo(o,"ACCESS login ticket")),options:["Back to Main Menu"],renderHtml:["BOT"],path:"start"}}}function Ip({ticketForm:e,setTicketForm:t,userInfo:n,trackEvent:r}){let o=null;const i=async(A,a=[])=>{o=await or(A,"loginProvider",a),o.success?(t(l=>({...l,ticketKey:o.ticketKey,ticketUrl:o.ticketUrl})),r({type:"chatbot_ticket_submitted",ticketType:"resource_login",success:!0,ticketKey:o.ticketKey})):(t(l=>({...l,submissionError:o.error})),r({type:"chatbot_ticket_error",ticketType:"resource_login",errorType:o.error||"unknown"}))};return{resource_help:{message:`If you're having trouble logging into an affiliated infrastructure or resource provider, here are some common issues:
73
+
74
+ • Ensure your allocation is active
75
+ • Confirm you have the correct username for that resource
76
+ • Check <a href="https://operations.access-ci.org/infrastructure_news_view">System Status News</a> to see if the resource is undergoing maintenance
77
+
78
+ Would you like to submit a help ticket for resource provider login issues?`,options:["Yes, let's create a ticket","Back to Main Menu"],renderHtml:["BOT"],path:A=>A.userInput==="Yes, let's create a ticket"?"resource_login_resource":"start"},resource_login_resource:{message:"Which ACCESS Resource are you trying to access?",options:["ACES","Anvil","Bridges-2","DARWIN","Delta","DeltaAI","Derecho","Expanse","FASTER","Granite","Jetstream2","KyRIC","Launch","Neocortex","Ookami","Open Science Grid","Open Storage Network","Ranch","Stampede3"],function:A=>{const a=Z();t({...a,resource:A.userInput}),r({type:"chatbot_ticket_step",ticketType:"resource_login",step:"resource_selection"})},path:"resource_login_userid"},resource_login_userid:{message:"What is your user ID at the resource?",function:A=>{const a=Z();t({...a,userIdResource:A.userInput}),r({type:"chatbot_ticket_step",ticketType:"resource_login",step:"user_id"})},path:"resource_login_description"},resource_login_description:{message:"Please describe the issue you're having logging in.",function:A=>{const a=Z();t({...a,description:A.userInput,email:n.email||a.email,name:n.name||a.name,accessId:n.accessId||a.accessId}),r({type:"chatbot_ticket_step",ticketType:"resource_login",step:"description"})},path:"resource_login_attachment"},resource_login_attachment:{message:"Would you like to attach a screenshot?",options:["Yes","No"],function:A=>{const a=Z();t({...a,wantsAttachment:A.userInput}),r({type:"chatbot_ticket_step",ticketType:"resource_login",step:"attachment_choice"})},path:A=>{if(A.userInput==="Yes")return"resource_login_upload";const a=Qe(n);return a.email?a.name?a.accessId?"resource_login_summary":"resource_login_accessid":"resource_login_name":"resource_login_email"}},resource_login_upload:{message:"Please upload your screenshot.",component:_(nr,{onFileUpload:A=>{t(a=>({...a,uploadedFiles:A})),A.forEach(a=>{r({type:"chatbot_file_uploaded",fileType:a.type||"unknown",fileSize:a.size})})},enableScreenshot:!0,maxSizeMB:10}),options:["Continue"],function:()=>{const A=Z();t({...A,uploadConfirmed:!0}),r({type:"chatbot_ticket_step",ticketType:"resource_login",step:"file_upload"})},path:()=>{const A=Qe(n);return A.email?A.name?A.accessId?"resource_login_summary":"resource_login_accessid":"resource_login_name":"resource_login_email"}},resource_login_email:{message:"What is your email?",validateTextInput:ir,function:A=>{const a=Z();t({...a,email:A.userInput}),r({type:"chatbot_ticket_step",ticketType:"resource_login",step:"email"})},path:()=>{const A=Qe(n);return A.name?A.accessId?"resource_login_summary":"resource_login_accessid":"resource_login_name"}},resource_login_name:{message:"What is your name?",function:A=>{const a=Z();t({...a,name:A.userInput}),r({type:"chatbot_ticket_step",ticketType:"resource_login",step:"name"})},path:()=>Qe(n).accessId?"resource_login_summary":"resource_login_accessid"},resource_login_accessid:{message:"What is your ACCESS ID? (Optional - press Enter to skip)",validateTextInput:_n(),function:A=>{const a=Z();t({...a,accessId:kn(A.userInput)}),r({type:"chatbot_ticket_step",ticketType:"resource_login",step:"access_id"})},path:"resource_login_summary"},resource_login_summary:{message:A=>{const a=Z(),l=Qe(n),c=So(a.uploadedFiles);let u=l.accessId;return A.prevPath==="resource_login_accessid"&&A.userInput&&(u=A.userInput),`Thank you for providing your resource login issue details. Here's a summary:
79
+
80
+ Name: ${l.name||"Not provided"}
81
+ Email: ${l.email||"Not provided"}
82
+ ACCESS ID: ${u||"Not provided"}
83
+ Resource: ${a.resource||"Not provided"}
84
+ Resource User ID: ${a.userIdResource||"Not provided"}
85
+ Issue Description: ${a.description||"Not provided"}${c}
86
+
87
+ Would you like to submit this ticket?`},options:["Submit Ticket","Back to Main Menu"],function:async A=>{if(A.userInput==="Submit Ticket"){const a=Z(),l=Qe(n),c={email:l.email||"",name:l.name||"",accessId:l.accessId||"",accessResource:a.resource||"",description:a.description||"",userIdAtResource:a.userIdResource||""};await i(c,a.uploadedFiles||[])}},path:A=>A.userInput==="Submit Ticket"?"resource_login_success":"start"},resource_login_success:{message:rr(()=>Bo(o,"resource login ticket")),options:["Back to Main Menu"],renderHtml:["BOT"],path:"start"}}}const Tp=[" C, C++","Abaqus","ACCESS","ACCESS-credits","ACCESS-website","Accounts","ACLS","Adding users","Affiliations","Affinity Groups","AI","Algorithms","Allocation extension","Allocation Management","Allocation proposal","Allocation Time","Allocation users","AMBER","AMIE","Anaconda","Analysis","API","Application Status","ARCGIS","Architecture","Archiving","Astrophysics","ATLAS","Authentication","AWS","AZURE","Backup","BASH","Batch Jobs","Benchmarking","Big Data","Bioinformatics","Biology","Ceph","CFD","cgroups","CHARMM","Checkpoint","cilogon","citation","Cloud","Cloud Computing","Cloud Lab","Cloud Storage","Cluster Management","Cluster Support","CMMC","Community Outreach","Compiling","Composible Systems","Computataional Chemistry","COMSOL","Conda","Condo","Containers","Core dump","Core hours","CP2K","CPU architecture","CPU bound","CUDA","Cybersecurity","CYVERSE","Data","Data Storage","Data-access-protocols","Data-analysis","Data-compliance","Data-lifecycle","Data-management","Data-management-software","Data-provenance","Data-reproducibility","Data-retention","Data-science","Data-sharing","Data-transfer","Data-wrangling","Database-update","Debugging","Debugging, Optimizatio and Profiling","Deep-learning","Dependencies","Deployment","DFT","Distributed-computing","DNS","Docker","Documentation","DOI","DTN","Easybuild","Email","Encryption","Environment-modules","Errors","Extension","FastX","Federated-authentication","File transfers","File-formats","File-limits","File-systems","File-transfer","Finite-element-analysis","Firewall","Fortran","Frameworks and IDE's","GAMESS","Gateways","GATK","Gaussian","GCC","Genomics","GIS","Git","Globus","GPFS","GPU","Gravitational-waves","Gridengine","GROMACS","Hadoop","Hardware","Image-processing","Infiniband","Interactive-mode","Interconnect","IO-Issue","ISILON","Java","Jekyll","Jetstream","Job-accounting","Job-array","Job-charging","Job-failure","Job-sizing","Job-submission","Julia","Jupyterhub","Key-management","Kubernetes","KyRIC","LAMMPS","Library-paths","License","Linear-programming","Linux","LMOD","login","LSF","Lustre","Machine-learning","Management","Materials-science","Mathematica","MATLAB","Memory","Metadata","Modules","Molecular-dynamics","Monte-carlo","MPI","NAMD","NetCDF","Networking","Neural-networks","NFS","NLP","NoMachine","Nvidia","Oceanography","OnDemnad","Open-science-grid","Open-storage-network","OpenCV","Openfoam","OpenMP","OpenMPI","OpenSHIFT","Openstack","Optimization","OS","OSG","Parallelization","Parameter-sweeps","Paraview","Particle-physics","password","PBS","Pegasus","Pending-jobs","Performance-tuning","Permissions","Physiology","PIP","PODMAN","Portals","Pre-emption","Professional and Workforce Development","Professional-development","Profile","Profiling","Programming","Programming Languages","Programming-best-practices","Project-management","Project-renewal","Provisioning","Pthreads","Publication-database","Putty","Python","Pytorch","Quantum-computing","Quantum-mechanics","Quota","R","RDP","React","Reporting","Research-facilitation","Research-grants","Resources","Rstudio-server","S3","Samba","SAS","Scaling","Schedulers","Scheduling","Science DMZ","Science Gateways","Scikit-learn","Scratch","screen","scripting","SDN","Secure Computing and Data","Secure-data-architecture","Serverless-hpc","setup","sftp","SGE","Shell Scripting","Shifter","Singularity","SLURM","SMB","Smrtanalysis","Software Installations","Software-carpentry","SPACK","SPARK","Spectrum-scale","SPSS","SQL","SSH","Stampede2","STATA","Storage","Supplement","Support","TCP","Technical-training-for-hpc","Tensorflow","Terminal-emulation-and-window-management","Tickets","Timing-issue","TMUX","Tools","Training","Transfer SUs","Trinity","Tuning","Unix-environment","Upgrading","Vectorization","Version-control","vim","VNC","VPN","Workflow","Workforce-development","X11","Xalt","XDMoD","XML","XSEDE","I don't see a relevant keyword"],Qp=["ACES","Anvil","Bridges-2","DARWIN","Delta","DeltaAI","Derecho","Expanse","FASTER","Granite","Jetstream2","KyRIC","Launch","Neocortex","Ookami","Open Science Grid","Open Storage Network","Ranch","Stampede3"];function Mp({ticketForm:e,setTicketForm:t,userInfo:n,trackEvent:r}){let o=null;const i=async(A,a=[])=>{o=await or(A,"support",a),o.success?(t(l=>({...l,ticketKey:o.ticketKey,ticketUrl:o.ticketUrl})),r({type:"chatbot_ticket_submitted",ticketType:"general_help",success:!0,ticketKey:o.ticketKey})):(t(l=>({...l,submissionError:o.error})),r({type:"chatbot_ticket_error",ticketType:"general_help",errorType:o.error||"unknown"}))};return{general_help_summary_subject:{message:"Provide a short title for your ticket.",function:A=>{const a=Z();t({...a,summary:A.userInput,email:n.email||a.email,name:n.name||a.name,accessId:n.accessId||a.accessId}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"title"})},path:"general_help_category"},general_help_category:{message:"What type of issue are you experiencing?",options:["User Account Question","Allocation Question","User Support Question","CSSN/CCEP Question","Training Question","Metrics Question","OnDemand Question","Pegasus Question","XDMoD Question","Some Other Question"],function:A=>{const a=Z();t({...a,category:A.userInput}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"category"})},path:"general_help_description"},general_help_description:{message:"Please describe your issue.",function:A=>{const a=Z();t({...a,description:A.userInput}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"description"})},path:"general_help_attachment"},general_help_attachment:{message:"Would you like to attach a file to your ticket?",options:["Yes","No"],function:A=>{const a=Z();t({...a,wantsAttachment:A.userInput}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"attachment_choice"})},path:A=>A.userInput==="Yes"?"general_help_upload":"general_help_resource"},general_help_upload:{message:"Please upload your file.",component:_(nr,{onFileUpload:A=>{t(a=>({...a,uploadedFiles:A})),A.forEach(a=>{r({type:"chatbot_file_uploaded",fileType:a.type||"unknown",fileSize:a.size})})},enableScreenshot:!0,maxSizeMB:10}),options:["Continue"],function:()=>{const A=Z();t({...A,uploadConfirmed:!0}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"file_upload"})},path:"general_help_resource"},general_help_resource:{message:"Does your problem involve an ACCESS Resource?",options:["Yes","No"],function:A=>{const a=Z();t({...a,involvesResource:A.userInput.toLowerCase()}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"resource_choice"})},path:A=>A.userInput==="Yes"?"general_help_resource_details":"general_help_keywords"},general_help_resource_details:{message:"Please select the ACCESS Resource involved with your issue:",options:Qp,function:A=>{const a=Z();t({...a,resourceDetails:A.userInput}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"resource_selection"})},path:"general_help_user_id_at_resource"},general_help_user_id_at_resource:{message:"What is your User ID at the selected resource(s)? (Optional - press Enter to skip)",validateTextInput:_n(),function:A=>{const a=Z();t({...a,userIdAtResource:kn(A.userInput)}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"resource_user_id"})},path:"general_help_keywords"},general_help_keywords:{message:"Please add up to 5 keywords to help route your ticket.",checkboxes:{items:Tp,min:0,max:5},function:A=>{const a=Z();t({...a,keywords:A.userInput}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"keywords"})},path:A=>A.userInput&&A.userInput.includes("I don't see a relevant keyword")?"general_help_additional_keywords":"general_help_priority"},general_help_additional_keywords:{message:"Please enter additional keywords, separated by commas:",function:A=>{const a=Z(),l=a.keywords||[],c=A.userInput,d=(Array.isArray(l)?[...l]:String(l).split(",").map(h=>h.trim())).filter(h=>h!=="I don't see a relevant keyword"),p=d.length>0?[...d,c].join(", "):c;t({...a,keywords:p,suggestedKeyword:c}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"additional_keywords"})},path:"general_help_priority"},general_help_priority:{message:"Please select a priority for your issue:",options:["Lowest","Low","Medium","High","Highest"],function:A=>{const a=Z();t({...a,priority:A.userInput.toLowerCase()}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"priority"})},path:()=>{const A=Qe(n);return A.email?A.name?A.accessId?"general_help_ticket_summary":"general_help_accessid":"general_help_name":"general_help_email"}},general_help_email:{message:"What is your email address?",validateTextInput:ir,function:A=>{const a=Z();t({...a,email:A.userInput}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"email"})},path:()=>{const A=Qe(n);return A.name?A.accessId?"general_help_ticket_summary":"general_help_accessid":"general_help_name"}},general_help_name:{message:"What is your name?",function:A=>{const a=Z();t({...a,name:A.userInput}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"name"})},path:()=>Qe(n).accessId?"general_help_ticket_summary":"general_help_accessid"},general_help_accessid:{message:"What is your ACCESS ID? (Optional - press Enter to skip)",validateTextInput:_n(),function:A=>{const a=Z();t({...a,accessId:kn(A.userInput)}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"access_id"})},path:"general_help_ticket_summary"},general_help_ticket_summary:{message:A=>{const a=Z(),l=Qe(n),c=So(a.uploadedFiles);let u=l.accessId;A.prevPath==="general_help_accessid"&&A.userInput&&(u=A.userInput);let d="";return a.involvesResource==="yes"&&(d=`
88
+ Resource: ${a.resourceDetails||"Not specified"}`,a.userIdAtResource&&(d+=`
89
+ User ID at Resource: ${a.userIdAtResource}`)),`Thank you for providing your issue details. Here's a summary:
90
+
91
+ Name: ${l.name||"Not provided"}
92
+ Email: ${l.email||"Not provided"}
93
+ ACCESS ID: ${u||"Not provided"}
94
+ Issue Summary: ${a.summary||"Not provided"}
95
+ Category: ${a.category||"Not provided"}
96
+ Priority: ${a.priority||"Not provided"}
97
+ Keywords: ${a.keywords||"Not provided"}
98
+ Issue Description: ${a.description||"Not provided"}${d}${c}
99
+
100
+ Would you like to submit this ticket?`},options:["Submit Ticket","Back to Main Menu"],function:async A=>{if(A.userInput==="Submit Ticket"){const a=Z(),l=Qe(n),c={email:l.email||"",summary:a.summary||"General Support Ticket",description:a.description||"",priority:a.priority||"medium",accessId:l.accessId||"",name:l.name||"",issueType:a.category||"",hasResourceProblem:a.involvesResource==="yes"?"Yes":"No",userIdAtResource:a.userIdAtResource||"",resourceName:a.resourceDetails||"",keywords:a.keywords||"",noRelevantKeyword:a.suggestedKeyword?"checked":"",suggestedKeyword:a.suggestedKeyword||""};await i(c,a.uploadedFiles||[])}},path:A=>A.userInput==="Submit Ticket"?"general_help_success":"start"},general_help_success:{message:rr(()=>Bo(o,"support ticket")),options:["Back to Main Menu"],renderHtml:["BOT"],path:"start"}}}const Op={"Logging into ACCESS website":"access_login","Logging into a resource":"resource_login","Another question":"general_help"};function Np({ticketForm:e,setTicketForm:t,userInfo:n,trackEvent:r}){const o=Bp({ticketForm:e,setTicketForm:t,userInfo:n,trackEvent:r}),i=Ip({ticketForm:e,setTicketForm:t,userInfo:n,trackEvent:r}),s=Mp({ticketForm:e,setTicketForm:t,userInfo:n,trackEvent:r});return{help_ticket:{message:"What is your help ticket related to?",options:["Logging into ACCESS website","Logging into a resource","Another question"],function:A=>{t(a=>({...a,ticketType:A.userInput})),r({type:"chatbot_ticket_started",ticketType:Op[A.userInput]||A.userInput})},path:A=>A.userInput==="Logging into ACCESS website"?"access_help":A.userInput==="Logging into a resource"?"resource_help":A.userInput==="Another question"?"general_help_summary_subject":"help_ticket"},...o,...i,...s}}function Ut(e){const t=Z();return{...t,email:e.email||t.email,name:e.name||t.name,accessId:e.accessId||t.accessId}}function Lp(e){return e?e.success?e.ticketUrl&&e.ticketKey?`Your security incident report has been submitted successfully.
101
+
102
+ Ticket: <a href="${e.ticketUrl}" target="_blank">${e.ticketKey}</a>
103
+
104
+ Our cybersecurity team will review your report and respond accordingly. Thank you for helping keep ACCESS secure.`:`Your security incident report has been submitted successfully.
105
+
106
+ Our cybersecurity team will review your report and respond accordingly. Thank you for helping keep ACCESS secure.`:`We apologize, but there was an error submitting your security incident report: ${e.error}
107
+
108
+ Please try again or contact our cybersecurity team directly.`:`We apologize, but there was an error submitting your security incident report.
109
+
110
+ Please try again or contact our cybersecurity team directly.`}function Rp({ticketForm:e,setTicketForm:t,userInfo:n,trackEvent:r}){let o=null,i=null;const s=async(a,l=[],c)=>{i=await or(a,"security",l),i.success?(t(u=>({...u,ticketKey:i.ticketKey,ticketUrl:i.ticketUrl})),r({type:"chatbot_security_submitted",success:!0,priority:c||"unknown",ticketKey:i.ticketKey})):(t(u=>({...u,submissionError:i.error})),r({type:"chatbot_ticket_error",ticketType:"security",errorType:i.error||"unknown"}))};return{security_incident:{message:"You're reporting a security incident. Please provide a brief summary of the security concern.",function:a=>{const l=Z();t({...l,summary:a.userInput,email:n.email||l.email,name:n.name||l.name,accessId:n.accessId||l.accessId}),r({type:"chatbot_ticket_step",ticketType:"security",step:"summary"})},path:"security_priority"},security_priority:{message:"What is the priority level of this security incident?",options:["Critical","High","Medium","Low"],function:a=>{const l=Z();t({...l,priority:a.userInput.toLowerCase()}),r({type:"chatbot_ticket_step",ticketType:"security",step:"priority"})},path:"security_description"},security_description:{message:"Please provide a detailed description of the security incident or concern.",function:a=>{const l=Z();t({...l,description:a.userInput}),r({type:"chatbot_ticket_step",ticketType:"security",step:"description"})},path:"security_attachment"},security_attachment:{message:"Do you have any files (screenshots, logs, etc.) that would help with this security incident?",options:["Yes","No"],function:a=>{const l=Z();t({...l,wantsAttachment:a.userInput}),r({type:"chatbot_ticket_step",ticketType:"security",step:"attachment_choice"})},path:a=>a.userInput==="Yes"?"security_upload":"security_contact_check"},security_upload:{message:"Please upload your files.",component:_(nr,{onFileUpload:a=>{t(l=>({...l,uploadedFiles:a})),a.forEach(l=>{r({type:"chatbot_file_uploaded",fileType:l.type||"unknown",fileSize:l.size})})},enableScreenshot:!0,maxSizeMB:10}),options:["Continue"],function:()=>{const a=Z();t({...a,uploadConfirmed:!0}),r({type:"chatbot_ticket_step",ticketType:"security",step:"file_upload"})},path:"security_contact_check"},security_contact_check:{message:()=>{const a=Ut(n);return a.name&&a.email&&a.accessId?`I have your contact information:
111
+
112
+ Name: ${a.name}
113
+ Email: ${a.email}
114
+ ACCESS ID: ${a.accessId}
115
+
116
+ Is this correct?`:"I need your contact information."},options:()=>{const a=Ut(n);return a.name&&a.email&&a.accessId?["Yes, that's correct","Let me update it"]:[]},chatDisabled:()=>{const a=Ut(n);return!!(a.name&&a.email&&a.accessId)},path:a=>a.userInput==="Yes, that's correct"?"security_summary":a.userInput==="Let me update it"?"security_name":"security_email"},security_email:{message:"What is your email address?",validateTextInput:ir,function:a=>{const l=Z();t({...l,email:a.userInput}),r({type:"chatbot_ticket_step",ticketType:"security",step:"email"})},path:()=>{const a=Ut(n);return a.name?a.accessId?"security_summary":"security_accessid":"security_name"}},security_name:{message:"What is your name?",function:a=>{const l=Z();t({...l,name:a.userInput}),r({type:"chatbot_ticket_step",ticketType:"security",step:"name"})},path:()=>{const a=Ut(n);return a.email?a.accessId?"security_summary":"security_accessid":"security_email"}},security_accessid:{message:"What is your ACCESS ID? (Optional - press Enter to skip)",validateTextInput:_n(),function:a=>{const l=kn(a.userInput);o=l;const c=Z();t({...c,accessId:l}),r({type:"chatbot_ticket_step",ticketType:"security",step:"access_id"})},path:"security_summary"},security_summary:{message:()=>{const a=Z(),l=Ut(n),c={...a,name:l.name||a.name,email:l.email||a.email,accessId:o||l.accessId||a.accessId};let u="";a.uploadedFiles&&a.uploadedFiles.length>0&&(u=`
117
+ Attachments: ${a.uploadedFiles.length} file(s) attached`);const d=c.accessId||"Not provided";return`Here's a summary of your security incident report:
118
+
119
+ Summary: ${c.summary||"Not provided"}
120
+ Priority: ${c.priority||"Not provided"}
121
+ Name: ${c.name||"Not provided"}
122
+ Email: ${c.email||"Not provided"}
123
+ ACCESS ID: ${d}
124
+ Description: ${c.description||"Not provided"}${u}
125
+
126
+ Would you like to submit this security incident report?`},options:["Submit Security Report","Back to Main Menu"],function:async a=>{if(a.userInput==="Submit Security Report"){const l=Z(),c=Ut(n),u={...l,name:c.name||l.name,email:c.email||l.email,accessId:o||c.accessId||l.accessId},d={summary:u.summary||"",priority:u.priority||"",description:u.description||"",name:u.name||"",email:u.email||"",accessId:u.accessId||""};await s(d,l.uploadedFiles||[],u.priority)}},path:a=>a.userInput==="Submit Security Report"?"security_success":"start"},security_success:{message:rr(()=>Lp(i)),options:["Back to Main Menu"],renderHtml:["BOT"],path:"start"}}}const Me=[];for(let e=0;e<256;++e)Me.push((e+256).toString(16).slice(1));function Hp(e,t=0){return(Me[e[t+0]]+Me[e[t+1]]+Me[e[t+2]]+Me[e[t+3]]+"-"+Me[e[t+4]]+Me[e[t+5]]+"-"+Me[e[t+6]]+Me[e[t+7]]+"-"+Me[e[t+8]]+Me[e[t+9]]+"-"+Me[e[t+10]]+Me[e[t+11]]+Me[e[t+12]]+Me[e[t+13]]+Me[e[t+14]]+Me[e[t+15]]).toLowerCase()}let Io;const Up=new Uint8Array(16);function Fp(){if(!Io){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Io=crypto.getRandomValues.bind(crypto)}return Io(Up)}const lA={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function To(e,t,n){var o;if(lA.randomUUID&&!e)return lA.randomUUID();e=e||{};const r=e.random??((o=e.rng)==null?void 0:o.call(e))??Fp();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Hp(r)}function Kp(e){return e}function zp({sessionId:e,apiKey:t,trackEvent:n}){let r=null;return{metrics_intro:{message:`Please type your question about usage and performance metrics (XDMoD) below. You can see some <a target="_blank" href="${ht.METRICS_QUESTIONS_URL}">examples here</a>.
127
+
128
+ <em>This assistant is powered by AI. Responses may not always be accurate. Do not share passwords or secrets.</em> <a href="https://support.access-ci.org/tools/access-qa-tool/privacy">Privacy Notice</a>`,renderHtml:["BOT"],path:"metrics_loop"},metrics_loop:{message:async o=>{const{userInput:i}=o;if(i==="👍 Helpful"||i==="👎 Not helpful"){if(t&&e&&r){const A={"Content-Type":"application/json","X-Origin":"metrics","X-API-KEY":t,"X-Session-ID":e,"X-Query-ID":r,"X-Feedback":i==="👍 Helpful"?"1":"0"};try{await fetch(ht.METRICS_RATING_ENDPOINT,{method:"POST",headers:A})}catch(a){console.error("Error sending metrics feedback:",a)}}return"Thanks for the feedback! Ask another question about usage and performance metrics (XDMoD) or start a new chat."}else try{const s=To();r=s,n({type:"chatbot_metrics_question_sent",queryId:s});const A={"Content-Type":"application/json","X-Origin":"metrics","X-API-KEY":t,"X-Session-ID":e,"X-Query-ID":s},c=(await(await fetch(ht.METRICS_API_ENDPOINT,{method:"POST",headers:A,body:JSON.stringify({query:i})})).json()).response,u=c;return await o.injectMessage(u),setTimeout(async()=>{await o.injectMessage("Ask another question about usage and performance metrics (XDMoD) or start a new chat.")},100),null}catch(s){return console.error("Error in metrics flow:",s),"I'm sorry, there was an error processing your question. Please try again."}},renderMarkdown:["BOT"],options:o=>o.userInput==="👍 Helpful"||o.userInput==="👎 Not helpful"?[]:["👍 Helpful","👎 Not helpful"],chatDisabled:!1,path:"metrics_loop"}}}function jp(){if(typeof window>"u")return To();let e=localStorage.getItem(AA.SESSION_ID);return e||(e=To(),localStorage.setItem(AA.SESSION_ID,e)),e}const cA="access-qa-bot-shadow-overrides",qp=`
129
+ .rcb-checkbox-container {
130
+ display: flex !important;
131
+ flex-wrap: wrap !important;
132
+ gap: 8px !important;
133
+ margin-left: 16px !important;
134
+ padding-top: 12px !important;
135
+ max-width: 100% !important;
136
+ }
137
+
138
+ .rcb-checkbox-row-container {
139
+ display: flex !important;
140
+ align-items: center !important;
141
+ background-color: #ffffff !important;
142
+ border: 1px solid #d0d0d0 !important;
143
+ border-radius: 6px !important;
144
+ cursor: pointer !important;
145
+ padding: 8px 12px !important;
146
+ margin: 0 !important;
147
+ min-height: auto !important;
148
+ max-height: auto !important;
149
+ width: auto !important;
150
+ flex: 0 0 auto !important;
151
+ transition: all 0.2s ease !important;
152
+ font-size: 14px !important;
153
+ font-weight: 400 !important;
154
+ color: var(--primaryColor, #107180) !important;
155
+ text-align: center !important;
156
+ box-sizing: border-box !important;
157
+ }
158
+
159
+ .rcb-checkbox-row-container:hover {
160
+ background-color: #e8f4f8 !important;
161
+ border-color: var(--primaryColor, #107180) !important;
162
+ transform: translateY(-1px) !important;
163
+ box-shadow: 0 2px 4px rgba(16, 113, 128, 0.2) !important;
164
+ }
165
+
166
+ .rcb-checkbox-row-container[data-checked="true"] {
167
+ background-color: var(--primaryColor, #107180) !important;
168
+ border-color: var(--primaryColor, #107180) !important;
169
+ color: white !important;
170
+ }
171
+
172
+ .rcb-checkbox-row {
173
+ margin-left: 0px !important;
174
+ }
175
+
176
+ .rcb-checkbox-mark {
177
+ width: 14px !important;
178
+ height: 14px !important;
179
+ margin-right: 6px !important;
180
+ }
181
+
182
+ .rcb-checkbox-label {
183
+ font-size: 13px !important;
184
+ margin: 0 !important;
185
+ white-space: nowrap !important;
186
+ }
187
+
188
+ .rcb-checkbox-next-button {
189
+ background-color: #ffffff !important;
190
+ border: 1px solid #d0d0d0 !important;
191
+ border-radius: 6px !important;
192
+ cursor: pointer !important;
193
+ padding: 8px 12px !important;
194
+ margin: 0 !important;
195
+ min-height: auto !important;
196
+ max-height: auto !important;
197
+ width: auto !important;
198
+ flex: 0 0 auto !important;
199
+ transition: all 0.2s ease !important;
200
+ font-size: 14px !important;
201
+ font-weight: 400 !important;
202
+ color: var(--secondaryColor, #107180) !important;
203
+ text-align: center !important;
204
+ box-sizing: border-box !important;
205
+ }
206
+
207
+ .rcb-checkbox-next-button:hover {
208
+ background-color: #e8f4f8 !important;
209
+ border-color: var(--secondaryColor, #107180) !important;
210
+ transform: translateY(-1px) !important;
211
+ box-shadow: 0 2px 4px rgba(16, 113, 128, 0.2) !important;
212
+ }
213
+
214
+ .rcb-options-container {
215
+ display: flex !important;
216
+ flex-direction: row !important;
217
+ flex-wrap: wrap !important;
218
+ gap: 8px !important;
219
+ margin: 16px 16px !important;
220
+ padding: 0 !important;
221
+ }
222
+
223
+ .rcb-options {
224
+ border: 1px solid #d0d0d0 !important;
225
+ outline: none !important;
226
+ background-color: #ffffff !important;
227
+ border-radius: 6px !important;
228
+ padding: 8px 12px !important;
229
+ cursor: pointer !important;
230
+ transition: all 0.2s ease !important;
231
+ text-align: center !important;
232
+ font-size: 14px !important;
233
+ font-weight: 400 !important;
234
+ color: var(--secondaryColor, #107180) !important;
235
+ width: auto !important;
236
+ flex: 0 0 auto !important;
237
+ box-sizing: border-box !important;
238
+ }
239
+
240
+ .rcb-options:hover {
241
+ background-color: #e8f4f8 !important;
242
+ border-color: var(--secondaryColor, #107180) !important;
243
+ transform: translateY(-1px) !important;
244
+ box-shadow: 0 2px 4px rgba(16, 113, 128, 0.2) !important;
245
+ }
246
+
247
+ .rcb-options:active {
248
+ background-color: var(--secondaryColor, #107180) !important;
249
+ border-color: var(--secondaryColor, #107180) !important;
250
+ color: white !important;
251
+ transform: translateY(0) !important;
252
+ }
253
+
254
+ .rcb-bot-message a,
255
+ .rcb-chat-window .rcb-bot-message a:link,
256
+ .rcb-chat-window .rcb-bot-message a:visited {
257
+ color: #ffffff !important;
258
+ text-decoration: underline !important;
259
+ }
260
+
261
+ .rcb-bot-message a:hover {
262
+ opacity: 0.85;
263
+ text-decoration: underline !important;
264
+ }
265
+ `;function Wp(e){if(!e)return;const t=e.getRootNode();if(!(t instanceof ShadowRoot)||t.getElementById(cA))return;const n=document.createElement("style");n.id=cA,n.textContent=qp,t.appendChild(n)}const uA=Re((e,t)=>{const{apiKey:n=ht.DEFAULT_API_KEY,isLoggedIn:r=!1,loginUrl:o=Ht.LOGIN_URL,userEmail:i,userName:s,accessId:A,actingUser:a,ringEffect:l,defaultOpen:c,onClose:u,open:d,onOpenChange:p,embedded:h=!1,welcome:m,qaEndpoint:f,ratingEndpoint:b,agentEndpoint:y,onAnalyticsEvent:g}=e,x=oe(null),k=oe(null),[E,C]=ee({}),[I,D]=ee(null),P=_e(()=>({email:i,name:s,accessId:A}),[i,s,A]);J(()=>{Wp(k.current)},[]),J(()=>{Cp({ticketForm:E,setTicketForm:C})},[E]);const S=y||ht.AGENT_ENDPOINT,B=`${S}/capabilities`,L=`${S}/rating`;J(()=>{S.includes("localhost")&&!window.location.hostname.includes("localhost")&&console.warn("[AccessQABot] VITE_AGENT_ENDPOINT not set — agent requests will go to localhost. Set VITE_AGENT_ENDPOINT in your environment.")},[S]),J(()=>{let v=!1;async function q(){try{const w=await fetch(B,{credentials:"include"});if(!w.ok)throw new Error(`Capabilities API returned ${w.status}`);const W=await w.json();v||D(W)}catch(w){console.warn("Failed to fetch capabilities:",w),v||D({categories:[],is_authenticated:!1})}}return q(),()=>{v=!0}},[B,r]),J(()=>{if(!r)return;let v=!1;const q=`${S}/capabilities/personalized`;async function w(){try{const W=await fetch(q,{credentials:"include"});if(!W.ok)return;const re=await W.json();v||console.debug("Personalized context loaded:",re)}catch{}}return w(),()=>{v=!0}},[S,r]),In(t,()=>({addMessage:v=>{var q,w;(w=(q=x.current)==null?void 0:q.addMessage)==null||w.call(q,v)}}));const R=m||Ht.WELCOME_MESSAGE,Q=_e(()=>jp(),[]),z=G(v=>{g&&g({...v,type:v.type,timestamp:v.timestamp??Date.now(),sessionId:v.sessionId??Q})},[g,Q]),N=G(v=>{g&&g({...v,type:v.type,timestamp:typeof v.timestamp=="number"?v.timestamp:Date.now(),sessionId:typeof v.sessionId=="string"?v.sessionId:Q})},[g,Q]),H=_e(()=>{const v=Pp({welcome:R,trackEvent:z,capabilities:I}),q=Np({ticketForm:{},setTicketForm:C,userInfo:P,trackEvent:z}),w=Rp({ticketForm:{},setTicketForm:C,userInfo:P,trackEvent:z}),W=zp({sessionId:Q,apiKey:n,trackEvent:z}),re={...v,...q,...w,...W};return Ep(re,{disableOnOptions:!0})},[R,P,Q,n,r,z,I]);return I?_("div",{ref:k,children:_(Co,{ref:x,isLoggedIn:r,allowAnonAccess:ht.ALLOW_ANON_ACCESS,actingUser:a,onAnalyticsEvent:N,apiKey:n,qaEndpoint:f||ht.QA_ENDPOINT,ratingEndpoint:b||ht.RATING_ENDPOINT,capabilitiesEndpoint:B,agentRatingEndpoint:L,botName:Ht.BOT_NAME,logo:Ht.LOGO,primaryColor:Ht.PRIMARY_COLOR,secondaryColor:Ht.SECONDARY_COLOR,welcomeMessage:R,tooltipText:Ht.TOOLTIP,turnstileSiteKey:ht.TURNSTILE_SITE_KEY,loginUrl:o,open:d,onOpenChange:p,embedded:h,footerText:"AI-powered · Privacy Notice",footerLink:"https://support.access-ci.org/tools/access-qa-tool/privacy",customFlow:H})}):_("div",{ref:k})});uA.displayName="AccessQABot";function Qo(e){const{target:t,...n}=e;if(!t)throw new Error("qaBot: target element is required");const r=zo();let o=n.isLoggedIn||!1,i=n.open!==void 0?n.open:n.defaultOpen||!1;const s=XA(t),A=()=>{s.render(_(uA,{ref:r,...n,isLoggedIn:o,open:i,onOpenChange:a=>{var l;i=a,(l=n.onOpenChange)==null||l.call(n,a)}}))};return A(),{addMessage(a){var l;(l=r.current)==null||l.addMessage(a)},setBotIsLoggedIn(a){o=a,A()},openChat(){i=!0,A()},closeChat(){i=!1,A()},toggleChat(){i=!i,A()},destroy(){s.unmount()}}}return typeof window<"u"&&(window.qaBot=Qo),Dn.default=Qo,Dn.qaBot=Qo,Object.defineProperties(Dn,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),Dn}({});
266
+ //# sourceMappingURL=access-qa-bot.standalone.js.map