@snf/access-qa-bot 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/access-qa-bot.js +331 -327
- package/dist/access-qa-bot.js.map +1 -1
- package/dist/access-qa-bot.standalone.js +17 -17
- package/dist/access-qa-bot.standalone.js.map +1 -1
- package/dist/access-qa-bot.umd.cjs +31 -31
- package/dist/access-qa-bot.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
var AccessQABot=function(mn){"use strict";var Gt,G,wo,gt,xo,Eo,Po,ko,Vn,Kn,$n,Co,qt={},_o=[],zA=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Yt=Array.isArray;function Ye(e,t){for(var n in t)e[n]=t[n];return e}function Jn(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function re(e,t,n){var r,o,i,a={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?Gt.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return Xt(e,a,r,o,null)}function Xt(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??++wo,__i:-1,__u:0};return o==null&&G.vnode!=null&&G.vnode(i),i}function Do(){return{current:null}}function oe(e){return e.children}function Xe(e,t){this.props=e,this.context=t}function _t(e,t){if(t==null)return e.__?_t(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"?_t(e):null}function Bo(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 Bo(e)}}function Zn(e){(!e.__d&&(e.__d=!0)&>.push(e)&&!vn.__r++||xo!=G.debounceRendering)&&((xo=G.debounceRendering)||Eo)(vn)}function vn(){for(var e,t,n,r,o,i,a,A=1;gt.length;)gt.length>A&>.sort(Po),e=gt.shift(),A=gt.length,e.__d&&(n=void 0,r=void 0,o=(r=(t=e).__v).__e,i=[],a=[],t.__P&&((n=Ye({},r)).__v=r.__v+1,G.vnode&&G.vnode(n),er(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:null,i,o??_t(r),!!(32&r.__u),a),n.__v=r.__v,n.__.__k[n.__i]=n,Mo(i,n,a),r.__e=r.__=null,n.__e!=o&&Bo(n)));vn.__r=0}function So(e,t,n,r,o,i,a,A,s,l,c){var u,d,p,f,y,h,w,v=r&&r.__k||_o,g=t.length;for(s=jA(n,t,v,s,g),u=0;u<g;u++)(p=n.__k[u])!=null&&(d=p.__i==-1?qt:v[p.__i]||qt,p.__i=u,h=er(e,p,d,o,i,a,A,s,l,c),f=p.__e,p.ref&&d.ref!=p.ref&&(d.ref&&nr(d.ref,null,p),c.push(p.ref,p.__c||f,p)),y==null&&f!=null&&(y=f),(w=!!(4&p.__u))||d.__k===p.__k?s=Io(p,s,e,w):typeof p.type=="function"&&h!==void 0?s=h:f&&(s=f.nextSibling),p.__u&=-7);return n.__e=y,s}function jA(e,t,n,r,o){var i,a,A,s,l,c=n.length,u=c,d=0;for(e.__k=new Array(o),i=0;i<o;i++)(a=t[i])!=null&&typeof a!="boolean"&&typeof a!="function"?(s=i+d,(a=e.__k[i]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?Xt(null,a,null,null,null):Yt(a)?Xt(oe,{children:a},null,null,null):a.constructor==null&&a.__b>0?Xt(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,A=null,(l=a.__i=WA(a,n,s,u))!=-1&&(u--,(A=n[l])&&(A.__u|=2)),A==null||A.__v==null?(l==-1&&(o>c?d--:o<c&&d++),typeof a.type!="function"&&(a.__u|=4)):l!=s&&(l==s-1?d--:l==s+1?d++:(l>s?d--:d++,a.__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=_t(A)),No(A,A));return r}function Io(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=Io(o[i],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=_t(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function rt(e,t){return t=t||[],e==null||typeof e=="boolean"||(Yt(e)?e.some(function(n){rt(n,t)}):t.push(e)),t}function WA(e,t,n,r){var o,i,a,A=e.key,s=e.type,l=t[n],c=l!=null&&(2&l.__u)==0;if(l===null&&e.key==null||c&&A==l.key&&s==l.type)return n;if(r>(c?1:0)){for(o=n-1,i=n+1;o>=0||i<t.length;)if((l=t[a=o>=0?o--:i++])!=null&&!(2&l.__u)&&A==l.key&&s==l.type)return a}return-1}function To(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||zA.test(t)?n:n+"px"}function yn(e,t,n,r,o){var i,a;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||To(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||To(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(ko,"$1")),a=t.toLowerCase(),t=a in e||t=="onFocusOut"||t=="onFocusIn"?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Vn,e.addEventListener(t,i?$n:Kn,i)):e.removeEventListener(t,i?$n:Kn,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 Qo(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Vn++;else if(t.t<n.u)return;return n(G.event?G.event(t):t)}}}function er(e,t,n,r,o,i,a,A,s,l){var c,u,d,p,f,y,h,w,v,g,x,C,E,_,I,D,k,S=t.type;if(t.constructor!=null)return null;128&n.__u&&(s=!!(32&n.__u),i=[A=t.__e=n.__e]),(c=G.__b)&&c(t);e:if(typeof S=="function")try{if(w=t.props,v="prototype"in S&&S.prototype.render,g=(c=S.contextType)&&r[c.__c],x=c?g?g.props.value:c.__:r,n.__c?h=(u=t.__c=n.__c).__=u.__E:(v?t.__c=u=new S(w,x):(t.__c=u=new Xe(w,x),u.constructor=S,u.render=qA),g&&g.sub(u),u.props=w,u.state||(u.state={}),u.context=x,u.__n=r,d=u.__d=!0,u.__h=[],u._sb=[]),v&&u.__s==null&&(u.__s=u.state),v&&S.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Ye({},u.__s)),Ye(u.__s,S.getDerivedStateFromProps(w,u.__s))),p=u.props,f=u.state,u.__v=t,d)v&&S.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),v&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(v&&S.getDerivedStateFromProps==null&&w!==p&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(w,x),!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(w,u.__s,x)===!1||t.__v==n.__v){for(t.__v!=n.__v&&(u.props=w,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(B){B&&(B.__=t)}),C=0;C<u._sb.length;C++)u.__h.push(u._sb[C]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(w,u.__s,x),v&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(p,f,y)})}if(u.context=x,u.props=w,u.__P=e,u.__e=!1,E=G.__r,_=0,v){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&&++_<25);u.state=u.__s,u.getChildContext!=null&&(r=Ye(Ye({},r),u.getChildContext())),v&&!d&&u.getSnapshotBeforeUpdate!=null&&(y=u.getSnapshotBeforeUpdate(p,f)),D=c,c!=null&&c.type===oe&&c.key==null&&(D=Oo(c.props.children)),A=So(e,Yt(D)?D:[D],t,n,r,o,i,a,A,s,l),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),h&&(u.__E=u.__=null)}catch(B){if(t.__v=null,s||i!=null)if(B.then){for(t.__u|=s?160:128;A&&A.nodeType==8&&A.nextSibling;)A=A.nextSibling;i[i.indexOf(A)]=null,t.__e=A}else{for(k=i.length;k--;)Jn(i[k]);tr(t)}else t.__e=n.__e,t.__k=n.__k,B.then||tr(t);G.__e(B,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):A=t.__e=GA(n.__e,t,n,r,o,i,a,s,l);return(c=G.diffed)&&c(t),128&t.__u?void 0:A}function tr(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(tr)}function Mo(e,t,n){for(var r=0;r<n.length;r++)nr(n[r],n[++r],n[++r]);G.__c&&G.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){G.__e(i,o.__v)}})}function Oo(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Yt(e)?e.map(Oo):Ye({},e)}function GA(e,t,n,r,o,i,a,A,s){var l,c,u,d,p,f,y,h=n.props,w=t.props,v=t.type;if(v=="svg"?o="http://www.w3.org/2000/svg":v=="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==!!v&&(v?p.localName==v:p.nodeType==3)){e=p,i[l]=null;break}}if(e==null){if(v==null)return document.createTextNode(w);e=document.createElementNS(o,v,w.is&&w),A&&(G.__m&&G.__m(t,i),A=!1),i=null}if(v==null)h===w||A&&e.data==w||(e.data=w);else{if(i=i&&Gt.call(e.childNodes),h=n.props||qt,!A&&i!=null)for(h={},l=0;l<e.attributes.length;l++)h[(p=e.attributes[l]).name]=p.value;for(l in h)if(p=h[l],l!="children"){if(l=="dangerouslySetInnerHTML")u=p;else if(!(l in w)){if(l=="value"&&"defaultValue"in w||l=="checked"&&"defaultChecked"in w)continue;yn(e,l,null,p,o)}}for(l in w)p=w[l],l=="children"?d=p:l=="dangerouslySetInnerHTML"?c=p:l=="value"?f=p:l=="checked"?y=p:A&&typeof p!="function"||h[l]===p||yn(e,l,p,h[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=""),So(t.type=="template"?e.content:e,Yt(d)?d:[d],t,n,r,v=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:n.__k&&_t(n,0),A,s),i!=null)for(l=i.length;l--;)Jn(i[l]);A||(l="value",v=="progress"&&f==null?e.removeAttribute("value"):f!=null&&(f!==e[l]||v=="progress"&&!f||v=="option"&&f!=h[l])&&yn(e,l,f,h[l],o),l="checked",y!=null&&y!=e[l]&&yn(e,l,y,h[l],o))}return e}function nr(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){G.__e(o,n)}}function No(e,t,n){var r,o;if(G.unmount&&G.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||nr(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){G.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&No(r[o],t,n||typeof e.type!="function");n||Jn(e.__e),e.__c=e.__=e.__e=void 0}function qA(e,t,n){return this.constructor(e,n)}function Vt(e,t,n){var r,o,i,a;t==document&&(t=document.documentElement),G.__&&G.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],a=[],er(t,e=(!r&&n||t).__k=re(oe,null,[e]),o||qt,qt,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?Gt.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),Mo(i,e,a)}function Lo(e,t){Vt(e,t,Lo)}function YA(e,t,n){var r,o,i,a,A=Ye({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:A[i]=t[i]===void 0&&a!=null?a[i]:t[i];return arguments.length>2&&(A.children=arguments.length>3?Gt.call(arguments,2):n),Xt(e.type,A,r||e.key,o||e.ref,null)}function Ve(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(a){a.__e=!0,Zn(a)})},this.sub=function(i){r.add(i);var a=i.componentWillUnmount;i.componentWillUnmount=function(){r&&r.delete(i),a&&a.call(i)}}),n.children}return t.__c="__cC"+Co++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}Gt=_o.slice,G={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(A){e=A}throw e}},wo=0,Xe.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Ye({},this.state),typeof e=="function"&&(e=e(Ye({},n),this.props)),e&&Ye(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Zn(this))},Xe.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Zn(this))},Xe.prototype.render=oe,gt=[],Eo=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Po=function(e,t){return e.__v.__b-t.__v.__b},vn.__r=0,ko=/(PointerCapture)$|Capture$/i,Vn=0,Kn=Qo(!1),$n=Qo(!0),Co=0;var at,pe,rr,Ro,Dt=0,Ho=[],he=G,Uo=he.__b,Fo=he.__r,zo=he.diffed,jo=he.__c,Wo=he.unmount,Go=he.__;function Bt(e,t){he.__h&&he.__h(pe,e,Dt||t),Dt=0;var n=pe.__H||(pe.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ee(e){return Dt=1,or(Vo,e)}function or(e,t,n){var r=Bt(at++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Vo(void 0,t),function(A){var s=r.__N?r.__N[0]:r.__[0],l=r.t(s,A);s!==l&&(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=pe,!pe.__f)){var o=function(A,s,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,s,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,s,l)||u};pe.__f=!0;var i=pe.shouldComponentUpdate,a=pe.componentWillUpdate;pe.componentWillUpdate=function(A,s,l){if(this.__e){var c=i;i=void 0,o(A,s,l),i=c}a&&a.call(this,A,s,l)},pe.shouldComponentUpdate=o}return r.__N||r.__}function te(e,t){var n=Bt(at++,3);!he.__s&&ar(n.__H,t)&&(n.__=e,n.u=t,pe.__H.__h.push(n))}function Kt(e,t){var n=Bt(at++,4);!he.__s&&ar(n.__H,t)&&(n.__=e,n.u=t,pe.__h.push(n))}function ie(e){return Dt=5,ve(function(){return{current:e}},[])}function bn(e,t,n){Dt=6,Kt(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 ve(e,t){var n=Bt(at++,7);return ar(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function q(e,t){return Dt=8,ve(function(){return e},t)}function We(e){var t=pe.context[e.__c],n=Bt(at++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(pe)),t.props.value):e.__}function qo(e,t){he.useDebugValue&&he.useDebugValue(t?t(e):e)}function Yo(){var e=Bt(at++,11);if(!e.__){for(var t=pe.__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 XA(){for(var e;e=Ho.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(wn),e.__H.__h.forEach(ir),e.__H.__h=[]}catch(t){e.__H.__h=[],he.__e(t,e.__v)}}he.__b=function(e){pe=null,Uo&&Uo(e)},he.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Go&&Go(e,t)},he.__r=function(e){Fo&&Fo(e),at=0;var t=(pe=e.__c).__H;t&&(rr===pe?(t.__h=[],pe.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(wn),t.__h.forEach(ir),t.__h=[],at=0)),rr=pe},he.diffed=function(e){zo&&zo(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ho.push(t)!==1&&Ro===he.requestAnimationFrame||((Ro=he.requestAnimationFrame)||VA)(XA)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),rr=pe=null},he.__c=function(e,t){t.some(function(n){try{n.__h.forEach(wn),n.__h=n.__h.filter(function(r){return!r.__||ir(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],he.__e(r,n.__v)}}),jo&&jo(e,t)},he.unmount=function(e){Wo&&Wo(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{wn(r)}catch(o){t=o}}),n.__H=void 0,t&&he.__e(t,n.__v))};var Xo=typeof requestAnimationFrame=="function";function VA(e){var t,n=function(){clearTimeout(r),Xo&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);Xo&&(t=requestAnimationFrame(n))}function wn(e){var t=pe,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),pe=t}function ir(e){var t=pe;e.__c=e.__(),pe=t}function ar(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Vo(e,t){return typeof t=="function"?t(e):t}function Ko(e,t){for(var n in t)e[n]=t[n];return e}function Ar(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 $o(e,t){var n=t(),r=ee({t:{__:n,u:t}}),o=r[0].t,i=r[1];return Kt(function(){o.__=n,o.u=t,sr(o)&&i({t:o})},[e,n,t]),te(function(){return sr(o)&&i({t:o}),e(function(){sr(o)&&i({t:o})})},[e]),n}function sr(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 Jo(e){e()}function Zo(e){return e}function ei(){return[!1,Jo]}var ti=Kt;function lr(e,t){this.props=e,this.context=t}function KA(e,t){function n(o){var i=this.props.ref,a=i==o.ref;return!a&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!a:Ar(this.props,o)}function r(o){return this.shouldComponentUpdate=n,re(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r.type=e,r}(lr.prototype=new Xe).isPureReactComponent=!0,lr.prototype.shouldComponentUpdate=function(e,t){return Ar(this.props,e)||Ar(this.state,t)};var ni=G.__b;G.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ni&&ni(e)};var $A=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function _e(e){function t(n){var r=Ko({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=$A,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ri=function(e,t){return e==null?null:rt(rt(e).map(t))},JA={map:ri,forEach:ri,count:function(e){return e?rt(e).length:0},only:function(e){var t=rt(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:rt},ZA=G.__e;G.__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)}ZA(e,t,n,r)};var oi=G.unmount;function ii(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=Ko({},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 ii(r,t,n)})),e}function ai(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return ai(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 xn(){this.__u=0,this.o=null,this.__b=null}function Ai(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function es(e){var t,n,r;function o(i){if(t||(t=e()).then(function(a){n=a.default||a},function(a){r=a}),r)throw r;if(!n)throw t;return re(n,i)}return o.displayName="Lazy",o.__f=!0,o}function $t(){this.i=null,this.l=null}G.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),oi&&oi(e)},(xn.prototype=new Xe).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=Ai(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(A):A())};n.__R=a;var A=function(){if(!--r.__u){if(r.state.__a){var s=r.state.__a;r.__v.__k[0]=ai(s,s.__c.__P,s.__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(a,a)},xn.prototype.componentWillUnmount=function(){this.o=[]},xn.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]=ii(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&re(oe,null,e.fallback);return o&&(o.__u&=-33),[re(oe,null,t.__a?null:e.children),o]};var si=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 ts(e){return this.getChildContext=function(){return e.context},e.children}function ns(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){Vt(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)}}}Vt(re(ts,{context:t.context},e.__v),t.v)}function rs(e,t){var n=re(ns,{__v:e,h:t});return n.containerInfo=t,n}($t.prototype=new Xe).__a=function(e){var t=this,n=Ai(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),si(t,e,r)):o()};n?n(i):i()}},$t.prototype.render=function(e){this.i=null,this.l=new Map;var t=rt(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},$t.prototype.componentDidUpdate=$t.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){si(e,n,t)})};var li=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,os=/^(?: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]/,is=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,as=/[A-Z0-9]/g,As=typeof document<"u",ss=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function ci(e,t,n){return t.__k==null&&(t.textContent=""),Vt(e,t),typeof n=="function"&&n(),e?e.__c:null}function ls(e,t,n){return Lo(e,t),typeof n=="function"&&n(),e?e.__c:null}Xe.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Xe.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var ui=G.event;function cs(){}function us(){return this.cancelBubble}function ds(){return this.defaultPrevented}G.event=function(e){return ui&&(e=ui(e)),e.persist=cs,e.isPropagationStopped=us,e.isDefaultPrevented=ds,e.nativeEvent=e};var cr,ps={enumerable:!1,configurable:!0,get:function(){return this.class}},di=G.vnode;G.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")===-1;for(var a in n){var A=n[a];if(!(a==="value"&&"defaultValue"in n&&A==null||As&&a==="children"&&r==="noscript"||a==="class"||a==="className")){var s=a.toLowerCase();a==="defaultValue"&&"value"in n&&n.value==null?a="value":a==="download"&&A===!0?A="":s==="translate"&&A==="no"?A=!1:s[0]==="o"&&s[1]==="n"?s==="ondoubleclick"?a="ondblclick":s!=="onchange"||r!=="input"&&r!=="textarea"||ss(n.type)?s==="onfocus"?a="onfocusin":s==="onblur"?a="onfocusout":is.test(a)&&(a=s):s=a="oninput":i&&os.test(a)?a=a.replace(as,"-$&").toLowerCase():A===null&&(A=void 0),s==="oninput"&&o[a=s]&&(a="oninputCapture"),o[a]=A}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=rt(n.children).forEach(function(l){l.props.selected=o.value.indexOf(l.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=rt(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",ps)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=li,di&&di(e)};var pi=G.__r;G.__r=function(e){pi&&pi(e),cr=e.__c};var fi=G.diffed;G.diffed=function(e){fi&&fi(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),cr=null};var fs={ReactCurrentDispatcher:{current:{readContext:function(e){return cr.__n[e.__c].props.value},useCallback:q,useContext:We,useDebugValue:qo,useDeferredValue:Zo,useEffect:te,useId:Yo,useImperativeHandle:bn,useInsertionEffect:ti,useLayoutEffect:Kt,useMemo:ve,useReducer:or,useRef:ie,useState:ee,useSyncExternalStore:$o,useTransition:ei}}};function hs(e){return re.bind(null,e)}function mt(e){return!!e&&e.$$typeof===li}function gs(e){return mt(e)&&e.type===oe}function ms(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function vs(e){return mt(e)?YA.apply(null,arguments):e}function hi(e){return!!e.__k&&(Vt(null,e),!0)}function ys(e){return e&&(e.base||e.nodeType===1&&e)||null}var bs=function(e,t){return e(t)},ws=function(e,t){return e(t)},xs=oe,Es=mt,R={useState:ee,useId:Yo,useReducer:or,useEffect:te,useLayoutEffect:Kt,useInsertionEffect:ti,useTransition:ei,useDeferredValue:Zo,useSyncExternalStore:$o,startTransition:Jo,useRef:ie,useImperativeHandle:bn,useMemo:ve,useCallback:q,useContext:We,useDebugValue:qo,version:"18.3.1",Children:JA,render:ci,hydrate:ls,unmountComponentAtNode:hi,createPortal:rs,createElement:re,createContext:Ve,createFactory:hs,cloneElement:vs,createRef:Do,Fragment:oe,isValidElement:mt,isElement:Es,isFragment:gs,isMemo:ms,findDOMNode:ys,Component:Xe,PureComponent:lr,memo:KA,forwardRef:_e,flushSync:ws,unstable_batchedUpdates:bs,StrictMode:xs,Suspense:xn,SuspenseList:$t,lazy:es,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:fs},Ps=0;function P(e,t,n,r,o,i){t||(t={});var a,A,s=t;if("ref"in s)for(A in s={},t)A=="ref"?a=t[A]:s[A]=t[A];var l={type:e,props:s,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Ps,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(A in a)s[A]===void 0&&(s[A]=a[A]);return G.vnode&&G.vnode(l),l}function ks(e){return{render:function(t){ci(t,e)},unmount:function(){hi(e)}}}var Cs="diffed",gi="__c",ur="__s",St="__c",mi="__k",dr="__d",It="__s",vi=/[\s\n\\/='"\0<>]/,yi=/^(xlink|xmlns|xml)([A-Z])/,_s=/^(?: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])/,Ds=/^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/,Bs=new Set(["draggable","spellcheck"]);function bi(e){e.__g!==void 0?e.__g|=8:e[dr]=!0}function Ss(e){e.__g!==void 0?e.__g&=-9:e[dr]=!1}function wi(e){return e.__g!==void 0?!!(8&e.__g):e[dr]===!0}var Is=/["&<]/;function En(e){if(e.length===0||Is.test(e)===!1)return e;for(var t=0,n=0,r="",o="";n<e.length;n++){switch(e.charCodeAt(n)){case 34:o=""";break;case 38:o="&";break;case 60:o="<";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 xi={},Ts=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"]),Qs=/[A-Z]/g;function Ms(e){var t="";for(var n in e){var r=e[n];if(r!=null&&r!==""){var o=n[0]=="-"?n:xi[n]||(xi[n]=n.replace(Qs,"-$&").toLowerCase()),i=";";typeof r!="number"||o.startsWith("--")||Ts.has(o)||(i="px;"),t=t+o+":"+r+i}}return t||void 0}function Ei(){this.__d=!0}function Os(e,t){return{__v:e,context:t,props:e.props,setState:Ei,forceUpdate:Ei,__d:!0,__h:new Array(0)}}var pr,vt,Jt,Zt,fr={},Pi=[],Tt=Array.isArray,hr=Object.assign,De="",gr="<!--$s-->",mr="<!--/$s-->";function ki(e,t,n){var r=G[ur];G[ur]=!0,pr=G.__b,vt=G[Cs],Jt=G.__r,Zt=G.unmount;var o=re(oe,null);o[mi]=[e];try{var i=At(e,t||fr,!1,void 0,o,!1,n);return Tt(i)?i.join(De):i}catch(a){throw a.then?new Error('Use "renderToStringAsync" for suspenseful rendering.'):a}finally{G[gi]&&G[gi](e,Pi),G[ur]=r,Pi.length=0}}function Ci(e,t){var n,r=e.type,o=!0;return e[St]?(o=!1,(n=e[St]).state=n[It]):n=new r(e.props,t),e[St]=n,n.__v=e,n.props=e.props,n.context=t,bi(n),n.state==null&&(n.state=fr),n[It]==null&&(n[It]=n.state),r.getDerivedStateFromProps?n.state=hr({},n.state,r.getDerivedStateFromProps(n.props,n.state)):o&&n.componentWillMount?(n.componentWillMount(),n.state=n[It]!==n.state?n[It]:n.state):!o&&n.componentWillUpdate&&n.componentWillUpdate(),Jt&&Jt(e),n.render(n.props,n.state,t)}function At(e,t,n,r,o,i,a){if(e==null||e===!0||e===!1||e===De)return De;var A=typeof e;if(A!="object")return A=="function"?De:A=="string"?En(e):e+De;if(Tt(e)){var s,l=De;o[mi]=e;for(var c=e.length,u=0;u<c;u++){var d=e[u];if(d!=null&&typeof d!="boolean"){var p,f=At(d,t,n,r,o,i,a);typeof f=="string"?l+=f:(s||(s=new Array(c)),l&&s.push(l),l=De,Tt(f)?(p=s).push.apply(p,f):s.push(f))}}return s?(l&&s.push(l),s):l}if(e.constructor!==void 0)return De;e.__=o,pr&&pr(e);var y=e.type,h=e.props;if(typeof y=="function"){var w,v,g,x=t;if(y===oe){if("tpl"in h){for(var C=De,E=0;E<h.tpl.length;E++)if(C+=h.tpl[E],h.exprs&&E<h.exprs.length){var _=h.exprs[E];if(_==null)continue;typeof _!="object"||_.constructor!==void 0&&!Tt(_)?C+=_:C+=At(_,t,n,r,e,i,a)}return C}if("UNSTABLE_comment"in h)return"<!--"+En(h.UNSTABLE_comment)+"-->";v=h.children}else{if((w=y.contextType)!=null){var I=t[w.__c];x=I?I.props.value:w.__}var D=y.prototype&&typeof y.prototype.render=="function";if(D)v=Ci(e,x),g=e[St];else{e[St]=g=Os(e,x);for(var k=0;wi(g)&&k++<25;){Ss(g),Jt&&Jt(e);try{v=y.call(g,h,x)}catch(b){throw b}}bi(g)}if(g.getChildContext!=null&&(t=hr({},t,g.getChildContext())),D&&G.errorBoundaries&&(y.getDerivedStateFromError||g.componentDidCatch)){v=v!=null&&v.type===oe&&v.key==null&&v.props.tpl==null?v.props.children:v;try{return At(v,t,n,r,e,i,!1)}catch(b){return y.getDerivedStateFromError&&(g[It]=y.getDerivedStateFromError(b)),g.componentDidCatch&&g.componentDidCatch(b,fr),wi(g)?(v=Ci(e,t),(g=e[St]).getChildContext!=null&&(t=hr({},t,g.getChildContext())),At(v=v!=null&&v.type===oe&&v.key==null&&v.props.tpl==null?v.props.children:v,t,n,r,e,i,a)):De}finally{vt&&vt(e),Zt&&Zt(e)}}}v=v!=null&&v.type===oe&&v.key==null&&v.props.tpl==null?v.props.children:v;try{var S=At(v,t,n,r,e,i,a);return vt&&vt(e),G.unmount&&G.unmount(e),e._suspended?typeof S=="string"?gr+S+mr:Tt(S)?(S.unshift(gr),S.push(mr),S):S.then(function(b){return gr+b+mr}):S}catch(b){if(a&&a.onError){var B=a.onError(b,e,function(F,K){return At(F,t,n,r,K,i,a)});if(B!==void 0)return B;var L=G.__e;return L&&L(b,e),De}throw b}}var N,Q="<"+y,W=De;for(var O in h){var H=h[O];if(typeof(H=Ls(H)?H.value:H)!="function"||O==="class"||O==="className"){switch(O){case"children":N=H;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in h)continue;O="for";break;case"className":if("class"in h)continue;O="class";break;case"defaultChecked":O="checked";break;case"defaultSelected":O="selected";break;case"defaultValue":case"value":switch(O="value",y){case"textarea":N=H;continue;case"select":r=H;continue;case"option":r!=H||"selected"in h||(Q+=" selected")}break;case"dangerouslySetInnerHTML":W=H&&H.__html;continue;case"style":typeof H=="object"&&(H=Ms(H));break;case"acceptCharset":O="accept-charset";break;case"httpEquiv":O="http-equiv";break;default:if(yi.test(O))O=O.replace(yi,"$1:$2").toLowerCase();else{if(vi.test(O))continue;O[4]!=="-"&&!Bs.has(O)||H==null?n?Ds.test(O)&&(O=O==="panose1"?"panose-1":O.replace(/([A-Z])/g,"-$1").toLowerCase()):_s.test(O)&&(O=O.toLowerCase()):H+=De}}H!=null&&H!==!1&&(Q=H===!0||H===De?Q+" "+O:Q+" "+O+'="'+(typeof H=="string"?En(H):H+De)+'"')}}if(vi.test(y))throw new Error(y+" is not a valid HTML tag name in "+Q+">");if(W||(typeof N=="string"?W=En(N):N!=null&&N!==!1&&N!==!0&&(W=At(N,t,y==="svg"||y!=="foreignObject"&&n,r,e,i,a))),vt&&vt(e),Zt&&Zt(e),!W&&Ns.has(y))return Q+"/>";var m="</"+y+">",U=Q+">";return Tt(W)?[U].concat(W,[m]):typeof W!="string"?[U,W,m]:U+W+m}var Ns=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function Ls(e){return e!==null&&typeof e=="object"&&typeof e.peek=="function"&&"value"in e}const Rs={renderToString:ki,renderToStaticMarkup:ki};function _i(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))}}_i('.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 ge={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"},Di="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",Bi=_e((e,t)=>re("svg",{viewBox:"0 0 637 637",ref:t,...e},re("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"}),re("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"}))),Si=_e((e,t)=>re("svg",{viewBox:"0 -960 960 960",ref:t,...e},re("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"}))),Hs=_e((e,t)=>re("svg",{viewBox:"0 -960 960 960",ref:t,...e},re("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"}))),Us=_e((e,t)=>re("svg",{viewBox:"0 -960 960 960",ref:t,...e},re("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"}))),Fs=_e((e,t)=>re("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",ref:t,...e},re("g",{strokeLinecap:"round",strokeWidth:10},re("path",{d:"m19 19 61 61M80 19 19 80"})))),zs=_e((e,t)=>re("svg",{viewBox:"0 -960 960 960",ref:t,...e},re("path",{d:"M94-136v-255l351-93-351-92v-253l816 346L94-136Z"}))),js=_e((e,t)=>re("svg",{viewBox:"0 -960 960 960",ref:t,...e},re("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"}))),Ws=_e((e,t)=>re("svg",{viewBox:"0 -960 960 960",ref:t,...e},re("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"}))),Ii=_e((e,t)=>re("svg",{viewBox:"0 -960 960 960",ref:t,...e},re("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"}))),Gs=_e((e,t)=>re("svg",{viewBox:"0 -960 960 960",ref:t,...e},re("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"}))),qs=_e((e,t)=>re("svg",{viewBox:"0 -960 960 960",ref:t,...e},re("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"}))),Ti={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:Bi},header:{title:P("div",{style:{cursor:"pointer",margin:0,fontSize:20,fontWeight:"bold"},onClick:()=>window.open("https://github.com/tjtanjin/"),children:"Tan Jin"}),showAvatar:!0,avatar:Di,buttons:[ge.NOTIFICATION_BUTTON,ge.AUDIO_BUTTON,ge.CLOSE_CHAT_BUTTON],closeChatIcon:Fs},notification:{disabled:!1,defaultToggledOn:!0,volume:.2,icon:Hs,iconDisabled:Us,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//AAAAAAAAAAD//wAAAAD///////8BAAEAAAD/////AgABAAEA/v/+/wAAAQACAAEAAAD//wAAAwABAP//AgD+/wAA/v8AAAAAAAAAAAEA//8AAAEAAAD+/wEAAAAAAAEAAgAAAAEAAAABAP//AQD+/wIA/////wAAAQD//wAAAQD+/wAAAQABAAAA////////AAACAAAAAQAAAAIA//8BAP///v///wEA//8BAAEAAQD+/wAAAQD9/wAAAQAAAAEAAAABAAAAAgAAAP//AAD+/wAA/f8AAAAA////////AgAAAAcAAQD7/wEA/f8AAAIA//8GAP7//v/+//b/AQD//wQADgD///3/9/8FAPr/6/8EABAACQD9/wIA/P/5/w4A///t/wQA/P8LAB0ACQD5////AQD2/+7/AgD6//r//v/z/xIA9f8oAAMA4f8OANz/EQAdAAAA5P/w/2MAAQDq/w0A1/8bALz/BgDb/+j/lQD9/yMABAACAA0Alf8NAKr/CwCMAPD/QwDq/wkA9v+g/wgAk/8QAD0ABgAWAAQAMwD7/9T/8//f//z/JwAEAOL/DwBxAAwAzf/+/xUA8v+O//H/fAD5/xUA+/9m//P/yf/r/y8ACAAbAEQA3f9AAAcB9f/p/sD/+QHv/8/9EQCv+ez/j+v8/3pS7/83By4AF6Go/7PNjgDMEn7/Sk0NAeEfIv+9DCwAKfuY/9fRAv2A3mjzfQg/Ft3fzTQE703jljkirPskFOdBEUYzORerLDvvDg7C6dcbwNJj/b/CisId8XfblBZS/oYksP1YRdoQJjjDJbwGNSTX66wU48FG8Iu1eM+/5ITdKwGN8jUTGfehN3oUszrBH7kmdhFKB+YNheG6B9fOivltwZ38JMcC66z7o9pJNBnxgTdvCjIvJg+GG7MMlQUJFJL5hCZ61IQap7895EXN8Msh6Njd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v8VAMn/+P+m/+n/r//b/8j/+v/y/x4AIwAqAEgAHQBUAPv/OwDY/yIA1v/m/+T/t/8NAJr/KQCp/ykA6f8NACsA7v9bANv/XgDz/0UABwAQABUA1f8BALH/7/+u/+T/xf/0/+7/GwAfAC4APgAiAFUACABDANr/KgDW//D/4f+6/woAo/8kAKX/KwDh/xQAGQDz/1sA3P9aAOz/QgACACIAAgDn/wIAv//1/6n/6f+///L/3f8VAA4ALgA0ACYAVQAOAEgA6/8wANL/AQDc/8b/+f+k/x0Anf8oAND/HwAMAPf/SADw/2AA8v9KAPX/KgD3//H/+P/F//z/rv/i/7r/6v/Z/wYABwAoADAAKQBOABkATAD0/zQA1P8PANv/0//v/6//FwCi/ywAxP8oAPn//v82APT/WwD4/00A+/8yAPv//f/8/83/+v+w/+T/sf/j/9b/AQACACoAIgAtAEIAHwBPAAEAQADe/xcA0v/k/+X/t/8IAKv/IgC//yEA6/8EACMA9/9PAPf/VAD+/zcA+/8JAPn/1P8AALf/6f+w/+P/zf////j/HAAdAC0APgAfAEsABwBCAOP/IADV/+//2v/B//3/rP8PALv/GADd/xEAFgABAEMABABaAP//QgACABcA+//n/wAAwP/w/67/4v+///3/6f8WABcAKQA0ACIARgAQAEcA8f8pANn/9f/U/87/7f+v/wgAtP8RANP/FgANAAIAOQACAFQA/f9HAAAAIAABAO3//P/E/wEAs//q/7n/9P/i/wYAEQAZADEAJABBABMASAAAADEA3/8CANL/1v/g/7H/AACy/w8Axf8ZAPv/CQAzAAIAVQD//1AAAAAsAAIA9v/7/8r/AwC2//P/tf/m/+H/AwADABEAKQApADoAHgBHAAgAPADr/wkA1//f/93/vP/6/7L/CgDA/x4A7/8hACkAAgBPAPz/UgD1/zIABAAEAPz/0v/5/7f/AACy//H/2f/+/wEAAAAkABUAMwAdADoAEQA9APD/EADU//L/1P/H/+z/tf8LALv/HADk/ygAGgADAEMA//9TAPn/QAAAABAAAQDc//z/wf8DALD/7P/Q//z/9/8HABoAFgA3ACMAMAAOADwA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f/CgDn/wkA/P///xoABwAwAAIAJwACABcAAwABAAIA4f8BAND/AgDd//3/6P8CAAYA/f8YAAwALwAZACUA9v8bAPj/AwDq/+r/7P/S//7/1/8EAOX/CQD6//7/GQAFAC8AAQApAAEAGQACAAMAAgDm/wEAzv8BANv//v/p/wIA//8BABMABQArACAALAABAB4A8f8NAOv/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:Gs,iconDisabled:qs},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:zs,blockSpam:!0,sendOptionOutput:!0,sendCheckboxOutput:!0,buttons:[ge.VOICE_MESSAGE_BUTTON,ge.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:Di,simulateStream:!1,streamSpeed:30},voice:{disabled:!0,defaultToggledOn:!1,language:"en-US",timeoutPeriod:1e4,autoSendDisabled:!1,autoSendPeriod:1e3,sendAsAudio:!1,icon:js,iconDisabled:Ws},footer:{text:P("div",{style:{cursor:"pointer",display:"flex",flexDirection:"row",alignItems:"center",columnGap:3},onClick:()=>window.open("https://react-chatbotify.com"),children:[P("span",{children:"Powered By "},0),P("div",{style:{borderRadius:"50%",width:14,height:14,display:"flex",justifyContent:"center",alignItems:"center",background:"linear-gradient(to right, #42b0c5, #491d8d)"},children:P(Bi,{style:{width:"80%",height:"80%",fill:"#fff"}})},1),P("span",{style:{fontWeight:"bold"},children:" React ChatBotify"},2)]}),buttons:[ge.FILE_ATTACHMENT_BUTTON,ge.EMOJI_PICKER_BUTTON]},fileAttachment:{disabled:!1,multiple:!0,accept:".png",icon:Si,iconDisabled:Si,sendFileName:!0,showMediaDisplay:!1},emoji:{disabled:!1,icon:Ii,iconDisabled:Ii,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}},Qi=Ve({settings:{},setSyncedSettings:()=>null,syncedSettingsRef:{current:{}}}),Z=()=>We(Qi),Ys=({children:e,settings:t=Ti,setSyncedSettings:n,syncedSettingsRef:r})=>P(Qi.Provider,{value:{settings:t,setSyncedSettings:n,syncedSettingsRef:r},children:e}),Mi={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:{}},Oi=Ve({styles:{},setSyncedStyles:()=>null,syncedStylesRef:{current:{}}}),Ae=()=>We(Oi),Xs=({children:e,styles:t=Mi,setSyncedStyles:n,syncedStylesRef:r})=>P(Oi.Provider,{value:{styles:t,setSyncedStyles:n,syncedStylesRef:r},children:e}),Vs=({buttons:e})=>{var t,n,r,o,i,a,A;const{settings:s}=Z(),{styles:l}=Ae(),c={backgroundImage:`linear-gradient(to right, ${(t=s.general)==null?void 0:t.secondaryColor},
|
|
2
|
-
${(n=s.general)==null?void 0:n.primaryColor})`,...l.headerStyle};return P("div",{style:c,className:"rcb-chat-header-container",children:[P("div",{className:"rcb-chat-header",children:[((r=s.header)==null?void 0:r.showAvatar)&&P("div",{style:{backgroundImage:`url("${(o=s.header)==null?void 0:o.avatar}")`},className:"rcb-bot-avatar"}),mt((i=s.header)==null?void 0:i.title)?(a=s.header)==null?void 0:a.title:P("div",{style:{margin:0,fontSize:20,fontWeight:"bold"},children:(A=s.header)==null?void 0:A.title})]}),P("div",{className:"rcb-chat-header",children:e==null?void 0:e.map((u,d)=>P(oe,{children:u},d))})]})},Ni=Ve({}),ye=()=>We(Ni),Ks=({children:e,botIdRef:t,flowRef:n})=>{const r=ie(null),o=ie(""),i=ie(null),a=ie(new Map),A=ie(null),s=ie(""),l=ie(!1),c=ie(null),u=ie(null),d=ie(null);return P(Ni.Provider,{value:{botIdRef:t,flowRef:n,inputRef:r,timeoutIdRef:i,streamMessageMap:a,chatBodyRef:A,paramsInputRef:s,keepVoiceOnRef:l,audioContextRef:c,audioBufferRef:u,gainNodeRef:d,prevInputRef:o},children:e})},Te=e=>{const[t,n]=ee(e),r=ie(e);return[t,o=>{const i=typeof o=="function"?o(r.current):o;r.current=i,n(i)},r]},Li=Ve({}),we=()=>We(Li),$s=({children:e,settings:t})=>{var n,r,o,i,a,A;const[s,l,c]=Te(!1),[u,d,p]=Te(((n=t==null?void 0:t.chatWindow)==null?void 0:n.defaultOpen)??!1),[f,y,h]=Te(((r=t==null?void 0:t.audio)==null?void 0:r.defaultToggledOn)??!1),[w,v,g]=Te(((o=t==null?void 0:t.voice)==null?void 0:o.defaultToggledOn)??!1),[x,C,E]=Te(((i=t==null?void 0:t.notification)==null?void 0:i.defaultToggledOn)??!0),[_,I]=ee(!1),[D,k]=ee(!1),[S,B,L]=Te(!1),[N,Q,W]=Te(!0),[O,H,m]=Te(!1),[U,b]=ee(!1),[F,K]=ee(!1),[z,ne]=ee(0),[fe,de]=ee(0),[Be,me]=ee(!1),[Ce,ft]=ee(((a=window.visualViewport)==null?void 0:a.height)??window.innerHeight),[ze,je]=ee(((A=window.visualViewport)==null?void 0:A.width)??window.innerWidth);return P(Li.Provider,{value:{isBotTyping:s,setSyncedIsBotTyping:l,syncedIsBotTypingRef:c,isChatWindowOpen:u,setSyncedIsChatWindowOpen:d,syncedIsChatWindowOpenRef:p,audioToggledOn:f,setSyncedAudioToggledOn:y,syncedAudioToggledOnRef:h,voiceToggledOn:w,setSyncedVoiceToggledOn:v,syncedVoiceToggledOnRef:g,notificationsToggledOn:x,setSyncedNotificationsToggledOn:C,syncedNotificationsToggledOnRef:E,isLoadingChatHistory:_,setIsLoadingChatHistory:I,hasChatHistoryLoaded:D,setHasChatHistoryLoaded:k,isScrolling:S,setSyncedIsScrolling:B,syncedIsScrollingRef:L,textAreaDisabled:N,setSyncedTextAreaDisabled:Q,syncedTextAreaDisabledRef:W,textAreaSensitiveMode:O,setSyncedTextAreaSensitiveMode:H,syncedTextAreaSensitiveModeRef:m,hasInteractedPage:U,setHasInteractedPage:b,hasFlowStarted:F,setHasFlowStarted:K,unreadCount:z,setUnreadCount:ne,inputLength:fe,setInputLength:de,blockAllowsAttachment:Be,setBlockAllowsAttachment:me,viewportHeight:Ce,setViewportHeight:ft,viewportWidth:ze,setViewportWidth:je},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 Js={[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},vr=async(e,t,n)=>{const r=new CustomEvent(e,{detail:t,cancelable:Js[e]});return r.data=n,r.promises=[],window.dispatchEvent(r),await Promise.all(r.promises),r},Ri=Ve({paths:[],setSyncedPaths:()=>{},syncedPathsRef:{current:[]}}),en=()=>We(Ri),Zs=({children:e})=>{const[t,n,r]=Te([]);return P(Ri.Provider,{value:{paths:t,setSyncedPaths:n,syncedPathsRef:r},children:e})},Ge=()=>{const{botIdRef:e}=ye(),{syncedPathsRef:t}=en(),n=q(()=>t.current.length>0?t.current.at(-1)??null:null,[]),r=q(()=>t.current.length>1?t.current.at(-2)??null:null,[]);return{dispatchRcbEvent:q(async(o,i)=>{const a={botId:e.current,currPath:n(),prevPath:r()};return await vr(o,a,i)},[e])}},Qe=()=>{const{settings:e}=Z(),{isChatWindowOpen:t,setSyncedIsChatWindowOpen:n,viewportHeight:r,setViewportHeight:o,viewportWidth:i,setViewportWidth:a,setUnreadCount:A,setSyncedIsBotTyping:s,setSyncedIsScrolling:l,syncedIsBotTypingRef:c,syncedIsChatWindowOpenRef:u}=we(),{chatBodyRef:d}=ye(),{dispatchRcbEvent:p}=Ge(),f=q(()=>{if(!d.current)return!1;const g=d.current.getBoundingClientRect(),x=window.innerHeight??document.documentElement.clientHeight,C=window.innerWidth??document.documentElement.clientWidth;return g.top>=0&&g.left>=0&&g.bottom<=x&&g.right<=C},[d]),y=q(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(C=>(C||A(0),!C)))},[u]),h=q(async g=>{g!==c.current&&s(x=>!x)},[c]),w=q((g,x,C,E)=>(g/=E/2)<1?C/2*g*g+x:-C/2*(--g*(g-2)-1)+x,[]),v=q((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 C=d.current.scrollTop,E=x-C;let _=0;const I=()=>{if(!d.current)return;_+=20;const D=w(_,C,E,g);d.current.scrollTop=D,_<g?requestAnimationFrame(I):l(!1)};I()},[d]);return{isChatWindowOpen:t,setSyncedIsChatWindowOpen:n,toggleChatWindow:y,viewportHeight:r,setViewportHeight:o,viewportWidth:i,setViewportWidth:a,toggleIsBotTyping:h,scrollToBottom:v,getIsChatBotVisible:f}},el=()=>{var e,t,n;const{settings:r}=Z(),{styles:o}=Ae(),{unreadCount:i,isScrolling:a}=we(),{chatBodyRef:A}=ye(),{scrollToBottom:s}=Qe(),[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 P("div",{className:"rcb-message-prompt-container "+(A.current&&((d=r.chatWindow)!=null&&d.showMessagePrompt)&&a&&i>0?"visible":"hidden"),children:P("div",{onMouseEnter:()=>{c(!0)},onMouseLeave:()=>{c(!1)},style:l?u:{...o.chatMessagePromptStyle},onMouseDown:p=>{p.preventDefault(),s(600)},className:"rcb-message-prompt-text",children:(n=r.chatWindow)==null?void 0:n.messagePromptText})});var d},Hi=Ve({messages:[],setSyncedMessages:()=>{},syncedMessagesRef:{current:[]}}),yr=()=>We(Hi),tl=({children:e})=>{const[t,n,r]=Te([]);return P(Hi.Provider,{value:{messages:t,setSyncedMessages:n,syncedMessagesRef:r},children:e})},nl=({message:e,isNewSender:t})=>{var n,r,o,i,a,A;const{settings:s}=Z(),{styles:l}=Ae(),c=typeof e.content=="string",u=e.content,d=e.contentWrapper?P(e.contentWrapper,{children:u}):u,p={backgroundColor:(n=s.general)==null?void 0:n.primaryColor,color:"#fff",maxWidth:(r=s.userBubble)!=null&&r.showAvatar?"65%":"70%",...l.userBubbleStyle},f=(o=s.userBubble)!=null&&o.animate?"rcb-user-message-entry":"",y=((i=s.userBubble)==null?void 0:i.showAvatar)&&t,h="rcb-user-message"+(!t&&(a=s.userBubble)!=null&&a.showAvatar?" rcb-user-message-offset":"");return P("div",{className:"rcb-user-message-container",children:[c?P("div",{style:p,className:`${h} ${f}`,children:d}):P(oe,{children:d}),y&&P("div",{style:{backgroundImage:`url("${(A=s.userBubble)==null?void 0:A.avatar}")`},className:"rcb-message-user-avatar"})]})},rl=({message:e,isNewSender:t})=>{var n,r,o,i,a,A;const{settings:s}=Z(),{styles:l}=Ae(),c=typeof e.content=="string",u=e.content,d=e.contentWrapper?P(e.contentWrapper,{children:u}):u,p={backgroundColor:(n=s.general)==null?void 0:n.secondaryColor,color:"#fff",maxWidth:(r=s.botBubble)!=null&&r.showAvatar?"65%":"70%",...l.botBubbleStyle},f=(o=s.botBubble)!=null&&o.animate?"rcb-bot-message-entry":"",y=((i=s.botBubble)==null?void 0:i.showAvatar)&&t,h="rcb-bot-message"+(!t&&(a=s.botBubble)!=null&&a.showAvatar?" rcb-bot-message-offset":"");return P("div",{className:"rcb-bot-message-container",children:[y&&P("div",{style:{backgroundImage:`url("${(A=s.botBubble)==null?void 0:A.avatar}")`},className:"rcb-message-bot-avatar"}),c?P("div",{style:p,className:`${h} ${f}`,children:d}):P(oe,{children:d})]})},ol=()=>{var e,t,n;const{settings:r}=Z(),{styles:o}=Ae(),i=(e=r.botBubble)!=null&&e.animate?"rcb-bot-message-entry":"";return P("div",{className:"rcb-bot-message-container",children:[((t=r.botBubble)==null?void 0:t.showAvatar)&&P("div",{style:{backgroundImage:`url("${(n=r.botBubble)==null?void 0:n.avatar}")`},className:"rcb-message-bot-avatar"}),P("div",{onMouseDown:a=>{a.preventDefault()},className:`rcb-bot-message ${i}`,children:P("div",{className:"rcb-typing-indicator",style:{...o==null?void 0:o.rcbTypingIndicatorContainerStyle},children:[P("span",{className:"rcb-dot",style:{...o==null?void 0:o.rcbTypingIndicatorDotStyle}}),P("span",{className:"rcb-dot",style:{...o==null?void 0:o.rcbTypingIndicatorDotStyle}}),P("span",{className:"rcb-dot",style:{...o==null?void 0:o.rcbTypingIndicatorDotStyle}})]})})]})},il=()=>{var e,t,n;const{settings:r}=Z(),{styles:o}=Ae(),{messages:i}=yr(),{scrollToBottom:a}=Qe(),{isBotTyping:A,syncedIsScrollingRef:s}=we(),{chatBodyRef:l}=ye(),c={...o==null?void 0:o.bodyStyle,scrollbarWidth:(e=r.chatWindow)!=null&&e.showScrollbar?"auto":"none"};return te(()=>{s.current||a()},[(t=l.current)==null?void 0:t.scrollHeight]),P("div",{style:c,className:"rcb-chat-body-container",ref:l,children:[i.map((u,d)=>{const p=(f=>f===0||i[f].sender!==i[f-1].sender)(d);return u.sender.toUpperCase()==="USER"?P(nl,{message:u,isNewSender:p},d):u.sender.toUpperCase()==="BOT"?P(rl,{message:u,isNewSender:p},d):P("div",{children:u.content},d)}),A&&((n=r.chatWindow)==null?void 0:n.showTypingIndicator)&&P(ol,{}),P(el,{})]})},al=({checkboxes:e,checkedItems:t,path:n})=>{var r,o,i,a,A,s,l,c,u,d,p;const{settings:f}=Z(),{styles:y}=Ae(),{paths:h}=en(),{handleSubmitText:w}=Mt(),[v,g]=ee(new Set),[x,C]=ee(!1),E={cursor:x?`url("${(r=f.general)==null?void 0:r.actionDisabledIcon}"), auto`:"pointer",color:(o=f.general)==null?void 0:o.primaryColor,borderColor:(i=f.general)==null?void 0:i.primaryColor,...y.botCheckboxRowStyle},_={cursor:x||v.size<e.min?`url("${(a=f.general)==null?void 0:a.actionDisabledIcon}"), auto`:"pointer",color:(A=f.general)==null?void 0:A.primaryColor,borderColor:(s=f.general)==null?void 0:s.primaryColor,...y.botCheckboxNextStyle},I={cursor:x?`url("${(l=f.general)==null?void 0:l.actionDisabledIcon}"), auto`:"pointer",color:"transparent",...y.botCheckMarkStyle},D={cursor:x?`url("${(c=f.general)==null?void 0:c.actionDisabledIcon}"), auto`:"pointer",color:"#fff",borderColor:(u=f.general)==null?void 0:u.primaryColor,backgroundColor:(d=f.general)==null?void 0:d.primaryColor,...y.botCheckMarkSelectedStyle};return te(()=>{h.length>0&&h[h.length-1]!==n&&C(!e.reusable)},[h]),P("div",{className:"rcb-checkbox-container "+((p=f.botBubble)!=null&&p.showAvatar?"rcb-checkbox-offset":""),children:[e.items.map(k=>P("div",{onMouseDown:S=>{S.preventDefault(),(B=>{x||g(L=>{const N=new Set(L);if(N.has(B))t.delete(B),N.delete(B);else{if(v.size==e.max)return L;t.add(B),N.add(B)}return N})})(k)},style:E,className:"rcb-checkbox-row-container",children:P("div",{className:"rcb-checkbox-row",children:[P("div",{style:v.has(k)?D:I,className:"rcb-checkbox-mark"}),P("div",{className:"rcb-checkbox-label",children:k})]})},k)),P("div",{style:_,className:"rcb-checkbox-next-button",onMouseDown:k=>{var S;if(k.preventDefault(),x||v.size<e.min)return;const B=Array.from(t).join(", ");let L;C(!e.reusable),L=e.sendOutput!=null?e.sendOutput:((S=f.chatInput)==null?void 0:S.sendCheckboxOutput)??!0,w(B,L)}})]})},Al=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,a=P(al,{checkboxes:r,checkedItems:o,path:i});await t.injectMessage(a)},sl=async(e,t)=>{const n=e.function;if(!n)return;const r=n(t);return r instanceof Promise?await r:r},ll=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))},cl=({options:e,path:t})=>{var n,r,o,i,a,A;const{settings:s}=Z(),{styles:l}=Ae(),{paths:c}=en(),{handleSubmitText:u}=Mt(),[d,p]=ee([]),[f,y]=ee(!1),h={cursor:f?`url("${(n=s.general)==null?void 0:n.actionDisabledIcon}"), auto`:"pointer",color:(r=s.general)==null?void 0:r.primaryColor,borderColor:(o=s.general)==null?void 0:o.primaryColor,backgroundColor:"#fff",...l.botOptionStyle},w={color:"#fff",borderColor:(i=s.general)==null?void 0:i.primaryColor,backgroundColor:(a=s.general)==null?void 0:a.primaryColor,...l.botOptionHoveredStyle};return te(()=>{c.length>0&&c[c.length-1]!==t&&y(!e.reusable)},[c]),P("div",{className:"rcb-options-container "+((A=s.botBubble)!=null&&A.showAvatar?"rcb-options-offset":""),children:e.items.map((v,g)=>{const x=d[g]&&!f;return P("div",{className:"rcb-options",style:x?w:h,onMouseEnter:()=>(C=>{p(E=>{const _=[...E];return _[C]=!0,_})})(g),onMouseLeave:()=>(C=>{p(E=>{const _=[...E];return _[C]=!1,_})})(g),onMouseDown:C=>{var E;if(C.preventDefault(),f)return;let _;y(!e.reusable),_=e.sendOutput!=null?e.sendOutput:((E=s.chatInput)==null?void 0:E.sendOptionOutput)??!0,u(v,_)},children:v},v)})})},ul=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=P(cl,{options:r,path:o});await t.injectMessage(i)},dl=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)}},pl=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 a=setTimeout(async()=>{const A=await r(e);A&&await Fi(A,t)},i.duration);i.interruptable&&(n.current=a)},fl=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)},Ui=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)},Fi=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 sl(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 a=i(o);if(a instanceof Promise&&(a=await a),!a)return!1;const A=a;return await o.goToPath(A),!0})(e,t)},hl=()=>{var e;const{settings:t}=Z(),{styles:n}=Ae();return P("div",{className:"rcb-line-break-container",children:P("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})})},gl=()=>{var e;const{settings:t}=Z(),{styles:n}=Ae(),r={borderTop:`4px solid ${(e=t.general)==null?void 0:e.primaryColor}`,...n.loadingSpinnerStyle};return P("div",{className:"rcb-spinner-container",children:P("div",{style:r,className:"rcb-spinner"})})},Pn=()=>{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")}},st=(e,t)=>({id:Pn(),content:e,sender:t,type:typeof e=="string"?"string":"object",timestamp:new Date().toUTCString(),tags:[]});let lt,zi=!1,kn="rcb-history",Cn=30,ji=!1,tn=[];const br=async e=>{if(ji||!lt)return;const t=[],n=zi?tn.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===Cn))break}let r=t.map(vl);if(r.length<Cn){const o=Cn-r.length;r=[...tn.slice(-o),...r]}Wi(r)},wr=()=>tn,ml=e=>{Wi(e),tn=e},Wi=e=>{lt&<.setItem(kn,JSON.stringify(e))},xr=e=>{var t,n,r,o,i;lt=((n=(t=e.chatHistory)==null?void 0:t.storageType)==null?void 0:n.toUpperCase())==="SESSION_STORAGE"?sessionStorage:localStorage,kn=(r=e.chatHistory)==null?void 0:r.storageKey,Cn=(o=e.chatHistory)==null?void 0:o.maxEntries,ji=(i=e.chatHistory)==null?void 0:i.disabled,tn=(a=>{if(a!=null)try{return JSON.parse(a)}catch{return[]}return[]})(lt.getItem(kn))},vl=e=>mt(e.content)?structuredClone({id:e.id,content:Rs.renderToString(e.content),type:e.type,sender:e.sender.toUpperCase(),timestamp:e.timestamp,tags:e.tags}):e,Gi=(e,t,n)=>{const r=new DOMParser().parseFromString(e,"text/html");return Array.from(r.body.childNodes).map((o,i)=>{var a;if(o.nodeType===Node.TEXT_NODE)return o.textContent;{const A=o.tagName.toLowerCase();let s=Array.from(o.attributes).reduce((l,c)=>{const u=c.name.toLowerCase();if(u==="style"){const d=c.value.split(";").filter(f=>f.trim()!==""),p={};d.forEach(f=>{const[y,h]=f.split(":").map(v=>v.trim()),w=y.replace(/-([a-z])/g,(v,g)=>g.toUpperCase());p[w]=h}),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(s,"class")){const l=o.classList;s.className=l.toString(),delete s.class,(a=t.botBubble)!=null&&a.showAvatar&&(s=yl(l,s)),s=bl(l,s,t,n),s=wl(l,s,t,n),s=xl(l,s,t,n),s=El(l,s,t,n)}if(["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"].includes(A))return re(A,{key:i,...s});{const l=Gi(o.innerHTML,t,n);return re(A,{key:i,...s},...l)}}})},yl=(e,t)=>((e.contains("rcb-options-container")||e.contains("rcb-checkbox-container"))&&(t.className=`${e.toString()} rcb-options-offset`),t),bl=(e,t,n,r)=>{var o,i,a,A,s;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:((a=r.botOptionStyle)==null?void 0:a.color)??((A=n.general)==null?void 0:A.primaryColor),cursor:`url("${(s=n.general)==null?void 0:s.actionDisabledIcon}"), auto`,...r.botOptionStyle}),t},wl=(e,t,n,r)=>{var o,i,a,A,s;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:((a=r.botCheckboxRowStyle)==null?void 0:a.color)??((A=n.general)==null?void 0:A.primaryColor),cursor:`url("${(s=n.general)==null?void 0:s.actionDisabledIcon}"), auto`,...r.botCheckboxRowStyle}),t},xl=(e,t,n,r)=>{var o,i,a,A,s;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:((a=r.botCheckboxNextStyle)==null?void 0:a.color)??((A=n.general)==null?void 0:A.primaryColor),cursor:`url("${(s=n.general)==null?void 0:s.actionDisabledIcon}"), auto`,...r.botCheckboxNextStyle}),t},El=(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},Er=()=>{const{settings:e}=Z(),{notificationsToggledOn:t,setSyncedNotificationsToggledOn:n,hasInteractedPage:r,unreadCount:o,setUnreadCount:i,syncedNotificationsToggledOnRef:a}=we(),{audioBufferRef:A,audioContextRef:s,gainNodeRef:l}=ye(),{dispatchRcbEvent:c}=Ge(),u=q(async()=>{var p,f;const y=(p=e.notification)==null?void 0:p.sound;s.current=new AudioContext;const h=s.current.createGain();let w;if(h.gain.value=((f=e.notification)==null?void 0:f.volume)??.2,l.current=h,y!=null&&y.startsWith("data:audio")){const v=atob(y.split(",")[1]),g=new ArrayBuffer(v.length),x=new Uint8Array(g);for(let C=0;C<v.length;C++)x[C]=v.charCodeAt(C);w=g}else w=await(await fetch(y)).arrayBuffer();A.current=await s.current.decodeAudioData(w)},[e.notification]),d=q(()=>{var p;if((p=e.notification)!=null&&p.disabled||!a.current||!r||!s.current||!A.current)return;const f=s.current.createBufferSource();f.buffer=A.current,f.connect(l.current).connect(s.current.destination),f.start()},[e.notification,a,r,s,A,l]);return{unreadCount:o,setUnreadCount:i,notificationsToggledOn:t,toggleNotifications:q(async p=>{var f;p!==a.current&&((f=e.event)!=null&&f.rcbToggleNotifications&&(await c(j.TOGGLE_NOTIFICATIONS,{currState:a.current,newState:!a.current})).defaultPrevented||n(y=>!y))},[a]),playNotificationSound:d,setUpNotifications:u}},Pl=(e,t)=>{var n,r,o,i;((a,A,s,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=a,u.lang=A,u.rate=l,u.volume=c;let d=!1;for(const p of s)if(window.speechSynthesis.getVoices().find(f=>{if(f.name===p)return u.voice=f,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)},qi=()=>{const{settings:e}=Z(),{audioToggledOn:t,setSyncedAudioToggledOn:n,syncedAudioToggledOnRef:r}=we(),{dispatchRcbEvent:o}=Ge(),i=q(async A=>{var s;A!==r.current&&((s=e.event)!=null&&s.rcbToggleAudio&&(await o(j.TOGGLE_AUDIO,{currState:r.current,newState:!r.current})).defaultPrevented||n(l=>!l))},[r]),a=q(async A=>{var s,l;if((s=e.audio)!=null&&s.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}Pl(e,c)},[e,r]);return{audioToggledOn:t,speakAudio:a,toggleAudio:i}},yt=()=>{var e,t;const{settings:n}=Z(),{messages:r,setSyncedMessages:o,syncedMessagesRef:i}=yr(),{setSyncedIsBotTyping:a,setUnreadCount:A,syncedIsScrollingRef:s,syncedIsChatWindowOpenRef:l}=we(),{streamMessageMap:c,chatBodyRef:u,paramsInputRef:d}=ye(),{scrollToBottom:p,getIsChatBotVisible:f}=Qe(),{dispatchRcbEvent:y}=Ge(),{speakAudio:h}=qi(),{playNotificationSound:w}=Er(),v=q((D,k=!1)=>{var S,B;br(D);let L=!0;const N=D[D.length-1];if(!N)return;const Q=N.sender.toUpperCase();Q==="USER"&&(L=!1),(S=n.general)!=null&&S.embedded&&f()&&(L=!1),(l.current&&!s.current||k)&&(L=!1),L&&w(),!k&&(Q!=="USER"&&(B=n.chatWindow)!=null&&B.autoJumpToBottom||Q==="USER"||!s.current)&&setTimeout(()=>p(),1)},[n,u,l,s,w,p,f]),g=q(async(D,k="BOT",S=null)=>{var B,L,N,Q,W;if(typeof D!="string")throw new Error("Content must be of type string to simulate stream.");k=k.toUpperCase();let O=st(D,k);if((B=n.event)!=null&&B.rcbStartSimulateStreamMessage){const z=await y(j.START_SIMULATE_STREAM_MESSAGE,{message:O});if(z.defaultPrevented)return null;S=z.data.simulateStreamChunker||S,O=z.data.message}a(!1);let H=30;H=k==="BOT"?(L=n.botBubble)==null?void 0:L.streamSpeed:(N=n.userBubble)==null?void 0:N.streamSpeed;const m={...O,content:""};o(z=>[...z,m]),v(i.current);let U=O.content;S&&(U=S(U));let b=0;const F=U.length;O.sender.toUpperCase()==="BOT"&&(l.current||(Q=n.general)!=null&&Q.embedded)&&typeof O.content=="string"&&O.content.trim()!==""&&h(O.content);const K=new Promise(z=>{const ne=setInterval(()=>{if(b>=F)return clearInterval(ne),void z();o(fe=>{const de=[...fe];for(let Be=de.length-1;Be>=0;Be--)if(de[Be].id===m.id){const me=U[b];me&&(m.content+=me,de[Be]=m),b++;break}return de})},H)});return(s.current||!l.current)&&A(z=>z+1),await K,br(i.current),(W=n.event)!=null&&W.rcbStopSimulateStreamMessage&&await y(j.STOP_SIMULATE_STREAM_MESSAGE,{message:O}),k==="USER"&&(d.current=D),O},[n,y,v,i,d,a,A,l,h]),x=q(async(D,k="BOT")=>{var S,B,L;k=k.toUpperCase();let N=st(D,k);if((S=n.event)!=null&&S.rcbPreInjectMessage){const Q=await y(j.PRE_INJECT_MESSAGE,{message:N});if(Q.defaultPrevented)return null;N=Q.data.message}return N.sender.toUpperCase()==="BOT"&&(l.current||(B=n.general)!=null&&B.embedded)&&typeof N.content=="string"&&N.content.trim()!==""&&h(N.content),(s.current||!l.current)&&A(Q=>Q+1),(L=n.event)!=null&&L.rcbPostInjectMessage&&await y(j.POST_INJECT_MESSAGE,{message:N}),o(Q=>[...Q,N]),v(i.current),k==="USER"&&typeof D=="string"&&(d.current=D),N},[n,y,v,d,i,l,h,A]),C=q(async D=>{var k;const S=i.current.find(B=>B.id===D);return!S||(k=n.event)!=null&&k.rcbRemoveMessage&&(await y(j.REMOVE_MESSAGE,{message:S})).defaultPrevented?null:(o(B=>B.filter(L=>L.id!==D)),v(i.current),A(B=>Math.max(B-1,0)),S)},[y,(e=n.event)==null?void 0:e.rcbRemoveMessage,v,i,A]),E=q(async(D,k="BOT")=>{var S,B;if(k=k.toUpperCase(),!c.current.has(k)){const N=st(D,k);return(S=n.event)!=null&&S.rcbStartStreamMessage&&(await y(j.START_STREAM_MESSAGE,{message:N})).defaultPrevented?null:(a(!1),o(Q=>[...Q,N]),v(i.current),c.current.set(k,N.id),(s.current||!l.current)&&A(Q=>Q+1),N)}const L={...st(D,k),id:c.current.get(k)};return(B=n.event)!=null&&B.rcbChunkStreamMessage&&(await y(j.CHUNK_STREAM_MESSAGE,{message:L})).defaultPrevented?null:(o(N=>N.map(Q=>Q.id===L.id?L:Q)),v(i.current,!0),L)},[y,n.event,v,i,a,A,c]),_=q(async(D="BOT")=>{var k;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 N=i.current.find(Q=>Q.id===S);N&&(B=N),await new Promise(Q=>setTimeout(Q,20))}return((k=n.event)==null||!k.rcbStopStreamMessage||!(await y(j.STOP_STREAM_MESSAGE,{message:B})).defaultPrevented)&&(c.current.delete(D),br(i.current),D==="USER"&&typeof(B==null?void 0:B.content)=="string"&&(d.current=B.content),!0)},[y,(t=n.event)==null?void 0:t.rcbStopStreamMessage,c,d]),I=q(D=>{const k=typeof D=="function"?D(i.current):D;o(k),v(k)},[v,i]);return{simulateStreamMessage:g,injectMessage:x,removeMessage:C,streamMessage:E,endStreamMessage:_,replaceMessages:I,messages:r}};let Pr,Ke,_n,ct=!1,$e=null;const kr=()=>{if(!Pr){const e=window.SpeechRecognition||window.webkitSpeechRecognition;Pr=e!=null?new e:null}return Pr},kl=(e,t,n,r,o,i)=>{var a,A,s;const l=kr();if(!l)return;if(!ct)try{ct=!0,l.lang=(a=e.voice)==null?void 0:a.language,l.start()}catch{}const c=(A=e.voice)==null?void 0:A.timeoutPeriod,u=(s=e.voice)==null?void 0:s.autoSendPeriod;l.onresult=d=>{var p,f;clearTimeout(Ke),Ke=null,clearTimeout(_n);const y=d.results[d.results.length-1][0].transcript;if(i.current){const h=(p=e.chatInput)==null?void 0:p.characterLimit,w=i.current.value+y;h!=null&&h>=0&&w.length>h?r(w.slice(0,h)):r(w),o(i.current.value.length)}c&&(Ke=setTimeout(async()=>await _r(t,i),c)),(f=e.voice)!=null&&f.autoSendDisabled||(_n=setTimeout(n,u))},l.onend=()=>{ct?(l.start(),!Ke&&c&&(Ke=setTimeout(async()=>await _r(t,i),c))):(clearTimeout(Ke),Ke=null,clearTimeout(_n))},c&&(Ke=setTimeout(async()=>await _r(t,i),c))},Cl=(e,t)=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(n=>{if($e=new MediaRecorder(n),!ct)try{ct=!0,$e.start()}catch{}$e.ondataavailable=r=>{t.current&&t.current.push(r.data)},$e.onstop=()=>{e(),n.getTracks().forEach(r=>r.stop())}}).catch(n=>{console.error("Unable to use microphone:",n)})},Cr=()=>{const e=kr();e&&(ct=!1,e&&e.stop(),$e&&$e.state!=="inactive"&&($e.stop(),$e=null),clearTimeout(Ke),Ke=null,clearTimeout(_n))},_r=async(e,t)=>{var n;(n=t.current)!=null&&n.disabled||await e(),Cr()},Dr=()=>{const{settings:e}=Z(),{voiceToggledOn:t,setSyncedVoiceToggledOn:n,syncedVoiceToggledOnRef:r}=we(),{dispatchRcbEvent:o}=Ge(),i=q(async A=>{var s;A!==r.current&&((s=e.event)!=null&&s.rcbToggleVoice&&(await o(j.TOGGLE_VOICE,{currState:r.current,newState:!r.current})).defaultPrevented||n(l=>!l))},[r]),a=q(A=>{((s,l)=>{var c,u,d;const p=kr();(c=l.voice)!=null&&c.disabled||(u=l.chatInput)==null||!u.blockSpam||!p||(s&&!ct?(ct=!0,(d=l.voice)!=null&&d.sendAsAudio?$e==null||$e.start():p.start()):s||Cr())})(A,e)},[e]);return{voiceToggledOn:t,toggleVoice:i,syncVoice:a}},bt=()=>{var e;const{settings:t}=Z(),{inputLength:n,setInputLength:r,textAreaDisabled:o,setSyncedTextAreaDisabled:i,textAreaSensitiveMode:a,setSyncedTextAreaSensitiveMode:A,syncedTextAreaDisabledRef:s,syncedTextAreaSensitiveModeRef:l}=we(),{inputRef:c,chatBodyRef:u,prevInputRef:d}=ye(),{dispatchRcbEvent:p}=Ge(),{getIsChatBotVisible:f}=Qe(),y=q(async E=>{var _,I,D;if(s.current&&c.current)c.current.value="";else if(c.current&&d.current!==null){const k=(_=t.chatInput)==null?void 0:_.characterLimit,S=(I=t.chatInput)!=null&&I.allowNewline?E:E.replace(/\n/g," ");if(k!=null&&k>=0&&S.length>k?c.current.value=S.slice(0,k):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}},[s,c,d,t,p]),h=q(E=>{var _;(_=c.current)!=null&&_.disabled||setTimeout(()=>{var I,D,k;(I=t.general)!=null&&I.embedded?f()&&((D=c.current)==null||D.focus()):E!=="start"&&((k=c.current)==null||k.focus())},100)},[c,(e=t.general)==null?void 0:e.embedded,u,f]),w=q(()=>{c.current&&c.current.focus()},[]),v=q(()=>{c.current&&c.current.blur()},[]),g=q(()=>c&&c.current?c.current.value:"",[]),x=q(E=>{E!==s.current&&i(_=>!_)},[s]),C=q(E=>{E!==l.current&&A(_=>!_)},[l]);return{textAreaDisabled:o,setSyncedTextAreaDisabled:i,textAreaSensitiveMode:a,setSyncedTextAreaSensitiveMode:A,inputLength:n,setInputLength:r,getTextAreaValue:g,setTextAreaValue:y,updateTextAreaFocus:h,focusTextArea:w,blurTextArea:v,toggleTextAreaDisabled:x,toggleTextAreaSensitiveMode:C}},Yi=Ve({toasts:[],setSyncedToasts:()=>{},syncedToastsRef:{current:[]}}),Xi=()=>We(Yi),_l=({children:e})=>{const[t,n,r]=Te([]);return P(Yi.Provider,{value:{toasts:t,setSyncedToasts:n,syncedToastsRef:r},children:e})},Qt=()=>{const{settings:e}=Z(),{toasts:t,setSyncedToasts:n,syncedToastsRef:r}=Xi(),{dispatchRcbEvent:o}=Ge(),i=q(async(s,l)=>{var c,u,d,p;let f=null;if(r.current.length>=(((c=e.toast)==null?void 0:c.maxCount)??3)){if((u=e.toast)!=null&&u.forbidOnMax)return null;f=Pn();let h={id:f,content:s,timeout:l};if((d=e.event)!=null&&d.rcbShowToast){const w=await o(j.SHOW_TOAST,{toast:h});if(w.defaultPrevented)return null;h=w.data.toast}return n(w=>[...w.slice(1),h]),f}f=Pn();let y={id:f,content:s,timeout:l};if((p=e.event)!=null&&p.rcbShowToast){const h=await o(j.SHOW_TOAST,{toast:y});if(h.defaultPrevented)return null;y=h.data.toast}return n(h=>[...h,y]),f},[e,o]),a=q(async s=>{var l;const c=r.current.find(u=>u.id===s);return!c||(l=e.event)!=null&&l.rcbDismissToast&&(await o(j.DISMISS_TOAST,{toast:c})).defaultPrevented?null:(n(u=>u.filter(d=>d.id!==s)),s)},[o]),A=q(s=>{const l=typeof s=="function"?s(r.current):s;n(l)},[r]);return{showToast:i,dismissToast:a,toasts:t,replaceToasts:A}},Dn=()=>{var e,t,n,r,o;const{settings:i}=Z(),{paths:a,setSyncedPaths:A,syncedPathsRef:s}=en(),{flowRef:l,streamMessageMap:c,paramsInputRef:u,keepVoiceOnRef:d,timeoutIdRef:p}=ye(),{setSyncedIsBotTyping:f,setSyncedTextAreaDisabled:y,setSyncedTextAreaSensitiveMode:h,blockAllowsAttachment:w,setBlockAllowsAttachment:v}=we(),{dispatchRcbEvent:g}=Ge(),{endStreamMessage:x,injectMessage:C,removeMessage:E,simulateStreamMessage:_,streamMessage:I}=yt(),{showToast:D,dismissToast:k}=Qt(),{toggleChatWindow:S}=Qe(),{updateTextAreaFocus:B,setTextAreaValue:L}=bt(),{syncVoice:N}=Dr(),Q=q(async b=>{var F;if((F=i.event)!=null&&F.rcbPostProcessBlock){const K=await g(j.POST_PROCESS_BLOCK,{block:b});if(K.defaultPrevented)return null;b=K.data.block}return b},[(e=i.event)==null?void 0:e.rcbPostProcessBlock,g]),W=q(async(b,F)=>{var K,z,ne,fe;if(!b)return;let de=l.current[b];if(!de)return void f(!1);if((K=i.event)!=null&&K.rcbPreProcessBlock){const me=await g(j.PRE_PROCESS_BLOCK,{block:de});if(me.defaultPrevented)return;de=me.data.block}f(!0),(z=i.chatInput)!=null&&z.blockSpam&&y(!0),h(!1);const Be={prevPath:F,currPath:b,goToPath:m,setTextAreaValue:L,userInput:u.current,endStreamMessage:x,injectMessage:C,removeMessage:E,simulateStreamMessage:_,streamMessage:I,toggleChatWindow:S,showToast:D,dismissToast:k};await(async(me,Ce,ft,ze,je,Ne,Le)=>{if(!me)throw new Error("Block is not valid.");for(const nt of Object.keys(me))switch(nt){case"message":await ll(me,Ce,ft);break;case"options":await ul(me,Ce);break;case"checkboxes":await Al(me,Ce);break;case"component":await dl(me,Ce);break;case"chatDisabled":await fl(me,Ce,je);break;case"isSensitive":await Ui(me,Ce,Ne);break;case"transition":await pl(me,Ce,ze,Le)}})(de,Be,((ne=i.botBubble)==null?void 0:ne.simulateStream)??!1,p,y,h,Q),f(!1),"chatDisabled"in de||y((fe=i.chatInput)==null?void 0:fe.disabled),"isSensitive"in de||h(!1),v(typeof de.file=="function"),B(b),N(d.current&&!de.chatDisabled),b!==F&&c.current.clear()},[l,B,N,(t=i.botBubble)==null?void 0:t.simulateStream,(n=i.chatInput)==null?void 0:n.disabled,u,x,C,E,_,I,S,D,k,d,c]),O=q(()=>s.current.length>0?s.current.at(-1)??null:null,[]),H=q(()=>s.current.length>1?s.current.at(-2)??null:null,[]),m=q(async b=>{var F;const K=O(),z=H();return((F=i.event)==null||!F.rcbChangePath||!(await g(j.CHANGE_PATH,{currPath:K,prevPath:z,nextPath:b})).defaultPrevented)&&(A(ne=>[...ne,b]),await W(b,K),!0)},[(r=i.chatInput)==null?void 0:r.blockSpam,(o=i.event)==null?void 0:o.rcbChangePath,W,g]),U=q(b=>{const F=typeof b=="function"?b(s.current):b;A(F)},[s]);return{getCurrPath:O,getPrevPath:H,goToPath:m,blockAllowsAttachment:w,setBlockAllowsAttachment:v,paths:a,replacePaths:U,firePostProcessBlockEvent:Q}},Mt=()=>{var e,t,n,r;const{settings:o}=Z(),{endStreamMessage:i,injectMessage:a,removeMessage:A,simulateStreamMessage:s,streamMessage:l}=yt(),{syncedPathsRef:c}=en(),{getCurrPath:u,getPrevPath:d,goToPath:p,firePostProcessBlockEvent:f}=Dn(),{setSyncedTextAreaSensitiveMode:y,setSyncedTextAreaDisabled:h,setSyncedIsBotTyping:w,setBlockAllowsAttachment:v,setInputLength:g,syncedVoiceToggledOnRef:x,syncedTextAreaSensitiveModeRef:C}=we(),{flowRef:E,inputRef:_,keepVoiceOnRef:I,paramsInputRef:D,timeoutIdRef:k}=ye(),{showToast:S,dismissToast:B}=Qt(),{dispatchRcbEvent:L}=Ge(),{syncVoice:N}=Dr(),{setTextAreaValue:Q}=bt(),{toggleChatWindow:W}=Qe(),O=q(async m=>{var U,b,F,K,z,ne;const fe=u();if(fe&&E.current[fe]){if(C.current){if((U=o==null?void 0:o.sensitiveInput)!=null&&U.hideInUserBubble)return;if((b=o==null?void 0:o.sensitiveInput)!=null&&b.maskInUserBubble)return void((F=o.userBubble)!=null&&F.simulateStream?await s("*".repeat(((K=o.sensitiveInput)==null?void 0:K.asterisksCount)??10),"USER"):await a("*".repeat(((z=o.sensitiveInput)==null?void 0:z.asterisksCount)??10),"USER"))}(ne=o.userBubble)!=null&&ne.simulateStream?await s(m,"USER"):await a(m,"USER")}},[E,u,o,a,s,C]),H=q(async(m,U=!0)=>{var b,F;if((m=m.trim())==="")return;U&&await O(m),k.current&&clearTimeout(k.current),_.current&&(Q(""),g(0));const K=u();if(!K)return;let z=E.current[K];const ne=await f(z);ne&&((b=o.chatInput)!=null&&b.blockSpam&&h(!0),I.current=x.current,N(!1),setTimeout(()=>{w(!0)},400),y(!1),setTimeout(async()=>{var fe;const de={prevPath:d(),currPath:u(),goToPath:p,setTextAreaValue:Q,userInput:D.current,injectMessage:a,simulateStreamMessage:s,streamMessage:l,removeMessage:A,endStreamMessage:i,toggleChatWindow:W,showToast:S,dismissToast:B},Be=c.current.length;await Fi(ne,de),c.current.length===Be&&(h("chatDisabled"in z?!!z.chatDisabled:!((fe=o.chatInput)==null||!fe.disabled)),Ui(z,de,y),v(typeof z.file=="function"),N(I.current),w(!1))},(F=o.chatInput)==null?void 0:F.botDelay))},[k,(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,N,O,d,u,p,a,s,l,A,i,W,S,B,E]);return{handleSubmitText:q(async(m,U=!0)=>{var b,F;m=m??((b=_.current)==null?void 0:b.value),!((F=o.event)!=null&&F.rcbUserSubmitText&&(await L(j.USER_SUBMIT_TEXT,{inputText:m,sendInChat:U})).defaultPrevented||!u())&&H(m,U)},[L,u,H,_,(r=o.event)==null?void 0:r.rcbUserSubmitText])}},Bn=()=>{var e;const{settings:t}=Z();return ve(()=>{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])},Dl=({buttons:e})=>{var t,n,r,o,i,a,A,s,l,c,u;const d=Bn(),{settings:p}=Z(),{styles:f}=Ae(),{textAreaDisabled:y,textAreaSensitiveMode:h,inputLength:w,hasFlowStarted:v,setHasFlowStarted:g,setInputLength:x}=we(),{inputRef:C}=ye(),[E,_]=ee(!1),[I,D]=ee(!1),{handleSubmitText:k}=Mt(),{setTextAreaValue:S}=bt(),B={boxSizing:d?"content-box":"border-box",...f.chatInputAreaStyle},L={outline:y?"":"none",boxShadow:y?"":`0 0 5px ${(t=p.general)==null?void 0:t.primaryColor}`,boxSizing:d?"content-box":"border-box",...f.chatInputAreaStyle,...f.chatInputAreaFocusedStyle},N={cursor:`url("${(n=p.general)==null?void 0:n.actionDisabledIcon}"), auto`,caretColor:"transparent",boxSizing:d?"content-box":"border-box",...f.chatInputAreaStyle,...f.chatInputAreaDisabledStyle},Q={color:"#989898",...f.characterLimitStyle},W={color:"#ff0000",...f.characterLimitReachedStyle},O=y?(r=p.chatInput)==null?void 0:r.disabledPlaceholderText:(o=p.chatInput)==null?void 0:o.enabledPlaceholderText,H=()=>{y||_(!0)},m=()=>{_(!1)},U=()=>{D(!0)},b=()=>{D(!1)},F=async z=>{var ne;if(!I&&z.key==="Enter"){if(z.shiftKey)return void((ne=p.chatInput)!=null&&ne.allowNewline||z.preventDefault());z.preventDefault(),await k()}},K=z=>{C.current&&(S(z.target.value),x(C.current.value.length))};return P("div",{"aria-label":((i=p.ariaLabel)==null?void 0:i.inputTextArea)??"input text area",role:"textbox",onMouseDown:z=>{var ne;z.stopPropagation(),!v&&((ne=p.general)==null?void 0:ne.flowStartTrigger)==="ON_CHATBOT_INTERACT"&&g(!0)},style:{...f.chatInputContainerStyle},className:"rcb-chat-input",children:[h&&(a=p.sensitiveInput)!=null&&a.maskInTextArea?P("input",{ref:C,type:"password",className:"rcb-chat-input-textarea",style:y?N:E?L:B,placeholder:O,onChange:K,onKeyDown:F,onFocus:H,onBlur:m,onCompositionStart:U,onCompositionEnd:b}):P("textarea",{ref:C,style:y?N:E?L:B,rows:1,className:"rcb-chat-input-textarea",placeholder:O,onChange:K,onKeyDown:F,onFocus:H,onBlur:m,onCompositionStart:U,onCompositionEnd:b}),P(oe,{children:[e==null?void 0:e.map((z,ne)=>P(oe,{children:z},ne)),((A=p.chatInput)==null?void 0:A.showCharacterCount)&&((s=p.chatInput)==null?void 0:s.characterLimit)!=null&&((l=p.chatInput)==null?void 0:l.characterLimit)>0&&P("div",{className:"rcb-chat-input-char-counter",style:w>=((c=p.chatInput)==null?void 0:c.characterLimit)?W:Q,children:[w,"/",(u=p.chatInput)==null?void 0:u.characterLimit]})]})]})},Bl=({buttons:e})=>{var t;const{settings:n}=Z(),{styles:r}=Ae();return P("div",{"data-testid":"chatbot-footer-container",style:{...r.footerStyle},className:"rcb-chat-footer-container",children:[P("div",{className:"rcb-chat-footer",children:e==null?void 0:e.map((o,i)=>P(oe,{children:o},i))}),P("span",{children:(t=n.footer)==null?void 0:t.text})]})},Sl=()=>{var e,t,n,r,o,i,a;const{settings:A}=Z(),{styles:s}=Ae(),{unreadCount:l}=we(),{isChatWindowOpen:c,toggleChatWindow:u}=Qe(),[d,p]=ee(!1),f={backgroundImage:`linear-gradient(to right, ${(e=A.general)==null?void 0:e.secondaryColor},
|
|
3
|
-
${(t=A.general)==null?void 0:t.primaryColor})`,...s.chatButtonStyle},y={transform:"scale(1.05)",...s.chatButtonStyle,...s.chatButtonHoveredStyle},h={backgroundImage:`url(${(n=A.chatButton)==null?void 0:n.icon})`,fill:"#fff",width:75,height:75,...s.chatIconStyle};return P(oe,{children:!((r=A.general)!=null&&r.embedded)&&P("div",{"aria-label":((o=A.ariaLabel)==null?void 0:o.chatButton)??"open chat",role:"button",style:d?y:f,className:"rcb-toggle-button "+(c?"rcb-button-hide":"rcb-button-show"),onMouseEnter:()=>{p(!0)},onMouseLeave:()=>{p(!1)},onClick:()=>u(!0),children:[(()=>{var w;const v=(w=A.chatButton)==null?void 0:w.icon;return v&&typeof v!="string"?v&&P("span",{className:"rcb-toggle-icon",children:P(v,{style:h})}):P("span",{className:"rcb-toggle-icon",style:h})})(),!((i=A.notification)!=null&&i.disabled)&&((a=A.notification)==null?void 0:a.showCount)&&P("span",{style:{...s.notificationBadgeStyle},className:"rcb-badge",children:l})]})})},Il=()=>{var e,t,n,r;const o=Bn(),{settings:i}=Z(),{styles:a}=Ae(),{chatBodyRef:A}=ye(),{isChatWindowOpen:s,toggleChatWindow:l}=Qe(),[c,u]=ee(!1),[d,p]=ee(!1),[f,y]=ee(0);te(()=>{var v,g,x;const C=(v=i.tooltip)==null?void 0:v.mode;if(C==="ALWAYS")if(o){let E;E=s?(((g=A.current)==null?void 0:g.offsetWidth)??375)-(typeof((x=a.chatButtonStyle)==null?void 0:x.width)=="number"?a.chatButtonStyle.width:75):0,y(E),u(!0)}else u(!s);else C==="NEVER"?u(!1):C==="START"?d?u(!1):(p(!0),u(!0)):C==="CLOSE"&&u(!s)},[s]);const h={transform:`translateX(-${f}px)`,right:(((e=a.chatButtonStyle)==null?void 0:e.width)??75)+40,bottom:30,backgroundColor:(t=i.general)==null?void 0:t.secondaryColor,color:"#fff",...a.tooltipStyle},w={borderColor:`transparent transparent transparent ${h.backgroundColor}`};return P(oe,{children:!((n=i.general)!=null&&n.embedded)&&P("div",{"data-testid":"chat-tooltip",style:h,className:"rcb-chat-tooltip "+(c?"rcb-tooltip-show":"rcb-tooltip-hide"),onClick:()=>l(!0),children:[P("span",{children:(r=i.tooltip)==null?void 0:r.text}),P("span",{className:"rcb-chat-tooltip-tail",style:w})]})})},Tl=({id:e,content:t,timeout:n})=>{var r,o;const{settings:i}=Z(),{styles:a}=Ae(),[A]=ee({toastPromptStyle:{...a.toastPromptStyle},toastPromptHoveredStyle:{...a.toastPromptHoveredStyle}}),{dismissToast:s}=Qt(),[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 te(()=>{if(n){const d=setTimeout(()=>{s(e)},n);return()=>clearTimeout(d)}},[e,s,n]),typeof t=="string"?P("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 s(e))},className:"rcb-toast-prompt",children:t}):P(oe,{children:t})},Ql=()=>{var e,t,n,r,o,i,a,A,s,l,c,u;const{styles:d}=Ae(),{toasts:p}=Xi(),f={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((a=d.chatWindowStyle)==null?void 0:a.width)=="number"?`${(A=d.chatWindowStyle)==null?void 0:A.width}px`:((s=d.chatWindowStyle)==null?void 0:s.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 P("div",{className:"rcb-toast-prompt-container",style:f,children:p.map(y=>P(Tl,{id:y.id,content:y.content,timeout:y.timeout},y.id))})},Vi=({file:e,fileType:t,fileUrl:n})=>{var r,o,i;const{settings:a}=Z(),{styles:A}=Ae(),s={backgroundColor:(r=a.general)==null?void 0:r.primaryColor,maxWidth:(o=a.userBubble)!=null&&o.showAvatar?"65%":"70%",...A.mediaDisplayContainerStyle};return P(oe,{children:n?P(oe,{children:[t==="image"&&n&&P("div",{style:s,className:"rcb-media-display-image-container rcb-media-entry","data-testid":"media-display-image-container",children:P("img",{src:n,alt:"Image Display",className:"rcb-media-display-image"})}),t==="video"&&n&&P("div",{style:s,className:"rcb-media-display-video-container rcb-media-entry","data-testid":"media-display-video-container",children:P("video",{controls:!0,className:"rcb-media-display-video",children:[P("source",{src:n,type:e.type}),"Your browser does not support the video tag."]})}),t==="audio"&&n&&P("audio",{"data-testid":"media-display-audio-container",style:{maxWidth:(i=a.userBubble)!=null&&i.showAvatar?"65%":"70%"},controls:!0,className:"rcb-media-display-audio rcb-media-entry",children:[P("source",{src:n,type:e.type}),"Your browser does not support the audio tag."]})]}):P(oe,{})})},Ki=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}}},Ml=()=>{var e,t,n,r,o,i;const{settings:a}=Z(),{styles:A}=Ae(),{injectMessage:s,simulateStreamMessage:l,streamMessage:c,removeMessage:u,endStreamMessage:d}=yt(),{getCurrPath:p,getPrevPath:f,goToPath:y,blockAllowsAttachment:h}=Dn(),{flowRef:w,inputRef:v}=ye(),g=w.current,{showToast:x,dismissToast:C}=Qt(),{dispatchRcbEvent:E}=Ge(),{toggleChatWindow:_}=Qe(),{setTextAreaValue:I}=bt(),{handleSubmitText:D}=Mt(),k={cursor:`url("${(e=a.general)==null?void 0:e.actionDisabledIcon}"), auto`,...A.fileAttachmentButtonStyle,...A.fileAttachmentButtonDisabledStyle},S={backgroundImage:`url(${(t=a.fileAttachment)==null?void 0:t.icon})`,fill:"#a6a6a6",...A.fileAttachmentIconStyle},B={backgroundImage:`url(${(n=a.fileAttachment)==null?void 0:n.icon})`,fill:"#a6a6a6",...A.fileAttachmentIconStyle,...A.fileAttachmentIconDisabledStyle};return P("label",{"aria-label":((r=a.ariaLabel)==null?void 0:r.fileAttachmentButton)??"upload file",role:"button",className:h?"rcb-attach-button-enabled":"rcb-attach-button-disabled",style:h?{...A.fileAttachmentButtonStyle}:k,children:[P("input",{className:"rcb-attach-input",role:"file",type:"file",onChange:async L=>{var N,Q,W,O;const H=L.target.files;if(!H)return;const m=Array.from(H);if(L.target.value="",(N=a.event)!=null&&N.rcbUserUploadFile&&(await E(j.USER_UPLOAD_FILE,{files:m})).defaultPrevented)return;const U=p();if(!U)return;const b=g[U];if(!b)return;const F=b.file;if(F!=null){const K=[];for(let z=0;z<m.length;z++){if(K.push(m[z].name),(Q=a.fileAttachment)==null||!Q.showMediaDisplay)continue;const ne=await Ki(m[z]);!ne.fileType||!ne.fileUrl||await s(P(Vi,{file:m[z],fileType:ne.fileType,fileUrl:ne.fileUrl}),"USER")}await D("📄 "+K.join(", "),(W=a.fileAttachment)==null?void 0:W.sendFileName),await F({userInput:(O=v.current)==null?void 0:O.value,prevPath:f(),currPath:p(),goToPath:y,setTextAreaValue:I,injectMessage:s,simulateStreamMessage:l,streamMessage:c,removeMessage:u,endStreamMessage:d,toggleChatWindow:_,showToast:x,dismissToast:C,files:m})}},multiple:(o=a.fileAttachment)==null?void 0:o.multiple,accept:(i=a.fileAttachment)==null?void 0:i.accept,disabled:!h}),(()=>{var L,N;const Q=h?(L=a.fileAttachment)==null?void 0:L.icon:(N=a.fileAttachment)==null?void 0:N.iconDisabled;return Q&&typeof Q!="string"?Q&&P("span",{className:h?"rcb-attach-icon-enabled":"rcb-attach-icon-disabled",children:P(Q,{style:h?S:B})}):P("span",{className:h?"rcb-attach-icon-enabled":"rcb-attach-icon-disabled",style:h?S:B})})()]})},Ol=()=>{var e,t,n,r,o,i;const{settings:a}=Z(),{styles:A}=Ae(),{syncedTextAreaDisabledRef:s}=we(),{inputRef:l}=ye(),{textAreaDisabled:c,setTextAreaValue:u}=bt(),d=ie(null),p=ie(null),[f,y]=ee(!1),h={cursor:`url("${(e=a.general)==null?void 0:e.actionDisabledIcon}"), auto`,...A.emojiButtonStyle,...A.emojiButtonDisabledStyle},w={backgroundImage:`url(${(t=a.emoji)==null?void 0:t.icon})`,fill:"#a6a6a6",...A.emojiIconStyle},v={backgroundImage:`url(${(n=a.emoji)==null?void 0:n.icon})`,fill:"#a6a6a6",...A.emojiIconStyle,...A.emojiIconDisabledStyle};return te(()=>{const g=C=>{const E=C.composedPath();d.current&&!E.includes(d.current)&&p.current&&!E.includes(p.current)&&y(!1)},x=()=>{(()=>{if(d.current&&p.current){const C=p.current.getBoundingClientRect(),E=d.current.offsetHeight,_=C.top-E-8;d.current.style.left=`${C.left}px`,d.current.style.top=`${_}px`}})()};return document.addEventListener("mousedown",g),window.addEventListener("resize",x),()=>{document.removeEventListener("mousedown",g),window.removeEventListener("resize",x)}},[]),P(oe,{children:[P("div",{"aria-label":((r=a.ariaLabel)==null?void 0:r.emojiButton)??"emoji picker",role:"button",ref:p,className:c?"rcb-emoji-button-disabled":"rcb-emoji-button-enabled",style:c?h:{...A.emojiButtonStyle},onMouseDown:g=>{g.preventDefault(),s.current?y(!1):y(x=>!x)},children:(()=>{var g,x;const C=c?(g=a.emoji)==null?void 0:g.iconDisabled:(x=a.emoji)==null?void 0:x.icon;return C&&typeof C!="string"?C&&P("span",{className:c?"rcb-emoji-icon-disabled":"rcb-emoji-icon-enabled",children:P(C,{style:c?v:w})}):P("span",{className:c?"rcb-emoji-icon-disabled":"rcb-emoji-icon-enabled",style:c?v:w})})()}),f&&P("div",{className:"rcb-emoji-button-popup",ref:d,children:(i=(o=a.emoji)==null?void 0:o.list)==null?void 0:i.map((g,x)=>P("span",{className:"rcb-emoji",onMouseDown:C=>((E,_)=>{E.preventDefault(),l.current&&(u(l.current.value+_),setTimeout(()=>{const I=l.current;if(I){I.focus();const D=I.value.length;I.setSelectionRange(D,D)}},50)),y(!1)})(C,g),children:g},x))})]})},Nl=()=>{var e,t,n;const{settings:r}=Z(),{styles:o}=Ae(),{audioToggledOn:i,toggleAudio:a}=qi(),A={backgroundImage:`url(${(e=r.audio)==null?void 0:e.icon})`,fill:"#fcec3d",...o.audioIconStyle},s={backgroundImage:`url(${(t=r.audio)==null?void 0:t.iconDisabled})`,fill:"#e8eaed",...o.audioIconStyle,...o.audioIconDisabledStyle};return P("div",{"aria-label":((n=r.ariaLabel)==null?void 0:n.audioButton)??"toggle audio",role:"button",onMouseDown:async l=>{l.preventDefault(),await a()},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&&P("span",{className:"rcb-audio-icon","data-testid":"rcb-audio-icon",children:P(u,{style:i?A:s,"data-testid":"rcb-audio-icon-svg"})}):P("span",{className:"rcb-audio-icon","data-testid":"rcb-audio-icon",style:i?A:s})})()})},Ll=()=>{var e,t;const{settings:n}=Z(),{styles:r}=Ae(),{toggleChatWindow:o}=Qe(),i={backgroundImage:`url(${(e=n.header)==null?void 0:e.closeChatIcon})`,fill:"#e8eaed",stroke:"#e8eaed",...r.closeChatIconStyle};return P("div",{"aria-label":((t=n.ariaLabel)==null?void 0:t.closeChatButton)??"close chat",role:"button",onMouseDown:a=>{a.stopPropagation(),o(!1)},style:{...r.closeChatButtonStyle},children:(()=>{var a;const A=(a=n.header)==null?void 0:a.closeChatIcon;return A&&typeof A!="string"?A&&P("span",{className:"rcb-close-chat-icon","data-testid":"rcb-close-chat-icon",children:P(A,{style:i})}):P("span",{className:"rcb-close-chat-icon","data-testid":"rcb-close-chat-icon",style:i})})()})},Rl=()=>{var e,t,n;const{settings:r}=Z(),{styles:o}=Ae(),{notificationsToggledOn:i,toggleNotifications:a}=(()=>{const{notificationsToggledOn:l,toggleNotifications:c,playNotificationSound:u}=Er();return{notificationsToggledOn:l,toggleNotifications:c,playNotificationSound:u}})(),A={backgroundImage:`url(${(e=r.notification)==null?void 0:e.icon})`,fill:"#fcec3d",...o.notificationIconStyle},s={backgroundImage:`url(${(t=r.notification)==null?void 0:t.iconDisabled})`,fill:"#e8eaed",...o.notificationIconStyle,...o.notificationIconDisabledStyle};return P("div",{"aria-label":((n=r.ariaLabel)==null?void 0:n.notificationButton)??"toggle notifications",role:"button",onMouseDown:async l=>{l.preventDefault(),await a()},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&&P("span",{className:"rcb-notification-icon","data-testid":"rcb-notification-icon",children:P(u,{style:i?A:s,"data-testid":"rcb-notification-icon-svg"})}):P("span",{className:"rcb-notification-icon","data-testid":"rcb-notification-icon",style:i?A:s})})()})},Hl=()=>{var e,t,n;const{settings:r}=Z(),{styles:o}=Ae(),{injectMessage:i}=yt(),{inputRef:a}=ye(),{voiceToggledOn:A,toggleVoice:s}=Dr(),{setInputLength:l,setTextAreaValue:c,textAreaDisabled:u}=bt(),{handleSubmitText:d}=Mt(),p=ie([]),[f,y]=ee(!1);te(()=>{var x;(x=r.voice)!=null&&x.sendAsAudio?(g(),p.current=[]):d()},[f]),te(()=>{A?((x,C,E,_,I,D,k)=>{var S;(S=x.voice)!=null&&S.sendAsAudio?Cl(E,D):kl(x,C,E,_,I,k)})(r,s,v,c,l,p,a):Cr()},[A]);const h={backgroundImage:`url(${(e=r.voice)==null?void 0:e.icon})`,fill:"#9aa0a6",...o.voiceIconStyle},w={backgroundImage:`url(${(t=r.voice)==null?void 0:t.iconDisabled})`,fill:"#9aa0a6",...o.voiceIconStyle,...o.voiceIconDisabledStyle},v=()=>{y(x=>!x)},g=async()=>{const x=new Blob(p.current,{type:"audio/wav"}),C=new File([x],"voice-input.wav",{type:"audio/wav"}),E=await Ki(C);!E.fileType||!E.fileUrl||await i(P(Vi,{file:C,fileType:E.fileType,fileUrl:E.fileUrl}),"USER")};return P("div",{"aria-label":((n=r.ariaLabel)==null?void 0:n.voiceButton)??"toggle voice",role:"button",onMouseDown:async x=>{x.preventDefault(),!u&&await s()},style:A&&!u?{...o.voiceButtonStyle}:{...o.voiceButtonStyle,...o.voiceButtonDisabledStyle},className:A&&!u?"rcb-voice-button-enabled":"rcb-voice-button-disabled",children:(()=>{var x,C;const E=A?(x=r.voice)==null?void 0:x.icon:(C=r.voice)==null?void 0:C.iconDisabled;return E&&typeof E!="string"?E&&P("span",{className:"rcb-voice-icon "+(A&&!u?"on":""),children:P(E,{style:A&&!u?h:w})}):P("span",{className:"rcb-voice-icon"+(A&&!u?"-on":""),"data-testid":"rcb-voice-icon",style:A&&!u?h:w})})()})},Ul=()=>{var e,t,n,r,o,i,a,A;const{settings:s}=Z(),{styles:l}=Ae(),{textAreaDisabled:c}=we(),[u,d]=ee(!1),{handleSubmitText:p}=Mt(),f={backgroundColor:(e=s.general)==null?void 0:e.primaryColor,...l.sendButtonStyle},y={cursor:`url("${(t=s.general)==null?void 0:t.actionDisabledIcon}"), auto`,backgroundColor:(n=s.general)==null?void 0:n.primaryColor,...l.sendButtonStyle,...l.sendButtonDisabledStyle},h={backgroundColor:(r=s.general)==null?void 0:r.secondaryColor,...l.sendButtonStyle,...l.sendButtonHoveredStyle},w={backgroundImage:`url(${(o=s.chatInput)==null?void 0:o.sendButtonIcon})`,fill:"#fff",...l.sendIconStyle},v={backgroundImage:`url(${(i=s.chatInput)==null?void 0:i.sendButtonIcon})`,fill:"#fff",...l.sendIconStyle,...l.sendIconDisabledStyle},g={backgroundImage:`url(${(a=s.chatInput)==null?void 0:a.sendButtonIcon})`,fill:"#fff",...l.sendIconStyle,...l.sendIconHoveredStyle};return P("div",{"aria-label":((A=s.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?y:u?h:f,className:"rcb-send-button",children:(()=>{var x;const C=(x=s.chatInput)==null?void 0:x.sendButtonIcon;return C&&typeof C!="string"?C&&P("span",{className:"rcb-send-icon","data-testid":"rcb-send-icon",children:P(C,{style:c?v:u?g:w})}):P("span",{className:"rcb-send-icon","data-testid":"rcb-send-icon",style:c?v:u?g:w})})()})},Fl=(e,t)=>{var n,r,o,i,a,A,s,l,c;const u={[ge.AUDIO_BUTTON]:(n=e.audio)==null?void 0:n.disabled,[ge.CLOSE_CHAT_BUTTON]:(r=e.general)==null?void 0:r.embedded,[ge.EMOJI_PICKER_BUTTON]:(o=e.emoji)==null?void 0:o.disabled,[ge.FILE_ATTACHMENT_BUTTON]:(i=e.fileAttachment)==null?void 0:i.disabled,[ge.NOTIFICATION_BUTTON]:(a=e.notification)==null?void 0:a.disabled,[ge.SEND_MESSAGE_BUTTON]:!1,[ge.VOICE_MESSAGE_BUTTON]:(A=e.voice)==null?void 0:A.disabled},d={},p=f=>f?f.map(y=>{if(typeof y=="string"){if((h=>Object.values(ge).includes(h))(y)&&!u[y]){if(d[y])return d[y];const h=t[y];if(typeof h=="function"){const w=h();return d[y]=w,w}return null}return null}return y}).filter(y=>y!==null):[];return{header:p((s=e.header)==null?void 0:s.buttons),chatInput:p((l=e.chatInput)==null?void 0:l.buttons),footer:p((c=e.footer)==null?void 0:c.buttons)}},zl=()=>{const{settings:e}=Z(),t=ve(()=>({[ge.CLOSE_CHAT_BUTTON]:()=>P(Ll,{}),[ge.AUDIO_BUTTON]:()=>P(Nl,{}),[ge.NOTIFICATION_BUTTON]:()=>P(Rl,{}),[ge.EMOJI_PICKER_BUTTON]:()=>P(Ol,{}),[ge.FILE_ATTACHMENT_BUTTON]:()=>P(Ml,{}),[ge.SEND_MESSAGE_BUTTON]:()=>P(Ul,{}),[ge.VOICE_MESSAGE_BUTTON]:()=>P(Hl,{})}),[]),{header:n,chatInput:r,footer:o}=ve(()=>Fl(e,t),[e,t]);return{headerButtons:ve(()=>n,[n]),chatInputButtons:ve(()=>r,[r]),footerButtons:ve(()=>o,[o])}},Br=()=>{const{settings:e}=Z(),{styles:t}=Ae(),{setSyncedMessages:n,syncedMessagesRef:r}=yr(),{isLoadingChatHistory:o,setIsLoadingChatHistory:i,hasChatHistoryLoaded:a,setHasChatHistoryLoaded:A}=we(),{chatBodyRef:s}=ye(),{dispatchRcbEvent:l}=Ge(),c=q(async()=>{var u,d;const p=wr();if(!p||(u=e.event)!=null&&u.rcbLoadChatHistory&&(await l(j.LOAD_CHAT_HISTORY,{})).defaultPrevented)return;i(!0);const f=((d=s.current)==null?void 0:d.scrollHeight)??0;((y,h,w,v,g,x,C,E,_)=>{var I;if(zi=!0,w!=null)try{const D=st(P(gl,{}),"SYSTEM"),k=g.current.slice(1);v([D,...k]);const S=w.map(B=>{if(B.type==="object"){const L=Gi(B.content,y,h);return{...B,content:L}}return B});setTimeout(()=>{var B;const L=g.current.slice(1);let N=(B=y.chatHistory)!=null&&B.autoLoad?st(P(oe,{}),"SYSTEM"):st(P(hl,{}),"SYSTEM");v([...S,N,...L]),_(!0)},500),setTimeout(()=>{if(!x.current)return;const{scrollHeight:B}=x.current,L=B-C;x.current.scrollTop+=L,E(!1)},510)}catch{lt.removeItem((I=y.chatHistory)==null?void 0:I.storageKey)}})(e,t,p,n,r,s,f,i,A)},[e,t,l,r,s,i,A]);return{isLoadingChatHistory:o,setIsLoadingChatHistory:i,hasChatHistoryLoaded:a,showChatHistory:c}},jl=()=>{var e,t,n;const{settings:r}=Z(),{styles:o}=Ae(),{showChatHistory:i}=Br(),[a,A]=ee(!1),s={color:(e=r.general)==null?void 0:e.primaryColor,borderColor:(t=r.general)==null?void 0:t.primaryColor,...o.chatHistoryButtonStyle,...o.chatHistoryButtonHoveredStyle};return P("div",{className:"rcb-view-history-container",children:P("div",{onMouseEnter:()=>{A(!0)},onMouseLeave:()=>{A(!1)},style:a?s:{...o.chatHistoryButtonStyle},onMouseDown:l=>{l.preventDefault(),i()},className:"rcb-view-history-button",role:"button",tabIndex:0,children:P("p",{children:(n=r.chatHistory)==null?void 0:n.viewChatHistoryButtonText})})})},Wl=()=>{var e,t,n,r;const o=Bn(),{settings:i}=Z(),{replaceMessages:a}=yt(),{isBotTyping:A,isChatWindowOpen:s,setUnreadCount:l,setSyncedIsChatWindowOpen:c,setSyncedTextAreaDisabled:u,setSyncedAudioToggledOn:d,setSyncedVoiceToggledOn:p,setSyncedIsScrolling:f,syncedIsScrollingRef:y,syncedIsChatWindowOpenRef:h}=we(),{chatBodyRef:w}=ye(),{viewportHeight:v,setViewportHeight:g,setViewportWidth:x,scrollToBottom:C}=Qe(),{setUpNotifications:E}=Er(),{handleFirstInteraction:_}=(()=>{var S;const{settings:B}=Z(),{hasInteractedPage:L,setHasInteractedPage:N,hasFlowStarted:Q,setHasFlowStarted:W}=we(),O=q(()=>{var H;if(N(!0),!Q&&((H=B.general)==null?void 0:H.flowStartTrigger)==="ON_PAGE_INTERACT"&&W(!0),!window.SpeechSynthesisUtterance)return void console.info("Speech Synthesis API is not supported in this environment.");const m=new window.SpeechSynthesisUtterance;m.text="",m.onend=()=>{window.removeEventListener("click",O),window.removeEventListener("keydown",O),window.removeEventListener("touchstart",O)},window.speechSynthesis.speak(m)},[Q,(S=B.general)==null?void 0:S.flowStartTrigger]);return{hasInteractedPage:L,handleFirstInteraction:O}})(),{showChatHistory:I}=Br(),D=ie(0),k=ie(!1);te(()=>(window.addEventListener("click",_),window.addEventListener("keydown",_),window.addEventListener("touchstart",_),()=>{window.removeEventListener("click",_),window.removeEventListener("keydown",_),window.removeEventListener("touchstart",_)}),[]),te(()=>{const S=w.current;if(!S)return;const B=()=>{k.current||(k.current=!0,requestAnimationFrame(()=>{var L,N;if(!S)return;const{scrollTop:Q,clientHeight:W,scrollHeight:O}=S,H=Q+W<O-(((L=i.chatWindow)==null?void 0:L.messagePromptOffset)??30);f(H),y.current=H,H||(Q+W>=O-1&&(S.scrollTop=O-W-1),(h.current||(N=i.general)!=null&&N.embedded)&&l(0)),k.current=!1}))};return S.addEventListener("wheel",B,{passive:!0}),S.addEventListener("touchmove",B,{passive:!0}),()=>{S.removeEventListener("wheel",B),S.removeEventListener("touchmove",B)}},[]),te(()=>{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 N;p((N=i.voice)==null?void 0:N.defaultToggledOn)},1)},[]),te(()=>{var S;(S=i.notification)!=null&&S.disabled||E()},[(e=i.notification)==null?void 0:e.disabled]),te(()=>{!y.current&&w!=null&&w.current&&C()},[A]),te(()=>{var S,B;if((S=i.chatHistory)!=null&&S.disabled)lt&<.removeItem(kn);else if(xr(i),wr().length>0){const L=st(P(jl,{}),"SYSTEM");a([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]),te(()=>{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:N,width:Q,height:W}=B.target.boundingRect;L==0&&N==0&&Q==0&&W==0?(setTimeout(()=>{var O;g((O=window.visualViewport)==null?void 0:O.height)},101),setTimeout(()=>{var O,H;v!=((O=window.visualViewport)==null?void 0:O.height)&&g((H=window.visualViewport)==null?void 0:H.height)},1001)):setTimeout(()=>{var O;g(((O=window.visualViewport)==null?void 0:O.height)-W)},101)}))},[o]),te(()=>{var S,B,L,N;if(o)return;s&&(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"}),W=()=>D.current=window.scrollY,O=()=>{var m,U;g((m=window.visualViewport)==null?void 0:m.height),x((U=window.visualViewport)==null?void 0:U.width)},H=()=>{var m;window.removeEventListener("scroll",Q),window.removeEventListener("scroll",W),(m=window.visualViewport)==null||m.removeEventListener("resize",O)};return s?(H(),document.body.style.position="fixed",window.addEventListener("scroll",Q),(L=window.visualViewport)==null||L.addEventListener("resize",O)):(document.body.style.position="static",H(),window.scrollTo({top:D.current,left:0,behavior:"auto"}),window.addEventListener("scroll",W),(N=window.visualViewport)==null||N.removeEventListener("resize",O)),H},[s,o])},Gl="https://cdn.jsdelivr.net/gh/react-chatbotify/community-themes/themes",ql="2592000",$i="RCB_THEME_CACHE_DATA",Ji=async(e,t)=>{const{id:n,version:r,baseUrl:o=Gl,cacheDuration:i=ql}=t,a=r||await(async(w,v)=>{const g=`${v}/${w}/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(!a)return console.error(`Unable to find version for theme: ${n}`),{settings:{},inlineStyles:{},cssStylesText:""};const A=((w,v,g)=>{const x=localStorage.getItem(`${$i}_${w}_${v}`);if(!x)return null;try{const C=JSON.parse(x),E=new Date().getTime(),_=Math.floor(E/1e3);return C.cacheDate+g>=_?C:null}catch(C){return console.error(`Unable to fetch cache for ${w}`,C),null}})(n,a,i);if(A){const w=Zi(e,A.cssStylesText);return{settings:A.settings,inlineStyles:A.inlineStyles,cssStylesText:w}}const s=`${o}/${n}/${a}/styles.css`,l=`${o}/${n}/${a}/settings.json`,c=`${o}/${n}/${a}/styles.json`;let u="";const d=await fetch(s);d.ok?u=await d.text():console.info(`Could not fetch styles.css from ${s}`);const p=await fetch(l);let f={};p.ok?f=await p.json():console.info(`Could not fetch settings.json from ${l}`);const y=await fetch(c);let h={};return y.ok?h=await y.json():console.info(`Could not fetch styles.json from ${c}`),((w,v,g,x,C)=>{const E=new Date().getTime(),_={settings:g,inlineStyles:x,cssStylesText:C,cacheDate:Math.floor(E/1e3)};localStorage.setItem(`${$i}_${w}_${v}`,JSON.stringify(_))})(n,a,f,h,u),{settings:f,inlineStyles:h,cssStylesText:Zi(e,u)}},Zi=(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(`
|
|
1
|
+
var AccessQABot=function(mn){"use strict";var Gt,G,wo,gt,xo,Eo,Po,ko,Xn,Vn,Kn,Co,qt={},_o=[],zA=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Yt=Array.isArray;function Ye(e,t){for(var n in t)e[n]=t[n];return e}function $n(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function re(e,t,n){var r,o,i,a={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?Gt.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return Xt(e,a,r,o,null)}function Xt(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??++wo,__i:-1,__u:0};return o==null&&G.vnode!=null&&G.vnode(i),i}function Do(){return{current:null}}function oe(e){return e.children}function Xe(e,t){this.props=e,this.context=t}function _t(e,t){if(t==null)return e.__?_t(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"?_t(e):null}function Bo(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 Bo(e)}}function Jn(e){(!e.__d&&(e.__d=!0)&>.push(e)&&!vn.__r++||xo!=G.debounceRendering)&&((xo=G.debounceRendering)||Eo)(vn)}function vn(){for(var e,t,n,r,o,i,a,A=1;gt.length;)gt.length>A&>.sort(Po),e=gt.shift(),A=gt.length,e.__d&&(n=void 0,r=void 0,o=(r=(t=e).__v).__e,i=[],a=[],t.__P&&((n=Ye({},r)).__v=r.__v+1,G.vnode&&G.vnode(n),Zn(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:null,i,o??_t(r),!!(32&r.__u),a),n.__v=r.__v,n.__.__k[n.__i]=n,Mo(i,n,a),r.__e=r.__=null,n.__e!=o&&Bo(n)));vn.__r=0}function So(e,t,n,r,o,i,a,A,s,l,c){var u,d,p,f,y,h,w,v=r&&r.__k||_o,g=t.length;for(s=jA(n,t,v,s,g),u=0;u<g;u++)(p=n.__k[u])!=null&&(d=p.__i==-1?qt:v[p.__i]||qt,p.__i=u,h=Zn(e,p,d,o,i,a,A,s,l,c),f=p.__e,p.ref&&d.ref!=p.ref&&(d.ref&&tr(d.ref,null,p),c.push(p.ref,p.__c||f,p)),y==null&&f!=null&&(y=f),(w=!!(4&p.__u))||d.__k===p.__k?s=Io(p,s,e,w):typeof p.type=="function"&&h!==void 0?s=h:f&&(s=f.nextSibling),p.__u&=-7);return n.__e=y,s}function jA(e,t,n,r,o){var i,a,A,s,l,c=n.length,u=c,d=0;for(e.__k=new Array(o),i=0;i<o;i++)(a=t[i])!=null&&typeof a!="boolean"&&typeof a!="function"?(s=i+d,(a=e.__k[i]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?Xt(null,a,null,null,null):Yt(a)?Xt(oe,{children:a},null,null,null):a.constructor==null&&a.__b>0?Xt(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,A=null,(l=a.__i=WA(a,n,s,u))!=-1&&(u--,(A=n[l])&&(A.__u|=2)),A==null||A.__v==null?(l==-1&&(o>c?d--:o<c&&d++),typeof a.type!="function"&&(a.__u|=4)):l!=s&&(l==s-1?d--:l==s+1?d++:(l>s?d--:d++,a.__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=_t(A)),No(A,A));return r}function Io(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=Io(o[i],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=_t(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function rt(e,t){return t=t||[],e==null||typeof e=="boolean"||(Yt(e)?e.some(function(n){rt(n,t)}):t.push(e)),t}function WA(e,t,n,r){var o,i,a,A=e.key,s=e.type,l=t[n],c=l!=null&&(2&l.__u)==0;if(l===null&&e.key==null||c&&A==l.key&&s==l.type)return n;if(r>(c?1:0)){for(o=n-1,i=n+1;o>=0||i<t.length;)if((l=t[a=o>=0?o--:i++])!=null&&!(2&l.__u)&&A==l.key&&s==l.type)return a}return-1}function To(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||zA.test(t)?n:n+"px"}function yn(e,t,n,r,o){var i,a;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||To(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||To(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(ko,"$1")),a=t.toLowerCase(),t=a in e||t=="onFocusOut"||t=="onFocusIn"?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Xn,e.addEventListener(t,i?Kn:Vn,i)):e.removeEventListener(t,i?Kn:Vn,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 Qo(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Xn++;else if(t.t<n.u)return;return n(G.event?G.event(t):t)}}}function Zn(e,t,n,r,o,i,a,A,s,l){var c,u,d,p,f,y,h,w,v,g,x,C,E,_,I,D,k,S=t.type;if(t.constructor!=null)return null;128&n.__u&&(s=!!(32&n.__u),i=[A=t.__e=n.__e]),(c=G.__b)&&c(t);e:if(typeof S=="function")try{if(w=t.props,v="prototype"in S&&S.prototype.render,g=(c=S.contextType)&&r[c.__c],x=c?g?g.props.value:c.__:r,n.__c?h=(u=t.__c=n.__c).__=u.__E:(v?t.__c=u=new S(w,x):(t.__c=u=new Xe(w,x),u.constructor=S,u.render=qA),g&&g.sub(u),u.props=w,u.state||(u.state={}),u.context=x,u.__n=r,d=u.__d=!0,u.__h=[],u._sb=[]),v&&u.__s==null&&(u.__s=u.state),v&&S.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Ye({},u.__s)),Ye(u.__s,S.getDerivedStateFromProps(w,u.__s))),p=u.props,f=u.state,u.__v=t,d)v&&S.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),v&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(v&&S.getDerivedStateFromProps==null&&w!==p&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(w,x),!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(w,u.__s,x)===!1||t.__v==n.__v){for(t.__v!=n.__v&&(u.props=w,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(B){B&&(B.__=t)}),C=0;C<u._sb.length;C++)u.__h.push(u._sb[C]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(w,u.__s,x),v&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(p,f,y)})}if(u.context=x,u.props=w,u.__P=e,u.__e=!1,E=G.__r,_=0,v){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&&++_<25);u.state=u.__s,u.getChildContext!=null&&(r=Ye(Ye({},r),u.getChildContext())),v&&!d&&u.getSnapshotBeforeUpdate!=null&&(y=u.getSnapshotBeforeUpdate(p,f)),D=c,c!=null&&c.type===oe&&c.key==null&&(D=Oo(c.props.children)),A=So(e,Yt(D)?D:[D],t,n,r,o,i,a,A,s,l),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),h&&(u.__E=u.__=null)}catch(B){if(t.__v=null,s||i!=null)if(B.then){for(t.__u|=s?160:128;A&&A.nodeType==8&&A.nextSibling;)A=A.nextSibling;i[i.indexOf(A)]=null,t.__e=A}else{for(k=i.length;k--;)$n(i[k]);er(t)}else t.__e=n.__e,t.__k=n.__k,B.then||er(t);G.__e(B,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):A=t.__e=GA(n.__e,t,n,r,o,i,a,s,l);return(c=G.diffed)&&c(t),128&t.__u?void 0:A}function er(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(er)}function Mo(e,t,n){for(var r=0;r<n.length;r++)tr(n[r],n[++r],n[++r]);G.__c&&G.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){G.__e(i,o.__v)}})}function Oo(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Yt(e)?e.map(Oo):Ye({},e)}function GA(e,t,n,r,o,i,a,A,s){var l,c,u,d,p,f,y,h=n.props,w=t.props,v=t.type;if(v=="svg"?o="http://www.w3.org/2000/svg":v=="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==!!v&&(v?p.localName==v:p.nodeType==3)){e=p,i[l]=null;break}}if(e==null){if(v==null)return document.createTextNode(w);e=document.createElementNS(o,v,w.is&&w),A&&(G.__m&&G.__m(t,i),A=!1),i=null}if(v==null)h===w||A&&e.data==w||(e.data=w);else{if(i=i&&Gt.call(e.childNodes),h=n.props||qt,!A&&i!=null)for(h={},l=0;l<e.attributes.length;l++)h[(p=e.attributes[l]).name]=p.value;for(l in h)if(p=h[l],l!="children"){if(l=="dangerouslySetInnerHTML")u=p;else if(!(l in w)){if(l=="value"&&"defaultValue"in w||l=="checked"&&"defaultChecked"in w)continue;yn(e,l,null,p,o)}}for(l in w)p=w[l],l=="children"?d=p:l=="dangerouslySetInnerHTML"?c=p:l=="value"?f=p:l=="checked"?y=p:A&&typeof p!="function"||h[l]===p||yn(e,l,p,h[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=""),So(t.type=="template"?e.content:e,Yt(d)?d:[d],t,n,r,v=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:n.__k&&_t(n,0),A,s),i!=null)for(l=i.length;l--;)$n(i[l]);A||(l="value",v=="progress"&&f==null?e.removeAttribute("value"):f!=null&&(f!==e[l]||v=="progress"&&!f||v=="option"&&f!=h[l])&&yn(e,l,f,h[l],o),l="checked",y!=null&&y!=e[l]&&yn(e,l,y,h[l],o))}return e}function tr(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){G.__e(o,n)}}function No(e,t,n){var r,o;if(G.unmount&&G.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||tr(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){G.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&No(r[o],t,n||typeof e.type!="function");n||$n(e.__e),e.__c=e.__=e.__e=void 0}function qA(e,t,n){return this.constructor(e,n)}function Vt(e,t,n){var r,o,i,a;t==document&&(t=document.documentElement),G.__&&G.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],a=[],Zn(t,e=(!r&&n||t).__k=re(oe,null,[e]),o||qt,qt,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?Gt.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),Mo(i,e,a)}function Lo(e,t){Vt(e,t,Lo)}function YA(e,t,n){var r,o,i,a,A=Ye({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:A[i]=t[i]===void 0&&a!=null?a[i]:t[i];return arguments.length>2&&(A.children=arguments.length>3?Gt.call(arguments,2):n),Xt(e.type,A,r||e.key,o||e.ref,null)}function Ve(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(a){a.__e=!0,Jn(a)})},this.sub=function(i){r.add(i);var a=i.componentWillUnmount;i.componentWillUnmount=function(){r&&r.delete(i),a&&a.call(i)}}),n.children}return t.__c="__cC"+Co++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}Gt=_o.slice,G={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(A){e=A}throw e}},wo=0,Xe.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Ye({},this.state),typeof e=="function"&&(e=e(Ye({},n),this.props)),e&&Ye(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Jn(this))},Xe.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Jn(this))},Xe.prototype.render=oe,gt=[],Eo=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Po=function(e,t){return e.__v.__b-t.__v.__b},vn.__r=0,ko=/(PointerCapture)$|Capture$/i,Xn=0,Vn=Qo(!1),Kn=Qo(!0),Co=0;var at,pe,nr,Ro,Dt=0,Ho=[],he=G,Uo=he.__b,Fo=he.__r,zo=he.diffed,jo=he.__c,Wo=he.unmount,Go=he.__;function Bt(e,t){he.__h&&he.__h(pe,e,Dt||t),Dt=0;var n=pe.__H||(pe.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ee(e){return Dt=1,rr(Vo,e)}function rr(e,t,n){var r=Bt(at++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Vo(void 0,t),function(A){var s=r.__N?r.__N[0]:r.__[0],l=r.t(s,A);s!==l&&(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=pe,!pe.__f)){var o=function(A,s,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,s,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,s,l)||u};pe.__f=!0;var i=pe.shouldComponentUpdate,a=pe.componentWillUpdate;pe.componentWillUpdate=function(A,s,l){if(this.__e){var c=i;i=void 0,o(A,s,l),i=c}a&&a.call(this,A,s,l)},pe.shouldComponentUpdate=o}return r.__N||r.__}function te(e,t){var n=Bt(at++,3);!he.__s&&ir(n.__H,t)&&(n.__=e,n.u=t,pe.__H.__h.push(n))}function Kt(e,t){var n=Bt(at++,4);!he.__s&&ir(n.__H,t)&&(n.__=e,n.u=t,pe.__h.push(n))}function ie(e){return Dt=5,ve(function(){return{current:e}},[])}function bn(e,t,n){Dt=6,Kt(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 ve(e,t){var n=Bt(at++,7);return ir(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function q(e,t){return Dt=8,ve(function(){return e},t)}function We(e){var t=pe.context[e.__c],n=Bt(at++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(pe)),t.props.value):e.__}function qo(e,t){he.useDebugValue&&he.useDebugValue(t?t(e):e)}function Yo(){var e=Bt(at++,11);if(!e.__){for(var t=pe.__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 XA(){for(var e;e=Ho.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(wn),e.__H.__h.forEach(or),e.__H.__h=[]}catch(t){e.__H.__h=[],he.__e(t,e.__v)}}he.__b=function(e){pe=null,Uo&&Uo(e)},he.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Go&&Go(e,t)},he.__r=function(e){Fo&&Fo(e),at=0;var t=(pe=e.__c).__H;t&&(nr===pe?(t.__h=[],pe.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(wn),t.__h.forEach(or),t.__h=[],at=0)),nr=pe},he.diffed=function(e){zo&&zo(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ho.push(t)!==1&&Ro===he.requestAnimationFrame||((Ro=he.requestAnimationFrame)||VA)(XA)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),nr=pe=null},he.__c=function(e,t){t.some(function(n){try{n.__h.forEach(wn),n.__h=n.__h.filter(function(r){return!r.__||or(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],he.__e(r,n.__v)}}),jo&&jo(e,t)},he.unmount=function(e){Wo&&Wo(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{wn(r)}catch(o){t=o}}),n.__H=void 0,t&&he.__e(t,n.__v))};var Xo=typeof requestAnimationFrame=="function";function VA(e){var t,n=function(){clearTimeout(r),Xo&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);Xo&&(t=requestAnimationFrame(n))}function wn(e){var t=pe,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),pe=t}function or(e){var t=pe;e.__c=e.__(),pe=t}function ir(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Vo(e,t){return typeof t=="function"?t(e):t}function Ko(e,t){for(var n in t)e[n]=t[n];return e}function ar(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 $o(e,t){var n=t(),r=ee({t:{__:n,u:t}}),o=r[0].t,i=r[1];return Kt(function(){o.__=n,o.u=t,Ar(o)&&i({t:o})},[e,n,t]),te(function(){return Ar(o)&&i({t:o}),e(function(){Ar(o)&&i({t:o})})},[e]),n}function Ar(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 Jo(e){e()}function Zo(e){return e}function ei(){return[!1,Jo]}var ti=Kt;function sr(e,t){this.props=e,this.context=t}function KA(e,t){function n(o){var i=this.props.ref,a=i==o.ref;return!a&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!a:ar(this.props,o)}function r(o){return this.shouldComponentUpdate=n,re(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r.type=e,r}(sr.prototype=new Xe).isPureReactComponent=!0,sr.prototype.shouldComponentUpdate=function(e,t){return ar(this.props,e)||ar(this.state,t)};var ni=G.__b;G.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ni&&ni(e)};var $A=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function _e(e){function t(n){var r=Ko({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=$A,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ri=function(e,t){return e==null?null:rt(rt(e).map(t))},JA={map:ri,forEach:ri,count:function(e){return e?rt(e).length:0},only:function(e){var t=rt(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:rt},ZA=G.__e;G.__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)}ZA(e,t,n,r)};var oi=G.unmount;function ii(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=Ko({},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 ii(r,t,n)})),e}function ai(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return ai(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 xn(){this.__u=0,this.o=null,this.__b=null}function Ai(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function es(e){var t,n,r;function o(i){if(t||(t=e()).then(function(a){n=a.default||a},function(a){r=a}),r)throw r;if(!n)throw t;return re(n,i)}return o.displayName="Lazy",o.__f=!0,o}function $t(){this.i=null,this.l=null}G.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),oi&&oi(e)},(xn.prototype=new Xe).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=Ai(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(A):A())};n.__R=a;var A=function(){if(!--r.__u){if(r.state.__a){var s=r.state.__a;r.__v.__k[0]=ai(s,s.__c.__P,s.__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(a,a)},xn.prototype.componentWillUnmount=function(){this.o=[]},xn.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]=ii(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&re(oe,null,e.fallback);return o&&(o.__u&=-33),[re(oe,null,t.__a?null:e.children),o]};var si=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 ts(e){return this.getChildContext=function(){return e.context},e.children}function ns(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){Vt(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)}}}Vt(re(ts,{context:t.context},e.__v),t.v)}function rs(e,t){var n=re(ns,{__v:e,h:t});return n.containerInfo=t,n}($t.prototype=new Xe).__a=function(e){var t=this,n=Ai(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),si(t,e,r)):o()};n?n(i):i()}},$t.prototype.render=function(e){this.i=null,this.l=new Map;var t=rt(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},$t.prototype.componentDidUpdate=$t.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){si(e,n,t)})};var li=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,os=/^(?: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]/,is=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,as=/[A-Z0-9]/g,As=typeof document<"u",ss=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function ci(e,t,n){return t.__k==null&&(t.textContent=""),Vt(e,t),typeof n=="function"&&n(),e?e.__c:null}function ls(e,t,n){return Lo(e,t),typeof n=="function"&&n(),e?e.__c:null}Xe.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Xe.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var ui=G.event;function cs(){}function us(){return this.cancelBubble}function ds(){return this.defaultPrevented}G.event=function(e){return ui&&(e=ui(e)),e.persist=cs,e.isPropagationStopped=us,e.isDefaultPrevented=ds,e.nativeEvent=e};var lr,ps={enumerable:!1,configurable:!0,get:function(){return this.class}},di=G.vnode;G.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")===-1;for(var a in n){var A=n[a];if(!(a==="value"&&"defaultValue"in n&&A==null||As&&a==="children"&&r==="noscript"||a==="class"||a==="className")){var s=a.toLowerCase();a==="defaultValue"&&"value"in n&&n.value==null?a="value":a==="download"&&A===!0?A="":s==="translate"&&A==="no"?A=!1:s[0]==="o"&&s[1]==="n"?s==="ondoubleclick"?a="ondblclick":s!=="onchange"||r!=="input"&&r!=="textarea"||ss(n.type)?s==="onfocus"?a="onfocusin":s==="onblur"?a="onfocusout":is.test(a)&&(a=s):s=a="oninput":i&&os.test(a)?a=a.replace(as,"-$&").toLowerCase():A===null&&(A=void 0),s==="oninput"&&o[a=s]&&(a="oninputCapture"),o[a]=A}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=rt(n.children).forEach(function(l){l.props.selected=o.value.indexOf(l.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=rt(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",ps)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=li,di&&di(e)};var pi=G.__r;G.__r=function(e){pi&&pi(e),lr=e.__c};var fi=G.diffed;G.diffed=function(e){fi&&fi(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),lr=null};var fs={ReactCurrentDispatcher:{current:{readContext:function(e){return lr.__n[e.__c].props.value},useCallback:q,useContext:We,useDebugValue:qo,useDeferredValue:Zo,useEffect:te,useId:Yo,useImperativeHandle:bn,useInsertionEffect:ti,useLayoutEffect:Kt,useMemo:ve,useReducer:rr,useRef:ie,useState:ee,useSyncExternalStore:$o,useTransition:ei}}};function hs(e){return re.bind(null,e)}function mt(e){return!!e&&e.$$typeof===li}function gs(e){return mt(e)&&e.type===oe}function ms(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function vs(e){return mt(e)?YA.apply(null,arguments):e}function hi(e){return!!e.__k&&(Vt(null,e),!0)}function ys(e){return e&&(e.base||e.nodeType===1&&e)||null}var bs=function(e,t){return e(t)},ws=function(e,t){return e(t)},xs=oe,Es=mt,R={useState:ee,useId:Yo,useReducer:rr,useEffect:te,useLayoutEffect:Kt,useInsertionEffect:ti,useTransition:ei,useDeferredValue:Zo,useSyncExternalStore:$o,startTransition:Jo,useRef:ie,useImperativeHandle:bn,useMemo:ve,useCallback:q,useContext:We,useDebugValue:qo,version:"18.3.1",Children:JA,render:ci,hydrate:ls,unmountComponentAtNode:hi,createPortal:rs,createElement:re,createContext:Ve,createFactory:hs,cloneElement:vs,createRef:Do,Fragment:oe,isValidElement:mt,isElement:Es,isFragment:gs,isMemo:ms,findDOMNode:ys,Component:Xe,PureComponent:sr,memo:KA,forwardRef:_e,flushSync:ws,unstable_batchedUpdates:bs,StrictMode:xs,Suspense:xn,SuspenseList:$t,lazy:es,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:fs},Ps=0;function P(e,t,n,r,o,i){t||(t={});var a,A,s=t;if("ref"in s)for(A in s={},t)A=="ref"?a=t[A]:s[A]=t[A];var l={type:e,props:s,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Ps,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(A in a)s[A]===void 0&&(s[A]=a[A]);return G.vnode&&G.vnode(l),l}function ks(e){return{render:function(t){ci(t,e)},unmount:function(){hi(e)}}}var Cs="diffed",gi="__c",cr="__s",St="__c",mi="__k",ur="__d",It="__s",vi=/[\s\n\\/='"\0<>]/,yi=/^(xlink|xmlns|xml)([A-Z])/,_s=/^(?: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])/,Ds=/^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/,Bs=new Set(["draggable","spellcheck"]);function bi(e){e.__g!==void 0?e.__g|=8:e[ur]=!0}function Ss(e){e.__g!==void 0?e.__g&=-9:e[ur]=!1}function wi(e){return e.__g!==void 0?!!(8&e.__g):e[ur]===!0}var Is=/["&<]/;function En(e){if(e.length===0||Is.test(e)===!1)return e;for(var t=0,n=0,r="",o="";n<e.length;n++){switch(e.charCodeAt(n)){case 34:o=""";break;case 38:o="&";break;case 60:o="<";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 xi={},Ts=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"]),Qs=/[A-Z]/g;function Ms(e){var t="";for(var n in e){var r=e[n];if(r!=null&&r!==""){var o=n[0]=="-"?n:xi[n]||(xi[n]=n.replace(Qs,"-$&").toLowerCase()),i=";";typeof r!="number"||o.startsWith("--")||Ts.has(o)||(i="px;"),t=t+o+":"+r+i}}return t||void 0}function Ei(){this.__d=!0}function Os(e,t){return{__v:e,context:t,props:e.props,setState:Ei,forceUpdate:Ei,__d:!0,__h:new Array(0)}}var dr,vt,Jt,Zt,pr={},Pi=[],Tt=Array.isArray,fr=Object.assign,De="",hr="<!--$s-->",gr="<!--/$s-->";function ki(e,t,n){var r=G[cr];G[cr]=!0,dr=G.__b,vt=G[Cs],Jt=G.__r,Zt=G.unmount;var o=re(oe,null);o[mi]=[e];try{var i=At(e,t||pr,!1,void 0,o,!1,n);return Tt(i)?i.join(De):i}catch(a){throw a.then?new Error('Use "renderToStringAsync" for suspenseful rendering.'):a}finally{G[gi]&&G[gi](e,Pi),G[cr]=r,Pi.length=0}}function Ci(e,t){var n,r=e.type,o=!0;return e[St]?(o=!1,(n=e[St]).state=n[It]):n=new r(e.props,t),e[St]=n,n.__v=e,n.props=e.props,n.context=t,bi(n),n.state==null&&(n.state=pr),n[It]==null&&(n[It]=n.state),r.getDerivedStateFromProps?n.state=fr({},n.state,r.getDerivedStateFromProps(n.props,n.state)):o&&n.componentWillMount?(n.componentWillMount(),n.state=n[It]!==n.state?n[It]:n.state):!o&&n.componentWillUpdate&&n.componentWillUpdate(),Jt&&Jt(e),n.render(n.props,n.state,t)}function At(e,t,n,r,o,i,a){if(e==null||e===!0||e===!1||e===De)return De;var A=typeof e;if(A!="object")return A=="function"?De:A=="string"?En(e):e+De;if(Tt(e)){var s,l=De;o[mi]=e;for(var c=e.length,u=0;u<c;u++){var d=e[u];if(d!=null&&typeof d!="boolean"){var p,f=At(d,t,n,r,o,i,a);typeof f=="string"?l+=f:(s||(s=new Array(c)),l&&s.push(l),l=De,Tt(f)?(p=s).push.apply(p,f):s.push(f))}}return s?(l&&s.push(l),s):l}if(e.constructor!==void 0)return De;e.__=o,dr&&dr(e);var y=e.type,h=e.props;if(typeof y=="function"){var w,v,g,x=t;if(y===oe){if("tpl"in h){for(var C=De,E=0;E<h.tpl.length;E++)if(C+=h.tpl[E],h.exprs&&E<h.exprs.length){var _=h.exprs[E];if(_==null)continue;typeof _!="object"||_.constructor!==void 0&&!Tt(_)?C+=_:C+=At(_,t,n,r,e,i,a)}return C}if("UNSTABLE_comment"in h)return"<!--"+En(h.UNSTABLE_comment)+"-->";v=h.children}else{if((w=y.contextType)!=null){var I=t[w.__c];x=I?I.props.value:w.__}var D=y.prototype&&typeof y.prototype.render=="function";if(D)v=Ci(e,x),g=e[St];else{e[St]=g=Os(e,x);for(var k=0;wi(g)&&k++<25;){Ss(g),Jt&&Jt(e);try{v=y.call(g,h,x)}catch(b){throw b}}bi(g)}if(g.getChildContext!=null&&(t=fr({},t,g.getChildContext())),D&&G.errorBoundaries&&(y.getDerivedStateFromError||g.componentDidCatch)){v=v!=null&&v.type===oe&&v.key==null&&v.props.tpl==null?v.props.children:v;try{return At(v,t,n,r,e,i,!1)}catch(b){return y.getDerivedStateFromError&&(g[It]=y.getDerivedStateFromError(b)),g.componentDidCatch&&g.componentDidCatch(b,pr),wi(g)?(v=Ci(e,t),(g=e[St]).getChildContext!=null&&(t=fr({},t,g.getChildContext())),At(v=v!=null&&v.type===oe&&v.key==null&&v.props.tpl==null?v.props.children:v,t,n,r,e,i,a)):De}finally{vt&&vt(e),Zt&&Zt(e)}}}v=v!=null&&v.type===oe&&v.key==null&&v.props.tpl==null?v.props.children:v;try{var S=At(v,t,n,r,e,i,a);return vt&&vt(e),G.unmount&&G.unmount(e),e._suspended?typeof S=="string"?hr+S+gr:Tt(S)?(S.unshift(hr),S.push(gr),S):S.then(function(b){return hr+b+gr}):S}catch(b){if(a&&a.onError){var B=a.onError(b,e,function(F,K){return At(F,t,n,r,K,i,a)});if(B!==void 0)return B;var L=G.__e;return L&&L(b,e),De}throw b}}var N,Q="<"+y,W=De;for(var O in h){var H=h[O];if(typeof(H=Ls(H)?H.value:H)!="function"||O==="class"||O==="className"){switch(O){case"children":N=H;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in h)continue;O="for";break;case"className":if("class"in h)continue;O="class";break;case"defaultChecked":O="checked";break;case"defaultSelected":O="selected";break;case"defaultValue":case"value":switch(O="value",y){case"textarea":N=H;continue;case"select":r=H;continue;case"option":r!=H||"selected"in h||(Q+=" selected")}break;case"dangerouslySetInnerHTML":W=H&&H.__html;continue;case"style":typeof H=="object"&&(H=Ms(H));break;case"acceptCharset":O="accept-charset";break;case"httpEquiv":O="http-equiv";break;default:if(yi.test(O))O=O.replace(yi,"$1:$2").toLowerCase();else{if(vi.test(O))continue;O[4]!=="-"&&!Bs.has(O)||H==null?n?Ds.test(O)&&(O=O==="panose1"?"panose-1":O.replace(/([A-Z])/g,"-$1").toLowerCase()):_s.test(O)&&(O=O.toLowerCase()):H+=De}}H!=null&&H!==!1&&(Q=H===!0||H===De?Q+" "+O:Q+" "+O+'="'+(typeof H=="string"?En(H):H+De)+'"')}}if(vi.test(y))throw new Error(y+" is not a valid HTML tag name in "+Q+">");if(W||(typeof N=="string"?W=En(N):N!=null&&N!==!1&&N!==!0&&(W=At(N,t,y==="svg"||y!=="foreignObject"&&n,r,e,i,a))),vt&&vt(e),Zt&&Zt(e),!W&&Ns.has(y))return Q+"/>";var m="</"+y+">",U=Q+">";return Tt(W)?[U].concat(W,[m]):typeof W!="string"?[U,W,m]:U+W+m}var Ns=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function Ls(e){return e!==null&&typeof e=="object"&&typeof e.peek=="function"&&"value"in e}const Rs={renderToString:ki,renderToStaticMarkup:ki};function _i(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))}}_i('.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 ge={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"},Di="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",Bi=_e((e,t)=>re("svg",{viewBox:"0 0 637 637",ref:t,...e},re("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"}),re("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"}))),Si=_e((e,t)=>re("svg",{viewBox:"0 -960 960 960",ref:t,...e},re("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"}))),Hs=_e((e,t)=>re("svg",{viewBox:"0 -960 960 960",ref:t,...e},re("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"}))),Us=_e((e,t)=>re("svg",{viewBox:"0 -960 960 960",ref:t,...e},re("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"}))),Fs=_e((e,t)=>re("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",ref:t,...e},re("g",{strokeLinecap:"round",strokeWidth:10},re("path",{d:"m19 19 61 61M80 19 19 80"})))),zs=_e((e,t)=>re("svg",{viewBox:"0 -960 960 960",ref:t,...e},re("path",{d:"M94-136v-255l351-93-351-92v-253l816 346L94-136Z"}))),js=_e((e,t)=>re("svg",{viewBox:"0 -960 960 960",ref:t,...e},re("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"}))),Ws=_e((e,t)=>re("svg",{viewBox:"0 -960 960 960",ref:t,...e},re("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"}))),Ii=_e((e,t)=>re("svg",{viewBox:"0 -960 960 960",ref:t,...e},re("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"}))),Gs=_e((e,t)=>re("svg",{viewBox:"0 -960 960 960",ref:t,...e},re("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"}))),qs=_e((e,t)=>re("svg",{viewBox:"0 -960 960 960",ref:t,...e},re("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"}))),Ti={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:Bi},header:{title:P("div",{style:{cursor:"pointer",margin:0,fontSize:20,fontWeight:"bold"},onClick:()=>window.open("https://github.com/tjtanjin/"),children:"Tan Jin"}),showAvatar:!0,avatar:Di,buttons:[ge.NOTIFICATION_BUTTON,ge.AUDIO_BUTTON,ge.CLOSE_CHAT_BUTTON],closeChatIcon:Fs},notification:{disabled:!1,defaultToggledOn:!0,volume:.2,icon:Hs,iconDisabled:Us,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//AAAAAAAAAAD//wAAAAD///////8BAAEAAAD/////AgABAAEA/v/+/wAAAQACAAEAAAD//wAAAwABAP//AgD+/wAA/v8AAAAAAAAAAAEA//8AAAEAAAD+/wEAAAAAAAEAAgAAAAEAAAABAP//AQD+/wIA/////wAAAQD//wAAAQD+/wAAAQABAAAA////////AAACAAAAAQAAAAIA//8BAP///v///wEA//8BAAEAAQD+/wAAAQD9/wAAAQAAAAEAAAABAAAAAgAAAP//AAD+/wAA/f8AAAAA////////AgAAAAcAAQD7/wEA/f8AAAIA//8GAP7//v/+//b/AQD//wQADgD///3/9/8FAPr/6/8EABAACQD9/wIA/P/5/w4A///t/wQA/P8LAB0ACQD5////AQD2/+7/AgD6//r//v/z/xIA9f8oAAMA4f8OANz/EQAdAAAA5P/w/2MAAQDq/w0A1/8bALz/BgDb/+j/lQD9/yMABAACAA0Alf8NAKr/CwCMAPD/QwDq/wkA9v+g/wgAk/8QAD0ABgAWAAQAMwD7/9T/8//f//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wAA1/8CAMr/AADb/+3/5f8BAAIACAAVABcALwAfACgA+/8XAPn/DgDe/+//7v/Q/wMAz/8JAOP/CwDx////EAAHADEAAQArAAIAHQAEAAcAAADr/wEAzv8CANj//f/k/wEA+f/+/xQABwAqAB4ALAD+/x4A8P8SAOb/8//f/9j//f/N/wEA3v8LAO7/AgAMAAQALAAEAC0AAQAdAAQADwABAPP/BADV/wMA0/8AAOH/AQD1/wAAEAADACQAGwAwAAQAHwD0/xUA8f/4/+L/2//7/8z/AwDc/woA6f8AAAQAAwAoAAcANAAAACcAAgAUAAEA+P8CANv/AgDR/wEA4v8BAOz/AgAIAPv/JAAVADMAFAAhAPP/GQDz//7/3P/l/+3/z/8BANf/CgDn/wkA/P///xoABwAwAAIAJwACABcAAwABAAIA4f8BAND/AgDd//3/6P8CAAYA/f8YAAwALwAZACUA9v8bAPj/AwDq/+r/7P/S//7/1/8EAOX/CQD6//7/GQAFAC8AAQApAAEAGQACAAMAAgDm/wEAzv8BANv//v/p/wIA//8BABMABQArACAALAABAB4A8f8NAOv/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:Gs,iconDisabled:qs},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:zs,blockSpam:!0,sendOptionOutput:!0,sendCheckboxOutput:!0,buttons:[ge.VOICE_MESSAGE_BUTTON,ge.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:Di,simulateStream:!1,streamSpeed:30},voice:{disabled:!0,defaultToggledOn:!1,language:"en-US",timeoutPeriod:1e4,autoSendDisabled:!1,autoSendPeriod:1e3,sendAsAudio:!1,icon:js,iconDisabled:Ws},footer:{text:P("div",{style:{cursor:"pointer",display:"flex",flexDirection:"row",alignItems:"center",columnGap:3},onClick:()=>window.open("https://react-chatbotify.com"),children:[P("span",{children:"Powered By "},0),P("div",{style:{borderRadius:"50%",width:14,height:14,display:"flex",justifyContent:"center",alignItems:"center",background:"linear-gradient(to right, #42b0c5, #491d8d)"},children:P(Bi,{style:{width:"80%",height:"80%",fill:"#fff"}})},1),P("span",{style:{fontWeight:"bold"},children:" React ChatBotify"},2)]}),buttons:[ge.FILE_ATTACHMENT_BUTTON,ge.EMOJI_PICKER_BUTTON]},fileAttachment:{disabled:!1,multiple:!0,accept:".png",icon:Si,iconDisabled:Si,sendFileName:!0,showMediaDisplay:!1},emoji:{disabled:!1,icon:Ii,iconDisabled:Ii,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}},Qi=Ve({settings:{},setSyncedSettings:()=>null,syncedSettingsRef:{current:{}}}),Z=()=>We(Qi),Ys=({children:e,settings:t=Ti,setSyncedSettings:n,syncedSettingsRef:r})=>P(Qi.Provider,{value:{settings:t,setSyncedSettings:n,syncedSettingsRef:r},children:e}),Mi={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:{}},Oi=Ve({styles:{},setSyncedStyles:()=>null,syncedStylesRef:{current:{}}}),Ae=()=>We(Oi),Xs=({children:e,styles:t=Mi,setSyncedStyles:n,syncedStylesRef:r})=>P(Oi.Provider,{value:{styles:t,setSyncedStyles:n,syncedStylesRef:r},children:e}),Vs=({buttons:e})=>{var t,n,r,o,i,a,A;const{settings:s}=Z(),{styles:l}=Ae(),c={backgroundImage:`linear-gradient(to right, ${(t=s.general)==null?void 0:t.secondaryColor},
|
|
2
|
+
${(n=s.general)==null?void 0:n.primaryColor})`,...l.headerStyle};return P("div",{style:c,className:"rcb-chat-header-container",children:[P("div",{className:"rcb-chat-header",children:[((r=s.header)==null?void 0:r.showAvatar)&&P("div",{style:{backgroundImage:`url("${(o=s.header)==null?void 0:o.avatar}")`},className:"rcb-bot-avatar"}),mt((i=s.header)==null?void 0:i.title)?(a=s.header)==null?void 0:a.title:P("div",{style:{margin:0,fontSize:20,fontWeight:"bold"},children:(A=s.header)==null?void 0:A.title})]}),P("div",{className:"rcb-chat-header",children:e==null?void 0:e.map((u,d)=>P(oe,{children:u},d))})]})},Ni=Ve({}),ye=()=>We(Ni),Ks=({children:e,botIdRef:t,flowRef:n})=>{const r=ie(null),o=ie(""),i=ie(null),a=ie(new Map),A=ie(null),s=ie(""),l=ie(!1),c=ie(null),u=ie(null),d=ie(null);return P(Ni.Provider,{value:{botIdRef:t,flowRef:n,inputRef:r,timeoutIdRef:i,streamMessageMap:a,chatBodyRef:A,paramsInputRef:s,keepVoiceOnRef:l,audioContextRef:c,audioBufferRef:u,gainNodeRef:d,prevInputRef:o},children:e})},Te=e=>{const[t,n]=ee(e),r=ie(e);return[t,o=>{const i=typeof o=="function"?o(r.current):o;r.current=i,n(i)},r]},Li=Ve({}),we=()=>We(Li),$s=({children:e,settings:t})=>{var n,r,o,i,a,A;const[s,l,c]=Te(!1),[u,d,p]=Te(((n=t==null?void 0:t.chatWindow)==null?void 0:n.defaultOpen)??!1),[f,y,h]=Te(((r=t==null?void 0:t.audio)==null?void 0:r.defaultToggledOn)??!1),[w,v,g]=Te(((o=t==null?void 0:t.voice)==null?void 0:o.defaultToggledOn)??!1),[x,C,E]=Te(((i=t==null?void 0:t.notification)==null?void 0:i.defaultToggledOn)??!0),[_,I]=ee(!1),[D,k]=ee(!1),[S,B,L]=Te(!1),[N,Q,W]=Te(!0),[O,H,m]=Te(!1),[U,b]=ee(!1),[F,K]=ee(!1),[z,ne]=ee(0),[fe,de]=ee(0),[Be,me]=ee(!1),[Ce,ft]=ee(((a=window.visualViewport)==null?void 0:a.height)??window.innerHeight),[ze,je]=ee(((A=window.visualViewport)==null?void 0:A.width)??window.innerWidth);return P(Li.Provider,{value:{isBotTyping:s,setSyncedIsBotTyping:l,syncedIsBotTypingRef:c,isChatWindowOpen:u,setSyncedIsChatWindowOpen:d,syncedIsChatWindowOpenRef:p,audioToggledOn:f,setSyncedAudioToggledOn:y,syncedAudioToggledOnRef:h,voiceToggledOn:w,setSyncedVoiceToggledOn:v,syncedVoiceToggledOnRef:g,notificationsToggledOn:x,setSyncedNotificationsToggledOn:C,syncedNotificationsToggledOnRef:E,isLoadingChatHistory:_,setIsLoadingChatHistory:I,hasChatHistoryLoaded:D,setHasChatHistoryLoaded:k,isScrolling:S,setSyncedIsScrolling:B,syncedIsScrollingRef:L,textAreaDisabled:N,setSyncedTextAreaDisabled:Q,syncedTextAreaDisabledRef:W,textAreaSensitiveMode:O,setSyncedTextAreaSensitiveMode:H,syncedTextAreaSensitiveModeRef:m,hasInteractedPage:U,setHasInteractedPage:b,hasFlowStarted:F,setHasFlowStarted:K,unreadCount:z,setUnreadCount:ne,inputLength:fe,setInputLength:de,blockAllowsAttachment:Be,setBlockAllowsAttachment:me,viewportHeight:Ce,setViewportHeight:ft,viewportWidth:ze,setViewportWidth:je},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 Js={[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},mr=async(e,t,n)=>{const r=new CustomEvent(e,{detail:t,cancelable:Js[e]});return r.data=n,r.promises=[],window.dispatchEvent(r),await Promise.all(r.promises),r},Ri=Ve({paths:[],setSyncedPaths:()=>{},syncedPathsRef:{current:[]}}),en=()=>We(Ri),Zs=({children:e})=>{const[t,n,r]=Te([]);return P(Ri.Provider,{value:{paths:t,setSyncedPaths:n,syncedPathsRef:r},children:e})},Ge=()=>{const{botIdRef:e}=ye(),{syncedPathsRef:t}=en(),n=q(()=>t.current.length>0?t.current.at(-1)??null:null,[]),r=q(()=>t.current.length>1?t.current.at(-2)??null:null,[]);return{dispatchRcbEvent:q(async(o,i)=>{const a={botId:e.current,currPath:n(),prevPath:r()};return await mr(o,a,i)},[e])}},Qe=()=>{const{settings:e}=Z(),{isChatWindowOpen:t,setSyncedIsChatWindowOpen:n,viewportHeight:r,setViewportHeight:o,viewportWidth:i,setViewportWidth:a,setUnreadCount:A,setSyncedIsBotTyping:s,setSyncedIsScrolling:l,syncedIsBotTypingRef:c,syncedIsChatWindowOpenRef:u}=we(),{chatBodyRef:d}=ye(),{dispatchRcbEvent:p}=Ge(),f=q(()=>{if(!d.current)return!1;const g=d.current.getBoundingClientRect(),x=window.innerHeight??document.documentElement.clientHeight,C=window.innerWidth??document.documentElement.clientWidth;return g.top>=0&&g.left>=0&&g.bottom<=x&&g.right<=C},[d]),y=q(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(C=>(C||A(0),!C)))},[u]),h=q(async g=>{g!==c.current&&s(x=>!x)},[c]),w=q((g,x,C,E)=>(g/=E/2)<1?C/2*g*g+x:-C/2*(--g*(g-2)-1)+x,[]),v=q((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 C=d.current.scrollTop,E=x-C;let _=0;const I=()=>{if(!d.current)return;_+=20;const D=w(_,C,E,g);d.current.scrollTop=D,_<g?requestAnimationFrame(I):l(!1)};I()},[d]);return{isChatWindowOpen:t,setSyncedIsChatWindowOpen:n,toggleChatWindow:y,viewportHeight:r,setViewportHeight:o,viewportWidth:i,setViewportWidth:a,toggleIsBotTyping:h,scrollToBottom:v,getIsChatBotVisible:f}},el=()=>{var e,t,n;const{settings:r}=Z(),{styles:o}=Ae(),{unreadCount:i,isScrolling:a}=we(),{chatBodyRef:A}=ye(),{scrollToBottom:s}=Qe(),[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 P("div",{className:"rcb-message-prompt-container "+(A.current&&((d=r.chatWindow)!=null&&d.showMessagePrompt)&&a&&i>0?"visible":"hidden"),children:P("div",{onMouseEnter:()=>{c(!0)},onMouseLeave:()=>{c(!1)},style:l?u:{...o.chatMessagePromptStyle},onMouseDown:p=>{p.preventDefault(),s(600)},className:"rcb-message-prompt-text",children:(n=r.chatWindow)==null?void 0:n.messagePromptText})});var d},Hi=Ve({messages:[],setSyncedMessages:()=>{},syncedMessagesRef:{current:[]}}),vr=()=>We(Hi),tl=({children:e})=>{const[t,n,r]=Te([]);return P(Hi.Provider,{value:{messages:t,setSyncedMessages:n,syncedMessagesRef:r},children:e})},nl=({message:e,isNewSender:t})=>{var n,r,o,i,a,A;const{settings:s}=Z(),{styles:l}=Ae(),c=typeof e.content=="string",u=e.content,d=e.contentWrapper?P(e.contentWrapper,{children:u}):u,p={backgroundColor:(n=s.general)==null?void 0:n.primaryColor,color:"#fff",maxWidth:(r=s.userBubble)!=null&&r.showAvatar?"65%":"70%",...l.userBubbleStyle},f=(o=s.userBubble)!=null&&o.animate?"rcb-user-message-entry":"",y=((i=s.userBubble)==null?void 0:i.showAvatar)&&t,h="rcb-user-message"+(!t&&(a=s.userBubble)!=null&&a.showAvatar?" rcb-user-message-offset":"");return P("div",{className:"rcb-user-message-container",children:[c?P("div",{style:p,className:`${h} ${f}`,children:d}):P(oe,{children:d}),y&&P("div",{style:{backgroundImage:`url("${(A=s.userBubble)==null?void 0:A.avatar}")`},className:"rcb-message-user-avatar"})]})},rl=({message:e,isNewSender:t})=>{var n,r,o,i,a,A;const{settings:s}=Z(),{styles:l}=Ae(),c=typeof e.content=="string",u=e.content,d=e.contentWrapper?P(e.contentWrapper,{children:u}):u,p={backgroundColor:(n=s.general)==null?void 0:n.secondaryColor,color:"#fff",maxWidth:(r=s.botBubble)!=null&&r.showAvatar?"65%":"70%",...l.botBubbleStyle},f=(o=s.botBubble)!=null&&o.animate?"rcb-bot-message-entry":"",y=((i=s.botBubble)==null?void 0:i.showAvatar)&&t,h="rcb-bot-message"+(!t&&(a=s.botBubble)!=null&&a.showAvatar?" rcb-bot-message-offset":"");return P("div",{className:"rcb-bot-message-container",children:[y&&P("div",{style:{backgroundImage:`url("${(A=s.botBubble)==null?void 0:A.avatar}")`},className:"rcb-message-bot-avatar"}),c?P("div",{style:p,className:`${h} ${f}`,children:d}):P(oe,{children:d})]})},ol=()=>{var e,t,n;const{settings:r}=Z(),{styles:o}=Ae(),i=(e=r.botBubble)!=null&&e.animate?"rcb-bot-message-entry":"";return P("div",{className:"rcb-bot-message-container",children:[((t=r.botBubble)==null?void 0:t.showAvatar)&&P("div",{style:{backgroundImage:`url("${(n=r.botBubble)==null?void 0:n.avatar}")`},className:"rcb-message-bot-avatar"}),P("div",{onMouseDown:a=>{a.preventDefault()},className:`rcb-bot-message ${i}`,children:P("div",{className:"rcb-typing-indicator",style:{...o==null?void 0:o.rcbTypingIndicatorContainerStyle},children:[P("span",{className:"rcb-dot",style:{...o==null?void 0:o.rcbTypingIndicatorDotStyle}}),P("span",{className:"rcb-dot",style:{...o==null?void 0:o.rcbTypingIndicatorDotStyle}}),P("span",{className:"rcb-dot",style:{...o==null?void 0:o.rcbTypingIndicatorDotStyle}})]})})]})},il=()=>{var e,t,n;const{settings:r}=Z(),{styles:o}=Ae(),{messages:i}=vr(),{scrollToBottom:a}=Qe(),{isBotTyping:A,syncedIsScrollingRef:s}=we(),{chatBodyRef:l}=ye(),c={...o==null?void 0:o.bodyStyle,scrollbarWidth:(e=r.chatWindow)!=null&&e.showScrollbar?"auto":"none"};return te(()=>{s.current||a()},[(t=l.current)==null?void 0:t.scrollHeight]),P("div",{style:c,className:"rcb-chat-body-container",ref:l,children:[i.map((u,d)=>{const p=(f=>f===0||i[f].sender!==i[f-1].sender)(d);return u.sender.toUpperCase()==="USER"?P(nl,{message:u,isNewSender:p},d):u.sender.toUpperCase()==="BOT"?P(rl,{message:u,isNewSender:p},d):P("div",{children:u.content},d)}),A&&((n=r.chatWindow)==null?void 0:n.showTypingIndicator)&&P(ol,{}),P(el,{})]})},al=({checkboxes:e,checkedItems:t,path:n})=>{var r,o,i,a,A,s,l,c,u,d,p;const{settings:f}=Z(),{styles:y}=Ae(),{paths:h}=en(),{handleSubmitText:w}=Mt(),[v,g]=ee(new Set),[x,C]=ee(!1),E={cursor:x?`url("${(r=f.general)==null?void 0:r.actionDisabledIcon}"), auto`:"pointer",color:(o=f.general)==null?void 0:o.primaryColor,borderColor:(i=f.general)==null?void 0:i.primaryColor,...y.botCheckboxRowStyle},_={cursor:x||v.size<e.min?`url("${(a=f.general)==null?void 0:a.actionDisabledIcon}"), auto`:"pointer",color:(A=f.general)==null?void 0:A.primaryColor,borderColor:(s=f.general)==null?void 0:s.primaryColor,...y.botCheckboxNextStyle},I={cursor:x?`url("${(l=f.general)==null?void 0:l.actionDisabledIcon}"), auto`:"pointer",color:"transparent",...y.botCheckMarkStyle},D={cursor:x?`url("${(c=f.general)==null?void 0:c.actionDisabledIcon}"), auto`:"pointer",color:"#fff",borderColor:(u=f.general)==null?void 0:u.primaryColor,backgroundColor:(d=f.general)==null?void 0:d.primaryColor,...y.botCheckMarkSelectedStyle};return te(()=>{h.length>0&&h[h.length-1]!==n&&C(!e.reusable)},[h]),P("div",{className:"rcb-checkbox-container "+((p=f.botBubble)!=null&&p.showAvatar?"rcb-checkbox-offset":""),children:[e.items.map(k=>P("div",{onMouseDown:S=>{S.preventDefault(),(B=>{x||g(L=>{const N=new Set(L);if(N.has(B))t.delete(B),N.delete(B);else{if(v.size==e.max)return L;t.add(B),N.add(B)}return N})})(k)},style:E,className:"rcb-checkbox-row-container",children:P("div",{className:"rcb-checkbox-row",children:[P("div",{style:v.has(k)?D:I,className:"rcb-checkbox-mark"}),P("div",{className:"rcb-checkbox-label",children:k})]})},k)),P("div",{style:_,className:"rcb-checkbox-next-button",onMouseDown:k=>{var S;if(k.preventDefault(),x||v.size<e.min)return;const B=Array.from(t).join(", ");let L;C(!e.reusable),L=e.sendOutput!=null?e.sendOutput:((S=f.chatInput)==null?void 0:S.sendCheckboxOutput)??!0,w(B,L)}})]})},Al=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,a=P(al,{checkboxes:r,checkedItems:o,path:i});await t.injectMessage(a)},sl=async(e,t)=>{const n=e.function;if(!n)return;const r=n(t);return r instanceof Promise?await r:r},ll=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))},cl=({options:e,path:t})=>{var n,r,o,i,a,A;const{settings:s}=Z(),{styles:l}=Ae(),{paths:c}=en(),{handleSubmitText:u}=Mt(),[d,p]=ee([]),[f,y]=ee(!1),h={cursor:f?`url("${(n=s.general)==null?void 0:n.actionDisabledIcon}"), auto`:"pointer",color:(r=s.general)==null?void 0:r.primaryColor,borderColor:(o=s.general)==null?void 0:o.primaryColor,backgroundColor:"#fff",...l.botOptionStyle},w={color:"#fff",borderColor:(i=s.general)==null?void 0:i.primaryColor,backgroundColor:(a=s.general)==null?void 0:a.primaryColor,...l.botOptionHoveredStyle};return te(()=>{c.length>0&&c[c.length-1]!==t&&y(!e.reusable)},[c]),P("div",{className:"rcb-options-container "+((A=s.botBubble)!=null&&A.showAvatar?"rcb-options-offset":""),children:e.items.map((v,g)=>{const x=d[g]&&!f;return P("div",{className:"rcb-options",style:x?w:h,onMouseEnter:()=>(C=>{p(E=>{const _=[...E];return _[C]=!0,_})})(g),onMouseLeave:()=>(C=>{p(E=>{const _=[...E];return _[C]=!1,_})})(g),onMouseDown:C=>{var E;if(C.preventDefault(),f)return;let _;y(!e.reusable),_=e.sendOutput!=null?e.sendOutput:((E=s.chatInput)==null?void 0:E.sendOptionOutput)??!0,u(v,_)},children:v},v)})})},ul=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=P(cl,{options:r,path:o});await t.injectMessage(i)},dl=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)}},pl=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 a=setTimeout(async()=>{const A=await r(e);A&&await Fi(A,t)},i.duration);i.interruptable&&(n.current=a)},fl=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)},Ui=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)},Fi=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 sl(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 a=i(o);if(a instanceof Promise&&(a=await a),!a)return!1;const A=a;return await o.goToPath(A),!0})(e,t)},hl=()=>{var e;const{settings:t}=Z(),{styles:n}=Ae();return P("div",{className:"rcb-line-break-container",children:P("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})})},gl=()=>{var e;const{settings:t}=Z(),{styles:n}=Ae(),r={borderTop:`4px solid ${(e=t.general)==null?void 0:e.primaryColor}`,...n.loadingSpinnerStyle};return P("div",{className:"rcb-spinner-container",children:P("div",{style:r,className:"rcb-spinner"})})},Pn=()=>{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")}},st=(e,t)=>({id:Pn(),content:e,sender:t,type:typeof e=="string"?"string":"object",timestamp:new Date().toUTCString(),tags:[]});let lt,zi=!1,kn="rcb-history",Cn=30,ji=!1,tn=[];const yr=async e=>{if(ji||!lt)return;const t=[],n=zi?tn.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===Cn))break}let r=t.map(vl);if(r.length<Cn){const o=Cn-r.length;r=[...tn.slice(-o),...r]}Wi(r)},br=()=>tn,ml=e=>{Wi(e),tn=e},Wi=e=>{lt&<.setItem(kn,JSON.stringify(e))},wr=e=>{var t,n,r,o,i;lt=((n=(t=e.chatHistory)==null?void 0:t.storageType)==null?void 0:n.toUpperCase())==="SESSION_STORAGE"?sessionStorage:localStorage,kn=(r=e.chatHistory)==null?void 0:r.storageKey,Cn=(o=e.chatHistory)==null?void 0:o.maxEntries,ji=(i=e.chatHistory)==null?void 0:i.disabled,tn=(a=>{if(a!=null)try{return JSON.parse(a)}catch{return[]}return[]})(lt.getItem(kn))},vl=e=>mt(e.content)?structuredClone({id:e.id,content:Rs.renderToString(e.content),type:e.type,sender:e.sender.toUpperCase(),timestamp:e.timestamp,tags:e.tags}):e,Gi=(e,t,n)=>{const r=new DOMParser().parseFromString(e,"text/html");return Array.from(r.body.childNodes).map((o,i)=>{var a;if(o.nodeType===Node.TEXT_NODE)return o.textContent;{const A=o.tagName.toLowerCase();let s=Array.from(o.attributes).reduce((l,c)=>{const u=c.name.toLowerCase();if(u==="style"){const d=c.value.split(";").filter(f=>f.trim()!==""),p={};d.forEach(f=>{const[y,h]=f.split(":").map(v=>v.trim()),w=y.replace(/-([a-z])/g,(v,g)=>g.toUpperCase());p[w]=h}),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(s,"class")){const l=o.classList;s.className=l.toString(),delete s.class,(a=t.botBubble)!=null&&a.showAvatar&&(s=yl(l,s)),s=bl(l,s,t,n),s=wl(l,s,t,n),s=xl(l,s,t,n),s=El(l,s,t,n)}if(["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"].includes(A))return re(A,{key:i,...s});{const l=Gi(o.innerHTML,t,n);return re(A,{key:i,...s},...l)}}})},yl=(e,t)=>((e.contains("rcb-options-container")||e.contains("rcb-checkbox-container"))&&(t.className=`${e.toString()} rcb-options-offset`),t),bl=(e,t,n,r)=>{var o,i,a,A,s;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:((a=r.botOptionStyle)==null?void 0:a.color)??((A=n.general)==null?void 0:A.primaryColor),cursor:`url("${(s=n.general)==null?void 0:s.actionDisabledIcon}"), auto`,...r.botOptionStyle}),t},wl=(e,t,n,r)=>{var o,i,a,A,s;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:((a=r.botCheckboxRowStyle)==null?void 0:a.color)??((A=n.general)==null?void 0:A.primaryColor),cursor:`url("${(s=n.general)==null?void 0:s.actionDisabledIcon}"), auto`,...r.botCheckboxRowStyle}),t},xl=(e,t,n,r)=>{var o,i,a,A,s;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:((a=r.botCheckboxNextStyle)==null?void 0:a.color)??((A=n.general)==null?void 0:A.primaryColor),cursor:`url("${(s=n.general)==null?void 0:s.actionDisabledIcon}"), auto`,...r.botCheckboxNextStyle}),t},El=(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},xr=()=>{const{settings:e}=Z(),{notificationsToggledOn:t,setSyncedNotificationsToggledOn:n,hasInteractedPage:r,unreadCount:o,setUnreadCount:i,syncedNotificationsToggledOnRef:a}=we(),{audioBufferRef:A,audioContextRef:s,gainNodeRef:l}=ye(),{dispatchRcbEvent:c}=Ge(),u=q(async()=>{var p,f;const y=(p=e.notification)==null?void 0:p.sound;s.current=new AudioContext;const h=s.current.createGain();let w;if(h.gain.value=((f=e.notification)==null?void 0:f.volume)??.2,l.current=h,y!=null&&y.startsWith("data:audio")){const v=atob(y.split(",")[1]),g=new ArrayBuffer(v.length),x=new Uint8Array(g);for(let C=0;C<v.length;C++)x[C]=v.charCodeAt(C);w=g}else w=await(await fetch(y)).arrayBuffer();A.current=await s.current.decodeAudioData(w)},[e.notification]),d=q(()=>{var p;if((p=e.notification)!=null&&p.disabled||!a.current||!r||!s.current||!A.current)return;const f=s.current.createBufferSource();f.buffer=A.current,f.connect(l.current).connect(s.current.destination),f.start()},[e.notification,a,r,s,A,l]);return{unreadCount:o,setUnreadCount:i,notificationsToggledOn:t,toggleNotifications:q(async p=>{var f;p!==a.current&&((f=e.event)!=null&&f.rcbToggleNotifications&&(await c(j.TOGGLE_NOTIFICATIONS,{currState:a.current,newState:!a.current})).defaultPrevented||n(y=>!y))},[a]),playNotificationSound:d,setUpNotifications:u}},Pl=(e,t)=>{var n,r,o,i;((a,A,s,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=a,u.lang=A,u.rate=l,u.volume=c;let d=!1;for(const p of s)if(window.speechSynthesis.getVoices().find(f=>{if(f.name===p)return u.voice=f,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)},qi=()=>{const{settings:e}=Z(),{audioToggledOn:t,setSyncedAudioToggledOn:n,syncedAudioToggledOnRef:r}=we(),{dispatchRcbEvent:o}=Ge(),i=q(async A=>{var s;A!==r.current&&((s=e.event)!=null&&s.rcbToggleAudio&&(await o(j.TOGGLE_AUDIO,{currState:r.current,newState:!r.current})).defaultPrevented||n(l=>!l))},[r]),a=q(async A=>{var s,l;if((s=e.audio)!=null&&s.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}Pl(e,c)},[e,r]);return{audioToggledOn:t,speakAudio:a,toggleAudio:i}},yt=()=>{var e,t;const{settings:n}=Z(),{messages:r,setSyncedMessages:o,syncedMessagesRef:i}=vr(),{setSyncedIsBotTyping:a,setUnreadCount:A,syncedIsScrollingRef:s,syncedIsChatWindowOpenRef:l}=we(),{streamMessageMap:c,chatBodyRef:u,paramsInputRef:d}=ye(),{scrollToBottom:p,getIsChatBotVisible:f}=Qe(),{dispatchRcbEvent:y}=Ge(),{speakAudio:h}=qi(),{playNotificationSound:w}=xr(),v=q((D,k=!1)=>{var S,B;yr(D);let L=!0;const N=D[D.length-1];if(!N)return;const Q=N.sender.toUpperCase();Q==="USER"&&(L=!1),(S=n.general)!=null&&S.embedded&&f()&&(L=!1),(l.current&&!s.current||k)&&(L=!1),L&&w(),!k&&(Q!=="USER"&&(B=n.chatWindow)!=null&&B.autoJumpToBottom||Q==="USER"||!s.current)&&setTimeout(()=>p(),1)},[n,u,l,s,w,p,f]),g=q(async(D,k="BOT",S=null)=>{var B,L,N,Q,W;if(typeof D!="string")throw new Error("Content must be of type string to simulate stream.");k=k.toUpperCase();let O=st(D,k);if((B=n.event)!=null&&B.rcbStartSimulateStreamMessage){const z=await y(j.START_SIMULATE_STREAM_MESSAGE,{message:O});if(z.defaultPrevented)return null;S=z.data.simulateStreamChunker||S,O=z.data.message}a(!1);let H=30;H=k==="BOT"?(L=n.botBubble)==null?void 0:L.streamSpeed:(N=n.userBubble)==null?void 0:N.streamSpeed;const m={...O,content:""};o(z=>[...z,m]),v(i.current);let U=O.content;S&&(U=S(U));let b=0;const F=U.length;O.sender.toUpperCase()==="BOT"&&(l.current||(Q=n.general)!=null&&Q.embedded)&&typeof O.content=="string"&&O.content.trim()!==""&&h(O.content);const K=new Promise(z=>{const ne=setInterval(()=>{if(b>=F)return clearInterval(ne),void z();o(fe=>{const de=[...fe];for(let Be=de.length-1;Be>=0;Be--)if(de[Be].id===m.id){const me=U[b];me&&(m.content+=me,de[Be]=m),b++;break}return de})},H)});return(s.current||!l.current)&&A(z=>z+1),await K,yr(i.current),(W=n.event)!=null&&W.rcbStopSimulateStreamMessage&&await y(j.STOP_SIMULATE_STREAM_MESSAGE,{message:O}),k==="USER"&&(d.current=D),O},[n,y,v,i,d,a,A,l,h]),x=q(async(D,k="BOT")=>{var S,B,L;k=k.toUpperCase();let N=st(D,k);if((S=n.event)!=null&&S.rcbPreInjectMessage){const Q=await y(j.PRE_INJECT_MESSAGE,{message:N});if(Q.defaultPrevented)return null;N=Q.data.message}return N.sender.toUpperCase()==="BOT"&&(l.current||(B=n.general)!=null&&B.embedded)&&typeof N.content=="string"&&N.content.trim()!==""&&h(N.content),(s.current||!l.current)&&A(Q=>Q+1),(L=n.event)!=null&&L.rcbPostInjectMessage&&await y(j.POST_INJECT_MESSAGE,{message:N}),o(Q=>[...Q,N]),v(i.current),k==="USER"&&typeof D=="string"&&(d.current=D),N},[n,y,v,d,i,l,h,A]),C=q(async D=>{var k;const S=i.current.find(B=>B.id===D);return!S||(k=n.event)!=null&&k.rcbRemoveMessage&&(await y(j.REMOVE_MESSAGE,{message:S})).defaultPrevented?null:(o(B=>B.filter(L=>L.id!==D)),v(i.current),A(B=>Math.max(B-1,0)),S)},[y,(e=n.event)==null?void 0:e.rcbRemoveMessage,v,i,A]),E=q(async(D,k="BOT")=>{var S,B;if(k=k.toUpperCase(),!c.current.has(k)){const N=st(D,k);return(S=n.event)!=null&&S.rcbStartStreamMessage&&(await y(j.START_STREAM_MESSAGE,{message:N})).defaultPrevented?null:(a(!1),o(Q=>[...Q,N]),v(i.current),c.current.set(k,N.id),(s.current||!l.current)&&A(Q=>Q+1),N)}const L={...st(D,k),id:c.current.get(k)};return(B=n.event)!=null&&B.rcbChunkStreamMessage&&(await y(j.CHUNK_STREAM_MESSAGE,{message:L})).defaultPrevented?null:(o(N=>N.map(Q=>Q.id===L.id?L:Q)),v(i.current,!0),L)},[y,n.event,v,i,a,A,c]),_=q(async(D="BOT")=>{var k;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 N=i.current.find(Q=>Q.id===S);N&&(B=N),await new Promise(Q=>setTimeout(Q,20))}return((k=n.event)==null||!k.rcbStopStreamMessage||!(await y(j.STOP_STREAM_MESSAGE,{message:B})).defaultPrevented)&&(c.current.delete(D),yr(i.current),D==="USER"&&typeof(B==null?void 0:B.content)=="string"&&(d.current=B.content),!0)},[y,(t=n.event)==null?void 0:t.rcbStopStreamMessage,c,d]),I=q(D=>{const k=typeof D=="function"?D(i.current):D;o(k),v(k)},[v,i]);return{simulateStreamMessage:g,injectMessage:x,removeMessage:C,streamMessage:E,endStreamMessage:_,replaceMessages:I,messages:r}};let Er,Ke,_n,ct=!1,$e=null;const Pr=()=>{if(!Er){const e=window.SpeechRecognition||window.webkitSpeechRecognition;Er=e!=null?new e:null}return Er},kl=(e,t,n,r,o,i)=>{var a,A,s;const l=Pr();if(!l)return;if(!ct)try{ct=!0,l.lang=(a=e.voice)==null?void 0:a.language,l.start()}catch{}const c=(A=e.voice)==null?void 0:A.timeoutPeriod,u=(s=e.voice)==null?void 0:s.autoSendPeriod;l.onresult=d=>{var p,f;clearTimeout(Ke),Ke=null,clearTimeout(_n);const y=d.results[d.results.length-1][0].transcript;if(i.current){const h=(p=e.chatInput)==null?void 0:p.characterLimit,w=i.current.value+y;h!=null&&h>=0&&w.length>h?r(w.slice(0,h)):r(w),o(i.current.value.length)}c&&(Ke=setTimeout(async()=>await Cr(t,i),c)),(f=e.voice)!=null&&f.autoSendDisabled||(_n=setTimeout(n,u))},l.onend=()=>{ct?(l.start(),!Ke&&c&&(Ke=setTimeout(async()=>await Cr(t,i),c))):(clearTimeout(Ke),Ke=null,clearTimeout(_n))},c&&(Ke=setTimeout(async()=>await Cr(t,i),c))},Cl=(e,t)=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(n=>{if($e=new MediaRecorder(n),!ct)try{ct=!0,$e.start()}catch{}$e.ondataavailable=r=>{t.current&&t.current.push(r.data)},$e.onstop=()=>{e(),n.getTracks().forEach(r=>r.stop())}}).catch(n=>{console.error("Unable to use microphone:",n)})},kr=()=>{const e=Pr();e&&(ct=!1,e&&e.stop(),$e&&$e.state!=="inactive"&&($e.stop(),$e=null),clearTimeout(Ke),Ke=null,clearTimeout(_n))},Cr=async(e,t)=>{var n;(n=t.current)!=null&&n.disabled||await e(),kr()},_r=()=>{const{settings:e}=Z(),{voiceToggledOn:t,setSyncedVoiceToggledOn:n,syncedVoiceToggledOnRef:r}=we(),{dispatchRcbEvent:o}=Ge(),i=q(async A=>{var s;A!==r.current&&((s=e.event)!=null&&s.rcbToggleVoice&&(await o(j.TOGGLE_VOICE,{currState:r.current,newState:!r.current})).defaultPrevented||n(l=>!l))},[r]),a=q(A=>{((s,l)=>{var c,u,d;const p=Pr();(c=l.voice)!=null&&c.disabled||(u=l.chatInput)==null||!u.blockSpam||!p||(s&&!ct?(ct=!0,(d=l.voice)!=null&&d.sendAsAudio?$e==null||$e.start():p.start()):s||kr())})(A,e)},[e]);return{voiceToggledOn:t,toggleVoice:i,syncVoice:a}},bt=()=>{var e;const{settings:t}=Z(),{inputLength:n,setInputLength:r,textAreaDisabled:o,setSyncedTextAreaDisabled:i,textAreaSensitiveMode:a,setSyncedTextAreaSensitiveMode:A,syncedTextAreaDisabledRef:s,syncedTextAreaSensitiveModeRef:l}=we(),{inputRef:c,chatBodyRef:u,prevInputRef:d}=ye(),{dispatchRcbEvent:p}=Ge(),{getIsChatBotVisible:f}=Qe(),y=q(async E=>{var _,I,D;if(s.current&&c.current)c.current.value="";else if(c.current&&d.current!==null){const k=(_=t.chatInput)==null?void 0:_.characterLimit,S=(I=t.chatInput)!=null&&I.allowNewline?E:E.replace(/\n/g," ");if(k!=null&&k>=0&&S.length>k?c.current.value=S.slice(0,k):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}},[s,c,d,t,p]),h=q(E=>{var _;(_=c.current)!=null&&_.disabled||setTimeout(()=>{var I,D,k;(I=t.general)!=null&&I.embedded?f()&&((D=c.current)==null||D.focus()):E!=="start"&&((k=c.current)==null||k.focus())},100)},[c,(e=t.general)==null?void 0:e.embedded,u,f]),w=q(()=>{c.current&&c.current.focus()},[]),v=q(()=>{c.current&&c.current.blur()},[]),g=q(()=>c&&c.current?c.current.value:"",[]),x=q(E=>{E!==s.current&&i(_=>!_)},[s]),C=q(E=>{E!==l.current&&A(_=>!_)},[l]);return{textAreaDisabled:o,setSyncedTextAreaDisabled:i,textAreaSensitiveMode:a,setSyncedTextAreaSensitiveMode:A,inputLength:n,setInputLength:r,getTextAreaValue:g,setTextAreaValue:y,updateTextAreaFocus:h,focusTextArea:w,blurTextArea:v,toggleTextAreaDisabled:x,toggleTextAreaSensitiveMode:C}},Yi=Ve({toasts:[],setSyncedToasts:()=>{},syncedToastsRef:{current:[]}}),Xi=()=>We(Yi),_l=({children:e})=>{const[t,n,r]=Te([]);return P(Yi.Provider,{value:{toasts:t,setSyncedToasts:n,syncedToastsRef:r},children:e})},Qt=()=>{const{settings:e}=Z(),{toasts:t,setSyncedToasts:n,syncedToastsRef:r}=Xi(),{dispatchRcbEvent:o}=Ge(),i=q(async(s,l)=>{var c,u,d,p;let f=null;if(r.current.length>=(((c=e.toast)==null?void 0:c.maxCount)??3)){if((u=e.toast)!=null&&u.forbidOnMax)return null;f=Pn();let h={id:f,content:s,timeout:l};if((d=e.event)!=null&&d.rcbShowToast){const w=await o(j.SHOW_TOAST,{toast:h});if(w.defaultPrevented)return null;h=w.data.toast}return n(w=>[...w.slice(1),h]),f}f=Pn();let y={id:f,content:s,timeout:l};if((p=e.event)!=null&&p.rcbShowToast){const h=await o(j.SHOW_TOAST,{toast:y});if(h.defaultPrevented)return null;y=h.data.toast}return n(h=>[...h,y]),f},[e,o]),a=q(async s=>{var l;const c=r.current.find(u=>u.id===s);return!c||(l=e.event)!=null&&l.rcbDismissToast&&(await o(j.DISMISS_TOAST,{toast:c})).defaultPrevented?null:(n(u=>u.filter(d=>d.id!==s)),s)},[o]),A=q(s=>{const l=typeof s=="function"?s(r.current):s;n(l)},[r]);return{showToast:i,dismissToast:a,toasts:t,replaceToasts:A}},Dn=()=>{var e,t,n,r,o;const{settings:i}=Z(),{paths:a,setSyncedPaths:A,syncedPathsRef:s}=en(),{flowRef:l,streamMessageMap:c,paramsInputRef:u,keepVoiceOnRef:d,timeoutIdRef:p}=ye(),{setSyncedIsBotTyping:f,setSyncedTextAreaDisabled:y,setSyncedTextAreaSensitiveMode:h,blockAllowsAttachment:w,setBlockAllowsAttachment:v}=we(),{dispatchRcbEvent:g}=Ge(),{endStreamMessage:x,injectMessage:C,removeMessage:E,simulateStreamMessage:_,streamMessage:I}=yt(),{showToast:D,dismissToast:k}=Qt(),{toggleChatWindow:S}=Qe(),{updateTextAreaFocus:B,setTextAreaValue:L}=bt(),{syncVoice:N}=_r(),Q=q(async b=>{var F;if((F=i.event)!=null&&F.rcbPostProcessBlock){const K=await g(j.POST_PROCESS_BLOCK,{block:b});if(K.defaultPrevented)return null;b=K.data.block}return b},[(e=i.event)==null?void 0:e.rcbPostProcessBlock,g]),W=q(async(b,F)=>{var K,z,ne,fe;if(!b)return;let de=l.current[b];if(!de)return void f(!1);if((K=i.event)!=null&&K.rcbPreProcessBlock){const me=await g(j.PRE_PROCESS_BLOCK,{block:de});if(me.defaultPrevented)return;de=me.data.block}f(!0),(z=i.chatInput)!=null&&z.blockSpam&&y(!0),h(!1);const Be={prevPath:F,currPath:b,goToPath:m,setTextAreaValue:L,userInput:u.current,endStreamMessage:x,injectMessage:C,removeMessage:E,simulateStreamMessage:_,streamMessage:I,toggleChatWindow:S,showToast:D,dismissToast:k};await(async(me,Ce,ft,ze,je,Ne,Le)=>{if(!me)throw new Error("Block is not valid.");for(const nt of Object.keys(me))switch(nt){case"message":await ll(me,Ce,ft);break;case"options":await ul(me,Ce);break;case"checkboxes":await Al(me,Ce);break;case"component":await dl(me,Ce);break;case"chatDisabled":await fl(me,Ce,je);break;case"isSensitive":await Ui(me,Ce,Ne);break;case"transition":await pl(me,Ce,ze,Le)}})(de,Be,((ne=i.botBubble)==null?void 0:ne.simulateStream)??!1,p,y,h,Q),f(!1),"chatDisabled"in de||y((fe=i.chatInput)==null?void 0:fe.disabled),"isSensitive"in de||h(!1),v(typeof de.file=="function"),B(b),N(d.current&&!de.chatDisabled),b!==F&&c.current.clear()},[l,B,N,(t=i.botBubble)==null?void 0:t.simulateStream,(n=i.chatInput)==null?void 0:n.disabled,u,x,C,E,_,I,S,D,k,d,c]),O=q(()=>s.current.length>0?s.current.at(-1)??null:null,[]),H=q(()=>s.current.length>1?s.current.at(-2)??null:null,[]),m=q(async b=>{var F;const K=O(),z=H();return((F=i.event)==null||!F.rcbChangePath||!(await g(j.CHANGE_PATH,{currPath:K,prevPath:z,nextPath:b})).defaultPrevented)&&(A(ne=>[...ne,b]),await W(b,K),!0)},[(r=i.chatInput)==null?void 0:r.blockSpam,(o=i.event)==null?void 0:o.rcbChangePath,W,g]),U=q(b=>{const F=typeof b=="function"?b(s.current):b;A(F)},[s]);return{getCurrPath:O,getPrevPath:H,goToPath:m,blockAllowsAttachment:w,setBlockAllowsAttachment:v,paths:a,replacePaths:U,firePostProcessBlockEvent:Q}},Mt=()=>{var e,t,n,r;const{settings:o}=Z(),{endStreamMessage:i,injectMessage:a,removeMessage:A,simulateStreamMessage:s,streamMessage:l}=yt(),{syncedPathsRef:c}=en(),{getCurrPath:u,getPrevPath:d,goToPath:p,firePostProcessBlockEvent:f}=Dn(),{setSyncedTextAreaSensitiveMode:y,setSyncedTextAreaDisabled:h,setSyncedIsBotTyping:w,setBlockAllowsAttachment:v,setInputLength:g,syncedVoiceToggledOnRef:x,syncedTextAreaSensitiveModeRef:C}=we(),{flowRef:E,inputRef:_,keepVoiceOnRef:I,paramsInputRef:D,timeoutIdRef:k}=ye(),{showToast:S,dismissToast:B}=Qt(),{dispatchRcbEvent:L}=Ge(),{syncVoice:N}=_r(),{setTextAreaValue:Q}=bt(),{toggleChatWindow:W}=Qe(),O=q(async m=>{var U,b,F,K,z,ne;const fe=u();if(fe&&E.current[fe]){if(C.current){if((U=o==null?void 0:o.sensitiveInput)!=null&&U.hideInUserBubble)return;if((b=o==null?void 0:o.sensitiveInput)!=null&&b.maskInUserBubble)return void((F=o.userBubble)!=null&&F.simulateStream?await s("*".repeat(((K=o.sensitiveInput)==null?void 0:K.asterisksCount)??10),"USER"):await a("*".repeat(((z=o.sensitiveInput)==null?void 0:z.asterisksCount)??10),"USER"))}(ne=o.userBubble)!=null&&ne.simulateStream?await s(m,"USER"):await a(m,"USER")}},[E,u,o,a,s,C]),H=q(async(m,U=!0)=>{var b,F;if((m=m.trim())==="")return;U&&await O(m),k.current&&clearTimeout(k.current),_.current&&(Q(""),g(0));const K=u();if(!K)return;let z=E.current[K];const ne=await f(z);ne&&((b=o.chatInput)!=null&&b.blockSpam&&h(!0),I.current=x.current,N(!1),setTimeout(()=>{w(!0)},400),y(!1),setTimeout(async()=>{var fe;const de={prevPath:d(),currPath:u(),goToPath:p,setTextAreaValue:Q,userInput:D.current,injectMessage:a,simulateStreamMessage:s,streamMessage:l,removeMessage:A,endStreamMessage:i,toggleChatWindow:W,showToast:S,dismissToast:B},Be=c.current.length;await Fi(ne,de),c.current.length===Be&&(h("chatDisabled"in z?!!z.chatDisabled:!((fe=o.chatInput)==null||!fe.disabled)),Ui(z,de,y),v(typeof z.file=="function"),N(I.current),w(!1))},(F=o.chatInput)==null?void 0:F.botDelay))},[k,(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,N,O,d,u,p,a,s,l,A,i,W,S,B,E]);return{handleSubmitText:q(async(m,U=!0)=>{var b,F;m=m??((b=_.current)==null?void 0:b.value),!((F=o.event)!=null&&F.rcbUserSubmitText&&(await L(j.USER_SUBMIT_TEXT,{inputText:m,sendInChat:U})).defaultPrevented||!u())&&H(m,U)},[L,u,H,_,(r=o.event)==null?void 0:r.rcbUserSubmitText])}},Bn=()=>{var e;const{settings:t}=Z();return ve(()=>{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])},Dl=({buttons:e})=>{var t,n,r,o,i,a,A,s,l,c,u;const d=Bn(),{settings:p}=Z(),{styles:f}=Ae(),{textAreaDisabled:y,textAreaSensitiveMode:h,inputLength:w,hasFlowStarted:v,setHasFlowStarted:g,setInputLength:x}=we(),{inputRef:C}=ye(),[E,_]=ee(!1),[I,D]=ee(!1),{handleSubmitText:k}=Mt(),{setTextAreaValue:S}=bt(),B={boxSizing:d?"content-box":"border-box",...f.chatInputAreaStyle},L={outline:y?"":"none",boxShadow:y?"":`0 0 5px ${(t=p.general)==null?void 0:t.primaryColor}`,boxSizing:d?"content-box":"border-box",...f.chatInputAreaStyle,...f.chatInputAreaFocusedStyle},N={cursor:`url("${(n=p.general)==null?void 0:n.actionDisabledIcon}"), auto`,caretColor:"transparent",boxSizing:d?"content-box":"border-box",...f.chatInputAreaStyle,...f.chatInputAreaDisabledStyle},Q={color:"#989898",...f.characterLimitStyle},W={color:"#ff0000",...f.characterLimitReachedStyle},O=y?(r=p.chatInput)==null?void 0:r.disabledPlaceholderText:(o=p.chatInput)==null?void 0:o.enabledPlaceholderText,H=()=>{y||_(!0)},m=()=>{_(!1)},U=()=>{D(!0)},b=()=>{D(!1)},F=async z=>{var ne;if(!I&&z.key==="Enter"){if(z.shiftKey)return void((ne=p.chatInput)!=null&&ne.allowNewline||z.preventDefault());z.preventDefault(),await k()}},K=z=>{C.current&&(S(z.target.value),x(C.current.value.length))};return P("div",{"aria-label":((i=p.ariaLabel)==null?void 0:i.inputTextArea)??"input text area",role:"textbox",onMouseDown:z=>{var ne;z.stopPropagation(),!v&&((ne=p.general)==null?void 0:ne.flowStartTrigger)==="ON_CHATBOT_INTERACT"&&g(!0)},style:{...f.chatInputContainerStyle},className:"rcb-chat-input",children:[h&&(a=p.sensitiveInput)!=null&&a.maskInTextArea?P("input",{ref:C,type:"password",className:"rcb-chat-input-textarea",style:y?N:E?L:B,placeholder:O,onChange:K,onKeyDown:F,onFocus:H,onBlur:m,onCompositionStart:U,onCompositionEnd:b}):P("textarea",{ref:C,style:y?N:E?L:B,rows:1,className:"rcb-chat-input-textarea",placeholder:O,onChange:K,onKeyDown:F,onFocus:H,onBlur:m,onCompositionStart:U,onCompositionEnd:b}),P(oe,{children:[e==null?void 0:e.map((z,ne)=>P(oe,{children:z},ne)),((A=p.chatInput)==null?void 0:A.showCharacterCount)&&((s=p.chatInput)==null?void 0:s.characterLimit)!=null&&((l=p.chatInput)==null?void 0:l.characterLimit)>0&&P("div",{className:"rcb-chat-input-char-counter",style:w>=((c=p.chatInput)==null?void 0:c.characterLimit)?W:Q,children:[w,"/",(u=p.chatInput)==null?void 0:u.characterLimit]})]})]})},Bl=({buttons:e})=>{var t;const{settings:n}=Z(),{styles:r}=Ae();return P("div",{"data-testid":"chatbot-footer-container",style:{...r.footerStyle},className:"rcb-chat-footer-container",children:[P("div",{className:"rcb-chat-footer",children:e==null?void 0:e.map((o,i)=>P(oe,{children:o},i))}),P("span",{children:(t=n.footer)==null?void 0:t.text})]})},Sl=()=>{var e,t,n,r,o,i,a;const{settings:A}=Z(),{styles:s}=Ae(),{unreadCount:l}=we(),{isChatWindowOpen:c,toggleChatWindow:u}=Qe(),[d,p]=ee(!1),f={backgroundImage:`linear-gradient(to right, ${(e=A.general)==null?void 0:e.secondaryColor},
|
|
3
|
+
${(t=A.general)==null?void 0:t.primaryColor})`,...s.chatButtonStyle},y={transform:"scale(1.05)",...s.chatButtonStyle,...s.chatButtonHoveredStyle},h={backgroundImage:`url(${(n=A.chatButton)==null?void 0:n.icon})`,fill:"#fff",width:75,height:75,...s.chatIconStyle};return P(oe,{children:!((r=A.general)!=null&&r.embedded)&&P("div",{"aria-label":((o=A.ariaLabel)==null?void 0:o.chatButton)??"open chat",role:"button",style:d?y:f,className:"rcb-toggle-button "+(c?"rcb-button-hide":"rcb-button-show"),onMouseEnter:()=>{p(!0)},onMouseLeave:()=>{p(!1)},onClick:()=>u(!0),children:[(()=>{var w;const v=(w=A.chatButton)==null?void 0:w.icon;return v&&typeof v!="string"?v&&P("span",{className:"rcb-toggle-icon",children:P(v,{style:h})}):P("span",{className:"rcb-toggle-icon",style:h})})(),!((i=A.notification)!=null&&i.disabled)&&((a=A.notification)==null?void 0:a.showCount)&&P("span",{style:{...s.notificationBadgeStyle},className:"rcb-badge",children:l})]})})},Il=()=>{var e,t,n,r;const o=Bn(),{settings:i}=Z(),{styles:a}=Ae(),{chatBodyRef:A}=ye(),{isChatWindowOpen:s,toggleChatWindow:l}=Qe(),[c,u]=ee(!1),[d,p]=ee(!1),[f,y]=ee(0);te(()=>{var v,g,x;const C=(v=i.tooltip)==null?void 0:v.mode;if(C==="ALWAYS")if(o){let E;E=s?(((g=A.current)==null?void 0:g.offsetWidth)??375)-(typeof((x=a.chatButtonStyle)==null?void 0:x.width)=="number"?a.chatButtonStyle.width:75):0,y(E),u(!0)}else u(!s);else C==="NEVER"?u(!1):C==="START"?d?u(!1):(p(!0),u(!0)):C==="CLOSE"&&u(!s)},[s]);const h={transform:`translateX(-${f}px)`,right:(((e=a.chatButtonStyle)==null?void 0:e.width)??75)+40,bottom:30,backgroundColor:(t=i.general)==null?void 0:t.secondaryColor,color:"#fff",...a.tooltipStyle},w={borderColor:`transparent transparent transparent ${h.backgroundColor}`};return P(oe,{children:!((n=i.general)!=null&&n.embedded)&&P("div",{"data-testid":"chat-tooltip",style:h,className:"rcb-chat-tooltip "+(c?"rcb-tooltip-show":"rcb-tooltip-hide"),onClick:()=>l(!0),children:[P("span",{children:(r=i.tooltip)==null?void 0:r.text}),P("span",{className:"rcb-chat-tooltip-tail",style:w})]})})},Tl=({id:e,content:t,timeout:n})=>{var r,o;const{settings:i}=Z(),{styles:a}=Ae(),[A]=ee({toastPromptStyle:{...a.toastPromptStyle},toastPromptHoveredStyle:{...a.toastPromptHoveredStyle}}),{dismissToast:s}=Qt(),[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 te(()=>{if(n){const d=setTimeout(()=>{s(e)},n);return()=>clearTimeout(d)}},[e,s,n]),typeof t=="string"?P("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 s(e))},className:"rcb-toast-prompt",children:t}):P(oe,{children:t})},Ql=()=>{var e,t,n,r,o,i,a,A,s,l,c,u;const{styles:d}=Ae(),{toasts:p}=Xi(),f={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((a=d.chatWindowStyle)==null?void 0:a.width)=="number"?`${(A=d.chatWindowStyle)==null?void 0:A.width}px`:((s=d.chatWindowStyle)==null?void 0:s.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 P("div",{className:"rcb-toast-prompt-container",style:f,children:p.map(y=>P(Tl,{id:y.id,content:y.content,timeout:y.timeout},y.id))})},Vi=({file:e,fileType:t,fileUrl:n})=>{var r,o,i;const{settings:a}=Z(),{styles:A}=Ae(),s={backgroundColor:(r=a.general)==null?void 0:r.primaryColor,maxWidth:(o=a.userBubble)!=null&&o.showAvatar?"65%":"70%",...A.mediaDisplayContainerStyle};return P(oe,{children:n?P(oe,{children:[t==="image"&&n&&P("div",{style:s,className:"rcb-media-display-image-container rcb-media-entry","data-testid":"media-display-image-container",children:P("img",{src:n,alt:"Image Display",className:"rcb-media-display-image"})}),t==="video"&&n&&P("div",{style:s,className:"rcb-media-display-video-container rcb-media-entry","data-testid":"media-display-video-container",children:P("video",{controls:!0,className:"rcb-media-display-video",children:[P("source",{src:n,type:e.type}),"Your browser does not support the video tag."]})}),t==="audio"&&n&&P("audio",{"data-testid":"media-display-audio-container",style:{maxWidth:(i=a.userBubble)!=null&&i.showAvatar?"65%":"70%"},controls:!0,className:"rcb-media-display-audio rcb-media-entry",children:[P("source",{src:n,type:e.type}),"Your browser does not support the audio tag."]})]}):P(oe,{})})},Ki=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}}},Ml=()=>{var e,t,n,r,o,i;const{settings:a}=Z(),{styles:A}=Ae(),{injectMessage:s,simulateStreamMessage:l,streamMessage:c,removeMessage:u,endStreamMessage:d}=yt(),{getCurrPath:p,getPrevPath:f,goToPath:y,blockAllowsAttachment:h}=Dn(),{flowRef:w,inputRef:v}=ye(),g=w.current,{showToast:x,dismissToast:C}=Qt(),{dispatchRcbEvent:E}=Ge(),{toggleChatWindow:_}=Qe(),{setTextAreaValue:I}=bt(),{handleSubmitText:D}=Mt(),k={cursor:`url("${(e=a.general)==null?void 0:e.actionDisabledIcon}"), auto`,...A.fileAttachmentButtonStyle,...A.fileAttachmentButtonDisabledStyle},S={backgroundImage:`url(${(t=a.fileAttachment)==null?void 0:t.icon})`,fill:"#a6a6a6",...A.fileAttachmentIconStyle},B={backgroundImage:`url(${(n=a.fileAttachment)==null?void 0:n.icon})`,fill:"#a6a6a6",...A.fileAttachmentIconStyle,...A.fileAttachmentIconDisabledStyle};return P("label",{"aria-label":((r=a.ariaLabel)==null?void 0:r.fileAttachmentButton)??"upload file",role:"button",className:h?"rcb-attach-button-enabled":"rcb-attach-button-disabled",style:h?{...A.fileAttachmentButtonStyle}:k,children:[P("input",{className:"rcb-attach-input",role:"file",type:"file",onChange:async L=>{var N,Q,W,O;const H=L.target.files;if(!H)return;const m=Array.from(H);if(L.target.value="",(N=a.event)!=null&&N.rcbUserUploadFile&&(await E(j.USER_UPLOAD_FILE,{files:m})).defaultPrevented)return;const U=p();if(!U)return;const b=g[U];if(!b)return;const F=b.file;if(F!=null){const K=[];for(let z=0;z<m.length;z++){if(K.push(m[z].name),(Q=a.fileAttachment)==null||!Q.showMediaDisplay)continue;const ne=await Ki(m[z]);!ne.fileType||!ne.fileUrl||await s(P(Vi,{file:m[z],fileType:ne.fileType,fileUrl:ne.fileUrl}),"USER")}await D("📄 "+K.join(", "),(W=a.fileAttachment)==null?void 0:W.sendFileName),await F({userInput:(O=v.current)==null?void 0:O.value,prevPath:f(),currPath:p(),goToPath:y,setTextAreaValue:I,injectMessage:s,simulateStreamMessage:l,streamMessage:c,removeMessage:u,endStreamMessage:d,toggleChatWindow:_,showToast:x,dismissToast:C,files:m})}},multiple:(o=a.fileAttachment)==null?void 0:o.multiple,accept:(i=a.fileAttachment)==null?void 0:i.accept,disabled:!h}),(()=>{var L,N;const Q=h?(L=a.fileAttachment)==null?void 0:L.icon:(N=a.fileAttachment)==null?void 0:N.iconDisabled;return Q&&typeof Q!="string"?Q&&P("span",{className:h?"rcb-attach-icon-enabled":"rcb-attach-icon-disabled",children:P(Q,{style:h?S:B})}):P("span",{className:h?"rcb-attach-icon-enabled":"rcb-attach-icon-disabled",style:h?S:B})})()]})},Ol=()=>{var e,t,n,r,o,i;const{settings:a}=Z(),{styles:A}=Ae(),{syncedTextAreaDisabledRef:s}=we(),{inputRef:l}=ye(),{textAreaDisabled:c,setTextAreaValue:u}=bt(),d=ie(null),p=ie(null),[f,y]=ee(!1),h={cursor:`url("${(e=a.general)==null?void 0:e.actionDisabledIcon}"), auto`,...A.emojiButtonStyle,...A.emojiButtonDisabledStyle},w={backgroundImage:`url(${(t=a.emoji)==null?void 0:t.icon})`,fill:"#a6a6a6",...A.emojiIconStyle},v={backgroundImage:`url(${(n=a.emoji)==null?void 0:n.icon})`,fill:"#a6a6a6",...A.emojiIconStyle,...A.emojiIconDisabledStyle};return te(()=>{const g=C=>{const E=C.composedPath();d.current&&!E.includes(d.current)&&p.current&&!E.includes(p.current)&&y(!1)},x=()=>{(()=>{if(d.current&&p.current){const C=p.current.getBoundingClientRect(),E=d.current.offsetHeight,_=C.top-E-8;d.current.style.left=`${C.left}px`,d.current.style.top=`${_}px`}})()};return document.addEventListener("mousedown",g),window.addEventListener("resize",x),()=>{document.removeEventListener("mousedown",g),window.removeEventListener("resize",x)}},[]),P(oe,{children:[P("div",{"aria-label":((r=a.ariaLabel)==null?void 0:r.emojiButton)??"emoji picker",role:"button",ref:p,className:c?"rcb-emoji-button-disabled":"rcb-emoji-button-enabled",style:c?h:{...A.emojiButtonStyle},onMouseDown:g=>{g.preventDefault(),s.current?y(!1):y(x=>!x)},children:(()=>{var g,x;const C=c?(g=a.emoji)==null?void 0:g.iconDisabled:(x=a.emoji)==null?void 0:x.icon;return C&&typeof C!="string"?C&&P("span",{className:c?"rcb-emoji-icon-disabled":"rcb-emoji-icon-enabled",children:P(C,{style:c?v:w})}):P("span",{className:c?"rcb-emoji-icon-disabled":"rcb-emoji-icon-enabled",style:c?v:w})})()}),f&&P("div",{className:"rcb-emoji-button-popup",ref:d,children:(i=(o=a.emoji)==null?void 0:o.list)==null?void 0:i.map((g,x)=>P("span",{className:"rcb-emoji",onMouseDown:C=>((E,_)=>{E.preventDefault(),l.current&&(u(l.current.value+_),setTimeout(()=>{const I=l.current;if(I){I.focus();const D=I.value.length;I.setSelectionRange(D,D)}},50)),y(!1)})(C,g),children:g},x))})]})},Nl=()=>{var e,t,n;const{settings:r}=Z(),{styles:o}=Ae(),{audioToggledOn:i,toggleAudio:a}=qi(),A={backgroundImage:`url(${(e=r.audio)==null?void 0:e.icon})`,fill:"#fcec3d",...o.audioIconStyle},s={backgroundImage:`url(${(t=r.audio)==null?void 0:t.iconDisabled})`,fill:"#e8eaed",...o.audioIconStyle,...o.audioIconDisabledStyle};return P("div",{"aria-label":((n=r.ariaLabel)==null?void 0:n.audioButton)??"toggle audio",role:"button",onMouseDown:async l=>{l.preventDefault(),await a()},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&&P("span",{className:"rcb-audio-icon","data-testid":"rcb-audio-icon",children:P(u,{style:i?A:s,"data-testid":"rcb-audio-icon-svg"})}):P("span",{className:"rcb-audio-icon","data-testid":"rcb-audio-icon",style:i?A:s})})()})},Ll=()=>{var e,t;const{settings:n}=Z(),{styles:r}=Ae(),{toggleChatWindow:o}=Qe(),i={backgroundImage:`url(${(e=n.header)==null?void 0:e.closeChatIcon})`,fill:"#e8eaed",stroke:"#e8eaed",...r.closeChatIconStyle};return P("div",{"aria-label":((t=n.ariaLabel)==null?void 0:t.closeChatButton)??"close chat",role:"button",onMouseDown:a=>{a.stopPropagation(),o(!1)},style:{...r.closeChatButtonStyle},children:(()=>{var a;const A=(a=n.header)==null?void 0:a.closeChatIcon;return A&&typeof A!="string"?A&&P("span",{className:"rcb-close-chat-icon","data-testid":"rcb-close-chat-icon",children:P(A,{style:i})}):P("span",{className:"rcb-close-chat-icon","data-testid":"rcb-close-chat-icon",style:i})})()})},Rl=()=>{var e,t,n;const{settings:r}=Z(),{styles:o}=Ae(),{notificationsToggledOn:i,toggleNotifications:a}=(()=>{const{notificationsToggledOn:l,toggleNotifications:c,playNotificationSound:u}=xr();return{notificationsToggledOn:l,toggleNotifications:c,playNotificationSound:u}})(),A={backgroundImage:`url(${(e=r.notification)==null?void 0:e.icon})`,fill:"#fcec3d",...o.notificationIconStyle},s={backgroundImage:`url(${(t=r.notification)==null?void 0:t.iconDisabled})`,fill:"#e8eaed",...o.notificationIconStyle,...o.notificationIconDisabledStyle};return P("div",{"aria-label":((n=r.ariaLabel)==null?void 0:n.notificationButton)??"toggle notifications",role:"button",onMouseDown:async l=>{l.preventDefault(),await a()},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&&P("span",{className:"rcb-notification-icon","data-testid":"rcb-notification-icon",children:P(u,{style:i?A:s,"data-testid":"rcb-notification-icon-svg"})}):P("span",{className:"rcb-notification-icon","data-testid":"rcb-notification-icon",style:i?A:s})})()})},Hl=()=>{var e,t,n;const{settings:r}=Z(),{styles:o}=Ae(),{injectMessage:i}=yt(),{inputRef:a}=ye(),{voiceToggledOn:A,toggleVoice:s}=_r(),{setInputLength:l,setTextAreaValue:c,textAreaDisabled:u}=bt(),{handleSubmitText:d}=Mt(),p=ie([]),[f,y]=ee(!1);te(()=>{var x;(x=r.voice)!=null&&x.sendAsAudio?(g(),p.current=[]):d()},[f]),te(()=>{A?((x,C,E,_,I,D,k)=>{var S;(S=x.voice)!=null&&S.sendAsAudio?Cl(E,D):kl(x,C,E,_,I,k)})(r,s,v,c,l,p,a):kr()},[A]);const h={backgroundImage:`url(${(e=r.voice)==null?void 0:e.icon})`,fill:"#9aa0a6",...o.voiceIconStyle},w={backgroundImage:`url(${(t=r.voice)==null?void 0:t.iconDisabled})`,fill:"#9aa0a6",...o.voiceIconStyle,...o.voiceIconDisabledStyle},v=()=>{y(x=>!x)},g=async()=>{const x=new Blob(p.current,{type:"audio/wav"}),C=new File([x],"voice-input.wav",{type:"audio/wav"}),E=await Ki(C);!E.fileType||!E.fileUrl||await i(P(Vi,{file:C,fileType:E.fileType,fileUrl:E.fileUrl}),"USER")};return P("div",{"aria-label":((n=r.ariaLabel)==null?void 0:n.voiceButton)??"toggle voice",role:"button",onMouseDown:async x=>{x.preventDefault(),!u&&await s()},style:A&&!u?{...o.voiceButtonStyle}:{...o.voiceButtonStyle,...o.voiceButtonDisabledStyle},className:A&&!u?"rcb-voice-button-enabled":"rcb-voice-button-disabled",children:(()=>{var x,C;const E=A?(x=r.voice)==null?void 0:x.icon:(C=r.voice)==null?void 0:C.iconDisabled;return E&&typeof E!="string"?E&&P("span",{className:"rcb-voice-icon "+(A&&!u?"on":""),children:P(E,{style:A&&!u?h:w})}):P("span",{className:"rcb-voice-icon"+(A&&!u?"-on":""),"data-testid":"rcb-voice-icon",style:A&&!u?h:w})})()})},Ul=()=>{var e,t,n,r,o,i,a,A;const{settings:s}=Z(),{styles:l}=Ae(),{textAreaDisabled:c}=we(),[u,d]=ee(!1),{handleSubmitText:p}=Mt(),f={backgroundColor:(e=s.general)==null?void 0:e.primaryColor,...l.sendButtonStyle},y={cursor:`url("${(t=s.general)==null?void 0:t.actionDisabledIcon}"), auto`,backgroundColor:(n=s.general)==null?void 0:n.primaryColor,...l.sendButtonStyle,...l.sendButtonDisabledStyle},h={backgroundColor:(r=s.general)==null?void 0:r.secondaryColor,...l.sendButtonStyle,...l.sendButtonHoveredStyle},w={backgroundImage:`url(${(o=s.chatInput)==null?void 0:o.sendButtonIcon})`,fill:"#fff",...l.sendIconStyle},v={backgroundImage:`url(${(i=s.chatInput)==null?void 0:i.sendButtonIcon})`,fill:"#fff",...l.sendIconStyle,...l.sendIconDisabledStyle},g={backgroundImage:`url(${(a=s.chatInput)==null?void 0:a.sendButtonIcon})`,fill:"#fff",...l.sendIconStyle,...l.sendIconHoveredStyle};return P("div",{"aria-label":((A=s.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?y:u?h:f,className:"rcb-send-button",children:(()=>{var x;const C=(x=s.chatInput)==null?void 0:x.sendButtonIcon;return C&&typeof C!="string"?C&&P("span",{className:"rcb-send-icon","data-testid":"rcb-send-icon",children:P(C,{style:c?v:u?g:w})}):P("span",{className:"rcb-send-icon","data-testid":"rcb-send-icon",style:c?v:u?g:w})})()})},Fl=(e,t)=>{var n,r,o,i,a,A,s,l,c;const u={[ge.AUDIO_BUTTON]:(n=e.audio)==null?void 0:n.disabled,[ge.CLOSE_CHAT_BUTTON]:(r=e.general)==null?void 0:r.embedded,[ge.EMOJI_PICKER_BUTTON]:(o=e.emoji)==null?void 0:o.disabled,[ge.FILE_ATTACHMENT_BUTTON]:(i=e.fileAttachment)==null?void 0:i.disabled,[ge.NOTIFICATION_BUTTON]:(a=e.notification)==null?void 0:a.disabled,[ge.SEND_MESSAGE_BUTTON]:!1,[ge.VOICE_MESSAGE_BUTTON]:(A=e.voice)==null?void 0:A.disabled},d={},p=f=>f?f.map(y=>{if(typeof y=="string"){if((h=>Object.values(ge).includes(h))(y)&&!u[y]){if(d[y])return d[y];const h=t[y];if(typeof h=="function"){const w=h();return d[y]=w,w}return null}return null}return y}).filter(y=>y!==null):[];return{header:p((s=e.header)==null?void 0:s.buttons),chatInput:p((l=e.chatInput)==null?void 0:l.buttons),footer:p((c=e.footer)==null?void 0:c.buttons)}},zl=()=>{const{settings:e}=Z(),t=ve(()=>({[ge.CLOSE_CHAT_BUTTON]:()=>P(Ll,{}),[ge.AUDIO_BUTTON]:()=>P(Nl,{}),[ge.NOTIFICATION_BUTTON]:()=>P(Rl,{}),[ge.EMOJI_PICKER_BUTTON]:()=>P(Ol,{}),[ge.FILE_ATTACHMENT_BUTTON]:()=>P(Ml,{}),[ge.SEND_MESSAGE_BUTTON]:()=>P(Ul,{}),[ge.VOICE_MESSAGE_BUTTON]:()=>P(Hl,{})}),[]),{header:n,chatInput:r,footer:o}=ve(()=>Fl(e,t),[e,t]);return{headerButtons:ve(()=>n,[n]),chatInputButtons:ve(()=>r,[r]),footerButtons:ve(()=>o,[o])}},Dr=()=>{const{settings:e}=Z(),{styles:t}=Ae(),{setSyncedMessages:n,syncedMessagesRef:r}=vr(),{isLoadingChatHistory:o,setIsLoadingChatHistory:i,hasChatHistoryLoaded:a,setHasChatHistoryLoaded:A}=we(),{chatBodyRef:s}=ye(),{dispatchRcbEvent:l}=Ge(),c=q(async()=>{var u,d;const p=br();if(!p||(u=e.event)!=null&&u.rcbLoadChatHistory&&(await l(j.LOAD_CHAT_HISTORY,{})).defaultPrevented)return;i(!0);const f=((d=s.current)==null?void 0:d.scrollHeight)??0;((y,h,w,v,g,x,C,E,_)=>{var I;if(zi=!0,w!=null)try{const D=st(P(gl,{}),"SYSTEM"),k=g.current.slice(1);v([D,...k]);const S=w.map(B=>{if(B.type==="object"){const L=Gi(B.content,y,h);return{...B,content:L}}return B});setTimeout(()=>{var B;const L=g.current.slice(1);let N=(B=y.chatHistory)!=null&&B.autoLoad?st(P(oe,{}),"SYSTEM"):st(P(hl,{}),"SYSTEM");v([...S,N,...L]),_(!0)},500),setTimeout(()=>{if(!x.current)return;const{scrollHeight:B}=x.current,L=B-C;x.current.scrollTop+=L,E(!1)},510)}catch{lt.removeItem((I=y.chatHistory)==null?void 0:I.storageKey)}})(e,t,p,n,r,s,f,i,A)},[e,t,l,r,s,i,A]);return{isLoadingChatHistory:o,setIsLoadingChatHistory:i,hasChatHistoryLoaded:a,showChatHistory:c}},jl=()=>{var e,t,n;const{settings:r}=Z(),{styles:o}=Ae(),{showChatHistory:i}=Dr(),[a,A]=ee(!1),s={color:(e=r.general)==null?void 0:e.primaryColor,borderColor:(t=r.general)==null?void 0:t.primaryColor,...o.chatHistoryButtonStyle,...o.chatHistoryButtonHoveredStyle};return P("div",{className:"rcb-view-history-container",children:P("div",{onMouseEnter:()=>{A(!0)},onMouseLeave:()=>{A(!1)},style:a?s:{...o.chatHistoryButtonStyle},onMouseDown:l=>{l.preventDefault(),i()},className:"rcb-view-history-button",role:"button",tabIndex:0,children:P("p",{children:(n=r.chatHistory)==null?void 0:n.viewChatHistoryButtonText})})})},Wl=()=>{var e,t,n,r;const o=Bn(),{settings:i}=Z(),{replaceMessages:a}=yt(),{isBotTyping:A,isChatWindowOpen:s,setUnreadCount:l,setSyncedIsChatWindowOpen:c,setSyncedTextAreaDisabled:u,setSyncedAudioToggledOn:d,setSyncedVoiceToggledOn:p,setSyncedIsScrolling:f,syncedIsScrollingRef:y,syncedIsChatWindowOpenRef:h}=we(),{chatBodyRef:w}=ye(),{viewportHeight:v,setViewportHeight:g,setViewportWidth:x,scrollToBottom:C}=Qe(),{setUpNotifications:E}=xr(),{handleFirstInteraction:_}=(()=>{var S;const{settings:B}=Z(),{hasInteractedPage:L,setHasInteractedPage:N,hasFlowStarted:Q,setHasFlowStarted:W}=we(),O=q(()=>{var H;if(N(!0),!Q&&((H=B.general)==null?void 0:H.flowStartTrigger)==="ON_PAGE_INTERACT"&&W(!0),!window.SpeechSynthesisUtterance)return void console.info("Speech Synthesis API is not supported in this environment.");const m=new window.SpeechSynthesisUtterance;m.text="",m.onend=()=>{window.removeEventListener("click",O),window.removeEventListener("keydown",O),window.removeEventListener("touchstart",O)},window.speechSynthesis.speak(m)},[Q,(S=B.general)==null?void 0:S.flowStartTrigger]);return{hasInteractedPage:L,handleFirstInteraction:O}})(),{showChatHistory:I}=Dr(),D=ie(0),k=ie(!1);te(()=>(window.addEventListener("click",_),window.addEventListener("keydown",_),window.addEventListener("touchstart",_),()=>{window.removeEventListener("click",_),window.removeEventListener("keydown",_),window.removeEventListener("touchstart",_)}),[]),te(()=>{const S=w.current;if(!S)return;const B=()=>{k.current||(k.current=!0,requestAnimationFrame(()=>{var L,N;if(!S)return;const{scrollTop:Q,clientHeight:W,scrollHeight:O}=S,H=Q+W<O-(((L=i.chatWindow)==null?void 0:L.messagePromptOffset)??30);f(H),y.current=H,H||(Q+W>=O-1&&(S.scrollTop=O-W-1),(h.current||(N=i.general)!=null&&N.embedded)&&l(0)),k.current=!1}))};return S.addEventListener("wheel",B,{passive:!0}),S.addEventListener("touchmove",B,{passive:!0}),()=>{S.removeEventListener("wheel",B),S.removeEventListener("touchmove",B)}},[]),te(()=>{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 N;p((N=i.voice)==null?void 0:N.defaultToggledOn)},1)},[]),te(()=>{var S;(S=i.notification)!=null&&S.disabled||E()},[(e=i.notification)==null?void 0:e.disabled]),te(()=>{!y.current&&w!=null&&w.current&&C()},[A]),te(()=>{var S,B;if((S=i.chatHistory)!=null&&S.disabled)lt&<.removeItem(kn);else if(wr(i),br().length>0){const L=st(P(jl,{}),"SYSTEM");a([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]),te(()=>{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:N,width:Q,height:W}=B.target.boundingRect;L==0&&N==0&&Q==0&&W==0?(setTimeout(()=>{var O;g((O=window.visualViewport)==null?void 0:O.height)},101),setTimeout(()=>{var O,H;v!=((O=window.visualViewport)==null?void 0:O.height)&&g((H=window.visualViewport)==null?void 0:H.height)},1001)):setTimeout(()=>{var O;g(((O=window.visualViewport)==null?void 0:O.height)-W)},101)}))},[o]),te(()=>{var S,B,L,N;if(o)return;s&&(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"}),W=()=>D.current=window.scrollY,O=()=>{var m,U;g((m=window.visualViewport)==null?void 0:m.height),x((U=window.visualViewport)==null?void 0:U.width)},H=()=>{var m;window.removeEventListener("scroll",Q),window.removeEventListener("scroll",W),(m=window.visualViewport)==null||m.removeEventListener("resize",O)};return s?(H(),document.body.style.position="fixed",window.addEventListener("scroll",Q),(L=window.visualViewport)==null||L.addEventListener("resize",O)):(document.body.style.position="static",H(),window.scrollTo({top:D.current,left:0,behavior:"auto"}),window.addEventListener("scroll",W),(N=window.visualViewport)==null||N.removeEventListener("resize",O)),H},[s,o])},Gl="https://cdn.jsdelivr.net/gh/react-chatbotify/community-themes/themes",ql="2592000",$i="RCB_THEME_CACHE_DATA",Ji=async(e,t)=>{const{id:n,version:r,baseUrl:o=Gl,cacheDuration:i=ql}=t,a=r||await(async(w,v)=>{const g=`${v}/${w}/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(!a)return console.error(`Unable to find version for theme: ${n}`),{settings:{},inlineStyles:{},cssStylesText:""};const A=((w,v,g)=>{const x=localStorage.getItem(`${$i}_${w}_${v}`);if(!x)return null;try{const C=JSON.parse(x),E=new Date().getTime(),_=Math.floor(E/1e3);return C.cacheDate+g>=_?C:null}catch(C){return console.error(`Unable to fetch cache for ${w}`,C),null}})(n,a,i);if(A){const w=Zi(e,A.cssStylesText);return{settings:A.settings,inlineStyles:A.inlineStyles,cssStylesText:w}}const s=`${o}/${n}/${a}/styles.css`,l=`${o}/${n}/${a}/settings.json`,c=`${o}/${n}/${a}/styles.json`;let u="";const d=await fetch(s);d.ok?u=await d.text():console.info(`Could not fetch styles.css from ${s}`);const p=await fetch(l);let f={};p.ok?f=await p.json():console.info(`Could not fetch settings.json from ${l}`);const y=await fetch(c);let h={};return y.ok?h=await y.json():console.info(`Could not fetch styles.json from ${c}`),((w,v,g,x,C)=>{const E=new Date().getTime(),_={settings:g,inlineStyles:x,cssStylesText:C,cacheDate:Math.floor(E/1e3)};localStorage.setItem(`${$i}_${w}_${v}`,JSON.stringify(_))})(n,a,f,h,u),{settings:f,inlineStyles:h,cssStylesText:Zi(e,u)}},Zi=(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
4
|
`),Yl=async(e,t,n,r)=>{var o,i;let a=Sn(Ti),A=Sn(Mi),s="";if(r!=null)if(Array.isArray(r))for(const l of r){const c=await Ji(e,l);a=Je(c.settings,a),A=Je(c.inlineStyles,A),s+=c.cssStylesText}else{const l=await Ji(e,r);a=Je(l.settings,a),A=Je(l.inlineStyles,A),s+=l.cssStylesText}return t!=null&&(a=Je(t,a)),n!=null&&(A=Je(n,A)),((o=a.chatInput)==null?void 0:o.botDelay)!=null&&((i=a.chatInput)==null?void 0:i.botDelay)<500&&(a.chatInput.botDelay=500),{settings:a,inlineStyles:A,cssStylesText:s}},Je=(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 a of Object.keys(o)){const A=a;if(mt(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},Sn=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:a}=o;for(const A in i)if(Object.prototype.hasOwnProperty.call(i,A)){const s=i[A];if(s&&typeof s=="object")if(r.has(s))a[A]=r.get(s);else{const l=Array.isArray(s)?[]:{};r.set(s,l),a[A]=l,n.push({source:s,target:l})}else a[A]=s}}return t},ea=()=>{const{settings:e,setSyncedSettings:t,syncedSettingsRef:n}=Z(),r=q(i=>{!i||Object.keys(i).length===0||t(Sn(Je(i,e)))},[e]),o=q(i=>{const a=typeof i=="function"?i(n.current):i;t(a)},[n]);return{settings:e,replaceSettings:o,updateSettings:r}},ta=()=>{const{styles:e,setSyncedStyles:t,syncedStylesRef:n}=Ae(),r=q(i=>{!i||Object.keys(i).length===0||t(Sn(Je(i,e)))},[e]),o=q(i=>{const a=typeof i=="function"?i(n.current):i;t(a)},[n]);return{styles:e,replaceStyles:o,updateStyles:r}},Xl=({plugins:e,slots:t})=>{var n,r;const o=Bn(),{settings:i}=Z(),{styles:a}=Ae(),{hasFlowStarted:A,setHasFlowStarted:s}=we(),{inputRef:l}=ye(),{viewportHeight:c,viewportWidth:u,isChatWindowOpen:d}=Qe(),{goToPath:p}=Dn(),{headerButtons:f,chatInputButtons:y,footerButtons:h}=zl();Wl(),(v=>{const{updateSettings:g}=ea(),{updateStyles:x}=ta(),C=v==null?void 0:v.map(E=>E());te(()=>{let E={},_={};C==null||C.forEach(I=>{I!=null&&I.settings&&Object.keys(I==null?void 0:I.settings).length!==0&&(E=Je(I.settings,E)),I!=null&&I.styles&&Object.keys(I==null?void 0:I.styles).length!==0&&(_=Je(I.styles,_))}),g(E),x(_)},[])})(e),te(()=>{var v;(A||((v=i.general)==null?void 0:v.flowStartTrigger)==="ON_LOAD")&&p("start")},[A,(n=i.general)==null?void 0:n.flowStartTrigger]);const w=ve(()=>{var v;const g="rcb-chatbot-global ";return(v=i.general)!=null&&v.embedded?g+"rcb-window-embedded":d?g+"rcb-window-open":g+"rcb-window-close"},[i,d]);return P(oe,{children:(()=>{var v,g;return o&&((v=i.device)==null?void 0:v.desktopEnabled)||!o&&((g=i.device)==null?void 0:g.mobileEnabled)})()&&P("div",{onMouseDown:v=>{var g,x;!A&&((g=i.general)==null?void 0:g.flowStartTrigger)==="ON_CHATBOT_INTERACT"&&s(!0),o?(x=l.current)==null||x.blur():v==null||v.preventDefault()},className:w,children:[P(Il,{}),P(Sl,{}),d&&!o&&!((r=i.general)!=null&&r.embedded)&&P(oe,{children:[P("style",{children:`
|
|
5
5
|
html {
|
|
6
6
|
overflow: hidden !important;
|
|
7
7
|
touch-action: none !important;
|
|
8
8
|
scroll-behavior: auto !important;
|
|
9
9
|
}
|
|
10
|
-
`}),P("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"#fff",zIndex:9999}})]}),P("div",{style:(()=>{var v,g;return o||(v=i.general)!=null&&v.embedded?(g=i.general)!=null&&g.embedded?{...a.chatWindowStyle}:{...a.chatWindowStyle,zIndex:1e4}:{...a.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 v,g,x;const C=(t==null?void 0:t.chatBotHeader)||Vs,E=(t==null?void 0:t.chatBotBody)||il,_=(t==null?void 0:t.chatBotInput)||Dl,I=(t==null?void 0:t.chatBotFooter)||Bl;return P(oe,{children:[((v=i.general)==null?void 0:v.showHeader)&&P(C,{buttons:f}),P(E,{}),P(Ql,{}),((g=i.general)==null?void 0:g.showInputRow)&&P(_,{buttons:y}),((x=i.general)==null?void 0:x.showFooter)&&P(I,{buttons:h})]})})()})]})})},na=Ve(void 0),ra=()=>We(na),oa=({children:e})=>{var t;const n=ie(""),r=ie({}),[o,i,a]=Te({}),[A,s,l]=Te({}),[c,u]=ee(!1);return te(()=>{u(!0)},[]),c?P("div",{style:{fontFamily:(t=o.general)==null?void 0:t.fontFamily},children:P(na.Provider,{value:{loadConfig:async(d,p,f,y,h,w)=>{n.current=d,r.current=p;const v=await Yl(d,f,y,h);w.current&&(w.current.textContent=v.cssStylesText),i(v.settings),s(v.inlineStyles)}},children:P(Ys,{settings:o,setSyncedSettings:i,syncedSettingsRef:a,children:P(Xs,{styles:A,setSyncedStyles:s,syncedStylesRef:l,children:P(_l,{children:P(Ks,{botIdRef:n,flowRef:r,children:P(Zs,{children:P($s,{settings:o,children:P(tl,{children:e})})})})})})})})}):null},Vl=({id:e,flow:t,settings:n,styles:r,themes:o,plugins:i,setConfigLoaded:a,styleRootRef:A})=>{const s=ve(()=>e,[]),l=ra(),{flowRef:c}=ye();return c&&c.current!==t&&(c.current=t),te(()=>{(async()=>{var u,d;(u=n.event)!=null&&u.rcbPreLoadChatBot&&(await
|
|
10
|
+
`}),P("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"#fff",zIndex:9999}})]}),P("div",{style:(()=>{var v,g;return o||(v=i.general)!=null&&v.embedded?(g=i.general)!=null&&g.embedded?{...a.chatWindowStyle}:{...a.chatWindowStyle,zIndex:1e4}:{...a.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 v,g,x;const C=(t==null?void 0:t.chatBotHeader)||Vs,E=(t==null?void 0:t.chatBotBody)||il,_=(t==null?void 0:t.chatBotInput)||Dl,I=(t==null?void 0:t.chatBotFooter)||Bl;return P(oe,{children:[((v=i.general)==null?void 0:v.showHeader)&&P(C,{buttons:f}),P(E,{}),P(Ql,{}),((g=i.general)==null?void 0:g.showInputRow)&&P(_,{buttons:y}),((x=i.general)==null?void 0:x.showFooter)&&P(I,{buttons:h})]})})()})]})})},na=Ve(void 0),ra=()=>We(na),oa=({children:e})=>{var t;const n=ie(""),r=ie({}),[o,i,a]=Te({}),[A,s,l]=Te({}),[c,u]=ee(!1);return te(()=>{u(!0)},[]),c?P("div",{style:{fontFamily:(t=o.general)==null?void 0:t.fontFamily},children:P(na.Provider,{value:{loadConfig:async(d,p,f,y,h,w)=>{n.current=d,r.current=p;const v=await Yl(d,f,y,h);w.current&&(w.current.textContent=v.cssStylesText),i(v.settings),s(v.inlineStyles)}},children:P(Ys,{settings:o,setSyncedSettings:i,syncedSettingsRef:a,children:P(Xs,{styles:A,setSyncedStyles:s,syncedStylesRef:l,children:P(_l,{children:P(Ks,{botIdRef:n,flowRef:r,children:P(Zs,{children:P($s,{settings:o,children:P(tl,{children:e})})})})})})})})}):null},Vl=({id:e,flow:t,settings:n,styles:r,themes:o,plugins:i,setConfigLoaded:a,styleRootRef:A})=>{const s=ve(()=>e,[]),l=ra(),{flowRef:c}=ye();return c&&c.current!==t&&(c.current=t),te(()=>{(async()=>{var u,d;(u=n.event)!=null&&u.rcbPreLoadChatBot&&(await mr(j.PRE_LOAD_CHATBOT,{botId:s,currPath:null,prevPath:null},{flow:t,settings:n,styles:r,themes:o,plugins:i})).defaultPrevented||(l!=null&&l.loadConfig&&(await l.loadConfig(s,t,n,r,o,A),a(!0)),(d=n.event)!=null&&d.rcbPostLoadChatBot&&mr(j.POST_LOAD_CHATBOT,{botId:s,currPath:null,prevPath:null},{flow:t,settings:n,styles:r,themes:o,plugins:i}))})()},[o]),null},Br=["Quickstart","API Docs","Examples","Github","Discord"],Kl={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:Br,path:"process_options"},prompt_again:{message:"Do you need any other help?",options:Br,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:Br,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"}},$l=({id:e,flow:t,settings:n,styles:r,themes:o,plugins:i,slots:a})=>{const A=ve(()=>e||"rcb-"+Pn(),[]),s=t&&Object.keys(t).length!==0?t:Kl,l=n||{},c=r||{},u=i||[],[d,p]=ee(!1),f=ra(),y=ie(null),[h,w]=ee(o||[]);te(()=>{o&&w(o)},[o]);const v=()=>P(oe,{children:[P(Vl,{styleRootRef:y,id:A,flow:s,settings:l,styles:c,themes:h,plugins:u,setConfigLoaded:p}),d&&P(Xl,{plugins:i,slots:a})]});return P(f==null?oa:oe,{children:[P("style",{ref:y}),P("div",{id:A,children:v()})]})},Jl=()=>{const{getBotId:e}=(()=>{const{botIdRef:t}=ye();return{getBotId:q(()=>t.current,[t])}})();return{getBotId:e}},In=()=>{const{hasFlowStarted:e,restartFlow:t,getFlow:n}=(()=>{const{replaceMessages:r}=yt(),{replacePaths:o,goToPath:i}=Dn(),{replaceToasts:a}=Qt(),{hasFlowStarted:A}=we(),{flowRef:s,timeoutIdRef:l}=ye(),{settings:c}=Z();return{hasFlowStarted:A,restartFlow:q(async()=>{wr(c),l.current&&clearTimeout(l.current),r([]),a([]),o([]),await i("start")},[l,c,r,a,o,wr,i]),getFlow:q(()=>(s==null?void 0:s.current)??{},[s])}})();return{hasFlowStarted:e,restartFlow:t,getFlow:n}},Sr=()=>{const{endStreamMessage:e,injectMessage:t,removeMessage:n,simulateStreamMessage:r,streamMessage:o,messages:i,replaceMessages:a}=yt();return{endStreamMessage:e,injectMessage:t,removeMessage:n,simulateStreamMessage:r,streamMessage:o,messages:i,replaceMessages:a}},He=(e,t)=>{const{getBotId:n}=Jl();te(()=>{const r=o=>{o.detail.botId===n()&&t(o)};return window.addEventListener(e,r),()=>{window.removeEventListener(e,r)}},[n,e,t])},ia=()=>{const{settings:e,replaceSettings:t,updateSettings:n}=ea();return{settings:e,replaceSettings:t,updateSettings:n}},aa=()=>{const{showChatHistory:e,hasChatHistoryLoaded:t}=Dr();return{showChatHistory:e,getHistoryMessages:br,setHistoryMessages:ml,hasChatHistoryLoaded:t}},Ir={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 wt(e){return t=>{Ir[t]={...e,...Ir[t]}}}["address","main","div","figure","p","pre"].forEach(wt({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(wt({content:8,type:73})),["p","pre"].forEach(wt({content:8,type:65})),["s","small","span","del","ins"].forEach(wt({content:8,type:9})),["article","aside","footer","header","nav","section","blockquote"].forEach(wt({content:1,type:67})),["h1","h2","h3","h4","h5","h6"].forEach(wt({content:8,type:69})),["audio","canvas","iframe","img","video"].forEach(wt({type:89}));const Tr=Object.freeze(Ir),Zl=["applet","base","body","command","embed","frame","frameset","head","html","link","meta","noscript","object","script","style","title"],ec=Object.keys(Tr).filter(e=>e!=="canvas"&&e!=="iframe"),Aa=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}),tc=Object.freeze({class:"className",colspan:"colSpan",datetime:"dateTime",rowspan:"rowSpan",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex"});function Tn(){return Tn=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},Tn.apply(this,arguments)}function sa({attributes:e={},className:t,children:n=null,selfClose:r=!1,tagName:o}){const i=o;return r?R.createElement(i,Tn({className:t},e)):R.createElement(i,Tn({className:t},e),n)}class nc{attribute(t,n){return n}node(t,n){return n}}function rc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}/*!
|
|
11
11
|
* escape-html
|
|
12
12
|
* Copyright(c) 2012-2013 TJ Holowaychuk
|
|
13
13
|
* Copyright(c) 2015 Andreas Lubbe
|
|
@@ -17,26 +17,26 @@ var AccessQABot=function(mn){"use strict";var Gt,G,wo,gt,xo,Eo,Po,ko,Vn,Kn,$n,Co
|
|
|
17
17
|
`);return r=r.replace(/\n{3,}/g,`
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
`),r=r.replace(/\n/g,"<br/>"),r}createContainer(e){var t;const n=(typeof global<"u"&&global.INTERWEAVE_SSR_POLYFILL||cc)();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(Ac)){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?oc(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:a}=o,A=i.toLowerCase(),s=Aa[A]||Aa[i];if(!this.isSafe(e)||!A.match(sc)&&(!t&&(!s||s===2)||A.startsWith("on")||a.replace(/(\s|\0|�([9AD]);)/,"").match(/(javascript|vbscript|livescript|xss):/i)))return;let l=A==="style"?this.extractStyleAttribute(e):a;s===4?l=!0:s===3?l=Number.parseFloat(String(l)):s!==5&&(l=String(l)),n[tc[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 Qr[e]?{...t,...Qr[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:a}=this.props;let A=[],s="";return[...e.childNodes].forEach(l=>{if(l.nodeType===1){const u=l.nodeName.toLowerCase(),d=this.getTagConfig(u);s&&(A.push(s),s="");const p=this.applyNodeFilters(u,l);if(!p)return;let f;if(i&&(!a||this.isTagAllowed(u))){this.keyIndex+=1;const y=this.keyIndex;f=this.parseNode(p,d);const h=i(p,f,d);if(h===null)return;if(typeof h<"u")return void A.push(R.cloneElement(h,{key:y}));this.keyIndex=y-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 y=this.extractAttributes(p),h={tagName:u};y&&(h.attributes=y),d.void&&(h.selfClose=d.void),A.push(R.createElement(sa,{...h,key:this.keyIndex},(c=f)!==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]:s+=u}}),s&&A.push(s),A}replaceTokens(e,t){if(!e.includes("{{{"))return e;const n=[];let r=e,o=null;for(;o=r.match(lc);){const[i,a]=o,A=o.index,s=i.includes("/");if(process.env.NODE_ENV!=="production"&&!t[a])throw new Error(`Token "${a}" 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[a];let d;if(s)d=i.length,n.push(c.createElement(l,u));else{const p=r.match(new RegExp(`{{{/${a}}}}`));if(process.env.NODE_ENV!=="production"&&!p)throw new Error(`Closing token missing for interpolated element "${a}".`);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 uc(e){var t;const{attributes:n,className:r,containerTagName:o,content:i,emptyContent:a,parsedContent:A,tagName:s,noWrap:l}=e,c=(t=o??s)!==null&&t!==void 0?t:"span",u=c==="fragment"||l;let d;if(A)d=A;else{const p=new ua(i??"",e).parse();p.length>0&&(d=p)}return d||(d=a),u?R.createElement(R.Fragment,null,d):R.createElement(sa,{attributes:n,className:r,tagName:c},d)}function dc(e){const{attributes:t,className:n,content:r="",disableFilters:o=!1,disableMatchers:i=!1,emptyContent:a=null,filters:A=[],matchers:s=[],onAfterParse:l=null,onBeforeParse:c=null,tagName:u="span",noWrap:d=!1,...p}=e,f=i?[]:s,y=o?[]:A,h=c?[c]:[],w=l?[l]:[];f.forEach(C=>{C.onBeforeParse&&h.push(C.onBeforeParse.bind(C)),C.onAfterParse&&w.push(C.onAfterParse.bind(C))});const v=h.reduce((C,E)=>{const _=E(C,e);if(process.env.NODE_ENV!=="production"&&typeof _!="string")throw new TypeError("Interweave `onBeforeParse` must return a valid HTML string.");return _},r??""),g=new ua(v,p,f,y),x=w.reduce((C,E)=>{const _=E(C,e);if(process.env.NODE_ENV!=="production"&&!Array.isArray(_))throw new TypeError("Interweave `onAfterParse` must return an array of strings and React elements.");return _},g.parse());return R.createElement(uc,{attributes:t,className:n,containerTagName:e.containerTagName,emptyContent:a,noWrap:d,parsedContent:x.length===0?void 0:x,tagName:u})}const pc=({children:e})=>P("div",{style:{whiteSpace:"normal"},children:P(dc,{content:typeof e=="string"?e:""})}),fc={autoConfig:!0},da=(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},gc=e=>{const{getFlow:t}=In(),{messages:n,replaceMessages:r}=Ir(),{settings:o}=ia(),{hasChatHistoryLoaded:i}=aa(),a={...e,...fc},A=a.htmlComponent?a.htmlComponent:pc;te(()=>{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 f=d[p];(u=f.tags)!=null&&u.includes("rcb-html-renderer-plugin:parsed")&&(f.contentWrapper=A)}r(d)}},[i]);const s=async c=>{var u;const d=(u=c.data.message)==null?void 0:u.sender.toUpperCase();typeof c.data.message.content=="string"&&da(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"))};He(j.PRE_INJECT_MESSAGE,s),He(j.CHUNK_STREAM_MESSAGE,s),He(j.START_STREAM_MESSAGE,s),He(j.START_SIMULATE_STREAM_MESSAGE,s),He(j.START_SPEAK_AUDIO,async c=>{da(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 a!=null&&a.autoConfig&&(l.settings={event:{rcbPreInjectMessage:!0,rcbChunkStreamMessage:!0,rcbStartSimulateStreamMessage:!0,rcbStartStreamMessage:!0,rcbStartSpeakAudio:!0}}),l},mc=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,vc=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,yc={};function pa(e,t){return(yc.jsx?vc:mc).test(e)}const bc=/[ \t\n\f\r]/g;function fa(e){return e.replace(bc,"")===""}class nn{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}function ha(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 nn(n,r,t)}function Mr(e){return e.toLowerCase()}nn.prototype.property={},nn.prototype.normal={},nn.prototype.space=null;class Ue{constructor(t,n){this.property=t,this.attribute=n}}Ue.prototype.space=null,Ue.prototype.boolean=!1,Ue.prototype.booleanish=!1,Ue.prototype.overloadedBoolean=!1,Ue.prototype.number=!1,Ue.prototype.commaSeparated=!1,Ue.prototype.spaceSeparated=!1,Ue.prototype.commaOrSpaceSeparated=!1,Ue.prototype.mustUseProperty=!1,Ue.prototype.defined=!1;let wc=0;const J=xt(),be=xt(),ga=xt(),M=xt(),ce=xt(),Ot=xt(),Me=xt();function xt(){return 2**++wc}const Or=Object.freeze(Object.defineProperty({__proto__:null,boolean:J,booleanish:be,commaOrSpaceSeparated:Me,commaSeparated:Ot,number:M,overloadedBoolean:ga,spaceSeparated:ce},Symbol.toStringTag,{value:"Module"})),Nr=Object.keys(Or);class Lr extends Ue{constructor(t,n,r,o){let i=-1;if(super(t,n),ma(this,"space",o),typeof r=="number")for(;++i<Nr.length;){const a=Nr[i];ma(this,Nr[i],(r&Or[a])===Or[a])}}}function ma(e,t,n){n&&(e[t]=n)}Lr.prototype.defined=!0;const xc={}.hasOwnProperty;function Nt(e){const t={},n={};let r;for(r in e.properties)if(xc.call(e.properties,r)){const o=e.properties[r],i=new Lr(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Mr(r)]=r,n[Mr(i.attribute)]=r}return new nn(t,n,e.space)}const va=Nt({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}}),ya=Nt({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function ba(e,t){return t in e?e[t]:t}function wa(e,t){return ba(e,t.toLowerCase())}const xa=Nt({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:wa,properties:{xmlns:null,xmlnsXLink:null}}),Ea=Nt({transform:(e,t)=>t==="role"?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:be,ariaAutoComplete:null,ariaBusy:be,ariaChecked:be,ariaColCount:M,ariaColIndex:M,ariaColSpan:M,ariaControls:ce,ariaCurrent:null,ariaDescribedBy:ce,ariaDetails:null,ariaDisabled:be,ariaDropEffect:ce,ariaErrorMessage:null,ariaExpanded:be,ariaFlowTo:ce,ariaGrabbed:be,ariaHasPopup:null,ariaHidden:be,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ce,ariaLevel:M,ariaLive:null,ariaModal:be,ariaMultiLine:be,ariaMultiSelectable:be,ariaOrientation:null,ariaOwns:ce,ariaPlaceholder:null,ariaPosInSet:M,ariaPressed:be,ariaReadOnly:be,ariaRelevant:null,ariaRequired:be,ariaRoleDescription:ce,ariaRowCount:M,ariaRowIndex:M,ariaRowSpan:M,ariaSelected:be,ariaSetSize:M,ariaSort:null,ariaValueMax:M,ariaValueMin:M,ariaValueNow:M,ariaValueText:null,role:null}}),Ec=Nt({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:wa,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ot,acceptCharset:ce,accessKey:ce,action:null,allow:null,allowFullScreen:J,allowPaymentRequest:J,allowUserMedia:J,alt:null,as:null,async:J,autoCapitalize:null,autoComplete:ce,autoFocus:J,autoPlay:J,blocking:ce,capture:null,charSet:null,checked:J,cite:null,className:ce,cols:M,colSpan:null,content:null,contentEditable:be,controls:J,controlsList:ce,coords:M|Ot,crossOrigin:null,data:null,dateTime:null,decoding:null,default:J,defer:J,dir:null,dirName:null,disabled:J,download:ga,draggable:be,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:J,formTarget:null,headers:ce,height:M,hidden:J,high:M,href:null,hrefLang:null,htmlFor:ce,httpEquiv:ce,id:null,imageSizes:null,imageSrcSet:null,inert:J,inputMode:null,integrity:null,is:null,isMap:J,itemId:null,itemProp:ce,itemRef:ce,itemScope:J,itemType:ce,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:J,low:M,manifest:null,max:null,maxLength:M,media:null,method:null,min:null,minLength:M,multiple:J,muted:J,name:null,nonce:null,noModule:J,noValidate:J,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:J,optimum:M,pattern:null,ping:ce,placeholder:null,playsInline:J,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:J,referrerPolicy:null,rel:ce,required:J,reversed:J,rows:M,rowSpan:M,sandbox:ce,scope:null,scoped:J,seamless:J,selected:J,shadowRootClonable:J,shadowRootDelegatesFocus:J,shadowRootMode:null,shape:null,size:M,sizes:null,slot:null,span:M,spellCheck:be,src:null,srcDoc:null,srcLang:null,srcSet:null,start:M,step:null,style:null,tabIndex:M,target:null,title:null,translate:null,type:null,typeMustMatch:J,useMap:null,value:be,width:M,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ce,axis:null,background:null,bgColor:null,border:M,borderColor:null,bottomMargin:M,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:J,declare:J,event:null,face:null,frame:null,frameBorder:null,hSpace:M,leftMargin:M,link:null,longDesc:null,lowSrc:null,marginHeight:M,marginWidth:M,noResize:J,noHref:J,noShade:J,noWrap:J,object:null,profile:null,prompt:null,rev:null,rightMargin:M,rules:null,scheme:null,scrolling:be,standby:null,summary:null,text:null,topMargin:M,valueType:null,version:null,vAlign:null,vLink:null,vSpace:M,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:J,disableRemotePlayback:J,prefix:null,property:null,results:M,security:null,unselectable:null}}),Pc=Nt({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:ba,properties:{about:Me,accentHeight:M,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:M,amplitude:M,arabicForm:null,ascent:M,attributeName:null,attributeType:null,azimuth:M,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:M,by:null,calcMode:null,capHeight:M,className:ce,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:M,diffuseConstant:M,direction:null,display:null,dur:null,divisor:M,dominantBaseline:null,download:J,dx:null,dy:null,edgeMode:null,editable:null,elevation:M,enableBackground:null,end:null,event:null,exponent:M,externalResourcesRequired:null,fill:null,fillOpacity:M,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:Ot,g2:Ot,glyphName:Ot,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:M,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:M,horizOriginX:M,horizOriginY:M,id:null,ideographic:M,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:M,k:M,k1:M,k2:M,k3:M,k4:M,kernelMatrix:Me,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:M,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:M,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:M,overlineThickness:M,paintOrder:null,panose1:null,path:null,pathLength:M,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ce,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:M,pointsAtY:M,pointsAtZ:M,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Me,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Me,rev:Me,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Me,requiredFeatures:Me,requiredFonts:Me,requiredFormats:Me,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:M,specularExponent:M,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:M,strikethroughThickness:M,string:null,stroke:null,strokeDashArray:Me,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:M,strokeOpacity:M,strokeWidth:null,style:null,surfaceScale:M,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Me,tabIndex:M,tableValues:null,target:null,targetX:M,targetY:M,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Me,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:M,underlineThickness:M,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:M,values:null,vAlphabetic:M,vMathematical:M,vectorEffect:null,vHanging:M,vIdeographic:M,version:null,vertAdvY:M,vertOriginX:M,vertOriginY:M,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:M,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),kc=/^data[-\w.:]+$/i,Pa=/-[a-z]/g,Cc=/[A-Z]/g;function _c(e){return"-"+e.toLowerCase()}function Dc(e){return e.charAt(1).toUpperCase()}const Bc={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"},Sc=ha([ya,va,xa,Ea,Ec],"html"),Rr=ha([ya,va,xa,Ea,Pc],"svg");function ka(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hr,Ca,_a,Lt={},Ic=function(){if(_a)return Lt;_a=1;var e=Lt&&Lt.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.default=function(n,r){var o=null;if(!n||typeof n!="string")return o;var i=(0,t.default)(n),a=typeof r=="function";return i.forEach(function(A){if(A.type==="declaration"){var s=A.property,l=A.value;a?r(s,l,A):l&&((o=o||{})[s]=l)}}),o};var t=e(function(){if(Ca)return Hr;Ca=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,o=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,A=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(d){return d?d.replace(l,c):c}return Hr=function(d,p){if(typeof d!="string")throw new TypeError("First argument must be a string");if(!d)return[];p=p||{};var f=1,y=1;function h(D){var k=D.match(r);k&&(f+=k.length);var S=D.lastIndexOf(`
|
|
21
|
-
`);y=~S?D.length-S:y+D.length}function w(){var D={line:f,column:y};return function(k){return k.position=new v(D),C(),k}}function v(D){this.start=D,this.end={line:f,column:y},this.source=p.source}function g(D){var k=new Error(p.source+":"+f+":"+y+": "+D);if(k.reason=D,k.filename=p.source,k.line=f,k.column=y,k.source=d,!p.silent)throw k}function x(D){var k=D.exec(d);if(k){var S=k[0];return h(S),d=d.slice(S.length),k}}function C(){x(o)}function E(D){var k;for(D=D||[];k=_();)k!==!1&&D.push(k);return D}function _(){var D=w();if(d.charAt(0)=="/"&&d.charAt(1)=="*"){for(var k=2;c!=d.charAt(k)&&(d.charAt(k)!="*"||d.charAt(k+1)!="/");)++k;if(k+=2,c===d.charAt(k-1))return g("End of comment missing");var S=d.slice(2,k-2);return y+=2,h(S),d=d.slice(k),y+=2,D({type:"comment",comment:S})}}function I(){var D=w(),k=x(i);if(k){if(_(),!x(a))return g("property missing ':'");var S=x(A),B=D({type:"declaration",property:u(k[0].replace(n,c)),value:S?u(S[0].replace(n,c)):c});return x(s),B}}return v.prototype.content=d,C(),function(){var D,k=[];for(E(k);D=I();)D!==!1&&(k.push(D),E(k));return k}()},Hr}());return Lt}();const Da=ka(Ic),Tc=Da.default||Da,Ba=Sa("end"),Ur=Sa("start");function Sa(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 rn(e){return e&&typeof e=="object"?"position"in e||"type"in e?Ia(e.position):"start"in e||"end"in e?Ia(e):"line"in e||"column"in e?Fr(e):"":""}function Fr(e){return Ta(e&&e.line)+":"+Ta(e&&e.column)}function Ia(e){return Fr(e&&e.start)+"-"+Fr(e&&e.end)}function Ta(e){return e&&typeof e=="number"?e:1}class ke extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let o="",i={},a=!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&&(a=!0,o=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?i.ruleId=r:(i.source=r.slice(0,s),i.ruleId=r.slice(s+1))}if(!i.place&&i.ancestors&&i.ancestors){const s=i.ancestors[i.ancestors.length-1];s&&(i.place=s.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=rn(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=a&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}ke.prototype.file="",ke.prototype.name="",ke.prototype.reason="",ke.prototype.message="",ke.prototype.stack="",ke.prototype.column=void 0,ke.prototype.line=void 0,ke.prototype.ancestors=void 0,ke.prototype.cause=void 0,ke.prototype.fatal=void 0,ke.prototype.place=void 0,ke.prototype.ruleId=void 0,ke.prototype.source=void 0;const zr={}.hasOwnProperty,Qc=new Map,Mc=/[A-Z]/g,Oc=/-([a-z])/g,Nc=new Set(["table","tbody","thead","tfoot","tr"]),Lc=new Set(["td","th"]),Qa="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Rc(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(a,A){return s;function s(l,c,u,d){const p=Array.isArray(u.children),f=Ur(l);return A(c,u,d,p,{columnNumber:f?f.column-1:void 0,fileName:a,lineNumber:f?f.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(a,A,s){return l;function l(c,u,d,p){const f=Array.isArray(d.children)?s:A;return p?f(u,d,p):f(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"?Rr:Sc,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=Ma(o,e,void 0);return i&&typeof i!="string"?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function Ma(e,t,n){return t.type==="element"?function(r,o,i){const a=r.schema;let A=a;o.tagName.toLowerCase()==="svg"&&a.space==="html"&&(A=Rr,r.schema=A),r.ancestors.push(o);const s=Na(r,o.tagName,!1),l=function(u,d){const p={};let f,y;for(y in d.properties)if(y!=="children"&&zr.call(d.properties,y)){const h=Hc(u,y,d.properties[y]);if(h){const[w,v]=h;u.tableCellAlignToStyle&&w==="align"&&typeof v=="string"&&Lc.has(d.tagName)?f=v:p[w]=v}}return f&&((p.style||(p.style={}))[u.stylePropertyNameCase==="css"?"text-align":"textAlign"]=f),p}(r,o);let c=Wr(r,o);return Nc.has(o.tagName)&&(c=c.filter(function(u){return typeof u!="string"||!function(d){return typeof d=="object"?d.type==="text"&&fa(d.value):fa(d)}(u)})),Oa(r,l,s,o),jr(l,c),r.ancestors.pop(),r.schema=a,r.create(o,s,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)}on(r,o.position)}(e,t):t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement"?function(r,o,i){const a=r.schema;let A=a;o.name==="svg"&&a.space==="html"&&(A=Rr,r.schema=A),r.ancestors.push(o);const s=o.name===null?r.Fragment:Na(r,o.name,!0),l=function(u,d){const p={};for(const f of d.attributes)if(f.type==="mdxJsxExpressionAttribute")if(f.data&&f.data.estree&&u.evaluater){const y=f.data.estree.body[0];y.type;const h=y.expression;h.type;const w=h.properties[0];w.type,Object.assign(p,u.evaluater.evaluateExpression(w.argument))}else on(u,d.position);else{const y=f.name;let h;if(f.value&&typeof f.value=="object")if(f.value.data&&f.value.data.estree&&u.evaluater){const w=f.value.data.estree.body[0];w.type,h=u.evaluater.evaluateExpression(w.expression)}else on(u,d.position);else h=f.value===null||f.value;p[y]=h}return p}(r,o),c=Wr(r,o);return Oa(r,l,s,o),jr(l,c),r.ancestors.pop(),r.schema=a,r.create(o,s,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);on(r,o.position)}(e,t):t.type==="root"?function(r,o,i){const a={};return jr(a,Wr(r,o)),r.create(o,r.Fragment,a,i)}(e,t,n):t.type==="text"?function(r,o){return o.value}(0,t):void 0}function Oa(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function jr(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Wr(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:Qc;for(;++r<t.children.length;){const i=t.children[r];let a;if(e.passKeys){const s=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(s){const l=o.get(s)||0;a=s+"-"+l,o.set(s,l+1)}}const A=Ma(e,i,a);A!==void 0&&n.push(A)}return n}function Hc(e,t,n){const r=function(o,i){const a=Mr(i);let A=i,s=Ue;if(a in o.normal)return o.property[o.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&kc.test(i)){if(i.charAt(4)==="-"){const l=i.slice(5).replace(Pa,Dc);A="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=i.slice(4);if(!Pa.test(l)){let c=l.replace(Cc,_c);c.charAt(0)!=="-"&&(c="-"+c),i="data"+c}}s=Lr}return new s(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,a){const A={};try{Tc(a,s)}catch(l){if(!i.ignoreInvalidStyle){const c=l,u=new ke("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=Qa+"#cannot-parse-style-attribute",u}}return A;function s(l,c){let u=l;u.slice(0,2)!=="--"&&(u.slice(0,4)==="-ms-"&&(u="ms-"+u.slice(4)),u=u.replace(Oc,Fc)),A[u]=c}}(e,String(n));return e.stylePropertyNameCase==="css"&&(o=function(i){const a={};let A;for(A in i)zr.call(i,A)&&(a[Uc(A)]=i[A]);return a}(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&r.space?Bc[r.property]||r.property:r.attribute,n]}}function Na(e,t,n){let r;if(n)if(t.includes(".")){const o=t.split(".");let i,a=-1;for(;++a<o.length;){const A=pa(o[a])?{type:"Identifier",name:o[a]}:{type:"Literal",value:o[a]};i=i?{type:"MemberExpression",object:i,property:A,computed:!(!a||A.type!=="Literal"),optional:!1}:A}r=i}else r=pa(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 zr.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(r);on(e)}function on(e,t){const n=new ke("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=Qa+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Uc(e){let t=e.replace(Mc,zc);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Fc(e,t){return t.toUpperCase()}function zc(e){return"-"+e.toLowerCase()}const Gr={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 La(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 Ra(e.children,t,n)}return Array.isArray(e)?Ra(e,t,n):""}function Ra(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=La(e[o],t,n);return r.join("")}const Ha=document.createElement("i");function qr(e){const t="&"+e+";";Ha.innerHTML=t;const n=Ha.textContent;return(n.charCodeAt(n.length-1)!==59||e==="semi")&&n!==t&&n}function Ze(e,t,n,r){const o=e.length;let i,a=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);a<r.length;)i=r.slice(a,a+1e4),i.unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function Fe(e,t){return e.length>0?(Ze(e,e.length,0,t),e):t}const Ua={}.hasOwnProperty;function jc(e){const t={};let n=-1;for(;++n<e.length;)Wc(t,e[n]);return t}function Wc(e,t){let n;for(n in t){const r=(Ua.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){Ua.call(r,i)||(r[i]=[]);const a=o[i];Gc(r[i],Array.isArray(a)?a:a?[a]:[])}}}function Gc(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Ze(e,0,0,r)}function Fa(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 Rt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const et=ut(/[A-Za-z]/),Oe=ut(/[\dA-Za-z]/),qc=ut(/[#-'*+\--9=?A-Z^-~]/);function Yr(e){return e!==null&&(e<32||e===127)}const Xr=ut(/\d/),Yc=ut(/[\dA-Fa-f]/),Xc=ut(/[!-/:-@[-`{-~]/);function V(e){return e!==null&&e<-2}function Se(e){return e!==null&&(e<0||e===32)}function ae(e){return e===-2||e===-1||e===32}const Vc=ut(new RegExp("\\p{P}|\\p{S}","u")),Kc=ut(/\s/);function ut(e){return function(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Ht(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let a="";if(i===37&&Oe(e.charCodeAt(n+1))&&Oe(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){const A=e.charCodeAt(n+1);i<56320&&A>56319&&A<57344?(a=String.fromCharCode(i,A),o=1):a="�"}else a=String.fromCharCode(i);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function ue(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(A){return ae(A)?(e.enter(n),a(A)):t(A)};function a(A){return ae(A)&&i++<o?(e.consume(A),a):(e.exit(n),t(A))}}const $c={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"),ue(e,t,"linePrefix"))},function(i){return e.enter("paragraph"),r(i)});let n;return t;function r(i){const a=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=a),n=a,o(i)}function o(i){return i===null?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(i)):V(i)?(e.consume(i),e.exit("chunkText"),r):(e.consume(i),o)}}},Jc={tokenize:function(e){const t=this,n=[];let r,o,i,a=0;return A;function A(g){if(a<n.length){const x=n[a];return t.containerState=x[1],e.attempt(x[0].continuation,s,l)(g)}return l(g)}function s(g){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&v();const x=t.events.length;let C,E=x;for(;E--;)if(t.events[E][0]==="exit"&&t.events[E][1].type==="chunkFlow"){C=t.events[E][1].end;break}w(a);let _=x;for(;_<t.events.length;)t.events[_][1].end={...C},_++;return Ze(t.events,E+1,0,t.events.slice(x)),t.events.length=_,l(g)}return A(g)}function l(g){if(a===n.length){if(!r)return d(g);if(r.currentConstruct&&r.currentConstruct.concrete)return f(g);t.interrupt=!(!r.currentConstruct||r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(za,c,u)(g)}function c(g){return r&&v(),w(a),d(g)}function u(g){return t.parser.lazy[t.now().line]=a!==n.length,i=t.now().offset,f(g)}function d(g){return t.containerState={},e.attempt(za,p,f)(g)}function p(g){return a++,n.push([t.currentConstruct,t.containerState]),d(g)}function f(g){return g===null?(r&&v(),w(0),void e.consume(g)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),y(g))}function y(g){return g===null?(h(e.exit("chunkFlow"),!0),w(0),void e.consume(g)):V(g)?(e.consume(g),h(e.exit("chunkFlow")),a=0,t.interrupt=void 0,A):(e.consume(g),y)}function h(g,x){const C=t.sliceStream(g);if(x&&C.push(null),g.previous=o,o&&(o.next=g),o=g,r.defineSkip(g.start),r.write(C),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 _=t.events.length;let I,D,k=_;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){if(I){D=t.events[k][1].end;break}I=!0}for(w(a),E=_;E<t.events.length;)t.events[E][1].end={...D},E++;Ze(t.events,k+1,0,t.events.slice(_)),t.events.length=E}}function w(g){let x=n.length;for(;x-- >g;){const C=n[x];t.containerState=C[1],C[0].exit.call(t,e)}n.length=g}function v(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},za={tokenize:function(e,t,n){return ue(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function ja(e){return e===null||Se(e)||Kc(e)?1:Vc(e)?2:void 0}function Vr(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 Kr={name:"attention",resolveAll:function(e,t){let n,r,o,i,a,A,s,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};Wa(u,-A),Wa(d,A),i={type:A>1?"strongSequence":"emphasisSequence",start:u,end:{...e[n][1].end}},a={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:{...a.end}},e[n][1].end={...i.start},e[c][1].start={...a.end},s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=Fe(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=Fe(s,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),s=Fe(s,Vr(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),s=Fe(s,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(l=2,s=Fe(s,[["enter",e[c][1],t],["exit",e[c][1],t]])):l=0,Ze(e,n-1,c-n+3,s),c=n+s.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=ja(r);let i;return function(A){return i=A,e.enter("attentionSequence"),a(A)};function a(A){if(A===i)return e.consume(A),a;const s=e.exit("attentionSequence"),l=ja(A),c=!l||l===2&&o||n.includes(A),u=!o||o===2&&l||n.includes(r);return s._open=!!(i===42?c:c&&(o||!u)),s._close=!!(i===42?u:u&&(l||!c)),t(A)}}};function Wa(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Zc={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 et(d)?(e.consume(d),i):d===64?n(d):s(d)}function i(d){return d===43||d===45||d===46||Oe(d)?(r=1,a(d)):s(d)}function a(d){return d===58?(e.consume(d),r=0,A):(d===43||d===45||d===46||Oe(d))&&r++<32?(e.consume(d),a):(r=0,s(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||Yr(d)?n(d):(e.consume(d),A)}function s(d){return d===64?(e.consume(d),l):qc(d)?(e.consume(d),s):n(d)}function l(d){return Oe(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||Oe(d))&&r++<63){const p=d===45?u:c;return e.consume(d),p}return n(d)}}},Mn={partial:!0,tokenize:function(e,t,n){return function(o){return ae(o)?ue(e,r,"linePrefix")(o):r(o)};function r(o){return o===null||V(o)?t(o):n(o)}}},Ga={continuation:{tokenize:function(e,t,n){const r=this;return function(i){return ae(i)?ue(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):o(i)};function o(i){return e.attempt(Ga,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 a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(i),e.exit("blockQuoteMarker"),o}return n(i)};function o(i){return ae(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(i))}}},qa={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 Xc(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}},Ya={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,a=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"),s):(e.enter("characterReferenceValue"),o=31,i=Oe,l(c))}function s(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=Yc,l):(e.enter("characterReferenceValue"),o=7,i=Xr,l(c))}function l(c){if(c===59&&a){const u=e.exit("characterReferenceValue");return i!==Oe||qr(r.sliceSerialize(u))?(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(c)}return i(c)&&a++<o?(e.consume(c),l):n(c)}}},Xa={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)}}},Va={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,o={partial:!0,tokenize:function(g,x,C){let E=0;return _;function _(B){return g.enter("lineEnding"),g.consume(B),g.exit("lineEnding"),I}function I(B){return g.enter("codeFencedFence"),ae(B)?ue(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"),k(B)):C(B)}function k(B){return B===i?(E++,g.consume(B),k):E>=A?(g.exit("codeFencedFenceSequence"),ae(B)?ue(g,S,"whitespace")(B):S(B)):C(B)}function S(B){return B===null||V(B)?(g.exit("codeFencedFence"),x(B)):C(B)}}};let i,a=0,A=0;return function(g){return function(x){const C=r.events[r.events.length-1];return a=C&&C[1].type==="linePrefix"?C[2].sliceSerialize(C[1],!0).length:0,i=x,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(x)}(g)};function s(g){return g===i?(A++,e.consume(g),s):A<3?n(g):(e.exit("codeFencedFenceSequence"),ae(g)?ue(e,l,"whitespace")(g):l(g))}function l(g){return g===null||V(g)?(e.exit("codeFencedFence"),r.interrupt?t(g):e.check(Xa,p,v)(g)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),c(g))}function c(g){return g===null||V(g)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(g)):ae(g)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ue(e,u,"whitespace")(g)):g===96&&g===i?n(g):(e.consume(g),c)}function u(g){return g===null||V(g)?l(g):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(g))}function d(g){return g===null||V(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,v,f)(g)}function f(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),y}function y(g){return a>0&&ae(g)?ue(e,h,"linePrefix",a+1)(g):h(g)}function h(g){return g===null||V(g)?e.check(Xa,p,v)(g):(e.enter("codeFlowValue"),w(g))}function w(g){return g===null||V(g)?(e.exit("codeFlowValue"),h(g)):(e.consume(g),w)}function v(g){return e.exit("codeFenced"),t(g)}}},$r={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(s){return e.enter("codeIndented"),ue(e,o,"linePrefix",5)(s)};function o(s){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?i(s):n(s)}function i(s){return s===null?A(s):V(s)?e.attempt(eu,i,A)(s):(e.enter("codeFlowValue"),a(s))}function a(s){return s===null||V(s)?(e.exit("codeFlowValue"),i(s)):(e.consume(s),a)}function A(s){return e.exit("codeIndented"),t(s)}}},eu={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(a){return r.parser.lazy[r.now().line]?n(a):V(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):ue(e,i,"linePrefix",5)(a)}function i(a){const A=r.events[r.events.length-1];return A&&A[1].type==="linePrefix"&&A[2].sliceSerialize(A[1],!0).length>=4?t(a):V(a)?o(a):n(a)}}},tu={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"),a(c)};function a(c){return c===96?(e.consume(c),i++,a):(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)):V(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),A):(e.enter("codeTextData"),s(c))}function s(c){return c===null||c===32||c===96||V(c)?(e.exit("codeTextData"),A(c)):(e.consume(c),s)}function l(c){return c===96?(e.consume(c),r++,l):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(o.type="codeTextData",s(c))}}};class nu{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&&an(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),an(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),an(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);an(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);an(this.left,n.reverse())}}}function an(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 Ka(e){const t={};let n,r,o,i,a,A,s,l=-1;const c=new nu(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,ru(c,l)),l=t[l],s=!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},a=c.slice(r,l),a.unshift(n),c.splice(r,l-r+1,a))}}return Ze(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!s}function ru(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[],a=n._tokenizer||r.parser[n.contentType](n.start),A=a.events,s=[],l={};let c,u,d=-1,p=n,f=0,y=0;const h=[y];for(;p;){for(;e.get(++o)[1]!==p;);i.push(o),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(null),u&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(c),p._isInFirstContentOfListItem&&(a._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&&(y=d+1,h.push(y),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):h.pop(),d=h.length;d--;){const w=A.slice(h[d],h[d+1]),v=i.pop();s.push([v,v+w.length-1]),e.splice(v,2,w)}for(s.reverse(),d=-1;++d<s.length;)l[f+s[d][0]]=f+s[d][1],f+=s[d][1]-s[d][0]-1;return l}const ou={resolve:function(e){return Ka(e),e},tokenize:function(e,t){let n;return function(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(a)};function r(a){return a===null?o(a):V(a)?e.check(iu,i,o)(a):(e.consume(a),r)}function o(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function i(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},iu={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"),ue(e,o,"linePrefix")};function o(i){if(i===null||V(i))return n(i);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}};function $a(e,t,n,r,o,i,a,A,s){const l=s||Number.POSITIVE_INFINITY;let c=0;return function(h){return h===60?(e.enter(r),e.enter(o),e.enter(i),e.consume(h),e.exit(i),u):h===null||h===32||h===41||Yr(h)?n(h):(e.enter(r),e.enter(a),e.enter(A),e.enter("chunkString",{contentType:"string"}),f(h))};function u(h){return h===62?(e.enter(i),e.consume(h),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(A),e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===62?(e.exit("chunkString"),e.exit(A),u(h)):h===null||h===60||V(h)?n(h):(e.consume(h),h===92?p:d)}function p(h){return h===60||h===62||h===92?(e.consume(h),d):d(h)}function f(h){return c||h!==null&&h!==41&&!Se(h)?c<l&&h===40?(e.consume(h),c++,f):h===41?(e.consume(h),c--,f):h===null||h===32||h===40||Yr(h)?n(h):(e.consume(h),h===92?y:f):(e.exit("chunkString"),e.exit(A),e.exit(a),e.exit(r),t(h))}function y(h){return h===40||h===41||h===92?(e.consume(h),f):f(h)}}function Ja(e,t,n,r,o,i){const a=this;let A,s=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 s>999||d===null||d===91||d===93&&!A||d===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):d===93?(e.exit(i),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):V(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||V(d)||s++>999?(e.exit("chunkString"),l(d)):(e.consume(d),A||(A=!ae(d)),d===92?u:c)}function u(d){return d===91||d===92||d===93?(e.consume(d),s++,c):c(d)}}function Za(e,t,n,r,o,i){let a;return function(u){return u===34||u===39||u===40?(e.enter(r),e.enter(o),e.consume(u),e.exit(o),a=u===40?41:u,A):n(u)};function A(u){return u===a?(e.enter(o),e.consume(u),e.exit(o),e.exit(r),t):(e.enter(i),s(u))}function s(u){return u===a?(e.exit(i),A(a)):u===null?n(u):V(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),ue(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),l(u))}function l(u){return u===a||u===null||V(u)?(e.exit("chunkString"),s(u)):(e.consume(u),u===92?c:l)}function c(u){return u===a||u===92?(e.consume(u),l):l(u)}}function An(e,t){let n;return function r(o){return V(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):ae(o)?ue(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}const au={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(u){return e.enter("definition"),function(d){return Ja.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}(u)};function i(u){return o=Rt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),u===58?(e.enter("definitionMarker"),e.consume(u),e.exit("definitionMarker"),a):n(u)}function a(u){return Se(u)?An(e,A)(u):A(u)}function A(u){return $a(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(u)}function s(u){return e.attempt(Au,l,l)(u)}function l(u){return ae(u)?ue(e,c,"whitespace")(u):c(u)}function c(u){return u===null||V(u)?(e.exit("definition"),r.parser.defined.push(o),t(u)):n(u)}}},Au={partial:!0,tokenize:function(e,t,n){return function(a){return Se(a)?An(e,r)(a):n(a)};function r(a){return Za(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return ae(a)?ue(e,i,"whitespace")(a):i(a)}function i(a){return a===null||V(a)?t(a):n(a)}}},su={name:"hardBreakEscape",tokenize:function(e,t,n){return function(o){return e.enter("hardBreakEscape"),e.consume(o),r};function r(o){return V(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}},lu={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"},Ze(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(s){return e.enter("atxHeading"),function(l){return e.enter("atxHeadingSequence"),o(l)}(s)};function o(s){return s===35&&r++<6?(e.consume(s),o):s===null||Se(s)?(e.exit("atxHeadingSequence"),i(s)):n(s)}function i(s){return s===35?(e.enter("atxHeadingSequence"),a(s)):s===null||V(s)?(e.exit("atxHeading"),t(s)):ae(s)?ue(e,i,"whitespace")(s):(e.enter("atxHeadingText"),A(s))}function a(s){return s===35?(e.consume(s),a):(e.exit("atxHeadingSequence"),i(s))}function A(s){return s===null||s===35||Se(s)?(e.exit("atxHeadingText"),i(s)):(e.consume(s),A)}}},cu=["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"],eA=["pre","script","style","textarea"],uu={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,a,A,s;return function(b){return function(F){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(F),l}(b)};function l(b){return b===33?(e.consume(b),c):b===47?(e.consume(b),i=!0,p):b===63?(e.consume(b),o=3,r.interrupt?t:H):et(b)?(e.consume(b),a=String.fromCharCode(b),f):n(b)}function c(b){return b===45?(e.consume(b),o=2,u):b===91?(e.consume(b),o=5,A=0,d):et(b)?(e.consume(b),o=4,r.interrupt?t:H):n(b)}function u(b){return b===45?(e.consume(b),r.interrupt?t:H):n(b)}function d(b){return b==="CDATA[".charCodeAt(A++)?(e.consume(b),A===6?r.interrupt?t:k:d):n(b)}function p(b){return et(b)?(e.consume(b),a=String.fromCharCode(b),f):n(b)}function f(b){if(b===null||b===47||b===62||Se(b)){const F=b===47,K=a.toLowerCase();return F||i||!eA.includes(K)?cu.includes(a.toLowerCase())?(o=6,F?(e.consume(b),y):r.interrupt?t(b):k(b)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(b):i?h(b):w(b)):(o=1,r.interrupt?t(b):k(b))}return b===45||Oe(b)?(e.consume(b),a+=String.fromCharCode(b),f):n(b)}function y(b){return b===62?(e.consume(b),r.interrupt?t:k):n(b)}function h(b){return ae(b)?(e.consume(b),h):I(b)}function w(b){return b===47?(e.consume(b),I):b===58||b===95||et(b)?(e.consume(b),v):ae(b)?(e.consume(b),w):I(b)}function v(b){return b===45||b===46||b===58||b===95||Oe(b)?(e.consume(b),v):g(b)}function g(b){return b===61?(e.consume(b),x):ae(b)?(e.consume(b),g):w(b)}function x(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(e.consume(b),s=b,C):ae(b)?(e.consume(b),x):E(b)}function C(b){return b===s?(e.consume(b),s=null,_):b===null||V(b)?n(b):(e.consume(b),C)}function E(b){return b===null||b===34||b===39||b===47||b===60||b===61||b===62||b===96||Se(b)?g(b):(e.consume(b),E)}function _(b){return b===47||b===62||ae(b)?w(b):n(b)}function I(b){return b===62?(e.consume(b),D):n(b)}function D(b){return b===null||V(b)?k(b):ae(b)?(e.consume(b),D):n(b)}function k(b){return b===45&&o===2?(e.consume(b),N):b===60&&o===1?(e.consume(b),Q):b===62&&o===4?(e.consume(b),m):b===63&&o===3?(e.consume(b),H):b===93&&o===5?(e.consume(b),O):!V(b)||o!==6&&o!==7?b===null||V(b)?(e.exit("htmlFlowData"),S(b)):(e.consume(b),k):(e.exit("htmlFlowData"),e.check(du,U,S)(b))}function S(b){return e.check(pu,B,U)(b)}function B(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),L}function L(b){return b===null||V(b)?S(b):(e.enter("htmlFlowData"),k(b))}function N(b){return b===45?(e.consume(b),H):k(b)}function Q(b){return b===47?(e.consume(b),a="",W):k(b)}function W(b){if(b===62){const F=a.toLowerCase();return eA.includes(F)?(e.consume(b),m):k(b)}return et(b)&&a.length<8?(e.consume(b),a+=String.fromCharCode(b),W):k(b)}function O(b){return b===93?(e.consume(b),H):k(b)}function H(b){return b===62?(e.consume(b),m):b===45&&o===2?(e.consume(b),H):k(b)}function m(b){return b===null||V(b)?(e.exit("htmlFlowData"),U(b)):(e.consume(b),m)}function U(b){return e.exit("htmlFlow"),t(b)}}},du={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Mn,t,n)}}},pu={partial:!0,tokenize:function(e,t,n){const r=this;return function(i){return V(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)}}},fu={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,a;return function(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),A};function A(m){return m===33?(e.consume(m),s):m===47?(e.consume(m),x):m===63?(e.consume(m),v):et(m)?(e.consume(m),_):n(m)}function s(m){return m===45?(e.consume(m),l):m===91?(e.consume(m),i=0,p):et(m)?(e.consume(m),w):n(m)}function l(m){return m===45?(e.consume(m),d):n(m)}function c(m){return m===null?n(m):m===45?(e.consume(m),u):V(m)?(a=c,W(m)):(e.consume(m),c)}function u(m){return m===45?(e.consume(m),d):c(m)}function d(m){return m===62?Q(m):m===45?u(m):c(m)}function p(m){return m==="CDATA[".charCodeAt(i++)?(e.consume(m),i===6?f:p):n(m)}function f(m){return m===null?n(m):m===93?(e.consume(m),y):V(m)?(a=f,W(m)):(e.consume(m),f)}function y(m){return m===93?(e.consume(m),h):f(m)}function h(m){return m===62?Q(m):m===93?(e.consume(m),h):f(m)}function w(m){return m===null||m===62?Q(m):V(m)?(a=w,W(m)):(e.consume(m),w)}function v(m){return m===null?n(m):m===63?(e.consume(m),g):V(m)?(a=v,W(m)):(e.consume(m),v)}function g(m){return m===62?Q(m):v(m)}function x(m){return et(m)?(e.consume(m),C):n(m)}function C(m){return m===45||Oe(m)?(e.consume(m),C):E(m)}function E(m){return V(m)?(a=E,W(m)):ae(m)?(e.consume(m),E):Q(m)}function _(m){return m===45||Oe(m)?(e.consume(m),_):m===47||m===62||Se(m)?I(m):n(m)}function I(m){return m===47?(e.consume(m),Q):m===58||m===95||et(m)?(e.consume(m),D):V(m)?(a=I,W(m)):ae(m)?(e.consume(m),I):Q(m)}function D(m){return m===45||m===46||m===58||m===95||Oe(m)?(e.consume(m),D):k(m)}function k(m){return m===61?(e.consume(m),S):V(m)?(a=k,W(m)):ae(m)?(e.consume(m),k):I(m)}function S(m){return m===null||m===60||m===61||m===62||m===96?n(m):m===34||m===39?(e.consume(m),o=m,B):V(m)?(a=S,W(m)):ae(m)?(e.consume(m),S):(e.consume(m),L)}function B(m){return m===o?(e.consume(m),o=void 0,N):m===null?n(m):V(m)?(a=B,W(m)):(e.consume(m),B)}function L(m){return m===null||m===34||m===39||m===60||m===61||m===96?n(m):m===47||m===62||Se(m)?I(m):(e.consume(m),L)}function N(m){return m===47||m===62||Se(m)?I(m):n(m)}function Q(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),t):n(m)}function W(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),O}function O(m){return ae(m)?ue(e,H,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):H(m)}function H(m){return e.enter("htmlTextData"),a(m)}}},Jr={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&&Ze(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,o,i,a=e.length,A=0;for(;a--;)if(n=e[a][1],r){if(n.type==="link"||n.type==="labelLink"&&n._inactive)break;e[a][0]==="enter"&&n.type==="labelLink"&&(n._inactive=!0)}else if(o){if(e[a][0]==="enter"&&(n.type==="labelImage"||n.type==="labelLink")&&!n._balanced&&(r=a,n.type!=="labelLink")){A=2;break}}else n.type==="labelEnd"&&(o=a);const s={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",s,t],["enter",l,t]],i=Fe(i,e.slice(r+1,r+A+3)),i=Fe(i,[["enter",c,t]]),i=Fe(i,Vr(t.parser.constructs.insideSpan.null,e.slice(r+A+4,o-3),t)),i=Fe(i,[["exit",c,t],e[o-2],e[o-1],["exit",l,t]]),i=Fe(i,e.slice(o+1)),i=Fe(i,[["exit",s,t]]),Ze(e,r,e.length,i),e},tokenize:function(e,t,n){const r=this;let o,i,a=r.events.length;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){o=r.events[a][1];break}return function(u){return o?o._inactive?c(u):(i=r.parser.defined.includes(Rt(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(gu,l,i?s:c)(u):i?l(u):c(u)}function s(u){return e.attempt(mu,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 Se(c)?An(e,o)(c):o(c)}function o(c){return c===41?l(c):$a(e,i,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function i(c){return Se(c)?An(e,A)(c):l(c)}function a(c){return n(c)}function A(c){return c===34||c===39||c===40?Za(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):l(c)}function s(c){return Se(c)?An(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)}}},gu={tokenize:function(e,t,n){const r=this;return function(a){return Ja.call(r,e,o,i,"reference","referenceMarker","referenceString")(a)};function o(a){return r.parser.defined.includes(Rt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function i(a){return n(a)}}},mu={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)}}},vu={name:"labelStartImage",resolveAll:Jr.resolveAll,tokenize:function(e,t,n){const r=this;return function(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o};function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),i):n(a)}function i(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}},yu={name:"labelStartLink",resolveAll:Jr.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)}}},Zr={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ue(e,t,"linePrefix")}}},On={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(A){return e.enter("thematicBreak"),function(s){return r=s,i(s)}(A)};function i(A){return A===r?(e.enter("thematicBreakSequence"),a(A)):o>=3&&(A===null||V(A))?(e.exit("thematicBreak"),t(A)):n(A)}function a(A){return A===r?(e.consume(A),o++,a):(e.exit("thematicBreakSequence"),ae(A)?ue(e,i,"whitespace")(A):i(A))}}},Ie={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Mn,function(i){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ue(e,t,"listItemIndent",r.containerState.size+1)(i)},function(i){return r.containerState.furtherBlankLines||!ae(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,ue(e,e.attempt(Ie,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,a=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:Xr(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(On,n,s)(d):s(d);if(!r.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),A(d)}return n(d)};function A(d){return Xr(d)&&++a<10?(e.consume(d),A):(!r.interrupt||a<2)&&(r.containerState.marker?d===r.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),s(d)):n(d)}function s(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,e.check(Mn,r.interrupt?n:l,e.attempt(bu,u,c))}function l(d){return r.containerState.initialBlankLine=!0,i++,u(d)}function c(d){return ae(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)}}},bu={partial:!0,tokenize:function(e,t,n){const r=this;return ue(e,function(o){const i=r.events[r.events.length-1];return!ae(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 ue(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)}},tA={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 a={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",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=a,e.push(["exit",a,t]),e},tokenize:function(e,t,n){const r=this;let o;return function(A){let s,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"){s=r.events[l][1].type==="paragraph";break}return r.parser.lazy[r.now().line]||!r.interrupt&&!s?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"),ae(A)?ue(e,a,"lineSuffix")(A):a(A))}function a(A){return A===null||V(A)?(e.exit("setextHeadingLine"),t(A)):n(A)}}},xu={tokenize:function(e){const t=this,n=e.attempt(Mn,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,ue(e,e.attempt(this.parser.constructs.flow,r,e.attempt(ou,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)}}},Eu={resolveAll:rA()},Pu=nA("string"),ku=nA("text");function nA(e){return{resolveAll:rA(e==="text"?Cu:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,a);return i;function i(l){return s(l)?o(l):a(l)}function a(l){if(l!==null)return t.enter("data"),t.consume(l),A;t.consume(l)}function A(l){return s(l)?(t.exit("data"),o(l)):(t.consume(l),A)}function s(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 rA(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 Cu(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,a=o.length,A=-1,s=0;for(;a--;){const l=o[a];if(typeof l=="string"){for(A=l.length;l.charCodeAt(A-1)===32;)s++,A--;if(A)break;A=-1}else if(l===-2)i=!0,s++;else if(l!==-1){a++;break}}if(s){const l={type:n===e.length||i||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?A:r.start._bufferIndex+A,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},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:Ie,43:Ie,45:Ie,48:Ie,49:Ie,50:Ie,51:Ie,52:Ie,53:Ie,54:Ie,55:Ie,56:Ie,57:Ie,62:Ga},Du={91:au},Bu={[-2]:$r,[-1]:$r,32:$r},Su={35:lu,42:On,45:[tA,On],60:uu,61:tA,95:On,96:Va,126:Va},Iu={38:Ya,92:qa},Tu={[-5]:Zr,[-4]:Zr,[-3]:Zr,33:vu,38:Ya,42:Kr,60:[Zc,fu],91:yu,92:[su,qa],93:Jr,95:Kr,96:tu},Qu={null:[Kr,Eu]},Mu=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:Du,disable:{null:[]},document:_u,flow:Su,flowInitial:Bu,insideSpan:Qu,string:Iu,text:Tu},Symbol.toStringTag,{value:"Module"}));function Ou(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 a=[],A=[];const s={attempt:y(function(v,g){h(v,g.from)}),check:y(f),consume:function(v){V(v)?(r.line++,r.column=1,r.offset+=v===-3?2:1,w()):v!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=v},enter:function(v,g){const x=g||{};return x.type=v,x.start=d(),l.events.push(["enter",x,l]),A.push(x),x},exit:function(v){const g=A.pop();return g.end=d(),l.events.push(["exit",g,l]),g},interrupt:y(f,{interrupt:!0})},l={code:null,containerState:{},defineSkip:function(v){o[v.line]=v.column,w()},events:[],now:d,parser:e,previous:null,sliceSerialize:function(v,g){return function(x,C){let E=-1;const _=[];let I;for(;++E<x.length;){const D=x[E];let k;if(typeof D=="string")k=D;else switch(D){case-5:k="\r";break;case-4:k=`
|
|
20
|
+
`),r=r.replace(/\n/g,"<br/>"),r}createContainer(e){var t;const n=(typeof global<"u"&&global.INTERWEAVE_SSR_POLYFILL||cc)();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(Ac)){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?oc(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:a}=o,A=i.toLowerCase(),s=Aa[A]||Aa[i];if(!this.isSafe(e)||!A.match(sc)&&(!t&&(!s||s===2)||A.startsWith("on")||a.replace(/(\s|\0|�([9AD]);)/,"").match(/(javascript|vbscript|livescript|xss):/i)))return;let l=A==="style"?this.extractStyleAttribute(e):a;s===4?l=!0:s===3?l=Number.parseFloat(String(l)):s!==5&&(l=String(l)),n[tc[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 Tr[e]?{...t,...Tr[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:a}=this.props;let A=[],s="";return[...e.childNodes].forEach(l=>{if(l.nodeType===1){const u=l.nodeName.toLowerCase(),d=this.getTagConfig(u);s&&(A.push(s),s="");const p=this.applyNodeFilters(u,l);if(!p)return;let f;if(i&&(!a||this.isTagAllowed(u))){this.keyIndex+=1;const y=this.keyIndex;f=this.parseNode(p,d);const h=i(p,f,d);if(h===null)return;if(typeof h<"u")return void A.push(R.cloneElement(h,{key:y}));this.keyIndex=y-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 y=this.extractAttributes(p),h={tagName:u};y&&(h.attributes=y),d.void&&(h.selfClose=d.void),A.push(R.createElement(sa,{...h,key:this.keyIndex},(c=f)!==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]:s+=u}}),s&&A.push(s),A}replaceTokens(e,t){if(!e.includes("{{{"))return e;const n=[];let r=e,o=null;for(;o=r.match(lc);){const[i,a]=o,A=o.index,s=i.includes("/");if(process.env.NODE_ENV!=="production"&&!t[a])throw new Error(`Token "${a}" 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[a];let d;if(s)d=i.length,n.push(c.createElement(l,u));else{const p=r.match(new RegExp(`{{{/${a}}}}`));if(process.env.NODE_ENV!=="production"&&!p)throw new Error(`Closing token missing for interpolated element "${a}".`);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 uc(e){var t;const{attributes:n,className:r,containerTagName:o,content:i,emptyContent:a,parsedContent:A,tagName:s,noWrap:l}=e,c=(t=o??s)!==null&&t!==void 0?t:"span",u=c==="fragment"||l;let d;if(A)d=A;else{const p=new ua(i??"",e).parse();p.length>0&&(d=p)}return d||(d=a),u?R.createElement(R.Fragment,null,d):R.createElement(sa,{attributes:n,className:r,tagName:c},d)}function dc(e){const{attributes:t,className:n,content:r="",disableFilters:o=!1,disableMatchers:i=!1,emptyContent:a=null,filters:A=[],matchers:s=[],onAfterParse:l=null,onBeforeParse:c=null,tagName:u="span",noWrap:d=!1,...p}=e,f=i?[]:s,y=o?[]:A,h=c?[c]:[],w=l?[l]:[];f.forEach(C=>{C.onBeforeParse&&h.push(C.onBeforeParse.bind(C)),C.onAfterParse&&w.push(C.onAfterParse.bind(C))});const v=h.reduce((C,E)=>{const _=E(C,e);if(process.env.NODE_ENV!=="production"&&typeof _!="string")throw new TypeError("Interweave `onBeforeParse` must return a valid HTML string.");return _},r??""),g=new ua(v,p,f,y),x=w.reduce((C,E)=>{const _=E(C,e);if(process.env.NODE_ENV!=="production"&&!Array.isArray(_))throw new TypeError("Interweave `onAfterParse` must return an array of strings and React elements.");return _},g.parse());return R.createElement(uc,{attributes:t,className:n,containerTagName:e.containerTagName,emptyContent:a,noWrap:d,parsedContent:x.length===0?void 0:x,tagName:u})}const pc=({children:e})=>P("div",{style:{whiteSpace:"normal"},children:P(dc,{content:typeof e=="string"?e:""})}),fc={autoConfig:!0},da=(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},gc=e=>{const{getFlow:t}=In(),{messages:n,replaceMessages:r}=Sr(),{settings:o}=ia(),{hasChatHistoryLoaded:i}=aa(),a={...e,...fc},A=a.htmlComponent?a.htmlComponent:pc;te(()=>{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 f=d[p];(u=f.tags)!=null&&u.includes("rcb-html-renderer-plugin:parsed")&&(f.contentWrapper=A)}r(d)}},[i]);const s=async c=>{var u;const d=(u=c.data.message)==null?void 0:u.sender.toUpperCase();typeof c.data.message.content=="string"&&da(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"))};He(j.PRE_INJECT_MESSAGE,s),He(j.CHUNK_STREAM_MESSAGE,s),He(j.START_STREAM_MESSAGE,s),He(j.START_SIMULATE_STREAM_MESSAGE,s),He(j.START_SPEAK_AUDIO,async c=>{da(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 a!=null&&a.autoConfig&&(l.settings={event:{rcbPreInjectMessage:!0,rcbChunkStreamMessage:!0,rcbStartSimulateStreamMessage:!0,rcbStartStreamMessage:!0,rcbStartSpeakAudio:!0}}),l},mc=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,vc=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,yc={};function pa(e,t){return(yc.jsx?vc:mc).test(e)}const bc=/[ \t\n\f\r]/g;function fa(e){return e.replace(bc,"")===""}class nn{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}function ha(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 nn(n,r,t)}function Qr(e){return e.toLowerCase()}nn.prototype.property={},nn.prototype.normal={},nn.prototype.space=null;class Ue{constructor(t,n){this.property=t,this.attribute=n}}Ue.prototype.space=null,Ue.prototype.boolean=!1,Ue.prototype.booleanish=!1,Ue.prototype.overloadedBoolean=!1,Ue.prototype.number=!1,Ue.prototype.commaSeparated=!1,Ue.prototype.spaceSeparated=!1,Ue.prototype.commaOrSpaceSeparated=!1,Ue.prototype.mustUseProperty=!1,Ue.prototype.defined=!1;let wc=0;const J=xt(),be=xt(),ga=xt(),M=xt(),ce=xt(),Ot=xt(),Me=xt();function xt(){return 2**++wc}const Mr=Object.freeze(Object.defineProperty({__proto__:null,boolean:J,booleanish:be,commaOrSpaceSeparated:Me,commaSeparated:Ot,number:M,overloadedBoolean:ga,spaceSeparated:ce},Symbol.toStringTag,{value:"Module"})),Or=Object.keys(Mr);class Nr extends Ue{constructor(t,n,r,o){let i=-1;if(super(t,n),ma(this,"space",o),typeof r=="number")for(;++i<Or.length;){const a=Or[i];ma(this,Or[i],(r&Mr[a])===Mr[a])}}}function ma(e,t,n){n&&(e[t]=n)}Nr.prototype.defined=!0;const xc={}.hasOwnProperty;function Nt(e){const t={},n={};let r;for(r in e.properties)if(xc.call(e.properties,r)){const o=e.properties[r],i=new Nr(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 nn(t,n,e.space)}const va=Nt({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}}),ya=Nt({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function ba(e,t){return t in e?e[t]:t}function wa(e,t){return ba(e,t.toLowerCase())}const xa=Nt({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:wa,properties:{xmlns:null,xmlnsXLink:null}}),Ea=Nt({transform:(e,t)=>t==="role"?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:be,ariaAutoComplete:null,ariaBusy:be,ariaChecked:be,ariaColCount:M,ariaColIndex:M,ariaColSpan:M,ariaControls:ce,ariaCurrent:null,ariaDescribedBy:ce,ariaDetails:null,ariaDisabled:be,ariaDropEffect:ce,ariaErrorMessage:null,ariaExpanded:be,ariaFlowTo:ce,ariaGrabbed:be,ariaHasPopup:null,ariaHidden:be,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ce,ariaLevel:M,ariaLive:null,ariaModal:be,ariaMultiLine:be,ariaMultiSelectable:be,ariaOrientation:null,ariaOwns:ce,ariaPlaceholder:null,ariaPosInSet:M,ariaPressed:be,ariaReadOnly:be,ariaRelevant:null,ariaRequired:be,ariaRoleDescription:ce,ariaRowCount:M,ariaRowIndex:M,ariaRowSpan:M,ariaSelected:be,ariaSetSize:M,ariaSort:null,ariaValueMax:M,ariaValueMin:M,ariaValueNow:M,ariaValueText:null,role:null}}),Ec=Nt({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:wa,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ot,acceptCharset:ce,accessKey:ce,action:null,allow:null,allowFullScreen:J,allowPaymentRequest:J,allowUserMedia:J,alt:null,as:null,async:J,autoCapitalize:null,autoComplete:ce,autoFocus:J,autoPlay:J,blocking:ce,capture:null,charSet:null,checked:J,cite:null,className:ce,cols:M,colSpan:null,content:null,contentEditable:be,controls:J,controlsList:ce,coords:M|Ot,crossOrigin:null,data:null,dateTime:null,decoding:null,default:J,defer:J,dir:null,dirName:null,disabled:J,download:ga,draggable:be,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:J,formTarget:null,headers:ce,height:M,hidden:J,high:M,href:null,hrefLang:null,htmlFor:ce,httpEquiv:ce,id:null,imageSizes:null,imageSrcSet:null,inert:J,inputMode:null,integrity:null,is:null,isMap:J,itemId:null,itemProp:ce,itemRef:ce,itemScope:J,itemType:ce,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:J,low:M,manifest:null,max:null,maxLength:M,media:null,method:null,min:null,minLength:M,multiple:J,muted:J,name:null,nonce:null,noModule:J,noValidate:J,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:J,optimum:M,pattern:null,ping:ce,placeholder:null,playsInline:J,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:J,referrerPolicy:null,rel:ce,required:J,reversed:J,rows:M,rowSpan:M,sandbox:ce,scope:null,scoped:J,seamless:J,selected:J,shadowRootClonable:J,shadowRootDelegatesFocus:J,shadowRootMode:null,shape:null,size:M,sizes:null,slot:null,span:M,spellCheck:be,src:null,srcDoc:null,srcLang:null,srcSet:null,start:M,step:null,style:null,tabIndex:M,target:null,title:null,translate:null,type:null,typeMustMatch:J,useMap:null,value:be,width:M,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ce,axis:null,background:null,bgColor:null,border:M,borderColor:null,bottomMargin:M,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:J,declare:J,event:null,face:null,frame:null,frameBorder:null,hSpace:M,leftMargin:M,link:null,longDesc:null,lowSrc:null,marginHeight:M,marginWidth:M,noResize:J,noHref:J,noShade:J,noWrap:J,object:null,profile:null,prompt:null,rev:null,rightMargin:M,rules:null,scheme:null,scrolling:be,standby:null,summary:null,text:null,topMargin:M,valueType:null,version:null,vAlign:null,vLink:null,vSpace:M,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:J,disableRemotePlayback:J,prefix:null,property:null,results:M,security:null,unselectable:null}}),Pc=Nt({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:ba,properties:{about:Me,accentHeight:M,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:M,amplitude:M,arabicForm:null,ascent:M,attributeName:null,attributeType:null,azimuth:M,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:M,by:null,calcMode:null,capHeight:M,className:ce,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:M,diffuseConstant:M,direction:null,display:null,dur:null,divisor:M,dominantBaseline:null,download:J,dx:null,dy:null,edgeMode:null,editable:null,elevation:M,enableBackground:null,end:null,event:null,exponent:M,externalResourcesRequired:null,fill:null,fillOpacity:M,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:Ot,g2:Ot,glyphName:Ot,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:M,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:M,horizOriginX:M,horizOriginY:M,id:null,ideographic:M,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:M,k:M,k1:M,k2:M,k3:M,k4:M,kernelMatrix:Me,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:M,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:M,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:M,overlineThickness:M,paintOrder:null,panose1:null,path:null,pathLength:M,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ce,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:M,pointsAtY:M,pointsAtZ:M,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Me,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Me,rev:Me,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Me,requiredFeatures:Me,requiredFonts:Me,requiredFormats:Me,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:M,specularExponent:M,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:M,strikethroughThickness:M,string:null,stroke:null,strokeDashArray:Me,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:M,strokeOpacity:M,strokeWidth:null,style:null,surfaceScale:M,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Me,tabIndex:M,tableValues:null,target:null,targetX:M,targetY:M,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Me,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:M,underlineThickness:M,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:M,values:null,vAlphabetic:M,vMathematical:M,vectorEffect:null,vHanging:M,vIdeographic:M,version:null,vertAdvY:M,vertOriginX:M,vertOriginY:M,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:M,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),kc=/^data[-\w.:]+$/i,Pa=/-[a-z]/g,Cc=/[A-Z]/g;function _c(e){return"-"+e.toLowerCase()}function Dc(e){return e.charAt(1).toUpperCase()}const Bc={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"},Sc=ha([ya,va,xa,Ea,Ec],"html"),Lr=ha([ya,va,xa,Ea,Pc],"svg");function ka(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Rr,Ca,_a,Lt={},Ic=function(){if(_a)return Lt;_a=1;var e=Lt&&Lt.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.default=function(n,r){var o=null;if(!n||typeof n!="string")return o;var i=(0,t.default)(n),a=typeof r=="function";return i.forEach(function(A){if(A.type==="declaration"){var s=A.property,l=A.value;a?r(s,l,A):l&&((o=o||{})[s]=l)}}),o};var t=e(function(){if(Ca)return Rr;Ca=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,o=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,A=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(d){return d?d.replace(l,c):c}return Rr=function(d,p){if(typeof d!="string")throw new TypeError("First argument must be a string");if(!d)return[];p=p||{};var f=1,y=1;function h(D){var k=D.match(r);k&&(f+=k.length);var S=D.lastIndexOf(`
|
|
21
|
+
`);y=~S?D.length-S:y+D.length}function w(){var D={line:f,column:y};return function(k){return k.position=new v(D),C(),k}}function v(D){this.start=D,this.end={line:f,column:y},this.source=p.source}function g(D){var k=new Error(p.source+":"+f+":"+y+": "+D);if(k.reason=D,k.filename=p.source,k.line=f,k.column=y,k.source=d,!p.silent)throw k}function x(D){var k=D.exec(d);if(k){var S=k[0];return h(S),d=d.slice(S.length),k}}function C(){x(o)}function E(D){var k;for(D=D||[];k=_();)k!==!1&&D.push(k);return D}function _(){var D=w();if(d.charAt(0)=="/"&&d.charAt(1)=="*"){for(var k=2;c!=d.charAt(k)&&(d.charAt(k)!="*"||d.charAt(k+1)!="/");)++k;if(k+=2,c===d.charAt(k-1))return g("End of comment missing");var S=d.slice(2,k-2);return y+=2,h(S),d=d.slice(k),y+=2,D({type:"comment",comment:S})}}function I(){var D=w(),k=x(i);if(k){if(_(),!x(a))return g("property missing ':'");var S=x(A),B=D({type:"declaration",property:u(k[0].replace(n,c)),value:S?u(S[0].replace(n,c)):c});return x(s),B}}return v.prototype.content=d,C(),function(){var D,k=[];for(E(k);D=I();)D!==!1&&(k.push(D),E(k));return k}()},Rr}());return Lt}();const Da=ka(Ic),Tc=Da.default||Da,Ba=Sa("end"),Hr=Sa("start");function Sa(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 rn(e){return e&&typeof e=="object"?"position"in e||"type"in e?Ia(e.position):"start"in e||"end"in e?Ia(e):"line"in e||"column"in e?Ur(e):"":""}function Ur(e){return Ta(e&&e.line)+":"+Ta(e&&e.column)}function Ia(e){return Ur(e&&e.start)+"-"+Ur(e&&e.end)}function Ta(e){return e&&typeof e=="number"?e:1}class ke extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let o="",i={},a=!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&&(a=!0,o=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?i.ruleId=r:(i.source=r.slice(0,s),i.ruleId=r.slice(s+1))}if(!i.place&&i.ancestors&&i.ancestors){const s=i.ancestors[i.ancestors.length-1];s&&(i.place=s.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=rn(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=a&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}ke.prototype.file="",ke.prototype.name="",ke.prototype.reason="",ke.prototype.message="",ke.prototype.stack="",ke.prototype.column=void 0,ke.prototype.line=void 0,ke.prototype.ancestors=void 0,ke.prototype.cause=void 0,ke.prototype.fatal=void 0,ke.prototype.place=void 0,ke.prototype.ruleId=void 0,ke.prototype.source=void 0;const Fr={}.hasOwnProperty,Qc=new Map,Mc=/[A-Z]/g,Oc=/-([a-z])/g,Nc=new Set(["table","tbody","thead","tfoot","tr"]),Lc=new Set(["td","th"]),Qa="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Rc(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(a,A){return s;function s(l,c,u,d){const p=Array.isArray(u.children),f=Hr(l);return A(c,u,d,p,{columnNumber:f?f.column-1:void 0,fileName:a,lineNumber:f?f.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(a,A,s){return l;function l(c,u,d,p){const f=Array.isArray(d.children)?s:A;return p?f(u,d,p):f(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"?Lr:Sc,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=Ma(o,e,void 0);return i&&typeof i!="string"?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function Ma(e,t,n){return t.type==="element"?function(r,o,i){const a=r.schema;let A=a;o.tagName.toLowerCase()==="svg"&&a.space==="html"&&(A=Lr,r.schema=A),r.ancestors.push(o);const s=Na(r,o.tagName,!1),l=function(u,d){const p={};let f,y;for(y in d.properties)if(y!=="children"&&Fr.call(d.properties,y)){const h=Hc(u,y,d.properties[y]);if(h){const[w,v]=h;u.tableCellAlignToStyle&&w==="align"&&typeof v=="string"&&Lc.has(d.tagName)?f=v:p[w]=v}}return f&&((p.style||(p.style={}))[u.stylePropertyNameCase==="css"?"text-align":"textAlign"]=f),p}(r,o);let c=jr(r,o);return Nc.has(o.tagName)&&(c=c.filter(function(u){return typeof u!="string"||!function(d){return typeof d=="object"?d.type==="text"&&fa(d.value):fa(d)}(u)})),Oa(r,l,s,o),zr(l,c),r.ancestors.pop(),r.schema=a,r.create(o,s,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)}on(r,o.position)}(e,t):t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement"?function(r,o,i){const a=r.schema;let A=a;o.name==="svg"&&a.space==="html"&&(A=Lr,r.schema=A),r.ancestors.push(o);const s=o.name===null?r.Fragment:Na(r,o.name,!0),l=function(u,d){const p={};for(const f of d.attributes)if(f.type==="mdxJsxExpressionAttribute")if(f.data&&f.data.estree&&u.evaluater){const y=f.data.estree.body[0];y.type;const h=y.expression;h.type;const w=h.properties[0];w.type,Object.assign(p,u.evaluater.evaluateExpression(w.argument))}else on(u,d.position);else{const y=f.name;let h;if(f.value&&typeof f.value=="object")if(f.value.data&&f.value.data.estree&&u.evaluater){const w=f.value.data.estree.body[0];w.type,h=u.evaluater.evaluateExpression(w.expression)}else on(u,d.position);else h=f.value===null||f.value;p[y]=h}return p}(r,o),c=jr(r,o);return Oa(r,l,s,o),zr(l,c),r.ancestors.pop(),r.schema=a,r.create(o,s,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);on(r,o.position)}(e,t):t.type==="root"?function(r,o,i){const a={};return zr(a,jr(r,o)),r.create(o,r.Fragment,a,i)}(e,t,n):t.type==="text"?function(r,o){return o.value}(0,t):void 0}function Oa(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 jr(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:Qc;for(;++r<t.children.length;){const i=t.children[r];let a;if(e.passKeys){const s=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(s){const l=o.get(s)||0;a=s+"-"+l,o.set(s,l+1)}}const A=Ma(e,i,a);A!==void 0&&n.push(A)}return n}function Hc(e,t,n){const r=function(o,i){const a=Qr(i);let A=i,s=Ue;if(a in o.normal)return o.property[o.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&kc.test(i)){if(i.charAt(4)==="-"){const l=i.slice(5).replace(Pa,Dc);A="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=i.slice(4);if(!Pa.test(l)){let c=l.replace(Cc,_c);c.charAt(0)!=="-"&&(c="-"+c),i="data"+c}}s=Nr}return new s(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,a){const A={};try{Tc(a,s)}catch(l){if(!i.ignoreInvalidStyle){const c=l,u=new ke("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=Qa+"#cannot-parse-style-attribute",u}}return A;function s(l,c){let u=l;u.slice(0,2)!=="--"&&(u.slice(0,4)==="-ms-"&&(u="ms-"+u.slice(4)),u=u.replace(Oc,Fc)),A[u]=c}}(e,String(n));return e.stylePropertyNameCase==="css"&&(o=function(i){const a={};let A;for(A in i)Fr.call(i,A)&&(a[Uc(A)]=i[A]);return a}(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&r.space?Bc[r.property]||r.property:r.attribute,n]}}function Na(e,t,n){let r;if(n)if(t.includes(".")){const o=t.split(".");let i,a=-1;for(;++a<o.length;){const A=pa(o[a])?{type:"Identifier",name:o[a]}:{type:"Literal",value:o[a]};i=i?{type:"MemberExpression",object:i,property:A,computed:!(!a||A.type!=="Literal"),optional:!1}:A}r=i}else r=pa(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 Fr.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(r);on(e)}function on(e,t){const n=new ke("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=Qa+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Uc(e){let t=e.replace(Mc,zc);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Fc(e,t){return t.toUpperCase()}function zc(e){return"-"+e.toLowerCase()}const Wr={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 La(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 Ra(e.children,t,n)}return Array.isArray(e)?Ra(e,t,n):""}function Ra(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=La(e[o],t,n);return r.join("")}const Ha=document.createElement("i");function Gr(e){const t="&"+e+";";Ha.innerHTML=t;const n=Ha.textContent;return(n.charCodeAt(n.length-1)!==59||e==="semi")&&n!==t&&n}function Ze(e,t,n,r){const o=e.length;let i,a=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);a<r.length;)i=r.slice(a,a+1e4),i.unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function Fe(e,t){return e.length>0?(Ze(e,e.length,0,t),e):t}const Ua={}.hasOwnProperty;function jc(e){const t={};let n=-1;for(;++n<e.length;)Wc(t,e[n]);return t}function Wc(e,t){let n;for(n in t){const r=(Ua.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){Ua.call(r,i)||(r[i]=[]);const a=o[i];Gc(r[i],Array.isArray(a)?a:a?[a]:[])}}}function Gc(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Ze(e,0,0,r)}function Fa(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 Rt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const et=ut(/[A-Za-z]/),Oe=ut(/[\dA-Za-z]/),qc=ut(/[#-'*+\--9=?A-Z^-~]/);function qr(e){return e!==null&&(e<32||e===127)}const Yr=ut(/\d/),Yc=ut(/[\dA-Fa-f]/),Xc=ut(/[!-/:-@[-`{-~]/);function V(e){return e!==null&&e<-2}function Se(e){return e!==null&&(e<0||e===32)}function ae(e){return e===-2||e===-1||e===32}const Vc=ut(new RegExp("\\p{P}|\\p{S}","u")),Kc=ut(/\s/);function ut(e){return function(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Ht(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let a="";if(i===37&&Oe(e.charCodeAt(n+1))&&Oe(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){const A=e.charCodeAt(n+1);i<56320&&A>56319&&A<57344?(a=String.fromCharCode(i,A),o=1):a="�"}else a=String.fromCharCode(i);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function ue(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(A){return ae(A)?(e.enter(n),a(A)):t(A)};function a(A){return ae(A)&&i++<o?(e.consume(A),a):(e.exit(n),t(A))}}const $c={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"),ue(e,t,"linePrefix"))},function(i){return e.enter("paragraph"),r(i)});let n;return t;function r(i){const a=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=a),n=a,o(i)}function o(i){return i===null?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(i)):V(i)?(e.consume(i),e.exit("chunkText"),r):(e.consume(i),o)}}},Jc={tokenize:function(e){const t=this,n=[];let r,o,i,a=0;return A;function A(g){if(a<n.length){const x=n[a];return t.containerState=x[1],e.attempt(x[0].continuation,s,l)(g)}return l(g)}function s(g){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&v();const x=t.events.length;let C,E=x;for(;E--;)if(t.events[E][0]==="exit"&&t.events[E][1].type==="chunkFlow"){C=t.events[E][1].end;break}w(a);let _=x;for(;_<t.events.length;)t.events[_][1].end={...C},_++;return Ze(t.events,E+1,0,t.events.slice(x)),t.events.length=_,l(g)}return A(g)}function l(g){if(a===n.length){if(!r)return d(g);if(r.currentConstruct&&r.currentConstruct.concrete)return f(g);t.interrupt=!(!r.currentConstruct||r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(za,c,u)(g)}function c(g){return r&&v(),w(a),d(g)}function u(g){return t.parser.lazy[t.now().line]=a!==n.length,i=t.now().offset,f(g)}function d(g){return t.containerState={},e.attempt(za,p,f)(g)}function p(g){return a++,n.push([t.currentConstruct,t.containerState]),d(g)}function f(g){return g===null?(r&&v(),w(0),void e.consume(g)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),y(g))}function y(g){return g===null?(h(e.exit("chunkFlow"),!0),w(0),void e.consume(g)):V(g)?(e.consume(g),h(e.exit("chunkFlow")),a=0,t.interrupt=void 0,A):(e.consume(g),y)}function h(g,x){const C=t.sliceStream(g);if(x&&C.push(null),g.previous=o,o&&(o.next=g),o=g,r.defineSkip(g.start),r.write(C),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 _=t.events.length;let I,D,k=_;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){if(I){D=t.events[k][1].end;break}I=!0}for(w(a),E=_;E<t.events.length;)t.events[E][1].end={...D},E++;Ze(t.events,k+1,0,t.events.slice(_)),t.events.length=E}}function w(g){let x=n.length;for(;x-- >g;){const C=n[x];t.containerState=C[1],C[0].exit.call(t,e)}n.length=g}function v(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},za={tokenize:function(e,t,n){return ue(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function ja(e){return e===null||Se(e)||Kc(e)?1:Vc(e)?2:void 0}function Xr(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 Vr={name:"attention",resolveAll:function(e,t){let n,r,o,i,a,A,s,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};Wa(u,-A),Wa(d,A),i={type:A>1?"strongSequence":"emphasisSequence",start:u,end:{...e[n][1].end}},a={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:{...a.end}},e[n][1].end={...i.start},e[c][1].start={...a.end},s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=Fe(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=Fe(s,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),s=Fe(s,Xr(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),s=Fe(s,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(l=2,s=Fe(s,[["enter",e[c][1],t],["exit",e[c][1],t]])):l=0,Ze(e,n-1,c-n+3,s),c=n+s.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=ja(r);let i;return function(A){return i=A,e.enter("attentionSequence"),a(A)};function a(A){if(A===i)return e.consume(A),a;const s=e.exit("attentionSequence"),l=ja(A),c=!l||l===2&&o||n.includes(A),u=!o||o===2&&l||n.includes(r);return s._open=!!(i===42?c:c&&(o||!u)),s._close=!!(i===42?u:u&&(l||!c)),t(A)}}};function Wa(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Zc={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 et(d)?(e.consume(d),i):d===64?n(d):s(d)}function i(d){return d===43||d===45||d===46||Oe(d)?(r=1,a(d)):s(d)}function a(d){return d===58?(e.consume(d),r=0,A):(d===43||d===45||d===46||Oe(d))&&r++<32?(e.consume(d),a):(r=0,s(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||qr(d)?n(d):(e.consume(d),A)}function s(d){return d===64?(e.consume(d),l):qc(d)?(e.consume(d),s):n(d)}function l(d){return Oe(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||Oe(d))&&r++<63){const p=d===45?u:c;return e.consume(d),p}return n(d)}}},Mn={partial:!0,tokenize:function(e,t,n){return function(o){return ae(o)?ue(e,r,"linePrefix")(o):r(o)};function r(o){return o===null||V(o)?t(o):n(o)}}},Ga={continuation:{tokenize:function(e,t,n){const r=this;return function(i){return ae(i)?ue(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):o(i)};function o(i){return e.attempt(Ga,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 a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(i),e.exit("blockQuoteMarker"),o}return n(i)};function o(i){return ae(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(i))}}},qa={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 Xc(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}},Ya={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,a=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"),s):(e.enter("characterReferenceValue"),o=31,i=Oe,l(c))}function s(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=Yc,l):(e.enter("characterReferenceValue"),o=7,i=Yr,l(c))}function l(c){if(c===59&&a){const u=e.exit("characterReferenceValue");return i!==Oe||Gr(r.sliceSerialize(u))?(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(c)}return i(c)&&a++<o?(e.consume(c),l):n(c)}}},Xa={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)}}},Va={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,o={partial:!0,tokenize:function(g,x,C){let E=0;return _;function _(B){return g.enter("lineEnding"),g.consume(B),g.exit("lineEnding"),I}function I(B){return g.enter("codeFencedFence"),ae(B)?ue(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"),k(B)):C(B)}function k(B){return B===i?(E++,g.consume(B),k):E>=A?(g.exit("codeFencedFenceSequence"),ae(B)?ue(g,S,"whitespace")(B):S(B)):C(B)}function S(B){return B===null||V(B)?(g.exit("codeFencedFence"),x(B)):C(B)}}};let i,a=0,A=0;return function(g){return function(x){const C=r.events[r.events.length-1];return a=C&&C[1].type==="linePrefix"?C[2].sliceSerialize(C[1],!0).length:0,i=x,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(x)}(g)};function s(g){return g===i?(A++,e.consume(g),s):A<3?n(g):(e.exit("codeFencedFenceSequence"),ae(g)?ue(e,l,"whitespace")(g):l(g))}function l(g){return g===null||V(g)?(e.exit("codeFencedFence"),r.interrupt?t(g):e.check(Xa,p,v)(g)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),c(g))}function c(g){return g===null||V(g)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(g)):ae(g)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ue(e,u,"whitespace")(g)):g===96&&g===i?n(g):(e.consume(g),c)}function u(g){return g===null||V(g)?l(g):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(g))}function d(g){return g===null||V(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,v,f)(g)}function f(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),y}function y(g){return a>0&&ae(g)?ue(e,h,"linePrefix",a+1)(g):h(g)}function h(g){return g===null||V(g)?e.check(Xa,p,v)(g):(e.enter("codeFlowValue"),w(g))}function w(g){return g===null||V(g)?(e.exit("codeFlowValue"),h(g)):(e.consume(g),w)}function v(g){return e.exit("codeFenced"),t(g)}}},Kr={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(s){return e.enter("codeIndented"),ue(e,o,"linePrefix",5)(s)};function o(s){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?i(s):n(s)}function i(s){return s===null?A(s):V(s)?e.attempt(eu,i,A)(s):(e.enter("codeFlowValue"),a(s))}function a(s){return s===null||V(s)?(e.exit("codeFlowValue"),i(s)):(e.consume(s),a)}function A(s){return e.exit("codeIndented"),t(s)}}},eu={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(a){return r.parser.lazy[r.now().line]?n(a):V(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):ue(e,i,"linePrefix",5)(a)}function i(a){const A=r.events[r.events.length-1];return A&&A[1].type==="linePrefix"&&A[2].sliceSerialize(A[1],!0).length>=4?t(a):V(a)?o(a):n(a)}}},tu={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"),a(c)};function a(c){return c===96?(e.consume(c),i++,a):(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)):V(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),A):(e.enter("codeTextData"),s(c))}function s(c){return c===null||c===32||c===96||V(c)?(e.exit("codeTextData"),A(c)):(e.consume(c),s)}function l(c){return c===96?(e.consume(c),r++,l):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(o.type="codeTextData",s(c))}}};class nu{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&&an(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),an(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),an(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);an(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);an(this.left,n.reverse())}}}function an(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 Ka(e){const t={};let n,r,o,i,a,A,s,l=-1;const c=new nu(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,ru(c,l)),l=t[l],s=!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},a=c.slice(r,l),a.unshift(n),c.splice(r,l-r+1,a))}}return Ze(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!s}function ru(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[],a=n._tokenizer||r.parser[n.contentType](n.start),A=a.events,s=[],l={};let c,u,d=-1,p=n,f=0,y=0;const h=[y];for(;p;){for(;e.get(++o)[1]!==p;);i.push(o),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(null),u&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(c),p._isInFirstContentOfListItem&&(a._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&&(y=d+1,h.push(y),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):h.pop(),d=h.length;d--;){const w=A.slice(h[d],h[d+1]),v=i.pop();s.push([v,v+w.length-1]),e.splice(v,2,w)}for(s.reverse(),d=-1;++d<s.length;)l[f+s[d][0]]=f+s[d][1],f+=s[d][1]-s[d][0]-1;return l}const ou={resolve:function(e){return Ka(e),e},tokenize:function(e,t){let n;return function(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(a)};function r(a){return a===null?o(a):V(a)?e.check(iu,i,o)(a):(e.consume(a),r)}function o(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function i(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},iu={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"),ue(e,o,"linePrefix")};function o(i){if(i===null||V(i))return n(i);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}};function $a(e,t,n,r,o,i,a,A,s){const l=s||Number.POSITIVE_INFINITY;let c=0;return function(h){return h===60?(e.enter(r),e.enter(o),e.enter(i),e.consume(h),e.exit(i),u):h===null||h===32||h===41||qr(h)?n(h):(e.enter(r),e.enter(a),e.enter(A),e.enter("chunkString",{contentType:"string"}),f(h))};function u(h){return h===62?(e.enter(i),e.consume(h),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(A),e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===62?(e.exit("chunkString"),e.exit(A),u(h)):h===null||h===60||V(h)?n(h):(e.consume(h),h===92?p:d)}function p(h){return h===60||h===62||h===92?(e.consume(h),d):d(h)}function f(h){return c||h!==null&&h!==41&&!Se(h)?c<l&&h===40?(e.consume(h),c++,f):h===41?(e.consume(h),c--,f):h===null||h===32||h===40||qr(h)?n(h):(e.consume(h),h===92?y:f):(e.exit("chunkString"),e.exit(A),e.exit(a),e.exit(r),t(h))}function y(h){return h===40||h===41||h===92?(e.consume(h),f):f(h)}}function Ja(e,t,n,r,o,i){const a=this;let A,s=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 s>999||d===null||d===91||d===93&&!A||d===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):d===93?(e.exit(i),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):V(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||V(d)||s++>999?(e.exit("chunkString"),l(d)):(e.consume(d),A||(A=!ae(d)),d===92?u:c)}function u(d){return d===91||d===92||d===93?(e.consume(d),s++,c):c(d)}}function Za(e,t,n,r,o,i){let a;return function(u){return u===34||u===39||u===40?(e.enter(r),e.enter(o),e.consume(u),e.exit(o),a=u===40?41:u,A):n(u)};function A(u){return u===a?(e.enter(o),e.consume(u),e.exit(o),e.exit(r),t):(e.enter(i),s(u))}function s(u){return u===a?(e.exit(i),A(a)):u===null?n(u):V(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),ue(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),l(u))}function l(u){return u===a||u===null||V(u)?(e.exit("chunkString"),s(u)):(e.consume(u),u===92?c:l)}function c(u){return u===a||u===92?(e.consume(u),l):l(u)}}function An(e,t){let n;return function r(o){return V(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):ae(o)?ue(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}const au={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(u){return e.enter("definition"),function(d){return Ja.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}(u)};function i(u){return o=Rt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),u===58?(e.enter("definitionMarker"),e.consume(u),e.exit("definitionMarker"),a):n(u)}function a(u){return Se(u)?An(e,A)(u):A(u)}function A(u){return $a(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(u)}function s(u){return e.attempt(Au,l,l)(u)}function l(u){return ae(u)?ue(e,c,"whitespace")(u):c(u)}function c(u){return u===null||V(u)?(e.exit("definition"),r.parser.defined.push(o),t(u)):n(u)}}},Au={partial:!0,tokenize:function(e,t,n){return function(a){return Se(a)?An(e,r)(a):n(a)};function r(a){return Za(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return ae(a)?ue(e,i,"whitespace")(a):i(a)}function i(a){return a===null||V(a)?t(a):n(a)}}},su={name:"hardBreakEscape",tokenize:function(e,t,n){return function(o){return e.enter("hardBreakEscape"),e.consume(o),r};function r(o){return V(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}},lu={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"},Ze(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(s){return e.enter("atxHeading"),function(l){return e.enter("atxHeadingSequence"),o(l)}(s)};function o(s){return s===35&&r++<6?(e.consume(s),o):s===null||Se(s)?(e.exit("atxHeadingSequence"),i(s)):n(s)}function i(s){return s===35?(e.enter("atxHeadingSequence"),a(s)):s===null||V(s)?(e.exit("atxHeading"),t(s)):ae(s)?ue(e,i,"whitespace")(s):(e.enter("atxHeadingText"),A(s))}function a(s){return s===35?(e.consume(s),a):(e.exit("atxHeadingSequence"),i(s))}function A(s){return s===null||s===35||Se(s)?(e.exit("atxHeadingText"),i(s)):(e.consume(s),A)}}},cu=["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"],eA=["pre","script","style","textarea"],uu={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,a,A,s;return function(b){return function(F){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(F),l}(b)};function l(b){return b===33?(e.consume(b),c):b===47?(e.consume(b),i=!0,p):b===63?(e.consume(b),o=3,r.interrupt?t:H):et(b)?(e.consume(b),a=String.fromCharCode(b),f):n(b)}function c(b){return b===45?(e.consume(b),o=2,u):b===91?(e.consume(b),o=5,A=0,d):et(b)?(e.consume(b),o=4,r.interrupt?t:H):n(b)}function u(b){return b===45?(e.consume(b),r.interrupt?t:H):n(b)}function d(b){return b==="CDATA[".charCodeAt(A++)?(e.consume(b),A===6?r.interrupt?t:k:d):n(b)}function p(b){return et(b)?(e.consume(b),a=String.fromCharCode(b),f):n(b)}function f(b){if(b===null||b===47||b===62||Se(b)){const F=b===47,K=a.toLowerCase();return F||i||!eA.includes(K)?cu.includes(a.toLowerCase())?(o=6,F?(e.consume(b),y):r.interrupt?t(b):k(b)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(b):i?h(b):w(b)):(o=1,r.interrupt?t(b):k(b))}return b===45||Oe(b)?(e.consume(b),a+=String.fromCharCode(b),f):n(b)}function y(b){return b===62?(e.consume(b),r.interrupt?t:k):n(b)}function h(b){return ae(b)?(e.consume(b),h):I(b)}function w(b){return b===47?(e.consume(b),I):b===58||b===95||et(b)?(e.consume(b),v):ae(b)?(e.consume(b),w):I(b)}function v(b){return b===45||b===46||b===58||b===95||Oe(b)?(e.consume(b),v):g(b)}function g(b){return b===61?(e.consume(b),x):ae(b)?(e.consume(b),g):w(b)}function x(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(e.consume(b),s=b,C):ae(b)?(e.consume(b),x):E(b)}function C(b){return b===s?(e.consume(b),s=null,_):b===null||V(b)?n(b):(e.consume(b),C)}function E(b){return b===null||b===34||b===39||b===47||b===60||b===61||b===62||b===96||Se(b)?g(b):(e.consume(b),E)}function _(b){return b===47||b===62||ae(b)?w(b):n(b)}function I(b){return b===62?(e.consume(b),D):n(b)}function D(b){return b===null||V(b)?k(b):ae(b)?(e.consume(b),D):n(b)}function k(b){return b===45&&o===2?(e.consume(b),N):b===60&&o===1?(e.consume(b),Q):b===62&&o===4?(e.consume(b),m):b===63&&o===3?(e.consume(b),H):b===93&&o===5?(e.consume(b),O):!V(b)||o!==6&&o!==7?b===null||V(b)?(e.exit("htmlFlowData"),S(b)):(e.consume(b),k):(e.exit("htmlFlowData"),e.check(du,U,S)(b))}function S(b){return e.check(pu,B,U)(b)}function B(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),L}function L(b){return b===null||V(b)?S(b):(e.enter("htmlFlowData"),k(b))}function N(b){return b===45?(e.consume(b),H):k(b)}function Q(b){return b===47?(e.consume(b),a="",W):k(b)}function W(b){if(b===62){const F=a.toLowerCase();return eA.includes(F)?(e.consume(b),m):k(b)}return et(b)&&a.length<8?(e.consume(b),a+=String.fromCharCode(b),W):k(b)}function O(b){return b===93?(e.consume(b),H):k(b)}function H(b){return b===62?(e.consume(b),m):b===45&&o===2?(e.consume(b),H):k(b)}function m(b){return b===null||V(b)?(e.exit("htmlFlowData"),U(b)):(e.consume(b),m)}function U(b){return e.exit("htmlFlow"),t(b)}}},du={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Mn,t,n)}}},pu={partial:!0,tokenize:function(e,t,n){const r=this;return function(i){return V(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)}}},fu={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,a;return function(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),A};function A(m){return m===33?(e.consume(m),s):m===47?(e.consume(m),x):m===63?(e.consume(m),v):et(m)?(e.consume(m),_):n(m)}function s(m){return m===45?(e.consume(m),l):m===91?(e.consume(m),i=0,p):et(m)?(e.consume(m),w):n(m)}function l(m){return m===45?(e.consume(m),d):n(m)}function c(m){return m===null?n(m):m===45?(e.consume(m),u):V(m)?(a=c,W(m)):(e.consume(m),c)}function u(m){return m===45?(e.consume(m),d):c(m)}function d(m){return m===62?Q(m):m===45?u(m):c(m)}function p(m){return m==="CDATA[".charCodeAt(i++)?(e.consume(m),i===6?f:p):n(m)}function f(m){return m===null?n(m):m===93?(e.consume(m),y):V(m)?(a=f,W(m)):(e.consume(m),f)}function y(m){return m===93?(e.consume(m),h):f(m)}function h(m){return m===62?Q(m):m===93?(e.consume(m),h):f(m)}function w(m){return m===null||m===62?Q(m):V(m)?(a=w,W(m)):(e.consume(m),w)}function v(m){return m===null?n(m):m===63?(e.consume(m),g):V(m)?(a=v,W(m)):(e.consume(m),v)}function g(m){return m===62?Q(m):v(m)}function x(m){return et(m)?(e.consume(m),C):n(m)}function C(m){return m===45||Oe(m)?(e.consume(m),C):E(m)}function E(m){return V(m)?(a=E,W(m)):ae(m)?(e.consume(m),E):Q(m)}function _(m){return m===45||Oe(m)?(e.consume(m),_):m===47||m===62||Se(m)?I(m):n(m)}function I(m){return m===47?(e.consume(m),Q):m===58||m===95||et(m)?(e.consume(m),D):V(m)?(a=I,W(m)):ae(m)?(e.consume(m),I):Q(m)}function D(m){return m===45||m===46||m===58||m===95||Oe(m)?(e.consume(m),D):k(m)}function k(m){return m===61?(e.consume(m),S):V(m)?(a=k,W(m)):ae(m)?(e.consume(m),k):I(m)}function S(m){return m===null||m===60||m===61||m===62||m===96?n(m):m===34||m===39?(e.consume(m),o=m,B):V(m)?(a=S,W(m)):ae(m)?(e.consume(m),S):(e.consume(m),L)}function B(m){return m===o?(e.consume(m),o=void 0,N):m===null?n(m):V(m)?(a=B,W(m)):(e.consume(m),B)}function L(m){return m===null||m===34||m===39||m===60||m===61||m===96?n(m):m===47||m===62||Se(m)?I(m):(e.consume(m),L)}function N(m){return m===47||m===62||Se(m)?I(m):n(m)}function Q(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),t):n(m)}function W(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),O}function O(m){return ae(m)?ue(e,H,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):H(m)}function H(m){return e.enter("htmlTextData"),a(m)}}},$r={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&&Ze(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,o,i,a=e.length,A=0;for(;a--;)if(n=e[a][1],r){if(n.type==="link"||n.type==="labelLink"&&n._inactive)break;e[a][0]==="enter"&&n.type==="labelLink"&&(n._inactive=!0)}else if(o){if(e[a][0]==="enter"&&(n.type==="labelImage"||n.type==="labelLink")&&!n._balanced&&(r=a,n.type!=="labelLink")){A=2;break}}else n.type==="labelEnd"&&(o=a);const s={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",s,t],["enter",l,t]],i=Fe(i,e.slice(r+1,r+A+3)),i=Fe(i,[["enter",c,t]]),i=Fe(i,Xr(t.parser.constructs.insideSpan.null,e.slice(r+A+4,o-3),t)),i=Fe(i,[["exit",c,t],e[o-2],e[o-1],["exit",l,t]]),i=Fe(i,e.slice(o+1)),i=Fe(i,[["exit",s,t]]),Ze(e,r,e.length,i),e},tokenize:function(e,t,n){const r=this;let o,i,a=r.events.length;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){o=r.events[a][1];break}return function(u){return o?o._inactive?c(u):(i=r.parser.defined.includes(Rt(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(gu,l,i?s:c)(u):i?l(u):c(u)}function s(u){return e.attempt(mu,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 Se(c)?An(e,o)(c):o(c)}function o(c){return c===41?l(c):$a(e,i,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function i(c){return Se(c)?An(e,A)(c):l(c)}function a(c){return n(c)}function A(c){return c===34||c===39||c===40?Za(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):l(c)}function s(c){return Se(c)?An(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)}}},gu={tokenize:function(e,t,n){const r=this;return function(a){return Ja.call(r,e,o,i,"reference","referenceMarker","referenceString")(a)};function o(a){return r.parser.defined.includes(Rt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function i(a){return n(a)}}},mu={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)}}},vu={name:"labelStartImage",resolveAll:$r.resolveAll,tokenize:function(e,t,n){const r=this;return function(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o};function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),i):n(a)}function i(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}},yu={name:"labelStartLink",resolveAll:$r.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)}}},Jr={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ue(e,t,"linePrefix")}}},On={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(A){return e.enter("thematicBreak"),function(s){return r=s,i(s)}(A)};function i(A){return A===r?(e.enter("thematicBreakSequence"),a(A)):o>=3&&(A===null||V(A))?(e.exit("thematicBreak"),t(A)):n(A)}function a(A){return A===r?(e.consume(A),o++,a):(e.exit("thematicBreakSequence"),ae(A)?ue(e,i,"whitespace")(A):i(A))}}},Ie={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Mn,function(i){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ue(e,t,"listItemIndent",r.containerState.size+1)(i)},function(i){return r.containerState.furtherBlankLines||!ae(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,ue(e,e.attempt(Ie,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,a=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:Yr(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(On,n,s)(d):s(d);if(!r.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),A(d)}return n(d)};function A(d){return Yr(d)&&++a<10?(e.consume(d),A):(!r.interrupt||a<2)&&(r.containerState.marker?d===r.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),s(d)):n(d)}function s(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,e.check(Mn,r.interrupt?n:l,e.attempt(bu,u,c))}function l(d){return r.containerState.initialBlankLine=!0,i++,u(d)}function c(d){return ae(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)}}},bu={partial:!0,tokenize:function(e,t,n){const r=this;return ue(e,function(o){const i=r.events[r.events.length-1];return!ae(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 ue(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)}},tA={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 a={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",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=a,e.push(["exit",a,t]),e},tokenize:function(e,t,n){const r=this;let o;return function(A){let s,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"){s=r.events[l][1].type==="paragraph";break}return r.parser.lazy[r.now().line]||!r.interrupt&&!s?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"),ae(A)?ue(e,a,"lineSuffix")(A):a(A))}function a(A){return A===null||V(A)?(e.exit("setextHeadingLine"),t(A)):n(A)}}},xu={tokenize:function(e){const t=this,n=e.attempt(Mn,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,ue(e,e.attempt(this.parser.constructs.flow,r,e.attempt(ou,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)}}},Eu={resolveAll:rA()},Pu=nA("string"),ku=nA("text");function nA(e){return{resolveAll:rA(e==="text"?Cu:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,a);return i;function i(l){return s(l)?o(l):a(l)}function a(l){if(l!==null)return t.enter("data"),t.consume(l),A;t.consume(l)}function A(l){return s(l)?(t.exit("data"),o(l)):(t.consume(l),A)}function s(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 rA(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 Cu(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,a=o.length,A=-1,s=0;for(;a--;){const l=o[a];if(typeof l=="string"){for(A=l.length;l.charCodeAt(A-1)===32;)s++,A--;if(A)break;A=-1}else if(l===-2)i=!0,s++;else if(l!==-1){a++;break}}if(s){const l={type:n===e.length||i||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?A:r.start._bufferIndex+A,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},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:Ie,43:Ie,45:Ie,48:Ie,49:Ie,50:Ie,51:Ie,52:Ie,53:Ie,54:Ie,55:Ie,56:Ie,57:Ie,62:Ga},Du={91:au},Bu={[-2]:Kr,[-1]:Kr,32:Kr},Su={35:lu,42:On,45:[tA,On],60:uu,61:tA,95:On,96:Va,126:Va},Iu={38:Ya,92:qa},Tu={[-5]:Jr,[-4]:Jr,[-3]:Jr,33:vu,38:Ya,42:Vr,60:[Zc,fu],91:yu,92:[su,qa],93:$r,95:Vr,96:tu},Qu={null:[Vr,Eu]},Mu=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:Du,disable:{null:[]},document:_u,flow:Su,flowInitial:Bu,insideSpan:Qu,string:Iu,text:Tu},Symbol.toStringTag,{value:"Module"}));function Ou(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 a=[],A=[];const s={attempt:y(function(v,g){h(v,g.from)}),check:y(f),consume:function(v){V(v)?(r.line++,r.column=1,r.offset+=v===-3?2:1,w()):v!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=v},enter:function(v,g){const x=g||{};return x.type=v,x.start=d(),l.events.push(["enter",x,l]),A.push(x),x},exit:function(v){const g=A.pop();return g.end=d(),l.events.push(["exit",g,l]),g},interrupt:y(f,{interrupt:!0})},l={code:null,containerState:{},defineSkip:function(v){o[v.line]=v.column,w()},events:[],now:d,parser:e,previous:null,sliceSerialize:function(v,g){return function(x,C){let E=-1;const _=[];let I;for(;++E<x.length;){const D=x[E];let k;if(typeof D=="string")k=D;else switch(D){case-5:k="\r";break;case-4:k=`
|
|
22
22
|
`;break;case-3:k=`\r
|
|
23
|
-
`;break;case-2:k=C?" ":" ";break;case-1:if(!C&&I)continue;k=" ";break;default:k=String.fromCharCode(D)}I=D===-2,_.push(k)}return _.join("")}(u(v),g)},sliceStream:u,write:function(v){return a=Fe(a,v),function(){let g;for(;r._index<a.length;){const x=a[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)}}(),a[a.length-1]!==null?[]:(h(t,0),l.events=Vr(i,l.events,l),l.events)}};let c=t.tokenize.call(l,s);return t.resolveAll&&i.push(t),l;function u(v){return function(g,x){const C=x.start._index,E=x.start._bufferIndex,_=x.end._index,I=x.end._bufferIndex;let D;if(C===_)D=[g[C].slice(E,I)];else{if(D=g.slice(C,_),E>-1){const k=D[0];typeof k=="string"?D[0]=k.slice(E):D.shift()}I>0&&D.push(g[_].slice(0,I))}return D}(a,v)}function d(){const{_bufferIndex:v,_index:g,line:x,column:C,offset:E}=r;return{_bufferIndex:v,_index:g,line:x,column:C,offset:E}}function p(v){c=c(v)}function f(v,g){g.restore()}function y(v,g){return function(x,C,E){let _,I,D,k;return Array.isArray(x)?S(x):"tokenize"in x?S([x]):function(Q){return W;function W(O){const H=O!==null&&Q[O],m=O!==null&&Q.null;return S([...Array.isArray(H)?H:H?[H]:[],...Array.isArray(m)?m:m?[m]:[]])(O)}}(x);function S(Q){return _=Q,I=0,Q.length===0?E:B(Q[I])}function B(Q){return function(W){return k=function(){const O=d(),H=l.previous,m=l.currentConstruct,U=l.events.length,b=Array.from(A);return{from:U,restore:F};function F(){r=O,l.previous=H,l.currentConstruct=m,l.events.length=U,A=b,w()}}(),D=Q,Q.partial||(l.currentConstruct=Q),Q.name&&l.parser.constructs.disable.null.includes(Q.name)?N():Q.tokenize.call(g?Object.assign(Object.create(l),g):l,s,L,N)(W)}}function L(Q){return v(D,k),C}function N(Q){return k.restore(),++I<_.length?B(_[I]):E}}}function h(v,g){v.resolveAll&&!i.includes(v)&&i.push(v),v.resolve&&Ze(l.events,g,l.events.length-g,v.resolve(l.events.slice(g),l)),v.resolveTo&&(l.events=v.resolveTo(l.events,l))}function w(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const oA=/[\0\t\n\r]/g,Nu=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Lu(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),o=r===120||r===88;return Fa(n.slice(o?2:1),o?16:10)}return qr(n)||e}const iA={}.hasOwnProperty;function Ru(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:s(jt),autolinkProtocol:B,autolinkEmail:B,atxHeading:s(kt),blockQuote:s(je),characterEscape:B,characterReference:B,codeFenced:s(Ne),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:s(Ne,l),codeText:s(Le,l),codeTextData:B,data:B,codeFlowValue:B,definition:s(nt),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:s(dn),hardBreakEscape:s(pn),hardBreakTrailing:s(pn),htmlFlow:s(qn,l),htmlFlowData:B,htmlText:s(qn,l),htmlTextData:B,image:s(zt),label:l,link:s(jt),listItem:s(Ct),listItemValue:y,listOrdered:s(Yn,f),listUnordered:s(Yn),paragraph:s(fn),reference:fe,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:s(kt),strong:s(Xn),thematicBreak:s(op)},exit:{atxHeading:u(),atxHeadingSequence:I,autolink:u(),autolinkEmail:ze,autolinkProtocol:ft,blockQuote:u(),characterEscapeValue:L,characterReferenceMarkerHexadecimal:Be,characterReferenceMarkerNumeric:Be,characterReferenceValue:me,characterReference:Ce,codeFenced:u(g),codeFencedFence:v,codeFencedFenceInfo:h,codeFencedFenceMeta:w,codeFlowValue:L,codeIndented:u(x),codeText:u(H),codeTextData:L,data:L,definition:u(),definitionDestinationString:_,definitionLabelString:C,definitionTitleString:E,emphasis:u(),hardBreakEscape:u(Q),hardBreakTrailing:u(Q),htmlFlow:u(W),htmlFlowData:L,htmlText:u(O),htmlTextData:L,image:u(U),label:F,labelText:b,lineEnding:N,link:u(m),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:de,resourceDestinationString:K,resourceTitleString:z,resource:ne,setextHeading:u(S),setextHeadingLineSequence:k,setextHeadingText:D,strong:u(),thematicBreak:u()}};aA(o,(r||{}).mdastExtensions||[]);const i={};return a;function a(T){let Y={type:"root",children:[]};const $={stack:[Y],tokenStack:[],config:o,enter:c,exit:d,buffer:l,resume:p,data:i},se=[];let le=-1;for(;++le<T.length;)(T[le][1].type==="listOrdered"||T[le][1].type==="listUnordered")&&(T[le][0]==="enter"?se.push(le):le=A(T,se.pop(),le));for(le=-1;++le<T.length;){const qe=o[T[le][0]];iA.call(qe,T[le][1].type)&&qe[T[le][1].type].call(Object.assign({sliceSerialize:T[le][2].sliceSerialize},$),T[le][1])}if($.tokenStack.length>0){const qe=$.tokenStack[$.tokenStack.length-1];(qe[1]||AA).call($,void 0,qe[0])}for(Y.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})},le=-1;++le<o.transforms.length;)Y=o.transforms[le](Y)||Y;return Y}function A(T,Y,$){let se,le,qe,hn,ht=Y-1,gn=-1,FA=!1;for(;++ht<=$;){const Re=T[ht];switch(Re[1].type){case"listUnordered":case"listOrdered":case"blockQuote":Re[0]==="enter"?gn++:gn--,hn=void 0;break;case"lineEndingBlank":Re[0]==="enter"&&(se&&!hn&&!gn&&!qe&&(qe=ht),hn=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:hn=void 0}if(!gn&&Re[0]==="enter"&&Re[1].type==="listItemPrefix"||gn===-1&&Re[0]==="exit"&&(Re[1].type==="listUnordered"||Re[1].type==="listOrdered")){if(se){let Wt=ht;for(le=void 0;Wt--;){const it=T[Wt];if(it[1].type==="lineEnding"||it[1].type==="lineEndingBlank"){if(it[0]==="exit")continue;le&&(T[le][1].type="lineEndingBlank",FA=!0),it[1].type="lineEnding",le=Wt}else if(it[1].type!=="linePrefix"&&it[1].type!=="blockQuotePrefix"&&it[1].type!=="blockQuotePrefixWhitespace"&&it[1].type!=="blockQuoteMarker"&&it[1].type!=="listItemIndent")break}qe&&(!le||qe<le)&&(se._spread=!0),se.end=Object.assign({},le?T[le][1].start:Re[1].end),T.splice(le||ht,0,["exit",se,Re[2]]),ht++,$++}if(Re[1].type==="listItemPrefix"){const Wt={type:"listItem",_spread:!1,start:Object.assign({},Re[1].start),end:void 0};se=Wt,T.splice(ht,0,["enter",Wt,Re[2]]),ht++,$++,qe=void 0,hn=!0}}}return T[Y][1]._spread=FA,$}function s(T,Y){return $;function $(se){c.call(this,T(se),se),Y&&Y.call(this,se)}}function l(){this.stack.push({type:"fragment",children:[]})}function c(T,Y,$){this.stack[this.stack.length-1].children.push(T),this.stack.push(T),this.tokenStack.push([Y,$||void 0]),T.position={start:dt(Y.start),end:void 0}}function u(T){return Y;function Y($){T&&T.call(this,$),d.call(this,$)}}function d(T,Y){const $=this.stack.pop(),se=this.tokenStack.pop();if(!se)throw new Error("Cannot close `"+T.type+"` ("+rn({start:T.start,end:T.end})+"): it’s not open");se[0].type!==T.type&&(Y?Y.call(this,T,se[0]):(se[1]||AA).call(this,T,se[0])),$.position.end=dt(T.end)}function p(){return function(T){return La(T,typeof Qn.includeImageAlt!="boolean"||Qn.includeImageAlt,typeof Qn.includeHtml!="boolean"||Qn.includeHtml)}(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function y(T){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(T),10),this.data.expectingFirstListItemValue=void 0)}function h(){const T=this.resume();this.stack[this.stack.length-1].lang=T}function w(){const T=this.resume();this.stack[this.stack.length-1].meta=T}function v(){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 C(T){const Y=this.resume(),$=this.stack[this.stack.length-1];$.label=Y,$.identifier=Rt(this.sliceSerialize(T)).toLowerCase()}function E(){const T=this.resume();this.stack[this.stack.length-1].title=T}function _(){const T=this.resume();this.stack[this.stack.length-1].url=T}function I(T){const Y=this.stack[this.stack.length-1];if(!Y.depth){const $=this.sliceSerialize(T).length;Y.depth=$}}function D(){this.data.setextHeadingSlurpLineEnding=!0}function k(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 Y=this.stack[this.stack.length-1].children;let $=Y[Y.length-1];(!$||$.type!=="text")&&($=rp(),$.position={start:dt(T.start),end:void 0},Y.push($)),this.stack.push($)}function L(T){const Y=this.stack.pop();Y.value+=this.sliceSerialize(T),Y.position.end=dt(T.end)}function N(T){const Y=this.stack[this.stack.length-1];if(this.data.atHardBreak)return Y.children[Y.children.length-1].position.end=dt(T.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&o.canContainEols.includes(Y.type)&&(B.call(this,T),L.call(this,T))}function Q(){this.data.atHardBreak=!0}function W(){const T=this.resume();this.stack[this.stack.length-1].value=T}function O(){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 m(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const Y=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=Y,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function U(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const Y=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=Y,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function b(T){const Y=this.sliceSerialize(T),$=this.stack[this.stack.length-2];$.label=function(se){return se.replace(Nu,Lu)}(Y),$.identifier=Rt(Y).toLowerCase()}function F(){const T=this.stack[this.stack.length-1],Y=this.resume(),$=this.stack[this.stack.length-1];if(this.data.inReference=!0,$.type==="link"){const se=T.children;$.children=se}else $.alt=Y}function K(){const T=this.resume();this.stack[this.stack.length-1].url=T}function z(){const T=this.resume();this.stack[this.stack.length-1].title=T}function ne(){this.data.inReference=void 0}function fe(){this.data.referenceType="collapsed"}function de(T){const Y=this.resume(),$=this.stack[this.stack.length-1];$.label=Y,$.identifier=Rt(this.sliceSerialize(T)).toLowerCase(),this.data.referenceType="full"}function Be(T){this.data.characterReferenceType=T.type}function me(T){const Y=this.sliceSerialize(T),$=this.data.characterReferenceType;let se;$?(se=Fa(Y,$==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):se=qr(Y),this.stack[this.stack.length-1].value+=se}function Ce(T){this.stack.pop().position.end=dt(T.end)}function ft(T){L.call(this,T),this.stack[this.stack.length-1].url=this.sliceSerialize(T)}function ze(T){L.call(this,T),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(T)}function je(){return{type:"blockquote",children:[]}}function Ne(){return{type:"code",lang:null,meta:null,value:""}}function Le(){return{type:"inlineCode",value:""}}function nt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function dn(){return{type:"emphasis",children:[]}}function kt(){return{type:"heading",depth:0,children:[]}}function pn(){return{type:"break"}}function qn(){return{type:"html",value:""}}function zt(){return{type:"image",title:null,url:"",alt:null}}function jt(){return{type:"link",title:null,url:"",children:[]}}function Yn(T){return{type:"list",ordered:T.type==="listOrdered",start:null,spread:T._spread,children:[]}}function Ct(T){return{type:"listItem",spread:T._spread,checked:null,children:[]}}function fn(){return{type:"paragraph",children:[]}}function Xn(){return{type:"strong",children:[]}}function rp(){return{type:"text",value:""}}function op(){return{type:"thematicBreak"}}}(n)(function(r){for(;!Ka(r););return r}(function(r){const o={constructs:jc([Mu,...(r||{}).extensions||[]]),content:i($c),defined:[],document:i(Jc),flow:i(xu),lazy:{},string:i(Pu),text:i(ku)};return o;function i(a){return function(A){return Ou(o,a,A)}}}(n).document().write(function(){let r,o=1,i="",a=!0;return function(A,s,l){const c=[];let u,d,p,f,y;for(A=i+(typeof A=="string"?A.toString():new TextDecoder(s||void 0).decode(A)),p=0,i="",a&&(A.charCodeAt(0)===65279&&p++,a=void 0);p<A.length;){if(oA.lastIndex=p,u=oA.exec(A),f=u&&u.index!==void 0?u.index:A.length,y=A.charCodeAt(f),!u){i=A.slice(p);break}if(y===10&&p===f&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),p<f&&(c.push(A.slice(p,f)),o+=f-p),y){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=f+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 aA(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?aA(e,r):Hu(e,r)}}function Hu(e,t){let n;for(n in t)if(iA.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 AA(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+rn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+rn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+rn({start:t.start,end:t.end})+") is still open")}function Uu(e){const t=this;t.parser=function(n){return Ru(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function sA(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 a=o[o.length-1];return a&&a.type==="text"?a.value+=r:o.push({type:"text",value:r}),o}function lA(e){return e.spread??e.children.length>1}function Fu(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(cA(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(cA(t.slice(o),o>0,!1)),i.join("")}function cA(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 zu={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:`
|
|
23
|
+
`;break;case-2:k=C?" ":" ";break;case-1:if(!C&&I)continue;k=" ";break;default:k=String.fromCharCode(D)}I=D===-2,_.push(k)}return _.join("")}(u(v),g)},sliceStream:u,write:function(v){return a=Fe(a,v),function(){let g;for(;r._index<a.length;){const x=a[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)}}(),a[a.length-1]!==null?[]:(h(t,0),l.events=Xr(i,l.events,l),l.events)}};let c=t.tokenize.call(l,s);return t.resolveAll&&i.push(t),l;function u(v){return function(g,x){const C=x.start._index,E=x.start._bufferIndex,_=x.end._index,I=x.end._bufferIndex;let D;if(C===_)D=[g[C].slice(E,I)];else{if(D=g.slice(C,_),E>-1){const k=D[0];typeof k=="string"?D[0]=k.slice(E):D.shift()}I>0&&D.push(g[_].slice(0,I))}return D}(a,v)}function d(){const{_bufferIndex:v,_index:g,line:x,column:C,offset:E}=r;return{_bufferIndex:v,_index:g,line:x,column:C,offset:E}}function p(v){c=c(v)}function f(v,g){g.restore()}function y(v,g){return function(x,C,E){let _,I,D,k;return Array.isArray(x)?S(x):"tokenize"in x?S([x]):function(Q){return W;function W(O){const H=O!==null&&Q[O],m=O!==null&&Q.null;return S([...Array.isArray(H)?H:H?[H]:[],...Array.isArray(m)?m:m?[m]:[]])(O)}}(x);function S(Q){return _=Q,I=0,Q.length===0?E:B(Q[I])}function B(Q){return function(W){return k=function(){const O=d(),H=l.previous,m=l.currentConstruct,U=l.events.length,b=Array.from(A);return{from:U,restore:F};function F(){r=O,l.previous=H,l.currentConstruct=m,l.events.length=U,A=b,w()}}(),D=Q,Q.partial||(l.currentConstruct=Q),Q.name&&l.parser.constructs.disable.null.includes(Q.name)?N():Q.tokenize.call(g?Object.assign(Object.create(l),g):l,s,L,N)(W)}}function L(Q){return v(D,k),C}function N(Q){return k.restore(),++I<_.length?B(_[I]):E}}}function h(v,g){v.resolveAll&&!i.includes(v)&&i.push(v),v.resolve&&Ze(l.events,g,l.events.length-g,v.resolve(l.events.slice(g),l)),v.resolveTo&&(l.events=v.resolveTo(l.events,l))}function w(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const oA=/[\0\t\n\r]/g,Nu=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Lu(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),o=r===120||r===88;return Fa(n.slice(o?2:1),o?16:10)}return Gr(n)||e}const iA={}.hasOwnProperty;function Ru(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:s(jt),autolinkProtocol:B,autolinkEmail:B,atxHeading:s(kt),blockQuote:s(je),characterEscape:B,characterReference:B,codeFenced:s(Ne),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:s(Ne,l),codeText:s(Le,l),codeTextData:B,data:B,codeFlowValue:B,definition:s(nt),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:s(dn),hardBreakEscape:s(pn),hardBreakTrailing:s(pn),htmlFlow:s(Gn,l),htmlFlowData:B,htmlText:s(Gn,l),htmlTextData:B,image:s(zt),label:l,link:s(jt),listItem:s(Ct),listItemValue:y,listOrdered:s(qn,f),listUnordered:s(qn),paragraph:s(fn),reference:fe,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:s(kt),strong:s(Yn),thematicBreak:s(op)},exit:{atxHeading:u(),atxHeadingSequence:I,autolink:u(),autolinkEmail:ze,autolinkProtocol:ft,blockQuote:u(),characterEscapeValue:L,characterReferenceMarkerHexadecimal:Be,characterReferenceMarkerNumeric:Be,characterReferenceValue:me,characterReference:Ce,codeFenced:u(g),codeFencedFence:v,codeFencedFenceInfo:h,codeFencedFenceMeta:w,codeFlowValue:L,codeIndented:u(x),codeText:u(H),codeTextData:L,data:L,definition:u(),definitionDestinationString:_,definitionLabelString:C,definitionTitleString:E,emphasis:u(),hardBreakEscape:u(Q),hardBreakTrailing:u(Q),htmlFlow:u(W),htmlFlowData:L,htmlText:u(O),htmlTextData:L,image:u(U),label:F,labelText:b,lineEnding:N,link:u(m),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:de,resourceDestinationString:K,resourceTitleString:z,resource:ne,setextHeading:u(S),setextHeadingLineSequence:k,setextHeadingText:D,strong:u(),thematicBreak:u()}};aA(o,(r||{}).mdastExtensions||[]);const i={};return a;function a(T){let Y={type:"root",children:[]};const $={stack:[Y],tokenStack:[],config:o,enter:c,exit:d,buffer:l,resume:p,data:i},se=[];let le=-1;for(;++le<T.length;)(T[le][1].type==="listOrdered"||T[le][1].type==="listUnordered")&&(T[le][0]==="enter"?se.push(le):le=A(T,se.pop(),le));for(le=-1;++le<T.length;){const qe=o[T[le][0]];iA.call(qe,T[le][1].type)&&qe[T[le][1].type].call(Object.assign({sliceSerialize:T[le][2].sliceSerialize},$),T[le][1])}if($.tokenStack.length>0){const qe=$.tokenStack[$.tokenStack.length-1];(qe[1]||AA).call($,void 0,qe[0])}for(Y.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})},le=-1;++le<o.transforms.length;)Y=o.transforms[le](Y)||Y;return Y}function A(T,Y,$){let se,le,qe,hn,ht=Y-1,gn=-1,FA=!1;for(;++ht<=$;){const Re=T[ht];switch(Re[1].type){case"listUnordered":case"listOrdered":case"blockQuote":Re[0]==="enter"?gn++:gn--,hn=void 0;break;case"lineEndingBlank":Re[0]==="enter"&&(se&&!hn&&!gn&&!qe&&(qe=ht),hn=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:hn=void 0}if(!gn&&Re[0]==="enter"&&Re[1].type==="listItemPrefix"||gn===-1&&Re[0]==="exit"&&(Re[1].type==="listUnordered"||Re[1].type==="listOrdered")){if(se){let Wt=ht;for(le=void 0;Wt--;){const it=T[Wt];if(it[1].type==="lineEnding"||it[1].type==="lineEndingBlank"){if(it[0]==="exit")continue;le&&(T[le][1].type="lineEndingBlank",FA=!0),it[1].type="lineEnding",le=Wt}else if(it[1].type!=="linePrefix"&&it[1].type!=="blockQuotePrefix"&&it[1].type!=="blockQuotePrefixWhitespace"&&it[1].type!=="blockQuoteMarker"&&it[1].type!=="listItemIndent")break}qe&&(!le||qe<le)&&(se._spread=!0),se.end=Object.assign({},le?T[le][1].start:Re[1].end),T.splice(le||ht,0,["exit",se,Re[2]]),ht++,$++}if(Re[1].type==="listItemPrefix"){const Wt={type:"listItem",_spread:!1,start:Object.assign({},Re[1].start),end:void 0};se=Wt,T.splice(ht,0,["enter",Wt,Re[2]]),ht++,$++,qe=void 0,hn=!0}}}return T[Y][1]._spread=FA,$}function s(T,Y){return $;function $(se){c.call(this,T(se),se),Y&&Y.call(this,se)}}function l(){this.stack.push({type:"fragment",children:[]})}function c(T,Y,$){this.stack[this.stack.length-1].children.push(T),this.stack.push(T),this.tokenStack.push([Y,$||void 0]),T.position={start:dt(Y.start),end:void 0}}function u(T){return Y;function Y($){T&&T.call(this,$),d.call(this,$)}}function d(T,Y){const $=this.stack.pop(),se=this.tokenStack.pop();if(!se)throw new Error("Cannot close `"+T.type+"` ("+rn({start:T.start,end:T.end})+"): it’s not open");se[0].type!==T.type&&(Y?Y.call(this,T,se[0]):(se[1]||AA).call(this,T,se[0])),$.position.end=dt(T.end)}function p(){return function(T){return La(T,typeof Qn.includeImageAlt!="boolean"||Qn.includeImageAlt,typeof Qn.includeHtml!="boolean"||Qn.includeHtml)}(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function y(T){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(T),10),this.data.expectingFirstListItemValue=void 0)}function h(){const T=this.resume();this.stack[this.stack.length-1].lang=T}function w(){const T=this.resume();this.stack[this.stack.length-1].meta=T}function v(){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 C(T){const Y=this.resume(),$=this.stack[this.stack.length-1];$.label=Y,$.identifier=Rt(this.sliceSerialize(T)).toLowerCase()}function E(){const T=this.resume();this.stack[this.stack.length-1].title=T}function _(){const T=this.resume();this.stack[this.stack.length-1].url=T}function I(T){const Y=this.stack[this.stack.length-1];if(!Y.depth){const $=this.sliceSerialize(T).length;Y.depth=$}}function D(){this.data.setextHeadingSlurpLineEnding=!0}function k(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 Y=this.stack[this.stack.length-1].children;let $=Y[Y.length-1];(!$||$.type!=="text")&&($=rp(),$.position={start:dt(T.start),end:void 0},Y.push($)),this.stack.push($)}function L(T){const Y=this.stack.pop();Y.value+=this.sliceSerialize(T),Y.position.end=dt(T.end)}function N(T){const Y=this.stack[this.stack.length-1];if(this.data.atHardBreak)return Y.children[Y.children.length-1].position.end=dt(T.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&o.canContainEols.includes(Y.type)&&(B.call(this,T),L.call(this,T))}function Q(){this.data.atHardBreak=!0}function W(){const T=this.resume();this.stack[this.stack.length-1].value=T}function O(){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 m(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const Y=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=Y,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function U(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const Y=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=Y,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function b(T){const Y=this.sliceSerialize(T),$=this.stack[this.stack.length-2];$.label=function(se){return se.replace(Nu,Lu)}(Y),$.identifier=Rt(Y).toLowerCase()}function F(){const T=this.stack[this.stack.length-1],Y=this.resume(),$=this.stack[this.stack.length-1];if(this.data.inReference=!0,$.type==="link"){const se=T.children;$.children=se}else $.alt=Y}function K(){const T=this.resume();this.stack[this.stack.length-1].url=T}function z(){const T=this.resume();this.stack[this.stack.length-1].title=T}function ne(){this.data.inReference=void 0}function fe(){this.data.referenceType="collapsed"}function de(T){const Y=this.resume(),$=this.stack[this.stack.length-1];$.label=Y,$.identifier=Rt(this.sliceSerialize(T)).toLowerCase(),this.data.referenceType="full"}function Be(T){this.data.characterReferenceType=T.type}function me(T){const Y=this.sliceSerialize(T),$=this.data.characterReferenceType;let se;$?(se=Fa(Y,$==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):se=Gr(Y),this.stack[this.stack.length-1].value+=se}function Ce(T){this.stack.pop().position.end=dt(T.end)}function ft(T){L.call(this,T),this.stack[this.stack.length-1].url=this.sliceSerialize(T)}function ze(T){L.call(this,T),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(T)}function je(){return{type:"blockquote",children:[]}}function Ne(){return{type:"code",lang:null,meta:null,value:""}}function Le(){return{type:"inlineCode",value:""}}function nt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function dn(){return{type:"emphasis",children:[]}}function kt(){return{type:"heading",depth:0,children:[]}}function pn(){return{type:"break"}}function Gn(){return{type:"html",value:""}}function zt(){return{type:"image",title:null,url:"",alt:null}}function jt(){return{type:"link",title:null,url:"",children:[]}}function qn(T){return{type:"list",ordered:T.type==="listOrdered",start:null,spread:T._spread,children:[]}}function Ct(T){return{type:"listItem",spread:T._spread,checked:null,children:[]}}function fn(){return{type:"paragraph",children:[]}}function Yn(){return{type:"strong",children:[]}}function rp(){return{type:"text",value:""}}function op(){return{type:"thematicBreak"}}}(n)(function(r){for(;!Ka(r););return r}(function(r){const o={constructs:jc([Mu,...(r||{}).extensions||[]]),content:i($c),defined:[],document:i(Jc),flow:i(xu),lazy:{},string:i(Pu),text:i(ku)};return o;function i(a){return function(A){return Ou(o,a,A)}}}(n).document().write(function(){let r,o=1,i="",a=!0;return function(A,s,l){const c=[];let u,d,p,f,y;for(A=i+(typeof A=="string"?A.toString():new TextDecoder(s||void 0).decode(A)),p=0,i="",a&&(A.charCodeAt(0)===65279&&p++,a=void 0);p<A.length;){if(oA.lastIndex=p,u=oA.exec(A),f=u&&u.index!==void 0?u.index:A.length,y=A.charCodeAt(f),!u){i=A.slice(p);break}if(y===10&&p===f&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),p<f&&(c.push(A.slice(p,f)),o+=f-p),y){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=f+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 aA(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?aA(e,r):Hu(e,r)}}function Hu(e,t){let n;for(n in t)if(iA.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 AA(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+rn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+rn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+rn({start:t.start,end:t.end})+") is still open")}function Uu(e){const t=this;t.parser=function(n){return Ru(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function sA(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 a=o[o.length-1];return a&&a.type==="text"?a.value+=r:o.push({type:"text",value:r}),o}function lA(e){return e.spread??e.children.length>1}function Fu(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(cA(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(cA(t.slice(o),o>0,!1)),i.join("")}function cA(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 zu={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
24
|
`}]},code:function(e,t){const n=t.value?t.value+`
|
|
25
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=Ht(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let a,A=e.footnoteCounts.get(r);A===void 0?(A=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=i+1,A+=1,e.footnoteCounts.set(r,A);const s={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(a)}]};e.patch(t,s);const l={type:"element",tagName:"sup",properties:{},children:[s]};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 sA(e,t);const o={src:Ht(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:Ht(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 sA(e,t);const o={href:Ht(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:Ht(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=lA(d[p])}return u}(n):lA(t),i={},a=[];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")&&a.push({type:"text",value:`
|
|
26
26
|
`}),c.type!=="element"||c.tagName!=="p"||o?a.push(c):a.push(...c.children)}const s=r[r.length-1];s&&(o||s.type!=="element"||s.tagName!=="p")&&a.push({type:"text",value:`
|
|
27
|
-
`});const l={type:"element",tagName:"li",properties:i,children:a};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 a=r[o];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.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 a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],a),o.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},A=
|
|
27
|
+
`});const l={type:"element",tagName:"li",properties:i,children:a};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 a=r[o];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.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 a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],a),o.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},A=Hr(t.children[1]),s=Ba(t.children[t.children.length-1]);A&&s&&(a.position={start:A,end:s}),o.push(a)}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,a=i?i.length:t.children.length;let A=-1;const s=[];for(;++A<a;){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)),s.push(p)}const l={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,l),e.applyData(t,l)},text:function(e,t){const n={type:"text",value:Fu(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:Nn,yaml:Nn,definition:Nn,footnoteDefinition:Nn};function Nn(){}const uA=typeof self=="object"?self:globalThis,dA=e=>((t,n)=>{const r=(i,a)=>(t.set(a,i),i),o=i=>{if(t.has(i))return t.get(i);const[a,A]=n[i];switch(a){case 0:case-1:return r(A,i);case 1:{const s=r([],i);for(const l of A)s.push(o(l));return s}case 2:{const s=r({},i);for(const[l,c]of A)s[o(l)]=o(c);return s}case 3:return r(new Date(A),i);case 4:{const{source:s,flags:l}=A;return r(new RegExp(s,l),i)}case 5:{const s=r(new Map,i);for(const[l,c]of A)s.set(o(l),o(c));return s}case 6:{const s=r(new Set,i);for(const l of A)s.add(o(l));return s}case 7:{const{name:s,message:l}=A;return r(new uA[s](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:s}=new Uint8Array(A);return r(new DataView(s),A)}}return r(new uA[a](A),i)};return o})(new Map,e)(0),Ut="",{toString:ju}={},{keys:Wu}=Object,sn=e=>{const t=typeof e;if(t!=="object"||!e)return[0,t];const n=ju.call(e).slice(8,-1);switch(n){case"Array":return[1,Ut];case"Object":return[2,Ut];case"Date":return[3,Ut];case"RegExp":return[4,Ut];case"Map":return[5,Ut];case"Set":return[6,Ut];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},Ln=([e,t])=>e===0&&(t==="function"||t==="symbol"),pA=(e,{json:t,lossy:n}={})=>{const r=[];return((o,i,a,A)=>{const s=(c,u)=>{const d=A.push(c)-1;return a.set(u,d),d},l=c=>{if(a.has(c))return a.get(c);let[u,d]=sn(c);switch(u){case 0:{let f=c;switch(d){case"bigint":u=8,f=c.toString();break;case"function":case"symbol":if(o)throw new TypeError("unable to serialize "+d);f=null;break;case"undefined":return s([-1],c)}return s([u,f],c)}case 1:{if(d){let h=c;return d==="DataView"?h=new Uint8Array(c.buffer):d==="ArrayBuffer"&&(h=new Uint8Array(c)),s([d,[...h]],c)}const f=[],y=s([u,f],c);for(const h of c)f.push(l(h));return y}case 2:{if(d)switch(d){case"BigInt":return s([d,c.toString()],c);case"Boolean":case"Number":case"String":return s([d,c.valueOf()],c)}if(i&&"toJSON"in c)return l(c.toJSON());const f=[],y=s([u,f],c);for(const h of Wu(c))(o||!Ln(sn(c[h])))&&f.push([l(h),l(c[h])]);return y}case 3:return s([u,c.toISOString()],c);case 4:{const{source:f,flags:y}=c;return s([u,{source:f,flags:y}],c)}case 5:{const f=[],y=s([u,f],c);for(const[h,w]of c)(o||!Ln(sn(h))&&!Ln(sn(w)))&&f.push([l(h),l(w)]);return y}case 6:{const f=[],y=s([u,f],c);for(const h of c)(o||!Ln(sn(h)))&&f.push(l(h));return y}}const{message:p}=c;return s([u,{name:d,message:p}],c)};return l})(!(t||n),!!t,new Map,r)(e),r},Rn=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?dA(pA(e,t)):structuredClone(e):(e,t)=>dA(pA(e,t));function Gu(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 qu(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const fA=function(e){if(e==null)return Yu;if(typeof e=="function")return Hn(e);if(typeof e=="object")return Array.isArray(e)?function(t){const n=[];let r=-1;for(;++r<t.length;)n[r]=fA(t[r]);return Hn(o);function o(...i){let a=-1;for(;++a<n.length;)if(n[a].apply(this,i))return!0;return!1}}(e):function(t){const n=t;return Hn(r);function r(o){const i=o;let a;for(a in t)if(i[a]!==n[a])return!1;return!0}}(e);if(typeof e=="string")return function(t){return Hn(n);function n(r){return r&&r.type===t}}(e);throw new Error("Expected function, string, or object as test")};function Hn(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 Yu(){return!0}const hA=[],Xu=!0,gA=!1;function Vu(e,t,n,r){let o;typeof t=="function"&&typeof n!="function"?(r=n,n=t):o=t;const i=fA(o),a=r?-1:1;(function A(s,l,c){const u=s&&typeof s=="object"?s:{};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 ("+s.type+(p?"<"+p+">":"")+")"})}return d;function d(){let p,f,y,h=hA;if((!t||i(s,l,c[c.length-1]||void 0))&&(h=function(w){return Array.isArray(w)?w:typeof w=="number"?[Xu,w]:w==null?hA:[w]}(n(s,c)),h[0]===gA))return h;if("children"in s&&s.children){const w=s;if(w.children&&h[0]!=="skip")for(f=(r?w.children.length:-1)+a,y=c.concat(w);f>-1&&f<w.children.length;){const v=w.children[f];if(p=A(v,f,y)(),p[0]===gA)return p;f=typeof p[1]=="number"?p[1]:f+a}}return h}})(e,void 0,[])()}function mA(e,t,n,r){let o,i,a;typeof t=="function"?(i=void 0,a=t,o=n):(i=t,a=n,o=r),Vu(e,i,function(A,s){const l=s[s.length-1],c=l?l.children.indexOf(A):void 0;return a(A,c,l)},o)}const Zr={}.hasOwnProperty,Ku={};function $u(e,t){const n=t||Ku,r=new Map,o=new Map,i=new Map,a={...zu,...n.handlers},A={all:function(s){const l=[];if("children"in s){const c=s.children;let u=-1;for(;++u<c.length;){const d=A.one(c[u],s);if(d){if(u&&c[u-1].type==="break"&&(!Array.isArray(d)&&d.type==="text"&&(d.value=vA(d.value)),!Array.isArray(d)&&d.type==="element")){const p=d.children[0];p&&p.type==="text"&&(p.value=vA(p.value))}Array.isArray(d)?l.push(...d):l.push(d)}}}return l},applyData:Zu,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:a,one:function(s,l){const c=s.type,u=A.handlers[c];if(Zr.call(A.handlers,c)&&u)return u(A,s,l);if(A.options.passThrough&&A.options.passThrough.includes(c)){if("children"in s){const{children:d,...p}=s,f=Rn(p);return f.children=A.all(s),f}return Rn(s)}return(A.options.unknownHandler||ed)(A,s,l)},options:n,patch:Ju,wrap:td};return mA(e,function(s){if(s.type==="definition"||s.type==="footnoteDefinition"){const l=s.type==="definition"?r:o,c=String(s.identifier).toUpperCase();l.has(c)||l.set(c,s)}}),A}function Ju(e,t){e.position&&(t.position=function(n){const r=Hr(n),o=Ba(n);if(r&&o)return{start:r,end:o}}(e))}function Zu(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,Rn(i)),"children"in n&&n.children&&o!=null&&(n.children=o)}return n}function ed(e,t){const n=t.data||{},r=!("value"in t)||Zr.call(n,"hProperties")||Zr.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 td(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
28
28
|
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
29
29
|
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
30
30
|
`}),n}function vA(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function yA(e,t){const n=$u(e,t),r=n.one(e,void 0),o=function(a){const A=typeof a.options.clobberPrefix=="string"?a.options.clobberPrefix:"user-content-",s=a.options.footnoteBackContent||Gu,l=a.options.footnoteBackLabel||qu,c=a.options.footnoteLabel||"Footnotes",u=a.options.footnoteLabelTagName||"h2",d=a.options.footnoteLabelProperties||{className:["sr-only"]},p=[];let f=-1;for(;++f<a.footnoteOrder.length;){const y=a.footnoteById.get(a.footnoteOrder[f]);if(!y)continue;const h=a.all(y),w=String(y.identifier).toUpperCase(),v=Ht(w.toLowerCase());let g=0;const x=[],C=a.footnoteCounts.get(w);for(;C!==void 0&&++g<=C;){x.length>0&&x.push({type:"text",value:" "});let I=typeof s=="string"?s:s(f,g);typeof I=="string"&&(I={type:"text",value:I}),x.push({type:"element",tagName:"a",properties:{href:"#"+A+"fnref-"+v+(g>1?"-"+g:""),dataFootnoteBackref:"",ariaLabel:typeof l=="string"?l:l(f,g),className:["data-footnote-backref"]},children:Array.isArray(I)?I:[I]})}const E=h[h.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 h.push(...x);const _={type:"element",tagName:"li",properties:{id:A+"fn-"+v},children:a.wrap(h,!0)};a.patch(y,_),p.push(_)}if(p.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{...Rn(d),id:"footnote-label"},children:[{type:"text",value:c}]},{type:"text",value:`
|
|
31
31
|
`},{type:"element",tagName:"ol",properties:{},children:a.wrap(p,!0)},{type:"text",value:`
|
|
32
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 nd(e,t){return e&&"run"in e?async function(n,r){const o=yA(n,{file:r,...t});await e.run(o,r)}:function(n,r){return yA(n,{file:r,...e||t})}}function bA(e){if(e)throw e}var to,wA,rd=function(){if(wA)return to;wA=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(s){return typeof Array.isArray=="function"?Array.isArray(s):t.call(s)==="[object Array]"},i=function(s){if(!s||t.call(s)!=="[object Object]")return!1;var l,c=e.call(s,"constructor"),u=s.constructor&&s.constructor.prototype&&e.call(s.constructor.prototype,"isPrototypeOf");if(s.constructor&&!c&&!u)return!1;for(l in s);return typeof l>"u"||e.call(s,l)},a=function(s,l){n&&l.name==="__proto__"?n(s,l.name,{enumerable:!0,configurable:!0,value:l.newValue,writable:!0}):s[l.name]=l.newValue},A=function(s,l){if(l==="__proto__"){if(!e.call(s,l))return;if(r)return r(s,l).value}return s[l]};return to=function s(){var l,c,u,d,p,f,y=arguments[0],h=1,w=arguments.length,v=!1;for(typeof y=="boolean"&&(v=y,y=arguments[1]||{},h=2),(y==null||typeof y!="object"&&typeof y!="function")&&(y={});h<w;++h)if((l=arguments[h])!=null)for(c in l)u=A(y,c),y!==(d=A(l,c))&&(v&&d&&(i(d)||(p=o(d)))?(p?(p=!1,f=u&&o(u)?u:[]):f=u&&i(u)?u:{},a(y,{name:c,newValue:s(v,f,d)})):typeof d<"u"&&a(y,{name:c,newValue:d}));return y},to}();const no=ka(rd);function ro(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 od(){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(a,...A){const s=e[++r];let l=-1;if(a)o(a);else{for(;++l<n.length;)(A[l]===null||A[l]===void 0)&&(A[l]=n[l]);n=A,s?function(c,u){let d;return p;function p(...h){const w=c.length>h.length;let v;w&&h.push(f);try{v=c.apply(this,h)}catch(g){if(w&&d)throw g;return f(g)}w||(v&&v.then&&typeof v.then=="function"?v.then(y,f):v instanceof Error?f(v):y(v))}function f(h,...w){d||(d=!0,u(h,...w))}function y(h){f(null,h)}}(s,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 tt={basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ln(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 a=-1,A=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1),A>-1&&(e.codePointAt(i)===t.codePointAt(A--)?A<0&&(o=i):(A=-1,o=a));return r===o?o=a:o<0&&(o=e.length),e.slice(r,o)},dirname:function(e){if(ln(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){ln(e);let t,n=e.length,r=-1,o=0,i=-1,a=0;for(;n--;){const A=e.codePointAt(n);if(A!==47)r<0&&(t=!0,r=n+1),A===46?i<0?i=n:a!==1&&(a=1):i>-1&&(a=-1);else if(t){o=n+1;break}}return i<0||r<0||a===0||a===1&&i===r-1&&i===o+1?"":e.slice(i,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)ln(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":function(r){ln(r);const o=r.codePointAt(0)===47;let i=function(a,A){let s,l,c="",u=0,d=-1,p=0,f=-1;for(;++f<=a.length;){if(f<a.length)s=a.codePointAt(f);else{if(s===47)break;s=47}if(s===47){if(d!==f-1&&p!==1)if(d!==f-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=f,p=0;continue}}else if(c.length>0){c="",u=0,d=f,p=0;continue}}A&&(c=c.length>0?c+"/..":"..",u=2)}else c.length>0?c+="/"+a.slice(d+1,f):c=a.slice(d+1,f),u=f-d-1;d=f,p=0}else s===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 ln(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const id={cwd:function(){return"/"}};function oo(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function ad(e){if(typeof e=="string")e=new URL(e);else if(!oo(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 io=["history","path","basename","stem","extname","dirname"];class xA{constructor(t){let n;var r;n=t?oo(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?"":id.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o,i=-1;for(;++i<io.length;){const a=io[i];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}for(o in n)io.includes(o)||(this[o]=n[o])}get basename(){return typeof this.path=="string"?tt.basename(this.path):void 0}set basename(t){Ao(t,"basename"),ao(t,"basename"),this.path=tt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?tt.dirname(this.path):void 0}set dirname(t){EA(this.basename,"dirname"),this.path=tt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?tt.extname(this.path):void 0}set extname(t){if(ao(t,"extname"),EA(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=tt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){oo(t)&&(t=ad(t)),Ao(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?tt.basename(this.path,this.extname):void 0}set stem(t){Ao(t,"stem"),ao(t,"stem"),this.path=tt.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 ke(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 ao(e,t){if(e&&e.includes(tt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+tt.sep+"`")}function Ao(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function EA(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const Ad=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},sd={}.hasOwnProperty;class so extends Ad{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=od()}copy(){const t=new so;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(no(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(uo("data",this.frozen),this.namespace[t]=n,this):sd.call(this.namespace,t)&&this.namespace[t]||void 0:t?(uo("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=Un(t),r=this.parser||this.Parser;return lo("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),lo("process",this.parser||this.Parser),co("process",this.compiler||this.Compiler),n?o(void 0,n):new Promise(o);function o(i,a){const A=Un(t),s=r.parse(A);function l(c,u){c||!u?a(c):i?i(u):n(void 0,u)}r.run(s,A,function(c,u,d){if(c||!u||!d)return l(c);const p=u,f=r.stringify(p,d);var y;typeof(y=f)=="string"||function(h){return!!(h&&typeof h=="object"&&"byteLength"in h&&"byteOffset"in h)}(y)?d.value=f:d.result=f,l(c,d)})}}processSync(t){let n,r=!1;return this.freeze(),lo("processSync",this.parser||this.Parser),co("processSync",this.compiler||this.Compiler),this.process(t,function(o,i){r=!0,bA(o),n=i}),kA("processSync","process",r),n}run(t,n,r){PA(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(a,A){const s=Un(n);o.run(t,s,function(l,c,u){const d=c||t;l?A(l):a?a(d):r(void 0,d,u)})}}runSync(t,n){let r,o=!1;return this.run(t,n,function(i,a){bA(i),r=a,o=!0}),kA("runSync","run",o),r}stringify(t,n){this.freeze();const r=Un(n),o=this.compiler||this.Compiler;return co("stringify",o),PA(t),o(t,r)}use(t,...n){const r=this.attachers,o=this.namespace;if(uo("use",this.frozen),t!=null)if(typeof t=="function")s(t,n);else{if(typeof t!="object")throw new TypeError("Expected usable value, not `"+t+"`");Array.isArray(t)?A(t):a(t)}return this;function i(l){if(typeof l=="function")s(l,[]);else{if(typeof l!="object")throw new TypeError("Expected usable value, not `"+l+"`");if(Array.isArray(l)){const[c,...u]=l;s(c,u)}else a(l)}}function a(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=no(!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 s(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,...f]=c;const y=r[d][1];ro(y)&&ro(p)&&(p=no(!0,y,p)),r[d]=[l,p,...f]}}}}const ld=new so().freeze();function lo(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function co(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function uo(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 PA(e){if(!ro(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function kA(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Un(e){return function(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}(e)?e:new xA(e)}const CA=[],_A={allowDangerousHtml:!0},cd=/^(https?|ircs?|mailto|xmpp)$/i,ud=[{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 dd(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",o=e.className,i=e.components,a=e.disallowedElements,A=e.rehypePlugins||CA,s=e.remarkPlugins||CA,l=e.remarkRehypeOptions?{...e.remarkRehypeOptions,..._A}:_A,c=e.skipHtml,u=e.unwrapDisallowed,d=e.urlTransform||pd,p=ld().use(Uu).use(s).use(nd,l).use(A),f=new xA;typeof r=="string"&&(f.value=r);for(const w of ud)Object.hasOwn(e,w.from)&&(w.from,w.to&&w.to,w.id);const y=p.parse(f);let h=p.runSync(y,f);return o&&(h={type:"element",tagName:"div",properties:{className:o},children:h.type==="root"?h.children:[h]}),mA(h,function(w,v,g){if(w.type==="raw"&&g&&typeof v=="number")return c?g.children.splice(v,1):g.children[v]={type:"text",value:w.value},v;if(w.type==="element"){let x;for(x in Gr)if(Object.hasOwn(Gr,x)&&Object.hasOwn(w.properties,x)){const C=w.properties[x],E=Gr[x];(E===null||E.includes(w.tagName))&&(w.properties[x]=d(String(C||""),x,w))}}if(w.type==="element"){let x=t?!t.includes(w.tagName):!!a&&a.includes(w.tagName);if(!x&&n&&typeof v=="number"&&(x=!n(w,v,g)),x&&g&&typeof v=="number")return u&&w.children?g.children.splice(v,1,...w.children):g.children.splice(v,1),v}}),Rc(h,{Fragment:oe,components:i,ignoreInvalidStyle:!0,jsx:P,jsxs:P,passKeys:!0,passNode:!0})}function pd(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||cd.test(e.slice(0,t))?e:""}const fd=({children:e})=>P("div",{style:{whiteSpace:"normal"},children:P(dd,{components:{p:({...t})=>P("p",{style:{margin:0,marginBottom:"0.5em",lineHeight:1.4,textAlign:"left"},children:t.children}),ul:({...t})=>P("ul",{style:{paddingLeft:"clamp(8px, 3.5vw, 16px)",margin:0,listStylePosition:"inside"},children:t.children}),ol:({...t})=>P("ol",{style:{paddingLeft:"clamp(8px, 3.5vw, 16px)",margin:0,listStylePosition:"inside"},children:t.children}),li:({...t})=>P("li",{style:{marginBottom:"1px",lineHeight:1.4},children:t.children}),code:({inline:t,children:n})=>t?P("code",{style:{backgroundColor:"rgba(0, 0, 0, 0.3)",padding:"2px 4px",borderRadius:"4px",fontFamily:"inherit",fontSize:"0.95em"},children:n}):P("pre",{style:{backgroundColor:"rgba(0, 0, 0, 0.3)",padding:"8px",borderRadius:"4px",overflowX:"auto",margin:"0.5em 0",whiteSpace:"pre-wrap"},children:P("code",{children:n})}),blockquote:({...t})=>P("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},gd=e=>()=>(t=>{const{getFlow:n}=In(),{messages:r,replaceMessages:o}=Ir(),{settings:i}=ia(),{hasChatHistoryLoaded:a}=aa(),A={...t,...hd},s=A.markdownComponent?A.markdownComponent:fd;te(()=>{var u,d;if(a){const p=[...r];for(let f=0;f<p.length&&f<(((u=i.chatHistory)==null?void 0:u.maxEntries)??30);f++){const y=p[f];(d=y.tags)!=null&&d.includes("rcb-markdown-renderer-plugin:parsed")&&(y.contentWrapper=s)}o(p)}},[a]);const l=async u=>{var d;const p=(d=u.data.message)==null?void 0:d.sender.toUpperCase();((f,y,h)=>{var w;if(typeof f.data.message.content!="string"||!f.detail.currPath)return!1;const v=y[f.detail.currPath];return!!v&&(((w=v.renderMarkdown)==null?void 0:w.map(g=>g.toUpperCase()).includes(h))??!1)})(u,n(),p)&&(u.data.message.contentWrapper=s,u.data.message.tags||(u.data.message.tags=[]),u.data.message.tags.push("rcb-markdown-renderer-plugin:parsed"))};He(j.PRE_INJECT_MESSAGE,l),He(j.CHUNK_STREAM_MESSAGE,l),He(j.START_STREAM_MESSAGE,l),He(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),Fn={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"}},DA=(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},md=e=>{const{showToast:t}=(()=>{const{showToast:u,dismissToast:d,toasts:p,replaceToasts:f}=Qt();return{showToast:u,dismissToast:d,toasts:p,replaceToasts:f}})(),{getFlow:n}=In(),{styles:r,updateStyles:o,replaceStyles:i}=(()=>{const{styles:u,replaceStyles:d,updateStyles:p}=ta();return{styles:u,replaceStyles:d,updateStyles:p}})(),a=(u=>({...Fn,...u,promptBaseColors:{...Fn.promptBaseColors},promptHoveredColors:{...Fn.promptHoveredColors},textAreaHighlightColors:{...Fn.textAreaHighlightColors}}))(e),[A,s]=ee(0),l=ie({});He(j.USER_SUBMIT_TEXT,u=>{const d=u,p=DA(d,n(),"validateTextInput");if(!p)return;const f=p(d.data.inputText);if(f!=null&&f.success||u.preventDefault(),!f.promptContent)return;A===0&&(l.current=structuredClone(r));const y=((h,w)=>{const v=h.promptType??"info";let g={};return w.advancedStyles&&(g=w.advancedStyles[v]),w.promptBaseColors&&(g.toastPromptStyle={color:w.promptBaseColors[v],borderColor:w.promptBaseColors[v]}),w.promptHoveredColors&&(g.toastPromptHoveredStyle={color:w.promptHoveredColors[v],borderColor:w.promptHoveredColors[v]}),w.textAreaHighlightColors&&(h.highlightTextArea??!0)&&(g.chatInputAreaStyle={boxShadow:`${w.textAreaHighlightColors[v]} 0px 0px 5px`}),g})(f,a);o(y),t(f.promptContent,f.promptDuration??3e3),s(h=>h+1)}),He(j.USER_UPLOAD_FILE,u=>{var d,p;const f=u,y=(p=(d=f.data)==null?void 0:d.files)==null?void 0:p[0];if(!y)return console.error("No file uploaded."),void u.preventDefault();const h=DA(f,n(),"validateFileInput");if(!h)return void console.error("Validator not found for file input.");const w=h(y);if(!w.success)return console.error("Validation failed:",w),w.promptContent&&t(w.promptContent,w.promptDuration??3e3),void u.preventDefault();console.log("Validation successful:",w)}),He(j.DISMISS_TOAST,()=>{s(u=>u-1)}),te(()=>{A===0&&setTimeout(()=>{i(l.current)})},[A,i]);const c={name:"@rcb-plugins/input-validator"};return a.autoConfig&&(c.settings={event:{rcbUserSubmitText:!0,rcbUserUploadFile:!0,rcbDismissToast:!0}}),c},BA=_e((e,t)=>{let{embedded:n,currentOpen:r,enabled:o,onSetEnabled:i}=e;const a=Ir(),A=(()=>{const{isChatWindowOpen:c,toggleChatWindow:u,toggleIsBotTyping:d,scrollToBottom:p,getIsChatBotVisible:f}=Qe();return{isChatWindowOpen:c,toggleChatWindow:u,toggleIsBotTyping:d,scrollToBottom:p,getIsChatBotVisible:f}})(),s=ie(null),l=ie(!1);return te(()=>{!n&&A&&A.toggleChatWindow&&(s.current===r||l.current||(setTimeout(()=>{A&&A.toggleChatWindow&&A.toggleChatWindow(r)},0),s.current=r),l.current=!1)},[r,n,A]),te(()=>{const c=()=>{l.current=!0};return window.addEventListener("rcb-toggle-chat-window",c),()=>window.removeEventListener("rcb-toggle-chat-window",c)}),bn(t,()=>({addMessage:c=>{a&&a.injectMessage&&a.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)}}),[a,A,n,i]),null});BA.displayName="BotController";const SA=e=>{let{loginUrl:t,className:n="",style:r,isHeaderButton:o=!1}=e;const i=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 R.createElement(R.Fragment,null,o&&R.createElement("style",null,`
|
|
33
|
+
`},o),i}function nd(e,t){return e&&"run"in e?async function(n,r){const o=yA(n,{file:r,...t});await e.run(o,r)}:function(n,r){return yA(n,{file:r,...e||t})}}function bA(e){if(e)throw e}var eo,wA,rd=function(){if(wA)return eo;wA=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(s){return typeof Array.isArray=="function"?Array.isArray(s):t.call(s)==="[object Array]"},i=function(s){if(!s||t.call(s)!=="[object Object]")return!1;var l,c=e.call(s,"constructor"),u=s.constructor&&s.constructor.prototype&&e.call(s.constructor.prototype,"isPrototypeOf");if(s.constructor&&!c&&!u)return!1;for(l in s);return typeof l>"u"||e.call(s,l)},a=function(s,l){n&&l.name==="__proto__"?n(s,l.name,{enumerable:!0,configurable:!0,value:l.newValue,writable:!0}):s[l.name]=l.newValue},A=function(s,l){if(l==="__proto__"){if(!e.call(s,l))return;if(r)return r(s,l).value}return s[l]};return eo=function s(){var l,c,u,d,p,f,y=arguments[0],h=1,w=arguments.length,v=!1;for(typeof y=="boolean"&&(v=y,y=arguments[1]||{},h=2),(y==null||typeof y!="object"&&typeof y!="function")&&(y={});h<w;++h)if((l=arguments[h])!=null)for(c in l)u=A(y,c),y!==(d=A(l,c))&&(v&&d&&(i(d)||(p=o(d)))?(p?(p=!1,f=u&&o(u)?u:[]):f=u&&i(u)?u:{},a(y,{name:c,newValue:s(v,f,d)})):typeof d<"u"&&a(y,{name:c,newValue:d}));return y},eo}();const to=ka(rd);function no(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 od(){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(a,...A){const s=e[++r];let l=-1;if(a)o(a);else{for(;++l<n.length;)(A[l]===null||A[l]===void 0)&&(A[l]=n[l]);n=A,s?function(c,u){let d;return p;function p(...h){const w=c.length>h.length;let v;w&&h.push(f);try{v=c.apply(this,h)}catch(g){if(w&&d)throw g;return f(g)}w||(v&&v.then&&typeof v.then=="function"?v.then(y,f):v instanceof Error?f(v):y(v))}function f(h,...w){d||(d=!0,u(h,...w))}function y(h){f(null,h)}}(s,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 tt={basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ln(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 a=-1,A=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1),A>-1&&(e.codePointAt(i)===t.codePointAt(A--)?A<0&&(o=i):(A=-1,o=a));return r===o?o=a:o<0&&(o=e.length),e.slice(r,o)},dirname:function(e){if(ln(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){ln(e);let t,n=e.length,r=-1,o=0,i=-1,a=0;for(;n--;){const A=e.codePointAt(n);if(A!==47)r<0&&(t=!0,r=n+1),A===46?i<0?i=n:a!==1&&(a=1):i>-1&&(a=-1);else if(t){o=n+1;break}}return i<0||r<0||a===0||a===1&&i===r-1&&i===o+1?"":e.slice(i,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)ln(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":function(r){ln(r);const o=r.codePointAt(0)===47;let i=function(a,A){let s,l,c="",u=0,d=-1,p=0,f=-1;for(;++f<=a.length;){if(f<a.length)s=a.codePointAt(f);else{if(s===47)break;s=47}if(s===47){if(d!==f-1&&p!==1)if(d!==f-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=f,p=0;continue}}else if(c.length>0){c="",u=0,d=f,p=0;continue}}A&&(c=c.length>0?c+"/..":"..",u=2)}else c.length>0?c+="/"+a.slice(d+1,f):c=a.slice(d+1,f),u=f-d-1;d=f,p=0}else s===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 ln(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const id={cwd:function(){return"/"}};function ro(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function ad(e){if(typeof e=="string")e=new URL(e);else if(!ro(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 oo=["history","path","basename","stem","extname","dirname"];class xA{constructor(t){let n;var r;n=t?ro(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?"":id.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o,i=-1;for(;++i<oo.length;){const a=oo[i];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}for(o in n)oo.includes(o)||(this[o]=n[o])}get basename(){return typeof this.path=="string"?tt.basename(this.path):void 0}set basename(t){ao(t,"basename"),io(t,"basename"),this.path=tt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?tt.dirname(this.path):void 0}set dirname(t){EA(this.basename,"dirname"),this.path=tt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?tt.extname(this.path):void 0}set extname(t){if(io(t,"extname"),EA(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=tt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){ro(t)&&(t=ad(t)),ao(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?tt.basename(this.path,this.extname):void 0}set stem(t){ao(t,"stem"),io(t,"stem"),this.path=tt.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 ke(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 io(e,t){if(e&&e.includes(tt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+tt.sep+"`")}function ao(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function EA(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const Ad=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},sd={}.hasOwnProperty;class Ao extends Ad{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=od()}copy(){const t=new Ao;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(to(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(co("data",this.frozen),this.namespace[t]=n,this):sd.call(this.namespace,t)&&this.namespace[t]||void 0:t?(co("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=Un(t),r=this.parser||this.Parser;return so("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),so("process",this.parser||this.Parser),lo("process",this.compiler||this.Compiler),n?o(void 0,n):new Promise(o);function o(i,a){const A=Un(t),s=r.parse(A);function l(c,u){c||!u?a(c):i?i(u):n(void 0,u)}r.run(s,A,function(c,u,d){if(c||!u||!d)return l(c);const p=u,f=r.stringify(p,d);var y;typeof(y=f)=="string"||function(h){return!!(h&&typeof h=="object"&&"byteLength"in h&&"byteOffset"in h)}(y)?d.value=f:d.result=f,l(c,d)})}}processSync(t){let n,r=!1;return this.freeze(),so("processSync",this.parser||this.Parser),lo("processSync",this.compiler||this.Compiler),this.process(t,function(o,i){r=!0,bA(o),n=i}),kA("processSync","process",r),n}run(t,n,r){PA(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(a,A){const s=Un(n);o.run(t,s,function(l,c,u){const d=c||t;l?A(l):a?a(d):r(void 0,d,u)})}}runSync(t,n){let r,o=!1;return this.run(t,n,function(i,a){bA(i),r=a,o=!0}),kA("runSync","run",o),r}stringify(t,n){this.freeze();const r=Un(n),o=this.compiler||this.Compiler;return lo("stringify",o),PA(t),o(t,r)}use(t,...n){const r=this.attachers,o=this.namespace;if(co("use",this.frozen),t!=null)if(typeof t=="function")s(t,n);else{if(typeof t!="object")throw new TypeError("Expected usable value, not `"+t+"`");Array.isArray(t)?A(t):a(t)}return this;function i(l){if(typeof l=="function")s(l,[]);else{if(typeof l!="object")throw new TypeError("Expected usable value, not `"+l+"`");if(Array.isArray(l)){const[c,...u]=l;s(c,u)}else a(l)}}function a(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=to(!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 s(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,...f]=c;const y=r[d][1];no(y)&&no(p)&&(p=to(!0,y,p)),r[d]=[l,p,...f]}}}}const ld=new Ao().freeze();function so(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function lo(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function co(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 PA(e){if(!no(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function kA(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Un(e){return function(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}(e)?e:new xA(e)}const CA=[],_A={allowDangerousHtml:!0},cd=/^(https?|ircs?|mailto|xmpp)$/i,ud=[{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 dd(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",o=e.className,i=e.components,a=e.disallowedElements,A=e.rehypePlugins||CA,s=e.remarkPlugins||CA,l=e.remarkRehypeOptions?{...e.remarkRehypeOptions,..._A}:_A,c=e.skipHtml,u=e.unwrapDisallowed,d=e.urlTransform||pd,p=ld().use(Uu).use(s).use(nd,l).use(A),f=new xA;typeof r=="string"&&(f.value=r);for(const w of ud)Object.hasOwn(e,w.from)&&(w.from,w.to&&w.to,w.id);const y=p.parse(f);let h=p.runSync(y,f);return o&&(h={type:"element",tagName:"div",properties:{className:o},children:h.type==="root"?h.children:[h]}),mA(h,function(w,v,g){if(w.type==="raw"&&g&&typeof v=="number")return c?g.children.splice(v,1):g.children[v]={type:"text",value:w.value},v;if(w.type==="element"){let x;for(x in Wr)if(Object.hasOwn(Wr,x)&&Object.hasOwn(w.properties,x)){const C=w.properties[x],E=Wr[x];(E===null||E.includes(w.tagName))&&(w.properties[x]=d(String(C||""),x,w))}}if(w.type==="element"){let x=t?!t.includes(w.tagName):!!a&&a.includes(w.tagName);if(!x&&n&&typeof v=="number"&&(x=!n(w,v,g)),x&&g&&typeof v=="number")return u&&w.children?g.children.splice(v,1,...w.children):g.children.splice(v,1),v}}),Rc(h,{Fragment:oe,components:i,ignoreInvalidStyle:!0,jsx:P,jsxs:P,passKeys:!0,passNode:!0})}function pd(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||cd.test(e.slice(0,t))?e:""}const fd=({children:e})=>P("div",{style:{whiteSpace:"normal"},children:P(dd,{components:{p:({...t})=>P("p",{style:{margin:0,marginBottom:"0.5em",lineHeight:1.4,textAlign:"left"},children:t.children}),ul:({...t})=>P("ul",{style:{paddingLeft:"clamp(8px, 3.5vw, 16px)",margin:0,listStylePosition:"inside"},children:t.children}),ol:({...t})=>P("ol",{style:{paddingLeft:"clamp(8px, 3.5vw, 16px)",margin:0,listStylePosition:"inside"},children:t.children}),li:({...t})=>P("li",{style:{marginBottom:"1px",lineHeight:1.4},children:t.children}),code:({inline:t,children:n})=>t?P("code",{style:{backgroundColor:"rgba(0, 0, 0, 0.3)",padding:"2px 4px",borderRadius:"4px",fontFamily:"inherit",fontSize:"0.95em"},children:n}):P("pre",{style:{backgroundColor:"rgba(0, 0, 0, 0.3)",padding:"8px",borderRadius:"4px",overflowX:"auto",margin:"0.5em 0",whiteSpace:"pre-wrap"},children:P("code",{children:n})}),blockquote:({...t})=>P("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},gd=e=>()=>(t=>{const{getFlow:n}=In(),{messages:r,replaceMessages:o}=Sr(),{settings:i}=ia(),{hasChatHistoryLoaded:a}=aa(),A={...t,...hd},s=A.markdownComponent?A.markdownComponent:fd;te(()=>{var u,d;if(a){const p=[...r];for(let f=0;f<p.length&&f<(((u=i.chatHistory)==null?void 0:u.maxEntries)??30);f++){const y=p[f];(d=y.tags)!=null&&d.includes("rcb-markdown-renderer-plugin:parsed")&&(y.contentWrapper=s)}o(p)}},[a]);const l=async u=>{var d;const p=(d=u.data.message)==null?void 0:d.sender.toUpperCase();((f,y,h)=>{var w;if(typeof f.data.message.content!="string"||!f.detail.currPath)return!1;const v=y[f.detail.currPath];return!!v&&(((w=v.renderMarkdown)==null?void 0:w.map(g=>g.toUpperCase()).includes(h))??!1)})(u,n(),p)&&(u.data.message.contentWrapper=s,u.data.message.tags||(u.data.message.tags=[]),u.data.message.tags.push("rcb-markdown-renderer-plugin:parsed"))};He(j.PRE_INJECT_MESSAGE,l),He(j.CHUNK_STREAM_MESSAGE,l),He(j.START_STREAM_MESSAGE,l),He(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),Fn={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"}},DA=(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},md=e=>{const{showToast:t}=(()=>{const{showToast:u,dismissToast:d,toasts:p,replaceToasts:f}=Qt();return{showToast:u,dismissToast:d,toasts:p,replaceToasts:f}})(),{getFlow:n}=In(),{styles:r,updateStyles:o,replaceStyles:i}=(()=>{const{styles:u,replaceStyles:d,updateStyles:p}=ta();return{styles:u,replaceStyles:d,updateStyles:p}})(),a=(u=>({...Fn,...u,promptBaseColors:{...Fn.promptBaseColors},promptHoveredColors:{...Fn.promptHoveredColors},textAreaHighlightColors:{...Fn.textAreaHighlightColors}}))(e),[A,s]=ee(0),l=ie({});He(j.USER_SUBMIT_TEXT,u=>{const d=u,p=DA(d,n(),"validateTextInput");if(!p)return;const f=p(d.data.inputText);if(f!=null&&f.success||u.preventDefault(),!f.promptContent)return;A===0&&(l.current=structuredClone(r));const y=((h,w)=>{const v=h.promptType??"info";let g={};return w.advancedStyles&&(g=w.advancedStyles[v]),w.promptBaseColors&&(g.toastPromptStyle={color:w.promptBaseColors[v],borderColor:w.promptBaseColors[v]}),w.promptHoveredColors&&(g.toastPromptHoveredStyle={color:w.promptHoveredColors[v],borderColor:w.promptHoveredColors[v]}),w.textAreaHighlightColors&&(h.highlightTextArea??!0)&&(g.chatInputAreaStyle={boxShadow:`${w.textAreaHighlightColors[v]} 0px 0px 5px`}),g})(f,a);o(y),t(f.promptContent,f.promptDuration??3e3),s(h=>h+1)}),He(j.USER_UPLOAD_FILE,u=>{var d,p;const f=u,y=(p=(d=f.data)==null?void 0:d.files)==null?void 0:p[0];if(!y)return console.error("No file uploaded."),void u.preventDefault();const h=DA(f,n(),"validateFileInput");if(!h)return void console.error("Validator not found for file input.");const w=h(y);if(!w.success)return console.error("Validation failed:",w),w.promptContent&&t(w.promptContent,w.promptDuration??3e3),void u.preventDefault();console.log("Validation successful:",w)}),He(j.DISMISS_TOAST,()=>{s(u=>u-1)}),te(()=>{A===0&&setTimeout(()=>{i(l.current)})},[A,i]);const c={name:"@rcb-plugins/input-validator"};return a.autoConfig&&(c.settings={event:{rcbUserSubmitText:!0,rcbUserUploadFile:!0,rcbDismissToast:!0}}),c},BA=_e((e,t)=>{let{embedded:n,currentOpen:r,enabled:o,onSetEnabled:i}=e;const a=Sr(),A=(()=>{const{isChatWindowOpen:c,toggleChatWindow:u,toggleIsBotTyping:d,scrollToBottom:p,getIsChatBotVisible:f}=Qe();return{isChatWindowOpen:c,toggleChatWindow:u,toggleIsBotTyping:d,scrollToBottom:p,getIsChatBotVisible:f}})(),s=ie(null),l=ie(!1);return te(()=>{!n&&A&&A.toggleChatWindow&&(s.current===r||l.current||(setTimeout(()=>{A&&A.toggleChatWindow&&A.toggleChatWindow(r)},0),s.current=r),l.current=!1)},[r,n,A]),te(()=>{const c=()=>{l.current=!0};return window.addEventListener("rcb-toggle-chat-window",c),()=>window.removeEventListener("rcb-toggle-chat-window",c)}),bn(t,()=>({addMessage:c=>{a&&a.injectMessage&&a.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)}}),[a,A,n,i]),null});BA.displayName="BotController";const SA=e=>{let{loginUrl:t,className:n="",style:r,isHeaderButton:o=!1}=e;const i=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 R.createElement(R.Fragment,null,o&&R.createElement("style",null,`
|
|
34
34
|
.rcb-chat-header-container .qa-bot-header-login-button:hover {
|
|
35
35
|
background-color: #0000001a !important;
|
|
36
36
|
opacity: 1 !important;
|
|
37
37
|
}
|
|
38
|
-
`),R.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({},i),r)},"Log In"))},vd=()=>R.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"},R.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"},R.createElement("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),R.createElement("circle",{cx:"12",cy:"7",r:"4"})));function po(){return po=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},po.apply(null,arguments)}const IA=({width:e=24,height:t=24,color:n="currentColor",children:r,...o})=>R.createElement("svg",po({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),yd=e=>R.createElement(IA,e,R.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"})),TA=Ve(void 0),bd=e=>{let{children:t,resetSession:n,clearResettingFlag:r}=e;return R.createElement(TA.Provider,{value:{resetSession:n,clearResettingFlag:r}},t)},wd=()=>{const{restartFlow:e}=In(),{setTextAreaValue:t}=(()=>{const{textAreaDisabled:o,toggleTextAreaDisabled:i,textAreaSensitiveMode:a,toggleTextAreaSensitiveMode:A,getTextAreaValue:s,setTextAreaValue:l,focusTextArea:c,blurTextArea:u}=bt();return{textAreaDisabled:o,toggleTextAreaDisabled:i,textAreaSensitiveMode:a,toggleTextAreaSensitiveMode:A,getTextAreaValue:s,setTextAreaValue:l,focusTextArea:c,blurTextArea:u}})(),{resetSession:n,clearResettingFlag:r}=(()=>{const o=We(TA);if(!o)throw new Error("useSession must be used within a SessionProvider");return o})();return R.createElement("button",{onClick:async()=>{n(),await t(""),await e(),setTimeout(()=>{r()},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:o=>{o.target.style.backgroundColor="var(--secondaryColor, #0d5f6b)"},onMouseLeave:o=>{o.target.style.backgroundColor="var(--primaryColor, #107180)"}},R.createElement(yd,{width:16,height:16}),"New Chat")},xd=()=>(te(()=>{const e=i=>{if(!["ArrowDown","ArrowUp","ArrowLeft","ArrowRight","Enter"," ","Home","End"].includes(i.key))return;const a=document.activeElement;if(a&&(a.tagName==="INPUT"||a.tagName==="TEXTAREA"||a.contentEditable==="true"||a.classList.contains("rcb-chat-input-textarea")))return;const A=document.querySelector(".rcb-chat-window");if(!A)return;const s=Array.from(A.querySelectorAll(".rcb-message-container, .rcb-bot-message-container, .rcb-user-message-container")).filter(u=>u.offsetParent!==null);if(s.length>0){const u=s[s.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 f=[...d];return p&&f.push(p),void((y,h)=>{y.preventDefault();let w=-1;for(let g=0;g<h.length;g++)if(h[g]===document.activeElement||h[g].contains(document.activeElement)){w=g;break}w===-1&&(w=0);let v=w;switch(y.key){case"ArrowDown":case"ArrowRight":v=w<h.length-1?w+1:0;break;case"ArrowUp":case"ArrowLeft":v=w>0?w-1:h.length-1;break;case"Home":v=0;break;case"End":v=h.length-1;break;case"Enter":case" ":{const g=h[w],x=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});return void g.dispatchEvent(x)}default:return}h[v].focus(),h[v].setAttribute("tabindex","0"),h[v].classList.add("keyboard-focused"),h.forEach((g,x)=>{x!==v&&(g.setAttribute("tabindex","-1"),g.classList.remove("keyboard-focused"))})})(i,f)}}}let l=[];if(s.length>0){const u=s[s.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"),f=p?p.textContent:u.textContent||"checkbox",y=u.querySelector(".rcb-checkbox-mark"),h=y&&y.style.backgroundColor?"checked":"unchecked";t(`${f} ${h}`)}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 a=document.createElement("div");a.setAttribute("aria-live","assertive"),a.setAttribute("aria-atomic","true"),a.className="sr-only",a.textContent=i,document.body.appendChild(a),setTimeout(()=>{document.body.contains(a)&&document.body.removeChild(a)},1e3)},n=(i=null)=>{let a=i;if(a||(a=document.querySelector(".rcb-chat-window"),a||(a=document.querySelector('[class*="rcb-chat"]')),a||(a=document.querySelector(".qa-bot"))),!a)return;const A=a.closest(".embedded-qa-bot")!==null,s=Array.from(a.querySelectorAll(".rcb-message-container, .rcb-bot-message-container, .rcb-user-message-container")).filter(d=>d.offsetParent!==null);if(s.length===0)return;const l=s[s.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&&a&&(d=a.querySelector(".rcb-checkbox-container")),d&&d.offsetParent!==null){const p=Array.from(d.querySelectorAll(".rcb-checkbox-row-container")).filter(f=>f.offsetParent!==null&&f.style.display!=="none");if(p.length>0){const f=d.querySelector(".rcb-checkbox-next-button"),y=[...p];if(f&&f.offsetParent!==null&&y.push(f),y.forEach((h,w)=>{h.setAttribute("tabindex",w===0?"0":"-1"),w===0?h.classList.add("keyboard-focused"):h.classList.remove("keyboard-focused")}),p.length>1){d.querySelectorAll(".keyboard-nav-hint").forEach(w=>w.remove());const h=document.createElement("div");h.className="keyboard-nav-hint",h.textContent="Use arrow keys ↕ to navigate, Enter to select/deselect, or click any option",h.style.cssText="font-size: 12px !important; color: #666 !important; margin-bottom: 8px !important; font-style: italic !important; display: block !important;",d.insertBefore(h,d.firstChild)}return void setTimeout(()=>{y[0]&&y[0].offsetParent!==null&&!A&&y[0].focus()},150)}}}if(u.length>0){if(u.forEach((d,p)=>{const f=p===0?"0":"-1";d.setAttribute("tabindex",f),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(f=>f.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(a=>{var A,s;if(a.type==="childList"){const l=Array.from(a.addedNodes),c=l.some(d=>{var p,f,y,h;return d.nodeType===Node.ELEMENT_NODE&&(((p=d.classList)==null?void 0:p.contains("rcb-options-container"))||((f=d.classList)==null?void 0:f.contains("rcb-options"))||((y=d.querySelector)==null?void 0:y.call(d,".rcb-options-container"))||((h=d.querySelector)==null?void 0:h.call(d,".rcb-options")))}),u=l.some(d=>{var p,f;return d.nodeType===Node.ELEMENT_NODE&&(((p=d.classList)==null?void 0:p.contains("rcb-checkbox-container"))||((f=d.querySelector)==null?void 0:f.call(d,".rcb-checkbox-container")))});if(c||u){let d=a.target;for(;d&&!((A=d.classList)!=null&&A.contains("qa-bot"))&&!((s=d.classList)!=null&&s.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 a=i.querySelectorAll(".rcb-options-container .rcb-options").length>0,A=i.querySelectorAll(".rcb-checkbox-row-container").length>0;if(a){const s=i.querySelectorAll(".rcb-options[tabindex]").length;i.querySelectorAll(".rcb-options").length>s&&n(i)}if(A){const s=i.querySelectorAll(".rcb-checkbox-row-container[tabindex]").length;i.querySelectorAll(".rcb-checkbox-row-container").length>s&&n(i)}})},1e3);return()=>{document.removeEventListener("keydown",e),r.disconnect(),clearInterval(o)}},[]),null),xe=[];for(let e=0;e<256;++e)xe.push((e+256).toString(16).slice(1));let fo;const Ed=new Uint8Array(16);var QA={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function MA(e,t,n){var o;if(QA.randomUUID&&!e)return QA.randomUUID();const r=(e=e||{}).random??((o=e.rng)==null?void 0:o.call(e))??function(){if(!fo){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");fo=crypto.getRandomValues.bind(crypto)}return fo(Ed)}();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,a=0){return(xe[i[a+0]]+xe[i[a+1]]+xe[i[a+2]]+xe[i[a+3]]+"-"+xe[i[a+4]]+xe[i[a+5]]+"-"+xe[i[a+6]]+xe[i[a+7]]+"-"+xe[i[a+8]]+xe[i[a+9]]+"-"+xe[i[a+10]]+xe[i[a+11]]+xe[i[a+12]]+xe[i[a+13]]+xe[i[a+14]]+xe[i[a+15]]).toLowerCase()}(r)}const OA=()=>"qa_bot_session_".concat(MA()),Pd="#1a5b6e",kd="#107180",Cd="Arial, sans-serif",NA="Q&A Bot",_d="/chat-icon.svg",Dd="Type your question here...",Bd="Select an option to continue",Sd=!1,Id="Ask me a question!",LA="/login",Td={general:{showHeader:!0,showFooter:!0},tooltip:{mode:"CLOSE"},chatInput:{disabled:!1,characterLimit:1e3,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}},ho=_e((e,t)=>{var n,r;const{apiKey:o,qaEndpoint:i,ratingEndpoint:a,welcomeMessage:A,open:s,onOpenChange:l,isLoggedIn:c,allowAnonAccess:u=!1,primaryColor:d,secondaryColor:p,botName:f,logo:y,placeholder:h,errorMessage:w,embedded:v,footerText:g,footerLink:x,tooltipText:C,loginUrl:E,customFlow:_}=e,I=ie("bot_".concat(Math.random().toString(36).substr(2,9))),D=ie(OA()),k=ie(!1),S=ie({getSessionId:()=>D.current,isResetting:()=>k.current}),[B,L]=ee(c);te(()=>{L(c)},[c]);const N=ve(()=>{const m=Object.assign({},Td);m.general=Object.assign(Object.assign({},m.general),{primaryColor:d||Pd,secondaryColor:p||kd,fontFamily:Cd,embedded:v!==void 0?v:Sd});const U=B===!1?R.createElement(SA,{key:"login-button",loginUrl:E||LA,isHeaderButton:!0}):R.createElement(vd,{key:"user-icon"});m.header={title:f||NA,showAvatar:!0,avatar:y||_d,buttons:[U,ge.CLOSE_CHAT_BUTTON]},m.chatInput=Object.assign(Object.assign({},m.chatInput),{disabled:!1,enabledPlaceholderText:h||Dd,disabledPlaceholderText:w||Bd}),m.tooltip=Object.assign(Object.assign({},m.tooltip),{text:C||Id});const b=g?x?R.createElement("a",{href:x,target:"_blank",rel:"noopener noreferrer",key:"footer-link"},g):R.createElement("span",{key:"footer-text"},g):null;return m.footer={text:b,buttons:[R.createElement(wd,{key:"new-chat-button"})]},m},[d,p,f,y,h,w,v,C,B,E,g,x]),Q=ie(null),W=function(m){let U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ve(()=>{const b=(F,K)=>{if(m.current){const z=getComputedStyle(m.current).getPropertyValue(F);if(z&&z.trim()!=="")return z.trim();if(m.current.parentElement){const ne=getComputedStyle(m.current.parentElement).getPropertyValue(F);if(ne&&ne.trim()!=="")return ne.trim()}}return K};return{primaryColor:b("--primaryColor",U.primaryColor),secondaryColor:b("--secondaryColor",U.secondaryColor),fontFamily:b("--fontFamily",U.fontFamily)}},[m,U])}(Q,N.general);((m,U)=>{te(()=>{U.current&&(m?U.current.classList.add("bot-logged-in"):U.current.classList.remove("bot-logged-in"))},[m,U])})(B!==!1,Q),(m=>{let{settings:U,themeColors:b}=m;te(()=>{b&&(Object.entries(b).forEach(F=>{let[K,z]=F;z&&document.documentElement.style.setProperty("--".concat(K),z)}),b.primaryColor&&document.documentElement.style.setProperty("--rcb-header-background",b.primaryColor),b.secondaryColor&&document.documentElement.style.setProperty("--rcb-header-background-hover",b.secondaryColor))},[b]),te(()=>{var F,K,z;!((F=U.header)===null||F===void 0)&&F.title&&typeof U.header.title=="string"&&(U.header.title=R.createElement("div",{key:"header-title"},R.createElement("h1",{className:"sr-only"},U.header.title),R.createElement("span",{"aria-hidden":"true"},U.header.title))),!((K=U.general)===null||K===void 0)&&K.embedded&&U.chatWindow&&(U.chatWindow.defaultOpen=!0),U.device={desktopEnabled:!0,mobileEnabled:!0,applyMobileOptimizations:!1},U.chatHistory={disabled:!1},U.chatButton=Object.assign(Object.assign({},U.chatButton),{icon:(z=U.header)===null||z===void 0?void 0:z.avatar}),U.event={rcbToggleChatWindow:!0}},[U])})({settings:N,themeColors:W});const O=ve(()=>{const m=(b=>{let{endpoint:F,ratingEndpoint:K,apiKey:z,sessionId:ne,isResetting:fe=()=>!1,isLoggedIn:de,allowAnonAccess:Be=!1,loginUrl:me="/login"}=b;if(de===!1&&!Be)return{qa_loop:{message:"To ask questions, please log in first.",component:R.createElement(SA,{loginUrl:me}),chatDisabled:!0,path:"qa_loop"}};let Ce=null,ft=!1;if(!F)throw new Error("Q&A endpoint is required");return{qa_loop:{message:async ze=>{const{userInput:je}=ze;if(fe&&fe()||!je||je.trim()==="")return null;if(je==="👍 Helpful"||je==="👎 Not helpful"){if(K&&Ce)try{const Ne=je==="👍 Helpful",Le={"Content-Type":"application/json"};z&&(Le["X-API-KEY"]=z);const nt=ne();nt&&(Le["X-Session-ID"]=nt,Le["X-Query-ID"]=Ce),await fetch(K,{method:"POST",headers:Le,body:JSON.stringify({sessionId:nt,queryId:Ce,rating:Ne?1:0})})}catch(Ne){console.error("Error sending feedback:",Ne)}return"Thanks for the feedback! Feel free to ask another question."}try{const Ne=MA();Ce=Ne;const Le={"Content-Type":"application/json"};z&&(Le["X-API-KEY"]=z);const nt=ne();nt&&(Le["X-Session-ID"]=nt,Le["X-Query-ID"]=Ne);const dn=await fetch(F,{method:"POST",headers:Le,body:JSON.stringify({query:je})});if(!dn.ok)throw new Error("API returned ".concat(dn.status));const kt=await dn.json(),pn=kt.response||kt.answer||kt.text||kt.message;if(!pn)throw new Error("Invalid response format from API");const qn=(zt=>{if(!zt||typeof zt!="string")return zt;let jt=zt.replace(/\[(https?:\/\/[^\s]+?)\]/gi,"[$1]($1)");return jt=jt.replace(new RegExp(`(?<!\\]\\(|href=["']|\\[)https?:\\/\\/[^\\s[\\]()]+`,"gi"),Yn=>{let Ct=Yn,fn="";const Xn=Ct.match(/([.,;:!?]+)$/);return Xn&&(fn=Xn[1],Ct=Ct.slice(0,-fn.length)),"[".concat(Ct,"](").concat(Ct,")").concat(fn)}),jt})(pn);return await ze.injectMessage(qn),ft=!0,setTimeout(async()=>{await ze.injectMessage("Feel free to ask another question.")},100),null}catch(Ne){return console.error("Error in Q&A flow:",Ne),"I apologize, but I'm having trouble processing your question. Please try again later."}},options:ze=>fe&&fe()||ze.userInput==="👍 Helpful"||ze.userInput==="👎 Not helpful"?[]:K&&ft?["👍 Helpful","👎 Not helpful"]:[],renderMarkdown:["BOT"],chatDisabled:!1,path:"qa_loop"}}})({endpoint:i,ratingEndpoint:a,apiKey:o,sessionId:S.current.getSessionId,isResetting:S.current.isResetting,isLoggedIn:B,allowAnonAccess:u,loginUrl:E||LA});return Object.assign(Object.assign({start:{message:A,transition:{duration:0},path:"qa_loop"}},m),_||{})},[o,i,a,A,B,u,E,_]),H=ve(()=>{return[()=>gc(U),gd(),()=>md(m)];var m,U},[]);return te(()=>{const m=()=>{const b=document.querySelector(".rcb-chat-window");if(!b)return;const F=b.querySelector(".rcb-send-button");F&&(F.hasAttribute("tabindex")||F.setAttribute("tabindex","0"),F.hasAttribute("data-keyboard-enabled")||(F.setAttribute("data-keyboard-enabled","true"),F.addEventListener("keydown",K=>{if(K.key==="Enter"||K.key===" "){K.preventDefault();const z=F&&Object.keys(F).find(fe=>fe.startsWith("__reactProps"));if(z){const fe=F[z],de=fe==null?void 0:fe.onMouseDown;if(de&&typeof de=="function")return void de(K)}const ne=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});F.dispatchEvent(ne)}})))},U=setInterval(m,1e3);return m(),()=>clearInterval(U)},[]),xd(),te(()=>{if(!v&&l){const m=U=>{const b=U.data.newState;l(b)};return window.addEventListener("rcb-toggle-chat-window",m),()=>{window.removeEventListener("rcb-toggle-chat-window",m)}}},[v,l]),R.createElement("div",{className:"qa-bot ".concat(!((n=N.general)===null||n===void 0)&&n.embedded?"embedded-qa-bot":""),ref:Q,role:"region","aria-label":f||NA},R.createElement(bd,{resetSession:()=>{k.current=!0,D.current=OA()},clearResettingFlag:()=>{k.current=!1}},R.createElement(oa,null,R.createElement("div",null,R.createElement(BA,{ref:t,embedded:((r=N.general)===null||r===void 0?void 0:r.embedded)||!1,currentOpen:s||!1,enabled:B!==!1,onSetEnabled:m=>L(!!m&&void 0)}),R.createElement($l,{key:"chatbot-".concat(I.current,"-").concat(B),settings:N,flow:O,plugins:H}),R.createElement("div",{role:"status","aria-live":"polite","aria-label":"Bot response updates",className:"sr-only",id:"bot-live-region"}),R.createElement("div",{id:"chat-input-help",className:"sr-only"},"Type your message and press Enter to send. Use arrow keys to navigate through response options.")))))});ho.displayName="QABot",_i('.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{color:#fff;text-decoration:none}.rcb-chat-window .rcb-bot-message a:hover{text-decoration:underline}.rcb-chat-window .rcb-chat-input-textarea{overflow-y:auto}.rcb-chat-window .rcb-chat-footer-container{font-size:10px}.qa-bot .user-login-icon{display:none!important}.qa-bot.bot-logged-in .user-login-icon{display:flex!important;transform:scale(1.3) translateY(-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%}@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 Qd=()=>{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 a=i.getContext("2d");if(!a)throw new Error("Could not get canvas context");a.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 s=new Date().toISOString().replace(/[:.]/g,"-"),l=new File([A],"screenshot-".concat(s,".png"),{type:"image/png"});return r.getTracks().forEach(c=>c.stop()),t(!1),l}catch(r){throw console.error("Error capturing screenshot:",r),t(!1),r}},isCapturing:e,isScreenCaptureAvailable:n()}},Md=e=>R.createElement(IA,e,R.createElement("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),R.createElement("polyline",{points:"17 8 12 3 7 8"}),R.createElement("line",{x1:"12",y1:"3",x2:"12",y2:"15"})),Od=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)}),Nd=e=>Promise.all(e.map(Od)),Ld=e=>e<1024?"".concat(e," B"):e<1048576?"".concat((e/1024).toFixed(1)," KB"):"".concat((e/1048576).toFixed(1)," MB"),zn=e=>{let{onFileUpload:t,maxSizeMB:n=10,acceptedTypes:r="image/*,application/pdf,text/*,.doc,.docx",enableScreenshot:o=!1,className:i}=e;const[a,A]=ee(!1),[s,l]=ee([]),[c,u]=ee(null),d=ie(null),{captureScreenshot:p,isCapturing:f,isScreenCaptureAvailable:y}=Qd(),h=E=>{const _=document.createElement("div");_.setAttribute("aria-live","assertive"),_.setAttribute("aria-atomic","true"),_.className="sr-only",_.textContent=E,document.body.appendChild(_),setTimeout(()=>document.body.removeChild(_),1e3)},w=E=>{if(!E||E.length===0)return void console.warn("FileUploadComponent: No valid files provided to handleFiles");let _;try{_=Array.from(E)}catch(S){return console.error("FileUploadComponent: Error converting files to array:",S),void h("Error processing selected files. Please try again.")}const I=[...s,..._];l(I);const D=_.length,k=_.map(S=>S.name).join(", ");h("".concat(D," file").concat(D>1?"s":""," selected: ").concat(k)),setTimeout(()=>{const S=document.querySelector(".rcb-chat-content");S&&(S.scrollTop=S.scrollHeight)},100),t&&t(I)},v=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){console.error("FileUploadComponent: Error in handleButtonClick:",E),h("Error opening file selection dialog. Please try again.")}},x=()=>{u(null)},C=o&&y;return R.createElement("div",{className:"file-upload-container ".concat(i||""),style:{padding:"16px",margin:"8px 0"}},C&&R.createElement("div",{style:{display:"flex",justifyContent:"center",marginBottom:"10px"}},R.createElement("button",{onClick:E=>{E.preventDefault(),(async()=>{try{const _=await p();w([_]),h("Screenshot captured successfully")}catch{h("Error capturing screenshot. Please try again.")}})()},disabled:f,"aria-describedby":"screenshot-help","aria-label":f?"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:f?"not-allowed":"pointer",fontSize:"14px",fontWeight:"500",boxShadow:"0 1px 3px rgba(0,0,0,0.2)"}},R.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"},R.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"}),R.createElement("circle",{cx:"12",cy:"13",r:"4"})),f?"Taking screenshot...":"Take screenshot..."),R.createElement("span",{id:"screenshot-help",className:"sr-only"},"Captures the current screen and adds it as an attachment")),R.createElement("div",{className:"file-upload-dropzone ".concat(a?"active":""),onDragEnter:v,onDragLeave:v,onDragOver:v,onDrop:E=>{var _;E.preventDefault(),E.stopPropagation(),A(!1);try{!((_=E.dataTransfer)===null||_===void 0)&&_.files&&E.dataTransfer.files.length>0&&w(E.dataTransfer.files)}catch(I){console.error("FileUploadComponent: Error in handleDrop:",I),h("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:a?"#f0f8ff":"#fafafa",transition:"all 0.3s ease"}},R.createElement("input",{ref:d,type:"file",className:"file-input",onChange:E=>{var _;try{!((_=E.target)===null||_===void 0)&&_.files&&E.target.files.length>0&&w(E.target.files)}catch(I){console.error("FileUploadComponent: Error in handleFileSelect:",I),h("Error processing selected files. Please try again.")}},multiple:!0,style:{display:"none"},"aria-label":"Select files to upload",accept:r}),R.createElement("div",{className:"upload-content",onClick:g,style:{cursor:"pointer",flexDirection:"column",alignItems:"center",display:"flex",textAlign:"center",padding:"12px"}},R.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"8px"}},R.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"10px"}},R.createElement(Md,null),R.createElement("p",{style:{margin:0,fontWeight:"bold"}},"Upload Files")),R.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)")),s.length>0&&R.createElement("div",{className:"selected-files",style:{display:"flex",flexWrap:"wrap",gap:"8px",marginTop:"12px",alignItems:"center"}},R.createElement("span",{style:{fontWeight:400,color:"#888",fontSize:"13px",marginRight:"8px",alignSelf:"center"}},"Selected files:"),s.map((E,_)=>R.createElement("span",{key:_,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)}},R.createElement("span",{onClick:I=>{I.stopPropagation(),(D=>{const k=s.filter((S,B)=>B!==D);l(k),t&&t(k)})(_)},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," (",Ld(E.size),")"))))),(()=>{if(!c)return null;const E=c.type.startsWith("image/"),_=c.type.startsWith("text/"),I=c.type==="application/pdf";return R.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},R.createElement("div",{style:{backgroundColor:"white",padding:"20px",borderRadius:"8px",maxWidth:"90%",maxHeight:"90%",overflow:"auto",position:"relative"},onClick:D=>D.stopPropagation()},R.createElement("button",{onClick:x,style:{position:"absolute",top:"10px",right:"10px",background:"none",border:"none",fontSize:"24px",cursor:"pointer",color:"#666"}},"×"),R.createElement("h3",{style:{marginTop:0,marginBottom:"16px"}},c.name),E&&R.createElement("img",{src:URL.createObjectURL(c),alt:c.name,style:{maxWidth:"100%",maxHeight:"70vh"}}),_&&R.createElement("pre",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word",maxHeight:"70vh",overflow:"auto",padding:"16px",backgroundColor:"#f5f5f5",borderRadius:"4px"}},URL.createObjectURL(c)),I&&R.createElement("iframe",{src:URL.createObjectURL(c),style:{width:"100%",height:"70vh",border:"none"},title:c.name}),!E&&!_&&!I&&R.createElement("div",{style:{padding:"20px",textAlign:"center"}},"Preview not available for this file type")))})())};function Rd(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 a=!(!i.options&&!i.checkboxes);i.chatDisabled=a}n[r]=i}return n}const Hd=R.forwardRef((e,t)=>{const[n,r]=R.useState(e.defaultOpen||!1),o=R.useRef(null);return R.useImperativeHandle(t,()=>({addMessage:i=>{var a;(a=o.current)===null||a===void 0||a.addMessage(i)},setBotEnabled:i=>{var a;(a=o.current)===null||a===void 0||a.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(a=>!a),(i=o.current)===null||i===void 0||i.toggleChat()}}),[]),R.createElement(ho,{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,open:n,onOpenChange:r,footerText:e.footerText,footerLink:e.footerLink,tooltipText:e.tooltipText})});Hd.displayName="ProgrammaticQABot";const Et={QA_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/chat/api/",RATING_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/chat/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"},pt={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?",WELCOME_MESSAGE_LOGGED_OUT:"To ask questions, please log in.",LOGIN_URL:"/login",PRIMARY_COLOR:"#1a5b6e",SECONDARY_COLOR:"#107180",TOOLTIP:"Ask me about ACCESS! 😊"},RA={SESSION_ID:"access-qa-bot-session-id"};function Ud({welcome:e,setTicketForm:t,isLoggedIn:n}){return{start:{message:e,options:["Ask a question about ACCESS","Open a Help Ticket","Usage and performance of ACCESS resources (XDMoD)","Report a security issue"],path:r=>r.userInput==="Ask a question about ACCESS"?n?"go_ahead_and_ask":"qa_loop":r.userInput==="Open a Help Ticket"?(t({}),"help_ticket"):r.userInput==="Usage and performance of ACCESS resources (XDMoD)"?"metrics_intro":r.userInput==="Report a security issue"?(t({}),"security_incident"):"start"},go_ahead_and_ask:{message:"Go ahead and ask your question! I'll do my best to help.",path:"qa_loop"}}}let go=null;function Fd(e){go=e}function X(){return go?go.ticketForm||{}:(console.warn("Form context not available, returning empty form"),{})}function Ee(e={}){const t=X();return{...t,email:e.email||t.email,name:e.name||t.name,accessId:e.accessId||t.accessId}}function mo(e){return e&&e.length>0?`
|
|
39
|
-
Attachments: ${e.length} file(s) attached`:""}const Ft={SUPPORT:17,LOGIN_ACCESS:30,LOGIN_PROVIDER:31,SECURITY:26};async function zd(e,t="support",n=[]){const o={support:Ft.SUPPORT,general_help:Ft.SUPPORT,loginAccess:Ft.LOGIN_ACCESS,loginProvider:Ft.LOGIN_PROVIDER,security:Ft.SECURITY}[t]||Ft.SUPPORT,a={serviceDeskId:t==="security"?3:2,requestTypeId:o,requestFieldValues:{...e}};return n.length>0&&(a.attachments=await Nd(n)),a}async function jd(e,t){var o,i;const r=`${Et.NETLIFY_BASE_URL}/api/v1/${t}`;try{const a=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!a.ok){let s="";try{const l=await a.text();try{const c=JSON.parse(l);s=c.message||c.error||l}catch{s=l}}catch{s=`HTTP ${a.status} ${a.statusText}`}return a.status===403?s="The ticket service is temporarily unavailable. Please try again later or contact support directly.":a.status===404?s="Ticket service not found. Please try again later.":a.status===500?s="Server error. Please try again later.":a.status===401&&(s="Authentication error with the ticket service. Please contact support."),{success:!1,status:a.status,error:s}}const A=await a.json();return{success:!0,ticketKey:(o=A.data)==null?void 0:o.ticketKey,ticketUrl:(i=A.data)==null?void 0:i.ticketUrl}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Unknown error"}}}async function jn(e,t,n=[]){try{const r=await zd(e,t,n);return await jd(r,t==="security"?"security-incidents":"tickets")}catch(r){return{success:!1,error:r instanceof Error?r.message:"Unknown error"}}}function
|
|
38
|
+
`),R.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({},i),r)},"Log In"))},vd=()=>R.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"},R.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"},R.createElement("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),R.createElement("circle",{cx:"12",cy:"7",r:"4"})));function uo(){return uo=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},uo.apply(null,arguments)}const IA=({width:e=24,height:t=24,color:n="currentColor",children:r,...o})=>R.createElement("svg",uo({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),yd=e=>R.createElement(IA,e,R.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"})),TA=Ve(void 0),bd=e=>{let{children:t,resetSession:n,clearResettingFlag:r}=e;return R.createElement(TA.Provider,{value:{resetSession:n,clearResettingFlag:r}},t)},wd=()=>{const{restartFlow:e}=In(),{setTextAreaValue:t}=(()=>{const{textAreaDisabled:o,toggleTextAreaDisabled:i,textAreaSensitiveMode:a,toggleTextAreaSensitiveMode:A,getTextAreaValue:s,setTextAreaValue:l,focusTextArea:c,blurTextArea:u}=bt();return{textAreaDisabled:o,toggleTextAreaDisabled:i,textAreaSensitiveMode:a,toggleTextAreaSensitiveMode:A,getTextAreaValue:s,setTextAreaValue:l,focusTextArea:c,blurTextArea:u}})(),{resetSession:n,clearResettingFlag:r}=(()=>{const o=We(TA);if(!o)throw new Error("useSession must be used within a SessionProvider");return o})();return R.createElement("button",{onClick:async()=>{n(),await t(""),await e(),setTimeout(()=>{r()},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:o=>{o.target.style.backgroundColor="var(--secondaryColor, #0d5f6b)"},onMouseLeave:o=>{o.target.style.backgroundColor="var(--primaryColor, #107180)"}},R.createElement(yd,{width:16,height:16}),"New Chat")},xd=()=>(te(()=>{const e=i=>{if(!["ArrowDown","ArrowUp","ArrowLeft","ArrowRight","Enter"," ","Home","End"].includes(i.key))return;const a=document.activeElement;if(a&&(a.tagName==="INPUT"||a.tagName==="TEXTAREA"||a.contentEditable==="true"||a.classList.contains("rcb-chat-input-textarea")))return;const A=document.querySelector(".rcb-chat-window");if(!A)return;const s=Array.from(A.querySelectorAll(".rcb-message-container, .rcb-bot-message-container, .rcb-user-message-container")).filter(u=>u.offsetParent!==null);if(s.length>0){const u=s[s.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 f=[...d];return p&&f.push(p),void((y,h)=>{y.preventDefault();let w=-1;for(let g=0;g<h.length;g++)if(h[g]===document.activeElement||h[g].contains(document.activeElement)){w=g;break}w===-1&&(w=0);let v=w;switch(y.key){case"ArrowDown":case"ArrowRight":v=w<h.length-1?w+1:0;break;case"ArrowUp":case"ArrowLeft":v=w>0?w-1:h.length-1;break;case"Home":v=0;break;case"End":v=h.length-1;break;case"Enter":case" ":{const g=h[w],x=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});return void g.dispatchEvent(x)}default:return}h[v].focus(),h[v].setAttribute("tabindex","0"),h[v].classList.add("keyboard-focused"),h.forEach((g,x)=>{x!==v&&(g.setAttribute("tabindex","-1"),g.classList.remove("keyboard-focused"))})})(i,f)}}}let l=[];if(s.length>0){const u=s[s.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"),f=p?p.textContent:u.textContent||"checkbox",y=u.querySelector(".rcb-checkbox-mark"),h=y&&y.style.backgroundColor?"checked":"unchecked";t(`${f} ${h}`)}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 a=document.createElement("div");a.setAttribute("aria-live","assertive"),a.setAttribute("aria-atomic","true"),a.className="sr-only",a.textContent=i,document.body.appendChild(a),setTimeout(()=>{document.body.contains(a)&&document.body.removeChild(a)},1e3)},n=(i=null)=>{let a=i;if(a||(a=document.querySelector(".rcb-chat-window"),a||(a=document.querySelector('[class*="rcb-chat"]')),a||(a=document.querySelector(".qa-bot"))),!a)return;const A=a.closest(".embedded-qa-bot")!==null,s=Array.from(a.querySelectorAll(".rcb-message-container, .rcb-bot-message-container, .rcb-user-message-container")).filter(d=>d.offsetParent!==null);if(s.length===0)return;const l=s[s.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&&a&&(d=a.querySelector(".rcb-checkbox-container")),d&&d.offsetParent!==null){const p=Array.from(d.querySelectorAll(".rcb-checkbox-row-container")).filter(f=>f.offsetParent!==null&&f.style.display!=="none");if(p.length>0){const f=d.querySelector(".rcb-checkbox-next-button"),y=[...p];if(f&&f.offsetParent!==null&&y.push(f),y.forEach((h,w)=>{h.setAttribute("tabindex",w===0?"0":"-1"),w===0?h.classList.add("keyboard-focused"):h.classList.remove("keyboard-focused")}),p.length>1){d.querySelectorAll(".keyboard-nav-hint").forEach(w=>w.remove());const h=document.createElement("div");h.className="keyboard-nav-hint",h.textContent="Use arrow keys ↕ to navigate, Enter to select/deselect, or click any option",h.style.cssText="font-size: 12px !important; color: #666 !important; margin-bottom: 8px !important; font-style: italic !important; display: block !important;",d.insertBefore(h,d.firstChild)}return void setTimeout(()=>{y[0]&&y[0].offsetParent!==null&&!A&&y[0].focus()},150)}}}if(u.length>0){if(u.forEach((d,p)=>{const f=p===0?"0":"-1";d.setAttribute("tabindex",f),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(f=>f.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(a=>{var A,s;if(a.type==="childList"){const l=Array.from(a.addedNodes),c=l.some(d=>{var p,f,y,h;return d.nodeType===Node.ELEMENT_NODE&&(((p=d.classList)==null?void 0:p.contains("rcb-options-container"))||((f=d.classList)==null?void 0:f.contains("rcb-options"))||((y=d.querySelector)==null?void 0:y.call(d,".rcb-options-container"))||((h=d.querySelector)==null?void 0:h.call(d,".rcb-options")))}),u=l.some(d=>{var p,f;return d.nodeType===Node.ELEMENT_NODE&&(((p=d.classList)==null?void 0:p.contains("rcb-checkbox-container"))||((f=d.querySelector)==null?void 0:f.call(d,".rcb-checkbox-container")))});if(c||u){let d=a.target;for(;d&&!((A=d.classList)!=null&&A.contains("qa-bot"))&&!((s=d.classList)!=null&&s.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 a=i.querySelectorAll(".rcb-options-container .rcb-options").length>0,A=i.querySelectorAll(".rcb-checkbox-row-container").length>0;if(a){const s=i.querySelectorAll(".rcb-options[tabindex]").length;i.querySelectorAll(".rcb-options").length>s&&n(i)}if(A){const s=i.querySelectorAll(".rcb-checkbox-row-container[tabindex]").length;i.querySelectorAll(".rcb-checkbox-row-container").length>s&&n(i)}})},1e3);return()=>{document.removeEventListener("keydown",e),r.disconnect(),clearInterval(o)}},[]),null),xe=[];for(let e=0;e<256;++e)xe.push((e+256).toString(16).slice(1));let po;const Ed=new Uint8Array(16);var QA={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function MA(e,t,n){var o;if(QA.randomUUID&&!e)return QA.randomUUID();const r=(e=e||{}).random??((o=e.rng)==null?void 0:o.call(e))??function(){if(!po){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");po=crypto.getRandomValues.bind(crypto)}return po(Ed)}();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,a=0){return(xe[i[a+0]]+xe[i[a+1]]+xe[i[a+2]]+xe[i[a+3]]+"-"+xe[i[a+4]]+xe[i[a+5]]+"-"+xe[i[a+6]]+xe[i[a+7]]+"-"+xe[i[a+8]]+xe[i[a+9]]+"-"+xe[i[a+10]]+xe[i[a+11]]+xe[i[a+12]]+xe[i[a+13]]+xe[i[a+14]]+xe[i[a+15]]).toLowerCase()}(r)}const OA=()=>"qa_bot_session_".concat(MA()),Pd="#1a5b6e",kd="#107180",Cd="Arial, sans-serif",NA="Q&A Bot",_d="/chat-icon.svg",Dd="Type your question here...",Bd="Select an option to continue",Sd=!1,Id="Ask me a question!",LA="/login",Td={general:{showHeader:!0,showFooter:!0},tooltip:{mode:"CLOSE"},chatInput:{disabled:!1,characterLimit:1e3,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}},fo=_e((e,t)=>{var n,r;const{apiKey:o,qaEndpoint:i,ratingEndpoint:a,welcomeMessage:A,open:s,onOpenChange:l,isLoggedIn:c,allowAnonAccess:u=!1,primaryColor:d,secondaryColor:p,botName:f,logo:y,placeholder:h,errorMessage:w,embedded:v,footerText:g,footerLink:x,tooltipText:C,loginUrl:E,customFlow:_}=e,I=ie("bot_".concat(Math.random().toString(36).substr(2,9))),D=ie(OA()),k=ie(!1),S=ie({getSessionId:()=>D.current,isResetting:()=>k.current}),[B,L]=ee(c);te(()=>{L(c)},[c]);const N=ve(()=>{const m=Object.assign({},Td);m.general=Object.assign(Object.assign({},m.general),{primaryColor:d||Pd,secondaryColor:p||kd,fontFamily:Cd,embedded:v!==void 0?v:Sd});const U=B===!1?R.createElement(SA,{key:"login-button",loginUrl:E||LA,isHeaderButton:!0}):R.createElement(vd,{key:"user-icon"});m.header={title:f||NA,showAvatar:!0,avatar:y||_d,buttons:[U,ge.CLOSE_CHAT_BUTTON]},m.chatInput=Object.assign(Object.assign({},m.chatInput),{disabled:!1,enabledPlaceholderText:h||Dd,disabledPlaceholderText:w||Bd}),m.tooltip=Object.assign(Object.assign({},m.tooltip),{text:C||Id});const b=g?x?R.createElement("a",{href:x,target:"_blank",rel:"noopener noreferrer",key:"footer-link"},g):R.createElement("span",{key:"footer-text"},g):null;return m.footer={text:b,buttons:[R.createElement(wd,{key:"new-chat-button"})]},m},[d,p,f,y,h,w,v,C,B,E,g,x]),Q=ie(null),W=function(m){let U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ve(()=>{const b=(F,K)=>{if(m.current){const z=getComputedStyle(m.current).getPropertyValue(F);if(z&&z.trim()!=="")return z.trim();if(m.current.parentElement){const ne=getComputedStyle(m.current.parentElement).getPropertyValue(F);if(ne&&ne.trim()!=="")return ne.trim()}}return K};return{primaryColor:b("--primaryColor",U.primaryColor),secondaryColor:b("--secondaryColor",U.secondaryColor),fontFamily:b("--fontFamily",U.fontFamily)}},[m,U])}(Q,N.general);((m,U)=>{te(()=>{U.current&&(m?U.current.classList.add("bot-logged-in"):U.current.classList.remove("bot-logged-in"))},[m,U])})(B!==!1,Q),(m=>{let{settings:U,themeColors:b}=m;te(()=>{b&&(Object.entries(b).forEach(F=>{let[K,z]=F;z&&document.documentElement.style.setProperty("--".concat(K),z)}),b.primaryColor&&document.documentElement.style.setProperty("--rcb-header-background",b.primaryColor),b.secondaryColor&&document.documentElement.style.setProperty("--rcb-header-background-hover",b.secondaryColor))},[b]),te(()=>{var F,K,z;!((F=U.header)===null||F===void 0)&&F.title&&typeof U.header.title=="string"&&(U.header.title=R.createElement("div",{key:"header-title"},R.createElement("h1",{className:"sr-only"},U.header.title),R.createElement("span",{"aria-hidden":"true"},U.header.title))),!((K=U.general)===null||K===void 0)&&K.embedded&&U.chatWindow&&(U.chatWindow.defaultOpen=!0),U.device={desktopEnabled:!0,mobileEnabled:!0,applyMobileOptimizations:!1},U.chatHistory={disabled:!1},U.chatButton=Object.assign(Object.assign({},U.chatButton),{icon:(z=U.header)===null||z===void 0?void 0:z.avatar}),U.event={rcbToggleChatWindow:!0}},[U])})({settings:N,themeColors:W});const O=ve(()=>{const m=(b=>{let{endpoint:F,ratingEndpoint:K,apiKey:z,sessionId:ne,isResetting:fe=()=>!1,isLoggedIn:de,allowAnonAccess:Be=!1,loginUrl:me="/login"}=b;if(de===!1&&!Be)return{qa_loop:{message:"To ask questions, please log in first.",component:R.createElement(SA,{loginUrl:me}),chatDisabled:!0,path:"qa_loop"}};let Ce=null,ft=!1;if(!F)throw new Error("Q&A endpoint is required");return{qa_loop:{message:async ze=>{const{userInput:je}=ze;if(fe&&fe()||!je||je.trim()==="")return null;if(je==="👍 Helpful"||je==="👎 Not helpful"){if(K&&Ce)try{const Ne=je==="👍 Helpful",Le={"Content-Type":"application/json"};z&&(Le["X-API-KEY"]=z);const nt=ne();nt&&(Le["X-Session-ID"]=nt,Le["X-Query-ID"]=Ce),await fetch(K,{method:"POST",headers:Le,body:JSON.stringify({sessionId:nt,queryId:Ce,rating:Ne?1:0})})}catch(Ne){console.error("Error sending feedback:",Ne)}return"Thanks for the feedback! Feel free to ask another question."}try{const Ne=MA();Ce=Ne;const Le={"Content-Type":"application/json"};z&&(Le["X-API-KEY"]=z);const nt=ne();nt&&(Le["X-Session-ID"]=nt,Le["X-Query-ID"]=Ne);const dn=await fetch(F,{method:"POST",headers:Le,body:JSON.stringify({query:je})});if(!dn.ok)throw new Error("API returned ".concat(dn.status));const kt=await dn.json(),pn=kt.response||kt.answer||kt.text||kt.message;if(!pn)throw new Error("Invalid response format from API");const Gn=(zt=>{if(!zt||typeof zt!="string")return zt;let jt=zt.replace(/\[(https?:\/\/[^\s]+?)\]/gi,"[$1]($1)");return jt=jt.replace(new RegExp(`(?<!\\]\\(|href=["']|\\[)https?:\\/\\/[^\\s[\\]()]+`,"gi"),qn=>{let Ct=qn,fn="";const Yn=Ct.match(/([.,;:!?]+)$/);return Yn&&(fn=Yn[1],Ct=Ct.slice(0,-fn.length)),"[".concat(Ct,"](").concat(Ct,")").concat(fn)}),jt})(pn);return await ze.injectMessage(Gn),ft=!0,setTimeout(async()=>{await ze.injectMessage("Feel free to ask another question.")},100),null}catch(Ne){return console.error("Error in Q&A flow:",Ne),"I apologize, but I'm having trouble processing your question. Please try again later."}},options:ze=>fe&&fe()||ze.userInput==="👍 Helpful"||ze.userInput==="👎 Not helpful"?[]:K&&ft?["👍 Helpful","👎 Not helpful"]:[],renderMarkdown:["BOT"],chatDisabled:!1,path:"qa_loop"}}})({endpoint:i,ratingEndpoint:a,apiKey:o,sessionId:S.current.getSessionId,isResetting:S.current.isResetting,isLoggedIn:B,allowAnonAccess:u,loginUrl:E||LA});return Object.assign(Object.assign({start:{message:A,transition:{duration:0},path:"qa_loop"}},m),_||{})},[o,i,a,A,B,u,E,_]),H=ve(()=>{return[()=>gc(U),gd(),()=>md(m)];var m,U},[]);return te(()=>{const m=()=>{const b=document.querySelector(".rcb-chat-window");if(!b)return;const F=b.querySelector(".rcb-send-button");F&&(F.hasAttribute("tabindex")||F.setAttribute("tabindex","0"),F.hasAttribute("data-keyboard-enabled")||(F.setAttribute("data-keyboard-enabled","true"),F.addEventListener("keydown",K=>{if(K.key==="Enter"||K.key===" "){K.preventDefault();const z=F&&Object.keys(F).find(fe=>fe.startsWith("__reactProps"));if(z){const fe=F[z],de=fe==null?void 0:fe.onMouseDown;if(de&&typeof de=="function")return void de(K)}const ne=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});F.dispatchEvent(ne)}})))},U=setInterval(m,1e3);return m(),()=>clearInterval(U)},[]),xd(),te(()=>{if(!v&&l){const m=U=>{const b=U.data.newState;l(b)};return window.addEventListener("rcb-toggle-chat-window",m),()=>{window.removeEventListener("rcb-toggle-chat-window",m)}}},[v,l]),R.createElement("div",{className:"qa-bot ".concat(!((n=N.general)===null||n===void 0)&&n.embedded?"embedded-qa-bot":""),ref:Q,role:"region","aria-label":f||NA},R.createElement(bd,{resetSession:()=>{k.current=!0,D.current=OA()},clearResettingFlag:()=>{k.current=!1}},R.createElement(oa,null,R.createElement("div",null,R.createElement(BA,{ref:t,embedded:((r=N.general)===null||r===void 0?void 0:r.embedded)||!1,currentOpen:s||!1,enabled:B!==!1,onSetEnabled:m=>L(!!m&&void 0)}),R.createElement($l,{key:"chatbot-".concat(I.current,"-").concat(B),settings:N,flow:O,plugins:H}),R.createElement("div",{role:"status","aria-live":"polite","aria-label":"Bot response updates",className:"sr-only",id:"bot-live-region"}),R.createElement("div",{id:"chat-input-help",className:"sr-only"},"Type your message and press Enter to send. Use arrow keys to navigate through response options.")))))});fo.displayName="QABot",_i('.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{color:#fff;text-decoration:none}.rcb-chat-window .rcb-bot-message a:hover{text-decoration:underline}.rcb-chat-window .rcb-chat-input-textarea{overflow-y:auto}.rcb-chat-window .rcb-chat-footer-container{font-size:10px}.qa-bot .user-login-icon{display:none!important}.qa-bot.bot-logged-in .user-login-icon{display:flex!important;transform:scale(1.3) translateY(-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%}@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 Qd=()=>{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 a=i.getContext("2d");if(!a)throw new Error("Could not get canvas context");a.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 s=new Date().toISOString().replace(/[:.]/g,"-"),l=new File([A],"screenshot-".concat(s,".png"),{type:"image/png"});return r.getTracks().forEach(c=>c.stop()),t(!1),l}catch(r){throw console.error("Error capturing screenshot:",r),t(!1),r}},isCapturing:e,isScreenCaptureAvailable:n()}},Md=e=>R.createElement(IA,e,R.createElement("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),R.createElement("polyline",{points:"17 8 12 3 7 8"}),R.createElement("line",{x1:"12",y1:"3",x2:"12",y2:"15"})),Od=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)}),Nd=e=>Promise.all(e.map(Od)),Ld=e=>e<1024?"".concat(e," B"):e<1048576?"".concat((e/1024).toFixed(1)," KB"):"".concat((e/1048576).toFixed(1)," MB"),zn=e=>{let{onFileUpload:t,maxSizeMB:n=10,acceptedTypes:r="image/*,application/pdf,text/*,.doc,.docx",enableScreenshot:o=!1,className:i}=e;const[a,A]=ee(!1),[s,l]=ee([]),[c,u]=ee(null),d=ie(null),{captureScreenshot:p,isCapturing:f,isScreenCaptureAvailable:y}=Qd(),h=E=>{const _=document.createElement("div");_.setAttribute("aria-live","assertive"),_.setAttribute("aria-atomic","true"),_.className="sr-only",_.textContent=E,document.body.appendChild(_),setTimeout(()=>document.body.removeChild(_),1e3)},w=E=>{if(!E||E.length===0)return void console.warn("FileUploadComponent: No valid files provided to handleFiles");let _;try{_=Array.from(E)}catch(S){return console.error("FileUploadComponent: Error converting files to array:",S),void h("Error processing selected files. Please try again.")}const I=[...s,..._];l(I);const D=_.length,k=_.map(S=>S.name).join(", ");h("".concat(D," file").concat(D>1?"s":""," selected: ").concat(k)),setTimeout(()=>{const S=document.querySelector(".rcb-chat-content");S&&(S.scrollTop=S.scrollHeight)},100),t&&t(I)},v=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){console.error("FileUploadComponent: Error in handleButtonClick:",E),h("Error opening file selection dialog. Please try again.")}},x=()=>{u(null)},C=o&&y;return R.createElement("div",{className:"file-upload-container ".concat(i||""),style:{padding:"16px",margin:"8px 0"}},C&&R.createElement("div",{style:{display:"flex",justifyContent:"center",marginBottom:"10px"}},R.createElement("button",{onClick:E=>{E.preventDefault(),(async()=>{try{const _=await p();w([_]),h("Screenshot captured successfully")}catch{h("Error capturing screenshot. Please try again.")}})()},disabled:f,"aria-describedby":"screenshot-help","aria-label":f?"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:f?"not-allowed":"pointer",fontSize:"14px",fontWeight:"500",boxShadow:"0 1px 3px rgba(0,0,0,0.2)"}},R.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"},R.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"}),R.createElement("circle",{cx:"12",cy:"13",r:"4"})),f?"Taking screenshot...":"Take screenshot..."),R.createElement("span",{id:"screenshot-help",className:"sr-only"},"Captures the current screen and adds it as an attachment")),R.createElement("div",{className:"file-upload-dropzone ".concat(a?"active":""),onDragEnter:v,onDragLeave:v,onDragOver:v,onDrop:E=>{var _;E.preventDefault(),E.stopPropagation(),A(!1);try{!((_=E.dataTransfer)===null||_===void 0)&&_.files&&E.dataTransfer.files.length>0&&w(E.dataTransfer.files)}catch(I){console.error("FileUploadComponent: Error in handleDrop:",I),h("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:a?"#f0f8ff":"#fafafa",transition:"all 0.3s ease"}},R.createElement("input",{ref:d,type:"file",className:"file-input",onChange:E=>{var _;try{!((_=E.target)===null||_===void 0)&&_.files&&E.target.files.length>0&&w(E.target.files)}catch(I){console.error("FileUploadComponent: Error in handleFileSelect:",I),h("Error processing selected files. Please try again.")}},multiple:!0,style:{display:"none"},"aria-label":"Select files to upload",accept:r}),R.createElement("div",{className:"upload-content",onClick:g,style:{cursor:"pointer",flexDirection:"column",alignItems:"center",display:"flex",textAlign:"center",padding:"12px"}},R.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"8px"}},R.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"10px"}},R.createElement(Md,null),R.createElement("p",{style:{margin:0,fontWeight:"bold"}},"Upload Files")),R.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)")),s.length>0&&R.createElement("div",{className:"selected-files",style:{display:"flex",flexWrap:"wrap",gap:"8px",marginTop:"12px",alignItems:"center"}},R.createElement("span",{style:{fontWeight:400,color:"#888",fontSize:"13px",marginRight:"8px",alignSelf:"center"}},"Selected files:"),s.map((E,_)=>R.createElement("span",{key:_,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)}},R.createElement("span",{onClick:I=>{I.stopPropagation(),(D=>{const k=s.filter((S,B)=>B!==D);l(k),t&&t(k)})(_)},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," (",Ld(E.size),")"))))),(()=>{if(!c)return null;const E=c.type.startsWith("image/"),_=c.type.startsWith("text/"),I=c.type==="application/pdf";return R.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},R.createElement("div",{style:{backgroundColor:"white",padding:"20px",borderRadius:"8px",maxWidth:"90%",maxHeight:"90%",overflow:"auto",position:"relative"},onClick:D=>D.stopPropagation()},R.createElement("button",{onClick:x,style:{position:"absolute",top:"10px",right:"10px",background:"none",border:"none",fontSize:"24px",cursor:"pointer",color:"#666"}},"×"),R.createElement("h3",{style:{marginTop:0,marginBottom:"16px"}},c.name),E&&R.createElement("img",{src:URL.createObjectURL(c),alt:c.name,style:{maxWidth:"100%",maxHeight:"70vh"}}),_&&R.createElement("pre",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word",maxHeight:"70vh",overflow:"auto",padding:"16px",backgroundColor:"#f5f5f5",borderRadius:"4px"}},URL.createObjectURL(c)),I&&R.createElement("iframe",{src:URL.createObjectURL(c),style:{width:"100%",height:"70vh",border:"none"},title:c.name}),!E&&!_&&!I&&R.createElement("div",{style:{padding:"20px",textAlign:"center"}},"Preview not available for this file type")))})())};function Rd(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 a=!(!i.options&&!i.checkboxes);i.chatDisabled=a}n[r]=i}return n}const Hd=R.forwardRef((e,t)=>{const[n,r]=R.useState(e.defaultOpen||!1),o=R.useRef(null);return R.useImperativeHandle(t,()=>({addMessage:i=>{var a;(a=o.current)===null||a===void 0||a.addMessage(i)},setBotEnabled:i=>{var a;(a=o.current)===null||a===void 0||a.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(a=>!a),(i=o.current)===null||i===void 0||i.toggleChat()}}),[]),R.createElement(fo,{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,open:n,onOpenChange:r,footerText:e.footerText,footerLink:e.footerLink,tooltipText:e.tooltipText})});Hd.displayName="ProgrammaticQABot";const Et={QA_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/chat/api/",RATING_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/chat/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"},pt={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?",WELCOME_MESSAGE_LOGGED_OUT:"To ask questions, please log in.",LOGIN_URL:"/login",PRIMARY_COLOR:"#1a5b6e",SECONDARY_COLOR:"#107180",TOOLTIP:"Ask me about ACCESS! 😊"},RA={SESSION_ID:"access-qa-bot-session-id"};function Ud({welcome:e,setTicketForm:t,isLoggedIn:n}){return{start:{message:e,options:["Ask a question about ACCESS","Open a Help Ticket","Usage and performance of ACCESS resources (XDMoD)","Report a security issue"],path:r=>r.userInput==="Ask a question about ACCESS"?n?"go_ahead_and_ask":"qa_loop":r.userInput==="Open a Help Ticket"?(t({}),"help_ticket"):r.userInput==="Usage and performance of ACCESS resources (XDMoD)"?"metrics_intro":r.userInput==="Report a security issue"?(t({}),"security_incident"):"start"},go_ahead_and_ask:{message:"Go ahead and ask your question! I'll do my best to help.",path:"qa_loop"}}}let ho=null;function Fd(e){ho=e}function X(){return ho?ho.ticketForm||{}:(console.warn("Form context not available, returning empty form"),{})}function Ee(e={}){const t=X();return{...t,email:e.email||t.email,name:e.name||t.name,accessId:e.accessId||t.accessId}}function go(e){return e&&e.length>0?`
|
|
39
|
+
Attachments: ${e.length} file(s) attached`:""}const Ft={SUPPORT:17,LOGIN_ACCESS:30,LOGIN_PROVIDER:31,SECURITY:26};async function zd(e,t="support",n=[]){const o={support:Ft.SUPPORT,general_help:Ft.SUPPORT,loginAccess:Ft.LOGIN_ACCESS,loginProvider:Ft.LOGIN_PROVIDER,security:Ft.SECURITY}[t]||Ft.SUPPORT,a={serviceDeskId:t==="security"?3:2,requestTypeId:o,requestFieldValues:{...e}};return n.length>0&&(a.attachments=await Nd(n)),a}async function jd(e,t){var o,i;const r=`${Et.NETLIFY_BASE_URL}/api/v1/${t}`;try{const a=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!a.ok){let s="";try{const l=await a.text();try{const c=JSON.parse(l);s=c.message||c.error||l}catch{s=l}}catch{s=`HTTP ${a.status} ${a.statusText}`}return a.status===403?s="The ticket service is temporarily unavailable. Please try again later or contact support directly.":a.status===404?s="Ticket service not found. Please try again later.":a.status===500?s="Server error. Please try again later.":a.status===401&&(s="Authentication error with the ticket service. Please contact support."),{success:!1,status:a.status,error:s}}const A=await a.json();return{success:!0,ticketKey:(o=A.data)==null?void 0:o.ticketKey,ticketUrl:(i=A.data)==null?void 0:i.ticketUrl}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Unknown error"}}}async function jn(e,t,n=[]){try{const r=await zd(e,t,n);return await jd(r,t==="security"?"security-incidents":"tickets")}catch(r){return{success:!1,error:r instanceof Error?r.message:"Unknown error"}}}function mo(e,t="ticket"){return e?e.success?e.ticketUrl&&e.ticketKey?`Your ${t} has been submitted successfully.
|
|
40
40
|
|
|
41
41
|
Ticket: <a href="${e.ticketUrl}" target="_blank">${e.ticketKey}</a>
|
|
42
42
|
|
|
@@ -52,7 +52,7 @@ Please try again or contact our support team directly.`}function Wn(e){return!e|
|
|
|
52
52
|
• Clear your browser cookies and cache
|
|
53
53
|
• Check if you're using the correct identity provider
|
|
54
54
|
|
|
55
|
-
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=X();t({...A,description:a.userInput,email:n.email||A.email,name:n.name||A.name,accessId:n.accessId||A.accessId})},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=X();t({...A,identityProvider:a.userInput})},path:"access_login_browser"},access_login_browser:{message:"Which browser were you using?",options:["Chrome","Firefox","Edge","Safari","Other"],function:a=>{const A=X();t({...A,browser:a.userInput})},path:"access_login_attachment"},access_login_attachment:{message:"Would you like to attach a screenshot?",options:["Yes","No"],function:a=>{const A=X();t({...A,wantsAttachment:a.userInput})},path:a=>{if(a.userInput==="Yes")return"access_login_upload";const A=Ee(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:P(zn,{onFileUpload:a=>{t(A=>({...A,uploadedFiles:a}))},enableScreenshot:!0,maxSizeMB:10}),options:["Continue"],function:()=>{const a=X();t({...a,uploadConfirmed:!0})},path:()=>{const a=Ee(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:Wn,function:a=>{const A=X();t({...A,email:a.userInput})},path:()=>{const a=Ee(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=X();t({...A,name:a.userInput})},path:()=>Ee(n).accessId?"access_login_summary":"access_login_accessid"},access_login_accessid:{message:"What is your ACCESS ID? (Optional - press Enter to skip)",validateTextInput:cn(),function:a=>{const A=X();t({...A,accessId:un(a.userInput)})},path:"access_login_summary"},access_login_summary:{message:a=>{const A=X(),s=Ee(n),l=
|
|
55
|
+
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=X();t({...A,description:a.userInput,email:n.email||A.email,name:n.name||A.name,accessId:n.accessId||A.accessId})},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=X();t({...A,identityProvider:a.userInput})},path:"access_login_browser"},access_login_browser:{message:"Which browser were you using?",options:["Chrome","Firefox","Edge","Safari","Other"],function:a=>{const A=X();t({...A,browser:a.userInput})},path:"access_login_attachment"},access_login_attachment:{message:"Would you like to attach a screenshot?",options:["Yes","No"],function:a=>{const A=X();t({...A,wantsAttachment:a.userInput})},path:a=>{if(a.userInput==="Yes")return"access_login_upload";const A=Ee(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:P(zn,{onFileUpload:a=>{t(A=>({...A,uploadedFiles:a}))},enableScreenshot:!0,maxSizeMB:10}),options:["Continue"],function:()=>{const a=X();t({...a,uploadConfirmed:!0})},path:()=>{const a=Ee(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:Wn,function:a=>{const A=X();t({...A,email:a.userInput})},path:()=>{const a=Ee(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=X();t({...A,name:a.userInput})},path:()=>Ee(n).accessId?"access_login_summary":"access_login_accessid"},access_login_accessid:{message:"What is your ACCESS ID? (Optional - press Enter to skip)",validateTextInput:cn(),function:a=>{const A=X();t({...A,accessId:un(a.userInput)})},path:"access_login_summary"},access_login_summary:{message:a=>{const A=X(),s=Ee(n),l=go(A.uploadedFiles);let c=s.accessId;return a.prevPath==="access_login_accessid"&&a.userInput&&(c=a.userInput),`Thank you for providing your ACCESS login issue details. Here's a summary:
|
|
56
56
|
|
|
57
57
|
Name: ${s.name||"Not provided"}
|
|
58
58
|
Email: ${s.email||"Not provided"}
|
|
@@ -61,13 +61,13 @@ Identity Provider: ${A.identityProvider||"Not provided"}
|
|
|
61
61
|
Browser: ${A.browser||"Not provided"}
|
|
62
62
|
Issue Description: ${A.description||"Not provided"}${l}
|
|
63
63
|
|
|
64
|
-
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=X(),s=Ee(n),l={email:s.email||"",name:s.name||"",accessId:s.accessId||"",description:A.description||"",identityProvider:A.identityProvider||"",browser:A.browser||""};await o(l,A.uploadedFiles||[])}},path:a=>a.userInput==="Submit Ticket"?"access_login_success":"start"},access_login_success:{message:()=>
|
|
64
|
+
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=X(),s=Ee(n),l={email:s.email||"",name:s.name||"",accessId:s.accessId||"",description:A.description||"",identityProvider:A.identityProvider||"",browser:A.browser||""};await o(l,A.uploadedFiles||[])}},path:a=>a.userInput==="Submit Ticket"?"access_login_success":"start"},access_login_success:{message:()=>mo(r,"ACCESS login ticket"),options:["Back to Main Menu"],renderHtml:["BOT"],path:"start"}}}function Gd({ticketForm:e,setTicketForm:t,userInfo:n}){let r=null;const o=async(a,A=[])=>{r=await jn(a,"loginProvider",A),r.success?t(s=>({...s,ticketKey:r.ticketKey,ticketUrl:r.ticketUrl})):t(s=>({...s,submissionError:r.error}))};return{resource_help:{message:`If you're having trouble logging into an affiliated infrastructure or resource provider, here are some common issues:
|
|
65
65
|
|
|
66
66
|
• Ensure your allocation is active
|
|
67
67
|
• Confirm you have the correct username for that resource
|
|
68
68
|
• Check <a href="https://operations.access-ci.org/infrastructure_news_view">System Status News</a> to see if the resource is undergoing maintenance
|
|
69
69
|
|
|
70
|
-
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=X();t({...A,resource:a.userInput})},path:"resource_login_userid"},resource_login_userid:{message:"What is your user ID at the resource?",function:a=>{const A=X();t({...A,userIdResource:a.userInput})},path:"resource_login_description"},resource_login_description:{message:"Please describe the issue you're having logging in.",function:a=>{const A=X();t({...A,description:a.userInput,email:n.email||A.email,name:n.name||A.name,accessId:n.accessId||A.accessId})},path:"resource_login_attachment"},resource_login_attachment:{message:"Would you like to attach a screenshot?",options:["Yes","No"],function:a=>{const A=X();t({...A,wantsAttachment:a.userInput})},path:a=>{if(a.userInput==="Yes")return"resource_login_upload";const A=Ee(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:P(zn,{onFileUpload:a=>{t(A=>({...A,uploadedFiles:a}))},enableScreenshot:!0,maxSizeMB:10}),options:["Continue"],function:()=>{const a=X();t({...a,uploadConfirmed:!0})},path:()=>{const a=Ee(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:Wn,function:a=>{const A=X();t({...A,email:a.userInput})},path:()=>{const a=Ee(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=X();t({...A,name:a.userInput})},path:()=>Ee(n).accessId?"resource_login_summary":"resource_login_accessid"},resource_login_accessid:{message:"What is your ACCESS ID? (Optional - press Enter to skip)",validateTextInput:cn(),function:a=>{const A=X();t({...A,accessId:un(a.userInput)})},path:"resource_login_summary"},resource_login_summary:{message:a=>{const A=X(),s=Ee(n),l=
|
|
70
|
+
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=X();t({...A,resource:a.userInput})},path:"resource_login_userid"},resource_login_userid:{message:"What is your user ID at the resource?",function:a=>{const A=X();t({...A,userIdResource:a.userInput})},path:"resource_login_description"},resource_login_description:{message:"Please describe the issue you're having logging in.",function:a=>{const A=X();t({...A,description:a.userInput,email:n.email||A.email,name:n.name||A.name,accessId:n.accessId||A.accessId})},path:"resource_login_attachment"},resource_login_attachment:{message:"Would you like to attach a screenshot?",options:["Yes","No"],function:a=>{const A=X();t({...A,wantsAttachment:a.userInput})},path:a=>{if(a.userInput==="Yes")return"resource_login_upload";const A=Ee(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:P(zn,{onFileUpload:a=>{t(A=>({...A,uploadedFiles:a}))},enableScreenshot:!0,maxSizeMB:10}),options:["Continue"],function:()=>{const a=X();t({...a,uploadConfirmed:!0})},path:()=>{const a=Ee(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:Wn,function:a=>{const A=X();t({...A,email:a.userInput})},path:()=>{const a=Ee(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=X();t({...A,name:a.userInput})},path:()=>Ee(n).accessId?"resource_login_summary":"resource_login_accessid"},resource_login_accessid:{message:"What is your ACCESS ID? (Optional - press Enter to skip)",validateTextInput:cn(),function:a=>{const A=X();t({...A,accessId:un(a.userInput)})},path:"resource_login_summary"},resource_login_summary:{message:a=>{const A=X(),s=Ee(n),l=go(A.uploadedFiles);let c=s.accessId;return a.prevPath==="resource_login_accessid"&&a.userInput&&(c=a.userInput),`Thank you for providing your resource login issue details. Here's a summary:
|
|
71
71
|
|
|
72
72
|
Name: ${s.name||"Not provided"}
|
|
73
73
|
Email: ${s.email||"Not provided"}
|
|
@@ -76,7 +76,7 @@ Resource: ${A.resource||"Not provided"}
|
|
|
76
76
|
Resource User ID: ${A.userIdResource||"Not provided"}
|
|
77
77
|
Issue Description: ${A.description||"Not provided"}${l}
|
|
78
78
|
|
|
79
|
-
Would you like to submit this ticket?`},options:["Submit Ticket","Back to Main Menu"],function:async a=>{if(a.userInput==="Submit Ticket"){const A=X(),s=Ee(n),l={email:s.email||"",name:s.name||"",accessId:s.accessId||"",accessResource:A.resource||"",description:A.description||"",userIdAtResource:A.userIdResource||""};await o(l,A.uploadedFiles||[])}},path:a=>a.userInput==="Submit Ticket"?"resource_login_success":"start"},resource_login_success:{message:()=>
|
|
79
|
+
Would you like to submit this ticket?`},options:["Submit Ticket","Back to Main Menu"],function:async a=>{if(a.userInput==="Submit Ticket"){const A=X(),s=Ee(n),l={email:s.email||"",name:s.name||"",accessId:s.accessId||"",accessResource:A.resource||"",description:A.description||"",userIdAtResource:A.userIdResource||""};await o(l,A.uploadedFiles||[])}},path:a=>a.userInput==="Submit Ticket"?"resource_login_success":"start"},resource_login_success:{message:()=>mo(r,"resource login ticket"),options:["Back to Main Menu"],renderHtml:["BOT"],path:"start"}}}const qd=[" 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"],Yd=["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 Xd({ticketForm:e,setTicketForm:t,userInfo:n}){let r=null;const o=async(a,A=[])=>{r=await jn(a,"support",A),r.success?t(s=>({...s,ticketKey:r.ticketKey,ticketUrl:r.ticketUrl})):t(s=>({...s,submissionError:r.error}))};return{general_help_summary_subject:{message:"Provide a short title for your ticket.",function:a=>{const A=X();t({...A,summary:a.userInput,email:n.email||A.email,name:n.name||A.name,accessId:n.accessId||A.accessId})},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=X();t({...A,category:a.userInput})},path:"general_help_description"},general_help_description:{message:"Please describe your issue.",function:a=>{const A=X();t({...A,description:a.userInput})},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=X();t({...A,wantsAttachment:a.userInput})},path:a=>a.userInput==="Yes"?"general_help_upload":"general_help_resource"},general_help_upload:{message:"Please upload your file.",component:P(zn,{onFileUpload:a=>{t(A=>({...A,uploadedFiles:a}))},enableScreenshot:!0,maxSizeMB:10}),options:["Continue"],function:()=>{const a=X();t({...a,uploadConfirmed:!0})},path:"general_help_resource"},general_help_resource:{message:"Does your problem involve an ACCESS Resource?",options:["Yes","No"],function:a=>{const A=X();t({...A,involvesResource:a.userInput.toLowerCase()})},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:Yd,function:a=>{const A=X();t({...A,resourceDetails:a.userInput})},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:cn(),function:a=>{const A=X();t({...A,userIdAtResource:un(a.userInput)})},path:"general_help_keywords"},general_help_keywords:{message:"Please add up to 5 keywords to help route your ticket.",checkboxes:{items:qd,min:0,max:5},function:a=>{const A=X();t({...A,keywords:a.userInput})},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=X(),s=A.keywords||[],l=a.userInput,u=(Array.isArray(s)?[...s]:String(s).split(",").map(p=>p.trim())).filter(p=>p!=="I don't see a relevant keyword"),d=u.length>0?[...u,l].join(", "):l;t({...A,keywords:d,suggestedKeyword:l})},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=X();t({...A,priority:a.userInput.toLowerCase()})},path:()=>{const a=Ee(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:Wn,function:a=>{const A=X();t({...A,email:a.userInput})},path:()=>{const a=Ee(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=X();t({...A,name:a.userInput})},path:()=>Ee(n).accessId?"general_help_ticket_summary":"general_help_accessid"},general_help_accessid:{message:"What is your ACCESS ID? (Optional - press Enter to skip)",validateTextInput:cn(),function:a=>{const A=X();t({...A,accessId:un(a.userInput)})},path:"general_help_ticket_summary"},general_help_ticket_summary:{message:a=>{const A=X(),s=Ee(n),l=go(A.uploadedFiles);let c=s.accessId;a.prevPath==="general_help_accessid"&&a.userInput&&(c=a.userInput);let u="";return A.involvesResource==="yes"&&(u=`
|
|
80
80
|
Resource: ${A.resourceDetails||"Not specified"}`,A.userIdAtResource&&(u+=`
|
|
81
81
|
User ID at Resource: ${A.userIdAtResource}`)),`Thank you for providing your issue details. Here's a summary:
|
|
82
82
|
|
|
@@ -89,7 +89,7 @@ Priority: ${A.priority||"Not provided"}
|
|
|
89
89
|
Keywords: ${A.keywords||"Not provided"}
|
|
90
90
|
Issue Description: ${A.description||"Not provided"}${u}${l}
|
|
91
91
|
|
|
92
|
-
Would you like to submit this ticket?`},options:["Submit Ticket","Back to Main Menu"],function:async a=>{if(a.userInput==="Submit Ticket"){const A=X(),s=Ee(n),l={email:s.email||"",summary:A.summary||"General Support Ticket",description:A.description||"",priority:A.priority||"medium",accessId:s.accessId||"",name:s.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 o(l,A.uploadedFiles||[])}},path:a=>a.userInput==="Submit Ticket"?"general_help_success":"start"},general_help_success:{message:()=>
|
|
92
|
+
Would you like to submit this ticket?`},options:["Submit Ticket","Back to Main Menu"],function:async a=>{if(a.userInput==="Submit Ticket"){const A=X(),s=Ee(n),l={email:s.email||"",summary:A.summary||"General Support Ticket",description:A.description||"",priority:A.priority||"medium",accessId:s.accessId||"",name:s.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 o(l,A.uploadedFiles||[])}},path:a=>a.userInput==="Submit Ticket"?"general_help_success":"start"},general_help_success:{message:()=>mo(r,"support ticket"),options:["Back to Main Menu"],renderHtml:["BOT"],path:"start"}}}function Vd({ticketForm:e,setTicketForm:t,userInfo:n}){const r=Wd({ticketForm:e,setTicketForm:t,userInfo:n}),o=Gd({ticketForm:e,setTicketForm:t,userInfo:n}),i=Xd({ticketForm:e,setTicketForm:t,userInfo:n});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}))},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"},...r,...o,...i}}function Pt(e){const t=X();return{...t,email:e.email||t.email,name:e.name||t.name,accessId:e.accessId||t.accessId}}function Kd(e){return e?e.success?e.ticketUrl&&e.ticketKey?`Your security incident report has been submitted successfully.
|
|
93
93
|
|
|
94
94
|
Ticket: <a href="${e.ticketUrl}" target="_blank">${e.ticketKey}</a>
|
|
95
95
|
|
|
@@ -115,5 +115,5 @@ Email: ${l.email||"Not provided"}
|
|
|
115
115
|
ACCESS ID: ${u}
|
|
116
116
|
Description: ${l.description||"Not provided"}${c}
|
|
117
117
|
|
|
118
|
-
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 s=X(),l=Pt(n),c={...s,name:l.name||s.name,email:l.email||s.email,accessId:r||l.accessId||s.accessId},u={summary:c.summary||"",priority:c.priority||"",description:c.description||"",name:c.name||"",email:c.email||"",accessId:c.accessId||""};await i(u,s.uploadedFiles||[])}},path:A=>A.userInput==="Submit Security Report"?"security_success":"start"},security_success:{message:()=>Kd(o),options:["Back to Main Menu"],renderHtml:["BOT"],path:"start"}}}
|
|
118
|
+
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 s=X(),l=Pt(n),c={...s,name:l.name||s.name,email:l.email||s.email,accessId:r||l.accessId||s.accessId},u={summary:c.summary||"",priority:c.priority||"",description:c.description||"",name:c.name||"",email:c.email||"",accessId:c.accessId||""};await i(u,s.uploadedFiles||[])}},path:A=>A.userInput==="Submit Security Report"?"security_success":"start"},security_success:{message:()=>Kd(o),options:["Back to Main Menu"],renderHtml:["BOT"],path:"start"}}}const Pe=[];for(let e=0;e<256;++e)Pe.push((e+256).toString(16).slice(1));function Jd(e,t=0){return(Pe[e[t+0]]+Pe[e[t+1]]+Pe[e[t+2]]+Pe[e[t+3]]+"-"+Pe[e[t+4]]+Pe[e[t+5]]+"-"+Pe[e[t+6]]+Pe[e[t+7]]+"-"+Pe[e[t+8]]+Pe[e[t+9]]+"-"+Pe[e[t+10]]+Pe[e[t+11]]+Pe[e[t+12]]+Pe[e[t+13]]+Pe[e[t+14]]+Pe[e[t+15]]).toLowerCase()}let vo;const Zd=new Uint8Array(16);function ep(){if(!vo){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");vo=crypto.getRandomValues.bind(crypto)}return vo(Zd)}const HA={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function yo(e,t,n){var o;if(HA.randomUUID&&!e)return HA.randomUUID();e=e||{};const r=e.random??((o=e.rng)==null?void 0:o.call(e))??ep();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,Jd(r)}function ap(e){return e}function tp({sessionId:e,apiKey:t}){let n=null;return{metrics_intro:{message:`Please type your question about usage and performance metrics (XDMoD) below. You can see some <a target="_blank" href="${Et.METRICS_QUESTIONS_URL}">examples here</a>.`,renderHtml:["BOT"],path:"metrics_loop"},metrics_loop:{message:async r=>{const{userInput:o}=r;if(o==="👍 Helpful"||o==="👎 Not helpful"){if(t&&e&&n){const a={"Content-Type":"application/json","X-Origin":"metrics","X-API-KEY":t,"X-Session-ID":e,"X-Query-ID":n,"X-Feedback":o==="👍 Helpful"?"1":"0"};try{await fetch(Et.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 i=yo();n=i;const a={"Content-Type":"application/json","X-Origin":"metrics","X-API-KEY":t,"X-Session-ID":e,"X-Query-ID":i},l=(await(await fetch(Et.METRICS_API_ENDPOINT,{method:"POST",headers:a,body:JSON.stringify({query:o})})).json()).response,c=l;return await r.injectMessage(c),setTimeout(async()=>{await r.injectMessage("Ask another question about usage and performance metrics (XDMoD) or start a new chat.")},100),null}catch(i){return console.error("Error in metrics flow:",i),"I'm sorry, there was an error processing your question. Please try again."}},renderMarkdown:["BOT"],options:r=>r.userInput==="👍 Helpful"||r.userInput==="👎 Not helpful"?[]:["👍 Helpful","👎 Not helpful"],chatDisabled:!1,path:"metrics_loop"}}}function np(){if(typeof window>"u")return yo();let e=localStorage.getItem(RA.SESSION_ID);return e||(e=yo(),localStorage.setItem(RA.SESSION_ID,e)),e}const UA=_e((e,t)=>{const{apiKey:n=Et.DEFAULT_API_KEY,isLoggedIn:r=!1,loginUrl:o=pt.LOGIN_URL,userEmail:i,userName:a,accessId:A,ringEffect:s,defaultOpen:l,onClose:c,open:u,onOpenChange:d,embedded:p=!1,welcome:f}=e,y=ie(null),[h,w]=ee({}),v=ve(()=>({email:i,name:a,accessId:A}),[i,a,A]);te(()=>{Fd({ticketForm:h,setTicketForm:w})},[h]),bn(t,()=>({addMessage:E=>{var _,I;(I=(_=y.current)==null?void 0:_.addMessage)==null||I.call(_,E)}}));const g=f||(r?pt.WELCOME_MESSAGE:pt.WELCOME_MESSAGE_LOGGED_OUT),x=ve(()=>np(),[]),C=ve(()=>{const E=Ud({welcome:g,setTicketForm:w,isLoggedIn:r}),_=Vd({ticketForm:h,setTicketForm:w,userInfo:v}),I=$d({ticketForm:h,setTicketForm:w,userInfo:v}),D=tp({sessionId:x,apiKey:n}),k={...E,..._,...I,...D};return Rd(k,{disableOnOptions:!0})},[g,h,v,x,n,r]);return P(fo,{ref:y,isLoggedIn:r,apiKey:n,qaEndpoint:Et.QA_ENDPOINT,ratingEndpoint:Et.RATING_ENDPOINT,botName:pt.BOT_NAME,logo:pt.LOGO,primaryColor:pt.PRIMARY_COLOR,secondaryColor:pt.SECONDARY_COLOR,welcomeMessage:g,tooltipText:pt.TOOLTIP,loginUrl:o,open:u,onOpenChange:d,embedded:p,footerText:"Need more help?",footerLink:"https://support.access-ci.org",customFlow:C})});UA.displayName="AccessQABot";function bo(e){const{target:t,...n}=e;if(!t)throw new Error("qaBot: target element is required");const r=Do();let o=n.isLoggedIn||!1,i=n.open!==void 0?n.open:n.defaultOpen||!1;const a=ks(t),A=()=>{a.render(P(UA,{ref:r,...n,isLoggedIn:o,open:i,onOpenChange:s=>{var l;i=s,(l=n.onOpenChange)==null||l.call(n,s)}}))};return A(),{addMessage(s){var l;(l=r.current)==null||l.addMessage(s)},setBotIsLoggedIn(s){o=s,A()},openChat(){i=!0,A()},closeChat(){i=!1,A()},toggleChat(){i=!i,A()},destroy(){a.unmount()}}}return typeof window<"u"&&(window.qaBot=bo),mn.default=bo,mn.qaBot=bo,Object.defineProperties(mn,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),mn}({});
|
|
119
119
|
//# sourceMappingURL=access-qa-bot.standalone.js.map
|